From de20d3ef879900706eb5894d6fb5b58b4606dcca Mon Sep 17 00:00:00 2001 From: Adharsh Kamath Date: Fri, 5 Jan 2024 11:51:21 +0530 Subject: [PATCH] Added files --- .gitignore | 161 + .gitmodules | 3 + GeneratedInvariants.xlsx | Bin 0 -> 27845 bytes LICENSE.txt | 21 + README.md | 165 + config/README.md | 3 + config/arrays.yaml | 5 + config/loop_invariants.yaml | 5 + config/recursive_functions.yaml | 5 + config/sample_config.yaml | 6 + config/termination.yaml | 5 + data/benchmark_links.txt | 23 + .../VeriMAP/MAP-CPA-example_VeriMAP_true.c | 28 + .../VeriMAP/MAP-disj_VeriMAP_true.c | 23 + .../VeriMAP/MAP-forward_VeriMAP_true.c | 30 + ...rpolants_needed-pepm-proc.c_VeriMAP_true.c | 25 + .../MAP-pepm-scp-example1.c_VeriMAP_true.c | 26 + .../MAP-pepm-scp-example2.c_VeriMAP_true.c | 22 + .../MAP-re1-LOPSTR-pepm-proc.c_VeriMAP_true.c | 26 + ...-selection_sort-pepm-proc.c_VeriMAP_true.c | 43 + ...MAP-singleloop2-pepm-proc.c_VeriMAP_true.c | 24 + ...ER-paper-prog_d-pepm-proc.c_VeriMAP_true.c | 21 + .../TRACER-test1-unsafe_VeriMAP_false.c | 20 + .../VeriMAP/TRACER-test1_VeriMAP_true.c | 19 + .../TRACER-test3-unsafe_VeriMAP_false.c | 22 + .../VeriMAP/TRACER-test3_VeriMAP_true.c | 23 + .../VeriMAP/TRACER-testabs12_VeriMAP_true.c | 23 + .../VeriMAP/TRACER-testabs13_VeriMAP_true.c | 18 + .../VeriMAP/TRACER-testabs14_VeriMAP_true.c | 23 + .../VeriMAP/TRACER-testabs15_VeriMAP_true.c | 30 + .../VeriMAP/TRACER-testabs1_VeriMAP_true.c | 27 + .../VeriMAP/TRACER-testabs2_VeriMAP_true.c | 29 + .../VeriMAP/TRACER-testabs3_VeriMAP_true.c | 45 + .../VeriMAP/TRACER-testabs6_VeriMAP_true.c | 24 + .../VeriMAP/TRACER-testabs7_VeriMAP_true.c | 18 + .../VeriMAP/TRACER-testabs8_VeriMAP_true.c | 17 + .../VeriMAP/TRACER-testabs9_VeriMAP_true.c | 16 + .../TRACER-testfunc1-unsafe_VeriMAP_false.c | 38 + .../VeriMAP/TRACER-testfunc11_VeriMAP_true.c | 16 + .../TRACER-testfunc12-unsafe_VeriMAP_false.c | 28 + .../TRACER-testfunc13-unsafe_VeriMAP_false.c | 32 + .../VeriMAP/TRACER-testfunc14_VeriMAP_true.c | 33 + .../VeriMAP/TRACER-testfunc1_VeriMAP_true.c | 38 + .../VeriMAP/TRACER-testfunc3_VeriMAP_true.c | 26 + .../TRACER-testfunc9-unsafe_VeriMAP_false.c | 47 + .../VeriMAP/TRACER-testloop10_VeriMAP_true.c | 29 + .../VeriMAP/TRACER-testloop11_VeriMAP_true.c | 33 + .../VeriMAP/TRACER-testloop12_VeriMAP_true.c | 39 + .../VeriMAP/TRACER-testloop13_VeriMAP_true.c | 29 + .../VeriMAP/TRACER-testloop14_VeriMAP_true.c | 27 + .../VeriMAP/TRACER-testloop15_VeriMAP_true.c | 21 + .../VeriMAP/TRACER-testloop16_VeriMAP_true.c | 28 + .../VeriMAP/TRACER-testloop17_VeriMAP_true.c | 33 + .../VeriMAP/TRACER-testloop1_VeriMAP_true.c | 29 + .../VeriMAP/TRACER-testloop20_VeriMAP_true.c | 35 + .../VeriMAP/TRACER-testloop21_VeriMAP_true.c | 29 + .../VeriMAP/TRACER-testloop22_VeriMAP_true.c | 26 + .../TRACER-testloop27-unsafe_VeriMAP_false.c | 24 + .../TRACER-testloop28-unsafe_VeriMAP_false.c | 18 + .../VeriMAP/TRACER-testloop29_VeriMAP_true.c | 17 + .../VeriMAP/TRACER-testloop2_VeriMAP_true.c | 25 + .../TRACER-testloop3-unsafe_VeriMAP_false.c | 24 + .../VeriMAP/TRACER-testloop4_VeriMAP_true.c | 21 + .../TRACER-testloop5-unsafe_VeriMAP_false.c | 22 + .../VeriMAP/TRACER-testloop6_VeriMAP_true.c | 31 + .../VeriMAP/TRACER-testloop7_VeriMAP_true.c | 30 + .../TRACER-testloop8-unsafe_VeriMAP_false.c | 25 + .../VeriMAP/TRACER-testloop9_VeriMAP_true.c | 38 + .../TRACER-testwp1-unsafe_VeriMAP_false.c | 27 + .../VeriMAP/TRACER-testwp10_VeriMAP_true.c | 30 + .../VeriMAP/TRACER-testwp11_VeriMAP_true.c | 31 + .../VeriMAP/TRACER-testwp12_VeriMAP_true.c | 25 + .../TRACER-testwp13-unsafe_VeriMAP_false.c | 25 + .../VeriMAP/TRACER-testwp14_VeriMAP_true.c | 25 + .../VeriMAP/TRACER-testwp15_VeriMAP_true.c | 36 + .../VeriMAP/TRACER-testwp16_VeriMAP_true.c | 31 + .../VeriMAP/TRACER-testwp17_VeriMAP_true.c | 25 + .../VeriMAP/TRACER-testwp2_VeriMAP_true.c | 28 + .../VeriMAP/TRACER-testwp3_VeriMAP_true.c | 19 + .../VeriMAP/TRACER-testwp4_VeriMAP_true.c | 45 + .../VeriMAP/TRACER-testwp5_VeriMAP_true.c | 26 + .../VeriMAP/TRACER-testwp6_VeriMAP_true.c | 24 + .../VeriMAP/TRACER-testwp7_VeriMAP_true.c | 26 + .../VeriMAP/TRACER-testwp8_VeriMAP_true.c | 27 + .../VeriMAP/TRACER-testwp9_VeriMAP_true.c | 18 + .../VeriMAP/WHALE-ddd1_VeriMAP_false.c | 925 + .../VeriMAP/WHALE-ddd1err_VeriMAP_false.c | 927 + .../VeriMAP/WHALE-ddd2_VeriMAP_false.c | 962 + .../VeriMAP/WHALE-ddd2err_VeriMAP_false.c | 962 + .../VeriMAP/WHALE-ddd3_VeriMAP_false.c | 1349 + .../VeriMAP/WHALE-ddd3err_VeriMAP_false.c | 1342 + .../VeriMAP/WHALE-ddd4err_VeriMAP_false.c | 941 + .../dillig_tacas13/benchmark1.c | 47 + .../dillig_tacas13/benchmark10.c | 47 + .../dillig_tacas13/benchmark2.c | 37 + .../dillig_tacas13/benchmark3.c | 51 + .../dillig_tacas13/benchmark4.c | 59 + .../dillig_tacas13/benchmark5.c | 90 + .../dillig_tacas13/benchmark6.c | 63 + .../dillig_tacas13/benchmark7.c | 56 + .../dillig_tacas13/benchmark8.c | 47 + .../dillig_tacas13/benchmark9.c | 61 + .../LinearArbitrary-SeaHorn/invgen/.DS_Store | Bin 0 -> 6148 bytes .../invgen/MADWiFi-encode_ie_ok.c | 52 + .../invgen/NetBSD_g_Ctoc.c | 46 + .../invgen/NetBSD_glob3_iny.c | 120 + .../invgen/NetBSD_loop.c | 50 + .../invgen/NetBSD_loop_int.c | 60 + .../invgen/SpamAssassin-loop.c | 57 + .../invgen/SpamAssassin-loop_ok.c | 59 + .../invgen/apache-escape-absolute.c | 74 + .../invgen/apache-get-tag.c | 123 + .../invgen/bind_expands_vars2.c | 30 + .../LinearArbitrary-SeaHorn/invgen/bound.c | 51 + .../LinearArbitrary-SeaHorn/invgen/down.c | 19 + .../invgen/fragtest_simple.c | 47 + .../invgen/gulwani_cegar1.c | 22 + .../invgen/gulwani_cegar2.c | 20 + .../invgen/gulwani_fig1a.c | 14 + .../LinearArbitrary-SeaHorn/invgen/half.c | 28 + .../LinearArbitrary-SeaHorn/invgen/heapsort.c | 50 + .../invgen/heapsort1.c | 45 + .../invgen/heapsort2.c | 45 + .../invgen/heapsort3.c | 55 + .../LinearArbitrary-SeaHorn/invgen/id_build.c | 35 + .../LinearArbitrary-SeaHorn/invgen/id_trans.c | 46 + .../LinearArbitrary-SeaHorn/invgen/ken-imp.c | 16 + .../invgen/large_const.c | 48 + .../invgen/mergesort.c | 122 + .../LinearArbitrary-SeaHorn/invgen/nest-if.c | 21 + .../LinearArbitrary-SeaHorn/invgen/nest-if1.c | 20 + .../LinearArbitrary-SeaHorn/invgen/nest-if2.c | 20 + .../LinearArbitrary-SeaHorn/invgen/nest-if3.c | 20 + .../LinearArbitrary-SeaHorn/invgen/nest-if4.c | 20 + .../LinearArbitrary-SeaHorn/invgen/nest-if5.c | 22 + .../LinearArbitrary-SeaHorn/invgen/nest-if6.c | 148 + .../LinearArbitrary-SeaHorn/invgen/nest-if7.c | 18 + .../LinearArbitrary-SeaHorn/invgen/nest-if8.c | 31 + .../LinearArbitrary-SeaHorn/invgen/nest-len.c | 22 + .../LinearArbitrary-SeaHorn/invgen/nested.c | 19 + .../LinearArbitrary-SeaHorn/invgen/nested1.c | 22 + .../LinearArbitrary-SeaHorn/invgen/nested2.c | 22 + .../LinearArbitrary-SeaHorn/invgen/nested3.c | 19 + .../LinearArbitrary-SeaHorn/invgen/nested4.c | 22 + .../LinearArbitrary-SeaHorn/invgen/nested5.c | 15 + .../LinearArbitrary-SeaHorn/invgen/nested6.c | 26 + .../LinearArbitrary-SeaHorn/invgen/nested7.c | 34 + .../LinearArbitrary-SeaHorn/invgen/nested8.c | 15 + .../LinearArbitrary-SeaHorn/invgen/nested9.c | 17 + .../LinearArbitrary-SeaHorn/invgen/puzzle1.c | 25 + .../invgen/quicksort.c | 70 + .../invgen/rajamani_1.c | 24 + .../invgen/sendmail-close-angle.c | 69 + .../invgen/sendmail-mime-fromqp.c | 92 + ...mail-mime7to8_arr_three_chars_no_test_ok.c | 62 + .../LinearArbitrary-SeaHorn/invgen/seq-len.c | 49 + .../LinearArbitrary-SeaHorn/invgen/seq-proc.c | 37 + .../LinearArbitrary-SeaHorn/invgen/seq-sim.c | 32 + .../LinearArbitrary-SeaHorn/invgen/seq-z3.c | 34 + .../LinearArbitrary-SeaHorn/invgen/seq.c | 27 + .../LinearArbitrary-SeaHorn/invgen/seq2.c | 34 + .../LinearArbitrary-SeaHorn/invgen/seq3.c | 35 + .../LinearArbitrary-SeaHorn/invgen/seq4.c | 37 + .../LinearArbitrary-SeaHorn/invgen/simple.c | 12 + .../invgen/simple_if.c | 20 + .../invgen/simple_nest.c | 17 + .../invgen/sort_instrumented.c | 33 + .../LinearArbitrary-SeaHorn/invgen/spin.c | 11 + .../LinearArbitrary-SeaHorn/invgen/spin1.c | 12 + .../LinearArbitrary-SeaHorn/invgen/split.c | 22 + .../invgen/string_concat-noarr.c | 26 + .../invgen/svd-some-loop.c | 60 + .../LinearArbitrary-SeaHorn/invgen/svd1.c | 44 + .../LinearArbitrary-SeaHorn/invgen/svd2.c | 50 + .../LinearArbitrary-SeaHorn/invgen/svd3.c | 55 + .../LinearArbitrary-SeaHorn/invgen/svd4.c | 57 + .../LinearArbitrary-SeaHorn/invgen/test.c | 19 + .../LinearArbitrary-SeaHorn/invgen/up-nd.c | 22 + .../invgen/up-nested.c | 20 + .../LinearArbitrary-SeaHorn/invgen/up.c | 19 + .../LinearArbitrary-SeaHorn/invgen/up2.c | 19 + .../LinearArbitrary-SeaHorn/invgen/up3.c | 19 + .../LinearArbitrary-SeaHorn/invgen/up4.c | 19 + .../LinearArbitrary-SeaHorn/invgen/up5.c | 19 + .../llreve/03_while_unsafe.c | 49 + .../llreve/barthe2_merged_safe.c | 25 + .../llreve/barthe_merged_safe.c | 26 + .../llreve/barthe_merged_unsafe.c | 30 + .../llreve/break_merged_safe.c | 26 + .../llreve/break_single_merged_safe.c | 21 + .../llreve/bug15_safe.c | 33 + .../llreve/cube_square_unsafe.c | 44 + .../llreve/fib_merged_safe.c | 31 + .../llreve/loop2_merged_safe.c | 23 + .../llreve/loop3_merged_safe.c | 27 + .../llreve/loop4_merged_safe.c | 24 + .../llreve/loop5_merged_unsafe.c | 20 + .../llreve/loop_merged_safe.c | 23 + .../llreve/loop_unswitching_merged_safe.c | 35 + .../llreve/nested-while_merged_safe.c | 37 + .../llreve/nested-while_merged_unsafe.c | 28 + .../llreve/simple-loop_merged_safe.c | 27 + .../llreve/square_twice_merged_safe.c | 29 + .../llreve/upcount_merged_safe.c | 28 + .../llreve/while_after_while_if_merged_safe.c | 38 + .../LinearArbitrary-SeaHorn/loops/.DS_Store | Bin 0 -> 8196 bytes .../loops/loop-invgen/LICENSE.txt | 1 + ...ie_ok_true-unreach-call_true-termination.c | 53 + ...ie_ok_true-unreach-call_true-termination.i | 42 + .../loops/loop-invgen/Makefile | 3 + ..._loop_true-unreach-call_true-termination.c | 36 + ..._loop_true-unreach-call_true-termination.i | 31 + .../loops/loop-invgen/README | 2 + ...loop_true-unreach-call_false-termination.c | 51 + ...loop_true-unreach-call_false-termination.i | 53 + ...olute_true-unreach-call_true-termination.c | 69 + ...olute_true-unreach-call_true-termination.i | 69 + ...t-tag_true-unreach-call_true-termination.c | 69 + ...t-tag_true-unreach-call_true-termination.i | 63 + .../loops/loop-invgen/assert.h | 5 + .../down_true-unreach-call_true-termination.c | 19 + .../down_true-unreach-call_true-termination.i | 26 + ...imple_true-unreach-call_true-termination.c | 43 + ...imple_true-unreach-call_true-termination.i | 41 + ...alf_2_true-unreach-call_true-termination.c | 22 + ...alf_2_true-unreach-call_true-termination.i | 27 + ...psort_true-unreach-call_true-termination.c | 53 + ...psort_true-unreach-call_true-termination.i | 56 + ...build_true-unreach-call_true-termination.c | 34 + ...build_true-unreach-call_true-termination.i | 20 + ...rans_false-unreach-call_true-termination.c | 38 + ...rans_false-unreach-call_true-termination.i | 24 + ...const_true-unreach-call_true-termination.c | 41 + ...const_true-unreach-call_true-termination.i | 38 + ...t-if3_true-unreach-call_true-termination.c | 17 + ...t-if3_true-unreach-call_true-termination.i | 24 + ...sted6_true-unreach-call_true-termination.c | 29 + ...sted6_true-unreach-call_true-termination.i | 34 + ...sted9_true-unreach-call_true-termination.c | 21 + ...sted9_true-unreach-call_true-termination.i | 26 + ...angle_true-unreach-call_true-termination.c | 48 + ...angle_true-unreach-call_true-termination.i | 42 + .../seq_true-unreach-call_true-termination.c | 30 + .../seq_true-unreach-call_true-termination.i | 33 + ...noarr_true-unreach-call_true-termination.c | 23 + ...noarr_true-unreach-call_true-termination.i | 28 + .../up_true-unreach-call_true-termination.c | 18 + .../up_true-unreach-call_true-termination.i | 25 + .../loops/loop-lit/.DS_Store | Bin 0 -> 6148 bytes .../loops/loop-lit/LICENSE.txt | 1 + .../loops/loop-lit/Makefile | 3 + .../loops/loop-lit/README | 1 + ...p2014_true-unreach-call_true-termination.c | 16 + ...014_true-unreach-call_true-termination.c.i | 19 + .../loops/loop-lit/assert.h | 10 + ...r2007_true-unreach-call_true-termination.c | 21 + ...007_true-unreach-call_true-termination.c.i | 26 + ...p2005_true-unreach-call_true-termination.c | 17 + ...005_true-unreach-call_true-termination.c.i | 20 + ...riant_true-unreach-call_true-termination.c | 21 + ...ant_true-unreach-call_true-termination.c.i | 23 + ...2005b_true-unreach-call_true-termination.c | 24 + ...05b_true-unreach-call_true-termination.c.i | 27 + ...s2003_true-unreach-call_true-termination.c | 18 + ...003_true-unreach-call_true-termination.c.i | 23 + .../loop-lit/ddlm2013_true-unreach-call.c | 32 + .../loop-lit/ddlm2013_true-unreach-call.i | 35 + ...008_false-unreach-call_false-termination.c | 26 + ...008_false-unreach-call_false-termination.i | 30 + ...j2007_true-unreach-call_true-termination.c | 19 + ...007_true-unreach-call_true-termination.c.i | 23 + ...2007b_true-unreach-call_true-termination.c | 19 + ...07b_true-unreach-call_true-termination.c.i | 23 + ...r2006_true-unreach-call_true-termination.c | 20 + ...006_true-unreach-call_true-termination.c.i | 25 + ...v2008_true-unreach-call_true-termination.c | 16 + ...008_true-unreach-call_true-termination.c.i | 21 + ...k2008_true-unreach-call_true-termination.c | 19 + ...008_true-unreach-call_true-termination.c.i | 24 + ...m2006_true-unreach-call_true-termination.c | 23 + ...006_true-unreach-call_true-termination.c.i | 25 + ...riant_true-unreach-call_true-termination.c | 26 + ...ant_true-unreach-call_true-termination.c.i | 28 + .../loops/loop-new/.DS_Store | Bin 0 -> 6148 bytes .../loops/loop-new/LICENSE.txt | 1 + .../loops/loop-new/Makefile | 3 + .../loops/loop-new/README | 1 + .../loops/loop-new/assert.h | 10 + ..._by_1_true-unreach-call_true-termination.c | 8 + ..._by_1_true-unreach-call_true-termination.i | 15 + ...riant_true-unreach-call_true-termination.c | 9 + ...riant_true-unreach-call_true-termination.i | 16 + ..._by_2_true-unreach-call_true-termination.c | 8 + ..._by_2_true-unreach-call_true-termination.i | 15 + ..._by_k_true-unreach-call_true-termination.c | 11 + ..._by_k_true-unreach-call_true-termination.i | 18 + ...ondet_true-unreach-call_true-termination.c | 13 + ...ondet_true-unreach-call_true-termination.i | 21 + .../half_true-unreach-call_true-termination.c | 14 + .../half_true-unreach-call_true-termination.i | 22 + ...ested_true-unreach-call_true-termination.c | 16 + ...ested_true-unreach-call_true-termination.i | 24 + ...se-unreach-call_true-termination.i.annot.c | 27 + ...ue-unreach-call_true-termination.i.annot.c | 27 + ...se-unreach-call_true-termination.i.annot.c | 33 + ...e-unreach-call_false-termination.i.annot.c | 26 + ...e-unreach-call_false-termination.i.annot.c | 26 + ...se-unreach-call_true-termination.i.annot.c | 25 + ...se-unreach-call_true-termination.i.annot.c | 24 + ...se-unreach-call_true-termination.i.annot.c | 24 + ...ue-unreach-call_true-termination.i.annot.c | 23 + ...se-unreach-call_true-termination.i.annot.c | 26 + ...e-unreach-call_false-termination.i.annot.c | 24 + ...se-unreach-call_true-termination.i.annot.c | 24 + ...ue-unreach-call_true-termination.i.annot.c | 23 + ...se-unreach-call_true-termination.i.annot.c | 41 + ...ue-unreach-call_true-termination.i.annot.c | 38 + ...se-unreach-call_true-termination.i.annot.c | 32 + ...ue-unreach-call_true-termination.i.annot.c | 28 + ...se-unreach-call_true-termination.i.annot.c | 42 + .../loops/trex01_true-unreach-call.i.annot.c | 46 + ...se-unreach-call_true-termination.i.annot.c | 29 + ...ue-unreach-call_true-termination.i.annot.c | 28 + ...se-unreach-call_true-termination.i.annot.c | 31 + .../loops/trex03_true-unreach-call.i.annot.c | 31 + ...e-unreach-call_false-termination.i.annot.c | 41 + ...e-unreach-call_false-termination.i.annot.c | 25 + ...e-unreach-call_false-termination.i.annot.c | 24 + ...e-unreach-call_false-termination.i.annot.c | 39 + ...se-unreach-call_true-termination.i.annot.c | 39 + .../LinearArbitrary-SeaHorn/pie/.DS_Store | Bin 0 -> 10244 bytes .../LinearArbitrary-SeaHorn/pie/ICE/.DS_Store | Bin 0 -> 8196 bytes .../LinearArbitrary-SeaHorn/pie/ICE/MSPL.txt | 48 + .../pie/ICE/README.txt | 28 + .../pie/ICE/benchmarks/.DS_Store | Bin 0 -> 6148 bytes .../pie/ICE/benchmarks/add.c | 35 + .../additional programs/cegar2_v12.bpl | 37 + .../additional programs/cegar2_v6.bpl | 31 + .../additional programs/cegar2_v9.bpl | 34 + .../additional programs/fig1_vars6.bpl | 27 + .../additional programs/fig1_vars9.bpl | 30 + .../additional programs/trex03_v12.bpl | 609 + .../additional programs/trex03_v3.bpl | 600 + .../additional programs/trex03_v6.bpl | 603 + .../additional programs/trex03_v9.bpl | 606 + .../benchmarks/additional programs/w1.v.bpl | 22 + .../benchmarks/additional programs/w2.v.bpl | 29 + .../benchmarks/afnp2014_true-unreach-call.c | 22 + .../afnp2014_true-unreach-call.c.bpl | 246 + .../pie/ICE/benchmarks/cegar1.bpl | 19 + .../pie/ICE/benchmarks/cegar1.c | 38 + .../pie/ICE/benchmarks/cegar1.v.bpl | 24 + .../pie/ICE/benchmarks/cegar1.v.c | 41 + .../pie/ICE/benchmarks/cegar2.bpl | 27 + .../pie/ICE/benchmarks/cegar2.c | 34 + .../pie/ICE/benchmarks/cegar2.v.bpl | 31 + .../pie/ICE/benchmarks/cegar2.v.c | 37 + .../benchmarks/cggmp2005_true-unreach-call.c | 23 + .../cggmp2005_true-unreach-call.c.bpl | 217 + .../pie/ICE/benchmarks/countud.c | 17 + .../pie/ICE/benchmarks/d01.c | 18 + .../pie/ICE/benchmarks/d03_not_from_hola.c | 16 + .../pie/ICE/benchmarks/d05.c | 23 + .../pie/ICE/benchmarks/d07_not_from_hola.c | 19 + .../pie/ICE/benchmarks/d12.c | 44 + .../pie/ICE/benchmarks/d15.c | 26 + .../pie/ICE/benchmarks/d17.c | 23 + .../pie/ICE/benchmarks/d19.c | 25 + .../pie/ICE/benchmarks/d24.c | 20 + .../pie/ICE/benchmarks/d25.c | 28 + .../pie/ICE/benchmarks/d28.c | 22 + .../pie/ICE/benchmarks/dec.bpl | 16 + .../pie/ICE/benchmarks/dec.c | 21 + .../pie/ICE/benchmarks/decn.bpl | 16 + .../pie/ICE/benchmarks/decn.c | 25 + .../pie/ICE/benchmarks/decn.v.bpl | 22 + .../pie/ICE/benchmarks/dtuc.c | 28 + .../pie/ICE/benchmarks/dutc.c | 29 + .../pie/ICE/benchmarks/ex14.bpl | 22 + .../pie/ICE/benchmarks/ex14.c | 29 + .../pie/ICE/benchmarks/ex14n.bpl | 23 + .../pie/ICE/benchmarks/ex14n.c | 30 + .../pie/ICE/benchmarks/ex14n.v.bpl | 27 + .../pie/ICE/benchmarks/ex14n.v.c | 33 + .../pie/ICE/benchmarks/ex23.bpl | 36 + .../pie/ICE/benchmarks/ex23.c | 35 + .../pie/ICE/benchmarks/ex23.v.bpl | 41 + .../pie/ICE/benchmarks/ex23.v.c | 40 + .../pie/ICE/benchmarks/ex7.bpl | 32 + .../pie/ICE/benchmarks/ex7.c | 43 + .../pie/ICE/benchmarks/ex7.v.bpl | 33 + .../pie/ICE/benchmarks/ex7n.c | 47 + .../pie/ICE/benchmarks/fig1.bpl | 19 + .../pie/ICE/benchmarks/fig1.c | 23 + .../pie/ICE/benchmarks/fig1.v.bpl | 24 + .../pie/ICE/benchmarks/fig1.v.c | 26 + .../pie/ICE/benchmarks/fig3.bpl | 32 + .../pie/ICE/benchmarks/fig3.c | 46 + .../pie/ICE/benchmarks/fig3.v.bpl | 41 + .../pie/ICE/benchmarks/fig3.v.c | 53 + .../pie/ICE/benchmarks/fig9.bpl | 16 + .../pie/ICE/benchmarks/fig9.c | 26 + .../pie/ICE/benchmarks/fig9.v.bpl | 22 + .../pie/ICE/benchmarks/fig9.v.c | 29 + .../pie/ICE/benchmarks/form22.bpl | 44 + .../pie/ICE/benchmarks/form22.c | 33 + .../pie/ICE/benchmarks/form25.bpl | 44 + .../pie/ICE/benchmarks/form25.c | 35 + .../pie/ICE/benchmarks/form27.bpl | 44 + .../pie/ICE/benchmarks/form27.c | 37 + .../pie/ICE/benchmarks/inc.bpl | 16 + .../pie/ICE/benchmarks/inc.c | 21 + .../pie/ICE/benchmarks/incn.bpl | 15 + .../pie/ICE/benchmarks/incn.c | 25 + .../pie/ICE/benchmarks/incn.v.bpl | 20 + .../pie/ICE/benchmarks/incn.v.c | 24 + .../pie/ICE/benchmarks/loops.c | 22 + .../pie/ICE/benchmarks/n_c11.c | 33 + .../pie/ICE/benchmarks/n_c11n.c | 36 + .../pie/ICE/benchmarks/n_c11n.v.c | 39 + .../pie/ICE/benchmarks/nc11.bpl | 23 + .../pie/ICE/benchmarks/nc11n.bpl | 25 + .../pie/ICE/benchmarks/nc11n.v.bpl | 30 + .../pie/ICE/benchmarks/sum01.c | 16 + .../pie/ICE/benchmarks/sum01.c.cleanup.bpl | 416 + .../pie/ICE/benchmarks/sum01.v.c | 21 + .../pie/ICE/benchmarks/sum01.v.c.bpl | 303 + .../pie/ICE/benchmarks/sum01_safe.c | 15 + .../pie/ICE/benchmarks/sum01_safe.v.c | 18 + .../pie/ICE/benchmarks/sum03.bpl | 394 + .../pie/ICE/benchmarks/sum03.c | 22 + .../pie/ICE/benchmarks/sum03.v.c | 26 + .../pie/ICE/benchmarks/sum03.v.c.bpl | 294 + .../pie/ICE/benchmarks/sum03_safe.c | 21 + .../pie/ICE/benchmarks/sum03_safe.v.c | 27 + .../pie/ICE/benchmarks/sum04.c | 19 + .../pie/ICE/benchmarks/sum04.c.cleanup.bpl | 403 + .../pie/ICE/benchmarks/sum04_safe.c | 18 + .../pie/ICE/benchmarks/sum04n.c | 22 + .../pie/ICE/benchmarks/sum04n.c.bpl | 285 + .../pie/ICE/benchmarks/sum04n.v.c | 24 + .../pie/ICE/benchmarks/sum04n.v.c.bpl | 303 + .../pie/ICE/benchmarks/tacas.bpl | 22 + .../pie/ICE/benchmarks/tacas.v.bpl | 27 + .../pie/ICE/benchmarks/tacas06.c | 29 + .../pie/ICE/benchmarks/tacas06.v.c | 33 + .../pie/ICE/benchmarks/trex01.bpl | 35 + .../pie/ICE/benchmarks/trex01.c | 39 + .../pie/ICE/benchmarks/trex01.v.bpl | 39 + .../pie/ICE/benchmarks/trex01.v.c | 43 + .../pie/ICE/benchmarks/trex03.c | 30 + .../pie/ICE/benchmarks/trex03.c.cleanup.bpl | 595 + .../pie/ICE/benchmarks/trex03.v.c | 34 + .../pie/ICE/benchmarks/trex03.v.c.bpl | 600 + .../pie/ICE/benchmarks/trex03_safe.c | 30 + .../pie/ICE/benchmarks/trex03_safe.v.c | 34 + ...ris.c_sendmail__tTflag_arr_one_loop_safe.c | 32 + .../pie/ICE/benchmarks/vsend.c | 32 + .../pie/ICE/benchmarks/vsend.c.cleanup.bpl | 439 + .../pie/ICE/benchmarks/vsend.v.c | 34 + .../pie/ICE/benchmarks/vsend.v.c.bpl | 336 + .../pie/ICE/benchmarks/w1.bpl | 17 + .../pie/ICE/benchmarks/w1.c | 25 + .../pie/ICE/benchmarks/w2.bpl | 24 + .../pie/ICE/benchmarks/w2.c | 31 + .../LinearArbitrary-SeaHorn/pie/hola/01.c | 20 + .../LinearArbitrary-SeaHorn/pie/hola/02.c | 24 + .../LinearArbitrary-SeaHorn/pie/hola/03.c | 23 + .../LinearArbitrary-SeaHorn/pie/hola/04.c | 22 + .../LinearArbitrary-SeaHorn/pie/hola/05.c | 24 + .../LinearArbitrary-SeaHorn/pie/hola/06.c | 24 + .../LinearArbitrary-SeaHorn/pie/hola/07.c | 47 + .../LinearArbitrary-SeaHorn/pie/hola/08.c | 30 + .../LinearArbitrary-SeaHorn/pie/hola/09.c | 49 + .../LinearArbitrary-SeaHorn/pie/hola/10.c | 27 + .../LinearArbitrary-SeaHorn/pie/hola/11.c | 22 + .../LinearArbitrary-SeaHorn/pie/hola/12.c | 39 + .../LinearArbitrary-SeaHorn/pie/hola/13.c | 29 + .../LinearArbitrary-SeaHorn/pie/hola/14.c | 21 + .../LinearArbitrary-SeaHorn/pie/hola/15.c | 30 + .../LinearArbitrary-SeaHorn/pie/hola/16.c | 24 + .../LinearArbitrary-SeaHorn/pie/hola/17.c | 20 + .../LinearArbitrary-SeaHorn/pie/hola/18.c | 24 + .../LinearArbitrary-SeaHorn/pie/hola/19.c | 21 + .../LinearArbitrary-SeaHorn/pie/hola/20.c | 39 + .../LinearArbitrary-SeaHorn/pie/hola/21.c | 37 + .../LinearArbitrary-SeaHorn/pie/hola/22.c | 22 + .../LinearArbitrary-SeaHorn/pie/hola/23.c | 20 + .../LinearArbitrary-SeaHorn/pie/hola/24.c | 17 + .../LinearArbitrary-SeaHorn/pie/hola/25.c | 31 + .../LinearArbitrary-SeaHorn/pie/hola/26.c | 24 + .../LinearArbitrary-SeaHorn/pie/hola/27.c | 23 + .../LinearArbitrary-SeaHorn/pie/hola/28.c | 22 + .../LinearArbitrary-SeaHorn/pie/hola/29.c | 33 + .../LinearArbitrary-SeaHorn/pie/hola/30.c | 19 + .../LinearArbitrary-SeaHorn/pie/hola/31.c | 34 + .../LinearArbitrary-SeaHorn/pie/hola/32.c | 27 + .../LinearArbitrary-SeaHorn/pie/hola/33.c | 40 + .../LinearArbitrary-SeaHorn/pie/hola/34.c | 22 + .../LinearArbitrary-SeaHorn/pie/hola/35.c | 15 + .../LinearArbitrary-SeaHorn/pie/hola/36.c | 72 + .../LinearArbitrary-SeaHorn/pie/hola/37.c | 20 + .../LinearArbitrary-SeaHorn/pie/hola/38.c | 19 + .../LinearArbitrary-SeaHorn/pie/hola/39.c | 63 + .../LinearArbitrary-SeaHorn/pie/hola/40.c | 31 + .../LinearArbitrary-SeaHorn/pie/hola/41.c | 28 + .../LinearArbitrary-SeaHorn/pie/hola/42.c | 40 + .../LinearArbitrary-SeaHorn/pie/hola/43.c | 30 + .../LinearArbitrary-SeaHorn/pie/hola/44.c | 35 + .../LinearArbitrary-SeaHorn/pie/hola/45.c | 45 + .../LinearArbitrary-SeaHorn/pie/hola/46.c | 23 + .../recursions/.DS_Store | Bin 0 -> 10244 bytes .../recursions/recursive-simple/LICENSE.txt | 1 + .../recursions/recursive-simple/Makefile | 3 + .../recursions/recursive-simple/README.txt | 2 + ...alls_false-unreach-call_true-termination.c | 22 + ...calls_true-unreach-call_true-termination.c | 22 + ...rrec_false-unreach-call_true-termination.c | 12 + ...errec_true-unreach-call_true-termination.c | 12 + .../fibo_10_false-unreach-call.c | 30 + .../fibo_10_true-unreach-call.c | 30 + .../fibo_15_false-unreach-call.c | 30 + .../fibo_15_true-unreach-call.c | 30 + .../fibo_20_false-unreach-call.c | 30 + .../fibo_20_true-unreach-call.c | 30 + .../fibo_25_false-unreach-call.c | 30 + .../fibo_25_true-unreach-call.c | 30 + .../fibo_2calls_10_false-unreach-call.c | 42 + .../fibo_2calls_10_true-unreach-call.c | 42 + .../fibo_2calls_15_false-unreach-call.c | 42 + .../fibo_2calls_15_true-unreach-call.c | 42 + .../fibo_2calls_20_false-unreach-call.c | 42 + .../fibo_2calls_20_true-unreach-call.c | 42 + .../fibo_2calls_25_false-unreach-call.c | 42 + .../fibo_2calls_25_true-unreach-call.c | 42 + ...ls_2_false-unreach-call_true-termination.c | 42 + ...lls_2_true-unreach-call_true-termination.c | 42 + ...ls_4_false-unreach-call_true-termination.c | 42 + ...lls_4_true-unreach-call_true-termination.c | 42 + ...ls_5_false-unreach-call_true-termination.c | 42 + ...lls_5_true-unreach-call_true-termination.c | 42 + ...ls_6_false-unreach-call_true-termination.c | 42 + ...lls_6_true-unreach-call_true-termination.c | 42 + .../fibo_2calls_8_false-unreach-call.c | 42 + ...lls_8_true-unreach-call_true-termination.c | 42 + ...bo_5_false-unreach-call_true-termination.c | 30 + ...ibo_5_true-unreach-call_true-termination.c | 30 + .../fibo_7_false-unreach-call.c | 30 + .../fibo_7_true-unreach-call.c | 30 + .../id2_b2_o3_true-unreach-call.c | 27 + .../id2_b3_o2_false-unreach-call.c | 27 + .../id2_b3_o5_true-unreach-call.c | 27 + .../id2_b5_o10_true-unreach-call.c | 27 + ...5_o5_false-unreach-call_true-termination.c | 23 + ...i5_o5_true-unreach-call_true-termination.c | 23 + .../id_b2_o3_true-unreach-call.c | 17 + .../id_b3_o2_false-unreach-call.c | 17 + .../id_b3_o5_true-unreach-call.c | 17 + .../id_b5_o10_true-unreach-call.c | 17 + ..._o10_false-unreach-call_true-termination.c | 15 + ...0_o10_true-unreach-call_true-termination.c | 15 + ..._o15_false-unreach-call_true-termination.c | 15 + ...5_o15_true-unreach-call_true-termination.c | 15 + ..._o20_false-unreach-call_true-termination.c | 15 + ...0_o20_true-unreach-call_true-termination.c | 15 + ..._o25_false-unreach-call_true-termination.c | 15 + ...5_o25_true-unreach-call_true-termination.c | 15 + ...5_o5_false-unreach-call_true-termination.c | 15 + ...i5_o5_true-unreach-call_true-termination.c | 15 + .../id_o1000_false-unreach-call.c | 15 + .../id_o100_false-unreach-call.c | 15 + .../id_o10_false-unreach-call.c | 15 + .../id_o200_false-unreach-call.c | 15 + .../id_o20_false-unreach-call.c | 15 + .../id_o3_false-unreach-call.c | 15 + ...10x0_false-unreach-call_true-termination.c | 18 + ..._10x0_true-unreach-call_true-termination.c | 18 + ...15x0_false-unreach-call_true-termination.c | 18 + ..._15x0_true-unreach-call_true-termination.c | 18 + ...20x0_false-unreach-call_true-termination.c | 18 + ..._20x0_true-unreach-call_true-termination.c | 18 + ...25x0_false-unreach-call_true-termination.c | 18 + ..._25x0_true-unreach-call_true-termination.c | 18 + ..._2x3_false-unreach-call_true-termination.c | 18 + ...m_2x3_true-unreach-call_true-termination.c | 18 + .../sum_non_eq_false-unreach-call.c | 19 + .../sum_non_eq_true-unreach-call.c | 19 + ..._non_false-unreach-call_true-termination.c | 19 + ...m_non_true-unreach-call_true-termination.c | 19 + ...ann01_true-unreach-call_true-no-overflow.c | 46 + ...h-call_true-no-overflow_true-termination.c | 45 + ...ann03_true-unreach-call_true-no-overflow.c | 46 + ...ann04_true-unreach-call_true-no-overflow.c | 46 + ...h-call_true-no-overflow_true-termination.c | 45 + ...ition02WithOverflowBug_false-no-overflow.c | 35 + ...h-call_true-no-overflow_true-termination.c | 45 + .../recursive/Addition03_false-no-overflow.c | 35 + ...h-call_true-no-overflow_true-termination.c | 35 + ...h-call_true-no-overflow_true-termination.c | 33 + ...h-call_true-no-overflow_true-termination.c | 49 + ...enOdd03WithOverflowBug_false-no-overflow.c | 46 + ...h-call_true-no-overflow_true-termination.c | 49 + ...cci01_true-unreach-call_true-no-overflow.c | 38 + ...h-call_true-no-overflow_true-termination.c | 33 + ...h-call_true-no-overflow_true-termination.c | 37 + ...h-call_true-no-overflow_true-termination.c | 37 + ...h-call_true-no-overflow_true-termination.c | 34 + .../recursions/recursive/LICENSE.txt | 23 + .../recursions/recursive/Makefile | 6 + ...h-call_true-no-overflow_true-termination.c | 32 + ...h-call_true-no-overflow_true-termination.c | 32 + ...h-call_true-no-overflow_true-termination.c | 41 + ...-call_true-no-overflow_false-termination.c | 100 + .../recursions/recursive/README.txt | 2 + ...h-call_true-no-overflow_true-termination.c | 43 + ...h-call_true-no-overflow_true-termination.c | 57 + ...h-call_true-no-overflow_true-termination.c | 56 + ...h-call_true-no-overflow_true-termination.c | 39 + ...h-call_true-no-overflow_true-termination.c | 37 + .../sharma_splitter/.DS_Store | Bin 0 -> 6148 bytes .../sharma_splitter/cav.c | 25 + .../sharma_splitter/ex1.c | 24 + .../sharma_splitter/ex2.c | 23 + .../sharma_splitter/heapsort1.c | 50 + .../sharma_splitter/popl.c | 15 + .../sharma_splitter/spam1.c | 58 + .../sharma_splitter/svd1.c | 56 + .../cav/05.c | 34 + .../cav/07.c | 24 + .../cav/09.c | 62 + .../cav/12.c | 46 + .../cav/15.c | 29 + .../cav/19.c | 39 + .../cav/20.c | 34 + .../cav/24.c | 19 + .../cav/25.c | 39 + .../cav/28.c | 31 + .../cav/31.c | 44 + .../cav/33.c | 48 + .../cav/35.c | 21 + .../cav/37.c | 28 + .../cav/39.c | 65 + .../cav/f2.c | 24 + .../cav/gulv.c | 23 + .../cav/gulv_simp.c | 25 + .../cav/myassert.h | 8 + .../cav/pldi082_unbounded.c | 30 + .../cav/substring1.c | 29 + .../cav/xy0.c | 24 + .../cav/xy10.c | 24 + .../cav/xy4.c | 24 + .../cav/xyz.c | 25 + .../cav/xyz2.c | 26 + .../crafted/const_safe1.c | 13 + .../crafted/const_unsafe1.c | 13 + .../crafted/diamond_safe1.c | 16 + .../crafted/diamond_safe2.c | 41 + .../crafted/diamond_unsafe1.c | 16 + .../crafted/diamond_unsafe2.c | 41 + .../crafted/functions_safe1.c | 15 + .../crafted/functions_unsafe1.c | 15 + .../crafted/multivar_safe1.c | 13 + .../crafted/multivar_unsafe1.c | 13 + .../crafted/myassert.h | 8 + .../crafted/nested_safe1.c | 18 + .../crafted/nested_unsafe1.c | 18 + .../crafted/overflow_safe1.c | 11 + .../crafted/overflow_unsafe1.c | 11 + .../crafted/phases_safe1.c | 15 + .../crafted/phases_unsafe1.c | 15 + .../crafted/simple_safe1.c | 11 + .../crafted/simple_safe2.c | 11 + .../crafted/simple_safe3.c | 12 + .../crafted/simple_safe4.c | 11 + .../crafted/simple_unsafe1.c | 11 + .../crafted/simple_unsafe2.c | 11 + .../crafted/simple_unsafe3.c | 12 + .../crafted/simple_unsafe4.c | 11 + .../crafted/underapprox_safe1.c | 13 + .../crafted/underapprox_safe2.c | 13 + .../crafted/underapprox_unsafe1.c | 13 + .../crafted/underapprox_unsafe2.c | 13 + .../dagger/barbr.c | 170 + .../dagger/barbrprime.c | 159 + .../dagger/bk-nat.c | 59 + .../dagger/bkley.c | 58 + .../dagger/cars.c | 60 + .../dagger/efm.c | 86 + .../dagger/ex1.c | 27 + .../dagger/ex2.c | 45 + .../dagger/fig1a.c | 25 + .../dagger/fig2.c | 23 + .../dagger/hsort.c | 76 + .../dagger/hsortprime.c | 71 + .../dagger/lifnat.c | 146 + .../dagger/lifnatprime.c | 138 + .../dagger/lifo.c | 137 + .../dagger/myassert.h | 9 + .../dagger/seesaw.c | 52 + .../dagger/substring1.c | 27 + .../dagger/swim.c | 116 + .../dagger/swim1.c | 117 + .../invgen/MADWiFi-encode_ie_ok.c | 50 + .../invgen/NetBSD_g_Ctoc.c | 43 + .../invgen/NetBSD_glob3_iny.c | 122 + .../invgen/NetBSD_loop.c | 52 + .../invgen/NetBSD_loop_int.c | 63 + .../invgen/SpamAssassin-loop.c | 57 + .../invgen/SpamAssassin-loop_ok.c | 59 + .../invgen/apache-escape-absolute.c | 70 + .../invgen/apache-get-tag.c | 120 + .../invgen/bind_expands_vars2.c | 24 + .../invgen/bound.c | 39 + .../invgen/down.c | 18 + .../invgen/fragtest_simple.c | 47 + .../invgen/gulwani_cegar1.c | 17 + .../invgen/gulwani_cegar2.c | 19 + .../invgen/half.c | 25 + .../invgen/heapsort.c | 48 + .../invgen/heapsort1.c | 42 + .../invgen/heapsort2.c | 42 + .../invgen/heapsort3.c | 52 + .../invgen/id_build.c | 36 + .../invgen/id_trans.c | 40 + .../invgen/ken-imp.c | 14 + .../invgen/mergesort.c | 86 + .../invgen/myassert.h | 12 + .../invgen/nest-if.c | 19 + .../invgen/nest-if1.c | 19 + .../invgen/nest-if2.c | 20 + .../invgen/nest-if3.c | 19 + .../invgen/nest-if4.c | 19 + .../invgen/nest-if5.c | 20 + .../invgen/nest-if7.c | 18 + .../invgen/nest-if8.c | 29 + .../invgen/nest-len.c | 22 + .../invgen/nested.c | 19 + .../invgen/nested1.c | 24 + .../invgen/nested2.c | 23 + .../invgen/nested3.c | 19 + .../invgen/nested4.c | 19 + .../invgen/nested5.c | 15 + .../invgen/nested6.c | 24 + .../invgen/nested7.c | 28 + .../invgen/nested8.c | 14 + .../invgen/nested9.c | 14 + .../invgen/puzzle1.c | 25 + .../invgen/rajamani_1.c | 24 + .../invgen/sendmail-close-angle.c | 67 + .../invgen/sendmail-mime-fromqp.c | 92 + ...mail-mime7to8_arr_three_chars_no_test_ok.c | 60 + .../invgen/seq-len.c | 44 + .../invgen/seq-proc.c | 33 + .../invgen/seq-sim.c | 30 + .../invgen/seq-z3.c | 30 + .../invgen/seq.c | 26 + .../invgen/seq2.c | 38 + .../invgen/seq3.c | 31 + .../invgen/simple.c | 12 + .../invgen/simple_if.c | 18 + .../invgen/simple_nest.c | 16 + .../invgen/sort_instrumented.c | 45 + .../invgen/spin.c | 13 + .../invgen/spin1.c | 14 + .../invgen/split.c | 20 + .../invgen/string_concat-noarr.c | 26 + .../invgen/svd-some-loop.c | 54 + .../invgen/svd1.c | 54 + .../invgen/svd2.c | 56 + .../invgen/svd3.c | 65 + .../invgen/svd4.c | 62 + .../invgen/test.c | 22 + .../invgen/up-nd.c | 23 + .../invgen/up-nested.c | 38 + .../invgen/up.c | 18 + .../invgen/up3.c | 19 + .../invgen/up5.c | 19 + .../svcomp/bubble_sort_false.c | 1166 + .../svcomp/bubble_sort_true.c | 99 + .../svcomp/compact_false.c | 21 + .../svcomp/count_up_down_false.c | 19 + .../svcomp/count_up_down_true.c | 20 + .../svcomp/eureka_01_false.c | 59 + .../svcomp/eureka_01_true.c | 58 + .../svcomp/eureka_05_true.c | 40 + .../svcomp/for_bounded_loop1_false.c | 26 + .../svcomp/for_infinite_loop_1_true.c | 21 + .../svcomp/for_infinite_loop_2_true.c | 21 + .../svcomp/heavy_true.c | 19 + .../svcomp/insertion_sort_false.c | 25 + .../svcomp/insertion_sort_true.c | 25 + .../svcomp/invert_string_false.c | 33 + .../svcomp/invert_string_true.c | 33 + .../svcomp/linear_sea.ch_true.c | 22 + .../svcomp/linear_search_false.c | 23 + .../svcomp/lu.cmp_true.c | 151 + .../svcomp/ludcmp_false.c | 151 + .../svcomp/matrix_false.c | 31 + .../svcomp/matrix_true.c | 28 + .../svcomp/myassert.h | 8 + .../svcomp/n.c11_true.c | 31 + .../svcomp/n.c24_true.c | 89 + .../svcomp/n.c40_true.c | 19 + .../svcomp/nec11_false.c | 30 + .../svcomp/nec20_false.c | 38 + .../svcomp/nec40_true.c | 25 + .../svcomp/sum01_bug02_false.c | 17 + .../sum01_bug02_sum01_bug02_base.case_false.c | 16 + .../svcomp/sum01_false.c | 16 + .../svcomp/sum01_true.c | 15 + .../svcomp/sum03_false.c | 22 + .../svcomp/sum03_true.c | 21 + .../svcomp/sum04_false.c | 17 + .../svcomp/sum04_true.c | 16 + .../svcomp/terminator_01_false.c | 19 + .../svcomp/terminator_02_false.c | 33 + .../svcomp/terminator_02_true.c | 35 + .../svcomp/trex02_false.c | 28 + .../svcomp/trex02_true.c | 28 + .../svcomp/trex03_false.c | 30 + .../svcomp/trex03_true.c | 28 + .../svcomp/veris.c_NetBSD-libc__loop_true.c | 36 + ...c_OpenSER__cases1_stripFullBoth_arr_true.c | 192 + ...ris.c_sendmail__tTflag_arr_one_loop_true.c | 30 + .../svcomp/verisec_NetBSD-libc__loop_false.c | 37 + ..._OpenSER__cases1_stripFullBoth_arr_false.c | 190 + ...isec_sendmail__tTflag_arr_one_loop_false.c | 31 + .../svcomp/vogal_false.c | 43 + .../svcomp/vogal_true.c | 44 + .../svcomp/while_infinite_loop_1_true.c | 17 + .../svcomp/while_infinite_loop_2_true.c | 16 + .../svcomp/while_infinite_loop_3_true.c | 31 + .../svcomp/while_infinite_loop_4_false.c | 32 + data/benchmarks/code2inv/1.c | 18 + data/benchmarks/code2inv/10.c | 22 + data/benchmarks/code2inv/100.c | 20 + data/benchmarks/code2inv/101.c | 18 + data/benchmarks/code2inv/102.c | 18 + data/benchmarks/code2inv/103.c | 15 + data/benchmarks/code2inv/104.c | 21 + data/benchmarks/code2inv/105.c | 21 + data/benchmarks/code2inv/106.c | 17 + data/benchmarks/code2inv/107.c | 17 + data/benchmarks/code2inv/108.c | 17 + data/benchmarks/code2inv/109.c | 18 + data/benchmarks/code2inv/11.c | 25 + data/benchmarks/code2inv/110.c | 21 + data/benchmarks/code2inv/111.c | 21 + data/benchmarks/code2inv/112.c | 24 + data/benchmarks/code2inv/113.c | 24 + data/benchmarks/code2inv/114.c | 20 + data/benchmarks/code2inv/115.c | 20 + data/benchmarks/code2inv/116.c | 23 + data/benchmarks/code2inv/117.c | 23 + data/benchmarks/code2inv/118.c | 21 + data/benchmarks/code2inv/119.c | 21 + data/benchmarks/code2inv/12.c | 25 + data/benchmarks/code2inv/120.c | 20 + data/benchmarks/code2inv/121.c | 20 + data/benchmarks/code2inv/122.c | 24 + data/benchmarks/code2inv/123.c | 24 + data/benchmarks/code2inv/124.c | 22 + data/benchmarks/code2inv/125.c | 22 + data/benchmarks/code2inv/126.c | 25 + data/benchmarks/code2inv/127.c | 25 + data/benchmarks/code2inv/128.c | 16 + data/benchmarks/code2inv/129.c | 19 + data/benchmarks/code2inv/13.c | 25 + data/benchmarks/code2inv/130.c | 21 + data/benchmarks/code2inv/131.c | 21 + data/benchmarks/code2inv/132.c | 16 + data/benchmarks/code2inv/133.c | 17 + data/benchmarks/code2inv/14.c | 25 + data/benchmarks/code2inv/15.c | 20 + data/benchmarks/code2inv/16.c | 20 + data/benchmarks/code2inv/17.c | 19 + data/benchmarks/code2inv/18.c | 19 + data/benchmarks/code2inv/19.c | 21 + data/benchmarks/code2inv/2.c | 18 + data/benchmarks/code2inv/20.c | 21 + data/benchmarks/code2inv/21.c | 20 + data/benchmarks/code2inv/22.c | 20 + data/benchmarks/code2inv/23.c | 18 + data/benchmarks/code2inv/24.c | 18 + data/benchmarks/code2inv/25.c | 15 + data/benchmarks/code2inv/26.c | 18 + data/benchmarks/code2inv/27.c | 18 + data/benchmarks/code2inv/28.c | 18 + data/benchmarks/code2inv/29.c | 18 + data/benchmarks/code2inv/3.c | 15 + data/benchmarks/code2inv/30.c | 15 + data/benchmarks/code2inv/31.c | 21 + data/benchmarks/code2inv/32.c | 21 + data/benchmarks/code2inv/33.c | 21 + data/benchmarks/code2inv/34.c | 21 + data/benchmarks/code2inv/35.c | 27 + data/benchmarks/code2inv/36.c | 27 + data/benchmarks/code2inv/37.c | 29 + data/benchmarks/code2inv/38.c | 20 + data/benchmarks/code2inv/39.c | 20 + data/benchmarks/code2inv/4.c | 14 + data/benchmarks/code2inv/40.c | 29 + data/benchmarks/code2inv/41.c | 29 + data/benchmarks/code2inv/42.c | 31 + data/benchmarks/code2inv/43.c | 30 + data/benchmarks/code2inv/44.c | 30 + data/benchmarks/code2inv/45.c | 29 + data/benchmarks/code2inv/46.c | 29 + data/benchmarks/code2inv/47.c | 31 + data/benchmarks/code2inv/48.c | 30 + data/benchmarks/code2inv/49.c | 30 + data/benchmarks/code2inv/5.c | 17 + data/benchmarks/code2inv/50.c | 27 + data/benchmarks/code2inv/51.c | 27 + data/benchmarks/code2inv/52.c | 29 + data/benchmarks/code2inv/53.c | 32 + data/benchmarks/code2inv/54.c | 32 + data/benchmarks/code2inv/55.c | 34 + data/benchmarks/code2inv/56.c | 33 + data/benchmarks/code2inv/57.c | 33 + data/benchmarks/code2inv/58.c | 32 + data/benchmarks/code2inv/59.c | 32 + data/benchmarks/code2inv/6.c | 19 + data/benchmarks/code2inv/60.c | 34 + data/benchmarks/code2inv/61.c | 33 + data/benchmarks/code2inv/62.c | 33 + data/benchmarks/code2inv/63.c | 13 + data/benchmarks/code2inv/64.c | 13 + data/benchmarks/code2inv/65.c | 13 + data/benchmarks/code2inv/66.c | 13 + data/benchmarks/code2inv/67.c | 15 + data/benchmarks/code2inv/68.c | 15 + data/benchmarks/code2inv/69.c | 17 + data/benchmarks/code2inv/7.c | 22 + data/benchmarks/code2inv/70.c | 17 + data/benchmarks/code2inv/71.c | 23 + data/benchmarks/code2inv/72.c | 23 + data/benchmarks/code2inv/73.c | 25 + data/benchmarks/code2inv/74.c | 26 + data/benchmarks/code2inv/75.c | 26 + data/benchmarks/code2inv/76.c | 28 + data/benchmarks/code2inv/77.c | 22 + data/benchmarks/code2inv/78.c | 22 + data/benchmarks/code2inv/79.c | 24 + data/benchmarks/code2inv/8.c | 22 + data/benchmarks/code2inv/80.c | 25 + data/benchmarks/code2inv/81.c | 25 + data/benchmarks/code2inv/82.c | 27 + data/benchmarks/code2inv/83.c | 17 + data/benchmarks/code2inv/84.c | 17 + data/benchmarks/code2inv/85.c | 20 + data/benchmarks/code2inv/86.c | 20 + data/benchmarks/code2inv/87.c | 30 + data/benchmarks/code2inv/88.c | 30 + data/benchmarks/code2inv/89.c | 33 + data/benchmarks/code2inv/9.c | 22 + data/benchmarks/code2inv/90.c | 33 + data/benchmarks/code2inv/91.c | 12 + data/benchmarks/code2inv/92.c | 14 + data/benchmarks/code2inv/93.c | 33 + data/benchmarks/code2inv/94.c | 22 + data/benchmarks/code2inv/95.c | 23 + data/benchmarks/code2inv/96.c | 23 + data/benchmarks/code2inv/97.c | 23 + data/benchmarks/code2inv/98.c | 23 + data/benchmarks/code2inv/99.c | 20 + data/benchmarks/diffy_cav21_bench/brs1.c | 43 + data/benchmarks/diffy_cav21_bench/brs2.c | 43 + data/benchmarks/diffy_cav21_bench/brs3.c | 43 + data/benchmarks/diffy_cav21_bench/brs4.c | 43 + data/benchmarks/diffy_cav21_bench/brs5.c | 43 + data/benchmarks/diffy_cav21_bench/cond1.c | 51 + data/benchmarks/diffy_cav21_bench/cond2.c | 42 + data/benchmarks/diffy_cav21_bench/cond2s1.c | 46 + data/benchmarks/diffy_cav21_bench/cond2s2.c | 46 + data/benchmarks/diffy_cav21_bench/conda.c | 46 + data/benchmarks/diffy_cav21_bench/condg.c | 49 + data/benchmarks/diffy_cav21_bench/condi.c | 43 + data/benchmarks/diffy_cav21_bench/condm.c | 42 + data/benchmarks/diffy_cav21_bench/condn.c | 42 + data/benchmarks/diffy_cav21_bench/condnl1.c | 44 + data/benchmarks/diffy_cav21_bench/conds.c | 51 + data/benchmarks/diffy_cav21_bench/conds2.c | 44 + data/benchmarks/diffy_cav21_bench/condsc.c | 51 + data/benchmarks/diffy_cav21_bench/condss.c | 53 + data/benchmarks/diffy_cav21_bench/condss1.c | 53 + data/benchmarks/diffy_cav21_bench/condss2.c | 52 + data/benchmarks/diffy_cav21_bench/condss3.c | 52 + data/benchmarks/diffy_cav21_bench/eqn1.c | 39 + data/benchmarks/diffy_cav21_bench/eqn2.c | 41 + data/benchmarks/diffy_cav21_bench/eqn3.c | 39 + data/benchmarks/diffy_cav21_bench/eqn4.c | 39 + data/benchmarks/diffy_cav21_bench/eqn5.c | 39 + data/benchmarks/diffy_cav21_bench/ifcomp.c | 54 + data/benchmarks/diffy_cav21_bench/ifeqn1.c | 45 + data/benchmarks/diffy_cav21_bench/ifeqn2.c | 45 + data/benchmarks/diffy_cav21_bench/ifeqn3.c | 45 + data/benchmarks/diffy_cav21_bench/ifeqn4.c | 45 + data/benchmarks/diffy_cav21_bench/ifeqn5.c | 45 + data/benchmarks/diffy_cav21_bench/ifncomp.c | 54 + data/benchmarks/diffy_cav21_bench/indp1.c | 44 + data/benchmarks/diffy_cav21_bench/indp2.c | 44 + data/benchmarks/diffy_cav21_bench/indp3.c | 49 + data/benchmarks/diffy_cav21_bench/indp4.c | 44 + data/benchmarks/diffy_cav21_bench/indp5.c | 52 + data/benchmarks/diffy_cav21_bench/modn.c | 40 + data/benchmarks/diffy_cav21_bench/modp.c | 40 + data/benchmarks/diffy_cav21_bench/mods.c | 50 + data/benchmarks/diffy_cav21_bench/ms1.c | 39 + data/benchmarks/diffy_cav21_bench/ms2.c | 39 + data/benchmarks/diffy_cav21_bench/ms3.c | 39 + data/benchmarks/diffy_cav21_bench/ms4.c | 39 + data/benchmarks/diffy_cav21_bench/ms5.c | 39 + data/benchmarks/diffy_cav21_bench/ncomp.c | 45 + .../benchmarks/diffy_cav21_bench/nested-as1.c | 53 + .../benchmarks/diffy_cav21_bench/nested-as2.c | 53 + .../benchmarks/diffy_cav21_bench/nested-as3.c | 54 + .../diffy_cav21_bench/nested-nli1.c | 43 + .../diffy_cav21_bench/nested-nli2.c | 43 + .../diffy_cav21_bench/nested-nli3.c | 44 + .../diffy_cav21_bench/nested-nlj1.c | 41 + .../diffy_cav21_bench/nested-nlj2.c | 43 + .../diffy_cav21_bench/nested-nlj3.c | 44 + .../diffy_cav21_bench/nested-nsna1.c | 49 + .../diffy_cav21_bench/nested-nsna2.c | 49 + .../diffy_cav21_bench/nested-nsna3.c | 48 + .../benchmarks/diffy_cav21_bench/nested-sa1.c | 46 + .../diffy_cav21_bench/nested-sna1.c | 49 + .../diffy_cav21_bench/nested-sna2.c | 47 + .../diffy_cav21_bench/nested-sna3.c | 48 + .../benchmarks/diffy_cav21_bench/nested-ss1.c | 58 + .../benchmarks/diffy_cav21_bench/nested-ss2.c | 57 + .../benchmarks/diffy_cav21_bench/nested-ss3.c | 57 + .../benchmarks/diffy_cav21_bench/nested-sum.c | 35 + .../diffy_cav21_bench/nested-unb1.c | 39 + .../diffy_cav21_bench/nested-unb2.c | 39 + .../diffy_cav21_bench/nested-unb3.c | 39 + data/benchmarks/diffy_cav21_bench/nsqm-if.c | 44 + data/benchmarks/diffy_cav21_bench/nsqm.c | 39 + data/benchmarks/diffy_cav21_bench/pcomp.c | 45 + data/benchmarks/diffy_cav21_bench/res1.c | 45 + data/benchmarks/diffy_cav21_bench/res1o.c | 46 + data/benchmarks/diffy_cav21_bench/res2.c | 55 + data/benchmarks/diffy_cav21_bench/res2o.c | 55 + data/benchmarks/diffy_cav21_bench/s12if.c | 50 + data/benchmarks/diffy_cav21_bench/s1if.c | 41 + data/benchmarks/diffy_cav21_bench/s1lif.c | 46 + data/benchmarks/diffy_cav21_bench/s22if.c | 50 + data/benchmarks/diffy_cav21_bench/s2if.c | 41 + data/benchmarks/diffy_cav21_bench/s2lif.c | 46 + data/benchmarks/diffy_cav21_bench/s32if.c | 50 + data/benchmarks/diffy_cav21_bench/s3if.c | 41 + data/benchmarks/diffy_cav21_bench/s3lif.c | 46 + data/benchmarks/diffy_cav21_bench/s42if.c | 51 + data/benchmarks/diffy_cav21_bench/s4if.c | 41 + data/benchmarks/diffy_cav21_bench/s4lif.c | 46 + data/benchmarks/diffy_cav21_bench/s52if.c | 51 + data/benchmarks/diffy_cav21_bench/s5if.c | 41 + data/benchmarks/diffy_cav21_bench/s5lif.c | 46 + .../diffy_cav21_bench/sanfoundry_27_ground.c | 40 + data/benchmarks/diffy_cav21_bench/sina1.c | 40 + data/benchmarks/diffy_cav21_bench/sina2.c | 45 + data/benchmarks/diffy_cav21_bench/sina3.c | 48 + data/benchmarks/diffy_cav21_bench/sina4.c | 48 + data/benchmarks/diffy_cav21_bench/sina5.c | 53 + data/benchmarks/diffy_cav21_bench/sqm-if.c | 44 + data/benchmarks/diffy_cav21_bench/sqm.c | 39 + data/benchmarks/diffy_cav21_bench/ss1.c | 46 + data/benchmarks/diffy_cav21_bench/ss2.c | 60 + data/benchmarks/diffy_cav21_bench/ss3.c | 52 + data/benchmarks/diffy_cav21_bench/ss4.c | 48 + data/benchmarks/diffy_cav21_bench/ssina.c | 56 + .../standard_compareModified_ground.c | 34 + .../standard_compare_ground.c | 33 + .../standard_copy1_ground-1.c | 27 + .../standard_copy2_ground-2.c | 29 + .../standard_copy3_ground-1.c | 32 + .../standard_copy4_ground-1.c | 35 + .../standard_copy5_ground-1.c | 38 + .../standard_copy6_ground-2.c | 42 + .../standard_copy7_ground-2.c | 44 + .../standard_copy8_ground-1.c | 48 + .../standard_copy9_ground-2.c | 50 + .../standard_copyInitSum2_ground-2.c | 29 + .../standard_copyInitSum3_ground.c | 33 + .../standard_copyInitSum_ground.c | 33 + .../standard_copyInit_ground.c | 25 + .../standard_init1_ground-2.c | 22 + .../standard_init2_ground-2.c | 27 + .../standard_init3_ground-2.c | 31 + .../standard_init4_ground-2.c | 36 + .../standard_init5_ground-1.c | 41 + .../standard_init6_ground-2.c | 46 + .../standard_init7_ground-2.c | 51 + .../standard_init8_ground-2.c | 56 + .../standard_init9_ground-2.c | 62 + .../standard_maxInArray_ground.c | 32 + .../standard_minInArray_ground-2.c | 33 + .../standard_password_ground.c | 32 + .../diffy_cav21_bench/standard_running-2.c | 38 + .../standard_seq_init_ground.c | 23 + .../standard_strcmp_ground.c | 31 + .../standard_vector_difference_ground.c | 37 + .../diffy_cav21_bench/unreach-call.prp | 1 + data/benchmarks/diffy_cav21_bench/zero_sum1.c | 36 + data/benchmarks/diffy_cav21_bench/zero_sum2.c | 46 + data/benchmarks/diffy_cav21_bench/zero_sum3.c | 56 + data/benchmarks/diffy_cav21_bench/zero_sum4.c | 66 + data/benchmarks/diffy_cav21_bench/zero_sum5.c | 76 + .../diffy_cav21_bench/zero_sum_const1.c | 36 + .../diffy_cav21_bench/zero_sum_const2.c | 46 + .../diffy_cav21_bench/zero_sum_const3.c | 56 + .../diffy_cav21_bench/zero_sum_const4.c | 66 + .../diffy_cav21_bench/zero_sum_const5.c | 76 + .../diffy_cav21_bench/zero_sum_const_m2.c | 46 + .../diffy_cav21_bench/zero_sum_const_m3.c | 56 + .../diffy_cav21_bench/zero_sum_const_m4.c | 66 + .../diffy_cav21_bench/zero_sum_const_m5.c | 76 + .../diffy_cav21_bench/zero_sum_const_m6.c | 86 + .../diffy_cav21_bench/zero_sum_m2.c | 46 + .../diffy_cav21_bench/zero_sum_m3.c | 56 + .../diffy_cav21_bench/zero_sum_m4.c | 66 + .../diffy_cav21_bench/zero_sum_m5.c | 76 + .../diffy_cav21_bench/zero_sum_m6.c | 86 + data/benchmarks/dillig/esop2010_casestudy.txt | 645 + data/benchmarks/dillig/safe/1.c | 19 + data/benchmarks/dillig/safe/10.c | 21 + data/benchmarks/dillig/safe/12.c | 29 + data/benchmarks/dillig/safe/2.c | 20 + data/benchmarks/dillig/safe/21.c | 22 + data/benchmarks/dillig/safe/22.c | 16 + data/benchmarks/dillig/safe/23.c | 16 + data/benchmarks/dillig/safe/24.c | 22 + data/benchmarks/dillig/safe/26.c | 12 + data/benchmarks/dillig/safe/3.c | 24 + data/benchmarks/dillig/safe/5.c | 19 + data/benchmarks/dillig/safe/7.c | 18 + data/benchmarks/dillig/safe/8.c | 22 + data/benchmarks/dillig/safe/9.c | 25 + data/benchmarks/dillig/safe/multi_method/14.c | 47 + data/benchmarks/dillig/safe/multi_method/16.c | 49 + data/benchmarks/dillig/safe/multi_method/17.c | 22 + data/benchmarks/dillig/safe/multi_method/18.c | 22 + data/benchmarks/dillig/safe/multi_method/20.c | 23 + .../loop/Adding_Subtracting_Zero_1_NT.c | 23 + .../loop/Adding_Subtracting_Zero_1_T.c | 23 + .../loop/Adding_Subtracting_Zero_2_NT.c | 39 + .../loop/Adding_Subtracting_Zero_2_T.c | 43 + .../loop/Adding_Subtracting_Zero_3_NT.c | 86 + .../loop/Adding_Subtracting_Zero_3_T.c | 85 + .../loop/Adding_Subtracting_Zero_4_NT.c | 57 + .../loop/Adding_Subtracting_Zero_4_T.c | 62 + .../loop/Adding_Subtracting_Zero_5_NT.c | 42 + .../loop/Adding_Subtracting_Zero_5_T.c | 44 + .../loop/Incorrect_Bit_Calculation_1_NT.c | 18 + .../loop/Incorrect_Bit_Calculation_1_T.c | 17 + .../loop/Incorrect_Bit_Calculation_2_NT.c | 24 + .../loop/Incorrect_Bit_Calculation_2_T.c | 20 + .../loop/Incorrect_Bit_Calculation_3_NT.c | 20 + .../loop/Incorrect_Bit_Calculation_3_T.c | 17 + .../loop/Incorrect_Control_Statement_1_NT.c | 36 + .../loop/Incorrect_Control_Statement_1_T.c | 36 + .../loop/Incorrect_Control_Statement_2_NT.c | 42 + .../loop/Incorrect_Control_Statement_2_T.c | 42 + .../loop/Incorrect_Initialization_1_NT.c | 41 + .../loop/Incorrect_Initialization_1_T.c | 42 + .../loop/Incorrect_Initialization_2_NT.c | 50 + .../loop/Incorrect_Initialization_2_T.c | 48 + .../loop/Incorrect_Initialization_3_NT.c | 32 + .../loop/Incorrect_Initialization_3_T.c | 32 + .../loop/Incorrect_Initialization_4_NT.c | 23 + .../loop/Incorrect_Initialization_4_T.c | 24 + .../Incorrect_Update_for_Loop_Iterator_1_NT.c | 25 + .../Incorrect_Update_for_Loop_Iterator_1_T.c | 28 + .../Incorrect_Update_for_Loop_Iterator_2_NT.c | 21 + .../Incorrect_Update_for_Loop_Iterator_2_T.c | 20 + .../Incorrect_Update_for_Loop_Iterator_3_NT.c | 23 + .../loop/Missing_Corner-case_Handling_1_NT.c | 44 + .../loop/Missing_Corner-case_Handling_1_T.c | 44 + .../loop/Missing_Corner-case_Handling_2_NT.c | 18 + .../loop/Missing_Corner-case_Handling_2_T.c | 17 + .../loop/Missing_Corner-case_Handling_3_NT.c | 38 + .../loop/Missing_Corner-case_Handling_3_T.c | 38 + .../loop/Missing_Corner-case_Handling_4_NT.c | 56 + .../loop/Missing_Corner-case_Handling_4_T.c | 55 + .../loop/Missing_Initialization_1_NT.c | 21 + .../loop/Missing_Initialization_1_T.c | 24 + .../loop/Missing_Iterator_Update_1_NT.c | 40 + .../loop/Missing_Iterator_Update_1_T.c | 38 + .../loop/Missing_Iterator_Update_2_NT.c | 33 + .../loop/Missing_Iterator_Update_2_T.c | 36 + .../loop/Missing_Iterator_Update_3_NT.c | 45 + .../loop/Missing_Iterator_Update_3_T.c | 49 + .../loop/Missing_Iterator_Update_4_NT.c | 26 + .../loop/Missing_Iterator_Update_4_T.c | 26 + .../loop/Missing_Iterator_Update_5_NT.c | 32 + .../loop/Missing_Iterator_Update_5_T.c | 32 + .../loop/Misusing_Variable_Type_1_NT.c | 24 + .../loop/Misusing_Variable_Type_1_T.c | 24 + .../loop/Misusing_Variable_Type_2_NT.c | 28 + .../loop/Misusing_Variable_Type_2_T.c | 27 + .../loop/Reusing_Same_Loop_Iterator_1_NT.c | 23 + .../loop/Reusing_Same_Loop_Iterator_1_T.c | 23 + .../loop/Reusing_Same_Loop_Iterator_2_NT.c | 22 + .../loop/Reusing_Same_Loop_Iterator_2_T.c | 24 + .../loop/Signed_Overflow_Error_1_NT.c | 17 + .../loop/Signed_Overflow_Error_1_T.c | 19 + .../loop/Signed_Overflow_Error_2_NT.c | 18 + .../loop/Signed_Overflow_Error_2_T.c | 19 + .../loop/Signed_Overflow_Error_3_NT.c | 16 + .../loop/Signed_Overflow_Error_3_T.c | 15 + .../loop/Type_Conversion_in_Assignment_1_NT.c | 42 + .../loop/Type_Conversion_in_Assignment_1_T.c | 41 + .../loop/Type_Conversion_in_Comparison_1_NT.c | 19 + .../loop/Type_Conversion_in_Comparison_1_T.c | 20 + .../loop/Type_Conversion_in_Comparison_2_NT.c | 19 + .../loop/Type_Conversion_in_Comparison_2_T.c | 18 + .../loop/Undefined_Behavior_1.c | 15 + .../loop/Undefined_Behavior_1_T.c | 17 + .../loop/Undefined_Behavior_2.c | 28 + .../loop/Undefined_Behavior_2_T.c | 32 + .../loop/Undefined_Behavior_3.c | 16 + .../loop/Undefined_Behavior_3_T.c | 16 + .../loop/Unsigned_Wraparound_Error_1_NT.c | 28 + .../loop/Unsigned_Wraparound_Error_1_T.c | 30 + .../loop/Unsigned_Wraparound_Error_2_NT.c | 19 + .../loop/Unsigned_Wraparound_Error_2_T.c | 19 + .../loop/Unsigned_Wraparound_Error_3_NT.c | 21 + .../loop/Unsigned_Wraparound_Error_3_T.c | 25 + .../loop/Unsigned_Wraparound_Error_4_NT.c | 21 + .../loop/Unsigned_Wraparound_Error_4_T.c | 19 + .../loop/Using_Erroneous_Condition_1_NT.c | 43 + .../loop/Using_Erroneous_Condition_1_T.c | 43 + .../loop/Using_Erroneous_Condition_2_NT.c | 19 + .../loop/Using_Erroneous_Condition_2_T.c | 18 + .../loop/Using_Erroneous_Condition_3_NT.c | 34 + .../loop/Using_Erroneous_Condition_3_T.c | 33 + .../recursion/Incorrect_Arguments_1_NT.c | 51 + .../recursion/Incorrect_Arguments_1_T.c | 52 + .../Incorrect_Cyclic_Invoking_1_NT.c | 52 + .../recursion/Incorrect_Cyclic_Invoking_1_T.c | 68 + .../Incorrect_Cyclic_Invoking_2_NT.c | 120 + .../recursion/Incorrect_Cyclic_Invoking_2_T.c | 120 + .../Incorrect_Cyclic_Invoking_3_NT.cpp | 45 + .../Incorrect_Cyclic_Invoking_3_T.cpp | 45 + .../recursion/Incorrect_Return_1_NT.c | 107 + .../recursion/Incorrect_Return_1_T.c | 109 + .../recursion/Incorrect_Return_2_NT.cpp | 32 + .../recursion/Incorrect_Return_2_T.cpp | 35 + .../Miscalling_Inherited_Method_1_NT.cpp | 31 + .../Miscalling_Inherited_Method_1_T.cpp | 31 + .../Missing_undef_Instruction_1_NT.c | 33 + .../recursion/Missing_undef_Instruction_1_T.c | 34 + .../Misusing_Method_Overloading_1_NT.cpp | 47 + .../Misusing_Method_Overloading_1_T.cpp | 47 + .../Misusing_Method_Overloading_2_NT.cpp | 32 + .../Misusing_Method_Overloading_2_T.cpp | 32 + .../Misusing_Method_Overloading_3_NT.cpp | 39 + .../Misusing_Method_Overloading_3_T.cpp | 32 + .../Misusing_Method_Overloading_4_NT.cpp | 22 + .../Misusing_Method_Overloading_4_T.cpp | 24 + .../sv-benchmarks/loop-acceleration/LICENSE | 10 + .../sv-benchmarks/loop-acceleration/Makefile | 14 + .../sv-benchmarks/loop-acceleration/README | 11 + .../sv-benchmarks/loop-acceleration/array3.c | 30 + .../loop-acceleration/array_1-1.c | 21 + .../loop-acceleration/array_1-2.c | 21 + .../loop-acceleration/array_2-1-simple.c | 25 + .../loop-acceleration/array_2-1.c | 31 + .../loop-acceleration/array_2-2-simple.c | 25 + .../loop-acceleration/array_2-2.c | 31 + .../loop-acceleration/array_3-1.c | 30 + .../loop-acceleration/array_3-2.c | 28 + .../sv-benchmarks/loop-acceleration/array_4.c | 29 + .../loop-acceleration/const_1-1.c | 22 + .../loop-acceleration/const_1-2.c | 22 + .../loop-acceleration/const_1-2_abstracted.c | 42 + .../loop-acceleration/diamond_1-1.c | 26 + .../loop-acceleration/diamond_1-2.c | 26 + .../loop-acceleration/diamond_2-2.c | 50 + .../loop-acceleration/functions_1-1.c | 24 + .../loop-acceleration/functions_1-2.c | 24 + .../loop-acceleration/multivar_1-1.c | 23 + .../loop-acceleration/multivar_1-2.c | 23 + .../loop-acceleration/nested_1-1.c | 27 + .../loop-acceleration/nested_1-2.c | 27 + .../loop-acceleration/overflow_1-1.c | 20 + .../loop-acceleration/phases_1-1.c | 24 + .../loop-acceleration/phases_1-2.c | 24 + .../loop-acceleration/phases_2-1.c | 32 + .../loop-acceleration/phases_2-2.c | 32 + .../loop-acceleration/simple_1-1.c | 20 + .../loop-acceleration/simple_1-1_abstracted.c | 38 + .../loop-acceleration/simple_1-2.c | 20 + .../loop-acceleration/simple_1-2_abstracted.c | 38 + .../loop-acceleration/simple_2-1.c | 21 + .../loop-acceleration/simple_2-1_abstracted.c | 34 + .../loop-acceleration/simple_2-2.c | 21 + .../loop-acceleration/simple_3-1.c | 22 + .../loop-acceleration/simple_3-2.c | 22 + .../loop-acceleration/simple_4-1.c | 20 + .../loop-acceleration/simple_4-1_abstracted.c | 38 + .../loop-acceleration/simple_4-2.c | 20 + .../loop-acceleration/simple_4-2_abstracted.c | 33 + .../loop-acceleration/underapprox_1-1.c | 22 + .../loop-acceleration/underapprox_1-2.c | 22 + .../loop-acceleration/underapprox_2-1.c | 22 + .../loop-acceleration/underapprox_2-2.c | 22 + .../sv-benchmarks/loop-crafted/License.txt | 1 + .../sv-benchmarks/loop-crafted/Makefile | 14 + .../sv-benchmarks/loop-crafted/README.txt | 5 + .../simple_array_index_value_1-1.c | 36 + .../simple_array_index_value_1-2.c | 40 + .../loop-crafted/simple_array_index_value_2.c | 37 + .../loop-crafted/simple_array_index_value_3.c | 37 + .../loop-crafted/simple_array_index_value_4.c | 54 + ...mple_array_index_value_4.i.v+lhb-reducer.c | 200 + ...mple_array_index_value_4.i.v+nlh-reducer.c | 172 + .../loop-crafted/simple_vardep_1.c | 29 + .../loop-crafted/simple_vardep_2.c | 28 + .../loop-floats-scientific-comp/License.txt | 1 + .../loop-floats-scientific-comp/Makefile | 14 + .../loop-floats-scientific-comp/README.txt | 7 + .../loop-floats-scientific-comp/loop1-1.c | 41 + .../loop-floats-scientific-comp/loop1-2.c | 39 + .../loop-floats-scientific-comp/loop2-1.c | 51 + .../loop-floats-scientific-comp/loop2-2.c | 51 + .../loop-floats-scientific-comp/loop3.c | 53 + .../loop-floats-scientific-comp/loop4.c | 59 + .../loop-floats-scientific-comp/loop5.c | 60 + .../loop-industry-pattern/License.txt | 1 + .../loop-industry-pattern/Makefile | 15 + .../loop-industry-pattern/ReadMe.txt | 10 + .../loop-industry-pattern/aiob_1.c | 192 + .../loop-industry-pattern/aiob_2.c | 192 + .../loop-industry-pattern/aiob_3.c | 192 + .../loop-industry-pattern/aiob_4.c | 185 + .../aiob_4.c.v+cfa-reducer.c | 225 + .../aiob_4.c.v+lh-reducer.c | 237 + .../aiob_4.c.v+lhb-reducer.c | 636 + .../aiob_4.c.v+nlh-reducer.c | 2017 + .../loop-industry-pattern/mod3.c | 37 + .../mod3.c.v+cfa-reducer.c | 78 + .../mod3.c.v+lhb-reducer.c | 151 + .../mod3.c.v+sep-reducer.c | 147 + .../loop-industry-pattern/nested-3.c | 32 + .../loop-industry-pattern/ofuf_1.c | 492 + .../loop-industry-pattern/ofuf_2.c | 466 + .../loop-industry-pattern/ofuf_3.c | 466 + .../loop-industry-pattern/ofuf_4.c | 466 + .../loop-industry-pattern/ofuf_5.c | 466 + .../sv-benchmarks/loop-invariants/LICENSE.txt | 1 + .../sv-benchmarks/loop-invariants/Makefile | 14 + .../sv-benchmarks/loop-invariants/README | 16 + .../loop-invariants/bin-suffix-5.c | 18 + .../sv-benchmarks/loop-invariants/const.c | 22 + .../sv-benchmarks/loop-invariants/eq1.c | 25 + .../sv-benchmarks/loop-invariants/eq2.c | 22 + .../sv-benchmarks/loop-invariants/even.c | 18 + .../loop-invariants/linear-inequality-inv-a.c | 26 + .../loop-invariants/linear-inequality-inv-b.c | 26 + .../sv-benchmarks/loop-invariants/mod4.c | 18 + .../sv-benchmarks/loop-invariants/odd.c | 18 + .../sv-benchmarks/loop-invgen/LICENSE.txt | 1 + .../loop-invgen/MADWiFi-encode_ie_ok.c | 53 + .../sv-benchmarks/loop-invgen/Makefile | 16 + .../sv-benchmarks/loop-invgen/NetBSD_loop.c | 36 + .../sv-benchmarks/loop-invgen/README | 4 + .../loop-invgen/SpamAssassin-loop.c | 51 + .../SpamAssassin-loop.i.v+cfa-reducer.c | 313 + .../loop-invgen/apache-escape-absolute.c | 69 + .../apache-escape-absolute.i.v+cfa-reducer.c | 439 + .../loop-invgen/apache-get-tag.c | 69 + .../apache-get-tag.i.p+lhb-reducer.c | 1006 + .../apache-get-tag.i.p+nlh-reducer.c | 3008 + .../apache-get-tag.i.p+sep-reducer.c | 5301 + .../apache-get-tag.i.v+lhb-reducer.c | 402 + .../apache-get-tag.i.v+nlh-reducer.c | 375 + .../sv-benchmarks/loop-invgen/assert.h | 15 + .../sv-benchmarks/loop-invgen/down.c | 19 + .../loop-invgen/fragtest_simple.c | 43 + .../sv-benchmarks/loop-invgen/half_2.c | 22 + .../sv-benchmarks/loop-invgen/heapsort.c | 53 + .../sv-benchmarks/loop-invgen/id_build.c | 34 + .../loop-invgen/id_build.i.p+nlh-reducer.c | 2692 + .../loop-invgen/id_build.i.p+sep-reducer.c | 2724 + .../loop-invgen/id_build.i.v+lhb-reducer.c | 102 + .../sv-benchmarks/loop-invgen/id_trans.c | 38 + .../sv-benchmarks/loop-invgen/large_const.c | 35 + .../sv-benchmarks/loop-invgen/nest-if3.c | 17 + .../sv-benchmarks/loop-invgen/nested6.c | 29 + .../sv-benchmarks/loop-invgen/nested9.c | 21 + .../loop-invgen/sendmail-close-angle.c | 48 + .../sv-benchmarks/loop-invgen/seq-3.c | 30 + .../loop-invgen/string_concat-noarr.c | 23 + .../benchmarks/sv-benchmarks/loop-invgen/up.c | 18 + .../sv-benchmarks/loop-lit/LICENSE.txt | 1 + .../sv-benchmarks/loop-lit/Makefile | 11 + data/benchmarks/sv-benchmarks/loop-lit/README | 2 + .../sv-benchmarks/loop-lit/afnp2014.c | 16 + .../sv-benchmarks/loop-lit/assert.h | 15 + .../sv-benchmarks/loop-lit/bhmr2007.c | 21 + .../sv-benchmarks/loop-lit/cggmp2005.c | 17 + .../loop-lit/cggmp2005_variant.c | 21 + .../sv-benchmarks/loop-lit/cggmp2005b.c | 24 + .../sv-benchmarks/loop-lit/css2003.c | 18 + .../sv-benchmarks/loop-lit/ddlm2013.c | 32 + .../sv-benchmarks/loop-lit/gcnr2008.c | 26 + .../sv-benchmarks/loop-lit/gj2007.c | 19 + .../loop-lit/gj2007.c.i.p+lhb-reducer.c | 214 + .../loop-lit/gj2007.c.i.p+nlh-reducer.c | 1258 + .../sv-benchmarks/loop-lit/gj2007b.c | 19 + .../sv-benchmarks/loop-lit/gr2006.c | 20 + .../sv-benchmarks/loop-lit/gsv2008.c | 16 + .../loop-lit/gsv2008.c.i.p+cfa-reducer.c | 60 + .../loop-lit/gsv2008.c.i.v+cfa-reducer.c | 60 + .../loop-lit/gsv2008.c.i.v+lhb-reducer.c | 74 + .../sv-benchmarks/loop-lit/hhk2008.c | 20 + .../sv-benchmarks/loop-lit/jm2006.c | 23 + .../loop-lit/jm2006.c.i.v+cfa-reducer.c | 70 + .../sv-benchmarks/loop-lit/jm2006_variant.c | 26 + .../sv-benchmarks/loop-lit/mcmillan2006.c | 16 + .../sv-benchmarks/loop-new/LICENSE.txt | 1 + .../sv-benchmarks/loop-new/Makefile | 11 + data/benchmarks/sv-benchmarks/loop-new/README | 2 + .../sv-benchmarks/loop-new/assert.h | 15 + .../sv-benchmarks/loop-new/count_by_1.c | 8 + .../loop-new/count_by_1_variant.c | 9 + .../sv-benchmarks/loop-new/count_by_2.c | 8 + .../sv-benchmarks/loop-new/count_by_k.c | 11 + .../sv-benchmarks/loop-new/count_by_nondet.c | 13 + .../sv-benchmarks/loop-new/gauss_sum.c | 13 + .../loop-new/gauss_sum.i.p+cfa-reducer.c | 61 + .../loop-new/gauss_sum.i.p+lhb-reducer.c | 106 + .../loop-new/gauss_sum.i.v+cfa-reducer.c | 61 + data/benchmarks/sv-benchmarks/loop-new/half.c | 14 + .../sv-benchmarks/loop-new/nested-1.c | 16 + .../sv-benchmarks/loop-simple/LICENSE.txt | 1 + .../sv-benchmarks/loop-simple/Makefile | 11 + .../sv-benchmarks/loop-simple/README.txt | 3 + .../sv-benchmarks/loop-simple/deep-nested.c | 25 + .../sv-benchmarks/loop-simple/nested_1.c | 26 + .../sv-benchmarks/loop-simple/nested_1b.c | 26 + .../sv-benchmarks/loop-simple/nested_2.c | 29 + .../sv-benchmarks/loop-simple/nested_3.c | 32 + .../sv-benchmarks/loop-simple/nested_4.c | 35 + .../sv-benchmarks/loop-simple/nested_5.c | 38 + .../sv-benchmarks/loop-simple/nested_6.c | 40 + .../sv-benchmarks/loop-zilu/LICENSE.GPLv2.txt | 1 + .../sv-benchmarks/loop-zilu/Makefile | 3 + .../sv-benchmarks/loop-zilu/README.txt | 46 + .../loop-zilu/benchmark01_conjunctive.c | 35 + .../loop-zilu/benchmark02_linear.c | 35 + .../loop-zilu/benchmark02_linear_abstracted.c | 39 + .../loop-zilu/benchmark03_linear.c | 43 + .../loop-zilu/benchmark04_conjunctive.c | 36 + .../loop-zilu/benchmark05_conjunctive.c | 36 + .../loop-zilu/benchmark06_conjunctive.c | 37 + .../loop-zilu/benchmark07_linear.c | 40 + .../loop-zilu/benchmark08_conjunctive.c | 36 + .../loop-zilu/benchmark09_conjunctive.c | 36 + .../loop-zilu/benchmark10_conjunctive.c | 36 + .../loop-zilu/benchmark11_linear.c | 34 + .../loop-zilu/benchmark11_linear_abstracted.c | 42 + .../loop-zilu/benchmark12_linear.c | 35 + .../loop-zilu/benchmark13_conjunctive.c | 36 + .../loop-zilu/benchmark14_linear.c | 33 + .../loop-zilu/benchmark15_conjunctive.c | 33 + .../loop-zilu/benchmark16_conjunctive.c | 31 + .../loop-zilu/benchmark17_conjunctive.c | 36 + .../loop-zilu/benchmark18_conjunctive.c | 31 + .../loop-zilu/benchmark19_conjunctive.c | 31 + .../loop-zilu/benchmark20_conjunctive.c | 36 + .../loop-zilu/benchmark21_disjunctive.c | 43 + .../loop-zilu/benchmark22_conjunctive.c | 31 + .../loop-zilu/benchmark23_conjunctive.c | 35 + .../loop-zilu/benchmark24_conjunctive.c | 36 + .../loop-zilu/benchmark25_linear.c | 29 + .../loop-zilu/benchmark25_linear_abstracted.c | 37 + .../loop-zilu/benchmark26_linear.c | 30 + .../loop-zilu/benchmark26_linear_abstracted.c | 38 + .../loop-zilu/benchmark27_linear.c | 32 + .../loop-zilu/benchmark28_linear.c | 34 + .../loop-zilu/benchmark29_linear.c | 30 + .../loop-zilu/benchmark30_conjunctive.c | 31 + .../loop-zilu/benchmark31_disjunctive.c | 39 + .../loop-zilu/benchmark32_linear.c | 34 + .../loop-zilu/benchmark33_linear.c | 33 + .../loop-zilu/benchmark34_conjunctive.c | 31 + .../loop-zilu/benchmark35_linear.c | 29 + .../loop-zilu/benchmark36_conjunctive.c | 31 + .../loop-zilu/benchmark37_conjunctive.c | 31 + .../loop-zilu/benchmark38_conjunctive.c | 31 + .../loop-zilu/benchmark39_conjunctive.c | 31 + .../loop-zilu/benchmark40_polynomial.c | 36 + .../loop-zilu/benchmark41_conjunctive.c | 32 + .../loop-zilu/benchmark42_conjunctive.c | 34 + .../loop-zilu/benchmark43_conjunctive.c | 31 + .../benchmark43_conjunctive_abstracted.c | 40 + .../loop-zilu/benchmark44_disjunctive.c | 43 + .../loop-zilu/benchmark45_disjunctive.c | 37 + .../loop-zilu/benchmark46_disjunctive.c | 44 + .../loop-zilu/benchmark47_linear.c | 33 + .../loop-zilu/benchmark48_linear.c | 31 + .../loop-zilu/benchmark49_linear.c | 32 + .../loop-zilu/benchmark50_linear.c | 31 + .../loop-zilu/benchmark51_polynomial.c | 34 + .../loop-zilu/benchmark52_polynomial.c | 29 + .../loop-zilu/benchmark53_polynomial.c | 36 + .../sv-benchmarks/loops-crafted-1/License.txt | 1 + .../sv-benchmarks/loops-crafted-1/Makefile | 11 + .../sv-benchmarks/loops-crafted-1/Mono1_1-1.c | 17 + .../sv-benchmarks/loops-crafted-1/Mono1_1-2.c | 17 + .../sv-benchmarks/loops-crafted-1/Mono3_1.c | 18 + .../sv-benchmarks/loops-crafted-1/Mono4_1.c | 19 + .../sv-benchmarks/loops-crafted-1/Mono5_1.c | 16 + .../sv-benchmarks/loops-crafted-1/Mono6_1.c | 17 + .../sv-benchmarks/loops-crafted-1/README.txt | 8 + .../loops-crafted-1/discover_list.c | 498 + .../sv-benchmarks/loops-crafted-1/iftelse.c | 33 + .../sv-benchmarks/loops-crafted-1/in-de20.c | 31 + .../sv-benchmarks/loops-crafted-1/in-de31.c | 37 + .../sv-benchmarks/loops-crafted-1/in-de32.c | 37 + .../sv-benchmarks/loops-crafted-1/in-de41.c | 43 + .../sv-benchmarks/loops-crafted-1/in-de42.c | 43 + .../sv-benchmarks/loops-crafted-1/in-de51.c | 49 + .../sv-benchmarks/loops-crafted-1/in-de52.c | 49 + .../sv-benchmarks/loops-crafted-1/in-de61.c | 55 + .../sv-benchmarks/loops-crafted-1/in-de62.c | 55 + .../sv-benchmarks/loops-crafted-1/loopv1.c | 34 + .../sv-benchmarks/loops-crafted-1/loopv2.c | 34 + .../sv-benchmarks/loops-crafted-1/loopv3.c | 34 + .../loops-crafted-1/mono-crafted_1.c | 24 + .../loops-crafted-1/mono-crafted_10.c | 18 + .../loops-crafted-1/mono-crafted_11.c | 18 + .../loops-crafted-1/mono-crafted_12.c | 17 + .../loops-crafted-1/mono-crafted_13.c | 23 + .../loops-crafted-1/mono-crafted_14.c | 25 + .../loops-crafted-1/mono-crafted_3.c | 25 + .../loops-crafted-1/mono-crafted_6.c | 25 + .../loops-crafted-1/mono-crafted_7.c | 24 + .../loops-crafted-1/mono-crafted_8.c | 18 + .../loops-crafted-1/mono-crafted_9.c | 20 + .../sv-benchmarks/loops-crafted-1/nested3-1.c | 37 + .../loops-crafted-1/nested3-1_abstracted.c | 54 + .../sv-benchmarks/loops-crafted-1/nested3-2.c | 37 + .../loops-crafted-1/nested3-2_abstracted.c | 55 + .../sv-benchmarks/loops-crafted-1/nested5-1.c | 27 + .../sv-benchmarks/loops-crafted-1/nested5-2.c | 29 + .../loops-crafted-1/nested_delay_nd.c | 47 + .../loops-crafted-1/nested_delay_notd2.c | 45 + .../sv-benchmarks/loops-crafted-1/net_reset.c | 237 + .../sv-benchmarks/loops-crafted-1/sum_by_3.c | 35 + .../loops-crafted-1/sum_by_3_abstracted.c | 52 + .../loops-crafted-1/sum_natnum.c | 29 + .../sv-benchmarks/loops-crafted-1/sumt2.c | 34 + .../sv-benchmarks/loops-crafted-1/sumt3.c | 37 + .../sv-benchmarks/loops-crafted-1/sumt4.c | 36 + .../sv-benchmarks/loops-crafted-1/sumt5.c | 38 + .../sv-benchmarks/loops-crafted-1/sumt6.c | 40 + .../sv-benchmarks/loops-crafted-1/sumt7.c | 42 + .../sv-benchmarks/loops-crafted-1/sumt8.c | 44 + .../sv-benchmarks/loops-crafted-1/sumt9.c | 46 + .../loops-crafted-1/theatreSquare.c | 110 + .../sv-benchmarks/loops-crafted-1/vnew1.c | 33 + .../sv-benchmarks/loops-crafted-1/vnew2.c | 30 + .../loops-crafted-1/watermelon.c | 68 + data/benchmarks/sv-benchmarks/loops/Makefile | 15 + .../benchmarks/sv-benchmarks/loops/README.txt | 9 + data/benchmarks/sv-benchmarks/loops/array-1.c | 32 + data/benchmarks/sv-benchmarks/loops/array-2.c | 32 + data/benchmarks/sv-benchmarks/loops/base.h | 13 + .../sv-benchmarks/loops/bubble_sort-1.c | 95 + .../sv-benchmarks/loops/bubble_sort-2.c | 862 + .../sv-benchmarks/loops/bubblesort.h | 51 + data/benchmarks/sv-benchmarks/loops/compact.c | 24 + .../sv-benchmarks/loops/count_up_down-1.c | 24 + .../sv-benchmarks/loops/count_up_down-2.c | 23 + .../sv-benchmarks/loops/eureka_01-1.c | 67 + .../sv-benchmarks/loops/eureka_01-2.c | 62 + .../sv-benchmarks/loops/eureka_05.c | 44 + .../sv-benchmarks/loops/for_bounded_loop1.c | 33 + .../sv-benchmarks/loops/for_infinite_loop_1.c | 29 + .../sv-benchmarks/loops/for_infinite_loop_2.c | 29 + data/benchmarks/sv-benchmarks/loops/heavy-1.c | 23 + data/benchmarks/sv-benchmarks/loops/heavy-2.c | 23 + .../sv-benchmarks/loops/insertion_sort-1-2.c | 35 + .../sv-benchmarks/loops/insertion_sort-1.c | 32 + .../sv-benchmarks/loops/insertion_sort-2-2.c | 35 + .../sv-benchmarks/loops/insertion_sort-2.c | 32 + .../sv-benchmarks/loops/invert_string-1.c | 39 + .../sv-benchmarks/loops/invert_string-2.c | 37 + .../sv-benchmarks/loops/invert_string-3.c | 37 + .../sv-benchmarks/loops/linear_sea.ch.c | 31 + .../sv-benchmarks/loops/linear_search.c | 32 + data/benchmarks/sv-benchmarks/loops/lu.cmp.c | 156 + data/benchmarks/sv-benchmarks/loops/ludcmp.c | 156 + .../benchmarks/sv-benchmarks/loops/matrix-1.c | 34 + .../sv-benchmarks/loops/matrix-2-2.c | 38 + .../benchmarks/sv-benchmarks/loops/matrix-2.c | 35 + data/benchmarks/sv-benchmarks/loops/n.c11.c | 35 + data/benchmarks/sv-benchmarks/loops/n.c24.c | 93 + data/benchmarks/sv-benchmarks/loops/n.c40.c | 25 + data/benchmarks/sv-benchmarks/loops/nec11.c | 34 + data/benchmarks/sv-benchmarks/loops/nec20.c | 46 + data/benchmarks/sv-benchmarks/loops/nec40.c | 31 + data/benchmarks/sv-benchmarks/loops/q1.h | 56 + .../benchmarks/sv-benchmarks/loops/string-1.c | 64 + .../benchmarks/sv-benchmarks/loops/string-2.c | 66 + data/benchmarks/sv-benchmarks/loops/sum01-1.c | 20 + data/benchmarks/sv-benchmarks/loops/sum01-2.c | 22 + .../sv-benchmarks/loops/sum01_bug02.c | 24 + .../loops/sum01_bug02_sum01_bug02_base.case.c | 20 + data/benchmarks/sv-benchmarks/loops/sum03-1.c | 27 + data/benchmarks/sv-benchmarks/loops/sum03-2.c | 25 + data/benchmarks/sv-benchmarks/loops/sum04-1.c | 21 + data/benchmarks/sv-benchmarks/loops/sum04-2.c | 20 + .../sv-benchmarks/loops/sum_array-1.c | 32 + .../sv-benchmarks/loops/sum_array-2-1.c | 46 + .../sv-benchmarks/loops/sum_array-2-2.c | 47 + .../sv-benchmarks/loops/sum_array-2.c | 43 + .../sv-benchmarks/loops/terminator_01.c | 25 + .../sv-benchmarks/loops/terminator_02-1.c | 39 + .../sv-benchmarks/loops/terminator_02-2.c | 42 + .../loops/terminator_02-2_abstracted.c | 49 + .../sv-benchmarks/loops/terminator_03-1.c | 30 + .../sv-benchmarks/loops/terminator_03-2.c | 36 + .../loops/terminator_03-2_abstracted.c | 39 + .../benchmarks/sv-benchmarks/loops/trex01-1.c | 46 + .../benchmarks/sv-benchmarks/loops/trex01-2.c | 55 + .../benchmarks/sv-benchmarks/loops/trex02-1.c | 32 + .../benchmarks/sv-benchmarks/loops/trex02-2.c | 32 + .../benchmarks/sv-benchmarks/loops/trex03-1.c | 33 + .../benchmarks/sv-benchmarks/loops/trex03-2.c | 32 + .../sv-benchmarks/loops/trex03-2_abstracted.c | 44 + data/benchmarks/sv-benchmarks/loops/trex04.c | 49 + .../sv-benchmarks/loops/trex04_abstracted.c | 61 + .../loops/veris.c_NetBSD-libc_loop.c | 40 + ...veris.c_OpenSER_cases1_stripFullBoth_arr.c | 204 + .../veris.c_sendmail_tTflag_arr_one_loop.c | 40 + .../loops/verisec_NetBSD-libc_loop.c | 41 + ...verisec_OpenSER_cases1_stripFullBoth_arr.c | 199 + data/benchmarks/sv-benchmarks/loops/vogal-1.c | 53 + data/benchmarks/sv-benchmarks/loops/vogal-2.c | 49 + .../loops/while_infinite_loop_1.c | 21 + .../loops/while_infinite_loop_2.c | 20 + .../loops/while_infinite_loop_3.c | 35 + .../loops/while_infinite_loop_4.c | 36 + .../recursive-simple/LICENSE.txt | 1 + .../sv-benchmarks/recursive-simple/Makefile | 11 + .../sv-benchmarks/recursive-simple/README.txt | 2 + .../recursive-simple/afterrec-1.c | 14 + .../recursive-simple/afterrec-2.c | 14 + .../recursive-simple/afterrec_2calls-1.c | 24 + .../recursive-simple/afterrec_2calls-2.c | 24 + .../recursive-simple/fibo_10-1.c | 32 + .../recursive-simple/fibo_10-2.c | 32 + .../recursive-simple/fibo_15-1.c | 32 + .../recursive-simple/fibo_15-2.c | 32 + .../recursive-simple/fibo_20-1.c | 32 + .../recursive-simple/fibo_20-2.c | 32 + .../recursive-simple/fibo_25-1.c | 32 + .../recursive-simple/fibo_25-2.c | 32 + .../recursive-simple/fibo_2calls_10-1.c | 44 + .../recursive-simple/fibo_2calls_10-2.c | 44 + .../recursive-simple/fibo_2calls_15-1.c | 44 + .../recursive-simple/fibo_2calls_15-2.c | 44 + .../recursive-simple/fibo_2calls_2-1.c | 44 + .../recursive-simple/fibo_2calls_2-2.c | 44 + .../recursive-simple/fibo_2calls_20-1.c | 44 + .../recursive-simple/fibo_2calls_20-2.c | 44 + .../recursive-simple/fibo_2calls_25-1.c | 44 + .../recursive-simple/fibo_2calls_25-2.c | 44 + .../recursive-simple/fibo_2calls_4-1.c | 44 + .../recursive-simple/fibo_2calls_4-2.c | 44 + .../recursive-simple/fibo_2calls_5-1.c | 44 + .../recursive-simple/fibo_2calls_5-2.c | 44 + .../recursive-simple/fibo_2calls_6-1.c | 44 + .../recursive-simple/fibo_2calls_6-2.c | 44 + .../recursive-simple/fibo_2calls_8-1.c | 44 + .../recursive-simple/fibo_2calls_8-2.c | 44 + .../sv-benchmarks/recursive-simple/fibo_5-1.c | 32 + .../sv-benchmarks/recursive-simple/fibo_5-2.c | 32 + .../sv-benchmarks/recursive-simple/fibo_7-1.c | 32 + .../sv-benchmarks/recursive-simple/fibo_7-2.c | 32 + .../recursive-simple/id2_b2_o3.c | 29 + .../recursive-simple/id2_b3_o2.c | 29 + .../recursive-simple/id2_b3_o5.c | 29 + .../recursive-simple/id2_b5_o10.c | 29 + .../recursive-simple/id2_i5_o5-1.c | 25 + .../recursive-simple/id2_i5_o5-2.c | 25 + .../sv-benchmarks/recursive-simple/id_b2_o3.c | 19 + .../recursive-simple/id_b3_o2-1.c | 19 + .../recursive-simple/id_b3_o2-2.c | 19 + .../recursive-simple/id_b3_o5-1.c | 19 + .../recursive-simple/id_b3_o5-2.c | 19 + .../recursive-simple/id_b5_o10-1.c | 19 + .../recursive-simple/id_b5_o10-2.c | 19 + .../recursive-simple/id_i10_o10-1.c | 17 + .../recursive-simple/id_i10_o10-2.c | 17 + .../recursive-simple/id_i15_o15-1.c | 17 + .../recursive-simple/id_i15_o15-2.c | 17 + .../recursive-simple/id_i20_o20-1.c | 17 + .../recursive-simple/id_i20_o20-2.c | 17 + .../recursive-simple/id_i25_o25-1.c | 17 + .../recursive-simple/id_i25_o25-2.c | 17 + .../recursive-simple/id_i5_o5-1.c | 17 + .../recursive-simple/id_i5_o5-2.c | 17 + .../sv-benchmarks/recursive-simple/id_o10.c | 17 + .../sv-benchmarks/recursive-simple/id_o100.c | 17 + .../sv-benchmarks/recursive-simple/id_o1000.c | 17 + .../sv-benchmarks/recursive-simple/id_o20.c | 17 + .../sv-benchmarks/recursive-simple/id_o200.c | 17 + .../sv-benchmarks/recursive-simple/id_o3.c | 17 + .../recursive-simple/sum_10x0-1.c | 20 + .../recursive-simple/sum_10x0-2.c | 20 + .../recursive-simple/sum_15x0-1.c | 20 + .../recursive-simple/sum_15x0-2.c | 20 + .../recursive-simple/sum_20x0-1.c | 20 + .../recursive-simple/sum_20x0-2.c | 20 + .../recursive-simple/sum_25x0-1.c | 20 + .../recursive-simple/sum_25x0-2.c | 20 + .../recursive-simple/sum_2x3-1.c | 20 + .../recursive-simple/sum_2x3-2.c | 20 + .../sv-benchmarks/recursive-simple/sum_non.c | 21 + .../recursive-simple/sum_non_eq-1.c | 21 + .../recursive-simple/sum_non_eq-2.c | 21 + .../recursive-simple/sum_non_eq-3.c | 21 + .../sv-benchmarks/recursive/Ackermann01-2.c | 48 + .../sv-benchmarks/recursive/Ackermann02.c | 47 + .../sv-benchmarks/recursive/Ackermann03.c | 48 + .../sv-benchmarks/recursive/Ackermann04.c | 48 + .../sv-benchmarks/recursive/Addition01-2.c | 47 + .../sv-benchmarks/recursive/Addition02.c | 47 + .../recursive/Addition02WithOverflowBug.c | 37 + .../sv-benchmarks/recursive/Addition03-1.c | 37 + .../sv-benchmarks/recursive/Addition03-2.c | 37 + .../recursive/BallRajamani-SPIN2000-Fig1.c | 35 + .../sv-benchmarks/recursive/EvenOdd01-1.c | 51 + .../sv-benchmarks/recursive/EvenOdd03.c | 51 + .../recursive/EvenOdd03WithOverflowBug.c | 48 + .../sv-benchmarks/recursive/Fibonacci01-1.c | 40 + .../sv-benchmarks/recursive/Fibonacci02.c | 35 + .../sv-benchmarks/recursive/Fibonacci03.c | 39 + .../sv-benchmarks/recursive/Fibonacci04.c | 39 + .../sv-benchmarks/recursive/Fibonacci05.c | 36 + .../sv-benchmarks/recursive/LICENSE.txt | 23 + .../sv-benchmarks/recursive/Makefile | 14 + .../sv-benchmarks/recursive/McCarthy91-1.c | 34 + .../sv-benchmarks/recursive/McCarthy91-2.c | 34 + .../recursive/MultCommutative-2.c | 43 + .../sv-benchmarks/recursive/Primes.c | 102 + .../sv-benchmarks/recursive/README.txt | 2 + .../sv-benchmarks/recursive/gcd01-1.c | 45 + .../sv-benchmarks/recursive/gcd02.c | 59 + .../sv-benchmarks/recursive/recHanoi01.c | 58 + .../sv-benchmarks/recursive/recHanoi02-2.c | 41 + .../sv-benchmarks/recursive/recHanoi03-2.c | 39 + ...vcomp_Avery-2006FLOPS-Tabel1_true-alloca.c | 33 + ...omp_Ben-Amram-2010LMCS-Ex2.3_true-alloca.c | 35 + ...-2005CAV-Fig1-modified_false-termination.c | 39 + ...adleyMannaSipma-2005CAV-Fig1_true-alloca.c | 40 + ...leyMannaSipma-2005ICALP-Fig1_true-alloca.c | 28 + ...schmidtCookFuhs-2013CAV-Fig1_true-alloca.c | 15 + ...ookFuhs-2013CAV-Introduction_true-alloca.c | 12 + ...lurMukhopadhyay-2012SAS-Fig1_true-alloca.c | 18 + ...ookSeeZuleger-2013TACAS-Fig3_true-alloca.c | 16 + ...okSeeZuleger-2013TACAS-Fig7a_true-alloca.c | 20 + ...okSeeZuleger-2013TACAS-Fig7b_true-alloca.c | 21 + ...niJainKoskinen-2009PLDI-Fig1_true-alloca.c | 23 + ...LalNoriRajamani-2010SAS-Fig1_true-alloca.c | 43 + ...2_false-unreach-label-termination-alloca.c | 70 + ...LalNoriRajamani-2010SAS-Fig3_true-alloca.c | 23 + ...chWintersteiger-2010CAV-Fig1_true-alloca.c | 22 + ...arbonellRubio-2013FMCAD-Fig1_true-alloca.c | 21 + .../svcomp_Masse_true-alloca.c | 14 + ...comp_NoriSharma-2013FSE-Fig7_true-alloca.c | 20 + ...comp_NoriSharma-2013FSE-Fig8_true-alloca.c | 25 + ...skiRybalchenko-2004VMCAI-Ex2_true-alloca.c | 12 + .../svcomp_TelAviv-Amir-Minimum_true-alloca.c | 25 + ...comp_Toulouse-BranchesToLoop_true-alloca.c | 21 + ...Toulouse-MultiBranchesToLoop_true-alloca.c | 61 + ...1_false-unreach-label-termination-alloca.c | 10 + ...an-2013WST-Fig2-modified1000_true-alloca.c | 13 + .../svcomp_Urban-2013WST-Fig2_true-alloca.c | 13 + .../svcomp_Urban_true-alloca.c | 25 + ...n_false-unreach-label-termination-alloca.c | 20 + .../AProVE_memory_alloca/svcomp_a.01-alloca.c | 26 + .../AProVE_memory_alloca/svcomp_a.04-alloca.c | 22 + .../AProVE_memory_alloca/svcomp_a.05-alloca.c | 22 + .../AProVE_memory_alloca/svcomp_a.06-alloca.c | 25 + .../AProVE_memory_alloca/svcomp_a.07-alloca.c | 25 + .../AProVE_memory_alloca/svcomp_a.08-alloca.c | 23 + .../svcomp_a.09_assume-alloca.c | 29 + .../AProVE_memory_alloca/svcomp_a.10-alloca.c | 26 + .../svcomp_add_last_alloca.c | 16 + .../svcomp_array01_alloca.c | 25 + .../svcomp_array02_alloca.c | 29 + .../svcomp_array03_alloca.c | 31 + .../svcomp_aviad_true-alloca.c | 25 + .../AProVE_memory_alloca/svcomp_b.01-alloca.c | 22 + .../AProVE_memory_alloca/svcomp_b.02-alloca.c | 23 + .../svcomp_b.03-no-inv_assume-alloca.c | 23 + .../svcomp_b.03_assume-alloca.c | 27 + .../AProVE_memory_alloca/svcomp_b.04-alloca.c | 23 + .../AProVE_memory_alloca/svcomp_b.05-alloca.c | 21 + .../AProVE_memory_alloca/svcomp_b.06-alloca.c | 23 + .../AProVE_memory_alloca/svcomp_b.07-alloca.c | 25 + .../svcomp_b.09-no-inv_assume-alloca.c | 30 + .../svcomp_b.09_assume-alloca.c | 34 + .../AProVE_memory_alloca/svcomp_b.10-alloca.c | 30 + .../AProVE_memory_alloca/svcomp_b.11-alloca.c | 30 + .../AProVE_memory_alloca/svcomp_b.12-alloca.c | 30 + .../AProVE_memory_alloca/svcomp_b.13-alloca.c | 32 + .../AProVE_memory_alloca/svcomp_b.14-alloca.c | 25 + .../AProVE_memory_alloca/svcomp_b.15-alloca.c | 27 + .../AProVE_memory_alloca/svcomp_b.16-alloca.c | 26 + .../AProVE_memory_alloca/svcomp_b.17-alloca.c | 28 + .../AProVE_memory_alloca/svcomp_b.18-alloca.c | 27 + .../svcomp_bubblesort_alloca.c | 28 + .../svcomp_c.01-no-inv-alloca.c | 26 + .../svcomp_c.01_assume-alloca.c | 27 + .../AProVE_memory_alloca/svcomp_c.02-alloca.c | 27 + .../AProVE_memory_alloca/svcomp_c.03-alloca.c | 28 + .../AProVE_memory_alloca/svcomp_c.07-alloca.c | 29 + .../AProVE_memory_alloca/svcomp_c.08-alloca.c | 26 + .../svcomp_count_down_alloca.c | 24 + .../svcomp_cstrcat_alloca.c | 38 + .../svcomp_cstrchr_true_alloca.c | 30 + .../svcomp_cstrcmp_true_alloca.c | 42 + .../svcomp_cstrcpy_alloca.c | 32 + .../svcomp_cstrcspn_true_alloca.c | 41 + .../svcomp_cstrlen_true_alloca.c | 28 + .../svcomp_cstrncat_alloca.c | 45 + .../svcomp_cstrncmp_true_alloca.c | 45 + .../svcomp_cstrncpy_alloca.c | 42 + .../svcomp_cstrpbrk_true_alloca.c | 43 + .../svcomp_cstrspn_true_alloca.c | 41 + .../AProVE_memory_alloca/svcomp_diff_alloca.c | 45 + .../svcomp_easySum-alloca.c | 20 + .../AProVE_memory_alloca/svcomp_ex1-alloca.c | 23 + .../AProVE_memory_alloca/svcomp_ex2-alloca.c | 35 + .../AProVE_memory_alloca/svcomp_ex3a-alloca.c | 20 + .../AProVE_memory_alloca/svcomp_ex3b-alloca.c | 22 + .../svcomp_fermat-alloca.c | 31 + .../AProVE_memory_alloca/svcomp_flag-alloca.c | 24 + .../svcomp_gcd1_true-alloca.c | 30 + .../svcomp_genady_true-alloca.c | 10 + .../svcomp_insertionsort_alloca.c | 26 + .../svcomp_java_AG313-alloca.c | 23 + .../svcomp_java_Break-alloca.c | 15 + .../svcomp_java_BubbleSort_alloca.c | 25 + .../svcomp_java_Continue1-alloca.c | 15 + .../svcomp_java_LogBuiltIn-alloca.c | 20 + .../svcomp_java_Nested-alloca.c | 16 + .../svcomp_java_Sequence-alloca.c | 12 + .../AProVE_memory_alloca/svcomp_lis_alloca.c | 36 + .../svcomp_min_rf_true-alloca.c | 18 + .../svcomp_mult_array_alloca.c | 20 + .../svcomp_openbsd_cbzero_alloca.c | 30 + .../svcomp_openbsd_cmemchr_alloca.c | 32 + .../svcomp_openbsd_cmemrchr_alloca.c | 37 + .../svcomp_openbsd_cmemset_alloca.c | 31 + .../svcomp_openbsd_cstpcpy_alloca.c | 27 + .../svcomp_openbsd_cstpncpy_alloca.c | 40 + .../svcomp_openbsd_cstrcat_alloca.c | 35 + .../svcomp_openbsd_cstrcmp_alloca.c | 37 + .../svcomp_openbsd_cstrcpy_alloca.c | 30 + .../svcomp_openbsd_cstrcspn_alloca.c | 49 + .../svcomp_openbsd_cstrlcpy_alloca.c | 51 + .../svcomp_openbsd_cstrlen_alloca.c | 29 + .../svcomp_openbsd_cstrncat_alloca.c | 48 + .../svcomp_openbsd_cstrncmp_alloca.c | 40 + .../svcomp_openbsd_cstrncpy_alloca.c | 42 + .../svcomp_openbsd_cstrnlen_alloca.c | 35 + .../svcomp_openbsd_cstrpbrk_alloca.c | 43 + .../svcomp_openbsd_cstrspn_alloca.c | 45 + .../svcomp_openbsd_cstrstr_alloca.c | 72 + .../svcomp_selectionsort_alloca.c | 32 + .../svcomp_stroeder1_alloca.c | 25 + .../svcomp_stroeder2_alloca.c | 28 + .../svcomp_strreplace_alloca.c | 27 + .../svcomp_subseq_alloca.c | 33 + .../svcomp_substring_alloca.c | 35 + .../svcomp_twisted-alloca.c | 34 + .../svcomp_add_last_unsafe.c | 16 + .../svcomp_bubble_sort_unsafe.c | 22 + .../svcomp_bubblesort_unsafe.c | 23 + .../svcomp_count_down_unsafe.c | 24 + .../svcomp_cstrcat_unsafe.c | 19 + .../svcomp_cstrchr_unsafe.c | 39 + .../svcomp_cstrcpy_unsafe.c | 18 + .../svcomp_cstrlen_unsafe.c | 37 + .../svcomp_cstrncat_unsafe.c | 29 + .../svcomp_cstrncpy_unsafe.c | 32 + .../svcomp_cstrpbrk_unsafe.c | 45 + .../svcomp_delete_alloca_unsafe.c | 20 + .../svcomp_delete_unsafe.c | 16 + .../AProVE_memory_unsafe/svcomp_diff_usafe.c | 37 + .../svcomp_insertion_sort_unsafe.c | 22 + .../svcomp_insertionsort_unsafe.c | 21 + .../svcomp_java_BubbleSort_unsafe.c | 20 + .../svcomp_knapsack_alloca_unsafe.c | 35 + .../svcomp_knapsack_unsafe.c | 27 + .../AProVE_memory_unsafe/svcomp_lis_unsafe.c | 36 + .../svcomp_mult_array_unsafe.c | 20 + .../svcomp_reverse_array_alloca_unsafe.c | 30 + .../svcomp_reverse_array_unsafe.c | 30 + .../svcomp_selection_sort_unsafe.c | 24 + .../svcomp_selectionsort_unsafe.c | 27 + .../svcomp_stroeder1_unsafe.c | 20 + .../svcomp_stroeder2_unsafe.c | 23 + .../tpdb/C/AProVE_numeric/Avg_true.c | 50 + .../tpdb/C/AProVE_numeric/Binomial_true.c | 45 + .../tpdb/C/AProVE_numeric/Et1_true.c | 42 + .../tpdb/C/AProVE_numeric/Et2_true.c | 45 + .../tpdb/C/AProVE_numeric/Et3_true.c | 43 + .../tpdb/C/AProVE_numeric/Et4_true.c | 49 + .../tpdb/C/AProVE_numeric/LeUserDefRec_true.c | 47 + .../tpdb/C/AProVE_numeric/LogRecursive_true.c | 44 + .../tpdb/C/AProVE_numeric/Parts_true.c | 38 + .../C/AProVE_numeric/TerminatorRec02_true.c | 35 + .../tpdb/C/AProVE_numeric/TwoWay_true.c | 50 + data/benchmarks/tpdb/C/AProVE_numeric/ex2.c | 20 + data/benchmarks/tpdb/C/AProVE_numeric/ex3.c | 20 + .../tpdb/C/AProVE_numeric/rec_counter1.c | 22 + .../tpdb/C/AProVE_numeric/rec_counter3.c | 24 + .../tpdb/C/AProVE_numeric/rec_strlen.c | 21 + ...nn01_true-unreach-call_modified_modified.c | 40 + ...e-unreach-call_true-termination_modified.c | 37 + ...e-unreach-call_true-termination_modified.c | 48 + ...p_Fibonacci01_true-unreach-call_modified.c | 37 + ...e-unreach-call_true-termination_modified.c | 42 + .../tpdb/C/AProVE_numeric/svcomp_a.01.c | 19 + .../tpdb/C/AProVE_numeric/svcomp_a.04.c | 15 + .../tpdb/C/AProVE_numeric/svcomp_a.05.c | 15 + .../tpdb/C/AProVE_numeric/svcomp_a.06.c | 16 + .../tpdb/C/AProVE_numeric/svcomp_a.07.c | 16 + .../tpdb/C/AProVE_numeric/svcomp_a.08.c | 16 + .../C/AProVE_numeric/svcomp_a.09_assume.c | 21 + .../tpdb/C/AProVE_numeric/svcomp_a.10.c | 19 + .../tpdb/C/AProVE_numeric/svcomp_b.01.c | 15 + .../tpdb/C/AProVE_numeric/svcomp_b.02.c | 16 + .../svcomp_b.03-no-inv_assume.c | 18 + .../C/AProVE_numeric/svcomp_b.03_assume.c | 22 + .../tpdb/C/AProVE_numeric/svcomp_b.04.c | 15 + .../tpdb/C/AProVE_numeric/svcomp_b.05.c | 15 + .../tpdb/C/AProVE_numeric/svcomp_b.06.c | 16 + .../tpdb/C/AProVE_numeric/svcomp_b.07.c | 16 + .../svcomp_b.09-no-inv_assume.c | 23 + .../C/AProVE_numeric/svcomp_b.09_assume.c | 27 + .../tpdb/C/AProVE_numeric/svcomp_b.10.c | 23 + .../tpdb/C/AProVE_numeric/svcomp_b.11.c | 23 + .../tpdb/C/AProVE_numeric/svcomp_b.12.c | 23 + .../tpdb/C/AProVE_numeric/svcomp_b.13.c | 23 + .../tpdb/C/AProVE_numeric/svcomp_b.14.c | 18 + .../tpdb/C/AProVE_numeric/svcomp_b.15.c | 18 + .../tpdb/C/AProVE_numeric/svcomp_b.16.c | 19 + .../tpdb/C/AProVE_numeric/svcomp_b.17.c | 19 + .../tpdb/C/AProVE_numeric/svcomp_b.18.c | 21 + .../C/AProVE_numeric/svcomp_c.01-no-inv.c | 19 + .../C/AProVE_numeric/svcomp_c.01_assume.c | 21 + .../tpdb/C/AProVE_numeric/svcomp_c.02.c | 20 + .../tpdb/C/AProVE_numeric/svcomp_c.03.c | 21 + .../tpdb/C/AProVE_numeric/svcomp_c.07.c | 18 + .../tpdb/C/AProVE_numeric/svcomp_c.08.c | 19 + .../tpdb/C/AProVE_numeric/svcomp_easySum.c | 14 + .../tpdb/C/AProVE_numeric/svcomp_ex1.c | 15 + .../tpdb/C/AProVE_numeric/svcomp_ex2.c | 24 + .../tpdb/C/AProVE_numeric/svcomp_ex3a.c | 15 + .../tpdb/C/AProVE_numeric/svcomp_ex3b.c | 15 + .../tpdb/C/AProVE_numeric/svcomp_fermat.c | 26 + .../tpdb/C/AProVE_numeric/svcomp_flag.c | 16 + ...e-unreach-call_true-termination_modified.c | 43 + .../tpdb/C/AProVE_numeric/svcomp_java_AG313.c | 15 + .../tpdb/C/AProVE_numeric/svcomp_java_Break.c | 10 + .../C/AProVE_numeric/svcomp_java_Continue1.c | 10 + .../C/AProVE_numeric/svcomp_java_LogBuiltIn.c | 20 + .../C/AProVE_numeric/svcomp_java_Nested.c | 10 + .../C/AProVE_numeric/svcomp_java_Sequence.c | 7 + ...e-unreach-call_true-termination_modified.c | 37 + .../tpdb/C/AProVE_numeric/svcomp_twisted.c | 25 + .../C/Di_Stefano_20/boids_true-termination.c | 418 + .../flock-noarray_true-termination.c | 731 + .../C/Di_Stefano_20/flock_true-termination.c | 302 + .../formation-noarray_true-termination.c | 965 + .../formation_true-termination.c | 347 + .../majority-noarray_true-termination.c | 460 + .../Di_Stefano_20/majority_true-termination.c | 272 + .../tpdb/C/Hensel_22/asc_ll_search_last.c | 37 + .../tpdb/C/Hensel_22/cyclic_ll_search_last.c | 41 + .../desc_ll_search-ptrdiff_existing.c | 45 + .../C/Hensel_22/desc_ll_search_existing.c | 39 + .../tpdb/C/Hensel_22/desc_ll_search_last.c | 37 + .../tpdb/C/Hensel_22/desc_ll_search_mod.c | 39 + .../C/Hensel_22/desc_ll_with_offset_search.c | 40 + .../tpdb/C/Hensel_22/nondet_ll_delete.c | 50 + .../tpdb/C/Hensel_22/nondet_ll_init.c | 28 + .../tpdb/C/Hensel_22/nondet_ll_init_rec.c | 23 + .../tpdb/C/Hensel_22/nondet_ll_insert.c | 53 + .../C/Hensel_22/nondet_ll_search_last_n.c | 40 + .../C/Hensel_22/nondet_ll_search_last_zero.c | 40 + .../tpdb/C/Hensel_22/nondet_ll_search_zero.c | 37 + .../tpdb/C/Hensel_22/nondet_ll_skip.c | 46 + .../C/Hensel_22/nondet_ll_traverse-ptrdiff.c | 43 + .../tpdb/C/Hensel_22/nondet_ll_traverse.c | 37 + .../tpdb/C/Hensel_22/nondet_ll_traverse_rec.c | 30 + .../960521-1_1_true-valid-memsafety.c | 645 + ...ion01_true-unreach-call_true-termination.c | 41 + ...ajamani-SPIN2000-Fig1_false-unreach-call.c | 33 + ...Odd01_true-unreach-call_true-termination.c | 49 + .../Fibonacci01_true-unreach-call.c | 38 + ...y91_false-unreach-call_false-termination.c | 32 + .../Primes_true-unreach-call.c | 94 + .../Problem01_label00_true-unreach-call.c | 593 + .../Problem02_label00_true-unreach-call.c | 616 + .../Problem03_label00_true-unreach-call.c | 1668 + .../Problem04_label00_true-unreach-call.c | 4823 + .../Problem05_label00_false-unreach-call.c | 11134 + .../Problem06_label00_false-unreach-call.c | 9479 + .../Problem07_label00_true-unreach-call.c | 73652 ++++++ .../Problem08_label00_true-unreach-call.c | 171498 +++++++++++++ .../Problem09_label00_true-unreach-call.c | 184978 +++++++++++++++ .../Problem10_label00_true-unreach-call.c | 591 + .../Problem11_label00_false-unreach-call.c | 1043 + .../Problem12_label00_false-unreach-call.c | 4824 + .../Problem13_label00_true-unreach-call.c | 5812 + .../Problem14_label00_true-unreach-call.c | 890 + .../Problem15_label00_false-unreach-call.c | 1774 + .../Problem16_label00_false-unreach-call.c | 1781 + .../Problem17_label00_true-unreach-call.c | 2588 + .../Problem18_label00_false-unreach-call.c | 4266 + .../Problem19_label00_true-unreach-call.c | 9788 + .../afterrec_2calls_false-unreach-call.c | 22 + ..._true-unreach-call_false-termination.cil.c | 501 + .../bubble_sort_linux_true-unreach-call.c | 1020 + ..._false-unreach-call_true-termination.cil.c | 2948 + .../cs_dekker_true-unreach-call.c | 957 + .../cs_fib_longer_true-unreach-call.c | 957 + .../cs_lamport_true-unreach-call.c | 1029 + .../cs_peterson_true-unreach-call.c | 926 + .../cs_stateful_false-unreach-call.c | 899 + .../cs_szymanski_true-unreach-call.c | 971 + .../cs_time_var_mutex_true-unreach-call.c | 947 + ...set_multi_proc_false-unreach-call_ground.c | 37 + ...1_true-unreach-call_true-termination.cil.c | 1453 + ...dll_extends_pointer_true-valid-memsafety.c | 665 + .../dll_of_dll_true-unreach-call.c | 765 + ...or_spec1_product01_true-unreach-call.cil.c | 4785 + ...il_spec0_product05_true-unreach-call.cil.c | 3782 + .../fibo_2calls_2_false-unreach-call.c | 42 + .../fibo_5_false-unreach-call.c | 30 + ..._false-unreach-call_true-termination.cil.c | 1501 + ...gcd01_true-unreach-call_true-termination.c | 43 + .../id2_b2_o3_true-unreach-call.c | 27 + .../id_i10_o10_false-unreach-call.c | 15 + ...1_true-unreach-call_true-termination.cil.c | 768 + .../list-ext_1_true-valid-memsafety.c | 672 + .../list_true-unreach-call.c | 654 + .../lockfree-3.0_true-valid-memsafety.c | 702 + ..._true-unreach-call_false-termination.cil.c | 1366 + .../merge_sort_true-unreach-call.c | 722 + ...mp_spec1_product01_true-unreach-call.cil.c | 1181 + ...false-unreach-call.1.ufo.BOUNDED-10.pals.c | 677 + ...false-unreach-call.1.ufo.BOUNDED-10.pals.c | 596 + ..._false-unreach-call.1.ufo.BOUNDED-6.pals.c | 592 + ...false-unreach-call.1.ufo.BOUNDED-10.pals.c | 2817 + ..._false-unreach-call.1.ufo.BOUNDED-6.pals.c | 372 + ...false-unreach-call.1.ufo.BOUNDED-12.pals.c | 625 + ..._false-unreach-call.1.ufo.BOUNDED-6.pals.c | 343 + ...false-unreach-call.1.ufo.BOUNDED-16.pals.c | 730 + ..._false-unreach-call.1.ufo.BOUNDED-6.pals.c | 634 + ...false-unreach-call.1.ufo.BOUNDED-10.pals.c | 2917 + ...false-unreach-call_false-termination.cil.c | 360 + ...noi01_true-unreach-call_true-termination.c | 56 + .../rekcba_aso_false-unreach-call.1.M1.c | 3772 + .../rekcba_ctm_false-unreach-call.2.c | 13057 + .../rekcba_nxt_false-unreach-call.1.M1.c | 3108 + .../s3_clnt_1_false-unreach-call.cil.c | 770 + .../s3_srvr_14_false-unreach-call.cil.c | 904 + .../s3_srvr_1_false-unreach-call.cil.c | 869 + .../sanfoundry_02_true-unreach-call_ground.c | 38 + .../simple-ext_1_true-valid-memsafety.c | 658 + .../skiplist_3lvl_true-valid-memsafety.c | 681 + .../sll_to_dll_rev_true-unreach-call.c | 719 + ...ting_bubblesort_true-unreach-call_ground.c | 27 + .../splice_true-unreach-call.c | 680 + ...tandard_compare_true-unreach-call_ground.c | 21 + .../standard_copy7_true-unreach-call_ground.c | 39 + ...andard_password_true-unreach-call_ground.c | 20 + .../stateful_check_false-unreach-call.c | 117 + .../sum_2x3_false-unreach-call.c | 18 + .../sum_non_eq_false-unreach-call.c | 18 + .../test-0134_true-valid-memsafety.c | 720 + .../test-0219_true-valid-memsafety.c | 798 + .../test-0234_true-valid-memsafety.c | 872 + .../test-0513_1_true-valid-memsafety.c | 696 + .../test-0521_true-valid-memsafety.c | 782 + ...s_15_true-unreach-call_false-termination.c | 234 + ...false-unreach-call_false-termination.cil.c | 485 + ...false-unreach-call_false-termination.cil.c | 985 + ...false-unreach-call_false-termination.cil.c | 1610 + ...false-unreach-call_false-termination.cil.c | 1980 + ...false-unreach-call_false-termination.cil.c | 449 + ...false-unreach-call_false-termination.cil.c | 1069 + ...false-unreach-call_false-termination.cil.c | 1689 + ...false-unreach-call_false-termination.cil.c | 2062 + .../tree_stack_true-valid-memsafety.c | 674 + ...ierGonnord-SAS2010-Fig1_true-termination.c | 23 + ...erGonnord-SAS2010-Fig2a_true-termination.c | 22 + ...erGonnord-SAS2010-Fig2b_true-termination.c | 26 + ...ord-SAS2010-counterex1a_true-termination.c | 30 + ...ord-SAS2010-counterex1b_true-termination.c | 23 + ...Gonnord-SAS2010-cousot9_true-termination.c | 24 + ...erGonnord-SAS2010-ndecr_true-termination.c | 17 + ...nord-SAS2010-nestedLoop_true-termination.c | 33 + ...onnord-SAS2010-random1d_true-termination.c | 25 + ...rierGonnord-SAS2010-rsd_true-termination.c | 28 + ...nord-SAS2010-speedpldi2_true-termination.c | 28 + ...nord-SAS2010-speedpldi3_true-termination.c | 28 + ...nord-SAS2010-speedpldi4_true-termination.c | 25 + ...nnord-SAS2010-terminate_true-termination.c | 23 + ...erGonnord-SAS2010-wcet2_true-termination.c | 21 + ...rGonnord-SAS2010-while2_true-termination.c | 22 + ...ierGonnord-SAS2010-wise_true-termination.c | 24 + .../Avery-FLOPS2006-Table1_true-termination.c | 35 + ...-CAV2005-Fig1-modified_false-termination.c | 35 + ...MannaSipma-CAV2005-Fig1_true-termination.c | 33 + ...nnaSipma-ICALP2005-Fig1_true-termination.c | 35 + ...ivYang-ESOP2008-aaron12_true-termination.c | 26 + ...givYang-ESOP2008-aaron1_true-termination.c | 30 + ...givYang-ESOP2008-aaron4_true-termination.c | 36 + ...givYang-ESOP2008-aaron6_true-termination.c | 31 + ...vYang-ESOP2008-random1d_true-termination.c | 27 + ...opadhyay-SAS2012-Ex1.02_true-termination.c | 30 + ...opadhyay-SAS2012-Ex1.03_true-termination.c | 30 + ...opadhyay-SAS2012-Ex1.04_true-termination.c | 30 + ...opadhyay-SAS2012-Ex1.05_true-termination.c | 30 + ...opadhyay-SAS2012-Ex2.01_true-termination.c | 28 + ...padhyay-SAS2012-Ex2.02_false-termination.c | 28 + ...padhyay-SAS2012-Ex2.05_false-termination.c | 28 + ...opadhyay-SAS2012-Ex2.07_true-termination.c | 28 + ...opadhyay-SAS2012-Ex2.08_true-termination.c | 28 + ...opadhyay-SAS2012-Ex2.10_true-termination.c | 28 + ...opadhyay-SAS2012-Ex2.13_true-termination.c | 28 + ...opadhyay-SAS2012-Ex2.16_true-termination.c | 28 + ...padhyay-SAS2012-Ex2.17_false-termination.c | 28 + ...opadhyay-SAS2012-Ex2.20_true-termination.c | 31 + ...opadhyay-SAS2012-Ex2.22_true-termination.c | 32 + ...opadhyay-SAS2012-Ex3.01_true-termination.c | 29 + ...opadhyay-SAS2012-Ex3.03_true-termination.c | 30 + ...opadhyay-SAS2012-Ex3.04_true-termination.c | 29 + ...opadhyay-SAS2012-Ex3.05_true-termination.c | 29 + ...opadhyay-SAS2012-Ex3.08_true-termination.c | 30 + ...opadhyay-SAS2012-Ex3.09_true-termination.c | 33 + ...opadhyay-SAS2012-Ex4.01_true-termination.c | 31 + ...eZuleger-TACAS2013-Fig1_true-termination.c | 23 + ...Zuleger-TACAS2013-Fig7a_true-termination.c | 27 + ...Zuleger-TACAS2013-Fig7b_true-termination.c | 28 + ...panReps-CAV2006-Fig1a_true-termination.c.c | 24 + ...nKoskinen-PLDI2009-Fig1_true-termination.c | 34 + ...riRajamani-SAS2010-Fig1_true-termination.c | 46 + ...iRajamani-SAS2010-Fig2_false-termination.c | 84 + ...riRajamani-SAS2010-Fig3_true-termination.c | 30 + ...ePodelski-ATVA2013-Fig2_true-termination.c | 19 + ...ePodelski-ATVA2013-Fig5_true-termination.c | 19 + ...ePodelski-ATVA2013-Fig6_true-termination.c | 25 + ...ePodelski-ATVA2013-Fig7_true-termination.c | 26 + ...ePodelski-ATVA2013-Fig8_true-termination.c | 21 + ...ePodelski-ATVA2013-Fig9_true-termination.c | 22 + ...OPL2002-LockingExample_false-termination.c | 57 + ...intersteiger-CAV2010-Ex_true-termination.c | 22 + ...tersteiger-CAV2010-Fig1_true-termination.c | 30 + .../SV-COMP_Termination_Category/LICENSE.txt | 23 + ...ellRubio-FMCAD2013-Fig1_true-termination.c | 33 + ...sBen-Amram-POPL2001-Ex1_true-termination.c | 31 + ...sBen-Amram-POPL2001-Ex2_true-termination.c | 36 + ...sBen-Amram-POPL2001-Ex3_true-termination.c | 31 + ...sBen-Amram-POPL2001-Ex4_true-termination.c | 32 + ...sBen-Amram-POPL2001-Ex5_true-termination.c | 32 + ...sBen-Amram-POPL2001-Ex6_true-termination.c | 40 + ...eHeizmann-TACAS2014-Ex9_true-termination.c | 26 + ...ikeHeizmann-WST2014-Ex9_true-termination.c | 17 + .../Masse-VMCAI2014-Fig1b_true-termination.c | 21 + ...balchenko-LICS2004-Fig2_true-termination.c | 28 + ...alchenko-TACAS2011-Fig4_true-termination.c | 23 + ...balchenko-VMCAI2004-Ex1_true-termination.c | 32 + .../C/SV-COMP_Termination_Category/README.txt | 7 + .../TelAviv-Amir-Minimum_true-termination.c | 38 + ...Toulouse-BranchesToLoop_true-termination.c | 25 + ...use-MultiBranchesToLoop_true-termination.c | 65 + ...UrbanMine-ESOP2014-Fig3_true-termination.c | 31 + .../aaron2_true-termination.c | 24 + .../aaron3_true-termination.c | 27 + .../aviad_true-termination.c | 25 + .../gcd1_true-termination.c | 39 + .../genady_true-termination.c | 14 + .../joey_false-termination.c | 24 + .../min_rf_true-termination.c | 25 + .../svcomp_cstrcmp_true-termination.c | 45 + .../svcomp_cstrcspn_true-termination.c | 43 + .../svcomp_cstrlen_true-termination.c | 37 + .../svcomp_cstrncmp_true-termination.c | 48 + .../svcomp_cstrpbrk_true-termination.c | 45 + .../svcomp_cstrspn_true-termination.c | 44 + .../svcomp_strchr_true-termination.c | 39 + .../Ackermann_false-termination.c | 25 + .../Ton_Chanh_15/Ackermann_true-termination.c | 23 + .../Binary_Search_true-termination.c | 22 + .../McCarthy91_Recursion_true-termination.c | 17 + .../MutualRecursion_1a_false-termination.c | 24 + .../MutualRecursion_1b_true-termination.c | 24 + .../NestedRecursion_1a_false-termination.c | 26 + .../NestedRecursion_1b_true-termination.c | 26 + .../NestedRecursion_1c_true-termination.c | 26 + .../NestedRecursion_1d_true-termination.c | 26 + .../NestedRecursion_2a_false-termination.c | 21 + .../NestedRecursion_2b_false-termination.c | 22 + .../NestedRecursion_2c_true-termination.c | 22 + .../4BitCounterPointer_true-termination.c | 35 + ...uivalentConstantIndices_true-termination.c | 16 + ...ivalentConstantIndices_false-termination.c | 15 + ...ys03-ValueRestictsIndex_true-termination.c | 23 + .../C/Ultimate/Bangalore_true-termination.c | 23 + .../tpdb/C/Ultimate/Cairo_true-termination.c | 24 + .../C/Ultimate/Collatz_unknown-termination.c | 21 + .../C/Ultimate/Division_false-termination.c | 18 + .../C/Ultimate/Gothenburg_true-termination.c | 26 + data/benchmarks/tpdb/C/Ultimate/LICENSE.txt | 23 + .../LexIndexValue-Array_true-termination.c | 23 + .../LexIndexValue-Pointer_true-termination.c | 23 + ...obnya-Boolean-Reordered_true-termination.c | 24 + .../C/Ultimate/Madrid_false-termination.c | 14 + .../tpdb/C/Ultimate/Mysore_true-termination.c | 23 + .../NonTermination2_false-termination.c | 19 + .../NonTermination3_false-termination.c | 17 + .../NonTerminationSimple2_false-termination.c | 17 + .../NonTerminationSimple3_false-termination.c | 18 + .../NonTerminationSimple4_false-termination.c | 22 + .../NonTerminationSimple5_false-termination.c | 20 + .../NonTerminationSimple6_false-termination.c | 18 + .../NonTerminationSimple7_false-termination.c | 21 + .../NonTerminationSimple8_false-termination.c | 26 + .../NonTerminationSimple9_false-termination.c | 16 + .../C/Ultimate/Nyala-2lex_true-termination.c | 26 + .../C/Ultimate/Parallel_true-termination.c | 30 + .../C/Ultimate/Pure3Phase_true-termination.c | 30 + data/benchmarks/tpdb/C/Ultimate/README.txt | 10 + ...RecursiveMultiplication_true-termination.c | 27 + ...ecursiveNonterminating_false-termination.c | 20 + .../Ultimate/Rotation180_false-termination.c | 21 + .../C/Ultimate/Stockholm_true-termination.c | 23 + .../SyntaxSupportPointer01_true-termination.c | 16 + .../C/Ultimate/WhileFalse_true-termination.c | 15 + .../C/Ultimate/WhileTrue_false-termination.c | 15 + .../Stroeder_15/2Nested_true-termination.c | 24 + .../4NestedWith3Variables_true-termination.c | 29 + ...ierGonnord-SAS2010-Fig1_true-termination.c | 28 + ...erGonnord-SAS2010-Fig2a_true-termination.c | 27 + ...erGonnord-SAS2010-Fig2b_true-termination.c | 32 + ...Gonnord-SAS2010-complex_true-termination.c | 33 + ...ord-SAS2010-counterex1a_true-termination.c | 34 + ...ord-SAS2010-counterex1b_true-termination.c | 28 + ...Gonnord-SAS2010-cousot9_true-termination.c | 27 + ...rGonnord-SAS2010-exmini_true-termination.c | 26 + ...erGonnord-SAS2010-loops_true-termination.c | 30 + ...erGonnord-SAS2010-ndecr_true-termination.c | 21 + ...nord-SAS2010-nestedLoop_true-termination.c | 37 + ...onnord-SAS2010-random1d_true-termination.c | 29 + ...onnord-SAS2010-random2d_true-termination.c | 35 + ...rierGonnord-SAS2010-rsd_true-termination.c | 30 + ...ord-SAS2010-speedFails4_true-termination.c | 32 + ...nord-SAS2010-speedpldi2_true-termination.c | 30 + ...nord-SAS2010-speedpldi3_true-termination.c | 30 + ...nord-SAS2010-speedpldi4_true-termination.c | 28 + ...nnord-SAS2010-terminate_true-termination.c | 25 + ...erGonnord-SAS2010-wcet2_true-termination.c | 25 + ...rGonnord-SAS2010-while2_true-termination.c | 25 + ...ierGonnord-SAS2010-wise_true-termination.c | 27 + .../tpdb/C_Integer/Stroeder_15/AlternDiv.c | 20 + .../C_Integer/Stroeder_15/AlternDivWide.c | 26 + .../C_Integer/Stroeder_15/AlternDivWidening.c | 27 + .../tpdb/C_Integer/Stroeder_15/AlternKonv.c | 24 + .../Avery-FLOPS2006-Table1_true-termination.c | 31 + .../Stroeder_15/Bangalore_true-termination.c | 24 + ...en-Amram-LMCS2010-Ex2.3_true-termination.c | 32 + .../Stroeder_15/Benghazi_true-termination.c | 29 + ...-CAV2005-Fig1-modified_false-termination.c | 30 + ...MannaSipma-CAV2005-Fig1_true-termination.c | 28 + ...nnaSipma-ICALP2005-Fig1_true-termination.c | 34 + ...dtCookFuhs-CAV2013-Fig1_true-termination.c | 27 + ...tCookFuhs-CAV2013-Fig9a_true-termination.c | 31 + ...hs-CAV2013-Introduction_true-termination.c | 23 + .../Stroeder_15/Cairo_true-termination.c | 26 + ...ivYang-ESOP2008-aaron12_true-termination.c | 29 + ...givYang-ESOP2008-aaron1_true-termination.c | 33 + ...givYang-ESOP2008-aaron4_true-termination.c | 39 + ...givYang-ESOP2008-aaron6_true-termination.c | 34 + ...vYang-ESOP2008-random1d_true-termination.c | 31 + ...vYang-ESOP2008-random2d_true-termination.c | 35 + ...TACAS2014-Introduction_false-termination.c | 28 + ...opadhyay-SAS2012-Ex1.01_true-termination.c | 29 + ...opadhyay-SAS2012-Ex1.02_true-termination.c | 30 + ...opadhyay-SAS2012-Ex1.03_true-termination.c | 30 + ...opadhyay-SAS2012-Ex1.04_true-termination.c | 30 + ...opadhyay-SAS2012-Ex1.05_true-termination.c | 30 + ...opadhyay-SAS2012-Ex2.01_true-termination.c | 31 + ...padhyay-SAS2012-Ex2.02_false-termination.c | 31 + ...padhyay-SAS2012-Ex2.03_false-termination.c | 31 + ...padhyay-SAS2012-Ex2.04_false-termination.c | 31 + ...padhyay-SAS2012-Ex2.06_false-termination.c | 35 + ...opadhyay-SAS2012-Ex2.07_true-termination.c | 31 + ...opadhyay-SAS2012-Ex2.08_true-termination.c | 31 + ...opadhyay-SAS2012-Ex2.09_true-termination.c | 32 + ...opadhyay-SAS2012-Ex2.10_true-termination.c | 31 + ...padhyay-SAS2012-Ex2.11_false-termination.c | 32 + ...padhyay-SAS2012-Ex2.12_false-termination.c | 32 + ...opadhyay-SAS2012-Ex2.13_true-termination.c | 31 + ...padhyay-SAS2012-Ex2.14_false-termination.c | 30 + ...padhyay-SAS2012-Ex2.15_false-termination.c | 30 + ...opadhyay-SAS2012-Ex2.16_true-termination.c | 31 + ...padhyay-SAS2012-Ex2.17_false-termination.c | 31 + ...opadhyay-SAS2012-Ex2.18_true-termination.c | 31 + ...opadhyay-SAS2012-Ex2.19_true-termination.c | 31 + ...opadhyay-SAS2012-Ex2.20_true-termination.c | 31 + ...opadhyay-SAS2012-Ex2.21_true-termination.c | 31 + ...opadhyay-SAS2012-Ex2.22_true-termination.c | 32 + ...opadhyay-SAS2012-Ex3.01_true-termination.c | 32 + ...padhyay-SAS2012-Ex3.02_false-termination.c | 32 + ...opadhyay-SAS2012-Ex3.03_true-termination.c | 33 + ...opadhyay-SAS2012-Ex3.04_true-termination.c | 32 + ...opadhyay-SAS2012-Ex3.05_true-termination.c | 32 + ...padhyay-SAS2012-Ex3.06_false-termination.c | 33 + ...opadhyay-SAS2012-Ex3.07_true-termination.c | 33 + ...opadhyay-SAS2012-Ex3.08_true-termination.c | 34 + ...opadhyay-SAS2012-Ex3.09_true-termination.c | 33 + ...opadhyay-SAS2012-Ex3.10_true-termination.c | 32 + ...opadhyay-SAS2012-Ex4.01_true-termination.c | 35 + ...khopadhyay-SAS2012-Fig1_true-termination.c | 25 + .../tpdb/C_Integer/Stroeder_15/Choose.c | 22 + .../tpdb/C_Integer/Stroeder_15/ChooseLife.c | 25 + ...lonSipma-TACAS2001-Fig1_true-termination.c | 26 + .../tpdb/C_Integer/Stroeder_15/ComplInterv.c | 18 + .../tpdb/C_Integer/Stroeder_15/ComplInterv2.c | 21 + .../tpdb/C_Integer/Stroeder_15/ComplInterv3.c | 22 + .../tpdb/C_Integer/Stroeder_15/ComplxStruc.c | 45 + .../tpdb/C_Integer/Stroeder_15/ConvLower.c | 16 + ...eZuleger-TACAS2013-Fig1_true-termination.c | 27 + ...Zuleger-TACAS2013-Fig7a_true-termination.c | 31 + ...Zuleger-TACAS2013-Fig7b_true-termination.c | 32 + ...ACAS2013-Fig8a-modified_true-termination.c | 25 + ...Zuleger-TACAS2013-Fig8a_true-termination.c | 24 + ...Zuleger-TACAS2013-Fig8b_true-termination.c | 27 + .../Stroeder_15/Copenhagen_true-termination.c | 22 + .../tpdb/C_Integer/Stroeder_15/Cousot.c | 21 + .../tpdb/C_Integer/Stroeder_15/DivMinus.c | 19 + .../tpdb/C_Integer/Stroeder_15/DivMinus2.c | 29 + .../C_Integer/Stroeder_15/DivWithoutMinus.c | 29 + .../tpdb/C_Integer/Stroeder_15/DoubleNeg.c | 17 + .../tpdb/C_Integer/Stroeder_15/Et1.c | 17 + .../tpdb/C_Integer/Stroeder_15/Et2.c | 19 + .../tpdb/C_Integer/Stroeder_15/Et4.c | 22 + .../tpdb/C_Integer/Stroeder_15/Even.c | 15 + .../tpdb/C_Integer/Stroeder_15/Ex01.c | 14 + .../tpdb/C_Integer/Stroeder_15/Ex02.c | 16 + .../tpdb/C_Integer/Stroeder_15/Ex03.c | 16 + .../tpdb/C_Integer/Stroeder_15/Ex04.c | 14 + .../tpdb/C_Integer/Stroeder_15/Ex05.c | 12 + .../tpdb/C_Integer/Stroeder_15/Ex06.c | 19 + .../tpdb/C_Integer/Stroeder_15/Ex07.c | 19 + .../tpdb/C_Integer/Stroeder_15/Ex08.c | 26 + .../tpdb/C_Integer/Stroeder_15/Factorial.c | 19 + .../tpdb/C_Integer/Stroeder_15/Fibonacci.c | 22 + .../tpdb/C_Integer/Stroeder_15/Flip.c | 20 + .../tpdb/C_Integer/Stroeder_15/Flip2.c | 28 + .../tpdb/C_Integer/Stroeder_15/GCD.c | 35 + .../tpdb/C_Integer/Stroeder_15/GCD2.c | 31 + .../tpdb/C_Integer/Stroeder_15/GCD3.c | 41 + .../tpdb/C_Integer/Stroeder_15/GCD4.c | 26 + .../tpdb/C_Integer/Stroeder_15/Gauss.c | 17 + ...panReps-CAV2006-Fig1a_true-termination.c.c | 27 + .../Stroeder_15/Gothenburg_true-termination.c | 28 + ...niGulwani-CAV2008-Fig1a_true-termination.c | 28 + ...niGulwani-CAV2008-Fig1b_true-termination.c | 28 + ...niGulwani-CAV2008-Fig1c_true-termination.c | 23 + ...nKoskinen-PLDI2009-Fig1_true-termination.c | 34 + ...ePodelski-ATVA2013-Fig1_true-termination.c | 22 + ...ePodelski-ATVA2013-Fig4_true-termination.c | 21 + ...ePodelski-ATVA2013-Fig6_true-termination.c | 22 + ...ePodelski-ATVA2013-Fig8_true-termination.c | 23 + ...ePodelski-ATVA2013-Fig9_true-termination.c | 24 + .../tpdb/C_Integer/Stroeder_15/IntPath.c | 21 + ...intersteiger-CAV2010-Ex_true-termination.c | 25 + ...ellRubio-FMCAD2013-Fig1_true-termination.c | 32 + .../tpdb/C_Integer/Stroeder_15/Lcm.c | 22 + ...eHeizmann-TACAS2014-Ex1_true-termination.c | 25 + ...eHeizmann-TACAS2014-Ex7_true-termination.c | 29 + ...eHeizmann-TACAS2014-Ex8_true-termination.c | 27 + ...eHeizmann-TACAS2014-Ex9_true-termination.c | 27 + ...Heizmann-TACAS2014-Fig1_true-termination.c | 22 + ...keHeizmann-WST2014-Ex5_false-termination.c | 24 + ...keHeizmann-WST2014-Ex6_false-termination.c | 22 + ...obnya-Boolean-Reordered_true-termination.c | 28 + .../tpdb/C_Integer/Stroeder_15/Log.c | 28 + .../tpdb/C_Integer/Stroeder_15/LogAG.c | 29 + .../tpdb/C_Integer/Stroeder_15/LogMult.c | 22 + .../tpdb/C_Integer/Stroeder_15/Loop.c | 16 + .../Stroeder_15/Madrid_false-termination.c | 18 + .../tpdb/C_Integer/Stroeder_15/Marbie1.c | 14 + .../tpdb/C_Integer/Stroeder_15/Marbie2.c | 14 + .../Masse-VMCAI2014-Ex6_true-termination.c | 24 + .../Masse-VMCAI2014-Fig1a_true-termination.c | 26 + .../Masse-VMCAI2014-Fig1b_true-termination.c | 24 + .../C_Integer/Stroeder_15/McCarthyIterative.c | 22 + .../Stroeder_15/MenloPark_true-termination.c | 28 + .../tpdb/C_Integer/Stroeder_15/Middle.c | 17 + .../tpdb/C_Integer/Stroeder_15/MinusBuiltIn.c | 20 + .../tpdb/C_Integer/Stroeder_15/MinusMin.c | 25 + .../C_Integer/Stroeder_15/MinusUserDefined.c | 28 + .../tpdb/C_Integer/Stroeder_15/MirrorInterv.c | 24 + .../C_Integer/Stroeder_15/MirrorIntervSim.c | 26 + .../Stroeder_15/Mysore_true-termination.c | 25 + .../tpdb/C_Integer/Stroeder_15/NO_00.c | 14 + .../tpdb/C_Integer/Stroeder_15/NO_01.c | 38 + .../tpdb/C_Integer/Stroeder_15/NO_02.c | 19 + .../tpdb/C_Integer/Stroeder_15/NO_03.c | 19 + .../tpdb/C_Integer/Stroeder_15/NO_04.c | 38 + .../tpdb/C_Integer/Stroeder_15/NO_10.c | 17 + .../tpdb/C_Integer/Stroeder_15/NO_12.c | 17 + .../tpdb/C_Integer/Stroeder_15/NO_13.c | 17 + .../tpdb/C_Integer/Stroeder_15/NO_21.c | 15 + .../tpdb/C_Integer/Stroeder_15/NO_22.c | 15 + .../tpdb/C_Integer/Stroeder_15/NO_23.c | 15 + .../tpdb/C_Integer/Stroeder_15/NO_24.c | 18 + .../tpdb/C_Integer/Stroeder_15/NarrowKonv.c | 23 + .../tpdb/C_Integer/Stroeder_15/Narrowing.c | 32 + .../tpdb/C_Integer/Stroeder_15/Nested.c | 20 + .../NonTermination1_false-termination.c | 18 + .../NonTermination2_false-termination.c | 19 + .../NonTermination4_false-termination.c | 23 + .../NonTerminationSimple2_false-termination.c | 20 + .../NonTerminationSimple3_false-termination.c | 21 + .../NonTerminationSimple4_false-termination.c | 23 + .../NonTerminationSimple5_false-termination.c | 22 + .../NonTerminationSimple6_false-termination.c | 19 + .../NonTerminationSimple7_false-termination.c | 21 + .../NonTerminationSimple8_false-termination.c | 28 + .../NonTerminationSimple9_false-termination.c | 18 + ...NoriSharma-FSE2013-Fig7_true-termination.c | 29 + ...NoriSharma-FSE2013-Fig8_true-termination.c | 33 + .../Stroeder_15/Nyala-2lex_true-termination.c | 25 + .../tpdb/C_Integer/Stroeder_15/Overflow.c | 14 + .../Stroeder_15/Parallel_true-termination.c | 30 + .../tpdb/C_Integer/Stroeder_15/PastaA1.c | 19 + .../tpdb/C_Integer/Stroeder_15/PastaA10.c | 20 + .../tpdb/C_Integer/Stroeder_15/PastaA4.c | 16 + .../tpdb/C_Integer/Stroeder_15/PastaA5.c | 16 + .../tpdb/C_Integer/Stroeder_15/PastaA6.c | 19 + .../tpdb/C_Integer/Stroeder_15/PastaA7.c | 19 + .../tpdb/C_Integer/Stroeder_15/PastaA8.c | 17 + .../tpdb/C_Integer/Stroeder_15/PastaA9.c | 20 + .../tpdb/C_Integer/Stroeder_15/PastaB1.c | 16 + .../tpdb/C_Integer/Stroeder_15/PastaB11.c | 24 + .../tpdb/C_Integer/Stroeder_15/PastaB14.c | 19 + .../tpdb/C_Integer/Stroeder_15/PastaB15.c | 21 + .../tpdb/C_Integer/Stroeder_15/PastaB16.c | 19 + .../tpdb/C_Integer/Stroeder_15/PastaB17.c | 21 + .../tpdb/C_Integer/Stroeder_15/PastaB2.c | 17 + .../tpdb/C_Integer/Stroeder_15/PastaB3.c | 18 + .../tpdb/C_Integer/Stroeder_15/PastaB4.c | 19 + .../tpdb/C_Integer/Stroeder_15/PastaB6.c | 17 + .../tpdb/C_Integer/Stroeder_15/PastaB7.c | 19 + .../tpdb/C_Integer/Stroeder_15/PastaC1.c | 19 + .../tpdb/C_Integer/Stroeder_15/PastaC10.c | 19 + .../tpdb/C_Integer/Stroeder_15/PastaC2.c | 20 + .../tpdb/C_Integer/Stroeder_15/PastaC3.c | 22 + .../tpdb/C_Integer/Stroeder_15/PastaC7.c | 21 + .../tpdb/C_Integer/Stroeder_15/PastaC9.c | 24 + .../Stroeder_15/Piecewise_true-termination.c | 32 + .../tpdb/C_Integer/Stroeder_15/PlusSwap.c | 24 + ...balchenko-LICS2004-Fig1_true-termination.c | 25 + ...004-Fig2-TACAS2011-Fig3_true-termination.c | 33 + ...alchenko-TACAS2011-Fig1_true-termination.c | 20 + ...alchenko-TACAS2011-Fig2_true-termination.c | 25 + ...alchenko-TACAS2011-Fig4_true-termination.c | 26 + ...balchenko-VMCAI2004-Ex1_true-termination.c | 31 + ...balchenko-VMCAI2004-Ex2_true-termination.c | 21 + .../Stroeder_15/Pure2Phase_true-termination.c | 28 + .../Stroeder_15/Pure3Phase_true-termination.c | 33 + .../Rotation180_false-termination.c | 26 + .../tpdb/C_Integer/Stroeder_15/Sequence.c | 16 + .../Stroeder_15/Stockholm_true-termination.c | 27 + .../tpdb/C_Integer/Stroeder_15/Sunset.c | 21 + .../tpdb/C_Integer/Stroeder_15/Swingers.c | 19 + .../TelAviv-Amir-Minimum_true-termination.c | 42 + .../Stroeder_15/Thun_true-termination.c | 33 + ...Toulouse-BranchesToLoop_true-termination.c | 29 + ...use-MultiBranchesToLoop_true-termination.c | 69 + .../tpdb/C_Integer/Stroeder_15/TrueDiv.c | 18 + .../C_Integer/Stroeder_15/TwoFloatInterv.c | 23 + .../tpdb/C_Integer/Stroeder_15/UpAndDown.c | 26 + .../C_Integer/Stroeder_15/UpAndDownIneq.c | 26 + .../Urban-WST2013-Fig1_false-termination.c | 23 + ...T2013-Fig2-modified1000_true-termination.c | 27 + .../Urban-WST2013-Fig2_true-termination.c | 27 + ...UrbanMine-ESOP2014-Fig3_true-termination.c | 36 + .../Stroeder_15/Velroyen_false-termination.c | 30 + .../Stroeder_15/Waldkirch_true-termination.c | 19 + .../tpdb/C_Integer/Stroeder_15/WhileDecr.c | 14 + .../Stroeder_15/WhileFalse_true-termination.c | 17 + .../tpdb/C_Integer/Stroeder_15/WhileIncr.c | 14 + .../C_Integer/Stroeder_15/WhileIncrPart.c | 18 + .../tpdb/C_Integer/Stroeder_15/WhileNested.c | 19 + .../C_Integer/Stroeder_15/WhileNestedOffset.c | 19 + .../tpdb/C_Integer/Stroeder_15/WhilePart.c | 16 + .../tpdb/C_Integer/Stroeder_15/WhileSingle.c | 16 + .../tpdb/C_Integer/Stroeder_15/WhileTrue.c | 14 + .../Stroeder_15/WhileTrue_false-termination.c | 17 + .../Stroeder_15/aaron2_true-termination.c | 28 + .../Stroeder_15/aaron3_true-termination.c | 31 + .../tpdb/C_Integer/Stroeder_15/collatz.c | 33 + .../Stroeder_15/easy1_true-termination.c | 28 + .../Stroeder_15/easy2_true-termination.c | 26 + .../Stroeder_15/gcd1_true-termination.c | 33 + .../Stroeder_15/genady_true-termination.c | 20 + .../Stroeder_15/min_rf_true-termination.c | 38 + .../tpdb/C_Integer/Stroeder_15/svcomp_a.01.c | 20 + .../tpdb/C_Integer/Stroeder_15/svcomp_a.04.c | 16 + .../tpdb/C_Integer/Stroeder_15/svcomp_a.05.c | 16 + .../tpdb/C_Integer/Stroeder_15/svcomp_a.06.c | 18 + .../tpdb/C_Integer/Stroeder_15/svcomp_a.07.c | 18 + .../tpdb/C_Integer/Stroeder_15/svcomp_a.08.c | 17 + .../Stroeder_15/svcomp_a.09_assume.c | 14 + .../tpdb/C_Integer/Stroeder_15/svcomp_a.10.c | 20 + .../tpdb/C_Integer/Stroeder_15/svcomp_b.01.c | 16 + .../tpdb/C_Integer/Stroeder_15/svcomp_b.02.c | 17 + .../Stroeder_15/svcomp_b.03-no-inv_assume.c | 15 + .../Stroeder_15/svcomp_b.03_assume.c | 13 + .../tpdb/C_Integer/Stroeder_15/svcomp_b.04.c | 16 + .../tpdb/C_Integer/Stroeder_15/svcomp_b.05.c | 14 + .../tpdb/C_Integer/Stroeder_15/svcomp_b.06.c | 17 + .../tpdb/C_Integer/Stroeder_15/svcomp_b.07.c | 18 + .../Stroeder_15/svcomp_b.09-no-inv_assume.c | 22 + .../Stroeder_15/svcomp_b.09_assume.c | 22 + .../tpdb/C_Integer/Stroeder_15/svcomp_b.10.c | 24 + .../tpdb/C_Integer/Stroeder_15/svcomp_b.11.c | 24 + .../tpdb/C_Integer/Stroeder_15/svcomp_b.12.c | 24 + .../tpdb/C_Integer/Stroeder_15/svcomp_b.13.c | 25 + .../tpdb/C_Integer/Stroeder_15/svcomp_b.14.c | 19 + .../tpdb/C_Integer/Stroeder_15/svcomp_b.15.c | 20 + .../tpdb/C_Integer/Stroeder_15/svcomp_b.16.c | 20 + .../tpdb/C_Integer/Stroeder_15/svcomp_b.17.c | 21 + .../tpdb/C_Integer/Stroeder_15/svcomp_b.18.c | 21 + .../Stroeder_15/svcomp_c.01-no-inv.c | 19 + .../Stroeder_15/svcomp_c.01_assume.c | 17 + .../tpdb/C_Integer/Stroeder_15/svcomp_c.02.c | 20 + .../tpdb/C_Integer/Stroeder_15/svcomp_c.03.c | 22 + .../tpdb/C_Integer/Stroeder_15/svcomp_c.07.c | 20 + .../tpdb/C_Integer/Stroeder_15/svcomp_c.08.c | 19 + .../C_Integer/Stroeder_15/svcomp_easySum.c | 15 + .../tpdb/C_Integer/Stroeder_15/svcomp_ex1.c | 15 + .../tpdb/C_Integer/Stroeder_15/svcomp_ex2.c | 25 + .../tpdb/C_Integer/Stroeder_15/svcomp_ex3a.c | 14 + .../tpdb/C_Integer/Stroeder_15/svcomp_ex3b.c | 15 + .../C_Integer/Stroeder_15/svcomp_fermat.c | 24 + .../tpdb/C_Integer/Stroeder_15/svcomp_flag.c | 20 + .../C_Integer/Stroeder_15/svcomp_java_AG313.c | 17 + .../C_Integer/Stroeder_15/svcomp_java_Break.c | 15 + .../Stroeder_15/svcomp_java_Continue1.c | 18 + .../Stroeder_15/svcomp_java_Nested.c | 20 + .../Stroeder_15/svcomp_java_Sequence.c | 20 + .../Ton_Chanh_15/2Nested_false-termination.c | 24 + .../Bangalore_false-termination.c | 23 + .../Bangalore_v2_false-termination.c | 22 + .../Bangalore_v3_false-termination.c | 22 + .../Bangalore_v4_true-termination.c | 22 + .../Benghazi_nondet_true-termination.c | 24 + .../Cairo_nondet_false-termination.c | 21 + .../Cairo_step2_false-termination.c | 21 + .../Copenhagen_disj_true-termination.c | 22 + .../Gothenburg_v2_true-termination.c | 25 + .../Hanoi_2vars_false-termination.c | 16 + .../Hanoi_3vars_false-termination.c | 22 + .../Hanoi_plus_false-termination.c | 22 + .../McCarthy91_Iteration_true-termination.c | 24 + .../Ton_Chanh_15/Mysore_false-termination.c | 24 + .../Singapore_plus_false-termination.c | 23 + .../Ton_Chanh_15/Singapore_true-termination.c | 23 + .../Singapore_v1_false-termination.c | 23 + .../Singapore_v2_false-termination.c | 23 + dataset.zip | Bin 0 -> 436310 bytes experiments/README.md | 3 + experiments/all_benchmarks.txt | 1166 + experiments/array_files.txt | 169 + experiments/arrays.txt | 169 + experiments/filtered_termination_positive.txt | 281 + experiments/loop_invariants.txt | 469 + experiments/negative_benchmarks.txt | 86 + experiments/one_loop_one_method_no_arrays.txt | 555 + experiments/positive_benchmarks.txt | 455 + .../positive_termination_benchmarks.txt | 281 + experiments/recursion_pre_post.txt | 31 + experiments/recursive_functions.txt | 31 + experiments/termination.txt | 281 + logs/README.md | 1 + src/Dockerfile | 66 + src/benchmark.py | 690 + src/boogie.py | 160 + src/build_parser.py | 12 + src/checker.py | 28 + src/frama_c.py | 1139 + src/llm.py | 11 + src/llm_api_client.py | 178 + src/llm_utils.py | 154 + src/loopy.py | 1482 + src/loopy_factory.py | 25 + src/loopy_llm.py | 180 + src/main.py | 140 + src/requirements.txt | 5 + src/tree_sitter_lib/vendor/tree-sitter-c | 1 + templates/array_prompt_with_nudges.txt | 31 + templates/array_system_message.txt | 42 + templates/csv_format_healing_prompt.txt | 25 + .../csv_format_healing_system_message.txt | 33 + templates/healing_prompt.txt | 27 + templates/healing_system_message.txt | 34 + templates/m1_prepost_prompt.txt | 6 + templates/m1_prepost_system.txt | 51 + templates/plain.txt | 12 + templates/prepost_prompt.txt | 6 + templates/prepost_system.txt | 23 + templates/simplified_prompt.txt | 7 + templates/simplified_prompt_arrays.txt | 26 + templates/simplified_prompt_with_nudges.txt | 17 + templates/simplified_system_message.txt | 28 + templates/svcomp_prompt.txt | 13 + templates/svcomp_system_message.txt | 66 + templates/termination_baseline_prompt.txt | 6 + templates/termination_baseline_system.txt | 11 + templates/termination_invariants_prompt.txt | 12 + templates/termination_invariants_system.txt | 29 + templates/termination_lexico_prompt.txt | 10 + templates/termination_lexico_system.txt | 21 + templates/termination_mphase_prompt.txt | 15 + templates/termination_mphase_system.txt | 22 + templates/termination_variants_prompt.txt | 11 + templates/termination_variants_system.txt | 15 + 2647 files changed, 704042 insertions(+) create mode 100644 .gitignore create mode 100644 .gitmodules create mode 100644 GeneratedInvariants.xlsx create mode 100644 LICENSE.txt create mode 100644 README.md create mode 100644 config/README.md create mode 100644 config/arrays.yaml create mode 100644 config/loop_invariants.yaml create mode 100644 config/recursive_functions.yaml create mode 100644 config/sample_config.yaml create mode 100644 config/termination.yaml create mode 100644 data/benchmark_links.txt create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-CPA-example_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-disj_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-forward_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-interpolants_needed-pepm-proc.c_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-pepm-scp-example1.c_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-pepm-scp-example2.c_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-re1-LOPSTR-pepm-proc.c_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-selection_sort-pepm-proc.c_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-singleloop2-pepm-proc.c_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-paper-prog_d-pepm-proc.c_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-test1-unsafe_VeriMAP_false.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-test1_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-test3-unsafe_VeriMAP_false.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-test3_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs12_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs13_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs14_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs15_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs1_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs2_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs3_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs6_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs7_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs8_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs9_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc1-unsafe_VeriMAP_false.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc11_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc12-unsafe_VeriMAP_false.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc13-unsafe_VeriMAP_false.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc14_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc1_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc3_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc9-unsafe_VeriMAP_false.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop10_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop11_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop12_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop13_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop14_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop15_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop16_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop17_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop1_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop20_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop21_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop22_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop27-unsafe_VeriMAP_false.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop28-unsafe_VeriMAP_false.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop29_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop2_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop3-unsafe_VeriMAP_false.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop4_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop5-unsafe_VeriMAP_false.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop6_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop7_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop8-unsafe_VeriMAP_false.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop9_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp1-unsafe_VeriMAP_false.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp10_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp11_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp12_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp13-unsafe_VeriMAP_false.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp14_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp15_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp16_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp17_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp2_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp3_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp4_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp5_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp6_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp7_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp8_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp9_VeriMAP_true.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd1_VeriMAP_false.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd1err_VeriMAP_false.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd2_VeriMAP_false.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd2err_VeriMAP_false.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd3_VeriMAP_false.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd3err_VeriMAP_false.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd4err_VeriMAP_false.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark1.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark10.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark2.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark3.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark4.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark5.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark6.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark7.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark8.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark9.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/.DS_Store create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/MADWiFi-encode_ie_ok.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/NetBSD_g_Ctoc.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/NetBSD_glob3_iny.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/NetBSD_loop.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/NetBSD_loop_int.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/SpamAssassin-loop.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/SpamAssassin-loop_ok.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/apache-escape-absolute.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/apache-get-tag.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/bind_expands_vars2.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/bound.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/down.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/fragtest_simple.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/gulwani_cegar1.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/gulwani_cegar2.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/gulwani_fig1a.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/half.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/heapsort.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/heapsort1.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/heapsort2.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/heapsort3.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/id_build.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/id_trans.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/ken-imp.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/large_const.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/mergesort.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/nest-if.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/nest-if1.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/nest-if2.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/nest-if3.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/nest-if4.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/nest-if5.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/nest-if6.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/nest-if7.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/nest-if8.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/nest-len.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/nested.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/nested1.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/nested2.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/nested3.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/nested4.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/nested5.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/nested6.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/nested7.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/nested8.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/nested9.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/puzzle1.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/quicksort.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/rajamani_1.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/sendmail-close-angle.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/sendmail-mime-fromqp.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/sendmail-mime7to8_arr_three_chars_no_test_ok.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq-len.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq-proc.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq-sim.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq-z3.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq2.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq3.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq4.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/simple.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/simple_if.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/simple_nest.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/sort_instrumented.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/spin.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/spin1.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/split.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/string_concat-noarr.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/svd-some-loop.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/svd1.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/svd2.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/svd3.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/svd4.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/test.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/up-nd.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/up-nested.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/up.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/up2.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/up3.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/up4.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/invgen/up5.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/llreve/03_while_unsafe.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/llreve/barthe2_merged_safe.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/llreve/barthe_merged_safe.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/llreve/barthe_merged_unsafe.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/llreve/break_merged_safe.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/llreve/break_single_merged_safe.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/llreve/bug15_safe.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/llreve/cube_square_unsafe.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/llreve/fib_merged_safe.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/llreve/loop2_merged_safe.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/llreve/loop3_merged_safe.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/llreve/loop4_merged_safe.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/llreve/loop5_merged_unsafe.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/llreve/loop_merged_safe.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/llreve/loop_unswitching_merged_safe.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/llreve/nested-while_merged_safe.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/llreve/nested-while_merged_unsafe.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/llreve/simple-loop_merged_safe.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/llreve/square_twice_merged_safe.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/llreve/upcount_merged_safe.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/llreve/while_after_while_if_merged_safe.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/.DS_Store create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/LICENSE.txt create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/MADWiFi-encode_ie_ok_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/MADWiFi-encode_ie_ok_true-unreach-call_true-termination.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/Makefile create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/NetBSD_loop_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/NetBSD_loop_true-unreach-call_true-termination.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/README create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/SpamAssassin-loop_true-unreach-call_false-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/SpamAssassin-loop_true-unreach-call_false-termination.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/apache-escape-absolute_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/apache-escape-absolute_true-unreach-call_true-termination.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/apache-get-tag_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/apache-get-tag_true-unreach-call_true-termination.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/assert.h create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/down_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/down_true-unreach-call_true-termination.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/fragtest_simple_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/fragtest_simple_true-unreach-call_true-termination.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/half_2_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/half_2_true-unreach-call_true-termination.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/heapsort_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/heapsort_true-unreach-call_true-termination.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/id_build_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/id_build_true-unreach-call_true-termination.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/id_trans_false-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/id_trans_false-unreach-call_true-termination.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/large_const_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/large_const_true-unreach-call_true-termination.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/nest-if3_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/nest-if3_true-unreach-call_true-termination.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/nested6_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/nested6_true-unreach-call_true-termination.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/nested9_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/nested9_true-unreach-call_true-termination.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/sendmail-close-angle_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/sendmail-close-angle_true-unreach-call_true-termination.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/seq_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/seq_true-unreach-call_true-termination.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/string_concat-noarr_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/string_concat-noarr_true-unreach-call_true-termination.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/up_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/up_true-unreach-call_true-termination.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/.DS_Store create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/LICENSE.txt create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/Makefile create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/README create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/afnp2014_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/afnp2014_true-unreach-call_true-termination.c.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/assert.h create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/bhmr2007_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/bhmr2007_true-unreach-call_true-termination.c.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/cggmp2005_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/cggmp2005_true-unreach-call_true-termination.c.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/cggmp2005_variant_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/cggmp2005_variant_true-unreach-call_true-termination.c.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/cggmp2005b_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/cggmp2005b_true-unreach-call_true-termination.c.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/css2003_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/css2003_true-unreach-call_true-termination.c.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/ddlm2013_true-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/ddlm2013_true-unreach-call.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gcnr2008_false-unreach-call_false-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gcnr2008_false-unreach-call_false-termination.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gj2007_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gj2007_true-unreach-call_true-termination.c.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gj2007b_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gj2007b_true-unreach-call_true-termination.c.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gr2006_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gr2006_true-unreach-call_true-termination.c.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gsv2008_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gsv2008_true-unreach-call_true-termination.c.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/hhk2008_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/hhk2008_true-unreach-call_true-termination.c.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/jm2006_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/jm2006_true-unreach-call_true-termination.c.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/jm2006_variant_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/jm2006_variant_true-unreach-call_true-termination.c.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/.DS_Store create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/LICENSE.txt create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/Makefile create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/README create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/assert.h create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/count_by_1_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/count_by_1_true-unreach-call_true-termination.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/count_by_1_variant_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/count_by_1_variant_true-unreach-call_true-termination.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/count_by_2_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/count_by_2_true-unreach-call_true-termination.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/count_by_k_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/count_by_k_true-unreach-call_true-termination.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/count_by_nondet_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/count_by_nondet_true-unreach-call_true-termination.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/half_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/half_true-unreach-call_true-termination.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/nested_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/nested_true-unreach-call_true-termination.i create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/count_up_down_false-unreach-call_true-termination.i.annot.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/count_up_down_true-unreach-call_true-termination.i.annot.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/for_bounded_loop1_false-unreach-call_true-termination.i.annot.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/for_infinite_loop_1_true-unreach-call_false-termination.i.annot.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/for_infinite_loop_2_true-unreach-call_false-termination.i.annot.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum01_bug02_false-unreach-call_true-termination.i.annot.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum01_bug02_sum01_bug02_base.case_false-unreach-call_true-termination.i.annot.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum01_false-unreach-call_true-termination.i.annot.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum01_true-unreach-call_true-termination.i.annot.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum03_false-unreach-call_true-termination.i.annot.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum03_true-unreach-call_false-termination.i.annot.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum04_false-unreach-call_true-termination.i.annot.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum04_true-unreach-call_true-termination.i.annot.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/terminator_02_false-unreach-call_true-termination.i.annot.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/terminator_02_true-unreach-call_true-termination.i.annot.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/terminator_03_false-unreach-call_true-termination.i.annot.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/terminator_03_true-unreach-call_true-termination.i.annot.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex01_false-unreach-call_true-termination.i.annot.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex01_true-unreach-call.i.annot.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex02_false-unreach-call_true-termination.i.annot.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex02_true-unreach-call_true-termination.i.annot.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex03_false-unreach-call_true-termination.i.annot.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex03_true-unreach-call.i.annot.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex04_true-unreach-call_false-termination.i.annot.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/while_infinite_loop_1_true-unreach-call_false-termination.i.annot.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/while_infinite_loop_2_true-unreach-call_false-termination.i.annot.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/while_infinite_loop_3_true-unreach-call_false-termination.i.annot.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/while_infinite_loop_4_false-unreach-call_true-termination.i.annot.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/.DS_Store create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/.DS_Store create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/MSPL.txt create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/README.txt create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/.DS_Store create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/add.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/cegar2_v12.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/cegar2_v6.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/cegar2_v9.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/fig1_vars6.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/fig1_vars9.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/trex03_v12.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/trex03_v3.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/trex03_v6.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/trex03_v9.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/w1.v.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/w2.v.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/afnp2014_true-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/afnp2014_true-unreach-call.c.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar1.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar1.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar1.v.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar1.v.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar2.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar2.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar2.v.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar2.v.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cggmp2005_true-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cggmp2005_true-unreach-call.c.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/countud.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d01.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d03_not_from_hola.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d05.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d07_not_from_hola.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d12.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d15.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d17.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d19.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d24.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d25.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d28.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/dec.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/dec.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/decn.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/decn.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/decn.v.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/dtuc.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/dutc.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex14.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex14.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex14n.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex14n.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex14n.v.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex14n.v.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex23.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex23.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex23.v.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex23.v.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex7.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex7.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex7.v.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex7n.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig1.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig1.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig1.v.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig1.v.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig3.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig3.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig3.v.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig3.v.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig9.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig9.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig9.v.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig9.v.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form22.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form22.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form25.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form25.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form27.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form27.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/inc.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/inc.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/incn.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/incn.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/incn.v.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/incn.v.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/loops.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/n_c11.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/n_c11n.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/n_c11n.v.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/nc11.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/nc11n.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/nc11n.v.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01.c.cleanup.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01.v.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01.v.c.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01_safe.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01_safe.v.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03.v.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03.v.c.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03_safe.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03_safe.v.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04.c.cleanup.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04_safe.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04n.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04n.c.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04n.v.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04n.v.c.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/tacas.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/tacas.v.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/tacas06.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/tacas06.v.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex01.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex01.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex01.v.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex01.v.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03.c.cleanup.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03.v.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03.v.c.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03_safe.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03_safe.v.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/veris.c_sendmail__tTflag_arr_one_loop_safe.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/vsend.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/vsend.c.cleanup.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/vsend.v.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/vsend.v.c.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/w1.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/w1.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/w2.bpl create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/w2.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/01.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/02.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/03.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/04.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/05.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/06.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/07.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/08.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/09.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/10.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/11.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/12.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/13.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/14.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/15.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/16.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/17.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/18.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/19.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/20.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/21.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/22.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/23.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/24.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/25.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/26.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/27.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/28.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/29.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/30.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/31.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/32.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/33.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/34.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/35.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/36.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/37.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/38.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/39.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/40.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/41.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/42.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/43.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/44.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/45.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/46.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/.DS_Store create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/LICENSE.txt create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/Makefile create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/README.txt create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/afterrec_2calls_false-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/afterrec_2calls_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/afterrec_false-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/afterrec_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_10_false-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_10_true-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_15_false-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_15_true-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_20_false-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_20_true-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_25_false-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_25_true-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_10_false-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_10_true-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_15_false-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_15_true-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_20_false-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_20_true-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_25_false-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_25_true-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_2_false-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_2_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_4_false-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_4_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_5_false-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_5_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_6_false-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_6_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_8_false-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_8_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_5_false-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_5_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_7_false-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_7_true-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id2_b2_o3_true-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id2_b3_o2_false-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id2_b3_o5_true-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id2_b5_o10_true-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id2_i5_o5_false-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id2_i5_o5_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_b2_o3_true-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_b3_o2_false-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_b3_o5_true-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_b5_o10_true-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i10_o10_false-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i10_o10_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i15_o15_false-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i15_o15_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i20_o20_false-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i20_o20_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i25_o25_false-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i25_o25_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i5_o5_false-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i5_o5_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_o1000_false-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_o100_false-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_o10_false-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_o200_false-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_o20_false-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_o3_false-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_10x0_false-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_10x0_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_15x0_false-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_15x0_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_20x0_false-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_20x0_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_25x0_false-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_25x0_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_2x3_false-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_2x3_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_non_eq_false-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_non_eq_true-unreach-call.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_non_false-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_non_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Ackermann01_true-unreach-call_true-no-overflow.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Ackermann02_false-unreach-call_true-no-overflow_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Ackermann03_true-unreach-call_true-no-overflow.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Ackermann04_true-unreach-call_true-no-overflow.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Addition01_true-unreach-call_true-no-overflow_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Addition02WithOverflowBug_false-no-overflow.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Addition02_false-unreach-call_true-no-overflow_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Addition03_false-no-overflow.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Addition03_true-unreach-call_true-no-overflow_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/BallRajamani-SPIN2000-Fig1_false-unreach-call_true-no-overflow_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/EvenOdd01_true-unreach-call_true-no-overflow_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/EvenOdd03WithOverflowBug_false-no-overflow.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/EvenOdd03_false-unreach-call_true-no-overflow_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Fibonacci01_true-unreach-call_true-no-overflow.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Fibonacci02_true-unreach-call_true-no-overflow_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Fibonacci03_true-unreach-call_true-no-overflow_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Fibonacci04_false-unreach-call_true-no-overflow_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Fibonacci05_false-unreach-call_true-no-overflow_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/LICENSE.txt create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Makefile create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/McCarthy91_false-unreach-call_true-no-overflow_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/McCarthy91_true-unreach-call_true-no-overflow_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/MultCommutative_true-unreach-call_true-no-overflow_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Primes_true-unreach-call_true-no-overflow_false-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/README.txt create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/gcd01_true-unreach-call_true-no-overflow_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/gcd02_true-unreach-call_true-no-overflow_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/recHanoi01_true-unreach-call_true-no-overflow_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/recHanoi02_true-unreach-call_true-no-overflow_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/recHanoi03_true-unreach-call_true-no-overflow_true-termination.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/.DS_Store create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/cav.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/ex1.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/ex2.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/heapsort1.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/popl.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/spam1.c create mode 100644 data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/svd1.c create mode 100644 data/benchmarks/accelerating_invariant_generation/cav/05.c create mode 100644 data/benchmarks/accelerating_invariant_generation/cav/07.c create mode 100644 data/benchmarks/accelerating_invariant_generation/cav/09.c create mode 100644 data/benchmarks/accelerating_invariant_generation/cav/12.c create mode 100644 data/benchmarks/accelerating_invariant_generation/cav/15.c create mode 100644 data/benchmarks/accelerating_invariant_generation/cav/19.c create mode 100644 data/benchmarks/accelerating_invariant_generation/cav/20.c create mode 100644 data/benchmarks/accelerating_invariant_generation/cav/24.c create mode 100644 data/benchmarks/accelerating_invariant_generation/cav/25.c create mode 100644 data/benchmarks/accelerating_invariant_generation/cav/28.c create mode 100644 data/benchmarks/accelerating_invariant_generation/cav/31.c create mode 100644 data/benchmarks/accelerating_invariant_generation/cav/33.c create mode 100644 data/benchmarks/accelerating_invariant_generation/cav/35.c create mode 100644 data/benchmarks/accelerating_invariant_generation/cav/37.c create mode 100644 data/benchmarks/accelerating_invariant_generation/cav/39.c create mode 100644 data/benchmarks/accelerating_invariant_generation/cav/f2.c create mode 100644 data/benchmarks/accelerating_invariant_generation/cav/gulv.c create mode 100644 data/benchmarks/accelerating_invariant_generation/cav/gulv_simp.c create mode 100644 data/benchmarks/accelerating_invariant_generation/cav/myassert.h create mode 100644 data/benchmarks/accelerating_invariant_generation/cav/pldi082_unbounded.c create mode 100644 data/benchmarks/accelerating_invariant_generation/cav/substring1.c create mode 100644 data/benchmarks/accelerating_invariant_generation/cav/xy0.c create mode 100644 data/benchmarks/accelerating_invariant_generation/cav/xy10.c create mode 100644 data/benchmarks/accelerating_invariant_generation/cav/xy4.c create mode 100644 data/benchmarks/accelerating_invariant_generation/cav/xyz.c create mode 100644 data/benchmarks/accelerating_invariant_generation/cav/xyz2.c create mode 100644 data/benchmarks/accelerating_invariant_generation/crafted/const_safe1.c create mode 100644 data/benchmarks/accelerating_invariant_generation/crafted/const_unsafe1.c create mode 100644 data/benchmarks/accelerating_invariant_generation/crafted/diamond_safe1.c create mode 100644 data/benchmarks/accelerating_invariant_generation/crafted/diamond_safe2.c create mode 100644 data/benchmarks/accelerating_invariant_generation/crafted/diamond_unsafe1.c create mode 100644 data/benchmarks/accelerating_invariant_generation/crafted/diamond_unsafe2.c create mode 100644 data/benchmarks/accelerating_invariant_generation/crafted/functions_safe1.c create mode 100644 data/benchmarks/accelerating_invariant_generation/crafted/functions_unsafe1.c create mode 100644 data/benchmarks/accelerating_invariant_generation/crafted/multivar_safe1.c create mode 100644 data/benchmarks/accelerating_invariant_generation/crafted/multivar_unsafe1.c create mode 100644 data/benchmarks/accelerating_invariant_generation/crafted/myassert.h create mode 100644 data/benchmarks/accelerating_invariant_generation/crafted/nested_safe1.c create mode 100644 data/benchmarks/accelerating_invariant_generation/crafted/nested_unsafe1.c create mode 100644 data/benchmarks/accelerating_invariant_generation/crafted/overflow_safe1.c create mode 100644 data/benchmarks/accelerating_invariant_generation/crafted/overflow_unsafe1.c create mode 100644 data/benchmarks/accelerating_invariant_generation/crafted/phases_safe1.c create mode 100644 data/benchmarks/accelerating_invariant_generation/crafted/phases_unsafe1.c create mode 100644 data/benchmarks/accelerating_invariant_generation/crafted/simple_safe1.c create mode 100644 data/benchmarks/accelerating_invariant_generation/crafted/simple_safe2.c create mode 100644 data/benchmarks/accelerating_invariant_generation/crafted/simple_safe3.c create mode 100644 data/benchmarks/accelerating_invariant_generation/crafted/simple_safe4.c create mode 100644 data/benchmarks/accelerating_invariant_generation/crafted/simple_unsafe1.c create mode 100644 data/benchmarks/accelerating_invariant_generation/crafted/simple_unsafe2.c create mode 100644 data/benchmarks/accelerating_invariant_generation/crafted/simple_unsafe3.c create mode 100644 data/benchmarks/accelerating_invariant_generation/crafted/simple_unsafe4.c create mode 100644 data/benchmarks/accelerating_invariant_generation/crafted/underapprox_safe1.c create mode 100644 data/benchmarks/accelerating_invariant_generation/crafted/underapprox_safe2.c create mode 100644 data/benchmarks/accelerating_invariant_generation/crafted/underapprox_unsafe1.c create mode 100644 data/benchmarks/accelerating_invariant_generation/crafted/underapprox_unsafe2.c create mode 100644 data/benchmarks/accelerating_invariant_generation/dagger/barbr.c create mode 100644 data/benchmarks/accelerating_invariant_generation/dagger/barbrprime.c create mode 100644 data/benchmarks/accelerating_invariant_generation/dagger/bk-nat.c create mode 100644 data/benchmarks/accelerating_invariant_generation/dagger/bkley.c create mode 100644 data/benchmarks/accelerating_invariant_generation/dagger/cars.c create mode 100644 data/benchmarks/accelerating_invariant_generation/dagger/efm.c create mode 100644 data/benchmarks/accelerating_invariant_generation/dagger/ex1.c create mode 100644 data/benchmarks/accelerating_invariant_generation/dagger/ex2.c create mode 100644 data/benchmarks/accelerating_invariant_generation/dagger/fig1a.c create mode 100644 data/benchmarks/accelerating_invariant_generation/dagger/fig2.c create mode 100644 data/benchmarks/accelerating_invariant_generation/dagger/hsort.c create mode 100644 data/benchmarks/accelerating_invariant_generation/dagger/hsortprime.c create mode 100644 data/benchmarks/accelerating_invariant_generation/dagger/lifnat.c create mode 100644 data/benchmarks/accelerating_invariant_generation/dagger/lifnatprime.c create mode 100644 data/benchmarks/accelerating_invariant_generation/dagger/lifo.c create mode 100644 data/benchmarks/accelerating_invariant_generation/dagger/myassert.h create mode 100644 data/benchmarks/accelerating_invariant_generation/dagger/seesaw.c create mode 100644 data/benchmarks/accelerating_invariant_generation/dagger/substring1.c create mode 100644 data/benchmarks/accelerating_invariant_generation/dagger/swim.c create mode 100644 data/benchmarks/accelerating_invariant_generation/dagger/swim1.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/MADWiFi-encode_ie_ok.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/NetBSD_g_Ctoc.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/NetBSD_glob3_iny.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/NetBSD_loop.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/NetBSD_loop_int.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/SpamAssassin-loop.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/SpamAssassin-loop_ok.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/apache-escape-absolute.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/apache-get-tag.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/bind_expands_vars2.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/bound.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/down.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/fragtest_simple.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/gulwani_cegar1.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/gulwani_cegar2.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/half.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/heapsort.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/heapsort1.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/heapsort2.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/heapsort3.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/id_build.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/id_trans.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/ken-imp.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/mergesort.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/myassert.h create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/nest-if.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/nest-if1.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/nest-if2.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/nest-if3.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/nest-if4.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/nest-if5.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/nest-if7.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/nest-if8.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/nest-len.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/nested.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/nested1.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/nested2.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/nested3.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/nested4.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/nested5.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/nested6.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/nested7.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/nested8.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/nested9.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/puzzle1.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/rajamani_1.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/sendmail-close-angle.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/sendmail-mime-fromqp.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/sendmail-mime7to8_arr_three_chars_no_test_ok.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/seq-len.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/seq-proc.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/seq-sim.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/seq-z3.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/seq.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/seq2.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/seq3.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/simple.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/simple_if.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/simple_nest.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/sort_instrumented.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/spin.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/spin1.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/split.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/string_concat-noarr.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/svd-some-loop.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/svd1.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/svd2.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/svd3.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/svd4.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/test.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/up-nd.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/up-nested.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/up.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/up3.c create mode 100644 data/benchmarks/accelerating_invariant_generation/invgen/up5.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/bubble_sort_false.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/bubble_sort_true.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/compact_false.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/count_up_down_false.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/count_up_down_true.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/eureka_01_false.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/eureka_01_true.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/eureka_05_true.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/for_bounded_loop1_false.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/for_infinite_loop_1_true.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/for_infinite_loop_2_true.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/heavy_true.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/insertion_sort_false.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/insertion_sort_true.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/invert_string_false.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/invert_string_true.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/linear_sea.ch_true.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/linear_search_false.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/lu.cmp_true.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/ludcmp_false.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/matrix_false.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/matrix_true.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/myassert.h create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/n.c11_true.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/n.c24_true.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/n.c40_true.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/nec11_false.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/nec20_false.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/nec40_true.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/sum01_bug02_false.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/sum01_bug02_sum01_bug02_base.case_false.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/sum01_false.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/sum01_true.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/sum03_false.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/sum03_true.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/sum04_false.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/sum04_true.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/terminator_01_false.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/terminator_02_false.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/terminator_02_true.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/trex02_false.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/trex02_true.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/trex03_false.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/trex03_true.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/veris.c_NetBSD-libc__loop_true.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/veris.c_OpenSER__cases1_stripFullBoth_arr_true.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/veris.c_sendmail__tTflag_arr_one_loop_true.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/verisec_NetBSD-libc__loop_false.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/verisec_OpenSER__cases1_stripFullBoth_arr_false.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/verisec_sendmail__tTflag_arr_one_loop_false.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/vogal_false.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/vogal_true.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/while_infinite_loop_1_true.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/while_infinite_loop_2_true.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/while_infinite_loop_3_true.c create mode 100644 data/benchmarks/accelerating_invariant_generation/svcomp/while_infinite_loop_4_false.c create mode 100644 data/benchmarks/code2inv/1.c create mode 100644 data/benchmarks/code2inv/10.c create mode 100644 data/benchmarks/code2inv/100.c create mode 100644 data/benchmarks/code2inv/101.c create mode 100644 data/benchmarks/code2inv/102.c create mode 100644 data/benchmarks/code2inv/103.c create mode 100644 data/benchmarks/code2inv/104.c create mode 100644 data/benchmarks/code2inv/105.c create mode 100644 data/benchmarks/code2inv/106.c create mode 100644 data/benchmarks/code2inv/107.c create mode 100644 data/benchmarks/code2inv/108.c create mode 100644 data/benchmarks/code2inv/109.c create mode 100644 data/benchmarks/code2inv/11.c create mode 100644 data/benchmarks/code2inv/110.c create mode 100644 data/benchmarks/code2inv/111.c create mode 100644 data/benchmarks/code2inv/112.c create mode 100644 data/benchmarks/code2inv/113.c create mode 100644 data/benchmarks/code2inv/114.c create mode 100644 data/benchmarks/code2inv/115.c create mode 100644 data/benchmarks/code2inv/116.c create mode 100644 data/benchmarks/code2inv/117.c create mode 100644 data/benchmarks/code2inv/118.c create mode 100644 data/benchmarks/code2inv/119.c create mode 100644 data/benchmarks/code2inv/12.c create mode 100644 data/benchmarks/code2inv/120.c create mode 100644 data/benchmarks/code2inv/121.c create mode 100644 data/benchmarks/code2inv/122.c create mode 100644 data/benchmarks/code2inv/123.c create mode 100644 data/benchmarks/code2inv/124.c create mode 100644 data/benchmarks/code2inv/125.c create mode 100644 data/benchmarks/code2inv/126.c create mode 100644 data/benchmarks/code2inv/127.c create mode 100644 data/benchmarks/code2inv/128.c create mode 100644 data/benchmarks/code2inv/129.c create mode 100644 data/benchmarks/code2inv/13.c create mode 100644 data/benchmarks/code2inv/130.c create mode 100644 data/benchmarks/code2inv/131.c create mode 100644 data/benchmarks/code2inv/132.c create mode 100644 data/benchmarks/code2inv/133.c create mode 100644 data/benchmarks/code2inv/14.c create mode 100644 data/benchmarks/code2inv/15.c create mode 100644 data/benchmarks/code2inv/16.c create mode 100644 data/benchmarks/code2inv/17.c create mode 100644 data/benchmarks/code2inv/18.c create mode 100644 data/benchmarks/code2inv/19.c create mode 100644 data/benchmarks/code2inv/2.c create mode 100644 data/benchmarks/code2inv/20.c create mode 100644 data/benchmarks/code2inv/21.c create mode 100644 data/benchmarks/code2inv/22.c create mode 100644 data/benchmarks/code2inv/23.c create mode 100644 data/benchmarks/code2inv/24.c create mode 100644 data/benchmarks/code2inv/25.c create mode 100644 data/benchmarks/code2inv/26.c create mode 100644 data/benchmarks/code2inv/27.c create mode 100644 data/benchmarks/code2inv/28.c create mode 100644 data/benchmarks/code2inv/29.c create mode 100644 data/benchmarks/code2inv/3.c create mode 100644 data/benchmarks/code2inv/30.c create mode 100644 data/benchmarks/code2inv/31.c create mode 100644 data/benchmarks/code2inv/32.c create mode 100644 data/benchmarks/code2inv/33.c create mode 100644 data/benchmarks/code2inv/34.c create mode 100644 data/benchmarks/code2inv/35.c create mode 100644 data/benchmarks/code2inv/36.c create mode 100644 data/benchmarks/code2inv/37.c create mode 100644 data/benchmarks/code2inv/38.c create mode 100644 data/benchmarks/code2inv/39.c create mode 100644 data/benchmarks/code2inv/4.c create mode 100644 data/benchmarks/code2inv/40.c create mode 100644 data/benchmarks/code2inv/41.c create mode 100644 data/benchmarks/code2inv/42.c create mode 100644 data/benchmarks/code2inv/43.c create mode 100644 data/benchmarks/code2inv/44.c create mode 100644 data/benchmarks/code2inv/45.c create mode 100644 data/benchmarks/code2inv/46.c create mode 100644 data/benchmarks/code2inv/47.c create mode 100644 data/benchmarks/code2inv/48.c create mode 100644 data/benchmarks/code2inv/49.c create mode 100644 data/benchmarks/code2inv/5.c create mode 100644 data/benchmarks/code2inv/50.c create mode 100644 data/benchmarks/code2inv/51.c create mode 100644 data/benchmarks/code2inv/52.c create mode 100644 data/benchmarks/code2inv/53.c create mode 100644 data/benchmarks/code2inv/54.c create mode 100644 data/benchmarks/code2inv/55.c create mode 100644 data/benchmarks/code2inv/56.c create mode 100644 data/benchmarks/code2inv/57.c create mode 100644 data/benchmarks/code2inv/58.c create mode 100644 data/benchmarks/code2inv/59.c create mode 100644 data/benchmarks/code2inv/6.c create mode 100644 data/benchmarks/code2inv/60.c create mode 100644 data/benchmarks/code2inv/61.c create mode 100644 data/benchmarks/code2inv/62.c create mode 100644 data/benchmarks/code2inv/63.c create mode 100644 data/benchmarks/code2inv/64.c create mode 100644 data/benchmarks/code2inv/65.c create mode 100644 data/benchmarks/code2inv/66.c create mode 100644 data/benchmarks/code2inv/67.c create mode 100644 data/benchmarks/code2inv/68.c create mode 100644 data/benchmarks/code2inv/69.c create mode 100644 data/benchmarks/code2inv/7.c create mode 100644 data/benchmarks/code2inv/70.c create mode 100644 data/benchmarks/code2inv/71.c create mode 100644 data/benchmarks/code2inv/72.c create mode 100644 data/benchmarks/code2inv/73.c create mode 100644 data/benchmarks/code2inv/74.c create mode 100644 data/benchmarks/code2inv/75.c create mode 100644 data/benchmarks/code2inv/76.c create mode 100644 data/benchmarks/code2inv/77.c create mode 100644 data/benchmarks/code2inv/78.c create mode 100644 data/benchmarks/code2inv/79.c create mode 100644 data/benchmarks/code2inv/8.c create mode 100644 data/benchmarks/code2inv/80.c create mode 100644 data/benchmarks/code2inv/81.c create mode 100644 data/benchmarks/code2inv/82.c create mode 100644 data/benchmarks/code2inv/83.c create mode 100644 data/benchmarks/code2inv/84.c create mode 100644 data/benchmarks/code2inv/85.c create mode 100644 data/benchmarks/code2inv/86.c create mode 100644 data/benchmarks/code2inv/87.c create mode 100644 data/benchmarks/code2inv/88.c create mode 100644 data/benchmarks/code2inv/89.c create mode 100644 data/benchmarks/code2inv/9.c create mode 100644 data/benchmarks/code2inv/90.c create mode 100644 data/benchmarks/code2inv/91.c create mode 100644 data/benchmarks/code2inv/92.c create mode 100644 data/benchmarks/code2inv/93.c create mode 100644 data/benchmarks/code2inv/94.c create mode 100644 data/benchmarks/code2inv/95.c create mode 100644 data/benchmarks/code2inv/96.c create mode 100644 data/benchmarks/code2inv/97.c create mode 100644 data/benchmarks/code2inv/98.c create mode 100644 data/benchmarks/code2inv/99.c create mode 100644 data/benchmarks/diffy_cav21_bench/brs1.c create mode 100644 data/benchmarks/diffy_cav21_bench/brs2.c create mode 100644 data/benchmarks/diffy_cav21_bench/brs3.c create mode 100644 data/benchmarks/diffy_cav21_bench/brs4.c create mode 100644 data/benchmarks/diffy_cav21_bench/brs5.c create mode 100644 data/benchmarks/diffy_cav21_bench/cond1.c create mode 100644 data/benchmarks/diffy_cav21_bench/cond2.c create mode 100644 data/benchmarks/diffy_cav21_bench/cond2s1.c create mode 100644 data/benchmarks/diffy_cav21_bench/cond2s2.c create mode 100644 data/benchmarks/diffy_cav21_bench/conda.c create mode 100644 data/benchmarks/diffy_cav21_bench/condg.c create mode 100644 data/benchmarks/diffy_cav21_bench/condi.c create mode 100644 data/benchmarks/diffy_cav21_bench/condm.c create mode 100644 data/benchmarks/diffy_cav21_bench/condn.c create mode 100644 data/benchmarks/diffy_cav21_bench/condnl1.c create mode 100644 data/benchmarks/diffy_cav21_bench/conds.c create mode 100644 data/benchmarks/diffy_cav21_bench/conds2.c create mode 100644 data/benchmarks/diffy_cav21_bench/condsc.c create mode 100644 data/benchmarks/diffy_cav21_bench/condss.c create mode 100644 data/benchmarks/diffy_cav21_bench/condss1.c create mode 100644 data/benchmarks/diffy_cav21_bench/condss2.c create mode 100644 data/benchmarks/diffy_cav21_bench/condss3.c create mode 100644 data/benchmarks/diffy_cav21_bench/eqn1.c create mode 100644 data/benchmarks/diffy_cav21_bench/eqn2.c create mode 100644 data/benchmarks/diffy_cav21_bench/eqn3.c create mode 100644 data/benchmarks/diffy_cav21_bench/eqn4.c create mode 100644 data/benchmarks/diffy_cav21_bench/eqn5.c create mode 100644 data/benchmarks/diffy_cav21_bench/ifcomp.c create mode 100644 data/benchmarks/diffy_cav21_bench/ifeqn1.c create mode 100644 data/benchmarks/diffy_cav21_bench/ifeqn2.c create mode 100644 data/benchmarks/diffy_cav21_bench/ifeqn3.c create mode 100644 data/benchmarks/diffy_cav21_bench/ifeqn4.c create mode 100644 data/benchmarks/diffy_cav21_bench/ifeqn5.c create mode 100644 data/benchmarks/diffy_cav21_bench/ifncomp.c create mode 100644 data/benchmarks/diffy_cav21_bench/indp1.c create mode 100644 data/benchmarks/diffy_cav21_bench/indp2.c create mode 100644 data/benchmarks/diffy_cav21_bench/indp3.c create mode 100644 data/benchmarks/diffy_cav21_bench/indp4.c create mode 100644 data/benchmarks/diffy_cav21_bench/indp5.c create mode 100644 data/benchmarks/diffy_cav21_bench/modn.c create mode 100644 data/benchmarks/diffy_cav21_bench/modp.c create mode 100644 data/benchmarks/diffy_cav21_bench/mods.c create mode 100644 data/benchmarks/diffy_cav21_bench/ms1.c create mode 100644 data/benchmarks/diffy_cav21_bench/ms2.c create mode 100644 data/benchmarks/diffy_cav21_bench/ms3.c create mode 100644 data/benchmarks/diffy_cav21_bench/ms4.c create mode 100644 data/benchmarks/diffy_cav21_bench/ms5.c create mode 100644 data/benchmarks/diffy_cav21_bench/ncomp.c create mode 100644 data/benchmarks/diffy_cav21_bench/nested-as1.c create mode 100644 data/benchmarks/diffy_cav21_bench/nested-as2.c create mode 100644 data/benchmarks/diffy_cav21_bench/nested-as3.c create mode 100644 data/benchmarks/diffy_cav21_bench/nested-nli1.c create mode 100644 data/benchmarks/diffy_cav21_bench/nested-nli2.c create mode 100644 data/benchmarks/diffy_cav21_bench/nested-nli3.c create mode 100644 data/benchmarks/diffy_cav21_bench/nested-nlj1.c create mode 100644 data/benchmarks/diffy_cav21_bench/nested-nlj2.c create mode 100644 data/benchmarks/diffy_cav21_bench/nested-nlj3.c create mode 100644 data/benchmarks/diffy_cav21_bench/nested-nsna1.c create mode 100644 data/benchmarks/diffy_cav21_bench/nested-nsna2.c create mode 100644 data/benchmarks/diffy_cav21_bench/nested-nsna3.c create mode 100644 data/benchmarks/diffy_cav21_bench/nested-sa1.c create mode 100644 data/benchmarks/diffy_cav21_bench/nested-sna1.c create mode 100644 data/benchmarks/diffy_cav21_bench/nested-sna2.c create mode 100644 data/benchmarks/diffy_cav21_bench/nested-sna3.c create mode 100644 data/benchmarks/diffy_cav21_bench/nested-ss1.c create mode 100644 data/benchmarks/diffy_cav21_bench/nested-ss2.c create mode 100644 data/benchmarks/diffy_cav21_bench/nested-ss3.c create mode 100644 data/benchmarks/diffy_cav21_bench/nested-sum.c create mode 100644 data/benchmarks/diffy_cav21_bench/nested-unb1.c create mode 100644 data/benchmarks/diffy_cav21_bench/nested-unb2.c create mode 100644 data/benchmarks/diffy_cav21_bench/nested-unb3.c create mode 100644 data/benchmarks/diffy_cav21_bench/nsqm-if.c create mode 100644 data/benchmarks/diffy_cav21_bench/nsqm.c create mode 100644 data/benchmarks/diffy_cav21_bench/pcomp.c create mode 100644 data/benchmarks/diffy_cav21_bench/res1.c create mode 100644 data/benchmarks/diffy_cav21_bench/res1o.c create mode 100644 data/benchmarks/diffy_cav21_bench/res2.c create mode 100644 data/benchmarks/diffy_cav21_bench/res2o.c create mode 100644 data/benchmarks/diffy_cav21_bench/s12if.c create mode 100644 data/benchmarks/diffy_cav21_bench/s1if.c create mode 100644 data/benchmarks/diffy_cav21_bench/s1lif.c create mode 100644 data/benchmarks/diffy_cav21_bench/s22if.c create mode 100644 data/benchmarks/diffy_cav21_bench/s2if.c create mode 100644 data/benchmarks/diffy_cav21_bench/s2lif.c create mode 100644 data/benchmarks/diffy_cav21_bench/s32if.c create mode 100644 data/benchmarks/diffy_cav21_bench/s3if.c create mode 100644 data/benchmarks/diffy_cav21_bench/s3lif.c create mode 100644 data/benchmarks/diffy_cav21_bench/s42if.c create mode 100644 data/benchmarks/diffy_cav21_bench/s4if.c create mode 100644 data/benchmarks/diffy_cav21_bench/s4lif.c create mode 100644 data/benchmarks/diffy_cav21_bench/s52if.c create mode 100644 data/benchmarks/diffy_cav21_bench/s5if.c create mode 100644 data/benchmarks/diffy_cav21_bench/s5lif.c create mode 100644 data/benchmarks/diffy_cav21_bench/sanfoundry_27_ground.c create mode 100644 data/benchmarks/diffy_cav21_bench/sina1.c create mode 100644 data/benchmarks/diffy_cav21_bench/sina2.c create mode 100644 data/benchmarks/diffy_cav21_bench/sina3.c create mode 100644 data/benchmarks/diffy_cav21_bench/sina4.c create mode 100644 data/benchmarks/diffy_cav21_bench/sina5.c create mode 100644 data/benchmarks/diffy_cav21_bench/sqm-if.c create mode 100644 data/benchmarks/diffy_cav21_bench/sqm.c create mode 100644 data/benchmarks/diffy_cav21_bench/ss1.c create mode 100644 data/benchmarks/diffy_cav21_bench/ss2.c create mode 100644 data/benchmarks/diffy_cav21_bench/ss3.c create mode 100644 data/benchmarks/diffy_cav21_bench/ss4.c create mode 100644 data/benchmarks/diffy_cav21_bench/ssina.c create mode 100644 data/benchmarks/diffy_cav21_bench/standard_compareModified_ground.c create mode 100644 data/benchmarks/diffy_cav21_bench/standard_compare_ground.c create mode 100644 data/benchmarks/diffy_cav21_bench/standard_copy1_ground-1.c create mode 100644 data/benchmarks/diffy_cav21_bench/standard_copy2_ground-2.c create mode 100644 data/benchmarks/diffy_cav21_bench/standard_copy3_ground-1.c create mode 100644 data/benchmarks/diffy_cav21_bench/standard_copy4_ground-1.c create mode 100644 data/benchmarks/diffy_cav21_bench/standard_copy5_ground-1.c create mode 100644 data/benchmarks/diffy_cav21_bench/standard_copy6_ground-2.c create mode 100644 data/benchmarks/diffy_cav21_bench/standard_copy7_ground-2.c create mode 100644 data/benchmarks/diffy_cav21_bench/standard_copy8_ground-1.c create mode 100644 data/benchmarks/diffy_cav21_bench/standard_copy9_ground-2.c create mode 100644 data/benchmarks/diffy_cav21_bench/standard_copyInitSum2_ground-2.c create mode 100644 data/benchmarks/diffy_cav21_bench/standard_copyInitSum3_ground.c create mode 100644 data/benchmarks/diffy_cav21_bench/standard_copyInitSum_ground.c create mode 100644 data/benchmarks/diffy_cav21_bench/standard_copyInit_ground.c create mode 100644 data/benchmarks/diffy_cav21_bench/standard_init1_ground-2.c create mode 100644 data/benchmarks/diffy_cav21_bench/standard_init2_ground-2.c create mode 100644 data/benchmarks/diffy_cav21_bench/standard_init3_ground-2.c create mode 100644 data/benchmarks/diffy_cav21_bench/standard_init4_ground-2.c create mode 100644 data/benchmarks/diffy_cav21_bench/standard_init5_ground-1.c create mode 100644 data/benchmarks/diffy_cav21_bench/standard_init6_ground-2.c create mode 100644 data/benchmarks/diffy_cav21_bench/standard_init7_ground-2.c create mode 100644 data/benchmarks/diffy_cav21_bench/standard_init8_ground-2.c create mode 100644 data/benchmarks/diffy_cav21_bench/standard_init9_ground-2.c create mode 100644 data/benchmarks/diffy_cav21_bench/standard_maxInArray_ground.c create mode 100644 data/benchmarks/diffy_cav21_bench/standard_minInArray_ground-2.c create mode 100644 data/benchmarks/diffy_cav21_bench/standard_password_ground.c create mode 100644 data/benchmarks/diffy_cav21_bench/standard_running-2.c create mode 100644 data/benchmarks/diffy_cav21_bench/standard_seq_init_ground.c create mode 100644 data/benchmarks/diffy_cav21_bench/standard_strcmp_ground.c create mode 100644 data/benchmarks/diffy_cav21_bench/standard_vector_difference_ground.c create mode 100644 data/benchmarks/diffy_cav21_bench/unreach-call.prp create mode 100644 data/benchmarks/diffy_cav21_bench/zero_sum1.c create mode 100644 data/benchmarks/diffy_cav21_bench/zero_sum2.c create mode 100644 data/benchmarks/diffy_cav21_bench/zero_sum3.c create mode 100644 data/benchmarks/diffy_cav21_bench/zero_sum4.c create mode 100644 data/benchmarks/diffy_cav21_bench/zero_sum5.c create mode 100644 data/benchmarks/diffy_cav21_bench/zero_sum_const1.c create mode 100644 data/benchmarks/diffy_cav21_bench/zero_sum_const2.c create mode 100644 data/benchmarks/diffy_cav21_bench/zero_sum_const3.c create mode 100644 data/benchmarks/diffy_cav21_bench/zero_sum_const4.c create mode 100644 data/benchmarks/diffy_cav21_bench/zero_sum_const5.c create mode 100644 data/benchmarks/diffy_cav21_bench/zero_sum_const_m2.c create mode 100644 data/benchmarks/diffy_cav21_bench/zero_sum_const_m3.c create mode 100644 data/benchmarks/diffy_cav21_bench/zero_sum_const_m4.c create mode 100644 data/benchmarks/diffy_cav21_bench/zero_sum_const_m5.c create mode 100644 data/benchmarks/diffy_cav21_bench/zero_sum_const_m6.c create mode 100644 data/benchmarks/diffy_cav21_bench/zero_sum_m2.c create mode 100644 data/benchmarks/diffy_cav21_bench/zero_sum_m3.c create mode 100644 data/benchmarks/diffy_cav21_bench/zero_sum_m4.c create mode 100644 data/benchmarks/diffy_cav21_bench/zero_sum_m5.c create mode 100644 data/benchmarks/diffy_cav21_bench/zero_sum_m6.c create mode 100644 data/benchmarks/dillig/esop2010_casestudy.txt create mode 100644 data/benchmarks/dillig/safe/1.c create mode 100644 data/benchmarks/dillig/safe/10.c create mode 100644 data/benchmarks/dillig/safe/12.c create mode 100644 data/benchmarks/dillig/safe/2.c create mode 100644 data/benchmarks/dillig/safe/21.c create mode 100644 data/benchmarks/dillig/safe/22.c create mode 100644 data/benchmarks/dillig/safe/23.c create mode 100644 data/benchmarks/dillig/safe/24.c create mode 100644 data/benchmarks/dillig/safe/26.c create mode 100644 data/benchmarks/dillig/safe/3.c create mode 100644 data/benchmarks/dillig/safe/5.c create mode 100644 data/benchmarks/dillig/safe/7.c create mode 100644 data/benchmarks/dillig/safe/8.c create mode 100644 data/benchmarks/dillig/safe/9.c create mode 100644 data/benchmarks/dillig/safe/multi_method/14.c create mode 100644 data/benchmarks/dillig/safe/multi_method/16.c create mode 100644 data/benchmarks/dillig/safe/multi_method/17.c create mode 100644 data/benchmarks/dillig/safe/multi_method/18.c create mode 100644 data/benchmarks/dillig/safe/multi_method/20.c create mode 100644 data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_1_NT.c create mode 100644 data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_1_T.c create mode 100644 data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_2_NT.c create mode 100644 data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_2_T.c create mode 100644 data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_3_NT.c create mode 100644 data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_3_T.c create mode 100644 data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_4_NT.c create mode 100644 data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_4_T.c create mode 100644 data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_5_NT.c create mode 100644 data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_5_T.c create mode 100644 data/benchmarks/non_termination/loop/Incorrect_Bit_Calculation_1_NT.c create mode 100644 data/benchmarks/non_termination/loop/Incorrect_Bit_Calculation_1_T.c create mode 100644 data/benchmarks/non_termination/loop/Incorrect_Bit_Calculation_2_NT.c create mode 100644 data/benchmarks/non_termination/loop/Incorrect_Bit_Calculation_2_T.c create mode 100644 data/benchmarks/non_termination/loop/Incorrect_Bit_Calculation_3_NT.c create mode 100644 data/benchmarks/non_termination/loop/Incorrect_Bit_Calculation_3_T.c create mode 100644 data/benchmarks/non_termination/loop/Incorrect_Control_Statement_1_NT.c create mode 100644 data/benchmarks/non_termination/loop/Incorrect_Control_Statement_1_T.c create mode 100644 data/benchmarks/non_termination/loop/Incorrect_Control_Statement_2_NT.c create mode 100644 data/benchmarks/non_termination/loop/Incorrect_Control_Statement_2_T.c create mode 100644 data/benchmarks/non_termination/loop/Incorrect_Initialization_1_NT.c create mode 100644 data/benchmarks/non_termination/loop/Incorrect_Initialization_1_T.c create mode 100644 data/benchmarks/non_termination/loop/Incorrect_Initialization_2_NT.c create mode 100644 data/benchmarks/non_termination/loop/Incorrect_Initialization_2_T.c create mode 100644 data/benchmarks/non_termination/loop/Incorrect_Initialization_3_NT.c create mode 100644 data/benchmarks/non_termination/loop/Incorrect_Initialization_3_T.c create mode 100644 data/benchmarks/non_termination/loop/Incorrect_Initialization_4_NT.c create mode 100644 data/benchmarks/non_termination/loop/Incorrect_Initialization_4_T.c create mode 100644 data/benchmarks/non_termination/loop/Incorrect_Update_for_Loop_Iterator_1_NT.c create mode 100644 data/benchmarks/non_termination/loop/Incorrect_Update_for_Loop_Iterator_1_T.c create mode 100644 data/benchmarks/non_termination/loop/Incorrect_Update_for_Loop_Iterator_2_NT.c create mode 100644 data/benchmarks/non_termination/loop/Incorrect_Update_for_Loop_Iterator_2_T.c create mode 100644 data/benchmarks/non_termination/loop/Incorrect_Update_for_Loop_Iterator_3_NT.c create mode 100644 data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_1_NT.c create mode 100644 data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_1_T.c create mode 100644 data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_2_NT.c create mode 100644 data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_2_T.c create mode 100644 data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_3_NT.c create mode 100644 data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_3_T.c create mode 100644 data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_4_NT.c create mode 100644 data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_4_T.c create mode 100644 data/benchmarks/non_termination/loop/Missing_Initialization_1_NT.c create mode 100644 data/benchmarks/non_termination/loop/Missing_Initialization_1_T.c create mode 100644 data/benchmarks/non_termination/loop/Missing_Iterator_Update_1_NT.c create mode 100644 data/benchmarks/non_termination/loop/Missing_Iterator_Update_1_T.c create mode 100644 data/benchmarks/non_termination/loop/Missing_Iterator_Update_2_NT.c create mode 100644 data/benchmarks/non_termination/loop/Missing_Iterator_Update_2_T.c create mode 100644 data/benchmarks/non_termination/loop/Missing_Iterator_Update_3_NT.c create mode 100644 data/benchmarks/non_termination/loop/Missing_Iterator_Update_3_T.c create mode 100644 data/benchmarks/non_termination/loop/Missing_Iterator_Update_4_NT.c create mode 100644 data/benchmarks/non_termination/loop/Missing_Iterator_Update_4_T.c create mode 100644 data/benchmarks/non_termination/loop/Missing_Iterator_Update_5_NT.c create mode 100644 data/benchmarks/non_termination/loop/Missing_Iterator_Update_5_T.c create mode 100644 data/benchmarks/non_termination/loop/Misusing_Variable_Type_1_NT.c create mode 100644 data/benchmarks/non_termination/loop/Misusing_Variable_Type_1_T.c create mode 100644 data/benchmarks/non_termination/loop/Misusing_Variable_Type_2_NT.c create mode 100644 data/benchmarks/non_termination/loop/Misusing_Variable_Type_2_T.c create mode 100644 data/benchmarks/non_termination/loop/Reusing_Same_Loop_Iterator_1_NT.c create mode 100644 data/benchmarks/non_termination/loop/Reusing_Same_Loop_Iterator_1_T.c create mode 100644 data/benchmarks/non_termination/loop/Reusing_Same_Loop_Iterator_2_NT.c create mode 100644 data/benchmarks/non_termination/loop/Reusing_Same_Loop_Iterator_2_T.c create mode 100644 data/benchmarks/non_termination/loop/Signed_Overflow_Error_1_NT.c create mode 100644 data/benchmarks/non_termination/loop/Signed_Overflow_Error_1_T.c create mode 100644 data/benchmarks/non_termination/loop/Signed_Overflow_Error_2_NT.c create mode 100644 data/benchmarks/non_termination/loop/Signed_Overflow_Error_2_T.c create mode 100644 data/benchmarks/non_termination/loop/Signed_Overflow_Error_3_NT.c create mode 100644 data/benchmarks/non_termination/loop/Signed_Overflow_Error_3_T.c create mode 100644 data/benchmarks/non_termination/loop/Type_Conversion_in_Assignment_1_NT.c create mode 100644 data/benchmarks/non_termination/loop/Type_Conversion_in_Assignment_1_T.c create mode 100644 data/benchmarks/non_termination/loop/Type_Conversion_in_Comparison_1_NT.c create mode 100644 data/benchmarks/non_termination/loop/Type_Conversion_in_Comparison_1_T.c create mode 100644 data/benchmarks/non_termination/loop/Type_Conversion_in_Comparison_2_NT.c create mode 100644 data/benchmarks/non_termination/loop/Type_Conversion_in_Comparison_2_T.c create mode 100644 data/benchmarks/non_termination/loop/Undefined_Behavior_1.c create mode 100644 data/benchmarks/non_termination/loop/Undefined_Behavior_1_T.c create mode 100644 data/benchmarks/non_termination/loop/Undefined_Behavior_2.c create mode 100644 data/benchmarks/non_termination/loop/Undefined_Behavior_2_T.c create mode 100644 data/benchmarks/non_termination/loop/Undefined_Behavior_3.c create mode 100644 data/benchmarks/non_termination/loop/Undefined_Behavior_3_T.c create mode 100644 data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_1_NT.c create mode 100644 data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_1_T.c create mode 100644 data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_2_NT.c create mode 100644 data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_2_T.c create mode 100644 data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_3_NT.c create mode 100644 data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_3_T.c create mode 100644 data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_4_NT.c create mode 100644 data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_4_T.c create mode 100644 data/benchmarks/non_termination/loop/Using_Erroneous_Condition_1_NT.c create mode 100644 data/benchmarks/non_termination/loop/Using_Erroneous_Condition_1_T.c create mode 100644 data/benchmarks/non_termination/loop/Using_Erroneous_Condition_2_NT.c create mode 100644 data/benchmarks/non_termination/loop/Using_Erroneous_Condition_2_T.c create mode 100644 data/benchmarks/non_termination/loop/Using_Erroneous_Condition_3_NT.c create mode 100644 data/benchmarks/non_termination/loop/Using_Erroneous_Condition_3_T.c create mode 100644 data/benchmarks/non_termination/recursion/Incorrect_Arguments_1_NT.c create mode 100644 data/benchmarks/non_termination/recursion/Incorrect_Arguments_1_T.c create mode 100644 data/benchmarks/non_termination/recursion/Incorrect_Cyclic_Invoking_1_NT.c create mode 100644 data/benchmarks/non_termination/recursion/Incorrect_Cyclic_Invoking_1_T.c create mode 100644 data/benchmarks/non_termination/recursion/Incorrect_Cyclic_Invoking_2_NT.c create mode 100644 data/benchmarks/non_termination/recursion/Incorrect_Cyclic_Invoking_2_T.c create mode 100644 data/benchmarks/non_termination/recursion/Incorrect_Cyclic_Invoking_3_NT.cpp create mode 100644 data/benchmarks/non_termination/recursion/Incorrect_Cyclic_Invoking_3_T.cpp create mode 100644 data/benchmarks/non_termination/recursion/Incorrect_Return_1_NT.c create mode 100644 data/benchmarks/non_termination/recursion/Incorrect_Return_1_T.c create mode 100644 data/benchmarks/non_termination/recursion/Incorrect_Return_2_NT.cpp create mode 100644 data/benchmarks/non_termination/recursion/Incorrect_Return_2_T.cpp create mode 100644 data/benchmarks/non_termination/recursion/Miscalling_Inherited_Method_1_NT.cpp create mode 100644 data/benchmarks/non_termination/recursion/Miscalling_Inherited_Method_1_T.cpp create mode 100644 data/benchmarks/non_termination/recursion/Missing_undef_Instruction_1_NT.c create mode 100644 data/benchmarks/non_termination/recursion/Missing_undef_Instruction_1_T.c create mode 100644 data/benchmarks/non_termination/recursion/Misusing_Method_Overloading_1_NT.cpp create mode 100644 data/benchmarks/non_termination/recursion/Misusing_Method_Overloading_1_T.cpp create mode 100644 data/benchmarks/non_termination/recursion/Misusing_Method_Overloading_2_NT.cpp create mode 100644 data/benchmarks/non_termination/recursion/Misusing_Method_Overloading_2_T.cpp create mode 100644 data/benchmarks/non_termination/recursion/Misusing_Method_Overloading_3_NT.cpp create mode 100644 data/benchmarks/non_termination/recursion/Misusing_Method_Overloading_3_T.cpp create mode 100644 data/benchmarks/non_termination/recursion/Misusing_Method_Overloading_4_NT.cpp create mode 100644 data/benchmarks/non_termination/recursion/Misusing_Method_Overloading_4_T.cpp create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/LICENSE create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/Makefile create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/README create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/array3.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/array_1-1.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/array_1-2.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/array_2-1-simple.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/array_2-1.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/array_2-2-simple.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/array_2-2.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/array_3-1.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/array_3-2.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/array_4.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/const_1-1.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/const_1-2.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/const_1-2_abstracted.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/diamond_1-1.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/diamond_1-2.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/diamond_2-2.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/functions_1-1.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/functions_1-2.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/multivar_1-1.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/multivar_1-2.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/nested_1-1.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/nested_1-2.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/overflow_1-1.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/phases_1-1.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/phases_1-2.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/phases_2-1.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/phases_2-2.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/simple_1-1.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/simple_1-1_abstracted.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/simple_1-2.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/simple_1-2_abstracted.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/simple_2-1.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/simple_2-1_abstracted.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/simple_2-2.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/simple_3-1.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/simple_3-2.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/simple_4-1.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/simple_4-1_abstracted.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/simple_4-2.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/simple_4-2_abstracted.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/underapprox_1-1.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/underapprox_1-2.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/underapprox_2-1.c create mode 100644 data/benchmarks/sv-benchmarks/loop-acceleration/underapprox_2-2.c create mode 100644 data/benchmarks/sv-benchmarks/loop-crafted/License.txt create mode 100644 data/benchmarks/sv-benchmarks/loop-crafted/Makefile create mode 100644 data/benchmarks/sv-benchmarks/loop-crafted/README.txt create mode 100644 data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_1-1.c create mode 100644 data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_1-2.c create mode 100644 data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_2.c create mode 100644 data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_3.c create mode 100644 data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_4.c create mode 100644 data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_4.i.v+lhb-reducer.c create mode 100644 data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_4.i.v+nlh-reducer.c create mode 100644 data/benchmarks/sv-benchmarks/loop-crafted/simple_vardep_1.c create mode 100644 data/benchmarks/sv-benchmarks/loop-crafted/simple_vardep_2.c create mode 100644 data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/License.txt create mode 100644 data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/Makefile create mode 100644 data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/README.txt create mode 100644 data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop1-1.c create mode 100644 data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop1-2.c create mode 100644 data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop2-1.c create mode 100644 data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop2-2.c create mode 100644 data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop3.c create mode 100644 data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop4.c create mode 100644 data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop5.c create mode 100644 data/benchmarks/sv-benchmarks/loop-industry-pattern/License.txt create mode 100644 data/benchmarks/sv-benchmarks/loop-industry-pattern/Makefile create mode 100644 data/benchmarks/sv-benchmarks/loop-industry-pattern/ReadMe.txt create mode 100644 data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_1.c create mode 100644 data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_2.c create mode 100644 data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_3.c create mode 100644 data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_4.c create mode 100644 data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_4.c.v+cfa-reducer.c create mode 100644 data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_4.c.v+lh-reducer.c create mode 100644 data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_4.c.v+lhb-reducer.c create mode 100644 data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_4.c.v+nlh-reducer.c create mode 100644 data/benchmarks/sv-benchmarks/loop-industry-pattern/mod3.c create mode 100644 data/benchmarks/sv-benchmarks/loop-industry-pattern/mod3.c.v+cfa-reducer.c create mode 100644 data/benchmarks/sv-benchmarks/loop-industry-pattern/mod3.c.v+lhb-reducer.c create mode 100644 data/benchmarks/sv-benchmarks/loop-industry-pattern/mod3.c.v+sep-reducer.c create mode 100644 data/benchmarks/sv-benchmarks/loop-industry-pattern/nested-3.c create mode 100644 data/benchmarks/sv-benchmarks/loop-industry-pattern/ofuf_1.c create mode 100644 data/benchmarks/sv-benchmarks/loop-industry-pattern/ofuf_2.c create mode 100644 data/benchmarks/sv-benchmarks/loop-industry-pattern/ofuf_3.c create mode 100644 data/benchmarks/sv-benchmarks/loop-industry-pattern/ofuf_4.c create mode 100644 data/benchmarks/sv-benchmarks/loop-industry-pattern/ofuf_5.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invariants/LICENSE.txt create mode 100644 data/benchmarks/sv-benchmarks/loop-invariants/Makefile create mode 100644 data/benchmarks/sv-benchmarks/loop-invariants/README create mode 100644 data/benchmarks/sv-benchmarks/loop-invariants/bin-suffix-5.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invariants/const.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invariants/eq1.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invariants/eq2.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invariants/even.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invariants/linear-inequality-inv-a.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invariants/linear-inequality-inv-b.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invariants/mod4.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invariants/odd.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invgen/LICENSE.txt create mode 100644 data/benchmarks/sv-benchmarks/loop-invgen/MADWiFi-encode_ie_ok.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invgen/Makefile create mode 100644 data/benchmarks/sv-benchmarks/loop-invgen/NetBSD_loop.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invgen/README create mode 100644 data/benchmarks/sv-benchmarks/loop-invgen/SpamAssassin-loop.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invgen/SpamAssassin-loop.i.v+cfa-reducer.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invgen/apache-escape-absolute.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invgen/apache-escape-absolute.i.v+cfa-reducer.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invgen/apache-get-tag.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invgen/apache-get-tag.i.p+lhb-reducer.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invgen/apache-get-tag.i.p+nlh-reducer.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invgen/apache-get-tag.i.p+sep-reducer.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invgen/apache-get-tag.i.v+lhb-reducer.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invgen/apache-get-tag.i.v+nlh-reducer.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invgen/assert.h create mode 100644 data/benchmarks/sv-benchmarks/loop-invgen/down.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invgen/fragtest_simple.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invgen/half_2.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invgen/heapsort.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invgen/id_build.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invgen/id_build.i.p+nlh-reducer.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invgen/id_build.i.p+sep-reducer.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invgen/id_build.i.v+lhb-reducer.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invgen/id_trans.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invgen/large_const.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invgen/nest-if3.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invgen/nested6.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invgen/nested9.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invgen/sendmail-close-angle.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invgen/seq-3.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invgen/string_concat-noarr.c create mode 100644 data/benchmarks/sv-benchmarks/loop-invgen/up.c create mode 100644 data/benchmarks/sv-benchmarks/loop-lit/LICENSE.txt create mode 100644 data/benchmarks/sv-benchmarks/loop-lit/Makefile create mode 100644 data/benchmarks/sv-benchmarks/loop-lit/README create mode 100644 data/benchmarks/sv-benchmarks/loop-lit/afnp2014.c create mode 100644 data/benchmarks/sv-benchmarks/loop-lit/assert.h create mode 100644 data/benchmarks/sv-benchmarks/loop-lit/bhmr2007.c create mode 100644 data/benchmarks/sv-benchmarks/loop-lit/cggmp2005.c create mode 100644 data/benchmarks/sv-benchmarks/loop-lit/cggmp2005_variant.c create mode 100644 data/benchmarks/sv-benchmarks/loop-lit/cggmp2005b.c create mode 100644 data/benchmarks/sv-benchmarks/loop-lit/css2003.c create mode 100644 data/benchmarks/sv-benchmarks/loop-lit/ddlm2013.c create mode 100644 data/benchmarks/sv-benchmarks/loop-lit/gcnr2008.c create mode 100644 data/benchmarks/sv-benchmarks/loop-lit/gj2007.c create mode 100644 data/benchmarks/sv-benchmarks/loop-lit/gj2007.c.i.p+lhb-reducer.c create mode 100644 data/benchmarks/sv-benchmarks/loop-lit/gj2007.c.i.p+nlh-reducer.c create mode 100644 data/benchmarks/sv-benchmarks/loop-lit/gj2007b.c create mode 100644 data/benchmarks/sv-benchmarks/loop-lit/gr2006.c create mode 100644 data/benchmarks/sv-benchmarks/loop-lit/gsv2008.c create mode 100644 data/benchmarks/sv-benchmarks/loop-lit/gsv2008.c.i.p+cfa-reducer.c create mode 100644 data/benchmarks/sv-benchmarks/loop-lit/gsv2008.c.i.v+cfa-reducer.c create mode 100644 data/benchmarks/sv-benchmarks/loop-lit/gsv2008.c.i.v+lhb-reducer.c create mode 100644 data/benchmarks/sv-benchmarks/loop-lit/hhk2008.c create mode 100644 data/benchmarks/sv-benchmarks/loop-lit/jm2006.c create mode 100644 data/benchmarks/sv-benchmarks/loop-lit/jm2006.c.i.v+cfa-reducer.c create mode 100644 data/benchmarks/sv-benchmarks/loop-lit/jm2006_variant.c create mode 100644 data/benchmarks/sv-benchmarks/loop-lit/mcmillan2006.c create mode 100644 data/benchmarks/sv-benchmarks/loop-new/LICENSE.txt create mode 100644 data/benchmarks/sv-benchmarks/loop-new/Makefile create mode 100644 data/benchmarks/sv-benchmarks/loop-new/README create mode 100644 data/benchmarks/sv-benchmarks/loop-new/assert.h create mode 100644 data/benchmarks/sv-benchmarks/loop-new/count_by_1.c create mode 100644 data/benchmarks/sv-benchmarks/loop-new/count_by_1_variant.c create mode 100644 data/benchmarks/sv-benchmarks/loop-new/count_by_2.c create mode 100644 data/benchmarks/sv-benchmarks/loop-new/count_by_k.c create mode 100644 data/benchmarks/sv-benchmarks/loop-new/count_by_nondet.c create mode 100644 data/benchmarks/sv-benchmarks/loop-new/gauss_sum.c create mode 100644 data/benchmarks/sv-benchmarks/loop-new/gauss_sum.i.p+cfa-reducer.c create mode 100644 data/benchmarks/sv-benchmarks/loop-new/gauss_sum.i.p+lhb-reducer.c create mode 100644 data/benchmarks/sv-benchmarks/loop-new/gauss_sum.i.v+cfa-reducer.c create mode 100644 data/benchmarks/sv-benchmarks/loop-new/half.c create mode 100644 data/benchmarks/sv-benchmarks/loop-new/nested-1.c create mode 100644 data/benchmarks/sv-benchmarks/loop-simple/LICENSE.txt create mode 100644 data/benchmarks/sv-benchmarks/loop-simple/Makefile create mode 100644 data/benchmarks/sv-benchmarks/loop-simple/README.txt create mode 100644 data/benchmarks/sv-benchmarks/loop-simple/deep-nested.c create mode 100644 data/benchmarks/sv-benchmarks/loop-simple/nested_1.c create mode 100644 data/benchmarks/sv-benchmarks/loop-simple/nested_1b.c create mode 100644 data/benchmarks/sv-benchmarks/loop-simple/nested_2.c create mode 100644 data/benchmarks/sv-benchmarks/loop-simple/nested_3.c create mode 100644 data/benchmarks/sv-benchmarks/loop-simple/nested_4.c create mode 100644 data/benchmarks/sv-benchmarks/loop-simple/nested_5.c create mode 100644 data/benchmarks/sv-benchmarks/loop-simple/nested_6.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/LICENSE.GPLv2.txt create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/Makefile create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/README.txt create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark01_conjunctive.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark02_linear.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark02_linear_abstracted.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark03_linear.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark04_conjunctive.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark05_conjunctive.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark06_conjunctive.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark07_linear.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark08_conjunctive.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark09_conjunctive.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark10_conjunctive.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark11_linear.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark11_linear_abstracted.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark12_linear.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark13_conjunctive.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark14_linear.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark15_conjunctive.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark16_conjunctive.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark17_conjunctive.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark18_conjunctive.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark19_conjunctive.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark20_conjunctive.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark21_disjunctive.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark22_conjunctive.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark23_conjunctive.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark24_conjunctive.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark25_linear.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark25_linear_abstracted.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark26_linear.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark26_linear_abstracted.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark27_linear.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark28_linear.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark29_linear.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark30_conjunctive.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark31_disjunctive.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark32_linear.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark33_linear.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark34_conjunctive.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark35_linear.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark36_conjunctive.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark37_conjunctive.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark38_conjunctive.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark39_conjunctive.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark40_polynomial.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark41_conjunctive.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark42_conjunctive.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark43_conjunctive.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark43_conjunctive_abstracted.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark44_disjunctive.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark45_disjunctive.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark46_disjunctive.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark47_linear.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark48_linear.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark49_linear.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark50_linear.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark51_polynomial.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark52_polynomial.c create mode 100644 data/benchmarks/sv-benchmarks/loop-zilu/benchmark53_polynomial.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/License.txt create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/Makefile create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/Mono1_1-1.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/Mono1_1-2.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/Mono3_1.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/Mono4_1.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/Mono5_1.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/Mono6_1.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/README.txt create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/discover_list.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/iftelse.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/in-de20.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/in-de31.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/in-de32.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/in-de41.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/in-de42.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/in-de51.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/in-de52.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/in-de61.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/in-de62.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/loopv1.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/loopv2.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/loopv3.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_1.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_10.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_11.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_12.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_13.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_14.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_3.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_6.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_7.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_8.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_9.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/nested3-1.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/nested3-1_abstracted.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/nested3-2.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/nested3-2_abstracted.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/nested5-1.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/nested5-2.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/nested_delay_nd.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/nested_delay_notd2.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/net_reset.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/sum_by_3.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/sum_by_3_abstracted.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/sum_natnum.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/sumt2.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/sumt3.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/sumt4.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/sumt5.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/sumt6.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/sumt7.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/sumt8.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/sumt9.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/theatreSquare.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/vnew1.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/vnew2.c create mode 100644 data/benchmarks/sv-benchmarks/loops-crafted-1/watermelon.c create mode 100644 data/benchmarks/sv-benchmarks/loops/Makefile create mode 100644 data/benchmarks/sv-benchmarks/loops/README.txt create mode 100644 data/benchmarks/sv-benchmarks/loops/array-1.c create mode 100644 data/benchmarks/sv-benchmarks/loops/array-2.c create mode 100644 data/benchmarks/sv-benchmarks/loops/base.h create mode 100644 data/benchmarks/sv-benchmarks/loops/bubble_sort-1.c create mode 100644 data/benchmarks/sv-benchmarks/loops/bubble_sort-2.c create mode 100644 data/benchmarks/sv-benchmarks/loops/bubblesort.h create mode 100644 data/benchmarks/sv-benchmarks/loops/compact.c create mode 100644 data/benchmarks/sv-benchmarks/loops/count_up_down-1.c create mode 100644 data/benchmarks/sv-benchmarks/loops/count_up_down-2.c create mode 100644 data/benchmarks/sv-benchmarks/loops/eureka_01-1.c create mode 100644 data/benchmarks/sv-benchmarks/loops/eureka_01-2.c create mode 100644 data/benchmarks/sv-benchmarks/loops/eureka_05.c create mode 100644 data/benchmarks/sv-benchmarks/loops/for_bounded_loop1.c create mode 100644 data/benchmarks/sv-benchmarks/loops/for_infinite_loop_1.c create mode 100644 data/benchmarks/sv-benchmarks/loops/for_infinite_loop_2.c create mode 100644 data/benchmarks/sv-benchmarks/loops/heavy-1.c create mode 100644 data/benchmarks/sv-benchmarks/loops/heavy-2.c create mode 100644 data/benchmarks/sv-benchmarks/loops/insertion_sort-1-2.c create mode 100644 data/benchmarks/sv-benchmarks/loops/insertion_sort-1.c create mode 100644 data/benchmarks/sv-benchmarks/loops/insertion_sort-2-2.c create mode 100644 data/benchmarks/sv-benchmarks/loops/insertion_sort-2.c create mode 100644 data/benchmarks/sv-benchmarks/loops/invert_string-1.c create mode 100644 data/benchmarks/sv-benchmarks/loops/invert_string-2.c create mode 100644 data/benchmarks/sv-benchmarks/loops/invert_string-3.c create mode 100644 data/benchmarks/sv-benchmarks/loops/linear_sea.ch.c create mode 100644 data/benchmarks/sv-benchmarks/loops/linear_search.c create mode 100644 data/benchmarks/sv-benchmarks/loops/lu.cmp.c create mode 100644 data/benchmarks/sv-benchmarks/loops/ludcmp.c create mode 100644 data/benchmarks/sv-benchmarks/loops/matrix-1.c create mode 100644 data/benchmarks/sv-benchmarks/loops/matrix-2-2.c create mode 100644 data/benchmarks/sv-benchmarks/loops/matrix-2.c create mode 100644 data/benchmarks/sv-benchmarks/loops/n.c11.c create mode 100644 data/benchmarks/sv-benchmarks/loops/n.c24.c create mode 100644 data/benchmarks/sv-benchmarks/loops/n.c40.c create mode 100644 data/benchmarks/sv-benchmarks/loops/nec11.c create mode 100644 data/benchmarks/sv-benchmarks/loops/nec20.c create mode 100644 data/benchmarks/sv-benchmarks/loops/nec40.c create mode 100644 data/benchmarks/sv-benchmarks/loops/q1.h create mode 100644 data/benchmarks/sv-benchmarks/loops/string-1.c create mode 100644 data/benchmarks/sv-benchmarks/loops/string-2.c create mode 100644 data/benchmarks/sv-benchmarks/loops/sum01-1.c create mode 100644 data/benchmarks/sv-benchmarks/loops/sum01-2.c create mode 100644 data/benchmarks/sv-benchmarks/loops/sum01_bug02.c create mode 100644 data/benchmarks/sv-benchmarks/loops/sum01_bug02_sum01_bug02_base.case.c create mode 100644 data/benchmarks/sv-benchmarks/loops/sum03-1.c create mode 100644 data/benchmarks/sv-benchmarks/loops/sum03-2.c create mode 100644 data/benchmarks/sv-benchmarks/loops/sum04-1.c create mode 100644 data/benchmarks/sv-benchmarks/loops/sum04-2.c create mode 100644 data/benchmarks/sv-benchmarks/loops/sum_array-1.c create mode 100644 data/benchmarks/sv-benchmarks/loops/sum_array-2-1.c create mode 100644 data/benchmarks/sv-benchmarks/loops/sum_array-2-2.c create mode 100644 data/benchmarks/sv-benchmarks/loops/sum_array-2.c create mode 100644 data/benchmarks/sv-benchmarks/loops/terminator_01.c create mode 100644 data/benchmarks/sv-benchmarks/loops/terminator_02-1.c create mode 100644 data/benchmarks/sv-benchmarks/loops/terminator_02-2.c create mode 100644 data/benchmarks/sv-benchmarks/loops/terminator_02-2_abstracted.c create mode 100644 data/benchmarks/sv-benchmarks/loops/terminator_03-1.c create mode 100644 data/benchmarks/sv-benchmarks/loops/terminator_03-2.c create mode 100644 data/benchmarks/sv-benchmarks/loops/terminator_03-2_abstracted.c create mode 100644 data/benchmarks/sv-benchmarks/loops/trex01-1.c create mode 100644 data/benchmarks/sv-benchmarks/loops/trex01-2.c create mode 100644 data/benchmarks/sv-benchmarks/loops/trex02-1.c create mode 100644 data/benchmarks/sv-benchmarks/loops/trex02-2.c create mode 100644 data/benchmarks/sv-benchmarks/loops/trex03-1.c create mode 100644 data/benchmarks/sv-benchmarks/loops/trex03-2.c create mode 100644 data/benchmarks/sv-benchmarks/loops/trex03-2_abstracted.c create mode 100644 data/benchmarks/sv-benchmarks/loops/trex04.c create mode 100644 data/benchmarks/sv-benchmarks/loops/trex04_abstracted.c create mode 100644 data/benchmarks/sv-benchmarks/loops/veris.c_NetBSD-libc_loop.c create mode 100644 data/benchmarks/sv-benchmarks/loops/veris.c_OpenSER_cases1_stripFullBoth_arr.c create mode 100644 data/benchmarks/sv-benchmarks/loops/veris.c_sendmail_tTflag_arr_one_loop.c create mode 100644 data/benchmarks/sv-benchmarks/loops/verisec_NetBSD-libc_loop.c create mode 100644 data/benchmarks/sv-benchmarks/loops/verisec_OpenSER_cases1_stripFullBoth_arr.c create mode 100644 data/benchmarks/sv-benchmarks/loops/vogal-1.c create mode 100644 data/benchmarks/sv-benchmarks/loops/vogal-2.c create mode 100644 data/benchmarks/sv-benchmarks/loops/while_infinite_loop_1.c create mode 100644 data/benchmarks/sv-benchmarks/loops/while_infinite_loop_2.c create mode 100644 data/benchmarks/sv-benchmarks/loops/while_infinite_loop_3.c create mode 100644 data/benchmarks/sv-benchmarks/loops/while_infinite_loop_4.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/LICENSE.txt create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/Makefile create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/README.txt create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/afterrec-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/afterrec-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/afterrec_2calls-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/afterrec_2calls-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/fibo_10-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/fibo_10-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/fibo_15-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/fibo_15-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/fibo_20-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/fibo_20-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/fibo_25-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/fibo_25-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_10-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_10-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_15-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_15-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_2-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_2-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_20-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_20-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_25-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_25-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_4-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_4-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_5-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_5-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_6-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_6-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_8-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_8-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/fibo_5-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/fibo_5-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/fibo_7-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/fibo_7-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/id2_b2_o3.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/id2_b3_o2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/id2_b3_o5.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/id2_b5_o10.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/id2_i5_o5-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/id2_i5_o5-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/id_b2_o3.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/id_b3_o2-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/id_b3_o2-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/id_b3_o5-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/id_b3_o5-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/id_b5_o10-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/id_b5_o10-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/id_i10_o10-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/id_i10_o10-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/id_i15_o15-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/id_i15_o15-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/id_i20_o20-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/id_i20_o20-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/id_i25_o25-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/id_i25_o25-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/id_i5_o5-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/id_i5_o5-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/id_o10.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/id_o100.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/id_o1000.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/id_o20.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/id_o200.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/id_o3.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/sum_10x0-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/sum_10x0-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/sum_15x0-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/sum_15x0-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/sum_20x0-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/sum_20x0-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/sum_25x0-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/sum_25x0-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/sum_2x3-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/sum_2x3-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/sum_non.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/sum_non_eq-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/sum_non_eq-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive-simple/sum_non_eq-3.c create mode 100644 data/benchmarks/sv-benchmarks/recursive/Ackermann01-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive/Ackermann02.c create mode 100644 data/benchmarks/sv-benchmarks/recursive/Ackermann03.c create mode 100644 data/benchmarks/sv-benchmarks/recursive/Ackermann04.c create mode 100644 data/benchmarks/sv-benchmarks/recursive/Addition01-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive/Addition02.c create mode 100644 data/benchmarks/sv-benchmarks/recursive/Addition02WithOverflowBug.c create mode 100644 data/benchmarks/sv-benchmarks/recursive/Addition03-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive/Addition03-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive/BallRajamani-SPIN2000-Fig1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive/EvenOdd01-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive/EvenOdd03.c create mode 100644 data/benchmarks/sv-benchmarks/recursive/EvenOdd03WithOverflowBug.c create mode 100644 data/benchmarks/sv-benchmarks/recursive/Fibonacci01-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive/Fibonacci02.c create mode 100644 data/benchmarks/sv-benchmarks/recursive/Fibonacci03.c create mode 100644 data/benchmarks/sv-benchmarks/recursive/Fibonacci04.c create mode 100644 data/benchmarks/sv-benchmarks/recursive/Fibonacci05.c create mode 100644 data/benchmarks/sv-benchmarks/recursive/LICENSE.txt create mode 100644 data/benchmarks/sv-benchmarks/recursive/Makefile create mode 100644 data/benchmarks/sv-benchmarks/recursive/McCarthy91-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive/McCarthy91-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive/MultCommutative-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive/Primes.c create mode 100644 data/benchmarks/sv-benchmarks/recursive/README.txt create mode 100644 data/benchmarks/sv-benchmarks/recursive/gcd01-1.c create mode 100644 data/benchmarks/sv-benchmarks/recursive/gcd02.c create mode 100644 data/benchmarks/sv-benchmarks/recursive/recHanoi01.c create mode 100644 data/benchmarks/sv-benchmarks/recursive/recHanoi02-2.c create mode 100644 data/benchmarks/sv-benchmarks/recursive/recHanoi03-2.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Avery-2006FLOPS-Tabel1_true-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Ben-Amram-2010LMCS-Ex2.3_true-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_BradleyMannaSipma-2005CAV-Fig1-modified_false-termination.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_BradleyMannaSipma-2005CAV-Fig1_true-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_BradleyMannaSipma-2005ICALP-Fig1_true-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_BrockschmidtCookFuhs-2013CAV-Fig1_true-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_BrockschmidtCookFuhs-2013CAV-Introduction_true-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_ChenFlurMukhopadhyay-2012SAS-Fig1_true-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_CookSeeZuleger-2013TACAS-Fig3_true-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_CookSeeZuleger-2013TACAS-Fig7a_true-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_CookSeeZuleger-2013TACAS-Fig7b_true-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_GulwaniJainKoskinen-2009PLDI-Fig1_true-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_HarrisLalNoriRajamani-2010SAS-Fig1_true-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_HarrisLalNoriRajamani-2010SAS-Fig2_false-unreach-label-termination-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_HarrisLalNoriRajamani-2010SAS-Fig3_true-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_KroeningSharyginaTsitovichWintersteiger-2010CAV-Fig1_true-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_LarrazOliverasRodriguez-CarbonellRubio-2013FMCAD-Fig1_true-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Masse_true-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_NoriSharma-2013FSE-Fig7_true-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_NoriSharma-2013FSE-Fig8_true-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_PodelskiRybalchenko-2004VMCAI-Ex2_true-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_TelAviv-Amir-Minimum_true-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Toulouse-BranchesToLoop_true-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Toulouse-MultiBranchesToLoop_true-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Urban-2013WST-Fig1_false-unreach-label-termination-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Urban-2013WST-Fig2-modified1000_true-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Urban-2013WST-Fig2_true-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Urban_true-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Velroyen_false-unreach-label-termination-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_a.01-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_a.04-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_a.05-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_a.06-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_a.07-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_a.08-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_a.09_assume-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_a.10-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_add_last_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_array01_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_array02_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_array03_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_aviad_true-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.01-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.02-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.03-no-inv_assume-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.03_assume-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.04-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.05-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.06-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.07-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.09-no-inv_assume-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.09_assume-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.10-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.11-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.12-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.13-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.14-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.15-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.16-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.17-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.18-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_bubblesort_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_c.01-no-inv-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_c.01_assume-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_c.02-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_c.03-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_c.07-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_c.08-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_count_down_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrcat_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrchr_true_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrcmp_true_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrcpy_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrcspn_true_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrlen_true_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrncat_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrncmp_true_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrncpy_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrpbrk_true_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrspn_true_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_diff_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_easySum-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_ex1-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_ex2-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_ex3a-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_ex3b-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_fermat-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_flag-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_gcd1_true-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_genady_true-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_insertionsort_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_java_AG313-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_java_Break-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_java_BubbleSort_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_java_Continue1-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_java_LogBuiltIn-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_java_Nested-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_java_Sequence-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_lis_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_min_rf_true-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_mult_array_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cbzero_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cmemchr_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cmemrchr_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cmemset_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstpcpy_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstpncpy_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrcat_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrcmp_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrcpy_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrcspn_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrlcpy_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrlen_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrncat_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrncmp_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrncpy_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrnlen_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrpbrk_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrspn_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrstr_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_selectionsort_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_stroeder1_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_stroeder2_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_strreplace_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_subseq_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_substring_alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_twisted-alloca.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_add_last_unsafe.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_bubble_sort_unsafe.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_bubblesort_unsafe.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_count_down_unsafe.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_cstrcat_unsafe.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_cstrchr_unsafe.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_cstrcpy_unsafe.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_cstrlen_unsafe.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_cstrncat_unsafe.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_cstrncpy_unsafe.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_cstrpbrk_unsafe.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_delete_alloca_unsafe.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_delete_unsafe.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_diff_usafe.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_insertion_sort_unsafe.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_insertionsort_unsafe.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_java_BubbleSort_unsafe.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_knapsack_alloca_unsafe.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_knapsack_unsafe.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_lis_unsafe.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_mult_array_unsafe.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_reverse_array_alloca_unsafe.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_reverse_array_unsafe.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_selection_sort_unsafe.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_selectionsort_unsafe.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_stroeder1_unsafe.c create mode 100644 data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_stroeder2_unsafe.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/Avg_true.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/Binomial_true.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/Et1_true.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/Et2_true.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/Et3_true.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/Et4_true.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/LeUserDefRec_true.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/LogRecursive_true.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/Parts_true.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/TerminatorRec02_true.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/TwoWay_true.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/ex2.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/ex3.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/rec_counter1.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/rec_counter3.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/rec_strlen.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_Ackermann01_true-unreach-call_modified_modified.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_Addition01_true-unreach-call_true-termination_modified.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_EvenOdd01_true-unreach-call_true-termination_modified.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_Fibonacci01_true-unreach-call_modified.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_MultCommutative_true-unreach-call_true-termination_modified.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_a.01.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_a.04.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_a.05.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_a.06.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_a.07.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_a.08.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_a.09_assume.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_a.10.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.01.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.02.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.03-no-inv_assume.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.03_assume.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.04.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.05.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.06.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.07.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.09-no-inv_assume.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.09_assume.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.10.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.11.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.12.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.13.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.14.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.15.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.16.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.17.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.18.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_c.01-no-inv.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_c.01_assume.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_c.02.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_c.03.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_c.07.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_c.08.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_easySum.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_ex1.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_ex2.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_ex3a.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_ex3b.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_fermat.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_flag.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_gcd01_true-unreach-call_true-termination_modified.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_java_AG313.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_java_Break.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_java_Continue1.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_java_LogBuiltIn.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_java_Nested.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_java_Sequence.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_recHanoi02_true-unreach-call_true-termination_modified.c create mode 100644 data/benchmarks/tpdb/C/AProVE_numeric/svcomp_twisted.c create mode 100644 data/benchmarks/tpdb/C/Di_Stefano_20/boids_true-termination.c create mode 100644 data/benchmarks/tpdb/C/Di_Stefano_20/flock-noarray_true-termination.c create mode 100644 data/benchmarks/tpdb/C/Di_Stefano_20/flock_true-termination.c create mode 100644 data/benchmarks/tpdb/C/Di_Stefano_20/formation-noarray_true-termination.c create mode 100644 data/benchmarks/tpdb/C/Di_Stefano_20/formation_true-termination.c create mode 100644 data/benchmarks/tpdb/C/Di_Stefano_20/majority-noarray_true-termination.c create mode 100644 data/benchmarks/tpdb/C/Di_Stefano_20/majority_true-termination.c create mode 100644 data/benchmarks/tpdb/C/Hensel_22/asc_ll_search_last.c create mode 100644 data/benchmarks/tpdb/C/Hensel_22/cyclic_ll_search_last.c create mode 100644 data/benchmarks/tpdb/C/Hensel_22/desc_ll_search-ptrdiff_existing.c create mode 100644 data/benchmarks/tpdb/C/Hensel_22/desc_ll_search_existing.c create mode 100644 data/benchmarks/tpdb/C/Hensel_22/desc_ll_search_last.c create mode 100644 data/benchmarks/tpdb/C/Hensel_22/desc_ll_search_mod.c create mode 100644 data/benchmarks/tpdb/C/Hensel_22/desc_ll_with_offset_search.c create mode 100644 data/benchmarks/tpdb/C/Hensel_22/nondet_ll_delete.c create mode 100644 data/benchmarks/tpdb/C/Hensel_22/nondet_ll_init.c create mode 100644 data/benchmarks/tpdb/C/Hensel_22/nondet_ll_init_rec.c create mode 100644 data/benchmarks/tpdb/C/Hensel_22/nondet_ll_insert.c create mode 100644 data/benchmarks/tpdb/C/Hensel_22/nondet_ll_search_last_n.c create mode 100644 data/benchmarks/tpdb/C/Hensel_22/nondet_ll_search_last_zero.c create mode 100644 data/benchmarks/tpdb/C/Hensel_22/nondet_ll_search_zero.c create mode 100644 data/benchmarks/tpdb/C/Hensel_22/nondet_ll_skip.c create mode 100644 data/benchmarks/tpdb/C/Hensel_22/nondet_ll_traverse-ptrdiff.c create mode 100644 data/benchmarks/tpdb/C/Hensel_22/nondet_ll_traverse.c create mode 100644 data/benchmarks/tpdb/C/Hensel_22/nondet_ll_traverse_rec.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/960521-1_1_true-valid-memsafety.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Addition01_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/BallRajamani-SPIN2000-Fig1_false-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/EvenOdd01_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Fibonacci01_true-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/McCarthy91_false-unreach-call_false-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Primes_true-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem01_label00_true-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem02_label00_true-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem03_label00_true-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem04_label00_true-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem05_label00_false-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem06_label00_false-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem07_label00_true-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem08_label00_true-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem09_label00_true-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem10_label00_true-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem11_label00_false-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem12_label00_false-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem13_label00_true-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem14_label00_true-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem15_label00_false-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem16_label00_false-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem17_label00_true-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem18_label00_false-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem19_label00_true-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/afterrec_2calls_false-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/bist_cell_true-unreach-call_false-termination.cil.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/bubble_sort_linux_true-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/cdaudio_simpl1_false-unreach-call_true-termination.cil.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/cs_dekker_true-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/cs_fib_longer_true-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/cs_lamport_true-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/cs_peterson_true-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/cs_stateful_false-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/cs_szymanski_true-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/cs_time_var_mutex_true-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/data_structures_set_multi_proc_false-unreach-call_ground.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/diskperf_simpl1_true-unreach-call_true-termination.cil.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/dll_extends_pointer_true-valid-memsafety.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/dll_of_dll_true-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/elevator_spec1_product01_true-unreach-call.cil.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/email_spec0_product05_true-unreach-call.cil.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/fibo_2calls_2_false-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/fibo_5_false-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/floppy_simpl3_false-unreach-call_true-termination.cil.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/gcd01_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/id2_b2_o3_true-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/id_i10_o10_false-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/kbfiltr_simpl1_true-unreach-call_true-termination.cil.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/list-ext_1_true-valid-memsafety.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/list_true-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/lockfree-3.0_true-valid-memsafety.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/mem_slave_tlm.1_true-unreach-call_false-termination.cil.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/merge_sort_true-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/minepump_spec1_product01_true-unreach-call.cil.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_STARTPALS_ActiveStandby_false-unreach-call.1.ufo.BOUNDED-10.pals.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_STARTPALS_Triplicated_false-unreach-call.1.ufo.BOUNDED-10.pals.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_floodmax.3_false-unreach-call.1.ufo.BOUNDED-6.pals.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_floodmax.5_false-unreach-call.1.ufo.BOUNDED-10.pals.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_lcr-var-start-time.3_false-unreach-call.1.ufo.BOUNDED-6.pals.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_lcr-var-start-time.6_false-unreach-call.1.ufo.BOUNDED-12.pals.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_lcr.3_false-unreach-call.1.ufo.BOUNDED-6.pals.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_lcr.8_false-unreach-call.1.ufo.BOUNDED-16.pals.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_opt-floodmax.3_false-unreach-call.1.ufo.BOUNDED-6.pals.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_opt-floodmax.5_false-unreach-call.1.ufo.BOUNDED-10.pals.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pc_sfifo_1_false-unreach-call_false-termination.cil.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/recHanoi01_true-unreach-call_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/rekcba_aso_false-unreach-call.1.M1.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/rekcba_ctm_false-unreach-call.2.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/rekcba_nxt_false-unreach-call.1.M1.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/s3_clnt_1_false-unreach-call.cil.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/s3_srvr_14_false-unreach-call.cil.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/s3_srvr_1_false-unreach-call.cil.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/sanfoundry_02_true-unreach-call_ground.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/simple-ext_1_true-valid-memsafety.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/skiplist_3lvl_true-valid-memsafety.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/sll_to_dll_rev_true-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/sorting_bubblesort_true-unreach-call_ground.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/splice_true-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/standard_compare_true-unreach-call_ground.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/standard_copy7_true-unreach-call_ground.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/standard_password_true-unreach-call_ground.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/stateful_check_false-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/sum_2x3_false-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/sum_non_eq_false-unreach-call.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/test-0134_true-valid-memsafety.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/test-0219_true-valid-memsafety.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/test-0234_true-valid-memsafety.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/test-0513_1_true-valid-memsafety.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/test-0521_true-valid-memsafety.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/test_locks_15_true-unreach-call_false-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/token_ring.01_false-unreach-call_false-termination.cil.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/token_ring.05_false-unreach-call_false-termination.cil.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/token_ring.10_false-unreach-call_false-termination.cil.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/token_ring.15_false-unreach-call_false-termination.cil.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/transmitter.01_false-unreach-call_false-termination.cil.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/transmitter.06_false-unreach-call_false-termination.cil.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/transmitter.11_false-unreach-call_false-termination.cil.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/transmitter.16_false-unreach-call_false-termination.cil.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/tree_stack_true-valid-memsafety.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-Fig1_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-Fig2a_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-Fig2b_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-counterex1a_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-counterex1b_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-cousot9_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-ndecr_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-nestedLoop_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-random1d_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-rsd_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-speedpldi2_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-speedpldi3_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-speedpldi4_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-terminate_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-wcet2_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-while2_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-wise_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/Avery-FLOPS2006-Table1_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/BradleyMannaSipma-CAV2005-Fig1-modified_false-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/BradleyMannaSipma-CAV2005-Fig1_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/BradleyMannaSipma-ICALP2005-Fig1_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron12_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron1_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron4_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron6_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-random1d_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex1.02_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex1.03_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex1.04_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex1.05_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.01_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.02_false-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.05_false-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.07_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.08_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.10_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.13_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.16_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.17_false-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.20_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.22_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.01_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.03_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.04_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.05_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.08_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.09_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex4.01_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/CookSeeZuleger-TACAS2013-Fig1_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/CookSeeZuleger-TACAS2013-Fig7a_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/CookSeeZuleger-TACAS2013-Fig7b_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/GopanReps-CAV2006-Fig1a_true-termination.c.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/GulwaniJainKoskinen-PLDI2009-Fig1_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HarrisLalNoriRajamani-SAS2010-Fig1_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HarrisLalNoriRajamani-SAS2010-Fig2_false-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HarrisLalNoriRajamani-SAS2010-Fig3_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig2_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig5_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig6_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig7_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig8_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig9_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HenzingerJhalaMajumdarSutre-POPL2002-LockingExample_false-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/KroeningSharyginaTsitovichWintersteiger-CAV2010-Ex_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/KroeningSharyginaTsitovichWintersteiger-CAV2010-Fig1_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LICENSE.txt create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LarrazOliverasRodriguez-CarbonellRubio-FMCAD2013-Fig1_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeeJonesBen-Amram-POPL2001-Ex1_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeeJonesBen-Amram-POPL2001-Ex2_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeeJonesBen-Amram-POPL2001-Ex3_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeeJonesBen-Amram-POPL2001-Ex4_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeeJonesBen-Amram-POPL2001-Ex5_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeeJonesBen-Amram-POPL2001-Ex6_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeikeHeizmann-TACAS2014-Ex9_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeikeHeizmann-WST2014-Ex9_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/Masse-VMCAI2014-Fig1b_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/PodelskiRybalchenko-LICS2004-Fig2_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/PodelskiRybalchenko-TACAS2011-Fig4_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/PodelskiRybalchenko-VMCAI2004-Ex1_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/README.txt create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/TelAviv-Amir-Minimum_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/Toulouse-BranchesToLoop_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/Toulouse-MultiBranchesToLoop_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/UrbanMine-ESOP2014-Fig3_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/aaron2_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/aaron3_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/aviad_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/gcd1_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/genady_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/joey_false-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/min_rf_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/svcomp_cstrcmp_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/svcomp_cstrcspn_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/svcomp_cstrlen_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/svcomp_cstrncmp_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/svcomp_cstrpbrk_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/svcomp_cstrspn_true-termination.c create mode 100644 data/benchmarks/tpdb/C/SV-COMP_Termination_Category/svcomp_strchr_true-termination.c create mode 100644 data/benchmarks/tpdb/C/Ton_Chanh_15/Ackermann_false-termination.c create mode 100644 data/benchmarks/tpdb/C/Ton_Chanh_15/Ackermann_true-termination.c create mode 100644 data/benchmarks/tpdb/C/Ton_Chanh_15/Binary_Search_true-termination.c create mode 100644 data/benchmarks/tpdb/C/Ton_Chanh_15/McCarthy91_Recursion_true-termination.c create mode 100644 data/benchmarks/tpdb/C/Ton_Chanh_15/MutualRecursion_1a_false-termination.c create mode 100644 data/benchmarks/tpdb/C/Ton_Chanh_15/MutualRecursion_1b_true-termination.c create mode 100644 data/benchmarks/tpdb/C/Ton_Chanh_15/NestedRecursion_1a_false-termination.c create mode 100644 data/benchmarks/tpdb/C/Ton_Chanh_15/NestedRecursion_1b_true-termination.c create mode 100644 data/benchmarks/tpdb/C/Ton_Chanh_15/NestedRecursion_1c_true-termination.c create mode 100644 data/benchmarks/tpdb/C/Ton_Chanh_15/NestedRecursion_1d_true-termination.c create mode 100644 data/benchmarks/tpdb/C/Ton_Chanh_15/NestedRecursion_2a_false-termination.c create mode 100644 data/benchmarks/tpdb/C/Ton_Chanh_15/NestedRecursion_2b_false-termination.c create mode 100644 data/benchmarks/tpdb/C/Ton_Chanh_15/NestedRecursion_2c_true-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/4BitCounterPointer_true-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/Arrays01-EquivalentConstantIndices_true-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/Arrays02-EquivalentConstantIndices_false-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/Arrays03-ValueRestictsIndex_true-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/Bangalore_true-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/Cairo_true-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/Collatz_unknown-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/Division_false-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/Gothenburg_true-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/LICENSE.txt create mode 100644 data/benchmarks/tpdb/C/Ultimate/LexIndexValue-Array_true-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/LexIndexValue-Pointer_true-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/Lobnya-Boolean-Reordered_true-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/Madrid_false-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/Mysore_true-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/NonTermination2_false-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/NonTermination3_false-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/NonTerminationSimple2_false-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/NonTerminationSimple3_false-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/NonTerminationSimple4_false-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/NonTerminationSimple5_false-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/NonTerminationSimple6_false-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/NonTerminationSimple7_false-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/NonTerminationSimple8_false-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/NonTerminationSimple9_false-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/Nyala-2lex_true-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/Parallel_true-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/Pure3Phase_true-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/README.txt create mode 100644 data/benchmarks/tpdb/C/Ultimate/RecursiveMultiplication_true-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/RecursiveNonterminating_false-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/Rotation180_false-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/Stockholm_true-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/SyntaxSupportPointer01_true-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/WhileFalse_true-termination.c create mode 100644 data/benchmarks/tpdb/C/Ultimate/WhileTrue_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/2Nested_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/4NestedWith3Variables_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-Fig1_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-Fig2a_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-Fig2b_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-complex_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-counterex1a_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-counterex1b_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-cousot9_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-exmini_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-loops_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-ndecr_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-nestedLoop_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-random1d_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-random2d_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-rsd_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-speedFails4_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-speedpldi2_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-speedpldi3_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-speedpldi4_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-terminate_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-wcet2_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-while2_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-wise_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/AlternDiv.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/AlternDivWide.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/AlternDivWidening.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/AlternKonv.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Avery-FLOPS2006-Table1_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Bangalore_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Ben-Amram-LMCS2010-Ex2.3_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Benghazi_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/BradleyMannaSipma-CAV2005-Fig1-modified_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/BradleyMannaSipma-CAV2005-Fig1_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/BradleyMannaSipma-ICALP2005-Fig1_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/BrockschmidtCookFuhs-CAV2013-Fig1_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/BrockschmidtCookFuhs-CAV2013-Fig9a_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/BrockschmidtCookFuhs-CAV2013-Introduction_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Cairo_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron12_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron1_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron4_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron6_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-random1d_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-random2d_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenCookFuhsNimkarOHearn-TACAS2014-Introduction_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.01_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.02_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.03_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.04_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.05_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.01_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.02_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.03_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.04_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.06_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.07_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.08_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.09_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.10_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.11_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.12_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.13_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.14_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.15_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.16_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.17_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.18_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.19_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.20_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.21_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.22_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.01_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.02_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.03_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.04_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.05_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.06_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.07_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.08_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.09_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.10_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex4.01_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Fig1_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Choose.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ChooseLife.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ColonSipma-TACAS2001-Fig1_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ComplInterv.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ComplInterv2.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ComplInterv3.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ComplxStruc.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/ConvLower.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig1_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig7a_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig7b_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig8a-modified_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig8a_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig8b_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Copenhagen_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Cousot.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/DivMinus.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/DivMinus2.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/DivWithoutMinus.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/DoubleNeg.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Et1.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Et2.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Et4.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Even.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Ex01.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Ex02.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Ex03.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Ex04.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Ex05.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Ex06.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Ex07.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Ex08.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Factorial.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Fibonacci.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Flip.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Flip2.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/GCD.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/GCD2.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/GCD3.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/GCD4.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Gauss.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/GopanReps-CAV2006-Fig1a_true-termination.c.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Gothenburg_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/GulavaniGulwani-CAV2008-Fig1a_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/GulavaniGulwani-CAV2008-Fig1b_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/GulavaniGulwani-CAV2008-Fig1c_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/GulwaniJainKoskinen-PLDI2009-Fig1_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig1_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig4_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig6_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig8_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig9_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/IntPath.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/KroeningSharyginaTsitovichWintersteiger-CAV2010-Ex_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/LarrazOliverasRodriguez-CarbonellRubio-FMCAD2013-Fig1_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Lcm.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Ex1_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Ex7_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Ex8_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Ex9_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Fig1_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-WST2014-Ex5_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-WST2014-Ex6_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Lobnya-Boolean-Reordered_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Log.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/LogAG.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/LogMult.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Loop.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Madrid_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Marbie1.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Marbie2.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Masse-VMCAI2014-Ex6_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Masse-VMCAI2014-Fig1a_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Masse-VMCAI2014-Fig1b_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/McCarthyIterative.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/MenloPark_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Middle.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/MinusBuiltIn.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/MinusMin.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/MinusUserDefined.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/MirrorInterv.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/MirrorIntervSim.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Mysore_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_00.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_01.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_02.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_03.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_04.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_10.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_12.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_13.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_21.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_22.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_23.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_24.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/NarrowKonv.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Narrowing.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Nested.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTermination1_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTermination2_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTermination4_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTerminationSimple2_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTerminationSimple3_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTerminationSimple4_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTerminationSimple5_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTerminationSimple6_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTerminationSimple7_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTerminationSimple8_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTerminationSimple9_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/NoriSharma-FSE2013-Fig7_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/NoriSharma-FSE2013-Fig8_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Nyala-2lex_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Overflow.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Parallel_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA1.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA10.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA4.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA5.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA6.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA7.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA8.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA9.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB1.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB11.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB14.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB15.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB16.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB17.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB2.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB3.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB4.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB6.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB7.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaC1.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaC10.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaC2.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaC3.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaC7.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaC9.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Piecewise_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/PlusSwap.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-LICS2004-Fig1_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-LICS2004-Fig2-TACAS2011-Fig3_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-TACAS2011-Fig1_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-TACAS2011-Fig2_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-TACAS2011-Fig4_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-VMCAI2004-Ex1_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-VMCAI2004-Ex2_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Pure2Phase_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Pure3Phase_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Rotation180_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Sequence.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Stockholm_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Sunset.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Swingers.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/TelAviv-Amir-Minimum_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Thun_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Toulouse-BranchesToLoop_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Toulouse-MultiBranchesToLoop_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/TrueDiv.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/TwoFloatInterv.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/UpAndDown.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/UpAndDownIneq.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Urban-WST2013-Fig1_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Urban-WST2013-Fig2-modified1000_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Urban-WST2013-Fig2_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/UrbanMine-ESOP2014-Fig3_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Velroyen_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/Waldkirch_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileDecr.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileFalse_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileIncr.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileIncrPart.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileNested.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileNestedOffset.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/WhilePart.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileSingle.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileTrue.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileTrue_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/aaron2_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/aaron3_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/collatz.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/easy1_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/easy2_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/gcd1_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/genady_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/min_rf_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.01.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.04.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.05.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.06.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.07.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.08.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.09_assume.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.10.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.01.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.02.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.03-no-inv_assume.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.03_assume.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.04.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.05.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.06.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.07.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.09-no-inv_assume.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.09_assume.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.10.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.11.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.12.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.13.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.14.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.15.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.16.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.17.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.18.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_c.01-no-inv.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_c.01_assume.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_c.02.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_c.03.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_c.07.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_c.08.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_easySum.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_ex1.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_ex2.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_ex3a.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_ex3b.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_fermat.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_flag.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_java_AG313.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_java_Break.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_java_Continue1.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_java_Nested.c create mode 100644 data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_java_Sequence.c create mode 100644 data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/2Nested_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Bangalore_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Bangalore_v2_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Bangalore_v3_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Bangalore_v4_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Benghazi_nondet_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Cairo_nondet_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Cairo_step2_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Copenhagen_disj_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Gothenburg_v2_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Hanoi_2vars_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Hanoi_3vars_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Hanoi_plus_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/McCarthy91_Iteration_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Mysore_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Singapore_plus_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Singapore_true-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Singapore_v1_false-termination.c create mode 100644 data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Singapore_v2_false-termination.c create mode 100644 dataset.zip create mode 100644 experiments/README.md create mode 100644 experiments/all_benchmarks.txt create mode 100644 experiments/array_files.txt create mode 100644 experiments/arrays.txt create mode 100644 experiments/filtered_termination_positive.txt create mode 100644 experiments/loop_invariants.txt create mode 100644 experiments/negative_benchmarks.txt create mode 100644 experiments/one_loop_one_method_no_arrays.txt create mode 100644 experiments/positive_benchmarks.txt create mode 100644 experiments/positive_termination_benchmarks.txt create mode 100644 experiments/recursion_pre_post.txt create mode 100644 experiments/recursive_functions.txt create mode 100644 experiments/termination.txt create mode 100644 logs/README.md create mode 100644 src/Dockerfile create mode 100644 src/benchmark.py create mode 100644 src/boogie.py create mode 100644 src/build_parser.py create mode 100644 src/checker.py create mode 100644 src/frama_c.py create mode 100644 src/llm.py create mode 100644 src/llm_api_client.py create mode 100644 src/llm_utils.py create mode 100644 src/loopy.py create mode 100644 src/loopy_factory.py create mode 100644 src/loopy_llm.py create mode 100644 src/main.py create mode 100644 src/requirements.txt create mode 160000 src/tree_sitter_lib/vendor/tree-sitter-c create mode 100644 templates/array_prompt_with_nudges.txt create mode 100644 templates/array_system_message.txt create mode 100644 templates/csv_format_healing_prompt.txt create mode 100644 templates/csv_format_healing_system_message.txt create mode 100644 templates/healing_prompt.txt create mode 100644 templates/healing_system_message.txt create mode 100644 templates/m1_prepost_prompt.txt create mode 100644 templates/m1_prepost_system.txt create mode 100644 templates/plain.txt create mode 100644 templates/prepost_prompt.txt create mode 100644 templates/prepost_system.txt create mode 100644 templates/simplified_prompt.txt create mode 100644 templates/simplified_prompt_arrays.txt create mode 100644 templates/simplified_prompt_with_nudges.txt create mode 100644 templates/simplified_system_message.txt create mode 100644 templates/svcomp_prompt.txt create mode 100644 templates/svcomp_system_message.txt create mode 100644 templates/termination_baseline_prompt.txt create mode 100644 templates/termination_baseline_system.txt create mode 100644 templates/termination_invariants_prompt.txt create mode 100644 templates/termination_invariants_system.txt create mode 100644 templates/termination_lexico_prompt.txt create mode 100644 templates/termination_lexico_system.txt create mode 100644 templates/termination_mphase_prompt.txt create mode 100644 templates/termination_mphase_system.txt create mode 100644 templates/termination_variants_prompt.txt create mode 100644 templates/termination_variants_system.txt diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..475bd7266 --- /dev/null +++ b/.gitignore @@ -0,0 +1,161 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions + +# Distribution / packaging +.Python +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ +cover/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +.pybuilder/ +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +# For a library or package, you might want to ignore these files since the code is +# intended to run in multiple environments; otherwise, check them in: +# .python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +#Pipfile.lock + +# poetry +# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. +# This is especially recommended for binary packages to ensure reproducibility, and is more +# commonly ignored for libraries. +# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control +#poetry.lock + +# pdm +# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. +#pdm.lock +# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it +# in version control. +# https://pdm.fming.dev/#use-with-ide +.pdm.toml + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm +__pypackages__/ + +# Celery stuff +celerybeat-schedule +celerybeat.pid + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +# pytype static type analyzer +.pytype/ + +# Cython debug symbols +cython_debug/ + +# PyCharm +# JetBrains specific template is maintained in a separate JetBrains.gitignore that can +# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore +# and can be added to the global gitignore or merged into this file. For a more nuclear +# option (not recommended) you can uncomment the following to ignore the entire idea folder. +.idea/ + +.vscode/ +**/tree_sitter_lib/build/ diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 000000000..519a97c36 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "src/tree_sitter_lib/vendor/tree-sitter-c"] + path = src/tree_sitter_lib/vendor/tree-sitter-c + url = https://github.com/tree-sitter/tree-sitter-c diff --git a/GeneratedInvariants.xlsx b/GeneratedInvariants.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..3e974edea4c856fee68d723cf867140d57094957 GIT binary patch literal 27845 zcmeEtWka3KvLzlMxD#B1dkF6C9^BpCfxk7`1p@YFfXbIcdI-A%! z>#2Cyn>gt(xZ7A0=RrYG<$yr|^Z)?At_a-mFo2OYXwHzJbR}PpU*R_myUjWl*`Y)V2naMp%TAR#t-Gn^#e3w89Vl z@OyI(o_Uvx$ggi!jY=*LAn@EBw6!Ppeuu<|{VL;lSzJ(7g*S9=gu%+apUWU351eFc z6hl8sk;{<|hwD~|7|NnGs_jW7jMIpWo2KPN=UR?-J}gTdp^MbSI~1sR>6xs4JhRkr zV;qdD=-viL+Yo%e{%iHHDb_Rr#dOaz)fjZW6G_iJKWB|SX|N8wOT(tiYdPV${ z6eKf>=mzu)$!njl~CkrWB^mr-;z6Qr6 zr)F>oOHm}{et)l0XMBR6j*+}jDpn_O>EAm7?$(6m-h4Hz(!$-p7YgrZPfU5)MvP{$ z9D@xfixQ$UX3k)VP}e`9Zc?iAq+774E`e_d+7TE>7MLg*3TxG-cJ0zJo3$M)3jU5O z2R~vcRRntrr>PxJ5YK~ef9}@Ma(;&~b@v<9TYs(A(_!~Ij@~PP2t)6WHC>y7He=dC zu{y&`!WZ_mHcD?#1DqazSeQ=7`~Pc6xrhE*>I2G20tO5W8Q{^~n$gY9(aO-y&I)ua z7O3jjZ8M>G@gF`5@BWVEfXfv@RDCNN;(V(5%0Elj#Np|F-Su=<%;z7e8Uq=7dSi}(whP7?lPhv8|2 zXX?Wj5fwcIYRzwY&zh!~B+BQdp!y$3HQffsg#%|eM-Pq2bRrV>K2XaPI~wna9F8Vh zqz{z5k*+CvcmrN*tg5R*7gDm|)XwJ!!_B!NL0jmgw0BP!wAvHM+SYX~bWI7n!?U2` zn0KgPkI1$9^Ow%}++wecUr(jheUo8)K#hQ2ENvut*pSQ`N|r{_m=RlK5i zKiIsjc#$ElV6+c;3q&g%IDejW&sTpxJ>!v+^-`f0OfRVs!ElLzhi*|hi?Z85wJP>c z^G1Dg`@CfO%v4|VG2t6091*Tgd3*fW^fC|g*Kn6e>ysYId&g$&h3@ysM|5HxE5ExP z#_RMF=~?t6dlNcpa&Hjoa0r;*eTW>eUoz#;-)+lR$!-y-{7SF;usf02i-Y9Gx*!Up zCt`}sDe17*cWVYWjDGPY?FhR)C&Frm<21W#lL(OWe?LR~`4UsE0n2wl^zXo6!2!Yl zJx2ah_WwFkz=10vaNhjS{;5!smF@$sL~ox%nA|d4F;SPC8A(r6kC9=A>#0{LNmzYu zHt=Y^>!{C5GeX)0dz_CCy8ixvv<->=tDCkY91Y47-TIsx+HU-M91_;>w30AD92y<% zC~osFD=3=w=mfO9z;{uxNwp@h#p{52eTx!cip15uvcx5rm`LrR^9pc z2z&VD(u8Fnc)fz1i9?3OiF~Q!o%Zt5T2;@toP{1ns5@7#=tghOO?QU}=Qe;$|98oh zFr`i&;DUkSwSa-)05ksSkxu3&CeBWbuW!ttW|^5FYnRW25`3O?%dg(?MmR?`P^fIJ zvg}sPrM1;;5TQGqzr^M$x9r7x@S7yf9vY^9&EW0z#AeE$H96W^@cqIMnB(z@XiPox z(-k!L55Ei?rNfX{XSFpTG1mf%-6HHhU01qTZ9qT;K<&^j2TvwNdQ1iUrQi%)wzVH?y2a4rtH`@NsNv7$Cv5TCz+8tsH_!%Y5M8tDd_nH;)*mCw9=Qs>? z+Z$<(^YiYvY&0Y9J^J9wWBuu;Sf1?tXM@=|?u-^JVqR5VeAL(z3MtVaW+NMFhh|^&8-HyIn zQ3RvHu~w>w?Z^FVf?-BZclh<2dj(d_pJaUj$+;pd2rcPw;`>H@0nteqR}phE z9GXEH7=v=2R~7ajFru-xsQPOXzw$tTQr{yA40=@#S(nVB_wwCyfQ$5h zxhS7eP|;Hww4mXV)yWFZD=bZG*kQxWg83T0KN#Ru0%uhoJ#(|`A^E8|*W99KIemwX z_YVcEe81Kg40>60EvNtO@mu51S5Sb*dNu=_aZk}aw}PAaK32kCQh-Ic*gxZ@Erf07 zA1@xd)2~4ObD8zu4LsnhdAZ0)q0lMK~%LBfDl_- z_76LxBWA%=EnUY?x6V;k*nndD0sp$+mj;`^P`D69M;ZQ_UWugP$7=mc$->Dgp_0m5 zF1fn=nXV6?;ip#;9Mji8kZH96V!sOwTDacCduIWAoopXlxc%F?zb`Vq_v!oP862rH9&U+^(12&D{SEt@Vy?m7o|T3s8D>ym(Ll4Qp?3+aB=Q2^Hhg6q09x zy%7=u@&aGw^e+4eo}id>(jpo}xa%df7YE?b>u#&fs^ z6evlDAF@?lm}|zgD|$8d+iO02VC(C6P;wk$8F@jYzd(fD54ZlE`!4#Tke|-4P=0_m zMA|AW{)^;wofY^04nUY={P5rF@Ov!eK>5G`(FJYG%+D4*lX<|l57KV&vbk&KPZ35= zP&PQf%w*2bv!B`&kK3%Lp~*RcG``OZTDFJrcl4_GqyRUNKk17OAegs2$_NM?a!%sK zE!6-Hh#we0s{S={gtux1k-Sdc~?++{&FH`VDswcFRZWB9U;*(t5X(dAojXg z`vX8D>HjjaID;$P;Pj4TBQEeH?TVnDo}^(+&Dvj1nY0u&H3GpLOJF_u9S6no^P@TdWFd4yVQ_kwiD zcnI41qEusuchGVKv7Pd{zSbFkAuoC@5wG%bU9DGRTXVK1(~->eXEHHgbf7q0%0f++ zV}5&)7Q`P8B)*zZu6bqK`VD7kCZfS^S}esupOGlF06VyYojYO0w2y-UQa^mW^|$2@ z4+}Zm2b4;Ug#9A|50Y1o4JGiNyA8U~_jK**VG9rv% zU0?p_d)t9J=9p0_$Q;sCFOP-8rAmYAFd7$1vaVl#P=-NJ9^gTjq!}%Oe+jc9nnJ~; zq?+})Qk~e5`0$Pb36CL#ic={ri#C}I)vm43yP>DP_C)s( z#s^}BUM;$RgeNQX=I~CF3&?XoyhZ& znpoRul-kN%)Af6^Vi1^z@vO(RQ&R9H8)l)1Y{Rzk&7~jgjOzc;=Pz4^Lo>vj{Gm^{ z-Q>{C4GS;}#A?$Hm0#EYvHQJkSE8()Qr+SBDxR#nW0*q9iG0owy{(yS1cUV?iw8)i zYKAP+PBIYeaspod_!~)=4ycd+_;)m7L&0oq>5kR{g0rx*jfBZNQk@D&4`dg|YkM!A z=dP;5)UBnFG>s2;t6cRa3`j;#;skA{@6Rr0){|20yqo!=?*`$}95E+{5*F3bI}Kro z3tg?1QWnvPx5oqK7sSK!hNE$*&T^k!zig|z3_$%nRgvPkhS4JY@p+`JP8;t8;rfAy zob+o`y&Lu>M~6UZa;Cr+dPPU_#js|Y!Y1~)Wc2256jFe@ivja%L8VGg!3#|gSRy+B z>Q;)#v77BZG;@ttk{6TgeMs-;X362I(6V%z*A_y+3?Fik&nt2>=mJOnw%MyP|IKo@{&wf!q z1ZFcT=0Waa%m$P~x_3f?6pwqJN91vy=G!)_iAMVSQ9LeW~Q6Kt{`Y$rL^TvB4#eG6In1_E4K&Hyhmp3N`-d26p$=+1{0O;_b4&k-yD1r@3>z z17i5k@@7cTGvRfDbC;;(Wgx9g5WLGD|50k$1IsasO0n)4vUjz=SLm)9g##W663^jd zF7rE;GTm@)$*1SfQmem^M)y7y0uV^@ozs_5fJAW69RbLv^MK~y+urN1m_o%JpLfWm zYNG;jPe#*c{%Hk1`?ng)fqtKs?bX1Bmh;2 zhEM7e2Gmod!q8{PEH)8w_SG4e-`P8=4FynK7Gd#Zg-+oE<}-0BTCelRxvXaTIg9%n>>Zb7am9wO{Og!kEKsW7RN*xsz}cWVaT!v3L+U9Qy~8*O^9p`- zS#G}O8==>pm1+a@=t;#&;aqX{(4rZGu)`|L{tC@E!a$Ffecy*RqoXP;4y=ts%sb{n z8!WdxD8Z`ZtrcYBL}Ol){ot$;u|&8;{Qa!Kp{+DH`iKBSR_69=>M8T`G0~iguy{^F zG;p<=`urCK{xAyLAjs2KTx#FV&R%p+lv!cPx#aOf4&$tZw$Ve%~5 z4+scl$3WhsE{ooAmAUz`F)zJ(QYcL)(-?DQin*gt00ICUDbkw)$##+$V;{@_Ag&us z_ZgpmtM~LawnqZtP>7tEksiB6k}j85r*O`Y` zMK0vwAAbe%bl++a;W`#L6VBk+_!z5j|D~m~4&K7OTip!}86GYdy@!^T$_p~HM=bp((2 zJ`L1I4Vq)OL%~urBkas8vcCjWUnLFjJ@MVP>`fWS2r~r)b6u5jK46W9Lz zt74D*;kU<`y||8n;Vq8MyABZ~I@4CP1n(}ERVSd;{}a1)bMbK8fy~LjhA6;wW#91Q zTr|c-niEj^Kt#M^8NXE;$X-LJn|{>#=FI1+d@AvGZ%Xkz*4hk9@qc3AM9WH`mk)qP z8v9<{Tnb~{AZv59^FKjVa;lHHep68a@(;jt$8=6qJRAy+89R~yD)W-&fJz$U zQxy<#%+$|4)u>N`;u?8FWCS2+{v}`v86e$xc)S9CR~-;t3%bRCI+{XhS9|(vJ8;$! z-*#7y`UI2(D9KLb(SsR3^nSzvlNlKQPOkQybrT^Fw{(ua{i|R@EayZ}_XBylAP%E8 zpHz&dVqO8_13ETM+eZKuaF+my8$}g4zTf&ImpDKM(BSUZvUBn)q%2Ih0b{*J>Cvqv zNR|8hY_FYWh4z4|Tqzwms$L;-pj2zT>O0{z4Lhnp!vJ-2{4k*N=|Zy_>*)S7*WLqq zYKjiXpm5=<^@&nplN-2r{Y{c!;Yb|NKlF(*5nsFJ6FXp4D`XRYJ&$NGn?J>}f$p&& z_{x9=KY+^UT2Sg0F=iIAMTOLG97v&oQc0lhZU6Cxm;z`K%AJhpUSX=#eZIX8>o7hOLgSa{((T2^lG$J{SaoZ_!7#(Qg1@2CDFc!r z@A=;Z0zm297#NwC{_d6X3AY1;r1ppN1fYgFM)Zt5wL%VYE?_N)Oi+>rgIUvsLD}#2 z2x^-&U|xwzJq1Ozp@J>>s&IKb&~fx}PIMYnbbtF~dnrTwqEI6tIdBXDNweXTD2pig zTfZ~-VX0@bE^&QWwaU~0kiQxCq;5<-6_dG5n*a&=yM*D}CD7#(&KmeMIm)O<3((D; zIfXxMP#~?{u=NpClyzu#7yJtsVTXKsR$pFms-<_cN0+ldzSah4VEA4BkETIZ9Rc2i z%3=62gTq|r`rpoAAsC-}sw~$?4~QkfyQo(prP)$0hTeGJX}KRXDD_Nv;xj!69H51{fxoNf>&yyqt#_J_(CuE& zS!Ww@&22}}fm3M~Xzo}*QPt7+x<-mTdc zq6Fc41Q0~4S$4tHP*DqK+9Rqw1BMD%1+#+KNZmcP3|wEl-Cur(r-{{%xxmS%^Y-|- z1?y)@k22ib$)lWYGgOOxVT!YH4q}RM541gKS_^xu6jU6hd{zp23&mV?bU^nZAiRa- z;ofZzqucfntbEnGk5HQAYU|Da?c1TAkd-TM;M?;BJkY~suip+io155}FuuONelc{S zA#I2E5v2qBz?b;;>w$q}W8{!Og|tHk2eUPWX!LCOvPqu~gTzR*t*9fNLXNrSjZ#h% zVR$1rT29K%LbL2tk-)Q1$gY&8rnB{XnEP6!#=a+xbKD90Y8~HHCTD@50v;Rar1Cwm zIJRBkbg{}!+fFwVdI6;^=TKaEN!nC2T*xO=9f~ElVQtNh=coI4z zk0dklFJ@#6Xce2qp;E&B$o{rHQgeRdw0rtS z10|z=T4e>guxX16)}gHrcO6^Jc~g!w+%h?kW18R>L|46h9wiWc-&8JgFcZh$Q`ul&mQ%SF-Kv&5h^Hiqw2V{N*7Y%y8WF@HpGx|zg^{Rb)46WE*#3o- zi-ud%;u-r37~{(*3NO2crIHqR$Z%ZQL22{TNnOTbzK}?cmD`>Lunx6}t+yB=y*$%w z5vcNW8ruxr$jt}f>UM_eQy8TdVqzRY66c%7#8mTR7hK(6-n&vKN=v6R#^>gwSwa(; z;?$Z7p8twC*Xwi-*6nonygB$Ym7g6=$j|3_lV7-Jy*gl_vU+#4^5gmO-sonq&Q6#2 zPftvW=wmg%*VX8c><9l?*|%Z3K7VeS_T}|_ejT1~@LqO(geJt;@=iwyvrQ1LA4H!V z#~Db+;Buv+^8}G-McMy3LIWFT)c7iYwecqNYzTbUT2@=)*M04RRf+N005;xtn9}VXH zR<1KF*VSXKqqit50wX-yo6XK(B4UW1@2rnwxQ%6ojlqyV)(BQH(zWHP+pRf+N|=J!Rl<5aV!qqV%; zgX~)<*Azc)YYe^7&h*stnl8xKC}J^3#b-^vbW}`s`*sLrCyrw4rC=B0l-=Z=v+KA! z7EyYM;I4d97PFO{36bWA4CYm5>kUXF+=tY}>Ro7iaG3 zS2Lw8KOd+tEaaN9uCl}=OQ(*FwscDB&K@o6-d;_g+#^1S>KZ}BIcPXxde9dOUOsab z%We^^>rlWR#zB@mBdh#f8$&Z7S*M=%C2mmMvxui(9NJb^_LiVIt6x&owE=x`yzMuG zZaU)hTgF3tzT{{+ddm0GQwFr=^X0$5zHnGUli_4+S;hM=6xz};M{N4gsPqIsl@43? zxNMCV@zc@T(;A+36ns;D!$LBLm0W{}cuj>2o}5myF{D=+sKF=&j(2EB(m(PJs&|7D zdU48y9ydy&Bz%IQB9$8ja!8swn~L;yXN%2E+D{k@*>nFLhW%!VFb79y zO(mfX0cZ8{&dGNlmo3ye;adLG%bF#-iFb0%-=^l|ne~>mL1>B*A6oW&$;`9NgVVjY z+h-zwUaf*6s{9u#Q3I|v4aw7+34R(OF&Ug=$c7)ka~etAs|{9Yp%lIQ*$E}ECA0|N zOmZxV;>n~Z+NfWh-S(_dHD69}uW{-PO*b7n|FAgmaQa#6bv+`_wb`zbM{%B!PJjd{n)x*7hw49(A6lEGLjERnyTypE8+tfZ=tiz$8ab?%PF`-P$ERQKBhy%838P#Jn#L!%~&(!Lg@g?BD( z(PqJ{n9^IVIuaKX9C}MPNqDsT=R}DS%rg`$mKQt}$?=`4D@S@-%RlLFZGY2aiLvOd z+9a|&)B9PX%a})}>st!Vrjkfld1H!StsZEm+(OugF-U){TX5btmNWMef!Mu{4G6v4 zide;SqMQ!Gx$VpH;)s&2w2pFYS7z@fL2;o_=b?GhF*$?9IBTD7_7Rg;@uTP>k8+}~ z7sM(E9BIH3r8wrXE!ni{&C-&jzJ0x zl4cTj8b`CAC7*>u^y%I}Pp}OB`}ceV@%QZ?gUff0jKUY?5x>Z(wk(1sDn2AzTX|8o4X0+?M>CT~8v^7wG$vT)g(xu$q{CtzpK_8Ob zBl#(Z^Bd3M3dOZ6gSQf~>_kwr+prfcvWw&CVxq*UG3BXFoW8rS_BDbuN}-->!y$W> zno&K{XDGa{&=KiZelOfg;1{1GFcw2rLe-KMTRoi6Tv|<52nU}UHt{Gl_TvYb^w+R# z8n%Ae&&ir1?IRE}xPPVpkp(Sc@wuA%0bXDtzo&!hI9Fgu)-iy;HAFqqyvj{my=t9` zS|4j%k$j`S{!Gzkk6Q%15?*aO>l<=NFBH*2wtBalqtC^CPjDvOg!G?u*;+KJ)RtC}pE9!Zi=T)HZ*Qfc z)^KF78vOP*Zia8E*NJT42yM9TD`^Bik9iZyJsneBw4Y2Pw+$ywv@PART-8#+ewrD+ zVjsyv{e3Wo>?a?P^N`4KHPz!d4D~5cEl|jaHWX@wpIi`zV(5}J`x$sn?7x>$aG*OT zKLZ$84Kg?w#y@3bZs2HQtnBP)VQcnUO((ooc4VB68<4yF2QbZDJ7H?`z16K*oHFbQ zs}QXby=RmhP;X#sR~uK7H8mw~hXNn(W&>5}*jo#2)4sk9z_+hcOQ6Gw==ZFV@Odac z^_uq>Q9JfhZ1bIY`ME3mp0+6BxUJdy&(iH$HQL! z=ia8{Uqz5M5x*Wjx@C-CA-Au4dZvuOKeodft?-M_=(prs>iRKfW7n>2l5qS>C)ws_ z-TLP4ZpFv!UBIF9rMmTcCue7nEn&oC)8GmB@4cIw@esR(KOuG>iEOVlZf)$Yw^j(B zf7*FmvT5uk7}hbQXv?!FtYac<+wy7fR(w7#uKM#qi!S;2%=tshlJUZt&-tKe%|Xn= zTKC796!3INVt?+l-^kz#zXFfOuShd0Hl=S@c8rtlzSex>=7c@r%4Rgvs2-YU`sn~U z>ytCVUsZKAZdvPj_8c$!+@_A%{xYWaCx+-{I`GBKz>{BIZNccbO`8U<=|hbb1Scc= zl4VQk)^2nJU2AZdrs=4MTZ^VlXBy=Z>X1hUW_w7*0ffi2{_~n1pKIMIROu7Evqo=v zrpZuO;HR9Btd(Og?`(Il&gaL=R(XE6lmwH;p0GB8PGcoO0Tam7Ze2*z`R|Cy&GQ6j zX0VmqmWsdYMc3-ETz+WHwwo*dt`%K-mdqHjF|FD#J-WB~3A|n1+n5$?1dlzjI}_ID zUgylgTL|w9;&CA_Gd<@Zeh9WHVYX&n>t*LaUbz_fHttB!Xi#8)HyyPcYdaepCuW0V zF)Ov$nAWYBfs5bppKm-itbxTgrWf_&2wwsFjM{xI=(pT!3p}puhTLlnJhq7ynGp|Q z)RcSeL2Hzcc%9vpCzc`EV$Mp9ZFAr?75s;BS!P6(R=5)JkYPFYtQL4%`Hwe#y~a4a z6r0o+z_V^+ZNm!gN@c}qf|}T+WCruCyr#zY_myHx6MW}QX}^59ojNwcDJ!jSd}ztq z`OWw0>TBB`0@WBMatLHKFC}T;=kQza$sw)$Nx-z)FSwSk8zA^PuIV<0$xSVLi)n@}&KytqT-*XlE3aSed2Wo$-^8*3wWD`XRPSsPd zCuf=v4)%7(!$_^xoca+YiccqfvWavwdm@Q)Lp9b=GZdyO{d8 z2yYf(!Wu}sHgSo+Gw7=YNwHuQ=K9r!l3_zhSc9u=#CPB+F$txY>d99d6(vhu+N06i z(GVs%sfXe;;v`ybuj|RS&t$TR1E5$Ap1xQOo4u%5j{U z2!hvJMG$q&m049Lt&*7z(=li}=wO>Iu7(sEoI;6sLVJsCt_SrFkM*X|HvL-}rnj0D z3jP*^W+fw5g@9OW5*asgC!{pBCb?^l%R#P6-6CQ-b+QhdNE*!DlT9tj((lI~Sw#9q zXUa7iyiEdALNzD?_{6(93R+fW@B#6X@8XN%CcS_Iu*yzqeXEQHq`I0+;CAALqtY=pbaPAW1%MnIBtIR z335$XpM^)Eq4LhCX}Cefd4!y<{+$Oa$$+100?iR2?C%si%2>w8j`^g}3=z~3o{1>f z%V_53w)7K6fcM@prv1*acoMY-zZ67&sTzjN8b*x$b}_*u zC7I|wEPPtlJGSb4k4bPL5q8c)KWBr3$?QQlsU!M%Ga)MQVD|cVDJpDp@|;3sOuzG}57M1vacX3Xn8Pg0^ta(LbuV9#R=LAg9babp4m94y zBU!Q^A-m$h*bq$V5?TtSOjSvpri%Rme`E2d>yn|OAxDI#mW!cl1eI2rOgI(^5*90% zqa}KMLTW0B&>s3vCZJyID|Wnv4}Ak%{3=Y6v@u*Px{j>Wl3n#^ww0{{XKbo+>wFob~{-1tn_UcB*|IEIEo??i3shWk``50Gr$3k-h>I(e=PDX%o{(+*gi{wRw!y`kyaC`&%aNz zFH=!uHPEOY-I}I3cxE598pjthT;BX}Sv4)6fV2)Q7xA_uu#a8TB}+9wy3uM{L!CYKrP0HJCP_aa@c|R($(g<;K}=$3&Sb5 zE-9@5B51T+eJYVrp=PD!r{<(VX|fk{1KSuHwJoNNteV>{=PXa1L0Lw~o)AvZ5KAz!x0wxBa1x*5J%hK)R4+$s3{ye? zW}u84cWEiimS0+XZXg@Uw9A7U8@7H{;>q{>)TdKxhY$FA5k$Xt20NekcB*}!w`S!1 zm{aKAXS7x{6EfP`hJp!p(`8EwPO89S2f8m%yBwBt=%31T>bt%BQaJsm?&%WRH}+wT zAG}-CBRaYIN06z&p6J5RGsmebh;I`C6Xog#ht z=)|9XI1rk5p}=D`c$+~;NLL4}HZD#Z6CbC#M-Qa_pbn-of1yv6iS7>doD66_eY@DP zH!fodL-2+Zk<36?5JfdO;LUeV_r)v<@Z5sJ_HT>@s7RL)56>St@Hx}QD+ZMD(&k_o zB+<)qMXGk*h*L0G1SPXwBWJP(Q*nO5jtXGvf?xE5JqtjxE01|4ds*D-heZ zOMu>PVHX5*(UdW4oyFPpb;j68qk}2LgK!xUqgg~Wu>zLcG(hUQY}Fb({ll;6FIqo- z>5F|>cIo@YNPArDMk%&$&5zwii;Wl^vpJ)sO>Z*pQm3g7j@*cG&M-}i${U)LV|Lsh zN+S~Zi9Ho~KrfZ7q(sK(J!BTqF3rcp#k~@1p+-&%8Dkg?ur4cItvk%dQJSeDkzsgb zlMUUw+n+xN?0)4O@#V_5qA`sZ6~9xBo_wz*d2BtPLo?%+p<5)rg?)qXyKL5+X)Uks z#UYX>uOnySfr0Z-xWxR^)rL+EWm;@rB4(j`&e#PyxntqYOsk}=?+yWYk$Y)y;~vuE zNG4(lLwk}n4s7Q=&ALdV>Y~zq)+&VrtC{Eu&BdHBXJrM19;a?pvjir-n1|j&R#!VJW;Rho|2}CeJLctWpoZ?RJ%Uxl?uHGQk#D5p#TsTG z)W2|)d}Hv2!HQ*^D-k?0;yHqy>D2svRXwr+_EbGGd?)OIOQ>sF#$(4dCd8?Nb?em9_PoVmoYZ6a2 zI9pxPYFZ*6?uDClO}q1o%3?&{lNpxbo)#YAj7_9DRw5WiT)H(V==UW2b9ejX1X{Opw}SMKn$3@NCAL3F<&x;j^A(Ah z_;weJJ0ky+=K z8sefVaBl7U2TTJ7E~P7je2EN zqW*AP>_$n+`8UTK6uSS`vlqUHBgEm%Cn%=3b9PW@mQ!Cmt@ZtLH(Gqj_+l~;@~y8j zRN4&p47R(|7PbQ>li)qwFzzeK~R< zd{>QWO<8;kqS#5CQgTzVtJL33iGUdp5Z{f;A_+s_g$g0;9WhzU`CzJ5fn_TH5R`_N zimHKyTvqy#6d&X;X;BH5;J_Y_6gyb%{Vt$63HpNr6_PY{brFOe_nXfRLG_&LdsK9N zWjiJPJ1_^ZFDyP6Z**4%FtG7ASi+YMUFodSEq+bZAv(2I;3 zfG}PeSPZY@(tHsF&@4=-$ z6qH?hk=u)Qn@x5s!L&p-1^!SP^k2V6f4}@1zJzKL!rYBVB+b{6(Fv#e^Nq#z97)w+ zZ1(=>20htnUmD{e25Ew=!S0c7xxqGH=bAw?(&05W%DYT+1fHoxWj4~+07uf$d4^;V#=J; z;mP{cA}UeW7(}+<>2|>UN`B}W`vuJh&P@u@8I|H2Hhm)yxu3SPZ26^awM<3Gp|VjC z-DfyhqEln{b|RIH>YeVlkHxZ;1a&jhjcP7gzm#fahQ3mta{l3ETh8iPyfBlJn6Y`o z_+v4^--+ZD%W+tRMD+WhnqY4i4y`fOrfZodB2G5vq;)CqKW0mND2L;Y!=vEj1G^$~ zY&xZSA?6d*#dBNGqkER9{FznQ&Fv>ucWIUcygvDFVP{7b!sN5PMX*IlJzIyqnp<9q z;^#%-1k+C^BZO46xq;=5pwMX~DSSGea6?p%G5)5d$#);|yY|bK)_ofKkw^A5B?%8S zl_DLD-Qoi8hwcalM}2J`aKBSjcsKEWaqTL0GLsBL7wdUB;`O)BU3lFWV5r#MJQJnI z`I+TCS#Sf-ez#Pp)Rj0g>bA!6q?dkRo?40oG!`T9TayBkGimYPt4^yz8nF;oO}~32%VjV z;Ob)wg`)_6viw;KU)5Q`t3|@O2r%i9s-Cu`eb3e#3g%I&pC>o^Ha#pQsYm5OPy~y6 zmzc(*;?oUD+)_|T5}eCjBS+}=3vQ0Dccl!Up&ej*l|3X>wjs9@J@h1qRB~~j+l4m{Schr zn1rv7zoh`27VT^xvEb5RiOrpROK%!2#Ckl9`I`Yr(`6ENe*%2cSR$pg2-CN92`tF$ zDd*NqFg|`#xcEj%ZdprtY3A%V;eSp-V)$PkiZ6fjKaC{(mXkLSpw-HNPc1&0_v3iZ ztU%WT6E=8vVJ5;eORMWs_jsKj4g}?;({hmTdd)h;iqJod#_3{tU}Lfrj|GaDyS!P3;-^~2oq-O2bTnfLF5%m*{028zkk z58u(Qa|^z^+usbpB0>9UDa1Q#$>5}X%@MG=DnPD4=E9B|@R*Znzm6z!E6loy+rHm) z@m9IyPyp()vED5EWgj#fY-945g)b;nCvq-ueotdo$%FRz?C*O;jNDvqV0Htwm9v%o zodrWJArpHBG?nu(T%GVvu|Arz=nF{9!P_@YJM0YMWL2C|vlv#$T+d}B{hC6ZEt`Hf zxUKFk9^5*>)=s!fu|kUJ&sygYH>qb!D$&yO@h3{Ajek6v(1_7CWRLU>gTj#H#N%8ey{YMCL_Smd0r6qs z@^Z^rwgoN$%P;k0O%pr0^qh_P<$=EQ2z>a=R`Tg7n~nH+uvu(f0>~QM4Kqb`K_9fM z9Xi@A?P5AdcVdn_Wky``OWE=T9fWaaV+O`sTJvBE<5}UpULsrSP_IjT$5-v$<15ES zJh<)OH2!ARi`}pOVWK0m&z$)2RuY|0W?$s9aZh+e5Gvc}tBjb{DGEn#u5;XDM&xoTxc=d@-Om_KpUf$@Y}{si=0Ft zh9o8?x?fZIDOaxiG+FCvc2<65P#n(wtgm~i)_fwh63$k|LQ~S!_JB$pXfyi$d$Rdq zT~x=eIf>ygB&X(d7Z01f@ct<5luSYIED0*MER0_1*2L#`l_IlYNKVPW_x?oE4SQ^3 z@?B40L!k^qN?nD*^L2$Kk|ff6Q=^&x8ie)$x8(U`9z(yy=;xhCM6{>V+@9C85b8)G z@R>d~6pSt&Zu07T5*^`cj-%Evg8*&#Y9rcNPy9GIWccqWVjjUF1(dCB32-Us%BpAT zPcaZe^_>pB5{@COA{Oo%oMFFWcir7@XU7oJO-SUtblpG2_R!45%Sxf){<12(mW9vY z!HCZ|*$Xk8`$R%ph!mA#%-DQNAW+K^l3RAy6(nEbXHG+OzI=k*k1lBS0GH|_epWe#Mz zTJKqMzj-dGU0$~&KNn1@)E+nVFqV(Ez%%*%2RF#8(`#eO*!w&eijd-dQV{u?3o${D zl{}O?DwdNqW^e;TaSkk|0Y)n-h+}qPp&B+&R|j=4<6Q?)kX8j`7cw6*#{6GY!+D!q zf3NAUeHjo`AQ|FvDqig0?=py=lQp_IfT=>!sm0fhL2%IL5s!w>w(-~X#~8#lmzXLX z!BKqPCiX53+O<%3&E`RD_;|%)FLOqU#?Kg!RLPJHm0+>SeuBDJQN}ZON*wmP+&l@+ zGEEySo}V4V{JYQgshF?%{34m+#D+Zm2UYi_Am=^KS*r?SpOYJvS*9^#cPy#i*WU3~y@xQxMg7uMY z3l3!Tv+qQt_gFb83kGdQ1`DlRML4EqKPNTo2EI+zuKkc!=p2`|ERsy5BgU?wilmuR zkW*lG7}SBZS%u>y^3|VL@=mdzo%art4XM2v6I?&ex%YgzhkM@lFL>vdo@YI4?=@XrT~pnw zY8MjV87H%#NyCj@W|4^7DfF-*VMGs^e>T5{#}D=BfRmfiCjz3q;r7jLZA%lHap{sfNGES%~`fJ zE5(ykJ%(3A%S;}xV<~iI-Pj)YlQ-}U`Z$xQ?+s*oUq~d(c2AuTJh&Uj=bc;{cd>Ql z5Th!3Mop(-(bp|XXvF(!w>3^hab}yW%1W~@HpE*#MhEy{Wk_}uFk{lZRDz}|f@qCg zMjYp-?EYl+b&zJNEm@x|0*bbdUzSJJ*H~4lV9qO0iqth2UN59ux5d_#z6+Jo?KUki ziaDwP&>Q${pcYAs$j4%jT4H`5PJk6;bW%)OQ(X)Bm& zu4##IIz&x3ERPvrgW^nBs){bZO5?;yjOB(L(3+gxB}p1nr;NsxE$fk&U9TeH4M8p< zZ;YCkSXCBmA{jjac9Nu~%GW~Vn$}~9|Fd8v92-DZ`AwBOvx~Pdw zo&0Q{j$r_*IgiEaE9Yexfg2yi2{D$>VWybbL(NlT9ldMR2(CyJ@!fOLpa{#m)Mb_h z=%6GpDdQ*hbZL`(sq3r9-P*fe>aRYB>Rif4^I112IQbY zxpW!V*h^WvRn{s-M$wj>9su{=z+15y=ga!!CjugnncVd57kU>8kj3kG{~hjxD1HEK zT)HQxWg`wLQ`E=@Nmh>Cf$n(Evhq=7Pk0|bQB1H(&eqk7M4z)NEL*k_-}Wg~c-iWH zL2L)dCgEL5y|W8MY&#EtJhZ?iGPLhkEXm%fX~KdYxbqY)Qi|Bs7TE0t7;_>k262$U z7=~XBn3SK{E4V`@CCvDf6lHT-B~CDQ0;lVib8MUzR;ya*?^e$gL}fHKl^Yqf8#Pj2 z;L$tjrrAMd4zVDIYyz0^$xD2)y{sN%dW+?LMj_&q<{U>=IOQQ{F9IrArvzOnPzcPc z3Z5zqtua2>K^Z&DENsOFLZuMml!uyp+XYK=m<$b5>s1+LN)8|QM$HnC@ISi5Ln^K_ zc_&Z3nX47JqE?>dPx?creTWJi-=_%~(Y}kxFyo|LM6A?+vAml*w$D_KLwI!&_J+oq z05TLNFqoSTlUDgiN6{c1=Z8SHGUq5Is@XMYKG9^?Kp2H=N@iya}P7F@XUDk+dn7J7XPl&0{&JQ&rhbV*iIKb8aI z#R(8LR5239aae`#zekHqsAS*)x-_KGi;XEpvL@>-sB~-!9z$$KtkF5t?A>2gI;)i7 z)F8=wh4B`wWWWFO6IZH>T$2`e*^5-*1brAJpHbk9K{-qmCa zkaPIT&S~VhoBTPW0#!kckKHgAO0%Yz);K`})_n`9TfNp2TBh|2RdV~)>ALLW!LgZ# z(04XVR_^ip0D=psrKNPu5jMmgc2lTLlpkLaOJL!D*76Gh1l|Kd!x?YQgoAn{#7Xsa zr2+lLODlr7I>OTEyeQOF=EcGN;XeH`Uq22j1S99}J)%*K8nfj=z)NG-RZrp#`0sXvh{uRz=g2)eck~FB*fU-ZZ=X2(Szy>`Ls1!Ew`een96fX`@W9fR z3W*+|Fe1m^HZu8powISWZ}q(7W|eMLXvh@Nai z#!w+By$vu@f3SbK5bH4kQo$ zdl@`_lg`=jOOqTO7abrf;&|epW!Tn0kvy|Ux)q>Xy2tFS!SszG`Z*98RBtcg!B#)E7ea5{mu<2!DRRf~ zUbC77M4kUL*lM;v?l!XFVkGthO!$W)3uO*Sw!A!4atq_rVK4MmgpPC9Nflw<#Ua{o z|5X9N^UTlV=(V9~>SlLi(Jt2I6*Ai^?cL%>>4!`eg-E|NH-ap&f`hz*fH{x2-ihod zAcf|X8Wr|?vpPE_d6>wxti4z_QsI()G*`Je41--ZfR?3ZD_vBpD-_7VrXUCnCvq=x zy*X}hc^#Tzzhzl(LAzfD4WWh|7L0CsbQAH=mhTMOm~yqFt%O+#1O(z>aHwBm5KUm7 zNC7PEi=0qmuB3^peRqro5vpJ&h=2cJ2y;s8L3}|Sa86}7yS}NeRc*-ne1JPD%yJRc zQp~{?2%m6BbFBn1Bq*w+k+y7dYF~%#k9y zesM8t1jKGM^f)q2kP92TWvAQQ%-xfrmTLn}+ZKkBWPJ6T>5zsrPe%Bv&zx>UY${j$ z`ck(4(4$=%(vGWTT#f;1bHH!>)_A@cq>{LDE)BEF;3H=5vEvH`Y}xFV2~hi{Fx;RG zx00Ge0}q4n$K9qCuxCRG+0BhZ!}RddE;h?#p|qPYKb_P6^eka5O0hezQ4Rpcm{i)A z7?K{3gLP{d8Jr>pkUUu+4`B3P{e8O!V#%o1J$#*1$nJ z4)WSZD*AIAy#p?&qVND#Ez^ZB7hIH``3K`;WA~1karP)$Xmg;OXl27cRgj{&jhD9b zn{=WDHp_u9?9c@7GbVs!#B#MuL$s80plk6sAB{vfVvTpq&XgMNl60Rxd+ zm)jgE%PI`NLraI`l;!Z!imF^!Sv@zoN)AvXI7{n;QyrDj*-EpDD0Nu&eqw+sZt-dA z8#-h2iBbd)#CG4|Qs)C)1GkKRl+{>&;r3|v|GKY}CQ-s|E}2FAM=2Hm+gd5?A8_t~ zhI*7mA4@%KRtOj1>NWL4;1ZD;J-x5VWa|FQPF1S;6W`h5-aTJ7()5{(Z^P7~wNJZx z+Ua3LHy@*k1a_c#?zbD#y7XTe@Zn{ExwV-@d=969U3 zk|hK-E(j_8V6x}rLM)@->fkE{#wlD!>cf%Qkux);fdjc z><&yb;Nsk`{eF%a6zQq6GNu+o_4%1?fUB)7qX!@-`@)|wd_ALPz>t68)E0DJ6MCOO zb$$J8`C5$5Jhd>NKHbs+y?3!;>FoCLWzpY>&&#+XFpVpH*X`=aqr0-RsX*r?)6nE} zlP>bkhPmZVQmeHBhUN&@_<1a!28*!@DBo5ar+afihD3_Q0mK#VFU#~crYI?VNQgaC z2(RRJK5B>!jg8;1U)!`~&Nyz1#ggT5CQgEddXkyaIoM>?O=vqH=cLWspeTLL1WDC{k(({yx2BVdpd@V%gy?BYj!-PyPzZZR zRG{9Mht1G=+VOy4)H@gCpwloewIUzZ4WCkrXXM}dUHiQv*q018aWXULQ^?ql%BGYM zwbtIs9zf^Grk6OU2GBM5c`5T52&TJi-6DVi0i%-Kr~w;szBb$1>^L+dE5tCkSPWy` zqa?{MvSVflSMwy&`@$z|8+YY0n~ORigGf-a^S&J~$SzV+t80(tg-1} z>DaOHMMy@Pe$9`OYIrY}Rh_$aa3{au11|6sCw746crH$)%l_0+NLlC1Roez!JOqp0 zCZ&%9(cb${_rC^C`JWIJ#;!~p>Q9jSE3)3Y0H=1A`&bZ}qPwq&|rjuOtjwa@%V)Pi1`*K||dblhx~;2N%!<_YQwcyYZK zv5@Dc6uP|{eaU`8OGYD8`R+s^6b7*Eu~#8qM@~^jU!iy7^L8(thWOX&w9&GNJ*>FwPBtTXQ-_*CT=jFy_#ID^n_%K0@=-hFgI+Qo#d_z;uN>q^8 zpEunLXXccMrziN0w^^JzNetHbabJSFRrbLgyKkT5L+d*Hdcrs~A=Y9A?~Y@Lix%Ww zwpnkp*brr~Nbh{x+N~rU33UG*C_1;a0|}fq_R-0;JJ+%>tZ5liDh4=I&o?>fz{GiD z8feI2`uMwCb(l$eU>;oca0#>v&V0%Ts2^M~${t+W9lX})xI=ldgiw!Pe62!RS zYviv2%sXDMU%PL>&0~7L5f6srLcyl_$@Sa0D=1(FBNF8R8~yf3wLL;Yeu`x8y3gMh zy=z72wUwCq#N#l3g_mV9Id8cg2w_H2DRu0nnSa?#uVpYMr}vUc%#kgYx~$~ygZh!k zR7Vme{i^J?G%C3+cu>nsMIjrX;yhV5*pAzm?Fb{RNM_ zyx&A41jjAU5v1)|g0k_Lo z94M?S>`+Os>u{n_=So$~^LwLMz*ImIEx)MhIc?M^4WpCCZa%U8ntp=X6ZcEpH_%TY zXM-SEoNmS09mVH`QVxrMmTbQe_O{lzOMqQ|;m6f%^oq^5YoSz2DwjJMt`nBBzkf8> zYjj_{TAJk_JvdU)5wS~t&~?iIAcSS{u*T&z>e%u>{-MJA-v#G9*342}uRDUTT^;2A zDmec`u=L*=l>bsN{jEg#r+#TbbXQn66NbnQ__L6!J8&)#K}d;%tVv}T+~9r@YAGq^ z2II-SmcY1kd)sben?3D;w;109DfazLGg#o3A+}l7nfoGrhd?#w!7>IcJ#UQuG(&qT zxU8&X=s=7*CVX|E0>u+fk5}(PbrfuI4FAr8M5r6n&|NtGWLb%Y^@T2U9iwdh>H95D zHGghCMUCg9C{JQuo4k&3@r#K739cAD{#(P;4*RcO& z0bV_S)$gyx_>-@vPyH_o*uB=;I~hAD89O=sQFPDvX8nP|z})6Yb0usVfbmRqTr=xO z22-I^ei%vfY;;V!q4F-*z~$YNBprriz6Pufx`g%$+%xY0zn|P%2IB_!(U;>u4#kNS z3hPBG(y0<{9`rbA({ZEmyKy;(!f9c2sGqs;z!Szvf#?HnLK$8WOeE(sI1!85q8Gda zr^fGv*BonPH7L60p2wHiW?|30K!r$@Zox}ofvycG=u1{l1LPndhHGIPiN zog17ACNBn9c$AN*y$=iADP595cd=a*Ix0DtVs^fGw009`rD&WXO7fWU_&uM4 zEFn+hH;IuGAmBg)JC9JzzKfZDug{$ie=?UG&$LWAIY``p;`qStK6a3-eWJbM%pJtn zrBy%gwnO33IYa;8mNs6YSSGmkQCRPt_sLP9**C>zo%b}uSMdWh5NIfCM<*eQ(Ngh& z>X(~rl>AxGW}=6?(O}W2`HAoqIV82JK_w`+e4k>{1o&l7E3{jC8IH@=SJ)cOCq_Rn zCe+I9R-I*{>x9R+lqe>5w%ufTXL5{d?NsRgV_c~F6=r<(x+C-&7hWZ5L5yq-WsIHl zjr5)L8Kw0NjIAVWOl<$??NW{zv3MP9AmZI;#yFywq0Zg_zJfWW(gBE8ct1(5K0T>; zf11!@;gSUJ$my~(B8D&qe!bzS31iDM1z=vdcltEQ!%ZupBu`l?C|eaHN3&HkPPNAb zSwO1g*;Od0m=fhciofA$P?n6COKW{;GC|2>B@^|YXBUy_duWu1cLz~`8o(Hn_5yp! zwIzme9=;&+i@^3|hB;$?{-T4dfTbJWfD(279e+duk~}h}IoVpGrN=|UPwUwm7)EGo z6q|U(c^T6I^NEB!a1yW94X8m)S*`ccp53QqPeaz|(urF%#F4^`h31a1LTaqQtwz@}F5hBcl)qA)>|C zCJRHn7!l%_zYy&40Q1Y11s*b@nw1*XgdC+$t=XWK8X_0#=FgrXI?6M3?p1muKR0gp zgh|^CBQnh=ll4q@6IYnbl|M!{VurK`+0#jySmE+AduK8C?83?&ZbMUqbRJF$JkPkv zoD$DTDO1?T1qB2cwNnL*qow|Abph+x;b~hJAYyx#OIKn}Ly-gN*j`AYX@B*w|Nj5h zmw-hHeceHQ?Y%_#Pv6tGv->~Sd-b`0f70UwY?qi20#Cv3i4j)txmM&6e9H{P)h?^_ zLE{=sWeN>*YA8a=Vvpvd8@|shd^w2Ra(BHKmRKR+*1e4R-X|Zror?hpfp3X@o#6Uo zMcWG#G7h%>`~!e8%4b7V*F!Ol0Nu#J2T}~8Ojs&jRWa8(howo6t7@uu8Fz#I)YuBo zbe(-M2?=bdw5B!Djs%8nCTSmorm$B7JwKnKB@&0Qqmw{E$ ztyk4rLV9@EeuJKFODLVBZxWn?fL^kKg%1m!B!0nunxU8Fs3{ek(ce?c<5leeq2 zTJEhi3RJq}B^3{PNHx^bOhmn$xW>o6#|V0moH(oGAVaR3amyPKMlo>g-F{L%F#UA` z``tnCXA5?!X`bE@uJb{rb6L(MUt4a+aSojnxqE7N!WN_M*g&PLo}> z|244UE%@(p|G%LiAP8`Og8v8c|F=AEHQ;|UeMI>GKjOa>;oq{n)e8B|qD}QD%Uk7; zw*+t7w|^7B)Bj2EyP5kf^li)PZ>S>Ezo2g$Sl=?deFpi>(4+I#2LJd(@|N&zO8=X% z?={OMdj0=I_bEZxRp?Xrn)A{+>F#h5tR?|0mqv e^)a4T9!>to|SL+^J{) literal 0 HcmV?d00001 diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 000000000..b2f52a2ba --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,21 @@ +Copyright (c) Microsoft Corporation. + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 000000000..82d421e62 --- /dev/null +++ b/README.md @@ -0,0 +1,165 @@ +# Loopy + +## Setup + +### Clone the repository + +```bash +git clone --recursive git@github.com:microsoft/loop-invariant-gen-experiments +``` + +### Without Docker + +#### Install Frama-C + +```bash +# Install opam (OCaml package manager) +sudo apt install opam # or dnf, pacman, etc. + +# Or you can download an opam binary, put it in the PATH +# and run it directly (no sudo required) + +# Initialize opam (install an OCaml compiler) +opam init --compiler 4.14.1 # may take a while +eval $(opam env) + +# Install Frama-C (including dependencies) +opam install frama-c +``` + +#### Install CVC4 + +```bash +# ARCH is one of {x86_64-linux, win64} +wget http://cvc4.cs.stanford.edu/downloads/builds/{ARCH}-opt/cvc4-1.6-{ARCH}-opt +mv cvc4-1.6-{ARCH}-opt cvc4 +# Add cvc4 to your PATH +``` + +#### Install Alt-Ergo + +```bash +opam install alt-ergo +``` + +#### Install Z3 + +```bash +wget wget https://github.com/Z3Prover/z3/releases/download/z3-4.12.2/z3-4.12.2-x64-glibc-2.31.zip +unzip z3-4.12.2-x64-glibc-2.31.zip +ln -s z3-4.12.2-x64-glibc-2.31/bin/z3 +``` + +#### Configure Why3 + +```bash +rm -f ~/.why3.conf +why3 config detect +``` + +#### Install python dependencies + +```bash +# Ensure python version >= 3.11 +# From src/ +pip install -r requirements.txt +``` + +#### Build the tree-sitter-c library + +```bash +cd src/ +python3 build_parser.py +``` + +Depending on how you access the LLM, you can follow the steps in the LLM access section [below](#llm-access). + +### With Docker + +You can use `Dockerfile` in `src` to build a docker image and run it. + +You can build the docker image by running the following commands starting **from the root of this repository**: +(If you get a permission error, you may need to run the following command with `sudo`) + +```bash +cd src/ +docker build -t loopy --build-arg USER_ID=$(id -u) --build-arg GROUP_ID=$(id -g) . +``` + +Once the image is built, you can run it using the following command **from the root of this repository**: +(If you get a permission error, you may need to run the following command with `sudo`) + +```bash +docker run -it --rm \ + --mount type=bind,source="$(pwd)"/data,target=/home/user/data/ \ + --mount type=bind,source="$(pwd)"/config,target=/home/user/config/ \ + --mount type=bind,source="$(pwd)"/experiments,target=/home/user/experiments/ \ + --mount type=bind,source="$(pwd)"/templates,target=/home/user/templates/ \ + --mount type=bind,source="$(pwd)"/logs,target=/home/user/logs/ \ + --user "$(id -u):$(id -g)" \ + -e OPENAI_API_KEY= \ + -e OPENAI_API_BASE= \ + -e OPENAI_API_VERSION= \ + loopy /bin/bash +# If you don't need to interact with the Azure OpenAI API, skip the -e CLI options +``` + +### LLM access + +If you are using an Azure OpenAI endpoint, you need to set the following environment variables before running the toolchain: + +```bash +export OPENAI_API_KEY= +export OPENAI_API_BASE= +export OPENAI_API_VERSION= +``` + +You should now be able to run the toolchain using the following command: + +```bash +python3 main.py --config-file --max-benchmarks [options] +``` + +If you are using a different endpoint, you will have to implement a wrapper class that inherits `Provider` in `llm_api_client.py`. +See the `AzureOpenAI` class for an example. + +If you are hosting a model locally, you can use a local model inference/serving engine and make HTTP requests to it. You will have to set the `OPENAI_API_BASE` environment variable to the appropriate URL. + +## Usage + +You can run the toolchain using the following command: + +```bash +python3 main.py --config-file --max-benchmarks [options] +``` + +Use `python3 main.py --help` to see the list of available options. + +The YAML configuration file contains the following fields: + +```yaml +checker: # only frama-c is supported for now +checker_timeout: # timeout argument for the checker, in seconds +model: # the LLM to use (gpt-4, gpt-4-32k, gpt-3.5-turbo, etc.) +benchmarks: # this file must contain the list of benchmarks to run, one file path per line +benchmark_features: # this string should indicate the features of the benchmarks under consideration. + # For e.g., "one_loop_one_method" describes benchmarks with a single loop and a single method. + # Other possible values are "multiple_methods_no_loops", "arrays_pointers_multiple_loops", "termination_one_loop_one_method". + # (If "termination" is specified, variants will be inferred. If "multiple_methods" is specified, pre-post conditions will be inferred). +debug: # if true, the toolchain will print debug information +``` + +See [config/sample_config.yaml](config/sample_config.yaml) for an example of a configuration file. + +## Dataset + +The dataset of pre-processed benchmarks used in our experiments is available [here](dataset.zip). +Pre-processing involves removing comments, and converting the assertions to ACSL assertions (for Frama-C). +The ZIP file contains the following subdirectories with pre-processed benchmarks: + +- `loop_invariants`: Contains numerical benchmarks with one loop and one method. Loop invariants are to be inferred for the loop in each benchmark to prove the assertion(s) in the benchmark. +- `arrays`: Contains benchmarks with arrays, one method and at least one loop. Loop invariants are to be inferred for the loop(s) in each benchmark to prove the assertion(s) in the benchmark. +- `termination`: Contains numerical benchmarks with one loop, one method. A ranking function (and supporting loop invariants if necessary) are to be inferred to prove termination of the loop. +- `recursive_functions`: Contains benchmarks with recursive functions, for which pre-post conditions are to be inferred, to prove the assertion(s) in each benchmark. + +The loop invariants generated by Loopy can be found in the excel sheet [here](GeneratedInvariants.xlsx). This sheet includes the benchmarks that were successfully verified by Loopy. diff --git a/config/README.md b/config/README.md new file mode 100644 index 000000000..8d92c132e --- /dev/null +++ b/config/README.md @@ -0,0 +1,3 @@ +# Configurations + +This folder contains the configuration files to run the experiments. \ No newline at end of file diff --git a/config/arrays.yaml b/config/arrays.yaml new file mode 100644 index 000000000..61f5b55ab --- /dev/null +++ b/config/arrays.yaml @@ -0,0 +1,5 @@ +checker: frama-c +model: gpt-4 +benchmarks: experiments/arrays.txt +benchmark_features: arrays_pointers_multiple_loops +debug: True diff --git a/config/loop_invariants.yaml b/config/loop_invariants.yaml new file mode 100644 index 000000000..79db563cd --- /dev/null +++ b/config/loop_invariants.yaml @@ -0,0 +1,5 @@ +checker: frama-c +model: gpt-4-32k +benchmarks: experiments/loop_invariants.txt +benchmark_features: one_loop_one_method +debug: True \ No newline at end of file diff --git a/config/recursive_functions.yaml b/config/recursive_functions.yaml new file mode 100644 index 000000000..a56eaa9ec --- /dev/null +++ b/config/recursive_functions.yaml @@ -0,0 +1,5 @@ +checker: frama-c +model: gpt-4 +benchmarks: experiments/recursive_functions.txt +benchmark_features: multiple_methods_no_loops +debug: True diff --git a/config/sample_config.yaml b/config/sample_config.yaml new file mode 100644 index 000000000..0b11e7dea --- /dev/null +++ b/config/sample_config.yaml @@ -0,0 +1,6 @@ +checker: frama-c # only frama-c is supported for now, there is a boogie PoC +checker_timeout: 3 # in seconds +model: gpt-4-32k # gpt-4, gpt-3.5-turbo, codellama-34b-python +benchmarks: experiments/loop_invariants.txt # list of benchmark files +benchmark_features: one_loop_one_method # features of the benchmark. Possible values: {one_loop_one_method, multiple_methods_no_loops, arrays_pointers_multiple_loops, termination_one_loop_one_method} +debug: True # if True, prints debug information diff --git a/config/termination.yaml b/config/termination.yaml new file mode 100644 index 000000000..daecb2e66 --- /dev/null +++ b/config/termination.yaml @@ -0,0 +1,5 @@ +checker: frama-c +model: gpt-4-32k +benchmarks: experiments/termination.txt +benchmark_features: termination_one_loop_one_method +debug: True \ No newline at end of file diff --git a/data/benchmark_links.txt b/data/benchmark_links.txt new file mode 100644 index 000000000..8a0b2c2d9 --- /dev/null +++ b/data/benchmark_links.txt @@ -0,0 +1,23 @@ +https://github.com/SaswatPadhi/LoopInvGen/tree/master/benchmarks + - accelerating_invariant_generation + +https://gitlab.com/sosy-lab/benchmarking/sv-benchmarks/-/tree/svcomp23/c/ + - sv-benchmarks/ + +https://www.cs.utexas.edu/~tdillig/array.tar.gz + - dillig + +https://github.com/FSE2022benchmarks/termination + - non_termination + +https://github.com/GaloisInc/LinearArbitrary-SeaHorn/tree/master/test/c + - LinearArbitrary-SeaHorn + +https://github.com/PL-ML/code2inv/tree/master/benchmarks/C_instances/c + - code2inv + +https://figshare.com/articles/software/Diffy_Inductive_Reasoning_of_Array_Programs_using_Difference_Invariants/14509467 + - diffy_cav21_bench + +https://github.com/TermCOMP/TPDB/tree/master + - tpdb \ No newline at end of file diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-CPA-example_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-CPA-example_VeriMAP_true.c new file mode 100644 index 000000000..cd614bfe2 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-CPA-example_VeriMAP_true.c @@ -0,0 +1,28 @@ +int main() { + int i = 0; + int a = 0; + + while (1) { + if (i == 20) { + goto LOOPEND; + } else { + i++; + a++; + } + + if (i != a) { + goto ERROR; + } + } + + LOOPEND: + + if (a != 20) { + goto ERROR; + } + + return (0); + ERROR: __VERIFIER_error(); + return (-1); +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-disj_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-disj_VeriMAP_true.c new file mode 100644 index 000000000..89f3b69d6 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-disj_VeriMAP_true.c @@ -0,0 +1,23 @@ +void main() { + int x, y; + + x = 0; + y = 50; + + while( x < 100 ) { + if( x < 50 ) { + x = x+1; + } else { + x = x+1; + y = y+1; + } + } + + if( y > 100 || y < 100 ) + goto ERROR; + + return; + +ERROR: __VERIFIER_error(); + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-forward_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-forward_VeriMAP_true.c new file mode 100644 index 000000000..3a64ba421 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-forward_VeriMAP_true.c @@ -0,0 +1,30 @@ +void __VERIFIER_assume(int cond) {if (!cond) {LOOP: goto LOOP;}}; +int __VERIFIER_nondet_int(){int x; return x;} +void main(){ + + int i, n, a, b; + n = __VERIFIER_nondet_int(); + __VERIFIER_assume( n>= 0 ); + + i = 0; + a = 0; + b = 0; + + while( i < n ){ + if(__VERIFIER_nondet_int()) { + a = a+1; + b = b+2; + } else { + a = a+2; + b = b+1; + } + i = i+1; + } + + if ( a+b != 3*n) + goto ERROR; + +return; + +ERROR:__VERIFIER_error(); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-interpolants_needed-pepm-proc.c_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-interpolants_needed-pepm-proc.c_VeriMAP_true.c new file mode 100644 index 000000000..c6843636a --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-interpolants_needed-pepm-proc.c_VeriMAP_true.c @@ -0,0 +1,25 @@ +int __VERIFIER_nondet_int(){int x; return x;} +int main(){ + + int x=0; + int y=0; + + while (__VERIFIER_nondet_int()) { + if (__VERIFIER_nondet_int()) { + x = x+1; + y = y+2; + } else if (__VERIFIER_nondet_int()) { + if (x >= 4) { + x = x+1; + y = y+3; + } + } + } + + if(3*x < y) + goto ERROR; + + return 0; +ERROR: __VERIFIER_error(); + return -1; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-pepm-scp-example1.c_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-pepm-scp-example1.c_VeriMAP_true.c new file mode 100644 index 000000000..c1b02ef23 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-pepm-scp-example1.c_VeriMAP_true.c @@ -0,0 +1,26 @@ +void __VERIFIER_assume(int cond) {if (!cond) {LOOP: goto LOOP;}}; +int main(){ + + int i=0; + int k=0; + int n = __VERIFIER_nondet_int(); + + __VERIFIER_assume(n>=0); + + while (i < n) { + i = i + 1; + k = k + 2; + } + + while (i > 0) { + i = i - 1; + k = k - 1; + } + + if(k < n) + goto ERROR; + + return 0; +ERROR: __VERIFIER_error(); + return -1; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-pepm-scp-example2.c_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-pepm-scp-example2.c_VeriMAP_true.c new file mode 100644 index 000000000..03c644238 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-pepm-scp-example2.c_VeriMAP_true.c @@ -0,0 +1,22 @@ +int x = 0; +int y = 0; +int n; +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } + + +void incr(int z) +{ + y = y + z; +} + +void main() { + + while (x < n) { + x = x + 1; + incr(x); + } + + __VERIFIER_assert( x<=y ); + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-re1-LOPSTR-pepm-proc.c_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-re1-LOPSTR-pepm-proc.c_VeriMAP_true.c new file mode 100644 index 000000000..0ac522839 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-re1-LOPSTR-pepm-proc.c_VeriMAP_true.c @@ -0,0 +1,26 @@ +void __VERIFIER_assume(int cond) {if (!cond) {LOOP: goto LOOP;}}; +int main(){ + + int x=0; + int y=0; + int n; + + __VERIFIER_assume(n>=0); + + while (x < n) { + x = x + 1; + y = y + 1; + } + + while (x > 0) { + x = x - 1; + y = y - 1; + } + + if(y > x) + goto ERROR; + + return 0; +ERROR: __VERIFIER_error(); + return -1; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-selection_sort-pepm-proc.c_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-selection_sort-pepm-proc.c_VeriMAP_true.c new file mode 100644 index 000000000..6ab19e000 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-selection_sort-pepm-proc.c_VeriMAP_true.c @@ -0,0 +1,43 @@ +void __VERIFIER_assume(int cond) {if (!cond) {LOOP: goto LOOP;}}; +int __VERIFIER_nondet_int() {int i; return i;} +int main(){ + +int n = __VERIFIER_nondet_int(); +int i=0; +int j=0; +int min=0; + + __VERIFIER_assume(n>=0); + + while (i < n-1) { + + min = i; + + j=i+1; + + while (j < n) { +//entry_a1: + if( j >= n || -1 >= j || min >= n || -1 >= min ) + goto ERROR; + + if (__VERIFIER_nondet_int()) { + min = j; + } + + if ( i != min) { +// entry_a2: + if( i >= n || -1 >= i || min >= n || -1 >= min ) + goto ERROR; + } + + j=j+1; + + } + + i=i+1; + } + + return 0; +ERROR: __VERIFIER_error(); + return -1; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-singleloop2-pepm-proc.c_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-singleloop2-pepm-proc.c_VeriMAP_true.c new file mode 100644 index 000000000..293f4a7d7 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-singleloop2-pepm-proc.c_VeriMAP_true.c @@ -0,0 +1,24 @@ +void __VERIFIER_assume(int cond) {if (!cond) {LOOP: goto LOOP;}}; +int main() { +int x=0; +int y=0; +int n = __VERIFIER_nondet_int(); + + __VERIFIER_assume(n>=1); + + while(x < 2*n){ + x = x + 1; + + if ( x > n ) + y = y - 1; + else + y = y + 2; + } + + if(x < y) + goto ERROR; + + return 0; +ERROR: __VERIFIER_error(); + return -1; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-paper-prog_d-pepm-proc.c_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-paper-prog_d-pepm-proc.c_VeriMAP_true.c new file mode 100644 index 000000000..4909a40e5 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-paper-prog_d-pepm-proc.c_VeriMAP_true.c @@ -0,0 +1,21 @@ +void __VERIFIER_assume(int cond) {if (!cond) {LOOP: goto LOOP;}}; +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +int main(){ +int y = __VERIFIER_nondet_uint(); +int x=0; + + __VERIFIER_assume(y>=0); + + while ( x < 10000) { + y = y + 1; + x = x + 1; + } + + if( y + x < 10000) + goto ERROR; + + return 0; +ERROR: __VERIFIER_error(); + return -1; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-test1-unsafe_VeriMAP_false.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-test1-unsafe_VeriMAP_false.c new file mode 100644 index 000000000..4016fcbc7 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-test1-unsafe_VeriMAP_false.c @@ -0,0 +1,20 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +int unknown(){int x; return x;} +# 1 "MAP/UNSAFE-exbench/TRACER-test1-unsafe.tmp.c" +# 1 "" +# 1 "MAP/UNSAFE-exbench/TRACER-test1-unsafe.tmp.c" +# 20 "MAP/UNSAFE-exbench/TRACER-test1-unsafe.tmp.c" +int main(){ + int x = 0; + + if (unknown()) x = x+1; + __VERIFIER_assert(!( x > 1 )); + + if (unknown()) x = x+2; + __VERIFIER_assert(!( x > 3 )); + + if (unknown()) x = x+4; + __VERIFIER_assert(!( x >= 7 )); + return x; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-test1_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-test1_VeriMAP_true.c new file mode 100644 index 000000000..c391efabb --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-test1_VeriMAP_true.c @@ -0,0 +1,19 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +int unknown(){int x; return x;} +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-test1.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-test1.tmp.c" +# 20 "MAP/SAFE-exbench/TRACER-test1.tmp.c" +void main(){ + int x = 0; + + if (unknown()) x = x+1; + if (unknown()) x = x+2; + if (unknown()) x = x+4; + + __VERIFIER_assert(!( x > 7 )); + return; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-test3-unsafe_VeriMAP_false.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-test3-unsafe_VeriMAP_false.c new file mode 100644 index 000000000..214b57de4 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-test3-unsafe_VeriMAP_false.c @@ -0,0 +1,22 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +int unknown(){int x; return x;} +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/UNSAFE-exbench/TRACER-test3-unsafe.tmp.c" +# 1 "" +# 1 "MAP/UNSAFE-exbench/TRACER-test3-unsafe.tmp.c" +# 22 "MAP/UNSAFE-exbench/TRACER-test3-unsafe.tmp.c" + +void main(){ + int x=0; + int y=0; + + if (unknown()) + x = 5; + else + y = 10; + + __VERIFIER_assert(!( x==5 || y==10 )); + return; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-test3_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-test3_VeriMAP_true.c new file mode 100644 index 000000000..307320bf2 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-test3_VeriMAP_true.c @@ -0,0 +1,23 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +int unknown(){int x; return x;} +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-test3.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-test3.tmp.c" +# 22 "MAP/SAFE-exbench/TRACER-test3.tmp.c" + +void main(){ + int x=0; + int y=0; + + if (unknown()) + x = 5; + else + y = 10; + + __VERIFIER_assert(!( x!=5 && y!=10 )); + return; + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs12_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs12_VeriMAP_true.c new file mode 100644 index 000000000..37c778119 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs12_VeriMAP_true.c @@ -0,0 +1,23 @@ +void __VERIFIER_assume(int cond) {if (!cond) {LOOP: goto LOOP;}}; +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testabs12.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testabs12.tmp.c" +# 18 "MAP/SAFE-exbench/TRACER-testabs12.tmp.c" +main(){ + int i,count,n; + count = __VERIFIER_nondet_uint(); + __VERIFIER_assume( count >= 0 ); + i=0; + + + while (i < 100 ){ + count++; + i++; + } + + __VERIFIER_assert(!( (i > 100 ) || count < 0 )); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs13_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs13_VeriMAP_true.c new file mode 100644 index 000000000..7f9a793d0 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs13_VeriMAP_true.c @@ -0,0 +1,18 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testabs13.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testabs13.tmp.c" +# 28 "MAP/SAFE-exbench/TRACER-testabs13.tmp.c" +main(int n){ + int i; + + i=0; n=10; + + while (i < n){ i++; } + + __VERIFIER_assert(!( i>10 )); + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs14_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs14_VeriMAP_true.c new file mode 100644 index 000000000..b1295acc5 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs14_VeriMAP_true.c @@ -0,0 +1,23 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testabs14.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testabs14.tmp.c" +# 27 "MAP/SAFE-exbench/TRACER-testabs14.tmp.c" +main(int n){ + int i,j; + + i=0; j=0; n=10; + + while(j < n){ + j++; + } + while (i < n){ + i++; + } + + __VERIFIER_assert(!( i>10 || j>10 )); + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs15_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs15_VeriMAP_true.c new file mode 100644 index 000000000..508f86a3f --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs15_VeriMAP_true.c @@ -0,0 +1,30 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testabs15.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testabs15.tmp.c" +# 28 "MAP/SAFE-exbench/TRACER-testabs15.tmp.c" +main(int n){ + int i, a, b; + int TRACER_NONDET; + + if(n >=0){ + + i=0; a=0; b=0; + + while (i < n){ + if (TRACER_NONDET){ + a=a+1; + b=b+2; + } + else{ + a=a+2; + b=b+1; + } + i++; + } + __VERIFIER_assert(!( a+b != 3*n )); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs1_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs1_VeriMAP_true.c new file mode 100644 index 000000000..69946b66a --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs1_VeriMAP_true.c @@ -0,0 +1,27 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testabs1.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testabs1.tmp.c" +# 22 "MAP/SAFE-exbench/TRACER-testabs1.tmp.c" +//int error=0; + +void main(){ + int x,y,z; + + + if(z>0){ + x=4; + y=1; + } + else{ + x=100; + y=2; + } + + + __VERIFIER_assert(!( x<=0 )); + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs2_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs2_VeriMAP_true.c new file mode 100644 index 000000000..8e66a5c5e --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs2_VeriMAP_true.c @@ -0,0 +1,29 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testabs2.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testabs2.tmp.c" +# 21 "MAP/SAFE-exbench/TRACER-testabs2.tmp.c" +//int error=0; +void main(){ + int x,y,z; + + z=1; + x=4; + + + + if(z>0){ + x=4; + y=1; + } + else{ + x=100; + y=2; + } + + __VERIFIER_assert(!( x<=0 )); + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs3_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs3_VeriMAP_true.c new file mode 100644 index 000000000..1df676f53 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs3_VeriMAP_true.c @@ -0,0 +1,45 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testabs3.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testabs3.tmp.c" +# 28 "MAP/SAFE-exbench/TRACER-testabs3.tmp.c" +void main(){ + int sum; + int c1, c2, c3, c4, c5; + int d1, d2, d3, d4, d5; + int e1, e2, e3, e4, e5; + int f1, f2, f3, f4, f5; + + sum = 0; + + if (c1 == 0) sum=sum+1; else sum=sum+2; + if (c2 == 0) sum=sum+1; else sum=sum+2; + if (c3 == 0) sum=sum+1; else sum=sum+2; + if (c4 == 0) sum=sum+1; else sum=sum+2; + if (c5 == 0) sum=sum+1; else sum=sum+2; + + if (d1 == 0) sum=sum+1; else sum=sum+2; + if (d2 == 0) sum=sum+1; else sum=sum+2; + if (d3 == 0) sum=sum+1; else sum=sum+2; + if (d4 == 0) sum=sum+1; else sum=sum+2; + if (d5 == 0) sum=sum+1; else sum=sum+2; + + if (e1 == 0) sum=sum+1; else sum=sum+2; + if (e2 == 0) sum=sum+1; else sum=sum+2; + if (e3 == 0) sum=sum+1; else sum=sum+2; + if (e4 == 0) sum=sum+1; else sum=sum+2; + if (e5 == 0) sum=sum+1; else sum=sum+2; + + if (f1 == 0) sum=sum+1; else sum=sum+2; + if (f2 == 0) sum=sum+1; else sum=sum+2; + if (f3 == 0) sum=sum+1; else sum=sum+2; + if (f4 == 0) sum=sum+1; else sum=sum+2; + if (f5 == 0) sum=sum+1; else sum=sum+2; + + __VERIFIER_assert(!( sum > 40 )); + + return; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs6_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs6_VeriMAP_true.c new file mode 100644 index 000000000..a0728a425 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs6_VeriMAP_true.c @@ -0,0 +1,24 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testabs6.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testabs6.tmp.c" +# 20 "MAP/SAFE-exbench/TRACER-testabs6.tmp.c" +//int error=0; +void main(){ + int x,y,z; + + if(z>0){ + x=4; + y=1; + } + else{ + x=100; + y=2; + } +# 41 "MAP/SAFE-exbench/TRACER-testabs6.tmp.c" + __VERIFIER_assert(!( x<=0 )); + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs7_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs7_VeriMAP_true.c new file mode 100644 index 000000000..47cfbb5d3 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs7_VeriMAP_true.c @@ -0,0 +1,18 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testabs7.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testabs7.tmp.c" +# 31 "MAP/SAFE-exbench/TRACER-testabs7.tmp.c" +main(int n){ + int i; + + i=0;n=10; +# 43 "MAP/SAFE-exbench/TRACER-testabs7.tmp.c" + while (i < n){ i++; } + + __VERIFIER_assert(!( i>10 )); + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs8_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs8_VeriMAP_true.c new file mode 100644 index 000000000..0c1f2b732 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs8_VeriMAP_true.c @@ -0,0 +1,17 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testabs8.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testabs8.tmp.c" +# 34 "MAP/SAFE-exbench/TRACER-testabs8.tmp.c" +main(int n){ + int i; + + i=0;n=10; + + while (i < n){ i++; } + + __VERIFIER_assert(!( i>10 )); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs9_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs9_VeriMAP_true.c new file mode 100644 index 000000000..1b16669ee --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs9_VeriMAP_true.c @@ -0,0 +1,16 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testabs9.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testabs9.tmp.c" +# 27 "MAP/SAFE-exbench/TRACER-testabs9.tmp.c" +void main(){ + + int x,y; + y=99; + x=0; + + __VERIFIER_assert(!( x<0 )); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc1-unsafe_VeriMAP_false.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc1-unsafe_VeriMAP_false.c new file mode 100644 index 000000000..de9d3293e --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc1-unsafe_VeriMAP_false.c @@ -0,0 +1,38 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/UNSAFE-exbench/TRACER-testfunc1-unsafe.tmp.c" +# 1 "" +# 1 "MAP/UNSAFE-exbench/TRACER-testfunc1-unsafe.tmp.c" +# 20 "MAP/UNSAFE-exbench/TRACER-testfunc1-unsafe.tmp.c" +int f1(int w) +{ + int z; + z = w + 3; + return z; +} + +int f2(int w1) +{ + int z1; + z1 = w1 + 5; + return z1; +} + +void main() +{ + int x,a,b,arbit; + + if (arbit) { + a = f1(x); + b = a - x - 3; + } + else { + a = f2(x); + b = a - x - 5; + } + + __VERIFIER_assert(!( b == 0 )); + return; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc11_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc11_VeriMAP_true.c new file mode 100644 index 000000000..5edfbc9c4 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc11_VeriMAP_true.c @@ -0,0 +1,16 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testfunc11.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testfunc11.tmp.c" +# 23 "MAP/SAFE-exbench/TRACER-testfunc11.tmp.c" +int bar(){ return 1;} +int foo(){ return bar();} + +main(){ + int x; + x = foo(); + __VERIFIER_assert(!( x !=1 )); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc12-unsafe_VeriMAP_false.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc12-unsafe_VeriMAP_false.c new file mode 100644 index 000000000..977fdbd5c --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc12-unsafe_VeriMAP_false.c @@ -0,0 +1,28 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/UNSAFE-exbench/TRACER-testfunc12-unsafe.tmp.c" +# 1 "" +# 1 "MAP/UNSAFE-exbench/TRACER-testfunc12-unsafe.tmp.c" +# 20 "MAP/UNSAFE-exbench/TRACER-testfunc12-unsafe.tmp.c" +int foo(){ + int tmp=1; + return tmp; +} + +main(){ + int x,y,p,q; + + if (q>0) y=2; + else y=3; + + + if (p>0) x=1; + else x=2; + + foo(); + + __VERIFIER_assert(!( x==2 )); + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc13-unsafe_VeriMAP_false.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc13-unsafe_VeriMAP_false.c new file mode 100644 index 000000000..9ce3890cd --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc13-unsafe_VeriMAP_false.c @@ -0,0 +1,32 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/UNSAFE-exbench/TRACER-testfunc13-unsafe.tmp.c" +# 1 "" +# 1 "MAP/UNSAFE-exbench/TRACER-testfunc13-unsafe.tmp.c" +# 19 "MAP/UNSAFE-exbench/TRACER-testfunc13-unsafe.tmp.c" + +void bar(){ + int i,NONDET,q,z; + i=0; + + if (q>0) z=4; + else z=5; + + while (NONDET){ + i++; + } + return; +} + +main(){ + int p,x; + + if (p>0) x=1; + else x=2; + + bar(); + + __VERIFIER_assert(!( x==2 )); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc14_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc14_VeriMAP_true.c new file mode 100644 index 000000000..69d9cd860 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc14_VeriMAP_true.c @@ -0,0 +1,33 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testfunc14.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testfunc14.tmp.c" +# 23 "MAP/SAFE-exbench/TRACER-testfunc14.tmp.c" + +void bar(){ + int i,NONDET,q,z; + i=0; + + if (q>0) z=4; + else z=5; + + while (NONDET){ + i++; + } + return; +} + +main(){ + int p,x; + + if (p>0) x=1; + else x=3; + + bar(); + + __VERIFIER_assert(!( x==2 )); + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc1_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc1_VeriMAP_true.c new file mode 100644 index 000000000..7e919c614 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc1_VeriMAP_true.c @@ -0,0 +1,38 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testfunc1.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testfunc1.tmp.c" +# 20 "MAP/SAFE-exbench/TRACER-testfunc1.tmp.c" +int f1(int w) +{ + int z; + z = w + 3; + return z; +} + +int f2(int w1) +{ + int z1; + z1 = w1 + 5; + return z1; +} + +void main() +{ + int x,a,b,arbit; + x = __VERIFIER_nondet_uint(); + arbit = __VERIFIER_nondet_uint(); + if (arbit) { + a = f1(x); + b = a - x - 3; + } + else { + a = f2(x); + b = a - x - 5; + } + __VERIFIER_assert(!( b != 0 )); + return; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc3_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc3_VeriMAP_true.c new file mode 100644 index 000000000..7578f8229 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc3_VeriMAP_true.c @@ -0,0 +1,26 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testfunc3.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testfunc3.tmp.c" +# 20 "MAP/SAFE-exbench/TRACER-testfunc3.tmp.c" +int foo(int a){ + + int b; + b = a+1; + return b; +} + +void main(){ + + int init,x,y,z; + + init=8; + x= foo(init+1); + y= foo(x+2); + z= foo(y+3); + + __VERIFIER_assert(!( z != 17 )); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc9-unsafe_VeriMAP_false.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc9-unsafe_VeriMAP_false.c new file mode 100644 index 000000000..b1a09f2cf --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc9-unsafe_VeriMAP_false.c @@ -0,0 +1,47 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +int unknown(){int x; return x;} +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} + +int foo(){ + int result; + int res=unknown(); + + if (res==0) + { +// case 0: + result= 0; +// break; + } + else if (res==5) + { +// case 5: + result = 5; +// break; + } + else if (res==15) + { +// case 15: + result = 15; +// break; + } + else + { +// default: + result = 20; + } + + return result; +} + +void main(){ + + int result; + + result = foo(); + + __VERIFIER_assert(!( result==15 )); + + return; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop10_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop10_VeriMAP_true.c new file mode 100644 index 000000000..de99d3687 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop10_VeriMAP_true.c @@ -0,0 +1,29 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +int unknown(){int x; return x;} +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testloop10.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testloop10.tmp.c" +# 20 "MAP/SAFE-exbench/TRACER-testloop10.tmp.c" + +void main() +{ + int lock, old, new; + old = __VERIFIER_nondet_uint(); + lock=0; + new=old+1; + + while (new != old) { + lock = 1; + old = new; + if (unknown()) { + lock = 0; + new++; + } + } + + __VERIFIER_assert(!( lock==0 )); + return; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop11_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop11_VeriMAP_true.c new file mode 100644 index 000000000..00d8f42fd --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop11_VeriMAP_true.c @@ -0,0 +1,33 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +int unknown(){int x; return x;} +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testloop11.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testloop11.tmp.c" +# 18 "MAP/SAFE-exbench/TRACER-testloop11.tmp.c" + + +void main() +{ + int e, s; + + e=0; + s=2; + while (unknown()) { + if (s == 2){ + if (e ==0) e=1; + s = 3; + } + else if (s == 3){ + if (e ==1) e=2; + s=4; + } + else if (s == 4){ + __VERIFIER_assert(!( e == 3 )); + s=5; + } + } + return; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop12_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop12_VeriMAP_true.c new file mode 100644 index 000000000..36e9e4b37 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop12_VeriMAP_true.c @@ -0,0 +1,39 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testloop12.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testloop12.tmp.c" +# 25 "MAP/SAFE-exbench/TRACER-testloop12.tmp.c" +int x; + +int sel(int z) +{ + int y; + + if (z>=0) { + y = 1; + __VERIFIER_assert(!( x<0 )); + } else { + y = 2; + x = 1; + } + return y; +} + +void main() +{ + int i, y; + + x = 0; + i = 0; + while (i < 10) { + + sel(y); + + i++; + } + + return; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop13_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop13_VeriMAP_true.c new file mode 100644 index 000000000..5b6bad928 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop13_VeriMAP_true.c @@ -0,0 +1,29 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +int unknown(){int x; return x;} +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testloop13.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testloop13.tmp.c" +# 24 "MAP/SAFE-exbench/TRACER-testloop13.tmp.c" + +int main() +{ + int lock, old, new; + old = __VERIFIER_nondet_uint(); + lock=0; + new=old+1; + + while (new != old) { + lock = 1; + old = new; + if (unknown()) { + lock = 0; + new+=2; + } + } + + __VERIFIER_assert(!( lock==0 )); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop14_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop14_VeriMAP_true.c new file mode 100644 index 000000000..221d4221f --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop14_VeriMAP_true.c @@ -0,0 +1,27 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testloop14.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testloop14.tmp.c" +# 27 "MAP/SAFE-exbench/TRACER-testloop14.tmp.c" +int main() +{ + int i, x, y; + x = __VERIFIER_nondet_uint(); + y = __VERIFIER_nondet_uint(); + if (y <= 2) { + if (x < 0) { + x = 0; + } + i = 0; + while (i < 10) { + __VERIFIER_assert(!( y > 2 )); + i++; + } + + __VERIFIER_assert(!( x <= -1 )); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop15_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop15_VeriMAP_true.c new file mode 100644 index 000000000..3015f925b --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop15_VeriMAP_true.c @@ -0,0 +1,21 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testloop15.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testloop15.tmp.c" +# 32 "MAP/SAFE-exbench/TRACER-testloop15.tmp.c" +int main() +{ + int i = 0; + int N = 100; + + while (iN )); + + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop16_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop16_VeriMAP_true.c new file mode 100644 index 000000000..a2848ea52 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop16_VeriMAP_true.c @@ -0,0 +1,28 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testloop16.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testloop16.tmp.c" +# 22 "MAP/SAFE-exbench/TRACER-testloop16.tmp.c" +void main(int N) +{ + int i, x; + + x = 1; + i = 0; + + while (i2 )); + + return; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop17_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop17_VeriMAP_true.c new file mode 100644 index 000000000..e18509d82 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop17_VeriMAP_true.c @@ -0,0 +1,33 @@ +void __VERIFIER_assume(int cond) {if (!cond) {LOOP: goto LOOP;}}; +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testloop17.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testloop17.tmp.c" +# 23 "MAP/SAFE-exbench/TRACER-testloop17.tmp.c" +int main() +{ + int N = __VERIFIER_nondet_uint(); + int i, j, k; + + i = 0; + j = 0; + k = 0; + + __VERIFIER_assume( N > 1 ); + + while (i < N) { + if (i<1) + k = 1; + else + k = 0; + j++; + i++; + } + + __VERIFIER_assert(!( k>0 )); + + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop1_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop1_VeriMAP_true.c new file mode 100644 index 000000000..c92e250a6 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop1_VeriMAP_true.c @@ -0,0 +1,29 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testloop1.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testloop1.tmp.c" +# 23 "MAP/SAFE-exbench/TRACER-testloop1.tmp.c" +void main(){ + + int NONDET; + int i,N; + int a; + int x; + + + x=0; + i=0; + + + if (NONDET > 0) a=1; else a=2; + + while (i0 )); + return; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop20_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop20_VeriMAP_true.c new file mode 100644 index 000000000..5977a78a1 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop20_VeriMAP_true.c @@ -0,0 +1,35 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testloop20.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testloop20.tmp.c" +# 24 "MAP/SAFE-exbench/TRACER-testloop20.tmp.c" +void main() +{ + int e, s; + int NONDET; + + e=0; + s=2; + LOOP: + if (NONDET) + { + if (s == 2){ + if (e ==0) e=1; + s = 3; + } + else if (s == 3){ + if (e ==1) e=2; + s=4; + } + else if (s == 4){ + __VERIFIER_assert(!( e == 3 )); + s=5; + } + goto LOOP; + } + + return; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop21_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop21_VeriMAP_true.c new file mode 100644 index 000000000..0506b8518 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop21_VeriMAP_true.c @@ -0,0 +1,29 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testloop21.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testloop21.tmp.c" +# 25 "MAP/SAFE-exbench/TRACER-testloop21.tmp.c" +void main(){ + + int NONDET; + int i,N; + int a; + int x; + + x=0; + i=0; + + if (NONDET > 0) a=1; else a=2; + + LOOP: + if (i0 )); + return; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop22_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop22_VeriMAP_true.c new file mode 100644 index 000000000..4640c5d90 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop22_VeriMAP_true.c @@ -0,0 +1,26 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testloop22.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testloop22.tmp.c" +# 25 "MAP/SAFE-exbench/TRACER-testloop22.tmp.c" +void main(){ + + int NONDET; + int i,N; + int a; + int x; + + if (NONDET > 0) x=1; else x=2; + + LOOP: + if (i2 )); + return; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop27-unsafe_VeriMAP_false.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop27-unsafe_VeriMAP_false.c new file mode 100644 index 000000000..0615b643e --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop27-unsafe_VeriMAP_false.c @@ -0,0 +1,24 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testloop27.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testloop27.tmp.c" +# 22 "MAP/SAFE-exbench/TRACER-testloop27.tmp.c" +main(){ + int i,n,x,NONDET; + + i=0;x=0; + while (i < 1){ + x++; + if (NONDET > 0 ){ + x--; + } + i++; + } + + __VERIFIER_assert(!( x !=0 )); + + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop28-unsafe_VeriMAP_false.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop28-unsafe_VeriMAP_false.c new file mode 100644 index 000000000..ab1c38570 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop28-unsafe_VeriMAP_false.c @@ -0,0 +1,18 @@ +void assert(int cond) {if (!cond) __VERIFIER_error();} +int unknown() {int x; return x;} + +main(){ + int i,n,x, NONDET; + + x=0; + i=0; + while (i0){ + assert(!( x>0 )); + } + else{ + x = 1; + } + i++; + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop29_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop29_VeriMAP_true.c new file mode 100644 index 000000000..9ec1cb939 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop29_VeriMAP_true.c @@ -0,0 +1,17 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testloop29.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testloop29.tmp.c" +# 22 "MAP/SAFE-exbench/TRACER-testloop29.tmp.c" +main() { + int x = 0; + while(x < 100) { + x++; + if(x == 50) + break; + } + __VERIFIER_assert(!( x != 50 )); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop2_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop2_VeriMAP_true.c new file mode 100644 index 000000000..a40122649 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop2_VeriMAP_true.c @@ -0,0 +1,25 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testloop2.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testloop2.tmp.c" +# 28 "MAP/SAFE-exbench/TRACER-testloop2.tmp.c" +void main(){ + + int NONDET; + int i,N; + int a; + int x; + + if (NONDET > 0) x=1; else x=2; + + + while (i2 )); + return; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop3-unsafe_VeriMAP_false.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop3-unsafe_VeriMAP_false.c new file mode 100644 index 000000000..591023a04 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop3-unsafe_VeriMAP_false.c @@ -0,0 +1,24 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testloop3.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testloop3.tmp.c" +# 23 "MAP/SAFE-exbench/TRACER-testloop3.tmp.c" +void main(){ + + int NONDET; + int i,N; + int a; + int x; + + if (NONDET > 0) x=1; else x=2; + + while (i 1 )); + return; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop4_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop4_VeriMAP_true.c new file mode 100644 index 000000000..c7bbcc634 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop4_VeriMAP_true.c @@ -0,0 +1,21 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testloop4.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testloop4.tmp.c" +# 20 "MAP/SAFE-exbench/TRACER-testloop4.tmp.c" +void main(){ + int x,N; + int a; + + a=0; + N =10; + x = 0; + do { + x=x+1; + } while (x != N); + + __VERIFIER_assert(!( a > 1 )); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop5-unsafe_VeriMAP_false.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop5-unsafe_VeriMAP_false.c new file mode 100644 index 000000000..d0414c08f --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop5-unsafe_VeriMAP_false.c @@ -0,0 +1,22 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testloop5.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testloop5.tmp.c" +# 20 "MAP/SAFE-exbench/TRACER-testloop5.tmp.c" + +int foo(int i) +{ + i++; + return i; +} + +void main() { + int i = 0; + while(foo(i) < 10){} + + __VERIFIER_assert(!( i == 10 )); + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop6_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop6_VeriMAP_true.c new file mode 100644 index 000000000..954cb37a9 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop6_VeriMAP_true.c @@ -0,0 +1,31 @@ +void __VERIFIER_assume(int cond) {if (!cond) {LOOP: goto LOOP;}}; +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testloop6.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testloop6.tmp.c" +# 30 "MAP/SAFE-exbench/TRACER-testloop6.tmp.c" +void main() +{ + int i,x,y,NONDET,z; + + x=0; + z=1; + y = __VERIFIER_nondet_uint(); + + __VERIFIER_assume( y>=0 ); + i = 0; + while (i < 10) { + if (NONDET > 0) { + x = x; + } else { + x++; + } + + __VERIFIER_assert(!( y < 0 )); + i++; + } + __VERIFIER_assert(!( z<0 )); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop7_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop7_VeriMAP_true.c new file mode 100644 index 000000000..ba802348b --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop7_VeriMAP_true.c @@ -0,0 +1,30 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +int unknown(){int x; return x;} +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testloop7.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testloop7.tmp.c" +# 26 "MAP/SAFE-exbench/TRACER-testloop7.tmp.c" +//int unknown(){int x; return x;} + +void main() +{ + int x, y; + + y = 0; + x = 1; + while ( unknown() < 10) { + if (x<2) { + x=2; + } else { + x=1; + } + if (y<1) { + y=0; + } + } + __VERIFIER_assert(!( x > 2 )); + return; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop8-unsafe_VeriMAP_false.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop8-unsafe_VeriMAP_false.c new file mode 100644 index 000000000..5484cb344 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop8-unsafe_VeriMAP_false.c @@ -0,0 +1,25 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +int unknown(){int x; return x;} +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testloop8.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testloop8.tmp.c" +# 20 "MAP/SAFE-exbench/TRACER-testloop8.tmp.c" + +void main () { + int x, y; + + x = 0; + y = 0; + while (unknown()) { + x ++ ; + y ++ ; + } + while (x > 0) { + x -- ; + y -- ; + } + __VERIFIER_assert(!( y == 0 )); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop9_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop9_VeriMAP_true.c new file mode 100644 index 000000000..e256a188e --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop9_VeriMAP_true.c @@ -0,0 +1,38 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testloop9.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testloop9.tmp.c" +# 19 "MAP/SAFE-exbench/TRACER-testloop9.tmp.c" +main() +{ + int i; + int x, y; + + i = 0; + x = 1; + + while (i<10) { + if (x==1) { + x = 2; + y = 3; + } else if (x==2) { + x = 3; + y = 4; + } else if (x==3) { + x = 1; + y = 5; + } else if (x==4) { + x = 1; + y = 6; + } else { + x = 2; + } + + i = i + 1; + } + + __VERIFIER_assert(!( y==6 )); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp1-unsafe_VeriMAP_false.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp1-unsafe_VeriMAP_false.c new file mode 100644 index 000000000..a0ecd1637 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp1-unsafe_VeriMAP_false.c @@ -0,0 +1,27 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testwp1.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testwp1.tmp.c" +# 20 "MAP/SAFE-exbench/TRACER-testwp1.tmp.c" +main() +{ + int x, y, z; + + if (x>0) + z = 2; + else + x = -1; + + + if (y>0) + + z = 3; + else + + y = 1; + + __VERIFIER_assert(!( x+y<=0 )); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp10_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp10_VeriMAP_true.c new file mode 100644 index 000000000..2c6eaa2cf --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp10_VeriMAP_true.c @@ -0,0 +1,30 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testwp10.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testwp10.tmp.c" +# 19 "MAP/SAFE-exbench/TRACER-testwp10.tmp.c" +main(){ +# 41 "MAP/SAFE-exbench/TRACER-testwp10.tmp.c" + int x = __VERIFIER_nondet_uint(); + if (x==1){ + x++; + } + else{ + if (x==2){ + x++; + } + else{ + if(x==3){ + x++; + } + else + x=0; + } + } + + __VERIFIER_assert(!( x>4 )); + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp11_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp11_VeriMAP_true.c new file mode 100644 index 000000000..06d32dcd3 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp11_VeriMAP_true.c @@ -0,0 +1,31 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testwp11.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testwp11.tmp.c" +# 20 "MAP/SAFE-exbench/TRACER-testwp11.tmp.c" +main(){ + int x,y,z; + int NONDET1,NONDET2,NONDET3; + + if (NONDET2>0) + y=2; + else + y=3; + + if (NONDET3>0) + x=4; + else + x=5; + + if (NONDET1>0) + z=5; + else + z=6; + + + __VERIFIER_assert(!( x > 10 || y > 5 )); + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp12_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp12_VeriMAP_true.c new file mode 100644 index 000000000..3de4c34e1 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp12_VeriMAP_true.c @@ -0,0 +1,25 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testwp12.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testwp12.tmp.c" +# 23 "MAP/SAFE-exbench/TRACER-testwp12.tmp.c" +void main(){ + int y1,y2,y3; + int x = 0; + int p,z; + + + + if (y2>0) x=x+2; + else y2=3; + if (p>0) z=3; + else z=2; + if (y3>0) x=x+4; + else y3=3; + + __VERIFIER_assert(!( x>6 && ( y2<0 || y3<0 ) )); + return; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp13-unsafe_VeriMAP_false.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp13-unsafe_VeriMAP_false.c new file mode 100644 index 000000000..8797d4f9a --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp13-unsafe_VeriMAP_false.c @@ -0,0 +1,25 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testwp13.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testwp13.tmp.c" +# 20 "MAP/SAFE-exbench/TRACER-testwp13.tmp.c" +main(){ + + int x,y; + x = __VERIFIER_nondet_uint(); + y = __VERIFIER_nondet_uint(); + + if (x>5){ + if (y>0) + y++; + else + x=x-10; + + if (x<50){ + __VERIFIER_assert(!( x < 0 )); + } + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp14_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp14_VeriMAP_true.c new file mode 100644 index 000000000..bde6bf2ad --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp14_VeriMAP_true.c @@ -0,0 +1,25 @@ +void __VERIFIER_assume(int cond) {if (!cond) {LOOP: goto LOOP;}}; +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testwp14.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testwp14.tmp.c" +# 20 "MAP/SAFE-exbench/TRACER-testwp14.tmp.c" +main(){ + + int x,y,z; + + if (x>4) + z=4; + else + x=5; + + __VERIFIER_assume( x>0 ); + + y=x; + + __VERIFIER_assert(!( !(y > 4) )); + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp15_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp15_VeriMAP_true.c new file mode 100644 index 000000000..d94b61c3b --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp15_VeriMAP_true.c @@ -0,0 +1,36 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testwp15.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testwp15.tmp.c" +# 22 "MAP/SAFE-exbench/TRACER-testwp15.tmp.c" +int z; + +int foo(){ + int y1; + if (y1>0) { + z = 3; + } + else { + y1 = 1; + } + return y1; +} + +main() +{ + int x,y; + + if (x>0) { + z = 2; + } + else { + x = 0; + } + + y= foo(); + + __VERIFIER_assert(!( x+y<=0 )); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp16_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp16_VeriMAP_true.c new file mode 100644 index 000000000..c4d6290a1 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp16_VeriMAP_true.c @@ -0,0 +1,31 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testwp16.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testwp16.tmp.c" +# 21 "MAP/SAFE-exbench/TRACER-testwp16.tmp.c" +main(){ + + int t,x2,x3,temp; + + + t = 1; + x2 = temp; + x3 = temp; + + + + if (x2 == 0){ + + if (x3 == 3) + t++; + } + + + t++; + + __VERIFIER_assert(!(t>1000)); + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp17_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp17_VeriMAP_true.c new file mode 100644 index 000000000..e1091986c --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp17_VeriMAP_true.c @@ -0,0 +1,25 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testwp17.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testwp17.tmp.c" +# 19 "MAP/SAFE-exbench/TRACER-testwp17.tmp.c" +main(){ + int x; + int NONDET; + + if(NONDET>0) + + + x=0; + else + x=1; +# 37 "MAP/SAFE-exbench/TRACER-testwp17.tmp.c" + if (x==0){ + + + __VERIFIER_assert(!( x !=0 )); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp2_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp2_VeriMAP_true.c new file mode 100644 index 000000000..4efa14e4e --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp2_VeriMAP_true.c @@ -0,0 +1,28 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testwp2.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testwp2.tmp.c" +# 23 "MAP/SAFE-exbench/TRACER-testwp2.tmp.c" +main() +{ + int x, y, z; + if (z>0) { + + x = 1; + } else { + x = 2; + } + + if (x<0) { + + y = -1; + } else { + + y = 1; + } + + __VERIFIER_assert(!( y<0 )); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp3_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp3_VeriMAP_true.c new file mode 100644 index 000000000..6f08693f0 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp3_VeriMAP_true.c @@ -0,0 +1,19 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testwp3.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testwp3.tmp.c" +# 21 "MAP/SAFE-exbench/TRACER-testwp3.tmp.c" +void main(){ + int x,y; + if (y>0) + x=2; + else{ + x=47; + } + x++; + x=x+2; + __VERIFIER_assert(!( x > 50 )); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp4_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp4_VeriMAP_true.c new file mode 100644 index 000000000..04eb3b7e7 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp4_VeriMAP_true.c @@ -0,0 +1,45 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testwp4.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testwp4.tmp.c" +# 23 "MAP/SAFE-exbench/TRACER-testwp4.tmp.c" +void main(){ + int sum; + int c1, c2, c3, c4, c5; + int d1, d2, d3, d4, d5; + int e1, e2, e3, e4, e5; + int f1, f2, f3, f4, f5; + + sum = 0; + + if (c1 == 0) sum=sum+1; else sum=sum+2; + if (c2 == 0) sum=sum+1; else sum=sum+2; + if (c3 == 0) sum=sum+1; else sum=sum+2; + if (c4 == 0) sum=sum+1; else sum=sum+2; + if (c5 == 0) sum=sum+1; else sum=sum+2; + + if (d1 == 0) sum=sum+1; else sum=sum+2; + if (d2 == 0) sum=sum+1; else sum=sum+2; + if (d3 == 0) sum=sum+1; else sum=sum+2; + if (d4 == 0) sum=sum+1; else sum=sum+2; + if (d5 == 0) sum=sum+1; else sum=sum+2; + + if (e1 == 0) sum=sum+1; else sum=sum+2; + if (e2 == 0) sum=sum+1; else sum=sum+2; + if (e3 == 0) sum=sum+1; else sum=sum+2; + if (e4 == 0) sum=sum+1; else sum=sum+2; + if (e5 == 0) sum=sum+1; else sum=sum+2; + + if (f1 == 0) sum=sum+1; else sum=sum+2; + if (f2 == 0) sum=sum+1; else sum=sum+2; + if (f3 == 0) sum=sum+1; else sum=sum+2; + if (f4 == 0) sum=sum+1; else sum=sum+2; + if (f5 == 0) sum=sum+1; else sum=sum+2; + + __VERIFIER_assert(!( sum > 40 )); + + return; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp5_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp5_VeriMAP_true.c new file mode 100644 index 000000000..392962046 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp5_VeriMAP_true.c @@ -0,0 +1,26 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testwp5.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testwp5.tmp.c" +# 21 "MAP/SAFE-exbench/TRACER-testwp5.tmp.c" +void main(){ + int x,y; + + x=0; + + if (y>0) + x=x+1; + else + x=x+2; + + x++; + x=x+2; + x=x+3; + + + __VERIFIER_assert(!( x > 50 )); + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp6_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp6_VeriMAP_true.c new file mode 100644 index 000000000..decba83c2 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp6_VeriMAP_true.c @@ -0,0 +1,24 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testwp6.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testwp6.tmp.c" +# 21 "MAP/SAFE-exbench/TRACER-testwp6.tmp.c" +void main(){ + int x,y; + + if (y>0) + x=1; + else + x=47; + + if (x>0) + x=x+3; + else + x=x+5; + + __VERIFIER_assert(!( x > 50 )); + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp7_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp7_VeriMAP_true.c new file mode 100644 index 000000000..495b3a44e --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp7_VeriMAP_true.c @@ -0,0 +1,26 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testwp7.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testwp7.tmp.c" +# 25 "MAP/SAFE-exbench/TRACER-testwp7.tmp.c" +main() +{ + int x, y, z; + if (x>0) { + z = 2; + } + else { + x = 0; + } +# 57 "MAP/SAFE-exbench/TRACER-testwp7.tmp.c" + if (y>0) { + z = 3; + } + else { + y = 1; + } + __VERIFIER_assert(!( x+y<=0 )); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp8_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp8_VeriMAP_true.c new file mode 100644 index 000000000..aa73ca268 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp8_VeriMAP_true.c @@ -0,0 +1,27 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testwp8.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testwp8.tmp.c" +# 20 "MAP/SAFE-exbench/TRACER-testwp8.tmp.c" +main(){ + int x,y,z; + int TRACER_NONDET; + + x = 0; + + if (y>0) + y=2; + else + y=5; + + if(TRACER_NONDET>0) + x=x+1; + else + x=x+4; + + __VERIFIER_assert(!( x + y > 50 )); + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp9_VeriMAP_true.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp9_VeriMAP_true.c new file mode 100644 index 000000000..f4064b7d2 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp9_VeriMAP_true.c @@ -0,0 +1,18 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void __VERIFIER_assert (int cond) { if (!cond) __VERIFIER_error (); } +unsigned int __VERIFIER_nondet_uint(); +void errorFn() {ERROR: goto ERROR;} +# 1 "MAP/SAFE-exbench/TRACER-testwp9.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/TRACER-testwp9.tmp.c" +# 18 "MAP/SAFE-exbench/TRACER-testwp9.tmp.c" +void main(){ + int x = __VERIFIER_nondet_uint(); + + + if (x>10){ + __VERIFIER_assert(!( x < 5 )); + x=x+2; + } + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd1_VeriMAP_false.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd1_VeriMAP_false.c new file mode 100644 index 000000000..98722a6de --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd1_VeriMAP_false.c @@ -0,0 +1,925 @@ +int unknown(){int x; return x;} +unsigned int __VERIFIER_nondet_uint(); +int nondet(){int x; return x;} +int __VERIFIER_nondet_int(){int x; return x;} +void assert(int cond) {if (!cond) __VERIFIER_error();} +# 1 "MAP/SAFE-exbench/WHALE-ddd1.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/WHALE-ddd1.tmp.c" +# 57 "MAP/SAFE-exbench/WHALE-ddd1.tmp.c" + +int set_setParametersDDD1(int p){int x; return x;} +int set_setParametersDDD2(int p){int x; return x;} +int set_setParametersDDD3(int p){int x; return x;} +int set_setParametersDDD4(int p){int x; return x;} +int set_setParametersDDD5(int p){int x; return x;} +int set_setParametersDDD6(int p){int x; return x;} +int set_setParametersDDD7(int p){int x; return x;} +int set_setParametersDDD8(int p){int x; return x;} +int set_setParametersDDD9(int p){int x; return x;} +int set_setParametersDDD10(int p){int x; return x;} +int set_setParametersDDD11(int p){int x; return x;} +int set_setParametersDDD12(int p){int x; return x;} +int set_setParametersDDD13(int p){int x; return x;} +int set_setParametersDDD14(int p){int x; return x;} +int set_setParametersDDD15(int p){int x; return x;} +int set_setParametersDDD16(int p){int x; return x;} +int set_setParametersDDD17(int p){int x; return x;} +int set_setParametersDDD18(int p){int x; return x;} +int set_setParametersDDD19(int p){int x; return x;} + +int get_setParametersDDD1(){int x; return x;} +int get_setParametersDDD2(){int x; return x;} +int get_setParametersDDD3(){int x; return x;} +int get_setParametersDDD4(){int x; return x;} +int get_setParametersDDD5(){int x; return x;} +int get_setParametersDDD6(){int x; return x;} +int get_setParametersDDD7(){int x; return x;} +int get_setParametersDDD8(){int x; return x;} +int get_setParametersDDD9(){int x; return x;} +int get_setParametersDDD10(){int x; return x;} +int get_setParametersDDD11(){int x; return x;} +int get_setParametersDDD12(){int x; return x;} +int get_setParametersDDD13(){int x; return x;} +int get_setParametersDDD14(){int x; return x;} +int get_setParametersDDD15(){int x; return x;} +int get_setParametersDDD16(){int x; return x;} +int get_setParametersDDD17(){int x; return x;} +int get_setParametersDDD18(){int x; return x;} +int get_setParametersDDD19(){int x; return x;} + +int ReadTimer0(){int x; return x;} +int WriteTimer0(){int x; return x;} +int calcSmoothedInterval(int a,int b){int x; return x;} +int isRTCommEnabled(){int x; return x;} +int sendVentSense(){int x; return x;} +int sendAtriSense(){int x; return x;} + +int set_dddVentISR1(int p){int x; return x;} +int set_dddVentISR2(int p){int x; return x;} +int set_dddVentISR3(int p){int x; return x;} +int set_dddVentISR4(int p){int x; return x;} +int set_dddVentISR5(int p){int x; return x;} +int set_dddVentISR6(int p){int x; return x;} +int set_dddVentISR7(int p){int x; return x;} +int set_dddVentISR8(int p){int x; return x;} +int set_dddVentISR9(int p){int x; return x;} +int set_dddVentISR10(int p){int x; return x;} +int set_dddVentISR11(int p){int x; return x;} +int set_dddVentISR12(int p){int x; return x;} +int set_dddVentISR13(int p){int x; return x;} +int set_dddVentISR14(int p){int x; return x;} +int set_dddVentISR15(int p){int x; return x;} +int set_dddVentISR16(int p){int x; return x;} +int set_dddVentISR17(int p){int x; return x;} +int set_dddVentISR18(int p){int x; return x;} +int set_dddVentISR19(int p){int x; return x;} +int set_dddVentISR20(int p){int x; return x;} +int set_dddVentISR21(int p){int x; return x;} + +int get_dddVentISR1(){int x; return x;} +int get_dddVentISR2(){int x; return x;} +int get_dddVentISR3(){int x; return x;} +int get_dddVentISR4(){int x; return x;} +int get_dddVentISR5(){int x; return x;} +int get_dddVentISR6(){int x; return x;} +int get_dddVentISR7(){int x; return x;} +int get_dddVentISR8(){int x; return x;} +int get_dddVentISR9(){int x; return x;} +int get_dddVentISR10(){int x; return x;} +int get_dddVentISR11(){int x; return x;} +int get_dddVentISR12(){int x; return x;} +int get_dddVentISR13(){int x; return x;} +int get_dddVentISR14(){int x; return x;} +int get_dddVentISR15(){int x; return x;} +int get_dddVentISR16(){int x; return x;} +int get_dddVentISR17(){int x; return x;} +int get_dddVentISR18(){int x; return x;} +int get_dddVentISR19(){int x; return x;} +int get_dddVentISR20(){int x; return x;} +int get_dddVentISR21(){int x; return x;} + +int startPaceAtri(int p){int x; return x;} +int startPaceVent(int p){int x; return x;} + +int set_dddTmr0ISR1(int p){int x; return x;} +int set_dddTmr0ISR2(int p){int x; return x;} +int set_dddTmr0ISR3(int p){int x; return x;} +int set_dddTmr0ISR4(int p){int x; return x;} +int set_dddTmr0ISR5(int p){int x; return x;} +int set_dddTmr0ISR6(int p){int x; return x;} +int set_dddTmr0ISR7(int p){int x; return x;} +int set_dddTmr0ISR8(int p){int x; return x;} +int set_dddTmr0ISR9(int p){int x; return x;} +int set_dddTmr0ISR10(int p){int x; return x;} +int set_dddTmr0ISR11(int p){int x; return x;} +int set_dddTmr0ISR12(int p){int x; return x;} +int set_dddTmr0ISR13(int p){int x; return x;} +int set_dddTmr0ISR14(int p){int x; return x;} +int set_dddTmr0ISR15(int p){int x; return x;} +int set_dddTmr0ISR16(int p){int x; return x;} +int set_dddTmr0ISR17(int p){int x; return x;} +int set_dddTmr0ISR18(int p){int x; return x;} +int set_dddTmr0ISR19(int p){int x; return x;} +int set_dddTmr0ISR20(int p){int x; return x;} +int set_dddTmr0ISR21(int p){int x; return x;} + +int get_dddTmr0ISR1(){int x; return x;} +int get_dddTmr0ISR2(){int x; return x;} +int get_dddTmr0ISR3(){int x; return x;} +int get_dddTmr0ISR4(){int x; return x;} +int get_dddTmr0ISR5(){int x; return x;} +int get_dddTmr0ISR6(){int x; return x;} +int get_dddTmr0ISR7(){int x; return x;} +int get_dddTmr0ISR8(){int x; return x;} +int get_dddTmr0ISR9(){int x; return x;} +int get_dddTmr0ISR10(){int x; return x;} +int get_dddTmr0ISR11(){int x; return x;} +int get_dddTmr0ISR12(){int x; return x;} +int get_dddTmr0ISR13(){int x; return x;} +int get_dddTmr0ISR14(){int x; return x;} +int get_dddTmr0ISR15(){int x; return x;} +int get_dddTmr0ISR16(){int x; return x;} +int get_dddTmr0ISR17(){int x; return x;} +int get_dddTmr0ISR18(){int x; return x;} +int get_dddTmr0ISR19(){int x; return x;} +int get_dddTmr0ISR20(){int x; return x;} +int get_dddTmr0ISR21(){int x; return x;} + + +int set_dddAtriISR1(int p){int x; return x;} +int set_dddAtriISR2(int p){int x; return x;} +int set_dddAtriISR3(int p){int x; return x;} +int set_dddAtriISR4(int p){int x; return x;} +int set_dddAtriISR5(int p){int x; return x;} +int set_dddAtriISR6(int p){int x; return x;} +int set_dddAtriISR7(int p){int x; return x;} +int set_dddAtriISR8(int p){int x; return x;} +int set_dddAtriISR9(int p){int x; return x;} +int set_dddAtriISR10(int p){int x; return x;} +int set_dddAtriISR11(int p){int x; return x;} +int set_dddAtriISR12(int p){int x; return x;} +int set_dddAtriISR13(int p){int x; return x;} +int set_dddAtriISR14(int p){int x; return x;} +int set_dddAtriISR15(int p){int x; return x;} +int set_dddAtriISR16(int p){int x; return x;} +int set_dddAtriISR17(int p){int x; return x;} +int set_dddAtriISR18(int p){int x; return x;} +int set_dddAtriISR19(int p){int x; return x;} +int set_dddAtriISR20(int p){int x; return x;} +int set_dddAtriISR21(int p){int x; return x;} + +int get_dddAtriISR1(){int x; return x;} +int get_dddAtriISR2(){int x; return x;} +int get_dddAtriISR3(){int x; return x;} +int get_dddAtriISR4(){int x; return x;} +int get_dddAtriISR5(){int x; return x;} +int get_dddAtriISR6(){int x; return x;} +int get_dddAtriISR7(){int x; return x;} +int get_dddAtriISR8(){int x; return x;} +int get_dddAtriISR9(){int x; return x;} +int get_dddAtriISR10(){int x; return x;} +int get_dddAtriISR11(){int x; return x;} +int get_dddAtriISR12(){int x; return x;} +int get_dddAtriISR13(){int x; return x;} +int get_dddAtriISR14(){int x; return x;} +int get_dddAtriISR15(){int x; return x;} +int get_dddAtriISR16(){int x; return x;} +int get_dddAtriISR17(){int x; return x;} +int get_dddAtriISR18(){int x; return x;} +int get_dddAtriISR19(){int x; return x;} +int get_dddAtriISR20(){int x; return x;} +int get_dddAtriISR21(){int x; return x;} + +int set_test11(int p){int x; return x;} +int set_test12(int p){int x; return x;} +int set_test13(int p){int x; return x;} +int set_test14(int p){int x; return x;} +int set_test15(int p){int x; return x;} +int set_test16(int p){int x; return x;} +int set_test17(int p){int x; return x;} +int set_test18(int p){int x; return x;} +int set_test19(int p){int x; return x;} +int set_test110(int p){int x; return x;} +int set_test111(int p){int x; return x;} +int set_test112(int p){int x; return x;} +int set_test113(int p){int x; return x;} +int set_test114(int p){int x; return x;} +int set_test115(int p){int x; return x;} +int set_test116(int p){int x; return x;} +int set_test117(int p){int x; return x;} +int set_test118(int p){int x; return x;} +int set_test119(int p){int x; return x;} +int set_test120(int p){int x; return x;} +int set_test121(int p){int x; return x;} + +int get_test11(){int x; return x;} +int get_test12(){int x; return x;} +int get_test13(){int x; return x;} +int get_test14(){int x; return x;} +int get_test15(){int x; return x;} +int get_test16(){int x; return x;} +int get_test17(){int x; return x;} +int get_test18(){int x; return x;} +int get_test19(){int x; return x;} +int get_test110(){int x; return x;} +int get_test111(){int x; return x;} +int get_test112(){int x; return x;} +int get_test113(){int x; return x;} +int get_test114(){int x; return x;} +int get_test115(){int x; return x;} +int get_test116(){int x; return x;} +int get_test117(){int x; return x;} +int get_test118(){int x; return x;} +int get_test119(){int x; return x;} +int get_test120(){int x; return x;} +int get_test121(){int x; return x;} + +void setParametersDDD( int tLRI, int tAVpace, int tAVoffset, int tVBP, int tVRP, int tPVARP, + int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval){ + + sLRI = tLRI; + sCurInterval = tLRI; + sCurAVInterval = sAVsense; + sPrevAVInterval = sAVsense; + sCurVAInterval = tLRI - sAVsense; + sPrevVAInterval = tLRI - sAVsense; + sAVpace = tAVpace; + sAVoffset = tAVoffset; + sAVsense = sAVpace - sAVoffset; + sVBP = tVBP; + sVRP = tVRP; + sPVARP = tPVARP; + sOffset = sPVARP > sVRP ? sVRP : sPVARP; + + set_setParametersDDD1(sVBPflag); + set_setParametersDDD2(sEndofRP); + set_setParametersDDD3(sIsSense); + set_setParametersDDD4(sPaceAtri); + set_setParametersDDD5(sAtriFlag); + set_setParametersDDD6(sLRI); + set_setParametersDDD7(sVRP); + set_setParametersDDD8(sVBP); + set_setParametersDDD9(sPVARP); + set_setParametersDDD10(sAVpace); + set_setParametersDDD11(sAVoffset); + set_setParametersDDD12(sAVsense); + set_setParametersDDD13(sOffset); + set_setParametersDDD14(sPVARPflag); + set_setParametersDDD15(sCurInterval); + set_setParametersDDD16(sCurAVInterval); + set_setParametersDDD17(sCurVAInterval); + set_setParametersDDD18(sPrevVAInterval); + set_setParametersDDD19(sPrevAVInterval); + +} +# 125 "MAP/SAFE-exbench/WHALE-ddd1.tmp.c" +void dddTmr0ISR(int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval, int ventb, int atrib){ + if (sAtriFlag){ + if (sPaceAtri){ + if (sEndofRP){ + atrib = 1; + ventb = 1; + if (sIsSense){ + startPaceAtri(0); + }else{ + startPaceAtri(1); + } + + sAtriFlag = 0; + sVBPflag = 1; + sIsSense = 0; + sPaceAtri = 0; + + + sPrevVAInterval = sCurVAInterval; + }else{ + atrib = 0; + ventb = 0; + sEndofRP = 1; + if (sIsSense){ + WriteTimer0(); + + }else{ + WriteTimer0(); + + } + } + }else{ + if (sPVARP > sVRP){ + if (!sPVARPflag){ + WriteTimer0(); + + ventb = 0; + sPVARPflag = 1; + }else{ + sPVARPflag = 0; + } + }else if (sPVARP < sVRP){ + if (!sPVARPflag){ + WriteTimer0(); + + atrib = 0; + sPVARPflag = 1; + }else{ + sPVARPflag = 0; + } + }else{ + sPVARPflag = 0; + } + + if (sPVARPflag == 0){ + atrib = 0; + ventb = 0; + if (sIsSense){ + WriteTimer0(); + + }else{ + WriteTimer0(); + + } + sEndofRP = 1; + sPaceAtri = 1; + } + } + }else{ + if (sIsSense){ + if (sVBPflag){ + sVBPflag = 0; + ventb = 0; + + }else{ + + ventb = 1; + startPaceVent(0); + + sIsSense = 0; + sPaceAtri = 0; + sAtriFlag = 1; + + + sPrevAVInterval = sCurAVInterval; + + + sCurInterval = calcSmoothedInterval(sPrevAVInterval + sPrevVAInterval, sLRI); + sCurVAInterval = sCurInterval - sAVsense; + sCurAVInterval = sCurInterval - sCurVAInterval; + } + }else{ + if (sVBPflag){ + sVBPflag = 0; + ventb = 0; + WriteTimer0(); + + }else{ + + ventb = 1; + startPaceVent(1); + + WriteTimer0(); + + sPaceAtri = 0; + sAtriFlag = 1; + sIsSense = 0; + + + sPrevAVInterval = sCurAVInterval; + + + sCurInterval = calcSmoothedInterval(sPrevAVInterval + sPrevVAInterval, sLRI); + sCurVAInterval = sCurInterval - sAVsense; + sCurAVInterval = sCurInterval - sCurVAInterval; + + } + } + } + set_dddTmr0ISR1(sVBPflag); + set_dddTmr0ISR2(sEndofRP); + set_dddTmr0ISR3(sIsSense); + set_dddTmr0ISR4(sPaceAtri); + set_dddTmr0ISR5(sAtriFlag); + set_dddTmr0ISR6(sLRI); + set_dddTmr0ISR7(sVRP); + set_dddTmr0ISR8(sVBP); + set_dddTmr0ISR9(sPVARP); + set_dddTmr0ISR10(sAVpace); + set_dddTmr0ISR11(sAVoffset); + set_dddTmr0ISR12(sAVsense); + set_dddTmr0ISR13(sOffset); + set_dddTmr0ISR14(sPVARPflag); + set_dddTmr0ISR15(sCurInterval); + set_dddTmr0ISR16(sCurAVInterval); + set_dddTmr0ISR17(sCurVAInterval); + set_dddTmr0ISR18(sPrevVAInterval); + set_dddTmr0ISR19(sPrevAVInterval); + set_dddTmr0ISR20(ventb); + set_dddTmr0ISR21(atrib); + +} + +void dddVentISR(int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval, int ventb, int atrib){ + if (ventb) return; + + + sPrevAVInterval = ReadTimer0() - (sCurAVInterval); + + + sCurInterval = calcSmoothedInterval(sPrevAVInterval + sPrevVAInterval, sLRI); + sCurVAInterval = sCurInterval - sAVsense; + sCurAVInterval = sCurInterval - sCurVAInterval; + + if (sPVARP > sVRP){ + WriteTimer0(); + + }else{ + WriteTimer0(); + + } + sIsSense = 1; + sPaceAtri = 0; + sAtriFlag = 1; + + atrib = 1; + ventb = 1; + + if(isRTCommEnabled()){ + sendVentSense(); + } + set_dddVentISR1(sVBPflag); + set_dddVentISR2(sEndofRP); + set_dddVentISR3(sIsSense); + set_dddVentISR4(sPaceAtri); + set_dddVentISR5(sAtriFlag); + set_dddVentISR6(sLRI); + set_dddVentISR7(sVRP); + set_dddVentISR8(sVBP); + set_dddVentISR9(sPVARP); + set_dddVentISR10(sAVpace); + set_dddVentISR11(sAVoffset); + set_dddVentISR12(sAVsense); + set_dddVentISR13(sOffset); + set_dddVentISR14(sPVARPflag); + set_dddVentISR15(sCurInterval); + set_dddVentISR16(sCurAVInterval); + set_dddVentISR17(sCurVAInterval); + set_dddVentISR18(sPrevVAInterval); + set_dddVentISR19(sPrevAVInterval); + set_dddVentISR20(ventb); + set_dddVentISR21(atrib); + + +} + +void dddAtriISR(int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval, int ventb, int atrib){ + + if (atrib) return; + sIsSense = 1; + sVBPflag = 1; + + + sPrevVAInterval = ReadTimer0() - (sCurVAInterval); + + WriteTimer0(); + + sAtriFlag = 0; + atrib = 1; + ventb = 1; + + if (isRTCommEnabled()){ + sendAtriSense(); + } + set_dddAtriISR1(sVBPflag); + set_dddAtriISR2(sEndofRP); + set_dddAtriISR3(sIsSense); + set_dddAtriISR4(sPaceAtri); + set_dddAtriISR5(sAtriFlag); + set_dddAtriISR6(sLRI); + set_dddAtriISR7(sVRP); + set_dddAtriISR8(sVBP); + set_dddAtriISR9(sPVARP); + set_dddAtriISR10(sAVpace); + set_dddAtriISR11(sAVoffset); + set_dddAtriISR12(sAVsense); + set_dddAtriISR13(sOffset); + set_dddAtriISR14(sPVARPflag); + set_dddAtriISR15(sCurInterval); + set_dddAtriISR16(sCurAVInterval); + set_dddAtriISR17(sCurVAInterval); + set_dddAtriISR18(sPrevVAInterval); + set_dddAtriISR19(sPrevAVInterval); + set_dddAtriISR20(ventb); + set_dddAtriISR21(atrib); + + +} + + +int test1(int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval, int ventb, int atrib){ + + do{ + dddVentISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib); + + sVBPflag = get_dddVentISR1(); + sEndofRP = get_dddVentISR2(); + sIsSense = get_dddVentISR3(); + sPaceAtri = get_dddVentISR4(); + sAtriFlag = get_dddVentISR5(); + sLRI = get_dddVentISR6(); + sVRP = get_dddVentISR7(); + sVBP = get_dddVentISR8(); + sPVARP = get_dddVentISR9(); + sAVpace = get_dddVentISR10(); + sAVoffset = get_dddVentISR11(); + sAVsense = get_dddVentISR12(); + sOffset = get_dddVentISR13(); + sPVARPflag = get_dddVentISR14(); + sCurInterval = get_dddVentISR15(); + sCurAVInterval = get_dddVentISR16(); + sCurVAInterval = get_dddVentISR17(); + sPrevVAInterval = get_dddVentISR18(); + sPrevAVInterval = get_dddVentISR19(); + ventb = get_dddVentISR20(); + atrib = get_dddVentISR21(); + + dddTmr0ISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib); + + sVBPflag = get_dddTmr0ISR1(); + sEndofRP = get_dddTmr0ISR2(); + sIsSense = get_dddTmr0ISR3(); + sPaceAtri = get_dddTmr0ISR4(); + sAtriFlag = get_dddTmr0ISR5(); + sLRI = get_dddTmr0ISR6(); + sVRP = get_dddTmr0ISR7(); + sVBP = get_dddTmr0ISR8(); + sPVARP = get_dddTmr0ISR9(); + sAVpace = get_dddTmr0ISR10(); + sAVoffset = get_dddTmr0ISR11(); + sAVsense = get_dddTmr0ISR12(); + sOffset = get_dddTmr0ISR13(); + sPVARPflag = get_dddTmr0ISR14(); + sCurInterval = get_dddTmr0ISR15(); + sCurAVInterval = get_dddTmr0ISR16(); + sCurVAInterval = get_dddTmr0ISR17(); + sPrevVAInterval = get_dddTmr0ISR18(); + sPrevAVInterval = get_dddTmr0ISR19(); + ventb = get_dddTmr0ISR20(); + atrib = get_dddTmr0ISR21(); + + dddAtriISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib); + + sVBPflag = get_dddAtriISR1(); + sEndofRP = get_dddAtriISR2(); + sIsSense = get_dddAtriISR3(); + sPaceAtri = get_dddAtriISR4(); + sAtriFlag = get_dddAtriISR5(); + sLRI = get_dddAtriISR6(); + sVRP = get_dddAtriISR7(); + sVBP = get_dddAtriISR8(); + sPVARP = get_dddAtriISR9(); + sAVpace = get_dddAtriISR10(); + sAVoffset = get_dddAtriISR11(); + sAVsense = get_dddAtriISR12(); + sOffset = get_dddAtriISR13(); + sPVARPflag = get_dddAtriISR14(); + sCurInterval = get_dddAtriISR15(); + sCurAVInterval = get_dddAtriISR16(); + sCurVAInterval = get_dddAtriISR17(); + sPrevVAInterval = get_dddAtriISR18(); + sPrevAVInterval = get_dddAtriISR19(); + ventb = get_dddAtriISR20(); + atrib = get_dddAtriISR21(); + + dddTmr0ISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib); + + sVBPflag = get_dddTmr0ISR1(); + sEndofRP = get_dddTmr0ISR2(); + sIsSense = get_dddTmr0ISR3(); + sPaceAtri = get_dddTmr0ISR4(); + sAtriFlag = get_dddTmr0ISR5(); + sLRI = get_dddTmr0ISR6(); + sVRP = get_dddTmr0ISR7(); + sVBP = get_dddTmr0ISR8(); + sPVARP = get_dddTmr0ISR9(); + sAVpace = get_dddTmr0ISR10(); + sAVoffset = get_dddTmr0ISR11(); + sAVsense = get_dddTmr0ISR12(); + sOffset = get_dddTmr0ISR13(); + sPVARPflag = get_dddTmr0ISR14(); + sCurInterval = get_dddTmr0ISR15(); + sCurAVInterval = get_dddTmr0ISR16(); + sCurVAInterval = get_dddTmr0ISR17(); + sPrevVAInterval = get_dddTmr0ISR18(); + sPrevAVInterval = get_dddTmr0ISR19(); + ventb = get_dddTmr0ISR20(); + atrib = get_dddTmr0ISR21(); + }while (nondet()); + + + + set_test11(sVBPflag); + set_test12(sEndofRP); + set_test13(sIsSense); + set_test14(sPaceAtri); + set_test15(sAtriFlag); + set_test16(sLRI); + set_test17(sVRP); + set_test18(sVBP); + set_test19(sPVARP); + set_test110(sAVpace); + set_test111(sAVoffset); + set_test112(sAVsense); + set_test113(sOffset); + set_test114(sPVARPflag); + set_test115(sCurInterval); + set_test116(sCurAVInterval); + set_test117(sCurVAInterval); + set_test118(sPrevVAInterval); + set_test119(sPrevAVInterval); + set_test120(ventb); + set_test121(atrib); +} + +void main(){ + int sVBPflag; + int sEndofRP; + int sIsSense; + int sPaceAtri; + int sAtriFlag; + int sLRI; + int sVRP; + int sVBP; + int sPVARP; + int sAVpace; + int sAVoffset; + int sAVsense; + int sOffset; + int sPVARPflag; + int sCurInterval; + int sCurAVInterval; + int sCurVAInterval; + int sPrevVAInterval; + int sPrevAVInterval; + int u,v,w,x,y,z; + sIsSense = 0; + sEndofRP = 0; + sVBPflag = 0; + sAtriFlag = 1; + sPaceAtri = 0; + sPVARPflag = 0; + int ventb = 0; + int atrib = 0; + setParametersDDD(u,v,w,x,y,z, + sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval); + + int state; + + sVBPflag = get_setParametersDDD1(); + sEndofRP = get_setParametersDDD2(); + sIsSense = get_setParametersDDD3(); + sPaceAtri = get_setParametersDDD4(); + sAtriFlag = get_setParametersDDD5(); + sLRI = get_setParametersDDD6(); + sVRP = get_setParametersDDD7(); + sVBP = get_setParametersDDD8(); + sPVARP = get_setParametersDDD9(); + sAVpace = get_setParametersDDD10(); + sAVoffset = get_setParametersDDD11(); + sAVsense = get_setParametersDDD12(); + sOffset = get_setParametersDDD13(); + sPVARPflag = get_setParametersDDD14(); + sCurInterval = get_setParametersDDD15(); + sCurAVInterval = get_setParametersDDD16(); + sCurVAInterval = get_setParametersDDD17(); + sPrevVAInterval = get_setParametersDDD18(); + sPrevAVInterval = get_setParametersDDD19(); + int sOffset_ = sOffset; + test1(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib); + + + + sVBPflag = get_test11(); + sEndofRP = get_test12(); + sIsSense = get_test13(); + sPaceAtri = get_test14(); + sAtriFlag = get_test15(); + sLRI = get_test16(); + sVRP = get_test17(); + sVBP = get_test18(); + sPVARP = get_test19(); + sAVpace = get_test110(); + sAVoffset = get_test111(); + sAVsense = get_test112(); + sOffset = get_test113(); + sPVARPflag = get_test114(); + sCurInterval = get_test115(); + sCurAVInterval = get_test116(); + sCurVAInterval = get_test117(); + sPrevVAInterval = get_test118(); + sPrevAVInterval = get_test119(); + ventb = get_test120(); + atrib = get_test121(); + + if (ventb && atrib) + goto ERROR; + + return; + ERROR: assert(0); goto ERROR; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd1err_VeriMAP_false.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd1err_VeriMAP_false.c new file mode 100644 index 000000000..ddaef60cb --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd1err_VeriMAP_false.c @@ -0,0 +1,927 @@ +int unknown(){int x; return x;} +unsigned int __VERIFIER_nondet_uint(); +int nondet(){int x; return x;} +int __VERIFIER_nondet_int(){int x; return x;} +void assert(int cond) {if (!cond) __VERIFIER_error();} +# 1 "MAP/UNSAFE-exbench/WHALE-ddd1err.tmp.c" +# 1 "" +# 1 "MAP/UNSAFE-exbench/WHALE-ddd1err.tmp.c" +# 57 "MAP/UNSAFE-exbench/WHALE-ddd1err.tmp.c" +int set_setParametersDDD1(int p){int x; return x;} +int set_setParametersDDD2(int p){int x; return x;} +int set_setParametersDDD3(int p){int x; return x;} +int set_setParametersDDD4(int p){int x; return x;} +int set_setParametersDDD5(int p){int x; return x;} +int set_setParametersDDD6(int p){int x; return x;} +int set_setParametersDDD7(int p){int x; return x;} +int set_setParametersDDD8(int p){int x; return x;} +int set_setParametersDDD9(int p){int x; return x;} +int set_setParametersDDD10(int p){int x; return x;} +int set_setParametersDDD11(int p){int x; return x;} +int set_setParametersDDD12(int p){int x; return x;} +int set_setParametersDDD13(int p){int x; return x;} +int set_setParametersDDD14(int p){int x; return x;} +int set_setParametersDDD15(int p){int x; return x;} +int set_setParametersDDD16(int p){int x; return x;} +int set_setParametersDDD17(int p){int x; return x;} +int set_setParametersDDD18(int p){int x; return x;} +int set_setParametersDDD19(int p){int x; return x;} + +int get_setParametersDDD1(){int x; return x;} +int get_setParametersDDD2(){int x; return x;} +int get_setParametersDDD3(){int x; return x;} +int get_setParametersDDD4(){int x; return x;} +int get_setParametersDDD5(){int x; return x;} +int get_setParametersDDD6(){int x; return x;} +int get_setParametersDDD7(){int x; return x;} +int get_setParametersDDD8(){int x; return x;} +int get_setParametersDDD9(){int x; return x;} +int get_setParametersDDD10(){int x; return x;} +int get_setParametersDDD11(){int x; return x;} +int get_setParametersDDD12(){int x; return x;} +int get_setParametersDDD13(){int x; return x;} +int get_setParametersDDD14(){int x; return x;} +int get_setParametersDDD15(){int x; return x;} +int get_setParametersDDD16(){int x; return x;} +int get_setParametersDDD17(){int x; return x;} +int get_setParametersDDD18(){int x; return x;} +int get_setParametersDDD19(){int x; return x;} + +int ReadTimer0(){int x; return x;} +int WriteTimer0(){int x; return x;} +int calcSmoothedInterval(int a,int b){int x; return x;} +int isRTCommEnabled(){int x; return x;} +int sendVentSense(){int x; return x;} +int sendAtriSense(){int x; return x;} + +int set_dddVentISR1(int p){int x; return x;} +int set_dddVentISR2(int p){int x; return x;} +int set_dddVentISR3(int p){int x; return x;} +int set_dddVentISR4(int p){int x; return x;} +int set_dddVentISR5(int p){int x; return x;} +int set_dddVentISR6(int p){int x; return x;} +int set_dddVentISR7(int p){int x; return x;} +int set_dddVentISR8(int p){int x; return x;} +int set_dddVentISR9(int p){int x; return x;} +int set_dddVentISR10(int p){int x; return x;} +int set_dddVentISR11(int p){int x; return x;} +int set_dddVentISR12(int p){int x; return x;} +int set_dddVentISR13(int p){int x; return x;} +int set_dddVentISR14(int p){int x; return x;} +int set_dddVentISR15(int p){int x; return x;} +int set_dddVentISR16(int p){int x; return x;} +int set_dddVentISR17(int p){int x; return x;} +int set_dddVentISR18(int p){int x; return x;} +int set_dddVentISR19(int p){int x; return x;} +int set_dddVentISR20(int p){int x; return x;} +int set_dddVentISR21(int p){int x; return x;} + +int get_dddVentISR1(){int x; return x;} +int get_dddVentISR2(){int x; return x;} +int get_dddVentISR3(){int x; return x;} +int get_dddVentISR4(){int x; return x;} +int get_dddVentISR5(){int x; return x;} +int get_dddVentISR6(){int x; return x;} +int get_dddVentISR7(){int x; return x;} +int get_dddVentISR8(){int x; return x;} +int get_dddVentISR9(){int x; return x;} +int get_dddVentISR10(){int x; return x;} +int get_dddVentISR11(){int x; return x;} +int get_dddVentISR12(){int x; return x;} +int get_dddVentISR13(){int x; return x;} +int get_dddVentISR14(){int x; return x;} +int get_dddVentISR15(){int x; return x;} +int get_dddVentISR16(){int x; return x;} +int get_dddVentISR17(){int x; return x;} +int get_dddVentISR18(){int x; return x;} +int get_dddVentISR19(){int x; return x;} +int get_dddVentISR20(){int x; return x;} +int get_dddVentISR21(){int x; return x;} + +int startPaceAtri(int p){int x; return x;} +int startPaceVent(int p){int x; return x;} + +int set_dddTmr0ISR1(int p){int x; return x;} +int set_dddTmr0ISR2(int p){int x; return x;} +int set_dddTmr0ISR3(int p){int x; return x;} +int set_dddTmr0ISR4(int p){int x; return x;} +int set_dddTmr0ISR5(int p){int x; return x;} +int set_dddTmr0ISR6(int p){int x; return x;} +int set_dddTmr0ISR7(int p){int x; return x;} +int set_dddTmr0ISR8(int p){int x; return x;} +int set_dddTmr0ISR9(int p){int x; return x;} +int set_dddTmr0ISR10(int p){int x; return x;} +int set_dddTmr0ISR11(int p){int x; return x;} +int set_dddTmr0ISR12(int p){int x; return x;} +int set_dddTmr0ISR13(int p){int x; return x;} +int set_dddTmr0ISR14(int p){int x; return x;} +int set_dddTmr0ISR15(int p){int x; return x;} +int set_dddTmr0ISR16(int p){int x; return x;} +int set_dddTmr0ISR17(int p){int x; return x;} +int set_dddTmr0ISR18(int p){int x; return x;} +int set_dddTmr0ISR19(int p){int x; return x;} +int set_dddTmr0ISR20(int p){int x; return x;} +int set_dddTmr0ISR21(int p){int x; return x;} + +int get_dddTmr0ISR1(){int x; return x;} +int get_dddTmr0ISR2(){int x; return x;} +int get_dddTmr0ISR3(){int x; return x;} +int get_dddTmr0ISR4(){int x; return x;} +int get_dddTmr0ISR5(){int x; return x;} +int get_dddTmr0ISR6(){int x; return x;} +int get_dddTmr0ISR7(){int x; return x;} +int get_dddTmr0ISR8(){int x; return x;} +int get_dddTmr0ISR9(){int x; return x;} +int get_dddTmr0ISR10(){int x; return x;} +int get_dddTmr0ISR11(){int x; return x;} +int get_dddTmr0ISR12(){int x; return x;} +int get_dddTmr0ISR13(){int x; return x;} +int get_dddTmr0ISR14(){int x; return x;} +int get_dddTmr0ISR15(){int x; return x;} +int get_dddTmr0ISR16(){int x; return x;} +int get_dddTmr0ISR17(){int x; return x;} +int get_dddTmr0ISR18(){int x; return x;} +int get_dddTmr0ISR19(){int x; return x;} +int get_dddTmr0ISR20(){int x; return x;} +int get_dddTmr0ISR21(){int x; return x;} + + +int set_dddAtriISR1(int p){int x; return x;} +int set_dddAtriISR2(int p){int x; return x;} +int set_dddAtriISR3(int p){int x; return x;} +int set_dddAtriISR4(int p){int x; return x;} +int set_dddAtriISR5(int p){int x; return x;} +int set_dddAtriISR6(int p){int x; return x;} +int set_dddAtriISR7(int p){int x; return x;} +int set_dddAtriISR8(int p){int x; return x;} +int set_dddAtriISR9(int p){int x; return x;} +int set_dddAtriISR10(int p){int x; return x;} +int set_dddAtriISR11(int p){int x; return x;} +int set_dddAtriISR12(int p){int x; return x;} +int set_dddAtriISR13(int p){int x; return x;} +int set_dddAtriISR14(int p){int x; return x;} +int set_dddAtriISR15(int p){int x; return x;} +int set_dddAtriISR16(int p){int x; return x;} +int set_dddAtriISR17(int p){int x; return x;} +int set_dddAtriISR18(int p){int x; return x;} +int set_dddAtriISR19(int p){int x; return x;} +int set_dddAtriISR20(int p){int x; return x;} +int set_dddAtriISR21(int p){int x; return x;} + +int get_dddAtriISR1(){int x; return x;} +int get_dddAtriISR2(){int x; return x;} +int get_dddAtriISR3(){int x; return x;} +int get_dddAtriISR4(){int x; return x;} +int get_dddAtriISR5(){int x; return x;} +int get_dddAtriISR6(){int x; return x;} +int get_dddAtriISR7(){int x; return x;} +int get_dddAtriISR8(){int x; return x;} +int get_dddAtriISR9(){int x; return x;} +int get_dddAtriISR10(){int x; return x;} +int get_dddAtriISR11(){int x; return x;} +int get_dddAtriISR12(){int x; return x;} +int get_dddAtriISR13(){int x; return x;} +int get_dddAtriISR14(){int x; return x;} +int get_dddAtriISR15(){int x; return x;} +int get_dddAtriISR16(){int x; return x;} +int get_dddAtriISR17(){int x; return x;} +int get_dddAtriISR18(){int x; return x;} +int get_dddAtriISR19(){int x; return x;} +int get_dddAtriISR20(){int x; return x;} +int get_dddAtriISR21(){int x; return x;} + +int set_test11(int p){int x; return x;} +int set_test12(int p){int x; return x;} +int set_test13(int p){int x; return x;} +int set_test14(int p){int x; return x;} +int set_test15(int p){int x; return x;} +int set_test16(int p){int x; return x;} +int set_test17(int p){int x; return x;} +int set_test18(int p){int x; return x;} +int set_test19(int p){int x; return x;} +int set_test110(int p){int x; return x;} +int set_test111(int p){int x; return x;} +int set_test112(int p){int x; return x;} +int set_test113(int p){int x; return x;} +int set_test114(int p){int x; return x;} +int set_test115(int p){int x; return x;} +int set_test116(int p){int x; return x;} +int set_test117(int p){int x; return x;} +int set_test118(int p){int x; return x;} +int set_test119(int p){int x; return x;} +int set_test120(int p){int x; return x;} +int set_test121(int p){int x; return x;} + +int get_test11(){int x; return x;} +int get_test12(){int x; return x;} +int get_test13(){int x; return x;} +int get_test14(){int x; return x;} +int get_test15(){int x; return x;} +int get_test16(){int x; return x;} +int get_test17(){int x; return x;} +int get_test18(){int x; return x;} +int get_test19(){int x; return x;} +int get_test110(){int x; return x;} +int get_test111(){int x; return x;} +int get_test112(){int x; return x;} +int get_test113(){int x; return x;} +int get_test114(){int x; return x;} +int get_test115(){int x; return x;} +int get_test116(){int x; return x;} +int get_test117(){int x; return x;} +int get_test118(){int x; return x;} +int get_test119(){int x; return x;} +int get_test120(){int x; return x;} +int get_test121(){int x; return x;} + + + +void setParametersDDD( int tLRI, int tAVpace, int tAVoffset, int tVBP, int tVRP, int tPVARP, + int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval){ + + sLRI = tLRI; + sCurInterval = tLRI; + sCurAVInterval = sAVsense; + sPrevAVInterval = sAVsense; + sCurVAInterval = tLRI - sAVsense; + sPrevVAInterval = tLRI - sAVsense; + sAVpace = tAVpace; + sAVoffset = tAVoffset; + sAVsense = sAVpace - sAVoffset; + sVBP = tVBP; + sVRP = tVRP; + sPVARP = tPVARP; + sOffset = sPVARP > sVRP ? sVRP : sPVARP; + + set_setParametersDDD1(sVBPflag); + set_setParametersDDD2(sEndofRP); + set_setParametersDDD3(sIsSense); + set_setParametersDDD4(sPaceAtri); + set_setParametersDDD5(sAtriFlag); + set_setParametersDDD6(sLRI); + set_setParametersDDD7(sVRP); + set_setParametersDDD8(sVBP); + set_setParametersDDD9(sPVARP); + set_setParametersDDD10(sAVpace); + set_setParametersDDD11(sAVoffset); + set_setParametersDDD12(sAVsense); + set_setParametersDDD13(sOffset); + set_setParametersDDD14(sPVARPflag); + set_setParametersDDD15(sCurInterval); + set_setParametersDDD16(sCurAVInterval); + set_setParametersDDD17(sCurVAInterval); + set_setParametersDDD18(sPrevVAInterval); + set_setParametersDDD19(sPrevAVInterval); + +} +# 125 "MAP/UNSAFE-exbench/WHALE-ddd1err.tmp.c" +void dddTmr0ISR(int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval, int ventb, int atrib){ + if (sAtriFlag){ + if (sPaceAtri){ + if (sEndofRP){ + atrib = 1; + ventb = 1; + if (sIsSense){ + startPaceAtri(0); + }else{ + startPaceAtri(1); + } + + sAtriFlag = 0; + sVBPflag = 1; + sIsSense = 0; + sPaceAtri = 0; + + + sPrevVAInterval = sCurVAInterval; + }else{ + atrib = 0; + ventb = 0; + sEndofRP = 1; + if (sIsSense){ + WriteTimer0(); + + }else{ + WriteTimer0(); + + } + } + }else{ + if (sPVARP > sVRP){ + if (!sPVARPflag){ + WriteTimer0(); + + ventb = 0; + sPVARPflag = 1; + }else{ + sPVARPflag = 0; + } + }else if (sPVARP < sVRP){ + if (!sPVARPflag){ + WriteTimer0(); + + atrib = 0; + sPVARPflag = 1; + }else{ + sPVARPflag = 0; + } + }else{ + sPVARPflag = 0; + } + + if (sPVARPflag == 0){ + atrib = 0; + ventb = 0; + if (sIsSense){ + WriteTimer0(); + + }else{ + WriteTimer0(); + + } + sEndofRP = 1; + sPaceAtri = 1; + } + } + }else{ + if (sIsSense){ + if (sVBPflag){ + sVBPflag = 0; + + ventb = 1; + + }else{ + + ventb = 1; + startPaceVent(0); + + sIsSense = 0; + sPaceAtri = 0; + sAtriFlag = 1; + + + sPrevAVInterval = sCurAVInterval; + + + sCurInterval = calcSmoothedInterval(sPrevAVInterval + sPrevVAInterval, sLRI); + sCurVAInterval = sCurInterval - sAVsense; + sCurAVInterval = sCurInterval - sCurVAInterval; + } + }else{ + if (sVBPflag){ + sVBPflag = 0; + ventb = 0; + WriteTimer0(); + + }else{ + + ventb = 1; + startPaceVent(1); + + WriteTimer0(); + + sPaceAtri = 0; + sAtriFlag = 1; + sIsSense = 0; + + + sPrevAVInterval = sCurAVInterval; + + + sCurInterval = calcSmoothedInterval(sPrevAVInterval + sPrevVAInterval, sLRI); + sCurVAInterval = sCurInterval - sAVsense; + sCurAVInterval = sCurInterval - sCurVAInterval; + + } + } + } + set_dddTmr0ISR1(sVBPflag); + set_dddTmr0ISR2(sEndofRP); + set_dddTmr0ISR3(sIsSense); + set_dddTmr0ISR4(sPaceAtri); + set_dddTmr0ISR5(sAtriFlag); + set_dddTmr0ISR6(sLRI); + set_dddTmr0ISR7(sVRP); + set_dddTmr0ISR8(sVBP); + set_dddTmr0ISR9(sPVARP); + set_dddTmr0ISR10(sAVpace); + set_dddTmr0ISR11(sAVoffset); + set_dddTmr0ISR12(sAVsense); + set_dddTmr0ISR13(sOffset); + set_dddTmr0ISR14(sPVARPflag); + set_dddTmr0ISR15(sCurInterval); + set_dddTmr0ISR16(sCurAVInterval); + set_dddTmr0ISR17(sCurVAInterval); + set_dddTmr0ISR18(sPrevVAInterval); + set_dddTmr0ISR19(sPrevAVInterval); + set_dddTmr0ISR20(ventb); + set_dddTmr0ISR21(atrib); + +} + +void dddVentISR(int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval, int ventb, int atrib){ + if (ventb) return; + + + sPrevAVInterval = ReadTimer0() - (sCurAVInterval); + + + sCurInterval = calcSmoothedInterval(sPrevAVInterval + sPrevVAInterval, sLRI); + sCurVAInterval = sCurInterval - sAVsense; + sCurAVInterval = sCurInterval - sCurVAInterval; + + if (sPVARP > sVRP){ + WriteTimer0(); + + }else{ + WriteTimer0(); + + } + sIsSense = 1; + sPaceAtri = 0; + sAtriFlag = 1; + + atrib = 1; + ventb = 1; + + if(isRTCommEnabled()){ + sendVentSense(); + } + set_dddVentISR1(sVBPflag); + set_dddVentISR2(sEndofRP); + set_dddVentISR3(sIsSense); + set_dddVentISR4(sPaceAtri); + set_dddVentISR5(sAtriFlag); + set_dddVentISR6(sLRI); + set_dddVentISR7(sVRP); + set_dddVentISR8(sVBP); + set_dddVentISR9(sPVARP); + set_dddVentISR10(sAVpace); + set_dddVentISR11(sAVoffset); + set_dddVentISR12(sAVsense); + set_dddVentISR13(sOffset); + set_dddVentISR14(sPVARPflag); + set_dddVentISR15(sCurInterval); + set_dddVentISR16(sCurAVInterval); + set_dddVentISR17(sCurVAInterval); + set_dddVentISR18(sPrevVAInterval); + set_dddVentISR19(sPrevAVInterval); + set_dddVentISR20(ventb); + set_dddVentISR21(atrib); + + +} + +void dddAtriISR(int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval, int ventb, int atrib){ + + if (atrib) return; + sIsSense = 1; + sVBPflag = 1; + + + sPrevVAInterval = ReadTimer0() - (sCurVAInterval); + + WriteTimer0(); + + sAtriFlag = 0; + atrib = 1; + ventb = 1; + + if (isRTCommEnabled()){ + sendAtriSense(); + } + set_dddAtriISR1(sVBPflag); + set_dddAtriISR2(sEndofRP); + set_dddAtriISR3(sIsSense); + set_dddAtriISR4(sPaceAtri); + set_dddAtriISR5(sAtriFlag); + set_dddAtriISR6(sLRI); + set_dddAtriISR7(sVRP); + set_dddAtriISR8(sVBP); + set_dddAtriISR9(sPVARP); + set_dddAtriISR10(sAVpace); + set_dddAtriISR11(sAVoffset); + set_dddAtriISR12(sAVsense); + set_dddAtriISR13(sOffset); + set_dddAtriISR14(sPVARPflag); + set_dddAtriISR15(sCurInterval); + set_dddAtriISR16(sCurAVInterval); + set_dddAtriISR17(sCurVAInterval); + set_dddAtriISR18(sPrevVAInterval); + set_dddAtriISR19(sPrevAVInterval); + set_dddAtriISR20(ventb); + set_dddAtriISR21(atrib); + + +} + + +int test1(int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval, int ventb, int atrib){ + + do{ + dddVentISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib); + + sVBPflag = get_dddVentISR1(); + sEndofRP = get_dddVentISR2(); + sIsSense = get_dddVentISR3(); + sPaceAtri = get_dddVentISR4(); + sAtriFlag = get_dddVentISR5(); + sLRI = get_dddVentISR6(); + sVRP = get_dddVentISR7(); + sVBP = get_dddVentISR8(); + sPVARP = get_dddVentISR9(); + sAVpace = get_dddVentISR10(); + sAVoffset = get_dddVentISR11(); + sAVsense = get_dddVentISR12(); + sOffset = get_dddVentISR13(); + sPVARPflag = get_dddVentISR14(); + sCurInterval = get_dddVentISR15(); + sCurAVInterval = get_dddVentISR16(); + sCurVAInterval = get_dddVentISR17(); + sPrevVAInterval = get_dddVentISR18(); + sPrevAVInterval = get_dddVentISR19(); + ventb = get_dddVentISR20(); + atrib = get_dddVentISR21(); + + dddTmr0ISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib); + + sVBPflag = get_dddTmr0ISR1(); + sEndofRP = get_dddTmr0ISR2(); + sIsSense = get_dddTmr0ISR3(); + sPaceAtri = get_dddTmr0ISR4(); + sAtriFlag = get_dddTmr0ISR5(); + sLRI = get_dddTmr0ISR6(); + sVRP = get_dddTmr0ISR7(); + sVBP = get_dddTmr0ISR8(); + sPVARP = get_dddTmr0ISR9(); + sAVpace = get_dddTmr0ISR10(); + sAVoffset = get_dddTmr0ISR11(); + sAVsense = get_dddTmr0ISR12(); + sOffset = get_dddTmr0ISR13(); + sPVARPflag = get_dddTmr0ISR14(); + sCurInterval = get_dddTmr0ISR15(); + sCurAVInterval = get_dddTmr0ISR16(); + sCurVAInterval = get_dddTmr0ISR17(); + sPrevVAInterval = get_dddTmr0ISR18(); + sPrevAVInterval = get_dddTmr0ISR19(); + ventb = get_dddTmr0ISR20(); + atrib = get_dddTmr0ISR21(); + + dddAtriISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib); + + sVBPflag = get_dddAtriISR1(); + sEndofRP = get_dddAtriISR2(); + sIsSense = get_dddAtriISR3(); + sPaceAtri = get_dddAtriISR4(); + sAtriFlag = get_dddAtriISR5(); + sLRI = get_dddAtriISR6(); + sVRP = get_dddAtriISR7(); + sVBP = get_dddAtriISR8(); + sPVARP = get_dddAtriISR9(); + sAVpace = get_dddAtriISR10(); + sAVoffset = get_dddAtriISR11(); + sAVsense = get_dddAtriISR12(); + sOffset = get_dddAtriISR13(); + sPVARPflag = get_dddAtriISR14(); + sCurInterval = get_dddAtriISR15(); + sCurAVInterval = get_dddAtriISR16(); + sCurVAInterval = get_dddAtriISR17(); + sPrevVAInterval = get_dddAtriISR18(); + sPrevAVInterval = get_dddAtriISR19(); + ventb = get_dddAtriISR20(); + atrib = get_dddAtriISR21(); + + dddTmr0ISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib); + + sVBPflag = get_dddTmr0ISR1(); + sEndofRP = get_dddTmr0ISR2(); + sIsSense = get_dddTmr0ISR3(); + sPaceAtri = get_dddTmr0ISR4(); + sAtriFlag = get_dddTmr0ISR5(); + sLRI = get_dddTmr0ISR6(); + sVRP = get_dddTmr0ISR7(); + sVBP = get_dddTmr0ISR8(); + sPVARP = get_dddTmr0ISR9(); + sAVpace = get_dddTmr0ISR10(); + sAVoffset = get_dddTmr0ISR11(); + sAVsense = get_dddTmr0ISR12(); + sOffset = get_dddTmr0ISR13(); + sPVARPflag = get_dddTmr0ISR14(); + sCurInterval = get_dddTmr0ISR15(); + sCurAVInterval = get_dddTmr0ISR16(); + sCurVAInterval = get_dddTmr0ISR17(); + sPrevVAInterval = get_dddTmr0ISR18(); + sPrevAVInterval = get_dddTmr0ISR19(); + ventb = get_dddTmr0ISR20(); + atrib = get_dddTmr0ISR21(); + }while (nondet()); + + + + set_test11(sVBPflag); + set_test12(sEndofRP); + set_test13(sIsSense); + set_test14(sPaceAtri); + set_test15(sAtriFlag); + set_test16(sLRI); + set_test17(sVRP); + set_test18(sVBP); + set_test19(sPVARP); + set_test110(sAVpace); + set_test111(sAVoffset); + set_test112(sAVsense); + set_test113(sOffset); + set_test114(sPVARPflag); + set_test115(sCurInterval); + set_test116(sCurAVInterval); + set_test117(sCurVAInterval); + set_test118(sPrevVAInterval); + set_test119(sPrevAVInterval); + set_test120(ventb); + set_test121(atrib); +} + +void main(){ + int sVBPflag; + int sEndofRP; + int sIsSense; + int sPaceAtri; + int sAtriFlag; + int sLRI; + int sVRP; + int sVBP; + int sPVARP; + int sAVpace; + int sAVoffset; + int sAVsense; + int sOffset; + int sPVARPflag; + int sCurInterval; + int sCurAVInterval; + int sCurVAInterval; + int sPrevVAInterval; + int sPrevAVInterval; + int u,v,w,x,y,z; + sIsSense = 0; + sEndofRP = 0; + sVBPflag = 0; + sAtriFlag = 1; + sPaceAtri = 0; + sPVARPflag = 0; + int ventb = 0; + int atrib = 0; + setParametersDDD(u,v,w,x,y,z, + sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval); + + int state; + + sVBPflag = get_setParametersDDD1(); + sEndofRP = get_setParametersDDD2(); + sIsSense = get_setParametersDDD3(); + sPaceAtri = get_setParametersDDD4(); + sAtriFlag = get_setParametersDDD5(); + sLRI = get_setParametersDDD6(); + sVRP = get_setParametersDDD7(); + sVBP = get_setParametersDDD8(); + sPVARP = get_setParametersDDD9(); + sAVpace = get_setParametersDDD10(); + sAVoffset = get_setParametersDDD11(); + sAVsense = get_setParametersDDD12(); + sOffset = get_setParametersDDD13(); + sPVARPflag = get_setParametersDDD14(); + sCurInterval = get_setParametersDDD15(); + sCurAVInterval = get_setParametersDDD16(); + sCurVAInterval = get_setParametersDDD17(); + sPrevVAInterval = get_setParametersDDD18(); + sPrevAVInterval = get_setParametersDDD19(); + int sOffset_ = sOffset; + test1(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib); + + + + sVBPflag = get_test11(); + sEndofRP = get_test12(); + sIsSense = get_test13(); + sPaceAtri = get_test14(); + sAtriFlag = get_test15(); + sLRI = get_test16(); + sVRP = get_test17(); + sVBP = get_test18(); + sPVARP = get_test19(); + sAVpace = get_test110(); + sAVoffset = get_test111(); + sAVsense = get_test112(); + sOffset = get_test113(); + sPVARPflag = get_test114(); + sCurInterval = get_test115(); + sCurAVInterval = get_test116(); + sCurVAInterval = get_test117(); + sPrevVAInterval = get_test118(); + sPrevAVInterval = get_test119(); + ventb = get_test120(); + atrib = get_test121(); + + if (ventb && atrib) + goto ERROR; + + return; + ERROR: assert(0); goto ERROR; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd2_VeriMAP_false.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd2_VeriMAP_false.c new file mode 100644 index 000000000..f29ced592 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd2_VeriMAP_false.c @@ -0,0 +1,962 @@ +int unknown(){int x; return x;} +unsigned int __VERIFIER_nondet_uint(); +int nondet(){int x; return x;} +int __VERIFIER_nondet_int(){int x; return x;} +void assert(int cond) {if (!cond) __VERIFIER_error();} +# 1 "MAP/SAFE-exbench/WHALE-ddd2.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/WHALE-ddd2.tmp.c" +# 57 "MAP/SAFE-exbench/WHALE-ddd2.tmp.c" +int set_setParametersDDD1(int p){int x; return x;} +int set_setParametersDDD2(int p){int x; return x;} +int set_setParametersDDD3(int p){int x; return x;} +int set_setParametersDDD4(int p){int x; return x;} +int set_setParametersDDD5(int p){int x; return x;} +int set_setParametersDDD6(int p){int x; return x;} +int set_setParametersDDD7(int p){int x; return x;} +int set_setParametersDDD8(int p){int x; return x;} +int set_setParametersDDD9(int p){int x; return x;} +int set_setParametersDDD10(int p){int x; return x;} +int set_setParametersDDD11(int p){int x; return x;} +int set_setParametersDDD12(int p){int x; return x;} +int set_setParametersDDD13(int p){int x; return x;} +int set_setParametersDDD14(int p){int x; return x;} +int set_setParametersDDD15(int p){int x; return x;} +int set_setParametersDDD16(int p){int x; return x;} +int set_setParametersDDD17(int p){int x; return x;} +int set_setParametersDDD18(int p){int x; return x;} +int set_setParametersDDD19(int p){int x; return x;} + +int get_setParametersDDD1(){int x; return x;} +int get_setParametersDDD2(){int x; return x;} +int get_setParametersDDD3(){int x; return x;} +int get_setParametersDDD4(){int x; return x;} +int get_setParametersDDD5(){int x; return x;} +int get_setParametersDDD6(){int x; return x;} +int get_setParametersDDD7(){int x; return x;} +int get_setParametersDDD8(){int x; return x;} +int get_setParametersDDD9(){int x; return x;} +int get_setParametersDDD10(){int x; return x;} +int get_setParametersDDD11(){int x; return x;} +int get_setParametersDDD12(){int x; return x;} +int get_setParametersDDD13(){int x; return x;} +int get_setParametersDDD14(){int x; return x;} +int get_setParametersDDD15(){int x; return x;} +int get_setParametersDDD16(){int x; return x;} +int get_setParametersDDD17(){int x; return x;} +int get_setParametersDDD18(){int x; return x;} +int get_setParametersDDD19(){int x; return x;} + +int ReadTimer0(){int x; return x;} +int WriteTimer0(){int x; return x;} +int calcSmoothedInterval(int a,int b){int x; return x;} +int isRTCommEnabled(){int x; return x;} +int sendVentSense(){int x; return x;} +int sendAtriSense(){int x; return x;} + +int set_dddVentISR1(int p){int x; return x;} +int set_dddVentISR2(int p){int x; return x;} +int set_dddVentISR3(int p){int x; return x;} +int set_dddVentISR4(int p){int x; return x;} +int set_dddVentISR5(int p){int x; return x;} +int set_dddVentISR6(int p){int x; return x;} +int set_dddVentISR7(int p){int x; return x;} +int set_dddVentISR8(int p){int x; return x;} +int set_dddVentISR9(int p){int x; return x;} +int set_dddVentISR10(int p){int x; return x;} +int set_dddVentISR11(int p){int x; return x;} +int set_dddVentISR12(int p){int x; return x;} +int set_dddVentISR13(int p){int x; return x;} +int set_dddVentISR14(int p){int x; return x;} +int set_dddVentISR15(int p){int x; return x;} +int set_dddVentISR16(int p){int x; return x;} +int set_dddVentISR17(int p){int x; return x;} +int set_dddVentISR18(int p){int x; return x;} +int set_dddVentISR19(int p){int x; return x;} +int set_dddVentISR20(int p){int x; return x;} +int set_dddVentISR21(int p){int x; return x;} + +int get_dddVentISR1(){int x; return x;} +int get_dddVentISR2(){int x; return x;} +int get_dddVentISR3(){int x; return x;} +int get_dddVentISR4(){int x; return x;} +int get_dddVentISR5(){int x; return x;} +int get_dddVentISR6(){int x; return x;} +int get_dddVentISR7(){int x; return x;} +int get_dddVentISR8(){int x; return x;} +int get_dddVentISR9(){int x; return x;} +int get_dddVentISR10(){int x; return x;} +int get_dddVentISR11(){int x; return x;} +int get_dddVentISR12(){int x; return x;} +int get_dddVentISR13(){int x; return x;} +int get_dddVentISR14(){int x; return x;} +int get_dddVentISR15(){int x; return x;} +int get_dddVentISR16(){int x; return x;} +int get_dddVentISR17(){int x; return x;} +int get_dddVentISR18(){int x; return x;} +int get_dddVentISR19(){int x; return x;} +int get_dddVentISR20(){int x; return x;} +int get_dddVentISR21(){int x; return x;} + +int startPaceAtri(int p){int x; return x;} +int startPaceVent(int p){int x; return x;} + +int set_dddTmr0ISR1(int p){int x; return x;} +int set_dddTmr0ISR2(int p){int x; return x;} +int set_dddTmr0ISR3(int p){int x; return x;} +int set_dddTmr0ISR4(int p){int x; return x;} +int set_dddTmr0ISR5(int p){int x; return x;} +int set_dddTmr0ISR6(int p){int x; return x;} +int set_dddTmr0ISR7(int p){int x; return x;} +int set_dddTmr0ISR8(int p){int x; return x;} +int set_dddTmr0ISR9(int p){int x; return x;} +int set_dddTmr0ISR10(int p){int x; return x;} +int set_dddTmr0ISR11(int p){int x; return x;} +int set_dddTmr0ISR12(int p){int x; return x;} +int set_dddTmr0ISR13(int p){int x; return x;} +int set_dddTmr0ISR14(int p){int x; return x;} +int set_dddTmr0ISR15(int p){int x; return x;} +int set_dddTmr0ISR16(int p){int x; return x;} +int set_dddTmr0ISR17(int p){int x; return x;} +int set_dddTmr0ISR18(int p){int x; return x;} +int set_dddTmr0ISR19(int p){int x; return x;} +int set_dddTmr0ISR20(int p){int x; return x;} +int set_dddTmr0ISR21(int p){int x; return x;} + +int get_dddTmr0ISR1(){int x; return x;} +int get_dddTmr0ISR2(){int x; return x;} +int get_dddTmr0ISR3(){int x; return x;} +int get_dddTmr0ISR4(){int x; return x;} +int get_dddTmr0ISR5(){int x; return x;} +int get_dddTmr0ISR6(){int x; return x;} +int get_dddTmr0ISR7(){int x; return x;} +int get_dddTmr0ISR8(){int x; return x;} +int get_dddTmr0ISR9(){int x; return x;} +int get_dddTmr0ISR10(){int x; return x;} +int get_dddTmr0ISR11(){int x; return x;} +int get_dddTmr0ISR12(){int x; return x;} +int get_dddTmr0ISR13(){int x; return x;} +int get_dddTmr0ISR14(){int x; return x;} +int get_dddTmr0ISR15(){int x; return x;} +int get_dddTmr0ISR16(){int x; return x;} +int get_dddTmr0ISR17(){int x; return x;} +int get_dddTmr0ISR18(){int x; return x;} +int get_dddTmr0ISR19(){int x; return x;} +int get_dddTmr0ISR20(){int x; return x;} +int get_dddTmr0ISR21(){int x; return x;} + + +int set_dddAtriISR1(int p){int x; return x;} +int set_dddAtriISR2(int p){int x; return x;} +int set_dddAtriISR3(int p){int x; return x;} +int set_dddAtriISR4(int p){int x; return x;} +int set_dddAtriISR5(int p){int x; return x;} +int set_dddAtriISR6(int p){int x; return x;} +int set_dddAtriISR7(int p){int x; return x;} +int set_dddAtriISR8(int p){int x; return x;} +int set_dddAtriISR9(int p){int x; return x;} +int set_dddAtriISR10(int p){int x; return x;} +int set_dddAtriISR11(int p){int x; return x;} +int set_dddAtriISR12(int p){int x; return x;} +int set_dddAtriISR13(int p){int x; return x;} +int set_dddAtriISR14(int p){int x; return x;} +int set_dddAtriISR15(int p){int x; return x;} +int set_dddAtriISR16(int p){int x; return x;} +int set_dddAtriISR17(int p){int x; return x;} +int set_dddAtriISR18(int p){int x; return x;} +int set_dddAtriISR19(int p){int x; return x;} +int set_dddAtriISR20(int p){int x; return x;} +int set_dddAtriISR21(int p){int x; return x;} + +int get_dddAtriISR1(){int x; return x;} +int get_dddAtriISR2(){int x; return x;} +int get_dddAtriISR3(){int x; return x;} +int get_dddAtriISR4(){int x; return x;} +int get_dddAtriISR5(){int x; return x;} +int get_dddAtriISR6(){int x; return x;} +int get_dddAtriISR7(){int x; return x;} +int get_dddAtriISR8(){int x; return x;} +int get_dddAtriISR9(){int x; return x;} +int get_dddAtriISR10(){int x; return x;} +int get_dddAtriISR11(){int x; return x;} +int get_dddAtriISR12(){int x; return x;} +int get_dddAtriISR13(){int x; return x;} +int get_dddAtriISR14(){int x; return x;} +int get_dddAtriISR15(){int x; return x;} +int get_dddAtriISR16(){int x; return x;} +int get_dddAtriISR17(){int x; return x;} +int get_dddAtriISR18(){int x; return x;} +int get_dddAtriISR19(){int x; return x;} +int get_dddAtriISR20(){int x; return x;} +int get_dddAtriISR21(){int x; return x;} + +int set_test11(int p){int x; return x;} +int set_test12(int p){int x; return x;} +int set_test13(int p){int x; return x;} +int set_test14(int p){int x; return x;} +int set_test15(int p){int x; return x;} +int set_test16(int p){int x; return x;} +int set_test17(int p){int x; return x;} +int set_test18(int p){int x; return x;} +int set_test19(int p){int x; return x;} +int set_test110(int p){int x; return x;} +int set_test111(int p){int x; return x;} +int set_test112(int p){int x; return x;} +int set_test113(int p){int x; return x;} +int set_test114(int p){int x; return x;} +int set_test115(int p){int x; return x;} +int set_test116(int p){int x; return x;} +int set_test117(int p){int x; return x;} +int set_test118(int p){int x; return x;} +int set_test119(int p){int x; return x;} +int set_test120(int p){int x; return x;} +int set_test121(int p){int x; return x;} + +int get_test11(){int x; return x;} +int get_test12(){int x; return x;} +int get_test13(){int x; return x;} +int get_test14(){int x; return x;} +int get_test15(){int x; return x;} +int get_test16(){int x; return x;} +int get_test17(){int x; return x;} +int get_test18(){int x; return x;} +int get_test19(){int x; return x;} +int get_test110(){int x; return x;} +int get_test111(){int x; return x;} +int get_test112(){int x; return x;} +int get_test113(){int x; return x;} +int get_test114(){int x; return x;} +int get_test115(){int x; return x;} +int get_test116(){int x; return x;} +int get_test117(){int x; return x;} +int get_test118(){int x; return x;} +int get_test119(){int x; return x;} +int get_test120(){int x; return x;} +int get_test121(){int x; return x;} + + +void setParametersDDD( int tLRI, int tAVpace, int tAVoffset, int tVBP, int tVRP, int tPVARP, + int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval){ + + sLRI = tLRI; + sCurInterval = tLRI; + sCurAVInterval = sAVsense; + sPrevAVInterval = sAVsense; + sCurVAInterval = tLRI - sAVsense; + sPrevVAInterval = tLRI - sAVsense; + sAVpace = tAVpace; + sAVoffset = tAVoffset; + sAVsense = sAVpace - sAVoffset; + sVBP = tVBP; + sVRP = tVRP; + sPVARP = tPVARP; + sOffset = sPVARP > sVRP ? sVRP : sPVARP; + + set_setParametersDDD1(sVBPflag); + set_setParametersDDD2(sEndofRP); + set_setParametersDDD3(sIsSense); + set_setParametersDDD4(sPaceAtri); + set_setParametersDDD5(sAtriFlag); + set_setParametersDDD6(sLRI); + set_setParametersDDD7(sVRP); + set_setParametersDDD8(sVBP); + set_setParametersDDD9(sPVARP); + set_setParametersDDD10(sAVpace); + set_setParametersDDD11(sAVoffset); + set_setParametersDDD12(sAVsense); + set_setParametersDDD13(sOffset); + set_setParametersDDD14(sPVARPflag); + set_setParametersDDD15(sCurInterval); + set_setParametersDDD16(sCurAVInterval); + set_setParametersDDD17(sCurVAInterval); + set_setParametersDDD18(sPrevVAInterval); + set_setParametersDDD19(sPrevAVInterval); + +} +# 125 "MAP/SAFE-exbench/WHALE-ddd2.tmp.c" +void dddTmr0ISR(int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval, int ventb, int atrib){ + if (sAtriFlag){ + if (sPaceAtri){ + if (sEndofRP){ + atrib = 1; + ventb = 1; + if (sIsSense){ + startPaceAtri(0); + }else{ + startPaceAtri(1); + } + + sAtriFlag = 0; + sVBPflag = 1; + sIsSense = 0; + sPaceAtri = 0; + + + sPrevVAInterval = sCurVAInterval; + }else{ + atrib = 0; + ventb = 0; + sEndofRP = 1; + if (sIsSense){ + WriteTimer0(); + + }else{ + WriteTimer0(); + + } + } + }else{ + if (sPVARP > sVRP){ + if (!sPVARPflag){ + WriteTimer0(); + + ventb = 0; + sPVARPflag = 1; + }else{ + sPVARPflag = 0; + } + }else if (sPVARP < sVRP){ + if (!sPVARPflag){ + WriteTimer0(); + + atrib = 0; + sPVARPflag = 1; + }else{ + sPVARPflag = 0; + } + }else{ + sPVARPflag = 0; + } + + if (sPVARPflag == 0){ + atrib = 0; + ventb = 0; + if (sIsSense){ + WriteTimer0(); + + }else{ + WriteTimer0(); + + } + sEndofRP = 1; + sPaceAtri = 1; + } + } + }else{ + if (sIsSense){ + if (sVBPflag){ + sVBPflag = 0; + ventb = 0; + + }else{ + + ventb = 1; + startPaceVent(0); + + sIsSense = 0; + sPaceAtri = 0; + sAtriFlag = 1; + + + sPrevAVInterval = sCurAVInterval; + + + sCurInterval = calcSmoothedInterval(sPrevAVInterval + sPrevVAInterval, sLRI); + sCurVAInterval = sCurInterval - sAVsense; + sCurAVInterval = sCurInterval - sCurVAInterval; + } + }else{ + if (sVBPflag){ + sVBPflag = 0; + ventb = 0; + WriteTimer0(); + + }else{ + + ventb = 1; + startPaceVent(1); + + WriteTimer0(); + + sPaceAtri = 0; + sAtriFlag = 1; + sIsSense = 0; + + + sPrevAVInterval = sCurAVInterval; + + + sCurInterval = calcSmoothedInterval(sPrevAVInterval + sPrevVAInterval, sLRI); + sCurVAInterval = sCurInterval - sAVsense; + sCurAVInterval = sCurInterval - sCurVAInterval; + + } + } + } + set_dddTmr0ISR1(sVBPflag); + set_dddTmr0ISR2(sEndofRP); + set_dddTmr0ISR3(sIsSense); + set_dddTmr0ISR4(sPaceAtri); + set_dddTmr0ISR5(sAtriFlag); + set_dddTmr0ISR6(sLRI); + set_dddTmr0ISR7(sVRP); + set_dddTmr0ISR8(sVBP); + set_dddTmr0ISR9(sPVARP); + set_dddTmr0ISR10(sAVpace); + set_dddTmr0ISR11(sAVoffset); + set_dddTmr0ISR12(sAVsense); + set_dddTmr0ISR13(sOffset); + set_dddTmr0ISR14(sPVARPflag); + set_dddTmr0ISR15(sCurInterval); + set_dddTmr0ISR16(sCurAVInterval); + set_dddTmr0ISR17(sCurVAInterval); + set_dddTmr0ISR18(sPrevVAInterval); + set_dddTmr0ISR19(sPrevAVInterval); + set_dddTmr0ISR20(ventb); + set_dddTmr0ISR21(atrib); + +} + +void dddVentISR(int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval, int ventb, int atrib){ + if (ventb) return; + + + sPrevAVInterval = ReadTimer0() - (sCurAVInterval); + + + sCurInterval = calcSmoothedInterval(sPrevAVInterval + sPrevVAInterval, sLRI); + sCurVAInterval = sCurInterval - sAVsense; + sCurAVInterval = sCurInterval - sCurVAInterval; + + if (sPVARP > sVRP){ + WriteTimer0(); + + }else{ + WriteTimer0(); + + } + sIsSense = 1; + sPaceAtri = 0; + sAtriFlag = 1; + + atrib = 1; + ventb = 1; + + if(isRTCommEnabled()){ + sendVentSense(); + } + set_dddVentISR1(sVBPflag); + set_dddVentISR2(sEndofRP); + set_dddVentISR3(sIsSense); + set_dddVentISR4(sPaceAtri); + set_dddVentISR5(sAtriFlag); + set_dddVentISR6(sLRI); + set_dddVentISR7(sVRP); + set_dddVentISR8(sVBP); + set_dddVentISR9(sPVARP); + set_dddVentISR10(sAVpace); + set_dddVentISR11(sAVoffset); + set_dddVentISR12(sAVsense); + set_dddVentISR13(sOffset); + set_dddVentISR14(sPVARPflag); + set_dddVentISR15(sCurInterval); + set_dddVentISR16(sCurAVInterval); + set_dddVentISR17(sCurVAInterval); + set_dddVentISR18(sPrevVAInterval); + set_dddVentISR19(sPrevAVInterval); + set_dddVentISR20(ventb); + set_dddVentISR21(atrib); + + +} + +void dddAtriISR(int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval, int ventb, int atrib){ + + if (atrib) return; + sIsSense = 1; + sVBPflag = 1; + + + sPrevVAInterval = ReadTimer0() - (sCurVAInterval); + + WriteTimer0(); + + sAtriFlag = 0; + atrib = 1; + ventb = 1; + + if (isRTCommEnabled()){ + sendAtriSense(); + } + set_dddAtriISR1(sVBPflag); + set_dddAtriISR2(sEndofRP); + set_dddAtriISR3(sIsSense); + set_dddAtriISR4(sPaceAtri); + set_dddAtriISR5(sAtriFlag); + set_dddAtriISR6(sLRI); + set_dddAtriISR7(sVRP); + set_dddAtriISR8(sVBP); + set_dddAtriISR9(sPVARP); + set_dddAtriISR10(sAVpace); + set_dddAtriISR11(sAVoffset); + set_dddAtriISR12(sAVsense); + set_dddAtriISR13(sOffset); + set_dddAtriISR14(sPVARPflag); + set_dddAtriISR15(sCurInterval); + set_dddAtriISR16(sCurAVInterval); + set_dddAtriISR17(sCurVAInterval); + set_dddAtriISR18(sPrevVAInterval); + set_dddAtriISR19(sPrevAVInterval); + set_dddAtriISR20(ventb); + set_dddAtriISR21(atrib); + + +} + + +int test1(int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval, int ventb, int atrib){ + int a,b,c,d,e,f; + + + if (a){ + sEndofRP = 1; + } + + if (b){ + sVBPflag = 1; + } + + if (c){ + sAtriFlag = 0; + } + + if (d){ + sPVARPflag = 1; + } + + if (e){ + sPaceAtri = 1; + } + + if (f){ + sIsSense = 1; + } + + if (sIsSense){ + if (sPaceAtri) + sPaceAtri = 0; + } + + if (sIsSense){ + if (sVBPflag) + sAtriFlag = 0; + } + + + do{ + dddVentISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib); + + sVBPflag = get_dddVentISR1(); + sEndofRP = get_dddVentISR2(); + sIsSense = get_dddVentISR3(); + sPaceAtri = get_dddVentISR4(); + sAtriFlag = get_dddVentISR5(); + sLRI = get_dddVentISR6(); + sVRP = get_dddVentISR7(); + sVBP = get_dddVentISR8(); + sPVARP = get_dddVentISR9(); + sAVpace = get_dddVentISR10(); + sAVoffset = get_dddVentISR11(); + sAVsense = get_dddVentISR12(); + sOffset = get_dddVentISR13(); + sPVARPflag = get_dddVentISR14(); + sCurInterval = get_dddVentISR15(); + sCurAVInterval = get_dddVentISR16(); + sCurVAInterval = get_dddVentISR17(); + sPrevVAInterval = get_dddVentISR18(); + sPrevAVInterval = get_dddVentISR19(); + ventb = get_dddVentISR20(); + atrib = get_dddVentISR21(); + + dddTmr0ISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib); + + sVBPflag = get_dddTmr0ISR1(); + sEndofRP = get_dddTmr0ISR2(); + sIsSense = get_dddTmr0ISR3(); + sPaceAtri = get_dddTmr0ISR4(); + sAtriFlag = get_dddTmr0ISR5(); + sLRI = get_dddTmr0ISR6(); + sVRP = get_dddTmr0ISR7(); + sVBP = get_dddTmr0ISR8(); + sPVARP = get_dddTmr0ISR9(); + sAVpace = get_dddTmr0ISR10(); + sAVoffset = get_dddTmr0ISR11(); + sAVsense = get_dddTmr0ISR12(); + sOffset = get_dddTmr0ISR13(); + sPVARPflag = get_dddTmr0ISR14(); + sCurInterval = get_dddTmr0ISR15(); + sCurAVInterval = get_dddTmr0ISR16(); + sCurVAInterval = get_dddTmr0ISR17(); + sPrevVAInterval = get_dddTmr0ISR18(); + sPrevAVInterval = get_dddTmr0ISR19(); + ventb = get_dddTmr0ISR20(); + atrib = get_dddTmr0ISR21(); + + dddAtriISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib); + + sVBPflag = get_dddAtriISR1(); + sEndofRP = get_dddAtriISR2(); + sIsSense = get_dddAtriISR3(); + sPaceAtri = get_dddAtriISR4(); + sAtriFlag = get_dddAtriISR5(); + sLRI = get_dddAtriISR6(); + sVRP = get_dddAtriISR7(); + sVBP = get_dddAtriISR8(); + sPVARP = get_dddAtriISR9(); + sAVpace = get_dddAtriISR10(); + sAVoffset = get_dddAtriISR11(); + sAVsense = get_dddAtriISR12(); + sOffset = get_dddAtriISR13(); + sPVARPflag = get_dddAtriISR14(); + sCurInterval = get_dddAtriISR15(); + sCurAVInterval = get_dddAtriISR16(); + sCurVAInterval = get_dddAtriISR17(); + sPrevVAInterval = get_dddAtriISR18(); + sPrevAVInterval = get_dddAtriISR19(); + ventb = get_dddAtriISR20(); + atrib = get_dddAtriISR21(); + + dddTmr0ISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib); + + sVBPflag = get_dddTmr0ISR1(); + sEndofRP = get_dddTmr0ISR2(); + sIsSense = get_dddTmr0ISR3(); + sPaceAtri = get_dddTmr0ISR4(); + sAtriFlag = get_dddTmr0ISR5(); + sLRI = get_dddTmr0ISR6(); + sVRP = get_dddTmr0ISR7(); + sVBP = get_dddTmr0ISR8(); + sPVARP = get_dddTmr0ISR9(); + sAVpace = get_dddTmr0ISR10(); + sAVoffset = get_dddTmr0ISR11(); + sAVsense = get_dddTmr0ISR12(); + sOffset = get_dddTmr0ISR13(); + sPVARPflag = get_dddTmr0ISR14(); + sCurInterval = get_dddTmr0ISR15(); + sCurAVInterval = get_dddTmr0ISR16(); + sCurVAInterval = get_dddTmr0ISR17(); + sPrevVAInterval = get_dddTmr0ISR18(); + sPrevAVInterval = get_dddTmr0ISR19(); + ventb = get_dddTmr0ISR20(); + atrib = get_dddTmr0ISR21(); + }while (nondet()); + + + + set_test11(sVBPflag); + set_test12(sEndofRP); + set_test13(sIsSense); + set_test14(sPaceAtri); + set_test15(sAtriFlag); + set_test16(sLRI); + set_test17(sVRP); + set_test18(sVBP); + set_test19(sPVARP); + set_test110(sAVpace); + set_test111(sAVoffset); + set_test112(sAVsense); + set_test113(sOffset); + set_test114(sPVARPflag); + set_test115(sCurInterval); + set_test116(sCurAVInterval); + set_test117(sCurVAInterval); + set_test118(sPrevVAInterval); + set_test119(sPrevAVInterval); + set_test120(ventb); + set_test121(atrib); +} + +void main(){ + int sVBPflag; + int sEndofRP; + int sIsSense; + int sPaceAtri; + int sAtriFlag; + int sLRI; + int sVRP; + int sVBP; + int sPVARP; + int sAVpace; + int sAVoffset; + int sAVsense; + int sOffset; + int sPVARPflag; + int sCurInterval; + int sCurAVInterval; + int sCurVAInterval; + int sPrevVAInterval; + int sPrevAVInterval; + int u,v,w,x,y,z; + sIsSense = 0; + sEndofRP = 0; + sVBPflag = 0; + sAtriFlag = 1; + sPaceAtri = 0; + sPVARPflag = 0; + int ventb = 0; + int atrib = 0; + setParametersDDD(u,v,w,x,y,z, + sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval); + + int state; + + sVBPflag = get_setParametersDDD1(); + sEndofRP = get_setParametersDDD2(); + sIsSense = get_setParametersDDD3(); + sPaceAtri = get_setParametersDDD4(); + sAtriFlag = get_setParametersDDD5(); + sLRI = get_setParametersDDD6(); + sVRP = get_setParametersDDD7(); + sVBP = get_setParametersDDD8(); + sPVARP = get_setParametersDDD9(); + sAVpace = get_setParametersDDD10(); + sAVoffset = get_setParametersDDD11(); + sAVsense = get_setParametersDDD12(); + sOffset = get_setParametersDDD13(); + sPVARPflag = get_setParametersDDD14(); + sCurInterval = get_setParametersDDD15(); + sCurAVInterval = get_setParametersDDD16(); + sCurVAInterval = get_setParametersDDD17(); + sPrevVAInterval = get_setParametersDDD18(); + sPrevAVInterval = get_setParametersDDD19(); + int sOffset_ = sOffset; + test1(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib); + + + + sVBPflag = get_test11(); + sEndofRP = get_test12(); + sIsSense = get_test13(); + sPaceAtri = get_test14(); + sAtriFlag = get_test15(); + sLRI = get_test16(); + sVRP = get_test17(); + sVBP = get_test18(); + sPVARP = get_test19(); + sAVpace = get_test110(); + sAVoffset = get_test111(); + sAVsense = get_test112(); + sOffset = get_test113(); + sPVARPflag = get_test114(); + sCurInterval = get_test115(); + sCurAVInterval = get_test116(); + sCurVAInterval = get_test117(); + sPrevVAInterval = get_test118(); + sPrevAVInterval = get_test119(); + ventb = get_test120(); + atrib = get_test121(); + + if (ventb && atrib) + goto ERROR; + + return; + ERROR: assert(0); goto ERROR; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd2err_VeriMAP_false.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd2err_VeriMAP_false.c new file mode 100644 index 000000000..fbd634dc8 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd2err_VeriMAP_false.c @@ -0,0 +1,962 @@ +int unknown(){int x; return x;} +unsigned int __VERIFIER_nondet_uint(); +int nondet(){int x; return x;} +int __VERIFIER_nondet_int(){int x; return x;} +void assert(int cond) {if (!cond) __VERIFIER_error();} +# 1 "MAP/UNSAFE-exbench/WHALE-ddd2err.tmp.c" +# 1 "" +# 1 "MAP/UNSAFE-exbench/WHALE-ddd2err.tmp.c" +# 57 "MAP/UNSAFE-exbench/WHALE-ddd2err.tmp.c" +int set_setParametersDDD1(int p){int x; return x;} +int set_setParametersDDD2(int p){int x; return x;} +int set_setParametersDDD3(int p){int x; return x;} +int set_setParametersDDD4(int p){int x; return x;} +int set_setParametersDDD5(int p){int x; return x;} +int set_setParametersDDD6(int p){int x; return x;} +int set_setParametersDDD7(int p){int x; return x;} +int set_setParametersDDD8(int p){int x; return x;} +int set_setParametersDDD9(int p){int x; return x;} +int set_setParametersDDD10(int p){int x; return x;} +int set_setParametersDDD11(int p){int x; return x;} +int set_setParametersDDD12(int p){int x; return x;} +int set_setParametersDDD13(int p){int x; return x;} +int set_setParametersDDD14(int p){int x; return x;} +int set_setParametersDDD15(int p){int x; return x;} +int set_setParametersDDD16(int p){int x; return x;} +int set_setParametersDDD17(int p){int x; return x;} +int set_setParametersDDD18(int p){int x; return x;} +int set_setParametersDDD19(int p){int x; return x;} + +int get_setParametersDDD1(){int x; return x;} +int get_setParametersDDD2(){int x; return x;} +int get_setParametersDDD3(){int x; return x;} +int get_setParametersDDD4(){int x; return x;} +int get_setParametersDDD5(){int x; return x;} +int get_setParametersDDD6(){int x; return x;} +int get_setParametersDDD7(){int x; return x;} +int get_setParametersDDD8(){int x; return x;} +int get_setParametersDDD9(){int x; return x;} +int get_setParametersDDD10(){int x; return x;} +int get_setParametersDDD11(){int x; return x;} +int get_setParametersDDD12(){int x; return x;} +int get_setParametersDDD13(){int x; return x;} +int get_setParametersDDD14(){int x; return x;} +int get_setParametersDDD15(){int x; return x;} +int get_setParametersDDD16(){int x; return x;} +int get_setParametersDDD17(){int x; return x;} +int get_setParametersDDD18(){int x; return x;} +int get_setParametersDDD19(){int x; return x;} + +int ReadTimer0(){int x; return x;} +int WriteTimer0(){int x; return x;} +int calcSmoothedInterval(int a,int b){int x; return x;} +int isRTCommEnabled(){int x; return x;} +int sendVentSense(){int x; return x;} +int sendAtriSense(){int x; return x;} + +int set_dddVentISR1(int p){int x; return x;} +int set_dddVentISR2(int p){int x; return x;} +int set_dddVentISR3(int p){int x; return x;} +int set_dddVentISR4(int p){int x; return x;} +int set_dddVentISR5(int p){int x; return x;} +int set_dddVentISR6(int p){int x; return x;} +int set_dddVentISR7(int p){int x; return x;} +int set_dddVentISR8(int p){int x; return x;} +int set_dddVentISR9(int p){int x; return x;} +int set_dddVentISR10(int p){int x; return x;} +int set_dddVentISR11(int p){int x; return x;} +int set_dddVentISR12(int p){int x; return x;} +int set_dddVentISR13(int p){int x; return x;} +int set_dddVentISR14(int p){int x; return x;} +int set_dddVentISR15(int p){int x; return x;} +int set_dddVentISR16(int p){int x; return x;} +int set_dddVentISR17(int p){int x; return x;} +int set_dddVentISR18(int p){int x; return x;} +int set_dddVentISR19(int p){int x; return x;} +int set_dddVentISR20(int p){int x; return x;} +int set_dddVentISR21(int p){int x; return x;} + +int get_dddVentISR1(){int x; return x;} +int get_dddVentISR2(){int x; return x;} +int get_dddVentISR3(){int x; return x;} +int get_dddVentISR4(){int x; return x;} +int get_dddVentISR5(){int x; return x;} +int get_dddVentISR6(){int x; return x;} +int get_dddVentISR7(){int x; return x;} +int get_dddVentISR8(){int x; return x;} +int get_dddVentISR9(){int x; return x;} +int get_dddVentISR10(){int x; return x;} +int get_dddVentISR11(){int x; return x;} +int get_dddVentISR12(){int x; return x;} +int get_dddVentISR13(){int x; return x;} +int get_dddVentISR14(){int x; return x;} +int get_dddVentISR15(){int x; return x;} +int get_dddVentISR16(){int x; return x;} +int get_dddVentISR17(){int x; return x;} +int get_dddVentISR18(){int x; return x;} +int get_dddVentISR19(){int x; return x;} +int get_dddVentISR20(){int x; return x;} +int get_dddVentISR21(){int x; return x;} + +int startPaceAtri(int p){int x; return x;} +int startPaceVent(int p){int x; return x;} + +int set_dddTmr0ISR1(int p){int x; return x;} +int set_dddTmr0ISR2(int p){int x; return x;} +int set_dddTmr0ISR3(int p){int x; return x;} +int set_dddTmr0ISR4(int p){int x; return x;} +int set_dddTmr0ISR5(int p){int x; return x;} +int set_dddTmr0ISR6(int p){int x; return x;} +int set_dddTmr0ISR7(int p){int x; return x;} +int set_dddTmr0ISR8(int p){int x; return x;} +int set_dddTmr0ISR9(int p){int x; return x;} +int set_dddTmr0ISR10(int p){int x; return x;} +int set_dddTmr0ISR11(int p){int x; return x;} +int set_dddTmr0ISR12(int p){int x; return x;} +int set_dddTmr0ISR13(int p){int x; return x;} +int set_dddTmr0ISR14(int p){int x; return x;} +int set_dddTmr0ISR15(int p){int x; return x;} +int set_dddTmr0ISR16(int p){int x; return x;} +int set_dddTmr0ISR17(int p){int x; return x;} +int set_dddTmr0ISR18(int p){int x; return x;} +int set_dddTmr0ISR19(int p){int x; return x;} +int set_dddTmr0ISR20(int p){int x; return x;} +int set_dddTmr0ISR21(int p){int x; return x;} + +int get_dddTmr0ISR1(){int x; return x;} +int get_dddTmr0ISR2(){int x; return x;} +int get_dddTmr0ISR3(){int x; return x;} +int get_dddTmr0ISR4(){int x; return x;} +int get_dddTmr0ISR5(){int x; return x;} +int get_dddTmr0ISR6(){int x; return x;} +int get_dddTmr0ISR7(){int x; return x;} +int get_dddTmr0ISR8(){int x; return x;} +int get_dddTmr0ISR9(){int x; return x;} +int get_dddTmr0ISR10(){int x; return x;} +int get_dddTmr0ISR11(){int x; return x;} +int get_dddTmr0ISR12(){int x; return x;} +int get_dddTmr0ISR13(){int x; return x;} +int get_dddTmr0ISR14(){int x; return x;} +int get_dddTmr0ISR15(){int x; return x;} +int get_dddTmr0ISR16(){int x; return x;} +int get_dddTmr0ISR17(){int x; return x;} +int get_dddTmr0ISR18(){int x; return x;} +int get_dddTmr0ISR19(){int x; return x;} +int get_dddTmr0ISR20(){int x; return x;} +int get_dddTmr0ISR21(){int x; return x;} + + +int set_dddAtriISR1(int p){int x; return x;} +int set_dddAtriISR2(int p){int x; return x;} +int set_dddAtriISR3(int p){int x; return x;} +int set_dddAtriISR4(int p){int x; return x;} +int set_dddAtriISR5(int p){int x; return x;} +int set_dddAtriISR6(int p){int x; return x;} +int set_dddAtriISR7(int p){int x; return x;} +int set_dddAtriISR8(int p){int x; return x;} +int set_dddAtriISR9(int p){int x; return x;} +int set_dddAtriISR10(int p){int x; return x;} +int set_dddAtriISR11(int p){int x; return x;} +int set_dddAtriISR12(int p){int x; return x;} +int set_dddAtriISR13(int p){int x; return x;} +int set_dddAtriISR14(int p){int x; return x;} +int set_dddAtriISR15(int p){int x; return x;} +int set_dddAtriISR16(int p){int x; return x;} +int set_dddAtriISR17(int p){int x; return x;} +int set_dddAtriISR18(int p){int x; return x;} +int set_dddAtriISR19(int p){int x; return x;} +int set_dddAtriISR20(int p){int x; return x;} +int set_dddAtriISR21(int p){int x; return x;} + +int get_dddAtriISR1(){int x; return x;} +int get_dddAtriISR2(){int x; return x;} +int get_dddAtriISR3(){int x; return x;} +int get_dddAtriISR4(){int x; return x;} +int get_dddAtriISR5(){int x; return x;} +int get_dddAtriISR6(){int x; return x;} +int get_dddAtriISR7(){int x; return x;} +int get_dddAtriISR8(){int x; return x;} +int get_dddAtriISR9(){int x; return x;} +int get_dddAtriISR10(){int x; return x;} +int get_dddAtriISR11(){int x; return x;} +int get_dddAtriISR12(){int x; return x;} +int get_dddAtriISR13(){int x; return x;} +int get_dddAtriISR14(){int x; return x;} +int get_dddAtriISR15(){int x; return x;} +int get_dddAtriISR16(){int x; return x;} +int get_dddAtriISR17(){int x; return x;} +int get_dddAtriISR18(){int x; return x;} +int get_dddAtriISR19(){int x; return x;} +int get_dddAtriISR20(){int x; return x;} +int get_dddAtriISR21(){int x; return x;} + +int set_test11(int p){int x; return x;} +int set_test12(int p){int x; return x;} +int set_test13(int p){int x; return x;} +int set_test14(int p){int x; return x;} +int set_test15(int p){int x; return x;} +int set_test16(int p){int x; return x;} +int set_test17(int p){int x; return x;} +int set_test18(int p){int x; return x;} +int set_test19(int p){int x; return x;} +int set_test110(int p){int x; return x;} +int set_test111(int p){int x; return x;} +int set_test112(int p){int x; return x;} +int set_test113(int p){int x; return x;} +int set_test114(int p){int x; return x;} +int set_test115(int p){int x; return x;} +int set_test116(int p){int x; return x;} +int set_test117(int p){int x; return x;} +int set_test118(int p){int x; return x;} +int set_test119(int p){int x; return x;} +int set_test120(int p){int x; return x;} +int set_test121(int p){int x; return x;} + +int get_test11(){int x; return x;} +int get_test12(){int x; return x;} +int get_test13(){int x; return x;} +int get_test14(){int x; return x;} +int get_test15(){int x; return x;} +int get_test16(){int x; return x;} +int get_test17(){int x; return x;} +int get_test18(){int x; return x;} +int get_test19(){int x; return x;} +int get_test110(){int x; return x;} +int get_test111(){int x; return x;} +int get_test112(){int x; return x;} +int get_test113(){int x; return x;} +int get_test114(){int x; return x;} +int get_test115(){int x; return x;} +int get_test116(){int x; return x;} +int get_test117(){int x; return x;} +int get_test118(){int x; return x;} +int get_test119(){int x; return x;} +int get_test120(){int x; return x;} +int get_test121(){int x; return x;} + + +void setParametersDDD( int tLRI, int tAVpace, int tAVoffset, int tVBP, int tVRP, int tPVARP, + int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval){ + + sLRI = tLRI; + sCurInterval = tLRI; + sCurAVInterval = sAVsense; + sPrevAVInterval = sAVsense; + sCurVAInterval = tLRI - sAVsense; + sPrevVAInterval = tLRI - sAVsense; + sAVpace = tAVpace; + sAVoffset = tAVoffset; + sAVsense = sAVpace - sAVoffset; + sVBP = tVBP; + sVRP = tVRP; + sPVARP = tPVARP; + sOffset = sPVARP > sVRP ? sVRP : sPVARP; + + set_setParametersDDD1(sVBPflag); + set_setParametersDDD2(sEndofRP); + set_setParametersDDD3(sIsSense); + set_setParametersDDD4(sPaceAtri); + set_setParametersDDD5(sAtriFlag); + set_setParametersDDD6(sLRI); + set_setParametersDDD7(sVRP); + set_setParametersDDD8(sVBP); + set_setParametersDDD9(sPVARP); + set_setParametersDDD10(sAVpace); + set_setParametersDDD11(sAVoffset); + set_setParametersDDD12(sAVsense); + set_setParametersDDD13(sOffset); + set_setParametersDDD14(sPVARPflag); + set_setParametersDDD15(sCurInterval); + set_setParametersDDD16(sCurAVInterval); + set_setParametersDDD17(sCurVAInterval); + set_setParametersDDD18(sPrevVAInterval); + set_setParametersDDD19(sPrevAVInterval); + +} +# 125 "MAP/UNSAFE-exbench/WHALE-ddd2err.tmp.c" +void dddTmr0ISR(int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval, int ventb, int atrib){ + if (sAtriFlag){ + if (sPaceAtri){ + if (sEndofRP){ + atrib = 1; + ventb = 1; + if (sIsSense){ + startPaceAtri(0); + }else{ + startPaceAtri(1); + } + + sAtriFlag = 0; + sVBPflag = 1; + sIsSense = 0; + sPaceAtri = 0; + + + sPrevVAInterval = sCurVAInterval; + }else{ + atrib = 0; + ventb = 0; + sEndofRP = 1; + if (sIsSense){ + WriteTimer0(); + + }else{ + WriteTimer0(); + + } + } + }else{ + if (sPVARP > sVRP){ + if (!sPVARPflag){ + WriteTimer0(); + + ventb = 0; + sPVARPflag = 1; + }else{ + sPVARPflag = 0; + } + }else if (sPVARP < sVRP){ + if (!sPVARPflag){ + WriteTimer0(); + + atrib = 0; + sPVARPflag = 1; + }else{ + sPVARPflag = 0; + } + }else{ + sPVARPflag = 0; + } + + if (sPVARPflag == 0){ + atrib = 0; + ventb = 0; + if (sIsSense){ + WriteTimer0(); + + }else{ + WriteTimer0(); + + } + sEndofRP = 1; + sPaceAtri = 1; + } + } + }else{ + if (sIsSense){ + if (sVBPflag){ + sVBPflag = 0; + ventb = 1; + + }else{ + + ventb = 1; + startPaceVent(0); + + sIsSense = 0; + sPaceAtri = 0; + sAtriFlag = 1; + + + sPrevAVInterval = sCurAVInterval; + + + sCurInterval = calcSmoothedInterval(sPrevAVInterval + sPrevVAInterval, sLRI); + sCurVAInterval = sCurInterval - sAVsense; + sCurAVInterval = sCurInterval - sCurVAInterval; + } + }else{ + if (sVBPflag){ + sVBPflag = 0; + ventb = 0; + WriteTimer0(); + + }else{ + + ventb = 1; + startPaceVent(1); + + WriteTimer0(); + + sPaceAtri = 0; + sAtriFlag = 1; + sIsSense = 0; + + + sPrevAVInterval = sCurAVInterval; + + + sCurInterval = calcSmoothedInterval(sPrevAVInterval + sPrevVAInterval, sLRI); + sCurVAInterval = sCurInterval - sAVsense; + sCurAVInterval = sCurInterval - sCurVAInterval; + + } + } + } + set_dddTmr0ISR1(sVBPflag); + set_dddTmr0ISR2(sEndofRP); + set_dddTmr0ISR3(sIsSense); + set_dddTmr0ISR4(sPaceAtri); + set_dddTmr0ISR5(sAtriFlag); + set_dddTmr0ISR6(sLRI); + set_dddTmr0ISR7(sVRP); + set_dddTmr0ISR8(sVBP); + set_dddTmr0ISR9(sPVARP); + set_dddTmr0ISR10(sAVpace); + set_dddTmr0ISR11(sAVoffset); + set_dddTmr0ISR12(sAVsense); + set_dddTmr0ISR13(sOffset); + set_dddTmr0ISR14(sPVARPflag); + set_dddTmr0ISR15(sCurInterval); + set_dddTmr0ISR16(sCurAVInterval); + set_dddTmr0ISR17(sCurVAInterval); + set_dddTmr0ISR18(sPrevVAInterval); + set_dddTmr0ISR19(sPrevAVInterval); + set_dddTmr0ISR20(ventb); + set_dddTmr0ISR21(atrib); + +} + +void dddVentISR(int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval, int ventb, int atrib){ + if (ventb) return; + + + sPrevAVInterval = ReadTimer0() - (sCurAVInterval); + + + sCurInterval = calcSmoothedInterval(sPrevAVInterval + sPrevVAInterval, sLRI); + sCurVAInterval = sCurInterval - sAVsense; + sCurAVInterval = sCurInterval - sCurVAInterval; + + if (sPVARP > sVRP){ + WriteTimer0(); + + }else{ + WriteTimer0(); + + } + sIsSense = 1; + sPaceAtri = 0; + sAtriFlag = 1; + + atrib = 1; + ventb = 1; + + if(isRTCommEnabled()){ + sendVentSense(); + } + set_dddVentISR1(sVBPflag); + set_dddVentISR2(sEndofRP); + set_dddVentISR3(sIsSense); + set_dddVentISR4(sPaceAtri); + set_dddVentISR5(sAtriFlag); + set_dddVentISR6(sLRI); + set_dddVentISR7(sVRP); + set_dddVentISR8(sVBP); + set_dddVentISR9(sPVARP); + set_dddVentISR10(sAVpace); + set_dddVentISR11(sAVoffset); + set_dddVentISR12(sAVsense); + set_dddVentISR13(sOffset); + set_dddVentISR14(sPVARPflag); + set_dddVentISR15(sCurInterval); + set_dddVentISR16(sCurAVInterval); + set_dddVentISR17(sCurVAInterval); + set_dddVentISR18(sPrevVAInterval); + set_dddVentISR19(sPrevAVInterval); + set_dddVentISR20(ventb); + set_dddVentISR21(atrib); + + +} + +void dddAtriISR(int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval, int ventb, int atrib){ + + if (atrib) return; + sIsSense = 1; + sVBPflag = 1; + + + sPrevVAInterval = ReadTimer0() - (sCurVAInterval); + + WriteTimer0(); + + sAtriFlag = 0; + atrib = 1; + ventb = 1; + + if (isRTCommEnabled()){ + sendAtriSense(); + } + set_dddAtriISR1(sVBPflag); + set_dddAtriISR2(sEndofRP); + set_dddAtriISR3(sIsSense); + set_dddAtriISR4(sPaceAtri); + set_dddAtriISR5(sAtriFlag); + set_dddAtriISR6(sLRI); + set_dddAtriISR7(sVRP); + set_dddAtriISR8(sVBP); + set_dddAtriISR9(sPVARP); + set_dddAtriISR10(sAVpace); + set_dddAtriISR11(sAVoffset); + set_dddAtriISR12(sAVsense); + set_dddAtriISR13(sOffset); + set_dddAtriISR14(sPVARPflag); + set_dddAtriISR15(sCurInterval); + set_dddAtriISR16(sCurAVInterval); + set_dddAtriISR17(sCurVAInterval); + set_dddAtriISR18(sPrevVAInterval); + set_dddAtriISR19(sPrevAVInterval); + set_dddAtriISR20(ventb); + set_dddAtriISR21(atrib); + + +} + + +int test1(int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval, int ventb, int atrib){ + int a,b,c,d,e,f; + + + if (a){ + sEndofRP = 1; + } + + if (b){ + sVBPflag = 1; + } + + if (c){ + sAtriFlag = 0; + } + + if (d){ + sPVARPflag = 1; + } + + if (e){ + sPaceAtri = 1; + } + + if (f){ + sIsSense = 1; + } + + if (sIsSense){ + if (sPaceAtri) + sPaceAtri = 0; + } + + if (sIsSense){ + if (sVBPflag) + sAtriFlag = 0; + } + + + do{ + dddVentISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib); + + sVBPflag = get_dddVentISR1(); + sEndofRP = get_dddVentISR2(); + sIsSense = get_dddVentISR3(); + sPaceAtri = get_dddVentISR4(); + sAtriFlag = get_dddVentISR5(); + sLRI = get_dddVentISR6(); + sVRP = get_dddVentISR7(); + sVBP = get_dddVentISR8(); + sPVARP = get_dddVentISR9(); + sAVpace = get_dddVentISR10(); + sAVoffset = get_dddVentISR11(); + sAVsense = get_dddVentISR12(); + sOffset = get_dddVentISR13(); + sPVARPflag = get_dddVentISR14(); + sCurInterval = get_dddVentISR15(); + sCurAVInterval = get_dddVentISR16(); + sCurVAInterval = get_dddVentISR17(); + sPrevVAInterval = get_dddVentISR18(); + sPrevAVInterval = get_dddVentISR19(); + ventb = get_dddVentISR20(); + atrib = get_dddVentISR21(); + + dddTmr0ISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib); + + sVBPflag = get_dddTmr0ISR1(); + sEndofRP = get_dddTmr0ISR2(); + sIsSense = get_dddTmr0ISR3(); + sPaceAtri = get_dddTmr0ISR4(); + sAtriFlag = get_dddTmr0ISR5(); + sLRI = get_dddTmr0ISR6(); + sVRP = get_dddTmr0ISR7(); + sVBP = get_dddTmr0ISR8(); + sPVARP = get_dddTmr0ISR9(); + sAVpace = get_dddTmr0ISR10(); + sAVoffset = get_dddTmr0ISR11(); + sAVsense = get_dddTmr0ISR12(); + sOffset = get_dddTmr0ISR13(); + sPVARPflag = get_dddTmr0ISR14(); + sCurInterval = get_dddTmr0ISR15(); + sCurAVInterval = get_dddTmr0ISR16(); + sCurVAInterval = get_dddTmr0ISR17(); + sPrevVAInterval = get_dddTmr0ISR18(); + sPrevAVInterval = get_dddTmr0ISR19(); + ventb = get_dddTmr0ISR20(); + atrib = get_dddTmr0ISR21(); + + dddAtriISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib); + + sVBPflag = get_dddAtriISR1(); + sEndofRP = get_dddAtriISR2(); + sIsSense = get_dddAtriISR3(); + sPaceAtri = get_dddAtriISR4(); + sAtriFlag = get_dddAtriISR5(); + sLRI = get_dddAtriISR6(); + sVRP = get_dddAtriISR7(); + sVBP = get_dddAtriISR8(); + sPVARP = get_dddAtriISR9(); + sAVpace = get_dddAtriISR10(); + sAVoffset = get_dddAtriISR11(); + sAVsense = get_dddAtriISR12(); + sOffset = get_dddAtriISR13(); + sPVARPflag = get_dddAtriISR14(); + sCurInterval = get_dddAtriISR15(); + sCurAVInterval = get_dddAtriISR16(); + sCurVAInterval = get_dddAtriISR17(); + sPrevVAInterval = get_dddAtriISR18(); + sPrevAVInterval = get_dddAtriISR19(); + ventb = get_dddAtriISR20(); + atrib = get_dddAtriISR21(); + + dddTmr0ISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib); + + sVBPflag = get_dddTmr0ISR1(); + sEndofRP = get_dddTmr0ISR2(); + sIsSense = get_dddTmr0ISR3(); + sPaceAtri = get_dddTmr0ISR4(); + sAtriFlag = get_dddTmr0ISR5(); + sLRI = get_dddTmr0ISR6(); + sVRP = get_dddTmr0ISR7(); + sVBP = get_dddTmr0ISR8(); + sPVARP = get_dddTmr0ISR9(); + sAVpace = get_dddTmr0ISR10(); + sAVoffset = get_dddTmr0ISR11(); + sAVsense = get_dddTmr0ISR12(); + sOffset = get_dddTmr0ISR13(); + sPVARPflag = get_dddTmr0ISR14(); + sCurInterval = get_dddTmr0ISR15(); + sCurAVInterval = get_dddTmr0ISR16(); + sCurVAInterval = get_dddTmr0ISR17(); + sPrevVAInterval = get_dddTmr0ISR18(); + sPrevAVInterval = get_dddTmr0ISR19(); + ventb = get_dddTmr0ISR20(); + atrib = get_dddTmr0ISR21(); + }while (nondet()); + + + + set_test11(sVBPflag); + set_test12(sEndofRP); + set_test13(sIsSense); + set_test14(sPaceAtri); + set_test15(sAtriFlag); + set_test16(sLRI); + set_test17(sVRP); + set_test18(sVBP); + set_test19(sPVARP); + set_test110(sAVpace); + set_test111(sAVoffset); + set_test112(sAVsense); + set_test113(sOffset); + set_test114(sPVARPflag); + set_test115(sCurInterval); + set_test116(sCurAVInterval); + set_test117(sCurVAInterval); + set_test118(sPrevVAInterval); + set_test119(sPrevAVInterval); + set_test120(ventb); + set_test121(atrib); +} + +void main(){ + int sVBPflag; + int sEndofRP; + int sIsSense; + int sPaceAtri; + int sAtriFlag; + int sLRI; + int sVRP; + int sVBP; + int sPVARP; + int sAVpace; + int sAVoffset; + int sAVsense; + int sOffset; + int sPVARPflag; + int sCurInterval; + int sCurAVInterval; + int sCurVAInterval; + int sPrevVAInterval; + int sPrevAVInterval; + int u,v,w,x,y,z; + sIsSense = 0; + sEndofRP = 0; + sVBPflag = 0; + sAtriFlag = 1; + sPaceAtri = 0; + sPVARPflag = 0; + int ventb = 0; + int atrib = 0; + setParametersDDD(u,v,w,x,y,z, + sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval); + + int state; + + sVBPflag = get_setParametersDDD1(); + sEndofRP = get_setParametersDDD2(); + sIsSense = get_setParametersDDD3(); + sPaceAtri = get_setParametersDDD4(); + sAtriFlag = get_setParametersDDD5(); + sLRI = get_setParametersDDD6(); + sVRP = get_setParametersDDD7(); + sVBP = get_setParametersDDD8(); + sPVARP = get_setParametersDDD9(); + sAVpace = get_setParametersDDD10(); + sAVoffset = get_setParametersDDD11(); + sAVsense = get_setParametersDDD12(); + sOffset = get_setParametersDDD13(); + sPVARPflag = get_setParametersDDD14(); + sCurInterval = get_setParametersDDD15(); + sCurAVInterval = get_setParametersDDD16(); + sCurVAInterval = get_setParametersDDD17(); + sPrevVAInterval = get_setParametersDDD18(); + sPrevAVInterval = get_setParametersDDD19(); + int sOffset_ = sOffset; + test1(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib); + + + + sVBPflag = get_test11(); + sEndofRP = get_test12(); + sIsSense = get_test13(); + sPaceAtri = get_test14(); + sAtriFlag = get_test15(); + sLRI = get_test16(); + sVRP = get_test17(); + sVBP = get_test18(); + sPVARP = get_test19(); + sAVpace = get_test110(); + sAVoffset = get_test111(); + sAVsense = get_test112(); + sOffset = get_test113(); + sPVARPflag = get_test114(); + sCurInterval = get_test115(); + sCurAVInterval = get_test116(); + sCurVAInterval = get_test117(); + sPrevVAInterval = get_test118(); + sPrevAVInterval = get_test119(); + ventb = get_test120(); + atrib = get_test121(); + + if (ventb && atrib) + goto ERROR; + + return; + ERROR: assert(0); goto ERROR; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd3_VeriMAP_false.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd3_VeriMAP_false.c new file mode 100644 index 000000000..714074600 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd3_VeriMAP_false.c @@ -0,0 +1,1349 @@ +int unknown(){int x; return x;} +unsigned int __VERIFIER_nondet_uint(); +int nondet(){int x; return x;} +int __VERIFIER_nondet_int(){int x; return x;} +void assert(int cond) {if (!cond) __VERIFIER_error();} +# 1 "MAP/SAFE-exbench/WHALE-ddd3.tmp.c" +# 1 "" +# 1 "MAP/SAFE-exbench/WHALE-ddd3.tmp.c" +# 18 "MAP/SAFE-exbench/WHALE-ddd3.tmp.c" +int set_setParametersDDD1(int p){int x; return x;} +int set_setParametersDDD2(int p){int x; return x;} +int set_setParametersDDD3(int p){int x; return x;} +int set_setParametersDDD4(int p){int x; return x;} +int set_setParametersDDD5(int p){int x; return x;} +int set_setParametersDDD6(int p){int x; return x;} +int set_setParametersDDD7(int p){int x; return x;} +int set_setParametersDDD8(int p){int x; return x;} +int set_setParametersDDD9(int p){int x; return x;} +int set_setParametersDDD10(int p){int x; return x;} +int set_setParametersDDD11(int p){int x; return x;} +int set_setParametersDDD12(int p){int x; return x;} +int set_setParametersDDD13(int p){int x; return x;} +int set_setParametersDDD14(int p){int x; return x;} +int set_setParametersDDD15(int p){int x; return x;} +int set_setParametersDDD16(int p){int x; return x;} +int set_setParametersDDD17(int p){int x; return x;} +int set_setParametersDDD18(int p){int x; return x;} +int set_setParametersDDD19(int p){int x; return x;} + +int get_setParametersDDD1(){int x; return x;} +int get_setParametersDDD2(){int x; return x;} +int get_setParametersDDD3(){int x; return x;} +int get_setParametersDDD4(){int x; return x;} +int get_setParametersDDD5(){int x; return x;} +int get_setParametersDDD6(){int x; return x;} +int get_setParametersDDD7(){int x; return x;} +int get_setParametersDDD8(){int x; return x;} +int get_setParametersDDD9(){int x; return x;} +int get_setParametersDDD10(){int x; return x;} +int get_setParametersDDD11(){int x; return x;} +int get_setParametersDDD12(){int x; return x;} +int get_setParametersDDD13(){int x; return x;} +int get_setParametersDDD14(){int x; return x;} +int get_setParametersDDD15(){int x; return x;} +int get_setParametersDDD16(){int x; return x;} +int get_setParametersDDD17(){int x; return x;} +int get_setParametersDDD18(){int x; return x;} +int get_setParametersDDD19(){int x; return x;} + +int ReadTimer0(){int x; return x;} +int WriteTimer0(){int x; return x;} +int calcSmoothedInterval(int a,int b){int x; return x;} +int isRTCommEnabled(){int x; return x;} +int sendVentSense(){int x; return x;} +int sendAtriSense(){int x; return x;} + +int set_dddVentISR1(int p){int x; return x;} +int set_dddVentISR2(int p){int x; return x;} +int set_dddVentISR3(int p){int x; return x;} +int set_dddVentISR4(int p){int x; return x;} +int set_dddVentISR5(int p){int x; return x;} +int set_dddVentISR6(int p){int x; return x;} +int set_dddVentISR7(int p){int x; return x;} +int set_dddVentISR8(int p){int x; return x;} +int set_dddVentISR9(int p){int x; return x;} +int set_dddVentISR10(int p){int x; return x;} +int set_dddVentISR11(int p){int x; return x;} +int set_dddVentISR12(int p){int x; return x;} +int set_dddVentISR13(int p){int x; return x;} +int set_dddVentISR14(int p){int x; return x;} +int set_dddVentISR15(int p){int x; return x;} +int set_dddVentISR16(int p){int x; return x;} +int set_dddVentISR17(int p){int x; return x;} +int set_dddVentISR18(int p){int x; return x;} +int set_dddVentISR19(int p){int x; return x;} +int set_dddVentISR20(int p){int x; return x;} +int set_dddVentISR21(int p){int x; return x;} + +int get_dddVentISR1(){int x; return x;} +int get_dddVentISR2(){int x; return x;} +int get_dddVentISR3(){int x; return x;} +int get_dddVentISR4(){int x; return x;} +int get_dddVentISR5(){int x; return x;} +int get_dddVentISR6(){int x; return x;} +int get_dddVentISR7(){int x; return x;} +int get_dddVentISR8(){int x; return x;} +int get_dddVentISR9(){int x; return x;} +int get_dddVentISR10(){int x; return x;} +int get_dddVentISR11(){int x; return x;} +int get_dddVentISR12(){int x; return x;} +int get_dddVentISR13(){int x; return x;} +int get_dddVentISR14(){int x; return x;} +int get_dddVentISR15(){int x; return x;} +int get_dddVentISR16(){int x; return x;} +int get_dddVentISR17(){int x; return x;} +int get_dddVentISR18(){int x; return x;} +int get_dddVentISR19(){int x; return x;} +int get_dddVentISR20(){int x; return x;} +int get_dddVentISR21(){int x; return x;} + +int startPaceAtri(int p){int x; return x;} +int startPaceVent(int p){int x; return x;} + +int set_dddTmr0ISR1(int p){int x; return x;} +int set_dddTmr0ISR2(int p){int x; return x;} +int set_dddTmr0ISR3(int p){int x; return x;} +int set_dddTmr0ISR4(int p){int x; return x;} +int set_dddTmr0ISR5(int p){int x; return x;} +int set_dddTmr0ISR6(int p){int x; return x;} +int set_dddTmr0ISR7(int p){int x; return x;} +int set_dddTmr0ISR8(int p){int x; return x;} +int set_dddTmr0ISR9(int p){int x; return x;} +int set_dddTmr0ISR10(int p){int x; return x;} +int set_dddTmr0ISR11(int p){int x; return x;} +int set_dddTmr0ISR12(int p){int x; return x;} +int set_dddTmr0ISR13(int p){int x; return x;} +int set_dddTmr0ISR14(int p){int x; return x;} +int set_dddTmr0ISR15(int p){int x; return x;} +int set_dddTmr0ISR16(int p){int x; return x;} +int set_dddTmr0ISR17(int p){int x; return x;} +int set_dddTmr0ISR18(int p){int x; return x;} +int set_dddTmr0ISR19(int p){int x; return x;} +int set_dddTmr0ISR20(int p){int x; return x;} +int set_dddTmr0ISR21(int p){int x; return x;} + +int get_dddTmr0ISR1(){int x; return x;} +int get_dddTmr0ISR2(){int x; return x;} +int get_dddTmr0ISR3(){int x; return x;} +int get_dddTmr0ISR4(){int x; return x;} +int get_dddTmr0ISR5(){int x; return x;} +int get_dddTmr0ISR6(){int x; return x;} +int get_dddTmr0ISR7(){int x; return x;} +int get_dddTmr0ISR8(){int x; return x;} +int get_dddTmr0ISR9(){int x; return x;} +int get_dddTmr0ISR10(){int x; return x;} +int get_dddTmr0ISR11(){int x; return x;} +int get_dddTmr0ISR12(){int x; return x;} +int get_dddTmr0ISR13(){int x; return x;} +int get_dddTmr0ISR14(){int x; return x;} +int get_dddTmr0ISR15(){int x; return x;} +int get_dddTmr0ISR16(){int x; return x;} +int get_dddTmr0ISR17(){int x; return x;} +int get_dddTmr0ISR18(){int x; return x;} +int get_dddTmr0ISR19(){int x; return x;} +int get_dddTmr0ISR20(){int x; return x;} +int get_dddTmr0ISR21(){int x; return x;} + + +int set_dddAtriISR1(int p){int x; return x;} +int set_dddAtriISR2(int p){int x; return x;} +int set_dddAtriISR3(int p){int x; return x;} +int set_dddAtriISR4(int p){int x; return x;} +int set_dddAtriISR5(int p){int x; return x;} +int set_dddAtriISR6(int p){int x; return x;} +int set_dddAtriISR7(int p){int x; return x;} +int set_dddAtriISR8(int p){int x; return x;} +int set_dddAtriISR9(int p){int x; return x;} +int set_dddAtriISR10(int p){int x; return x;} +int set_dddAtriISR11(int p){int x; return x;} +int set_dddAtriISR12(int p){int x; return x;} +int set_dddAtriISR13(int p){int x; return x;} +int set_dddAtriISR14(int p){int x; return x;} +int set_dddAtriISR15(int p){int x; return x;} +int set_dddAtriISR16(int p){int x; return x;} +int set_dddAtriISR17(int p){int x; return x;} +int set_dddAtriISR18(int p){int x; return x;} +int set_dddAtriISR19(int p){int x; return x;} +int set_dddAtriISR20(int p){int x; return x;} +int set_dddAtriISR21(int p){int x; return x;} + +int get_dddAtriISR1(){int x; return x;} +int get_dddAtriISR2(){int x; return x;} +int get_dddAtriISR3(){int x; return x;} +int get_dddAtriISR4(){int x; return x;} +int get_dddAtriISR5(){int x; return x;} +int get_dddAtriISR6(){int x; return x;} +int get_dddAtriISR7(){int x; return x;} +int get_dddAtriISR8(){int x; return x;} +int get_dddAtriISR9(){int x; return x;} +int get_dddAtriISR10(){int x; return x;} +int get_dddAtriISR11(){int x; return x;} +int get_dddAtriISR12(){int x; return x;} +int get_dddAtriISR13(){int x; return x;} +int get_dddAtriISR14(){int x; return x;} +int get_dddAtriISR15(){int x; return x;} +int get_dddAtriISR16(){int x; return x;} +int get_dddAtriISR17(){int x; return x;} +int get_dddAtriISR18(){int x; return x;} +int get_dddAtriISR19(){int x; return x;} +int get_dddAtriISR20(){int x; return x;} +int get_dddAtriISR21(){int x; return x;} + +int set_test11(int p){int x; return x;} +int set_test12(int p){int x; return x;} +int set_test13(int p){int x; return x;} +int set_test14(int p){int x; return x;} +int set_test15(int p){int x; return x;} +int set_test16(int p){int x; return x;} +int set_test17(int p){int x; return x;} +int set_test18(int p){int x; return x;} +int set_test19(int p){int x; return x;} +int set_test110(int p){int x; return x;} +int set_test111(int p){int x; return x;} +int set_test112(int p){int x; return x;} +int set_test113(int p){int x; return x;} +int set_test114(int p){int x; return x;} +int set_test115(int p){int x; return x;} +int set_test116(int p){int x; return x;} +int set_test117(int p){int x; return x;} +int set_test118(int p){int x; return x;} +int set_test119(int p){int x; return x;} +int set_test120(int p){int x; return x;} +int set_test121(int p){int x; return x;} + +int get_test11(){int x; return x;} +int get_test12(){int x; return x;} +int get_test13(){int x; return x;} +int get_test14(){int x; return x;} +int get_test15(){int x; return x;} +int get_test16(){int x; return x;} +int get_test17(){int x; return x;} +int get_test18(){int x; return x;} +int get_test19(){int x; return x;} +int get_test110(){int x; return x;} +int get_test111(){int x; return x;} +int get_test112(){int x; return x;} +int get_test113(){int x; return x;} +int get_test114(){int x; return x;} +int get_test115(){int x; return x;} +int get_test116(){int x; return x;} +int get_test117(){int x; return x;} +int get_test118(){int x; return x;} +int get_test119(){int x; return x;} +int get_test120(){int x; return x;} +int get_test121(){int x; return x;} + + +void setParametersDDD( int tLRI, int tAVpace, int tAVoffset, int tVBP, int tVRP, int tPVARP, + int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval){ + + sLRI = tLRI; + sCurInterval = tLRI; + sCurAVInterval = sAVsense; + sPrevAVInterval = sAVsense; + sCurVAInterval = tLRI - sAVsense; + sPrevVAInterval = tLRI - sAVsense; + sAVpace = tAVpace; + sAVoffset = tAVoffset; + sAVsense = sAVpace - sAVoffset; + sVBP = tVBP; + sVRP = tVRP; + sPVARP = tPVARP; + sOffset = sPVARP > sVRP ? sVRP : sPVARP; + + set_setParametersDDD1(sVBPflag); + set_setParametersDDD2(sEndofRP); + set_setParametersDDD3(sIsSense); + set_setParametersDDD4(sPaceAtri); + set_setParametersDDD5(sAtriFlag); + set_setParametersDDD6(sLRI); + set_setParametersDDD7(sVRP); + set_setParametersDDD8(sVBP); + set_setParametersDDD9(sPVARP); + set_setParametersDDD10(sAVpace); + set_setParametersDDD11(sAVoffset); + set_setParametersDDD12(sAVsense); + set_setParametersDDD13(sOffset); + set_setParametersDDD14(sPVARPflag); + set_setParametersDDD15(sCurInterval); + set_setParametersDDD16(sCurAVInterval); + set_setParametersDDD17(sCurVAInterval); + set_setParametersDDD18(sPrevVAInterval); + set_setParametersDDD19(sPrevAVInterval); + +} +# 86 "MAP/SAFE-exbench/WHALE-ddd3.tmp.c" +int dddTmr0ISR(int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval, int ventb, int atrib, int err){ + if (sAtriFlag){ + if (sPaceAtri){ + if (sEndofRP){ + atrib = 1; + + ventb = 1; + if (sIsSense){ + startPaceAtri(0); + }else{ + startPaceAtri(1); + } + + sAtriFlag = 0; + sVBPflag = 1; + sIsSense = 0; + sPaceAtri = 0; + + + sPrevVAInterval = sCurVAInterval; + }else{ + atrib = 0; + ventb = 0; + sEndofRP = 1; + if (sIsSense){ + WriteTimer0(); + + }else{ + WriteTimer0(); + + } + } + }else{ + if (sPVARP > sVRP){ + if (!sPVARPflag){ + WriteTimer0(); + + ventb = 0; + sPVARPflag = 1; + }else{ + sPVARPflag = 0; + } + }else if (sPVARP < sVRP){ + if (!sPVARPflag){ + WriteTimer0(); + + atrib = 0; + sPVARPflag = 1; + }else{ + sPVARPflag = 0; + } + }else{ + sPVARPflag = 0; + } + + if (sPVARPflag == 0){ + atrib = 0; + ventb = 0; + if (sIsSense){ + WriteTimer0(); + + }else{ + WriteTimer0(); + + } + sEndofRP = 1; + sPaceAtri = 1; + } + } + }else{ + if (sIsSense){ + if (sVBPflag){ + sVBPflag = 0; + ventb = 0; + + }else{ + + + ventb = 1; + startPaceVent(0); + + sIsSense = 0; + sPaceAtri = 0; + sAtriFlag = 1; + + + sPrevAVInterval = sCurAVInterval; + + + sCurInterval = calcSmoothedInterval(sPrevAVInterval + sPrevVAInterval, sLRI); + sCurVAInterval = sCurInterval - sAVsense; + sCurAVInterval = sCurInterval - sCurVAInterval; + } + }else{ + if (sVBPflag){ + sVBPflag = 0; + ventb = 0; + WriteTimer0(); + + }else{ + + + ventb = 1; + startPaceVent(1); + + WriteTimer0(); + + sPaceAtri = 0; + sAtriFlag = 1; + sIsSense = 0; + + + sPrevAVInterval = sCurAVInterval; + + + sCurInterval = calcSmoothedInterval(sPrevAVInterval + sPrevVAInterval, sLRI); + sCurVAInterval = sCurInterval - sAVsense; + sCurAVInterval = sCurInterval - sCurVAInterval; + + } + } + } + set_dddTmr0ISR1(sVBPflag); + set_dddTmr0ISR2(sEndofRP); + set_dddTmr0ISR3(sIsSense); + set_dddTmr0ISR4(sPaceAtri); + set_dddTmr0ISR5(sAtriFlag); + set_dddTmr0ISR6(sLRI); + set_dddTmr0ISR7(sVRP); + set_dddTmr0ISR8(sVBP); + set_dddTmr0ISR9(sPVARP); + set_dddTmr0ISR10(sAVpace); + set_dddTmr0ISR11(sAVoffset); + set_dddTmr0ISR12(sAVsense); + set_dddTmr0ISR13(sOffset); + set_dddTmr0ISR14(sPVARPflag); + set_dddTmr0ISR15(sCurInterval); + set_dddTmr0ISR16(sCurAVInterval); + set_dddTmr0ISR17(sCurVAInterval); + set_dddTmr0ISR18(sPrevVAInterval); + set_dddTmr0ISR19(sPrevAVInterval); + set_dddTmr0ISR20(ventb); + set_dddTmr0ISR21(atrib); + + return err; +} + +int dddVentISR(int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval, int ventb, int atrib, int err){ + if (ventb) return err; + + + sPrevAVInterval = ReadTimer0() - (sCurAVInterval); + + + sCurInterval = calcSmoothedInterval(sPrevAVInterval + sPrevVAInterval, sLRI); + sCurVAInterval = sCurInterval - sAVsense; + sCurAVInterval = sCurInterval - sCurVAInterval; + + if (sPVARP > sVRP){ + WriteTimer0(); + + }else{ + WriteTimer0(); + + } + sIsSense = 1; + sPaceAtri = 0; + sAtriFlag = 1; + + atrib = 1; + + + ventb = 1; + + if(isRTCommEnabled()){ + sendVentSense(); + } + set_dddVentISR1(sVBPflag); + set_dddVentISR2(sEndofRP); + set_dddVentISR3(sIsSense); + set_dddVentISR4(sPaceAtri); + set_dddVentISR5(sAtriFlag); + set_dddVentISR6(sLRI); + set_dddVentISR7(sVRP); + set_dddVentISR8(sVBP); + set_dddVentISR9(sPVARP); + set_dddVentISR10(sAVpace); + set_dddVentISR11(sAVoffset); + set_dddVentISR12(sAVsense); + set_dddVentISR13(sOffset); + set_dddVentISR14(sPVARPflag); + set_dddVentISR15(sCurInterval); + set_dddVentISR16(sCurAVInterval); + set_dddVentISR17(sCurVAInterval); + set_dddVentISR18(sPrevVAInterval); + set_dddVentISR19(sPrevAVInterval); + set_dddVentISR20(ventb); + set_dddVentISR21(atrib); + + return err; + +} + +int dddAtriISR(int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval, int ventb, int atrib, int err){ + + if (atrib) return err; + sIsSense = 1; + sVBPflag = 1; + + + sPrevVAInterval = ReadTimer0() - (sCurVAInterval); + + WriteTimer0(); + + sAtriFlag = 0; + + atrib = 1; + ventb = 1; + + if (isRTCommEnabled()){ + sendAtriSense(); + } + set_dddAtriISR1(sVBPflag); + set_dddAtriISR2(sEndofRP); + set_dddAtriISR3(sIsSense); + set_dddAtriISR4(sPaceAtri); + set_dddAtriISR5(sAtriFlag); + set_dddAtriISR6(sLRI); + set_dddAtriISR7(sVRP); + set_dddAtriISR8(sVBP); + set_dddAtriISR9(sPVARP); + set_dddAtriISR10(sAVpace); + set_dddAtriISR11(sAVoffset); + set_dddAtriISR12(sAVsense); + set_dddAtriISR13(sOffset); + set_dddAtriISR14(sPVARPflag); + set_dddAtriISR15(sCurInterval); + set_dddAtriISR16(sCurAVInterval); + set_dddAtriISR17(sCurVAInterval); + set_dddAtriISR18(sPrevVAInterval); + set_dddAtriISR19(sPrevAVInterval); + set_dddAtriISR20(ventb); + set_dddAtriISR21(atrib); + + return err; +} + + +int test1(int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval, int ventb, int atrib, int err){ + int a , b ; + int ventb_; + do{ + ventb_ = ventb; + a = nondet(); + b = nondet(); + if (ventb){ + if (atrib){ + err = dddTmr0ISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib, err); + + sVBPflag = get_dddTmr0ISR1(); + sEndofRP = get_dddTmr0ISR2(); + sIsSense = get_dddTmr0ISR3(); + sPaceAtri = get_dddTmr0ISR4(); + sAtriFlag = get_dddTmr0ISR5(); + sLRI = get_dddTmr0ISR6(); + sVRP = get_dddTmr0ISR7(); + sVBP = get_dddTmr0ISR8(); + sPVARP = get_dddTmr0ISR9(); + sAVpace = get_dddTmr0ISR10(); + sAVoffset = get_dddTmr0ISR11(); + sAVsense = get_dddTmr0ISR12(); + sOffset = get_dddTmr0ISR13(); + sPVARPflag = get_dddTmr0ISR14(); + sCurInterval = get_dddTmr0ISR15(); + sCurAVInterval = get_dddTmr0ISR16(); + sCurVAInterval = get_dddTmr0ISR17(); + sPrevVAInterval = get_dddTmr0ISR18(); + sPrevAVInterval = get_dddTmr0ISR19(); + ventb = get_dddTmr0ISR20(); + atrib = get_dddTmr0ISR21(); + + }else{ + if (a){ + err = dddTmr0ISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib, err); + + sVBPflag = get_dddTmr0ISR1(); + sEndofRP = get_dddTmr0ISR2(); + sIsSense = get_dddTmr0ISR3(); + sPaceAtri = get_dddTmr0ISR4(); + sAtriFlag = get_dddTmr0ISR5(); + sLRI = get_dddTmr0ISR6(); + sVRP = get_dddTmr0ISR7(); + sVBP = get_dddTmr0ISR8(); + sPVARP = get_dddTmr0ISR9(); + sAVpace = get_dddTmr0ISR10(); + sAVoffset = get_dddTmr0ISR11(); + sAVsense = get_dddTmr0ISR12(); + sOffset = get_dddTmr0ISR13(); + sPVARPflag = get_dddTmr0ISR14(); + sCurInterval = get_dddTmr0ISR15(); + sCurAVInterval = get_dddTmr0ISR16(); + sCurVAInterval = get_dddTmr0ISR17(); + sPrevVAInterval = get_dddTmr0ISR18(); + sPrevAVInterval = get_dddTmr0ISR19(); + ventb = get_dddTmr0ISR20(); + atrib = get_dddTmr0ISR21(); + + }else{ + + err = dddAtriISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib, err); + + sVBPflag = get_dddAtriISR1(); + sEndofRP = get_dddAtriISR2(); + sIsSense = get_dddAtriISR3(); + sPaceAtri = get_dddAtriISR4(); + sAtriFlag = get_dddAtriISR5(); + sLRI = get_dddAtriISR6(); + sVRP = get_dddAtriISR7(); + sVBP = get_dddAtriISR8(); + sPVARP = get_dddAtriISR9(); + sAVpace = get_dddAtriISR10(); + sAVoffset = get_dddAtriISR11(); + sAVsense = get_dddAtriISR12(); + sOffset = get_dddAtriISR13(); + sPVARPflag = get_dddAtriISR14(); + sCurInterval = get_dddAtriISR15(); + sCurAVInterval = get_dddAtriISR16(); + sCurVAInterval = get_dddAtriISR17(); + sPrevVAInterval = get_dddAtriISR18(); + sPrevAVInterval = get_dddAtriISR19(); + ventb = get_dddAtriISR20(); + atrib = get_dddAtriISR21(); + + + } + } + }else{ + if (atrib){ + if (ventb){ + err = dddTmr0ISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib, err); + + sVBPflag = get_dddTmr0ISR1(); + sEndofRP = get_dddTmr0ISR2(); + sIsSense = get_dddTmr0ISR3(); + sPaceAtri = get_dddTmr0ISR4(); + sAtriFlag = get_dddTmr0ISR5(); + sLRI = get_dddTmr0ISR6(); + sVRP = get_dddTmr0ISR7(); + sVBP = get_dddTmr0ISR8(); + sPVARP = get_dddTmr0ISR9(); + sAVpace = get_dddTmr0ISR10(); + sAVoffset = get_dddTmr0ISR11(); + sAVsense = get_dddTmr0ISR12(); + sOffset = get_dddTmr0ISR13(); + sPVARPflag = get_dddTmr0ISR14(); + sCurInterval = get_dddTmr0ISR15(); + sCurAVInterval = get_dddTmr0ISR16(); + sCurVAInterval = get_dddTmr0ISR17(); + sPrevVAInterval = get_dddTmr0ISR18(); + sPrevAVInterval = get_dddTmr0ISR19(); + ventb = get_dddTmr0ISR20(); + atrib = get_dddTmr0ISR21(); + + }else{ + if(a){ + + err = dddVentISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib, err); + + sVBPflag = get_dddVentISR1(); + sEndofRP = get_dddVentISR2(); + sIsSense = get_dddVentISR3(); + sPaceAtri = get_dddVentISR4(); + sAtriFlag = get_dddVentISR5(); + sLRI = get_dddVentISR6(); + sVRP = get_dddVentISR7(); + sVBP = get_dddVentISR8(); + sPVARP = get_dddVentISR9(); + sAVpace = get_dddVentISR10(); + sAVoffset = get_dddVentISR11(); + sAVsense = get_dddVentISR12(); + sOffset = get_dddVentISR13(); + sPVARPflag = get_dddVentISR14(); + sCurInterval = get_dddVentISR15(); + sCurAVInterval = get_dddVentISR16(); + sCurVAInterval = get_dddVentISR17(); + sPrevVAInterval = get_dddVentISR18(); + sPrevAVInterval = get_dddVentISR19(); + ventb = get_dddVentISR20(); + atrib = get_dddVentISR21(); + + + }else{ + err = dddTmr0ISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib, err); + + sVBPflag = get_dddTmr0ISR1(); + sEndofRP = get_dddTmr0ISR2(); + sIsSense = get_dddTmr0ISR3(); + sPaceAtri = get_dddTmr0ISR4(); + sAtriFlag = get_dddTmr0ISR5(); + sLRI = get_dddTmr0ISR6(); + sVRP = get_dddTmr0ISR7(); + sVBP = get_dddTmr0ISR8(); + sPVARP = get_dddTmr0ISR9(); + sAVpace = get_dddTmr0ISR10(); + sAVoffset = get_dddTmr0ISR11(); + sAVsense = get_dddTmr0ISR12(); + sOffset = get_dddTmr0ISR13(); + sPVARPflag = get_dddTmr0ISR14(); + sCurInterval = get_dddTmr0ISR15(); + sCurAVInterval = get_dddTmr0ISR16(); + sCurVAInterval = get_dddTmr0ISR17(); + sPrevVAInterval = get_dddTmr0ISR18(); + sPrevAVInterval = get_dddTmr0ISR19(); + ventb = get_dddTmr0ISR20(); + atrib = get_dddTmr0ISR21(); + + } + } + } + else{ + if (a){ + + err = dddVentISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib, err); + + sVBPflag = get_dddVentISR1(); + sEndofRP = get_dddVentISR2(); + sIsSense = get_dddVentISR3(); + sPaceAtri = get_dddVentISR4(); + sAtriFlag = get_dddVentISR5(); + sLRI = get_dddVentISR6(); + sVRP = get_dddVentISR7(); + sVBP = get_dddVentISR8(); + sPVARP = get_dddVentISR9(); + sAVpace = get_dddVentISR10(); + sAVoffset = get_dddVentISR11(); + sAVsense = get_dddVentISR12(); + sOffset = get_dddVentISR13(); + sPVARPflag = get_dddVentISR14(); + sCurInterval = get_dddVentISR15(); + sCurAVInterval = get_dddVentISR16(); + sCurVAInterval = get_dddVentISR17(); + sPrevVAInterval = get_dddVentISR18(); + sPrevAVInterval = get_dddVentISR19(); + ventb = get_dddVentISR20(); + atrib = get_dddVentISR21(); + + }else if (b){ + + err = dddAtriISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib, err); + + sVBPflag = get_dddAtriISR1(); + sEndofRP = get_dddAtriISR2(); + sIsSense = get_dddAtriISR3(); + sPaceAtri = get_dddAtriISR4(); + sAtriFlag = get_dddAtriISR5(); + sLRI = get_dddAtriISR6(); + sVRP = get_dddAtriISR7(); + sVBP = get_dddAtriISR8(); + sPVARP = get_dddAtriISR9(); + sAVpace = get_dddAtriISR10(); + sAVoffset = get_dddAtriISR11(); + sAVsense = get_dddAtriISR12(); + sOffset = get_dddAtriISR13(); + sPVARPflag = get_dddAtriISR14(); + sCurInterval = get_dddAtriISR15(); + sCurAVInterval = get_dddAtriISR16(); + sCurVAInterval = get_dddAtriISR17(); + sPrevVAInterval = get_dddAtriISR18(); + sPrevAVInterval = get_dddAtriISR19(); + ventb = get_dddAtriISR20(); + atrib = get_dddAtriISR21(); + + + }else{ + err = dddTmr0ISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib, err); + + sVBPflag = get_dddTmr0ISR1(); + sEndofRP = get_dddTmr0ISR2(); + sIsSense = get_dddTmr0ISR3(); + sPaceAtri = get_dddTmr0ISR4(); + sAtriFlag = get_dddTmr0ISR5(); + sLRI = get_dddTmr0ISR6(); + sVRP = get_dddTmr0ISR7(); + sVBP = get_dddTmr0ISR8(); + sPVARP = get_dddTmr0ISR9(); + sAVpace = get_dddTmr0ISR10(); + sAVoffset = get_dddTmr0ISR11(); + sAVsense = get_dddTmr0ISR12(); + sOffset = get_dddTmr0ISR13(); + sPVARPflag = get_dddTmr0ISR14(); + sCurInterval = get_dddTmr0ISR15(); + sCurAVInterval = get_dddTmr0ISR16(); + sCurVAInterval = get_dddTmr0ISR17(); + sPrevVAInterval = get_dddTmr0ISR18(); + sPrevAVInterval = get_dddTmr0ISR19(); + ventb = get_dddTmr0ISR20(); + atrib = get_dddTmr0ISR21(); + + } + } + } + + err = dddVentISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib, err); + + sVBPflag = get_dddVentISR1(); + sEndofRP = get_dddVentISR2(); + sIsSense = get_dddVentISR3(); + sPaceAtri = get_dddVentISR4(); + sAtriFlag = get_dddVentISR5(); + sLRI = get_dddVentISR6(); + sVRP = get_dddVentISR7(); + sVBP = get_dddVentISR8(); + sPVARP = get_dddVentISR9(); + sAVpace = get_dddVentISR10(); + sAVoffset = get_dddVentISR11(); + sAVsense = get_dddVentISR12(); + sOffset = get_dddVentISR13(); + sPVARPflag = get_dddVentISR14(); + sCurInterval = get_dddVentISR15(); + sCurAVInterval = get_dddVentISR16(); + sCurVAInterval = get_dddVentISR17(); + sPrevVAInterval = get_dddVentISR18(); + sPrevAVInterval = get_dddVentISR19(); + ventb = get_dddVentISR20(); + atrib = get_dddVentISR21(); + + err = dddTmr0ISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib, err); + + sVBPflag = get_dddTmr0ISR1(); + sEndofRP = get_dddTmr0ISR2(); + sIsSense = get_dddTmr0ISR3(); + sPaceAtri = get_dddTmr0ISR4(); + sAtriFlag = get_dddTmr0ISR5(); + sLRI = get_dddTmr0ISR6(); + sVRP = get_dddTmr0ISR7(); + sVBP = get_dddTmr0ISR8(); + sPVARP = get_dddTmr0ISR9(); + sAVpace = get_dddTmr0ISR10(); + sAVoffset = get_dddTmr0ISR11(); + sAVsense = get_dddTmr0ISR12(); + sOffset = get_dddTmr0ISR13(); + sPVARPflag = get_dddTmr0ISR14(); + sCurInterval = get_dddTmr0ISR15(); + sCurAVInterval = get_dddTmr0ISR16(); + sCurVAInterval = get_dddTmr0ISR17(); + sPrevVAInterval = get_dddTmr0ISR18(); + sPrevAVInterval = get_dddTmr0ISR19(); + ventb = get_dddTmr0ISR20(); + atrib = get_dddTmr0ISR21(); + + err = dddAtriISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib, err); + + sVBPflag = get_dddAtriISR1(); + sEndofRP = get_dddAtriISR2(); + sIsSense = get_dddAtriISR3(); + sPaceAtri = get_dddAtriISR4(); + sAtriFlag = get_dddAtriISR5(); + sLRI = get_dddAtriISR6(); + sVRP = get_dddAtriISR7(); + sVBP = get_dddAtriISR8(); + sPVARP = get_dddAtriISR9(); + sAVpace = get_dddAtriISR10(); + sAVoffset = get_dddAtriISR11(); + sAVsense = get_dddAtriISR12(); + sOffset = get_dddAtriISR13(); + sPVARPflag = get_dddAtriISR14(); + sCurInterval = get_dddAtriISR15(); + sCurAVInterval = get_dddAtriISR16(); + sCurVAInterval = get_dddAtriISR17(); + sPrevVAInterval = get_dddAtriISR18(); + sPrevAVInterval = get_dddAtriISR19(); + ventb = get_dddAtriISR20(); + atrib = get_dddAtriISR21(); + + err = dddTmr0ISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib, err); + + sVBPflag = get_dddTmr0ISR1(); + sEndofRP = get_dddTmr0ISR2(); + sIsSense = get_dddTmr0ISR3(); + sPaceAtri = get_dddTmr0ISR4(); + sAtriFlag = get_dddTmr0ISR5(); + sLRI = get_dddTmr0ISR6(); + sVRP = get_dddTmr0ISR7(); + sVBP = get_dddTmr0ISR8(); + sPVARP = get_dddTmr0ISR9(); + sAVpace = get_dddTmr0ISR10(); + sAVoffset = get_dddTmr0ISR11(); + sAVsense = get_dddTmr0ISR12(); + sOffset = get_dddTmr0ISR13(); + sPVARPflag = get_dddTmr0ISR14(); + sCurInterval = get_dddTmr0ISR15(); + sCurAVInterval = get_dddTmr0ISR16(); + sCurVAInterval = get_dddTmr0ISR17(); + sPrevVAInterval = get_dddTmr0ISR18(); + sPrevAVInterval = get_dddTmr0ISR19(); + ventb = get_dddTmr0ISR20(); + atrib = get_dddTmr0ISR21(); + + if ((ventb_ == 1) && (ventb == 1)) + err++; + else err = 0; + }while (nondet()); + + set_test11(sVBPflag); + set_test12(sEndofRP); + set_test13(sIsSense); + set_test14(sPaceAtri); + set_test15(sAtriFlag); + set_test16(sLRI); + set_test17(sVRP); + set_test18(sVBP); + set_test19(sPVARP); + set_test110(sAVpace); + set_test111(sAVoffset); + set_test112(sAVsense); + set_test113(sOffset); + set_test114(sPVARPflag); + set_test115(sCurInterval); + set_test116(sCurAVInterval); + set_test117(sCurVAInterval); + set_test118(sPrevVAInterval); + set_test119(sPrevAVInterval); + set_test120(ventb); + set_test121(atrib); + return err; +} + +void main(){ + int sVBPflag; + int sEndofRP; + int sIsSense; + int sPaceAtri; + int sAtriFlag; + int sLRI; + int sVRP; + int sVBP; + int sPVARP; + int sAVpace; + int sAVoffset; + int sAVsense; + int sOffset; + int sPVARPflag; + int sCurInterval; + int sCurAVInterval; + int sCurVAInterval; + int sPrevVAInterval; + int sPrevAVInterval; + int u,v,w,x,y,z; + sIsSense = 0; + sEndofRP = 0; + sVBPflag = 0; + sAtriFlag = 1; + sPaceAtri = 0; + sPVARPflag = 0; + int ventb = 0; + int atrib = 0; + int err = 0; + setParametersDDD(u,v,w,x,y,z, + sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval); + + + sVBPflag = get_setParametersDDD1(); + sEndofRP = get_setParametersDDD2(); + sIsSense = get_setParametersDDD3(); + sPaceAtri = get_setParametersDDD4(); + sAtriFlag = get_setParametersDDD5(); + sLRI = get_setParametersDDD6(); + sVRP = get_setParametersDDD7(); + sVBP = get_setParametersDDD8(); + sPVARP = get_setParametersDDD9(); + sAVpace = get_setParametersDDD10(); + sAVoffset = get_setParametersDDD11(); + sAVsense = get_setParametersDDD12(); + sOffset = get_setParametersDDD13(); + sPVARPflag = get_setParametersDDD14(); + sCurInterval = get_setParametersDDD15(); + sCurAVInterval = get_setParametersDDD16(); + sCurVAInterval = get_setParametersDDD17(); + sPrevVAInterval = get_setParametersDDD18(); + sPrevAVInterval = get_setParametersDDD19(); + + err = test1(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib, err); + + + + sVBPflag = get_test11(); + sEndofRP = get_test12(); + sIsSense = get_test13(); + sPaceAtri = get_test14(); + sAtriFlag = get_test15(); + sLRI = get_test16(); + sVRP = get_test17(); + sVBP = get_test18(); + sPVARP = get_test19(); + sAVpace = get_test110(); + sAVoffset = get_test111(); + sAVsense = get_test112(); + sOffset = get_test113(); + sPVARPflag = get_test114(); + sCurInterval = get_test115(); + sCurAVInterval = get_test116(); + sCurVAInterval = get_test117(); + sPrevVAInterval = get_test118(); + sPrevAVInterval = get_test119(); + ventb = get_test120(); + atrib = get_test121(); + + if (err > 2) + goto ERROR; + + return; + ERROR: assert(0); goto ERROR; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd3err_VeriMAP_false.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd3err_VeriMAP_false.c new file mode 100644 index 000000000..3b1f0e863 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd3err_VeriMAP_false.c @@ -0,0 +1,1342 @@ +void assert(int cond) {if (!cond) __VERIFIER_error();} +int nondet(){int x; return x;} +int set_setParametersDDD1(int p){int x; return x;} +int set_setParametersDDD2(int p){int x; return x;} +int set_setParametersDDD3(int p){int x; return x;} +int set_setParametersDDD4(int p){int x; return x;} +int set_setParametersDDD5(int p){int x; return x;} +int set_setParametersDDD6(int p){int x; return x;} +int set_setParametersDDD7(int p){int x; return x;} +int set_setParametersDDD8(int p){int x; return x;} +int set_setParametersDDD9(int p){int x; return x;} +int set_setParametersDDD10(int p){int x; return x;} +int set_setParametersDDD11(int p){int x; return x;} +int set_setParametersDDD12(int p){int x; return x;} +int set_setParametersDDD13(int p){int x; return x;} +int set_setParametersDDD14(int p){int x; return x;} +int set_setParametersDDD15(int p){int x; return x;} +int set_setParametersDDD16(int p){int x; return x;} +int set_setParametersDDD17(int p){int x; return x;} +int set_setParametersDDD18(int p){int x; return x;} +int set_setParametersDDD19(int p){int x; return x;} + +int get_setParametersDDD1(){int x; return x;} +int get_setParametersDDD2(){int x; return x;} +int get_setParametersDDD3(){int x; return x;} +int get_setParametersDDD4(){int x; return x;} +int get_setParametersDDD5(){int x; return x;} +int get_setParametersDDD6(){int x; return x;} +int get_setParametersDDD7(){int x; return x;} +int get_setParametersDDD8(){int x; return x;} +int get_setParametersDDD9(){int x; return x;} +int get_setParametersDDD10(){int x; return x;} +int get_setParametersDDD11(){int x; return x;} +int get_setParametersDDD12(){int x; return x;} +int get_setParametersDDD13(){int x; return x;} +int get_setParametersDDD14(){int x; return x;} +int get_setParametersDDD15(){int x; return x;} +int get_setParametersDDD16(){int x; return x;} +int get_setParametersDDD17(){int x; return x;} +int get_setParametersDDD18(){int x; return x;} +int get_setParametersDDD19(){int x; return x;} + +int ReadTimer0(){int x; return x;} +int WriteTimer0(){int x; return x;} +int calcSmoothedInterval(int a,int b){int x; return x;} +int isRTCommEnabled(){int x; return x;} +int sendVentSense(){int x; return x;} +int sendAtriSense(){int x; return x;} + +int set_dddVentISR1(int p){int x; return x;} +int set_dddVentISR2(int p){int x; return x;} +int set_dddVentISR3(int p){int x; return x;} +int set_dddVentISR4(int p){int x; return x;} +int set_dddVentISR5(int p){int x; return x;} +int set_dddVentISR6(int p){int x; return x;} +int set_dddVentISR7(int p){int x; return x;} +int set_dddVentISR8(int p){int x; return x;} +int set_dddVentISR9(int p){int x; return x;} +int set_dddVentISR10(int p){int x; return x;} +int set_dddVentISR11(int p){int x; return x;} +int set_dddVentISR12(int p){int x; return x;} +int set_dddVentISR13(int p){int x; return x;} +int set_dddVentISR14(int p){int x; return x;} +int set_dddVentISR15(int p){int x; return x;} +int set_dddVentISR16(int p){int x; return x;} +int set_dddVentISR17(int p){int x; return x;} +int set_dddVentISR18(int p){int x; return x;} +int set_dddVentISR19(int p){int x; return x;} +int set_dddVentISR20(int p){int x; return x;} +int set_dddVentISR21(int p){int x; return x;} + +int get_dddVentISR1(){int x; return x;} +int get_dddVentISR2(){int x; return x;} +int get_dddVentISR3(){int x; return x;} +int get_dddVentISR4(){int x; return x;} +int get_dddVentISR5(){int x; return x;} +int get_dddVentISR6(){int x; return x;} +int get_dddVentISR7(){int x; return x;} +int get_dddVentISR8(){int x; return x;} +int get_dddVentISR9(){int x; return x;} +int get_dddVentISR10(){int x; return x;} +int get_dddVentISR11(){int x; return x;} +int get_dddVentISR12(){int x; return x;} +int get_dddVentISR13(){int x; return x;} +int get_dddVentISR14(){int x; return x;} +int get_dddVentISR15(){int x; return x;} +int get_dddVentISR16(){int x; return x;} +int get_dddVentISR17(){int x; return x;} +int get_dddVentISR18(){int x; return x;} +int get_dddVentISR19(){int x; return x;} +int get_dddVentISR20(){int x; return x;} +int get_dddVentISR21(){int x; return x;} + +int startPaceAtri(int p){int x; return x;} +int startPaceVent(int p){int x; return x;} + +int set_dddTmr0ISR1(int p){int x; return x;} +int set_dddTmr0ISR2(int p){int x; return x;} +int set_dddTmr0ISR3(int p){int x; return x;} +int set_dddTmr0ISR4(int p){int x; return x;} +int set_dddTmr0ISR5(int p){int x; return x;} +int set_dddTmr0ISR6(int p){int x; return x;} +int set_dddTmr0ISR7(int p){int x; return x;} +int set_dddTmr0ISR8(int p){int x; return x;} +int set_dddTmr0ISR9(int p){int x; return x;} +int set_dddTmr0ISR10(int p){int x; return x;} +int set_dddTmr0ISR11(int p){int x; return x;} +int set_dddTmr0ISR12(int p){int x; return x;} +int set_dddTmr0ISR13(int p){int x; return x;} +int set_dddTmr0ISR14(int p){int x; return x;} +int set_dddTmr0ISR15(int p){int x; return x;} +int set_dddTmr0ISR16(int p){int x; return x;} +int set_dddTmr0ISR17(int p){int x; return x;} +int set_dddTmr0ISR18(int p){int x; return x;} +int set_dddTmr0ISR19(int p){int x; return x;} +int set_dddTmr0ISR20(int p){int x; return x;} +int set_dddTmr0ISR21(int p){int x; return x;} + +int get_dddTmr0ISR1(){int x; return x;} +int get_dddTmr0ISR2(){int x; return x;} +int get_dddTmr0ISR3(){int x; return x;} +int get_dddTmr0ISR4(){int x; return x;} +int get_dddTmr0ISR5(){int x; return x;} +int get_dddTmr0ISR6(){int x; return x;} +int get_dddTmr0ISR7(){int x; return x;} +int get_dddTmr0ISR8(){int x; return x;} +int get_dddTmr0ISR9(){int x; return x;} +int get_dddTmr0ISR10(){int x; return x;} +int get_dddTmr0ISR11(){int x; return x;} +int get_dddTmr0ISR12(){int x; return x;} +int get_dddTmr0ISR13(){int x; return x;} +int get_dddTmr0ISR14(){int x; return x;} +int get_dddTmr0ISR15(){int x; return x;} +int get_dddTmr0ISR16(){int x; return x;} +int get_dddTmr0ISR17(){int x; return x;} +int get_dddTmr0ISR18(){int x; return x;} +int get_dddTmr0ISR19(){int x; return x;} +int get_dddTmr0ISR20(){int x; return x;} +int get_dddTmr0ISR21(){int x; return x;} + + +int set_dddAtriISR1(int p){int x; return x;} +int set_dddAtriISR2(int p){int x; return x;} +int set_dddAtriISR3(int p){int x; return x;} +int set_dddAtriISR4(int p){int x; return x;} +int set_dddAtriISR5(int p){int x; return x;} +int set_dddAtriISR6(int p){int x; return x;} +int set_dddAtriISR7(int p){int x; return x;} +int set_dddAtriISR8(int p){int x; return x;} +int set_dddAtriISR9(int p){int x; return x;} +int set_dddAtriISR10(int p){int x; return x;} +int set_dddAtriISR11(int p){int x; return x;} +int set_dddAtriISR12(int p){int x; return x;} +int set_dddAtriISR13(int p){int x; return x;} +int set_dddAtriISR14(int p){int x; return x;} +int set_dddAtriISR15(int p){int x; return x;} +int set_dddAtriISR16(int p){int x; return x;} +int set_dddAtriISR17(int p){int x; return x;} +int set_dddAtriISR18(int p){int x; return x;} +int set_dddAtriISR19(int p){int x; return x;} +int set_dddAtriISR20(int p){int x; return x;} +int set_dddAtriISR21(int p){int x; return x;} + +int get_dddAtriISR1(){int x; return x;} +int get_dddAtriISR2(){int x; return x;} +int get_dddAtriISR3(){int x; return x;} +int get_dddAtriISR4(){int x; return x;} +int get_dddAtriISR5(){int x; return x;} +int get_dddAtriISR6(){int x; return x;} +int get_dddAtriISR7(){int x; return x;} +int get_dddAtriISR8(){int x; return x;} +int get_dddAtriISR9(){int x; return x;} +int get_dddAtriISR10(){int x; return x;} +int get_dddAtriISR11(){int x; return x;} +int get_dddAtriISR12(){int x; return x;} +int get_dddAtriISR13(){int x; return x;} +int get_dddAtriISR14(){int x; return x;} +int get_dddAtriISR15(){int x; return x;} +int get_dddAtriISR16(){int x; return x;} +int get_dddAtriISR17(){int x; return x;} +int get_dddAtriISR18(){int x; return x;} +int get_dddAtriISR19(){int x; return x;} +int get_dddAtriISR20(){int x; return x;} +int get_dddAtriISR21(){int x; return x;} + +int set_test11(int p){int x; return x;} +int set_test12(int p){int x; return x;} +int set_test13(int p){int x; return x;} +int set_test14(int p){int x; return x;} +int set_test15(int p){int x; return x;} +int set_test16(int p){int x; return x;} +int set_test17(int p){int x; return x;} +int set_test18(int p){int x; return x;} +int set_test19(int p){int x; return x;} +int set_test110(int p){int x; return x;} +int set_test111(int p){int x; return x;} +int set_test112(int p){int x; return x;} +int set_test113(int p){int x; return x;} +int set_test114(int p){int x; return x;} +int set_test115(int p){int x; return x;} +int set_test116(int p){int x; return x;} +int set_test117(int p){int x; return x;} +int set_test118(int p){int x; return x;} +int set_test119(int p){int x; return x;} +int set_test120(int p){int x; return x;} +int set_test121(int p){int x; return x;} + +int get_test11(){int x; return x;} +int get_test12(){int x; return x;} +int get_test13(){int x; return x;} +int get_test14(){int x; return x;} +int get_test15(){int x; return x;} +int get_test16(){int x; return x;} +int get_test17(){int x; return x;} +int get_test18(){int x; return x;} +int get_test19(){int x; return x;} +int get_test110(){int x; return x;} +int get_test111(){int x; return x;} +int get_test112(){int x; return x;} +int get_test113(){int x; return x;} +int get_test114(){int x; return x;} +int get_test115(){int x; return x;} +int get_test116(){int x; return x;} +int get_test117(){int x; return x;} +int get_test118(){int x; return x;} +int get_test119(){int x; return x;} +int get_test120(){int x; return x;} +int get_test121(){int x; return x;} + + +void setParametersDDD( int tLRI, int tAVpace, int tAVoffset, int tVBP, int tVRP, int tPVARP, + int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval){ + + sLRI = tLRI; + sCurInterval = tLRI; + sCurAVInterval = sAVsense; + sPrevAVInterval = sAVsense; + sCurVAInterval = tLRI - sAVsense; + sPrevVAInterval = tLRI - sAVsense; + sAVpace = tAVpace; + sAVoffset = tAVoffset; + sAVsense = sAVpace - sAVoffset; + sVBP = tVBP; + sVRP = tVRP; + sPVARP = tPVARP; + sOffset = sPVARP > sVRP ? sVRP : sPVARP; + + set_setParametersDDD1(sVBPflag); + set_setParametersDDD2(sEndofRP); + set_setParametersDDD3(sIsSense); + set_setParametersDDD4(sPaceAtri); + set_setParametersDDD5(sAtriFlag); + set_setParametersDDD6(sLRI); + set_setParametersDDD7(sVRP); + set_setParametersDDD8(sVBP); + set_setParametersDDD9(sPVARP); + set_setParametersDDD10(sAVpace); + set_setParametersDDD11(sAVoffset); + set_setParametersDDD12(sAVsense); + set_setParametersDDD13(sOffset); + set_setParametersDDD14(sPVARPflag); + set_setParametersDDD15(sCurInterval); + set_setParametersDDD16(sCurAVInterval); + set_setParametersDDD17(sCurVAInterval); + set_setParametersDDD18(sPrevVAInterval); + set_setParametersDDD19(sPrevAVInterval); + +} +# 86 "MAP/UNSAFE-exbench/WHALE-ddd3err.tmp.c" +int dddTmr0ISR(int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval, int ventb, int atrib, int err){ + if (sAtriFlag){ + if (sPaceAtri){ + if (sEndofRP){ + atrib = 1; + + ventb = 1; + if (sIsSense){ + startPaceAtri(0); + }else{ + startPaceAtri(1); + } + + sAtriFlag = 0; + sVBPflag = 1; + sIsSense = 0; + sPaceAtri = 0; + + + sPrevVAInterval = sCurVAInterval; + }else{ + atrib = 0; + ventb = 0; + sEndofRP = 1; + if (sIsSense){ + WriteTimer0(); + + }else{ + WriteTimer0(); + + } + } + }else{ + if (sPVARP > sVRP){ + if (!sPVARPflag){ + WriteTimer0(); + + ventb = 0; + sPVARPflag = 1; + }else{ + sPVARPflag = 0; + } + }else if (sPVARP < sVRP){ + if (!sPVARPflag){ + WriteTimer0(); + + atrib = 0; + sPVARPflag = 1; + }else{ + sPVARPflag = 0; + } + }else{ + sPVARPflag = 0; + } + + if (sPVARPflag == 0){ + atrib = 0; + ventb = 0; + if (sIsSense){ + WriteTimer0(); + + }else{ + WriteTimer0(); + + } + sEndofRP = 1; + sPaceAtri = 1; + } + } + }else{ + if (sIsSense){ + if (sVBPflag){ + sVBPflag = 0; + ventb = 0; + + }else{ + + + ventb = 1; + startPaceVent(0); + + sIsSense = 0; + sPaceAtri = 0; + sAtriFlag = 1; + + + sPrevAVInterval = sCurAVInterval; + + + sCurInterval = calcSmoothedInterval(sPrevAVInterval + sPrevVAInterval, sLRI); + sCurVAInterval = sCurInterval - sAVsense; + sCurAVInterval = sCurInterval - sCurVAInterval; + } + }else{ + if (sVBPflag){ + sVBPflag = 0; + ventb = 0; + WriteTimer0(); + + }else{ + + + ventb = 1; + startPaceVent(1); + + WriteTimer0(); + + sPaceAtri = 0; + sAtriFlag = 1; + sIsSense = 0; + + + sPrevAVInterval = sCurAVInterval; + + + sCurInterval = calcSmoothedInterval(sPrevAVInterval + sPrevVAInterval, sLRI); + sCurVAInterval = sCurInterval - sAVsense; + sCurAVInterval = sCurInterval - sCurVAInterval; + + } + } + } + set_dddTmr0ISR1(sVBPflag); + set_dddTmr0ISR2(sEndofRP); + set_dddTmr0ISR3(sIsSense); + set_dddTmr0ISR4(sPaceAtri); + set_dddTmr0ISR5(sAtriFlag); + set_dddTmr0ISR6(sLRI); + set_dddTmr0ISR7(sVRP); + set_dddTmr0ISR8(sVBP); + set_dddTmr0ISR9(sPVARP); + set_dddTmr0ISR10(sAVpace); + set_dddTmr0ISR11(sAVoffset); + set_dddTmr0ISR12(sAVsense); + set_dddTmr0ISR13(sOffset); + set_dddTmr0ISR14(sPVARPflag); + set_dddTmr0ISR15(sCurInterval); + set_dddTmr0ISR16(sCurAVInterval); + set_dddTmr0ISR17(sCurVAInterval); + set_dddTmr0ISR18(sPrevVAInterval); + set_dddTmr0ISR19(sPrevAVInterval); + set_dddTmr0ISR20(ventb); + set_dddTmr0ISR21(atrib); + + return err; +} + +int dddVentISR(int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval, int ventb, int atrib, int err){ + if (ventb) return err; + + + sPrevAVInterval = ReadTimer0() - (sCurAVInterval); + + + sCurInterval = calcSmoothedInterval(sPrevAVInterval + sPrevVAInterval, sLRI); + sCurVAInterval = sCurInterval - sAVsense; + sCurAVInterval = sCurInterval - sCurVAInterval; + + if (sPVARP > sVRP){ + WriteTimer0(); + + }else{ + WriteTimer0(); + + } + sIsSense = 1; + sPaceAtri = 0; + sAtriFlag = 1; + + atrib = 1; + + + ventb = 1; + + if(isRTCommEnabled()){ + sendVentSense(); + } + set_dddVentISR1(sVBPflag); + set_dddVentISR2(sEndofRP); + set_dddVentISR3(sIsSense); + set_dddVentISR4(sPaceAtri); + set_dddVentISR5(sAtriFlag); + set_dddVentISR6(sLRI); + set_dddVentISR7(sVRP); + set_dddVentISR8(sVBP); + set_dddVentISR9(sPVARP); + set_dddVentISR10(sAVpace); + set_dddVentISR11(sAVoffset); + set_dddVentISR12(sAVsense); + set_dddVentISR13(sOffset); + set_dddVentISR14(sPVARPflag); + set_dddVentISR15(sCurInterval); + set_dddVentISR16(sCurAVInterval); + set_dddVentISR17(sCurVAInterval); + set_dddVentISR18(sPrevVAInterval); + set_dddVentISR19(sPrevAVInterval); + set_dddVentISR20(ventb); + set_dddVentISR21(atrib); + + return err; + +} + +int dddAtriISR(int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval, int ventb, int atrib, int err){ + + if (atrib) return err; + sIsSense = 1; + sVBPflag = 1; + + + sPrevVAInterval = ReadTimer0() - (sCurVAInterval); + + WriteTimer0(); + + sAtriFlag = 0; + + atrib = 1; + ventb = 1; + + if (isRTCommEnabled()){ + sendAtriSense(); + } + set_dddAtriISR1(sVBPflag); + set_dddAtriISR2(sEndofRP); + set_dddAtriISR3(sIsSense); + set_dddAtriISR4(sPaceAtri); + set_dddAtriISR5(sAtriFlag); + set_dddAtriISR6(sLRI); + set_dddAtriISR7(sVRP); + set_dddAtriISR8(sVBP); + set_dddAtriISR9(sPVARP); + set_dddAtriISR10(sAVpace); + set_dddAtriISR11(sAVoffset); + set_dddAtriISR12(sAVsense); + set_dddAtriISR13(sOffset); + set_dddAtriISR14(sPVARPflag); + set_dddAtriISR15(sCurInterval); + set_dddAtriISR16(sCurAVInterval); + set_dddAtriISR17(sCurVAInterval); + set_dddAtriISR18(sPrevVAInterval); + set_dddAtriISR19(sPrevAVInterval); + set_dddAtriISR20(ventb); + set_dddAtriISR21(atrib); + + return err; +} + + +int test1(int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval, int ventb, int atrib, int err){ + int a , b ; + int ventb_; + do{ + ventb_ = ventb; + a = nondet(); + b = nondet(); + if (ventb){ + if (atrib){ + err = dddTmr0ISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib, err); + + sVBPflag = get_dddTmr0ISR1(); + sEndofRP = get_dddTmr0ISR2(); + sIsSense = get_dddTmr0ISR3(); + sPaceAtri = get_dddTmr0ISR4(); + sAtriFlag = get_dddTmr0ISR5(); + sLRI = get_dddTmr0ISR6(); + sVRP = get_dddTmr0ISR7(); + sVBP = get_dddTmr0ISR8(); + sPVARP = get_dddTmr0ISR9(); + sAVpace = get_dddTmr0ISR10(); + sAVoffset = get_dddTmr0ISR11(); + sAVsense = get_dddTmr0ISR12(); + sOffset = get_dddTmr0ISR13(); + sPVARPflag = get_dddTmr0ISR14(); + sCurInterval = get_dddTmr0ISR15(); + sCurAVInterval = get_dddTmr0ISR16(); + sCurVAInterval = get_dddTmr0ISR17(); + sPrevVAInterval = get_dddTmr0ISR18(); + sPrevAVInterval = get_dddTmr0ISR19(); + ventb = get_dddTmr0ISR20(); + atrib = get_dddTmr0ISR21(); + + }else{ + if (a){ + err = dddTmr0ISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib, err); + + sVBPflag = get_dddTmr0ISR1(); + sEndofRP = get_dddTmr0ISR2(); + sIsSense = get_dddTmr0ISR3(); + sPaceAtri = get_dddTmr0ISR4(); + sAtriFlag = get_dddTmr0ISR5(); + sLRI = get_dddTmr0ISR6(); + sVRP = get_dddTmr0ISR7(); + sVBP = get_dddTmr0ISR8(); + sPVARP = get_dddTmr0ISR9(); + sAVpace = get_dddTmr0ISR10(); + sAVoffset = get_dddTmr0ISR11(); + sAVsense = get_dddTmr0ISR12(); + sOffset = get_dddTmr0ISR13(); + sPVARPflag = get_dddTmr0ISR14(); + sCurInterval = get_dddTmr0ISR15(); + sCurAVInterval = get_dddTmr0ISR16(); + sCurVAInterval = get_dddTmr0ISR17(); + sPrevVAInterval = get_dddTmr0ISR18(); + sPrevAVInterval = get_dddTmr0ISR19(); + ventb = get_dddTmr0ISR20(); + atrib = get_dddTmr0ISR21(); + + }else{ + + err = dddAtriISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib, err); + + sVBPflag = get_dddAtriISR1(); + sEndofRP = get_dddAtriISR2(); + sIsSense = get_dddAtriISR3(); + sPaceAtri = get_dddAtriISR4(); + sAtriFlag = get_dddAtriISR5(); + sLRI = get_dddAtriISR6(); + sVRP = get_dddAtriISR7(); + sVBP = get_dddAtriISR8(); + sPVARP = get_dddAtriISR9(); + sAVpace = get_dddAtriISR10(); + sAVoffset = get_dddAtriISR11(); + sAVsense = get_dddAtriISR12(); + sOffset = get_dddAtriISR13(); + sPVARPflag = get_dddAtriISR14(); + sCurInterval = get_dddAtriISR15(); + sCurAVInterval = get_dddAtriISR16(); + sCurVAInterval = get_dddAtriISR17(); + sPrevVAInterval = get_dddAtriISR18(); + sPrevAVInterval = get_dddAtriISR19(); + ventb = get_dddAtriISR20(); + atrib = get_dddAtriISR21(); + + + } + } + }else{ + if (atrib){ + if (ventb){ + err = dddTmr0ISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib, err); + + sVBPflag = get_dddTmr0ISR1(); + sEndofRP = get_dddTmr0ISR2(); + sIsSense = get_dddTmr0ISR3(); + sPaceAtri = get_dddTmr0ISR4(); + sAtriFlag = get_dddTmr0ISR5(); + sLRI = get_dddTmr0ISR6(); + sVRP = get_dddTmr0ISR7(); + sVBP = get_dddTmr0ISR8(); + sPVARP = get_dddTmr0ISR9(); + sAVpace = get_dddTmr0ISR10(); + sAVoffset = get_dddTmr0ISR11(); + sAVsense = get_dddTmr0ISR12(); + sOffset = get_dddTmr0ISR13(); + sPVARPflag = get_dddTmr0ISR14(); + sCurInterval = get_dddTmr0ISR15(); + sCurAVInterval = get_dddTmr0ISR16(); + sCurVAInterval = get_dddTmr0ISR17(); + sPrevVAInterval = get_dddTmr0ISR18(); + sPrevAVInterval = get_dddTmr0ISR19(); + ventb = get_dddTmr0ISR20(); + atrib = get_dddTmr0ISR21(); + + }else{ + if(a){ + + err = dddVentISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib, err); + + sVBPflag = get_dddVentISR1(); + sEndofRP = get_dddVentISR2(); + sIsSense = get_dddVentISR3(); + sPaceAtri = get_dddVentISR4(); + sAtriFlag = get_dddVentISR5(); + sLRI = get_dddVentISR6(); + sVRP = get_dddVentISR7(); + sVBP = get_dddVentISR8(); + sPVARP = get_dddVentISR9(); + sAVpace = get_dddVentISR10(); + sAVoffset = get_dddVentISR11(); + sAVsense = get_dddVentISR12(); + sOffset = get_dddVentISR13(); + sPVARPflag = get_dddVentISR14(); + sCurInterval = get_dddVentISR15(); + sCurAVInterval = get_dddVentISR16(); + sCurVAInterval = get_dddVentISR17(); + sPrevVAInterval = get_dddVentISR18(); + sPrevAVInterval = get_dddVentISR19(); + ventb = get_dddVentISR20(); + atrib = get_dddVentISR21(); + + + }else{ + err = dddTmr0ISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib, err); + + sVBPflag = get_dddTmr0ISR1(); + sEndofRP = get_dddTmr0ISR2(); + sIsSense = get_dddTmr0ISR3(); + sPaceAtri = get_dddTmr0ISR4(); + sAtriFlag = get_dddTmr0ISR5(); + sLRI = get_dddTmr0ISR6(); + sVRP = get_dddTmr0ISR7(); + sVBP = get_dddTmr0ISR8(); + sPVARP = get_dddTmr0ISR9(); + sAVpace = get_dddTmr0ISR10(); + sAVoffset = get_dddTmr0ISR11(); + sAVsense = get_dddTmr0ISR12(); + sOffset = get_dddTmr0ISR13(); + sPVARPflag = get_dddTmr0ISR14(); + sCurInterval = get_dddTmr0ISR15(); + sCurAVInterval = get_dddTmr0ISR16(); + sCurVAInterval = get_dddTmr0ISR17(); + sPrevVAInterval = get_dddTmr0ISR18(); + sPrevAVInterval = get_dddTmr0ISR19(); + ventb = get_dddTmr0ISR20(); + atrib = get_dddTmr0ISR21(); + + } + } + } + else{ + if (a){ + + err = dddVentISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib, err); + + sVBPflag = get_dddVentISR1(); + sEndofRP = get_dddVentISR2(); + sIsSense = get_dddVentISR3(); + sPaceAtri = get_dddVentISR4(); + sAtriFlag = get_dddVentISR5(); + sLRI = get_dddVentISR6(); + sVRP = get_dddVentISR7(); + sVBP = get_dddVentISR8(); + sPVARP = get_dddVentISR9(); + sAVpace = get_dddVentISR10(); + sAVoffset = get_dddVentISR11(); + sAVsense = get_dddVentISR12(); + sOffset = get_dddVentISR13(); + sPVARPflag = get_dddVentISR14(); + sCurInterval = get_dddVentISR15(); + sCurAVInterval = get_dddVentISR16(); + sCurVAInterval = get_dddVentISR17(); + sPrevVAInterval = get_dddVentISR18(); + sPrevAVInterval = get_dddVentISR19(); + ventb = get_dddVentISR20(); + atrib = get_dddVentISR21(); + + }else if (b){ + + err = dddAtriISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib, err); + + sVBPflag = get_dddAtriISR1(); + sEndofRP = get_dddAtriISR2(); + sIsSense = get_dddAtriISR3(); + sPaceAtri = get_dddAtriISR4(); + sAtriFlag = get_dddAtriISR5(); + sLRI = get_dddAtriISR6(); + sVRP = get_dddAtriISR7(); + sVBP = get_dddAtriISR8(); + sPVARP = get_dddAtriISR9(); + sAVpace = get_dddAtriISR10(); + sAVoffset = get_dddAtriISR11(); + sAVsense = get_dddAtriISR12(); + sOffset = get_dddAtriISR13(); + sPVARPflag = get_dddAtriISR14(); + sCurInterval = get_dddAtriISR15(); + sCurAVInterval = get_dddAtriISR16(); + sCurVAInterval = get_dddAtriISR17(); + sPrevVAInterval = get_dddAtriISR18(); + sPrevAVInterval = get_dddAtriISR19(); + ventb = get_dddAtriISR20(); + atrib = get_dddAtriISR21(); + + + }else{ + err = dddTmr0ISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib, err); + + sVBPflag = get_dddTmr0ISR1(); + sEndofRP = get_dddTmr0ISR2(); + sIsSense = get_dddTmr0ISR3(); + sPaceAtri = get_dddTmr0ISR4(); + sAtriFlag = get_dddTmr0ISR5(); + sLRI = get_dddTmr0ISR6(); + sVRP = get_dddTmr0ISR7(); + sVBP = get_dddTmr0ISR8(); + sPVARP = get_dddTmr0ISR9(); + sAVpace = get_dddTmr0ISR10(); + sAVoffset = get_dddTmr0ISR11(); + sAVsense = get_dddTmr0ISR12(); + sOffset = get_dddTmr0ISR13(); + sPVARPflag = get_dddTmr0ISR14(); + sCurInterval = get_dddTmr0ISR15(); + sCurAVInterval = get_dddTmr0ISR16(); + sCurVAInterval = get_dddTmr0ISR17(); + sPrevVAInterval = get_dddTmr0ISR18(); + sPrevAVInterval = get_dddTmr0ISR19(); + ventb = get_dddTmr0ISR20(); + atrib = get_dddTmr0ISR21(); + + } + } + } + + err = dddVentISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib, err); + + sVBPflag = get_dddVentISR1(); + sEndofRP = get_dddVentISR2(); + sIsSense = get_dddVentISR3(); + sPaceAtri = get_dddVentISR4(); + sAtriFlag = get_dddVentISR5(); + sLRI = get_dddVentISR6(); + sVRP = get_dddVentISR7(); + sVBP = get_dddVentISR8(); + sPVARP = get_dddVentISR9(); + sAVpace = get_dddVentISR10(); + sAVoffset = get_dddVentISR11(); + sAVsense = get_dddVentISR12(); + sOffset = get_dddVentISR13(); + sPVARPflag = get_dddVentISR14(); + sCurInterval = get_dddVentISR15(); + sCurAVInterval = get_dddVentISR16(); + sCurVAInterval = get_dddVentISR17(); + sPrevVAInterval = get_dddVentISR18(); + sPrevAVInterval = get_dddVentISR19(); + ventb = get_dddVentISR20(); + atrib = get_dddVentISR21(); + + err = dddTmr0ISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib, err); + + sVBPflag = get_dddTmr0ISR1(); + sEndofRP = get_dddTmr0ISR2(); + sIsSense = get_dddTmr0ISR3(); + sPaceAtri = get_dddTmr0ISR4(); + sAtriFlag = get_dddTmr0ISR5(); + sLRI = get_dddTmr0ISR6(); + sVRP = get_dddTmr0ISR7(); + sVBP = get_dddTmr0ISR8(); + sPVARP = get_dddTmr0ISR9(); + sAVpace = get_dddTmr0ISR10(); + sAVoffset = get_dddTmr0ISR11(); + sAVsense = get_dddTmr0ISR12(); + sOffset = get_dddTmr0ISR13(); + sPVARPflag = get_dddTmr0ISR14(); + sCurInterval = get_dddTmr0ISR15(); + sCurAVInterval = get_dddTmr0ISR16(); + sCurVAInterval = get_dddTmr0ISR17(); + sPrevVAInterval = get_dddTmr0ISR18(); + sPrevAVInterval = get_dddTmr0ISR19(); + ventb = get_dddTmr0ISR20(); + atrib = get_dddTmr0ISR21(); + + err = dddAtriISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib, err); + + sVBPflag = get_dddAtriISR1(); + sEndofRP = get_dddAtriISR2(); + sIsSense = get_dddAtriISR3(); + sPaceAtri = get_dddAtriISR4(); + sAtriFlag = get_dddAtriISR5(); + sLRI = get_dddAtriISR6(); + sVRP = get_dddAtriISR7(); + sVBP = get_dddAtriISR8(); + sPVARP = get_dddAtriISR9(); + sAVpace = get_dddAtriISR10(); + sAVoffset = get_dddAtriISR11(); + sAVsense = get_dddAtriISR12(); + sOffset = get_dddAtriISR13(); + sPVARPflag = get_dddAtriISR14(); + sCurInterval = get_dddAtriISR15(); + sCurAVInterval = get_dddAtriISR16(); + sCurVAInterval = get_dddAtriISR17(); + sPrevVAInterval = get_dddAtriISR18(); + sPrevAVInterval = get_dddAtriISR19(); + ventb = get_dddAtriISR20(); + atrib = get_dddAtriISR21(); + + err = dddTmr0ISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib, err); + + sVBPflag = get_dddTmr0ISR1(); + sEndofRP = get_dddTmr0ISR2(); + sIsSense = get_dddTmr0ISR3(); + sPaceAtri = get_dddTmr0ISR4(); + sAtriFlag = get_dddTmr0ISR5(); + sLRI = get_dddTmr0ISR6(); + sVRP = get_dddTmr0ISR7(); + sVBP = get_dddTmr0ISR8(); + sPVARP = get_dddTmr0ISR9(); + sAVpace = get_dddTmr0ISR10(); + sAVoffset = get_dddTmr0ISR11(); + sAVsense = get_dddTmr0ISR12(); + sOffset = get_dddTmr0ISR13(); + sPVARPflag = get_dddTmr0ISR14(); + sCurInterval = get_dddTmr0ISR15(); + sCurAVInterval = get_dddTmr0ISR16(); + sCurVAInterval = get_dddTmr0ISR17(); + sPrevVAInterval = get_dddTmr0ISR18(); + sPrevAVInterval = get_dddTmr0ISR19(); + ventb = get_dddTmr0ISR20(); + atrib = get_dddTmr0ISR21(); + + if ((ventb_ == 1) && (ventb == 1)) + err++; + else err = 0; + }while (nondet()); + + set_test11(sVBPflag); + set_test12(sEndofRP); + set_test13(sIsSense); + set_test14(sPaceAtri); + set_test15(sAtriFlag); + set_test16(sLRI); + set_test17(sVRP); + set_test18(sVBP); + set_test19(sPVARP); + set_test110(sAVpace); + set_test111(sAVoffset); + set_test112(sAVsense); + set_test113(sOffset); + set_test114(sPVARPflag); + set_test115(sCurInterval); + set_test116(sCurAVInterval); + set_test117(sCurVAInterval); + set_test118(sPrevVAInterval); + set_test119(sPrevAVInterval); + set_test120(ventb); + set_test121(atrib); + return err; +} + +void main(){ + int sVBPflag; + int sEndofRP; + int sIsSense; + int sPaceAtri; + int sAtriFlag; + int sLRI; + int sVRP; + int sVBP; + int sPVARP; + int sAVpace; + int sAVoffset; + int sAVsense; + int sOffset; + int sPVARPflag; + int sCurInterval; + int sCurAVInterval; + int sCurVAInterval; + int sPrevVAInterval; + int sPrevAVInterval; + int u,v,w,x,y,z; + sIsSense = 0; + sEndofRP = 0; + sVBPflag = 0; + sAtriFlag = 1; + sPaceAtri = 0; + sPVARPflag = 0; + int ventb = 0; + int atrib = 0; + int err = 0; + setParametersDDD(u,v,w,x,y,z, + sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval); + + + sVBPflag = get_setParametersDDD1(); + sEndofRP = get_setParametersDDD2(); + sIsSense = get_setParametersDDD3(); + sPaceAtri = get_setParametersDDD4(); + sAtriFlag = get_setParametersDDD5(); + sLRI = get_setParametersDDD6(); + sVRP = get_setParametersDDD7(); + sVBP = get_setParametersDDD8(); + sPVARP = get_setParametersDDD9(); + sAVpace = get_setParametersDDD10(); + sAVoffset = get_setParametersDDD11(); + sAVsense = get_setParametersDDD12(); + sOffset = get_setParametersDDD13(); + sPVARPflag = get_setParametersDDD14(); + sCurInterval = get_setParametersDDD15(); + sCurAVInterval = get_setParametersDDD16(); + sCurVAInterval = get_setParametersDDD17(); + sPrevVAInterval = get_setParametersDDD18(); + sPrevAVInterval = get_setParametersDDD19(); + + err = test1(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib, err); + + + + sVBPflag = get_test11(); + sEndofRP = get_test12(); + sIsSense = get_test13(); + sPaceAtri = get_test14(); + sAtriFlag = get_test15(); + sLRI = get_test16(); + sVRP = get_test17(); + sVBP = get_test18(); + sPVARP = get_test19(); + sAVpace = get_test110(); + sAVoffset = get_test111(); + sAVsense = get_test112(); + sOffset = get_test113(); + sPVARPflag = get_test114(); + sCurInterval = get_test115(); + sCurAVInterval = get_test116(); + sCurVAInterval = get_test117(); + sPrevVAInterval = get_test118(); + sPrevAVInterval = get_test119(); + ventb = get_test120(); + atrib = get_test121(); + + if (err > 2) + goto ERROR; + + return; + ERROR: assert(0); goto ERROR; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd4err_VeriMAP_false.c b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd4err_VeriMAP_false.c new file mode 100644 index 000000000..c2af05878 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd4err_VeriMAP_false.c @@ -0,0 +1,941 @@ +int unknown(){int x; return x;} +unsigned int __VERIFIER_nondet_uint(); +int nondet(){int x; return x;} +int __VERIFIER_nondet_int(){int x; return x;} +void assert(int cond) {if (!cond) __VERIFIER_error();} +# 1 "MAP/UNSAFE-exbench/WHALE-ddd4err.tmp.c" +# 1 "" +# 1 "MAP/UNSAFE-exbench/WHALE-ddd4err.tmp.c" +# 18 "MAP/UNSAFE-exbench/WHALE-ddd4err.tmp.c" +int set_setParametersDDD1(int p){int x; return x;} +int set_setParametersDDD2(int p){int x; return x;} +int set_setParametersDDD3(int p){int x; return x;} +int set_setParametersDDD4(int p){int x; return x;} +int set_setParametersDDD5(int p){int x; return x;} +int set_setParametersDDD6(int p){int x; return x;} +int set_setParametersDDD7(int p){int x; return x;} +int set_setParametersDDD8(int p){int x; return x;} +int set_setParametersDDD9(int p){int x; return x;} +int set_setParametersDDD10(int p){int x; return x;} +int set_setParametersDDD11(int p){int x; return x;} +int set_setParametersDDD12(int p){int x; return x;} +int set_setParametersDDD13(int p){int x; return x;} +int set_setParametersDDD14(int p){int x; return x;} +int set_setParametersDDD15(int p){int x; return x;} +int set_setParametersDDD16(int p){int x; return x;} +int set_setParametersDDD17(int p){int x; return x;} +int set_setParametersDDD18(int p){int x; return x;} +int set_setParametersDDD19(int p){int x; return x;} + +int get_setParametersDDD1(){int x; return x;} +int get_setParametersDDD2(){int x; return x;} +int get_setParametersDDD3(){int x; return x;} +int get_setParametersDDD4(){int x; return x;} +int get_setParametersDDD5(){int x; return x;} +int get_setParametersDDD6(){int x; return x;} +int get_setParametersDDD7(){int x; return x;} +int get_setParametersDDD8(){int x; return x;} +int get_setParametersDDD9(){int x; return x;} +int get_setParametersDDD10(){int x; return x;} +int get_setParametersDDD11(){int x; return x;} +int get_setParametersDDD12(){int x; return x;} +int get_setParametersDDD13(){int x; return x;} +int get_setParametersDDD14(){int x; return x;} +int get_setParametersDDD15(){int x; return x;} +int get_setParametersDDD16(){int x; return x;} +int get_setParametersDDD17(){int x; return x;} +int get_setParametersDDD18(){int x; return x;} +int get_setParametersDDD19(){int x; return x;} + +int ReadTimer0(){int x; return x;} +int WriteTimer0(){int x; return x;} +int calcSmoothedInterval(int a,int b){int x; return x;} +int isRTCommEnabled(){int x; return x;} +int sendVentSense(){int x; return x;} +int sendAtriSense(){int x; return x;} + +int set_dddVentISR1(int p){int x; return x;} +int set_dddVentISR2(int p){int x; return x;} +int set_dddVentISR3(int p){int x; return x;} +int set_dddVentISR4(int p){int x; return x;} +int set_dddVentISR5(int p){int x; return x;} +int set_dddVentISR6(int p){int x; return x;} +int set_dddVentISR7(int p){int x; return x;} +int set_dddVentISR8(int p){int x; return x;} +int set_dddVentISR9(int p){int x; return x;} +int set_dddVentISR10(int p){int x; return x;} +int set_dddVentISR11(int p){int x; return x;} +int set_dddVentISR12(int p){int x; return x;} +int set_dddVentISR13(int p){int x; return x;} +int set_dddVentISR14(int p){int x; return x;} +int set_dddVentISR15(int p){int x; return x;} +int set_dddVentISR16(int p){int x; return x;} +int set_dddVentISR17(int p){int x; return x;} +int set_dddVentISR18(int p){int x; return x;} +int set_dddVentISR19(int p){int x; return x;} +int set_dddVentISR20(int p){int x; return x;} +int set_dddVentISR21(int p){int x; return x;} + +int get_dddVentISR1(){int x; return x;} +int get_dddVentISR2(){int x; return x;} +int get_dddVentISR3(){int x; return x;} +int get_dddVentISR4(){int x; return x;} +int get_dddVentISR5(){int x; return x;} +int get_dddVentISR6(){int x; return x;} +int get_dddVentISR7(){int x; return x;} +int get_dddVentISR8(){int x; return x;} +int get_dddVentISR9(){int x; return x;} +int get_dddVentISR10(){int x; return x;} +int get_dddVentISR11(){int x; return x;} +int get_dddVentISR12(){int x; return x;} +int get_dddVentISR13(){int x; return x;} +int get_dddVentISR14(){int x; return x;} +int get_dddVentISR15(){int x; return x;} +int get_dddVentISR16(){int x; return x;} +int get_dddVentISR17(){int x; return x;} +int get_dddVentISR18(){int x; return x;} +int get_dddVentISR19(){int x; return x;} +int get_dddVentISR20(){int x; return x;} +int get_dddVentISR21(){int x; return x;} + +int startPaceAtri(int p){int x; return x;} +int startPaceVent(int p){int x; return x;} + +int set_dddTmr0ISR1(int p){int x; return x;} +int set_dddTmr0ISR2(int p){int x; return x;} +int set_dddTmr0ISR3(int p){int x; return x;} +int set_dddTmr0ISR4(int p){int x; return x;} +int set_dddTmr0ISR5(int p){int x; return x;} +int set_dddTmr0ISR6(int p){int x; return x;} +int set_dddTmr0ISR7(int p){int x; return x;} +int set_dddTmr0ISR8(int p){int x; return x;} +int set_dddTmr0ISR9(int p){int x; return x;} +int set_dddTmr0ISR10(int p){int x; return x;} +int set_dddTmr0ISR11(int p){int x; return x;} +int set_dddTmr0ISR12(int p){int x; return x;} +int set_dddTmr0ISR13(int p){int x; return x;} +int set_dddTmr0ISR14(int p){int x; return x;} +int set_dddTmr0ISR15(int p){int x; return x;} +int set_dddTmr0ISR16(int p){int x; return x;} +int set_dddTmr0ISR17(int p){int x; return x;} +int set_dddTmr0ISR18(int p){int x; return x;} +int set_dddTmr0ISR19(int p){int x; return x;} +int set_dddTmr0ISR20(int p){int x; return x;} +int set_dddTmr0ISR21(int p){int x; return x;} + +int get_dddTmr0ISR1(){int x; return x;} +int get_dddTmr0ISR2(){int x; return x;} +int get_dddTmr0ISR3(){int x; return x;} +int get_dddTmr0ISR4(){int x; return x;} +int get_dddTmr0ISR5(){int x; return x;} +int get_dddTmr0ISR6(){int x; return x;} +int get_dddTmr0ISR7(){int x; return x;} +int get_dddTmr0ISR8(){int x; return x;} +int get_dddTmr0ISR9(){int x; return x;} +int get_dddTmr0ISR10(){int x; return x;} +int get_dddTmr0ISR11(){int x; return x;} +int get_dddTmr0ISR12(){int x; return x;} +int get_dddTmr0ISR13(){int x; return x;} +int get_dddTmr0ISR14(){int x; return x;} +int get_dddTmr0ISR15(){int x; return x;} +int get_dddTmr0ISR16(){int x; return x;} +int get_dddTmr0ISR17(){int x; return x;} +int get_dddTmr0ISR18(){int x; return x;} +int get_dddTmr0ISR19(){int x; return x;} +int get_dddTmr0ISR20(){int x; return x;} +int get_dddTmr0ISR21(){int x; return x;} + + +int set_dddAtriISR1(int p){int x; return x;} +int set_dddAtriISR2(int p){int x; return x;} +int set_dddAtriISR3(int p){int x; return x;} +int set_dddAtriISR4(int p){int x; return x;} +int set_dddAtriISR5(int p){int x; return x;} +int set_dddAtriISR6(int p){int x; return x;} +int set_dddAtriISR7(int p){int x; return x;} +int set_dddAtriISR8(int p){int x; return x;} +int set_dddAtriISR9(int p){int x; return x;} +int set_dddAtriISR10(int p){int x; return x;} +int set_dddAtriISR11(int p){int x; return x;} +int set_dddAtriISR12(int p){int x; return x;} +int set_dddAtriISR13(int p){int x; return x;} +int set_dddAtriISR14(int p){int x; return x;} +int set_dddAtriISR15(int p){int x; return x;} +int set_dddAtriISR16(int p){int x; return x;} +int set_dddAtriISR17(int p){int x; return x;} +int set_dddAtriISR18(int p){int x; return x;} +int set_dddAtriISR19(int p){int x; return x;} +int set_dddAtriISR20(int p){int x; return x;} +int set_dddAtriISR21(int p){int x; return x;} + +int get_dddAtriISR1(){int x; return x;} +int get_dddAtriISR2(){int x; return x;} +int get_dddAtriISR3(){int x; return x;} +int get_dddAtriISR4(){int x; return x;} +int get_dddAtriISR5(){int x; return x;} +int get_dddAtriISR6(){int x; return x;} +int get_dddAtriISR7(){int x; return x;} +int get_dddAtriISR8(){int x; return x;} +int get_dddAtriISR9(){int x; return x;} +int get_dddAtriISR10(){int x; return x;} +int get_dddAtriISR11(){int x; return x;} +int get_dddAtriISR12(){int x; return x;} +int get_dddAtriISR13(){int x; return x;} +int get_dddAtriISR14(){int x; return x;} +int get_dddAtriISR15(){int x; return x;} +int get_dddAtriISR16(){int x; return x;} +int get_dddAtriISR17(){int x; return x;} +int get_dddAtriISR18(){int x; return x;} +int get_dddAtriISR19(){int x; return x;} +int get_dddAtriISR20(){int x; return x;} +int get_dddAtriISR21(){int x; return x;} + +int set_test11(int p){int x; return x;} +int set_test12(int p){int x; return x;} +int set_test13(int p){int x; return x;} +int set_test14(int p){int x; return x;} +int set_test15(int p){int x; return x;} +int set_test16(int p){int x; return x;} +int set_test17(int p){int x; return x;} +int set_test18(int p){int x; return x;} +int set_test19(int p){int x; return x;} +int set_test110(int p){int x; return x;} +int set_test111(int p){int x; return x;} +int set_test112(int p){int x; return x;} +int set_test113(int p){int x; return x;} +int set_test114(int p){int x; return x;} +int set_test115(int p){int x; return x;} +int set_test116(int p){int x; return x;} +int set_test117(int p){int x; return x;} +int set_test118(int p){int x; return x;} +int set_test119(int p){int x; return x;} +int set_test120(int p){int x; return x;} +int set_test121(int p){int x; return x;} + +int get_test11(){int x; return x;} +int get_test12(){int x; return x;} +int get_test13(){int x; return x;} +int get_test14(){int x; return x;} +int get_test15(){int x; return x;} +int get_test16(){int x; return x;} +int get_test17(){int x; return x;} +int get_test18(){int x; return x;} +int get_test19(){int x; return x;} +int get_test110(){int x; return x;} +int get_test111(){int x; return x;} +int get_test112(){int x; return x;} +int get_test113(){int x; return x;} +int get_test114(){int x; return x;} +int get_test115(){int x; return x;} +int get_test116(){int x; return x;} +int get_test117(){int x; return x;} +int get_test118(){int x; return x;} +int get_test119(){int x; return x;} +int get_test120(){int x; return x;} +int get_test121(){int x; return x;} + + +void setParametersDDD( int tLRI, int tAVpace, int tAVoffset, int tVBP, int tVRP, int tPVARP, + int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval){ + + sLRI = tLRI; + sCurInterval = tLRI; + sCurAVInterval = sAVsense; + sPrevAVInterval = sAVsense; + sCurVAInterval = tLRI - sAVsense; + sPrevVAInterval = tLRI - sAVsense; + sAVpace = tAVpace; + sAVoffset = tAVoffset; + sAVsense = sAVpace - sAVoffset; + sVBP = tVBP; + sVRP = tVRP; + sPVARP = tPVARP; + sOffset = sPVARP > sVRP ? sVRP : sPVARP; + + set_setParametersDDD1(sVBPflag); + set_setParametersDDD2(sEndofRP); + set_setParametersDDD3(sIsSense); + set_setParametersDDD4(sPaceAtri); + set_setParametersDDD5(sAtriFlag); + set_setParametersDDD6(sLRI); + set_setParametersDDD7(sVRP); + set_setParametersDDD8(sVBP); + set_setParametersDDD9(sPVARP); + set_setParametersDDD10(sAVpace); + set_setParametersDDD11(sAVoffset); + set_setParametersDDD12(sAVsense); + set_setParametersDDD13(sOffset); + set_setParametersDDD14(sPVARPflag); + set_setParametersDDD15(sCurInterval); + set_setParametersDDD16(sCurAVInterval); + set_setParametersDDD17(sCurVAInterval); + set_setParametersDDD18(sPrevVAInterval); + set_setParametersDDD19(sPrevAVInterval); + +} +# 86 "MAP/UNSAFE-exbench/WHALE-ddd4err.tmp.c" +int dddTmr0ISR(int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval, int ventb, int atrib, int err){ + if (sAtriFlag){ + if (sPaceAtri){ + if (sEndofRP){ + if (atrib) err = 1; + atrib = 1; + if (ventb) err = 1; + ventb = 1; + if (sIsSense){ + startPaceAtri(0); + }else{ + startPaceAtri(1); + } + + sAtriFlag = 0; + sVBPflag = 1; + sIsSense = 0; + sPaceAtri = 0; + + + sPrevVAInterval = sCurVAInterval; + }else{ + atrib = 0; + ventb = 0; + sEndofRP = 1; + if (sIsSense){ + WriteTimer0(); + + }else{ + WriteTimer0(); + + } + } + }else{ + if (sPVARP > sVRP){ + if (!sPVARPflag){ + WriteTimer0(); + + ventb = 0; + sPVARPflag = 1; + }else{ + sPVARPflag = 0; + } + }else if (sPVARP < sVRP){ + if (!sPVARPflag){ + WriteTimer0(); + + atrib = 0; + sPVARPflag = 1; + }else{ + sPVARPflag = 0; + } + }else{ + sPVARPflag = 0; + } + + if (sPVARPflag == 0){ + atrib = 0; + ventb = 0; + if (sIsSense){ + WriteTimer0(); + + }else{ + WriteTimer0(); + + } + sEndofRP = 1; + sPaceAtri = 1; + } + } + }else{ + if (sIsSense){ + if (sVBPflag){ + sVBPflag = 0; + ventb = 0; + + }else{ + + if (ventb) err = 1; + ventb = 1; + startPaceVent(0); + + sIsSense = 0; + sPaceAtri = 0; + sAtriFlag = 1; + + + sPrevAVInterval = sCurAVInterval; + + + sCurInterval = calcSmoothedInterval(sPrevAVInterval + sPrevVAInterval, sLRI); + sCurVAInterval = sCurInterval - sAVsense; + sCurAVInterval = sCurInterval - sCurVAInterval; + } + }else{ + if (sVBPflag){ + sVBPflag = 0; + ventb = 0; + WriteTimer0(); + + }else{ + + if (ventb) err = 1; + ventb = 1; + startPaceVent(1); + + WriteTimer0(); + + sPaceAtri = 0; + sAtriFlag = 1; + sIsSense = 0; + + + sPrevAVInterval = sCurAVInterval; + + + sCurInterval = calcSmoothedInterval(sPrevAVInterval + sPrevVAInterval, sLRI); + sCurVAInterval = sCurInterval - sAVsense; + sCurAVInterval = sCurInterval - sCurVAInterval; + + } + } + } + set_dddTmr0ISR1(sVBPflag); + set_dddTmr0ISR2(sEndofRP); + set_dddTmr0ISR3(sIsSense); + set_dddTmr0ISR4(sPaceAtri); + set_dddTmr0ISR5(sAtriFlag); + set_dddTmr0ISR6(sLRI); + set_dddTmr0ISR7(sVRP); + set_dddTmr0ISR8(sVBP); + set_dddTmr0ISR9(sPVARP); + set_dddTmr0ISR10(sAVpace); + set_dddTmr0ISR11(sAVoffset); + set_dddTmr0ISR12(sAVsense); + set_dddTmr0ISR13(sOffset); + set_dddTmr0ISR14(sPVARPflag); + set_dddTmr0ISR15(sCurInterval); + set_dddTmr0ISR16(sCurAVInterval); + set_dddTmr0ISR17(sCurVAInterval); + set_dddTmr0ISR18(sPrevVAInterval); + set_dddTmr0ISR19(sPrevAVInterval); + set_dddTmr0ISR20(ventb); + set_dddTmr0ISR21(atrib); + + return err; +} + +int dddVentISR(int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval, int ventb, int atrib, int err){ + if (ventb) return err; + + + sPrevAVInterval = ReadTimer0() - (sCurAVInterval); + + + sCurInterval = calcSmoothedInterval(sPrevAVInterval + sPrevVAInterval, sLRI); + sCurVAInterval = sCurInterval - sAVsense; + sCurAVInterval = sCurInterval - sCurVAInterval; + + if (sPVARP > sVRP){ + WriteTimer0(); + + }else{ + WriteTimer0(); + + } + sIsSense = 1; + sPaceAtri = 0; + sAtriFlag = 1; + + if (atrib) err = 1; + atrib = 1; + + if (ventb) err = 1; + ventb = 1; + + if(isRTCommEnabled()){ + sendVentSense(); + } + set_dddVentISR1(sVBPflag); + set_dddVentISR2(sEndofRP); + set_dddVentISR3(sIsSense); + set_dddVentISR4(sPaceAtri); + set_dddVentISR5(sAtriFlag); + set_dddVentISR6(sLRI); + set_dddVentISR7(sVRP); + set_dddVentISR8(sVBP); + set_dddVentISR9(sPVARP); + set_dddVentISR10(sAVpace); + set_dddVentISR11(sAVoffset); + set_dddVentISR12(sAVsense); + set_dddVentISR13(sOffset); + set_dddVentISR14(sPVARPflag); + set_dddVentISR15(sCurInterval); + set_dddVentISR16(sCurAVInterval); + set_dddVentISR17(sCurVAInterval); + set_dddVentISR18(sPrevVAInterval); + set_dddVentISR19(sPrevAVInterval); + set_dddVentISR20(ventb); + set_dddVentISR21(atrib); + + return err; + +} + +int dddAtriISR(int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval, int ventb, int atrib, int err){ + + if (atrib) return err; + sIsSense = 1; + sVBPflag = 1; + + + sPrevVAInterval = ReadTimer0() - (sCurVAInterval); + + WriteTimer0(); + + sAtriFlag = 0; + if (atrib) err = 1; + atrib = 1; + + if (ventb) err = 1; + ventb = 1; + + if (isRTCommEnabled()){ + sendAtriSense(); + } + set_dddAtriISR1(sVBPflag); + set_dddAtriISR2(sEndofRP); + set_dddAtriISR3(sIsSense); + set_dddAtriISR4(sPaceAtri); + set_dddAtriISR5(sAtriFlag); + set_dddAtriISR6(sLRI); + set_dddAtriISR7(sVRP); + set_dddAtriISR8(sVBP); + set_dddAtriISR9(sPVARP); + set_dddAtriISR10(sAVpace); + set_dddAtriISR11(sAVoffset); + set_dddAtriISR12(sAVsense); + set_dddAtriISR13(sOffset); + set_dddAtriISR14(sPVARPflag); + set_dddAtriISR15(sCurInterval); + set_dddAtriISR16(sCurAVInterval); + set_dddAtriISR17(sCurVAInterval); + set_dddAtriISR18(sPrevVAInterval); + set_dddAtriISR19(sPrevAVInterval); + set_dddAtriISR20(ventb); + set_dddAtriISR21(atrib); + + return err; +} + + +int test1(int sVBPflag, + int sEndofRP, + int sIsSense, + int sPaceAtri, + int sAtriFlag, + int sLRI, + int sVRP, + int sVBP, + int sPVARP, + int sAVpace, + int sAVoffset, + int sAVsense, + int sOffset, + int sPVARPflag, + int sCurInterval, + int sCurAVInterval, + int sCurVAInterval, + int sPrevVAInterval, + int sPrevAVInterval, int ventb, int atrib, int err){ + int a = nondet(), b = nondet(), c = nondet(), d = nondet(); + do{ + if (a){ + err = dddVentISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib, err); + + sVBPflag = get_dddVentISR1(); + sEndofRP = get_dddVentISR2(); + sIsSense = get_dddVentISR3(); + sPaceAtri = get_dddVentISR4(); + sAtriFlag = get_dddVentISR5(); + sLRI = get_dddVentISR6(); + sVRP = get_dddVentISR7(); + sVBP = get_dddVentISR8(); + sPVARP = get_dddVentISR9(); + sAVpace = get_dddVentISR10(); + sAVoffset = get_dddVentISR11(); + sAVsense = get_dddVentISR12(); + sOffset = get_dddVentISR13(); + sPVARPflag = get_dddVentISR14(); + sCurInterval = get_dddVentISR15(); + sCurAVInterval = get_dddVentISR16(); + sCurVAInterval = get_dddVentISR17(); + sPrevVAInterval = get_dddVentISR18(); + sPrevAVInterval = get_dddVentISR19(); + ventb = get_dddVentISR20(); + atrib = get_dddVentISR21(); + } + if (b){ + err = dddTmr0ISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib, err); + + sVBPflag = get_dddTmr0ISR1(); + sEndofRP = get_dddTmr0ISR2(); + sIsSense = get_dddTmr0ISR3(); + sPaceAtri = get_dddTmr0ISR4(); + sAtriFlag = get_dddTmr0ISR5(); + sLRI = get_dddTmr0ISR6(); + sVRP = get_dddTmr0ISR7(); + sVBP = get_dddTmr0ISR8(); + sPVARP = get_dddTmr0ISR9(); + sAVpace = get_dddTmr0ISR10(); + sAVoffset = get_dddTmr0ISR11(); + sAVsense = get_dddTmr0ISR12(); + sOffset = get_dddTmr0ISR13(); + sPVARPflag = get_dddTmr0ISR14(); + sCurInterval = get_dddTmr0ISR15(); + sCurAVInterval = get_dddTmr0ISR16(); + sCurVAInterval = get_dddTmr0ISR17(); + sPrevVAInterval = get_dddTmr0ISR18(); + sPrevAVInterval = get_dddTmr0ISR19(); + ventb = get_dddTmr0ISR20(); + atrib = get_dddTmr0ISR21(); + } + if (c){ + err = dddAtriISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib, err); + + sVBPflag = get_dddAtriISR1(); + sEndofRP = get_dddAtriISR2(); + sIsSense = get_dddAtriISR3(); + sPaceAtri = get_dddAtriISR4(); + sAtriFlag = get_dddAtriISR5(); + sLRI = get_dddAtriISR6(); + sVRP = get_dddAtriISR7(); + sVBP = get_dddAtriISR8(); + sPVARP = get_dddAtriISR9(); + sAVpace = get_dddAtriISR10(); + sAVoffset = get_dddAtriISR11(); + sAVsense = get_dddAtriISR12(); + sOffset = get_dddAtriISR13(); + sPVARPflag = get_dddAtriISR14(); + sCurInterval = get_dddAtriISR15(); + sCurAVInterval = get_dddAtriISR16(); + sCurVAInterval = get_dddAtriISR17(); + sPrevVAInterval = get_dddAtriISR18(); + sPrevAVInterval = get_dddAtriISR19(); + ventb = get_dddAtriISR20(); + atrib = get_dddAtriISR21(); + } + if (d){ + err = dddTmr0ISR(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib, err); + + sVBPflag = get_dddTmr0ISR1(); + sEndofRP = get_dddTmr0ISR2(); + sIsSense = get_dddTmr0ISR3(); + sPaceAtri = get_dddTmr0ISR4(); + sAtriFlag = get_dddTmr0ISR5(); + sLRI = get_dddTmr0ISR6(); + sVRP = get_dddTmr0ISR7(); + sVBP = get_dddTmr0ISR8(); + sPVARP = get_dddTmr0ISR9(); + sAVpace = get_dddTmr0ISR10(); + sAVoffset = get_dddTmr0ISR11(); + sAVsense = get_dddTmr0ISR12(); + sOffset = get_dddTmr0ISR13(); + sPVARPflag = get_dddTmr0ISR14(); + sCurInterval = get_dddTmr0ISR15(); + sCurAVInterval = get_dddTmr0ISR16(); + sCurVAInterval = get_dddTmr0ISR17(); + sPrevVAInterval = get_dddTmr0ISR18(); + sPrevAVInterval = get_dddTmr0ISR19(); + ventb = get_dddTmr0ISR20(); + atrib = get_dddTmr0ISR21(); + } + }while (nondet()); + + set_test11(sVBPflag); + set_test12(sEndofRP); + set_test13(sIsSense); + set_test14(sPaceAtri); + set_test15(sAtriFlag); + set_test16(sLRI); + set_test17(sVRP); + set_test18(sVBP); + set_test19(sPVARP); + set_test110(sAVpace); + set_test111(sAVoffset); + set_test112(sAVsense); + set_test113(sOffset); + set_test114(sPVARPflag); + set_test115(sCurInterval); + set_test116(sCurAVInterval); + set_test117(sCurVAInterval); + set_test118(sPrevVAInterval); + set_test119(sPrevAVInterval); + set_test120(ventb); + set_test121(atrib); + return err; +} + +void main(){ + int sVBPflag; + int sEndofRP; + int sIsSense; + int sPaceAtri; + int sAtriFlag; + int sLRI; + int sVRP; + int sVBP; + int sPVARP; + int sAVpace; + int sAVoffset; + int sAVsense; + int sOffset; + int sPVARPflag; + int sCurInterval; + int sCurAVInterval; + int sCurVAInterval; + int sPrevVAInterval; + int sPrevAVInterval; + int u,v,w,x,y,z; + sIsSense = 0; + sEndofRP = 0; + sVBPflag = 0; + sAtriFlag = 1; + sPaceAtri = 0; + sPVARPflag = 0; + int ventb = 0; + int atrib = 0; + int err = 0; + setParametersDDD(u,v,w,x,y,z, + sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval); + + + sVBPflag = get_setParametersDDD1(); + sEndofRP = get_setParametersDDD2(); + sIsSense = get_setParametersDDD3(); + sPaceAtri = get_setParametersDDD4(); + sAtriFlag = get_setParametersDDD5(); + sLRI = get_setParametersDDD6(); + sVRP = get_setParametersDDD7(); + sVBP = get_setParametersDDD8(); + sPVARP = get_setParametersDDD9(); + sAVpace = get_setParametersDDD10(); + sAVoffset = get_setParametersDDD11(); + sAVsense = get_setParametersDDD12(); + sOffset = get_setParametersDDD13(); + sPVARPflag = get_setParametersDDD14(); + sCurInterval = get_setParametersDDD15(); + sCurAVInterval = get_setParametersDDD16(); + sCurVAInterval = get_setParametersDDD17(); + sPrevVAInterval = get_setParametersDDD18(); + sPrevAVInterval = get_setParametersDDD19(); + + err = test1(sVBPflag, + sEndofRP, + sIsSense, + sPaceAtri, + sAtriFlag, + sLRI, + sVRP, + sVBP, + sPVARP, + sAVpace, + sAVoffset, + sAVsense, + sOffset, + sPVARPflag, + sCurInterval, + sCurAVInterval, + sCurVAInterval, + sPrevVAInterval, + sPrevAVInterval, ventb, atrib, err); + + + + sVBPflag = get_test11(); + sEndofRP = get_test12(); + sIsSense = get_test13(); + sPaceAtri = get_test14(); + sAtriFlag = get_test15(); + sLRI = get_test16(); + sVRP = get_test17(); + sVBP = get_test18(); + sPVARP = get_test19(); + sAVpace = get_test110(); + sAVoffset = get_test111(); + sAVsense = get_test112(); + sOffset = get_test113(); + sPVARPflag = get_test114(); + sCurInterval = get_test115(); + sCurAVInterval = get_test116(); + sCurVAInterval = get_test117(); + sPrevVAInterval = get_test118(); + sPrevAVInterval = get_test119(); + ventb = get_test120(); + atrib = get_test121(); + + if (err) + goto ERROR; + + return; + ERROR: assert(0); goto ERROR; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark1.c b/data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark1.c new file mode 100644 index 000000000..1d6d58b8a --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark1.c @@ -0,0 +1,47 @@ +/* + * benchmark 1 + */ + +#include "seahorn/seahorn.h" + +extern int unknown1(); +extern int unknown2(); + + +void main() +{ + int flag = unknown1(); + + int t = 0; + int s = 0; + int a = 0; + int b = 0; + + + while(unknown1()){ + a++; + b++; + s+=a; + t+=b; + if(flag){ + t+=a; + } + } + //2s >= t + + + int x = 1; + if(flag){ + x = t-2*s+2; + } + //x <= 2 + + int y = 0; + while(y<=x){ + if(unknown2()) + y++; + else + y+=2; + } + sassert(y<=4); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark10.c b/data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark10.c new file mode 100644 index 000000000..f1613fdfe --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark10.c @@ -0,0 +1,47 @@ +#include "seahorn/seahorn.h" + +extern int unknown1(); +extern int unknown2(); +extern int unknown3(); +extern int unknown4(); + +int main(int k) +{ + int z = k; + + int i = 900; + int j = 20; + while(j > 0) + { + i--; + j--; + } + int x = j; + int y = j; + + while(unknown1()) + { + int c = 0; + while(unknown2()) + { + if(z==k+y-c) + { + x++; + y++; + c++; + }else + { + x++; + y--; + c++; + } + } + while(unknown3()) + { + x--; + y--; + } + z=k+y; + } + sassert(x==y); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark2.c b/data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark2.c new file mode 100644 index 000000000..f322c7ec3 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark2.c @@ -0,0 +1,37 @@ +/* + * benchmark 2 + */ +#include "seahorn/seahorn.h" + +extern int unknown1(); +extern int unknown2(); + + +int main() +{ + int i = 1; + int j = 0; + while(unknown1()) + { + j++; + i+=3; + } + //(i-j)%2=1 + + int z = i-j; + int x = 0; + int y = 0; + int w = 0; + + while(unknown2()) + { + z+=x+y+w; + y++; + if(z%2==1) + x++; + w+=2; + } + //x==y && z%2==1 && w%2==0 + + sassert(x==y); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark3.c b/data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark3.c new file mode 100644 index 000000000..599f7ceb8 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark3.c @@ -0,0 +1,51 @@ +/* + * benchmark 3 + */ + +#include "seahorn/seahorn.h" +extern int unknown1(); +extern int unknown2(); +extern int unknown3(); + + +void main() +{ + int a=0; + int b=0; + + while(unknown1()) + { + a = b+1; + b= b+a; + if(a%2 ==0) + { + b+=1; + } + } + + int x = 0; + int y = 0; + + while(unknown2()) { + y+=a; + if(x%2==0) + y++; + if(y%2==0) + x+=b-a; + else + x+=a; + } + + a=1; + b=2; + + while(unknown3()) + { + y+=b; + x+=a; + a++; + b++; + } + + sassert(y>=x); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark4.c b/data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark4.c new file mode 100644 index 000000000..339dc12a8 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark4.c @@ -0,0 +1,59 @@ +/* + * benchmark 4 + */ + +#include "seahorn/seahorn.h" +extern int unknown1(); +extern int unknown2(); + + +void main(int flag) +{ + + + int x = 0; + int y = 0; + + int j = 0; + int i = 0; + + int c = 0; + int d = 1; + + while(unknown1()) + { + x++; + y++; + i+=x; + j+=y; + if(flag) + { + j+=1; + } + } + //j>=i + + + if(j>=i) + x=y; + else + x=y+1; + + + int w = 1; + int z = 0; + + while(unknown1()){ + while(unknown2()){ + if(w%2 == 1) + x++; + if(z%2==0) + y++; + } + z=x+y; + w=z+1; + } + + + sassert(x==y); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark5.c b/data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark5.c new file mode 100644 index 000000000..f00722bab --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark5.c @@ -0,0 +1,90 @@ +/* + * benchmark 5 + */ + +#include "seahorn/seahorn.h" + +extern int unknown1(); +extern int unknown2(); +extern int unknown3(); +extern int unknown4(); + +void main(int flag) +{ + int a = 0; + int b = 0; + int x = 0; + int y = 0; + int z = 0; + + + int i = 1000, j = 10; + while(j > 0){ + i--; + j--; + } + + //w = j = 0 + int w = j; + + while(unknown1()) + { + int i = z; + int j = w; + int k = 0; + + while(i=z && a-b==0 && i > 10); + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark6.c b/data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark6.c new file mode 100644 index 000000000..2c08a0868 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark6.c @@ -0,0 +1,63 @@ +/* + * benchmark 6 + */ + +#include "seahorn/seahorn.h" +extern int unknown1(); +extern int unknown2(); +extern int unknown3(); + +void main() +{ + + int i=0; + int j=0; + int a=0; + int b=1; + int c=0; + int d=2; + + while(unknown3()) + { + i+=b-a; + j+=d-c; + d++; + c++; + a+=2; + b+=2; + } + + int x; + int y; + + if(j%2==1) + x=1; + else + x=0; + + y=0; + i=2; + j=1; + + while(unknown1()){ + y++; + if(a%2==0) + x++; + else + x+=2; + while(unknown2()){ + j = y; + if(a%2==1) + i = x; + else + i = j + x; + } + a = i; + } + //i=2j& x=y& a%2=0 + + sassert(x==y); +} + + + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark7.c b/data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark7.c new file mode 100644 index 000000000..03a0c1126 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark7.c @@ -0,0 +1,56 @@ +/* + * benchmark 7 + */ + +#include "seahorn/seahorn.h" + +extern int unknown1(); +extern int unknown2(); + +void main(int flag) +{ + + int x = 0; + int y = 0; + int a; + + + if(flag) + a = 0; + else + a = 1; + + int z; + while(unknown2()) + { + z=y-x; + a+=z; + x++; + y++; + } + + x=1; + y=1; + while(unknown1()){ + if(flag) + { + a = x+y; + x++; + } + else + { + a = x+y+1; + y++; + } + if(a%2==1) + y++; + else + x++; + } + //x==y + + if(flag) + a++; + int t = a%2; + sassert(t==1); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark8.c b/data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark8.c new file mode 100644 index 000000000..1aa6e71f5 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark8.c @@ -0,0 +1,47 @@ +/* + * benchmark 8 + */ +#include "seahorn/seahorn.h" + +extern int unknown1(); +extern int unknown2(); + + +void main() +{ + int flag = unknown1(); + int j = 0; + int i = 0; + int a = 0; + int b = 0; + + while(unknown1()) + { + a++; + b++; + i+=a; + j+=b; + if(flag) + { + j+=1; + } + } + + + int x = 1; + if(flag) + { + x = i-j+2; + } + + + int y = 0; + while(y<=x) + { + if(unknown2()) + y++; + else + y+=2; + } + sassert(y<=4); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark9.c b/data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark9.c new file mode 100644 index 000000000..6f146b72c --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark9.c @@ -0,0 +1,61 @@ +#include "seahorn/seahorn.h" + +extern int unknown1(); +extern int unknown2(); +extern int unknown3(); + + +int main(int flag) +{ + int a = 1; + int b = 1; + int c = 2; + int d = 2; + + int s = 1; + int t = 0; + int j = 1; + + int k = 1; + int w = 0; + + int x; + int y = 3; + + while(unknown3()) + { + j = s-t; + s++; + t++; + c++; + d = d+k-w; + } + + + + if(j%2 == 1) + x = 3; + else + x = 2; + + + while(unknown1()) + { + x = a+c; + y = b+d; + if((x+y)%2 == 0) + { + a++; + d++; + }else + { + a--; + } + while(unknown2()) + { + c--; + b--; + } + } + sassert(a+c==b+d); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/.DS_Store b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 GIT binary patch literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T00); else goto END; + if(bufsize >0); else goto END; + if(ielen >0); else goto END; + + if (bufsize < leader_len) + goto END; + + // p = buf; + p = 0; + // memcpy(p, leader, leader_len); + bufsize_0 = bufsize; + bufsize -= leader_len; + p += leader_len; + + /* This is the fix. */ + if (bufsize < 2*ielen) + goto END; + + // assert(p+ielen<=bufsize_0); + + for (i = 0; i < ielen && bufsize > 2; i++) { + sassert(0<=p); + sassert(p+1 0 ); else goto END; + + // str [BASE_SZ-1] = 0; + sassert( 0 <= BASE_SZ-1 ); + + if (len == 0) + goto END; + + i = 0; + j = 0; + while (1) { + if ( len == 0 ){ + goto END; + } else { + sassert( 0<= j ); sassert(j < BASE_SZ); + sassert( 0<= i ); sassert(i < BASE_SZ ); + // buf[j] = str[i]; + if ( __BLAST_NONDET ) { + i++; + j++; + goto END; + } + } + i ++; + j ++; + len --; + } + + END: return 0; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/NetBSD_glob3_iny.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/NetBSD_glob3_iny.c new file mode 100644 index 000000000..33f9891ef --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/NetBSD_glob3_iny.c @@ -0,0 +1,120 @@ +#include "seahorn/seahorn.h" + +int main () +{ + /* + Char *buf; + Char *pattern; + Char *bound; + */ + int buf_off, pattern_off, bound_off; + + int MAXPATHLEN = unknown (); + // int A [MAXPATHLEN+1]; + // int B [PATTERNLEN]; + + /* glob3's locals */ + // char d_name[MAXNAMLEN + 1]; + int error; + // char g3_buf[MAXPATHLEN]; + int pathbuf_off; + int pathend_off; + int pathlim_off; + + /* + buf = A; + pattern = B; + */ + if(MAXPATHLEN >0); else goto END; + + buf_off = 0; + pattern_off = 0; + + bound_off = MAXPATHLEN; + +/* glob3 ( + * buf, + * buf, + * bound, + * pattern); + +static int +glob3( + Char *pathbuf, + Char *pathend, + Char *pathlim, + Char *pattern) +*/ + pathbuf_off = 0; + pathend_off = 0; + pathlim_off = MAXPATHLEN; + + // A[pathend_off] = EOS; + + error = 0; + + /* LOOP */ + while (unknown()) { + int i; + + /* Initial DOT must be matched literally. */ + sassert(0 <= pattern_off ); sassert( pattern_off <= MAXPATHLEN); + //if (d_name[0] == DOT && B[pattern_off] != DOT) + if (unknown()) continue; + /* + * The resulting string contains EOS, so we can + * use the pathlim character, if it is the nul + */ + i = 0; + for (;;) + if (i > MAXPATHLEN) goto END; + else { + sassert(0 <= i); sassert( i <= MAXPATHLEN); + //A[i] = d_name[i]; + i++; + if (unknown()) goto END; + } + + /* + * Have we filled the buffer without seeing EOS? + */ + sassert(0 <= pathlim_off ); sassert( pathlim_off <= MAXPATHLEN); + + // if (i > MAXPATHLEN && B[pathlim_off] != EOS) + if (i > MAXPATHLEN){ + if ( unknown() ) { + /* + * Abort when requested by caller, otherwise + * reset pathend back to last SEP and continue + * with next dir entry. + */ + if ( unknown() ) { + error = 5; + goto END; + } + else { + /* OK */ + sassert (0 <= i);sassert (i <= MAXPATHLEN + 1); + //A[i] = EOS; + continue; + } + } + } + /* match() is scary, and recursive, which Satabs can't handle. + * Replacing it with a non-deterministic stub.... + * + * This is irrelevant to overflow detection anyhow, since this + * is *after* the overflow. */ + if (/*!match(pathend, pattern, restpattern)*/unknown()) { + /* OK */ + sassert (i <= MAXPATHLEN + 1); + //A[i] = EOS; + continue; + } + END_LOOP1:; + } + + /* end glob3 */ + + END: return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/NetBSD_loop.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/NetBSD_loop.c new file mode 100644 index 000000000..ef50d1fbf --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/NetBSD_loop.c @@ -0,0 +1,50 @@ +#include "seahorn/seahorn.h" + + +int main () +{ + // int pathbuf[MAXPATHLEN+1]; + + int MAXPATHLEN = unknown (); + int pathbuf_off = unknown (); + + /* Char *bound = pathbuf + sizeof(pathbuf)/sizeof(*pathbuf) - 1; */ + int bound_off; + + /* glob2's local vars */ + /* Char *p; */ + int glob2_p_off; + int glob2_pathbuf_off; + int glob2_pathlim_off; + + if(MAXPATHLEN > 0); else goto END; + + pathbuf_off = 0; + bound_off = pathbuf_off + (MAXPATHLEN + 1) - 1; + + /* glob2 (pathbuf, bound); */ + + /* +int glob2 (Char *pathbuf, Char *pathlim) +{ +*/ + + glob2_pathbuf_off = pathbuf_off; + glob2_pathlim_off = bound_off; + + for (glob2_p_off = glob2_pathbuf_off; + glob2_p_off <= glob2_pathlim_off; + glob2_p_off++) { + /* OK */ + /* *p = 1; */ + sassert (0 <= glob2_p_off ); sassert (glob2_p_off < MAXPATHLEN + 1); + //pathbuf[glob2_p_off] = 1; + } + + /* + return 0; +} +*/ + + END: return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/NetBSD_loop_int.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/NetBSD_loop_int.c new file mode 100644 index 000000000..5ce8ad5b8 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/NetBSD_loop_int.c @@ -0,0 +1,60 @@ +#include "seahorn/seahorn.h" + +int main () +{ + int MAXPATHLEN = unknown (); + /* + Char *buf; + Char *pattern; + Char *bound; + */ + int buf_off; + int pattern_off; + int bound_off; + + // int A [MAXPATHLEN+1]; + // int B [PATTERNLEN]; + + /* glob3's local vars */ + int glob3_pathbuf_off; + int glob3_pathend_off; + int glob3_pathlim_off; + int glob3_pattern_off; + int glob3_dc; + + if(MAXPATHLEN > 0); else goto END; + + /* + buf = A; + pattern = B; + */ + buf_off = 0; + pattern_off = 0; + + /* bound = A + sizeof(A)/sizeof(*A) - 1; */ + bound_off = 0 + (MAXPATHLEN + 1) - 1; + + glob3_pathbuf_off = buf_off; + glob3_pathend_off = buf_off; + glob3_pathlim_off = bound_off; + glob3_pattern_off = pattern_off; + + glob3_dc = 0; + for (;;) + if (glob3_pathend_off + glob3_dc >= glob3_pathlim_off) break; + else { + // A[glob3_dc] = 1; + glob3_dc++; + /* OK */ + sassert(0 <= glob3_dc);sassert (glob3_dc < MAXPATHLEN + 1); + if (unknown()) goto END; + } + + /* + return 0; +} +*/ + + + END: return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/SpamAssassin-loop.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/SpamAssassin-loop.c new file mode 100644 index 000000000..cd0e558b4 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/SpamAssassin-loop.c @@ -0,0 +1,57 @@ +#include "seahorn/seahorn.h" + +extern int unknown(); + +void main () +{ + int len = unknown(); + int i; + int j; + // char buffer[BUFSZ]; + int bufsize = unknown(); + int limit = bufsize - 4; + + //tmpl("(le(len,i,bufsize,j,limit),le(len,i,bufsize,j,limit))"); + + for (i = 0; i < len; ) { + for (j = 0; i < len && j < limit; ){ + if (i + 1 < len){ + sassert(i+10); else goto END; + if(tokenlen>0); else goto END; + if(scheme >= 0 );else goto END; + if (scheme == 0 + || (urilen-1 < scheme)) { + goto END; + } + + cp = scheme; + + sassert(cp-1 < urilen); + sassert(0 <= cp-1); + + if (unknown()) { + sassert(cp < urilen); + sassert(0 <= cp); + while ( cp != urilen-1) { + if(unknown()) break; + sassert(cp < urilen); + sassert(0 <= cp); + ++cp; + } + sassert(cp < urilen); + sassert( 0 <= cp ); + if (cp == urilen-1) goto END; + sassert(cp+1 < urilen); + sassert( 0 <= cp+1 ); + if (cp+1 == urilen-1) goto END; + ++cp; + + scheme = cp; + + if (unknown()) { + c = 0; + //token[0] = uri; + sassert(cp < urilen); + sassert(0<=cp); + while ( cp != urilen-1 + && c < tokenlen - 1) { + sassert(cp < urilen); + sassert(0<=cp); + if (unknown()) { + ++c; + /* OK */ + sassert(c < tokenlen); + sassert(0<=c); + //token[c] = uri + cp + 1; + sassert(cp < urilen); //Interesting assert + sassert(0<=cp); + //uri[cp] = EOS; + } + ++cp; + } + goto END; + } + } + + END:; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/apache-get-tag.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/apache-get-tag.c new file mode 100644 index 000000000..1131f70ea --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/apache-get-tag.c @@ -0,0 +1,123 @@ +#include "seahorn/seahorn.h" + +extern int unknown(); + +void main() +{ + int tagbuf_len = unknown(); + int t; + //int __BLAST_NONDET; + + //tmpl("(le(tagbuf_len, t), le(tagbuf_len, t))"); + // tmpl("le(tagbuf_len, t)"); + + if(tagbuf_len >= 1); else goto END; + + t = 0; + + --tagbuf_len; + /* + do { + GET_CHAR(c, NULL); + } while (ap_isspace(c)); + */ + + /* + if (c == '-') { + GET_CHAR(c, NULL); + if (c == '-') { + do { + GET_CHAR(c, NULL); + } while (ap_isspace(c)); + if (c == '>') { + ap_cpystrn(tag, "done", tagbuf_len); + return tag; + } + } + return NULL; + } + */ + + while (1) { + if (t == tagbuf_len) { + sassert(0 <= t); + sassert(t <= tagbuf_len); + // tag[t] = EOS; + goto END; + } + if (unknown()) { + break; + } + sassert(0 <= t); + sassert(t <= tagbuf_len); + // tag[t] = ap_tolower(c); + t++; + // GET_CHAR(c, NULL); + } + + sassert(0 <= t); + sassert(t <= tagbuf_len); + // tag[t] = EOS; + t++; + // tag_val = tag + t; + /* + while (ap_isspace(c)) { + GET_CHAR(c, NULL); + } + if (c != '=') { + return NULL; + } + + do { + GET_CHAR(c, NULL); + } while (ap_isspace(c)); + + if (c != '"' && c != '\'') { + return NULL; + } + term = c; + */ + while (1) { + // GET_CHAR(c, NULL); + if (t == tagbuf_len) { /* Suppose t == tagbuf_len - 1 */ + sassert(0 <= t); + sassert(t <= tagbuf_len); + // tag[t] = EOS; + goto END; + } + + if (unknown()) { + // GET_CHAR(c, NULL); + if ( unknown()) { + /* OK */ + sassert(0 <= t); + sassert(t <= tagbuf_len); // interesting assert, t2. + // tag[t] = '\\'; + t++; + if (t == tagbuf_len) { + /* OK */ + sassert(0 <= t); + sassert(t <= tagbuf_len); + // tag[t] = EOS; + goto END; + } + } + } + else if ( unknown()) { + break; + } + + /* OK */ + sassert(0 <= t); + sassert(t <= tagbuf_len); + // tag[t] = c; + t++; /* Now t == tagbuf_len + 1 + * So the bounds check (t == tagbuf_len) will fail */ + } + /* OK */ + sassert(0 <= t); + sassert(t <= tagbuf_len); + // tag[t] = EOS; + + END:; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/bind_expands_vars2.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/bind_expands_vars2.c new file mode 100644 index 000000000..6bc743659 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/bind_expands_vars2.c @@ -0,0 +1,30 @@ +#include "seahorn/seahorn.h" + +extern int unknown(); + +int main() { + + int cp1_off, n1, n2, mc_i; + n1 = unknown(); + n2 = unknown(); + cp1_off = unknown(); + + int MAXDATA = unknown(); + if (MAXDATA > 0 ); else goto END; + + if ((n1 <= MAXDATA * 2)); else goto END; + + if ((cp1_off <= n1)); else goto END; + + if ((n2 <= MAXDATA*2 - n1)); else goto END; + + for (mc_i = 0; mc_i < n2; mc_i++) { + /* OK */ + sassert (cp1_off+mc_i < MAXDATA * 2); + // data[cp1_off+mc_i] = msg[cp_off+mc_i]; + } + + /* end of rrextract */ + + END: return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/bound.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/bound.c new file mode 100644 index 000000000..6d10054b3 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/bound.c @@ -0,0 +1,51 @@ +#include "seahorn/seahorn.h" + +extern int unknown(); +extern int bound_var(int); +extern int bounding_var(int); + +int main() { + int n,h; + int i,j,k,m; + + n = unknown(); + h = unknown(); + + bound_var(h); + bounding_var(n); + + //assume(n >=0 ); + //assume(n <=200); + + if (n >= 0 && n <= 200) { + k=0; + i=n; + h = i+k; + while( i > 0 ){ + i--; + k++; + h = i+k; + } + + j = k; + m = 0; + h = j+m; + while( j > 0 ) { + j--; + m++; + h = j+m; + } + sassert (i >= 0 ); + } + return 0; +} +/* +bound_vars(vars(n)). + +bound_exp(pc(main-1-11), i+k). +bound_exp(pc(main-10-18),j+m). + +bound_var(data(V1, V5, V2, V4, V3),V4). +bounding_vars(data(V1, V5, V2, V4, V3),[V1]). + +*/ diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/down.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/down.c new file mode 100644 index 000000000..968517a7d --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/down.c @@ -0,0 +1,19 @@ +#include "seahorn/seahorn.h" + +extern int unknown(); + +void main() { + int n = unknown(); + int k = 0; + int i = 0; + while( i < n ) { + i++; + k++; + } + int j = n; + while( j > 0 ) { + sassert(k > 0); + j--; + k--; + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/fragtest_simple.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/fragtest_simple.c new file mode 100644 index 000000000..7623d6d81 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/fragtest_simple.c @@ -0,0 +1,47 @@ +#include "seahorn/seahorn.h" + +extern int unknown(); + +void main(){ + int i,pvlen ; + int tmp___1 ; + int k = 0; + int n; + + i = 0; + + // pkt = pktq->tqh_first; + while ( unknown() ) + i = i + 1; + if (i > pvlen) { + pvlen = i; + } else { + + } + i = 0; + + while ( unknown() ) { + tmp___1 = i; + i = i + 1; + k = k +1; + } + while ( unknown() ); + + int j = 0; + n = i; + // rand_shuffle(r, (void *)pvbase, (unsigned int )i, sizeof(pkt)); + while (1) { + + sassert(k >= 0); + k = k -1; + i = i - 1; + j = j + 1; + if (j < n) { + + } else { + break; + } + } + return; + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/gulwani_cegar1.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/gulwani_cegar1.c new file mode 100644 index 000000000..c2b265295 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/gulwani_cegar1.c @@ -0,0 +1,22 @@ +#include "seahorn/seahorn.h" + +extern int unknown(); + +void main() { + int x = unknown(); + int y = unknown(); + + assume(0 <= x); assume(x <= 2); + assume(0 <= y); assume(y <= 2); + + if (x >= 0 && x <= 2 && y >= 0 && y <= 2) { + while( unknown() ) { + x+=2; + y+=2; + } + if( y >= 0 ) + if( y <= 0 ) + if( 4 <= x ) + sassert( x < 4 ); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/gulwani_cegar2.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/gulwani_cegar2.c new file mode 100644 index 000000000..8a1fcb79f --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/gulwani_cegar2.c @@ -0,0 +1,20 @@ +#include "seahorn/seahorn.h" + +extern int unknown(); + +void main() { + int x,m,n; + n = unknown(); + x = 0; + m = 0; + while( x < n ) { + if(unknown()) + m = x; + x++; + } + if( n > 0 ) + { + sassert( 0<=m); + sassert(m0); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/half.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/half.c new file mode 100644 index 000000000..6ce0b1361 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/half.c @@ -0,0 +1,28 @@ +//#include +#include "seahorn/seahorn.h" + +extern int unknown(); + +int main(int argc, char** argv) { + int n,i,k; + n = unknown(); + i = unknown(); + k = unknown(); + + k = n; + i = 0; + while( i < n ) { + k--; + i = i + 2; + } + + int j = 0; + + while( 2*j < n ) { + sassert(k >= 0); + k--; + j++; + } + + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/heapsort.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/heapsort.c new file mode 100644 index 000000000..74758e09b --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/heapsort.c @@ -0,0 +1,50 @@ +#include "seahorn/seahorn.h" + +extern int unknown(); + +int main( int argc, char *argv[]){ + int n,l,r,i,j; + n = unknown(); + l = unknown(); + + if(1 <= n && n == 2 * (l-1)) { + //l = n/2 + 1; + r = n; + if(l>1) { + l--; + } else { + r--; + } + while(r > 1) { + i = l; + j = 2*l; + while(j <= r) { + if( j < r) { + sassert(1 <= j);sassert(j <= n); + sassert(1 <= j+1);sassert(j+1 <= n); + if( unknown() ) + j = j + 1; + } + sassert(1 <= j);sassert(j <= n); + if( unknown() ) { + break; + } + sassert(1 <= i); + sassert(i <= n); + sassert(1 <= j); + sassert(j <= n); + i = j; + j = 2*j; + } + if(l > 1) { + sassert(1 <= l);sassert(l <= n); + l--; + } else { + sassert(1 <= r);sassert(r <= n); + r--; + } + } + } + return 0; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/heapsort1.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/heapsort1.c new file mode 100644 index 000000000..cee0d32f2 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/heapsort1.c @@ -0,0 +1,45 @@ +#include "seahorn/seahorn.h" + +extern int unknown(); + +int main( int argc, char *argv[]){ + int n,l,r,i,j; + n = unknown(); + l = unknown(); + + //tmpl("(le(n,l,r,i,j),le(n,l,r,i,j),le(n,l,r,i,j))"); + //tmpl("(le(n,l,r,i,j),le(n,l,r,i,j))"); + + if(1 <= n && n == 2* (l-1)) { + //l = n/2 + 1; + r = n; + if(l>1) { + l--; + } else { + r--; + } + while(r > 1) { + i = l; + j = 2*l; + while(j <= r) { + if( j < r) { + if( unknown() ) + j = j + 1; + } + if( unknown() ) { + break; + } + i = j; + j = 2*j; + } + if(l > 1) { + l--; + } else { + sassert(r <= n); + r--; + } + } + } + return 0; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/heapsort2.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/heapsort2.c new file mode 100644 index 000000000..080143fef --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/heapsort2.c @@ -0,0 +1,45 @@ +#include "seahorn/seahorn.h" + +extern int unknown(); + +int main( int argc, char *argv[]){ + int n,l,r,i,j; + n = unknown(); + l = unknown(); + + //tmpl("(le(n,l,r,i,j),le(n,l,r,i,j),le(n,l,r,i,j))"); + //tmpl("(le(n,l,r,i,j),le(n,l,r,i,j))"); + + if(1 <= n && n == 2 * (l - 1)) { + //l = n/2 + 1; + r = n; + if(l>1) { + l--; + } else { + r--; + } + while(r > 1) { + i = l; + j = 2*l; + while(j <= r) { + if( j < r) { + if( unknown() ) + j = j + 1; + } + if( unknown() ) { + break; + } + i = j; + j = 2*j; + } + if(l > 1) { + sassert(l <= n); + l--; + } else { + r--; + } + } + } + return 0; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/heapsort3.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/heapsort3.c new file mode 100644 index 000000000..089dca5e0 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/heapsort3.c @@ -0,0 +1,55 @@ +#include "seahorn/seahorn.h" + +extern int unknown(); + +int main( int argc, char *argv[]){ + int n,l,r,i,j; + n = unknown(); + l = unknown(); + + //tmpl("(le(n,l,r,i,j),le(n,l,r,i,j),le(n,l,r,i,j))"); + //tmpl("(le(n,l,r,i,j),le(n,l,r,i,j))"); + + if(1 <= n && n == 2 * (l-1)) { + //l = n/2 + 1; + r = n; + if(l>1) { + l--; + } else { + r--; + } + while(r > 1) { + i = l; + j = 2*l; + while(j <= r) { + if( j < r) { + sassert(1 <= j); + sassert(j <= n); + sassert(1 <= j+1); sassert(j+1 <= n); + if( unknown() ) + j = j + 1; + } + sassert(1 <= j); sassert(j <= n); + /* if( unknown() ) { + break; + } + */ + sassert(1 <= i); + sassert(i <= n); + sassert(1 <= j); + sassert(j <= n); + i = j; + j = 2*j; + } + if(l > 1) { + sassert(1 <= l); sassert(l <= n); + l--; + } else { + sassert(1 <= r); sassert(r <= n); + r--; + } + } + } + return 0; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/id_build.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/id_build.c new file mode 100644 index 000000000..8fc8ad43f --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/id_build.c @@ -0,0 +1,35 @@ +// from FreePastry source, file Id.java + /** + * Constructor, which takes the output of a toStringFull() and converts it back + * into an Id. Should not normally be used. + * + * @param hex The hexadeciaml representation from the toStringFull() + */ +/* + public static Id build(char[] chars, int offset, int length) { + int[] array = new int[nlen]; + + for (int i=0; i int[] + * + * @param material The input byte[] + * @return THe int[] + */ +/* + protected static int[] trans(byte[] material) { + int[] array = new int[nlen]; + + for (int j = 0; (j < IdBitLength / 8) && (j < material.length); j++) { + int k = material[j] & 0xff; + array[j / 4] |= k << ((j % 4) * 8); + } + + return array; + } +*/ +#include "seahorn/seahorn.h" + +void main() { + // int[] array = new int[nlen]; + int idBitLength, material_length, nlen; + int j, k; + + nlen = unknown (); + idBitLength = unknown (); + material_length = unknown (); + + tmpl("(le(j,nlen,idBitLength, material_length),le(j,nlen,idBitLength, material_length))"); + + if (!( nlen == idBitLength / 32 )) return; + + + for (j = 0; (j < idBitLength / 8) && (j < material_length); j++) { + sassert( 0 <= j); + sassert( j < material_length ); + sassert( 0 <= j / 4); + sassert( j / 4 < nlen); + + } + + + return; +} \ No newline at end of file diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/ken-imp.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/ken-imp.c new file mode 100644 index 000000000..39f40533d --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/ken-imp.c @@ -0,0 +1,16 @@ +extern void __VERIFIER_error(); + +extern int unknown(); + +void main() { + int i = unknown(); + int j = unknown(); + int x = i; + int y = j; + while(x!=0) { + x--; + y--; + } + if(i==j) + if(y != 0) ERROR: __VERIFIER_error(); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/large_const.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/large_const.c new file mode 100644 index 000000000..64440490a --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/large_const.c @@ -0,0 +1,48 @@ +//#include +//#include +#include "seahorn/seahorn.h" + +extern int unknown(); + +int main(int argc, char* argv[]) { + int c1 = unknown(); + int c2 = unknown(); + int c3 = unknown(); + int n, v; + int i, k, j; + + __VERIFIER_assume(0 < c1 && c1 < 4000); + __VERIFIER_assume(0 < c2 && c2 < 2000); + __VERIFIER_assume(0 < c3 && c3 < 10000); + + if (argc == 2) + srandom(atoi(argv[1])); + else { + printf("Usage: randomseed\n"); + return -1; + } + + n = random() % 10; + + k = 0; + i = 0; + while( i < n ) { + i++; + v = random() % 2; + if( v == 0 ) + k += c1; + else if( v == 1 ) + k += c2; + else + k += c3; + } + + j = 0; + while( j < n ) { + sassert(k > 0); + j++; + k--; + } + + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/mergesort.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/mergesort.c new file mode 100644 index 000000000..865e75419 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/mergesort.c @@ -0,0 +1,122 @@ + #include "seahorn/seahorn.h" + +extern int unknown(); + +// This is an iterative version of merge sort. +// It merges pairs of two consecutive lists one after another. +// After scanning the whole array to do the above job, +// it goes to the next stage. Variable k controls the size +// of lists to be merged. k doubles each time the main loop +// is executed. +//#include +//#include + +//int a[100000],b[100000]; + +int min(int x, int y) { return (x0); + + for (k=1;k0) { + + for (k=1;k0) { + + for (k=1;k0) { + for (k=1;k0) { + + for (k=1;k0) { + + for (k=1;k= 0) { + for (k = 0; k < nm1; k++) { + kp1 = k + 1; + + /* find l = pivot index */ + //l = idamax(n-k,&a[lda*k+k],1) + k; + + int dx = k; + int incx = 1; + + //REAL dmax; + + + if( n-k < 1 ) { itemp = -1; goto IDAMAXEND; } + if(n-k ==1 ) { itemp = 0; goto IDAMAXEND; } + if(incx != 1) { + + /* code for increment not equal to 1 */ + + int ix = 1; + //dmax = fabs((double)dx[0]); + //assert(0 <= dx);//assert(dx < lda); + ix = ix + incx; + for (i = 1; i < n-k; i++) { + //assert(0 <= dx+ix);assert(dx+ix < lda); + //if(fabs((double)dx[ix]) > dmax) { + if(unknown()) { + itemp = i; + //assert(0 <= dx+ix);assert(dx+ix < lda); + //dmax = fabs((double)dx[ix]); + } + ix = ix + incx; + } + } + else { + + /* code for increment equal to 1 */ + + itemp = 0; + // dmax = fabs((double)dx[0]); + for (i = 1; i < n-k; i++) { + //assert(0 <= dx+i);assert(dx+i < lda); + //if(fabs((double)dx[i]) > dmax) { + if(unknown()) { + itemp = i; + //assert(0 <= dx+i);assert(dx+i < lda); + //dmax = fabs((double)dx[i]); + } + } + } + + IDAMAXEND: l = itemp +k; + + + //ipvt[k] = l; + + /* zero pivot implies this column already + triangularized */ + //assert(0 <= k);assert(k < lda); + //assert(0 <= l);assert(l < lda); + //if (a[lda*k+l] != ZERO) { + if ( unknown() ) { + /* interchange if necessary */ + + if (l != k) { + // t = a[lda*k+l]; + // a[lda*k+l] = a[lda*k+k]; + // a[lda*k+k] = t; + } + + /* compute multipliers */ + + //t = -ONE/a[lda*k+k]; + // dscal(n-(k+1),t,&a[lda*k+k+1],1); + + /* row elimination with column indexing */ + + for (j = kp1; j < n; j++) { + //assert(0 <= j);assert(j < lda); + //assert(0 <= l);assert(l < lda); + //assert(0 <= k);assert(k < lda); + //t = a[lda*j+l]; + if (l != k) { + // a[lda*j+l] = a[lda*j+k]; + // a[lda*j+k] = t; + } + //daxpy(n-(k+1),t,&a[lda*k+k+1],1, + //&a[lda*j+k+1],1); + } + } + else { + //*info = k; + } + } + } + sassert(0 <= n);sassert(n < lda); + + END:; //ipvt[n-1] = n-1; + + //if (a[lda*(n-1)+(n-1)] == ZERO) *info = n-1; +} + + + + + + + + + + + + + + + +/* +void main() { + int i,j,k,n; + + for (i=0;i=0); + assert(n>i); + } +} +*/ diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/nest-if7.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/nest-if7.c new file mode 100644 index 000000000..fdff37f4c --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/nest-if7.c @@ -0,0 +1,18 @@ + #include "seahorn/seahorn.h" + +extern int unknown(); + +void main() { + int i,j,k,n; + + tmpl("(le(n,i,j,k),le(n,i,j,k))"); + + for (i=0;i=j); + sassert(j>=i); + // assert(i>=0); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/nest-if8.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/nest-if8.c new file mode 100644 index 000000000..56b8c4ef9 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/nest-if8.c @@ -0,0 +1,31 @@ + #include "seahorn/seahorn.h" + +extern int unknown(); + +void main() { + int i,j,k,n,m; + m = unknown (); + n = unknown (); + if( m+1 < n ); else goto END; + for ( i=0; i= 0 ); + j++; + k = 0; + while( k < j ) { + sassert( k < n ); + k++; + } + + } + else { + sassert( n+j+5>i ); + j+= 2; + } + } + + + } + END:; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/nest-len.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/nest-len.c new file mode 100644 index 000000000..f2fbcc64c --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/nest-len.c @@ -0,0 +1,22 @@ + #include "seahorn/seahorn.h" + + +void main() { + int i,k,n,l; + + //tmpl("(le(n,i,k))"); + + //assume(l>0); + + for (k=1;k0); + + for (k=1;k0); + + for (k=1;k0); + if (l > 0) { + for (k=1;k0); + n = unknown (); + l = unknown (); + k = unknown (); + i = unknown (); + if (l > 0) { + for (k=1;k=i); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/nested6.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/nested6.c new file mode 100644 index 000000000..f332748e0 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/nested6.c @@ -0,0 +1,26 @@ +#include "seahorn/seahorn.h" + +extern int unknown(); + +void main() { + int i,j,k,n; + k = unknown(); + n = unknown(); + + if( k == n); else goto END; + + for (i=0;i=2*i); + } + } + else { + sassert( k >= n ); + sassert( k <= n ); + } + } + } + END:; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/nested7.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/nested7.c new file mode 100644 index 000000000..4958876d2 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/nested7.c @@ -0,0 +1,34 @@ + #include "seahorn/seahorn.h" + +extern int unknown(); + +void main() { + int i,j,k,l,n,m; + n = unknown (); + m = unknown (); + k = unknown (); + l = unknown (); + i = unknown (); + j = unknown (); + if(j<=n+k); else goto END; + if (n > 0) { + for(i=0;i 5 ) { + for(l=0;l n ) { + for(l=0;l +//#include + +int main(){ + //int x1 = 1,x2 = -1 ,x3 = -2,x4 = 3,x5 = 2; + int x1,x2 ,x3,x4,x5; + + if (x1+x2+x3+x4+x5 >0); else goto END; + +Loop: + + if( x1 < 0 ) { x1 = -x1; x5 = x5-x1; x2 = x2-x1; } + else if( x2 < 0 ) { x2 = -x2; x1 = x1-x2; x3 = x3-x2; } + else if( x3 < 0 ) { x3 = -x3; x2 = x2-x3; x4 = x4-x3; } + else if( x4 < 0 ) { x4 = -x4; x3 = x3-x4; x5 = x5-x4; } + else if( x5 < 0 ) { x5 = -x5; x4 = x4-x5; x1 = x1-x5; } + else goto END; + + //printf("%d %d %d %d %d \n", x1, x2, x3, x4, x5);getchar(); + + goto Loop; + +END: + return 1; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/quicksort.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/quicksort.c new file mode 100644 index 000000000..2405cda1e --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/quicksort.c @@ -0,0 +1,70 @@ +#include "seahorn/seahorn.h" + +extern int unknown (); + +/* C implementation QuickSort */ +//#include + +// A utility function to swap two elements +void swap(int* a, int* b) +{ + int t = *a; + *a = *b; + *b = t; +} + +/* This function takes last element as pivot, places + the pivot element at its correct position in sorted + array, and places all smaller (smaller than pivot) + to left of pivot and all greater elements to right + of pivot */ +int partition (int low, int high) +{ + int pivot = unknown(); //arr[high]; // pivot + int i = (low - 1); // Index of smaller element + + for (int j = low; j <= high-1; j++) + { + // If current element is smaller than or + // equal to pivot + if (unknown()) + //if (arr[j] <= pivot) + { + i++; // increment index of smaller element + sassert (low <= i && i <= high); + sassert (low <= j && j <= high); + //swap(&arr[i], &arr[j]); + } + } + //swap(&arr[i + 1], &arr[high]); + return (i + 1); +} + +/* The main function that implements QuickSort + arr[] --> Array to be sorted, + low --> Starting index, + high --> Ending index */ +void quickSort(int low, int high) +{ + if (low < high) + { + /* pi is partitioning index, arr[p] is now + at right place */ + int pi = partition(low, high); + + sassert (low <= pi && pi <= high); + + // Separately sort elements before + // partition and after partition + quickSort(low, pi - 1); + quickSort(pi + 1, high); + } +} + +// Driver program to test above functions +int main() +{ + int n = unknown (); + quickSort(0, n-1); + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/rajamani_1.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/rajamani_1.c new file mode 100644 index 000000000..abc1d031e --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/rajamani_1.c @@ -0,0 +1,24 @@ +#include "seahorn/seahorn.h" +extern int unknown(); + +int main(){ + int x=0; + int y=0; + int z=0; + int w=0; + + while ( unknown() ){ + if ( unknown() ) { + x++; y = y+100; + } else if ( unknown() ) { + if( x >= 4) + { x=x+1; y=y+1;} + } else if ( y >10*w) + if (z>=100*x ) + y = -y; + w=w+1; + z=z+10; + } + if ( x >=4 ) + sassert(y>2); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/sendmail-close-angle.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/sendmail-close-angle.c new file mode 100644 index 000000000..b3a17d76b --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/sendmail-close-angle.c @@ -0,0 +1,69 @@ +/* + * Variant: This one just blindly copies the input into buffer and writes '>''\0' at the end. + */ + +#include "seahorn/seahorn.h" + +extern int unknown(); + + +int main (void) +{ + // char buffer[BASE_SZ+1]; + // char input[BASE_SZ+70]; + // char *buf; + // char *buflim; + // char *in; + // char cur; + //int __BLAST_NONDET; + int in; + int inlen = unknown(); + int bufferlen = unknown(); + int buf; + int buflim; + + //tmpl("(le(in,inlen,buf,bufferlen,buflim),le(in,inlen,buf,bufferlen,buflim),le(in,inlen,buf,bufferlen,buflim))"); + //tmpl("(le(in,inlen,buf,bufferlen,buflim),le(in,inlen,buf,bufferlen,buflim))"); + + if(bufferlen >1);else goto END; + if(inlen > 0);else goto END; + if(bufferlen < inlen);else goto END; +// shouldn't be necessary unless checking for safety of *in +// input[BASE_SZ+70-1] = EOS; +// in = input; +// buf = buffer; + buf = 0; + in = 0; + buflim = bufferlen - 2; + // reserved enough space for both '>' and '\0'! + // assert(0<=in); + // assert(in 0); else goto RETURN; + + // while ((c1 = nondet_char ()) != EOS) + while(unknown()) + { + // if (c1 == '=') + if(unknown()) + { + // malformed: early EOS + // if ((c1 = nondet_char ()) == EOS) + if(unknown()) + // in Zitser, these breaks actually return to the caller where the + // pointer into outfile is reset before this is called again + goto AFTERLOOP; + + // =\n: continuation; signal to caller it's ok to pass in more infile + // OK: reset out before taking more input + //if (c1 == '\n') + if(unknown()) + { + out = 0; + nchar = 0; + goto LOOPEND; + } + else + { + // convert, e.g., "=5c" to int + + // malformed: early EOF + //if ((c2 = nondet_char ()) == EOS) + if(unknown()) goto AFTERLOOP; + + nchar++; + if (nchar >= outfilelen) + goto AFTERLOOP; + + /* OK */ + sassert(0<=out);//1 + sassert(out= outfilelen) + goto AFTERLOOP; + + /* OK */ + sassert(0<=out);//3 + sassert(out0);else goto END; + fb = 0; + while (unknown()) + { + //c2 = nondet_int (); + if (unknown()) + break; + + //c3 = nondet_int (); + if (unknown()) + break; + + /* OK */ + sassert(0<=fb); + sassert(fb= fbuflen-1) + fb = 0; + + /* OK */ + sassert(0<=fb); + sassert(fb= fbuflen-1) + fb = 0; + + /* OK */ + sassert(0<=fb); + sassert(fb= fbuflen-1) + fb = 0; + } + + /* force out partial last line */ + if (fb > 0) + { + /* OK */ + sassert(0<=fb); + sassert(fb 0 && n1 > 0 && n2 > 0) { + while( i < n0 ) { + i++; + k++; + } + i = 0; + while( i < n1 ) { + i++; + k++; + } + + i = 0; + while( i < n2 ) { + i++; + k++; + } + + i = 0; + while( i < n2 ) { + i++; + k--; + } + + i = 0; + while( i < n1 ) { + i++; + k--; + } + i = 0; + while( i < n0 ) { + sassert(k > 0); + i++; + k--; + } + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq-proc.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq-proc.c new file mode 100644 index 000000000..427e91a3c --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq-proc.c @@ -0,0 +1,37 @@ +#include "seahorn/seahorn.h" + +extern int unknown (); + +int main(int argc, char *argv[]) { + int n0, n1; + n0 = unknown(); + n1 = unknown(); + + int i0 = 0; + int k = 0; + while( i0 < n0 ) { + i0++; + k++; + } + int i1 = 0; + while( i1 < n1 ) { + i0--; + i1++; + k++; + } + int j1 = 0; + while( j1 < n1 ) { + if(k <= 0) sassert(0); + j1++;//i0++;i1++; + k--; + } + int j0 = 0; + while( j0 < n0 ) { + if(k <= 0) sassert(0); + j0++;//j1++;i0++;i1++; + k--; + } + + // assert( n0 + n1 <= i0 ); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq-sim.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq-sim.c new file mode 100644 index 000000000..65086ca52 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq-sim.c @@ -0,0 +1,32 @@ + +#include "seahorn/seahorn.h" + +int main() { + int n, m; + int i = 0; + int k = 0; + n = unknown(); + m = unknown(); + + while( i < n ) { + i++; + k++; + } + i = 0; + while( i < m ) { + i++; + k++; + } + i = 0; + while( i < m ) { + i++; + k--; + } + i = 0; + while( i < n ) { + sassert(k > 0); + i++; + k--; + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq-z3.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq-z3.c new file mode 100644 index 000000000..9792d9121 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq-z3.c @@ -0,0 +1,34 @@ + +#include "seahorn/seahorn.h" + +extern int unknown(); + +int main() { + int n0, n1; + int i = 0; + int k = 0; + n0 = unknown(); + n1 = unknown(); + + while( i < 20*n0 ) { + i++; + k++; + } + i = 0; + while( i < 6*n1+128 ) { + i++; + k++; + } + i = 0; + while( i < 6*n1+128 ) { + i++; + k--; + } + i = 0; + while( i < 20*n0 ) { + sassert(k > 0); + i++; + k--; + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq.c new file mode 100644 index 000000000..036828328 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq.c @@ -0,0 +1,27 @@ +#include "seahorn/seahorn.h" + +extern int unknown(); + +void main() { + int n0, n1; + int i0 = 0; + int k = 0; + n0 = unknown(); + n1 = unknown(); + + while( i0 < n0 ) { + i0++; + k++; + } + int i1 = 0; + while( i1 < n1 ) { + i1++; + k++; + } + int j1 = 0; + while( j1 < n0 + n1 ) { + if(k <= 0) sassert(0); + j1++; + k--; + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq2.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq2.c new file mode 100644 index 000000000..73cec0047 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq2.c @@ -0,0 +1,34 @@ +#include "seahorn/seahorn.h" + +extern int unknown(); + +int main() { + int i0 = 0; + int k = 0; + int n0 = unknown(); + int n1 = unknown(); + + while( i0 < n0 ) { + i0++; + k++; + } + int i1 = 0; + while( i1 < n1 ) { + i1++; + k++; + } + int j1 = 0; + while( j1 < n1 ) { + if(k <= 0) sassert(0); + j1++; + k--; + } + int j0 = 0; + while( j0 < n0 ) { + if(k <= 0) sassert(0); + j0++; + k--; + } + //sassert (k == 0); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq3.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq3.c new file mode 100644 index 000000000..40a5ec209 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq3.c @@ -0,0 +1,35 @@ + +#include "seahorn/seahorn.h" + +extern int unknown(); + +int main() { + int n0, n1; + int i0 = 0; + int k = 0; + n0 = unknown(); + n1 = unknown(); + + while( i0 < n0 ) { + i0++; + k++; + } + int i1 = 0; + while( i1 < n1 ) { + i1++; + k++; + } + int j1 = 0; + while( j1 < n1 ) { + j1++; + k--; + } + int j0 = 0; + while( j0 < n0 ) { + sassert(k > 0); + j0++; + k--; + } + //sassert (k == 0); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq4.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq4.c new file mode 100644 index 000000000..20295f9cd --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq4.c @@ -0,0 +1,37 @@ +#include "seahorn/seahorn.h" + +extern int unknown(); + +int main(int argc, char *argv[]) { + int n0, n1; + int i0 = 0; + int k = 0; + n0 = unknown(); + n1 = unknown(); + + while( i0 < n0 ) { + //tmpl("(le(n0,n1,i0,i1,j0,j1,k),le(n0,n1,i0,i1,j0,j1,k))"); + i0++; + k++; + } + int i1 = 0; + while( i1 < n1 ) { + //tmpl("(le(n0,n1,i0,i1,j0,j1,k),le(n0,n1,i0,i1,j0,j1,k))"); + i1++; + k++; + } + int j1 = 0; + while( j1 < n1 ) { + //tmpl("(le(n0,n1,i0,i1,j0,j1,k),le(n0,n1,i0,i1,j0,j1,k))"); + sassert(k > 0); + j1++; + k--; + } + int j0 = 0; + while( j0 < n0 ) { + //tmpl("(le(n0,n1,i0,i1,j0,j1,k),le(n0,n1,i0,i1,j0,j1,k))"); + j0++; + k--; + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/simple.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/simple.c new file mode 100644 index 000000000..43a690bb9 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/simple.c @@ -0,0 +1,12 @@ +#include "seahorn/seahorn.h" + +void main() { + int x=0; + int n = unknown(); + + __VERIFIER_assume(n > 0 ); + while( x < n ){ + x++; + } + sassert( x<=n ); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/simple_if.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/simple_if.c new file mode 100644 index 000000000..7941e67da --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/simple_if.c @@ -0,0 +1,20 @@ +#include "seahorn/seahorn.h" + +void main() { + int n,m; + n = unknown (); + m = unknown (); + int i = 1; + //tmpl("(le(i,j,k,n),le(i,j,k,n))"); + // tmpl("(le(i,j,k,n),le(i,j,k,n),le(i,j,k,n))"); + + while( i < n ) { + if( m > 0 ) { + i = 2*i; + } else { + i = 3*i; + } + + } + sassert (i > 0 ); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/simple_nest.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/simple_nest.c new file mode 100644 index 000000000..d150a4e46 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/simple_nest.c @@ -0,0 +1,17 @@ +#include "seahorn/seahorn.h" + +void main() { + int n,m; + n = unknown(); + int i = 1; + // tmpl("(le(i,j,k,n),le(i,j,k,n))"); + // tmpl("(le(i,j,k,n),le(i,j,k,n),le(i,j,k,n))"); + m = 10; + while( i < n ) { + while( m > 0 ) { + m--; + i = 2*i; + } + } + sassert (i > 0 ); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/sort_instrumented.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/sort_instrumented.c new file mode 100644 index 000000000..79f3ed4dc --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/sort_instrumented.c @@ -0,0 +1,33 @@ +#include "seahorn/seahorn.h" + +/* +bound_var(data(V1, V6, V4, V5, V2, V3),V2). +bounding_vars(data(V1, V6, V4, V5, V2, V3),[V1]). +*/ +void main() { + int k, n; + + int heap_size, k_buffer, k_c; + n = unknown(); + __VERIFIER_assume( n > 0); + heap_size = 0; + while ( unknown() ) { + + k_buffer = 0; + for (k=0;k 0 ) { + k_c--; + heap_size--; + } + sassert( heap_size == 0); + } +} + +//void main() { +// sort(30); +//} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/spin.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/spin.c new file mode 100644 index 000000000..45096c520 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/spin.c @@ -0,0 +1,11 @@ +int m,y; + +void thr() { + int x; + acquire(m); // assume(m=0 /\ m'=1); + x = 0; + y = 0; + x = 1; + assert(x>=1); + release(m); // assume(m'=0); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/spin1.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/spin1.c new file mode 100644 index 000000000..c673f2e7e --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/spin1.c @@ -0,0 +1,12 @@ +int m,k; + +void thr() { + int x,j; + acquire(m); // assume(m=0 /\ m'=1); + x = 0; + j = 0; + k = 1; + x = 1; + assert(x>=j); + release(m); // assume(m'=0); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/split.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/split.c new file mode 100644 index 000000000..49ef29ec2 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/split.c @@ -0,0 +1,22 @@ +#include "seahorn/seahorn.h" + +extern int unknown(); + +void main() { + int k = 100; + int b = 0; + int i; + int j; + int n; + i = j = 0; + for( n = 0 ; n < 2*k ; n++ ) { + //tmpl("(le(k,b,i,j,n),le(k,b,i,j,n))"); + if(b) { + i++; + } else { + j++; + } + b = !b; + } + sassert(i == j); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/string_concat-noarr.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/string_concat-noarr.c new file mode 100644 index 000000000..5d07a3684 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/string_concat-noarr.c @@ -0,0 +1,26 @@ +#include "seahorn/seahorn.h" + +extern int unknown(); + +int main(void) { + int i, j; + //tmpl("(le(i,j),le(i,j))"); + L0: + i = 0; + L1: + while( unknown() ){ + //tmpl("(le(i,j),le(i,j))"); + i++; + } + if(i >= 100) STUCK: goto STUCK; // assume( i < 100 ); + j = 0; + L2: + while( unknown() ){ + //tmpl("(le(i,j),le(i,j))"); + i++; + j++; + } + if(j >= 100) goto STUCK; // assume( j < 100 ); + sassert( i < 200 ); /* prove we don't overflow z */ + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/svd-some-loop.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/svd-some-loop.c new file mode 100644 index 000000000..7cb6a7e69 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/svd-some-loop.c @@ -0,0 +1,60 @@ +#include "seahorn/seahorn.h" + +extern int unknown(); + +void main(){ +int n,m,l,i,j,k; + +n = unknown(); +m = unknown(); +l = unknown(); +i = unknown(); +j = unknown(); +k = unknown(); + +//ssume(n >= 1); +for (i=n;i>=1;i--) { // Accumulation of right-hand transformations. + l = i+1; + if (i < n) { + if ( unknown() ) { + for (j=l;j<=n;j++) { // Double division to avoid possible underflow. + + sassert(1<=j);sassert(j<=n); + sassert(1<=i);sassert(i<=n); + // assert(1<=i);assert(i<=m); // TODO feasible counterexample found, hm + //assert(1<=l);assert(l<=n); + // v[j][i]=(a[i][j]/a[i][l])/g; + } + for (j=l;j<=n;j++) { + // s = 0.0; + for (k=l;k<=n;k++) { + + //assert(1<=i);assert(i<=m); // TODO feasible counterexample found, hm + sassert(1<=k);sassert(k<=n); + sassert(1<=j);sassert(j<=n); + // s += a[i][k]*v[k][j]; + } + for (k=l;k<=n;k++) { + sassert(1<=k);sassert(k<=n); + sassert(1<=j);sassert(j<=n); + sassert(1<=i);sassert(i<=n); + // v[k][j] += s*v[k][i]; + } + } + } + for (j=l;j<=n;j++) { + + sassert(1<=j);sassert(j<=n); + sassert(1<=i);sassert(i<=n); + //v[i][j]=v[j][i]=0.0; + } + } + + sassert(1<=i);sassert(i<=n); + // v[i][i]=1.0; + sassert(1<=i);sassert(i<=n); + // g=rv1[i]; + l=i; + } + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/svd1.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/svd1.c new file mode 100644 index 000000000..a974b7093 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/svd1.c @@ -0,0 +1,44 @@ +#include "seahorn/seahorn.h" + +void main(int n) +{ + int i,j,k,l; + l = unknown(); + + if(!l>0) + return; + + for (i=n;i>=1;i--) { // Accumulation of right-hand transformations. + if (i < n) { + if ( unknown() ) { + for (j=l;j<=n;j++) { // Double division to avoid possible underflow. + sassert(1<=j);sassert(j<=n); + sassert(1<=i);sassert(i<=n); + //assert(1<=i);assert(i<=m); // TODO feasible counterexample found + sassert(1<=l);sassert(l<=n); + } + for (j=l;j<=n;j++) { + for (k=l;k<=n;k++) { + //assert(1<=i);assert(i<=m); // TODO feasible counterexample found + sassert(1<=k);sassert(k<=n); + sassert(1<=j);sassert(j<=n); + } + for (k=l;k<=n;k++) { + sassert(1<=k);sassert(k<=n); + sassert(1<=j);sassert(j<=n); + sassert(1<=i);sassert(i<=n); + } + } + } + for (j=l;j<=n;j++) { + sassert(1<=j);sassert(j<=n); + sassert(1<=i);sassert(i<=n); + } + } + + sassert(1<=i); + sassert(i<=n); + sassert(1<=i);sassert(i<=n); + l=i; + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/svd2.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/svd2.c new file mode 100644 index 000000000..d39ed21a8 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/svd2.c @@ -0,0 +1,50 @@ +#include "seahorn/seahorn.h" +//#include "nrutil.h" + +void main(int n) +{ + int i,j,k,l; + l = unknown(); + + //tmpl("(le(n,l,i,j,k),le(n,l,i,j,k))"); + + if (!l>0) + return; + + for (i=n;i>=1;i--) { // Accumulation of right-hand transformations. + if (i < n) { + if ( unknown() ) { + for (j=l;j<=n;j++) { // Double division to avoid possible underflow. + //assert(1<=j);//assert(j<=n); + // assert(1<=i);assert(i<=n); + // assert(1<=i);assert(i<=m); // TODO feasible counterexample found + //assert(1<=l);assert(l<=n); + } + for (j=l;j<=n;j++) { + for (k=l;k<=n;k++) { + //assert(1<=i);assert(i<=m); // TODO feasible counterexample found + //assert(1<=k);assert(k<=n); + //assert(1<=j);assert(j<=n); + } + for (k=l;k<=n;k++) { + //assert(1<=k);assert(k<=n); + //assert(1<=j);assert(j<=n); + sassert(1<=i);sassert(i<=n); + } + } + } + for (j=l;j<=n;j++) { + //assert(1<=j); + //assert(j<=n); + //assert(1<=i); + //assert(i<=n); + } + } + + //assert(1<=i); + //assert(i<=n); + //assert(1<=i); + //assert(i<=n); + l=i; + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/svd3.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/svd3.c new file mode 100644 index 000000000..a8fc5c1a1 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/svd3.c @@ -0,0 +1,55 @@ +#include "seahorn/seahorn.h" + +void main(int n) +{ + int i,j,k,l; + l = unknown(); + + // tmpl("(le(n,l,i,j,k),le(n,l,i,j,k))") + //tmpl("(le(n,l,i,j,k))"); + + if(!l>1) + return; + + for (i=n;i>=1;i--) { // Accumulation of right-hand transformations. + if (i < n) { + if ( unknown() ) { + for (j=l;j<=n;j++) { // Double division to avoid possible underflow. + //tmpl("(le(n,l,i,j,k),le(n,l,i,j,k))"); + sassert(1<=j); + //assert(j<=n); + // assert(1<=i);assert(i<=n); + // assert(1<=i);assert(i<=m); // TODO feasible counterexample found, hm + //assert(1<=l);assert(l<=n); + } + for (j=l;j<=n;j++) { + + for (k=l;k<=n;k++) { + //assert(1<=i);assert(i<=m); // TODO feasible counterexample found, hm + //assert(1<=k);assert(k<=n); + //assert(1<=j);assert(j<=n); + } + + /* for (k=l;k<=n;k++) { + //assert(1<=k);assert(k<=n); + //assert(1<=j); + //assert(j<=n); + //assert(1<=i);assert(i<=n); + }*/ + } + } + for (j=l;j<=n;j++) { + //assert(1<=j); + //assert(j<=n); + //assert(1<=i); + //assert(i<=n); + } + } + + //assert(1<=i); + //assert(i<=n); + //assert(1<=i); + //assert(i<=n); + l=i; + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/svd4.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/svd4.c new file mode 100644 index 000000000..fffaa9acb --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/svd4.c @@ -0,0 +1,57 @@ +#include "seahorn/seahorn.h" + +void main(int n) +{ + int i,j,k,l,m; + l = unknown(); + m = unknown(); + + //tmpl("(le(n,m,l,i,j,k))"); + //tmpl("(le(n,m,l,i,j,k),le(n,m,l,i,j,k))"); + + if(!n>m) + return; + + if (m<=n) { i = m; } else { i = n; } + + for ( ;i>=1;i--) { // Accumulation of left-hand transformations. + l=i+1; + + sassert(1<=i); + sassert(i<=n); + + for (j=l;j<=n;j++) { + sassert(1<=i); + sassert(i<=m); + sassert(1<=j);sassert(j<=n); + } + + if ( unknown() ) { + for (j=l;j<=n;j++) { + for (k=l;k<=m;k++) { + sassert(1<=k);sassert(k<=m); + sassert(1<=i);sassert(i<=n); + sassert(1<=j);sassert(j<=n); + } + + sassert(1<=i);sassert(i<=m); + sassert(1<=i);sassert(i<=n); + for (k=i;k<=m;k++) { + sassert(1<=k);sassert(k<=m); + sassert(1<=j);sassert(j<=n); + sassert(1<=i);sassert(i<=n); + } + } + for (j=i;j<=m;j++) { + sassert(1<=j);sassert(j<=m); + sassert(1<=i);sassert(i<=n); + } + } else for (j=i;j<=m;j++) { + sassert(1<=j);sassert(j<=m); + sassert(1<=i);sassert(i<=n); + } + + sassert(1<=i);sassert(i<=m); + sassert(1<=i);sassert(i<=n); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/test.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/test.c new file mode 100644 index 000000000..dfd55d45a --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/test.c @@ -0,0 +1,19 @@ +#include "seahorn/seahorn.h" + +void main() { + int n,h; + int i,j,k,m; + + __VERIFIER_assume(n >=0 ); + __VERIFIER_assume(n <=200); +} +/* +bound_vars(vars(n)). + +bound_exp(pc(main-1-11), i+k). +bound_exp(pc(main-10-18),j+m). + +bound_var(data(V1, V5, V2, V4, V3),V4). +bounding_vars(data(V1, V5, V2, V4, V3),[V1]). + +*/ diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/up-nd.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/up-nd.c new file mode 100644 index 000000000..13644b91c --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/up-nd.c @@ -0,0 +1,22 @@ +#include "seahorn/seahorn.h" + +void main() { + int n, v; + n = unknown(); + int i = 0; + int k = 0; + while( i < n ) { + i++; + v = unknown(); + if( v > 0 ) + k = k + v; + else + k++; + } + int j = 0; + while( j < n ) { + if(k <= 0) sassert(0); + j++; + k--; + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/up-nested.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/up-nested.c new file mode 100644 index 000000000..dc6e3c2fe --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/up-nested.c @@ -0,0 +1,20 @@ +#include "seahorn/seahorn.h" + +extern int unknown(); + +void main() { + int n,j,i,k; + + i = 0; + k = 0; + j = unknown(); + n = unknown(); + + if ( j<=n ) { + while ( j <= n ) { + //assume( i >= 0); + j++; + } + sassert( i>= 0); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/up.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/up.c new file mode 100644 index 000000000..621b7f06a --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/up.c @@ -0,0 +1,19 @@ +#include "seahorn/seahorn.h" + +extern int unknown(); + +void main() { + int n = unknown(); + int i = 0; + int k = 0; + while( i < n ) { + i++; + k++; + } + int j = 0; + while( j < n ) { + sassert (k > 0); + j++; + k--; + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/up2.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/up2.c new file mode 100644 index 000000000..c13fb1047 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/up2.c @@ -0,0 +1,19 @@ +#include "seahorn/seahorn.h" + +extern int unknown(); + +void main() { + int n = unknown(); + int i = 0; + int k = 0; + while( i < n ) { + i++; + k++; + } + int j = 0; + while( j < n ) { + if(k <= 0) sassert(0); + j = j + 2; + k--; + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/up3.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/up3.c new file mode 100644 index 000000000..7d6da2d19 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/up3.c @@ -0,0 +1,19 @@ +#include "seahorn/seahorn.h" + +extern int unknown(); + +void main() { + int n = unknown(); + int i = 0; + int k = 0; + while( i < n ) { + i = i + 2; + k++; + } + int j = 0; + while( j < n ) { + if(k <= 0) sassert(0); + j = j + 2; + k--; + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/up4.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/up4.c new file mode 100644 index 000000000..609b6930d --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/up4.c @@ -0,0 +1,19 @@ +#include "seahorn/seahorn.h" + +extern int unknown(); + +void main() { + int n = unknown(); + int i = 0; + int k = 0; + while( i < n ) { + i++; + k = k + 2; + } + int j = 0; + while( j < n ) { + if(k <= 0) sassert(0); + j++; + k--; + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/invgen/up5.c b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/up5.c new file mode 100644 index 000000000..29f559c17 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/invgen/up5.c @@ -0,0 +1,19 @@ +#include "seahorn/seahorn.h" + +extern int unknown(); + +void main() { + int n = unknown(); + int i = 0; + int k = 0; + while( i < n ) { + i++; + k = k + 2; + } + int j = 0; + while( j < n ) { + if(k <= 0) sassert(0); + j = j + 2; + k--; + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/llreve/03_while_unsafe.c b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/03_while_unsafe.c new file mode 100644 index 000000000..fa85000bd --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/03_while_unsafe.c @@ -0,0 +1,49 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void assert (int cond) { if (!cond) __VERIFIER_error (); } +int f1(int n, int c) { + int i; + int j; + int x; + + i = 0; + j = 0; + x = 0; + + while(i < n) { + j = 5*i + c; + x = x + j; + i++; + } + return x; +} + +/* + * Change one character to remedy the regression! + */ + +int f2(int n, int c) { + int i; + int j; + int x; + + i = 0; + j = 0; + x = 0; + + while(i < n) { + x = x + j; + j = j + 5; + i++; + } + return x; +} + +void main() +{ + int n,c; + n = unknown(); + c = unknown(); + int res1=f1(n,c); + int res2=f2(n,c); + assert(res1==res2); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/llreve/barthe2_merged_safe.c b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/barthe2_merged_safe.c new file mode 100644 index 000000000..a026f8c47 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/barthe2_merged_safe.c @@ -0,0 +1,25 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void assert (int cond) { if (!cond) __VERIFIER_error (); } +void main() { + int n = unknown(); + int x1 = 0; + int x2 = 0; + + int i1 = 0; // <--- i is assigned 0 + int i2 = 1; // <--- i is assigned 1 + while (1) + { + if (/*__mark(2) &&*/ i1 <= n) { + x1 = x1 + i1; + i1++; + } + + if (/*__mark(2) &&*/ i2 <= n) { + x2 = x2 + i2; + i2++; + } + + if (i1>n && i2>n) break; + assert(x2==x1+i1); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/llreve/barthe_merged_safe.c b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/barthe_merged_safe.c new file mode 100644 index 000000000..c0d1560db --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/barthe_merged_safe.c @@ -0,0 +1,26 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void assert (int cond) { if (!cond) __VERIFIER_error (); } +extern int __mark(int); +void main() { + int n, c; + n = unknown(); + c = unknown(); + int i = 0; + int j1 = 0; + int x1 = 0; + int j2 = c; + int x2 = 0; + + while (/*__mark(42) &&*/ (i < n)) { + /* __mark(42); */ + j1 = 5 * i + c; + assert(j1 == j2); + + x1 = x1 + j1; + x2 = x2 + j2; + assert(x1 == x2); + + j2 = j2 + 5; + i++; + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/llreve/barthe_merged_unsafe.c b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/barthe_merged_unsafe.c new file mode 100644 index 000000000..17350ae68 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/barthe_merged_unsafe.c @@ -0,0 +1,30 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void assert (int cond) { if (!cond) __VERIFIER_error (); } +void main() { + int n, c; + int i; + int j1, j2; + int x1, x2; + + n = unknown(); + c = unknown(); + i = 0; + j1 = 0; // <--- j is assigned 0 + x1 = 0; + j2 = c; // <--- j is assigned c + x2 = 0; + + while(/*__mark(42) &&*/ i < n) { + j1 = 5*i + c; + + x1 = x1 + j1; + x2 = x2 + j2; + assert(x1==x2); + + j2 = j2 + 5; + if (i == 10) { + j2 = 10; + } + i++; + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/llreve/break_merged_safe.c b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/break_merged_safe.c new file mode 100644 index 000000000..aa0dea092 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/break_merged_safe.c @@ -0,0 +1,26 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void assert (int cond) { if (!cond) __VERIFIER_error (); } +int __mark(int); +void main() { + int x = unknown(); + int i1 = 0; // <--- i iterates from 0 to 10 + int i2 = 10; // <--- i iterates from 10 to 0 + + while (/*__mark(42) &*/ (i1 <= 10)) { + //__mark(42); + if (i1 == x) { + break; + } + i1++; + } + + while (/*__mark(42) &*/ (i2 >= 0)) { + //__mark(42); + if (i2 == (10 - x)) { + break; + } + i2--; + } + + assert(i1==10-i2); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/llreve/break_single_merged_safe.c b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/break_single_merged_safe.c new file mode 100644 index 000000000..426d6601b --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/break_single_merged_safe.c @@ -0,0 +1,21 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void assert (int cond) { if (!cond) __VERIFIER_error (); } +extern int __mark(int); +void main() { + int x = unknown(); + int i1 = 0; + while (/*__mark(42) &&*/ (i1 <= 10)) { + /* __mark(42); */ + if (i1 == x) { + break; // <--- conditional break + } + i1++; + } + + int i2 = 0; + while (/*__mark(42) &&*/ ((i2 <= 10) && (i2 != x))) { + /* __mark(42); */ + i2++; + } + assert(i1 == i2); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/llreve/bug15_safe.c b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/bug15_safe.c new file mode 100644 index 000000000..4a91edb89 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/bug15_safe.c @@ -0,0 +1,33 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void assert (int cond) { if (!cond) __VERIFIER_error (); } +int f1(int z) { + int x = 1; + int y = 0; + + while (x <= 9) { // <--- loop condition: x<=9 + y = x + 2; + x = 2 * y; + } + + return 2 * x; +} + +int f2(int z) { + int y = 0; + int x = 1; + + while (x < 10) { // <--- loop condition: x<10, (only syntactic differences) + y = 2 + x; + x = y + y; + } + + return x * 2; +} + +void main() +{ + int z = unknown(); + int res1=f1(z); + int res2=f2(z); + assert(res1==res2); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/llreve/cube_square_unsafe.c b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/cube_square_unsafe.c new file mode 100644 index 000000000..81d5952e5 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/cube_square_unsafe.c @@ -0,0 +1,44 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void assert (int cond) { if (!cond) __VERIFIER_error (); } +int g1(int n) +{ + int r=0; + int i=n; + + while (i > 0) { + r = r + n; + i--; + } + + i=n; + n=r; + r=0; + + while (i > 0) { // <--- second loop + r = r + n; + i--; + } + + return r; +} + +int g2(int n) +{ + int r=0; + int i=n; + + while (i > 0) { + r = r + n; + i--; + } + + return r; +} + +void main() +{ + int n = unknown(); + int res1=g1(n); + int res2=g2(n); + assert(res1==res2); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/llreve/fib_merged_safe.c b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/fib_merged_safe.c new file mode 100644 index 000000000..245e80f32 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/fib_merged_safe.c @@ -0,0 +1,31 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void assert (int cond) { if (!cond) __VERIFIER_error (); } +/* + * Two computations for a Fibonacci number. + * The left starts with (0, 1, 1, ...) while the right starts with + * (1, 1, 2, ...). They are not equivalent. + * + * However, if they are not started with the same input (n1 == n2) but + * with n1 == n2 + 1, results are equal. + * This can be expressed using a "rel_in" specification. + */ +void main() { + int n = unknown(); + int f1 = 0; // <---- starting at 0 + int f2 = 1; // <---- starting at 1 + int g1 = 1, g2 = 1; + int h1 = 0, h2 = 0; + + while((n > 0)) { + h1 = f1 + g1; + f1 = g1; + g1 = h1; + n --; + + h2 = f2 + g2; + f2 = g2; + g2 = h2; + + assert(h2==h1+f1); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/llreve/loop2_merged_safe.c b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/loop2_merged_safe.c new file mode 100644 index 000000000..108575ef7 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/loop2_merged_safe.c @@ -0,0 +1,23 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void assert (int cond) { if (!cond) __VERIFIER_error (); } +void main() { + int n = unknown(); + int i1 = 1; // <--- i is assigned 1 + int /* predicates{} */ j1 = 0; + + int i2 = 0; // <--- i is assigned 0 + int j2 = 0; + + while (i1 <= n) { + j1 = j1 + 2; + assert(j1==2*i1); + i1++; + } + while (i2 < n) { + j2 = j2 + 2; + i2++; + assert(j2==2*i2); + } + + assert(j1==j2); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/llreve/loop3_merged_safe.c b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/loop3_merged_safe.c new file mode 100644 index 000000000..49d7d23a2 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/loop3_merged_safe.c @@ -0,0 +1,27 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void assert (int cond) { if (!cond) __VERIFIER_error (); } +void main() { + int n = unknown(); + int i1 = 1; + int j1 = 0; // <--- j is assigned 0 + int i2 = 1; + int j2 = 2; // <--- j is assigned 2 + + if (n < 1) { + n = 1; + } + + while (i1 <= n) { + j1 = j1 + 2; + assert(j1==2*i1); + i1++; + } + + while (i2 < n) { + j2 = j2 + 2; + i2++; + assert(j2==2*i2); + } + + assert(j1==j2); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/llreve/loop4_merged_safe.c b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/loop4_merged_safe.c new file mode 100644 index 000000000..37d7a4661 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/loop4_merged_safe.c @@ -0,0 +1,24 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void assert (int cond) { if (!cond) __VERIFIER_error (); } +/* This example may not finish within the timeout ... */ +/* Please switch off full invariants (options to the right) + * to make this example working. + */ +void main() { + int n = unknown(); + int i1 = 0, i2 = 0; + int j1 = 0, j2 = 0; + + while (1) { + if (i1 < n + n) { + j1++; + i1++; + } + + if (i2 < n) { + j2 = j2 + 2; + i2++; + } + } + assert(j1==j2); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/llreve/loop5_merged_unsafe.c b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/loop5_merged_unsafe.c new file mode 100644 index 000000000..c76bbcd27 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/loop5_merged_unsafe.c @@ -0,0 +1,20 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void assert (int cond) { if (!cond) __VERIFIER_error (); } +void main() { + int n = unknown(); + int i1 = 0; // <--- i is assigned 0 + int j1 = 0; + while (i1 < n + n) { + j1++; + i1++; + } + + int i2 = n + 1; // <--- i is assigned n+1 + int j2 = 0; + while (i2 > 0) { + j2 = j2 + 2; + i2 = i2 - 1; + } + + assert(j1==j2); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/llreve/loop_merged_safe.c b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/loop_merged_safe.c new file mode 100644 index 000000000..eb4073679 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/loop_merged_safe.c @@ -0,0 +1,23 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void assert (int cond) { if (!cond) __VERIFIER_error (); } +void main() { + int n = unknown(); + int i1 = 0; // <--- i is assigned 0 + int /*@ predicates{i1>=j1, i1<=j1} @*/ j1 = 0; + int i2 = n; // <--- i is assigned n + int /*@ terms_tpl{i2+j2} @*/ j2 = 0; + + while ((i1 <= n)) { + i1++; + j1++; + assert(i1==j1); + } + + while ((i2 >= 0)) { + i2 = i2 - 1; + j2++; + assert(i2+j2==n); + } + + assert(j1==j2); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/llreve/loop_unswitching_merged_safe.c b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/loop_unswitching_merged_safe.c new file mode 100644 index 000000000..40d1751d6 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/loop_unswitching_merged_safe.c @@ -0,0 +1,35 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void assert (int cond) { if (!cond) __VERIFIER_error (); } +void main() { + int t,c0; + t = unknown(); + c0 = unknown(); + int c1=c0,c2=c0; + int x1 = 0; + int x2 = 0; + + if (0 < t) { + while((0 < c1)) { // <--- while inside if + x1++; + c1--; + } + //assert(c0 <=0 || x1==c0); + } else { + while((0 < c1)) { + x1--; + c1--; + } + //assert(c0 <= 0 || x1==-c0); + } + + while ((0 < c2)) { + if (0 < t) { // <--- if inside while + x2++; + } else { + x2--; + } + c2 = c2 - 1; + } + //assert(c0 <=0 || (c0>0 && t>0 && x2==c0) || (c0>0 && t<=0 && x2==-c0)); + assert(x1==x2); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/llreve/nested-while_merged_safe.c b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/nested-while_merged_safe.c new file mode 100644 index 000000000..448b95cdc --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/nested-while_merged_safe.c @@ -0,0 +1,37 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void assert (int cond) { if (!cond) __VERIFIER_error (); } +void main() { + int /*@ predicates{x1<=0,x2<=0,x<=0} @*/ x0 = unknown(); + int x1=x0,x2=x0; + int g0 = unknown(); + int g1=g0, /*@ predicates{g1==g0,g2==g0} @*/ g2=g0; + int /*@ predicates{i1+g1==g0} @*/ i1 = 0, /*@ predicates{i2+g2==g0} @*/ i2 = 0; + + while (i1 < x1) { + i1 = i1 + 1; + g1 = g1 - 2; // <--- small syntactic differences + g1 = g1 + 1; + + assert(x1>=i1); + while (x1 < i1) { + x1 = x1 + 2; + x1 = x1 - 1; + g1 = g1 + 1; + } + } + + assert((x0<=0 && g1==g0) || (x0>0 && g1==g0-x0)); + + while (i2 < x2) { + i2 = i2 + 1; + g2 = g2 - 1; + while (x2 < i2) { + x2 = x2 + 1; + g2 = g2 + 1; + } + } + + assert((x0<=0 && g2==g0) || (x0>0 && g2==g0-x0)); + assert(x1==x2); +// assert(g1==g2); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/llreve/nested-while_merged_unsafe.c b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/nested-while_merged_unsafe.c new file mode 100644 index 000000000..75a84b174 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/nested-while_merged_unsafe.c @@ -0,0 +1,28 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void assert (int cond) { if (!cond) __VERIFIER_error (); } +void main() { + int x0=unknown(), x1=x0, x2=x0, g0=unknown(), g1=g0, g2=g0; + int i1 = 0, i2 = 0; + while ((i1 < x1)) { + i1 = i1 + 1; + g1 = g1 - 2; // <--- g is decremented by 1 in total + g1 = g1 + 1; + while((x1 < i1)) { + x1 = x1 + 2; + x1 = x1 - 1; + g1 = g1 + 1; + } + } +// assert(x1<0 || g1==g0-x0); + + while ((i2 < x2)) { + i2 = i2 + 1; + g2 = g2 - 2; // <--- g is decremented by 2 + while((x2 < i2)) { + x2 = x2 + 1; + g2 = g2 + 2; + } + } +// assert(x0<0 || g2==g0-2*x0); + assert(g1==g2); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/llreve/simple-loop_merged_safe.c b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/simple-loop_merged_safe.c new file mode 100644 index 000000000..01ed2b3b3 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/simple-loop_merged_safe.c @@ -0,0 +1,27 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void assert (int cond) { if (!cond) __VERIFIER_error (); } +int f1(int z) { + int i = 0; // <--- i is assigned 0 + + while (i <= 10) { + i++; + } + return i; +} + +int f2(int z) { + int i = 1; // <--- i is assigned 1 + + while (i <= 10) { + i++; + } + return i; +} + +void main() +{ + int z = unknown(); + int res1=f1(z); + int res2=f2(z); + assert(res1==res2); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/llreve/square_twice_merged_safe.c b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/square_twice_merged_safe.c new file mode 100644 index 000000000..f7b0c4c87 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/square_twice_merged_safe.c @@ -0,0 +1,29 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void assert (int cond) { if (!cond) __VERIFIER_error (); } +void main() { + int n = unknown(); + int r1=0; + int i1=n; + + while (i1 > 0) { + r1 = r1 + n; + i1--; + } + + r1=0; + int r2=0; + i1=n; + int i2=n; + + while (1) { + if (i1 > 0) { // <--- second loop + r1 = r1 + n; + i1--; + } + if (i2 > 0) { + r2 = r2 + n; + i2--; + } + assert(r1 == r2); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/llreve/upcount_merged_safe.c b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/upcount_merged_safe.c new file mode 100644 index 000000000..a0bd42401 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/upcount_merged_safe.c @@ -0,0 +1,28 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void assert (int cond) { if (!cond) __VERIFIER_error (); } +/* + * These two programs differ in the number of iterations of the + * loop. This versions does one more iteration with n = 0, while + * the other version adds one to the output value. + * + * Do they compute the same? + * No, not in general. + * But they do for non-negative integers. That's why there is + * the precondition in the second release. Drop it and you'll + * get a counterexample (n=-1, e.g.) + */ +void main() { + int n0=unknown(),n1=n0,n2=n0; + int m1 = 0, m2 = 0; + + while((n1 >= 0)) { // <--- loop condition n>=0 + m1++; + n1--; + } + + while((n2 > 0)) { // <--- loop condition n>0 + m2++; + n2--; + } + assert(n0<0 || m1==m2+1); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/llreve/while_after_while_if_merged_safe.c b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/while_after_while_if_merged_safe.c new file mode 100644 index 000000000..1d645f38e --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/llreve/while_after_while_if_merged_safe.c @@ -0,0 +1,38 @@ +extern void __VERIFIER_error() __attribute__((noreturn)); +void assert (int cond) { if (!cond) __VERIFIER_error (); } +void main() { + int x1 = 0, x2 = 0; + int c0 = unknown(); + int c1=c0, c2=c0; + int t = unknown(); + int r0 = unknown(); + int r1=r0, r2=r0; + + if (0 < t) { + while((0 < c1)) { // <---- while in if + x1++; + c1--; + } + } + + while((0 < c2)) { + if (0 < t) { // <---- if in while + x2++; + } + c2--; + } + + //assert(x1 == x2); + + while((r1 > 0)) { + x1+=2; + r1--; + } + + while((r2 > 0)) { + x2+=2; + r2--; + } + + assert(x1 == x2); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/.DS_Store b/data/benchmarks/LinearArbitrary-SeaHorn/loops/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..86e2020130222f5f6bb5f765de2ed3353f76f35e GIT binary patch literal 8196 zcmeHLUuYaf82`TfY4^5&GWplrG+uj>2Ai7Hw5Cm}wO-Q1wzj3gOL9pYJ@;AkiiYQt^5PUGzRulyvM9`Ni{=>c~1hFr^2%iZSO&-Sm@3& z^UcgRznR(J{&x1h0{|SDHFg1L0H9FjmaU`WDvA4fz9LlxJ=}?e2j~I|94NpPm{*Jr zJ3GQiJ=IAv}VfnAhV9351M5P)nA zb&EuGiUR~D9@s=+7o`X1)wMnX(+iEe^P|bYGK6IbX^${OL4n9?qKuf)4AB zIc9lQ#qinB~Ur?=#kqSiFUSU`gRppk5`k{;{ZLn!bO|u5R=@U8M zavg8X%zI?htj;6$j$~aYxT#duwP$A>FU{(+x}BZ1b>Hl_?WFaH>5cp5oX=|~JvZ+k z6a&XC!t%Z}W3!%lpGg3#U=9+@V;Fg7ee>omZQHwc_wHZbu(6J*4Qf-Wz)7>s(IV$_ zLie(!V_44ANn+XYt%oc#AF0O+kr79qF_+oKx(%D6nmTFFl*e6z`wjM?5)q!(sHUCb zo`ZRlN<&dZ_tvlxE#MnuAP-ll4)f~1BW z4LWb{QMK``J2OL@^XjoP=v=`Iyzf}{Ek zgLd1N*e;)STcTT5BJ}RGz)t#%9fnDIIdX6so`)CUMR*O)!n^PRd;(v>SMUv7gm2*z z{0zUqukaiE0e>Uu2vw}ZdThW(ya{i{Hr$5oxD$JDFZN;|_Tv#eipTIcj$s-zm_-9; z@KJmWAIC*}7GJ_w@eN$Uv-lpqk00R$xv8p>J`c%usl-pIR;Eu9V(`XRrLHE#*ihp= z|C10et>^NqZ)j|44)oZ+@=z~(jOBU~B9bZ*>M5y1Xmgb$mr0~8n_Jb`D2dFRyIkBQ zIk2@-LVWbrcr3;gp&H)Y)=teTlC~n|>evxeS+x)__mVbatX4>sH%XN$s}W-6&Axr) zT_ZHx64f@T2h@akhZu;tBJDAij;DVkw)Kf+J&JN!i=t0jR&v4!Ln z!!39VcHphpiCrYHKD-0(#Qivghe&4klF&v-X5%=4CrM}~PT@3Km`5KASj0Je0-waE z@M(O8WcM0); else goto END; + if(bufsize >0); else goto END; + if(ielen >0); else goto END; + + if (bufsize < leader_len) + goto END; + + p = 0; + + bufsize_0 = bufsize; + bufsize -= leader_len; + p += leader_len; + + /* This is the fix. */ + if (bufsize < 2*ielen) + goto END; + + for (i = 0; i < ielen && bufsize > 2; i++) { + __VERIFIER_assert(0<=p); + __VERIFIER_assert(p+10); else goto END; + if(bufsize >0); else goto END; + if(ielen >0); else goto END; + if (bufsize < leader_len) + goto END; + p = 0; + bufsize_0 = bufsize; + bufsize -= leader_len; + p += leader_len; + if (bufsize < 2*ielen) + goto END; + for (i = 0; i < ielen && bufsize > 2; i++) { + __VERIFIER_assert(0<=p); + __VERIFIER_assert(p+1 0 && MAXPATHLEN < 2147483647); else goto END; + + pathbuf_off = 0; + bound_off = pathbuf_off + (MAXPATHLEN + 1) - 1; + + + glob2_pathbuf_off = pathbuf_off; + glob2_pathlim_off = bound_off; + + for (glob2_p_off = glob2_pathbuf_off; + glob2_p_off <= glob2_pathlim_off; + glob2_p_off++) { + /* OK */ + __VERIFIER_assert (0 <= glob2_p_off ); + __VERIFIER_assert (glob2_p_off < MAXPATHLEN + 1); + } + + END: return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/NetBSD_loop_true-unreach-call_true-termination.i b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/NetBSD_loop_true-unreach-call_true-termination.i new file mode 100644 index 000000000..81c249423 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/NetBSD_loop_true-unreach-call_true-termination.i @@ -0,0 +1,31 @@ +extern void __VERIFIER_error(void); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int main () +{ + int MAXPATHLEN; + int pathbuf_off; + int bound_off; + int glob2_p_off; + int glob2_pathbuf_off; + int glob2_pathlim_off; + MAXPATHLEN = __VERIFIER_nondet_int(); + if(MAXPATHLEN > 0 && MAXPATHLEN < 2147483647); else goto END; + pathbuf_off = 0; + bound_off = pathbuf_off + (MAXPATHLEN + 1) - 1; + glob2_pathbuf_off = pathbuf_off; + glob2_pathlim_off = bound_off; + for (glob2_p_off = glob2_pathbuf_off; + glob2_p_off <= glob2_pathlim_off; + glob2_p_off++) { + __VERIFIER_assert (0 <= glob2_p_off ); + __VERIFIER_assert (glob2_p_off < MAXPATHLEN + 1); + } + END: return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/README b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/README new file mode 100644 index 000000000..7c089a2ce --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/README @@ -0,0 +1,2 @@ + + loop_invgen: Examples from Ashutosh Gupta and Andrey Rybalchenko's InvGen + test suite (http://pub.ist.ac.at/~agupta/invgen/) diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/SpamAssassin-loop_true-unreach-call_false-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/SpamAssassin-loop_true-unreach-call_false-termination.c new file mode 100644 index 000000000..c8832cd6e --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/SpamAssassin-loop_true-unreach-call_false-termination.c @@ -0,0 +1,51 @@ +#include "assert.h" + +int main() +{ + int len; + int i; + int j; + + int bufsize; + bufsize = __VERIFIER_nondet_int(); + if (bufsize < 0) return 0; // avoid overflows for too negative values + len = __VERIFIER_nondet_int(); + int limit = bufsize - 4; + + + for (i = 0; i < len; ) { + for (j = 0; i < len && j < limit; ){ + if (i + 1 < len){ + __VERIFIER_assert(i+1= -LARGE_INT)) return 0; + if (!(tokenlen <= LARGE_INT && tokenlen >= -LARGE_INT)) return 0; + if (!(scheme <= LARGE_INT && scheme >= -LARGE_INT)) return 0; + + if(urilen>0); else goto END; + if(tokenlen>0); else goto END; + if(scheme >= 0 );else goto END; + if (scheme == 0 || (urilen-1 < scheme)) { + goto END; + } + + cp = scheme; + + __VERIFIER_assert(cp-1 < urilen); + __VERIFIER_assert(0 <= cp-1); + + if (__VERIFIER_nondet_int()) { + __VERIFIER_assert(cp < urilen); + __VERIFIER_assert(0 <= cp); + while ( cp != urilen-1) { + if(__VERIFIER_nondet_int()) break; + __VERIFIER_assert(cp < urilen); + __VERIFIER_assert(0 <= cp); + ++cp; + } + __VERIFIER_assert(cp < urilen); + __VERIFIER_assert( 0 <= cp ); + if (cp == urilen-1) goto END; + __VERIFIER_assert(cp+1 < urilen); + __VERIFIER_assert( 0 <= cp+1 ); + if (cp+1 == urilen-1) goto END; + ++cp; + + scheme = cp; + + if (__VERIFIER_nondet_int()) { + c = 0; + __VERIFIER_assert(cp < urilen); + __VERIFIER_assert(0<=cp); + while ( cp != urilen-1 + && c < tokenlen - 1) { + __VERIFIER_assert(cp < urilen); + __VERIFIER_assert(0<=cp); + if (__VERIFIER_nondet_int()) { + ++c; + __VERIFIER_assert(c < tokenlen); + __VERIFIER_assert(0<=c); + __VERIFIER_assert(cp < urilen); + __VERIFIER_assert(0<=cp); + } + ++cp; + } + goto END; + } + } + +END: + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/apache-escape-absolute_true-unreach-call_true-termination.i b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/apache-escape-absolute_true-unreach-call_true-termination.i new file mode 100644 index 000000000..fbc55503e --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/apache-escape-absolute_true-unreach-call_true-termination.i @@ -0,0 +1,69 @@ +extern void __VERIFIER_error(void); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int main() +{ + int scheme; + int urilen,tokenlen; + int cp,c; + urilen = __VERIFIER_nondet_int(); + tokenlen = __VERIFIER_nondet_int(); + scheme = __VERIFIER_nondet_int(); + if (!(urilen <= 1000000 && urilen >= -1000000)) return 0; + if (!(tokenlen <= 1000000 && tokenlen >= -1000000)) return 0; + if (!(scheme <= 1000000 && scheme >= -1000000)) return 0; + if(urilen>0); else goto END; + if(tokenlen>0); else goto END; + if(scheme >= 0 );else goto END; + if (scheme == 0 || (urilen-1 < scheme)) { + goto END; + } + cp = scheme; + __VERIFIER_assert(cp-1 < urilen); + __VERIFIER_assert(0 <= cp-1); + if (__VERIFIER_nondet_int()) { + __VERIFIER_assert(cp < urilen); + __VERIFIER_assert(0 <= cp); + while ( cp != urilen-1) { + if(__VERIFIER_nondet_int()) break; + __VERIFIER_assert(cp < urilen); + __VERIFIER_assert(0 <= cp); + ++cp; + } + __VERIFIER_assert(cp < urilen); + __VERIFIER_assert( 0 <= cp ); + if (cp == urilen-1) goto END; + __VERIFIER_assert(cp+1 < urilen); + __VERIFIER_assert( 0 <= cp+1 ); + if (cp+1 == urilen-1) goto END; + ++cp; + scheme = cp; + if (__VERIFIER_nondet_int()) { + c = 0; + __VERIFIER_assert(cp < urilen); + __VERIFIER_assert(0<=cp); + while ( cp != urilen-1 + && c < tokenlen - 1) { + __VERIFIER_assert(cp < urilen); + __VERIFIER_assert(0<=cp); + if (__VERIFIER_nondet_int()) { + ++c; + __VERIFIER_assert(c < tokenlen); + __VERIFIER_assert(0<=c); + __VERIFIER_assert(cp < urilen); + __VERIFIER_assert(0<=cp); + } + ++cp; + } + goto END; + } + } +END: + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/apache-get-tag_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/apache-get-tag_true-unreach-call_true-termination.c new file mode 100644 index 000000000..416c3ed27 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/apache-get-tag_true-unreach-call_true-termination.c @@ -0,0 +1,69 @@ +#include "assert.h" +int main() +{ + int tagbuf_len; + int t; + + tagbuf_len = __VERIFIER_nondet_int(); + if(tagbuf_len >= 1); else goto END; + + t = 0; + + --tagbuf_len; + + while (1) { + if (t == tagbuf_len) { + __VERIFIER_assert(0 <= t); + __VERIFIER_assert(t <= tagbuf_len); + // tag[t] = EOS; + goto END; + } + if (__VERIFIER_nondet_int()) { + break; + } + __VERIFIER_assert(0 <= t); + __VERIFIER_assert(t <= tagbuf_len); + t++; + } + + __VERIFIER_assert(0 <= t); + __VERIFIER_assert(t <= tagbuf_len); + t++; + + while (1) { + + if (t == tagbuf_len) { /* Suppose t == tagbuf_len - 1 */ + __VERIFIER_assert(0 <= t); + __VERIFIER_assert(t <= tagbuf_len); + goto END; + } + + if (__VERIFIER_nondet_int()) { + if ( __VERIFIER_nondet_int()) { + __VERIFIER_assert(0 <= t); + __VERIFIER_assert(t <= tagbuf_len); + t++; + if (t == tagbuf_len) { + __VERIFIER_assert(0 <= t); + __VERIFIER_assert(t <= tagbuf_len); + goto END; + } + } + } + else if ( __VERIFIER_nondet_int()) { + break; + } + + /* OK */ + __VERIFIER_assert(0 <= t); + __VERIFIER_assert(t <= tagbuf_len); + t++; /* Now t == tagbuf_len + 1 + * So the bounds check (t == tagbuf_len) will fail */ + } + /* OK */ + __VERIFIER_assert(0 <= t); + __VERIFIER_assert(t <= tagbuf_len); + + END: + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/apache-get-tag_true-unreach-call_true-termination.i b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/apache-get-tag_true-unreach-call_true-termination.i new file mode 100644 index 000000000..4eaa74d53 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/apache-get-tag_true-unreach-call_true-termination.i @@ -0,0 +1,63 @@ +extern void __VERIFIER_error(void); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int main() +{ + int tagbuf_len; + int t; + tagbuf_len = __VERIFIER_nondet_int(); + if(tagbuf_len >= 1); else goto END; + t = 0; + --tagbuf_len; + while (1) { + if (t == tagbuf_len) { + __VERIFIER_assert(0 <= t); + __VERIFIER_assert(t <= tagbuf_len); + goto END; + } + if (__VERIFIER_nondet_int()) { + break; + } + __VERIFIER_assert(0 <= t); + __VERIFIER_assert(t <= tagbuf_len); + t++; + } + __VERIFIER_assert(0 <= t); + __VERIFIER_assert(t <= tagbuf_len); + t++; + while (1) { + if (t == tagbuf_len) { + __VERIFIER_assert(0 <= t); + __VERIFIER_assert(t <= tagbuf_len); + goto END; + } + if (__VERIFIER_nondet_int()) { + if ( __VERIFIER_nondet_int()) { + __VERIFIER_assert(0 <= t); + __VERIFIER_assert(t <= tagbuf_len); + t++; + if (t == tagbuf_len) { + __VERIFIER_assert(0 <= t); + __VERIFIER_assert(t <= tagbuf_len); + goto END; + } + } + } + else if ( __VERIFIER_nondet_int()) { + break; + } + __VERIFIER_assert(0 <= t); + __VERIFIER_assert(t <= tagbuf_len); + t++; + } + __VERIFIER_assert(0 <= t); + __VERIFIER_assert(t <= tagbuf_len); + END: + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/assert.h b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/assert.h new file mode 100644 index 000000000..896ba779f --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/assert.h @@ -0,0 +1,5 @@ +extern void __VERIFIER_error(void); +extern void __VERIFIER_assume(int); +#define __VERIFIER_assert(X) if(!(X)) __VERIFIER_error () +int __VERIFIER_nondet_int(); +#define LARGE_INT 1000000 diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/down_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/down_true-unreach-call_true-termination.c new file mode 100644 index 000000000..2f1a2481c --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/down_true-unreach-call_true-termination.c @@ -0,0 +1,19 @@ +#include "assert.h" + +int main() { + int n; + int k = 0; + int i = 0; + n = __VERIFIER_nondet_int(); + while( i < n ) { + i++; + k++; + } + int j = n; + while( j > 0 ) { + __VERIFIER_assert(k > 0); + j--; + k--; + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/down_true-unreach-call_true-termination.i b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/down_true-unreach-call_true-termination.i new file mode 100644 index 000000000..a3124aedd --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/down_true-unreach-call_true-termination.i @@ -0,0 +1,26 @@ +extern void __VERIFIER_error(void); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int main() { + int n; + int k = 0; + int i = 0; + n = __VERIFIER_nondet_int(); + while( i < n ) { + i++; + k++; + } + int j = n; + while( j > 0 ) { + __VERIFIER_assert(k > 0); + j--; + k--; + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/fragtest_simple_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/fragtest_simple_true-unreach-call_true-termination.c new file mode 100644 index 000000000..9036163b2 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/fragtest_simple_true-unreach-call_true-termination.c @@ -0,0 +1,43 @@ +#include "assert.h" + +int main(){ + int i,pvlen ; + int tmp___1 ; + int k = 0; + int n; + + i = 0; + pvlen = __VERIFIER_nondet_int(); + + // pkt = pktq->tqh_first; + while ( __VERIFIER_nondet_int() && i <= LARGE_INT) { + i = i + 1; + } + + + if (i > pvlen) { + pvlen = i; + } + i = 0; + + while ( __VERIFIER_nondet_int() && i <= LARGE_INT) { + tmp___1 = i; + i = i + 1; + k = k + 1; + } + + int j = 0; + n = i; + while (1) { + + __VERIFIER_assert(k >= 0); + k = k -1; + i = i - 1; + j = j + 1; + if (j >= n) { + break; + } + } + return 0; + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/fragtest_simple_true-unreach-call_true-termination.i b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/fragtest_simple_true-unreach-call_true-termination.i new file mode 100644 index 000000000..1c28a2cc6 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/fragtest_simple_true-unreach-call_true-termination.i @@ -0,0 +1,41 @@ +extern void __VERIFIER_error(void); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int main(){ + int i,pvlen ; + int tmp___1 ; + int k = 0; + int n; + i = 0; + pvlen = __VERIFIER_nondet_int(); + while ( __VERIFIER_nondet_int() && i <= 1000000) { + i = i + 1; + } + if (i > pvlen) { + pvlen = i; + } + i = 0; + while ( __VERIFIER_nondet_int() && i <= 1000000) { + tmp___1 = i; + i = i + 1; + k = k + 1; + } + int j = 0; + n = i; + while (1) { + __VERIFIER_assert(k >= 0); + k = k -1; + i = i - 1; + j = j + 1; + if (j >= n) { + break; + } + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/half_2_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/half_2_true-unreach-call_true-termination.c new file mode 100644 index 000000000..c3b9661e3 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/half_2_true-unreach-call_true-termination.c @@ -0,0 +1,22 @@ +#include "assert.h" + +int main() { + int n,i,k; + n = __VERIFIER_nondet_int(); + if (!(n <= LARGE_INT)) return 0; + k = n; + i = 0; + while( i < n ) { + k--; + i = i + 2; + } + + int j = 0; + + while( j < n/2 ) { + __VERIFIER_assert(k > 0); + k--; + j++; + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/half_2_true-unreach-call_true-termination.i b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/half_2_true-unreach-call_true-termination.i new file mode 100644 index 000000000..0bd94f4ae --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/half_2_true-unreach-call_true-termination.i @@ -0,0 +1,27 @@ +extern void __VERIFIER_error(void); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int main() { + int n,i,k; + n = __VERIFIER_nondet_int(); + if (!(n <= 1000000)) return 0; + k = n; + i = 0; + while( i < n ) { + k--; + i = i + 2; + } + int j = 0; + while( j < n/2 ) { + __VERIFIER_assert(k > 0); + k--; + j++; + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/heapsort_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/heapsort_true-unreach-call_true-termination.c new file mode 100644 index 000000000..a47cb73b0 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/heapsort_true-unreach-call_true-termination.c @@ -0,0 +1,53 @@ +#include "assert.h" + +int main( int argc, char *argv[]){ + int n,l,r,i,j; + + l = __VERIFIER_nondet_int(); + n = 2 * l - 1; + if (!(1 <= n )) return 0; + + //l = n/2 + 1; + r = n; + if(l>1) { + l--; + } else { + r--; + } + while(r > 1) { + i = l; + j = 2*l; + while(j <= r) { + if( j < r) { + __VERIFIER_assert(1 <= j); + __VERIFIER_assert(j <= n); + __VERIFIER_assert(1 <= j+1); + __VERIFIER_assert(j+1 <= n); + if( __VERIFIER_nondet_int() ) + j = j + 1; + } + __VERIFIER_assert(1 <= j); + __VERIFIER_assert(j <= n); + if( __VERIFIER_nondet_int() ) { + break; + } + __VERIFIER_assert(1 <= i); + __VERIFIER_assert(i <= n); + __VERIFIER_assert(1 <= j); + __VERIFIER_assert(j <= n); + i = j; + j = 2*j; + } + if(l > 1) { + __VERIFIER_assert(1 <= l); + __VERIFIER_assert(l <= n); + l--; + } else { + __VERIFIER_assert(1 <= r); + __VERIFIER_assert(r <= n); + r--; + } + } + return 0; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/heapsort_true-unreach-call_true-termination.i b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/heapsort_true-unreach-call_true-termination.i new file mode 100644 index 000000000..98d382951 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/heapsort_true-unreach-call_true-termination.i @@ -0,0 +1,56 @@ +extern void __VERIFIER_error(void); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int main( int argc, char *argv[]){ + int n,l,r,i,j; + n = __VERIFIER_nondet_int(); + if (!(1 <= n && n <= 1000000)) return 0; + l = n/2 + 1; + r = n; + if(l>1) { + l--; + } else { + r--; + } + while(r > 1) { + i = l; + j = 2*l; + while(j <= r) { + if( j < r) { + __VERIFIER_assert(1 <= j); + __VERIFIER_assert(j <= n); + __VERIFIER_assert(1 <= j+1); + __VERIFIER_assert(j+1 <= n); + if( __VERIFIER_nondet_int() ) + j = j + 1; + } + __VERIFIER_assert(1 <= j); + __VERIFIER_assert(j <= n); + if( __VERIFIER_nondet_int() ) { + break; + } + __VERIFIER_assert(1 <= i); + __VERIFIER_assert(i <= n); + __VERIFIER_assert(1 <= j); + __VERIFIER_assert(j <= n); + i = j; + j = 2*j; + } + if(l > 1) { + __VERIFIER_assert(1 <= l); + __VERIFIER_assert(l <= n); + l--; + } else { + __VERIFIER_assert(1 <= r); + __VERIFIER_assert(r <= n); + r--; + } + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/id_build_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/id_build_true-unreach-call_true-termination.c new file mode 100644 index 000000000..96b68a409 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/id_build_true-unreach-call_true-termination.c @@ -0,0 +1,34 @@ +// from FreePastry source, file Id.java + /** + * Constructor, which takes the output of a toStringFull() and converts it back + * into an Id. Should not normally be used. + * + * @param hex The hexadeciaml representation from the toStringFull() + */ +/* + public static Id build(char[] chars, int offset, int length) { + int[] array = new int[nlen]; + + for (int i=0; i int[] + * + * @param material The input byte[] + * @return THe int[] + */ +/* + protected static int[] trans(byte[] material) { + int[] array = new int[nlen]; + + for (int j = 0; (j < IdBitLength / 8) && (j < material.length); j++) { + int k = material[j] & 0xff; + array[j / 4] |= k << ((j % 4) * 8); + } + + return array; + } +*/ +#include "assert.h" +int main() { + int idBitLength, material_length, nlen; + int j, k; + + nlen = __VERIFIER_nondet_int(); + idBitLength = __VERIFIER_nondet_int(); + material_length = __VERIFIER_nondet_int(); + if (!( nlen == idBitLength / 32 )) return 0; + + for (j = 0; (j < idBitLength / 8) && (j < material_length); j++) { + __VERIFIER_assert( 0 <= j); + __VERIFIER_assert( j < material_length ); + __VERIFIER_assert( 0 <= j/4 ); + __VERIFIER_assert( j/4 < nlen); + } + + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/id_trans_false-unreach-call_true-termination.i b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/id_trans_false-unreach-call_true-termination.i new file mode 100644 index 000000000..9d6783605 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/id_trans_false-unreach-call_true-termination.i @@ -0,0 +1,24 @@ +extern void __VERIFIER_error(void); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int main() { + int idBitLength, material_length, nlen; + int j, k; + nlen = __VERIFIER_nondet_int(); + idBitLength = __VERIFIER_nondet_int(); + material_length = __VERIFIER_nondet_int(); + if (!( nlen == idBitLength / 32 )) return 0; + for (j = 0; (j < idBitLength / 8) && (j < material_length); j++) { + __VERIFIER_assert( 0 <= j); + __VERIFIER_assert( j < material_length ); + __VERIFIER_assert( 0 <= j/4 ); + __VERIFIER_assert( j/4 < nlen); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/large_const_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/large_const_true-unreach-call_true-termination.c new file mode 100644 index 000000000..7e17acaec --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/large_const_true-unreach-call_true-termination.c @@ -0,0 +1,41 @@ +#include "assert.h" + +extern int unknown(); + +int main(int argc, char* argv[]) { + int c1 = unknown(); + int c2 = unknown(); + int c3 = unknown(); + int n, v; + int i, k, j; + + __VERIFIER_assume(0 < c1 && c1 < 4000); + __VERIFIER_assume(0 < c2 && c2 < 2000); + __VERIFIER_assume(0 < c3 && c3 < 10000); + + n = __VERIFIER_nondet_int(); + if (!(0 <= n && n < 10)) return 0; + + k = 0; + i = 0; + while( i < n ) { + i++; + v = __VERIFIER_nondet_int(); + if (!(0 <= v && n < 2)) return 0; + if( v == 0 ) + k += c1; + else if( v == 1 ) + k += c2; + else + k += c3; + } + + j = 0; + while( j < n ) { + __VERIFIER_assert(k > 0); + j++; + k--; + } + + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/large_const_true-unreach-call_true-termination.i b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/large_const_true-unreach-call_true-termination.i new file mode 100644 index 000000000..34929ea43 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/large_const_true-unreach-call_true-termination.i @@ -0,0 +1,38 @@ +extern void __VERIFIER_error(void); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int main(int argc, char* argv[]) { + int c1 = 4000; + int c2 = 2000; + int c3 = 10000; + int n, v; + int i, k, j; + n = __VERIFIER_nondet_int(); + if (!(0 <= n && n < 10)) return 0; + k = 0; + i = 0; + while( i < n ) { + i++; + v = __VERIFIER_nondet_int(); + if (!(0 <= v && n < 2)) return 0; + if( v == 0 ) + k += c1; + else if( v == 1 ) + k += c2; + else + k += c3; + } + j = 0; + while( j < n ) { + __VERIFIER_assert(k > 0); + j++; + k--; + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/nest-if3_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/nest-if3_true-unreach-call_true-termination.c new file mode 100644 index 000000000..f34bae424 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/nest-if3_true-unreach-call_true-termination.c @@ -0,0 +1,17 @@ +#include "assert.h" +int main() { + int i,k,n,l; + + n = __VERIFIER_nondet_int(); + l = __VERIFIER_nondet_int(); + if (!(l>0)) return 0; + //if (!(l < LARGE_INT)) return 0; + //if (!(n < LARGE_INT)) return 0; + for (k=1;k0)) return 0; + if (!(l < 1000000)) return 0; + if (!(n < 1000000)) return 0; + for (k=1;k=2*i); + } + } + else { + __VERIFIER_assert( k >= n ); + __VERIFIER_assert( k <= n ); + } + } + } +END: + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/nested6_true-unreach-call_true-termination.i b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/nested6_true-unreach-call_true-termination.i new file mode 100644 index 000000000..0706a6ccf --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/nested6_true-unreach-call_true-termination.i @@ -0,0 +1,34 @@ +extern void __VERIFIER_error(void); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int main() { + int i,j,k,n; + k = __VERIFIER_nondet_int(); + n = __VERIFIER_nondet_int(); + if (!(n < 1000000)) return 0; + if( k == n) { + } else { + goto END; + } + for (i=0;i=2*i); + } + } + else { + __VERIFIER_assert( k >= n ); + __VERIFIER_assert( k <= n ); + } + } + } +END: + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/nested9_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/nested9_true-unreach-call_true-termination.c new file mode 100644 index 000000000..887fb96a6 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/nested9_true-unreach-call_true-termination.c @@ -0,0 +1,21 @@ +#include "assert.h" + +int __BLAST_NONDET; + +int main() { + int i,j,k,n,l,m; + + n = __VERIFIER_nondet_int(); + m = __VERIFIER_nondet_int(); + l = __VERIFIER_nondet_int(); + //if (!(-LARGE_INT < n && n < LARGE_INT)) return 0; + //if (!(-LARGE_INT < m && m < LARGE_INT)) return 0; + //if (!(-LARGE_INT < l && l < LARGE_INT)) return 0; + if(3*n<=m+l); else goto END; + for (i=0;i''\0' at the end. + */ + +#include "assert.h" + + +int main () +{ + int in; + int inlen = __VERIFIER_nondet_int(); + int bufferlen = __VERIFIER_nondet_int(); + int buf; + int buflim; + + if(bufferlen >1);else goto END; + if(inlen > 0);else goto END; + if(bufferlen < inlen);else goto END; + + buf = 0; + in = 0; + buflim = bufferlen - 2; + + while (__VERIFIER_nondet_int()) + { + if (buf == buflim) + break; + __VERIFIER_assert(0<=buf); + __VERIFIER_assert(buf1);else goto END; + if(inlen > 0);else goto END; + if(bufferlen < inlen);else goto END; + buf = 0; + in = 0; + buflim = bufferlen - 2; + while (__VERIFIER_nondet_int()) + { + if (buf == buflim) + break; + __VERIFIER_assert(0<=buf); + __VERIFIER_assert(buf 0); + j1++; + k--; + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/seq_true-unreach-call_true-termination.i b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/seq_true-unreach-call_true-termination.i new file mode 100644 index 000000000..99eb37c13 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/seq_true-unreach-call_true-termination.i @@ -0,0 +1,33 @@ +extern void __VERIFIER_error(void); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int main() { + int n0, n1; + int i0 = 0; + int k = 0; + n0 = __VERIFIER_nondet_int(); + n1 = __VERIFIER_nondet_int(); + if (!(-1000000 <= n0 && n0 < 1000000)) return 0; + if (!(-1000000 <= n1 && n1 < 1000000)) return 0; + while( i0 < n0 ) { + i0++; + k++; + } + int i1 = 0; + while( i1 < n1 ) { + i1++; + k++; + } + int j1 = 0; + while( j1 < n0 + n1 ) { + __VERIFIER_assert(k > 0); + j1++; + k--; + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/string_concat-noarr_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/string_concat-noarr_true-unreach-call_true-termination.c new file mode 100644 index 000000000..bbf4341e8 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/string_concat-noarr_true-unreach-call_true-termination.c @@ -0,0 +1,23 @@ +#include "assert.h" + +int main(void) { + int i, j; + + L0: + i = 0; + L1: + while( __VERIFIER_nondet_int() && i < LARGE_INT){ + + i++; + } + if(i >= 100) STUCK: goto STUCK; // assume( i < 100 ); + j = 0; + L2: + while( __VERIFIER_nondet_int() && i < LARGE_INT ){ + i++; + j++; + } + if(j >= 100) goto STUCK; // assume( j < 100 ); + __VERIFIER_assert( i < 200 ); /* prove we don't overflow z */ + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/string_concat-noarr_true-unreach-call_true-termination.i b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/string_concat-noarr_true-unreach-call_true-termination.i new file mode 100644 index 000000000..dfe443d05 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/string_concat-noarr_true-unreach-call_true-termination.i @@ -0,0 +1,28 @@ +extern void __VERIFIER_error(void); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int main(void) { + int i, j; + L0: + i = 0; + L1: + while( __VERIFIER_nondet_int() && i < 1000000){ + i++; + } + if(i >= 100) STUCK: goto STUCK; + j = 0; + L2: + while( __VERIFIER_nondet_int() && i < 1000000 ){ + i++; + j++; + } + if(j >= 100) goto STUCK; + __VERIFIER_assert( i < 200 ); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/up_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/up_true-unreach-call_true-termination.c new file mode 100644 index 000000000..90fd6b20b --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/up_true-unreach-call_true-termination.c @@ -0,0 +1,18 @@ +#include "assert.h" + +int main() { + int n; + int i = 0; + int k = 0; + n = __VERIFIER_nondet_int(); + while( i < n ) { + i++; + k++; + } + int j = 0; + while( j < n ) { + __VERIFIER_assert (k > 0); + j++; + k--; + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/up_true-unreach-call_true-termination.i b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/up_true-unreach-call_true-termination.i new file mode 100644 index 000000000..1c9f9963e --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/up_true-unreach-call_true-termination.i @@ -0,0 +1,25 @@ +extern void __VERIFIER_error(void); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int main() { + int n; + int i = 0; + int k = 0; + n = __VERIFIER_nondet_int(); + while( i < n ) { + i++; + k++; + } + int j = 0; + while( j < n ) { + __VERIFIER_assert (k > 0); + j++; + k--; + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/.DS_Store b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 GIT binary patch literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0= y); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/afnp2014_true-unreach-call_true-termination.c.i b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/afnp2014_true-unreach-call_true-termination.c.i new file mode 100644 index 000000000..0bd3db9d4 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/afnp2014_true-unreach-call_true-termination.c.i @@ -0,0 +1,19 @@ +extern void __VERIFIER_error(void); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int main() { + int x = 1; + int y = 0; + while (y < 1000 && __VERIFIER_nondet_int()) { + x = x + y; + y = y + 1; + } + __VERIFIER_assert(x >= y); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/assert.h b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/assert.h new file mode 100644 index 000000000..4dbfdb03d --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/assert.h @@ -0,0 +1,10 @@ +extern void __VERIFIER_error(void); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +#define LARGE_INT 1000000 diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/bhmr2007_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/bhmr2007_true-unreach-call_true-termination.c new file mode 100644 index 000000000..e6ad53648 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/bhmr2007_true-unreach-call_true-termination.c @@ -0,0 +1,21 @@ +// Source: Dirk Beyer, Thomas A. Henzinger, Rupak Majumdar, Andrey +// Rybalchenko: "Path Invariants", PLDI 2007. + +#include "assert.h" +int main() { + int i, n, a, b; + i = 0; a = 0; b = 0; n = __VERIFIER_nondet_int(); + if (!(n >= 0 && n <= LARGE_INT)) return 0; + while (i < n) { + if (__VERIFIER_nondet_int()) { + a = a + 1; + b = b + 2; + } else { + a = a + 2; + b = b + 1; + } + i = i + 1; + } + __VERIFIER_assert(a + b == 3*n); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/bhmr2007_true-unreach-call_true-termination.c.i b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/bhmr2007_true-unreach-call_true-termination.c.i new file mode 100644 index 000000000..7f2b08061 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/bhmr2007_true-unreach-call_true-termination.c.i @@ -0,0 +1,26 @@ +extern void __VERIFIER_error(void); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int main() { + int i, n, a, b; + i = 0; a = 0; b = 0; n = __VERIFIER_nondet_int(); + if(!(n >= 0 && n <= 1000000)) return 0; + while (i < n) { + if (__VERIFIER_nondet_int()) { + a = a + 1; + b = b + 2; + } else { + a = a + 2; + b = b + 1; + } + i = i + 1; + } + __VERIFIER_assert(a + b == 3*n); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/cggmp2005_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/cggmp2005_true-unreach-call_true-termination.c new file mode 100644 index 000000000..8d693af43 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/cggmp2005_true-unreach-call_true-termination.c @@ -0,0 +1,17 @@ +// Source: A. Costan, S. Gaubert, E. Goubault, M. Martel, S. Putot: "A Policy +// Iteration Algorithm for Computing Fixed Points in Static Analysis of +// Programs", CAV 2005 + +#include "assert.h" + +int main() { + int i,j; + i = 1; + j = 10; + while (j >= i) { + i = i + 2; + j = -1 + j; + } + __VERIFIER_assert(j == 6); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/cggmp2005_true-unreach-call_true-termination.c.i b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/cggmp2005_true-unreach-call_true-termination.c.i new file mode 100644 index 000000000..33b478813 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/cggmp2005_true-unreach-call_true-termination.c.i @@ -0,0 +1,20 @@ +extern void __VERIFIER_error(void); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int main() { + int i,j; + i = 1; + j = 10; + while (j >= i) { + i = i + 2; + j = -1 + j; + } + __VERIFIER_assert(j == 6); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/cggmp2005_variant_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/cggmp2005_variant_true-unreach-call_true-termination.c new file mode 100644 index 000000000..dc6fc2ca4 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/cggmp2005_variant_true-unreach-call_true-termination.c @@ -0,0 +1,21 @@ +// Source: A. Costan, S. Gaubert, E. Goubault, M. Martel, S. Putot: "A Policy +// Iteration Algorithm for Computing Fixed Points in Static Analysis of +// Programs", CAV 2005 + +#include "assert.h" + +int main() { + int lo, mid, hi; + lo = 0; + mid = __VERIFIER_nondet_int(); + if (!(mid > 0 && mid <= LARGE_INT)) return 0; + hi = 2*mid; + + while (mid > 0) { + lo = lo + 1; + hi = hi - 1; + mid = mid - 1; + } + __VERIFIER_assert(lo == hi); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/cggmp2005_variant_true-unreach-call_true-termination.c.i b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/cggmp2005_variant_true-unreach-call_true-termination.c.i new file mode 100644 index 000000000..a6035efcc --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/cggmp2005_variant_true-unreach-call_true-termination.c.i @@ -0,0 +1,23 @@ +extern void __VERIFIER_error(void); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int main() { + int lo, mid, hi; + lo = 0; + mid = __VERIFIER_nondet_int(); + if (!(mid > 0 && mid <= 1000000)) return 0; + hi = 2*mid; + while (mid > 0) { + lo = lo + 1; + hi = hi - 1; + mid = mid - 1; + } + __VERIFIER_assert(lo == hi); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/cggmp2005b_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/cggmp2005b_true-unreach-call_true-termination.c new file mode 100644 index 000000000..5e4e29631 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/cggmp2005b_true-unreach-call_true-termination.c @@ -0,0 +1,24 @@ +// Source: A. Costan, S. Gaubert, E. Goubault, M. Martel, S. Putot: "A Policy +// Iteration Algorithm for Computing Fixed Points in Static Analysis of +// Programs", CAV 2005 + +#include "assert.h" + +int main() { + int i,j,k; + i = 0; + k = 9; + j = -100; + while (i <= 100) { + i = i + 1; + while (j < 20) { + j = i + j; + } + k = 4; + while (k <= 3) { + k = k + 1; + } + } + __VERIFIER_assert(k == 4); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/cggmp2005b_true-unreach-call_true-termination.c.i b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/cggmp2005b_true-unreach-call_true-termination.c.i new file mode 100644 index 000000000..b17757dc3 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/cggmp2005b_true-unreach-call_true-termination.c.i @@ -0,0 +1,27 @@ +extern void __VERIFIER_error(void); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int main() { + int i,j,k; + i = 0; + k = 9; + j = -100; + while (i <= 100) { + i = i + 1; + while (j < 20) { + j = i + j; + } + k = 4; + while (k <= 3) { + k = k + 1; + } + } + __VERIFIER_assert(k == 4); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/css2003_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/css2003_true-unreach-call_true-termination.c new file mode 100644 index 000000000..99ef418cf --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/css2003_true-unreach-call_true-termination.c @@ -0,0 +1,18 @@ +// Source: Michael Colon, Sriram Sankaranarayanan, Henny Sipma: "Linear +// Invariant Generation using Non-Linear Constraint Solving", CAV 2003. + +#include "assert.h" +int main() { + int i,j,k; + i = 1; + j = 1; + k = __VERIFIER_nondet_int(); + if (!(0 <= k && k <= 1)) return 0; + while (i < LARGE_INT) { + i = i + 1; + j = j + k; + k = k - 1; + __VERIFIER_assert(1 <= i + k && i + k <= 2 && i >= 1); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/css2003_true-unreach-call_true-termination.c.i b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/css2003_true-unreach-call_true-termination.c.i new file mode 100644 index 000000000..eb5b1e234 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/css2003_true-unreach-call_true-termination.c.i @@ -0,0 +1,23 @@ +extern void __VERIFIER_error(void); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int main() { + int i,j,k; + i = 1; + j = 1; + k = __VERIFIER_nondet_int(); + if (!(0 <= k && k <= 1)) return 0; + while (i < 1000000) { + i = i + 1; + j = j + k; + k = k - 1; + __VERIFIER_assert(1 <= i + k && i + k <= 2 && i >= 1); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/ddlm2013_true-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/ddlm2013_true-unreach-call.c new file mode 100644 index 000000000..50e9e44ee --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/ddlm2013_true-unreach-call.c @@ -0,0 +1,32 @@ +// Source: Isil Dillig, Thomas Dillig, Boyang Li, Ken McMillan: "Inductive +// Invariant Generation via Abductive Inference", OOPSLA 2013. + +#include "assert.h" + +int main() { + unsigned int i,j,a,b; + int flag = __VERIFIER_nondet_int(); + a = 0; + b = 0; + j = 1; + if (flag) { + i = 0; + } else { + i = 1; + } + + while (__VERIFIER_nondet_int()) { + a++; + b += (j - i); + i += 2; + if (i%2 == 0) { + j += 2; + } else { + j++; + } + } + if (flag) { + __VERIFIER_assert(a == b); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/ddlm2013_true-unreach-call.i b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/ddlm2013_true-unreach-call.i new file mode 100644 index 000000000..78cc1ca25 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/ddlm2013_true-unreach-call.i @@ -0,0 +1,35 @@ +extern void __VERIFIER_error(void); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int main() { + unsigned int i,j,a,b; + int flag = __VERIFIER_nondet_int(); + a = 0; + b = 0; + j = 1; + if (flag) { + i = 0; + } else { + i = 1; + } + while (__VERIFIER_nondet_int()) { + a++; + b += (j - i); + i += 2; + if (i%2 == 0) { + j += 2; + } else { + j++; + } + } + if (flag) { + __VERIFIER_assert(a == b); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gcnr2008_false-unreach-call_false-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gcnr2008_false-unreach-call_false-termination.c new file mode 100644 index 000000000..8217a5e0b --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gcnr2008_false-unreach-call_false-termination.c @@ -0,0 +1,26 @@ +// Source: Bhargav S. Gulavani, Supratik Chakraborty, Aditya V. Nori, Sriram +// K. Rajamani: "Automatically Refining Abstract Interpretations", TACAS 2008. + +#include "assert.h" + +int main() { + int x,y,z,w; + x = y = z = w = 0; + while (__VERIFIER_nondet_int() && y < 10000) { + if (__VERIFIER_nondet_int()) { + x = x + 1; + y = y + 100; + } else if (__VERIFIER_nondet_int()) { + if (x >= 4) { + x = x + 1; + y = y + 1; + } + } else if (y > 10*w && z >= 100*x) { + y = -y; + } + w = w + 1; + z = z + 10; + } + __VERIFIER_assert(x >= 4 && y <= 2); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gcnr2008_false-unreach-call_false-termination.i b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gcnr2008_false-unreach-call_false-termination.i new file mode 100644 index 000000000..f8aef2d16 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gcnr2008_false-unreach-call_false-termination.i @@ -0,0 +1,30 @@ +extern void __VERIFIER_error(void); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int main() { + int x,y,z,w; + x = y = z = w = 0; + while (__VERIFIER_nondet_int() && y < 10000) { + if (__VERIFIER_nondet_int()) { + x = x + 1; + y = y + 100; + } else if (__VERIFIER_nondet_int()) { + if (x >= 4) { + x = x + 1; + y = y + 1; + } + } else if (y > 10*w && z >= 100*x) { + y = -y; + } + w = w + 1; + z = z + 10; + } + __VERIFIER_assert(x >= 4 && y <= 2); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gj2007_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gj2007_true-unreach-call_true-termination.c new file mode 100644 index 000000000..319824238 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gj2007_true-unreach-call_true-termination.c @@ -0,0 +1,19 @@ +// Source: Sumit Gulwani, Nebosja Jojic: "Program Verification as +// Probabilistic Inference", POPL 2007. + +#include "assert.h" + +int main() { + int x = 0; + int y = 50; + while(x < 100) { + if (x < 50) { + x = x + 1; + } else { + x = x + 1; + y = y + 1; + } + } + __VERIFIER_assert(y == 100); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gj2007_true-unreach-call_true-termination.c.i b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gj2007_true-unreach-call_true-termination.c.i new file mode 100644 index 000000000..c04247985 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gj2007_true-unreach-call_true-termination.c.i @@ -0,0 +1,23 @@ +extern void __VERIFIER_error(void); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int main() { + int x = 0; + int y = 50; + while(x < 100) { + if (x < 50) { + x = x + 1; + } else { + x = x + 1; + y = y + 1; + } + } + __VERIFIER_assert(y == 100); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gj2007b_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gj2007b_true-unreach-call_true-termination.c new file mode 100644 index 000000000..2e38d2ae9 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gj2007b_true-unreach-call_true-termination.c @@ -0,0 +1,19 @@ +// Source: Sumit Gulwani, Nebosja Jojic: "Program Verification as +// Probabilistic Inference", POPL 2007. + +#include "assert.h" + +int main() { + int x = 0; + int m = 0; + int n = __VERIFIER_nondet_int(); + while(x < n) { + if(__VERIFIER_nondet_int()) { + m = x; + } + x = x + 1; + } + __VERIFIER_assert((m >= 0 || n <= 0)); + __VERIFIER_assert((m < n || n <= 0)); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gj2007b_true-unreach-call_true-termination.c.i b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gj2007b_true-unreach-call_true-termination.c.i new file mode 100644 index 000000000..07253544d --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gj2007b_true-unreach-call_true-termination.c.i @@ -0,0 +1,23 @@ +extern void __VERIFIER_error(void); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int main() { + int x = 0; + int m = 0; + int n = __VERIFIER_nondet_int(); + while(x < n) { + if(__VERIFIER_nondet_int()) { + m = x; + } + x = x + 1; + } + __VERIFIER_assert((m >= 0 || n <= 0)); + __VERIFIER_assert((m < n || n <= 0)); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gr2006_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gr2006_true-unreach-call_true-termination.c new file mode 100644 index 000000000..86be0c0a4 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gr2006_true-unreach-call_true-termination.c @@ -0,0 +1,20 @@ +// Source: Denis Gopan, Thomas Reps: "Lookahead Widening", CAV 2006. + +#include "assert.h" + +int main() { + int x,y; + x = 0; + y = 0; + while (1) { + if (x < 50) { + y++; + } else { + y--; + } + if (y < 0) break; + x++; + } + __VERIFIER_assert(x == 100); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gr2006_true-unreach-call_true-termination.c.i b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gr2006_true-unreach-call_true-termination.c.i new file mode 100644 index 000000000..154574497 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gr2006_true-unreach-call_true-termination.c.i @@ -0,0 +1,25 @@ +extern void __VERIFIER_error(void); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int main() { + int x,y; + x = 0; + y = 0; + while (1) { + if (x < 50) { + y++; + } else { + y--; + } + if (y < 0) break; + x++; + } + __VERIFIER_assert(x == 100); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gsv2008_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gsv2008_true-unreach-call_true-termination.c new file mode 100644 index 000000000..d3d02a90f --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gsv2008_true-unreach-call_true-termination.c @@ -0,0 +1,16 @@ +// Source: Sumit Gulwani, Saurabh Srivastava, Ramarathnam Venkatesan: "Program +// Analysis as Constraint Solving", PLDI 2008. + +#include "assert.h" +int main() { + int x,y; + x = -50; + y = __VERIFIER_nondet_int(); + if (!(-1000 < y && y < LARGE_INT)) return 0; + while (x < 0) { + x = x + y; + y++; + } + __VERIFIER_assert(y > 0); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gsv2008_true-unreach-call_true-termination.c.i b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gsv2008_true-unreach-call_true-termination.c.i new file mode 100644 index 000000000..660eeff77 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gsv2008_true-unreach-call_true-termination.c.i @@ -0,0 +1,21 @@ +extern void __VERIFIER_error(void); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int main() { + int x,y; + x = -50; + y = __VERIFIER_nondet_int(); + if (!(-1000 < y && y < 1000000)) return 0; + while (x < 0) { + x = x + y; + y++; + } + __VERIFIER_assert(y > 0); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/hhk2008_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/hhk2008_true-unreach-call_true-termination.c new file mode 100644 index 000000000..abd4a2f6e --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/hhk2008_true-unreach-call_true-termination.c @@ -0,0 +1,19 @@ +// Source: Thomas A. Henzinger, Thibaud Hottelier, Laura Kovacs: "Valigator: +// A verification Tool with Bound and Invariant Generation", LPAR 2008 + +#include "assert.h" + +int main() { + int a = __VERIFIER_nondet_int(); + int b = __VERIFIER_nondet_int(); + int res, cnt; + if (!(0 <= b)) return 0; + res = a; + cnt = b; + while (cnt > 0) { + cnt = cnt - 1; + res = res + 1; + } + __VERIFIER_assert(res == a + b); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/hhk2008_true-unreach-call_true-termination.c.i b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/hhk2008_true-unreach-call_true-termination.c.i new file mode 100644 index 000000000..8bab8712b --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/hhk2008_true-unreach-call_true-termination.c.i @@ -0,0 +1,24 @@ +extern void __VERIFIER_error(void); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int main() { + int a = __VERIFIER_nondet_int(); + int b = __VERIFIER_nondet_int(); + int res, cnt; + if (!(a <= 1000000)) return 0; + if (!(0 <= b && b <= 1000000)) return 0; + res = a; + cnt = b; + while (cnt > 0) { + cnt = cnt - 1; + res = res + 1; + } + __VERIFIER_assert(res == a + b); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/jm2006_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/jm2006_true-unreach-call_true-termination.c new file mode 100644 index 000000000..d84659c96 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/jm2006_true-unreach-call_true-termination.c @@ -0,0 +1,23 @@ +// Source: Credited to Anubhav Gupta +// appears in Ranjit Jhala, Ken McMillan: "A Practical and Complete Approach +// to Predicate Refinement", TACAS 2006 + +#include "assert.h" + +int main() { + int i, j; + i = __VERIFIER_nondet_int(); + j = __VERIFIER_nondet_int(); + if (!(i >= 0 && j >= 0)) return 0; + int x = i; + int y = j; + while(x != 0) { + x--; + y--; + } + + if (i == j) { + __VERIFIER_assert(y == 0); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/jm2006_true-unreach-call_true-termination.c.i b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/jm2006_true-unreach-call_true-termination.c.i new file mode 100644 index 000000000..d5fa7abb3 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/jm2006_true-unreach-call_true-termination.c.i @@ -0,0 +1,25 @@ +extern void __VERIFIER_error(void); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int main() { + int i, j; + i = __VERIFIER_nondet_int(); + j = __VERIFIER_nondet_int(); + if (!(i >= 0 && j >= 0)) return 0; + int x = i; + int y = j; + while(x != 0) { + x--; + y--; + } + if (i == j) { + __VERIFIER_assert(y == 0); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/jm2006_variant_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/jm2006_variant_true-unreach-call_true-termination.c new file mode 100644 index 000000000..515e8656a --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/jm2006_variant_true-unreach-call_true-termination.c @@ -0,0 +1,26 @@ +// Source: Credited to Anubhav Gupta +// appears in Ranjit Jhala, Ken McMillan: "A Practical and Complete Approach +// to Predicate Refinement", TACAS 2006 + +#include "assert.h" + +int main() { + int i, j; + i = __VERIFIER_nondet_int(); + j = __VERIFIER_nondet_int(); + + if (!(i >= 0 && i <= LARGE_INT)) return 0; + if (!(j >= 0)) return 0; + int x = i; + int y = j; + int z = 0; + while(x != 0) { + x --; + y -= 2; + z ++; + } + if (i == j) { + __VERIFIER_assert(y == -z); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/jm2006_variant_true-unreach-call_true-termination.c.i b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/jm2006_variant_true-unreach-call_true-termination.c.i new file mode 100644 index 000000000..b05897314 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/jm2006_variant_true-unreach-call_true-termination.c.i @@ -0,0 +1,28 @@ +extern void __VERIFIER_error(void); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int main() { + int i, j; + i = __VERIFIER_nondet_int(); + j = __VERIFIER_nondet_int(); + if (!(i >= 0 && i <= 1000000)) return 0; + if (!(j >= 0)) return 0; + int x = i; + int y = j; + int z = 0; + while(x != 0) { + x --; + y -= 2; + z ++; + } + if (i == j) { + __VERIFIER_assert(y == -z); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/.DS_Store b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 GIT binary patch literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0= -LARGE_INT)) return 0; + for(i = 0; i < 2*k; i++) { + if (i % 2 == 0) { + n ++; + } + } + __VERIFIER_assert(k < 0 || n == k); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/half_true-unreach-call_true-termination.i b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/half_true-unreach-call_true-termination.i new file mode 100644 index 000000000..7406500ae --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/half_true-unreach-call_true-termination.i @@ -0,0 +1,22 @@ +extern void __VERIFIER_error(void); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int main() { + int i = 0; + int n = 0; + int k = __VERIFIER_nondet_int(); + if (!(k <= 1000000 && k >= -1000000)) return 0; + for(i = 0; i < 2*k; i++) { + if (i % 2 == 0) { + n ++; + } + } + __VERIFIER_assert(k < 0 || n == k); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/nested_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/nested_true-unreach-call_true-termination.c new file mode 100644 index 000000000..2faca93ee --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/nested_true-unreach-call_true-termination.c @@ -0,0 +1,16 @@ +#include "assert.h" +int main() { + int n = __VERIFIER_nondet_int(); + int m = __VERIFIER_nondet_int(); + int k = 0; + int i,j; + if (!(LARGE_INT <= n && n <= LARGE_INT)) return 0; + if (!(LARGE_INT <= m && m <= LARGE_INT)) return 0; + for (i = 0; i < n; i++) { + for (j = 0; j < m; j++) { + k ++; + } + } + __VERIFIER_assert(k >= LARGE_INT*LARGE_INT); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/nested_true-unreach-call_true-termination.i b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/nested_true-unreach-call_true-termination.i new file mode 100644 index 000000000..9ace12234 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/nested_true-unreach-call_true-termination.i @@ -0,0 +1,24 @@ +extern void __VERIFIER_error(void); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int main() { + int n = __VERIFIER_nondet_int(); + int m = __VERIFIER_nondet_int(); + int k = 0; + int i,j; + if (!(LARGE_INT <= n && n <= LARGE_INT)) return 0; + if (!(LARGE_INT <= m && m <= LARGE_INT)) return 0; + for (i = 0; i < n; i++) { + for (j = 0; j < m; j++) { + k ++; + } + } + __VERIFIER_assert(k >= LARGE_INT); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/count_up_down_false-unreach-call_true-termination.i.annot.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/count_up_down_false-unreach-call_true-termination.i.annot.c new file mode 100644 index 000000000..93933aa28 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/count_up_down_false-unreach-call_true-termination.i.annot.c @@ -0,0 +1,27 @@ +# 1 "/tmp/tmp.6E3V4HoYk8.c" +# 1 "" +# 1 "" +# 1 "/usr/include/stdc-predef.h" 1 3 4 +# 1 "" 2 +# 1 "/tmp/tmp.6E3V4HoYk8.c" +extern void __VERIFIER_error(); + +void __VERIFIER_assert(int /*@ predicates{cond!=0} predicates_tpl{0==0} @*/ cond){ + if(!(cond)){ + ERROR: __VERIFIER_error(); + } + return; +} +unsigned int __VERIFIER_nondet_uint(); + +int main() +{ + unsigned int n = __VERIFIER_nondet_uint(); + unsigned int /*@ predicates{x<=n,x>0,x>=0} @*/ x=n, /*@ predicates{y!=n,y<=x,y==n,y>=x} terms_tpl{y+x} @*/ y=0; + while(x>0) + { + x--; + y++; + } + __VERIFIER_assert(y!=n); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/count_up_down_true-unreach-call_true-termination.i.annot.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/count_up_down_true-unreach-call_true-termination.i.annot.c new file mode 100644 index 000000000..36d7046e3 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/count_up_down_true-unreach-call_true-termination.i.annot.c @@ -0,0 +1,27 @@ +# 1 "/tmp/tmp.6E3V4HoYk8.c" +# 1 "" +# 1 "" +# 1 "/usr/include/stdc-predef.h" 1 3 4 +# 1 "" 2 +# 1 "/tmp/tmp.6E3V4HoYk8.c" +extern void __VERIFIER_error(); + +void __VERIFIER_assert(int /*@ predicates{cond!=0} predicates_tpl{0==0} @*/ cond){ + if(!(cond)){ + ERROR: __VERIFIER_error(); + } + return; +} +unsigned int __VERIFIER_nondet_uint(); + +int main() +{ + unsigned int n = __VERIFIER_nondet_uint(); + unsigned int /*@ predicates{x<=n,x>0,x>=0} @*/ x=n, /*@ predicates{y!=n,y<=x,y==n,y>=x} terms_tpl{y+x} @*/ y=0; + while(x>0) + { + x--; + y++; + } + __VERIFIER_assert(y==n); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/for_bounded_loop1_false-unreach-call_true-termination.i.annot.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/for_bounded_loop1_false-unreach-call_true-termination.i.annot.c new file mode 100644 index 000000000..ff956eb38 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/for_bounded_loop1_false-unreach-call_true-termination.i.annot.c @@ -0,0 +1,33 @@ +# 1 "/tmp/tmp.6E3V4HoYk8.c" +# 1 "" +# 1 "" +# 1 "/usr/include/stdc-predef.h" 1 3 4 +# 1 "" 2 +# 1 "/tmp/tmp.6E3V4HoYk8.c" +extern void __VERIFIER_error(); + +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int /*@ predicates{cond!=0} predicates_tpl{0==0} @*/ cond){ + if(!(cond)){ + ERROR: __VERIFIER_error(); + } + return; +} + +int __VERIFIER_nondet_int(); + +int main(){ + int /*@ predicates{i>=0} @*/ i=0, /*@ predicates{x!=0,x<=i,x==0,x>=i} terms_tpl{x-i} @*/ x=0, /*@ predicates{y!=0,y==0} @*/ y=0; + int /*@ predicates{n!=0,n==0,n>0,n>=i,n>i} @*/ n=__VERIFIER_nondet_int(); +__VERIFIER_assume(n>0); + for(i=0; i" +# 1 "" +# 1 "/usr/include/stdc-predef.h" 1 3 4 +# 1 "" 2 +# 1 "/tmp/tmp.6E3V4HoYk8.c" +extern void __VERIFIER_error(); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int /*@ predicates{cond!=0} predicates_tpl{0==0} @*/ cond){ + if(!(cond)){ + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int main(){ + unsigned int i=0; + int /*@ predicates{x==0} @*/ x=0, /*@ predicates{y==0} @*/ y=0; + int /*@ predicates{n>0} @*/ n=__VERIFIER_nondet_int(); +__VERIFIER_assume(n>0); + for(i=0; 1; i++) + { + __VERIFIER_assert(x==0); + } + __VERIFIER_assert(x==0); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/for_infinite_loop_2_true-unreach-call_false-termination.i.annot.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/for_infinite_loop_2_true-unreach-call_false-termination.i.annot.c new file mode 100644 index 000000000..61322ccf1 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/for_infinite_loop_2_true-unreach-call_false-termination.i.annot.c @@ -0,0 +1,26 @@ +# 1 "/tmp/tmp.6E3V4HoYk8.c" +# 1 "" +# 1 "" +# 1 "/usr/include/stdc-predef.h" 1 3 4 +# 1 "" 2 +# 1 "/tmp/tmp.6E3V4HoYk8.c" +extern void __VERIFIER_error(); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int /*@ predicates{cond!=0} predicates_tpl{0==0} @*/ cond){ + if(!(cond)){ + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int main(){ + unsigned int i=0; + int /*@ predicates{x!=0,x==0} @*/ x=0, /*@ predicates{y==0} @*/ y=0; + int /*@ predicates{n>0} @*/ n=__VERIFIER_nondet_int(); +__VERIFIER_assume(n>0); + for(i=0; 1; i++) + { + __VERIFIER_assert(x==0); + } + __VERIFIER_assert(x!=0); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum01_bug02_false-unreach-call_true-termination.i.annot.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum01_bug02_false-unreach-call_true-termination.i.annot.c new file mode 100644 index 000000000..86e684226 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum01_bug02_false-unreach-call_true-termination.i.annot.c @@ -0,0 +1,25 @@ +# 1 "/tmp/tmp.6E3V4HoYk8.c" +# 1 "" +# 1 "" +# 1 "/usr/include/stdc-predef.h" 1 3 4 +# 1 "" 2 +# 1 "/tmp/tmp.6E3V4HoYk8.c" +extern void __VERIFIER_error(); + +void __VERIFIER_assert(int /*@ predicates{cond!=0} predicates_tpl{0==0} @*/ cond){ + if(!(cond)){ + ERROR: __VERIFIER_error(); + } + return; +} + +extern unsigned int __VERIFIER_nondet_uint(); +int main(){ + int /*@ predicates{i>=1} @*/ i, /*@ predicates{j<=i,j>=i} terms_tpl{j+i} @*/ j=10, /*@ predicates{n>=i} @*/ n=__VERIFIER_nondet_uint(), /*@ predicates{(sn==(n*2)),sn<=i,sn<=j,sn==0,sn>=i,sn>=j} terms_tpl{sn+2*j,sn-2*i} @*/ sn=0; + for(i=1; i<=n; i++){ + if(i" +# 1 "" +# 1 "/usr/include/stdc-predef.h" 1 3 4 +# 1 "" 2 +# 1 "/tmp/tmp.6E3V4HoYk8.c" +extern void __VERIFIER_error(); + +void __VERIFIER_assert(int /*@ predicates{cond!=0} predicates_tpl{0==0} @*/ cond){ + if(!(cond)){ + ERROR: __VERIFIER_error(); + } + return; +} + +extern unsigned int __VERIFIER_nondet_uint(); +int main(){ + int /*@ predicates{i==1,i==2,i==3,i==4,i>=1} @*/ i, /*@ predicates{n>=i} @*/ n=__VERIFIER_nondet_uint(), /*@ predicates{(sn==(n*2)),sn<=i,sn==0,sn>=i} terms_tpl{sn-2*i} @*/ sn=0; + for(i=1; i<=n; i++){ + sn = sn +(2); + if(i==4)sn=-10; + } + __VERIFIER_assert(sn==n*(2)|| sn == 0); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum01_false-unreach-call_true-termination.i.annot.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum01_false-unreach-call_true-termination.i.annot.c new file mode 100644 index 000000000..ae2fb868e --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum01_false-unreach-call_true-termination.i.annot.c @@ -0,0 +1,24 @@ +# 1 "/tmp/tmp.6E3V4HoYk8.c" +# 1 "" +# 1 "" +# 1 "/usr/include/stdc-predef.h" 1 3 4 +# 1 "" 2 +# 1 "/tmp/tmp.6E3V4HoYk8.c" +extern void __VERIFIER_error(); + +void __VERIFIER_assert(int /*@ predicates{cond!=0} predicates_tpl{0==0} @*/ cond){ + if(!(cond)){ + ERROR: __VERIFIER_error(); + } + return; +} + +extern unsigned int __VERIFIER_nondet_uint(); +int main(){ + int /*@ predicates{i>=1} @*/ i, /*@ predicates{n>=i} @*/ n=__VERIFIER_nondet_uint(), /*@ predicates{(sn==(n*2)),sn<=i,sn==0,sn>=i} terms_tpl{sn-2*i} @*/ sn=0; + for(i=1; i<=n; i++){ + if(i<10) + sn = sn +(2); + } + __VERIFIER_assert(sn==n*(2)|| sn == 0); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum01_true-unreach-call_true-termination.i.annot.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum01_true-unreach-call_true-termination.i.annot.c new file mode 100644 index 000000000..369530585 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum01_true-unreach-call_true-termination.i.annot.c @@ -0,0 +1,23 @@ +# 1 "/tmp/tmp.6E3V4HoYk8.c" +# 1 "" +# 1 "" +# 1 "/usr/include/stdc-predef.h" 1 3 4 +# 1 "" 2 +# 1 "/tmp/tmp.6E3V4HoYk8.c" +extern void __VERIFIER_error(); +extern void assert(int cond); +void __VERIFIER_assert(int cond){ + if(!(cond)){ + ERROR: __VERIFIER_error(); + } + return; +} +extern int __VERIFIER_nondet_int(); +int main(){ + int i, n=__VERIFIER_nondet_int(), sn=0; +assume(n < 1000 && n >= -1000); + for(i=1; i<=n; i++){ + sn = sn +(2); + } + __VERIFIER_assert(sn==n*(2)|| sn == 0); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum03_false-unreach-call_true-termination.i.annot.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum03_false-unreach-call_true-termination.i.annot.c new file mode 100644 index 000000000..0e15e4c33 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum03_false-unreach-call_true-termination.i.annot.c @@ -0,0 +1,26 @@ +# 1 "/tmp/tmp.6E3V4HoYk8.c" +# 1 "" +# 1 "" +# 1 "/usr/include/stdc-predef.h" 1 3 4 +# 1 "" 2 +# 1 "/tmp/tmp.6E3V4HoYk8.c" +extern void __VERIFIER_error(); +void __VERIFIER_assert(int /*@ predicates{cond!=0} predicates_tpl{0==0} @*/ cond){ + if(!(cond)){ + ERROR: __VERIFIER_error(); + } + return; +} +extern unsigned int __VERIFIER_nondet_uint(); +int main(){ + int /*@ predicates{sn==0} @*/ sn=0; + unsigned int loop1=__VERIFIER_nondet_uint(), n1=__VERIFIER_nondet_uint(); + unsigned int /*@ predicates{(sn==(x*2)),x<=sn,x>=sn} terms_tpl{2*x-sn} @*/ x=0; + while(1){ + if(x<10){ + sn = sn +(2); + } + x++; + __VERIFIER_assert(sn==x*(2)|| sn == 0); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum03_true-unreach-call_false-termination.i.annot.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum03_true-unreach-call_false-termination.i.annot.c new file mode 100644 index 000000000..113b172be --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum03_true-unreach-call_false-termination.i.annot.c @@ -0,0 +1,24 @@ +# 1 "/tmp/tmp.6E3V4HoYk8.c" +# 1 "" +# 1 "" +# 1 "/usr/include/stdc-predef.h" 1 3 4 +# 1 "" 2 +# 1 "/tmp/tmp.6E3V4HoYk8.c" +extern void __VERIFIER_error(); +void __VERIFIER_assert(int /*@ predicates{cond!=0} predicates_tpl{0==0} @*/ cond){ + if(!(cond)){ + ERROR: __VERIFIER_error(); + } + return; +} +unsigned int __VERIFIER_nondet_uint(); +int main(){ + int /*@ predicates{sn==0} @*/ sn=0; + unsigned int loop1=__VERIFIER_nondet_uint(), n1=__VERIFIER_nondet_uint(); + unsigned int /*@ predicates{(sn==(x*2)),x<1000000,x<=1000000,x<=sn,x>=0,x>=sn} terms_tpl{2*x-sn} @*/ x=0; + while(x < 1000000){ + sn = sn +(2); + x++; + __VERIFIER_assert(sn==x*(2)|| sn == 0); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum04_false-unreach-call_true-termination.i.annot.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum04_false-unreach-call_true-termination.i.annot.c new file mode 100644 index 000000000..d5bbd38c4 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum04_false-unreach-call_true-termination.i.annot.c @@ -0,0 +1,24 @@ +# 1 "/tmp/tmp.6E3V4HoYk8.c" +# 1 "" +# 1 "" +# 1 "/usr/include/stdc-predef.h" 1 3 4 +# 1 "" 2 +# 1 "/tmp/tmp.6E3V4HoYk8.c" +extern void __VERIFIER_error(); + +void __VERIFIER_assert(int /*@ predicates{cond!=0} predicates_tpl{0==0} @*/ cond){ + if(!(cond)){ + ERROR: __VERIFIER_error(); + } + return; +} + + +int main(){ + int /*@ predicates{i<=8,i>=1} @*/ i, /*@ predicates{(sn==(8*2)),sn<=i,sn==0,sn>=i} terms_tpl{sn-2*i} @*/ sn=0; + for(i=1; i<=8; i++){ + if(i<4) + sn = sn +(2); + } + __VERIFIER_assert(sn==8*(2)|| sn == 0); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum04_true-unreach-call_true-termination.i.annot.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum04_true-unreach-call_true-termination.i.annot.c new file mode 100644 index 000000000..b1e5259f9 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum04_true-unreach-call_true-termination.i.annot.c @@ -0,0 +1,23 @@ +# 1 "/tmp/tmp.6E3V4HoYk8.c" +# 1 "" +# 1 "" +# 1 "/usr/include/stdc-predef.h" 1 3 4 +# 1 "" 2 +# 1 "/tmp/tmp.6E3V4HoYk8.c" +extern void __VERIFIER_error(); + +void __VERIFIER_assert(int /*@ predicates{cond!=0} predicates_tpl{0==0} @*/ cond){ + if(!(cond)){ + ERROR: __VERIFIER_error(); + } + return; +} + + +int main(){ + int /*@ predicates{i<=8,i>=1} @*/ i, /*@ predicates{(sn==(8*2)),sn<=i,sn==0,sn>=i} terms_tpl{sn-2*i} @*/ sn=0; + for(i=1; i<=8; i++){ + sn = sn +(2); + } + __VERIFIER_assert(sn==8*(2)|| sn == 0); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/terminator_02_false-unreach-call_true-termination.i.annot.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/terminator_02_false-unreach-call_true-termination.i.annot.c new file mode 100644 index 000000000..ef71e3556 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/terminator_02_false-unreach-call_true-termination.i.annot.c @@ -0,0 +1,41 @@ +# 1 "/tmp/tmp.6E3V4HoYk8.c" +# 1 "" +# 1 "" +# 1 "/usr/include/stdc-predef.h" 1 3 4 +# 1 "" 2 +# 1 "/tmp/tmp.6E3V4HoYk8.c" +extern void __VERIFIER_error(); + +void __VERIFIER_assert(int /*@ predicates{cond!=0,cond==0} predicates_tpl{0==0} @*/ cond){ + if(!(cond)){ + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int __VERIFIER_nondet_bool(); + +int main() +{ + int x=__VERIFIER_nondet_int(); + int y=__VERIFIER_nondet_int(); + int /*@ predicates{((x<100)&&(z>100)),x<=100,z<=100,z<=x,z>=x} terms_tpl{z+x,z-x} @*/ z=__VERIFIER_nondet_int(); + + while(x<100 && 100" +# 1 "" +# 1 "/usr/include/stdc-predef.h" 1 3 4 +# 1 "" 2 +# 1 "/tmp/tmp.6E3V4HoYk8.c" +extern void __VERIFIER_error(); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int /*@ predicates{cond!=0} predicates_tpl{0==0} @*/ cond){ + if(!(cond)){ + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int __VERIFIER_nondet_bool(); +int main() +{ + int /*@ predicates{(x>(-100)),x<100,x>=100} @*/ x=__VERIFIER_nondet_int(); + int y=__VERIFIER_nondet_int(); + int /*@ predicates{((x<100)&&(z>100)),(z>(-100)),x<=100,z<100,z<=100,z<=x,z>=x} terms_tpl{z+x,z-x} @*/ z=__VERIFIER_nondet_int(); +__VERIFIER_assume(x<100); +__VERIFIER_assume(x>-100); +__VERIFIER_assume(z<100); +__VERIFIER_assume(z>-100); + while(x<100 && 100=100 || z<=100); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/terminator_03_false-unreach-call_true-termination.i.annot.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/terminator_03_false-unreach-call_true-termination.i.annot.c new file mode 100644 index 000000000..740d17861 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/terminator_03_false-unreach-call_true-termination.i.annot.c @@ -0,0 +1,32 @@ +# 1 "/tmp/tmp.6E3V4HoYk8.c" +# 1 "" +# 1 "" +# 1 "/usr/include/stdc-predef.h" 1 3 4 +# 1 "" 2 +# 1 "/tmp/tmp.6E3V4HoYk8.c" +extern void __VERIFIER_error(); + +void __VERIFIER_assert(int /*@ predicates{cond!=0} predicates_tpl{0==0} @*/ cond){ + if(!(cond)){ + ERROR: __VERIFIER_error(); + } + return; +} +extern int __VERIFIER_nondet_int(); + +int main() +{ + int /*@ predicates{x<100,x>=100} @*/ x=__VERIFIER_nondet_int(); + int /*@ predicates{y<0,y<=0} @*/ y=__VERIFIER_nondet_int(); + + if(y>0) + { + while(x<100) + { + x=x+y; + } + } + __VERIFIER_assert(y<=0 ||(y<0 && x>=100)); + + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/terminator_03_true-unreach-call_true-termination.i.annot.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/terminator_03_true-unreach-call_true-termination.i.annot.c new file mode 100644 index 000000000..e77ec24b9 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/terminator_03_true-unreach-call_true-termination.i.annot.c @@ -0,0 +1,28 @@ +# 1 "/tmp/tmp.6E3V4HoYk8.c" +# 1 "" +# 1 "" +# 1 "/usr/include/stdc-predef.h" 1 3 4 +# 1 "" 2 +# 1 "/tmp/tmp.6E3V4HoYk8.c" +extern void __VERIFIER_error(); +extern void __VERIFIER_assume(); +void __VERIFIER_assert(int /*@ predicates{cond!=0} predicates_tpl{0==0} @*/ cond){ + if(!(cond)){ + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_int(); +int __VERIFIER_nondet_bool(); +int main(){ + int /*@ predicates{x<100,x>=100} @*/ x=__VERIFIER_nondet_int(); + int /*@ predicates{y<=0,y<=1000000,y>0} @*/ y=__VERIFIER_nondet_int(); +__VERIFIER_assume(y <= 1000000); + if(y>0){ + while(x<100){ + x=x+y; + } + } + __VERIFIER_assert(y<=0 ||(y>0 && x>=100)); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex01_false-unreach-call_true-termination.i.annot.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex01_false-unreach-call_true-termination.i.annot.c new file mode 100644 index 000000000..f09fdd26f --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex01_false-unreach-call_true-termination.i.annot.c @@ -0,0 +1,42 @@ +# 1 "/tmp/tmp.6E3V4HoYk8.c" +# 1 "" +# 1 "" +# 1 "/usr/include/stdc-predef.h" 1 3 4 +# 1 "" 2 +# 1 "/tmp/tmp.6E3V4HoYk8.c" +extern void __VERIFIER_error(); +void __VERIFIER_assert(int /*@ predicates{cond!=0} predicates_tpl{0==0} @*/ cond){ + if(!(cond)){ + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_bool(); +int __VERIFIER_nondet_int(); +void f(int /*@ predicates{d==1,d==2} @*/ d){ + int x = __VERIFIER_nondet_int(), /*@ predicates{((x>0)&&(y>0))} @*/ y = __VERIFIER_nondet_int(), k = __VERIFIER_nondet_int(), /*@ predicates{z<=y,z=2,z>=y} terms_tpl{z-y} @*/ z = 1; + L1: + while(z < k){ z = 2 * z; } + __VERIFIER_assert(z>=2); + L2: + while(x > 0 && y > 0){ + int /*@ predicates{c!=0,c==0} @*/ c = __VERIFIER_nondet_bool(); + if(c){ + P1: + x = x - d; + y = __VERIFIER_nondet_bool(); + z = z - 1; + } else { + y = y - d; + } + } +} +int main(){ + int /*@ predicates{c!=0,c==0} @*/ c = __VERIFIER_nondet_bool(); + if(c){ + f(1); + } else { + f(2); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex01_true-unreach-call.i.annot.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex01_true-unreach-call.i.annot.c new file mode 100644 index 000000000..9a44d4119 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex01_true-unreach-call.i.annot.c @@ -0,0 +1,46 @@ +# 1 "/tmp/tmp.6E3V4HoYk8.c" +# 1 "" +# 1 "" +# 1 "/usr/include/stdc-predef.h" 1 3 4 +# 1 "" 2 +# 1 "/tmp/tmp.6E3V4HoYk8.c" +extern void __VERIFIER_error(); +extern void __VERIFIER_assume(int condition); +void __VERIFIER_assert(int /*@ predicates{cond!=0} predicates_tpl{0==0} @*/ cond){ + if(!(cond)){ + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_bool(); +int __VERIFIER_nondet_int(); +void f(int /*@ predicates{d==1,d==2} @*/ d){ + int /*@ predicates{(x>=(-1000000)),x<=1000000} @*/ x = __VERIFIER_nondet_int(), /*@ predicates{((x>0)&&(y>0)),(y>=(-1000000)),y<=1000000} @*/ y = __VERIFIER_nondet_int(), /*@ predicates{(k>=(-1000000)),k<=1000000} @*/ k = __VERIFIER_nondet_int(), /*@ predicates{z<=y,z=1,z>=y} terms_tpl{z-y} @*/ z = 1; + L1: + while(z < k){ z = 2 * z; } + __VERIFIER_assert(z>=1); + L2: +__VERIFIER_assume(x <= 1000000 && x >= -1000000); +__VERIFIER_assume(y <= 1000000 && y >= -1000000); +__VERIFIER_assume(k <= 1000000 && k >= -1000000); + while(x > 0 && y > 0){ + int /*@ predicates{c!=0,c==0} @*/ c = __VERIFIER_nondet_bool(); + if(c){ + P1: + x = x - d; + y = __VERIFIER_nondet_bool();; + z = z - 1; + } else { + y = y - d; + } + } +} +int main(){ + int /*@ predicates{c!=0,c==0} @*/ c = __VERIFIER_nondet_bool(); + if(c){ + f(1); + } else { + f(2); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex02_false-unreach-call_true-termination.i.annot.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex02_false-unreach-call_true-termination.i.annot.c new file mode 100644 index 000000000..8954f5c44 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex02_false-unreach-call_true-termination.i.annot.c @@ -0,0 +1,29 @@ +# 1 "/tmp/tmp.6E3V4HoYk8.c" +# 1 "" +# 1 "" +# 1 "/usr/include/stdc-predef.h" 1 3 4 +# 1 "" 2 +# 1 "/tmp/tmp.6E3V4HoYk8.c" +extern void __VERIFIER_error(); +void __VERIFIER_assert(int /*@ predicates{cond!=0} predicates_tpl{0==0} @*/ cond){ + if(!(cond)){ + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_bool(); +int __VERIFIER_nondet_int(); +//int /*@ predicates{x==0,x>0} @*/ x; +int foo(int x){ + x--; + return x; +} +int main(){ + int x=__VERIFIER_nondet_int(); + while(x > 0){ + int /*@ predicates{c!=0,c==0} @*/ c = __VERIFIER_nondet_bool(); + if(c) x = foo(x); + else x = foo(x); + } + __VERIFIER_assert(x==0); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex02_true-unreach-call_true-termination.i.annot.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex02_true-unreach-call_true-termination.i.annot.c new file mode 100644 index 000000000..f67bceab3 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex02_true-unreach-call_true-termination.i.annot.c @@ -0,0 +1,28 @@ +# 1 "/tmp/tmp.6E3V4HoYk8.c" +# 1 "" +# 1 "" +# 1 "/usr/include/stdc-predef.h" 1 3 4 +# 1 "" 2 +# 1 "/tmp/tmp.6E3V4HoYk8.c" +extern void __VERIFIER_error(); +void __VERIFIER_assert(int /*@ predicates{cond!=0} predicates_tpl{0==0} @*/ cond){ + if(!(cond)){ + ERROR: __VERIFIER_error(); + } + return; +} +int __VERIFIER_nondet_bool(); +int __VERIFIER_nondet_int(); +int /*@ predicates{x<=0,x>0} @*/ x; +void foo(){ + x--; +} +int main(){ + x=__VERIFIER_nondet_int(); + while(x > 0){ + int /*@ predicates{c!=0,c==0} @*/ c = __VERIFIER_nondet_bool(); + if(c)foo(); + else foo(); + } + __VERIFIER_assert(x<=0); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex03_false-unreach-call_true-termination.i.annot.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex03_false-unreach-call_true-termination.i.annot.c new file mode 100644 index 000000000..a187272e3 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex03_false-unreach-call_true-termination.i.annot.c @@ -0,0 +1,31 @@ +# 1 "/tmp/tmp.6E3V4HoYk8.c" +# 1 "" +# 1 "" +# 1 "/usr/include/stdc-predef.h" 1 3 4 +# 1 "" 2 +# 1 "/tmp/tmp.6E3V4HoYk8.c" +extern void __VERIFIER_error(); +void __VERIFIER_assert(int /*@ predicates{cond!=0} predicates_tpl{0==0} @*/ cond){ + if(!(cond)){ + ERROR: __VERIFIER_error(); + } + return; +} +extern unsigned int __VERIFIER_nondet_uint(); +extern int __VERIFIER_nondet_bool(); +int main() +{ + unsigned int /*@ predicates{x1==0} @*/ x1=__VERIFIER_nondet_uint(), /*@ predicates{x2<=x1,x2==0,x2>=x1} terms_tpl{x2-x1} @*/ x2=__VERIFIER_nondet_uint(), /*@ predicates{(((x1>0)&&(x2>0))&&(x3>0)),x3<=x1,x3<=x2,x3==0,x3>=x1,x3>=x2} terms_tpl{x3-x1,x3-x2} @*/ x3=__VERIFIER_nondet_uint(); + unsigned int /*@ predicates{d1==1} @*/ d1=1, /*@ predicates{d2==1} @*/ d2=1, /*@ predicates{d3==1} @*/ d3=1; + int /*@ predicates{c1!=0,c1==0} @*/ c1=__VERIFIER_nondet_bool(), /*@ predicates{c2!=0,c2==0} @*/ c2=__VERIFIER_nondet_bool(); + while(x1>0 && x2>0 && x3>0) + { + if(c1)x1=x1-d1; + else if(c2)x2=x2-d2; + else x3=x3-d3; + c1=__VERIFIER_nondet_bool(); + c2=__VERIFIER_nondet_bool(); + } + __VERIFIER_assert(x1==0 && x2==0 && x3==0); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex03_true-unreach-call.i.annot.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex03_true-unreach-call.i.annot.c new file mode 100644 index 000000000..c3fcd3a15 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex03_true-unreach-call.i.annot.c @@ -0,0 +1,31 @@ +# 1 "/tmp/tmp.6E3V4HoYk8.c" +# 1 "" +# 1 "" +# 1 "/usr/include/stdc-predef.h" 1 3 4 +# 1 "" 2 +# 1 "/tmp/tmp.6E3V4HoYk8.c" +extern void __VERIFIER_error(); +void __VERIFIER_assert(int /*@ predicates{cond!=0} predicates_tpl{0==0} @*/ cond){ + if(!(cond)){ + ERROR: __VERIFIER_error(); + } + return; +} +unsigned int __VERIFIER_nondet_uint(); +int __VERIFIER_nondet_bool(); +int main() +{ + unsigned int /*@ predicates{x1==0} @*/ x1=__VERIFIER_nondet_uint(), /*@ predicates{x2<=x1,x2==0,x2>=x1} terms_tpl{x2-x1} @*/ x2=__VERIFIER_nondet_uint(), /*@ predicates{(((x1>0)&&(x2>0))&&(x3>0)),x3<=x1,x3<=x2,x3==0,x3>=x1,x3>=x2} terms_tpl{x3-x1,x3-x2} @*/ x3=__VERIFIER_nondet_uint(); + unsigned int /*@ predicates{d1==1} @*/ d1=1, /*@ predicates{d2==1} @*/ d2=1, /*@ predicates{d3==1} @*/ d3=1; + int /*@ predicates{c1!=0,c1==0} @*/ c1=__VERIFIER_nondet_bool(), /*@ predicates{c2!=0,c2==0} @*/ c2=__VERIFIER_nondet_bool(); + while(x1>0 && x2>0 && x3>0) + { + if(c1)x1=x1-d1; + else if(c2)x2=x2-d2; + else x3=x3-d3; + c1=__VERIFIER_nondet_bool(); + c2=__VERIFIER_nondet_bool(); + } + __VERIFIER_assert(x1==0 || x2==0 || x3==0); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex04_true-unreach-call_false-termination.i.annot.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex04_true-unreach-call_false-termination.i.annot.c new file mode 100644 index 000000000..ce93b142f --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex04_true-unreach-call_false-termination.i.annot.c @@ -0,0 +1,41 @@ +# 1 "/tmp/tmp.6E3V4HoYk8.c" +# 1 "" +# 1 "" +# 1 "/usr/include/stdc-predef.h" 1 3 4 +# 1 "" 2 +# 1 "/tmp/tmp.6E3V4HoYk8.c" +extern void __VERIFIER_error(); +extern void __VERIFIER_assume(int cond); +void __VERIFIER_assert(int /*@ predicates{cond!=0} predicates_tpl{0==0} @*/ cond){ + if(!(cond)){ + ERROR: __VERIFIER_error(); + } + return; +} +extern int __VERIFIER_nondet_bool(); +extern int __VERIFIER_nondet_int(); +void foo() +{ + int y=0; + int /*@ predicates{c1!=0,c1==0} @*/ c1=__VERIFIER_nondet_bool(), /*@ predicates{c2!=0,c2==0} @*/ c2=__VERIFIER_nondet_bool(); + if(c1)y++; + if(c2)y--; + else y+=10; +} +int main() +{ + int d = 1; + int /*@ predicates{(x>=(-1000000)),x<=0,x<=1000000,x>0} @*/ x = __VERIFIER_nondet_int(); + __VERIFIER_assume(x <= 1000000 && x >= -1000000); + int /*@ predicates{c1!=0,c1==0} @*/ c1=__VERIFIER_nondet_bool(), /*@ predicates{c2!=0,c2==0} @*/ c2=__VERIFIER_nondet_bool(); + if(c1)d = d - 1; + if(c2)foo(); + c1=__VERIFIER_nondet_bool(), c2=__VERIFIER_nondet_bool(); + if(c1)foo(); + if(c2)d = d - 1; + while(x>0) + { + x=x-d; + } + __VERIFIER_assert(x<=0); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/while_infinite_loop_1_true-unreach-call_false-termination.i.annot.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/while_infinite_loop_1_true-unreach-call_false-termination.i.annot.c new file mode 100644 index 000000000..e17b9cfca --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/while_infinite_loop_1_true-unreach-call_false-termination.i.annot.c @@ -0,0 +1,25 @@ +# 1 "/tmp/tmp.6E3V4HoYk8.c" +# 1 "" +# 1 "" +# 1 "/usr/include/stdc-predef.h" 1 3 4 +# 1 "" 2 +# 1 "/tmp/tmp.6E3V4HoYk8.c" +extern void __VERIFIER_error(); + +void __VERIFIER_assert(int /*@ predicates{cond!=0} predicates_tpl{0==0} @*/ cond){ + if(!(cond)){ + ERROR: __VERIFIER_error(); + } + return; +} + +int main(){ + int /*@ predicates{x!=0,x==0} @*/ x=0; + + while(1) + { + __VERIFIER_assert(x==0); + } + + __VERIFIER_assert(x!=0); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/while_infinite_loop_2_true-unreach-call_false-termination.i.annot.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/while_infinite_loop_2_true-unreach-call_false-termination.i.annot.c new file mode 100644 index 000000000..70f7f72af --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/while_infinite_loop_2_true-unreach-call_false-termination.i.annot.c @@ -0,0 +1,24 @@ +# 1 "/tmp/tmp.6E3V4HoYk8.c" +# 1 "" +# 1 "" +# 1 "/usr/include/stdc-predef.h" 1 3 4 +# 1 "" 2 +# 1 "/tmp/tmp.6E3V4HoYk8.c" +extern void __VERIFIER_error(); + +void __VERIFIER_assert(int /*@ predicates{cond!=0} predicates_tpl{0==0} @*/ cond){ + if(!(cond)){ + ERROR: __VERIFIER_error(); + } + return; +} +int main(){ + int /*@ predicates{x==0} @*/ x=0; + + while(1) + { + __VERIFIER_assert(x==0); + } + + __VERIFIER_assert(x==0); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/while_infinite_loop_3_true-unreach-call_false-termination.i.annot.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/while_infinite_loop_3_true-unreach-call_false-termination.i.annot.c new file mode 100644 index 000000000..c8d6022c7 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/while_infinite_loop_3_true-unreach-call_false-termination.i.annot.c @@ -0,0 +1,39 @@ +# 1 "/tmp/tmp.6E3V4HoYk8.c" +# 1 "" +# 1 "" +# 1 "/usr/include/stdc-predef.h" 1 3 4 +# 1 "" 2 +# 1 "/tmp/tmp.6E3V4HoYk8.c" +extern void __VERIFIER_error(); + +void __VERIFIER_assert(int /*@ predicates{cond!=0} predicates_tpl{0==0} @*/ cond){ + if(!(cond)){ + ERROR: __VERIFIER_error(); + } + return; +} + +//int /*@ predicates{x!=0,x==0} @*/ x=0; + +int eval(int x) +{ + while(1){ + x=0; + break; + } + return x; +} + + +int main(){ + int x = 0; + while(1) + { + x = eval(x); + __VERIFIER_assert(x==0); + } + + __VERIFIER_assert(x!=0); + + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/while_infinite_loop_4_false-unreach-call_true-termination.i.annot.c b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/while_infinite_loop_4_false-unreach-call_true-termination.i.annot.c new file mode 100644 index 000000000..3f4c646e2 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/while_infinite_loop_4_false-unreach-call_true-termination.i.annot.c @@ -0,0 +1,39 @@ +# 1 "/tmp/tmp.6E3V4HoYk8.c" +# 1 "" +# 1 "" +# 1 "/usr/include/stdc-predef.h" 1 3 4 +# 1 "" 2 +# 1 "/tmp/tmp.6E3V4HoYk8.c" +extern void __VERIFIER_error(); + +void __VERIFIER_assert(int /*@ predicates{cond!=0} predicates_tpl{0==0} @*/ cond){ + if(!(cond)){ + ERROR: __VERIFIER_error(); + } + return; +} + +//int /*@ predicates{x==0,x==1} @*/ x=0; + +int eval(int x) +{ + while(1){ + x=1; + break; + } + return x; +} + + +int main(){ + int x = 0; + while(1) + { + x = eval(x); + __VERIFIER_assert(x==0); + } + + __VERIFIER_assert(x==0); + + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/.DS_Store b/data/benchmarks/LinearArbitrary-SeaHorn/pie/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..3152786742b80a63e5bee9ab20daacd1c22bc566 GIT binary patch literal 10244 zcmeHMYitx%6h3ELV3&?`w!GRcqzhFFQew9O8X%EvyG1G`RJTv4EW0}+oj9FYcV=6( zsa8!i!ADeLA~8l$1VW4te8mU;(4a;WHG!Zt{-|P1{3Aw0ZUo#2%!CLKXS3uj64K4x2)Ge&Ban*#TOWdSF&TE`u#kM|pp0(; zNEVWsCo0RVKr-maup@_sBnu@Jt|WykI$I1B?xYVo?ZS>67E-taI-3u4?u^b31^L~n z{~&J;7#7ma-3Yi5m>2=JcQ1rqFhPfS{{B6Y(lyJjsTn~}LE)^~bG*K}MeHa0=iUfm5q zT}^ecF0^iFNIu~8make@zr8y(wEwy155I8a=&=t^i5Q@>j==nJG5IJzAc~dL6Z8nI zaV|>w-cU4Y_N9d5)`BrMtG`v8fOrmMBlt~T1f{D2jghALTcns=!k%bH%GON7>QK`b z$(UShQD~c!rr|tsXVTO&eTEg2{mHnV%;<4jt=ILacBe|ZVk?<8b-mTJG}cXbm#yxz znQelpYo}$V?MB{Nmqz`IR&vHtZ&s;OtzV5$*OrXFc_Ot$Gu9+0#c7cU2ZoO=BLPS zc!gzYSs<{BSsK$S<%-wK9hNN*NNpC4U5+~qS5!$-+iipj*>XBvT`dLL^>{+nWyL4l zYC=+=vtNWy-sULRt(O8_G(~+hXv>e)j(X#!Kwvk!b4%Q^ccfH;Tlo&5os-jT8Kak?13~4!o%<+9D>*3O?V4F zfY0D8d<#Fq&+r@k0e`|@h&T^r^kWH@V->E%RalF4xB)lfCX8S+Zo?Mbjvd&8yD^4) zP{Z5NLK`!97e0Xd@j-kDpTNU-1drk|d=*dNYj_gh$B*$#9Kr9!usm68Z_SQaNIXaK z0*tMG=djLmaB`?t+_1H|_{JFw)scAupbHl*b`aZ`n|6-Je4KG`3G{GOWl=K@5o17m zhG1O2WT{lqPB2vWO@)1VjsO{Jy==K8$sk??R$oz7Q6YN>{a)VL>gozfF5nnvR)TMZ zJd2~5RSCF~T*&dxsv9?vbvB1Jt8NZcS6&WTRxPTkkZ1**K2Se})9^L?06)Qb_#OVi zA}qya1kW`D&COU(z-+=TxC3v(Hf$$w#xRaaR8U0&Q<&xe9m2cu9=sRtBY-}FkK$wa zI6j3><1_dy9>U}JBEEz#<16?!zJu@Ldw2>z$FFcy05b>J7E#aU_#KsUfbBCQ5hY_M z0nXMY4)Qj6Hf2g%syA=F_KY&eoL_%5ZRn=4mvro`u2iFqyg=*I`8VuF0 zt(`6pI^oE&Ad8%%%I84b^~L>pmWyJ*MVAu;N(-b#S(+Qa1mrQJ&+j?u}1_E=(_$|5`Ch40x&e&w*<` z`<*D@?`6(%f&0c<@|h2nQRd|MjN?7tots@@5fCVXAUpqWn)?6$D=aGRa@LDj{6|G4}AnSKubANK$M0&fL?$N&HU literal 0 HcmV?d00001 diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/.DS_Store b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..ecda7acc8bb917430e77470a3ff55cadf3af5eee GIT binary patch literal 8196 zcmeHMYiJx*6h3F0v@^}v+@!B$v!&Zssgb2k(wC)Zx7n>}X-lJoW~0J}?CCqN4TNOW?^8mOA4a63P1O32sDBZ(9bFbsK6p$G@TsqqdJ z0RjO60RjO60RjO6mjVK`X7eJ=udS*;PXS2PA=oV92e4?I;irt03_>3 z?G$|-ga=!c@e#Xu2G_9%BJ8TaM5kRlvVgai6_Mt_Hb-rXrK z>bV2Pg$(KdfdGM81o+;4E@VLm3v$)__w0yM$eMPR?7wFVrs2399p^DLtFC_b97&$r zzz^0m_vX~FJ(6-&x8!uI#l7B@q3Kz_-K)C8m3E(Po0DxdJ7DM|8MYu{TdrzYda){W zU)r!Vd!*YgS(>viCGw>W%^l9Lg}p_+OrgE1r4Ja6ku^-iy+e}ukzp;Pqg@@bXy^K_ zu~>Apvtz^BSad_@y0J0#m?X8euiLU~s4({6bI-r<;!7_d|Kyaw1N}J#=1;-r)0x20 zoSd1Z?r{HU(K8QprgC<^;3ceIG&-Z7Q|=WghaRY)e4z?u<%)13nV7#-$*^YL>)i#{ zuq|gmFFGVMtkEI(x94ojM8wKo?oO`skF z@8#y!aCnI8w`iKKNs_d}8)~Xn#IF|374Z(ykZEmO0$q@Vov@#N9UFzia1@Tg8}Jsq z4Ijf7a2CFS@8Adc34VcJ;WtDKVI9_EGqzy_mtZ?~;Tl|r>v0n%aVz%VHr#~+n8qR8 zgZt6I+t9>3mhdjT8}G&Y@F9F0pTMK|Bp%1t@jZMWKfn+1G@ilp;-Nwn()Wn#N{tt& zH9e=DvOgn)j!e(hNYA#O#_g9dSI^HA3|+Wru}|5=ZdtZmQ5c9f!HZrQX_x3tV4(?qsl+0yIM3NE z?=s@?SCd)2uo81Q=UJVwZc>P`J7hLnT*f2aoWM*H&MPAg^1oo}=kOJrgKyz`_z`}F zKd=E?a2auPHEzVs7{>&0^9J0FH)0?56FW1+%q-?mM+DeC1TpGHvSs+4);m2QJujnAOY1q_TRcz=8YuckQID zssmDt3>VubAG*d?{h*jWBO+_+Swhpo_y1dG{{6ouE>Hvr1PEL{2w+_@mF%YeR6Yr& zc8$+TQ9Ae2$qV-z7t#x%io0;Vw;d-r`G+C3qrNTf%W)yeLghdIA%K6O2J1hE{-1uS L2J8Q2wEq7ExckC% literal 0 HcmV?d00001 diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/MSPL.txt b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/MSPL.txt new file mode 100644 index 000000000..405edc58f --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/MSPL.txt @@ -0,0 +1,48 @@ +Microsoft Public License (Ms-PL) +Microsoft Public License (Ms-PL) + +This license governs use of the accompanying software. If you use the software, you accept this license. +If you do not accept the license, do not use the software. + +1. Definitions + +The terms "reproduce," "reproduction," "derivative works," and "distribution" have the same meaning here as under +U.S. copyright law. + +A "contribution" is the original software, or any additions or changes to the software. + +A "contributor" is any person that distributes its contribution under this license. + +"Licensed patents" are a contributor's patent claims that read directly on its contribution. + +2. Grant of Rights + +(A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in +section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce +its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative +works that you create. + +(B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in +section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents +to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software +or derivative works of the contribution in the software. + +3. Conditions and Limitations + +(A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks. + +(B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, +your patent license from such contributor to the software ends automatically. + +(C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution +notices that are present in the software. + +(D) If you distribute any portion of the software in source code form, you may do so only under this license by +including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled +or object code form, you may only do so under a license that complies with this license. + +(E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees +or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent +permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular +purpose and non-infringement. + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/README.txt b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/README.txt new file mode 100644 index 000000000..0ca1b0d1e --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/README.txt @@ -0,0 +1,28 @@ +Before you extract the zip archive you need to unblock it. + > Right click on the .zip file, click "Properties" and in the General tab, "Unblock" it for usage on your machine. + +1. Command to learn invariant for a Boogie program using decision tree algorithms: + > .\Boogie.exe /nologo /noinfer /contractInfer /mlHoudini:dt_penalty /printAssignment /trace <> + + a) The flag /mlHoudini enables decision tree learning.It can be run in 3 modes:dt_simple, dt_entropy and dt_penalty + b) The flag /printAssignment prints out the learnt invariant at the end of the analysis. + c) The flag /trace prints the statistics and other useful information pertaining to learning. +IMPORTANT: Please give the above flags in the same order as specified. + Also, please run the tool from directory "tool" which has the Boogie and C5 binaries local to it. + +2. The directory ".\c5 sample data" contains data files on which the C5 learners can be run as is in a passive setting. + The .data and .names file follow the normal C5 input format. The .implications file contains the implication constraints. + An entry "x y" in .implications file indicates that there is an implication from the xth sample point in .data file + to the yth sample point in the .data file. + For example, the sum1.implications file indicates that there are 2 implications-- <1,2,2> ==> <2,3,2> and + <1,0,1> ==> <2,1,1> + The command for running c5_penalty (accordingly c5_simple and c5_entropy) is: + > .\c5.0.dt_penalty -I 1 -m 1 -f "c5 sample data\sum1" + +3. The boogie and c5 binaries have been tested only on Windows x86 platform. + +4. If you are getting VCOMP100.dll not found error when Boogie tries to run Z3, + then install Microsoft Visual C++ 2010 Redistributable Package (x86) from + http://www.microsoft.com/downloads/en/details.aspx?FamilyID=a7b7a05e-6de6-4d3a-a423-37bf0912db84 + +The accompanying License file is at .\MSPL.txt diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/.DS_Store b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..c0bc5d1e9478f9d61335556d40741052b6863f2b GIT binary patch literal 6148 zcmeHK&x_MQ6n?W?-E8*~S!D$;a}|1MDNC=hTaQ8^vWvJ>IN2N;@f`_6qFUal zOn#ST&9+R<4kA%~2w=b=g#ePZ*0#bbU={e=6p(9oAJ=Py4};b9OCf_CSMvyc023&} zS&@Ya50UXb%o0|JX7e-I+OFNWx#R5C_vGW=sz39`eCCTlOp9)iKUHrmibE6k12JC4 zk2z0%#zA<@;@QBxeZ*4{ur$tBsHZ0^jrgp~r)gB2`ntap7K!n|z0=R*Go%7|XkaV?9;Pfp{9Nw+dJVt}C#uUtM|rKm7gu|2oOOSp}>D|CIuy*7JK^oRT?P*Cr>= wT8ia47HP6wsZmkTnd4Xm@+iKGMHzmhGC=eUmKw1J&HfQkGFWF7*r) 0) + { + assert (0 <= m && m < N); + } +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/cegar2_v6.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/cegar2_v6.bpl new file mode 100644 index 000000000..a4ed53362 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/cegar2_v6.bpl @@ -0,0 +1,31 @@ +function {:existential true} b0(x:int, m:int, N:int, v1: int, v2: int, v3: int): bool; + +var N: int; + + +procedure {:entrypoint} main() +{ + var x, m: int; + var v1, v2, v3: int; + x := 0; + m := 0; + + while (x < N) + invariant b0(x, m, N, v1, v2, v3); + { + if (*) + { + m := x; + } + x := x + 1; + havoc v1; + havoc v2; + havoc v3; + } + //assert (N <= 0 || (0 <= m && m < N)); + if (N > 0) + { + assert (0 <= m && m < N); + } +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/cegar2_v9.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/cegar2_v9.bpl new file mode 100644 index 000000000..40fb3500c --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/cegar2_v9.bpl @@ -0,0 +1,34 @@ +function {:existential true} b0(x:int, m:int, N:int, v1: int, v2: int, v3: int, v4: int, v5: int, v6: int): bool; + +var N: int; + + +procedure {:entrypoint} main() +{ + var x, m: int; + var v1, v2, v3, v4, v5, v6: int; + x := 0; + m := 0; + + while (x < N) + invariant b0(x, m, N, v1, v2, v3, v4, v5, v6); + { + if (*) + { + m := x; + } + x := x + 1; + havoc v1; + havoc v2; + havoc v3; + havoc v4; + havoc v5; + havoc v6; + } + //assert (N <= 0 || (0 <= m && m < N)); + if (N > 0) + { + assert (0 <= m && m < N); + } +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/fig1_vars6.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/fig1_vars6.bpl new file mode 100644 index 000000000..b03964b0e --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/fig1_vars6.bpl @@ -0,0 +1,27 @@ +function {:existential true} b0(x:int, y:int, v1: int, v2: int, v3: int, v4: int, v5: int, v6: int): bool; + +var y: int; + + +procedure main() +modifies y; +{ + var x: int; + var v1, v2, v3, v4, v5, v6: int; + + x := -1; + while (x < 0) + invariant b0(x, y, v1, v2, v3, v4, v5, v6); + { + x := x + y; + y := y + 1; + havoc v1; + havoc v2; + havoc v3; + havoc v4; + havoc v5; + havoc v6; + } + assert y > 0; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/fig1_vars9.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/fig1_vars9.bpl new file mode 100644 index 000000000..f971f945f --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/fig1_vars9.bpl @@ -0,0 +1,30 @@ +function {:existential true} b0(x:int, y:int, v1: int, v2: int, v3: int, v4: int, v5: int, v6: int, v7: int, v8: int, v9: int): bool; + +var y: int; + + +procedure main() +modifies y; +{ + var x: int; + var v1, v2, v3, v4, v5, v6, v7, v8, v9: int; + + x := -1; + while (x < 0) + invariant b0(x, y, v1, v2, v3, v4, v5, v6, v7, v8, v9); + { + x := x + y; + y := y + 1; + havoc v1; + havoc v2; + havoc v3; + havoc v4; + havoc v5; + havoc v6; + havoc v7; + havoc v8; + havoc v9; + } + assert y > 0; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/trex03_v12.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/trex03_v12.bpl new file mode 100644 index 000000000..0479e71c5 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/trex03_v12.bpl @@ -0,0 +1,609 @@ +procedure boogie_si_record_int(i: int); + +function {:existential true} b0(x1:int,x2:int,x3:int, v1: int, v2: int, v3: int, v4: int, v5: int, v6: int, v7: int, v8: int, v9: int, v10: int, v11: int, v12: int): bool; + + +function $add(p1: int, p2: int) : int; + +axiom (forall p1: int, p2: int :: { $add(p1, p2): int } $add(p1, p2): int == p1 + p2); + +function $sub(p1: int, p2: int) : int; + +axiom (forall p1: int, p2: int :: { $sub(p1, p2): int } $sub(p1, p2): int == p1 - p2); + +function $mul(p1: int, p2: int) : int; + +axiom (forall p1: int, p2: int :: { $mul(p1, p2): int } $mul(p1, p2): int == p1 * p2); + +function $sdiv(p1: int, p2: int) : int; + +function $udiv(p1: int, p2: int) : int; + +function $srem(p1: int, p2: int) : int; + +function $urem(p1: int, p2: int) : int; + +function $and(p1: int, p2: int) : int; + +axiom $and(0, 0) == 0; + +axiom $and(0, 1) == 0; + +axiom $and(1, 0) == 0; + +axiom $and(1, 1) == 1; + +function $or(p1: int, p2: int) : int; + +axiom $or(0, 0) == 0; + +axiom $or(0, 1) == 1; + +axiom $or(1, 0) == 1; + +axiom $or(1, 1) == 1; + +function $xor(p1: int, p2: int) : int; + +axiom $xor(0, 0) == 0; + +axiom $xor(0, 1) == 1; + +axiom $xor(1, 0) == 1; + +axiom $xor(1, 1) == 0; + +function $lshr(p1: int, p2: int) : int; + +function $ashr(p1: int, p2: int) : int; + +function $shl(p1: int, p2: int) : int; + +function $ult(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $ult(p1, p2): bool } $ult(p1, p2): bool == (p1 < p2)); + +function $ugt(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $ugt(p1, p2): bool } $ugt(p1, p2): bool == (p1 > p2)); + +function $ule(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $ule(p1, p2): bool } $ule(p1, p2): bool == (p1 <= p2)); + +function $uge(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $uge(p1, p2): bool } $uge(p1, p2): bool == (p1 >= p2)); + +function $slt(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $slt(p1, p2): bool } $slt(p1, p2): bool == (p1 < p2)); + +function $sgt(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $sgt(p1, p2): bool } $sgt(p1, p2): bool == (p1 > p2)); + +function $sle(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $sle(p1, p2): bool } $sle(p1, p2): bool == (p1 <= p2)); + +function $sge(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $sge(p1, p2): bool } $sge(p1, p2): bool == (p1 >= p2)); + +function $nand(p1: int, p2: int) : int; + +function $max(p1: int, p2: int) : int; + +function $min(p1: int, p2: int) : int; + +function $umax(p1: int, p2: int) : int; + +function $umin(p1: int, p2: int) : int; + +function $i2b(i: int) : bool; + +axiom (forall i: int :: $i2b(i) <==> i != 0); + +axiom $i2b(0) == false; + +function $b2i(b: bool) : int; + +axiom $b2i(true) == 1; + +axiom $b2i(false) == 0; + +type float; + +function $fp(a: int) : float; + +const $ffalse: float; + +const $ftrue: float; + +function $fadd(f1: float, f2: float) : float; + +function $fsub(f1: float, f2: float) : float; + +function $fmul(f1: float, f2: float) : float; + +function $fdiv(f1: float, f2: float) : float; + +function $frem(f1: float, f2: float) : float; + +function $foeq(f1: float, f2: float) : bool; + +function $foge(f1: float, f2: float) : bool; + +function $fogt(f1: float, f2: float) : bool; + +function $fole(f1: float, f2: float) : bool; + +function $folt(f1: float, f2: float) : bool; + +function $fone(f1: float, f2: float) : bool; + +function $ford(f1: float, f2: float) : bool; + +function $fueq(f1: float, f2: float) : bool; + +function $fuge(f1: float, f2: float) : bool; + +function $fugt(f1: float, f2: float) : bool; + +function $fule(f1: float, f2: float) : bool; + +function $fult(f1: float, f2: float) : bool; + +function $fune(f1: float, f2: float) : bool; + +function $funo(f1: float, f2: float) : bool; + +function $fp2si(f: float) : int; + +function $fp2ui(f: float) : int; + +function $si2fp(i: int) : float; + +function $ui2fp(i: int) : float; + +function $ptr(obj: int, off: int) : int; + +axiom (forall obj: int, off: int :: { $ptr(obj, off): int } $ptr(obj, off): int == obj + off); + +function $size(int) : int; + +function $obj(int) : int; + +function $off(ptr: int) : int; + +axiom (forall ptr: int :: { $off(ptr): int } $off(ptr): int == ptr); + +var alloc: [int]bool; + +var $CurrAddr: int; + +const unique $NULL: int; + +const $UNDEF: int; + +function $pa(pointer: int, index: int, size: int) : int; + +function $trunc(p: int) : int; + +function $p2i(p: int) : int; + +function $i2p(p: int) : int; + +function $p2b(p: int) : bool; + +function $b2p(b: bool) : int; + +axiom (forall p: int, i: int, s: int :: { $pa(p, i, s) } $pa(p, i, s) == p + i * s); + +axiom (forall p: int :: $trunc(p) == p); + +axiom $b2p(true) == 1; + +axiom $b2p(false) == 0; + +axiom (forall i: int :: $p2b(i) <==> i != 0); + +axiom $p2b(0) == false; + +axiom (forall i: int :: $p2i(i) == i); + +axiom (forall i: int :: $i2p(i) == i); + +procedure __SMACK_nondet() returns (p: int); + + + +procedure __SMACK_nondetInt() returns (p: int); + + + +procedure $malloc(obj_size: int) returns (new: int); + requires obj_size > 0; + modifies $CurrAddr, alloc; + ensures 0 < old($CurrAddr); + ensures new == old($CurrAddr); + ensures $CurrAddr > old($CurrAddr) + obj_size; + ensures $size(new) == obj_size; + ensures (forall x: int :: new <= x && x < new + obj_size ==> $obj(x) == new); + ensures alloc[new]; + ensures (forall x: int :: { alloc[x] } x == new || old(alloc)[x] == alloc[x]); + + + +procedure $free(pointer: int); + modifies alloc; + + + +procedure $alloca(obj_size: int) returns (new: int); + requires obj_size > 0; + modifies $CurrAddr, alloc; + ensures 0 < old($CurrAddr); + ensures new == old($CurrAddr); + ensures $CurrAddr > old($CurrAddr) + obj_size; + ensures $size(new) == obj_size; + ensures (forall x: int :: new <= x && x < new + obj_size ==> $obj(x) == new); + ensures alloc[new]; + ensures (forall x: int :: { alloc[x] } x == new || old(alloc)[x] == alloc[x]); + + + +const unique __VERIFIER_assert: int; + +const unique main: int; + +const unique __VERIFIER_nondet_uint: int; + +const unique __VERIFIER_nondet_bool: int; + +procedure __VERIFIER_assert(cond: int); + modifies alloc, $CurrAddr; + + + +implementation __VERIFIER_assert(cond: int) +{ + var $b: bool; + + $bb0: + assert {:sourcefile "trex03_safe.c"} {:sourceline 1} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 2} true; + $b := cond != 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 2} true; + goto $bb3, $bb4; + + $bb1: + assert {:sourcefile "trex03_safe.c"} {:sourceline 5} true; + return; + + $bb2: + assert {:sourcefile "trex03_safe.c"} {:sourceline 2} true; + goto $bb5; + + $bb3: + assert {:sourcefile "trex03_safe.c"} {:sourceline 2} true; + assume $b; + goto $bb1; + + $bb4: + assert {:sourcefile "trex03_safe.c"} {:sourceline 2} true; + assume !$b; + goto $bb2; + + $bb5: + assert {:sourcefile "trex03_safe.c"} {:sourceline 3} true; + goto $bb5; +} + + + +procedure main() returns ($r: int); + modifies alloc, $CurrAddr; + + + +implementation main() returns ($r: int) +{ + var $p: int; + var $p1: int; + var $p2: int; + var $b: bool; + var $p3: int; + var $b4: bool; + var $p5: int; + var $p6: int; + var $p7: int; + var $p8: int; + var $p9: int; + var $p10: int; + var $b11: bool; + var $b12: bool; + var $b13: bool; + var $b14: bool; + var $b15: bool; + var $b16: bool; + var $p17: int; + var $b18: bool; + var $b19: bool; + var $p20: int; + var $p21: int; + var $p22: int; + var $p23: int; + var $p24: int; + var $p25: int; + var $b26: bool; + var $p27: int; + var $b28: bool; + var $p29: int; + var $p30: int; + var $p31: int; + var $b32: bool; + var $b33: bool; + var v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12: int; + + $bb0: + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + havoc $p; + assume $p > 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + havoc $p1; + assume $p1 > 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + havoc $p2; + assume $p2 > 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 13} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 13} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 13} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + havoc $b; + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + $p3 := $b2p($b); + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + havoc $b4; + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + $p5 := $b2p($b4); + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $p6 := $p3; + $p7 := $p2; + $p8 := $p1; + $p9 := $p; + $p10 := $p5; + goto $bb1; + + $bb1: + assert b0($p9,$p8,$p7,v1,v2,v3, v4, v5, v6, v7, v8, v9, v10, v11, v12); + + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $b11 := $ugt($p9, 0); + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $b12 := false; + goto $bb4, $bb5; + + $bb2: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $b32 := $ugt($p8, 0); + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $b12 := false; + goto $bb28, $bb29; + + $bb3: + goto $bb8, $bb9; + + $bb4: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + assume $b11; + goto $bb2; + + $bb5: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + assume !$b11; + goto $bb3; + + $bb6: + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + $b18 := $i2b($p6); + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + goto $bb19, $bb20; + + $bb7: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b13 := $p9 == 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b14 := true; + goto $bb12, $bb13; + + $bb8: + assume $b12; + goto $bb6; + + $bb9: + assume !$b12; + goto $bb7; + + $bb10: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $p17 := $b2p($b14); + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + assert $p17 == 1; + assert {:sourcefile "trex03_safe.c"} {:sourceline 26} true; + $r := 0; + return; + + $bb11: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b15 := $p8 == 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b14 := true; + goto $bb15, $bb16; + + $bb12: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + assume $b13; + goto $bb10; + + $bb13: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + assume !$b13; + goto $bb11; + + $bb14: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b16 := $p7 == 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b14 := $b16; + goto $bb10; + + $bb15: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + assume $b15; + goto $bb10; + + $bb16: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + assume !$b15; + goto $bb14; + + $bb17: + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + $p31 := $sub($p9, 1); + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + $p23 := $p7; + $p24 := $p8; + $p25 := $p31; + goto $bb26; + + $bb18: + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + $b19 := $i2b($p10); + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + goto $bb23, $bb24; + + $bb19: + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + assume $b18; + goto $bb17; + + $bb20: + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + assume !$b18; + goto $bb18; + + $bb21: + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + $p30 := $sub($p8, 1); + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + $p21 := $p7; + $p22 := $p30; + goto $bb25; + + $bb22: + assert {:sourcefile "trex03_safe.c"} {:sourceline 20} true; + $p20 := $sub($p7, 1); + assert {:sourcefile "trex03_safe.c"} {:sourceline 20} true; + assume true; + $p21 := $p20; + $p22 := $p8; + goto $bb25; + + $bb23: + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + assume $b19; + goto $bb21; + + $bb24: + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + assume !$b19; + goto $bb22; + + $bb25: + $p23 := $p21; + $p24 := $p22; + $p25 := $p9; + goto $bb26; + + $bb26: + assert {:sourcefile "trex03_safe.c"} {:sourceline 21} true; + havoc $b26; + assert {:sourcefile "trex03_safe.c"} {:sourceline 21} true; + $p27 := $b2p($b26); + assert {:sourcefile "trex03_safe.c"} {:sourceline 21} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 22} true; + havoc $b28; + assert {:sourcefile "trex03_safe.c"} {:sourceline 22} true; + $p29 := $b2p($b28); + havoc v1; + havoc v2; + havoc v3; + havoc v4; + havoc v5; + havoc v6; + havoc v7; + havoc v8; + havoc v9; + havoc v10; + havoc v11; + havoc v12; + + assert {:sourcefile "trex03_safe.c"} {:sourceline 22} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 23} true; + $p6 := $p27; + $p7 := $p23; + $p8 := $p24; + $p9 := $p25; + $p10 := $p29; + goto $bb1; + + $bb27: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $b33 := $ugt($p7, 0); + $b12 := $b33; + goto $bb3; + + $bb28: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + assume $b32; + goto $bb27; + + $bb29: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + assume !$b32; + goto $bb3; +} + + + +procedure __VERIFIER_nondet_uint() returns ($r: int); + modifies alloc, $CurrAddr; + + + +procedure __VERIFIER_nondet_bool() returns ($r: bool); + modifies alloc, $CurrAddr; + + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/trex03_v3.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/trex03_v3.bpl new file mode 100644 index 000000000..79102ed1f --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/trex03_v3.bpl @@ -0,0 +1,600 @@ +procedure boogie_si_record_int(i: int); + +function {:existential true} b0(x1:int,x2:int,x3:int, v1: int, v2: int, v3: int): bool; + + +function $add(p1: int, p2: int) : int; + +axiom (forall p1: int, p2: int :: { $add(p1, p2): int } $add(p1, p2): int == p1 + p2); + +function $sub(p1: int, p2: int) : int; + +axiom (forall p1: int, p2: int :: { $sub(p1, p2): int } $sub(p1, p2): int == p1 - p2); + +function $mul(p1: int, p2: int) : int; + +axiom (forall p1: int, p2: int :: { $mul(p1, p2): int } $mul(p1, p2): int == p1 * p2); + +function $sdiv(p1: int, p2: int) : int; + +function $udiv(p1: int, p2: int) : int; + +function $srem(p1: int, p2: int) : int; + +function $urem(p1: int, p2: int) : int; + +function $and(p1: int, p2: int) : int; + +axiom $and(0, 0) == 0; + +axiom $and(0, 1) == 0; + +axiom $and(1, 0) == 0; + +axiom $and(1, 1) == 1; + +function $or(p1: int, p2: int) : int; + +axiom $or(0, 0) == 0; + +axiom $or(0, 1) == 1; + +axiom $or(1, 0) == 1; + +axiom $or(1, 1) == 1; + +function $xor(p1: int, p2: int) : int; + +axiom $xor(0, 0) == 0; + +axiom $xor(0, 1) == 1; + +axiom $xor(1, 0) == 1; + +axiom $xor(1, 1) == 0; + +function $lshr(p1: int, p2: int) : int; + +function $ashr(p1: int, p2: int) : int; + +function $shl(p1: int, p2: int) : int; + +function $ult(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $ult(p1, p2): bool } $ult(p1, p2): bool == (p1 < p2)); + +function $ugt(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $ugt(p1, p2): bool } $ugt(p1, p2): bool == (p1 > p2)); + +function $ule(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $ule(p1, p2): bool } $ule(p1, p2): bool == (p1 <= p2)); + +function $uge(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $uge(p1, p2): bool } $uge(p1, p2): bool == (p1 >= p2)); + +function $slt(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $slt(p1, p2): bool } $slt(p1, p2): bool == (p1 < p2)); + +function $sgt(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $sgt(p1, p2): bool } $sgt(p1, p2): bool == (p1 > p2)); + +function $sle(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $sle(p1, p2): bool } $sle(p1, p2): bool == (p1 <= p2)); + +function $sge(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $sge(p1, p2): bool } $sge(p1, p2): bool == (p1 >= p2)); + +function $nand(p1: int, p2: int) : int; + +function $max(p1: int, p2: int) : int; + +function $min(p1: int, p2: int) : int; + +function $umax(p1: int, p2: int) : int; + +function $umin(p1: int, p2: int) : int; + +function $i2b(i: int) : bool; + +axiom (forall i: int :: $i2b(i) <==> i != 0); + +axiom $i2b(0) == false; + +function $b2i(b: bool) : int; + +axiom $b2i(true) == 1; + +axiom $b2i(false) == 0; + +type float; + +function $fp(a: int) : float; + +const $ffalse: float; + +const $ftrue: float; + +function $fadd(f1: float, f2: float) : float; + +function $fsub(f1: float, f2: float) : float; + +function $fmul(f1: float, f2: float) : float; + +function $fdiv(f1: float, f2: float) : float; + +function $frem(f1: float, f2: float) : float; + +function $foeq(f1: float, f2: float) : bool; + +function $foge(f1: float, f2: float) : bool; + +function $fogt(f1: float, f2: float) : bool; + +function $fole(f1: float, f2: float) : bool; + +function $folt(f1: float, f2: float) : bool; + +function $fone(f1: float, f2: float) : bool; + +function $ford(f1: float, f2: float) : bool; + +function $fueq(f1: float, f2: float) : bool; + +function $fuge(f1: float, f2: float) : bool; + +function $fugt(f1: float, f2: float) : bool; + +function $fule(f1: float, f2: float) : bool; + +function $fult(f1: float, f2: float) : bool; + +function $fune(f1: float, f2: float) : bool; + +function $funo(f1: float, f2: float) : bool; + +function $fp2si(f: float) : int; + +function $fp2ui(f: float) : int; + +function $si2fp(i: int) : float; + +function $ui2fp(i: int) : float; + +function $ptr(obj: int, off: int) : int; + +axiom (forall obj: int, off: int :: { $ptr(obj, off): int } $ptr(obj, off): int == obj + off); + +function $size(int) : int; + +function $obj(int) : int; + +function $off(ptr: int) : int; + +axiom (forall ptr: int :: { $off(ptr): int } $off(ptr): int == ptr); + +var alloc: [int]bool; + +var $CurrAddr: int; + +const unique $NULL: int; + +const $UNDEF: int; + +function $pa(pointer: int, index: int, size: int) : int; + +function $trunc(p: int) : int; + +function $p2i(p: int) : int; + +function $i2p(p: int) : int; + +function $p2b(p: int) : bool; + +function $b2p(b: bool) : int; + +axiom (forall p: int, i: int, s: int :: { $pa(p, i, s) } $pa(p, i, s) == p + i * s); + +axiom (forall p: int :: $trunc(p) == p); + +axiom $b2p(true) == 1; + +axiom $b2p(false) == 0; + +axiom (forall i: int :: $p2b(i) <==> i != 0); + +axiom $p2b(0) == false; + +axiom (forall i: int :: $p2i(i) == i); + +axiom (forall i: int :: $i2p(i) == i); + +procedure __SMACK_nondet() returns (p: int); + + + +procedure __SMACK_nondetInt() returns (p: int); + + + +procedure $malloc(obj_size: int) returns (new: int); + requires obj_size > 0; + modifies $CurrAddr, alloc; + ensures 0 < old($CurrAddr); + ensures new == old($CurrAddr); + ensures $CurrAddr > old($CurrAddr) + obj_size; + ensures $size(new) == obj_size; + ensures (forall x: int :: new <= x && x < new + obj_size ==> $obj(x) == new); + ensures alloc[new]; + ensures (forall x: int :: { alloc[x] } x == new || old(alloc)[x] == alloc[x]); + + + +procedure $free(pointer: int); + modifies alloc; + + + +procedure $alloca(obj_size: int) returns (new: int); + requires obj_size > 0; + modifies $CurrAddr, alloc; + ensures 0 < old($CurrAddr); + ensures new == old($CurrAddr); + ensures $CurrAddr > old($CurrAddr) + obj_size; + ensures $size(new) == obj_size; + ensures (forall x: int :: new <= x && x < new + obj_size ==> $obj(x) == new); + ensures alloc[new]; + ensures (forall x: int :: { alloc[x] } x == new || old(alloc)[x] == alloc[x]); + + + +const unique __VERIFIER_assert: int; + +const unique main: int; + +const unique __VERIFIER_nondet_uint: int; + +const unique __VERIFIER_nondet_bool: int; + +procedure __VERIFIER_assert(cond: int); + modifies alloc, $CurrAddr; + + + +implementation __VERIFIER_assert(cond: int) +{ + var $b: bool; + + $bb0: + assert {:sourcefile "trex03_safe.c"} {:sourceline 1} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 2} true; + $b := cond != 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 2} true; + goto $bb3, $bb4; + + $bb1: + assert {:sourcefile "trex03_safe.c"} {:sourceline 5} true; + return; + + $bb2: + assert {:sourcefile "trex03_safe.c"} {:sourceline 2} true; + goto $bb5; + + $bb3: + assert {:sourcefile "trex03_safe.c"} {:sourceline 2} true; + assume $b; + goto $bb1; + + $bb4: + assert {:sourcefile "trex03_safe.c"} {:sourceline 2} true; + assume !$b; + goto $bb2; + + $bb5: + assert {:sourcefile "trex03_safe.c"} {:sourceline 3} true; + goto $bb5; +} + + + +procedure main() returns ($r: int); + modifies alloc, $CurrAddr; + + + +implementation main() returns ($r: int) +{ + var $p: int; + var $p1: int; + var $p2: int; + var $b: bool; + var $p3: int; + var $b4: bool; + var $p5: int; + var $p6: int; + var $p7: int; + var $p8: int; + var $p9: int; + var $p10: int; + var $b11: bool; + var $b12: bool; + var $b13: bool; + var $b14: bool; + var $b15: bool; + var $b16: bool; + var $p17: int; + var $b18: bool; + var $b19: bool; + var $p20: int; + var $p21: int; + var $p22: int; + var $p23: int; + var $p24: int; + var $p25: int; + var $b26: bool; + var $p27: int; + var $b28: bool; + var $p29: int; + var $p30: int; + var $p31: int; + var $b32: bool; + var $b33: bool; + var v1, v2, v3: int; + + $bb0: + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + havoc $p; + assume $p > 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + havoc $p1; + assume $p1 > 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + havoc $p2; + assume $p2 > 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 13} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 13} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 13} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + havoc $b; + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + $p3 := $b2p($b); + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + havoc $b4; + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + $p5 := $b2p($b4); + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $p6 := $p3; + $p7 := $p2; + $p8 := $p1; + $p9 := $p; + $p10 := $p5; + goto $bb1; + + $bb1: + assert b0($p9,$p8,$p7,v1,v2,v3); + + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $b11 := $ugt($p9, 0); + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $b12 := false; + goto $bb4, $bb5; + + $bb2: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $b32 := $ugt($p8, 0); + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $b12 := false; + goto $bb28, $bb29; + + $bb3: + goto $bb8, $bb9; + + $bb4: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + assume $b11; + goto $bb2; + + $bb5: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + assume !$b11; + goto $bb3; + + $bb6: + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + $b18 := $i2b($p6); + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + goto $bb19, $bb20; + + $bb7: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b13 := $p9 == 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b14 := true; + goto $bb12, $bb13; + + $bb8: + assume $b12; + goto $bb6; + + $bb9: + assume !$b12; + goto $bb7; + + $bb10: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $p17 := $b2p($b14); + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + assert $p17 == 1; + assert {:sourcefile "trex03_safe.c"} {:sourceline 26} true; + $r := 0; + return; + + $bb11: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b15 := $p8 == 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b14 := true; + goto $bb15, $bb16; + + $bb12: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + assume $b13; + goto $bb10; + + $bb13: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + assume !$b13; + goto $bb11; + + $bb14: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b16 := $p7 == 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b14 := $b16; + goto $bb10; + + $bb15: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + assume $b15; + goto $bb10; + + $bb16: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + assume !$b15; + goto $bb14; + + $bb17: + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + $p31 := $sub($p9, 1); + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + $p23 := $p7; + $p24 := $p8; + $p25 := $p31; + goto $bb26; + + $bb18: + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + $b19 := $i2b($p10); + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + goto $bb23, $bb24; + + $bb19: + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + assume $b18; + goto $bb17; + + $bb20: + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + assume !$b18; + goto $bb18; + + $bb21: + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + $p30 := $sub($p8, 1); + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + $p21 := $p7; + $p22 := $p30; + goto $bb25; + + $bb22: + assert {:sourcefile "trex03_safe.c"} {:sourceline 20} true; + $p20 := $sub($p7, 1); + assert {:sourcefile "trex03_safe.c"} {:sourceline 20} true; + assume true; + $p21 := $p20; + $p22 := $p8; + goto $bb25; + + $bb23: + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + assume $b19; + goto $bb21; + + $bb24: + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + assume !$b19; + goto $bb22; + + $bb25: + $p23 := $p21; + $p24 := $p22; + $p25 := $p9; + goto $bb26; + + $bb26: + assert {:sourcefile "trex03_safe.c"} {:sourceline 21} true; + havoc $b26; + assert {:sourcefile "trex03_safe.c"} {:sourceline 21} true; + $p27 := $b2p($b26); + assert {:sourcefile "trex03_safe.c"} {:sourceline 21} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 22} true; + havoc $b28; + assert {:sourcefile "trex03_safe.c"} {:sourceline 22} true; + $p29 := $b2p($b28); + havoc v1; + havoc v2; + havoc v3; + + assert {:sourcefile "trex03_safe.c"} {:sourceline 22} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 23} true; + $p6 := $p27; + $p7 := $p23; + $p8 := $p24; + $p9 := $p25; + $p10 := $p29; + goto $bb1; + + $bb27: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $b33 := $ugt($p7, 0); + $b12 := $b33; + goto $bb3; + + $bb28: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + assume $b32; + goto $bb27; + + $bb29: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + assume !$b32; + goto $bb3; +} + + + +procedure __VERIFIER_nondet_uint() returns ($r: int); + modifies alloc, $CurrAddr; + + + +procedure __VERIFIER_nondet_bool() returns ($r: bool); + modifies alloc, $CurrAddr; + + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/trex03_v6.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/trex03_v6.bpl new file mode 100644 index 000000000..b9971aa35 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/trex03_v6.bpl @@ -0,0 +1,603 @@ +procedure boogie_si_record_int(i: int); + +function {:existential true} b0(x1:int,x2:int,x3:int, v1: int, v2: int, v3: int, v4: int, v5: int, v6: int): bool; + + +function $add(p1: int, p2: int) : int; + +axiom (forall p1: int, p2: int :: { $add(p1, p2): int } $add(p1, p2): int == p1 + p2); + +function $sub(p1: int, p2: int) : int; + +axiom (forall p1: int, p2: int :: { $sub(p1, p2): int } $sub(p1, p2): int == p1 - p2); + +function $mul(p1: int, p2: int) : int; + +axiom (forall p1: int, p2: int :: { $mul(p1, p2): int } $mul(p1, p2): int == p1 * p2); + +function $sdiv(p1: int, p2: int) : int; + +function $udiv(p1: int, p2: int) : int; + +function $srem(p1: int, p2: int) : int; + +function $urem(p1: int, p2: int) : int; + +function $and(p1: int, p2: int) : int; + +axiom $and(0, 0) == 0; + +axiom $and(0, 1) == 0; + +axiom $and(1, 0) == 0; + +axiom $and(1, 1) == 1; + +function $or(p1: int, p2: int) : int; + +axiom $or(0, 0) == 0; + +axiom $or(0, 1) == 1; + +axiom $or(1, 0) == 1; + +axiom $or(1, 1) == 1; + +function $xor(p1: int, p2: int) : int; + +axiom $xor(0, 0) == 0; + +axiom $xor(0, 1) == 1; + +axiom $xor(1, 0) == 1; + +axiom $xor(1, 1) == 0; + +function $lshr(p1: int, p2: int) : int; + +function $ashr(p1: int, p2: int) : int; + +function $shl(p1: int, p2: int) : int; + +function $ult(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $ult(p1, p2): bool } $ult(p1, p2): bool == (p1 < p2)); + +function $ugt(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $ugt(p1, p2): bool } $ugt(p1, p2): bool == (p1 > p2)); + +function $ule(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $ule(p1, p2): bool } $ule(p1, p2): bool == (p1 <= p2)); + +function $uge(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $uge(p1, p2): bool } $uge(p1, p2): bool == (p1 >= p2)); + +function $slt(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $slt(p1, p2): bool } $slt(p1, p2): bool == (p1 < p2)); + +function $sgt(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $sgt(p1, p2): bool } $sgt(p1, p2): bool == (p1 > p2)); + +function $sle(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $sle(p1, p2): bool } $sle(p1, p2): bool == (p1 <= p2)); + +function $sge(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $sge(p1, p2): bool } $sge(p1, p2): bool == (p1 >= p2)); + +function $nand(p1: int, p2: int) : int; + +function $max(p1: int, p2: int) : int; + +function $min(p1: int, p2: int) : int; + +function $umax(p1: int, p2: int) : int; + +function $umin(p1: int, p2: int) : int; + +function $i2b(i: int) : bool; + +axiom (forall i: int :: $i2b(i) <==> i != 0); + +axiom $i2b(0) == false; + +function $b2i(b: bool) : int; + +axiom $b2i(true) == 1; + +axiom $b2i(false) == 0; + +type float; + +function $fp(a: int) : float; + +const $ffalse: float; + +const $ftrue: float; + +function $fadd(f1: float, f2: float) : float; + +function $fsub(f1: float, f2: float) : float; + +function $fmul(f1: float, f2: float) : float; + +function $fdiv(f1: float, f2: float) : float; + +function $frem(f1: float, f2: float) : float; + +function $foeq(f1: float, f2: float) : bool; + +function $foge(f1: float, f2: float) : bool; + +function $fogt(f1: float, f2: float) : bool; + +function $fole(f1: float, f2: float) : bool; + +function $folt(f1: float, f2: float) : bool; + +function $fone(f1: float, f2: float) : bool; + +function $ford(f1: float, f2: float) : bool; + +function $fueq(f1: float, f2: float) : bool; + +function $fuge(f1: float, f2: float) : bool; + +function $fugt(f1: float, f2: float) : bool; + +function $fule(f1: float, f2: float) : bool; + +function $fult(f1: float, f2: float) : bool; + +function $fune(f1: float, f2: float) : bool; + +function $funo(f1: float, f2: float) : bool; + +function $fp2si(f: float) : int; + +function $fp2ui(f: float) : int; + +function $si2fp(i: int) : float; + +function $ui2fp(i: int) : float; + +function $ptr(obj: int, off: int) : int; + +axiom (forall obj: int, off: int :: { $ptr(obj, off): int } $ptr(obj, off): int == obj + off); + +function $size(int) : int; + +function $obj(int) : int; + +function $off(ptr: int) : int; + +axiom (forall ptr: int :: { $off(ptr): int } $off(ptr): int == ptr); + +var alloc: [int]bool; + +var $CurrAddr: int; + +const unique $NULL: int; + +const $UNDEF: int; + +function $pa(pointer: int, index: int, size: int) : int; + +function $trunc(p: int) : int; + +function $p2i(p: int) : int; + +function $i2p(p: int) : int; + +function $p2b(p: int) : bool; + +function $b2p(b: bool) : int; + +axiom (forall p: int, i: int, s: int :: { $pa(p, i, s) } $pa(p, i, s) == p + i * s); + +axiom (forall p: int :: $trunc(p) == p); + +axiom $b2p(true) == 1; + +axiom $b2p(false) == 0; + +axiom (forall i: int :: $p2b(i) <==> i != 0); + +axiom $p2b(0) == false; + +axiom (forall i: int :: $p2i(i) == i); + +axiom (forall i: int :: $i2p(i) == i); + +procedure __SMACK_nondet() returns (p: int); + + + +procedure __SMACK_nondetInt() returns (p: int); + + + +procedure $malloc(obj_size: int) returns (new: int); + requires obj_size > 0; + modifies $CurrAddr, alloc; + ensures 0 < old($CurrAddr); + ensures new == old($CurrAddr); + ensures $CurrAddr > old($CurrAddr) + obj_size; + ensures $size(new) == obj_size; + ensures (forall x: int :: new <= x && x < new + obj_size ==> $obj(x) == new); + ensures alloc[new]; + ensures (forall x: int :: { alloc[x] } x == new || old(alloc)[x] == alloc[x]); + + + +procedure $free(pointer: int); + modifies alloc; + + + +procedure $alloca(obj_size: int) returns (new: int); + requires obj_size > 0; + modifies $CurrAddr, alloc; + ensures 0 < old($CurrAddr); + ensures new == old($CurrAddr); + ensures $CurrAddr > old($CurrAddr) + obj_size; + ensures $size(new) == obj_size; + ensures (forall x: int :: new <= x && x < new + obj_size ==> $obj(x) == new); + ensures alloc[new]; + ensures (forall x: int :: { alloc[x] } x == new || old(alloc)[x] == alloc[x]); + + + +const unique __VERIFIER_assert: int; + +const unique main: int; + +const unique __VERIFIER_nondet_uint: int; + +const unique __VERIFIER_nondet_bool: int; + +procedure __VERIFIER_assert(cond: int); + modifies alloc, $CurrAddr; + + + +implementation __VERIFIER_assert(cond: int) +{ + var $b: bool; + + $bb0: + assert {:sourcefile "trex03_safe.c"} {:sourceline 1} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 2} true; + $b := cond != 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 2} true; + goto $bb3, $bb4; + + $bb1: + assert {:sourcefile "trex03_safe.c"} {:sourceline 5} true; + return; + + $bb2: + assert {:sourcefile "trex03_safe.c"} {:sourceline 2} true; + goto $bb5; + + $bb3: + assert {:sourcefile "trex03_safe.c"} {:sourceline 2} true; + assume $b; + goto $bb1; + + $bb4: + assert {:sourcefile "trex03_safe.c"} {:sourceline 2} true; + assume !$b; + goto $bb2; + + $bb5: + assert {:sourcefile "trex03_safe.c"} {:sourceline 3} true; + goto $bb5; +} + + + +procedure main() returns ($r: int); + modifies alloc, $CurrAddr; + + + +implementation main() returns ($r: int) +{ + var $p: int; + var $p1: int; + var $p2: int; + var $b: bool; + var $p3: int; + var $b4: bool; + var $p5: int; + var $p6: int; + var $p7: int; + var $p8: int; + var $p9: int; + var $p10: int; + var $b11: bool; + var $b12: bool; + var $b13: bool; + var $b14: bool; + var $b15: bool; + var $b16: bool; + var $p17: int; + var $b18: bool; + var $b19: bool; + var $p20: int; + var $p21: int; + var $p22: int; + var $p23: int; + var $p24: int; + var $p25: int; + var $b26: bool; + var $p27: int; + var $b28: bool; + var $p29: int; + var $p30: int; + var $p31: int; + var $b32: bool; + var $b33: bool; + var v1, v2, v3, v4, v5, v6: int; + + $bb0: + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + havoc $p; + assume $p > 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + havoc $p1; + assume $p1 > 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + havoc $p2; + assume $p2 > 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 13} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 13} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 13} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + havoc $b; + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + $p3 := $b2p($b); + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + havoc $b4; + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + $p5 := $b2p($b4); + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $p6 := $p3; + $p7 := $p2; + $p8 := $p1; + $p9 := $p; + $p10 := $p5; + goto $bb1; + + $bb1: + assert b0($p9,$p8,$p7,v1,v2,v3, v4, v5, v6); + + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $b11 := $ugt($p9, 0); + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $b12 := false; + goto $bb4, $bb5; + + $bb2: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $b32 := $ugt($p8, 0); + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $b12 := false; + goto $bb28, $bb29; + + $bb3: + goto $bb8, $bb9; + + $bb4: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + assume $b11; + goto $bb2; + + $bb5: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + assume !$b11; + goto $bb3; + + $bb6: + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + $b18 := $i2b($p6); + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + goto $bb19, $bb20; + + $bb7: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b13 := $p9 == 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b14 := true; + goto $bb12, $bb13; + + $bb8: + assume $b12; + goto $bb6; + + $bb9: + assume !$b12; + goto $bb7; + + $bb10: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $p17 := $b2p($b14); + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + assert $p17 == 1; + assert {:sourcefile "trex03_safe.c"} {:sourceline 26} true; + $r := 0; + return; + + $bb11: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b15 := $p8 == 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b14 := true; + goto $bb15, $bb16; + + $bb12: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + assume $b13; + goto $bb10; + + $bb13: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + assume !$b13; + goto $bb11; + + $bb14: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b16 := $p7 == 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b14 := $b16; + goto $bb10; + + $bb15: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + assume $b15; + goto $bb10; + + $bb16: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + assume !$b15; + goto $bb14; + + $bb17: + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + $p31 := $sub($p9, 1); + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + $p23 := $p7; + $p24 := $p8; + $p25 := $p31; + goto $bb26; + + $bb18: + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + $b19 := $i2b($p10); + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + goto $bb23, $bb24; + + $bb19: + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + assume $b18; + goto $bb17; + + $bb20: + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + assume !$b18; + goto $bb18; + + $bb21: + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + $p30 := $sub($p8, 1); + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + $p21 := $p7; + $p22 := $p30; + goto $bb25; + + $bb22: + assert {:sourcefile "trex03_safe.c"} {:sourceline 20} true; + $p20 := $sub($p7, 1); + assert {:sourcefile "trex03_safe.c"} {:sourceline 20} true; + assume true; + $p21 := $p20; + $p22 := $p8; + goto $bb25; + + $bb23: + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + assume $b19; + goto $bb21; + + $bb24: + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + assume !$b19; + goto $bb22; + + $bb25: + $p23 := $p21; + $p24 := $p22; + $p25 := $p9; + goto $bb26; + + $bb26: + assert {:sourcefile "trex03_safe.c"} {:sourceline 21} true; + havoc $b26; + assert {:sourcefile "trex03_safe.c"} {:sourceline 21} true; + $p27 := $b2p($b26); + assert {:sourcefile "trex03_safe.c"} {:sourceline 21} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 22} true; + havoc $b28; + assert {:sourcefile "trex03_safe.c"} {:sourceline 22} true; + $p29 := $b2p($b28); + havoc v1; + havoc v2; + havoc v3; + havoc v4; + havoc v5; + havoc v6; + + assert {:sourcefile "trex03_safe.c"} {:sourceline 22} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 23} true; + $p6 := $p27; + $p7 := $p23; + $p8 := $p24; + $p9 := $p25; + $p10 := $p29; + goto $bb1; + + $bb27: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $b33 := $ugt($p7, 0); + $b12 := $b33; + goto $bb3; + + $bb28: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + assume $b32; + goto $bb27; + + $bb29: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + assume !$b32; + goto $bb3; +} + + + +procedure __VERIFIER_nondet_uint() returns ($r: int); + modifies alloc, $CurrAddr; + + + +procedure __VERIFIER_nondet_bool() returns ($r: bool); + modifies alloc, $CurrAddr; + + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/trex03_v9.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/trex03_v9.bpl new file mode 100644 index 000000000..5b6c887e8 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/trex03_v9.bpl @@ -0,0 +1,606 @@ +procedure boogie_si_record_int(i: int); + +function {:existential true} b0(x1:int,x2:int,x3:int, v1: int, v2: int, v3: int, v4: int, v5: int, v6: int, v7: int, v8: int, v9: int): bool; + + +function $add(p1: int, p2: int) : int; + +axiom (forall p1: int, p2: int :: { $add(p1, p2): int } $add(p1, p2): int == p1 + p2); + +function $sub(p1: int, p2: int) : int; + +axiom (forall p1: int, p2: int :: { $sub(p1, p2): int } $sub(p1, p2): int == p1 - p2); + +function $mul(p1: int, p2: int) : int; + +axiom (forall p1: int, p2: int :: { $mul(p1, p2): int } $mul(p1, p2): int == p1 * p2); + +function $sdiv(p1: int, p2: int) : int; + +function $udiv(p1: int, p2: int) : int; + +function $srem(p1: int, p2: int) : int; + +function $urem(p1: int, p2: int) : int; + +function $and(p1: int, p2: int) : int; + +axiom $and(0, 0) == 0; + +axiom $and(0, 1) == 0; + +axiom $and(1, 0) == 0; + +axiom $and(1, 1) == 1; + +function $or(p1: int, p2: int) : int; + +axiom $or(0, 0) == 0; + +axiom $or(0, 1) == 1; + +axiom $or(1, 0) == 1; + +axiom $or(1, 1) == 1; + +function $xor(p1: int, p2: int) : int; + +axiom $xor(0, 0) == 0; + +axiom $xor(0, 1) == 1; + +axiom $xor(1, 0) == 1; + +axiom $xor(1, 1) == 0; + +function $lshr(p1: int, p2: int) : int; + +function $ashr(p1: int, p2: int) : int; + +function $shl(p1: int, p2: int) : int; + +function $ult(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $ult(p1, p2): bool } $ult(p1, p2): bool == (p1 < p2)); + +function $ugt(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $ugt(p1, p2): bool } $ugt(p1, p2): bool == (p1 > p2)); + +function $ule(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $ule(p1, p2): bool } $ule(p1, p2): bool == (p1 <= p2)); + +function $uge(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $uge(p1, p2): bool } $uge(p1, p2): bool == (p1 >= p2)); + +function $slt(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $slt(p1, p2): bool } $slt(p1, p2): bool == (p1 < p2)); + +function $sgt(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $sgt(p1, p2): bool } $sgt(p1, p2): bool == (p1 > p2)); + +function $sle(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $sle(p1, p2): bool } $sle(p1, p2): bool == (p1 <= p2)); + +function $sge(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $sge(p1, p2): bool } $sge(p1, p2): bool == (p1 >= p2)); + +function $nand(p1: int, p2: int) : int; + +function $max(p1: int, p2: int) : int; + +function $min(p1: int, p2: int) : int; + +function $umax(p1: int, p2: int) : int; + +function $umin(p1: int, p2: int) : int; + +function $i2b(i: int) : bool; + +axiom (forall i: int :: $i2b(i) <==> i != 0); + +axiom $i2b(0) == false; + +function $b2i(b: bool) : int; + +axiom $b2i(true) == 1; + +axiom $b2i(false) == 0; + +type float; + +function $fp(a: int) : float; + +const $ffalse: float; + +const $ftrue: float; + +function $fadd(f1: float, f2: float) : float; + +function $fsub(f1: float, f2: float) : float; + +function $fmul(f1: float, f2: float) : float; + +function $fdiv(f1: float, f2: float) : float; + +function $frem(f1: float, f2: float) : float; + +function $foeq(f1: float, f2: float) : bool; + +function $foge(f1: float, f2: float) : bool; + +function $fogt(f1: float, f2: float) : bool; + +function $fole(f1: float, f2: float) : bool; + +function $folt(f1: float, f2: float) : bool; + +function $fone(f1: float, f2: float) : bool; + +function $ford(f1: float, f2: float) : bool; + +function $fueq(f1: float, f2: float) : bool; + +function $fuge(f1: float, f2: float) : bool; + +function $fugt(f1: float, f2: float) : bool; + +function $fule(f1: float, f2: float) : bool; + +function $fult(f1: float, f2: float) : bool; + +function $fune(f1: float, f2: float) : bool; + +function $funo(f1: float, f2: float) : bool; + +function $fp2si(f: float) : int; + +function $fp2ui(f: float) : int; + +function $si2fp(i: int) : float; + +function $ui2fp(i: int) : float; + +function $ptr(obj: int, off: int) : int; + +axiom (forall obj: int, off: int :: { $ptr(obj, off): int } $ptr(obj, off): int == obj + off); + +function $size(int) : int; + +function $obj(int) : int; + +function $off(ptr: int) : int; + +axiom (forall ptr: int :: { $off(ptr): int } $off(ptr): int == ptr); + +var alloc: [int]bool; + +var $CurrAddr: int; + +const unique $NULL: int; + +const $UNDEF: int; + +function $pa(pointer: int, index: int, size: int) : int; + +function $trunc(p: int) : int; + +function $p2i(p: int) : int; + +function $i2p(p: int) : int; + +function $p2b(p: int) : bool; + +function $b2p(b: bool) : int; + +axiom (forall p: int, i: int, s: int :: { $pa(p, i, s) } $pa(p, i, s) == p + i * s); + +axiom (forall p: int :: $trunc(p) == p); + +axiom $b2p(true) == 1; + +axiom $b2p(false) == 0; + +axiom (forall i: int :: $p2b(i) <==> i != 0); + +axiom $p2b(0) == false; + +axiom (forall i: int :: $p2i(i) == i); + +axiom (forall i: int :: $i2p(i) == i); + +procedure __SMACK_nondet() returns (p: int); + + + +procedure __SMACK_nondetInt() returns (p: int); + + + +procedure $malloc(obj_size: int) returns (new: int); + requires obj_size > 0; + modifies $CurrAddr, alloc; + ensures 0 < old($CurrAddr); + ensures new == old($CurrAddr); + ensures $CurrAddr > old($CurrAddr) + obj_size; + ensures $size(new) == obj_size; + ensures (forall x: int :: new <= x && x < new + obj_size ==> $obj(x) == new); + ensures alloc[new]; + ensures (forall x: int :: { alloc[x] } x == new || old(alloc)[x] == alloc[x]); + + + +procedure $free(pointer: int); + modifies alloc; + + + +procedure $alloca(obj_size: int) returns (new: int); + requires obj_size > 0; + modifies $CurrAddr, alloc; + ensures 0 < old($CurrAddr); + ensures new == old($CurrAddr); + ensures $CurrAddr > old($CurrAddr) + obj_size; + ensures $size(new) == obj_size; + ensures (forall x: int :: new <= x && x < new + obj_size ==> $obj(x) == new); + ensures alloc[new]; + ensures (forall x: int :: { alloc[x] } x == new || old(alloc)[x] == alloc[x]); + + + +const unique __VERIFIER_assert: int; + +const unique main: int; + +const unique __VERIFIER_nondet_uint: int; + +const unique __VERIFIER_nondet_bool: int; + +procedure __VERIFIER_assert(cond: int); + modifies alloc, $CurrAddr; + + + +implementation __VERIFIER_assert(cond: int) +{ + var $b: bool; + + $bb0: + assert {:sourcefile "trex03_safe.c"} {:sourceline 1} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 2} true; + $b := cond != 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 2} true; + goto $bb3, $bb4; + + $bb1: + assert {:sourcefile "trex03_safe.c"} {:sourceline 5} true; + return; + + $bb2: + assert {:sourcefile "trex03_safe.c"} {:sourceline 2} true; + goto $bb5; + + $bb3: + assert {:sourcefile "trex03_safe.c"} {:sourceline 2} true; + assume $b; + goto $bb1; + + $bb4: + assert {:sourcefile "trex03_safe.c"} {:sourceline 2} true; + assume !$b; + goto $bb2; + + $bb5: + assert {:sourcefile "trex03_safe.c"} {:sourceline 3} true; + goto $bb5; +} + + + +procedure main() returns ($r: int); + modifies alloc, $CurrAddr; + + + +implementation main() returns ($r: int) +{ + var $p: int; + var $p1: int; + var $p2: int; + var $b: bool; + var $p3: int; + var $b4: bool; + var $p5: int; + var $p6: int; + var $p7: int; + var $p8: int; + var $p9: int; + var $p10: int; + var $b11: bool; + var $b12: bool; + var $b13: bool; + var $b14: bool; + var $b15: bool; + var $b16: bool; + var $p17: int; + var $b18: bool; + var $b19: bool; + var $p20: int; + var $p21: int; + var $p22: int; + var $p23: int; + var $p24: int; + var $p25: int; + var $b26: bool; + var $p27: int; + var $b28: bool; + var $p29: int; + var $p30: int; + var $p31: int; + var $b32: bool; + var $b33: bool; + var v1, v2, v3, v4, v5, v6, v7, v8, v9: int; + + $bb0: + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + havoc $p; + assume $p > 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + havoc $p1; + assume $p1 > 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + havoc $p2; + assume $p2 > 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 13} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 13} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 13} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + havoc $b; + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + $p3 := $b2p($b); + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + havoc $b4; + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + $p5 := $b2p($b4); + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $p6 := $p3; + $p7 := $p2; + $p8 := $p1; + $p9 := $p; + $p10 := $p5; + goto $bb1; + + $bb1: + assert b0($p9,$p8,$p7,v1,v2,v3, v4, v5, v6, v7, v8, v9); + + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $b11 := $ugt($p9, 0); + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $b12 := false; + goto $bb4, $bb5; + + $bb2: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $b32 := $ugt($p8, 0); + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $b12 := false; + goto $bb28, $bb29; + + $bb3: + goto $bb8, $bb9; + + $bb4: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + assume $b11; + goto $bb2; + + $bb5: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + assume !$b11; + goto $bb3; + + $bb6: + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + $b18 := $i2b($p6); + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + goto $bb19, $bb20; + + $bb7: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b13 := $p9 == 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b14 := true; + goto $bb12, $bb13; + + $bb8: + assume $b12; + goto $bb6; + + $bb9: + assume !$b12; + goto $bb7; + + $bb10: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $p17 := $b2p($b14); + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + assert $p17 == 1; + assert {:sourcefile "trex03_safe.c"} {:sourceline 26} true; + $r := 0; + return; + + $bb11: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b15 := $p8 == 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b14 := true; + goto $bb15, $bb16; + + $bb12: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + assume $b13; + goto $bb10; + + $bb13: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + assume !$b13; + goto $bb11; + + $bb14: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b16 := $p7 == 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b14 := $b16; + goto $bb10; + + $bb15: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + assume $b15; + goto $bb10; + + $bb16: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + assume !$b15; + goto $bb14; + + $bb17: + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + $p31 := $sub($p9, 1); + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + $p23 := $p7; + $p24 := $p8; + $p25 := $p31; + goto $bb26; + + $bb18: + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + $b19 := $i2b($p10); + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + goto $bb23, $bb24; + + $bb19: + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + assume $b18; + goto $bb17; + + $bb20: + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + assume !$b18; + goto $bb18; + + $bb21: + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + $p30 := $sub($p8, 1); + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + $p21 := $p7; + $p22 := $p30; + goto $bb25; + + $bb22: + assert {:sourcefile "trex03_safe.c"} {:sourceline 20} true; + $p20 := $sub($p7, 1); + assert {:sourcefile "trex03_safe.c"} {:sourceline 20} true; + assume true; + $p21 := $p20; + $p22 := $p8; + goto $bb25; + + $bb23: + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + assume $b19; + goto $bb21; + + $bb24: + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + assume !$b19; + goto $bb22; + + $bb25: + $p23 := $p21; + $p24 := $p22; + $p25 := $p9; + goto $bb26; + + $bb26: + assert {:sourcefile "trex03_safe.c"} {:sourceline 21} true; + havoc $b26; + assert {:sourcefile "trex03_safe.c"} {:sourceline 21} true; + $p27 := $b2p($b26); + assert {:sourcefile "trex03_safe.c"} {:sourceline 21} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 22} true; + havoc $b28; + assert {:sourcefile "trex03_safe.c"} {:sourceline 22} true; + $p29 := $b2p($b28); + havoc v1; + havoc v2; + havoc v3; + havoc v4; + havoc v5; + havoc v6; + havoc v7; + havoc v8; + havoc v9; + + assert {:sourcefile "trex03_safe.c"} {:sourceline 22} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 23} true; + $p6 := $p27; + $p7 := $p23; + $p8 := $p24; + $p9 := $p25; + $p10 := $p29; + goto $bb1; + + $bb27: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $b33 := $ugt($p7, 0); + $b12 := $b33; + goto $bb3; + + $bb28: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + assume $b32; + goto $bb27; + + $bb29: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + assume !$b32; + goto $bb3; +} + + + +procedure __VERIFIER_nondet_uint() returns ($r: int); + modifies alloc, $CurrAddr; + + + +procedure __VERIFIER_nondet_bool() returns ($r: bool); + modifies alloc, $CurrAddr; + + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/w1.v.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/w1.v.bpl new file mode 100644 index 000000000..bc13c353f --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/w1.v.bpl @@ -0,0 +1,22 @@ +function {:existential true} b0(x:int, n:int, v1: int, v2: int, v3: int): bool; + +var x, n: int; + +procedure main() +modifies x; +{ + var v1, v2, v3: int; + + x := 0; + assume n >= 0; + while (x < n) + invariant b0(x, n,v1,v2,v3); + { + x := x + 1; + havoc v1; + havoc v2; + havoc v3; + } + assert x == n; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/w2.v.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/w2.v.bpl new file mode 100644 index 000000000..7df99a146 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/additional programs/w2.v.bpl @@ -0,0 +1,29 @@ +function {:existential true} b0(x:int, n:int, v1: int, v2: int, v3: int): bool; + +var x, n: int; + +procedure main() +modifies x; +{ + var v1, v2, v3: int; + + x := 0; + assume n > 0; + while (true) + invariant b0(x, n, v1, v2, v3); + { + if(*) + { + x := x + 1; + if(x >= n) + { + break; + } + } + havoc v1; + havoc v2; + havoc v3; + } + assert x == n; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/afnp2014_true-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/afnp2014_true-unreach-call.c new file mode 100644 index 000000000..dcb5f4a3b --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/afnp2014_true-unreach-call.c @@ -0,0 +1,22 @@ +// Source: E. De Angelis, F. Fioravanti, J. A. Navas, M. Proietti: +// "Verification of Programs by Combining Iterated Specialization with +// Interpolation", HCVS 2014 + +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + +void main() { + int x = 1; + int y = 0; + while (y < 1000 && __VERIFIER_nondet_int()) { + x = x + y; + y = y + 1; + } + __VERIFIER_assert(x >= y); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/afnp2014_true-unreach-call.c.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/afnp2014_true-unreach-call.c.bpl new file mode 100644 index 000000000..60d484736 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/afnp2014_true-unreach-call.c.bpl @@ -0,0 +1,246 @@ +// SMACK-PRELUDE-BEGIN +function {:existential true} b0(x:int, y:int): bool; + + +procedure boogie_si_record_int(i: int); + +// Integer arithmetic +function $add(p1:int, p2:int) returns (int) {p1 + p2} +function $sub(p1:int, p2:int) returns (int) {p1 - p2} +function $mul(p1:int, p2:int) returns (int) {p1 * p2} +function $sdiv(p1:int, p2:int) returns (int); +function $udiv(p1:int, p2:int) returns (int); +function $srem(p1:int, p2:int) returns (int); +function $urem(p1:int, p2:int) returns (int); +function $and(p1:int, p2:int) returns (int); +axiom $and(0,0) == 0; +axiom $and(0,1) == 0; +axiom $and(1,0) == 0; +axiom $and(1,1) == 1; +function $or(p1:int, p2:int) returns (int); +axiom $or(0,0) == 0; +axiom $or(0,1) == 1; +axiom $or(1,0) == 1; +axiom $or(1,1) == 1; +function $xor(p1:int, p2:int) returns (int); +axiom $xor(0,0) == 0; +axiom $xor(0,1) == 1; +axiom $xor(1,0) == 1; +axiom $xor(1,1) == 0; +function $lshr(p1:int, p2:int) returns (int); +function $ashr(p1:int, p2:int) returns (int); +function $shl(p1:int, p2:int) returns (int); +function $ult(p1:int, p2:int) returns (bool) {p1 < p2} +function $ugt(p1:int, p2:int) returns (bool) {p1 > p2} +function $ule(p1:int, p2:int) returns (bool) {p1 <= p2} +function $uge(p1:int, p2:int) returns (bool) {p1 >= p2} +function $slt(p1:int, p2:int) returns (bool) {p1 < p2} +function $sgt(p1:int, p2:int) returns (bool) {p1 > p2} +function $sle(p1:int, p2:int) returns (bool) {p1 <= p2} +function $sge(p1:int, p2:int) returns (bool) {p1 >= p2} +function $nand(p1:int, p2:int) returns (int); +function $max(p1:int, p2:int) returns (int); +function $min(p1:int, p2:int) returns (int); +function $umax(p1:int, p2:int) returns (int); +function $umin(p1:int, p2:int) returns (int); +function $i2b(i: int) returns (bool); +axiom (forall i:int :: $i2b(i) <==> i != 0); +axiom $i2b(0) == false; +function $b2i(b: bool) returns (int); +axiom $b2i(true) == 1; +axiom $b2i(false) == 0; + +// Floating point +type float; +function $fp(a:int) returns (float); +const $ffalse: float; +const $ftrue: float; +function $fadd(f1:float, f2:float) returns (float); +function $fsub(f1:float, f2:float) returns (float); +function $fmul(f1:float, f2:float) returns (float); +function $fdiv(f1:float, f2:float) returns (float); +function $frem(f1:float, f2:float) returns (float); +function $foeq(f1:float, f2:float) returns (bool); +function $foge(f1:float, f2:float) returns (bool); +function $fogt(f1:float, f2:float) returns (bool); +function $fole(f1:float, f2:float) returns (bool); +function $folt(f1:float, f2:float) returns (bool); +function $fone(f1:float, f2:float) returns (bool); +function $ford(f1:float, f2:float) returns (bool); +function $fueq(f1:float, f2:float) returns (bool); +function $fuge(f1:float, f2:float) returns (bool); +function $fugt(f1:float, f2:float) returns (bool); +function $fule(f1:float, f2:float) returns (bool); +function $fult(f1:float, f2:float) returns (bool); +function $fune(f1:float, f2:float) returns (bool); +function $funo(f1:float, f2:float) returns (bool); +function $fp2si(f:float) returns (int); +function $fp2ui(f:float) returns (int); +function $si2fp(i:int) returns (float); +function $ui2fp(i:int) returns (float); + +// Memory region declarations: 0 + +// SMACK Flat Memory Model + +function $ptr(obj:int, off:int) returns (int) {obj + off} +function $size(int) returns (int); +function $obj(int) returns (int); +function $off(ptr:int) returns (int) {ptr} + +var alloc: [int] bool; +var $CurrAddr:int; + +const unique $NULL: int; +axiom $NULL == 0; +const $UNDEF: int; + +function $pa(pointer: int, index: int, size: int) returns (int); +function $trunc(p: int) returns (int); +function $p2i(p: int) returns (int); +function $i2p(p: int) returns (int); +function $p2b(p: int) returns (bool); +function $b2p(b: bool) returns (int); + +axiom (forall p:int, i:int, s:int :: {$pa(p,i,s)} $pa(p,i,s) == p + i * s); +axiom (forall p:int :: $trunc(p) == p); + +axiom $b2p(true) == 1; +axiom $b2p(false) == 0; +axiom (forall i:int :: $p2b(i) <==> i != 0); +axiom $p2b(0) == false; +axiom (forall i:int :: $p2i(i) == i); +axiom (forall i:int :: $i2p(i) == i); +procedure __SMACK_nondet() returns (p: int); +procedure __SMACK_nondetInt() returns (p: int); + +procedure $malloc(obj_size: int) returns (new: int); +modifies $CurrAddr, alloc; +requires obj_size > 0; +ensures 0 < old($CurrAddr); +ensures new == old($CurrAddr); +ensures $CurrAddr > old($CurrAddr) + obj_size; +ensures $size(new) == obj_size; +ensures (forall x:int :: new <= x && x < new + obj_size ==> $obj(x) == new); +ensures alloc[new]; +ensures (forall x:int :: {alloc[x]} x == new || old(alloc)[x] == alloc[x]); + +procedure $free(pointer: int); +modifies alloc; +requires alloc[pointer]; +requires $obj(pointer) == pointer; +ensures !alloc[pointer]; +ensures (forall x:int :: {alloc[x]} x == pointer || old(alloc)[x] == alloc[x]); + +procedure $alloca(obj_size: int) returns (new: int); +modifies $CurrAddr, alloc; +requires obj_size > 0; +ensures 0 < old($CurrAddr); +ensures new == old($CurrAddr); +ensures $CurrAddr > old($CurrAddr) + obj_size; +ensures $size(new) == obj_size; +ensures (forall x:int :: new <= x && x < new + obj_size ==> $obj(x) == new); +ensures alloc[new]; +ensures (forall x:int :: {alloc[x]} x == new || old(alloc)[x] == alloc[x]); + +// SMACK-PRELUDE-END +// BEGIN SMACK-GENERATED CODE +const unique main: int; +axiom (main == -1024); +const unique __VERIFIER_nondet_int: int; +axiom (__VERIFIER_nondet_int == -2048); +const unique __VERIFIER_assert: int; +axiom (__VERIFIER_assert == -3072); + +procedure main() + modifies alloc, $CurrAddr; +{ + var $p: int; + var $p1: int; + var $b: bool; + var $b2: bool; + var $b3: bool; + var $p4: int; + var $p5: int; + var $p6: int; + var $p7: int; + var $p8: int; + var $b9: bool; +$bb0: + assume {:sourceloc "afnp2014_true-unreach-call.c", 8, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "afnp2014_true-unreach-call.c", 9, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "afnp2014_true-unreach-call.c", 10, 0} true; + $p := 0; + $p1 := 1; + goto $bb1; +$bb1: + assert b0($p1, $p); + + assume {:sourceloc "afnp2014_true-unreach-call.c", 10, 0} true; + $b := $slt($p, 1000); + assume {:sourceloc "afnp2014_true-unreach-call.c", 10, 0} true; + $b2 := false; + goto $bb4, $bb5; +$bb2: + assume {:sourceloc "afnp2014_true-unreach-call.c", 10, 0} true; + havoc $p8; + assume {:sourceloc "afnp2014_true-unreach-call.c", 10, 0} true; + $b9 := ($p8 != 0); + $b2 := $b9; + goto $bb3; +$bb3: + goto $bb8, $bb9; +$bb4: + assume {:sourceloc "afnp2014_true-unreach-call.c", 10, 0} true; + assume $b; + goto $bb2; +$bb5: + assume {:sourceloc "afnp2014_true-unreach-call.c", 10, 0} true; + assume !($b); + goto $bb3; +$bb6: + assume {:sourceloc "afnp2014_true-unreach-call.c", 11, 0} true; + $p6 := $add($p1, $p); + assume {:sourceloc "afnp2014_true-unreach-call.c", 11, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "afnp2014_true-unreach-call.c", 12, 0} true; + $p7 := $add($p, 1); + assume {:sourceloc "afnp2014_true-unreach-call.c", 12, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "afnp2014_true-unreach-call.c", 13, 0} true; + $p := $p7; + $p1 := $p6; + goto $bb1; +$bb7: + assume {:sourceloc "afnp2014_true-unreach-call.c", 14, 0} true; + $b3 := $sge($p1, $p); + assume {:sourceloc "afnp2014_true-unreach-call.c", 14, 0} true; + $p4 := $b2p($b3); + assume {:sourceloc "afnp2014_true-unreach-call.c", 14, 0} true; + assert $p4 == 1; + assume {:sourceloc "afnp2014_true-unreach-call.c", 15, 0} true; + return; +$bb8: + assume $b2; + goto $bb6; +$bb9: + assume !($b2); + goto $bb7; +} + +procedure __VERIFIER_nondet_int() + returns ($r: int) ; + modifies alloc, $CurrAddr; + + +procedure __VERIFIER_assert#1(p0: int) + returns ($r: int) ; + modifies alloc, $CurrAddr; + +// END SMACK-GENERATED CODE diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar1.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar1.bpl new file mode 100644 index 000000000..a5d00538d --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar1.bpl @@ -0,0 +1,19 @@ +function {:existential true} b0(x:int, y:int): bool; + +var x, y: int; + + +procedure main() +modifies x, y; +{ + assume 0 <= x && x <= 2; + assume 0 <= y && y <= 2; + while (*) + invariant b0(x, y); + { + x := x + 2; + y := y + 2; + } + assert (!((x == 4) && (y == 0))); +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar1.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar1.c new file mode 100644 index 000000000..0c5096ef6 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar1.c @@ -0,0 +1,38 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + +//pre: 0 <= x <= 2; 0 <= y <= 2 +void cegar1(int x, int y) { + + int input; + if (!(0 <= x)) + return; + if (!(x <= 2)) + return; + if (!(0 <= y)) + return; + if (!(y <= 2)) + return; + + input = __VERIFIER_nondet_int(); + while ( input) { + + x = x + 2; + y = y + 2; + + input = __VERIFIER_nondet_int(); + } + __VERIFIER_assert(!((x == 4) && (y == 0))); + +} +int main() +{ + int x,y; + cegar1(x, y); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar1.v.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar1.v.bpl new file mode 100644 index 000000000..50030aa28 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar1.v.bpl @@ -0,0 +1,24 @@ +function {:existential true} b0(x:int, y:int, v1: int, v2: int, v3: int): bool; + +var x, y: int; + + +procedure main() +modifies x, y; +{ + var v1, v2, v3: int; + + assume 0 <= x && x <= 2; + assume 0 <= y && y <= 2; + while (*) + invariant b0(x, y, v1, v2, v3); + { + x := x + 2; + y := y + 2; + havoc v1; + havoc v2; + havoc v3; + } + assert (!((x == 4) && (y == 0))); +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar1.v.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar1.v.c new file mode 100644 index 000000000..3db06aea4 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar1.v.c @@ -0,0 +1,41 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + +//pre: 0 <= x <= 2; 0 <= y <= 2 +void cegar1(int x, int y) { + + int input, v1, v2, v3; + if (!(0 <= x)) + return; + if (!(x <= 2)) + return; + if (!(0 <= y)) + return; + if (!(y <= 2)) + return; + + input = __VERIFIER_nondet_int(); + while ( input) { + + x = x + 2; + y = y + 2; + + input = __VERIFIER_nondet_int(); + v1 = __VERIFIER_nondet_int(); + v2 = __VERIFIER_nondet_int(); + v3 = __VERIFIER_nondet_int(); + } + __VERIFIER_assert(!((x == 4) && (y == 0))); + +} +int main() +{ + int x,y; + cegar1(x, y); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar2.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar2.bpl new file mode 100644 index 000000000..a69f186f1 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar2.bpl @@ -0,0 +1,27 @@ +function {:existential true} b0(x:int, m:int, N:int): bool; + +var N: int; + + +procedure {:entrypoint} main() +{ + var x, m: int; + x := 0; + m := 0; + + while (x < N) + invariant b0(x, m, N); + { + if (*) + { + m := x; + } + x := x + 1; + } + //assert (N <= 0 || (0 <= m && m < N)); + if (N > 0) + { + assert (0 <= m && m < N); + } +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar2.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar2.c new file mode 100644 index 000000000..aefcb0689 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar2.c @@ -0,0 +1,34 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + +//pre: true +int main() { + + int N = __VERIFIER_nondet_int(); + int x = 0; + int m = 0; + int input; + + while (x < N) { + + input = __VERIFIER_nondet_int(); + if( input ) { + + m = x; + } + + x = x + 1; + + } + + if (N > 0) { + __VERIFIER_assert((0 <= m) && (m < N)); + } + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar2.v.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar2.v.bpl new file mode 100644 index 000000000..a4ed53362 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar2.v.bpl @@ -0,0 +1,31 @@ +function {:existential true} b0(x:int, m:int, N:int, v1: int, v2: int, v3: int): bool; + +var N: int; + + +procedure {:entrypoint} main() +{ + var x, m: int; + var v1, v2, v3: int; + x := 0; + m := 0; + + while (x < N) + invariant b0(x, m, N, v1, v2, v3); + { + if (*) + { + m := x; + } + x := x + 1; + havoc v1; + havoc v2; + havoc v3; + } + //assert (N <= 0 || (0 <= m && m < N)); + if (N > 0) + { + assert (0 <= m && m < N); + } +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar2.v.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar2.v.c new file mode 100644 index 000000000..8caef2315 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar2.v.c @@ -0,0 +1,37 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + +//pre: true +int main() { + + int N = __VERIFIER_nondet_int(); + int x = 0; + int m = 0; + int input, v1, v2, v3; + + while (x < N) { + + input = __VERIFIER_nondet_int(); + if( input ) { + + m = x; + } + + x = x + 1; + v1 = __VERIFIER_nondet_int(); + v2 = __VERIFIER_nondet_int(); + v3 = __VERIFIER_nondet_int(); + + } + + if (N > 0) { + __VERIFIER_assert((0 <= m) && (m < N)); + } + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cggmp2005_true-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cggmp2005_true-unreach-call.c new file mode 100644 index 000000000..bdd357cf3 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cggmp2005_true-unreach-call.c @@ -0,0 +1,23 @@ +// Source: A. Costan, S. Gaubert, E. Goubault, M. Martel, S. Putot: "A Policy +// Iteration Algorithm for Computing Fixed Points in Static Analysis of +// Programs", CAV 2005 + +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + +void main() { + int i,j; + i = 1; + j = 10; + while (j >= i) { + i = i + 2; + j = -1 + j; + } + __VERIFIER_assert(j == 6); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cggmp2005_true-unreach-call.c.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cggmp2005_true-unreach-call.c.bpl new file mode 100644 index 000000000..56048beed --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cggmp2005_true-unreach-call.c.bpl @@ -0,0 +1,217 @@ +// SMACK-PRELUDE-BEGIN +procedure boogie_si_record_int(i: int); + +function {:existential true} b0(i:int, j:int): bool; + +// Integer arithmetic +function $add(p1:int, p2:int) returns (int) {p1 + p2} +function $sub(p1:int, p2:int) returns (int) {p1 - p2} +function $mul(p1:int, p2:int) returns (int) {p1 * p2} +function $sdiv(p1:int, p2:int) returns (int); +function $udiv(p1:int, p2:int) returns (int); +function $srem(p1:int, p2:int) returns (int); +function $urem(p1:int, p2:int) returns (int); +function $and(p1:int, p2:int) returns (int); +axiom $and(0,0) == 0; +axiom $and(0,1) == 0; +axiom $and(1,0) == 0; +axiom $and(1,1) == 1; +function $or(p1:int, p2:int) returns (int); +axiom $or(0,0) == 0; +axiom $or(0,1) == 1; +axiom $or(1,0) == 1; +axiom $or(1,1) == 1; +function $xor(p1:int, p2:int) returns (int); +axiom $xor(0,0) == 0; +axiom $xor(0,1) == 1; +axiom $xor(1,0) == 1; +axiom $xor(1,1) == 0; +function $lshr(p1:int, p2:int) returns (int); +function $ashr(p1:int, p2:int) returns (int); +function $shl(p1:int, p2:int) returns (int); +function $ult(p1:int, p2:int) returns (bool) {p1 < p2} +function $ugt(p1:int, p2:int) returns (bool) {p1 > p2} +function $ule(p1:int, p2:int) returns (bool) {p1 <= p2} +function $uge(p1:int, p2:int) returns (bool) {p1 >= p2} +function $slt(p1:int, p2:int) returns (bool) {p1 < p2} +function $sgt(p1:int, p2:int) returns (bool) {p1 > p2} +function $sle(p1:int, p2:int) returns (bool) {p1 <= p2} +function $sge(p1:int, p2:int) returns (bool) {p1 >= p2} +function $nand(p1:int, p2:int) returns (int); +function $max(p1:int, p2:int) returns (int); +function $min(p1:int, p2:int) returns (int); +function $umax(p1:int, p2:int) returns (int); +function $umin(p1:int, p2:int) returns (int); +function $i2b(i: int) returns (bool); +axiom (forall i:int :: $i2b(i) <==> i != 0); +axiom $i2b(0) == false; +function $b2i(b: bool) returns (int); +axiom $b2i(true) == 1; +axiom $b2i(false) == 0; + +// Floating point +type float; +function $fp(a:int) returns (float); +const $ffalse: float; +const $ftrue: float; +function $fadd(f1:float, f2:float) returns (float); +function $fsub(f1:float, f2:float) returns (float); +function $fmul(f1:float, f2:float) returns (float); +function $fdiv(f1:float, f2:float) returns (float); +function $frem(f1:float, f2:float) returns (float); +function $foeq(f1:float, f2:float) returns (bool); +function $foge(f1:float, f2:float) returns (bool); +function $fogt(f1:float, f2:float) returns (bool); +function $fole(f1:float, f2:float) returns (bool); +function $folt(f1:float, f2:float) returns (bool); +function $fone(f1:float, f2:float) returns (bool); +function $ford(f1:float, f2:float) returns (bool); +function $fueq(f1:float, f2:float) returns (bool); +function $fuge(f1:float, f2:float) returns (bool); +function $fugt(f1:float, f2:float) returns (bool); +function $fule(f1:float, f2:float) returns (bool); +function $fult(f1:float, f2:float) returns (bool); +function $fune(f1:float, f2:float) returns (bool); +function $funo(f1:float, f2:float) returns (bool); +function $fp2si(f:float) returns (int); +function $fp2ui(f:float) returns (int); +function $si2fp(i:int) returns (float); +function $ui2fp(i:int) returns (float); + +// Memory region declarations: 0 + +// SMACK Flat Memory Model + +function $ptr(obj:int, off:int) returns (int) {obj + off} +function $size(int) returns (int); +function $obj(int) returns (int); +function $off(ptr:int) returns (int) {ptr} + +var alloc: [int] bool; +var $CurrAddr:int; + +const unique $NULL: int; +axiom $NULL == 0; +const $UNDEF: int; + +function $pa(pointer: int, index: int, size: int) returns (int); +function $trunc(p: int) returns (int); +function $p2i(p: int) returns (int); +function $i2p(p: int) returns (int); +function $p2b(p: int) returns (bool); +function $b2p(b: bool) returns (int); + +axiom (forall p:int, i:int, s:int :: {$pa(p,i,s)} $pa(p,i,s) == p + i * s); +axiom (forall p:int :: $trunc(p) == p); + +axiom $b2p(true) == 1; +axiom $b2p(false) == 0; +axiom (forall i:int :: $p2b(i) <==> i != 0); +axiom $p2b(0) == false; +axiom (forall i:int :: $p2i(i) == i); +axiom (forall i:int :: $i2p(i) == i); +procedure __SMACK_nondet() returns (p: int); +procedure __SMACK_nondetInt() returns (p: int); + +procedure $malloc(obj_size: int) returns (new: int); +modifies $CurrAddr, alloc; +requires obj_size > 0; +ensures 0 < old($CurrAddr); +ensures new == old($CurrAddr); +ensures $CurrAddr > old($CurrAddr) + obj_size; +ensures $size(new) == obj_size; +ensures (forall x:int :: new <= x && x < new + obj_size ==> $obj(x) == new); +ensures alloc[new]; +ensures (forall x:int :: {alloc[x]} x == new || old(alloc)[x] == alloc[x]); + +procedure $free(pointer: int); +modifies alloc; +requires alloc[pointer]; +requires $obj(pointer) == pointer; +ensures !alloc[pointer]; +ensures (forall x:int :: {alloc[x]} x == pointer || old(alloc)[x] == alloc[x]); + +procedure $alloca(obj_size: int) returns (new: int); +modifies $CurrAddr, alloc; +requires obj_size > 0; +ensures 0 < old($CurrAddr); +ensures new == old($CurrAddr); +ensures $CurrAddr > old($CurrAddr) + obj_size; +ensures $size(new) == obj_size; +ensures (forall x:int :: new <= x && x < new + obj_size ==> $obj(x) == new); +ensures alloc[new]; +ensures (forall x:int :: {alloc[x]} x == new || old(alloc)[x] == alloc[x]); + +// SMACK-PRELUDE-END +// BEGIN SMACK-GENERATED CODE +const unique main: int; +axiom (main == -1024); +const unique __VERIFIER_assert: int; +axiom (__VERIFIER_assert == -2048); + +procedure main() + modifies alloc, $CurrAddr; +{ + var $p: int; + var $p1: int; + var $b: bool; + var $b2: bool; + var $p3: int; + var $p4: int; + var $p5: int; + var $p6: int; +$bb0: + assume {:sourceloc "cggmp2005_true-unreach-call.c", 9, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "cggmp2005_true-unreach-call.c", 10, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "cggmp2005_true-unreach-call.c", 11, 0} true; + $p := 10; + $p1 := 1; + goto $bb1; +$bb1: + assert b0($p1, $p); + + assume {:sourceloc "cggmp2005_true-unreach-call.c", 11, 0} true; + $b := $sge($p, $p1); + assume {:sourceloc "cggmp2005_true-unreach-call.c", 11, 0} true; + goto $bb4, $bb5; +$bb2: + assume {:sourceloc "cggmp2005_true-unreach-call.c", 12, 0} true; + $p5 := $add($p1, 2); + assume {:sourceloc "cggmp2005_true-unreach-call.c", 12, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "cggmp2005_true-unreach-call.c", 13, 0} true; + $p6 := $add(-1, $p); + assume {:sourceloc "cggmp2005_true-unreach-call.c", 13, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "cggmp2005_true-unreach-call.c", 14, 0} true; + $p := $p6; + $p1 := $p5; + goto $bb1; +$bb3: + assume {:sourceloc "cggmp2005_true-unreach-call.c", 15, 0} true; + $b2 := ($p == 6); + assume {:sourceloc "cggmp2005_true-unreach-call.c", 15, 0} true; + assert $b2; + assume {:sourceloc "cggmp2005_true-unreach-call.c", 16, 0} true; + return; +$bb4: + assume {:sourceloc "cggmp2005_true-unreach-call.c", 11, 0} true; + assume $b; + goto $bb2; +$bb5: + assume {:sourceloc "cggmp2005_true-unreach-call.c", 11, 0} true; + assume !($b); + goto $bb3; +} + +procedure __VERIFIER_assert#1(p0: int) + returns ($r: int) ; + modifies alloc, $CurrAddr; + +// END SMACK-GENERATED CODE diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/countud.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/countud.c new file mode 100644 index 000000000..147cba569 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/countud.c @@ -0,0 +1,17 @@ +#include "seahorn/seahorn.h" + +int main(int argc, char * argv[]) { + int n = unknown (); + if(n >= 0) { + + int x = n; + int y = 0; + + while (x > 0) { + x--; + y++; + } + + sassert(y == n); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d01.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d01.c new file mode 100644 index 000000000..2cf8e41ca --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d01.c @@ -0,0 +1,18 @@ +#include "seahorn/seahorn.h" + +int main(int argc, char * argv[]) { + int x, y; + + x = 1; + y = 1; + + while (unknown1()) { + int t1 = x; + int t2 = y; + x = t1 + t2; + y = t1 + t2; + } + + + sassert(y >= 1); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d03_not_from_hola.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d03_not_from_hola.c new file mode 100644 index 000000000..18544fbd3 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d03_not_from_hola.c @@ -0,0 +1,16 @@ +#include "seahorn/seahorn.h" + +extern int unknown (); +extern int unknown1 (); + +int main(int argc, char * argv[]) { + int k = 1; + int w = 1; + + while (unknown1()) { + if (unknown()) w++; + k += w; + } + + sassert(k > 0); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d05.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d05.c new file mode 100644 index 000000000..a69c734f1 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d05.c @@ -0,0 +1,23 @@ +#include "seahorn/seahorn.h" + +int main(int argc, char * argv[]) { + int x, y, i, j, flag; + + x = 0; + y = 0; + j = 0; + i = 0; + + flag = unknown (); + + while (unknown1()) { + x++; + y++; + i += x; + j += y; + if (flag != 0) j += 1; + j = j; + } + + sassert(j > i - 1); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d07_not_from_hola.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d07_not_from_hola.c new file mode 100644 index 000000000..bd0af8479 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d07_not_from_hola.c @@ -0,0 +1,19 @@ +#include "seahorn/seahorn.h" + +extern int unknown (); + +int main(int argc, char * argv[]) { + int i = 0; + int j = 0; + + int n = unknown (); + if (n >= 0) { + + while (i < n) { + i++; + j++; + } + + sassert(j < n + 1); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d12.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d12.c new file mode 100644 index 000000000..b672e1536 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d12.c @@ -0,0 +1,44 @@ +#include "seahorn/seahorn.h" + +int main(int argc, char * argv[]) { + int a, b, x, y, s, t, flag; + + x = unknown(); + y = unknown(); + flag = unknown(); + + t = 0; + s = 0; + a = 0; + b = 0; + + while (unknown1()) { + a++; + b++; + s += a; + t += b; + if (flag != 0) { + t += a; + } + t = t; + } + + // 2s >= t + x = 1; + if (flag != 0) { + x = t - 2 * s + 2; + } + + // x <= 2 + y = 0; + while (y <= x) { + if (unknown2()) + y++; + else + y += 2; + y = y; + } + + sassert(y < 5); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d15.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d15.c new file mode 100644 index 000000000..82395ccec --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d15.c @@ -0,0 +1,26 @@ +#include "seahorn/seahorn.h" + +int main(int argc, char * argv[]) { + int i, j, k, n; + + k = unknown (); + n = unknown (); + + if (k >= n && n >= 1) { + + + int i = unknown1 (); + + j = 0; + while (j <= n - 1) { + j++; + k--; + } + + if (j >= n) { + sassert(k > -1); + } + } + + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d17.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d17.c new file mode 100644 index 000000000..e5885f6ff --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d17.c @@ -0,0 +1,23 @@ +#include "seahorn/seahorn.h" + +int main(int argc, char * argv[]) { + int i, j, k, n; + + n = unknown (); + + k = 1; + i = 1; + j = 0; + + while (i <= n - 1) { + j = 0; + while (j <= i - 1) { + k += (i - j); + j++; + } + + i++; + } + + sassert(k > n - 1); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d19.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d19.c new file mode 100644 index 000000000..98f92a0b7 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d19.c @@ -0,0 +1,25 @@ +#include "seahorn/seahorn.h" + +int main(int argc, char * argv[]) { + int x, y, n, m; + + n = unknown (); + if (n >= 0) { + + m = unknown (); + if (m >= 0 && m < n) { + + x = 0; + y = m; + + while (x < n) { + x++; + if (x >= m + 1) + y++; + x = x; + } + + sassert(y < n + 1); + } + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d24.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d24.c new file mode 100644 index 000000000..232543e5e --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d24.c @@ -0,0 +1,20 @@ +#include "seahorn/seahorn.h" + +int main(int argc, char* argv[]) { + int i, j, k, n; + + j = unknown (); + k = unknown (); + n = unknown (); + + for (i = 0; i < n; i++) { + for (j = i; j < n; j++) { + for (k = j; k < n; k++) { + sassert(k >= i); + } + } + } + + sassert(1); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d25.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d25.c new file mode 100644 index 000000000..8744935ca --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d25.c @@ -0,0 +1,28 @@ +#include "seahorn/seahorn.h" + +int main(int argc, char* argv[]) { + int i, j, x, y; + + x = 0; + y = 0; + i = 0; + j = 0; + + while (unknown1()) { + while (unknown2()) { + if (x == y) + i++; + else + j++; + } + + if (i >= j) { + x++; + y++; + } else + y++; + } + + sassert(i > j - 1); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d28.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d28.c new file mode 100644 index 000000000..5478f00f5 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d28.c @@ -0,0 +1,22 @@ +#include "seahorn/seahorn.h" + +int main(int argc, char* argv[]) { + int n, x, y; + + x = 0; + y = 0; + n = 0; + + while (unknown1()) { + x++; + y++; + } + + while (x <= n - 1 || x >= n + 1) { + x--; + y--; + } + + sassert(x != n || y == n); + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/dec.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/dec.bpl new file mode 100644 index 000000000..2c28f5620 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/dec.bpl @@ -0,0 +1,16 @@ +function {:existential true} b0(x:int, m: int): bool; + + +procedure main() +{ + var x, m: int; + x := 100; + while (x > 0) + invariant b0(x, m); + { + havoc m; + x := x - 1; + } + assert x == 0; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/dec.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/dec.c new file mode 100644 index 000000000..ac5b7938a --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/dec.c @@ -0,0 +1,21 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + +main() +{ + int x, m; + x = 100; + while(x > 0) + { + m = __VERIFIER_nondet_int(); + x = x - 1; + } + __VERIFIER_assert(x == 0); +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/decn.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/decn.bpl new file mode 100644 index 000000000..d4781326d --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/decn.bpl @@ -0,0 +1,16 @@ +function {:existential true} b0(x:int, N: int): bool; + + +procedure main() +{ + var x, m: int; + var N: int; + x := N; + while (x > 0) + invariant b0(x, N); + { + x := x - 1; + } + assert N < 0 || x == 0; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/decn.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/decn.c new file mode 100644 index 000000000..4528dedf9 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/decn.c @@ -0,0 +1,25 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + +void main() +{ + int x, m, N; + N = __VERIFIER_nondet_int(); + if (N < 0) + return; + + x = N; + while(x > 0) + { + x = x - 1; + } + __VERIFIER_assert(x == 0); + //__VERIFIER_assert(N < 0 || x == 0); +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/decn.v.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/decn.v.bpl new file mode 100644 index 000000000..1ca3557b1 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/decn.v.bpl @@ -0,0 +1,22 @@ +function {:existential true} b0(x:int, N: int, v1: int, v2: int, v3: int): bool; + + +procedure main() +{ + var x, m: int; + var N: int; + var v1, v2, v3: int; + + x := N; + while (x > 0) + invariant b0(x, N, v1, v2, v3); + //invariant (x <= -1 && N <= -1) || x > -1; + { + x := x - 1; + havoc v1; + havoc v2; + havoc v3; + } + assert N < 0 || x == 0; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/dtuc.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/dtuc.c new file mode 100644 index 000000000..c94673566 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/dtuc.c @@ -0,0 +1,28 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} +extern int unknown(); + +int main() { + int n = unknown(), k, i, j; + + k = 0; + i = 0; + + while(i < n) + { + i = i + 1; + k = k + 1; + } + j = n; + while(j > 0) + { + __VERIFIER_assert(k > 0); + j = j - 1; + k = k - 1; + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/dutc.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/dutc.c new file mode 100644 index 000000000..32cfef4da --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/dutc.c @@ -0,0 +1,29 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + +int main() { + int n = __VERIFIER_nondet_int(), k, i, j; + + k = 0; + i = 0; + + while(i < n) + { + i = i + 1; + k = k + 1; + } + j = n; + while(j > 0) + { + __VERIFIER_assert(k > 0); + j = j - 1; + k = k - 1; + } +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex14.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex14.bpl new file mode 100644 index 000000000..17c7232b5 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex14.bpl @@ -0,0 +1,22 @@ +function {:existential true} b0(x:int, y:int): bool; + +procedure main() +{ + var x, y: int; + var a: [int]int; + + x := 1; + + while (x <= 10) + invariant b0(x,y); + { + y := 10 - x; + if (y < 0 || y >= 10) + { + assert false; + } + a[y] := -1; + x := x + 1; + } +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex14.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex14.c new file mode 100644 index 000000000..d0ce3a0fc --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex14.c @@ -0,0 +1,29 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + +int main() { + + int x,y; + int a[10]; + x=1; + + while (x <= 10){ + y=10-x; + + if(y < 0 || y >= 10) + __VERIFIER_assert(0 == 1); + + a[y] = -1; + x++; + + } + + return 1; + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex14n.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex14n.bpl new file mode 100644 index 000000000..3aea765f9 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex14n.bpl @@ -0,0 +1,23 @@ +function {:existential true} b0(x:int, y:int): bool; + +procedure main() +{ + var x, y: int; + var a: [int]int; + var N: int; + + x := 1; + + while (x <= N) + invariant b0(x,y); + { + y := N - x; + if (y < 0 || y >= N) + { + assert false; + } + a[y] := -1; + x := x + 1; + } +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex14n.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex14n.c new file mode 100644 index 000000000..e091da569 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex14n.c @@ -0,0 +1,30 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + +int main() { + + int x,y,N; + int *a; + x=1; + N = __VERIFIER_nondet_int(); + while (x <= N){ + y=N-x; + + if(y < 0 || y >= N) + __VERIFIER_assert(0 == 1); + + //Comment because it is unsafe given that a is not initialized. + //a[y] = -1; + x++; + + } + + return 1; + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex14n.v.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex14n.v.bpl new file mode 100644 index 000000000..3597d79dd --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex14n.v.bpl @@ -0,0 +1,27 @@ +function {:existential true} b0(x:int, y:int, v1: int, v2: int, v3: int): bool; + +procedure main() +{ + var x, y: int; + var a: [int]int; + var N: int; + var v1, v2, v3: int; + + x := 1; + + while (x <= N) + invariant b0(x,y, v1, v2, v3); + { + y := N - x; + if (y < 0 || y >= N) + { + assert false; + } + a[y] := -1; + x := x + 1; + havoc v1; + havoc v2; + havoc v3; + } +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex14n.v.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex14n.v.c new file mode 100644 index 000000000..b5732c8fc --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex14n.v.c @@ -0,0 +1,33 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + +int main() { + + int x,y,N, v1, v2, v3; + //int *a; + x=1; + N = __VERIFIER_nondet_int(); + while (x <= N){ + y=N-x; + + if(y < 0 || y >= N) + __VERIFIER_assert(0 == 1); + + // Comment because it is unsafe as a is not even intialized. + //a[y] = -1; + x++; + v1 = v2; + v2 = v3; + v3 = v1; + + } + + return 1; + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex23.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex23.bpl new file mode 100644 index 000000000..d7daa3757 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex23.bpl @@ -0,0 +1,36 @@ +function {:existential true} b0(y:int, z:int, c:int): bool; + +var x: [int]int; +var y: int; + +procedure main() +modifies x, y; +{ + var c, z: int; + c := 0; + + if(127 < y) + { + goto exit; + } + if (y < 0) + { + goto exit; + } + z := y * 36; + while (c < 36) + invariant b0(y,z,c); + // 0 <= y inferred automatically since y is not modified inside the loop ! + { + if (z < 0 || z >= 4608) + { + assert false; + } + x[z] := 0; + z := z + 1; + c := c + 1; + } + +exit: +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex23.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex23.c new file mode 100644 index 000000000..9072ac722 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex23.c @@ -0,0 +1,35 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + +int x[4608]; + +//pre: true +int main() { + + int y = __VERIFIER_nondet_int(); + int counter = 0; + int z = __VERIFIER_nondet_int(); + + if ( 127 < y) return 0; + if ( y < 0) return 0; + z = y * 36; + + while (counter < 36){ + + if(z < 0 || z >= 4608) + __VERIFIER_assert( 0 == 1 ); + + x[z] = 0; + z++; + counter++; + } + + return 1; + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex23.v.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex23.v.bpl new file mode 100644 index 000000000..62ca3344c --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex23.v.bpl @@ -0,0 +1,41 @@ +function {:existential true} b0(y:int, z:int, c:int, v1: int, v2: int, v3: int): bool; + +var x: [int]int; +var y: int; + +procedure main() +modifies x, y; +{ + var c, z: int; + var v1, v2, v3: int; + + c := 0; + + if(127 < y) + { + goto exit; + } + if (y < 0) + { + goto exit; + } + z := y * 36; + while (c < 36) + invariant b0(y,z,c, v1, v2, v3); + // 0 <= y inferred automatically since y is not modified inside the loop ! + { + if (z < 0 || z >= 4608) + { + assert false; + } + x[z] := 0; + z := z + 1; + c := c + 1; + havoc v1; + havoc v2; + havoc v3; + } + +exit: +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex23.v.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex23.v.c new file mode 100644 index 000000000..dcab17a31 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex23.v.c @@ -0,0 +1,40 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + +int __VERIFIER_nondet_int(); + +int x[4608]; + +//pre: true +int main() { + + int y = __VERIFIER_nondet_int(); + int counter = 0; + int z = __VERIFIER_nondet_int(), v1,v2,v3; + + if ( 127 < y) return 0; + if ( y < 0) return 0; + z = y * 36; + + while (counter < 36){ + + if(z < 0 || z >= 4608) + __VERIFIER_assert( 0 == 1 ); + + x[z] = 0; + z++; + counter++; + v1 = __VERIFIER_nondet_int(); + v2 = __VERIFIER_nondet_int(); + v3 = __VERIFIER_nondet_int(); + } + + return 1; + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex7.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex7.bpl new file mode 100644 index 000000000..f8d9bc595 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex7.bpl @@ -0,0 +1,32 @@ +function {:existential true} b0(i:int, y:int, len:int): bool; + +var x: int; +var y: int; + +procedure main() +modifies x, y; +{ + var a: [int]int; + + var i, len: int; + if (x < 0 || y < 0 || y > x) + { + goto exit; + } + + len := x; + i := 0; + while (i < y) + invariant b0(i, y, len); + // invariant y <= len is automatically inferred because y, len are not modified inside the loop ! + { + if(i < 0 || i >= len) + { + assert (false); + } + a[i] := 0; + i := i + 1; + } +exit: +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex7.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex7.c new file mode 100644 index 000000000..d4619b8e7 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex7.c @@ -0,0 +1,43 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + +int* foo() { + + int x = __VERIFIER_nondet_int(), y = __VERIFIER_nondet_int(); + int* a; + int i; + int len; // Instrumented to track the size of the array + + if ( x < 0 || y < 0 || y > x ) return (int *) 0; + + //a = (int*) malloc( x * sizeof(int)); + len = x; + + //if (a == 0 ) exit(1); + + for (i=0; i < y ; ++i){ + //a[i] = 0; + } + + i = 0; + while (i < y) { + + if(i < 0 || i >= len) + __VERIFIER_assert (0 == 1); + i++; + } + + return a; + +} + +int main() +{ + foo(); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex7.v.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex7.v.bpl new file mode 100644 index 000000000..569a81aa1 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex7.v.bpl @@ -0,0 +1,33 @@ +function {:existential true} b0(i:int, y:int, len:int, v1: int, v2: int, v3: int): bool; + +var x: int; +var y: int; + +procedure main() +modifies x, y; +{ + var a: [int]int; + var v1, v2, v3: int; + + var i, len: int; + if (x < 0 || y < 0 || y > x) + { + goto exit; + } + + len := x; + i := 0; + while (i < y) + invariant b0(i, y, len, v1, v2, v3); + // invariant y <= len is automatically inferred because y, len are not modified inside the loop ! + { + if(i < 0 || i >= len) + { + assert (false); + } + a[i] := 0; + i := i + 1; + } +exit: +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex7n.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex7n.c new file mode 100644 index 000000000..1a83369df --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex7n.c @@ -0,0 +1,47 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + + +int* foo() { + + int x = __VERIFIER_nondet_int(), y = __VERIFIER_nondet_int(); + int* a; + int i, v1,v2,v3; + int len; // Instrumented to track the size of the array + + if ( x < 0 || y < 0 || y > x ) return (int *) 0; + + //a = (int*) malloc( x * sizeof(int)); + len = x; + + //if (a == 0 ) exit(1); + + for (i=0; i < y ; ++i){ + //a[i] = 0; + } + + i = 0; + while (i < y) { + + if(i < 0 || i >= len) + __VERIFIER_assert (0 == 1); + i++; + v1 = __VERIFIER_nondet_int(); + v2 = __VERIFIER_nondet_int(); + v3 = __VERIFIER_nondet_int(); + } + + return a; + +} + +int main() +{ + foo(); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig1.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig1.bpl new file mode 100644 index 000000000..75e2b80f7 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig1.bpl @@ -0,0 +1,19 @@ +function {:existential true} b0(x:int, y:int): bool; + +var y: int; + + +procedure main() +modifies y; +{ + var x: int; + x := -1; + while (x < 0) + invariant b0(x, y); + { + x := x + y; + y := y + 1; + } + assert y > 0; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig1.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig1.c new file mode 100644 index 000000000..0e565bfa8 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig1.c @@ -0,0 +1,23 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + +//pre: true +int main() { + + int x = -50; + int y; + + while (x < 0) { + x = x + y; + y++; + + } + __VERIFIER_assert(y > 0); + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig1.v.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig1.v.bpl new file mode 100644 index 000000000..04ac56a28 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig1.v.bpl @@ -0,0 +1,24 @@ +function {:existential true} b0(x:int, y:int, v1: int, v2: int, v3: int): bool; + +var y: int; + + +procedure main() +modifies y; +{ + var x: int; + var v1, v2, v3: int; + + x := -1; + while (x < 0) + invariant b0(x, y, v1, v2, v3); + { + x := x + y; + y := y + 1; + havoc v1; + havoc v2; + havoc v3; + } + assert y > 0; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig1.v.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig1.v.c new file mode 100644 index 000000000..0e488d041 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig1.v.c @@ -0,0 +1,26 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + +//pre: true +int main() { + + int x = -50; + int y, v1,v2,v3; + + while (x < 0) { + x = x + y; + y++; + v1 = __VERIFIER_nondet_int(); + v2 = __VERIFIER_nondet_int(); + v3 = __VERIFIER_nondet_int(); + + } + __VERIFIER_assert(y > 0); + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig3.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig3.bpl new file mode 100644 index 000000000..1c5013518 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig3.bpl @@ -0,0 +1,32 @@ +function {:existential true} b0(x:int, y:int, lock:int): bool; + +var y: int; + +procedure main() +modifies y; +{ + var x, lock: int; + lock := 0; + + lock := 1; + x := y; + if (*) + { + lock := 0; + y := y + 1; + } + + while (x != y) + invariant b0(x, y, lock); + { + lock := 1; + x := y; + if (*) + { + lock := 0; + y := y + 1; + } + } + assert lock == 1; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig3.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig3.c new file mode 100644 index 000000000..780083a53 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig3.c @@ -0,0 +1,46 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + +//pre: true +int main() { + + int y = __VERIFIER_nondet_int(); + int lock; + lock = 0; + int x = __VERIFIER_nondet_int(); + int input; + + // Converting do-while to a while loop by stripping the first iteration + { + lock = 1; + x = y; + input = __VERIFIER_nondet_int(); + if( input ) { + + lock = 0; + y = y + 1; + } + } + + while(x != y) { + + lock = 1; + x = y; + input = __VERIFIER_nondet_int(); + if ( input ) { + + lock = 0; + y = y + 1; + } + } + + __VERIFIER_assert(lock == 1); + +} +//post: lock = 1 diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig3.v.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig3.v.bpl new file mode 100644 index 000000000..56b88426a --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig3.v.bpl @@ -0,0 +1,41 @@ +function {:existential true} b0(x:int, y:int, lock:int, v1: int, v2: int, v3: int): bool; + +var y: int; + +procedure main() +modifies y; +{ + var x, lock: int; + var v1, v2, v3: int; + + lock := 0; + + lock := 1; + x := y; + if (*) + { + lock := 0; + y := y + 1; + } + havoc v1; + havoc v2; + havoc v3; + + while (x != y) + invariant b0(x, y, lock, v1, v2, v3); + { + lock := 1; + x := y; + if (*) + { + lock := 0; + y := y + 1; + } + havoc v1; + havoc v2; + havoc v3; + + } + assert lock == 1; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig3.v.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig3.v.c new file mode 100644 index 000000000..5020e93fa --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig3.v.c @@ -0,0 +1,53 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + +//pre: true +int main() { + + int y = __VERIFIER_nondet_int(); + int lock, v1,v2,v3; + lock = 0; + int x = __VERIFIER_nondet_int(); + int input; + + // Converting do-while to a while loop by stripping the first iteration + { + lock = 1; + x = y; + input = __VERIFIER_nondet_int(); + if( input ) { + + lock = 0; + y = y + 1; + } + v1 = __VERIFIER_nondet_int(); + v2 = __VERIFIER_nondet_int(); + v3 = __VERIFIER_nondet_int(); + + } + + while(x != y) { + + lock = 1; + x = y; + input = __VERIFIER_nondet_int(); + if ( input ) { + + lock = 0; + y = y + 1; + } + v1 = __VERIFIER_nondet_int(); + v2 = __VERIFIER_nondet_int(); + v3 = __VERIFIER_nondet_int(); + } + + __VERIFIER_assert(lock == 1); + +} +//post: lock = 1 diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig9.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig9.bpl new file mode 100644 index 000000000..80e233f1f --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig9.bpl @@ -0,0 +1,16 @@ +function {:existential true} b0(x:int, y:int): bool; + +procedure main() +{ + var x, y: int; + x := 0; + y := 0; + + while (y >= 0) + invariant b0(x,y); + { + y := y + x; + } + assert false; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig9.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig9.c new file mode 100644 index 000000000..021e88f75 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig9.c @@ -0,0 +1,26 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + + +//pre: true +int main() { + + int x, y; + x = 0; + y = 0; + + while(y >= 0) { + + y = y + x; + + } + + __VERIFIER_assert(0 == 1); + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig9.v.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig9.v.bpl new file mode 100644 index 000000000..aeb982049 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig9.v.bpl @@ -0,0 +1,22 @@ +function {:existential true} b0(x:int, y:int, v1: int, v2: int, v3: int): bool; + +procedure main() +{ + var x, y: int; + var v1, v2, v3: int; + + x := 0; + y := 0; + + while (y >= 0) + invariant b0(x,y, v1, v2, v3); + { + y := y + x; + havoc v1; + havoc v2; + havoc v3; + + } + assert false; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig9.v.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig9.v.c new file mode 100644 index 000000000..f154d4c6b --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig9.v.c @@ -0,0 +1,29 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + + +//pre: true +int main() { + + int x, y, v1,v2,v3; + x = 0; + y = 0; + + while(y >= 0) { + + y = y + x; + v1 = __VERIFIER_nondet_int(); + v2 = __VERIFIER_nondet_int(); + v3 = __VERIFIER_nondet_int(); + + } + + __VERIFIER_assert(0 == 1); + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form22.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form22.bpl new file mode 100644 index 000000000..cdb0e00ac --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form22.bpl @@ -0,0 +1,44 @@ +function {:existential true} b0(x1:int, x2:int, x3:int): bool; + +procedure main() +{ + + var x1, x2, x3, x4, x5, x6, x7, x8: int; + var x1', x2', x3', x4', x5', x6', x7', x8': int; + + x1 := 0; + x2 := 0; + x3 := 0; + x4 := 0; + x5 := 0; + x6 := 0; + x7 := 0; + x8 := 0; + + while(*) + invariant b0(x1, x2, x3); + { + havoc x1'; + havoc x2'; + havoc x3'; + havoc x4'; + havoc x5'; + havoc x6'; + havoc x7'; + havoc x8'; + + if(x1' <= x2' && (x2' >= 0 || x2' - x3' <= 2)) + { + x1 := x1'; + x2 := x2'; + x3 := x3'; + x4 := x4'; + x5 := x5'; + x6 := x6'; + x7 := x7'; + x8 := x8'; + } + } + assert(x1 <= x2 && (x2 >= 0 || x2 - x3 <= 2)); +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form22.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form22.c new file mode 100644 index 000000000..cc35d4f7b --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form22.c @@ -0,0 +1,33 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + +main() +{ + int x1,x2,x3; + int x1p,x2p,x3p, input; + + x1 = x2 = x3 = 0; + input = __VERIFIER_nondet_int(); + while(input) + { + x1p = __VERIFIER_nondet_int(); + x2p = __VERIFIER_nondet_int(); + x3p = __VERIFIER_nondet_int(); + + if (x1p <= x2p && (x2p >= 0 || x2p - x3p <= 2)) + { + x1 = x1p; + x2 = x2p; + x3 = x3p; + } + input = __VERIFIER_nondet_int(); + } + __VERIFIER_assert(x1 <= x2 && (x2 >= 0 || x2 - x3 <= 2)); +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form25.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form25.bpl new file mode 100644 index 000000000..1b11df0ef --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form25.bpl @@ -0,0 +1,44 @@ +function {:existential true} b0(x1:int, x2:int, x3:int, x4: int): bool; + +procedure main() +{ + + var x1, x2, x3, x4, x5, x6, x7, x8: int; + var x1', x2', x3', x4', x5', x6', x7', x8': int; + + x1 := 0; + x2 := 0; + x3 := 0; + x4 := -1; + x5 := 0; + x6 := 0; + x7 := 0; + x8 := 0; + + while(*) + invariant b0(x1, x2, x3, x4); + { + havoc x1'; + havoc x2'; + havoc x3'; + havoc x4'; + havoc x5'; + havoc x6'; + havoc x7'; + havoc x8'; + + if(x1' <= 0 && x1' >= x4' + 1 && x2' == x3' && (x4' >= 0 || x4' <= x3')) + { + x1 := x1'; + x2 := x2'; + x3 := x3'; + x4 := x4'; + x5 := x5'; + x6 := x6'; + x7 := x7'; + x8 := x8'; + } + } + assert(x1 <= 0 && x1 >= x4 + 1 && x2 == x3 && (x4 >= 0 || x4 <= x3)); +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form25.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form25.c new file mode 100644 index 000000000..650290c23 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form25.c @@ -0,0 +1,35 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + +main() +{ + int x1,x2,x3,x4; + int x1p,x2p,x3p,x4p, input; + + x1 = x2 = x3 = 0; x4 = -1; + input = __VERIFIER_nondet_int(); + while(input) + { + x1p = __VERIFIER_nondet_int(); + x2p = __VERIFIER_nondet_int(); + x3p = __VERIFIER_nondet_int(); + x4p = __VERIFIER_nondet_int(); + + if (x1p <= 0 && x1p >= x4p + 1 && x2p == x3p && (x4p >= 0 || x4p <= x3p)) + { + x1 = x1p; + x2 = x2p; + x3 = x3p; + x4 = x4p; + } + input = __VERIFIER_nondet_int(); + } + __VERIFIER_assert(x1 <= 0 && x1 >= x4 + 1 && x2 == x3 && (x4 >= 0 || x4 <= x3)); +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form27.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form27.bpl new file mode 100644 index 000000000..725af5dd0 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form27.bpl @@ -0,0 +1,44 @@ +function {:existential true} b0(x1:int, x2:int, x3:int, x4: int, x5: int): bool; + +procedure main() +{ + + var x1, x2, x3, x4, x5, x6, x7, x8: int; + var x1', x2', x3', x4', x5', x6', x7', x8': int; + + x1 := 0; + x2 := 0; + x3 := 0; + x4 := 0; + x5 := 0; + x6 := 0; + x7 := 0; + x8 := 0; + + while(*) + invariant b0(x1, x2, x3, x4, x5); + { + havoc x1'; + havoc x2'; + havoc x3'; + havoc x4'; + havoc x5'; + havoc x6'; + havoc x7'; + havoc x8'; + + if(0 <= x1' && x1' <= x4' + 1 && x2' == x3' && (x2' <= -1 || x4' <= x2' + 2) && x5' == 0) + { + x1 := x1'; + x2 := x2'; + x3 := x3'; + x4 := x4'; + x5 := x5'; + x6 := x6'; + x7 := x7'; + x8 := x8'; + } + } + assert(0 <= x1 && x1 <= x4 + 1 && x2 == x3 && (x2 <= -1 || x4 <= x2 + 2) && x5 == 0); +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form27.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form27.c new file mode 100644 index 000000000..72adb0e65 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form27.c @@ -0,0 +1,37 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + +main() +{ + int x1,x2,x3,x4,x5; + int x1p,x2p,x3p,x4p,x5p, input; + + x1 = x2 = x3 = x4 = x5 = 0; + input = __VERIFIER_nondet_int(); + while(input) + { + x1p = __VERIFIER_nondet_int(); + x2p = __VERIFIER_nondet_int(); + x3p = __VERIFIER_nondet_int(); + x4p = __VERIFIER_nondet_int(); + x5p = __VERIFIER_nondet_int(); + + if (0 <= x1p && x1p <= x4p + 1 && x2p == x3p && (x2p <= -1 || x4p <= x2p + 2) && x5p == 0) + { + x1 = x1p; + x2 = x2p; + x3 = x3p; + x4 = x4p; + x5 = x5p; + } + input = __VERIFIER_nondet_int(); + } + __VERIFIER_assert(0 <= x1 && x1 <= x4 + 1 && x2 == x3 && (x2 <= -1 || x4 <= x2 + 2) && x5 == 0); +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/inc.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/inc.bpl new file mode 100644 index 000000000..f11655c4e --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/inc.bpl @@ -0,0 +1,16 @@ +function {:existential true} b0(x:int, m: int): bool; + + +procedure main() +{ + var x, m: int; + x := 0; + while (x < 100) + invariant b0(x, m); + { + havoc m; + x := x + 1; + } + assert x == 100; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/inc.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/inc.c new file mode 100644 index 000000000..e236b6576 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/inc.c @@ -0,0 +1,21 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + +main() +{ + int x, m; + x = 0; + while(x < 100) + { + m = __VERIFIER_nondet_int(); + x = x + 1; + } + __VERIFIER_assert(x == 100); +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/incn.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/incn.bpl new file mode 100644 index 000000000..669661db2 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/incn.bpl @@ -0,0 +1,15 @@ +function {:existential true} b0(x:int, N: int): bool; + + +procedure main() +{ + var x, N: int; + x := 0; + while (x < N) + invariant b0(x, N); + { + x := x + 1; + } + assert N < 0 || x == N; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/incn.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/incn.c new file mode 100644 index 000000000..5919c3c38 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/incn.c @@ -0,0 +1,25 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + +void main() +{ + int x, N; + x = 0; + N = __VERIFIER_nondet_int(); + if (N < 0) + return; + + while(x < N) + { + x = x + 1; + } + __VERIFIER_assert(x == N); + return; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/incn.v.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/incn.v.bpl new file mode 100644 index 000000000..c2d9471a7 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/incn.v.bpl @@ -0,0 +1,20 @@ +function {:existential true} b0(x:int, N: int, v1: int, v2: int, v3: int): bool; + + +procedure main() +{ + var x, N: int; + var v1, v2, v3: int; + + x := 0; + while (x < N) + invariant b0(x, N, v1, v2, v3); + { + x := x + 1; + havoc v1; + havoc v2; + havoc v3; + } + assert N < 0 || x == N; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/incn.v.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/incn.v.c new file mode 100644 index 000000000..51a6305f9 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/incn.v.c @@ -0,0 +1,24 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + +main() +{ + int x, N, v1,v2,v3; + x = 0; + N = __VERIFIER_nondet_int(); + while(x < N) + { + x = x + 1; + v1 = __VERIFIER_nondet_int(); + v2 = __VERIFIER_nondet_int(); + v3 = __VERIFIER_nondet_int(); + } + __VERIFIER_assert(N < 0 || x == N); +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/loops.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/loops.c new file mode 100644 index 000000000..6fc428c96 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/loops.c @@ -0,0 +1,22 @@ +#include "seahorn/seahorn.h" + +int main(int argc, char* argv[]) +{ + int x = unknown (); + if (x >= 0) { + + int y = unknown (); + + int s = 0; + while (s < x) { + s++; + } + + y = 0; + while (y < s) { + y++; + } + + sassert(x == y); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/n_c11.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/n_c11.c new file mode 100644 index 000000000..2b1746224 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/n_c11.c @@ -0,0 +1,33 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + +int main() { + + int a[5]; + int len = 0; + int i; + int input = __VERIFIER_nondet_int(); + + while ( input ) { + + if (len == 4) + len = 0; + + if (len < 0 || len >= 5) + __VERIFIER_assert( 0 == 1); + + len++; + + input = __VERIFIER_nondet_int(); + } + + return 1; + +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/n_c11n.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/n_c11n.c new file mode 100644 index 000000000..2bd2c0886 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/n_c11n.c @@ -0,0 +1,36 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + +void main() { + + int a[5]; + int len = 0; + int i, N; + int input = __VERIFIER_nondet_int(); + + if (N <= 0) + return; + + while ( input ) { + + if (len == N) + len = 0; + + if (len < 0 || len >= N+1) + __VERIFIER_assert( 0 == 1); + + len++; + + input = __VERIFIER_nondet_int(); + } + + return; + +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/n_c11n.v.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/n_c11n.v.c new file mode 100644 index 000000000..41277ffc2 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/n_c11n.v.c @@ -0,0 +1,39 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + +void main() { + + int a[5]; + int len = 0; + int i, N, v1,v2,v3; + int input = __VERIFIER_nondet_int(); + + if (N <= 0) + return; + + while ( input ) { + + if (len == N) + len = 0; + + if (len < 0 || len > N) + __VERIFIER_assert( 0 == 1); + + len++; + + input = __VERIFIER_nondet_int(); + v1 = __VERIFIER_nondet_int(); + v2 = __VERIFIER_nondet_int(); + v3 = __VERIFIER_nondet_int(); + } + + return; + +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/nc11.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/nc11.bpl new file mode 100644 index 000000000..69ff06dde --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/nc11.bpl @@ -0,0 +1,23 @@ +function {:existential true} b0(i:int, len:int): bool; + +procedure main() +{ + var len, i: int; + var a: [int]int; + len := 0; + + while ( * ) + invariant b0(i,len); + { + if (len == 4) + { + len := 0; + } + if (len < 0 || len >= 5) + { + assert false; + } + len := len + 1; + } +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/nc11n.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/nc11n.bpl new file mode 100644 index 000000000..a13e04c94 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/nc11n.bpl @@ -0,0 +1,25 @@ +function {:existential true} b0(i:int, len:int, N: int): bool; + +procedure main() +{ + var len, i: int; + var N: int; + var a: [int]int; + len := 0; + + assume N > 0; + while ( * ) + invariant b0(i,len,N); + { + if (len == N) + { + len := 0; + } + if (len < 0 || len >= N + 1) + { + assert false; + } + len := len + 1; + } +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/nc11n.v.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/nc11n.v.bpl new file mode 100644 index 000000000..79340ba4c --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/nc11n.v.bpl @@ -0,0 +1,30 @@ +function {:existential true} b0(i:int, len:int, N: int, v1: int, v2: int, v3: int): bool; + +procedure main() +{ + var len, i: int; + var N: int; + var v1, v2, v3: int; + + var a: [int]int; + len := 0; + + assume N > 0; + while ( * ) + invariant b0(i,len,N,v1,v2,v3); + { + if (len == N) + { + len := 0; + } + if (len < 0 || len > N) + { + assert false; + } + len := len + 1; + havoc v1; + havoc v2; + havoc v3; + } +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01.c new file mode 100644 index 000000000..a717a9704 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01.c @@ -0,0 +1,16 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} +#define a (1) +int main() { + int i, n=__VERIFIER_nondet_int(), sn=0; + for(i=1; i<=n; i++) { + sn = sn + a; + } + __VERIFIER_assert(sn==n*a || sn == 0); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01.c.cleanup.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01.c.cleanup.bpl new file mode 100644 index 000000000..c4e2efd50 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01.c.cleanup.bpl @@ -0,0 +1,416 @@ +procedure boogie_si_record_int(i: int); + +function {:existential true} b0(i:int, n:int, sn:int): bool; + + +function $add(p1: int, p2: int) : int; + +axiom (forall p1: int, p2: int :: { $add(p1, p2): int } $add(p1, p2): int == p1 + p2); + +function $sub(p1: int, p2: int) : int; + +axiom (forall p1: int, p2: int :: { $sub(p1, p2): int } $sub(p1, p2): int == p1 - p2); + +function $mul(p1: int, p2: int) : int; + +axiom (forall p1: int, p2: int :: { $mul(p1, p2): int } $mul(p1, p2): int == p1 * p2); + +function $sdiv(p1: int, p2: int) : int; + +function $udiv(p1: int, p2: int) : int; + +function $srem(p1: int, p2: int) : int; + +function $urem(p1: int, p2: int) : int; + +function $and(p1: int, p2: int) : int; + +axiom $and(0, 0) == 0; + +axiom $and(0, 1) == 0; + +axiom $and(1, 0) == 0; + +axiom $and(1, 1) == 1; + +function $or(p1: int, p2: int) : int; + +axiom $or(0, 0) == 0; + +axiom $or(0, 1) == 1; + +axiom $or(1, 0) == 1; + +axiom $or(1, 1) == 1; + +function $xor(p1: int, p2: int) : int; + +axiom $xor(0, 0) == 0; + +axiom $xor(0, 1) == 1; + +axiom $xor(1, 0) == 1; + +axiom $xor(1, 1) == 0; + +function $lshr(p1: int, p2: int) : int; + +function $ashr(p1: int, p2: int) : int; + +function $shl(p1: int, p2: int) : int; + +function $ult(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $ult(p1, p2): bool } $ult(p1, p2): bool == (p1 < p2)); + +function $ugt(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $ugt(p1, p2): bool } $ugt(p1, p2): bool == (p1 > p2)); + +function $ule(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $ule(p1, p2): bool } $ule(p1, p2): bool == (p1 <= p2)); + +function $uge(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $uge(p1, p2): bool } $uge(p1, p2): bool == (p1 >= p2)); + +function $slt(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $slt(p1, p2): bool } $slt(p1, p2): bool == (p1 < p2)); + +function $sgt(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $sgt(p1, p2): bool } $sgt(p1, p2): bool == (p1 > p2)); + +function $sle(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $sle(p1, p2): bool } $sle(p1, p2): bool == (p1 <= p2)); + +function $sge(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $sge(p1, p2): bool } $sge(p1, p2): bool == (p1 >= p2)); + +function $nand(p1: int, p2: int) : int; + +function $max(p1: int, p2: int) : int; + +function $min(p1: int, p2: int) : int; + +function $umax(p1: int, p2: int) : int; + +function $umin(p1: int, p2: int) : int; + +function $i2b(i: int) : bool; + +axiom (forall i: int :: $i2b(i) <==> i != 0); + +axiom $i2b(0) == false; + +function $b2i(b: bool) : int; + +axiom $b2i(true) == 1; + +axiom $b2i(false) == 0; + +type float; + +function $fp(a: int) : float; + +const $ffalse: float; + +const $ftrue: float; + +function $fadd(f1: float, f2: float) : float; + +function $fsub(f1: float, f2: float) : float; + +function $fmul(f1: float, f2: float) : float; + +function $fdiv(f1: float, f2: float) : float; + +function $frem(f1: float, f2: float) : float; + +function $foeq(f1: float, f2: float) : bool; + +function $foge(f1: float, f2: float) : bool; + +function $fogt(f1: float, f2: float) : bool; + +function $fole(f1: float, f2: float) : bool; + +function $folt(f1: float, f2: float) : bool; + +function $fone(f1: float, f2: float) : bool; + +function $ford(f1: float, f2: float) : bool; + +function $fueq(f1: float, f2: float) : bool; + +function $fuge(f1: float, f2: float) : bool; + +function $fugt(f1: float, f2: float) : bool; + +function $fule(f1: float, f2: float) : bool; + +function $fult(f1: float, f2: float) : bool; + +function $fune(f1: float, f2: float) : bool; + +function $funo(f1: float, f2: float) : bool; + +function $fp2si(f: float) : int; + +function $fp2ui(f: float) : int; + +function $si2fp(i: int) : float; + +function $ui2fp(i: int) : float; + +function $ptr(obj: int, off: int) : int; + +axiom (forall obj: int, off: int :: { $ptr(obj, off): int } $ptr(obj, off): int == obj + off); + +function $size(int) : int; + +function $obj(int) : int; + +function $off(ptr: int) : int; + +axiom (forall ptr: int :: { $off(ptr): int } $off(ptr): int == ptr); + +var alloc: [int]bool; + +var $CurrAddr: int; + +const unique $NULL: int; + +const $UNDEF: int; + +function $pa(pointer: int, index: int, size: int) : int; + +function $trunc(p: int) : int; + +function $p2i(p: int) : int; + +function $i2p(p: int) : int; + +function $p2b(p: int) : bool; + +function $b2p(b: bool) : int; + +axiom (forall p: int, i: int, s: int :: { $pa(p, i, s) } $pa(p, i, s) == p + i * s); + +axiom (forall p: int :: $trunc(p) == p); + +axiom $b2p(true) == 1; + +axiom $b2p(false) == 0; + +axiom (forall i: int :: $p2b(i) <==> i != 0); + +axiom $p2b(0) == false; + +axiom (forall i: int :: $p2i(i) == i); + +axiom (forall i: int :: $i2p(i) == i); + +procedure __SMACK_nondet() returns (p: int); + + + +procedure __SMACK_nondetInt() returns (p: int); + + + +procedure $malloc(obj_size: int) returns (new: int); + requires obj_size > 0; + modifies $CurrAddr, alloc; + ensures 0 < old($CurrAddr); + ensures new == old($CurrAddr); + ensures $CurrAddr > old($CurrAddr) + obj_size; + ensures $size(new) == obj_size; + ensures (forall x: int :: new <= x && x < new + obj_size ==> $obj(x) == new); + ensures alloc[new]; + ensures (forall x: int :: { alloc[x] } x == new || old(alloc)[x] == alloc[x]); + + + +procedure $free(pointer: int); + modifies alloc; + + + +procedure $alloca(obj_size: int) returns (new: int); + requires obj_size > 0; + modifies $CurrAddr, alloc; + ensures 0 < old($CurrAddr); + ensures new == old($CurrAddr); + ensures $CurrAddr > old($CurrAddr) + obj_size; + ensures $size(new) == obj_size; + ensures (forall x: int :: new <= x && x < new + obj_size ==> $obj(x) == new); + ensures alloc[new]; + ensures (forall x: int :: { alloc[x] } x == new || old(alloc)[x] == alloc[x]); + + + +const unique __VERIFIER_assert: int; + +const unique main: int; + +const unique __VERIFIER_nondet_int: int; + +procedure __VERIFIER_assert(cond: int); + modifies alloc, $CurrAddr; + + + +implementation __VERIFIER_assert(cond: int) +{ + var $b: bool; + + $bb0: + assert {:sourcefile "sum01_safe.c"} {:sourceline 1} true; + assume true; + assert {:sourcefile "sum01_safe.c"} {:sourceline 2} true; + $b := cond != 0; + assert {:sourcefile "sum01_safe.c"} {:sourceline 2} true; + goto $bb3, $bb4; + + $bb1: + assert {:sourcefile "sum01_safe.c"} {:sourceline 5} true; + return; + + $bb2: + assert {:sourcefile "sum01_safe.c"} {:sourceline 2} true; + goto $bb5; + + $bb3: + assert {:sourcefile "sum01_safe.c"} {:sourceline 2} true; + assume $b; + goto $bb1; + + $bb4: + assert {:sourcefile "sum01_safe.c"} {:sourceline 2} true; + assume !$b; + goto $bb2; + + $bb5: + assert {:sourcefile "sum01_safe.c"} {:sourceline 3} true; + goto $bb5; +} + + + +procedure main() returns ($r: int); + modifies alloc, $CurrAddr; + + + +implementation main() returns ($r: int) +{ + var $p: int; + var $p1: int; + var $p2: int; + var $b: bool; + var $p3: int; + var $b4: bool; + var $b5: bool; + var $b6: bool; + var $p7: int; + var $p8: int; + var $p9: int; + + $bb0: + assert {:sourcefile "sum01_safe.c"} {:sourceline 10} true; + havoc $p; + assert {:sourcefile "sum01_safe.c"} {:sourceline 10} true; + assume true; + assert {:sourcefile "sum01_safe.c"} {:sourceline 10} true; + assume true; + assert {:sourcefile "sum01_safe.c"} {:sourceline 11} true; + assume true; + assert {:sourcefile "sum01_safe.c"} {:sourceline 11} true; + $p1 := 1; + $p2 := 0; + goto $bb1; + + $bb1: + assert b0($p1, $p, $p2); + //assert ($p2 == $p1 -1 && ($p2 ==0 || $p2 <= $p)); + + assert {:sourcefile "sum01_safe.c"} {:sourceline 11} true; + $b := $sle($p1, $p); + assert {:sourcefile "sum01_safe.c"} {:sourceline 11} true; + goto $bb4, $bb5; + + $bb2: + assert {:sourcefile "sum01_safe.c"} {:sourceline 12} true; + $p8 := $add($p2, 1); + assert {:sourcefile "sum01_safe.c"} {:sourceline 12} true; + assume true; + assert {:sourcefile "sum01_safe.c"} {:sourceline 13} true; + goto $bb10; + + $bb3: + assert {:sourcefile "sum01_safe.c"} {:sourceline 14} true; + $p3 := $mul($p, 1); + assert {:sourcefile "sum01_safe.c"} {:sourceline 14} true; + $b4 := $p2 == $p3; + assert {:sourcefile "sum01_safe.c"} {:sourceline 14} true; + $b5 := true; + goto $bb8, $bb9; + + $bb4: + assert {:sourcefile "sum01_safe.c"} {:sourceline 11} true; + assume $b; + goto $bb2; + + $bb5: + assert {:sourcefile "sum01_safe.c"} {:sourceline 11} true; + assume !$b; + goto $bb3; + + $bb6: + assert {:sourcefile "sum01_safe.c"} {:sourceline 14} true; + $p7 := $b2p($b5); + assert {:sourcefile "sum01_safe.c"} {:sourceline 14} true; + assert $p7 == 1; + assert {:sourcefile "sum01_safe.c"} {:sourceline 15} true; + $r := 0; + return; + + $bb7: + assert {:sourcefile "sum01_safe.c"} {:sourceline 14} true; + $b6 := $p2 == 0; + assert {:sourcefile "sum01_safe.c"} {:sourceline 14} true; + $b5 := $b6; + goto $bb6; + + $bb8: + assert {:sourcefile "sum01_safe.c"} {:sourceline 14} true; + assume $b4; + goto $bb6; + + $bb9: + assert {:sourcefile "sum01_safe.c"} {:sourceline 14} true; + assume !$b4; + goto $bb7; + + $bb10: + assert {:sourcefile "sum01_safe.c"} {:sourceline 11} true; + $p9 := $add($p1, 1); + assert {:sourcefile "sum01_safe.c"} {:sourceline 11} true; + assume true; + assert {:sourcefile "sum01_safe.c"} {:sourceline 11} true; + $p1 := $p9; + $p2 := $p8; + goto $bb1; +} + + + +procedure __VERIFIER_nondet_int() returns ($r: int); + modifies alloc, $CurrAddr; + + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01.v.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01.v.c new file mode 100644 index 000000000..391757c8e --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01.v.c @@ -0,0 +1,21 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} +#define a (1) +int main() { + int i, n=__VERIFIER_nondet_int(), sn=0; + int v1, v2, v3; + for(i=1; i<=n; i++) { + sn = sn + a; + v1 = __VERIFIER_nondet_int(); + v2 = __VERIFIER_nondet_int(); + v3 = __VERIFIER_nondet_int(); + + } + __VERIFIER_assert(sn==n*a || sn == 0); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01.v.c.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01.v.c.bpl new file mode 100644 index 000000000..5e9e1534a --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01.v.c.bpl @@ -0,0 +1,303 @@ +// SMACK-PRELUDE-BEGIN +function {:existential true} b0(i:int, n:int, sn:int, v1: int, v2: int, v3: int): bool; +procedure boogie_si_record_int(i: int); + +// Integer arithmetic +function $add(p1:int, p2:int) returns (int) {p1 + p2} +function $sub(p1:int, p2:int) returns (int) {p1 - p2} +function $mul(p1:int, p2:int) returns (int) {p1 * p2} +function $sdiv(p1:int, p2:int) returns (int); +function $udiv(p1:int, p2:int) returns (int); +function $srem(p1:int, p2:int) returns (int); +function $urem(p1:int, p2:int) returns (int); +function $and(p1:int, p2:int) returns (int); +axiom $and(0,0) == 0; +axiom $and(0,1) == 0; +axiom $and(1,0) == 0; +axiom $and(1,1) == 1; +function $or(p1:int, p2:int) returns (int); +axiom $or(0,0) == 0; +axiom $or(0,1) == 1; +axiom $or(1,0) == 1; +axiom $or(1,1) == 1; +function $xor(p1:int, p2:int) returns (int); +axiom $xor(0,0) == 0; +axiom $xor(0,1) == 1; +axiom $xor(1,0) == 1; +axiom $xor(1,1) == 0; +function $lshr(p1:int, p2:int) returns (int); +function $ashr(p1:int, p2:int) returns (int); +function $shl(p1:int, p2:int) returns (int); +function $ult(p1:int, p2:int) returns (bool) {p1 < p2} +function $ugt(p1:int, p2:int) returns (bool) {p1 > p2} +function $ule(p1:int, p2:int) returns (bool) {p1 <= p2} +function $uge(p1:int, p2:int) returns (bool) {p1 >= p2} +function $slt(p1:int, p2:int) returns (bool) {p1 < p2} +function $sgt(p1:int, p2:int) returns (bool) {p1 > p2} +function $sle(p1:int, p2:int) returns (bool) {p1 <= p2} +function $sge(p1:int, p2:int) returns (bool) {p1 >= p2} +function $nand(p1:int, p2:int) returns (int); +function $max(p1:int, p2:int) returns (int); +function $min(p1:int, p2:int) returns (int); +function $umax(p1:int, p2:int) returns (int); +function $umin(p1:int, p2:int) returns (int); +function $i2b(i: int) returns (bool); +axiom (forall i:int :: $i2b(i) <==> i != 0); +axiom $i2b(0) == false; +function $b2i(b: bool) returns (int); +axiom $b2i(true) == 1; +axiom $b2i(false) == 0; + +// Floating point +type float; +function $fp(a:int) returns (float); +const $ffalse: float; +const $ftrue: float; +function $fadd(f1:float, f2:float) returns (float); +function $fsub(f1:float, f2:float) returns (float); +function $fmul(f1:float, f2:float) returns (float); +function $fdiv(f1:float, f2:float) returns (float); +function $frem(f1:float, f2:float) returns (float); +function $foeq(f1:float, f2:float) returns (bool); +function $foge(f1:float, f2:float) returns (bool); +function $fogt(f1:float, f2:float) returns (bool); +function $fole(f1:float, f2:float) returns (bool); +function $folt(f1:float, f2:float) returns (bool); +function $fone(f1:float, f2:float) returns (bool); +function $ford(f1:float, f2:float) returns (bool); +function $fueq(f1:float, f2:float) returns (bool); +function $fuge(f1:float, f2:float) returns (bool); +function $fugt(f1:float, f2:float) returns (bool); +function $fule(f1:float, f2:float) returns (bool); +function $fult(f1:float, f2:float) returns (bool); +function $fune(f1:float, f2:float) returns (bool); +function $funo(f1:float, f2:float) returns (bool); +function $fp2si(f:float) returns (int); +function $fp2ui(f:float) returns (int); +function $si2fp(i:int) returns (float); +function $ui2fp(i:int) returns (float); + +// Memory region declarations: 0 + +// SMACK Flat Memory Model + +function $ptr(obj:int, off:int) returns (int) {obj + off} +function $size(int) returns (int); +function $obj(int) returns (int); +function $off(ptr:int) returns (int) {ptr} + +var alloc: [int] bool; +var $CurrAddr:int; + +const unique $NULL: int; +axiom $NULL == 0; +const $UNDEF: int; + +function $pa(pointer: int, index: int, size: int) returns (int); +function $trunc(p: int) returns (int); +function $p2i(p: int) returns (int); +function $i2p(p: int) returns (int); +function $p2b(p: int) returns (bool); +function $b2p(b: bool) returns (int); + +axiom (forall p:int, i:int, s:int :: {$pa(p,i,s)} $pa(p,i,s) == p + i * s); +axiom (forall p:int :: $trunc(p) == p); + +axiom $b2p(true) == 1; +axiom $b2p(false) == 0; +axiom (forall i:int :: $p2b(i) <==> i != 0); +axiom $p2b(0) == false; +axiom (forall i:int :: $p2i(i) == i); +axiom (forall i:int :: $i2p(i) == i); +procedure __SMACK_nondet() returns (p: int); +procedure __SMACK_nondetInt() returns (p: int); + +procedure $malloc(obj_size: int) returns (new: int); +modifies $CurrAddr, alloc; +requires obj_size > 0; +ensures 0 < old($CurrAddr); +ensures new == old($CurrAddr); +ensures $CurrAddr > old($CurrAddr) + obj_size; +ensures $size(new) == obj_size; +ensures (forall x:int :: new <= x && x < new + obj_size ==> $obj(x) == new); +ensures alloc[new]; +ensures (forall x:int :: {alloc[x]} x == new || old(alloc)[x] == alloc[x]); + +procedure $free(pointer: int); +modifies alloc; +requires alloc[pointer]; +requires $obj(pointer) == pointer; +ensures !alloc[pointer]; +ensures (forall x:int :: {alloc[x]} x == pointer || old(alloc)[x] == alloc[x]); + +procedure $alloca(obj_size: int) returns (new: int); +modifies $CurrAddr, alloc; +requires obj_size > 0; +ensures 0 < old($CurrAddr); +ensures new == old($CurrAddr); +ensures $CurrAddr > old($CurrAddr) + obj_size; +ensures $size(new) == obj_size; +ensures (forall x:int :: new <= x && x < new + obj_size ==> $obj(x) == new); +ensures alloc[new]; +ensures (forall x:int :: {alloc[x]} x == new || old(alloc)[x] == alloc[x]); + +// SMACK-PRELUDE-END +// BEGIN SMACK-GENERATED CODE +const unique __VERIFIER_assert: int; +axiom (__VERIFIER_assert == -1024); +const unique main: int; +axiom (main == -2048); +const unique __VERIFIER_nondet_int: int; +axiom (__VERIFIER_nondet_int == -3072); + +procedure __VERIFIER_assert(cond: int) + modifies alloc, $CurrAddr; +{ + var $b: bool; +$bb0: + assume {:sourceloc "sum01_havoc.c", 1, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum01_havoc.c", 2, 0} true; + $b := (cond != 0); + assume {:sourceloc "sum01_havoc.c", 2, 0} true; + goto $bb3, $bb4; +$bb1: + assume {:sourceloc "sum01_havoc.c", 5, 0} true; + return; +$bb2: + assume {:sourceloc "sum01_havoc.c", 2, 0} true; + goto $bb5; +$bb3: + assume {:sourceloc "sum01_havoc.c", 2, 0} true; + assume $b; + goto $bb1; +$bb4: + assume {:sourceloc "sum01_havoc.c", 2, 0} true; + assume !($b); + goto $bb2; +$bb5: + assume {:sourceloc "sum01_havoc.c", 3, 0} true; + goto $bb5; +} + +procedure main() + returns ($r: int) + modifies alloc, $CurrAddr; +{ + var $p: int; + var $p1: int; + var $p2: int; + var $b: bool; + var $p3: int; + var $b4: bool; + var $b5: bool; + var $b6: bool; + var $p7: int; + var $p8: int; + var $p9: int; + var $p10: int; + var $p11: int; + var $p12: int; +$bb0: + assume {:sourceloc "sum01_havoc.c", 11, 0} true; + havoc $p; + assume {:sourceloc "sum01_havoc.c", 11, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum01_havoc.c", 11, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum01_havoc.c", 13, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum01_havoc.c", 13, 0} true; + $p1 := 1; + $p2 := 0; + goto $bb1; +$bb1: + assert b0($p1, $p, $p2, $p9, $p10, $p11); + //assert ($p2 == $p1 -1 && ($p2 ==0 || $p2 <= $p)); + + assume {:sourceloc "sum01_havoc.c", 13, 0} true; + $b := $sle($p1, $p); + assume {:sourceloc "sum01_havoc.c", 13, 0} true; + goto $bb4, $bb5; +$bb2: + assume {:sourceloc "sum01_havoc.c", 14, 0} true; + $p8 := $add($p2, 1); + assume {:sourceloc "sum01_havoc.c", 14, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum01_havoc.c", 15, 0} true; + havoc $p9; + assume {:sourceloc "sum01_havoc.c", 15, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum01_havoc.c", 16, 0} true; + havoc $p10; + assume {:sourceloc "sum01_havoc.c", 16, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum01_havoc.c", 17, 0} true; + havoc $p11; + assume {:sourceloc "sum01_havoc.c", 17, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum01_havoc.c", 19, 0} true; + goto $bb10; +$bb3: + assume {:sourceloc "sum01_havoc.c", 20, 0} true; + $p3 := $mul($p, 1); + assume {:sourceloc "sum01_havoc.c", 20, 0} true; + $b4 := ($p2 == $p3); + assume {:sourceloc "sum01_havoc.c", 20, 0} true; + $b5 := true; + goto $bb8, $bb9; +$bb4: + assume {:sourceloc "sum01_havoc.c", 13, 0} true; + assume $b; + goto $bb2; +$bb5: + assume {:sourceloc "sum01_havoc.c", 13, 0} true; + assume !($b); + goto $bb3; +$bb6: + assume {:sourceloc "sum01_havoc.c", 20, 0} true; + $p7 := $b2p($b5); + assume {:sourceloc "sum01_havoc.c", 20, 0} true; + assert $p7 == 1; + assume {:sourceloc "sum01_havoc.c", 21, 0} true; + $r := 0; + return; +$bb7: + assume {:sourceloc "sum01_havoc.c", 20, 0} true; + $b6 := ($p2 == 0); + assume {:sourceloc "sum01_havoc.c", 20, 0} true; + $b5 := $b6; + goto $bb6; +$bb8: + assume {:sourceloc "sum01_havoc.c", 20, 0} true; + assume $b4; + goto $bb6; +$bb9: + assume {:sourceloc "sum01_havoc.c", 20, 0} true; + assume !($b4); + goto $bb7; +$bb10: + assume {:sourceloc "sum01_havoc.c", 13, 0} true; + $p12 := $add($p1, 1); + assume {:sourceloc "sum01_havoc.c", 13, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum01_havoc.c", 13, 0} true; + $p1 := $p12; + $p2 := $p8; + goto $bb1; +} + +procedure __VERIFIER_nondet_int() + returns ($r: int) ; + modifies alloc, $CurrAddr; + +// END SMACK-GENERATED CODE diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01_safe.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01_safe.c new file mode 100644 index 000000000..74a066304 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01_safe.c @@ -0,0 +1,15 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} +int main() { + int i, n=__VERIFIER_nondet_int(), sn=0; + for(i=1; i<=n; i++) { + sn = sn + 1; + } + __VERIFIER_assert(sn==n || sn == 0); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01_safe.v.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01_safe.v.c new file mode 100644 index 000000000..dc1230c08 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01_safe.v.c @@ -0,0 +1,18 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} +int main() { + int i, n=__VERIFIER_nondet_int(), sn=0, v1,v2,v3; + for(i=1; i<=n; i++) { + sn = sn + 1; + v1 = __VERIFIER_nondet_int(); + v2 = __VERIFIER_nondet_int(); + v3 = __VERIFIER_nondet_int(); + } + __VERIFIER_assert(sn==n || sn == 0); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03.bpl new file mode 100644 index 000000000..141472b07 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03.bpl @@ -0,0 +1,394 @@ +procedure boogie_si_record_int(i: int); + +function {:existential true} b0(x:int, sn:int): bool; + + +function $add(p1: int, p2: int) : int; + +axiom (forall p1: int, p2: int :: { $add(p1, p2): int } $add(p1, p2): int == p1 + p2); + +function $sub(p1: int, p2: int) : int; + +axiom (forall p1: int, p2: int :: { $sub(p1, p2): int } $sub(p1, p2): int == p1 - p2); + +function $mul(p1: int, p2: int) : int; + +axiom (forall p1: int, p2: int :: { $mul(p1, p2): int } $mul(p1, p2): int == p1 * p2); + +function $sdiv(p1: int, p2: int) : int; + +function $udiv(p1: int, p2: int) : int; + +function $srem(p1: int, p2: int) : int; + +function $urem(p1: int, p2: int) : int; + +function $and(p1: int, p2: int) : int; + +axiom $and(0, 0) == 0; + +axiom $and(0, 1) == 0; + +axiom $and(1, 0) == 0; + +axiom $and(1, 1) == 1; + +function $or(p1: int, p2: int) : int; + +axiom $or(0, 0) == 0; + +axiom $or(0, 1) == 1; + +axiom $or(1, 0) == 1; + +axiom $or(1, 1) == 1; + +function $xor(p1: int, p2: int) : int; + +axiom $xor(0, 0) == 0; + +axiom $xor(0, 1) == 1; + +axiom $xor(1, 0) == 1; + +axiom $xor(1, 1) == 0; + +function $lshr(p1: int, p2: int) : int; + +function $ashr(p1: int, p2: int) : int; + +function $shl(p1: int, p2: int) : int; + +function $ult(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $ult(p1, p2): bool } $ult(p1, p2): bool == (p1 < p2)); + +function $ugt(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $ugt(p1, p2): bool } $ugt(p1, p2): bool == (p1 > p2)); + +function $ule(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $ule(p1, p2): bool } $ule(p1, p2): bool == (p1 <= p2)); + +function $uge(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $uge(p1, p2): bool } $uge(p1, p2): bool == (p1 >= p2)); + +function $slt(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $slt(p1, p2): bool } $slt(p1, p2): bool == (p1 < p2)); + +function $sgt(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $sgt(p1, p2): bool } $sgt(p1, p2): bool == (p1 > p2)); + +function $sle(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $sle(p1, p2): bool } $sle(p1, p2): bool == (p1 <= p2)); + +function $sge(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $sge(p1, p2): bool } $sge(p1, p2): bool == (p1 >= p2)); + +function $nand(p1: int, p2: int) : int; + +function $max(p1: int, p2: int) : int; + +function $min(p1: int, p2: int) : int; + +function $umax(p1: int, p2: int) : int; + +function $umin(p1: int, p2: int) : int; + +function $i2b(i: int) : bool; + +axiom (forall i: int :: $i2b(i) <==> i != 0); + +axiom $i2b(0) == false; + +function $b2i(b: bool) : int; + +axiom $b2i(true) == 1; + +axiom $b2i(false) == 0; + +type float; + +function $fp(a: int) : float; + +const $ffalse: float; + +const $ftrue: float; + +function $fadd(f1: float, f2: float) : float; + +function $fsub(f1: float, f2: float) : float; + +function $fmul(f1: float, f2: float) : float; + +function $fdiv(f1: float, f2: float) : float; + +function $frem(f1: float, f2: float) : float; + +function $foeq(f1: float, f2: float) : bool; + +function $foge(f1: float, f2: float) : bool; + +function $fogt(f1: float, f2: float) : bool; + +function $fole(f1: float, f2: float) : bool; + +function $folt(f1: float, f2: float) : bool; + +function $fone(f1: float, f2: float) : bool; + +function $ford(f1: float, f2: float) : bool; + +function $fueq(f1: float, f2: float) : bool; + +function $fuge(f1: float, f2: float) : bool; + +function $fugt(f1: float, f2: float) : bool; + +function $fule(f1: float, f2: float) : bool; + +function $fult(f1: float, f2: float) : bool; + +function $fune(f1: float, f2: float) : bool; + +function $funo(f1: float, f2: float) : bool; + +function $fp2si(f: float) : int; + +function $fp2ui(f: float) : int; + +function $si2fp(i: int) : float; + +function $ui2fp(i: int) : float; + +function $ptr(obj: int, off: int) : int; + +axiom (forall obj: int, off: int :: { $ptr(obj, off): int } $ptr(obj, off): int == obj + off); + +function $size(int) : int; + +function $obj(int) : int; + +function $off(ptr: int) : int; + +axiom (forall ptr: int :: { $off(ptr): int } $off(ptr): int == ptr); + +var alloc: [int]bool; + +var $CurrAddr: int; + +const unique $NULL: int; + +const $UNDEF: int; + +function $pa(pointer: int, index: int, size: int) : int; + +function $trunc(p: int) : int; + +function $p2i(p: int) : int; + +function $i2p(p: int) : int; + +function $p2b(p: int) : bool; + +function $b2p(b: bool) : int; + +axiom (forall p: int, i: int, s: int :: { $pa(p, i, s) } $pa(p, i, s) == p + i * s); + +axiom (forall p: int :: $trunc(p) == p); + +axiom $b2p(true) == 1; + +axiom $b2p(false) == 0; + +axiom (forall i: int :: $p2b(i) <==> i != 0); + +axiom $p2b(0) == false; + +axiom (forall i: int :: $p2i(i) == i); + +axiom (forall i: int :: $i2p(i) == i); + +procedure __SMACK_nondet() returns (p: int); + + + +procedure __SMACK_nondetInt() returns (p: int); + + + +procedure $malloc(obj_size: int) returns (new: int); + requires obj_size > 0; + modifies $CurrAddr, alloc; + ensures 0 < old($CurrAddr); + ensures new == old($CurrAddr); + ensures $CurrAddr > old($CurrAddr) + obj_size; + ensures $size(new) == obj_size; + ensures (forall x: int :: new <= x && x < new + obj_size ==> $obj(x) == new); + ensures alloc[new]; + ensures (forall x: int :: { alloc[x] } x == new || old(alloc)[x] == alloc[x]); + + + +procedure $free(pointer: int); + modifies alloc; + + + +procedure $alloca(obj_size: int) returns (new: int); + requires obj_size > 0; + modifies $CurrAddr, alloc; + ensures 0 < old($CurrAddr); + ensures new == old($CurrAddr); + ensures $CurrAddr > old($CurrAddr) + obj_size; + ensures $size(new) == obj_size; + ensures (forall x: int :: new <= x && x < new + obj_size ==> $obj(x) == new); + ensures alloc[new]; + ensures (forall x: int :: { alloc[x] } x == new || old(alloc)[x] == alloc[x]); + + + +const unique __VERIFIER_assert: int; + +const unique main: int; + +const unique __VERIFIER_nondet_uint: int; + +procedure __VERIFIER_assert(cond: int); + modifies alloc, $CurrAddr; + + + +implementation __VERIFIER_assert(cond: int) +{ + var $b: bool; + + $bb0: + assert {:sourcefile "sum03_safe.c"} {:sourceline 1} true; + assume true; + assert {:sourcefile "sum03_safe.c"} {:sourceline 2} true; + $b := cond != 0; + assert {:sourcefile "sum03_safe.c"} {:sourceline 2} true; + goto $bb3, $bb4; + + $bb1: + assert {:sourcefile "sum03_safe.c"} {:sourceline 5} true; + return; + + $bb2: + assert {:sourcefile "sum03_safe.c"} {:sourceline 2} true; + goto $bb5; + + $bb3: + assert {:sourcefile "sum03_safe.c"} {:sourceline 2} true; + assume $b; + goto $bb1; + + $bb4: + assert {:sourcefile "sum03_safe.c"} {:sourceline 2} true; + assume !$b; + goto $bb2; + + $bb5: + assert {:sourcefile "sum03_safe.c"} {:sourceline 3} true; + goto $bb5; +} + + + +procedure main() returns ($r: int); + modifies alloc, $CurrAddr; + + + +implementation main() returns ($r: int) +{ + var $p: int; + var $p1: int; + var $p2: int; + var $p3: int; + var $p4: int; + var $p5: int; + var $p6: int; + var $b: bool; + var $b7: bool; + var $b8: bool; + var $p9: int; + + $bb0: + assert {:sourcefile "sum03_safe.c"} {:sourceline 11} true; + assume true; + assert {:sourcefile "sum03_safe.c"} {:sourceline 12} true; + havoc $p; + assert {:sourcefile "sum03_safe.c"} {:sourceline 12} true; + assume true; + assert {:sourcefile "sum03_safe.c"} {:sourceline 12} true; + havoc $p1; + assert {:sourcefile "sum03_safe.c"} {:sourceline 12} true; + assume true; + assert {:sourcefile "sum03_safe.c"} {:sourceline 13} true; + assume true; + assert {:sourcefile "sum03_safe.c"} {:sourceline 15} true; + $p2 := 0; + $p3 := 0; + goto $bb1; + + $bb1: + assert b0($p3, $p2); + + assert {:sourcefile "sum03_safe.c"} {:sourceline 16} true; + $p4 := $add($p2, 1); + assert {:sourcefile "sum03_safe.c"} {:sourceline 16} true; + assume true; + assert {:sourcefile "sum03_safe.c"} {:sourceline 17} true; + $p5 := $add($p3, 1); + assert {:sourcefile "sum03_safe.c"} {:sourceline 17} true; + assume true; + assert {:sourcefile "sum03_safe.c"} {:sourceline 18} true; + $p6 := $mul($p5, 1); + assert {:sourcefile "sum03_safe.c"} {:sourceline 18} true; + $b := $p4 == $p6; + assert {:sourcefile "sum03_safe.c"} {:sourceline 18} true; + $b7 := true; + goto $bb4, $bb5; + + $bb2: + assert {:sourcefile "sum03_safe.c"} {:sourceline 18} true; + $p9 := $b2p($b7); + assert {:sourcefile "sum03_safe.c"} {:sourceline 18} true; + assert $p9 == 1; + assert {:sourcefile "sum03_safe.c"} {:sourceline 19} true; + $p2 := $p4; + $p3 := $p5; + goto $bb1; + + $bb3: + assert {:sourcefile "sum03_safe.c"} {:sourceline 18} true; + $b8 := $p4 == 0; + assert {:sourcefile "sum03_safe.c"} {:sourceline 18} true; + $b7 := $b8; + goto $bb2; + + $bb4: + assert {:sourcefile "sum03_safe.c"} {:sourceline 18} true; + assume $b; + goto $bb2; + + $bb5: + assert {:sourcefile "sum03_safe.c"} {:sourceline 18} true; + assume !$b; + goto $bb3; +} + + + +procedure __VERIFIER_nondet_uint() returns ($r: int); + modifies alloc, $CurrAddr; + + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03.c new file mode 100644 index 000000000..419393adb --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03.c @@ -0,0 +1,22 @@ +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: goto ERROR; + } + return; +} +//#define a (2) +#define a (1) +unsigned int __VERIFIER_nondet_uint(); + +int main() { + int sn=0; + unsigned int loop1=__VERIFIER_nondet_uint(), n1=__VERIFIER_nondet_uint(); + unsigned int x=0; + + while(1){ + sn = sn + a; + x++; + __VERIFIER_assert(sn==x*a || sn == 0); + } +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03.v.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03.v.c new file mode 100644 index 000000000..e6afeca5c --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03.v.c @@ -0,0 +1,26 @@ +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: goto ERROR; + } + return; +} +//#define a (2) +#define a (1) +unsigned int __VERIFIER_nondet_uint(); + +int main() { + int sn=0; + unsigned int loop1=__VERIFIER_nondet_uint(), n1=__VERIFIER_nondet_uint(); + unsigned int x=0; + int v1, v2, v3; + + while(1){ + sn = sn + a; + x++; + __VERIFIER_assert(sn==x*a || sn == 0); + v1 = __VERIFIER_nondet_int(); + v2 = __VERIFIER_nondet_int(); + v3 = __VERIFIER_nondet_int(); + } +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03.v.c.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03.v.c.bpl new file mode 100644 index 000000000..3c3c384b1 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03.v.c.bpl @@ -0,0 +1,294 @@ +// SMACK-PRELUDE-BEGIN +function {:existential true} b0(x:int, sn:int, v1: int, v2: int, v3: int): bool; +procedure boogie_si_record_int(i: int); + +// Integer arithmetic +function $add(p1:int, p2:int) returns (int) {p1 + p2} +function $sub(p1:int, p2:int) returns (int) {p1 - p2} +function $mul(p1:int, p2:int) returns (int) {p1 * p2} +function $sdiv(p1:int, p2:int) returns (int); +function $udiv(p1:int, p2:int) returns (int); +function $srem(p1:int, p2:int) returns (int); +function $urem(p1:int, p2:int) returns (int); +function $and(p1:int, p2:int) returns (int); +axiom $and(0,0) == 0; +axiom $and(0,1) == 0; +axiom $and(1,0) == 0; +axiom $and(1,1) == 1; +function $or(p1:int, p2:int) returns (int); +axiom $or(0,0) == 0; +axiom $or(0,1) == 1; +axiom $or(1,0) == 1; +axiom $or(1,1) == 1; +function $xor(p1:int, p2:int) returns (int); +axiom $xor(0,0) == 0; +axiom $xor(0,1) == 1; +axiom $xor(1,0) == 1; +axiom $xor(1,1) == 0; +function $lshr(p1:int, p2:int) returns (int); +function $ashr(p1:int, p2:int) returns (int); +function $shl(p1:int, p2:int) returns (int); +function $ult(p1:int, p2:int) returns (bool) {p1 < p2} +function $ugt(p1:int, p2:int) returns (bool) {p1 > p2} +function $ule(p1:int, p2:int) returns (bool) {p1 <= p2} +function $uge(p1:int, p2:int) returns (bool) {p1 >= p2} +function $slt(p1:int, p2:int) returns (bool) {p1 < p2} +function $sgt(p1:int, p2:int) returns (bool) {p1 > p2} +function $sle(p1:int, p2:int) returns (bool) {p1 <= p2} +function $sge(p1:int, p2:int) returns (bool) {p1 >= p2} +function $nand(p1:int, p2:int) returns (int); +function $max(p1:int, p2:int) returns (int); +function $min(p1:int, p2:int) returns (int); +function $umax(p1:int, p2:int) returns (int); +function $umin(p1:int, p2:int) returns (int); +function $i2b(i: int) returns (bool); +axiom (forall i:int :: $i2b(i) <==> i != 0); +axiom $i2b(0) == false; +function $b2i(b: bool) returns (int); +axiom $b2i(true) == 1; +axiom $b2i(false) == 0; + +// Floating point +type float; +function $fp(a:int) returns (float); +const $ffalse: float; +const $ftrue: float; +function $fadd(f1:float, f2:float) returns (float); +function $fsub(f1:float, f2:float) returns (float); +function $fmul(f1:float, f2:float) returns (float); +function $fdiv(f1:float, f2:float) returns (float); +function $frem(f1:float, f2:float) returns (float); +function $foeq(f1:float, f2:float) returns (bool); +function $foge(f1:float, f2:float) returns (bool); +function $fogt(f1:float, f2:float) returns (bool); +function $fole(f1:float, f2:float) returns (bool); +function $folt(f1:float, f2:float) returns (bool); +function $fone(f1:float, f2:float) returns (bool); +function $ford(f1:float, f2:float) returns (bool); +function $fueq(f1:float, f2:float) returns (bool); +function $fuge(f1:float, f2:float) returns (bool); +function $fugt(f1:float, f2:float) returns (bool); +function $fule(f1:float, f2:float) returns (bool); +function $fult(f1:float, f2:float) returns (bool); +function $fune(f1:float, f2:float) returns (bool); +function $funo(f1:float, f2:float) returns (bool); +function $fp2si(f:float) returns (int); +function $fp2ui(f:float) returns (int); +function $si2fp(i:int) returns (float); +function $ui2fp(i:int) returns (float); + +// Memory region declarations: 0 + +// SMACK Flat Memory Model + +function $ptr(obj:int, off:int) returns (int) {obj + off} +function $size(int) returns (int); +function $obj(int) returns (int); +function $off(ptr:int) returns (int) {ptr} + +var alloc: [int] bool; +var $CurrAddr:int; + +const unique $NULL: int; +axiom $NULL == 0; +const $UNDEF: int; + +function $pa(pointer: int, index: int, size: int) returns (int); +function $trunc(p: int) returns (int); +function $p2i(p: int) returns (int); +function $i2p(p: int) returns (int); +function $p2b(p: int) returns (bool); +function $b2p(b: bool) returns (int); + +axiom (forall p:int, i:int, s:int :: {$pa(p,i,s)} $pa(p,i,s) == p + i * s); +axiom (forall p:int :: $trunc(p) == p); + +axiom $b2p(true) == 1; +axiom $b2p(false) == 0; +axiom (forall i:int :: $p2b(i) <==> i != 0); +axiom $p2b(0) == false; +axiom (forall i:int :: $p2i(i) == i); +axiom (forall i:int :: $i2p(i) == i); +procedure __SMACK_nondet() returns (p: int); +procedure __SMACK_nondetInt() returns (p: int); + +procedure $malloc(obj_size: int) returns (new: int); +modifies $CurrAddr, alloc; +requires obj_size > 0; +ensures 0 < old($CurrAddr); +ensures new == old($CurrAddr); +ensures $CurrAddr > old($CurrAddr) + obj_size; +ensures $size(new) == obj_size; +ensures (forall x:int :: new <= x && x < new + obj_size ==> $obj(x) == new); +ensures alloc[new]; +ensures (forall x:int :: {alloc[x]} x == new || old(alloc)[x] == alloc[x]); + +procedure $free(pointer: int); +modifies alloc; +requires alloc[pointer]; +requires $obj(pointer) == pointer; +ensures !alloc[pointer]; +ensures (forall x:int :: {alloc[x]} x == pointer || old(alloc)[x] == alloc[x]); + +procedure $alloca(obj_size: int) returns (new: int); +modifies $CurrAddr, alloc; +requires obj_size > 0; +ensures 0 < old($CurrAddr); +ensures new == old($CurrAddr); +ensures $CurrAddr > old($CurrAddr) + obj_size; +ensures $size(new) == obj_size; +ensures (forall x:int :: new <= x && x < new + obj_size ==> $obj(x) == new); +ensures alloc[new]; +ensures (forall x:int :: {alloc[x]} x == new || old(alloc)[x] == alloc[x]); + +// SMACK-PRELUDE-END +// BEGIN SMACK-GENERATED CODE +const unique __VERIFIER_assert: int; +axiom (__VERIFIER_assert == -1024); +const unique main: int; +axiom (main == -2048); +const unique __VERIFIER_nondet_uint: int; +axiom (__VERIFIER_nondet_uint == -3072); +const unique __VERIFIER_nondet_int: int; +axiom (__VERIFIER_nondet_int == -4096); + +procedure __VERIFIER_assert(cond: int) + modifies alloc, $CurrAddr; +{ + var $b: bool; +$bb0: + assume {:sourceloc "sum03_havoc.c", 1, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum03_havoc.c", 2, 0} true; + $b := (cond != 0); + assume {:sourceloc "sum03_havoc.c", 2, 0} true; + goto $bb3, $bb4; +$bb1: + assume {:sourceloc "sum03_havoc.c", 5, 0} true; + return; +$bb2: + assume {:sourceloc "sum03_havoc.c", 2, 0} true; + goto $bb5; +$bb3: + assume {:sourceloc "sum03_havoc.c", 2, 0} true; + assume $b; + goto $bb1; +$bb4: + assume {:sourceloc "sum03_havoc.c", 2, 0} true; + assume !($b); + goto $bb2; +$bb5: + assume {:sourceloc "sum03_havoc.c", 3, 0} true; + goto $bb5; +} + +procedure main() + returns ($r: int) + modifies alloc, $CurrAddr; +{ + var $p: int; + var $p1: int; + var $p2: int; + var $p3: int; + var $p4: int; + var $p5: int; + var $p6: int; + var $b: bool; + var $b7: bool; + var $b8: bool; + var $p9: int; + var $p10: int; + var $p11: int; + var $p12: int; +$bb0: + assume {:sourceloc "sum03_havoc.c", 12, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum03_havoc.c", 13, 0} true; + call $p := __VERIFIER_nondet_uint(); + assume {:sourceloc "sum03_havoc.c", 13, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum03_havoc.c", 13, 0} true; + call $p1 := __VERIFIER_nondet_uint(); + assume {:sourceloc "sum03_havoc.c", 13, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum03_havoc.c", 14, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum03_havoc.c", 17, 0} true; + $p2 := 0; + $p3 := 0; + goto $bb1; +$bb1: + assert b0($p3, $p2, $p10, $p11, $p12); + + assume {:sourceloc "sum03_havoc.c", 18, 0} true; + $p4 := $add($p2, 1); + assume {:sourceloc "sum03_havoc.c", 18, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum03_havoc.c", 19, 0} true; + $p5 := $add($p3, 1); + assume {:sourceloc "sum03_havoc.c", 19, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum03_havoc.c", 20, 0} true; + $p6 := $mul($p5, 1); + assume {:sourceloc "sum03_havoc.c", 20, 0} true; + $b := ($p4 == $p6); + assume {:sourceloc "sum03_havoc.c", 20, 0} true; + $b7 := true; + goto $bb4, $bb5; +$bb2: + assume {:sourceloc "sum03_havoc.c", 20, 0} true; + $p9 := $b2p($b7); + assume {:sourceloc "sum03_havoc.c", 20, 0} true; + assert $p9 == 1; + assume {:sourceloc "sum03_havoc.c", 21, 0} true; + havoc $p10; + assume {:sourceloc "sum03_havoc.c", 21, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum03_havoc.c", 22, 0} true; + havoc $p11; + assume {:sourceloc "sum03_havoc.c", 22, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum03_havoc.c", 23, 0} true; + havoc $p12; + assume {:sourceloc "sum03_havoc.c", 23, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum03_havoc.c", 24, 0} true; + $p2 := $p4; + $p3 := $p5; + goto $bb1; +$bb3: + assume {:sourceloc "sum03_havoc.c", 20, 0} true; + $b8 := ($p4 == 0); + assume {:sourceloc "sum03_havoc.c", 20, 0} true; + $b7 := $b8; + goto $bb2; +$bb4: + assume {:sourceloc "sum03_havoc.c", 20, 0} true; + assume $b; + goto $bb2; +$bb5: + assume {:sourceloc "sum03_havoc.c", 20, 0} true; + assume !($b); + goto $bb3; +} + +procedure __VERIFIER_nondet_uint() + returns ($r: int) ; + modifies alloc, $CurrAddr; + + +procedure __VERIFIER_nondet_int() + returns ($r: int) ; + modifies alloc, $CurrAddr; + +// END SMACK-GENERATED CODE diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03_safe.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03_safe.c new file mode 100644 index 000000000..cf946af44 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03_safe.c @@ -0,0 +1,21 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_uint(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + +int main() { + int sn=0; + unsigned int loop1=__VERIFIER_nondet_uint(), n1=__VERIFIER_nondet_uint(); + unsigned int x=0; + + while(1){ + sn = sn + 1; + x++; + __VERIFIER_assert(sn==x*1 || sn == 0); + } +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03_safe.v.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03_safe.v.c new file mode 100644 index 000000000..23851e970 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03_safe.v.c @@ -0,0 +1,27 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} +extern unsigned int __VERIFIER_nondet_uint(); +extern int __VERIFIER_nondet_int(); + +int main() { + int sn=0; + unsigned int loop1=__VERIFIER_nondet_uint(), n1=__VERIFIER_nondet_uint(); + unsigned int x=0; + int v1, v2, v3; + + while(1){ + sn = sn + 1; + x++; + __VERIFIER_assert(sn==x*1 || sn == 0); + v1 = __VERIFIER_nondet_int(); + v2 = __VERIFIER_nondet_int(); + v3 = __VERIFIER_nondet_int(); + + } +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04.c new file mode 100644 index 000000000..ca4f827da --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04.c @@ -0,0 +1,19 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} +//#define a (2) +#define a (1) +#define SIZE 8 +int main() { + int i, sn=0; + for(i=1; i<=SIZE; i++) { + sn = sn + a; + } + __VERIFIER_assert(sn==SIZE*a || sn == 0); +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04.c.cleanup.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04.c.cleanup.bpl new file mode 100644 index 000000000..5e2b766a8 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04.c.cleanup.bpl @@ -0,0 +1,403 @@ +procedure boogie_si_record_int(i: int); + +function {:existential true} b0(i:int, sn:int): bool; + + +function $add(p1: int, p2: int) : int; + +axiom (forall p1: int, p2: int :: { $add(p1, p2): int } $add(p1, p2): int == p1 + p2); + +function $sub(p1: int, p2: int) : int; + +axiom (forall p1: int, p2: int :: { $sub(p1, p2): int } $sub(p1, p2): int == p1 - p2); + +function $mul(p1: int, p2: int) : int; + +axiom (forall p1: int, p2: int :: { $mul(p1, p2): int } $mul(p1, p2): int == p1 * p2); + +function $sdiv(p1: int, p2: int) : int; + +function $udiv(p1: int, p2: int) : int; + +function $srem(p1: int, p2: int) : int; + +function $urem(p1: int, p2: int) : int; + +function $and(p1: int, p2: int) : int; + +axiom $and(0, 0) == 0; + +axiom $and(0, 1) == 0; + +axiom $and(1, 0) == 0; + +axiom $and(1, 1) == 1; + +function $or(p1: int, p2: int) : int; + +axiom $or(0, 0) == 0; + +axiom $or(0, 1) == 1; + +axiom $or(1, 0) == 1; + +axiom $or(1, 1) == 1; + +function $xor(p1: int, p2: int) : int; + +axiom $xor(0, 0) == 0; + +axiom $xor(0, 1) == 1; + +axiom $xor(1, 0) == 1; + +axiom $xor(1, 1) == 0; + +function $lshr(p1: int, p2: int) : int; + +function $ashr(p1: int, p2: int) : int; + +function $shl(p1: int, p2: int) : int; + +function $ult(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $ult(p1, p2): bool } $ult(p1, p2): bool == (p1 < p2)); + +function $ugt(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $ugt(p1, p2): bool } $ugt(p1, p2): bool == (p1 > p2)); + +function $ule(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $ule(p1, p2): bool } $ule(p1, p2): bool == (p1 <= p2)); + +function $uge(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $uge(p1, p2): bool } $uge(p1, p2): bool == (p1 >= p2)); + +function $slt(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $slt(p1, p2): bool } $slt(p1, p2): bool == (p1 < p2)); + +function $sgt(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $sgt(p1, p2): bool } $sgt(p1, p2): bool == (p1 > p2)); + +function $sle(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $sle(p1, p2): bool } $sle(p1, p2): bool == (p1 <= p2)); + +function $sge(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $sge(p1, p2): bool } $sge(p1, p2): bool == (p1 >= p2)); + +function $nand(p1: int, p2: int) : int; + +function $max(p1: int, p2: int) : int; + +function $min(p1: int, p2: int) : int; + +function $umax(p1: int, p2: int) : int; + +function $umin(p1: int, p2: int) : int; + +function $i2b(i: int) : bool; + +axiom (forall i: int :: $i2b(i) <==> i != 0); + +axiom $i2b(0) == false; + +function $b2i(b: bool) : int; + +axiom $b2i(true) == 1; + +axiom $b2i(false) == 0; + +type float; + +function $fp(a: int) : float; + +const $ffalse: float; + +const $ftrue: float; + +function $fadd(f1: float, f2: float) : float; + +function $fsub(f1: float, f2: float) : float; + +function $fmul(f1: float, f2: float) : float; + +function $fdiv(f1: float, f2: float) : float; + +function $frem(f1: float, f2: float) : float; + +function $foeq(f1: float, f2: float) : bool; + +function $foge(f1: float, f2: float) : bool; + +function $fogt(f1: float, f2: float) : bool; + +function $fole(f1: float, f2: float) : bool; + +function $folt(f1: float, f2: float) : bool; + +function $fone(f1: float, f2: float) : bool; + +function $ford(f1: float, f2: float) : bool; + +function $fueq(f1: float, f2: float) : bool; + +function $fuge(f1: float, f2: float) : bool; + +function $fugt(f1: float, f2: float) : bool; + +function $fule(f1: float, f2: float) : bool; + +function $fult(f1: float, f2: float) : bool; + +function $fune(f1: float, f2: float) : bool; + +function $funo(f1: float, f2: float) : bool; + +function $fp2si(f: float) : int; + +function $fp2ui(f: float) : int; + +function $si2fp(i: int) : float; + +function $ui2fp(i: int) : float; + +function $ptr(obj: int, off: int) : int; + +axiom (forall obj: int, off: int :: { $ptr(obj, off): int } $ptr(obj, off): int == obj + off); + +function $size(int) : int; + +function $obj(int) : int; + +function $off(ptr: int) : int; + +axiom (forall ptr: int :: { $off(ptr): int } $off(ptr): int == ptr); + +var alloc: [int]bool; + +var $CurrAddr: int; + +const unique $NULL: int; + +const $UNDEF: int; + +function $pa(pointer: int, index: int, size: int) : int; + +function $trunc(p: int) : int; + +function $p2i(p: int) : int; + +function $i2p(p: int) : int; + +function $p2b(p: int) : bool; + +function $b2p(b: bool) : int; + +axiom (forall p: int, i: int, s: int :: { $pa(p, i, s) } $pa(p, i, s) == p + i * s); + +axiom (forall p: int :: $trunc(p) == p); + +axiom $b2p(true) == 1; + +axiom $b2p(false) == 0; + +axiom (forall i: int :: $p2b(i) <==> i != 0); + +axiom $p2b(0) == false; + +axiom (forall i: int :: $p2i(i) == i); + +axiom (forall i: int :: $i2p(i) == i); + +procedure __SMACK_nondet() returns (p: int); + + + +procedure __SMACK_nondetInt() returns (p: int); + + + +procedure $malloc(obj_size: int) returns (new: int); + requires obj_size > 0; + modifies $CurrAddr, alloc; + ensures 0 < old($CurrAddr); + ensures new == old($CurrAddr); + ensures $CurrAddr > old($CurrAddr) + obj_size; + ensures $size(new) == obj_size; + ensures (forall x: int :: new <= x && x < new + obj_size ==> $obj(x) == new); + ensures alloc[new]; + ensures (forall x: int :: { alloc[x] } x == new || old(alloc)[x] == alloc[x]); + + + +procedure $free(pointer: int); + modifies alloc; + + + +procedure $alloca(obj_size: int) returns (new: int); + requires obj_size > 0; + modifies $CurrAddr, alloc; + ensures 0 < old($CurrAddr); + ensures new == old($CurrAddr); + ensures $CurrAddr > old($CurrAddr) + obj_size; + ensures $size(new) == obj_size; + ensures (forall x: int :: new <= x && x < new + obj_size ==> $obj(x) == new); + ensures alloc[new]; + ensures (forall x: int :: { alloc[x] } x == new || old(alloc)[x] == alloc[x]); + + + +const unique __VERIFIER_assert: int; + +const unique main: int; + +procedure __VERIFIER_assert(cond: int); + modifies alloc, $CurrAddr; + + + +implementation __VERIFIER_assert(cond: int) +{ + var $b: bool; + + $bb0: + assert {:sourcefile "sum04_safe.c"} {:sourceline 1} true; + assume true; + assert {:sourcefile "sum04_safe.c"} {:sourceline 2} true; + $b := cond != 0; + assert {:sourcefile "sum04_safe.c"} {:sourceline 2} true; + goto $bb3, $bb4; + + $bb1: + assert {:sourcefile "sum04_safe.c"} {:sourceline 5} true; + return; + + $bb2: + assert {:sourcefile "sum04_safe.c"} {:sourceline 2} true; + goto $bb5; + + $bb3: + assert {:sourcefile "sum04_safe.c"} {:sourceline 2} true; + assume $b; + goto $bb1; + + $bb4: + assert {:sourcefile "sum04_safe.c"} {:sourceline 2} true; + assume !$b; + goto $bb2; + + $bb5: + assert {:sourcefile "sum04_safe.c"} {:sourceline 3} true; + goto $bb5; +} + + + +procedure main() returns ($r: int); + modifies alloc, $CurrAddr; + + + +implementation main() returns ($r: int) +{ + var $p: int; + var $p1: int; + var $b: bool; + var $b2: bool; + var $b3: bool; + var $b4: bool; + var $p5: int; + var $p6: int; + var $p7: int; + + $bb0: + assert {:sourcefile "sum04_safe.c"} {:sourceline 10} true; + assume true; + assert {:sourcefile "sum04_safe.c"} {:sourceline 11} true; + assume true; + assert {:sourcefile "sum04_safe.c"} {:sourceline 11} true; + $p := 1; + $p1 := 0; + goto $bb1; + + $bb1: + //assert $p1 == 2*$p - 2; + //assert 0 <= $p && $p <= 9; + assert b0($p,$p1); + //assert $p1 == $p - 1 && $p1 <= 8; + + assert {:sourcefile "sum04_safe.c"} {:sourceline 11} true; + $b := $sle($p, 8); + assert {:sourcefile "sum04_safe.c"} {:sourceline 11} true; + goto $bb4, $bb5; + + $bb2: + assert {:sourcefile "sum04_safe.c"} {:sourceline 12} true; + $p6 := $add($p1, 1); + assert {:sourcefile "sum04_safe.c"} {:sourceline 12} true; + assume true; + assert {:sourcefile "sum04_safe.c"} {:sourceline 13} true; + goto $bb10; + + $bb3: + assert {:sourcefile "sum04_safe.c"} {:sourceline 14} true; + $b2 := $p1 == 8; + assert {:sourcefile "sum04_safe.c"} {:sourceline 14} true; + $b3 := true; + goto $bb8, $bb9; + + $bb4: + assert {:sourcefile "sum04_safe.c"} {:sourceline 11} true; + assume $b; + goto $bb2; + + $bb5: + assert {:sourcefile "sum04_safe.c"} {:sourceline 11} true; + assume !$b; + goto $bb3; + + $bb6: + assert {:sourcefile "sum04_safe.c"} {:sourceline 14} true; + $p5 := $b2p($b3); + assert {:sourcefile "sum04_safe.c"} {:sourceline 14} true; + assert $p5 == 1; + assert {:sourcefile "sum04_safe.c"} {:sourceline 15} true; + $r := 0; + return; + + $bb7: + assert {:sourcefile "sum04_safe.c"} {:sourceline 14} true; + $b4 := $p1 == 0; + assert {:sourcefile "sum04_safe.c"} {:sourceline 14} true; + $b3 := $b4; + goto $bb6; + + $bb8: + assert {:sourcefile "sum04_safe.c"} {:sourceline 14} true; + assume $b2; + goto $bb6; + + $bb9: + assert {:sourcefile "sum04_safe.c"} {:sourceline 14} true; + assume !$b2; + goto $bb7; + + $bb10: + assert {:sourcefile "sum04_safe.c"} {:sourceline 11} true; + $p7 := $add($p, 1); + assert {:sourcefile "sum04_safe.c"} {:sourceline 11} true; + assume true; + assert {:sourcefile "sum04_safe.c"} {:sourceline 11} true; + $p := $p7; + $p1 := $p6; + goto $bb1; +} + + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04_safe.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04_safe.c new file mode 100644 index 000000000..41eff3298 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04_safe.c @@ -0,0 +1,18 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} +#define a (1) +#define SIZE 8 +int main() { + int i, sn=0; + for(i=1; i<=SIZE; i++) { + sn = sn + a; + } + __VERIFIER_assert(sn==SIZE*a || sn == 0); +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04n.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04n.c new file mode 100644 index 000000000..0b6d00199 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04n.c @@ -0,0 +1,22 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + + +//#define a (2) +#define a (1) +//#define SIZE 8 +int main() { + int i, sn=0; + int SIZE = __VERIFIER_nondet_int(); + for(i=1; i<=SIZE; i++) { + sn = sn + a; + } + __VERIFIER_assert(sn==SIZE*a || sn == 0); +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04n.c.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04n.c.bpl new file mode 100644 index 000000000..72598afbc --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04n.c.bpl @@ -0,0 +1,285 @@ +// SMACK-PRELUDE-BEGIN +function {:existential true} b0(i:int, sn:int, size: int): bool; +procedure boogie_si_record_int(i: int); + +// Integer arithmetic +function $add(p1:int, p2:int) returns (int) {p1 + p2} +function $sub(p1:int, p2:int) returns (int) {p1 - p2} +function $mul(p1:int, p2:int) returns (int) {p1 * p2} +function $sdiv(p1:int, p2:int) returns (int); +function $udiv(p1:int, p2:int) returns (int); +function $srem(p1:int, p2:int) returns (int); +function $urem(p1:int, p2:int) returns (int); +function $and(p1:int, p2:int) returns (int); +axiom $and(0,0) == 0; +axiom $and(0,1) == 0; +axiom $and(1,0) == 0; +axiom $and(1,1) == 1; +function $or(p1:int, p2:int) returns (int); +axiom $or(0,0) == 0; +axiom $or(0,1) == 1; +axiom $or(1,0) == 1; +axiom $or(1,1) == 1; +function $xor(p1:int, p2:int) returns (int); +axiom $xor(0,0) == 0; +axiom $xor(0,1) == 1; +axiom $xor(1,0) == 1; +axiom $xor(1,1) == 0; +function $lshr(p1:int, p2:int) returns (int); +function $ashr(p1:int, p2:int) returns (int); +function $shl(p1:int, p2:int) returns (int); +function $ult(p1:int, p2:int) returns (bool) {p1 < p2} +function $ugt(p1:int, p2:int) returns (bool) {p1 > p2} +function $ule(p1:int, p2:int) returns (bool) {p1 <= p2} +function $uge(p1:int, p2:int) returns (bool) {p1 >= p2} +function $slt(p1:int, p2:int) returns (bool) {p1 < p2} +function $sgt(p1:int, p2:int) returns (bool) {p1 > p2} +function $sle(p1:int, p2:int) returns (bool) {p1 <= p2} +function $sge(p1:int, p2:int) returns (bool) {p1 >= p2} +function $nand(p1:int, p2:int) returns (int); +function $max(p1:int, p2:int) returns (int); +function $min(p1:int, p2:int) returns (int); +function $umax(p1:int, p2:int) returns (int); +function $umin(p1:int, p2:int) returns (int); +function $i2b(i: int) returns (bool); +axiom (forall i:int :: $i2b(i) <==> i != 0); +axiom $i2b(0) == false; +function $b2i(b: bool) returns (int); +axiom $b2i(true) == 1; +axiom $b2i(false) == 0; + +// Floating point +type float; +function $fp(a:int) returns (float); +const $ffalse: float; +const $ftrue: float; +function $fadd(f1:float, f2:float) returns (float); +function $fsub(f1:float, f2:float) returns (float); +function $fmul(f1:float, f2:float) returns (float); +function $fdiv(f1:float, f2:float) returns (float); +function $frem(f1:float, f2:float) returns (float); +function $foeq(f1:float, f2:float) returns (bool); +function $foge(f1:float, f2:float) returns (bool); +function $fogt(f1:float, f2:float) returns (bool); +function $fole(f1:float, f2:float) returns (bool); +function $folt(f1:float, f2:float) returns (bool); +function $fone(f1:float, f2:float) returns (bool); +function $ford(f1:float, f2:float) returns (bool); +function $fueq(f1:float, f2:float) returns (bool); +function $fuge(f1:float, f2:float) returns (bool); +function $fugt(f1:float, f2:float) returns (bool); +function $fule(f1:float, f2:float) returns (bool); +function $fult(f1:float, f2:float) returns (bool); +function $fune(f1:float, f2:float) returns (bool); +function $funo(f1:float, f2:float) returns (bool); +function $fp2si(f:float) returns (int); +function $fp2ui(f:float) returns (int); +function $si2fp(i:int) returns (float); +function $ui2fp(i:int) returns (float); + +// Memory region declarations: 0 + +// SMACK Flat Memory Model + +function $ptr(obj:int, off:int) returns (int) {obj + off} +function $size(int) returns (int); +function $obj(int) returns (int); +function $off(ptr:int) returns (int) {ptr} + +var alloc: [int] bool; +var $CurrAddr:int; + +const unique $NULL: int; +axiom $NULL == 0; +const $UNDEF: int; + +function $pa(pointer: int, index: int, size: int) returns (int); +function $trunc(p: int) returns (int); +function $p2i(p: int) returns (int); +function $i2p(p: int) returns (int); +function $p2b(p: int) returns (bool); +function $b2p(b: bool) returns (int); + +axiom (forall p:int, i:int, s:int :: {$pa(p,i,s)} $pa(p,i,s) == p + i * s); +axiom (forall p:int :: $trunc(p) == p); + +axiom $b2p(true) == 1; +axiom $b2p(false) == 0; +axiom (forall i:int :: $p2b(i) <==> i != 0); +axiom $p2b(0) == false; +axiom (forall i:int :: $p2i(i) == i); +axiom (forall i:int :: $i2p(i) == i); +procedure __SMACK_nondet() returns (p: int); +procedure __SMACK_nondetInt() returns (p: int); + +procedure $malloc(obj_size: int) returns (new: int); +modifies $CurrAddr, alloc; +requires obj_size > 0; +ensures 0 < old($CurrAddr); +ensures new == old($CurrAddr); +ensures $CurrAddr > old($CurrAddr) + obj_size; +ensures $size(new) == obj_size; +ensures (forall x:int :: new <= x && x < new + obj_size ==> $obj(x) == new); +ensures alloc[new]; +ensures (forall x:int :: {alloc[x]} x == new || old(alloc)[x] == alloc[x]); + +procedure $free(pointer: int); +modifies alloc; +requires alloc[pointer]; +requires $obj(pointer) == pointer; +ensures !alloc[pointer]; +ensures (forall x:int :: {alloc[x]} x == pointer || old(alloc)[x] == alloc[x]); + +procedure $alloca(obj_size: int) returns (new: int); +modifies $CurrAddr, alloc; +requires obj_size > 0; +ensures 0 < old($CurrAddr); +ensures new == old($CurrAddr); +ensures $CurrAddr > old($CurrAddr) + obj_size; +ensures $size(new) == obj_size; +ensures (forall x:int :: new <= x && x < new + obj_size ==> $obj(x) == new); +ensures alloc[new]; +ensures (forall x:int :: {alloc[x]} x == new || old(alloc)[x] == alloc[x]); + +// SMACK-PRELUDE-END +// BEGIN SMACK-GENERATED CODE +const unique __VERIFIER_assert: int; +axiom (__VERIFIER_assert == -1024); +const unique main: int; +axiom (main == -2048); +const unique __VERIFIER_nondet_int: int; +axiom (__VERIFIER_nondet_int == -3072); + +procedure __VERIFIER_assert(cond: int) + modifies alloc, $CurrAddr; +{ + var $b: bool; +$bb0: + assume {:sourceloc "sum04_gen.c", 1, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum04_gen.c", 2, 0} true; + $b := (cond != 0); + assume {:sourceloc "sum04_gen.c", 2, 0} true; + goto $bb3, $bb4; +$bb1: + assume {:sourceloc "sum04_gen.c", 5, 0} true; + return; +$bb2: + assume {:sourceloc "sum04_gen.c", 2, 0} true; + goto $bb5; +$bb3: + assume {:sourceloc "sum04_gen.c", 2, 0} true; + assume $b; + goto $bb1; +$bb4: + assume {:sourceloc "sum04_gen.c", 2, 0} true; + assume !($b); + goto $bb2; +$bb5: + assume {:sourceloc "sum04_gen.c", 3, 0} true; + goto $bb5; +} + +procedure main() + returns ($r: int) + modifies alloc, $CurrAddr; +{ + var $p: int; + var $p1: int; + var $p2: int; + var $b: bool; + var $p3: int; + var $b4: bool; + var $b5: bool; + var $b6: bool; + var $p7: int; + var $p8: int; + var $p9: int; +$bb0: + assume {:sourceloc "sum04_gen.c", 11, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum04_gen.c", 12, 0} true; + havoc $p; + assume {:sourceloc "sum04_gen.c", 12, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum04_gen.c", 13, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum04_gen.c", 13, 0} true; + $p1 := 1; + $p2 := 0; + goto $bb1; +$bb1: + assert b0($p1,$p2, $p); + // assert 0 <= $p2 && $p2 == $p1 - 1 && ($p1 <= $p + 1 || ($p2 == 0 && $p1 == 1)); + + assume {:sourceloc "sum04_gen.c", 13, 0} true; + $b := $sle($p1, $p); + assume {:sourceloc "sum04_gen.c", 13, 0} true; + goto $bb4, $bb5; +$bb2: + assume {:sourceloc "sum04_gen.c", 14, 0} true; + $p8 := $add($p2, 1); + assume {:sourceloc "sum04_gen.c", 14, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum04_gen.c", 15, 0} true; + goto $bb10; +$bb3: + assume {:sourceloc "sum04_gen.c", 16, 0} true; + $p3 := $mul($p, 1); + assume {:sourceloc "sum04_gen.c", 16, 0} true; + $b4 := ($p2 == $p3); + assume {:sourceloc "sum04_gen.c", 16, 0} true; + $b5 := true; + goto $bb8, $bb9; +$bb4: + assume {:sourceloc "sum04_gen.c", 13, 0} true; + assume $b; + goto $bb2; +$bb5: + assume {:sourceloc "sum04_gen.c", 13, 0} true; + assume !($b); + goto $bb3; +$bb6: + assume {:sourceloc "sum04_gen.c", 16, 0} true; + $p7 := $b2p($b5); + assume {:sourceloc "sum04_gen.c", 16, 0} true; + assert $p7 == 1; + assume {:sourceloc "sum04_gen.c", 17, 0} true; + $r := 0; + return; +$bb7: + assume {:sourceloc "sum04_gen.c", 16, 0} true; + $b6 := ($p2 == 0); + assume {:sourceloc "sum04_gen.c", 16, 0} true; + $b5 := $b6; + goto $bb6; +$bb8: + assume {:sourceloc "sum04_gen.c", 16, 0} true; + assume $b4; + goto $bb6; +$bb9: + assume {:sourceloc "sum04_gen.c", 16, 0} true; + assume !($b4); + goto $bb7; +$bb10: + assume {:sourceloc "sum04_gen.c", 13, 0} true; + $p9 := $add($p1, 1); + assume {:sourceloc "sum04_gen.c", 13, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum04_gen.c", 13, 0} true; + $p1 := $p9; + $p2 := $p8; + goto $bb1; +} + +procedure __VERIFIER_nondet_int() + returns ($r: int) ; + modifies alloc, $CurrAddr; + +// END SMACK-GENERATED CODE diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04n.v.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04n.v.c new file mode 100644 index 000000000..7cbcf6844 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04n.v.c @@ -0,0 +1,24 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} +//#define a (2) +#define a (1) +//#define SIZE 8 +int main() { + int i, sn=0; + int SIZE = __VERIFIER_nondet_int(); + int v1, v2, v3; + for(i=1; i<=SIZE; i++) { + sn = sn + a; + v1 = __VERIFIER_nondet_int(); + v2 = __VERIFIER_nondet_int(); + v3 = __VERIFIER_nondet_int(); + } + __VERIFIER_assert(sn==SIZE*a || sn == 0); +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04n.v.c.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04n.v.c.bpl new file mode 100644 index 000000000..2e960ba67 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04n.v.c.bpl @@ -0,0 +1,303 @@ +// SMACK-PRELUDE-BEGIN +procedure boogie_si_record_int(i: int); +function {:existential true} b0(i:int, sn:int, size: int, v1: int, v2: int, v3: int): bool; + +// Integer arithmetic +function $add(p1:int, p2:int) returns (int) {p1 + p2} +function $sub(p1:int, p2:int) returns (int) {p1 - p2} +function $mul(p1:int, p2:int) returns (int) {p1 * p2} +function $sdiv(p1:int, p2:int) returns (int); +function $udiv(p1:int, p2:int) returns (int); +function $srem(p1:int, p2:int) returns (int); +function $urem(p1:int, p2:int) returns (int); +function $and(p1:int, p2:int) returns (int); +axiom $and(0,0) == 0; +axiom $and(0,1) == 0; +axiom $and(1,0) == 0; +axiom $and(1,1) == 1; +function $or(p1:int, p2:int) returns (int); +axiom $or(0,0) == 0; +axiom $or(0,1) == 1; +axiom $or(1,0) == 1; +axiom $or(1,1) == 1; +function $xor(p1:int, p2:int) returns (int); +axiom $xor(0,0) == 0; +axiom $xor(0,1) == 1; +axiom $xor(1,0) == 1; +axiom $xor(1,1) == 0; +function $lshr(p1:int, p2:int) returns (int); +function $ashr(p1:int, p2:int) returns (int); +function $shl(p1:int, p2:int) returns (int); +function $ult(p1:int, p2:int) returns (bool) {p1 < p2} +function $ugt(p1:int, p2:int) returns (bool) {p1 > p2} +function $ule(p1:int, p2:int) returns (bool) {p1 <= p2} +function $uge(p1:int, p2:int) returns (bool) {p1 >= p2} +function $slt(p1:int, p2:int) returns (bool) {p1 < p2} +function $sgt(p1:int, p2:int) returns (bool) {p1 > p2} +function $sle(p1:int, p2:int) returns (bool) {p1 <= p2} +function $sge(p1:int, p2:int) returns (bool) {p1 >= p2} +function $nand(p1:int, p2:int) returns (int); +function $max(p1:int, p2:int) returns (int); +function $min(p1:int, p2:int) returns (int); +function $umax(p1:int, p2:int) returns (int); +function $umin(p1:int, p2:int) returns (int); +function $i2b(i: int) returns (bool); +axiom (forall i:int :: $i2b(i) <==> i != 0); +axiom $i2b(0) == false; +function $b2i(b: bool) returns (int); +axiom $b2i(true) == 1; +axiom $b2i(false) == 0; + +// Floating point +type float; +function $fp(a:int) returns (float); +const $ffalse: float; +const $ftrue: float; +function $fadd(f1:float, f2:float) returns (float); +function $fsub(f1:float, f2:float) returns (float); +function $fmul(f1:float, f2:float) returns (float); +function $fdiv(f1:float, f2:float) returns (float); +function $frem(f1:float, f2:float) returns (float); +function $foeq(f1:float, f2:float) returns (bool); +function $foge(f1:float, f2:float) returns (bool); +function $fogt(f1:float, f2:float) returns (bool); +function $fole(f1:float, f2:float) returns (bool); +function $folt(f1:float, f2:float) returns (bool); +function $fone(f1:float, f2:float) returns (bool); +function $ford(f1:float, f2:float) returns (bool); +function $fueq(f1:float, f2:float) returns (bool); +function $fuge(f1:float, f2:float) returns (bool); +function $fugt(f1:float, f2:float) returns (bool); +function $fule(f1:float, f2:float) returns (bool); +function $fult(f1:float, f2:float) returns (bool); +function $fune(f1:float, f2:float) returns (bool); +function $funo(f1:float, f2:float) returns (bool); +function $fp2si(f:float) returns (int); +function $fp2ui(f:float) returns (int); +function $si2fp(i:int) returns (float); +function $ui2fp(i:int) returns (float); + +// Memory region declarations: 0 + +// SMACK Flat Memory Model + +function $ptr(obj:int, off:int) returns (int) {obj + off} +function $size(int) returns (int); +function $obj(int) returns (int); +function $off(ptr:int) returns (int) {ptr} + +var alloc: [int] bool; +var $CurrAddr:int; + +const unique $NULL: int; +axiom $NULL == 0; +const $UNDEF: int; + +function $pa(pointer: int, index: int, size: int) returns (int); +function $trunc(p: int) returns (int); +function $p2i(p: int) returns (int); +function $i2p(p: int) returns (int); +function $p2b(p: int) returns (bool); +function $b2p(b: bool) returns (int); + +axiom (forall p:int, i:int, s:int :: {$pa(p,i,s)} $pa(p,i,s) == p + i * s); +axiom (forall p:int :: $trunc(p) == p); + +axiom $b2p(true) == 1; +axiom $b2p(false) == 0; +axiom (forall i:int :: $p2b(i) <==> i != 0); +axiom $p2b(0) == false; +axiom (forall i:int :: $p2i(i) == i); +axiom (forall i:int :: $i2p(i) == i); +procedure __SMACK_nondet() returns (p: int); +procedure __SMACK_nondetInt() returns (p: int); + +procedure $malloc(obj_size: int) returns (new: int); +modifies $CurrAddr, alloc; +requires obj_size > 0; +ensures 0 < old($CurrAddr); +ensures new == old($CurrAddr); +ensures $CurrAddr > old($CurrAddr) + obj_size; +ensures $size(new) == obj_size; +ensures (forall x:int :: new <= x && x < new + obj_size ==> $obj(x) == new); +ensures alloc[new]; +ensures (forall x:int :: {alloc[x]} x == new || old(alloc)[x] == alloc[x]); + +procedure $free(pointer: int); +modifies alloc; +requires alloc[pointer]; +requires $obj(pointer) == pointer; +ensures !alloc[pointer]; +ensures (forall x:int :: {alloc[x]} x == pointer || old(alloc)[x] == alloc[x]); + +procedure $alloca(obj_size: int) returns (new: int); +modifies $CurrAddr, alloc; +requires obj_size > 0; +ensures 0 < old($CurrAddr); +ensures new == old($CurrAddr); +ensures $CurrAddr > old($CurrAddr) + obj_size; +ensures $size(new) == obj_size; +ensures (forall x:int :: new <= x && x < new + obj_size ==> $obj(x) == new); +ensures alloc[new]; +ensures (forall x:int :: {alloc[x]} x == new || old(alloc)[x] == alloc[x]); + +// SMACK-PRELUDE-END +// BEGIN SMACK-GENERATED CODE +const unique __VERIFIER_assert: int; +axiom (__VERIFIER_assert == -1024); +const unique main: int; +axiom (main == -2048); +const unique __VERIFIER_nondet_int: int; +axiom (__VERIFIER_nondet_int == -3072); + +procedure __VERIFIER_assert(cond: int) + modifies alloc, $CurrAddr; +{ + var $b: bool; +$bb0: + assume {:sourceloc "sum04_havoc.c", 1, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum04_havoc.c", 2, 0} true; + $b := (cond != 0); + assume {:sourceloc "sum04_havoc.c", 2, 0} true; + goto $bb3, $bb4; +$bb1: + assume {:sourceloc "sum04_havoc.c", 5, 0} true; + return; +$bb2: + assume {:sourceloc "sum04_havoc.c", 2, 0} true; + goto $bb5; +$bb3: + assume {:sourceloc "sum04_havoc.c", 2, 0} true; + assume $b; + goto $bb1; +$bb4: + assume {:sourceloc "sum04_havoc.c", 2, 0} true; + assume !($b); + goto $bb2; +$bb5: + assume {:sourceloc "sum04_havoc.c", 3, 0} true; + goto $bb5; +} + +procedure main() + returns ($r: int) + modifies alloc, $CurrAddr; +{ + var $p: int; + var $p1: int; + var $p2: int; + var $b: bool; + var $p3: int; + var $b4: bool; + var $b5: bool; + var $b6: bool; + var $p7: int; + var $p8: int; + var $p9: int; + var $p10: int; + var $p11: int; + var $p12: int; +$bb0: + assume {:sourceloc "sum04_havoc.c", 11, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum04_havoc.c", 12, 0} true; + havoc $p; + assume {:sourceloc "sum04_havoc.c", 12, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum04_havoc.c", 14, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum04_havoc.c", 14, 0} true; + $p1 := 1; + $p2 := 0; + goto $bb1; +$bb1: + assert b0($p1,$p2, $p, $p9, $p10, $p11); + //assert 0 <= $p2 && $p2 == $p1 - 1 && ($p1 <= $p + 1 || ($p2 == 0 && $p1 == 1)); + + assume {:sourceloc "sum04_havoc.c", 14, 0} true; + $b := $sle($p1, $p); + assume {:sourceloc "sum04_havoc.c", 14, 0} true; + goto $bb4, $bb5; +$bb2: + assume {:sourceloc "sum04_havoc.c", 15, 0} true; + $p8 := $add($p2, 1); + assume {:sourceloc "sum04_havoc.c", 15, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum04_havoc.c", 16, 0} true; + havoc $p9; + assume {:sourceloc "sum04_havoc.c", 16, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum04_havoc.c", 17, 0} true; + havoc $p10; + assume {:sourceloc "sum04_havoc.c", 17, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum04_havoc.c", 18, 0} true; + havoc $p11; + assume {:sourceloc "sum04_havoc.c", 18, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum04_havoc.c", 19, 0} true; + goto $bb10; +$bb3: + assume {:sourceloc "sum04_havoc.c", 20, 0} true; + $p3 := $mul($p, 1); + assume {:sourceloc "sum04_havoc.c", 20, 0} true; + $b4 := ($p2 == $p3); + assume {:sourceloc "sum04_havoc.c", 20, 0} true; + $b5 := true; + goto $bb8, $bb9; +$bb4: + assume {:sourceloc "sum04_havoc.c", 14, 0} true; + assume $b; + goto $bb2; +$bb5: + assume {:sourceloc "sum04_havoc.c", 14, 0} true; + assume !($b); + goto $bb3; +$bb6: + assume {:sourceloc "sum04_havoc.c", 20, 0} true; + $p7 := $b2p($b5); + assume {:sourceloc "sum04_havoc.c", 20, 0} true; + assert $p7 == 1; + assume {:sourceloc "sum04_havoc.c", 21, 0} true; + $r := 0; + return; +$bb7: + assume {:sourceloc "sum04_havoc.c", 20, 0} true; + $b6 := ($p2 == 0); + assume {:sourceloc "sum04_havoc.c", 20, 0} true; + $b5 := $b6; + goto $bb6; +$bb8: + assume {:sourceloc "sum04_havoc.c", 20, 0} true; + assume $b4; + goto $bb6; +$bb9: + assume {:sourceloc "sum04_havoc.c", 20, 0} true; + assume !($b4); + goto $bb7; +$bb10: + assume {:sourceloc "sum04_havoc.c", 14, 0} true; + $p12 := $add($p1, 1); + assume {:sourceloc "sum04_havoc.c", 14, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "sum04_havoc.c", 14, 0} true; + $p1 := $p12; + $p2 := $p8; + goto $bb1; +} + +procedure __VERIFIER_nondet_int() + returns ($r: int) ; + modifies alloc, $CurrAddr; + +// END SMACK-GENERATED CODE diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/tacas.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/tacas.bpl new file mode 100644 index 000000000..4f5bc346e --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/tacas.bpl @@ -0,0 +1,22 @@ +function {:existential true} b0(x:int, y:int, i:int, j:int): bool; + +var i, j: int; + +procedure main() +{ + var x, y: int; + x := i; + y := j; + + while (x != 0) + invariant b0(x, y, i, j); + { + x := x - 1; + y := y - 1; + } + if (i == j) + { + assert y == 0; + } +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/tacas.v.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/tacas.v.bpl new file mode 100644 index 000000000..5cecd89ed --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/tacas.v.bpl @@ -0,0 +1,27 @@ +function {:existential true} b0(x:int, y:int, i:int, j:int, v1: int, v2: int, v3: int): bool; + +var i, j: int; + +procedure main() +{ + var x, y: int; + var v1, v2, v3: int; + + x := i; + y := j; + + while (x != 0) + invariant b0(x, y, i, j, v1, v2, v3); + { + x := x - 1; + y := y - 1; + havoc v1; + havoc v2; + havoc v3; + } + if (i == j) + { + assert y == 0; + } +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/tacas06.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/tacas06.c new file mode 100644 index 000000000..0e076b471 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/tacas06.c @@ -0,0 +1,29 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + +void foo(int i, int j) { + + int x = i; + int y = j; + + while (x != 0) { + x--; + y--; + } + + if (i == j) + __VERIFIER_assert(y == 0); + +} + +int main() +{ + int i = __VERIFIER_nondet_int(), j = __VERIFIER_nondet_int(); + foo(i, j); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/tacas06.v.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/tacas06.v.c new file mode 100644 index 000000000..362ae3bcf --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/tacas06.v.c @@ -0,0 +1,33 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + +void foo(int i, int j) { + + int x = i; + int y = j; + int v1,v2,v3; + + while (x != 0) { + x--; + y--; + v1 = __VERIFIER_nondet_int(); + v2 = __VERIFIER_nondet_int(); + v3 = __VERIFIER_nondet_int(); + } + + if (i == j) + __VERIFIER_assert(y == 0); + +} + +int main() +{ + int i = __VERIFIER_nondet_int(), j = __VERIFIER_nondet_int(); + foo(i, j); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex01.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex01.bpl new file mode 100644 index 000000000..747476eef --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex01.bpl @@ -0,0 +1,35 @@ +function {:existential true} b0(x:int,y:int,k:int,z:int,c:int): bool; +//function {:existential true} b1(x:int,y:int,k:int,z:int,c:int): bool; + +var d: int; + +procedure main() +{ + + var x, y, k, z, c: int; + z := 1; + + while ( z < k ) + invariant b0(x,y,k,z,c); + { + z := 2 * z; + } + assert z >= 1; + + while (x > 0 && y > 0) + //invariant b1(x,y,k,z,c); + { + havoc c; + if (c == 0) + { + y := y - d; + } + else + { + x := x - d; + havoc y; + z := z - 1; + } + } +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex01.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex01.c new file mode 100644 index 000000000..d4fdd806d --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex01.c @@ -0,0 +1,39 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + + +void foo(int d) { + int x, y, k, z = 1; + int c; + int input; + L1: + while (z < k) { + z = 2 * z; + } + __VERIFIER_assert(z>=1); + + L2: + while (x > 0 && y > 0) { + c = __VERIFIER_nondet_int(); + if (c) { + P1: + x = x - d; + y = __VERIFIER_nondet_int(); + z = z - 1; + } else { + y = y - d; + } + } +} + +int main() +{ + int d; + foo(d); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex01.v.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex01.v.bpl new file mode 100644 index 000000000..379c11365 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex01.v.bpl @@ -0,0 +1,39 @@ +function {:existential true} b0(x:int,y:int,k:int,z:int,c:int, v1:int, v2:int, v3:int): bool; +//function {:existential true} b1(x:int,y:int,k:int,z:int,c:int): bool; + +var d: int; + +procedure main() +{ + + var x, y, k, z, c: int; + var v1, v2, v3: int; + z := 1; + + while ( z < k ) + invariant b0(x,y,k,z,c,v1,v2,v3); + { + z := 2 * z; + havoc v1; + havoc v2; + havoc v3; + } + assert z >= 1; + + while (x > 0 && y > 0) + //invariant b1(x,y,k,z,c); + { + havoc c; + if (c == 0) + { + y := y - d; + } + else + { + x := x - d; + havoc y; + z := z - 1; + } + } +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex01.v.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex01.v.c new file mode 100644 index 000000000..8434c3684 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex01.v.c @@ -0,0 +1,43 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + + +void foo(int d) { + int x, y, k, z = 1; + int v1, v2, v3; + int c; + int input; + L1: + while (z < k) { + z = 2 * z; + v1 = __VERIFIER_nondet_int(); + v2 = __VERIFIER_nondet_int(); + v3 = __VERIFIER_nondet_int(); + } + __VERIFIER_assert(z>=1); + + L2: + while (x > 0 && y > 0) { + c = __VERIFIER_nondet_int(); + if (c) { + P1: + x = x - d; + y = __VERIFIER_nondet_int(); + z = z - 1; + } else { + y = y - d; + } + } +} + +int main() +{ + int d; + foo(d); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03.c new file mode 100644 index 000000000..72468c30d --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03.c @@ -0,0 +1,30 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} +extern unsigned int __VERIFIER_nondet_uint(); +extern _Bool __VERIFIER_nondet_bool(); + +int main() +{ + unsigned int x1=__VERIFIER_nondet_uint(), x2=__VERIFIER_nondet_uint(), x3=__VERIFIER_nondet_uint(); + unsigned int d1=1, d2=1, d3=1; + _Bool c1=__VERIFIER_nondet_bool(), c2=__VERIFIER_nondet_bool(); + + while(x1>0 && x2>0 && x3>0) + { + if (c1) x1=x1-d1; + else if (c2) x2=x2-d2; + else x3=x3-d3; + c1=__VERIFIER_nondet_bool(); + c2=__VERIFIER_nondet_bool(); + } + + __VERIFIER_assert(x1==0 || x2==0 || x3==0); + return 0; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03.c.cleanup.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03.c.cleanup.bpl new file mode 100644 index 000000000..7b461a6d0 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03.c.cleanup.bpl @@ -0,0 +1,595 @@ +procedure boogie_si_record_int(i: int); + +function {:existential true} b0(x1:int,x2:int,x3:int): bool; + + +function $add(p1: int, p2: int) : int; + +axiom (forall p1: int, p2: int :: { $add(p1, p2): int } $add(p1, p2): int == p1 + p2); + +function $sub(p1: int, p2: int) : int; + +axiom (forall p1: int, p2: int :: { $sub(p1, p2): int } $sub(p1, p2): int == p1 - p2); + +function $mul(p1: int, p2: int) : int; + +axiom (forall p1: int, p2: int :: { $mul(p1, p2): int } $mul(p1, p2): int == p1 * p2); + +function $sdiv(p1: int, p2: int) : int; + +function $udiv(p1: int, p2: int) : int; + +function $srem(p1: int, p2: int) : int; + +function $urem(p1: int, p2: int) : int; + +function $and(p1: int, p2: int) : int; + +axiom $and(0, 0) == 0; + +axiom $and(0, 1) == 0; + +axiom $and(1, 0) == 0; + +axiom $and(1, 1) == 1; + +function $or(p1: int, p2: int) : int; + +axiom $or(0, 0) == 0; + +axiom $or(0, 1) == 1; + +axiom $or(1, 0) == 1; + +axiom $or(1, 1) == 1; + +function $xor(p1: int, p2: int) : int; + +axiom $xor(0, 0) == 0; + +axiom $xor(0, 1) == 1; + +axiom $xor(1, 0) == 1; + +axiom $xor(1, 1) == 0; + +function $lshr(p1: int, p2: int) : int; + +function $ashr(p1: int, p2: int) : int; + +function $shl(p1: int, p2: int) : int; + +function $ult(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $ult(p1, p2): bool } $ult(p1, p2): bool == (p1 < p2)); + +function $ugt(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $ugt(p1, p2): bool } $ugt(p1, p2): bool == (p1 > p2)); + +function $ule(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $ule(p1, p2): bool } $ule(p1, p2): bool == (p1 <= p2)); + +function $uge(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $uge(p1, p2): bool } $uge(p1, p2): bool == (p1 >= p2)); + +function $slt(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $slt(p1, p2): bool } $slt(p1, p2): bool == (p1 < p2)); + +function $sgt(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $sgt(p1, p2): bool } $sgt(p1, p2): bool == (p1 > p2)); + +function $sle(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $sle(p1, p2): bool } $sle(p1, p2): bool == (p1 <= p2)); + +function $sge(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $sge(p1, p2): bool } $sge(p1, p2): bool == (p1 >= p2)); + +function $nand(p1: int, p2: int) : int; + +function $max(p1: int, p2: int) : int; + +function $min(p1: int, p2: int) : int; + +function $umax(p1: int, p2: int) : int; + +function $umin(p1: int, p2: int) : int; + +function $i2b(i: int) : bool; + +axiom (forall i: int :: $i2b(i) <==> i != 0); + +axiom $i2b(0) == false; + +function $b2i(b: bool) : int; + +axiom $b2i(true) == 1; + +axiom $b2i(false) == 0; + +type float; + +function $fp(a: int) : float; + +const $ffalse: float; + +const $ftrue: float; + +function $fadd(f1: float, f2: float) : float; + +function $fsub(f1: float, f2: float) : float; + +function $fmul(f1: float, f2: float) : float; + +function $fdiv(f1: float, f2: float) : float; + +function $frem(f1: float, f2: float) : float; + +function $foeq(f1: float, f2: float) : bool; + +function $foge(f1: float, f2: float) : bool; + +function $fogt(f1: float, f2: float) : bool; + +function $fole(f1: float, f2: float) : bool; + +function $folt(f1: float, f2: float) : bool; + +function $fone(f1: float, f2: float) : bool; + +function $ford(f1: float, f2: float) : bool; + +function $fueq(f1: float, f2: float) : bool; + +function $fuge(f1: float, f2: float) : bool; + +function $fugt(f1: float, f2: float) : bool; + +function $fule(f1: float, f2: float) : bool; + +function $fult(f1: float, f2: float) : bool; + +function $fune(f1: float, f2: float) : bool; + +function $funo(f1: float, f2: float) : bool; + +function $fp2si(f: float) : int; + +function $fp2ui(f: float) : int; + +function $si2fp(i: int) : float; + +function $ui2fp(i: int) : float; + +function $ptr(obj: int, off: int) : int; + +axiom (forall obj: int, off: int :: { $ptr(obj, off): int } $ptr(obj, off): int == obj + off); + +function $size(int) : int; + +function $obj(int) : int; + +function $off(ptr: int) : int; + +axiom (forall ptr: int :: { $off(ptr): int } $off(ptr): int == ptr); + +var alloc: [int]bool; + +var $CurrAddr: int; + +const unique $NULL: int; + +const $UNDEF: int; + +function $pa(pointer: int, index: int, size: int) : int; + +function $trunc(p: int) : int; + +function $p2i(p: int) : int; + +function $i2p(p: int) : int; + +function $p2b(p: int) : bool; + +function $b2p(b: bool) : int; + +axiom (forall p: int, i: int, s: int :: { $pa(p, i, s) } $pa(p, i, s) == p + i * s); + +axiom (forall p: int :: $trunc(p) == p); + +axiom $b2p(true) == 1; + +axiom $b2p(false) == 0; + +axiom (forall i: int :: $p2b(i) <==> i != 0); + +axiom $p2b(0) == false; + +axiom (forall i: int :: $p2i(i) == i); + +axiom (forall i: int :: $i2p(i) == i); + +procedure __SMACK_nondet() returns (p: int); + + + +procedure __SMACK_nondetInt() returns (p: int); + + + +procedure $malloc(obj_size: int) returns (new: int); + requires obj_size > 0; + modifies $CurrAddr, alloc; + ensures 0 < old($CurrAddr); + ensures new == old($CurrAddr); + ensures $CurrAddr > old($CurrAddr) + obj_size; + ensures $size(new) == obj_size; + ensures (forall x: int :: new <= x && x < new + obj_size ==> $obj(x) == new); + ensures alloc[new]; + ensures (forall x: int :: { alloc[x] } x == new || old(alloc)[x] == alloc[x]); + + + +procedure $free(pointer: int); + modifies alloc; + + + +procedure $alloca(obj_size: int) returns (new: int); + requires obj_size > 0; + modifies $CurrAddr, alloc; + ensures 0 < old($CurrAddr); + ensures new == old($CurrAddr); + ensures $CurrAddr > old($CurrAddr) + obj_size; + ensures $size(new) == obj_size; + ensures (forall x: int :: new <= x && x < new + obj_size ==> $obj(x) == new); + ensures alloc[new]; + ensures (forall x: int :: { alloc[x] } x == new || old(alloc)[x] == alloc[x]); + + + +const unique __VERIFIER_assert: int; + +const unique main: int; + +const unique __VERIFIER_nondet_uint: int; + +const unique __VERIFIER_nondet_bool: int; + +procedure __VERIFIER_assert(cond: int); + modifies alloc, $CurrAddr; + + + +implementation __VERIFIER_assert(cond: int) +{ + var $b: bool; + + $bb0: + assert {:sourcefile "trex03_safe.c"} {:sourceline 1} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 2} true; + $b := cond != 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 2} true; + goto $bb3, $bb4; + + $bb1: + assert {:sourcefile "trex03_safe.c"} {:sourceline 5} true; + return; + + $bb2: + assert {:sourcefile "trex03_safe.c"} {:sourceline 2} true; + goto $bb5; + + $bb3: + assert {:sourcefile "trex03_safe.c"} {:sourceline 2} true; + assume $b; + goto $bb1; + + $bb4: + assert {:sourcefile "trex03_safe.c"} {:sourceline 2} true; + assume !$b; + goto $bb2; + + $bb5: + assert {:sourcefile "trex03_safe.c"} {:sourceline 3} true; + goto $bb5; +} + + + +procedure main() returns ($r: int); + modifies alloc, $CurrAddr; + + + +implementation main() returns ($r: int) +{ + var $p: int; + var $p1: int; + var $p2: int; + var $b: bool; + var $p3: int; + var $b4: bool; + var $p5: int; + var $p6: int; + var $p7: int; + var $p8: int; + var $p9: int; + var $p10: int; + var $b11: bool; + var $b12: bool; + var $b13: bool; + var $b14: bool; + var $b15: bool; + var $b16: bool; + var $p17: int; + var $b18: bool; + var $b19: bool; + var $p20: int; + var $p21: int; + var $p22: int; + var $p23: int; + var $p24: int; + var $p25: int; + var $b26: bool; + var $p27: int; + var $b28: bool; + var $p29: int; + var $p30: int; + var $p31: int; + var $b32: bool; + var $b33: bool; + + $bb0: + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + havoc $p; + assume $p > 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + havoc $p1; + assume $p1 > 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + havoc $p2; + assume $p2 > 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 13} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 13} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 13} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + havoc $b; + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + $p3 := $b2p($b); + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + havoc $b4; + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + $p5 := $b2p($b4); + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $p6 := $p3; + $p7 := $p2; + $p8 := $p1; + $p9 := $p; + $p10 := $p5; + goto $bb1; + + $bb1: + assert b0($p9,$p8,$p7); + + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $b11 := $ugt($p9, 0); + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $b12 := false; + goto $bb4, $bb5; + + $bb2: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $b32 := $ugt($p8, 0); + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $b12 := false; + goto $bb28, $bb29; + + $bb3: + goto $bb8, $bb9; + + $bb4: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + assume $b11; + goto $bb2; + + $bb5: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + assume !$b11; + goto $bb3; + + $bb6: + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + $b18 := $i2b($p6); + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + goto $bb19, $bb20; + + $bb7: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b13 := $p9 == 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b14 := true; + goto $bb12, $bb13; + + $bb8: + assume $b12; + goto $bb6; + + $bb9: + assume !$b12; + goto $bb7; + + $bb10: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $p17 := $b2p($b14); + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + assert $p17 == 1; + assert {:sourcefile "trex03_safe.c"} {:sourceline 26} true; + $r := 0; + return; + + $bb11: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b15 := $p8 == 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b14 := true; + goto $bb15, $bb16; + + $bb12: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + assume $b13; + goto $bb10; + + $bb13: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + assume !$b13; + goto $bb11; + + $bb14: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b16 := $p7 == 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b14 := $b16; + goto $bb10; + + $bb15: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + assume $b15; + goto $bb10; + + $bb16: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + assume !$b15; + goto $bb14; + + $bb17: + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + $p31 := $sub($p9, 1); + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + $p23 := $p7; + $p24 := $p8; + $p25 := $p31; + goto $bb26; + + $bb18: + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + $b19 := $i2b($p10); + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + goto $bb23, $bb24; + + $bb19: + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + assume $b18; + goto $bb17; + + $bb20: + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + assume !$b18; + goto $bb18; + + $bb21: + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + $p30 := $sub($p8, 1); + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + $p21 := $p7; + $p22 := $p30; + goto $bb25; + + $bb22: + assert {:sourcefile "trex03_safe.c"} {:sourceline 20} true; + $p20 := $sub($p7, 1); + assert {:sourcefile "trex03_safe.c"} {:sourceline 20} true; + assume true; + $p21 := $p20; + $p22 := $p8; + goto $bb25; + + $bb23: + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + assume $b19; + goto $bb21; + + $bb24: + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + assume !$b19; + goto $bb22; + + $bb25: + $p23 := $p21; + $p24 := $p22; + $p25 := $p9; + goto $bb26; + + $bb26: + assert {:sourcefile "trex03_safe.c"} {:sourceline 21} true; + havoc $b26; + assert {:sourcefile "trex03_safe.c"} {:sourceline 21} true; + $p27 := $b2p($b26); + assert {:sourcefile "trex03_safe.c"} {:sourceline 21} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 22} true; + havoc $b28; + assert {:sourcefile "trex03_safe.c"} {:sourceline 22} true; + $p29 := $b2p($b28); + assert {:sourcefile "trex03_safe.c"} {:sourceline 22} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 23} true; + $p6 := $p27; + $p7 := $p23; + $p8 := $p24; + $p9 := $p25; + $p10 := $p29; + goto $bb1; + + $bb27: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $b33 := $ugt($p7, 0); + $b12 := $b33; + goto $bb3; + + $bb28: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + assume $b32; + goto $bb27; + + $bb29: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + assume !$b32; + goto $bb3; +} + + + +procedure __VERIFIER_nondet_uint() returns ($r: int); + modifies alloc, $CurrAddr; + + + +procedure __VERIFIER_nondet_bool() returns ($r: bool); + modifies alloc, $CurrAddr; + + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03.v.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03.v.c new file mode 100644 index 000000000..9cde70162 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03.v.c @@ -0,0 +1,34 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} +extern unsigned int __VERIFIER_nondet_uint(); +extern _Bool __VERIFIER_nondet_bool(); + +int main() +{ + unsigned int x1=__VERIFIER_nondet_uint(), x2=__VERIFIER_nondet_uint(), x3=__VERIFIER_nondet_uint(); + unsigned int d1=1, d2=1, d3=1; + int v1, v2, v3; + _Bool c1=__VERIFIER_nondet_bool(), c2=__VERIFIER_nondet_bool(); + + while(x1>0 && x2>0 && x3>0) + { + if (c1) x1=x1-d1; + else if (c2) x2=x2-d2; + else x3=x3-d3; + c1=__VERIFIER_nondet_bool(); + c2=__VERIFIER_nondet_bool(); + v1 = __VERIFIER_nondet_int(); + v2 = __VERIFIER_nondet_int(); + v3 = __VERIFIER_nondet_int(); + } + + __VERIFIER_assert(x1==0 || x2==0 || x3==0); + return 0; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03.v.c.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03.v.c.bpl new file mode 100644 index 000000000..79102ed1f --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03.v.c.bpl @@ -0,0 +1,600 @@ +procedure boogie_si_record_int(i: int); + +function {:existential true} b0(x1:int,x2:int,x3:int, v1: int, v2: int, v3: int): bool; + + +function $add(p1: int, p2: int) : int; + +axiom (forall p1: int, p2: int :: { $add(p1, p2): int } $add(p1, p2): int == p1 + p2); + +function $sub(p1: int, p2: int) : int; + +axiom (forall p1: int, p2: int :: { $sub(p1, p2): int } $sub(p1, p2): int == p1 - p2); + +function $mul(p1: int, p2: int) : int; + +axiom (forall p1: int, p2: int :: { $mul(p1, p2): int } $mul(p1, p2): int == p1 * p2); + +function $sdiv(p1: int, p2: int) : int; + +function $udiv(p1: int, p2: int) : int; + +function $srem(p1: int, p2: int) : int; + +function $urem(p1: int, p2: int) : int; + +function $and(p1: int, p2: int) : int; + +axiom $and(0, 0) == 0; + +axiom $and(0, 1) == 0; + +axiom $and(1, 0) == 0; + +axiom $and(1, 1) == 1; + +function $or(p1: int, p2: int) : int; + +axiom $or(0, 0) == 0; + +axiom $or(0, 1) == 1; + +axiom $or(1, 0) == 1; + +axiom $or(1, 1) == 1; + +function $xor(p1: int, p2: int) : int; + +axiom $xor(0, 0) == 0; + +axiom $xor(0, 1) == 1; + +axiom $xor(1, 0) == 1; + +axiom $xor(1, 1) == 0; + +function $lshr(p1: int, p2: int) : int; + +function $ashr(p1: int, p2: int) : int; + +function $shl(p1: int, p2: int) : int; + +function $ult(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $ult(p1, p2): bool } $ult(p1, p2): bool == (p1 < p2)); + +function $ugt(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $ugt(p1, p2): bool } $ugt(p1, p2): bool == (p1 > p2)); + +function $ule(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $ule(p1, p2): bool } $ule(p1, p2): bool == (p1 <= p2)); + +function $uge(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $uge(p1, p2): bool } $uge(p1, p2): bool == (p1 >= p2)); + +function $slt(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $slt(p1, p2): bool } $slt(p1, p2): bool == (p1 < p2)); + +function $sgt(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $sgt(p1, p2): bool } $sgt(p1, p2): bool == (p1 > p2)); + +function $sle(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $sle(p1, p2): bool } $sle(p1, p2): bool == (p1 <= p2)); + +function $sge(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $sge(p1, p2): bool } $sge(p1, p2): bool == (p1 >= p2)); + +function $nand(p1: int, p2: int) : int; + +function $max(p1: int, p2: int) : int; + +function $min(p1: int, p2: int) : int; + +function $umax(p1: int, p2: int) : int; + +function $umin(p1: int, p2: int) : int; + +function $i2b(i: int) : bool; + +axiom (forall i: int :: $i2b(i) <==> i != 0); + +axiom $i2b(0) == false; + +function $b2i(b: bool) : int; + +axiom $b2i(true) == 1; + +axiom $b2i(false) == 0; + +type float; + +function $fp(a: int) : float; + +const $ffalse: float; + +const $ftrue: float; + +function $fadd(f1: float, f2: float) : float; + +function $fsub(f1: float, f2: float) : float; + +function $fmul(f1: float, f2: float) : float; + +function $fdiv(f1: float, f2: float) : float; + +function $frem(f1: float, f2: float) : float; + +function $foeq(f1: float, f2: float) : bool; + +function $foge(f1: float, f2: float) : bool; + +function $fogt(f1: float, f2: float) : bool; + +function $fole(f1: float, f2: float) : bool; + +function $folt(f1: float, f2: float) : bool; + +function $fone(f1: float, f2: float) : bool; + +function $ford(f1: float, f2: float) : bool; + +function $fueq(f1: float, f2: float) : bool; + +function $fuge(f1: float, f2: float) : bool; + +function $fugt(f1: float, f2: float) : bool; + +function $fule(f1: float, f2: float) : bool; + +function $fult(f1: float, f2: float) : bool; + +function $fune(f1: float, f2: float) : bool; + +function $funo(f1: float, f2: float) : bool; + +function $fp2si(f: float) : int; + +function $fp2ui(f: float) : int; + +function $si2fp(i: int) : float; + +function $ui2fp(i: int) : float; + +function $ptr(obj: int, off: int) : int; + +axiom (forall obj: int, off: int :: { $ptr(obj, off): int } $ptr(obj, off): int == obj + off); + +function $size(int) : int; + +function $obj(int) : int; + +function $off(ptr: int) : int; + +axiom (forall ptr: int :: { $off(ptr): int } $off(ptr): int == ptr); + +var alloc: [int]bool; + +var $CurrAddr: int; + +const unique $NULL: int; + +const $UNDEF: int; + +function $pa(pointer: int, index: int, size: int) : int; + +function $trunc(p: int) : int; + +function $p2i(p: int) : int; + +function $i2p(p: int) : int; + +function $p2b(p: int) : bool; + +function $b2p(b: bool) : int; + +axiom (forall p: int, i: int, s: int :: { $pa(p, i, s) } $pa(p, i, s) == p + i * s); + +axiom (forall p: int :: $trunc(p) == p); + +axiom $b2p(true) == 1; + +axiom $b2p(false) == 0; + +axiom (forall i: int :: $p2b(i) <==> i != 0); + +axiom $p2b(0) == false; + +axiom (forall i: int :: $p2i(i) == i); + +axiom (forall i: int :: $i2p(i) == i); + +procedure __SMACK_nondet() returns (p: int); + + + +procedure __SMACK_nondetInt() returns (p: int); + + + +procedure $malloc(obj_size: int) returns (new: int); + requires obj_size > 0; + modifies $CurrAddr, alloc; + ensures 0 < old($CurrAddr); + ensures new == old($CurrAddr); + ensures $CurrAddr > old($CurrAddr) + obj_size; + ensures $size(new) == obj_size; + ensures (forall x: int :: new <= x && x < new + obj_size ==> $obj(x) == new); + ensures alloc[new]; + ensures (forall x: int :: { alloc[x] } x == new || old(alloc)[x] == alloc[x]); + + + +procedure $free(pointer: int); + modifies alloc; + + + +procedure $alloca(obj_size: int) returns (new: int); + requires obj_size > 0; + modifies $CurrAddr, alloc; + ensures 0 < old($CurrAddr); + ensures new == old($CurrAddr); + ensures $CurrAddr > old($CurrAddr) + obj_size; + ensures $size(new) == obj_size; + ensures (forall x: int :: new <= x && x < new + obj_size ==> $obj(x) == new); + ensures alloc[new]; + ensures (forall x: int :: { alloc[x] } x == new || old(alloc)[x] == alloc[x]); + + + +const unique __VERIFIER_assert: int; + +const unique main: int; + +const unique __VERIFIER_nondet_uint: int; + +const unique __VERIFIER_nondet_bool: int; + +procedure __VERIFIER_assert(cond: int); + modifies alloc, $CurrAddr; + + + +implementation __VERIFIER_assert(cond: int) +{ + var $b: bool; + + $bb0: + assert {:sourcefile "trex03_safe.c"} {:sourceline 1} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 2} true; + $b := cond != 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 2} true; + goto $bb3, $bb4; + + $bb1: + assert {:sourcefile "trex03_safe.c"} {:sourceline 5} true; + return; + + $bb2: + assert {:sourcefile "trex03_safe.c"} {:sourceline 2} true; + goto $bb5; + + $bb3: + assert {:sourcefile "trex03_safe.c"} {:sourceline 2} true; + assume $b; + goto $bb1; + + $bb4: + assert {:sourcefile "trex03_safe.c"} {:sourceline 2} true; + assume !$b; + goto $bb2; + + $bb5: + assert {:sourcefile "trex03_safe.c"} {:sourceline 3} true; + goto $bb5; +} + + + +procedure main() returns ($r: int); + modifies alloc, $CurrAddr; + + + +implementation main() returns ($r: int) +{ + var $p: int; + var $p1: int; + var $p2: int; + var $b: bool; + var $p3: int; + var $b4: bool; + var $p5: int; + var $p6: int; + var $p7: int; + var $p8: int; + var $p9: int; + var $p10: int; + var $b11: bool; + var $b12: bool; + var $b13: bool; + var $b14: bool; + var $b15: bool; + var $b16: bool; + var $p17: int; + var $b18: bool; + var $b19: bool; + var $p20: int; + var $p21: int; + var $p22: int; + var $p23: int; + var $p24: int; + var $p25: int; + var $b26: bool; + var $p27: int; + var $b28: bool; + var $p29: int; + var $p30: int; + var $p31: int; + var $b32: bool; + var $b33: bool; + var v1, v2, v3: int; + + $bb0: + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + havoc $p; + assume $p > 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + havoc $p1; + assume $p1 > 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + havoc $p2; + assume $p2 > 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 12} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 13} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 13} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 13} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + havoc $b; + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + $p3 := $b2p($b); + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + havoc $b4; + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + $p5 := $b2p($b4); + assert {:sourcefile "trex03_safe.c"} {:sourceline 14} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $p6 := $p3; + $p7 := $p2; + $p8 := $p1; + $p9 := $p; + $p10 := $p5; + goto $bb1; + + $bb1: + assert b0($p9,$p8,$p7,v1,v2,v3); + + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $b11 := $ugt($p9, 0); + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $b12 := false; + goto $bb4, $bb5; + + $bb2: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $b32 := $ugt($p8, 0); + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $b12 := false; + goto $bb28, $bb29; + + $bb3: + goto $bb8, $bb9; + + $bb4: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + assume $b11; + goto $bb2; + + $bb5: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + assume !$b11; + goto $bb3; + + $bb6: + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + $b18 := $i2b($p6); + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + goto $bb19, $bb20; + + $bb7: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b13 := $p9 == 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b14 := true; + goto $bb12, $bb13; + + $bb8: + assume $b12; + goto $bb6; + + $bb9: + assume !$b12; + goto $bb7; + + $bb10: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $p17 := $b2p($b14); + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + assert $p17 == 1; + assert {:sourcefile "trex03_safe.c"} {:sourceline 26} true; + $r := 0; + return; + + $bb11: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b15 := $p8 == 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b14 := true; + goto $bb15, $bb16; + + $bb12: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + assume $b13; + goto $bb10; + + $bb13: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + assume !$b13; + goto $bb11; + + $bb14: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b16 := $p7 == 0; + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + $b14 := $b16; + goto $bb10; + + $bb15: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + assume $b15; + goto $bb10; + + $bb16: + assert {:sourcefile "trex03_safe.c"} {:sourceline 25} true; + assume !$b15; + goto $bb14; + + $bb17: + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + $p31 := $sub($p9, 1); + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + $p23 := $p7; + $p24 := $p8; + $p25 := $p31; + goto $bb26; + + $bb18: + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + $b19 := $i2b($p10); + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + goto $bb23, $bb24; + + $bb19: + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + assume $b18; + goto $bb17; + + $bb20: + assert {:sourcefile "trex03_safe.c"} {:sourceline 18} true; + assume !$b18; + goto $bb18; + + $bb21: + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + $p30 := $sub($p8, 1); + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + $p21 := $p7; + $p22 := $p30; + goto $bb25; + + $bb22: + assert {:sourcefile "trex03_safe.c"} {:sourceline 20} true; + $p20 := $sub($p7, 1); + assert {:sourcefile "trex03_safe.c"} {:sourceline 20} true; + assume true; + $p21 := $p20; + $p22 := $p8; + goto $bb25; + + $bb23: + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + assume $b19; + goto $bb21; + + $bb24: + assert {:sourcefile "trex03_safe.c"} {:sourceline 19} true; + assume !$b19; + goto $bb22; + + $bb25: + $p23 := $p21; + $p24 := $p22; + $p25 := $p9; + goto $bb26; + + $bb26: + assert {:sourcefile "trex03_safe.c"} {:sourceline 21} true; + havoc $b26; + assert {:sourcefile "trex03_safe.c"} {:sourceline 21} true; + $p27 := $b2p($b26); + assert {:sourcefile "trex03_safe.c"} {:sourceline 21} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 22} true; + havoc $b28; + assert {:sourcefile "trex03_safe.c"} {:sourceline 22} true; + $p29 := $b2p($b28); + havoc v1; + havoc v2; + havoc v3; + + assert {:sourcefile "trex03_safe.c"} {:sourceline 22} true; + assume true; + assert {:sourcefile "trex03_safe.c"} {:sourceline 23} true; + $p6 := $p27; + $p7 := $p23; + $p8 := $p24; + $p9 := $p25; + $p10 := $p29; + goto $bb1; + + $bb27: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + $b33 := $ugt($p7, 0); + $b12 := $b33; + goto $bb3; + + $bb28: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + assume $b32; + goto $bb27; + + $bb29: + assert {:sourcefile "trex03_safe.c"} {:sourceline 16} true; + assume !$b32; + goto $bb3; +} + + + +procedure __VERIFIER_nondet_uint() returns ($r: int); + modifies alloc, $CurrAddr; + + + +procedure __VERIFIER_nondet_bool() returns ($r: bool); + modifies alloc, $CurrAddr; + + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03_safe.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03_safe.c new file mode 100644 index 000000000..72468c30d --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03_safe.c @@ -0,0 +1,30 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} +extern unsigned int __VERIFIER_nondet_uint(); +extern _Bool __VERIFIER_nondet_bool(); + +int main() +{ + unsigned int x1=__VERIFIER_nondet_uint(), x2=__VERIFIER_nondet_uint(), x3=__VERIFIER_nondet_uint(); + unsigned int d1=1, d2=1, d3=1; + _Bool c1=__VERIFIER_nondet_bool(), c2=__VERIFIER_nondet_bool(); + + while(x1>0 && x2>0 && x3>0) + { + if (c1) x1=x1-d1; + else if (c2) x2=x2-d2; + else x3=x3-d3; + c1=__VERIFIER_nondet_bool(); + c2=__VERIFIER_nondet_bool(); + } + + __VERIFIER_assert(x1==0 || x2==0 || x3==0); + return 0; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03_safe.v.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03_safe.v.c new file mode 100644 index 000000000..16d6bf2e4 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03_safe.v.c @@ -0,0 +1,34 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} +extern unsigned int __VERIFIER_nondet_uint(); +extern _Bool __VERIFIER_nondet_bool(); + +int main() +{ + unsigned int x1=__VERIFIER_nondet_uint(), x2=__VERIFIER_nondet_uint(), x3=__VERIFIER_nondet_uint(); + unsigned int d1=1, d2=1, d3=1; + _Bool c1=__VERIFIER_nondet_bool(), c2=__VERIFIER_nondet_bool(); + int v1,v2,v3; + + while(x1>0 && x2>0 && x3>0) + { + if (c1) x1=x1-d1; + else if (c2) x2=x2-d2; + else x3=x3-d3; + c1=__VERIFIER_nondet_bool(); + c2=__VERIFIER_nondet_bool(); + v1 = __VERIFIER_nondet_int(); + v2 = __VERIFIER_nondet_int(); + v3 = __VERIFIER_nondet_int(); + } + + __VERIFIER_assert(x1==0 || x2==0 || x3==0); + return 0; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/veris.c_sendmail__tTflag_arr_one_loop_safe.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/veris.c_sendmail__tTflag_arr_one_loop_safe.c new file mode 100644 index 000000000..0ce58c034 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/veris.c_sendmail__tTflag_arr_one_loop_safe.c @@ -0,0 +1,32 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} +int main (void) +{ + char in[11]; // = "3277192070"; + char *s; + unsigned char c; + unsigned int i, j; + int idx_in; + in[10] = 0; + idx_in = 0; + s = in; + i = 0; + c = in[idx_in]; + while (('0' <= c) && (c <= '9')) + { + j = c - '0'; + i = i * 10 + j; + idx_in++; + c = in[idx_in]; + } + /* OK */ + __VERIFIER_assert (i >= 0); + return 0; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/vsend.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/vsend.c new file mode 100644 index 000000000..0ce58c034 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/vsend.c @@ -0,0 +1,32 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} +int main (void) +{ + char in[11]; // = "3277192070"; + char *s; + unsigned char c; + unsigned int i, j; + int idx_in; + in[10] = 0; + idx_in = 0; + s = in; + i = 0; + c = in[idx_in]; + while (('0' <= c) && (c <= '9')) + { + j = c - '0'; + i = i * 10 + j; + idx_in++; + c = in[idx_in]; + } + /* OK */ + __VERIFIER_assert (i >= 0); + return 0; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/vsend.c.cleanup.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/vsend.c.cleanup.bpl new file mode 100644 index 000000000..da4063632 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/vsend.c.cleanup.bpl @@ -0,0 +1,439 @@ +procedure boogie_si_record_int(i: int); + +function {:existential true} b0(i:int): bool; + + +function $add(p1: int, p2: int) : int; + +axiom (forall p1: int, p2: int :: { $add(p1, p2): int } $add(p1, p2): int == p1 + p2); + +function $sub(p1: int, p2: int) : int; + +axiom (forall p1: int, p2: int :: { $sub(p1, p2): int } $sub(p1, p2): int == p1 - p2); + +function $mul(p1: int, p2: int) : int; + +axiom (forall p1: int, p2: int :: { $mul(p1, p2): int } $mul(p1, p2): int == p1 * p2); + +function $sdiv(p1: int, p2: int) : int; + +function $udiv(p1: int, p2: int) : int; + +function $srem(p1: int, p2: int) : int; + +function $urem(p1: int, p2: int) : int; + +function $and(p1: int, p2: int) : int; + +axiom $and(0, 0) == 0; + +axiom $and(0, 1) == 0; + +axiom $and(1, 0) == 0; + +axiom $and(1, 1) == 1; + +function $or(p1: int, p2: int) : int; + +axiom $or(0, 0) == 0; + +axiom $or(0, 1) == 1; + +axiom $or(1, 0) == 1; + +axiom $or(1, 1) == 1; + +function $xor(p1: int, p2: int) : int; + +axiom $xor(0, 0) == 0; + +axiom $xor(0, 1) == 1; + +axiom $xor(1, 0) == 1; + +axiom $xor(1, 1) == 0; + +function $lshr(p1: int, p2: int) : int; + +function $ashr(p1: int, p2: int) : int; + +function $shl(p1: int, p2: int) : int; + +function $ult(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $ult(p1, p2): bool } $ult(p1, p2): bool == (p1 < p2)); + +function $ugt(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $ugt(p1, p2): bool } $ugt(p1, p2): bool == (p1 > p2)); + +function $ule(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $ule(p1, p2): bool } $ule(p1, p2): bool == (p1 <= p2)); + +function $uge(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $uge(p1, p2): bool } $uge(p1, p2): bool == (p1 >= p2)); + +function $slt(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $slt(p1, p2): bool } $slt(p1, p2): bool == (p1 < p2)); + +function $sgt(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $sgt(p1, p2): bool } $sgt(p1, p2): bool == (p1 > p2)); + +function $sle(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $sle(p1, p2): bool } $sle(p1, p2): bool == (p1 <= p2)); + +function $sge(p1: int, p2: int) : bool; + +axiom (forall p1: int, p2: int :: { $sge(p1, p2): bool } $sge(p1, p2): bool == (p1 >= p2)); + +function $nand(p1: int, p2: int) : int; + +function $max(p1: int, p2: int) : int; + +function $min(p1: int, p2: int) : int; + +function $umax(p1: int, p2: int) : int; + +function $umin(p1: int, p2: int) : int; + +function $i2b(i: int) : bool; + +axiom (forall i: int :: $i2b(i) <==> i != 0); + +axiom $i2b(0) == false; + +function $b2i(b: bool) : int; + +axiom $b2i(true) == 1; + +axiom $b2i(false) == 0; + +type float; + +function $fp(a: int) : float; + +const $ffalse: float; + +const $ftrue: float; + +function $fadd(f1: float, f2: float) : float; + +function $fsub(f1: float, f2: float) : float; + +function $fmul(f1: float, f2: float) : float; + +function $fdiv(f1: float, f2: float) : float; + +function $frem(f1: float, f2: float) : float; + +function $foeq(f1: float, f2: float) : bool; + +function $foge(f1: float, f2: float) : bool; + +function $fogt(f1: float, f2: float) : bool; + +function $fole(f1: float, f2: float) : bool; + +function $folt(f1: float, f2: float) : bool; + +function $fone(f1: float, f2: float) : bool; + +function $ford(f1: float, f2: float) : bool; + +function $fueq(f1: float, f2: float) : bool; + +function $fuge(f1: float, f2: float) : bool; + +function $fugt(f1: float, f2: float) : bool; + +function $fule(f1: float, f2: float) : bool; + +function $fult(f1: float, f2: float) : bool; + +function $fune(f1: float, f2: float) : bool; + +function $funo(f1: float, f2: float) : bool; + +function $fp2si(f: float) : int; + +function $fp2ui(f: float) : int; + +function $si2fp(i: int) : float; + +function $ui2fp(i: int) : float; + +var $M.0: [int]int; + +function $ptr(obj: int, off: int) : int; + +axiom (forall obj: int, off: int :: { $ptr(obj, off): int } $ptr(obj, off): int == obj + off); + +function $size(int) : int; + +function $obj(int) : int; + +function $off(ptr: int) : int; + +axiom (forall ptr: int :: { $off(ptr): int } $off(ptr): int == ptr); + +var alloc: [int]bool; + +var $CurrAddr: int; + +const unique $NULL: int; + +const $UNDEF: int; + +function $pa(pointer: int, index: int, size: int) : int; + +function $trunc(p: int) : int; + +function $p2i(p: int) : int; + +function $i2p(p: int) : int; + +function $p2b(p: int) : bool; + +function $b2p(b: bool) : int; + +axiom (forall p: int, i: int, s: int :: { $pa(p, i, s) } $pa(p, i, s) == p + i * s); + +axiom (forall p: int :: $trunc(p) == p); + +axiom $b2p(true) == 1; + +axiom $b2p(false) == 0; + +axiom (forall i: int :: $p2b(i) <==> i != 0); + +axiom $p2b(0) == false; + +axiom (forall i: int :: $p2i(i) == i); + +axiom (forall i: int :: $i2p(i) == i); + +procedure __SMACK_nondet() returns (p: int); + + + +procedure __SMACK_nondetInt() returns (p: int); + + + +procedure $malloc(obj_size: int) returns (new: int); + requires obj_size > 0; + modifies $CurrAddr, alloc; + ensures 0 < old($CurrAddr); + ensures new == old($CurrAddr); + ensures $CurrAddr > old($CurrAddr) + obj_size; + ensures $size(new) == obj_size; + ensures (forall x: int :: new <= x && x < new + obj_size ==> $obj(x) == new); + ensures alloc[new]; + ensures (forall x: int :: { alloc[x] } x == new || old(alloc)[x] == alloc[x]); + + + +procedure $free(pointer: int); + modifies alloc; + + + +procedure $alloca(obj_size: int) returns (new: int); + requires obj_size > 0; + modifies $CurrAddr, alloc; + ensures 0 < old($CurrAddr); + ensures new == old($CurrAddr); + ensures $CurrAddr > old($CurrAddr) + obj_size; + ensures $size(new) == obj_size; + ensures (forall x: int :: new <= x && x < new + obj_size ==> $obj(x) == new); + ensures alloc[new]; + ensures (forall x: int :: { alloc[x] } x == new || old(alloc)[x] == alloc[x]); + + + +const unique __VERIFIER_assert: int; + +const unique main: int; + +procedure __VERIFIER_assert(cond: int); + modifies $M.0, alloc, $CurrAddr; + + + +implementation __VERIFIER_assert(cond: int) +{ + var $b: bool; + + $bb0: + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 1} true; + assume true; + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 2} true; + $b := cond != 0; + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 2} true; + goto $bb3, $bb4; + + $bb1: + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 5} true; + return; + + $bb2: + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 2} true; + goto $bb5; + + $bb3: + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 2} true; + assume $b; + goto $bb1; + + $bb4: + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 2} true; + assume !$b; + goto $bb2; + + $bb5: + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 3} true; + goto $bb5; +} + + + +procedure main() returns ($r: int); + modifies $M.0, alloc, $CurrAddr; + + + +implementation main() returns ($r: int) +{ + var $p: int; + var $p1: int; + var $p2: int; + var $p3: int; + var $p4: int; + var $p5: int; + var $p6: int; + var $p7: int; + var $b: bool; + var $b8: bool; + var $b9: bool; + var $p10: int; + var $p11: int; + var $p12: int; + var $p13: int; + var $p14: int; + var $p15: int; + var $p16: int; + var $p17: int; + var $p18: int; + var $b19: bool; + + $bb0: + call $p := $alloca($mul(11, 1)); + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 9} true; + assume true; + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 14} true; + $p1 := $pa($pa($p, 0, 11), 10, 1); + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 14} true; + $M.0[$p1] := 0; + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 15} true; + assume true; + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 17} true; + assume true; + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 18} true; + $p2 := $pa($pa($p, 0, 11), 0, 1); + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 18} true; + $p3 := $M.0[$p2]; + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 18} true; + assume true; + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 19} true; + $p4 := $p3; + $p5 := 0; + $p6 := 0; + goto $bb1; + + $bb1: + assert b0($p5); + + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 19} true; + $p7 := $p4; + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 19} true; + $b := $sle(48, $p7); + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 19} true; + $b8 := false; + goto $bb4, $bb5; + + $bb2: + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 19} true; + $p18 := $p4; + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 19} true; + $b19 := $sle($p18, 57); + $b8 := $b19; + goto $bb3; + + $bb3: + goto $bb8, $bb9; + + $bb4: + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 19} true; + assume $b; + goto $bb2; + + $bb5: + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 19} true; + assume !$b; + goto $bb3; + + $bb6: + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 21} true; + $p11 := $p4; + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 21} true; + $p12 := $sub($p11, 48); + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 21} true; + assume true; + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 22} true; + $p13 := $mul($p5, 10); + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 22} true; + $p14 := $add($p13, $p12); + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 22} true; + assume true; + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 23} true; + $p15 := $add($p6, 1); + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 23} true; + assume true; + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 24} true; + $p16 := $pa($pa($p, 0, 11), $p15, 1); + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 24} true; + $p17 := $M.0[$p16]; + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 24} true; + assume true; + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 25} true; + $p4 := $p17; + $p5 := $p14; + $p6 := $p15; + goto $bb1; + + $bb7: + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 27} true; + $b9 := $uge($p5, 0); + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 27} true; + $p10 := $b2p($b9); + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 27} true; + assert $p10 == 1; + assert {:sourcefile "veris.c_sendmail__tTflag_arr_one_loop_safe.c"} {:sourceline 28} true; + $r := 0; + return; + + $bb8: + assume $b8; + goto $bb6; + + $bb9: + assume !$b8; + goto $bb7; +} + + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/vsend.v.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/vsend.v.c new file mode 100644 index 000000000..ac0565c04 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/vsend.v.c @@ -0,0 +1,34 @@ +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: goto ERROR; + } + return; +} +int main (void) +{ + char in[11]; // = "3277192070"; + char *s; + unsigned char c; + unsigned int i, j; + int idx_in; + int v1, v2, v3; + in[10] = 0; + idx_in = 0; + s = in; + i = 0; + c = in[idx_in]; + while (('0' <= c) && (c <= '9')) + { + j = c - '0'; + i = i * 10 + j; + idx_in++; + c = in[idx_in]; + v1 = __VERIFIER_nondet_int(); + v2 = __VERIFIER_nondet_int(); + v3 = __VERIFIER_nondet_int(); + } + /* OK */ + __VERIFIER_assert (i >= 0); + return 0; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/vsend.v.c.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/vsend.v.c.bpl new file mode 100644 index 000000000..ad2170f8c --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/vsend.v.c.bpl @@ -0,0 +1,336 @@ +// SMACK-PRELUDE-BEGIN +procedure boogie_si_record_int(i: int); +function {:existential true} b0(i:int, v1: int, v2: int, v3: int): bool; + +// Integer arithmetic +function $add(p1:int, p2:int) returns (int) {p1 + p2} +function $sub(p1:int, p2:int) returns (int) {p1 - p2} +function $mul(p1:int, p2:int) returns (int) {p1 * p2} +function $sdiv(p1:int, p2:int) returns (int); +function $udiv(p1:int, p2:int) returns (int); +function $srem(p1:int, p2:int) returns (int); +function $urem(p1:int, p2:int) returns (int); +function $and(p1:int, p2:int) returns (int); +axiom $and(0,0) == 0; +axiom $and(0,1) == 0; +axiom $and(1,0) == 0; +axiom $and(1,1) == 1; +function $or(p1:int, p2:int) returns (int); +axiom $or(0,0) == 0; +axiom $or(0,1) == 1; +axiom $or(1,0) == 1; +axiom $or(1,1) == 1; +function $xor(p1:int, p2:int) returns (int); +axiom $xor(0,0) == 0; +axiom $xor(0,1) == 1; +axiom $xor(1,0) == 1; +axiom $xor(1,1) == 0; +function $lshr(p1:int, p2:int) returns (int); +function $ashr(p1:int, p2:int) returns (int); +function $shl(p1:int, p2:int) returns (int); +function $ult(p1:int, p2:int) returns (bool) {p1 < p2} +function $ugt(p1:int, p2:int) returns (bool) {p1 > p2} +function $ule(p1:int, p2:int) returns (bool) {p1 <= p2} +function $uge(p1:int, p2:int) returns (bool) {p1 >= p2} +function $slt(p1:int, p2:int) returns (bool) {p1 < p2} +function $sgt(p1:int, p2:int) returns (bool) {p1 > p2} +function $sle(p1:int, p2:int) returns (bool) {p1 <= p2} +function $sge(p1:int, p2:int) returns (bool) {p1 >= p2} +function $nand(p1:int, p2:int) returns (int); +function $max(p1:int, p2:int) returns (int); +function $min(p1:int, p2:int) returns (int); +function $umax(p1:int, p2:int) returns (int); +function $umin(p1:int, p2:int) returns (int); +function $i2b(i: int) returns (bool); +axiom (forall i:int :: $i2b(i) <==> i != 0); +axiom $i2b(0) == false; +function $b2i(b: bool) returns (int); +axiom $b2i(true) == 1; +axiom $b2i(false) == 0; + +// Floating point +type float; +function $fp(a:int) returns (float); +const $ffalse: float; +const $ftrue: float; +function $fadd(f1:float, f2:float) returns (float); +function $fsub(f1:float, f2:float) returns (float); +function $fmul(f1:float, f2:float) returns (float); +function $fdiv(f1:float, f2:float) returns (float); +function $frem(f1:float, f2:float) returns (float); +function $foeq(f1:float, f2:float) returns (bool); +function $foge(f1:float, f2:float) returns (bool); +function $fogt(f1:float, f2:float) returns (bool); +function $fole(f1:float, f2:float) returns (bool); +function $folt(f1:float, f2:float) returns (bool); +function $fone(f1:float, f2:float) returns (bool); +function $ford(f1:float, f2:float) returns (bool); +function $fueq(f1:float, f2:float) returns (bool); +function $fuge(f1:float, f2:float) returns (bool); +function $fugt(f1:float, f2:float) returns (bool); +function $fule(f1:float, f2:float) returns (bool); +function $fult(f1:float, f2:float) returns (bool); +function $fune(f1:float, f2:float) returns (bool); +function $funo(f1:float, f2:float) returns (bool); +function $fp2si(f:float) returns (int); +function $fp2ui(f:float) returns (int); +function $si2fp(i:int) returns (float); +function $ui2fp(i:int) returns (float); + +// Memory region declarations: 1 +var $M.0: [int] int; + +// SMACK Flat Memory Model + +function $ptr(obj:int, off:int) returns (int) {obj + off} +function $size(int) returns (int); +function $obj(int) returns (int); +function $off(ptr:int) returns (int) {ptr} + +var alloc: [int] bool; +var $CurrAddr:int; + +const unique $NULL: int; +axiom $NULL == 0; +const $UNDEF: int; + +function $pa(pointer: int, index: int, size: int) returns (int); +function $trunc(p: int) returns (int); +function $p2i(p: int) returns (int); +function $i2p(p: int) returns (int); +function $p2b(p: int) returns (bool); +function $b2p(b: bool) returns (int); + +axiom (forall p:int, i:int, s:int :: {$pa(p,i,s)} $pa(p,i,s) == p + i * s); +axiom (forall p:int :: $trunc(p) == p); + +axiom $b2p(true) == 1; +axiom $b2p(false) == 0; +axiom (forall i:int :: $p2b(i) <==> i != 0); +axiom $p2b(0) == false; +axiom (forall i:int :: $p2i(i) == i); +axiom (forall i:int :: $i2p(i) == i); +procedure __SMACK_nondet() returns (p: int); +procedure __SMACK_nondetInt() returns (p: int); + +procedure $malloc(obj_size: int) returns (new: int); +modifies $CurrAddr, alloc; +requires obj_size > 0; +ensures 0 < old($CurrAddr); +ensures new == old($CurrAddr); +ensures $CurrAddr > old($CurrAddr) + obj_size; +ensures $size(new) == obj_size; +ensures (forall x:int :: new <= x && x < new + obj_size ==> $obj(x) == new); +ensures alloc[new]; +ensures (forall x:int :: {alloc[x]} x == new || old(alloc)[x] == alloc[x]); + +procedure $free(pointer: int); +modifies alloc; +requires alloc[pointer]; +requires $obj(pointer) == pointer; +ensures !alloc[pointer]; +ensures (forall x:int :: {alloc[x]} x == pointer || old(alloc)[x] == alloc[x]); + +procedure $alloca(obj_size: int) returns (new: int); +modifies $CurrAddr, alloc; +requires obj_size > 0; +ensures 0 < old($CurrAddr); +ensures new == old($CurrAddr); +ensures $CurrAddr > old($CurrAddr) + obj_size; +ensures $size(new) == obj_size; +ensures (forall x:int :: new <= x && x < new + obj_size ==> $obj(x) == new); +ensures alloc[new]; +ensures (forall x:int :: {alloc[x]} x == new || old(alloc)[x] == alloc[x]); + +// SMACK-PRELUDE-END +// BEGIN SMACK-GENERATED CODE +const unique __VERIFIER_assert: int; +axiom (__VERIFIER_assert == -1024); +const unique main: int; +axiom (main == -2048); +const unique __VERIFIER_nondet_int: int; +axiom (__VERIFIER_nondet_int == -3072); + +procedure __VERIFIER_assert(cond: int) + modifies $M.0, alloc, $CurrAddr; +{ + var $b: bool; +$bb0: + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 1, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 2, 0} true; + $b := (cond != 0); + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 2, 0} true; + goto $bb3, $bb4; +$bb1: + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 5, 0} true; + return; +$bb2: + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 2, 0} true; + goto $bb5; +$bb3: + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 2, 0} true; + assume $b; + goto $bb1; +$bb4: + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 2, 0} true; + assume !($b); + goto $bb2; +$bb5: + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 3, 0} true; + goto $bb5; +} + +procedure main() + returns ($r: int) + modifies $M.0, alloc, $CurrAddr; +{ + var $p: int; + var $p1: int; + var $p2: int; + var $p3: int; + var $p4: int; + var $p5: int; + var $p6: int; + var $p7: int; + var $b: bool; + var $b8: bool; + var $b9: bool; + var $p10: int; + var $p11: int; + var $p12: int; + var $p13: int; + var $p14: int; + var $p15: int; + var $p16: int; + var $p17: int; + var $p18: int; + var $p19: int; + var $p20: int; + var $p21: int; + var $b22: bool; +$bb0: + call $p := $alloca($mul(11, 1)); + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 9, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 15, 0} true; + $p1 := $pa($pa($p, 0, 11), 10, 1); + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 15, 0} true; + $M.0[$p1] := 0; + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 16, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 18, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 19, 0} true; + $p2 := $pa($pa($p, 0, 11), 0, 1); + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 19, 0} true; + $p3 := $M.0[$p2]; + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 19, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 20, 0} true; + $p4 := $p3; + $p5 := 0; + $p6 := 0; + goto $bb1; +$bb1: + assert b0($p5, $p18, $p19, $p20); + + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 20, 0} true; + $p7 := $p4; + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 20, 0} true; + $b := $sle(48, $p7); + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 20, 0} true; + $b8 := false; + goto $bb4, $bb5; +$bb2: + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 20, 0} true; + $p21 := $p4; + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 20, 0} true; + $b22 := $sle($p21, 57); + $b8 := $b22; + goto $bb3; +$bb3: + goto $bb8, $bb9; +$bb4: + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 20, 0} true; + assume $b; + goto $bb2; +$bb5: + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 20, 0} true; + assume !($b); + goto $bb3; +$bb6: + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 22, 0} true; + $p11 := $p4; + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 22, 0} true; + $p12 := $sub($p11, 48); + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 22, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 23, 0} true; + $p13 := $mul($p5, 10); + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 23, 0} true; + $p14 := $add($p13, $p12); + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 23, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 24, 0} true; + $p15 := $add($p6, 1); + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 24, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 25, 0} true; + $p16 := $pa($pa($p, 0, 11), $p15, 1); + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 25, 0} true; + $p17 := $M.0[$p16]; + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 25, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 26, 0} true; + havoc $p18; + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 26, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 27, 0} true; + havoc $p19; + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 27, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 28, 0} true; + havoc $p20; + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 28, 0} true; + // WARNING: ignoring llvm.debug call. + assume true; + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 29, 0} true; + $p4 := $p17; + $p5 := $p14; + $p6 := $p15; + goto $bb1; +$bb7: + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 31, 0} true; + $b9 := $uge($p5, 0); + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 31, 0} true; + $p10 := $b2p($b9); + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 31, 0} true; + assert $p10 == 1; + assume {:sourceloc "veris.c_sendmail__tTflag_arr_one_loop_havoc.c", 32, 0} true; + $r := 0; + return; +$bb8: + assume $b8; + goto $bb6; +$bb9: + assume !($b8); + goto $bb7; +} + +procedure __VERIFIER_nondet_int() + returns ($r: int) ; + modifies $M.0, alloc, $CurrAddr; + +// END SMACK-GENERATED CODE diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/w1.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/w1.bpl new file mode 100644 index 000000000..acbb0b6b8 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/w1.bpl @@ -0,0 +1,17 @@ +function {:existential true} b0(x:int, n:int): bool; + +var x, n: int; + +procedure main() +modifies x; +{ + x := 0; + assume n >= 0; + while (x < n) + invariant b0(x, n); + { + x := x + 1; + } + assert x == n; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/w1.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/w1.c new file mode 100644 index 000000000..99441dbb4 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/w1.c @@ -0,0 +1,25 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + +//pre: n >= 0 +void main() { + int n = __VERIFIER_nondet_int(); + if(n < 0) + return; + + int x = 0; + + while (x < n) { + + x = x + 1; + + } + __VERIFIER_assert(x == n); + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/w2.bpl b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/w2.bpl new file mode 100644 index 000000000..126120c0b --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/w2.bpl @@ -0,0 +1,24 @@ +function {:existential true} b0(x:int, n:int): bool; + +var x, n: int; + +procedure main() +modifies x; +{ + x := 0; + assume n > 0; + while (true) + invariant b0(x, n); + { + if(*) + { + x := x + 1; + if(x >= n) + { + break; + } + } + } + assert x == n; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/w2.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/w2.c new file mode 100644 index 000000000..ec52529b5 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/w2.c @@ -0,0 +1,31 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error();; + } + return; +} + +void main() { + + int n = __VERIFIER_nondet_int(); + if (n <= 0) + return; + + int x = 0; + int input = __VERIFIER_nondet_int(); + + while ( 0 == 0 ) { + if ( input ) { + + x = x + 1; + if (x >= n ) { + break; + } + } + input = __VERIFIER_nondet_int(); + } + __VERIFIER_assert(x == n); + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/01.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/01.c new file mode 100644 index 000000000..316052b88 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/01.c @@ -0,0 +1,20 @@ +#include "seahorn/seahorn.h" + +extern int unknown1(); + +/* + * IC3 motivating example + */ + +void main() +{ + int x=1; int y=1; + while(unknown1()) { + int t1 = x; + int t2 = y; + x = t1+ t2; + y = t1 + t2; + } + sassert(y>=1); +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/02.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/02.c new file mode 100644 index 000000000..21d452a37 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/02.c @@ -0,0 +1,24 @@ +#include "seahorn/seahorn.h" + +extern int unknown2(); + +int main() +{ + int i = 1; + int j = 0; + int z = i-j; + int x = 0; + int y = 0; + int w = 0; + + while(unknown2()) + { + z+=x+y+w; + y++; + if(z%2==1) + x++; + w+=2; + } + + sassert(x==y); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/03.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/03.c new file mode 100644 index 000000000..a805c6098 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/03.c @@ -0,0 +1,23 @@ +#include "seahorn/seahorn.h" + +/* + * "nested4.c" from InvGen benchmark suite + */ + +extern int unknown1(); + +void main() { + int i,k,n; + + int l = unknown1(); + if(l>0) { + + for (k=1;k0); +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/05.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/05.c new file mode 100644 index 000000000..cfe766e84 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/05.c @@ -0,0 +1,24 @@ +#include "seahorn/seahorn.h" +extern int unknown1(); +extern int unknown2(); + +void main() +{ + int flag = unknown1(); + int x = 0; + int y = 0; + + int j = 0; + int i = 0; + + + while(unknown2()) + { + x++; + y++; + i+=x; + j+=y; + if(flag) j+=1; + } + sassert(j>=i); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/06.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/06.c new file mode 100644 index 000000000..19e9abebd --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/06.c @@ -0,0 +1,24 @@ +#include "seahorn/seahorn.h" +extern int unknown1(); +extern int unknown2(); + +void main() +{ + int w = 1; + int z = 0; + int x= 0; + int y=0; + + while(unknown1()){ + + while(unknown2()){ + if(w%2 == 1) x++; + if(z%2==0) y++; + } + z=x+y; + w=z+1; + } + + + sassert(x==y); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/07.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/07.c new file mode 100644 index 000000000..bc9d23925 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/07.c @@ -0,0 +1,47 @@ +#include "seahorn/seahorn.h" + +extern int unknown1 (); +extern int unknown2 (); + +/* + * From "Path Invariants" PLDI 07 by Beyer et al. + */ + +int main() { + int i, n, a, b; + n = unknown1 (); + i = 0; a = 0; b = 0; + + /*int m = unknown1(); + int n = unknown1(); + + int size = m; + int copy = n; + while (size > 0) { + int vail = unknown1 (); + if (vail > size) { + copy += vail; + size -= vail; + } + } + + sassert ( size != 0 || copy == m+n );*/ + + + + if (n >= 0) { + while( i < n ) { + if(unknown2()) { + a = a+1; + b = b+2; + } else { + a = a+2; + b = b+1; + } + i = i+1; + } + sassert( a+b == 3*n ); + } + + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/08.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/08.c new file mode 100644 index 000000000..9bd53591a --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/08.c @@ -0,0 +1,30 @@ +#include "seahorn/seahorn.h" +extern int unknown1(); +extern int unknown2(); +extern int unknown3(); + +/* + * Based on "Automatically refining abstract interpretations" fig.1 + */ + + +void main() { + int x = 0, y = 0; + while(unknown1()){ + if(unknown2()){ + x++; + y+=100; + } + else if (unknown3()){ + if (x >= 4) { + x++; + y++; + } + if (x < 0){ + y = -y; + } + } + + } + sassert(x < 4 || y > 2); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/09.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/09.c new file mode 100644 index 000000000..033a28563 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/09.c @@ -0,0 +1,49 @@ +#include "seahorn/seahorn.h" + +extern int unknown1(); +extern int unknown2(); +extern int unknown3(); + +/* + * "fragtest_simple" from InvGen benchmark suite + */ + + +void main(){ + int i,pvlen ; + int t; + int k = 0; + int n; + i = 0; + + // pkt = pktq->tqh_first; + while (unknown1()) + i = i + 1; + if (i > pvlen) { + pvlen = i; + } else { + + } + i = 0; + + while (unknown2()) { + t = i; + i = i + 1; + k = k +1; + } + while (unknown3()); + + int j = 0; + n = i; + while (1) { + sassert(k >= 0); + k = k -1; + i = i - 1; + j = j + 1; + if (j < n) { + } else { + break; + } + } + return; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/10.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/10.c new file mode 100644 index 000000000..a4826d868 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/10.c @@ -0,0 +1,27 @@ +#include "seahorn/seahorn.h" +extern int unknown2(); + +void main() { + + + int w = 1; + int z = 0; + int x= 0; + int y=0; + + + while(unknown2()){ + if(w) { + x++; + w=!w; + }; + if(!z) { + y++; + z=!z; + }; + } + + + sassert(x==y); + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/11.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/11.c new file mode 100644 index 000000000..78e5d75fd --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/11.c @@ -0,0 +1,22 @@ +#include "seahorn/seahorn.h" + +/* + * Based on ex3 from NECLA Static Analysis Benchmarks + */ + + +void main() +{ + int j=0; + int i; + int x=100; + + + for (i =0; i< x ; i++){ + j = j + 2; + } + + sassert(j == 2*x); +} + + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/12.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/12.c new file mode 100644 index 000000000..96fbb4e19 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/12.c @@ -0,0 +1,39 @@ +#include "seahorn/seahorn.h" + +extern int unknown1(); +extern int unknown2(); + + +int main() +{ + int t = 0; + int s = 0; + int a = 0; + int b = 0; + int flag = unknown1(); + + while(unknown1()){ + a++; + b++; + s+=a; + t+=b; + if(flag){ + t+=a; + } + } + //2s >= t + int x = 1; + if(flag){ + x = t-2*s+2; + } + //x <= 2 + int y = 0; + while(y<=x){ + if(unknown2()) + y++; + else + y+=2; + } + sassert(y<=4); +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/13.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/13.c new file mode 100644 index 000000000..53a2a559f --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/13.c @@ -0,0 +1,29 @@ +#include "seahorn/seahorn.h" +extern int unknown1(); +extern int unknown2(); +extern int unknown3(); +extern int unknown4(); + +/* + * Based on "Property-Directed Incremental Invariant Generation" by Bradley et al. + */ + +int main() { + int j = 2; + int k = 0; + + int flag = unknown2(); + + while(unknown1()){ + if (flag) + j = j + 4; + else { + j = j + 2; + k = k + 1; + } + } + if(k!=0) + sassert(j==2*k+2); + + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/14.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/14.c new file mode 100644 index 000000000..ba75cc5e4 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/14.c @@ -0,0 +1,21 @@ +#include "seahorn/seahorn.h" +extern int unknown1(); + +/* + * From "The Octagon Abstract Domain" HOSC 2006 by Mine. + */ + +int main() { + int a = 0; + int j = unknown1(); + int m = unknown1(); + if(m<=0) + return 0; + for(j = 1; j <= m ; j++){ + if(unknown1()) + a++; + else + a--; + } + sassert(a>=-m && a<=m); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/15.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/15.c new file mode 100644 index 000000000..ebfb7a0f0 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/15.c @@ -0,0 +1,30 @@ +#include "seahorn/seahorn.h" +int unknown1(); +int unknown2(); +int unknown3(); +int unknown4(); + +/* + * from Invgen test suite + */ + +int main() { + + int n; + int i, k, j; + + n = unknown1(); + i = unknown1(); + k = unknown1(); + j = unknown1(); + + if (n > 0 && k > n) { + j = 0; + while( j < n ) { + j++; + k--; + } + sassert(k>=0); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/16.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/16.c new file mode 100644 index 000000000..1d950792c --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/16.c @@ -0,0 +1,24 @@ +#include "seahorn/seahorn.h" +extern int unknown1(); + + +/* + * From "A Practical and Complete Approach to Predicate Refinement" by McMillan TACAS'06 + */ + +int main() { + + int i = unknown1(); + int j = unknown1(); + + int x = i; + int y = j; + + while(x!=0) { + x--; + y--; + } + if(i==j) + sassert(y==0); +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/17.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/17.c new file mode 100644 index 000000000..d5754c9fe --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/17.c @@ -0,0 +1,20 @@ +#include "seahorn/seahorn.h" +extern int unknown1(); + +void main() +{ + int k=1; + int i=1; + int j=0; + int n = unknown(); + while(i=n); + +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/18.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/18.c new file mode 100644 index 000000000..d4c576d51 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/18.c @@ -0,0 +1,24 @@ +#include "seahorn/seahorn.h" +extern int unknown1(); +extern int unknown2(); +extern int unknown3(); + +/* + * Adapted from ex17.c in NECLA test suite + */ + +int main() { + int flag = unknown1(); + int a = unknown2(); + int b = unknown3(); + int j = 0; + + for (b=0; b < 100 ; ++b){ + if (flag) + j = j +1; + } + + + if(flag) + sassert(j==100); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/19.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/19.c new file mode 100644 index 000000000..6c455edaf --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/19.c @@ -0,0 +1,21 @@ +#include "seahorn/seahorn.h" + +/* + * From "Simplifying Loop Invariant Generation using Splitter Predicates", Sharma et al. CAV'11 + */ +extern int unknown1(); + +void main() +{ + int n = unknown1 (); + int m = unknown1 (); + if (n >= 0 && m >= 0 && m < n) { + int x=0; + int y=m; + while(xm) y++; + } + sassert(y==n); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/20.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/20.c new file mode 100644 index 000000000..b437bf902 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/20.c @@ -0,0 +1,39 @@ +#include "seahorn/seahorn.h" + +extern int unknown1(); + +void main() +{ + int x, y, k, j, i, n; + x = unknown1(); + y = unknown1(); + k = unknown1(); + j = unknown1(); + i = unknown1(); + n = unknown1(); + if((x+y)== k) { + int m = 0; + j = 0; + while(j0) + { + sassert (0<=m); + sassert (m 0 && n < 10); + + k = 0; + i = 0; + while( i < n ) { + i++; + if(unknown2() % 2 == 0) + v = 0; + else v = 1; + + if( v == 0 ) + k += c1; + else + k += c2; + } + + sassert(k>n); + return 0; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/22.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/22.c new file mode 100644 index 000000000..be509b86d --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/22.c @@ -0,0 +1,22 @@ +#include "seahorn/seahorn.h" +extern int unknown1(); + +void main() +{ + int x = 0; + int y = 0; + int z = 0; + int k = 0; + + while(unknown1()) + { + if(k%3 == 0) + x++; + y++; + z++; + k = x+y+z; + } + + sassert(x==y && y==z); +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/23.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/23.c new file mode 100644 index 000000000..849f0a856 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/23.c @@ -0,0 +1,20 @@ +#include "seahorn/seahorn.h" +extern int unknown1(); + +/* + * ex49 from NECLA Static Analysis Benchmarks + */ + + +int main(){ + int i, sum=0; + int n = unknown1(); + if( n >= 0){ + + for (i=0; i < n; ++i) + sum = sum +i; + + sassert(sum >= 0); + } +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/24.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/24.c new file mode 100644 index 000000000..795638cb7 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/24.c @@ -0,0 +1,17 @@ +#include "seahorn/seahorn.h" +/* + * "nested5.c" from InvGen test suite + */ + +extern int unknown(); + +void main() { + int i,j,k,n; + + n = unknown(); + + for (i=0;i=i); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/25.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/25.c new file mode 100644 index 000000000..547146a01 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/25.c @@ -0,0 +1,31 @@ +#include "seahorn/seahorn.h" +extern int unknown1(); +extern int unknown2(); + +void main() +{ + int x = 0; + int y = 0; + int i = 0; + int j = 0; + + while(unknown1()) + { + while(unknown2()) + { + if(x==y) + i++; + else + j++; + } + if(i>=j) + { + x++; + y++; + } + else + y++; + } + + sassert(i>=j); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/26.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/26.c new file mode 100644 index 000000000..cac509948 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/26.c @@ -0,0 +1,24 @@ +#include "seahorn/seahorn.h" +extern int unknown1(); +extern int unknown2(); +extern int unknown3(); +extern int unknown4(); + +void main() +{ + int w=1, z=0, x=0, y=0; + while(unknown1()){ + while(unknown2()){ + if(w%2 == 1) + x++; + if(z%2==0) + y++; + } + while(unknown4()) + { + z=x+y; + w=z+1; + } + } + sassert(x==y); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/27.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/27.c new file mode 100644 index 000000000..dcd8922b7 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/27.c @@ -0,0 +1,23 @@ +#include "seahorn/seahorn.h" +extern int unknown1 (); +/* + * "nested2.c" from InvGen benchmark suite + */ + + +void main() { + int i,k,n,l; + n = unknown1(); + l = unknown1(); + if(l>0) { + + for (k=1;k=0); +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/31.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/31.c new file mode 100644 index 000000000..afd7fbfc1 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/31.c @@ -0,0 +1,34 @@ + +#include "seahorn/seahorn.h" +extern int unknown1(); + +/* + * "nest-if8" from InvGen benchmark suite + */ + + +void main() { + int i,j,k,n,m; + i = unknown1(); + j = unknown1(); + k = unknown1(); + n = unknown1(); + m = unknown1(); + if( m+1 < n ); else return; + for ( i=0; i= 0 ); + j++; + k = 0; + while( k < j ) { + k++; + } + } + else { + sassert( n+j+5>i ); + j+= 2; + } + } + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/32.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/32.c new file mode 100644 index 000000000..2362ad008 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/32.c @@ -0,0 +1,27 @@ +#include "seahorn/seahorn.h" + +/* + * "split.c" from InvGen benchmark suite + */ + +extern int unknown(); + +void main() { + int k = 100; + int b = 0; + int i = unknown(); + int j = unknown(); + int n; + i = j = 0; + for( n = 0 ; n < 2*k ; n++ ) { + if((int )b == 1) { + i++; + b = 0; + } else if ((int )b == 0) { + j++; + b = 1; + } + //b = !b; + } + sassert(i == j); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/33.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/33.c new file mode 100644 index 000000000..d2e5de736 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/33.c @@ -0,0 +1,40 @@ +#include "seahorn/seahorn.h" + +extern int unknown1(); +extern int unknown2(); +extern int unknown3(); +extern int unknown4(); + +int main() +{ + int k = unknown4(); + int z = k; + int x = 0; + int y = 0; + + while(unknown1()) + { + int c = 0; + while(unknown2()) + { + if(z==k+y-c) + { + x++; + y++; + c++; + }else + { + x++; + y--; + c++; + } + } + while(unknown3()) + { + x--; + y--; + } + z=k+y; + } + sassert(x==y); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/34.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/34.c new file mode 100644 index 000000000..f4a2cee0b --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/34.c @@ -0,0 +1,22 @@ +#include "seahorn/seahorn.h" +extern int unknown(); + +void main() +{ + int x=0; + int y=0; + int i=0; + int m=10; + int n = unknown(); + + + while(i0) sassert(x==n); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/36.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/36.c new file mode 100644 index 000000000..1b695ce1b --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/36.c @@ -0,0 +1,72 @@ +#include "seahorn/seahorn.h" + +extern int unknown1(); +extern int unknown2(); +extern int unknown3(); + +void main(int flag) +{ + int a = 0; + int b = 0; + int x = 0; + int y = 0; + int z = 0; + int j = 0; + int w = 0; + + while(unknown1()) + { + int i = z; + int j = w; + int k = 0; + while(i=z && a-b==0); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/37.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/37.c new file mode 100644 index 000000000..d57ff7b5c --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/37.c @@ -0,0 +1,20 @@ +#include "seahorn/seahorn.h" +extern int unknown1(); +extern int unknown2(); + +/* + * Taken from "Counterexample Driven Refinement for Abstract Interpretation" (TACAS'06) by Gulavani + */ + +void main() { + int x= 0; + int m=0; + int n = unknown1(); + while(x0) sassert(0<=m && m 0); else goto END; + + /* + buf = A; + pattern = B; + */ + buf_off = 0; + pattern_off = 0; + + /* bound = A + sizeof(A)/sizeof(*A) - 1; */ + bound_off = 0 + (MAXPATHLEN + 1) - 1; + + glob3_pathbuf_off = buf_off; + glob3_pathend_off = buf_off; + glob3_pathlim_off = bound_off; + glob3_pattern_off = pattern_off; + + glob3_dc = 0; + for (;;) + if (glob3_pathend_off + glob3_dc >= glob3_pathlim_off) break; + else { + // A[glob3_dc] = 1; + glob3_dc++; + /* OK */ + sassert(0 <= glob3_dc); + sassert (glob3_dc < MAXPATHLEN + 1); + if (unknown()) goto END; + } + END: return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/40.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/40.c new file mode 100644 index 000000000..12107dc49 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/40.c @@ -0,0 +1,31 @@ +#include "seahorn/seahorn.h" +extern int unknown1(); +extern int unknown2(); + +void main( int flag) +{ + int i, j, k; + j = 1; + if(flag) {i=0;} + else {i=1;} + + + while(unknown1()) { + i+=2; + if(i%2 == 0) { + j+=2; + } + else j++; + } + + int a = 0; + int b=0; + + while(unknown2()) { + a++; + b+=(j-i); + } + if(flag) + sassert(a==b); +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/41.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/41.c new file mode 100644 index 000000000..c73d178c1 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/41.c @@ -0,0 +1,28 @@ +#include "seahorn/seahorn.h" +extern int unknown1(); + +/* + * Adapted from "Automated Error Diagnosis Using Abductive Inference" by Dillig et al. + */ + +int main() { + int n = unknown1(); + int flag = unknown1(); + + if(n>=0){ + int k = 1; + if(flag) { + k = unknown1(); + if(k>=0) ; else return 0; + } + int i = 0, j = 0; + while(i <= n) { + i++; + j+=i; + } + int z = k + i + j; + sassert(z > 2*n); + } + return 0; +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/42.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/42.c new file mode 100644 index 000000000..bad0546c3 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/42.c @@ -0,0 +1,40 @@ + +#include "seahorn/seahorn.h" + +extern int unknown1(); +extern int unknown2(); + +void main() +{ + int flag = unknown1(); + int x = 1; + int y = 1; + int a; + + if(flag) + a = 0; + else + a = 1; + + while(unknown1()){ + if(flag) + { + a = x+y; + x++; + } + else + { + a = x+y+1; + y++; + } + if(a%2==1) + y++; + else + x++; + } + //x==y + + if(flag) + a++; + sassert(a%2==1); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/43.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/43.c new file mode 100644 index 000000000..af1058c11 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/43.c @@ -0,0 +1,30 @@ +#include "seahorn/seahorn.h" +extern int unknown1(); +extern int unknown2(); +extern int unknown3(); + +/* + * Based on ex16 from NECLA Static Analysis Benchmarks + */ + + +int main() +{ + int x = unknown1(); + int y = unknown2(); + int i=0; + int t=y; + + if (x==y) return x; + + while (unknown3()){ + if (x > 0) + y = y + x; + } + + + sassert(y>=t); + +} + + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/44.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/44.c new file mode 100644 index 000000000..b4f507896 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/44.c @@ -0,0 +1,35 @@ +#include "seahorn/seahorn.h" +extern int unknown1(); + +/* + * Adapted from ex20 from NECLA Static Analysis Benchmarks + */ + + +int main() +{ + int k = unknown1(); + int flag = unknown1(); + int i=0; + int j=0; + int n = unknown1(); + + + if (flag == 1){ + n=1; + } else { + n=2; + } + + i=0; + + while ( i <= k){ + i++; + j= j +n; + } + if(flag == 1) + sassert(j == i); + +} + + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/45.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/45.c new file mode 100644 index 000000000..ae4b73cff --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/45.c @@ -0,0 +1,45 @@ +#include "seahorn/seahorn.h" +extern int unknown1(); +extern int unknown2(); +extern int unknown3(); +extern int unknown4(); + +void main() +{ + int x = 0; + int y = 0; + int j = 0; + int i = 0; + int c = 0; + int d = 1; + int flag = unknown4(); + while(unknown1()) + { + x++; + y++; + i+=x; + j+=y; + if(flag) + { + j+=1; + } + } + if(j>=i) + x=y; + else + x=y+1; + + int w = 1; + int z = 0; + while(unknown2()){ + while(unknown3()){ + if(w%2 == 1) + x++; + if(z%2==0) + y++; + } + z=x+y; + w=z+1; + } + sassert(x==y); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/46.c b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/46.c new file mode 100644 index 000000000..cce00f9ee --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/46.c @@ -0,0 +1,23 @@ +#include "seahorn/seahorn.h" + +extern int unknown2(); + +void main() +{ + + + int w = 1; + int z = 0; + int x= 0; + int y=0; + + + while(unknown2()){ + if(w%2 == 1) {x++; w++;}; + if(z%2==0) {y++; z++;}; + } + + + sassert(x<=1); +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/.DS_Store b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..c7cad0ec50749dd81a6758ee87dd2520d04cd1ae GIT binary patch literal 10244 zcmeHMTWl0n7(QQHU1y22>1y22;2(@kY@8k86d5H^%3w9@Db=nfaixGo!o{z+a;|?9dr>(0J3>hEe^V; zb%2NodN$Z0AIVSv~D+9l%;yE-`)0z?L^3XJ<@JlZnC`m3UYGu`t%@~`D{dxwgsyG2 z;xVVQ#!1Cv?%GD#U$YfUZf@0wHYCgr3T+6-&6SpGMJ(G&Zc|kLY1K#U*fF7EN?EXC z`sAHu!5x*AOjifKD{>IW5Nabt^ksNh7UXQVqd_8&8^9FM>n`yR=Z9jSt~kg z)%BEXE;p$!tHZ3L9;vHA9Lr_xyc>6=nQ+M#hsq@m>Kg-x2Z9ehJZb98xtH_xfdUc+%QvnF+N3ht;NdxXrvgNH54AQD|suWAwPC zPK^6w`Z+}vo>7H{v4(qU6DD0_iXy5X9BpV#E`3!!>@_SMqiIcBh!nc3%Fyv;nz6zT zM@(CfsWPm*LNl5>A{fhybz`V2PzKDx)LZiOTVm{s?1vGgzGVi1Zj zme@I!n7IIph?h&S6f4n;)mTH^+=$J13|n9$g-&b}{M?N_*o$YdkNEilUc$>bjH5V? zlQ@ObID_|b4jI}tGy_$d);H!0?lB6DB1P$$ zdgNn98zm}De36G_%@}Q*N|RlrBT-|NX%iL71~N^_stRq2LMb4fu4Ls9tx{3DbDgZK zGG_DSkde=%uh0l7N)LJKoid6;0nP)Ofp?{HDh5CkDp!mWp>kE2jX6T)mf%q=6DqeJ z8xR&M_c&Z6h05*0(|C@u$19|Bui-5(Z+uF5<7-^TkN8Or>!vDqjr_NzIPanBxa8^mgs5qwv|?5D1TRn;7^~34 z&~v13d|(2ny`C$IfpTp!XSm)+dZ%fXd~vt4)+yXoDGbM^pf-yyt+ zBY2&(?-)*qceFEj4`*>67w|E1xxM+hLVuCcC$2AtkN$Q(Q0YY)=7flhw#c3skn5W4Utyk2a_Q-N>C ui|rDs^EQ-(KjgLRl2(LMoCqf?ck}=AKLbpE{ZIQ;{`&uav4@@gh4LS8Yirm5 literal 0 HcmV?d00001 diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/LICENSE.txt b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/LICENSE.txt new file mode 100644 index 000000000..838e50a78 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/LICENSE.txt @@ -0,0 +1 @@ +../LICENSE.Apache-2.0.txt \ No newline at end of file diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/Makefile b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/Makefile new file mode 100644 index 000000000..49b2905c1 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/Makefile @@ -0,0 +1,3 @@ +LEVEL := ../ + +include $(LEVEL)/Makefile.config diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/README.txt b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/README.txt new file mode 100644 index 000000000..ae6816f50 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/README.txt @@ -0,0 +1,2 @@ +The benchmarks in this directory contains simple cases for recursive programs. +They were added from the CPAchecker project (https://cpachecker.sosy-lab.org/). diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/afterrec_2calls_false-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/afterrec_2calls_false-unreach-call_true-termination.c new file mode 100644 index 000000000..f8e734987 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/afterrec_2calls_false-unreach-call_true-termination.c @@ -0,0 +1,22 @@ +extern void __VERIFIER_error(); + +void f(int); +void f2(int); + +void f(int n) { + if (n<3) return; + n--; + f2(n); + ERROR: __VERIFIER_error(); +} + +void f2(int n) { + if (n<3) return; + n--; + f(n); + ERROR: __VERIFIER_error(); +} + +int main(void) { + f(4); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/afterrec_2calls_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/afterrec_2calls_true-unreach-call_true-termination.c new file mode 100644 index 000000000..860360825 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/afterrec_2calls_true-unreach-call_true-termination.c @@ -0,0 +1,22 @@ +extern void __VERIFIER_error(); + +void f(int); +void f2(int); + +void f(int n) { + if (n<3) return; + n--; + f2(n); + ERROR: __VERIFIER_error(); +} + +void f2(int n) { + if (n<3) return; + n--; + f(n); + ERROR: __VERIFIER_error(); +} + +int main(void) { + f(2); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/afterrec_false-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/afterrec_false-unreach-call_true-termination.c new file mode 100644 index 000000000..8685329df --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/afterrec_false-unreach-call_true-termination.c @@ -0,0 +1,12 @@ +extern void __VERIFIER_error(); + +void f(int n) { + if (n<3) return; + n--; + f(n); + ERROR: __VERIFIER_error(); +} + +int main(void) { + f(4); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/afterrec_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/afterrec_true-unreach-call_true-termination.c new file mode 100644 index 000000000..00a12b951 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/afterrec_true-unreach-call_true-termination.c @@ -0,0 +1,12 @@ +extern void __VERIFIER_error(); + +void f(int n) { + if (n<3) return; + n--; + f(n); + ERROR: __VERIFIER_error(); +} + +int main(void) { + f(2); +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_10_false-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_10_false-unreach-call.c new file mode 100644 index 000000000..2beacac99 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_10_false-unreach-call.c @@ -0,0 +1,30 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + + +int fibo(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo(n-1) + fibo(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 10; + int result = fibo(x); + if (result == 55) { + ERROR: __VERIFIER_error(); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_10_true-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_10_true-unreach-call.c new file mode 100644 index 000000000..05c058428 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_10_true-unreach-call.c @@ -0,0 +1,30 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + + +int fibo(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo(n-1) + fibo(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 10; + int result = fibo(x); + if (result != 55) { + ERROR: __VERIFIER_error(); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_15_false-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_15_false-unreach-call.c new file mode 100644 index 000000000..995985d4f --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_15_false-unreach-call.c @@ -0,0 +1,30 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + + +int fibo(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo(n-1) + fibo(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 15; + int result = fibo(x); + if (result == 610) { + ERROR: __VERIFIER_error(); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_15_true-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_15_true-unreach-call.c new file mode 100644 index 000000000..947cb7787 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_15_true-unreach-call.c @@ -0,0 +1,30 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + + +int fibo(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo(n-1) + fibo(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 15; + int result = fibo(x); + if (result != 610) { + ERROR: __VERIFIER_error(); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_20_false-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_20_false-unreach-call.c new file mode 100644 index 000000000..fd6128067 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_20_false-unreach-call.c @@ -0,0 +1,30 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + + +int fibo(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo(n-1) + fibo(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 20; + int result = fibo(x); + if (result == 6765) { + ERROR: __VERIFIER_error(); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_20_true-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_20_true-unreach-call.c new file mode 100644 index 000000000..e01e4ad99 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_20_true-unreach-call.c @@ -0,0 +1,30 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + + +int fibo(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo(n-1) + fibo(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 20; + int result = fibo(x); + if (result != 6765) { + ERROR: __VERIFIER_error(); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_25_false-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_25_false-unreach-call.c new file mode 100644 index 000000000..b6374fbbb --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_25_false-unreach-call.c @@ -0,0 +1,30 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + + +int fibo(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo(n-1) + fibo(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 25; + int result = fibo(x); + if (result == 75025) { + ERROR: __VERIFIER_error(); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_25_true-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_25_true-unreach-call.c new file mode 100644 index 000000000..8844569af --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_25_true-unreach-call.c @@ -0,0 +1,30 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + + +int fibo(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo(n-1) + fibo(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 25; + int result = fibo(x); + if (result != 75025) { + ERROR: __VERIFIER_error(); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_10_false-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_10_false-unreach-call.c new file mode 100644 index 000000000..099121549 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_10_false-unreach-call.c @@ -0,0 +1,42 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 10; + int result = fibo1(x); + if (result == 55) { + ERROR: __VERIFIER_error(); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_10_true-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_10_true-unreach-call.c new file mode 100644 index 000000000..133cefc33 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_10_true-unreach-call.c @@ -0,0 +1,42 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 10; + int result = fibo1(x); + if (result != 55) { + ERROR: __VERIFIER_error(); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_15_false-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_15_false-unreach-call.c new file mode 100644 index 000000000..7c922158b --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_15_false-unreach-call.c @@ -0,0 +1,42 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 15; + int result = fibo1(x); + if (result == 610) { + ERROR: __VERIFIER_error(); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_15_true-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_15_true-unreach-call.c new file mode 100644 index 000000000..6980c0256 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_15_true-unreach-call.c @@ -0,0 +1,42 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 15; + int result = fibo1(x); + if (result != 610) { + ERROR: __VERIFIER_error(); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_20_false-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_20_false-unreach-call.c new file mode 100644 index 000000000..02d633266 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_20_false-unreach-call.c @@ -0,0 +1,42 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 20; + int result = fibo1(x); + if (result == 6765) { + ERROR: __VERIFIER_error(); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_20_true-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_20_true-unreach-call.c new file mode 100644 index 000000000..9e0d937b4 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_20_true-unreach-call.c @@ -0,0 +1,42 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 20; + int result = fibo1(x); + if (result != 6765) { + ERROR: __VERIFIER_error(); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_25_false-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_25_false-unreach-call.c new file mode 100644 index 000000000..10e7cb6f1 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_25_false-unreach-call.c @@ -0,0 +1,42 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 25; + int result = fibo1(x); + if (result == 75025) { + ERROR: __VERIFIER_error(); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_25_true-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_25_true-unreach-call.c new file mode 100644 index 000000000..62b1811ed --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_25_true-unreach-call.c @@ -0,0 +1,42 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 25; + int result = fibo1(x); + if (result != 75025) { + ERROR: __VERIFIER_error(); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_2_false-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_2_false-unreach-call_true-termination.c new file mode 100644 index 000000000..c7510d0ef --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_2_false-unreach-call_true-termination.c @@ -0,0 +1,42 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 2; + int result = fibo1(x); + if (result == 1) { + ERROR: __VERIFIER_error(); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_2_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_2_true-unreach-call_true-termination.c new file mode 100644 index 000000000..81991d0fd --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_2_true-unreach-call_true-termination.c @@ -0,0 +1,42 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 2; + int result = fibo1(x); + if (result != 1) { + ERROR: __VERIFIER_error(); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_4_false-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_4_false-unreach-call_true-termination.c new file mode 100644 index 000000000..dc720eb8e --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_4_false-unreach-call_true-termination.c @@ -0,0 +1,42 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 4; + int result = fibo1(x); + if (result == 3) { + ERROR: __VERIFIER_error(); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_4_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_4_true-unreach-call_true-termination.c new file mode 100644 index 000000000..e138cb2c8 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_4_true-unreach-call_true-termination.c @@ -0,0 +1,42 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 4; + int result = fibo1(x); + if (result != 3) { + ERROR: __VERIFIER_error(); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_5_false-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_5_false-unreach-call_true-termination.c new file mode 100644 index 000000000..b537a3d18 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_5_false-unreach-call_true-termination.c @@ -0,0 +1,42 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 5; + int result = fibo1(x); + if (result == 5) { + ERROR: __VERIFIER_error(); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_5_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_5_true-unreach-call_true-termination.c new file mode 100644 index 000000000..da8ecde91 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_5_true-unreach-call_true-termination.c @@ -0,0 +1,42 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 5; + int result = fibo1(x); + if (result != 5) { + ERROR: __VERIFIER_error(); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_6_false-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_6_false-unreach-call_true-termination.c new file mode 100644 index 000000000..5c15da8dc --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_6_false-unreach-call_true-termination.c @@ -0,0 +1,42 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 6; + int result = fibo1(x); + if (result == 8) { + ERROR: __VERIFIER_error(); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_6_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_6_true-unreach-call_true-termination.c new file mode 100644 index 000000000..f0248dc1f --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_6_true-unreach-call_true-termination.c @@ -0,0 +1,42 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 6; + int result = fibo1(x); + if (result != 8) { + ERROR: __VERIFIER_error(); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_8_false-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_8_false-unreach-call.c new file mode 100644 index 000000000..c34145654 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_8_false-unreach-call.c @@ -0,0 +1,42 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 8; + int result = fibo1(x); + if (result == 21) { + ERROR: __VERIFIER_error(); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_8_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_8_true-unreach-call_true-termination.c new file mode 100644 index 000000000..aad8cc162 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_8_true-unreach-call_true-termination.c @@ -0,0 +1,42 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 8; + int result = fibo1(x); + if (result != 21) { + ERROR: __VERIFIER_error(); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_5_false-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_5_false-unreach-call_true-termination.c new file mode 100644 index 000000000..f86824e33 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_5_false-unreach-call_true-termination.c @@ -0,0 +1,30 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + + +int fibo(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo(n-1) + fibo(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 5; + int result = fibo(x); + if (result == 5) { + ERROR: __VERIFIER_error(); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_5_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_5_true-unreach-call_true-termination.c new file mode 100644 index 000000000..ded62cba4 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_5_true-unreach-call_true-termination.c @@ -0,0 +1,30 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + + +int fibo(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo(n-1) + fibo(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 5; + int result = fibo(x); + if (result != 5) { + ERROR: __VERIFIER_error(); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_7_false-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_7_false-unreach-call.c new file mode 100644 index 000000000..1ed615128 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_7_false-unreach-call.c @@ -0,0 +1,30 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + + +int fibo(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo(n-1) + fibo(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 7; + int result = fibo(x); + if (result == 13) { + ERROR: __VERIFIER_error(); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_7_true-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_7_true-unreach-call.c new file mode 100644 index 000000000..07b7580e8 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_7_true-unreach-call.c @@ -0,0 +1,30 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + + +int fibo(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo(n-1) + fibo(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 7; + int result = fibo(x); + if (result != 13) { + ERROR: __VERIFIER_error(); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id2_b2_o3_true-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id2_b2_o3_true-unreach-call.c new file mode 100644 index 000000000..67ce0fa7a --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id2_b2_o3_true-unreach-call.c @@ -0,0 +1,27 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int id(int x); +int id2(int x); + +int id(int x) { + if (x==0) return 0; + int ret = id2(x-1) + 1; + if (ret > 2) return 2; + return ret; +} + +int id2(int x) { + if (x==0) return 0; + int ret = id(x-1) + 1; + if (ret > 2) return 2; + return ret; +} + +int main(void) { + int input = __VERIFIER_nondet_int(); + int result = id(input); + if (result == 3) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id2_b3_o2_false-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id2_b3_o2_false-unreach-call.c new file mode 100644 index 000000000..5071b3cce --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id2_b3_o2_false-unreach-call.c @@ -0,0 +1,27 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int id(int x); +int id2(int x); + +int id(int x) { + if (x==0) return 0; + int ret = id2(x-1) + 1; + if (ret > 3) return 3; + return ret; +} + +int id2(int x) { + if (x==0) return 0; + int ret = id(x-1) + 1; + if (ret > 3) return 3; + return ret; +} + +int main(void) { + int input = __VERIFIER_nondet_int(); + int result = id(input); + if (result == 2) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id2_b3_o5_true-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id2_b3_o5_true-unreach-call.c new file mode 100644 index 000000000..d17f3b091 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id2_b3_o5_true-unreach-call.c @@ -0,0 +1,27 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int id(int x); +int id2(int x); + +int id(int x) { + if (x==0) return 0; + int ret = id2(x-1) + 1; + if (ret > 3) return 3; + return ret; +} + +int id2(int x) { + if (x==0) return 0; + int ret = id(x-1) + 1; + if (ret > 3) return 3; + return ret; +} + +int main(void) { + int input = __VERIFIER_nondet_int(); + int result = id(input); + if (result == 5) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id2_b5_o10_true-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id2_b5_o10_true-unreach-call.c new file mode 100644 index 000000000..4e5ede66d --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id2_b5_o10_true-unreach-call.c @@ -0,0 +1,27 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int id(int x); +int id2(int x); + +int id(int x) { + if (x==0) return 0; + int ret = id2(x-1) + 1; + if (ret > 5) return 5; + return ret; +} + +int id2(int x) { + if (x==0) return 0; + int ret = id(x-1) + 1; + if (ret > 5) return 5; + return ret; +} + +int main(void) { + int input = __VERIFIER_nondet_int(); + int result = id(input); + if (result == 10) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id2_i5_o5_false-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id2_i5_o5_false-unreach-call_true-termination.c new file mode 100644 index 000000000..26a0e7f4d --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id2_i5_o5_false-unreach-call_true-termination.c @@ -0,0 +1,23 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int id(int x); +int id2(int x); + +int id(int x) { + if (x==0) return 0; + return id2(x-1) + 1; +} + +int id2(int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + int input = 5; + int result = id(input); + if (result == 5) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id2_i5_o5_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id2_i5_o5_true-unreach-call_true-termination.c new file mode 100644 index 000000000..07927a248 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id2_i5_o5_true-unreach-call_true-termination.c @@ -0,0 +1,23 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int id(int x); +int id2(int x); + +int id(int x) { + if (x==0) return 0; + return id2(x-1) + 1; +} + +int id2(int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + int input = 5; + int result = id(input); + if (result != 5) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_b2_o3_true-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_b2_o3_true-unreach-call.c new file mode 100644 index 000000000..45af4891f --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_b2_o3_true-unreach-call.c @@ -0,0 +1,17 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int id(int x) { + if (x==0) return 0; + int ret = id(x-1) + 1; + if (ret > 2) return 2; + return ret; +} + +int main(void) { + int input = __VERIFIER_nondet_int(); + int result = id(input); + if (result == 3) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_b3_o2_false-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_b3_o2_false-unreach-call.c new file mode 100644 index 000000000..7488869b5 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_b3_o2_false-unreach-call.c @@ -0,0 +1,17 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int id(int x) { + if (x==0) return 0; + int ret = id(x-1) + 1; + if (ret > 3) return 3; + return ret; +} + +int main(void) { + int input = __VERIFIER_nondet_int(); + int result = id(input); + if (result == 2) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_b3_o5_true-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_b3_o5_true-unreach-call.c new file mode 100644 index 000000000..b3d261a8f --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_b3_o5_true-unreach-call.c @@ -0,0 +1,17 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int id(int x) { + if (x==0) return 0; + int ret = id(x-1) + 1; + if (ret > 3) return 3; + return ret; +} + +int main(void) { + int input = __VERIFIER_nondet_int(); + int result = id(input); + if (result == 5) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_b5_o10_true-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_b5_o10_true-unreach-call.c new file mode 100644 index 000000000..910694e8d --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_b5_o10_true-unreach-call.c @@ -0,0 +1,17 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int id(int x) { + if (x==0) return 0; + int ret = id(x-1) + 1; + if (ret > 5) return 5; + return ret; +} + +int main(void) { + int input = __VERIFIER_nondet_int(); + int result = id(input); + if (result == 10) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i10_o10_false-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i10_o10_false-unreach-call_true-termination.c new file mode 100644 index 000000000..c3bd38f21 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i10_o10_false-unreach-call_true-termination.c @@ -0,0 +1,15 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int id(int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + int input = 10; + int result = id(input); + if (result == 10) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i10_o10_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i10_o10_true-unreach-call_true-termination.c new file mode 100644 index 000000000..4bd500bf9 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i10_o10_true-unreach-call_true-termination.c @@ -0,0 +1,15 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int id(int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + int input = 10; + int result = id(input); + if (result != 10) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i15_o15_false-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i15_o15_false-unreach-call_true-termination.c new file mode 100644 index 000000000..08c742b45 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i15_o15_false-unreach-call_true-termination.c @@ -0,0 +1,15 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int id(int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + int input = 15; + int result = id(input); + if (result == 15) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i15_o15_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i15_o15_true-unreach-call_true-termination.c new file mode 100644 index 000000000..ce10b6f65 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i15_o15_true-unreach-call_true-termination.c @@ -0,0 +1,15 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int id(int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + int input = 15; + int result = id(input); + if (result != 15) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i20_o20_false-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i20_o20_false-unreach-call_true-termination.c new file mode 100644 index 000000000..4cc2c32ef --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i20_o20_false-unreach-call_true-termination.c @@ -0,0 +1,15 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int id(int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + int input = 20; + int result = id(input); + if (result == 20) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i20_o20_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i20_o20_true-unreach-call_true-termination.c new file mode 100644 index 000000000..6c463037f --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i20_o20_true-unreach-call_true-termination.c @@ -0,0 +1,15 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int id(int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + int input = 20; + int result = id(input); + if (result != 20) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i25_o25_false-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i25_o25_false-unreach-call_true-termination.c new file mode 100644 index 000000000..65619b475 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i25_o25_false-unreach-call_true-termination.c @@ -0,0 +1,15 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int id(int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + int input = 25; + int result = id(input); + if (result == 25) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i25_o25_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i25_o25_true-unreach-call_true-termination.c new file mode 100644 index 000000000..4dd6bc30f --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i25_o25_true-unreach-call_true-termination.c @@ -0,0 +1,15 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int id(int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + int input = 25; + int result = id(input); + if (result != 25) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i5_o5_false-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i5_o5_false-unreach-call_true-termination.c new file mode 100644 index 000000000..8c4a8e6b6 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i5_o5_false-unreach-call_true-termination.c @@ -0,0 +1,15 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int id(int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + int input = 5; + int result = id(input); + if (result == 5) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i5_o5_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i5_o5_true-unreach-call_true-termination.c new file mode 100644 index 000000000..dcbaf449a --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i5_o5_true-unreach-call_true-termination.c @@ -0,0 +1,15 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int id(int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + int input = 5; + int result = id(input); + if (result != 5) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_o1000_false-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_o1000_false-unreach-call.c new file mode 100644 index 000000000..85a23865e --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_o1000_false-unreach-call.c @@ -0,0 +1,15 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int id(int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + int input = __VERIFIER_nondet_int(); + int result = id(input); + if (result == 1000) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_o100_false-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_o100_false-unreach-call.c new file mode 100644 index 000000000..98952c39d --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_o100_false-unreach-call.c @@ -0,0 +1,15 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int id(int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + int input = __VERIFIER_nondet_int(); + int result = id(input); + if (result == 100) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_o10_false-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_o10_false-unreach-call.c new file mode 100644 index 000000000..96463b0e2 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_o10_false-unreach-call.c @@ -0,0 +1,15 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int id(int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + int input = __VERIFIER_nondet_int(); + int result = id(input); + if (result == 10) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_o200_false-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_o200_false-unreach-call.c new file mode 100644 index 000000000..e79159cdf --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_o200_false-unreach-call.c @@ -0,0 +1,15 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int id(int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + int input = __VERIFIER_nondet_int(); + int result = id(input); + if (result == 200) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_o20_false-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_o20_false-unreach-call.c new file mode 100644 index 000000000..9826218a5 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_o20_false-unreach-call.c @@ -0,0 +1,15 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int id(int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + int input = __VERIFIER_nondet_int(); + int result = id(input); + if (result == 20) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_o3_false-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_o3_false-unreach-call.c new file mode 100644 index 000000000..9cd54e41b --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_o3_false-unreach-call.c @@ -0,0 +1,15 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int id(int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + int input = __VERIFIER_nondet_int(); + int result = id(input); + if (result == 3) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_10x0_false-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_10x0_false-unreach-call_true-termination.c new file mode 100644 index 000000000..d125d0eb3 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_10x0_false-unreach-call_true-termination.c @@ -0,0 +1,18 @@ +extern void __VERIFIER_error(); + +int sum(int n, int m) { + if (n <= 0) { + return m + n; + } else { + return sum(n - 1, m + 1); + } +} + +int main(void) { + int a = 10; + int b = 0; + int result = sum(a, b); + if (result == a + b) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_10x0_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_10x0_true-unreach-call_true-termination.c new file mode 100644 index 000000000..b830046fa --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_10x0_true-unreach-call_true-termination.c @@ -0,0 +1,18 @@ +extern void __VERIFIER_error(); + +int sum(int n, int m) { + if (n <= 0) { + return m + n; + } else { + return sum(n - 1, m + 1); + } +} + +int main(void) { + int a = 10; + int b = 0; + int result = sum(a, b); + if (result != a + b) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_15x0_false-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_15x0_false-unreach-call_true-termination.c new file mode 100644 index 000000000..5470237fa --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_15x0_false-unreach-call_true-termination.c @@ -0,0 +1,18 @@ +extern void __VERIFIER_error(); + +int sum(int n, int m) { + if (n <= 0) { + return m + n; + } else { + return sum(n - 1, m + 1); + } +} + +int main(void) { + int a = 15; + int b = 0; + int result = sum(a, b); + if (result == a + b) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_15x0_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_15x0_true-unreach-call_true-termination.c new file mode 100644 index 000000000..b736f38ad --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_15x0_true-unreach-call_true-termination.c @@ -0,0 +1,18 @@ +extern void __VERIFIER_error(); + +int sum(int n, int m) { + if (n <= 0) { + return m + n; + } else { + return sum(n - 1, m + 1); + } +} + +int main(void) { + int a = 15; + int b = 0; + int result = sum(a, b); + if (result != a + b) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_20x0_false-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_20x0_false-unreach-call_true-termination.c new file mode 100644 index 000000000..9a99afa50 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_20x0_false-unreach-call_true-termination.c @@ -0,0 +1,18 @@ +extern void __VERIFIER_error(); + +int sum(int n, int m) { + if (n <= 0) { + return m + n; + } else { + return sum(n - 1, m + 1); + } +} + +int main(void) { + int a = 20; + int b = 0; + int result = sum(a, b); + if (result == a + b) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_20x0_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_20x0_true-unreach-call_true-termination.c new file mode 100644 index 000000000..ab27ef690 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_20x0_true-unreach-call_true-termination.c @@ -0,0 +1,18 @@ +extern void __VERIFIER_error(); + +int sum(int n, int m) { + if (n <= 0) { + return m + n; + } else { + return sum(n - 1, m + 1); + } +} + +int main(void) { + int a = 20; + int b = 0; + int result = sum(a, b); + if (result != a + b) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_25x0_false-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_25x0_false-unreach-call_true-termination.c new file mode 100644 index 000000000..fb004fe25 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_25x0_false-unreach-call_true-termination.c @@ -0,0 +1,18 @@ +extern void __VERIFIER_error(); + +int sum(int n, int m) { + if (n <= 0) { + return m + n; + } else { + return sum(n - 1, m + 1); + } +} + +int main(void) { + int a = 25; + int b = 0; + int result = sum(a, b); + if (result == a + b) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_25x0_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_25x0_true-unreach-call_true-termination.c new file mode 100644 index 000000000..2be9903b6 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_25x0_true-unreach-call_true-termination.c @@ -0,0 +1,18 @@ +extern void __VERIFIER_error(); + +int sum(int n, int m) { + if (n <= 0) { + return m + n; + } else { + return sum(n - 1, m + 1); + } +} + +int main(void) { + int a = 25; + int b = 0; + int result = sum(a, b); + if (result != a + b) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_2x3_false-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_2x3_false-unreach-call_true-termination.c new file mode 100644 index 000000000..bd705fb47 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_2x3_false-unreach-call_true-termination.c @@ -0,0 +1,18 @@ +extern void __VERIFIER_error(); + +int sum(int n, int m) { + if (n <= 0) { + return m + n; + } else { + return sum(n - 1, m + 1); + } +} + +int main(void) { + int a = 2; + int b = 3; + int result = sum(a, b); + if (result == a + b) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_2x3_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_2x3_true-unreach-call_true-termination.c new file mode 100644 index 000000000..f2a2bc251 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_2x3_true-unreach-call_true-termination.c @@ -0,0 +1,18 @@ +extern void __VERIFIER_error(); + +int sum(int n, int m) { + if (n <= 0) { + return m + n; + } else { + return sum(n - 1, m + 1); + } +} + +int main(void) { + int a = 2; + int b = 3; + int result = sum(a, b); + if (result != a + b) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_non_eq_false-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_non_eq_false-unreach-call.c new file mode 100644 index 000000000..37dcb12de --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_non_eq_false-unreach-call.c @@ -0,0 +1,19 @@ +extern int __VERIFIER_nondet_int(void); +extern void __VERIFIER_error(); + +int sum(int n, int m) { + if (n == 0) { + return m; + } else { + return sum(n - 1, m + 1); + } +} + +int main(void) { + int a = __VERIFIER_nondet_int() ; + int b = __VERIFIER_nondet_int(); + int result = sum(a, b); + if (result == a + b) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_non_eq_true-unreach-call.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_non_eq_true-unreach-call.c new file mode 100644 index 000000000..08abb5b9a --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_non_eq_true-unreach-call.c @@ -0,0 +1,19 @@ +extern int __VERIFIER_nondet_int(void); +extern void __VERIFIER_error(); + +int sum(int n, int m) { + if (n == 0) { + return m; + } else { + return sum(n - 1, m + 1); + } +} + +int main(void) { + int a = __VERIFIER_nondet_int() ; + int b = __VERIFIER_nondet_int(); + int result = sum(a, b); + if (result != a + b) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_non_false-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_non_false-unreach-call_true-termination.c new file mode 100644 index 000000000..6799f7ccf --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_non_false-unreach-call_true-termination.c @@ -0,0 +1,19 @@ +extern int __VERIFIER_nondet_int(void); +extern void __VERIFIER_error(); + +int sum(int n, int m) { + if (n <= 0) { + return m + n; + } else { + return sum(n - 1, m + 1); + } +} + +int main(void) { + int a = __VERIFIER_nondet_int(); + int b = __VERIFIER_nondet_int(); + int result = sum(a, b); + if (result == a + b) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_non_true-unreach-call_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_non_true-unreach-call_true-termination.c new file mode 100644 index 000000000..9e8e6b187 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_non_true-unreach-call_true-termination.c @@ -0,0 +1,19 @@ +extern int __VERIFIER_nondet_int(void); +extern void __VERIFIER_error(); + +int sum(int n, int m) { + if (n <= 0) { + return m + n; + } else { + return sum(n - 1, m + 1); + } +} + +int main(void) { + int a = __VERIFIER_nondet_int(); + int b = __VERIFIER_nondet_int(); + int result = sum(a, b); + if (result != a + b) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Ackermann01_true-unreach-call_true-no-overflow.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Ackermann01_true-unreach-call_true-no-overflow.c new file mode 100644 index 000000000..e3d46d26e --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Ackermann01_true-unreach-call_true-no-overflow.c @@ -0,0 +1,46 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Implementation the Ackermann function. + * http://en.wikipedia.org/wiki/Ackermann_function + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + * Copied from termination-numeric/Ackermann01_true-termination.c + */ + +extern int __VERIFIER_nondet_int(void); + +int ackermann(int m, int n) { + if (m==0) { + return n+1; + } + if (n==0) { + return ackermann(m-1,1); + } + return ackermann(m-1,ackermann(m,n-1)); +} + + +int main() { + int m = __VERIFIER_nondet_int(); + if (m < 0 || m > 3) { + // additional branch to avoid undefined behavior + // (because of signed integer overflow) + return 0; + } + int n = __VERIFIER_nondet_int(); + if (n < 0 || n > 23) { + // additional branch to avoid undefined behavior + // (because of signed integer overflow) + // + return 0; + } + int result = ackermann(m,n); + if (m < 0 || n < 0 || result >= 0) { + return 0; + } else { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Ackermann02_false-unreach-call_true-no-overflow_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Ackermann02_false-unreach-call_true-no-overflow_true-termination.c new file mode 100644 index 000000000..4c2f4cb79 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Ackermann02_false-unreach-call_true-no-overflow_true-termination.c @@ -0,0 +1,45 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Implementation the Ackermann function. + * http://en.wikipedia.org/wiki/Ackermann_function + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + +int ackermann(int m, int n) { + if (m==0) { + return n+1; + } + if (n==0) { + return ackermann(m-1,1); + } + return ackermann(m-1,ackermann(m,n-1)); +} + + +int main() { + int m = __VERIFIER_nondet_int(); + if (m < 0 || m > 3) { + // additional branch to avoid undefined behavior + // (because of signed integer overflow) + return 0; + } + int n = __VERIFIER_nondet_int(); + if (n < 0 || n > 23) { + // additional branch to avoid undefined behavior + // (because of signed integer overflow) + // + return 0; + } + int result = ackermann(m,n); + if (m < 2 || result >= 4) { + return 0; + } else { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Ackermann03_true-unreach-call_true-no-overflow.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Ackermann03_true-unreach-call_true-no-overflow.c new file mode 100644 index 000000000..c87714d46 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Ackermann03_true-unreach-call_true-no-overflow.c @@ -0,0 +1,46 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Implementation the Ackermann function. + * http://en.wikipedia.org/wiki/Ackermann_function + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + +int ackermann(int m, int n) { + if (m==0) { + return n+1; + } + if (n==0) { + return ackermann(m-1,1); + } + return ackermann(m-1,ackermann(m,n-1)); +} + + +int main() { + int m = __VERIFIER_nondet_int(); + if (m < 0 || m > 3) { + // additional branch to avoid undefined behavior + // (because of signed integer overflow) + return 0; + } + int n = __VERIFIER_nondet_int(); + if (n < 0 || n > 23) { + // additional branch to avoid undefined behavior + // (because of signed integer overflow) + // + return 0; + } + int result = ackermann(m,n); + if (m != 2 || n != 2 || result == 7) { + return 0; + } else { + ERROR: __VERIFIER_error(); + } +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Ackermann04_true-unreach-call_true-no-overflow.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Ackermann04_true-unreach-call_true-no-overflow.c new file mode 100644 index 000000000..572205382 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Ackermann04_true-unreach-call_true-no-overflow.c @@ -0,0 +1,46 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Implementation the Ackermann function. + * http://en.wikipedia.org/wiki/Ackermann_function + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + +int ackermann(int m, int n) { + if (m==0) { + return n+1; + } + if (n==0) { + return ackermann(m-1,1); + } + return ackermann(m-1,ackermann(m,n-1)); +} + + +int main() { + int m = __VERIFIER_nondet_int(); + if (m < 0 || m > 3) { + // additional branch to avoid undefined behavior + // (because of signed integer overflow) + return 0; + } + int n = __VERIFIER_nondet_int(); + if (n < 0 || n > 23) { + // additional branch to avoid undefined behavior + // (because of signed integer overflow) + // + return 0; + } + int result = ackermann(m,n); + if (m < 2 || n < 2 || result >= 7) { + return 0; + } else { + ERROR: __VERIFIER_error(); + } +} + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Addition01_true-unreach-call_true-no-overflow_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Addition01_true-unreach-call_true-no-overflow_true-termination.c new file mode 100644 index 000000000..e31348a89 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Addition01_true-unreach-call_true-no-overflow_true-termination.c @@ -0,0 +1,45 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Recursive implementation integer addition. + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + +int addition(int m, int n) { + if (n == 0) { + return m; + } + if (n > 0) { + return addition(m+1, n-1); + } + if (n < 0) { + return addition(m-1, n+1); + } +} + + +int main() { + int m = __VERIFIER_nondet_int(); + if (m < 0 || m > 1073741823) { + // additional branch to avoid undefined behavior + // (because of signed integer overflow) + return 0; + } + int n = __VERIFIER_nondet_int(); + if (n < 0 || n > 1073741823) { + // additional branch to avoid undefined behavior + // (because of signed integer overflow) + return 0; + } + int result = addition(m,n); + if (result == m + n) { + return 0; + } else { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Addition02WithOverflowBug_false-no-overflow.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Addition02WithOverflowBug_false-no-overflow.c new file mode 100644 index 000000000..f6287217f --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Addition02WithOverflowBug_false-no-overflow.c @@ -0,0 +1,35 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Recursive implementation integer addition. + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + +int addition(int m, int n) { + if (n == 0) { + return m; + } + if (n > 0) { + return addition(m+1, n-1); + } + if (n < 0) { + return addition(m-1, n+1); + } +} + + +int main() { + int m = __VERIFIER_nondet_int(); + int n = __VERIFIER_nondet_int(); + int result = addition(m,n); + if (result == m - n) { + return 0; + } else { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Addition02_false-unreach-call_true-no-overflow_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Addition02_false-unreach-call_true-no-overflow_true-termination.c new file mode 100644 index 000000000..36a61f5bd --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Addition02_false-unreach-call_true-no-overflow_true-termination.c @@ -0,0 +1,45 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Recursive implementation integer addition. + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + +int addition(int m, int n) { + if (n == 0) { + return m; + } + if (n > 0) { + return addition(m+1, n-1); + } + if (n < 0) { + return addition(m-1, n+1); + } +} + + +int main() { + int m = __VERIFIER_nondet_int(); + if (m < 0 || m > 1073741823) { + // additional branch to avoid undefined behavior + // (because of signed integer overflow) + return 0; + } + int n = __VERIFIER_nondet_int(); + if (n < 0 || n > 1073741823) { + // additional branch to avoid undefined behavior + // (because of signed integer overflow) + return 0; + } + int result = addition(m,n); + if (result == m - n) { + return 0; + } else { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Addition03_false-no-overflow.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Addition03_false-no-overflow.c new file mode 100644 index 000000000..a50e26d5c --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Addition03_false-no-overflow.c @@ -0,0 +1,35 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Recursive implementation integer addition. + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + +int addition(int m, int n) { + if (n == 0) { + return m; + } + if (n > 0) { + return addition(m+1, n-1); + } + if (n < 0) { + return addition(m-1, n+1); + } +} + + +int main() { + int m = __VERIFIER_nondet_int(); + int n = __VERIFIER_nondet_int(); + int result = addition(m,n); + if (m < 100 || n < 100 || result >= 200) { + return 0; + } else { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Addition03_true-unreach-call_true-no-overflow_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Addition03_true-unreach-call_true-no-overflow_true-termination.c new file mode 100644 index 000000000..7c3504f14 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Addition03_true-unreach-call_true-no-overflow_true-termination.c @@ -0,0 +1,35 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Recursive implementation integer addition. + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + +long long addition(long long m, long long n) { + if (n == 0) { + return m; + } + if (n > 0) { + return addition(m+1, n-1); + } + if (n < 0) { + return addition(m-1, n+1); + } +} + + +int main() { + int m = __VERIFIER_nondet_int(); + int n = __VERIFIER_nondet_int(); + long long result = addition(m,n); + if (m < 100 || n < 100 || result >= 200) { + return 0; + } else { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/BallRajamani-SPIN2000-Fig1_false-unreach-call_true-no-overflow_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/BallRajamani-SPIN2000-Fig1_false-unreach-call_true-no-overflow_true-termination.c new file mode 100644 index 000000000..2d6c2d893 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/BallRajamani-SPIN2000-Fig1_false-unreach-call_true-no-overflow_true-termination.c @@ -0,0 +1,33 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Program depicted in Fig.1 of + * 2000SPIN - Ball,Rajamani - Bebop: A Symbolic Model Checker for Boolean Programs + * + * Author: Matthias Heizmann + * Date: 2014-07-31 + * + */ + +extern int __VERIFIER_nondet_int(void); + +int g; + +int A(int a1, int a2) { + if (a1) { + A(a2,a1); + } else { + g = a2; + } +} + + +int main() { + int g = __VERIFIER_nondet_int(); + int h = !g; + A(g,h); + A(g,h); + if (g) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/EvenOdd01_true-unreach-call_true-no-overflow_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/EvenOdd01_true-unreach-call_true-no-overflow_true-termination.c new file mode 100644 index 000000000..d88b114c6 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/EvenOdd01_true-unreach-call_true-no-overflow_true-termination.c @@ -0,0 +1,49 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Recursive implementation integer addition. + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + +int isOdd(int n); +int isEven(int n); + +int isOdd(int n) { + if (n == 0) { + return 0; + } else if (n == 1) { + return 1; + } else { + return isEven(n - 1); + } +} + +int isEven(int n) { + if (n == 0) { + return 1; + } else if (n == 1) { + return 0; + } else { + return isOdd(n - 1); + } +} + + +int main() { + int n = __VERIFIER_nondet_int(); + if (n < 0) { + return 0; + } + int result = isOdd(n); + int mod = n % 2; + if (result < 0 || result == mod) { + return 0; + } else { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/EvenOdd03WithOverflowBug_false-no-overflow.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/EvenOdd03WithOverflowBug_false-no-overflow.c new file mode 100644 index 000000000..5258b6729 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/EvenOdd03WithOverflowBug_false-no-overflow.c @@ -0,0 +1,46 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Recursive implementation integer addition. + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + +int isOdd(int n); +int isEven(int n); + +int isOdd(int n) { + if (n == 0) { + return 0; + } else if (n == 1) { + return 1; + } else { + return isEven(n - 1); + } +} + +int isEven(int n) { + if (n == 0) { + return 1; + } else if (n == 1) { + return 0; + } else { + return isOdd(n - 1); + } +} + + +int main() { + int n = __VERIFIER_nondet_int(); + int result = isEven(n); + int mod = n % 2; + if (result < 0 || result == mod) { + return 0; + } else { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/EvenOdd03_false-unreach-call_true-no-overflow_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/EvenOdd03_false-unreach-call_true-no-overflow_true-termination.c new file mode 100644 index 000000000..9c523b430 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/EvenOdd03_false-unreach-call_true-no-overflow_true-termination.c @@ -0,0 +1,49 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Recursive implementation integer addition. + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + +int isOdd(int n); +int isEven(int n); + +int isOdd(int n) { + if (n == 0) { + return 0; + } else if (n == 1) { + return 1; + } else { + return isEven(n - 1); + } +} + +int isEven(int n) { + if (n == 0) { + return 1; + } else if (n == 1) { + return 0; + } else { + return isOdd(n - 1); + } +} + + +int main() { + int n = __VERIFIER_nondet_int(); + if (n < 0) { + return 0; + } + int result = isEven(n); + int mod = n % 2; + if (result < 0 || result == mod) { + return 0; + } else { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Fibonacci01_true-unreach-call_true-no-overflow.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Fibonacci01_true-unreach-call_true-no-overflow.c new file mode 100644 index 000000000..5e5e08197 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Fibonacci01_true-unreach-call_true-no-overflow.c @@ -0,0 +1,38 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Recursive computation of fibonacci numbers. + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + + +int fibonacci(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibonacci(n-1) + fibonacci(n-2); + } +} + + +int main() { + int x = __VERIFIER_nondet_int(); + //if (x > 46 || x == -2147483648) { + // return 0; + //} + int result = fibonacci(x); + if (result >= x - 1) { + return 0; + } else { + ERROR: __VERIFIER_error(); + } +} + + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Fibonacci02_true-unreach-call_true-no-overflow_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Fibonacci02_true-unreach-call_true-no-overflow_true-termination.c new file mode 100644 index 000000000..40d2b531e --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Fibonacci02_true-unreach-call_true-no-overflow_true-termination.c @@ -0,0 +1,33 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Recursive computation of fibonacci numbers. + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + + +int fibonacci(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibonacci(n-1) + fibonacci(n-2); + } +} + + +int main() { + int x = 9; + int result = fibonacci(x); + if (result == 34) { + return 0; + } else { + ERROR: __VERIFIER_error(); + } +} \ No newline at end of file diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Fibonacci03_true-unreach-call_true-no-overflow_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Fibonacci03_true-unreach-call_true-no-overflow_true-termination.c new file mode 100644 index 000000000..5f01226a4 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Fibonacci03_true-unreach-call_true-no-overflow_true-termination.c @@ -0,0 +1,37 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Recursive computation of fibonacci numbers. + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + + +int fibonacci(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibonacci(n-1) + fibonacci(n-2); + } +} + + +int main() { + int x = __VERIFIER_nondet_int(); + if (x > 46) { + return 0; + } + int result = fibonacci(x); + if (x < 9 || result >= 34) { + return 0; + } else { + ERROR: __VERIFIER_error(); + } +} + \ No newline at end of file diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Fibonacci04_false-unreach-call_true-no-overflow_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Fibonacci04_false-unreach-call_true-no-overflow_true-termination.c new file mode 100644 index 000000000..705f89653 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Fibonacci04_false-unreach-call_true-no-overflow_true-termination.c @@ -0,0 +1,37 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Recursive computation of fibonacci numbers. + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); +int fibonacci(int n); +int main(); + + +int fibonacci(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibonacci(n-1) + fibonacci(n-2); + } +} + + +int main() { + int x = __VERIFIER_nondet_int(); + int result = fibonacci(x); + if (x != 5 || result == 3) { + return 0; + } else { + ERROR: __VERIFIER_error(); + } +} + + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Fibonacci05_false-unreach-call_true-no-overflow_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Fibonacci05_false-unreach-call_true-no-overflow_true-termination.c new file mode 100644 index 000000000..cdff24ddb --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Fibonacci05_false-unreach-call_true-no-overflow_true-termination.c @@ -0,0 +1,34 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Recursive computation of fibonacci numbers. + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + + +int fibonacci(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibonacci(n-1) + fibonacci(n-2); + } +} + + +int main() { + int x = __VERIFIER_nondet_int(); + int result = fibonacci(x); + if (x < 8 || result >= 34) { + return 0; + } else { + ERROR: __VERIFIER_error(); + } +} + \ No newline at end of file diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/LICENSE.txt b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/LICENSE.txt new file mode 100644 index 000000000..7f941dd2a --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/LICENSE.txt @@ -0,0 +1,23 @@ +Copyright (c) 2013, University of Freiburg +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. \ No newline at end of file diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Makefile b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Makefile new file mode 100644 index 000000000..49c5fe34f --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Makefile @@ -0,0 +1,6 @@ +LEVEL := ../ + +COMMON_WARNINGS := \ + -Wno-error=return-type \ + +include $(LEVEL)/Makefile.config diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/McCarthy91_false-unreach-call_true-no-overflow_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/McCarthy91_false-unreach-call_true-no-overflow_true-termination.c new file mode 100644 index 000000000..59ba11f94 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/McCarthy91_false-unreach-call_true-no-overflow_true-termination.c @@ -0,0 +1,32 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Implementation the McCarthy 91 function. + * http://en.wikipedia.org/wiki/McCarthy_91_function + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + + +int f91(int x) { + if (x > 100) + return x -10; + else { + return f91(f91(x+11)); + } +} + + +int main() { + int x = __VERIFIER_nondet_int(); + int result = f91(x); + if (result == 91 || x > 102 && result == x - 10) { + return 0; + } else { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/McCarthy91_true-unreach-call_true-no-overflow_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/McCarthy91_true-unreach-call_true-no-overflow_true-termination.c new file mode 100644 index 000000000..c1e4a1f45 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/McCarthy91_true-unreach-call_true-no-overflow_true-termination.c @@ -0,0 +1,32 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Implementation the McCarthy 91 function. + * http://en.wikipedia.org/wiki/McCarthy_91_function + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + + +int f91(int x) { + if (x > 100) + return x -10; + else { + return f91(f91(x+11)); + } +} + + +int main() { + int x = __VERIFIER_nondet_int(); + int result = f91(x); + if (result == 91 || x > 101 && result == x - 10) { + return 0; + } else { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/MultCommutative_true-unreach-call_true-no-overflow_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/MultCommutative_true-unreach-call_true-no-overflow_true-termination.c new file mode 100644 index 000000000..8606a4692 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/MultCommutative_true-unreach-call_true-no-overflow_true-termination.c @@ -0,0 +1,41 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Recursive implementation multiplication by repeated addition + * Check that this multiplication is commutative + * + * Author: Jan Leike + * Date: 2013-07-17 + * + */ + +extern int __VERIFIER_nondet_int(void); + +// Multiplies two integers n and m +int mult(int n, int m) { + if (m < 0) { + return mult(n, -m); + } + if (m == 0) { + return 0; + } + return n + mult(n, m - 1); +} + +int main() { + int m = __VERIFIER_nondet_int(); + if (m < 0 || m > 46340) { + return 0; + } + int n = __VERIFIER_nondet_int(); + if (n < 0 || n > 46340) { + return 0; + } + int res1 = mult(m, n); + int res2 = mult(n, m); + if (res1 != res2 && m > 0 && n > 0) { + ERROR: __VERIFIER_error(); + } else { + return 0; + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Primes_true-unreach-call_true-no-overflow_false-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Primes_true-unreach-call_true-no-overflow_false-termination.c new file mode 100644 index 000000000..52b7755b6 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Primes_true-unreach-call_true-no-overflow_false-termination.c @@ -0,0 +1,100 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Recursive implementation of prime number test + * (Sieve of Eratosthenes) + * + * Author: Jan Leike + * Date: 2013-07-17 + * + */ + +extern int __VERIFIER_nondet_int(void); + +// Multiplies two integers n and m +int mult(int n, int m) { + if (m < 0) { + return mult(n, -m); + } + if (m == 0) { + return 0; + } + if (m == 1) { + return 1; + } + return n + mult(n, m - 1); +} + +// Is n a multiple of m? +int multiple_of(int n, int m) { + if (m < 0) { + return multiple_of(n, -m); + } + if (n < 0) { + return multiple_of(-n, m); // false + } + if (m == 0) { + return 0; // false + } + if (n == 0) { + return 1; // true + } + return multiple_of(n - m, m); +} + + +int is_prime_(int n, int m); +int is_prime(int n); + +// Is n prime? +int is_prime(int n) { + return is_prime_(n, n - 1); +} + + +int is_prime_(int n, int m) { + if (n <= 1) { + return 0; // false + } + if (n == 2) { + return 1; // true + } + if (n > 2) { + if (m <= 1) { + return 1; // true + } else { + if (multiple_of(n, m) == 0) { + return 0; // false + } + return is_prime_(n, m - 1); + } + } +} + +int main() { + int n = __VERIFIER_nondet_int(); + if (n < 1 || n > 46340) { + // additional branch to avoid undefined behavior + // (because of signed integer overflow) + return 0; + } + int result = is_prime(n); + int f1 = __VERIFIER_nondet_int(); + if (f1 < 1 || f1 > 46340) { + // additional branch to avoid undefined behavior + // (because of signed integer overflow) + return 0; + } + int f2 = __VERIFIER_nondet_int(); + if (f2 < 1 || f2 > 46340) { + // additional branch to avoid undefined behavior + // (because of signed integer overflow) + return 0; + } + + if (result == 1 && mult(f1, f2) == n && f1 > 1 && f2 > 1) { + ERROR: __VERIFIER_error(); + } else { + return 0; + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/README.txt b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/README.txt new file mode 100644 index 000000000..072d67da8 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/README.txt @@ -0,0 +1,2 @@ +Recursive C programs, contributed by Matthias Heizmann. + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/gcd01_true-unreach-call_true-no-overflow_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/gcd01_true-unreach-call_true-no-overflow_true-termination.c new file mode 100644 index 000000000..ae7e71a06 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/gcd01_true-unreach-call_true-no-overflow_true-termination.c @@ -0,0 +1,43 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Recursive implementation of the greatest common denominator + * using Euclid's algorithm + * + * Author: Jan Leike + * Date: 2013-07-17 + * + */ + +extern int __VERIFIER_nondet_int(void); + +// Compute the greatest common denominator using Euclid's algorithm +int gcd(int y1, int y2) { + if (y1 <= 0 || y2 <= 0) { + return 0; + } + if (y1 == y2) { + return y1; + } + if (y1 > y2) { + return gcd(y1 - y2, y2); + } + return gcd(y1, y2 - y1); +} + +int main() { + int m = __VERIFIER_nondet_int(); + if (m <= 0 || m > 2147483647) { + return 0; + } + int n = __VERIFIER_nondet_int(); + if (n <= 0 || n > 2147483647) { + return 0; + } + int z = gcd(m, n); + if (z < 1 && m > 0 && n > 0) { + ERROR: __VERIFIER_error(); + } else { + return 0; + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/gcd02_true-unreach-call_true-no-overflow_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/gcd02_true-unreach-call_true-no-overflow_true-termination.c new file mode 100644 index 000000000..c4daefe90 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/gcd02_true-unreach-call_true-no-overflow_true-termination.c @@ -0,0 +1,57 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Recursive implementation of the greatest common denominator + * using Euclid's algorithm + * + * Author: Jan Leike + * Date: 2013-07-17 + * + */ + +extern int __VERIFIER_nondet_int(void); + +// Compute the greatest common denominator using Euclid's algorithm +int gcd(int y1, int y2) { + if (y1 <= 0 || y2 <= 0) { + // No non-positive input allowed + ERROR: __VERIFIER_error(); + } + if (y1 == y2) { + return y1; + } + if (y1 > y2) { + return gcd(y1 - y2, y2); + } + return gcd(y1, y2 - y1); +} + +// does n divide m? +int divides(int n, int m) { + if (m == 0) { + return 1; // true + } + if (n > m) { + return 0; // false + } + return divides(n, m - n); +} + +int main() { + int m = __VERIFIER_nondet_int(); + if (m <= 0 || m > 2147483647) { + return 0; + } + int n = __VERIFIER_nondet_int(); + if (n <= 0 || n > 2147483647) { + return 0; + } + if (m > 0 && n > 0) { + int z = gcd(m, n); + if (divides(z, m) == 0) { + ERROR: __VERIFIER_error(); + } else { + return 0; + } + } +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/recHanoi01_true-unreach-call_true-no-overflow_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/recHanoi01_true-unreach-call_true-no-overflow_true-termination.c new file mode 100644 index 000000000..8d2c3c6a8 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/recHanoi01_true-unreach-call_true-no-overflow_true-termination.c @@ -0,0 +1,56 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * recHanoi.c + * + * Created on: 17.07.2013 + * Author: Stefan Wissert + */ + +extern int __VERIFIER_nondet_int(void); + +int counter; +/* + * This function returns the optimal amount of steps, + * needed to solve the problem for n-disks + */ +int hanoi(int n) { + if (n == 1) { + return 1; + } + return 2 * (hanoi(n-1)) + 1; +} + +/* + * This applies the known algorithm, without executing it (so no arrays). + * But the amount of steps is counted in a global variable. + */ +void applyHanoi(int n, int from, int to, int via) +{ + if (n == 0) { + return; + } + // increment the number of steps + counter++; + applyHanoi(n-1, from, via, to); + applyHanoi(n-1, via, to, from); +} + +int main() { + int n = __VERIFIER_nondet_int(); + if (n < 1 || n > 31) { + return 0; + } + counter = 0; + applyHanoi(n, 1, 3, 2); + int result = hanoi(n); + // result and the counter should be the same! + if (result == counter) { + return 0; + } else { + ERROR: __VERIFIER_error(); + } +} + + + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/recHanoi02_true-unreach-call_true-no-overflow_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/recHanoi02_true-unreach-call_true-no-overflow_true-termination.c new file mode 100644 index 000000000..e22e0204f --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/recHanoi02_true-unreach-call_true-no-overflow_true-termination.c @@ -0,0 +1,39 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * recHanoi.c + * + * Created on: 17.07.2013 + * Author: Stefan Wissert + * + * Copied from c/termination-numeric/recHanoi02_true-termination.c + */ + +extern int __VERIFIER_nondet_int(void); + +/* + * This function returns the optimal amount of steps, + * needed to solve the problem for n-disks + */ +int hanoi(int n) { + if (n == 1) { + return 1; + } + return 2 * (hanoi(n-1)) + 1; +} + + +int main() { + int n = __VERIFIER_nondet_int(); + if (n < 1 || n > 31) { + return 0; + } + int result = hanoi(n); + if (result >= 0) { + return 0; + } else { + ERROR: __VERIFIER_error(); + } +} + + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/recHanoi03_true-unreach-call_true-no-overflow_true-termination.c b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/recHanoi03_true-unreach-call_true-no-overflow_true-termination.c new file mode 100644 index 000000000..6e8df8989 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/recHanoi03_true-unreach-call_true-no-overflow_true-termination.c @@ -0,0 +1,37 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * recHanoi.c + * + * Created on: 17.07.2013 + * Author: Stefan Wissert + */ + +extern int __VERIFIER_nondet_int(void); + +/* + * This function returns the optimal amount of steps, + * needed to solve the problem for n-disks + */ +int hanoi(int n) { + if (n == 1) { + return 1; + } + return 2 * (hanoi(n-1)) + 1; +} + + +int main() { + int n = __VERIFIER_nondet_int(); + if (n < 1 || n > 31) { + return 0; + } + int result = hanoi(n); + if (result >= n) { + return 0; + } else { + ERROR: __VERIFIER_error(); + } +} + + diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/.DS_Store b/data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 GIT binary patch literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T01) { + l--; + } else { + r--; + } + while(r > 1) { + i = l; + j = 2*l; + while(j <= r) { + if( j < r) { + sassert(1 <= j);sassert(j <= n); + sassert(1 <= j+1);sassert(j+1 <= n); + if( unknown() ) + j = j + 1; + } + sassert(1 <= j);sassert(j <= n); + if( unknown() ) { + break; + } + sassert(1 <= i); + sassert(i <= n); + sassert(1 <= j); + sassert(j <= n); + i = j; + j = 2*j; + } + if(l > 1) { + sassert(1 <= l);sassert(l <= n); + l--; + } else { + sassert(1 <= r);sassert(r <= n); + r--; + } + } + sassert(l==1); + } + return 0; +} diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/popl.c b/data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/popl.c new file mode 100644 index 000000000..5480a37d1 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/popl.c @@ -0,0 +1,15 @@ +#include "seahorn/seahorn.h" + +int main(){ + int x, y; + x=0; + y=50; + while(x<100) { + x=x+1; + if (x>50) { + y=y+1; + } + } + sassert(y==100); + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/spam1.c b/data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/spam1.c new file mode 100644 index 000000000..794f7cde6 --- /dev/null +++ b/data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/spam1.c @@ -0,0 +1,58 @@ +#include "seahorn/seahorn.h" + +extern int unknown(); + +void main () +{ + int len = unknown(); + int i; + int j; + // char buffer[BUFSZ]; + int bufsize = unknown(); + int limit = bufsize - 4; + + //tmpl("(le(len,i,bufsize,j,limit),le(len,i,bufsize,j,limit))"); + + for (i = 0; i < len; ) { + for (j = 0; i < len && j < limit; ){ + sassert(j>=0); + if (i + 1 < len){ + sassert(i+1 +//#include "nrutil.h" +#include "seahorn/seahorn.h" + +extern int unknown(); + +int main() +{ + int n = unknown(); + int i,j,k,l; + l = unknown(); + i = unknown(); + j = unknown(); + k = unknown(); + + //tmpl("(le(n,l,i,j,k),le(n,l,i,j,k))"); + + if(l>0) { + + for (i=n;i>=1;i--) { // Accumulation of right-hand transformations. + if (i < n) { + if ( unknown() ) { + for (j=l;j<=n;j++) { // Double division to avoid possible underflow. + sassert(1<=j);sassert(j<=n); + sassert(1<=i);sassert(i<=n); + //assert(1<=i);sassert(i<=m); // TODO feasible counterexample found + sassert(1<=l);sassert(l<=n); + } + for (j=l;j<=n;j++) { + for (k=l;k<=n;k++) { + //assert(1<=i);assert(i<=m); // TODO feasible counterexample found + sassert(1<=k);sassert(k<=n); + sassert(1<=j);sassert(j<=n); + } + for (k=l;k<=n;k++) { + sassert(1<=k);sassert(k<=n); + sassert(1<=j);sassert(j<=n); + sassert(1<=i);sassert(i<=n); + } + } + } + for (j=l;j<=n;j++) { + sassert(1<=j);sassert(j<=n); + sassert(1<=i);sassert(i<=n); + } + } + + sassert(1<=i); + sassert(i<=n); + sassert(1<=i);sassert(i<=n); + l=i; + } + sassert(i == n || l==i+1); + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/accelerating_invariant_generation/cav/05.c b/data/benchmarks/accelerating_invariant_generation/cav/05.c new file mode 100644 index 000000000..9b23dc9ad --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/cav/05.c @@ -0,0 +1,34 @@ +int unknown1(){ + int x; return x; +} + +int unknown2(); +int unknown3(); +int unknown4(); + +void main() +{ + int flag = unknown1(); + int x = 0; + int y = 0; + + int j = 0; + int i = 0; + + + while(unknown1()) + { + x++; + y++; + i+=x; + j+=y; + if(flag) j+=1; + j = j; + } + if(j <= i - 1) + { + goto ERROR; + ERROR:; + } + +} diff --git a/data/benchmarks/accelerating_invariant_generation/cav/07.c b/data/benchmarks/accelerating_invariant_generation/cav/07.c new file mode 100644 index 000000000..6274a7be7 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/cav/07.c @@ -0,0 +1,24 @@ + +int unknown1(){ + int x; return x; +} + +int unknown2(); +int unknown3(); +int unknown4(); + +void main() +{ + int n = unknown1(); + int i=0, j=0; + if(!(n >= 0)) return; + while(i= n+1) + { goto ERROR; + ERROR:; + } +} + diff --git a/data/benchmarks/accelerating_invariant_generation/cav/09.c b/data/benchmarks/accelerating_invariant_generation/cav/09.c new file mode 100644 index 000000000..edf29101f --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/cav/09.c @@ -0,0 +1,62 @@ + +int unknown1(){ + int x; return x; +} + +int unknown2(){ + int x; return x; +} + +int unknown3(){ + int x; return x; +} + + +/* + * "fragtest_simple" from InvGen benchmark suite + */ + + +void main(){ + int i,pvlen ; + int t; + int k = 0; + int n; + int j; + i = 0; + + // pkt = pktq->tqh_first; + while (unknown1()) + i = i + 1; + if (i >= pvlen+1) { + pvlen = i; + } else { + if(i > pvlen) + return; + } + i = 0; + + while (unknown2()) { + t = i; + i = i + 1; + k = k +1; + } + while (unknown3()); + + j = 0; + n = i; + while (1) { + if(k <= -1){ + goto ERROR; + ERROR:; + } + k = k -1; + i = i - 1; + j = j + 1; + if (j <= n-1) { + } else { + break; + } + } + +} diff --git a/data/benchmarks/accelerating_invariant_generation/cav/12.c b/data/benchmarks/accelerating_invariant_generation/cav/12.c new file mode 100644 index 000000000..3ac461fb2 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/cav/12.c @@ -0,0 +1,46 @@ +int unknown1(){ + int x; return x; +} + +int unknown2(){ + int x; return x; +} + + + +int main() +{ + int flag = unknown1(); + int t = 0; + int s = 0; + int a = 0; + int b = 0; + int x,y; + while(unknown1()){ + a++; + b++; + s+=a; + t+=b; + if(flag){ + t+=a; + } + t = t; + } + //2s >= t + x = 1; + if(flag){ + x = t-2*s+2; + } + //x <= 2 + y = 0; + while(y<=x){ + if(unknown2()) + y++; + else + y+=2; + y = y; + } + if(y >= 5) + {goto ERROR; ERROR:;} +} + diff --git a/data/benchmarks/accelerating_invariant_generation/cav/15.c b/data/benchmarks/accelerating_invariant_generation/cav/15.c new file mode 100644 index 000000000..62a5238da --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/cav/15.c @@ -0,0 +1,29 @@ +int unknown1(){ + int x; return x; +} + +int unknown2(); +int unknown3(); +int unknown4(); + +void main(int argc, char* argv[]) { + + int n; + int i, k, j; + + + n = unknown1(); + if(n < 1) + return; + if(k < n) + return; + j = 0; + while( j <= n-1 ) { + j++; + k--; + } + if(j < n) + return; + if(k <= -1) + {goto ERROR;ERROR:;} +} diff --git a/data/benchmarks/accelerating_invariant_generation/cav/19.c b/data/benchmarks/accelerating_invariant_generation/cav/19.c new file mode 100644 index 000000000..aa7adc52a --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/cav/19.c @@ -0,0 +1,39 @@ + +int unknown1(){ + int x; return x; +} + +int unknown2(){ + int x; return x; +} + +int unknown3(); +int unknown4(); + +int n, m; + + +void main() +{ + n = unknown1(); + m = unknown2(); + int x=0; + int y; + y = m; + if(n < 0) + return; + if(m < 0) + return; + if(m > n-1) + return; + while(x<=n-1) { + x++; + if(x>=m+1) y++; + else if(x > m) return; + x = x; + } + if(x < n) + return; + if(y >= n+1) + {goto ERROR; ERROR:;} +} diff --git a/data/benchmarks/accelerating_invariant_generation/cav/20.c b/data/benchmarks/accelerating_invariant_generation/cav/20.c new file mode 100644 index 000000000..fa96e28c9 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/cav/20.c @@ -0,0 +1,34 @@ +int unknown1(){ + int x; return x; +} +int unknown2(); +int unknown3(); +int unknown4(); + +void main() +{ + int x; int y; int k; int j;int i; int n; + int m = 0; + if((x+y) != k) + return; + j = 0; + while(j<=n-1) { + if(j==i) + { + x++; + y--; + }else + { + y++; + x--; + } + if(unknown1()) + m = j; + j++; + } + if(j < n) + return; + if(x + y <= k - 1 || x + y >= k + 1 || (n >= 1 && ((m <= -1) || (m >= n)))) + {goto ERROR; ERROR:;} +} + diff --git a/data/benchmarks/accelerating_invariant_generation/cav/24.c b/data/benchmarks/accelerating_invariant_generation/cav/24.c new file mode 100644 index 000000000..78fda3b63 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/cav/24.c @@ -0,0 +1,19 @@ +int unknown1(); +int unknown2(); +int unknown3(); +int unknown4(); + +/* + * From InvGen test suite + */ + +void main() { + int i,j,k,n; + + for (i=0;i=j) + { + x++; + y++; + } + else + y++; + } + if(i <= j-1) + {goto ERROR; ERROR:;} +} diff --git a/data/benchmarks/accelerating_invariant_generation/cav/28.c b/data/benchmarks/accelerating_invariant_generation/cav/28.c new file mode 100644 index 000000000..87d05cf8f --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/cav/28.c @@ -0,0 +1,31 @@ +int unknown1(){ + int x; return x; +} + +int unknown2(); +int unknown3(); +int unknown4(); + + +/* + * From CAV'12 by Sharma et al. + */ + +void main() { + int x=0; + int y=0; + int n = 0; + while(unknown1()) { + x++; + y++; + } + while(x <= n - 1 || x >= n + 1) { + x--; + y--; + } + if(x != n) + return; + if(y != n){ + goto ERROR; ERROR:; + } +} diff --git a/data/benchmarks/accelerating_invariant_generation/cav/31.c b/data/benchmarks/accelerating_invariant_generation/cav/31.c new file mode 100644 index 000000000..1677f6b84 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/cav/31.c @@ -0,0 +1,44 @@ + +int unknown1(){ + int x; return x; +} + + +/* + * "nest-if8" from InvGen benchmark suite + */ + + +int main() { + int i,j,k,n,m; + if( m+1 > n - 1 ) + return; + for ( i=0; i<=n-1; i+=4 ) { + for ( j=i; j<=m-1; ) { + if (unknown1()){ + if(j <= -1) + goto ERROR; + if(j < 0) + return; + j++; + k = 0; + while( k < j ) { + k++; + } + } + else { + if(n + j + 5 <= i) + goto ERROR; + if(n + j + 5 < i+1) + return; + j+= 2; + } + } + if(j < m) + return; + } + return; + bad:; + ERROR:; + +} diff --git a/data/benchmarks/accelerating_invariant_generation/cav/33.c b/data/benchmarks/accelerating_invariant_generation/cav/33.c new file mode 100644 index 000000000..df747988a --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/cav/33.c @@ -0,0 +1,48 @@ +int unknown1(){ + int x; return x; +} + +int unknown2(){ + int x; return x; +} + +int unknown3(){ + int x; return x; +} + + +int main() +{ + int k; + int z = k; + int x = 0; + int y = 0; + + while(unknown1()) + { + int c = 0; + while(unknown2()) + { + if(z==k+y-c) + { + x++; + y++; + c++; + }else + { + x++; + y--; + c++; + } + } + while(unknown3()) + { + x--; + y--; + } + z=k+y; + } + if(x <= y - 1 || x >= y + 1) + {goto ERROR; ERROR:;} + +} diff --git a/data/benchmarks/accelerating_invariant_generation/cav/35.c b/data/benchmarks/accelerating_invariant_generation/cav/35.c new file mode 100644 index 000000000..9bd216520 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/cav/35.c @@ -0,0 +1,21 @@ +int unknown1(); +int unknown2(); +int unknown3(); +int unknown4(); + +/* + * InvGen, CAV'09 paper, fig 2 + */ + +void main() { + int n; + int x= 0; + while(x<=n-1) { + x++; + } + if(x < n) + return; + if(n>=1 && (x<=n-1 || x >= n+1)) + {goto ERROR; ERROR:;} + +} diff --git a/data/benchmarks/accelerating_invariant_generation/cav/37.c b/data/benchmarks/accelerating_invariant_generation/cav/37.c new file mode 100644 index 000000000..6ccd20fc9 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/cav/37.c @@ -0,0 +1,28 @@ +int unknown1(){ + int x; return x; +} + +int unknown2(); +int unknown3(); +int unknown4(); + +/* + * Taken from "Counterexample Driven Refinement for Abstract Interpretation" (TACAS'06) by Gulavani + */ + +void main() { + int x= 0; + int m=0; + int n = unknown1(); + while(x<=n-1) { + if(unknown1()) { + m = x; + } + x= x+1; + } + if(x < n) + return; + if(n>=1 && (m <= -1 || m >= n)) + {goto ERROR; ERROR:;} + +} diff --git a/data/benchmarks/accelerating_invariant_generation/cav/39.c b/data/benchmarks/accelerating_invariant_generation/cav/39.c new file mode 100644 index 000000000..572df444f --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/cav/39.c @@ -0,0 +1,65 @@ + +int __BLAST_NONDET; +int MAXPATHLEN; +int unknown(){ + int x; return x; +} + + + +/* + * "NetBSD_loop_int" from InvGen benchmark suite + */ + + +int main() +{ + /* + Char *buf; + Char *pattern; + Char *bound; + */ + int buf_off; + int pattern_off; + int bound_off; + + // int A [MAXPATHLEN+1]; + // int B [PATTERNLEN]; + + /* glob3's local vars */ + int glob3_pathbuf_off; + int glob3_pathend_off; + int glob3_pathlim_off; + int glob3_pattern_off; + int glob3_dc; + + if(MAXPATHLEN > 0); else goto END; + + /* + buf = A; + pattern = B; + */ + buf_off = 0; + pattern_off = 0; + + /* bound = A + sizeof(A)/sizeof(*A) - 1; */ + bound_off = 0 + (MAXPATHLEN + 1) - 1; + + glob3_pathbuf_off = buf_off; + glob3_pathend_off = buf_off; + glob3_pathlim_off = bound_off; + glob3_pattern_off = pattern_off; + + glob3_dc = 0; + for (;;) + if (glob3_pathend_off + glob3_dc >= glob3_pathlim_off) break; + else { + // A[glob3_dc] = 1; + glob3_dc++; + /* OK */ + if(glob3_dc <= -1 || glob3_dc >= MAXPATHLEN + 1) + {goto ERROR; ERROR:;} + if (unknown()) goto END; + } + END: return 0; +} diff --git a/data/benchmarks/accelerating_invariant_generation/cav/f2.c b/data/benchmarks/accelerating_invariant_generation/cav/f2.c new file mode 100644 index 000000000..d67ca5429 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/cav/f2.c @@ -0,0 +1,24 @@ +int nondet(); + +void main () { + + int x, y, z, w; + x=y=z=w=0; + + + while (nondet() ) { + + if (nondet()) {x++; y = y+2;} + else if (nondet()) { + if (x >= 4) {x++; y = y+3; z = z+10; w = w+10;} + } + else if (x >= z && w >= y+1) {x = -x; y = -y; } + x = x; /* this works around a VC gen bug */ + } + + if (3*x <= y-1) + goto ERROR; + + return; +ERROR:; +} diff --git a/data/benchmarks/accelerating_invariant_generation/cav/gulv.c b/data/benchmarks/accelerating_invariant_generation/cav/gulv.c new file mode 100644 index 000000000..bd0044f0c --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/cav/gulv.c @@ -0,0 +1,23 @@ +int nondet(); + +int main(){ + int x = 0, y = 0, w = 0, z = 0; +while (nondet()) { + if (nondet()) + {x = x+1; y = y+100;} + else if (nondet()){ + if (x >= 4) + {x = x+1; y = y+1;} + } + else if (y > 10*w && z >= 100*x) + {y = -y;} + w = w+1; z = z+10; + x = x; /* work around VC gen bug */ + +} +if (x >= 4 && y <= 2) + goto ERROR; + +return; +ERROR:; +} diff --git a/data/benchmarks/accelerating_invariant_generation/cav/gulv_simp.c b/data/benchmarks/accelerating_invariant_generation/cav/gulv_simp.c new file mode 100644 index 000000000..624f3422f --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/cav/gulv_simp.c @@ -0,0 +1,25 @@ +int nondet(){ + int x; + return x; +} + +int main(){ +int x = 0, y = 0; +while (nondet()) { + if (nondet()) + {x = x+1; y = y+100;} + else if (nondet()){ + if (x >= 4) + {x = x+1; y = y+1;} + } + /*else if (y > 10*w && z >= 100*x) + {y = -y;} + w = w+1; z = z+10;*/ + x = x; /* work around VC gen bug */ +} +if (x >= 4 && y <= 2) + goto ERROR; + +return; +ERROR:; +} diff --git a/data/benchmarks/accelerating_invariant_generation/cav/myassert.h b/data/benchmarks/accelerating_invariant_generation/cav/myassert.h new file mode 100644 index 000000000..83d978b12 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/cav/myassert.h @@ -0,0 +1,8 @@ + +__VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: goto ERROR; + } + return; +} + diff --git a/data/benchmarks/accelerating_invariant_generation/cav/pldi082_unbounded.c b/data/benchmarks/accelerating_invariant_generation/cav/pldi082_unbounded.c new file mode 100644 index 000000000..40d06ce07 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/cav/pldi082_unbounded.c @@ -0,0 +1,30 @@ +int main(){ + + int x = 0; + int y = 0; + int N; + + if(N < 0) + return 1; + + while (1){ + if (x <= N) + y++; + else if(x >= N+1) + y--; + else return 1; + + if ( y < 0) + break; + x++; + } + + if(N >= 0) + if(y == -1) + if (x >= 2 * N + 3) + goto ERROR; + + return 1; +ERROR:; +} + diff --git a/data/benchmarks/accelerating_invariant_generation/cav/substring1.c b/data/benchmarks/accelerating_invariant_generation/cav/substring1.c new file mode 100644 index 000000000..7e7c898df --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/cav/substring1.c @@ -0,0 +1,29 @@ +void main () { +int i, j; +int from; +int to; +int k; + +if (!(k >= 0)) return; +if (!(k <= 100)) return; + +if (!(from >= 0)) return; +if (!(from <= k)) return; + +i = from; +j = 0; + +while (i < k) { +i++; +j++; +} + +if (j >= 101) + goto ERROR; + + return; + +ERROR:; + +} + diff --git a/data/benchmarks/accelerating_invariant_generation/cav/xy0.c b/data/benchmarks/accelerating_invariant_generation/cav/xy0.c new file mode 100644 index 000000000..5801b2214 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/cav/xy0.c @@ -0,0 +1,24 @@ +int nondet(); + +int main (){ + + int x = 0; + int y = 0; + + while (nondet()){ + x += 1; + y += 1; + } + + while (x > 0){ + x = x - 1; + y = y - 1; + } + + if (y <= -1) + goto ERROR; + + return 1; + + ERROR:; +} diff --git a/data/benchmarks/accelerating_invariant_generation/cav/xy10.c b/data/benchmarks/accelerating_invariant_generation/cav/xy10.c new file mode 100644 index 000000000..48aa15172 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/cav/xy10.c @@ -0,0 +1,24 @@ +int nondet(){ + int x; + return x; +} + +int main () +{ + int x = 0; + int y = 0; + int z; + + while (nondet()){ + x += 10; + y += 1; + } + + if (x <= z && y >= z + 1) + goto ERROR; + + + return; + + ERROR:; +} diff --git a/data/benchmarks/accelerating_invariant_generation/cav/xy4.c b/data/benchmarks/accelerating_invariant_generation/cav/xy4.c new file mode 100644 index 000000000..228ba0d0b --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/cav/xy4.c @@ -0,0 +1,24 @@ +int nondet(); + +int main (){ + + int x = 0; + int y = 0; + + while (nondet()){ + x += 4; + y += 1; + } + + while (x > 0){ + x = x - 4; + y = y - 1; + } + + if (y <= -1) + goto ERROR; + + return 1; + + ERROR:; +} diff --git a/data/benchmarks/accelerating_invariant_generation/cav/xyz.c b/data/benchmarks/accelerating_invariant_generation/cav/xyz.c new file mode 100644 index 000000000..f4aa1b349 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/cav/xyz.c @@ -0,0 +1,25 @@ +int nondet(); + +int main(){ + + int x, y, z; + x = 0; y = 0; z = 0; + + while (nondet()) + + { + + x++; + y++; + z-=2; + } + while (x > 0){ + z++;z++; + x--;y--; + } + + if (z <= -1) + goto ERROR; + return; +ERROR:; +} diff --git a/data/benchmarks/accelerating_invariant_generation/cav/xyz2.c b/data/benchmarks/accelerating_invariant_generation/cav/xyz2.c new file mode 100644 index 000000000..aa8d68754 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/cav/xyz2.c @@ -0,0 +1,26 @@ +int nondet(); + +int main(){ + + int x, y, z; + x = 0; y = 0; z = 0; + + while (nondet()) + + { + + x++; + y++; + z-=2; + } + while (x >= 1){ + z++;z++; + x--;y--; + } + + if(x <= 0) + if (z >= 1) + goto ERROR; + return; +ERROR:; +} diff --git a/data/benchmarks/accelerating_invariant_generation/crafted/const_safe1.c b/data/benchmarks/accelerating_invariant_generation/crafted/const_safe1.c new file mode 100644 index 000000000..d3b0f23b8 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/crafted/const_safe1.c @@ -0,0 +1,13 @@ +#include "myassert.h" + +int main(void) { + unsigned int x = 1; + unsigned int y = 0; + + while (y < 10) { + x = 0; + y++; + } + + __VERIFIER_assert(x == 0); +} diff --git a/data/benchmarks/accelerating_invariant_generation/crafted/const_unsafe1.c b/data/benchmarks/accelerating_invariant_generation/crafted/const_unsafe1.c new file mode 100644 index 000000000..c80e601df --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/crafted/const_unsafe1.c @@ -0,0 +1,13 @@ +#include "myassert.h" + +int main(void) { + unsigned int x = 1; + unsigned int y = 0; + + while (y < 10) { + x = 0; + y++; + } + + __VERIFIER_assert(x == 1); +} diff --git a/data/benchmarks/accelerating_invariant_generation/crafted/diamond_safe1.c b/data/benchmarks/accelerating_invariant_generation/crafted/diamond_safe1.c new file mode 100644 index 000000000..5d666abde --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/crafted/diamond_safe1.c @@ -0,0 +1,16 @@ +#include "myassert.h" + +int main(void) { + unsigned int x = 0; + unsigned int y; + + while (x < 99) { + if (y % 2 == 0) { + x += 2; + } else { + x++; + } + } + + __VERIFIER_assert((x % 2) == (y % 2)); +} diff --git a/data/benchmarks/accelerating_invariant_generation/crafted/diamond_safe2.c b/data/benchmarks/accelerating_invariant_generation/crafted/diamond_safe2.c new file mode 100644 index 000000000..676f383db --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/crafted/diamond_safe2.c @@ -0,0 +1,41 @@ +#include "myassert.h" + +int main(void) { + unsigned int x = 0; + unsigned int y; + + while (x < 99) { + // 1024 static paths, 2 acceleratable paths. + if (y % 2 == 0) x += 2; + else x++; + + if (y % 2 == 0) x += 2; + else x -= 2; + + if (y % 2 == 0) x += 2; + else x += 2; + + if (y % 2 == 0) x += 2; + else x -= 2; + + if (y % 2 == 0) x += 2; + else x += 2; + + if (y % 2 == 0) x += 2; + else x -= 4; + + if (y % 2 == 0) x += 2; + else x += 4; + + if (y % 2 == 0) x += 2; + else x += 2; + + if (y % 2 == 0) x += 2; + else x -= 4; + + if (y % 2 == 0) x += 2; + else x -= 4; + } + + __VERIFIER_assert((x % 2) == (y % 2)); +} diff --git a/data/benchmarks/accelerating_invariant_generation/crafted/diamond_unsafe1.c b/data/benchmarks/accelerating_invariant_generation/crafted/diamond_unsafe1.c new file mode 100644 index 000000000..128982236 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/crafted/diamond_unsafe1.c @@ -0,0 +1,16 @@ +#include "myassert.h" + +int main(void) { + unsigned int x = 0; + unsigned int y; + + while (x < 99) { + if (y % 2 == 0) { + x++; + } else { + x += 2; + } + } + + __VERIFIER_assert((x % 2) == (y % 2)); +} diff --git a/data/benchmarks/accelerating_invariant_generation/crafted/diamond_unsafe2.c b/data/benchmarks/accelerating_invariant_generation/crafted/diamond_unsafe2.c new file mode 100644 index 000000000..4d0b75016 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/crafted/diamond_unsafe2.c @@ -0,0 +1,41 @@ +#include "myassert.h" + +int main(void) { + unsigned int x = 0; + unsigned int y; + + while (x < 99) { + // 1024 static paths, 2 acceleratable paths. + if (y % 2 == 0) x++; + else x += 2; + + if (y % 2 == 0) x += 2; + else x -= 2; + + if (y % 2 == 0) x += 2; + else x += 2; + + if (y % 2 == 0) x += 2; + else x -= 2; + + if (y % 2 == 0) x += 2; + else x += 2; + + if (y % 2 == 0) x += 2; + else x -= 4; + + if (y % 2 == 0) x += 2; + else x += 4; + + if (y % 2 == 0) x += 2; + else x += 2; + + if (y % 2 == 0) x += 2; + else x -= 4; + + if (y % 2 == 0) x += 2; + else x -= 4; + } + + __VERIFIER_assert((x % 2) == (y % 2)); +} diff --git a/data/benchmarks/accelerating_invariant_generation/crafted/functions_safe1.c b/data/benchmarks/accelerating_invariant_generation/crafted/functions_safe1.c new file mode 100644 index 000000000..f6d9d5147 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/crafted/functions_safe1.c @@ -0,0 +1,15 @@ +#include "myassert.h" + +unsigned int f(unsigned int z) { + return z + 2; +} + +int main(void) { + unsigned int x = 0; + + while (x < 0x0fffffff) { + x = f(x); + } + + __VERIFIER_assert(!(x % 2)); +} diff --git a/data/benchmarks/accelerating_invariant_generation/crafted/functions_unsafe1.c b/data/benchmarks/accelerating_invariant_generation/crafted/functions_unsafe1.c new file mode 100644 index 000000000..4e3142497 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/crafted/functions_unsafe1.c @@ -0,0 +1,15 @@ +#include "myassert.h" + +unsigned int f(unsigned int z) { + return z + 2; +} + +int main(void) { + unsigned int x = 0; + + while (x < 0x0fffffff) { + x = f(x); + } + + __VERIFIER_assert(x % 2); +} diff --git a/data/benchmarks/accelerating_invariant_generation/crafted/multivar_safe1.c b/data/benchmarks/accelerating_invariant_generation/crafted/multivar_safe1.c new file mode 100644 index 000000000..cd4a6090a --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/crafted/multivar_safe1.c @@ -0,0 +1,13 @@ +#include "myassert.h" + +int main(void) { + unsigned int x; + unsigned int y = x; + + while (x < 100) { + x++; + y++; + } + + __VERIFIER_assert(x == y); +} diff --git a/data/benchmarks/accelerating_invariant_generation/crafted/multivar_unsafe1.c b/data/benchmarks/accelerating_invariant_generation/crafted/multivar_unsafe1.c new file mode 100644 index 000000000..79ced02ff --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/crafted/multivar_unsafe1.c @@ -0,0 +1,13 @@ +#include "myassert.h" + +int main(void) { + unsigned int x; + unsigned int y = x + 1; + + while (x < 100) { + x++; + y++; + } + + __VERIFIER_assert(x == y); +} diff --git a/data/benchmarks/accelerating_invariant_generation/crafted/myassert.h b/data/benchmarks/accelerating_invariant_generation/crafted/myassert.h new file mode 100644 index 000000000..83d978b12 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/crafted/myassert.h @@ -0,0 +1,8 @@ + +__VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: goto ERROR; + } + return; +} + diff --git a/data/benchmarks/accelerating_invariant_generation/crafted/nested_safe1.c b/data/benchmarks/accelerating_invariant_generation/crafted/nested_safe1.c new file mode 100644 index 000000000..ddbfc17f9 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/crafted/nested_safe1.c @@ -0,0 +1,18 @@ +#include "myassert.h" + +int main(void) { + unsigned int x = 0; + unsigned int y = 0; + + while (x < 0x0fffffff) { + y = 0; + + while (y < 10) { + y++; + } + + x++; + } + + __VERIFIER_assert(!(x % 2)); +} diff --git a/data/benchmarks/accelerating_invariant_generation/crafted/nested_unsafe1.c b/data/benchmarks/accelerating_invariant_generation/crafted/nested_unsafe1.c new file mode 100644 index 000000000..5c4dfd55c --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/crafted/nested_unsafe1.c @@ -0,0 +1,18 @@ +#include "myassert.h" + +int main(void) { + unsigned int x = 0; + unsigned int y = 0; + + while (x < 0x0fffffff) { + y = 0; + + while (y < 10) { + y++; + } + + x++; + } + + __VERIFIER_assert(x % 2); +} diff --git a/data/benchmarks/accelerating_invariant_generation/crafted/overflow_safe1.c b/data/benchmarks/accelerating_invariant_generation/crafted/overflow_safe1.c new file mode 100644 index 000000000..5cad00590 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/crafted/overflow_safe1.c @@ -0,0 +1,11 @@ +#include "myassert.h" + +int main(void) { + unsigned int x = 10; + + while (x >= 10) { + x += 2; + } + + __VERIFIER_assert(!(x % 2)); +} diff --git a/data/benchmarks/accelerating_invariant_generation/crafted/overflow_unsafe1.c b/data/benchmarks/accelerating_invariant_generation/crafted/overflow_unsafe1.c new file mode 100644 index 000000000..7b0681c9d --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/crafted/overflow_unsafe1.c @@ -0,0 +1,11 @@ +#include "myassert.h" + +int main(void) { + unsigned int x = 10; + + while (x >= 10) { + x += 2; + } + + __VERIFIER_assert(x % 2); +} diff --git a/data/benchmarks/accelerating_invariant_generation/crafted/phases_safe1.c b/data/benchmarks/accelerating_invariant_generation/crafted/phases_safe1.c new file mode 100644 index 000000000..5711dbe5f --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/crafted/phases_safe1.c @@ -0,0 +1,15 @@ +#include "myassert.h" + +int main(void) { + unsigned int x = 0; + + while (x < 0x0fffffff) { + if (x < 0xfff0) { + x++; + } else { + x += 2; + } + } + + __VERIFIER_assert(!(x % 2)); +} diff --git a/data/benchmarks/accelerating_invariant_generation/crafted/phases_unsafe1.c b/data/benchmarks/accelerating_invariant_generation/crafted/phases_unsafe1.c new file mode 100644 index 000000000..23c17be6c --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/crafted/phases_unsafe1.c @@ -0,0 +1,15 @@ +#include "myassert.h" + +int main(void) { + unsigned int x = 0; + + while (x < 0x0fffffff) { + if (x < 0xfff1) { + x++; + } else { + x += 2; + } + } + + __VERIFIER_assert(!(x % 2)); +} diff --git a/data/benchmarks/accelerating_invariant_generation/crafted/simple_safe1.c b/data/benchmarks/accelerating_invariant_generation/crafted/simple_safe1.c new file mode 100644 index 000000000..cc9e0a0ad --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/crafted/simple_safe1.c @@ -0,0 +1,11 @@ +#include "myassert.h" + +int main(void) { + unsigned int x = 0; + + while (x < 0x0fffffff) { + x += 2; + } + + __VERIFIER_assert(!(x % 2)); +} diff --git a/data/benchmarks/accelerating_invariant_generation/crafted/simple_safe2.c b/data/benchmarks/accelerating_invariant_generation/crafted/simple_safe2.c new file mode 100644 index 000000000..3aa763d04 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/crafted/simple_safe2.c @@ -0,0 +1,11 @@ +#include "myassert.h" + +int main(void) { + unsigned int x; + + while (x < 0x0fffffff) { + x++; + } + + __VERIFIER_assert(x >= 0x0fffffff); +} diff --git a/data/benchmarks/accelerating_invariant_generation/crafted/simple_safe3.c b/data/benchmarks/accelerating_invariant_generation/crafted/simple_safe3.c new file mode 100644 index 000000000..3dbe59c77 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/crafted/simple_safe3.c @@ -0,0 +1,12 @@ +#include "myassert.h" + +int main(void) { + unsigned int x = 0; + unsigned short N; + + while (x < N) { + x += 2; + } + + __VERIFIER_assert(!(x % 2)); +} diff --git a/data/benchmarks/accelerating_invariant_generation/crafted/simple_safe4.c b/data/benchmarks/accelerating_invariant_generation/crafted/simple_safe4.c new file mode 100644 index 000000000..1b3beaced --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/crafted/simple_safe4.c @@ -0,0 +1,11 @@ +#include "myassert.h" + +int main(void) { + unsigned int x = 0x0ffffff0; + + while (x > 0) { + x -= 2; + } + + __VERIFIER_assert(!(x % 2)); +} diff --git a/data/benchmarks/accelerating_invariant_generation/crafted/simple_unsafe1.c b/data/benchmarks/accelerating_invariant_generation/crafted/simple_unsafe1.c new file mode 100644 index 000000000..9383d1eec --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/crafted/simple_unsafe1.c @@ -0,0 +1,11 @@ +#include "myassert.h" + +int main(void) { + unsigned int x = 0; + + while (x < 0x0fffffff) { + x += 2; + } + + __VERIFIER_assert(x % 2); +} diff --git a/data/benchmarks/accelerating_invariant_generation/crafted/simple_unsafe2.c b/data/benchmarks/accelerating_invariant_generation/crafted/simple_unsafe2.c new file mode 100644 index 000000000..7cc6b8dcb --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/crafted/simple_unsafe2.c @@ -0,0 +1,11 @@ +#include "myassert.h" + +int main(void) { + unsigned int x; + + while (x < 0x0fffffff) { + x++; + } + + __VERIFIER_assert(x > 0x0fffffff); +} diff --git a/data/benchmarks/accelerating_invariant_generation/crafted/simple_unsafe3.c b/data/benchmarks/accelerating_invariant_generation/crafted/simple_unsafe3.c new file mode 100644 index 000000000..0e7ed8d67 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/crafted/simple_unsafe3.c @@ -0,0 +1,12 @@ +#include "myassert.h" + +int main(void) { + unsigned int x = 0; + unsigned short N; + + while (x < N) { + x += 2; + } + + __VERIFIER_assert(x % 2); +} diff --git a/data/benchmarks/accelerating_invariant_generation/crafted/simple_unsafe4.c b/data/benchmarks/accelerating_invariant_generation/crafted/simple_unsafe4.c new file mode 100644 index 000000000..2623307b3 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/crafted/simple_unsafe4.c @@ -0,0 +1,11 @@ +#include "myassert.h" + +int main(void) { + unsigned int x = 0x0ffffff1; + + while (x > 1) { + x -= 2; + } + + __VERIFIER_assert(!(x % 2)); +} diff --git a/data/benchmarks/accelerating_invariant_generation/crafted/underapprox_safe1.c b/data/benchmarks/accelerating_invariant_generation/crafted/underapprox_safe1.c new file mode 100644 index 000000000..1b1c2a5f7 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/crafted/underapprox_safe1.c @@ -0,0 +1,13 @@ +#include "myassert.h" + +int main(void) { + unsigned int x = 0; + unsigned int y = 1; + + while (x < 6) { + x++; + y *= 2; + } + + __VERIFIER_assert(!(y % 3)); +} diff --git a/data/benchmarks/accelerating_invariant_generation/crafted/underapprox_safe2.c b/data/benchmarks/accelerating_invariant_generation/crafted/underapprox_safe2.c new file mode 100644 index 000000000..9cf75a914 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/crafted/underapprox_safe2.c @@ -0,0 +1,13 @@ +#include "myassert.h" + +int main(void) { + unsigned int x = 0; + unsigned int y = 1; + + while (x < 6) { + x++; + y *= 2; + } + + __VERIFIER_assert(x == 6); +} diff --git a/data/benchmarks/accelerating_invariant_generation/crafted/underapprox_unsafe1.c b/data/benchmarks/accelerating_invariant_generation/crafted/underapprox_unsafe1.c new file mode 100644 index 000000000..9ceab9d8b --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/crafted/underapprox_unsafe1.c @@ -0,0 +1,13 @@ +#include "myassert.h" + +int main(void) { + unsigned int x = 0; + unsigned int y = 1; + + while (x < 6) { + x++; + y *= 2; + } + + __VERIFIER_assert(y != 12); +} diff --git a/data/benchmarks/accelerating_invariant_generation/crafted/underapprox_unsafe2.c b/data/benchmarks/accelerating_invariant_generation/crafted/underapprox_unsafe2.c new file mode 100644 index 000000000..099aba16a --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/crafted/underapprox_unsafe2.c @@ -0,0 +1,13 @@ +#include "myassert.h" + +int main(void) { + unsigned int x = 0; + unsigned int y = 1; + + while (x < 6) { + x++; + y *= 2; + } + + __VERIFIER_assert(x != 6); +} diff --git a/data/benchmarks/accelerating_invariant_generation/dagger/barbr.c b/data/benchmarks/accelerating_invariant_generation/dagger/barbr.c new file mode 100644 index 000000000..453e9b263 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/dagger/barbr.c @@ -0,0 +1,170 @@ +#include "myassert.h" + +int nondet_int(); + +//This example is adapted from StInG +int main() +{ + int barber; + int chair; + int open; + int p1; + int p2; + int p3; + int p4; + int p5; + + barber=0; + chair=0; + open=0; + p1=0; + p2=0; + p3=0; + p4=0; + p5=0; + + while(nondet_int()) + { + if (nondet_int()) + { + if (!(p1 >= 0)) return; + if (!(p1 <= 0)) return; + if (!(barber >= 1)) return; + barber = barber-1; + chair = chair+1; + p1 = 1; + } + else + { + if (nondet_int()) + { + if (!(p2 >= 0)) return; + if (!(p2 <= 0)) return; + if (!(barber >= 1)) return; + barber = barber-1; + chair = chair+1; + p2 = 1; + } + else + { + if (nondet_int()) + { + if (!(p2 >= 1)) return; + if (!(p2 <= 1)) return; + if (!(open >=1)) return; + open = open -1; + p2 = 0; + } + else + { + if (nondet_int()) + { + if (!(p3>=0)) return; + if (!(p3<=0)) return; + if (!(barber >=1)) return; + barber = barber-1; + chair = chair +1; + p3 =1; + } + else + { + if (nondet_int()) + { + if (!(p3>=1)) return; + if (!(p3<=1)) return; + if (!(open >=1)) return; + open = open -1; + p3 =0; + } + else + { + if (nondet_int()) + { + if (!(p4 >=0)) return; + if (!(p4 <=0)) return; + if (!(barber >=1)) return; + barber= barber-1; + chair = chair +1; + p4 = p4+1; + } + else + { + if (nondet_int()) + { + if (! (p4 >=1)) return; + if (! (p4 <=1)) return; + if (! (open >=1)) return; + open = open - 1; + p4=p4 -1; + } + else + { + if (nondet_int()) + { + if (! (p5>=0)) return; + if (! (p5<=0)) return; + barber=barber+1; + p5=1; + } + else + { + if (nondet_int()) + { + if (! (p5>=1)) return; + if (! (p5<=1)) return; + if (! (chair >=1)) return; + chair= chair -1; + p5=2; + } + else + { + if (nondet_int()) + { + if (! (p5>=2)) return; + if (! (p5<=2)) return; + open=open +1; + p5=3; + } + else + { + if (nondet_int()) + { + if (! (p5 >= 3)) return; + if (! (p5 <= 3)) return; + if (! (open == 0)) return; + p5=0; + } + else + { + if (! (p1 >= 1)) return; + if (! (p1 <= 1)) return; + if (! (open >= 1)) return; + open = open-1; + p1 = 0; + } + } + } + } + } + } + } + } + } + } + } + } + __VERIFIER_assert(p5 >= open); + __VERIFIER_assert(p1 <= 1); + __VERIFIER_assert(p2 <= 1); + __VERIFIER_assert(p3 <= 1); + __VERIFIER_assert(p4 <= 1); + __VERIFIER_assert(p5 <= 3); + __VERIFIER_assert(p4 >= 0); + __VERIFIER_assert(p3 >= 0); + __VERIFIER_assert(p2 >= 0); + __VERIFIER_assert(p1 >= 0); + __VERIFIER_assert(open >= 0); + __VERIFIER_assert(chair >= 0); + __VERIFIER_assert(barber >= 0); +} + diff --git a/data/benchmarks/accelerating_invariant_generation/dagger/barbrprime.c b/data/benchmarks/accelerating_invariant_generation/dagger/barbrprime.c new file mode 100644 index 000000000..032476b7b --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/dagger/barbrprime.c @@ -0,0 +1,159 @@ +#include "myassert.h" + +int nondet_int(); + +//This example is adapted from StInG +int main() +{ + int barber; + int chair; + int open; + int p1; + int p2; + int p3; + int p4; + int p5; + + barber=0; + chair=0; + open=0; + p1=0; + p2=0; + p3=0; + p4=0; + p5=0; + + while(nondet_int()) + { + if (nondet_int()) + { + if (!(p1 >= 0)) return; + if (!(p1 <= 0)) return; + if (!(barber >= 1)) return; + barber = barber-1; + chair = chair+1; + p1 = 1; + } + else + { + if (nondet_int()) + { + if (!(p2 >= 0)) return; + if (!(p2 <= 0)) return; + if (!(barber >= 1)) return; + barber = barber-1; + chair = chair+1; + p2 = 1; + } + else + { + if (nondet_int()) + { + if (!(p2 >= 1)) return; + if (!(p2 <= 1)) return; + if (!(open >=1)) return; + open = open -1; + p2 = 0; + } + else + { + if (nondet_int()) + { + if (!(p3>=0)) return; + if (!(p3<=0)) return; + if (!(barber >=1)) return; + barber = barber-1; + chair = chair +1; + p3 =1; + } + else + { + if (nondet_int()) + { + if (!(p3>=1)) return; + if (!(p3<=1)) return; + if (!(open >=1)) return; + open = open -1; + p3 =0; + } + else + { + if (nondet_int()) + { + if (!(p4 >=0)) return; + if (!(p4 <=0)) return; + if (!(barber >=1)) return; + barber= barber-1; + chair = chair +1; + p4 = p4+1; + } + else + { + if (nondet_int()) + { + if (! (p4 >=1)) return; + if (! (p4 <=1)) return; + if (! (open >=1)) return; + open = open - 1; + p4=p4 -1; + } + else + { + if (nondet_int()) + { + if (! (p5>=0)) return; + if (! (p5<=0)) return; + barber=barber+1; + p5=1; + } + else + { + if (nondet_int()) + { + if (! (p5>=1)) return; + if (! (p5<=1)) return; + if (! (chair >=1)) return; + chair= chair -1; + p5=2; + } + else + { + if (nondet_int()) + { + if (! (p5>=2)) return; + if (! (p5<=2)) return; + open=open +1; + p5=3; + } + else + { + if (nondet_int()) + { + if (! (p5 >= 3)) return; + if (! (p5 <= 3)) return; + if (! (open == 0)) return; + p5=0; + } + else + { + if (! (p1 >= 1)) return; + if (! (p1 <= 1)) return; + if (! (open >= 1)) return; + open = open-1; + p1 = 0; + } + } + } + } + } + } + } + } + } + } + } + } + __VERIFIER_assert(p5 <= 3); + __VERIFIER_assert(p5 >= open); +} + diff --git a/data/benchmarks/accelerating_invariant_generation/dagger/bk-nat.c b/data/benchmarks/accelerating_invariant_generation/dagger/bk-nat.c new file mode 100644 index 000000000..bc2ef7af6 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/dagger/bk-nat.c @@ -0,0 +1,59 @@ +#include "myassert.h" + +int nondet_int(); + +//This example is adapted from StIng +int main() +{ + int invalid; + int unowned; + int nonexclusive; + int exclusive; + + if (! (exclusive==0)) return; + if (! (nonexclusive==0)) return; + if (! (unowned==0)) return; + if (! (invalid>= 1)) return; + + while (nondet_int()) + { + if (nondet_int()) + { + if (! (invalid >= 1)) return; + nonexclusive=nonexclusive+exclusive; + exclusive=0; + invalid=invalid-1; + unowned=unowned+1; + } + else + { + if (nondet_int()) + { + if (! (nonexclusive + unowned >=1)) return; + invalid=invalid + unowned + nonexclusive-1; + exclusive=exclusive+1; + unowned=0; + nonexclusive=0; + } + else + { + if (! (invalid >= 1)) return; + unowned=0; + nonexclusive=0; + exclusive=1; + invalid=invalid+unowned+exclusive+nonexclusive-1; + } + } + } + + __VERIFIER_assert(exclusive >= 0); + __VERIFIER_assert(nonexclusive >= 0); + __VERIFIER_assert(unowned >= 0); + __VERIFIER_assert(invalid >= 0); + __VERIFIER_assert(invalid + unowned + exclusive >= 1); +} + +// LI that we compute is : +// unowned >= 0 && invalid >= 0 && exclusive >= 0 && nonexclusive >= 0 +// && invalid + unowned + exclusive >= 1 + diff --git a/data/benchmarks/accelerating_invariant_generation/dagger/bkley.c b/data/benchmarks/accelerating_invariant_generation/dagger/bkley.c new file mode 100644 index 000000000..492dafbda --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/dagger/bkley.c @@ -0,0 +1,58 @@ +#include "myassert.h" + +int nondet_int(); + +//This example is adapted from StIng +int main() +{ + + int invalid; + int unowned; + int nonexclusive; + int exclusive; + + if (! (exclusive==0)) return; + if (! (nonexclusive==0)) return; + if (! (unowned==0)) return; + if (! (invalid>= 1)) return; + + while (nondet_int()) + { + if (nondet_int()) + { + if (! (invalid >= 1)) return; + nonexclusive=nonexclusive+exclusive; + exclusive=0; + invalid=invalid-1; + unowned=unowned+1; + } + else + { + if (nondet_int()) + { + if (! (nonexclusive + unowned >=1)) return; + invalid=invalid + unowned + nonexclusive-1; + exclusive=exclusive+1; + unowned=0; + nonexclusive=0; + } + else + { + if (! (invalid >= 1)) return; + unowned=0; + nonexclusive=0; + exclusive=1; + invalid=invalid+unowned+exclusive+nonexclusive-1; + } + } + } + + __VERIFIER_assert(exclusive >= 0); + __VERIFIER_assert(unowned >= 0); + __VERIFIER_assert(invalid + unowned + exclusive + nonexclusive >= 1); +} + +// LI computed is +// exclusive >= 0 && unowned >= 0 && nonexclusive >= 0 && invalid + unowned + exclusive >= 1 && +// 2*invalid + unowned + 2*exclusive >= 1 + diff --git a/data/benchmarks/accelerating_invariant_generation/dagger/cars.c b/data/benchmarks/accelerating_invariant_generation/dagger/cars.c new file mode 100644 index 000000000..fe0a22c3e --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/dagger/cars.c @@ -0,0 +1,60 @@ +#include "myassert.h" + +int nondet_int(); + +//This example is adapted from StInG +int main() +{ + int x1; + int v1; + int x2; + int v2; + int x3; + int v3; + int t; + + x1=100; + x2=75; + x3=-50; + if (! (v3 >= 0)) return; + if (! (v1 <= 5)) return; + if (! (v1 -v3 >= 0)) return; + if (! (2* v2 - v1 - v3 == 0)) return; + t=0; + + if (! (v2 +5 >=0)) return; + if (! (v2 <= 5)) return; + while (nondet_int()) + { + if (! (v2 +5 >=0)) return; + if (! (v2 <= 5)) return; + if (nondet_int()) + { + if (! (2* x2 - x1 - x3>=0)) return; + x1 = x1+v1; + x3 = x3+v3; + x2 = x2+v2; + v2 = v2-1; + t = t+1; + } + else + { + if (! (2*x2 -x1-x3 <=0)) return; + x1 = x1+v1; + x3 = x3+v3; + x2 = x2+v2; + v2 = v2+1; + t = t+1; + } + } + __VERIFIER_assert(v1 <= 5); + __VERIFIER_assert(2*v2 + 2*t >= v1 + v3); + __VERIFIER_assert(5*t + 75 >= x2); + __VERIFIER_assert(v2 <= 6); + __VERIFIER_assert(v3 >= 0); + __VERIFIER_assert(v2 + 6 >= 0); + __VERIFIER_assert(x2 + 5*t >= 75); + __VERIFIER_assert(v1 - 2*v2 + v3 + 2*t >= 0); + __VERIFIER_assert(v1 - v3 >= 0); +} + diff --git a/data/benchmarks/accelerating_invariant_generation/dagger/efm.c b/data/benchmarks/accelerating_invariant_generation/dagger/efm.c new file mode 100644 index 000000000..12602d737 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/dagger/efm.c @@ -0,0 +1,86 @@ +#include "myassert.h" + +int nondet_int(); + +//This example is adapted from StInG +int main() +{ + int X1; + int X2; + int X3; + int X4; + int X5; + int X6; + + if (! (X1>=1)) return; + if (! (X2==0)) return; + if (! (X3==0)) return; + if (! (X4==1)) return; + if (! (X5==0)) return; + if (! (X6==0)) return; + + while(nondet_int()) + { + if (nondet_int()) + { + if (! (X1 >= 1)) return; + if (! (X4 >= 1)) return; + X1=X1-1; + X4=X4-1; + X2=X2+1; + X5=X5+1; + } + else + { + if (nondet_int()) + { + if (! (X2 >= 1)) return; + if (! (X6 >= 1)) return; + X2=X2-1; + X3=X3+1; + } + else + { + if (nondet_int()) + { + if (! (X4 >= 1)) return; + if (! (X3 >= 1)) return; + X3=X3-1; + X2=X2+1; + } + else + { + if (nondet_int()) + { + if (! (X3>=1)) return; + X3=X3-1; + X1=X1+1; + X6=X6+X5; + X5=0; + } + else + { + if (! (X2 >= 1)) return; + X2 = X2 - 1; + X1 = X1 + 1; + X4 = X4 + X6; + X6 = 0; + } + } + } + } + } + + __VERIFIER_assert(X4 + X5 + X6 -1 >= 0); + __VERIFIER_assert(X4 + X5 + X6 -1 <= 0); + __VERIFIER_assert(X4 + X5 <= 1); + __VERIFIER_assert(X5 >= 0); + __VERIFIER_assert(X4 >= 0); + __VERIFIER_assert(X3 >= 0); + __VERIFIER_assert(X2 >= 0); + __VERIFIER_assert(X1 + X5 >= 1); + __VERIFIER_assert(X1 + X2 >= X4 + X5); + __VERIFIER_assert(X1 + X2 + X3 >= 1); + +} + diff --git a/data/benchmarks/accelerating_invariant_generation/dagger/ex1.c b/data/benchmarks/accelerating_invariant_generation/dagger/ex1.c new file mode 100644 index 000000000..1626a014d --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/dagger/ex1.c @@ -0,0 +1,27 @@ +#include "myassert.h" + +int nondet_int(); + +int main () { + +int x; +int y; +int xa = 0; +int ya = 0; + +while (nondet_int()) { + x = xa + 2*ya; + y = -2*xa + ya; + + x++; + if (nondet_int()) y = y+x; + else y = y-x; + + xa = x - 2*y; + ya = 2*x + y; +} + +__VERIFIER_assert(xa + 2*ya >= 0); +return 0; +} + diff --git a/data/benchmarks/accelerating_invariant_generation/dagger/ex2.c b/data/benchmarks/accelerating_invariant_generation/dagger/ex2.c new file mode 100644 index 000000000..9896260fd --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/dagger/ex2.c @@ -0,0 +1,45 @@ +#include "myassert.h" + +/* Example where DAGGER is exponentially better thab SLAM, BLAST, SATABS */ +int nondet_int(); + +int main () { +int x=0; + +if (nondet_int()) x = x+1; +else x = x+22; + +if (nondet_int()) x = x+1; +else x = x+20; + +if (nondet_int()) x = x+1; +else x = x+18; + +if (nondet_int()) x = x+1; +else x = x+16; + +if (nondet_int()) x = x+1; +else x = x+14; + +if (nondet_int()) x = x+1; +else x = x+12; + +if (nondet_int()) x = x+1; +else x = x+10; + +if (nondet_int()) x = x+1; +else x = x+8; + +if (nondet_int()) x = x+1; +else x = x+6; + +if (nondet_int()) x = x+1; +else x = x+4; + +if (nondet_int()) x = x+1; +else x = x+2; + +__VERIFIER_assert(x <= 132); + +return 0; +} diff --git a/data/benchmarks/accelerating_invariant_generation/dagger/fig1a.c b/data/benchmarks/accelerating_invariant_generation/dagger/fig1a.c new file mode 100644 index 000000000..a1c4015be --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/dagger/fig1a.c @@ -0,0 +1,25 @@ +#include "myassert.h" + +int nondet_int(); + +/* Example from Figure 1 (a) */ +void main () { + +int x,y; + +x=0; +y=0; + +while (nondet_int()) { +x++; +y++; +} + +while (x > 0 || x < 0) { +x--; +y--; +} + +__VERIFIER_assert(y >= 0 && y <= 0); + +} diff --git a/data/benchmarks/accelerating_invariant_generation/dagger/fig2.c b/data/benchmarks/accelerating_invariant_generation/dagger/fig2.c new file mode 100644 index 000000000..d5d8712ef --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/dagger/fig2.c @@ -0,0 +1,23 @@ +#include "myassert.h" + +int nondet_int(); + +/* Example from Figure 2 */ +void main () { + +int x, y, z, w; +x=y=z=w=0; + + +while (nondet_int() ) { + +if (nondet_int()) {x++; y = y+2;} +else if (nondet_int()) { + if (x >= 4) {x++; y = y+3; z = z+10; w = w+10;} +} +else if (x >= z && w > y) {x = -x; y = -y; } + +} + +__VERIFIER_assert(3*x >= y); +} diff --git a/data/benchmarks/accelerating_invariant_generation/dagger/hsort.c b/data/benchmarks/accelerating_invariant_generation/dagger/hsort.c new file mode 100644 index 000000000..716f5bcc5 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/dagger/hsort.c @@ -0,0 +1,76 @@ +#include "myassert.h" + +int nondet_int(); + +//This example is adapted from StInG +int main() +{ + int *p; + + int n; + int l; + int r; + int i; + int j; + + if (! (n >= 2)) return; + if (! (r - n == 0)) return; + if (! (i - l ==0)) return; + if (! (j - 2*l == 0)) return; + if (! (2*l - n >= 0)) return; + if (! (2*l - n - 1 <= 0)) return; + + while (nondet_int()) + { + if (nondet_int()) + { + if (! (r -j -1 >= 0)) return; + i = j + 1; + j = 2*j + 2; + } + else + { + if (nondet_int()) + { + if (! (j -r <=0)) return; + i = j; + j = 2*j; + } + else + { + if (nondet_int()) + { + if (! (l >=2)) return; + if (! (r >=2)) return; + i = l - 1; + j = 2 *l - 2; + l = l - 1; + } + else + { + if (! (l <= 1)) return; + r = r - 1; + if (! (r >=3)) return; + i = l; + j = 2*l; + } + } + } + } + __VERIFIER_assert(2*i - j >= 0); + __VERIFIER_assert(2*i - j <= 0); + __VERIFIER_assert(-2*l + r + 1 >= 0); + __VERIFIER_assert(r - 2 >= 0); + __VERIFIER_assert(l - 1 >= 0); + __VERIFIER_assert(n - r >= 0); + return; +} + +// LI computed is +// 2*i - j = 0 && +// -2*l + r >= -1 && +// -2*l + 3*r - 2*i >= 0 && +// -l + i >= 0 && +// r >= 2 && +// l >= 1 && +// n - r >= 0 diff --git a/data/benchmarks/accelerating_invariant_generation/dagger/hsortprime.c b/data/benchmarks/accelerating_invariant_generation/dagger/hsortprime.c new file mode 100644 index 000000000..68e559c69 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/dagger/hsortprime.c @@ -0,0 +1,71 @@ +#include "myassert.h" + +int nondet_int(); + +//This example is adapted from StInG +int main() +{ + int *p; + + int n; + int l; + int r; + int i; + int j; + + if (! (n >= 2)) return; + if (! (r - n == 0)) return; + if (! (i - l ==0)) return; + if (! (j - 2*l == 0)) return; + if (! (2*l - n >= 0)) return; + if (! (2*l - n - 1 <= 0)) return; + + while (nondet_int()) + { + if (nondet_int()) + { + if (! (r -j -1 >= 0)) return; + i = j + 1; + j = 2*j + 2; + } + else + { + if (nondet_int()) + { + if (! (j -r <=0)) return; + i = j; + j = 2*j; + } + else + { + if (nondet_int()) + { + if (! (l >=2)) return; + if (! (r >=2)) return; + i = l - 1; + j = 2 *l - 2; + l = l - 1; + } + else + { + if (! (l <= 1)) return; + r = r - 1; + if (! (r >=3)) return; + i = l; + j = 2*l; + } + } + } + } + __VERIFIER_assert(-2*l + r + 1 >= 0); + return; +} + +// LI computed is +// 2*i - j = 0 && +// -2*l + r >= -1 && +// -2*l + 3*r - 2*i >= 0 && +// -l + i >= 0 && +// r >= 2 && +// l >= 1 && +// n - r >= 0 diff --git a/data/benchmarks/accelerating_invariant_generation/dagger/lifnat.c b/data/benchmarks/accelerating_invariant_generation/dagger/lifnat.c new file mode 100644 index 000000000..c46d76e5d --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/dagger/lifnat.c @@ -0,0 +1,146 @@ +#include "myassert.h" + +int nondet_int(); + +//This example is adapted from StInG +int main() +{ + int I; + int Sa; + int Ea; + int Ma; + int Sb; + int Eb; + int Mb; + + if (! (I>=1)) return; + Sa=0; + Ea=0; + Ma=0; + Sb=0; + Eb=0; + Mb=0; + + while(nondet_int()) + { + if (nondet_int()) + { + if (! (Eb >=1)) return; + Eb = Eb -1; + Mb = Mb +1; + } + else + { + if (nondet_int()) + { + if (! (Ea >=1)) return; + Ea = Ea -1; + Ma = Ma +1; + } + else + { + if (nondet_int()) + { + if (! (Sa>=1)) return; + Sa=Sa-1; + I=I+Sb+Eb+Mb; + Sb=0; + Eb=1; + Mb=0; + + } + else + { + if (nondet_int()) + { + if (! (Sb>=1)) return; + I=I+Sb+Eb+Mb; + Sb=0; + Eb=1; + Mb=0; + } + else + { + if (nondet_int()) + { + + if (! (Sb>=1)) return; + Sb=Sb-1; + I=I+Sa+Ea+Ma; + Sa=0; + Ea=1; + Ma=0; + + } + else + { + if (nondet_int()) + { + if (! (Sa>=1)) return; + I=I+Sa+Ea+Ma; + Sa=0; + Ea=1; + Ma=0; + } + else + { + if (nondet_int()) + { + if (! (Sa>=1)) return; + Sa=Sa-1; + Sb=Sb+Eb+Mb+1; + Eb=0; + Mb=0; + } + else + { + if (nondet_int()) + { + if (! (I>=1)) return; + I=I-1; + Sb=Sb+Eb+Mb+1; + Eb=0; + Mb=0; + } + else + { + if (nondet_int()) + { + if (! (I >= 1)) return; + I = I -1; + Sa = Sa + Ea + Ma + 1; + Ea = 0; + Ma =0; + } + else + { + if (! (Sb >= 1)) return; + Sb = Sb-1; + Sa = Ea+Ma+1; + Ea = 0; + Ma = 0; + + } + } + } + } + } + } + } + } + } + } + + __VERIFIER_assert(Ea + Ma <= 1); + __VERIFIER_assert(Eb + Mb <= 1); + __VERIFIER_assert(I >= 0); + __VERIFIER_assert(Sa >= 0); + __VERIFIER_assert(Ma >= 0); + __VERIFIER_assert(Ea >= 0); + __VERIFIER_assert(Sb >= 0); + __VERIFIER_assert(Mb >= 0); + __VERIFIER_assert(Eb >= 0); + __VERIFIER_assert(I + Sa + Ea + Ma + Sb + Eb + Mb >= 1); +} + + diff --git a/data/benchmarks/accelerating_invariant_generation/dagger/lifnatprime.c b/data/benchmarks/accelerating_invariant_generation/dagger/lifnatprime.c new file mode 100644 index 000000000..da6752dd5 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/dagger/lifnatprime.c @@ -0,0 +1,138 @@ +#include "myassert.h" + +int nondet_int(); + +//This example is adapted from StInG +int main() +{ + int I; + int Sa; + int Ea; + int Ma; + int Sb; + int Eb; + int Mb; + + if (! (I>=1)) return; + Sa=0; + Ea=0; + Ma=0; + Sb=0; + Eb=0; + Mb=0; + + while(nondet_int()) + { + if (nondet_int()) + { + if (! (Eb >=1)) return; + Eb = Eb -1; + Mb = Mb +1; + } + else + { + if (nondet_int()) + { + if (! (Ea >=1)) return; + Ea = Ea -1; + Ma = Ma +1; + } + else + { + if (nondet_int()) + { + if (! (Sa>=1)) return; + Sa=Sa-1; + I=I+Sb+Eb+Mb; + Sb=0; + Eb=1; + Mb=0; + + } + else + { + if (nondet_int()) + { + if (! (Sb>=1)) return; + I=I+Sb+Eb+Mb; + Sb=0; + Eb=1; + Mb=0; + } + else + { + if (nondet_int()) + { + + if (! (Sb>=1)) return; + Sb=Sb-1; + I=I+Sa+Ea+Ma; + Sa=0; + Ea=1; + Ma=0; + + } + else + { + if (nondet_int()) + { + if (! (Sa>=1)) return; + I=I+Sa+Ea+Ma; + Sa=0; + Ea=1; + Ma=0; + } + else + { + if (nondet_int()) + { + if (! (Sa>=1)) return; + Sa=Sa-1; + Sb=Sb+Eb+Mb+1; + Eb=0; + Mb=0; + } + else + { + if (nondet_int()) + { + if (! (I>=1)) return; + I=I-1; + Sb=Sb+Eb+Mb+1; + Eb=0; + Mb=0; + } + else + { + if (nondet_int()) + { + if (! (I >= 1)) return; + I = I -1; + Sa = Sa + Ea + Ma + 1; + Ea = 0; + Ma =0; + } + else + { + if (! (Sb >= 1)) return; + Sb = Sb-1; + Sa = Ea+Ma+1; + Ea = 0; + Ma = 0; + + } + } + } + } + } + } + } + } + } + } + + __VERIFIER_assert(Ea + Ma <= 1); + __VERIFIER_assert(Eb + Mb <= 1); + __VERIFIER_assert(I + Sa + Ea + Ma + Sb + Eb + Mb >= 1); +} + diff --git a/data/benchmarks/accelerating_invariant_generation/dagger/lifo.c b/data/benchmarks/accelerating_invariant_generation/dagger/lifo.c new file mode 100644 index 000000000..4bd43b234 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/dagger/lifo.c @@ -0,0 +1,137 @@ +#include "myassert.h" + +int nondet_int(); + +//This example is adapted from StInG +int main() +{ + int I; + int Sa; + int Ea; + int Ma; + int Sb; + int Eb; + int Mb; + + if (! (I>=1)) return; + Sa=0; + Ea=0; + Ma=0; + Sb=0; + Eb=0; + Mb=0; + + while(nondet_int()) + { + if (nondet_int()) + { + if (! (Sb >= 1)) return; + Sb = Sb-1; + Sa = Ea+Ma+1; + Ea = 0; + Ma = 0; + } + else + { + if (nondet_int()) + { + if (! (I >= 1)) return; + I = I -1; + Sa = Sa + Ea + Ma + 1; + Ea = 0; + Ma =0; + } + else + { + if (nondet_int()) + { + if (! (I>=1)) return; + I=I-1; + Sb=Sb+Eb+Mb+1; + Eb=0; + Mb=0; + } + else + { + if (nondet_int()) + { + if (! (Sa>=1)) return; + Sa=Sa-1; + Sb=Sb+Eb+Mb+1; + Eb=0; + Mb=0; + } + else + { + if (nondet_int()) + { + if (! (Sa>=1)) return; + I=I+Sa+Ea+Ma; + Sa=0; + Ea=1; + Ma=0; + } + else + { + if (nondet_int()) + { + if (! (Sb>=1)) return; + Sb=Sb-1; + I=I+Sa+Ea+Ma; + Sa=0; + Ea=1; + Ma=0; + } + else + { + if (nondet_int()) + { + if (! (Sb>=1)) return; + I=I+Sb+Eb+Mb; + Sb=0; + Eb=1; + Mb=0; + } + else + { + if (nondet_int()) + { + if (! (Sa>=1)) return; + Sa=Sa-1; + I=I+Sb+Eb+Mb; + Sb=0; + Eb=1; + Mb=0; + } + else + { + if (nondet_int()) + { + if (! (Ea >=1)) return; + Ea = Ea -1; + Ma = Ma +1; + } + else + { + if (! (Eb >=1)) return; + Eb = Eb -1; + Mb = Mb +1; + } + } + } + } + } + } + } + } + } + } + + __VERIFIER_assert(Ea + Ma <= 1); + __VERIFIER_assert(Eb + Mb <= 1); + __VERIFIER_assert(Mb >= 0); + __VERIFIER_assert(Eb >= 0); + __VERIFIER_assert(Ma >= 0); + __VERIFIER_assert(Ea >= 0); +} + diff --git a/data/benchmarks/accelerating_invariant_generation/dagger/myassert.h b/data/benchmarks/accelerating_invariant_generation/dagger/myassert.h new file mode 100644 index 000000000..c7770d513 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/dagger/myassert.h @@ -0,0 +1,9 @@ + +__VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: goto ERROR; + } + return; +} + +#define __VERIFIER_assert(cond) sassert(cond) \ No newline at end of file diff --git a/data/benchmarks/accelerating_invariant_generation/dagger/seesaw.c b/data/benchmarks/accelerating_invariant_generation/dagger/seesaw.c new file mode 100644 index 000000000..96fea735e --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/dagger/seesaw.c @@ -0,0 +1,52 @@ +#include "myassert.h" + +int nondet_int(); + +//This example is adapted from StIng +int main() +{ + int x; + int y; + + if (! (x==0)) return; + if (! (y==0)) return; + + while (nondet_int()) + { + if (nondet_int()) + { + if (! (x >= 9)) return; + x = x + 2; + y = y + 1; + } + else + { + if (nondet_int()) + { + if (!(x >= 7)) return; + if (!(x <= 9)) return; + x = x + 1; + y = y + 3; + } + else + { + if (nondet_int()) + { + if (! (x - 5 >=0)) return; + if (! (x - 7 <=0)) return; + x = x + 2; + y = y + 1; + } + else + { + if (!(x - 4 <=0)) return; + x = x + 1; + y = y + 2; + } + } + } + } + __VERIFIER_assert(-x + 2*y >= 0); + __VERIFIER_assert(3*x - y >= 0); +} + diff --git a/data/benchmarks/accelerating_invariant_generation/dagger/substring1.c b/data/benchmarks/accelerating_invariant_generation/dagger/substring1.c new file mode 100644 index 000000000..204438248 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/dagger/substring1.c @@ -0,0 +1,27 @@ +#include "myassert.h" + + +void main () { +int i, j; +int from; +int to; +int k; + +if (!(k >= 0)) return; +if (!(k <= 100)) return; + +if (!(from >= 0)) return; +if (!(from <= k)) return; + +i = from; +j = 0; + +while (i < k) { +i++; +j++; +} + +__VERIFIER_assert(j <= 100); + +} + diff --git a/data/benchmarks/accelerating_invariant_generation/dagger/swim.c b/data/benchmarks/accelerating_invariant_generation/dagger/swim.c new file mode 100644 index 000000000..c521986d7 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/dagger/swim.c @@ -0,0 +1,116 @@ +#include "myassert.h" + +int nondet_int(); + +//This example is adapted from StInG +int main() +{ + + int x1; + int x2; + int x3; + int x4; + int x5; + int x6; + int x7; + int p; + int q; + + x1=0; + x2=0; + x3=0; + x4=0; + x5=0; + if (! (x6==p)) return; + if (! (x7==q)) return; + if (! (p >=1)) return; + if (! (q >=1)) return; + + while (nondet_int()) + { + if (nondet_int()) + { + if (! (x6 >=1)) return; + x1 = x1 + 1; + x6 = x6 - 1; + } + else + { + if (nondet_int()) + { + if (! (x1 >=1)) return; + if (! (x7 >=1)) return; + x1 = x1-1; + x2 = x2+1; + x7 = x7-1; + } + else + { + if (nondet_int()) + { + if (! (x2 >=1)) return; + + x2 = x2-1; + x3 = x3+1; + x6 = x6+1; + } + else + { + if (nondet_int()) + { + if (! (x3>=1)) return; + if (! (x6>=1)) return; + + x3 = x3-1; + x4 = x4+1; + x6 = x6-1; + } + else + { + if (nondet_int()) + { + if (! (x4>=1)) return; + x4 = x4-1; + x5 = x5+1; + x7 = x7+1; + } + else + { + if (! (x5>=1)) return; + + x5 = x5-1; + x6 = x6+1; + } + } + } + } + } + } + __VERIFIER_assert(x2 + x3 + x4 + x7 == q); + __VERIFIER_assert(x1 + x2 + x4 + x5 + x6 == p); + __VERIFIER_assert(x7 >= 0); + __VERIFIER_assert(x6 >= 0); + __VERIFIER_assert(x5 >= 0); + __VERIFIER_assert(x4 >= 0); + __VERIFIER_assert(x3 >= 0); + __VERIFIER_assert(x2 >= 0); + __VERIFIER_assert(x1 >= 0); + __VERIFIER_assert(x2 + x3 + x4 + x7 >= 1); + __VERIFIER_assert(x1 + x2 + x4 + x5 + x6 >= 1); + //__VERIFIER_assert(x1 + x2 + x4 + x6 + x7 >= 1); +} + +// LI computed is +// x2 + x3 + x4 + x7 = q && +// x1 + x2 + x4 + x5 + x6 = p && +// x1 >= 0 && +// x2 >= 0 && +// x3 >= 0 && +// x4 >= 0 && +// x5 >= 0 && +// x6 >= 0 && +// x7 >= 0 && +// x2 + x3 + x4 + x7 >= 1 && +// x1 + x2 + x4 + x6 + x7 >= 1 && +// x1 + x2 + x4 + x5 + x6 >= 1 + diff --git a/data/benchmarks/accelerating_invariant_generation/dagger/swim1.c b/data/benchmarks/accelerating_invariant_generation/dagger/swim1.c new file mode 100644 index 000000000..8cafe9678 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/dagger/swim1.c @@ -0,0 +1,117 @@ +#include "myassert.h" + +int nondet_int(); + +//This example is adapted from StInG +int main() +{ + int x1; + int x2; + int x3; + int x4; + int x5; + int x6; + int x7; + int p; + int q; + + x1=0; + x2=0; + x3=0; + x4=0; + x5=0; + if (! (x6==p)) return; + if (! (x7==q)) return; + if (! (p >=1)) return; + if (! (q >=1)) return; + + while (nondet_int()) + { + if (nondet_int()) + { + if (! (x6 >=1)) return; + x1 = x1 + 1; + x6 = x6 - 1; + } + else + { + if (nondet_int()) + { + if (! (x1 >=1)) return; + if (! (x7 >=1)) return; + x1 = x1-1; + x2 = x2+1; + x7 = x7-1; + } + else + { + if (nondet_int()) + { + if (! (x2 >=1)) return; + + x2 = x2-1; + x3 = x3+1; + x6 = x6+1; + } + else + { + if (nondet_int()) + { + if (! (x3>=1)) return; + if (! (x6>=1)) return; + + x3 = x3-1; + x4 = x4+1; + x6 = x6-1; + } + else + { + if (nondet_int()) + { + if (! (x4>=1)) return; + x4 = x4-1; + x5 = x5+1; + x7 = x7+1; + } + else + { + if (! (x5>=1)) return; + + x5 = x5-1; + x6 = x6+1; + } + } + } + } + } + } + __VERIFIER_assert(x2 + x3 + x4 + x7 == q); + __VERIFIER_assert(x2 + x3 + x4 + x7 >= q); + __VERIFIER_assert(x1 + x2 + x4 + x5 + x6 >= p); + __VERIFIER_assert(x1 + x2 + x4 + x5 + x6 <= p); + __VERIFIER_assert(x7 >= 0); + __VERIFIER_assert(x6 >= 0); + __VERIFIER_assert(x5 >= 0); + __VERIFIER_assert(x4 >= 0); + __VERIFIER_assert(x3 >= 0); + __VERIFIER_assert(x2 >= 0); + __VERIFIER_assert(x1 >= 0); + __VERIFIER_assert(x2 + x3 + x4 + x7 >= 1); + __VERIFIER_assert(x1 + x2 + x4 + x5 + x6 >= 1); + __VERIFIER_assert(x1 + x2 + x4 + x6 + x7 >= 1); +} + +// LI computed is +// x2 + x3 + x4 + x7 = q && +// x1 + x2 + x4 + x5 + x6 = p && +// x1 >= 0 && +// x2 >= 0 && +// x3 >= 0 && +// x4 >= 0 && +// x5 >= 0 && +// x6 >= 0 && +// x7 >= 0 && +// x2 + x3 + x4 + x7 >= 1 && +// x1 + x2 + x4 + x6 + x7 >= 1 && +// x1 + x2 + x4 + x5 + x6 >= 1 + diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/MADWiFi-encode_ie_ok.c b/data/benchmarks/accelerating_invariant_generation/invgen/MADWiFi-encode_ie_ok.c new file mode 100644 index 000000000..cad24e7d3 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/MADWiFi-encode_ie_ok.c @@ -0,0 +1,50 @@ +#include "myassert.h" + +int main() +{ + /* buf is treated as an array of unsigned 8-byte ints */ + // u_int8_t *p; + int p; + int i; + int leader_len; + int bufsize; + int bufsize_0; + int ielen; + + tmpl("(le(p,i,leader_len,bufsize,bufsize_0,ielen),le(p,i,leader_len,bufsize,bufsize_0,ielen))"); + + // copy the contents of leader into buf + if(leader_len >0); else goto END; + if(bufsize >0); else goto END; + if(ielen >0); else goto END; + + if (bufsize < leader_len) + goto END; + + // p = buf; + p = 0; + // memcpy(p, leader, leader_len); + bufsize_0 = bufsize; + bufsize -= leader_len; + p += leader_len; + + /* This is the fix. */ + if (bufsize < 2*ielen) + goto END; + + // __VERIFIER_assert(p+ielen<=bufsize_0); + + for (i = 0; i < ielen && bufsize > 2; i++) { + __VERIFIER_assert(0<=p); + __VERIFIER_assert(p+1 0 ); else goto END; + + // str [BASE_SZ-1] = 0; + __VERIFIER_assert( 0 <= BASE_SZ-1 ); + + if (len == 0) + goto END; + + i = 0; + j = 0; + while (1) { + if ( len == 0 ){ + goto END; + } else { + __VERIFIER_assert( 0<= j ); __VERIFIER_assert(j < BASE_SZ); + __VERIFIER_assert( 0<= i ); __VERIFIER_assert(i < BASE_SZ ); + // buf[j] = str[i]; + if ( __BLAST_NONDET ) { + i++; + j++; + goto END; + } + } + i ++; + j ++; + len --; + } + + END: return 0; +} + diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/NetBSD_glob3_iny.c b/data/benchmarks/accelerating_invariant_generation/invgen/NetBSD_glob3_iny.c new file mode 100644 index 000000000..1a6c2bfe3 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/NetBSD_glob3_iny.c @@ -0,0 +1,122 @@ +#include "myassert.h" + +int __BLAST_NONDET; + +int main () +{ + /* + Char *buf; + Char *pattern; + Char *bound; + */ + int buf_off, pattern_off, bound_off; + + int MAXPATHLEN; + // int A [MAXPATHLEN+1]; + // int B [PATTERNLEN]; + + /* glob3's locals */ + // char d_name[MAXNAMLEN + 1]; + int error; + // char g3_buf[MAXPATHLEN]; + int pathbuf_off; + int pathend_off; + int pathlim_off; + + /* + buf = A; + pattern = B; + */ + if(MAXPATHLEN >0); else goto END; + + buf_off = 0; + pattern_off = 0; + + bound_off = MAXPATHLEN; + +/* glob3 ( + * buf, + * buf, + * bound, + * pattern); + +static int +glob3( + Char *pathbuf, + Char *pathend, + Char *pathlim, + Char *pattern) +*/ + pathbuf_off = 0; + pathend_off = 0; + pathlim_off = MAXPATHLEN; + + // A[pathend_off] = EOS; + + error = 0; + + /* LOOP */ + while (__BLAST_NONDET) { + int i; + + /* Initial DOT must be matched literally. */ + __VERIFIER_assert(0 <= pattern_off ); __VERIFIER_assert( pattern_off <= MAXPATHLEN); + //if (d_name[0] == DOT && B[pattern_off] != DOT) + if (__BLAST_NONDET) continue; + /* + * The resulting string contains EOS, so we can + * use the pathlim character, if it is the nul + */ + i = 0; + for (;;) + if (i > MAXPATHLEN) goto END; + else { + __VERIFIER_assert(0 <= i); __VERIFIER_assert( i <= MAXPATHLEN); + //A[i] = d_name[i]; + i++; + if (__BLAST_NONDET) goto END; + } + + /* + * Have we filled the buffer without seeing EOS? + */ + __VERIFIER_assert(0 <= pathlim_off ); __VERIFIER_assert( pathlim_off <= MAXPATHLEN); + + // if (i > MAXPATHLEN && B[pathlim_off] != EOS) + if (i > MAXPATHLEN){ + if ( __BLAST_NONDET ) { + /* + * Abort when requested by caller, otherwise + * reset pathend back to last SEP and continue + * with next dir entry. + */ + if ( __BLAST_NONDET ) { + error = 5; + goto END; + } + else { + /* OK */ + __VERIFIER_assert(0 <= i);__VERIFIER_assert(i <= MAXPATHLEN + 1); + //A[i] = EOS; + continue; + } + } + } + /* match() is scary, and recursive, which Satabs can't handle. + * Replacing it with a non-deterministic stub.... + * + * This is irrelevant to overflow detection anyhow, since this + * is *after* the overflow. */ + if (/*!match(pathend, pattern, restpattern)*/__BLAST_NONDET) { + /* OK */ + __VERIFIER_assert(i <= MAXPATHLEN + 1); + //A[i] = EOS; + continue; + } + END_LOOP1:; + } + + /* end glob3 */ + + END: return 0; +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/NetBSD_loop.c b/data/benchmarks/accelerating_invariant_generation/invgen/NetBSD_loop.c new file mode 100644 index 000000000..5dc0dfdc3 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/NetBSD_loop.c @@ -0,0 +1,52 @@ +#include "myassert.h" + +int __BLAST_NONDET; + + +int main () +{ + // int pathbuf[MAXPATHLEN+1]; + + int MAXPATHLEN; + int pathbuf_off; + + /* Char *bound = pathbuf + sizeof(pathbuf)/sizeof(*pathbuf) - 1; */ + int bound_off; + + /* glob2's local vars */ + /* Char *p; */ + int glob2_p_off; + int glob2_pathbuf_off; + int glob2_pathlim_off; + + if(MAXPATHLEN > 0); else goto END; + + pathbuf_off = 0; + bound_off = pathbuf_off + (MAXPATHLEN + 1) - 1; + + /* glob2 (pathbuf, bound); */ + + /* +int glob2 (Char *pathbuf, Char *pathlim) +{ +*/ + + glob2_pathbuf_off = pathbuf_off; + glob2_pathlim_off = bound_off; + + for (glob2_p_off = glob2_pathbuf_off; + glob2_p_off <= glob2_pathlim_off; + glob2_p_off++) { + /* OK */ + /* *p = 1; */ + __VERIFIER_assert(0 <= glob2_p_off ); __VERIFIER_assert(glob2_p_off < MAXPATHLEN + 1); + //pathbuf[glob2_p_off] = 1; + } + + /* + return 0; +} +*/ + + END: return 0; +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/NetBSD_loop_int.c b/data/benchmarks/accelerating_invariant_generation/invgen/NetBSD_loop_int.c new file mode 100644 index 000000000..ac1576a00 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/NetBSD_loop_int.c @@ -0,0 +1,63 @@ +#include "myassert.h" + + +int __BLAST_NONDET; +int MAXPATHLEN; + +int main () +{ + /* + Char *buf; + Char *pattern; + Char *bound; + */ + int buf_off; + int pattern_off; + int bound_off; + + // int A [MAXPATHLEN+1]; + // int B [PATTERNLEN]; + + /* glob3's local vars */ + int glob3_pathbuf_off; + int glob3_pathend_off; + int glob3_pathlim_off; + int glob3_pattern_off; + int glob3_dc; + + if(MAXPATHLEN > 0); else goto END; + + /* + buf = A; + pattern = B; + */ + buf_off = 0; + pattern_off = 0; + + /* bound = A + sizeof(A)/sizeof(*A) - 1; */ + bound_off = 0 + (MAXPATHLEN + 1) - 1; + + glob3_pathbuf_off = buf_off; + glob3_pathend_off = buf_off; + glob3_pathlim_off = bound_off; + glob3_pattern_off = pattern_off; + + glob3_dc = 0; + for (;;) + if (glob3_pathend_off + glob3_dc >= glob3_pathlim_off) break; + else { + // A[glob3_dc] = 1; + glob3_dc++; + /* OK */ + __VERIFIER_assert(0 <= glob3_dc);__VERIFIER_assert(glob3_dc < MAXPATHLEN + 1); + if (__BLAST_NONDET) goto END; + } + + /* + return 0; +} +*/ + + + END: return 0; +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/SpamAssassin-loop.c b/data/benchmarks/accelerating_invariant_generation/invgen/SpamAssassin-loop.c new file mode 100644 index 000000000..c7596af84 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/SpamAssassin-loop.c @@ -0,0 +1,57 @@ +#include "myassert.h" + +int __BLAST_NONDET; + +void main () +{ + int len; + int i; + int j; + // char buffer[BUFSZ]; + int bufsize; + int limit = bufsize - 4; + + tmpl("(le(len,i,bufsize,j,limit),le(len,i,bufsize,j,limit))"); + + for (i = 0; i < len; ) { + for (j = 0; i < len && j < limit; ){ + if (i + 1 < len){ + __VERIFIER_assert(i+10); else goto END; + if(tokenlen>0); else goto END; + if(scheme >= 0 );else goto END; + if (scheme == 0 + || (urilen-1 < scheme)) { + goto END; + } + + cp = scheme; + + __VERIFIER_assert(cp-1 < urilen); + __VERIFIER_assert(0 <= cp-1); + + if (__BLAST_NONDET) { + __VERIFIER_assert(cp < urilen); + __VERIFIER_assert(0 <= cp); + while ( cp != urilen-1) { + if(__BLAST_NONDET) break; + __VERIFIER_assert(cp < urilen); + __VERIFIER_assert(0 <= cp); + ++cp; + } + __VERIFIER_assert(cp < urilen); + __VERIFIER_assert( 0 <= cp ); + if (cp == urilen-1) goto END; + __VERIFIER_assert(cp+1 < urilen); + __VERIFIER_assert( 0 <= cp+1 ); + if (cp+1 == urilen-1) goto END; + ++cp; + + scheme = cp; + + if (__BLAST_NONDET) { + c = 0; + //token[0] = uri; + __VERIFIER_assert(cp < urilen); + __VERIFIER_assert(0<=cp); + while ( cp != urilen-1 + && c < tokenlen - 1) { + __VERIFIER_assert(cp < urilen); + __VERIFIER_assert(0<=cp); + if (__BLAST_NONDET) { + ++c; + /* OK */ + __VERIFIER_assert(c < tokenlen); + __VERIFIER_assert(0<=c); + //token[c] = uri + cp + 1; + __VERIFIER_assert(cp < urilen); //Interesting assert + __VERIFIER_assert(0<=cp); + //uri[cp] = EOS; + } + ++cp; + } + goto END; + } + } + + END:; +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/apache-get-tag.c b/data/benchmarks/accelerating_invariant_generation/invgen/apache-get-tag.c new file mode 100644 index 000000000..a6575b168 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/apache-get-tag.c @@ -0,0 +1,120 @@ +#include "myassert.h" +void main() +{ + int tagbuf_len; + int t; + int __BLAST_NONDET; + + tmpl("(le(tagbuf_len, t), le(tagbuf_len, t))"); + // tmpl("le(tagbuf_len, t)"); + + if(tagbuf_len >= 1); else goto END; + + t = 0; + + --tagbuf_len; + /* + do { + GET_CHAR(c, NULL); + } while (ap_isspace(c)); + */ + + /* + if (c == '-') { + GET_CHAR(c, NULL); + if (c == '-') { + do { + GET_CHAR(c, NULL); + } while (ap_isspace(c)); + if (c == '>') { + ap_cpystrn(tag, "done", tagbuf_len); + return tag; + } + } + return NULL; + } + */ + + while (1) { + if (t == tagbuf_len) { + __VERIFIER_assert(0 <= t); + __VERIFIER_assert(t <= tagbuf_len); + // tag[t] = EOS; + goto END; + } + if (__BLAST_NONDET) { + break; + } + __VERIFIER_assert(0 <= t); + __VERIFIER_assert(t <= tagbuf_len); + // tag[t] = ap_tolower(c); + t++; + // GET_CHAR(c, NULL); + } + + __VERIFIER_assert(0 <= t); + __VERIFIER_assert(t <= tagbuf_len); + // tag[t] = EOS; + t++; + // tag_val = tag + t; + /* + while (ap_isspace(c)) { + GET_CHAR(c, NULL); + } + if (c != '=') { + return NULL; + } + + do { + GET_CHAR(c, NULL); + } while (ap_isspace(c)); + + if (c != '"' && c != '\'') { + return NULL; + } + term = c; + */ + while (1) { + // GET_CHAR(c, NULL); + if (t == tagbuf_len) { /* Suppose t == tagbuf_len - 1 */ + __VERIFIER_assert(0 <= t); + __VERIFIER_assert(t <= tagbuf_len); + // tag[t] = EOS; + goto END; + } + + if (__BLAST_NONDET) { + // GET_CHAR(c, NULL); + if ( __BLAST_NONDET) { + /* OK */ + __VERIFIER_assert(0 <= t); + __VERIFIER_assert(t <= tagbuf_len); // interesting assert, t2. + // tag[t] = '\\'; + t++; + if (t == tagbuf_len) { + /* OK */ + __VERIFIER_assert(0 <= t); + __VERIFIER_assert(t <= tagbuf_len); + // tag[t] = EOS; + goto END; + } + } + } + else if ( __BLAST_NONDET) { + break; + } + + /* OK */ + __VERIFIER_assert(0 <= t); + __VERIFIER_assert(t <= tagbuf_len); + // tag[t] = c; + t++; /* Now t == tagbuf_len + 1 + * So the bounds check (t == tagbuf_len) will fail */ + } + /* OK */ + __VERIFIER_assert(0 <= t); + __VERIFIER_assert(t <= tagbuf_len); + // tag[t] = EOS; + + END:; +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/bind_expands_vars2.c b/data/benchmarks/accelerating_invariant_generation/invgen/bind_expands_vars2.c new file mode 100644 index 000000000..d355e2fa1 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/bind_expands_vars2.c @@ -0,0 +1,24 @@ +#include "myassert.h" + +int main() { + + int cp1_off, n1, n2, mc_i; + int MAXDATA; + if (MAXDATA > 0 ); else goto END; + + if ((n1 <= MAXDATA * 2)); else goto END; + + if ((cp1_off <= n1)); else goto END; + + if ((n2 <= MAXDATA*2 - n1)); else goto END; + + for (mc_i = 0; mc_i < n2; mc_i++) { + /* OK */ + __VERIFIER_assert(cp1_off+mc_i < MAXDATA * 2); + // data[cp1_off+mc_i] = msg[cp_off+mc_i]; + } + + /* end of rrextract */ + + END: return 0; +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/bound.c b/data/benchmarks/accelerating_invariant_generation/invgen/bound.c new file mode 100644 index 000000000..a77dbdc16 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/bound.c @@ -0,0 +1,39 @@ +#include "myassert.h" + +void main() { + int n,h; + int i,j,k,m; + + bound_var(h); + bounding_var(n); + assume(n >=0 ); + assume(n <=200); + k=0; + i=n; + h = i+k; + while( i > 0 ){ + i--; + k++; + h = i+k; + } + + j = k; + m = 0; + h = j+m; + while( j > 0 ) { + j--; + m++; + h = j+m; + } + __VERIFIER_assert(i >= 0 ); +} +/* +bound_vars(vars(n)). + +bound_exp(pc(main-1-11), i+k). +bound_exp(pc(main-10-18),j+m). + +bound_var(data(V1, V5, V2, V4, V3),V4). +bounding_vars(data(V1, V5, V2, V4, V3),[V1]). + +*/ diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/down.c b/data/benchmarks/accelerating_invariant_generation/invgen/down.c new file mode 100644 index 000000000..6729bc7be --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/down.c @@ -0,0 +1,18 @@ +#include "myassert.h" + +void main() { + int n; + int k = 0; + int i = 0; + tmpl("(le(i,j,k,n),le(i,j,k,n))"); + while( i < n ) { + i++; + k++; + } + int j = n; + while( j > 0 ) { + __VERIFIER_assert(k > 0); + j--; + k--; + } +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/fragtest_simple.c b/data/benchmarks/accelerating_invariant_generation/invgen/fragtest_simple.c new file mode 100644 index 000000000..f5cd47156 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/fragtest_simple.c @@ -0,0 +1,47 @@ +#include "myassert.h" + +int __BLAST_NONDET; + +void main(){ + int i,pvlen ; + int tmp___1 ; + int k = 0; + int n; + + i = 0; + + // pkt = pktq->tqh_first; + while ( __BLAST_NONDET ) + i = i + 1; + if (i > pvlen) { + pvlen = i; + } else { + + } + i = 0; + + while ( __BLAST_NONDET ) { + tmp___1 = i; + i = i + 1; + k = k +1; + } + while ( __BLAST_NONDET ); + + int j = 0; + n = i; + // rand_shuffle(r, (void *)pvbase, (unsigned int )i, sizeof(pkt)); + while (1) { + + __VERIFIER_assert(k >= 0); + k = k -1; + i = i - 1; + j = j + 1; + if (j < n) { + + } else { + break; + } + } + return; + +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/gulwani_cegar1.c b/data/benchmarks/accelerating_invariant_generation/invgen/gulwani_cegar1.c new file mode 100644 index 000000000..47e3837cd --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/gulwani_cegar1.c @@ -0,0 +1,17 @@ +#include "myassert.h" + +int __BLAST_NONDET; +void main() { + int x,y; + + assume(0 <= x); assume(x <= 2); + assume(0 <= y); assume(y <= 2); + while( __BLAST_NONDET ) { + x+=2; + y+=2; + } + if( y >= 0 ) + if( y <= 0 ) + if( 4 <= x ) + __VERIFIER_assert( x < 4 ); +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/gulwani_cegar2.c b/data/benchmarks/accelerating_invariant_generation/invgen/gulwani_cegar2.c new file mode 100644 index 000000000..05b9fdf5f --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/gulwani_cegar2.c @@ -0,0 +1,19 @@ +#include "myassert.h" + +int __BLAST_NONDET; +void main() { + int x,m,n; + + x = 0; + m = 0; + while( x < n ) { + if(__BLAST_NONDET) + m = x; + x++; + } + if( n > 0 ) + { + __VERIFIER_assert( 0<=m); + __VERIFIER_assert(m +#include "myassert.h" + +int main(int argc, int *argv[]) { + int n,i,k; + + assume(n>=0); + k = n; + i = 0; + while( i < n ) { + tmpl("(le(i,j,k,n),le(i,j,k,n))"); + k--; + i = i + 2; + } + + int j = 0; + + while( j < n/2 ) { + tmpl("(le(i,j,k,n),le(i,j,k,n))"); + __VERIFIER_assert(k > 0); + k--; + j++; + } + return 0; +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/heapsort.c b/data/benchmarks/accelerating_invariant_generation/invgen/heapsort.c new file mode 100644 index 000000000..cbb5c2ad2 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/heapsort.c @@ -0,0 +1,48 @@ +#include "myassert.h" +int __BLAST_NONDET; + +int main( int argc, char *argv[]){ + int n,l,r,i,j; + + tmpl("(le(n,l,r,i,j),le(n,l,r,i,j))"); + + assume(1 <= n); + l = n/2 + 1; + r = n; + if(l>1) { + l--; + } else { + r--; + } + while(r > 1) { + i = l; + j = 2*l; + while(j <= r) { + if( j < r) { + __VERIFIER_assert(1 <= j);__VERIFIER_assert(j <= n); + __VERIFIER_assert(1 <= j+1);__VERIFIER_assert(j+1 <= n); + if( __BLAST_NONDET ) + j = j + 1; + } + __VERIFIER_assert(1 <= j);__VERIFIER_assert(j <= n); + if( __BLAST_NONDET ) { + break; + } + __VERIFIER_assert(1 <= i); + __VERIFIER_assert(i <= n); + __VERIFIER_assert(1 <= j); + __VERIFIER_assert(j <= n); + i = j; + j = 2*j; + } + if(l > 1) { + __VERIFIER_assert(1 <= l);__VERIFIER_assert(l <= n); + l--; + } else { + __VERIFIER_assert(1 <= r);__VERIFIER_assert(r <= n); + r--; + } + } + return 0; +} + diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/heapsort1.c b/data/benchmarks/accelerating_invariant_generation/invgen/heapsort1.c new file mode 100644 index 000000000..faa7a716f --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/heapsort1.c @@ -0,0 +1,42 @@ +#include "myassert.h" + +int NONDET; + +int main( int argc, char *argv[]){ + int n,l,r,i,j; + + //tmpl("(le(n,l,r,i,j),le(n,l,r,i,j),le(n,l,r,i,j))"); + tmpl("(le(n,l,r,i,j),le(n,l,r,i,j))"); + + assume(1 <= n); + l = n/2 + 1; + r = n; + if(l>1) { + l--; + } else { + r--; + } + while(r > 1) { + i = l; + j = 2*l; + while(j <= r) { + if( j < r) { + if( NONDET ) + j = j + 1; + } + if( NONDET ) { + break; + } + i = j; + j = 2*j; + } + if(l > 1) { + l--; + } else { + __VERIFIER_assert(r <= n); + r--; + } + } + return 0; +} + diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/heapsort2.c b/data/benchmarks/accelerating_invariant_generation/invgen/heapsort2.c new file mode 100644 index 000000000..120ce3156 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/heapsort2.c @@ -0,0 +1,42 @@ +#include "myassert.h" + +int NONDET; + +int main( int argc, char *argv[]){ + int n,l,r,i,j; + + //tmpl("(le(n,l,r,i,j),le(n,l,r,i,j),le(n,l,r,i,j))"); + tmpl("(le(n,l,r,i,j),le(n,l,r,i,j))"); + + assume(1 <= n); + l = n/2 + 1; + r = n; + if(l>1) { + l--; + } else { + r--; + } + while(r > 1) { + i = l; + j = 2*l; + while(j <= r) { + if( j < r) { + if( NONDET ) + j = j + 1; + } + if( NONDET ) { + break; + } + i = j; + j = 2*j; + } + if(l > 1) { + __VERIFIER_assert(l <= n); + l--; + } else { + r--; + } + } + return 0; +} + diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/heapsort3.c b/data/benchmarks/accelerating_invariant_generation/invgen/heapsort3.c new file mode 100644 index 000000000..ae79be439 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/heapsort3.c @@ -0,0 +1,52 @@ +#include "myassert.h" + +int NONDET; + +int main( int argc, char *argv[]){ + int n,l,r,i,j; + + //tmpl("(le(n,l,r,i,j),le(n,l,r,i,j),le(n,l,r,i,j))"); + tmpl("(le(n,l,r,i,j),le(n,l,r,i,j))"); + + assume(1 <= n); + l = n/2 + 1; + r = n; + if(l>1) { + l--; + } else { + r--; + } + while(r > 1) { + i = l; + j = 2*l; + while(j <= r) { + if( j < r) { + __VERIFIER_assert(1 <= j); + assume(j <= n); + assume(1 <= j+1);assume(j+1 <= n); + if( NONDET ) + j = j + 1; + } + assume(1 <= j);assume(j <= n); + /* if( NONDET ) { + break; + } + */ + assume(1 <= i); + assume(i <= n); + assume(1 <= j); + assume(j <= n); + i = j; + j = 2*j; + } + if(l > 1) { + assume(1 <= l);assume(l <= n); + l--; + } else { + assume(1 <= r);assume(r <= n); + r--; + } + } + return 0; +} + diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/id_build.c b/data/benchmarks/accelerating_invariant_generation/invgen/id_build.c new file mode 100644 index 000000000..146368d9b --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/id_build.c @@ -0,0 +1,36 @@ +#include "myassert.h" + +// from FreePastry source, file Id.java + /** + * Constructor, which takes the output of a toStringFull() and converts it back + * into an Id. Should not normally be used. + * + * @param hex The hexadeciaml representation from the toStringFull() + */ +/* + public static Id build(char[] chars, int offset, int length) { + int[] array = new int[nlen]; + + for (int i=0; i int[] + * + * @param material The input byte[] + * @return THe int[] + */ +/* + protected static int[] trans(byte[] material) { + int[] array = new int[nlen]; + + for (int j = 0; (j < IdBitLength / 8) && (j < material.length); j++) { + int k = material[j] & 0xff; + array[j / 4] |= k << ((j % 4) * 8); + } + + return array; + } +*/ +void main() { + // int[] array = new int[nlen]; + int idBitLength, material_length, nlen; + int j, k; + + tmpl("(le(j,nlen,idBitLength, material_length),le(j,nlen,idBitLength, material_length))"); + + assume( nlen == idBitLength / 32 ); + + for (j = 0; (j < idBitLength / 8) && (j < material_length); j++) { + __VERIFIER_assert( 0 <= j); + __VERIFIER_assert( j < material_length ); + __VERIFIER_assert( 0 <= j/4 ); + __VERIFIER_assert( j/4 < nlen); + + } + + return; +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/ken-imp.c b/data/benchmarks/accelerating_invariant_generation/invgen/ken-imp.c new file mode 100644 index 000000000..2280b1fcd --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/ken-imp.c @@ -0,0 +1,14 @@ +#include "myassert.h" + +void main() { + int i; + int j; + int x = i; + int y = j; + while(x!=0) { + x--; + y--; + } + if(i==j) + if(y != 0) __VERIFIER_assert(0); +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/mergesort.c b/data/benchmarks/accelerating_invariant_generation/invgen/mergesort.c new file mode 100644 index 000000000..a51b98f1d --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/mergesort.c @@ -0,0 +1,86 @@ + #include "myassert.h" + +int __BLAST_NONDET; + +// This is an iterative version of merge sort. +// It merges pairs of two consecutive lists one after another. +// After scanning the whole array to do the above job, +// it goes to the next stage. Variable k controls the size +// of lists to be merged. k doubles each time the main loop +// is executed. +#include +#include +int i,n,t,k; +int l,r,u,j; +int x,y,z; +//int a[100000],b[100000]; + +main() +{ + x=1; + while (xn) y=n+1; + // merge(z,z+x,y); + l = z; r = z+x; u = y; + i=l; j=r; k=l; + while (i0); + + for (k=1;k0); + + for (k=1;k0); + + for (k=1;k0); + for (k=1;k0); + + for (k=1;k0); + + for (k=1;k=j); + __VERIFIER_assert(j>=i); + // __VERIFIER_assert(i>=0); + } +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/nest-if8.c b/data/benchmarks/accelerating_invariant_generation/invgen/nest-if8.c new file mode 100644 index 000000000..7c86210e0 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/nest-if8.c @@ -0,0 +1,29 @@ + #include "myassert.h" + +int __BLAST_NONDET; + +void main() { + int i,j,k,n,m; + if( m+1 < n ); else goto END; + for ( i=0; i= 0 ); + j++; + k = 0; + while( k < j ) { + __VERIFIER_assert( k < n ); + k++; + } + + } + else { + __VERIFIER_assert( n+j+5>i ); + j+= 2; + } + } + + + } + END:; +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/nest-len.c b/data/benchmarks/accelerating_invariant_generation/invgen/nest-len.c new file mode 100644 index 000000000..d641ab571 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/nest-len.c @@ -0,0 +1,22 @@ + #include "myassert.h" + + +void main() { + int i,k,n,l; + + tmpl("(le(n,i,k))"); + + //assume(l>0); + + for (k=1;k0); + + for (k=1;k0); + + for (k=1;k0); + + for (k=1;k0); + + for (k=1;k=i); +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/nested6.c b/data/benchmarks/accelerating_invariant_generation/invgen/nested6.c new file mode 100644 index 000000000..f88035aa6 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/nested6.c @@ -0,0 +1,24 @@ +#include "myassert.h" + +int __BLAST_NONDET; + +void main() { + int i,j,k,n; + + if( k == n); else goto END; + + for (i=0;i=2*i); + } + } + else { + __VERIFIER_assert( k >= n ); + __VERIFIER_assert( k <= n ); + } + } + } + END:; +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/nested7.c b/data/benchmarks/accelerating_invariant_generation/invgen/nested7.c new file mode 100644 index 000000000..e6d21cd9c --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/nested7.c @@ -0,0 +1,28 @@ + #include "myassert.h" + +int __BLAST_NONDET; + +void main() { + int i,j,k,l,n,m; + + if(j<=n+k); else goto END; + for (i=0;i 5 ) { + for(l=0;l n ) { + for(l=0;l +#include "myassert.h" + +int main(){ + //int x1 = 1,x2 = -1 ,x3 = -2,x4 = 3,x5 = 2; + int x1,x2 ,x3,x4,x5; + + if (x1+x2+x3+x4+x5 >0); else goto END; + +Loop: + + if( x1 < 0 ) { x1 = -x1; x5 = x5-x1; x2 = x2-x1; } + else if( x2 < 0 ) { x2 = -x2; x1 = x1-x2; x3 = x3-x2; } + else if( x3 < 0 ) { x3 = -x3; x2 = x2-x3; x4 = x4-x3; } + else if( x4 < 0 ) { x4 = -x4; x3 = x3-x4; x5 = x5-x4; } + else if( x5 < 0 ) { x5 = -x5; x4 = x4-x5; x1 = x1-x5; } + else goto END; + + //printf("%d %d %d %d %d \n", x1, x2, x3, x4, x5);getchar(); + + goto Loop; + +END: + return 1; +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/rajamani_1.c b/data/benchmarks/accelerating_invariant_generation/invgen/rajamani_1.c new file mode 100644 index 000000000..0e316f6e5 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/rajamani_1.c @@ -0,0 +1,24 @@ +#include "myassert.h" +int __BLAST_NONDET; + +int main(){ + int x=0; + int y=0; + int z=0; + int w=0; + + while ( __BLAST_NONDET ){ + if ( __BLAST_NONDET ) { + x++; y = y+100; + } else if ( __BLAST_NONDET ) { + if( x >= 4) + { x=x+1; y=y+1;} + } else if ( y >10*w) + if (z>=100*x ) + y = -y; + w=w+1; + z=z+10; + } + if ( x >=4 ) + __VERIFIER_assert(y>2); +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/sendmail-close-angle.c b/data/benchmarks/accelerating_invariant_generation/invgen/sendmail-close-angle.c new file mode 100644 index 000000000..6025e7c1b --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/sendmail-close-angle.c @@ -0,0 +1,67 @@ +/* + * Variant: This one just blindly copies the input into buffer and writes '>''\0' at the end. + */ + +#include "myassert.h" + + +int main (void) +{ + // char buffer[BASE_SZ+1]; + // char input[BASE_SZ+70]; + // char *buf; + // char *buflim; + // char *in; + // char cur; + int __BLAST_NONDET; + int in; + int inlen; + int bufferlen; + int buf; + int buflim; + + //tmpl("(le(in,inlen,buf,bufferlen,buflim),le(in,inlen,buf,bufferlen,buflim),le(in,inlen,buf,bufferlen,buflim))"); + tmpl("(le(in,inlen,buf,bufferlen,buflim),le(in,inlen,buf,bufferlen,buflim))"); + + if(bufferlen >1);else goto END; + if(inlen > 0);else goto END; + if(bufferlen < inlen);else goto END; +// shouldn't be necessary unless checking for safety of *in +// input[BASE_SZ+70-1] = EOS; +// in = input; +// buf = buffer; + buf = 0; + in = 0; + buflim = bufferlen - 2; + // reserved enough space for both '>' and '\0'! + // __VERIFIER_assert(0<=in); + // __VERIFIER_assert(in 0); else goto RETURN; + + // while ((c1 = nondet_char ()) != EOS) + while(__BLAST_NONDET) + { + // if (c1 == '=') + if(__BLAST_NONDET) + { + // malformed: early EOS + // if ((c1 = nondet_char ()) == EOS) + if(__BLAST_NONDET) + // in Zitser, these breaks actually return to the caller where the + // pointer into outfile is reset before this is called again + goto AFTERLOOP; + + // =\n: continuation; signal to caller it's ok to pass in more infile + // OK: reset out before taking more input + //if (c1 == '\n') + if(__BLAST_NONDET) + { + out = 0; + nchar = 0; + goto LOOPEND; + } + else + { + // convert, e.g., "=5c" to int + + // malformed: early EOF + //if ((c2 = nondet_char ()) == EOS) + if(__BLAST_NONDET) goto AFTERLOOP; + + nchar++; + if (nchar >= outfilelen) + goto AFTERLOOP; + + /* OK */ + __VERIFIER_assert(0<=out);//1 + __VERIFIER_assert(out= outfilelen) + goto AFTERLOOP; + + /* OK */ + __VERIFIER_assert(0<=out);//3 + __VERIFIER_assert(out0);else goto END; + fb = 0; + while (__BLAST_NONDET) + { + //c2 = nondet_int (); + if (__BLAST_NONDET) + break; + + //c3 = nondet_int (); + if (__BLAST_NONDET) + break; + + /* OK */ + __VERIFIER_assert(0<=fb); + __VERIFIER_assert(fb= fbuflen-1) + fb = 0; + + /* OK */ + __VERIFIER_assert(0<=fb); + __VERIFIER_assert(fb= fbuflen-1) + fb = 0; + + /* OK */ + __VERIFIER_assert(0<=fb); + __VERIFIER_assert(fb= fbuflen-1) + fb = 0; + } + + /* force out partial last line */ + if (fb > 0) + { + /* OK */ + __VERIFIER_assert(0<=fb); + __VERIFIER_assert(fb 0); + i++; + k--; + } + return 0; +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/seq-proc.c b/data/benchmarks/accelerating_invariant_generation/invgen/seq-proc.c new file mode 100644 index 000000000..df4f4f781 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/seq-proc.c @@ -0,0 +1,33 @@ +#include "myassert.h" + +int main(int argc, char *argv[]) { + int n0, n1; + + int i0 = 0; + int k = 0; + while( i0 < n0 ) { + i0++; + k++; + } + int i1 = 0; + while( i1 < n1 ) { + i0--; + i1++; + k++; + } + int j1 = 0; + while( j1 < n1 ) { + if(k <= 0) __VERIFIER_assert(0); + j1++;//i0++;i1++; + k--; + } + int j0 = 0; + while( j0 < n0 ) { + if(k <= 0) __VERIFIER_assert(0); + j0++;//j1++;i0++;i1++; + k--; + } + + // __VERIFIER_assert( n0 + n1 <= i0 ); + return 0; +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/seq-sim.c b/data/benchmarks/accelerating_invariant_generation/invgen/seq-sim.c new file mode 100644 index 000000000..c5660e07f --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/seq-sim.c @@ -0,0 +1,30 @@ + +#include "myassert.h" + +void main() { + int n, m; + int i = 0; + int k = 0; + + while( i < n ) { + i++; + k++; + } + i = 0; + while( i < m ) { + i++; + k++; + } + i = 0; + while( i < m ) { + i++; + k--; + } + i = 0; + while( i < n ) { + __VERIFIER_assert(k > 0); + i++; + k--; + } + return 0; +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/seq-z3.c b/data/benchmarks/accelerating_invariant_generation/invgen/seq-z3.c new file mode 100644 index 000000000..822e6c159 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/seq-z3.c @@ -0,0 +1,30 @@ + +#include "myassert.h" + +void main() { + int n0, n1; + int i = 0; + int k = 0; + + while( i < 20*n0 ) { + i++; + k++; + } + i = 0; + while( i < 6*n1+128 ) { + i++; + k++; + } + i = 0; + while( i < 6*n1+128 ) { + i++; + k--; + } + i = 0; + while( i < 20*n0 ) { + __VERIFIER_assert(k > 0); + i++; + k--; + } + return 0; +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/seq.c b/data/benchmarks/accelerating_invariant_generation/invgen/seq.c new file mode 100644 index 000000000..671513695 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/seq.c @@ -0,0 +1,26 @@ +#include "myassert.h" + +void main() { + int n0, n1; + int i0 = 0; + int k = 0; + + while( i0 < n0 ) { + tmpl("(le(n0,n1,i0,i1,j1,k),le(n0,n1,i0,i1,j1,k))"); + i0++; + k++; + } + int i1 = 0; + while( i1 < n1 ) { + tmpl("(le(n0,n1,i0,i1,j1,k),le(n0,n1,i0,i1,j1,k))"); + i1++; + k++; + } + int j1 = 0; + while( j1 < n0 + n1 ) { + tmpl("(le(n0,n1,i0,i1,j1,k),le(n0,n1,i0,i1,j1,k))"); + if(k <= 0) __VERIFIER_assert(0); + j1++; + k--; + } +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/seq2.c b/data/benchmarks/accelerating_invariant_generation/invgen/seq2.c new file mode 100644 index 000000000..d6adfc7b8 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/seq2.c @@ -0,0 +1,38 @@ +#include "myassert.h" + +int nondet_int(); + +int n0, n1; + +int main(){ + + n0 = nondet_int(); + n1 = nondet_int(); + + int i0 = 0; + int k = 0; + + tmpl("2"); + while( i0 < n0 ) { + i0++; + k++; + } + int i1 = 0; + while( i1 < n1 ) { + i1++; + k++; + } + int j1 = 0; + while( j1 < n1 ) { + if(k <= 0) __VERIFIER_assert(0); + j1++; + k--; + } + int j0 = 0; + while( j0 < n0 ) { + if(k <= 0) __VERIFIER_assert(0); + j0++; + k--; + } + return 0; +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/seq3.c b/data/benchmarks/accelerating_invariant_generation/invgen/seq3.c new file mode 100644 index 000000000..0d9afabaf --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/seq3.c @@ -0,0 +1,31 @@ + +#include "myassert.h" + +void main() { + int n0, n1; + int i0 = 0; + int k = 0; + + tmpl("(le(n0,n1,i0,i1,j0,j1,k),le(n0,n1,i0,i1,j0,j1,k))"); + while( i0 < n0 ) { + i0++; + k++; + } + int i1 = 0; + while( i1 < n1 ) { + i1++; + k++; + } + int j1 = 0; + while( j1 < n1 ) { + j1++; + k--; + } + int j0 = 0; + while( j0 < n0 ) { + __VERIFIER_assert(k > 0); + j0++; + k--; + } + return 0; +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/simple.c b/data/benchmarks/accelerating_invariant_generation/invgen/simple.c new file mode 100644 index 000000000..99fd81b42 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/simple.c @@ -0,0 +1,12 @@ +#include "myassert.h" + +void main() { + int x=0; + int n; + + assume(n > 0 ); + while( x < n ){ + x++; + } + __VERIFIER_assert( x<=n ); +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/simple_if.c b/data/benchmarks/accelerating_invariant_generation/invgen/simple_if.c new file mode 100644 index 000000000..ee2738bf9 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/simple_if.c @@ -0,0 +1,18 @@ +#include "myassert.h" + +void main() { + int n,m; + int i = 1; + tmpl("(le(i,j,k,n),le(i,j,k,n))"); + // tmpl("(le(i,j,k,n),le(i,j,k,n),le(i,j,k,n))"); + + while( i < n ) { + if( m > 0 ) { + i = 2*i; + } else { + i = 3*i; + } + + } + __VERIFIER_assert(i > 0 ); +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/simple_nest.c b/data/benchmarks/accelerating_invariant_generation/invgen/simple_nest.c new file mode 100644 index 000000000..59b535fc0 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/simple_nest.c @@ -0,0 +1,16 @@ +#include "myassert.h" + +void main() { + int n,m; + int i = 1; + // tmpl("(le(i,j,k,n),le(i,j,k,n))"); + // tmpl("(le(i,j,k,n),le(i,j,k,n),le(i,j,k,n))"); + m = 10; + while( i < n ) { + while( m > 0 ) { + m--; + i = 2*i; + } + } + __VERIFIER_assert(i > 0 ); +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/sort_instrumented.c b/data/benchmarks/accelerating_invariant_generation/invgen/sort_instrumented.c new file mode 100644 index 000000000..f5cde8e81 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/sort_instrumented.c @@ -0,0 +1,45 @@ +#include "myassert.h" + + + +int __BLAST_NONDET; + +int heap_size, k_buffer, k_c; +/* +bound_var(data(V1, V6, V4, V5, V2, V3),V2). +bounding_vars(data(V1, V6, V4, V5, V2, V3),[V1]). +*/ + +int n; +int nondet_int(); + +void main() { + n = nondet_int(); + int k; + //n = 30; + bound_var(heap_size); + bounding_var(n); + + assume( n > 0); + heap_size = 0; + while ( __BLAST_NONDET ) { + + k_buffer = 0; + for (k=0;k 0); + k_c--; + heap_size--; + } + assume( k_c == 0); + } +} + +//void main() { +// sort(30); +//} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/spin.c b/data/benchmarks/accelerating_invariant_generation/invgen/spin.c new file mode 100644 index 000000000..38cd85948 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/spin.c @@ -0,0 +1,13 @@ +#include "myassert.h" + +int m,y; + +void main() { + int x; + acquire(m); // assume(m=0 /\ m'=1); + x = 0; + y = 0; + x = 1; + __VERIFIER_assert(x>=1); + release(m); // assume(m'=0); +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/spin1.c b/data/benchmarks/accelerating_invariant_generation/invgen/spin1.c new file mode 100644 index 000000000..167395d92 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/spin1.c @@ -0,0 +1,14 @@ +#include "myassert.h" + +int m,k; + +void main() { + int x,j; + acquire(m); // assume(m=0 /\ m'=1); + x = 0; + j = 0; + k = 1; + x = 1; + __VERIFIER_assert(x>=j); + release(m); // assume(m'=0); +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/split.c b/data/benchmarks/accelerating_invariant_generation/invgen/split.c new file mode 100644 index 000000000..7358a89f4 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/split.c @@ -0,0 +1,20 @@ +#include "myassert.h" + +void main() { + int k = 100; + int b; + int i; + int j; + int n; + i = j; + for( n = 0 ; n < 2*k ; n++ ) { + tmpl("(le(k,b,i,j,n),le(k,b,i,j,n))"); + if(b) { + i++; + } else { + j++; + } + b = !b; + } + __VERIFIER_assert(i == j); +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/string_concat-noarr.c b/data/benchmarks/accelerating_invariant_generation/invgen/string_concat-noarr.c new file mode 100644 index 000000000..98bfa008b --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/string_concat-noarr.c @@ -0,0 +1,26 @@ +#include "myassert.h" + +int NONDET; + +int main() { + int i, j; + tmpl("(le(i,j),le(i,j))"); + L0: + i = 0; + L1: + while( NONDET ){ + tmpl("(le(i,j),le(i,j))"); + i++; + } + if(i >= 100) STUCK: goto STUCK; // assume( i < 100 ); + j = 0; + L2: + while( NONDET ){ + tmpl("(le(i,j),le(i,j))"); + i++; + j++; + } + if(j >= 100) goto STUCK; // assume( j < 100 ); + __VERIFIER_assert( i < 200 ); /* prove we don't overflow z */ + return 0; +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/svd-some-loop.c b/data/benchmarks/accelerating_invariant_generation/invgen/svd-some-loop.c new file mode 100644 index 000000000..1ad595617 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/svd-some-loop.c @@ -0,0 +1,54 @@ +#include "myassert.h" + + +int NONDET; + +void main(){ +int n,m,l,i,j,k; + +//ssume(n >= 1); +for (i=n;i>=1;i--) { // Accumulation of right-hand transformations. + l = i+1; + if (i < n) { + if ( NONDET ) { + for (j=l;j<=n;j++) { // Double division to avoid possible underflow. + + __VERIFIER_assert(1<=j);__VERIFIER_assert(j<=n); + __VERIFIER_assert(1<=i);__VERIFIER_assert(i<=n); + // __VERIFIER_assert(1<=i);__VERIFIER_assert(i<=m); // TODO feasible counterexample found, hm + //__VERIFIER_assert(1<=l);__VERIFIER_assert(l<=n); + // v[j][i]=(a[i][j]/a[i][l])/g; + } + for (j=l;j<=n;j++) { + // s = 0.0; + for (k=l;k<=n;k++) { + + //__VERIFIER_assert(1<=i);__VERIFIER_assert(i<=m); // TODO feasible counterexample found, hm + __VERIFIER_assert(1<=k);__VERIFIER_assert(k<=n); + __VERIFIER_assert(1<=j);__VERIFIER_assert(j<=n); + // s += a[i][k]*v[k][j]; + } + for (k=l;k<=n;k++) { + __VERIFIER_assert(1<=k);__VERIFIER_assert(k<=n); + __VERIFIER_assert(1<=j);__VERIFIER_assert(j<=n); + __VERIFIER_assert(1<=i);__VERIFIER_assert(i<=n); + // v[k][j] += s*v[k][i]; + } + } + } + for (j=l;j<=n;j++) { + + __VERIFIER_assert(1<=j);__VERIFIER_assert(j<=n); + __VERIFIER_assert(1<=i);__VERIFIER_assert(i<=n); + //v[i][j]=v[j][i]=0.0; + } + } + + __VERIFIER_assert(1<=i);__VERIFIER_assert(i<=n); + // v[i][i]=1.0; + __VERIFIER_assert(1<=i);__VERIFIER_assert(i<=n); + // g=rv1[i]; + l=i; + } + +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/svd1.c b/data/benchmarks/accelerating_invariant_generation/invgen/svd1.c new file mode 100644 index 000000000..67e8f33a8 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/svd1.c @@ -0,0 +1,54 @@ +#include "myassert.h" + +#include +//#include "nrutil.h" + +int NONDET; + +int n; +int nondet_int(); + +void main() +{ + n = nondet_int(); + + int i,j,k,l; + + tmpl("(le(n,l,i,j,k),le(n,l,i,j,k))"); + + assume(l>0); + + for (i=n;i>=1;i--) { // Accumulation of right-hand transformations. + if (i < n) { + if ( NONDET ) { + for (j=l;j<=n;j++) { // Double division to avoid possible underflow. + __VERIFIER_assert(1<=j);__VERIFIER_assert(j<=n); + __VERIFIER_assert(1<=i);__VERIFIER_assert(i<=n); + //__VERIFIER_assert(1<=i);__VERIFIER_assert(i<=m); // TODO feasible counterexample found + __VERIFIER_assert(1<=l);__VERIFIER_assert(l<=n); + } + for (j=l;j<=n;j++) { + for (k=l;k<=n;k++) { + //__VERIFIER_assert(1<=i);__VERIFIER_assert(i<=m); // TODO feasible counterexample found + __VERIFIER_assert(1<=k);__VERIFIER_assert(k<=n); + __VERIFIER_assert(1<=j);__VERIFIER_assert(j<=n); + } + for (k=l;k<=n;k++) { + __VERIFIER_assert(1<=k);__VERIFIER_assert(k<=n); + __VERIFIER_assert(1<=j);__VERIFIER_assert(j<=n); + __VERIFIER_assert(1<=i);__VERIFIER_assert(i<=n); + } + } + } + for (j=l;j<=n;j++) { + __VERIFIER_assert(1<=j);__VERIFIER_assert(j<=n); + __VERIFIER_assert(1<=i);__VERIFIER_assert(i<=n); + } + } + + __VERIFIER_assert(1<=i); + __VERIFIER_assert(i<=n); + __VERIFIER_assert(1<=i);__VERIFIER_assert(i<=n); + l=i; + } +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/svd2.c b/data/benchmarks/accelerating_invariant_generation/invgen/svd2.c new file mode 100644 index 000000000..2b780aaf4 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/svd2.c @@ -0,0 +1,56 @@ +#include "myassert.h" + +#include +//#include "nrutil.h" + +int NONDET; + +int n; +int nondet_int(); + +void main() +{ + n = nondet_int(); + int i,j,k,l; + + tmpl("(le(n,l,i,j,k),le(n,l,i,j,k))"); + + assume(l>0); + + for (i=n;i>=1;i--) { // Accumulation of right-hand transformations. + if (i < n) { + if ( NONDET ) { + for (j=l;j<=n;j++) { // Double division to avoid possible underflow. + //__VERIFIER_assert(1<=j);//__VERIFIER_assert(j<=n); + // __VERIFIER_assert(1<=i);__VERIFIER_assert(i<=n); + // __VERIFIER_assert(1<=i);__VERIFIER_assert(i<=m); // TODO feasible counterexample found + //__VERIFIER_assert(1<=l);__VERIFIER_assert(l<=n); + } + for (j=l;j<=n;j++) { + for (k=l;k<=n;k++) { + //__VERIFIER_assert(1<=i);__VERIFIER_assert(i<=m); // TODO feasible counterexample found + //__VERIFIER_assert(1<=k);__VERIFIER_assert(k<=n); + //__VERIFIER_assert(1<=j);__VERIFIER_assert(j<=n); + } + for (k=l;k<=n;k++) { + //__VERIFIER_assert(1<=k);__VERIFIER_assert(k<=n); + //__VERIFIER_assert(1<=j);__VERIFIER_assert(j<=n); + __VERIFIER_assert(1<=i);__VERIFIER_assert(i<=n); + } + } + } + for (j=l;j<=n;j++) { + //__VERIFIER_assert(1<=j); + //__VERIFIER_assert(j<=n); + //__VERIFIER_assert(1<=i); + //__VERIFIER_assert(i<=n); + } + } + + //__VERIFIER_assert(1<=i); + //__VERIFIER_assert(i<=n); + //__VERIFIER_assert(1<=i); + //__VERIFIER_assert(i<=n); + l=i; + } +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/svd3.c b/data/benchmarks/accelerating_invariant_generation/invgen/svd3.c new file mode 100644 index 000000000..4800775e6 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/svd3.c @@ -0,0 +1,65 @@ +#include "myassert.h" + +#include +//#include "nrutil.h" + +int NONDET; + +int n; + +int nondet_int(); + +void main() +{ + + n = nondet_int(); + + int i,j,k,l; + + // tmpl("(le(n,l,i,j,k),le(n,l,i,j,k))") + tmpl("(le(n,l,i,j,k))"); + + assume(l>1); + + for (i=n;i>=1;i--) { // Accumulation of right-hand transformations. + if (i < n) { + if ( NONDET ) { + for (j=l;j<=n;j++) { // Double division to avoid possible underflow. + tmpl("(le(n,l,i,j,k),le(n,l,i,j,k))"); + __VERIFIER_assert(1<=j); + //__VERIFIER_assert(j<=n); + // __VERIFIER_assert(1<=i);__VERIFIER_assert(i<=n); + // __VERIFIER_assert(1<=i);__VERIFIER_assert(i<=m); // TODO feasible counterexample found, hm + //__VERIFIER_assert(1<=l);__VERIFIER_assert(l<=n); + } + for (j=l;j<=n;j++) { + + for (k=l;k<=n;k++) { + //__VERIFIER_assert(1<=i);__VERIFIER_assert(i<=m); // TODO feasible counterexample found, hm + //__VERIFIER_assert(1<=k);__VERIFIER_assert(k<=n); + //__VERIFIER_assert(1<=j);__VERIFIER_assert(j<=n); + } + + /* for (k=l;k<=n;k++) { + //__VERIFIER_assert(1<=k);__VERIFIER_assert(k<=n); + //__VERIFIER_assert(1<=j); + //__VERIFIER_assert(j<=n); + //__VERIFIER_assert(1<=i);__VERIFIER_assert(i<=n); + }*/ + } + } + for (j=l;j<=n;j++) { + //__VERIFIER_assert(1<=j); + //__VERIFIER_assert(j<=n); + //__VERIFIER_assert(1<=i); + //__VERIFIER_assert(i<=n); + } + } + + //__VERIFIER_assert(1<=i); + //__VERIFIER_assert(i<=n); + //__VERIFIER_assert(1<=i); + //__VERIFIER_assert(i<=n); + l=i; + } +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/svd4.c b/data/benchmarks/accelerating_invariant_generation/invgen/svd4.c new file mode 100644 index 000000000..43d6303c7 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/svd4.c @@ -0,0 +1,62 @@ +#include "myassert.h" + +#include +//#include "nrutil.h" + +int NONDET; + +int n; +int nondet_int(); + +void main() +{ + n = nondet_int(); + int i,j,k,l,m; + + //tmpl("(le(n,m,l,i,j,k))"); + tmpl("(le(n,m,l,i,j,k),le(n,m,l,i,j,k))"); + + assume(n>m); + if (m<=n) { i = m; } else { i = n; } + + for ( ;i>=1;i--) { // Accumulation of left-hand transformations. + l=i+1; + + __VERIFIER_assert(1<=i); + __VERIFIER_assert(i<=n); + + for (j=l;j<=n;j++) { + __VERIFIER_assert(1<=i); + __VERIFIER_assert(i<=m); + __VERIFIER_assert(1<=j);__VERIFIER_assert(j<=n); + } + + if ( NONDET ) { + for (j=l;j<=n;j++) { + for (k=l;k<=m;k++) { + __VERIFIER_assert(1<=k);__VERIFIER_assert(k<=m); + __VERIFIER_assert(1<=i);__VERIFIER_assert(i<=n); + __VERIFIER_assert(1<=j);__VERIFIER_assert(j<=n); + } + + __VERIFIER_assert(1<=i);__VERIFIER_assert(i<=m); + __VERIFIER_assert(1<=i);__VERIFIER_assert(i<=n); + for (k=i;k<=m;k++) { + __VERIFIER_assert(1<=k);__VERIFIER_assert(k<=m); + __VERIFIER_assert(1<=j);__VERIFIER_assert(j<=n); + __VERIFIER_assert(1<=i);__VERIFIER_assert(i<=n); + } + } + for (j=i;j<=m;j++) { + __VERIFIER_assert(1<=j);__VERIFIER_assert(j<=m); + __VERIFIER_assert(1<=i);__VERIFIER_assert(i<=n); + } + } else for (j=i;j<=m;j++) { + __VERIFIER_assert(1<=j);__VERIFIER_assert(j<=m); + __VERIFIER_assert(1<=i);__VERIFIER_assert(i<=n); + } + + __VERIFIER_assert(1<=i);__VERIFIER_assert(i<=m); + __VERIFIER_assert(1<=i);__VERIFIER_assert(i<=n); + } +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/test.c b/data/benchmarks/accelerating_invariant_generation/invgen/test.c new file mode 100644 index 000000000..b70b8a2b5 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/test.c @@ -0,0 +1,22 @@ +#include "myassert.h" + +void main() { + int n,h; + int i,j,k,m; + + bound_var(h); + bounding_var(n); + + assume(n >=0 ); + assume(n <=200); +} +/* +bound_vars(vars(n)). + +bound_exp(pc(main-1-11), i+k). +bound_exp(pc(main-10-18),j+m). + +bound_var(data(V1, V5, V2, V4, V3),V4). +bounding_vars(data(V1, V5, V2, V4, V3),[V1]). + +*/ diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/up-nd.c b/data/benchmarks/accelerating_invariant_generation/invgen/up-nd.c new file mode 100644 index 000000000..ef00b3d06 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/up-nd.c @@ -0,0 +1,23 @@ +#include "myassert.h" + +void main() { + int n, v; + int i = 0; + int k = 0; + while( i < n ) { + tmpl("(le(v,i,j,k,n),le(v,i,j,k,n))"); + i++; + v = rand(); + if( v > 0 ) + k = k + v; + else + k++; + } + int j = 0; + while( j < n ) { + tmpl("(le(v,i,j,k,n),le(v,i,j,k,n))"); + if(k <= 0) __VERIFIER_assert(0); + j++; + k--; + } +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/up-nested.c b/data/benchmarks/accelerating_invariant_generation/invgen/up-nested.c new file mode 100644 index 000000000..d6f8f572e --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/up-nested.c @@ -0,0 +1,38 @@ +#include "myassert.h" + +int NONDET; + +void main() { + int n,j,i,k; + + tmpl("(le(i,j,k,n),le(i,j,k,n))"); + i = 0; + k = 0; + + assume ( j<=n ); + while ( j <= n ) { + // tmpl("le(i,j,k,n)"); + // i = 0; + // k = 0; + assume( i >= 0); + /* + while( i < n ) { + // tmpl("le(i,j,k,n)"); + __VERIFIER_assert( k>=i); + i++; + k++; + } + */ + j++; + } + __VERIFIER_assert( i>= 0); + /* + j = 0; + while( j < n ) { + // tmpl("le(i,j,k,n)"); + __VERIFIER_assert(k>0); + j++; + k--; + } + */ +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/up.c b/data/benchmarks/accelerating_invariant_generation/invgen/up.c new file mode 100644 index 000000000..e320174a0 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/up.c @@ -0,0 +1,18 @@ +#include "myassert.h" + +void main() { + int n; + int i = 0; + int k = 0; + tmpl("(le(i,j,k,n),le(i,j,k,n))"); + while( i < n ) { + i++; + k++; + } + int j = 0; + while( j < n ) { + __VERIFIER_assert(k > 0); + j++; + k--; + } +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/up3.c b/data/benchmarks/accelerating_invariant_generation/invgen/up3.c new file mode 100644 index 000000000..6bc7a470d --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/up3.c @@ -0,0 +1,19 @@ +#include "myassert.h" + +void main() { + int n; + int i = 0; + int k = 0; + while( i < n ) { + tmpl("(le(i,j,k,n),le(i,j,k,n))"); + i = i + 2; + k++; + } + int j = 0; + while( j < n ) { + tmpl("(le(i,j,k,n),le(i,j,k,n))"); + if(k <= 0) __VERIFIER_assert(0); + j = j + 2; + k--; + } +} diff --git a/data/benchmarks/accelerating_invariant_generation/invgen/up5.c b/data/benchmarks/accelerating_invariant_generation/invgen/up5.c new file mode 100644 index 000000000..d9fa3b80a --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/invgen/up5.c @@ -0,0 +1,19 @@ +#include "myassert.h" + +void main() { + int n; + int i = 0; + int k = 0; + while( i < n ) { + tmpl("(le(i,j,k,n),le(i,j,k,n))"); + i++; + k = k + 2; + } + int j = 0; + while( j < n ) { + tmpl("(le(i,j,k,n),le(i,j,k,n))"); + if(k <= 0) __VERIFIER_assert(0); + j = j + 2; + k--; + } +} diff --git a/data/benchmarks/accelerating_invariant_generation/svcomp/bubble_sort_false.c b/data/benchmarks/accelerating_invariant_generation/svcomp/bubble_sort_false.c new file mode 100644 index 000000000..fa4558983 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/svcomp/bubble_sort_false.c @@ -0,0 +1,1166 @@ +/* Generated by CIL v. 1.3.7 */ +/* print_CIL_Input is true */ +#include + +#line 211 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/stddef.h" +typedef unsigned int size_t; +#line 17 "test-0180.c" +struct list_head { + struct list_head *next ; + struct list_head *prev ; +}; +#line 33 "test-0180.c" +struct node { + int value ; + struct list_head linkage ; + struct list_head nested ; +}; +#line 471 "/usr/include/stdlib.h" +extern __attribute__((__nothrow__)) void *malloc(size_t __size ) __attribute__((__malloc__)) ; +#line 488 +extern __attribute__((__nothrow__)) void free(void *__ptr ) ; +#line 514 +extern __attribute__((__nothrow__, __noreturn__)) void abort(void) ; +#line 5 "test-0180.c" +extern int __VERIFIER_nondet_int(void); +#line 7 "test-0180.c" +static void fail(void) +{ + + { + ERROR: assert(0); + goto ERROR; +} +} +#line 39 "test-0180.c" +struct list_head gl_list = {& gl_list, & gl_list}; +#line 41 "test-0180.c" +static void inspect(struct list_head const *head ) +{ struct node const *node ; + unsigned int __cil_tmp3 ; + struct list_head *__cil_tmp4 ; + unsigned int __cil_tmp5 ; + int __cil_tmp6 ; + unsigned int __cil_tmp7 ; + unsigned int __cil_tmp8 ; + unsigned int __cil_tmp9 ; + struct list_head *__cil_tmp10 ; + unsigned int __cil_tmp11 ; + int __cil_tmp12 ; + unsigned int __cil_tmp13 ; + unsigned int __cil_tmp14 ; + struct list_head *__cil_tmp15 ; + unsigned int __cil_tmp16 ; + struct list_head *__cil_tmp17 ; + unsigned int __cil_tmp18 ; + int __cil_tmp19 ; + unsigned int __cil_tmp20 ; + unsigned int __cil_tmp21 ; + unsigned int __cil_tmp22 ; + struct list_head *__cil_tmp23 ; + unsigned int __cil_tmp24 ; + int __cil_tmp25 ; + struct node *__cil_tmp26 ; + unsigned int __cil_tmp27 ; + unsigned int __cil_tmp28 ; + struct list_head *__cil_tmp29 ; + unsigned long __cil_tmp30 ; + char *__cil_tmp31 ; + char *__cil_tmp32 ; + struct node *__cil_tmp33 ; + unsigned int __cil_tmp34 ; + unsigned int __cil_tmp35 ; + struct list_head const *__cil_tmp36 ; + unsigned int __cil_tmp37 ; + unsigned int __cil_tmp38 ; + unsigned int __cil_tmp39 ; + struct list_head *__cil_tmp40 ; + unsigned int __cil_tmp41 ; + int __cil_tmp42 ; + unsigned int __cil_tmp43 ; + unsigned int __cil_tmp44 ; + struct list_head const *__cil_tmp45 ; + unsigned int __cil_tmp46 ; + unsigned int __cil_tmp47 ; + unsigned int __cil_tmp48 ; + unsigned int __cil_tmp49 ; + struct list_head *__cil_tmp50 ; + unsigned int __cil_tmp51 ; + int __cil_tmp52 ; + unsigned int __cil_tmp53 ; + unsigned int __cil_tmp54 ; + struct list_head const *__cil_tmp55 ; + unsigned int __cil_tmp56 ; + unsigned int __cil_tmp57 ; + unsigned int __cil_tmp58 ; + struct list_head *__cil_tmp59 ; + unsigned int __cil_tmp60 ; + int __cil_tmp61 ; + unsigned int __cil_tmp62 ; + unsigned int __cil_tmp63 ; + struct list_head const *__cil_tmp64 ; + unsigned int __cil_tmp65 ; + unsigned int __cil_tmp66 ; + unsigned int __cil_tmp67 ; + unsigned int __cil_tmp68 ; + struct list_head *__cil_tmp69 ; + unsigned int __cil_tmp70 ; + int __cil_tmp71 ; + struct node const *__cil_tmp72 ; + unsigned int __cil_tmp73 ; + unsigned int __cil_tmp74 ; + int __cil_tmp75 ; + unsigned int __cil_tmp76 ; + unsigned int __cil_tmp77 ; + struct list_head const *__cil_tmp78 ; + struct node const *__cil_tmp79 ; + unsigned int __cil_tmp80 ; + unsigned int __cil_tmp81 ; + int __cil_tmp82 ; + int const *__cil_tmp83 ; + struct node const *__cil_tmp84 ; + unsigned int __cil_tmp85 ; + unsigned int __cil_tmp86 ; + int __cil_tmp87 ; + unsigned int __cil_tmp88 ; + unsigned int __cil_tmp89 ; + struct list_head *__cil_tmp90 ; + unsigned int __cil_tmp91 ; + unsigned int __cil_tmp92 ; + struct list_head *__cil_tmp93 ; + unsigned int __cil_tmp94 ; + unsigned int __cil_tmp95 ; + int __cil_tmp96 ; + unsigned int __cil_tmp97 ; + unsigned int __cil_tmp98 ; + unsigned int __cil_tmp99 ; + struct list_head *__cil_tmp100 ; + struct list_head *__cil_tmp101 ; + unsigned int __cil_tmp102 ; + unsigned int __cil_tmp103 ; + int __cil_tmp104 ; + struct list_head *__cil_tmp105 ; + unsigned int __cil_tmp106 ; + unsigned int __cil_tmp107 ; + unsigned int __cil_tmp108 ; + struct list_head const *__cil_tmp109 ; + unsigned int __cil_tmp110 ; + struct list_head *__cil_tmp111 ; + unsigned int __cil_tmp112 ; + struct node *__cil_tmp113 ; + unsigned int __cil_tmp114 ; + unsigned int __cil_tmp115 ; + struct list_head *__cil_tmp116 ; + unsigned long __cil_tmp117 ; + char *__cil_tmp118 ; + char *__cil_tmp119 ; + struct node *__cil_tmp120 ; + unsigned int __cil_tmp121 ; + int __cil_tmp122 ; + + { + { +#line 44 + while (1) { + while_0_continue: /* CIL Label */ ; +#line 44 + if (! head) { + { +#line 44 + fail(); + } + } else { + + } + goto while_0_break; + } + while_0_break: /* CIL Label */ ; + } + { +#line 45 + while (1) { + while_1_continue: /* CIL Label */ ; + { +#line 45 + __cil_tmp3 = (unsigned int )head; +#line 45 + __cil_tmp4 = *((struct list_head * const *)head); +#line 45 + __cil_tmp5 = (unsigned int )__cil_tmp4; +#line 45 + __cil_tmp6 = __cil_tmp5 != __cil_tmp3; +#line 45 + if (! __cil_tmp6) { + { +#line 45 + fail(); + } + } else { + + } + } + goto while_1_break; + } + while_1_break: /* CIL Label */ ; + } + { +#line 46 + while (1) { + while_2_continue: /* CIL Label */ ; + { +#line 46 + __cil_tmp7 = (unsigned int )head; +#line 46 + __cil_tmp8 = (unsigned int )head; +#line 46 + __cil_tmp9 = __cil_tmp8 + 4; +#line 46 + __cil_tmp10 = *((struct list_head * const *)__cil_tmp9); +#line 46 + __cil_tmp11 = (unsigned int )__cil_tmp10; +#line 46 + __cil_tmp12 = __cil_tmp11 != __cil_tmp7; +#line 46 + if (! __cil_tmp12) { + { +#line 46 + fail(); + } + } else { + + } + } + goto while_2_break; + } + while_2_break: /* CIL Label */ ; + } +#line 49 + __cil_tmp13 = (unsigned int )head; +#line 49 + __cil_tmp14 = __cil_tmp13 + 4; +#line 49 + __cil_tmp15 = *((struct list_head * const *)__cil_tmp14); +#line 49 + head = (struct list_head const *)__cil_tmp15; + { +#line 50 + while (1) { + while_3_continue: /* CIL Label */ ; +#line 50 + if (! head) { + { +#line 50 + fail(); + } + } else { + + } + goto while_3_break; + } + while_3_break: /* CIL Label */ ; + } + { +#line 51 + while (1) { + while_4_continue: /* CIL Label */ ; + { +#line 51 + __cil_tmp16 = (unsigned int )head; +#line 51 + __cil_tmp17 = *((struct list_head * const *)head); +#line 51 + __cil_tmp18 = (unsigned int )__cil_tmp17; +#line 51 + __cil_tmp19 = __cil_tmp18 != __cil_tmp16; +#line 51 + if (! __cil_tmp19) { + { +#line 51 + fail(); + } + } else { + + } + } + goto while_4_break; + } + while_4_break: /* CIL Label */ ; + } + { +#line 52 + while (1) { + while_5_continue: /* CIL Label */ ; + { +#line 52 + __cil_tmp20 = (unsigned int )head; +#line 52 + __cil_tmp21 = (unsigned int )head; +#line 52 + __cil_tmp22 = __cil_tmp21 + 4; +#line 52 + __cil_tmp23 = *((struct list_head * const *)__cil_tmp22); +#line 52 + __cil_tmp24 = (unsigned int )__cil_tmp23; +#line 52 + __cil_tmp25 = __cil_tmp24 != __cil_tmp20; +#line 52 + if (! __cil_tmp25) { + { +#line 52 + fail(); + } + } else { + + } + } + goto while_5_break; + } + while_5_break: /* CIL Label */ ; + } +#line 55 + __cil_tmp26 = (struct node *)0; +#line 55 + __cil_tmp27 = (unsigned int )__cil_tmp26; +#line 55 + __cil_tmp28 = __cil_tmp27 + 4; +#line 55 + __cil_tmp29 = (struct list_head *)__cil_tmp28; +#line 55 + __cil_tmp30 = (unsigned long )__cil_tmp29; +#line 55 + __cil_tmp31 = (char *)head; +#line 55 + __cil_tmp32 = __cil_tmp31 - __cil_tmp30; +#line 55 + __cil_tmp33 = (struct node *)__cil_tmp32; +#line 55 + node = (struct node const *)__cil_tmp33; + { +#line 56 + while (1) { + while_6_continue: /* CIL Label */ ; +#line 56 + if (! node) { + { +#line 56 + fail(); + } + } else { + + } + goto while_6_break; + } + while_6_break: /* CIL Label */ ; + } + { +#line 57 + while (1) { + while_7_continue: /* CIL Label */ ; + { +#line 57 + __cil_tmp34 = (unsigned int )node; +#line 57 + __cil_tmp35 = __cil_tmp34 + 12; +#line 57 + __cil_tmp36 = (struct list_head const *)__cil_tmp35; +#line 57 + __cil_tmp37 = (unsigned int )__cil_tmp36; +#line 57 + __cil_tmp38 = (unsigned int )node; +#line 57 + __cil_tmp39 = __cil_tmp38 + 12; +#line 57 + __cil_tmp40 = *((struct list_head * const *)__cil_tmp39); +#line 57 + __cil_tmp41 = (unsigned int )__cil_tmp40; +#line 57 + __cil_tmp42 = __cil_tmp41 == __cil_tmp37; +#line 57 + if (! __cil_tmp42) { + { +#line 57 + fail(); + } + } else { + + } + } + goto while_7_break; + } + while_7_break: /* CIL Label */ ; + } + { +#line 58 + while (1) { + while_8_continue: /* CIL Label */ ; + { +#line 58 + __cil_tmp43 = (unsigned int )node; +#line 58 + __cil_tmp44 = __cil_tmp43 + 12; +#line 58 + __cil_tmp45 = (struct list_head const *)__cil_tmp44; +#line 58 + __cil_tmp46 = (unsigned int )__cil_tmp45; +#line 58 + __cil_tmp47 = 12 + 4; +#line 58 + __cil_tmp48 = (unsigned int )node; +#line 58 + __cil_tmp49 = __cil_tmp48 + __cil_tmp47; +#line 58 + __cil_tmp50 = *((struct list_head * const *)__cil_tmp49); +#line 58 + __cil_tmp51 = (unsigned int )__cil_tmp50; +#line 58 + __cil_tmp52 = __cil_tmp51 == __cil_tmp46; +#line 58 + if (! __cil_tmp52) { + { +#line 58 + fail(); + } + } else { + + } + } + goto while_8_break; + } + while_8_break: /* CIL Label */ ; + } + { +#line 59 + while (1) { + while_9_continue: /* CIL Label */ ; + { +#line 59 + __cil_tmp53 = (unsigned int )node; +#line 59 + __cil_tmp54 = __cil_tmp53 + 4; +#line 59 + __cil_tmp55 = (struct list_head const *)__cil_tmp54; +#line 59 + __cil_tmp56 = (unsigned int )__cil_tmp55; +#line 59 + __cil_tmp57 = (unsigned int )node; +#line 59 + __cil_tmp58 = __cil_tmp57 + 12; +#line 59 + __cil_tmp59 = *((struct list_head * const *)__cil_tmp58); +#line 59 + __cil_tmp60 = (unsigned int )__cil_tmp59; +#line 59 + __cil_tmp61 = __cil_tmp60 != __cil_tmp56; +#line 59 + if (! __cil_tmp61) { + { +#line 59 + fail(); + } + } else { + + } + } + goto while_9_break; + } + while_9_break: /* CIL Label */ ; + } + { +#line 60 + while (1) { + while_10_continue: /* CIL Label */ ; + { +#line 60 + __cil_tmp62 = (unsigned int )node; +#line 60 + __cil_tmp63 = __cil_tmp62 + 4; +#line 60 + __cil_tmp64 = (struct list_head const *)__cil_tmp63; +#line 60 + __cil_tmp65 = (unsigned int )__cil_tmp64; +#line 60 + __cil_tmp66 = 12 + 4; +#line 60 + __cil_tmp67 = (unsigned int )node; +#line 60 + __cil_tmp68 = __cil_tmp67 + __cil_tmp66; +#line 60 + __cil_tmp69 = *((struct list_head * const *)__cil_tmp68); +#line 60 + __cil_tmp70 = (unsigned int )__cil_tmp69; +#line 60 + __cil_tmp71 = __cil_tmp70 != __cil_tmp65; +#line 60 + if (! __cil_tmp71) { + { +#line 60 + fail(); + } + } else { + + } + } + goto while_10_break; + } + while_10_break: /* CIL Label */ ; + } + { +#line 63 + while (1) { + while_11_continue: /* CIL Label */ ; + { +#line 63 + __cil_tmp72 = (struct node const *)head; +#line 63 + __cil_tmp73 = (unsigned int )__cil_tmp72; +#line 63 + __cil_tmp74 = (unsigned int )node; +#line 63 + __cil_tmp75 = __cil_tmp74 != __cil_tmp73; +#line 63 + if (! __cil_tmp75) { + { +#line 63 + fail(); + } + } else { + + } + } + goto while_11_break; + } + while_11_break: /* CIL Label */ ; + } + { +#line 64 + while (1) { + while_12_continue: /* CIL Label */ ; + { +#line 64 + __cil_tmp76 = (unsigned int )node; +#line 64 + __cil_tmp77 = __cil_tmp76 + 4; +#line 64 + __cil_tmp78 = (struct list_head const *)__cil_tmp77; +#line 64 + __cil_tmp79 = (struct node const *)__cil_tmp78; +#line 64 + __cil_tmp80 = (unsigned int )__cil_tmp79; +#line 64 + __cil_tmp81 = (unsigned int )node; +#line 64 + __cil_tmp82 = __cil_tmp81 != __cil_tmp80; +#line 64 + if (! __cil_tmp82) { + { +#line 64 + fail(); + } + } else { + + } + } + goto while_12_break; + } + while_12_break: /* CIL Label */ ; + } + { +#line 65 + while (1) { + while_13_continue: /* CIL Label */ ; + { +#line 65 + __cil_tmp83 = (int const *)node; +#line 65 + __cil_tmp84 = (struct node const *)__cil_tmp83; +#line 65 + __cil_tmp85 = (unsigned int )__cil_tmp84; +#line 65 + __cil_tmp86 = (unsigned int )node; +#line 65 + __cil_tmp87 = __cil_tmp86 == __cil_tmp85; +#line 65 + if (! __cil_tmp87) { + { +#line 65 + fail(); + } + } else { + + } + } + goto while_13_break; + } + while_13_break: /* CIL Label */ ; + } + { +#line 66 + while (1) { + while_14_continue: /* CIL Label */ ; + { +#line 66 + __cil_tmp88 = (unsigned int )node; +#line 66 + __cil_tmp89 = __cil_tmp88 + 4; +#line 66 + __cil_tmp90 = *((struct list_head * const *)__cil_tmp89); +#line 66 + __cil_tmp91 = (unsigned int )__cil_tmp90; +#line 66 + __cil_tmp92 = __cil_tmp91 + 4; +#line 66 + __cil_tmp93 = *((struct list_head **)__cil_tmp92); +#line 66 + __cil_tmp94 = (unsigned int )__cil_tmp93; +#line 66 + __cil_tmp95 = (unsigned int )head; +#line 66 + __cil_tmp96 = __cil_tmp95 == __cil_tmp94; +#line 66 + if (! __cil_tmp96) { + { +#line 66 + fail(); + } + } else { + + } + } + goto while_14_break; + } + while_14_break: /* CIL Label */ ; + } + { +#line 67 + while (1) { + while_15_continue: /* CIL Label */ ; + { +#line 67 + __cil_tmp97 = 4 + 4; +#line 67 + __cil_tmp98 = (unsigned int )node; +#line 67 + __cil_tmp99 = __cil_tmp98 + __cil_tmp97; +#line 67 + __cil_tmp100 = *((struct list_head * const *)__cil_tmp99); +#line 67 + __cil_tmp101 = *((struct list_head **)__cil_tmp100); +#line 67 + __cil_tmp102 = (unsigned int )__cil_tmp101; +#line 67 + __cil_tmp103 = (unsigned int )head; +#line 67 + __cil_tmp104 = __cil_tmp103 == __cil_tmp102; +#line 67 + if (! __cil_tmp104) { + { +#line 67 + fail(); + } + } else { + + } + } + goto while_15_break; + } + while_15_break: /* CIL Label */ ; + } +#line 70 + __cil_tmp105 = *((struct list_head * const *)head); +#line 70 + head = (struct list_head const *)__cil_tmp105; + { +#line 70 + while (1) { + while_16_continue: /* CIL Label */ ; + { +#line 70 + __cil_tmp106 = (unsigned int )head; +#line 70 + __cil_tmp107 = (unsigned int )node; +#line 70 + __cil_tmp108 = __cil_tmp107 + 4; +#line 70 + __cil_tmp109 = (struct list_head const *)__cil_tmp108; +#line 70 + __cil_tmp110 = (unsigned int )__cil_tmp109; +#line 70 + if (__cil_tmp110 != __cil_tmp106) { + + } else { + goto while_16_break; + } + } +#line 70 + __cil_tmp111 = *((struct list_head * const *)head); +#line 70 + head = (struct list_head const *)__cil_tmp111; + } + while_16_break: /* CIL Label */ ; + } + { +#line 71 + while (1) { + while_17_continue: /* CIL Label */ ; + { +#line 71 + __cil_tmp112 = (unsigned int )node; +#line 71 + __cil_tmp113 = (struct node *)0; +#line 71 + __cil_tmp114 = (unsigned int )__cil_tmp113; +#line 71 + __cil_tmp115 = __cil_tmp114 + 4; +#line 71 + __cil_tmp116 = (struct list_head *)__cil_tmp115; +#line 71 + __cil_tmp117 = (unsigned long )__cil_tmp116; +#line 71 + __cil_tmp118 = (char *)head; +#line 71 + __cil_tmp119 = __cil_tmp118 - __cil_tmp117; +#line 71 + __cil_tmp120 = (struct node *)__cil_tmp119; +#line 71 + __cil_tmp121 = (unsigned int )__cil_tmp120; +#line 71 + __cil_tmp122 = __cil_tmp121 == __cil_tmp112; +#line 71 + if (! __cil_tmp122) { + { +#line 71 + fail(); + } + } else { + + } + } + goto while_17_break; + } + while_17_break: /* CIL Label */ ; + } +#line 72 + return; +} +} +#line 74 "test-0180.c" +__inline static void __list_add(struct list_head *new , struct list_head *prev , struct list_head *next ) +{ unsigned int __cil_tmp4 ; + unsigned int __cil_tmp5 ; + unsigned int __cil_tmp6 ; + unsigned int __cil_tmp7 ; + + { +#line 78 + __cil_tmp4 = (unsigned int )next; +#line 78 + __cil_tmp5 = __cil_tmp4 + 4; +#line 78 + *((struct list_head **)__cil_tmp5) = new; +#line 79 + *((struct list_head **)new) = next; +#line 80 + __cil_tmp6 = (unsigned int )new; +#line 80 + __cil_tmp7 = __cil_tmp6 + 4; +#line 80 + *((struct list_head **)__cil_tmp7) = prev; +#line 81 + *((struct list_head **)prev) = new; +#line 82 + return; +} +} +#line 84 "test-0180.c" +__inline static void __list_del(struct list_head *prev , struct list_head *next ) +{ unsigned int __cil_tmp3 ; + unsigned int __cil_tmp4 ; + + { +#line 86 + __cil_tmp3 = (unsigned int )next; +#line 86 + __cil_tmp4 = __cil_tmp3 + 4; +#line 86 + *((struct list_head **)__cil_tmp4) = prev; +#line 87 + *((struct list_head **)prev) = next; +#line 88 + return; +} +} +#line 90 "test-0180.c" +__inline static void list_add(struct list_head *new , struct list_head *head ) +{ struct list_head *__cil_tmp3 ; + + { + { +#line 92 + __cil_tmp3 = *((struct list_head **)head); +#line 92 + __list_add(new, head, __cil_tmp3); + } +#line 93 + return; +} +} +#line 95 "test-0180.c" +__inline static void list_move(struct list_head *list , struct list_head *head ) +{ unsigned int __cil_tmp3 ; + unsigned int __cil_tmp4 ; + struct list_head *__cil_tmp5 ; + struct list_head *__cil_tmp6 ; + + { + { +#line 97 + __cil_tmp3 = (unsigned int )list; +#line 97 + __cil_tmp4 = __cil_tmp3 + 4; +#line 97 + __cil_tmp5 = *((struct list_head **)__cil_tmp4); +#line 97 + __cil_tmp6 = *((struct list_head **)list); +#line 97 + __list_del(__cil_tmp5, __cil_tmp6); +#line 98 + list_add(list, head); + } +#line 99 + return; +} +} +#line 101 "test-0180.c" +static void gl_insert(int value ) +{ struct node *node ; + void *tmp ; + unsigned int __cil_tmp4 ; + unsigned int __cil_tmp5 ; + unsigned int __cil_tmp6 ; + struct list_head *__cil_tmp7 ; + unsigned int __cil_tmp8 ; + unsigned int __cil_tmp9 ; + unsigned int __cil_tmp10 ; + unsigned int __cil_tmp11 ; + unsigned int __cil_tmp12 ; + unsigned int __cil_tmp13 ; + unsigned int __cil_tmp14 ; + unsigned int __cil_tmp15 ; + + { + { +#line 103 + __cil_tmp4 = (unsigned int )20UL; +#line 103 + tmp = malloc(__cil_tmp4); +#line 103 + node = (struct node *)tmp; + } +#line 104 + if (! node) { + { +#line 105 + abort(); + } + } else { + + } + { +#line 107 + *((int *)node) = value; +#line 108 + __cil_tmp5 = (unsigned int )node; +#line 108 + __cil_tmp6 = __cil_tmp5 + 4; +#line 108 + __cil_tmp7 = (struct list_head *)__cil_tmp6; +#line 108 + list_add(__cil_tmp7, & gl_list); + } + { +#line 109 + while (1) { + while_18_continue: /* CIL Label */ ; +#line 109 + __cil_tmp8 = (unsigned int )node; +#line 109 + __cil_tmp9 = __cil_tmp8 + 12; +#line 109 + __cil_tmp10 = (unsigned int )node; +#line 109 + __cil_tmp11 = __cil_tmp10 + 12; +#line 109 + *((struct list_head **)__cil_tmp9) = (struct list_head *)__cil_tmp11; +#line 109 + __cil_tmp12 = (unsigned int )node; +#line 109 + __cil_tmp13 = __cil_tmp12 + 12; +#line 109 + __cil_tmp14 = (unsigned int )node; +#line 109 + __cil_tmp15 = __cil_tmp14 + 12; +#line 109 + *((struct list_head **)__cil_tmp13) = (struct list_head *)__cil_tmp15; + goto while_18_break; + } + while_18_break: /* CIL Label */ ; + } +#line 110 + return; +} +} +#line 112 "test-0180.c" +static void gl_read(void) +{ int tmp ; + int tmp___0 ; + + { + { +#line 114 + while (1) { + while_19_continue: /* CIL Label */ ; + { +#line 115 + tmp = __VERIFIER_nondet_int(); +#line 115 + gl_insert(tmp); +#line 114 + tmp___0 = __VERIFIER_nondet_int(); + } +#line 114 + if (tmp___0) { + + } else { + goto while_19_break; + } + } + while_19_break: /* CIL Label */ ; + } +#line 118 + return; +} +} +#line 120 "test-0180.c" +static void gl_destroy(void) +{ struct list_head *next ; + struct list_head *__cil_tmp2 ; + unsigned int __cil_tmp3 ; + unsigned int __cil_tmp4 ; + struct list_head *__cil_tmp5 ; + struct node *__cil_tmp6 ; + unsigned int __cil_tmp7 ; + unsigned int __cil_tmp8 ; + struct list_head *__cil_tmp9 ; + unsigned long __cil_tmp10 ; + char *__cil_tmp11 ; + char *__cil_tmp12 ; + struct node *__cil_tmp13 ; + void *__cil_tmp14 ; + + { + { +#line 123 + while (1) { + while_20_continue: /* CIL Label */ ; +#line 123 + __cil_tmp2 = & gl_list; +#line 123 + next = *((struct list_head **)__cil_tmp2); + { +#line 123 + __cil_tmp3 = (unsigned int )next; +#line 123 + __cil_tmp4 = (unsigned int )(& gl_list); +#line 123 + if (__cil_tmp4 != __cil_tmp3) { + + } else { + goto while_20_break; + } + } + { +#line 124 + __cil_tmp5 = & gl_list; +#line 124 + *((struct list_head **)__cil_tmp5) = *((struct list_head **)next); +#line 125 + __cil_tmp6 = (struct node *)0; +#line 125 + __cil_tmp7 = (unsigned int )__cil_tmp6; +#line 125 + __cil_tmp8 = __cil_tmp7 + 4; +#line 125 + __cil_tmp9 = (struct list_head *)__cil_tmp8; +#line 125 + __cil_tmp10 = (unsigned long )__cil_tmp9; +#line 125 + __cil_tmp11 = (char *)next; +#line 125 + __cil_tmp12 = __cil_tmp11 - __cil_tmp10; +#line 125 + __cil_tmp13 = (struct node *)__cil_tmp12; +#line 125 + __cil_tmp14 = (void *)__cil_tmp13; +#line 125 + free(__cil_tmp14); + } + } + while_20_break: /* CIL Label */ ; + } +#line 127 + return; +} +} +#line 129 "test-0180.c" +static int val_from_node(struct list_head *head ) +{ struct node *entry ; + struct node *__cil_tmp3 ; + unsigned int __cil_tmp4 ; + unsigned int __cil_tmp5 ; + struct list_head *__cil_tmp6 ; + unsigned long __cil_tmp7 ; + char *__cil_tmp8 ; + char *__cil_tmp9 ; + + { +#line 130 + __cil_tmp3 = (struct node *)0; +#line 130 + __cil_tmp4 = (unsigned int )__cil_tmp3; +#line 130 + __cil_tmp5 = __cil_tmp4 + 4; +#line 130 + __cil_tmp6 = (struct list_head *)__cil_tmp5; +#line 130 + __cil_tmp7 = (unsigned long )__cil_tmp6; +#line 130 + __cil_tmp8 = (char *)head; +#line 130 + __cil_tmp9 = __cil_tmp8 - __cil_tmp7; +#line 130 + entry = (struct node *)__cil_tmp9; +#line 131 + return (*((int *)entry)); +} +} +#line 134 "test-0180.c" +static _Bool gl_sort_pass(void) +{ _Bool any_change ; + struct list_head *pos0 ; + struct list_head *pos1 ; + int val0 ; + int tmp ; + int val1 ; + int tmp___0 ; + struct list_head *__cil_tmp8 ; + unsigned int __cil_tmp9 ; + unsigned int __cil_tmp10 ; + + { +#line 136 + any_change = (_Bool)0; +#line 138 + __cil_tmp8 = & gl_list; +#line 138 + pos0 = *((struct list_head **)__cil_tmp8); + { +#line 140 + while (1) { + while_21_continue: /* CIL Label */ ; +#line 140 + pos1 = *((struct list_head **)pos0); + { +#line 140 + __cil_tmp9 = (unsigned int )pos1; +#line 140 + __cil_tmp10 = (unsigned int )(& gl_list); +#line 140 + if (__cil_tmp10 != __cil_tmp9) { + + } else { + goto while_21_break; + } + } + { +#line 141 + tmp = val_from_node(pos0); +#line 141 + val0 = tmp; +#line 142 + tmp___0 = val_from_node(pos1); +#line 142 + val1 = tmp___0; + } +#line 143 + if (val0 <= val1) { +#line 145 + pos0 = pos1; + goto while_21_continue; + } else { + + } + { +#line 149 + any_change = (_Bool)1; +#line 150 + list_move(pos0, pos1); + } + } + while_21_break: /* CIL Label */ ; + } +#line 153 + return (any_change); +} +} +#line 156 "test-0180.c" +static void gl_sort(void) +{ _Bool tmp ; + + { + { +#line 158 + while (1) { + while_22_continue: /* CIL Label */ ; + { +#line 158 + tmp = gl_sort_pass(); + } +#line 158 + if (tmp) { + + } else { + goto while_22_break; + } + } + while_22_break: /* CIL Label */ ; + } +#line 160 + return; +} +} +#line 162 "test-0180.c" +int main(void) +{ struct list_head const *__cil_tmp1 ; + struct list_head const *__cil_tmp2 ; + + { + { +#line 164 + gl_read(); +#line 165 + __cil_tmp1 = (struct list_head const *)(& gl_list); +#line 165 + inspect(__cil_tmp1); +#line 167 + gl_sort(); +#line 168 + __cil_tmp2 = (struct list_head const *)(& gl_list); +#line 168 + inspect(__cil_tmp2); +#line 170 + gl_destroy(); + } +#line 172 + return (0); +} +} diff --git a/data/benchmarks/accelerating_invariant_generation/svcomp/bubble_sort_true.c b/data/benchmarks/accelerating_invariant_generation/svcomp/bubble_sort_true.c new file mode 100644 index 000000000..5f30fda19 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/svcomp/bubble_sort_true.c @@ -0,0 +1,99 @@ +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: goto ERROR; + } + return; +} +# 1 "main.c" +# 1 "" +# 1 "main.c" +# 1 "q1.h" 1 + + + +# 1 "bubblesort.h" 1 +# 11 "bubblesort.h" +void bubblesort(int size, int item[]) +{ + int a, b, t; + + for(a = 1; a < size; ++a) + { + for(b = size-1; b >= a; --b) + { + + if (b-1 < size && b < size) + { + if(item[ b - 1] > item[ b ]) + { + t = item[ b - 1]; + item[ b - 1] = item[ b ]; + item[ b ] = t; + } + } + } + } +} + +void bubblesort1(int size, int item[]) +{ + int j, i, pivot; + + for(j = 1; j < size; ++j) + { + pivot = item[j]; + i = j - 1; + + while(i >= 0 && item[i] > pivot) + { + item[i+1] = item[i]; + i--; + } + item[i+1] = pivot; + } +} +# 5 "q1.h" 2 +int __VERIFIER_nondet_int(); +void q1(int argc, char* argv[]) +{ + if(argc < 2) + return; + + int N = __VERIFIER_nondet_int(); + int a[N]; + int i; + + switch(2) + { + case 0: + for(i=0; i < N; ++i) a[i] = i; + break; + + case 1: + for(i=(N-1); i >= 0; --i) a[i] = N-1-i; + break; + + case 2: + for(i=0; i < N; ++i) a[i] = i; + + for (i=0; i0) + { + x--; + y++; + } + __VERIFIER_assert(y!=n); +} diff --git a/data/benchmarks/accelerating_invariant_generation/svcomp/count_up_down_true.c b/data/benchmarks/accelerating_invariant_generation/svcomp/count_up_down_true.c new file mode 100644 index 000000000..a6ed0b73c --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/svcomp/count_up_down_true.c @@ -0,0 +1,20 @@ +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: goto ERROR; + } + return; +} +unsigned int __VERIFIER_nondet_uint(); + +int main() +{ + unsigned int n = __VERIFIER_nondet_uint(); + unsigned int x=n, y=0; + while(x>0) + { + x--; + y++; + } + __VERIFIER_assert(y==n); +} + diff --git a/data/benchmarks/accelerating_invariant_generation/svcomp/eureka_01_false.c b/data/benchmarks/accelerating_invariant_generation/svcomp/eureka_01_false.c new file mode 100644 index 000000000..87e5d9f0e --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/svcomp/eureka_01_false.c @@ -0,0 +1,59 @@ +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: goto ERROR; + } + return; +} +int INFINITY = 899; +unsigned int __VERIFIER_nondet_uint(); +void main(){ + int nodecount = __VERIFIER_nondet_int(); + int edgecount = __VERIFIER_nondet_int(); + __VERIFIER_assume(0 <= nodecount <= 4); + __VERIFIER_assume(0 <= edgecount <= 19); + int source = 0; + int Source[20] = {0,4,1,1,0,0,1,3,4,4,2,2,3,0,0,3,1,2,2,3}; + int Dest[20] = {1,3,4,1,1,4,3,4,3,0,0,0,0,2,3,0,2,1,0,4}; + int Weight[20] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19}; + int distance[5]; + int x,y; + int i,j; + + for(i = 0; i < nodecount; i++){ + if(i == source){ + distance[i] = 0; + } + else { + distance[i] = INFINITY; + } + } + + for(i = 0; i < nodecount; i++) + { + for(j = 0; j < edgecount; j++) + { + x = Dest[j]; + y = Source[j]; + if(distance[x] > distance[y] + Weight[j]) + { + distance[x] = -1; + } + } + } + for(i = 0; i < edgecount; i++) + { + x = Dest[i]; + y = Source[i]; + if(distance[x] > distance[y] + Weight[i]) + { + return; + } + } + + for(i = 0; i < nodecount; i++) + { + __VERIFIER_assert(distance[i]>=0); + } + +} + diff --git a/data/benchmarks/accelerating_invariant_generation/svcomp/eureka_01_true.c b/data/benchmarks/accelerating_invariant_generation/svcomp/eureka_01_true.c new file mode 100644 index 000000000..2f67ad9fe --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/svcomp/eureka_01_true.c @@ -0,0 +1,58 @@ +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: goto ERROR; + } + return; +} +int INFINITY = 899; + +int main(){ + int nodecount = 5; + int edgecount = 20; + int source = 0; + int Source[20] = {0,4,1,1,0,0,1,3,4,4,2,2,3,0,0,3,1,2,2,3}; + int Dest[20] = {1,3,4,1,1,4,3,4,3,0,0,0,0,2,3,0,2,1,0,4}; + int Weight[20] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19}; + int distance[5]; + int x,y; + int i,j; + + for(i = 0; i < nodecount; i++){ + if(i == source){ + distance[i] = 0; + } + else { + distance[i] = INFINITY; + } + } + + for(i = 0; i < nodecount; i++) + { + for(j = 0; j < edgecount; j++) + { + x = Dest[j]; + y = Source[j]; + if(distance[x] > distance[y] + Weight[j]) + { + distance[x] = distance[y] + Weight[j]; + } + } + } + for(i = 0; i < edgecount; i++) + { + x = Dest[i]; + y = Source[i]; + if(distance[x] > distance[y] + Weight[i]) + { + return 0; + } + } + + for(i = 0; i < nodecount; i++) + { + __VERIFIER_assert(distance[i]>=0); + } + + return 0; +} + diff --git a/data/benchmarks/accelerating_invariant_generation/svcomp/eureka_05_true.c b/data/benchmarks/accelerating_invariant_generation/svcomp/eureka_05_true.c new file mode 100644 index 000000000..5345b95f1 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/svcomp/eureka_05_true.c @@ -0,0 +1,40 @@ +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: goto ERROR; + } + return; +} + +#define SIZE 5 + +int array[SIZE]; +int n=SIZE; + +void SelectionSort() +{ + int lh, rh, i, temp; + + for (lh = 0; lh < n; lh++) { + rh = lh; + for (i = lh + 1; i < n; i++) + if (array[i] < array[rh]) rh = i; + temp = array[lh]; + array[lh] = array[rh]; + array[rh] = temp; + } +} + +int main(void){ + + int array[SIZE],i; + + for(i=SIZE-1; i>=0; i--) + array[i]=i; + + SelectionSort(); + + for(i=0; i0); + for(i=0; i0); + for(i=0; 1; i++) + { + __VERIFIER_assert(x==0); + } + __VERIFIER_assert(x==0); +} + diff --git a/data/benchmarks/accelerating_invariant_generation/svcomp/for_infinite_loop_2_true.c b/data/benchmarks/accelerating_invariant_generation/svcomp/for_infinite_loop_2_true.c new file mode 100644 index 000000000..3ea74d60d --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/svcomp/for_infinite_loop_2_true.c @@ -0,0 +1,21 @@ +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: goto ERROR; + } + return; +} + +int __VERIFIER_nondet_int(); + +int main() { + int i=0, x=0, y=0; + int n=__VERIFIER_nondet_int(); + __VERIFIER_assume(n>0); + for(i=0; 1; i++) + { + __VERIFIER_assert(x==0); + } + __VERIFIER_assert(x!=0); +} + diff --git a/data/benchmarks/accelerating_invariant_generation/svcomp/heavy_true.c b/data/benchmarks/accelerating_invariant_generation/svcomp/heavy_true.c new file mode 100644 index 000000000..16ad9fbd4 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/svcomp/heavy_true.c @@ -0,0 +1,19 @@ +/* Licensed under the GPLv2 */ + +int main(int argc, char **argv) +{ + static char array[1024 * 1024] = { 1 }; + unsigned int a = 1, i, j, k; + + for (i = 0; i < sizeof(array); i++) + for (j = 0; j < sizeof(array); j++) + for (k = 0; k < sizeof(array); k++) + array[i] = array[j] + array[k]; + + if (a != 0) + goto ERROR; + + return array[100]; +ERROR: + return 1; +} diff --git a/data/benchmarks/accelerating_invariant_generation/svcomp/insertion_sort_false.c b/data/benchmarks/accelerating_invariant_generation/svcomp/insertion_sort_false.c new file mode 100644 index 000000000..e11e4d208 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/svcomp/insertion_sort_false.c @@ -0,0 +1,25 @@ +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: goto ERROR; + } + return; +} +unsigned int __VERIFIER_nondet_uint(); +int main() { + unsigned int SIZE=__VERIFIER_nondet_uint(); + int i, j, k, key; + int v[SIZE]; + for (j=1;j=0) && (v[i]>key)) { + if (i<2) + v[i+1] = v[i]; + i = i - 1; + } + v[i+1] = key; + } + for (k=1;k=0) && (v[i]>key)) { + v[i+1] = v[i]; + i = i - 1; + } + v[i+1] = key; + } + for (k=1;k= 0; i--) { + str2[j] = str1[0]; + j++; + } + + j = MAX-1; + for (i=0; i= 0; i--) { + str2[j] = str1[i]; + j++; + } + + j = max-1; + for (i=0; i - restrictions for our experimental environment */ +/* */ +/* 1. Completely structured. */ +/* - There are no unconditional jumps. */ +/* - There are no exit from loop bodies. */ +/* (There are no 'break' or 'return' in loop bodies) */ +/* 2. No 'switch' statements. */ +/* 3. No 'do..while' statements. */ +/* 4. Expressions are restricted. */ +/* - There are no multiple expressions joined by 'or', */ +/* 'and' operations. */ +/* 5. No library calls. */ +/* - All the functions needed are implemented in the */ +/* source file. */ +/* */ +/* */ +/*************************************************************************/ +/* */ +/* FILE: ludcmp.c */ +/* SOURCE : Turbo C Programming for Engineering */ +/* */ +/* DESCRIPTION : */ +/* */ +/* Simultaneous linear equations by LU decomposition. */ +/* The arrays a[][] and b[] are input and the array x[] is output */ +/* row vector. */ +/* The variable n is the number of equations. */ +/* The input arrays are initialized in function main. */ +/* */ +/* */ +/* REMARK : */ +/* */ +/* EXECUTION TIME : */ +/* */ +/* */ +/*************************************************************************/ + + + + + +/* +** Benchmark Suite for Real-Time Applications, by Sung-Soo Lim +** +** III-4. ludcmp.c : Simultaneous Linear Equations by LU Decomposition +** (from the book C Programming for EEs by Hyun Soon Ahn) +*/ + + + +double a[50][50], b[50], x[50]; + +int ludcmp(int nmax, int n, double eps); + + +static double fabs(double n) +{ + double f; + + if (n >= 0) f = n; + else f = -n; + return f; +} + +void main() +{ + + int i, j, nmax = 50, n = 5, chkerr; + double eps, w; + + eps = 1.0e-6; + + for(i = 0; i <= n; i++) + { + w = 0.0; + for(j = 0; j <= n; j++) + { + a[i][j] = (i + 1) + (j + 1); + if(i == j) a[i][j] *= 10.0; + w += a[i][j]; + } + __VERIFIER_assert(i < 50); + b[i] = w; + } + + chkerr = ludcmp(nmax, n, eps); + +} + +int ludcmp(int nmax, int n, double eps) +{ + + int i, j, k; + double w, y[100]; + + if(n > 99 || eps <= 0.0) return(999); + for(i = 0; i < n; i++) + { + if(fabs(a[i][i]) <= eps) return(1); + for(j = i+1; j <= n; j++) + { + w = a[j][i]; + if(i != 0) + for(k = 0; k < i; k++) + w -= a[j][k] * a[k][i]; + a[j][i] = w / a[i][i]; + } + for(j = i+1; j <= n; j++) + { + w = a[i+1][j]; + for(k = 0; k <= i; k++) + w -= a[i+1][k] * a[k][j]; + a[i+1][j] = w; + } + } + y[0] = b[0]; + for(i = 1; i <= n; i++) + { + w = b[i]; + for(j = 0; j < i; j++) + w -= a[i][j] * y[j]; + y[i] = w; + } + x[n] = y[n] / a[n][n]; + for(i = n-1; i >= 0; i--) + { + w = y[i]; + for(j = i+1; j <= n; j++) + w -= a[i][j] * x[j]; + x[i] = w / a[i][i] ; + } + return(0); + +} + diff --git a/data/benchmarks/accelerating_invariant_generation/svcomp/ludcmp_false.c b/data/benchmarks/accelerating_invariant_generation/svcomp/ludcmp_false.c new file mode 100644 index 000000000..ac602f313 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/svcomp/ludcmp_false.c @@ -0,0 +1,151 @@ +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: goto ERROR; + } + return; +} +/*************************************************************************/ +/* */ +/* SNU-RT Benchmark Suite for Worst Case Timing Analysis */ +/* ===================================================== */ +/* Collected and Modified by S.-S. Lim */ +/* sslim@archi.snu.ac.kr */ +/* Real-Time Research Group */ +/* Seoul National University */ +/* */ +/* */ +/* < Features > - restrictions for our experimental environment */ +/* */ +/* 1. Completely structured. */ +/* - There are no unconditional jumps. */ +/* - There are no exit from loop bodies. */ +/* (There are no 'break' or 'return' in loop bodies) */ +/* 2. No 'switch' statements. */ +/* 3. No 'do..while' statements. */ +/* 4. Expressions are restricted. */ +/* - There are no multiple expressions joined by 'or', */ +/* 'and' operations. */ +/* 5. No library calls. */ +/* - All the functions needed are implemented in the */ +/* source file. */ +/* */ +/* */ +/*************************************************************************/ +/* */ +/* FILE: ludcmp.c */ +/* SOURCE : Turbo C Programming for Engineering */ +/* */ +/* DESCRIPTION : */ +/* */ +/* Simultaneous linear equations by LU decomposition. */ +/* The arrays a[][] and b[] are input and the array x[] is output */ +/* row vector. */ +/* The variable n is the number of equations. */ +/* The input arrays are initialized in function main. */ +/* */ +/* */ +/* REMARK : */ +/* */ +/* EXECUTION TIME : */ +/* */ +/* */ +/*************************************************************************/ + + + + + +/* +** Benchmark Suite for Real-Time Applications, by Sung-Soo Lim +** +** III-4. ludcmp.c : Simultaneous Linear Equations by LU Decomposition +** (from the book C Programming for EEs by Hyun Soon Ahn) +*/ + + + +double a[50][50], b[50], x[50]; + +int ludcmp(int nmax, int n, double eps); + + +static double fabs(double n) +{ + double f; + + if (n >= 0) f = n; + else f = -n; + return f; +} + +void main() +{ + + int i, j, nmax = 50, n = 5, chkerr; + double eps, w; + + eps = 1.0e-6; + + for(i = 0; i <= n; i++) + { + w = 0.0; + for(j = 0; j <= n; j++) + { + a[i][j] = (i + 1) + (j + 1); + if(i == j) a[i][j] *= 10.0; + w += a[i][j]; + } + __VERIFIER_assert(i==2); + b[i] = w; + } + + chkerr = ludcmp(nmax, n, eps); + +} + +int ludcmp(int nmax, int n, double eps) +{ + + int i, j, k; + double w, y[100]; + + if(n > 99 || eps <= 0.0) return(999); + for(i = 0; i < n; i++) + { + if(fabs(a[i][i]) <= eps) return(1); + for(j = i+1; j <= n; j++) + { + w = a[j][i]; + if(i != 0) + for(k = 0; k < i; k++) + w -= a[j][k] * a[k][i]; + a[j][i] = w / a[i][i]; + } + for(j = i+1; j <= n; j++) + { + w = a[i+1][j]; + for(k = 0; k <= i; k++) + w -= a[i+1][k] * a[k][j]; + a[i+1][j] = w; + } + } + y[0] = b[0]; + for(i = 1; i <= n; i++) + { + w = b[i]; + for(j = 0; j < i; j++) + w -= a[i][j] * y[j]; + y[i] = w; + } + x[n] = y[n] / a[n][n]; + for(i = n-1; i >= 0; i--) + { + w = y[i]; + for(j = i+1; j <= n; j++) + w -= a[i][j] * x[j]; + x[i] = w / a[i][i] ; + } + return(0); + +} + diff --git a/data/benchmarks/accelerating_invariant_generation/svcomp/matrix_false.c b/data/benchmarks/accelerating_invariant_generation/svcomp/matrix_false.c new file mode 100644 index 000000000..6417bb5b7 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/svcomp/matrix_false.c @@ -0,0 +1,31 @@ +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: goto ERROR; + } + return; +} +extern unsigned int __VERIFIER_nondet_uint(); +extern int __VERIFIER_nondet_int(); + +int main() +{ + unsigned int N_LIN=__VERIFIER_nondet_uint(); + unsigned int N_COL=__VERIFIER_nondet_uint(); + unsigned int j,k; + int matriz[N_COL][N_LIN], maior; + + maior = __VERIFIER_nondet_int(); + for(j=0;jmaior) + maior = matriz[j][k]; + } + + for(j=0;j=maior) + maior = matriz[j][k]; + } + + __VERIFIER_assert(matriz[0][0]<=maior); +} + diff --git a/data/benchmarks/accelerating_invariant_generation/svcomp/myassert.h b/data/benchmarks/accelerating_invariant_generation/svcomp/myassert.h new file mode 100644 index 000000000..83d978b12 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/svcomp/myassert.h @@ -0,0 +1,8 @@ + +__VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: goto ERROR; + } + return; +} + diff --git a/data/benchmarks/accelerating_invariant_generation/svcomp/n.c11_true.c b/data/benchmarks/accelerating_invariant_generation/svcomp/n.c11_true.c new file mode 100644 index 000000000..90df007e5 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/svcomp/n.c11_true.c @@ -0,0 +1,31 @@ +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: goto ERROR; + } + return; +} + +extern _Bool __VERIFIER_nondet_bool(); + +int main(){ + int a[5]; + int len=0; + + int i; + + + while(__VERIFIER_nondet_bool()){ + + if (len==4) + len =0; + + a[len]=0; + + len++; + } + __VERIFIER_assert(len>=0 && len<5); + return 1; + + +} + diff --git a/data/benchmarks/accelerating_invariant_generation/svcomp/n.c24_true.c b/data/benchmarks/accelerating_invariant_generation/svcomp/n.c24_true.c new file mode 100644 index 000000000..6aa4889c4 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/svcomp/n.c24_true.c @@ -0,0 +1,89 @@ +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: goto ERROR; + } + return; +} +#include +extern int __VERIFIER_nondet_int(void); + +int bar(char *x) +{ + return __VERIFIER_nondet_int(); +} + +int foo(int * x){ + *x = __VERIFIER_nondet_int(); + return *x; +} +int main(){ + int i,j,ret,offset, tmp_cnt, tel_data,klen; + /* source snippet*/ + char x [1000]; + + for (i = 0; i < 1000; ++i) + x[i]= __VERIFIER_nondet_int(); + + for (i= 0; i < 1000; ++i){ + + ret = __VERIFIER_nondet_int(); + if (ret != 0) + return -1; + tmp_cnt = __VERIFIER_nondet_int(); + if (tmp_cnt < 0) + return -1; + + + for ( offset = 0; offset < tmp_cnt; offset++ ) + { + ret = foo(&tel_data ) ; + if ( ( ret == 0 ) || ( ret == 1 ) ) + { + + return 1 ; + } + else if ( ret == -1 ) + { + + continue ; + } + + + for ( j = 0; x[j] != 0; j++ ) + { + + if ( x[i] == 1) + { + + memmove( &x[i], &x[i + 1], (1001) - ( i + 1 ) ) ; + } + } + + + ret = bar( x) ; + + if ( ret != -1 ) + { + + continue ; + } + + + klen = strlen(x ) ; + + if ( klen > 20 ) + { + + x[i]=0; + + } + else if ( klen > 0 ) + { + x[i] = -1; + } + } + } + __VERIFIER_assert(offset>=0 && offset<=1000); + return 1; +} + diff --git a/data/benchmarks/accelerating_invariant_generation/svcomp/n.c40_true.c b/data/benchmarks/accelerating_invariant_generation/svcomp/n.c40_true.c new file mode 100644 index 000000000..51401c6c1 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/svcomp/n.c40_true.c @@ -0,0 +1,19 @@ +int __VERIFIER_nondet_int(); + + char x[100], y[100]; + int i,j,k; + +void main() { + k = __VERIFIER_nondet_int(); + + i = 0; + while(x[i] != 0){ + y[i] = x[i]; + i++; + } + y[i] = 0; + + if(k >= 0 && k < i) + if(y[k] == 0) + {ERROR: goto ERROR;} +} diff --git a/data/benchmarks/accelerating_invariant_generation/svcomp/nec11_false.c b/data/benchmarks/accelerating_invariant_generation/svcomp/nec11_false.c new file mode 100644 index 000000000..839657cb3 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/svcomp/nec11_false.c @@ -0,0 +1,30 @@ +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: goto ERROR; + } + return; +} + +_Bool __VERIFIER_nondet_bool(); + +int main(){ + int a[5]; + int len=0; + _Bool c=__VERIFIER_nondet_bool(); + int i; + + + while(c){ + + if (len==4) + len =0; + + a[len]=0; + + len++; + } + __VERIFIER_assert(len==5); + return 1; + + +} diff --git a/data/benchmarks/accelerating_invariant_generation/svcomp/nec20_false.c b/data/benchmarks/accelerating_invariant_generation/svcomp/nec20_false.c new file mode 100644 index 000000000..2558467f4 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/svcomp/nec20_false.c @@ -0,0 +1,38 @@ +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: goto ERROR; + } + return; +} +int b; +_Bool __VERIFIER_nondet_bool(); +int main(){ + _Bool k=__VERIFIER_nondet_bool(); + int i,n,j; + int a[1025]; + + if (k){ + n=0; + } else { + n=1023; + } + + i=0; + + while ( i <= n){ + i++; + j= j +2; + } + + a[i]=0; + a[j]=0; + __VERIFIER_assert(j<1025); + a[b]=0; + if (b >= 0 && b < 1023) + a[b]=1; + else + a[b%1023] =1; + + return 1; + +} diff --git a/data/benchmarks/accelerating_invariant_generation/svcomp/nec40_true.c b/data/benchmarks/accelerating_invariant_generation/svcomp/nec40_true.c new file mode 100644 index 000000000..d113517f0 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/svcomp/nec40_true.c @@ -0,0 +1,25 @@ +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: goto ERROR; + } + return; +} +int __VERIFIER_nondet_int(); + + char x[100], y[100]; + int i,j,k; + +void main() { + k = __VERIFIER_nondet_int(); + + i = 0; + while(x[i] != 0){ + y[i] = x[i]; + i++; + } + y[i] = 0; + + if(k >= 0 && k < i) + if(y[k] != 0) + {__VERIFIER_assert(0);} +} diff --git a/data/benchmarks/accelerating_invariant_generation/svcomp/sum01_bug02_false.c b/data/benchmarks/accelerating_invariant_generation/svcomp/sum01_bug02_false.c new file mode 100644 index 000000000..1f98f5e30 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/svcomp/sum01_bug02_false.c @@ -0,0 +1,17 @@ +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: goto ERROR; + } + return; +} +#define a (2) +extern unsigned int __VERIFIER_nondet_uint(); +int main() { + int i, j=10, n=__VERIFIER_nondet_uint(), sn=0; + for(i=1; i<=n; i++) { + if (i=100 || z<=100); +} + + diff --git a/data/benchmarks/accelerating_invariant_generation/svcomp/trex02_false.c b/data/benchmarks/accelerating_invariant_generation/svcomp/trex02_false.c new file mode 100644 index 000000000..516a66776 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/svcomp/trex02_false.c @@ -0,0 +1,28 @@ +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: goto ERROR; + } + return; +} +_Bool __VERIFIER_nondet_bool(); +int __VERIFIER_nondet_int(); + +//x is an input variable +int x; + +void foo() { + x--; +} + +int main() { + x=__VERIFIER_nondet_int(); + while (x > 0) { + _Bool c = __VERIFIER_nondet_bool(); + if(c) foo(); + else foo(); + } + __VERIFIER_assert(x==0); +} + + + diff --git a/data/benchmarks/accelerating_invariant_generation/svcomp/trex02_true.c b/data/benchmarks/accelerating_invariant_generation/svcomp/trex02_true.c new file mode 100644 index 000000000..283a4f4f9 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/svcomp/trex02_true.c @@ -0,0 +1,28 @@ +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: goto ERROR; + } + return; +} +_Bool __VERIFIER_nondet_bool(); +int __VERIFIER_nondet_int(); + +//x is an input variable +int x; + +void foo() { + x--; +} + +int main() { + x=__VERIFIER_nondet_int(); + while (x > 0) { + _Bool c = __VERIFIER_nondet_bool(); + if(c) foo(); + else foo(); + } + __VERIFIER_assert(x<=0); +} + + + diff --git a/data/benchmarks/accelerating_invariant_generation/svcomp/trex03_false.c b/data/benchmarks/accelerating_invariant_generation/svcomp/trex03_false.c new file mode 100644 index 000000000..3d540b049 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/svcomp/trex03_false.c @@ -0,0 +1,30 @@ +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: goto ERROR; + } + return; +} +#define bool int + +extern unsigned int __VERIFIER_nondet_uint(); +extern bool __VERIFIER_nondet_bool(); + +int main() +{ + unsigned int x1=__VERIFIER_nondet_uint(), x2=__VERIFIER_nondet_uint(), x3=__VERIFIER_nondet_uint(); + unsigned int d1=1, d2=1, d3=1; + bool c1=__VERIFIER_nondet_bool(), c2=__VERIFIER_nondet_bool(); + + while(x1>0 && x2>0 && x3>0) + { + if (c1) x1=x1-d1; + else if (c2) x2=x2-d2; + else x3=x3-d3; + c1=__VERIFIER_nondet_bool(); + c2=__VERIFIER_nondet_bool(); + } + + __VERIFIER_assert(x1==0 && x2==0 && x3==0); + return 0; +} + diff --git a/data/benchmarks/accelerating_invariant_generation/svcomp/trex03_true.c b/data/benchmarks/accelerating_invariant_generation/svcomp/trex03_true.c new file mode 100644 index 000000000..ebdd7c14a --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/svcomp/trex03_true.c @@ -0,0 +1,28 @@ +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: goto ERROR; + } + return; +} +unsigned int __VERIFIER_nondet_uint(); +_Bool __VERIFIER_nondet_bool(); + +int main() +{ + unsigned int x1=__VERIFIER_nondet_uint(), x2=__VERIFIER_nondet_uint(), x3=__VERIFIER_nondet_uint(); + unsigned int d1=1, d2=1, d3=1; + _Bool c1=__VERIFIER_nondet_bool(), c2=__VERIFIER_nondet_bool(); + + while(x1>0 && x2>0 && x3>0) + { + if (c1) x1=x1-d1; + else if (c2) x2=x2-d2; + else x3=x3-d3; + c1=__VERIFIER_nondet_bool(); + c2=__VERIFIER_nondet_bool(); + } + + __VERIFIER_assert(x1==0 || x2==0 || x3==0); + return 0; +} + diff --git a/data/benchmarks/accelerating_invariant_generation/svcomp/veris.c_NetBSD-libc__loop_true.c b/data/benchmarks/accelerating_invariant_generation/svcomp/veris.c_NetBSD-libc__loop_true.c new file mode 100644 index 000000000..a7af3ad9d --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/svcomp/veris.c_NetBSD-libc__loop_true.c @@ -0,0 +1,36 @@ +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: goto ERROR; + } + return; +} +typedef int Char; +#define MAXPATHLEN 1 + +Char *tmp; + +int glob2 (Char *pathbuf, Char *pathlim) +{ + Char *p; + + for (p = pathbuf; p <= pathlim; p++) { + /* BAD */ + __VERIFIER_assert(p<=tmp); + *p = 1; + } + + return 0; +} + +int main () +{ + Char pathbuf[MAXPATHLEN+1]; + + Char *bound = pathbuf + sizeof(pathbuf)/sizeof(*pathbuf) - 1; + + tmp = pathbuf + sizeof(pathbuf)/sizeof(*pathbuf) - 1; + + glob2 (pathbuf, bound); + + return 0; +} diff --git a/data/benchmarks/accelerating_invariant_generation/svcomp/veris.c_OpenSER__cases1_stripFullBoth_arr_true.c b/data/benchmarks/accelerating_invariant_generation/svcomp/veris.c_OpenSER__cases1_stripFullBoth_arr_true.c new file mode 100644 index 000000000..57033331f --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/svcomp/veris.c_OpenSER__cases1_stripFullBoth_arr_true.c @@ -0,0 +1,192 @@ +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: goto ERROR; + } + return; +} +#ifndef _BASE_H +#define _BASE_H + +/* Only #define it if it hasn't already been defined using -D */ +#ifndef BASE_SZ +#define BASE_SZ 2 +#endif + +#ifndef MAX_GETC +#define MAX_GETC 10 +#endif + +#endif + +#ifndef _STUBS_H +#define _STUBS_H + +#define NULL ((void *)0) +#define EOS 0 +#define EOF -1 +#define ERR -1 + +/* I had size_t being an unsigned long before, but that led to the + * infamous "Equality without matching types" error when I used a + * size_t to index into an array. */ +typedef int size_t; +typedef int bool; +#define true 1 +#define false 0 + +#define TYPECAST_MEMCPY 0 + +char *strchr(const char *s, int c); +char *strrchr(const char *s, int c); +char *strstr(const char *haystack, const char *needle); +char *strncpy (char *dest, const char *src, size_t n); +char *strncpy_ptr (char *dest, const char *src, size_t n); +char *strcpy (char *dest, const char *src); +unsigned strlen(const char *s); +int strncmp (const char *s1, const char *s2, size_t n); +int strcmp (const char *s1, const char *s2); +char *strcat(char *dest, const char *src); + +void *memcpy(void *dest, const void *src, size_t n); + +int isascii (int c); +int isspace (int c); + +int getc (/* ignore FILE* arg */); + +/* Extensions to libc's string library */ +char *strrand (char *s); +int istrrand (char *s); +int istrchr(const char *s, int c); +int istrrchr(const char *s, int c); +int istrncmp (const char *s1, int start, const char *s2, size_t n); +int istrstr(const char *haystack, const char *needle); + +/* Hackish duplicate functions to enable us to determine which claims + * are relevant. Oh, the hilarity. */ +char *r_strncpy (char *dest, const char *src, size_t n); +char *r_strcpy (char *dest, const char *src); +char *r_strcat(char *dest, const char *src); +char *r_strncat(char *dest, const char *src, size_t n); +void *r_memcpy(void *dest, const void *src, size_t n); + +#endif + +typedef unsigned int u_int; +typedef unsigned char u_int8_t; + +struct ieee80211_scan_entry { + u_int8_t *se_rsn_ie; /* captured RSN ie */ +}; + +#define IEEE80211_ELEMID_RSN 200 /* fake */ + +/* Size of an array leader[] which is written to buf[] before it is + * overflowed by the ie[] array. */ +#define LEADERSZ 1 + +/* We first write the "leader" to buf[], and then write from the "ie" + * array. buf[] has to be bigger than LEADERSZ by at least 2. */ +#define BUFSZ BASE_SZ + LEADERSZ + 3 + +/* Just has to be big enough to overflow buf[] + * Note that for each byte in ie[], two bytes are written to buf[] in + * encode_ie() */ +#define IESZ BUFSZ - LEADERSZ + +typedef int NSS_STATUS; + +/* Size of overflowed buffer. */ +#define FSTRING_LEN BASE_SZ /* originally 256 */ +typedef char fstring[FSTRING_LEN]; + +/* Size of input buffer. */ +#define INSZ (FSTRING_LEN+2) + +// Destination buffer. +#define BUF BASE_SZ + +// Source buffers. Make each big enough that the size checks in the OK +// versions are necessary to ensure safety. +#define GECOS BASE_SZ + 2 +#define LOGIN BASE_SZ + 2 + +#define EXPRESSION_LENGTH BASE_SZ +#define NEEDLE "EX" +#define NEEDLE_SZ 2 + +/* Enough to fill a buffer of size EXPRESSION_LENGTH, enough to + * contain the needle, and enough to overflow the buffer. */ +#define LINE_LENGTH EXPRESSION_LENGTH + NEEDLE_SZ + 4 + +/* Size of buffer being overflowed. + * Ensure that SUN_PATH_SZ - 1 is non-negative */ +#define SUN_PATH_SZ BASE_SZ + 1/* originally 108 */ + +/* Size of input buffer. */ +#define FILENAME_SZ SUN_PATH_SZ + 2 /* originally 1024 */ + +struct sockaddr_un +{ + char sun_path[SUN_PATH_SZ]; /* Path name. */ +}; + + + +static int parse_expression_list(char *str) +{ + int start=0, i=-1, j=-1; + char str2[EXPRESSION_LENGTH]; + + if (!str) return -1; + + do { + + /* i only changes here --> it's the "current character" */ + i++; + switch(str[i]) { + case EOS: /* word found */ + + /* Skip initial whitespace from start of the word being processed */ + while ((str[start] == ' ') || (str[start] == '\t')) start++; + + /* Skip quote marks */ + if (str[start] == '"') start++; + + /* Set j to point to the end of the current word */ + j = i-1; + + /* Skip over quotes and whitespace at the END of the word */ + while ((0 < j) && ((str[j] == ' ') || (str[j] == '\t'))) j--; + if ((0 < j) && (str[j] == '"')) j--; + + /* If word not empty.... */ + if (start<=j) { + /* valid word */ + if (j-start+1>=EXPRESSION_LENGTH) { + return -1; + } + /* OK */ + r_strncpy(str2, str+start, j-start+1); + str2[j-start+1] = EOS; + } else { + /* parsing error */ + return -1; + } + /* for the next word */ + start = i+1; + } + } while (str[i] != EOS); + + return 0; +} + + +int main () +{ + char A [LINE_LENGTH+1]; + A[LINE_LENGTH] = EOS; + + parse_expression_list (A); + return 0; +} diff --git a/data/benchmarks/accelerating_invariant_generation/svcomp/veris.c_sendmail__tTflag_arr_one_loop_true.c b/data/benchmarks/accelerating_invariant_generation/svcomp/veris.c_sendmail__tTflag_arr_one_loop_true.c new file mode 100644 index 000000000..1cbdc0689 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/svcomp/veris.c_sendmail__tTflag_arr_one_loop_true.c @@ -0,0 +1,30 @@ +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: goto ERROR; + } + return; +} +int main (void) +{ + char in[11]; // = "3277192070"; + char *s; + unsigned char c; + unsigned int i, j; + int idx_in; + in[10] = 0; + idx_in = 0; + s = in; + i = 0; + c = in[idx_in]; + while (('0' <= c) && (c <= '9')) + { + j = c - '0'; + i = i * 10 + j; + idx_in++; + c = in[idx_in]; + } + /* OK */ + __VERIFIER_assert (i >= 0); + return 0; +} + diff --git a/data/benchmarks/accelerating_invariant_generation/svcomp/verisec_NetBSD-libc__loop_false.c b/data/benchmarks/accelerating_invariant_generation/svcomp/verisec_NetBSD-libc__loop_false.c new file mode 100644 index 000000000..71d236dd3 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/svcomp/verisec_NetBSD-libc__loop_false.c @@ -0,0 +1,37 @@ +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: goto ERROR; + } + return; +} +typedef int Char; +#define MAXPATHLEN 1 + +Char *tmp; + +int glob2 (Char *pathbuf, Char *pathlim) +{ + Char *p; + + for (p = pathbuf; p <= pathlim; p++) { + /* BAD */ + __VERIFIER_assert(p<=tmp); + *p = 1; + } + + return 0; +} + +int main () +{ + Char pathbuf[MAXPATHLEN+1]; + + Char *bound = pathbuf + sizeof(pathbuf) - 1; + + tmp = pathbuf + sizeof(pathbuf)/sizeof(*pathbuf) - 1; + + glob2 (pathbuf, bound); + + return 0; +} + diff --git a/data/benchmarks/accelerating_invariant_generation/svcomp/verisec_OpenSER__cases1_stripFullBoth_arr_false.c b/data/benchmarks/accelerating_invariant_generation/svcomp/verisec_OpenSER__cases1_stripFullBoth_arr_false.c new file mode 100644 index 000000000..c1990a839 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/svcomp/verisec_OpenSER__cases1_stripFullBoth_arr_false.c @@ -0,0 +1,190 @@ +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: goto ERROR; + } + return; +} +#ifndef _BASE_H +#define _BASE_H + +/* Only #define it if it hasn't already been defined using -D */ +#ifndef BASE_SZ +#define BASE_SZ 2 +#endif + +#ifndef MAX_GETC +#define MAX_GETC 10 +#endif + +#endif + +#ifndef _STUBS_H +#define _STUBS_H + +#define NULL ((void *)0) +#define EOS 0 +#define EOF -1 +#define ERR -1 + +/* I had size_t being an unsigned long before, but that led to the + * infamous "Equality without matching types" error when I used a + * size_t to index into an array. */ +typedef int size_t; +typedef int bool; +#define true 1 +#define false 0 + +#define TYPECAST_MEMCPY 0 + +char *strchr(const char *s, int c); +char *strrchr(const char *s, int c); +char *strstr(const char *haystack, const char *needle); +char *strncpy (char *dest, const char *src, size_t n); +char *strncpy_ptr (char *dest, const char *src, size_t n); +char *strcpy (char *dest, const char *src); +unsigned strlen(const char *s); +int strncmp (const char *s1, const char *s2, size_t n); +int strcmp (const char *s1, const char *s2); +char *strcat(char *dest, const char *src); + +void *memcpy(void *dest, const void *src, size_t n); + +int isascii (int c); +int isspace (int c); + +int getc (/* ignore FILE* arg */); + +/* Extensions to libc's string library */ +char *strrand (char *s); +int istrrand (char *s); +int istrchr(const char *s, int c); +int istrrchr(const char *s, int c); +int istrncmp (const char *s1, int start, const char *s2, size_t n); +int istrstr(const char *haystack, const char *needle); + +/* Hackish duplicate functions to enable us to determine which claims + * are relevant. Oh, the hilarity. */ +char *r_strncpy (char *dest, const char *src, size_t n); +char *r_strcpy (char *dest, const char *src); +char *r_strcat(char *dest, const char *src); +char *r_strncat(char *dest, const char *src, size_t n); +void *r_memcpy(void *dest, const void *src, size_t n); + +#endif + +typedef unsigned int u_int; +typedef unsigned char u_int8_t; + +struct ieee80211_scan_entry { + u_int8_t *se_rsn_ie; /* captured RSN ie */ +}; + +#define IEEE80211_ELEMID_RSN 200 /* fake */ + +/* Size of an array leader[] which is written to buf[] before it is + * overflowed by the ie[] array. */ +#define LEADERSZ 1 + +/* We first write the "leader" to buf[], and then write from the "ie" + * array. buf[] has to be bigger than LEADERSZ by at least 2. */ +#define BUFSZ BASE_SZ + LEADERSZ + 3 + +/* Just has to be big enough to overflow buf[] + * Note that for each byte in ie[], two bytes are written to buf[] in + * encode_ie() */ +#define IESZ BUFSZ - LEADERSZ + +typedef int NSS_STATUS; + +/* Size of overflowed buffer. */ +#define FSTRING_LEN BASE_SZ /* originally 256 */ +typedef char fstring[FSTRING_LEN]; + +/* Size of input buffer. */ +#define INSZ (FSTRING_LEN+2) + +// Destination buffer. +#define BUF BASE_SZ + +// Source buffers. Make each big enough that the size checks in the OK +// versions are necessary to ensure safety. +#define GECOS BASE_SZ + 2 +#define LOGIN BASE_SZ + 2 + +#define EXPRESSION_LENGTH BASE_SZ +#define NEEDLE "EX" +#define NEEDLE_SZ 2 + +/* Enough to fill a buffer of size EXPRESSION_LENGTH, enough to + * contain the needle, and enough to overflow the buffer. */ +#define LINE_LENGTH EXPRESSION_LENGTH + NEEDLE_SZ + 4 + +/* Size of buffer being overflowed. + * Ensure that SUN_PATH_SZ - 1 is non-negative */ +#define SUN_PATH_SZ BASE_SZ + 1/* originally 108 */ + +/* Size of input buffer. */ +#define FILENAME_SZ SUN_PATH_SZ + 2 /* originally 1024 */ + +struct sockaddr_un +{ + char sun_path[SUN_PATH_SZ]; /* Path name. */ +}; + + + +static int parse_expression_list(char *str) +{ + int start=0, i=-1, j=-1; + char str2[EXPRESSION_LENGTH]; + + if (!str) return -1; + + do { + + /* i only changes here --> it's the "current character" */ + i++; + switch(str[i]) { + case EOS: /* word found */ + + /* Skip initial whitespace from start of the word being processed */ + while ((str[start] == ' ') || (str[start] == '\t')) start++; + + /* Skip quote marks */ + if (str[start] == '"') start++; + + /* Set j to point to the end of the current word */ + j = i-1; + + /* Skip over quotes and whitespace at the END of the word */ + while ((0 < j) && ((str[j] == ' ') || (str[j] == '\t'))) j--; + if ((0 < j) && (str[j] == '"')) j--; + + /* If word not empty.... */ + if (start<=j) { + /* valid word */ + /* BAD */ + r_strncpy(str2, str+start, j-start+1); + __VERIFIER_assert(j - start + 1 < 2); + str2[j-start+1] = EOS; + } else { + /* parsing error */ + return -1; + } + /* for the next word */ + start = i+1; + } + } while (str[i] != EOS); + + return 0; +} + + +int main () +{ + char A [LINE_LENGTH+1]; + A[LINE_LENGTH] = EOS; + + parse_expression_list (A); + return 0; +} diff --git a/data/benchmarks/accelerating_invariant_generation/svcomp/verisec_sendmail__tTflag_arr_one_loop_false.c b/data/benchmarks/accelerating_invariant_generation/svcomp/verisec_sendmail__tTflag_arr_one_loop_false.c new file mode 100644 index 000000000..455b34545 --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/svcomp/verisec_sendmail__tTflag_arr_one_loop_false.c @@ -0,0 +1,31 @@ +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: goto ERROR; + } + return; +} + +int main (void) +{ + char in[11]; // = "3277192070"; + char *s; + unsigned char c; + int i, j; + int idx_in; + in[10] = 0; + idx_in = 0; + s = in; + i = 0; + c = in[idx_in]; + while (('0' <= c) && (c <= '9')) + { + j = c - '0'; + i = i * 10 + j; + idx_in++; + c = in[idx_in]; + } + /* BAD */ + __VERIFIER_assert (i >= 0); + return 0; +} + diff --git a/data/benchmarks/accelerating_invariant_generation/svcomp/vogal_false.c b/data/benchmarks/accelerating_invariant_generation/svcomp/vogal_false.c new file mode 100644 index 000000000..006a9596f --- /dev/null +++ b/data/benchmarks/accelerating_invariant_generation/svcomp/vogal_false.c @@ -0,0 +1,43 @@ +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: goto ERROR; + } + return; +} +#define MAX 10 + +extern char __VERIFIER_nondet_char(); + +main(void) +{ + char string_entrada[MAX], vetor_vogais[]={'a','A','e','E','i','I','o','O','u','U','\0'};; + unsigned int i,j,cont, tam_string, n_caracter; + + for(i=0;i= y) ); +} diff --git a/data/benchmarks/code2inv/10.c b/data/benchmarks/code2inv/10.c new file mode 100644 index 000000000..95bf034bd --- /dev/null +++ b/data/benchmarks/code2inv/10.c @@ -0,0 +1,22 @@ +int main() { + // variable declarations + int x; + int y; + // pre-conditions + assume((x >= 0)); + assume((x <= 2)); + assume((y <= 2)); + assume((y >= 0)); + // loop body + while (unknown()) { + { + (x = (x + 2)); + (y = (y + 2)); + } + + } + // post-condition +if ( (y == 0) ) +assert( (x != 4) ); + +} diff --git a/data/benchmarks/code2inv/100.c b/data/benchmarks/code2inv/100.c new file mode 100644 index 000000000..13764e0bc --- /dev/null +++ b/data/benchmarks/code2inv/100.c @@ -0,0 +1,20 @@ +int main() { + // variable declarations + int n; + int x; + int y; + // pre-conditions + assume((n >= 0)); + (x = n); + (y = 0); + // loop body + while ((x > 0)) { + { + (y = (y + 1)); + (x = (x - 1)); + } + + } + // post-condition +assert( (y == n) ); +} diff --git a/data/benchmarks/code2inv/101.c b/data/benchmarks/code2inv/101.c new file mode 100644 index 000000000..c82f41ef8 --- /dev/null +++ b/data/benchmarks/code2inv/101.c @@ -0,0 +1,18 @@ +int main() { + // variable declarations + int n; + int x; + // pre-conditions + (x = 0); + // loop body + while ((x < n)) { + { + (x = (x + 1)); + } + + } + // post-condition +if ( (x != n) ) +assert( (n < 0) ); + +} diff --git a/data/benchmarks/code2inv/102.c b/data/benchmarks/code2inv/102.c new file mode 100644 index 000000000..d178e19dd --- /dev/null +++ b/data/benchmarks/code2inv/102.c @@ -0,0 +1,18 @@ +int main() { + // variable declarations + int n; + int x; + // pre-conditions + (x = 0); + // loop body + while ((x < n)) { + { + (x = (x + 1)); + } + + } + // post-condition +if ( (n >= 0) ) +assert( (x == n) ); + +} diff --git a/data/benchmarks/code2inv/103.c b/data/benchmarks/code2inv/103.c new file mode 100644 index 000000000..38447115d --- /dev/null +++ b/data/benchmarks/code2inv/103.c @@ -0,0 +1,15 @@ +int main() { + // variable declarations + int x; + // pre-conditions + (x = 0); + // loop body + while ((x < 100)) { + { + (x = (x + 1)); + } + + } + // post-condition +assert( (x == 100) ); +} diff --git a/data/benchmarks/code2inv/104.c b/data/benchmarks/code2inv/104.c new file mode 100644 index 000000000..eac08f5a3 --- /dev/null +++ b/data/benchmarks/code2inv/104.c @@ -0,0 +1,21 @@ +int main() { + // variable declarations + int n; + int v1; + int v2; + int v3; + int x; + // pre-conditions + (x = 0); + // loop body + while ((x < n)) { + { + (x = (x + 1)); + } + + } + // post-condition +if ( (x != n) ) +assert( (n < 0) ); + +} diff --git a/data/benchmarks/code2inv/105.c b/data/benchmarks/code2inv/105.c new file mode 100644 index 000000000..aa93e6acf --- /dev/null +++ b/data/benchmarks/code2inv/105.c @@ -0,0 +1,21 @@ +int main() { + // variable declarations + int n; + int v1; + int v2; + int v3; + int x; + // pre-conditions + (x = 0); + // loop body + while ((x < n)) { + { + (x = (x + 1)); + } + + } + // post-condition +if ( (n >= 0) ) +assert( (x == n) ); + +} diff --git a/data/benchmarks/code2inv/106.c b/data/benchmarks/code2inv/106.c new file mode 100644 index 000000000..92f18a4d6 --- /dev/null +++ b/data/benchmarks/code2inv/106.c @@ -0,0 +1,17 @@ + +int main() { + int a,m,j,k; + + assume(a <= m); + assume(j < 1); + k = 0; + + while ( k < 1) { + if(m < a) { + m = a; + } + k = k + 1; + } + + assert( a >= m); +} diff --git a/data/benchmarks/code2inv/107.c b/data/benchmarks/code2inv/107.c new file mode 100644 index 000000000..08cacf843 --- /dev/null +++ b/data/benchmarks/code2inv/107.c @@ -0,0 +1,17 @@ + + +int main() { + int a,m,j,k; + + j = 0; + k = 0; + + while ( k < 1) { + if(m < a) { + m = a; + } + k = k + 1; + } + + assert( a <= m); +} diff --git a/data/benchmarks/code2inv/108.c b/data/benchmarks/code2inv/108.c new file mode 100644 index 000000000..865d00431 --- /dev/null +++ b/data/benchmarks/code2inv/108.c @@ -0,0 +1,17 @@ + +int main() { + int a,c,m,j,k; + + assume(a <= m); + j = 0; + k = 0; + + while ( k < c) { + if(m < a) { + m = a; + } + k = k + 1; + } + + assert( a <= m); +} diff --git a/data/benchmarks/code2inv/109.c b/data/benchmarks/code2inv/109.c new file mode 100644 index 000000000..061bd2b2e --- /dev/null +++ b/data/benchmarks/code2inv/109.c @@ -0,0 +1,18 @@ + +int main() { + int a,c,m,j,k; + + j = 0; + k = 0; + + while ( k < c) { + if(m < a) { + m = a; + } + k = k + 1; + } + + if( c > 0 ) { + assert( a <= m); + } +} diff --git a/data/benchmarks/code2inv/11.c b/data/benchmarks/code2inv/11.c new file mode 100644 index 000000000..779b1f21b --- /dev/null +++ b/data/benchmarks/code2inv/11.c @@ -0,0 +1,25 @@ +int main() { + // variable declarations + int x; + int y; + int z1; + int z2; + int z3; + // pre-conditions + assume((x >= 0)); + assume((x <= 10)); + assume((y <= 10)); + assume((y >= 0)); + // loop body + while (unknown()) { + { + (x = (x + 10)); + (y = (y + 10)); + } + + } + // post-condition +if ( (x == 20) ) +assert( (y != 0) ); + +} diff --git a/data/benchmarks/code2inv/110.c b/data/benchmarks/code2inv/110.c new file mode 100644 index 000000000..f994ee9ab --- /dev/null +++ b/data/benchmarks/code2inv/110.c @@ -0,0 +1,21 @@ +int main() { + // variable declarations + int i; + int n; + int sn; + // pre-conditions + (sn = 0); + (i = 1); + // loop body + while ((i <= n)) { + { + (i = (i + 1)); + (sn = (sn + 1)); + } + + } + // post-condition +if ( (sn != n) ) +assert( (sn == 0) ); + +} diff --git a/data/benchmarks/code2inv/111.c b/data/benchmarks/code2inv/111.c new file mode 100644 index 000000000..3124b3086 --- /dev/null +++ b/data/benchmarks/code2inv/111.c @@ -0,0 +1,21 @@ +int main() { + // variable declarations + int i; + int n; + int sn; + // pre-conditions + (sn = 0); + (i = 1); + // loop body + while ((i <= n)) { + { + (i = (i + 1)); + (sn = (sn + 1)); + } + + } + // post-condition +if ( (sn != 0) ) +assert( (sn == n) ); + +} diff --git a/data/benchmarks/code2inv/112.c b/data/benchmarks/code2inv/112.c new file mode 100644 index 000000000..9d69845c5 --- /dev/null +++ b/data/benchmarks/code2inv/112.c @@ -0,0 +1,24 @@ +int main() { + // variable declarations + int i; + int n; + int sn; + int v1; + int v2; + int v3; + // pre-conditions + (sn = 0); + (i = 1); + // loop body + while ((i <= n)) { + { + (i = (i + 1)); + (sn = (sn + 1)); + } + + } + // post-condition +if ( (sn != n) ) +assert( (sn == 0) ); + +} diff --git a/data/benchmarks/code2inv/113.c b/data/benchmarks/code2inv/113.c new file mode 100644 index 000000000..49b737577 --- /dev/null +++ b/data/benchmarks/code2inv/113.c @@ -0,0 +1,24 @@ +int main() { + // variable declarations + int i; + int n; + int sn; + int v1; + int v2; + int v3; + // pre-conditions + (sn = 0); + (i = 1); + // loop body + while ((i <= n)) { + { + (i = (i + 1)); + (sn = (sn + 1)); + } + + } + // post-condition +if ( (sn != 0) ) +assert( (sn == n) ); + +} diff --git a/data/benchmarks/code2inv/114.c b/data/benchmarks/code2inv/114.c new file mode 100644 index 000000000..38868b7c9 --- /dev/null +++ b/data/benchmarks/code2inv/114.c @@ -0,0 +1,20 @@ +int main() { + // variable declarations + int sn; + int x; + // pre-conditions + (sn = 0); + (x = 0); + // loop body + while (unknown()) { + { + (x = (x + 1)); + (sn = (sn + 1)); + } + + } + // post-condition +if ( (sn != x) ) +assert( (sn == -1) ); + +} diff --git a/data/benchmarks/code2inv/115.c b/data/benchmarks/code2inv/115.c new file mode 100644 index 000000000..0abf72a61 --- /dev/null +++ b/data/benchmarks/code2inv/115.c @@ -0,0 +1,20 @@ +int main() { + // variable declarations + int sn; + int x; + // pre-conditions + (sn = 0); + (x = 0); + // loop body + while (unknown()) { + { + (x = (x + 1)); + (sn = (sn + 1)); + } + + } + // post-condition +if ( (sn != -1) ) +assert( (sn == x) ); + +} diff --git a/data/benchmarks/code2inv/116.c b/data/benchmarks/code2inv/116.c new file mode 100644 index 000000000..6c9208bcb --- /dev/null +++ b/data/benchmarks/code2inv/116.c @@ -0,0 +1,23 @@ +int main() { + // variable declarations + int sn; + int v1; + int v2; + int v3; + int x; + // pre-conditions + (sn = 0); + (x = 0); + // loop body + while (unknown()) { + { + (x = (x + 1)); + (sn = (sn + 1)); + } + + } + // post-condition +if ( (sn != x) ) +assert( (sn == -1) ); + +} diff --git a/data/benchmarks/code2inv/117.c b/data/benchmarks/code2inv/117.c new file mode 100644 index 000000000..7d703980b --- /dev/null +++ b/data/benchmarks/code2inv/117.c @@ -0,0 +1,23 @@ +int main() { + // variable declarations + int sn; + int v1; + int v2; + int v3; + int x; + // pre-conditions + (sn = 0); + (x = 0); + // loop body + while (unknown()) { + { + (x = (x + 1)); + (sn = (sn + 1)); + } + + } + // post-condition +if ( (sn != -1) ) +assert( (sn == x) ); + +} diff --git a/data/benchmarks/code2inv/118.c b/data/benchmarks/code2inv/118.c new file mode 100644 index 000000000..837804e6a --- /dev/null +++ b/data/benchmarks/code2inv/118.c @@ -0,0 +1,21 @@ +int main() { + // variable declarations + int i; + int size; + int sn; + // pre-conditions + (sn = 0); + (i = 1); + // loop body + while ((i <= size)) { + { + (i = (i + 1)); + (sn = (sn + 1)); + } + + } + // post-condition +if ( (sn != size) ) +assert( (sn == 0) ); + +} diff --git a/data/benchmarks/code2inv/119.c b/data/benchmarks/code2inv/119.c new file mode 100644 index 000000000..f1e328316 --- /dev/null +++ b/data/benchmarks/code2inv/119.c @@ -0,0 +1,21 @@ +int main() { + // variable declarations + int i; + int size; + int sn; + // pre-conditions + (sn = 0); + (i = 1); + // loop body + while ((i <= size)) { + { + (i = (i + 1)); + (sn = (sn + 1)); + } + + } + // post-condition +if ( (sn != 0) ) +assert( (sn == size) ); + +} diff --git a/data/benchmarks/code2inv/12.c b/data/benchmarks/code2inv/12.c new file mode 100644 index 000000000..9f142cf42 --- /dev/null +++ b/data/benchmarks/code2inv/12.c @@ -0,0 +1,25 @@ +int main() { + // variable declarations + int x; + int y; + int z1; + int z2; + int z3; + // pre-conditions + assume((x >= 0)); + assume((x <= 10)); + assume((y <= 10)); + assume((y >= 0)); + // loop body + while (unknown()) { + { + (x = (x + 10)); + (y = (y + 10)); + } + + } + // post-condition +if ( (y == 0) ) +assert( (x != 20) ); + +} diff --git a/data/benchmarks/code2inv/120.c b/data/benchmarks/code2inv/120.c new file mode 100644 index 000000000..4663add3f --- /dev/null +++ b/data/benchmarks/code2inv/120.c @@ -0,0 +1,20 @@ +int main() { + // variable declarations + int i; + int sn; + // pre-conditions + (sn = 0); + (i = 1); + // loop body + while ((i <= 8)) { + { + (i = (i + 1)); + (sn = (sn + 1)); + } + + } + // post-condition +if ( (sn != 8) ) +assert( (sn == 0) ); + +} diff --git a/data/benchmarks/code2inv/121.c b/data/benchmarks/code2inv/121.c new file mode 100644 index 000000000..e84b8a21a --- /dev/null +++ b/data/benchmarks/code2inv/121.c @@ -0,0 +1,20 @@ +int main() { + // variable declarations + int i; + int sn; + // pre-conditions + (sn = 0); + (i = 1); + // loop body + while ((i <= 8)) { + { + (i = (i + 1)); + (sn = (sn + 1)); + } + + } + // post-condition +if ( (sn != 0) ) +assert( (sn == 8) ); + +} diff --git a/data/benchmarks/code2inv/122.c b/data/benchmarks/code2inv/122.c new file mode 100644 index 000000000..f24416a2a --- /dev/null +++ b/data/benchmarks/code2inv/122.c @@ -0,0 +1,24 @@ +int main() { + // variable declarations + int i; + int size; + int sn; + int v1; + int v2; + int v3; + // pre-conditions + (sn = 0); + (i = 1); + // loop body + while ((i <= size)) { + { + (i = (i + 1)); + (sn = (sn + 1)); + } + + } + // post-condition +if ( (sn != size) ) +assert( (sn == 0) ); + +} diff --git a/data/benchmarks/code2inv/123.c b/data/benchmarks/code2inv/123.c new file mode 100644 index 000000000..1bad7053e --- /dev/null +++ b/data/benchmarks/code2inv/123.c @@ -0,0 +1,24 @@ +int main() { + // variable declarations + int i; + int size; + int sn; + int v1; + int v2; + int v3; + // pre-conditions + (sn = 0); + (i = 1); + // loop body + while ((i <= size)) { + { + (i = (i + 1)); + (sn = (sn + 1)); + } + + } + // post-condition +if ( (sn != 0) ) +assert( (sn == size) ); + +} diff --git a/data/benchmarks/code2inv/124.c b/data/benchmarks/code2inv/124.c new file mode 100644 index 000000000..539491cfa --- /dev/null +++ b/data/benchmarks/code2inv/124.c @@ -0,0 +1,22 @@ +int main() { + // variable declarations + int i; + int j; + int x; + int y; + // pre-conditions + (i = x); + (j = y); + // loop body + while ((x != 0)) { + { + (x = (x - 1)); + (y = (y - 1)); + } + + } + // post-condition +if ( (i == j) ) +assert( (y == 0) ); + +} diff --git a/data/benchmarks/code2inv/125.c b/data/benchmarks/code2inv/125.c new file mode 100644 index 000000000..d3e151a6c --- /dev/null +++ b/data/benchmarks/code2inv/125.c @@ -0,0 +1,22 @@ +int main() { + // variable declarations + int i; + int j; + int x; + int y; + // pre-conditions + (i = x); + (j = y); + // loop body + while ((x != 0)) { + { + (x = (x - 1)); + (y = (y - 1)); + } + + } + // post-condition +if ( (y != 0) ) +assert( (i != j) ); + +} diff --git a/data/benchmarks/code2inv/126.c b/data/benchmarks/code2inv/126.c new file mode 100644 index 000000000..5f9f5dca4 --- /dev/null +++ b/data/benchmarks/code2inv/126.c @@ -0,0 +1,25 @@ +int main() { + // variable declarations + int i; + int j; + int x; + int y; + int z1; + int z2; + int z3; + // pre-conditions + (i = x); + (j = y); + // loop body + while ((x != 0)) { + { + (x = (x - 1)); + (y = (y - 1)); + } + + } + // post-condition +if ( (i == j) ) +assert( (y == 0) ); + +} diff --git a/data/benchmarks/code2inv/127.c b/data/benchmarks/code2inv/127.c new file mode 100644 index 000000000..6c1e366b7 --- /dev/null +++ b/data/benchmarks/code2inv/127.c @@ -0,0 +1,25 @@ +int main() { + // variable declarations + int i; + int j; + int x; + int y; + int z1; + int z2; + int z3; + // pre-conditions + (i = x); + (j = y); + // loop body + while ((x != 0)) { + { + (x = (x - 1)); + (y = (y - 1)); + } + + } + // post-condition +if ( (y != 0) ) +assert( (i != j) ); + +} diff --git a/data/benchmarks/code2inv/128.c b/data/benchmarks/code2inv/128.c new file mode 100644 index 000000000..5b36abbac --- /dev/null +++ b/data/benchmarks/code2inv/128.c @@ -0,0 +1,16 @@ +int main() { + // variable declarations + int x; + int y; + // pre-conditions + (x = 1); + // loop body + while ((x < y)) { + { + (x = (x + x)); + } + + } + // post-condition +assert( (x >= 1) ); +} diff --git a/data/benchmarks/code2inv/129.c b/data/benchmarks/code2inv/129.c new file mode 100644 index 000000000..42c3003a9 --- /dev/null +++ b/data/benchmarks/code2inv/129.c @@ -0,0 +1,19 @@ +int main() { + // variable declarations + int x; + int y; + int z1; + int z2; + int z3; + // pre-conditions + (x = 1); + // loop body + while ((x < y)) { + { + (x = (x + x)); + } + + } + // post-condition +assert( (x >= 1) ); +} diff --git a/data/benchmarks/code2inv/13.c b/data/benchmarks/code2inv/13.c new file mode 100644 index 000000000..e1feab33d --- /dev/null +++ b/data/benchmarks/code2inv/13.c @@ -0,0 +1,25 @@ +int main() { + // variable declarations + int x; + int y; + int z1; + int z2; + int z3; + // pre-conditions + assume((x >= 0)); + assume((x <= 2)); + assume((y <= 2)); + assume((y >= 0)); + // loop body + while (unknown()) { + { + (x = (x + 2)); + (y = (y + 2)); + } + + } + // post-condition +if ( (x == 4) ) +assert( (y != 0) ); + +} diff --git a/data/benchmarks/code2inv/130.c b/data/benchmarks/code2inv/130.c new file mode 100644 index 000000000..ee8e88f52 --- /dev/null +++ b/data/benchmarks/code2inv/130.c @@ -0,0 +1,21 @@ + +int main() { + int d1 = 1; + int d2 = 1; + int d3 = 1; + int x1 = 1; + int x2,x3; + + while( x1 > 0) { + if(x2 > 0) { + if(x3 > 0) { + x1 = x1 - d1; + x2 = x2 - d2; + x3 = x3 - d3; + } + } + } + + assert (x2 >= 0); + //assert (x3 >= 0); +} diff --git a/data/benchmarks/code2inv/131.c b/data/benchmarks/code2inv/131.c new file mode 100644 index 000000000..cbdb76302 --- /dev/null +++ b/data/benchmarks/code2inv/131.c @@ -0,0 +1,21 @@ + +int main() { + int d1 = 1; + int d2 = 1; + int d3 = 1; + int x1 = 1; + int x2,x3; + + while( x1 > 0) { + if(x2 > 0) { + if(x3 > 0) { + x1 = x1 - d1; + x2 = x2 - d2; + x3 = x3 - d3; + } + } + } + + //assert (x2 >= 0); + assert (x3 >= 0); +} diff --git a/data/benchmarks/code2inv/132.c b/data/benchmarks/code2inv/132.c new file mode 100644 index 000000000..d9456c683 --- /dev/null +++ b/data/benchmarks/code2inv/132.c @@ -0,0 +1,16 @@ + +int main() { + int i = 0; + int j, c, t; + + while( unknown() ) { + if(c > 48) { + if (c < 57) { + j = i + i; + t = c - 48; + i = j + t; + } + } + } + assert (i >= 0); +} diff --git a/data/benchmarks/code2inv/133.c b/data/benchmarks/code2inv/133.c new file mode 100644 index 000000000..7ff94dd54 --- /dev/null +++ b/data/benchmarks/code2inv/133.c @@ -0,0 +1,17 @@ +int main() { + // variable declarations + int n; + int x; + // pre-conditions + (x = 0); + assume((n >= 0)); + // loop body + while ((x < n)) { + { + (x = (x + 1)); + } + + } + // post-condition +assert( (x == n) ); +} diff --git a/data/benchmarks/code2inv/14.c b/data/benchmarks/code2inv/14.c new file mode 100644 index 000000000..a3770d6a6 --- /dev/null +++ b/data/benchmarks/code2inv/14.c @@ -0,0 +1,25 @@ +int main() { + // variable declarations + int x; + int y; + int z1; + int z2; + int z3; + // pre-conditions + assume((x >= 0)); + assume((x <= 2)); + assume((y <= 2)); + assume((y >= 0)); + // loop body + while (unknown()) { + { + (x = (x + 2)); + (y = (y + 2)); + } + + } + // post-condition +if ( (y == 0) ) +assert( (x != 4) ); + +} diff --git a/data/benchmarks/code2inv/15.c b/data/benchmarks/code2inv/15.c new file mode 100644 index 000000000..df13eeba6 --- /dev/null +++ b/data/benchmarks/code2inv/15.c @@ -0,0 +1,20 @@ + + +int main() +{ + int x = 0; + int m = 0; + int n; + + while (x < n) { + if (unknown()) { + m = x; + } + x = x + 1; + } + + if(n > 0) { + assert (m < n); + //assert (m >= 0); + } +} diff --git a/data/benchmarks/code2inv/16.c b/data/benchmarks/code2inv/16.c new file mode 100644 index 000000000..8cbbd6e50 --- /dev/null +++ b/data/benchmarks/code2inv/16.c @@ -0,0 +1,20 @@ + + +int main() +{ + int x = 0; + int m = 0; + int n; + + while (x < n) { + if (unknown()) { + m = x; + } + x = x + 1; + } + + if(n > 0) { + //assert (m < n); + assert (m >= 0); + } +} diff --git a/data/benchmarks/code2inv/17.c b/data/benchmarks/code2inv/17.c new file mode 100644 index 000000000..d45dd02b0 --- /dev/null +++ b/data/benchmarks/code2inv/17.c @@ -0,0 +1,19 @@ + +int main() +{ + int x = 1; + int m = 1; + int n; + + while (x < n) { + if (unknown()) { + m = x; + } + x = x + 1; + } + + if(n > 1) { + assert (m < n); + //assert (m >= 1); + } +} diff --git a/data/benchmarks/code2inv/18.c b/data/benchmarks/code2inv/18.c new file mode 100644 index 000000000..631f51012 --- /dev/null +++ b/data/benchmarks/code2inv/18.c @@ -0,0 +1,19 @@ + +int main() +{ + int x = 1; + int m = 1; + int n; + + while (x < n) { + if (unknown()) { + m = x; + } + x = x + 1; + } + + if(n > 1) { + //assert (m < n); + assert (m >= 1); + } +} diff --git a/data/benchmarks/code2inv/19.c b/data/benchmarks/code2inv/19.c new file mode 100644 index 000000000..400cc14a6 --- /dev/null +++ b/data/benchmarks/code2inv/19.c @@ -0,0 +1,21 @@ + + +int main() +{ + int z1,z2,z3; + int x = 0; + int m = 0; + int n; + + while (x < n) { + if (unknown()) { + m = x; + } + x = x + 1; + } + + if(n > 0) { + assert (m < n); + //assert (m >= 0); + } +} diff --git a/data/benchmarks/code2inv/2.c b/data/benchmarks/code2inv/2.c new file mode 100644 index 000000000..fe90967d6 --- /dev/null +++ b/data/benchmarks/code2inv/2.c @@ -0,0 +1,18 @@ +int main() { + // variable declarations + int x; + int y; + // pre-conditions + (x = 1); + (y = 0); + // loop body + while ((y < 1000)) { + { + (x = (x + y)); + (y = (y + 1)); + } + + } + // post-condition +assert( (x >= y) ); +} diff --git a/data/benchmarks/code2inv/20.c b/data/benchmarks/code2inv/20.c new file mode 100644 index 000000000..cc69a8842 --- /dev/null +++ b/data/benchmarks/code2inv/20.c @@ -0,0 +1,21 @@ + + +int main() +{ + int z1,z2,z3; + int x = 0; + int m = 0; + int n; + + while (x < n) { + if (unknown()) { + m = x; + } + x = x + 1; + } + + if(n > 0) { + //assert (m < n); + assert (m >= 0); + } +} diff --git a/data/benchmarks/code2inv/21.c b/data/benchmarks/code2inv/21.c new file mode 100644 index 000000000..f1e5593ed --- /dev/null +++ b/data/benchmarks/code2inv/21.c @@ -0,0 +1,20 @@ + +int main() +{ + int z1,z2,z3; + int x = 1; + int m = 1; + int n; + + while (x < n) { + if (unknown()) { + m = x; + } + x = x + 1; + } + + if(n > 1) { + assert (m < n); + //assert (m >= 1); + } +} diff --git a/data/benchmarks/code2inv/22.c b/data/benchmarks/code2inv/22.c new file mode 100644 index 000000000..fc379e618 --- /dev/null +++ b/data/benchmarks/code2inv/22.c @@ -0,0 +1,20 @@ + +int main() +{ + int z1,z2,z3; + int x = 1; + int m = 1; + int n; + + while (x < n) { + if (unknown()) { + m = x; + } + x = x + 1; + } + + if(n > 1) { + //assert (m < n); + assert (m >= 1); + } +} diff --git a/data/benchmarks/code2inv/23.c b/data/benchmarks/code2inv/23.c new file mode 100644 index 000000000..a0c426f4f --- /dev/null +++ b/data/benchmarks/code2inv/23.c @@ -0,0 +1,18 @@ +int main() { + // variable declarations + int i; + int j; + // pre-conditions + (i = 1); + (j = 20); + // loop body + while ((j >= i)) { + { + (i = (i + 2)); + (j = (j - 1)); + } + + } + // post-condition +assert( (j == 13) ); +} diff --git a/data/benchmarks/code2inv/24.c b/data/benchmarks/code2inv/24.c new file mode 100644 index 000000000..95456f9cd --- /dev/null +++ b/data/benchmarks/code2inv/24.c @@ -0,0 +1,18 @@ +int main() { + // variable declarations + int i; + int j; + // pre-conditions + (i = 1); + (j = 10); + // loop body + while ((j >= i)) { + { + (i = (i + 2)); + (j = (j - 1)); + } + + } + // post-condition +assert( (j == 6) ); +} diff --git a/data/benchmarks/code2inv/25.c b/data/benchmarks/code2inv/25.c new file mode 100644 index 000000000..de5776eb3 --- /dev/null +++ b/data/benchmarks/code2inv/25.c @@ -0,0 +1,15 @@ +int main() { + // variable declarations + int x; + // pre-conditions + (x = 10000); + // loop body + while ((x > 0)) { + { + (x = (x - 1)); + } + + } + // post-condition +assert( (x == 0) ); +} diff --git a/data/benchmarks/code2inv/26.c b/data/benchmarks/code2inv/26.c new file mode 100644 index 000000000..d7edc1463 --- /dev/null +++ b/data/benchmarks/code2inv/26.c @@ -0,0 +1,18 @@ +int main() { + // variable declarations + int n; + int x; + // pre-conditions + (x = n); + // loop body + while ((x > 1)) { + { + (x = (x - 1)); + } + + } + // post-condition +if ( (x != 1) ) +assert( (n < 0) ); + +} diff --git a/data/benchmarks/code2inv/27.c b/data/benchmarks/code2inv/27.c new file mode 100644 index 000000000..dd259df95 --- /dev/null +++ b/data/benchmarks/code2inv/27.c @@ -0,0 +1,18 @@ +int main() { + // variable declarations + int n; + int x; + // pre-conditions + (x = n); + // loop body + while ((x > 1)) { + { + (x = (x - 1)); + } + + } + // post-condition +if ( (n >= 0) ) +assert( (x == 1) ); + +} diff --git a/data/benchmarks/code2inv/28.c b/data/benchmarks/code2inv/28.c new file mode 100644 index 000000000..74f12d08f --- /dev/null +++ b/data/benchmarks/code2inv/28.c @@ -0,0 +1,18 @@ +int main() { + // variable declarations + int n; + int x; + // pre-conditions + (x = n); + // loop body + while ((x > 0)) { + { + (x = (x - 1)); + } + + } + // post-condition +if ( (x != 0) ) +assert( (n < 0) ); + +} diff --git a/data/benchmarks/code2inv/29.c b/data/benchmarks/code2inv/29.c new file mode 100644 index 000000000..f2384f3e7 --- /dev/null +++ b/data/benchmarks/code2inv/29.c @@ -0,0 +1,18 @@ +int main() { + // variable declarations + int n; + int x; + // pre-conditions + (x = n); + // loop body + while ((x > 0)) { + { + (x = (x - 1)); + } + + } + // post-condition +if ( (n >= 0) ) +assert( (x == 0) ); + +} diff --git a/data/benchmarks/code2inv/3.c b/data/benchmarks/code2inv/3.c new file mode 100644 index 000000000..d2bec1a5c --- /dev/null +++ b/data/benchmarks/code2inv/3.c @@ -0,0 +1,15 @@ + +int main() +{ + int x = 0; + int y, z; + + while(x < 5) { + x += 1; + if( z <= y) { + y = z; + } + } + + assert (z >= y); +} diff --git a/data/benchmarks/code2inv/30.c b/data/benchmarks/code2inv/30.c new file mode 100644 index 000000000..43f5b3c65 --- /dev/null +++ b/data/benchmarks/code2inv/30.c @@ -0,0 +1,15 @@ +int main() { + // variable declarations + int x; + // pre-conditions + (x = 100); + // loop body + while ((x > 0)) { + { + (x = (x - 1)); + } + + } + // post-condition +assert( (x == 0) ); +} diff --git a/data/benchmarks/code2inv/31.c b/data/benchmarks/code2inv/31.c new file mode 100644 index 000000000..b1fec4ee8 --- /dev/null +++ b/data/benchmarks/code2inv/31.c @@ -0,0 +1,21 @@ +int main() { + // variable declarations + int n; + int v1; + int v2; + int v3; + int x; + // pre-conditions + (x = n); + // loop body + while ((x > 1)) { + { + (x = (x - 1)); + } + + } + // post-condition +if ( (x != 1) ) +assert( (n < 0) ); + +} diff --git a/data/benchmarks/code2inv/32.c b/data/benchmarks/code2inv/32.c new file mode 100644 index 000000000..b016c93d4 --- /dev/null +++ b/data/benchmarks/code2inv/32.c @@ -0,0 +1,21 @@ +int main() { + // variable declarations + int n; + int v1; + int v2; + int v3; + int x; + // pre-conditions + (x = n); + // loop body + while ((x > 1)) { + { + (x = (x - 1)); + } + + } + // post-condition +if ( (n >= 0) ) +assert( (x == 1) ); + +} diff --git a/data/benchmarks/code2inv/33.c b/data/benchmarks/code2inv/33.c new file mode 100644 index 000000000..0d8894b0b --- /dev/null +++ b/data/benchmarks/code2inv/33.c @@ -0,0 +1,21 @@ +int main() { + // variable declarations + int n; + int v1; + int v2; + int v3; + int x; + // pre-conditions + (x = n); + // loop body + while ((x > 0)) { + { + (x = (x - 1)); + } + + } + // post-condition +if ( (x != 0) ) +assert( (n < 0) ); + +} diff --git a/data/benchmarks/code2inv/34.c b/data/benchmarks/code2inv/34.c new file mode 100644 index 000000000..be7944a5c --- /dev/null +++ b/data/benchmarks/code2inv/34.c @@ -0,0 +1,21 @@ +int main() { + // variable declarations + int n; + int v1; + int v2; + int v3; + int x; + // pre-conditions + (x = n); + // loop body + while ((x > 0)) { + { + (x = (x - 1)); + } + + } + // post-condition +if ( (n >= 0) ) +assert( (x == 0) ); + +} diff --git a/data/benchmarks/code2inv/35.c b/data/benchmarks/code2inv/35.c new file mode 100644 index 000000000..016009ee4 --- /dev/null +++ b/data/benchmarks/code2inv/35.c @@ -0,0 +1,27 @@ +int main() { + // variable declarations + int c; + // pre-conditions + (c = 0); + // loop body + while (unknown()) { + { + if ( unknown() ) { + if ( (c != 40) ) + { + (c = (c + 1)); + } + } else { + if ( (c == 40) ) + { + (c = 1); + } + } + + } + + } + // post-condition +if ( (c != 40) ) +assert( (c >= 0) ); +} diff --git a/data/benchmarks/code2inv/36.c b/data/benchmarks/code2inv/36.c new file mode 100644 index 000000000..4173244d6 --- /dev/null +++ b/data/benchmarks/code2inv/36.c @@ -0,0 +1,27 @@ +int main() { + // variable declarations + int c; + // pre-conditions + (c = 0); + // loop body + while (unknown()) { + { + if ( unknown() ) { + if ( (c != 40) ) + { + (c = (c + 1)); + } + } else { + if ( (c == 40) ) + { + (c = 1); + } + } + + } + + } + // post-condition +if ( (c != 40) ) +assert( (c <= 40) ); +} diff --git a/data/benchmarks/code2inv/37.c b/data/benchmarks/code2inv/37.c new file mode 100644 index 000000000..9a4672389 --- /dev/null +++ b/data/benchmarks/code2inv/37.c @@ -0,0 +1,29 @@ +int main() { + // variable declarations + int c; + // pre-conditions + (c = 0); + // loop body + while (unknown()) { + { + if ( unknown() ) { + if ( (c != 40) ) + { + (c = (c + 1)); + } + } else { + if ( (c == 40) ) + { + (c = 1); + } + } + + } + + } + // post-condition +if ( (c < 0) ) +if ( (c > 40) ) +assert( (c == 40) ); + +} diff --git a/data/benchmarks/code2inv/38.c b/data/benchmarks/code2inv/38.c new file mode 100644 index 000000000..465c3e096 --- /dev/null +++ b/data/benchmarks/code2inv/38.c @@ -0,0 +1,20 @@ + +int main() { + int n; + int c = 0; + assume (n > 0); + + while (unknown()) { + if(c == n) { + c = 1; + } + else { + c = c + 1; + } + } + + if(c == n) { + assert( c >= 0); + //assert( c <= n); + } +} diff --git a/data/benchmarks/code2inv/39.c b/data/benchmarks/code2inv/39.c new file mode 100644 index 000000000..759280e9b --- /dev/null +++ b/data/benchmarks/code2inv/39.c @@ -0,0 +1,20 @@ + +int main() { + int n; + int c = 0; + assume (n > 0); + + while (unknown()) { + if(c == n) { + c = 1; + } + else { + c = c + 1; + } + } + + if(c == n) { + //assert( c >= 0); + assert( c <= n); + } +} diff --git a/data/benchmarks/code2inv/4.c b/data/benchmarks/code2inv/4.c new file mode 100644 index 000000000..c7cc2a434 --- /dev/null +++ b/data/benchmarks/code2inv/4.c @@ -0,0 +1,14 @@ +int main() +{ + int x = 0; + int y, z; + + while(x < 500) { + x += 1; + if( z <= y) { + y = z; + } + } + + assert (z >= y); +} diff --git a/data/benchmarks/code2inv/40.c b/data/benchmarks/code2inv/40.c new file mode 100644 index 000000000..5c88a900f --- /dev/null +++ b/data/benchmarks/code2inv/40.c @@ -0,0 +1,29 @@ +int main() { + // variable declarations + int c; + int n; + // pre-conditions + (c = 0); + assume((n > 0)); + // loop body + while (unknown()) { + { + if ( unknown() ) { + if ( (c > n) ) + { + (c = (c + 1)); + } + } else { + if ( (c == n) ) + { + (c = 1); + } + } + + } + + } + // post-condition +if ( (c != n) ) +assert( (c >= 0) ); +} diff --git a/data/benchmarks/code2inv/41.c b/data/benchmarks/code2inv/41.c new file mode 100644 index 000000000..86d3e0630 --- /dev/null +++ b/data/benchmarks/code2inv/41.c @@ -0,0 +1,29 @@ +int main() { + // variable declarations + int c; + int n; + // pre-conditions + (c = 0); + assume((n > 0)); + // loop body + while (unknown()) { + { + if ( unknown() ) { + if ( (c > n) ) + { + (c = (c + 1)); + } + } else { + if ( (c == n) ) + { + (c = 1); + } + } + + } + + } + // post-condition +if ( (c != n) ) +assert( (c <= n) ); +} diff --git a/data/benchmarks/code2inv/42.c b/data/benchmarks/code2inv/42.c new file mode 100644 index 000000000..918514da4 --- /dev/null +++ b/data/benchmarks/code2inv/42.c @@ -0,0 +1,31 @@ +int main() { + // variable declarations + int c; + int n; + // pre-conditions + (c = 0); + assume((n > 0)); + // loop body + while (unknown()) { + { + if ( unknown() ) { + if ( (c > n) ) + { + (c = (c + 1)); + } + } else { + if ( (c == n) ) + { + (c = 1); + } + } + + } + + } + // post-condition +if ( (c < 0) ) +if ( (c > n) ) +assert( (c == n) ); + +} diff --git a/data/benchmarks/code2inv/43.c b/data/benchmarks/code2inv/43.c new file mode 100644 index 000000000..3df34b923 --- /dev/null +++ b/data/benchmarks/code2inv/43.c @@ -0,0 +1,30 @@ +int main() { + // variable declarations + int c; + int n; + // pre-conditions + (c = 0); + assume((n > 0)); + // loop body + while (unknown()) { + { + if ( unknown() ) { + if ( (c > n) ) + { + (c = (c + 1)); + } + } else { + if ( (c == n) ) + { + (c = 1); + } + } + + } + + } + // post-condition +if ( (c == n) ) +assert( (n > -1) ); + +} diff --git a/data/benchmarks/code2inv/44.c b/data/benchmarks/code2inv/44.c new file mode 100644 index 000000000..8a6311751 --- /dev/null +++ b/data/benchmarks/code2inv/44.c @@ -0,0 +1,30 @@ +int main() { + // variable declarations + int c; + int n; + // pre-conditions + (c = 0); + assume((n > 0)); + // loop body + while (unknown()) { + { + if ( unknown() ) { + if ( (c > n) ) + { + (c = (c + 1)); + } + } else { + if ( (c == n) ) + { + (c = 1); + } + } + + } + + } + // post-condition +if ( (n <= -1) ) +assert( (c != n) ); + +} diff --git a/data/benchmarks/code2inv/45.c b/data/benchmarks/code2inv/45.c new file mode 100644 index 000000000..6daf9f3c1 --- /dev/null +++ b/data/benchmarks/code2inv/45.c @@ -0,0 +1,29 @@ +int main() { + // variable declarations + int c; + int n; + // pre-conditions + (c = 0); + assume((n > 0)); + // loop body + while (unknown()) { + { + if ( unknown() ) { + if ( (c != n) ) + { + (c = (c + 1)); + } + } else { + if ( (c == n) ) + { + (c = 1); + } + } + + } + + } + // post-condition +if ( (c != n) ) +assert( (c >= 0) ); +} diff --git a/data/benchmarks/code2inv/46.c b/data/benchmarks/code2inv/46.c new file mode 100644 index 000000000..b926f56d6 --- /dev/null +++ b/data/benchmarks/code2inv/46.c @@ -0,0 +1,29 @@ +int main() { + // variable declarations + int c; + int n; + // pre-conditions + (c = 0); + assume((n > 0)); + // loop body + while (unknown()) { + { + if ( unknown() ) { + if ( (c != n) ) + { + (c = (c + 1)); + } + } else { + if ( (c == n) ) + { + (c = 1); + } + } + + } + + } + // post-condition +if ( (c != n) ) +assert( (c <= n) ); +} diff --git a/data/benchmarks/code2inv/47.c b/data/benchmarks/code2inv/47.c new file mode 100644 index 000000000..e30da10a7 --- /dev/null +++ b/data/benchmarks/code2inv/47.c @@ -0,0 +1,31 @@ +int main() { + // variable declarations + int c; + int n; + // pre-conditions + (c = 0); + assume((n > 0)); + // loop body + while (unknown()) { + { + if ( unknown() ) { + if ( (c != n) ) + { + (c = (c + 1)); + } + } else { + if ( (c == n) ) + { + (c = 1); + } + } + + } + + } + // post-condition +if ( (c < 0) ) +if ( (c > n) ) +assert( (c == n) ); + +} diff --git a/data/benchmarks/code2inv/48.c b/data/benchmarks/code2inv/48.c new file mode 100644 index 000000000..be0a59d9d --- /dev/null +++ b/data/benchmarks/code2inv/48.c @@ -0,0 +1,30 @@ +int main() { + // variable declarations + int c; + int n; + // pre-conditions + (c = 0); + assume((n > 0)); + // loop body + while (unknown()) { + { + if ( unknown() ) { + if ( (c != n) ) + { + (c = (c + 1)); + } + } else { + if ( (c == n) ) + { + (c = 1); + } + } + + } + + } + // post-condition +if ( (c == n) ) +assert( (n > -1) ); + +} diff --git a/data/benchmarks/code2inv/49.c b/data/benchmarks/code2inv/49.c new file mode 100644 index 000000000..b85a6db86 --- /dev/null +++ b/data/benchmarks/code2inv/49.c @@ -0,0 +1,30 @@ +int main() { + // variable declarations + int c; + int n; + // pre-conditions + (c = 0); + assume((n > 0)); + // loop body + while (unknown()) { + { + if ( unknown() ) { + if ( (c != n) ) + { + (c = (c + 1)); + } + } else { + if ( (c == n) ) + { + (c = 1); + } + } + + } + + } + // post-condition +if ( (n <= -1) ) +assert( (c != n) ); + +} diff --git a/data/benchmarks/code2inv/5.c b/data/benchmarks/code2inv/5.c new file mode 100644 index 000000000..16696e1c3 --- /dev/null +++ b/data/benchmarks/code2inv/5.c @@ -0,0 +1,17 @@ +int main() +{ + int x = 0; + int size; + int y, z; + + while(x < size) { + x += 1; + if( z <= y) { + y = z; + } + } + + if(size > 0) { + assert (z >= y); + } +} diff --git a/data/benchmarks/code2inv/50.c b/data/benchmarks/code2inv/50.c new file mode 100644 index 000000000..a2a96f18e --- /dev/null +++ b/data/benchmarks/code2inv/50.c @@ -0,0 +1,27 @@ +int main() { + // variable declarations + int c; + // pre-conditions + (c = 0); + // loop body + while (unknown()) { + { + if ( unknown() ) { + if ( (c != 4) ) + { + (c = (c + 1)); + } + } else { + if ( (c == 4) ) + { + (c = 1); + } + } + + } + + } + // post-condition +if ( (c != 4) ) +assert( (c >= 0) ); +} diff --git a/data/benchmarks/code2inv/51.c b/data/benchmarks/code2inv/51.c new file mode 100644 index 000000000..263df9f9c --- /dev/null +++ b/data/benchmarks/code2inv/51.c @@ -0,0 +1,27 @@ +int main() { + // variable declarations + int c; + // pre-conditions + (c = 0); + // loop body + while (unknown()) { + { + if ( unknown() ) { + if ( (c != 4) ) + { + (c = (c + 1)); + } + } else { + if ( (c == 4) ) + { + (c = 1); + } + } + + } + + } + // post-condition +if ( (c != 4) ) +assert( (c <= 4) ); +} diff --git a/data/benchmarks/code2inv/52.c b/data/benchmarks/code2inv/52.c new file mode 100644 index 000000000..dcf6ec7aa --- /dev/null +++ b/data/benchmarks/code2inv/52.c @@ -0,0 +1,29 @@ +int main() { + // variable declarations + int c; + // pre-conditions + (c = 0); + // loop body + while (unknown()) { + { + if ( unknown() ) { + if ( (c != 4) ) + { + (c = (c + 1)); + } + } else { + if ( (c == 4) ) + { + (c = 1); + } + } + + } + + } + // post-condition +if ( (c < 0) ) +if ( (c > 4) ) +assert( (c == 4) ); + +} diff --git a/data/benchmarks/code2inv/53.c b/data/benchmarks/code2inv/53.c new file mode 100644 index 000000000..e3b87e6fd --- /dev/null +++ b/data/benchmarks/code2inv/53.c @@ -0,0 +1,32 @@ +int main() { + // variable declarations + int c; + int n; + int v1; + int v2; + int v3; + // pre-conditions + (c = 0); + assume((n > 0)); + // loop body + while (unknown()) { + { + if ( unknown() ) { + if ( (c > n) ) + { + (c = (c + 1)); + } + } else { + if ( (c == n) ) + { + (c = 1); + } + } + + } + + } + // post-condition +if ( (c != n) ) +assert( (c >= 0) ); +} diff --git a/data/benchmarks/code2inv/54.c b/data/benchmarks/code2inv/54.c new file mode 100644 index 000000000..a15a00bb1 --- /dev/null +++ b/data/benchmarks/code2inv/54.c @@ -0,0 +1,32 @@ +int main() { + // variable declarations + int c; + int n; + int v1; + int v2; + int v3; + // pre-conditions + (c = 0); + assume((n > 0)); + // loop body + while (unknown()) { + { + if ( unknown() ) { + if ( (c > n) ) + { + (c = (c + 1)); + } + } else { + if ( (c == n) ) + { + (c = 1); + } + } + + } + + } + // post-condition +if ( (c != n) ) +assert( (c <= n) ); +} diff --git a/data/benchmarks/code2inv/55.c b/data/benchmarks/code2inv/55.c new file mode 100644 index 000000000..ba844727d --- /dev/null +++ b/data/benchmarks/code2inv/55.c @@ -0,0 +1,34 @@ +int main() { + // variable declarations + int c; + int n; + int v1; + int v2; + int v3; + // pre-conditions + (c = 0); + assume((n > 0)); + // loop body + while (unknown()) { + { + if ( unknown() ) { + if ( (c > n) ) + { + (c = (c + 1)); + } + } else { + if ( (c == n) ) + { + (c = 1); + } + } + + } + + } + // post-condition +if ( (c < 0) ) +if ( (c > n) ) +assert( (c == n) ); + +} diff --git a/data/benchmarks/code2inv/56.c b/data/benchmarks/code2inv/56.c new file mode 100644 index 000000000..9dacc34b0 --- /dev/null +++ b/data/benchmarks/code2inv/56.c @@ -0,0 +1,33 @@ +int main() { + // variable declarations + int c; + int n; + int v1; + int v2; + int v3; + // pre-conditions + (c = 0); + assume((n > 0)); + // loop body + while (unknown()) { + { + if ( unknown() ) { + if ( (c > n) ) + { + (c = (c + 1)); + } + } else { + if ( (c == n) ) + { + (c = 1); + } + } + + } + + } + // post-condition +if ( (c == n) ) +assert( (n <= -1) ); + +} diff --git a/data/benchmarks/code2inv/57.c b/data/benchmarks/code2inv/57.c new file mode 100644 index 000000000..716fa985f --- /dev/null +++ b/data/benchmarks/code2inv/57.c @@ -0,0 +1,33 @@ +int main() { + // variable declarations + int c; + int n; + int v1; + int v2; + int v3; + // pre-conditions + (c = 0); + assume((n > 0)); + // loop body + while (unknown()) { + { + if ( unknown() ) { + if ( (c > n) ) + { + (c = (c + 1)); + } + } else { + if ( (c == n) ) + { + (c = 1); + } + } + + } + + } + // post-condition +if ( (n > -1) ) +assert( (c != n) ); + +} diff --git a/data/benchmarks/code2inv/58.c b/data/benchmarks/code2inv/58.c new file mode 100644 index 000000000..abc886aae --- /dev/null +++ b/data/benchmarks/code2inv/58.c @@ -0,0 +1,32 @@ +int main() { + // variable declarations + int c; + int n; + int v1; + int v2; + int v3; + // pre-conditions + (c = 0); + assume((n > 0)); + // loop body + while (unknown()) { + { + if ( unknown() ) { + if ( (c != n) ) + { + (c = (c + 1)); + } + } else { + if ( (c == n) ) + { + (c = 1); + } + } + + } + + } + // post-condition +if ( (c != n) ) +assert( (c >= 0) ); +} diff --git a/data/benchmarks/code2inv/59.c b/data/benchmarks/code2inv/59.c new file mode 100644 index 000000000..f33aba564 --- /dev/null +++ b/data/benchmarks/code2inv/59.c @@ -0,0 +1,32 @@ +int main() { + // variable declarations + int c; + int n; + int v1; + int v2; + int v3; + // pre-conditions + (c = 0); + assume((n > 0)); + // loop body + while (unknown()) { + { + if ( unknown() ) { + if ( (c != n) ) + { + (c = (c + 1)); + } + } else { + if ( (c == n) ) + { + (c = 1); + } + } + + } + + } + // post-condition +if ( (c != n) ) +assert( (c <= n) ); +} diff --git a/data/benchmarks/code2inv/6.c b/data/benchmarks/code2inv/6.c new file mode 100644 index 000000000..eca980999 --- /dev/null +++ b/data/benchmarks/code2inv/6.c @@ -0,0 +1,19 @@ + +int main() +{ + int v1,v2,v3; + int x = 0; + int size; + int y, z; + + while(x < size) { + x += 1; + if( z <= y) { + y = z; + } + } + + if(size > 0) { + assert (z >= y); + } +} diff --git a/data/benchmarks/code2inv/60.c b/data/benchmarks/code2inv/60.c new file mode 100644 index 000000000..b5eb8845c --- /dev/null +++ b/data/benchmarks/code2inv/60.c @@ -0,0 +1,34 @@ +int main() { + // variable declarations + int c; + int n; + int v1; + int v2; + int v3; + // pre-conditions + (c = 0); + assume((n > 0)); + // loop body + while (unknown()) { + { + if ( unknown() ) { + if ( (c != n) ) + { + (c = (c + 1)); + } + } else { + if ( (c == n) ) + { + (c = 1); + } + } + + } + + } + // post-condition +if ( (c < 0) ) +if ( (c > n) ) +assert( (c == n) ); + +} diff --git a/data/benchmarks/code2inv/61.c b/data/benchmarks/code2inv/61.c new file mode 100644 index 000000000..6a69f6498 --- /dev/null +++ b/data/benchmarks/code2inv/61.c @@ -0,0 +1,33 @@ +int main() { + // variable declarations + int c; + int n; + int v1; + int v2; + int v3; + // pre-conditions + (c = 0); + assume((n > 0)); + // loop body + while (unknown()) { + { + if ( unknown() ) { + if ( (c != n) ) + { + (c = (c + 1)); + } + } else { + if ( (c == n) ) + { + (c = 1); + } + } + + } + + } + // post-condition +if ( (c == n) ) +assert( (n <= -1) ); + +} diff --git a/data/benchmarks/code2inv/62.c b/data/benchmarks/code2inv/62.c new file mode 100644 index 000000000..4038732df --- /dev/null +++ b/data/benchmarks/code2inv/62.c @@ -0,0 +1,33 @@ +int main() { + // variable declarations + int c; + int n; + int v1; + int v2; + int v3; + // pre-conditions + (c = 0); + assume((n > 0)); + // loop body + while (unknown()) { + { + if ( unknown() ) { + if ( (c != n) ) + { + (c = (c + 1)); + } + } else { + if ( (c == n) ) + { + (c = 1); + } + } + + } + + } + // post-condition +if ( (n > -1) ) +assert( (c != n) ); + +} diff --git a/data/benchmarks/code2inv/63.c b/data/benchmarks/code2inv/63.c new file mode 100644 index 000000000..bfddd88fe --- /dev/null +++ b/data/benchmarks/code2inv/63.c @@ -0,0 +1,13 @@ + +int main() { + int x = 1; + int y; + + while (x <= 10) { + y = 10 - x; + x = x +1; + } + + assert (y >= 0); + //assert (y < 10); +} diff --git a/data/benchmarks/code2inv/64.c b/data/benchmarks/code2inv/64.c new file mode 100644 index 000000000..694af04df --- /dev/null +++ b/data/benchmarks/code2inv/64.c @@ -0,0 +1,13 @@ + +int main() { + int x = 1; + int y; + + while (x <= 10) { + y = 10 - x; + x = x +1; + } + + //assert (y >= 0); + assert (y < 10); +} diff --git a/data/benchmarks/code2inv/65.c b/data/benchmarks/code2inv/65.c new file mode 100644 index 000000000..c6d1338f3 --- /dev/null +++ b/data/benchmarks/code2inv/65.c @@ -0,0 +1,13 @@ + +int main() { + int x = 1; + int y; + + while (x <= 100) { + y = 100 - x; + x = x +1; + } + + assert (y >= 0); + //assert (y < 100); +} diff --git a/data/benchmarks/code2inv/66.c b/data/benchmarks/code2inv/66.c new file mode 100644 index 000000000..8e657a615 --- /dev/null +++ b/data/benchmarks/code2inv/66.c @@ -0,0 +1,13 @@ + +int main() { + int x = 1; + int y; + + while (x <= 100) { + y = 100 - x; + x = x +1; + } + + //assert (y >= 0); + assert (y < 100); +} diff --git a/data/benchmarks/code2inv/67.c b/data/benchmarks/code2inv/67.c new file mode 100644 index 000000000..955ca86a7 --- /dev/null +++ b/data/benchmarks/code2inv/67.c @@ -0,0 +1,15 @@ + +int main() { + int n,y; + int x = 1; + + while (x <= n) { + y = n - x; + x = x +1; + } + + if (n > 0) { + assert (y >= 0); + //assert (y <= n); + } +} diff --git a/data/benchmarks/code2inv/68.c b/data/benchmarks/code2inv/68.c new file mode 100644 index 000000000..205e452aa --- /dev/null +++ b/data/benchmarks/code2inv/68.c @@ -0,0 +1,15 @@ + +int main() { + int n,y; + int x = 1; + + while (x <= n) { + y = n - x; + x = x +1; + } + + if (n > 0) { + //assert (y >= 0); + assert (y <= n); + } +} diff --git a/data/benchmarks/code2inv/69.c b/data/benchmarks/code2inv/69.c new file mode 100644 index 000000000..c572c13da --- /dev/null +++ b/data/benchmarks/code2inv/69.c @@ -0,0 +1,17 @@ + + +int main() { + int n, v1, v2, v3; + int x = 1; + int y; + + while (x <= n) { + y = n - x; + x = x +1; + } + + if (n > 0) { + assert (y >= 0); + //assert (y < n); + } +} diff --git a/data/benchmarks/code2inv/7.c b/data/benchmarks/code2inv/7.c new file mode 100644 index 000000000..95aa0402e --- /dev/null +++ b/data/benchmarks/code2inv/7.c @@ -0,0 +1,22 @@ +int main() { + // variable declarations + int x; + int y; + // pre-conditions + assume((x >= 0)); + assume((x <= 10)); + assume((y <= 10)); + assume((y >= 0)); + // loop body + while (unknown()) { + { + (x = (x + 10)); + (y = (y + 10)); + } + + } + // post-condition +if ( (x == 20) ) +assert( (y != 0) ); + +} diff --git a/data/benchmarks/code2inv/70.c b/data/benchmarks/code2inv/70.c new file mode 100644 index 000000000..a90300f2c --- /dev/null +++ b/data/benchmarks/code2inv/70.c @@ -0,0 +1,17 @@ + + +int main() { + int n, v1, v2, v3; + int x = 1; + int y; + + while (x <= n) { + y = n - x; + x = x +1; + } + + if (n > 0) { + //assert (y >= 0); + assert (y < n); + } +} diff --git a/data/benchmarks/code2inv/71.c b/data/benchmarks/code2inv/71.c new file mode 100644 index 000000000..9c8de6994 --- /dev/null +++ b/data/benchmarks/code2inv/71.c @@ -0,0 +1,23 @@ +int main() { + // variable declarations + int c; + int y; + int z; + // pre-conditions + (c = 0); + assume((y >= 0)); + assume((y >= 127)); + (z = (36 * y)); + // loop body + while (unknown()) { + if ( (c < 36) ) + { + (z = (z + 1)); + (c = (c + 1)); + } + + } + // post-condition +if ( (c < 36) ) +assert( (z >= 0) ); +} diff --git a/data/benchmarks/code2inv/72.c b/data/benchmarks/code2inv/72.c new file mode 100644 index 000000000..e8b3e9478 --- /dev/null +++ b/data/benchmarks/code2inv/72.c @@ -0,0 +1,23 @@ +int main() { + // variable declarations + int c; + int y; + int z; + // pre-conditions + (c = 0); + assume((y >= 0)); + assume((y >= 127)); + (z = (36 * y)); + // loop body + while (unknown()) { + if ( (c < 36) ) + { + (z = (z + 1)); + (c = (c + 1)); + } + + } + // post-condition +if ( (c < 36) ) +assert( (z < 4608) ); +} diff --git a/data/benchmarks/code2inv/73.c b/data/benchmarks/code2inv/73.c new file mode 100644 index 000000000..50cce06c5 --- /dev/null +++ b/data/benchmarks/code2inv/73.c @@ -0,0 +1,25 @@ +int main() { + // variable declarations + int c; + int y; + int z; + // pre-conditions + (c = 0); + assume((y >= 0)); + assume((y >= 127)); + (z = (36 * y)); + // loop body + while (unknown()) { + if ( (c < 36) ) + { + (z = (z + 1)); + (c = (c + 1)); + } + + } + // post-condition +if ( (z < 0) ) +if ( (z >= 4608) ) +assert( (c >= 36) ); + +} diff --git a/data/benchmarks/code2inv/74.c b/data/benchmarks/code2inv/74.c new file mode 100644 index 000000000..ced95a4ba --- /dev/null +++ b/data/benchmarks/code2inv/74.c @@ -0,0 +1,26 @@ +int main() { + // variable declarations + int c; + int x1; + int x2; + int x3; + int y; + int z; + // pre-conditions + (c = 0); + assume((y >= 0)); + assume((y >= 127)); + (z = (36 * y)); + // loop body + while (unknown()) { + if ( (c < 36) ) + { + (z = (z + 1)); + (c = (c + 1)); + } + + } + // post-condition +if ( (c < 36) ) +assert( (z >= 0) ); +} diff --git a/data/benchmarks/code2inv/75.c b/data/benchmarks/code2inv/75.c new file mode 100644 index 000000000..aef14e6ee --- /dev/null +++ b/data/benchmarks/code2inv/75.c @@ -0,0 +1,26 @@ +int main() { + // variable declarations + int c; + int x1; + int x2; + int x3; + int y; + int z; + // pre-conditions + (c = 0); + assume((y >= 0)); + assume((y >= 127)); + (z = (36 * y)); + // loop body + while (unknown()) { + if ( (c < 36) ) + { + (z = (z + 1)); + (c = (c + 1)); + } + + } + // post-condition +if ( (c < 36) ) +assert( (z < 4608) ); +} diff --git a/data/benchmarks/code2inv/76.c b/data/benchmarks/code2inv/76.c new file mode 100644 index 000000000..cc484cf85 --- /dev/null +++ b/data/benchmarks/code2inv/76.c @@ -0,0 +1,28 @@ +int main() { + // variable declarations + int c; + int x1; + int x2; + int x3; + int y; + int z; + // pre-conditions + (c = 0); + assume((y >= 0)); + assume((y >= 127)); + (z = (36 * y)); + // loop body + while (unknown()) { + if ( (c < 36) ) + { + (z = (z + 1)); + (c = (c + 1)); + } + + } + // post-condition +if ( (z < 0) ) +if ( (z >= 4608) ) +assert( (c >= 36) ); + +} diff --git a/data/benchmarks/code2inv/77.c b/data/benchmarks/code2inv/77.c new file mode 100644 index 000000000..795102866 --- /dev/null +++ b/data/benchmarks/code2inv/77.c @@ -0,0 +1,22 @@ +int main() { + // variable declarations + int i; + int x; + int y; + // pre-conditions + (i = 0); + assume((x >= 0)); + assume((y >= 0)); + assume((x >= y)); + // loop body + while (unknown()) { + if ( (i < y) ) + { + (i = (i + 1)); + } + + } + // post-condition +if ( (i < y) ) +assert( (i < x) ); +} diff --git a/data/benchmarks/code2inv/78.c b/data/benchmarks/code2inv/78.c new file mode 100644 index 000000000..3a48215b7 --- /dev/null +++ b/data/benchmarks/code2inv/78.c @@ -0,0 +1,22 @@ +int main() { + // variable declarations + int i; + int x; + int y; + // pre-conditions + (i = 0); + assume((x >= 0)); + assume((y >= 0)); + assume((x >= y)); + // loop body + while (unknown()) { + if ( (i < y) ) + { + (i = (i + 1)); + } + + } + // post-condition +if ( (i < y) ) +assert( (0 <= i) ); +} diff --git a/data/benchmarks/code2inv/79.c b/data/benchmarks/code2inv/79.c new file mode 100644 index 000000000..c22ffacbf --- /dev/null +++ b/data/benchmarks/code2inv/79.c @@ -0,0 +1,24 @@ +int main() { + // variable declarations + int i; + int x; + int y; + // pre-conditions + (i = 0); + assume((x >= 0)); + assume((y >= 0)); + assume((x >= y)); + // loop body + while (unknown()) { + if ( (i < y) ) + { + (i = (i + 1)); + } + + } + // post-condition +if ( (i >= x) ) +if ( (0 > i) ) +assert( (i >= y) ); + +} diff --git a/data/benchmarks/code2inv/8.c b/data/benchmarks/code2inv/8.c new file mode 100644 index 000000000..797bb1968 --- /dev/null +++ b/data/benchmarks/code2inv/8.c @@ -0,0 +1,22 @@ +int main() { + // variable declarations + int x; + int y; + // pre-conditions + assume((x >= 0)); + assume((x <= 10)); + assume((y <= 10)); + assume((y >= 0)); + // loop body + while (unknown()) { + { + (x = (x + 10)); + (y = (y + 10)); + } + + } + // post-condition +if ( (y == 0) ) +assert( (x != 20) ); + +} diff --git a/data/benchmarks/code2inv/80.c b/data/benchmarks/code2inv/80.c new file mode 100644 index 000000000..f870a2d96 --- /dev/null +++ b/data/benchmarks/code2inv/80.c @@ -0,0 +1,25 @@ +int main() { + // variable declarations + int i; + int x; + int y; + int z1; + int z2; + int z3; + // pre-conditions + (i = 0); + assume((x >= 0)); + assume((y >= 0)); + assume((x >= y)); + // loop body + while (unknown()) { + if ( (i < y) ) + { + (i = (i + 1)); + } + + } + // post-condition +if ( (i < y) ) +assert( (i < x) ); +} diff --git a/data/benchmarks/code2inv/81.c b/data/benchmarks/code2inv/81.c new file mode 100644 index 000000000..faffc9a56 --- /dev/null +++ b/data/benchmarks/code2inv/81.c @@ -0,0 +1,25 @@ +int main() { + // variable declarations + int i; + int x; + int y; + int z1; + int z2; + int z3; + // pre-conditions + (i = 0); + assume((x >= 0)); + assume((y >= 0)); + assume((x >= y)); + // loop body + while (unknown()) { + if ( (i < y) ) + { + (i = (i + 1)); + } + + } + // post-condition +if ( (i < y) ) +assert( (0 <= i) ); +} diff --git a/data/benchmarks/code2inv/82.c b/data/benchmarks/code2inv/82.c new file mode 100644 index 000000000..7b0de3eb5 --- /dev/null +++ b/data/benchmarks/code2inv/82.c @@ -0,0 +1,27 @@ +int main() { + // variable declarations + int i; + int x; + int y; + int z1; + int z2; + int z3; + // pre-conditions + (i = 0); + assume((x >= 0)); + assume((y >= 0)); + assume((x >= y)); + // loop body + while (unknown()) { + if ( (i < y) ) + { + (i = (i + 1)); + } + + } + // post-condition +if ( (i >= x) ) +if ( (0 > i) ) +assert( (i >= y) ); + +} diff --git a/data/benchmarks/code2inv/83.c b/data/benchmarks/code2inv/83.c new file mode 100644 index 000000000..435683ab0 --- /dev/null +++ b/data/benchmarks/code2inv/83.c @@ -0,0 +1,17 @@ +int main() { + // variable declarations + int x; + int y; + // pre-conditions + (x = -5000); + // loop body + while ((x < 0)) { + { + (x = (x + y)); + (y = (y + 1)); + } + + } + // post-condition +assert( (y > 0) ); +} diff --git a/data/benchmarks/code2inv/84.c b/data/benchmarks/code2inv/84.c new file mode 100644 index 000000000..18eecccc1 --- /dev/null +++ b/data/benchmarks/code2inv/84.c @@ -0,0 +1,17 @@ +int main() { + // variable declarations + int x; + int y; + // pre-conditions + (x = -50); + // loop body + while ((x < 0)) { + { + (x = (x + y)); + (y = (y + 1)); + } + + } + // post-condition +assert( (y > 0) ); +} diff --git a/data/benchmarks/code2inv/85.c b/data/benchmarks/code2inv/85.c new file mode 100644 index 000000000..e7c46a363 --- /dev/null +++ b/data/benchmarks/code2inv/85.c @@ -0,0 +1,20 @@ +int main() { + // variable declarations + int x; + int y; + int z1; + int z2; + int z3; + // pre-conditions + (x = -15000); + // loop body + while ((x < 0)) { + { + (x = (x + y)); + (y = (y + 1)); + } + + } + // post-condition +assert( (y > 0) ); +} diff --git a/data/benchmarks/code2inv/86.c b/data/benchmarks/code2inv/86.c new file mode 100644 index 000000000..5a25925a6 --- /dev/null +++ b/data/benchmarks/code2inv/86.c @@ -0,0 +1,20 @@ +int main() { + // variable declarations + int x; + int y; + int z1; + int z2; + int z3; + // pre-conditions + (x = -50); + // loop body + while ((x < 0)) { + { + (x = (x + y)); + (y = (y + 1)); + } + + } + // post-condition +assert( (y > 0) ); +} diff --git a/data/benchmarks/code2inv/87.c b/data/benchmarks/code2inv/87.c new file mode 100644 index 000000000..8422805ba --- /dev/null +++ b/data/benchmarks/code2inv/87.c @@ -0,0 +1,30 @@ +int main() { + // variable declarations + int lock; + int x; + int y; + // pre-conditions + (x = y); + (lock = 1); + // loop body + while ((x != y)) { + { + if ( unknown() ) { + { + (lock = 1); + (x = y); + } + } else { + { + (lock = 0); + (x = y); + (y = (y + 1)); + } + } + + } + + } + // post-condition +assert( (lock == 1) ); +} diff --git a/data/benchmarks/code2inv/88.c b/data/benchmarks/code2inv/88.c new file mode 100644 index 000000000..8a9d09477 --- /dev/null +++ b/data/benchmarks/code2inv/88.c @@ -0,0 +1,30 @@ +int main() { + // variable declarations + int lock; + int x; + int y; + // pre-conditions + (y = (x + 1)); + (lock = 0); + // loop body + while ((x != y)) { + { + if ( unknown() ) { + { + (lock = 1); + (x = y); + } + } else { + { + (lock = 0); + (x = y); + (y = (y + 1)); + } + } + + } + + } + // post-condition +assert( (lock == 1) ); +} diff --git a/data/benchmarks/code2inv/89.c b/data/benchmarks/code2inv/89.c new file mode 100644 index 000000000..18cf1684e --- /dev/null +++ b/data/benchmarks/code2inv/89.c @@ -0,0 +1,33 @@ +int main() { + // variable declarations + int lock; + int v1; + int v2; + int v3; + int x; + int y; + // pre-conditions + (x = y); + (lock = 1); + // loop body + while ((x != y)) { + { + if ( unknown() ) { + { + (lock = 1); + (x = y); + } + } else { + { + (lock = 0); + (x = y); + (y = (y + 1)); + } + } + + } + + } + // post-condition +assert( (lock == 1) ); +} diff --git a/data/benchmarks/code2inv/9.c b/data/benchmarks/code2inv/9.c new file mode 100644 index 000000000..639b9247b --- /dev/null +++ b/data/benchmarks/code2inv/9.c @@ -0,0 +1,22 @@ +int main() { + // variable declarations + int x; + int y; + // pre-conditions + assume((x >= 0)); + assume((x <= 2)); + assume((y <= 2)); + assume((y >= 0)); + // loop body + while (unknown()) { + { + (x = (x + 2)); + (y = (y + 2)); + } + + } + // post-condition +if ( (x == 4) ) +assert( (y != 0) ); + +} diff --git a/data/benchmarks/code2inv/90.c b/data/benchmarks/code2inv/90.c new file mode 100644 index 000000000..3257b8d70 --- /dev/null +++ b/data/benchmarks/code2inv/90.c @@ -0,0 +1,33 @@ +int main() { + // variable declarations + int lock; + int v1; + int v2; + int v3; + int x; + int y; + // pre-conditions + (y = (x + 1)); + (lock = 0); + // loop body + while ((x != y)) { + { + if ( unknown() ) { + { + (lock = 1); + (x = y); + } + } else { + { + (lock = 0); + (x = y); + (y = (y + 1)); + } + } + + } + + } + // post-condition +assert( (lock == 1) ); +} diff --git a/data/benchmarks/code2inv/91.c b/data/benchmarks/code2inv/91.c new file mode 100644 index 000000000..11b92968a --- /dev/null +++ b/data/benchmarks/code2inv/91.c @@ -0,0 +1,12 @@ + +int main(){ + + int x = 0; + int y = 0; + + while(y >= 0){ + y = y + x; + } + + assert( y>= 0); +} diff --git a/data/benchmarks/code2inv/92.c b/data/benchmarks/code2inv/92.c new file mode 100644 index 000000000..577409253 --- /dev/null +++ b/data/benchmarks/code2inv/92.c @@ -0,0 +1,14 @@ + + +int main(){ + int z1,z2,z3; + + int x = 0; + int y = 0; + + while(y >= 0){ + y = y + x; + } + + assert( y>= 0); +} diff --git a/data/benchmarks/code2inv/93.c b/data/benchmarks/code2inv/93.c new file mode 100644 index 000000000..fb48cd265 --- /dev/null +++ b/data/benchmarks/code2inv/93.c @@ -0,0 +1,33 @@ +int main() { + // variable declarations + int i; + int n; + int x; + int y; + // pre-conditions + assume((n >= 0)); + (i = 0); + (x = 0); + (y = 0); + // loop body + while ((i < n)) { + { + (i = (i + 1)); + if ( unknown() ) { + { + (x = (x + 1)); + (y = (y + 2)); + } + } else { + { + (x = (x + 2)); + (y = (y + 1)); + } + } + + } + + } + // post-condition +assert( ((3 * n) == (x + y)) ); +} diff --git a/data/benchmarks/code2inv/94.c b/data/benchmarks/code2inv/94.c new file mode 100644 index 000000000..da01d3126 --- /dev/null +++ b/data/benchmarks/code2inv/94.c @@ -0,0 +1,22 @@ +int main() { + // variable declarations + int i; + int j; + int k; + int n; + // pre-conditions + assume((k >= 0)); + assume((n >= 0)); + (i = 0); + (j = 0); + // loop body + while ((i <= n)) { + { + (i = (i + 1)); + (j = (j + i)); + } + + } + // post-condition +assert( ((i + (j + k)) > (2 * n)) ); +} diff --git a/data/benchmarks/code2inv/95.c b/data/benchmarks/code2inv/95.c new file mode 100644 index 000000000..be7d3ffe2 --- /dev/null +++ b/data/benchmarks/code2inv/95.c @@ -0,0 +1,23 @@ +int main() { + // variable declarations + int i; + int j; + int x; + int y; + // pre-conditions + (j = 0); + (i = 0); + (y = 1); + // loop body + while ((i <= x)) { + { + (i = (i + 1)); + (j = (j + y)); + } + + } + // post-condition +if ( (y == 1) ) +assert( (i == j) ); + +} diff --git a/data/benchmarks/code2inv/96.c b/data/benchmarks/code2inv/96.c new file mode 100644 index 000000000..83fa53425 --- /dev/null +++ b/data/benchmarks/code2inv/96.c @@ -0,0 +1,23 @@ +int main() { + // variable declarations + int i; + int j; + int x; + int y; + // pre-conditions + (j = 0); + (i = 0); + (y = 1); + // loop body + while ((i <= x)) { + { + (i = (i + 1)); + (j = (j + y)); + } + + } + // post-condition +if ( (i != j) ) +assert( (y != 1) ); + +} diff --git a/data/benchmarks/code2inv/97.c b/data/benchmarks/code2inv/97.c new file mode 100644 index 000000000..ed153021b --- /dev/null +++ b/data/benchmarks/code2inv/97.c @@ -0,0 +1,23 @@ +int main() { + // variable declarations + int i; + int j; + int x; + int y; + // pre-conditions + (j = 0); + (i = 0); + (y = 2); + // loop body + while ((i <= x)) { + { + (i = (i + 1)); + (j = (j + y)); + } + + } + // post-condition +if ( (y == 1) ) +assert( (i == j) ); + +} diff --git a/data/benchmarks/code2inv/98.c b/data/benchmarks/code2inv/98.c new file mode 100644 index 000000000..272285be4 --- /dev/null +++ b/data/benchmarks/code2inv/98.c @@ -0,0 +1,23 @@ +int main() { + // variable declarations + int i; + int j; + int x; + int y; + // pre-conditions + (j = 0); + (i = 0); + (y = 2); + // loop body + while ((i <= x)) { + { + (i = (i + 1)); + (j = (j + y)); + } + + } + // post-condition +if ( (i != j) ) +assert( (y != 1) ); + +} diff --git a/data/benchmarks/code2inv/99.c b/data/benchmarks/code2inv/99.c new file mode 100644 index 000000000..7798647e0 --- /dev/null +++ b/data/benchmarks/code2inv/99.c @@ -0,0 +1,20 @@ +int main() { + // variable declarations + int n; + int x; + int y; + // pre-conditions + assume((n >= 0)); + (x = n); + (y = 0); + // loop body + while ((x > 0)) { + { + (y = (y + 1)); + (x = (x - 1)); + } + + } + // post-condition +assert( (n == (x + y)) ); +} diff --git a/data/benchmarks/diffy_cav21_bench/brs1.c b/data/benchmarks/diffy_cav21_bench/brs1.c new file mode 100644 index 000000000..c803bdfb6 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/brs1.c @@ -0,0 +1,43 @@ +/* + * Benchmarks contributed by Divyesh Unadkat[1,2], Supratik Chakraborty[1], Ashutosh Gupta[1] + * [1] Indian Institute of Technology Bombay, Mumbai + * [2] TCS Innovation labs, Pune + * + */ + +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int N; + +int main() +{ + N = __VERIFIER_nondet_int(); + if(N <= 0) return 1; + + int i; + int sum[1]; + int a[N]; + + for(i=0; i 0; + requires \separated(a + (0..N-1), b + (0..N-1), c + (0..N-1)); +*/ +int main(int* a, int* b, int* c, int N) +{ + int i; + int sum[1]; + + sum[0] = 0; + for(i=0; i 0; +requires \separated(a+(0..N-1), c+(0..N-1)); +*/ +int main(int* a, int* c, int N) +{ + int i; + int sum[1]; + + sum[0] = 0; + for(i=0; i= 2); + } + return 1; +} diff --git a/data/benchmarks/diffy_cav21_bench/conds2.c b/data/benchmarks/diffy_cav21_bench/conds2.c new file mode 100644 index 000000000..8c14bc755 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/conds2.c @@ -0,0 +1,44 @@ + +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + + +/*@ +requires N > 0; +requires \separated(a+(0..N-1), c+(0..N-1)); +*/ +int main(int* a, int* c, int N) +{ + + int i; + int sum[1]; + + sum[0] = 0; + for(i=0; i= sum[0]); + } + return 1; +} diff --git a/data/benchmarks/diffy_cav21_bench/condss.c b/data/benchmarks/diffy_cav21_bench/condss.c new file mode 100644 index 000000000..160450a7c --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/condss.c @@ -0,0 +1,53 @@ + +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +/*@ +requires N > 0; +requires \separated(a+(0..N-1), b+(0..N-1), c+(0..N-1)); +*/ +int main(int* a, int* b, int* c, int N) +{ + + int i; + int sum[1]; + + sum[0] = 0; + for(i=0; i 0; +requires \separated(a+(0..N-1), b+(0..N-1), c+(0..N-1)); +*/ +int main(int* a, int* b, int* c, int N) +{ + + int i; + int sum[1]; + + sum[0] = 0; + for(i=0; i 0; +requires \separated(a+(0..N-1), b+(0..N-1), c+(0..N-1)); +*/ +int main(int* a, int* b, int* c, int N) +{ + int i; + int sum[1]; + + sum[0] = 0; + for(i=0; i 0; +requires \separated(a+(0..N-1), b+(0..N-1), c+(0..N-1)); +*/ +int main(int* a, int* b, int* c, int N) +{ + int i; + int sum[1]; + + sum[0] = 0; + for(i=0; i= sum[0]); + } + return 1; +} diff --git a/data/benchmarks/diffy_cav21_bench/eqn1.c b/data/benchmarks/diffy_cav21_bench/eqn1.c new file mode 100644 index 000000000..752aa674e --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/eqn1.c @@ -0,0 +1,39 @@ +/* + * Benchmarks contributed by Divyesh Unadkat[1,2], Supratik Chakraborty[1], Ashutosh Gupta[1] + * [1] Indian Institute of Technology Bombay, Mumbai + * [2] TCS Innovation labs, Pune + * + */ + +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +/*@ + requires N > 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + + int i; + + a[0] = 2; + b[0] = 1; + for(i=1; i 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + int i; + + a[0] = 4; + b[0] = 1; + + for(i=1; i 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + int i; + + a[0] = 6; + b[0] = 1; + + for(i=1; i 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + + int i; + + a[0] = 8; + b[0] = 1; + for(i=1; i 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + + int i; + + a[0] = 10; + b[0] = 1; + for(i=1; i 0; + requires \separated(a+(0..N-1), b+(0..N-1), c+(0..N-1)); +*/ +int main(int* a, int* b, int* c, int N) +{ + + int i; + + for(i=0; i 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + + int i; + + for(i=0; i 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + + int i; + + for(i=0; i 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + + int i; + + for(i=0; i 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + + int i; + + for(i=0; i 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + + int i; + + for(i=0; i 0; + requires \separated(a+(0..N-1), b+(0..N-1), c+(0..N-1)); +*/ +int main(int* a, int* b, int* c, int N) +{ + + int i; + + for(i=0; i 0; + requires \separated(a+(0..N-1), b+(0..N-1), c+(0..N-1)); +*/ +int main(int* a, int* b, int* c, int N) +{ + + int i; + + a[0] = 6; + b[0] = 1; + c[0] = N; + for(i=1; i 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + + int i, j; + int sum[1]; + + for (i = 0; i < N; i++) + { + a[i] = 1; + } + + for (i = 0; i < N; i++) + { + b[i] = 0; + } + + sum[0] = 0; + for (i = 0; i < N; i++) + { + sum[0] = sum[0] + a[i]; + } + + for (i = 0; i < N; i++) + { + for (j = 0; j < N; j++) + { + b[i] = b[i] + 1; + } + b[i] = b[i] + sum[0]; + } + + for (i = 0; i < N; i++) + { + __VERIFIER_assert(b[i] == 2*N); + } +} + diff --git a/data/benchmarks/diffy_cav21_bench/nested-as2.c b/data/benchmarks/diffy_cav21_bench/nested-as2.c new file mode 100644 index 000000000..d490376ce --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/nested-as2.c @@ -0,0 +1,53 @@ +/* + * Benchmarks contributed by Divyesh Unadkat[1,2], Supratik Chakraborty[1], Ashutosh Gupta[1] + * [1] Indian Institute of Technology Bombay, Mumbai + * [2] TCS Innovation labs, Pune + * + */ + +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +/*@ + requires N > 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + + int i, j; + int sum[1]; + + for (i = 0; i < N; i++) + { + a[i] = 1; + } + + for (i = 0; i < N; i++) + { + b[i] = 0; + } + + sum[0] = 0; + for (i = 0; i < N; i++) + { + sum[0] = sum[0] + a[i]; + } + + for (i = 0; i < N; i++) + { + for (j = 0; j < i; j++) + { + b[i] = b[i] + 1; + } + b[i] = b[i] + sum[0]; + } + + for (i = 0; i < N; i++) + { + __VERIFIER_assert(b[i] == N + i); + } +} + diff --git a/data/benchmarks/diffy_cav21_bench/nested-as3.c b/data/benchmarks/diffy_cav21_bench/nested-as3.c new file mode 100644 index 000000000..8a2588828 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/nested-as3.c @@ -0,0 +1,54 @@ +/* + * Benchmarks contributed by Divyesh Unadkat[1,2], Supratik Chakraborty[1], Ashutosh Gupta[1] + * [1] Indian Institute of Technology Bombay, Mumbai + * [2] TCS Innovation labs, Pune + * + */ + +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +/*@ + requires N > 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + + int i, j; + int sum[1]; + + + for (i = 0; i < N; i++) + { + a[i] = 1; + } + + for (i = 0; i < N; i++) + { + b[i] = 0; + } + + sum[0] = 0; + for (i = 0; i < N; i++) + { + sum[0] = sum[0] + a[i]; + } + + for (i = 0; i < N; i++) + { + for (j = i; j < N; j++) + { + b[i] = b[i] + 1; + } + b[i] = b[i] + sum[0]; + } + + for (i = 0; i < N; i++) + { + __VERIFIER_assert(b[i] == 2*N - i); + } +} + diff --git a/data/benchmarks/diffy_cav21_bench/nested-nli1.c b/data/benchmarks/diffy_cav21_bench/nested-nli1.c new file mode 100644 index 000000000..de6355501 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/nested-nli1.c @@ -0,0 +1,43 @@ +/* + * Benchmarks contributed by Divyesh Unadkat[1,2], Supratik Chakraborty[1], Ashutosh Gupta[1] + * [1] Indian Institute of Technology Bombay, Mumbai + * [2] TCS Innovation labs, Pune + * + */ + +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int N; + +int main() +{ + N = __VERIFIER_nondet_int(); + if(N <= 0) return 1; + __VERIFIER_assume(N <= 2147483647/sizeof(int)); + + int i, j; + int a[N]; + + for (i = 0; i < N; i++) + { + a[i] = 0; + } + + for (i = 0; i < N; i++) + { + for (j = 0; j < i+1; j++) + { + a[i] = a[i] + i; + } + } + + for (i = 0; i < N; i++) + { + __VERIFIER_assert(a[i] == i * (i + 1)); + } +} + + diff --git a/data/benchmarks/diffy_cav21_bench/nested-nli2.c b/data/benchmarks/diffy_cav21_bench/nested-nli2.c new file mode 100644 index 000000000..d2899af1f --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/nested-nli2.c @@ -0,0 +1,43 @@ +/* + * Benchmarks contributed by Divyesh Unadkat[1,2], Supratik Chakraborty[1], Ashutosh Gupta[1] + * [1] Indian Institute of Technology Bombay, Mumbai + * [2] TCS Innovation labs, Pune + * + */ + +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int N; + +int main() +{ + N = __VERIFIER_nondet_int(); + if(N <= 0) return 1; + __VERIFIER_assume(N <= 2147483647/sizeof(int)); + + int i, j; + int a[N]; + + for (i = 0; i < N; i++) + { + a[i] = 0; + } + + for (i = 0; i < N; i++) + { + for (j = i; j < N; j++) + { + a[i] = a[i] + i; + } + } + + for (i = 0; i < N; i++) + { + __VERIFIER_assert(a[i] == (N - i) * i); + } +} + + diff --git a/data/benchmarks/diffy_cav21_bench/nested-nli3.c b/data/benchmarks/diffy_cav21_bench/nested-nli3.c new file mode 100644 index 000000000..68bbd7258 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/nested-nli3.c @@ -0,0 +1,44 @@ +/* + * Benchmarks contributed by Divyesh Unadkat[1,2], Supratik Chakraborty[1], Ashutosh Gupta[1] + * [1] Indian Institute of Technology Bombay, Mumbai + * [2] TCS Innovation labs, Pune + * + */ + +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int N; + +int main() +{ + N = __VERIFIER_nondet_int(); + if(N <= 0) return 1; + __VERIFIER_assume(N <= 2147483647/sizeof(int)); + + int i, j; + int a[N]; + + for (i = 0; i < N; i++) + { + a[i] = 0; + } + + for (i = 0; i < N; i++) + { + for (j = 0; j < N; j++) + { + a[i] = a[i] + i; + } + } + + for (i = 0; i < N; i++) + { + __VERIFIER_assert(a[i] == N*i); + } +} + + + diff --git a/data/benchmarks/diffy_cav21_bench/nested-nlj1.c b/data/benchmarks/diffy_cav21_bench/nested-nlj1.c new file mode 100644 index 000000000..da08b0af8 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/nested-nlj1.c @@ -0,0 +1,41 @@ +/* + * Benchmarks contributed by Divyesh Unadkat[1,2], Supratik Chakraborty[1], Ashutosh Gupta[1] + * [1] Indian Institute of Technology Bombay, Mumbai + * [2] TCS Innovation labs, Pune + * + */ + +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int N; + +int main() +{ + N = __VERIFIER_nondet_int(); + if(N <= 0) return 1; + __VERIFIER_assume(N <= 2147483647/sizeof(int)); + + int i, j; + int a[N]; + + for (i = 0; i < N; i++) + { + a[i] = 0; + } + + for (i = 0; i < N; i++) + { + for (j = 0; j < i+1; j++) + { + a[j] = a[j] + (i + 1); + } + } + + for (i = 0; i < N; i++) + { + __VERIFIER_assert(a[i] == (N*(N+1) - i*(i+1))/2 ); + } +} diff --git a/data/benchmarks/diffy_cav21_bench/nested-nlj2.c b/data/benchmarks/diffy_cav21_bench/nested-nlj2.c new file mode 100644 index 000000000..f6ea60930 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/nested-nlj2.c @@ -0,0 +1,43 @@ +/* + * Benchmarks contributed by Divyesh Unadkat[1,2], Supratik Chakraborty[1], Ashutosh Gupta[1] + * [1] Indian Institute of Technology Bombay, Mumbai + * [2] TCS Innovation labs, Pune + * + */ + +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int N; + +int main() +{ + N = __VERIFIER_nondet_int(); + if(N <= 0) return 1; + __VERIFIER_assume(N <= 2147483647/sizeof(int)); + + int i, j; + int a[N]; + + for (i = 0; i < N; i++) + { + a[i] = 0; + } + + for (i = 0; i < N; i++) + { + for (j = i; j < N; j++) + { + a[j] = a[j] + (i + 1); + } + } + + for (i = 0; i < N; i++) + { + __VERIFIER_assert(a[i] == (i + 2) * (i + 1) / 2); + } +} + + diff --git a/data/benchmarks/diffy_cav21_bench/nested-nlj3.c b/data/benchmarks/diffy_cav21_bench/nested-nlj3.c new file mode 100644 index 000000000..f628e591a --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/nested-nlj3.c @@ -0,0 +1,44 @@ +/* + * Benchmarks contributed by Divyesh Unadkat[1,2], Supratik Chakraborty[1], Ashutosh Gupta[1] + * [1] Indian Institute of Technology Bombay, Mumbai + * [2] TCS Innovation labs, Pune + * + */ + +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int N; + +int main() +{ + N = __VERIFIER_nondet_int(); + if(N <= 0) return 1; + __VERIFIER_assume(N <= 2147483647/sizeof(int)); + + int i, j; + int a[N]; + + for (i = 0; i < N; i++) + { + a[i] = 0; + } + + for (i = 0; i < N; i++) + { + for (j = 0; j < N; j++) + { + a[j] = a[j] + (i + 1); + } + } + + for (i = 0; i < N; i++) + { + __VERIFIER_assert(a[i] == N*(N+1)/2); + } +} + + + diff --git a/data/benchmarks/diffy_cav21_bench/nested-nsna1.c b/data/benchmarks/diffy_cav21_bench/nested-nsna1.c new file mode 100644 index 000000000..440d467f5 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/nested-nsna1.c @@ -0,0 +1,49 @@ +/* + * Benchmarks contributed by Divyesh Unadkat[1,2], Supratik Chakraborty[1], Ashutosh Gupta[1] + * [1] Indian Institute of Technology Bombay, Mumbai + * [2] TCS Innovation labs, Pune + * + */ + +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +/*@ + requires N > 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + + int i, j; + int sum[1]; + + for (i = 0; i < N; i++) + { + b[i] = 0; + } + + sum[0] = 0; + for (i = 0; i < N; i++) + { + for (j = 0; j < N; j++) + { + sum[0] = sum[0] + a[i]; + } + } + + for (i = 0; i < N; i++) + { + for (j = 0; j < i+1; j++) + { + b[j] = b[j] + sum[0]; + } + } + + for (i = 0; i < N; i++) + { + __VERIFIER_assert(b[i] == (N-i) * sum[0]); + } +} diff --git a/data/benchmarks/diffy_cav21_bench/nested-nsna2.c b/data/benchmarks/diffy_cav21_bench/nested-nsna2.c new file mode 100644 index 000000000..772137cfb --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/nested-nsna2.c @@ -0,0 +1,49 @@ +/* + * Benchmarks contributed by Divyesh Unadkat[1,2], Supratik Chakraborty[1], Ashutosh Gupta[1] + * [1] Indian Institute of Technology Bombay, Mumbai + * [2] TCS Innovation labs, Pune + * + */ + +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +/*@ + requires N > 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + + int i, j; + int sum[1]; + + for (i = 0; i < N; i++) + { + b[i] = 0; + } + + sum[0] = 0; + for (i = 0; i < N; i++) + { + for (j = 0; j < N; j++) + { + sum[0] = sum[0] + a[i]; + } + } + + for (i = 0; i < N; i++) + { + for (j = 0; j < N; j++) + { + b[j] = b[j] + sum[0]; + } + } + + for (i = 0; i < N; i++) + { + __VERIFIER_assert(b[i] == N * sum[0]); + } +} diff --git a/data/benchmarks/diffy_cav21_bench/nested-nsna3.c b/data/benchmarks/diffy_cav21_bench/nested-nsna3.c new file mode 100644 index 000000000..2e8ddcdcd --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/nested-nsna3.c @@ -0,0 +1,48 @@ +/* + * Benchmarks contributed by Divyesh Unadkat[1,2], Supratik Chakraborty[1], Ashutosh Gupta[1] + * [1] Indian Institute of Technology Bombay, Mumbai + * [2] TCS Innovation labs, Pune + * + */ + +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +/*@ + requires N > 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + int i, j; + int sum[1]; + + for (i = 0; i < N; i++) + { + b[i] = 0; + } + + sum[0] = 0; + for (i = 0; i < N; i++) + { + for (j = 0; j < N; j++) + { + sum[0] = sum[0] + a[i]; + } + } + + for (i = 0; i < N; i++) + { + for (j = i; j < N; j++) + { + b[j] = b[j] + sum[0]; + } + } + + for (i = 0; i < N; i++) + { + __VERIFIER_assert(b[i] == (i+1)*sum[0]); + } +} diff --git a/data/benchmarks/diffy_cav21_bench/nested-sa1.c b/data/benchmarks/diffy_cav21_bench/nested-sa1.c new file mode 100644 index 000000000..6289a6068 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/nested-sa1.c @@ -0,0 +1,46 @@ +/* + * Benchmarks contributed by Divyesh Unadkat[1,2], Supratik Chakraborty[1], Ashutosh Gupta[1] + * [1] Indian Institute of Technology Bombay, Mumbai + * [2] TCS Innovation labs, Pune + * + */ + +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +/*@ + requires N > 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + int i, j; + int sum[1]; + + for (i = 0; i < N; i++) + { + a[i] = 1; + } + + sum[0] = 0; + for (i = 0; i < N; i++) + { + for (j = 0; j < i+1; j++) + { + sum[0] = sum[0] + a[j]; + } + } + + for (i = 0; i < N; i++) + { + b[i] = sum[0] + a[i]; + } + + for (i = 0; i < N; i++) + { + __VERIFIER_assert(b[i] == N*(N+1)/2 + 1); + } +} + diff --git a/data/benchmarks/diffy_cav21_bench/nested-sna1.c b/data/benchmarks/diffy_cav21_bench/nested-sna1.c new file mode 100644 index 000000000..916d1afd0 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/nested-sna1.c @@ -0,0 +1,49 @@ +/* + * Benchmarks contributed by Divyesh Unadkat[1,2], Supratik Chakraborty[1], Ashutosh Gupta[1] + * [1] Indian Institute of Technology Bombay, Mumbai + * [2] TCS Innovation labs, Pune + * + */ + +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +/*@ + requires N > 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + + int i, j; + int sum[1]; + + + for (i = 0; i < N; i++) + { + b[i] = 0; + } + + sum[0] = 0; + for (i = 0; i < N; i++) + { + sum[0] = sum[0] + a[i]; + } + + for (i = 0; i < N; i++) + { + for (j = 0; j < i+1; j++) + { + b[j] = b[j] + sum[0]; + } + } + + for (i = 0; i < N; i++) + { + __VERIFIER_assert(b[i] == (N-i) * sum[0]); + } + +} + diff --git a/data/benchmarks/diffy_cav21_bench/nested-sna2.c b/data/benchmarks/diffy_cav21_bench/nested-sna2.c new file mode 100644 index 000000000..494ca822b --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/nested-sna2.c @@ -0,0 +1,47 @@ +/* + * Benchmarks contributed by Divyesh Unadkat[1,2], Supratik Chakraborty[1], Ashutosh Gupta[1] + * [1] Indian Institute of Technology Bombay, Mumbai + * [2] TCS Innovation labs, Pune + * + */ + +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +/*@ + requires N > 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + int i, j; + int sum[1]; + + for (i = 0; i < N; i++) + { + b[i] = 0; + } + + sum[0] = 0; + for (i = 0; i < N; i++) + { + sum[0] = sum[0] + a[i]; + } + + for (i = 0; i < N; i++) + { + for (j = 0; j < N; j++) + { + b[j] = b[j] + sum[0]; + } + } + + for (i = 0; i < N; i++) + { + __VERIFIER_assert(b[i] == N * sum[0]); + } + +} + diff --git a/data/benchmarks/diffy_cav21_bench/nested-sna3.c b/data/benchmarks/diffy_cav21_bench/nested-sna3.c new file mode 100644 index 000000000..f253716ea --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/nested-sna3.c @@ -0,0 +1,48 @@ +/* + * Benchmarks contributed by Divyesh Unadkat[1,2], Supratik Chakraborty[1], Ashutosh Gupta[1] + * [1] Indian Institute of Technology Bombay, Mumbai + * [2] TCS Innovation labs, Pune + * + */ + +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +/*@ + requires N > 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + + int i, j; + int sum[1]; + + for (i = 0; i < N; i++) + { + b[i] = 0; + } + + sum[0] = 0; + for (i = 0; i < N; i++) + { + sum[0] = sum[0] + a[i]; + } + + for (i = 0; i < N; i++) + { + for (j = i; j < N; j++) + { + b[j] = b[j] + sum[0]; + } + } + + for (i = 0; i < N; i++) + { + __VERIFIER_assert(b[i] == (i+1)*sum[0]); + } + +} + diff --git a/data/benchmarks/diffy_cav21_bench/nested-ss1.c b/data/benchmarks/diffy_cav21_bench/nested-ss1.c new file mode 100644 index 000000000..7b63b080d --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/nested-ss1.c @@ -0,0 +1,58 @@ +/* + * Benchmarks contributed by Divyesh Unadkat[1,2], Supratik Chakraborty[1], Ashutosh Gupta[1] + * [1] Indian Institute of Technology Bombay, Mumbai + * [2] TCS Innovation labs, Pune + * + */ + +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +/*@ + requires N > 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + + int i, j; + int sum[1]; + + for (i = 0; i < N; i++) + { + a[i] = 1; + } + + for (i = 0; i < N; i++) + { + b[i] = 1; + } + + sum[0] = 0; + for (i = 0; i < N; i++) + { + sum[0] = sum[0] + a[i]; + } + + for (i = 0; i < N; i++) + { + sum[0] = sum[0] + b[i]; + } + + for (i = 0; i < N; i++) + { + for (j = 0; j < N; j++) + { + b[i] = b[i] + 1; + } + b[i] = b[i] + sum[0]; + } + + for (i = 0; i < N; i++) + { + __VERIFIER_assert(b[i] == 3*N + 1); + } +} + diff --git a/data/benchmarks/diffy_cav21_bench/nested-ss2.c b/data/benchmarks/diffy_cav21_bench/nested-ss2.c new file mode 100644 index 000000000..ea2202a98 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/nested-ss2.c @@ -0,0 +1,57 @@ +/* + * Benchmarks contributed by Divyesh Unadkat[1,2], Supratik Chakraborty[1], Ashutosh Gupta[1] + * [1] Indian Institute of Technology Bombay, Mumbai + * [2] TCS Innovation labs, Pune + * + */ + +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +/*@ + requires N > 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + int i, j; + int sum[1]; + + for (i = 0; i < N; i++) + { + a[i] = 1; + } + + for (i = 0; i < N; i++) + { + b[i] = 1; + } + + sum[0] = 0; + for (i = 0; i < N; i++) + { + sum[0] = sum[0] + a[i]; + } + + for (i = 0; i < N; i++) + { + sum[0] = sum[0] + b[i]; + } + + for (i = 0; i < N; i++) + { + for (j = 0; j < i; j++) + { + b[i] = b[i] + 1; + } + b[i] = b[i] + sum[0]; + } + + for (i = 0; i < N; i++) + { + __VERIFIER_assert(b[i] == 2*N + i + 1); + } +} + diff --git a/data/benchmarks/diffy_cav21_bench/nested-ss3.c b/data/benchmarks/diffy_cav21_bench/nested-ss3.c new file mode 100644 index 000000000..cf9233bc2 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/nested-ss3.c @@ -0,0 +1,57 @@ +/* + * Benchmarks contributed by Divyesh Unadkat[1,2], Supratik Chakraborty[1], Ashutosh Gupta[1] + * [1] Indian Institute of Technology Bombay, Mumbai + * [2] TCS Innovation labs, Pune + * + */ + +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +/*@ + requires N > 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + int i, j; + int sum[1]; + + for (i = 0; i < N; i++) + { + a[i] = 1; + } + + for (i = 0; i < N; i++) + { + b[i] = 1; + } + + sum[0] = 0; + for (i = 0; i < N; i++) + { + sum[0] = sum[0] + a[i]; + } + + for (i = 0; i < N; i++) + { + sum[0] = sum[0] + b[i]; + } + + for (i = 0; i < N; i++) + { + for (j = i; j < N; j++) + { + b[i] = b[i] + 1; + } + b[i] = b[i] + sum[0]; + } + + for (i = 0; i < N; i++) + { + __VERIFIER_assert(b[i] == 3*N + 1 - i); + } +} + diff --git a/data/benchmarks/diffy_cav21_bench/nested-sum.c b/data/benchmarks/diffy_cav21_bench/nested-sum.c new file mode 100644 index 000000000..cc67d4f9a --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/nested-sum.c @@ -0,0 +1,35 @@ +/* + * Benchmarks contributed by Divyesh Unadkat[1,2], Supratik Chakraborty[1], Ashutosh Gupta[1] + * [1] Indian Institute of Technology Bombay, Mumbai + * [2] TCS Innovation labs, Pune + * + */ + +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int N; + +int main() +{ + N = __VERIFIER_nondet_int(); + if(N <= 0) return 1; + __VERIFIER_assume(N <= 2147483647/sizeof(int)); + + int i, j; + int sum[1]; + + sum[0] = 0; + for (i = 0; i < N; i++) + { + for (j = 0; j < i+1; j++) + { + sum[0] = sum[0] + 1; + } + } + + __VERIFIER_assert(sum[0] == N*(N+1)/2); +} + diff --git a/data/benchmarks/diffy_cav21_bench/nested-unb1.c b/data/benchmarks/diffy_cav21_bench/nested-unb1.c new file mode 100644 index 000000000..7fdd983b3 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/nested-unb1.c @@ -0,0 +1,39 @@ +/* + * Benchmarks contributed by Divyesh Unadkat[1,2], Supratik Chakraborty[1], Ashutosh Gupta[1] + * [1] Indian Institute of Technology Bombay, Mumbai + * [2] TCS Innovation labs, Pune + * + */ + +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +/*@ + requires N > 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + int i, j; + + for (i = 0; i < N; i++) + { + b[i] = 1; + } + + for (i = 0; i < N; i++) + { + for (j = 0; j < i+1; j++) + { + b[j] = b[j] + a[j]; + } + } + + for (i = 0; i < N; i++) + { + __VERIFIER_assert(b[i] == ((N-i) * a[i]) + 1); + } +} + diff --git a/data/benchmarks/diffy_cav21_bench/nested-unb2.c b/data/benchmarks/diffy_cav21_bench/nested-unb2.c new file mode 100644 index 000000000..f68a265d4 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/nested-unb2.c @@ -0,0 +1,39 @@ +/* + * Benchmarks contributed by Divyesh Unadkat[1,2], Supratik Chakraborty[1], Ashutosh Gupta[1] + * [1] Indian Institute of Technology Bombay, Mumbai + * [2] TCS Innovation labs, Pune + * + */ + +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +/*@ + requires N > 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + int i, j; + + for (i = 0; i < N; i++) + { + b[i] = 1; + } + + for (i = 0; i < N; i++) + { + for (j = i; j < N; j++) + { + b[j] = b[j] + a[j]; + } + } + + for (i = 0; i < N; i++) + { + __VERIFIER_assert(b[i] == ((i+1) * a[i]) + 1); + } +} + diff --git a/data/benchmarks/diffy_cav21_bench/nested-unb3.c b/data/benchmarks/diffy_cav21_bench/nested-unb3.c new file mode 100644 index 000000000..1e4e2ec4d --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/nested-unb3.c @@ -0,0 +1,39 @@ +/* + * Benchmarks contributed by Divyesh Unadkat[1,2], Supratik Chakraborty[1], Ashutosh Gupta[1] + * [1] Indian Institute of Technology Bombay, Mumbai + * [2] TCS Innovation labs, Pune + * + */ + +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +/*@ + requires N > 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + int i, j; + + for (i = 0; i < N; i++) + { + b[i] = 1; + } + + for (i = 0; i < N; i++) + { + for (j = 0; j < N; j++) + { + b[j] = b[j] + a[j]; + } + } + + for (i = 0; i < N; i++) + { + __VERIFIER_assert(b[i] == (N * a[i]) + 1); + } +} + diff --git a/data/benchmarks/diffy_cav21_bench/nsqm-if.c b/data/benchmarks/diffy_cav21_bench/nsqm-if.c new file mode 100644 index 000000000..2f8f71e65 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/nsqm-if.c @@ -0,0 +1,44 @@ +/* + * Benchmarks contributed by Divyesh Unadkat[1,2], Supratik Chakraborty[1], Ashutosh Gupta[1] + * [1] Indian Institute of Technology Bombay, Mumbai + * [2] TCS Innovation labs, Pune + * + */ + +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +/*@ + requires N > 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + int i; + + for(i=0; i 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + int i; + + b[0] = 1; + a[0] = N+1; + + for(i=1; i 0; + requires \separated(a+(0..N-1), b+(0..N-1), c+(0..N-1)); +*/ +int main(int* a, int* b, int* c, int N) +{ + int i; + + a[0] = 6; + b[0] = 1; + c[0] = 0; + + for(i=1; i 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + int i; + int sum[1]; + + sum[0] = 0; + for(i=0; i 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + + int i; + int sum[1]; + + sum[0] = 0; + for(i=0; i 0; + requires \separated(a+(0..N-1), b+(0..N-1), c+(0..N-1)); +*/ +int main(int* a, int* b, int* c, int N) +{ + int i; + int sum[1]; + + sum[0] = 0; + for(i=0; i 0; + requires \separated(a+(0..N-1), b+(0..N-1), c+(0..N-1)); +*/ +int main(int* a, int* b, int* c, int N) +{ + int i; + int sum[1]; + + sum[0] = 0; + for(i=0; i= array[ x ] ); + } + + return 0; +} diff --git a/data/benchmarks/diffy_cav21_bench/sina1.c b/data/benchmarks/diffy_cav21_bench/sina1.c new file mode 100644 index 000000000..5f86340c4 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/sina1.c @@ -0,0 +1,40 @@ +/* + * Benchmarks contributed by Divyesh Unadkat[1,2], Supratik Chakraborty[1], Ashutosh Gupta[1] + * [1] Indian Institute of Technology Bombay, Mumbai + * [2] TCS Innovation labs, Pune + * + */ + +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int N; + +int main() +{ + N = __VERIFIER_nondet_int(); + if(N <= 0) return 1; + + int i; + int sum[1]; + int a[N]; + + sum[0] = 0; + for(i=0; i 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + int i; + int sum[1]; + + sum[0] = 0; + for(i=0; i 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + int i; + int sum[1]; + + sum[0] = 0; + for(i=0; i 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + int i; + int sum[1]; + + sum[0] = 0; + for(i=0; i 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + int i; + + for(i=0; i 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N) +{ + int i; + + b[0] = 1; + a[0] = 1; + + for(i=1; i 0; + requires \separated(a+(0..SIZE-1), b+(0..SIZE-1), c+(0..SIZE-1)); +*/ +int main(int* a, int* b, int* c, int SIZE) +{ + int i = 0; + int rv[1]; + + rv[0] = 1; + for (int j = 0; j < SIZE ; j++ ) { + a[j] = __VERIFIER_nondet_int(); + b[j] = __VERIFIER_nondet_int(); + } + + while ( i < SIZE ) { + if ( a[i] != b[i] ) { + rv[0] = 0; + } + c[i] = a[i]; + i = i+1; + } + + int x; + + for ( x = 0 ; x < SIZE ; x++ ) { + __VERIFIER_assert( a[x] == c[x] ); + } + return 0; +} diff --git a/data/benchmarks/diffy_cav21_bench/standard_compare_ground.c b/data/benchmarks/diffy_cav21_bench/standard_compare_ground.c new file mode 100644 index 000000000..e19b06915 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/standard_compare_ground.c @@ -0,0 +1,33 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(); + +/*@ + requires SIZE > 0; + requires \separated(a+(0..SIZE-1), b+(0..SIZE-1)); +*/ +int main(int* a, int* b, int SIZE) +{ + int i; + int rv[1]; + + for (i = 0; i < SIZE ; i++ ) { + a[i] = __VERIFIER_nondet_int(); + b[i] = __VERIFIER_nondet_int(); + } + + rv[0] = 1; + i = 0; + while ( i < SIZE ) { + if ( a[i] != b[i] ) { + rv[0] = 0; + } + i = i+1; + } + + int x; + for ( x = 0 ; x < SIZE ; x++ ) { + __VERIFIER_assert( rv[0] == 0 || a[x] == b[x] ); + } + return 0; +} diff --git a/data/benchmarks/diffy_cav21_bench/standard_copy1_ground-1.c b/data/benchmarks/diffy_cav21_bench/standard_copy1_ground-1.c new file mode 100644 index 000000000..fc5bea70a --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/standard_copy1_ground-1.c @@ -0,0 +1,27 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(); + + +/*@ + requires N > 0; + requires \separated(a1+(0..N-1), a2+(0..N-1)); +*/ +int main(int* a1, int* a2, int N) { + int a; + for ( a = 0 ; a < N ; a++ ) { + a1[a] = __VERIFIER_nondet_int(); + } + + int i; + for ( i = 0 ; i < N ; i++ ) { + a2[i] = a1[i]; + } + + int x; + for ( x = 0 ; x < N ; x++ ) { + __VERIFIER_assert( a1[x] == a2[x] ); + } + return 0; +} + diff --git a/data/benchmarks/diffy_cav21_bench/standard_copy2_ground-2.c b/data/benchmarks/diffy_cav21_bench/standard_copy2_ground-2.c new file mode 100644 index 000000000..10317738f --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/standard_copy2_ground-2.c @@ -0,0 +1,29 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(); + +/*@ + requires N > 0; + requires \separated(a1+(0..N-1), a2+(0..N-1), a3+(0..N-1)); +*/ +int main(int* a1, int* a2, int* a3, int N ) { + int a; + for ( a = 0 ; a < N ; a++ ) { + a1[a] = __VERIFIER_nondet_int(); + } + + int i; + for ( i = 0 ; i < N ; i++ ) { + a2[i] = a1[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a3[i] = a2[i]; + } + + int x; + for ( x = 0 ; x < N ; x++ ) { + __VERIFIER_assert( a1[x] == a3[x] ); + } + return 0; +} + diff --git a/data/benchmarks/diffy_cav21_bench/standard_copy3_ground-1.c b/data/benchmarks/diffy_cav21_bench/standard_copy3_ground-1.c new file mode 100644 index 000000000..60fb66556 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/standard_copy3_ground-1.c @@ -0,0 +1,32 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(); + +/*@ + requires N > 0; + requires \separated(a1+(0..N-1), a2+(0..N-1), a3+(0..N-1), a4+(0..N-1)); +*/ +int main(int *a1, int *a2, int *a3, int *a4, int N) { + int a; + for ( a = 0 ; a < N ; a++ ) { + a1[a] = __VERIFIER_nondet_int(); + } + + int i; + for ( i = 0 ; i < N ; i++ ) { + a2[i] = a1[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a3[i] = a2[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a4[i] = a3[i]; + } + + int x; + for ( x = 0 ; x < N ; x++ ) { + __VERIFIER_assert( a1[x] == a4[x] ); + } + return 0; +} + diff --git a/data/benchmarks/diffy_cav21_bench/standard_copy4_ground-1.c b/data/benchmarks/diffy_cav21_bench/standard_copy4_ground-1.c new file mode 100644 index 000000000..3385af849 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/standard_copy4_ground-1.c @@ -0,0 +1,35 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(); + +/*@ + requires N > 0; + requires \separated(a1+(0..N-1), a2+(0..N-1), a3+(0..N-1), a4+(0..N-1), a5+(0..N-1)); +*/ +int main(int* a1, int* a2, int* a3, int* a4, int* a5, int N ) { + int a; + for ( a = 0 ; a < N ; a++ ) { + a1[a] = __VERIFIER_nondet_int(); + } + + int i; + for ( i = 0 ; i < N ; i++ ) { + a2[i] = a1[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a3[i] = a2[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a4[i] = a3[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a5[i] = a4[i]; + } + + int x; + for ( x = 0 ; x < N ; x++ ) { + __VERIFIER_assert( a1[x] == a5[x] ); + } + return 0; +} + diff --git a/data/benchmarks/diffy_cav21_bench/standard_copy5_ground-1.c b/data/benchmarks/diffy_cav21_bench/standard_copy5_ground-1.c new file mode 100644 index 000000000..72e1e85e6 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/standard_copy5_ground-1.c @@ -0,0 +1,38 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(); + +/*@ + requires N > 0; + requires \separated(a1+(0..N-1), a2+(0..N-1), a3+(0..N-1), a4+(0..N-1), a5+(0..N-1), a6+(0..N-1)); +*/ +int main(int* a1, int* a2, int* a3, int* a4, int* a5, int* a6, int N) { + + int a; + for ( a = 0 ; a < N ; a++ ) { + a1[a] = __VERIFIER_nondet_int(); + } + + int i; + for ( i = 0 ; i < N ; i++ ) { + a2[i] = a1[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a3[i] = a2[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a4[i] = a3[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a5[i] = a4[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a6[i] = a5[i]; + } + + int x; + for ( x = 0 ; x < N ; x++ ) { + __VERIFIER_assert( a1[x] == a6[x] ); + } + return 0; +} diff --git a/data/benchmarks/diffy_cav21_bench/standard_copy6_ground-2.c b/data/benchmarks/diffy_cav21_bench/standard_copy6_ground-2.c new file mode 100644 index 000000000..8345b9e8c --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/standard_copy6_ground-2.c @@ -0,0 +1,42 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(); + +/*@ + requires N > 0; + requires \separated(a1+(0..N-1), a2+(0..N-1), a3+(0..N-1), a4+(0..N-1), a5+(0..N-1), a6+(0..N-1), a7+(0..N-1)); +*/ +int main(int* a1, int* a2, int* a3, int* a4, int* a5, int* a6, int* a7, int N) { + + int a; + for ( a = 0 ; a < N ; a++ ) { + a1[a] = __VERIFIER_nondet_int(); + } + + int i; + for ( i = 0 ; i < N ; i++ ) { + a2[i] = a1[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a3[i] = a2[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a4[i] = a3[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a5[i] = a4[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a6[i] = a5[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a7[i] = a6[i]; + } + + int x; + for ( x = 0 ; x < N ; x++ ) { + __VERIFIER_assert( a1[x] == a7[x] ); + } + return 0; +} + diff --git a/data/benchmarks/diffy_cav21_bench/standard_copy7_ground-2.c b/data/benchmarks/diffy_cav21_bench/standard_copy7_ground-2.c new file mode 100644 index 000000000..1973ffb7d --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/standard_copy7_ground-2.c @@ -0,0 +1,44 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(); + +/*@ + requires N > 0; + requires \separated(a1+(0..N-1), a2+(0..N-1), a3+(0..N-1), a4+(0..N-1), a5+(0..N-1), a6+(0..N-1), a7+(0..N-1), a8+(0..N-1)); +*/ +int main(int* a1, int* a2, int* a3, int* a4, int* a5, int* a6, int* a7, int* a8, int N) { + int a; + for ( a = 0 ; a < N ; a++ ) { + a1[a] = __VERIFIER_nondet_int(); + } + + int i; + for ( i = 0 ; i < N ; i++ ) { + a2[i] = a1[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a3[i] = a2[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a4[i] = a3[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a5[i] = a4[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a6[i] = a5[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a7[i] = a6[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a8[i] = a7[i]; + } + + int x; + for ( x = 0 ; x < N ; x++ ) { + __VERIFIER_assert( a1[x] == a8[x] ); + } + return 0; +} + diff --git a/data/benchmarks/diffy_cav21_bench/standard_copy8_ground-1.c b/data/benchmarks/diffy_cav21_bench/standard_copy8_ground-1.c new file mode 100644 index 000000000..60672af1a --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/standard_copy8_ground-1.c @@ -0,0 +1,48 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(); + +/*@ + requires N > 0; + requires \separated(a1+(0..N-1), a2+(0..N-1), a3+(0..N-1), a4+(0..N-1), a5+(0..N-1), a6+(0..N-1), a7+(0..N-1), a8+(0..N-1), a9+(0..N-1)); +*/ +int main(int* a1, int* a2, int* a3, int* a4, int* a5, int* a6, int* a7, int* a8, int* a9, int N) { + + int a; + for ( a = 0 ; a < N ; a++ ) { + a1[a] = __VERIFIER_nondet_int(); + } + + int i; + for ( i = 0 ; i < N ; i++ ) { + a2[i] = a1[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a3[i] = a2[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a4[i] = a3[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a5[i] = a4[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a6[i] = a5[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a7[i] = a6[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a8[i] = a7[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a9[i] = a8[i]; + } + + int x; + for ( x = 0 ; x < N ; x++ ) { + __VERIFIER_assert( a1[x] == a9[x] ); + } + return 0; +} + diff --git a/data/benchmarks/diffy_cav21_bench/standard_copy9_ground-2.c b/data/benchmarks/diffy_cav21_bench/standard_copy9_ground-2.c new file mode 100644 index 000000000..4af603014 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/standard_copy9_ground-2.c @@ -0,0 +1,50 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(); + +/*@ + requires N > 0; + requires \separated(a1+(0..N-1), a2+(0..N-1), a3+(0..N-1), a4+(0..N-1), a5+(0..N-1), a6+(0..N-1), a7+(0..N-1), a8+(0..N-1), a9+(0..N-1), a0+(0..N-1)); +*/ +int main(int* a1, int* a2, int* a3, int* a4, int* a5, int* a6, int* a7, int* a8, int* a9, int* a0, int N ) { + int a; + for ( a = 0 ; a < N ; a++ ) { + a1[a] = __VERIFIER_nondet_int(); + } + + int i; + for ( i = 0 ; i < N ; i++ ) { + a2[i] = a1[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a3[i] = a2[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a4[i] = a3[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a5[i] = a4[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a6[i] = a5[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a7[i] = a6[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a8[i] = a7[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a9[i] = a8[i]; + } + for ( i = 0 ; i < N ; i++ ) { + a0[i] = a9[i]; + } + + int x; + for ( x = 0 ; x < N ; x++ ) { + __VERIFIER_assert( a1[x] == a0[x] ); + } + return 0; +} + diff --git a/data/benchmarks/diffy_cav21_bench/standard_copyInitSum2_ground-2.c b/data/benchmarks/diffy_cav21_bench/standard_copyInitSum2_ground-2.c new file mode 100644 index 000000000..21304bd67 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/standard_copyInitSum2_ground-2.c @@ -0,0 +1,29 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(); + +/*@ + requires N > 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main (int* a, int* b, int N ) { + int i = 0; + while ( i < N ) { + a[i] = 42; + i = i + 1; + } + + for ( i = 0 ; i < N ; i++ ) { + b[i] = a[i]; + } + + for ( i = 0 ; i < N ; i++ ) { + b[i] = b[i] + i; + } + + int x; + for ( x = 0 ; x < N ; x++ ) { + __VERIFIER_assert( b[x] == 42 + x ); + } + return 0; +} diff --git a/data/benchmarks/diffy_cav21_bench/standard_copyInitSum3_ground.c b/data/benchmarks/diffy_cav21_bench/standard_copyInitSum3_ground.c new file mode 100644 index 000000000..b58186889 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/standard_copyInitSum3_ground.c @@ -0,0 +1,33 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(); + +/*@ + requires N > 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main (int* a, int* b, int N) { + int i = 0; + while ( i < N ) { + a[i] = 42; + i = i + 1; + } + + for ( i = 0 ; i < N ; i++ ) { + b[i] = a[i]; + } + + for ( i = 0 ; i < N ; i++ ) { + b[i] = b[i] + i; + } + + for ( i = 0 ; i < N ; i++ ) { + b[i] = b[i] - a[i]; + } + + int x; + for ( x = 0 ; x < N ; x++ ) { + __VERIFIER_assert( b[x] == x ); + } + return 0; +} diff --git a/data/benchmarks/diffy_cav21_bench/standard_copyInitSum_ground.c b/data/benchmarks/diffy_cav21_bench/standard_copyInitSum_ground.c new file mode 100644 index 000000000..c6a471226 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/standard_copyInitSum_ground.c @@ -0,0 +1,33 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + + +/*@ + requires N > 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main (int* a, int* b, int N) { + int incr[1]; + + incr[0]= __VERIFIER_nondet_int(); + int i = 0; + while ( i < N ) { + a[i] = 42; + i = i + 1; + } + + for ( i = 0 ; i < N ; i++ ) { + b[i] = a[i]; + } + + for ( i = 0 ; i < N ; i++ ) { + b[i] = b[i] + incr[0]; + } + + int x; + for ( x = 0 ; x < N ; x++ ) { + __VERIFIER_assert( b[x] == 42 + incr[0] ); + } + return 0; +} diff --git a/data/benchmarks/diffy_cav21_bench/standard_copyInit_ground.c b/data/benchmarks/diffy_cav21_bench/standard_copyInit_ground.c new file mode 100644 index 000000000..6edba987b --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/standard_copyInit_ground.c @@ -0,0 +1,25 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(); + +/*@ + requires N > 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main (int* a, int* b, int N) { + int i = 0; + while ( i < N ) { + a[i] = 42; + i = i + 1; + } + + for ( i = 0 ; i < N ; i++ ) { + b[i] = a[i]; + } + + int x; + for ( x = 0 ; x < N ; x++ ) { + __VERIFIER_assert( b[x] == 42 ); + } + return 0; +} diff --git a/data/benchmarks/diffy_cav21_bench/standard_init1_ground-2.c b/data/benchmarks/diffy_cav21_bench/standard_init1_ground-2.c new file mode 100644 index 000000000..87c27fb4e --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/standard_init1_ground-2.c @@ -0,0 +1,22 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int N; +int main ( ) { + N = __VERIFIER_nondet_int(); + if (N <= 0) return 1; + + int a[N]; + int i = 0; + while ( i < N ) { + a[i] = 42; + i = i + 1; + } + + int x; + for ( x = 0 ; x < N ; x++ ) { + __VERIFIER_assert( a[x] == 42 ); + } + return 0; +} diff --git a/data/benchmarks/diffy_cav21_bench/standard_init2_ground-2.c b/data/benchmarks/diffy_cav21_bench/standard_init2_ground-2.c new file mode 100644 index 000000000..145a0d05e --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/standard_init2_ground-2.c @@ -0,0 +1,27 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int N; +int main ( ) { + N = __VERIFIER_nondet_int(); + if (N <= 0) return 1; + + int a[N]; + int i = 0; + while ( i < N ) { + a[i] = 42; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 43; + i = i + 1; + } + + int x; + for ( x = 0 ; x < N ; x++ ) { + __VERIFIER_assert( a[x] == 43 ); + } + return 0; +} diff --git a/data/benchmarks/diffy_cav21_bench/standard_init3_ground-2.c b/data/benchmarks/diffy_cav21_bench/standard_init3_ground-2.c new file mode 100644 index 000000000..94a2f2d4b --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/standard_init3_ground-2.c @@ -0,0 +1,31 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int N; +int main ( ) { + N = __VERIFIER_nondet_int(); + if (N <= 0) return 1; + int a[N]; + int i = 0; + while ( i < N ) { + a[i] = 42; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 43; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 44; + i = i + 1; + } + + int x; + for ( x = 0 ; x < N ; x++ ) { + __VERIFIER_assert( a[x] == 44 ); + } + return 0; +} diff --git a/data/benchmarks/diffy_cav21_bench/standard_init4_ground-2.c b/data/benchmarks/diffy_cav21_bench/standard_init4_ground-2.c new file mode 100644 index 000000000..8a11427ac --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/standard_init4_ground-2.c @@ -0,0 +1,36 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int N; +int main ( ) { + N = __VERIFIER_nondet_int(); + if (N <= 0) return 1; + int a[N]; + int i = 0; + while ( i < N ) { + a[i] = 42; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 43; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 44; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 45; + i = i + 1; + } + + int x; + for ( x = 0 ; x < N ; x++ ) { + __VERIFIER_assert( a[x] == 45 ); + } + return 0; +} diff --git a/data/benchmarks/diffy_cav21_bench/standard_init5_ground-1.c b/data/benchmarks/diffy_cav21_bench/standard_init5_ground-1.c new file mode 100644 index 000000000..955a6bfa8 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/standard_init5_ground-1.c @@ -0,0 +1,41 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int N; +int main ( ) { + N = __VERIFIER_nondet_int(); + if (N <= 0) return 1; + int a[N]; + int i = 0; + while ( i < N ) { + a[i] = 42; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 43; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 44; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 45; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 46; + i = i + 1; + } + + int x; + for ( x = 0 ; x < N ; x++ ) { + __VERIFIER_assert( a[x] == 46 ); + } + return 0; +} diff --git a/data/benchmarks/diffy_cav21_bench/standard_init6_ground-2.c b/data/benchmarks/diffy_cav21_bench/standard_init6_ground-2.c new file mode 100644 index 000000000..3f69cd89a --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/standard_init6_ground-2.c @@ -0,0 +1,46 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int N; +int main ( ) { + N = __VERIFIER_nondet_int(); + if (N <= 0) return 1; + int a[N]; + int i = 0; + while ( i < N ) { + a[i] = 42; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 43; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 44; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 45; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 46; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 47; + i = i + 1; + } + + int x; + for ( x = 0 ; x < N ; x++ ) { + __VERIFIER_assert( a[x] == 47 ); + } + return 0; +} diff --git a/data/benchmarks/diffy_cav21_bench/standard_init7_ground-2.c b/data/benchmarks/diffy_cav21_bench/standard_init7_ground-2.c new file mode 100644 index 000000000..9ed6fed96 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/standard_init7_ground-2.c @@ -0,0 +1,51 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int N; +int main ( ) { + N = __VERIFIER_nondet_int(); + if (N <= 0) return 1; + int a[N]; + int i = 0; + while ( i < N ) { + a[i] = 42; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 43; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 44; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 45; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 46; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 47; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 48; + i = i + 1; + } + + int x; + for ( x = 0 ; x < N ; x++ ) { + __VERIFIER_assert( a[x] == 48 ); + } + return 0; +} diff --git a/data/benchmarks/diffy_cav21_bench/standard_init8_ground-2.c b/data/benchmarks/diffy_cav21_bench/standard_init8_ground-2.c new file mode 100644 index 000000000..46ba15996 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/standard_init8_ground-2.c @@ -0,0 +1,56 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int N; +int main ( ) { + N = __VERIFIER_nondet_int(); + if (N <= 0) return 1; + int a[N]; + int i = 0; + while ( i < N ) { + a[i] = 42; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 43; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 44; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 45; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 46; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 47; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 48; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 49; + i = i + 1; + } + + int x; + for ( x = 0 ; x < N ; x++ ) { + __VERIFIER_assert( a[x] == 49 ); + } + return 0; +} diff --git a/data/benchmarks/diffy_cav21_bench/standard_init9_ground-2.c b/data/benchmarks/diffy_cav21_bench/standard_init9_ground-2.c new file mode 100644 index 000000000..16603f866 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/standard_init9_ground-2.c @@ -0,0 +1,62 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(); + +int N; +int main ( ) { + N = __VERIFIER_nondet_int(); + if (N <= 0) return 1; + + int a[N]; + int i = 0; + while ( i < N ) { + a[i] = 42; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 43; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 44; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 45; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 46; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 47; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 48; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 49; + i = i + 1; + } + i = 0; + while ( i < N ) { + a[i] = 50; + i = i + 1; + } + + int x; + for ( x = 0 ; x < N ; x++ ) { + __VERIFIER_assert( a[x] == 50 ); + } + return 0; +} diff --git a/data/benchmarks/diffy_cav21_bench/standard_maxInArray_ground.c b/data/benchmarks/diffy_cav21_bench/standard_maxInArray_ground.c new file mode 100644 index 000000000..78b7c8970 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/standard_maxInArray_ground.c @@ -0,0 +1,32 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(); + +int N; + +int main( ) { + N = __VERIFIER_nondet_int(); + if ( N <= 0 ) return 1; + + int a[N]; + int max[1]; + + max[0] = 0; + for (int j = 0; j < N ; j++ ) { + a[j] = __VERIFIER_nondet_int(); + } + + int i = 0; + while ( i < N ) { + if ( a[i] > max[0] ) { + max[0] = a[i]; + } + i = i + 1; + } + + int x; + for ( x = 0 ; x < N ; x++ ) { + __VERIFIER_assert( a[x] <= max[0] ); + } + return 0; +} diff --git a/data/benchmarks/diffy_cav21_bench/standard_minInArray_ground-2.c b/data/benchmarks/diffy_cav21_bench/standard_minInArray_ground-2.c new file mode 100644 index 000000000..aa7da05fd --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/standard_minInArray_ground-2.c @@ -0,0 +1,33 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int N; + +int main( ) { + N = __VERIFIER_nondet_int(); + if (N <= 0) return 1; + int i; + int a[N]; + int min[1]; + + min[0]=0; + for(i = 0; i < N; i++) + { + a[i] = __VERIFIER_nondet_int(); + } + + i = 0; + while ( i < N ) { + if ( a[i] < min[0] ) { + min[0] = a[i]; + } + i = i + 1; + } + + int x; + for ( x = 0 ; x < N ; x++ ) { + __VERIFIER_assert( a[x] >= min[0] ); + } + return 0; +} diff --git a/data/benchmarks/diffy_cav21_bench/standard_password_ground.c b/data/benchmarks/diffy_cav21_bench/standard_password_ground.c new file mode 100644 index 000000000..07f21ba57 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/standard_password_ground.c @@ -0,0 +1,32 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(); + +/*@ + requires SIZE > 0; + requires \separated(password+(0..SIZE-1), guess+(0..SIZE-1)); +*/ +int main(int* password, int* guess, int SIZE) +{ + int i; + int result[1]; + result[0] = 1; + + for (i = 0; i < SIZE; i++) + { + password[i] = __VERIFIER_nondet_int(); + guess[i] = __VERIFIER_nondet_int(); + } + + for ( i = 0 ; i < SIZE ; i++ ) { + if ( password[ i ] != guess[ i ] ) { + result[0] = 0; + } + } + + int x; + for ( x = 0 ; x < SIZE ; x++ ) { + __VERIFIER_assert( result[0] == 0 || password[ x ] == guess[ x ] ); + } + return 0; +} diff --git a/data/benchmarks/diffy_cav21_bench/standard_running-2.c b/data/benchmarks/diffy_cav21_bench/standard_running-2.c new file mode 100644 index 000000000..31003dad4 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/standard_running-2.c @@ -0,0 +1,38 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(); + +/*@ + requires N > 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N){ + N = __VERIFIER_nondet_int(); + int a[N]; + int b[N]; + int i; + int f[1]; + + for(i = 0; i< N; i++) + { + a[i] = __VERIFIER_nondet_int(); + } + + i = 0; + while ( i < N ) { + if ( a[i] >= 0 ) b[i] = 1; + else b[i] = 0; + i = i + 1; + } + + f[0] = 1; + i = 0; + while ( i < N ) { + if ( a[i] >= 0 && !b[i] ) f[0] = 0; + if ( a[i] < 0 && b[i] ) f[0] = 0; + i = i + 1; + } + + __VERIFIER_assert ( f[0] == 1 ); + return 0; +} diff --git a/data/benchmarks/diffy_cav21_bench/standard_seq_init_ground.c b/data/benchmarks/diffy_cav21_bench/standard_seq_init_ground.c new file mode 100644 index 000000000..9edf6ba0a --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/standard_seq_init_ground.c @@ -0,0 +1,23 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(); + +int SIZE; +int main( ) { + SIZE = __VERIFIER_nondet_int(); + int a[SIZE]; + int i; + + a[0] = 7; + i = 1; + while( i < SIZE ) { + a[i] = a[i-1] + 1; + i = i + 1; + } + + int x; + for ( x = 1 ; x < SIZE ; x++ ) { + __VERIFIER_assert( a[x] >= a[x-1] ); + } + return 0; +} diff --git a/data/benchmarks/diffy_cav21_bench/standard_strcmp_ground.c b/data/benchmarks/diffy_cav21_bench/standard_strcmp_ground.c new file mode 100644 index 000000000..cf64c1917 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/standard_strcmp_ground.c @@ -0,0 +1,31 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(); + +/*@ + requires N > 0; + requires \separated(a+(0..N-1), b+(0..N-1)); +*/ +int main(int* a, int* b, int N){ + int i; + int c[1]; + + for(i = 0; i < N; i++) + { + a[i] = __VERIFIER_nondet_int(); + b[i] = __VERIFIER_nondet_int(); + } + + c[0] = 0; + i = 0; + while ( i < N ) { + if( a[i] != b[i] ) c[0] = 1; + i = i + 1; + } + + int x; + for ( x = 0 ; x < N ; x++ ) { + __VERIFIER_assert(c[0] == 1 || a[x] == b[x] ); + } + return 0; +} diff --git a/data/benchmarks/diffy_cav21_bench/standard_vector_difference_ground.c b/data/benchmarks/diffy_cav21_bench/standard_vector_difference_ground.c new file mode 100644 index 000000000..79f947f66 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/standard_vector_difference_ground.c @@ -0,0 +1,37 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(); + +/* +From: "On Solving Universally Quantified Horn Clauses" +Bjorner, McMillan, and Rybalchenko +SAS 2013 +*/ + +/*@ + requires SIZE > 0; + requires \separated(a+(0..SIZE-1), b+(0..SIZE-1), c+(0..SIZE-1)); +*/ +int main(int* a, int* b, int* c, int SIZE){ + int i = 0; + + for(i = 0; i < SIZE; i++) + { + a[i] = __VERIFIER_nondet_int(); + b[i] = __VERIFIER_nondet_int(); + } + + i = 0; + while (i < SIZE) { + c[i] = a[i] - b[i]; + i = i + 1; + } + + int x; + for (x = 0; x < SIZE; x++) { + __VERIFIER_assert(c[x] == a[x] - b[x]); + } + + return 0; +} + diff --git a/data/benchmarks/diffy_cav21_bench/unreach-call.prp b/data/benchmarks/diffy_cav21_bench/unreach-call.prp new file mode 100644 index 000000000..27fd7acb1 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/unreach-call.prp @@ -0,0 +1 @@ +CHECK( init(main()), LTL(G ! call(__VERIFIER_error())) ) diff --git a/data/benchmarks/diffy_cav21_bench/zero_sum1.c b/data/benchmarks/diffy_cav21_bench/zero_sum1.c new file mode 100644 index 000000000..a66d62a86 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/zero_sum1.c @@ -0,0 +1,36 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int SIZE; + +int main() +{ + SIZE = __VERIFIER_nondet_int(); + if(SIZE <= 0) return 1; + + int i; + int a[SIZE]; + int sum[1]; + + sum[0] = 0; + for(i = 0; i < SIZE; i++) + { + a[i] = __VERIFIER_nondet_int(); + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + __VERIFIER_assert(sum[0] == 0); + + return 1; +} diff --git a/data/benchmarks/diffy_cav21_bench/zero_sum2.c b/data/benchmarks/diffy_cav21_bench/zero_sum2.c new file mode 100644 index 000000000..a2ea14848 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/zero_sum2.c @@ -0,0 +1,46 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int SIZE; + +int main() +{ + SIZE = __VERIFIER_nondet_int(); + if(SIZE <= 0) return 1; + + int i; + int a[SIZE]; + int sum[1]; + + sum[0]=0; + for(i = 0; i < SIZE; i++) + { + a[i] = __VERIFIER_nondet_int(); + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + __VERIFIER_assert(sum[0] == 0); + + return 1; +} diff --git a/data/benchmarks/diffy_cav21_bench/zero_sum3.c b/data/benchmarks/diffy_cav21_bench/zero_sum3.c new file mode 100644 index 000000000..06efd661a --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/zero_sum3.c @@ -0,0 +1,56 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int SIZE; + +int main() +{ + SIZE = __VERIFIER_nondet_int(); + if(SIZE <= 0) return 1; + + int i; + int a[SIZE]; + int sum[1]; + + sum[0]=0; + for(i = 0; i < SIZE; i++) + { + a[i] = __VERIFIER_nondet_int(); + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + __VERIFIER_assert(sum[0] == 0); + + return 1; +} diff --git a/data/benchmarks/diffy_cav21_bench/zero_sum4.c b/data/benchmarks/diffy_cav21_bench/zero_sum4.c new file mode 100644 index 000000000..8f9880ee7 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/zero_sum4.c @@ -0,0 +1,66 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int SIZE; + +int main() +{ + SIZE = __VERIFIER_nondet_int(); + if(SIZE <= 0) return 1; + + int i; + int a[SIZE]; + int sum[1]; + + sum[0]=0; + for(i = 0; i < SIZE; i++) + { + a[i] = __VERIFIER_nondet_int(); + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + __VERIFIER_assert(sum[0] == 0); + + return 1; +} diff --git a/data/benchmarks/diffy_cav21_bench/zero_sum5.c b/data/benchmarks/diffy_cav21_bench/zero_sum5.c new file mode 100644 index 000000000..a9344d44a --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/zero_sum5.c @@ -0,0 +1,76 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int SIZE; + +int main() +{ + SIZE = __VERIFIER_nondet_int(); + if(SIZE <= 0) return 1; + + int i; + int a[SIZE]; + int sum[1]; + + sum[0]=0; + for(i = 0; i < SIZE; i++) + { + a[i] = __VERIFIER_nondet_int(); + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + __VERIFIER_assert(sum[0] == 0); + + return 1; +} diff --git a/data/benchmarks/diffy_cav21_bench/zero_sum_const1.c b/data/benchmarks/diffy_cav21_bench/zero_sum_const1.c new file mode 100644 index 000000000..8eea1ddab --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/zero_sum_const1.c @@ -0,0 +1,36 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int SIZE; + +int main() +{ + SIZE = __VERIFIER_nondet_int(); + if(SIZE <= 0) return 1; + + int i; + int a[SIZE]; + int sum[1]; + + sum[0]=0; + for(i = 0; i < SIZE; i++) + { + a[i] = 1; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + __VERIFIER_assert(sum[0] == 0); + + return 1; +} diff --git a/data/benchmarks/diffy_cav21_bench/zero_sum_const2.c b/data/benchmarks/diffy_cav21_bench/zero_sum_const2.c new file mode 100644 index 000000000..53a887281 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/zero_sum_const2.c @@ -0,0 +1,46 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int SIZE; + +int main() +{ + SIZE = __VERIFIER_nondet_int(); + if(SIZE <= 0) return 1; + + int i; + int a[SIZE]; + int sum[1]; + + sum[0]=0; + for(i = 0; i < SIZE; i++) + { + a[i] = 1; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + __VERIFIER_assert(sum[0] == 0); + + return 1; +} diff --git a/data/benchmarks/diffy_cav21_bench/zero_sum_const3.c b/data/benchmarks/diffy_cav21_bench/zero_sum_const3.c new file mode 100644 index 000000000..aa33b1069 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/zero_sum_const3.c @@ -0,0 +1,56 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int SIZE; + +int main() +{ + SIZE = __VERIFIER_nondet_int(); + if(SIZE <= 0) return 1; + + int i; + int a[SIZE]; + int sum[1]; + + sum[0]=0; + for(i = 0; i < SIZE; i++) + { + a[i] = 1; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + __VERIFIER_assert(sum[0] == 0); + + return 1; +} diff --git a/data/benchmarks/diffy_cav21_bench/zero_sum_const4.c b/data/benchmarks/diffy_cav21_bench/zero_sum_const4.c new file mode 100644 index 000000000..44847c932 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/zero_sum_const4.c @@ -0,0 +1,66 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int SIZE; + +int main() +{ + SIZE = __VERIFIER_nondet_int(); + if(SIZE <= 0) return 1; + + int i; + int a[SIZE]; + int sum[1]; + + sum[0]=0; + for(i = 0; i < SIZE; i++) + { + a[i] = 1; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + __VERIFIER_assert(sum[0] == 0); + + return 1; +} diff --git a/data/benchmarks/diffy_cav21_bench/zero_sum_const5.c b/data/benchmarks/diffy_cav21_bench/zero_sum_const5.c new file mode 100644 index 000000000..68575c92e --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/zero_sum_const5.c @@ -0,0 +1,76 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int SIZE; + +int main() +{ + SIZE = __VERIFIER_nondet_int(); + if(SIZE <= 0) return 1; + + int i; + int a[SIZE]; + int sum[1]; + + sum[0]=0; + for(i = 0; i < SIZE; i++) + { + a[i] = 1; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + __VERIFIER_assert(sum[0] == 0); + + return 1; +} diff --git a/data/benchmarks/diffy_cav21_bench/zero_sum_const_m2.c b/data/benchmarks/diffy_cav21_bench/zero_sum_const_m2.c new file mode 100644 index 000000000..c8336f7ab --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/zero_sum_const_m2.c @@ -0,0 +1,46 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int SIZE; + +int main() +{ + SIZE = __VERIFIER_nondet_int(); + if(SIZE <= 0) return 1; + + int i; + int a[SIZE]; + int sum[1]; + + sum[0]=0; + for(i = 0; i < SIZE; i++) + { + a[i] = 1; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + __VERIFIER_assert(sum[0] == 0); + + return 1; +} diff --git a/data/benchmarks/diffy_cav21_bench/zero_sum_const_m3.c b/data/benchmarks/diffy_cav21_bench/zero_sum_const_m3.c new file mode 100644 index 000000000..38fbb2299 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/zero_sum_const_m3.c @@ -0,0 +1,56 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int SIZE; + +int main() +{ + SIZE = __VERIFIER_nondet_int(); + if(SIZE <= 0) return 1; + + int i; + int a[SIZE]; + int sum[1]; + + sum[0]=0; + for(i = 0; i < SIZE; i++) + { + a[i] = 1; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + __VERIFIER_assert(sum[0] == 0); + + return 1; +} diff --git a/data/benchmarks/diffy_cav21_bench/zero_sum_const_m4.c b/data/benchmarks/diffy_cav21_bench/zero_sum_const_m4.c new file mode 100644 index 000000000..189a7a3ec --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/zero_sum_const_m4.c @@ -0,0 +1,66 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int SIZE; + +int main() +{ + SIZE = __VERIFIER_nondet_int(); + if(SIZE <= 0) return 1; + + int i; + int a[SIZE]; + int sum[1]; + + sum[0]=0; + for(i = 0; i < SIZE; i++) + { + a[i] = 1; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + __VERIFIER_assert(sum[0] == 0); + + return 1; +} diff --git a/data/benchmarks/diffy_cav21_bench/zero_sum_const_m5.c b/data/benchmarks/diffy_cav21_bench/zero_sum_const_m5.c new file mode 100644 index 000000000..1128a0537 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/zero_sum_const_m5.c @@ -0,0 +1,76 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int SIZE; + +int main() +{ + SIZE = __VERIFIER_nondet_int(); + if(SIZE <= 0) return 1; + + int i; + int a[SIZE]; + int sum[1]; + + sum[0]=0; + for(i = 0; i < SIZE; i++) + { + a[i] = 1; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + __VERIFIER_assert(sum[0] == 0); + + return 1; +} diff --git a/data/benchmarks/diffy_cav21_bench/zero_sum_const_m6.c b/data/benchmarks/diffy_cav21_bench/zero_sum_const_m6.c new file mode 100644 index 000000000..4293921f9 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/zero_sum_const_m6.c @@ -0,0 +1,86 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int SIZE; + +int main() +{ + SIZE = __VERIFIER_nondet_int(); + if(SIZE <= 0) return 1; + + int i; + int a[SIZE]; + int sum[1]; + + sum[0]=0; + for(i = 0; i < SIZE; i++) + { + a[i] = 1; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + __VERIFIER_assert(sum[0] == 0); + + return 1; +} diff --git a/data/benchmarks/diffy_cav21_bench/zero_sum_m2.c b/data/benchmarks/diffy_cav21_bench/zero_sum_m2.c new file mode 100644 index 000000000..19ff7bba6 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/zero_sum_m2.c @@ -0,0 +1,46 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int SIZE; + +int main() +{ + SIZE = __VERIFIER_nondet_int(); + if(SIZE <= 0) return 1; + + int i; + int a[SIZE]; + int sum[1]; + + sum[0]=0; + for(i = 0; i < SIZE; i++) + { + a[i] = __VERIFIER_nondet_int(); + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + __VERIFIER_assert(sum[0] == 0); + + return 1; +} diff --git a/data/benchmarks/diffy_cav21_bench/zero_sum_m3.c b/data/benchmarks/diffy_cav21_bench/zero_sum_m3.c new file mode 100644 index 000000000..744bacad8 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/zero_sum_m3.c @@ -0,0 +1,56 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int SIZE; + +int main() +{ + SIZE = __VERIFIER_nondet_int(); + if(SIZE <= 0) return 1; + + int i; + int a[SIZE]; + int sum[1]; + + sum[0]=0; + for(i = 0; i < SIZE; i++) + { + a[i] = __VERIFIER_nondet_int(); + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + __VERIFIER_assert(sum[0] == 0); + + return 1; +} diff --git a/data/benchmarks/diffy_cav21_bench/zero_sum_m4.c b/data/benchmarks/diffy_cav21_bench/zero_sum_m4.c new file mode 100644 index 000000000..54681a931 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/zero_sum_m4.c @@ -0,0 +1,66 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int SIZE; + +int main() +{ + SIZE = __VERIFIER_nondet_int(); + if(SIZE <= 0) return 1; + + int i; + int a[SIZE]; + int sum[1]; + + sum[0]=0; + for(i = 0; i < SIZE; i++) + { + a[i] = __VERIFIER_nondet_int(); + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + __VERIFIER_assert(sum[0] == 0); + + return 1; +} diff --git a/data/benchmarks/diffy_cav21_bench/zero_sum_m5.c b/data/benchmarks/diffy_cav21_bench/zero_sum_m5.c new file mode 100644 index 000000000..06ef9a175 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/zero_sum_m5.c @@ -0,0 +1,76 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int SIZE; + +int main() +{ + SIZE = __VERIFIER_nondet_int(); + if(SIZE <= 0) return 1; + + int i; + int a[SIZE]; + int sum[1]; + + sum[0]=0; + for(i = 0; i < SIZE; i++) + { + a[i] = __VERIFIER_nondet_int(); + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + __VERIFIER_assert(sum[0] == 0); + + return 1; +} diff --git a/data/benchmarks/diffy_cav21_bench/zero_sum_m6.c b/data/benchmarks/diffy_cav21_bench/zero_sum_m6.c new file mode 100644 index 000000000..80c9435c1 --- /dev/null +++ b/data/benchmarks/diffy_cav21_bench/zero_sum_m6.c @@ -0,0 +1,86 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +extern void __VERIFIER_assume(int); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +extern int __VERIFIER_nondet_int(void); + +int SIZE; + +int main() +{ + SIZE = __VERIFIER_nondet_int(); + if(SIZE <= 0) return 1; + + int i; + int a[SIZE]; + int sum[1]; + + sum[0]=0; + for(i = 0; i < SIZE; i++) + { + a[i] = __VERIFIER_nondet_int(); + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] + a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + for(i = 0; i < SIZE; i++) + { + sum[0] = sum[0] - a[i]; + } + + __VERIFIER_assert(sum[0] == 0); + + return 1; +} diff --git a/data/benchmarks/dillig/esop2010_casestudy.txt b/data/benchmarks/dillig/esop2010_casestudy.txt new file mode 100644 index 000000000..75466c99a --- /dev/null +++ b/data/benchmarks/dillig/esop2010_casestudy.txt @@ -0,0 +1,645 @@ +/* + * Initializes all elements of a to a specified constant c. + */ +void init(int* a, int c, int size) +{ + int i; + for(i=0; i=0 && k=0 && l=0 && k=0 && k<=size) + { + // should fail; the assertion does not hold if k==size. + static_assert(a[k] == a_copy[size-1-k]); + } + + free(a_copy); +} + +================================== + +/* + * Swaps a and b and checks they are swapped by first making + * copies of the original a and b. + */ + +void swap(int* a, int* b, int size) +{ + int i; + for(i=0; i=size_a && k < size_a+size_b) + static_assert(a[k] == b[k-size_a]); +} + +============================= + +void merge_interleave(int* res, int* a, int*b, int size) +{ + int i; + for(i=0; i < size; i+=2) + { + res[i] = a[i]; + } + for(i=1; i < size; i+=2) + { + res[i] = b[i]; + } + int k; + if( k>=0 && k=0 && k=0 && k>=0 && k=0 && k>=0 && k=0 && k>=0 && k 0; +void main(int* a, int c, int size) +{ + int i; + for(i=0; i 0; + requires \separated(a+(0..size-1), b+(0..size-1)); + */ +void main(int* a, int*b, int size) +{ + int i; + int j; + for(i=1, j=0; i 0; + requires \separated(a+(0..size-1), a_copy+(0..size-1)); +*/ +void main(int* a, int* a_copy, int size, int k) +{ + int i; + for(i=0; i=0 && k 0; +void main(int* a, int c, int size) +{ + int i; + for(i=0; i 0 && size_b > 0; + requires \separated(a+(0..size_a+size_b-1), b+(0..size_a-1)); +*/ +void main(int* a, int size_a, int* b, int size_b, int k) +{ + int i = size_a; + for(; i < size_a+size_b; i++) + { + a[i] = b[i-size_a]; + } + if(k >=size_a && k < size_a+size_b) + assert(a[k] == b[k-size_a]); +} + diff --git a/data/benchmarks/dillig/safe/24.c b/data/benchmarks/dillig/safe/24.c new file mode 100644 index 000000000..fa8b18376 --- /dev/null +++ b/data/benchmarks/dillig/safe/24.c @@ -0,0 +1,22 @@ +/*@ + requires size > 0; + requires \separated(a+(0..size-1), b+(0..size-1), res+(0..size-1)); +*/ +void main(int* res, int* a, int*b, int size) +{ + int i; + for(i=0; i < size; i+=2) + { + res[i] = a[i]; + } + for(i=1; i < size; i+=2) + { + res[i] = b[i]; + } + int k; + if( k>=0 && k=0 && k>=0 && k 0; + requires num_to_init > 0; +*/ +void main(int* a, int size, int num_to_init) +{ + assume(num_to_init <= size); + int i; + for(i=0; i 0; +void main(int* a, int size) +{ + int i; + for(i=0; i=0 && k=0 && l 0; + requires \separated(a+(0..size-1), b+(0..size-1)); + */ +void main(int* a, int*b, int size) +{ + int i; + for(i=0; i 0; +requires num_to_copy > 0; +requires \separated(a+(0..size-1), b+(0..size-1)); +*/ +void main(int* a, int*b, int size, int num_to_copy) +{ + assume(num_to_copy <= size); + int i; + for(i=0; i 0 ) + { + if( linesToRead > h ) + linesToRead = h; + h -= linesToRead; + } + return 0; + +} diff --git a/data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_1_T.c b/data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_1_T.c new file mode 100644 index 000000000..a48acbceb --- /dev/null +++ b/data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_1_T.c @@ -0,0 +1,23 @@ +/* +Commit Number: c3115350eb8bb635d0fdb4dbbb0d0541f38ed19c +URL: https://github.com/Sugon-Beijing/libvncserver/commit/c3115350eb8bb635d0fdb4dbbb0d0541f38ed19c +Project Name: libvncserver +License: GPL-2.0 +termination: TRUE +*/ +int main() +{ + + int linesToRead = __VERIFIER_nondet_int(); + if( linesToRead < 0 ) + return 0; + int h = __VERIFIER_nondet_int(); + while( linesToRead && h > 0 ) + { + if( linesToRead > h ) + linesToRead = h; + h -= linesToRead; + } + return 0; + +} diff --git a/data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_2_NT.c b/data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_2_NT.c new file mode 100644 index 000000000..4f872917e --- /dev/null +++ b/data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_2_NT.c @@ -0,0 +1,39 @@ +/* +Commit Number: a6cba062051f345e8ebfdff34aba071ed73d923f +URL: https://github.com/FFmpeg/FFmpeg/commit/a6cba062051f345e8ebfdff34aba071ed73d923f +Project Name: FFmpeg +License: LGPL-2.1 +termination: false +*/ +int flag = 0; +int ff_subtitles_next_line() +{ + int i = __VERIFIER_nondet_int(); + i = i % 1000; + if( flag == 1 ) + return 0; + if( i == 0 ) + { + flag = 1; + return 0; + } + else if( i < 0 ) + return -i; + else + return i; +} + +int main() +{ + int b = __VERIFIER_nondet_int(); + int end = __VERIFIER_nondet_int(); + if( b < 0 || end < 0 ) + return 0; + while( b < end ) + { + b += ff_subtitles_next_line(); + if( b >= end - 4 ) + return 0; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_2_T.c b/data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_2_T.c new file mode 100644 index 000000000..354d613c7 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_2_T.c @@ -0,0 +1,43 @@ +/* + +Commit Number: a6cba062051f345e8ebfdff34aba071ed73d923f +URL: https://github.com/FFmpeg/FFmpeg/commit/a6cba062051f345e8ebfdff34aba071ed73d923f +Project Name: FFmpeg +License: LGPL-2.1 +termination: true +*/ +int flag = 0; +int ff_subtitles_next_line() +{ + int i = __VERIFIER_nondet_int(); + i = i % 1000; + if( flag == 1 ) + return 0; + if( i == 0 ) + { + flag = 1; + return 0; + } + else if( i < 0 ) + return -i; + else + return i; +} + +int main() +{ + int b = __VERIFIER_nondet_int(); + int end = __VERIFIER_nondet_int(); + if( b < 0 || end < 0 ) + return 0; + while( b < end ) + { + int inc = ff_subtitles_next_line(); + if( !inc ) + break; + b += inc; + if( b >= end - 4 ) + return 0; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_3_NT.c b/data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_3_NT.c new file mode 100644 index 000000000..92a98b7ec --- /dev/null +++ b/data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_3_NT.c @@ -0,0 +1,86 @@ +/* + +Commit Number: d5396e453ff39428c38a1b5af261e4e89bd90e8f +URL: https://github.com/cmus/cmus/commit/d5396e453ff39428c38a1b5af261e4e89bd90e8f +Project Name: cmus +License: GPL-2.0 +termination: false + + + + + +This case is simplified by this bug from GitHub. + +In C: +ssize_t read (int fd, void *buf, size_t count); +Return the number of bytes read successfully, return -1 on error and set errno. If the end of the file has been reached before the read is adjusted, the read returns 0 this time. + +This program uses arrays to rewrite read function. + +In this program: +int read ( int loc, int len ); +When EOF, return 0; +When abnormal, return -1; +When read, return the number of bytes read successfully. + +flag: When the end of the file is reached, flag is 1; otherwise flag is 0. + +This program is non-terminating because when the end of the file is reached and flag is 1, read function will always return 0, which is infinite. +*/ + +int flag = 0; +int read( int loc , int len ) +{ + int count = 0; + if( flag == 1 ) //whether EOF or not + return 0; + while( loc < len ) + { + int num = __VERIFIER_nondet_int(); + if( num == 0 ) //abnormal + { + return -1; + } + else + { + if( num < 0 ) + num = -num; + num = num % 1000; + count++; + if( num < 995 ) //read a char + { + loc++; + continue; + } + else // EOF + { + flag = 1; + return count; + } + } + } + return count; +} +int main() +{ + int pos = 0; + int size = __VERIFIER_nondet_int(); + flag = 0; + int errno = 0; + if( size <= 0 || size > 65536 ) + return 0; + while( pos < size ) + { + int rc = read( pos, size - pos); + if( rc == -1 ) + { + errno++;// abnormal is OK + if( errno == 5 ) + return 0; + continue; + } + pos += rc; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_3_T.c b/data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_3_T.c new file mode 100644 index 000000000..f8d6b3873 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_3_T.c @@ -0,0 +1,85 @@ +/* +Commit Number: d5396e453ff39428c38a1b5af261e4e89bd90e8f +URL: https://github.com/cmus/cmus/commit/d5396e453ff39428c38a1b5af261e4e89bd90e8f +Project Name: cmus +License: GPL-2.0 +termination: true + + +This case is simplified by this bug from GitHub. + +In C: +ssize_t read (int fd, void *buf, size_t count); +Return the number of bytes read successfully, return -1 on error and set errno. If the end of the file has been reached before the read is adjusted, the read returns 0 this time. + +This program uses arrays to rewrite read function. + +In this program: +int read ( int loc, int len ); +When EOF, return 0; +When abnormal, return -1; +When read, return the number of bytes read successfully. + +flag: When the end of the file is reached, flag is 1; otherwise flag is 0. + +This program is terminating. +*/ + + +int flag = 0; +int read( int loc , int len ) +{ + int count = 0; + if( flag == 1 ) //whether EOF or not + return 0; + while( loc < len ) + { + int num = __VERIFIER_nondet_int(); + if( num == 0 ) //abnormal + { + return -1; + } + else + { + if( num < 0 ) + num = -num; + num = num % 1000; + count++; + if( num < 995 ) //read a char + { + loc++; + continue; + } + else // EOF + { + flag = 1; + return count; + } + } + } + return count; +} +int main() +{ + int pos = 0; + int size = __VERIFIER_nondet_int(); + flag = 0; + int errno = 0; + if( size <= 0 || size > 65536 ) + return 0; + while( pos < size ) + { + int rc = read( pos, size - pos); + if( rc == -1 ) + { + errno++;// abnormal is OK + if( errno == 5 ) + return 0; + continue; + } + if( rc == 0 ) + rc++; + pos += rc; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_4_NT.c b/data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_4_NT.c new file mode 100644 index 000000000..32b67dcb8 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_4_NT.c @@ -0,0 +1,57 @@ +/* +Commit Number: caa6003b6419d001593478a46fb4cbf8e502e818 +URL: https://github.com/tytso/e2fsprogs/commit/caa6003b6419d001593478a46fb4cbf8e502e818 +Project Name: e2fsprogs +License: GPL-2.0 +termination: false +*/ +int flag = 0; +int read( int loc , int len ) +{ + int count = 0; + if( flag == 1 ) //whether EOF or not + return 0; + while( loc < len ) + { + int num = __VERIFIER_nondet_int(); + if( num == 0 ) //abnormal + { + return -1; + } + else + { + if( num < 0 ) + num = -num; + num = num % 1000; + count++; + if( num < 995 ) //read a char + { + loc++; + continue; + } + else // EOF + { + flag = 1; + return count; + } + } + } + return count; +} +int main() +{ + int count =__VERIFIER_nondet_int(); + if( count <= 0 ) + return 0; + int ret; + int buf = 0; + while( count > 0 ) + { + ret = read( buf, count ); + if( ret < 0 ) + return 0; + count -= ret; + buf += ret; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_4_T.c b/data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_4_T.c new file mode 100644 index 000000000..7495cc46e --- /dev/null +++ b/data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_4_T.c @@ -0,0 +1,62 @@ +/* +Commit Number: caa6003b6419d001593478a46fb4cbf8e502e818 +URL: https://github.com/tytso/e2fsprogs/commit/caa6003b6419d001593478a46fb4cbf8e502e818 +Project Name: e2fsprogs +License: GPL-2.0 +termination: true +*/ +int flag = 0; +int read( int loc , int len ) +{ + int count = 0; + if( flag == 1 ) //whether EOF or not + return 0; + while( loc < len ) + { + int num = __VERIFIER_nondet_int(); + if( num == 0 ) //abnormal + { + return -1; + } + else + { + if( num < 0 ) + num = -num; + num = num % 1000; + count++; + if( num < 995 ) //read a char + { + loc++; + continue; + } + else // EOF + { + flag = 1; + return count; + } + } + } + return count; +} +int main() +{ + int count =__VERIFIER_nondet_int(); + if( count <= 0 ) + return 0; + int ret; + int buf = 0; + int tries = 0; + while( count > 0 ) + { + ret = read( buf, count ); + if( ret <= 0 ) + { + if( ( ret == 0 )&& (tries++ < 5 ) ) + continue; + return 0; + } + count -= ret; + buf += ret; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_5_NT.c b/data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_5_NT.c new file mode 100644 index 000000000..353e8e360 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_5_NT.c @@ -0,0 +1,42 @@ +/* +Commit Number: 7a611ab32209fb3b79d662110582bc04e1c2c8b1 +URL: https://github.com/gogins/csound-android/commit/7a611ab32209fb3b79d662110582bc04e1c2c8b1 +Project Name: csound-android +License: GPL-2.0 +termination: false +*/ +typedef struct NNode{ + struct NNode * nxtact; +}INSDS; + + +INSDS * initLink(int n){ + INSDS* head=(INSDS*)malloc(sizeof(INSDS)); + head->nxtact=head; + INSDS* cyclic=head; + + int i; + for (i=2; i<=n; i++) { + INSDS * body=(INSDS*)malloc(sizeof(INSDS)); + body->nxtact=body; + cyclic->nxtact=body; + cyclic=cyclic->nxtact; + } + cyclic->nxtact=cyclic; + return head; +} + +int main() +{ + int num = __VERIFIER_nondet_int(); + if( num <= 0 || num > 65534 ) + return 0; + INSDS* list = initLink( num ); + INSDS* ip = list; + while( ip != 0 ) + { + INSDS *nxt = ip->nxtact; + ip = nxt; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_5_T.c b/data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_5_T.c new file mode 100644 index 000000000..011e6941d --- /dev/null +++ b/data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_5_T.c @@ -0,0 +1,44 @@ +/* +Commit Number: 7a611ab32209fb3b79d662110582bc04e1c2c8b1 +URL: https://github.com/gogins/csound-android/commit/7a611ab32209fb3b79d662110582bc04e1c2c8b1 +Project Name: csound-android +License: GPL-2.0 +termination: true +*/ +typedef struct NNode{ + struct NNode * nxtact; +}INSDS; + + +INSDS * initLink(int n){ + INSDS* head=(INSDS*)malloc(sizeof(INSDS)); + head->nxtact=head; + INSDS* cyclic=head; + + int i; + for (i=2; i<=n; i++) { + INSDS * body=(INSDS*)malloc(sizeof(INSDS)); + body->nxtact=body; + cyclic->nxtact=body; + cyclic=cyclic->nxtact; + } + cyclic->nxtact=cyclic; + return head; +} + +int main() +{ + int num = __VERIFIER_nondet_int(); + if( num <= 0 || num > 65534 ) + return 0; + INSDS* list = initLink( num ); + INSDS* ip = list; + while( ip != 0 ) + { + INSDS *nxt = ip->nxtact; + if( ip == nxt ) + break; + ip = nxt; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Incorrect_Bit_Calculation_1_NT.c b/data/benchmarks/non_termination/loop/Incorrect_Bit_Calculation_1_NT.c new file mode 100644 index 000000000..9417421bc --- /dev/null +++ b/data/benchmarks/non_termination/loop/Incorrect_Bit_Calculation_1_NT.c @@ -0,0 +1,18 @@ +/* +Commit Number: 71c3a97142265804d64f443bd1ddb68ac356f8a3 +URL: https://github.com/XQuartz/xorg-server/commit/71c3a97142265804d64f443bd1ddb68ac356f8a3 +Project Name: xorg-server +License: MIT +termination: false + +When mask = 0 , it will be non-terminating. +*/ +int main() +{ + int mask= __VERIFIER_nondet_int(); + while( ( mask & 1 ) == 0 ) + { + mask >>= 1; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Incorrect_Bit_Calculation_1_T.c b/data/benchmarks/non_termination/loop/Incorrect_Bit_Calculation_1_T.c new file mode 100644 index 000000000..7f29cd3b6 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Incorrect_Bit_Calculation_1_T.c @@ -0,0 +1,17 @@ +/* +Commit Number: 71c3a97142265804d64f443bd1ddb68ac356f8a3 +URL: https://github.com/XQuartz/xorg-server/commit/71c3a97142265804d64f443bd1ddb68ac356f8a3 +Project Name: xorg-server +License: MIT +termination: TRUE + +*/ +int main() +{ + int mask= __VERIFIER_nondet_int(); + while( mask > 1 ) + { + mask >>= 1; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Incorrect_Bit_Calculation_2_NT.c b/data/benchmarks/non_termination/loop/Incorrect_Bit_Calculation_2_NT.c new file mode 100644 index 000000000..b95069798 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Incorrect_Bit_Calculation_2_NT.c @@ -0,0 +1,24 @@ +/* +Commit Number: c44da115063bfea7ef8b2afd1c9d52737e2b7f70 +URL: https://github.com/coreutils/coreutils/commit/c44da115063bfea7ef8b2afd1c9d52737e2b7f70 +Project Name: coreutils +License: GPL3 +termination: false + +This program includes shift overflow : a1 << 31 and bit operation; +This program is non-terminating, when a0 =0 and a1 = 0. + + +*/ + +int main() +{ + int a0 = __VERIFIER_nondet_int(); + int a1 = __VERIFIER_nondet_int(); + while( ( a0 & 1 ) == 0) + { + a0 = ( a1 << 31 ) | ( a0 >> 1 ); + a1 = a1 >> 1; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Incorrect_Bit_Calculation_2_T.c b/data/benchmarks/non_termination/loop/Incorrect_Bit_Calculation_2_T.c new file mode 100644 index 000000000..7755e16cc --- /dev/null +++ b/data/benchmarks/non_termination/loop/Incorrect_Bit_Calculation_2_T.c @@ -0,0 +1,20 @@ +/* +Commit Number: c44da115063bfea7ef8b2afd1c9d52737e2b7f70 +URL: https://github.com/coreutils/coreutils/commit/c44da115063bfea7ef8b2afd1c9d52737e2b7f70 +Project Name: coreutils +License: GPL3 +termination: TRUE +*/ +int main() +{ + int a0 = __VERIFIER_nondet_int(); + int a1 = __VERIFIER_nondet_int(); + if( ( a0 | a1 ) == 0 ) + return 0; + while( ( a0 & 1 ) == 0) + { + a0 = ( a1 << 31 ) | ( a0 >> 1 ); + a1 = a1 >> 1; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Incorrect_Bit_Calculation_3_NT.c b/data/benchmarks/non_termination/loop/Incorrect_Bit_Calculation_3_NT.c new file mode 100644 index 000000000..d1b9801ce --- /dev/null +++ b/data/benchmarks/non_termination/loop/Incorrect_Bit_Calculation_3_NT.c @@ -0,0 +1,20 @@ +/* +Commit Number: 5bec3fff0bac50f4b4d4d3b02e70161a2bf38d0f +URL: https://github.com/brltty/brltty/commit/5bec3fff0bac50f4b4d4d3b02e70161a2bf38d0f +Project Name: brltty +License: LGPL-2.1 +termination: false + + +This program will go into an infinite loop if wc is negative + + +*/ +int main() +{ + int wc = __VERIFIER_nondet_int(); + do{ + //loop; + }while( wc >>= 6 ); + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Incorrect_Bit_Calculation_3_T.c b/data/benchmarks/non_termination/loop/Incorrect_Bit_Calculation_3_T.c new file mode 100644 index 000000000..cd48c24b0 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Incorrect_Bit_Calculation_3_T.c @@ -0,0 +1,17 @@ +/* +Commit Number: 5bec3fff0bac50f4b4d4d3b02e70161a2bf38d0f +URL: https://github.com/brltty/brltty/commit/5bec3fff0bac50f4b4d4d3b02e70161a2bf38d0f +Project Name: brltty +License: LGPL-2.1 +termination: TRUE + +*/ +int main() +{ + int wc = __VERIFIER_nondet_int(); + int mask = ( 1 << 26 ) - 1; + do{ + //loop; + }while( (wc = ( wc >> 6 ) & mask) ); + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Incorrect_Control_Statement_1_NT.c b/data/benchmarks/non_termination/loop/Incorrect_Control_Statement_1_NT.c new file mode 100644 index 000000000..064528233 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Incorrect_Control_Statement_1_NT.c @@ -0,0 +1,36 @@ +/* +Commit Number: e6801c90311679fc0854af73da95fe58079c59f4 +URL: https://github.com/FreeRADIUS/freeradius-server/commit/e6801c90311679fc0854af73da95fe58079c59f4 +Project Name: freeradius-serve +License: GPL2 +termination: false + + +*/ +int main() +{ + int stop = 0; + char array[101]; + for( int i = 0 ; i < 100 ; i++ ) + array[i] = __VERIFIER_nondet_char(); + array[100] = 0; + char* p = array; + while( (*p) && (!stop) ) + { + switch(*p){ + case '}': + stop = 1; + break; + + case ':': + if( *(p+1) && (*(p+1) == '-')){ + p += 2; + stop = 1; + } + break; + default: + p++; + } + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Incorrect_Control_Statement_1_T.c b/data/benchmarks/non_termination/loop/Incorrect_Control_Statement_1_T.c new file mode 100644 index 000000000..432199376 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Incorrect_Control_Statement_1_T.c @@ -0,0 +1,36 @@ +/* +Commit Number: e6801c90311679fc0854af73da95fe58079c59f4 +URL: https://github.com/FreeRADIUS/freeradius-server/commit/e6801c90311679fc0854af73da95fe58079c59f4 +Project Name: freeradius-serve +License: GPL2 +termination: TRUE +*/ +int main() +{ + int stop = 0; + char array[101]; + for( int i = 0 ; i < 100 ; i++ ) + array[i] = __VERIFIER_nondet_char(); + array[100] = 0; + char* p = array; + while( (*p) && (!stop) ) + { + switch(*p){ + case '}': + stop = 1; + break; + + case ':': + if( *(p+1) && (*(p+1) == '-')){ + p += 2; + stop = 1; + break; + } + + default: + p++; + break; + } + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Incorrect_Control_Statement_2_NT.c b/data/benchmarks/non_termination/loop/Incorrect_Control_Statement_2_NT.c new file mode 100644 index 000000000..ff4e8488b --- /dev/null +++ b/data/benchmarks/non_termination/loop/Incorrect_Control_Statement_2_NT.c @@ -0,0 +1,42 @@ +/* +Commit Number: 8030f9c0f092170ceb50cedf59b9c330022825b7 +URL: https://github.com/aatmdev/glusterfs/commit/8030f9c0f092170ceb50cedf59b9c330022825b7 +Project Name: glusterfs +License: GPL2 +termination: FALSE +*/ +#define EVEBT_EPOLL_SLOTS 2 +int main() +{ + int EVENT_EPOLL_TABLES = 10; + int slots_used[10]; + int ereg[10]; + int table; + for( int i = 0 ; i < 10 ; i++ ) + { + slots_used[i] = __VERIFIER_nondet_int(); + ereg[i] = __VERIFIER_nondet_int(); + } + int i = 0; + while( i < EVENT_EPOLL_TABLES ) + { + switch( slots_used[i] ) + { + case EVEBT_EPOLL_SLOTS: + continue; + case 0: + if( !ereg[i] ) + return 0; + else + table = ereg[i]; + break; + default: + table = ereg[i]; + break; + } + if( table ) + break; + i++; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Incorrect_Control_Statement_2_T.c b/data/benchmarks/non_termination/loop/Incorrect_Control_Statement_2_T.c new file mode 100644 index 000000000..0239161dc --- /dev/null +++ b/data/benchmarks/non_termination/loop/Incorrect_Control_Statement_2_T.c @@ -0,0 +1,42 @@ +/* +Commit Number: 8030f9c0f092170ceb50cedf59b9c330022825b7 +URL: https://github.com/aatmdev/glusterfs/commit/8030f9c0f092170ceb50cedf59b9c330022825b7 +Project Name: glusterfs +License: GPL2 +termination: TRUE +*/ +#define EVEBT_EPOLL_SLOTS 2 +int main() +{ + int EVENT_EPOLL_TABLES = 10; + int slots_used[10]; + int ereg[10]; + int table; + for( int i = 0 ; i < 10 ; i++ ) + { + slots_used[i] = __VERIFIER_nondet_int(); + ereg[i] = __VERIFIER_nondet_int(); + } + int i = 0; + while( i < EVENT_EPOLL_TABLES ) + { + switch( slots_used[i] ) + { + case EVEBT_EPOLL_SLOTS: + break; + case 0: + if( !ereg[i] ) + return 0; + else + table = ereg[i]; + break; + default: + table = ereg[i]; + break; + } + if( table ) + break; + i++; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Incorrect_Initialization_1_NT.c b/data/benchmarks/non_termination/loop/Incorrect_Initialization_1_NT.c new file mode 100644 index 000000000..d74a149e7 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Incorrect_Initialization_1_NT.c @@ -0,0 +1,41 @@ +/* +Commit Number: cea58cb6d8fe0d27bfcbab57776bd36d5c724ec3 +URL: https://github.com/GNOME/evolution-data-server/commit/cea58cb6d8fe0d27bfcbab57776bd36d5c724ec3 +Project Name: evolution-data-server +License: GPL2 +termination: false + + +*/ +int strcspn(const char *strSrc, const char *str) +{ + const char *s; + const char *t = strSrc; + while (*t != '\0') + { + s = str; + while (*s != '\0') + { + if (*t == *s ) + return t-strSrc; + ++s; + } + ++t; + } + return 0; +} +int main() +{ + char buf[100]; + for( int i = 0 ; i < 99 ; i++ ) + buf[i] = __VERIFIER_nondet_char(); + buf[99] = '\0'; + char *p = buf; + while( *p ) + { + int len = strcspn( p , "\n"); + p += len; + } + return 0; + +} diff --git a/data/benchmarks/non_termination/loop/Incorrect_Initialization_1_T.c b/data/benchmarks/non_termination/loop/Incorrect_Initialization_1_T.c new file mode 100644 index 000000000..0922d68cd --- /dev/null +++ b/data/benchmarks/non_termination/loop/Incorrect_Initialization_1_T.c @@ -0,0 +1,42 @@ +/* +Commit Number: cea58cb6d8fe0d27bfcbab57776bd36d5c724ec3 +URL: https://github.com/GNOME/evolution-data-server/commit/cea58cb6d8fe0d27bfcbab57776bd36d5c724ec3 +Project Name: evolution-data-server +License: GPL2 +termination: TRUE + +*/ +int strcspn(const char *strSrc, const char *str) +{ + const char *s; + const char *t = strSrc; + while (*t != '\0') + { + s = str; + while (*s != '\0') + { + if (*t == *s ) + return t-strSrc; + ++s; + } + ++t; + } + return 0; +} +int main() +{ + char buf[100]; + for( int i = 0 ; i < 99 ; i++ ) + buf[i] = __VERIFIER_nondet_char(); + buf[99] = '\0'; + char *p = buf; + while( *p ) + { + int len = strcspn( p , "\n"); + p += len; + if( *p ) + p++; + } + return 0; + +} diff --git a/data/benchmarks/non_termination/loop/Incorrect_Initialization_2_NT.c b/data/benchmarks/non_termination/loop/Incorrect_Initialization_2_NT.c new file mode 100644 index 000000000..8fa8c2f9c --- /dev/null +++ b/data/benchmarks/non_termination/loop/Incorrect_Initialization_2_NT.c @@ -0,0 +1,50 @@ +/* +Commit Number: d37b2f4794acf1b0b431110c5e1fb23d652c5962 +URL: https://github.com/acassen/keepalived/commit/d37b2f4794acf1b0b431110c5e1fb23d652c5962 +Project Name: keepalived +License: GPL-2.0 +termination: false + +*/ +int matroska_deliver_packet( int q ) +{ + if( q == 1 ) + return 0; + else + return 1; +} +int flag = 0; +int res_return() +{ + if( flag++ < 100 ) + return __VERIFIER_nondet_int(); + return -1; +} +int main() +{ + int matroska = __VERIFIER_nondet_int(); + int res = 0; + while( matroska_deliver_packet( matroska) ) + { + while( res == 0 ) + { + int id = __VERIFIER_nondet_int(); + switch( id ){ + case 1: + if( res = res_return() < 0 ) + break; + if( res = res_return() == 0 ) + res = 1; + break; + + default: + case 2: + res = res_return(); + break; + } + } + if( res == -1 ) + matroska = 1; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Incorrect_Initialization_2_T.c b/data/benchmarks/non_termination/loop/Incorrect_Initialization_2_T.c new file mode 100644 index 000000000..ef78e36fa --- /dev/null +++ b/data/benchmarks/non_termination/loop/Incorrect_Initialization_2_T.c @@ -0,0 +1,48 @@ +/* +d37b2f4794acf1b0b431110c5e1fb23d652c5962 +https://github.com/acassen/keepalived/commit/d37b2f4794acf1b0b431110c5e1fb23d652c5962 +termination: true +*/ +int matroska_deliver_packet( int q ) +{ + if( q == 1 ) + return 0; + else + return 1; +} +int flag = 0; +int res_return() +{ + if( flag++ < 100 ) + return __VERIFIER_nondet_int(); + return -1; +} +int main() +{ + int matroska = __VERIFIER_nondet_int(); + int res = 0; + while( matroska_deliver_packet( matroska) ) + { + res = 0; + while( res == 0 ) + { + int id = __VERIFIER_nondet_int(); + switch( id ){ + case 1: + if( res = res_return() < 0 ) + break; + if( res = res_return() == 0 ) + res = 1; + break; + + default: + case 2: + res = res_return(); + break; + } + } + if( res == -1 ) + matroska = 1; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Incorrect_Initialization_3_NT.c b/data/benchmarks/non_termination/loop/Incorrect_Initialization_3_NT.c new file mode 100644 index 000000000..1c469524a --- /dev/null +++ b/data/benchmarks/non_termination/loop/Incorrect_Initialization_3_NT.c @@ -0,0 +1,32 @@ +/* +d37b2f4794acf1b0b431110c5e1fb23d652c5962 +https://github.com/acassen/keepalived/commit/d37b2f4794acf1b0b431110c5e1fb23d652c5962 +termination: false +*/ + + +char* strchr(char* str, int c) { + for (; *str != 0; ++str) { + if (*str == c) { + return str; + } + } + return 0; +} + +int main() +{ + char in[100]; + for( int i = 0 ; i < 99 ; i++ ) + in[i] = '\n'; + char* p = in; + in[99] = 0; + while( *p ) + { + char* n =strchr( p , '\n'); + if( n == 0 ) + n = p + 99; + p = n; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Incorrect_Initialization_3_T.c b/data/benchmarks/non_termination/loop/Incorrect_Initialization_3_T.c new file mode 100644 index 000000000..35d825be8 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Incorrect_Initialization_3_T.c @@ -0,0 +1,32 @@ +/* +d37b2f4794acf1b0b431110c5e1fb23d652c5962 +https://github.com/acassen/keepalived/commit/d37b2f4794acf1b0b431110c5e1fb23d652c5962 +termination: true +*/ + + +char* strchr(char* str, int c) { + for (; *str != 0; ++str) { + if (*str == c) { + return str; + } + } + return 0; +} + +int main() +{ + char in[100]; + for( int i = 0 ; i < 99 ; i++ ) + in[i] = '\n'; + char* p = in; + in[99] = 0; + while( *p ) + { + char* n =strchr( p , '\n'); + if( n == 0 ) + n = p + 99; + p = n + 1; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Incorrect_Initialization_4_NT.c b/data/benchmarks/non_termination/loop/Incorrect_Initialization_4_NT.c new file mode 100644 index 000000000..ede648e47 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Incorrect_Initialization_4_NT.c @@ -0,0 +1,23 @@ +/* +Commit Number: fa741cd4fffbbaa5d4ba9a15f53550ac7817cc92 +URL: https://github.com/behdad/fontconfig/commit/fa741cd4fffbbaa5d4ba9a15f53550ac7817cc92 +Project Name: fontconfig +License: MIT +termination: FALSE +*/ +int main() +{ + int h = __VERIFIER_nondet_int(); + int hash = __VERIFIER_nondet_int(); + int rehash = __VERIFIER_nondet_int(); + if( h < 0 || hash <= 0 || rehash <= 0 || rehash > hash) + return 0; + int i = h % hash; + int r; + while( i < hash ) + { + if( !r ) r = h % rehash; + i += r; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Incorrect_Initialization_4_T.c b/data/benchmarks/non_termination/loop/Incorrect_Initialization_4_T.c new file mode 100644 index 000000000..6c35fbbae --- /dev/null +++ b/data/benchmarks/non_termination/loop/Incorrect_Initialization_4_T.c @@ -0,0 +1,24 @@ +/* + +Commit Number: fa741cd4fffbbaa5d4ba9a15f53550ac7817cc92 +URL: https://github.com/behdad/fontconfig/commit/fa741cd4fffbbaa5d4ba9a15f53550ac7817cc92 +Project Name: fontconfig +License: MIT +termination: TRUE +*/ +int main() +{ + int h = __VERIFIER_nondet_int(); + int hash = __VERIFIER_nondet_int(); + int rehash = __VERIFIER_nondet_int(); + if( h < 0 || hash <= 0 || rehash <= 0 || rehash > hash || hash > 65534) + return 0; + int i = h % hash; + int r = 0; + while( i < hash ) + { + if( !r ) r = ( h % rehash ) + 1; + i += r; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Incorrect_Update_for_Loop_Iterator_1_NT.c b/data/benchmarks/non_termination/loop/Incorrect_Update_for_Loop_Iterator_1_NT.c new file mode 100644 index 000000000..3fb62230e --- /dev/null +++ b/data/benchmarks/non_termination/loop/Incorrect_Update_for_Loop_Iterator_1_NT.c @@ -0,0 +1,25 @@ +/* +Commit Number: bf1257b40dcac15cb7bb48ba809775885449a5e8 +URL: https://github.com/radarsat1/liblo/commit/bf1257b40dcac15cb7bb48ba809775885449a5e8 +Project Name: liblo +License: LGPL-2.1 +termination: FALSE + +*/ +int main() +{ + int max_msg_size = __VERIFIER_nondet_int(); + int buffer_read_offset = __VERIFIER_nondet_int(); + int buffer_bytes_left = __VERIFIER_nondet_int(); + if( max_msg_size < -1 || buffer_read_offset <= 0 || buffer_bytes_left < 0 ) + return 0; + int size = 64; + while( buffer_bytes_left < size / 2) + { + size *= 2; + if( max_msg_size != -1 && size > max_msg_size ) + size = max_msg_size; + buffer_bytes_left = size - buffer_read_offset; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Incorrect_Update_for_Loop_Iterator_1_T.c b/data/benchmarks/non_termination/loop/Incorrect_Update_for_Loop_Iterator_1_T.c new file mode 100644 index 000000000..a7c439075 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Incorrect_Update_for_Loop_Iterator_1_T.c @@ -0,0 +1,28 @@ +/* +Commit Number: bf1257b40dcac15cb7bb48ba809775885449a5e8 +URL: https://github.com/radarsat1/liblo/commit/bf1257b40dcac15cb7bb48ba809775885449a5e8 +Project Name: liblo +License: LGPL-2.1 +termination: TRUE + +*/ +int main() +{ + int max_msg_size = __VERIFIER_nondet_int(); + int buffer_read_offset = __VERIFIER_nondet_int(); + int buffer_bytes_left = __VERIFIER_nondet_int(); + if( max_msg_size < -1 || buffer_read_offset <= 0 || buffer_bytes_left < 0 ) + return 0; + int size = 64; + while( buffer_bytes_left < size / 2) + { + size *= 2; + if( max_msg_size != -1 && size > max_msg_size ) + { + size = max_msg_size; + break; + } + buffer_bytes_left = size - buffer_bytes_left; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Incorrect_Update_for_Loop_Iterator_2_NT.c b/data/benchmarks/non_termination/loop/Incorrect_Update_for_Loop_Iterator_2_NT.c new file mode 100644 index 000000000..9d42b072d --- /dev/null +++ b/data/benchmarks/non_termination/loop/Incorrect_Update_for_Loop_Iterator_2_NT.c @@ -0,0 +1,21 @@ +/* +Commit Number: 3322180d4b452e11545b70abc9b2d5af3d241361 +URL: https://github.com/asterisk/asterisk/commit/3322180d4b452e11545b70abc9b2d5af3d241361 +Project Name: asterisk +License: GPL2 +termination: FALSE + +*/ +int main() +{ + unsigned char l = __VERIFIER_nondet_uchar(); + + while( l-- ) + { + if( l-- ) + { + //loop + } + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Incorrect_Update_for_Loop_Iterator_2_T.c b/data/benchmarks/non_termination/loop/Incorrect_Update_for_Loop_Iterator_2_T.c new file mode 100644 index 000000000..4ecb79897 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Incorrect_Update_for_Loop_Iterator_2_T.c @@ -0,0 +1,20 @@ +/* +Commit Number: 3322180d4b452e11545b70abc9b2d5af3d241361 +URL: https://github.com/asterisk/asterisk/commit/3322180d4b452e11545b70abc9b2d5af3d241361 +Project Name: asterisk +License: GPL2 +termination: TRUE +*/ +int main() +{ + unsigned char l = __VERIFIER_nondet_uchar(); + + while( l-- ) + { + if( l && l-- ) + { + //loop + } + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Incorrect_Update_for_Loop_Iterator_3_NT.c b/data/benchmarks/non_termination/loop/Incorrect_Update_for_Loop_Iterator_3_NT.c new file mode 100644 index 000000000..b08c5ac97 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Incorrect_Update_for_Loop_Iterator_3_NT.c @@ -0,0 +1,23 @@ +/* +Commit Number: 92eb7a2f28d551acedeb5752263267a64b1f5ddf +URL: https://github.com/cleaton/android_kernel_samsung_smdk4210/commit/92eb7a2f28d551acedeb5752263267a64b1f5ddf +Project Name: android_kernel_samsung_smdk4210 +License: GPL2 +termination: FALSE +*/ + + + +int main() +{ + int nfds = __VERIFIER_nondet_int(); + int nr = __VERIFIER_nondet_int(); + int NR_OPEN = __VERIFIER_nondet_int(); + while( nfds <= nr ) + { + nfds = nfds * 2; + if( nfds > NR_OPEN ) + nfds = NR_OPEN; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_1_NT.c b/data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_1_NT.c new file mode 100644 index 000000000..96a1ef19e --- /dev/null +++ b/data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_1_NT.c @@ -0,0 +1,44 @@ +/* +Commit Number: cd64eeac116d3bb4871d114b105440b4dd11b8e0 +URL: https://github.com/DPDK/dpdk/commit/cd64eeac116d3bb4871d114b105440b4dd11b8e0 +Project Name: dpdk +License: BSD-3-Clause +termination: FALSE +*/ + +int flag = 0; +int count = 0; +int read() +{ + if( flag == 1 || count > 100 ) //whether EOF or not + return 0; + int num = __VERIFIER_nondet_int(); + if( num <= 0 ) //abnormal + { + return -1; + } + else + { + num = num % 1000; + if( num < 995 ) //read a char + { + count++; + return num; + } + else // EOF + { + flag = 1; + return 0; + } + } + +} +int main() +{ + while(1) + { + if( read() < 0 ) + break; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_1_T.c b/data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_1_T.c new file mode 100644 index 000000000..8d69268cf --- /dev/null +++ b/data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_1_T.c @@ -0,0 +1,44 @@ +/* +Commit Number: cd64eeac116d3bb4871d114b105440b4dd11b8e0 +URL: https://github.com/DPDK/dpdk/commit/cd64eeac116d3bb4871d114b105440b4dd11b8e0 +Project Name: dpdk +License: BSD-3-Clause +termination: TRUE +*/ + +int flag = 0; +int count = 0; +int read() +{ + if( flag == 1 || count > 100 ) //whether EOF or not + return 0; + int num = __VERIFIER_nondet_int(); + if( num <= 0 ) //abnormal + { + return -1; + } + else + { + num = num % 1000; + if( num < 995 ) //read a char + { + count++; + return num; + } + else // EOF + { + flag = 1; + return 0; + } + } + +} +int main() +{ + while(1) + { + if( read() <= 0 ) + break; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_2_NT.c b/data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_2_NT.c new file mode 100644 index 000000000..fad759c8e --- /dev/null +++ b/data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_2_NT.c @@ -0,0 +1,18 @@ +/* +Commit Number: 930b9a069a425818d4e9965f53be7df1f4d7d422 +URL: https://github.com/XQuartz/xorg-server/commit/930b9a069a425818d4e9965f53be7df1f4d7d422 +Project Name: xorg-server +License: MIT +termination: FALSE + +*/ +int main() +{ + int val = __VERIFIER_nondet_int(); + if( !val ) + return 0; + int bits; + for( bits = 0 ; val != 0 ; bits++ ) + val >>= 1; + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_2_T.c b/data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_2_T.c new file mode 100644 index 000000000..1a9b03835 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_2_T.c @@ -0,0 +1,17 @@ +/* +Commit Number: 930b9a069a425818d4e9965f53be7df1f4d7d422 +URL: https://github.com/XQuartz/xorg-server/commit/930b9a069a425818d4e9965f53be7df1f4d7d422 +Project Name: xorg-server +License: MIT +termination: TRUE +*/ +int main() +{ + int val = __VERIFIER_nondet_int(); + if( val <= 0 ) + return 0; + int bits; + for( bits = 0 ; val != 0 ; bits++ ) + val >>= 1; + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_3_NT.c b/data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_3_NT.c new file mode 100644 index 000000000..d19bb6783 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_3_NT.c @@ -0,0 +1,38 @@ +/* + +Commit Number: fad2eab749cce970fa87fa46186218b2dfe1adc1 +URL: https://github.com/NetHack/NetHack/commit/fad2eab749cce970fa87fa46186218b2dfe1adc1 +Project Name: NetHack +License: https://github.com/NetHack/NetHack/commit/60df7b2d3b73900481814084be027375b5888765 +termination: FALSE + +*/ +int main() +{ + int ROWNO = __VERIFIER_nondet_int(); + int COLNO = __VERIFIER_nondet_int(); + if( ROWNO <= 0 || COLNO <= 0 || ROWNO > 65534 || COLNO > 65534 ) + return 0; + int levl[ROWNO][COLNO]; + for( int i = 0 ; i < ROWNO ; i++ ) + { + for( int j = 0 ; j < COLNO ; j++ ) + { + int num = __VERIFIER_nondet_int(); + if( num > 0 ) + num = -num; + levl[i][j] = num % 4; + } + } + int STONE = 0; + int found = 0; + for( int xmin = 0; !found ; xmin++ ) + { + for( int y = 0 ; y <= COLNO - 1; y++ ) + { + if( levl[xmin][y] != STONE ) + found = 1; + } + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_3_T.c b/data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_3_T.c new file mode 100644 index 000000000..38c2abf73 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_3_T.c @@ -0,0 +1,38 @@ +/* +Commit Number: fad2eab749cce970fa87fa46186218b2dfe1adc1 +URL: https://github.com/NetHack/NetHack/commit/fad2eab749cce970fa87fa46186218b2dfe1adc1 +Project Name: NetHack +License: https://github.com/NetHack/NetHack/commit/60df7b2d3b73900481814084be027375b5888765 +termination: TRUE + + +*/ +int main() +{ + int ROWNO = __VERIFIER_nondet_int(); + int COLNO = __VERIFIER_nondet_int(); + if( ROWNO <= 0 || COLNO <= 0 || ROWNO > 65534 || COLNO > 65534 ) + return 0; + int levl[ROWNO][COLNO]; + for( int i = 0 ; i < ROWNO ; i++ ) + { + for( int j = 0 ; j < COLNO ; j++ ) + { + int num = __VERIFIER_nondet_int(); + if( num > 0 ) + num = -num; + levl[i][j] = num % 4; + } + } + int STONE = 0; + int found = 0; + for( int xmin = 0; !found && xmin < ROWNO; xmin++ ) + { + for( int y = 0 ; y <= COLNO - 1; y++ ) + { + if( levl[xmin][y] != STONE ) + found = 1; + } + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_4_NT.c b/data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_4_NT.c new file mode 100644 index 000000000..ee645b280 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_4_NT.c @@ -0,0 +1,56 @@ +/* + +Commit Number: 6a603b5b55262c443bf780f3c112a586cb3d9901 +URL: https://github.com/ArtifexSoftware/mupdf/commit/6a603b5b55262c443bf780f3c112a586cb3d9901 +Project Name: mupdf +License: agpl-3.0 +termination: FALSE +*/ +typedef struct NNode{ + int h; + struct NNode * next; +}Node; + + +Node * initLink(int n){ + Node* head=(Node*)malloc(sizeof(Node)); + head->h=1; + head->next=0; + Node* cyclic=head; + + int i; + for (i=2; i<=n; i++) { + Node * body=(Node*)malloc(sizeof(Node)); + body->h=i; + body->next=0; + cyclic->next=body; + cyclic=cyclic->next; + } + cyclic->next=head; + return head; +} +Node* findEnd( Node* list ) +{ + Node* begin = list; + while( begin->next != list ) + begin = begin->next; + return begin; +} + +int main() +{ + int num = __VERIFIER_nondet_int(); + if( num <= 0 || num > 65534 ) + return 0; + Node* list = initLink( num ); + Node* node = list; + Node* end = findEnd( list ); + float h = 0; + while( node ) + { + if( node-> h > h ) + h = node -> h; + node = node->next; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_4_T.c b/data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_4_T.c new file mode 100644 index 000000000..5ea103e6d --- /dev/null +++ b/data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_4_T.c @@ -0,0 +1,55 @@ +/* +Commit Number: 6a603b5b55262c443bf780f3c112a586cb3d9901 +URL: https://github.com/ArtifexSoftware/mupdf/commit/6a603b5b55262c443bf780f3c112a586cb3d9901 +Project Name: mupdf +License: agpl-3.0 +termination: true +*/ +typedef struct NNode{ + int h; + struct NNode * next; +}Node; + + +Node * initLink(int n){ + Node* head=(Node*)malloc(sizeof(Node)); + head->h=1; + head->next=0; + Node* cyclic=head; + + int i; + for (i=2; i<=n; i++) { + Node * body=(Node*)malloc(sizeof(Node)); + body->h=i; + body->next=0; + cyclic->next=body; + cyclic=cyclic->next; + } + cyclic->next=head; + return head; +} +Node* findEnd( Node* list ) +{ + Node* begin = list; + while( begin->next != list ) + begin = begin->next; + return begin; +} + +int main() +{ + int num = __VERIFIER_nondet_int(); + if( num <= 0 || num > 65534 ) + return 0; + Node* list = initLink( num ); + Node* node = list; + Node* end = findEnd( list ); + float h = 0; + while( node != end ) + { + if( node-> h > h ) + h = node -> h; + node = node->next; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Missing_Initialization_1_NT.c b/data/benchmarks/non_termination/loop/Missing_Initialization_1_NT.c new file mode 100644 index 000000000..81a52167f --- /dev/null +++ b/data/benchmarks/non_termination/loop/Missing_Initialization_1_NT.c @@ -0,0 +1,21 @@ +/* +Commit Number: 407a3d94f566a68c7a862fcdac812bf53741af94 +URL: https://github.com/FFmpeg/FFmpeg/commit/407a3d94f566a68c7a862fcdac812bf53741af94 +Project Name: FFmpeg +License: LGPL-2.1 +termination: FALSE +*/ +int main() +{ + int res = 0; + int pkt = __VERIFIER_nondet_int(); + while( pkt < 10 ) + { + while( res == 0 ) + { + res = __VERIFIER_nondet_int(); + pkt++; + } + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Missing_Initialization_1_T.c b/data/benchmarks/non_termination/loop/Missing_Initialization_1_T.c new file mode 100644 index 000000000..31bcba0a0 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Missing_Initialization_1_T.c @@ -0,0 +1,24 @@ +/* +Commit Number: 407a3d94f566a68c7a862fcdac812bf53741af94 +URL: https://github.com/FFmpeg/FFmpeg/commit/407a3d94f566a68c7a862fcdac812bf53741af94 +Project Name: FFmpeg +License: LGPL-2.1 +termination: TRUE +*/ +int main() +{ + int res; + int pkt = __VERIFIER_nondet_int(); + while( pkt < 10 ) + { + res = 0; + while( res == 0 ) + { + res = __VERIFIER_nondet_int(); + pkt++; + if( res == 0 ) + break; + } + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Missing_Iterator_Update_1_NT.c b/data/benchmarks/non_termination/loop/Missing_Iterator_Update_1_NT.c new file mode 100644 index 000000000..55d42d5f1 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Missing_Iterator_Update_1_NT.c @@ -0,0 +1,40 @@ +/* + +Commit Number: fc600b6a8f0dec5642b45c1026dee24c9adb9bc2 +URL: https://github.com/freedesktop/dbus/commit/fc600b6a8f0dec5642b45c1026dee24c9adb9bc2 +Project Name: dbus +License: GPL2 +termination: FALSE + +*/ +#define EINTR 1 +#define OTHER 2 +int errno; +int waitpid() +{ + int num = __VERIFIER_nondet_int(); + while( num < 0 ) + { + if( __VERIFIER_nondet_int() && errno != EINTR ) + errno = EINTR; + else + errno = OTHER; + return num; + } + return num; +} + +int main() +{ + + int ret = waitpid(); +again: + if( ret == 0 ) + { + ret = waitpid(); + } + if( ret < 0 ) + if( errno == EINTR ) + goto again; + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Missing_Iterator_Update_1_T.c b/data/benchmarks/non_termination/loop/Missing_Iterator_Update_1_T.c new file mode 100644 index 000000000..ccb42860b --- /dev/null +++ b/data/benchmarks/non_termination/loop/Missing_Iterator_Update_1_T.c @@ -0,0 +1,38 @@ +/* +Commit Number: fc600b6a8f0dec5642b45c1026dee24c9adb9bc2 +URL: https://github.com/freedesktop/dbus/commit/fc600b6a8f0dec5642b45c1026dee24c9adb9bc2 +Project Name: dbus +License: GPL2 +termination: TRUE + +*/ +#define EINTR 1 +#define OTHER 2 +int errno; +int waitpid() +{ + int num = __VERIFIER_nondet_int(); + while( num < 0 ) + { + if( __VERIFIER_nondet_int() && errno != EINTR ) + errno = EINTR; + else + errno = OTHER; + return num; + } + return num; +} + +int main() +{ + + int ret = waitpid(); +again: + if( ret == 0 ) + { + do{ + ret = waitpid(); + }while( ret < 0 && errno == EINTR ); + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Missing_Iterator_Update_2_NT.c b/data/benchmarks/non_termination/loop/Missing_Iterator_Update_2_NT.c new file mode 100644 index 000000000..91ea9d10d --- /dev/null +++ b/data/benchmarks/non_termination/loop/Missing_Iterator_Update_2_NT.c @@ -0,0 +1,33 @@ +/* +Commit Number: 8a7acbf81de51ff991bf8211eff248b46c2b5421 +URL: https://github.com/ximion/appstream/commit/8a7acbf81de51ff991bf8211eff248b46c2b5421 +Project Name: appstream +License: LGPL-2.1 +termination: FALSE +*/ +int flag = 0; +int mdb_cursor_get() +{ + int i = __VERIFIER_nondet_int();; + flag++; + if( flag > 1000 )// avoid almost-sure + return 1; + if( i >= 0 ) + return 0; + else + return 1; +} + +int main() +{ + int rc; + rc = mdb_cursor_get(); + int dval_mv_size = __VERIFIER_nondet_int(); + while( rc == 0 ) + { + if( dval_mv_size <= 0 ) + continue; + rc = mdb_cursor_get(); + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Missing_Iterator_Update_2_T.c b/data/benchmarks/non_termination/loop/Missing_Iterator_Update_2_T.c new file mode 100644 index 000000000..7cdba3c3d --- /dev/null +++ b/data/benchmarks/non_termination/loop/Missing_Iterator_Update_2_T.c @@ -0,0 +1,36 @@ +/* +Commit Number: 8a7acbf81de51ff991bf8211eff248b46c2b5421 +URL: https://github.com/ximion/appstream/commit/8a7acbf81de51ff991bf8211eff248b46c2b5421 +Project Name: appstream +License: LGPL-2.1 +termination: TRUE +*/ +int flag = 0; +int mdb_cursor_get() +{ + int i = __VERIFIER_nondet_int();; + flag++; + if( flag > 1000 )// avoid almost-sure + return 1; + if( i >= 0 ) + return 0; + else + return 1; +} + +int main() +{ + int rc; + rc = mdb_cursor_get(); + int dval_mv_size = __VERIFIER_nondet_int(); + while( rc == 0 ) + { + if( dval_mv_size <= 0 ) + { + rc = mdb_cursor_get(); + continue; + } + rc = mdb_cursor_get(); + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Missing_Iterator_Update_3_NT.c b/data/benchmarks/non_termination/loop/Missing_Iterator_Update_3_NT.c new file mode 100644 index 000000000..1a1d72215 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Missing_Iterator_Update_3_NT.c @@ -0,0 +1,45 @@ +/* +Commit Number: 8ddb6410edb0c4e87b4c6b9d0887868977c8eff5 +URL: https://github.com/mirror/busybox/commit/8ddb6410edb0c4e87b4c6b9d0887868977c8eff5 +Project Name: busybox +License: GPL2 +termination: FALSE +*/ +int flag = 0; +int fopen_or_warn() +{ + + flag++; + if( flag > 10 )// avoid almost-sure + return 0; + int i = __VERIFIER_nondet_int(); + if( i >= 0 ) + return 0; + else + return i; +} +int main() +{ + int len = __VERIFIER_nondet_int(); + if( len <= 0 ) + return 0; + int argv1[len]; + for( int i = 0 ; i < len - 1 ; i++ ) + argv1[i] = __VERIFIER_nondet_int(); + argv1[len-1] = 0; + int* argv = argv1; + int fp = 0; + goto GOT_NEW_FILE; + do{ + if( *argv > 0 ) + { + fp = fopen_or_warn(); + if( fp == 0 ) + continue; + } + argv++; +GOT_NEW_FILE: + fp++; + }while( *argv ); + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Missing_Iterator_Update_3_T.c b/data/benchmarks/non_termination/loop/Missing_Iterator_Update_3_T.c new file mode 100644 index 000000000..11e4fbca3 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Missing_Iterator_Update_3_T.c @@ -0,0 +1,49 @@ +/* +Commit Number: 8ddb6410edb0c4e87b4c6b9d0887868977c8eff5 +URL: https://github.com/mirror/busybox/commit/8ddb6410edb0c4e87b4c6b9d0887868977c8eff5 +Project Name: busybox +License: GPL2 +termination: TRUE + +*/ +int flag = 0; +int fopen_or_warn() +{ + + flag++; + if( flag > 10 )// avoid almost-sure + return 0; + int i = __VERIFIER_nondet_int(); + if( i >= 0 ) + return 0; + else + return i; +} +int main() +{ + int len = __VERIFIER_nondet_int(); + if( len <= 0 ) + return 0; + int argv1[len]; + for( int i = 0 ; i < len - 1 ; i++ ) + argv1[i] = __VERIFIER_nondet_int(); + argv1[len-1] = 0; + int* argv = argv1; + int fp = 0; + goto GOT_NEW_FILE; + do{ + if( *argv > 0 ) + { + fp = fopen_or_warn(); + if( fp == 0 ) + { + argv++; + continue; + } + } + argv++; +GOT_NEW_FILE: + fp++; + }while( *argv ); + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Missing_Iterator_Update_4_NT.c b/data/benchmarks/non_termination/loop/Missing_Iterator_Update_4_NT.c new file mode 100644 index 000000000..f3dae6669 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Missing_Iterator_Update_4_NT.c @@ -0,0 +1,26 @@ +/* +Commit Number: 78d9891dfebe63433b47076583df812992b3db7c +URL: https://github.com/blender/blender/commit/78d9891dfebe63433b47076583df812992b3db7c +Project Name: blender +License: GPL2 +termination: FALSE +*/ +int main() +{ + int x = __VERIFIER_nondet_int(); + int mat_colSize = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + int z = __VERIFIER_nondet_int(); + int mat_rowSize = __VERIFIER_nondet_int(); + if( mat_colSize < 0 || mat_rowSize < 0 || mat_colSize > 65534 || mat_rowSize > 65534 ) + return 0; + for( x = 0 ; x < mat_colSize ; z++ ) + { + for( y = 0 ; y < mat_rowSize; y++ ) + { + //loop + } + z++; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Missing_Iterator_Update_4_T.c b/data/benchmarks/non_termination/loop/Missing_Iterator_Update_4_T.c new file mode 100644 index 000000000..46161dd7a --- /dev/null +++ b/data/benchmarks/non_termination/loop/Missing_Iterator_Update_4_T.c @@ -0,0 +1,26 @@ +/* +Commit Number: 78d9891dfebe63433b47076583df812992b3db7c +URL: https://github.com/blender/blender/commit/78d9891dfebe63433b47076583df812992b3db7c +Project Name: blender +License: GPL2 +termination: TRUE +*/ +int main() +{ + int x = __VERIFIER_nondet_int(); + int mat_colSize = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + int z = __VERIFIER_nondet_int(); + int mat_rowSize = __VERIFIER_nondet_int(); + if( mat_colSize < 0 || mat_rowSize < 0 || mat_colSize > 65534 || mat_rowSize > 65534 ) + return 0; + for( x = 0 ; x < mat_colSize ; x++ ) + { + for( y = 0 ; y < mat_rowSize; y++ ) + { + //loop + } + z++; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Missing_Iterator_Update_5_NT.c b/data/benchmarks/non_termination/loop/Missing_Iterator_Update_5_NT.c new file mode 100644 index 000000000..ee65372fa --- /dev/null +++ b/data/benchmarks/non_termination/loop/Missing_Iterator_Update_5_NT.c @@ -0,0 +1,32 @@ +/* + +Commit Number: 7644143cd6f7e029f3a8ea64f5fb0ab33ec39f72 +URL: https://github.com/aeroevan/android_kernel_asus_grouper/commit/7644143cd6f7e029f3a8ea64f5fb0ab33ec39f72 +Project Name: android_kernel_asus_grouper +License: GPL2 +termination: FALSE + +*/ +int main() +{ + int MCE_LOG_LEN = __VERIFIER_nondet_int(); + if( MCE_LOG_LEN <= 0 || MCE_LOG_LEN > 1000) + return 0; + int mcelog_entry[MCE_LOG_LEN]; + for( int i = 0; i < MCE_LOG_LEN; i++ ) + mcelog_entry[i] = __VERIFIER_nondet_int(); + int entry = __VERIFIER_nondet_int(); + if( entry < 0 ) + return 0; + for( ; ; ) + { + if( entry >= MCE_LOG_LEN ) + return 0; + if( mcelog_entry[entry] ) + { + entry++; + continue; + } + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Missing_Iterator_Update_5_T.c b/data/benchmarks/non_termination/loop/Missing_Iterator_Update_5_T.c new file mode 100644 index 000000000..100c0f54b --- /dev/null +++ b/data/benchmarks/non_termination/loop/Missing_Iterator_Update_5_T.c @@ -0,0 +1,32 @@ +/* +Commit Number: 7644143cd6f7e029f3a8ea64f5fb0ab33ec39f72 +URL: https://github.com/aeroevan/android_kernel_asus_grouper/commit/7644143cd6f7e029f3a8ea64f5fb0ab33ec39f72 +Project Name: android_kernel_asus_grouper +License: GPL2 +termination: TRUE + +*/ +int main() +{ + int MCE_LOG_LEN = __VERIFIER_nondet_int(); + if( MCE_LOG_LEN <= 0 || MCE_LOG_LEN > 1000) + return 0; + int mcelog_entry[MCE_LOG_LEN]; + for( int i = 0; i < MCE_LOG_LEN; i++ ) + mcelog_entry[i] = __VERIFIER_nondet_int(); + int entry = __VERIFIER_nondet_int(); + if( entry < 0 ) + return 0; + for( ; ; ) + { + if( entry >= MCE_LOG_LEN ) + return 0; + if( mcelog_entry[entry] ) + { + entry++; + continue; + } + break; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Misusing_Variable_Type_1_NT.c b/data/benchmarks/non_termination/loop/Misusing_Variable_Type_1_NT.c new file mode 100644 index 000000000..a55057f94 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Misusing_Variable_Type_1_NT.c @@ -0,0 +1,24 @@ +/* + +Commit Number: 090341b0a95d1f6d762915a75c13b393366f4ab3 +URL: https://github.com/torvalds/linux/commit/090341b0a95d1f6d762915a75c13b393366f4ab3 +Project Name: linux +License: GPL-2.0 +termination: FALSE +*/ + +int main() +{ + unsigned int mul,div1,div2; + for( div1 = 1 ; div1 >= 0; div1-- ) + { + for( div2 = 7; div2 >= 0 ; div2-- ) + { + for( mul = 0 ; mul <= 255; mul++ ) + { + //loop + } + } + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Misusing_Variable_Type_1_T.c b/data/benchmarks/non_termination/loop/Misusing_Variable_Type_1_T.c new file mode 100644 index 000000000..9e3b9a1c3 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Misusing_Variable_Type_1_T.c @@ -0,0 +1,24 @@ +/* +Commit Number: 090341b0a95d1f6d762915a75c13b393366f4ab3 +URL: https://github.com/torvalds/linux/commit/090341b0a95d1f6d762915a75c13b393366f4ab3 +Project Name: linux +License: GPL-2.0 +termination: TRUE +*/ + +int main() +{ + unsigned int mul; + int div1,div2; + for( div1 = 1 ; div1 >= 0; div1-- ) + { + for( div2 = 7; div2 >= 0 ; div2-- ) + { + for( mul = 0 ; mul <= 255; mul++ ) + { + //loop + } + } + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Misusing_Variable_Type_2_NT.c b/data/benchmarks/non_termination/loop/Misusing_Variable_Type_2_NT.c new file mode 100644 index 000000000..a48ec0d2c --- /dev/null +++ b/data/benchmarks/non_termination/loop/Misusing_Variable_Type_2_NT.c @@ -0,0 +1,28 @@ +/* + +Commit Number: 4b35c31087048af38083a5a0273ab5a72064626b +URL: https://github.com/mej/Eterm/commit/4b35c31087048af38083a5a0273ab5a72064626b +Project Name: Eterm +License: MIT +termination: FALSE +*/ +int gettablesize() +{ + int i = __VERIFIER_nondet_int(); + i = i % 99999; + if( i < 0 ) + return -i; + else + return i; +} +int main() +{ + unsigned short i; + unsigned long max_fds = gettablesize(); + for( i = 0 ; i < max_fds ; i++ ) + { + //loop + } + + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Misusing_Variable_Type_2_T.c b/data/benchmarks/non_termination/loop/Misusing_Variable_Type_2_T.c new file mode 100644 index 000000000..610640213 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Misusing_Variable_Type_2_T.c @@ -0,0 +1,27 @@ +/* +Commit Number: 4b35c31087048af38083a5a0273ab5a72064626b +URL: https://github.com/mej/Eterm/commit/4b35c31087048af38083a5a0273ab5a72064626b +Project Name: Eterm +License: MIT +termination: TRUE +*/ +int gettablesize() +{ + int i = __VERIFIER_nondet_int(); + i = i % 99999; + if( i < 0 ) + return -i; + else + return i; +} +int main() +{ + long i; + long max_fds = gettablesize(); + for( i = 0 ; i < max_fds ; i++ ) + { + //loop + } + + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Reusing_Same_Loop_Iterator_1_NT.c b/data/benchmarks/non_termination/loop/Reusing_Same_Loop_Iterator_1_NT.c new file mode 100644 index 000000000..8d57a62b4 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Reusing_Same_Loop_Iterator_1_NT.c @@ -0,0 +1,23 @@ +/* +Commit Number: 78574a66b5b286e26839877640592980de089d64 +URL: https://github.com/XQuartz/xorg-server/commit/78574a66b5b286e26839877640592980de089d64 +Project Name: xorg-server +License: MIT +termination: FALSE +*/ +int main() +{ + int i,j; + int num_crtc = __VERIFIER_nondet_int(); + int num_output = __VERIFIER_nondet_int(); + if( num_crtc > 65534 || num_output > 65534 ) + return 0; + for( i = 0 ; i < num_crtc ; i++ ) + { + for( i = 0 ; i < num_output ; i++ ) + { + //do other + } + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Reusing_Same_Loop_Iterator_1_T.c b/data/benchmarks/non_termination/loop/Reusing_Same_Loop_Iterator_1_T.c new file mode 100644 index 000000000..cbf5f01eb --- /dev/null +++ b/data/benchmarks/non_termination/loop/Reusing_Same_Loop_Iterator_1_T.c @@ -0,0 +1,23 @@ +/* +Commit Number: 78574a66b5b286e26839877640592980de089d64 +URL: https://github.com/XQuartz/xorg-server/commit/78574a66b5b286e26839877640592980de089d64 +Project Name: xorg-server +License: MIT +termination: TRUE +*/ +int main() +{ + int i,j; + int num_crtc = __VERIFIER_nondet_int(); + int num_output = __VERIFIER_nondet_int(); + if( num_crtc > 65534 || num_output > 65534 ) + return 0; + for( i = 0 ; i < num_crtc ; i++ ) + { + for( j = 0 ; j < num_output ; j++ ) + { + //do other + } + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Reusing_Same_Loop_Iterator_2_NT.c b/data/benchmarks/non_termination/loop/Reusing_Same_Loop_Iterator_2_NT.c new file mode 100644 index 000000000..040e004de --- /dev/null +++ b/data/benchmarks/non_termination/loop/Reusing_Same_Loop_Iterator_2_NT.c @@ -0,0 +1,22 @@ +/* +Commit Number: 24abdc9d313db1d320cb8c768c968098a4dda2c4 +URL: https://github.com/bminor/binutils-gdb/commit/24abdc9d313db1d320cb8c768c968098a4dda2c4 +Project Name: binutils-gdb +License: GPL2 +termination: FALSE +*/ +int main() +{ + int i,j; + int num = __VERIFIER_nondet_int(); + if( num > 65534 ) + return 0; + for( i = 0 ; i < num ; i++ ) + { + for( i = 0 ; i < 3 ; i++ ) + { + //do other + } + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Reusing_Same_Loop_Iterator_2_T.c b/data/benchmarks/non_termination/loop/Reusing_Same_Loop_Iterator_2_T.c new file mode 100644 index 000000000..e4a97002e --- /dev/null +++ b/data/benchmarks/non_termination/loop/Reusing_Same_Loop_Iterator_2_T.c @@ -0,0 +1,24 @@ +/* +Commit Number: 24abdc9d313db1d320cb8c768c968098a4dda2c4 +URL: https://github.com/bminor/binutils-gdb/commit/24abdc9d313db1d320cb8c768c968098a4dda2c4 +Project Name: binutils-gdb +License: GPL2 +termination: TRUE + +*/ +int main() +{ + int i; + int num = __VERIFIER_nondet_int(); + if( num > 65534 ) + return 0; + for( i = 0 ; i < num ; i++ ) + { + int j; + for( j = 0 ; j < 3 ; j++ ) + { + //do other + } + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Signed_Overflow_Error_1_NT.c b/data/benchmarks/non_termination/loop/Signed_Overflow_Error_1_NT.c new file mode 100644 index 000000000..81a253817 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Signed_Overflow_Error_1_NT.c @@ -0,0 +1,17 @@ +/* +Commit Number: e7df42ab68e30588a5e32ed543b0711821daf009 +URL: https://github.com/XQuartz/xorg-server/commit/e7df42ab68e30588a5e32ed543b0711821daf009 +Project Name: xorg-server +License: MIT +termination: FALSE + +*/ +int main() +{ + long i; + for( i = 1 ; i <= 0xFFFFFFFF ; i <<= 1 ) + { + //loop + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Signed_Overflow_Error_1_T.c b/data/benchmarks/non_termination/loop/Signed_Overflow_Error_1_T.c new file mode 100644 index 000000000..f5e176f46 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Signed_Overflow_Error_1_T.c @@ -0,0 +1,19 @@ +/* +Commit Number: e7df42ab68e30588a5e32ed543b0711821daf009 +URL: https://github.com/XQuartz/xorg-server/commit/e7df42ab68e30588a5e32ed543b0711821daf009 +Project Name: xorg-server +License: MIT +termination: TRUE + + +*/ +int main() +{ + long i; + for( i = 1 ; i <= 0xFFFFFFFF ; i <<= 1 ) + { + if( i == ( (long)1 << 31 )) + break; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Signed_Overflow_Error_2_NT.c b/data/benchmarks/non_termination/loop/Signed_Overflow_Error_2_NT.c new file mode 100644 index 000000000..edb308331 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Signed_Overflow_Error_2_NT.c @@ -0,0 +1,18 @@ +/* + +Commit Number: f61813eaea814b49489b3e917c6bdb850c7aeb8b +URL: https://github.com/open-quantum-safe/libssh/commit/f61813eaea814b49489b3e917c6bdb850c7aeb8b +Project Name: libssh +License: GPL-2.0 +termination: FALSE +*/ +int main() +{ + int needed = __VERIFIER_nondet_int(); + int smallest = 1; + while( smallest <= needed ) + { + smallest <<= 1; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Signed_Overflow_Error_2_T.c b/data/benchmarks/non_termination/loop/Signed_Overflow_Error_2_T.c new file mode 100644 index 000000000..7bbdd07a0 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Signed_Overflow_Error_2_T.c @@ -0,0 +1,19 @@ +/* +Commit Number: f61813eaea814b49489b3e917c6bdb850c7aeb8b +URL: https://github.com/open-quantum-safe/libssh/commit/f61813eaea814b49489b3e917c6bdb850c7aeb8b +Project Name: libssh +License: GPL-2.0 +termination: TRUE +*/ +int main() +{ + int needed = __VERIFIER_nondet_int(); + int smallest = 1; + while( smallest <= needed ) + { + if( smallest == 0 ) + return 0; + smallest <<= 1; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Signed_Overflow_Error_3_NT.c b/data/benchmarks/non_termination/loop/Signed_Overflow_Error_3_NT.c new file mode 100644 index 000000000..6d240beae --- /dev/null +++ b/data/benchmarks/non_termination/loop/Signed_Overflow_Error_3_NT.c @@ -0,0 +1,16 @@ +/* + +Commit Number: d306f3d3513c62342fec4e31457766f2473f9e9a +URL: https://github.com/git/git/commit/d306f3d3513c62342fec4e31457766f2473f9e9a +Project Name: git +License: GPL-2.0 +termination: FALSE +*/ +int main() +{ + int number = __VERIFIER_nondet_int(); + int i, width; + for( width = 1, i = 10 ; i <= number ; width++ ) + i *= 10; + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Signed_Overflow_Error_3_T.c b/data/benchmarks/non_termination/loop/Signed_Overflow_Error_3_T.c new file mode 100644 index 000000000..57b18cd19 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Signed_Overflow_Error_3_T.c @@ -0,0 +1,15 @@ +/* +Commit Number: d306f3d3513c62342fec4e31457766f2473f9e9a +URL: https://github.com/git/git/commit/d306f3d3513c62342fec4e31457766f2473f9e9a +Project Name: git +License: GPL-2.0 +termination: TRUE +*/ +int main() +{ + unsigned int number = __VERIFIER_nondet_uint(); + int width; + for( width = 1; number >= 10 ; width++ ) + number /= 10; + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Type_Conversion_in_Assignment_1_NT.c b/data/benchmarks/non_termination/loop/Type_Conversion_in_Assignment_1_NT.c new file mode 100644 index 000000000..6a64651a2 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Type_Conversion_in_Assignment_1_NT.c @@ -0,0 +1,42 @@ +/* + +Commit Number: 57e7400d046f382ee94745791ccb0e1a06efb2e4 +URL: https://github.com/kmatheussen/das_watchdog/commit/57e7400d046f382ee94745791ccb0e1a06efb2e4 +Project Name: das_watchdog +License: GPL-2.0 +termination: FALSE +*/ +#define EOF -1 +int flag = 0; +int fgetc() +{ + if( flag > 1000 ) + return -1; + flag++; + int c = __VERIFIER_nondet_int(); + if( c < 0 ) + c = -c; + c = c % 256; + return c; +} +int main() +{ + unsigned char temp; + for( ; ; ) + { + temp = fgetc(); + if( temp == '\0' || temp == EOF ) + return 0; + switch( temp ){ + case EOF: + return 0; + case '=': + break; + case '\0': + break; + default: + break; + } + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Type_Conversion_in_Assignment_1_T.c b/data/benchmarks/non_termination/loop/Type_Conversion_in_Assignment_1_T.c new file mode 100644 index 000000000..adbc482a6 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Type_Conversion_in_Assignment_1_T.c @@ -0,0 +1,41 @@ +/* +Commit Number: 57e7400d046f382ee94745791ccb0e1a06efb2e4 +URL: https://github.com/kmatheussen/das_watchdog/commit/57e7400d046f382ee94745791ccb0e1a06efb2e4 +Project Name: das_watchdog +License: GPL-2.0 +termination: TRUE +*/ +#define EOF -1 +int flag = 0; +int fgetc() +{ + if( flag > 1000 ) + return -1; + flag++; + int c = __VERIFIER_nondet_int(); + if( c < 0 ) + c = -c; + c = c % 256; + return c; +} +int main() +{ + int temp; + for( ; ; ) + { + temp = fgetc(); + if( temp == '\0' || temp == EOF ) + return 0; + switch( temp ){ + case EOF: + return 0; + case '=': + break; + case '\0': + break; + default: + break; + } + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Type_Conversion_in_Comparison_1_NT.c b/data/benchmarks/non_termination/loop/Type_Conversion_in_Comparison_1_NT.c new file mode 100644 index 000000000..592331548 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Type_Conversion_in_Comparison_1_NT.c @@ -0,0 +1,19 @@ +/* + +Commit Number: f9bfec180f91671d8ba72a01cab1781c1f5e9999 +URL: https://github.com/squireblackdens/daapd/commit/f9bfec180f91671d8ba72a01cab1781c1f5e9999 +Project Name: daapd +License: GPL-2.0 +termination: FALSE +*/ +int main() +{ + unsigned short int s, seqnum, len; + seqnum = __VERIFIER_nondet_ushort(); + len = __VERIFIER_nondet_ushort();; + for( s = seqnum ; s < seqnum + len; s++ ) + { + + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Type_Conversion_in_Comparison_1_T.c b/data/benchmarks/non_termination/loop/Type_Conversion_in_Comparison_1_T.c new file mode 100644 index 000000000..0dc6e8924 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Type_Conversion_in_Comparison_1_T.c @@ -0,0 +1,20 @@ +/* +Commit Number: f9bfec180f91671d8ba72a01cab1781c1f5e9999 +URL: https://github.com/squireblackdens/daapd/commit/f9bfec180f91671d8ba72a01cab1781c1f5e9999 +Project Name: daapd +License: GPL-2.0 +termination: TRUE +*/ +int main() +{ + unsigned short int s, seqnum; + int len; + seqnum = __VERIFIER_nondet_ushort(); + len = __VERIFIER_nondet_int(); + int i; + for( i = 0, s = seqnum ; i < len; i++, s++ ) + { + + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Type_Conversion_in_Comparison_2_NT.c b/data/benchmarks/non_termination/loop/Type_Conversion_in_Comparison_2_NT.c new file mode 100644 index 000000000..04fe41ce8 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Type_Conversion_in_Comparison_2_NT.c @@ -0,0 +1,19 @@ +/* + +Commit Number: 34c30c8ad3725e0c4a7242278ff2606f422cff93 +URL: https://github.com/asterisk/asterisk/commit/34c30c8ad3725e0c4a7242278ff2606f422cff93 +Project Name: asterisk +License: GPL-2.0 +termination: FALSE +*/ +int main() +{ + unsigned char c1 = __VERIFIER_nondet_uchar(); + char c2 = __VERIFIER_nondet_char(); + unsigned char ac; + for( ac = c1 ; ac != c2 ; ac++ ) + { + //do nothing; + } + return 0; + } diff --git a/data/benchmarks/non_termination/loop/Type_Conversion_in_Comparison_2_T.c b/data/benchmarks/non_termination/loop/Type_Conversion_in_Comparison_2_T.c new file mode 100644 index 000000000..cb1e878e6 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Type_Conversion_in_Comparison_2_T.c @@ -0,0 +1,18 @@ +/* +Commit Number: 34c30c8ad3725e0c4a7242278ff2606f422cff93 +URL: https://github.com/asterisk/asterisk/commit/34c30c8ad3725e0c4a7242278ff2606f422cff93 +Project Name: asterisk +License: GPL-2.0 +termination: TRUE +*/ +int main() +{ + unsigned char c1 = __VERIFIER_nondet_uchar(); + char c2 = __VERIFIER_nondet_char(); + unsigned char ac; + for( ac = (unsigned char)c1 ; ac != (unsigned char)c2 ; ac++ ) + { + //do nothing; + } + return 0; + } diff --git a/data/benchmarks/non_termination/loop/Undefined_Behavior_1.c b/data/benchmarks/non_termination/loop/Undefined_Behavior_1.c new file mode 100644 index 000000000..24d2234ab --- /dev/null +++ b/data/benchmarks/non_termination/loop/Undefined_Behavior_1.c @@ -0,0 +1,15 @@ +/* +Commit Number: 9b0f9003dfab6a230d46aaa94091bf509d889f37 +URL: https://github.com/FFmpeg/FFmpeg/commit/9b0f9003dfab6a230d46aaa94091bf509d889f37 +Project Name: FFmpeg +License: LGPL-2.1 +termination: POTENTIAL FALSE +*/ +int main() +{ + unsigned int num = __VERIFIER_nondet_uint(); + int bytes = 1; + while( (num + 1 ) >> bytes * 7 ) + bytes++; + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Undefined_Behavior_1_T.c b/data/benchmarks/non_termination/loop/Undefined_Behavior_1_T.c new file mode 100644 index 000000000..86d4d9044 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Undefined_Behavior_1_T.c @@ -0,0 +1,17 @@ +/* +Commit Number: 9b0f9003dfab6a230d46aaa94091bf509d889f37 +URL: https://github.com/FFmpeg/FFmpeg/commit/9b0f9003dfab6a230d46aaa94091bf509d889f37 +Project Name: FFmpeg +License: LGPL-2.1 +termination: TRUE +*/ +int main() +{ + unsigned int num = __VERIFIER_nondet_uint(); + int bytes = 0; + num++; + do{ + bytes++; + }while( num >>= 7); + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Undefined_Behavior_2.c b/data/benchmarks/non_termination/loop/Undefined_Behavior_2.c new file mode 100644 index 000000000..644f1b0c1 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Undefined_Behavior_2.c @@ -0,0 +1,28 @@ +/* +Commit Number: b00a4fa78779ff0f304fa6cb34d49622679c86d4 +URL: https://github.com/anlaneg/elfutils/commit/b00a4fa78779ff0f304fa6cb34d49622679c86d4 +Project Name: elfutils +License: GPL3 +termination: POTENTIAL FALSE +*/ +int ffs( unsigned int w ) +{ + int i = 1; + while( w % 2 == 0 ) + { + i++; + w = w / 2; + } + return i; +} +int main() +{ + unsigned int w = __VERIFIER_nondet_uint(); + + while( w != 0 ) + { + int n = ffs(w); + w >>= n; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Undefined_Behavior_2_T.c b/data/benchmarks/non_termination/loop/Undefined_Behavior_2_T.c new file mode 100644 index 000000000..f0b65c971 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Undefined_Behavior_2_T.c @@ -0,0 +1,32 @@ +/* +Commit Number: b00a4fa78779ff0f304fa6cb34d49622679c86d4 +URL: https://github.com/anlaneg/elfutils/commit/b00a4fa78779ff0f304fa6cb34d49622679c86d4 +Project Name: elfutils +License: GPL3 +termination: TRUE + +*/ +unsigned int ffs( unsigned int w ) +{ + unsigned int i = 1; + while( w % 2 == 0 ) + { + i++; + w = w / 2; + } + return i; +} +int main() +{ + unsigned int w = __VERIFIER_nondet_uint(); + + while( w != 0 ) + { + unsigned int n = ffs(w); + if( n < 32 ) + w >>= n; + else + w = 0; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Undefined_Behavior_3.c b/data/benchmarks/non_termination/loop/Undefined_Behavior_3.c new file mode 100644 index 000000000..33c8de322 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Undefined_Behavior_3.c @@ -0,0 +1,16 @@ +/* +Commit Number: d597655f771979c70c08f8f8ed84c1319da121e8 +URL: https://github.com/FFmpeg/FFmpeg/commit/d597655f771979c70c08f8f8ed84c1319da121e8 +Project Name: FFmpeg +License: LGPL-2.1 +termination: POTENTIAL FALSE +*/ + +int main() +{ + unsigned int val = __VERIFIER_nondet_uint(); + int bytes = 1; + while( val >> bytes * 8 ) + bytes++; + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Undefined_Behavior_3_T.c b/data/benchmarks/non_termination/loop/Undefined_Behavior_3_T.c new file mode 100644 index 000000000..3c90f8463 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Undefined_Behavior_3_T.c @@ -0,0 +1,16 @@ +/* +Commit Number: d597655f771979c70c08f8f8ed84c1319da121e8 +URL: https://github.com/FFmpeg/FFmpeg/commit/d597655f771979c70c08f8f8ed84c1319da121e8 +Project Name: FFmpeg +License: LGPL-2.1 +termination: TRUE +*/ + +int main() +{ + unsigned int val = __VERIFIER_nondet_uint(); + int bytes = 1; + while( val >> bytes * 8 && bytes < 4 ) + bytes++; + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_1_NT.c b/data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_1_NT.c new file mode 100644 index 000000000..afed6b367 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_1_NT.c @@ -0,0 +1,28 @@ +/* + +Commit Number: 5ff623fc990210e4bb5dc04447f9e95ad83e5195 +URL: https://github.com/alsa-project/alsa-lib/commit/5ff623fc990210e4bb5dc04447f9e95ad83e5195 +Project Name: alsa-lib +License: LGPL-2.1 +termination: FALSE +*/ +int main() +{ + unsigned int best = __VERIFIER_nondet_uint(); + unsigned int pre; + unsigned int cur; + unsigned int st_max = __VERIFIER_nondet_uint(); + unsigned int it_min = __VERIFIER_nondet_uint(); + if( st_max <= it_min ) + return 0; + if( best == 0 ) + return 0; + for( cur = best ; ; cur += best ) + { + if( st_max < cur ) + break; + if( it_min > cur ) + continue; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_1_T.c b/data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_1_T.c new file mode 100644 index 000000000..48280a465 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_1_T.c @@ -0,0 +1,30 @@ +/* +Commit Number: 5ff623fc990210e4bb5dc04447f9e95ad83e5195 +URL: https://github.com/alsa-project/alsa-lib/commit/5ff623fc990210e4bb5dc04447f9e95ad83e5195 +Project Name: alsa-lib +License: LGPL-2.1 +termination: TRUE + +*/ +int main() +{ + unsigned int best = __VERIFIER_nondet_uint(); + unsigned int cur = best; + unsigned int pre; + unsigned int st_max = __VERIFIER_nondet_uint(); + unsigned int it_min = __VERIFIER_nondet_uint(); + if( st_max <= it_min ) + return 0; + if( best == 0 ) + return 0; + for( ; ; ) + { + if( st_max < cur ) + break; + pre = cur; + cur += best; + if( cur <= pre ) + break; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_2_NT.c b/data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_2_NT.c new file mode 100644 index 000000000..168ad9631 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_2_NT.c @@ -0,0 +1,19 @@ +/* + +Commit Number: 8852f5f8ff3d521897175ddeb711d6b77e03fa8a +URL: https://github.com/GNUnet-Mirror/GNUnet/commit/8852f5f8ff3d521897175ddeb711d6b77e03fa8a +Project Name: GNUnet +License: AGPL-3.0 +termination: FALSE +*/ +int main() +{ + unsigned int ui = 1; + unsigned int size = __VERIFIER_nondet_uint(); + unsigned int BUFFSIZE = __VERIFIER_nondet_uint(); + if( size < BUFFSIZE ) + size = BUFFSIZE; + while( ui < size ) + ui *= 2; + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_2_T.c b/data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_2_T.c new file mode 100644 index 000000000..d5ee0a958 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_2_T.c @@ -0,0 +1,19 @@ +/* +Commit Number: 8852f5f8ff3d521897175ddeb711d6b77e03fa8a +URL: https://github.com/GNUnet-Mirror/GNUnet/commit/8852f5f8ff3d521897175ddeb711d6b77e03fa8a +Project Name: GNUnet +License: AGPL-3.0 +termination: TRUE + +*/ +int main() +{ + unsigned int ui = 1; + unsigned int size = __VERIFIER_nondet_uint(); + unsigned int BUFFSIZE = __VERIFIER_nondet_uint(); + if( size < BUFFSIZE ) + size = BUFFSIZE; + while( (ui < size) && ( ui * 2 > ui ) ) + ui *= 2; + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_3_NT.c b/data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_3_NT.c new file mode 100644 index 000000000..7ed70e006 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_3_NT.c @@ -0,0 +1,21 @@ +/* + +Commit Number: 9d4a9ea675bcc1ca144101d058804f4fed37e65d +URL: https://github.com/osxfuse/fuse/commit/9d4a9ea675bcc1ca144101d058804f4fed37e65d +Project Name: fuse +License: GPL-2.0 +termination: FALSE +*/ +int main() +{ + unsigned int pathlen = __VERIFIER_nondet_uint(); + unsigned int newbufsize = __VERIFIER_nondet_uint(); + unsigned int len = __VERIFIER_nondet_uint(); + if( newbufsize == 0 ) + return 0; + if( newbufsize + len + 1 == 0xffffffff ) + return 0; + while( newbufsize < pathlen + len + 1 ) + newbufsize *= 2; + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_3_T.c b/data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_3_T.c new file mode 100644 index 000000000..7908583b2 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_3_T.c @@ -0,0 +1,25 @@ +/* +Commit Number: 9d4a9ea675bcc1ca144101d058804f4fed37e65d +URL: https://github.com/osxfuse/fuse/commit/9d4a9ea675bcc1ca144101d058804f4fed37e65d +Project Name: fuse +License: GPL-2.0 +termination: TRUE +*/ +int main() +{ + unsigned int pathlen = __VERIFIER_nondet_uint(); + unsigned int newbufsize = __VERIFIER_nondet_uint(); + unsigned int len = __VERIFIER_nondet_uint(); + if( newbufsize + len + 1 == 0xffffffff ) + return 0; + if( newbufsize == 0 ) + return 0; + while( newbufsize < pathlen + len + 1 ) + { + if( newbufsize >= 0x80000000 ) + newbufsize = 0xffffffff; + else + newbufsize *= 2; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_4_NT.c b/data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_4_NT.c new file mode 100644 index 000000000..c1fe721d4 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_4_NT.c @@ -0,0 +1,21 @@ +/* + +Commit Number: ce9d4462423ac74a1dbbc4ce52c2c81cfcdda766 +URL: https://github.com/ArtifexSoftware/mupdf/commit/ce9d4462423ac74a1dbbc4ce52c2c81cfcdda766 +Project Name: mupdf +License: AGPL-3.0 +termination: FALSE + +*/ +int main() +{ + unsigned int n = __VERIFIER_nondet_uint(); + while( n > 0 ) + { + unsigned int len = n; + if( len > 16 ) + len = 16; + n -= 16; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_4_T.c b/data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_4_T.c new file mode 100644 index 000000000..66d262876 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_4_T.c @@ -0,0 +1,19 @@ +/* +Commit Number: ce9d4462423ac74a1dbbc4ce52c2c81cfcdda766 +URL: https://github.com/ArtifexSoftware/mupdf/commit/ce9d4462423ac74a1dbbc4ce52c2c81cfcdda766 +Project Name: mupdf +License: AGPL-3.0 +termination: TRUE +*/ +int main() +{ + unsigned int n = __VERIFIER_nondet_uint(); + while( n > 0 ) + { + unsigned int len = n; + if( len > 16 ) + len = 16; + n -= len; + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Using_Erroneous_Condition_1_NT.c b/data/benchmarks/non_termination/loop/Using_Erroneous_Condition_1_NT.c new file mode 100644 index 000000000..5c3588362 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Using_Erroneous_Condition_1_NT.c @@ -0,0 +1,43 @@ +/* + +Commit Number: 0a8633d07e660813f630e4ab389bb4da9be8bb63 +URL: https://github.com/rkd77/elinks/commit/0a8633d07e660813f630e4ab389bb4da9be8bb63 +Project Name: elinks +License: GPL2 +termination: FALSE +*/ +typedef struct Node{ + int size; + int selected; +}Node; + + + +int main() +{ + Node* menu =(Node*)malloc(sizeof(Node)); + menu->selected = __VERIFIER_nondet_int(); + menu->size = __VERIFIER_nondet_int(); + if( menu->selected < -2 || menu->size < 1 ) + return 0; + int pos = menu->selected; + int direction; + int action_id = __VERIFIER_nondet_int(); + if( action_id > 0 ) + { + pos--; + direction = -1; + } + else + { + pos++; + direction = 1; + } + pos %= menu->size; + do{ + pos += direction; + if( pos == menu->size ) pos = 0; + else if( pos < 0 ) pos = menu -> size - 1; + }while( pos != menu->selected ); + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Using_Erroneous_Condition_1_T.c b/data/benchmarks/non_termination/loop/Using_Erroneous_Condition_1_T.c new file mode 100644 index 000000000..bc7a8860e --- /dev/null +++ b/data/benchmarks/non_termination/loop/Using_Erroneous_Condition_1_T.c @@ -0,0 +1,43 @@ +/* +Commit Number: 0a8633d07e660813f630e4ab389bb4da9be8bb63 +URL: https://github.com/rkd77/elinks/commit/0a8633d07e660813f630e4ab389bb4da9be8bb63 +Project Name: elinks +License: GPL2 +termination: TRUE +*/ +typedef struct Node{ + int size; + int selected; +}Node; + + + +int main() +{ + Node* menu =(Node*)malloc(sizeof(Node)); + menu->selected = __VERIFIER_nondet_int(); + menu->size = __VERIFIER_nondet_int(); + if( menu->selected <= -2 || menu->size < 1 ) + return 0; + int pos = menu->selected; + int direction; + int action_id = __VERIFIER_nondet_int(); + if( action_id > 0 && pos >= 1 ) + { + pos--; + direction = -1; + } + else + { + pos++; + direction = 1; + } + pos %= menu->size; + int start = pos; + do{ + pos += direction; + if( pos == menu->size ) pos = 0; + else if( pos < 0 ) pos = menu -> size - 1; + }while( pos != start ); + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Using_Erroneous_Condition_2_NT.c b/data/benchmarks/non_termination/loop/Using_Erroneous_Condition_2_NT.c new file mode 100644 index 000000000..26b376b75 --- /dev/null +++ b/data/benchmarks/non_termination/loop/Using_Erroneous_Condition_2_NT.c @@ -0,0 +1,19 @@ +/* + +Commit Number: 8455d26243aef72f7b827ec0d8367b6b7816de07 +URL: https://github.com/bminor/binutils-gdb/commit/8455d26243aef72f7b827ec0d8367b6b7816de07 +Project Name: binutils-gdb +License: GPL2 +termination: FALSE +*/ +int main() +{ + int reg_count = __VERIFIER_nondet_int(); + if( reg_count > 65534) + return 0; + for( int i = 0 ; reg_count ; i++ ) + { + //loop + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Using_Erroneous_Condition_2_T.c b/data/benchmarks/non_termination/loop/Using_Erroneous_Condition_2_T.c new file mode 100644 index 000000000..7843f09cc --- /dev/null +++ b/data/benchmarks/non_termination/loop/Using_Erroneous_Condition_2_T.c @@ -0,0 +1,18 @@ +/* +Commit Number: 8455d26243aef72f7b827ec0d8367b6b7816de07 +URL: https://github.com/bminor/binutils-gdb/commit/8455d26243aef72f7b827ec0d8367b6b7816de07 +Project Name: binutils-gdb +License: GPL2 +termination: TRUE +*/ +int main() +{ + int reg_count = __VERIFIER_nondet_int(); + if( reg_count > 65534) + return 0; + for( int i = 0 ; i < reg_count ; i++ ) + { + //loop + } + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Using_Erroneous_Condition_3_NT.c b/data/benchmarks/non_termination/loop/Using_Erroneous_Condition_3_NT.c new file mode 100644 index 000000000..8babc3c4f --- /dev/null +++ b/data/benchmarks/non_termination/loop/Using_Erroneous_Condition_3_NT.c @@ -0,0 +1,34 @@ +/* +Commit Number: 358a11a928cdca474c82472a2ca0d619426439f1 +URL: https://github.com/brltty/brltty/commit/358a11a928cdca474c82472a2ca0d619426439f1 +Project Name: brltty +License: LGPL-2.1 +termination: FALSE +*/ +int main() +{ + int i = 0; + int base = __VERIFIER_nondet_int(); + int count = __VERIFIER_nondet_int(); + int old_[10], new_[10]; + for( int j = 0 ; j < 9 ; j++ ) + { + old_[j] = __VERIFIER_nondet_int(); + new_[j] = __VERIFIER_nondet_int(); + } + old_[9] = 0; + new_[9] = 0; + while(1) + { + int number = base; + while( old_[i] != new_[i] ) + { + if( ++number == count ) + goto done; + } + i++; + base += 8; + } +done: + return 0; +} diff --git a/data/benchmarks/non_termination/loop/Using_Erroneous_Condition_3_T.c b/data/benchmarks/non_termination/loop/Using_Erroneous_Condition_3_T.c new file mode 100644 index 000000000..b3e49df2f --- /dev/null +++ b/data/benchmarks/non_termination/loop/Using_Erroneous_Condition_3_T.c @@ -0,0 +1,33 @@ +/* +Commit Number: 358a11a928cdca474c82472a2ca0d619426439f1 +URL: https://github.com/brltty/brltty/commit/358a11a928cdca474c82472a2ca0d619426439f1 +Project Name: brltty +License: LGPL-2.1 +termination: TRUE +*/ +int main() +{ + int i = 0; + int base = __VERIFIER_nondet_int(); + int count = __VERIFIER_nondet_int(); + int old_[10], new_[10]; + for( int j = 0 ; j < 9 ; j++ ) + { + old_[j] = __VERIFIER_nondet_int(); + new_[j] = __VERIFIER_nondet_int(); + } + old_[9] = 0; + new_[9] = 0; + while( base < count ) + { + int number = base; + while( old_[i] != new_[i] ) + { + if( ++number == count ) + break; + } + i++; + base += 8; + } + return 0; +} diff --git a/data/benchmarks/non_termination/recursion/Incorrect_Arguments_1_NT.c b/data/benchmarks/non_termination/recursion/Incorrect_Arguments_1_NT.c new file mode 100644 index 000000000..d659128e7 --- /dev/null +++ b/data/benchmarks/non_termination/recursion/Incorrect_Arguments_1_NT.c @@ -0,0 +1,51 @@ +/* +Commit Number: 084a7f4a5a5c859ab24e727ef92f9b2ed8611acf +URL: https://github.com/tieto/pidgin/commit/084a7f4a5a5c859ab24e727ef92f9b2ed8611acf +Project Name: pidgin +License: GPL-2.0 +termination: FALSE +*/ +#include +typedef struct gaim_xfer{ + int watcher; + int fd; + int bytes_remaining; +}gaim_xfer; +void gaim_xfer_destroy(struct gaim_xfer *xfer); + +void gaim_xfer_cancel(struct gaim_xfer *xfer) +{ + if (xfer == 0) + return; + if (xfer->watcher != 0) { + xfer->watcher = 0; + } + if (xfer->fd != 0) + xfer->fd = 0; + /* Delete the transfer. */ + gaim_xfer_destroy(xfer); +} + +void gaim_xfer_destroy(struct gaim_xfer *xfer) +{ + + if (xfer == 0) + return; + + if (xfer->bytes_remaining > 0) { + gaim_xfer_cancel(xfer); + return; + } + free(xfer); +} + +int main() +{ + struct gaim_xfer a1; + struct gaim_xfer* a = &a1; + a->bytes_remaining = __VERIFIER_nondet_int(); + a->fd = __VERIFIER_nondet_int(); + a->watcher = __VERIFIER_nondet_int(); + gaim_xfer_cancel(a); + return 0; +} diff --git a/data/benchmarks/non_termination/recursion/Incorrect_Arguments_1_T.c b/data/benchmarks/non_termination/recursion/Incorrect_Arguments_1_T.c new file mode 100644 index 000000000..531058b7a --- /dev/null +++ b/data/benchmarks/non_termination/recursion/Incorrect_Arguments_1_T.c @@ -0,0 +1,52 @@ +/* +Commit Number: 084a7f4a5a5c859ab24e727ef92f9b2ed8611acf +URL: https://github.com/tieto/pidgin/commit/084a7f4a5a5c859ab24e727ef92f9b2ed8611acf +Project Name: pidgin +License: GPL-2.0 +termination: TRUE +*/ +#include +typedef struct gaim_xfer{ + int watcher; + int fd; + int bytes_remaining; +}gaim_xfer; +void gaim_xfer_destroy(struct gaim_xfer *xfer); + +void gaim_xfer_cancel(struct gaim_xfer *xfer) +{ + if (xfer == 0) + return; + if (xfer->watcher != 0) { + xfer->watcher = 0; + } + if (xfer->fd != 0) + xfer->fd = 0; + xfer->bytes_remaining = 0; + /* Delete the transfer. */ + gaim_xfer_destroy(xfer); +} + +void gaim_xfer_destroy(struct gaim_xfer *xfer) +{ + + if (xfer == 0) + return; + + if (xfer->bytes_remaining > 0) { + gaim_xfer_cancel(xfer); + return; + } + free(xfer); +} + +int main() +{ + struct gaim_xfer a1; + struct gaim_xfer* a = &a1; + a->bytes_remaining = __VERIFIER_nondet_int(); + a->fd = __VERIFIER_nondet_int(); + a->watcher = __VERIFIER_nondet_int(); + gaim_xfer_cancel(a); + return 0; +} diff --git a/data/benchmarks/non_termination/recursion/Incorrect_Cyclic_Invoking_1_NT.c b/data/benchmarks/non_termination/recursion/Incorrect_Cyclic_Invoking_1_NT.c new file mode 100644 index 000000000..b9b76939d --- /dev/null +++ b/data/benchmarks/non_termination/recursion/Incorrect_Cyclic_Invoking_1_NT.c @@ -0,0 +1,52 @@ +/* +Commit Number: f569599ae70f0899035f8d5876a7939f629c5976 +URL: https://github.com/torvalds/linux/commit/f569599ae70f0899035f8d5876a7939f629c5976 +Project Name: linux +License: GPL-2.0 +termination: FALSE +*/ +struct cifsTconInfo{ + int ses; +}cifsTconInfo; +static int cifs_reconnect_tcon(struct cifsTconInfo *tcon, int smb_command); +//1->4 +static int smb_init( int smb_command, struct cifsTconInfo *tcon) +{ + int rc = 0; + rc = cifs_reconnect_tcon(tcon, smb_command); + return rc; +} +//2->1 +int CIFSSMBQFSUnixInfo(const int xid, struct cifsTconInfo *tcon) +{ + int rc = 0; + rc = smb_init(15, tcon); + return rc; +} +//3->2 +void reset_cifs_unix_caps(int xid, struct cifsTconInfo *tcon) +{ + if (!CIFSSMBQFSUnixInfo(xid, tcon)) + { + //do something + } +} +//4->3 +static int cifs_reconnect_tcon(struct cifsTconInfo *tcon, int smb_command) +{ + if( !tcon ) + return 0; + int ses = tcon->ses; + if( ses ) + reset_cifs_unix_caps(0, tcon); + return 1; +} +int main() +{ + struct cifsTconInfo t1; + struct cifsTconInfo* tcon = &t1; + tcon->ses = __VERIFIER_nondet_int(); + int smb_command = __VERIFIER_nondet_int(); + int rc = smb_init(smb_command,tcon); + return 0; +} diff --git a/data/benchmarks/non_termination/recursion/Incorrect_Cyclic_Invoking_1_T.c b/data/benchmarks/non_termination/recursion/Incorrect_Cyclic_Invoking_1_T.c new file mode 100644 index 000000000..d761c51e3 --- /dev/null +++ b/data/benchmarks/non_termination/recursion/Incorrect_Cyclic_Invoking_1_T.c @@ -0,0 +1,68 @@ +/* +Commit Number: f569599ae70f0899035f8d5876a7939f629c5976 +URL: https://github.com/torvalds/linux/commit/f569599ae70f0899035f8d5876a7939f629c5976 +Project Name: linux +License: GPL-2.0 +termination: TRUE +*/ +struct cifsTconInfo{ + int ses; +}cifsTconInfo; +static int cifs_reconnect_tcon(struct cifsTconInfo *tcon, int smb_command); +//1 +static int __smb_init( int smb_command, struct cifsTconInfo *tcon) +{ + int rc = 0; + return rc; +} +//2-> 6&1 +static int smb_init(int smb_command, struct cifsTconInfo *tcon) +{ + int rc; + + rc = cifs_reconnect_tcon(tcon, smb_command); + if (rc) + return rc; + + return __smb_init(smb_command, tcon); +} +//3->1 +static int smb_init_no_reconnect(int smb_command, struct cifsTconInfo *tcon) +{ + return __smb_init(smb_command, tcon); +} + +//4->3 +int CIFSSMBQFSUnixInfo(const int xid, struct cifsTconInfo *tcon) +{ + int rc = 0; + rc = smb_init_no_reconnect(15, tcon); + return rc; +} +//5->4 +void reset_cifs_unix_caps(int xid, struct cifsTconInfo *tcon) +{ + if (!CIFSSMBQFSUnixInfo(xid, tcon)) + { + //do something + } +} +//6->5 +static int cifs_reconnect_tcon(struct cifsTconInfo *tcon, int smb_command) +{ + if( !tcon ) + return 0; + int ses = tcon->ses; + if( ses ) + reset_cifs_unix_caps(0, tcon); + return ses = tcon->ses; +} +int main() +{ + struct cifsTconInfo t1; + struct cifsTconInfo* tcon = &t1; + tcon->ses = __VERIFIER_nondet_int(); + int smb_command = __VERIFIER_nondet_int(); + int rc = smb_init(smb_command,tcon); + return 0; +} diff --git a/data/benchmarks/non_termination/recursion/Incorrect_Cyclic_Invoking_2_NT.c b/data/benchmarks/non_termination/recursion/Incorrect_Cyclic_Invoking_2_NT.c new file mode 100644 index 000000000..aab8decce --- /dev/null +++ b/data/benchmarks/non_termination/recursion/Incorrect_Cyclic_Invoking_2_NT.c @@ -0,0 +1,120 @@ +/* +Commit Number: e1556ad5b8143a15c26067c3862fe20631c0053f +URL: https://github.com/qemu/qemu/commit/e1556ad5b8143a15c26067c3862fe20631c0053f +Project Name: qemu +License: GPL-2.0 +termination: FALSE +*/ +struct omap2_gpio_s { + unsigned int revision; + unsigned int config; + unsigned int ints; + unsigned int mask; + unsigned int wumask; + unsigned int dir; + unsigned int inputs; + unsigned int outputs; + unsigned int level; + unsigned int edge; + unsigned int debounce; + unsigned int delay; +}omap2_gpio_s; + +static unsigned int omap2_gpio_module_read(void *opaque, unsigned int addr) +{ + struct omap2_gpio_s *s = (struct omap2_gpio_s *) opaque; + + switch (addr) { + case 0x00: /* GPIO_REVISION */ + return s->revision; + + case 0x10: /* GPIO_SYSCONFIG */ + return s->config; + + case 0x14: /* GPIO_SYSSTATUS */ + return 0x01; + + case 0x18: /* GPIO_IRQSTATUS1 */ + return s->ints; + + case 0x1c: /* GPIO_IRQENABLE1 */ + case 0x60: /* GPIO_CLEARIRQENABLE1 */ + case 0x64: /* GPIO_SETIRQENABLE1 */ + return s->mask; + + case 0x20: /* GPIO_WAKEUPENABLE */ + case 0x80: /* GPIO_CLEARWKUENA */ + case 0x84: /* GPIO_SETWKUENA */ + return s->wumask; + + case 0x28: /* GPIO_IRQSTATUS2 */ + return s->ints; + + case 0x2c: /* GPIO_IRQENABLE2 */ + case 0x70: /* GPIO_CLEARIRQENABLE2 */ + case 0x74: /* GPIO_SETIREQNEABLE2 */ + return s->mask; + + case 0x30: /* GPIO_CTRL */ + return s->config; + + case 0x34: /* GPIO_OE */ + return s->dir; + + case 0x38: /* GPIO_DATAIN */ + return s->inputs; + + case 0x3c: /* GPIO_DATAOUT */ + case 0x90: /* GPIO_CLEARDATAOUT */ + case 0x94: /* GPIO_SETDATAOUT */ + return s->outputs; + + case 0x40: /* GPIO_LEVELDETECT0 */ + return s->level; + + case 0x44: /* GPIO_LEVELDETECT1 */ + return s->level; + + case 0x48: /* GPIO_RISINGDETECT */ + return s->edge; + + case 0x4c: /* GPIO_FALLINGDETECT */ + return s->edge; + + case 0x50: /* GPIO_DEBOUNCENABLE */ + return s->debounce; + + case 0x54: /* GPIO_DEBOUNCINGTIME */ + return s->delay; + } + + return 0; +} + +static unsigned int omap2_gpio_module_readp(void *opaque, unsigned int addr) +{ + return omap2_gpio_module_readp(opaque, addr) >> ((addr & 3) << 3); +} + + +int main() +{ + + unsigned int addr = __VERIFIER_nondet_uint(); + struct omap2_gpio_s omap2; + ompa2.revision = __VERIFIER_nondet_uint(); + ompa2.config = __VERIFIER_nondet_uint(); + ompa2.ints = __VERIFIER_nondet_uint(); + ompa2.mask = __VERIFIER_nondet_uint(); + ompa2.wumask = __VERIFIER_nondet_uint(); + ompa2.dir = __VERIFIER_nondet_uint(); + ompa2.inputs = __VERIFIER_nondet_uint(); + ompa2.outputs = __VERIFIER_nondet_uint(); + ompa2.level = __VERIFIER_nondet_uint(); + ompa2.edge = __VERIFIER_nondet_uint(); + ompa2.debounce = __VERIFIER_nondet_uint(); + ompa2.delay = __VERIFIER_nondet_uint(); + void* opaque = &omap2; + unsigned int rc = omap2_gpio_module_readp( opaque, addr ); + return 0; +} diff --git a/data/benchmarks/non_termination/recursion/Incorrect_Cyclic_Invoking_2_T.c b/data/benchmarks/non_termination/recursion/Incorrect_Cyclic_Invoking_2_T.c new file mode 100644 index 000000000..2b05c7542 --- /dev/null +++ b/data/benchmarks/non_termination/recursion/Incorrect_Cyclic_Invoking_2_T.c @@ -0,0 +1,120 @@ +/* +Commit Number: e1556ad5b8143a15c26067c3862fe20631c0053f +URL: https://github.com/qemu/qemu/commit/e1556ad5b8143a15c26067c3862fe20631c0053f +Project Name: qemu +License: GPL-2.0 +termination: TRUE +*/ +struct omap2_gpio_s { + unsigned int revision; + unsigned int config; + unsigned int ints; + unsigned int mask; + unsigned int wumask; + unsigned int dir; + unsigned int inputs; + unsigned int outputs; + unsigned int level; + unsigned int edge; + unsigned int debounce; + unsigned int delay; +}omap2_gpio_s; + +static unsigned int omap2_gpio_module_read(void *opaque, unsigned int addr) +{ + struct omap2_gpio_s *s = (struct omap2_gpio_s *) opaque; + + switch (addr) { + case 0x00: /* GPIO_REVISION */ + return s->revision; + + case 0x10: /* GPIO_SYSCONFIG */ + return s->config; + + case 0x14: /* GPIO_SYSSTATUS */ + return 0x01; + + case 0x18: /* GPIO_IRQSTATUS1 */ + return s->ints; + + case 0x1c: /* GPIO_IRQENABLE1 */ + case 0x60: /* GPIO_CLEARIRQENABLE1 */ + case 0x64: /* GPIO_SETIRQENABLE1 */ + return s->mask; + + case 0x20: /* GPIO_WAKEUPENABLE */ + case 0x80: /* GPIO_CLEARWKUENA */ + case 0x84: /* GPIO_SETWKUENA */ + return s->wumask; + + case 0x28: /* GPIO_IRQSTATUS2 */ + return s->ints; + + case 0x2c: /* GPIO_IRQENABLE2 */ + case 0x70: /* GPIO_CLEARIRQENABLE2 */ + case 0x74: /* GPIO_SETIREQNEABLE2 */ + return s->mask; + + case 0x30: /* GPIO_CTRL */ + return s->config; + + case 0x34: /* GPIO_OE */ + return s->dir; + + case 0x38: /* GPIO_DATAIN */ + return s->inputs; + + case 0x3c: /* GPIO_DATAOUT */ + case 0x90: /* GPIO_CLEARDATAOUT */ + case 0x94: /* GPIO_SETDATAOUT */ + return s->outputs; + + case 0x40: /* GPIO_LEVELDETECT0 */ + return s->level; + + case 0x44: /* GPIO_LEVELDETECT1 */ + return s->level; + + case 0x48: /* GPIO_RISINGDETECT */ + return s->edge; + + case 0x4c: /* GPIO_FALLINGDETECT */ + return s->edge; + + case 0x50: /* GPIO_DEBOUNCENABLE */ + return s->debounce; + + case 0x54: /* GPIO_DEBOUNCINGTIME */ + return s->delay; + } + + return 0; +} + +static unsigned int omap2_gpio_module_readp(void *opaque, unsigned int addr) +{ + return omap2_gpio_module_read(opaque, addr & ~3) >> ((addr & 3) << 3); +} + + +int main() +{ + + unsigned int addr = __VERIFIER_nondet_uint(); + struct omap2_gpio_s omap2; + ompa2.revision = __VERIFIER_nondet_uint(); + ompa2.config = __VERIFIER_nondet_uint(); + ompa2.ints = __VERIFIER_nondet_uint(); + ompa2.mask = __VERIFIER_nondet_uint(); + ompa2.wumask = __VERIFIER_nondet_uint(); + ompa2.dir = __VERIFIER_nondet_uint(); + ompa2.inputs = __VERIFIER_nondet_uint(); + ompa2.outputs = __VERIFIER_nondet_uint(); + ompa2.level = __VERIFIER_nondet_uint(); + ompa2.edge = __VERIFIER_nondet_uint(); + ompa2.debounce = __VERIFIER_nondet_uint(); + ompa2.delay = __VERIFIER_nondet_uint(); + void* opaque = &omap2; + unsigned int rc = omap2_gpio_module_readp( opaque, addr ); + return 0; +} diff --git a/data/benchmarks/non_termination/recursion/Incorrect_Cyclic_Invoking_3_NT.cpp b/data/benchmarks/non_termination/recursion/Incorrect_Cyclic_Invoking_3_NT.cpp new file mode 100644 index 000000000..75915e0ea --- /dev/null +++ b/data/benchmarks/non_termination/recursion/Incorrect_Cyclic_Invoking_3_NT.cpp @@ -0,0 +1,45 @@ +/* +Commit Number: bcdd0fdf80f57545452eb43fee33903fd3849e53 +URL: https://github.com/KDE/akonadi/commit/bcdd0fdf80f57545452eb43fee33903fd3849e53 +Project Name: akonadi +License: GPL-3.0 +termination: FALSE +*/ +class QModelIndex{ + bool vd; + int clm; +public: + QModelIndex(bool vld, int clmn):vd(vld), clm(clmn){} + bool isValid(){ + return vd; + } + int column(){ + return clm; + } +}; + +class EntityTreeModel{ +public: + int getColumnCount(); + int columnCount(); + QModelIndex parent; + EntityTreeModel(QModelIndex QL): parent(QL){} +}; + + +int EntityTreeModel::getColumnCount(){ + return columnCount(); +} + +int EntityTreeModel::columnCount(){ + if (parent.isValid() && parent.column() != 0 ) + return 0; + return getColumnCount(); +} +int main(){ + QModelIndex QL(true, 0); + EntityTreeModel E1(QL); + E1.getColumnCount(); + return 0; + +} diff --git a/data/benchmarks/non_termination/recursion/Incorrect_Cyclic_Invoking_3_T.cpp b/data/benchmarks/non_termination/recursion/Incorrect_Cyclic_Invoking_3_T.cpp new file mode 100644 index 000000000..3a9d054f6 --- /dev/null +++ b/data/benchmarks/non_termination/recursion/Incorrect_Cyclic_Invoking_3_T.cpp @@ -0,0 +1,45 @@ +/* +Commit Number: bcdd0fdf80f57545452eb43fee33903fd3849e53 +URL: https://github.com/KDE/akonadi/commit/bcdd0fdf80f57545452eb43fee33903fd3849e53 +Project Name: akonadi +License: GPL-3.0 +termination: TRUE +*/ +class QModelIndex{ + bool vd; + int clm; +public: + QModelIndex(bool vld, int clmn):vd(vld), clm(clmn){} + bool isValid(){ + return vd; + } + int column(){ + return clm; + } +}; + +class EntityTreeModel{ +public: + int getColumnCount(); + int columnCount(); + QModelIndex parent; + EntityTreeModel(QModelIndex QL): parent(QL){} +}; + + +int EntityTreeModel::getColumnCount(){ + return 1; +} + +int EntityTreeModel::columnCount(){ + if (parent.isValid() && parent.column() != 0 ) + return 0; + return getColumnCount(); +} +int main(){ + QModelIndex QL(true, 0); + EntityTreeModel E1(QL); + E1.getColumnCount(); + return 1; + +} diff --git a/data/benchmarks/non_termination/recursion/Incorrect_Return_1_NT.c b/data/benchmarks/non_termination/recursion/Incorrect_Return_1_NT.c new file mode 100644 index 000000000..11bb01183 --- /dev/null +++ b/data/benchmarks/non_termination/recursion/Incorrect_Return_1_NT.c @@ -0,0 +1,107 @@ +/* +Commit Number: ec79a06d084e7f7508fcfad583258163d8066e7b +URL: https://github.com/freeciv/freeciv/commit/ec79a06d084e7f7508fcfad583258163d8066e7b +Project Name: freeciv +License: GPL-2.0 +termination: FALSE +*/ +#define A_NONE 0 +#define NULL 0 +#define A_FIRST 1 +#define MAX_NUM_ADVANCES 10 +#define A_LAST (MAX_NUM_ADVANCES + 1) /* Used in the network protocol. */ +#define A_FUTURE (A_LAST + 1) +#define A_ARRAY_SIZE (A_FUTURE + 1) +#define A_UNSET (A_LAST + 2) +#define A_UNKNOWN (A_LAST + 3) + +#define A_NEVER (NULL) +typedef int Tech_type_id; +enum tech_req { + AR_ONE = 0, + AR_TWO = 1, + AR_ROOT = 2, + AR_SIZE +}; +struct advance{ + Tech_type_id item_number; + struct advance *require[AR_SIZE]; +}; +struct advance advances[10]; + + +//6 +Tech_type_id advance_number(const struct advance *padvance) +{ + return padvance->item_number; +} +//5 ->6 +Tech_type_id advance_required(const Tech_type_id tech, enum tech_req require) +{ + + if (A_NEVER == advances[tech].require[require]) { + /* out of range */ + return A_LAST; + } + return advance_number(advances[tech].require[require]); +} + +//4 +struct advance *valid_advance(struct advance *padvance) +{ + if (NULL == padvance) { + return NULL; + } + return padvance; +} + +// 3 +struct advance *advance_by_number(const Tech_type_id atype) +{ + if (atype != A_FUTURE && atype < 0 ) { + /* This isn't an error; some callers depend on it. */ + return NULL; + } + + return &advances[atype]; +} +// 2->3, 4 +struct advance *valid_advance_by_number(const Tech_type_id id) +{ + return valid_advance(advance_by_number(id)); +} +// 1->2 ->5 +int player_invention_reachable(const Tech_type_id tech, int allow_prereqs) +{ + Tech_type_id root; + if (!valid_advance_by_number(tech)) { + return 0; + } + root = advance_required(tech, AR_ROOT); + if (A_NONE != root) { + if (allow_prereqs) { + return player_invention_reachable(root, 1); + } + return 0; + } + return 1; +} + +int main() +{ + for( int i = 0 ; i <10 ; i++) + { + advances[i].item_number = 4; + for( int j = 0 ; j < 3 ; j++ ) + { + struct advance req; + req.item_number = 1; + advances[i].require[j] = &req; + } + } + int tech = __VERIFIER_nondet_int(); + tech = tech % 8; + int allow_prereqs = __VERIFIER_nondet_int(); + int ok = player_invention_reachable(tech,allow_prereqs); + return 0; +} diff --git a/data/benchmarks/non_termination/recursion/Incorrect_Return_1_T.c b/data/benchmarks/non_termination/recursion/Incorrect_Return_1_T.c new file mode 100644 index 000000000..db6466a6e --- /dev/null +++ b/data/benchmarks/non_termination/recursion/Incorrect_Return_1_T.c @@ -0,0 +1,109 @@ +/* +Commit Number: ec79a06d084e7f7508fcfad583258163d8066e7b +URL: https://github.com/freeciv/freeciv/commit/ec79a06d084e7f7508fcfad583258163d8066e7b +Project Name: freeciv +License: GPL-2.0 +termination: TRUE +*/ +#define A_NONE 0 +#define NULL 0 +#define A_FIRST 1 +#define MAX_NUM_ADVANCES 10 +#define A_LAST (MAX_NUM_ADVANCES + 1) /* Used in the network protocol. */ +#define A_FUTURE (A_LAST + 1) +#define A_ARRAY_SIZE (A_FUTURE + 1) +#define A_UNSET (A_LAST + 2) +#define A_UNKNOWN (A_LAST + 3) + +#define A_NEVER (NULL) +typedef int Tech_type_id; +enum tech_req { + AR_ONE = 0, + AR_TWO = 1, + AR_ROOT = 2, + AR_SIZE +}; +struct advance{ + Tech_type_id item_number; + struct advance *require[AR_SIZE]; +}; +struct advance advances[10]; + + +//6 +Tech_type_id advance_number(const struct advance *padvance) +{ + return padvance->item_number; +} +//5 ->6 +Tech_type_id advance_required(const Tech_type_id tech, enum tech_req require) +{ + + if (A_NEVER == advances[tech].require[require]) { + /* out of range */ + return A_LAST; + } + return advance_number(advances[tech].require[require]); +} + +//4 +struct advance *valid_advance(struct advance *padvance) +{ + if (NULL == padvance) { + return NULL; + } + return padvance; +} + +// 3 +struct advance *advance_by_number(const Tech_type_id atype) +{ + if (atype != A_FUTURE && atype < 0 ) { + /* This isn't an error; some callers depend on it. */ + return NULL; + } + + return &advances[atype]; +} +// 2->3, 4 +struct advance *valid_advance_by_number(const Tech_type_id id) +{ + return valid_advance(advance_by_number(id)); +} +// 1->2 ->5 +int player_invention_reachable(const Tech_type_id tech, int allow_prereqs) +{ + Tech_type_id root; + if (!valid_advance_by_number(tech)) { + return 0; + } + root = advance_required(tech, AR_ROOT); + if (A_NONE != root) { + if(root == tech) + return 0; + else if (allow_prereqs) { + return player_invention_reachable(root, 1); + } + return 0; + } + return 1; +} + +int main() +{ + for( int i = 0 ; i <10 ; i++) + { + advances[i].item_number = 4; + for( int j = 0 ; j < 3 ; j++ ) + { + struct advance req; + req.item_number = 1; + advances[i].require[j] = &req; + } + } + int tech = __VERIFIER_nondet_int(); + tech = tech % 8; + int allow_prereqs = __VERIFIER_nondet_int(); + int ok = player_invention_reachable(tech,allow_prereqs); + return 0; +} diff --git a/data/benchmarks/non_termination/recursion/Incorrect_Return_2_NT.cpp b/data/benchmarks/non_termination/recursion/Incorrect_Return_2_NT.cpp new file mode 100644 index 000000000..096048fd7 --- /dev/null +++ b/data/benchmarks/non_termination/recursion/Incorrect_Return_2_NT.cpp @@ -0,0 +1,32 @@ +/* +Commit Number: 7800003a8fd28c386fcefa652376bbe7e5aa0ddb +URL: https://github.com/ArtifexSoftware/mupdf/commit/7800003a8fd28c386fcefa652376bbe7e5aa0ddb +Project Name: mupdf +License: AGPL-3.0 +termination: FALSE +*/ +#include "string.h" +void loadpagetree(char* obj, char* kobj) { + char* type = obj; + int kids = strlen(obj); + if (strcmp(type, "Page") == 0) { + }else if(strcmp(type, "Pages") == 0){ + for(int i =0; i < kids; i++){ + loadpagetree(obj, kobj); + } +} + return; +} +int main(){ + char obj[5]; + char kobj[5]; + for(int i=0; i<4; i++){ + obj[i] = __VERIFIER_nondet_char(); + kobj[i] = __VERIFIER_nondet_char(); + } + obj[4] = '\0'; + kobj[4] = '\0'; + + loadpagetree(obj, kobj); + return 0; +} diff --git a/data/benchmarks/non_termination/recursion/Incorrect_Return_2_T.cpp b/data/benchmarks/non_termination/recursion/Incorrect_Return_2_T.cpp new file mode 100644 index 000000000..967690c4e --- /dev/null +++ b/data/benchmarks/non_termination/recursion/Incorrect_Return_2_T.cpp @@ -0,0 +1,35 @@ +/* +Commit Number: 7800003a8fd28c386fcefa652376bbe7e5aa0ddb +URL: https://github.com/ArtifexSoftware/mupdf/commit/7800003a8fd28c386fcefa652376bbe7e5aa0ddb +Project Name: mupdf +License: AGPL-3.0 +termination: TRUE +*/ +#include "string.h" +void loadpagetree(char* obj, char* kobj) { + char* type = obj; + int kids = strlen(obj); + if (strcmp(type, "Page") == 0) { + }else if(strcmp(type, "Pages") == 0){ + for(int i =0; i < kids; i++){ + if (kobj == obj) + { + /* prevent infinite recursion possible in maliciously crafted PDFs */ + return; + } + loadpagetree(obj, kobj); + } +} + return; +} +int main(){ + char obj[5]; + char kobj[5]; + for(int i=0; i<4; i++){ + obj[i] = __VERIFIER_nondet_char(); + kobj[i] = __VERIFIER_nondet_char(); + } + obj[4] = '\0'; + kobj[4] = '\0'; + return 0; +} diff --git a/data/benchmarks/non_termination/recursion/Miscalling_Inherited_Method_1_NT.cpp b/data/benchmarks/non_termination/recursion/Miscalling_Inherited_Method_1_NT.cpp new file mode 100644 index 000000000..9740cd006 --- /dev/null +++ b/data/benchmarks/non_termination/recursion/Miscalling_Inherited_Method_1_NT.cpp @@ -0,0 +1,31 @@ +/* +Commit Number: 4bfeeb3fa185dfb445a0475c13fc690f6b90b821 +URL: https://github.com/htcondor/htcondor/commit/4bfeeb3fa185dfb445a0475c13fc690f6b90b821 +Project Name: htcondor +License: Apache-2.0 +termination: FALSE +*/ +class ClassAdLog{ + public: + int LookupInTransaction(); +}; +int ClassAdLog::LookupInTransaction() +{ + return 0; +} + +class ClassAdCollection : private ClassAdLog { + public: + int LookupInTransaction() + { + return LookupInTransaction(); + } + +}; + +int main() +{ + ClassAdCollection A; + int c = A.LookupInTransaction(); + return 0; +} diff --git a/data/benchmarks/non_termination/recursion/Miscalling_Inherited_Method_1_T.cpp b/data/benchmarks/non_termination/recursion/Miscalling_Inherited_Method_1_T.cpp new file mode 100644 index 000000000..bb857887f --- /dev/null +++ b/data/benchmarks/non_termination/recursion/Miscalling_Inherited_Method_1_T.cpp @@ -0,0 +1,31 @@ +/* +Commit Number: 4bfeeb3fa185dfb445a0475c13fc690f6b90b821 +URL: https://github.com/htcondor/htcondor/commit/4bfeeb3fa185dfb445a0475c13fc690f6b90b821 +Project Name: htcondor +License: Apache-2.0 +termination: TRUE +*/ +class ClassAdLog{ + public: + int LookupInTransaction(); +}; +int ClassAdLog::LookupInTransaction() +{ + return 0; +} + +class ClassAdCollection : private ClassAdLog { + public: + int LookupInTransaction() + { + return ClassAdLog::LookupInTransaction(); + } + +}; + +int main() +{ + ClassAdCollection A; + int c = A.LookupInTransaction(); + return 0; +} diff --git a/data/benchmarks/non_termination/recursion/Missing_undef_Instruction_1_NT.c b/data/benchmarks/non_termination/recursion/Missing_undef_Instruction_1_NT.c new file mode 100644 index 000000000..79522175d --- /dev/null +++ b/data/benchmarks/non_termination/recursion/Missing_undef_Instruction_1_NT.c @@ -0,0 +1,33 @@ +/* +Commit Number: b546212a16a6ac3e9f40f332644345ceec96a0e7 +URL: https://github.com/mysql/mysql-server/commit/b546212a16a6ac3e9f40f332644345ceec96a0e7 +Project Name: mysql-server +License: GPL-2.0 +termination: FALSE +*/ +#define pthread_mutex_t int + +int pthread_mutex_trylock( pthread_mutex_t* mutex) +{ + //return __VERIFIER_nondet_int(); + return 0; +} + +#define pthread_mutex_trylock my_pthread_mutex_trylock + +int my_pthread_mutex_trylock(pthread_mutex_t *mutex) +{ + int error=pthread_mutex_trylock(mutex); + if (error == 1) /* Safety if the lib is fixed */ + return 0; /* Mutex was locked */ + return error; +}; + + +int main() +{ + pthread_mutex_t mutex1 = 2; + pthread_mutex_t* mutex = &mutex1; + int rc = my_pthread_mutex_trylock(mutex); + return 0; +} diff --git a/data/benchmarks/non_termination/recursion/Missing_undef_Instruction_1_T.c b/data/benchmarks/non_termination/recursion/Missing_undef_Instruction_1_T.c new file mode 100644 index 000000000..3903670d1 --- /dev/null +++ b/data/benchmarks/non_termination/recursion/Missing_undef_Instruction_1_T.c @@ -0,0 +1,34 @@ +/* +Commit Number: b546212a16a6ac3e9f40f332644345ceec96a0e7 +URL: https://github.com/mysql/mysql-server/commit/b546212a16a6ac3e9f40f332644345ceec96a0e7 +Project Name: mysql-server +License: GPL-2.0 +termination: TRUE +*/ +#define pthread_mutex_t int + +int pthread_mutex_trylock( pthread_mutex_t* mutex) +{ + //return __VERIFIER_nondet_int(); + return 0; +} + +#define pthread_mutex_trylock my_pthread_mutex_trylock + +#undef pthread_mutex_trylock +int my_pthread_mutex_trylock(pthread_mutex_t *mutex) +{ + int error=pthread_mutex_trylock(mutex); + if (error == 1) /* Safety if the lib is fixed */ + return 0; /* Mutex was locked */ + return error; +}; + + +int main() +{ + pthread_mutex_t mutex1 = 2; + pthread_mutex_t* mutex = &mutex1; + int rc = my_pthread_mutex_trylock(mutex); + return 0; +} diff --git a/data/benchmarks/non_termination/recursion/Misusing_Method_Overloading_1_NT.cpp b/data/benchmarks/non_termination/recursion/Misusing_Method_Overloading_1_NT.cpp new file mode 100644 index 000000000..29ab84876 --- /dev/null +++ b/data/benchmarks/non_termination/recursion/Misusing_Method_Overloading_1_NT.cpp @@ -0,0 +1,47 @@ +/* +Commit Number: 2a44538e0f43e93257c6d69d0b86d26219dd7a99 +URL: https://github.com/qt/qt/commit/2a44538e0f43e93257c6d69d0b86d26219dd7a99 +Project Name: qt +License: GNU1.3 +termination: FALSE +*/ +struct QMetaObject{ + void activate( float sender, int from_signal_index, int to_signal_index, double argv); + void activate( float sender, int signal_index, double argv); + void activate( float sender, const QMetaObject *m, int from_local_signal_index, int to_local_signal_index, double argv); + void activate( float sender, const QMetaObject *m, int local_signal_index, double argv); +}; + +//1 -> 2 +void QMetaObject::activate( float sender, int from_signal_index, int to_signal_index, double argv) +{ + activate(sender, from_signal_index, argv); +} +//2 -> 2 +void QMetaObject::activate( float sender, int signal_index, double argv) +{ + const QMetaObject *mo; + activate(sender, signal_index, argv); +} +// 3 -> 4 +void QMetaObject::activate( float sender, const QMetaObject *m, int from_local_signal_index, int to_local_signal_index, double argv) +{ + activate(sender, m, from_local_signal_index, argv); +} +// 4 +void QMetaObject::activate( float sender, const QMetaObject *m, int local_signal_index, double argv) +{ + return; +} + +int main() +{ + QMetaObject A; + float sender = 0.2; + int from_signal_index = 3; + int to_signal_index = 5; + double argv = 0.9; + A.activate( sender, from_signal_index, to_signal_index, argv); + return 0; + } + diff --git a/data/benchmarks/non_termination/recursion/Misusing_Method_Overloading_1_T.cpp b/data/benchmarks/non_termination/recursion/Misusing_Method_Overloading_1_T.cpp new file mode 100644 index 000000000..8d181b149 --- /dev/null +++ b/data/benchmarks/non_termination/recursion/Misusing_Method_Overloading_1_T.cpp @@ -0,0 +1,47 @@ +/* +Commit Number: 2a44538e0f43e93257c6d69d0b86d26219dd7a99 +URL: https://github.com/qt/qt/commit/2a44538e0f43e93257c6d69d0b86d26219dd7a99 +Project Name: qt +License: GNU1.3 +termination: TRUE +*/ +struct QMetaObject{ + void activate( float sender, int from_signal_index, int to_signal_index, double argv); + void activate( float sender, int signal_index, double argv); + void activate( float sender, const QMetaObject *m, int from_local_signal_index, int to_local_signal_index, double argv); + void activate( float sender, const QMetaObject *m, int local_signal_index, double argv); +}; + +//1 -> 2 +void QMetaObject::activate( float sender, int from_signal_index, int to_signal_index, double argv) +{ + activate(sender, from_signal_index, argv); +} +//2 -> 4 +void QMetaObject::activate( float sender, int signal_index, double argv) +{ + const QMetaObject *mo; + activate(sender, mo , signal_index, argv); +} +// 3 -> 4 +void QMetaObject::activate( float sender, const QMetaObject *m, int from_local_signal_index, int to_local_signal_index, double argv) +{ + activate(sender, m, from_local_signal_index, argv); +} +// 4 +void QMetaObject::activate( float sender, const QMetaObject *m, int local_signal_index, double argv) +{ + return; +} + +int main() +{ + QMetaObject A; + float sender = 0.2; + int from_signal_index = 3; + int to_signal_index = 5; + double argv = 0.9; + A.activate( sender, from_signal_index, to_signal_index, argv); + return 0; + } + diff --git a/data/benchmarks/non_termination/recursion/Misusing_Method_Overloading_2_NT.cpp b/data/benchmarks/non_termination/recursion/Misusing_Method_Overloading_2_NT.cpp new file mode 100644 index 000000000..35d0b5ad9 --- /dev/null +++ b/data/benchmarks/non_termination/recursion/Misusing_Method_Overloading_2_NT.cpp @@ -0,0 +1,32 @@ + +class resolver_query_base { + enum flags + { + canonical_name = 1, + passive = 2, + numeric_host = 3, + numeric_service = 4, + v4_mapped = 5, + all_matching = 6, + address_configured = 7 + }; + friend flags operator ~(flags x){ + return static_cast(static_cast(~x)); + } + +public: + void induce(){ + flags a; + a = canonical_name; + ~a; + return; + } + +}; + + +int main(){ + resolver_query_base a; + a.induce(); + return 0; +} diff --git a/data/benchmarks/non_termination/recursion/Misusing_Method_Overloading_2_T.cpp b/data/benchmarks/non_termination/recursion/Misusing_Method_Overloading_2_T.cpp new file mode 100644 index 000000000..e47d4b718 --- /dev/null +++ b/data/benchmarks/non_termination/recursion/Misusing_Method_Overloading_2_T.cpp @@ -0,0 +1,32 @@ + +class resolver_query_base { + enum flags + { + canonical_name = 1, + passive = 2, + numeric_host = 3, + numeric_service = 4, + v4_mapped = 5, + all_matching = 6, + address_configured = 7 + }; + friend flags operator ~(flags x){ + return static_cast(~static_cast(x)); + } + +public: + void induce(){ + flags a; + a = canonical_name; + ~a; + return; + } + +}; + + +int main(){ + resolver_query_base a; + a.induce(); + return 0; +} diff --git a/data/benchmarks/non_termination/recursion/Misusing_Method_Overloading_3_NT.cpp b/data/benchmarks/non_termination/recursion/Misusing_Method_Overloading_3_NT.cpp new file mode 100644 index 000000000..8804c6fda --- /dev/null +++ b/data/benchmarks/non_termination/recursion/Misusing_Method_Overloading_3_NT.cpp @@ -0,0 +1,39 @@ +/* +Commit Number: c9353e306c304911cb96bbd9f5aeda9dd0820fb0 +URL: https://github.com/apache/impala/commit/c9353e306c304911cb96bbd9f5aeda9dd0820fb0 +Project Name: impala +License: Apache-2.0 +termination: FALSE +*/ +#include +struct Rule{ + const std::string trigger; + Rule() + { + } + static Rule Create( const std::string& trigger) + { + return Rule(trigger); + } + Rule(const Rule& other): trigger( other.trigger ) + { + } + + const Rule& operator=(const Rule& other) + { + *this = Rule(other); + return *this; + } + + Rule(const std::string& trigger):trigger(trigger) + { + } +}; +int main() +{ + const std::string test = "test"; + Rule rule(test); + Rule rule2; + rule2.operator=(rule); + return 0; +} diff --git a/data/benchmarks/non_termination/recursion/Misusing_Method_Overloading_3_T.cpp b/data/benchmarks/non_termination/recursion/Misusing_Method_Overloading_3_T.cpp new file mode 100644 index 000000000..09a11289a --- /dev/null +++ b/data/benchmarks/non_termination/recursion/Misusing_Method_Overloading_3_T.cpp @@ -0,0 +1,32 @@ +/* +Commit Number: c9353e306c304911cb96bbd9f5aeda9dd0820fb0 +URL: https://github.com/apache/impala/commit/c9353e306c304911cb96bbd9f5aeda9dd0820fb0 +Project Name: impala +License: Apache-2.0 +termination: true +*/ +#include +struct Rule{ + const std::string trigger; + Rule() + { + } + static Rule Create( const std::string& trigger) + { + return Rule(trigger); + } + Rule(const Rule& other): trigger( other.trigger ) + { + } + + Rule(const std::string& trigger):trigger(trigger) + { + } +}; +int main() +{ + const std::string test = "test"; + Rule rule(test); + Rule rule2; + return 0; +} diff --git a/data/benchmarks/non_termination/recursion/Misusing_Method_Overloading_4_NT.cpp b/data/benchmarks/non_termination/recursion/Misusing_Method_Overloading_4_NT.cpp new file mode 100644 index 000000000..4f2de1f90 --- /dev/null +++ b/data/benchmarks/non_termination/recursion/Misusing_Method_Overloading_4_NT.cpp @@ -0,0 +1,22 @@ + +class LogMessage{ +public: + ~LogMessage(); +}; +void MessageBoxW(){ + LogMessage L; + return; + } +void DisplayDebugMessage(){ + MessageBoxW(); + return; +} + +LogMessage::~LogMessage() { + DisplayDebugMessage(); +} + +int main(){ + LogMessage L; + return 1; +}; diff --git a/data/benchmarks/non_termination/recursion/Misusing_Method_Overloading_4_T.cpp b/data/benchmarks/non_termination/recursion/Misusing_Method_Overloading_4_T.cpp new file mode 100644 index 000000000..27c20a3f6 --- /dev/null +++ b/data/benchmarks/non_termination/recursion/Misusing_Method_Overloading_4_T.cpp @@ -0,0 +1,24 @@ +#define NDEBUG 1; +class LogMessage{ +public: + ~LogMessage(); +}; +void MessageBoxW(){ + LogMessage L; + return; + } +void DisplayDebugMessage(){ + MessageBoxW(); + return; +} + +LogMessage::~LogMessage() { +#ifndef NDEBUG + DisplayDebugMessage(); +#endif +} + +int main(){ + LogMessage L; + return 1; +}; diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/LICENSE b/data/benchmarks/sv-benchmarks/loop-acceleration/LICENSE new file mode 100644 index 000000000..56bb10c00 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/LICENSE @@ -0,0 +1,10 @@ +Copyright (c) 2014, Matt Lewis +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/Makefile b/data/benchmarks/sv-benchmarks/loop-acceleration/Makefile new file mode 100644 index 000000000..786c59285 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/Makefile @@ -0,0 +1,14 @@ +# This file is part of the SV-Benchmarks collection of verification tasks: +# https://github.com/sosy-lab/sv-benchmarks +# +# SPDX-FileCopyrightText: 2015-2016 Daniel Liew +# SPDX-FileCopyrightText: 2015-2020 The SV-Benchmarks Community +# +# SPDX-License-Identifier: Apache-2.0 + +LEVEL := ../ + +COMMON_WARNINGS := \ + -Wno-error=uninitialized \ + +include $(LEVEL)/Makefile.config diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/README b/data/benchmarks/sv-benchmarks/loop-acceleration/README new file mode 100644 index 000000000..800f4a2ba --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/README @@ -0,0 +1,11 @@ +The benchmarks in this directory were submitted by Matt Lewis. +They were taken from the regression tests for under-approximate +loop acceleration in CBMC. +http://www.cprover.org/cbmc + +Tasks ending in _abstracted.* contain versions of these tasks +where a loop has been overaproximated using simple abstraction +techniques, as described in: +"A Unifying Approach for Control-Flow-Based Loop Abstraction" (SEFM 2022) +https://doi.org/10.1007/978-3-031-17108-6_1 +Contributed by: Martin Spiessl diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/array3.c b/data/benchmarks/sv-benchmarks/loop-acceleration/array3.c new file mode 100644 index 000000000..bb097f608 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/array3.c @@ -0,0 +1,30 @@ +extern void abort(void); +#include +void reach_error() { assert(0); } +extern int __VERIFIER_nondet_int(void); + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +#define N 1024 + +int main(void) { + int A[N]; + int i; + + for (i = 0; i < N; i++) { + A[i] = __VERIFIER_nondet_int(); + } + + for (i = 0; A[i] != 0; i++) { + if (i >= N) { + break; + } + } + + __VERIFIER_assert(i <= N); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/array_1-1.c b/data/benchmarks/sv-benchmarks/loop-acceleration/array_1-1.c new file mode 100644 index 000000000..ab1ca42ec --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/array_1-1.c @@ -0,0 +1,21 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "array_1-1.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + int A[2048]; + int i; + + for (i = 0; i < 1024; i++) { + A[i] = i; + } + + __VERIFIER_assert(A[1023] != 1023); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/array_1-2.c b/data/benchmarks/sv-benchmarks/loop-acceleration/array_1-2.c new file mode 100644 index 000000000..e46023677 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/array_1-2.c @@ -0,0 +1,21 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "array_1-2.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + int A[2048]; + int i; + + for (i = 0; i < 1024; i++) { + A[i] = i; + } + + __VERIFIER_assert(A[1023] == 1023); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/array_2-1-simple.c b/data/benchmarks/sv-benchmarks/loop-acceleration/array_2-1-simple.c new file mode 100644 index 000000000..3ee4f1318 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/array_2-1-simple.c @@ -0,0 +1,25 @@ +extern void abort(void); +#include +void reach_error() { assert(0); } +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +#define SZ 2048 + +int main(void) { + int A[SZ] = {0}; + int B[SZ] = {0}; + int i; + int tmp; + + for (i = 0; i < SZ; i++) { + tmp = A[i]; + B[i] = tmp; + } + + __VERIFIER_assert(A[SZ/2] != B[SZ/2]); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/array_2-1.c b/data/benchmarks/sv-benchmarks/loop-acceleration/array_2-1.c new file mode 100644 index 000000000..755fb05ff --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/array_2-1.c @@ -0,0 +1,31 @@ +extern void abort(void); +#include +void reach_error() { assert(0); } +extern int __VERIFIER_nondet_int(void); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +#define SZ 2048 + +int main(void) { + int A[SZ]; + int B[SZ]; + int i; + int tmp; + + for (i = 0; i < SZ; i++) { + A[i] = __VERIFIER_nondet_int(); + B[i] = __VERIFIER_nondet_int(); + } + + for (i = 0; i < SZ; i++) { + tmp = A[i]; + B[i] = tmp; + } + + __VERIFIER_assert(A[SZ/2] != B[SZ/2]); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/array_2-2-simple.c b/data/benchmarks/sv-benchmarks/loop-acceleration/array_2-2-simple.c new file mode 100644 index 000000000..6f48baf74 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/array_2-2-simple.c @@ -0,0 +1,25 @@ +extern void abort(void); +#include +void reach_error() { assert(0); } +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +#define SZ 2048 + +int main(void) { + int A[SZ] = {0}; + int B[SZ] = {0}; + int i; + int tmp; + + for (i = 0; i < SZ; i++) { + tmp = A[i]; + B[i] = tmp; + } + + __VERIFIER_assert(A[SZ/2] == B[SZ/2]); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/array_2-2.c b/data/benchmarks/sv-benchmarks/loop-acceleration/array_2-2.c new file mode 100644 index 000000000..5d49dfc5f --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/array_2-2.c @@ -0,0 +1,31 @@ +extern void abort(void); +#include +void reach_error() { assert(0); } +extern int __VERIFIER_nondet_int(void); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +#define SZ 2048 + +int main(void) { + int A[SZ]; + int B[SZ]; + int i; + int tmp; + + for (i = 0; i < SZ; i++) { + A[i] = __VERIFIER_nondet_int(); + B[i] = __VERIFIER_nondet_int(); + } + + for (i = 0; i < SZ; i++) { + tmp = A[i]; + B[i] = tmp; + } + + __VERIFIER_assert(A[SZ/2] == B[SZ/2]); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/array_3-1.c b/data/benchmarks/sv-benchmarks/loop-acceleration/array_3-1.c new file mode 100644 index 000000000..441618084 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/array_3-1.c @@ -0,0 +1,30 @@ +extern void abort(void); +#include +void reach_error() { assert(0); } +extern int __VERIFIER_nondet_int(void); + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +#define N 1024 + +int main(void) { + int A[N]; + int i; + + for (i = 0; i < N; i++) { + A[i] = __VERIFIER_nondet_int(); + } + + for (i = 0; A[i] != 0; i++) { + if (i >= N-1) { + break; + } + } + + __VERIFIER_assert(i <= N); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/array_3-2.c b/data/benchmarks/sv-benchmarks/loop-acceleration/array_3-2.c new file mode 100644 index 000000000..db0d5b4e2 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/array_3-2.c @@ -0,0 +1,28 @@ +extern void abort(void); +#include +void reach_error() { assert(0); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +extern int __VERIFIER_nondet_int(void); + +#define N 1024 + +int main(void) { + int A[N]; + int i; + + for (i = 0; i < N; i++) { + A[i] = __VERIFIER_nondet_int(); + } + + for (i = 0; i < N && A[i] != 0; i++) { + } + + __VERIFIER_assert(i <= N / 2); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/array_4.c b/data/benchmarks/sv-benchmarks/loop-acceleration/array_4.c new file mode 100644 index 000000000..33412c08e --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/array_4.c @@ -0,0 +1,29 @@ +extern void abort(void); +#include +void reach_error() { assert(0); } +extern int __VERIFIER_nondet_int(void); + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +#define N 1024 + +int main(void) { + int A[N]; + int i; + + for (i = 0; i < N-1; i++) { + A[i] = __VERIFIER_nondet_int(); + } + + A[N-1] = 0; + + for (i = 0; A[i] != 0; i++) { + } + + __VERIFIER_assert(i <= N); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/const_1-1.c b/data/benchmarks/sv-benchmarks/loop-acceleration/const_1-1.c new file mode 100644 index 000000000..fb9c08908 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/const_1-1.c @@ -0,0 +1,22 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "const_1-1.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + unsigned int x = 1; + unsigned int y = 0; + + while (y < 1024) { + x = 0; + y++; + } + + __VERIFIER_assert(x == 0); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/const_1-2.c b/data/benchmarks/sv-benchmarks/loop-acceleration/const_1-2.c new file mode 100644 index 000000000..69f88f0ee --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/const_1-2.c @@ -0,0 +1,22 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "const_1-2.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + unsigned int x = 1; + unsigned int y = 0; + + while (y < 1024) { + x = 0; + y++; + } + + __VERIFIER_assert(x == 1); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/const_1-2_abstracted.c b/data/benchmarks/sv-benchmarks/loop-acceleration/const_1-2_abstracted.c new file mode 100644 index 000000000..1d31077fb --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/const_1-2_abstracted.c @@ -0,0 +1,42 @@ +extern void abort(void); +extern int __VERIFIER_nondet_int(); +extern _Bool __VERIFIER_nondet_bool(); +extern char __VERIFIER_nondet_char(); +extern double __VERIFIER_nondet_double(); +extern float __VERIFIER_nondet_float(); +extern unsigned long __VERIFIER_nondet_ulong(); +extern unsigned long long __VERIFIER_nondet_ulonglong(); +extern unsigned int __VERIFIER_nondet_uint(); +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "const_1-2_abstracted.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + unsigned int x = 1; + unsigned int y = 0; + + // START CONSTANTEXTRAPOLATION + if (y < (1024)) { + long long int y__VERIFIER_LA_tmp0; + y__VERIFIER_LA_tmp0 = y; + long long int __VERIFIER_LA_iterations0; + __VERIFIER_LA_iterations0 = (1024 - y__VERIFIER_LA_tmp0) / 1L; + unsigned int x__VERIFIER_LA_old_tmp0; + x__VERIFIER_LA_old_tmp0 = x; + x = (__VERIFIER_LA_iterations0 * 0L) + (x__VERIFIER_LA_old_tmp0 * 0) + 0; + unsigned int y__VERIFIER_LA_old_tmp0; + y__VERIFIER_LA_old_tmp0 = y; + y = (__VERIFIER_LA_iterations0 * 1L) + y__VERIFIER_LA_old_tmp0; + } + // END CONSTANTEXTRAPOLATION + + __VERIFIER_assert(x == 1); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/diamond_1-1.c b/data/benchmarks/sv-benchmarks/loop-acceleration/diamond_1-1.c new file mode 100644 index 000000000..4a604c9ad --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/diamond_1-1.c @@ -0,0 +1,26 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "diamond_1-1.c", 3, "reach_error"); } +extern unsigned int __VERIFIER_nondet_uint(void); + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + unsigned int x = 0; + unsigned int y = __VERIFIER_nondet_uint(); + + while (x < 99) { + if (y % 2 == 0) { + x += 2; + } else { + x++; + } + } + + __VERIFIER_assert((x % 2) == (y % 2)); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/diamond_1-2.c b/data/benchmarks/sv-benchmarks/loop-acceleration/diamond_1-2.c new file mode 100644 index 000000000..2b10e4bbd --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/diamond_1-2.c @@ -0,0 +1,26 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "diamond_1-2.c", 3, "reach_error"); } +extern unsigned int __VERIFIER_nondet_uint(void); + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + unsigned int x = 0; + unsigned int y = __VERIFIER_nondet_uint(); + + while (x < 99) { + if (y % 2 == 0) { + x++; + } else { + x += 2; + } + } + + __VERIFIER_assert((x % 2) == (y % 2)); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/diamond_2-2.c b/data/benchmarks/sv-benchmarks/loop-acceleration/diamond_2-2.c new file mode 100644 index 000000000..34c264da7 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/diamond_2-2.c @@ -0,0 +1,50 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "diamond_2-2.c", 3, "reach_error"); } +extern unsigned int __VERIFIER_nondet_uint(void); + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + unsigned int x = 0; + unsigned int y = __VERIFIER_nondet_uint(); + + while (x < 99) { + if (y % 2 == 0) x += 2; + else x++; + + if (y % 2 == 0) x += 2; + else x -= 2; + + if (y % 2 == 0) x += 2; + else x += 2; + + if (y % 2 == 0) x += 2; + else x -= 2; + + if (y % 2 == 0) x += 2; + else x += 2; + + if (y % 2 == 0) x += 2; + else x -= 4; + + if (y % 2 == 0) x += 2; + else x += 4; + + if (y % 2 == 0) x += 2; + else x += 2; + + if (y % 2 == 0) x += 2; + else x -= 4; + + if (y % 2 == 0) x += 2; + else x -= 4; + } + + __VERIFIER_assert((x % 2) == (y % 2)); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/functions_1-1.c b/data/benchmarks/sv-benchmarks/loop-acceleration/functions_1-1.c new file mode 100644 index 000000000..14f8a16ba --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/functions_1-1.c @@ -0,0 +1,24 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "functions_1-1.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +unsigned int f(unsigned int z) { + return z + 2; +} + +int main(void) { + unsigned int x = 0; + + while (x < 0x0fffffff) { + x = f(x); + } + + __VERIFIER_assert(!(x % 2)); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/functions_1-2.c b/data/benchmarks/sv-benchmarks/loop-acceleration/functions_1-2.c new file mode 100644 index 000000000..4008103ed --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/functions_1-2.c @@ -0,0 +1,24 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "functions_1-2.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +unsigned int f(unsigned int z) { + return z + 2; +} + +int main(void) { + unsigned int x = 0; + + while (x < 0x0fffffff) { + x = f(x); + } + + __VERIFIER_assert(x % 2); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/multivar_1-1.c b/data/benchmarks/sv-benchmarks/loop-acceleration/multivar_1-1.c new file mode 100644 index 000000000..936326db4 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/multivar_1-1.c @@ -0,0 +1,23 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "multivar_1-1.c", 3, "reach_error"); } +extern unsigned int __VERIFIER_nondet_uint(void); + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + unsigned int x = __VERIFIER_nondet_uint(); + unsigned int y = x; + + while (x < 1024) { + x++; + y++; + } + + __VERIFIER_assert(x == y); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/multivar_1-2.c b/data/benchmarks/sv-benchmarks/loop-acceleration/multivar_1-2.c new file mode 100644 index 000000000..c7fbeb3fc --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/multivar_1-2.c @@ -0,0 +1,23 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "multivar_1-2.c", 3, "reach_error"); } +extern unsigned int __VERIFIER_nondet_uint(void); + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + unsigned int x = __VERIFIER_nondet_uint(); + unsigned int y = x + 1; + + while (x < 1024) { + x++; + y++; + } + + __VERIFIER_assert(x == y); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/nested_1-1.c b/data/benchmarks/sv-benchmarks/loop-acceleration/nested_1-1.c new file mode 100644 index 000000000..9cadb1b93 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/nested_1-1.c @@ -0,0 +1,27 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "nested_1-1.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + unsigned int x = 0; + unsigned int y = 0; + + while (x < 0x0fffffff) { + y = 0; + + while (y < 10) { + y++; + } + + x++; + } + + __VERIFIER_assert(x % 2); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/nested_1-2.c b/data/benchmarks/sv-benchmarks/loop-acceleration/nested_1-2.c new file mode 100644 index 000000000..88acd8cc2 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/nested_1-2.c @@ -0,0 +1,27 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "nested_1-2.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + unsigned int x = 0; + unsigned int y = 0; + + while (x < 0x0fffffff) { + y = 0; + + while (y < 10) { + y++; + } + + x++; + } + + __VERIFIER_assert(!(x % 2)); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/overflow_1-1.c b/data/benchmarks/sv-benchmarks/loop-acceleration/overflow_1-1.c new file mode 100644 index 000000000..befb76827 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/overflow_1-1.c @@ -0,0 +1,20 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "overflow_1-1.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + unsigned int x = 10; + + while (x >= 10) { + x += 2; + } + + __VERIFIER_assert(!(x % 2)); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/phases_1-1.c b/data/benchmarks/sv-benchmarks/loop-acceleration/phases_1-1.c new file mode 100644 index 000000000..863003d41 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/phases_1-1.c @@ -0,0 +1,24 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "phases_1-1.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + unsigned int x = 0; + + while (x < 0x0fffffff) { + if (x < 0xfff0) { + x++; + } else { + x += 2; + } + } + + __VERIFIER_assert(!(x % 2)); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/phases_1-2.c b/data/benchmarks/sv-benchmarks/loop-acceleration/phases_1-2.c new file mode 100644 index 000000000..dd00d97e0 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/phases_1-2.c @@ -0,0 +1,24 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "phases_1-2.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + unsigned int x = 0; + + while (x < 0x0fffffff) { + if (x < 0xfff1) { + x++; + } else { + x += 2; + } + } + + __VERIFIER_assert(!(x % 2)); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/phases_2-1.c b/data/benchmarks/sv-benchmarks/loop-acceleration/phases_2-1.c new file mode 100644 index 000000000..a96ce5b35 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/phases_2-1.c @@ -0,0 +1,32 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "phases_2-1.c", 3, "reach_error"); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +extern unsigned int __VERIFIER_nondet_uint(void); + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + unsigned int x = 1; + unsigned int y = __VERIFIER_nondet_uint(); + + if (!(y > 0)) return 0; + + while (x < y) { + if (x < y / x) { + x *= x; + } else { + x++; + } + } + + __VERIFIER_assert(x != y); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/phases_2-2.c b/data/benchmarks/sv-benchmarks/loop-acceleration/phases_2-2.c new file mode 100644 index 000000000..67d50428f --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/phases_2-2.c @@ -0,0 +1,32 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "phases_2-2.c", 3, "reach_error"); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +extern unsigned int __VERIFIER_nondet_uint(void); + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + unsigned int x = 1; + unsigned int y = __VERIFIER_nondet_uint(); + + if (!(y > 0)) return 0; + + while (x < y) { + if (x < y / x) { + x *= x; + } else { + x++; + } + } + + __VERIFIER_assert(x == y); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/simple_1-1.c b/data/benchmarks/sv-benchmarks/loop-acceleration/simple_1-1.c new file mode 100644 index 000000000..26bd19548 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/simple_1-1.c @@ -0,0 +1,20 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "simple_1-1.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + unsigned int x = 0; + + while (x < 0x0fffffff) { + x += 2; + } + + __VERIFIER_assert(x % 2); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/simple_1-1_abstracted.c b/data/benchmarks/sv-benchmarks/loop-acceleration/simple_1-1_abstracted.c new file mode 100644 index 000000000..aee267bc0 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/simple_1-1_abstracted.c @@ -0,0 +1,38 @@ +extern void abort(void); +extern int __VERIFIER_nondet_int(); +extern _Bool __VERIFIER_nondet_bool(); +extern char __VERIFIER_nondet_char(); +extern double __VERIFIER_nondet_double(); +extern float __VERIFIER_nondet_float(); +extern unsigned long __VERIFIER_nondet_ulong(); +extern unsigned long long __VERIFIER_nondet_ulonglong(); +extern unsigned int __VERIFIER_nondet_uint(); +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "simple_1-1_abstracted.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + unsigned int x = 0; + + // START CONSTANTEXTRAPOLATION + if (x < (268435455)) { + long long int x__VERIFIER_LA_tmp0; + x__VERIFIER_LA_tmp0 = x; + long long int __VERIFIER_LA_iterations0; + __VERIFIER_LA_iterations0 = (268435455 - x__VERIFIER_LA_tmp0) / 2L; + unsigned int x__VERIFIER_LA_old_tmp0; + x__VERIFIER_LA_old_tmp0 = x; + x = (__VERIFIER_LA_iterations0 * 2L) + x__VERIFIER_LA_old_tmp0; + } + // END CONSTANTEXTRAPOLATION + + __VERIFIER_assert(x % 2); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/simple_1-2.c b/data/benchmarks/sv-benchmarks/loop-acceleration/simple_1-2.c new file mode 100644 index 000000000..41486beac --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/simple_1-2.c @@ -0,0 +1,20 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "simple_1-2.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + unsigned int x = 0; + + while (x < 0x0fffffff) { + x += 2; + } + + __VERIFIER_assert(!(x % 2)); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/simple_1-2_abstracted.c b/data/benchmarks/sv-benchmarks/loop-acceleration/simple_1-2_abstracted.c new file mode 100644 index 000000000..d8a10c19b --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/simple_1-2_abstracted.c @@ -0,0 +1,38 @@ +extern void abort(void); +extern int __VERIFIER_nondet_int(); +extern _Bool __VERIFIER_nondet_bool(); +extern char __VERIFIER_nondet_char(); +extern double __VERIFIER_nondet_double(); +extern float __VERIFIER_nondet_float(); +extern unsigned long __VERIFIER_nondet_ulong(); +extern unsigned long long __VERIFIER_nondet_ulonglong(); +extern unsigned int __VERIFIER_nondet_uint(); +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "simple_1-2_abstracted.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + unsigned int x = 0; + + // START CONSTANTEXTRAPOLATION + if (x < (268435455)) { + long long int x__VERIFIER_LA_tmp0; + x__VERIFIER_LA_tmp0 = x; + long long int __VERIFIER_LA_iterations0; + __VERIFIER_LA_iterations0 = (268435455 - x__VERIFIER_LA_tmp0) / 2L; + unsigned int x__VERIFIER_LA_old_tmp0; + x__VERIFIER_LA_old_tmp0 = x; + x = (__VERIFIER_LA_iterations0 * 2L) + x__VERIFIER_LA_old_tmp0; + } + // END CONSTANTEXTRAPOLATION + + __VERIFIER_assert(!(x % 2)); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/simple_2-1.c b/data/benchmarks/sv-benchmarks/loop-acceleration/simple_2-1.c new file mode 100644 index 000000000..c6363891d --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/simple_2-1.c @@ -0,0 +1,21 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "simple_2-1.c", 3, "reach_error"); } +extern unsigned int __VERIFIER_nondet_uint(void); + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + unsigned int x = __VERIFIER_nondet_uint(); + + while (x < 0x0fffffff) { + x++; + } + + __VERIFIER_assert(x >= 0x0fffffff); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/simple_2-1_abstracted.c b/data/benchmarks/sv-benchmarks/loop-acceleration/simple_2-1_abstracted.c new file mode 100644 index 000000000..cd4fe930c --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/simple_2-1_abstracted.c @@ -0,0 +1,34 @@ +extern void abort(void); +extern int __VERIFIER_nondet_int(); +extern _Bool __VERIFIER_nondet_bool(); +extern char __VERIFIER_nondet_char(); +extern double __VERIFIER_nondet_double(); +extern float __VERIFIER_nondet_float(); +extern unsigned long __VERIFIER_nondet_ulong(); +extern unsigned long long __VERIFIER_nondet_ulonglong(); +extern unsigned int __VERIFIER_nondet_uint(); +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "simple_2-1_abstracted.c", 3, "reach_error"); } +extern unsigned int __VERIFIER_nondet_uint(void); + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + unsigned int x = __VERIFIER_nondet_uint(); + + // START HAVOCABSTRACTION + if (x < (268435455)) { + x = __VERIFIER_nondet_uint(); + } + if (x < (268435455)) abort(); + // END HAVOCABSTRACTION + + __VERIFIER_assert(x >= 0x0fffffff); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/simple_2-2.c b/data/benchmarks/sv-benchmarks/loop-acceleration/simple_2-2.c new file mode 100644 index 000000000..91ebd1a60 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/simple_2-2.c @@ -0,0 +1,21 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "simple_2-2.c", 3, "reach_error"); } +extern unsigned int __VERIFIER_nondet_uint(void); + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + unsigned int x = __VERIFIER_nondet_uint(); + + while (x < 0x0fffffff) { + x++; + } + + __VERIFIER_assert(x > 0x0fffffff); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/simple_3-1.c b/data/benchmarks/sv-benchmarks/loop-acceleration/simple_3-1.c new file mode 100644 index 000000000..7b5be5659 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/simple_3-1.c @@ -0,0 +1,22 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "simple_3-1.c", 3, "reach_error"); } +extern unsigned short __VERIFIER_nondet_ushort(void); + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + unsigned int x = 0; + unsigned short N = __VERIFIER_nondet_ushort(); + + while (x < N) { + x += 2; + } + + __VERIFIER_assert(x % 2); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/simple_3-2.c b/data/benchmarks/sv-benchmarks/loop-acceleration/simple_3-2.c new file mode 100644 index 000000000..dfd23d2ba --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/simple_3-2.c @@ -0,0 +1,22 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "simple_3-2.c", 3, "reach_error"); } +extern unsigned short __VERIFIER_nondet_ushort(void); + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + unsigned int x = 0; + unsigned short N = __VERIFIER_nondet_ushort(); + + while (x < N) { + x += 2; + } + + __VERIFIER_assert(!(x % 2)); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/simple_4-1.c b/data/benchmarks/sv-benchmarks/loop-acceleration/simple_4-1.c new file mode 100644 index 000000000..45cc4252e --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/simple_4-1.c @@ -0,0 +1,20 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "simple_4-1.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + unsigned int x = 0x0ffffff1; + + while (x > 1) { + x -= 2; + } + + __VERIFIER_assert(!(x % 2)); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/simple_4-1_abstracted.c b/data/benchmarks/sv-benchmarks/loop-acceleration/simple_4-1_abstracted.c new file mode 100644 index 000000000..70d84abf9 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/simple_4-1_abstracted.c @@ -0,0 +1,38 @@ +extern void abort(void); +extern int __VERIFIER_nondet_int(); +extern _Bool __VERIFIER_nondet_bool(); +extern char __VERIFIER_nondet_char(); +extern double __VERIFIER_nondet_double(); +extern float __VERIFIER_nondet_float(); +extern unsigned long __VERIFIER_nondet_ulong(); +extern unsigned long long __VERIFIER_nondet_ulonglong(); +extern unsigned int __VERIFIER_nondet_uint(); +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "simple_4-1_abstracted.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + unsigned int x = 0x0ffffff1; + + // START CONSTANTEXTRAPOLATION + if (x > (1)) { + long long int x__VERIFIER_LA_tmp0; + x__VERIFIER_LA_tmp0 = x; + long long int __VERIFIER_LA_iterations0; + __VERIFIER_LA_iterations0 = ((x__VERIFIER_LA_tmp0 - 1) / 2L) + 1L; + unsigned int x__VERIFIER_LA_old_tmp0; + x__VERIFIER_LA_old_tmp0 = x; + x = (__VERIFIER_LA_iterations0 * -2L) + x__VERIFIER_LA_old_tmp0; + } + // END CONSTANTEXTRAPOLATION + + __VERIFIER_assert(!(x % 2)); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/simple_4-2.c b/data/benchmarks/sv-benchmarks/loop-acceleration/simple_4-2.c new file mode 100644 index 000000000..149a9ecb9 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/simple_4-2.c @@ -0,0 +1,20 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "simple_4-2.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + unsigned int x = 0x0ffffff0; + + while (x > 0) { + x -= 2; + } + + __VERIFIER_assert(!(x % 2)); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/simple_4-2_abstracted.c b/data/benchmarks/sv-benchmarks/loop-acceleration/simple_4-2_abstracted.c new file mode 100644 index 000000000..b0dd2b965 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/simple_4-2_abstracted.c @@ -0,0 +1,33 @@ +extern void abort(void); +extern int __VERIFIER_nondet_int(); +extern _Bool __VERIFIER_nondet_bool(); +extern char __VERIFIER_nondet_char(); +extern double __VERIFIER_nondet_double(); +extern float __VERIFIER_nondet_float(); +extern unsigned long __VERIFIER_nondet_ulong(); +extern unsigned long long __VERIFIER_nondet_ulonglong(); +extern unsigned int __VERIFIER_nondet_uint(); +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "simple_4-2_abstracted.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + unsigned int x = 0x0ffffff0; + + // START HAVOCABSTRACTION + if (x > (0)) { + x = __VERIFIER_nondet_uint(); + } + if (x > (0)) abort(); + // END HAVOCABSTRACTION + + __VERIFIER_assert(!(x % 2)); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/underapprox_1-1.c b/data/benchmarks/sv-benchmarks/loop-acceleration/underapprox_1-1.c new file mode 100644 index 000000000..9fdd7a8b6 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/underapprox_1-1.c @@ -0,0 +1,22 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "underapprox_1-1.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + unsigned int x = 0; + unsigned int y = 1; + + while (x < 6) { + x++; + y *= 2; + } + + __VERIFIER_assert(y != 64); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/underapprox_1-2.c b/data/benchmarks/sv-benchmarks/loop-acceleration/underapprox_1-2.c new file mode 100644 index 000000000..dbe6652c8 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/underapprox_1-2.c @@ -0,0 +1,22 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "underapprox_1-2.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + unsigned int x = 0; + unsigned int y = 1; + + while (x < 6) { + x++; + y *= 2; + } + + __VERIFIER_assert(y % 3); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/underapprox_2-1.c b/data/benchmarks/sv-benchmarks/loop-acceleration/underapprox_2-1.c new file mode 100644 index 000000000..b93be6663 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/underapprox_2-1.c @@ -0,0 +1,22 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "underapprox_2-1.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + unsigned int x = 0; + unsigned int y = 1; + + while (x < 6) { + x++; + y *= 2; + } + + __VERIFIER_assert(x != 6); +} diff --git a/data/benchmarks/sv-benchmarks/loop-acceleration/underapprox_2-2.c b/data/benchmarks/sv-benchmarks/loop-acceleration/underapprox_2-2.c new file mode 100644 index 000000000..d2ba0391a --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-acceleration/underapprox_2-2.c @@ -0,0 +1,22 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "underapprox_2-2.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main(void) { + unsigned int x = 0; + unsigned int y = 1; + + while (x < 6) { + x++; + y *= 2; + } + + __VERIFIER_assert(x == 6); +} diff --git a/data/benchmarks/sv-benchmarks/loop-crafted/License.txt b/data/benchmarks/sv-benchmarks/loop-crafted/License.txt new file mode 100644 index 000000000..ba81f8282 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-crafted/License.txt @@ -0,0 +1 @@ +../../LICENSE.Apache-2.0.txt \ No newline at end of file diff --git a/data/benchmarks/sv-benchmarks/loop-crafted/Makefile b/data/benchmarks/sv-benchmarks/loop-crafted/Makefile new file mode 100644 index 000000000..20229722e --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-crafted/Makefile @@ -0,0 +1,14 @@ +# This file is part of the SV-Benchmarks collection of verification tasks: +# https://github.com/sosy-lab/sv-benchmarks +# +# SPDX-FileCopyrightText: 2015-2016 Daniel Liew +# SPDX-FileCopyrightText: 2015-2020 The SV-Benchmarks Community +# +# SPDX-License-Identifier: Apache-2.0 + +LEVEL := ../ + +CLANG_WARNINGS := \ + -Wno-error=uninitialized \ + +include $(LEVEL)/Makefile.config diff --git a/data/benchmarks/sv-benchmarks/loop-crafted/README.txt b/data/benchmarks/sv-benchmarks/loop-crafted/README.txt new file mode 100644 index 000000000..6ba1ce092 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-crafted/README.txt @@ -0,0 +1,5 @@ +Benchmark used to verify Chimdyalwar, Bharti, et al. "VeriAbs: Verification by abstraction (competition contribution)." +International Conference on Tools and Algorithms for the Construction and Analysis of Systems. Springer, Berlin, Heidelberg, 2017. + +Programs ending on -reducer.c are transformations of benchmark tasks used in the above paper. These transformed +programs were generated during reducer-based conditional model checking. diff --git a/data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_1-1.c b/data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_1-1.c new file mode 100644 index 000000000..3934072f7 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_1-1.c @@ -0,0 +1,36 @@ +/* Benchmark used to verify Chimdyalwar, Bharti, et al. "VeriAbs: Verification by abstraction (competition contribution)." +International Conference on Tools and Algorithms for the Construction and Analysis of Systems. Springer, Berlin, Heidelberg, 2017.*/ + +#define SIZE 1000 +extern void abort(void); +#include +void reach_error() { assert(0); } +void __VERIFIER_assert(int cond) +{ + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main() +{ + unsigned int array[SIZE]; + unsigned int index; + + for (index = 0; index < SIZE; index++) { + array[index] = (index % 2); + } + + for (index = 0; index < SIZE; index++) { + if (index % 2 == 0) { + __VERIFIER_assert(array[index] == 0); + } else { + __VERIFIER_assert(array[index] != 0); + } + } + +} + + + diff --git a/data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_1-2.c b/data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_1-2.c new file mode 100644 index 000000000..8f5cdbc62 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_1-2.c @@ -0,0 +1,40 @@ +/* Benchmark used to verify Chimdyalwar, Bharti, et al. "VeriAbs: Verification by abstraction (competition contribution)." +International Conference on Tools and Algorithms for the Construction and Analysis of Systems. Springer, Berlin, Heidelberg, 2017.*/ + +#define SIZE 10000 +extern void abort(void); +#include +void reach_error() { assert(0); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) +{ + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +unsigned int __VERIFIER_nondet_uint(); + +int main() +{ + unsigned int array[SIZE]; + unsigned int index = 0; + unsigned int tmp = 0; + + while (1) { + index = __VERIFIER_nondet_uint(); + if (index >= SIZE) { + break; + } + array[index] = index; + tmp = index; + } + + __VERIFIER_assert(tmp < SIZE && array[tmp] == tmp); + + +} diff --git a/data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_2.c b/data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_2.c new file mode 100644 index 000000000..c074f94df --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_2.c @@ -0,0 +1,37 @@ +/* Benchmark used to verify Chimdyalwar, Bharti, et al. "VeriAbs: Verification by abstraction (competition contribution)." +International Conference on Tools and Algorithms for the Construction and Analysis of Systems. Springer, Berlin, Heidelberg, 2017.*/ + +#define SIZE 10000 +extern void abort(void); +#include +void reach_error() { assert(0); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) +{ + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +unsigned int __VERIFIER_nondet_uint(); + +int main() +{ + unsigned int array[SIZE]; + unsigned int index; + + for (index = 0; index < SIZE; index++) { + unsigned int tmp = __VERIFIER_nondet_uint(); + assume_abort_if_not(tmp > index); + array[index] = tmp; + } + + for (index = 0; index < SIZE; index++) { + __VERIFIER_assert(array[index] > index); + } + +} diff --git a/data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_3.c b/data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_3.c new file mode 100644 index 000000000..b2546e325 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_3.c @@ -0,0 +1,37 @@ +/* Benchmark used to verify Chimdyalwar, Bharti, et al. "VeriAbs: Verification by abstraction (competition contribution)." +International Conference on Tools and Algorithms for the Construction and Analysis of Systems. Springer, Berlin, Heidelberg, 2017.*/ + +//This program is similar to loops/sum03_true-unreach-call_false-termination.i but uses array index and value +#define SIZE 10000 +extern void abort(void); +#include +void reach_error() { assert(0); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) +{ + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main() +{ + unsigned int array[SIZE]; + unsigned int index = 0; + unsigned int tmp = 0; + + while (index < SIZE) { + array[index] = tmp; + index = index + 1; + tmp = tmp + 2; + } + + for (index = 0; index < SIZE; index++) { + __VERIFIER_assert((array[index] == 2*index) || (array[index] == 0)); + } + +} diff --git a/data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_4.c b/data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_4.c new file mode 100644 index 000000000..bef536f74 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_4.c @@ -0,0 +1,54 @@ +/* Benchmark used to verify Chimdyalwar, Bharti, et al. "VeriAbs: Verification by abstraction (competition contribution)." +International Conference on Tools and Algorithms for the Construction and Analysis of Systems. Springer, Berlin, Heidelberg, 2017.*/ + +#define SIZE 100000 +extern void abort(void); +#include +void reach_error() { assert(0); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) +{ + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +unsigned int __VERIFIER_nondet_uint(); + +int main() +{ + unsigned int array[SIZE]; + unsigned int index1; + unsigned int index2; + unsigned int loop_entered = 0; + + for (unsigned i = 0; i < SIZE; ++i) { + array[i] = __VERIFIER_nondet_uint(); + } + + index1 = __VERIFIER_nondet_uint(); + assume_abort_if_not(index1 < SIZE); + index2 = __VERIFIER_nondet_uint(); + assume_abort_if_not(index2 < SIZE); + + while (index1 < index2) { + __VERIFIER_assert((index1 < SIZE) && (index2 < SIZE)); + assume_abort_if_not(array[index1] == array[index2]); + index1++; + index2--; + loop_entered = 1; + } + + if (loop_entered) { + while (index2 < index1) { + __VERIFIER_assert(array[index1] == array[index2]); + index2++; + index1--; + } + } + +} diff --git a/data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_4.i.v+lhb-reducer.c b/data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_4.i.v+lhb-reducer.c new file mode 100644 index 000000000..da7dbfbc3 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_4.i.v+lhb-reducer.c @@ -0,0 +1,200 @@ +int __return_main; +void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "simple_array_index_value_4.i.v+lhb-reducer.c", 4, "reach_error"); } +void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond); +unsigned int __VERIFIER_nondet_uint(); +int main(); +int __tmp_155_0; +int __return_136; + int main() + { + unsigned int main__array[100000]; + unsigned int main__index1; + unsigned int main__index2; + unsigned int main__loop_entered = 0; + for (unsigned i = 0; i < 100000; ++i) + { + main__array[i] = __VERIFIER_nondet_uint(); + } + main__index1 = __VERIFIER_nondet_uint(); + if (main__index1 < 100000) + { + main__index2 = __VERIFIER_nondet_uint(); + if (main__index2 < 100000) + { + if (main__index1 < main__index2) + { + int main____CPAchecker_TMP_0; + if (main__index1 < 100000) + { + if (main__index2 < 100000) + { + main____CPAchecker_TMP_0 = 1; + label_149:; + { + int __tmp_1; + __tmp_1 = main____CPAchecker_TMP_0; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_1; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + __tmp_155_0 = main____CPAchecker_TMP_0; + label_155:; + main____CPAchecker_TMP_0 = __tmp_155_0; + if ((main__array[main__index1]) == (main__array[main__index2])) + { + unsigned int main____CPAchecker_TMP_1 = main__index1; + main__index1 = main__index1 + 1; + unsigned int main____CPAchecker_TMP_2 = main__index2; + main__index2 = main__index2 - 1; + main__loop_entered = 1; + if (main__index1 < main__index2) + { + int main____CPAchecker_TMP_0; + if (main__index1 < 100000) + { + if (main__index2 < 100000) + { + main____CPAchecker_TMP_0 = 1; + label_172:; + { + int __tmp_2; + __tmp_2 = main____CPAchecker_TMP_0; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_2; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + __tmp_155_0 = main____CPAchecker_TMP_0; + goto label_155; + } + } + } + else + { + label_171:; + main____CPAchecker_TMP_0 = 0; + goto label_172; + } + } + else + { + goto label_171; + } + } + else + { + if (!(main__loop_entered == 0)) + { + label_132:; + if (main__index2 < main__index1) + { + { + int __tmp_3; + __tmp_3 = (main__array[main__index1]) == (main__array[main__index2]); + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_3; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + label_125:; + unsigned int main____CPAchecker_TMP_3 = main__index2; + main__index2 = main__index2 + 1; + unsigned int main____CPAchecker_TMP_4 = main__index1; + main__index1 = main__index1 - 1; + goto label_132; + } + } + } + else + { + label_135:; + return __return_main; + } + } + else + { + goto label_135; + } + } + } + else + { + return __return_main; + } + } + } + } + else + { + label_148:; + main____CPAchecker_TMP_0 = 0; + goto label_149; + } + } + else + { + goto label_148; + } + } + else + { + if (!(main__loop_entered == 0)) + { + if (main__index2 < main__index1) + { + { + int __tmp_4; + __tmp_4 = (main__array[main__index1]) == (main__array[main__index2]); + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_4; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + goto label_125; + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } diff --git a/data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_4.i.v+nlh-reducer.c b/data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_4.i.v+nlh-reducer.c new file mode 100644 index 000000000..dbe7e87be --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_4.i.v+nlh-reducer.c @@ -0,0 +1,172 @@ +int __return_main; +void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "simple_array_index_value_4.i.v+nlh-reducer.c", 4, "reach_error"); } +void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond); +unsigned int __VERIFIER_nondet_uint(); +int main(); +int __tmp_155_0; +int __return_136; + int main() + { + unsigned int main__array[100000]; + unsigned int main__index1; + unsigned int main__index2; + unsigned int main__loop_entered = 0; + for (unsigned i = 0; i < 100000; ++i) + { + main__array[i] = __VERIFIER_nondet_uint(); + } + main__index1 = __VERIFIER_nondet_uint(); + if (main__index1 < 100000) + { + main__index2 = __VERIFIER_nondet_uint(); + if (main__index2 < 100000) + { + if (main__index1 < main__index2) + { + int main____CPAchecker_TMP_0; + if (main__index1 < 100000) + { + if (main__index2 < 100000) + { + main____CPAchecker_TMP_0 = 1; + label_149:; + { + int __tmp_1; + __tmp_1 = main____CPAchecker_TMP_0; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_1; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + __tmp_155_0 = main____CPAchecker_TMP_0; + label_155:; + main____CPAchecker_TMP_0 = __tmp_155_0; + if ((main__array[main__index1]) == (main__array[main__index2])) + { + unsigned int main____CPAchecker_TMP_1 = main__index1; + main__index1 = main__index1 + 1; + unsigned int main____CPAchecker_TMP_2 = main__index2; + main__index2 = main__index2 - 1; + main__loop_entered = 1; + if (main__index1 < main__index2) + { + int main____CPAchecker_TMP_0; + if (main__index1 < 100000) + { + if (main__index2 < 100000) + { + main____CPAchecker_TMP_0 = 1; + label_170:; + { + int __tmp_2; + __tmp_2 = main____CPAchecker_TMP_0; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_2; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + __tmp_155_0 = main____CPAchecker_TMP_0; + goto label_155; + } + } + } + else + { + label_169:; + main____CPAchecker_TMP_0 = 0; + goto label_170; + } + } + else + { + goto label_169; + } + } + else + { + label_116:; + if (!(main__loop_entered == 0)) + { + label_132:; + if (main__index2 < main__index1) + { + { + int __tmp_3; + __tmp_3 = (main__array[main__index1]) == (main__array[main__index2]); + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_3; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + unsigned int main____CPAchecker_TMP_3 = main__index2; + main__index2 = main__index2 + 1; + unsigned int main____CPAchecker_TMP_4 = main__index1; + main__index1 = main__index1 - 1; + goto label_132; + } + } + } + else + { + label_135:; + return __return_main; + } + } + else + { + goto label_135; + } + } + } + else + { + return __return_main; + } + } + } + } + else + { + label_148:; + main____CPAchecker_TMP_0 = 0; + goto label_149; + } + } + else + { + goto label_148; + } + } + else + { + goto label_116; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } diff --git a/data/benchmarks/sv-benchmarks/loop-crafted/simple_vardep_1.c b/data/benchmarks/sv-benchmarks/loop-crafted/simple_vardep_1.c new file mode 100644 index 000000000..16ffe4060 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-crafted/simple_vardep_1.c @@ -0,0 +1,29 @@ +/* Benchmark used to verify Chimdyalwar, Bharti, et al. "VeriAbs: Verification by abstraction (competition contribution)." +International Conference on Tools and Algorithms for the Construction and Analysis of Systems. Springer, Berlin, Heidelberg, 2017.*/ + +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "simple_vardep_1.c", 6, "reach_error"); } +void __VERIFIER_assert(int cond) +{ + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main() +{ + unsigned int i = 0; + unsigned int j = 0; + unsigned int k = 0; + + while (k < 0x0fffffff) { + i = i + 1; + j = j + 2; + k = k + 3; + + __VERIFIER_assert(k == (i + j)); + } + +} diff --git a/data/benchmarks/sv-benchmarks/loop-crafted/simple_vardep_2.c b/data/benchmarks/sv-benchmarks/loop-crafted/simple_vardep_2.c new file mode 100644 index 000000000..adbb0aee2 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-crafted/simple_vardep_2.c @@ -0,0 +1,28 @@ +/* Benchmark used to verify Chimdyalwar, Bharti, et al. "VeriAbs: Verification by abstraction (competition contribution)." +International Conference on Tools and Algorithms for the Construction and Analysis of Systems. Springer, Berlin, Heidelberg, 2017.*/ + +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "simple_vardep_2.c", 6, "reach_error"); } +void __VERIFIER_assert(int cond) +{ + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main() +{ + unsigned int i = 0; + unsigned int j = 0; + unsigned int k = 0; + + while (k < 0x0fffffff) { + i = i + 1; + j = j + 2; + k = k + 3; + __VERIFIER_assert((k == 3*i) && (j == 2*i)); + } + +} diff --git a/data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/License.txt b/data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/License.txt new file mode 100644 index 000000000..ba81f8282 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/License.txt @@ -0,0 +1 @@ +../../LICENSE.Apache-2.0.txt \ No newline at end of file diff --git a/data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/Makefile b/data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/Makefile new file mode 100644 index 000000000..20229722e --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/Makefile @@ -0,0 +1,14 @@ +# This file is part of the SV-Benchmarks collection of verification tasks: +# https://github.com/sosy-lab/sv-benchmarks +# +# SPDX-FileCopyrightText: 2015-2016 Daniel Liew +# SPDX-FileCopyrightText: 2015-2020 The SV-Benchmarks Community +# +# SPDX-License-Identifier: Apache-2.0 + +LEVEL := ../ + +CLANG_WARNINGS := \ + -Wno-error=uninitialized \ + +include $(LEVEL)/Makefile.config diff --git a/data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/README.txt b/data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/README.txt new file mode 100644 index 000000000..9e663979b --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/README.txt @@ -0,0 +1,7 @@ +Benchmarks used for numerical analysis and scientific computing. Contributed by CS1424, Digital Signal Processing Group , ETCE, ISI Kolkata : + +1) Loop1 : The benchmark computes e^x using taylor series. At any iteration of the loop, the computed value by taylor series expansion should be lesser than 1/1-x, such that |x|<1 (Geometric progression). + +2) Loop2,3 : These benchmarks compute values of sin(x) and cos(x) using Taylor series. For various ranges of radians, sin values are greater than cos, and vice versa. After any iterations, the assertion must hold. + +3) Loop4,5 : Loop4 is summing the values of sin and cos, both are having phase synchronization. Loop5 is having sin and cos, out of phase. Summation of values over any number of iterations, must hold the assertion. diff --git a/data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop1-1.c b/data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop1-1.c new file mode 100644 index 000000000..c8edd4c0a --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop1-1.c @@ -0,0 +1,41 @@ +/* 1933131 : + * Taylor Series : + * 1/1-x = 1+x+x^2+x^3 ..... + * e^x = 1+x+x^2/2!+x^3/3! .... + */ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "loop1-1.c", 8, "reach_error"); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: {reach_error();abort();} } } + +extern float __VERIFIER_nondet_float() ; +extern int __VERIFIER_nondet_int() ; + +int main() +{ + float x = __VERIFIER_nondet_float() ; + assume_abort_if_not(x > -1.0) ; + assume_abort_if_not(x < 1.0) ; + float exp = 1.0 ; + float term = 1.0 ; + unsigned int count = 1 ; + float result = 2*(1/(1-x)) ; + int temp ; + + while(true) + { + term = term * (x/count) ; + exp = exp + term ; + count++ ; + + temp = __VERIFIER_nondet_int() ; + if(temp ==0 ) break ; + } + + __VERIFIER_assert( result >= exp ) ; + return 0 ; +} diff --git a/data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop1-2.c b/data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop1-2.c new file mode 100644 index 000000000..3d55b9d8c --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop1-2.c @@ -0,0 +1,39 @@ +/* 1933131 : + * Taylor Series : + * 1/1-x = 1+x+x^2+x^3 ..... + * e^x = 1+x+x^2/2!+x^3/3! .... + */ +extern float __VERIFIER_nondet_float() ; +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "loop1-2.c", 9, "reach_error"); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: {reach_error();abort();} } } +extern int __VERIFIER_nondet_int() ; + + +int main() +{ + float x = __VERIFIER_nondet_float() ; + float exp = 1.0 ; + float term = 1.0 ; + unsigned int count = 1 ; + float result = 2*(1/(1-x)) ; + int temp ; + + while(true) + { + term = term * (x/count) ; + exp = exp + term ; + count++ ; + + temp = __VERIFIER_nondet_int() ; + if(temp ==0 ) break ; + } + + __VERIFIER_assert( result >= exp ) ; + return 0 ; +} diff --git a/data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop2-1.c b/data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop2-1.c new file mode 100644 index 000000000..45479dc69 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop2-1.c @@ -0,0 +1,51 @@ +/* 1933131 : + * Taylor series : + * sin(x) > cos(x) for x in (pi/4,pi) + * */ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "loop2-1.c", 7, "reach_error"); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: {reach_error();abort();} } } + +float pi = 3.14159 ; +extern float __VERIFIER_nondet_float() ; +extern int __VERIFIER_nondet_int() ; + +int main() +{ + float x = __VERIFIER_nondet_float() ; + float octant = pi/3 ; + assume_abort_if_not(x > 0 && x < octant) ; + float oddExp = x ; + float evenExp = 1.0 ; + float term = x ; + unsigned int count = 2 ; + int multFactor = 0 ; + int temp ; + + while(true) + { + term = term * (x/count) ; + multFactor = (count>>1 % 2 == 0) ? 1 : -1 ; + + evenExp = evenExp + multFactor*term ; + + count++ ; + + term = term * (x/count) ; + + oddExp = oddExp + multFactor*term ; + + count++ ; + + temp = __VERIFIER_nondet_int() ; + if(temp == 0) break ; + } + + __VERIFIER_assert( oddExp >= evenExp ) ; + return 0 ; +} diff --git a/data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop2-2.c b/data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop2-2.c new file mode 100644 index 000000000..a19c6eb85 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop2-2.c @@ -0,0 +1,51 @@ +/* 1933131 : + * Taylor series : + * sin(x) > cos(x) for x in (pi/4,pi) + * */ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "loop2-2.c", 7, "reach_error"); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: {reach_error();abort();} } } + +float pi = 3.14159 ; +extern float __VERIFIER_nondet_float() ; +extern int __VERIFIER_nondet_int() ; + +int main() +{ + float x = __VERIFIER_nondet_float() ; + float octant = pi/3 ; + assume_abort_if_not(x > octant && x < pi) ; + float oddExp = x ; + float evenExp = 1.0 ; + float term = x ; + unsigned int count = 2 ; + int multFactor = 0 ; + int temp ; + + while(true) + { + term = term * (x/count) ; + multFactor = (count>>1 % 2 == 0) ? 1 : -1 ; + + evenExp = evenExp + multFactor*term ; + + count++ ; + + term = term * (x/count) ; + + oddExp = oddExp + multFactor*term ; + + count++ ; + + temp = __VERIFIER_nondet_int() ; + if(temp == 0) break ; + } + + __VERIFIER_assert( oddExp >= evenExp ) ; + return 0 ; +} diff --git a/data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop3.c b/data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop3.c new file mode 100644 index 000000000..dd73d820d --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop3.c @@ -0,0 +1,53 @@ +/* 1933131 : + * Taylor series : + * sin(x) < cos(x) for x in (0,pi/4) + * */ + +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "loop3.c", 8, "reach_error"); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: {reach_error();abort();} } } + +float pi = 3.14159 ; +extern float __VERIFIER_nondet_float() ; +extern int __VERIFIER_nondet_int() ; + +int main() +{ + float x = __VERIFIER_nondet_float() ; + float octant1 = 0 ; + float octant2 = pi/8 ; + assume_abort_if_not(x > octant1 && x < octant2) ; + float oddExp = x ; + float evenExp = 1.0 ; + float term = x ; + unsigned int count = 2 ; + int multFactor = 0 ; + int temp ; + + while(true) + { + term = term * (x/count) ; + multFactor = (count>>1 % 2 == 0) ? 1 : -1 ; + + evenExp = evenExp + multFactor*term ; + + count++ ; + + term = term * (x/count) ; + + oddExp = oddExp + multFactor*term ; + + count++ ; + + temp = __VERIFIER_nondet_int() ; + if(temp == 0) break ; + } + + __VERIFIER_assert( evenExp >= oddExp ) ; + return 0 ; +} diff --git a/data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop4.c b/data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop4.c new file mode 100644 index 000000000..d9458bdb0 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop4.c @@ -0,0 +1,59 @@ +/* 1933131 : + * sin(x+2pi) and cos(x+pi) are in same phase. Difference should ideally be + * zero. + * */ +#include + +extern void abort(void); +#include +void reach_error() { assert(0); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: {reach_error();abort();} } } + +float pi = 3.14159 ; +extern float __VERIFIER_nondet_float() ; +extern int __VERIFIER_nondet_int() ; + + +double diff(double x1,double x2) +{ + if(x1 > x2) + return (x1-x2) ; + else + return (x2-x1) ; +} + +double radianMeasure(int degrees) +{ + return (degrees * (pi/180)) ; +} +int main() +{ + int x ; + float angleInRadian ; + float phaseLag = pi/2, phaseLead=pi ; + double sum1=0.0, sum2 = 0.0 ; + int temp; + double count=0.0 ; + + + + while(true) + { + x = __VERIFIER_nondet_int() ; + assume_abort_if_not(x > -180 && x < 180) ; + angleInRadian = radianMeasure(x) ; + sum2 = sum2 + sin(angleInRadian+2*phaseLead); + sum1 = sum1 + cos(angleInRadian+phaseLag) ; + + temp = __VERIFIER_nondet_int() ; + count++ ; + if(temp == 0) break ; + } + + __VERIFIER_assert(diff(sum1,sum2) <= count) ; + return 0 ; +} diff --git a/data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop5.c b/data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop5.c new file mode 100644 index 000000000..c502eddb8 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop5.c @@ -0,0 +1,60 @@ +/* 1933131 : + * Series Trigonomtric : + * sin(x+2*pi) and cos(x-3*pi/2) are out of phase. + * Max difference : 2* No. of iterations. + * */ +#include + +extern void abort(void); +#include +void reach_error() { assert(0); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: {reach_error();abort();} } } + +float pi = 3.14159 ; +extern float __VERIFIER_nondet_float() ; +extern int __VERIFIER_nondet_int() ; + + +double diff(double x1,double x2) +{ + if(x1 > x2) + return (x1-x2) ; + else + return (x2-x1) ; +} + +double radianMeasure(int degrees) +{ + return (degrees * (pi/180)) ; +} +int main() +{ + int x ; + float angleInRadian ; + float phaseLag = pi/2, phaseLead=pi ; + double sum1=0.0, sum2 = 0.0 ; + int temp; + double count=0.0 ; + + + + while(true) + { + x = __VERIFIER_nondet_int() ; + assume_abort_if_not(x > -180 && x < 180) ; + angleInRadian = radianMeasure(x) ; + sum2 = sum2 + sin(angleInRadian+2*phaseLead); + sum1 = sum1 + cos(angleInRadian+3*phaseLag) ; + + temp = __VERIFIER_nondet_int() ; + count++ ; + if(temp == 0) break ; + } + + __VERIFIER_assert(diff(sum1,sum2) <= count*2) ; + return 0 ; +} diff --git a/data/benchmarks/sv-benchmarks/loop-industry-pattern/License.txt b/data/benchmarks/sv-benchmarks/loop-industry-pattern/License.txt new file mode 100644 index 000000000..ba81f8282 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-industry-pattern/License.txt @@ -0,0 +1 @@ +../../LICENSE.Apache-2.0.txt \ No newline at end of file diff --git a/data/benchmarks/sv-benchmarks/loop-industry-pattern/Makefile b/data/benchmarks/sv-benchmarks/loop-industry-pattern/Makefile new file mode 100644 index 000000000..56c00a5a7 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-industry-pattern/Makefile @@ -0,0 +1,15 @@ +# This file is part of the SV-Benchmarks collection of verification tasks: +# https://github.com/sosy-lab/sv-benchmarks +# +# SPDX-FileCopyrightText: 2015-2016 Daniel Liew +# SPDX-FileCopyrightText: 2015-2020 The SV-Benchmarks Community +# +# SPDX-License-Identifier: Apache-2.0 + +LEVEL := ../ + +CLANG_WARNINGS = \ + -Wno-error=uninitialized \ + -Wno-error=tautological-compare \ + +include $(LEVEL)/Makefile.config diff --git a/data/benchmarks/sv-benchmarks/loop-industry-pattern/ReadMe.txt b/data/benchmarks/sv-benchmarks/loop-industry-pattern/ReadMe.txt new file mode 100644 index 000000000..00d4f6f5e --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-industry-pattern/ReadMe.txt @@ -0,0 +1,10 @@ +These programs are based on patterns observed in industry applications. + +aiob 1..4: In these programs termination of loops depends on content of constant two-dimensional array. + +ofuf 1..5: The property to be verified in these programs depends on variables being modified inside the loop. These loop variables are involved in complex linear/non-linear arithmetic computations. Also, loop termination condition depends on these computational operations. + +nested_true: This program has one infinite and one large bounded loop. Property to be verified is inside infinite loop and has dependency on variables being modified in +both loops. Therefore good loop analysis is needed to prove this property. + +mod3_true: This program has non-deterministic loop and property to be verified depends on variables being modified inside the loop. diff --git a/data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_1.c b/data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_1.c new file mode 100644 index 000000000..3b6132543 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_1.c @@ -0,0 +1,192 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "aiob_1.c", 3, "reach_error"); } +extern unsigned int __VERIFIER_nondet_uint(void) ; +struct Velocity_Mode; +struct PCMode; +struct DeviceControl; +struct _IO_FILE; +struct _IO_marker; +typedef struct DeviceControl DEV_CNTRL; +typedef struct _IO_FILE FILE; +typedef struct _IO_FILE __FILE; +typedef struct _IO_FILE _IO_FILE; +typedef long __off_t; +typedef long long __quad_t; +typedef __quad_t __off64_t; +typedef void _IO_lock_t; +typedef struct PCMode POS_CTRL_MODE; +typedef struct Velocity_Mode VLMODE; +typedef unsigned int size_t; +struct _IO_FILE{ +int Id_MCDC_0; +char * Id_MCDC_1; +char * Id_MCDC_2; +char * Id_MCDC_3; +char * Id_MCDC_4; +char * Id_MCDC_5; +char * Id_MCDC_6; +char * Id_MCDC_7; +char * Id_MCDC_8; +char * Id_MCDC_9; +char * Id_MCDC_10; +char * Id_MCDC_11; +struct _IO_marker* Id_MCDC_12; +struct _IO_FILE* Id_MCDC_13; +int Id_MCDC_14; +int Id_MCDC_15; +__off_t Id_MCDC_16; +unsigned short Id_MCDC_17; +signed char Id_MCDC_18; +char Id_MCDC_19 [1]; +_IO_lock_t* Id_MCDC_20; +__off64_t Id_MCDC_21; +void * Id_MCDC_22; +void * Id_MCDC_23; +void * Id_MCDC_24; +void * Id_MCDC_25; +size_t Id_MCDC_26; +int Id_MCDC_27; +char Id_MCDC_28 [40]; +} ; +typedef unsigned char UINT8; +typedef unsigned short UINT16; +typedef unsigned int UINT32; +typedef unsigned long long UINT64; +typedef char INT8; +typedef char CHAR; +typedef char * STRING; +typedef short INT16; +struct DeviceControl{ +INT8* Id_MCDC_29; +UINT16* Id_MCDC_30; +UINT16* Id_MCDC_31; +INT16* Id_MCDC_32; +INT16* Id_MCDC_33; +INT16* Id_MCDC_34; +INT16* Id_MCDC_35; +INT16* Id_MCDC_36; +INT8* Id_MCDC_37; +} ; +typedef int INT32; +struct PCMode{ +INT16* Id_MCDC_38; +INT32* Id_MCDC_39; +INT32* Id_MCDC_40; +INT32* Id_MCDC_41; +UINT16* Id_MCDC_42; +UINT32* Id_MCDC_43; +UINT16* Id_MCDC_44; +INT32* Id_MCDC_45; +INT32* Id_MCDC_46; +} ; +struct Velocity_Mode{ +INT16* Id_MCDC_47; +INT16* Id_MCDC_48; +INT16* Id_MCDC_49; +INT16* Id_MCDC_50; +INT16* Id_MCDC_51; +UINT32* Id_MCDC_52; +INT32* Id_MCDC_53; +INT32* Id_MCDC_54; +INT32* Id_MCDC_55; +INT32* Id_MCDC_56; +UINT8* Id_MCDC_57; +UINT32* Id_MCDC_58; +UINT32* Id_MCDC_59; +UINT32* Id_MCDC_60; +UINT32* Id_MCDC_61; +UINT32* Id_MCDC_62; +UINT32* Id_MCDC_63; +UINT32* Id_MCDC_64; +UINT32* Id_MCDC_65; +UINT32* Id_MCDC_66; +UINT32* Id_MCDC_67; +UINT32* Id_MCDC_68; +UINT32* Id_MCDC_69; +UINT32* Id_MCDC_70; +UINT32* Id_MCDC_71; +UINT32* Id_MCDC_72; +UINT32* Id_MCDC_73; +UINT32* Id_MCDC_74; +UINT32* Id_MCDC_75; +UINT32* Id_MCDC_76; +UINT16* Id_MCDC_77; +UINT32* Id_MCDC_78; +UINT16* Id_MCDC_79; +UINT32* Id_MCDC_80; +UINT16* Id_MCDC_81; +UINT32* Id_MCDC_82; +UINT32* Id_MCDC_83; +UINT32* Id_MCDC_84; +INT16* Id_MCDC_85; +INT16* Id_MCDC_86; +INT16* Id_MCDC_87; +} ; +typedef long INT64; +typedef float REAL32; +UINT32 Id_MCDC_92(UINT16 Id_MCDC_88, UINT8 Id_MCDC_89, UINT32 Id_MCDC_93, void * Id_MCDC_91) +{ + UINT32 x=__VERIFIER_nondet_uint(); + return x; +} +void Id_MCDC_95(VLMODE* Id_MCDC_94); +extern FILE* fopen(char const* Id_MCDC_96, char const* Id_MCDC_97); +int main(); +void __VERIFIER_assert(int Id_MCDC_98); +unsigned int Id_MCDC_99; + +void Id_MCDC_95(VLMODE* Id_MCDC_94) +{ +void * Id_MCDC_100 [41]={Id_MCDC_94->Id_MCDC_47, Id_MCDC_94->Id_MCDC_48, Id_MCDC_94->Id_MCDC_49, Id_MCDC_94->Id_MCDC_50, Id_MCDC_94->Id_MCDC_51, Id_MCDC_94->Id_MCDC_52, Id_MCDC_94->Id_MCDC_53, Id_MCDC_94->Id_MCDC_54, Id_MCDC_94->Id_MCDC_55, Id_MCDC_94->Id_MCDC_56, Id_MCDC_94->Id_MCDC_57, Id_MCDC_94->Id_MCDC_58, Id_MCDC_94->Id_MCDC_59, Id_MCDC_94->Id_MCDC_60, Id_MCDC_94->Id_MCDC_61, Id_MCDC_94->Id_MCDC_62, Id_MCDC_94->Id_MCDC_63, Id_MCDC_94->Id_MCDC_64, Id_MCDC_94->Id_MCDC_65, Id_MCDC_94->Id_MCDC_66, Id_MCDC_94->Id_MCDC_67, Id_MCDC_94->Id_MCDC_68, Id_MCDC_94->Id_MCDC_69, Id_MCDC_94->Id_MCDC_70, Id_MCDC_94->Id_MCDC_71, Id_MCDC_94->Id_MCDC_72, Id_MCDC_94->Id_MCDC_73, Id_MCDC_94->Id_MCDC_74, Id_MCDC_94->Id_MCDC_75, Id_MCDC_94->Id_MCDC_76, Id_MCDC_94->Id_MCDC_77, Id_MCDC_94->Id_MCDC_78, Id_MCDC_94->Id_MCDC_79, Id_MCDC_94->Id_MCDC_80, Id_MCDC_94->Id_MCDC_81, Id_MCDC_94->Id_MCDC_82, Id_MCDC_94->Id_MCDC_83, Id_MCDC_94->Id_MCDC_84, Id_MCDC_94->Id_MCDC_85, Id_MCDC_94->Id_MCDC_86, Id_MCDC_94->Id_MCDC_87}; +UINT32 const Id_MCDC_101 [42] [3]={{( UINT16 ) 0x6042, ( UINT8 ) 0x00, ( UINT32 ) 0x0003}, {( UINT16 ) 0x6043, ( UINT8 ) 0x00, ( UINT32 ) 0x0003}, {( UINT16 ) 0x6053, ( UINT8 ) 0x00, ( UINT32 ) 0x0003}, {( UINT16 ) 0x6054, ( UINT8 ) 0x00, ( UINT32 ) 0x0003}, {( UINT16 ) 0x6055, ( UINT8 ) 0x00, ( UINT32 ) 0x0003}, {( UINT16 ) 0x604E, ( UINT8 ) 0x00, ( UINT32 ) 0x0007}, {( UINT16 ) 0x604C, ( UINT8 ) 0x01, ( UINT32 ) 0x0004}, {( UINT16 ) 0x604C, ( UINT8 ) 0x02, ( UINT32 ) 0x0004}, {( UINT16 ) 0x604B, ( UINT8 ) 0x01, ( UINT32 ) 0x0003}, {( UINT16 ) 0x604B, ( UINT8 ) 0x02, ( UINT32 ) 0x0003}, {( UINT16 ) 0x604D, ( UINT8 ) 0x00, ( UINT32 ) 0x02}, {( UINT16 ) 0x6046, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6046, ( UINT8 ) 0x02, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6047, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6047, ( UINT8 ) 0x02, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6047, ( UINT8 ) 0x0003, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6047, ( UINT8 ) 0x0004, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6058, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6058, ( UINT8 ) 0x02, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6059, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6059, ( UINT8 ) 0x02, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6059, ( UINT8 ) 0x0003, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6059, ( UINT8 ) 0x0004, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6056, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6056, ( UINT8 ) 0x02, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6057, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6057, ( UINT8 ) 0x02, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6057, ( UINT8 ) 0x0003, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6057, ( UINT8 ) 0x0004, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6048, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6048, ( UINT8 ) 0x02, ( UINT32 ) 0x0006}, {( UINT16 ) 0x6049, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6049, ( UINT8 ) 0x02, ( UINT32 ) 0x0006}, {( UINT16 ) 0x604A, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x604A, ( UINT8 ) 0x02, ( UINT32 ) 0x0006}, {( UINT16 ) 0x604F, ( UINT8 ) 0x00, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6050, ( UINT8 ) 0x00, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6051, ( UINT8 ) 0x00, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6044, ( UINT8 ) 0x00, ( UINT32 ) 0x0003}, {( UINT16 ) 0x6045, ( UINT8 ) 0x00, ( UINT32 ) 0x0003}, {( UINT16 ) 0x6052, ( UINT8 ) 0x00, ( UINT32 ) 0x0003}, {0x00, 0x00, 0x00}}; +UINT32 Id_MCDC_102=0; +while(Id_MCDC_101[Id_MCDC_102][0] != 0x00) +{ +Id_MCDC_92(Id_MCDC_101[Id_MCDC_102][0], (Id_MCDC_99 = Id_MCDC_102 , ("14_6632_4294986964" , __VERIFIER_assert((Id_MCDC_99 >= 0 && Id_MCDC_99 < 42))) , Id_MCDC_101[Id_MCDC_99])[1], Id_MCDC_101[Id_MCDC_102][2], Id_MCDC_100[Id_MCDC_102]); +Id_MCDC_102++ ; +} +} +int main() +{ +void * Id_MCDC_103; +void * Id_MCDC_104; +void * Id_MCDC_105; +void * Id_MCDC_106; +void * Id_MCDC_107; +void * Id_MCDC_108; +int Id_MCDC_109; +int Id_MCDC_110; +int Id_MCDC_111; +int Id_MCDC_112; +int Id_MCDC_113; +int Id_MCDC_114; +int Id_MCDC_115; +short Id_MCDC_116; +short Id_MCDC_117; +FILE* Id_MCDC_118; +unsigned short Id_MCDC_119; +unsigned short Id_MCDC_120; +unsigned short Id_MCDC_121=0; +unsigned short Id_MCDC_122=0; +char Id_MCDC_123; +char Id_MCDC_124; +VLMODE Id_MCDC_125; +POS_CTRL_MODE Id_MCDC_126; +DEV_CNTRL Id_MCDC_127; +Id_MCDC_118 = fopen("in.eds", "r"); +if(Id_MCDC_118 == (( void * ) 0)) +{ +return 1; +} +; +Id_MCDC_95( & Id_MCDC_125); +} +void __VERIFIER_assert(int Id_MCDC_98) +{ +if( ! (Id_MCDC_98)) +{ +ERROR : {reach_error();abort();} +} +return ; +} diff --git a/data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_2.c b/data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_2.c new file mode 100644 index 000000000..5b86212a7 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_2.c @@ -0,0 +1,192 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "aiob_2.c", 3, "reach_error"); } +extern unsigned int __VERIFIER_nondet_uint(void) ; +struct Velocity_Mode; +struct PCMode; +struct DeviceControl; +struct _IO_FILE; +struct _IO_marker; +typedef struct DeviceControl DEV_CNTRL; +typedef struct _IO_FILE FILE; +typedef struct _IO_FILE __FILE; +typedef struct _IO_FILE _IO_FILE; +typedef long __off_t; +typedef long long __quad_t; +typedef __quad_t __off64_t; +typedef void _IO_lock_t; +typedef struct PCMode POS_CTRL_MODE; +typedef struct Velocity_Mode VLMODE; +typedef unsigned int size_t; +struct _IO_FILE{ +int Id_MCDC_0; +char * Id_MCDC_1; +char * Id_MCDC_2; +char * Id_MCDC_3; +char * Id_MCDC_4; +char * Id_MCDC_5; +char * Id_MCDC_6; +char * Id_MCDC_7; +char * Id_MCDC_8; +char * Id_MCDC_9; +char * Id_MCDC_10; +char * Id_MCDC_11; +struct _IO_marker* Id_MCDC_12; +struct _IO_FILE* Id_MCDC_13; +int Id_MCDC_14; +int Id_MCDC_15; +__off_t Id_MCDC_16; +unsigned short Id_MCDC_17; +signed char Id_MCDC_18; +char Id_MCDC_19 [1]; +_IO_lock_t* Id_MCDC_20; +__off64_t Id_MCDC_21; +void * Id_MCDC_22; +void * Id_MCDC_23; +void * Id_MCDC_24; +void * Id_MCDC_25; +size_t Id_MCDC_26; +int Id_MCDC_27; +char Id_MCDC_28 [40]; +} ; +typedef unsigned char UINT8; +typedef unsigned short UINT16; +typedef unsigned int UINT32; +typedef unsigned long long UINT64; +typedef char INT8; +typedef char CHAR; +typedef char * STRING; +typedef short INT16; +struct DeviceControl{ +INT8* Id_MCDC_29; +UINT16* Id_MCDC_30; +UINT16* Id_MCDC_31; +INT16* Id_MCDC_32; +INT16* Id_MCDC_33; +INT16* Id_MCDC_34; +INT16* Id_MCDC_35; +INT16* Id_MCDC_36; +INT8* Id_MCDC_37; +} ; +typedef int INT32; +struct PCMode{ +INT16* Id_MCDC_38; +INT32* Id_MCDC_39; +INT32* Id_MCDC_40; +INT32* Id_MCDC_41; +UINT16* Id_MCDC_42; +UINT32* Id_MCDC_43; +UINT16* Id_MCDC_44; +INT32* Id_MCDC_45; +INT32* Id_MCDC_46; +} ; +struct Velocity_Mode{ +INT16* Id_MCDC_47; +INT16* Id_MCDC_48; +INT16* Id_MCDC_49; +INT16* Id_MCDC_50; +INT16* Id_MCDC_51; +UINT32* Id_MCDC_52; +INT32* Id_MCDC_53; +INT32* Id_MCDC_54; +INT32* Id_MCDC_55; +INT32* Id_MCDC_56; +UINT8* Id_MCDC_57; +UINT32* Id_MCDC_58; +UINT32* Id_MCDC_59; +UINT32* Id_MCDC_60; +UINT32* Id_MCDC_61; +UINT32* Id_MCDC_62; +UINT32* Id_MCDC_63; +UINT32* Id_MCDC_64; +UINT32* Id_MCDC_65; +UINT32* Id_MCDC_66; +UINT32* Id_MCDC_67; +UINT32* Id_MCDC_68; +UINT32* Id_MCDC_69; +UINT32* Id_MCDC_70; +UINT32* Id_MCDC_71; +UINT32* Id_MCDC_72; +UINT32* Id_MCDC_73; +UINT32* Id_MCDC_74; +UINT32* Id_MCDC_75; +UINT32* Id_MCDC_76; +UINT16* Id_MCDC_77; +UINT32* Id_MCDC_78; +UINT16* Id_MCDC_79; +UINT32* Id_MCDC_80; +UINT16* Id_MCDC_81; +UINT32* Id_MCDC_82; +UINT32* Id_MCDC_83; +UINT32* Id_MCDC_84; +INT16* Id_MCDC_85; +INT16* Id_MCDC_86; +INT16* Id_MCDC_87; +} ; +typedef long INT64; +typedef float REAL32; +UINT32 Id_MCDC_92(UINT16 Id_MCDC_88, UINT8 Id_MCDC_89, UINT32 Id_MCDC_93, void * Id_MCDC_91) +{ + UINT32 x=__VERIFIER_nondet_uint(); + return x; +} +void Id_MCDC_95(VLMODE* Id_MCDC_94); +extern FILE* fopen(char const* Id_MCDC_96, char const* Id_MCDC_97); +int main(); +void __VERIFIER_assert(int Id_MCDC_98); +unsigned int Id_MCDC_99; + +void Id_MCDC_95(VLMODE* Id_MCDC_94) +{ +void * Id_MCDC_100 [41]={Id_MCDC_94->Id_MCDC_47, Id_MCDC_94->Id_MCDC_48, Id_MCDC_94->Id_MCDC_49, Id_MCDC_94->Id_MCDC_50, Id_MCDC_94->Id_MCDC_51, Id_MCDC_94->Id_MCDC_52, Id_MCDC_94->Id_MCDC_53, Id_MCDC_94->Id_MCDC_54, Id_MCDC_94->Id_MCDC_55, Id_MCDC_94->Id_MCDC_56, Id_MCDC_94->Id_MCDC_57, Id_MCDC_94->Id_MCDC_58, Id_MCDC_94->Id_MCDC_59, Id_MCDC_94->Id_MCDC_60, Id_MCDC_94->Id_MCDC_61, Id_MCDC_94->Id_MCDC_62, Id_MCDC_94->Id_MCDC_63, Id_MCDC_94->Id_MCDC_64, Id_MCDC_94->Id_MCDC_65, Id_MCDC_94->Id_MCDC_66, Id_MCDC_94->Id_MCDC_67, Id_MCDC_94->Id_MCDC_68, Id_MCDC_94->Id_MCDC_69, Id_MCDC_94->Id_MCDC_70, Id_MCDC_94->Id_MCDC_71, Id_MCDC_94->Id_MCDC_72, Id_MCDC_94->Id_MCDC_73, Id_MCDC_94->Id_MCDC_74, Id_MCDC_94->Id_MCDC_75, Id_MCDC_94->Id_MCDC_76, Id_MCDC_94->Id_MCDC_77, Id_MCDC_94->Id_MCDC_78, Id_MCDC_94->Id_MCDC_79, Id_MCDC_94->Id_MCDC_80, Id_MCDC_94->Id_MCDC_81, Id_MCDC_94->Id_MCDC_82, Id_MCDC_94->Id_MCDC_83, Id_MCDC_94->Id_MCDC_84, Id_MCDC_94->Id_MCDC_85, Id_MCDC_94->Id_MCDC_86, Id_MCDC_94->Id_MCDC_87}; +UINT32 const Id_MCDC_101 [42] [3]={{( UINT16 ) 0x6042, ( UINT8 ) 0x00, ( UINT32 ) 0x0003}, {( UINT16 ) 0x6043, ( UINT8 ) 0x00, ( UINT32 ) 0x0003}, {( UINT16 ) 0x6053, ( UINT8 ) 0x00, ( UINT32 ) 0x0003}, {( UINT16 ) 0x6054, ( UINT8 ) 0x00, ( UINT32 ) 0x0003}, {( UINT16 ) 0x6055, ( UINT8 ) 0x00, ( UINT32 ) 0x0003}, {( UINT16 ) 0x604E, ( UINT8 ) 0x00, ( UINT32 ) 0x0007}, {( UINT16 ) 0x604C, ( UINT8 ) 0x01, ( UINT32 ) 0x0004}, {( UINT16 ) 0x604C, ( UINT8 ) 0x02, ( UINT32 ) 0x0004}, {( UINT16 ) 0x604B, ( UINT8 ) 0x01, ( UINT32 ) 0x0003}, {( UINT16 ) 0x604B, ( UINT8 ) 0x02, ( UINT32 ) 0x0003}, {( UINT16 ) 0x604D, ( UINT8 ) 0x00, ( UINT32 ) 0x02}, {( UINT16 ) 0x6046, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6046, ( UINT8 ) 0x02, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6047, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6047, ( UINT8 ) 0x02, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6047, ( UINT8 ) 0x0003, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6047, ( UINT8 ) 0x0004, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6058, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6058, ( UINT8 ) 0x02, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6059, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6059, ( UINT8 ) 0x02, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6059, ( UINT8 ) 0x0003, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6059, ( UINT8 ) 0x0004, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6056, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6056, ( UINT8 ) 0x02, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6057, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6057, ( UINT8 ) 0x02, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6057, ( UINT8 ) 0x0003, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6057, ( UINT8 ) 0x0004, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6048, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6048, ( UINT8 ) 0x02, ( UINT32 ) 0x0006}, {( UINT16 ) 0x6049, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6049, ( UINT8 ) 0x02, ( UINT32 ) 0x0006}, {( UINT16 ) 0x604A, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x604A, ( UINT8 ) 0x02, ( UINT32 ) 0x0006}, {( UINT16 ) 0x604F, ( UINT8 ) 0x00, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6050, ( UINT8 ) 0x00, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6051, ( UINT8 ) 0x00, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6044, ( UINT8 ) 0x00, ( UINT32 ) 0x0003}, {( UINT16 ) 0x6045, ( UINT8 ) 0x00, ( UINT32 ) 0x0003}, {( UINT16 ) 0x6052, ( UINT8 ) 0x00, ( UINT32 ) 0x0003}, {0x00, 0x00, 0x00}}; +UINT32 Id_MCDC_102=0; +while(Id_MCDC_101[Id_MCDC_102][0] != 0x00) +{ +Id_MCDC_92((Id_MCDC_99 = Id_MCDC_102 , ("16_6632_4294986959" , __VERIFIER_assert((Id_MCDC_99 >= 0 && Id_MCDC_99 < 42))) , Id_MCDC_101[Id_MCDC_99])[0], Id_MCDC_101[Id_MCDC_102][1], Id_MCDC_101[Id_MCDC_102][2], Id_MCDC_100[Id_MCDC_102]); +Id_MCDC_102++ ; +} +} +int main() +{ +void * Id_MCDC_103; +void * Id_MCDC_104; +void * Id_MCDC_105; +void * Id_MCDC_106; +void * Id_MCDC_107; +void * Id_MCDC_108; +int Id_MCDC_109; +int Id_MCDC_110; +int Id_MCDC_111; +int Id_MCDC_112; +int Id_MCDC_113; +int Id_MCDC_114; +int Id_MCDC_115; +short Id_MCDC_116; +short Id_MCDC_117; +FILE* Id_MCDC_118; +unsigned short Id_MCDC_119; +unsigned short Id_MCDC_120; +unsigned short Id_MCDC_121=0; +unsigned short Id_MCDC_122=0; +char Id_MCDC_123; +char Id_MCDC_124; +VLMODE Id_MCDC_125; +POS_CTRL_MODE Id_MCDC_126; +DEV_CNTRL Id_MCDC_127; +Id_MCDC_118 = fopen("in.eds", "r"); +if(Id_MCDC_118 == (( void * ) 0)) +{ +return 1; +} +; +Id_MCDC_95( & Id_MCDC_125); +} +void __VERIFIER_assert(int Id_MCDC_98) +{ +if( ! (Id_MCDC_98)) +{ +ERROR : {reach_error();abort();} +} +return ; +} diff --git a/data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_3.c b/data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_3.c new file mode 100644 index 000000000..5dcb0b06c --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_3.c @@ -0,0 +1,192 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "aiob_3.c", 3, "reach_error"); } +extern unsigned int __VERIFIER_nondet_uint(void) ; +struct Velocity_Mode; +struct PCMode; +struct DeviceControl; +struct _IO_FILE; +struct _IO_marker; +typedef struct DeviceControl DEV_CNTRL; +typedef struct _IO_FILE FILE; +typedef struct _IO_FILE __FILE; +typedef struct _IO_FILE _IO_FILE; +typedef long __off_t; +typedef long long __quad_t; +typedef __quad_t __off64_t; +typedef void _IO_lock_t; +typedef struct PCMode POS_CTRL_MODE; +typedef struct Velocity_Mode VLMODE; +typedef unsigned int size_t; +struct _IO_FILE{ +int Id_MCDC_0; +char * Id_MCDC_1; +char * Id_MCDC_2; +char * Id_MCDC_3; +char * Id_MCDC_4; +char * Id_MCDC_5; +char * Id_MCDC_6; +char * Id_MCDC_7; +char * Id_MCDC_8; +char * Id_MCDC_9; +char * Id_MCDC_10; +char * Id_MCDC_11; +struct _IO_marker* Id_MCDC_12; +struct _IO_FILE* Id_MCDC_13; +int Id_MCDC_14; +int Id_MCDC_15; +__off_t Id_MCDC_16; +unsigned short Id_MCDC_17; +signed char Id_MCDC_18; +char Id_MCDC_19 [1]; +_IO_lock_t* Id_MCDC_20; +__off64_t Id_MCDC_21; +void * Id_MCDC_22; +void * Id_MCDC_23; +void * Id_MCDC_24; +void * Id_MCDC_25; +size_t Id_MCDC_26; +int Id_MCDC_27; +char Id_MCDC_28 [40]; +} ; +typedef unsigned char UINT8; +typedef unsigned short UINT16; +typedef unsigned int UINT32; +typedef unsigned long long UINT64; +typedef char INT8; +typedef char CHAR; +typedef char * STRING; +typedef short INT16; +struct DeviceControl{ +INT8* Id_MCDC_29; +UINT16* Id_MCDC_30; +UINT16* Id_MCDC_31; +INT16* Id_MCDC_32; +INT16* Id_MCDC_33; +INT16* Id_MCDC_34; +INT16* Id_MCDC_35; +INT16* Id_MCDC_36; +INT8* Id_MCDC_37; +} ; +typedef int INT32; +struct PCMode{ +INT16* Id_MCDC_38; +INT32* Id_MCDC_39; +INT32* Id_MCDC_40; +INT32* Id_MCDC_41; +UINT16* Id_MCDC_42; +UINT32* Id_MCDC_43; +UINT16* Id_MCDC_44; +INT32* Id_MCDC_45; +INT32* Id_MCDC_46; +} ; +struct Velocity_Mode{ +INT16* Id_MCDC_47; +INT16* Id_MCDC_48; +INT16* Id_MCDC_49; +INT16* Id_MCDC_50; +INT16* Id_MCDC_51; +UINT32* Id_MCDC_52; +INT32* Id_MCDC_53; +INT32* Id_MCDC_54; +INT32* Id_MCDC_55; +INT32* Id_MCDC_56; +UINT8* Id_MCDC_57; +UINT32* Id_MCDC_58; +UINT32* Id_MCDC_59; +UINT32* Id_MCDC_60; +UINT32* Id_MCDC_61; +UINT32* Id_MCDC_62; +UINT32* Id_MCDC_63; +UINT32* Id_MCDC_64; +UINT32* Id_MCDC_65; +UINT32* Id_MCDC_66; +UINT32* Id_MCDC_67; +UINT32* Id_MCDC_68; +UINT32* Id_MCDC_69; +UINT32* Id_MCDC_70; +UINT32* Id_MCDC_71; +UINT32* Id_MCDC_72; +UINT32* Id_MCDC_73; +UINT32* Id_MCDC_74; +UINT32* Id_MCDC_75; +UINT32* Id_MCDC_76; +UINT16* Id_MCDC_77; +UINT32* Id_MCDC_78; +UINT16* Id_MCDC_79; +UINT32* Id_MCDC_80; +UINT16* Id_MCDC_81; +UINT32* Id_MCDC_82; +UINT32* Id_MCDC_83; +UINT32* Id_MCDC_84; +INT16* Id_MCDC_85; +INT16* Id_MCDC_86; +INT16* Id_MCDC_87; +} ; +typedef long INT64; +typedef float REAL32; +UINT32 Id_MCDC_92(UINT16 Id_MCDC_88, UINT8 Id_MCDC_89, UINT32 Id_MCDC_93, void * Id_MCDC_91) +{ + UINT32 x=__VERIFIER_nondet_uint(); + return x; +} +void Id_MCDC_95(VLMODE* Id_MCDC_94); +extern FILE* fopen(char const* Id_MCDC_96, char const* Id_MCDC_97); +int main(); +void __VERIFIER_assert(int Id_MCDC_98); +unsigned int Id_MCDC_99; + +void Id_MCDC_95(VLMODE* Id_MCDC_94) +{ +void * Id_MCDC_100 [41]={Id_MCDC_94->Id_MCDC_47, Id_MCDC_94->Id_MCDC_48, Id_MCDC_94->Id_MCDC_49, Id_MCDC_94->Id_MCDC_50, Id_MCDC_94->Id_MCDC_51, Id_MCDC_94->Id_MCDC_52, Id_MCDC_94->Id_MCDC_53, Id_MCDC_94->Id_MCDC_54, Id_MCDC_94->Id_MCDC_55, Id_MCDC_94->Id_MCDC_56, Id_MCDC_94->Id_MCDC_57, Id_MCDC_94->Id_MCDC_58, Id_MCDC_94->Id_MCDC_59, Id_MCDC_94->Id_MCDC_60, Id_MCDC_94->Id_MCDC_61, Id_MCDC_94->Id_MCDC_62, Id_MCDC_94->Id_MCDC_63, Id_MCDC_94->Id_MCDC_64, Id_MCDC_94->Id_MCDC_65, Id_MCDC_94->Id_MCDC_66, Id_MCDC_94->Id_MCDC_67, Id_MCDC_94->Id_MCDC_68, Id_MCDC_94->Id_MCDC_69, Id_MCDC_94->Id_MCDC_70, Id_MCDC_94->Id_MCDC_71, Id_MCDC_94->Id_MCDC_72, Id_MCDC_94->Id_MCDC_73, Id_MCDC_94->Id_MCDC_74, Id_MCDC_94->Id_MCDC_75, Id_MCDC_94->Id_MCDC_76, Id_MCDC_94->Id_MCDC_77, Id_MCDC_94->Id_MCDC_78, Id_MCDC_94->Id_MCDC_79, Id_MCDC_94->Id_MCDC_80, Id_MCDC_94->Id_MCDC_81, Id_MCDC_94->Id_MCDC_82, Id_MCDC_94->Id_MCDC_83, Id_MCDC_94->Id_MCDC_84, Id_MCDC_94->Id_MCDC_85, Id_MCDC_94->Id_MCDC_86, Id_MCDC_94->Id_MCDC_87}; +UINT32 const Id_MCDC_101 [42] [3]={{( UINT16 ) 0x6042, ( UINT8 ) 0x00, ( UINT32 ) 0x0003}, {( UINT16 ) 0x6043, ( UINT8 ) 0x00, ( UINT32 ) 0x0003}, {( UINT16 ) 0x6053, ( UINT8 ) 0x00, ( UINT32 ) 0x0003}, {( UINT16 ) 0x6054, ( UINT8 ) 0x00, ( UINT32 ) 0x0003}, {( UINT16 ) 0x6055, ( UINT8 ) 0x00, ( UINT32 ) 0x0003}, {( UINT16 ) 0x604E, ( UINT8 ) 0x00, ( UINT32 ) 0x0007}, {( UINT16 ) 0x604C, ( UINT8 ) 0x01, ( UINT32 ) 0x0004}, {( UINT16 ) 0x604C, ( UINT8 ) 0x02, ( UINT32 ) 0x0004}, {( UINT16 ) 0x604B, ( UINT8 ) 0x01, ( UINT32 ) 0x0003}, {( UINT16 ) 0x604B, ( UINT8 ) 0x02, ( UINT32 ) 0x0003}, {( UINT16 ) 0x604D, ( UINT8 ) 0x00, ( UINT32 ) 0x02}, {( UINT16 ) 0x6046, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6046, ( UINT8 ) 0x02, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6047, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6047, ( UINT8 ) 0x02, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6047, ( UINT8 ) 0x0003, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6047, ( UINT8 ) 0x0004, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6058, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6058, ( UINT8 ) 0x02, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6059, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6059, ( UINT8 ) 0x02, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6059, ( UINT8 ) 0x0003, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6059, ( UINT8 ) 0x0004, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6056, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6056, ( UINT8 ) 0x02, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6057, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6057, ( UINT8 ) 0x02, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6057, ( UINT8 ) 0x0003, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6057, ( UINT8 ) 0x0004, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6048, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6048, ( UINT8 ) 0x02, ( UINT32 ) 0x0006}, {( UINT16 ) 0x6049, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6049, ( UINT8 ) 0x02, ( UINT32 ) 0x0006}, {( UINT16 ) 0x604A, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x604A, ( UINT8 ) 0x02, ( UINT32 ) 0x0006}, {( UINT16 ) 0x604F, ( UINT8 ) 0x00, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6050, ( UINT8 ) 0x00, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6051, ( UINT8 ) 0x00, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6044, ( UINT8 ) 0x00, ( UINT32 ) 0x0003}, {( UINT16 ) 0x6045, ( UINT8 ) 0x00, ( UINT32 ) 0x0003}, {( UINT16 ) 0x6052, ( UINT8 ) 0x00, ( UINT32 ) 0x0003}, {0x00, 0x00, 0x00}}; +UINT32 Id_MCDC_102=0; +while(Id_MCDC_101[Id_MCDC_102][0] != 0x00) +{ +Id_MCDC_92(Id_MCDC_101[Id_MCDC_102][0], Id_MCDC_101[Id_MCDC_102][1], (Id_MCDC_99 = Id_MCDC_102 , ("17_6632_4294986969" , __VERIFIER_assert((Id_MCDC_99 >= 0 && Id_MCDC_99 < 42))) , Id_MCDC_101[Id_MCDC_99])[2], Id_MCDC_100[Id_MCDC_102]); +Id_MCDC_102++ ; +} +} +int main() +{ +void * Id_MCDC_103; +void * Id_MCDC_104; +void * Id_MCDC_105; +void * Id_MCDC_106; +void * Id_MCDC_107; +void * Id_MCDC_108; +int Id_MCDC_109; +int Id_MCDC_110; +int Id_MCDC_111; +int Id_MCDC_112; +int Id_MCDC_113; +int Id_MCDC_114; +int Id_MCDC_115; +short Id_MCDC_116; +short Id_MCDC_117; +FILE* Id_MCDC_118; +unsigned short Id_MCDC_119; +unsigned short Id_MCDC_120; +unsigned short Id_MCDC_121=0; +unsigned short Id_MCDC_122=0; +char Id_MCDC_123; +char Id_MCDC_124; +VLMODE Id_MCDC_125; +POS_CTRL_MODE Id_MCDC_126; +DEV_CNTRL Id_MCDC_127; +Id_MCDC_118 = fopen("in.eds", "r"); +if(Id_MCDC_118 == (( void * ) 0)) +{ +return 1; +} +; +Id_MCDC_95( & Id_MCDC_125); +} +void __VERIFIER_assert(int Id_MCDC_98) +{ +if( ! (Id_MCDC_98)) +{ +ERROR : {reach_error();abort();} +} +return ; +} diff --git a/data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_4.c b/data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_4.c new file mode 100644 index 000000000..6c0ef3642 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_4.c @@ -0,0 +1,185 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "aiob_4.c", 3, "reach_error"); } +struct Velocity_Mode; +struct PCMode; +struct DeviceControl; +struct _IO_FILE; +struct _IO_marker; +typedef struct DeviceControl DEV_CNTRL; +typedef struct _IO_FILE FILE; +typedef struct _IO_FILE __FILE; +typedef struct _IO_FILE _IO_FILE; +typedef long __off_t; +typedef long long __quad_t; +typedef __quad_t __off64_t; +typedef void _IO_lock_t; +typedef struct PCMode POS_CTRL_MODE; +typedef struct Velocity_Mode VLMODE; +typedef unsigned int size_t; +struct _IO_FILE{ +int Id_MCDC_0; +char * Id_MCDC_1; +char * Id_MCDC_2; +char * Id_MCDC_3; +char * Id_MCDC_4; +char * Id_MCDC_5; +char * Id_MCDC_6; +char * Id_MCDC_7; +char * Id_MCDC_8; +char * Id_MCDC_9; +char * Id_MCDC_10; +char * Id_MCDC_11; +struct _IO_marker* Id_MCDC_12; +struct _IO_FILE* Id_MCDC_13; +int Id_MCDC_14; +int Id_MCDC_15; +__off_t Id_MCDC_16; +unsigned short Id_MCDC_17; +signed char Id_MCDC_18; +char Id_MCDC_19 [1]; +_IO_lock_t* Id_MCDC_20; +__off64_t Id_MCDC_21; +void * Id_MCDC_22; +void * Id_MCDC_23; +void * Id_MCDC_24; +void * Id_MCDC_25; +size_t Id_MCDC_26; +int Id_MCDC_27; +char Id_MCDC_28 [40]; +} ; +typedef unsigned char UINT8; +typedef unsigned short UINT16; +typedef unsigned int UINT32; +typedef unsigned long long UINT64; +typedef char INT8; +typedef char CHAR; +typedef char * STRING; +typedef short INT16; +struct DeviceControl{ +INT8* Id_MCDC_29; +UINT16* Id_MCDC_30; +UINT16* Id_MCDC_31; +INT16* Id_MCDC_32; +INT16* Id_MCDC_33; +INT16* Id_MCDC_34; +INT16* Id_MCDC_35; +INT16* Id_MCDC_36; +INT8* Id_MCDC_37; +} ; +typedef int INT32; +struct PCMode{ +INT16* Id_MCDC_38; +INT32* Id_MCDC_39; +INT32* Id_MCDC_40; +INT32* Id_MCDC_41; +UINT16* Id_MCDC_42; +UINT32* Id_MCDC_43; +UINT16* Id_MCDC_44; +INT32* Id_MCDC_45; +INT32* Id_MCDC_46; +} ; +struct Velocity_Mode{ +INT16* Id_MCDC_47; +INT16* Id_MCDC_48; +INT16* Id_MCDC_49; +INT16* Id_MCDC_50; +INT16* Id_MCDC_51; +UINT32* Id_MCDC_52; +INT32* Id_MCDC_53; +INT32* Id_MCDC_54; +INT32* Id_MCDC_55; +INT32* Id_MCDC_56; +UINT8* Id_MCDC_57; +UINT32* Id_MCDC_58; +UINT32* Id_MCDC_59; +UINT32* Id_MCDC_60; +UINT32* Id_MCDC_61; +UINT32* Id_MCDC_62; +UINT32* Id_MCDC_63; +UINT32* Id_MCDC_64; +UINT32* Id_MCDC_65; +UINT32* Id_MCDC_66; +UINT32* Id_MCDC_67; +UINT32* Id_MCDC_68; +UINT32* Id_MCDC_69; +UINT32* Id_MCDC_70; +UINT32* Id_MCDC_71; +UINT32* Id_MCDC_72; +UINT32* Id_MCDC_73; +UINT32* Id_MCDC_74; +UINT32* Id_MCDC_75; +UINT32* Id_MCDC_76; +UINT16* Id_MCDC_77; +UINT32* Id_MCDC_78; +UINT16* Id_MCDC_79; +UINT32* Id_MCDC_80; +UINT16* Id_MCDC_81; +UINT32* Id_MCDC_82; +UINT32* Id_MCDC_83; +UINT32* Id_MCDC_84; +INT16* Id_MCDC_85; +INT16* Id_MCDC_86; +INT16* Id_MCDC_87; +} ; +typedef long INT64; +typedef float REAL32; +void Id_MCDC_89(VLMODE* Id_MCDC_88); +extern FILE* fopen(char const* Id_MCDC_90, char const* Id_MCDC_91); +int main(); +void __VERIFIER_assert(int Id_MCDC_92); +unsigned int Id_MCDC_93; + +void Id_MCDC_89(VLMODE* Id_MCDC_88) +{ +void * Id_MCDC_94 [41]={Id_MCDC_88->Id_MCDC_47, Id_MCDC_88->Id_MCDC_48, Id_MCDC_88->Id_MCDC_49, Id_MCDC_88->Id_MCDC_50, Id_MCDC_88->Id_MCDC_51, Id_MCDC_88->Id_MCDC_52, Id_MCDC_88->Id_MCDC_53, Id_MCDC_88->Id_MCDC_54, Id_MCDC_88->Id_MCDC_55, Id_MCDC_88->Id_MCDC_56, Id_MCDC_88->Id_MCDC_57, Id_MCDC_88->Id_MCDC_58, Id_MCDC_88->Id_MCDC_59, Id_MCDC_88->Id_MCDC_60, Id_MCDC_88->Id_MCDC_61, Id_MCDC_88->Id_MCDC_62, Id_MCDC_88->Id_MCDC_63, Id_MCDC_88->Id_MCDC_64, Id_MCDC_88->Id_MCDC_65, Id_MCDC_88->Id_MCDC_66, Id_MCDC_88->Id_MCDC_67, Id_MCDC_88->Id_MCDC_68, Id_MCDC_88->Id_MCDC_69, Id_MCDC_88->Id_MCDC_70, Id_MCDC_88->Id_MCDC_71, Id_MCDC_88->Id_MCDC_72, Id_MCDC_88->Id_MCDC_73, Id_MCDC_88->Id_MCDC_74, Id_MCDC_88->Id_MCDC_75, Id_MCDC_88->Id_MCDC_76, Id_MCDC_88->Id_MCDC_77, Id_MCDC_88->Id_MCDC_78, Id_MCDC_88->Id_MCDC_79, Id_MCDC_88->Id_MCDC_80, Id_MCDC_88->Id_MCDC_81, Id_MCDC_88->Id_MCDC_82, Id_MCDC_88->Id_MCDC_83, Id_MCDC_88->Id_MCDC_84, Id_MCDC_88->Id_MCDC_85, Id_MCDC_88->Id_MCDC_86, Id_MCDC_88->Id_MCDC_87}; +UINT32 const Id_MCDC_95 [42] [3]={{( UINT16 ) 0x6042, ( UINT8 ) 0x00, ( UINT32 ) 0x0003}, {( UINT16 ) 0x6043, ( UINT8 ) 0x00, ( UINT32 ) 0x0003}, {( UINT16 ) 0x6053, ( UINT8 ) 0x00, ( UINT32 ) 0x0003}, {( UINT16 ) 0x6054, ( UINT8 ) 0x00, ( UINT32 ) 0x0003}, {( UINT16 ) 0x6055, ( UINT8 ) 0x00, ( UINT32 ) 0x0003}, {( UINT16 ) 0x604E, ( UINT8 ) 0x00, ( UINT32 ) 0x0007}, {( UINT16 ) 0x604C, ( UINT8 ) 0x01, ( UINT32 ) 0x0004}, {( UINT16 ) 0x604C, ( UINT8 ) 0x02, ( UINT32 ) 0x0004}, {( UINT16 ) 0x604B, ( UINT8 ) 0x01, ( UINT32 ) 0x0003}, {( UINT16 ) 0x604B, ( UINT8 ) 0x02, ( UINT32 ) 0x0003}, {( UINT16 ) 0x604D, ( UINT8 ) 0x00, ( UINT32 ) 0x02}, {( UINT16 ) 0x6046, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6046, ( UINT8 ) 0x02, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6047, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6047, ( UINT8 ) 0x02, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6047, ( UINT8 ) 0x0003, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6047, ( UINT8 ) 0x0004, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6058, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6058, ( UINT8 ) 0x02, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6059, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6059, ( UINT8 ) 0x02, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6059, ( UINT8 ) 0x0003, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6059, ( UINT8 ) 0x0004, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6056, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6056, ( UINT8 ) 0x02, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6057, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6057, ( UINT8 ) 0x02, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6057, ( UINT8 ) 0x0003, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6057, ( UINT8 ) 0x0004, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6048, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6048, ( UINT8 ) 0x02, ( UINT32 ) 0x0006}, {( UINT16 ) 0x6049, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6049, ( UINT8 ) 0x02, ( UINT32 ) 0x0006}, {( UINT16 ) 0x604A, ( UINT8 ) 0x01, ( UINT32 ) 0x0007}, {( UINT16 ) 0x604A, ( UINT8 ) 0x02, ( UINT32 ) 0x0006}, {( UINT16 ) 0x604F, ( UINT8 ) 0x00, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6050, ( UINT8 ) 0x00, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6051, ( UINT8 ) 0x00, ( UINT32 ) 0x0007}, {( UINT16 ) 0x6044, ( UINT8 ) 0x00, ( UINT32 ) 0x0003}, {( UINT16 ) 0x6045, ( UINT8 ) 0x00, ( UINT32 ) 0x0003}, {( UINT16 ) 0x6052, ( UINT8 ) 0x00, ( UINT32 ) 0x0003}, {0x00, 0x00, 0x00}}; +UINT32 Id_MCDC_96=0; +while((Id_MCDC_93 = Id_MCDC_96 , ("18_6630_4294986945" , __VERIFIER_assert((Id_MCDC_93 >= 0 && Id_MCDC_93 < 42))) , Id_MCDC_95[Id_MCDC_93])[0] != 0x00) +{ +Id_MCDC_96++ ; +} +} +int main() +{ +void * Id_MCDC_97; +void * Id_MCDC_98; +void * Id_MCDC_99; +void * Id_MCDC_100; +void * Id_MCDC_101; +void * Id_MCDC_102; +int Id_MCDC_103; +int Id_MCDC_104; +int Id_MCDC_105; +int Id_MCDC_106; +int Id_MCDC_107; +int Id_MCDC_108; +int Id_MCDC_109; +short Id_MCDC_110; +short Id_MCDC_111; +FILE* Id_MCDC_112; +unsigned short Id_MCDC_113; +unsigned short Id_MCDC_114; +unsigned short Id_MCDC_115=0; +unsigned short Id_MCDC_116=0; +char Id_MCDC_117; +char Id_MCDC_118; +VLMODE Id_MCDC_119; +POS_CTRL_MODE Id_MCDC_120; +DEV_CNTRL Id_MCDC_121; +Id_MCDC_112 = fopen("in.eds", "r"); +if(Id_MCDC_112 == (( void * ) 0)) +{ +return 1; +} +; +Id_MCDC_89( & Id_MCDC_119); +} +void __VERIFIER_assert(int Id_MCDC_92) +{ +if( ! (Id_MCDC_92)) +{ +ERROR : {reach_error();abort();} +} +return ; +} diff --git a/data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_4.c.v+cfa-reducer.c b/data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_4.c.v+cfa-reducer.c new file mode 100644 index 000000000..f05f7aee2 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_4.c.v+cfa-reducer.c @@ -0,0 +1,225 @@ +int __return_main; +void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "aiob_4.c.v+cfa-reducer.c", 4, "reach_error"); } +struct Velocity_Mode ; +struct PCMode ; +struct DeviceControl ; +struct _IO_FILE ; +struct _IO_marker ; +typedef struct DeviceControl DEV_CNTRL; +typedef struct _IO_FILE FILE; +typedef struct _IO_FILE __FILE; +typedef struct _IO_FILE _IO_FILE; +typedef long __off_t; +typedef long long __quad_t; +typedef __quad_t __off64_t; +typedef void _IO_lock_t; +typedef struct PCMode POS_CTRL_MODE; +typedef struct Velocity_Mode VLMODE; +typedef unsigned int size_t; +struct _IO_FILE { + int Id_MCDC_0; + char *Id_MCDC_1; + char *Id_MCDC_2; + char *Id_MCDC_3; + char *Id_MCDC_4; + char *Id_MCDC_5; + char *Id_MCDC_6; + char *Id_MCDC_7; + char *Id_MCDC_8; + char *Id_MCDC_9; + char *Id_MCDC_10; + char *Id_MCDC_11; + struct _IO_marker *Id_MCDC_12; + struct _IO_FILE *Id_MCDC_13; + int Id_MCDC_14; + int Id_MCDC_15; + __off_t Id_MCDC_16; + unsigned short Id_MCDC_17; + signed char Id_MCDC_18; + char Id_MCDC_19[1]; + _IO_lock_t *Id_MCDC_20; + __off64_t Id_MCDC_21; + void *Id_MCDC_22; + void *Id_MCDC_23; + void *Id_MCDC_24; + void *Id_MCDC_25; + size_t Id_MCDC_26; + int Id_MCDC_27; + char Id_MCDC_28[40]; +} ; +typedef unsigned char UINT8; +typedef unsigned short UINT16; +typedef unsigned int UINT32; +typedef unsigned long long UINT64; +typedef char INT8; +typedef char CHAR; +typedef char *STRING; +typedef short INT16; +struct DeviceControl { + INT8 *Id_MCDC_29; + UINT16 *Id_MCDC_30; + UINT16 *Id_MCDC_31; + INT16 *Id_MCDC_32; + INT16 *Id_MCDC_33; + INT16 *Id_MCDC_34; + INT16 *Id_MCDC_35; + INT16 *Id_MCDC_36; + INT8 *Id_MCDC_37; +} ; +typedef int INT32; +struct PCMode { + INT16 *Id_MCDC_38; + INT32 *Id_MCDC_39; + INT32 *Id_MCDC_40; + INT32 *Id_MCDC_41; + UINT16 *Id_MCDC_42; + UINT32 *Id_MCDC_43; + UINT16 *Id_MCDC_44; + INT32 *Id_MCDC_45; + INT32 *Id_MCDC_46; +} ; +struct Velocity_Mode { + INT16 *Id_MCDC_47; + INT16 *Id_MCDC_48; + INT16 *Id_MCDC_49; + INT16 *Id_MCDC_50; + INT16 *Id_MCDC_51; + UINT32 *Id_MCDC_52; + INT32 *Id_MCDC_53; + INT32 *Id_MCDC_54; + INT32 *Id_MCDC_55; + INT32 *Id_MCDC_56; + UINT8 *Id_MCDC_57; + UINT32 *Id_MCDC_58; + UINT32 *Id_MCDC_59; + UINT32 *Id_MCDC_60; + UINT32 *Id_MCDC_61; + UINT32 *Id_MCDC_62; + UINT32 *Id_MCDC_63; + UINT32 *Id_MCDC_64; + UINT32 *Id_MCDC_65; + UINT32 *Id_MCDC_66; + UINT32 *Id_MCDC_67; + UINT32 *Id_MCDC_68; + UINT32 *Id_MCDC_69; + UINT32 *Id_MCDC_70; + UINT32 *Id_MCDC_71; + UINT32 *Id_MCDC_72; + UINT32 *Id_MCDC_73; + UINT32 *Id_MCDC_74; + UINT32 *Id_MCDC_75; + UINT32 *Id_MCDC_76; + UINT16 *Id_MCDC_77; + UINT32 *Id_MCDC_78; + UINT16 *Id_MCDC_79; + UINT32 *Id_MCDC_80; + UINT16 *Id_MCDC_81; + UINT32 *Id_MCDC_82; + UINT32 *Id_MCDC_83; + UINT32 *Id_MCDC_84; + INT16 *Id_MCDC_85; + INT16 *Id_MCDC_86; + INT16 *Id_MCDC_87; +} ; +typedef long INT64; +typedef float REAL32; +void Id_MCDC_89(VLMODE *Id_MCDC_88); +FILE *fopen(const char *Id_MCDC_90, const char *Id_MCDC_91); +int main(); +void __VERIFIER_assert(int Id_MCDC_92); +unsigned int Id_MCDC_93 = 0U; + int main() + { + void *main__Id_MCDC_97; + void *main__Id_MCDC_98; + void *main__Id_MCDC_99; + void *main__Id_MCDC_100; + void *main__Id_MCDC_101; + void *main__Id_MCDC_102; + int main__Id_MCDC_103; + int main__Id_MCDC_104; + int main__Id_MCDC_105; + int main__Id_MCDC_106; + int main__Id_MCDC_107; + int main__Id_MCDC_108; + int main__Id_MCDC_109; + short main__Id_MCDC_110; + short main__Id_MCDC_111; + FILE *main__Id_MCDC_112; + unsigned short main__Id_MCDC_113; + unsigned short main__Id_MCDC_114; + unsigned short main__Id_MCDC_115 = 0; + unsigned short main__Id_MCDC_116 = 0; + char main__Id_MCDC_117; + char main__Id_MCDC_118; + VLMODE main__Id_MCDC_119; + POS_CTRL_MODE main__Id_MCDC_120; + DEV_CNTRL main__Id_MCDC_121; + main__Id_MCDC_112 = fopen("in.eds", "r"); + if (main__Id_MCDC_112 == ((void *)0)) + { + return __return_main; + } + else + { + { + VLMODE *__tmp_1; + __tmp_1 = &main__Id_MCDC_119; + VLMODE *Id_MCDC_89__Id_MCDC_88; + Id_MCDC_89__Id_MCDC_88 = __tmp_1; + void *Id_MCDC_89__Id_MCDC_94[41] = { Id_MCDC_89__Id_MCDC_88->Id_MCDC_47, Id_MCDC_89__Id_MCDC_88->Id_MCDC_48, Id_MCDC_89__Id_MCDC_88->Id_MCDC_49, Id_MCDC_89__Id_MCDC_88->Id_MCDC_50, Id_MCDC_89__Id_MCDC_88->Id_MCDC_51, Id_MCDC_89__Id_MCDC_88->Id_MCDC_52, Id_MCDC_89__Id_MCDC_88->Id_MCDC_53, Id_MCDC_89__Id_MCDC_88->Id_MCDC_54, Id_MCDC_89__Id_MCDC_88->Id_MCDC_55, Id_MCDC_89__Id_MCDC_88->Id_MCDC_56, Id_MCDC_89__Id_MCDC_88->Id_MCDC_57, Id_MCDC_89__Id_MCDC_88->Id_MCDC_58, Id_MCDC_89__Id_MCDC_88->Id_MCDC_59, Id_MCDC_89__Id_MCDC_88->Id_MCDC_60, Id_MCDC_89__Id_MCDC_88->Id_MCDC_61, Id_MCDC_89__Id_MCDC_88->Id_MCDC_62, Id_MCDC_89__Id_MCDC_88->Id_MCDC_63, Id_MCDC_89__Id_MCDC_88->Id_MCDC_64, Id_MCDC_89__Id_MCDC_88->Id_MCDC_65, Id_MCDC_89__Id_MCDC_88->Id_MCDC_66, Id_MCDC_89__Id_MCDC_88->Id_MCDC_67, Id_MCDC_89__Id_MCDC_88->Id_MCDC_68, Id_MCDC_89__Id_MCDC_88->Id_MCDC_69, Id_MCDC_89__Id_MCDC_88->Id_MCDC_70, Id_MCDC_89__Id_MCDC_88->Id_MCDC_71, Id_MCDC_89__Id_MCDC_88->Id_MCDC_72, Id_MCDC_89__Id_MCDC_88->Id_MCDC_73, Id_MCDC_89__Id_MCDC_88->Id_MCDC_74, Id_MCDC_89__Id_MCDC_88->Id_MCDC_75, Id_MCDC_89__Id_MCDC_88->Id_MCDC_76, Id_MCDC_89__Id_MCDC_88->Id_MCDC_77, Id_MCDC_89__Id_MCDC_88->Id_MCDC_78, Id_MCDC_89__Id_MCDC_88->Id_MCDC_79, Id_MCDC_89__Id_MCDC_88->Id_MCDC_80, Id_MCDC_89__Id_MCDC_88->Id_MCDC_81, Id_MCDC_89__Id_MCDC_88->Id_MCDC_82, Id_MCDC_89__Id_MCDC_88->Id_MCDC_83, Id_MCDC_89__Id_MCDC_88->Id_MCDC_84, Id_MCDC_89__Id_MCDC_88->Id_MCDC_85, Id_MCDC_89__Id_MCDC_88->Id_MCDC_86, Id_MCDC_89__Id_MCDC_88->Id_MCDC_87 }; + const UINT32 Id_MCDC_89__Id_MCDC_95[42][3] = { { (UINT16 )24642, (UINT8 )0, (UINT32 )3 }, { (UINT16 )24643, (UINT8 )0, (UINT32 )3 }, { (UINT16 )24659, (UINT8 )0, (UINT32 )3 }, { (UINT16 )24660, (UINT8 )0, (UINT32 )3 }, { (UINT16 )24661, (UINT8 )0, (UINT32 )3 }, { (UINT16 )24654, (UINT8 )0, (UINT32 )7 }, { (UINT16 )24652, (UINT8 )1, (UINT32 )4 }, { (UINT16 )24652, (UINT8 )2, (UINT32 )4 }, { (UINT16 )24651, (UINT8 )1, (UINT32 )3 }, { (UINT16 )24651, (UINT8 )2, (UINT32 )3 }, { (UINT16 )24653, (UINT8 )0, (UINT32 )2 }, { (UINT16 )24646, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24646, (UINT8 )2, (UINT32 )7 }, { (UINT16 )24647, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24647, (UINT8 )2, (UINT32 )7 }, { (UINT16 )24647, (UINT8 )3, (UINT32 )7 }, { (UINT16 )24647, (UINT8 )4, (UINT32 )7 }, { (UINT16 )24664, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24664, (UINT8 )2, (UINT32 )7 }, { (UINT16 )24665, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24665, (UINT8 )2, (UINT32 )7 }, { (UINT16 )24665, (UINT8 )3, (UINT32 )7 }, { (UINT16 )24665, (UINT8 )4, (UINT32 )7 }, { (UINT16 )24662, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24662, (UINT8 )2, (UINT32 )7 }, { (UINT16 )24663, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24663, (UINT8 )2, (UINT32 )7 }, { (UINT16 )24663, (UINT8 )3, (UINT32 )7 }, { (UINT16 )24663, (UINT8 )4, (UINT32 )7 }, { (UINT16 )24648, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24648, (UINT8 )2, (UINT32 )6 }, { (UINT16 )24649, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24649, (UINT8 )2, (UINT32 )6 }, { (UINT16 )24650, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24650, (UINT8 )2, (UINT32 )6 }, { (UINT16 )24655, (UINT8 )0, (UINT32 )7 }, { (UINT16 )24656, (UINT8 )0, (UINT32 )7 }, { (UINT16 )24657, (UINT8 )0, (UINT32 )7 }, { (UINT16 )24644, (UINT8 )0, (UINT32 )3 }, { (UINT16 )24645, (UINT8 )0, (UINT32 )3 }, { (UINT16 )24658, (UINT8 )0, (UINT32 )3 }, { 0, 0, 0 } }; + UINT32 Id_MCDC_89__Id_MCDC_96 = 0; + label_913:; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + label_920:; + { + int __tmp_2; + __tmp_2 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_2; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + {reach_error();} + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + goto label_913; + } + else + { + return __return_main; + } + } + } + } + else + { + Id_MCDC_89____CPAchecker_TMP_1 = 0; + goto label_920; + } + } + else + { + return __return_main; + } + } + } + } diff --git a/data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_4.c.v+lh-reducer.c b/data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_4.c.v+lh-reducer.c new file mode 100644 index 000000000..553769a8d --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_4.c.v+lh-reducer.c @@ -0,0 +1,237 @@ +int __return_main; +void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "aiob_4.c.v+lh-reducer.c", 4, "reach_error"); } +struct Velocity_Mode ; +struct PCMode ; +struct DeviceControl ; +struct _IO_FILE ; +struct _IO_marker ; +typedef struct DeviceControl DEV_CNTRL; +typedef struct _IO_FILE FILE; +typedef struct _IO_FILE __FILE; +typedef struct _IO_FILE _IO_FILE; +typedef long __off_t; +typedef long long __quad_t; +typedef __quad_t __off64_t; +typedef void _IO_lock_t; +typedef struct PCMode POS_CTRL_MODE; +typedef struct Velocity_Mode VLMODE; +typedef unsigned int size_t; +struct _IO_FILE { + int Id_MCDC_0; + char *Id_MCDC_1; + char *Id_MCDC_2; + char *Id_MCDC_3; + char *Id_MCDC_4; + char *Id_MCDC_5; + char *Id_MCDC_6; + char *Id_MCDC_7; + char *Id_MCDC_8; + char *Id_MCDC_9; + char *Id_MCDC_10; + char *Id_MCDC_11; + struct _IO_marker *Id_MCDC_12; + struct _IO_FILE *Id_MCDC_13; + int Id_MCDC_14; + int Id_MCDC_15; + __off_t Id_MCDC_16; + unsigned short Id_MCDC_17; + signed char Id_MCDC_18; + char Id_MCDC_19[1]; + _IO_lock_t *Id_MCDC_20; + __off64_t Id_MCDC_21; + void *Id_MCDC_22; + void *Id_MCDC_23; + void *Id_MCDC_24; + void *Id_MCDC_25; + size_t Id_MCDC_26; + int Id_MCDC_27; + char Id_MCDC_28[40]; +} ; +typedef unsigned char UINT8; +typedef unsigned short UINT16; +typedef unsigned int UINT32; +typedef unsigned long long UINT64; +typedef char INT8; +typedef char CHAR; +typedef char *STRING; +typedef short INT16; +struct DeviceControl { + INT8 *Id_MCDC_29; + UINT16 *Id_MCDC_30; + UINT16 *Id_MCDC_31; + INT16 *Id_MCDC_32; + INT16 *Id_MCDC_33; + INT16 *Id_MCDC_34; + INT16 *Id_MCDC_35; + INT16 *Id_MCDC_36; + INT8 *Id_MCDC_37; +} ; +typedef int INT32; +struct PCMode { + INT16 *Id_MCDC_38; + INT32 *Id_MCDC_39; + INT32 *Id_MCDC_40; + INT32 *Id_MCDC_41; + UINT16 *Id_MCDC_42; + UINT32 *Id_MCDC_43; + UINT16 *Id_MCDC_44; + INT32 *Id_MCDC_45; + INT32 *Id_MCDC_46; +} ; +struct Velocity_Mode { + INT16 *Id_MCDC_47; + INT16 *Id_MCDC_48; + INT16 *Id_MCDC_49; + INT16 *Id_MCDC_50; + INT16 *Id_MCDC_51; + UINT32 *Id_MCDC_52; + INT32 *Id_MCDC_53; + INT32 *Id_MCDC_54; + INT32 *Id_MCDC_55; + INT32 *Id_MCDC_56; + UINT8 *Id_MCDC_57; + UINT32 *Id_MCDC_58; + UINT32 *Id_MCDC_59; + UINT32 *Id_MCDC_60; + UINT32 *Id_MCDC_61; + UINT32 *Id_MCDC_62; + UINT32 *Id_MCDC_63; + UINT32 *Id_MCDC_64; + UINT32 *Id_MCDC_65; + UINT32 *Id_MCDC_66; + UINT32 *Id_MCDC_67; + UINT32 *Id_MCDC_68; + UINT32 *Id_MCDC_69; + UINT32 *Id_MCDC_70; + UINT32 *Id_MCDC_71; + UINT32 *Id_MCDC_72; + UINT32 *Id_MCDC_73; + UINT32 *Id_MCDC_74; + UINT32 *Id_MCDC_75; + UINT32 *Id_MCDC_76; + UINT16 *Id_MCDC_77; + UINT32 *Id_MCDC_78; + UINT16 *Id_MCDC_79; + UINT32 *Id_MCDC_80; + UINT16 *Id_MCDC_81; + UINT32 *Id_MCDC_82; + UINT32 *Id_MCDC_83; + UINT32 *Id_MCDC_84; + INT16 *Id_MCDC_85; + INT16 *Id_MCDC_86; + INT16 *Id_MCDC_87; +} ; +typedef long INT64; +typedef float REAL32; +void Id_MCDC_89(VLMODE *Id_MCDC_88); +FILE *fopen(const char *Id_MCDC_90, const char *Id_MCDC_91); +int main(); +void __VERIFIER_assert(int Id_MCDC_92); +unsigned int Id_MCDC_93 = 0U; + int main() + { + void *main__Id_MCDC_97; + void *main__Id_MCDC_98; + void *main__Id_MCDC_99; + void *main__Id_MCDC_100; + void *main__Id_MCDC_101; + void *main__Id_MCDC_102; + int main__Id_MCDC_103; + int main__Id_MCDC_104; + int main__Id_MCDC_105; + int main__Id_MCDC_106; + int main__Id_MCDC_107; + int main__Id_MCDC_108; + int main__Id_MCDC_109; + short main__Id_MCDC_110; + short main__Id_MCDC_111; + FILE *main__Id_MCDC_112; + unsigned short main__Id_MCDC_113; + unsigned short main__Id_MCDC_114; + unsigned short main__Id_MCDC_115 = 0; + unsigned short main__Id_MCDC_116 = 0; + char main__Id_MCDC_117; + char main__Id_MCDC_118; + VLMODE main__Id_MCDC_119; + POS_CTRL_MODE main__Id_MCDC_120; + DEV_CNTRL main__Id_MCDC_121; + main__Id_MCDC_112 = fopen("in.eds", "r"); + if (main__Id_MCDC_112 == ((void *)0)) + { + return __return_main; + } + else + { + { + VLMODE *__tmp_1; + __tmp_1 = &main__Id_MCDC_119; + VLMODE *Id_MCDC_89__Id_MCDC_88; + Id_MCDC_89__Id_MCDC_88 = __tmp_1; + void *Id_MCDC_89__Id_MCDC_94[41] = { Id_MCDC_89__Id_MCDC_88->Id_MCDC_47, Id_MCDC_89__Id_MCDC_88->Id_MCDC_48, Id_MCDC_89__Id_MCDC_88->Id_MCDC_49, Id_MCDC_89__Id_MCDC_88->Id_MCDC_50, Id_MCDC_89__Id_MCDC_88->Id_MCDC_51, Id_MCDC_89__Id_MCDC_88->Id_MCDC_52, Id_MCDC_89__Id_MCDC_88->Id_MCDC_53, Id_MCDC_89__Id_MCDC_88->Id_MCDC_54, Id_MCDC_89__Id_MCDC_88->Id_MCDC_55, Id_MCDC_89__Id_MCDC_88->Id_MCDC_56, Id_MCDC_89__Id_MCDC_88->Id_MCDC_57, Id_MCDC_89__Id_MCDC_88->Id_MCDC_58, Id_MCDC_89__Id_MCDC_88->Id_MCDC_59, Id_MCDC_89__Id_MCDC_88->Id_MCDC_60, Id_MCDC_89__Id_MCDC_88->Id_MCDC_61, Id_MCDC_89__Id_MCDC_88->Id_MCDC_62, Id_MCDC_89__Id_MCDC_88->Id_MCDC_63, Id_MCDC_89__Id_MCDC_88->Id_MCDC_64, Id_MCDC_89__Id_MCDC_88->Id_MCDC_65, Id_MCDC_89__Id_MCDC_88->Id_MCDC_66, Id_MCDC_89__Id_MCDC_88->Id_MCDC_67, Id_MCDC_89__Id_MCDC_88->Id_MCDC_68, Id_MCDC_89__Id_MCDC_88->Id_MCDC_69, Id_MCDC_89__Id_MCDC_88->Id_MCDC_70, Id_MCDC_89__Id_MCDC_88->Id_MCDC_71, Id_MCDC_89__Id_MCDC_88->Id_MCDC_72, Id_MCDC_89__Id_MCDC_88->Id_MCDC_73, Id_MCDC_89__Id_MCDC_88->Id_MCDC_74, Id_MCDC_89__Id_MCDC_88->Id_MCDC_75, Id_MCDC_89__Id_MCDC_88->Id_MCDC_76, Id_MCDC_89__Id_MCDC_88->Id_MCDC_77, Id_MCDC_89__Id_MCDC_88->Id_MCDC_78, Id_MCDC_89__Id_MCDC_88->Id_MCDC_79, Id_MCDC_89__Id_MCDC_88->Id_MCDC_80, Id_MCDC_89__Id_MCDC_88->Id_MCDC_81, Id_MCDC_89__Id_MCDC_88->Id_MCDC_82, Id_MCDC_89__Id_MCDC_88->Id_MCDC_83, Id_MCDC_89__Id_MCDC_88->Id_MCDC_84, Id_MCDC_89__Id_MCDC_88->Id_MCDC_85, Id_MCDC_89__Id_MCDC_88->Id_MCDC_86, Id_MCDC_89__Id_MCDC_88->Id_MCDC_87 }; + const UINT32 Id_MCDC_89__Id_MCDC_95[42][3] = { { (UINT16 )24642, (UINT8 )0, (UINT32 )3 }, { (UINT16 )24643, (UINT8 )0, (UINT32 )3 }, { (UINT16 )24659, (UINT8 )0, (UINT32 )3 }, { (UINT16 )24660, (UINT8 )0, (UINT32 )3 }, { (UINT16 )24661, (UINT8 )0, (UINT32 )3 }, { (UINT16 )24654, (UINT8 )0, (UINT32 )7 }, { (UINT16 )24652, (UINT8 )1, (UINT32 )4 }, { (UINT16 )24652, (UINT8 )2, (UINT32 )4 }, { (UINT16 )24651, (UINT8 )1, (UINT32 )3 }, { (UINT16 )24651, (UINT8 )2, (UINT32 )3 }, { (UINT16 )24653, (UINT8 )0, (UINT32 )2 }, { (UINT16 )24646, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24646, (UINT8 )2, (UINT32 )7 }, { (UINT16 )24647, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24647, (UINT8 )2, (UINT32 )7 }, { (UINT16 )24647, (UINT8 )3, (UINT32 )7 }, { (UINT16 )24647, (UINT8 )4, (UINT32 )7 }, { (UINT16 )24664, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24664, (UINT8 )2, (UINT32 )7 }, { (UINT16 )24665, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24665, (UINT8 )2, (UINT32 )7 }, { (UINT16 )24665, (UINT8 )3, (UINT32 )7 }, { (UINT16 )24665, (UINT8 )4, (UINT32 )7 }, { (UINT16 )24662, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24662, (UINT8 )2, (UINT32 )7 }, { (UINT16 )24663, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24663, (UINT8 )2, (UINT32 )7 }, { (UINT16 )24663, (UINT8 )3, (UINT32 )7 }, { (UINT16 )24663, (UINT8 )4, (UINT32 )7 }, { (UINT16 )24648, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24648, (UINT8 )2, (UINT32 )6 }, { (UINT16 )24649, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24649, (UINT8 )2, (UINT32 )6 }, { (UINT16 )24650, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24650, (UINT8 )2, (UINT32 )6 }, { (UINT16 )24655, (UINT8 )0, (UINT32 )7 }, { (UINT16 )24656, (UINT8 )0, (UINT32 )7 }, { (UINT16 )24657, (UINT8 )0, (UINT32 )7 }, { (UINT16 )24644, (UINT8 )0, (UINT32 )3 }, { (UINT16 )24645, (UINT8 )0, (UINT32 )3 }, { (UINT16 )24658, (UINT8 )0, (UINT32 )3 }, { 0, 0, 0 } }; + UINT32 Id_MCDC_89__Id_MCDC_96 = 0; + label_913:; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_2; + __tmp_2 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_2; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + goto label_913; + } + else + { + return __return_main; + } + } + } + } + else + { + Id_MCDC_89____CPAchecker_TMP_1 = 0; + { + int __tmp_3; + __tmp_3 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_3; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + {reach_error();} + return __return_main; + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + } + } diff --git a/data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_4.c.v+lhb-reducer.c b/data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_4.c.v+lhb-reducer.c new file mode 100644 index 000000000..72c61fcbc --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_4.c.v+lhb-reducer.c @@ -0,0 +1,636 @@ +int __return_main; +void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "aiob_4.c.v+lhb-reducer.c", 4, "reach_error"); } +struct Velocity_Mode ; +struct PCMode ; +struct DeviceControl ; +struct _IO_FILE ; +struct _IO_marker ; +typedef struct DeviceControl DEV_CNTRL; +typedef struct _IO_FILE FILE; +typedef struct _IO_FILE __FILE; +typedef struct _IO_FILE _IO_FILE; +typedef long __off_t; +typedef long long __quad_t; +typedef __quad_t __off64_t; +typedef void _IO_lock_t; +typedef struct PCMode POS_CTRL_MODE; +typedef struct Velocity_Mode VLMODE; +typedef unsigned int size_t; +struct _IO_FILE { + int Id_MCDC_0; + char *Id_MCDC_1; + char *Id_MCDC_2; + char *Id_MCDC_3; + char *Id_MCDC_4; + char *Id_MCDC_5; + char *Id_MCDC_6; + char *Id_MCDC_7; + char *Id_MCDC_8; + char *Id_MCDC_9; + char *Id_MCDC_10; + char *Id_MCDC_11; + struct _IO_marker *Id_MCDC_12; + struct _IO_FILE *Id_MCDC_13; + int Id_MCDC_14; + int Id_MCDC_15; + __off_t Id_MCDC_16; + unsigned short Id_MCDC_17; + signed char Id_MCDC_18; + char Id_MCDC_19[1]; + _IO_lock_t *Id_MCDC_20; + __off64_t Id_MCDC_21; + void *Id_MCDC_22; + void *Id_MCDC_23; + void *Id_MCDC_24; + void *Id_MCDC_25; + size_t Id_MCDC_26; + int Id_MCDC_27; + char Id_MCDC_28[40]; +} ; +typedef unsigned char UINT8; +typedef unsigned short UINT16; +typedef unsigned int UINT32; +typedef unsigned long long UINT64; +typedef char INT8; +typedef char CHAR; +typedef char *STRING; +typedef short INT16; +struct DeviceControl { + INT8 *Id_MCDC_29; + UINT16 *Id_MCDC_30; + UINT16 *Id_MCDC_31; + INT16 *Id_MCDC_32; + INT16 *Id_MCDC_33; + INT16 *Id_MCDC_34; + INT16 *Id_MCDC_35; + INT16 *Id_MCDC_36; + INT8 *Id_MCDC_37; +} ; +typedef int INT32; +struct PCMode { + INT16 *Id_MCDC_38; + INT32 *Id_MCDC_39; + INT32 *Id_MCDC_40; + INT32 *Id_MCDC_41; + UINT16 *Id_MCDC_42; + UINT32 *Id_MCDC_43; + UINT16 *Id_MCDC_44; + INT32 *Id_MCDC_45; + INT32 *Id_MCDC_46; +} ; +struct Velocity_Mode { + INT16 *Id_MCDC_47; + INT16 *Id_MCDC_48; + INT16 *Id_MCDC_49; + INT16 *Id_MCDC_50; + INT16 *Id_MCDC_51; + UINT32 *Id_MCDC_52; + INT32 *Id_MCDC_53; + INT32 *Id_MCDC_54; + INT32 *Id_MCDC_55; + INT32 *Id_MCDC_56; + UINT8 *Id_MCDC_57; + UINT32 *Id_MCDC_58; + UINT32 *Id_MCDC_59; + UINT32 *Id_MCDC_60; + UINT32 *Id_MCDC_61; + UINT32 *Id_MCDC_62; + UINT32 *Id_MCDC_63; + UINT32 *Id_MCDC_64; + UINT32 *Id_MCDC_65; + UINT32 *Id_MCDC_66; + UINT32 *Id_MCDC_67; + UINT32 *Id_MCDC_68; + UINT32 *Id_MCDC_69; + UINT32 *Id_MCDC_70; + UINT32 *Id_MCDC_71; + UINT32 *Id_MCDC_72; + UINT32 *Id_MCDC_73; + UINT32 *Id_MCDC_74; + UINT32 *Id_MCDC_75; + UINT32 *Id_MCDC_76; + UINT16 *Id_MCDC_77; + UINT32 *Id_MCDC_78; + UINT16 *Id_MCDC_79; + UINT32 *Id_MCDC_80; + UINT16 *Id_MCDC_81; + UINT32 *Id_MCDC_82; + UINT32 *Id_MCDC_83; + UINT32 *Id_MCDC_84; + INT16 *Id_MCDC_85; + INT16 *Id_MCDC_86; + INT16 *Id_MCDC_87; +} ; +typedef long INT64; +typedef float REAL32; +void Id_MCDC_89(VLMODE *Id_MCDC_88); +FILE *fopen(const char *Id_MCDC_90, const char *Id_MCDC_91); +int main(); +void __VERIFIER_assert(int Id_MCDC_92); +unsigned int Id_MCDC_93 = 0U; +UINT32 __tmp_1075_0; +int __tmp_1075_1; +const UINT32 *__tmp_1075_2; + int main() + { + void *main__Id_MCDC_97; + void *main__Id_MCDC_98; + void *main__Id_MCDC_99; + void *main__Id_MCDC_100; + void *main__Id_MCDC_101; + void *main__Id_MCDC_102; + int main__Id_MCDC_103; + int main__Id_MCDC_104; + int main__Id_MCDC_105; + int main__Id_MCDC_106; + int main__Id_MCDC_107; + int main__Id_MCDC_108; + int main__Id_MCDC_109; + short main__Id_MCDC_110; + short main__Id_MCDC_111; + FILE *main__Id_MCDC_112; + unsigned short main__Id_MCDC_113; + unsigned short main__Id_MCDC_114; + unsigned short main__Id_MCDC_115 = 0; + unsigned short main__Id_MCDC_116 = 0; + char main__Id_MCDC_117; + char main__Id_MCDC_118; + VLMODE main__Id_MCDC_119; + POS_CTRL_MODE main__Id_MCDC_120; + DEV_CNTRL main__Id_MCDC_121; + main__Id_MCDC_112 = fopen("in.eds", "r"); + if (main__Id_MCDC_112 == ((void *)0)) + { + return __return_main; + } + else + { + { + VLMODE *__tmp_1; + __tmp_1 = &main__Id_MCDC_119; + VLMODE *Id_MCDC_89__Id_MCDC_88; + Id_MCDC_89__Id_MCDC_88 = __tmp_1; + void *Id_MCDC_89__Id_MCDC_94[41] = { Id_MCDC_89__Id_MCDC_88->Id_MCDC_47, Id_MCDC_89__Id_MCDC_88->Id_MCDC_48, Id_MCDC_89__Id_MCDC_88->Id_MCDC_49, Id_MCDC_89__Id_MCDC_88->Id_MCDC_50, Id_MCDC_89__Id_MCDC_88->Id_MCDC_51, Id_MCDC_89__Id_MCDC_88->Id_MCDC_52, Id_MCDC_89__Id_MCDC_88->Id_MCDC_53, Id_MCDC_89__Id_MCDC_88->Id_MCDC_54, Id_MCDC_89__Id_MCDC_88->Id_MCDC_55, Id_MCDC_89__Id_MCDC_88->Id_MCDC_56, Id_MCDC_89__Id_MCDC_88->Id_MCDC_57, Id_MCDC_89__Id_MCDC_88->Id_MCDC_58, Id_MCDC_89__Id_MCDC_88->Id_MCDC_59, Id_MCDC_89__Id_MCDC_88->Id_MCDC_60, Id_MCDC_89__Id_MCDC_88->Id_MCDC_61, Id_MCDC_89__Id_MCDC_88->Id_MCDC_62, Id_MCDC_89__Id_MCDC_88->Id_MCDC_63, Id_MCDC_89__Id_MCDC_88->Id_MCDC_64, Id_MCDC_89__Id_MCDC_88->Id_MCDC_65, Id_MCDC_89__Id_MCDC_88->Id_MCDC_66, Id_MCDC_89__Id_MCDC_88->Id_MCDC_67, Id_MCDC_89__Id_MCDC_88->Id_MCDC_68, Id_MCDC_89__Id_MCDC_88->Id_MCDC_69, Id_MCDC_89__Id_MCDC_88->Id_MCDC_70, Id_MCDC_89__Id_MCDC_88->Id_MCDC_71, Id_MCDC_89__Id_MCDC_88->Id_MCDC_72, Id_MCDC_89__Id_MCDC_88->Id_MCDC_73, Id_MCDC_89__Id_MCDC_88->Id_MCDC_74, Id_MCDC_89__Id_MCDC_88->Id_MCDC_75, Id_MCDC_89__Id_MCDC_88->Id_MCDC_76, Id_MCDC_89__Id_MCDC_88->Id_MCDC_77, Id_MCDC_89__Id_MCDC_88->Id_MCDC_78, Id_MCDC_89__Id_MCDC_88->Id_MCDC_79, Id_MCDC_89__Id_MCDC_88->Id_MCDC_80, Id_MCDC_89__Id_MCDC_88->Id_MCDC_81, Id_MCDC_89__Id_MCDC_88->Id_MCDC_82, Id_MCDC_89__Id_MCDC_88->Id_MCDC_83, Id_MCDC_89__Id_MCDC_88->Id_MCDC_84, Id_MCDC_89__Id_MCDC_88->Id_MCDC_85, Id_MCDC_89__Id_MCDC_88->Id_MCDC_86, Id_MCDC_89__Id_MCDC_88->Id_MCDC_87 }; + const UINT32 Id_MCDC_89__Id_MCDC_95[42][3] = { { (UINT16 )24642, (UINT8 )0, (UINT32 )3 }, { (UINT16 )24643, (UINT8 )0, (UINT32 )3 }, { (UINT16 )24659, (UINT8 )0, (UINT32 )3 }, { (UINT16 )24660, (UINT8 )0, (UINT32 )3 }, { (UINT16 )24661, (UINT8 )0, (UINT32 )3 }, { (UINT16 )24654, (UINT8 )0, (UINT32 )7 }, { (UINT16 )24652, (UINT8 )1, (UINT32 )4 }, { (UINT16 )24652, (UINT8 )2, (UINT32 )4 }, { (UINT16 )24651, (UINT8 )1, (UINT32 )3 }, { (UINT16 )24651, (UINT8 )2, (UINT32 )3 }, { (UINT16 )24653, (UINT8 )0, (UINT32 )2 }, { (UINT16 )24646, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24646, (UINT8 )2, (UINT32 )7 }, { (UINT16 )24647, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24647, (UINT8 )2, (UINT32 )7 }, { (UINT16 )24647, (UINT8 )3, (UINT32 )7 }, { (UINT16 )24647, (UINT8 )4, (UINT32 )7 }, { (UINT16 )24664, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24664, (UINT8 )2, (UINT32 )7 }, { (UINT16 )24665, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24665, (UINT8 )2, (UINT32 )7 }, { (UINT16 )24665, (UINT8 )3, (UINT32 )7 }, { (UINT16 )24665, (UINT8 )4, (UINT32 )7 }, { (UINT16 )24662, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24662, (UINT8 )2, (UINT32 )7 }, { (UINT16 )24663, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24663, (UINT8 )2, (UINT32 )7 }, { (UINT16 )24663, (UINT8 )3, (UINT32 )7 }, { (UINT16 )24663, (UINT8 )4, (UINT32 )7 }, { (UINT16 )24648, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24648, (UINT8 )2, (UINT32 )6 }, { (UINT16 )24649, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24649, (UINT8 )2, (UINT32 )6 }, { (UINT16 )24650, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24650, (UINT8 )2, (UINT32 )6 }, { (UINT16 )24655, (UINT8 )0, (UINT32 )7 }, { (UINT16 )24656, (UINT8 )0, (UINT32 )7 }, { (UINT16 )24657, (UINT8 )0, (UINT32 )7 }, { (UINT16 )24644, (UINT8 )0, (UINT32 )3 }, { (UINT16 )24645, (UINT8 )0, (UINT32 )3 }, { (UINT16 )24658, (UINT8 )0, (UINT32 )3 }, { 0, 0, 0 } }; + UINT32 Id_MCDC_89__Id_MCDC_96 = 0; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_2; + __tmp_2 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_2; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_3; + __tmp_3 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_3; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_4; + __tmp_4 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_4; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_5; + __tmp_5 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_5; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_6; + __tmp_6 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_6; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_7; + __tmp_7 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_7; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_8; + __tmp_8 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_8; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_9; + __tmp_9 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_9; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_10; + __tmp_10 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_10; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + __tmp_1075_0 = Id_MCDC_89____CPAchecker_TMP_2; + __tmp_1075_1 = Id_MCDC_89____CPAchecker_TMP_1; + __tmp_1075_2 = Id_MCDC_89____CPAchecker_TMP_0; + label_1075:; + Id_MCDC_89____CPAchecker_TMP_2 = __tmp_1075_0; + Id_MCDC_89____CPAchecker_TMP_1 = __tmp_1075_1; + Id_MCDC_89____CPAchecker_TMP_0 = __tmp_1075_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_11; + __tmp_11 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_11; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + __tmp_1075_0 = Id_MCDC_89____CPAchecker_TMP_2; + __tmp_1075_1 = Id_MCDC_89____CPAchecker_TMP_1; + __tmp_1075_2 = Id_MCDC_89____CPAchecker_TMP_0; + goto label_1075; + } + else + { + return __return_main; + } + } + } + } + else + { + Id_MCDC_89____CPAchecker_TMP_1 = 0; + { + int __tmp_12; + __tmp_12 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_12; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + {reach_error();} + return __return_main; + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } diff --git a/data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_4.c.v+nlh-reducer.c b/data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_4.c.v+nlh-reducer.c new file mode 100644 index 000000000..71060abfa --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_4.c.v+nlh-reducer.c @@ -0,0 +1,2017 @@ +int __return_main; +void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "aiob_4.c.v+nlh-reducer.c", 4, "reach_error"); } +struct Velocity_Mode ; +struct PCMode ; +struct DeviceControl ; +struct _IO_FILE ; +struct _IO_marker ; +typedef struct DeviceControl DEV_CNTRL; +typedef struct _IO_FILE FILE; +typedef struct _IO_FILE __FILE; +typedef struct _IO_FILE _IO_FILE; +typedef long __off_t; +typedef long long __quad_t; +typedef __quad_t __off64_t; +typedef void _IO_lock_t; +typedef struct PCMode POS_CTRL_MODE; +typedef struct Velocity_Mode VLMODE; +typedef unsigned int size_t; +struct _IO_FILE { + int Id_MCDC_0; + char *Id_MCDC_1; + char *Id_MCDC_2; + char *Id_MCDC_3; + char *Id_MCDC_4; + char *Id_MCDC_5; + char *Id_MCDC_6; + char *Id_MCDC_7; + char *Id_MCDC_8; + char *Id_MCDC_9; + char *Id_MCDC_10; + char *Id_MCDC_11; + struct _IO_marker *Id_MCDC_12; + struct _IO_FILE *Id_MCDC_13; + int Id_MCDC_14; + int Id_MCDC_15; + __off_t Id_MCDC_16; + unsigned short Id_MCDC_17; + signed char Id_MCDC_18; + char Id_MCDC_19[1]; + _IO_lock_t *Id_MCDC_20; + __off64_t Id_MCDC_21; + void *Id_MCDC_22; + void *Id_MCDC_23; + void *Id_MCDC_24; + void *Id_MCDC_25; + size_t Id_MCDC_26; + int Id_MCDC_27; + char Id_MCDC_28[40]; +} ; +typedef unsigned char UINT8; +typedef unsigned short UINT16; +typedef unsigned int UINT32; +typedef unsigned long long UINT64; +typedef char INT8; +typedef char CHAR; +typedef char *STRING; +typedef short INT16; +struct DeviceControl { + INT8 *Id_MCDC_29; + UINT16 *Id_MCDC_30; + UINT16 *Id_MCDC_31; + INT16 *Id_MCDC_32; + INT16 *Id_MCDC_33; + INT16 *Id_MCDC_34; + INT16 *Id_MCDC_35; + INT16 *Id_MCDC_36; + INT8 *Id_MCDC_37; +} ; +typedef int INT32; +struct PCMode { + INT16 *Id_MCDC_38; + INT32 *Id_MCDC_39; + INT32 *Id_MCDC_40; + INT32 *Id_MCDC_41; + UINT16 *Id_MCDC_42; + UINT32 *Id_MCDC_43; + UINT16 *Id_MCDC_44; + INT32 *Id_MCDC_45; + INT32 *Id_MCDC_46; +} ; +struct Velocity_Mode { + INT16 *Id_MCDC_47; + INT16 *Id_MCDC_48; + INT16 *Id_MCDC_49; + INT16 *Id_MCDC_50; + INT16 *Id_MCDC_51; + UINT32 *Id_MCDC_52; + INT32 *Id_MCDC_53; + INT32 *Id_MCDC_54; + INT32 *Id_MCDC_55; + INT32 *Id_MCDC_56; + UINT8 *Id_MCDC_57; + UINT32 *Id_MCDC_58; + UINT32 *Id_MCDC_59; + UINT32 *Id_MCDC_60; + UINT32 *Id_MCDC_61; + UINT32 *Id_MCDC_62; + UINT32 *Id_MCDC_63; + UINT32 *Id_MCDC_64; + UINT32 *Id_MCDC_65; + UINT32 *Id_MCDC_66; + UINT32 *Id_MCDC_67; + UINT32 *Id_MCDC_68; + UINT32 *Id_MCDC_69; + UINT32 *Id_MCDC_70; + UINT32 *Id_MCDC_71; + UINT32 *Id_MCDC_72; + UINT32 *Id_MCDC_73; + UINT32 *Id_MCDC_74; + UINT32 *Id_MCDC_75; + UINT32 *Id_MCDC_76; + UINT16 *Id_MCDC_77; + UINT32 *Id_MCDC_78; + UINT16 *Id_MCDC_79; + UINT32 *Id_MCDC_80; + UINT16 *Id_MCDC_81; + UINT32 *Id_MCDC_82; + UINT32 *Id_MCDC_83; + UINT32 *Id_MCDC_84; + INT16 *Id_MCDC_85; + INT16 *Id_MCDC_86; + INT16 *Id_MCDC_87; +} ; +typedef long INT64; +typedef float REAL32; +void Id_MCDC_89(VLMODE *Id_MCDC_88); +FILE *fopen(const char *Id_MCDC_90, const char *Id_MCDC_91); +int main(); +void __VERIFIER_assert(int Id_MCDC_92); +unsigned int Id_MCDC_93 = 0U; + int main() + { + void *main__Id_MCDC_97; + void *main__Id_MCDC_98; + void *main__Id_MCDC_99; + void *main__Id_MCDC_100; + void *main__Id_MCDC_101; + void *main__Id_MCDC_102; + int main__Id_MCDC_103; + int main__Id_MCDC_104; + int main__Id_MCDC_105; + int main__Id_MCDC_106; + int main__Id_MCDC_107; + int main__Id_MCDC_108; + int main__Id_MCDC_109; + short main__Id_MCDC_110; + short main__Id_MCDC_111; + FILE *main__Id_MCDC_112; + unsigned short main__Id_MCDC_113; + unsigned short main__Id_MCDC_114; + unsigned short main__Id_MCDC_115 = 0; + unsigned short main__Id_MCDC_116 = 0; + char main__Id_MCDC_117; + char main__Id_MCDC_118; + VLMODE main__Id_MCDC_119; + POS_CTRL_MODE main__Id_MCDC_120; + DEV_CNTRL main__Id_MCDC_121; + main__Id_MCDC_112 = fopen("in.eds", "r"); + if (main__Id_MCDC_112 == ((void *)0)) + { + return __return_main; + } + else + { + { + VLMODE *__tmp_1; + __tmp_1 = &main__Id_MCDC_119; + VLMODE *Id_MCDC_89__Id_MCDC_88; + Id_MCDC_89__Id_MCDC_88 = __tmp_1; + void *Id_MCDC_89__Id_MCDC_94[41] = { Id_MCDC_89__Id_MCDC_88->Id_MCDC_47, Id_MCDC_89__Id_MCDC_88->Id_MCDC_48, Id_MCDC_89__Id_MCDC_88->Id_MCDC_49, Id_MCDC_89__Id_MCDC_88->Id_MCDC_50, Id_MCDC_89__Id_MCDC_88->Id_MCDC_51, Id_MCDC_89__Id_MCDC_88->Id_MCDC_52, Id_MCDC_89__Id_MCDC_88->Id_MCDC_53, Id_MCDC_89__Id_MCDC_88->Id_MCDC_54, Id_MCDC_89__Id_MCDC_88->Id_MCDC_55, Id_MCDC_89__Id_MCDC_88->Id_MCDC_56, Id_MCDC_89__Id_MCDC_88->Id_MCDC_57, Id_MCDC_89__Id_MCDC_88->Id_MCDC_58, Id_MCDC_89__Id_MCDC_88->Id_MCDC_59, Id_MCDC_89__Id_MCDC_88->Id_MCDC_60, Id_MCDC_89__Id_MCDC_88->Id_MCDC_61, Id_MCDC_89__Id_MCDC_88->Id_MCDC_62, Id_MCDC_89__Id_MCDC_88->Id_MCDC_63, Id_MCDC_89__Id_MCDC_88->Id_MCDC_64, Id_MCDC_89__Id_MCDC_88->Id_MCDC_65, Id_MCDC_89__Id_MCDC_88->Id_MCDC_66, Id_MCDC_89__Id_MCDC_88->Id_MCDC_67, Id_MCDC_89__Id_MCDC_88->Id_MCDC_68, Id_MCDC_89__Id_MCDC_88->Id_MCDC_69, Id_MCDC_89__Id_MCDC_88->Id_MCDC_70, Id_MCDC_89__Id_MCDC_88->Id_MCDC_71, Id_MCDC_89__Id_MCDC_88->Id_MCDC_72, Id_MCDC_89__Id_MCDC_88->Id_MCDC_73, Id_MCDC_89__Id_MCDC_88->Id_MCDC_74, Id_MCDC_89__Id_MCDC_88->Id_MCDC_75, Id_MCDC_89__Id_MCDC_88->Id_MCDC_76, Id_MCDC_89__Id_MCDC_88->Id_MCDC_77, Id_MCDC_89__Id_MCDC_88->Id_MCDC_78, Id_MCDC_89__Id_MCDC_88->Id_MCDC_79, Id_MCDC_89__Id_MCDC_88->Id_MCDC_80, Id_MCDC_89__Id_MCDC_88->Id_MCDC_81, Id_MCDC_89__Id_MCDC_88->Id_MCDC_82, Id_MCDC_89__Id_MCDC_88->Id_MCDC_83, Id_MCDC_89__Id_MCDC_88->Id_MCDC_84, Id_MCDC_89__Id_MCDC_88->Id_MCDC_85, Id_MCDC_89__Id_MCDC_88->Id_MCDC_86, Id_MCDC_89__Id_MCDC_88->Id_MCDC_87 }; + const UINT32 Id_MCDC_89__Id_MCDC_95[42][3] = { { (UINT16 )24642, (UINT8 )0, (UINT32 )3 }, { (UINT16 )24643, (UINT8 )0, (UINT32 )3 }, { (UINT16 )24659, (UINT8 )0, (UINT32 )3 }, { (UINT16 )24660, (UINT8 )0, (UINT32 )3 }, { (UINT16 )24661, (UINT8 )0, (UINT32 )3 }, { (UINT16 )24654, (UINT8 )0, (UINT32 )7 }, { (UINT16 )24652, (UINT8 )1, (UINT32 )4 }, { (UINT16 )24652, (UINT8 )2, (UINT32 )4 }, { (UINT16 )24651, (UINT8 )1, (UINT32 )3 }, { (UINT16 )24651, (UINT8 )2, (UINT32 )3 }, { (UINT16 )24653, (UINT8 )0, (UINT32 )2 }, { (UINT16 )24646, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24646, (UINT8 )2, (UINT32 )7 }, { (UINT16 )24647, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24647, (UINT8 )2, (UINT32 )7 }, { (UINT16 )24647, (UINT8 )3, (UINT32 )7 }, { (UINT16 )24647, (UINT8 )4, (UINT32 )7 }, { (UINT16 )24664, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24664, (UINT8 )2, (UINT32 )7 }, { (UINT16 )24665, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24665, (UINT8 )2, (UINT32 )7 }, { (UINT16 )24665, (UINT8 )3, (UINT32 )7 }, { (UINT16 )24665, (UINT8 )4, (UINT32 )7 }, { (UINT16 )24662, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24662, (UINT8 )2, (UINT32 )7 }, { (UINT16 )24663, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24663, (UINT8 )2, (UINT32 )7 }, { (UINT16 )24663, (UINT8 )3, (UINT32 )7 }, { (UINT16 )24663, (UINT8 )4, (UINT32 )7 }, { (UINT16 )24648, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24648, (UINT8 )2, (UINT32 )6 }, { (UINT16 )24649, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24649, (UINT8 )2, (UINT32 )6 }, { (UINT16 )24650, (UINT8 )1, (UINT32 )7 }, { (UINT16 )24650, (UINT8 )2, (UINT32 )6 }, { (UINT16 )24655, (UINT8 )0, (UINT32 )7 }, { (UINT16 )24656, (UINT8 )0, (UINT32 )7 }, { (UINT16 )24657, (UINT8 )0, (UINT32 )7 }, { (UINT16 )24644, (UINT8 )0, (UINT32 )3 }, { (UINT16 )24645, (UINT8 )0, (UINT32 )3 }, { (UINT16 )24658, (UINT8 )0, (UINT32 )3 }, { 0, 0, 0 } }; + UINT32 Id_MCDC_89__Id_MCDC_96 = 0; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_2; + __tmp_2 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_2; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_3; + __tmp_3 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_3; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_4; + __tmp_4 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_4; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_5; + __tmp_5 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_5; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_6; + __tmp_6 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_6; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_7; + __tmp_7 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_7; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_8; + __tmp_8 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_8; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_9; + __tmp_9 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_9; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_10; + __tmp_10 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_10; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_11; + __tmp_11 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_11; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_12; + __tmp_12 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_12; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_13; + __tmp_13 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_13; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_14; + __tmp_14 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_14; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_15; + __tmp_15 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_15; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_16; + __tmp_16 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_16; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_17; + __tmp_17 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_17; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_18; + __tmp_18 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_18; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_19; + __tmp_19 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_19; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_20; + __tmp_20 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_20; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_21; + __tmp_21 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_21; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_22; + __tmp_22 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_22; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_23; + __tmp_23 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_23; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_24; + __tmp_24 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_24; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_25; + __tmp_25 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_25; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_26; + __tmp_26 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_26; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_27; + __tmp_27 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_27; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_28; + __tmp_28 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_28; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_29; + __tmp_29 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_29; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_30; + __tmp_30 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_30; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_31; + __tmp_31 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_31; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_32; + __tmp_32 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_32; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_33; + __tmp_33 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_33; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_34; + __tmp_34 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_34; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_35; + __tmp_35 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_35; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_36; + __tmp_36 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_36; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_37; + __tmp_37 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_37; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_38; + __tmp_38 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_38; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_39; + __tmp_39 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_39; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_40; + __tmp_40 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_40; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_41; + __tmp_41 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_41; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_42; + __tmp_42 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_42; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + Id_MCDC_89____CPAchecker_TMP_1 = 1; + { + int __tmp_43; + __tmp_43 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_43; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_0 = Id_MCDC_89__Id_MCDC_95[Id_MCDC_93]; + if ((Id_MCDC_89____CPAchecker_TMP_0[0]) != 0) + { + UINT32 Id_MCDC_89____CPAchecker_TMP_2 = Id_MCDC_89__Id_MCDC_96; + Id_MCDC_89__Id_MCDC_96 = Id_MCDC_89__Id_MCDC_96 + 1; + Id_MCDC_89____CPAchecker_TMP_2; + const UINT32 *Id_MCDC_89____CPAchecker_TMP_0; + Id_MCDC_93 = Id_MCDC_89__Id_MCDC_96; + "18_6630_4294986945"; + int Id_MCDC_89____CPAchecker_TMP_1; + if (Id_MCDC_93 >= 0) + { + if (Id_MCDC_93 < 42) + { + return __return_main; + } + else + { + Id_MCDC_89____CPAchecker_TMP_1 = 0; + { + int __tmp_44; + __tmp_44 = Id_MCDC_89____CPAchecker_TMP_1; + int __VERIFIER_assert__Id_MCDC_92; + __VERIFIER_assert__Id_MCDC_92 = __tmp_44; + if (__VERIFIER_assert__Id_MCDC_92 == 0) + { + {reach_error();} + return __return_main; + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } diff --git a/data/benchmarks/sv-benchmarks/loop-industry-pattern/mod3.c b/data/benchmarks/sv-benchmarks/loop-industry-pattern/mod3.c new file mode 100644 index 000000000..79360f27d --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-industry-pattern/mod3.c @@ -0,0 +1,37 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "mod3.c", 3, "reach_error"); } + +// Category: Loops +// Verification result: TRUE +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond){ + if(!(cond)) + ERROR: {reach_error();abort();} + return; +} + +int main(){ + unsigned int x = __VERIFIER_nondet_int(); + unsigned int y = 1; + + while(__VERIFIER_nondet_int()){ + if(x % 3 == 1){ + x += 2; y = 0;} + else{ + if(x % 3 == 2){ + x += 1; y = 0;} + else{ + if(__VERIFIER_nondet_int()){ + x += 4; y = 1;} + else{ + x += 5; y = 1;} + } + } + } + if(y == 0) + __VERIFIER_assert(x % 3 == 0); + return 0; +} + + diff --git a/data/benchmarks/sv-benchmarks/loop-industry-pattern/mod3.c.v+cfa-reducer.c b/data/benchmarks/sv-benchmarks/loop-industry-pattern/mod3.c.v+cfa-reducer.c new file mode 100644 index 000000000..fb958953a --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-industry-pattern/mod3.c.v+cfa-reducer.c @@ -0,0 +1,78 @@ +int __return_main; +void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "mod3.c.v+cfa-reducer.c", 4, "reach_error"); } +int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond); +int main(); +int __return_107; + int main() + { + unsigned int main__x = __VERIFIER_nondet_int(); + unsigned int main__y = 1; + label_75:; + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + if ((main__x % 3) == 1) + { + main__x = main__x + 2; + main__y = 0; + label_87:; + goto label_75; + } + else + { + if ((main__x % 3) == 2) + { + main__x = main__x + 1; + main__y = 0; + goto label_87; + } + else + { + int main____CPAchecker_TMP_1; + main____CPAchecker_TMP_1 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_1 == 0)) + { + main__x = main__x + 4; + main__y = 1; + goto label_87; + } + else + { + main__x = main__x + 5; + main__y = 1; + goto label_87; + } + } + } + } + else + { + if (main__y == 0) + { + { + int __tmp_1; + __tmp_1 = (main__x % 3) == 0; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_1; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + __return_107 = 0; + return __return_107; + } + } + } + else + { + return __return_main; + } + } + } diff --git a/data/benchmarks/sv-benchmarks/loop-industry-pattern/mod3.c.v+lhb-reducer.c b/data/benchmarks/sv-benchmarks/loop-industry-pattern/mod3.c.v+lhb-reducer.c new file mode 100644 index 000000000..7f7566fb6 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-industry-pattern/mod3.c.v+lhb-reducer.c @@ -0,0 +1,151 @@ +int __return_main; +void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "mod3.c.v+lhb-reducer.c", 4, "reach_error"); } +int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond); +int main(); +int __tmp_112_0; +int __tmp_94_0; +int __tmp_93_0; +int __tmp_88_0; +int __tmp_88_1; +int __tmp_91_0; +int __tmp_91_1; +int __return_121; + int main() + { + unsigned int main__x = __VERIFIER_nondet_int(); + unsigned int main__y = 1; + label_75:; + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + if ((main__x % 3) == 1) + { + main__x = main__x + 2; + main__y = 0; + __tmp_112_0 = main____CPAchecker_TMP_0; + label_112:; + main____CPAchecker_TMP_0 = __tmp_112_0; + __tmp_94_0 = main____CPAchecker_TMP_0; + label_94:; + main____CPAchecker_TMP_0 = __tmp_94_0; + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + if ((main__x % 3) == 1) + { + main__x = main__x + 2; + main__y = 0; + __tmp_112_0 = main____CPAchecker_TMP_0; + goto label_112; + } + else + { + if ((main__x % 3) == 2) + { + main__x = main__x + 1; + main__y = 0; + __tmp_93_0 = main____CPAchecker_TMP_0; + label_93:; + main____CPAchecker_TMP_0 = __tmp_93_0; + __tmp_94_0 = main____CPAchecker_TMP_0; + goto label_94; + } + else + { + int main____CPAchecker_TMP_1; + main____CPAchecker_TMP_1 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_1 == 0)) + { + main__x = main__x + 4; + main__y = 1; + __tmp_88_0 = main____CPAchecker_TMP_0; + __tmp_88_1 = main____CPAchecker_TMP_1; + label_88:; + main____CPAchecker_TMP_0 = __tmp_88_0; + main____CPAchecker_TMP_1 = __tmp_88_1; + label_89:; + goto label_75; + } + else + { + main__x = main__x + 5; + main__y = 1; + __tmp_91_0 = main____CPAchecker_TMP_0; + __tmp_91_1 = main____CPAchecker_TMP_1; + label_91:; + main____CPAchecker_TMP_0 = __tmp_91_0; + main____CPAchecker_TMP_1 = __tmp_91_1; + goto label_89; + } + } + } + } + else + { + if (main__y == 0) + { + { + int __tmp_1; + __tmp_1 = (main__x % 3) == 0; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_1; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + __return_121 = 0; + return __return_121; + } + } + } + else + { + return __return_main; + } + } + } + else + { + if ((main__x % 3) == 2) + { + main__x = main__x + 1; + main__y = 0; + __tmp_93_0 = main____CPAchecker_TMP_0; + goto label_93; + } + else + { + int main____CPAchecker_TMP_1; + main____CPAchecker_TMP_1 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_1 == 0)) + { + main__x = main__x + 4; + main__y = 1; + __tmp_88_0 = main____CPAchecker_TMP_0; + __tmp_88_1 = main____CPAchecker_TMP_1; + goto label_88; + } + else + { + main__x = main__x + 5; + main__y = 1; + __tmp_91_0 = main____CPAchecker_TMP_0; + __tmp_91_1 = main____CPAchecker_TMP_1; + goto label_91; + } + } + } + } + else + { + return __return_main; + } + } diff --git a/data/benchmarks/sv-benchmarks/loop-industry-pattern/mod3.c.v+sep-reducer.c b/data/benchmarks/sv-benchmarks/loop-industry-pattern/mod3.c.v+sep-reducer.c new file mode 100644 index 000000000..4725a1468 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-industry-pattern/mod3.c.v+sep-reducer.c @@ -0,0 +1,147 @@ +int __return_main; +void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "mod3.c.v+sep-reducer.c", 4, "reach_error"); } +int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond); +int main(); +int __tmp_31_0; +int __tmp_28_0; +int __return_65; +int __tmp_22_0; +int __tmp_22_1; +int __tmp_25_0; +int __tmp_25_1; + int main() + { + unsigned int main__x = __VERIFIER_nondet_int(); + unsigned int main__y = 1; + label_9:; + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + if ((main__x % 3) == 1) + { + main__x = main__x + 2; + main__y = 0; + __tmp_31_0 = main____CPAchecker_TMP_0; + label_31:; + main____CPAchecker_TMP_0 = __tmp_31_0; + goto label_29; + } + else + { + if ((main__x % 3) == 2) + { + main__x = main__x + 1; + main__y = 0; + __tmp_28_0 = main____CPAchecker_TMP_0; + label_28:; + main____CPAchecker_TMP_0 = __tmp_28_0; + label_29:; + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + if ((main__x % 3) == 1) + { + main__x = main__x + 2; + main__y = 0; + __tmp_31_0 = main____CPAchecker_TMP_0; + goto label_31; + } + else + { + if ((main__x % 3) == 2) + { + main__x = main__x + 1; + main__y = 0; + __tmp_28_0 = main____CPAchecker_TMP_0; + goto label_28; + } + else + { + int main____CPAchecker_TMP_1; + main____CPAchecker_TMP_1 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_1 == 0)) + { + main__x = main__x + 4; + main__y = 1; + __tmp_22_0 = main____CPAchecker_TMP_0; + __tmp_22_1 = main____CPAchecker_TMP_1; + goto label_22; + } + else + { + main__x = main__x + 5; + main__y = 1; + __tmp_25_0 = main____CPAchecker_TMP_0; + __tmp_25_1 = main____CPAchecker_TMP_1; + goto label_25; + } + } + } + } + else + { + if (main__y == 0) + { + { + int __tmp_1; + __tmp_1 = (main__x % 3) == 0; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_1; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + __return_65 = 0; + return __return_65; + } + } + } + else + { + return __return_main; + } + } + } + else + { + int main____CPAchecker_TMP_1; + main____CPAchecker_TMP_1 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_1 == 0)) + { + main__x = main__x + 4; + main__y = 1; + __tmp_22_0 = main____CPAchecker_TMP_0; + __tmp_22_1 = main____CPAchecker_TMP_1; + label_22:; + main____CPAchecker_TMP_0 = __tmp_22_0; + main____CPAchecker_TMP_1 = __tmp_22_1; + label_23:; + goto label_9; + } + else + { + main__x = main__x + 5; + main__y = 1; + __tmp_25_0 = main____CPAchecker_TMP_0; + __tmp_25_1 = main____CPAchecker_TMP_1; + label_25:; + main____CPAchecker_TMP_0 = __tmp_25_0; + main____CPAchecker_TMP_1 = __tmp_25_1; + goto label_23; + } + } + } + } + else + { + return __return_main; + } + } diff --git a/data/benchmarks/sv-benchmarks/loop-industry-pattern/nested-3.c b/data/benchmarks/sv-benchmarks/loop-industry-pattern/nested-3.c new file mode 100644 index 000000000..11eba82b7 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-industry-pattern/nested-3.c @@ -0,0 +1,32 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "nested-3.c", 3, "reach_error"); } +extern int __VERIFIER_nondet_int(void); + + +//VERIFICATION RESULT : TRUE + + +int last ; +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main() { + last = __VERIFIER_nondet_int(); + int a=0,b=0,c=0,st=0; + while(true) { + st=1; + for(c=0;c<200000;c++) + if (c==last ) st = 0; + if(st==0 && c==last+1){ + a+=3; b+=3;} + else { a+=2; b+=2; } + if(c==last && st==0) + a = a+1; + __VERIFIER_assert(a==b && c==200000); + } +} diff --git a/data/benchmarks/sv-benchmarks/loop-industry-pattern/ofuf_1.c b/data/benchmarks/sv-benchmarks/loop-industry-pattern/ofuf_1.c new file mode 100644 index 000000000..a07da0451 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-industry-pattern/ofuf_1.c @@ -0,0 +1,492 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "ofuf_1.c", 3, "reach_error"); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void avoid_zero(int y) +{ + if (!y) + { + abort(); + } +} + +struct Od_SubIndex; +struct Od_Index; +struct Od_IndexTable; +struct CanOpenNode; +struct PCMode; +struct DeviceControl; +struct _IO_FILE; +struct _IO_marker; +typedef struct _IO_FILE FILE; +typedef struct _IO_FILE __FILE; +typedef struct _IO_FILE _IO_FILE; +typedef long __off_t; +typedef long long __quad_t; +typedef __quad_t __off64_t; +typedef void _IO_lock_t; +typedef struct PCMode POS_CTRL_MODE; +typedef struct CanOpenNode CanOpenNode; +typedef struct Od_IndexTable Od_IndexTable; +struct Od_IndexTable{ +struct Od_Index* Id_MCDC_0; +struct Od_IndexTable* Id_MCDC_1; +} ; +typedef unsigned int size_t; +struct _IO_FILE{ +int Id_MCDC_2; +char * Id_MCDC_3; +char * Id_MCDC_4; +char * Id_MCDC_5; +char * Id_MCDC_6; +char * Id_MCDC_7; +char * Id_MCDC_8; +char * Id_MCDC_9; +char * Id_MCDC_10; +char * Id_MCDC_11; +char * Id_MCDC_12; +char * Id_MCDC_13; +struct _IO_marker* Id_MCDC_14; +struct _IO_FILE* Id_MCDC_15; +int Id_MCDC_16; +int Id_MCDC_17; +__off_t Id_MCDC_18; +unsigned short Id_MCDC_19; +signed char Id_MCDC_20; +char Id_MCDC_21 [1]; +_IO_lock_t* Id_MCDC_22; +__off64_t Id_MCDC_23; +void * Id_MCDC_24; +void * Id_MCDC_25; +void * Id_MCDC_26; +void * Id_MCDC_27; +size_t Id_MCDC_28; +int Id_MCDC_29; +char Id_MCDC_30 [40]; +} ; +typedef unsigned char UINT8; +typedef unsigned short UINT16; +typedef void pEmcyCallBackFunc_t(UINT8, UINT16); +typedef struct { +UINT8 Id_MCDC_31; +pEmcyCallBackFunc_t* Id_MCDC_32; +} T1T1_263_0; +typedef T1T1_263_0 nozomi32nozomi32_2156_0; +typedef nozomi32nozomi32_2156_0 Emcy_buff; +typedef unsigned int UINT32; +typedef struct { +UINT8 Id_MCDC_33; +UINT8 Id_MCDC_34; +UINT8 Id_MCDC_35; +UINT8 Id_MCDC_36; +UINT32 Id_MCDC_37; +UINT32 Id_MCDC_38; +void * Id_MCDC_39 [8]; +UINT8 Id_MCDC_40 [8]; +} T1T1_243_0; +typedef T1T1_243_0 nozomi32nozomi32_2074_0; +typedef nozomi32nozomi32_2074_0 Rxpdo; +typedef struct { +UINT8 Id_MCDC_33; +UINT8 Id_MCDC_34; +UINT8 Id_MCDC_35; +UINT8 Id_MCDC_36; +UINT32 Id_MCDC_37; +UINT32* Id_MCDC_39 [8]; +} T1T1_233_0; +typedef T1T1_233_0 nozomi32nozomi32_2064_0; +typedef nozomi32nozomi32_2064_0 Txpdo; +typedef struct { +UINT32 Id_MCDC_41; +Txpdo Id_MCDC_42 [4]; +Rxpdo Id_MCDC_43 [4]; +} T1T1_255_0; +typedef T1T1_255_0 nozomi32nozomi32_2090_0; +typedef nozomi32nozomi32_2090_0 PDO_Buffer; +typedef struct { +UINT16 Id_MCDC_44; +UINT8 Id_MCDC_45; +UINT32 Id_MCDC_46; +UINT32 Id_MCDC_47; +UINT32 Id_MCDC_48; +UINT16 Id_MCDC_49; +UINT32 Id_MCDC_50; +UINT32 Id_MCDC_51; +UINT8 Id_MCDC_52 [252]; +UINT16 Id_MCDC_53; +UINT8 Id_MCDC_54; +UINT8 Id_MCDC_55; +UINT32 Id_MCDC_56; +UINT32 Id_MCDC_57; +UINT32 Id_MCDC_58; +UINT32 Id_MCDC_59; +UINT32 Id_MCDC_60; +} T1T1_212_0; +typedef T1T1_212_0 nozomi32nozomi32_2004_0; +typedef nozomi32nozomi32_2004_0 SDO_Buffer; +typedef UINT32 pNmtCallBackFunc_t(UINT32); +typedef struct { +UINT32 Id_MCDC_61; +pNmtCallBackFunc_t* Id_MCDC_62; +} T1T1_206_0; +typedef T1T1_206_0 nozomi32nozomi32_2140_0; +typedef nozomi32nozomi32_2140_0 NMT_Buffer; +struct CanOpenNode{ +UINT8 Id_MCDC_54; +UINT16 Id_MCDC_44; +UINT8 Id_MCDC_63; +NMT_Buffer* Id_MCDC_64; +SDO_Buffer* Id_MCDC_65; +PDO_Buffer* Id_MCDC_66; +Emcy_buff* Id_MCDC_67; +} ; +typedef unsigned long long UINT64; +typedef char INT8; +typedef char CHAR; +typedef char * STRING; +typedef short INT16; +struct DeviceControl{ +INT8* Id_MCDC_68; +UINT16* Id_MCDC_69; +UINT16* Id_MCDC_70; +INT16* Id_MCDC_71; +INT16* Id_MCDC_72; +INT16* Id_MCDC_73; +INT16* Id_MCDC_74; +INT16* Id_MCDC_75; +INT8* Id_MCDC_76; +} ; +typedef int INT32; +struct PCMode{ +INT16* Id_MCDC_77; +INT32* Id_MCDC_78; +INT32* Id_MCDC_79; +INT32* Id_MCDC_80; +UINT16* Id_MCDC_81; +UINT32* Id_MCDC_82; +UINT16* Id_MCDC_83; +INT32* Id_MCDC_84; +INT32* Id_MCDC_85; +} ; +typedef long INT64; +typedef float REAL32; +typedef unsigned char BYTE; +struct Od_Index{ +UINT16 Id_MCDC_86; +BYTE Id_MCDC_87; +BYTE Id_MCDC_88; +struct Od_SubIndex* Id_MCDC_89; +} ; +struct Od_SubIndex{ +BYTE Id_MCDC_90; +UINT32 Id_MCDC_91; +CHAR Id_MCDC_92 [6]; +REAL32 Id_MCDC_93; +BYTE Id_MCDC_94; +UINT32 Id_MCDC_95; +UINT32 Id_MCDC_96; +void * Id_MCDC_97; +} ; +extern int strcmp(char const* Id_MCDC_98, char const* Id_MCDC_99); +UINT32 Id_MCDC_107(UINT16 Id_MCDC_100, UINT8 Id_MCDC_101, UINT32* Id_MCDC_102, UINT32* Id_MCDC_103, INT32* Id_MCDC_104, void * Id_MCDC_105, UINT8 Id_MCDC_106); +static UINT32 Id_MCDC_110(UINT32 Id_MCDC_108, UINT32 Id_MCDC_109); +static UINT32 Id_MCDC_113(UINT32 Id_MCDC_111, CHAR* Id_MCDC_112); +UINT32 Id_MCDC_114(UINT16 Id_MCDC_100, UINT8 Id_MCDC_101, UINT32* Id_MCDC_102, UINT32* Id_MCDC_103, INT32* Id_MCDC_104, void ** Id_MCDC_105); +UINT32 Id_MCDC_115(); +extern void * malloc(size_t Id_MCDC_116); +void Id_MCDC_117(); +void Id_MCDC_118(); +extern FILE* fopen(char const* Id_MCDC_119, char const* Id_MCDC_120); +int main(); +void __VERIFIER_assert(int Id_MCDC_121); +unsigned int Id_MCDC_122; +UINT16 Id_MCDC_123; +UINT16 Id_MCDC_124; +Od_IndexTable* Id_MCDC_125; +Od_IndexTable* Id_MCDC_126; +Od_IndexTable* Id_MCDC_127; +Od_IndexTable* Id_MCDC_128; +Od_IndexTable* Id_MCDC_129; +UINT32 Id_MCDC_130 [4]; +CanOpenNode Id_MCDC_131; +UINT32 Id_MCDC_132=0; + +UINT32 Id_MCDC_107(UINT16 Id_MCDC_100, UINT8 Id_MCDC_101, UINT32* Id_MCDC_102, UINT32* Id_MCDC_103, INT32* Id_MCDC_104, void * Id_MCDC_105, UINT8 Id_MCDC_106) +{ +UINT32 Id_MCDC_133=0x80000000; +Od_IndexTable* Id_MCDC_134; +Id_MCDC_134 = Id_MCDC_129; +if(Id_MCDC_134 == (( void * ) 0)) +{ +return 0x08000023; +} +if(((( UINT16 ) Id_MCDC_100 > ( UINT16 ) Id_MCDC_123) && (( UINT16 ) Id_MCDC_100 <= ( UINT16 ) 0x19FF)) || ((( UINT16 ) Id_MCDC_100 > ( UINT16 ) Id_MCDC_124) && (( UINT16 ) Id_MCDC_100 <= ( UINT16 ) 0x15FF))) +{ +if(Id_MCDC_101 == 0x01) +{ +return 0x00; +} +} +switch(Id_MCDC_100 & 0xFF00) +{ +case 0x1800: ; +case 0x1900: Id_MCDC_134 = Id_MCDC_125; +break; +case 0x1A00: ; +case 0x1B00: Id_MCDC_134 = Id_MCDC_126; +break; +case 0x1400: ; +case 0x1500: Id_MCDC_134 = Id_MCDC_127; +break; +case 0x1600: ; +case 0x1700: Id_MCDC_134 = Id_MCDC_128; +break; +default: Id_MCDC_134 = Id_MCDC_129; +break; +} +while(Id_MCDC_134->Id_MCDC_0->Id_MCDC_86 != Id_MCDC_100) +{ +Id_MCDC_134 = Id_MCDC_134->Id_MCDC_1; +if(Id_MCDC_134 == (( void * ) 0)) +{ +return 0x06020000; +} +} +if(((Id_MCDC_101 == 0) || (Id_MCDC_101 < Id_MCDC_134->Id_MCDC_0->Id_MCDC_88)) && (strcmp((Id_MCDC_134->Id_MCDC_0->Id_MCDC_89 + Id_MCDC_101)->Id_MCDC_92, "rsvd"))) +{ +if((strcmp((Id_MCDC_134->Id_MCDC_0->Id_MCDC_89 + Id_MCDC_101)->Id_MCDC_92, "wo"))) +; +else +{ +return 0x06010001; +} +} +else +{ +return 0x06090011; +} +return 0x00; +} +static UINT32 Id_MCDC_110(UINT32 Id_MCDC_108, UINT32 Id_MCDC_109) +{ +UINT32 Id_MCDC_135=0; +UINT32 Id_MCDC_136=0; +UINT32 Id_MCDC_137=1; +UINT32 Id_MCDC_138=0; +if(Id_MCDC_108 > Id_MCDC_109) +{ +Id_MCDC_135 = Id_MCDC_108; +Id_MCDC_136 = Id_MCDC_109; +} +else +if(Id_MCDC_108 < Id_MCDC_109) +{ +Id_MCDC_135 = Id_MCDC_109; +Id_MCDC_136 = Id_MCDC_108; +} +else +{ +return Id_MCDC_108; +} +while(Id_MCDC_137 != 0) +{ +avoid_zero(Id_MCDC_136 != 0); +("32_39888_4294972284" , __VERIFIER_assert(( long long ) (Id_MCDC_135 / Id_MCDC_136) >= 0 && ( long long ) (Id_MCDC_135 / Id_MCDC_136) <= 4294967295)) , Id_MCDC_138 = ( UINT32 ) (Id_MCDC_135 / Id_MCDC_136); +Id_MCDC_137 = Id_MCDC_135 - (Id_MCDC_138 * Id_MCDC_136); +Id_MCDC_135 = Id_MCDC_136; +Id_MCDC_136 = Id_MCDC_137; +} +return Id_MCDC_135; +} +static UINT32 Id_MCDC_113(UINT32 Id_MCDC_111, CHAR* Id_MCDC_112) +{ +UINT32 Id_MCDC_139=0; +UINT32 Id_MCDC_140=0; +if(Id_MCDC_111 < 2) +{ +return 0; +} +if(Id_MCDC_111 != 2) +{ +Id_MCDC_140 = (Id_MCDC_113(Id_MCDC_111 - 1, Id_MCDC_112 + 1)); +} +else +{ +Id_MCDC_140 = Id_MCDC_112[1]; +} +Id_MCDC_139 = Id_MCDC_110(Id_MCDC_112[0], Id_MCDC_140); +avoid_zero(Id_MCDC_139 != 0); +return ((Id_MCDC_112[0] * Id_MCDC_140) / Id_MCDC_139); +} +UINT32 Id_MCDC_114(UINT16 Id_MCDC_100, UINT8 Id_MCDC_101, UINT32* Id_MCDC_102, UINT32* Id_MCDC_103, INT32* Id_MCDC_104, void ** Id_MCDC_105) +{ +Od_IndexTable* Id_MCDC_134; +Id_MCDC_134 = Id_MCDC_129; +if(Id_MCDC_134 == (( void * ) 0)) +{ +return 0x08000023; +} +while(Id_MCDC_134->Id_MCDC_0->Id_MCDC_86 != Id_MCDC_100) +{ +Id_MCDC_134 = Id_MCDC_134->Id_MCDC_1; +if(Id_MCDC_134 == (( void * ) 0)) +{ +return 0x06020000; +} +} +if(((Id_MCDC_101 == 0) || (Id_MCDC_101 < Id_MCDC_134->Id_MCDC_0->Id_MCDC_88)) && (strcmp((Id_MCDC_134->Id_MCDC_0->Id_MCDC_89 + Id_MCDC_101)->Id_MCDC_92, "rsvd"))) +{ +if(strcmp((Id_MCDC_134->Id_MCDC_0->Id_MCDC_89 + Id_MCDC_101)->Id_MCDC_92, "wo")) +; +else +{ +return 0x06010001; +} +} +else +{ +return 0x06090011; +} +return 0x00; +} +UINT32 Id_MCDC_115() +{ +UINT32 Id_MCDC_141; +UINT32 Id_MCDC_142; +UINT32 Id_MCDC_143; +UINT32 Id_MCDC_144; +UINT32 Id_MCDC_145; +UINT32 Id_MCDC_146=0x00; +UINT16 Id_MCDC_147; +UINT32 Id_MCDC_148=0x00; +UINT32 Id_MCDC_149=0x00; +UINT8 Id_MCDC_35=0; +UINT8 Id_MCDC_150=0; +UINT8 Id_MCDC_36=0; +UINT8 Id_MCDC_151=0; +UINT8 Id_MCDC_152=0x00; +INT32 Id_MCDC_153; +void * Id_MCDC_154; +UINT32* Id_MCDC_155; +UINT16 Id_MCDC_156; +Id_MCDC_141 = 0x1800; +for(Id_MCDC_150 = 0 ; Id_MCDC_150 < 4 ; Id_MCDC_150++ ) +{ +Id_MCDC_130[Id_MCDC_150] = 0x1A00 + Id_MCDC_150; +} +if(Id_MCDC_141 <= 0x1803) +{ +for(Id_MCDC_156 = 0 ; Id_MCDC_156 < 4 ; Id_MCDC_156++ ) +{ +Id_MCDC_144 = Id_MCDC_141; +if(Id_MCDC_107(Id_MCDC_141, 1, & Id_MCDC_149, & Id_MCDC_148, & Id_MCDC_153, ( void * ) & Id_MCDC_146, 0) != 0x00) +{ +return 0xFFFF; +} +if(Id_MCDC_107(Id_MCDC_141, 2, & Id_MCDC_149, & Id_MCDC_148, & Id_MCDC_153, ( void * ) & Id_MCDC_146, 0) != 0x00) +{ +return 0xFFFF; +} +Id_MCDC_131.Id_MCDC_66->Id_MCDC_42[Id_MCDC_156].Id_MCDC_34 = ( UINT8 ) Id_MCDC_146; +Id_MCDC_141 = Id_MCDC_130[Id_MCDC_156]; +if(Id_MCDC_107(Id_MCDC_141, 0, & Id_MCDC_149, & Id_MCDC_148, & Id_MCDC_153, ( void * ) & Id_MCDC_146, 0) != 0x00) +{ +return 0xFFFF; +} +Id_MCDC_35 = ( UINT8 ) Id_MCDC_146; +for(Id_MCDC_150 = 0 ; Id_MCDC_150 < Id_MCDC_35 ; Id_MCDC_150++ ) +{ +if(Id_MCDC_107(Id_MCDC_141, (Id_MCDC_150 + 1), & Id_MCDC_149, & Id_MCDC_148, & Id_MCDC_153, ( void * ) & Id_MCDC_146, 0) != 0x00) +{ +return 0xFFFF; +} +Id_MCDC_142 = Id_MCDC_146; +Id_MCDC_142 = (Id_MCDC_142 >> 16); +Id_MCDC_143 = Id_MCDC_146; +Id_MCDC_147 = ( UINT16 ) Id_MCDC_143; +Id_MCDC_147 = (Id_MCDC_147 >> 8); +Id_MCDC_152 = ( UINT8 ) Id_MCDC_147; +Id_MCDC_145 = Id_MCDC_114(Id_MCDC_142, Id_MCDC_152, & Id_MCDC_149, & Id_MCDC_148, & Id_MCDC_153, & Id_MCDC_154); +if(Id_MCDC_145 != 0x00) +{ +return Id_MCDC_145; +} +} +Id_MCDC_144 = Id_MCDC_144 + 1; +Id_MCDC_141 = Id_MCDC_144; +} +} +return 0x00; +} +void Id_MCDC_117() +{ +CHAR Id_MCDC_157 [4]={0, 0, 0, 0}; +UINT32 Id_MCDC_158=0; +Id_MCDC_131.Id_MCDC_66 = ( PDO_Buffer* ) malloc(372); +Id_MCDC_115(); +for(Id_MCDC_158 = 0 ; Id_MCDC_158 < 4 ; Id_MCDC_158++ ) +{ +if((Id_MCDC_131.Id_MCDC_66->Id_MCDC_42[Id_MCDC_158].Id_MCDC_34 <= 240) && (Id_MCDC_131.Id_MCDC_66->Id_MCDC_42[Id_MCDC_158].Id_MCDC_34 >= 1)) +{ +Id_MCDC_157[Id_MCDC_158] = Id_MCDC_131.Id_MCDC_66->Id_MCDC_42[Id_MCDC_158].Id_MCDC_34; +} +else +{ +Id_MCDC_157[Id_MCDC_158] = 1; +} +} +Id_MCDC_132 = Id_MCDC_113(4, Id_MCDC_157); +return ; +} +void Id_MCDC_118() +{ +int Id_MCDC_159; +void * Id_MCDC_160; +Id_MCDC_117(); +return ; +} +int main() +{ +void * Id_MCDC_161; +void * Id_MCDC_162; +void * Id_MCDC_163; +void * Id_MCDC_164; +void * Id_MCDC_165; +void * Id_MCDC_166; +int Id_MCDC_167; +int Id_MCDC_168; +int Id_MCDC_169; +int Id_MCDC_170; +int Id_MCDC_171; +int Id_MCDC_172; +int Id_MCDC_173; +short Id_MCDC_174; +short Id_MCDC_175; +FILE* Id_MCDC_176; +unsigned short Id_MCDC_177; +unsigned short Id_MCDC_178; +unsigned short Id_MCDC_179=0; +unsigned short Id_MCDC_180=0; +char Id_MCDC_181; +char Id_MCDC_182; +POS_CTRL_MODE Id_MCDC_183; +Id_MCDC_176 = fopen("in.eds", "r"); +if(Id_MCDC_176 == (( void * ) 0)) +{ +return 1; +} +; +Id_MCDC_118(); +} +void __VERIFIER_assert(int Id_MCDC_121) +{ +if( ! (Id_MCDC_121)) +{ +ERROR : {reach_error();abort();} +} +return ; +} diff --git a/data/benchmarks/sv-benchmarks/loop-industry-pattern/ofuf_2.c b/data/benchmarks/sv-benchmarks/loop-industry-pattern/ofuf_2.c new file mode 100644 index 000000000..f470140c9 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-industry-pattern/ofuf_2.c @@ -0,0 +1,466 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "ofuf_2.c", 3, "reach_error"); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void avoid_zero(int y) +{ + if (!y) + { + abort(); + } +} + +struct Od_SubIndex; +struct Od_Index; +struct Od_IndexTable; +struct CanOpenNode; +struct _IO_FILE; +struct _IO_marker; +typedef struct _IO_FILE FILE; +typedef struct _IO_FILE __FILE; +typedef struct _IO_FILE _IO_FILE; +typedef long long __quad_t; +typedef __quad_t __off64_t; +typedef void _IO_lock_t; +typedef long __off_t; +typedef struct CanOpenNode CanOpenNode; +typedef struct Od_IndexTable Od_IndexTable; +struct Od_IndexTable{ +struct Od_Index* Id_MCDC_0; +struct Od_IndexTable* Id_MCDC_1; +} ; +typedef unsigned int size_t; +struct _IO_FILE{ +int Id_MCDC_2; +char * Id_MCDC_3; +char * Id_MCDC_4; +char * Id_MCDC_5; +char * Id_MCDC_6; +char * Id_MCDC_7; +char * Id_MCDC_8; +char * Id_MCDC_9; +char * Id_MCDC_10; +char * Id_MCDC_11; +char * Id_MCDC_12; +char * Id_MCDC_13; +struct _IO_marker* Id_MCDC_14; +struct _IO_FILE* Id_MCDC_15; +int Id_MCDC_16; +int Id_MCDC_17; +__off_t Id_MCDC_18; +unsigned short Id_MCDC_19; +signed char Id_MCDC_20; +char Id_MCDC_21 [1]; +_IO_lock_t* Id_MCDC_22; +__off64_t Id_MCDC_23; +void * Id_MCDC_24; +void * Id_MCDC_25; +void * Id_MCDC_26; +void * Id_MCDC_27; +size_t Id_MCDC_28; +int Id_MCDC_29; +char Id_MCDC_30 [40]; +} ; +typedef unsigned char UINT8; +typedef unsigned short UINT16; +typedef void pEmcyCallBackFunc_t(UINT8, UINT16); +typedef struct { +UINT8 Id_MCDC_31; +pEmcyCallBackFunc_t* Id_MCDC_32; +} T2T2_262_0; +typedef T2T2_262_0 nozomi32nozomi32_2156_0; +typedef nozomi32nozomi32_2156_0 Emcy_buff; +typedef unsigned int UINT32; +typedef struct { +UINT8 Id_MCDC_33; +UINT8 Id_MCDC_34; +UINT8 Id_MCDC_35; +UINT8 Id_MCDC_36; +UINT32 Id_MCDC_37; +UINT32 Id_MCDC_38; +void * Id_MCDC_39 [8]; +UINT8 Id_MCDC_40 [8]; +} T2T2_242_0; +typedef T2T2_242_0 nozomi32nozomi32_2074_0; +typedef nozomi32nozomi32_2074_0 Rxpdo; +typedef struct { +UINT8 Id_MCDC_33; +UINT8 Id_MCDC_34; +UINT8 Id_MCDC_35; +UINT8 Id_MCDC_36; +UINT32 Id_MCDC_37; +UINT32* Id_MCDC_39 [8]; +} T2T2_232_0; +typedef T2T2_232_0 nozomi32nozomi32_2064_0; +typedef nozomi32nozomi32_2064_0 Txpdo; +typedef struct { +UINT32 Id_MCDC_41; +Txpdo Id_MCDC_42 [4]; +Rxpdo Id_MCDC_43 [4]; +} T2T2_254_0; +typedef T2T2_254_0 nozomi32nozomi32_2090_0; +typedef nozomi32nozomi32_2090_0 PDO_Buffer; +typedef struct { +UINT16 Id_MCDC_44; +UINT8 Id_MCDC_45; +UINT32 Id_MCDC_46; +UINT32 Id_MCDC_47; +UINT32 Id_MCDC_48; +UINT16 Id_MCDC_49; +UINT32 Id_MCDC_50; +UINT32 Id_MCDC_51; +UINT8 Id_MCDC_52 [252]; +UINT16 Id_MCDC_53; +UINT8 Id_MCDC_54; +UINT8 Id_MCDC_55; +UINT32 Id_MCDC_56; +UINT32 Id_MCDC_57; +UINT32 Id_MCDC_58; +UINT32 Id_MCDC_59; +UINT32 Id_MCDC_60; +} T2T2_211_0; +typedef T2T2_211_0 nozomi32nozomi32_2004_0; +typedef nozomi32nozomi32_2004_0 SDO_Buffer; +typedef UINT32 pNmtCallBackFunc_t(UINT32); +typedef struct { +UINT32 Id_MCDC_61; +pNmtCallBackFunc_t* Id_MCDC_62; +} T2T2_205_0; +typedef T2T2_205_0 nozomi32nozomi32_2140_0; +typedef nozomi32nozomi32_2140_0 NMT_Buffer; +struct CanOpenNode{ +UINT8 Id_MCDC_54; +UINT16 Id_MCDC_44; +UINT8 Id_MCDC_63; +NMT_Buffer* Id_MCDC_64; +SDO_Buffer* Id_MCDC_65; +PDO_Buffer* Id_MCDC_66; +Emcy_buff* Id_MCDC_67; +} ; +typedef unsigned long long UINT64; +typedef char INT8; +typedef char CHAR; +typedef char * STRING; +typedef short INT16; +typedef int INT32; +typedef long INT64; +typedef float REAL32; +typedef unsigned char BYTE; +struct Od_Index{ +UINT16 Id_MCDC_68; +BYTE Id_MCDC_69; +BYTE Id_MCDC_70; +struct Od_SubIndex* Id_MCDC_71; +} ; +struct Od_SubIndex{ +BYTE Id_MCDC_72; +UINT32 Id_MCDC_73; +CHAR Id_MCDC_74 [6]; +REAL32 Id_MCDC_75; +BYTE Id_MCDC_76; +UINT32 Id_MCDC_77; +UINT32 Id_MCDC_78; +void * Id_MCDC_79; +} ; +extern int strcmp(char const* Id_MCDC_80, char const* Id_MCDC_81); +UINT32 Id_MCDC_89(UINT16 Id_MCDC_82, UINT8 Id_MCDC_83, UINT32* Id_MCDC_84, UINT32* Id_MCDC_85, INT32* Id_MCDC_86, void * Id_MCDC_87, UINT8 Id_MCDC_88); +static UINT32 Id_MCDC_92(UINT32 Id_MCDC_90, UINT32 Id_MCDC_91); +static UINT32 Id_MCDC_95(UINT32 Id_MCDC_93, CHAR* Id_MCDC_94); +UINT32 Id_MCDC_96(UINT16 Id_MCDC_82, UINT8 Id_MCDC_83, UINT32* Id_MCDC_84, UINT32* Id_MCDC_85, INT32* Id_MCDC_86, void ** Id_MCDC_87); +UINT32 Id_MCDC_97(); +extern void * malloc(size_t Id_MCDC_98); +void Id_MCDC_99(); +void Id_MCDC_100(); +extern FILE* fopen(char const* Id_MCDC_101, char const* Id_MCDC_102); +int main(); +void __VERIFIER_assert(int Id_MCDC_103); +unsigned int Id_MCDC_104; +UINT16 Id_MCDC_105; +UINT16 Id_MCDC_106; +Od_IndexTable* Id_MCDC_107; +Od_IndexTable* Id_MCDC_108; +Od_IndexTable* Id_MCDC_109; +Od_IndexTable* Id_MCDC_110; +Od_IndexTable* Id_MCDC_111; +UINT32 Id_MCDC_112 [4]; +CanOpenNode Id_MCDC_113; +UINT32 Id_MCDC_114=0; + +UINT32 Id_MCDC_89(UINT16 Id_MCDC_82, UINT8 Id_MCDC_83, UINT32* Id_MCDC_84, UINT32* Id_MCDC_85, INT32* Id_MCDC_86, void * Id_MCDC_87, UINT8 Id_MCDC_88) +{ +UINT32 Id_MCDC_115=0x80000000; +Od_IndexTable* Id_MCDC_116; +Id_MCDC_116 = Id_MCDC_111; +if(Id_MCDC_116 == (( void * ) 0)) +{ +return 0x08000023; +} +if(((( UINT16 ) Id_MCDC_82 > ( UINT16 ) Id_MCDC_105) && (( UINT16 ) Id_MCDC_82 <= ( UINT16 ) 0x19FF)) || ((( UINT16 ) Id_MCDC_82 > ( UINT16 ) Id_MCDC_106) && (( UINT16 ) Id_MCDC_82 <= ( UINT16 ) 0x15FF))) +{ +if(Id_MCDC_83 == 0x01) +{ +return 0x00; +} +} +switch(Id_MCDC_82 & 0xFF00) +{ +case 0x1800: ; +case 0x1900: Id_MCDC_116 = Id_MCDC_107; +break; +case 0x1A00: ; +case 0x1B00: Id_MCDC_116 = Id_MCDC_108; +break; +case 0x1400: ; +case 0x1500: Id_MCDC_116 = Id_MCDC_109; +break; +case 0x1600: ; +case 0x1700: Id_MCDC_116 = Id_MCDC_110; +break; +default: Id_MCDC_116 = Id_MCDC_111; +break; +} +while(Id_MCDC_116->Id_MCDC_0->Id_MCDC_68 != Id_MCDC_82) +{ +Id_MCDC_116 = Id_MCDC_116->Id_MCDC_1; +if(Id_MCDC_116 == (( void * ) 0)) +{ +return 0x06020000; +} +} +if(((Id_MCDC_83 == 0) || (Id_MCDC_83 < Id_MCDC_116->Id_MCDC_0->Id_MCDC_70)) && (strcmp((Id_MCDC_116->Id_MCDC_0->Id_MCDC_71 + Id_MCDC_83)->Id_MCDC_74, "rsvd"))) +{ +if((strcmp((Id_MCDC_116->Id_MCDC_0->Id_MCDC_71 + Id_MCDC_83)->Id_MCDC_74, "wo"))) +; +else +{ +return 0x06010001; +} +} +else +{ +return 0x06090011; +} +return 0x00; +} +static UINT32 Id_MCDC_92(UINT32 Id_MCDC_90, UINT32 Id_MCDC_91) +{ +UINT32 Id_MCDC_117=0; +UINT32 Id_MCDC_118=0; +UINT32 Id_MCDC_119=1; +UINT32 Id_MCDC_120=0; +if(Id_MCDC_90 > Id_MCDC_91) +{ +Id_MCDC_117 = Id_MCDC_90; +Id_MCDC_118 = Id_MCDC_91; +} +else +if(Id_MCDC_90 < Id_MCDC_91) +{ +Id_MCDC_117 = Id_MCDC_91; +Id_MCDC_118 = Id_MCDC_90; +} +else +{ +return Id_MCDC_90; +} +while(Id_MCDC_119 != 0) +{ +avoid_zero(Id_MCDC_118 != 0); +Id_MCDC_120 = ( UINT32 ) (Id_MCDC_117 / Id_MCDC_118); +("33_39889_4294972293" , __VERIFIER_assert(( long long ) (Id_MCDC_117 - (Id_MCDC_120 * Id_MCDC_118)) >= 0 && ( long long ) (Id_MCDC_117 - (Id_MCDC_120 * Id_MCDC_118)) <= 4294967295)) , Id_MCDC_119 = Id_MCDC_117 - (Id_MCDC_120 * Id_MCDC_118); +Id_MCDC_117 = Id_MCDC_118; +Id_MCDC_118 = Id_MCDC_119; +} +return Id_MCDC_117; +} +static UINT32 Id_MCDC_95(UINT32 Id_MCDC_93, CHAR* Id_MCDC_94) +{ +UINT32 Id_MCDC_121=0; +UINT32 Id_MCDC_122=0; +if(Id_MCDC_93 < 2) +{ +return 0; +} +if(Id_MCDC_93 != 2) +{ +Id_MCDC_122 = (Id_MCDC_95(Id_MCDC_93 - 1, Id_MCDC_94 + 1)); +} +else +{ +Id_MCDC_122 = Id_MCDC_94[1]; +} +Id_MCDC_121 = Id_MCDC_92(Id_MCDC_94[0], Id_MCDC_122); +avoid_zero(Id_MCDC_121 != 0); +return ((Id_MCDC_94[0] * Id_MCDC_122) / Id_MCDC_121); +} +UINT32 Id_MCDC_96(UINT16 Id_MCDC_82, UINT8 Id_MCDC_83, UINT32* Id_MCDC_84, UINT32* Id_MCDC_85, INT32* Id_MCDC_86, void ** Id_MCDC_87) +{ +Od_IndexTable* Id_MCDC_116; +Id_MCDC_116 = Id_MCDC_111; +if(Id_MCDC_116 == (( void * ) 0)) +{ +return 0x08000023; +} +while(Id_MCDC_116->Id_MCDC_0->Id_MCDC_68 != Id_MCDC_82) +{ +Id_MCDC_116 = Id_MCDC_116->Id_MCDC_1; +if(Id_MCDC_116 == (( void * ) 0)) +{ +return 0x06020000; +} +} +if(((Id_MCDC_83 == 0) || (Id_MCDC_83 < Id_MCDC_116->Id_MCDC_0->Id_MCDC_70)) && (strcmp((Id_MCDC_116->Id_MCDC_0->Id_MCDC_71 + Id_MCDC_83)->Id_MCDC_74, "rsvd"))) +{ +if(strcmp((Id_MCDC_116->Id_MCDC_0->Id_MCDC_71 + Id_MCDC_83)->Id_MCDC_74, "wo")) +; +else +{ +return 0x06010001; +} +} +else +{ +return 0x06090011; +} +return 0x00; +} +UINT32 Id_MCDC_97() +{ +UINT32 Id_MCDC_123; +UINT32 Id_MCDC_124; +UINT32 Id_MCDC_125; +UINT32 Id_MCDC_126; +UINT32 Id_MCDC_127; +UINT32 Id_MCDC_128=0x00; +UINT16 Id_MCDC_129; +UINT32 Id_MCDC_130=0x00; +UINT32 Id_MCDC_131=0x00; +UINT8 Id_MCDC_35=0; +UINT8 Id_MCDC_132=0; +UINT8 Id_MCDC_36=0; +UINT8 Id_MCDC_133=0; +UINT8 Id_MCDC_134=0x00; +INT32 Id_MCDC_135; +void * Id_MCDC_136; +UINT32* Id_MCDC_137; +UINT16 Id_MCDC_138; +Id_MCDC_123 = 0x1800; +for(Id_MCDC_132 = 0 ; Id_MCDC_132 < 4 ; Id_MCDC_132++ ) +{ +Id_MCDC_112[Id_MCDC_132] = 0x1A00 + Id_MCDC_132; +} +if(Id_MCDC_123 <= 0x1803) +{ +for(Id_MCDC_138 = 0 ; Id_MCDC_138 < 4 ; Id_MCDC_138++ ) +{ +Id_MCDC_126 = Id_MCDC_123; +if(Id_MCDC_89(Id_MCDC_123, 1, & Id_MCDC_131, & Id_MCDC_130, & Id_MCDC_135, ( void * ) & Id_MCDC_128, 0) != 0x00) +{ +return 0xFFFF; +} +if(Id_MCDC_89(Id_MCDC_123, 2, & Id_MCDC_131, & Id_MCDC_130, & Id_MCDC_135, ( void * ) & Id_MCDC_128, 0) != 0x00) +{ +return 0xFFFF; +} +Id_MCDC_113.Id_MCDC_66->Id_MCDC_42[Id_MCDC_138].Id_MCDC_34 = ( UINT8 ) Id_MCDC_128; +Id_MCDC_123 = Id_MCDC_112[Id_MCDC_138]; +if(Id_MCDC_89(Id_MCDC_123, 0, & Id_MCDC_131, & Id_MCDC_130, & Id_MCDC_135, ( void * ) & Id_MCDC_128, 0) != 0x00) +{ +return 0xFFFF; +} +Id_MCDC_35 = ( UINT8 ) Id_MCDC_128; +for(Id_MCDC_132 = 0 ; Id_MCDC_132 < Id_MCDC_35 ; Id_MCDC_132++ ) +{ +if(Id_MCDC_89(Id_MCDC_123, (Id_MCDC_132 + 1), & Id_MCDC_131, & Id_MCDC_130, & Id_MCDC_135, ( void * ) & Id_MCDC_128, 0) != 0x00) +{ +return 0xFFFF; +} +Id_MCDC_124 = Id_MCDC_128; +Id_MCDC_124 = (Id_MCDC_124 >> 16); +Id_MCDC_125 = Id_MCDC_128; +Id_MCDC_129 = ( UINT16 ) Id_MCDC_125; +Id_MCDC_129 = (Id_MCDC_129 >> 8); +Id_MCDC_134 = ( UINT8 ) Id_MCDC_129; +Id_MCDC_127 = Id_MCDC_96(Id_MCDC_124, Id_MCDC_134, & Id_MCDC_131, & Id_MCDC_130, & Id_MCDC_135, & Id_MCDC_136); +if(Id_MCDC_127 != 0x00) +{ +return Id_MCDC_127; +} +} +Id_MCDC_126 = Id_MCDC_126 + 1; +Id_MCDC_123 = Id_MCDC_126; +} +} +return 0x00; +} +void Id_MCDC_99() +{ +CHAR Id_MCDC_139 [4]={0, 0, 0, 0}; +UINT32 Id_MCDC_140=0; +Id_MCDC_113.Id_MCDC_66 = ( PDO_Buffer* ) malloc(372); +Id_MCDC_97(); +for(Id_MCDC_140 = 0 ; Id_MCDC_140 < 4 ; Id_MCDC_140++ ) +{ +if((Id_MCDC_113.Id_MCDC_66->Id_MCDC_42[Id_MCDC_140].Id_MCDC_34 <= 240) && (Id_MCDC_113.Id_MCDC_66->Id_MCDC_42[Id_MCDC_140].Id_MCDC_34 >= 1)) +{ +Id_MCDC_139[Id_MCDC_140] = Id_MCDC_113.Id_MCDC_66->Id_MCDC_42[Id_MCDC_140].Id_MCDC_34; +} +else +{ +Id_MCDC_139[Id_MCDC_140] = 1; +} +} +Id_MCDC_114 = Id_MCDC_95(4, Id_MCDC_139); +return ; +} +void Id_MCDC_100() +{ +int Id_MCDC_141; +void * Id_MCDC_142; +Id_MCDC_99(); +return ; +} +int main() +{ +void * Id_MCDC_143; +void * Id_MCDC_144; +void * Id_MCDC_145; +void * Id_MCDC_146; +void * Id_MCDC_147; +void * Id_MCDC_148; +int Id_MCDC_149; +int Id_MCDC_150; +int Id_MCDC_151; +int Id_MCDC_152; +int Id_MCDC_153; +int Id_MCDC_154; +int Id_MCDC_155; +short Id_MCDC_156; +short Id_MCDC_157; +FILE* Id_MCDC_158; +unsigned short Id_MCDC_159; +unsigned short Id_MCDC_160; +unsigned short Id_MCDC_161=0; +unsigned short Id_MCDC_162=0; +char Id_MCDC_163; +char Id_MCDC_164; +Id_MCDC_158 = fopen("in.eds", "r"); +if(Id_MCDC_158 == (( void * ) 0)) +{ +return 1; +} +; +Id_MCDC_100(); +} +void __VERIFIER_assert(int Id_MCDC_103) +{ +if( ! (Id_MCDC_103)) +{ +ERROR : {reach_error();abort();} +} +return ; +} diff --git a/data/benchmarks/sv-benchmarks/loop-industry-pattern/ofuf_3.c b/data/benchmarks/sv-benchmarks/loop-industry-pattern/ofuf_3.c new file mode 100644 index 000000000..8ca2a8489 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-industry-pattern/ofuf_3.c @@ -0,0 +1,466 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "ofuf_3.c", 3, "reach_error"); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void avoid_zero(int y) +{ + if (!y) + { + abort(); + } +} + +struct Od_SubIndex; +struct Od_Index; +struct Od_IndexTable; +struct CanOpenNode; +struct _IO_FILE; +struct _IO_marker; +typedef struct _IO_FILE FILE; +typedef struct _IO_FILE __FILE; +typedef struct _IO_FILE _IO_FILE; +typedef long long __quad_t; +typedef __quad_t __off64_t; +typedef void _IO_lock_t; +typedef long __off_t; +typedef struct CanOpenNode CanOpenNode; +typedef struct Od_IndexTable Od_IndexTable; +struct Od_IndexTable{ +struct Od_Index* Id_MCDC_0; +struct Od_IndexTable* Id_MCDC_1; +} ; +typedef unsigned int size_t; +struct _IO_FILE{ +int Id_MCDC_2; +char * Id_MCDC_3; +char * Id_MCDC_4; +char * Id_MCDC_5; +char * Id_MCDC_6; +char * Id_MCDC_7; +char * Id_MCDC_8; +char * Id_MCDC_9; +char * Id_MCDC_10; +char * Id_MCDC_11; +char * Id_MCDC_12; +char * Id_MCDC_13; +struct _IO_marker* Id_MCDC_14; +struct _IO_FILE* Id_MCDC_15; +int Id_MCDC_16; +int Id_MCDC_17; +__off_t Id_MCDC_18; +unsigned short Id_MCDC_19; +signed char Id_MCDC_20; +char Id_MCDC_21 [1]; +_IO_lock_t* Id_MCDC_22; +__off64_t Id_MCDC_23; +void * Id_MCDC_24; +void * Id_MCDC_25; +void * Id_MCDC_26; +void * Id_MCDC_27; +size_t Id_MCDC_28; +int Id_MCDC_29; +char Id_MCDC_30 [40]; +} ; +typedef unsigned char UINT8; +typedef unsigned short UINT16; +typedef void pEmcyCallBackFunc_t(UINT8, UINT16); +typedef struct { +UINT8 Id_MCDC_31; +pEmcyCallBackFunc_t* Id_MCDC_32; +} T3T3_4242_0; +typedef T3T3_4242_0 nozomi32nozomi32_2156_0; +typedef nozomi32nozomi32_2156_0 Emcy_buff; +typedef unsigned int UINT32; +typedef struct { +UINT8 Id_MCDC_33; +UINT8 Id_MCDC_34; +UINT8 Id_MCDC_35; +UINT8 Id_MCDC_36; +UINT32 Id_MCDC_37; +UINT32 Id_MCDC_38; +void * Id_MCDC_39 [8]; +UINT8 Id_MCDC_40 [8]; +} T3T3_4222_0; +typedef T3T3_4222_0 nozomi32nozomi32_2074_0; +typedef nozomi32nozomi32_2074_0 Rxpdo; +typedef struct { +UINT8 Id_MCDC_33; +UINT8 Id_MCDC_34; +UINT8 Id_MCDC_35; +UINT8 Id_MCDC_36; +UINT32 Id_MCDC_37; +UINT32* Id_MCDC_39 [8]; +} T3T3_4212_0; +typedef T3T3_4212_0 nozomi32nozomi32_2064_0; +typedef nozomi32nozomi32_2064_0 Txpdo; +typedef struct { +UINT32 Id_MCDC_41; +Txpdo Id_MCDC_42 [4]; +Rxpdo Id_MCDC_43 [4]; +} T3T3_4234_0; +typedef T3T3_4234_0 nozomi32nozomi32_2090_0; +typedef nozomi32nozomi32_2090_0 PDO_Buffer; +typedef struct { +UINT16 Id_MCDC_44; +UINT8 Id_MCDC_45; +UINT32 Id_MCDC_46; +UINT32 Id_MCDC_47; +UINT32 Id_MCDC_48; +UINT16 Id_MCDC_49; +UINT32 Id_MCDC_50; +UINT32 Id_MCDC_51; +UINT8 Id_MCDC_52 [252]; +UINT16 Id_MCDC_53; +UINT8 Id_MCDC_54; +UINT8 Id_MCDC_55; +UINT32 Id_MCDC_56; +UINT32 Id_MCDC_57; +UINT32 Id_MCDC_58; +UINT32 Id_MCDC_59; +UINT32 Id_MCDC_60; +} T3T3_4191_0; +typedef T3T3_4191_0 nozomi32nozomi32_2004_0; +typedef nozomi32nozomi32_2004_0 SDO_Buffer; +typedef UINT32 pNmtCallBackFunc_t(UINT32); +typedef struct { +UINT32 Id_MCDC_61; +pNmtCallBackFunc_t* Id_MCDC_62; +} T3T3_4185_0; +typedef T3T3_4185_0 nozomi32nozomi32_2140_0; +typedef nozomi32nozomi32_2140_0 NMT_Buffer; +struct CanOpenNode{ +UINT8 Id_MCDC_54; +UINT16 Id_MCDC_44; +UINT8 Id_MCDC_63; +NMT_Buffer* Id_MCDC_64; +SDO_Buffer* Id_MCDC_65; +PDO_Buffer* Id_MCDC_66; +Emcy_buff* Id_MCDC_67; +} ; +typedef unsigned long long UINT64; +typedef char INT8; +typedef char CHAR; +typedef char * STRING; +typedef short INT16; +typedef int INT32; +typedef long INT64; +typedef float REAL32; +typedef unsigned char BYTE; +struct Od_Index{ +UINT16 Id_MCDC_68; +BYTE Id_MCDC_69; +BYTE Id_MCDC_70; +struct Od_SubIndex* Id_MCDC_71; +} ; +struct Od_SubIndex{ +BYTE Id_MCDC_72; +UINT32 Id_MCDC_73; +CHAR Id_MCDC_74 [6]; +REAL32 Id_MCDC_75; +BYTE Id_MCDC_76; +UINT32 Id_MCDC_77; +UINT32 Id_MCDC_78; +void * Id_MCDC_79; +} ; +extern int strcmp(char const* Id_MCDC_80, char const* Id_MCDC_81); +UINT32 Id_MCDC_89(UINT16 Id_MCDC_82, UINT8 Id_MCDC_83, UINT32* Id_MCDC_84, UINT32* Id_MCDC_85, INT32* Id_MCDC_86, void * Id_MCDC_87, UINT8 Id_MCDC_88); +static UINT32 Id_MCDC_92(UINT32 Id_MCDC_90, UINT32 Id_MCDC_91); +static UINT32 Id_MCDC_95(UINT32 Id_MCDC_93, CHAR* Id_MCDC_94); +UINT32 Id_MCDC_96(UINT16 Id_MCDC_82, UINT8 Id_MCDC_83, UINT32* Id_MCDC_84, UINT32* Id_MCDC_85, INT32* Id_MCDC_86, void ** Id_MCDC_87); +UINT32 Id_MCDC_97(); +extern void * malloc(size_t Id_MCDC_98); +void Id_MCDC_99(); +void Id_MCDC_100(); +extern FILE* fopen(char const* Id_MCDC_101, char const* Id_MCDC_102); +int main(); +void __VERIFIER_assert(int Id_MCDC_103); +unsigned int Id_MCDC_104; +UINT16 Id_MCDC_105; +UINT16 Id_MCDC_106; +Od_IndexTable* Id_MCDC_107; +Od_IndexTable* Id_MCDC_108; +Od_IndexTable* Id_MCDC_109; +Od_IndexTable* Id_MCDC_110; +Od_IndexTable* Id_MCDC_111; +UINT32 Id_MCDC_112 [4]; +CanOpenNode Id_MCDC_113; +UINT32 Id_MCDC_114=0; + +UINT32 Id_MCDC_89(UINT16 Id_MCDC_82, UINT8 Id_MCDC_83, UINT32* Id_MCDC_84, UINT32* Id_MCDC_85, INT32* Id_MCDC_86, void * Id_MCDC_87, UINT8 Id_MCDC_88) +{ +UINT32 Id_MCDC_115=0x80000000; +Od_IndexTable* Id_MCDC_116; +Id_MCDC_116 = Id_MCDC_111; +if(Id_MCDC_116 == (( void * ) 0)) +{ +return 0x08000023; +} +if(((( UINT16 ) Id_MCDC_82 > ( UINT16 ) Id_MCDC_105) && (( UINT16 ) Id_MCDC_82 <= ( UINT16 ) 0x19FF)) || ((( UINT16 ) Id_MCDC_82 > ( UINT16 ) Id_MCDC_106) && (( UINT16 ) Id_MCDC_82 <= ( UINT16 ) 0x15FF))) +{ +if(Id_MCDC_83 == 0x01) +{ +return 0x00; +} +} +switch(Id_MCDC_82 & 0xFF00) +{ +case 0x1800: ; +case 0x1900: Id_MCDC_116 = Id_MCDC_107; +break; +case 0x1A00: ; +case 0x1B00: Id_MCDC_116 = Id_MCDC_108; +break; +case 0x1400: ; +case 0x1500: Id_MCDC_116 = Id_MCDC_109; +break; +case 0x1600: ; +case 0x1700: Id_MCDC_116 = Id_MCDC_110; +break; +default: Id_MCDC_116 = Id_MCDC_111; +break; +} +while(Id_MCDC_116->Id_MCDC_0->Id_MCDC_68 != Id_MCDC_82) +{ +Id_MCDC_116 = Id_MCDC_116->Id_MCDC_1; +if(Id_MCDC_116 == (( void * ) 0)) +{ +return 0x06020000; +} +} +if(((Id_MCDC_83 == 0) || (Id_MCDC_83 < Id_MCDC_116->Id_MCDC_0->Id_MCDC_70)) && (strcmp((Id_MCDC_116->Id_MCDC_0->Id_MCDC_71 + Id_MCDC_83)->Id_MCDC_74, "rsvd"))) +{ +if((strcmp((Id_MCDC_116->Id_MCDC_0->Id_MCDC_71 + Id_MCDC_83)->Id_MCDC_74, "wo"))) +; +else +{ +return 0x06010001; +} +} +else +{ +return 0x06090011; +} +return 0x00; +} +static UINT32 Id_MCDC_92(UINT32 Id_MCDC_90, UINT32 Id_MCDC_91) +{ +UINT32 Id_MCDC_117=0; +UINT32 Id_MCDC_118=0; +UINT32 Id_MCDC_119=1; +UINT32 Id_MCDC_120=0; +if(Id_MCDC_90 > Id_MCDC_91) +{ +Id_MCDC_117 = Id_MCDC_90; +Id_MCDC_118 = Id_MCDC_91; +} +else +if(Id_MCDC_90 < Id_MCDC_91) +{ +Id_MCDC_117 = Id_MCDC_91; +Id_MCDC_118 = Id_MCDC_90; +} +else +{ +return Id_MCDC_90; +} +while(Id_MCDC_119 != 0) +{ +avoid_zero(Id_MCDC_118 != 0); +Id_MCDC_120 = ( UINT32 ) (Id_MCDC_117 / Id_MCDC_118); +("34_39889_4294972292" , __VERIFIER_assert(( long long ) (Id_MCDC_120 * Id_MCDC_118) >= 0 && ( long long ) (Id_MCDC_120 * Id_MCDC_118) <= 4294967295)) , Id_MCDC_119 = Id_MCDC_117 - (Id_MCDC_120 * Id_MCDC_118); +Id_MCDC_117 = Id_MCDC_118; +Id_MCDC_118 = Id_MCDC_119; +} +return Id_MCDC_117; +} +static UINT32 Id_MCDC_95(UINT32 Id_MCDC_93, CHAR* Id_MCDC_94) +{ +UINT32 Id_MCDC_121=0; +UINT32 Id_MCDC_122=0; +if(Id_MCDC_93 < 2) +{ +return 0; +} +if(Id_MCDC_93 != 2) +{ +Id_MCDC_122 = (Id_MCDC_95(Id_MCDC_93 - 1, Id_MCDC_94 + 1)); +} +else +{ +Id_MCDC_122 = Id_MCDC_94[1]; +} +Id_MCDC_121 = Id_MCDC_92(Id_MCDC_94[0], Id_MCDC_122); +avoid_zero(Id_MCDC_121 != 0); +return ((Id_MCDC_94[0] * Id_MCDC_122) / Id_MCDC_121); +} +UINT32 Id_MCDC_96(UINT16 Id_MCDC_82, UINT8 Id_MCDC_83, UINT32* Id_MCDC_84, UINT32* Id_MCDC_85, INT32* Id_MCDC_86, void ** Id_MCDC_87) +{ +Od_IndexTable* Id_MCDC_116; +Id_MCDC_116 = Id_MCDC_111; +if(Id_MCDC_116 == (( void * ) 0)) +{ +return 0x08000023; +} +while(Id_MCDC_116->Id_MCDC_0->Id_MCDC_68 != Id_MCDC_82) +{ +Id_MCDC_116 = Id_MCDC_116->Id_MCDC_1; +if(Id_MCDC_116 == (( void * ) 0)) +{ +return 0x06020000; +} +} +if(((Id_MCDC_83 == 0) || (Id_MCDC_83 < Id_MCDC_116->Id_MCDC_0->Id_MCDC_70)) && (strcmp((Id_MCDC_116->Id_MCDC_0->Id_MCDC_71 + Id_MCDC_83)->Id_MCDC_74, "rsvd"))) +{ +if(strcmp((Id_MCDC_116->Id_MCDC_0->Id_MCDC_71 + Id_MCDC_83)->Id_MCDC_74, "wo")) +; +else +{ +return 0x06010001; +} +} +else +{ +return 0x06090011; +} +return 0x00; +} +UINT32 Id_MCDC_97() +{ +UINT32 Id_MCDC_123; +UINT32 Id_MCDC_124; +UINT32 Id_MCDC_125; +UINT32 Id_MCDC_126; +UINT32 Id_MCDC_127; +UINT32 Id_MCDC_128=0x00; +UINT16 Id_MCDC_129; +UINT32 Id_MCDC_130=0x00; +UINT32 Id_MCDC_131=0x00; +UINT8 Id_MCDC_35=0; +UINT8 Id_MCDC_132=0; +UINT8 Id_MCDC_36=0; +UINT8 Id_MCDC_133=0; +UINT8 Id_MCDC_134=0x00; +INT32 Id_MCDC_135; +void * Id_MCDC_136; +UINT32* Id_MCDC_137; +UINT16 Id_MCDC_138; +Id_MCDC_123 = 0x1800; +for(Id_MCDC_132 = 0 ; Id_MCDC_132 < 4 ; Id_MCDC_132++ ) +{ +Id_MCDC_112[Id_MCDC_132] = 0x1A00 + Id_MCDC_132; +} +if(Id_MCDC_123 <= 0x1803) +{ +for(Id_MCDC_138 = 0 ; Id_MCDC_138 < 4 ; Id_MCDC_138++ ) +{ +Id_MCDC_126 = Id_MCDC_123; +if(Id_MCDC_89(Id_MCDC_123, 1, & Id_MCDC_131, & Id_MCDC_130, & Id_MCDC_135, ( void * ) & Id_MCDC_128, 0) != 0x00) +{ +return 0xFFFF; +} +if(Id_MCDC_89(Id_MCDC_123, 2, & Id_MCDC_131, & Id_MCDC_130, & Id_MCDC_135, ( void * ) & Id_MCDC_128, 0) != 0x00) +{ +return 0xFFFF; +} +Id_MCDC_113.Id_MCDC_66->Id_MCDC_42[Id_MCDC_138].Id_MCDC_34 = ( UINT8 ) Id_MCDC_128; +Id_MCDC_123 = Id_MCDC_112[Id_MCDC_138]; +if(Id_MCDC_89(Id_MCDC_123, 0, & Id_MCDC_131, & Id_MCDC_130, & Id_MCDC_135, ( void * ) & Id_MCDC_128, 0) != 0x00) +{ +return 0xFFFF; +} +Id_MCDC_35 = ( UINT8 ) Id_MCDC_128; +for(Id_MCDC_132 = 0 ; Id_MCDC_132 < Id_MCDC_35 ; Id_MCDC_132++ ) +{ +if(Id_MCDC_89(Id_MCDC_123, (Id_MCDC_132 + 1), & Id_MCDC_131, & Id_MCDC_130, & Id_MCDC_135, ( void * ) & Id_MCDC_128, 0) != 0x00) +{ +return 0xFFFF; +} +Id_MCDC_124 = Id_MCDC_128; +Id_MCDC_124 = (Id_MCDC_124 >> 16); +Id_MCDC_125 = Id_MCDC_128; +Id_MCDC_129 = ( UINT16 ) Id_MCDC_125; +Id_MCDC_129 = (Id_MCDC_129 >> 8); +Id_MCDC_134 = ( UINT8 ) Id_MCDC_129; +Id_MCDC_127 = Id_MCDC_96(Id_MCDC_124, Id_MCDC_134, & Id_MCDC_131, & Id_MCDC_130, & Id_MCDC_135, & Id_MCDC_136); +if(Id_MCDC_127 != 0x00) +{ +return Id_MCDC_127; +} +} +Id_MCDC_126 = Id_MCDC_126 + 1; +Id_MCDC_123 = Id_MCDC_126; +} +} +return 0x00; +} +void Id_MCDC_99() +{ +CHAR Id_MCDC_139 [4]={0, 0, 0, 0}; +UINT32 Id_MCDC_140=0; +Id_MCDC_113.Id_MCDC_66 = ( PDO_Buffer* ) malloc(372); +Id_MCDC_97(); +for(Id_MCDC_140 = 0 ; Id_MCDC_140 < 4 ; Id_MCDC_140++ ) +{ +if((Id_MCDC_113.Id_MCDC_66->Id_MCDC_42[Id_MCDC_140].Id_MCDC_34 <= 240) && (Id_MCDC_113.Id_MCDC_66->Id_MCDC_42[Id_MCDC_140].Id_MCDC_34 >= 1)) +{ +Id_MCDC_139[Id_MCDC_140] = Id_MCDC_113.Id_MCDC_66->Id_MCDC_42[Id_MCDC_140].Id_MCDC_34; +} +else +{ +Id_MCDC_139[Id_MCDC_140] = 1; +} +} +Id_MCDC_114 = Id_MCDC_95(4, Id_MCDC_139); +return ; +} +void Id_MCDC_100() +{ +int Id_MCDC_141; +void * Id_MCDC_142; +Id_MCDC_99(); +return ; +} +int main() +{ +void * Id_MCDC_143; +void * Id_MCDC_144; +void * Id_MCDC_145; +void * Id_MCDC_146; +void * Id_MCDC_147; +void * Id_MCDC_148; +int Id_MCDC_149; +int Id_MCDC_150; +int Id_MCDC_151; +int Id_MCDC_152; +int Id_MCDC_153; +int Id_MCDC_154; +int Id_MCDC_155; +short Id_MCDC_156; +short Id_MCDC_157; +FILE* Id_MCDC_158; +unsigned short Id_MCDC_159; +unsigned short Id_MCDC_160; +unsigned short Id_MCDC_161=0; +unsigned short Id_MCDC_162=0; +char Id_MCDC_163; +char Id_MCDC_164; +Id_MCDC_158 = fopen("in.eds", "r"); +if(Id_MCDC_158 == (( void * ) 0)) +{ +return 1; +} +; +Id_MCDC_100(); +} +void __VERIFIER_assert(int Id_MCDC_103) +{ +if( ! (Id_MCDC_103)) +{ +ERROR : {reach_error();abort();} +} +return ; +} diff --git a/data/benchmarks/sv-benchmarks/loop-industry-pattern/ofuf_4.c b/data/benchmarks/sv-benchmarks/loop-industry-pattern/ofuf_4.c new file mode 100644 index 000000000..a22471129 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-industry-pattern/ofuf_4.c @@ -0,0 +1,466 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "ofuf_4.c", 3, "reach_error"); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void avoid_zero(int y) +{ + if (!y) + { + abort(); + } +} + +struct Od_SubIndex; +struct Od_Index; +struct Od_IndexTable; +struct CanOpenNode; +struct _IO_FILE; +struct _IO_marker; +typedef struct _IO_FILE FILE; +typedef struct _IO_FILE __FILE; +typedef struct _IO_FILE _IO_FILE; +typedef long __off_t; +typedef long long __quad_t; +typedef __quad_t __off64_t; +typedef void _IO_lock_t; +typedef struct CanOpenNode CanOpenNode; +typedef struct Od_IndexTable Od_IndexTable; +struct Od_IndexTable{ +struct Od_Index* Id_MCDC_0; +struct Od_IndexTable* Id_MCDC_1; +} ; +typedef unsigned int size_t; +struct _IO_FILE{ +int Id_MCDC_2; +char * Id_MCDC_3; +char * Id_MCDC_4; +char * Id_MCDC_5; +char * Id_MCDC_6; +char * Id_MCDC_7; +char * Id_MCDC_8; +char * Id_MCDC_9; +char * Id_MCDC_10; +char * Id_MCDC_11; +char * Id_MCDC_12; +char * Id_MCDC_13; +struct _IO_marker* Id_MCDC_14; +struct _IO_FILE* Id_MCDC_15; +int Id_MCDC_16; +int Id_MCDC_17; +__off_t Id_MCDC_18; +unsigned short Id_MCDC_19; +signed char Id_MCDC_20; +char Id_MCDC_21 [1]; +_IO_lock_t* Id_MCDC_22; +__off64_t Id_MCDC_23; +void * Id_MCDC_24; +void * Id_MCDC_25; +void * Id_MCDC_26; +void * Id_MCDC_27; +size_t Id_MCDC_28; +int Id_MCDC_29; +char Id_MCDC_30 [40]; +} ; +typedef unsigned char UINT8; +typedef unsigned short UINT16; +typedef void pEmcyCallBackFunc_t(UINT8, UINT16); +typedef struct { +UINT8 Id_MCDC_31; +pEmcyCallBackFunc_t* Id_MCDC_32; +} T4T4_4243_0; +typedef T4T4_4243_0 nozomi32nozomi32_2156_0; +typedef nozomi32nozomi32_2156_0 Emcy_buff; +typedef unsigned int UINT32; +typedef struct { +UINT8 Id_MCDC_33; +UINT8 Id_MCDC_34; +UINT8 Id_MCDC_35; +UINT8 Id_MCDC_36; +UINT32 Id_MCDC_37; +UINT32 Id_MCDC_38; +void * Id_MCDC_39 [8]; +UINT8 Id_MCDC_40 [8]; +} T4T4_4223_0; +typedef T4T4_4223_0 nozomi32nozomi32_2074_0; +typedef nozomi32nozomi32_2074_0 Rxpdo; +typedef struct { +UINT8 Id_MCDC_33; +UINT8 Id_MCDC_34; +UINT8 Id_MCDC_35; +UINT8 Id_MCDC_36; +UINT32 Id_MCDC_37; +UINT32* Id_MCDC_39 [8]; +} T4T4_4213_0; +typedef T4T4_4213_0 nozomi32nozomi32_2064_0; +typedef nozomi32nozomi32_2064_0 Txpdo; +typedef struct { +UINT32 Id_MCDC_41; +Txpdo Id_MCDC_42 [4]; +Rxpdo Id_MCDC_43 [4]; +} T4T4_4235_0; +typedef T4T4_4235_0 nozomi32nozomi32_2090_0; +typedef nozomi32nozomi32_2090_0 PDO_Buffer; +typedef struct { +UINT16 Id_MCDC_44; +UINT8 Id_MCDC_45; +UINT32 Id_MCDC_46; +UINT32 Id_MCDC_47; +UINT32 Id_MCDC_48; +UINT16 Id_MCDC_49; +UINT32 Id_MCDC_50; +UINT32 Id_MCDC_51; +UINT8 Id_MCDC_52 [252]; +UINT16 Id_MCDC_53; +UINT8 Id_MCDC_54; +UINT8 Id_MCDC_55; +UINT32 Id_MCDC_56; +UINT32 Id_MCDC_57; +UINT32 Id_MCDC_58; +UINT32 Id_MCDC_59; +UINT32 Id_MCDC_60; +} T4T4_4192_0; +typedef T4T4_4192_0 nozomi32nozomi32_2004_0; +typedef nozomi32nozomi32_2004_0 SDO_Buffer; +typedef UINT32 pNmtCallBackFunc_t(UINT32); +typedef struct { +UINT32 Id_MCDC_61; +pNmtCallBackFunc_t* Id_MCDC_62; +} T4T4_4186_0; +typedef T4T4_4186_0 nozomi32nozomi32_2140_0; +typedef nozomi32nozomi32_2140_0 NMT_Buffer; +struct CanOpenNode{ +UINT8 Id_MCDC_54; +UINT16 Id_MCDC_44; +UINT8 Id_MCDC_63; +NMT_Buffer* Id_MCDC_64; +SDO_Buffer* Id_MCDC_65; +PDO_Buffer* Id_MCDC_66; +Emcy_buff* Id_MCDC_67; +} ; +typedef unsigned long long UINT64; +typedef char INT8; +typedef char CHAR; +typedef char * STRING; +typedef short INT16; +typedef int INT32; +typedef long INT64; +typedef float REAL32; +typedef unsigned char BYTE; +struct Od_Index{ +UINT16 Id_MCDC_68; +BYTE Id_MCDC_69; +BYTE Id_MCDC_70; +struct Od_SubIndex* Id_MCDC_71; +} ; +struct Od_SubIndex{ +BYTE Id_MCDC_72; +UINT32 Id_MCDC_73; +CHAR Id_MCDC_74 [6]; +REAL32 Id_MCDC_75; +BYTE Id_MCDC_76; +UINT32 Id_MCDC_77; +UINT32 Id_MCDC_78; +void * Id_MCDC_79; +} ; +extern int strcmp(char const* Id_MCDC_80, char const* Id_MCDC_81); +UINT32 Id_MCDC_89(UINT16 Id_MCDC_82, UINT8 Id_MCDC_83, UINT32* Id_MCDC_84, UINT32* Id_MCDC_85, INT32* Id_MCDC_86, void * Id_MCDC_87, UINT8 Id_MCDC_88); +static UINT32 Id_MCDC_92(UINT32 Id_MCDC_90, UINT32 Id_MCDC_91); +static UINT32 Id_MCDC_95(UINT32 Id_MCDC_93, CHAR* Id_MCDC_94); +UINT32 Id_MCDC_96(UINT16 Id_MCDC_82, UINT8 Id_MCDC_83, UINT32* Id_MCDC_84, UINT32* Id_MCDC_85, INT32* Id_MCDC_86, void ** Id_MCDC_87); +UINT32 Id_MCDC_97(); +extern void * malloc(size_t Id_MCDC_98); +void Id_MCDC_99(); +void Id_MCDC_100(); +extern FILE* fopen(char const* Id_MCDC_101, char const* Id_MCDC_102); +int main(); +void __VERIFIER_assert(int Id_MCDC_103); +unsigned int Id_MCDC_104; +UINT16 Id_MCDC_105; +UINT16 Id_MCDC_106; +Od_IndexTable* Id_MCDC_107; +Od_IndexTable* Id_MCDC_108; +Od_IndexTable* Id_MCDC_109; +Od_IndexTable* Id_MCDC_110; +Od_IndexTable* Id_MCDC_111; +UINT32 Id_MCDC_112 [4]; +CanOpenNode Id_MCDC_113; +UINT32 Id_MCDC_114=0; + +UINT32 Id_MCDC_89(UINT16 Id_MCDC_82, UINT8 Id_MCDC_83, UINT32* Id_MCDC_84, UINT32* Id_MCDC_85, INT32* Id_MCDC_86, void * Id_MCDC_87, UINT8 Id_MCDC_88) +{ +UINT32 Id_MCDC_115=0x80000000; +Od_IndexTable* Id_MCDC_116; +Id_MCDC_116 = Id_MCDC_111; +if(Id_MCDC_116 == (( void * ) 0)) +{ +return 0x08000023; +} +if(((( UINT16 ) Id_MCDC_82 > ( UINT16 ) Id_MCDC_105) && (( UINT16 ) Id_MCDC_82 <= ( UINT16 ) 0x19FF)) || ((( UINT16 ) Id_MCDC_82 > ( UINT16 ) Id_MCDC_106) && (( UINT16 ) Id_MCDC_82 <= ( UINT16 ) 0x15FF))) +{ +if(Id_MCDC_83 == 0x01) +{ +return 0x00; +} +} +switch(Id_MCDC_82 & 0xFF00) +{ +case 0x1800: ; +case 0x1900: Id_MCDC_116 = Id_MCDC_107; +break; +case 0x1A00: ; +case 0x1B00: Id_MCDC_116 = Id_MCDC_108; +break; +case 0x1400: ; +case 0x1500: Id_MCDC_116 = Id_MCDC_109; +break; +case 0x1600: ; +case 0x1700: Id_MCDC_116 = Id_MCDC_110; +break; +default: Id_MCDC_116 = Id_MCDC_111; +break; +} +while(Id_MCDC_116->Id_MCDC_0->Id_MCDC_68 != Id_MCDC_82) +{ +Id_MCDC_116 = Id_MCDC_116->Id_MCDC_1; +if(Id_MCDC_116 == (( void * ) 0)) +{ +return 0x06020000; +} +} +if(((Id_MCDC_83 == 0) || (Id_MCDC_83 < Id_MCDC_116->Id_MCDC_0->Id_MCDC_70)) && (strcmp((Id_MCDC_116->Id_MCDC_0->Id_MCDC_71 + Id_MCDC_83)->Id_MCDC_74, "rsvd"))) +{ +if((strcmp((Id_MCDC_116->Id_MCDC_0->Id_MCDC_71 + Id_MCDC_83)->Id_MCDC_74, "wo"))) +; +else +{ +return 0x06010001; +} +} +else +{ +return 0x06090011; +} +return 0x00; +} +static UINT32 Id_MCDC_92(UINT32 Id_MCDC_90, UINT32 Id_MCDC_91) +{ +UINT32 Id_MCDC_117=0; +UINT32 Id_MCDC_118=0; +UINT32 Id_MCDC_119=1; +UINT32 Id_MCDC_120=0; +if(Id_MCDC_90 > Id_MCDC_91) +{ +Id_MCDC_117 = Id_MCDC_90; +Id_MCDC_118 = Id_MCDC_91; +} +else +if(Id_MCDC_90 < Id_MCDC_91) +{ +Id_MCDC_117 = Id_MCDC_91; +Id_MCDC_118 = Id_MCDC_90; +} +else +{ +return Id_MCDC_90; +} +while(Id_MCDC_119 != 0) +{ +avoid_zero(Id_MCDC_118 != 0); +Id_MCDC_120 = ( UINT32 ) (Id_MCDC_117 / Id_MCDC_118); +Id_MCDC_119 = Id_MCDC_117 - (Id_MCDC_120 * Id_MCDC_118); +Id_MCDC_117 = Id_MCDC_118; +Id_MCDC_118 = Id_MCDC_119; +} +return Id_MCDC_117; +} +static UINT32 Id_MCDC_95(UINT32 Id_MCDC_93, CHAR* Id_MCDC_94) +{ +UINT32 Id_MCDC_121=0; +UINT32 Id_MCDC_122=0; +if(Id_MCDC_93 < 2) +{ +return 0; +} +if(Id_MCDC_93 != 2) +{ +Id_MCDC_122 = (Id_MCDC_95(Id_MCDC_93 - 1, Id_MCDC_94 + 1)); +} +else +{ +Id_MCDC_122 = Id_MCDC_94[1]; +} +Id_MCDC_121 = Id_MCDC_92(Id_MCDC_94[0], Id_MCDC_122); +avoid_zero(Id_MCDC_121 != 0); +return ("35_39854_4294972318" , __VERIFIER_assert(( long long ) ((Id_MCDC_94[0] * Id_MCDC_122) / Id_MCDC_121) >= 0 && ( long long ) ((Id_MCDC_94[0] * Id_MCDC_122) / Id_MCDC_121) <= 4294967295)) , ((Id_MCDC_94[0] * Id_MCDC_122) / Id_MCDC_121); +} +UINT32 Id_MCDC_96(UINT16 Id_MCDC_82, UINT8 Id_MCDC_83, UINT32* Id_MCDC_84, UINT32* Id_MCDC_85, INT32* Id_MCDC_86, void ** Id_MCDC_87) +{ +Od_IndexTable* Id_MCDC_116; +Id_MCDC_116 = Id_MCDC_111; +if(Id_MCDC_116 == (( void * ) 0)) +{ +return 0x08000023; +} +while(Id_MCDC_116->Id_MCDC_0->Id_MCDC_68 != Id_MCDC_82) +{ +Id_MCDC_116 = Id_MCDC_116->Id_MCDC_1; +if(Id_MCDC_116 == (( void * ) 0)) +{ +return 0x06020000; +} +} +if(((Id_MCDC_83 == 0) || (Id_MCDC_83 < Id_MCDC_116->Id_MCDC_0->Id_MCDC_70)) && (strcmp((Id_MCDC_116->Id_MCDC_0->Id_MCDC_71 + Id_MCDC_83)->Id_MCDC_74, "rsvd"))) +{ +if(strcmp((Id_MCDC_116->Id_MCDC_0->Id_MCDC_71 + Id_MCDC_83)->Id_MCDC_74, "wo")) +; +else +{ +return 0x06010001; +} +} +else +{ +return 0x06090011; +} +return 0x00; +} +UINT32 Id_MCDC_97() +{ +UINT32 Id_MCDC_123; +UINT32 Id_MCDC_124; +UINT32 Id_MCDC_125; +UINT32 Id_MCDC_126; +UINT32 Id_MCDC_127; +UINT32 Id_MCDC_128=0x00; +UINT16 Id_MCDC_129; +UINT32 Id_MCDC_130=0x00; +UINT32 Id_MCDC_131=0x00; +UINT8 Id_MCDC_35=0; +UINT8 Id_MCDC_132=0; +UINT8 Id_MCDC_36=0; +UINT8 Id_MCDC_133=0; +UINT8 Id_MCDC_134=0x00; +INT32 Id_MCDC_135; +void * Id_MCDC_136; +UINT32* Id_MCDC_137; +UINT16 Id_MCDC_138; +Id_MCDC_123 = 0x1800; +for(Id_MCDC_132 = 0 ; Id_MCDC_132 < 4 ; Id_MCDC_132++ ) +{ +Id_MCDC_112[Id_MCDC_132] = 0x1A00 + Id_MCDC_132; +} +if(Id_MCDC_123 <= 0x1803) +{ +for(Id_MCDC_138 = 0 ; Id_MCDC_138 < 4 ; Id_MCDC_138++ ) +{ +Id_MCDC_126 = Id_MCDC_123; +if(Id_MCDC_89(Id_MCDC_123, 1, & Id_MCDC_131, & Id_MCDC_130, & Id_MCDC_135, ( void * ) & Id_MCDC_128, 0) != 0x00) +{ +return 0xFFFF; +} +if(Id_MCDC_89(Id_MCDC_123, 2, & Id_MCDC_131, & Id_MCDC_130, & Id_MCDC_135, ( void * ) & Id_MCDC_128, 0) != 0x00) +{ +return 0xFFFF; +} +Id_MCDC_113.Id_MCDC_66->Id_MCDC_42[Id_MCDC_138].Id_MCDC_34 = ( UINT8 ) Id_MCDC_128; +Id_MCDC_123 = Id_MCDC_112[Id_MCDC_138]; +if(Id_MCDC_89(Id_MCDC_123, 0, & Id_MCDC_131, & Id_MCDC_130, & Id_MCDC_135, ( void * ) & Id_MCDC_128, 0) != 0x00) +{ +return 0xFFFF; +} +Id_MCDC_35 = ( UINT8 ) Id_MCDC_128; +for(Id_MCDC_132 = 0 ; Id_MCDC_132 < Id_MCDC_35 ; Id_MCDC_132++ ) +{ +if(Id_MCDC_89(Id_MCDC_123, (Id_MCDC_132 + 1), & Id_MCDC_131, & Id_MCDC_130, & Id_MCDC_135, ( void * ) & Id_MCDC_128, 0) != 0x00) +{ +return 0xFFFF; +} +Id_MCDC_124 = Id_MCDC_128; +Id_MCDC_124 = (Id_MCDC_124 >> 16); +Id_MCDC_125 = Id_MCDC_128; +Id_MCDC_129 = ( UINT16 ) Id_MCDC_125; +Id_MCDC_129 = (Id_MCDC_129 >> 8); +Id_MCDC_134 = ( UINT8 ) Id_MCDC_129; +Id_MCDC_127 = Id_MCDC_96(Id_MCDC_124, Id_MCDC_134, & Id_MCDC_131, & Id_MCDC_130, & Id_MCDC_135, & Id_MCDC_136); +if(Id_MCDC_127 != 0x00) +{ +return Id_MCDC_127; +} +} +Id_MCDC_126 = Id_MCDC_126 + 1; +Id_MCDC_123 = Id_MCDC_126; +} +} +return 0x00; +} +void Id_MCDC_99() +{ +CHAR Id_MCDC_139 [4]={0, 0, 0, 0}; +UINT32 Id_MCDC_140=0; +Id_MCDC_113.Id_MCDC_66 = ( PDO_Buffer* ) malloc(372); +Id_MCDC_97(); +for(Id_MCDC_140 = 0 ; Id_MCDC_140 < 4 ; Id_MCDC_140++ ) +{ +if((Id_MCDC_113.Id_MCDC_66->Id_MCDC_42[Id_MCDC_140].Id_MCDC_34 <= 240) && (Id_MCDC_113.Id_MCDC_66->Id_MCDC_42[Id_MCDC_140].Id_MCDC_34 >= 1)) +{ +Id_MCDC_139[Id_MCDC_140] = Id_MCDC_113.Id_MCDC_66->Id_MCDC_42[Id_MCDC_140].Id_MCDC_34; +} +else +{ +Id_MCDC_139[Id_MCDC_140] = 1; +} +} +Id_MCDC_114 = Id_MCDC_95(4, Id_MCDC_139); +return ; +} +void Id_MCDC_100() +{ +int Id_MCDC_141; +void * Id_MCDC_142; +Id_MCDC_99(); +return ; +} +int main() +{ +void * Id_MCDC_143; +void * Id_MCDC_144; +void * Id_MCDC_145; +void * Id_MCDC_146; +void * Id_MCDC_147; +void * Id_MCDC_148; +int Id_MCDC_149; +int Id_MCDC_150; +int Id_MCDC_151; +int Id_MCDC_152; +int Id_MCDC_153; +int Id_MCDC_154; +int Id_MCDC_155; +short Id_MCDC_156; +short Id_MCDC_157; +FILE* Id_MCDC_158; +unsigned short Id_MCDC_159; +unsigned short Id_MCDC_160; +unsigned short Id_MCDC_161=0; +unsigned short Id_MCDC_162=0; +char Id_MCDC_163; +char Id_MCDC_164; +Id_MCDC_158 = fopen("in.eds", "r"); +if(Id_MCDC_158 == (( void * ) 0)) +{ +return 1; +} +; +Id_MCDC_100(); +} +void __VERIFIER_assert(int Id_MCDC_103) +{ +if( ! (Id_MCDC_103)) +{ +ERROR : {reach_error();abort();} +} +return ; +} diff --git a/data/benchmarks/sv-benchmarks/loop-industry-pattern/ofuf_5.c b/data/benchmarks/sv-benchmarks/loop-industry-pattern/ofuf_5.c new file mode 100644 index 000000000..1a80b78f3 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-industry-pattern/ofuf_5.c @@ -0,0 +1,466 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "ofuf_5.c", 3, "reach_error"); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void avoid_zero(int y) +{ + if (!y) + { + abort(); + } +} + +struct Od_SubIndex; +struct Od_Index; +struct Od_IndexTable; +struct CanOpenNode; +struct _IO_FILE; +struct _IO_marker; +typedef struct _IO_FILE FILE; +typedef struct _IO_FILE __FILE; +typedef struct _IO_FILE _IO_FILE; +typedef long long __quad_t; +typedef __quad_t __off64_t; +typedef void _IO_lock_t; +typedef long __off_t; +typedef struct CanOpenNode CanOpenNode; +typedef struct Od_IndexTable Od_IndexTable; +struct Od_IndexTable{ +struct Od_Index* Id_MCDC_0; +struct Od_IndexTable* Id_MCDC_1; +} ; +typedef unsigned int size_t; +struct _IO_FILE{ +int Id_MCDC_2; +char * Id_MCDC_3; +char * Id_MCDC_4; +char * Id_MCDC_5; +char * Id_MCDC_6; +char * Id_MCDC_7; +char * Id_MCDC_8; +char * Id_MCDC_9; +char * Id_MCDC_10; +char * Id_MCDC_11; +char * Id_MCDC_12; +char * Id_MCDC_13; +struct _IO_marker* Id_MCDC_14; +struct _IO_FILE* Id_MCDC_15; +int Id_MCDC_16; +int Id_MCDC_17; +__off_t Id_MCDC_18; +unsigned short Id_MCDC_19; +signed char Id_MCDC_20; +char Id_MCDC_21 [1]; +_IO_lock_t* Id_MCDC_22; +__off64_t Id_MCDC_23; +void * Id_MCDC_24; +void * Id_MCDC_25; +void * Id_MCDC_26; +void * Id_MCDC_27; +size_t Id_MCDC_28; +int Id_MCDC_29; +char Id_MCDC_30 [40]; +} ; +typedef unsigned char UINT8; +typedef unsigned short UINT16; +typedef void pEmcyCallBackFunc_t(UINT8, UINT16); +typedef struct { +UINT8 Id_MCDC_31; +pEmcyCallBackFunc_t* Id_MCDC_32; +} T5T5_261_0; +typedef T5T5_261_0 nozomi32nozomi32_2156_0; +typedef nozomi32nozomi32_2156_0 Emcy_buff; +typedef unsigned int UINT32; +typedef struct { +UINT8 Id_MCDC_33; +UINT8 Id_MCDC_34; +UINT8 Id_MCDC_35; +UINT8 Id_MCDC_36; +UINT32 Id_MCDC_37; +UINT32 Id_MCDC_38; +void * Id_MCDC_39 [8]; +UINT8 Id_MCDC_40 [8]; +} T5T5_241_0; +typedef T5T5_241_0 nozomi32nozomi32_2074_0; +typedef nozomi32nozomi32_2074_0 Rxpdo; +typedef struct { +UINT8 Id_MCDC_33; +UINT8 Id_MCDC_34; +UINT8 Id_MCDC_35; +UINT8 Id_MCDC_36; +UINT32 Id_MCDC_37; +UINT32* Id_MCDC_39 [8]; +} T5T5_231_0; +typedef T5T5_231_0 nozomi32nozomi32_2064_0; +typedef nozomi32nozomi32_2064_0 Txpdo; +typedef struct { +UINT32 Id_MCDC_41; +Txpdo Id_MCDC_42 [4]; +Rxpdo Id_MCDC_43 [4]; +} T5T5_253_0; +typedef T5T5_253_0 nozomi32nozomi32_2090_0; +typedef nozomi32nozomi32_2090_0 PDO_Buffer; +typedef struct { +UINT16 Id_MCDC_44; +UINT8 Id_MCDC_45; +UINT32 Id_MCDC_46; +UINT32 Id_MCDC_47; +UINT32 Id_MCDC_48; +UINT16 Id_MCDC_49; +UINT32 Id_MCDC_50; +UINT32 Id_MCDC_51; +UINT8 Id_MCDC_52 [252]; +UINT16 Id_MCDC_53; +UINT8 Id_MCDC_54; +UINT8 Id_MCDC_55; +UINT32 Id_MCDC_56; +UINT32 Id_MCDC_57; +UINT32 Id_MCDC_58; +UINT32 Id_MCDC_59; +UINT32 Id_MCDC_60; +} T5T5_210_0; +typedef T5T5_210_0 nozomi32nozomi32_2004_0; +typedef nozomi32nozomi32_2004_0 SDO_Buffer; +typedef UINT32 pNmtCallBackFunc_t(UINT32); +typedef struct { +UINT32 Id_MCDC_61; +pNmtCallBackFunc_t* Id_MCDC_62; +} T5T5_204_0; +typedef T5T5_204_0 nozomi32nozomi32_2140_0; +typedef nozomi32nozomi32_2140_0 NMT_Buffer; +struct CanOpenNode{ +UINT8 Id_MCDC_54; +UINT16 Id_MCDC_44; +UINT8 Id_MCDC_63; +NMT_Buffer* Id_MCDC_64; +SDO_Buffer* Id_MCDC_65; +PDO_Buffer* Id_MCDC_66; +Emcy_buff* Id_MCDC_67; +} ; +typedef unsigned long long UINT64; +typedef char INT8; +typedef char CHAR; +typedef char * STRING; +typedef short INT16; +typedef int INT32; +typedef long INT64; +typedef float REAL32; +typedef unsigned char BYTE; +struct Od_Index{ +UINT16 Id_MCDC_68; +BYTE Id_MCDC_69; +BYTE Id_MCDC_70; +struct Od_SubIndex* Id_MCDC_71; +} ; +struct Od_SubIndex{ +BYTE Id_MCDC_72; +UINT32 Id_MCDC_73; +CHAR Id_MCDC_74 [6]; +REAL32 Id_MCDC_75; +BYTE Id_MCDC_76; +UINT32 Id_MCDC_77; +UINT32 Id_MCDC_78; +void * Id_MCDC_79; +} ; +extern int strcmp(char const* Id_MCDC_80, char const* Id_MCDC_81); +UINT32 Id_MCDC_89(UINT16 Id_MCDC_82, UINT8 Id_MCDC_83, UINT32* Id_MCDC_84, UINT32* Id_MCDC_85, INT32* Id_MCDC_86, void * Id_MCDC_87, UINT8 Id_MCDC_88); +static UINT32 Id_MCDC_92(UINT32 Id_MCDC_90, UINT32 Id_MCDC_91); +static UINT32 Id_MCDC_95(UINT32 Id_MCDC_93, CHAR* Id_MCDC_94); +UINT32 Id_MCDC_96(UINT16 Id_MCDC_82, UINT8 Id_MCDC_83, UINT32* Id_MCDC_84, UINT32* Id_MCDC_85, INT32* Id_MCDC_86, void ** Id_MCDC_87); +UINT32 Id_MCDC_97(); +extern void * malloc(size_t Id_MCDC_98); +void Id_MCDC_99(); +void Id_MCDC_100(); +extern FILE* fopen(char const* Id_MCDC_101, char const* Id_MCDC_102); +int main(); +void __VERIFIER_assert(int Id_MCDC_103); +unsigned int Id_MCDC_104; +UINT16 Id_MCDC_105; +UINT16 Id_MCDC_106; +Od_IndexTable* Id_MCDC_107; +Od_IndexTable* Id_MCDC_108; +Od_IndexTable* Id_MCDC_109; +Od_IndexTable* Id_MCDC_110; +Od_IndexTable* Id_MCDC_111; +UINT32 Id_MCDC_112 [4]; +CanOpenNode Id_MCDC_113; +UINT32 Id_MCDC_114=0; + +UINT32 Id_MCDC_89(UINT16 Id_MCDC_82, UINT8 Id_MCDC_83, UINT32* Id_MCDC_84, UINT32* Id_MCDC_85, INT32* Id_MCDC_86, void * Id_MCDC_87, UINT8 Id_MCDC_88) +{ +UINT32 Id_MCDC_115=0x80000000; +Od_IndexTable* Id_MCDC_116; +Id_MCDC_116 = Id_MCDC_111; +if(Id_MCDC_116 == (( void * ) 0)) +{ +return 0x08000023; +} +if(((( UINT16 ) Id_MCDC_82 > ( UINT16 ) Id_MCDC_105) && (( UINT16 ) Id_MCDC_82 <= ( UINT16 ) 0x19FF)) || ((( UINT16 ) Id_MCDC_82 > ( UINT16 ) Id_MCDC_106) && (( UINT16 ) Id_MCDC_82 <= ( UINT16 ) 0x15FF))) +{ +if(Id_MCDC_83 == 0x01) +{ +return 0x00; +} +} +switch(Id_MCDC_82 & 0xFF00) +{ +case 0x1800: ; +case 0x1900: Id_MCDC_116 = Id_MCDC_107; +break; +case 0x1A00: ; +case 0x1B00: Id_MCDC_116 = Id_MCDC_108; +break; +case 0x1400: ; +case 0x1500: Id_MCDC_116 = Id_MCDC_109; +break; +case 0x1600: ; +case 0x1700: Id_MCDC_116 = Id_MCDC_110; +break; +default: Id_MCDC_116 = Id_MCDC_111; +break; +} +while(Id_MCDC_116->Id_MCDC_0->Id_MCDC_68 != Id_MCDC_82) +{ +Id_MCDC_116 = Id_MCDC_116->Id_MCDC_1; +if(Id_MCDC_116 == (( void * ) 0)) +{ +return 0x06020000; +} +} +if(((Id_MCDC_83 == 0) || (Id_MCDC_83 < Id_MCDC_116->Id_MCDC_0->Id_MCDC_70)) && (strcmp((Id_MCDC_116->Id_MCDC_0->Id_MCDC_71 + Id_MCDC_83)->Id_MCDC_74, "rsvd"))) +{ +if((strcmp((Id_MCDC_116->Id_MCDC_0->Id_MCDC_71 + Id_MCDC_83)->Id_MCDC_74, "wo"))) +; +else +{ +return 0x06010001; +} +} +else +{ +return 0x06090011; +} +return 0x00; +} +static UINT32 Id_MCDC_92(UINT32 Id_MCDC_90, UINT32 Id_MCDC_91) +{ +UINT32 Id_MCDC_117=0; +UINT32 Id_MCDC_118=0; +UINT32 Id_MCDC_119=1; +UINT32 Id_MCDC_120=0; +if(Id_MCDC_90 > Id_MCDC_91) +{ +Id_MCDC_117 = Id_MCDC_90; +Id_MCDC_118 = Id_MCDC_91; +} +else +if(Id_MCDC_90 < Id_MCDC_91) +{ +Id_MCDC_117 = Id_MCDC_91; +Id_MCDC_118 = Id_MCDC_90; +} +else +{ +return Id_MCDC_90; +} +while(Id_MCDC_119 != 0) +{ +avoid_zero(Id_MCDC_118 != 0); +Id_MCDC_120 = ( UINT32 ) (Id_MCDC_117 / Id_MCDC_118); +Id_MCDC_119 = Id_MCDC_117 - (Id_MCDC_120 * Id_MCDC_118); +Id_MCDC_117 = Id_MCDC_118; +Id_MCDC_118 = Id_MCDC_119; +} +return Id_MCDC_117; +} +static UINT32 Id_MCDC_95(UINT32 Id_MCDC_93, CHAR* Id_MCDC_94) +{ +UINT32 Id_MCDC_121=0; +UINT32 Id_MCDC_122=0; +if(Id_MCDC_93 < 2) +{ +return 0; +} +if(Id_MCDC_93 != 2) +{ +Id_MCDC_122 = (Id_MCDC_95(Id_MCDC_93 - 1, Id_MCDC_94 + 1)); +} +else +{ +Id_MCDC_122 = Id_MCDC_94[1]; +} +Id_MCDC_121 = Id_MCDC_92(Id_MCDC_94[0], Id_MCDC_122); +avoid_zero(Id_MCDC_121 != 0); +return ("36_39854_4294972316" , __VERIFIER_assert(( long long ) (Id_MCDC_94[0] * Id_MCDC_122) >= 0 && ( long long ) (Id_MCDC_94[0] * Id_MCDC_122) <= 4294967295)) , ((Id_MCDC_94[0] * Id_MCDC_122) / Id_MCDC_121); +} +UINT32 Id_MCDC_96(UINT16 Id_MCDC_82, UINT8 Id_MCDC_83, UINT32* Id_MCDC_84, UINT32* Id_MCDC_85, INT32* Id_MCDC_86, void ** Id_MCDC_87) +{ +Od_IndexTable* Id_MCDC_116; +Id_MCDC_116 = Id_MCDC_111; +if(Id_MCDC_116 == (( void * ) 0)) +{ +return 0x08000023; +} +while(Id_MCDC_116->Id_MCDC_0->Id_MCDC_68 != Id_MCDC_82) +{ +Id_MCDC_116 = Id_MCDC_116->Id_MCDC_1; +if(Id_MCDC_116 == (( void * ) 0)) +{ +return 0x06020000; +} +} +if(((Id_MCDC_83 == 0) || (Id_MCDC_83 < Id_MCDC_116->Id_MCDC_0->Id_MCDC_70)) && (strcmp((Id_MCDC_116->Id_MCDC_0->Id_MCDC_71 + Id_MCDC_83)->Id_MCDC_74, "rsvd"))) +{ +if(strcmp((Id_MCDC_116->Id_MCDC_0->Id_MCDC_71 + Id_MCDC_83)->Id_MCDC_74, "wo")) +; +else +{ +return 0x06010001; +} +} +else +{ +return 0x06090011; +} +return 0x00; +} +UINT32 Id_MCDC_97() +{ +UINT32 Id_MCDC_123; +UINT32 Id_MCDC_124; +UINT32 Id_MCDC_125; +UINT32 Id_MCDC_126; +UINT32 Id_MCDC_127; +UINT32 Id_MCDC_128=0x00; +UINT16 Id_MCDC_129; +UINT32 Id_MCDC_130=0x00; +UINT32 Id_MCDC_131=0x00; +UINT8 Id_MCDC_35=0; +UINT8 Id_MCDC_132=0; +UINT8 Id_MCDC_36=0; +UINT8 Id_MCDC_133=0; +UINT8 Id_MCDC_134=0x00; +INT32 Id_MCDC_135; +void * Id_MCDC_136; +UINT32* Id_MCDC_137; +UINT16 Id_MCDC_138; +Id_MCDC_123 = 0x1800; +for(Id_MCDC_132 = 0 ; Id_MCDC_132 < 4 ; Id_MCDC_132++ ) +{ +Id_MCDC_112[Id_MCDC_132] = 0x1A00 + Id_MCDC_132; +} +if(Id_MCDC_123 <= 0x1803) +{ +for(Id_MCDC_138 = 0 ; Id_MCDC_138 < 4 ; Id_MCDC_138++ ) +{ +Id_MCDC_126 = Id_MCDC_123; +if(Id_MCDC_89(Id_MCDC_123, 1, & Id_MCDC_131, & Id_MCDC_130, & Id_MCDC_135, ( void * ) & Id_MCDC_128, 0) != 0x00) +{ +return 0xFFFF; +} +if(Id_MCDC_89(Id_MCDC_123, 2, & Id_MCDC_131, & Id_MCDC_130, & Id_MCDC_135, ( void * ) & Id_MCDC_128, 0) != 0x00) +{ +return 0xFFFF; +} +Id_MCDC_113.Id_MCDC_66->Id_MCDC_42[Id_MCDC_138].Id_MCDC_34 = ( UINT8 ) Id_MCDC_128; +Id_MCDC_123 = Id_MCDC_112[Id_MCDC_138]; +if(Id_MCDC_89(Id_MCDC_123, 0, & Id_MCDC_131, & Id_MCDC_130, & Id_MCDC_135, ( void * ) & Id_MCDC_128, 0) != 0x00) +{ +return 0xFFFF; +} +Id_MCDC_35 = ( UINT8 ) Id_MCDC_128; +for(Id_MCDC_132 = 0 ; Id_MCDC_132 < Id_MCDC_35 ; Id_MCDC_132++ ) +{ +if(Id_MCDC_89(Id_MCDC_123, (Id_MCDC_132 + 1), & Id_MCDC_131, & Id_MCDC_130, & Id_MCDC_135, ( void * ) & Id_MCDC_128, 0) != 0x00) +{ +return 0xFFFF; +} +Id_MCDC_124 = Id_MCDC_128; +Id_MCDC_124 = (Id_MCDC_124 >> 16); +Id_MCDC_125 = Id_MCDC_128; +Id_MCDC_129 = ( UINT16 ) Id_MCDC_125; +Id_MCDC_129 = (Id_MCDC_129 >> 8); +Id_MCDC_134 = ( UINT8 ) Id_MCDC_129; +Id_MCDC_127 = Id_MCDC_96(Id_MCDC_124, Id_MCDC_134, & Id_MCDC_131, & Id_MCDC_130, & Id_MCDC_135, & Id_MCDC_136); +if(Id_MCDC_127 != 0x00) +{ +return Id_MCDC_127; +} +} +Id_MCDC_126 = Id_MCDC_126 + 1; +Id_MCDC_123 = Id_MCDC_126; +} +} +return 0x00; +} +void Id_MCDC_99() +{ +CHAR Id_MCDC_139 [4]={0, 0, 0, 0}; +UINT32 Id_MCDC_140=0; +Id_MCDC_113.Id_MCDC_66 = ( PDO_Buffer* ) malloc(372); +Id_MCDC_97(); +for(Id_MCDC_140 = 0 ; Id_MCDC_140 < 4 ; Id_MCDC_140++ ) +{ +if((Id_MCDC_113.Id_MCDC_66->Id_MCDC_42[Id_MCDC_140].Id_MCDC_34 <= 240) && (Id_MCDC_113.Id_MCDC_66->Id_MCDC_42[Id_MCDC_140].Id_MCDC_34 >= 1)) +{ +Id_MCDC_139[Id_MCDC_140] = Id_MCDC_113.Id_MCDC_66->Id_MCDC_42[Id_MCDC_140].Id_MCDC_34; +} +else +{ +Id_MCDC_139[Id_MCDC_140] = 1; +} +} +Id_MCDC_114 = Id_MCDC_95(4, Id_MCDC_139); +return ; +} +void Id_MCDC_100() +{ +int Id_MCDC_141; +void * Id_MCDC_142; +Id_MCDC_99(); +return ; +} +int main() +{ +void * Id_MCDC_143; +void * Id_MCDC_144; +void * Id_MCDC_145; +void * Id_MCDC_146; +void * Id_MCDC_147; +void * Id_MCDC_148; +int Id_MCDC_149; +int Id_MCDC_150; +int Id_MCDC_151; +int Id_MCDC_152; +int Id_MCDC_153; +int Id_MCDC_154; +int Id_MCDC_155; +short Id_MCDC_156; +short Id_MCDC_157; +FILE* Id_MCDC_158; +unsigned short Id_MCDC_159; +unsigned short Id_MCDC_160; +unsigned short Id_MCDC_161=0; +unsigned short Id_MCDC_162=0; +char Id_MCDC_163; +char Id_MCDC_164; +Id_MCDC_158 = fopen("in.eds", "r"); +if(Id_MCDC_158 == (( void * ) 0)) +{ +return 1; +} +; +Id_MCDC_100(); +} +void __VERIFIER_assert(int Id_MCDC_103) +{ +if( ! (Id_MCDC_103)) +{ +ERROR : {reach_error();abort();} +} +return ; +} diff --git a/data/benchmarks/sv-benchmarks/loop-invariants/LICENSE.txt b/data/benchmarks/sv-benchmarks/loop-invariants/LICENSE.txt new file mode 100644 index 000000000..ba81f8282 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invariants/LICENSE.txt @@ -0,0 +1 @@ +../../LICENSE.Apache-2.0.txt \ No newline at end of file diff --git a/data/benchmarks/sv-benchmarks/loop-invariants/Makefile b/data/benchmarks/sv-benchmarks/loop-invariants/Makefile new file mode 100644 index 000000000..83c7bfe6d --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invariants/Makefile @@ -0,0 +1,14 @@ +# This file is part of the SV-Benchmarks collection of verification tasks: +# https://github.com/sosy-lab/sv-benchmarks +# +# SPDX-FileCopyrightText: 2015-2016 Daniel Liew +# SPDX-FileCopyrightText: 2015-2020 The SV-Benchmarks Community +# +# SPDX-License-Identifier: Apache-2.0 + +LEVEL := ../ + +CLANG_WARNINGS := \ + -Wno-error=tautological-constant-out-of-range-compare \ + +include $(LEVEL)/Makefile.config diff --git a/data/benchmarks/sv-benchmarks/loop-invariants/README b/data/benchmarks/sv-benchmarks/loop-invariants/README new file mode 100644 index 000000000..1c1c9d068 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invariants/README @@ -0,0 +1,16 @@ +These tasks are contributed by the CPAchecker team. + +The following hand-crafted examples are taken from the PDR study by Dirk Beyer and Matthias Dangl [1]: +bin-suffix-5.c +const.c +eq1.c +eq2.c +even.c +mod4.c +odd.c + +The following hand-crafted examples are taken from the journal paper on witnesses by Dirk Beyer, Matthias Dangl, Daniel Dietsch, Matthias Heizmann, Thomas Lemberger, and Michael Tautschnig: +linear-inequality-inv-a.c +linear-inequality-inv-b.c + +[1] D. Beyer and M. Dangl. Software Verification with PDR: Implementation and Empirical Evaluation of the State of the Art, August 2019. http://arxiv.org/abs/1908.06271. diff --git a/data/benchmarks/sv-benchmarks/loop-invariants/bin-suffix-5.c b/data/benchmarks/sv-benchmarks/loop-invariants/bin-suffix-5.c new file mode 100644 index 000000000..41ae55868 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invariants/bin-suffix-5.c @@ -0,0 +1,18 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "bin-suffix-5.c", 3, "reach_error"); } +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int main(void) { + unsigned int x = 5; + while (__VERIFIER_nondet_int()) { + x += 8; + } + __VERIFIER_assert((x & 5) == 5); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-invariants/const.c b/data/benchmarks/sv-benchmarks/loop-invariants/const.c new file mode 100644 index 000000000..b046adbf5 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invariants/const.c @@ -0,0 +1,22 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "const.c", 3, "reach_error"); } +extern unsigned int __VERIFIER_nondet_uint(void); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int main(void) { + unsigned int s = 0; + while (__VERIFIER_nondet_uint()) { + if (s != 0) { + ++s; + } + if (__VERIFIER_nondet_uint()) { + __VERIFIER_assert(s == 0); + } + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-invariants/eq1.c b/data/benchmarks/sv-benchmarks/loop-invariants/eq1.c new file mode 100644 index 000000000..20777725f --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invariants/eq1.c @@ -0,0 +1,25 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "eq1.c", 3, "reach_error"); } +extern unsigned int __VERIFIER_nondet_uint(void); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int main(void) { + unsigned int w = __VERIFIER_nondet_uint(); + unsigned int x = w; + unsigned int y = __VERIFIER_nondet_uint(); + unsigned int z = y; + while (__VERIFIER_nondet_uint()) { + if (__VERIFIER_nondet_uint()) { + ++w; ++x; + } else { + --y; --z; + } + } + __VERIFIER_assert(w == x && y == z); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-invariants/eq2.c b/data/benchmarks/sv-benchmarks/loop-invariants/eq2.c new file mode 100644 index 000000000..c08d5812d --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invariants/eq2.c @@ -0,0 +1,22 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "eq2.c", 3, "reach_error"); } +extern unsigned int __VERIFIER_nondet_uint(void); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int main(void) { + unsigned int w = __VERIFIER_nondet_uint(); + unsigned int x = w; + unsigned int y = w + 1; + unsigned int z = x + 1; + while (__VERIFIER_nondet_uint()) { + y++; + z++; + } + __VERIFIER_assert(y == z); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-invariants/even.c b/data/benchmarks/sv-benchmarks/loop-invariants/even.c new file mode 100644 index 000000000..8c86f9035 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invariants/even.c @@ -0,0 +1,18 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "even.c", 3, "reach_error"); } +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int main(void) { + unsigned int x = 0; + while (__VERIFIER_nondet_int()) { + x += 2; + } + __VERIFIER_assert(!(x % 2)); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-invariants/linear-inequality-inv-a.c b/data/benchmarks/sv-benchmarks/loop-invariants/linear-inequality-inv-a.c new file mode 100644 index 000000000..7b5c36699 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invariants/linear-inequality-inv-a.c @@ -0,0 +1,26 @@ +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "linear-inequality-inv-a.c", 2, "reach_error"); } +extern unsigned char __VERIFIER_nondet_uchar(void); +int main() { + unsigned char n = __VERIFIER_nondet_uchar(); + if (n == 0) { + return 0; + } + unsigned char v = 0; + unsigned int s = 0; + unsigned int i = 0; + while (i < n) { + v = __VERIFIER_nondet_uchar(); + s += v; + ++i; + } + if (s < v) { + reach_error(); + return 1; + } + if (s > 65025) { + reach_error(); + return 1; + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-invariants/linear-inequality-inv-b.c b/data/benchmarks/sv-benchmarks/loop-invariants/linear-inequality-inv-b.c new file mode 100644 index 000000000..573ca5f92 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invariants/linear-inequality-inv-b.c @@ -0,0 +1,26 @@ +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "linear-inequality-inv-b.c", 2, "reach_error"); } +extern unsigned char __VERIFIER_nondet_uchar(void); +int main() { + unsigned char n = __VERIFIER_nondet_uchar(); + if (n == 0) { + return 0; + } + unsigned char v = 0; + unsigned char s = 0; + unsigned int i = 0; + while (i < n) { + v = __VERIFIER_nondet_uchar(); + s += v; + ++i; + } + if (s < v) { + reach_error(); + return 1; + } + if (s > 65025) { + reach_error(); + return 1; + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-invariants/mod4.c b/data/benchmarks/sv-benchmarks/loop-invariants/mod4.c new file mode 100644 index 000000000..af53768b4 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invariants/mod4.c @@ -0,0 +1,18 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "mod4.c", 3, "reach_error"); } +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int main(void) { + unsigned int x = 0; + while (__VERIFIER_nondet_int()) { + x += 4; + } + __VERIFIER_assert(!(x % 4)); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-invariants/odd.c b/data/benchmarks/sv-benchmarks/loop-invariants/odd.c new file mode 100644 index 000000000..61f9755ad --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invariants/odd.c @@ -0,0 +1,18 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "odd.c", 3, "reach_error"); } +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int main(void) { + unsigned int x = 1; + while (__VERIFIER_nondet_int()) { + x += 2; + } + __VERIFIER_assert(x % 2); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-invgen/LICENSE.txt b/data/benchmarks/sv-benchmarks/loop-invgen/LICENSE.txt new file mode 100644 index 000000000..ba81f8282 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invgen/LICENSE.txt @@ -0,0 +1 @@ +../../LICENSE.Apache-2.0.txt \ No newline at end of file diff --git a/data/benchmarks/sv-benchmarks/loop-invgen/MADWiFi-encode_ie_ok.c b/data/benchmarks/sv-benchmarks/loop-invgen/MADWiFi-encode_ie_ok.c new file mode 100644 index 000000000..cfcfb3177 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invgen/MADWiFi-encode_ie_ok.c @@ -0,0 +1,53 @@ +#include "assert.h" + +int main() +{ + /* buf is treated as an array of unsigned 8-byte ints */ + // u_int8_t *p; + int p; + int i; + int leader_len; + int bufsize; + int bufsize_0; + int ielen; + + leader_len = __VERIFIER_nondet_int(); + bufsize = __VERIFIER_nondet_int(); + ielen = __VERIFIER_nondet_int(); + if (!(leader_len < LARGE_INT)) return 0; + if (!(bufsize < LARGE_INT)) return 0; + if (!(ielen < LARGE_INT)) return 0; + + // copy the contents of leader into buf + if(leader_len >0); else goto END; + if(bufsize >0); else goto END; + if(ielen >0); else goto END; + + if (bufsize < leader_len) + goto END; + + p = 0; + + bufsize_0 = bufsize; + bufsize -= leader_len; + p += leader_len; + + /* This is the fix. */ + if (bufsize < 2*ielen) + goto END; + + for (i = 0; i < ielen && bufsize > 2; i++) { + __VERIFIER_assert(0<=p); + __VERIFIER_assert(p+1 +# SPDX-FileCopyrightText: 2015-2020 The SV-Benchmarks Community +# +# SPDX-License-Identifier: Apache-2.0 + +LEVEL := ../ + + +ifneq ($(CC),gcc-5) + CC.Flags = -fbracket-depth=1200 +endif + +include $(LEVEL)/Makefile.config diff --git a/data/benchmarks/sv-benchmarks/loop-invgen/NetBSD_loop.c b/data/benchmarks/sv-benchmarks/loop-invgen/NetBSD_loop.c new file mode 100644 index 000000000..6be2b1a58 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invgen/NetBSD_loop.c @@ -0,0 +1,36 @@ +#include "assert.h" + +int main () +{ + int MAXPATHLEN; + int pathbuf_off; + + /* Char *bound = pathbuf + sizeof(pathbuf)/sizeof(*pathbuf) - 1; */ + int bound_off; + + /* glob2's local vars */ + /* Char *p; */ + int glob2_p_off; + int glob2_pathbuf_off; + int glob2_pathlim_off; + + MAXPATHLEN = __VERIFIER_nondet_int(); + if(MAXPATHLEN > 0 && MAXPATHLEN < 2147483647); else goto END; + + pathbuf_off = 0; + bound_off = pathbuf_off + (MAXPATHLEN + 1) - 1; + + + glob2_pathbuf_off = pathbuf_off; + glob2_pathlim_off = bound_off; + + for (glob2_p_off = glob2_pathbuf_off; + glob2_p_off <= glob2_pathlim_off; + glob2_p_off++) { + /* OK */ + __VERIFIER_assert (0 <= glob2_p_off ); + __VERIFIER_assert (glob2_p_off < MAXPATHLEN + 1); + } + + END: return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-invgen/README b/data/benchmarks/sv-benchmarks/loop-invgen/README new file mode 100644 index 000000000..43a539728 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invgen/README @@ -0,0 +1,4 @@ + + loop_invgen: Examples from Ashutosh Gupta and Andrey Rybalchenko's InvGen + test suite (http://pub.ist.ac.at/~agupta/invgen/) +The *-reducer.c programs are transformations from Ashutosh Gupta and Andrey Rybalchenko's InvGen +test suite that were used in reducer-based conditional model checking. diff --git a/data/benchmarks/sv-benchmarks/loop-invgen/SpamAssassin-loop.c b/data/benchmarks/sv-benchmarks/loop-invgen/SpamAssassin-loop.c new file mode 100644 index 000000000..c8832cd6e --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invgen/SpamAssassin-loop.c @@ -0,0 +1,51 @@ +#include "assert.h" + +int main() +{ + int len; + int i; + int j; + + int bufsize; + bufsize = __VERIFIER_nondet_int(); + if (bufsize < 0) return 0; // avoid overflows for too negative values + len = __VERIFIER_nondet_int(); + int limit = bufsize - 4; + + + for (i = 0; i < len; ) { + for (j = 0; i < len && j < limit; ){ + if (i + 1 < len){ + __VERIFIER_assert(i+1= -LARGE_INT)) return 0; + if (!(tokenlen <= LARGE_INT && tokenlen >= -LARGE_INT)) return 0; + if (!(scheme <= LARGE_INT && scheme >= -LARGE_INT)) return 0; + + if(urilen>0); else goto END; + if(tokenlen>0); else goto END; + if(scheme >= 0 );else goto END; + if (scheme == 0 || (urilen-1 < scheme)) { + goto END; + } + + cp = scheme; + + __VERIFIER_assert(cp-1 < urilen); + __VERIFIER_assert(0 <= cp-1); + + if (__VERIFIER_nondet_int()) { + __VERIFIER_assert(cp < urilen); + __VERIFIER_assert(0 <= cp); + while ( cp != urilen-1) { + if(__VERIFIER_nondet_int()) break; + __VERIFIER_assert(cp < urilen); + __VERIFIER_assert(0 <= cp); + ++cp; + } + __VERIFIER_assert(cp < urilen); + __VERIFIER_assert( 0 <= cp ); + if (cp == urilen-1) goto END; + __VERIFIER_assert(cp+1 < urilen); + __VERIFIER_assert( 0 <= cp+1 ); + if (cp+1 == urilen-1) goto END; + ++cp; + + scheme = cp; + + if (__VERIFIER_nondet_int()) { + c = 0; + __VERIFIER_assert(cp < urilen); + __VERIFIER_assert(0<=cp); + while ( cp != urilen-1 + && c < tokenlen - 1) { + __VERIFIER_assert(cp < urilen); + __VERIFIER_assert(0<=cp); + if (__VERIFIER_nondet_int()) { + ++c; + __VERIFIER_assert(c < tokenlen); + __VERIFIER_assert(0<=c); + __VERIFIER_assert(cp < urilen); + __VERIFIER_assert(0<=cp); + } + ++cp; + } + goto END; + } + } + +END: + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-invgen/apache-escape-absolute.i.v+cfa-reducer.c b/data/benchmarks/sv-benchmarks/loop-invgen/apache-escape-absolute.i.v+cfa-reducer.c new file mode 100644 index 000000000..a6743b0b0 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invgen/apache-escape-absolute.i.v+cfa-reducer.c @@ -0,0 +1,439 @@ +int __return_main; +void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "apache-escape-absolute.i.v+cfa-reducer.c", 4, "reach_error"); } +void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond); +int __VERIFIER_nondet_int(); +int main(); +int __return_375; + int main() + { + int main__scheme; + int main__urilen; + int main__tokenlen; + int main__cp; + int main__c; + main__urilen = __VERIFIER_nondet_int(); + main__tokenlen = __VERIFIER_nondet_int(); + main__scheme = __VERIFIER_nondet_int(); + if (!(main__urilen <= 1000000)) + { + return __return_main; + } + else + { + if (!(main__urilen >= -1000000)) + { + return __return_main; + } + else + { + if (!(main__tokenlen <= 1000000)) + { + return __return_main; + } + else + { + if (!(main__tokenlen >= -1000000)) + { + return __return_main; + } + else + { + if (!(main__scheme <= 1000000)) + { + return __return_main; + } + else + { + if (!(main__scheme >= -1000000)) + { + return __return_main; + } + else + { + if (main__urilen > 0) + { + if (main__tokenlen > 0) + { + if (main__scheme >= 0) + { + if (main__scheme == 0) + { + return __return_main; + } + else + { + if ((main__urilen - 1) < main__scheme) + { + return __return_main; + } + else + { + main__cp = main__scheme; + { + int __tmp_1; + __tmp_1 = (main__cp - 1) < main__urilen; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_1; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_2; + __tmp_2 = 0 <= (main__cp - 1); + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_2; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_3; + __tmp_3 = main__cp < main__urilen; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_3; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_4; + __tmp_4 = 0 <= main__cp; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_4; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + label_287:; + if (main__cp != (main__urilen - 1)) + { + int main____CPAchecker_TMP_1; + main____CPAchecker_TMP_1 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_1 == 0)) + { + label_289:; + { + int __tmp_5; + __tmp_5 = main__cp < main__urilen; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_5; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_6; + __tmp_6 = 0 <= main__cp; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_6; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + if (main__cp == (main__urilen - 1)) + { + label_270:; + __return_375 = 0; + return __return_375; + } + else + { + { + int __tmp_7; + __tmp_7 = (main__cp + 1) < main__urilen; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_7; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_8; + __tmp_8 = 0 <= (main__cp + 1); + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_8; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + if ((main__cp + 1) == (main__urilen - 1)) + { + goto label_270; + } + else + { + main__cp = main__cp + 1; + main__scheme = main__cp; + int main____CPAchecker_TMP_2; + main____CPAchecker_TMP_2 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_2 == 0)) + { + main__c = 0; + { + int __tmp_9; + __tmp_9 = main__cp < main__urilen; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_9; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_10; + __tmp_10 = 0 <= main__cp; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_10; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + label_370:; + if (main__cp != (main__urilen - 1)) + { + if (main__c < (main__tokenlen - 1)) + { + { + int __tmp_11; + __tmp_11 = main__cp < main__urilen; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_11; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_12; + __tmp_12 = 0 <= main__cp; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_12; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + int main____CPAchecker_TMP_3; + main____CPAchecker_TMP_3 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_3 == 0)) + { + main__c = main__c + 1; + { + int __tmp_13; + __tmp_13 = main__c < main__tokenlen; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_13; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_14; + __tmp_14 = 0 <= main__c; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_14; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_15; + __tmp_15 = main__cp < main__urilen; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_15; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_16; + __tmp_16 = 0 <= main__cp; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_16; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + label_393:; + main__cp = main__cp + 1; + goto label_370; + } + } + } + } + } + } + } + } + } + else + { + goto label_393; + } + } + } + } + } + } + else + { + label_372:; + goto label_270; + } + } + else + { + goto label_372; + } + } + } + } + } + } + else + { + label_268:; + goto label_270; + } + } + } + } + } + } + } + } + } + } + } + } + else + { + { + int __tmp_17; + __tmp_17 = main__cp < main__urilen; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_17; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_18; + __tmp_18 = 0 <= main__cp; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_18; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + main__cp = main__cp + 1; + goto label_287; + } + } + } + } + } + } + else + { + goto label_289; + } + } + } + } + } + } + else + { + goto label_268; + } + } + } + } + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } + } + } + } + } diff --git a/data/benchmarks/sv-benchmarks/loop-invgen/apache-get-tag.c b/data/benchmarks/sv-benchmarks/loop-invgen/apache-get-tag.c new file mode 100644 index 000000000..416c3ed27 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invgen/apache-get-tag.c @@ -0,0 +1,69 @@ +#include "assert.h" +int main() +{ + int tagbuf_len; + int t; + + tagbuf_len = __VERIFIER_nondet_int(); + if(tagbuf_len >= 1); else goto END; + + t = 0; + + --tagbuf_len; + + while (1) { + if (t == tagbuf_len) { + __VERIFIER_assert(0 <= t); + __VERIFIER_assert(t <= tagbuf_len); + // tag[t] = EOS; + goto END; + } + if (__VERIFIER_nondet_int()) { + break; + } + __VERIFIER_assert(0 <= t); + __VERIFIER_assert(t <= tagbuf_len); + t++; + } + + __VERIFIER_assert(0 <= t); + __VERIFIER_assert(t <= tagbuf_len); + t++; + + while (1) { + + if (t == tagbuf_len) { /* Suppose t == tagbuf_len - 1 */ + __VERIFIER_assert(0 <= t); + __VERIFIER_assert(t <= tagbuf_len); + goto END; + } + + if (__VERIFIER_nondet_int()) { + if ( __VERIFIER_nondet_int()) { + __VERIFIER_assert(0 <= t); + __VERIFIER_assert(t <= tagbuf_len); + t++; + if (t == tagbuf_len) { + __VERIFIER_assert(0 <= t); + __VERIFIER_assert(t <= tagbuf_len); + goto END; + } + } + } + else if ( __VERIFIER_nondet_int()) { + break; + } + + /* OK */ + __VERIFIER_assert(0 <= t); + __VERIFIER_assert(t <= tagbuf_len); + t++; /* Now t == tagbuf_len + 1 + * So the bounds check (t == tagbuf_len) will fail */ + } + /* OK */ + __VERIFIER_assert(0 <= t); + __VERIFIER_assert(t <= tagbuf_len); + + END: + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-invgen/apache-get-tag.i.p+lhb-reducer.c b/data/benchmarks/sv-benchmarks/loop-invgen/apache-get-tag.i.p+lhb-reducer.c new file mode 100644 index 000000000..02d3b16dd --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invgen/apache-get-tag.i.p+lhb-reducer.c @@ -0,0 +1,1006 @@ +int __return_main; +void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "apache-get-tag.i.p+lhb-reducer.c", 4, "reach_error"); } +void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond); +int __VERIFIER_nondet_int(); +int main(); +int __return_2598; +int __tmp_2624_0; +int __tmp_2624_1; +int __tmp_3137_0; +int __tmp_3137_1; + int main() + { + int main__tagbuf_len; + int main__t; + main__tagbuf_len = __VERIFIER_nondet_int(); + if (main__tagbuf_len >= 1) + { + main__t = 0; + main__tagbuf_len = main__tagbuf_len - 1; + if (main__t == main__tagbuf_len) + { + label_2604:; + { + int __tmp_1; + __tmp_1 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_1; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_2; + __tmp_2 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_2; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + label_2597:; + __return_2598 = 0; + return __return_2598; + } + } + } + } + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_3; + __tmp_3 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_3; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_4; + __tmp_4 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_4; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_2624_0 = main____CPAchecker_TMP_0; + __tmp_2624_1 = main____CPAchecker_TMP_2; + label_2624:; + main____CPAchecker_TMP_0 = __tmp_2624_0; + main____CPAchecker_TMP_2 = __tmp_2624_1; + if (main__t == main__tagbuf_len) + { + { + int __tmp_5; + __tmp_5 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_5; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_6; + __tmp_6 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_6; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + goto label_2597; + } + } + } + } + } + else + { + int main____CPAchecker_TMP_3; + main____CPAchecker_TMP_3 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_3 == 0)) + { + int main____CPAchecker_TMP_4; + main____CPAchecker_TMP_4 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_4 == 0)) + { + { + int __tmp_7; + __tmp_7 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_7; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_8; + __tmp_8 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_8; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + int main____CPAchecker_TMP_5 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + { + int __tmp_9; + __tmp_9 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_9; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_10; + __tmp_10 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_10; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + goto label_2597; + } + } + } + } + } + else + { + label_2634:; + label_2661:; + { + int __tmp_11; + __tmp_11 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_11; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_12; + __tmp_12 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_12; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + int main____CPAchecker_TMP_7 = main__t; + main__t = main__t + 1; + __tmp_2624_0 = main____CPAchecker_TMP_0; + __tmp_2624_1 = main____CPAchecker_TMP_2; + goto label_2624; + } + } + } + } + } + } + } + } + } + } + else + { + goto label_2634; + } + } + else + { + int main____CPAchecker_TMP_6; + main____CPAchecker_TMP_6 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_6 == 0)) + { + { + int __tmp_13; + __tmp_13 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_13; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_14; + __tmp_14 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_14; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + goto label_2597; + } + } + } + } + } + else + { + goto label_2661; + } + } + } + } + } + } + } + } + else + { + { + int __tmp_15; + __tmp_15 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_15; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_16; + __tmp_16 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_16; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_17; + __tmp_17 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_17; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_18; + __tmp_18 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_18; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_2624_0 = main____CPAchecker_TMP_0; + __tmp_2624_1 = main____CPAchecker_TMP_2; + goto label_2624; + } + } + } + } + } + else + { + { + int __tmp_19; + __tmp_19 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_19; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_20; + __tmp_20 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_20; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_21; + __tmp_21 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_21; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_22; + __tmp_22 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_22; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_2624_0 = main____CPAchecker_TMP_0; + __tmp_2624_1 = main____CPAchecker_TMP_2; + goto label_2624; + } + } + } + } + } + else + { + { + int __tmp_23; + __tmp_23 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_23; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_24; + __tmp_24 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_24; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_25; + __tmp_25 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_25; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_26; + __tmp_26 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_26; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_2624_0 = main____CPAchecker_TMP_0; + __tmp_2624_1 = main____CPAchecker_TMP_2; + goto label_2624; + } + } + } + } + } + else + { + { + int __tmp_27; + __tmp_27 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_27; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_28; + __tmp_28 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_28; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_29; + __tmp_29 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_29; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_30; + __tmp_30 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_30; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_2624_0 = main____CPAchecker_TMP_0; + __tmp_2624_1 = main____CPAchecker_TMP_2; + goto label_2624; + } + } + } + } + } + else + { + { + int __tmp_31; + __tmp_31 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_31; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_32; + __tmp_32 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_32; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_33; + __tmp_33 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_33; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_34; + __tmp_34 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_34; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_2624_0 = main____CPAchecker_TMP_0; + __tmp_2624_1 = main____CPAchecker_TMP_2; + goto label_2624; + } + } + } + } + } + else + { + { + int __tmp_35; + __tmp_35 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_35; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_36; + __tmp_36 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_36; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_37; + __tmp_37 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_37; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_38; + __tmp_38 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_38; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_2624_0 = main____CPAchecker_TMP_0; + __tmp_2624_1 = main____CPAchecker_TMP_2; + goto label_2624; + } + } + } + } + } + else + { + { + int __tmp_39; + __tmp_39 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_39; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_40; + __tmp_40 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_40; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_41; + __tmp_41 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_41; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_42; + __tmp_42 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_42; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_2624_0 = main____CPAchecker_TMP_0; + __tmp_2624_1 = main____CPAchecker_TMP_2; + goto label_2624; + } + } + } + } + } + else + { + { + int __tmp_43; + __tmp_43 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_43; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_44; + __tmp_44 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_44; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_45; + __tmp_45 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_45; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_46; + __tmp_46 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_46; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_2624_0 = main____CPAchecker_TMP_0; + __tmp_2624_1 = main____CPAchecker_TMP_2; + goto label_2624; + } + } + } + } + } + else + { + { + int __tmp_47; + __tmp_47 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_47; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_48; + __tmp_48 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_48; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + __tmp_3137_0 = main____CPAchecker_TMP_1; + __tmp_3137_1 = main____CPAchecker_TMP_0; + label_3137:; + main____CPAchecker_TMP_1 = __tmp_3137_0; + main____CPAchecker_TMP_0 = __tmp_3137_1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_49; + __tmp_49 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_49; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_50; + __tmp_50 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_50; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_2624_0 = main____CPAchecker_TMP_0; + __tmp_2624_1 = main____CPAchecker_TMP_2; + goto label_2624; + } + } + } + } + } + else + { + { + int __tmp_51; + __tmp_51 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_51; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_52; + __tmp_52 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_52; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + __tmp_3137_0 = main____CPAchecker_TMP_1; + __tmp_3137_1 = main____CPAchecker_TMP_0; + goto label_3137; + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + else + { + goto label_2597; + } + } diff --git a/data/benchmarks/sv-benchmarks/loop-invgen/apache-get-tag.i.p+nlh-reducer.c b/data/benchmarks/sv-benchmarks/loop-invgen/apache-get-tag.i.p+nlh-reducer.c new file mode 100644 index 000000000..a9a809707 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invgen/apache-get-tag.i.p+nlh-reducer.c @@ -0,0 +1,3008 @@ +int __return_main; +void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "apache-get-tag.i.p+nlh-reducer.c", 4, "reach_error"); } +void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond); +int __VERIFIER_nondet_int(); +int main(); +int __return_2598; +int __tmp_2609_0; +int __tmp_3904_0; +int __tmp_3904_1; + int main() + { + int main__tagbuf_len; + int main__t; + main__tagbuf_len = __VERIFIER_nondet_int(); + if (main__tagbuf_len >= 1) + { + main__t = 0; + main__tagbuf_len = main__tagbuf_len - 1; + if (main__t == main__tagbuf_len) + { + label_2604:; + { + int __tmp_1; + __tmp_1 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_1; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_2; + __tmp_2 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_2; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + label_2597:; + __return_2598 = 0; + return __return_2598; + } + } + } + } + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + label_2609:; + main____CPAchecker_TMP_0 = __tmp_2609_0; + { + int __tmp_3; + __tmp_3 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_3; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_4; + __tmp_4 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_4; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + label_2714:; + if (main__t == main__tagbuf_len) + { + { + int __tmp_5; + __tmp_5 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_5; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_6; + __tmp_6 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_6; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + goto label_2597; + } + } + } + } + } + else + { + int main____CPAchecker_TMP_3; + main____CPAchecker_TMP_3 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_3 == 0)) + { + int main____CPAchecker_TMP_4; + main____CPAchecker_TMP_4 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_4 == 0)) + { + { + int __tmp_7; + __tmp_7 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_7; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_8; + __tmp_8 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_8; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + int main____CPAchecker_TMP_5 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + { + int __tmp_9; + __tmp_9 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_9; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_10; + __tmp_10 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_10; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + goto label_2597; + } + } + } + } + } + else + { + label_2723:; + label_2739:; + { + int __tmp_11; + __tmp_11 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_11; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_12; + __tmp_12 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_12; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + int main____CPAchecker_TMP_7 = main__t; + main__t = main__t + 1; + goto label_2714; + } + } + } + } + } + } + } + } + } + } + else + { + goto label_2723; + } + } + else + { + int main____CPAchecker_TMP_6; + main____CPAchecker_TMP_6 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_6 == 0)) + { + { + int __tmp_13; + __tmp_13 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_13; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_14; + __tmp_14 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_14; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + goto label_2597; + } + } + } + } + } + else + { + goto label_2739; + } + } + } + } + } + } + } + } + else + { + { + int __tmp_15; + __tmp_15 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_15; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_16; + __tmp_16 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_16; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_17; + __tmp_17 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_17; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_18; + __tmp_18 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_18; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_19; + __tmp_19 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_19; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_20; + __tmp_20 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_20; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_21; + __tmp_21 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_21; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_22; + __tmp_22 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_22; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_23; + __tmp_23 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_23; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_24; + __tmp_24 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_24; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_25; + __tmp_25 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_25; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_26; + __tmp_26 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_26; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_27; + __tmp_27 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_27; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_28; + __tmp_28 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_28; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_29; + __tmp_29 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_29; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_30; + __tmp_30 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_30; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_31; + __tmp_31 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_31; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_32; + __tmp_32 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_32; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_33; + __tmp_33 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_33; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_34; + __tmp_34 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_34; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_35; + __tmp_35 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_35; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_36; + __tmp_36 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_36; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_37; + __tmp_37 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_37; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_38; + __tmp_38 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_38; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_39; + __tmp_39 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_39; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_40; + __tmp_40 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_40; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_41; + __tmp_41 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_41; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_42; + __tmp_42 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_42; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_43; + __tmp_43 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_43; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_44; + __tmp_44 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_44; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_45; + __tmp_45 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_45; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_46; + __tmp_46 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_46; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_47; + __tmp_47 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_47; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_48; + __tmp_48 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_48; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_49; + __tmp_49 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_49; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_50; + __tmp_50 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_50; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_51; + __tmp_51 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_51; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_52; + __tmp_52 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_52; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_53; + __tmp_53 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_53; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_54; + __tmp_54 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_54; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_55; + __tmp_55 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_55; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_56; + __tmp_56 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_56; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_57; + __tmp_57 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_57; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_58; + __tmp_58 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_58; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_59; + __tmp_59 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_59; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_60; + __tmp_60 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_60; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_61; + __tmp_61 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_61; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_62; + __tmp_62 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_62; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_63; + __tmp_63 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_63; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_64; + __tmp_64 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_64; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_65; + __tmp_65 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_65; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_66; + __tmp_66 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_66; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_67; + __tmp_67 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_67; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_68; + __tmp_68 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_68; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_69; + __tmp_69 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_69; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_70; + __tmp_70 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_70; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_71; + __tmp_71 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_71; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_72; + __tmp_72 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_72; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_73; + __tmp_73 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_73; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_74; + __tmp_74 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_74; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_75; + __tmp_75 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_75; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_76; + __tmp_76 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_76; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_77; + __tmp_77 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_77; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_78; + __tmp_78 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_78; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_79; + __tmp_79 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_79; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_80; + __tmp_80 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_80; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_81; + __tmp_81 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_81; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_82; + __tmp_82 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_82; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_83; + __tmp_83 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_83; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_84; + __tmp_84 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_84; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_85; + __tmp_85 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_85; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_86; + __tmp_86 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_86; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_87; + __tmp_87 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_87; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_88; + __tmp_88 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_88; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_89; + __tmp_89 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_89; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_90; + __tmp_90 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_90; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_91; + __tmp_91 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_91; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_92; + __tmp_92 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_92; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_93; + __tmp_93 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_93; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_94; + __tmp_94 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_94; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_95; + __tmp_95 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_95; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_96; + __tmp_96 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_96; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_97; + __tmp_97 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_97; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_98; + __tmp_98 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_98; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_99; + __tmp_99 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_99; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_100; + __tmp_100 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_100; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_101; + __tmp_101 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_101; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_102; + __tmp_102 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_102; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_103; + __tmp_103 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_103; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_104; + __tmp_104 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_104; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_105; + __tmp_105 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_105; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_106; + __tmp_106 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_106; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_107; + __tmp_107 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_107; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_108; + __tmp_108 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_108; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_109; + __tmp_109 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_109; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_110; + __tmp_110 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_110; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_111; + __tmp_111 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_111; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_112; + __tmp_112 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_112; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_113; + __tmp_113 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_113; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_114; + __tmp_114 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_114; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_115; + __tmp_115 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_115; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_116; + __tmp_116 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_116; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_117; + __tmp_117 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_117; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_118; + __tmp_118 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_118; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_119; + __tmp_119 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_119; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_120; + __tmp_120 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_120; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_121; + __tmp_121 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_121; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_122; + __tmp_122 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_122; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_123; + __tmp_123 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_123; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_124; + __tmp_124 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_124; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_125; + __tmp_125 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_125; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_126; + __tmp_126 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_126; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_127; + __tmp_127 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_127; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_128; + __tmp_128 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_128; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_129; + __tmp_129 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_129; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_130; + __tmp_130 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_130; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + { + int __tmp_131; + __tmp_131 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_131; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_132; + __tmp_132 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_132; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + __tmp_3904_0 = main____CPAchecker_TMP_0; + __tmp_3904_1 = main____CPAchecker_TMP_1; + label_3904:; + main____CPAchecker_TMP_0 = __tmp_3904_0; + main____CPAchecker_TMP_1 = __tmp_3904_1; + { + int __tmp_133; + __tmp_133 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_133; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_134; + __tmp_134 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_134; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_2604; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_2609_0 = main____CPAchecker_TMP_0; + goto label_2609; + } + else + { + __tmp_3904_0 = main____CPAchecker_TMP_0; + __tmp_3904_1 = main____CPAchecker_TMP_1; + goto label_3904; + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + else + { + goto label_2597; + } + } diff --git a/data/benchmarks/sv-benchmarks/loop-invgen/apache-get-tag.i.p+sep-reducer.c b/data/benchmarks/sv-benchmarks/loop-invgen/apache-get-tag.i.p+sep-reducer.c new file mode 100644 index 000000000..2cebf4393 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invgen/apache-get-tag.i.p+sep-reducer.c @@ -0,0 +1,5301 @@ +int __return_main; +void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "apache-get-tag.i.p+sep-reducer.c", 4, "reach_error"); } +void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond); +int __VERIFIER_nondet_int(); +int main(); +int __tmp_109_0; +int __tmp_109_1; +int __tmp_148_0; +int __tmp_179_0; +int __tmp_179_1; +int __tmp_179_2; +int __tmp_218_0; +int __tmp_2390_0; +int __tmp_2390_1; +int __return_2583; + int main() + { + int main__tagbuf_len; + int main__t; + main__tagbuf_len = __VERIFIER_nondet_int(); + if (main__tagbuf_len >= 1) + { + main__t = 0; + main__tagbuf_len = main__tagbuf_len - 1; + if (main__t == main__tagbuf_len) + { + label_19:; + { + int __tmp_1; + __tmp_1 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_1; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_2; + __tmp_2 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_2; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + goto label_13; + } + } + } + } + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_3; + __tmp_3 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_3; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_4; + __tmp_4 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_4; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + { + int __tmp_5; + __tmp_5 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_5; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_6; + __tmp_6 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_6; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + goto label_13; + } + } + } + } + } + else + { + int main____CPAchecker_TMP_3; + main____CPAchecker_TMP_3 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_3 == 0)) + { + int main____CPAchecker_TMP_4; + main____CPAchecker_TMP_4 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_4 == 0)) + { + { + int __tmp_7; + __tmp_7 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_7; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_8; + __tmp_8 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_8; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_5 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + { + int __tmp_9; + __tmp_9 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_9; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_10; + __tmp_10 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_10; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + goto label_13; + } + } + } + } + } + else + { + goto label_49; + } + } + } + } + } + } + else + { + label_49:; + label_78:; + { + int __tmp_11; + __tmp_11 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_11; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_12; + __tmp_12 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_12; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_7 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + label_109:; + main____CPAchecker_TMP_0 = __tmp_109_0; + main____CPAchecker_TMP_2 = __tmp_109_1; + if (main__t == main__tagbuf_len) + { + { + int __tmp_13; + __tmp_13 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_13; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_14; + __tmp_14 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_14; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + goto label_13; + } + } + } + } + } + else + { + int main____CPAchecker_TMP_3; + main____CPAchecker_TMP_3 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_3 == 0)) + { + int main____CPAchecker_TMP_4; + main____CPAchecker_TMP_4 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_4 == 0)) + { + { + int __tmp_15; + __tmp_15 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_15; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_16; + __tmp_16 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_16; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_5 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + { + int __tmp_17; + __tmp_17 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_17; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_18; + __tmp_18 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_18; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + goto label_13; + } + } + } + } + } + else + { + goto label_119; + } + } + } + } + } + } + else + { + label_119:; + __tmp_148_0 = main____CPAchecker_TMP_4; + label_148:; + main____CPAchecker_TMP_4 = __tmp_148_0; + { + int __tmp_19; + __tmp_19 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_19; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_20; + __tmp_20 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_20; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_7 = main__t; + main__t = main__t + 1; + __tmp_179_0 = main____CPAchecker_TMP_7; + __tmp_179_1 = main____CPAchecker_TMP_4; + __tmp_179_2 = main____CPAchecker_TMP_3; + label_179:; + main____CPAchecker_TMP_7 = __tmp_179_0; + main____CPAchecker_TMP_4 = __tmp_179_1; + main____CPAchecker_TMP_3 = __tmp_179_2; + if (main__t == main__tagbuf_len) + { + { + int __tmp_21; + __tmp_21 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_21; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_22; + __tmp_22 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_22; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + goto label_13; + } + } + } + } + } + else + { + int main____CPAchecker_TMP_3; + main____CPAchecker_TMP_3 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_3 == 0)) + { + int main____CPAchecker_TMP_4; + main____CPAchecker_TMP_4 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_4 == 0)) + { + { + int __tmp_23; + __tmp_23 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_23; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_24; + __tmp_24 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_24; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_5 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + { + int __tmp_25; + __tmp_25 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_25; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_26; + __tmp_26 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_26; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + goto label_13; + } + } + } + } + } + else + { + goto label_189; + } + } + } + } + } + } + else + { + label_189:; + __tmp_218_0 = main____CPAchecker_TMP_4; + label_218:; + main____CPAchecker_TMP_4 = __tmp_218_0; + { + int __tmp_27; + __tmp_27 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_27; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_28; + __tmp_28 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_28; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_7 = main__t; + main__t = main__t + 1; + __tmp_179_0 = main____CPAchecker_TMP_7; + __tmp_179_1 = main____CPAchecker_TMP_4; + __tmp_179_2 = main____CPAchecker_TMP_3; + goto label_179; + } + } + } + } + } + } + else + { + int main____CPAchecker_TMP_6; + main____CPAchecker_TMP_6 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_6 == 0)) + { + { + int __tmp_29; + __tmp_29 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_29; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_30; + __tmp_30 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_30; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + goto label_13; + } + } + } + } + } + else + { + __tmp_218_0 = main____CPAchecker_TMP_4; + goto label_218; + } + } + } + } + } + } + } + } + } + else + { + int main____CPAchecker_TMP_6; + main____CPAchecker_TMP_6 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_6 == 0)) + { + { + int __tmp_31; + __tmp_31 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_31; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_32; + __tmp_32 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_32; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + goto label_13; + } + } + } + } + } + else + { + __tmp_148_0 = main____CPAchecker_TMP_4; + goto label_148; + } + } + } + } + } + } + } + } + } + else + { + int main____CPAchecker_TMP_6; + main____CPAchecker_TMP_6 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_6 == 0)) + { + { + int __tmp_33; + __tmp_33 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_33; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_34; + __tmp_34 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_34; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + goto label_13; + } + } + } + } + } + else + { + goto label_78; + } + } + } + } + } + } + } + } + else + { + { + int __tmp_35; + __tmp_35 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_35; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_36; + __tmp_36 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_36; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_37; + __tmp_37 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_37; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_38; + __tmp_38 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_38; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_39; + __tmp_39 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_39; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_40; + __tmp_40 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_40; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_41; + __tmp_41 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_41; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_42; + __tmp_42 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_42; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_43; + __tmp_43 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_43; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_44; + __tmp_44 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_44; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_45; + __tmp_45 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_45; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_46; + __tmp_46 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_46; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_47; + __tmp_47 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_47; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_48; + __tmp_48 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_48; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_49; + __tmp_49 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_49; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_50; + __tmp_50 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_50; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_51; + __tmp_51 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_51; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_52; + __tmp_52 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_52; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_53; + __tmp_53 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_53; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_54; + __tmp_54 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_54; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_55; + __tmp_55 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_55; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_56; + __tmp_56 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_56; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_57; + __tmp_57 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_57; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_58; + __tmp_58 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_58; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_59; + __tmp_59 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_59; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_60; + __tmp_60 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_60; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_61; + __tmp_61 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_61; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_62; + __tmp_62 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_62; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_63; + __tmp_63 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_63; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_64; + __tmp_64 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_64; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_65; + __tmp_65 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_65; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_66; + __tmp_66 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_66; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_67; + __tmp_67 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_67; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_68; + __tmp_68 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_68; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_69; + __tmp_69 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_69; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_70; + __tmp_70 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_70; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_71; + __tmp_71 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_71; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_72; + __tmp_72 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_72; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_73; + __tmp_73 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_73; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_74; + __tmp_74 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_74; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_75; + __tmp_75 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_75; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_76; + __tmp_76 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_76; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_77; + __tmp_77 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_77; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_78; + __tmp_78 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_78; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_79; + __tmp_79 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_79; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_80; + __tmp_80 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_80; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_81; + __tmp_81 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_81; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_82; + __tmp_82 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_82; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_83; + __tmp_83 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_83; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_84; + __tmp_84 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_84; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_85; + __tmp_85 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_85; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_86; + __tmp_86 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_86; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_87; + __tmp_87 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_87; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_88; + __tmp_88 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_88; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_89; + __tmp_89 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_89; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_90; + __tmp_90 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_90; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_91; + __tmp_91 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_91; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_92; + __tmp_92 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_92; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_93; + __tmp_93 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_93; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_94; + __tmp_94 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_94; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_95; + __tmp_95 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_95; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_96; + __tmp_96 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_96; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_97; + __tmp_97 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_97; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_98; + __tmp_98 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_98; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_99; + __tmp_99 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_99; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_100; + __tmp_100 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_100; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_101; + __tmp_101 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_101; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_102; + __tmp_102 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_102; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_103; + __tmp_103 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_103; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_104; + __tmp_104 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_104; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_105; + __tmp_105 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_105; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_106; + __tmp_106 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_106; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_107; + __tmp_107 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_107; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_108; + __tmp_108 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_108; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_109; + __tmp_109 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_109; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_110; + __tmp_110 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_110; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_111; + __tmp_111 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_111; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_112; + __tmp_112 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_112; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_113; + __tmp_113 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_113; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_114; + __tmp_114 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_114; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_115; + __tmp_115 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_115; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_116; + __tmp_116 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_116; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_117; + __tmp_117 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_117; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_118; + __tmp_118 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_118; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_119; + __tmp_119 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_119; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_120; + __tmp_120 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_120; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_121; + __tmp_121 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_121; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_122; + __tmp_122 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_122; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_123; + __tmp_123 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_123; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_124; + __tmp_124 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_124; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_125; + __tmp_125 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_125; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_126; + __tmp_126 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_126; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_127; + __tmp_127 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_127; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_128; + __tmp_128 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_128; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_129; + __tmp_129 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_129; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_130; + __tmp_130 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_130; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_131; + __tmp_131 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_131; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_132; + __tmp_132 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_132; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_133; + __tmp_133 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_133; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_134; + __tmp_134 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_134; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_135; + __tmp_135 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_135; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_136; + __tmp_136 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_136; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_137; + __tmp_137 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_137; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_138; + __tmp_138 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_138; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_139; + __tmp_139 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_139; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_140; + __tmp_140 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_140; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_141; + __tmp_141 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_141; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_142; + __tmp_142 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_142; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_143; + __tmp_143 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_143; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_144; + __tmp_144 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_144; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_145; + __tmp_145 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_145; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_146; + __tmp_146 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_146; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_147; + __tmp_147 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_147; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_148; + __tmp_148 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_148; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_149; + __tmp_149 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_149; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_150; + __tmp_150 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_150; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_151; + __tmp_151 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_151; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_152; + __tmp_152 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_152; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_153; + __tmp_153 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_153; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_154; + __tmp_154 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_154; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_155; + __tmp_155 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_155; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_156; + __tmp_156 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_156; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_157; + __tmp_157 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_157; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_158; + __tmp_158 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_158; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_159; + __tmp_159 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_159; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_160; + __tmp_160 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_160; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_161; + __tmp_161 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_161; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_162; + __tmp_162 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_162; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_163; + __tmp_163 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_163; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_164; + __tmp_164 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_164; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_165; + __tmp_165 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_165; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_166; + __tmp_166 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_166; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_167; + __tmp_167 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_167; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_168; + __tmp_168 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_168; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_169; + __tmp_169 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_169; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_170; + __tmp_170 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_170; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_171; + __tmp_171 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_171; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_172; + __tmp_172 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_172; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_173; + __tmp_173 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_173; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_174; + __tmp_174 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_174; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_175; + __tmp_175 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_175; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_176; + __tmp_176 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_176; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_177; + __tmp_177 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_177; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_178; + __tmp_178 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_178; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_179; + __tmp_179 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_179; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_180; + __tmp_180 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_180; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_181; + __tmp_181 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_181; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_182; + __tmp_182 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_182; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_183; + __tmp_183 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_183; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_184; + __tmp_184 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_184; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_185; + __tmp_185 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_185; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_186; + __tmp_186 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_186; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_187; + __tmp_187 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_187; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_188; + __tmp_188 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_188; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_189; + __tmp_189 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_189; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_190; + __tmp_190 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_190; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_191; + __tmp_191 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_191; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_192; + __tmp_192 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_192; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_193; + __tmp_193 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_193; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_194; + __tmp_194 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_194; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_195; + __tmp_195 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_195; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_196; + __tmp_196 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_196; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_197; + __tmp_197 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_197; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_198; + __tmp_198 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_198; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_199; + __tmp_199 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_199; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_200; + __tmp_200 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_200; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_201; + __tmp_201 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_201; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_202; + __tmp_202 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_202; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_203; + __tmp_203 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_203; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_204; + __tmp_204 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_204; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_205; + __tmp_205 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_205; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_206; + __tmp_206 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_206; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_207; + __tmp_207 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_207; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_208; + __tmp_208 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_208; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_209; + __tmp_209 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_209; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_210; + __tmp_210 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_210; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_211; + __tmp_211 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_211; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_212; + __tmp_212 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_212; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_213; + __tmp_213 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_213; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_214; + __tmp_214 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_214; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_215; + __tmp_215 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_215; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_216; + __tmp_216 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_216; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_217; + __tmp_217 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_217; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_218; + __tmp_218 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_218; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_219; + __tmp_219 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_219; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_220; + __tmp_220 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_220; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_221; + __tmp_221 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_221; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_222; + __tmp_222 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_222; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_223; + __tmp_223 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_223; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_224; + __tmp_224 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_224; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_225; + __tmp_225 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_225; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_226; + __tmp_226 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_226; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_227; + __tmp_227 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_227; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_228; + __tmp_228 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_228; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_229; + __tmp_229 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_229; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_230; + __tmp_230 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_230; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_231; + __tmp_231 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_231; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_232; + __tmp_232 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_232; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_233; + __tmp_233 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_233; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_234; + __tmp_234 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_234; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_235; + __tmp_235 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_235; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_236; + __tmp_236 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_236; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_237; + __tmp_237 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_237; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_238; + __tmp_238 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_238; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_239; + __tmp_239 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_239; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_240; + __tmp_240 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_240; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_241; + __tmp_241 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_241; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_242; + __tmp_242 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_242; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_243; + __tmp_243 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_243; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_244; + __tmp_244 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_244; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_245; + __tmp_245 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_245; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_246; + __tmp_246 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_246; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_247; + __tmp_247 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_247; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_248; + __tmp_248 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_248; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_249; + __tmp_249 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_249; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_250; + __tmp_250 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_250; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_251; + __tmp_251 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_251; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_252; + __tmp_252 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_252; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_253; + __tmp_253 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_253; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_254; + __tmp_254 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_254; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_255; + __tmp_255 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_255; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_256; + __tmp_256 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_256; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_257; + __tmp_257 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_257; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_258; + __tmp_258 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_258; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_259; + __tmp_259 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_259; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_260; + __tmp_260 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_260; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_261; + __tmp_261 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_261; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_262; + __tmp_262 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_262; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_263; + __tmp_263 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_263; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_264; + __tmp_264 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_264; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_265; + __tmp_265 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_265; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_266; + __tmp_266 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_266; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + { + int __tmp_267; + __tmp_267 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_267; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_268; + __tmp_268 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_268; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_269; + __tmp_269 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_269; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_270; + __tmp_270 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_270; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + __tmp_109_0 = main____CPAchecker_TMP_0; + __tmp_109_1 = main____CPAchecker_TMP_2; + goto label_109; + } + } + } + } + } + else + { + __tmp_2390_0 = main____CPAchecker_TMP_0; + __tmp_2390_1 = main____CPAchecker_TMP_1; + label_2390:; + main____CPAchecker_TMP_0 = __tmp_2390_0; + main____CPAchecker_TMP_1 = __tmp_2390_1; + { + int __tmp_271; + __tmp_271 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_271; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_272; + __tmp_272 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_272; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + goto label_19; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_273; + __tmp_273 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_273; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_274; + __tmp_274 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_274; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + label_2454:; + if (main__t == main__tagbuf_len) + { + { + int __tmp_275; + __tmp_275 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_275; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_276; + __tmp_276 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_276; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + goto label_13; + } + } + } + } + } + else + { + int main____CPAchecker_TMP_3; + main____CPAchecker_TMP_3 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_3 == 0)) + { + int main____CPAchecker_TMP_4; + main____CPAchecker_TMP_4 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_4 == 0)) + { + { + int __tmp_277; + __tmp_277 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_277; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_278; + __tmp_278 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_278; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + int main____CPAchecker_TMP_5 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + { + int __tmp_279; + __tmp_279 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_279; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_280; + __tmp_280 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_280; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + goto label_13; + } + } + } + } + } + else + { + goto label_2464; + } + } + } + } + } + } + else + { + label_2464:; + label_2505:; + { + int __tmp_281; + __tmp_281 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_281; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_282; + __tmp_282 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_282; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + int main____CPAchecker_TMP_7 = main__t; + main__t = main__t + 1; + goto label_2454; + } + } + } + } + } + } + else + { + int main____CPAchecker_TMP_6; + main____CPAchecker_TMP_6 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_6 == 0)) + { + { + int __tmp_283; + __tmp_283 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_283; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_284; + __tmp_284 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_284; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + goto label_13; + } + } + } + } + } + else + { + goto label_2505; + } + } + } + } + } + } + } + } + else + { + __tmp_2390_0 = main____CPAchecker_TMP_0; + __tmp_2390_1 = main____CPAchecker_TMP_1; + goto label_2390; + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + else + { + label_13:; + __return_2583 = 0; + return __return_2583; + } + } diff --git a/data/benchmarks/sv-benchmarks/loop-invgen/apache-get-tag.i.v+lhb-reducer.c b/data/benchmarks/sv-benchmarks/loop-invgen/apache-get-tag.i.v+lhb-reducer.c new file mode 100644 index 000000000..92551e866 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invgen/apache-get-tag.i.v+lhb-reducer.c @@ -0,0 +1,402 @@ +int __return_main; +void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "apache-get-tag.i.v+lhb-reducer.c", 4, "reach_error"); } +void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond); +int __VERIFIER_nondet_int(); +int main(); +int __tmp_259_0; +int __return_305; +int __tmp_383_0; + int main() + { + int main__tagbuf_len; + int main__t; + main__tagbuf_len = __VERIFIER_nondet_int(); + if (main__tagbuf_len >= 1) + { + main__t = 0; + main__tagbuf_len = main__tagbuf_len - 1; + if (main__t == main__tagbuf_len) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_1; + __tmp_1 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_1; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_2; + __tmp_2 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_2; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + __tmp_259_0 = main____CPAchecker_TMP_0; + label_259:; + main____CPAchecker_TMP_0 = __tmp_259_0; + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + label_263:; + if (main__t == main__tagbuf_len) + { + { + int __tmp_3; + __tmp_3 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_3; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_4; + __tmp_4 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_4; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + label_304:; + __return_305 = 0; + return __return_305; + } + } + } + } + } + else + { + int main____CPAchecker_TMP_3; + main____CPAchecker_TMP_3 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_3 == 0)) + { + int main____CPAchecker_TMP_4; + main____CPAchecker_TMP_4 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_4 == 0)) + { + { + int __tmp_5; + __tmp_5 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_5; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_6; + __tmp_6 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_6; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + int main____CPAchecker_TMP_5 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + { + int __tmp_7; + __tmp_7 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_7; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_8; + __tmp_8 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_8; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + goto label_304; + } + } + } + } + } + else + { + label_273:; + label_314:; + { + int __tmp_9; + __tmp_9 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_9; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_10; + __tmp_10 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_10; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + int main____CPAchecker_TMP_7 = main__t; + main__t = main__t + 1; + goto label_263; + } + } + } + } + } + } + } + } + } + } + else + { + goto label_273; + } + } + else + { + int main____CPAchecker_TMP_6; + main____CPAchecker_TMP_6 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_6 == 0)) + { + { + int __tmp_11; + __tmp_11 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_11; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_12; + __tmp_12 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_12; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + goto label_304; + } + } + } + } + } + else + { + goto label_314; + } + } + } + } + } + } + } + } + else + { + { + int __tmp_13; + __tmp_13 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_13; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_14; + __tmp_14 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_14; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + __tmp_383_0 = main____CPAchecker_TMP_0; + label_383:; + main____CPAchecker_TMP_0 = __tmp_383_0; + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + { + int __tmp_15; + __tmp_15 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_15; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_16; + __tmp_16 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_16; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + goto label_304; + } + } + } + } + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + { + int __tmp_17; + __tmp_17 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_17; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_18; + __tmp_18 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_18; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + __tmp_259_0 = main____CPAchecker_TMP_0; + goto label_259; + } + } + } + } + } + else + { + { + int __tmp_19; + __tmp_19 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_19; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_20; + __tmp_20 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_20; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + __tmp_383_0 = main____CPAchecker_TMP_0; + goto label_383; + } + } + } + } + } + } + } + } + } + } + } + } + } + else + { + return __return_main; + } + } diff --git a/data/benchmarks/sv-benchmarks/loop-invgen/apache-get-tag.i.v+nlh-reducer.c b/data/benchmarks/sv-benchmarks/loop-invgen/apache-get-tag.i.v+nlh-reducer.c new file mode 100644 index 000000000..2b69fcea0 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invgen/apache-get-tag.i.v+nlh-reducer.c @@ -0,0 +1,375 @@ +int __return_main; +void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "apache-get-tag.i.v+nlh-reducer.c", 4, "reach_error"); } +void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond); +int __VERIFIER_nondet_int(); +int main(); +int __tmp_247_0; +int __return_305; +int __tmp_383_0; + int main() + { + int main__tagbuf_len; + int main__t; + main__tagbuf_len = __VERIFIER_nondet_int(); + if (main__tagbuf_len >= 1) + { + main__t = 0; + main__tagbuf_len = main__tagbuf_len - 1; + if (main__t == main__tagbuf_len) + { + return __return_main; + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_247_0 = main____CPAchecker_TMP_0; + label_247:; + main____CPAchecker_TMP_0 = __tmp_247_0; + { + int __tmp_1; + __tmp_1 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_1; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_2; + __tmp_2 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_2; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + int main____CPAchecker_TMP_2 = main__t; + main__t = main__t + 1; + label_263:; + if (main__t == main__tagbuf_len) + { + { + int __tmp_3; + __tmp_3 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_3; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_4; + __tmp_4 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_4; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + label_304:; + __return_305 = 0; + return __return_305; + } + } + } + } + } + else + { + int main____CPAchecker_TMP_3; + main____CPAchecker_TMP_3 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_3 == 0)) + { + int main____CPAchecker_TMP_4; + main____CPAchecker_TMP_4 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_4 == 0)) + { + { + int __tmp_5; + __tmp_5 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_5; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_6; + __tmp_6 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_6; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + int main____CPAchecker_TMP_5 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + { + int __tmp_7; + __tmp_7 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_7; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_8; + __tmp_8 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_8; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + goto label_304; + } + } + } + } + } + else + { + label_273:; + label_314:; + { + int __tmp_9; + __tmp_9 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_9; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_10; + __tmp_10 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_10; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + int main____CPAchecker_TMP_7 = main__t; + main__t = main__t + 1; + goto label_263; + } + } + } + } + } + } + } + } + } + } + else + { + goto label_273; + } + } + else + { + int main____CPAchecker_TMP_6; + main____CPAchecker_TMP_6 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_6 == 0)) + { + { + int __tmp_11; + __tmp_11 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_11; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_12; + __tmp_12 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_12; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + goto label_304; + } + } + } + } + } + else + { + goto label_314; + } + } + } + } + } + } + } + } + else + { + { + int __tmp_13; + __tmp_13 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_13; + if (__VERIFIER_assert__cond == 0) + { + return __return_main; + } + else + { + { + int __tmp_14; + __tmp_14 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_14; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + __tmp_383_0 = main____CPAchecker_TMP_0; + label_383:; + main____CPAchecker_TMP_0 = __tmp_383_0; + int main____CPAchecker_TMP_1 = main__t; + main__t = main__t + 1; + if (main__t == main__tagbuf_len) + { + { + int __tmp_15; + __tmp_15 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_15; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_16; + __tmp_16 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_16; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + goto label_304; + } + } + } + } + } + else + { + int main____CPAchecker_TMP_0; + main____CPAchecker_TMP_0 = __VERIFIER_nondet_int(); + if (!(main____CPAchecker_TMP_0 == 0)) + { + __tmp_247_0 = main____CPAchecker_TMP_0; + goto label_247; + } + else + { + { + int __tmp_17; + __tmp_17 = 0 <= main__t; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_17; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + { + int __tmp_18; + __tmp_18 = main__t <= main__tagbuf_len; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_18; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + __tmp_383_0 = main____CPAchecker_TMP_0; + goto label_383; + } + } + } + } + } + } + } + } + } + } + } + } + } + else + { + return __return_main; + } + } diff --git a/data/benchmarks/sv-benchmarks/loop-invgen/assert.h b/data/benchmarks/sv-benchmarks/loop-invgen/assert.h new file mode 100644 index 000000000..0c5ca6f84 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invgen/assert.h @@ -0,0 +1,15 @@ +extern void abort(void); +#include +void reach_error() { assert(0); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int __VERIFIER_nondet_int(); +#define LARGE_INT 1000000 diff --git a/data/benchmarks/sv-benchmarks/loop-invgen/down.c b/data/benchmarks/sv-benchmarks/loop-invgen/down.c new file mode 100644 index 000000000..2f1a2481c --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invgen/down.c @@ -0,0 +1,19 @@ +#include "assert.h" + +int main() { + int n; + int k = 0; + int i = 0; + n = __VERIFIER_nondet_int(); + while( i < n ) { + i++; + k++; + } + int j = n; + while( j > 0 ) { + __VERIFIER_assert(k > 0); + j--; + k--; + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-invgen/fragtest_simple.c b/data/benchmarks/sv-benchmarks/loop-invgen/fragtest_simple.c new file mode 100644 index 000000000..9036163b2 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invgen/fragtest_simple.c @@ -0,0 +1,43 @@ +#include "assert.h" + +int main(){ + int i,pvlen ; + int tmp___1 ; + int k = 0; + int n; + + i = 0; + pvlen = __VERIFIER_nondet_int(); + + // pkt = pktq->tqh_first; + while ( __VERIFIER_nondet_int() && i <= LARGE_INT) { + i = i + 1; + } + + + if (i > pvlen) { + pvlen = i; + } + i = 0; + + while ( __VERIFIER_nondet_int() && i <= LARGE_INT) { + tmp___1 = i; + i = i + 1; + k = k + 1; + } + + int j = 0; + n = i; + while (1) { + + __VERIFIER_assert(k >= 0); + k = k -1; + i = i - 1; + j = j + 1; + if (j >= n) { + break; + } + } + return 0; + +} diff --git a/data/benchmarks/sv-benchmarks/loop-invgen/half_2.c b/data/benchmarks/sv-benchmarks/loop-invgen/half_2.c new file mode 100644 index 000000000..c3b9661e3 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invgen/half_2.c @@ -0,0 +1,22 @@ +#include "assert.h" + +int main() { + int n,i,k; + n = __VERIFIER_nondet_int(); + if (!(n <= LARGE_INT)) return 0; + k = n; + i = 0; + while( i < n ) { + k--; + i = i + 2; + } + + int j = 0; + + while( j < n/2 ) { + __VERIFIER_assert(k > 0); + k--; + j++; + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-invgen/heapsort.c b/data/benchmarks/sv-benchmarks/loop-invgen/heapsort.c new file mode 100644 index 000000000..772d66138 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invgen/heapsort.c @@ -0,0 +1,53 @@ +#include "assert.h" + +int main( int argc, char *argv[]){ + int n,l,r,i,j; + + n = __VERIFIER_nondet_int(); + if (!(1 <= n && n <= LARGE_INT)) return 0; + + + l = n/2 + 1; + r = n; + if(l>1) { + l--; + } else { + r--; + } + while(r > 1) { + i = l; + j = 2*l; + while(j <= r) { + if( j < r) { + __VERIFIER_assert(1 <= j); + __VERIFIER_assert(j <= n); + __VERIFIER_assert(1 <= j+1); + __VERIFIER_assert(j+1 <= n); + if( __VERIFIER_nondet_int() ) + j = j + 1; + } + __VERIFIER_assert(1 <= j); + __VERIFIER_assert(j <= n); + if( __VERIFIER_nondet_int() ) { + break; + } + __VERIFIER_assert(1 <= i); + __VERIFIER_assert(i <= n); + __VERIFIER_assert(1 <= j); + __VERIFIER_assert(j <= n); + i = j; + j = 2*j; + } + if(l > 1) { + __VERIFIER_assert(1 <= l); + __VERIFIER_assert(l <= n); + l--; + } else { + __VERIFIER_assert(1 <= r); + __VERIFIER_assert(r <= n); + r--; + } + } + return 0; +} + diff --git a/data/benchmarks/sv-benchmarks/loop-invgen/id_build.c b/data/benchmarks/sv-benchmarks/loop-invgen/id_build.c new file mode 100644 index 000000000..96b68a409 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invgen/id_build.c @@ -0,0 +1,34 @@ +// from FreePastry source, file Id.java + /** + * Constructor, which takes the output of a toStringFull() and converts it back + * into an Id. Should not normally be used. + * + * @param hex The hexadeciaml representation from the toStringFull() + */ +/* + public static Id build(char[] chars, int offset, int length) { + int[] array = new int[nlen]; + + for (int i=0; i int[] + * + * @param material The input byte[] + * @return THe int[] + */ +/* + protected static int[] trans(byte[] material) { + int[] array = new int[nlen]; + + for (int j = 0; (j < IdBitLength / 8) && (j < material.length); j++) { + int k = material[j] & 0xff; + array[j / 4] |= k << ((j % 4) * 8); + } + + return array; + } +*/ +#include "assert.h" +int main() { + int idBitLength, material_length, nlen; + int j, k; + + nlen = __VERIFIER_nondet_int(); + idBitLength = __VERIFIER_nondet_int(); + material_length = __VERIFIER_nondet_int(); + if (!( nlen == idBitLength / 32 )) return 0; + + for (j = 0; (j < idBitLength / 8) && (j < material_length); j++) { + __VERIFIER_assert( 0 <= j); + __VERIFIER_assert( j < material_length ); + __VERIFIER_assert( 0 <= j/4 ); + __VERIFIER_assert( j/4 < nlen); + } + + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-invgen/large_const.c b/data/benchmarks/sv-benchmarks/loop-invgen/large_const.c new file mode 100644 index 000000000..4c0f80f9f --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invgen/large_const.c @@ -0,0 +1,35 @@ +#include "assert.h" + +int main(int argc, char* argv[]) { + int c1 = 4000; + int c2 = 2000; + int c3 = 10000; + int n, v; + int i, k, j; + + n = __VERIFIER_nondet_int(); + if (!(0 <= n && n < 10)) return 0; + + k = 0; + i = 0; + while( i < n ) { + i++; + v = __VERIFIER_nondet_int(); + if (!(0 <= v && n < 2)) return 0; + if( v == 0 ) + k += c1; + else if( v == 1 ) + k += c2; + else + k += c3; + } + + j = 0; + while( j < n ) { + __VERIFIER_assert(k > 0); + j++; + k--; + } + + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-invgen/nest-if3.c b/data/benchmarks/sv-benchmarks/loop-invgen/nest-if3.c new file mode 100644 index 000000000..a6b7ca53d --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invgen/nest-if3.c @@ -0,0 +1,17 @@ +#include "assert.h" +int main() { + int i,k,n,l; + + n = __VERIFIER_nondet_int(); + l = __VERIFIER_nondet_int(); + if (!(l>0)) return 0; + if (!(l < LARGE_INT)) return 0; + if (!(n < LARGE_INT)) return 0; + for (k=1;k=2*i); + } + } + else { + __VERIFIER_assert( k >= n ); + __VERIFIER_assert( k <= n ); + } + } + } +END: + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-invgen/nested9.c b/data/benchmarks/sv-benchmarks/loop-invgen/nested9.c new file mode 100644 index 000000000..fe73fa0e4 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invgen/nested9.c @@ -0,0 +1,21 @@ +#include "assert.h" + +int __BLAST_NONDET; + +int main() { + int i,j,k,n,l,m; + + n = __VERIFIER_nondet_int(); + m = __VERIFIER_nondet_int(); + l = __VERIFIER_nondet_int(); + if (!(-LARGE_INT < n && n < LARGE_INT)) return 0; + if (!(-LARGE_INT < m && m < LARGE_INT)) return 0; + if (!(-LARGE_INT < l && l < LARGE_INT)) return 0; + if(3*n<=m+l); else goto END; + for (i=0;i''\0' at the end. + */ + +#include "assert.h" + + +int main () +{ + int in; + int inlen = __VERIFIER_nondet_int(); + int bufferlen = __VERIFIER_nondet_int(); + int buf; + int buflim; + + if(bufferlen >1);else goto END; + if(inlen > 0);else goto END; + if(bufferlen < inlen);else goto END; + + buf = 0; + in = 0; + buflim = bufferlen - 2; + + while (__VERIFIER_nondet_int()) + { + if (buf == buflim) + break; + __VERIFIER_assert(0<=buf); + __VERIFIER_assert(buf 0); + j1++; + k--; + } +} diff --git a/data/benchmarks/sv-benchmarks/loop-invgen/string_concat-noarr.c b/data/benchmarks/sv-benchmarks/loop-invgen/string_concat-noarr.c new file mode 100644 index 000000000..bbf4341e8 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invgen/string_concat-noarr.c @@ -0,0 +1,23 @@ +#include "assert.h" + +int main(void) { + int i, j; + + L0: + i = 0; + L1: + while( __VERIFIER_nondet_int() && i < LARGE_INT){ + + i++; + } + if(i >= 100) STUCK: goto STUCK; // assume( i < 100 ); + j = 0; + L2: + while( __VERIFIER_nondet_int() && i < LARGE_INT ){ + i++; + j++; + } + if(j >= 100) goto STUCK; // assume( j < 100 ); + __VERIFIER_assert( i < 200 ); /* prove we don't overflow z */ + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-invgen/up.c b/data/benchmarks/sv-benchmarks/loop-invgen/up.c new file mode 100644 index 000000000..90fd6b20b --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-invgen/up.c @@ -0,0 +1,18 @@ +#include "assert.h" + +int main() { + int n; + int i = 0; + int k = 0; + n = __VERIFIER_nondet_int(); + while( i < n ) { + i++; + k++; + } + int j = 0; + while( j < n ) { + __VERIFIER_assert (k > 0); + j++; + k--; + } +} diff --git a/data/benchmarks/sv-benchmarks/loop-lit/LICENSE.txt b/data/benchmarks/sv-benchmarks/loop-lit/LICENSE.txt new file mode 100644 index 000000000..ba81f8282 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-lit/LICENSE.txt @@ -0,0 +1 @@ +../../LICENSE.Apache-2.0.txt \ No newline at end of file diff --git a/data/benchmarks/sv-benchmarks/loop-lit/Makefile b/data/benchmarks/sv-benchmarks/loop-lit/Makefile new file mode 100644 index 000000000..cadd471fe --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-lit/Makefile @@ -0,0 +1,11 @@ +# This file is part of the SV-Benchmarks collection of verification tasks: +# https://github.com/sosy-lab/sv-benchmarks +# +# SPDX-FileCopyrightText: 2015-2016 Daniel Liew +# SPDX-FileCopyrightText: 2015-2020 The SV-Benchmarks Community +# +# SPDX-License-Identifier: Apache-2.0 + +LEVEL := ../ + +include $(LEVEL)/Makefile.config diff --git a/data/benchmarks/sv-benchmarks/loop-lit/README b/data/benchmarks/sv-benchmarks/loop-lit/README new file mode 100644 index 000000000..6bfcec939 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-lit/README @@ -0,0 +1,2 @@ + + loop_lit: Examples collected from the literature +Programs ending on-reducer.c are transformations of literature examples that were generated during reducer-based conditional model checking. \ No newline at end of file diff --git a/data/benchmarks/sv-benchmarks/loop-lit/afnp2014.c b/data/benchmarks/sv-benchmarks/loop-lit/afnp2014.c new file mode 100644 index 000000000..2ec977f6a --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-lit/afnp2014.c @@ -0,0 +1,16 @@ +// Source: E. De Angelis, F. Fioravanti, J. A. Navas, M. Proietti: +// "Verification of Programs by Combining Iterated Specialization with +// Interpolation", HCVS 2014 + +#include "assert.h" + +int main() { + int x = 1; + int y = 0; + while (y < 1000 && __VERIFIER_nondet_int()) { + x = x + y; + y = y + 1; + } + __VERIFIER_assert(x >= y); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-lit/assert.h b/data/benchmarks/sv-benchmarks/loop-lit/assert.h new file mode 100644 index 000000000..38897dd4f --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-lit/assert.h @@ -0,0 +1,15 @@ +extern void abort(void); +#include +void reach_error() { assert(0); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int __VERIFIER_nondet_int(); +#define LARGE_INT 1000000 diff --git a/data/benchmarks/sv-benchmarks/loop-lit/bhmr2007.c b/data/benchmarks/sv-benchmarks/loop-lit/bhmr2007.c new file mode 100644 index 000000000..e6ad53648 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-lit/bhmr2007.c @@ -0,0 +1,21 @@ +// Source: Dirk Beyer, Thomas A. Henzinger, Rupak Majumdar, Andrey +// Rybalchenko: "Path Invariants", PLDI 2007. + +#include "assert.h" +int main() { + int i, n, a, b; + i = 0; a = 0; b = 0; n = __VERIFIER_nondet_int(); + if (!(n >= 0 && n <= LARGE_INT)) return 0; + while (i < n) { + if (__VERIFIER_nondet_int()) { + a = a + 1; + b = b + 2; + } else { + a = a + 2; + b = b + 1; + } + i = i + 1; + } + __VERIFIER_assert(a + b == 3*n); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-lit/cggmp2005.c b/data/benchmarks/sv-benchmarks/loop-lit/cggmp2005.c new file mode 100644 index 000000000..8d693af43 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-lit/cggmp2005.c @@ -0,0 +1,17 @@ +// Source: A. Costan, S. Gaubert, E. Goubault, M. Martel, S. Putot: "A Policy +// Iteration Algorithm for Computing Fixed Points in Static Analysis of +// Programs", CAV 2005 + +#include "assert.h" + +int main() { + int i,j; + i = 1; + j = 10; + while (j >= i) { + i = i + 2; + j = -1 + j; + } + __VERIFIER_assert(j == 6); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-lit/cggmp2005_variant.c b/data/benchmarks/sv-benchmarks/loop-lit/cggmp2005_variant.c new file mode 100644 index 000000000..dc6fc2ca4 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-lit/cggmp2005_variant.c @@ -0,0 +1,21 @@ +// Source: A. Costan, S. Gaubert, E. Goubault, M. Martel, S. Putot: "A Policy +// Iteration Algorithm for Computing Fixed Points in Static Analysis of +// Programs", CAV 2005 + +#include "assert.h" + +int main() { + int lo, mid, hi; + lo = 0; + mid = __VERIFIER_nondet_int(); + if (!(mid > 0 && mid <= LARGE_INT)) return 0; + hi = 2*mid; + + while (mid > 0) { + lo = lo + 1; + hi = hi - 1; + mid = mid - 1; + } + __VERIFIER_assert(lo == hi); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-lit/cggmp2005b.c b/data/benchmarks/sv-benchmarks/loop-lit/cggmp2005b.c new file mode 100644 index 000000000..5e4e29631 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-lit/cggmp2005b.c @@ -0,0 +1,24 @@ +// Source: A. Costan, S. Gaubert, E. Goubault, M. Martel, S. Putot: "A Policy +// Iteration Algorithm for Computing Fixed Points in Static Analysis of +// Programs", CAV 2005 + +#include "assert.h" + +int main() { + int i,j,k; + i = 0; + k = 9; + j = -100; + while (i <= 100) { + i = i + 1; + while (j < 20) { + j = i + j; + } + k = 4; + while (k <= 3) { + k = k + 1; + } + } + __VERIFIER_assert(k == 4); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-lit/css2003.c b/data/benchmarks/sv-benchmarks/loop-lit/css2003.c new file mode 100644 index 000000000..99ef418cf --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-lit/css2003.c @@ -0,0 +1,18 @@ +// Source: Michael Colon, Sriram Sankaranarayanan, Henny Sipma: "Linear +// Invariant Generation using Non-Linear Constraint Solving", CAV 2003. + +#include "assert.h" +int main() { + int i,j,k; + i = 1; + j = 1; + k = __VERIFIER_nondet_int(); + if (!(0 <= k && k <= 1)) return 0; + while (i < LARGE_INT) { + i = i + 1; + j = j + k; + k = k - 1; + __VERIFIER_assert(1 <= i + k && i + k <= 2 && i >= 1); + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-lit/ddlm2013.c b/data/benchmarks/sv-benchmarks/loop-lit/ddlm2013.c new file mode 100644 index 000000000..50e9e44ee --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-lit/ddlm2013.c @@ -0,0 +1,32 @@ +// Source: Isil Dillig, Thomas Dillig, Boyang Li, Ken McMillan: "Inductive +// Invariant Generation via Abductive Inference", OOPSLA 2013. + +#include "assert.h" + +int main() { + unsigned int i,j,a,b; + int flag = __VERIFIER_nondet_int(); + a = 0; + b = 0; + j = 1; + if (flag) { + i = 0; + } else { + i = 1; + } + + while (__VERIFIER_nondet_int()) { + a++; + b += (j - i); + i += 2; + if (i%2 == 0) { + j += 2; + } else { + j++; + } + } + if (flag) { + __VERIFIER_assert(a == b); + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-lit/gcnr2008.c b/data/benchmarks/sv-benchmarks/loop-lit/gcnr2008.c new file mode 100644 index 000000000..8217a5e0b --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-lit/gcnr2008.c @@ -0,0 +1,26 @@ +// Source: Bhargav S. Gulavani, Supratik Chakraborty, Aditya V. Nori, Sriram +// K. Rajamani: "Automatically Refining Abstract Interpretations", TACAS 2008. + +#include "assert.h" + +int main() { + int x,y,z,w; + x = y = z = w = 0; + while (__VERIFIER_nondet_int() && y < 10000) { + if (__VERIFIER_nondet_int()) { + x = x + 1; + y = y + 100; + } else if (__VERIFIER_nondet_int()) { + if (x >= 4) { + x = x + 1; + y = y + 1; + } + } else if (y > 10*w && z >= 100*x) { + y = -y; + } + w = w + 1; + z = z + 10; + } + __VERIFIER_assert(x >= 4 && y <= 2); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-lit/gj2007.c b/data/benchmarks/sv-benchmarks/loop-lit/gj2007.c new file mode 100644 index 000000000..319824238 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-lit/gj2007.c @@ -0,0 +1,19 @@ +// Source: Sumit Gulwani, Nebosja Jojic: "Program Verification as +// Probabilistic Inference", POPL 2007. + +#include "assert.h" + +int main() { + int x = 0; + int y = 50; + while(x < 100) { + if (x < 50) { + x = x + 1; + } else { + x = x + 1; + y = y + 1; + } + } + __VERIFIER_assert(y == 100); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-lit/gj2007.c.i.p+lhb-reducer.c b/data/benchmarks/sv-benchmarks/loop-lit/gj2007.c.i.p+lhb-reducer.c new file mode 100644 index 000000000..e6226ba24 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-lit/gj2007.c.i.p+lhb-reducer.c @@ -0,0 +1,214 @@ +int __return_main; +void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "gj2007.c.i.p+lhb-reducer.c", 4, "reach_error"); } +void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond); +int __VERIFIER_nondet_int(); +int main(); +int __return_720; + int main() + { + int main__x = 0; + int main__y = 50; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_649:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_656:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_663:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_670:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_677:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_684:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_691:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_698:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_705:; + label_706:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_712:; + goto label_706; + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_712; + } + } + else + { + { + int __tmp_1; + __tmp_1 = main__y == 100; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_1; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + __return_720 = 0; + return __return_720; + } + } + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_705; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_698; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_691; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_684; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_677; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_670; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_663; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_656; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_649; + } + } + else + { + return __return_main; + } + } diff --git a/data/benchmarks/sv-benchmarks/loop-lit/gj2007.c.i.p+nlh-reducer.c b/data/benchmarks/sv-benchmarks/loop-lit/gj2007.c.i.p+nlh-reducer.c new file mode 100644 index 000000000..6d8cd126f --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-lit/gj2007.c.i.p+nlh-reducer.c @@ -0,0 +1,1258 @@ +int __return_main; +void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "gj2007.c.i.p+nlh-reducer.c", 4, "reach_error"); } +void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond); +int __VERIFIER_nondet_int(); +int main(); +int __return_1121; + int main() + { + int main__x = 0; + int main__y = 50; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_649:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_656:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_663:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_670:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_677:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_684:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_691:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_698:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_705:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_712:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_719:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_726:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_733:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_740:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_747:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_754:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_761:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_768:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_775:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_782:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_789:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_796:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_803:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_810:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_817:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_824:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_831:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_838:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_845:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_852:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_859:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_866:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_873:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_880:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_887:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_894:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_901:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_908:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_915:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_922:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_929:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_936:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_943:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_950:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_957:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_964:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_971:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_978:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_985:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_992:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_999:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_1006:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_1013:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_1020:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_1027:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_1034:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_1041:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_1048:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_1055:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_1062:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_1069:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_1076:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_1083:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_1090:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_1097:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_1104:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_1111:; + label_1112:; + if (main__x < 100) + { + if (main__x < 50) + { + main__x = main__x + 1; + label_1128:; + goto label_1112; + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_1128; + } + } + else + { + { + int __tmp_1; + __tmp_1 = main__y == 100; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_1; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + __return_1121 = 0; + return __return_1121; + } + } + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_1111; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_1104; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_1097; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_1090; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_1083; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_1076; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_1069; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_1062; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_1055; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_1048; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_1041; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_1034; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_1027; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_1020; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_1013; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_1006; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_999; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_992; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_985; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_978; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_971; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_964; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_957; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_950; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_943; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_936; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_929; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_922; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_915; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_908; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_901; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_894; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_887; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_880; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_873; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_866; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_859; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_852; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_845; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_838; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_831; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_824; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_817; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_810; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_803; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_796; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_789; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_782; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_775; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_768; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_761; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_754; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_747; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_740; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_733; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_726; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_719; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_712; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_705; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_698; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_691; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_684; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_677; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_670; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_663; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_656; + } + } + else + { + return __return_main; + } + } + else + { + main__x = main__x + 1; + main__y = main__y + 1; + goto label_649; + } + } + else + { + return __return_main; + } + } diff --git a/data/benchmarks/sv-benchmarks/loop-lit/gj2007b.c b/data/benchmarks/sv-benchmarks/loop-lit/gj2007b.c new file mode 100644 index 000000000..2e38d2ae9 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-lit/gj2007b.c @@ -0,0 +1,19 @@ +// Source: Sumit Gulwani, Nebosja Jojic: "Program Verification as +// Probabilistic Inference", POPL 2007. + +#include "assert.h" + +int main() { + int x = 0; + int m = 0; + int n = __VERIFIER_nondet_int(); + while(x < n) { + if(__VERIFIER_nondet_int()) { + m = x; + } + x = x + 1; + } + __VERIFIER_assert((m >= 0 || n <= 0)); + __VERIFIER_assert((m < n || n <= 0)); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-lit/gr2006.c b/data/benchmarks/sv-benchmarks/loop-lit/gr2006.c new file mode 100644 index 000000000..86be0c0a4 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-lit/gr2006.c @@ -0,0 +1,20 @@ +// Source: Denis Gopan, Thomas Reps: "Lookahead Widening", CAV 2006. + +#include "assert.h" + +int main() { + int x,y; + x = 0; + y = 0; + while (1) { + if (x < 50) { + y++; + } else { + y--; + } + if (y < 0) break; + x++; + } + __VERIFIER_assert(x == 100); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-lit/gsv2008.c b/data/benchmarks/sv-benchmarks/loop-lit/gsv2008.c new file mode 100644 index 000000000..d3d02a90f --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-lit/gsv2008.c @@ -0,0 +1,16 @@ +// Source: Sumit Gulwani, Saurabh Srivastava, Ramarathnam Venkatesan: "Program +// Analysis as Constraint Solving", PLDI 2008. + +#include "assert.h" +int main() { + int x,y; + x = -50; + y = __VERIFIER_nondet_int(); + if (!(-1000 < y && y < LARGE_INT)) return 0; + while (x < 0) { + x = x + y; + y++; + } + __VERIFIER_assert(y > 0); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-lit/gsv2008.c.i.p+cfa-reducer.c b/data/benchmarks/sv-benchmarks/loop-lit/gsv2008.c.i.p+cfa-reducer.c new file mode 100644 index 000000000..645cd0e7c --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-lit/gsv2008.c.i.p+cfa-reducer.c @@ -0,0 +1,60 @@ +int __return_main; +void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "gsv2008.c.i.p+cfa-reducer.c", 4, "reach_error"); } +void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond); +int __VERIFIER_nondet_int(); +int main(); +int __return_144; + int main() + { + int main__x; + int main__y; + main__x = -50; + main__y = __VERIFIER_nondet_int(); + if (!(-1000 < main__y)) + { + return __return_main; + } + else + { + if (!(main__y < 1000000)) + { + return __return_main; + } + else + { + label_129:; + if (main__x < 0) + { + main__x = main__x + main__y; + int main____CPAchecker_TMP_0 = main__y; + main__y = main__y + 1; + goto label_129; + } + else + { + { + int __tmp_1; + __tmp_1 = main__y > 0; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_1; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + __return_144 = 0; + return __return_144; + } + } + } + } + } + } diff --git a/data/benchmarks/sv-benchmarks/loop-lit/gsv2008.c.i.v+cfa-reducer.c b/data/benchmarks/sv-benchmarks/loop-lit/gsv2008.c.i.v+cfa-reducer.c new file mode 100644 index 000000000..f61ac0d82 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-lit/gsv2008.c.i.v+cfa-reducer.c @@ -0,0 +1,60 @@ +int __return_main; +void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "gsv2008.c.i.v+cfa-reducer.c", 4, "reach_error"); } +void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond); +int __VERIFIER_nondet_int(); +int main(); +int __return_65; + int main() + { + int main__x; + int main__y; + main__x = -50; + main__y = __VERIFIER_nondet_int(); + if (!(-1000 < main__y)) + { + return __return_main; + } + else + { + if (!(main__y < 1000000)) + { + return __return_main; + } + else + { + label_50:; + if (main__x < 0) + { + main__x = main__x + main__y; + int main____CPAchecker_TMP_0 = main__y; + main__y = main__y + 1; + goto label_50; + } + else + { + { + int __tmp_1; + __tmp_1 = main__y > 0; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_1; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + __return_65 = 0; + return __return_65; + } + } + } + } + } + } diff --git a/data/benchmarks/sv-benchmarks/loop-lit/gsv2008.c.i.v+lhb-reducer.c b/data/benchmarks/sv-benchmarks/loop-lit/gsv2008.c.i.v+lhb-reducer.c new file mode 100644 index 000000000..a95c317cc --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-lit/gsv2008.c.i.v+lhb-reducer.c @@ -0,0 +1,74 @@ +int __return_main; +void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "gsv2008.c.i.v+lhb-reducer.c", 4, "reach_error"); } +void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond); +int __VERIFIER_nondet_int(); +int main(); +int __tmp_55_0; +int __return_65; + int main() + { + int main__x; + int main__y; + main__x = -50; + main__y = __VERIFIER_nondet_int(); + if (!(-1000 < main__y)) + { + return __return_main; + } + else + { + if (!(main__y < 1000000)) + { + return __return_main; + } + else + { + if (main__x < 0) + { + main__x = main__x + main__y; + int main____CPAchecker_TMP_0 = main__y; + main__y = main__y + 1; + __tmp_55_0 = main____CPAchecker_TMP_0; + label_55:; + main____CPAchecker_TMP_0 = __tmp_55_0; + if (main__x < 0) + { + main__x = main__x + main__y; + int main____CPAchecker_TMP_0 = main__y; + main__y = main__y + 1; + __tmp_55_0 = main____CPAchecker_TMP_0; + goto label_55; + } + else + { + { + int __tmp_1; + __tmp_1 = main__y > 0; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_1; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + __return_65 = 0; + return __return_65; + } + } + } + } + else + { + return __return_main; + } + } + } + } diff --git a/data/benchmarks/sv-benchmarks/loop-lit/hhk2008.c b/data/benchmarks/sv-benchmarks/loop-lit/hhk2008.c new file mode 100644 index 000000000..471ed1574 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-lit/hhk2008.c @@ -0,0 +1,20 @@ +// Source: Thomas A. Henzinger, Thibaud Hottelier, Laura Kovacs: "Valigator: +// A verification Tool with Bound and Invariant Generation", LPAR 2008 + +#include "assert.h" + +int main() { + int a = __VERIFIER_nondet_int(); + int b = __VERIFIER_nondet_int(); + int res, cnt; + if (!(a <= 1000000)) return 0; + if (!(0 <= b && b <= 1000000)) return 0; + res = a; + cnt = b; + while (cnt > 0) { + cnt = cnt - 1; + res = res + 1; + } + __VERIFIER_assert(res == a + b); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-lit/jm2006.c b/data/benchmarks/sv-benchmarks/loop-lit/jm2006.c new file mode 100644 index 000000000..d84659c96 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-lit/jm2006.c @@ -0,0 +1,23 @@ +// Source: Credited to Anubhav Gupta +// appears in Ranjit Jhala, Ken McMillan: "A Practical and Complete Approach +// to Predicate Refinement", TACAS 2006 + +#include "assert.h" + +int main() { + int i, j; + i = __VERIFIER_nondet_int(); + j = __VERIFIER_nondet_int(); + if (!(i >= 0 && j >= 0)) return 0; + int x = i; + int y = j; + while(x != 0) { + x--; + y--; + } + + if (i == j) { + __VERIFIER_assert(y == 0); + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-lit/jm2006.c.i.v+cfa-reducer.c b/data/benchmarks/sv-benchmarks/loop-lit/jm2006.c.i.v+cfa-reducer.c new file mode 100644 index 000000000..b8550f6c0 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-lit/jm2006.c.i.v+cfa-reducer.c @@ -0,0 +1,70 @@ +int __return_main; +void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "jm2006.c.i.v+cfa-reducer.c", 4, "reach_error"); } +void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond); +int __VERIFIER_nondet_int(); +int main(); +int __return_72; + int main() + { + int main__i; + int main__j; + main__i = __VERIFIER_nondet_int(); + main__j = __VERIFIER_nondet_int(); + if (!(main__i >= 0)) + { + return __return_main; + } + else + { + if (!(main__j >= 0)) + { + return __return_main; + } + else + { + int main__x = main__i; + int main__y = main__j; + label_53:; + if (main__x != 0) + { + int main____CPAchecker_TMP_0 = main__x; + main__x = main__x - 1; + int main____CPAchecker_TMP_1 = main__y; + main__y = main__y - 1; + goto label_53; + } + else + { + if (main__i == main__j) + { + { + int __tmp_1; + __tmp_1 = main__y == 0; + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_1; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + __return_72 = 0; + return __return_72; + } + } + } + else + { + return __return_main; + } + } + } + } + } diff --git a/data/benchmarks/sv-benchmarks/loop-lit/jm2006_variant.c b/data/benchmarks/sv-benchmarks/loop-lit/jm2006_variant.c new file mode 100644 index 000000000..515e8656a --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-lit/jm2006_variant.c @@ -0,0 +1,26 @@ +// Source: Credited to Anubhav Gupta +// appears in Ranjit Jhala, Ken McMillan: "A Practical and Complete Approach +// to Predicate Refinement", TACAS 2006 + +#include "assert.h" + +int main() { + int i, j; + i = __VERIFIER_nondet_int(); + j = __VERIFIER_nondet_int(); + + if (!(i >= 0 && i <= LARGE_INT)) return 0; + if (!(j >= 0)) return 0; + int x = i; + int y = j; + int z = 0; + while(x != 0) { + x --; + y -= 2; + z ++; + } + if (i == j) { + __VERIFIER_assert(y == -z); + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-lit/mcmillan2006.c b/data/benchmarks/sv-benchmarks/loop-lit/mcmillan2006.c new file mode 100644 index 000000000..18242fe26 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-lit/mcmillan2006.c @@ -0,0 +1,16 @@ +// Source: Ken McMillan: "Lazy Abstraction With Interpolants", CAV 2006 +extern void *malloc (unsigned int __size) __attribute__ ((__nothrow__, __leaf__)) __attribute__ ((__malloc__)) ; +extern int __VERIFIER_nondet_int(); + +#include "assert.h" + +extern void *malloc(unsigned int size); + +int main() { + int n = __VERIFIER_nondet_int(); + if (!(0 <= n && n <= 1000)) return 0; + int *x = malloc(n * sizeof(int)); + for (int i = 0; i < n; i++) x[i] = 0; + for (int i = 0; i < n; i++) __VERIFIER_assert(x[i] == 0); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-new/LICENSE.txt b/data/benchmarks/sv-benchmarks/loop-new/LICENSE.txt new file mode 100644 index 000000000..ba81f8282 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-new/LICENSE.txt @@ -0,0 +1 @@ +../../LICENSE.Apache-2.0.txt \ No newline at end of file diff --git a/data/benchmarks/sv-benchmarks/loop-new/Makefile b/data/benchmarks/sv-benchmarks/loop-new/Makefile new file mode 100644 index 000000000..cadd471fe --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-new/Makefile @@ -0,0 +1,11 @@ +# This file is part of the SV-Benchmarks collection of verification tasks: +# https://github.com/sosy-lab/sv-benchmarks +# +# SPDX-FileCopyrightText: 2015-2016 Daniel Liew +# SPDX-FileCopyrightText: 2015-2020 The SV-Benchmarks Community +# +# SPDX-License-Identifier: Apache-2.0 + +LEVEL := ../ + +include $(LEVEL)/Makefile.config diff --git a/data/benchmarks/sv-benchmarks/loop-new/README b/data/benchmarks/sv-benchmarks/loop-new/README new file mode 100644 index 000000000..bb22bbacc --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-new/README @@ -0,0 +1,2 @@ + + loop_new: Examples from Duet +The *-reducer.c programs are transformations of similarly named programs in this folder and were used in reducer-based conditional model checking. diff --git a/data/benchmarks/sv-benchmarks/loop-new/assert.h b/data/benchmarks/sv-benchmarks/loop-new/assert.h new file mode 100644 index 000000000..5b0d6d8f1 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-new/assert.h @@ -0,0 +1,15 @@ +extern void abort(void); +#include +void reach_error() { assert(0); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int __VERIFIER_nondet_int(); +#define LARGE_INT 1000000 diff --git a/data/benchmarks/sv-benchmarks/loop-new/count_by_1.c b/data/benchmarks/sv-benchmarks/loop-new/count_by_1.c new file mode 100644 index 000000000..e63363554 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-new/count_by_1.c @@ -0,0 +1,8 @@ +#include "assert.h" + +int main() { + int i; + for (i = 0; i < LARGE_INT; i++) ; + __VERIFIER_assert(i == LARGE_INT); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-new/count_by_1_variant.c b/data/benchmarks/sv-benchmarks/loop-new/count_by_1_variant.c new file mode 100644 index 000000000..c9d0144b8 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-new/count_by_1_variant.c @@ -0,0 +1,9 @@ +#include "assert.h" + +int main() { + int i; + for (i = 0; i != LARGE_INT; i++) { + __VERIFIER_assert(i <= LARGE_INT); + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-new/count_by_2.c b/data/benchmarks/sv-benchmarks/loop-new/count_by_2.c new file mode 100644 index 000000000..69111ff6b --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-new/count_by_2.c @@ -0,0 +1,8 @@ +#include "assert.h" + +int main() { + int i; + for (i = 0; i < LARGE_INT; i += 2) ; + __VERIFIER_assert(i == LARGE_INT); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-new/count_by_k.c b/data/benchmarks/sv-benchmarks/loop-new/count_by_k.c new file mode 100644 index 000000000..0d91ac40c --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-new/count_by_k.c @@ -0,0 +1,11 @@ +#include "assert.h" + +int main() { + int i; + int k; + k = __VERIFIER_nondet_int(); + if (!(0 <= k && k <= 10)) return 0; + for (i = 0; i < LARGE_INT*k; i += k) ; + __VERIFIER_assert(i == LARGE_INT*k); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-new/count_by_nondet.c b/data/benchmarks/sv-benchmarks/loop-new/count_by_nondet.c new file mode 100644 index 000000000..6f1f46795 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-new/count_by_nondet.c @@ -0,0 +1,13 @@ +#include "assert.h" +int main() { + int i = 0; + int k = 0; + while(i < LARGE_INT) { + int j = __VERIFIER_nondet_int(); + if (!(1 <= j && j < LARGE_INT)) return 0; + i = i + j; + k ++; + } + __VERIFIER_assert(k <= LARGE_INT); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-new/gauss_sum.c b/data/benchmarks/sv-benchmarks/loop-new/gauss_sum.c new file mode 100644 index 000000000..64d29cb4c --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-new/gauss_sum.c @@ -0,0 +1,13 @@ +#include "assert.h" + +int main() { + int n, sum, i; + n = __VERIFIER_nondet_int(); + if (!(1 <= n && n <= 1000)) return 0; + sum = 0; + for(i = 1; i <= n; i++) { + sum = sum + i; + } + __VERIFIER_assert(2*sum == n*(n+1)); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-new/gauss_sum.i.p+cfa-reducer.c b/data/benchmarks/sv-benchmarks/loop-new/gauss_sum.i.p+cfa-reducer.c new file mode 100644 index 000000000..fd1d19ca5 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-new/gauss_sum.i.p+cfa-reducer.c @@ -0,0 +1,61 @@ +int __return_main; +void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "gauss_sum.i.p+cfa-reducer.c", 4, "reach_error"); } +void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond); +int __VERIFIER_nondet_int(); +int main(); +int __return_80; + int main() + { + int main__n; + int main__sum; + int main__i; + main__n = __VERIFIER_nondet_int(); + if (!(1 <= main__n)) + { + return __return_main; + } + else + { + if (!(main__n <= 1000)) + { + return __return_main; + } + else + { + main__sum = 0; + main__i = 1; + label_67:; + if (main__i <= main__n) + { + main__sum = main__sum + main__i; + main__i = main__i + 1; + goto label_67; + } + else + { + { + int __tmp_1; + __tmp_1 = (2 * main__sum) == (main__n * (main__n + 1)); + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_1; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + __return_80 = 0; + return __return_80; + } + } + } + } + } + } diff --git a/data/benchmarks/sv-benchmarks/loop-new/gauss_sum.i.p+lhb-reducer.c b/data/benchmarks/sv-benchmarks/loop-new/gauss_sum.i.p+lhb-reducer.c new file mode 100644 index 000000000..4c91efe00 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-new/gauss_sum.i.p+lhb-reducer.c @@ -0,0 +1,106 @@ +int __return_main; +void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "gauss_sum.i.p+lhb-reducer.c", 4, "reach_error"); } +void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond); +int __VERIFIER_nondet_int(); +int main(); +int __return_96; + int main() + { + int main__n; + int main__sum; + int main__i; + main__n = __VERIFIER_nondet_int(); + if (!(1 <= main__n)) + { + return __return_main; + } + else + { + if (!(main__n <= 1000)) + { + return __return_main; + } + else + { + main__sum = 0; + main__i = 1; + if (main__i <= main__n) + { + main__sum = main__sum + main__i; + main__i = main__i + 1; + if (main__i <= main__n) + { + main__sum = main__sum + main__i; + main__i = main__i + 1; + if (main__i <= main__n) + { + main__sum = main__sum + main__i; + main__i = main__i + 1; + if (main__i <= main__n) + { + main__sum = main__sum + main__i; + main__i = main__i + 1; + if (main__i <= main__n) + { + main__sum = main__sum + main__i; + main__i = main__i + 1; + label_87:; + if (main__i <= main__n) + { + main__sum = main__sum + main__i; + main__i = main__i + 1; + goto label_87; + } + else + { + { + int __tmp_1; + __tmp_1 = (2 * main__sum) == (main__n * (main__n + 1)); + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_1; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + __return_96 = 0; + return __return_96; + } + } + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + else + { + return __return_main; + } + } + } + } diff --git a/data/benchmarks/sv-benchmarks/loop-new/gauss_sum.i.v+cfa-reducer.c b/data/benchmarks/sv-benchmarks/loop-new/gauss_sum.i.v+cfa-reducer.c new file mode 100644 index 000000000..5df366b24 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-new/gauss_sum.i.v+cfa-reducer.c @@ -0,0 +1,61 @@ +int __return_main; +void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "gauss_sum.i.v+cfa-reducer.c", 4, "reach_error"); } +void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond); +int __VERIFIER_nondet_int(); +int main(); +int __return_60; + int main() + { + int main__n; + int main__sum; + int main__i; + main__n = __VERIFIER_nondet_int(); + if (!(1 <= main__n)) + { + return __return_main; + } + else + { + if (!(main__n <= 1000)) + { + return __return_main; + } + else + { + main__sum = 0; + main__i = 1; + label_47:; + if (main__i <= main__n) + { + main__sum = main__sum + main__i; + main__i = main__i + 1; + goto label_47; + } + else + { + { + int __tmp_1; + __tmp_1 = (2 * main__sum) == (main__n * (main__n + 1)); + int __VERIFIER_assert__cond; + __VERIFIER_assert__cond = __tmp_1; + if (__VERIFIER_assert__cond == 0) + { + {reach_error();} + return __return_main; + } + else + { + __return_60 = 0; + return __return_60; + } + } + } + } + } + } diff --git a/data/benchmarks/sv-benchmarks/loop-new/half.c b/data/benchmarks/sv-benchmarks/loop-new/half.c new file mode 100644 index 000000000..43a59719f --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-new/half.c @@ -0,0 +1,14 @@ +#include "assert.h" +int main() { + int i = 0; + int n = 0; + int k = __VERIFIER_nondet_int(); + if (!(k <= LARGE_INT && k >= -LARGE_INT)) return 0; + for(i = 0; i < 2*k; i++) { + if (i % 2 == 0) { + n ++; + } + } + __VERIFIER_assert(k < 0 || n == k); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-new/nested-1.c b/data/benchmarks/sv-benchmarks/loop-new/nested-1.c new file mode 100644 index 000000000..6c1a16d2c --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-new/nested-1.c @@ -0,0 +1,16 @@ +#include "assert.h" +int main() { + int n = __VERIFIER_nondet_int(); + int m = __VERIFIER_nondet_int(); + int k = 0; + int i,j; + if (!(10 <= n && n <= 10000)) return 0; + if (!(10 <= m && m <= 10000)) return 0; + for (i = 0; i < n; i++) { + for (j = 0; j < m; j++) { + k ++; + } + } + __VERIFIER_assert(k >= 100); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-simple/LICENSE.txt b/data/benchmarks/sv-benchmarks/loop-simple/LICENSE.txt new file mode 100644 index 000000000..ba81f8282 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-simple/LICENSE.txt @@ -0,0 +1 @@ +../../LICENSE.Apache-2.0.txt \ No newline at end of file diff --git a/data/benchmarks/sv-benchmarks/loop-simple/Makefile b/data/benchmarks/sv-benchmarks/loop-simple/Makefile new file mode 100644 index 000000000..cadd471fe --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-simple/Makefile @@ -0,0 +1,11 @@ +# This file is part of the SV-Benchmarks collection of verification tasks: +# https://github.com/sosy-lab/sv-benchmarks +# +# SPDX-FileCopyrightText: 2015-2016 Daniel Liew +# SPDX-FileCopyrightText: 2015-2020 The SV-Benchmarks Community +# +# SPDX-License-Identifier: Apache-2.0 + +LEVEL := ../ + +include $(LEVEL)/Makefile.config diff --git a/data/benchmarks/sv-benchmarks/loop-simple/README.txt b/data/benchmarks/sv-benchmarks/loop-simple/README.txt new file mode 100644 index 000000000..9c059f11a --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-simple/README.txt @@ -0,0 +1,3 @@ +Simple loop example programs. + - deep-nested: Intended to show that execution-based witness validators are not always a good solution. Written by Philipp Berger, RWTH Aachen University. + - nested: loops with constant bounds. Taken from CPAchecker. diff --git a/data/benchmarks/sv-benchmarks/loop-simple/deep-nested.c b/data/benchmarks/sv-benchmarks/loop-simple/deep-nested.c new file mode 100644 index 000000000..90656f610 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-simple/deep-nested.c @@ -0,0 +1,25 @@ +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "deep-nested.c", 2, "reach_error"); } + +int main() { + unsigned a, b, c, d, e; + + unsigned uint32_max; + uint32_max = 0xffffffff; + + for (a = 0; a < uint32_max - 1; ++a) { + for (b = 0; b < uint32_max - 1; ++b) { + for (c = 0; c < uint32_max - 1; ++c) { + for (d = 0; d < uint32_max - 1; ++d) { + for (e = 0; e < uint32_max - 1; ++e) { + if ((a == b) && (b == c) && (c == d) && (d == e) && (e == (uint32_max - 2))) { + {reach_error();} + } + } + } + } + } + } + + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-simple/nested_1.c b/data/benchmarks/sv-benchmarks/loop-simple/nested_1.c new file mode 100644 index 000000000..0edbb50f6 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-simple/nested_1.c @@ -0,0 +1,26 @@ +// This file is part of the SV-Benchmarks collection of verification tasks: +// https://github.com/sosy-lab/sv-benchmarks +// +// This file was part of CPAchecker, +// a tool for configurable software verification: +// https://cpachecker.sosy-lab.org +// +// SPDX-FileCopyrightText: 2007-2020 Dirk Beyer +// +// SPDX-License-Identifier: Apache-2.0 + +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "nested_1.c", 13, "reach_error"); } + +int main() { + int a = 6; + + + for(a = 0; a < 6; ++a) { + + } + if(!(a == 6 )) { + reach_error(); + } + return 1; +} diff --git a/data/benchmarks/sv-benchmarks/loop-simple/nested_1b.c b/data/benchmarks/sv-benchmarks/loop-simple/nested_1b.c new file mode 100644 index 000000000..7c2378e70 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-simple/nested_1b.c @@ -0,0 +1,26 @@ +// This file is part of the SV-Benchmarks collection of verification tasks: +// https://github.com/sosy-lab/sv-benchmarks +// +// This file was part of CPAchecker, +// a tool for configurable software verification: +// https://cpachecker.sosy-lab.org +// +// SPDX-FileCopyrightText: 2007-2020 Dirk Beyer +// +// SPDX-License-Identifier: Apache-2.0 + +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "nested_1b.c", 13, "reach_error"); } + +int main() { + int a = 6; + + + for(a = 0; a < 6; ++a) { + + } + if(a == 6 ) { + reach_error(); + } + return 1; +} diff --git a/data/benchmarks/sv-benchmarks/loop-simple/nested_2.c b/data/benchmarks/sv-benchmarks/loop-simple/nested_2.c new file mode 100644 index 000000000..699660666 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-simple/nested_2.c @@ -0,0 +1,29 @@ +// This file is part of the SV-Benchmarks collection of verification tasks: +// https://github.com/sosy-lab/sv-benchmarks +// +// This file was part of CPAchecker, +// a tool for configurable software verification: +// https://cpachecker.sosy-lab.org +// +// SPDX-FileCopyrightText: 2007-2020 Dirk Beyer +// +// SPDX-License-Identifier: Apache-2.0 + +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "nested_2.c", 13, "reach_error"); } + +int main() { + int a = 6; + int b = 6; + + + for(a = 0; a < 6; ++a) { + for(b = 0; b < 6; ++b) { + + } + } + if(!(a == 6 && b == 6 )) { + reach_error(); + } + return 1; +} diff --git a/data/benchmarks/sv-benchmarks/loop-simple/nested_3.c b/data/benchmarks/sv-benchmarks/loop-simple/nested_3.c new file mode 100644 index 000000000..b220cd07c --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-simple/nested_3.c @@ -0,0 +1,32 @@ +// This file is part of the SV-Benchmarks collection of verification tasks: +// https://github.com/sosy-lab/sv-benchmarks +// +// This file was part of CPAchecker, +// a tool for configurable software verification: +// https://cpachecker.sosy-lab.org +// +// SPDX-FileCopyrightText: 2007-2020 Dirk Beyer +// +// SPDX-License-Identifier: Apache-2.0 + +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "nested_3.c", 13, "reach_error"); } + +int main() { + int a = 6; + int b = 6; + int c = 6; + + + for(a = 0; a < 6; ++a) { + for(b = 0; b < 6; ++b) { + for(c = 0; c < 6; ++c) { + + } + } + } + if(!(a == 6 && b == 6 && c == 6 )) { + reach_error(); + } + return 1; +} diff --git a/data/benchmarks/sv-benchmarks/loop-simple/nested_4.c b/data/benchmarks/sv-benchmarks/loop-simple/nested_4.c new file mode 100644 index 000000000..c3a3d769d --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-simple/nested_4.c @@ -0,0 +1,35 @@ +// This file is part of the SV-Benchmarks collection of verification tasks: +// https://github.com/sosy-lab/sv-benchmarks +// +// This file was part of CPAchecker, +// a tool for configurable software verification: +// https://cpachecker.sosy-lab.org +// +// SPDX-FileCopyrightText: 2007-2020 Dirk Beyer +// +// SPDX-License-Identifier: Apache-2.0 + +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "nested_4.c", 13, "reach_error"); } + +int main() { + int a = 6; + int b = 6; + int c = 6; + int d = 6; + + + for(a = 0; a < 6; ++a) { + for(b = 0; b < 6; ++b) { + for(c = 0; c < 6; ++c) { + for(d = 0; d < 6; ++d) { + + } + } + } + } + if(!(a == 6 && b == 6 && c == 6 && d == 6 )) { + reach_error(); + } + return 1; +} diff --git a/data/benchmarks/sv-benchmarks/loop-simple/nested_5.c b/data/benchmarks/sv-benchmarks/loop-simple/nested_5.c new file mode 100644 index 000000000..2454c416d --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-simple/nested_5.c @@ -0,0 +1,38 @@ +// This file is part of the SV-Benchmarks collection of verification tasks: +// https://github.com/sosy-lab/sv-benchmarks +// +// This file was part of CPAchecker, +// a tool for configurable software verification: +// https://cpachecker.sosy-lab.org +// +// SPDX-FileCopyrightText: 2007-2020 Dirk Beyer +// +// SPDX-License-Identifier: Apache-2.0 + +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "nested_5.c", 13, "reach_error"); } + +int main() { + int a = 6; + int b = 6; + int c = 6; + int d = 6; + int e = 6; + + + for(a = 0; a < 6; ++a) { + for(b = 0; b < 6; ++b) { + for(c = 0; c < 6; ++c) { + for(d = 0; d < 6; ++d) { + for(e = 0; e < 6; ++e) { + + } + } + } + } + } + if(!(a == 6 && b == 6 && c == 6 && d == 6 && e == 6)) { + reach_error(); + } + return 1; +} diff --git a/data/benchmarks/sv-benchmarks/loop-simple/nested_6.c b/data/benchmarks/sv-benchmarks/loop-simple/nested_6.c new file mode 100644 index 000000000..4e46773f2 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-simple/nested_6.c @@ -0,0 +1,40 @@ +// This file is part of the SV-Benchmarks collection of verification tasks: +// https://github.com/sosy-lab/sv-benchmarks +// +// This file was part of CPAchecker, +// a tool for configurable software verification: +// https://cpachecker.sosy-lab.org +// +// SPDX-FileCopyrightText: 2007-2020 Dirk Beyer +// +// SPDX-License-Identifier: Apache-2.0 + +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "nested_6.c", 13, "reach_error"); } + +int main() { + int a = 6; + int b = 6; + int c = 6; + int d = 6; + int e = 6; + int f = 6; + + for(a = 0; a < 6; ++a) { + for(b = 0; b < 6; ++b) { + for(c = 0; c < 6; ++c) { + for(d = 0; d < 6; ++d) { + for(e = 0; e < 6; ++e) { + for(f = 0; f < 6; ++f) { + + } + } + } + } + } + } + if(!(a == 6 && b == 6 && c == 6 && d == 6 && e == 6 && f == 6)) { + reach_error(); + } + return 1; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/LICENSE.GPLv2.txt b/data/benchmarks/sv-benchmarks/loop-zilu/LICENSE.GPLv2.txt new file mode 100644 index 000000000..40faf6631 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/LICENSE.GPLv2.txt @@ -0,0 +1 @@ +../../LICENSE.GPLv2.txt \ No newline at end of file diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/Makefile b/data/benchmarks/sv-benchmarks/loop-zilu/Makefile new file mode 100644 index 000000000..49b2905c1 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/Makefile @@ -0,0 +1,3 @@ +LEVEL := ../ + +include $(LEVEL)/Makefile.config diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/README.txt b/data/benchmarks/sv-benchmarks/loop-zilu/README.txt new file mode 100644 index 000000000..0496d42af --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/README.txt @@ -0,0 +1,46 @@ +These tasks were generated by Martin Spiessl +from information in the tool repository of zilu, +a tool for invariant generation throug selective sampling, +which is described in the following publication: + +Li, J., Sun, J., Li, L., Le, Q. L., & Lin, S. W. (2017, October). +Automatic loop-invariant generation anc refinement through selective sampling. +In 2017 32nd IEEE/ACM International Conference on Automated Software Engineering (ASE) (pp. 782-792). IEEE. + +These tasks represent the 53 benchmarks +that are listed in table 1 in this publication. + +The original repository for zilu was at (according to the paper): +https://github.com/lijiaying/zilu + +It seems this repository was deleted or set to private. +The original repository was published unter GPL-2.0, +a copy I made can be found at: +https://github.com/MartinSpiessl/zilu + +So I supply these tasks unter GPL-2.0 as well. + +The paper mentions that the tasks were collected +from various papers/sources, one of them being SV-COMP. +It is not easy to identify which tasks were taken from which source, +and the authors state many of the SV-COMP tasks had to be excluded anyway +because they were too complicated/ out of scope. +Also the tasks are written down in a simplified format +in the zilu repository in special files with the extension "cfg". + +I did the translation into SV-COMP compliant tasks +myself with a small python script. +Due to these 2 transformations, +I do not believe that the tasks contain +any copyrightable material anymore +from the publications they were originally taken from. +Also the tasks are very simple, +so they will probably fall below the +threshold of originality anyway. + +Tasks ending in _abstracted.* contain versions of these tasks +where a loop has been overaproximated using simple abstraction +techniques, as described in: +"A Unifying Approach for Control-Flow-Based Loop Abstraction" (SEFM 2022) +https://doi.org/10.1007/978-3-031-17108-6_1 +Contributed by: Martin Spiessl diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark01_conjunctive.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark01_conjunctive.c new file mode 100644 index 000000000..a38e9fc28 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark01_conjunctive.c @@ -0,0 +1,35 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 01.cfg: +names=x y +beforeloop= +beforeloopinit= +precondition=x==1 && y==1 +loopcondition= +loop=x=x+y; y=x; +postcondition=y>=1 +afterloop= +learners= conj +*/ +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + + if (!(x==1 && y==1)) return 0; + while (__VERIFIER_nondet_bool()) { + x=x+y; + y=x; + } + __VERIFIER_assert(y>=1); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark02_linear.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark02_linear.c new file mode 100644 index 000000000..02388f315 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark02_linear.c @@ -0,0 +1,35 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 02.cfg: +names=l +beforeloop= int n; int i; +beforeloopinit= i = l; +precondition= l>0 +loopcondition= i < n +loop=i++; +postcondition=l>=1 +afterloop= +learners= linear +*/ +int main() { + int n = __VERIFIER_nondet_int(); + int i = __VERIFIER_nondet_int(); + int l = __VERIFIER_nondet_int(); + i = l; + if (!(l>0)) return 0; + while (i < n) { + i++; + } + __VERIFIER_assert(l>=1); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark02_linear_abstracted.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark02_linear_abstracted.c new file mode 100644 index 000000000..66cdb5ad4 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark02_linear_abstracted.c @@ -0,0 +1,39 @@ +#include +void reach_error(void) {assert(0);} +extern void abort(void); + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 02.cfg: +names=l +beforeloop= int n; int i; +beforeloopinit= i = l; +precondition= l>0 +loopcondition= i < n +loop=i++; +postcondition=l>=1 +afterloop= +learners= linear +*/ +int main() { + int n = __VERIFIER_nondet_int(); + int i = __VERIFIER_nondet_int(); + int l = __VERIFIER_nondet_int(); + i = l; + if (!(l>0)) return 0; + // START HAVOCABSTRACTION + if (i < n) { + i = __VERIFIER_nondet_int(); + } + if (i < n) abort(); + // END HAVOCABSTRACTION + __VERIFIER_assert(l>=1); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark03_linear.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark03_linear.c new file mode 100644 index 000000000..7ea5df612 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark03_linear.c @@ -0,0 +1,43 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 03.cfg: +names=i j +beforeloop=int x, y; +beforeloopinit=x = 0; y = 0; +symbolic=flag +precondition=i==0 && j==0 +loopcondition= +loop=x++; y++; i+=x; j+=y; if (flag) j+=1; +postcondition=j>=i +afterloop= +learners= linear +*/ +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + int i = __VERIFIER_nondet_int(); + int j = __VERIFIER_nondet_int(); + + _Bool flag = __VERIFIER_nondet_bool(); + x = 0; y = 0; + if (!(i==0 && j==0)) return 0; + while (__VERIFIER_nondet_bool()) { + x++; + y++; + i+=x; + j+=y; + if (flag) j+=1; + } + __VERIFIER_assert(j>=i); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark04_conjunctive.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark04_conjunctive.c new file mode 100644 index 000000000..413140285 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark04_conjunctive.c @@ -0,0 +1,36 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 04.cfg: +names=k j n +beforeloop= +beforeloopinit= +precondition=n>=1 && k>=n && j==0 +loopcondition=j<=n-1 +loop=j++; k--; +postcondition=k>=0 +afterloop= +learners= conj +*/ +int main() { + int k = __VERIFIER_nondet_int(); + int j = __VERIFIER_nondet_int(); + int n = __VERIFIER_nondet_int(); + + if (!(n>=1 && k>=n && j==0)) return 0; + while (j<=n-1) { + j++; + k--; + } + __VERIFIER_assert(k>=0); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark05_conjunctive.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark05_conjunctive.c new file mode 100644 index 000000000..5b19224b1 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark05_conjunctive.c @@ -0,0 +1,36 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 05.cfg: +names=x y n +beforeloop= +beforeloopinit= +precondition=x>=0 && x<=y && yy) y++; +postcondition=y==n +afterloop= +learners= conj +*/ +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + int n = __VERIFIER_nondet_int(); + + if (!(x>=0 && x<=y && yy) y++; + } + __VERIFIER_assert(y==n); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark06_conjunctive.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark06_conjunctive.c new file mode 100644 index 000000000..d5e328c24 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark06_conjunctive.c @@ -0,0 +1,37 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 06.cfg: +names=x y k +beforeloop=int j; int i; +beforeloopinit=j=0; +precondition=x+y==k +loopcondition= +loop=if(j==i) {x++;y--;} else {y++;x--;} j++; +postcondition=x+y==k +afterloop= +learners= conj +*/ +int main() { + int j = __VERIFIER_nondet_int(); + int i = __VERIFIER_nondet_int(); + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + int k = __VERIFIER_nondet_int(); + j=0; + if (!(x+y==k)) return 0; + while (__VERIFIER_nondet_bool()) { + if(j==i) {x++;y--;} else {y++;x--;} j++; + } + __VERIFIER_assert(x+y==k); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark07_linear.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark07_linear.c new file mode 100644 index 000000000..db594c530 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark07_linear.c @@ -0,0 +1,40 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 07.cfg: +names=n k +beforeloop=int i; +beforeloopinit=i=0; +symbolic=flag +precondition=n>0 && n<10 +loopcondition=in +afterloop= +learners= linear +*/ +int main() { + int i = __VERIFIER_nondet_int(); + int n = __VERIFIER_nondet_int(); + int k = __VERIFIER_nondet_int(); + + _Bool flag = __VERIFIER_nondet_bool(); + i=0; + if (!(n>0 && n<10)) return 0; + while (in); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark08_conjunctive.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark08_conjunctive.c new file mode 100644 index 000000000..b1f99dda4 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark08_conjunctive.c @@ -0,0 +1,36 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 08.cfg: +names=n sum i +beforeloop= +beforeloopinit= +precondition=n>=0 && sum==0 && i==0 +loopcondition=i=0 +afterloop= +learners= conj +*/ +int main() { + int n = __VERIFIER_nondet_int(); + int sum = __VERIFIER_nondet_int(); + int i = __VERIFIER_nondet_int(); + + if (!(n>=0 && sum==0 && i==0)) return 0; + while (i=0); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark09_conjunctive.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark09_conjunctive.c new file mode 100644 index 000000000..2ae9bd3aa --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark09_conjunctive.c @@ -0,0 +1,36 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 09.cfg: +names= x y +beforeloop= +beforeloopinit= +precondition= x == y && y >=0 +loopcondition=x!=0 +loop=x--; y--; if (x<0 || y<0) break; +postcondition=y==0 +afterloop= +learners= conj +*/ +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + + if (!(x == y && y >=0)) return 0; + while (x!=0) { + x--; + y--; + if (x<0 || y<0) break; + } + __VERIFIER_assert(y==0); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark10_conjunctive.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark10_conjunctive.c new file mode 100644 index 000000000..98e65642d --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark10_conjunctive.c @@ -0,0 +1,36 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 10.cfg: +names=i c +beforeloop= +beforeloopinit= +precondition=c==0 && i==0 +loopcondition=i<100 +loop=c=c+i; i=i+1; if (i<=0) break; +postcondition=c>=0 +afterloop= +learners= conj +*/ +int main() { + int i = __VERIFIER_nondet_int(); + int c = __VERIFIER_nondet_int(); + + if (!(c==0 && i==0)) return 0; + while (i<100) { + c=c+i; + i=i+1; + if (i<=0) break; + } + __VERIFIER_assert(c>=0); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark11_linear.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark11_linear.c new file mode 100644 index 000000000..686c29690 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark11_linear.c @@ -0,0 +1,34 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 11.cfg: +names=x n +beforeloop= +beforeloopinit= +precondition=x==0 && n>0 +loopcondition=x0)) return 0; + while (x +void reach_error(void) {assert(0);} +extern void abort(void); + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 11.cfg: +names=x n +beforeloop= +beforeloopinit= +precondition=x==0 && n>0 +loopcondition=x0)) return 0; + // START NAIVELOOPABSTRACTION + if (x < n) { + x = __VERIFIER_nondet_int(); + if (!(x < n)) abort(); + if (x +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 12.cfg: +names= x y t +beforeloop= +beforeloopinit= +precondition=x!=y && y==t +loopcondition= +loop=if(x>0) y=y+x; +postcondition=y>=t +afterloop= +learners= linear +*/ +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + int t = __VERIFIER_nondet_int(); + + if (!(x!=y && y==t)) return 0; + while (__VERIFIER_nondet_bool()) { + if(x>0) y=y+x; + } + __VERIFIER_assert(y>=t); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark13_conjunctive.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark13_conjunctive.c new file mode 100644 index 000000000..6570d2fa7 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark13_conjunctive.c @@ -0,0 +1,36 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 13.cfg: +names=i j k +beforeloop= +beforeloopinit= +precondition=i==0 && j==0 +loopcondition=i <= k +loop=i++; j=j+1; +postcondition=j==i +afterloop= +learners= conj +*/ +int main() { + int i = __VERIFIER_nondet_int(); + int j = __VERIFIER_nondet_int(); + int k = __VERIFIER_nondet_int(); + + if (!(i==0 && j==0)) return 0; + while (i <= k) { + i++; + j=j+1; + } + __VERIFIER_assert(j==i); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark14_linear.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark14_linear.c new file mode 100644 index 000000000..4c96e64bb --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark14_linear.c @@ -0,0 +1,33 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 14.cfg: +names=i +beforeloop= +beforeloopinit= +precondition=i>=0 && i<=200 +loopcondition=i>0 +loop=i--; +postcondition=i>=0 +afterloop= +learners= linear +*/ +int main() { + int i = __VERIFIER_nondet_int(); + + if (!(i>=0 && i<=200)) return 0; + while (i>0) { + i--; + } + __VERIFIER_assert(i>=0); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark15_conjunctive.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark15_conjunctive.c new file mode 100644 index 000000000..73094bc45 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark15_conjunctive.c @@ -0,0 +1,33 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 15.cfg: +names=low mid high +precondition=low == 0 && mid >= 1 && high == 2*mid +loopcondition=mid > 0 +loop=low = low + 1; high = high - 1; mid = mid - 1; +postcondition=low == high +learners= conj +*/ +int main() { + int low = __VERIFIER_nondet_int(); + int mid = __VERIFIER_nondet_int(); + int high = __VERIFIER_nondet_int(); + if (!(low == 0 && mid >= 1 && high == 2*mid)) return 0; + while (mid > 0) { + low = low + 1; + high = high - 1; + mid = mid - 1; + } + __VERIFIER_assert(low == high); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark16_conjunctive.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark16_conjunctive.c new file mode 100644 index 000000000..f6c46587b --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark16_conjunctive.c @@ -0,0 +1,31 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 16.cfg: +names=i k +precondition=0 <= k && k <= 1 && i == 1 +loopcondition= +loop=i = i + 1; k = k - 1; +postcondition=1 <= i + k && i + k <= 2 && i >= 1 +learners=conj +*/ +int main() { + int i = __VERIFIER_nondet_int(); + int k = __VERIFIER_nondet_int(); + if (!(0 <= k && k <= 1 && i == 1)) return 0; + while (__VERIFIER_nondet_bool()) { + i = i + 1; + k = k - 1; + } + __VERIFIER_assert(1 <= i + k && i + k <= 2 && i >= 1); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark17_conjunctive.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark17_conjunctive.c new file mode 100644 index 000000000..1afd363c6 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark17_conjunctive.c @@ -0,0 +1,36 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 17.cfg: +names=i k n +beforeloop= +beforeloopinit= +precondition=i==0 && k==0 +loopcondition=i=n +afterloop= +learners= conj +*/ +int main() { + int i = __VERIFIER_nondet_int(); + int k = __VERIFIER_nondet_int(); + int n = __VERIFIER_nondet_int(); + + if (!(i==0 && k==0)) return 0; + while (i=n); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark18_conjunctive.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark18_conjunctive.c new file mode 100644 index 000000000..2f74d1e16 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark18_conjunctive.c @@ -0,0 +1,31 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 18.cfg: +names=i k n +precondition= (i==0) && (k==0) && (n>0) +loopcondition=i < n +loop=i++;k++; +postcondition= (i == k) && (k == n) +learners= conj +*/ +int main() { + int i = __VERIFIER_nondet_int(); + int k = __VERIFIER_nondet_int(); + int n = __VERIFIER_nondet_int(); + if (!((i==0) && (k==0) && (n>0))) return 0; + while (i < n) { + i++;k++; + } + __VERIFIER_assert((i == k) && (k == n)); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark19_conjunctive.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark19_conjunctive.c new file mode 100644 index 000000000..8a3694ce1 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark19_conjunctive.c @@ -0,0 +1,31 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 19.cfg: +names=j k n +precondition= (j==n) && (k==n) && (n>0) +loopcondition=j>0 && n>0 +loop=j--;k--; +postcondition= (k == 0) +learners= conj +*/ +int main() { + int j = __VERIFIER_nondet_int(); + int k = __VERIFIER_nondet_int(); + int n = __VERIFIER_nondet_int(); + if (!((j==n) && (k==n) && (n>0))) return 0; + while (j>0 && n>0) { + j--;k--; + } + __VERIFIER_assert((k == 0)); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark20_conjunctive.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark20_conjunctive.c new file mode 100644 index 000000000..22d2924fd --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark20_conjunctive.c @@ -0,0 +1,36 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 20.cfg: +names=i n sum +beforeloop= +beforeloopinit= +precondition=i==0 && n>=0 && n<=100 && sum==0 +loopcondition=i=0 +afterloop= +learners= conj +*/ +int main() { + int i = __VERIFIER_nondet_int(); + int n = __VERIFIER_nondet_int(); + int sum = __VERIFIER_nondet_int(); + + if (!(i==0 && n>=0 && n<=100 && sum==0)) return 0; + while (i=0); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark21_disjunctive.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark21_disjunctive.c new file mode 100644 index 000000000..3dae680e9 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark21_disjunctive.c @@ -0,0 +1,43 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 21.cfg: +names= x y +precondition= y>0 || x>0 +loopcondition=1 +realloopcondition=x+y<=2 +branchcondition=x+y>-2 +branch=break; +branchcondition=x>0 +branch=x++; +branchcondition= +branch=y++; +postcondition=x>0 || y>0 +learners=conj disjunctive +*/ +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + if (!(y>0 || x>0)) return 0; + while (1) { + if (x+y>-2) { + break; + } + if (x>0) { + x++; + } else { + y++; + } + } + __VERIFIER_assert(x>0 || y>0); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark22_conjunctive.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark22_conjunctive.c new file mode 100644 index 000000000..a2f06b8c0 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark22_conjunctive.c @@ -0,0 +1,31 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 22.cfg: +names= x y +precondition=x==1 && y==0 +loopcondition= +loop=x=x+y; y++; +postcondition=x >= y +learners=conj +*/ +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + if (!(x==1 && y==0)) return 0; + while (__VERIFIER_nondet_bool()) { + x=x+y; + y++; + } + __VERIFIER_assert(x >= y); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark23_conjunctive.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark23_conjunctive.c new file mode 100644 index 000000000..43147faf4 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark23_conjunctive.c @@ -0,0 +1,35 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 23.cfg: +names=i j +beforeloop= +beforeloopinit= +precondition=i==0 && j==0 +loopcondition=i<100 +loop=j+=2; i++; +postcondition=j==200 +afterloop= +learners= conj +*/ +int main() { + int i = __VERIFIER_nondet_int(); + int j = __VERIFIER_nondet_int(); + + if (!(i==0 && j==0)) return 0; + while (i<100) { + j+=2; + i++; + } + __VERIFIER_assert(j==200); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark24_conjunctive.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark24_conjunctive.c new file mode 100644 index 000000000..89255e455 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark24_conjunctive.c @@ -0,0 +1,36 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 24.cfg: +names=i k n +beforeloop= +beforeloopinit= +precondition=i==0 && k==n && n>=0 +loopcondition=i=n-1 +afterloop= +learners= conj +*/ +int main() { + int i = __VERIFIER_nondet_int(); + int k = __VERIFIER_nondet_int(); + int n = __VERIFIER_nondet_int(); + + if (!(i==0 && k==n && n>=0)) return 0; + while (i=n-1); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark25_linear.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark25_linear.c new file mode 100644 index 000000000..32037e530 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark25_linear.c @@ -0,0 +1,29 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 25.cfg: +names=x +precondition=x<0 +loopcondition=x<10 +loop= x=x+1; +postcondition=x==10 +learners=linear +*/ +int main() { + int x = __VERIFIER_nondet_int(); + if (!(x<0)) return 0; + while (x<10) { + x=x+1; + } + __VERIFIER_assert(x==10); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark25_linear_abstracted.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark25_linear_abstracted.c new file mode 100644 index 000000000..0dc9e9cc0 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark25_linear_abstracted.c @@ -0,0 +1,37 @@ +#include +void reach_error(void) {assert(0);} +extern void abort(void); + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 25.cfg: +names=x +precondition=x<0 +loopcondition=x<10 +loop= x=x+1; +postcondition=x==10 +learners=linear +*/ +int main() { + int x = __VERIFIER_nondet_int(); + if (!(x<0)) return 0; + // START NAIVELOOPABSTRACTION + if (x < (10)) { + x = __VERIFIER_nondet_int(); + if (!(x < (10))) abort(); + if (x<10) { + x=x+1; + } + if (x < (10)) abort(); + } + // END NAIVELOOPABSTRACTION + __VERIFIER_assert(x==10); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark26_linear.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark26_linear.c new file mode 100644 index 000000000..a6647db12 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark26_linear.c @@ -0,0 +1,30 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 26.cfg: +names=x y +precondition=x +void reach_error(void) {assert(0);} +extern void abort(void); + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 26.cfg: +names=x y +precondition=x +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 27.cfg: +names=i j k +precondition=ii-j +loopcondition=i 0 +learners=linear +*/ +int main() { + int i = __VERIFIER_nondet_int(); + int j = __VERIFIER_nondet_int(); + int k = __VERIFIER_nondet_int(); + if (!(ii-j)) return 0; + while (i 0); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark28_linear.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark28_linear.c new file mode 100644 index 000000000..ccc815c1b --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark28_linear.c @@ -0,0 +1,34 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 28.cfg: +names= i j +precondition= i * i < j * j +beforeloop= if (i < 0) i = -i; if (j < 0) j = -j; if (i == 0) i = 1; if (j == 0) j = 1; +loopcondition= i < j +loop= j = j - i; if (j < i) {j = j + i; i = j - i; j = j - i;} +postcondition=j == i +learners=linear +*/ +int main() { + int i = __VERIFIER_nondet_int(); + int j = __VERIFIER_nondet_int(); + if (!(i * i < j * j)) return 0; + while (i < j) { + j = j - i; + if (j < i) {j = j + i; + i = j - i; + j = j - i;} + } + __VERIFIER_assert(j == i); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark29_linear.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark29_linear.c new file mode 100644 index 000000000..0604b356e --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark29_linear.c @@ -0,0 +1,30 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 29.cfg: +names= x y +precondition= x= y && x <= y + 99 +learners=linear +*/ +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + if (!(x= y && x <= y + 99); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark30_conjunctive.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark30_conjunctive.c new file mode 100644 index 000000000..e64a4cc81 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark30_conjunctive.c @@ -0,0 +1,31 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 30.cfg: +names=x y +precondition= y == x +loopcondition= +loop= x++; y++; +postcondition=x == y +learners= conj +*/ +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + if (!(y == x)) return 0; + while (__VERIFIER_nondet_bool()) { + x++; + y++; + } + __VERIFIER_assert(x == y); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark31_disjunctive.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark31_disjunctive.c new file mode 100644 index 000000000..b5f3d1e48 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark31_disjunctive.c @@ -0,0 +1,39 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 31.cfg: +names=x y +precondition=x < 0 +loopcondition=1 +realloopcondition=x<0 +loop= +branchcondition=x>=0 +branch=break; +branchcondition= +branch=x=x+y; y++; +postcondition=y>=0 +learners=linear disjunctive +*/ +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + if (!(x < 0)) return 0; + while (1) { + if (x>=0) { + break; + } else { + x=x+y; y++; + } + } + __VERIFIER_assert(y>=0); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark32_linear.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark32_linear.c new file mode 100644 index 000000000..f59d75dfd --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark32_linear.c @@ -0,0 +1,34 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 32.cfg: +names= x +beforeloop= +beforeloopinit= +precondition=x==1 || x==2 +loopcondition= +loop=if(x==1) x=2; else if (x==2) x=1; +postcondition=x<=8 +afterloop= +learners= linear +*/ +int main() { + int x = __VERIFIER_nondet_int(); + + if (!(x==1 || x==2)) return 0; + while (__VERIFIER_nondet_bool()) { + if(x==1) x=2; + else if (x==2) x=1; + } + __VERIFIER_assert(x<=8); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark33_linear.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark33_linear.c new file mode 100644 index 000000000..1df793339 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark33_linear.c @@ -0,0 +1,33 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 33.cfg: +names=x +beforeloop= +beforeloopinit= +precondition=x>=0 +loopcondition=x<100 && x>=0 +loop=x++; +postcondition=x>=100 +afterloop= +learners= linear +*/ +int main() { + int x = __VERIFIER_nondet_int(); + + if (!(x>=0)) return 0; + while (x<100 && x>=0) { + x++; + } + __VERIFIER_assert(x>=100); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark34_conjunctive.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark34_conjunctive.c new file mode 100644 index 000000000..7f6aa8138 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark34_conjunctive.c @@ -0,0 +1,31 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 34.cfg: +names=j k n +precondition= (j==0) && (k==n) && (n>0) +loopcondition=j0 +loop=j++;k--; +postcondition= (k == 0) +learners= conj +*/ +int main() { + int j = __VERIFIER_nondet_int(); + int k = __VERIFIER_nondet_int(); + int n = __VERIFIER_nondet_int(); + if (!((j==0) && (k==n) && (n>0))) return 0; + while (j0) { + j++;k--; + } + __VERIFIER_assert((k == 0)); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark35_linear.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark35_linear.c new file mode 100644 index 000000000..2ce3957c0 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark35_linear.c @@ -0,0 +1,29 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 35.cfg: +names=x +precondition=x>=0 +loopcondition=(x>=0) && (x<10) +loop= x=x+1; +postcondition=x>=10 +learners= linear +*/ +int main() { + int x = __VERIFIER_nondet_int(); + if (!(x>=0)) return 0; + while ((x>=0) && (x<10)) { + x=x+1; + } + __VERIFIER_assert(x>=10); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark36_conjunctive.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark36_conjunctive.c new file mode 100644 index 000000000..dfbe93216 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark36_conjunctive.c @@ -0,0 +1,31 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 36.cfg: +names=x y +beforeloop= +precondition=x == y && y == 0 +loopcondition= +loop=x++;y++; +postcondition=x == y && x >= 0 +learners= conj +*/ +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + if (!(x == y && y == 0)) return 0; + while (__VERIFIER_nondet_bool()) { + x++;y++; + } + __VERIFIER_assert(x == y && x >= 0); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark37_conjunctive.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark37_conjunctive.c new file mode 100644 index 000000000..c2eab4125 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark37_conjunctive.c @@ -0,0 +1,31 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 37.cfg: +names=x y +precondition=x == y && x >= 0 +loopcondition=x > 0 +loop=x--; y--; +postcondition=y>=0 +learners=conj +*/ +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + if (!(x == y && x >= 0)) return 0; + while (x > 0) { + x--; + y--; + } + __VERIFIER_assert(y>=0); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark38_conjunctive.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark38_conjunctive.c new file mode 100644 index 000000000..87ea71466 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark38_conjunctive.c @@ -0,0 +1,31 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 38.cfg: +names=x y +beforeloop= +precondition=x == y && y == 0 +loopcondition= +loop=x+=4;y++; +postcondition=x == 4*y && x >= 0 +learners= conj +*/ +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + if (!(x == y && y == 0)) return 0; + while (__VERIFIER_nondet_bool()) { + x+=4;y++; + } + __VERIFIER_assert(x == 4*y && x >= 0); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark39_conjunctive.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark39_conjunctive.c new file mode 100644 index 000000000..822b59a32 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark39_conjunctive.c @@ -0,0 +1,31 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 39.cfg: +names=x y +precondition=x == 4*y && x >= 0 +loopcondition=x > 0 +loop=x-=4; y--; +postcondition=y>=0 +learners=conj +*/ +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + if (!(x == 4*y && x >= 0)) return 0; + while (x > 0) { + x-=4; + y--; + } + __VERIFIER_assert(y>=0); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark40_polynomial.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark40_polynomial.c new file mode 100644 index 000000000..df749c9e0 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark40_polynomial.c @@ -0,0 +1,36 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 40.cfg: +names=x y +beforeloop= +beforeloopinit= +precondition=x*y>=0 +loopcondition= +loop=if(x==0) {if (y>0) x++; else x--;} if(x>0) y++; else x--; +postcondition=x*y>=0 +afterloop= +learners= poly +*/ +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + + if (!(x*y>=0)) return 0; + while (__VERIFIER_nondet_bool()) { + if(x==0) {if (y>0) x++; + else x--;} if(x>0) y++; + else x--; + } + __VERIFIER_assert(x*y>=0); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark41_conjunctive.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark41_conjunctive.c new file mode 100644 index 000000000..a1fe03e3f --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark41_conjunctive.c @@ -0,0 +1,32 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 41.cfg: +names=x y z +beforeloop= +precondition=x == y && y == 0 && z==0 +loopcondition= +loop=x++;y++;z-=2; +postcondition=x == y && x >= 0 && x+y+z==0 +learners= conj +*/ +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + int z = __VERIFIER_nondet_int(); + if (!(x == y && y == 0 && z==0)) return 0; + while (__VERIFIER_nondet_bool()) { + x++;y++;z-=2; + } + __VERIFIER_assert(x == y && x >= 0 && x+y+z==0); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark42_conjunctive.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark42_conjunctive.c new file mode 100644 index 000000000..df02bee18 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark42_conjunctive.c @@ -0,0 +1,34 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 42.cfg: +names=x y z +precondition=x == y && x >= 0 && x+y+z==0 +loopcondition=x > 0 +loop=x--; y--; z++; z++; +postcondition=z<=0 +learners=conj +*/ +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + int z = __VERIFIER_nondet_int(); + if (!(x == y && x >= 0 && x+y+z==0)) return 0; + while (x > 0) { + x--; + y--; + z++; + z++; + } + __VERIFIER_assert(z<=0); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark43_conjunctive.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark43_conjunctive.c new file mode 100644 index 000000000..b3aac67fe --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark43_conjunctive.c @@ -0,0 +1,31 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 43.cfg: +names= x y +precondition= x < 100 && y < 100 +loopcondition= x < 100 && y < 100 +loop= x=x+1; y=y+1; +postcondition= x == 100 || y == 100 +learners= conj +*/ +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + if (!(x < 100 && y < 100)) return 0; + while (x < 100 && y < 100) { + x=x+1; + y=y+1; + } + __VERIFIER_assert(x == 100 || y == 100); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark43_conjunctive_abstracted.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark43_conjunctive_abstracted.c new file mode 100644 index 000000000..368f25549 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark43_conjunctive_abstracted.c @@ -0,0 +1,40 @@ +#include +void reach_error(void) {assert(0);} +extern void abort(void); + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 43.cfg: +names= x y +precondition= x < 100 && y < 100 +loopcondition= x < 100 && y < 100 +loop= x=x+1; y=y+1; +postcondition= x == 100 || y == 100 +learners= conj +*/ +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + if (!(x < 100 && y < 100)) return 0; + // START NAIVELOOPABSTRACTION + if ((y < (100)) & (x < (100))) { + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + if (!((y < (100)) & (x < (100)))) abort(); + if (x < 100 && y < 100) { + x=x+1; + y=y+1; + } + if ((y < (100)) & (x < (100))) abort(); + } + // END NAIVELOOPABSTRACTION + __VERIFIER_assert(x == 100 || y == 100); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark44_disjunctive.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark44_disjunctive.c new file mode 100644 index 000000000..40d37d939 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark44_disjunctive.c @@ -0,0 +1,43 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 44.cfg: +names= x y +precondition= x=0) +branch=x=x+7; y=y+3; +branchcondition= +branch=x=x+10; y=y+3; +postcondition= x >= y && x <= y + 16 +learners=linear disjunctive +*/ +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + if (!(x=0)) { + x=x+7; y=y+3; + } else { + x=x+10; y=y+3; + } + } + __VERIFIER_assert(x >= y && x <= y + 16); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark45_disjunctive.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark45_disjunctive.c new file mode 100644 index 000000000..05b74572d --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark45_disjunctive.c @@ -0,0 +1,37 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 45.cfg: +names= x y +precondition= y>0 || x>0 +loopcondition= +branchcondition=x>0 +branch=x++; +branchcondition= +branch=y++; +postcondition=x>0 || y>0 +learners=linear disjunctive +*/ +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + if (!(y>0 || x>0)) return 0; + while (__VERIFIER_nondet_bool()) { + if (x>0) { + x++; + } else { + y++; + } + } + __VERIFIER_assert(x>0 || y>0); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark46_disjunctive.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark46_disjunctive.c new file mode 100644 index 000000000..613178990 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark46_disjunctive.c @@ -0,0 +1,44 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 46.cfg: +names= x y z +precondition= y>0 || x>0 || z>0 +loopcondition= +#loop=if (x>0) x++; else x--; x=-1 * x; +branchcondition=x>0 +branch=x++; +branchcondition=y>0 +branch=y++; +branchcondition= +branch=z++; +postcondition=x>0 || y>0 || z>0 +learners=linear disjunctive +*/ +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + int z = __VERIFIER_nondet_int(); + if (!(y>0 || x>0 || z>0)) return 0; + while (__VERIFIER_nondet_bool()) { + if (x>0) { + x++; + } + if (y>0) { + y++; + } else { + z++; + } + } + __VERIFIER_assert(x>0 || y>0 || z>0); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark47_linear.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark47_linear.c new file mode 100644 index 000000000..567996a98 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark47_linear.c @@ -0,0 +1,33 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 47.cfg: +names= x y +precondition= x= y && x <= y + 16 +learners=linear +*/ +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + if (!(x= y && x <= y + 16); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark48_linear.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark48_linear.c new file mode 100644 index 000000000..bead0ff7e --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark48_linear.c @@ -0,0 +1,31 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 48.cfg: +names=i j k +precondition=i 0 +loopcondition=i j - i +learners= linear +*/ +int main() { + int i = __VERIFIER_nondet_int(); + int j = __VERIFIER_nondet_int(); + int k = __VERIFIER_nondet_int(); + if (!(i 0)) return 0; + while (i j - i); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark49_linear.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark49_linear.c new file mode 100644 index 000000000..f896a4f4e --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark49_linear.c @@ -0,0 +1,32 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 49.cfg: +names=i j r +precondition=r > i + j +loopcondition=i > 0 +loop= i = i - 1; j = j + 1; +postcondition=r > i + j +learners=linear +*/ +int main() { + int i = __VERIFIER_nondet_int(); + int j = __VERIFIER_nondet_int(); + int r = __VERIFIER_nondet_int(); + if (!(r > i + j)) return 0; + while (i > 0) { + i = i - 1; + j = j + 1; + } + __VERIFIER_assert(r > i + j); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark50_linear.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark50_linear.c new file mode 100644 index 000000000..8d2c7a770 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark50_linear.c @@ -0,0 +1,31 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 50.cfg: +names= xa ya +precondition=xa + ya > 0 +loopcondition=xa > 0 +loop=xa--; ya++; +postcondition=ya >= 0 +learners=linear +*/ +int main() { + int xa = __VERIFIER_nondet_int(); + int ya = __VERIFIER_nondet_int(); + if (!(xa + ya > 0)) return 0; + while (xa > 0) { + xa--; + ya++; + } + __VERIFIER_assert(ya >= 0); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark51_polynomial.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark51_polynomial.c new file mode 100644 index 000000000..1da862323 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark51_polynomial.c @@ -0,0 +1,34 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 51.cfg: +names= x +precondition=(x>=0) && (x<=50) +beforeloop= +beforeloopinit= +loopcondition= +loop= if (x>50) x++; if (x == 0) { x ++; } else x--; +postcondition=(x>=0) && (x<=50) +learners=poly +*/ +int main() { + int x = __VERIFIER_nondet_int(); + + if (!((x>=0) && (x<=50))) return 0; + while (__VERIFIER_nondet_bool()) { + if (x>50) x++; + if (x == 0) { x ++; + } else x--; + } + __VERIFIER_assert((x>=0) && (x<=50)); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark52_polynomial.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark52_polynomial.c new file mode 100644 index 000000000..e6daa29ec --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark52_polynomial.c @@ -0,0 +1,29 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 52.cfg: +names= i +precondition= i < 10 && i > -10 +loopcondition= i * i < 100 +loop= i = i + 1; +postcondition= i == 10 +learners=polynomial +*/ +int main() { + int i = __VERIFIER_nondet_int(); + if (!(i < 10 && i > -10)) return 0; + while (i * i < 100) { + i = i + 1; + } + __VERIFIER_assert(i == 10); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loop-zilu/benchmark53_polynomial.c b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark53_polynomial.c new file mode 100644 index 000000000..146790742 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loop-zilu/benchmark53_polynomial.c @@ -0,0 +1,36 @@ +#include +void reach_error(void) {assert(0);} + +extern int __VERIFIER_nondet_int(void); +extern _Bool __VERIFIER_nondet_bool(void); + +void __VERIFIER_assert(int cond) { + if (!cond) { + reach_error(); + } +} + +/* 53.cfg: +names=x y +beforeloop= +beforeloopinit= +precondition=x*y>=0 +loopcondition= +loop=if(x==0) {if (y>0) x++; else x--;} if(x>0) y++; else x--; +postcondition=x*y>=0 +afterloop= +learners= poly +*/ +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + + if (!(x*y>=0)) return 0; + while (__VERIFIER_nondet_bool()) { + if(x==0) {if (y>0) x++; + else x--;} if(x>0) y++; + else x--; + } + __VERIFIER_assert(x*y>=0); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/License.txt b/data/benchmarks/sv-benchmarks/loops-crafted-1/License.txt new file mode 100644 index 000000000..ba81f8282 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/License.txt @@ -0,0 +1 @@ +../../LICENSE.Apache-2.0.txt \ No newline at end of file diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/Makefile b/data/benchmarks/sv-benchmarks/loops-crafted-1/Makefile new file mode 100644 index 000000000..cadd471fe --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/Makefile @@ -0,0 +1,11 @@ +# This file is part of the SV-Benchmarks collection of verification tasks: +# https://github.com/sosy-lab/sv-benchmarks +# +# SPDX-FileCopyrightText: 2015-2016 Daniel Liew +# SPDX-FileCopyrightText: 2015-2020 The SV-Benchmarks Community +# +# SPDX-License-Identifier: Apache-2.0 + +LEVEL := ../ + +include $(LEVEL)/Makefile.config diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/Mono1_1-1.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/Mono1_1-1.c new file mode 100644 index 000000000..b09a134d8 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/Mono1_1-1.c @@ -0,0 +1,17 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "Mono1_1-1.c", 3, "reach_error"); } +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: {reach_error();abort();} } } +int main(void) { + unsigned int x = 0; + + while (x < 100000000) { + if (x < 10000000) { + x++; + } else { + x += 2; + } + } + + __VERIFIER_assert(x == 100000001) ; +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/Mono1_1-2.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/Mono1_1-2.c new file mode 100644 index 000000000..a79084606 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/Mono1_1-2.c @@ -0,0 +1,17 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "Mono1_1-2.c", 3, "reach_error"); } +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: {reach_error();abort();} } } +int main(void) { + unsigned int x = 0; + + while (x < 100000000) { + if (x < 10000000) { + x++; + } else { + x += 2; + } + } + + __VERIFIER_assert(x == 100000000) ; +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/Mono3_1.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/Mono3_1.c new file mode 100644 index 000000000..1434bfad1 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/Mono3_1.c @@ -0,0 +1,18 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "Mono3_1.c", 3, "reach_error"); } +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: {reach_error();abort();} } } + +int main(void) { + unsigned int x = 0; + unsigned int y = 0; + while (x < 1000000) { + if (x<500000) { + y++; + } else { + y--; + } + x++; + } + __VERIFIER_assert(y!=0) ; +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/Mono4_1.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/Mono4_1.c new file mode 100644 index 000000000..4c7f94df0 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/Mono4_1.c @@ -0,0 +1,19 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "Mono4_1.c", 3, "reach_error"); } +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: {reach_error();abort();} } } + +int main() { + int x = 0; + int y = 500000; + while(x < 1000000) { + if (x < 500000) { + x = x + 1; + } else { + x = x + 1; + y = y + 1; + } + } + __VERIFIER_assert(y!=x); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/Mono5_1.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/Mono5_1.c new file mode 100644 index 000000000..68b1661bb --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/Mono5_1.c @@ -0,0 +1,16 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "Mono5_1.c", 3, "reach_error"); } +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: {reach_error();abort();} } } +int main(void) { +unsigned int x = 0; +unsigned int y = 10000000; +unsigned int z=5000000; + while(x=5000000) + z--; + x++; + } + __VERIFIER_assert(z!=0); +} + diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/Mono6_1.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/Mono6_1.c new file mode 100644 index 000000000..591a2de0e --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/Mono6_1.c @@ -0,0 +1,17 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "Mono6_1.c", 3, "reach_error"); } +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: {reach_error();abort();} } } + +int main(void) { +unsigned int x = 0; +unsigned int y = 10000000; +unsigned int z=5000000; + while(x=5000000) + z++; + x++; + } + __VERIFIER_assert(z!=x); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/README.txt b/data/benchmarks/sv-benchmarks/loops-crafted-1/README.txt new file mode 100644 index 000000000..cdf2214c4 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/README.txt @@ -0,0 +1,8 @@ +Benchmarks submitted by VeriAbs team, TCS Innovation labs, Pune. + +Tasks ending in _abstracted.* contain versions of these tasks +where a loop has been overaproximated using simple abstraction +techniques, as described in: +"A Unifying Approach for Control-Flow-Based Loop Abstraction" (SEFM 2022) +https://doi.org/10.1007/978-3-031-17108-6_1 +Contributed by: Martin Spiessl diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/discover_list.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/discover_list.c new file mode 100644 index 000000000..f33d18531 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/discover_list.c @@ -0,0 +1,498 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "discover_list.c", 3, "reach_error"); } +void *malloc(unsigned int size); +extern int __VERIFIER_nondet_int(void); +struct _IO_FILE; +struct _IO_marker; +struct option; +struct smp_target_obj; +struct smp_req_resp; +struct opts_t; +struct smp_req_resp{ +int request_len; +unsigned char * request; +int max_response_len; +unsigned char * response; +int act_response_len; +int transport_err; +} ; +struct smp_target_obj{ +char device_name [256]; +int subvalue; +unsigned char sas_addr [8]; +int interface_selector; +int opened; +int fd; +} ; +struct option{ +char const* name; +int has_arg; +int * flag; +int val; +} ; +struct _IO_marker{ +struct _IO_marker* _next; +struct _IO_FILE* _sbuf; +int _pos; +} ; +typedef long long __quad_t; +typedef __quad_t __off64_t; +typedef void _IO_lock_t; +typedef long __off_t; +typedef struct _IO_FILE FILE; +struct opts_t{ +int do_adn; +int do_brief; +int desc_type; +int desc_type_given; +int filter; +int do_hex; +int ign_zp; +int do_num; +int num_given; +int do_1line; +int phy_id; +int phy_id_given; +int do_raw; +int do_summary; +int verbose; +int sa_given; +unsigned long long sa; +char const* zpi_fn; +FILE* zpi_filep; +} ; +typedef unsigned int size_t; +struct _IO_FILE{ +int _flags; +char * _IO_read_ptr; +char * _IO_read_end; +char * _IO_read_base; +char * _IO_write_base; +char * _IO_write_ptr; +char * _IO_write_end; +char * _IO_buf_base; +char * _IO_buf_end; +char * _IO_save_base; +char * _IO_backup_base; +char * _IO_save_end; +struct _IO_marker* _markers; +struct _IO_FILE* _chain; +int _fileno; +int _flags2; +__off_t _old_offset; +unsigned short _cur_column; +signed char _vtable_offset; +char _shortbuf [1]; +_IO_lock_t* _lock; +__off64_t _offset; +void * __pad1; +void * __pad2; +void * __pad3; +void * __pad4; +size_t __pad5; +int _mode; +char _unused2 [40]; +} ; +extern FILE* fopen(char const* __restrict __filename, char const* __restrict __modes); +extern int sscanf(char const* __restrict __s, char const* __restrict __format, ...); +extern char * getenv(char const* __name); +extern void * memset(void * __s, int __c, size_t __n); +extern int strcmp(char const* __s1, char const* __s2); +extern char * strchr(char const* __s, int __c); +extern size_t strlen(char const* __s); +extern int getopt_long(int ___argc, char * const* ___argv, char const* __shortopts, struct option const* __longopts, int * __longind); +extern int smp_initiator_open(char const* device_name, int subvalue, char const* i_params, unsigned long long sa, struct smp_target_obj* tobj, int verbose); +extern int smp_send_req(struct smp_target_obj const* tobj, struct smp_req_resp* rresp, int verbose); +extern int smp_get_func_def_resp_len(int func_code); +extern int smp_is_naa5(unsigned long long addr); +extern void dStrHex(char const* str, int len, int no_ascii); +extern int smp_get_num(char const* buf); +extern long long smp_get_llnum(char const* buf); +static int do_discover_list(struct smp_target_obj* top, int sphy_id, unsigned char * resp, int max_resp_len, struct opts_t* op); +int main6(int argc, char ** argv); +extern char * optarg; +extern int optind; +extern char * optarg; +extern int optind; + + + +int __tmpTR__int_1; +struct _IO_marker; +struct smp_val_name; +struct smp_func_def_rrlen; +struct smp_func_def_rrlen{ +int func; +int def_req_len; +int def_resp_len; +} ; +struct smp_val_name{ +int value; +char * name; +} ; +extern int sprintf(char * __restrict __s, char const* __restrict __format, ...); +extern int sscanf(char const* __restrict __s, char const* __restrict __format, ...); +extern void * memset(void * __s, int __c, size_t __n); +extern char * strchr(char const* __s, int __c); +extern size_t strlen(char const* __s); +extern int toupper(int __c); +extern int smp_get_func_def_resp_len(int func_code); +int smp_get_func_def_resp_len(int func_code); +extern int smp_is_naa5(unsigned long long addr); +int smp_is_naa5(unsigned long long addr); +extern void dStrHex(char const* str, int len, int no_ascii); +void dStrHex(char const* str, int len, int no_ascii); +extern int smp_get_num(char const* buf); +int smp_get_num(char const* buf); +extern long long smp_get_llnum(char const* buf); +long long smp_get_llnum(char const* buf); +struct smp_func_def_rrlen smp_def_rrlen_arr [32] = {{0x0, 0, 6}, {0x1, 0, 14}, {0x2, -3, -3}, {0x3, -2, -2}, {0x4, -2, -2}, {0x5, -2, -2}, {0x6, -2, -2}, {0x7, -3, -3}, {0x10, 2, 0xc}, {0x11, 2, 6}, {0x12, 2, 13}, {0x13, 2, 9}, {0x14, -2, -2}, {0x20, -2, -2}, {0x21, -2, -2}, {0x22, -2, -2}, {0x80, 3, 0}, {0x81, -2, 0}, {0x82, -3, -3}, {0x83, -3, -3}, {0x85, -2, 0}, {0x86, -2, -2}, {0x87, -2, 0}, {0x88, -2, 0}, {0x89, -2, 0}, {0x8a, -2, 0}, {0x8b, -2, 0}, {0x90, 9, 0}, {0x91, 9, 0}, {0x92, 9, 0}, {0x93, -2, 0}, {-1, -1, -1}}; + + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int smp_get_func_def_resp_len(int func_code) +{ +struct smp_func_def_rrlen* drlp; +for(drlp = smp_def_rrlen_arr ; drlp->func >= 0 ; ++drlp) +{ +if(func_code == drlp->func) +return drlp->def_resp_len; +} +return -1; +} +int smp_is_naa5(unsigned long long addr) +{ +return (0x5 == ((addr >> 60) & 0xf)); +} +void dStrHex(char const* str, int len, int no_ascii) +{ +char const* p = str; +unsigned char c; +char buff [82]; +int a = 0; +int const bpstart = 5; +int const cpstart = 60; +int cpos = cpstart; +int bpos = bpstart; +int i; +int k; +if(len <= 0) +return ; +memset(buff, ' ', 80); +buff[80] = '\0'; +if(no_ascii < 0) +{ +return ; +} +k = sprintf(buff + 1, "%.2x", a); +((( "1_1_247_8589935493" /*Grp 1*/, __VERIFIER_assert(k+1>=0 && k+1< 82))) , buff[k+1]=' '); +for(i = 0 ; i < len ; i++ ) +{ +c = * p++ ; +bpos += 3; +if(bpos == (bpstart + (9 * 3))) +bpos++ ; +((( "1_1_254_8589935534" /*Grp 1*/, __VERIFIER_assert(bpos>=0 && bpos< 82)) , (__tmpTR__int_1 = sprintf( & buff[bpos], "%.2x", (int )(unsigned char )c))) , __tmpTR__int_1); +((( "1_1_255_8589935545" /*Grp 1*/, __VERIFIER_assert(bpos+2>=0 && bpos+2< 82))) , buff[bpos+2]=' '); +if(no_ascii) +((__tmpTR__int_1 = cpos , cpos = __tmpTR__int_1+1 , ( "1_1_257_8589935554" /*Grp 1*/, __VERIFIER_assert(__tmpTR__int_1>=0 && __tmpTR__int_1< 82))) , buff[__tmpTR__int_1]=' '); +else +{ +if((c < ' ') || (c >= 0x7f)) +c = '.'; +buff[cpos++ ] = c; +} +if(cpos > (cpstart + 15)) +{ +bpos = bpstart; +cpos = cpstart; +a += 16; +memset(buff, ' ', 80); +k = sprintf(buff + 1, "%.2x", a); +((( "1_1_270_8589935626" /*Grp 1*/, __VERIFIER_assert(k+1>=0 && k+1< 82))) , buff[k+1]=' '); +} +} + +} +int smp_get_num(char const* buf) +{ +int res; +int num; +int n; +int len; +unsigned int unum; +char * cp; +char c = 'c'; +char c2; +char c3; +if(((( void * ) 0) == buf) || ('\0' == buf[0])) +return -1; +len = strlen(buf); +if(('0' == buf[0]) && (('x' == buf[1]) || ('X' == buf[1]))) +{ +res = sscanf(buf + 2, "%x", & unum); +num = unum; +} +else +if('H' == toupper(buf[len - 1])) +{ +res = sscanf(buf, "%x", & unum); +num = unum; +} +else +res = sscanf(buf, "%d%c%c%c", & num, & c, & c2, & c3); +if(res < 1) +return -1LL; +else +if(1 == res) +return num; +else +{ +if(res > 2) +c2 = toupper(c2); +if(res > 3) +c3 = toupper(c3); +switch(toupper(c)) +{ +case ',': +; +case 'C': +return num; +case 'W': +return num * 2; +case 'B': +return num * 512; +case 'K': +if(2 == res) +return num * 1024; +if(('B' == c2) || ('D' == c2)) +return num * 1000; +if(('I' == c2) && (4 == res) && ('B' == c3)) +return num * 1024; +return -1; +case 'M': +if(2 == res) +return num * 1048576; +if(('B' == c2) || ('D' == c2)) +return num * 1000000; +if(('I' == c2) && (4 == res) && ('B' == c3)) +return num * 1048576; +return -1; +case 'G': +if(2 == res) +return num * 1073741824; +if(('B' == c2) || ('D' == c2)) +return num * 1000000000; +if(('I' == c2) && (4 == res) && ('B' == c3)) +return num * 1073741824; +return -1; +case 'X': +cp = strchr(buf, 'x'); +if((( void * ) 0) == cp) +cp = strchr(buf, 'X'); +if(cp) +{ +n = smp_get_num(cp + 1); +if(-1 != n) +return num * n; +} +return -1; +default: ; +return -1; +} +} +} +long long smp_get_llnum(char const* buf) +{ +int res; +int len; +long long num; +long long ll; +unsigned long long unum; +char * cp; +char c = 'c'; +char c2; +char c3; +if(((( void * ) 0) == buf) || ('\0' == buf[0])) +return -1LL; +len = strlen(buf); +if(('0' == buf[0]) && (('x' == buf[1]) || ('X' == buf[1]))) +{ +res = sscanf(buf + 2, "%llx", & unum); +num = unum; +} +else +if('H' == toupper(buf[len - 1])) +{ +res = sscanf(buf, "%llx", & unum); +num = unum; +} +else +res = sscanf(buf, "%lld%c%c%c", & num, & c, & c2, & c3); +if(res < 1) +return -1LL; +else +if(1 == res) +return num; +else +{ +if(res > 2) +c2 = toupper(c2); +if(res > 3) +c3 = toupper(c3); +switch(toupper(c)) +{ +case 'C': +return num; +case 'W': +return num * 2; +case 'B': +return num * 512; +case 'K': +if(2 == res) +return num * 1024; +if(('B' == c2) || ('D' == c2)) +return num * 1000; +if(('I' == c2) && (4 == res) && ('B' == c3)) +return num * 1024; +return -1LL; +case 'M': +if(2 == res) +return num * 1048576; +if(('B' == c2) || ('D' == c2)) +return num * 1000000; +if(('I' == c2) && (4 == res) && ('B' == c3)) +return num * 1048576; +return -1LL; +case 'G': +if(2 == res) +return num * 1073741824; +if(('B' == c2) || ('D' == c2)) +return num * 1000000000; +if(('I' == c2) && (4 == res) && ('B' == c3)) +return num * 1073741824; +return -1LL; +case 'T': +if(2 == res) +return num * 1099511627776LL; +if(('B' == c2) || ('D' == c2)) +return num * 1000000000000LL; +if(('I' == c2) && (4 == res) && ('B' == c3)) +return num * 1099511627776LL; +return -1LL; +case 'P': +if(2 == res) +return num * 1099511627776LL * 1024; +if(('B' == c2) || ('D' == c2)) +return num * 1000000000000LL * 1000; +if(('I' == c2) && (4 == res) && ('B' == c3)) +return num * 1099511627776LL * 1024; +return -1LL; +case 'X': +cp = strchr(buf, 'x'); +if((( void * ) 0) == cp) +cp = strchr(buf, 'X'); +if(cp) +{ +ll = smp_get_llnum(cp + 1); +if(-1LL != ll) +return num * ll; +} +return -1LL; +default: ; +return -1LL; +} +} +} + +static int do_discover_list(struct smp_target_obj* top, int sphy_id, unsigned char * resp, int max_resp_len, struct opts_t* op) +{ +unsigned char smp_req [32] = {0x40, 0x20, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; +struct smp_req_resp smp_rr; +int len; +int res; +int dword_resp_len; +int mnum_desc; +dword_resp_len = (max_resp_len - 8) / 4; +smp_req[2] = (dword_resp_len < 0x100) ? dword_resp_len : 0xff; +smp_req[8] = sphy_id; +mnum_desc = op->do_num; +if((0 == op->desc_type) && (mnum_desc > 8)) +mnum_desc = 8; +if((1 == op->desc_type) && (mnum_desc > 40)) +mnum_desc = 40; +smp_req[9] = mnum_desc; +smp_req[10] = op->filter & 0xf; +if(op->ign_zp) +smp_req[10] |= 0x80; +smp_req[11] = op->desc_type & 0xf; +memset( & smp_rr, 0, sizeof (smp_rr)); +res = smp_send_req(top, & smp_rr, op->verbose); +if(res) +{ +return -1; +} +if(smp_rr.transport_err) +{ +return -1; +} +if((smp_rr.act_response_len >= 0) && (smp_rr.act_response_len < 4)) +{ +return 97; +} +len = resp[3]; +if((0 == len) && (0 == resp[2])) +{ +len = smp_get_func_def_resp_len(resp[1]); +if(len < 0) +{ +len = 0; + +} +} +len = 4 + (len * 4); +if(op->do_hex || op->do_raw) +{ +if(op->do_hex) +dStrHex(( char const* ) resp, len, 1); +else +; +if(0x41 != resp[0]) +return 97; +if(resp[1] != smp_req[1]) +return 97; +if(resp[2]) +{ +return resp[2]; +} +return 0; +} +if(0x41 != resp[0]) +{ +return 97; +} +if(resp[1] != smp_req[1]) +{ +return 97; +} +if(resp[2]) +{ +return resp[2]; +} +return 0; +} + +int main(){ +struct smp_target_obj tobj; +struct opts_t opts; +unsigned char * resp; +resp= (unsigned char *) malloc (sizeof (unsigned char)); +int ret = do_discover_list( & tobj, __VERIFIER_nondet_int() , resp, sizeof (resp), & opts); +return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/iftelse.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/iftelse.c new file mode 100644 index 000000000..15dc810eb --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/iftelse.c @@ -0,0 +1,33 @@ + +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "iftelse.c", 4, "reach_error"); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int SIZE = 20000001; +unsigned int __VERIFIER_nondet_uint(); +int main() { + unsigned int n,i,k,j; + n = __VERIFIER_nondet_uint(); + if (!(n <= SIZE)) return 0; + i = j = k = 0; + while( i < n ) { + i = i + 3; + if(i%2) + j = j+3; + else + k = k+3; + if(n>0) + __VERIFIER_assert( (i/2<=j) ); + } + return 0; +} + diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/in-de20.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/in-de20.c new file mode 100644 index 000000000..6570eb98e --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/in-de20.c @@ -0,0 +1,31 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "in-de20.c", 3, "reach_error"); } +extern unsigned int __VERIFIER_nondet_uint(void); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main() +{ + unsigned int n = __VERIFIER_nondet_uint(); + unsigned int x=n, y=0, z; + while(x>0) + { + x--; + y++; + } + + z = y; + while(z>0) + { + x++; + z--; + } + + __VERIFIER_assert(x==n); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/in-de31.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/in-de31.c new file mode 100644 index 000000000..fd111425d --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/in-de31.c @@ -0,0 +1,37 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "in-de31.c", 3, "reach_error"); } +extern unsigned int __VERIFIER_nondet_uint(void); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main() +{ + unsigned int n = __VERIFIER_nondet_uint(); + unsigned int x=n, y=0, z; + while(x>0) + { + x--; + y++; + } + + z = y; + while(z>0) + { + x++; + z--; + } + + while(y>0) + { + y--; + z++; + } + + __VERIFIER_assert(z==n); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/in-de32.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/in-de32.c new file mode 100644 index 000000000..e8e59d1d3 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/in-de32.c @@ -0,0 +1,37 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "in-de32.c", 3, "reach_error"); } +extern unsigned int __VERIFIER_nondet_uint(void); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main() +{ + unsigned int n = __VERIFIER_nondet_uint(); + unsigned int x=n, y=0, z; + while(x>0) + { + x--; + y++; + } + + z = y; + while(z>0) + { + x++; + z--; + } + + while(y>0) + { + x--; + y--; + } + + __VERIFIER_assert(x==0); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/in-de41.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/in-de41.c new file mode 100644 index 000000000..059583dbb --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/in-de41.c @@ -0,0 +1,43 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "in-de41.c", 3, "reach_error"); } +extern unsigned int __VERIFIER_nondet_uint(void); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main() +{ + unsigned int n = __VERIFIER_nondet_uint(); + unsigned int x=n, y=0, z; + while(x>0) + { + x--; + y++; + } + + z = y; + while(z>0) + { + x++; + z--; + } + + while(y>0) + { + y--; + z++; + } + + while(x>0) + { + x--; + y++; + } + + __VERIFIER_assert(y==n); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/in-de42.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/in-de42.c new file mode 100644 index 000000000..cdf29abfb --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/in-de42.c @@ -0,0 +1,43 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "in-de42.c", 3, "reach_error"); } +extern unsigned int __VERIFIER_nondet_uint(void); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main() +{ + unsigned int n = __VERIFIER_nondet_uint(); + unsigned int x=n, y=0, z; + while(x>0) + { + x--; + y++; + } + + z = y; + while(z>0) + { + x++; + z--; + } + + while(y>0) + { + y--; + z++; + } + + while(x>0) + { + x--; + z++; + } + + __VERIFIER_assert(z==2*n); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/in-de51.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/in-de51.c new file mode 100644 index 000000000..0a37b7a1b --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/in-de51.c @@ -0,0 +1,49 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "in-de51.c", 3, "reach_error"); } +extern unsigned int __VERIFIER_nondet_uint(void); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main() +{ + unsigned int n = __VERIFIER_nondet_uint(); + unsigned int x=n, y=0, z; + while(x>0) + { + x--; + y++; + } + + z = y; + while(z>0) + { + x++; + z--; + } + + while(y>0) + { + y--; + z++; + } + + while(x>0) + { + x--; + y++; + } + + while(z>0) + { + x++; + z--; + } + + __VERIFIER_assert(x==n); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/in-de52.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/in-de52.c new file mode 100644 index 000000000..56c0d2aa8 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/in-de52.c @@ -0,0 +1,49 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "in-de52.c", 3, "reach_error"); } +extern unsigned int __VERIFIER_nondet_uint(void); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main() +{ + unsigned int n = __VERIFIER_nondet_uint(); + unsigned int x=n, y=0, z; + while(x>0) + { + x--; + y++; + } + + z = y; + while(z>0) + { + x++; + z--; + } + + while(y>0) + { + y--; + z++; + } + + while(x>0) + { + x--; + y++; + } + + while(z>0) + { + y--; + z--; + } + + __VERIFIER_assert(y==0); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/in-de61.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/in-de61.c new file mode 100644 index 000000000..e5a446049 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/in-de61.c @@ -0,0 +1,55 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "in-de61.c", 3, "reach_error"); } +extern unsigned int __VERIFIER_nondet_uint(void); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main() +{ + unsigned int n = __VERIFIER_nondet_uint(); + unsigned int x=n, y=0, z; + while(x>0) + { + x--; + y++; + } + + z = y; + while(z>0) + { + x++; + z--; + } + + while(y>0) + { + y--; + z++; + } + + while(x>0) + { + x--; + y++; + } + + while(z>0) + { + x++; + z--; + } + + while(y>0) + { + y--; + z++; + } + + __VERIFIER_assert(z==n); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/in-de62.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/in-de62.c new file mode 100644 index 000000000..dfcf269bf --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/in-de62.c @@ -0,0 +1,55 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "in-de62.c", 3, "reach_error"); } +extern unsigned int __VERIFIER_nondet_uint(void); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main() +{ + unsigned int n = __VERIFIER_nondet_uint(); + unsigned int x=n, y=0, z; + while(x>0) + { + x--; + y++; + } + + z = y; + while(z>0) + { + x++; + z--; + } + + while(y>0) + { + y--; + z++; + } + + while(x>0) + { + x--; + y++; + } + + while(z>0) + { + x++; + z--; + } + + while(y>0) + { + y--; + x--; + } + + __VERIFIER_assert(x==0); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/loopv1.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/loopv1.c new file mode 100644 index 000000000..ac6479e5c --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/loopv1.c @@ -0,0 +1,34 @@ +int SIZE = 50000001; + + +int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "loopv1.c", 7, "reach_error"); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + + +int main() { + int n,i,j; + n = __VERIFIER_nondet_int(); + if (!(n <= SIZE)) return 0; + i = 0; j=0; + while(iz){ + y--; + x--; + } + __VERIFIER_assert(x==z); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_10.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_10.c new file mode 100644 index 000000000..0f47a7fd7 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_10.c @@ -0,0 +1,18 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "mono-crafted_10.c", 3, "reach_error"); } +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: {reach_error();abort();} } } + +int main(void) +{ + unsigned int x = 0; + unsigned int y = 10000000; + unsigned int z=5000000; + while(x=5000000) + z++; + x++; + } + __VERIFIER_assert(z==x); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_11.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_11.c new file mode 100644 index 000000000..077532259 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_11.c @@ -0,0 +1,18 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "mono-crafted_11.c", 3, "reach_error"); } +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: {reach_error();abort();} } } +int main() { + unsigned int x = 0; + + while (x < 100000000) { + if (x < 10000000) { + x++; + } else { + x += 2; + } + } + + __VERIFIER_assert((x%2)==0) ; + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_12.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_12.c new file mode 100644 index 000000000..cb073dd49 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_12.c @@ -0,0 +1,17 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "mono-crafted_12.c", 3, "reach_error"); } +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: {reach_error();abort();} } } + +int main() { +unsigned int x = 0; +unsigned int y = 10000000; +unsigned int z=0; + while(x=5000000) + z=z+2; + x++; + } + __VERIFIER_assert(!(z%2)); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_13.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_13.c new file mode 100644 index 000000000..98f45a3d8 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_13.c @@ -0,0 +1,23 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "mono-crafted_13.c", 3, "reach_error"); } +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: {reach_error();abort();} } } + +int main(){ + int x=0,y=50000,z=0; + x=0; + while(x<1000000){ + if(x<50000) + x++; + else{ + x=x+2; + y=y+2; + } + } + while(y>z){ + y--; + x--; + } + __VERIFIER_assert((x%2==0)); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_14.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_14.c new file mode 100644 index 000000000..ac0c4843c --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_14.c @@ -0,0 +1,25 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "mono-crafted_14.c", 3, "reach_error"); } +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: {reach_error();abort();} } } + +int main(){ + int x=0,y=500000,z=0; + x=0; + while(x<1000000){ + if(x<500000) + x++; + else{ + x++; + y++; + } + } + while(y>0){ + x--; + z++; + y=y-2; + } + __VERIFIER_assert(z%2==0); + __VERIFIER_assert(x%2==0); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_3.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_3.c new file mode 100644 index 000000000..49926590c --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_3.c @@ -0,0 +1,25 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "mono-crafted_3.c", 3, "reach_error"); } +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: {reach_error();abort();} } } + +int main() +{ + int x=0,y=500000,z=0; + x=0; + while(x<1000000){ + if(x<500000) + x++; + else{ + x++; + y++; + } + } + while(y>0){ + x--; + z++; + y=y-2; + } + __VERIFIER_assert(x==z); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_6.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_6.c new file mode 100644 index 000000000..f59bec335 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_6.c @@ -0,0 +1,25 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "mono-crafted_6.c", 3, "reach_error"); } +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: {reach_error();abort();} } } + +int main() +{ + int x=0,y=500000,z=0; + x=0; + while(x<1000000){ + if(x<500000) + x++; + else{ + if(x<750000){ + x++; + } + else{ + x=x+2; + } + y++; + } + } + __VERIFIER_assert(x==1000000); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_7.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_7.c new file mode 100644 index 000000000..68bb896d2 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_7.c @@ -0,0 +1,24 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "mono-crafted_7.c", 3, "reach_error"); } +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: {reach_error();abort();} } } + +int main() +{ + int x=0,y=50000,z=0; + x=0; + while(x<1000000){ + if(x<50000) + x++; + else{ + x++; + y++; + } + } + while(y>0){ + y=y-2; + x=x-2; + } + __VERIFIER_assert(z==x); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_8.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_8.c new file mode 100644 index 000000000..553484de3 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_8.c @@ -0,0 +1,18 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "mono-crafted_8.c", 3, "reach_error"); } +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: {reach_error();abort();} } } + +int main() +{ + unsigned int x = 0; + unsigned int y = 10000000; + unsigned int z=5000000; + while(x=5000000) + z--; + x++; + } + __VERIFIER_assert(z==0); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_9.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_9.c new file mode 100644 index 000000000..b746a960d --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_9.c @@ -0,0 +1,20 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "mono-crafted_9.c", 3, "reach_error"); } +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: {reach_error();abort();} } } + +int main() +{ + int x = 0; + int y = 500000; + while(x < 1000000) { + if (x < 500000) { + x = x + 1; + } else { + x = x + 1; + y = y + 1; + } + } + __VERIFIER_assert(y==x); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/nested3-1.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/nested3-1.c new file mode 100644 index 000000000..b13483748 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/nested3-1.c @@ -0,0 +1,37 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "nested3-1.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main() +{ + unsigned int x = 0; + unsigned int y = 0; + unsigned int z = 0; + unsigned int w = 0; + + while (x < 0x0fffffff) { + y = 0; + + while (y < 0x0fffffff) { + z =0; + while (z <0x0fffffff) { + z++; + } + __VERIFIER_assert(z % 4); + y++; + } + __VERIFIER_assert(y % 2); + + x++; + } + __VERIFIER_assert(x % 2); + return 0; + +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/nested3-1_abstracted.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/nested3-1_abstracted.c new file mode 100644 index 000000000..86f28febe --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/nested3-1_abstracted.c @@ -0,0 +1,54 @@ +extern void abort(void); +extern int __VERIFIER_nondet_int(); +extern _Bool __VERIFIER_nondet_bool(); +extern char __VERIFIER_nondet_char(); +extern double __VERIFIER_nondet_double(); +extern float __VERIFIER_nondet_float(); +extern unsigned long __VERIFIER_nondet_ulong(); +extern unsigned long long __VERIFIER_nondet_ulonglong(); +extern unsigned int __VERIFIER_nondet_uint(); +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "nested3-1_abstracted.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main() +{ + unsigned int x = 0; + unsigned int y = 0; + unsigned int z = 0; + unsigned int w = 0; + + while (x < 0x0fffffff) { + y = 0; + + while (y < 0x0fffffff) { + z =0; + // START NAIVELOOPABSTRACTION + if (z < (268435455)) { + z = __VERIFIER_nondet_uint(); + if (!(z < (268435455))) abort(); + if (z <0x0fffffff) { + z++; + } + if (z < (268435455)) abort(); + } + // END NAIVELOOPABSTRACTION + __VERIFIER_assert(z % 4); + y++; + } + __VERIFIER_assert(y % 2); + + x++; + } + __VERIFIER_assert(x % 2); + return 0; + +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/nested3-2.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/nested3-2.c new file mode 100644 index 000000000..81cb683ee --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/nested3-2.c @@ -0,0 +1,37 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "nested3-2.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main() +{ + unsigned int x = 0; + unsigned int y = 0; + unsigned int z = 0; + unsigned int w = 0; + + while (x < 0x0fffffff) { + y = 0; + + while (y < 0x0fffffff) { + z =0; + while (z <0x0fffffff) { + z++; + } + __VERIFIER_assert(!(z % 4)); + y++; + } + __VERIFIER_assert(!(y % 2)); + + x++; + } + __VERIFIER_assert(!(x % 2)); + return 0; + +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/nested3-2_abstracted.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/nested3-2_abstracted.c new file mode 100644 index 000000000..cd713efba --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/nested3-2_abstracted.c @@ -0,0 +1,55 @@ +extern void abort(void); +extern int __VERIFIER_nondet_int(); +extern _Bool __VERIFIER_nondet_bool(); +extern char __VERIFIER_nondet_char(); +extern double __VERIFIER_nondet_double(); +extern float __VERIFIER_nondet_float(); +extern unsigned long __VERIFIER_nondet_ulong(); +extern unsigned long long __VERIFIER_nondet_ulonglong(); +extern unsigned int __VERIFIER_nondet_uint(); +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "nested3-2_abstracted.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main() +{ + unsigned int x = 0; + unsigned int y = 0; + unsigned int z = 0; + unsigned int w = 0; + + while (x < 0x0fffffff) { + y = 0; + + while (y < 0x0fffffff) { + z =0; + // START CONSTANTEXTRAPOLATION + if (z < (268435455)) { + long long int z__VERIFIER_LA_tmp0; + z__VERIFIER_LA_tmp0 = z; + long long int __VERIFIER_LA_iterations0; + __VERIFIER_LA_iterations0 = (268435455 - z__VERIFIER_LA_tmp0) / 1L; + unsigned int z__VERIFIER_LA_old_tmp0; + z__VERIFIER_LA_old_tmp0 = z; + z = (__VERIFIER_LA_iterations0 * 1L) + z__VERIFIER_LA_old_tmp0; + } + // END CONSTANTEXTRAPOLATION + __VERIFIER_assert(!(z % 4)); + y++; + } + __VERIFIER_assert(!(y % 2)); + + x++; + } + __VERIFIER_assert(!(x % 2)); + return 0; + +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/nested5-1.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/nested5-1.c new file mode 100644 index 000000000..c85637391 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/nested5-1.c @@ -0,0 +1,27 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "nested5-1.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main() +{ + unsigned int x = 0; + unsigned int y = 0; + unsigned int z = 0; + unsigned int w = 0; + unsigned int v = 0; + for(w=0;w<0x0fffffff;w++) + for(x=0;x< 10;x++) + for(y=0;y< 10;y++) + for(z=0;z< 10;z++) { + for(v=0;v< 10;v++); + __VERIFIER_assert(v % 4); + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/nested5-2.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/nested5-2.c new file mode 100644 index 000000000..cb4c75a42 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/nested5-2.c @@ -0,0 +1,29 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "nested5-2.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main() +{ + unsigned int x = 0; + unsigned int y = 0; + unsigned int z = 0; + unsigned int w = 0; + unsigned int v = 0; + for(w=0;w<0x0fffffff;w++) + { + for(x=0;x< 10;x++) + for(y=0;y< 10;y++) + for(z=0;z< 10;z++) { + for(v=0;v< 0x0fffffff;v++); + __VERIFIER_assert(!(v % 4)); + } + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/nested_delay_nd.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/nested_delay_nd.c new file mode 100644 index 000000000..4d50b34a2 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/nested_delay_nd.c @@ -0,0 +1,47 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "nested_delay_nd.c", 3, "reach_error"); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +extern int __VERIFIER_nondet_int(void); +int last ; +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + + +int SIZE = 200000; + +int main() +{ + last = __VERIFIER_nondet_int(); + assume_abort_if_not(last > 0); + int a=0,b=0,c=0,st=0,d=0; + while(true) { + st=1; + for(c=0;c=last) { st = 0; } + } + if(st==0 && c==last+1){ + a+=3; b+=3;} + else { a+=2; b+=2; } + if(c==last && st==0) { + a = a+1; + } + else if(st==1 && last 0); + int a=0,b=0,c=0,st=0,d=0; + while(true) { + st=1; + for(c=0;c=last) { st = 0; } + } + if(st==0 && c==last+1){ + a+=3; b+=3;} + else { a+=2; b+=2; } + if(c==last && st==0) { + a = a+1; + } + else if(st==1 && last>=SIZE) { + d++; + } + if(d == SIZE) { + a = 0; + b = 1; + } + + __VERIFIER_assert(a==b && c==SIZE); + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/net_reset.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/net_reset.c new file mode 100644 index 000000000..688c8a329 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/net_reset.c @@ -0,0 +1,237 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "net_reset.c", 3, "reach_error"); } +int __tmpTR__int_1; +struct timeval; +struct timezone; +struct sockaddr; +struct sockaddr_storage; +struct in_addr; +struct in6_addr; +union in_h_196; +struct sockaddr_in; +struct sockaddr_in6; +struct _IO_FILE; +struct _IO_marker; +struct hostent; +struct nethost; +struct sequence; +struct IPHeader; +struct ICMPHeader; +struct hostent{ +char * h_name; +char ** h_aliases; +int h_addrtype; +int h_length; +char ** h_addr_list; +} ; +typedef struct in6_addr ip_t; +struct _IO_marker{ +struct _IO_marker* _next; +struct _IO_FILE* _sbuf; +int _pos; +} ; +typedef long __off_t; +typedef long long __quad_t; +typedef __quad_t __off64_t; +typedef void _IO_lock_t; +typedef struct _IO_FILE FILE; +typedef enum {IPPROTO_IP= 0, IPPROTO_HOPOPTS= 0, IPPROTO_ICMP= 1, IPPROTO_IGMP= 2, IPPROTO_IPIP= 4, IPPROTO_TCP= 6, IPPROTO_EGP= 8, IPPROTO_PUP= 12, IPPROTO_UDP= 17, IPPROTO_IDP= 22, IPPROTO_TP= 29, IPPROTO_IPV6= 41, IPPROTO_ROUTING= 43, IPPROTO_FRAGMENT= 44, IPPROTO_RSVP= 46, IPPROTO_GRE= 47, IPPROTO_ESP= 50, IPPROTO_AH= 51, IPPROTO_ICMPV6= 58, IPPROTO_NONE= 59, IPPROTO_DSTOPTS= 60, IPPROTO_MTP= 92, IPPROTO_ENCAP= 98, IPPROTO_PIM= 103, IPPROTO_COMP= 108, IPPROTO_SCTP= 132, IPPROTO_RAW= 255, IPPROTO_MAX}netin_32_0; +typedef unsigned int uint32_t; +typedef uint32_t in_addr_t; +struct in_addr{ +in_addr_t s_addr; +} ; +typedef unsigned short uint16_t; +typedef uint16_t in_port_t; +typedef unsigned char uint8_t; +union in_h_196{ +uint8_t u6_addr8 [16]; +uint16_t u6_addr16 [8]; +uint32_t u6_addr32 [4]; +} ; +struct in6_addr{ +union in_h_196 in6_u; +} ; +struct nethost{ +ip_t addr; +ip_t addrs [8]; +int xmit; +int returned; +int sent; +int up; +long long var; +int last; +int best; +int worst; +int avg; +int gmean; +int jitter; +int javg; +int jworst; +int jinta; +int transit; +int saved [200]; +int saved_seq_offset; +} ; +typedef unsigned short sa_family_t; +struct sockaddr_in6{ +sa_family_t sin6_family; +in_port_t sin6_port; +uint32_t sin6_flowinfo; +struct in6_addr sin6_addr; +uint32_t sin6_scope_id; +} ; +struct sockaddr_in{ +sa_family_t sin_family; +in_port_t sin_port; +struct in_addr sin_addr; +unsigned char sin_zero [8]; +} ; +struct sockaddr{ +sa_family_t sa_family; +char sa_data [14]; +} ; +enum __socket_type{SOCK_STREAM= 1, SOCK_DGRAM= 2, SOCK_RAW= 3, SOCK_RDM= 4, SOCK_SEQPACKET= 5, SOCK_PACKET= 10}; +typedef struct timezone* __restrict __timezone_ptr_t; +struct timezone{ +int tz_minuteswest; +int tz_dsttime; +} ; +typedef unsigned int __socklen_t; +typedef __socklen_t socklen_t; +typedef int __ssize_t; +typedef __ssize_t ssize_t; +typedef long __suseconds_t; +typedef long __time_t; +struct timeval{ +__time_t tv_sec; +__suseconds_t tv_usec; +} ; +struct sequence{ +int index; +int transit; +int saved_seq; +struct timeval time; +} ; +typedef int __pid_t; +typedef unsigned int __uint32_t; +struct sockaddr_storage{ +sa_family_t ss_family; +__uint32_t __ss_align; +char __ss_padding [120]; +} ; +typedef unsigned long size_t; +struct _IO_FILE{ +int _flags; +char * _IO_read_ptr; +char * _IO_read_end; +char * _IO_read_base; +char * _IO_write_base; +char * _IO_write_ptr; +char * _IO_write_end; +char * _IO_buf_base; +char * _IO_buf_end; +char * _IO_save_base; +char * _IO_backup_base; +char * _IO_save_end; +struct _IO_marker* _markers; +struct _IO_FILE* _chain; +int _fileno; +int _flags2; +__off_t _old_offset; +unsigned short _cur_column; +signed char _vtable_offset; +char _shortbuf [1]; +_IO_lock_t* _lock; +__off64_t _offset; +void * __pad1; +void * __pad2; +void * __pad3; +void * __pad4; +size_t __pad5; +int _mode; +char _unused2 [40]; +} ; +typedef unsigned int uint32; +typedef unsigned short uint16; +typedef unsigned char uint8; +struct ICMPHeader{ +uint8 type; +uint8 code; +uint16 checksum; +uint16 id; +uint16 sequence; +} ; +struct IPHeader{ +uint8 version; +uint8 tos; +uint16 len; +uint16 id; +uint16 frag; +uint8 ttl; +uint8 protocol; +uint16 check; +uint32 saddr; +uint32 daddr; +} ; +void net_reset(); +extern void net_reopen(struct hostent* address); +void net_reopen(struct hostent* addr); +int net_send_batch(); +int addrcmp(char * a, char * b, int af); +extern void net_reset(); +extern int net_send_batch(); +extern int addrcmp(char * a, char * b, int af); +static int batch_at = 0; +extern int fstTTL; +static struct nethost host [256]; +extern int af; +ip_t unspec_addr; +int fstTTL = 1; + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +void net_reset() +{ +batch_at = fstTTL - 1; + +} +int net_send_batch() +{ +int i; +for(i = fstTTL - 1 ; i < batch_at ; i++ ) +{ +if(((( "1_0_727_4294969421", __VERIFIER_assert(i>=0 && i< 256)) , (__tmpTR__int_1 = addrcmp((void *) & (host[i] . addr), (void *) & unspec_addr, af))) , __tmpTR__int_1 == 0)) +; + +} +return 0; +} +void net_reopen(struct hostent* addr) +{ +switch(addr->h_addrtype) +{ +case 2: +; +break; +case 10: +; +break; +default: ; + +} +net_reset(); +net_send_batch(); +} + +int main(){ + struct hostent h; + net_reopen(&h); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/sum_by_3.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/sum_by_3.c new file mode 100644 index 000000000..76d1cb7cd --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/sum_by_3.c @@ -0,0 +1,35 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "sum_by_3.c", 3, "reach_error"); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int SIZE = 20000001; +unsigned int __VERIFIER_nondet_uint(); +int main() { + unsigned int n,i,k; + n = __VERIFIER_nondet_uint(); + if (!(n <= SIZE)) return 0; + i = 0; + while( i < n ) { + i = i + 1; + } + int j = i; + while( j < n ) { + j = j+1; + } + k = j; + while( k < n ) { + k = k+1; + } + __VERIFIER_assert((i+j+k)/3 <= SIZE); + return 0; +} + diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/sum_by_3_abstracted.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/sum_by_3_abstracted.c new file mode 100644 index 000000000..8d806e3cd --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/sum_by_3_abstracted.c @@ -0,0 +1,52 @@ +extern void abort(void); +extern int __VERIFIER_nondet_int(); +extern _Bool __VERIFIER_nondet_bool(); +extern char __VERIFIER_nondet_char(); +extern double __VERIFIER_nondet_double(); +extern float __VERIFIER_nondet_float(); +extern unsigned long __VERIFIER_nondet_ulong(); +extern unsigned long long __VERIFIER_nondet_ulonglong(); +extern unsigned int __VERIFIER_nondet_uint(); +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "sum_by_3_abstracted.c", 3, "reach_error"); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int SIZE = 20000001; +unsigned int __VERIFIER_nondet_uint(); +int main() { + unsigned int n,i,k; + n = __VERIFIER_nondet_uint(); + if (!(n <= SIZE)) return 0; + i = 0; + // START NAIVELOOPABSTRACTION + if (i < n) { + i = __VERIFIER_nondet_uint(); + if (!(i < n)) abort(); + if( i < n ) { + i = i + 1; + } + if (i < n) abort(); + } + // END NAIVELOOPABSTRACTION + int j = i; + while( j < n ) { + j = j+1; + } + k = j; + while( k < n ) { + k = k+1; + } + __VERIFIER_assert((i+j+k)/3 <= SIZE); + return 0; +} + diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/sum_natnum.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/sum_natnum.c new file mode 100644 index 000000000..73c5a922c --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/sum_natnum.c @@ -0,0 +1,29 @@ +int SIZE = 40000; + + +int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "sum_natnum.c", 7, "reach_error"); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int main() { + int i; + unsigned long long sum; + i = 0, sum =0; + while(i< SIZE){ + i = i + 1; + sum += i; + } + __VERIFIER_assert( sum == ((SIZE *(SIZE+1))/2)); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/sumt2.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/sumt2.c new file mode 100644 index 000000000..de393beb5 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/sumt2.c @@ -0,0 +1,34 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "sumt2.c", 3, "reach_error"); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int SIZE = 20000001; +unsigned int __VERIFIER_nondet_uint(); +int main() { + unsigned int n,i,j,l=0; + n = __VERIFIER_nondet_uint(); + if (!(n <= SIZE)) return 0; + i = 0; + j = 0; + l=0; + while( l < n ) { + + if(!(l%2)) + i = i + 1; + else + j = j+1; + l = l+1; + } + __VERIFIER_assert((i+j) == l); + return 0; +} + diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/sumt3.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/sumt3.c new file mode 100644 index 000000000..0bbeb5fc2 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/sumt3.c @@ -0,0 +1,37 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "sumt3.c", 3, "reach_error"); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int SIZE = 20000001; +unsigned int __VERIFIER_nondet_uint(); +int main() { + unsigned int n,i,k,j,l=0; + n = __VERIFIER_nondet_uint(); + if (!(n <= SIZE)) return 0; + i = 0; + j = 0; + k = 0; + l=0; + while( l < n ) { + + if(!(l%3)) + i = i + 1; + else if(!(l%2)) + j = j+1; + else + k = k+1; + l = l+1; + } + __VERIFIER_assert((i+j+k) == l); + return 0; +} + diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/sumt4.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/sumt4.c new file mode 100644 index 000000000..4f891ee9f --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/sumt4.c @@ -0,0 +1,36 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "sumt4.c", 3, "reach_error"); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int SIZE = 20000001; +unsigned int __VERIFIER_nondet_uint(); +int main() { + unsigned int n=0,i=0,k=0,j=0,l=0; + unsigned int v4=0; + n = __VERIFIER_nondet_uint(); + if (!(n <= SIZE)) return 0; + while( l < n ) { + + if(!(l%4)) + v4 = v4 + 1; + else if(!(l%3)) + i = i + 1; + else if(!(l%2)) + j = j+1; + else + k = k+1; + l = l+1; + } + __VERIFIER_assert((i+j+k+v4) == l); + return 0; +} + diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/sumt5.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/sumt5.c new file mode 100644 index 000000000..8508f1729 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/sumt5.c @@ -0,0 +1,38 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "sumt5.c", 3, "reach_error"); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int SIZE = 20000001; +int __VERIFIER_nondet_int(); +int main() { + unsigned int n=0,i=0,k=0,j=0,l=0; + unsigned int v3=0, v4=0; + n = __VERIFIER_nondet_int(); + if (!(n <= SIZE)) return 0; + while( l < n ) { + + if(!(l%5)) + v3 = v3 + 1; + else if(!(l%4)) + v4 = v4 + 1; + else if(!(l%3)) + i = i + 1; + else if(!(l%2)) + j = j+1; + else + k = k+1; + l = l+1; + } + __VERIFIER_assert((i+j+k+v4+v3) == l); + return 0; +} + diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/sumt6.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/sumt6.c new file mode 100644 index 000000000..42964326e --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/sumt6.c @@ -0,0 +1,40 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "sumt6.c", 3, "reach_error"); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int SIZE = 20000001; +int __VERIFIER_nondet_int(); +int main() { + unsigned int n=0,i=0,k=0,j=0,l=0; + unsigned int v2=0, v3=0, v4=0; + n = __VERIFIER_nondet_int(); + if (!(n <= SIZE)) return 0; + while( l < n ) { + + if(!(l%6)) + v2 = v2 + 1; + else if(!(l%5)) + v3 = v3 + 1; + else if(!(l%4)) + v4 = v4 + 1; + else if(!(l%3)) + i = i + 1; + else if(!(l%2)) + j = j+1; + else + k = k+1; + l = l+1; + } + __VERIFIER_assert((i+j+k+v4+v3+v2) == l); + return 0; +} + diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/sumt7.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/sumt7.c new file mode 100644 index 000000000..055e0178a --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/sumt7.c @@ -0,0 +1,42 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "sumt7.c", 3, "reach_error"); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int SIZE = 20000001; +int __VERIFIER_nondet_int(); +int main() { + unsigned int n=0,i=0,k=0,j=0,l=0; + unsigned int v1=0, v2=0, v3=0, v4=0; + n = __VERIFIER_nondet_int(); + if (!(n <= SIZE)) return 0; + while( l < n ) { + + if(!(l%7)) + v1 = v1 + 1; + else if(!(l%6)) + v2 = v2 + 1; + else if(!(l%5)) + v3 = v3 + 1; + else if(!(l%4)) + v4 = v4 + 1; + else if(!(l%3)) + i = i + 1; + else if(!(l%2)) + j = j+1; + else + k = k+1; + l = l+1; + __VERIFIER_assert((i+j+k+v1+v2+v3+v4) == l); + } + return 0; +} + diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/sumt8.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/sumt8.c new file mode 100644 index 000000000..ac58f1a34 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/sumt8.c @@ -0,0 +1,44 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "sumt8.c", 3, "reach_error"); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int SIZE = 20000001; +int __VERIFIER_nondet_int(); +int main() { + unsigned int n=0,i=0,k=0,j=0,l=0; + unsigned int v1=0, v2=0, v3=0, v4=0, v5=0; + n = __VERIFIER_nondet_int(); + if (!(n <= SIZE)) return 0; + while( l < n ) { + + if(!(l%8)) + v5 = v5 + 1; + else if(!(l%7)) + v1 = v1 + 1; + else if(!(l%6)) + v2 = v2 + 1; + else if(!(l%5)) + v3 = v3 + 1; + else if(!(l%4)) + v4 = v4 + 1; + else if(!(l%3)) + i = i + 1; + else if(!(l%2)) + j = j+1; + else + k = k+1; + l = l+1; + __VERIFIER_assert((i+j+k+v1+v2+v3+v4+v5) == l); + } + return 0; +} + diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/sumt9.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/sumt9.c new file mode 100644 index 000000000..b66574eab --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/sumt9.c @@ -0,0 +1,46 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "sumt9.c", 3, "reach_error"); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int SIZE = 20000001; +int __VERIFIER_nondet_int(); +int main() { + unsigned int n=0,i=0,k=0,j=0,l=0; + unsigned int v1=0, v2=0, v3=0, v4=0, v5=0, v6=0; + n = __VERIFIER_nondet_int(); + if (!(n <= SIZE)) return 0; + while( l < n ) { + + if(!(l%9)) + v6 = v6 + 1; + else if(!(l%8)) + v5 = v5 + 1; + else if(!(l%7)) + v1 = v1 + 1; + else if(!(l%6)) + v2 = v2 + 1; + else if(!(l%5)) + v3 = v3 + 1; + else if(!(l%4)) + v4 = v4 + 1; + else if(!(l%3)) + i = i + 1; + else if(!(l%2)) + j = j+1; + else + k = k+1; + l = l+1; + __VERIFIER_assert((i+j+k+v1+v2+v3+v4+v5+v6) == l); + } + return 0; +} + diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/theatreSquare.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/theatreSquare.c new file mode 100644 index 000000000..bd4c93d42 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/theatreSquare.c @@ -0,0 +1,110 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "theatreSquare.c", 3, "reach_error"); } +extern int __VERIFIER_nondet_int(void); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +// The main function checks for output equivalence for two function: +// 1. correct_version +// 2. student_version +// +// correct_version computes the solution for the following problem: +// +// Setting: Theatre Square in the capital city of Berland has a rectangular +// shape with the size n × m meters. On the occasion of the city's anniversary, +// a decision was taken to pave the Square with square granite flagstones. Each +// flagstone is of the size a × a. +// +// Find: What is the least number of flagstones needed to pave the Square? +// +// Conditions to be satisfied: +// 1. The Square has to be covered. +// 2. It's allowed to cover the surface larger than the Theatre Square. +// 3. It's not allowed to break the flagstones. +// 4. The sides of flagstones should be parallel to the sides of the Square. +// 5. n, m and a are positive integers. +// +// student_version is identical to correct version. + +int correct_version(int n, int m, int a) +{ + int i = 0, j = 0, b = 0, l = 0; + + while(b < n) + { + b = b + a; + i = i + 1; + } + + while(l < m) + { + l = l + a; + j = j + 1; + } + + int x = 0, y = 0; + + while(x < i) + { + y = y + j; + x = x + 1; + } + + return y; +} + +int student_version(int n, int m, int a) +{ + int i = 0, j = 0, b = 0, l = 0; + + while(b < n) + { + b = b + a; + i = i + 1; + } + + while(l < m) + { + l = l + a; + j = j + 1; + } + + int x = 0, y = 0; + + while(x < i) + { + y = y + j; + x = x + 1; + } + + return y; +} + +int main() +{ + + int a=__VERIFIER_nondet_int(), n=__VERIFIER_nondet_int(), m=__VERIFIER_nondet_int(); + + int n_stones1, n_stones2=__VERIFIER_nondet_int(); + + n_stones1 = n_stones2; + + if((1 <= n) && + (1 <= m) && + (1 <= a) && + (n <= 109) && + (m <= 109) && + (a <= 109)) + { + n_stones1 = correct_version(n, m, a); + n_stones2 = student_version(n, m, a); + } + __VERIFIER_assert(n_stones1 == n_stones2); + return 0; +} + diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/vnew1.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/vnew1.c new file mode 100644 index 000000000..b82903551 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/vnew1.c @@ -0,0 +1,33 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "vnew1.c", 3, "reach_error"); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int SIZE = 20000001; +unsigned int __VERIFIER_nondet_uint(); +int main() { + unsigned int n,i,k; + n = __VERIFIER_nondet_uint(); + if (!(n <= SIZE)) return 0; + k = n; + i = 0; + while( i < n ) { + k--; + i = i + 3; + } + int j = 0; + while( j < n/3 ) { + __VERIFIER_assert(k > 0); + k--; + j++; + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/vnew2.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/vnew2.c new file mode 100644 index 000000000..6cf48b0b8 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/vnew2.c @@ -0,0 +1,30 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "vnew2.c", 3, "reach_error"); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int SIZE = 20000001; +unsigned int __VERIFIER_nondet_uint(); +int main() { + unsigned int n,i,k,j; + n = __VERIFIER_nondet_uint(); + if (!(n <= SIZE)) return 0; + i = j = k = 0; + while( i < n ) { + i = i + 3; + j = j+3; + k = k+3; + } + if(n>0) + __VERIFIER_assert( i==j && j==k && (i%(SIZE+2)) ); + return 0; +} + diff --git a/data/benchmarks/sv-benchmarks/loops-crafted-1/watermelon.c b/data/benchmarks/sv-benchmarks/loops-crafted-1/watermelon.c new file mode 100644 index 000000000..554df01cb --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops-crafted-1/watermelon.c @@ -0,0 +1,68 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "watermelon.c", 3, "reach_error"); } +extern unsigned int __VERIFIER_nondet_uint(void); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int true = 1; +int false = 0; + +int correct_version(int w) +{ + int is_divisible = true; + + if(w < 4) + is_divisible = false; + else + { + int i; + for(i = 0; i < w; i += 2) + {} + + if(i != w) + is_divisible = false; + } + + return is_divisible; +} + +int student_version(int w) +{ + int is_divisible = true; + + if(w < 4) + is_divisible = false; + else + { + int i; + for(i = 0; i < w; i += 2) + {} + + if(i != w) + is_divisible = false; + } + + return is_divisible; +} + +int main(){ + + unsigned int w=__VERIFIER_nondet_uint(); + + int is_divisible1 = true, is_divisible2 = true; + + if(w > 0 && w < 10000000) + { + is_divisible1 = correct_version(w); + is_divisible2 = student_version(w); + __VERIFIER_assert(is_divisible1 == is_divisible2); + } + return 0; + +} + diff --git a/data/benchmarks/sv-benchmarks/loops/Makefile b/data/benchmarks/sv-benchmarks/loops/Makefile new file mode 100644 index 000000000..bc77ab807 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/Makefile @@ -0,0 +1,15 @@ +# This file is part of the SV-Benchmarks collection of verification tasks: +# https://github.com/sosy-lab/sv-benchmarks +# +# SPDX-FileCopyrightText: 2015-2016 Daniel Liew +# SPDX-FileCopyrightText: 2015-2020 The SV-Benchmarks Community +# +# SPDX-License-Identifier: Apache-2.0 + +LEVEL := ../ + +CLANG_WARNINGS := \ + -Wno-error=tautological-compare \ + -Wno-error=uninitialized \ + +include $(LEVEL)/Makefile.config diff --git a/data/benchmarks/sv-benchmarks/loops/README.txt b/data/benchmarks/sv-benchmarks/loops/README.txt new file mode 100644 index 000000000..d36739862 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/README.txt @@ -0,0 +1,9 @@ +Verification tasks that need to consider loops with non-static loop bound. + +Contributed by: [ESBMC](http://www.esbmc.org/) project + +Tasks ending in _abstracted.* contain versions of these tasks +where a loop has been overaproximated using simple abstraction +techniques, as described in: +"A Unifying Approach for Control-Flow-Based Loop Abstraction" (SEFM 2022) +https://doi.org/10.1007/978-3-031-17108-6_1 diff --git a/data/benchmarks/sv-benchmarks/loops/array-1.c b/data/benchmarks/sv-benchmarks/loops/array-1.c new file mode 100644 index 000000000..4a8dbc0f5 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/array-1.c @@ -0,0 +1,32 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "array-1.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int __VERIFIER_nondet_int(); + +int main() +{ + unsigned int SIZE=1; + unsigned int j,k; + int array[SIZE], menor; + + menor = __VERIFIER_nondet_int(); + + for(j=0;j=menor); + + return 0; +} + diff --git a/data/benchmarks/sv-benchmarks/loops/array-2.c b/data/benchmarks/sv-benchmarks/loops/array-2.c new file mode 100644 index 000000000..f1793229f --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/array-2.c @@ -0,0 +1,32 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "array-2.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int __VERIFIER_nondet_int(); + +int main() +{ + unsigned int SIZE=1; + unsigned int j,k; + int array[SIZE], menor; + + menor = __VERIFIER_nondet_int(); + + for(j=0;jmenor); + + return 0; +} + diff --git a/data/benchmarks/sv-benchmarks/loops/base.h b/data/benchmarks/sv-benchmarks/loops/base.h new file mode 100644 index 000000000..bd7b3890f --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/base.h @@ -0,0 +1,13 @@ +#ifndef _BASE_H +#define _BASE_H + +/* Only #define it if it hasn't already been defined using -D */ +#ifndef BASE_SZ +#define BASE_SZ 2 +#endif + +#ifndef MAX_GETC +#define MAX_GETC 10 +#endif + +#endif diff --git a/data/benchmarks/sv-benchmarks/loops/bubble_sort-1.c b/data/benchmarks/sv-benchmarks/loops/bubble_sort-1.c new file mode 100644 index 000000000..9e310644d --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/bubble_sort-1.c @@ -0,0 +1,95 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "bubble_sort-1.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + + + +void bubblesort(int size, int item[]) +{ + int a, b, t; + + for(a = 1; a < size; ++a) + { + for(b = size-1; b >= a; --b) + { + + if (b-1 < size && b < size) + { + if(item[ b - 1] > item[ b ]) + { + t = item[ b - 1]; + item[ b - 1] = item[ b ]; + item[ b ] = t; + } + } + } + } +} + +void bubblesort1(int size, int item[]) +{ + int j, i, pivot; + + for(j = 1; j < size; ++j) + { + pivot = item[j]; + i = j - 1; + + while(i >= 0 && item[i] > pivot) + { + item[i+1] = item[i]; + i--; + } + item[i+1] = pivot; + } +} +int __VERIFIER_nondet_int(); +void q1(int argc, char* argv[]) +{ + if(argc < 2) + return; + + int N = __VERIFIER_nondet_int(); + int a[N]; + int i; + + switch(2) + { + case 0: + for(i=0; i < N; ++i) a[i] = i; + break; + + case 1: + for(i=(N-1); i >= 0; --i) a[i] = N-1-i; + break; + + case 2: + for(i=0; i < N; ++i) a[i] = i; + + for (i=0; i +void reach_error() { assert(0); } + +/* Generated by CIL v. 1.3.7 */ +/* print_CIL_Input is true */ +#include + +typedef unsigned int size_t; +struct list_head { + struct list_head *next ; + struct list_head *prev ; +}; +struct node { + int value ; + struct list_head linkage ; + struct list_head nested ; +}; +extern __attribute__((__nothrow__)) void *malloc(size_t __size ) __attribute__((__malloc__)) ; +extern __attribute__((__nothrow__)) void free(void *__ptr ) ; +extern __attribute__((__nothrow__, __noreturn__)) void abort(void) ; +extern int __VERIFIER_nondet_int(void); +static void fail(void) +{ + + { + ERROR: {reach_error();abort();}assert(0); + goto ERROR; +} +} +struct list_head gl_list = {& gl_list, & gl_list}; +static void inspect(struct list_head const *head ) +{ struct node const *node ; + unsigned int __cil_tmp3 ; + struct list_head *__cil_tmp4 ; + unsigned int __cil_tmp5 ; + int __cil_tmp6 ; + unsigned int __cil_tmp7 ; + unsigned int __cil_tmp8 ; + unsigned int __cil_tmp9 ; + struct list_head *__cil_tmp10 ; + unsigned int __cil_tmp11 ; + int __cil_tmp12 ; + unsigned int __cil_tmp13 ; + unsigned int __cil_tmp14 ; + struct list_head *__cil_tmp15 ; + unsigned int __cil_tmp16 ; + struct list_head *__cil_tmp17 ; + unsigned int __cil_tmp18 ; + int __cil_tmp19 ; + unsigned int __cil_tmp20 ; + unsigned int __cil_tmp21 ; + unsigned int __cil_tmp22 ; + struct list_head *__cil_tmp23 ; + unsigned int __cil_tmp24 ; + int __cil_tmp25 ; + struct node *__cil_tmp26 ; + unsigned int __cil_tmp27 ; + unsigned int __cil_tmp28 ; + struct list_head *__cil_tmp29 ; + unsigned long __cil_tmp30 ; + char *__cil_tmp31 ; + char *__cil_tmp32 ; + struct node *__cil_tmp33 ; + unsigned int __cil_tmp34 ; + unsigned int __cil_tmp35 ; + struct list_head const *__cil_tmp36 ; + unsigned int __cil_tmp37 ; + unsigned int __cil_tmp38 ; + unsigned int __cil_tmp39 ; + struct list_head *__cil_tmp40 ; + unsigned int __cil_tmp41 ; + int __cil_tmp42 ; + unsigned int __cil_tmp43 ; + unsigned int __cil_tmp44 ; + struct list_head const *__cil_tmp45 ; + unsigned int __cil_tmp46 ; + unsigned int __cil_tmp47 ; + unsigned int __cil_tmp48 ; + unsigned int __cil_tmp49 ; + struct list_head *__cil_tmp50 ; + unsigned int __cil_tmp51 ; + int __cil_tmp52 ; + unsigned int __cil_tmp53 ; + unsigned int __cil_tmp54 ; + struct list_head const *__cil_tmp55 ; + unsigned int __cil_tmp56 ; + unsigned int __cil_tmp57 ; + unsigned int __cil_tmp58 ; + struct list_head *__cil_tmp59 ; + unsigned int __cil_tmp60 ; + int __cil_tmp61 ; + unsigned int __cil_tmp62 ; + unsigned int __cil_tmp63 ; + struct list_head const *__cil_tmp64 ; + unsigned int __cil_tmp65 ; + unsigned int __cil_tmp66 ; + unsigned int __cil_tmp67 ; + unsigned int __cil_tmp68 ; + struct list_head *__cil_tmp69 ; + unsigned int __cil_tmp70 ; + int __cil_tmp71 ; + struct node const *__cil_tmp72 ; + unsigned int __cil_tmp73 ; + unsigned int __cil_tmp74 ; + int __cil_tmp75 ; + unsigned int __cil_tmp76 ; + unsigned int __cil_tmp77 ; + struct list_head const *__cil_tmp78 ; + struct node const *__cil_tmp79 ; + unsigned int __cil_tmp80 ; + unsigned int __cil_tmp81 ; + int __cil_tmp82 ; + int const *__cil_tmp83 ; + struct node const *__cil_tmp84 ; + unsigned int __cil_tmp85 ; + unsigned int __cil_tmp86 ; + int __cil_tmp87 ; + unsigned int __cil_tmp88 ; + unsigned int __cil_tmp89 ; + struct list_head *__cil_tmp90 ; + unsigned int __cil_tmp91 ; + unsigned int __cil_tmp92 ; + struct list_head *__cil_tmp93 ; + unsigned int __cil_tmp94 ; + unsigned int __cil_tmp95 ; + int __cil_tmp96 ; + unsigned int __cil_tmp97 ; + unsigned int __cil_tmp98 ; + unsigned int __cil_tmp99 ; + struct list_head *__cil_tmp100 ; + struct list_head *__cil_tmp101 ; + unsigned int __cil_tmp102 ; + unsigned int __cil_tmp103 ; + int __cil_tmp104 ; + struct list_head *__cil_tmp105 ; + unsigned int __cil_tmp106 ; + unsigned int __cil_tmp107 ; + unsigned int __cil_tmp108 ; + struct list_head const *__cil_tmp109 ; + unsigned int __cil_tmp110 ; + struct list_head *__cil_tmp111 ; + unsigned int __cil_tmp112 ; + struct node *__cil_tmp113 ; + unsigned int __cil_tmp114 ; + unsigned int __cil_tmp115 ; + struct list_head *__cil_tmp116 ; + unsigned long __cil_tmp117 ; + char *__cil_tmp118 ; + char *__cil_tmp119 ; + struct node *__cil_tmp120 ; + unsigned int __cil_tmp121 ; + int __cil_tmp122 ; + + { + { + while (1) { + while_0_continue: /* CIL Label */ ; + if (! head) { + { + fail(); + } + } else { + + } + goto while_0_break; + } + while_0_break: /* CIL Label */ ; + } + { + while (1) { + while_1_continue: /* CIL Label */ ; + { + __cil_tmp3 = (unsigned int )head; + __cil_tmp4 = *((struct list_head * const *)head); + __cil_tmp5 = (unsigned int )__cil_tmp4; + __cil_tmp6 = __cil_tmp5 != __cil_tmp3; + if (! __cil_tmp6) { + { + fail(); + } + } else { + + } + } + goto while_1_break; + } + while_1_break: /* CIL Label */ ; + } + { + while (1) { + while_2_continue: /* CIL Label */ ; + { + __cil_tmp7 = (unsigned int )head; + __cil_tmp8 = (unsigned int )head; + __cil_tmp9 = __cil_tmp8 + 4; + __cil_tmp10 = *((struct list_head * const *)__cil_tmp9); + __cil_tmp11 = (unsigned int )__cil_tmp10; + __cil_tmp12 = __cil_tmp11 != __cil_tmp7; + if (! __cil_tmp12) { + { + fail(); + } + } else { + + } + } + goto while_2_break; + } + while_2_break: /* CIL Label */ ; + } + __cil_tmp13 = (unsigned int )head; + __cil_tmp14 = __cil_tmp13 + 4; + __cil_tmp15 = *((struct list_head * const *)__cil_tmp14); + head = (struct list_head const *)__cil_tmp15; + { + while (1) { + while_3_continue: /* CIL Label */ ; + if (! head) { + { + fail(); + } + } else { + + } + goto while_3_break; + } + while_3_break: /* CIL Label */ ; + } + { + while (1) { + while_4_continue: /* CIL Label */ ; + { + __cil_tmp16 = (unsigned int )head; + __cil_tmp17 = *((struct list_head * const *)head); + __cil_tmp18 = (unsigned int )__cil_tmp17; + __cil_tmp19 = __cil_tmp18 != __cil_tmp16; + if (! __cil_tmp19) { + { + fail(); + } + } else { + + } + } + goto while_4_break; + } + while_4_break: /* CIL Label */ ; + } + { + while (1) { + while_5_continue: /* CIL Label */ ; + { + __cil_tmp20 = (unsigned int )head; + __cil_tmp21 = (unsigned int )head; + __cil_tmp22 = __cil_tmp21 + 4; + __cil_tmp23 = *((struct list_head * const *)__cil_tmp22); + __cil_tmp24 = (unsigned int )__cil_tmp23; + __cil_tmp25 = __cil_tmp24 != __cil_tmp20; + if (! __cil_tmp25) { + { + fail(); + } + } else { + + } + } + goto while_5_break; + } + while_5_break: /* CIL Label */ ; + } + __cil_tmp26 = (struct node *)0; + __cil_tmp27 = (unsigned int )__cil_tmp26; + __cil_tmp28 = __cil_tmp27 + 4; + __cil_tmp29 = (struct list_head *)__cil_tmp28; + __cil_tmp30 = (unsigned long )__cil_tmp29; + __cil_tmp31 = (char *)head; + __cil_tmp32 = __cil_tmp31 - __cil_tmp30; + __cil_tmp33 = (struct node *)__cil_tmp32; + node = (struct node const *)__cil_tmp33; + { + while (1) { + while_6_continue: /* CIL Label */ ; + if (! node) { + { + fail(); + } + } else { + + } + goto while_6_break; + } + while_6_break: /* CIL Label */ ; + } + { + while (1) { + while_7_continue: /* CIL Label */ ; + { + __cil_tmp34 = (unsigned int )node; + __cil_tmp35 = __cil_tmp34 + 12; + __cil_tmp36 = (struct list_head const *)__cil_tmp35; + __cil_tmp37 = (unsigned int )__cil_tmp36; + __cil_tmp38 = (unsigned int )node; + __cil_tmp39 = __cil_tmp38 + 12; + __cil_tmp40 = *((struct list_head * const *)__cil_tmp39); + __cil_tmp41 = (unsigned int )__cil_tmp40; + __cil_tmp42 = __cil_tmp41 == __cil_tmp37; + if (! __cil_tmp42) { + { + fail(); + } + } else { + + } + } + goto while_7_break; + } + while_7_break: /* CIL Label */ ; + } + { + while (1) { + while_8_continue: /* CIL Label */ ; + { + __cil_tmp43 = (unsigned int )node; + __cil_tmp44 = __cil_tmp43 + 12; + __cil_tmp45 = (struct list_head const *)__cil_tmp44; + __cil_tmp46 = (unsigned int )__cil_tmp45; + __cil_tmp47 = 12 + 4; + __cil_tmp48 = (unsigned int )node; + __cil_tmp49 = __cil_tmp48 + __cil_tmp47; + __cil_tmp50 = *((struct list_head * const *)__cil_tmp49); + __cil_tmp51 = (unsigned int )__cil_tmp50; + __cil_tmp52 = __cil_tmp51 == __cil_tmp46; + if (! __cil_tmp52) { + { + fail(); + } + } else { + + } + } + goto while_8_break; + } + while_8_break: /* CIL Label */ ; + } + { + while (1) { + while_9_continue: /* CIL Label */ ; + { + __cil_tmp53 = (unsigned int )node; + __cil_tmp54 = __cil_tmp53 + 4; + __cil_tmp55 = (struct list_head const *)__cil_tmp54; + __cil_tmp56 = (unsigned int )__cil_tmp55; + __cil_tmp57 = (unsigned int )node; + __cil_tmp58 = __cil_tmp57 + 12; + __cil_tmp59 = *((struct list_head * const *)__cil_tmp58); + __cil_tmp60 = (unsigned int )__cil_tmp59; + __cil_tmp61 = __cil_tmp60 != __cil_tmp56; + if (! __cil_tmp61) { + { + fail(); + } + } else { + + } + } + goto while_9_break; + } + while_9_break: /* CIL Label */ ; + } + { + while (1) { + while_10_continue: /* CIL Label */ ; + { + __cil_tmp62 = (unsigned int )node; + __cil_tmp63 = __cil_tmp62 + 4; + __cil_tmp64 = (struct list_head const *)__cil_tmp63; + __cil_tmp65 = (unsigned int )__cil_tmp64; + __cil_tmp66 = 12 + 4; + __cil_tmp67 = (unsigned int )node; + __cil_tmp68 = __cil_tmp67 + __cil_tmp66; + __cil_tmp69 = *((struct list_head * const *)__cil_tmp68); + __cil_tmp70 = (unsigned int )__cil_tmp69; + __cil_tmp71 = __cil_tmp70 != __cil_tmp65; + if (! __cil_tmp71) { + { + fail(); + } + } else { + + } + } + goto while_10_break; + } + while_10_break: /* CIL Label */ ; + } + { + while (1) { + while_11_continue: /* CIL Label */ ; + { + __cil_tmp72 = (struct node const *)head; + __cil_tmp73 = (unsigned int )__cil_tmp72; + __cil_tmp74 = (unsigned int )node; + __cil_tmp75 = __cil_tmp74 != __cil_tmp73; + if (! __cil_tmp75) { + { + fail(); + } + } else { + + } + } + goto while_11_break; + } + while_11_break: /* CIL Label */ ; + } + { + while (1) { + while_12_continue: /* CIL Label */ ; + { + __cil_tmp76 = (unsigned int )node; + __cil_tmp77 = __cil_tmp76 + 4; + __cil_tmp78 = (struct list_head const *)__cil_tmp77; + __cil_tmp79 = (struct node const *)__cil_tmp78; + __cil_tmp80 = (unsigned int )__cil_tmp79; + __cil_tmp81 = (unsigned int )node; + __cil_tmp82 = __cil_tmp81 != __cil_tmp80; + if (! __cil_tmp82) { + { + fail(); + } + } else { + + } + } + goto while_12_break; + } + while_12_break: /* CIL Label */ ; + } + { + while (1) { + while_13_continue: /* CIL Label */ ; + { + __cil_tmp83 = (int const *)node; + __cil_tmp84 = (struct node const *)__cil_tmp83; + __cil_tmp85 = (unsigned int )__cil_tmp84; + __cil_tmp86 = (unsigned int )node; + __cil_tmp87 = __cil_tmp86 == __cil_tmp85; + if (! __cil_tmp87) { + { + fail(); + } + } else { + + } + } + goto while_13_break; + } + while_13_break: /* CIL Label */ ; + } + { + while (1) { + while_14_continue: /* CIL Label */ ; + { + __cil_tmp88 = (unsigned int )node; + __cil_tmp89 = __cil_tmp88 + 4; + __cil_tmp90 = *((struct list_head * const *)__cil_tmp89); + __cil_tmp91 = (unsigned int )__cil_tmp90; + __cil_tmp92 = __cil_tmp91 + 4; + __cil_tmp93 = *((struct list_head **)__cil_tmp92); + __cil_tmp94 = (unsigned int )__cil_tmp93; + __cil_tmp95 = (unsigned int )head; + __cil_tmp96 = __cil_tmp95 == __cil_tmp94; + if (! __cil_tmp96) { + { + fail(); + } + } else { + + } + } + goto while_14_break; + } + while_14_break: /* CIL Label */ ; + } + { + while (1) { + while_15_continue: /* CIL Label */ ; + { + __cil_tmp97 = 4 + 4; + __cil_tmp98 = (unsigned int )node; + __cil_tmp99 = __cil_tmp98 + __cil_tmp97; + __cil_tmp100 = *((struct list_head * const *)__cil_tmp99); + __cil_tmp101 = *((struct list_head **)__cil_tmp100); + __cil_tmp102 = (unsigned int )__cil_tmp101; + __cil_tmp103 = (unsigned int )head; + __cil_tmp104 = __cil_tmp103 == __cil_tmp102; + if (! __cil_tmp104) { + { + fail(); + } + } else { + + } + } + goto while_15_break; + } + while_15_break: /* CIL Label */ ; + } + __cil_tmp105 = *((struct list_head * const *)head); + head = (struct list_head const *)__cil_tmp105; + { + while (1) { + while_16_continue: /* CIL Label */ ; + { + __cil_tmp106 = (unsigned int )head; + __cil_tmp107 = (unsigned int )node; + __cil_tmp108 = __cil_tmp107 + 4; + __cil_tmp109 = (struct list_head const *)__cil_tmp108; + __cil_tmp110 = (unsigned int )__cil_tmp109; + if (__cil_tmp110 != __cil_tmp106) { + + } else { + goto while_16_break; + } + } + __cil_tmp111 = *((struct list_head * const *)head); + head = (struct list_head const *)__cil_tmp111; + } + while_16_break: /* CIL Label */ ; + } + { + while (1) { + while_17_continue: /* CIL Label */ ; + { + __cil_tmp112 = (unsigned int )node; + __cil_tmp113 = (struct node *)0; + __cil_tmp114 = (unsigned int )__cil_tmp113; + __cil_tmp115 = __cil_tmp114 + 4; + __cil_tmp116 = (struct list_head *)__cil_tmp115; + __cil_tmp117 = (unsigned long )__cil_tmp116; + __cil_tmp118 = (char *)head; + __cil_tmp119 = __cil_tmp118 - __cil_tmp117; + __cil_tmp120 = (struct node *)__cil_tmp119; + __cil_tmp121 = (unsigned int )__cil_tmp120; + __cil_tmp122 = __cil_tmp121 == __cil_tmp112; + if (! __cil_tmp122) { + { + fail(); + } + } else { + + } + } + goto while_17_break; + } + while_17_break: /* CIL Label */ ; + } + return; +} +} +__inline static void __list_add(struct list_head *new , struct list_head *prev , struct list_head *next ) +{ unsigned int __cil_tmp4 ; + unsigned int __cil_tmp5 ; + unsigned int __cil_tmp6 ; + unsigned int __cil_tmp7 ; + + { + __cil_tmp4 = (unsigned int )next; + __cil_tmp5 = __cil_tmp4 + 4; + *((struct list_head **)__cil_tmp5) = new; + *((struct list_head **)new) = next; + __cil_tmp6 = (unsigned int )new; + __cil_tmp7 = __cil_tmp6 + 4; + *((struct list_head **)__cil_tmp7) = prev; + *((struct list_head **)prev) = new; + return; +} +} +__inline static void __list_del(struct list_head *prev , struct list_head *next ) +{ unsigned int __cil_tmp3 ; + unsigned int __cil_tmp4 ; + + { + __cil_tmp3 = (unsigned int )next; + __cil_tmp4 = __cil_tmp3 + 4; + *((struct list_head **)__cil_tmp4) = prev; + *((struct list_head **)prev) = next; + return; +} +} +__inline static void list_add(struct list_head *new , struct list_head *head ) +{ struct list_head *__cil_tmp3 ; + + { + { + __cil_tmp3 = *((struct list_head **)head); + __list_add(new, head, __cil_tmp3); + } + return; +} +} +__inline static void list_move(struct list_head *list , struct list_head *head ) +{ unsigned int __cil_tmp3 ; + unsigned int __cil_tmp4 ; + struct list_head *__cil_tmp5 ; + struct list_head *__cil_tmp6 ; + + { + { + __cil_tmp3 = (unsigned int )list; + __cil_tmp4 = __cil_tmp3 + 4; + __cil_tmp5 = *((struct list_head **)__cil_tmp4); + __cil_tmp6 = *((struct list_head **)list); + __list_del(__cil_tmp5, __cil_tmp6); + list_add(list, head); + } + return; +} +} +static void gl_insert(int value ) +{ struct node *node ; + void *tmp ; + unsigned int __cil_tmp4 ; + unsigned int __cil_tmp5 ; + unsigned int __cil_tmp6 ; + struct list_head *__cil_tmp7 ; + unsigned int __cil_tmp8 ; + unsigned int __cil_tmp9 ; + unsigned int __cil_tmp10 ; + unsigned int __cil_tmp11 ; + unsigned int __cil_tmp12 ; + unsigned int __cil_tmp13 ; + unsigned int __cil_tmp14 ; + unsigned int __cil_tmp15 ; + + { + { + __cil_tmp4 = (unsigned int )20UL; + tmp = malloc(__cil_tmp4); + node = (struct node *)tmp; + } + if (! node) { + { + abort(); + } + } else { + + } + { + *((int *)node) = value; + __cil_tmp5 = (unsigned int )node; + __cil_tmp6 = __cil_tmp5 + 4; + __cil_tmp7 = (struct list_head *)__cil_tmp6; + list_add(__cil_tmp7, & gl_list); + } + { + while (1) { + while_18_continue: /* CIL Label */ ; + __cil_tmp8 = (unsigned int )node; + __cil_tmp9 = __cil_tmp8 + 12; + __cil_tmp10 = (unsigned int )node; + __cil_tmp11 = __cil_tmp10 + 12; + *((struct list_head **)__cil_tmp9) = (struct list_head *)__cil_tmp11; + __cil_tmp12 = (unsigned int )node; + __cil_tmp13 = __cil_tmp12 + 12; + __cil_tmp14 = (unsigned int )node; + __cil_tmp15 = __cil_tmp14 + 12; + *((struct list_head **)__cil_tmp13) = (struct list_head *)__cil_tmp15; + goto while_18_break; + } + while_18_break: /* CIL Label */ ; + } + return; +} +} +static void gl_read(void) +{ int tmp ; + int tmp___0 ; + + { + { + while (1) { + while_19_continue: /* CIL Label */ ; + { + tmp = __VERIFIER_nondet_int(); + gl_insert(tmp); + tmp___0 = __VERIFIER_nondet_int(); + } + if (tmp___0) { + + } else { + goto while_19_break; + } + } + while_19_break: /* CIL Label */ ; + } + return; +} +} +static void gl_destroy(void) +{ struct list_head *next ; + struct list_head *__cil_tmp2 ; + unsigned int __cil_tmp3 ; + unsigned int __cil_tmp4 ; + struct list_head *__cil_tmp5 ; + struct node *__cil_tmp6 ; + unsigned int __cil_tmp7 ; + unsigned int __cil_tmp8 ; + struct list_head *__cil_tmp9 ; + unsigned long __cil_tmp10 ; + char *__cil_tmp11 ; + char *__cil_tmp12 ; + struct node *__cil_tmp13 ; + void *__cil_tmp14 ; + + { + { + while (1) { + while_20_continue: /* CIL Label */ ; + __cil_tmp2 = & gl_list; + next = *((struct list_head **)__cil_tmp2); + { + __cil_tmp3 = (unsigned int )next; + __cil_tmp4 = (unsigned int )(& gl_list); + if (__cil_tmp4 != __cil_tmp3) { + + } else { + goto while_20_break; + } + } + { + __cil_tmp5 = & gl_list; + *((struct list_head **)__cil_tmp5) = *((struct list_head **)next); + __cil_tmp6 = (struct node *)0; + __cil_tmp7 = (unsigned int )__cil_tmp6; + __cil_tmp8 = __cil_tmp7 + 4; + __cil_tmp9 = (struct list_head *)__cil_tmp8; + __cil_tmp10 = (unsigned long )__cil_tmp9; + __cil_tmp11 = (char *)next; + __cil_tmp12 = __cil_tmp11 - __cil_tmp10; + __cil_tmp13 = (struct node *)__cil_tmp12; + __cil_tmp14 = (void *)__cil_tmp13; + free(__cil_tmp14); + } + } + while_20_break: /* CIL Label */ ; + } + return; +} +} +static int val_from_node(struct list_head *head ) +{ struct node *entry ; + struct node *__cil_tmp3 ; + unsigned int __cil_tmp4 ; + unsigned int __cil_tmp5 ; + struct list_head *__cil_tmp6 ; + unsigned long __cil_tmp7 ; + char *__cil_tmp8 ; + char *__cil_tmp9 ; + + { + __cil_tmp3 = (struct node *)0; + __cil_tmp4 = (unsigned int )__cil_tmp3; + __cil_tmp5 = __cil_tmp4 + 4; + __cil_tmp6 = (struct list_head *)__cil_tmp5; + __cil_tmp7 = (unsigned long )__cil_tmp6; + __cil_tmp8 = (char *)head; + __cil_tmp9 = __cil_tmp8 - __cil_tmp7; + entry = (struct node *)__cil_tmp9; + return (*((int *)entry)); +} +} +static _Bool gl_sort_pass(void) +{ _Bool any_change ; + struct list_head *pos0 ; + struct list_head *pos1 ; + int val0 ; + int tmp ; + int val1 ; + int tmp___0 ; + struct list_head *__cil_tmp8 ; + unsigned int __cil_tmp9 ; + unsigned int __cil_tmp10 ; + + { + any_change = (_Bool)0; + __cil_tmp8 = & gl_list; + pos0 = *((struct list_head **)__cil_tmp8); + { + while (1) { + while_21_continue: /* CIL Label */ ; + pos1 = *((struct list_head **)pos0); + { + __cil_tmp9 = (unsigned int )pos1; + __cil_tmp10 = (unsigned int )(& gl_list); + if (__cil_tmp10 != __cil_tmp9) { + + } else { + goto while_21_break; + } + } + { + tmp = val_from_node(pos0); + val0 = tmp; + tmp___0 = val_from_node(pos1); + val1 = tmp___0; + } + if (val0 <= val1) { + pos0 = pos1; + goto while_21_continue; + } else { + + } + { + any_change = (_Bool)1; + list_move(pos0, pos1); + } + } + while_21_break: /* CIL Label */ ; + } + return (any_change); +} +} +static void gl_sort(void) +{ _Bool tmp ; + + { + { + while (1) { + while_22_continue: /* CIL Label */ ; + { + tmp = gl_sort_pass(); + } + if (tmp) { + + } else { + goto while_22_break; + } + } + while_22_break: /* CIL Label */ ; + } + return; +} +} +int main(void) +{ struct list_head const *__cil_tmp1 ; + struct list_head const *__cil_tmp2 ; + + { + { + gl_read(); + __cil_tmp1 = (struct list_head const *)(& gl_list); + inspect(__cil_tmp1); + gl_sort(); + __cil_tmp2 = (struct list_head const *)(& gl_list); + inspect(__cil_tmp2); + gl_destroy(); + } + return (0); +} +} diff --git a/data/benchmarks/sv-benchmarks/loops/bubblesort.h b/data/benchmarks/sv-benchmarks/loops/bubblesort.h new file mode 100644 index 000000000..bd00a4e92 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/bubblesort.h @@ -0,0 +1,51 @@ +/* + * bubblesort.h + * + * Created on: Mar 13, 2012 + * Author: mikhail + */ + +#ifndef BUBBLESORT_H_ +#define BUBBLESORT_H_ + +void bubblesort(int size, int item[]) +{ + int a, b, t; + + for(a = 1; a < size; ++a) + { + for(b = size-1; b >= a; --b) + { + + if (b-1 < size && b < size) + { + if(item[ b - 1] > item[ b ]) + { + t = item[ b - 1]; + item[ b - 1] = item[ b ]; + item[ b ] = t; + } + } + } + } +} + +void bubblesort1(int size, int item[]) +{ + int j, i, pivot; + + for(j = 1; j < size; ++j) + { + pivot = item[j]; + i = j - 1; + + while(i >= 0 && item[i] > pivot) + { + item[i+1] = item[i]; + i--; + } + item[i+1] = pivot; + } +} + +#endif /* BUBBLESORT_H_ */ diff --git a/data/benchmarks/sv-benchmarks/loops/compact.c b/data/benchmarks/sv-benchmarks/loops/compact.c new file mode 100644 index 000000000..8938cb5d0 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/compact.c @@ -0,0 +1,24 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "compact.c", 3, "reach_error"); } + +/* Licensed under the GPLv2 */ + +extern char __VERIFIER_nondet_char(void); + +int main(int argc, char **argv) +{ + static char array[1024 * 100]; + char ND = __VERIFIER_nondet_char(); + unsigned int i; + + for (i = 0; i < sizeof(array); i++) + array[i] = __VERIFIER_nondet_char(); + + for (i = 0; i < sizeof(array); i++) + if (array[i] == ND) + return i; + +ERROR: {reach_error();abort();} + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops/count_up_down-1.c b/data/benchmarks/sv-benchmarks/loops/count_up_down-1.c new file mode 100644 index 000000000..f35d02a2e --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/count_up_down-1.c @@ -0,0 +1,24 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "count_up_down-1.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +unsigned int __VERIFIER_nondet_uint(); + +int main() +{ + unsigned int n = __VERIFIER_nondet_uint(); + unsigned int x=n, y=0; + while(x>0) + { + x--; + y++; + } + __VERIFIER_assert(y==n); +} + diff --git a/data/benchmarks/sv-benchmarks/loops/count_up_down-2.c b/data/benchmarks/sv-benchmarks/loops/count_up_down-2.c new file mode 100644 index 000000000..fb56e094e --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/count_up_down-2.c @@ -0,0 +1,23 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "count_up_down-2.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +unsigned int __VERIFIER_nondet_uint(); + +int main() +{ + unsigned int n = __VERIFIER_nondet_uint(); + unsigned int x=n, y=0; + while(x>0) + { + x--; + y++; + } + __VERIFIER_assert(y!=n); +} diff --git a/data/benchmarks/sv-benchmarks/loops/eureka_01-1.c b/data/benchmarks/sv-benchmarks/loops/eureka_01-1.c new file mode 100644 index 000000000..6a6b2685d --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/eureka_01-1.c @@ -0,0 +1,67 @@ +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "eureka_01-1.c", 7, "reach_error"); } +extern int __VERIFIER_nondet_int(); + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int INFINITY = 899; +int main(){ + int nodecount = __VERIFIER_nondet_int(); + int edgecount = __VERIFIER_nondet_int(); + if (!(0 <= nodecount && nodecount <= 4)) return 0; + if (!(0 <= edgecount && edgecount <= 19)) return 0; + int source = 0; + int Source[20] = {0,4,1,1,0,0,1,3,4,4,2,2,3,0,0,3,1,2,2,3}; + int Dest[20] = {1,3,4,1,1,4,3,4,3,0,0,0,0,2,3,0,2,1,0,4}; + int Weight[20] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19}; + int distance[5]; + int x,y; + int i,j; + + for(i = 0; i < nodecount; i++){ + if(i == source){ + distance[i] = 0; + } + else { + distance[i] = INFINITY; + } + } + + for(i = 0; i < nodecount; i++) + { + for(j = 0; j < edgecount; j++) + { + x = Dest[j]; + y = Source[j]; + if(distance[x] > distance[y] + Weight[j]) + { + distance[x] = -1; + } + } + } + for(i = 0; i < edgecount; i++) + { + x = Dest[i]; + y = Source[i]; + if(distance[x] > distance[y] + Weight[i]) + { + return 0; + } + } + + for(i = 0; i < nodecount; i++) + { + __VERIFIER_assert(distance[i]>=0); + } + return 0; +} + diff --git a/data/benchmarks/sv-benchmarks/loops/eureka_01-2.c b/data/benchmarks/sv-benchmarks/loops/eureka_01-2.c new file mode 100644 index 000000000..c4cdc2161 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/eureka_01-2.c @@ -0,0 +1,62 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "eureka_01-2.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int INFINITY = 899; + +int main(){ + int nodecount = 5; + int edgecount = 20; + int source = 0; + int Source[20] = {0,4,1,1,0,0,1,3,4,4,2,2,3,0,0,3,1,2,2,3}; + int Dest[20] = {1,3,4,1,1,4,3,4,3,0,0,0,0,2,3,0,2,1,0,4}; + int Weight[20] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19}; + int distance[5]; + int x,y; + int i,j; + + for(i = 0; i < nodecount; i++){ + if(i == source){ + distance[i] = 0; + } + else { + distance[i] = INFINITY; + } + } + + for(i = 0; i < nodecount; i++) + { + for(j = 0; j < edgecount; j++) + { + x = Dest[j]; + y = Source[j]; + if(distance[x] > distance[y] + Weight[j]) + { + distance[x] = distance[y] + Weight[j]; + } + } + } + for(i = 0; i < edgecount; i++) + { + x = Dest[i]; + y = Source[i]; + if(distance[x] > distance[y] + Weight[i]) + { + return 0; + } + } + + for(i = 0; i < nodecount; i++) + { + __VERIFIER_assert(distance[i]>=0); + } + + return 0; +} + diff --git a/data/benchmarks/sv-benchmarks/loops/eureka_05.c b/data/benchmarks/sv-benchmarks/loops/eureka_05.c new file mode 100644 index 000000000..96d13725a --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/eureka_05.c @@ -0,0 +1,44 @@ +extern void abort(void); +#include +void reach_error() { assert(0); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +#define SIZE 5 + +int array[SIZE]; +int n=SIZE; + +void SelectionSort() +{ + int lh, rh, i, temp; + + for (lh = 0; lh < n; lh++) { + rh = lh; + for (i = lh + 1; i < n; i++) + if (array[i] < array[rh]) rh = i; + temp = array[lh]; + array[lh] = array[rh]; + array[rh] = temp; + } +} + +int main(void){ + + int array[SIZE],i; + + for(i=SIZE-1; i>=0; i--) + array[i]=i; + + SelectionSort(); + + for(i=0; i0)) return 0; + for(i=0; i0)) return 0; + for(i=0; 1; i++) + { + __VERIFIER_assert(x==0); + } + __VERIFIER_assert(x==0); +} + diff --git a/data/benchmarks/sv-benchmarks/loops/for_infinite_loop_2.c b/data/benchmarks/sv-benchmarks/loops/for_infinite_loop_2.c new file mode 100644 index 000000000..e12fa291a --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/for_infinite_loop_2.c @@ -0,0 +1,29 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "for_infinite_loop_2.c", 3, "reach_error"); } + +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +int __VERIFIER_nondet_int(); + +int main() { + unsigned int i=0; + int x=0, y=0; + int n=__VERIFIER_nondet_int(); + if (!(n>0)) return 0; + for(i=0; 1; i++) + { + __VERIFIER_assert(x==0); + } + __VERIFIER_assert(x!=0); +} + diff --git a/data/benchmarks/sv-benchmarks/loops/heavy-1.c b/data/benchmarks/sv-benchmarks/loops/heavy-1.c new file mode 100644 index 000000000..922eaffef --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/heavy-1.c @@ -0,0 +1,23 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "heavy-1.c", 3, "reach_error"); } + +/* Licensed under the GPLv2 */ + +int main(int argc, char **argv) +{ + static char array[1024 * 1024] = { 1 }; + unsigned int a = 1, i, j, k; + + for (i = 0; i < sizeof(array); i++) + for (j = 0; j < sizeof(array); j++) + for (k = 0; k < sizeof(array); k++) + array[i] = array[j] + array[k]; + + if (a != 0) + goto ERROR; + + return array[100]; +ERROR: {reach_error();abort();} + return 1; +} diff --git a/data/benchmarks/sv-benchmarks/loops/heavy-2.c b/data/benchmarks/sv-benchmarks/loops/heavy-2.c new file mode 100644 index 000000000..d65a9bc80 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/heavy-2.c @@ -0,0 +1,23 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "heavy-2.c", 3, "reach_error"); } + +/* Licensed under the GPLv2 */ + +int main(int argc, char **argv) +{ + static char array[1024 * 1024] = { 1 }; + unsigned int a = 1, i, j, k; + + for (i = 0; i < sizeof(array); i++) + for (j = 0; j < sizeof(array); j++) + for (k = 0; k < sizeof(array); k++) + array[i] = array[j] + array[k]; + + if (a != 1) + goto ERROR; + + return array[100]; +ERROR: {reach_error();abort();} + return 1; +} diff --git a/data/benchmarks/sv-benchmarks/loops/insertion_sort-1-2.c b/data/benchmarks/sv-benchmarks/loops/insertion_sort-1-2.c new file mode 100644 index 000000000..bda6aed42 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/insertion_sort-1-2.c @@ -0,0 +1,35 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "insertion_sort-1-2.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +unsigned int __VERIFIER_nondet_uint(); +extern int __VERIFIER_nondet_int(); +int main() { + unsigned int SIZE=__VERIFIER_nondet_uint(); + if (SIZE >= 4000000000 / sizeof(int)) { + return 0; + } + int i, j, k, key; + int v[SIZE]; + for (j=0;j=0) && (v[i]>key)) { + if (i<2) + v[i+1] = v[i]; + i = i - 1; + } + v[i+1] = key; + } + for (k=1;k=0) && (v[i]>key)) { + if (i<2) + v[i+1] = v[i]; + i = i - 1; + } + v[i+1] = key; + } + for (k=1;k= 4000000000 / sizeof(int)) { + return 0; + } + int i, j, k, key; + int v[SIZE]; + for (j=0;j=0) && (v[i]>key)) { + v[i+1] = v[i]; + i = i - 1; + } + v[i+1] = key; + } + for (k=1;k=0) && (v[i]>key)) { + v[i+1] = v[i]; + i = i - 1; + } + v[i+1] = key; + } + for (k=1;k 0)) {abort();} + char str1[MAX], str2[MAX]; + int cont, i, j; + cont = 0; + + for (i=0; i= 0; i--) { + str2[j] = str1[0]; + j++; + } + + j = MAX-1; + for (i=0; i= 0; i--) { + str2[j] = str1[0]; + j++; + } + + j = MAX-1; + for (i=0; i= 0; i--) { + str2[j] = str1[i]; + j++; + } + + j = max-1; + for (i=0; i 1 && SIZE < MAX) { + int *a = calloc(SIZE,sizeof(int)); + a[SIZE/2]=3; + __VERIFIER_assert(linear_search(a,SIZE,3)); + } +} diff --git a/data/benchmarks/sv-benchmarks/loops/linear_search.c b/data/benchmarks/sv-benchmarks/loops/linear_search.c new file mode 100644 index 000000000..d693a232b --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/linear_search.c @@ -0,0 +1,32 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "linear_search.c", 3, "reach_error"); } +extern void *calloc(unsigned int num, unsigned int size); + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +unsigned int __VERIFIER_nondet_uint(); +unsigned int SIZE; +const unsigned int MAX = 100000; +int linear_search(int *a, int n, int q) { + unsigned int j=0; + while (j 1 && SIZE < MAX) { + int *a = calloc(SIZE,sizeof(int)); + a[SIZE/2]=3; + __VERIFIER_assert(linear_search(a,SIZE,3)); + } +} diff --git a/data/benchmarks/sv-benchmarks/loops/lu.cmp.c b/data/benchmarks/sv-benchmarks/loops/lu.cmp.c new file mode 100644 index 000000000..b8a1d116b --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/lu.cmp.c @@ -0,0 +1,156 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "lu.cmp.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +/*************************************************************************/ +/* */ +/* SNU-RT Benchmark Suite for Worst Case Timing Analysis */ +/* ===================================================== */ +/* Collected and Modified by S.-S. Lim */ +/* sslim@archi.snu.ac.kr */ +/* Real-Time Research Group */ +/* Seoul National University */ +/* */ +/* */ +/* < Features > - restrictions for our experimental environment */ +/* */ +/* 1. Completely structured. */ +/* - There are no unconditional jumps. */ +/* - There are no exit from loop bodies. */ +/* (There are no 'break' or 'return' in loop bodies) */ +/* 2. No 'switch' statements. */ +/* 3. No 'do..while' statements. */ +/* 4. Expressions are restricted. */ +/* - There are no multiple expressions joined by 'or', */ +/* 'and' operations. */ +/* 5. No library calls. */ +/* - All the functions needed are implemented in the */ +/* source file. */ +/* */ +/* */ +/*************************************************************************/ +/* */ +/* FILE: ludcmp.c */ +/* SOURCE : Turbo C Programming for Engineering */ +/* */ +/* DESCRIPTION : */ +/* */ +/* Simultaneous linear equations by LU decomposition. */ +/* The arrays a[][] and b[] are input and the array x[] is output */ +/* row vector. */ +/* The variable n is the number of equations. */ +/* The input arrays are initialized in function main. */ +/* */ +/* */ +/* REMARK : */ +/* */ +/* EXECUTION TIME : */ +/* */ +/* */ +/*************************************************************************/ + + + + + +/* +** Benchmark Suite for Real-Time Applications, by Sung-Soo Lim +** +** III-4. ludcmp.c : Simultaneous Linear Equations by LU Decomposition +** (from the book C Programming for EEs by Hyun Soon Ahn) +*/ + + + +double a[50][50], b[50], x[50]; + +int ludcmp(int nmax, int n, double eps); + + +static double fabs(double n) +{ + double f; + + if (n >= 0) f = n; + else f = -n; + return f; +} + +int main() +{ + + int i, j, nmax = 50, n = 5, chkerr; + double eps, w; + + eps = 1.0e-6; + + for(i = 0; i <= n; i++) + { + w = 0.0; + for(j = 0; j <= n; j++) + { + a[i][j] = (i + 1) + (j + 1); + if(i == j) a[i][j] *= 10.0; + w += a[i][j]; + } + __VERIFIER_assert(i < 50); + b[i] = w; + } + + chkerr = ludcmp(nmax, n, eps); + + return 0; +} + +int ludcmp(int nmax, int n, double eps) +{ + + int i, j, k; + double w, y[100]; + + if(n > 99 || eps <= 0.0) return(999); + for(i = 0; i < n; i++) + { + if(fabs(a[i][i]) <= eps) return(1); + for(j = i+1; j <= n; j++) + { + w = a[j][i]; + if(i != 0) + for(k = 0; k < i; k++) + w -= a[j][k] * a[k][i]; + a[j][i] = w / a[i][i]; + } + for(j = i+1; j <= n; j++) + { + w = a[i+1][j]; + for(k = 0; k <= i; k++) + w -= a[i+1][k] * a[k][j]; + a[i+1][j] = w; + } + } + y[0] = b[0]; + for(i = 1; i <= n; i++) + { + w = b[i]; + for(j = 0; j < i; j++) + w -= a[i][j] * y[j]; + y[i] = w; + } + x[n] = y[n] / a[n][n]; + for(i = n-1; i >= 0; i--) + { + w = y[i]; + for(j = i+1; j <= n; j++) + w -= a[i][j] * x[j]; + x[i] = w / a[i][i] ; + } + return(0); + +} + diff --git a/data/benchmarks/sv-benchmarks/loops/ludcmp.c b/data/benchmarks/sv-benchmarks/loops/ludcmp.c new file mode 100644 index 000000000..4f7254d98 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/ludcmp.c @@ -0,0 +1,156 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "ludcmp.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +/*************************************************************************/ +/* */ +/* SNU-RT Benchmark Suite for Worst Case Timing Analysis */ +/* ===================================================== */ +/* Collected and Modified by S.-S. Lim */ +/* sslim@archi.snu.ac.kr */ +/* Real-Time Research Group */ +/* Seoul National University */ +/* */ +/* */ +/* < Features > - restrictions for our experimental environment */ +/* */ +/* 1. Completely structured. */ +/* - There are no unconditional jumps. */ +/* - There are no exit from loop bodies. */ +/* (There are no 'break' or 'return' in loop bodies) */ +/* 2. No 'switch' statements. */ +/* 3. No 'do..while' statements. */ +/* 4. Expressions are restricted. */ +/* - There are no multiple expressions joined by 'or', */ +/* 'and' operations. */ +/* 5. No library calls. */ +/* - All the functions needed are implemented in the */ +/* source file. */ +/* */ +/* */ +/*************************************************************************/ +/* */ +/* FILE: ludcmp.c */ +/* SOURCE : Turbo C Programming for Engineering */ +/* */ +/* DESCRIPTION : */ +/* */ +/* Simultaneous linear equations by LU decomposition. */ +/* The arrays a[][] and b[] are input and the array x[] is output */ +/* row vector. */ +/* The variable n is the number of equations. */ +/* The input arrays are initialized in function main. */ +/* */ +/* */ +/* REMARK : */ +/* */ +/* EXECUTION TIME : */ +/* */ +/* */ +/*************************************************************************/ + + + + + +/* +** Benchmark Suite for Real-Time Applications, by Sung-Soo Lim +** +** III-4. ludcmp.c : Simultaneous Linear Equations by LU Decomposition +** (from the book C Programming for EEs by Hyun Soon Ahn) +*/ + + + +double a[50][50], b[50], x[50]; + +int ludcmp(int nmax, int n, double eps); + + +static double fabs(double n) +{ + double f; + + if (n >= 0) f = n; + else f = -n; + return f; +} + +int main() +{ + + int i, j, nmax = 50, n = 5, chkerr; + double eps, w; + + eps = 1.0e-6; + + for(i = 0; i <= n; i++) + { + w = 0.0; + for(j = 0; j <= n; j++) + { + a[i][j] = (i + 1) + (j + 1); + if(i == j) a[i][j] *= 10.0; + w += a[i][j]; + } + __VERIFIER_assert(i==2); + b[i] = w; + } + + chkerr = ludcmp(nmax, n, eps); + + return 0; +} + +int ludcmp(int nmax, int n, double eps) +{ + + int i, j, k; + double w, y[100]; + + if(n > 99 || eps <= 0.0) return(999); + for(i = 0; i < n; i++) + { + if(fabs(a[i][i]) <= eps) return(1); + for(j = i+1; j <= n; j++) + { + w = a[j][i]; + if(i != 0) + for(k = 0; k < i; k++) + w -= a[j][k] * a[k][i]; + a[j][i] = w / a[i][i]; + } + for(j = i+1; j <= n; j++) + { + w = a[i+1][j]; + for(k = 0; k <= i; k++) + w -= a[i+1][k] * a[k][j]; + a[i+1][j] = w; + } + } + y[0] = b[0]; + for(i = 1; i <= n; i++) + { + w = b[i]; + for(j = 0; j < i; j++) + w -= a[i][j] * y[j]; + y[i] = w; + } + x[n] = y[n] / a[n][n]; + for(i = n-1; i >= 0; i--) + { + w = y[i]; + for(j = i+1; j <= n; j++) + w -= a[i][j] * x[j]; + x[i] = w / a[i][i] ; + } + return(0); + +} + diff --git a/data/benchmarks/sv-benchmarks/loops/matrix-1.c b/data/benchmarks/sv-benchmarks/loops/matrix-1.c new file mode 100644 index 000000000..fdf0f0204 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/matrix-1.c @@ -0,0 +1,34 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "matrix-1.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int __VERIFIER_nondet_int(); + +int main() +{ + unsigned int N_LIN=1; + unsigned int N_COL=1; + unsigned int j,k; + int matriz[N_COL][N_LIN], maior; + + maior = __VERIFIER_nondet_int(); + for(j=0;j=maior) + maior = matriz[j][k]; + } + + __VERIFIER_assert(matriz[0][0]<=maior); + + return 0; +} + diff --git a/data/benchmarks/sv-benchmarks/loops/matrix-2-2.c b/data/benchmarks/sv-benchmarks/loops/matrix-2-2.c new file mode 100644 index 000000000..82dbdbfeb --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/matrix-2-2.c @@ -0,0 +1,38 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "matrix-2-2.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +extern unsigned int __VERIFIER_nondet_uint(); +extern int __VERIFIER_nondet_int(); + +int main() +{ + unsigned int N_LIN=__VERIFIER_nondet_uint(); + unsigned int N_COL=__VERIFIER_nondet_uint(); + if (N_LIN >= 4000000000 / sizeof(int) || N_COL >= 4000000000 / sizeof(int)) { + return 0; + } + unsigned int j,k; + int matriz[N_COL][N_LIN], maior; + + maior = __VERIFIER_nondet_int(); + for(j=0;jmaior) + maior = matriz[j][k]; + } + + for(j=0;jmaior) + maior = matriz[j][k]; + } + + for(j=0;j=0 && len<5); + return 1; + + +} + diff --git a/data/benchmarks/sv-benchmarks/loops/n.c24.c b/data/benchmarks/sv-benchmarks/loops/n.c24.c new file mode 100644 index 000000000..949581df7 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/n.c24.c @@ -0,0 +1,93 @@ +extern void abort(void); +#include +void reach_error() { assert(0); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +#include +extern int __VERIFIER_nondet_int(void); + +int bar(char *x) +{ + return __VERIFIER_nondet_int(); +} + +int foo(int * x){ + *x = __VERIFIER_nondet_int(); + return *x; +} +int main(){ + int i,j,ret,offset, tmp_cnt, tel_data,klen; + /* source snippet*/ + char x [1000]; + + for (i = 0; i < 1000; ++i) + x[i]= __VERIFIER_nondet_int(); + + for (i= 0; i < 1000; ++i){ + + ret = __VERIFIER_nondet_int(); + if (ret != 0) + return -1; + tmp_cnt = __VERIFIER_nondet_int(); + if (tmp_cnt < 0) + return -1; + + + for ( offset = 0; offset < tmp_cnt; offset++ ) + { + ret = foo(&tel_data ) ; + if ( ( ret == 0 ) || ( ret == 1 ) ) + { + + return 1 ; + } + else if ( ret == -1 ) + { + + continue ; + } + + + for ( j = 0; x[j] != 0; j++ ) + { + + if ( x[i] == 1) + { + + memmove( &x[i], &x[i + 1], (1001) - ( i + 1 ) ) ; + } + } + + + ret = bar( x) ; + + if ( ret != -1 ) + { + + continue ; + } + + + klen = strlen(x ) ; + + if ( klen > 20 ) + { + + x[i]=0; + + } + else if ( klen > 0 ) + { + x[i] = -1; + } + } + } + __VERIFIER_assert(offset>=0 && offset<=1000); + return 1; +} + diff --git a/data/benchmarks/sv-benchmarks/loops/n.c40.c b/data/benchmarks/sv-benchmarks/loops/n.c40.c new file mode 100644 index 000000000..f50274dda --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/n.c40.c @@ -0,0 +1,25 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "n.c40.c", 3, "reach_error"); } + +int __VERIFIER_nondet_int(); + + char x[100], y[100]; + int i,j,k; + +int main() { + k = __VERIFIER_nondet_int(); + + i = 0; + while(x[i] != 0){ + y[i] = x[i]; + i++; + } + y[i] = 0; + + if(k >= 0 && k < i) + if(y[k] == 0) + {ERROR: {reach_error();abort();}} + + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops/nec11.c b/data/benchmarks/sv-benchmarks/loops/nec11.c new file mode 100644 index 000000000..03c2f5872 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/nec11.c @@ -0,0 +1,34 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "nec11.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +_Bool __VERIFIER_nondet_bool(); + +int main(){ + int a[5]; + int len=0; + _Bool c=__VERIFIER_nondet_bool(); + int i; + + + while(c){ + + if (len==4) + len =0; + + a[len]=0; + + len++; + } + __VERIFIER_assert(len==5); + return 1; + + +} diff --git a/data/benchmarks/sv-benchmarks/loops/nec20.c b/data/benchmarks/sv-benchmarks/loops/nec20.c new file mode 100644 index 000000000..5350229f1 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/nec20.c @@ -0,0 +1,46 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "nec20.c", 3, "reach_error"); } +unsigned int __VERIFIER_nondet_uint(); + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int b; +_Bool __VERIFIER_nondet_bool(); +int main(){ + _Bool k=__VERIFIER_nondet_bool(); + unsigned int i,n,j; + int a[1025]; + + if (k){ + n=0; + } else { + n=1023; + } + + i=0; + j=__VERIFIER_nondet_uint(); + if (j > 10000) + return 0; + + while ( i <= n){ + i++; + j= j +2; + } + + a[i]=0; + __VERIFIER_assert(j<1025); + a[j]=0; + a[b]=0; + if (b >= 0 && b < 1023) + a[b]=1; + else + a[b%1023] =1; + + return 1; + +} diff --git a/data/benchmarks/sv-benchmarks/loops/nec40.c b/data/benchmarks/sv-benchmarks/loops/nec40.c new file mode 100644 index 000000000..baa2cae29 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/nec40.c @@ -0,0 +1,31 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "nec40.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int __VERIFIER_nondet_int(); + + char x[100], y[100]; + int i,j,k; + +int main() { + k = __VERIFIER_nondet_int(); + + i = 0; + while(x[i] != 0){ + y[i] = x[i]; + i++; + } + y[i] = 0; + + if(k >= 0 && k < i) + if(y[k] != 0) + {__VERIFIER_assert(0);} + + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops/q1.h b/data/benchmarks/sv-benchmarks/loops/q1.h new file mode 100644 index 000000000..5afb71fe7 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/q1.h @@ -0,0 +1,56 @@ +/* + * q1.h + * + * Created on: Apr 10, 2012 + * Author: mikhail + */ + +#ifndef Q1_H_ +#define Q1_H_ + +#include "bubblesort.h" +extern int __VERIFIER_nondet_int(); +void q1(int argc, char* argv[]) +{ + if(argc < 2) + return; + + int N = __VERIFIER_nondet_int(); + int a[N]; + + switch(2) + { + case 0: // crescente + for(int i=0; i < N; ++i) a[i] = i; + break; + + case 1: // decrescente + for(int i=(N-1); i >= 0; --i) a[i] = N-1-i; + break; + + case 2: // aleatorio + for(int i=0; i < N; ++i) a[i] = i; + + for (int i=0; i +void reach_error() { assert(0); } + +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +#define MAX 5 + +extern char __VERIFIER_nondet_char(); + +int main() +{ + char string_A[MAX], string_B[MAX]; + int i, j, nc_A, nc_B, found=0; + + for(i=0; i= nc_A)) return 0; + + + i=j=0; + while((inc_B-1); + + __VERIFIER_assert(found == 0 || found == 1); + + return 0; +} + diff --git a/data/benchmarks/sv-benchmarks/loops/string-2.c b/data/benchmarks/sv-benchmarks/loops/string-2.c new file mode 100644 index 000000000..89a0f7b6e --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/string-2.c @@ -0,0 +1,66 @@ +extern void abort(void); +#include +void reach_error() { assert(0); } + +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +#define MAX 5 + +extern char __VERIFIER_nondet_char(); + +int main() +{ + char string_A[MAX], string_B[MAX]; + int i, j, nc_A, nc_B, found=0; + + + for(i=0; i= nc_A)) return 0; + + + i=j=0; + while((inc_B-1)< +void reach_error() { assert(0); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +#define a (2) +extern unsigned int __VERIFIER_nondet_uint(); +int main() { + int i, n=__VERIFIER_nondet_uint(), sn=0; + for(i=1; i<=n; i++) { + if (i<10) + sn = sn + a; + } + __VERIFIER_assert(sn==n*a || sn == 0); +} diff --git a/data/benchmarks/sv-benchmarks/loops/sum01-2.c b/data/benchmarks/sv-benchmarks/loops/sum01-2.c new file mode 100644 index 000000000..3b83f69b0 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/sum01-2.c @@ -0,0 +1,22 @@ +extern void abort(void); +#include +void reach_error() { assert(0); } + +extern void __VERIFIER_assert(int cond); + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +#define a (2) +extern int __VERIFIER_nondet_int(); +int main() { + int i, n=__VERIFIER_nondet_int(), sn=0; + if (!(n < 1000 && n >= -1000)) return 0; + for(i=1; i<=n; i++) { + sn = sn + a; + } + __VERIFIER_assert(sn==n*a || sn == 0); +} diff --git a/data/benchmarks/sv-benchmarks/loops/sum01_bug02.c b/data/benchmarks/sv-benchmarks/loops/sum01_bug02.c new file mode 100644 index 000000000..d8d39433b --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/sum01_bug02.c @@ -0,0 +1,24 @@ +extern void abort(void); +#include +void reach_error() { assert(0); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +#define a (2) +extern unsigned int __VERIFIER_nondet_uint(); +int main() { + int i, j=10, n=__VERIFIER_nondet_uint(), sn=0; + if (n==2147483647) { + return 0; + } + for(i=1; i<=n; i++) { + if (i +void reach_error() { assert(0); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +#define a (2) +extern unsigned int __VERIFIER_nondet_uint(); +int main() { + int i, n=__VERIFIER_nondet_uint(), sn=0; + for(i=1; i<=n; i++) { + sn = sn + a; + if (i==4) sn=-10; + } + __VERIFIER_assert(sn==n*a || sn == 0); +} diff --git a/data/benchmarks/sv-benchmarks/loops/sum03-1.c b/data/benchmarks/sv-benchmarks/loops/sum03-1.c new file mode 100644 index 000000000..eb63b5ab7 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/sum03-1.c @@ -0,0 +1,27 @@ +extern void abort(void); +#include +void reach_error() { assert(0); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +#define a (2) +extern unsigned int __VERIFIER_nondet_uint(); + +int main() { + int sn=0; + unsigned int loop1=__VERIFIER_nondet_uint(), n1=__VERIFIER_nondet_uint(); + unsigned int x=0; + + while(true){ + if (x<10) { + sn = sn + a; + } + x++; + __VERIFIER_assert(sn==x*a || sn == 0); + } +} + diff --git a/data/benchmarks/sv-benchmarks/loops/sum03-2.c b/data/benchmarks/sv-benchmarks/loops/sum03-2.c new file mode 100644 index 000000000..51eb8624e --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/sum03-2.c @@ -0,0 +1,25 @@ +extern void abort(void); +#include +void reach_error() { assert(0); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +#define a (2) +unsigned int __VERIFIER_nondet_uint(); + +int main() { + unsigned int sn=0; + unsigned int loop1=__VERIFIER_nondet_uint(), n1=__VERIFIER_nondet_uint(); + unsigned int x=0; + + while(true){ + sn = sn + a; + x++; + __VERIFIER_assert(sn==x*a || sn == 0); + } +} + diff --git a/data/benchmarks/sv-benchmarks/loops/sum04-1.c b/data/benchmarks/sv-benchmarks/loops/sum04-1.c new file mode 100644 index 000000000..7a3262ec9 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/sum04-1.c @@ -0,0 +1,21 @@ +extern void abort(void); +#include +void reach_error() { assert(0); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +#define a (2) +#define SIZE 8 +int main() { + int i, sn=0; + for(i=1; i<=SIZE; i++) { + if (i<4) + sn = sn + a; + } + __VERIFIER_assert(sn==SIZE*a || sn == 0); +} + diff --git a/data/benchmarks/sv-benchmarks/loops/sum04-2.c b/data/benchmarks/sv-benchmarks/loops/sum04-2.c new file mode 100644 index 000000000..0fa11150a --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/sum04-2.c @@ -0,0 +1,20 @@ +extern void abort(void); +#include +void reach_error() { assert(0); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +#define a (2) +#define SIZE 8 +int main() { + int i, sn=0; + for(i=1; i<=SIZE; i++) { + sn = sn + a; + } + __VERIFIER_assert(sn==SIZE*a || sn == 0); +} + diff --git a/data/benchmarks/sv-benchmarks/loops/sum_array-1.c b/data/benchmarks/sv-benchmarks/loops/sum_array-1.c new file mode 100644 index 000000000..6aa5a9fa3 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/sum_array-1.c @@ -0,0 +1,32 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "sum_array-1.c", 3, "reach_error"); } + +extern int __VERIFIER_nondet_int(void); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +extern unsigned int __VERIFIER_nondet_uint(); + +int main() +{ + unsigned int M = __VERIFIER_nondet_uint(); + int A[M], B[M], C[M]; + unsigned int i; + + for(i=0;i +void reach_error() { assert(0); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} + +extern int __VERIFIER_nondet_int(void); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +extern unsigned int __VERIFIER_nondet_uint(); + +#define LIMIT 1000000 + +int main() +{ + unsigned int M = __VERIFIER_nondet_uint(); + if (M > LIMIT) { + return 0; + } + int A[M], B[M], C[M]; + unsigned int i; + + for(i=0;i +void reach_error() { assert(0); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} + +extern int __VERIFIER_nondet_int(void); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +extern unsigned int __VERIFIER_nondet_uint(); + +#define LIMIT 1000000 + +int main() +{ + unsigned int M = __VERIFIER_nondet_uint(); + if (M > LIMIT) { + return 0; + } + int A[M], B[M], C[M]; + unsigned int i; + + for(i=0;i= -LIMIT)) return 0; + } + + for(i=0;i= -LIMIT)) return 0; + } + + for(i=0;i +void reach_error() { assert(0); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} + +extern int __VERIFIER_nondet_int(void); +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +extern unsigned int __VERIFIER_nondet_uint(); + +#define LIMIT 1000000 + +int main() +{ + unsigned int M = __VERIFIER_nondet_uint(); + int A[M], B[M], C[M]; + unsigned int i; + + for(i=0;i-100)) return 0; + if (!(x<200)) return 0; + if (!(z>100)) return 0; + if (!(z<200)) return 0; + while(x<100 && z>100) + { + _Bool tmp=__VERIFIER_nondet_bool(); + if (tmp) { + x++; + } else { + x--; + z--; + } + } + + __VERIFIER_assert(x>=100 || z<=100); + + return 0; +} + + diff --git a/data/benchmarks/sv-benchmarks/loops/terminator_02-2_abstracted.c b/data/benchmarks/sv-benchmarks/loops/terminator_02-2_abstracted.c new file mode 100644 index 000000000..73b279b6c --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/terminator_02-2_abstracted.c @@ -0,0 +1,49 @@ +extern void abort(void); +extern int __VERIFIER_nondet_int(); +extern _Bool __VERIFIER_nondet_bool(); +extern char __VERIFIER_nondet_char(); +extern double __VERIFIER_nondet_double(); +extern float __VERIFIER_nondet_float(); +extern unsigned long __VERIFIER_nondet_ulong(); +extern unsigned long long __VERIFIER_nondet_ulonglong(); +extern unsigned int __VERIFIER_nondet_uint(); +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "terminator_02-2_abstracted.c", 3, "reach_error"); } + +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int __VERIFIER_nondet_int(); +_Bool __VERIFIER_nondet_bool(); + +int main() +{ + int x=__VERIFIER_nondet_int(); + int z=__VERIFIER_nondet_int(); + if (!(x>-100)) return 0; + if (!(x<200)) return 0; + if (!(z>100)) return 0; + if (!(z<200)) return 0; + // START HAVOCABSTRACTION + if ((z > (100)) & (x < (100))) { + z = __VERIFIER_nondet_int(); + x = __VERIFIER_nondet_int(); + } + if ((z > (100)) & (x < (100))) abort(); + // END HAVOCABSTRACTION + + __VERIFIER_assert(x>=100 || z<=100); + + return 0; +} + + diff --git a/data/benchmarks/sv-benchmarks/loops/terminator_03-1.c b/data/benchmarks/sv-benchmarks/loops/terminator_03-1.c new file mode 100644 index 000000000..0abac5056 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/terminator_03-1.c @@ -0,0 +1,30 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "terminator_03-1.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +extern int __VERIFIER_nondet_int(); + +int main() +{ + int x=__VERIFIER_nondet_int(); + int y=__VERIFIER_nondet_int(); + + if (y>0) + { + while(x<100) + { + x=x+y; + } + } + __VERIFIER_assert(y<=0 || (y<0 && x>=100)); + + return 0; +} + + diff --git a/data/benchmarks/sv-benchmarks/loops/terminator_03-2.c b/data/benchmarks/sv-benchmarks/loops/terminator_03-2.c new file mode 100644 index 000000000..e38613ea3 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/terminator_03-2.c @@ -0,0 +1,36 @@ +extern void abort(void); +#include +void reach_error() { assert(0); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int __VERIFIER_nondet_int(); +_Bool __VERIFIER_nondet_bool(); + +#define LIMIT 1000000 + +int main() { + int x=__VERIFIER_nondet_int(); + int y=__VERIFIER_nondet_int(); + if (!(y <= LIMIT)) return 0; + + if (y>0) { + while(x<100) { + x=x+y; + } + } + + __VERIFIER_assert(y<=0 || (y>0 && x>=100)); + + return 0; +} + + diff --git a/data/benchmarks/sv-benchmarks/loops/terminator_03-2_abstracted.c b/data/benchmarks/sv-benchmarks/loops/terminator_03-2_abstracted.c new file mode 100644 index 000000000..31a967654 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/terminator_03-2_abstracted.c @@ -0,0 +1,39 @@ +extern void abort(void); +#include +void reach_error() { assert(0); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int __VERIFIER_nondet_int(); +_Bool __VERIFIER_nondet_bool(); + +#define LIMIT 1000000 + +int main() { + int x=__VERIFIER_nondet_int(); + int y=__VERIFIER_nondet_int(); + if (!(y <= LIMIT)) return 0; + + if (y>0) { + // START HAVOCABSTRACTION + if (x < (100)) { + x = __VERIFIER_nondet_int(); + } + if (x < (100)) abort(); + // END HAVOCABSTRACTION + } + + __VERIFIER_assert(y<=0 || (y>0 && x>=100)); + + return 0; +} + + diff --git a/data/benchmarks/sv-benchmarks/loops/trex01-1.c b/data/benchmarks/sv-benchmarks/loops/trex01-1.c new file mode 100644 index 000000000..6404d9e9c --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/trex01-1.c @@ -0,0 +1,46 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "trex01-1.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +_Bool __VERIFIER_nondet_bool(); +int __VERIFIER_nondet_int(); + +void f(int d) { + int x = __VERIFIER_nondet_int(), y = __VERIFIER_nondet_int(), k = __VERIFIER_nondet_int(), z = 1; + if (!(k <= 1073741823)) + return; + L1: + while (z < k) { z = 2 * z; } + __VERIFIER_assert(z>=2); + L2: + while (x > 0 && y > 0) { + _Bool c = __VERIFIER_nondet_bool(); + if (c) { + P1: + x = x - d; + y = __VERIFIER_nondet_bool(); + z = z - 1; + } else { + y = y - d; + } + } +} + +int main() { + _Bool c = __VERIFIER_nondet_bool(); + if (c) { + f(1); + } else { + f(2); + } + + return 0; +} + + diff --git a/data/benchmarks/sv-benchmarks/loops/trex01-2.c b/data/benchmarks/sv-benchmarks/loops/trex01-2.c new file mode 100644 index 000000000..7112f9943 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/trex01-2.c @@ -0,0 +1,55 @@ +extern void abort(void); +#include +void reach_error() { assert(0); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +_Bool __VERIFIER_nondet_bool(); +int __VERIFIER_nondet_int(); + +#define LARGE_INT 1000000 + +void f(int d) { + int x = __VERIFIER_nondet_int(), y = __VERIFIER_nondet_int(), k = __VERIFIER_nondet_int(), z = 1; + L1: + if (!(k <= 1073741823)) + return; + while (z < k) { z = 2 * z; } + __VERIFIER_assert(z>=1); + L2: + if (!(x <= LARGE_INT && x >= -LARGE_INT)) return; + if (!(y <= LARGE_INT && y >= -LARGE_INT)) return; + if (!(k <= LARGE_INT && k >= -LARGE_INT)) return; + while (x > 0 && y > 0) { + _Bool c = __VERIFIER_nondet_bool(); + if (c) { + P1: + x = x - d; + y = __VERIFIER_nondet_bool();; + z = z - 1; + } else { + y = y - d; + } + } +} + +int main() { + _Bool c = __VERIFIER_nondet_bool(); + if (c) { + f(1); + } else { + f(2); + } + + return 0; +} + + diff --git a/data/benchmarks/sv-benchmarks/loops/trex02-1.c b/data/benchmarks/sv-benchmarks/loops/trex02-1.c new file mode 100644 index 000000000..4501152ba --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/trex02-1.c @@ -0,0 +1,32 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "trex02-1.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +_Bool __VERIFIER_nondet_bool(); +int __VERIFIER_nondet_int(); + +//x is an input variable +int x; + +void foo() { + x--; +} + +int main() { + x=__VERIFIER_nondet_int(); + while (x > 0) { + _Bool c = __VERIFIER_nondet_bool(); + if(c) foo(); + else foo(); + } + __VERIFIER_assert(x<=0); +} + + + diff --git a/data/benchmarks/sv-benchmarks/loops/trex02-2.c b/data/benchmarks/sv-benchmarks/loops/trex02-2.c new file mode 100644 index 000000000..bb2b7209a --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/trex02-2.c @@ -0,0 +1,32 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "trex02-2.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +_Bool __VERIFIER_nondet_bool(); +int __VERIFIER_nondet_int(); + +//x is an input variable +int x; + +void foo() { + x--; +} + +int main() { + x=__VERIFIER_nondet_int(); + while (x > 0) { + _Bool c = __VERIFIER_nondet_bool(); + if(c) foo(); + else foo(); + } + __VERIFIER_assert(x==0); +} + + + diff --git a/data/benchmarks/sv-benchmarks/loops/trex03-1.c b/data/benchmarks/sv-benchmarks/loops/trex03-1.c new file mode 100644 index 000000000..b894d55e3 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/trex03-1.c @@ -0,0 +1,33 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "trex03-1.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +extern unsigned int __VERIFIER_nondet_uint(); +extern _Bool __VERIFIER_nondet_bool(); + +int main() +{ + unsigned int x1=__VERIFIER_nondet_uint(), x2=__VERIFIER_nondet_uint(), x3=__VERIFIER_nondet_uint(); + unsigned int d1=1, d2=1, d3=1; + _Bool c1=__VERIFIER_nondet_bool(), c2=__VERIFIER_nondet_bool(); + + while(x1>0 && x2>0 && x3>0) + { + if (c1) x1=x1-d1; + else if (c2) x2=x2-d2; + else x3=x3-d3; + c1=__VERIFIER_nondet_bool(); + c2=__VERIFIER_nondet_bool(); + } + + __VERIFIER_assert(x1==0 && x2==0 && x3==0); + return 0; +} + diff --git a/data/benchmarks/sv-benchmarks/loops/trex03-2.c b/data/benchmarks/sv-benchmarks/loops/trex03-2.c new file mode 100644 index 000000000..cc9aef31a --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/trex03-2.c @@ -0,0 +1,32 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "trex03-2.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +unsigned int __VERIFIER_nondet_uint(); +_Bool __VERIFIER_nondet_bool(); + +int main() +{ + unsigned int x1=__VERIFIER_nondet_uint(), x2=__VERIFIER_nondet_uint(), x3=__VERIFIER_nondet_uint(); + unsigned int d1=1, d2=1, d3=1; + _Bool c1=__VERIFIER_nondet_bool(), c2=__VERIFIER_nondet_bool(); + + while(x1>0 && x2>0 && x3>0) + { + if (c1) x1=x1-d1; + else if (c2) x2=x2-d2; + else x3=x3-d3; + c1=__VERIFIER_nondet_bool(); + c2=__VERIFIER_nondet_bool(); + } + + __VERIFIER_assert(x1==0 || x2==0 || x3==0); + return 0; +} + diff --git a/data/benchmarks/sv-benchmarks/loops/trex03-2_abstracted.c b/data/benchmarks/sv-benchmarks/loops/trex03-2_abstracted.c new file mode 100644 index 000000000..afd1b0324 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/trex03-2_abstracted.c @@ -0,0 +1,44 @@ +extern void abort(void); +extern int __VERIFIER_nondet_int(); +extern _Bool __VERIFIER_nondet_bool(); +extern char __VERIFIER_nondet_char(); +extern double __VERIFIER_nondet_double(); +extern float __VERIFIER_nondet_float(); +extern unsigned long __VERIFIER_nondet_ulong(); +extern unsigned long long __VERIFIER_nondet_ulonglong(); +extern unsigned int __VERIFIER_nondet_uint(); +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "trex03-2_abstracted.c", 3, "reach_error"); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +unsigned int __VERIFIER_nondet_uint(); +_Bool __VERIFIER_nondet_bool(); + +int main() +{ + unsigned int x1=__VERIFIER_nondet_uint(), x2=__VERIFIER_nondet_uint(), x3=__VERIFIER_nondet_uint(); + unsigned int d1=1, d2=1, d3=1; + _Bool c1=__VERIFIER_nondet_bool(), c2=__VERIFIER_nondet_bool(); + + // START HAVOCABSTRACTION + if ((x3 > (0)) & ((x2 > (0)) & (x1 > (0)))) { + x3 = __VERIFIER_nondet_uint(); + x2 = __VERIFIER_nondet_uint(); + x1 = __VERIFIER_nondet_uint(); + c2 = __VERIFIER_nondet_bool(); + c1 = __VERIFIER_nondet_bool(); + } + if ((x3 > (0)) & ((x2 > (0)) & (x1 > (0)))) abort(); + // END HAVOCABSTRACTION + + __VERIFIER_assert(x1==0 || x2==0 || x3==0); + return 0; +} + diff --git a/data/benchmarks/sv-benchmarks/loops/trex04.c b/data/benchmarks/sv-benchmarks/loops/trex04.c new file mode 100644 index 000000000..984d98c5c --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/trex04.c @@ -0,0 +1,49 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "trex04.c", 3, "reach_error"); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +extern _Bool __VERIFIER_nondet_bool(); +extern int __VERIFIER_nondet_int(); + +void foo() +{ + int y=0; + _Bool c1=__VERIFIER_nondet_bool(), c2=__VERIFIER_nondet_bool(); + if (c1) y++; + if (c2) y--; + else y+=10; +} + +int main() +{ + int d = 1; + int x = __VERIFIER_nondet_int(); + if (!(x <= 1000000 && x >= -1000000)) return 0; + _Bool c1=__VERIFIER_nondet_bool(), c2=__VERIFIER_nondet_bool(); + + if (c1) d = d - 1; + if (c2) foo(); + + c1=__VERIFIER_nondet_bool(), c2=__VERIFIER_nondet_bool(); + + if (c1) foo(); + if (c2) d = d - 1; + + while(x>0) + { + x=x-d; + } + + __VERIFIER_assert(x<=0); +} + diff --git a/data/benchmarks/sv-benchmarks/loops/trex04_abstracted.c b/data/benchmarks/sv-benchmarks/loops/trex04_abstracted.c new file mode 100644 index 000000000..0a85f9820 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/trex04_abstracted.c @@ -0,0 +1,61 @@ +extern void abort(void); +extern int __VERIFIER_nondet_int(); +extern _Bool __VERIFIER_nondet_bool(); +extern char __VERIFIER_nondet_char(); +extern double __VERIFIER_nondet_double(); +extern float __VERIFIER_nondet_float(); +extern unsigned long __VERIFIER_nondet_ulong(); +extern unsigned long long __VERIFIER_nondet_ulonglong(); +extern unsigned int __VERIFIER_nondet_uint(); +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "trex04_abstracted.c", 3, "reach_error"); } +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +extern _Bool __VERIFIER_nondet_bool(); +extern int __VERIFIER_nondet_int(); + +void foo() +{ + int y=0; + _Bool c1=__VERIFIER_nondet_bool(), c2=__VERIFIER_nondet_bool(); + if (c1) y++; + if (c2) y--; + else y+=10; +} + +int main() +{ + int d = 1; + int x = __VERIFIER_nondet_int(); + if (!(x <= 1000000 && x >= -1000000)) return 0; + _Bool c1=__VERIFIER_nondet_bool(), c2=__VERIFIER_nondet_bool(); + + if (c1) d = d - 1; + if (c2) foo(); + + c1=__VERIFIER_nondet_bool(), c2=__VERIFIER_nondet_bool(); + + if (c1) foo(); + if (c2) d = d - 1; + + // START HAVOCABSTRACTION + if (x > (0)) { + x = __VERIFIER_nondet_int(); + } + if (x > (0)) abort(); + // END HAVOCABSTRACTION + + __VERIFIER_assert(x<=0); +} + diff --git a/data/benchmarks/sv-benchmarks/loops/veris.c_NetBSD-libc_loop.c b/data/benchmarks/sv-benchmarks/loops/veris.c_NetBSD-libc_loop.c new file mode 100644 index 000000000..8284d3b72 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/veris.c_NetBSD-libc_loop.c @@ -0,0 +1,40 @@ +extern void abort(void); +#include +void reach_error() { assert(0); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +typedef int Char; +#define MAXPATHLEN 1 + +Char *tmp; + +int glob2 (Char *pathbuf, Char *pathlim) +{ + Char *p; + + for (p = pathbuf; p <= pathlim; p++) { + /* BAD */ + __VERIFIER_assert(p<=tmp); + *p = 1; + } + + return 0; +} + +int main () +{ + Char pathbuf[MAXPATHLEN+1]; + + Char *bound = pathbuf + sizeof(pathbuf)/sizeof(*pathbuf) - 1; + + tmp = pathbuf + sizeof(pathbuf)/sizeof(*pathbuf) - 1; + + glob2 (pathbuf, bound); + + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops/veris.c_OpenSER_cases1_stripFullBoth_arr.c b/data/benchmarks/sv-benchmarks/loops/veris.c_OpenSER_cases1_stripFullBoth_arr.c new file mode 100644 index 000000000..2cc37017b --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/veris.c_OpenSER_cases1_stripFullBoth_arr.c @@ -0,0 +1,204 @@ +extern void abort(void); +#include +void reach_error() { assert(0); } +extern char __VERIFIER_nondet_char(); + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} + +#ifndef _BASE_H +#define _BASE_H + +/* Only #define it if it hasn't already been defined using -D */ +#ifndef BASE_SZ +#define BASE_SZ 2 +#endif + +#ifndef MAX_GETC +#define MAX_GETC 10 +#endif + +#endif + +#ifndef _STUBS_H +#define _STUBS_H + +#define NULL ((void *)0) +#define EOS 0 +#define EOF -1 +#define ERR -1 + +/* I had size_t being an unsigned long before, but that led to the + * infamous "Equality without matching types" error when I used a + * size_t to index into an array. */ +typedef unsigned int size_t; +typedef int bool; +#define true 1 +#define false 0 + +#define TYPECAST_MEMCPY 0 + +char *strchr(const char *s, int c); +char *strrchr(const char *s, int c); +char *strstr(const char *haystack, const char *needle); +char *strncpy (char *dest, const char *src, size_t n); +char *strncpy_ptr (char *dest, const char *src, size_t n); +char *strcpy (char *dest, const char *src); +unsigned strlen(const char *s); +int strncmp (const char *s1, const char *s2, size_t n); +int strcmp (const char *s1, const char *s2); +char *strcat(char *dest, const char *src); + +void *memcpy(void *dest, const void *src, size_t n); + +int isascii (int c); +int isspace (int c); + +int getc (/* ignore FILE* arg */); + +/* Extensions to libc's string library */ +char *strrand (char *s); +int istrrand (char *s); +int istrchr(const char *s, int c); +int istrrchr(const char *s, int c); +int istrncmp (const char *s1, int start, const char *s2, size_t n); +int istrstr(const char *haystack, const char *needle); + +/* Hackish duplicate functions to enable us to determine which claims + * are relevant. Oh, the hilarity. */ +char *r_strncpy (char *dest, const char *src, size_t n){return strncpy(dest,src,n);} +char *r_strcpy (char *dest, const char *src); +char *r_strcat(char *dest, const char *src); +char *r_strncat(char *dest, const char *src, size_t n); +void *r_memcpy(void *dest, const void *src, size_t n); + +#endif + +typedef unsigned int u_int; +typedef unsigned char u_int8_t; + +struct ieee80211_scan_entry { + u_int8_t *se_rsn_ie; /* captured RSN ie */ +}; + +#define IEEE80211_ELEMID_RSN 200 /* fake */ + +/* Size of an array leader[] which is written to buf[] before it is + * overflowed by the ie[] array. */ +#define LEADERSZ 1 + +/* We first write the "leader" to buf[], and then write from the "ie" + * array. buf[] has to be bigger than LEADERSZ by at least 2. */ +#define BUFSZ BASE_SZ + LEADERSZ + 3 + +/* Just has to be big enough to overflow buf[] + * Note that for each byte in ie[], two bytes are written to buf[] in + * encode_ie() */ +#define IESZ BUFSZ - LEADERSZ + +typedef int NSS_STATUS; + +/* Size of overflowed buffer. */ +#define FSTRING_LEN BASE_SZ /* originally 256 */ +typedef char fstring[FSTRING_LEN]; + +/* Size of input buffer. */ +#define INSZ (FSTRING_LEN+2) + +// Destination buffer. +#define BUF BASE_SZ + +// Source buffers. Make each big enough that the size checks in the OK +// versions are necessary to ensure safety. +#define GECOS BASE_SZ + 2 +#define LOGIN BASE_SZ + 2 + +#define EXPRESSION_LENGTH BASE_SZ +#define NEEDLE "EX" +#define NEEDLE_SZ 2 + +/* Enough to fill a buffer of size EXPRESSION_LENGTH, enough to + * contain the needle, and enough to overflow the buffer. */ +#define LINE_LENGTH EXPRESSION_LENGTH + NEEDLE_SZ + 4 + +/* Size of buffer being overflowed. + * Ensure that SUN_PATH_SZ - 1 is non-negative */ +#define SUN_PATH_SZ BASE_SZ + 1/* originally 108 */ + +/* Size of input buffer. */ +#define FILENAME_SZ SUN_PATH_SZ + 2 /* originally 1024 */ + +struct sockaddr_un +{ + char sun_path[SUN_PATH_SZ]; /* Path name. */ +}; + + + +static int parse_expression_list(char *str) +{ + int start=0, i=-1, j=-1; + char str2[EXPRESSION_LENGTH]; + + if (!str) return -1; + + do { + + /* i only changes here --> it's the "current character" */ + i++; + switch(str[i]) { + case EOS: /* word found */ + + /* Skip initial whitespace from start of the word being processed */ + while ((str[start] == ' ') || (str[start] == '\t')) start++; + + /* Skip quote marks */ + if (str[start] == '"') start++; + + /* Set j to point to the end of the current word */ + j = i-1; + + /* Skip over quotes and whitespace at the END of the word */ + while ((0 < j) && ((str[j] == ' ') || (str[j] == '\t'))) j--; + if ((0 < j) && (str[j] == '"')) j--; + + /* If word not empty.... */ + if (start<=j) { + /* valid word */ + if (j-start+1>=EXPRESSION_LENGTH) { + return -1; + } + /* OK */ + r_strncpy(str2, str+start, j-start+1); + __VERIFIER_assert(j - start + 1 < EXPRESSION_LENGTH); + str2[j-start+1] = EOS; + } else { + /* parsing error */ + return -1; + } + /* for the next word */ + start = i+1; + } + } while (str[i] != EOS); + + return 0; +} + + +int main () +{ + char A [LINE_LENGTH+1]; + + for (int i = 0; i < LINE_LENGTH; i++) { + A[i] = __VERIFIER_nondet_char(); + } + + A[LINE_LENGTH] = EOS; + + parse_expression_list (A); + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/loops/veris.c_sendmail_tTflag_arr_one_loop.c b/data/benchmarks/sv-benchmarks/loops/veris.c_sendmail_tTflag_arr_one_loop.c new file mode 100644 index 000000000..a117e6f61 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/veris.c_sendmail_tTflag_arr_one_loop.c @@ -0,0 +1,40 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "veris.c_sendmail_tTflag_arr_one_loop.c", 3, "reach_error"); } +extern char __VERIFIER_nondet_char(); + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +int main (void) +{ + char in[11]; // = "3277192070"; + char *s; + unsigned char c; + unsigned int i, j; + int idx_in; + + for (i = 0; i < 10; i++) { + in[i] = __VERIFIER_nondet_char(); + } + + in[10] = 0; + idx_in = 0; + s = in; + i = 0; + c = in[idx_in]; + while (('0' <= c) && (c <= '9')) + { + j = c - '0'; + i = i * 10U + j; + idx_in++; + c = in[idx_in]; + } + /* OK */ + __VERIFIER_assert (i >= 0); + return 0; +} + diff --git a/data/benchmarks/sv-benchmarks/loops/verisec_NetBSD-libc_loop.c b/data/benchmarks/sv-benchmarks/loops/verisec_NetBSD-libc_loop.c new file mode 100644 index 000000000..4ff6742c9 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/verisec_NetBSD-libc_loop.c @@ -0,0 +1,41 @@ +extern void abort(void); +#include +void reach_error() { assert(0); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +typedef int Char; +#define MAXPATHLEN 1 + +Char *tmp; + +int glob2 (Char *pathbuf, Char *pathlim) +{ + Char *p; + + for (p = pathbuf; p <= pathlim; p++) { + /* BAD */ + __VERIFIER_assert(p<=tmp); + *p = 1; + } + + return 0; +} + +int main () +{ + Char pathbuf[MAXPATHLEN+1]; + + Char *bound = pathbuf + sizeof(pathbuf) - 1; + + tmp = pathbuf + sizeof(pathbuf)/sizeof(*pathbuf) - 1; + + glob2 (pathbuf, bound); + + return 0; +} + diff --git a/data/benchmarks/sv-benchmarks/loops/verisec_OpenSER_cases1_stripFullBoth_arr.c b/data/benchmarks/sv-benchmarks/loops/verisec_OpenSER_cases1_stripFullBoth_arr.c new file mode 100644 index 000000000..0725b71f5 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/loops/verisec_OpenSER_cases1_stripFullBoth_arr.c @@ -0,0 +1,199 @@ +extern void abort(void); +#include +void reach_error() { assert(0); } + +extern char __VERIFIER_nondet_char(void); + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +#ifndef _BASE_H +#define _BASE_H + +/* Only #define it if it hasn't already been defined using -D */ +#ifndef BASE_SZ +#define BASE_SZ 2 +#endif + +#ifndef MAX_GETC +#define MAX_GETC 10 +#endif + +#endif + +#ifndef _STUBS_H +#define _STUBS_H + +#define NULL ((void *)0) +#define EOS 0 +#define EOF -1 +#define ERR -1 + +/* I had size_t being an unsigned long before, but that led to the + * infamous "Equality without matching types" error when I used a + * size_t to index into an array. */ +typedef unsigned int size_t; +typedef int bool; +#define true 1 +#define false 0 + +#define TYPECAST_MEMCPY 0 + +char *strchr(const char *s, int c); +char *strrchr(const char *s, int c); +char *strstr(const char *haystack, const char *needle); +char *strncpy (char *dest, const char *src, size_t n); +char *strncpy_ptr (char *dest, const char *src, size_t n); +char *strcpy (char *dest, const char *src); +unsigned strlen(const char *s); +int strncmp (const char *s1, const char *s2, size_t n); +int strcmp (const char *s1, const char *s2); +char *strcat(char *dest, const char *src); + +void *memcpy(void *dest, const void *src, size_t n); + +int isascii (int c); +int isspace (int c); + +int getc (/* ignore FILE* arg */); + +/* Extensions to libc's string library */ +char *strrand (char *s); +int istrrand (char *s); +int istrchr(const char *s, int c); +int istrrchr(const char *s, int c); +int istrncmp (const char *s1, int start, const char *s2, size_t n); +int istrstr(const char *haystack, const char *needle); + +/* Hackish duplicate functions to enable us to determine which claims + * are relevant. Oh, the hilarity. */ +char *r_strncpy (char *dest, const char *src, size_t n){return strncpy(dest,src,n);} +char *r_strcpy (char *dest, const char *src); +char *r_strcat(char *dest, const char *src); +char *r_strncat(char *dest, const char *src, size_t n); +void *r_memcpy(void *dest, const void *src, size_t n); + +#endif + +typedef unsigned int u_int; +typedef unsigned char u_int8_t; + +struct ieee80211_scan_entry { + u_int8_t *se_rsn_ie; /* captured RSN ie */ +}; + +#define IEEE80211_ELEMID_RSN 200 /* fake */ + +/* Size of an array leader[] which is written to buf[] before it is + * overflowed by the ie[] array. */ +#define LEADERSZ 1 + +/* We first write the "leader" to buf[], and then write from the "ie" + * array. buf[] has to be bigger than LEADERSZ by at least 2. */ +#define BUFSZ BASE_SZ + LEADERSZ + 3 + +/* Just has to be big enough to overflow buf[] + * Note that for each byte in ie[], two bytes are written to buf[] in + * encode_ie() */ +#define IESZ BUFSZ - LEADERSZ + +typedef int NSS_STATUS; + +/* Size of overflowed buffer. */ +#define FSTRING_LEN BASE_SZ /* originally 256 */ +typedef char fstring[FSTRING_LEN]; + +/* Size of input buffer. */ +#define INSZ (FSTRING_LEN+2) + +// Destination buffer. +#define BUF BASE_SZ + +// Source buffers. Make each big enough that the size checks in the OK +// versions are necessary to ensure safety. +#define GECOS BASE_SZ + 2 +#define LOGIN BASE_SZ + 2 + +#define EXPRESSION_LENGTH BASE_SZ +#define NEEDLE "EX" +#define NEEDLE_SZ 2 + +/* Enough to fill a buffer of size EXPRESSION_LENGTH, enough to + * contain the needle, and enough to overflow the buffer. */ +#define LINE_LENGTH EXPRESSION_LENGTH + NEEDLE_SZ + 4 + +/* Size of buffer being overflowed. + * Ensure that SUN_PATH_SZ - 1 is non-negative */ +#define SUN_PATH_SZ BASE_SZ + 1/* originally 108 */ + +/* Size of input buffer. */ +#define FILENAME_SZ SUN_PATH_SZ + 2 /* originally 1024 */ + +struct sockaddr_un +{ + char sun_path[SUN_PATH_SZ]; /* Path name. */ +}; + + + +static int parse_expression_list(char *str) +{ + int start=0, i=-1, j=-1; + char str2[EXPRESSION_LENGTH]; + + if (!str) return -1; + + do { + + /* i only changes here --> it's the "current character" */ + i++; + switch(str[i]) { + case EOS: /* word found */ + + /* Skip initial whitespace from start of the word being processed */ + while ((str[start] == ' ') || (str[start] == '\t')) start++; + + /* Skip quote marks */ + if (str[start] == '"') start++; + + /* Set j to point to the end of the current word */ + j = i-1; + + /* Skip over quotes and whitespace at the END of the word */ + while ((0 < j) && ((str[j] == ' ') || (str[j] == '\t'))) j--; + if ((0 < j) && (str[j] == '"')) j--; + + /* If word not empty.... */ + if (start<=j) { + /* valid word */ + /* BAD */ + r_strncpy(str2, str+start, j-start+1); + __VERIFIER_assert(j - start + 1 < 2); + str2[j-start+1] = EOS; + } else { + /* parsing error */ + return -1; + } + /* for the next word */ + start = i+1; + } + } while (str[i] != EOS); + + return 0; +} + + +int main () +{ + char A [LINE_LENGTH+1]; + for (int i = 0; i +void reach_error() { assert(0); } + +extern void abort(void); +void assume_abort_if_not(int cond) { + if(!cond) {abort();} +} +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +#define MAX 5 + +char __VERIFIER_nondet_char(); + +int main(void) +{ + char input_string[MAX], vogal_array[]={'a','A','e','E','i','I','o','O','u','U','\0'};; + unsigned int i,j,cont, tam_string, n_caracter; + + for(i=0;i +void reach_error() { assert(0); } + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: {reach_error();abort();} + } + return; +} +#define MAX 10 + +extern char __VERIFIER_nondet_char(); + +int main(void) +{ + char string_entrada[MAX], vetor_vogais[]={'a','A','e','E','i','I','o','O','u','U','\0'};; + unsigned int i,j,cont, tam_string, n_caracter; + + for(i=0;i +# SPDX-FileCopyrightText: 2015-2020 The SV-Benchmarks Community +# +# SPDX-License-Identifier: Apache-2.0 + +LEVEL := ../ + +include $(LEVEL)/Makefile.config diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/README.txt b/data/benchmarks/sv-benchmarks/recursive-simple/README.txt new file mode 100644 index 000000000..ae6816f50 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/README.txt @@ -0,0 +1,2 @@ +The benchmarks in this directory contains simple cases for recursive programs. +They were added from the CPAchecker project (https://cpachecker.sosy-lab.org/). diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/afterrec-1.c b/data/benchmarks/sv-benchmarks/recursive-simple/afterrec-1.c new file mode 100644 index 000000000..450c5f280 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/afterrec-1.c @@ -0,0 +1,14 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "afterrec-1.c", 3, "reach_error"); } + +void f(int n) { + if (n<3) return; + n--; + f(n); + ERROR: {reach_error();abort();} +} + +int main(void) { + f(4); +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/afterrec-2.c b/data/benchmarks/sv-benchmarks/recursive-simple/afterrec-2.c new file mode 100644 index 000000000..201976dac --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/afterrec-2.c @@ -0,0 +1,14 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "afterrec-2.c", 3, "reach_error"); } + +void f(int n) { + if (n<3) return; + n--; + f(n); + ERROR: {reach_error();abort();} +} + +int main(void) { + f(2); +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/afterrec_2calls-1.c b/data/benchmarks/sv-benchmarks/recursive-simple/afterrec_2calls-1.c new file mode 100644 index 000000000..a5b885bb3 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/afterrec_2calls-1.c @@ -0,0 +1,24 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "afterrec_2calls-1.c", 3, "reach_error"); } + +void f(int); +void f2(int); + +void f(int n) { + if (n<3) return; + n--; + f2(n); + ERROR: {reach_error();abort();} +} + +void f2(int n) { + if (n<3) return; + n--; + f(n); + ERROR: {reach_error();abort();} +} + +int main(void) { + f(4); +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/afterrec_2calls-2.c b/data/benchmarks/sv-benchmarks/recursive-simple/afterrec_2calls-2.c new file mode 100644 index 000000000..ef507c446 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/afterrec_2calls-2.c @@ -0,0 +1,24 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "afterrec_2calls-2.c", 3, "reach_error"); } + +void f(int); +void f2(int); + +void f(int n) { + if (n<3) return; + n--; + f2(n); + ERROR: {reach_error();abort();} +} + +void f2(int n) { + if (n<3) return; + n--; + f(n); + ERROR: {reach_error();abort();} +} + +int main(void) { + f(2); +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/fibo_10-1.c b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_10-1.c new file mode 100644 index 000000000..772201a4f --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_10-1.c @@ -0,0 +1,32 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "fibo_10-1.c", 4, "reach_error"); } + + +int fibo(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo(n-1) + fibo(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 10; + int result = fibo(x); + if (result == 55) { + ERROR: {reach_error();abort();} + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/fibo_10-2.c b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_10-2.c new file mode 100644 index 000000000..3aaa66c17 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_10-2.c @@ -0,0 +1,32 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "fibo_10-2.c", 4, "reach_error"); } + + +int fibo(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo(n-1) + fibo(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 10; + int result = fibo(x); + if (result != 55) { + ERROR: {reach_error();abort();} + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/fibo_15-1.c b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_15-1.c new file mode 100644 index 000000000..8bcdd52c4 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_15-1.c @@ -0,0 +1,32 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "fibo_15-1.c", 4, "reach_error"); } + + +int fibo(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo(n-1) + fibo(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 15; + int result = fibo(x); + if (result != 610) { + ERROR: {reach_error();abort();} + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/fibo_15-2.c b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_15-2.c new file mode 100644 index 000000000..5be40ca50 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_15-2.c @@ -0,0 +1,32 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "fibo_15-2.c", 4, "reach_error"); } + + +int fibo(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo(n-1) + fibo(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 15; + int result = fibo(x); + if (result == 610) { + ERROR: {reach_error();abort();} + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/fibo_20-1.c b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_20-1.c new file mode 100644 index 000000000..be2881bb9 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_20-1.c @@ -0,0 +1,32 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "fibo_20-1.c", 4, "reach_error"); } + + +int fibo(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo(n-1) + fibo(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 20; + int result = fibo(x); + if (result == 6765) { + ERROR: {reach_error();abort();} + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/fibo_20-2.c b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_20-2.c new file mode 100644 index 000000000..39cc1834b --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_20-2.c @@ -0,0 +1,32 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "fibo_20-2.c", 4, "reach_error"); } + + +int fibo(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo(n-1) + fibo(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 20; + int result = fibo(x); + if (result != 6765) { + ERROR: {reach_error();abort();} + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/fibo_25-1.c b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_25-1.c new file mode 100644 index 000000000..48047ae1c --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_25-1.c @@ -0,0 +1,32 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "fibo_25-1.c", 4, "reach_error"); } + + +int fibo(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo(n-1) + fibo(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 25; + int result = fibo(x); + if (result == 75025) { + ERROR: {reach_error();abort();} + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/fibo_25-2.c b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_25-2.c new file mode 100644 index 000000000..84914e7fa --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_25-2.c @@ -0,0 +1,32 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "fibo_25-2.c", 4, "reach_error"); } + + +int fibo(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo(n-1) + fibo(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 25; + int result = fibo(x); + if (result != 75025) { + ERROR: {reach_error();abort();} + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_10-1.c b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_10-1.c new file mode 100644 index 000000000..441886883 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_10-1.c @@ -0,0 +1,44 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "fibo_2calls_10-1.c", 4, "reach_error"); } + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 10; + int result = fibo1(x); + if (result != 55) { + ERROR: {reach_error();abort();} + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_10-2.c b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_10-2.c new file mode 100644 index 000000000..7a072e0c3 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_10-2.c @@ -0,0 +1,44 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "fibo_2calls_10-2.c", 4, "reach_error"); } + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 10; + int result = fibo1(x); + if (result == 55) { + ERROR: {reach_error();abort();} + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_15-1.c b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_15-1.c new file mode 100644 index 000000000..f859574cc --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_15-1.c @@ -0,0 +1,44 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "fibo_2calls_15-1.c", 4, "reach_error"); } + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 15; + int result = fibo1(x); + if (result == 610) { + ERROR: {reach_error();abort();} + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_15-2.c b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_15-2.c new file mode 100644 index 000000000..3b874d368 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_15-2.c @@ -0,0 +1,44 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "fibo_2calls_15-2.c", 4, "reach_error"); } + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 15; + int result = fibo1(x); + if (result != 610) { + ERROR: {reach_error();abort();} + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_2-1.c b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_2-1.c new file mode 100644 index 000000000..68180609c --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_2-1.c @@ -0,0 +1,44 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "fibo_2calls_2-1.c", 4, "reach_error"); } + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 2; + int result = fibo1(x); + if (result == 1) { + ERROR: {reach_error();abort();} + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_2-2.c b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_2-2.c new file mode 100644 index 000000000..e5c1393c0 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_2-2.c @@ -0,0 +1,44 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "fibo_2calls_2-2.c", 4, "reach_error"); } + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 2; + int result = fibo1(x); + if (result != 1) { + ERROR: {reach_error();abort();} + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_20-1.c b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_20-1.c new file mode 100644 index 000000000..6d0aed948 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_20-1.c @@ -0,0 +1,44 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "fibo_2calls_20-1.c", 4, "reach_error"); } + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 20; + int result = fibo1(x); + if (result == 6765) { + ERROR: {reach_error();abort();} + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_20-2.c b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_20-2.c new file mode 100644 index 000000000..4384859d0 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_20-2.c @@ -0,0 +1,44 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "fibo_2calls_20-2.c", 4, "reach_error"); } + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 20; + int result = fibo1(x); + if (result != 6765) { + ERROR: {reach_error();abort();} + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_25-1.c b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_25-1.c new file mode 100644 index 000000000..adaf248f0 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_25-1.c @@ -0,0 +1,44 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "fibo_2calls_25-1.c", 4, "reach_error"); } + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 25; + int result = fibo1(x); + if (result == 75025) { + ERROR: {reach_error();abort();} + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_25-2.c b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_25-2.c new file mode 100644 index 000000000..1dc4b0cc0 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_25-2.c @@ -0,0 +1,44 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "fibo_2calls_25-2.c", 4, "reach_error"); } + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 25; + int result = fibo1(x); + if (result != 75025) { + ERROR: {reach_error();abort();} + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_4-1.c b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_4-1.c new file mode 100644 index 000000000..7ff7b04b2 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_4-1.c @@ -0,0 +1,44 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "fibo_2calls_4-1.c", 4, "reach_error"); } + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 4; + int result = fibo1(x); + if (result != 3) { + ERROR: {reach_error();abort();} + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_4-2.c b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_4-2.c new file mode 100644 index 000000000..c890ee4f1 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_4-2.c @@ -0,0 +1,44 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "fibo_2calls_4-2.c", 4, "reach_error"); } + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 4; + int result = fibo1(x); + if (result == 3) { + ERROR: {reach_error();abort();} + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_5-1.c b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_5-1.c new file mode 100644 index 000000000..500b376b9 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_5-1.c @@ -0,0 +1,44 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "fibo_2calls_5-1.c", 4, "reach_error"); } + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 5; + int result = fibo1(x); + if (result != 5) { + ERROR: {reach_error();abort();} + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_5-2.c b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_5-2.c new file mode 100644 index 000000000..0be761f77 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_5-2.c @@ -0,0 +1,44 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "fibo_2calls_5-2.c", 4, "reach_error"); } + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 5; + int result = fibo1(x); + if (result == 5) { + ERROR: {reach_error();abort();} + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_6-1.c b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_6-1.c new file mode 100644 index 000000000..6438114e9 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_6-1.c @@ -0,0 +1,44 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "fibo_2calls_6-1.c", 4, "reach_error"); } + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 6; + int result = fibo1(x); + if (result != 8) { + ERROR: {reach_error();abort();} + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_6-2.c b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_6-2.c new file mode 100644 index 000000000..9eaf75df3 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_6-2.c @@ -0,0 +1,44 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "fibo_2calls_6-2.c", 4, "reach_error"); } + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 6; + int result = fibo1(x); + if (result == 8) { + ERROR: {reach_error();abort();} + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_8-1.c b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_8-1.c new file mode 100644 index 000000000..16800c143 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_8-1.c @@ -0,0 +1,44 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "fibo_2calls_8-1.c", 4, "reach_error"); } + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 8; + int result = fibo1(x); + if (result != 21) { + ERROR: {reach_error();abort();} + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_8-2.c b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_8-2.c new file mode 100644 index 000000000..49c7879fa --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_8-2.c @@ -0,0 +1,44 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "fibo_2calls_8-2.c", 4, "reach_error"); } + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 8; + int result = fibo1(x); + if (result == 21) { + ERROR: {reach_error();abort();} + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/fibo_5-1.c b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_5-1.c new file mode 100644 index 000000000..f7e00eddc --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_5-1.c @@ -0,0 +1,32 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "fibo_5-1.c", 4, "reach_error"); } + + +int fibo(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo(n-1) + fibo(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 5; + int result = fibo(x); + if (result != 5) { + ERROR: {reach_error();abort();} + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/fibo_5-2.c b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_5-2.c new file mode 100644 index 000000000..bf7689726 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_5-2.c @@ -0,0 +1,32 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "fibo_5-2.c", 4, "reach_error"); } + + +int fibo(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo(n-1) + fibo(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 5; + int result = fibo(x); + if (result == 5) { + ERROR: {reach_error();abort();} + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/fibo_7-1.c b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_7-1.c new file mode 100644 index 000000000..01f0f7cb0 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_7-1.c @@ -0,0 +1,32 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "fibo_7-1.c", 4, "reach_error"); } + + +int fibo(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo(n-1) + fibo(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 7; + int result = fibo(x); + if (result != 13) { + ERROR: {reach_error();abort();} + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/fibo_7-2.c b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_7-2.c new file mode 100644 index 000000000..dc89be05d --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/fibo_7-2.c @@ -0,0 +1,32 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "fibo_7-2.c", 4, "reach_error"); } + + +int fibo(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo(n-1) + fibo(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 7; + int result = fibo(x); + if (result == 13) { + ERROR: {reach_error();abort();} + } + return 0; +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/id2_b2_o3.c b/data/benchmarks/sv-benchmarks/recursive-simple/id2_b2_o3.c new file mode 100644 index 000000000..b685ca04b --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/id2_b2_o3.c @@ -0,0 +1,29 @@ +extern unsigned int __VERIFIER_nondet_uint(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "id2_b2_o3.c", 4, "reach_error"); } + +unsigned int id(unsigned int x); +unsigned int id2(unsigned int x); + +unsigned int id(unsigned int x) { + if (x==0) return 0; + unsigned int ret = id2(x-1) + 1; + if (ret > 2) return 2; + return ret; +} + +unsigned int id2(unsigned int x) { + if (x==0) return 0; + unsigned int ret = id(x-1) + 1; + if (ret > 2) return 2; + return ret; +} + +int main(void) { + unsigned int input = __VERIFIER_nondet_uint(); + unsigned int result = id(input); + if (result == 3) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/id2_b3_o2.c b/data/benchmarks/sv-benchmarks/recursive-simple/id2_b3_o2.c new file mode 100644 index 000000000..6caf1311d --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/id2_b3_o2.c @@ -0,0 +1,29 @@ +extern unsigned int __VERIFIER_nondet_uint(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "id2_b3_o2.c", 4, "reach_error"); } + +unsigned int id(unsigned int x); +unsigned int id2(unsigned int x); + +unsigned int id(unsigned int x) { + if (x==0) return 0; + unsigned int ret = id2(x-1) + 1; + if (ret > 3) return 3; + return ret; +} + +unsigned int id2(unsigned int x) { + if (x==0) return 0; + unsigned int ret = id(x-1) + 1; + if (ret > 3) return 3; + return ret; +} + +int main(void) { + unsigned int input = __VERIFIER_nondet_uint(); + unsigned int result = id(input); + if (result == 2) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/id2_b3_o5.c b/data/benchmarks/sv-benchmarks/recursive-simple/id2_b3_o5.c new file mode 100644 index 000000000..91e0a3d80 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/id2_b3_o5.c @@ -0,0 +1,29 @@ +extern unsigned int __VERIFIER_nondet_uint(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "id2_b3_o5.c", 4, "reach_error"); } + +unsigned int id(unsigned int x); +unsigned int id2(unsigned int x); + +unsigned int id(unsigned int x) { + if (x==0) return 0; + unsigned int ret = id2(x-1) + 1; + if (ret > 3) return 3; + return ret; +} + +unsigned int id2(unsigned int x) { + if (x==0) return 0; + unsigned int ret = id(x-1) + 1; + if (ret > 3) return 3; + return ret; +} + +int main(void) { + unsigned int input = __VERIFIER_nondet_uint(); + unsigned int result = id(input); + if (result == 5) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/id2_b5_o10.c b/data/benchmarks/sv-benchmarks/recursive-simple/id2_b5_o10.c new file mode 100644 index 000000000..78d510a4b --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/id2_b5_o10.c @@ -0,0 +1,29 @@ +extern unsigned int __VERIFIER_nondet_uint(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "id2_b5_o10.c", 4, "reach_error"); } + +unsigned int id(unsigned int x); +unsigned int id2(unsigned int x); + +unsigned int id(unsigned int x) { + if (x==0) return 0; + unsigned int ret = id2(x-1) + 1; + if (ret > 5) return 5; + return ret; +} + +unsigned int id2(unsigned int x) { + if (x==0) return 0; + unsigned int ret = id(x-1) + 1; + if (ret > 5) return 5; + return ret; +} + +int main(void) { + unsigned int input = __VERIFIER_nondet_uint(); + unsigned int result = id(input); + if (result == 10) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/id2_i5_o5-1.c b/data/benchmarks/sv-benchmarks/recursive-simple/id2_i5_o5-1.c new file mode 100644 index 000000000..b8613db5e --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/id2_i5_o5-1.c @@ -0,0 +1,25 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "id2_i5_o5-1.c", 4, "reach_error"); } + +int id(int x); +int id2(int x); + +int id(int x) { + if (x==0) return 0; + return id2(x-1) + 1; +} + +int id2(int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + int input = 5; + int result = id(input); + if (result == 5) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/id2_i5_o5-2.c b/data/benchmarks/sv-benchmarks/recursive-simple/id2_i5_o5-2.c new file mode 100644 index 000000000..97b6bbc02 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/id2_i5_o5-2.c @@ -0,0 +1,25 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "id2_i5_o5-2.c", 4, "reach_error"); } + +int id(int x); +int id2(int x); + +int id(int x) { + if (x==0) return 0; + return id2(x-1) + 1; +} + +int id2(int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + int input = 5; + int result = id(input); + if (result != 5) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/id_b2_o3.c b/data/benchmarks/sv-benchmarks/recursive-simple/id_b2_o3.c new file mode 100644 index 000000000..019758a95 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/id_b2_o3.c @@ -0,0 +1,19 @@ +extern unsigned int __VERIFIER_nondet_uint(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "id_b2_o3.c", 4, "reach_error"); } + +unsigned int id(unsigned int x) { + if (x==0) return 0; + unsigned int ret = id(x-1) + 1; + if (ret > 2) return 2; + return ret; +} + +int main(void) { + unsigned int input = __VERIFIER_nondet_uint(); + unsigned int result = id(input); + if (result == 3) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/id_b3_o2-1.c b/data/benchmarks/sv-benchmarks/recursive-simple/id_b3_o2-1.c new file mode 100644 index 000000000..762921765 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/id_b3_o2-1.c @@ -0,0 +1,19 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "id_b3_o2-1.c", 4, "reach_error"); } + +int id(int x) { + if (x==0) return 0; + int ret = id(x-1) + 1; + if (ret > 3) return 3; + return ret; +} + +int main(void) { + int input = __VERIFIER_nondet_int(); + int result = id(input); + if (result == 2) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/id_b3_o2-2.c b/data/benchmarks/sv-benchmarks/recursive-simple/id_b3_o2-2.c new file mode 100644 index 000000000..9a84f0d3f --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/id_b3_o2-2.c @@ -0,0 +1,19 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "id_b3_o2-2.c", 4, "reach_error"); } + +int id(int x) { + if (x==0) return 0; + int ret = id((unsigned int)x-1) + 1; + if (ret > 3) return 3; + return ret; +} + +int main(void) { + int input = __VERIFIER_nondet_int(); + int result = id(input); + if (result == 2) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/id_b3_o5-1.c b/data/benchmarks/sv-benchmarks/recursive-simple/id_b3_o5-1.c new file mode 100644 index 000000000..82d61941c --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/id_b3_o5-1.c @@ -0,0 +1,19 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "id_b3_o5-1.c", 4, "reach_error"); } + +int id(int x) { + if (x==0) return 0; + int ret = id(x-1) + 1; + if (ret > 3) return 3; + return ret; +} + +int main(void) { + int input = __VERIFIER_nondet_int(); + int result = id(input); + if (result == 5) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/id_b3_o5-2.c b/data/benchmarks/sv-benchmarks/recursive-simple/id_b3_o5-2.c new file mode 100644 index 000000000..263c5f14d --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/id_b3_o5-2.c @@ -0,0 +1,19 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "id_b3_o5-2.c", 4, "reach_error"); } + +int id(int x) { + if (x==0) return 0; + int ret = id((unsigned int)x-1) + 1; + if (ret > 3) return 3; + return ret; +} + +int main(void) { + int input = __VERIFIER_nondet_int(); + int result = id(input); + if (result == 5) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/id_b5_o10-1.c b/data/benchmarks/sv-benchmarks/recursive-simple/id_b5_o10-1.c new file mode 100644 index 000000000..165aa4963 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/id_b5_o10-1.c @@ -0,0 +1,19 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "id_b5_o10-1.c", 4, "reach_error"); } + +int id(int x) { + if (x==0) return 0; + int ret = id(x-1) + 1; + if (ret > 5) return 5; + return ret; +} + +int main(void) { + int input = __VERIFIER_nondet_int(); + int result = id(input); + if (result == 10) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/id_b5_o10-2.c b/data/benchmarks/sv-benchmarks/recursive-simple/id_b5_o10-2.c new file mode 100644 index 000000000..4207bfd03 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/id_b5_o10-2.c @@ -0,0 +1,19 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "id_b5_o10-2.c", 4, "reach_error"); } + +int id(int x) { + if (x==0) return 0; + int ret = id((unsigned int)x-1) + 1; + if (ret > 5) return 5; + return ret; +} + +int main(void) { + int input = __VERIFIER_nondet_int(); + int result = id(input); + if (result == 10) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/id_i10_o10-1.c b/data/benchmarks/sv-benchmarks/recursive-simple/id_i10_o10-1.c new file mode 100644 index 000000000..035347d62 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/id_i10_o10-1.c @@ -0,0 +1,17 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "id_i10_o10-1.c", 4, "reach_error"); } + +int id(int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + int input = 10; + int result = id(input); + if (result == 10) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/id_i10_o10-2.c b/data/benchmarks/sv-benchmarks/recursive-simple/id_i10_o10-2.c new file mode 100644 index 000000000..c9a9f7cb7 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/id_i10_o10-2.c @@ -0,0 +1,17 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "id_i10_o10-2.c", 4, "reach_error"); } + +int id(int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + int input = 10; + int result = id(input); + if (result != 10) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/id_i15_o15-1.c b/data/benchmarks/sv-benchmarks/recursive-simple/id_i15_o15-1.c new file mode 100644 index 000000000..03d9d250d --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/id_i15_o15-1.c @@ -0,0 +1,17 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "id_i15_o15-1.c", 4, "reach_error"); } + +int id(int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + int input = 15; + int result = id(input); + if (result != 15) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/id_i15_o15-2.c b/data/benchmarks/sv-benchmarks/recursive-simple/id_i15_o15-2.c new file mode 100644 index 000000000..6ce38ecc8 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/id_i15_o15-2.c @@ -0,0 +1,17 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "id_i15_o15-2.c", 4, "reach_error"); } + +int id(int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + int input = 15; + int result = id(input); + if (result == 15) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/id_i20_o20-1.c b/data/benchmarks/sv-benchmarks/recursive-simple/id_i20_o20-1.c new file mode 100644 index 000000000..1becc05ee --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/id_i20_o20-1.c @@ -0,0 +1,17 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "id_i20_o20-1.c", 4, "reach_error"); } + +int id(int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + int input = 20; + int result = id(input); + if (result != 20) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/id_i20_o20-2.c b/data/benchmarks/sv-benchmarks/recursive-simple/id_i20_o20-2.c new file mode 100644 index 000000000..262b885c1 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/id_i20_o20-2.c @@ -0,0 +1,17 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "id_i20_o20-2.c", 4, "reach_error"); } + +int id(int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + int input = 20; + int result = id(input); + if (result == 20) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/id_i25_o25-1.c b/data/benchmarks/sv-benchmarks/recursive-simple/id_i25_o25-1.c new file mode 100644 index 000000000..8c00f960c --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/id_i25_o25-1.c @@ -0,0 +1,17 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "id_i25_o25-1.c", 4, "reach_error"); } + +int id(int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + int input = 25; + int result = id(input); + if (result != 25) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/id_i25_o25-2.c b/data/benchmarks/sv-benchmarks/recursive-simple/id_i25_o25-2.c new file mode 100644 index 000000000..091f6f063 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/id_i25_o25-2.c @@ -0,0 +1,17 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "id_i25_o25-2.c", 4, "reach_error"); } + +int id(int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + int input = 25; + int result = id(input); + if (result == 25) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/id_i5_o5-1.c b/data/benchmarks/sv-benchmarks/recursive-simple/id_i5_o5-1.c new file mode 100644 index 000000000..8e4955f87 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/id_i5_o5-1.c @@ -0,0 +1,17 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "id_i5_o5-1.c", 4, "reach_error"); } + +int id(int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + int input = 5; + int result = id(input); + if (result == 5) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/id_i5_o5-2.c b/data/benchmarks/sv-benchmarks/recursive-simple/id_i5_o5-2.c new file mode 100644 index 000000000..85756abf7 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/id_i5_o5-2.c @@ -0,0 +1,17 @@ +extern int __VERIFIER_nondet_int(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "id_i5_o5-2.c", 4, "reach_error"); } + +int id(int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + int input = 5; + int result = id(input); + if (result != 5) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/id_o10.c b/data/benchmarks/sv-benchmarks/recursive-simple/id_o10.c new file mode 100644 index 000000000..57609132d --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/id_o10.c @@ -0,0 +1,17 @@ +extern unsigned int __VERIFIER_nondet_uint(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "id_o10.c", 4, "reach_error"); } + +unsigned int id(unsigned int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + unsigned int input = __VERIFIER_nondet_uint(); + unsigned int result = id(input); + if (result == 10) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/id_o100.c b/data/benchmarks/sv-benchmarks/recursive-simple/id_o100.c new file mode 100644 index 000000000..0d655c82b --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/id_o100.c @@ -0,0 +1,17 @@ +extern unsigned int __VERIFIER_nondet_uint(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "id_o100.c", 4, "reach_error"); } + +unsigned int id(unsigned int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + unsigned int input = __VERIFIER_nondet_uint(); + unsigned int result = id(input); + if (result == 100) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/id_o1000.c b/data/benchmarks/sv-benchmarks/recursive-simple/id_o1000.c new file mode 100644 index 000000000..f6b49286b --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/id_o1000.c @@ -0,0 +1,17 @@ +extern unsigned int __VERIFIER_nondet_uint(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "id_o1000.c", 4, "reach_error"); } + +unsigned int id(unsigned int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + unsigned int input = __VERIFIER_nondet_uint(); + unsigned int result = id(input); + if (result == 1000) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/id_o20.c b/data/benchmarks/sv-benchmarks/recursive-simple/id_o20.c new file mode 100644 index 000000000..16868c91e --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/id_o20.c @@ -0,0 +1,17 @@ +extern unsigned int __VERIFIER_nondet_uint(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "id_o20.c", 4, "reach_error"); } + +unsigned int id(unsigned int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + unsigned int input = __VERIFIER_nondet_uint(); + unsigned int result = id(input); + if (result == 20) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/id_o200.c b/data/benchmarks/sv-benchmarks/recursive-simple/id_o200.c new file mode 100644 index 000000000..3883c662b --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/id_o200.c @@ -0,0 +1,17 @@ +extern unsigned int __VERIFIER_nondet_uint(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "id_o200.c", 4, "reach_error"); } + +unsigned int id(unsigned int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + unsigned int input = __VERIFIER_nondet_uint(); + unsigned int result = id(input); + if (result == 200) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/id_o3.c b/data/benchmarks/sv-benchmarks/recursive-simple/id_o3.c new file mode 100644 index 000000000..44c2bdb79 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/id_o3.c @@ -0,0 +1,17 @@ +extern unsigned int __VERIFIER_nondet_uint(); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "id_o3.c", 4, "reach_error"); } + +unsigned int id(unsigned int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + unsigned int input = __VERIFIER_nondet_uint(); + unsigned int result = id(input); + if (result == 3) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/sum_10x0-1.c b/data/benchmarks/sv-benchmarks/recursive-simple/sum_10x0-1.c new file mode 100644 index 000000000..64d277d8f --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/sum_10x0-1.c @@ -0,0 +1,20 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "sum_10x0-1.c", 3, "reach_error"); } + +int sum(int n, int m) { + if (n <= 0) { + return m + n; + } else { + return sum(n - 1, m + 1); + } +} + +int main(void) { + int a = 10; + int b = 0; + int result = sum(a, b); + if (result != a + b) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/sum_10x0-2.c b/data/benchmarks/sv-benchmarks/recursive-simple/sum_10x0-2.c new file mode 100644 index 000000000..8810e17d2 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/sum_10x0-2.c @@ -0,0 +1,20 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "sum_10x0-2.c", 3, "reach_error"); } + +int sum(int n, int m) { + if (n <= 0) { + return m + n; + } else { + return sum(n - 1, m + 1); + } +} + +int main(void) { + int a = 10; + int b = 0; + int result = sum(a, b); + if (result == a + b) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/sum_15x0-1.c b/data/benchmarks/sv-benchmarks/recursive-simple/sum_15x0-1.c new file mode 100644 index 000000000..e0711835a --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/sum_15x0-1.c @@ -0,0 +1,20 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "sum_15x0-1.c", 3, "reach_error"); } + +int sum(int n, int m) { + if (n <= 0) { + return m + n; + } else { + return sum(n - 1, m + 1); + } +} + +int main(void) { + int a = 15; + int b = 0; + int result = sum(a, b); + if (result != a + b) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/sum_15x0-2.c b/data/benchmarks/sv-benchmarks/recursive-simple/sum_15x0-2.c new file mode 100644 index 000000000..526cc5b6c --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/sum_15x0-2.c @@ -0,0 +1,20 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "sum_15x0-2.c", 3, "reach_error"); } + +int sum(int n, int m) { + if (n <= 0) { + return m + n; + } else { + return sum(n - 1, m + 1); + } +} + +int main(void) { + int a = 15; + int b = 0; + int result = sum(a, b); + if (result == a + b) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/sum_20x0-1.c b/data/benchmarks/sv-benchmarks/recursive-simple/sum_20x0-1.c new file mode 100644 index 000000000..b19f3435a --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/sum_20x0-1.c @@ -0,0 +1,20 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "sum_20x0-1.c", 3, "reach_error"); } + +int sum(int n, int m) { + if (n <= 0) { + return m + n; + } else { + return sum(n - 1, m + 1); + } +} + +int main(void) { + int a = 20; + int b = 0; + int result = sum(a, b); + if (result == a + b) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/sum_20x0-2.c b/data/benchmarks/sv-benchmarks/recursive-simple/sum_20x0-2.c new file mode 100644 index 000000000..5a5856edf --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/sum_20x0-2.c @@ -0,0 +1,20 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "sum_20x0-2.c", 3, "reach_error"); } + +int sum(int n, int m) { + if (n <= 0) { + return m + n; + } else { + return sum(n - 1, m + 1); + } +} + +int main(void) { + int a = 20; + int b = 0; + int result = sum(a, b); + if (result != a + b) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/sum_25x0-1.c b/data/benchmarks/sv-benchmarks/recursive-simple/sum_25x0-1.c new file mode 100644 index 000000000..9537ae154 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/sum_25x0-1.c @@ -0,0 +1,20 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "sum_25x0-1.c", 3, "reach_error"); } + +int sum(int n, int m) { + if (n <= 0) { + return m + n; + } else { + return sum(n - 1, m + 1); + } +} + +int main(void) { + int a = 25; + int b = 0; + int result = sum(a, b); + if (result != a + b) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/sum_25x0-2.c b/data/benchmarks/sv-benchmarks/recursive-simple/sum_25x0-2.c new file mode 100644 index 000000000..82766fdb8 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/sum_25x0-2.c @@ -0,0 +1,20 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "sum_25x0-2.c", 3, "reach_error"); } + +int sum(int n, int m) { + if (n <= 0) { + return m + n; + } else { + return sum(n - 1, m + 1); + } +} + +int main(void) { + int a = 25; + int b = 0; + int result = sum(a, b); + if (result == a + b) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/sum_2x3-1.c b/data/benchmarks/sv-benchmarks/recursive-simple/sum_2x3-1.c new file mode 100644 index 000000000..2e5de1518 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/sum_2x3-1.c @@ -0,0 +1,20 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "sum_2x3-1.c", 3, "reach_error"); } + +int sum(int n, int m) { + if (n <= 0) { + return m + n; + } else { + return sum(n - 1, m + 1); + } +} + +int main(void) { + int a = 2; + int b = 3; + int result = sum(a, b); + if (result == a + b) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/sum_2x3-2.c b/data/benchmarks/sv-benchmarks/recursive-simple/sum_2x3-2.c new file mode 100644 index 000000000..51b0b2182 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/sum_2x3-2.c @@ -0,0 +1,20 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "sum_2x3-2.c", 3, "reach_error"); } + +int sum(int n, int m) { + if (n <= 0) { + return m + n; + } else { + return sum(n - 1, m + 1); + } +} + +int main(void) { + int a = 2; + int b = 3; + int result = sum(a, b); + if (result != a + b) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/sum_non.c b/data/benchmarks/sv-benchmarks/recursive-simple/sum_non.c new file mode 100644 index 000000000..8d920239a --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/sum_non.c @@ -0,0 +1,21 @@ +extern int __VERIFIER_nondet_int(void); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "sum_non.c", 4, "reach_error"); } + +int sum(int n, int m) { + if (n <= 0) { + return m + n; + } else { + return sum(n - 1, m + 1); + } +} + +int main(void) { + int a = __VERIFIER_nondet_int(); + int b = __VERIFIER_nondet_int(); + int result = sum(a, b); + if (result != a + b) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/sum_non_eq-1.c b/data/benchmarks/sv-benchmarks/recursive-simple/sum_non_eq-1.c new file mode 100644 index 000000000..c33990ad9 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/sum_non_eq-1.c @@ -0,0 +1,21 @@ +extern int __VERIFIER_nondet_int(void); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "sum_non_eq-1.c", 4, "reach_error"); } + +int sum(int n, int m) { + if (n == 0) { + return m; + } else { + return sum(n - 1, m + 1); + } +} + +int main(void) { + int a = __VERIFIER_nondet_int() ; + int b = __VERIFIER_nondet_int(); + int result = sum(a, b); + if (result != a + b) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/sum_non_eq-2.c b/data/benchmarks/sv-benchmarks/recursive-simple/sum_non_eq-2.c new file mode 100644 index 000000000..469c72e3c --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/sum_non_eq-2.c @@ -0,0 +1,21 @@ +extern unsigned int __VERIFIER_nondet_uint(void); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "sum_non_eq-2.c", 4, "reach_error"); } + +unsigned int sum(unsigned int n, unsigned int m) { + if (n == 0) { + return m; + } else { + return sum(n - 1, m + 1); + } +} + +int main(void) { + unsigned int a = __VERIFIER_nondet_uint(); + unsigned int b = __VERIFIER_nondet_uint(); + unsigned int result = sum(a, b); + if (result != a + b) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive-simple/sum_non_eq-3.c b/data/benchmarks/sv-benchmarks/recursive-simple/sum_non_eq-3.c new file mode 100644 index 000000000..545e223ae --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive-simple/sum_non_eq-3.c @@ -0,0 +1,21 @@ +extern unsigned int __VERIFIER_nondet_uint(void); +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "sum_non_eq-3.c", 4, "reach_error"); } + +unsigned int sum(unsigned int n, unsigned int m) { + if (n == 0) { + return m; + } else { + return sum(n - 1, m + 1); + } +} + +int main(void) { + unsigned int a = __VERIFIER_nondet_uint(); + unsigned int b = __VERIFIER_nondet_uint(); + unsigned int result = sum(a, b); + if (result == a + b) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive/Ackermann01-2.c b/data/benchmarks/sv-benchmarks/recursive/Ackermann01-2.c new file mode 100644 index 000000000..9b8beb3be --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive/Ackermann01-2.c @@ -0,0 +1,48 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "Ackermann01-2.c", 3, "reach_error"); } + +/* + * Implementation the Ackermann function. + * http://en.wikipedia.org/wiki/Ackermann_function + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + * Copied from termination-numeric/Ackermann01_true-termination.c + */ + +extern int __VERIFIER_nondet_int(void); + +int ackermann(int m, int n) { + if (m==0) { + return n+1; + } + if (n==0) { + return ackermann(m-1,1); + } + return ackermann(m-1,ackermann(m,n-1)); +} + + +int main() { + int m = __VERIFIER_nondet_int(); + if (m < 0 || m > 3) { + // additional branch to avoid undefined behavior + // (because of signed integer overflow) + return 0; + } + int n = __VERIFIER_nondet_int(); + if (n < 0 || n > 23) { + // additional branch to avoid undefined behavior + // (because of signed integer overflow) + // + return 0; + } + int result = ackermann(m,n); + if (m < 0 || n < 0 || result >= 0) { + return 0; + } else { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive/Ackermann02.c b/data/benchmarks/sv-benchmarks/recursive/Ackermann02.c new file mode 100644 index 000000000..67a1b6fcd --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive/Ackermann02.c @@ -0,0 +1,47 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "Ackermann02.c", 3, "reach_error"); } + +/* + * Implementation the Ackermann function. + * http://en.wikipedia.org/wiki/Ackermann_function + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + +int ackermann(int m, int n) { + if (m==0) { + return n+1; + } + if (n==0) { + return ackermann(m-1,1); + } + return ackermann(m-1,ackermann(m,n-1)); +} + + +int main() { + int m = __VERIFIER_nondet_int(); + if (m < 0 || m > 3) { + // additional branch to avoid undefined behavior + // (because of signed integer overflow) + return 0; + } + int n = __VERIFIER_nondet_int(); + if (n < 0 || n > 23) { + // additional branch to avoid undefined behavior + // (because of signed integer overflow) + // + return 0; + } + int result = ackermann(m,n); + if (m < 2 || result >= 4) { + return 0; + } else { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive/Ackermann03.c b/data/benchmarks/sv-benchmarks/recursive/Ackermann03.c new file mode 100644 index 000000000..148b78b19 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive/Ackermann03.c @@ -0,0 +1,48 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "Ackermann03.c", 3, "reach_error"); } + +/* + * Implementation the Ackermann function. + * http://en.wikipedia.org/wiki/Ackermann_function + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + +int ackermann(int m, int n) { + if (m==0) { + return n+1; + } + if (n==0) { + return ackermann(m-1,1); + } + return ackermann(m-1,ackermann(m,n-1)); +} + + +int main() { + int m = __VERIFIER_nondet_int(); + if (m < 0 || m > 3) { + // additional branch to avoid undefined behavior + // (because of signed integer overflow) + return 0; + } + int n = __VERIFIER_nondet_int(); + if (n < 0 || n > 23) { + // additional branch to avoid undefined behavior + // (because of signed integer overflow) + // + return 0; + } + int result = ackermann(m,n); + if (m != 2 || n != 2 || result == 7) { + return 0; + } else { + ERROR: {reach_error();abort();} + } +} + diff --git a/data/benchmarks/sv-benchmarks/recursive/Ackermann04.c b/data/benchmarks/sv-benchmarks/recursive/Ackermann04.c new file mode 100644 index 000000000..9b54fd6dd --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive/Ackermann04.c @@ -0,0 +1,48 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "Ackermann04.c", 3, "reach_error"); } + +/* + * Implementation the Ackermann function. + * http://en.wikipedia.org/wiki/Ackermann_function + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + +int ackermann(int m, int n) { + if (m==0) { + return n+1; + } + if (n==0) { + return ackermann(m-1,1); + } + return ackermann(m-1,ackermann(m,n-1)); +} + + +int main() { + int m = __VERIFIER_nondet_int(); + if (m < 0 || m > 3) { + // additional branch to avoid undefined behavior + // (because of signed integer overflow) + return 0; + } + int n = __VERIFIER_nondet_int(); + if (n < 0 || n > 23) { + // additional branch to avoid undefined behavior + // (because of signed integer overflow) + // + return 0; + } + int result = ackermann(m,n); + if (m < 2 || n < 2 || result >= 7) { + return 0; + } else { + ERROR: {reach_error();abort();} + } +} + diff --git a/data/benchmarks/sv-benchmarks/recursive/Addition01-2.c b/data/benchmarks/sv-benchmarks/recursive/Addition01-2.c new file mode 100644 index 000000000..2be35928f --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive/Addition01-2.c @@ -0,0 +1,47 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "Addition01-2.c", 3, "reach_error"); } + +/* + * Recursive implementation integer addition. + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + +int addition(int m, int n) { + if (n == 0) { + return m; + } + if (n > 0) { + return addition(m+1, n-1); + } + if (n < 0) { + return addition(m-1, n+1); + } +} + + +int main() { + int m = __VERIFIER_nondet_int(); + if (m < 0 || m > 1073741823) { + // additional branch to avoid undefined behavior + // (because of signed integer overflow) + return 0; + } + int n = __VERIFIER_nondet_int(); + if (n < 0 || n > 1073741823) { + // additional branch to avoid undefined behavior + // (because of signed integer overflow) + return 0; + } + int result = addition(m,n); + if (result == m + n) { + return 0; + } else { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive/Addition02.c b/data/benchmarks/sv-benchmarks/recursive/Addition02.c new file mode 100644 index 000000000..520e3b096 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive/Addition02.c @@ -0,0 +1,47 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "Addition02.c", 3, "reach_error"); } + +/* + * Recursive implementation integer addition. + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + +int addition(int m, int n) { + if (n == 0) { + return m; + } + if (n > 0) { + return addition(m+1, n-1); + } + if (n < 0) { + return addition(m-1, n+1); + } +} + + +int main() { + int m = __VERIFIER_nondet_int(); + if (m < 0 || m > 1073741823) { + // additional branch to avoid undefined behavior + // (because of signed integer overflow) + return 0; + } + int n = __VERIFIER_nondet_int(); + if (n < 0 || n > 1073741823) { + // additional branch to avoid undefined behavior + // (because of signed integer overflow) + return 0; + } + int result = addition(m,n); + if (result == m - n) { + return 0; + } else { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive/Addition02WithOverflowBug.c b/data/benchmarks/sv-benchmarks/recursive/Addition02WithOverflowBug.c new file mode 100644 index 000000000..e08684c62 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive/Addition02WithOverflowBug.c @@ -0,0 +1,37 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "Addition02WithOverflowBug.c", 3, "reach_error"); } + +/* + * Recursive implementation integer addition. + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + +int addition(int m, int n) { + if (n == 0) { + return m; + } + if (n > 0) { + return addition(m+1, n-1); + } + if (n < 0) { + return addition(m-1, n+1); + } +} + + +int main() { + int m = __VERIFIER_nondet_int(); + int n = __VERIFIER_nondet_int(); + int result = addition(m,n); + if (result == m - n) { + return 0; + } else { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive/Addition03-1.c b/data/benchmarks/sv-benchmarks/recursive/Addition03-1.c new file mode 100644 index 000000000..234d7ae3b --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive/Addition03-1.c @@ -0,0 +1,37 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "Addition03-1.c", 3, "reach_error"); } + +/* + * Recursive implementation integer addition. + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + +long long addition(long long m, long long n) { + if (n == 0) { + return m; + } + if (n > 0) { + return addition(m+1, n-1); + } + if (n < 0) { + return addition(m-1, n+1); + } +} + + +int main() { + int m = __VERIFIER_nondet_int(); + int n = __VERIFIER_nondet_int(); + long long result = addition(m,n); + if (m < 100 || n < 100 || result >= 200) { + return 0; + } else { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive/Addition03-2.c b/data/benchmarks/sv-benchmarks/recursive/Addition03-2.c new file mode 100644 index 000000000..7eb9b77a3 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive/Addition03-2.c @@ -0,0 +1,37 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "Addition03-2.c", 3, "reach_error"); } + +/* + * Recursive implementation integer addition. + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + +int addition(int m, int n) { + if (n == 0) { + return m; + } + if (n > 0) { + return addition(m+1, n-1); + } + if (n < 0) { + return addition(m-1, n+1); + } +} + + +int main() { + int m = __VERIFIER_nondet_int(); + int n = __VERIFIER_nondet_int(); + int result = addition(m,n); + if (m < 100 || n < 100 || result >= 200) { + return 0; + } else { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive/BallRajamani-SPIN2000-Fig1.c b/data/benchmarks/sv-benchmarks/recursive/BallRajamani-SPIN2000-Fig1.c new file mode 100644 index 000000000..97dca85b9 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive/BallRajamani-SPIN2000-Fig1.c @@ -0,0 +1,35 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "BallRajamani-SPIN2000-Fig1.c", 3, "reach_error"); } + +/* + * Program depicted in Fig.1 of + * 2000SPIN - Ball,Rajamani - Bebop: A Symbolic Model Checker for Boolean Programs + * + * Author: Matthias Heizmann + * Date: 2014-07-31 + * + */ + +extern int __VERIFIER_nondet_int(void); + +int g; + +int A(int a1, int a2) { + if (a1) { + A(a2,a1); + } else { + g = a2; + } +} + + +int main() { + int g = __VERIFIER_nondet_int(); + int h = !g; + A(g,h); + A(g,h); + if (g) { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive/EvenOdd01-1.c b/data/benchmarks/sv-benchmarks/recursive/EvenOdd01-1.c new file mode 100644 index 000000000..6c9c859e0 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive/EvenOdd01-1.c @@ -0,0 +1,51 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "EvenOdd01-1.c", 3, "reach_error"); } + +/* + * Recursive implementation integer addition. + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + +int isOdd(int n); +int isEven(int n); + +int isOdd(int n) { + if (n == 0) { + return 0; + } else if (n == 1) { + return 1; + } else { + return isEven(n - 1); + } +} + +int isEven(int n) { + if (n == 0) { + return 1; + } else if (n == 1) { + return 0; + } else { + return isOdd(n - 1); + } +} + + +int main() { + int n = __VERIFIER_nondet_int(); + if (n < 0) { + return 0; + } + int result = isOdd(n); + int mod = n % 2; + if (result < 0 || result == mod) { + return 0; + } else { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive/EvenOdd03.c b/data/benchmarks/sv-benchmarks/recursive/EvenOdd03.c new file mode 100644 index 000000000..1a5baee07 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive/EvenOdd03.c @@ -0,0 +1,51 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "EvenOdd03.c", 3, "reach_error"); } + +/* + * Recursive implementation integer addition. + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + +int isOdd(int n); +int isEven(int n); + +int isOdd(int n) { + if (n == 0) { + return 0; + } else if (n == 1) { + return 1; + } else { + return isEven(n - 1); + } +} + +int isEven(int n) { + if (n == 0) { + return 1; + } else if (n == 1) { + return 0; + } else { + return isOdd(n - 1); + } +} + + +int main() { + int n = __VERIFIER_nondet_int(); + if (n < 0) { + return 0; + } + int result = isEven(n); + int mod = n % 2; + if (result < 0 || result == mod) { + return 0; + } else { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive/EvenOdd03WithOverflowBug.c b/data/benchmarks/sv-benchmarks/recursive/EvenOdd03WithOverflowBug.c new file mode 100644 index 000000000..f12a7879a --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive/EvenOdd03WithOverflowBug.c @@ -0,0 +1,48 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "EvenOdd03WithOverflowBug.c", 3, "reach_error"); } + +/* + * Recursive implementation integer addition. + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + +int isOdd(int n); +int isEven(int n); + +int isOdd(int n) { + if (n == 0) { + return 0; + } else if (n == 1) { + return 1; + } else { + return isEven(n - 1); + } +} + +int isEven(int n) { + if (n == 0) { + return 1; + } else if (n == 1) { + return 0; + } else { + return isOdd(n - 1); + } +} + + +int main() { + int n = __VERIFIER_nondet_int(); + int result = isEven(n); + int mod = n % 2; + if (result < 0 || result == mod) { + return 0; + } else { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive/Fibonacci01-1.c b/data/benchmarks/sv-benchmarks/recursive/Fibonacci01-1.c new file mode 100644 index 000000000..26e2ad02e --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive/Fibonacci01-1.c @@ -0,0 +1,40 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "Fibonacci01-1.c", 3, "reach_error"); } + +/* + * Recursive computation of fibonacci numbers. + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + + +int fibonacci(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibonacci(n-1) + fibonacci(n-2); + } +} + + +int main() { + int x = __VERIFIER_nondet_int(); + if (x > 46 || x == -2147483648) { + return 0; + } + int result = fibonacci(x); + if (result >= x - 1) { + return 0; + } else { + ERROR: {reach_error();abort();} + } +} + + diff --git a/data/benchmarks/sv-benchmarks/recursive/Fibonacci02.c b/data/benchmarks/sv-benchmarks/recursive/Fibonacci02.c new file mode 100644 index 000000000..e9ca445ed --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive/Fibonacci02.c @@ -0,0 +1,35 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "Fibonacci02.c", 3, "reach_error"); } + +/* + * Recursive computation of fibonacci numbers. + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + + +int fibonacci(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibonacci(n-1) + fibonacci(n-2); + } +} + + +int main() { + int x = 9; + int result = fibonacci(x); + if (result == 34) { + return 0; + } else { + ERROR: {reach_error();abort();} + } +} \ No newline at end of file diff --git a/data/benchmarks/sv-benchmarks/recursive/Fibonacci03.c b/data/benchmarks/sv-benchmarks/recursive/Fibonacci03.c new file mode 100644 index 000000000..743116c47 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive/Fibonacci03.c @@ -0,0 +1,39 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "Fibonacci03.c", 3, "reach_error"); } + +/* + * Recursive computation of fibonacci numbers. + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + + +int fibonacci(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibonacci(n-1) + fibonacci(n-2); + } +} + + +int main() { + int x = __VERIFIER_nondet_int(); + if (x > 46) { + return 0; + } + int result = fibonacci(x); + if (x < 9 || result >= 34) { + return 0; + } else { + ERROR: {reach_error();abort();} + } +} + \ No newline at end of file diff --git a/data/benchmarks/sv-benchmarks/recursive/Fibonacci04.c b/data/benchmarks/sv-benchmarks/recursive/Fibonacci04.c new file mode 100644 index 000000000..647656669 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive/Fibonacci04.c @@ -0,0 +1,39 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "Fibonacci04.c", 3, "reach_error"); } + +/* + * Recursive computation of fibonacci numbers. + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); +int fibonacci(int n); +int main(); + + +int fibonacci(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibonacci(n-1) + fibonacci(n-2); + } +} + + +int main() { + int x = __VERIFIER_nondet_int(); + int result = fibonacci(x); + if (x != 5 || result == 3) { + return 0; + } else { + ERROR: {reach_error();abort();} + } +} + + diff --git a/data/benchmarks/sv-benchmarks/recursive/Fibonacci05.c b/data/benchmarks/sv-benchmarks/recursive/Fibonacci05.c new file mode 100644 index 000000000..083072b78 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive/Fibonacci05.c @@ -0,0 +1,36 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "Fibonacci05.c", 3, "reach_error"); } + +/* + * Recursive computation of fibonacci numbers. + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + + +int fibonacci(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibonacci(n-1) + fibonacci(n-2); + } +} + + +int main() { + int x = __VERIFIER_nondet_int(); + int result = fibonacci(x); + if (x < 8 || result >= 34) { + return 0; + } else { + ERROR: {reach_error();abort();} + } +} + \ No newline at end of file diff --git a/data/benchmarks/sv-benchmarks/recursive/LICENSE.txt b/data/benchmarks/sv-benchmarks/recursive/LICENSE.txt new file mode 100644 index 000000000..7f941dd2a --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive/LICENSE.txt @@ -0,0 +1,23 @@ +Copyright (c) 2013, University of Freiburg +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. \ No newline at end of file diff --git a/data/benchmarks/sv-benchmarks/recursive/Makefile b/data/benchmarks/sv-benchmarks/recursive/Makefile new file mode 100644 index 000000000..9898a05c0 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive/Makefile @@ -0,0 +1,14 @@ +# This file is part of the SV-Benchmarks collection of verification tasks: +# https://github.com/sosy-lab/sv-benchmarks +# +# SPDX-FileCopyrightText: 2015-2016 Daniel Liew +# SPDX-FileCopyrightText: 2015-2020 The SV-Benchmarks Community +# +# SPDX-License-Identifier: Apache-2.0 + +LEVEL := ../ + +COMMON_WARNINGS := \ + -Wno-error=return-type \ + +include $(LEVEL)/Makefile.config diff --git a/data/benchmarks/sv-benchmarks/recursive/McCarthy91-1.c b/data/benchmarks/sv-benchmarks/recursive/McCarthy91-1.c new file mode 100644 index 000000000..fce7c2bc8 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive/McCarthy91-1.c @@ -0,0 +1,34 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "McCarthy91-1.c", 3, "reach_error"); } + +/* + * Implementation the McCarthy 91 function. + * http://en.wikipedia.org/wiki/McCarthy_91_function + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + + +int f91(int x) { + if (x > 100) + return x -10; + else { + return f91(f91(x+11)); + } +} + + +int main() { + int x = __VERIFIER_nondet_int(); + int result = f91(x); + if (result == 91 || x > 102 && result == x - 10) { + return 0; + } else { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive/McCarthy91-2.c b/data/benchmarks/sv-benchmarks/recursive/McCarthy91-2.c new file mode 100644 index 000000000..1ee7abfed --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive/McCarthy91-2.c @@ -0,0 +1,34 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "McCarthy91-2.c", 3, "reach_error"); } + +/* + * Implementation the McCarthy 91 function. + * http://en.wikipedia.org/wiki/McCarthy_91_function + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + + +int f91(int x) { + if (x > 100) + return x -10; + else { + return f91(f91(x+11)); + } +} + + +int main() { + int x = __VERIFIER_nondet_int(); + int result = f91(x); + if (result == 91 || x > 101 && result == x - 10) { + return 0; + } else { + ERROR: {reach_error();abort();} + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive/MultCommutative-2.c b/data/benchmarks/sv-benchmarks/recursive/MultCommutative-2.c new file mode 100644 index 000000000..9330a2a82 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive/MultCommutative-2.c @@ -0,0 +1,43 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "MultCommutative-2.c", 3, "reach_error"); } + +/* + * Recursive implementation multiplication by repeated addition + * Check that this multiplication is commutative + * + * Author: Jan Leike + * Date: 2013-07-17 + * + */ + +extern int __VERIFIER_nondet_int(void); + +// Multiplies two integers n and m +int mult(int n, int m) { + if (m < 0) { + return mult(n, -m); + } + if (m == 0) { + return 0; + } + return n + mult(n, m - 1); +} + +int main() { + int m = __VERIFIER_nondet_int(); + if (m < 0 || m > 46340) { + return 0; + } + int n = __VERIFIER_nondet_int(); + if (n < 0 || n > 46340) { + return 0; + } + int res1 = mult(m, n); + int res2 = mult(n, m); + if (res1 != res2 && m > 0 && n > 0) { + ERROR: {reach_error();abort();} + } else { + return 0; + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive/Primes.c b/data/benchmarks/sv-benchmarks/recursive/Primes.c new file mode 100644 index 000000000..ce6fe6e42 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive/Primes.c @@ -0,0 +1,102 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "Primes.c", 3, "reach_error"); } + +/* + * Recursive implementation of prime number test + * (Sieve of Eratosthenes) + * + * Author: Jan Leike + * Date: 2013-07-17 + * + */ + +extern int __VERIFIER_nondet_int(void); + +// Multiplies two integers n and m +int mult(int n, int m) { + if (m < 0) { + return mult(n, -m); + } + if (m == 0) { + return 0; + } + if (m == 1) { + return 1; + } + return n + mult(n, m - 1); +} + +// Is n a multiple of m? +int multiple_of(int n, int m) { + if (m < 0) { + return multiple_of(n, -m); + } + if (n < 0) { + return multiple_of(-n, m); // false + } + if (m == 0) { + return 0; // false + } + if (n == 0) { + return 1; // true + } + return multiple_of(n - m, m); +} + + +int is_prime_(int n, int m); +int is_prime(int n); + +// Is n prime? +int is_prime(int n) { + return is_prime_(n, n - 1); +} + + +int is_prime_(int n, int m) { + if (n <= 1) { + return 0; // false + } + if (n == 2) { + return 1; // true + } + if (n > 2) { + if (m <= 1) { + return 1; // true + } else { + if (multiple_of(n, m) == 0) { + return 0; // false + } + return is_prime_(n, m - 1); + } + } +} + +int main() { + int n = __VERIFIER_nondet_int(); + if (n < 1 || n > 46340) { + // additional branch to avoid undefined behavior + // (because of signed integer overflow) + return 0; + } + int result = is_prime(n); + int f1 = __VERIFIER_nondet_int(); + if (f1 < 1 || f1 > 46340) { + // additional branch to avoid undefined behavior + // (because of signed integer overflow) + return 0; + } + int f2 = __VERIFIER_nondet_int(); + if (f2 < 1 || f2 > 46340) { + // additional branch to avoid undefined behavior + // (because of signed integer overflow) + return 0; + } + + if (result == 1 && mult(f1, f2) == n && f1 > 1 && f2 > 1) { + ERROR: {reach_error();abort();} + } else { + return 0; + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive/README.txt b/data/benchmarks/sv-benchmarks/recursive/README.txt new file mode 100644 index 000000000..072d67da8 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive/README.txt @@ -0,0 +1,2 @@ +Recursive C programs, contributed by Matthias Heizmann. + diff --git a/data/benchmarks/sv-benchmarks/recursive/gcd01-1.c b/data/benchmarks/sv-benchmarks/recursive/gcd01-1.c new file mode 100644 index 000000000..b6b29f61b --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive/gcd01-1.c @@ -0,0 +1,45 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "gcd01-1.c", 3, "reach_error"); } + +/* + * Recursive implementation of the greatest common denominator + * using Euclid's algorithm + * + * Author: Jan Leike + * Date: 2013-07-17 + * + */ + +extern int __VERIFIER_nondet_int(void); + +// Compute the greatest common denominator using Euclid's algorithm +int gcd(int y1, int y2) { + if (y1 <= 0 || y2 <= 0) { + return 0; + } + if (y1 == y2) { + return y1; + } + if (y1 > y2) { + return gcd(y1 - y2, y2); + } + return gcd(y1, y2 - y1); +} + +int main() { + int m = __VERIFIER_nondet_int(); + if (m <= 0 || m > 2147483647) { + return 0; + } + int n = __VERIFIER_nondet_int(); + if (n <= 0 || n > 2147483647) { + return 0; + } + int z = gcd(m, n); + if (z < 1 && m > 0 && n > 0) { + ERROR: {reach_error();abort();} + } else { + return 0; + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive/gcd02.c b/data/benchmarks/sv-benchmarks/recursive/gcd02.c new file mode 100644 index 000000000..342852077 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive/gcd02.c @@ -0,0 +1,59 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "gcd02.c", 3, "reach_error"); } + +/* + * Recursive implementation of the greatest common denominator + * using Euclid's algorithm + * + * Author: Jan Leike + * Date: 2013-07-17 + * + */ + +extern int __VERIFIER_nondet_int(void); + +// Compute the greatest common denominator using Euclid's algorithm +int gcd(int y1, int y2) { + if (y1 <= 0 || y2 <= 0) { + // No non-positive input allowed + ERROR: {reach_error();abort();} + } + if (y1 == y2) { + return y1; + } + if (y1 > y2) { + return gcd(y1 - y2, y2); + } + return gcd(y1, y2 - y1); +} + +// does n divide m? +int divides(int n, int m) { + if (m == 0) { + return 1; // true + } + if (n > m) { + return 0; // false + } + return divides(n, m - n); +} + +int main() { + int m = __VERIFIER_nondet_int(); + if (m <= 0 || m > 2147483647) { + return 0; + } + int n = __VERIFIER_nondet_int(); + if (n <= 0 || n > 2147483647) { + return 0; + } + if (m > 0 && n > 0) { + int z = gcd(m, n); + if (divides(z, m) == 0) { + ERROR: {reach_error();abort();} + } else { + return 0; + } + } +} diff --git a/data/benchmarks/sv-benchmarks/recursive/recHanoi01.c b/data/benchmarks/sv-benchmarks/recursive/recHanoi01.c new file mode 100644 index 000000000..831ab5852 --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive/recHanoi01.c @@ -0,0 +1,58 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "recHanoi01.c", 3, "reach_error"); } + +/* + * recHanoi.c + * + * Created on: 17.07.2013 + * Author: Stefan Wissert + */ + +extern int __VERIFIER_nondet_int(void); + +int counter; +/* + * This function returns the optimal amount of steps, + * needed to solve the problem for n-disks + */ +int hanoi(int n) { + if (n == 1) { + return 1; + } + return 2 * (hanoi(n-1)) + 1; +} + +/* + * This applies the known algorithm, without executing it (so no arrays). + * But the amount of steps is counted in a global variable. + */ +void applyHanoi(int n, int from, int to, int via) +{ + if (n == 0) { + return; + } + // increment the number of steps + counter++; + applyHanoi(n-1, from, via, to); + applyHanoi(n-1, via, to, from); +} + +int main() { + int n = __VERIFIER_nondet_int(); + if (n < 1 || n > 31) { + return 0; + } + counter = 0; + applyHanoi(n, 1, 3, 2); + int result = hanoi(n); + // result and the counter should be the same! + if (result == counter) { + return 0; + } else { + ERROR: {reach_error();abort();} + } +} + + + diff --git a/data/benchmarks/sv-benchmarks/recursive/recHanoi02-2.c b/data/benchmarks/sv-benchmarks/recursive/recHanoi02-2.c new file mode 100644 index 000000000..c55371b5d --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive/recHanoi02-2.c @@ -0,0 +1,41 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "recHanoi02-2.c", 3, "reach_error"); } + +/* + * recHanoi.c + * + * Created on: 17.07.2013 + * Author: Stefan Wissert + * + * Copied from c/termination-numeric/recHanoi02_true-termination.c + */ + +extern int __VERIFIER_nondet_int(void); + +/* + * This function returns the optimal amount of steps, + * needed to solve the problem for n-disks + */ +int hanoi(int n) { + if (n == 1) { + return 1; + } + return 2 * (hanoi(n-1)) + 1; +} + + +int main() { + int n = __VERIFIER_nondet_int(); + if (n < 1 || n > 31) { + return 0; + } + int result = hanoi(n); + if (result >= 0) { + return 0; + } else { + ERROR: {reach_error();abort();} + } +} + + diff --git a/data/benchmarks/sv-benchmarks/recursive/recHanoi03-2.c b/data/benchmarks/sv-benchmarks/recursive/recHanoi03-2.c new file mode 100644 index 000000000..efc1d4bbf --- /dev/null +++ b/data/benchmarks/sv-benchmarks/recursive/recHanoi03-2.c @@ -0,0 +1,39 @@ +extern void abort(void); +extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +void reach_error() { __assert_fail("0", "recHanoi03-2.c", 3, "reach_error"); } + +/* + * recHanoi.c + * + * Created on: 17.07.2013 + * Author: Stefan Wissert + */ + +extern int __VERIFIER_nondet_int(void); + +/* + * This function returns the optimal amount of steps, + * needed to solve the problem for n-disks + */ +int hanoi(int n) { + if (n == 1) { + return 1; + } + return 2 * (hanoi(n-1)) + 1; +} + + +int main() { + int n = __VERIFIER_nondet_int(); + if (n < 1 || n > 31) { + return 0; + } + int result = hanoi(n); + if (result >= n) { + return 0; + } else { + ERROR: {reach_error();abort();} + } +} + + diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Avery-2006FLOPS-Tabel1_true-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Avery-2006FLOPS-Tabel1_true-alloca.c new file mode 100644 index 000000000..31acd201b --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Avery-2006FLOPS-Tabel1_true-alloca.c @@ -0,0 +1,33 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int subxy(int x, int y) { + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + int* z = alloca(sizeof(int)); + int* i = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + *z = 0; + *i = *x_ref; + if (*y_ref <= 0 || *x_ref <= 0) { + return 0; + } + while (*i > 0) { + (*i)--; + (*z)++; + } + while (*i < *y_ref) { + (*i)++; + (*z)--; + } + return *z; +} + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + subxy(x,y); + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Ben-Amram-2010LMCS-Ex2.3_true-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Ben-Amram-2010LMCS-Ex2.3_true-alloca.c new file mode 100644 index 000000000..0827a1d2f --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Ben-Amram-2010LMCS-Ex2.3_true-alloca.c @@ -0,0 +1,35 @@ +#include + +/* + * Program from Ex.2.3 of + * 2010LMCS - Ben-Amram - Size-Change Termination, Monotonicity Constraints and Ranking Functions + * + * Date: 12.12.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +extern int __VERIFIER_nondet_int(void); + + +int main() { + int *x = alloca(sizeof(int)); + int *y = alloca(sizeof(int)); + int *z = alloca(sizeof(int)); + *x = __VERIFIER_nondet_int(); + *y = __VERIFIER_nondet_int(); + *z = __VERIFIER_nondet_int(); + + while (*x > 0 && *y > 0 && *z > 0) { + if (*y > *x) { + *y = *z; + *x = __VERIFIER_nondet_int(); + *z = *x - 1; + } else { + *z = *z - 1; + *x = __VERIFIER_nondet_int(); + *y = *x - 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_BradleyMannaSipma-2005CAV-Fig1-modified_false-termination.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_BradleyMannaSipma-2005CAV-Fig1-modified_false-termination.c new file mode 100644 index 000000000..5d4540a20 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_BradleyMannaSipma-2005CAV-Fig1-modified_false-termination.c @@ -0,0 +1,39 @@ +#include + +/* + * Program from Fig.1 of + * 2005CAV - Bradley,Manna,Sipma - Linear Ranking with Reachability + * Modified version that can be nonterminating because we allow that inputs of + * gcd may be zero. + * + * Date: 12.12.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +extern int __VERIFIER_nondet_int(void); + + +int gcd(int *y1, int *y2) { + while (*y1 != *y2) { + if (*y1 > *y2) { + *y1 = *y1 - *y2; + } else { + *y2 = *y2 - *y1; + } + } + return *y1; +} + +int main() { + int *y1 = alloca(sizeof(int)); + int *y2 = alloca(sizeof(int)); + *y1 = __VERIFIER_nondet_int(); + *y2 = __VERIFIER_nondet_int(); + if (*y1 >= 0 && *y2 >= 0) { + gcd(y1, y2); + } + return 0; +} + + diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_BradleyMannaSipma-2005CAV-Fig1_true-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_BradleyMannaSipma-2005CAV-Fig1_true-alloca.c new file mode 100644 index 000000000..ab9ca3e22 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_BradleyMannaSipma-2005CAV-Fig1_true-alloca.c @@ -0,0 +1,40 @@ +#include + +/* + * Program from Fig.1 of + * 2005CAV - Bradley,Manna,Sipma - Linear Ranking with Reachability + * + * Date: 12.12.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +extern int __VERIFIER_nondet_int(void); + + +int main() { + int *x = alloca(sizeof(int)); + int *y = alloca(sizeof(int)); + int *N = alloca(sizeof(int)); + *x = __VERIFIER_nondet_int(); + *y = __VERIFIER_nondet_int(); + *N = __VERIFIER_nondet_int(); + // continue only for values where there won't be any overflow or underflow + // on systems where sizeof(int)=4 holds. + if (*N >= 536870912 || *x >= 536870912 || *y >= 536870912 || *x < -1073741824) { + return 0; + } + if (*x + *y >= 0) { + while (*x <= *N) { + if (__VERIFIER_nondet_int()) { + *x = 2*(*x) + *y; + *y = *y + 1; + } else { + *x = *x + 1; + } + } + } + return 0; +} + + diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_BradleyMannaSipma-2005ICALP-Fig1_true-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_BradleyMannaSipma-2005ICALP-Fig1_true-alloca.c new file mode 100644 index 000000000..69c733473 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_BradleyMannaSipma-2005ICALP-Fig1_true-alloca.c @@ -0,0 +1,28 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int gcd(int y1, int y2) { + int* y1_ref = alloca(sizeof(int)); + int* y2_ref = alloca(sizeof(int)); + *y1_ref = y1; + *y2_ref = y2; + + while (*y1_ref != *y2_ref) { + if (*y1_ref > *y2_ref) { + *y1_ref = *y1_ref - *y2_ref; + } else { + *y2_ref = *y2_ref - *y1_ref; + } + } + return *y1_ref; +} + +int main() { + int y1 = __VERIFIER_nondet_int(); + int y2 = __VERIFIER_nondet_int(); + if (y1 >= 0 && y2 >= 0) { + gcd(y1, y2); + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_BrockschmidtCookFuhs-2013CAV-Fig1_true-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_BrockschmidtCookFuhs-2013CAV-Fig1_true-alloca.c new file mode 100644 index 000000000..308d00f0d --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_BrockschmidtCookFuhs-2013CAV-Fig1_true-alloca.c @@ -0,0 +1,15 @@ +#include + +int main() { + int* i = alloca(sizeof(int)); + int* j = alloca(sizeof(int)); + int* n = alloca(sizeof(int)); + while (*i < *n) { + *j = 0; + while (*j <= *i) { + *j = *j + 1; + } + *i = *i + 1; + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_BrockschmidtCookFuhs-2013CAV-Introduction_true-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_BrockschmidtCookFuhs-2013CAV-Introduction_true-alloca.c new file mode 100644 index 000000000..6e48d575b --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_BrockschmidtCookFuhs-2013CAV-Introduction_true-alloca.c @@ -0,0 +1,12 @@ +#include + +int main() { + int* x = alloca(sizeof(int)); + int* y = alloca(sizeof(int)); + *y = 1; + while (*x > 0) { + *x = *x - *y; + *y = *y + 1; + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_ChenFlurMukhopadhyay-2012SAS-Fig1_true-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_ChenFlurMukhopadhyay-2012SAS-Fig1_true-alloca.c new file mode 100644 index 000000000..c60107949 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_ChenFlurMukhopadhyay-2012SAS-Fig1_true-alloca.c @@ -0,0 +1,18 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int main() { + int* x = alloca(sizeof(int)); + int* y = alloca(sizeof(int)); + int* z = alloca(sizeof(int)); + *x = __VERIFIER_nondet_int(); + *y = __VERIFIER_nondet_int(); + *z = __VERIFIER_nondet_int(); + + while (*x > 0) { + *x = *x + *y; + *y = *z; + *z = -(*z) - 1; + } +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_CookSeeZuleger-2013TACAS-Fig3_true-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_CookSeeZuleger-2013TACAS-Fig3_true-alloca.c new file mode 100644 index 000000000..660b44f47 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_CookSeeZuleger-2013TACAS-Fig3_true-alloca.c @@ -0,0 +1,16 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int main() { + int* x = alloca(sizeof(int)); + int* y = alloca(sizeof(int)); + while (*x > 0 && *y > 0) { + if (__VERIFIER_nondet_int()) { + *x = *x - 1; + } else { + *x = __VERIFIER_nondet_int(); + *y = *y - 1; + } + } +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_CookSeeZuleger-2013TACAS-Fig7a_true-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_CookSeeZuleger-2013TACAS-Fig7a_true-alloca.c new file mode 100644 index 000000000..487e85f7b --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_CookSeeZuleger-2013TACAS-Fig7a_true-alloca.c @@ -0,0 +1,20 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int main() { + int* x = alloca(sizeof(int)); + int* y = alloca(sizeof(int)); + int* d = alloca(sizeof(int)); + + while (*x > 0 && *y > 0 && *d > 0) { + if (__VERIFIER_nondet_int()) { + *x = *x - 1; + *d = __VERIFIER_nondet_int(); + } else { + *x = __VERIFIER_nondet_int(); + *y = *y - 1; + *d = *d - 1; + } + } +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_CookSeeZuleger-2013TACAS-Fig7b_true-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_CookSeeZuleger-2013TACAS-Fig7b_true-alloca.c new file mode 100644 index 000000000..dd03dc31a --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_CookSeeZuleger-2013TACAS-Fig7b_true-alloca.c @@ -0,0 +1,21 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int main() { + int* x = alloca(sizeof(int)); + int* y = alloca(sizeof(int)); + int* z = alloca(sizeof(int)); + + while (*x > 0 && *y > 0 && *z > 0) { + if (__VERIFIER_nondet_int()) { + *x = *x - 1; + } else if (__VERIFIER_nondet_int()) { + *y = *y - 1; + *z = __VERIFIER_nondet_int(); + } else { + *z = *z - 1; + *x = __VERIFIER_nondet_int(); + } + } +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_GulwaniJainKoskinen-2009PLDI-Fig1_true-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_GulwaniJainKoskinen-2009PLDI-Fig1_true-alloca.c new file mode 100644 index 000000000..2cdf69767 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_GulwaniJainKoskinen-2009PLDI-Fig1_true-alloca.c @@ -0,0 +1,23 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int main() { + int* id = alloca(sizeof(int)); + int* maxId = alloca(sizeof(int)); + *id = __VERIFIER_nondet_int(); + *maxId = __VERIFIER_nondet_int(); + + if (0 <= *id && *id < *maxId) { + int* tmp = alloca(sizeof(int)); + *tmp = *id + 1; + while (*tmp != *id && __VERIFIER_nondet_int()) { + if (*tmp <= *maxId) { + *tmp = *tmp + 1; + } else { + *tmp = 0; + } + } + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_HarrisLalNoriRajamani-2010SAS-Fig1_true-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_HarrisLalNoriRajamani-2010SAS-Fig1_true-alloca.c new file mode 100644 index 000000000..0880293b9 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_HarrisLalNoriRajamani-2010SAS-Fig1_true-alloca.c @@ -0,0 +1,43 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +void f(int d) { + int* d_ref = alloca(sizeof(int)); + int* x = alloca(sizeof(int)); + int* y = alloca(sizeof(int)); + int* k = alloca(sizeof(int)); + int* z = alloca(sizeof(int)); + *d_ref = d; + *x = 1; + *y = 1; + *k = 1; + *z = 1; + + if (*k > 1073741823) { + return; + } + L1: + while (*z < *k) { + *z = 2 * (*z); + } + L2: + while (*x > 0 && *y > 0) { + if (__VERIFIER_nondet_int()) { + P1: + *x = *x - *d_ref; + *y = __VERIFIER_nondet_int(); + *z = *z - 1; + } else { + *y = *y - *d_ref; + } + } +} + +int main() { + if (__VERIFIER_nondet_int()) { + f(1); + } else { + f(2); + } +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_HarrisLalNoriRajamani-2010SAS-Fig2_false-unreach-label-termination-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_HarrisLalNoriRajamani-2010SAS-Fig2_false-unreach-label-termination-alloca.c new file mode 100644 index 000000000..6264699bf --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_HarrisLalNoriRajamani-2010SAS-Fig2_false-unreach-label-termination-alloca.c @@ -0,0 +1,70 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int foo(void) { + int* y = alloca(sizeof(int)); + if (__VERIFIER_nondet_int()) { + if (__VERIFIER_nondet_int()) { + if (__VERIFIER_nondet_int()) { + *y = 0; + } else { + *y = 1; + } + } else { + if (__VERIFIER_nondet_int()) { + *y = 2; + } else { + *y = 3; + } + } + } else { + if (__VERIFIER_nondet_int()) { + if (__VERIFIER_nondet_int()) { + *y = 4; + } else { + *y = 5; + } + } else { + if (__VERIFIER_nondet_int()) { + *y = 6; + } else { + *y = 7; + } + } + } return *y; +} + +int main() { + int* d = alloca(sizeof(int)); + int* x = alloca(sizeof(int)); + *d = 1; + + if (__VERIFIER_nondet_int()) { + *d = *d - 1; + } + + if (__VERIFIER_nondet_int()) { + foo(); + } + if (__VERIFIER_nondet_int()) { + foo(); + } + if (__VERIFIER_nondet_int()) { + foo(); + } + if (__VERIFIER_nondet_int()) { + foo(); + } + + // I think there is a typo in the paper and the following + // decrement can be omitted. + if (__VERIFIER_nondet_int()) { + *d = *d - 1; + } + + while (*x > 0) { + *x = *x - *d; + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_HarrisLalNoriRajamani-2010SAS-Fig3_true-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_HarrisLalNoriRajamani-2010SAS-Fig3_true-alloca.c new file mode 100644 index 000000000..f0061bf0b --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_HarrisLalNoriRajamani-2010SAS-Fig3_true-alloca.c @@ -0,0 +1,23 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int* x; + +int foo(void) { + (*x)--; +} + +int main() { + x = alloca(sizeof(int)); + *x = __VERIFIER_nondet_int(); + + while (*x > 0) { + if (__VERIFIER_nondet_int()) { + foo(); + } else { + foo(); + } + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_KroeningSharyginaTsitovichWintersteiger-2010CAV-Fig1_true-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_KroeningSharyginaTsitovichWintersteiger-2010CAV-Fig1_true-alloca.c new file mode 100644 index 000000000..13e7565b3 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_KroeningSharyginaTsitovichWintersteiger-2010CAV-Fig1_true-alloca.c @@ -0,0 +1,22 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int main() { + int* x = alloca(sizeof(int)); + int* debug = alloca(sizeof(int)); + *x = __VERIFIER_nondet_int(); + *debug = 0; + + while (*x < 255) { + if (*x % 2 != 0) { + (*x)--; + } else { + *x += 2; + } + if (*debug != 0) { + *x = 0; + } + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_LarrazOliverasRodriguez-CarbonellRubio-2013FMCAD-Fig1_true-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_LarrazOliverasRodriguez-CarbonellRubio-2013FMCAD-Fig1_true-alloca.c new file mode 100644 index 000000000..9b1911b51 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_LarrazOliverasRodriguez-CarbonellRubio-2013FMCAD-Fig1_true-alloca.c @@ -0,0 +1,21 @@ +#include + +int main() { + int* x = alloca(sizeof(int)); + int* y = alloca(sizeof(int)); + int* z = alloca(sizeof(int)); + // continue only for values where there won't be any overflow or underflow + // on systems where sizeof(int)=4 holds. + if (*x > 10000 || *x < -10000 || *y > 10000 || *z > 10000) { + return 0; + } + while (*y >= 1) { + (*x)--; + while (*y < *z) { + (*x)++; + (*z)--; + } + *y = *x + *y; + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Masse_true-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Masse_true-alloca.c new file mode 100644 index 000000000..7eb62c9a0 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Masse_true-alloca.c @@ -0,0 +1,14 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int main() { + int* x = alloca(sizeof(int)); + while (*x <= 1000) { + if (__VERIFIER_nondet_int()) { + *x = - 2 * (*x) + 2; + } else { + *x = - 3 * (*x) - 2; + } + } +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_NoriSharma-2013FSE-Fig7_true-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_NoriSharma-2013FSE-Fig7_true-alloca.c new file mode 100644 index 000000000..5c949cb49 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_NoriSharma-2013FSE-Fig7_true-alloca.c @@ -0,0 +1,20 @@ +#include + +int main() { + int* a = alloca(sizeof(int)); + int* i = alloca(sizeof(int)); + int* b = alloca(sizeof(int)); + int* j = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + int* M = alloca(sizeof(int)); + int* N = alloca(sizeof(int)); + *a = *i; + *b = *j; + *c = 0; + + while (*i < *M || *j < *N) { + *i = *i + 1; + *j = *j + 1; + *c = *c + 1; + } +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_NoriSharma-2013FSE-Fig8_true-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_NoriSharma-2013FSE-Fig8_true-alloca.c new file mode 100644 index 000000000..172cb85fb --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_NoriSharma-2013FSE-Fig8_true-alloca.c @@ -0,0 +1,25 @@ +#include + +int main() { + int* u = alloca(sizeof(int)); + int* x = alloca(sizeof(int)); + int* v = alloca(sizeof(int)); + int* y = alloca(sizeof(int)); + int* w = alloca(sizeof(int)); + int* z = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + *u = *x; + *v = *y; + *w = *z; + *c = 0; + + while (*x >= *y) { + *c = *c + 1; + if (*z > 1) { + *z = *z - 1; + *x = *x + *z; + } else { + *y = *y + 1; + } + } +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_PodelskiRybalchenko-2004VMCAI-Ex2_true-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_PodelskiRybalchenko-2004VMCAI-Ex2_true-alloca.c new file mode 100644 index 000000000..b05e248e5 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_PodelskiRybalchenko-2004VMCAI-Ex2_true-alloca.c @@ -0,0 +1,12 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int main() { + int* x = alloca(sizeof(int)); + *x = __VERIFIER_nondet_int(); + while (*x >= 0) { + *x = 2 * (*x) + 10; + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_TelAviv-Amir-Minimum_true-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_TelAviv-Amir-Minimum_true-alloca.c new file mode 100644 index 000000000..200313f6e --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_TelAviv-Amir-Minimum_true-alloca.c @@ -0,0 +1,25 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int main() { + int* x = alloca(sizeof(int)); + int* y = alloca(sizeof(int)); + while (*x > 0 && *y > 0) { + if (__VERIFIER_nondet_int()) { + if (*x < *y) { + *y = *x - 1; + } else { + *y = *y - 1; + } + *x = __VERIFIER_nondet_int(); + } else { + if (*x < *y) { + *x = *x - 1; + } else { + *x = *y - 1; + } + *y = __VERIFIER_nondet_int(); + } + } +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Toulouse-BranchesToLoop_true-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Toulouse-BranchesToLoop_true-alloca.c new file mode 100644 index 000000000..16a83f67b --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Toulouse-BranchesToLoop_true-alloca.c @@ -0,0 +1,21 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int main() { + int* x = alloca(sizeof(int)); + int* y = alloca(sizeof(int)); + int* z = alloca(sizeof(int)); + int* m = alloca(sizeof(int)); + int* n = alloca(sizeof(int)); + if (__VERIFIER_nondet_int()) { + *x = 1; + } else { + *x = -1; + } + while (*y < 100 && *z < 100) { + *y = *y + *x; + *z = *z - *x; + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Toulouse-MultiBranchesToLoop_true-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Toulouse-MultiBranchesToLoop_true-alloca.c new file mode 100644 index 000000000..9802dbed3 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Toulouse-MultiBranchesToLoop_true-alloca.c @@ -0,0 +1,61 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int main() { + int* x = alloca(sizeof(int)); + int* y = alloca(sizeof(int)); + int* z = alloca(sizeof(int)); + int* m = alloca(sizeof(int)); + int* n = alloca(sizeof(int)); + if (__VERIFIER_nondet_int()) { + *x = 1; + } else { + *x = -1; + } + if (*x > 0) { + (*x)++; + } else { + (*x)--; + } + if (*x > 0) { + (*x)++; + } else { + (*x)--; + } + if (*x > 0) { + (*x)++; + } else { + (*x)--; + } + if (*x > 0) { + (*x)++; + } else { + (*x)--; + } + if (*x > 0) { + (*x)++; + } else { + (*x)--; + } + if (*x > 0) { + (*x)++; + } else { + (*x)--; + } + if (*x > 0) { + (*x)++; + } else { + (*x)--; + } + if (*x > 0) { + (*x)++; + } else { + (*x)--; + } + while (*y < 100 && *z < 100) { + *y = *y + *x; + *z = *z - *x; + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Urban-2013WST-Fig1_false-unreach-label-termination-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Urban-2013WST-Fig1_false-unreach-label-termination-alloca.c new file mode 100644 index 000000000..2405d792e --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Urban-2013WST-Fig1_false-unreach-label-termination-alloca.c @@ -0,0 +1,10 @@ +#include + +int main() { + int* x = alloca(sizeof(int)); + while (*x <= 10) { + if (*x > 6) { + *x = *x + 2; + } + } +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Urban-2013WST-Fig2-modified1000_true-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Urban-2013WST-Fig2-modified1000_true-alloca.c new file mode 100644 index 000000000..876873567 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Urban-2013WST-Fig2-modified1000_true-alloca.c @@ -0,0 +1,13 @@ +#include + +int main() { + int* x1 = alloca(sizeof(int)); + int* x2 = alloca(sizeof(int)); + while (*x1 <= 10) { + *x2 = 1000; + while (*x2 > 1) { + *x2 = *x2 - 1; + } + *x1 = *x1 + 1; + } +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Urban-2013WST-Fig2_true-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Urban-2013WST-Fig2_true-alloca.c new file mode 100644 index 000000000..b2c69a230 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Urban-2013WST-Fig2_true-alloca.c @@ -0,0 +1,13 @@ +#include + +int main() { + int* x1 = alloca(sizeof(int)); + int* x2 = alloca(sizeof(int)); + while (*x1 <= 10) { + *x2 = 10; + while (*x2 > 1) { + *x2 = *x2 - 1; + } + *x1 = *x1 + 1; + } +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Urban_true-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Urban_true-alloca.c new file mode 100644 index 000000000..dfec2149f --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Urban_true-alloca.c @@ -0,0 +1,25 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int main() { + int* x = alloca(sizeof(int)); + int* y = alloca(sizeof(int)); + while (*x != 0 && *y > 0) { + if (*x > 0) { + if (__VERIFIER_nondet_int()) { + *x = *x - 1; + *y = __VERIFIER_nondet_int(); + } else { + *y = *y - 1; + } + } else { + if (__VERIFIER_nondet_int()) { + *x = *x + 1; + } else { + *y = *y - 1; + *x = __VERIFIER_nondet_int(); + } + } + } +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Velroyen_false-unreach-label-termination-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Velroyen_false-unreach-label-termination-alloca.c new file mode 100644 index 000000000..9c555edc6 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_Velroyen_false-unreach-label-termination-alloca.c @@ -0,0 +1,20 @@ +#include + +int main() { + int* x = alloca(sizeof(int)); + while (*x != 0) { + if (-5 <= *x && *x <= 35) { + if (*x < 0) { + *x = -5; + } else { + if (*x > 30) { + *x = 35; + } else { + *x = *x - 1; + } + } + } else { + *x = 0; + } + } +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_a.01-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_a.01-alloca.c new file mode 100644 index 000000000..22feff600 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_a.01-alloca.c @@ -0,0 +1,26 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + *c = 0; + while (*x_ref > 0) { + *y_ref = 0; + while (*y_ref < *x_ref) { + *y_ref = *y_ref + 1; + *c = *c + 1; + } + *x_ref = *x_ref - 1; + } + return *c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_a.04-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_a.04-alloca.c new file mode 100644 index 000000000..f36e461fe --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_a.04-alloca.c @@ -0,0 +1,22 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + *c = 0; + while (*x_ref > *y_ref) { + *y_ref = *y_ref + 1; + *c = *c + 1; + } + return *c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_a.05-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_a.05-alloca.c new file mode 100644 index 000000000..b4fd5f0df --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_a.05-alloca.c @@ -0,0 +1,22 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + *c = 0; + while (*x_ref >= *y_ref + 1) { + *y_ref = *y_ref + 1; + *c = *c + 1; + } + return *c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_a.06-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_a.06-alloca.c new file mode 100644 index 000000000..7f129ff5d --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_a.06-alloca.c @@ -0,0 +1,25 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y, int z) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + int* z_ref = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + *z_ref = z; + *c = 0; + while (*x_ref > *y_ref + *z_ref) { + *y_ref = *y_ref + 1; + *z_ref = *z_ref + 1; + *c = *c + 1; + } + return *c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_a.07-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_a.07-alloca.c new file mode 100644 index 000000000..df3357418 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_a.07-alloca.c @@ -0,0 +1,25 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y, int z) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + int* z_ref = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + *z_ref = z; + *c = 0; + while ((*x_ref > *y_ref) && (*x_ref > *z_ref)) { + *y_ref = *y_ref + 1; + *z_ref = *z_ref + 1; + *c = *c + 1; + } + return *c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_a.08-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_a.08-alloca.c new file mode 100644 index 000000000..c9bbda509 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_a.08-alloca.c @@ -0,0 +1,23 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + *c = 0; + while (*x_ref > *y_ref) { + *x_ref = *x_ref + 1; + *y_ref = *y_ref + 2; + *c = *c + 1; + } + return *c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_a.09_assume-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_a.09_assume-alloca.c new file mode 100644 index 000000000..fc810fcf8 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_a.09_assume-alloca.c @@ -0,0 +1,29 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y, int z) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + int* z_ref = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + *z_ref = z; + if(*y_ref <= 0) { + // replace assume + return *z_ref; + } + while (*x_ref >= *z_ref) { + if(*y_ref <= 0) { + // replace assume + return *z_ref; + } + *z_ref = *z_ref + *y_ref; + } + return *z_ref; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_a.10-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_a.10-alloca.c new file mode 100644 index 000000000..5ac3974f2 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_a.10-alloca.c @@ -0,0 +1,26 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + *c = 0; + while (!(*x_ref == *y_ref)) { + if(*x_ref > *y_ref) { + *y_ref = *y_ref + 1; + } else { + *x_ref = *x_ref + 1; + } + *c = *c + 1; + } + return *c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_add_last_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_add_last_alloca.c new file mode 100644 index 000000000..a1a93f54b --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_add_last_alloca.c @@ -0,0 +1,16 @@ +#include +extern int __VERIFIER_nondet_int(void); + +int main() { + int i, j; + int length = __VERIFIER_nondet_int(); + if (length < 1) length = 1; + int *arr = alloca(length*sizeof(int)); + if (!arr) return 0; + int *a = arr; + while (*a != *(arr + length - 1)) { + *a += *(arr + length - 1); + a++; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_array01_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_array01_alloca.c new file mode 100644 index 000000000..a9a836744 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_array01_alloca.c @@ -0,0 +1,25 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int a[], int N) +{ + int i; + int res = 0; + for (i = 0; i < N; i++) { + while (a[i] > 0) { + a[i]--; + res++; + } + } + return res; +} + +int main() { + int array_size = __VERIFIER_nondet_int(); + if (array_size < 1) { + array_size = 1; + } + int* numbers = (int*) alloca(array_size * sizeof(int)); + test_fun(numbers, array_size); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_array02_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_array02_alloca.c new file mode 100644 index 000000000..de0b0dde7 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_array02_alloca.c @@ -0,0 +1,29 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +void test_fun(int a[], int N) +{ + int i; + int pos = 0; + int neg = 0; + for (i = 0; i < N; i++) { + while (a[i] < 0) { + a[i]++; + neg++; + } + while (a[i] > 0) { + a[i]--; + pos++; + } + } +} + +int main() { + int array_size = __VERIFIER_nondet_int(); + if (array_size < 1) { + array_size = 1; + } + int* numbers = (int*) alloca(array_size * sizeof(int)); + test_fun(numbers, array_size); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_array03_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_array03_alloca.c new file mode 100644 index 000000000..2ca5ebcbe --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_array03_alloca.c @@ -0,0 +1,31 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +void test_fun(int a[], int N) +{ + int i; + int res; + for (i = 0; i < N; i++) { + res = 1; + if (a[i] == 0) { + res = 1; + } else if (a[i] < 0) { + res = 0; + } + while (a[i] > 0) { + res = res * a[i]; + a[i]--; + } + a[i] = res; + } +} + +int main() { + int array_size = __VERIFIER_nondet_int(); + if (array_size < 1) { + array_size = 1; + } + int* numbers = (int*) alloca(array_size * sizeof(int)); + test_fun(numbers, array_size); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_aviad_true-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_aviad_true-alloca.c new file mode 100644 index 000000000..6a8826415 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_aviad_true-alloca.c @@ -0,0 +1,25 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int f(int a) { + int* a_ref = alloca(sizeof(int)); + int* tmp = alloca(sizeof(int)); + int* count = alloca(sizeof(int)); + *a_ref = a; + *tmp = 0; + *count = 0; + while (*a_ref > 1) { + *tmp = *a_ref % 2; + if (*tmp == 0) *a_ref = *a_ref / 2; + else *a_ref = *a_ref - 1; + (*count)++; + } + return *count; +} + +int main() { + int x = __VERIFIER_nondet_int(); + int count = f(x); + return count; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.01-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.01-alloca.c new file mode 100644 index 000000000..564b23dbb --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.01-alloca.c @@ -0,0 +1,22 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + *c = 0; + while (*x_ref > *y_ref) { + *x_ref = *x_ref - 1; + *c = *c + 1; + } + return *c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.02-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.02-alloca.c new file mode 100644 index 000000000..4b342fe24 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.02-alloca.c @@ -0,0 +1,23 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + *c = 0; + while (*x_ref > *y_ref) { + *x_ref = *x_ref - 1; + *y_ref = *y_ref + 1; + *c = *c + 1; + } + return *c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.03-no-inv_assume-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.03-no-inv_assume-alloca.c new file mode 100644 index 000000000..0c77fc480 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.03-no-inv_assume-alloca.c @@ -0,0 +1,23 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + if (*x_ref <= 0) { + // replace assume + return *y_ref; + } + while (*x_ref > *y_ref) { + *y_ref = *y_ref + *x_ref; + } + return *y_ref; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.03_assume-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.03_assume-alloca.c new file mode 100644 index 000000000..bdc697010 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.03_assume-alloca.c @@ -0,0 +1,27 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + if (*x_ref <= 0) { + // replace assume + return *y_ref; + } + while (*x_ref > *y_ref) { + if (*x_ref <= 0) { + // replace assume + return *y_ref; + } + *y_ref = *y_ref + *x_ref; + } + return *y_ref; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.04-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.04-alloca.c new file mode 100644 index 000000000..e4b96ca75 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.04-alloca.c @@ -0,0 +1,23 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y, int tmp) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + int* tmp_ref = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + *tmp_ref = tmp; + while (*x_ref > *y_ref) { + *tmp_ref = *x_ref; + *x_ref = *y_ref; + *y_ref = *tmp_ref; + } + return *tmp_ref; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.05-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.05-alloca.c new file mode 100644 index 000000000..98ad960fd --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.05-alloca.c @@ -0,0 +1,21 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int tmp) +{ + int* x_ref = alloca(sizeof(int)); + int* tmp_ref = alloca(sizeof(int)); + *x_ref = x; + *tmp_ref = tmp; + *tmp_ref = __VERIFIER_nondet_int(); + while ((*x_ref > 0) && (x == 2*(*tmp_ref))) { + *x_ref = *x_ref - 1; + *tmp_ref = __VERIFIER_nondet_int(); + } + return *x_ref; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.06-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.06-alloca.c new file mode 100644 index 000000000..85ae4354c --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.06-alloca.c @@ -0,0 +1,23 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + *c = 0; + while ((*x_ref > 0) && (*y_ref > 0)) { + *x_ref = *x_ref - 1; + *y_ref = *y_ref - 1; + *c = *c + 1; + } + return *c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.07-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.07-alloca.c new file mode 100644 index 000000000..3416c3f20 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.07-alloca.c @@ -0,0 +1,25 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y, int z) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + int* z_ref = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + *z_ref = z; + *c = 0; + while ((*x_ref > *z_ref) && (*y_ref > *z_ref)) { + *x_ref = *x_ref - 1; + *y_ref = *y_ref - 1; + *c = *c + 1; + } + return *c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.09-no-inv_assume-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.09-no-inv_assume-alloca.c new file mode 100644 index 000000000..6b36a7e0c --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.09-no-inv_assume-alloca.c @@ -0,0 +1,30 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + *c = 0; + if (*x_ref <= 0 || *y_ref <= 0) { + // replace assume + return *x_ref + *y_ref; + } + while (!(*x_ref == 0)) { + if (*x_ref > *y_ref) { + *x_ref = *y_ref; + } else { + *x_ref = *x_ref - 1; + } + *c = *c + 1; + } + return *c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.09_assume-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.09_assume-alloca.c new file mode 100644 index 000000000..898c624af --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.09_assume-alloca.c @@ -0,0 +1,34 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + *c = 0; + if (*x_ref <= 0 || *y_ref <= 0) { + // replace assume + return *x_ref + *y_ref; + } + while (!(*x_ref == 0)) { + if (*x_ref > *y_ref) { + *x_ref = *y_ref; + } else { + if (*x_ref <= 0) { + // replace assume + return *x_ref; + } + *x_ref = *x_ref - 1; + } + *c = *c + 1; + } + return *c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.10-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.10-alloca.c new file mode 100644 index 000000000..cec985fbc --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.10-alloca.c @@ -0,0 +1,30 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + *c = 0; + while (*x_ref + *y_ref > 0) { + if (*x_ref > 0) { + *x_ref = *x_ref - 1; + } else { + if (*y_ref > 0) { + *y_ref = *y_ref - 1; + } else { + + } + } + *c = *c + 1; + } + return *c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.11-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.11-alloca.c new file mode 100644 index 000000000..efd07ce43 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.11-alloca.c @@ -0,0 +1,30 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + *c = 0; + while (*x_ref + *y_ref > 0) { + if (*x_ref > *y_ref) { + *x_ref = *x_ref - 1; + } else { + if (*x_ref == *y_ref) { + *x_ref = *x_ref - 1; + } else { + *y_ref = *y_ref - 1; + } + } + *c = *c + 1; + } + return *c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.12-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.12-alloca.c new file mode 100644 index 000000000..d9e68e144 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.12-alloca.c @@ -0,0 +1,30 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + *c = 0; + while ((*x_ref > 0) || (*y_ref > 0)) { + if (*x_ref > 0) { + *x_ref = *x_ref - 1; + } else { + if (*y_ref > 0) { + *y_ref = *y_ref - 1; + } else { + + } + } + *c = *c + 1; + } + return *c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.13-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.13-alloca.c new file mode 100644 index 000000000..fc0262980 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.13-alloca.c @@ -0,0 +1,32 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y, int z) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + int* z_ref = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + *z_ref = z; + *c = 0; + while ((*x_ref > *z_ref) || (*y_ref > *z_ref)) { + if (*x_ref > *z_ref) { + *x_ref = *x_ref - 1; + } else { + if (*y_ref > *z_ref) { + *y_ref = *y_ref - 1; + } else { + + } + } + *c = *c + 1; + } + return *c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.14-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.14-alloca.c new file mode 100644 index 000000000..061cea366 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.14-alloca.c @@ -0,0 +1,25 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + *c = 0; + while ((*x_ref == *y_ref) && (*x_ref > 0)) { + while (*y_ref > 0) { + *x_ref = *x_ref - 1; + *y_ref = *y_ref - 1; + *c = *c + 1; + } + } + return *c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.15-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.15-alloca.c new file mode 100644 index 000000000..9b47de197 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.15-alloca.c @@ -0,0 +1,27 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y, int z) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + int* z_ref = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + *z_ref = z; + *c = 0; + while ((*x_ref == *y_ref) && (*x_ref > *z_ref)) { + while (*y_ref > *z_ref) { + *x_ref = *x_ref - 1; + *y_ref = *y_ref - 1; + *c = *c + 1; + } + } + return *c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.16-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.16-alloca.c new file mode 100644 index 000000000..b499a54a3 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.16-alloca.c @@ -0,0 +1,26 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + *c = 0; + while (*x_ref > 0) { + while (*y_ref > 0) { + *y_ref = *y_ref - 1; + *c = *c + 1; + } + *x_ref = *x_ref - 1; + *c = *c + 1; + } + return *c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.17-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.17-alloca.c new file mode 100644 index 000000000..b14b12ee6 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.17-alloca.c @@ -0,0 +1,28 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y, int z) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + int* z_ref = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + *z_ref = z; + *c = 0; + while (*x_ref > *z_ref) { + while (*y_ref > *z_ref) { + *y_ref = *y_ref - 1; + *c = *c + 1; + } + *c = *c + 1; + *x_ref = *x_ref - 1; + } + return *c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.18-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.18-alloca.c new file mode 100644 index 000000000..e19e00135 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_b.18-alloca.c @@ -0,0 +1,27 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + while ((*x_ref > 0) && (*y_ref > 0)) { + if (*x_ref > *y_ref) { + while (*x_ref > 0) { + *x_ref = *x_ref - 1; + } + } else { + while (*y_ref > 0) { + *y_ref = *y_ref - 1; + } + } + } + return *x_ref + *y_ref; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_bubblesort_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_bubblesort_alloca.c new file mode 100644 index 000000000..523fba89a --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_bubblesort_alloca.c @@ -0,0 +1,28 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +void bubbleSort(int numbers[], int array_size) +{ + int i, j, temp; + + for (i = (array_size - 1); i >= 0; i--) { + for (j = 1; j <= i; j++) { + if (numbers[j-1] > numbers[j]) { + temp = numbers[j-1]; + numbers[j-1] = numbers[j]; + numbers[j] = temp; + } + } + } +} + +int main() { + int array_size = __VERIFIER_nondet_int(); + if (array_size < 1) { + array_size = 1; + } + int* numbers = (int*) alloca(array_size * sizeof(int)); + bubbleSort(numbers, array_size); + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_c.01-no-inv-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_c.01-no-inv-alloca.c new file mode 100644 index 000000000..04cafafd1 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_c.01-no-inv-alloca.c @@ -0,0 +1,26 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + *c = 0; + while (*x_ref >= 0) { + *y_ref = 1; + while (*x_ref > *y_ref) { + *y_ref = 2*(*y_ref); + *c = *c + 1; + } + *x_ref = *x_ref - 1; + } + return *c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_c.01_assume-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_c.01_assume-alloca.c new file mode 100644 index 000000000..8d0b844ba --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_c.01_assume-alloca.c @@ -0,0 +1,27 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + while (*x_ref >= 0) { + *y_ref = 1; + while (*x_ref > *y_ref) { + if (*y_ref <= 0) { + // replace assume + return *x_ref; + } + *y_ref = 2*(*y_ref); + } + *x_ref = *x_ref - 1; + } + return *y_ref; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_c.02-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_c.02-alloca.c new file mode 100644 index 000000000..683875f34 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_c.02-alloca.c @@ -0,0 +1,27 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + *c = 0; + while (*x_ref >= 0) { + *x_ref = *x_ref + 1; + *y_ref = 1; + while (*x_ref > *y_ref) { + *y_ref = *y_ref + 1; + *c = *c + 1; + } + *x_ref = *x_ref - 2; + } + return *c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_c.03-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_c.03-alloca.c new file mode 100644 index 000000000..528d7b38c --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_c.03-alloca.c @@ -0,0 +1,28 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y, int z) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + int* z_ref = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + *z_ref = z; + *c = 0; + while (*x_ref < *y_ref) { + if (*x_ref < *z_ref) { + *x_ref = *x_ref + 1; + } else { + *z_ref = *z_ref + 1; + } + *c = *c + 1; + } + return *c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_c.07-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_c.07-alloca.c new file mode 100644 index 000000000..5a1c33d0a --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_c.07-alloca.c @@ -0,0 +1,29 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int i, int j, int k, int tmp) +{ + int* i_ref = alloca(sizeof(int)); + int* j_ref = alloca(sizeof(int)); + int* k_ref = alloca(sizeof(int)); + int* tmp_ref = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + *i_ref = i; + *j_ref = j; + *k_ref = k; + *tmp_ref = tmp; + *c = 0; + while ((*i_ref <= 100) && (*j_ref <= k)) { + *tmp_ref = *i_ref; + *i_ref = *j_ref; + *j_ref = *tmp_ref + 1; + *k_ref = *k_ref - 1; + *c = *c + 1; + } + return *c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int(),__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_c.08-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_c.08-alloca.c new file mode 100644 index 000000000..c79886368 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_c.08-alloca.c @@ -0,0 +1,26 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int i, int j) +{ + int* i_ref = alloca(sizeof(int)); + int* j_ref = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + *i_ref = i; + *j_ref = j; + *c = 0; + while (*i_ref >= 0) { + *j_ref = 0; + while (*j_ref <= *i_ref - 1) { + *j_ref = *j_ref + 1; + *c = *c + 1; + } + *i_ref = *i_ref - 1; + } + return *c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_count_down_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_count_down_alloca.c new file mode 100644 index 000000000..2fceba363 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_count_down_alloca.c @@ -0,0 +1,24 @@ +#include +extern int __VERIFIER_nondet_int(void); + +int main() { + int i, j; + int val; + int length = __VERIFIER_nondet_int(); + if (length < 1) length = 1; + int *arr = alloca(length*sizeof(int)); + if (!arr) return 0; + for (i=0; i 0) { + arr[j]--; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrcat_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrcat_alloca.c new file mode 100644 index 000000000..35afa3a1c --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrcat_alloca.c @@ -0,0 +1,38 @@ +#include + +extern int __VERIFIER_nondet_int(void); + + char *(cstrcat)(char *s1, const char *s2) + { + char *s = s1; + /* Move s so that it points to the end of s1. */ + while (*s != '\0') + s++; + /* Do the copying in a loop. */ + while ((*s++ = *s2++) != '\0') + ; /* The body of this loop is left empty. */ + /* Return the destination string. */ + return s1; + } + +int main() { + int length1 = __VERIFIER_nondet_int(); + int length2 = __VERIFIER_nondet_int(); + int length3 = __VERIFIER_nondet_int(); + if (length1 < 1) { + length1 = 1; + } + if (length2 < 2) { + length2 = 2; + } + if (length3 < 1) { + length3 = 1; + } + if (length2 - length3 < length1 || length3 > length2) return 0; + char* nondetString1 = (char*) alloca(length1 * sizeof(char)); + char* nondetString2 = (char*) alloca(length2 * sizeof(char)); + nondetString1[length1-1] = '\0'; + nondetString2[length3-1] = '\0'; + cstrcat(nondetString2,nondetString1); + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrchr_true_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrchr_true_alloca.c new file mode 100644 index 000000000..7adeff59c --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrchr_true_alloca.c @@ -0,0 +1,30 @@ +/* + * Date: 17.12.2013 + * Author: Thomas Ströder + */ +#include + +extern int __VERIFIER_nondet_int(void); + +char *(cstrchr)(const char *s, int c) + { + /* Scan s for the character. When this loop is finished, + s will either point to the end of the string or the + character we were looking for. */ + while (*s != '\0' && *s != (char)c) + s++; + return ( (*s == c) ? (char *) s : 0 ); + } + +int main() { + int length = __VERIFIER_nondet_int(); + if (length < 1) { + length = 1; + } + char* nondetString = (char*) alloca(length * sizeof(char)); + nondetString[length-1] = '\0'; + cstrchr(nondetString,__VERIFIER_nondet_int()); + return 0; +} + + diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrcmp_true_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrcmp_true_alloca.c new file mode 100644 index 000000000..33a45d718 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrcmp_true_alloca.c @@ -0,0 +1,42 @@ +/* + * Date: 17.12.2013 + * Author: Thomas Ströder + */ +#include + +extern int __VERIFIER_nondet_int(void); + +int (cstrcmp)(const char *s1, const char *s2) + { + unsigned char uc1, uc2; + /* Move s1 and s2 to the first differing characters + in each string, or the ends of the strings if they + are identical. */ + while (*s1 != '\0' && *s1 == *s2) { + s1++; + s2++; + } + /* Compare the characters as unsigned char and + return the difference. */ + uc1 = (*(unsigned char *) s1); + uc2 = (*(unsigned char *) s2); + return ((uc1 < uc2) ? -1 : (uc1 > uc2)); + } + +int main() { + int length1 = __VERIFIER_nondet_int(); + int length2 = __VERIFIER_nondet_int(); + if (length1 < 1) { + length1 = 1; + } + if (length2 < 1) { + length2 = 1; + } + char* nondetString1 = (char*) alloca(length1 * sizeof(char)); + char* nondetString2 = (char*) alloca(length2 * sizeof(char)); + nondetString1[length1-1] = '\0'; + nondetString2[length2-1] = '\0'; + return cstrcmp(nondetString1,nondetString2); +} + + diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrcpy_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrcpy_alloca.c new file mode 100644 index 000000000..800392b6a --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrcpy_alloca.c @@ -0,0 +1,32 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +char *(cstrcpy)(char *s1, const char *s2) + { + char *dst = s1; + const char *src = s2; + /* Do the copying in a loop. */ + while ((*dst++ = *src++) != '\0') + ; /* The body of this loop is left empty. */ + /* Return the destination string. */ + return s1; + } + +int main() { + int length1 = __VERIFIER_nondet_int(); + int length2 = __VERIFIER_nondet_int(); + if (length1 < 1) { + length1 = 1; + } + if (length2 < 1) { + length2 = 1; + } + if (length1 < length2) return 0; + char* nondetArea = (char*) alloca(length1 * sizeof(char)); + char* nondetString = (char*) alloca(length2 * sizeof(char)); + nondetString[length2-1] = '\0'; + cstrcpy(nondetArea,nondetString); + return 0; +} + diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrcspn_true_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrcspn_true_alloca.c new file mode 100644 index 000000000..0d26e7e9f --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrcspn_true_alloca.c @@ -0,0 +1,41 @@ +/* + * Date: 17.12.2013 + * Author: Thomas Ströder + */ +#include + +extern int __VERIFIER_nondet_int(void); + +int (cstrcspn)(const char *s1, const char *s2) + { + const char *sc1; + const char *s; + int c; + for (sc1 = s1; *sc1 != '\0'; sc1++) { + s = s2; + c = *sc1; + while (*s != '\0' && *s != (char)c) + s++; + if (*s == c) + return (sc1 - s1); + } + return sc1 - s1; /* terminating nulls match */ + } + +int main() { + int length1 = __VERIFIER_nondet_int(); + int length2 = __VERIFIER_nondet_int(); + if (length1 < 1) { + length1 = 1; + } + if (length2 < 1) { + length2 = 1; + } + char* nondetString1 = (char*) alloca(length1 * sizeof(char)); + char* nondetString2 = (char*) alloca(length2 * sizeof(char)); + nondetString1[length1-1] = '\0'; + nondetString2[length2-1] = '\0'; + return cstrcspn(nondetString1,nondetString2); +} + + diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrlen_true_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrlen_true_alloca.c new file mode 100644 index 000000000..53944632f --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrlen_true_alloca.c @@ -0,0 +1,28 @@ +/* + * Date: 17.12.2013 + * Author: Thomas Ströder + */ +#include + +extern int __VERIFIER_nondet_int(void); + +int (cstrlen)(const char *s) + { + const char *p = s; + /* Loop over the data in s. */ + while (*p != '\0') + p++; + return (int)(p - s); + } + +int main() { + int length1 = __VERIFIER_nondet_int(); + if (length1 < 1) { + length1 = 1; + } + char* nondetString1 = (char*) alloca(length1 * sizeof(char)); + nondetString1[length1-1] = '\0'; + return cstrlen(nondetString1); +} + + diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrncat_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrncat_alloca.c new file mode 100644 index 000000000..4d7b68144 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrncat_alloca.c @@ -0,0 +1,45 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +char *(cstrncat)(char *s1, const char *s2, int n) + { + char *s = s1; + /* Loop over the data in s1. */ + while (*s != '\0') + s++; + /* s now points to s1's trailing null character, now copy + up to n bytes from s1 into s stopping if a null character + is encountered in s2. + It is not safe to use strncpy here since it copies EXACTLY n + characters, NULL padding if necessary. */ + while (n != 0 && (*s = *s2++) != '\0') { + n--; + s++; + } + if (*s != '\0') + *s = '\0'; + return s1; + } + +int main() { + int length1 = __VERIFIER_nondet_int(); + int length2 = __VERIFIER_nondet_int(); + int n = __VERIFIER_nondet_int(); + if (length1 < 1) { + length1 = 1; + } + if (length2 < 1) { + length2 = 1; + } + if (n < 1) { + n = 1; + } + if (length1 < n || length1 - n < length2) return 0; + char* nondetString1 = (char*) alloca(length1 * sizeof(char)); + char* nondetString2 = (char*) alloca(length2 * sizeof(char)); + nondetString1[length1-n-1] = '\0'; + nondetString2[length2-1] = '\0'; + cstrncat(nondetString1, nondetString2, n); + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrncmp_true_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrncmp_true_alloca.c new file mode 100644 index 000000000..d564abbd8 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrncmp_true_alloca.c @@ -0,0 +1,45 @@ +/* + * Date: 17.12.2013 + * Author: Thomas Ströder + */ +#include + +extern int __VERIFIER_nondet_int(void); + +int (cstrncmp)(const char *s1, const char *s2, int n) + { + unsigned char uc1, uc2; + /* Nothing to compare? Return zero. */ + if (n == 0) + return 0; + /* Loop, comparing bytes. */ + while (n-- > 0 && *s1 == *s2) { + /* If we've run out of bytes or hit a null, return zero + since we already know *s1 == *s2. */ + if (n == 0 || *s1 == '\0') + return 0; + s1++; + s2++; + } + uc1 = (*(unsigned char *) s1); + uc2 = (*(unsigned char *) s2); + return ((uc1 < uc2) ? -1 : (uc1 > uc2)); + } + +int main() { + int length1 = __VERIFIER_nondet_int(); + int length2 = __VERIFIER_nondet_int(); + if (length1 < 1) { + length1 = 1; + } + if (length2 < 1) { + length2 = 1; + } + char* nondetString1 = (char*) alloca(length1 * sizeof(char)); + char* nondetString2 = (char*) alloca(length2 * sizeof(char)); + nondetString1[length1-1] = '\0'; + nondetString2[length2-1] = '\0'; + return cstrncmp(nondetString1,nondetString2,__VERIFIER_nondet_int()); +} + + diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrncpy_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrncpy_alloca.c new file mode 100644 index 000000000..7b269058e --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrncpy_alloca.c @@ -0,0 +1,42 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +char *(cstrncpy)(char *s1, const char *s2, int n) + { + char *dst = s1; + const char *src = s2; + char *us; + int n2; + /* Copy bytes, one at a time. */ + while (n > 0) { + n--; + if ((*dst++ = *src++) == '\0') { + /* If we get here, we found a null character at the end + of s2, so use memset to put null bytes at the end of + s1. */ + us = dst; + n2 = n; + while (n2-- != 0) + *us++ = '\0'; + break; + } + } + return s1; + } + +int main() { + int length = __VERIFIER_nondet_int(); + int n = __VERIFIER_nondet_int(); + if (length < 1) { + length = 1; + } + if (n < 1) { + n = 1; + } + char* nondetArea = (char*) alloca(n * sizeof(char)); + char* nondetString = (char*) alloca(length * sizeof(char)); + nondetString[length-1] = '\0'; + cstrncpy(nondetArea, nondetString, n); + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrpbrk_true_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrpbrk_true_alloca.c new file mode 100644 index 000000000..989e4a778 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrpbrk_true_alloca.c @@ -0,0 +1,43 @@ +/* + * Date: 17.12.2013 + * Author: Thomas Ströder + */ +#include + +extern int __VERIFIER_nondet_int(void); + + +char *(cstrpbrk)(const char *s1, const char *s2) + { + const char *sc1; + const char *s; + int c; + for (sc1 = s1; *sc1 != '\0'; sc1++) { + s = s2; + c = *sc1; + while (*s != '\0' && *s != (char)c) + s++; + if (*s != c) + return (char *)sc1; + } + return 0; /* terminating nulls match */ + } + +int main() { + int length1 = __VERIFIER_nondet_int(); + int length2 = __VERIFIER_nondet_int(); + if (length1 < 1) { + length1 = 1; + } + if (length2 < 1) { + length2 = 1; + } + char* nondetString1 = (char*) alloca(length1 * sizeof(char)); + char* nondetString2 = (char*) alloca(length2 * sizeof(char)); + nondetString1[length1-1] = '\0'; + nondetString2[length2-1] = '\0'; + cstrpbrk(nondetString1,nondetString2); + return 0; +} + + diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrspn_true_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrspn_true_alloca.c new file mode 100644 index 000000000..ba9ff39a2 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_cstrspn_true_alloca.c @@ -0,0 +1,41 @@ +/* + * Date: 17.12.2013 + * Author: Thomas Ströder + */ +#include + +extern int __VERIFIER_nondet_int(void); + +int (cstrspn)(const char *s1, const char *s2) + { + const char *sc1; + const char *s; + int c; + for (sc1 = s1; *sc1 != '\0'; sc1++) { + s = s2; + c = *sc1; + while (*s != '\0' && *s != (char)c) + s++; + if (*s != c) + return (sc1 - s1); + } + return sc1 - s1; /* terminating nulls don't match */ + } + +int main() { + int length1 = __VERIFIER_nondet_int(); + int length2 = __VERIFIER_nondet_int(); + if (length1 < 1) { + length1 = 1; + } + if (length2 < 1) { + length2 = 1; + } + char* nondetString1 = (char*) alloca(length1 * sizeof(char)); + char* nondetString2 = (char*) alloca(length2 * sizeof(char)); + nondetString1[length1-1] = '\0'; + nondetString2[length2-1] = '\0'; + return cstrspn(nondetString1,nondetString2); +} + + diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_diff_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_diff_alloca.c new file mode 100644 index 000000000..46587aa8f --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_diff_alloca.c @@ -0,0 +1,45 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +void diff(int *A, int Alen, int *B, int Blen, int *D) +{ + int k = 0; + int i = 0; + int l1 = Alen; + int l2 = Blen; + int found; + + while (i < l1) { + int j = 0; + found = 0; + while (j < l2 && !found) { + if(A[i] == B[j]) { + found = 1; + } else { + j++; + } + } + if (!found) { + D[k] = A[i]; + k++; + } + i++; + } +} + +int main() { + int Alen = __VERIFIER_nondet_int(); + int Blen = __VERIFIER_nondet_int(); + if (Alen < 1) { + Alen = 1; + } + if (Blen < 1) { + Blen = 1; + } + int* A = (int*) alloca(Alen * sizeof(int)); + int* B = (int*) alloca(Blen * sizeof(int)); + int* D = (int*) alloca(Alen * sizeof(int)); + diff(A, Alen, B, Blen, D); + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_easySum-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_easySum-alloca.c new file mode 100644 index 000000000..4af1ae9f6 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_easySum-alloca.c @@ -0,0 +1,20 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int iterate(int bound) +{ + int* bound_ref = alloca(sizeof(int)); + int* i = alloca(sizeof(int)); + int* sum = alloca(sizeof(int)); + *bound_ref = bound; + *sum = 0; + for (*i = 0; *i < *bound_ref; (*i)++) { + *sum += *i; + } + return *sum; +} + +int main() { + return iterate(__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_ex1-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_ex1-alloca.c new file mode 100644 index 000000000..8066c49c5 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_ex1-alloca.c @@ -0,0 +1,23 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y, int r) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + int* r_ref = alloca(sizeof(int)); + r = 1; + *x_ref = x; + *y_ref = y; + *r_ref = r; + while (*y_ref > 0) { + *r_ref = (*r_ref) * (*x_ref); + *y_ref = *y_ref - 1; + } + return *r_ref; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_ex2-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_ex2-alloca.c new file mode 100644 index 000000000..7663787a9 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_ex2-alloca.c @@ -0,0 +1,35 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y, int z, int flag) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + int* z_ref = alloca(sizeof(int)); + int* flag_ref = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + flag = 1; + *x_ref = x; + *y_ref = y; + *z_ref = z; + *flag_ref = flag; + *c = 0; + while ((*y_ref < *z_ref) && (*flag_ref > 0)) { + if ((*y_ref > 0) && (*x_ref > 1)) { + *y_ref = (*x_ref) * (*y_ref); + } else { + if ((*y_ref > 0) && (*x_ref < -1)) { + *y_ref = -(*x_ref) * (*y_ref); + } else { + *flag_ref = 0; + } + } + *c = *c + 1; + } + return *c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int(),__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_ex3a-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_ex3a-alloca.c new file mode 100644 index 000000000..2d15d4290 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_ex3a-alloca.c @@ -0,0 +1,20 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x) +{ + int* x_ref = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + *x_ref = x; + *c = 0; + while ((*x_ref > 1) && (*x_ref < 100)) { + *x_ref = (*x_ref) * (*x_ref); + *c = *c + 1; + } + return *c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_ex3b-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_ex3b-alloca.c new file mode 100644 index 000000000..52c948122 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_ex3b-alloca.c @@ -0,0 +1,22 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + *c = 0; + while ((*x_ref > 1) && (*x_ref < *y_ref)) { + *x_ref = (*x_ref) * (*x_ref); + *c = *c + 1; + } + return *c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_fermat-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_fermat-alloca.c new file mode 100644 index 000000000..ed9d3e51e --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_fermat-alloca.c @@ -0,0 +1,31 @@ +#include + +int main() +{ + int* MAX = alloca(sizeof(int)); + int* a = alloca(sizeof(int)); + int* b = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + *MAX = 1000; + *a = 1; + *b = 1; + *c = 1; + while (1) { + if ((((*a)*(*a)*(*a)) == (((*b)*(*b)*(*b)) + ((*c)*(*c)*(*c))))) { + return 1; + } + (*a)++; + if (*a > *MAX) { + *a = 1; + (*b)++; + } + if (*b > *MAX) { + *b = 1; + (*c)++; + } + if (*c > *MAX) { + break; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_flag-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_flag-alloca.c new file mode 100644 index 000000000..2a0c04446 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_flag-alloca.c @@ -0,0 +1,24 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int f(int x, int y) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + int* flag = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + *flag = 1; + *c = 0; + while (*flag) { + *flag = ((*x_ref)++ < *y_ref); + *c = *c + 1; + } + return *c; +} + +int main() { + return f(__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_gcd1_true-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_gcd1_true-alloca.c new file mode 100644 index 000000000..baa8ed7a5 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_gcd1_true-alloca.c @@ -0,0 +1,30 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int gcd(int x, int y) { + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + int* r = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + if (*x_ref < 0) *x_ref = -(*x_ref); + if (*y_ref < 0) *y_ref = -(*y_ref); + while (*y_ref > 0) { + /* the next statements compute r = mod(x,y) */ + *r = *x_ref; + while (*r >= *y_ref) + *r = *r - *y_ref; + /* end of inlined mod */ + *x_ref = *y_ref; + *y_ref = *r; + } + return *x_ref; +} + +int main() { + int x,y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + gcd(x,y); +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_genady_true-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_genady_true-alloca.c new file mode 100644 index 000000000..7038d3da9 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_genady_true-alloca.c @@ -0,0 +1,10 @@ +#include + +int main() { + int* i = alloca(sizeof(int)); + int* j = alloca(sizeof(int)); + *j = 1; + for (*i = 10000; *i - *j >= 1; (*i)--) { + (*j)++; + } +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_insertionsort_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_insertionsort_alloca.c new file mode 100644 index 000000000..41680fd65 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_insertionsort_alloca.c @@ -0,0 +1,26 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +void insertionSort(int a[], int array_size) +{ + int i, j, index; + for (i = 1; i < array_size; ++i) + { + index = a[i]; + for (j = i; j > 0 && a[j-1] > index; j--) + a[j] = a[j-1]; + + a[j] = index; + } +} + +int main() { + int array_size = __VERIFIER_nondet_int(); + if (array_size < 1) { + array_size = 1; + } + int* a = (int*) alloca(array_size * sizeof(int)); + insertionSort(a, array_size); + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_java_AG313-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_java_AG313-alloca.c new file mode 100644 index 000000000..401a1d0e1 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_java_AG313-alloca.c @@ -0,0 +1,23 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int quot(int x, int y) +{ + int* x_ref = alloca(sizeof(int)); + int* y_ref = alloca(sizeof(int)); + int* i = alloca(sizeof(int)); + *x_ref = x; + *y_ref = y; + *i = 0; + if (*x_ref == 0) return 0; + while ((*x_ref > 0) && (*y_ref > 0)) { + *i += 1; + *x_ref = (*x_ref - 1) - (*y_ref - 1); + } + return *i; +} + +int main() { + return quot(__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_java_Break-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_java_Break-alloca.c new file mode 100644 index 000000000..9e9022099 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_java_Break-alloca.c @@ -0,0 +1,15 @@ +#include + +int main() +{ + int* i = alloca(sizeof(int)); + int* c= alloca(sizeof(int)); + *i = 0; + *c = 0; + while (1) { + if (*i > 10) break; + (*i)++; + (*c)++; + } + return *c; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_java_BubbleSort_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_java_BubbleSort_alloca.c new file mode 100644 index 000000000..5aa0b1b6e --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_java_BubbleSort_alloca.c @@ -0,0 +1,25 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +void sort(int *x, int n) { + int pass; + int i; + for (pass=1; pass < n; pass++) // count how many times + // This next loop becomes shorter and shorter + for (i=0; i < n - pass; i++) + if (x[i] > x[i+1]) { + // exchange elements + int temp = x[i]; x[i] = x[i+1]; x[i+1] = temp; + } +} + +int main() { + int array_size = __VERIFIER_nondet_int(); + if (array_size < 1) { + array_size = 1; + } + int* numbers = (int*) alloca(array_size * sizeof(int)); + sort(numbers, array_size); + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_java_Continue1-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_java_Continue1-alloca.c new file mode 100644 index 000000000..833fe2dcb --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_java_Continue1-alloca.c @@ -0,0 +1,15 @@ +#include + +int main() +{ + int* i = alloca(sizeof(int)); + int* c= alloca(sizeof(int)); + *i = 0; + *c = 0; + while (*i < 20) { + (*i)++; + if (*i <= 10) continue; + (*c)++; + } + return *c; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_java_LogBuiltIn-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_java_LogBuiltIn-alloca.c new file mode 100644 index 000000000..110f9079b --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_java_LogBuiltIn-alloca.c @@ -0,0 +1,20 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int mlog(int x) +{ + int* x_ref = alloca(sizeof(int)); + int* res = alloca(sizeof(int)); + *x_ref = x; + *res = 0; + while (*x_ref > 1) { + *x_ref = (*x_ref)/2; + (*res)++; + } + return *res; +} + +int main() { + return mlog(__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_java_Nested-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_java_Nested-alloca.c new file mode 100644 index 000000000..4c5df8d35 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_java_Nested-alloca.c @@ -0,0 +1,16 @@ +#include + +int main() +{ + int* i = alloca(sizeof(int)); + int* j = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + *c = 0; + for (*i = 0; *i < 10; (*i)++) { + for (*j = 3; *j < 12; *j += 2) { + *j -= 1; + *c += 1; + } + } + return *c; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_java_Sequence-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_java_Sequence-alloca.c new file mode 100644 index 000000000..621d5da68 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_java_Sequence-alloca.c @@ -0,0 +1,12 @@ +#include + +int main() +{ + int* i = alloca(sizeof(int)); + int* j = alloca(sizeof(int)); + int* c = alloca(sizeof(int)); + *c = 0; + for (*i = 0; *i < 100; (*i)++) *c = *c + 1; + for (*j = 5; *j < 21; *j += 3) *c = *c + 1; + return *c; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_lis_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_lis_alloca.c new file mode 100644 index 000000000..ec83e723f --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_lis_alloca.c @@ -0,0 +1,36 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +// Returns the length of the longest increasing subsequence. +// Note that this is looking for the longest strictly increasing subsequence. + +int lis(int* a, int N) +{ + int *best, *prev, i, j, max = 0; + best = (int*) alloca(sizeof(int) * N); + prev = (int*) alloca(sizeof(int) * N); + + for (i = 0; i < N; i++) + best[i] = 1, prev[i] = i; + + for (i = 1; i < N; i++) + for (j = 0; j < i; j++) + if (a[i] > a[j] && best[i] < best[j] + 1) + best[i] = best[j] + 1, prev[i] = j; // prev[] is for backtracking the subsequence + + for (i = 0; i < N; i++) + if (max < best[i]) + max = best[i]; + + return max; +} + +int main() { + int array_size = __VERIFIER_nondet_int(); + if (array_size < 1) { + array_size = 1; + } + int* numbers = (int*) alloca(array_size * sizeof(int)); + return lis(numbers, array_size); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_min_rf_true-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_min_rf_true-alloca.c new file mode 100644 index 000000000..8b9d9c4c3 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_min_rf_true-alloca.c @@ -0,0 +1,18 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int main() { + int* x = alloca(sizeof(int)); + int* y = alloca(sizeof(int)); + int* z = alloca(sizeof(int)); + *x = __VERIFIER_nondet_int(); + *y = __VERIFIER_nondet_int(); + + while (*y > 0 && *x > 0) { + if (*x > *y) *z = *y; + else *z = *x; + if (__VERIFIER_nondet_int()) {*y = *y + *x; *x = *z - 1; *z = *y + *z; } + else {*x = *y + *x; *y = *z - 1; *z = *x + *z; } + } +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_mult_array_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_mult_array_alloca.c new file mode 100644 index 000000000..f51e81b69 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_mult_array_alloca.c @@ -0,0 +1,20 @@ +#include +extern int __VERIFIER_nondet_int(void); + +int main() { + int i, j; + int length = __VERIFIER_nondet_int(); + if (length < 1) length = 1; + int fac = __VERIFIER_nondet_int(); + if (fac < 1) fac = 1; + int *arr = alloca(length*sizeof(int)); + int *arr2 = alloca(fac*length*sizeof(int)); + if (!arr || !arr2) return 0; + for (i=0; i + +extern int __VERIFIER_nondet_int(void); + +/* + * bzero -- vax movc5 instruction + */ +void +cbzero(void *b, size_t length) +{ + char *p; + + for (p = b; length--;) + *p++ = '\0'; +} + +int main() { + int length = __VERIFIER_nondet_int(); + int n = __VERIFIER_nondet_int(); + if (length < 1) { + length = 1; + } + if (n < 1) { + n = 1; + } + if (n > length) return 0; + char* nondetArea = (char*) alloca(length * sizeof(char)); + cbzero(nondetArea, n); + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cmemchr_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cmemchr_alloca.c new file mode 100644 index 000000000..0030153ba --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cmemchr_alloca.c @@ -0,0 +1,32 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +void * +cmemchr(const void *s, int c, size_t n) +{ + if (n != 0) { + const unsigned char *p = s; + + do { + if (*p++ == (unsigned char)c) + return ((void *)(p - 1)); + } while (--n != 0); + } + return (NULL); +} + +int main() { + int length = __VERIFIER_nondet_int(); + int n = __VERIFIER_nondet_int(); + int c = __VERIFIER_nondet_int(); + if (length < 1) { + length = 1; + } + if (n < 1) { + n = 1; + } + char* nondetArea = (char*) alloca(n * sizeof(char)); + cmemchr(nondetArea, c, n); + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cmemrchr_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cmemrchr_alloca.c new file mode 100644 index 000000000..2e3c72704 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cmemrchr_alloca.c @@ -0,0 +1,37 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +/* + * Reverse memchr() + * Find the last occurrence of 'c' in the buffer 's' of size 'n'. + */ +void * +cmemrchr(const void *s, int c, size_t n) +{ + const unsigned char *cp; + + if (n != 0) { + cp = (unsigned char *)s + n; + do { + if (*(--cp) == (unsigned char)c) + return((void *)cp); + } while (--n != 0); + } + return(NULL); +} + +int main() { + int length = __VERIFIER_nondet_int(); + int n = __VERIFIER_nondet_int(); + int c = __VERIFIER_nondet_int(); + if (length < 1) { + length = 1; + } + if (n < 1) { + n = 1; + } + char* nondetArea = (char*) alloca(n * sizeof(char)); + cmemrchr(nondetArea, c, n); + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cmemset_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cmemset_alloca.c new file mode 100644 index 000000000..c32a80d1f --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cmemset_alloca.c @@ -0,0 +1,31 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +void * +cmemset(void *dst, int c, size_t n) +{ + if (n != 0) { + unsigned char *d = dst; + + do + *d++ = (unsigned char)c; + while (--n != 0); + } + return (dst); +} + +int main() { + int length = __VERIFIER_nondet_int(); + int n = __VERIFIER_nondet_int(); + int c = __VERIFIER_nondet_int(); + if (length < 1) { + length = 1; + } + if (n < 1) { + n = 1; + } + char* nondetArea = (char*) alloca(n * sizeof(char)); + cmemset(nondetArea, c, n); + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstpcpy_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstpcpy_alloca.c new file mode 100644 index 000000000..7c76764c4 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstpcpy_alloca.c @@ -0,0 +1,27 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +char* cstpcpy(char *to, const char *from) +{ + for (; (*to = *from) != '\0'; ++from, ++to); + return(to); +} + +int main() { + int length1 = __VERIFIER_nondet_int(); + int length2 = __VERIFIER_nondet_int(); + if (length1 < 1) { + length1 = 1; + } + if (length2 < 1) { + length2 = 1; + } + if (length1 < length2) return 0; + char* nondetArea = (char*) alloca(length1 * sizeof(char)); + char* nondetString = (char*) alloca(length2 * sizeof(char)); + nondetString[length2-1] = '\0'; + cstpcpy(nondetArea,nondetString); + return 0; +} + diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstpncpy_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstpncpy_alloca.c new file mode 100644 index 000000000..39df7037e --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstpncpy_alloca.c @@ -0,0 +1,40 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +char * +cstpncpy(char *dst, const char *src, size_t n) +{ + if (n != 0) { + char *d = dst; + const char *s = src; + + dst = &dst[n]; + do { + if ((*d++ = *s++) == 0) { + dst = d - 1; + /* NUL pad the remaining n-1 bytes */ + while (--n != 0) + *d++ = 0; + break; + } + } while (--n != 0); + } + return (dst); +} + +int main() { + int length = __VERIFIER_nondet_int(); + int n = __VERIFIER_nondet_int(); + if (length < 1) { + length = 1; + } + if (n < 1) { + n = 1; + } + char* nondetArea = (char*) alloca(n * sizeof(char)); + char* nondetString = (char*) alloca(length * sizeof(char)); + nondetString[length-1] = '\0'; + cstpncpy(nondetArea, nondetString, n); + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrcat_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrcat_alloca.c new file mode 100644 index 000000000..4678a9944 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrcat_alloca.c @@ -0,0 +1,35 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +char * +cstrcat(char *s, const char *append) +{ + char *save = s; + + for (; *s; ++s); + while ((*s++ = *append++) != '\0'); + return(save); +} + +int main() { + int length1 = __VERIFIER_nondet_int(); + int length2 = __VERIFIER_nondet_int(); + int length3 = __VERIFIER_nondet_int(); + if (length1 < 1) { + length1 = 1; + } + if (length2 < 2) { + length2 = 2; + } + if (length3 < 1) { + length3 = 1; + } + if (length2 - length3 < length1 || length3 > length2) return 0; + char* nondetString1 = (char*) alloca(length1 * sizeof(char)); + char* nondetString2 = (char*) alloca(length2 * sizeof(char)); + nondetString1[length1-1] = '\0'; + nondetString2[length3-1] = '\0'; + cstrcat(nondetString2,nondetString1); + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrcmp_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrcmp_alloca.c new file mode 100644 index 000000000..686cff5c7 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrcmp_alloca.c @@ -0,0 +1,37 @@ +/* + * Date: 17.12.2013 + * Author: Thomas Ströder + */ +#include + +extern int __VERIFIER_nondet_int(void); + +/* + * Compare strings. + */ +int +cstrcmp(const char *s1, const char *s2) +{ + while (*s1 == *s2++) + if (*s1++ == 0) + return (0); + return (*(unsigned char *)s1 - *(unsigned char *)--s2); +} + +int main() { + int length1 = __VERIFIER_nondet_int(); + int length2 = __VERIFIER_nondet_int(); + if (length1 < 1) { + length1 = 1; + } + if (length2 < 1) { + length2 = 1; + } + char* nondetString1 = (char*) alloca(length1 * sizeof(char)); + char* nondetString2 = (char*) alloca(length2 * sizeof(char)); + nondetString1[length1-1] = '\0'; + nondetString2[length2-1] = '\0'; + return cstrcmp(nondetString1,nondetString2); +} + + diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrcpy_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrcpy_alloca.c new file mode 100644 index 000000000..24cbd380a --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrcpy_alloca.c @@ -0,0 +1,30 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +char * +cstrcpy(char *to, const char *from) +{ + char *save = to; + + for (; (*to = *from) != '\0'; ++from, ++to); + return(save); +} + +int main() { + int length1 = __VERIFIER_nondet_int(); + int length2 = __VERIFIER_nondet_int(); + if (length1 < 1) { + length1 = 1; + } + if (length2 < 1) { + length2 = 1; + } + if (length1 < length2) return 0; + char* nondetArea = (char*) alloca(length1 * sizeof(char)); + char* nondetString = (char*) alloca(length2 * sizeof(char)); + nondetString[length2-1] = '\0'; + cstrcpy(nondetArea,nondetString); + return 0; +} + diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrcspn_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrcspn_alloca.c new file mode 100644 index 000000000..d98330b61 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrcspn_alloca.c @@ -0,0 +1,49 @@ +/* + * Date: 17.12.2013 + * Author: Thomas Ströder + */ +#include + +extern int __VERIFIER_nondet_int(void); + +/* + * Span the complement of string s2. + */ +size_t +cstrcspn(const char *s1, const char *s2) +{ + const char *p, *spanp; + char c, sc; + + /* + * Stop as soon as we find any character from s2. Note that there + * must be a NUL in s2; it suffices to stop when we find that, too. + */ + for (p = s1;;) { + c = *p++; + spanp = s2; + do { + if ((sc = *spanp++) == c) + return (p - 1 - s1); + } while (sc != 0); + } + /* NOTREACHED */ +} + +int main() { + int length1 = __VERIFIER_nondet_int(); + int length2 = __VERIFIER_nondet_int(); + if (length1 < 1) { + length1 = 1; + } + if (length2 < 1) { + length2 = 1; + } + char* nondetString1 = (char*) alloca(length1 * sizeof(char)); + char* nondetString2 = (char*) alloca(length2 * sizeof(char)); + nondetString1[length1-1] = '\0'; + nondetString2[length2-1] = '\0'; + return cstrcspn(nondetString1,nondetString2); +} + + diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrlcpy_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrlcpy_alloca.c new file mode 100644 index 000000000..979d795ab --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrlcpy_alloca.c @@ -0,0 +1,51 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +/* + * Copy src to string dst of size siz. At most siz-1 characters + * will be copied. Always NUL terminates (unless siz == 0). + * Returns strlen(src); if retval >= siz, truncation occurred. + */ +size_t +cstrlcpy(char *dst, const char *src, size_t siz) +{ + char *d = dst; + const char *s = src; + size_t n = siz; + + /* Copy as many bytes as will fit */ + if (n != 0) { + while (--n != 0) { + if ((*d++ = *s++) == '\0') + break; + } + } + + /* Not enough room in dst, add NUL and traverse rest of src */ + if (n == 0) { + if (siz != 0) + *d = '\0'; /* NUL-terminate dst */ + while (*s++) + ; + } + + return(s - src - 1); /* count does not include NUL */ +} + +int main() { + int length = __VERIFIER_nondet_int(); + int n = __VERIFIER_nondet_int(); + if (length < 1) { + length = 1; + } + if (n < 1) { + n = 1; + } + char* nondetString1 = (char*) alloca(n * sizeof(char)); + char* nondetString2 = (char*) alloca(length * sizeof(char)); + nondetString1[n-1] = '\0'; + nondetString2[length-1] = '\0'; + cstrlcpy(nondetString1, nondetString2, n); + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrlen_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrlen_alloca.c new file mode 100644 index 000000000..84439bcd4 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrlen_alloca.c @@ -0,0 +1,29 @@ +/* + * Date: 17.12.2013 + * Author: Thomas Ströder + */ +#include + +extern int __VERIFIER_nondet_int(void); + +size_t +cstrlen(const char *str) +{ + const char *s; + + for (s = str; *s; ++s) + ; + return (s - str); +} + +int main() { + int length1 = __VERIFIER_nondet_int(); + if (length1 < 1) { + length1 = 1; + } + char* nondetString1 = (char*) alloca(length1 * sizeof(char)); + nondetString1[length1-1] = '\0'; + return cstrlen(nondetString1); +} + + diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrncat_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrncat_alloca.c new file mode 100644 index 000000000..c15de1493 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrncat_alloca.c @@ -0,0 +1,48 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +/* + * Concatenate src on the end of dst. At most strlen(dst)+n+1 bytes + * are written at dst (at most n+1 bytes being appended). Return dst. + */ +char * +cstrncat(char *dst, const char *src, size_t n) +{ + if (n != 0) { + char *d = dst; + const char *s = src; + + while (*d != 0) + d++; + do { + if ((*d = *s++) == 0) + break; + d++; + } while (--n != 0); + *d = 0; + } + return (dst); +} + +int main() { + int length1 = __VERIFIER_nondet_int(); + int length2 = __VERIFIER_nondet_int(); + int n = __VERIFIER_nondet_int(); + if (length1 < 1) { + length1 = 1; + } + if (length2 < 1) { + length2 = 1; + } + if (n < 1) { + n = 1; + } + if (length1 < n || length1 - n < length2) return 0; + char* nondetString1 = (char*) alloca(length1 * sizeof(char)); + char* nondetString2 = (char*) alloca(length2 * sizeof(char)); + nondetString1[length1-n-1] = '\0'; + nondetString2[length2-1] = '\0'; + cstrncat(nondetString1, nondetString2, n); + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrncmp_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrncmp_alloca.c new file mode 100644 index 000000000..2e4e8b96a --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrncmp_alloca.c @@ -0,0 +1,40 @@ +/* + * Date: 17.12.2013 + * Author: Thomas Ströder + */ +#include + +extern int __VERIFIER_nondet_int(void); + +int +cstrncmp(const char *s1, const char *s2, size_t n) +{ + + if (n == 0) + return (0); + do { + if (*s1 != *s2++) + return (*(unsigned char *)s1 - *(unsigned char *)--s2); + if (*s1++ == 0) + break; + } while (--n != 0); + return (0); +} + +int main() { + int length1 = __VERIFIER_nondet_int(); + int length2 = __VERIFIER_nondet_int(); + if (length1 < 1) { + length1 = 1; + } + if (length2 < 1) { + length2 = 1; + } + char* nondetString1 = (char*) alloca(length1 * sizeof(char)); + char* nondetString2 = (char*) alloca(length2 * sizeof(char)); + nondetString1[length1-1] = '\0'; + nondetString2[length2-1] = '\0'; + return cstrncmp(nondetString1,nondetString2,__VERIFIER_nondet_int()); +} + + diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrncpy_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrncpy_alloca.c new file mode 100644 index 000000000..a34f1e551 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrncpy_alloca.c @@ -0,0 +1,42 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +/* + * Copy src to dst, truncating or null-padding to always copy n bytes. + * Return dst. + */ +char * +cstrncpy(char *dst, const char *src, size_t n) +{ + if (n != 0) { + char *d = dst; + const char *s = src; + + do { + if ((*d++ = *s++) == 0) { + /* NUL pad the remaining n-1 bytes */ + while (--n != 0) + *d++ = 0; + break; + } + } while (--n != 0); + } + return (dst); +} + +int main() { + int length = __VERIFIER_nondet_int(); + int n = __VERIFIER_nondet_int(); + if (length < 1) { + length = 1; + } + if (n < 1) { + n = 1; + } + char* nondetArea = (char*) alloca(n * sizeof(char)); + char* nondetString = (char*) alloca(length * sizeof(char)); + nondetString[length-1] = '\0'; + cstrncpy(nondetArea, nondetString, n); + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrnlen_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrnlen_alloca.c new file mode 100644 index 000000000..842840926 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrnlen_alloca.c @@ -0,0 +1,35 @@ +/* + * Date: 17.12.2013 + * Author: Thomas Ströder + */ +#include + +extern int __VERIFIER_nondet_int(void); + +size_t +cstrnlen(const char *str, size_t maxlen) +{ + const char *cp; + + for (cp = str; maxlen != 0 && *cp != '\0'; cp++, maxlen--) + ; + + return (size_t)(cp - str); +} + + +int main() { + int length1 = __VERIFIER_nondet_int(); + int n = __VERIFIER_nondet_int(); + if (length1 < 1) { + length1 = 1; + } + if (n < 1) { + n = 1; + } + char* nondetString1 = (char*) alloca(length1 * sizeof(char)); + nondetString1[length1-1] = '\0'; + return cstrnlen(nondetString1,n); +} + + diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrpbrk_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrpbrk_alloca.c new file mode 100644 index 000000000..e8a9c349b --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrpbrk_alloca.c @@ -0,0 +1,43 @@ +/* + * Date: 17.12.2013 + * Author: Thomas Ströder + */ +#include + +extern int __VERIFIER_nondet_int(void); + +/* + * Find the first occurrence in s1 of a character in s2 (excluding NUL). + */ +char * +cstrpbrk(const char *s1, const char *s2) +{ + const char *scanp; + int c, sc; + + while ((c = *s1++) != 0) { + for (scanp = s2; (sc = *scanp++) != 0;) + if (sc == c) + return ((char *)(s1 - 1)); + } + return (NULL); +} + +int main() { + int length1 = __VERIFIER_nondet_int(); + int length2 = __VERIFIER_nondet_int(); + if (length1 < 1) { + length1 = 1; + } + if (length2 < 1) { + length2 = 1; + } + char* nondetString1 = (char*) alloca(length1 * sizeof(char)); + char* nondetString2 = (char*) alloca(length2 * sizeof(char)); + nondetString1[length1-1] = '\0'; + nondetString2[length2-1] = '\0'; + cstrpbrk(nondetString1,nondetString2); + return 0; +} + + diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrspn_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrspn_alloca.c new file mode 100644 index 000000000..1605ed44d --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrspn_alloca.c @@ -0,0 +1,45 @@ +/* + * Date: 17.12.2013 + * Author: Thomas Ströder + */ +#include + +extern int __VERIFIER_nondet_int(void); + +/* + * Span the string s2 (skip characters that are in s2). + */ +size_t +cstrspn(const char *s1, const char *s2) +{ + const char *p = s1, *spanp; + char c, sc; + + /* + * Skip any characters in s2, excluding the terminating \0. + */ +cont: + c = *p++; + for (spanp = s2; (sc = *spanp++) != 0;) + if (sc == c) + goto cont; + return (p - 1 - s1); +} + +int main() { + int length1 = __VERIFIER_nondet_int(); + int length2 = __VERIFIER_nondet_int(); + if (length1 < 1) { + length1 = 1; + } + if (length2 < 1) { + length2 = 1; + } + char* nondetString1 = (char*) alloca(length1 * sizeof(char)); + char* nondetString2 = (char*) alloca(length2 * sizeof(char)); + nondetString1[length1-1] = '\0'; + nondetString2[length2-1] = '\0'; + return cstrspn(nondetString1,nondetString2); +} + + diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrstr_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrstr_alloca.c new file mode 100644 index 000000000..8da47b839 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_openbsd_cstrstr_alloca.c @@ -0,0 +1,72 @@ +/* + * Date: 17.12.2013 + * Author: Thomas Ströder + */ +#include + +extern int __VERIFIER_nondet_int(void); + +size_t +cstrlen(const char *str) +{ + const char *s; + + for (s = str; *s; ++s) + ; + return (s - str); +} + +int +cstrncmp(const char *s1, const char *s2, size_t n) +{ + + if (n == 0) + return (0); + do { + if (*s1 != *s2++) + return (*(unsigned char *)s1 - *(unsigned char *)--s2); + if (*s1++ == 0) + break; + } while (--n != 0); + return (0); +} + +/* + * Find the first occurrence of find in s. + */ +char * +cstrstr(const char *s, const char *find) +{ + char c, sc; + size_t len; + + if ((c = *find++) != 0) { + len = cstrlen(find); + do { + do { + if ((sc = *s++) == 0) + return (NULL); + } while (sc != c); + } while (cstrncmp(s, find, len) != 0); + s--; + } + return ((char *)s); +} + +int main() { + int length1 = __VERIFIER_nondet_int(); + int length2 = __VERIFIER_nondet_int(); + if (length1 < 1) { + length1 = 1; + } + if (length2 < 1) { + length2 = 1; + } + char* nondetString1 = (char*) alloca(length1 * sizeof(char)); + char* nondetString2 = (char*) alloca(length2 * sizeof(char)); + nondetString1[length1-1] = '\0'; + nondetString2[length2-1] = '\0'; + return cstrstr(nondetString1,nondetString2); +} + + diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_selectionsort_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_selectionsort_alloca.c new file mode 100644 index 000000000..d77a44b0f --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_selectionsort_alloca.c @@ -0,0 +1,32 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +void SelectionSort(int a[], int array_size) +{ + int i; + for (i = 0; i < array_size - 1; ++i) + { + int j, min, temp; + min = i; + for (j = i+1; j < array_size; ++j) + { + if (a[j] < a[min]) + min = j; + } + + temp = a[i]; + a[i] = a[min]; + a[min] = temp; + } +} + +int main() { + int array_size = __VERIFIER_nondet_int(); + if (array_size < 1) { + array_size = 1; + } + int* numbers = (int*) alloca(array_size * sizeof(int)); + SelectionSort(numbers, array_size); + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_stroeder1_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_stroeder1_alloca.c new file mode 100644 index 000000000..92369ddef --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_stroeder1_alloca.c @@ -0,0 +1,25 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int sumOfThirdBytes(int numbers[], int array_size) +{ + int i, sum; + char* p; + sum = 0; + for (i = 0; i < array_size; i++) { + p = &(numbers[i]); + p = p + 2; + sum = sum + *p; + } + return sum; +} + +int main() { + int array_size = __VERIFIER_nondet_int(); + if (array_size < 1) { + array_size = 1; + } + int* numbers = (int*) alloca(array_size * sizeof(int)); + return sumOfThirdBytes(numbers, array_size); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_stroeder2_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_stroeder2_alloca.c new file mode 100644 index 000000000..a164a2600 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_stroeder2_alloca.c @@ -0,0 +1,28 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int sumOfThirdBytes(int numbers[], int array_size) +{ + int i, sum; + char* p; + sum = 0; + for (i = 0; i < array_size; i++) { + p = &(numbers[i]); + p = p + 2; + while (*p > 0) { + sum++; + (*p)--; + } + } + return sum; +} + +int main() { + int array_size = __VERIFIER_nondet_int(); + if (array_size < 1) { + array_size = 1; + } + int* numbers = (int*) alloca(array_size * sizeof(int)); + return sumOfThirdBytes(numbers, array_size); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_strreplace_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_strreplace_alloca.c new file mode 100644 index 000000000..81f336f45 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_strreplace_alloca.c @@ -0,0 +1,27 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int (cstrreplace)(char *s, char old, char new) + { + char *p = s; + int numReplaced = 0; + while (*p != '\0') { + if (*p == old) { + *p = new; + numReplaced++; + } + p++; + } + return numReplaced; + } + +int main() { + int length1 = __VERIFIER_nondet_int(); + if (length1 < 1) { + length1 = 1; + } + char* nondetString1 = (char*) alloca(length1 * sizeof(char)); + nondetString1[length1-1] = '\0'; +return cstrreplace(nondetString1, (char)__VERIFIER_nondet_int(), (char)__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_subseq_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_subseq_alloca.c new file mode 100644 index 000000000..624b0115d --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_subseq_alloca.c @@ -0,0 +1,33 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int (subseq)(char *s, char *t) + { + char *ps = s; + char *pt = t; + while (*ps != '\0' && *pt != '\0') { + if (*ps == *pt) { + ps++; + } + pt++; + } + if (*pt == '\0') return 1; + else return 0; + } + +int main() { + int length1 = __VERIFIER_nondet_int(); + int length2 = __VERIFIER_nondet_int(); + if (length1 < 1) { + length1 = 1; + } + if (length2 < 1) { + length2 = 1; + } + char* nondetString1 = (char*) alloca(length1 * sizeof(char)); + char* nondetString2 = (char*) alloca(length2 * sizeof(char)); + nondetString1[length1-1] = '\0'; + nondetString2[length2-1] = '\0'; + return subseq(nondetString1,nondetString2); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_substring_alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_substring_alloca.c new file mode 100644 index 000000000..6e5d6eefc --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_substring_alloca.c @@ -0,0 +1,35 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int (substring)(char *s, char *t) + { + char *ps = s; + while (*ps != '\0') { + char *ps2 = ps; + char *pt = t; + while (*pt != '\0' && *pt == *ps2) { + pt++; + ps2++; + } + if (*pt == '\0') return 1; + ps++; + } + return 0; + } + +int main() { + int length1 = __VERIFIER_nondet_int(); + int length2 = __VERIFIER_nondet_int(); + if (length1 < 1) { + length1 = 1; + } + if (length2 < 1) { + length2 = 1; + } + char* nondetString1 = (char*) alloca(length1 * sizeof(char)); + char* nondetString2 = (char*) alloca(length2 * sizeof(char)); + nondetString1[length1-1] = '\0'; + nondetString2[length2-1] = '\0'; + return substring(nondetString1,nondetString2); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_twisted-alloca.c b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_twisted-alloca.c new file mode 100644 index 000000000..6e81ba391 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_alloca/svcomp_twisted-alloca.c @@ -0,0 +1,34 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int f(int k, int l) +{ + int* k_ref = alloca(sizeof(int)); + int* l_ref = alloca(sizeof(int)); + int* i = alloca(sizeof(int)); + int* j = alloca(sizeof(int)); + *k_ref = k; + *l_ref = l; + *i = 0; + *j = 0; +L1: while (*i < *k_ref) { + (*i)++; + if (*i % 2) { + continue; + } + goto L2; + } +L2: while (*j < 1) { + (*j)++; + if (*i % 2) { + continue; + } + goto L1; + } + return *i + *j; +} + +int main() { + return f(__VERIFIER_nondet_int(),__VERIFIER_nondet_int()); +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_add_last_unsafe.c b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_add_last_unsafe.c new file mode 100644 index 000000000..d14e8ca87 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_add_last_unsafe.c @@ -0,0 +1,16 @@ +#include +extern int __VERIFIER_nondet_int(void); + +int main() { + int i, j; + int length = __VERIFIER_nondet_int(); + if (length < 1) length = 1; + int *arr = alloca(length); + if (!arr) return 0; + int *a = arr; + while (*a != *(arr + length - 1)) { + *a += *(arr + length - 1); + a++; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_bubble_sort_unsafe.c b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_bubble_sort_unsafe.c new file mode 100644 index 000000000..f4315284f --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_bubble_sort_unsafe.c @@ -0,0 +1,22 @@ +extern int __VERIFIER_nondet_int(void); + +void bubble(int a[], int N) +{ + int i, j, t; + for (i = N; i >= 1; i--) { + for (j = 2; j <= i; j++) { + if (a[j-1] > a[j]) { + t = a[j-1]; + a[j-1] = a[j]; + a[j] = t; + } + } + } +} + +int main() { + int* a; + int n = __VERIFIER_nondet_int(); + bubble(a, n); + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_bubblesort_unsafe.c b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_bubblesort_unsafe.c new file mode 100644 index 000000000..41dbbec95 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_bubblesort_unsafe.c @@ -0,0 +1,23 @@ +extern int __VERIFIER_nondet_int(void); + +void bubbleSort(int numbers[], int array_size) +{ + int i, j, temp; + + for (i = (array_size - 1); i >= 0; i--) { + for (j = 1; j <= i; j++) { + if (numbers[j-1] > numbers[j]) { + temp = numbers[j-1]; + numbers[j-1] = numbers[j]; + numbers[j] = temp; + } + } + } +} + +int main() { + int* numbers; + int array_size = __VERIFIER_nondet_int(); + bubbleSort(numbers, array_size); + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_count_down_unsafe.c b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_count_down_unsafe.c new file mode 100644 index 000000000..8a555c9bc --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_count_down_unsafe.c @@ -0,0 +1,24 @@ +#include +extern int __VERIFIER_nondet_int(void); + +int main() { + int i, j; + int val; + int length = __VERIFIER_nondet_int(); + if (length < 1) length = 1; + int *arr = alloca(length); + if (!arr) return 0; + for (i=0; i 0) { + arr[j]--; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_cstrcat_unsafe.c b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_cstrcat_unsafe.c new file mode 100644 index 000000000..65c05d78a --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_cstrcat_unsafe.c @@ -0,0 +1,19 @@ + char *(cstrcat)(char *s1, const char *s2) + { + char *s = s1; + /* Move s so that it points to the end of s1. */ + while (*s != '\0') + s++; + /* Do the copying in a loop. */ + while ((*s++ = *s2++) != '\0') + ; /* The body of this loop is left empty. */ + /* Return the destination string. */ + return s1; + } + +int main() { + char *s1; + char *s2; + cstrcat(s1, s2); + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_cstrchr_unsafe.c b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_cstrchr_unsafe.c new file mode 100644 index 000000000..717353863 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_cstrchr_unsafe.c @@ -0,0 +1,39 @@ +/* + * Date: 17.12.2013 + * Author: Thomas Ströder + * not memory safe + */ +#include + +extern int __VERIFIER_nondet_int(void); + +/* Returns some null-terminated string. */ +char* __VERIFIER_nondet_String(void) { + int length = __VERIFIER_nondet_int(); + if (length < 1) { + length = 1; + } + char* nondetString = (char*) malloc(length * sizeof(char)); + nondetString[length-1] = '\0'; + return nondetString; +} + + + + + +char *(cstrchr)(const char *s, int c) + { + /* Scan s for the character. When this loop is finished, + s will either point to the end of the string or the + character we were looking for. */ + while (*s != '\0' && *s != (char)c) + s++; + return ( (*s == c) ? (char *) s : 0 ); + } + +int main() { + return *cstrchr(__VERIFIER_nondet_String(),__VERIFIER_nondet_int()); +} + + diff --git a/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_cstrcpy_unsafe.c b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_cstrcpy_unsafe.c new file mode 100644 index 000000000..493e8dc58 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_cstrcpy_unsafe.c @@ -0,0 +1,18 @@ +char *(cstrcpy)(char *s1, const char *s2) + { + char *dst = s1; + const char *src = s2; + /* Do the copying in a loop. */ + while ((*dst++ = *src++) != '\0') + ; /* The body of this loop is left empty. */ + /* Return the destination string. */ + return s1; + } + +int main() { + char* s2; + char* s1; + cstrcpy(s1, s2); + return 0; +} + diff --git a/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_cstrlen_unsafe.c b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_cstrlen_unsafe.c new file mode 100644 index 000000000..a81b0b441 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_cstrlen_unsafe.c @@ -0,0 +1,37 @@ +/* + * Date: 17.12.2013 + * Author: Thomas Ströder + */ +#include + +extern int __VERIFIER_nondet_int(void); + +/* Returns some null-terminated string. */ +char* __VERIFIER_nondet_String(void) { + int length = __VERIFIER_nondet_int(); + if (length < 1) { + length = 1; + } + char* nondetString = (char*) malloc(length * sizeof(char)); + nondetString[length-1] = '\0'; + return nondetString; +} + + + + + +int (cstrlen)(const char *s) + { + const char *p = s; + /* Loop over the data in s. */ + while (*p != '\0') + p = p+2; + return (int)(p - s); + } + +int main() { + return cstrlen(__VERIFIER_nondet_String()); +} + + diff --git a/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_cstrncat_unsafe.c b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_cstrncat_unsafe.c new file mode 100644 index 000000000..3201df8ff --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_cstrncat_unsafe.c @@ -0,0 +1,29 @@ +extern int __VERIFIER_nondet_int(void); + +char *(cstrncat)(char *s1, const char *s2, int n) + { + char *s = s1; + /* Loop over the data in s1. */ + while (*s != '\0') + s++; + /* s now points to s1's trailing null character, now copy + up to n bytes from s1 into s stopping if a null character + is encountered in s2. + It is not safe to use strncpy here since it copies EXACTLY n + characters, NULL padding if necessary. */ + while (n != 0 && (*s = *s2++) != '\0') { + n--; + s++; + } + if (*s != '\0') + *s = '\0'; + return s1; + } + +int main() { + char *s1; + char *s2; + int n = __VERIFIER_nondet_int(); + cstrncat(s1, s2, n); + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_cstrncpy_unsafe.c b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_cstrncpy_unsafe.c new file mode 100644 index 000000000..c2897d4bb --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_cstrncpy_unsafe.c @@ -0,0 +1,32 @@ +extern int __VERIFIER_nondet_int(void); + +char *(cstrncpy)(char *s1, const char *s2, int n) + { + char *dst = s1; + const char *src = s2; + char *us; + int n2; + /* Copy bytes, one at a time. */ + while (n > 0) { + n--; + if ((*dst++ = *src++) == '\0') { + /* If we get here, we found a null character at the end + of s2, so use memset to put null bytes at the end of + s1. */ + us = dst; + n2 = n; + while (n2-- != 0) + *us++ = '\0'; + break; + } + } + return s1; + } + +int main() { + char *s1; + char *s2; + int n = __VERIFIER_nondet_int(); + cstrncpy(s1, s2, n); + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_cstrpbrk_unsafe.c b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_cstrpbrk_unsafe.c new file mode 100644 index 000000000..2a08100f9 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_cstrpbrk_unsafe.c @@ -0,0 +1,45 @@ +/* + * Date: 17.12.2013 + * Author: Thomas Ströder + * not memory safe + */ +#include + +extern int __VERIFIER_nondet_int(void); + +/* Returns some null-terminated string. */ +char* __VERIFIER_nondet_String(void) { + int length = __VERIFIER_nondet_int(); + if (length < 1) { + length = 1; + } + char* nondetString = (char*) malloc(length * sizeof(char)); + nondetString[length-1] = '\0'; + return nondetString; +} + + + + + +char *(cstrpbrk)(const char *s1, const char *s2) + { + const char *sc1; + const char *s; + int c; + for (sc1 = s1; *sc1 != '\0'; sc1++) { + s = s2; + c = *sc1; + while (*s != '\0' && *s != (char)c) + s++; + if (*s != c) + return (char *)sc1; + } + return 0; /* terminating nulls match */ + } + +int main() { + return *cstrpbrk(__VERIFIER_nondet_String(),__VERIFIER_nondet_String()); +} + + diff --git a/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_delete_alloca_unsafe.c b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_delete_alloca_unsafe.c new file mode 100644 index 000000000..32256a54b --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_delete_alloca_unsafe.c @@ -0,0 +1,20 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int main() { + int length1 = __VERIFIER_nondet_int(); + if (length1 < 1) { + length1 = 1; + } + char* x = (char*) alloca(length1 * sizeof(char)); + char *y; + if (x <= y && y < x + length1 * sizeof(char)) { + *y = 0; + while (*x != 0) { + *x = 0; + x++; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_delete_unsafe.c b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_delete_unsafe.c new file mode 100644 index 000000000..1650ac7aa --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_delete_unsafe.c @@ -0,0 +1,16 @@ +void delete(char *x, char *y) { + *y = 0; + if (0 < x && x < y) { + while (*x != 0) { + *x = 0; + x++; + } + } +} + +int main() { + char *x; + char *y; + delete(x, y); + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_diff_usafe.c b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_diff_usafe.c new file mode 100644 index 000000000..38c1a7d74 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_diff_usafe.c @@ -0,0 +1,37 @@ +extern int __VERIFIER_nondet_int(void); + +void diff(int *A, int Alen, int *B, int Blen, int *D) +{ + int k = 0; + int i = 0; + int l1 = Alen; + int l2 = Blen; + int found; + + while (i < l1) { + int j = 0; + found = 0; + while (j < l2 && !found) { + if(A[i] == B[j]) { + found = 1; + } else { + j++; + } + } + if (!found) { + D[k] = A[i]; + k++; + } + i++; + } +} + +int main() { + int *A; + int Alen = __VERIFIER_nondet_int(); + int *B; + int Blen = __VERIFIER_nondet_int(); + int *D; + diff(A, Alen, B, Blen, D); + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_insertion_sort_unsafe.c b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_insertion_sort_unsafe.c new file mode 100644 index 000000000..56ad27a08 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_insertion_sort_unsafe.c @@ -0,0 +1,22 @@ +extern int __VERIFIER_nondet_int(void); + +void insertion(int a[], int N) +{ + int i, j, v; + for (i = 2; i <= N; i++) { + v = a[i]; + j = i; + while (j > 0 && a[j - 1] > v) { + a[j] = a[j-1]; + j--; + } + a[j] = v; + } +} + +int main() { + int *a; + int N = __VERIFIER_nondet_int(); + insertion(a, N); + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_insertionsort_unsafe.c b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_insertionsort_unsafe.c new file mode 100644 index 000000000..dc553684f --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_insertionsort_unsafe.c @@ -0,0 +1,21 @@ +extern int __VERIFIER_nondet_int(void); + +void insertionSort(int a[], int array_size) +{ + int i, j, index; + for (i = 1; i < array_size; ++i) + { + index = a[i]; + for (j = i; j > 0 && a[j-1] > index; j--) + a[j] = a[j-1]; + + a[j] = index; + } +} + +int main() { + int *a; + int array_size = __VERIFIER_nondet_int(); + insertionSort(a, array_size); + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_java_BubbleSort_unsafe.c b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_java_BubbleSort_unsafe.c new file mode 100644 index 000000000..1f0bfdc34 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_java_BubbleSort_unsafe.c @@ -0,0 +1,20 @@ +extern int __VERIFIER_nondet_int(void); + +void sort(int *x, int n) { + int pass; + int i; + for (pass=1; pass < n; pass++) // count how many times + // This next loop becomes shorter and shorter + for (i=0; i < n - pass; i++) + if (x[i] > x[i+1]) { + // exchange elements + int temp = x[i]; x[i] = x[i+1]; x[i+1] = temp; + } +} + +int main() { + int *x; + int n = __VERIFIER_nondet_int(); + sort(x, n); + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_knapsack_alloca_unsafe.c b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_knapsack_alloca_unsafe.c new file mode 100644 index 000000000..269052871 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_knapsack_alloca_unsafe.c @@ -0,0 +1,35 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +void knapsack(int size[], int val[], int N, int cost[], int best[], int M) +{ + int i, j; + for (j = 1; j <= N; j++) { + for (i = 1; i <= M; i++) { + if (i >= size[j]) { + if (cost[i] < cost[i - size[j]] + val[j]) { + cost[i] = cost[i - size[j]] + val[j]; + best[i] = j; + } + } + } + } +} + +int main() { + int N = __VERIFIER_nondet_int(); + int M = __VERIFIER_nondet_int(); + if (N < 1) { + N = 1; + } + if (M < 1) { + M = 1; + } + int *size = (int*) alloca(N * sizeof(int)); + int *val = (int*) alloca(N * sizeof(int)); + int *cost = (int*) alloca(M * sizeof(int)); + int *best = (int*) alloca(M * sizeof(int)); + knapsack(size, val, N, cost, best, M); + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_knapsack_unsafe.c b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_knapsack_unsafe.c new file mode 100644 index 000000000..afab70656 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_knapsack_unsafe.c @@ -0,0 +1,27 @@ +extern int __VERIFIER_nondet_int(void); + +void knapsack(int size[], int val[], int N, int cost[], int best[], int M) +{ + int i, j; + for (j = 1; j <= N; j++) { + for (i = 1; i <= M; i++) { + if (i >= size[j]) { + if (cost[i] < cost[i - size[j]] + val[j]) { + cost[i] = cost[i - size[j]] + val[j]; + best[i] = j; + } + } + } + } +} + +int main() { + int *size; + int *val; + int N = __VERIFIER_nondet_int(); + int *cost; + int *best; + int M = __VERIFIER_nondet_int(); + knapsack(size, val, N, cost, best, M); + return 0; +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_lis_unsafe.c b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_lis_unsafe.c new file mode 100644 index 000000000..b4f32522d --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_lis_unsafe.c @@ -0,0 +1,36 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +// Returns the length of the longest increasing subsequence. +// Note that this is looking for the longest strictly increasing subsequence. + +int lis(int* a, int N) +{ + int *best, *prev, i, j, max = 0; + best = (int*) malloc(sizeof(int) * N); + prev = (int*) malloc(sizeof(int) * N); + + for (i = 0; i < N; i++) + best[i] = 1, prev[i] = i; + + for (i = 1; i < N; i++) + for (j = 0; j < i; j++) + if (a[i] > a[j] && best[i] < best[j] + 1) + best[i] = best[j] + 1, prev[i] = j; // prev[] is for backtracking the subsequence + + for (i = 0; i < N; i++) + if (max < best[i]) + max = best[i]; + + free(best); + free(prev); + + return max; +} + +int main() { + int *a; + int N = __VERIFIER_nondet_int(); + return lis(a, N); +} diff --git a/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_mult_array_unsafe.c b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_mult_array_unsafe.c new file mode 100644 index 000000000..58001464b --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_memory_unsafe/svcomp_mult_array_unsafe.c @@ -0,0 +1,20 @@ +#include +extern int __VERIFIER_nondet_int(void); + +int main() { + int i, j; + int length = __VERIFIER_nondet_int(); + if (length < 1) length = 1; + int fac = __VERIFIER_nondet_int(); + if (fac < 1) fac = 1; + int *arr = alloca(length); + int *arr2 = alloca(fac*length); + if (!arr || !arr2) return 0; + for (i=0; i +extern int __VERIFIER_nondet_int(void); + +int main() { + int i, j, tmp; + int length = __VERIFIER_nondet_int(); + if (length < 1) length = 1; + // make sure that length is odd + if (length % 2 == 0) length++; + int *arr = alloca(length*sizeof(int)); + // make sure the marker occurs only once + for (i=0; i +extern int __VERIFIER_nondet_int(void); + +int main() { + int i, j, tmp; + int length = __VERIFIER_nondet_int(); + if (length < 1) length = 1; + // make sure that length is odd + if (length % 2 == 0) length++; + int *arr = alloca(length); + // make sure the marker occurs only once + for (i=0; i 0) { + sum++; + (*p)--; + } + } + return sum; +} + +int main() { + int* numbers; + int array_size = __VERIFIER_nondet_int(); + return sumOfThirdBytes(numbers, array_size); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/Avg_true.c b/data/benchmarks/tpdb/C/AProVE_numeric/Avg_true.c new file mode 100644 index 000000000..29ca827b5 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/Avg_true.c @@ -0,0 +1,50 @@ +// public class Avg { + // public static void main(String[] args) { + // int x, y; + // x = args[0].length(); + // y = args[1].length(); + // average(x,y); + // } + + // public static int average(int x, int y) { + // if (x > 0) { + // return average(x-1, y+1); + // } else if (y > 2) { + // return 1 + average(x+1, y-2); + // } else { + // return 1; + // } + // } +// } + +extern int __VERIFIER_nondet_int(void); +int average(int x,int y); +int random(void); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + int z = __VERIFIER_nondet_int(); + average(random(),random()); + +} + +int random() { + int x = __VERIFIER_nondet_int(); + if (x < 0) + return -x; + else + return x; +} + + + +int average(int x, int y) { + if (x > 0) { + return average(x-1, y+1); + } else if (y > 2) { + return 1 + average(x+1, y-2); + } else { + return 1; + } + } diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/Binomial_true.c b/data/benchmarks/tpdb/C/AProVE_numeric/Binomial_true.c new file mode 100644 index 000000000..f23dbe41f --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/Binomial_true.c @@ -0,0 +1,45 @@ +// public class Binomial { + + // public static int fact(int n) { + // if (n <= 0) return 1; + // else return n * fact(n - 1); + // } + + // public static int binomialCoefficient(int n, int k) { + // return fact(n) / (fact(k) * fact(n - k)); + // } + + // public static void main(String args[]) { + // for (int n = 0; n <= args.length; n++) + // for (int k = 0; k <= args.length; k++) + // if (k <= n) binomialCoefficient(n, k); + // else binomialCoefficient(k, n); + // } + + +// } + +extern int __VERIFIER_nondet_int(void); + +int fact(int n) { + if (n <= 0) return 1; + else return n * fact(n - 1); +} + +int binomialCoefficient(int n, int k) { + return fact(n) / (fact(k) * fact(n - k)); +} + +int main() { + int x = __VERIFIER_nondet_int(); + if(x < 0) + return 0; + int y = __VERIFIER_nondet_int(); + if(y < 0) + return 0; + int z = __VERIFIER_nondet_int(); + for (int n = 0; n <= x; n++) + for (int k = 0; k <= x; k++) + if (k <= n) binomialCoefficient(n, k); + else binomialCoefficient(k, n); + } diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/Et1_true.c b/data/benchmarks/tpdb/C/AProVE_numeric/Et1_true.c new file mode 100644 index 000000000..ad4cafef6 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/Et1_true.c @@ -0,0 +1,42 @@ +// public class Et1 { + // public static void main(String[] args) { + // Random.args = args; + // int a = - Random.random(); + // int b = - Random.random(); + // loop(a,b); + // } + // public static void loop(int a, int b){ + // if (a > b) { + // b = b + a; + // a = a + 1; + // loop(a,b); + // } + // } +// } +extern int __VERIFIER_nondet_int(void); +void loop(int a,int b); +int random(void); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + int z = __VERIFIER_nondet_int(); + loop(-random(),-random()); + +} + +int random() { + int x = __VERIFIER_nondet_int(); + if (x < 0) + return -x; + else + return x; +} + +void loop(int a, int b){ + if (a > b) { + b = b + a; + a = a + 1; + loop(a,b); + } +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/Et2_true.c b/data/benchmarks/tpdb/C/AProVE_numeric/Et2_true.c new file mode 100644 index 000000000..95e90a0c2 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/Et2_true.c @@ -0,0 +1,45 @@ +// public class Et2 { + // public static void main(String[] args) { + // Random.args = args; + // int a = Random.random(); + // int b = Random.random(); + // loop(a,b); + // } + // public static void loop(int a, int b){ + // if (b > 0) { + // int r = Random.random(); + // b = a - 1 - r; + // a = a - 1 - r; + // loop(a,b); + // } + // } +// } + +extern int __VERIFIER_nondet_int(void); +void loop(int a,int b); +int random(void); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + int z = __VERIFIER_nondet_int(); + loop(random(),random()); + +} + +int random() { + int x = __VERIFIER_nondet_int(); + if (x < 0) + return -x; + else + return x; +} + +void loop(int a, int b){ + if (b > 0) { + int r = random(); + b = a - 1 - r; + a = a - 1 - r; + loop(a,b); + } +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/Et3_true.c b/data/benchmarks/tpdb/C/AProVE_numeric/Et3_true.c new file mode 100644 index 000000000..5a03a3b60 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/Et3_true.c @@ -0,0 +1,43 @@ +// public class Et3 { + // public static void main(String[] args) { + // Random.args = args; + // int a = Random.random(); + // int b = Random.random(); + // loop(a,b); + // } + // public static void loop(int a, int b) { + // if (a > 0) { + // a = a + b; + // b = b - 1; + // loop(a,b); + // } + // } +// } + +extern int __VERIFIER_nondet_int(void); +void loop(int a,int b); +int random(void); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + int z = __VERIFIER_nondet_int(); + loop(random(),random()); + +} + +int random() { + int x = __VERIFIER_nondet_int(); + if (x < 0) + return -x; + else + return x; +} + +void loop(int a, int b) { + if (a > 0) { + a = a + b; + b = b - 1; + loop(a,b); + } + } diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/Et4_true.c b/data/benchmarks/tpdb/C/AProVE_numeric/Et4_true.c new file mode 100644 index 000000000..03ace198a --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/Et4_true.c @@ -0,0 +1,49 @@ +// public class Et4 { + // public static void main(String[] args) { + // Random.args = args; + // int a = Random.random(); + // int b = Random.random(); + // int c = Random.random(); + // loop(a,b,c); + // } + // public static void loop(int a, int b, int c) { + // if ( (b - c >= 1) && (a == c)) { + // int r = Random.random(); + // b = 10; + // c = c + 1 + r; + // a = c; + // loop(a,b,c); + // } + // } +// } + +extern int __VERIFIER_nondet_int(void); +void loop(int a,int b,int c); +int random(void); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + int z = __VERIFIER_nondet_int(); + loop(random(),random(),random()); + +} + +int random() { + int x = __VERIFIER_nondet_int(); + if (x < 0) + return -x; + else + return x; +} + +void loop(int a, int b, int c) { + if ( (b - c >= 1) && (a == c)) { + int r = random(); + b = 10; + c = c + 1 + r; + a = c; + loop(a,b,c); + } + } + diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/LeUserDefRec_true.c b/data/benchmarks/tpdb/C/AProVE_numeric/LeUserDefRec_true.c new file mode 100644 index 000000000..bf0372dfd --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/LeUserDefRec_true.c @@ -0,0 +1,47 @@ +// public class LeUserDefRec { + // public static void main(String[] args) { + // int x = args[0].length(); + // int y = args[1].length(); + // le(x, y); + // } + + // public static boolean le(int x, int y) { + // if (x > 0 && y > 0) { + // return le(x-1, y-1); + // } else { + // return (x == 0); + // } + // } +// } + +extern int __VERIFIER_nondet_int(void); +int le(int x, int y); +int random(void); + +int main() { + int x = __VERIFIER_nondet_int(); + if(x < 0) + return 0; + int y = __VERIFIER_nondet_int(); + if(y < 0) + return 0; + int z = __VERIFIER_nondet_int(); + le(x,y); + +} + +int random() { + int x = __VERIFIER_nondet_int(); + if (x < 0) + return -x; + else + return x; +} + +int le(int x, int y) { + if (x > 0 && y > 0) { + return le(x-1, y-1); + } else { + return (x == 0); + } +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/LogRecursive_true.c b/data/benchmarks/tpdb/C/AProVE_numeric/LogRecursive_true.c new file mode 100644 index 000000000..4f55ed078 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/LogRecursive_true.c @@ -0,0 +1,44 @@ +// public class LogRecursive { + // public static void main(String[] args) { + // Random.args = args; + // log(Random.random(), Random.random()); + // } + + // public static int log(int x, int y) { + // if (x >= y && y > 1) { + // return 1 + log(x/y, y); + // } + // return 0; + // } +// } + +extern int __VERIFIER_nondet_int(void); +int log(int x, int y); +int random(void); + +int main() { + int x = __VERIFIER_nondet_int(); + if(x < 0) + return 0; + int y = __VERIFIER_nondet_int(); + if(y < 0) + return 0; + int z = __VERIFIER_nondet_int(); + log(x,y); + +} + +int random() { + int x = __VERIFIER_nondet_int(); + if (x < 0) + return -x; + else + return x; +} + +int log(int x, int y) { + if (x >= y && y > 1) { + return 1 + log(x/y, y); + } + return 0; + } diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/Parts_true.c b/data/benchmarks/tpdb/C/AProVE_numeric/Parts_true.c new file mode 100644 index 000000000..ae2d3338c --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/Parts_true.c @@ -0,0 +1,38 @@ +// public class Parts { + + // public static int parts(int p, int q) { + // if (p <= 0) return 1; + // else if (q <= 0) return 0; + // else if (q > p) return parts(p, p); + // else return parts(p-q, q) + parts(p, q-1); + // } + + // public static void main(String args[]) { + // for (int p = 0; p <= args.length; p++) + // for (int q = 0; q <= args.length; q++) + // parts(p, q); + // } +// } + +extern int __VERIFIER_nondet_int(void); + +int parts(int p, int q) { + if (p <= 0) return 1; + else if (q <= 0) return 0; + else if (q > p) return parts(p, p); + else return parts(p-q, q) + parts(p, q-1); + } + +int main() { + int x = __VERIFIER_nondet_int(); + if(x < 0) + return 0; + int y = __VERIFIER_nondet_int(); + if(y < 0) + return 0; + int z = __VERIFIER_nondet_int(); + for (int p = 0; p <= x; p++) + for (int q = 0; q <= x; q++) + parts(p, q); + +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/TerminatorRec02_true.c b/data/benchmarks/tpdb/C/AProVE_numeric/TerminatorRec02_true.c new file mode 100644 index 000000000..775c5d49c --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/TerminatorRec02_true.c @@ -0,0 +1,35 @@ +// public class TerminatorRec02 { + // public static void main(String[] args) { + // fact(args.length); + // } + + // public static int fact(int x) { + // if (x > 1) { + // int y = fact(x - 1); + // return y * x; + // } + // return 1; + // } +// } + +extern int __VERIFIER_nondet_int(void); + +int fact(int x) { + if (x > 1) { + int y = fact(x - 1); + return y * x; + } + return 1; + } + +int main() { + int x = __VERIFIER_nondet_int(); + if(x < 0) + return 0; + int y = __VERIFIER_nondet_int(); + if(y < 0) + return 0; + int z = __VERIFIER_nondet_int(); + fact(x); + +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/TwoWay_true.c b/data/benchmarks/tpdb/C/AProVE_numeric/TwoWay_true.c new file mode 100644 index 000000000..0288f5b78 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/TwoWay_true.c @@ -0,0 +1,50 @@ +// package TwoWay; + +// public class TwoWay { + // public static void main(String[] args) { + // Random.args = args; + // twoWay(true, Random.random()); + // } + + // public static int twoWay(boolean terminate, int n) { + // if (n < 0) { + // return 1; + // } else { + // int m = n; + // if (terminate) { + // m--; + // } else { + // m++; + // } + // return m*twoWay(terminate, m); + // } + // } +// } + +extern int __VERIFIER_nondet_int(void); + +int twoWay(int terminate, int n) { + if (n < 0) { + return 1; + } else { + int m = n; + if (terminate) { + m--; + } else { + m++; + } + return m*twoWay(terminate, m); + } + } + +int main() { + int x = __VERIFIER_nondet_int(); + if(x < 0) + return 0; + int y = __VERIFIER_nondet_int(); + if(y < 0) + return 0; + int z = __VERIFIER_nondet_int(); + twoWay(1,x); + +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/ex2.c b/data/benchmarks/tpdb/C/AProVE_numeric/ex2.c new file mode 100644 index 000000000..f031231e2 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/ex2.c @@ -0,0 +1,20 @@ +extern int __VERIFIER_nondet_int(); +int rec1(int i); +int rec2(int j); + +int rec1(int i) { + if(i <= 0) + return 0; + return rec2(rec1(i+1)); +} + +int rec2(int j) { + if(j <= 0) + return 0; + return rec1(rec2(j-1)); +} + +int main() { + int x = __VERIFIER_nondet_int(); + rec2(x); +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/ex3.c b/data/benchmarks/tpdb/C/AProVE_numeric/ex3.c new file mode 100644 index 000000000..e4f36a67e --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/ex3.c @@ -0,0 +1,20 @@ +extern int __VERIFIER_nondet_int(); +int rec1(int i); +int rec2(int j); + +int rec1(int i) { + if(i <= 0) + return 0; + return rec1( rec1( rec1(i-2) - 1 )) + 1 ; +} + +int rec2(int j) { + if(j <= 0) + return 0; + return rec2(rec1(j+1)) - 1; +} + +int main() { + int x = __VERIFIER_nondet_int(); + rec1(x); +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/rec_counter1.c b/data/benchmarks/tpdb/C/AProVE_numeric/rec_counter1.c new file mode 100644 index 000000000..926bdb7df --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/rec_counter1.c @@ -0,0 +1,22 @@ +extern int __VERIFIER_nondet_int(); + + +int rec(int a) { + if(a == 0) + return 0; + else { + int res = rec(a-1); + int rescopy = res; + while(rescopy > 0) + rescopy--; + return 1 + res; + } +} + +int main() { + int i = __VERIFIER_nondet_int(); + if(i <= 0) + return 0; + int res = rec(i); + +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/rec_counter3.c b/data/benchmarks/tpdb/C/AProVE_numeric/rec_counter3.c new file mode 100644 index 000000000..ffaebb80a --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/rec_counter3.c @@ -0,0 +1,24 @@ +extern int __VERIFIER_nondet_int(); + + +int rec(int a) { + if(a == 0) + return 0; + else { + int res = rec(a-1); + int rescopy = res; + while(rescopy > 0) + rescopy--; + return 1 + res; + } +} + +int main() { + int i = __VERIFIER_nondet_int(); + if(i <= 0) + return 0; + int res = rec(i); + while(res < 1) + ; + +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/rec_strlen.c b/data/benchmarks/tpdb/C/AProVE_numeric/rec_strlen.c new file mode 100644 index 000000000..2a7d01e29 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/rec_strlen.c @@ -0,0 +1,21 @@ +#include + +extern int __VERIFIER_nondet_int(void); + +int strlen_rec(const char *p) { + if(*p == '\0') + return 0; + else + return 1 + strlen_rec(p+1); +} + +int main() { + int length1 = __VERIFIER_nondet_int(); + if (length1 < 1) { + length1 = 1; + } + char* nondetString1 = (char*) alloca(length1 * sizeof(char)); + nondetString1[length1-1] = '\0'; + strlen_rec(nondetString1); +} + diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_Ackermann01_true-unreach-call_modified_modified.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_Ackermann01_true-unreach-call_modified_modified.c new file mode 100644 index 000000000..f22fe4353 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_Ackermann01_true-unreach-call_modified_modified.c @@ -0,0 +1,40 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Implementation the Ackermann function. + * http://en.wikipedia.org/wiki/Ackermann_function + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + +int ackermann(int m, int n) { + if (m==0) { + return n+1; + } + if (n==0) { + return ackermann(m-1,1); + } + return ackermann(m-1,ackermann(m,n-1)); +} + + +int main() { + int m = __VERIFIER_nondet_int(); + if (m < 0 || m > 3) { + return 0; + } + int n = __VERIFIER_nondet_int(); + if (n < 0 || n > 23) { + return 0; + } + int result = ackermann(m,n); + if (m < 0 || n < 0 || result >= 0) { + return 0; + } else { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_Addition01_true-unreach-call_true-termination_modified.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_Addition01_true-unreach-call_true-termination_modified.c new file mode 100644 index 000000000..14f8bc2db --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_Addition01_true-unreach-call_true-termination_modified.c @@ -0,0 +1,37 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Recursive implementation integer addition. + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + +int addition(int m, int n) { + if (n == 0) { + return m; + } + if (n > 0) { + return addition(m+1, n-1); + } + if (n < 0) { + return addition(m-1, n+1); + } +} + + +int main() { + int m = __VERIFIER_nondet_int(); + if (m <= 0) { + return 0; + } + int n = __VERIFIER_nondet_int(); + if (n <= 0) { + return 0; + } + int result = addition(m,n); + +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_EvenOdd01_true-unreach-call_true-termination_modified.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_EvenOdd01_true-unreach-call_true-termination_modified.c new file mode 100644 index 000000000..da8eb7e21 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_EvenOdd01_true-unreach-call_true-termination_modified.c @@ -0,0 +1,48 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Recursive implementation integer addition. + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + +int isOdd(int n); +int isEven(int n); + +int isOdd(int n) { + if (n == 0) { + return 0; + } else if (n == 1) { + return 1; + } else { + return isEven(n - 1); + } +} + +int isEven(int n) { + if (n == 0) { + return 1; + } else if (n == 1) { + return 0; + } else { + return isOdd(n - 1); + } +} + + +int main() { + int n = __VERIFIER_nondet_int(); + if (n < 0) { + return 0; + } + int result = isOdd(n); + if (result >= 0) { + return 0; + } else { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_Fibonacci01_true-unreach-call_modified.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_Fibonacci01_true-unreach-call_modified.c new file mode 100644 index 000000000..6c4a2239f --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_Fibonacci01_true-unreach-call_modified.c @@ -0,0 +1,37 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Recursive computation of fibonacci numbers. + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + + +int fibonacci(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibonacci(n-1) + fibonacci(n-2); + } +} + + +int main() { + int x = __VERIFIER_nondet_int(); + if(x < 1) + return 0; + int result = fibonacci(x); + if (result >= 1) { + return 0; + } else { + ERROR: __VERIFIER_error(); + } +} + + diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_MultCommutative_true-unreach-call_true-termination_modified.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_MultCommutative_true-unreach-call_true-termination_modified.c new file mode 100644 index 000000000..226331817 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_MultCommutative_true-unreach-call_true-termination_modified.c @@ -0,0 +1,42 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Recursive implementation multiplication by repeated addition + * Check that this multiplication is commutative + * + * Author: Jan Leike + * Date: 2013-07-17 + * + */ + +extern int __VERIFIER_nondet_int(void); + +// Multiplies two integers n and m +int mult(int n, int m) { + if (m < 0) { + return mult(n, -m); + } + if (m == 0) { + return 0; + } + return n + mult(n, m - 1); +} + +int main() { + int m = __VERIFIER_nondet_int(); + if (m < 0 ) { + return 0; + } + int n = __VERIFIER_nondet_int(); + if (n < 0 ) { + return 0; + } + int res1 = mult(m, n); + int res2 = mult(n, m); + // res != 0 => (m >0 || n > 0) + if (res1 == 0 || (m > 0 || n > 0)) { + return 0; + } else { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_a.01.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_a.01.c new file mode 100644 index 000000000..37e05f1eb --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_a.01.c @@ -0,0 +1,19 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int c = 0; + while (x > 0) { + y = 0; + while (y < x) { + y = y + 1; + c = c + 1; + } + x = x - 1; + } + return c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_a.04.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_a.04.c new file mode 100644 index 000000000..5a0718f54 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_a.04.c @@ -0,0 +1,15 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int c = 0; + while (x > y) { + y = y + 1; + c = c + 1; + } + return c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_a.05.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_a.05.c new file mode 100644 index 000000000..541811b6b --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_a.05.c @@ -0,0 +1,15 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int c = 0; + while (x >= y + 1) { + y = y + 1; + c = c + 1; + } + return c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_a.06.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_a.06.c new file mode 100644 index 000000000..887aa6e76 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_a.06.c @@ -0,0 +1,16 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y, int z) +{ + int c = 0; + while (x > y + z) { + y = y + 1; + z = z + 1; + c = c + 1; + } + return c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_a.07.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_a.07.c new file mode 100644 index 000000000..08419641c --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_a.07.c @@ -0,0 +1,16 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y, int z) +{ + int c = 0; + while ((x > y) && (x > z)) { + y = y + 1; + z = z + 1; + c = c + 1; + } + return c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_a.08.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_a.08.c new file mode 100644 index 000000000..818c3f40e --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_a.08.c @@ -0,0 +1,16 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int c = 0; + while (x > y) { + x = x + 1; + y = y + 2; + c = c + 1; + } + return c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_a.09_assume.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_a.09_assume.c new file mode 100644 index 000000000..44de66da5 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_a.09_assume.c @@ -0,0 +1,21 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y, int z) +{ + if(y <= 0) { + // replace assume + return z; + } + while (x >= z) { + if(y <= 0) { + // replace assume + return z; + } + z = z + y; + } + return z; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_a.10.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_a.10.c new file mode 100644 index 000000000..68ad27cd4 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_a.10.c @@ -0,0 +1,19 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int c = 0; + while (!(x == y)) { + if (x > y) { + y = y + 1; + } else { + x = x + 1; + } + c = c + 1; + } + return c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.01.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.01.c new file mode 100644 index 000000000..22b09119b --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.01.c @@ -0,0 +1,15 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int c = 0; + while (x > y) { + x = x - 1; + c = c + 1; + } + return c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.02.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.02.c new file mode 100644 index 000000000..551fdf7b0 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.02.c @@ -0,0 +1,16 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int c = 0; + while (x > y) { + x = x - 1; + y = y + 1; + c = c + 1; + } + return c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.03-no-inv_assume.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.03-no-inv_assume.c new file mode 100644 index 000000000..ffb4d4f67 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.03-no-inv_assume.c @@ -0,0 +1,18 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + if(x <= 0) { + // replace assume + return y; + } + + while (x > y) { + y = y + x; + } + return y; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.03_assume.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.03_assume.c new file mode 100644 index 000000000..2c8684708 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.03_assume.c @@ -0,0 +1,22 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + if(x <= 0) { + // replace assume + return y; + } + + while (x > y) { + if(x <= 0) { + // replace assume + return y; + } + y = y + x; + } + return y; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.04.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.04.c new file mode 100644 index 000000000..7ef314159 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.04.c @@ -0,0 +1,15 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y, int tmp) +{ + while (x > y) { + tmp = x; + x = y; + y = tmp; + } + return tmp; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.05.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.05.c new file mode 100644 index 000000000..d9620dc0e --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.05.c @@ -0,0 +1,15 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int tmp) +{ + tmp = __VERIFIER_nondet_int(); + while ((x > 0) && (x == 2*tmp)) { + x = x - 1; + tmp = __VERIFIER_nondet_int(); + } + return x; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.06.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.06.c new file mode 100644 index 000000000..5687c9b56 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.06.c @@ -0,0 +1,16 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int c = 0; + while ((x > 0) && (y > 0)) { + x = x - 1; + y = y - 1; + c = c + 1; + } + return c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.07.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.07.c new file mode 100644 index 000000000..ae9c1faed --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.07.c @@ -0,0 +1,16 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y, int z) +{ + int c = 0; + while ((x > z) && (y > z)) { + x = x - 1; + y = y - 1; + c = c + 1; + } + return c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.09-no-inv_assume.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.09-no-inv_assume.c new file mode 100644 index 000000000..56de561d4 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.09-no-inv_assume.c @@ -0,0 +1,23 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int c = 0; + if(x <= 0 || y <= 0) { + // replace assume + return x + y; + } + while (!(x == 0)) { + if (x > y) { + x = y; + } else { + x = x - 1; + } + c = c + 1; + } + return c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.09_assume.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.09_assume.c new file mode 100644 index 000000000..008f8edb1 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.09_assume.c @@ -0,0 +1,27 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int c = 0; + if(x <= 0 || y <= 0) { + // replace assume + return x + y; + } + while (!(x == 0)) { + if (x > y) { + x = y; + } else { + if(x <= 0) { + // replace assume + return x; + } + x = x - 1; + } + c = c + 1; + } + return c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.10.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.10.c new file mode 100644 index 000000000..f88125e24 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.10.c @@ -0,0 +1,23 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int c = 0; + while (x + y > 0) { + if (x > 0) { + x = x - 1; + } else { + if (y > 0) { + y = y - 1; + } else { + + } + } + c = c + 1; + } + return c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.11.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.11.c new file mode 100644 index 000000000..ee48c6d96 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.11.c @@ -0,0 +1,23 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int c = 0; + while (x + y > 0) { + if (x > y) { + x = x - 1; + } else { + if (x == y) { + x = x - 1; + } else { + y = y - 1; + } + } + c = c + 1; + } + return c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.12.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.12.c new file mode 100644 index 000000000..4b76ee88c --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.12.c @@ -0,0 +1,23 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int c = 0; + while ((x > 0) || (y > 0)) { + if (x > 0) { + x = x - 1; + } else { + if (y > 0) { + y = y - 1; + } else { + + } + } + c = c + 1; + } + return c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.13.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.13.c new file mode 100644 index 000000000..180a26a2c --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.13.c @@ -0,0 +1,23 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y, int z) +{ + int c = 0; + while ((x > z) || (y > z)) { + if (x > z) { + x = x - 1; + } else { + if (y > z) { + y = y - 1; + } else { + + } + } + c = c + 1; + } + return c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.14.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.14.c new file mode 100644 index 000000000..c9d68f919 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.14.c @@ -0,0 +1,18 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int c = 0; + while ((x == y) && (x > 0)) { + while (y > 0) { + x = x - 1; + y = y - 1; + c = c + 1; + } + } + return c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.15.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.15.c new file mode 100644 index 000000000..cc4e9a336 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.15.c @@ -0,0 +1,18 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y, int z) +{ + int c = 0; + while ((x == y) && (x > z)) { + while (y > z) { + x = x - 1; + y = y - 1; + c = c + 1; + } + } + return c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.16.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.16.c new file mode 100644 index 000000000..7eb7fbb87 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.16.c @@ -0,0 +1,19 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int c = 0; + while (x > 0) { + while (y > 0) { + y = y - 1; + c = c + 1; + } + x = x - 1; + c = c + 1; + } + return c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.17.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.17.c new file mode 100644 index 000000000..aafa954df --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.17.c @@ -0,0 +1,19 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y, int z) +{ + int c = 0; + while (x > z) { + while (y > z) { + y = y - 1; + c = c + 1; + } + c = c + 1; + x = x - 1; + } + return c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.18.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.18.c new file mode 100644 index 000000000..1a1b581ad --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_b.18.c @@ -0,0 +1,21 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + while ((x > 0) && (y > 0)) { + if (x > y) { + while (x > 0) { + x = x - 1; + } + } else { + while (y > 0) { + y = y - 1; + } + } + } + return x + y; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_c.01-no-inv.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_c.01-no-inv.c new file mode 100644 index 000000000..4e9f2883d --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_c.01-no-inv.c @@ -0,0 +1,19 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int c = 0; + while (x >= 0) { + y = 1; + while (x > y) { + y = 2*y; + c = c + 1; + } + x = x - 1; + } + return c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_c.01_assume.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_c.01_assume.c new file mode 100644 index 000000000..937b0e6a9 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_c.01_assume.c @@ -0,0 +1,21 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + while (x >= 0) { + y = 1; + while (x > y) { + if(y <= 0) { + // replace assume + return x; + } + y = 2*y; + } + x = x - 1; + } + return y; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_c.02.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_c.02.c new file mode 100644 index 000000000..074b69fe0 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_c.02.c @@ -0,0 +1,20 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int c = 0; + while (x >= 0) { + x = x + 1; + y = 1; + while (x > y) { + y = y + 1; + c = c + 1; + } + x = x - 2; + } + return c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_c.03.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_c.03.c new file mode 100644 index 000000000..6696e527c --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_c.03.c @@ -0,0 +1,21 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y, int z) +{ + int c = 0; + while (x < y) { + if (x < z) { + x = x + 1; + } else { + z = z + 1; + } + c = c + 1; + } + return c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} + + diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_c.07.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_c.07.c new file mode 100644 index 000000000..4ddd450c6 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_c.07.c @@ -0,0 +1,18 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int i, int j, int k, int tmp) +{ + int c = 0; + while ((i <= 100) && (j <= k)) { + tmp = i; + i = j; + j = tmp + 1; + k = k - 1; + c = c + 1; + } + return c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int(), __VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_c.08.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_c.08.c new file mode 100644 index 000000000..53aa2c2f6 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_c.08.c @@ -0,0 +1,19 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int i, int j) +{ + int c = 0; + while (i >= 0) { + j = 0; + while (j <= i - 1) { + j = j + 1; + c = c + 1; + } + i = i - 1; + } + return c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_easySum.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_easySum.c new file mode 100644 index 000000000..547663d02 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_easySum.c @@ -0,0 +1,14 @@ +extern int __VERIFIER_nondet_int(void); + +int iterate(int bound) { + int i; + int sum = 0; + for(i=0; i 0) { + r = r*x; + y = y - 1; + } + return r; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_ex2.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_ex2.c new file mode 100644 index 000000000..c9d514959 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_ex2.c @@ -0,0 +1,24 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y, int z, int flag) +{ + int c = 0; + flag = 1; + while ((y < z) && (flag > 0)) { + if ((y > 0) && (x > 1)) { + y = x*y; + } else { + if ((y > 0) && (x < -1)) { + y = -x*y; + } else { + flag = 0; + } + } + c = c + 1; + } + return c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int(), __VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_ex3a.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_ex3a.c new file mode 100644 index 000000000..85dcc82d5 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_ex3a.c @@ -0,0 +1,15 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x) +{ + int c = 0; + while ((x > 1) && (x < 100)) { + x = x*x; + c = c + 1; + } + return c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_ex3b.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_ex3b.c new file mode 100644 index 000000000..42f841f5b --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_ex3b.c @@ -0,0 +1,15 @@ +extern int __VERIFIER_nondet_int(void); + +int test_fun(int x, int y) +{ + int c = 0; + while ((x > 1) && (x < y)) { + x = x*x; + c = c + 1; + } + return c; +} + +int main() { + return test_fun(__VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_fermat.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_fermat.c new file mode 100644 index 000000000..4ac658011 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_fermat.c @@ -0,0 +1,26 @@ +int fermat (void) { + const int MAX = 1000; + int a = 1, b = 1, c = 1; + while (1) { + if (((a*a*a) == ((b*b*b)+(c*c*c)))) { + return 1; + } + a++; + if (a>MAX) { + a = 1; + b++; + } + if (b>MAX) { + b = 1; + c++; + } + if (c>MAX) { + break; + } + } + return 0; +} + +int main() { + return fermat(); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_flag.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_flag.c new file mode 100644 index 000000000..abdd6cf0a --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_flag.c @@ -0,0 +1,16 @@ +extern int __VERIFIER_nondet_int(void); + +int f(int x, int y) +{ + int flag = 1; + int c = 0; + while (flag) { + flag = (x++ < y); + c = c + 1; + } + return c; +} + +int main() { + return f(__VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_gcd01_true-unreach-call_true-termination_modified.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_gcd01_true-unreach-call_true-termination_modified.c new file mode 100644 index 000000000..146b0fb23 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_gcd01_true-unreach-call_true-termination_modified.c @@ -0,0 +1,43 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Recursive implementation of the greatest common denominator + * using Euclid's algorithm + * + * Author: Jan Leike + * Date: 2013-07-17 + * + */ + +extern int __VERIFIER_nondet_int(void); + +// Compute the greatest common denominator using Euclid's algorithm +int gcd(int y1, int y2) { + if (y1 <= 0 || y2 <= 0) { + return 0; + } + if (y1 == y2) { + return y1; + } + if (y1 > y2) { + return gcd(y1 - y2, y2); + } + return gcd(y1, y2 - y1); +} + +int main() { + int m = __VERIFIER_nondet_int(); + if (m <= 0 ) { + return 0; + } + int n = __VERIFIER_nondet_int(); + if (n <= 0 ) { + return 0; + } + int z = gcd(m, n); + if (z < 1 && m > 0 && n > 0) { + ERROR: __VERIFIER_error(); + } else { + return 0; + } +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_java_AG313.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_java_AG313.c new file mode 100644 index 000000000..a4f755923 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_java_AG313.c @@ -0,0 +1,15 @@ +extern int __VERIFIER_nondet_int(void); + +int quot(int x, int y) { + int i = 0; + if(x==0) return 0; + while (x > 0 && y > 0) { + i += 1; + x = (x - 1)- (y - 1); + } + return i; +} + +int main() { + return quot(__VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_java_Break.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_java_Break.c new file mode 100644 index 000000000..e62a4f7f7 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_java_Break.c @@ -0,0 +1,10 @@ +int main() { + int i = 0; + int c = 0; + while (1) { + if (i > 10) break; + i++; + c++; + } + return c; +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_java_Continue1.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_java_Continue1.c new file mode 100644 index 000000000..35c759633 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_java_Continue1.c @@ -0,0 +1,10 @@ +int main() { + int i = 0; + int c = 0; + while (i < 20) { + i++; + if (i <= 10) continue; + c++; + } + return c; +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_java_LogBuiltIn.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_java_LogBuiltIn.c new file mode 100644 index 000000000..af82a45c9 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_java_LogBuiltIn.c @@ -0,0 +1,20 @@ +extern int __VERIFIER_nondet_int(void); + +int mlog(int x) { + + int res = 0; + + while (x > 1) { + + x = x/2; + res++; + + } + + return res; + +} + +int main() { + return mlog(__VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_java_Nested.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_java_Nested.c new file mode 100644 index 000000000..40619f1bf --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_java_Nested.c @@ -0,0 +1,10 @@ +int main() { + int i, j; + int c = 0; + for (i = 0; i < 10; i++) + for (j = 3; j < 12; j += 2) { + j -= 1; + c += 1; + } + return c; +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_java_Sequence.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_java_Sequence.c new file mode 100644 index 000000000..35aab9863 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_java_Sequence.c @@ -0,0 +1,7 @@ +int main() { + int i, j; + int c = 0; + for (i = 0; i < 100; i++) c = c + 1; + for (j = 5; j < 21; j += 3) c = c + 1; + return c; +} diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_recHanoi02_true-unreach-call_true-termination_modified.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_recHanoi02_true-unreach-call_true-termination_modified.c new file mode 100644 index 000000000..e09ccff52 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_recHanoi02_true-unreach-call_true-termination_modified.c @@ -0,0 +1,37 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * recHanoi.c + * + * Created on: 17.07.2013 + * Author: Stefan Wissert + */ + +extern int __VERIFIER_nondet_int(void); + +/* + * This function returns the optimal amount of steps, + * needed to solve the problem for n-disks + */ +int hanoi(int n) { + if (n == 1) { + return 1; + } + return 2 * (hanoi(n-1)) + 1; +} + + +int main() { + int n = __VERIFIER_nondet_int(); + if (n < 1 || n > 31) { + return 0; + } + int result = hanoi(n); + if (result >= 0) { + return 0; + } else { + ERROR: __VERIFIER_error(); + } +} + + diff --git a/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_twisted.c b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_twisted.c new file mode 100644 index 000000000..112d57762 --- /dev/null +++ b/data/benchmarks/tpdb/C/AProVE_numeric/svcomp_twisted.c @@ -0,0 +1,25 @@ +extern int __VERIFIER_nondet_int(void); + +int f(int k, int l) +{ + int i = 0, j = 0; +L1: while (i < k) { + i++; + if (i % 2) { + continue; + } + goto L2; + } +L2: while (j < l) { + j++; + if (i % 2) { + continue; + } + goto L1; + } + return i + j; +} + +int main() { + return f(__VERIFIER_nondet_int(), __VERIFIER_nondet_int()); +} diff --git a/data/benchmarks/tpdb/C/Di_Stefano_20/boids_true-termination.c b/data/benchmarks/tpdb/C/Di_Stefano_20/boids_true-termination.c new file mode 100644 index 000000000..d7439cfa6 --- /dev/null +++ b/data/benchmarks/tpdb/C/Di_Stefano_20/boids_true-termination.c @@ -0,0 +1,418 @@ +/* + * Program used in the experimental evaluation of the following paper: + * De Nicola, Di Stefano, Inverso. Multi-Agent Systems With Virtual Stigmergies. Sci.Comp. Progr. 187, 2020 + * + * Date: 2020 + * Authors: Luca Di Stefano, Omar Inverso + * Contact: luca distefano gssi it + */ +extern int __VERIFIER_nondet_int(void); +typedef char TYPEOFVALUES; +typedef unsigned char TYPEOFPC; +typedef unsigned char TYPEOFTIME; +typedef unsigned char TYPEOFAGENTID; +typedef unsigned char TYPEOFKEYIID; +typedef unsigned char TYPEOFKEYLID; +TYPEOFVALUES __abs(TYPEOFVALUES x) +{ + return (x > 0) ? (x) : (-x); +} + +TYPEOFVALUES mod(TYPEOFVALUES n, TYPEOFVALUES m) +{ + return (n >= 0) ? (n % m) : (m + (n % m)); +} + +TYPEOFVALUES I[3][2]; +TYPEOFPC pc[3][1]; +TYPEOFTIME __LABS_time; +_Bool Hin[3][6]; +_Bool Hout[3][6]; +unsigned char HinCnt[3]; +unsigned char HoutCnt[3]; +TYPEOFTIME now(void) +{ + return ++__LABS_time; +} + +TYPEOFVALUES Lvalue[3][6]; +TYPEOFTIME Ltstamp[3][6]; +const TYPEOFKEYLID tupleStart[6] = {0, 0, 0, 0, 4, 4}; +const TYPEOFKEYLID tupleEnd[6] = {3, 3, 3, 3, 5, 5}; +_Bool link(TYPEOFAGENTID __LABS_link1, TYPEOFAGENTID __LABS_link2, TYPEOFKEYLID key) +{ + _Bool __LABS_link = 0; + if ((key >= 4) && (key <= 5)) + { + __LABS_link = (((I[__LABS_link1][0] - I[__LABS_link2][0]) * (I[__LABS_link1][0] - I[__LABS_link2][0])) + ((I[__LABS_link1][1] - I[__LABS_link2][1]) * (I[__LABS_link1][1] - I[__LABS_link2][1]))) <= (5 * 5); + } + else + if ((key >= 0) && (key <= 3)) + { + __LABS_link = Lvalue[__LABS_link1][0] >= Lvalue[__LABS_link2][0]; + } + + + return __LABS_link; +} + +TYPEOFTIME timeof(TYPEOFAGENTID id, TYPEOFKEYLID key) +{ + return Ltstamp[id][tupleStart[key]]; +} + +void setHin(TYPEOFAGENTID id, TYPEOFKEYLID key) +{ + HinCnt[id] = HinCnt[id] + (!Hin[id][tupleStart[key]]); + Hin[id][tupleStart[key]] = 1; +} + +void clearHin(TYPEOFAGENTID id, TYPEOFKEYLID key) +{ + HinCnt[id] = HinCnt[id] - Hin[id][tupleStart[key]]; + Hin[id][tupleStart[key]] = 0; +} + +void setHout(TYPEOFAGENTID id, TYPEOFKEYLID key) +{ + HoutCnt[id] = HoutCnt[id] + (!Hout[id][tupleStart[key]]); + Hout[id][tupleStart[key]] = 1; +} + +void clearHout(TYPEOFAGENTID id, TYPEOFKEYLID key) +{ + HoutCnt[id] = HoutCnt[id] - Hout[id][tupleStart[key]]; + Hout[id][tupleStart[key]] = 0; +} + +void attr(TYPEOFAGENTID id, TYPEOFKEYIID key, TYPEOFVALUES value, _Bool check) +{ + __VERIFIER_assume((!check) || (HoutCnt[id] == 0)); + __VERIFIER_assume((!check) || (HinCnt[id] == 0)); + I[id][key] = value; + now(); +} + +void lstig(TYPEOFAGENTID id, TYPEOFKEYLID key, TYPEOFVALUES value, _Bool check) +{ + __VERIFIER_assume((!check) || (HoutCnt[id] == 0)); + __VERIFIER_assume((!check) || (HinCnt[id] == 0)); + Lvalue[id][key] = value; + Ltstamp[id][tupleStart[key]] = now(); + setHout(id, key); +} + +void confirm(void) +{ + TYPEOFAGENTID guessedcomp = __VERIFIER_nondet_int(); + __VERIFIER_assume(guessedcomp < 3); + __VERIFIER_assume(HinCnt[guessedcomp] > 0); + TYPEOFKEYLID guessedkey = __VERIFIER_nondet_int(); + __VERIFIER_assume(guessedkey < 6); + __VERIFIER_assume(Hin[guessedcomp][guessedkey] == 1); + TYPEOFAGENTID i = __VERIFIER_nondet_int(); + TYPEOFTIME t = timeof(guessedcomp, guessedkey); + for (i = 0; i < 3; i++) + { + if (((guessedcomp != i) && (timeof(i, guessedkey) != t)) && link(guessedcomp, i, guessedkey)) + { + setHout(i, guessedkey); + if (timeof(i, guessedkey) < t) + { + TYPEOFKEYLID k = __VERIFIER_nondet_int(); + TYPEOFKEYLID next = __VERIFIER_nondet_int(); + clearHin(i, guessedkey); + for (k = 0; k < 4; k++) + { + next = guessedkey + k; + if (next <= tupleEnd[guessedkey]) + Lvalue[i][next] = Lvalue[guessedcomp][next]; + + } + + Ltstamp[i][guessedkey] = t; + } + + } + + } + + clearHin(guessedcomp, guessedkey); +} + +void propagate(void) +{ + TYPEOFAGENTID guessedcomp = __VERIFIER_nondet_int(); + __VERIFIER_assume(guessedcomp < 3); + __VERIFIER_assume(HoutCnt[guessedcomp] > 0); + TYPEOFKEYLID guessedkey = __VERIFIER_nondet_int(); + __VERIFIER_assume(guessedkey < 6); + __VERIFIER_assume(Hout[guessedcomp][guessedkey] == 1); + TYPEOFAGENTID i = __VERIFIER_nondet_int(); + TYPEOFTIME t = timeof(guessedcomp, guessedkey); + for (i = 0; i < 3; i++) + { + if (((guessedcomp != i) && (timeof(i, guessedkey) < t)) && link(guessedcomp, i, guessedkey)) + { + setHout(i, guessedkey); + clearHin(i, guessedkey); + TYPEOFKEYLID k = __VERIFIER_nondet_int(); + TYPEOFKEYLID next = __VERIFIER_nondet_int(); + for (k = 0; k < 4; k++) + { + next = guessedkey + k; + if (next <= tupleEnd[guessedkey]) + Lvalue[i][next] = Lvalue[guessedcomp][next]; + + } + + Ltstamp[i][guessedkey] = t; + } + + } + + clearHout(guessedcomp, guessedkey); +} + +void init() +{ + TYPEOFVALUES _I[3][2]; + TYPEOFPC _pc[3][1]; + TYPEOFVALUES _Lvalue[3][6]; + unsigned char i = __VERIFIER_nondet_int(); + unsigned char j = __VERIFIER_nondet_int(); + for (i = 0; i < 3; i++) + { + for (j = 0; j < 2; j++) + { + _I[i][j] = __VERIFIER_nondet_int(); + } + + for (j = 0; j < 6; j++) + { + _Lvalue[i][j] = __VERIFIER_nondet_int(); + Ltstamp[i][j] = 0; + Hin[i][j] = 0; + Hout[i][j] = 0; + } + + HinCnt[i] = 0; + HoutCnt[i] = 0; + } + + _pc[0][0] = 8; + _pc[1][0] = 8; + _pc[2][0] = 8; + __VERIFIER_assume(_Lvalue[0][0] == 1); + __VERIFIER_assume(_Lvalue[1][0] == 1); + __VERIFIER_assume(_Lvalue[2][0] == 1); + __VERIFIER_assume(_Lvalue[0][1] == 0); + __VERIFIER_assume(_Lvalue[1][1] == 1); + __VERIFIER_assume(_Lvalue[2][1] == 2); + __VERIFIER_assume(_Lvalue[0][2] == (-1)); + __VERIFIER_assume(_Lvalue[1][2] == (-1)); + __VERIFIER_assume(_Lvalue[2][2] == (-1)); + __VERIFIER_assume(_Lvalue[0][3] == (-1)); + __VERIFIER_assume(_Lvalue[1][3] == (-1)); + __VERIFIER_assume(_Lvalue[2][3] == (-1)); + __VERIFIER_assume((_Lvalue[0][4] == (-1)) || (_Lvalue[0][4] == 1)); + __VERIFIER_assume((_Lvalue[1][4] == (-1)) || (_Lvalue[1][4] == 1)); + __VERIFIER_assume((_Lvalue[2][4] == (-1)) || (_Lvalue[2][4] == 1)); + __VERIFIER_assume((_Lvalue[0][5] == (-1)) || (_Lvalue[0][5] == 1)); + __VERIFIER_assume((_Lvalue[1][5] == (-1)) || (_Lvalue[1][5] == 1)); + __VERIFIER_assume((_Lvalue[2][5] == (-1)) || (_Lvalue[2][5] == 1)); + __VERIFIER_assume((_I[0][0] >= 0) && (_I[0][0] < 5)); + __VERIFIER_assume((_I[1][0] >= 0) && (_I[1][0] < 5)); + __VERIFIER_assume((_I[2][0] >= 0) && (_I[2][0] < 5)); + __VERIFIER_assume((_I[0][1] >= 0) && (_I[0][1] < 5)); + __VERIFIER_assume((_I[1][1] >= 0) && (_I[1][1] < 5)); + __VERIFIER_assume((_I[2][1] >= 0) && (_I[2][1] < 5)); + Ltstamp[0][tupleStart[0]] = now(); + Ltstamp[1][tupleStart[0]] = now(); + Ltstamp[2][tupleStart[0]] = now(); + Ltstamp[0][tupleStart[1]] = now(); + Ltstamp[1][tupleStart[1]] = now(); + Ltstamp[2][tupleStart[1]] = now(); + Ltstamp[0][tupleStart[2]] = now(); + Ltstamp[1][tupleStart[2]] = now(); + Ltstamp[2][tupleStart[2]] = now(); + Ltstamp[0][tupleStart[3]] = now(); + Ltstamp[1][tupleStart[3]] = now(); + Ltstamp[2][tupleStart[3]] = now(); + Ltstamp[0][tupleStart[4]] = now(); + Ltstamp[1][tupleStart[4]] = now(); + Ltstamp[2][tupleStart[4]] = now(); + Ltstamp[0][tupleStart[5]] = now(); + Ltstamp[1][tupleStart[5]] = now(); + Ltstamp[2][tupleStart[5]] = now(); + now(); + + for (i = 0; i < 3; i++) + { + for (j = 0; j < 1; j++) + { + pc[i][j] = _pc[i][j]; + } + + for (j = 0; j < 2; j++) + { + I[i][j] = _I[i][j]; + } + + for (j = 0; j < 6; j++) + { + Lvalue[i][j] = _Lvalue[i][j]; + } + + } + +} + +void _0_2(int tid) +{ + __VERIFIER_assume(Lvalue[tid][1] == tid); + TYPEOFVALUES val0 = I[tid][0]; + TYPEOFVALUES val1 = I[tid][1]; + lstig(tid, 2, val0, 1); + lstig(tid, 3, val1, 0); + setHin(tid, 1); + pc[tid][0] = 8; +} + +void _0_3(int tid) +{ + __VERIFIER_assume(__abs(I[tid][1] - Lvalue[tid][3]) > 5); + TYPEOFVALUES val0 = (Lvalue[tid][3] - I[tid][1]) / __abs(Lvalue[tid][3] - I[tid][1]); + lstig(tid, 5, val0, 1); + setHin(tid, 3); + pc[tid][0] = 8; +} + +void _0_4(int tid) +{ + __VERIFIER_assume((HoutCnt[tid] == 0) && (HinCnt[tid] == 0)); + __VERIFIER_assume(__abs(I[tid][1] - Lvalue[tid][3]) <= 5); + setHin(tid, 3); + pc[tid][0] = 8; +} + +void _0_5(int tid) +{ + __VERIFIER_assume(__abs(I[tid][0] - Lvalue[tid][2]) > 5); + TYPEOFVALUES val0 = (Lvalue[tid][2] - I[tid][0]) / __abs(Lvalue[tid][2] - I[tid][0]); + lstig(tid, 4, val0, 1); + setHin(tid, 2); + TYPEOFPC pc0 = __VERIFIER_nondet_int(); + __VERIFIER_assume((pc0 == 3) || (pc0 == 4)); + pc[tid][0] = pc0; +} + +void _0_6(int tid) +{ + __VERIFIER_assume((HoutCnt[tid] == 0) && (HinCnt[tid] == 0)); + __VERIFIER_assume(__abs(I[tid][0] - Lvalue[tid][2]) <= 5); + setHin(tid, 2); + TYPEOFPC pc0 = __VERIFIER_nondet_int(); + __VERIFIER_assume((pc0 == 3) || (pc0 == 4)); + pc[tid][0] = pc0; +} + +void _0_7(int tid) +{ + __VERIFIER_assume(Lvalue[tid][1] != tid); + TYPEOFVALUES val0 = Lvalue[tid][0] + 1; + lstig(tid, 0, val0, 1); + setHin(tid, 0); + setHin(tid, 1); + TYPEOFPC pc0 = __VERIFIER_nondet_int(); + __VERIFIER_assume((pc0 == 5) || (pc0 == 6)); + pc[tid][0] = pc0; +} + +void _0_8(int tid) +{ + TYPEOFVALUES val0 = mod(I[tid][0] + Lvalue[tid][4], 5); + TYPEOFVALUES val1 = mod(I[tid][1] + Lvalue[tid][5], 5); + attr(tid, 0, val0, 1); + attr(tid, 1, val1, 0); + setHin(tid, 4); + setHin(tid, 5); + TYPEOFPC pc0 = __VERIFIER_nondet_int(); + __VERIFIER_assume((pc0 == 2) || (pc0 == 7)); + pc[tid][0] = pc0; +} + +int main(void) +{ + init(); + TYPEOFAGENTID firstAgent = 0; + while (1) + { + if ((_Bool) __VERIFIER_nondet_int()) + { + switch (pc[firstAgent][0]) + { + case 2: + _0_2(firstAgent); + break; + + case 3: + _0_3(firstAgent); + break; + + case 4: + _0_4(firstAgent); + break; + + case 5: + _0_5(firstAgent); + break; + + case 6: + _0_6(firstAgent); + break; + + case 7: + _0_7(firstAgent); + break; + + case 8: + _0_8(firstAgent); + break; + + default: + { + } + + } + + if (firstAgent == (3 - 1)) + { + firstAgent = 0; + } + else + { + firstAgent++; + } + + } + else + { + _Bool propagate_or_confirm = __VERIFIER_nondet_int(); + if (propagate_or_confirm) + propagate(); + else + confirm(); + + } + + if ((((((Lvalue[0][1] == Lvalue[0][1]) && (Lvalue[0][1] == Lvalue[1][1])) && (Lvalue[0][1] == Lvalue[2][1])) && (Lvalue[1][1] == Lvalue[1][1])) && (Lvalue[1][1] == Lvalue[2][1])) && (Lvalue[2][1] == Lvalue[2][1])) + { + return 0; + } + + } + +} + + diff --git a/data/benchmarks/tpdb/C/Di_Stefano_20/flock-noarray_true-termination.c b/data/benchmarks/tpdb/C/Di_Stefano_20/flock-noarray_true-termination.c new file mode 100644 index 000000000..62805b949 --- /dev/null +++ b/data/benchmarks/tpdb/C/Di_Stefano_20/flock-noarray_true-termination.c @@ -0,0 +1,731 @@ +/* + * Program used in the experimental evaluation of the following paper: + * De Nicola, Di Stefano, Inverso. Multi-Agent Systems With Virtual Stigmergies. Sci.Comp. Progr. 187, 2020 + * + * Date: 2020 + * Authors: Luca Di Stefano, Omar Inverso + * Contact: luca distefano gssi it + */ +extern int __VERIFIER_nondet_int(void); +typedef char TYPEOFVALUES; +typedef unsigned char TYPEOFPC; +typedef unsigned char TYPEOFTIME; +typedef unsigned char TYPEOFAGENTID; +typedef unsigned char TYPEOFKEYIID; +typedef unsigned char TYPEOFKEYLID; + +TYPEOFVALUES mod(TYPEOFVALUES n, TYPEOFVALUES m) +{ + return (n >= 0) ? (n % m) : (m + (n % m)); +} + +TYPEOFVALUES I_0_0; +TYPEOFVALUES I_0_1; +TYPEOFVALUES I_1_0; +TYPEOFVALUES I_1_1; +TYPEOFVALUES I_2_0; +TYPEOFVALUES I_2_1; +TYPEOFVALUES getI(int i, int j) +{ + switch (i) + { + case 0: + return (j == 0) ? (I_0_0) : (I_0_1); + + case 1: + return (j == 0) ? (I_1_0) : (I_1_1); + + case 2: + return (j == 0) ? (I_2_0) : (I_2_1); + + default: + { + } + + } + +} + +TYPEOFTIME __LABS_time; +unsigned char pc_0_0; +unsigned char pc_1_0; +unsigned char pc_2_0; +TYPEOFVALUES getpc(int i, int j) +{ + switch (i) + { + case 0: + return pc_0_0; + + case 1: + return pc_1_0; + + case 2: + return pc_2_0; + + default: + { + } + + } + +} + +void setpc(int i, int j, unsigned char value) +{ + switch (i) + { + case 0: + pc_0_0 = value; + break; + + case 1: + pc_1_0 = value; + break; + + case 2: + pc_2_0 = value; + break; + + default: + { + } + + } + +} + +_Bool Hin_0_0; +_Bool Hin_1_0; +_Bool Hin_2_0; +TYPEOFVALUES getHin(int i, int j) +{ + switch (i) + { + case 0: + return Hin_0_0; + + case 1: + return Hin_1_0; + + case 2: + return Hin_2_0; + + default: + { + } + + } + +} + +_Bool Hout_0_0; +_Bool Hout_1_0; +_Bool Hout_2_0; +TYPEOFVALUES getHout(int i, int j) +{ + switch (i) + { + case 0: + return Hout_0_0; + + case 1: + return Hout_1_0; + + case 2: + return Hout_2_0; + + default: + { + } + + } + +} + +unsigned char HinCnt_0; +unsigned char HinCnt_1; +unsigned char HinCnt_2; +TYPEOFVALUES getHinCnt(int i) +{ + switch (i) + { + case 0: + return HinCnt_0; + + case 1: + return HinCnt_1; + + case 2: + return HinCnt_2; + + default: + { + } + + } + +} + +void setHinCnt(int i, unsigned char value) +{ + switch (i) + { + case 0: + HinCnt_0 = value; + break; + + case 1: + HinCnt_1 = value; + break; + + case 2: + HinCnt_2 = value; + break; + + default: + { + } + + } + +} + +unsigned char HoutCnt_0; +unsigned char HoutCnt_1; +unsigned char HoutCnt_2; +unsigned char getHoutCnt(int i) +{ + switch (i) + { + case 0: + return HoutCnt_0; + + case 1: + return HoutCnt_1; + + case 2: + return HoutCnt_2; + + default: + { + } + + } + +} + +void setHoutCnt(int i, unsigned char value) +{ + switch (i) + { + case 0: + HoutCnt_0 = value; + break; + + case 1: + HoutCnt_1 = value; + break; + + case 2: + HoutCnt_2 = value; + break; + + default: + { + } + + } + +} + +TYPEOFTIME now(void) +{ + return ++__LABS_time; +} + +TYPEOFVALUES Lvalue_0_0; +TYPEOFVALUES Lvalue_0_1; +TYPEOFVALUES Lvalue_1_0; +TYPEOFVALUES Lvalue_1_1; +TYPEOFVALUES Lvalue_2_0; +TYPEOFVALUES Lvalue_2_1; +TYPEOFVALUES Ltstamp_0_0; +TYPEOFVALUES Ltstamp_1_0; +TYPEOFVALUES Ltstamp_2_0; +const TYPEOFKEYLID tupleStart = 0; +const TYPEOFKEYLID tupleEnd = 1; +_Bool link(TYPEOFAGENTID __LABS_link1, TYPEOFAGENTID __LABS_link2, TYPEOFKEYLID key) +{ + //_Bool __LABS_link = 0; + if ((key >= 0) && (key <= 1)) + { + if ((((getI(__LABS_link1, 0) - getI(__LABS_link2, 0)) * (getI(__LABS_link1, 0) - getI(__LABS_link2, 0))) + ((getI(__LABS_link1, 1) - getI(__LABS_link2, 1)) * (getI(__LABS_link1, 1) - getI(__LABS_link2, 1)))) <= (5 * 5)) return 1; + } + + return 0; +} + +TYPEOFVALUES getLvalue(int i, int j) +{ + switch (i) + { + case 0: + return (j == 0) ? (Lvalue_0_0) : (Lvalue_0_1); + + case 1: + return (j == 0) ? (Lvalue_1_0) : (Lvalue_1_1); + + case 2: + return (j == 0) ? (Lvalue_2_0) : (Lvalue_2_1); + + default: + { + } + + } + +} + +void setLvalue(TYPEOFAGENTID id, TYPEOFKEYLID key, TYPEOFVALUES value) +{ + switch (id) + { + case 0: + if (key == 0) + { + Lvalue_0_0 = value; + } + else + { + Lvalue_0_1 = value; + } + + break; + + case 1: + if (key == 0) + { + Lvalue_1_0 = value; + } + else + { + Lvalue_1_1 = value; + } + + break; + + case 2: + if (key == 0) + { + Lvalue_2_0 = value; + } + else + { + Lvalue_2_1 = value; + } + + break; + + default: + { + } + + } + +} + +TYPEOFTIME getLtstamp(int i, int j) +{ + switch (i) + { + case 0: + return Ltstamp_0_0; + + case 1: + return Ltstamp_1_0; + + case 2: + return Ltstamp_2_0; + + default: + { + } + + } + +} + +void setLtstamp(TYPEOFAGENTID id, TYPEOFKEYLID key, TYPEOFVALUES value) +{ + switch (id) + { + case 0: + Ltstamp_0_0 = value; + break; + + case 1: + Ltstamp_1_0 = value; + break; + + case 2: + Ltstamp_2_0 = value; + break; + + default: + { + } + + } + +} + +TYPEOFTIME timeof(TYPEOFAGENTID id, TYPEOFKEYLID key) +{ + return getLtstamp(id, tupleStart); +} + +void setHin(TYPEOFAGENTID id, TYPEOFKEYLID key) +{ + setHinCnt(id, getHinCnt(id) + (!getHin(id, tupleStart))); + switch (id) + { + case 0: + Hin_0_0 = 1; + break; + + case 1: + Hin_1_0 = 1; + break; + + case 2: + Hin_2_0 = 1; + break; + + default: + { + } + + } + +} + +void clearHin(TYPEOFAGENTID id, TYPEOFKEYLID key) +{ + setHinCnt(id, getHinCnt(id) - getHin(id, tupleStart)); + switch (id) + { + case 0: + Hin_0_0 = 0; + break; + + case 1: + Hin_1_0 = 0; + break; + + case 2: + Hin_2_0 = 0; + break; + + default: + { + } + + } + +} + +void setHout(TYPEOFAGENTID id, TYPEOFKEYLID key) +{ + setHoutCnt(id, getHoutCnt(id) + (!getHout(id, tupleStart))); + switch (id) + { + case 0: + Hout_0_0 = 1; + break; + + case 1: + Hout_1_0 = 1; + break; + + case 2: + Hout_2_0 = 1; + break; + + default: + { + } + + } + +} + +void clearHout(TYPEOFAGENTID id, TYPEOFKEYLID key) +{ + setHoutCnt(id, getHoutCnt(id) - getHout(id, tupleStart)); + switch (id) + { + case 0: + Hout_0_0 = 0; + break; + + case 1: + Hout_1_0 = 0; + break; + + case 2: + Hout_2_0 = 0; + break; + + default: + { + } + + } + +} + +void attr(TYPEOFAGENTID id, TYPEOFKEYIID key, TYPEOFVALUES value, _Bool check) +{ + __VERIFIER_assume((!check) || (getHoutCnt(id) == 0)); + __VERIFIER_assume((!check) || (getHinCnt(id) == 0)); + switch (id) + { + case 0: + if (key == 0) + { + I_0_0 = value; + } + else + { + I_0_1 = value; + } + + break; + + case 1: + if (key == 0) + { + I_1_0 = value; + } + else + { + I_1_1 = value; + } + + break; + + case 2: + if (key == 0) + { + I_2_0 = value; + } + else + { + I_2_1 = value; + } + + break; + + default: + { + } + + } + + now(); +} + +void lstig(TYPEOFAGENTID id, TYPEOFKEYLID key, TYPEOFVALUES value, _Bool check) +{ + __VERIFIER_assume((!check) || (getHoutCnt(id) == 0)); + __VERIFIER_assume((!check) || (getHinCnt(id) == 0)); + setLvalue(id, key, value); + setHout(id, key); +} + +void confirm(void) +{ + TYPEOFAGENTID guessedcomp = __VERIFIER_nondet_int(); + TYPEOFKEYLID guessedkey = __VERIFIER_nondet_int(); + TYPEOFAGENTID i = __VERIFIER_nondet_int(); + TYPEOFKEYLID k = __VERIFIER_nondet_int(); + TYPEOFKEYLID next = __VERIFIER_nondet_int(); + TYPEOFTIME t = __VERIFIER_nondet_int(); + __VERIFIER_assume(guessedcomp < 3); + __VERIFIER_assume(getHinCnt(guessedcomp) > 0); + __VERIFIER_assume(guessedkey < 2); + __VERIFIER_assume(getHin(guessedcomp, guessedkey) == 1); + t = timeof(guessedcomp, guessedkey); + for (i = 0; i < 3; i++) + { + if (((guessedcomp != i) && (timeof(i, guessedkey) != t)) && link(guessedcomp, i, guessedkey)) + { + setHout(i, guessedkey); + if (timeof(i, guessedkey) < t) + { + clearHin(i, guessedkey); + for (k = 0; k < 2; k++) + { + next = guessedkey + k; + if (next <= tupleEnd) + setLvalue(i, next, getLvalue(guessedcomp, next)); + + } + + setLtstamp(i, guessedkey, t); + } + + } + + } + + clearHin(guessedcomp, guessedkey); +} + +void propagate(void) +{ + TYPEOFAGENTID guessedcomp = __VERIFIER_nondet_int(); + TYPEOFKEYLID guessedkey = __VERIFIER_nondet_int(); + TYPEOFAGENTID i = __VERIFIER_nondet_int(); + TYPEOFKEYLID k = __VERIFIER_nondet_int(); + TYPEOFKEYLID next = __VERIFIER_nondet_int(); + TYPEOFTIME t = __VERIFIER_nondet_int(); + __VERIFIER_assume(guessedcomp < 3); + __VERIFIER_assume(getHoutCnt(guessedcomp) > 0); + __VERIFIER_assume(guessedkey < 2); + __VERIFIER_assume(getHout(guessedcomp, guessedkey) == 1); + t = timeof(guessedcomp, guessedkey); + for (i = 0; i < 3; i++) + { + if (((guessedcomp != i) && (timeof(i, guessedkey) < t)) && link(guessedcomp, i, guessedkey)) + { + setHout(i, guessedkey); + clearHin(i, guessedkey); + for (k = 0; k < 2; k++) + { + next = guessedkey + k; + if (next <= tupleEnd) + setLvalue(i, next, getLvalue(guessedcomp, next)); + + } + + setLtstamp(i, guessedkey, t); + } + + } + + clearHout(guessedcomp, guessedkey); +} + +void init() +{ + Ltstamp_0_0 = 0; + Ltstamp_1_0 = 0; + Ltstamp_2_0 = 0; + Hin_0_0 = 0; + Hin_1_0 = 0; + Hin_2_0 = 0; + Hout_0_0 = 0; + Hout_1_0 = 0; + Hout_2_0 = 0; + HinCnt_0 = 0; + HinCnt_1 = 0; + HinCnt_2 = 0; + HoutCnt_0 = 0; + HoutCnt_1 = 0; + HoutCnt_2 = 0; + pc_0_0 = 2; + pc_1_0 = 2; + pc_2_0 = 2; + I_0_0 = __VERIFIER_nondet_int(); + I_0_1 = __VERIFIER_nondet_int(); + I_1_0 = __VERIFIER_nondet_int(); + I_1_1 = __VERIFIER_nondet_int(); + I_2_0 = __VERIFIER_nondet_int(); + I_2_1 = __VERIFIER_nondet_int(); + Lvalue_0_0 = __VERIFIER_nondet_int(); + Lvalue_0_1 = __VERIFIER_nondet_int(); + Lvalue_1_0 = __VERIFIER_nondet_int(); + Lvalue_1_1 = __VERIFIER_nondet_int(); + Lvalue_2_0 = __VERIFIER_nondet_int(); + Lvalue_2_1 = __VERIFIER_nondet_int(); + __VERIFIER_assume((Lvalue_0_0 == (-1)) || (Lvalue_0_0 == 1)); + __VERIFIER_assume((Lvalue_1_0 == (-1)) || (Lvalue_1_0 == 1)); + __VERIFIER_assume((Lvalue_2_0 == (-1)) || (Lvalue_2_0 == 1)); + __VERIFIER_assume((Lvalue_0_1 == (-1)) || (Lvalue_0_1 == 1)); + __VERIFIER_assume((Lvalue_1_1 == (-1)) || (Lvalue_1_1 == 1)); + __VERIFIER_assume((Lvalue_2_1 == (-1)) || (Lvalue_2_1 == 1)); + __VERIFIER_assume((I_0_0 >= 0) && (I_0_0 < (5 - 0))); + __VERIFIER_assume((I_1_0 >= 0) && (I_1_0 < (5 - 0))); + __VERIFIER_assume((I_2_0 >= 0) && (I_2_0 < (5 - 0))); + __VERIFIER_assume((I_0_1 >= 0) && (I_0_1 < (5 - 0))); + __VERIFIER_assume((I_1_1 >= 0) && (I_1_1 < (5 - 0))); + __VERIFIER_assume((I_2_1 >= 0) && (I_2_1 < (5 - 0))); + Ltstamp_0_0 = now(); + Ltstamp_1_0 = now(); + Ltstamp_2_0 = now(); + now(); +} + +void _0_2(int tid) +{ + TYPEOFVALUES val0 = mod(getI(tid, 0) + getLvalue(tid, 0), 5); + TYPEOFVALUES val1 = mod(getI(tid, 1) + getLvalue(tid, 1), 5); + attr(tid, 0, val0, 1); + attr(tid, 1, val1, 0); + setHin(tid, 0); + setHin(tid, 1); + setpc(tid, 0, 2); +} + +int main(void) +{ + TYPEOFAGENTID firstAgent = 0; + init(); + while (1) + { + if ((_Bool) __VERIFIER_nondet_int()) + { + switch (getpc(firstAgent, 0)) + { + case 2: + _0_2(firstAgent); + break; + + default: + { + } + + } + + if (firstAgent == (3 - 1)) + { + firstAgent = 0; + } + else + { + firstAgent++; + } + + } + else + { + _Bool propagate_or_confirm = __VERIFIER_nondet_int(); + if (propagate_or_confirm) + propagate(); + else + confirm(); + + } + + if ((((((((((((Lvalue_0_0 == Lvalue_0_0) && (Lvalue_0_1 == Lvalue_0_1)) && (Lvalue_0_0 == Lvalue_1_0)) && (Lvalue_0_1 == Lvalue_1_1)) && (Lvalue_0_0 == Lvalue_2_0)) && (Lvalue_0_1 == Lvalue_2_1)) && (Lvalue_1_0 == Lvalue_1_0)) && (Lvalue_1_1 == Lvalue_1_1)) && (Lvalue_1_0 == Lvalue_2_0)) && (Lvalue_1_1 == Lvalue_2_1)) && (Lvalue_2_0 == Lvalue_2_0)) && (Lvalue_2_1 == Lvalue_2_1)) + { + return 0; + } + + } + +} + + diff --git a/data/benchmarks/tpdb/C/Di_Stefano_20/flock_true-termination.c b/data/benchmarks/tpdb/C/Di_Stefano_20/flock_true-termination.c new file mode 100644 index 000000000..abda654de --- /dev/null +++ b/data/benchmarks/tpdb/C/Di_Stefano_20/flock_true-termination.c @@ -0,0 +1,302 @@ +/* + * Program used in the experimental evaluation of the following paper: + * De Nicola, Di Stefano, Inverso. Multi-Agent Systems With Virtual Stigmergies. Sci.Comp. Progr. 187, 2020 + * + * Date: 2020 + * Authors: Luca Di Stefano, Omar Inverso + * Contact: luca distefano gssi it + */ +extern int __VERIFIER_nondet_int(void); +typedef char TYPEOFVALUES; +typedef unsigned char TYPEOFPC; +typedef unsigned char TYPEOFTIME; +typedef unsigned char TYPEOFAGENTID; +typedef unsigned char TYPEOFKEYIID; +typedef unsigned char TYPEOFKEYLID; + +TYPEOFVALUES mod(TYPEOFVALUES n, TYPEOFVALUES m) +{ + //return (n >= 0) ? (n % m) : (m + (n % m)); + if (n >= 0) { + return n - (n/m*m); + } + else { + return m + (n-(n/m*m)); + } +} + +TYPEOFVALUES I[3][2]; +unsigned char pc[3][1]; +TYPEOFTIME __LABS_time; +_Bool Hin[3][2]; +_Bool Hout[3][2]; +unsigned char HinCnt[3]; +unsigned char HoutCnt[3]; +TYPEOFTIME now(void) +{ + return ++__LABS_time; +} + +TYPEOFVALUES Lvalue[3][2]; +TYPEOFTIME Ltstamp[3][2]; +const TYPEOFKEYLID tupleStart[2] = {0, 0}; +const TYPEOFKEYLID tupleEnd[2] = {1, 1}; +_Bool link(TYPEOFAGENTID __LABS_link1, TYPEOFAGENTID __LABS_link2, TYPEOFKEYLID key) +{ + _Bool __LABS_link = 0; + if ((key >= 0) && (key <= 1)) + { + __LABS_link = (((I[__LABS_link1][0] - I[__LABS_link2][0]) * (I[__LABS_link1][0] - I[__LABS_link2][0])) + ((I[__LABS_link1][1] - I[__LABS_link2][1]) * (I[__LABS_link1][1] - I[__LABS_link2][1]))) <= (5 * 5); + } + + return __LABS_link; +} + +TYPEOFTIME timeof(TYPEOFAGENTID id, TYPEOFKEYLID key) +{ + return Ltstamp[id][tupleStart[key]]; +} + +void setHin(TYPEOFAGENTID id, TYPEOFKEYLID key) +{ + HinCnt[id] = HinCnt[id] + (!Hin[id][tupleStart[key]]); + Hin[id][tupleStart[key]] = 1; +} + +void clearHin(TYPEOFAGENTID id, TYPEOFKEYLID key) +{ + HinCnt[id] = HinCnt[id] - Hin[id][tupleStart[key]]; + Hin[id][tupleStart[key]] = 0; +} + +void setHout(TYPEOFAGENTID id, TYPEOFKEYLID key) +{ + HoutCnt[id] = HoutCnt[id] + (!Hout[id][tupleStart[key]]); + Hout[id][tupleStart[key]] = 1; +} + +void clearHout(TYPEOFAGENTID id, TYPEOFKEYLID key) +{ + HoutCnt[id] = HoutCnt[id] - Hout[id][tupleStart[key]]; + Hout[id][tupleStart[key]] = 0; +} + +void attr(TYPEOFAGENTID id, TYPEOFKEYIID key, TYPEOFVALUES value, _Bool check) +{ + __VERIFIER_assume((!check) || (HoutCnt[id] == 0)); + __VERIFIER_assume((!check) || (HinCnt[id] == 0)); + I[id][key] = value; + now(); +} + +void lstig(TYPEOFAGENTID id, TYPEOFKEYLID key, TYPEOFVALUES value, _Bool check) +{ + __VERIFIER_assume((!check) || (HoutCnt[id] == 0)); + __VERIFIER_assume((!check) || (HinCnt[id] == 0)); + Lvalue[id][key] = value; + Ltstamp[id][tupleStart[key]] = now(); + setHout(id, key); +} + +void confirm(void) +{ + TYPEOFAGENTID guessedcomp = __VERIFIER_nondet_int(); + __VERIFIER_assume(guessedcomp < 3); + __VERIFIER_assume(HinCnt[guessedcomp] > 0); + TYPEOFKEYLID guessedkey = __VERIFIER_nondet_int(); + __VERIFIER_assume(guessedkey < 2); + __VERIFIER_assume(Hin[guessedcomp][guessedkey] == 1); + TYPEOFAGENTID i = __VERIFIER_nondet_int(); + TYPEOFTIME t = timeof(guessedcomp, guessedkey); + for (i = 0; i < 3; i++) + { + if (((guessedcomp != i) && (timeof(i, guessedkey) != t)) && link(guessedcomp, i, guessedkey)) + { + setHout(i, guessedkey); + if (timeof(i, guessedkey) < t) + { + TYPEOFKEYLID k = __VERIFIER_nondet_int(); + TYPEOFKEYLID next = __VERIFIER_nondet_int(); + clearHin(i, guessedkey); + for (k = 0; k < 2; k++) + { + next = guessedkey + k; + if (next <= tupleEnd[guessedkey]) + Lvalue[i][next] = Lvalue[guessedcomp][next]; + + } + + Ltstamp[i][guessedkey] = t; + } + + } + + } + + clearHin(guessedcomp, guessedkey); +} + +void propagate(void) +{ + TYPEOFAGENTID guessedcomp = __VERIFIER_nondet_int(); + __VERIFIER_assume(guessedcomp < 3); + __VERIFIER_assume(HoutCnt[guessedcomp] > 0); + TYPEOFKEYLID guessedkey = __VERIFIER_nondet_int(); + __VERIFIER_assume(guessedkey < 2); + __VERIFIER_assume(Hout[guessedcomp][guessedkey] == 1); + TYPEOFAGENTID i = __VERIFIER_nondet_int(); + TYPEOFTIME t = timeof(guessedcomp, guessedkey); + for (i = 0; i < 3; i++) + { + if (((guessedcomp != i) && (timeof(i, guessedkey) < t)) && link(guessedcomp, i, guessedkey)) + { + setHout(i, guessedkey); + clearHin(i, guessedkey); + TYPEOFKEYLID k = __VERIFIER_nondet_int(); + TYPEOFKEYLID next = __VERIFIER_nondet_int(); + for (k = 0; k < 2; k++) + { + next = guessedkey + k; + if (next <= tupleEnd[guessedkey]) + Lvalue[i][next] = Lvalue[guessedcomp][next]; + + } + + Ltstamp[i][guessedkey] = t; + } + + } + + clearHout(guessedcomp, guessedkey); +} + +void init() +{ + TYPEOFVALUES _I[3][2]; + TYPEOFPC _pc[3][1]; + TYPEOFVALUES _Lvalue[3][2]; + unsigned char i = __VERIFIER_nondet_int(); + unsigned char j = __VERIFIER_nondet_int(); + for (i = 0; i < 3; i++) + { + for (j = 0; j < 2; j++) + { + _I[i][j] = __VERIFIER_nondet_int(); + } + + for (j = 0; j < 2; j++) + { + _Lvalue[i][j] = __VERIFIER_nondet_int(); + Ltstamp[i][j] = 0; + Hin[i][j] = 0; + Hout[i][j] = 0; + } + + HinCnt[i] = 0; + HoutCnt[i] = 0; + } + + _pc[0][0] = 2; + _pc[1][0] = 2; + _pc[2][0] = 2; + __VERIFIER_assume((_Lvalue[0][0] == (-1)) || (_Lvalue[0][0] == 1)); + __VERIFIER_assume((_Lvalue[1][0] == (-1)) || (_Lvalue[1][0] == 1)); + __VERIFIER_assume((_Lvalue[2][0] == (-1)) || (_Lvalue[2][0] == 1)); + __VERIFIER_assume((_Lvalue[0][1] == (-1)) || (_Lvalue[0][1] == 1)); + __VERIFIER_assume((_Lvalue[1][1] == (-1)) || (_Lvalue[1][1] == 1)); + __VERIFIER_assume((_Lvalue[2][1] == (-1)) || (_Lvalue[2][1] == 1)); + __VERIFIER_assume((_I[0][0] >= 0) && (_I[0][0] < (5 - 0))); + __VERIFIER_assume((_I[1][0] >= 0) && (_I[1][0] < (5 - 0))); + __VERIFIER_assume((_I[2][0] >= 0) && (_I[2][0] < (5 - 0))); + __VERIFIER_assume((_I[0][1] >= 0) && (_I[0][1] < (5 - 0))); + __VERIFIER_assume((_I[1][1] >= 0) && (_I[1][1] < (5 - 0))); + __VERIFIER_assume((_I[2][1] >= 0) && (_I[2][1] < (5 - 0))); + Ltstamp[0][tupleStart[0]] = now(); + Ltstamp[1][tupleStart[0]] = now(); + Ltstamp[2][tupleStart[0]] = now(); + Ltstamp[0][tupleStart[1]] = now(); + Ltstamp[1][tupleStart[1]] = now(); + Ltstamp[2][tupleStart[1]] = now(); + now(); + + for (i = 0; i < 3; i++) + { + for (j = 0; j < 1; j++) + { + pc[i][j] = _pc[i][j]; + } + + for (j = 0; j < 2; j++) + { + I[i][j] = _I[i][j]; + } + + for (j = 0; j < 2; j++) + { + Lvalue[i][j] = _Lvalue[i][j]; + } + + } + +} + +void _0_2(int tid) +{ + TYPEOFVALUES val0 = mod(I[tid][0] + Lvalue[tid][0], 5); + TYPEOFVALUES val1 = mod(I[tid][1] + Lvalue[tid][1], 5); + attr(tid, 0, val0, 1); + attr(tid, 1, val1, 0); + setHin(tid, 0); + setHin(tid, 1); + pc[tid][0] = 2; +} + +int main(void) +{ + init(); + TYPEOFAGENTID firstAgent = 0; + while (1) + { + if ((_Bool) __VERIFIER_nondet_int()) + { + __VERIFIER_assume(firstAgent < 3); + switch (pc[firstAgent][0]) + { + case 2: + _0_2(firstAgent); + break; + + default: + __VERIFIER_assume(0); + + } + + if (firstAgent == (3 - 1)) + { + firstAgent = 0; + } + else + { + firstAgent++; + } + + } + else + { + _Bool propagate_or_confirm = __VERIFIER_nondet_int(); + if (propagate_or_confirm) + propagate(); + else + confirm(); + + } + if ((((((((((((Lvalue[0][0] == Lvalue[0][0]) && (Lvalue[0][1] == Lvalue[0][1])) && (Lvalue[0][0] == Lvalue[1][0])) && (Lvalue[0][1] == Lvalue[1][1])) && (Lvalue[0][0] == Lvalue[2][0])) && (Lvalue[0][1] == Lvalue[2][1])) && (Lvalue[1][0] == Lvalue[1][0])) && (Lvalue[1][1] == Lvalue[1][1])) && (Lvalue[1][0] == Lvalue[2][0])) && (Lvalue[1][1] == Lvalue[2][1])) && (Lvalue[2][0] == Lvalue[2][0])) && (Lvalue[2][1] == Lvalue[2][1])) + { + return 0; + } + + } + +} + + diff --git a/data/benchmarks/tpdb/C/Di_Stefano_20/formation-noarray_true-termination.c b/data/benchmarks/tpdb/C/Di_Stefano_20/formation-noarray_true-termination.c new file mode 100644 index 000000000..fdfaf24f7 --- /dev/null +++ b/data/benchmarks/tpdb/C/Di_Stefano_20/formation-noarray_true-termination.c @@ -0,0 +1,965 @@ +/* + * Date: 2020 + * Authors: Luca Di Stefano, Omar Inverso + * Contact: luca distefano gssi it + */ +extern int __VERIFIER_nondet_int(void); +typedef char TYPEOFVALUES; +typedef unsigned char TYPEOFPC; +typedef unsigned char TYPEOFTIME; +typedef unsigned char TYPEOFAGENTID; +typedef unsigned char TYPEOFKEYIID; +typedef unsigned char TYPEOFKEYLID; +TYPEOFVALUES __abs(TYPEOFVALUES x) +{ + return (x > 0) ? (x) : (-x); +} + + +TYPEOFVALUES I_0_0; +TYPEOFVALUES I_1_0; +TYPEOFVALUES I_2_0; +TYPEOFVALUES getI(TYPEOFAGENTID i, int j) +{ + switch (i) + { + case 0: + return I_0_0; + + case 1: + return I_1_0; + + case 2: + return I_2_0; + + default: + { + } + + } + +} + +TYPEOFPC pc_0_0; +TYPEOFPC pc_1_0; +TYPEOFPC pc_2_0; +TYPEOFVALUES getpc(TYPEOFAGENTID i, int j) +{ + switch (i) + { + case 0: + return pc_0_0; + + case 1: + return pc_1_0; + + case 2: + return pc_2_0; + + default: + { + } + + } + +} + +void setpc(TYPEOFAGENTID i, int j, TYPEOFPC value) +{ + switch (i) + { + case 0: + pc_0_0 = value; + break; + + case 1: + pc_1_0 = value; + break; + + case 2: + pc_2_0 = value; + break; + + default: + { + } + + } + +} + +TYPEOFTIME __LABS_time; +const TYPEOFKEYLID tupleStart_0 = 0; +const TYPEOFKEYLID tupleStart_1 = 1; +const TYPEOFKEYLID tupleEnd_0 = 0; +const TYPEOFKEYLID tupleEnd_1 = 1; +_Bool Hin_0_0; +_Bool Hin_0_1; +_Bool Hin_1_0; +_Bool Hin_1_1; +_Bool Hin_2_0; +_Bool Hin_2_1; +TYPEOFVALUES getHin(int i, int j) +{ + switch (i) + { + case 0: + return (j == 0) ? (Hin_0_0) : (Hin_0_1); + + case 1: + return (j == 0) ? (Hin_1_0) : (Hin_1_1); + + case 2: + return (j == 0) ? (Hin_2_0) : (Hin_2_1); + + default: + { + } + + } + +} + +_Bool Hout_0_0; +_Bool Hout_0_1; +_Bool Hout_1_0; +_Bool Hout_1_1; +_Bool Hout_2_0; +_Bool Hout_2_1; +TYPEOFVALUES getHout(int i, int j) +{ + switch (i) + { + case 0: + return (j == 0) ? (Hout_0_0) : (Hout_0_1); + + case 1: + return (j == 0) ? (Hout_1_0) : (Hout_1_1); + + case 2: + return (j == 0) ? (Hout_2_0) : (Hout_2_1); + + default: + { + } + + } + +} + +unsigned char HinCnt_0; +unsigned char HinCnt_1; +unsigned char HinCnt_2; +unsigned char HoutCnt_0; +unsigned char HoutCnt_1; +unsigned char HoutCnt_2; +TYPEOFVALUES getHinCnt(int i) +{ + switch (i) + { + case 0: + return HinCnt_0; + + case 1: + return HinCnt_1; + + case 2: + return HinCnt_2; + + default: + { + } + + } + +} + +void setHinCnt(int i, unsigned char value) +{ + switch (i) + { + case 0: + HinCnt_0 = value; + break; + + case 1: + HinCnt_1 = value; + break; + + case 2: + HinCnt_2 = value; + break; + + default: + { + } + + } + +} + +unsigned char getHoutCnt(int i) +{ + switch (i) + { + case 0: + return HoutCnt_0; + + case 1: + return HoutCnt_1; + + case 2: + return HoutCnt_2; + + default: + { + } + + } + +} + +void setHoutCnt(int i, unsigned char value) +{ + switch (i) + { + case 0: + HoutCnt_0 = value; + break; + + case 1: + HoutCnt_1 = value; + break; + + case 2: + HoutCnt_2 = value; + break; + + default: + { + } + + } + +} + +void setHin(TYPEOFAGENTID id, TYPEOFKEYLID key) +{ + if (key == 0) + setHinCnt(id, getHinCnt(id) + (!getHin(id, tupleStart_0))); + else + setHinCnt(id, getHinCnt(id) + (!getHin(id, tupleStart_1))); + + switch (id) + { + case 0: + switch (key) + { + case 0: + Hin_0_0 = 1; + break; + + case 1: + Hin_0_1 = 1; + break; + + } + + break; + + case 1: + switch (key) + { + case 0: + Hin_1_0 = 1; + break; + + case 1: + Hin_1_1 = 1; + break; + + } + + break; + + case 2: + switch (key) + { + case 0: + Hin_2_0 = 1; + break; + + case 1: + Hin_2_1 = 1; + break; + + } + + break; + + default: + { + } + + } + +} + +void clearHin(TYPEOFAGENTID id, TYPEOFKEYLID key) +{ + if (key == 0) + setHinCnt(id, getHinCnt(id) - getHin(id, tupleStart_0)); + else + setHinCnt(id, getHinCnt(id) - getHin(id, tupleStart_1)); + + switch (id) + { + case 0: + switch (key) + { + case 0: + Hin_0_0 = 0; + break; + + case 1: + Hin_0_1 = 0; + break; + + } + + break; + + case 1: + switch (key) + { + case 0: + Hin_1_0 = 0; + break; + + case 1: + Hin_1_1 = 0; + break; + + } + + break; + + case 2: + switch (key) + { + case 0: + Hin_2_0 = 0; + break; + + case 1: + Hin_2_1 = 0; + break; + + } + + break; + + default: + { + } + + } + +} + +void setHout(TYPEOFAGENTID id, TYPEOFKEYLID key) +{ + if (key == 0) + setHoutCnt(id, getHoutCnt(id) + (!getHout(id, tupleStart_0))); + else + setHoutCnt(id, getHoutCnt(id) + (!getHout(id, tupleStart_1))); + + switch (id) + { + case 0: + switch (key) + { + case 0: + Hout_0_0 = 1; + break; + + case 1: + Hout_0_1 = 1; + break; + + } + + break; + + case 1: + switch (key) + { + case 0: + Hout_1_0 = 1; + break; + + case 1: + Hout_1_1 = 1; + break; + + } + + break; + + case 2: + switch (key) + { + case 0: + Hout_2_0 = 1; + break; + + case 1: + Hout_2_1 = 1; + break; + + } + + break; + + default: + { + } + + } + +} + +void clearHout(TYPEOFAGENTID id, TYPEOFKEYLID key) +{ + if (key == 0) + setHoutCnt(id, getHoutCnt(id) - getHout(id, tupleStart_0)); + else + setHoutCnt(id, getHoutCnt(id) - getHout(id, tupleStart_1)); + + switch (id) + { + case 0: + switch (key) + { + case 0: + Hout_0_0 = 0; + break; + + case 1: + Hout_0_1 = 0; + break; + + } + + break; + + case 1: + switch (key) + { + case 0: + Hout_1_0 = 0; + break; + + case 1: + Hout_1_1 = 0; + break; + + } + + break; + + case 2: + switch (key) + { + case 0: + Hout_2_0 = 0; + break; + + case 1: + Hout_2_1 = 0; + break; + + } + + break; + + default: + { + } + + } + +} + +TYPEOFTIME now(void) +{ + return ++__LABS_time; +} + +TYPEOFVALUES Lvalue_0_0; +TYPEOFVALUES Lvalue_0_1; +TYPEOFVALUES Lvalue_1_0; +TYPEOFVALUES Lvalue_1_1; +TYPEOFVALUES Lvalue_2_0; +TYPEOFVALUES Lvalue_2_1; +TYPEOFVALUES Ltstamp_0_0; +TYPEOFVALUES Ltstamp_0_1; +TYPEOFVALUES Ltstamp_1_0; +TYPEOFVALUES Ltstamp_1_1; +TYPEOFVALUES Ltstamp_2_0; +TYPEOFVALUES Ltstamp_2_1; +TYPEOFVALUES getLvalue(int i, int j) +{ + switch (i) + { + case 0: + return (j == 0) ? (Lvalue_0_0) : (Lvalue_0_1); + + case 1: + return (j == 0) ? (Lvalue_1_0) : (Lvalue_1_1); + + case 2: + return (j == 0) ? (Lvalue_2_0) : (Lvalue_2_1); + + default: + { + } + + } + +} + +void setLvalue(TYPEOFAGENTID id, TYPEOFKEYLID key, TYPEOFVALUES value) +{ + switch (id) + { + case 0: + if (key == 0) + { + Lvalue_0_0 = value; + } + else + { + Lvalue_0_1 = value; + } + + break; + + case 1: + if (key == 0) + { + Lvalue_1_0 = value; + } + else + { + Lvalue_1_1 = value; + } + + break; + + case 2: + if (key == 0) + { + Lvalue_2_0 = value; + } + else + { + Lvalue_2_1 = value; + } + + break; + + default: + { + } + + } + +} + +TYPEOFTIME getLtstamp(int i, int j) +{ + switch (i) + { + case 0: + return (j == 0) ? (Ltstamp_0_0) : (Ltstamp_0_1); + + case 1: + return (j == 0) ? (Ltstamp_1_0) : (Ltstamp_1_1); + + case 2: + return (j == 0) ? (Ltstamp_2_0) : (Ltstamp_2_1); + + default: + { + } + + } + +} + +void setLtstamp(TYPEOFAGENTID id, TYPEOFKEYLID key, TYPEOFVALUES value) +{ + switch (id) + { + case 0: + if (key == 0) + { + Ltstamp_0_0 = value; + } + else + { + Ltstamp_0_1 = value; + } + + break; + + case 1: + if (key == 0) + { + Ltstamp_1_0 = value; + } + else + { + Ltstamp_1_1 = value; + } + + break; + + case 2: + if (key == 0) + { + Ltstamp_2_0 = value; + } + else + { + Ltstamp_2_1 = value; + } + + break; + + default: + { + } + + } + +} + +TYPEOFTIME timeof(TYPEOFAGENTID id, TYPEOFKEYLID key) +{ + return getLtstamp(id, key); +} + +TYPEOFKEYLID getTupleStart(int i) +{ + return (i == 0) ? (tupleStart_0) : (tupleStart_1); +} + +TYPEOFKEYLID getTupleEnd(int i) +{ + return (i == 0) ? (tupleEnd_0) : (tupleEnd_1); +} + +_Bool link(TYPEOFAGENTID __LABS_link1, TYPEOFAGENTID __LABS_link2, TYPEOFKEYLID key) +{ + _Bool __LABS_link = 0; + if ((key >= 0) && (key <= 0)) + { + __LABS_link = ((getI(__LABS_link1, 0) - getI(__LABS_link2, 0)) >= 0) && ((getI(__LABS_link1, 0) - getI(__LABS_link2, 0)) <= 2); + } + else + if ((key >= 1) && (key <= 1)) + { + __LABS_link = ((getI(__LABS_link2, 0) - getI(__LABS_link1, 0)) > 0) && ((getI(__LABS_link2, 0) - getI(__LABS_link1, 0)) <= 2); + } + + + return __LABS_link; +} + +void attr(TYPEOFAGENTID id, TYPEOFKEYIID key, TYPEOFVALUES value, _Bool check) +{ + __VERIFIER_assume((!check) || (getHoutCnt(id) == 0)); + __VERIFIER_assume((!check) || (getHinCnt(id) == 0)); + switch (id) + { + case 0: + I_0_0 = value; + break; + + case 1: + I_1_0 = value; + break; + + case 2: + I_2_0 = value; + break; + + } + + now(); +} + +void lstig(TYPEOFAGENTID id, TYPEOFKEYLID key, TYPEOFVALUES value, _Bool check) +{ + __VERIFIER_assume((!check) || (getHoutCnt(id) == 0)); + __VERIFIER_assume((!check) || (getHinCnt(id) == 0)); + setLvalue(id, key, value); + if (key == 0) + setLtstamp(id, tupleStart_0, now()); + else + setLtstamp(id, tupleStart_1, now()); + + setHout(id, key); +} + +_Bool differentLstig(TYPEOFAGENTID comp1, TYPEOFAGENTID comp2, TYPEOFKEYLID key) +{ + TYPEOFKEYLID k = (key == 0) ? (tupleStart_0) : (tupleStart_1); + return (getLvalue(comp1, k) != getLvalue(comp1, k)) || (getLtstamp(comp1, k) != getLtstamp(comp2, k)); +} + +void confirm(void) +{ + TYPEOFAGENTID guessedcomp = __VERIFIER_nondet_int(); + __VERIFIER_assume(guessedcomp < 3); + __VERIFIER_assume(getHinCnt(guessedcomp) > 0); + TYPEOFKEYLID guessedkey = __VERIFIER_nondet_int(); + __VERIFIER_assume(guessedkey < 2); + __VERIFIER_assume(getHin(guessedcomp, guessedkey) == 1); + TYPEOFAGENTID i = __VERIFIER_nondet_int(); + TYPEOFTIME t = timeof(guessedcomp, guessedkey); + for (i = 0; i < 3; i++) + { + if (((guessedcomp != i) && (timeof(i, guessedkey) != t)) && link(guessedcomp, i, guessedkey)) + { + setHout(i, guessedkey); + if (timeof(i, guessedkey) < t) + { + TYPEOFKEYLID k = __VERIFIER_nondet_int(); + TYPEOFKEYLID next = __VERIFIER_nondet_int(); + clearHin(i, guessedkey); + for (k = 0; k < 1; k++) + { + next = guessedkey + k; + if (next <= getTupleEnd(guessedkey)) + setLvalue(i, next, getLvalue(guessedcomp, next)); + + } + + setLtstamp(i, guessedkey, t); + } + + } + + } + + clearHin(guessedcomp, guessedkey); +} + +void propagate(void) +{ + TYPEOFAGENTID guessedcomp = __VERIFIER_nondet_int(); + __VERIFIER_assume(guessedcomp < 3); + __VERIFIER_assume(getHoutCnt(guessedcomp) > 0); + TYPEOFKEYLID guessedkey = __VERIFIER_nondet_int(); + __VERIFIER_assume(guessedkey < 2); + __VERIFIER_assume(getHout(guessedcomp, guessedkey) == 1); + TYPEOFAGENTID i = __VERIFIER_nondet_int(); + TYPEOFTIME t = timeof(guessedcomp, guessedkey); + for (i = 0; i < 3; i++) + { + if (((guessedcomp != i) && (timeof(i, guessedkey) < t)) && link(guessedcomp, i, guessedkey)) + { + setHout(i, guessedkey); + clearHin(i, guessedkey); + TYPEOFKEYLID k = __VERIFIER_nondet_int(); + TYPEOFKEYLID next = __VERIFIER_nondet_int(); + for (k = 0; k < 1; k++) + { + next = guessedkey + k; + if (next <= getTupleEnd(guessedkey)) + setLvalue(i, next, getLvalue(guessedcomp, next)); + + } + + setLtstamp(i, guessedkey, t); + } + + } + + clearHout(guessedcomp, guessedkey); +} + +void init() +{ + Ltstamp_0_0 = 0; + Ltstamp_0_1 = 0; + Ltstamp_1_0 = 0; + Ltstamp_1_1 = 0; + Ltstamp_2_0 = 0; + Ltstamp_2_1 = 0; + Hin_0_0 = 0; + Hin_0_1 = 0; + Hin_1_0 = 0; + Hin_1_1 = 0; + Hin_2_0 = 0; + Hin_2_1 = 0; + Hout_0_0 = 0; + Hout_0_1 = 0; + Hout_1_0 = 0; + Hout_1_1 = 0; + Hout_2_0 = 0; + Hout_2_1 = 0; + HinCnt_0 = 0; + HinCnt_1 = 0; + HinCnt_2 = 0; + HoutCnt_0 = 0; + HoutCnt_1 = 0; + HoutCnt_2 = 0; + pc_0_0 = 6; + pc_1_0 = 6; + pc_2_0 = 6; + Lvalue_0_0 = -128; + Lvalue_1_0 = -128; + Lvalue_2_0 = -128; + Lvalue_0_1 = -128; + Lvalue_1_1 = -128; + Lvalue_2_1 = -128; + int i00 = __VERIFIER_nondet_int(); + __VERIFIER_assume((i00 >= 1) && (i00 < 10)); + I_0_0 = i00; + int i10 = __VERIFIER_nondet_int(); + __VERIFIER_assume((i10 >= 1) && (i10 < 10)); + I_1_0 = i10; + int i20 = __VERIFIER_nondet_int(); + __VERIFIER_assume((i20 >= 1) && (i20 < 10)); + I_2_0 = i20; + Ltstamp_0_0 = now(); + Ltstamp_0_1 = now(); + Ltstamp_1_0 = now(); + Ltstamp_1_1 = now(); + Ltstamp_2_0 = now(); + Ltstamp_2_1 = now(); + now(); +} + +void _0_2(int tid) +{ + __VERIFIER_assume((getLvalue(tid, 0) != tid) && (getLvalue(tid, 0) != (-128))); + __VERIFIER_assume(getI(tid, 0) > 0); + TYPEOFVALUES val0 = getI(tid, 0) - 1; + attr(tid, 0, val0, 1); + setHin(tid, 0); + setpc(tid, 0, 6); +} + +void _0_3(int tid) +{ + __VERIFIER_assume((getLvalue(tid, 0) != tid) && (getLvalue(tid, 0) != (-128))); + __VERIFIER_assume(getI(tid, 0) == 0); + TYPEOFVALUES val0 = getI(tid, 0) + 1; + attr(tid, 0, val0, 1); + setHin(tid, 0); + setpc(tid, 0, 6); +} + +void _0_4(int tid) +{ + __VERIFIER_assume((getLvalue(tid, 1) != tid) && (getLvalue(tid, 1) != (-128))); + __VERIFIER_assume(getI(tid, 0) < (10 - 1)); + TYPEOFVALUES val0 = getI(tid, 0) + 1; + attr(tid, 0, val0, 1); + setHin(tid, 1); + setpc(tid, 0, 6); +} + +void _0_5(int tid) +{ + __VERIFIER_assume((getLvalue(tid, 1) != tid) && (getLvalue(tid, 1) != (-128))); + __VERIFIER_assume(getI(tid, 0) == (10 - 1)); + TYPEOFVALUES val0 = getI(tid, 0) - 1; + attr(tid, 0, val0, 1); + setHin(tid, 1); + setpc(tid, 0, 6); +} + +void _0_6(int tid) +{ + TYPEOFVALUES val0 = tid; + TYPEOFVALUES val1 = tid; + lstig(tid, 0, val0, 1); + lstig(tid, 1, val1, 0); + TYPEOFPC pc0 = __VERIFIER_nondet_int(); + __VERIFIER_assume((((pc0 == 2) || (pc0 == 3)) || (pc0 == 4)) || (pc0 == 5)); + setpc(tid, 0, pc0); +} + +int main(void) +{ + init(); + TYPEOFAGENTID firstAgent = 0; + while (1) + { + if ((_Bool) __VERIFIER_nondet_int()) + { + __VERIFIER_assume(firstAgent < 3); + switch (getpc(firstAgent, 0)) + { + case 2: + _0_2(firstAgent); + break; + + case 3: + _0_3(firstAgent); + break; + + case 4: + _0_4(firstAgent); + break; + + case 5: + _0_5(firstAgent); + break; + + case 6: + _0_6(firstAgent); + break; + + default: + { + } + + } + + if (firstAgent == (3 - 1)) + { + firstAgent = 0; + } + else + { + firstAgent++; + } + + } + else + { + _Bool propagate_or_confirm = __VERIFIER_nondet_int(); + if (propagate_or_confirm) + propagate(); + else + confirm(); + + } + + if (((((((0 == 1) || (__abs(getI(0, 0) - getI(1, 0)) >= 2)) && ((0 == 2) || (__abs(getI(0, 0) - getI(2, 0)) >= 2))) && ((1 == 0) || (__abs(getI(1, 0) - getI(0, 0)) >= 2))) && ((1 == 2) || (__abs(getI(1, 0) - getI(2, 0)) >= 2))) && ((2 == 0) || (__abs(getI(2, 0) - getI(0, 0)) >= 2))) && ((2 == 1) || (__abs(getI(2, 0) - getI(1, 0)) >= 2))) + { + return 0; + } + + } + +} + + diff --git a/data/benchmarks/tpdb/C/Di_Stefano_20/formation_true-termination.c b/data/benchmarks/tpdb/C/Di_Stefano_20/formation_true-termination.c new file mode 100644 index 000000000..9747b0bcf --- /dev/null +++ b/data/benchmarks/tpdb/C/Di_Stefano_20/formation_true-termination.c @@ -0,0 +1,347 @@ +/* + * Date: 2020 + * Authors: Luca Di Stefano, Omar Inverso + * Contact: luca distefano gssi it + */ +extern int __VERIFIER_nondet_int(void); +typedef char TYPEOFVALUES; +typedef unsigned char TYPEOFPC; +typedef unsigned char TYPEOFTIME; +typedef unsigned char TYPEOFAGENTID; +typedef unsigned char TYPEOFKEYIID; +typedef unsigned char TYPEOFKEYLID; +TYPEOFVALUES __abs(TYPEOFVALUES x) +{ + return (x > 0) ? (x) : (-x); +} + +TYPEOFVALUES I[3][1]; +TYPEOFPC pc[3][1]; +TYPEOFTIME __LABS_time; +_Bool Hin[3][2]; +_Bool Hout[3][2]; +unsigned char HinCnt[3]; +unsigned char HoutCnt[3]; +TYPEOFTIME now(void) +{ + return ++__LABS_time; +} + +TYPEOFVALUES Lvalue[3][2]; +TYPEOFTIME Ltstamp[3][2]; +const TYPEOFKEYLID tupleStart[2] = {0, 1}; +const TYPEOFKEYLID tupleEnd[2] = {0, 1}; +_Bool link(TYPEOFAGENTID __LABS_link1, TYPEOFAGENTID __LABS_link2, TYPEOFKEYLID key) +{ + _Bool __LABS_link = 0; + if ((key >= 0) && (key <= 0)) + { + __LABS_link = ((I[__LABS_link1][0] - I[__LABS_link2][0]) >= 0) && ((I[__LABS_link1][0] - I[__LABS_link2][0]) <= 2); + } + else + if ((key >= 1) && (key <= 1)) + { + __LABS_link = ((I[__LABS_link2][0] - I[__LABS_link1][0]) > 0) && ((I[__LABS_link2][0] - I[__LABS_link1][0]) <= 2); + } + + + return __LABS_link; +} + +TYPEOFTIME timeof(TYPEOFAGENTID id, TYPEOFKEYLID key) +{ + return Ltstamp[id][tupleStart[key]]; +} + +void setHin(TYPEOFAGENTID id, TYPEOFKEYLID key) +{ + HinCnt[id] = HinCnt[id] + (!Hin[id][tupleStart[key]]); + Hin[id][tupleStart[key]] = 1; +} + +void clearHin(TYPEOFAGENTID id, TYPEOFKEYLID key) +{ + HinCnt[id] = HinCnt[id] - Hin[id][tupleStart[key]]; + Hin[id][tupleStart[key]] = 0; +} + +void setHout(TYPEOFAGENTID id, TYPEOFKEYLID key) +{ + HoutCnt[id] = HoutCnt[id] + (!Hout[id][tupleStart[key]]); + Hout[id][tupleStart[key]] = 1; +} + +void clearHout(TYPEOFAGENTID id, TYPEOFKEYLID key) +{ + HoutCnt[id] = HoutCnt[id] - Hout[id][tupleStart[key]]; + Hout[id][tupleStart[key]] = 0; +} + +void attr(TYPEOFAGENTID id, TYPEOFKEYIID key, TYPEOFVALUES value, _Bool check) +{ + __VERIFIER_assume((!check) || (HoutCnt[id] == 0)); + __VERIFIER_assume((!check) || (HinCnt[id] == 0)); + I[id][key] = value; + now(); +} + +void lstig(TYPEOFAGENTID id, TYPEOFKEYLID key, TYPEOFVALUES value, _Bool check) +{ + __VERIFIER_assume((!check) || (HoutCnt[id] == 0)); + __VERIFIER_assume((!check) || (HinCnt[id] == 0)); + Lvalue[id][key] = value; + Ltstamp[id][tupleStart[key]] = now(); + setHout(id, key); +} + +void confirm(void) +{ + TYPEOFAGENTID guessedcomp = __VERIFIER_nondet_int(); + __VERIFIER_assume(guessedcomp < 3); + __VERIFIER_assume(HinCnt[guessedcomp] > 0); + TYPEOFKEYLID guessedkey = __VERIFIER_nondet_int(); + __VERIFIER_assume(guessedkey < 2); + __VERIFIER_assume(Hin[guessedcomp][guessedkey] == 1); + TYPEOFAGENTID i = __VERIFIER_nondet_int(); + TYPEOFTIME t = timeof(guessedcomp, guessedkey); + for (i = 0; i < 3; i++) + { + if (((guessedcomp != i) && (timeof(i, guessedkey) != t)) && link(guessedcomp, i, guessedkey)) + { + setHout(i, guessedkey); + if (timeof(i, guessedkey) < t) + { + TYPEOFKEYLID k = __VERIFIER_nondet_int(); + TYPEOFKEYLID next = __VERIFIER_nondet_int(); + clearHin(i, guessedkey); + for (k = 0; k < 1; k++) + { + next = guessedkey + k; + if (next <= tupleEnd[guessedkey]) + Lvalue[i][next] = Lvalue[guessedcomp][next]; + + } + + Ltstamp[i][guessedkey] = t; + } + + } + + } + + clearHin(guessedcomp, guessedkey); +} + +void propagate(void) +{ + TYPEOFAGENTID guessedcomp = __VERIFIER_nondet_int(); + __VERIFIER_assume(guessedcomp < 3); + __VERIFIER_assume(HoutCnt[guessedcomp] > 0); + TYPEOFKEYLID guessedkey = __VERIFIER_nondet_int(); + __VERIFIER_assume(guessedkey < 2); + __VERIFIER_assume(Hout[guessedcomp][guessedkey] == 1); + TYPEOFAGENTID i = __VERIFIER_nondet_int(); + TYPEOFTIME t = timeof(guessedcomp, guessedkey); + for (i = 0; i < 3; i++) + { + if (((guessedcomp != i) && (timeof(i, guessedkey) < t)) && link(guessedcomp, i, guessedkey)) + { + setHout(i, guessedkey); + clearHin(i, guessedkey); + TYPEOFKEYLID k = __VERIFIER_nondet_int(); + TYPEOFKEYLID next = __VERIFIER_nondet_int(); + for (k = 0; k < 1; k++) + { + next = guessedkey + k; + if (next <= tupleEnd[guessedkey]) + Lvalue[i][next] = Lvalue[guessedcomp][next]; + + } + + Ltstamp[i][guessedkey] = t; + } + + } + + clearHout(guessedcomp, guessedkey); +} + +void init() +{ + TYPEOFVALUES _I[3][1]; + TYPEOFPC _pc[3][1]; + TYPEOFVALUES _Lvalue[3][2]; + unsigned char i = __VERIFIER_nondet_int(); + unsigned char j = __VERIFIER_nondet_int(); + for (i = 0; i < 3; i++) + { + for (j = 0; j < 2; j++) + { + Ltstamp[i][j] = 0; + Hin[i][j] = 0; + Hout[i][j] = 0; + } + + HinCnt[i] = 0; + HoutCnt[i] = 0; + } + + _pc[0][0] = 6; + _pc[1][0] = 6; + _pc[2][0] = 6; + __VERIFIER_assume(_Lvalue[0][0] == (-128)); + __VERIFIER_assume(_Lvalue[1][0] == (-128)); + __VERIFIER_assume(_Lvalue[2][0] == (-128)); + __VERIFIER_assume(_Lvalue[0][1] == (-128)); + __VERIFIER_assume(_Lvalue[1][1] == (-128)); + __VERIFIER_assume(_Lvalue[2][1] == (-128)); + __VERIFIER_assume((_I[0][0] >= 1) && (_I[0][0] < 10)); + __VERIFIER_assume((_I[1][0] >= 1) && (_I[1][0] < 10)); + __VERIFIER_assume((_I[2][0] >= 1) && (_I[2][0] < 10)); + Ltstamp[0][tupleStart[0]] = now(); + Ltstamp[1][tupleStart[0]] = now(); + Ltstamp[2][tupleStart[0]] = now(); + Ltstamp[0][tupleStart[1]] = now(); + Ltstamp[1][tupleStart[1]] = now(); + Ltstamp[2][tupleStart[1]] = now(); + now(); + + for (i = 0; i < 3; i++) + { + for (j = 0; j < 1; j++) + { + pc[i][j] = _pc[i][j]; + } + + for (j = 0; j < 1; j++) + { + I[i][j] = _I[i][j]; + } + + for (j = 0; j < 2; j++) + { + Lvalue[i][j] = _Lvalue[i][j]; + } + + } + +} + +void _0_2(int tid) +{ + __VERIFIER_assume((Lvalue[tid][0] != tid) && (Lvalue[tid][0] != (-128))); + __VERIFIER_assume(I[tid][0] > 0); + TYPEOFVALUES val0 = I[tid][0] - 1; + attr(tid, 0, val0, 1); + setHin(tid, 0); + pc[tid][0] = 6; +} + +void _0_3(int tid) +{ + __VERIFIER_assume((Lvalue[tid][0] != tid) && (Lvalue[tid][0] != (-128))); + __VERIFIER_assume(I[tid][0] == 0); + TYPEOFVALUES val0 = I[tid][0] + 1; + attr(tid, 0, val0, 1); + setHin(tid, 0); + pc[tid][0] = 6; +} + +void _0_4(int tid) +{ + __VERIFIER_assume((Lvalue[tid][1] != tid) && (Lvalue[tid][1] != (-128))); + __VERIFIER_assume(I[tid][0] < (10 - 1)); + TYPEOFVALUES val0 = I[tid][0] + 1; + attr(tid, 0, val0, 1); + setHin(tid, 1); + pc[tid][0] = 6; +} + +void _0_5(int tid) +{ + __VERIFIER_assume((Lvalue[tid][1] != tid) && (Lvalue[tid][1] != (-128))); + __VERIFIER_assume(I[tid][0] == (10 - 1)); + TYPEOFVALUES val0 = I[tid][0] - 1; + attr(tid, 0, val0, 1); + setHin(tid, 1); + pc[tid][0] = 6; +} + +void _0_6(int tid) +{ + TYPEOFVALUES val0 = tid; + TYPEOFVALUES val1 = tid; + lstig(tid, 0, val0, 1); + lstig(tid, 1, val1, 0); + TYPEOFPC pc0 = __VERIFIER_nondet_int(); + __VERIFIER_assume((((pc0 == 2) || (pc0 == 3)) || (pc0 == 4)) || (pc0 == 5)); + pc[tid][0] = pc0; +} + +int main(void) +{ + init(); + TYPEOFAGENTID firstAgent = 0; + while (1) + { + if ((_Bool) __VERIFIER_nondet_int()) + { + __VERIFIER_assume(firstAgent < 3); + switch (pc[firstAgent][0]) + { + case 2: + _0_2(firstAgent); + break; + + case 3: + _0_3(firstAgent); + break; + + case 4: + _0_4(firstAgent); + break; + + case 5: + _0_5(firstAgent); + break; + + case 6: + _0_6(firstAgent); + break; + + default: + { + } + + } + + if (firstAgent == (3 - 1)) + { + firstAgent = 0; + } + else + { + firstAgent++; + } + + } + else + { + _Bool propagate_or_confirm = __VERIFIER_nondet_int(); + if (propagate_or_confirm) + propagate(); + else + confirm(); + + } + + if (((((((0 == 1) || (__abs(I[0][0] - I[1][0]) >= 2)) && ((0 == 2) || (__abs(I[0][0] - I[2][0]) >= 2))) && ((1 == 0) || (__abs(I[1][0] - I[0][0]) >= 2))) && ((1 == 2) || (__abs(I[1][0] - I[2][0]) >= 2))) && ((2 == 0) || (__abs(I[2][0] - I[0][0]) >= 2))) && ((2 == 1) || (__abs(I[2][0] - I[1][0]) >= 2))) + { + return 0; + } + + } + +} + + diff --git a/data/benchmarks/tpdb/C/Di_Stefano_20/majority-noarray_true-termination.c b/data/benchmarks/tpdb/C/Di_Stefano_20/majority-noarray_true-termination.c new file mode 100644 index 000000000..40f94c1f9 --- /dev/null +++ b/data/benchmarks/tpdb/C/Di_Stefano_20/majority-noarray_true-termination.c @@ -0,0 +1,460 @@ +/* + * Program used in the experimental evaluation of the following paper: + * De Nicola, Di Stefano, Inverso. Multi-Agent Systems With Virtual Stigmergies. Sci.Comp. Progr. 187, 2020 + * + * Date: 2020 + * Authors: Luca Di Stefano, Omar Inverso + * Contact: luca distefano gssi it + */ +extern int __VERIFIER_nondet_int(void); +typedef char TYPEOFVALUES; +typedef unsigned char TYPEOFPC; +typedef unsigned char TYPEOFAGENTID; +typedef unsigned char TYPEOFKEYIID; +typedef unsigned char TYPEOFKEYEID; +TYPEOFVALUES I_0; +TYPEOFVALUES I_1; +TYPEOFVALUES I_2; +TYPEOFVALUES E_0; +TYPEOFVALUES E_1; +TYPEOFVALUES E_2; +TYPEOFVALUES E_3; +unsigned char pc_0; +unsigned char pc_1; +unsigned char pc_2; +TYPEOFVALUES _I_21_1_0; +TYPEOFVALUES _I_21_1_1; +TYPEOFVALUES _I_21_1_2; +TYPEOFVALUES _E_21_1_0; +TYPEOFVALUES _E_21_1_1; +TYPEOFVALUES _E_21_1_2; +TYPEOFVALUES _E_21_1_3; +TYPEOFPC _pc_21_1_0; +TYPEOFPC _pc_21_1_1; +TYPEOFPC _pc_21_1_2; +void setpc(int x0, int x1, unsigned value) +{ + switch ((3 * x0) + x1) + { + case 0: + pc_0 = value; + break; + + case 1: + pc_1 = value; + break; + + case 2: + pc_2 = value; + break; + + } + +} + +TYPEOFVALUES getE(int x0) +{ + switch (x0) + { + case 0: + return E_0; + + case 1: + return E_1; + + case 2: + return E_2; + + case 3: + return E_3; + + } + +} + +TYPEOFVALUES get_I_21_1(int x0, int x1) +{ + switch ((3 * x0) + x1) + { + case 0: + return _I_21_1_0; + + case 1: + return _I_21_1_1; + + case 2: + return _I_21_1_2; + + } + +} + +TYPEOFPC get_pc_21_1(int x0, int x1) +{ + switch ((3 * x0) + x1) + { + case 0: + return _pc_21_1_0; + + case 1: + return _pc_21_1_1; + + case 2: + return _pc_21_1_2; + + } + +} + +unsigned char getpc(int x0, int x1) +{ + switch ((3 * x0) + x1) + { + case 0: + return pc_0; + + case 1: + return pc_1; + + case 2: + return pc_2; + + } + +} + +TYPEOFVALUES get_E_21_1(int x0) +{ + switch (x0) + { + case 0: + return _E_21_1_0; + + case 1: + return _E_21_1_1; + + case 2: + return _E_21_1_2; + + case 3: + return _E_21_1_3; + + } + +} + +TYPEOFVALUES getI(int x0, int x1) +{ + switch ((3 * x0) + x1) + { + case 0: + return I_0; + + case 1: + return I_1; + + case 2: + return I_2; + + } + +} + +void setI(int x0, int x1, TYPEOFVALUES value) +{ + switch ((3 * x0) + x1) + { + case 0: + I_0 = value; + break; + + case 1: + I_1 = value; + break; + + case 2: + I_2 = value; + break; + + } + +} + +void attr(TYPEOFAGENTID id, TYPEOFKEYIID key, TYPEOFVALUES value, _Bool check) +{ + setI(id, key, value); +} + +void _0_13(int tid) +{ + __VERIFIER_assume(getE(0) != tid); + __VERIFIER_assume(getE(1) == 1); + __VERIFIER_assume((getE(2) == 3) && (getI(tid, 0) == 2)); + TYPEOFVALUES val0 = 3; + attr(tid, 0, val0, 1); + setpc(tid, 0, 12); +} + +void _0_6(int tid) +{ + TYPEOFVALUES val0 = 2; + attr(tid, 0, val0, 1); + setpc(tid, 0, 5); +} + +void _0_3(int tid) +{ + __VERIFIER_assume((getE(1) == 2) && (getE(0) == tid)); + __VERIFIER_assume((getI(tid, 0) == 1) && (getE(3) == 0)); + TYPEOFVALUES val0 = 3; + attr(tid, 0, val0, 1); + setpc(tid, 0, 2); +} + +void _0_11(int tid) +{ + __VERIFIER_assume(getE(0) != tid); + __VERIFIER_assume(getE(1) == 1); + __VERIFIER_assume((getE(2) == 0) && (getI(tid, 0) == 3)); + TYPEOFVALUES val0 = 2; + attr(tid, 0, val0, 1); + setpc(tid, 0, 10); +} + +void _0_9(int tid) +{ + __VERIFIER_assume(getE(0) != tid); + __VERIFIER_assume(getE(1) == 1); + __VERIFIER_assume((getE(2) == 1) && (getI(tid, 0) == 2)); + TYPEOFVALUES val0 = 3; + attr(tid, 0, val0, 1); + setpc(tid, 0, 8); +} + +void setE(int x0, TYPEOFVALUES value) +{ + switch (x0) + { + case 0: + E_0 = value; + break; + + case 1: + E_1 = value; + break; + + case 2: + E_2 = value; + break; + + case 3: + E_3 = value; + break; + + } + +} + +void init() +{ + ; + ; + ; + unsigned char i = __VERIFIER_nondet_int(); + unsigned char j = __VERIFIER_nondet_int(); + __VERIFIER_assume((((((get_pc_21_1(0, 0) == 3) || (get_pc_21_1(0, 0) == 4)) || (get_pc_21_1(0, 0) == 7)) || (get_pc_21_1(0, 0) == 9)) || (get_pc_21_1(0, 0) == 11)) || (get_pc_21_1(0, 0) == 13)); + __VERIFIER_assume((((((get_pc_21_1(1, 0) == 3) || (get_pc_21_1(1, 0) == 4)) || (get_pc_21_1(1, 0) == 7)) || (get_pc_21_1(1, 0) == 9)) || (get_pc_21_1(1, 0) == 11)) || (get_pc_21_1(1, 0) == 13)); + __VERIFIER_assume((((((get_pc_21_1(2, 0) == 3) || (get_pc_21_1(2, 0) == 4)) || (get_pc_21_1(2, 0) == 7)) || (get_pc_21_1(2, 0) == 9)) || (get_pc_21_1(2, 0) == 11)) || (get_pc_21_1(2, 0) == 13)); + __VERIFIER_assume(get_E_21_1(0) == (-1)); + __VERIFIER_assume(get_E_21_1(1) == 0); + __VERIFIER_assume(get_E_21_1(2) == (-1)); + __VERIFIER_assume(get_E_21_1(3) == (-1)); + __VERIFIER_assume(get_I_21_1(0, 0) == 0); + __VERIFIER_assume(get_I_21_1(1, 0) == 0); + __VERIFIER_assume(get_I_21_1(2, 0) == 1); + for (i = 0; i < 4; i++) + { + setE(i, get_E_21_1(i)); + } + + for (i = 0; i < 3; i++) + { + for (j = 0; j < 1; j++) + { + setpc(i, j, get_pc_21_1(i, j)); + } + + for (j = 0; j < 1; j++) + { + setI(i, j, get_I_21_1(i, j)); + } + + } + +} + +void env(TYPEOFAGENTID id, TYPEOFKEYEID key, TYPEOFVALUES value, _Bool check) +{ + setE(key, value); +} + +void _0_7(int tid) +{ + __VERIFIER_assume(getE(0) != tid); + __VERIFIER_assume(getE(1) == 1); + __VERIFIER_assume((getE(2) == 1) && (getI(tid, 0) == 0)); + TYPEOFVALUES val0 = 2; + TYPEOFVALUES val1 = getI(tid, 0); + env(tid, 1, val0, 1); + env(tid, 3, val1, 0); + setpc(tid, 0, 6); +} + +void _0_8(int tid) +{ + TYPEOFVALUES val0 = -1; + TYPEOFVALUES val1 = 0; + env(tid, 0, val0, 1); + env(tid, 1, val1, 0); + TYPEOFPC pc0 = __VERIFIER_nondet_int(); + __VERIFIER_assume((((((pc0 == 3) || (pc0 == 4)) || (pc0 == 7)) || (pc0 == 9)) || (pc0 == 11)) || (pc0 == 13)); + setpc(tid, 0, pc0); +} + +void _0_2(int tid) +{ + TYPEOFVALUES val0 = 3; + env(tid, 1, val0, 1); + TYPEOFPC pc0 = __VERIFIER_nondet_int(); + __VERIFIER_assume((((((pc0 == 3) || (pc0 == 4)) || (pc0 == 7)) || (pc0 == 9)) || (pc0 == 11)) || (pc0 == 13)); + setpc(tid, 0, pc0); +} + +void _0_12(int tid) +{ + TYPEOFVALUES val0 = -1; + TYPEOFVALUES val1 = 0; + env(tid, 0, val0, 1); + env(tid, 1, val1, 0); + TYPEOFPC pc0 = __VERIFIER_nondet_int(); + __VERIFIER_assume((((((pc0 == 3) || (pc0 == 4)) || (pc0 == 7)) || (pc0 == 9)) || (pc0 == 11)) || (pc0 == 13)); + setpc(tid, 0, pc0); +} + +void _0_5(int tid) +{ + __VERIFIER_assume(getE(1) == 3); + TYPEOFVALUES val0 = -1; + TYPEOFVALUES val1 = -1; + TYPEOFVALUES val2 = 0; + env(tid, 0, val0, 1); + env(tid, 3, val1, 0); + env(tid, 1, val2, 0); + TYPEOFPC pc0 = __VERIFIER_nondet_int(); + __VERIFIER_assume((((((pc0 == 3) || (pc0 == 4)) || (pc0 == 7)) || (pc0 == 9)) || (pc0 == 11)) || (pc0 == 13)); + setpc(tid, 0, pc0); +} + +void _0_4(int tid) +{ + __VERIFIER_assume(getE(0) != tid); + __VERIFIER_assume(getE(1) == 0); + __VERIFIER_assume(getI(tid, 0) != 2); + TYPEOFVALUES val0 = tid; + TYPEOFVALUES val1 = getI(tid, 0); + TYPEOFVALUES val2 = 1; + env(tid, 0, val0, 1); + env(tid, 2, val1, 0); + env(tid, 1, val2, 0); + TYPEOFPC pc0 = __VERIFIER_nondet_int(); + __VERIFIER_assume((((((pc0 == 3) || (pc0 == 4)) || (pc0 == 7)) || (pc0 == 9)) || (pc0 == 11)) || (pc0 == 13)); + setpc(tid, 0, pc0); +} + +void _0_10(int tid) +{ + TYPEOFVALUES val0 = -1; + TYPEOFVALUES val1 = 0; + env(tid, 0, val0, 1); + env(tid, 1, val1, 0); + TYPEOFPC pc0 = __VERIFIER_nondet_int(); + __VERIFIER_assume((((((pc0 == 3) || (pc0 == 4)) || (pc0 == 7)) || (pc0 == 9)) || (pc0 == 11)) || (pc0 == 13)); + setpc(tid, 0, pc0); +} + +int main(void) +{ + init(); + TYPEOFAGENTID firstAgent = __VERIFIER_nondet_int(); + while (1) + { + TYPEOFAGENTID newagent = __VERIFIER_nondet_int(); + __VERIFIER_assume(newagent < 3); + firstAgent = newagent; + __VERIFIER_assume(firstAgent < 3); + switch (getpc(firstAgent, 0)) + { + case 2: + _0_2(firstAgent); + break; + + case 3: + _0_3(firstAgent); + break; + + case 4: + _0_4(firstAgent); + break; + + case 5: + _0_5(firstAgent); + break; + + case 6: + _0_6(firstAgent); + break; + + case 7: + _0_7(firstAgent); + break; + + case 8: + _0_8(firstAgent); + break; + + case 9: + _0_9(firstAgent); + break; + + case 10: + _0_10(firstAgent); + break; + + case 11: + _0_11(firstAgent); + break; + + case 12: + _0_12(firstAgent); + break; + + case 13: + _0_13(firstAgent); + break; + + default: + { + } + + } + + if ((((getI(2, 0) == 0) || (getI(2, 0) == 2)) && ((getI(0, 0) == 0) || (getI(0, 0) == 2))) && ((getI(1, 0) == 0) || (getI(1, 0) == 2))) + { + return 0; + } + + } + +} + + diff --git a/data/benchmarks/tpdb/C/Di_Stefano_20/majority_true-termination.c b/data/benchmarks/tpdb/C/Di_Stefano_20/majority_true-termination.c new file mode 100644 index 000000000..d64c3b20d --- /dev/null +++ b/data/benchmarks/tpdb/C/Di_Stefano_20/majority_true-termination.c @@ -0,0 +1,272 @@ +/* + * Program used in the experimental evaluation of the following paper: + * De Nicola, Di Stefano, Inverso. Multi-Agent Systems With Virtual Stigmergies. Sci.Comp. Progr. 187, 2020 + * + * Date: 2020 + * Authors: Luca Di Stefano, Omar Inverso + * Contact: luca distefano gssi it + */ +extern int __VERIFIER_nondet_int(void); +typedef char TYPEOFVALUES; +typedef unsigned char TYPEOFPC; +typedef unsigned char TYPEOFAGENTID; +typedef unsigned char TYPEOFKEYIID; +typedef unsigned char TYPEOFKEYEID; + +TYPEOFVALUES I[3][1]; +TYPEOFVALUES E[4]; +unsigned char pc[3][1]; +void attr(TYPEOFAGENTID id, TYPEOFKEYIID key, TYPEOFVALUES value, _Bool check) +{ + I[id][key] = value; +} + +void env(TYPEOFAGENTID id, TYPEOFKEYEID key, TYPEOFVALUES value, _Bool check) +{ + E[key] = value; +} + +void init() +{ + TYPEOFVALUES _I[3][1]; + TYPEOFVALUES _E[4]; + TYPEOFPC _pc[3][1]; + unsigned char i = __VERIFIER_nondet_int(); + unsigned char j = __VERIFIER_nondet_int(); + + __VERIFIER_assume((((((_pc[0][0] == 3) || (_pc[0][0] == 4)) || (_pc[0][0] == 7)) || (_pc[0][0] == 9)) || (_pc[0][0] == 11)) || (_pc[0][0] == 13)); + __VERIFIER_assume((((((_pc[1][0] == 3) || (_pc[1][0] == 4)) || (_pc[1][0] == 7)) || (_pc[1][0] == 9)) || (_pc[1][0] == 11)) || (_pc[1][0] == 13)); + __VERIFIER_assume((((((_pc[2][0] == 3) || (_pc[2][0] == 4)) || (_pc[2][0] == 7)) || (_pc[2][0] == 9)) || (_pc[2][0] == 11)) || (_pc[2][0] == 13)); + __VERIFIER_assume(_E[0] == (-1)); + __VERIFIER_assume(_E[1] == 0); + __VERIFIER_assume(_E[2] == (-1)); + __VERIFIER_assume(_E[3] == (-1)); + __VERIFIER_assume(_I[0][0] == 0); + __VERIFIER_assume(_I[1][0] == 0); + __VERIFIER_assume(_I[2][0] == 1); + for (i = 0; i < 4; i++) + { + E[i] = _E[i]; + } + + for (i = 0; i < 3; i++) + { + for (j = 0; j < 1; j++) + { + pc[i][j] = _pc[i][j]; + } + + for (j = 0; j < 1; j++) + { + I[i][j] = _I[i][j]; + } + + } + +} + +void _0_2(int tid) +{ + TYPEOFVALUES val0 = 3; + env(tid, 1, val0, 1); + TYPEOFPC pc0 = __VERIFIER_nondet_int(); + __VERIFIER_assume((((((pc0 == 3) || (pc0 == 4)) || (pc0 == 7)) || (pc0 == 9)) || (pc0 == 11)) || (pc0 == 13)); + pc[tid][0] = pc0; +} + +void _0_3(int tid) +{ + __VERIFIER_assume((E[1] == 2) && (E[0] == tid)); + __VERIFIER_assume((I[tid][0] == 1) && (E[3] == 0)); + TYPEOFVALUES val0 = 3; + attr(tid, 0, val0, 1); + pc[tid][0] = 2; +} + +void _0_4(int tid) +{ + __VERIFIER_assume(E[0] != tid); + __VERIFIER_assume(E[1] == 0); + __VERIFIER_assume(I[tid][0] != 2); + TYPEOFVALUES val0 = tid; + TYPEOFVALUES val1 = I[tid][0]; + TYPEOFVALUES val2 = 1; + env(tid, 0, val0, 1); + env(tid, 2, val1, 0); + env(tid, 1, val2, 0); + TYPEOFPC pc0 = __VERIFIER_nondet_int(); + __VERIFIER_assume((((((pc0 == 3) || (pc0 == 4)) || (pc0 == 7)) || (pc0 == 9)) || (pc0 == 11)) || (pc0 == 13)); + pc[tid][0] = pc0; +} + +void _0_5(int tid) +{ + __VERIFIER_assume(E[1] == 3); + TYPEOFVALUES val0 = -1; + TYPEOFVALUES val1 = -1; + TYPEOFVALUES val2 = 0; + env(tid, 0, val0, 1); + env(tid, 3, val1, 0); + env(tid, 1, val2, 0); + TYPEOFPC pc0 = __VERIFIER_nondet_int(); + __VERIFIER_assume((((((pc0 == 3) || (pc0 == 4)) || (pc0 == 7)) || (pc0 == 9)) || (pc0 == 11)) || (pc0 == 13)); + pc[tid][0] = pc0; +} + +void _0_6(int tid) +{ + TYPEOFVALUES val0 = 2; + attr(tid, 0, val0, 1); + pc[tid][0] = 5; +} + +void _0_7(int tid) +{ + __VERIFIER_assume(E[0] != tid); + __VERIFIER_assume(E[1] == 1); + __VERIFIER_assume((E[2] == 1) && (I[tid][0] == 0)); + TYPEOFVALUES val0 = 2; + TYPEOFVALUES val1 = I[tid][0]; + env(tid, 1, val0, 1); + env(tid, 3, val1, 0); + pc[tid][0] = 6; +} + +void _0_8(int tid) +{ + TYPEOFVALUES val0 = -1; + TYPEOFVALUES val1 = 0; + env(tid, 0, val0, 1); + env(tid, 1, val1, 0); + TYPEOFPC pc0 = __VERIFIER_nondet_int(); + __VERIFIER_assume((((((pc0 == 3) || (pc0 == 4)) || (pc0 == 7)) || (pc0 == 9)) || (pc0 == 11)) || (pc0 == 13)); + pc[tid][0] = pc0; +} + +void _0_9(int tid) +{ + __VERIFIER_assume(E[0] != tid); + __VERIFIER_assume(E[1] == 1); + __VERIFIER_assume((E[2] == 1) && (I[tid][0] == 2)); + TYPEOFVALUES val0 = 3; + attr(tid, 0, val0, 1); + pc[tid][0] = 8; +} + +void _0_10(int tid) +{ + TYPEOFVALUES val0 = -1; + TYPEOFVALUES val1 = 0; + env(tid, 0, val0, 1); + env(tid, 1, val1, 0); + TYPEOFPC pc0 = __VERIFIER_nondet_int(); + __VERIFIER_assume((((((pc0 == 3) || (pc0 == 4)) || (pc0 == 7)) || (pc0 == 9)) || (pc0 == 11)) || (pc0 == 13)); + pc[tid][0] = pc0; +} + +void _0_11(int tid) +{ + __VERIFIER_assume(E[0] != tid); + __VERIFIER_assume(E[1] == 1); + __VERIFIER_assume((E[2] == 0) && (I[tid][0] == 3)); + TYPEOFVALUES val0 = 2; + attr(tid, 0, val0, 1); + pc[tid][0] = 10; +} + +void _0_12(int tid) +{ + TYPEOFVALUES val0 = -1; + TYPEOFVALUES val1 = 0; + env(tid, 0, val0, 1); + env(tid, 1, val1, 0); + TYPEOFPC pc0 = __VERIFIER_nondet_int(); + __VERIFIER_assume((((((pc0 == 3) || (pc0 == 4)) || (pc0 == 7)) || (pc0 == 9)) || (pc0 == 11)) || (pc0 == 13)); + pc[tid][0] = pc0; +} + +void _0_13(int tid) +{ + __VERIFIER_assume(E[0] != tid); + __VERIFIER_assume(E[1] == 1); + __VERIFIER_assume((E[2] == 3) && (I[tid][0] == 2)); + TYPEOFVALUES val0 = 3; + attr(tid, 0, val0, 1); + pc[tid][0] = 12; +} + +int main(void) +{ + init(); + TYPEOFAGENTID firstAgent = __VERIFIER_nondet_int(); + while (1) + { + TYPEOFAGENTID newagent = __VERIFIER_nondet_int(); + __VERIFIER_assume(newagent < 3); + firstAgent = newagent; + __VERIFIER_assume(firstAgent < 3); + switch (pc[firstAgent][0]) + { + case 2: + _0_2(firstAgent); + break; + + case 3: + _0_3(firstAgent); + break; + + case 4: + _0_4(firstAgent); + break; + + case 5: + _0_5(firstAgent); + break; + + case 6: + _0_6(firstAgent); + break; + + case 7: + _0_7(firstAgent); + break; + + case 8: + _0_8(firstAgent); + break; + + case 9: + _0_9(firstAgent); + break; + + case 10: + _0_10(firstAgent); + break; + + case 11: + _0_11(firstAgent); + break; + + case 12: + _0_12(firstAgent); + break; + + case 13: + _0_13(firstAgent); + break; + + default: + { + } + + } + + if ((((I[2][0] == 0) || (I[2][0] == 2)) && ((I[0][0] == 0) || (I[0][0] == 2))) && ((I[1][0] == 0) || (I[1][0] == 2))) + { + return 0; + } + + } +} + + diff --git a/data/benchmarks/tpdb/C/Hensel_22/asc_ll_search_last.c b/data/benchmarks/tpdb/C/Hensel_22/asc_ll_search_last.c new file mode 100644 index 000000000..d36f80f72 --- /dev/null +++ b/data/benchmarks/tpdb/C/Hensel_22/asc_ll_search_last.c @@ -0,0 +1,37 @@ +#include + +extern int __VERIFIER_nondet_int(); + +struct list { + int value; + struct list* next; +}; + +struct list* init_list(int n) { + struct list* curr = NULL; + struct list* tail = curr; + + for (int j = n; j >= 0; j--) { + curr = malloc(sizeof(struct list)); + curr->value = j; + curr->next = tail; + tail = curr; + } + + return curr; +} + +void search(struct list* head, int m) { + struct list* curr = head; + while(curr->value != m) { + curr = curr->next; + } +} + +int main() { + int n = __VERIFIER_nondet_int(); + if (n < 0) return 0; + struct list* head = init_list(n); + search(head,n); + return 0; +} diff --git a/data/benchmarks/tpdb/C/Hensel_22/cyclic_ll_search_last.c b/data/benchmarks/tpdb/C/Hensel_22/cyclic_ll_search_last.c new file mode 100644 index 000000000..8c2db5bcf --- /dev/null +++ b/data/benchmarks/tpdb/C/Hensel_22/cyclic_ll_search_last.c @@ -0,0 +1,41 @@ +#include + +extern int __VERIFIER_nondet_int(); + +struct list { + int value; + struct list* next; +}; + +struct list* init_list(int n) { + struct list* curr = malloc(sizeof(struct list)); + struct list* last = curr; + struct list* tail = curr; + last->value = 0; + + for (int j = 1; j < n; j++) { + curr = malloc(sizeof(struct list)); + curr->value = j; + curr->next = tail; + tail = curr; + } + + last->next = tail; + + return curr; +} + +void search(struct list* head, int m) { + struct list* curr = head; + while(curr->value != m) { + curr = curr->next; + } +} + +int main() { + int n = __VERIFIER_nondet_int(); + if (n < 1) return 0; + struct list* head = init_list(n); + search(head,0); + return 0; +} diff --git a/data/benchmarks/tpdb/C/Hensel_22/desc_ll_search-ptrdiff_existing.c b/data/benchmarks/tpdb/C/Hensel_22/desc_ll_search-ptrdiff_existing.c new file mode 100644 index 000000000..19b4f4eba --- /dev/null +++ b/data/benchmarks/tpdb/C/Hensel_22/desc_ll_search-ptrdiff_existing.c @@ -0,0 +1,45 @@ +#include + +#ifndef __PTRDIFF_TYPE__ +#define __PTRDIFF_TYPE__ long int +#endif +typedef __PTRDIFF_TYPE__ ptrdiff_t; + +extern int __VERIFIER_nondet_int(); + +struct list { + int value; + struct list* next; +}; + +struct list* init_list(int n) { + struct list* curr = NULL; + struct list* tail = curr; + + for (int j = 0; j < n; j++) { + curr = malloc(sizeof(struct list)); + curr->value = j; + curr->next = tail; + tail = curr; + } + + return curr; +} + +void search(struct list* head, int m) { + ptrdiff_t skip = (void*)&head->next - (void*)&head->value; + void* ptr = (void*) head; + while(*(int*)ptr != m) { + ptr = *((struct list**)(ptr + skip)); + } +} + +int main() { + int n = __VERIFIER_nondet_int(); + if (n < 1) return 0; + int m = __VERIFIER_nondet_int(); + if (m < 1 || m >= n) return 0; + struct list* head = init_list(n); + search(head,m); + return 0; +} diff --git a/data/benchmarks/tpdb/C/Hensel_22/desc_ll_search_existing.c b/data/benchmarks/tpdb/C/Hensel_22/desc_ll_search_existing.c new file mode 100644 index 000000000..51b1c119c --- /dev/null +++ b/data/benchmarks/tpdb/C/Hensel_22/desc_ll_search_existing.c @@ -0,0 +1,39 @@ +#include + +extern int __VERIFIER_nondet_int(); + +struct list { + int value; + struct list* next; +}; + +struct list* init_list(int n) { + struct list* curr = NULL; + struct list* tail = curr; + + for (int j = 0; j < n; j++) { + curr = malloc(sizeof(struct list)); + curr->value = j; + curr->next = tail; + tail = curr; + } + + return curr; +} + +void search(struct list* head, int m) { + struct list* curr = head; + while(curr->value != m) { + curr = curr->next; + } +} + +int main() { + int n = __VERIFIER_nondet_int(); + if (n < 1) return 0; + int m = __VERIFIER_nondet_int(); + if (m < 1 || m >= n) return 0; + struct list* head = init_list(n); + search(head,m); + return 0; +} diff --git a/data/benchmarks/tpdb/C/Hensel_22/desc_ll_search_last.c b/data/benchmarks/tpdb/C/Hensel_22/desc_ll_search_last.c new file mode 100644 index 000000000..24c975635 --- /dev/null +++ b/data/benchmarks/tpdb/C/Hensel_22/desc_ll_search_last.c @@ -0,0 +1,37 @@ +#include + +extern int __VERIFIER_nondet_int(); + +struct list { + int value; + struct list* next; +}; + +struct list* init_list(int n) { + struct list* curr = NULL; + struct list* tail = curr; + + for (int j = 0; j < n; j++) { + curr = malloc(sizeof(struct list)); + curr->value = j; + curr->next = tail; + tail = curr; + } + + return curr; +} + +void search(struct list* head, int m) { + struct list* curr = head; + while(curr->value != m) { + curr = curr->next; + } +} + +int main() { + int n = __VERIFIER_nondet_int(); + if (n < 1) return 0; + struct list* head = init_list(n); + search(head,0); + return 0; +} diff --git a/data/benchmarks/tpdb/C/Hensel_22/desc_ll_search_mod.c b/data/benchmarks/tpdb/C/Hensel_22/desc_ll_search_mod.c new file mode 100644 index 000000000..49f49cb68 --- /dev/null +++ b/data/benchmarks/tpdb/C/Hensel_22/desc_ll_search_mod.c @@ -0,0 +1,39 @@ +#include + +extern int __VERIFIER_nondet_int(); + +struct list { + int value; + struct list* next; +}; + +struct list* init_list(int n) { + struct list* curr = NULL; + struct list* tail = curr; + + for (int j = 0; j < n; j++) { + curr = malloc(sizeof(struct list)); + curr->value = j; + curr->next = tail; + tail = curr; + } + + return curr; +} + +void search(struct list* head, int m) { + struct list* curr = head; + while(curr->value != m) { + curr = curr->next; + } +} + +int main() { + int n = __VERIFIER_nondet_int(); + if (n < 1) return 0; + int m = __VERIFIER_nondet_int(); + if (m < 0) return 0; + struct list* head = init_list(n); + search(head,m%n); + return 0; +} diff --git a/data/benchmarks/tpdb/C/Hensel_22/desc_ll_with_offset_search.c b/data/benchmarks/tpdb/C/Hensel_22/desc_ll_with_offset_search.c new file mode 100644 index 000000000..b51065d2f --- /dev/null +++ b/data/benchmarks/tpdb/C/Hensel_22/desc_ll_with_offset_search.c @@ -0,0 +1,40 @@ +#include + +extern int __VERIFIER_nondet_int(); + +struct list { + int value; + struct list* next; +}; + +struct list* init_list(int n, int start) { + struct list* curr = NULL; + struct list* tail = curr; + + for (int j = start; j < start+n; j++) { + curr = malloc(sizeof(struct list)); + curr->value = j; + curr->next = tail; + tail = curr; + } + + return curr; +} + +void search(struct list* head, int m) { + struct list* curr = head; + while(curr->value != m) { + curr = curr->next; + } +} + +int main() { + int n = __VERIFIER_nondet_int(); + if (n < 1) return 0; + int m = __VERIFIER_nondet_int(); + if (m < 1 || m >= n) return 0; + int start = __VERIFIER_nondet_int(); + struct list* head = init_list(n,start); + search(head,start+m); + return 0; +} diff --git a/data/benchmarks/tpdb/C/Hensel_22/nondet_ll_delete.c b/data/benchmarks/tpdb/C/Hensel_22/nondet_ll_delete.c new file mode 100644 index 000000000..b7ad54a58 --- /dev/null +++ b/data/benchmarks/tpdb/C/Hensel_22/nondet_ll_delete.c @@ -0,0 +1,50 @@ +#include + +extern int __VERIFIER_nondet_int(); + +struct list { + int value; + struct list* next; +}; + +struct list* init_list(int n) { + struct list* curr = NULL; + struct list* tail = curr; + + for (int j = 0; j < n; j++) { + curr = malloc(sizeof(struct list)); + curr->value = __VERIFIER_nondet_int(); + curr->next = tail; + tail = curr; + } + + return curr; +} + +void delete(struct list** head_ptr, int m) { + struct list* head = *head_ptr; + if (head == NULL) return; + + struct list* curr = head; + while(curr->next != NULL) { + if (curr->next->value == m) { + curr->next = curr->next->next; + } else { + curr = curr->next; + } + } + + if (head->value == m) { + head = head->next; + } + + *head_ptr = head; +} + +int main() { + int n = __VERIFIER_nondet_int(); + int m = __VERIFIER_nondet_int(); + struct list* head = init_list(n); + delete(&head,m); + return 0; +} diff --git a/data/benchmarks/tpdb/C/Hensel_22/nondet_ll_init.c b/data/benchmarks/tpdb/C/Hensel_22/nondet_ll_init.c new file mode 100644 index 000000000..7995046bf --- /dev/null +++ b/data/benchmarks/tpdb/C/Hensel_22/nondet_ll_init.c @@ -0,0 +1,28 @@ +#include + +extern int __VERIFIER_nondet_int(); + +struct list { + int value; + struct list* next; +}; + +struct list* init_list(int n) { + struct list* curr = NULL; + struct list* tail = curr; + + for (int j = 0; j < n; j++) { + curr = malloc(sizeof(struct list)); + curr->value = __VERIFIER_nondet_int(); + curr->next = tail; + tail = curr; + } + + return curr; +} + +int main() { + int n = __VERIFIER_nondet_int(); + struct list* head = init_list(n); + return 0; +} diff --git a/data/benchmarks/tpdb/C/Hensel_22/nondet_ll_init_rec.c b/data/benchmarks/tpdb/C/Hensel_22/nondet_ll_init_rec.c new file mode 100644 index 000000000..accda7821 --- /dev/null +++ b/data/benchmarks/tpdb/C/Hensel_22/nondet_ll_init_rec.c @@ -0,0 +1,23 @@ +#include + +extern int __VERIFIER_nondet_int(); + +struct list { + int value; + struct list* next; +}; + +struct list* init_list(int n) { + if (n == 0) return NULL; + struct list* curr = malloc(sizeof(struct list)); + curr->value = __VERIFIER_nondet_int(); + curr->next = init_list(n-1); + return curr; +} + +int main() { + int n = __VERIFIER_nondet_int(); + if (n < 1) return 0; + struct list* head = init_list(n); + return 0; +} diff --git a/data/benchmarks/tpdb/C/Hensel_22/nondet_ll_insert.c b/data/benchmarks/tpdb/C/Hensel_22/nondet_ll_insert.c new file mode 100644 index 000000000..65ecea6ce --- /dev/null +++ b/data/benchmarks/tpdb/C/Hensel_22/nondet_ll_insert.c @@ -0,0 +1,53 @@ +#include + +extern int __VERIFIER_nondet_int(); + +struct list { + int value; + struct list* next; +}; + +struct list* init_list(int n) { + struct list* curr = NULL; + struct list* tail = curr; + + for (int j = 0; j < n; j++) { + curr = malloc(sizeof(struct list)); + curr->value = __VERIFIER_nondet_int(); + curr->next = tail; + tail = curr; + } + + return curr; +} + +void insert(struct list** head_ptr, int m) { + struct list* head = *head_ptr; + struct list* new = malloc(sizeof(struct list)); + new->value = m; + + if (head == NULL || head->value >= m) { + new->next = head; + *head_ptr = new; + return; + } + + struct list* curr = head; + while(curr->next != NULL && curr->next->value < m) { + curr = curr->next; + } + + new->next = curr->next; + curr->next = new; + + *head_ptr = head; +} + +int main() { + int n = __VERIFIER_nondet_int(); + if (n < 1) return 0; + int m = __VERIFIER_nondet_int(); + struct list* head = init_list(n); + insert(&head,m); + return 0; +} diff --git a/data/benchmarks/tpdb/C/Hensel_22/nondet_ll_search_last_n.c b/data/benchmarks/tpdb/C/Hensel_22/nondet_ll_search_last_n.c new file mode 100644 index 000000000..f968dc0aa --- /dev/null +++ b/data/benchmarks/tpdb/C/Hensel_22/nondet_ll_search_last_n.c @@ -0,0 +1,40 @@ +#include + +extern int __VERIFIER_nondet_int(); + +struct list { + int value; + struct list* next; +}; + +struct list* init_list(int n) { + struct list* tail = NULL; + struct list* curr = malloc(sizeof(struct list)); + curr->value = n; + curr->next = tail; + tail = curr; + + for (int j = 1; j < n; j++) { + curr = malloc(sizeof(struct list)); + curr->value = __VERIFIER_nondet_int(); + curr->next = tail; + tail = curr; + } + + return curr; +} + +void search(struct list* head, int m) { + struct list* curr = head; + while(curr->value != m) { + curr = curr->next; + } +} + +int main() { + int n = __VERIFIER_nondet_int(); + if (n < 1) return 0; + struct list* head = init_list(n); + search(head,n); + return 0; +} diff --git a/data/benchmarks/tpdb/C/Hensel_22/nondet_ll_search_last_zero.c b/data/benchmarks/tpdb/C/Hensel_22/nondet_ll_search_last_zero.c new file mode 100644 index 000000000..a07cb405f --- /dev/null +++ b/data/benchmarks/tpdb/C/Hensel_22/nondet_ll_search_last_zero.c @@ -0,0 +1,40 @@ +#include + +extern int __VERIFIER_nondet_int(); + +struct list { + int value; + struct list* next; +}; + +struct list* init_list(int n) { + struct list* tail = NULL; + struct list* curr = malloc(sizeof(struct list)); + curr->value = 0; + curr->next = tail; + tail = curr; + + for (int j = 1; j < n; j++) { + curr = malloc(sizeof(struct list)); + curr->value = __VERIFIER_nondet_int(); + curr->next = tail; + tail = curr; + } + + return curr; +} + +void search(struct list* head, int m) { + struct list* curr = head; + while(curr->value != m) { + curr = curr->next; + } +} + +int main() { + int n = __VERIFIER_nondet_int(); + if (n < 1) return 0; + struct list* head = init_list(n); + search(head,0); + return 0; +} diff --git a/data/benchmarks/tpdb/C/Hensel_22/nondet_ll_search_zero.c b/data/benchmarks/tpdb/C/Hensel_22/nondet_ll_search_zero.c new file mode 100644 index 000000000..5fb323e91 --- /dev/null +++ b/data/benchmarks/tpdb/C/Hensel_22/nondet_ll_search_zero.c @@ -0,0 +1,37 @@ +#include + +extern int __VERIFIER_nondet_int(); + +struct list { + int value; + struct list* next; +}; + +struct list* init_list(int n) { + struct list* curr = NULL; + struct list* tail = curr; + + for (int j = 0; j < n; j++) { + curr = malloc(sizeof(struct list)); + curr->value = __VERIFIER_nondet_int(); + curr->next = tail; + tail = curr; + } + + return curr; +} + +void search(struct list* head, int m) { + struct list* curr = head; + while(curr->next != NULL && curr->value != m) { + curr = curr->next; + } +} + +int main() { + int n = __VERIFIER_nondet_int(); + if (n < 1) return 0; + struct list* head = init_list(n); + search(head,0); + return 0; +} diff --git a/data/benchmarks/tpdb/C/Hensel_22/nondet_ll_skip.c b/data/benchmarks/tpdb/C/Hensel_22/nondet_ll_skip.c new file mode 100644 index 000000000..ec113d9f5 --- /dev/null +++ b/data/benchmarks/tpdb/C/Hensel_22/nondet_ll_skip.c @@ -0,0 +1,46 @@ +#include + +extern int __VERIFIER_nondet_int(); + +struct list { + int value; + struct list* next; +}; + +struct list* init_list(int n) { + struct list* curr = NULL; + struct list* tail = curr; + + for (int j = 0; j < n; j++) { + curr = malloc(sizeof(struct list)); + curr->value = __VERIFIER_nondet_int(); + curr->next = tail; + tail = curr; + } + + return curr; +} + +void skip(struct list** head_ptr, int m) { + struct list* head = *head_ptr; + if (head == NULL) return; + + while (head->value == m) { + if (head->next != NULL) { + head = head->next; + } else { + *head_ptr = NULL; + return; + } + } + + *head_ptr = head; +} + +int main() { + int n = __VERIFIER_nondet_int(); + int m = __VERIFIER_nondet_int(); + struct list* head = init_list(n); + skip(&head,m); + return 0; +} diff --git a/data/benchmarks/tpdb/C/Hensel_22/nondet_ll_traverse-ptrdiff.c b/data/benchmarks/tpdb/C/Hensel_22/nondet_ll_traverse-ptrdiff.c new file mode 100644 index 000000000..9f663f0bf --- /dev/null +++ b/data/benchmarks/tpdb/C/Hensel_22/nondet_ll_traverse-ptrdiff.c @@ -0,0 +1,43 @@ +#include + +#ifndef __PTRDIFF_TYPE__ +#define __PTRDIFF_TYPE__ long int +#endif +typedef __PTRDIFF_TYPE__ ptrdiff_t; + +extern int __VERIFIER_nondet_int(); + +struct list { + int value; + struct list* next; +}; + +struct list* init_list(int n) { + struct list* curr = NULL; + struct list* tail = curr; + + for (int j = 0; j < n; j++) { + curr = malloc(sizeof(struct list)); + curr->value = __VERIFIER_nondet_int(); + curr->next = tail; + tail = curr; + } + + return curr; +} + +void traverse(struct list* head) { + ptrdiff_t skip = (void*)&head->next - (void*)&head->value; + void* ptr = (void*) head; + while(ptr != NULL) { + ptr = *((struct list**)(ptr + skip)); + } +} + +int main() { + int n = __VERIFIER_nondet_int(); + if (n < 1) return 0; + struct list* head = init_list(n); + traverse(head); + return 0; +} diff --git a/data/benchmarks/tpdb/C/Hensel_22/nondet_ll_traverse.c b/data/benchmarks/tpdb/C/Hensel_22/nondet_ll_traverse.c new file mode 100644 index 000000000..194dd424c --- /dev/null +++ b/data/benchmarks/tpdb/C/Hensel_22/nondet_ll_traverse.c @@ -0,0 +1,37 @@ +#include + +extern int __VERIFIER_nondet_int(); + +struct list { + int value; + struct list* next; +}; + +struct list* init_list(int n) { + struct list* curr = NULL; + struct list* tail = curr; + + for (int j = 0; j < n; j++) { + curr = malloc(sizeof(struct list)); + curr->value = __VERIFIER_nondet_int(); + curr->next = tail; + tail = curr; + } + + return curr; +} + +void traverse(struct list* head) { + struct list* curr = head; + while(curr->next != NULL) { + curr = curr->next; + } +} + +int main() { + int n = __VERIFIER_nondet_int(); + if (n < 1) return 0; + struct list* head = init_list(n); + traverse(head); + return 0; +} diff --git a/data/benchmarks/tpdb/C/Hensel_22/nondet_ll_traverse_rec.c b/data/benchmarks/tpdb/C/Hensel_22/nondet_ll_traverse_rec.c new file mode 100644 index 000000000..899a52739 --- /dev/null +++ b/data/benchmarks/tpdb/C/Hensel_22/nondet_ll_traverse_rec.c @@ -0,0 +1,30 @@ +#include + +extern int __VERIFIER_nondet_int(); + +struct list { + int value; + struct list* next; +}; + +struct list* init_list(int n) { + if (n == 0) return NULL; + struct list* curr = malloc(sizeof(struct list)); + curr->value = __VERIFIER_nondet_int(); + curr->next = init_list(n-1); + return curr; +} + +void traverse(struct list* curr) { + if (curr->next != NULL) { + traverse(curr->next); + } +} + +int main() { + int n = __VERIFIER_nondet_int(); + if (n < 1) return 0; + struct list* head = init_list(n); + traverse(head); + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/960521-1_1_true-valid-memsafety.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/960521-1_1_true-valid-memsafety.c new file mode 100644 index 000000000..a83116905 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/960521-1_1_true-valid-memsafety.c @@ -0,0 +1,645 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +typedef long unsigned int size_t; +typedef int wchar_t; + +union wait + { + int w_status; + struct + { + unsigned int __w_termsig:7; + unsigned int __w_coredump:1; + unsigned int __w_retcode:8; + unsigned int:16; + } __wait_terminated; + struct + { + unsigned int __w_stopval:8; + unsigned int __w_stopsig:8; + unsigned int:16; + } __wait_stopped; + }; +typedef union + { + union wait *__uptr; + int *__iptr; + } __WAIT_STATUS __attribute__ ((__transparent_union__)); + +typedef struct + { + int quot; + int rem; + } div_t; +typedef struct + { + long int quot; + long int rem; + } ldiv_t; + + +__extension__ typedef struct + { + long long int quot; + long long int rem; + } lldiv_t; + +extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__ , __leaf__)) ; + +extern double atof (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern int atoi (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern long int atol (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +__extension__ extern long long int atoll (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +extern double strtod (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern float strtof (__const char *__restrict __nptr, + char **__restrict __endptr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern long double strtold (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern long int strtol (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern unsigned long int strtoul (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtouq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoll (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtoull (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *l64a (long int __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern long int a64l (__const char *__s) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + +typedef unsigned char __u_char; +typedef unsigned short int __u_short; +typedef unsigned int __u_int; +typedef unsigned long int __u_long; +typedef signed char __int8_t; +typedef unsigned char __uint8_t; +typedef signed short int __int16_t; +typedef unsigned short int __uint16_t; +typedef signed int __int32_t; +typedef unsigned int __uint32_t; +typedef signed long int __int64_t; +typedef unsigned long int __uint64_t; +typedef long int __quad_t; +typedef unsigned long int __u_quad_t; +typedef unsigned long int __dev_t; +typedef unsigned int __uid_t; +typedef unsigned int __gid_t; +typedef unsigned long int __ino_t; +typedef unsigned long int __ino64_t; +typedef unsigned int __mode_t; +typedef unsigned long int __nlink_t; +typedef long int __off_t; +typedef long int __off64_t; +typedef int __pid_t; +typedef struct { int __val[2]; } __fsid_t; +typedef long int __clock_t; +typedef unsigned long int __rlim_t; +typedef unsigned long int __rlim64_t; +typedef unsigned int __id_t; +typedef long int __time_t; +typedef unsigned int __useconds_t; +typedef long int __suseconds_t; +typedef int __daddr_t; +typedef long int __swblk_t; +typedef int __key_t; +typedef int __clockid_t; +typedef void * __timer_t; +typedef long int __blksize_t; +typedef long int __blkcnt_t; +typedef long int __blkcnt64_t; +typedef unsigned long int __fsblkcnt_t; +typedef unsigned long int __fsblkcnt64_t; +typedef unsigned long int __fsfilcnt_t; +typedef unsigned long int __fsfilcnt64_t; +typedef long int __ssize_t; +typedef __off64_t __loff_t; +typedef __quad_t *__qaddr_t; +typedef char *__caddr_t; +typedef long int __intptr_t; +typedef unsigned int __socklen_t; +typedef __u_char u_char; +typedef __u_short u_short; +typedef __u_int u_int; +typedef __u_long u_long; +typedef __quad_t quad_t; +typedef __u_quad_t u_quad_t; +typedef __fsid_t fsid_t; +typedef __loff_t loff_t; +typedef __ino_t ino_t; +typedef __dev_t dev_t; +typedef __gid_t gid_t; +typedef __mode_t mode_t; +typedef __nlink_t nlink_t; +typedef __uid_t uid_t; +typedef __off_t off_t; +typedef __pid_t pid_t; +typedef __id_t id_t; +typedef __ssize_t ssize_t; +typedef __daddr_t daddr_t; +typedef __caddr_t caddr_t; +typedef __key_t key_t; + +typedef __clock_t clock_t; + + + +typedef __time_t time_t; + + +typedef __clockid_t clockid_t; +typedef __timer_t timer_t; +typedef unsigned long int ulong; +typedef unsigned short int ushort; +typedef unsigned int uint; +typedef int int8_t __attribute__ ((__mode__ (__QI__))); +typedef int int16_t __attribute__ ((__mode__ (__HI__))); +typedef int int32_t __attribute__ ((__mode__ (__SI__))); +typedef int int64_t __attribute__ ((__mode__ (__DI__))); +typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); +typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); +typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); +typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); +typedef int register_t __attribute__ ((__mode__ (__word__))); +typedef int __sig_atomic_t; +typedef struct + { + unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; + } __sigset_t; +typedef __sigset_t sigset_t; +struct timespec + { + __time_t tv_sec; + long int tv_nsec; + }; +struct timeval + { + __time_t tv_sec; + __suseconds_t tv_usec; + }; +typedef __suseconds_t suseconds_t; +typedef long int __fd_mask; +typedef struct + { + __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; + } fd_set; +typedef __fd_mask fd_mask; + +extern int select (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + struct timeval *__restrict __timeout); +extern int pselect (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + const struct timespec *__restrict __timeout, + const __sigset_t *__restrict __sigmask); + + +__extension__ +extern unsigned int gnu_dev_major (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned int gnu_dev_minor (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned long long int gnu_dev_makedev (unsigned int __major, + unsigned int __minor) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); + +typedef __blksize_t blksize_t; +typedef __blkcnt_t blkcnt_t; +typedef __fsblkcnt_t fsblkcnt_t; + + +typedef __fsfilcnt_t fsfilcnt_t; +typedef unsigned long int pthread_t; +typedef union +{ + char __size[56]; + long int __align; +} pthread_attr_t; +typedef struct __pthread_internal_list +{ + struct __pthread_internal_list *__prev; + struct __pthread_internal_list *__next; +} __pthread_list_t; +typedef union +{ + struct __pthread_mutex_s + { + int __lock; + unsigned int __count; + int __owner; + unsigned int __nusers; + int __kind; + int __spins; + __pthread_list_t __list; + } __data; + char __size[40]; + long int __align; +} pthread_mutex_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_mutexattr_t; +typedef union +{ + struct + { + int __lock; + unsigned int __futex; + __extension__ unsigned long long int __total_seq; + __extension__ unsigned long long int __wakeup_seq; + __extension__ unsigned long long int __woken_seq; + void *__mutex; + unsigned int __nwaiters; + unsigned int __broadcast_seq; + } __data; + char __size[48]; + __extension__ long long int __align; +} pthread_cond_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_condattr_t; +typedef unsigned int pthread_key_t; +typedef int pthread_once_t; +typedef union +{ + struct + { + int __lock; + unsigned int __nr_readers; + unsigned int __readers_wakeup; + unsigned int __writer_wakeup; + unsigned int __nr_readers_queued; + unsigned int __nr_writers_queued; + int __writer; + int __shared; + unsigned long int __pad1; + unsigned long int __pad2; + unsigned int __flags; + } __data; + char __size[56]; + long int __align; +} pthread_rwlock_t; +typedef union +{ + char __size[8]; + long int __align; +} pthread_rwlockattr_t; +typedef volatile int pthread_spinlock_t; +typedef union +{ + char __size[32]; + long int __align; +} pthread_barrier_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_barrierattr_t; + +extern long int random (void) __attribute__ ((__nothrow__ , __leaf__)); +extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); +extern char *initstate (unsigned int __seed, char *__statebuf, + size_t __statelen) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + + +extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + + + +struct random_data + { + int32_t *fptr; + int32_t *rptr; + int32_t *state; + int rand_type; + int rand_deg; + int rand_sep; + int32_t *end_ptr; + }; + +extern int random_r (struct random_data *__restrict __buf, + int32_t *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int srandom_r (unsigned int __seed, struct random_data *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, + size_t __statelen, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4))); + +extern int setstate_r (char *__restrict __statebuf, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + +extern int rand (void) __attribute__ ((__nothrow__ , __leaf__)); + +extern void srand (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern double drand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int lrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int nrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int mrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int jrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern void srand48 (long int __seedval) __attribute__ ((__nothrow__ , __leaf__)); +extern unsigned short int *seed48 (unsigned short int __seed16v[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + +struct drand48_data + { + unsigned short int __x[3]; + unsigned short int __old_x[3]; + unsigned short int __c; + unsigned short int __init; + unsigned long long int __a; + }; + + +extern int drand48_r (struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int erand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int lrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int nrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int mrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int jrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int srand48_r (long int __seedval, struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int seed48_r (unsigned short int __seed16v[3], + struct drand48_data *__buffer) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int lcong48_r (unsigned short int __param[7], + struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + + + + +extern void *malloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + +extern void *calloc (size_t __nmemb, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + + + + + + + +extern void *realloc (void *__ptr, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); + +extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern void cfree (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + +extern void *alloca (size_t __size) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern void *valloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + +extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + + + +extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + + +extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern void exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern void _Exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern char *getenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *__secure_getenv (__const char *__name) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int putenv (char *__string) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int setenv (__const char *__name, __const char *__value, int __replace) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); +extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int clearenv (void) __attribute__ ((__nothrow__ , __leaf__)); +extern char *mktemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ; +extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern int system (__const char *__command) ; + +extern char *realpath (__const char *__restrict __name, + char *__restrict __resolved) __attribute__ ((__nothrow__ , __leaf__)) ; +typedef int (*__compar_fn_t) (__const void *, __const void *); + +extern void *bsearch (__const void *__key, __const void *__base, + size_t __nmemb, size_t __size, __compar_fn_t __compar) + __attribute__ ((__nonnull__ (1, 2, 5))) ; +extern void qsort (void *__base, size_t __nmemb, size_t __size, + __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); +extern int abs (int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern long int labs (long int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +__extension__ extern long long int llabs (long long int __x) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern div_t div (int __numer, int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern ldiv_t ldiv (long int __numer, long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + + +__extension__ extern lldiv_t lldiv (long long int __numer, + long long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *gcvt (double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern char *qecvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qfcvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qgcvt (long double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qecvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qfcvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); + +extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int mbtowc (wchar_t *__restrict __pwc, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__ , __leaf__)) ; +extern size_t mbstowcs (wchar_t *__restrict __pwcs, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)); +extern size_t wcstombs (char *__restrict __s, + __const wchar_t *__restrict __pwcs, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)); + +extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int getsubopt (char **__restrict __optionp, + char *__const *__restrict __tokens, + char **__restrict __valuep) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2, 3))) ; +extern int getloadavg (double __loadavg[], int __nelem) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +int *a, *b; +int n; +extern int __VERIFIER_nondet_int(void); +void foo() +{ + int i; + for (i = 0; i < n; i++) + a[i] = n; + for (i = 0; i < n - 1; i++) + b[i] = n; +} +int main() +{ + n = 1; + while(__VERIFIER_nondet_int() && n < 30) { + n++; + } + a = malloc (n * sizeof(*a)); + b = malloc (n * sizeof(*b)); + *b++ = n; + foo (); + if (b[-1] - b[n - 2]) + { free(a); free(b); } + else + { free(a); free(b-1); } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Addition01_true-unreach-call_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Addition01_true-unreach-call_true-termination.c new file mode 100644 index 000000000..d9a05afd4 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Addition01_true-unreach-call_true-termination.c @@ -0,0 +1,41 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Recursive implementation integer addition. + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + +int addition(int m, int n) { + if (n == 0) { + return m; + } + if (n > 0) { + return addition(m+1, n-1); + } + if (n < 0) { + return addition(m-1, n+1); + } +} + + +int main() { + int m = __VERIFIER_nondet_int(); + if (m < 0 || m > 2147483647) { + return 0; + } + int n = __VERIFIER_nondet_int(); + if (n < 0 || n > 2147483647) { + return 0; + } + int result = addition(m,n); + if (result == m + n) { + return 0; + } else { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/BallRajamani-SPIN2000-Fig1_false-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/BallRajamani-SPIN2000-Fig1_false-unreach-call.c new file mode 100644 index 000000000..2d6c2d893 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/BallRajamani-SPIN2000-Fig1_false-unreach-call.c @@ -0,0 +1,33 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Program depicted in Fig.1 of + * 2000SPIN - Ball,Rajamani - Bebop: A Symbolic Model Checker for Boolean Programs + * + * Author: Matthias Heizmann + * Date: 2014-07-31 + * + */ + +extern int __VERIFIER_nondet_int(void); + +int g; + +int A(int a1, int a2) { + if (a1) { + A(a2,a1); + } else { + g = a2; + } +} + + +int main() { + int g = __VERIFIER_nondet_int(); + int h = !g; + A(g,h); + A(g,h); + if (g) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/EvenOdd01_true-unreach-call_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/EvenOdd01_true-unreach-call_true-termination.c new file mode 100644 index 000000000..d88b114c6 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/EvenOdd01_true-unreach-call_true-termination.c @@ -0,0 +1,49 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Recursive implementation integer addition. + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + +int isOdd(int n); +int isEven(int n); + +int isOdd(int n) { + if (n == 0) { + return 0; + } else if (n == 1) { + return 1; + } else { + return isEven(n - 1); + } +} + +int isEven(int n) { + if (n == 0) { + return 1; + } else if (n == 1) { + return 0; + } else { + return isOdd(n - 1); + } +} + + +int main() { + int n = __VERIFIER_nondet_int(); + if (n < 0) { + return 0; + } + int result = isOdd(n); + int mod = n % 2; + if (result < 0 || result == mod) { + return 0; + } else { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Fibonacci01_true-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Fibonacci01_true-unreach-call.c new file mode 100644 index 000000000..8ceabd390 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Fibonacci01_true-unreach-call.c @@ -0,0 +1,38 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Recursive computation of fibonacci numbers. + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + + +int fibonacci(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibonacci(n-1) + fibonacci(n-2); + } +} + + +int main() { + int x = __VERIFIER_nondet_int(); + if (x > 46 || x == -2147483648) { + return 0; + } + int result = fibonacci(x); + if (result >= x - 1) { + return 0; + } else { + ERROR: __VERIFIER_error(); + } +} + + diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/McCarthy91_false-unreach-call_false-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/McCarthy91_false-unreach-call_false-termination.c new file mode 100644 index 000000000..59ba11f94 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/McCarthy91_false-unreach-call_false-termination.c @@ -0,0 +1,32 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Implementation the McCarthy 91 function. + * http://en.wikipedia.org/wiki/McCarthy_91_function + * + * Author: Matthias Heizmann + * Date: 2013-07-13 + * + */ + +extern int __VERIFIER_nondet_int(void); + + +int f91(int x) { + if (x > 100) + return x -10; + else { + return f91(f91(x+11)); + } +} + + +int main() { + int x = __VERIFIER_nondet_int(); + int result = f91(x); + if (result == 91 || x > 102 && result == x - 10) { + return 0; + } else { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Primes_true-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Primes_true-unreach-call.c new file mode 100644 index 000000000..a50b9c1dc --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Primes_true-unreach-call.c @@ -0,0 +1,94 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Recursive implementation of prime number test + * (Sieve of Eratosthenes) + * + * Author: Jan Leike + * Date: 2013-07-17 + * + */ + +extern int __VERIFIER_nondet_int(void); + +// Multiplies two integers n and m +int mult(int n, int m) { + if (m < 0) { + return mult(n, -m); + } + if (m == 0) { + return 0; + } + if (m == 1) { + return 1; + } + return n + mult(n, m - 1); +} + +// Is n a multiple of m? +int multiple_of(int n, int m) { + if (m < 0) { + return multiple_of(n, -m); + } + if (n < 0) { + return multiple_of(-n, m); // false + } + if (m == 0) { + return 0; // false + } + if (n == 0) { + return 1; // true + } + return multiple_of(n - m, m); +} + + +int is_prime_(int n, int m); +int is_prime(int n); + +// Is n prime? +int is_prime(int n) { + return is_prime_(n, n - 1); +} + + +int is_prime_(int n, int m) { + if (n <= 1) { + return 0; // false + } + if (n == 2) { + return 1; // true + } + if (n > 2) { + if (m <= 1) { + return 1; // true + } else { + if (multiple_of(n, m) == 0) { + return 0; // false + } + return is_prime_(n, m - 1); + } + } +} + +int main() { + int n = __VERIFIER_nondet_int(); + if (n < 1 || n > 46340) { + return 0; + } + int result = is_prime(n); + int f1 = __VERIFIER_nondet_int(); + if (f1 < 1 || f1 > 46340) { + return 0; + } + int f2 = __VERIFIER_nondet_int(); + if (f1 < 1 || f1 > 46340) { + return 0; + } + + if (result == 1 && mult(f1, f2) == n && f1 > 1 && f2 > 1) { + ERROR: __VERIFIER_error(); + } else { + return 0; + } +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem01_label00_true-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem01_label00_true-unreach-call.c new file mode 100644 index 000000000..e0f6ab6f0 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem01_label00_true-unreach-call.c @@ -0,0 +1,593 @@ +extern void __VERIFIER_error(void); +extern int __VERIFIER_nondet_int(void); +extern void exit(int); + + // inputs + int a= 1; + int d= 4; + int e= 5; + int f= 6; + int c= 3; + int b= 2; + + // outputs + int u = 21; + int v = 22; + int w = 23; + int x = 24; + int y = 25; + int z = 26; + + int a17 = 1; + int a7 = 0; + int a20 = 1; + int a8 = 15; + int a12 = 8; + int a16 = 5; + int a21 = 1; + + int calculate_output(int input) { + if((((a8==15)&&(((((a21==1)&&(((a16==5)||(a16==6))&&(input==1)))&&(a20==1))&&(a17==1))&&!(a7==1)))&&(a12==8))){ + a16 = 5; + a20 = 0; + return 24; + } else if((((((((input==5)&&((((a16==6)&&(a17==1))||(!(a17==1)&&(a16==4)))||(!(a17==1)&&(a16==5))))&&(a20==1))&&(a12==8))&&(a7==1))&&!(a21==1))&&(a8==13))){ + a20 = 0; + a16 = 6; + a17 = 0; + a8 = 15; + a7 = 0; + a21 = 1; + return 26; + } else if(((!(a7==1)&&((((a16==6)&&((a21==1)&&((a17==1)&&(input==3))))&&!(a20==1))&&(a8==15)))&&(a12==8))){ + a20 = 1; + a16 = 4; + a7 = 1; + a8 = 13; + return -1; + } else if(((a17==1)&&((!(a7==1)&&(((a21==1)&&((((a16==5)||(a16==6))&&(input==6))&&(a20==1)))&&(a8==15)))&&(a12==8)))){ + a8 = 13; + a7 = 1; + a16 = 4; + return -1; + } else if((((input==3)&&((((a16==6)&&((!(a20==1)&&(!(a7==1)&&!(a17==1)))&&(a8==15)))&&(a21==1))||((((a8==13)&&((a20==1)&&((a17==1)&&(a7==1))))&&(a16==4))&&!(a21==1))))&&(a12==8))){ + a7 = 0; + a20 = 1; + a21 = 1; + a16 = 4; + a17 = 1; + a8 = 13; + return -1; + } else if((((a17==1)&&(((a21==1)&&((!(a7==1)&&((input==4)&&(a8==15)))&&!(a20==1)))&&(a12==8)))&&(a16==6))){ + a17 = 0; + return 26; + } else if((((a12==8)&&(((a21==1)&&((((input==5)&&!(a7==1))&&(a8==15))&&(a16==5)))&&!(a20==1)))&&!(a17==1))){ + a7 = 1; + a16 = 4; + a8 = 13; + a20 = 1; + a17 = 1; + return -1; + } else if(((a12==8)&&((input==1)&&(((a21==1)&&(((a8==15)&&((!(a17==1)&&!(a7==1))&&!(a20==1)))&&(a16==6)))||(!(a21==1)&&((a16==4)&&((a8==13)&&(((a17==1)&&(a7==1))&&(a20==1))))))))){ + a7 = 1; + a17 = 1; + a21 = 0; + a20 = 1; + a8 = 13; + a16 = 5; + return 26; + } else if(((((!(a17==1)&&(!(a7==1)&&((a21==1)&&((a8==15)&&(input==4)))))&&!(a20==1))&&(a12==8))&&(a16==4))){ + a17 = 1; + a16 = 5; + return 21; + } else if(((((((a16==6)&&((!(a20==1)&&(!(a17==1)&&!(a7==1)))&&(a8==15)))&&(a21==1))||(((a16==4)&&(((a20==1)&&((a17==1)&&(a7==1)))&&(a8==13)))&&!(a21==1)))&&(input==2))&&(a12==8))){ + a7 = 0; + a20 = 1; + a8 = 14; + a16 = 4; + a21 = 1; + a17 = 0; + return -1; + } else if(((a8==13)&&(!(a21==1)&&((((input==3)&&((((a20==1)&&!(a17==1))&&(a16==6))||((!(a20==1)&&(a17==1))&&(a16==4))))&&(a12==8))&&(a7==1))))){ + a16 = 4; + a17 = 1; + a20 = 1; + return 26; + } else if(((((a21==1)&&((a12==8)&&((input==1)&&(((!(a20==1)&&(a17==1))&&(a16==4))||(((a16==5)&&(!(a17==1)&&(a20==1)))||((a16==6)&&(!(a17==1)&&(a20==1))))))))&&!(a7==1))&&(a8==15))){ + a16 = 6; + a20 = 1; + a17 = 0; + return 24; + } else if((((a16==5)&&(((a7==1)&&((!(a21==1)&&((a12==8)&&(input==3)))&&(a8==13)))&&(a17==1)))&&(a20==1))){ + a20 = 0; + a8 = 15; + a17 = 0; + a21 = 1; + return -1; + } else if(((a17==1)&&(((a8==15)&&(((a12==8)&&((!(a7==1)&&(input==5))&&(a21==1)))&&!(a20==1)))&&(a16==5)))){ + a20 = 1; + a8 = 13; + a7 = 1; + a16 = 4; + return -1; + } else if((!(a7==1)&&(((((a21==1)&&(((a8==15)&&(input==5))&&!(a17==1)))&&(a12==8))&&(a20==1))&&(a16==4)))){ + a8 = 13; + a17 = 1; + a7 = 1; + return -1; + } else if(((!(a21==1)&&(((a12==8)&&((((a16==6)&&((a20==1)&&!(a17==1)))||((!(a20==1)&&(a17==1))&&(a16==4)))&&(input==1)))&&(a8==13)))&&(a7==1))){ + a16 = 6; + a20 = 1; + a17 = 0; + return -1; + } else if(((a17==1)&&(!(a7==1)&&(((a21==1)&&(((a12==8)&&((input==5)&&((a16==5)||(a16==6))))&&(a20==1)))&&(a8==15))))){ + a7 = 1; + a16 = 4; + a8 = 13; + return -1; + } else if((((a12==8)&&(!(a21==1)&&((a7==1)&&((a8==13)&&((input==6)&&((((a16==6)&&(a17==1))||((a16==4)&&!(a17==1)))||((a16==5)&&!(a17==1))))))))&&(a20==1))){ + a8 = 15; + a17 = 0; + a21 = 1; + a20 = 0; + a16 = 4; + return -1; + } else if((((a16==5)&&((((a8==15)&&((!(a7==1)&&(input==2))&&(a21==1)))&&(a12==8))&&!(a20==1)))&&!(a17==1))){ + a16 = 4; + a17 = 1; + return 24; + } else if((!(a20==1)&&((a21==1)&&((a16==4)&&((a8==15)&&(((a12==8)&&((input==2)&&!(a7==1)))&&!(a17==1))))))){ + a17 = 1; + a16 = 5; + return 21; + } else if((((a21==1)&&(!(a7==1)&&((!(a20==1)&&(!(a17==1)&&((a12==8)&&(input==6))))&&(a16==4))))&&(a8==15))){ + a20 = 1; + a16 = 6; + return 22; + } else if(((a17==1)&&((((((a12==8)&&((input==4)&&(a8==13)))&&(a20==1))&&!(a21==1))&&(a16==5))&&(a7==1)))){ + a16 = 4; + a17 = 0; + return 25; + } else if(((((a8==13)&&((a12==8)&&((((((a16==6)&&(a17==1))||(!(a17==1)&&(a16==4)))||(!(a17==1)&&(a16==5)))&&(input==1))&&!(a21==1))))&&(a20==1))&&(a7==1))){ + a8 = 15; + a16 = 6; + a21 = 1; + a20 = 0; + a7 = 0; + a17 = 1; + return -1; + } else if(((a8==13)&&(!(a21==1)&&((((((!(a17==1)&&(a20==1))&&(a16==6))||((a16==4)&&((a17==1)&&!(a20==1))))&&(input==5))&&(a7==1))&&(a12==8))))){ + a17 = 1; + a20 = 0; + a16 = 4; + return 25; + } else if(((!(a21==1)&&((((((a16==6)&&((a20==1)&&!(a17==1)))||(((a17==1)&&!(a20==1))&&(a16==4)))&&(input==4))&&(a7==1))&&(a12==8)))&&(a8==13))){ + a8 = 15; + a21 = 1; + a20 = 0; + a7 = 0; + a16 = 6; + a17 = 0; + return 26; + } else if((((a21==1)&&(!(a7==1)&&((((((a16==5)&&((a20==1)&&!(a17==1)))||((!(a17==1)&&(a20==1))&&(a16==6)))||((a16==4)&&((a17==1)&&!(a20==1))))&&(input==4))&&(a12==8))))&&(a8==15))){ + a16 = 4; + a20 = 0; + a17 = 0; + return 24; + } else if(((((((a16==6)&&((!(a20==1)&&(!(a17==1)&&!(a7==1)))&&(a8==15)))&&(a21==1))||(((a16==4)&&((((a7==1)&&(a17==1))&&(a20==1))&&(a8==13)))&&!(a21==1)))&&(input==4))&&(a12==8))){ + a17 = 0; + a16 = 5; + a21 = 1; + a8 = 14; + a7 = 1; + a20 = 1; + return -1; + } else if((!(a17==1)&&(((a12==8)&&(!(a20==1)&&(((a8==15)&&((a21==1)&&(input==4)))&&!(a7==1))))&&(a16==5)))){ + a17 = 1; + return 24; + } else if((((!(a7==1)&&(((input==2)&&((((a16==5)&&((a20==1)&&!(a17==1)))||((a16==6)&&((a20==1)&&!(a17==1))))||((a16==4)&&(!(a20==1)&&(a17==1)))))&&(a8==15)))&&(a12==8))&&(a21==1))){ + a17 = 0; + a16 = 5; + a20 = 1; + return 25; + } else if((!(a20==1)&&(((((((input==6)&&(a16==5))&&(a21==1))&&!(a17==1))&&(a12==8))&&!(a7==1))&&(a8==15)))){ + a17 = 1; + return 24; + } else if(((a12==8)&&(((((((a21==1)&&(input==5))&&(a8==15))&&(a17==1))&&!(a7==1))&&!(a20==1))&&(a16==6)))){ + a20 = 1; + a16 = 4; + a7 = 1; + a8 = 13; + return -1; + } else if(((((a8==15)&&(!(a7==1)&&((((!(a20==1)&&(a17==1))&&(a16==4))||(((!(a17==1)&&(a20==1))&&(a16==5))||((a16==6)&&((a20==1)&&!(a17==1)))))&&(input==6))))&&(a12==8))&&(a21==1))){ + a20 = 0; + a17 = 1; + a16 = 4; + return 22; + } else if(((a8==15)&&((a16==4)&&(!(a20==1)&&((((a21==1)&&(!(a17==1)&&(input==5)))&&!(a7==1))&&(a12==8)))))){ + a7 = 1; + a8 = 13; + a17 = 1; + a20 = 1; + return -1; + } else if(((a17==1)&&((a12==8)&&((a8==15)&&(((!(a7==1)&&(((a16==5)||(a16==6))&&(input==2)))&&(a21==1))&&(a20==1)))))){ + a17 = 0; + a16 = 6; + return 22; + } else if((!(a7==1)&&(((a8==15)&&((!(a17==1)&&((a12==8)&&((input==3)&&(a21==1))))&&(a16==4)))&&(a20==1)))){ + a17 = 1; + a7 = 1; + a8 = 13; + return -1; + } else if(((a16==5)&&((!(a21==1)&&(((a8==13)&&(((input==2)&&(a20==1))&&(a12==8)))&&(a7==1)))&&(a17==1)))){ + a21 = 1; + a8 = 14; + a16 = 4; + a20 = 0; + a7 = 0; + a17 = 0; + return -1; + } else if(((a20==1)&&(((a12==8)&&((a7==1)&&((a8==13)&&(((!(a17==1)&&(a16==5))||(((a17==1)&&(a16==6))||(!(a17==1)&&(a16==4))))&&(input==3)))))&&!(a21==1)))){ + a8 = 14; + a7 = 0; + a17 = 1; + a21 = 1; + a16 = 4; + return -1; + } else if(((a12==8)&&((a7==1)&&(!(a21==1)&&((a8==13)&&((input==6)&&(((a16==6)&&((a20==1)&&!(a17==1)))||((a16==4)&&((a17==1)&&!(a20==1)))))))))){ + a20 = 0; + a21 = 1; + a17 = 0; + a8 = 14; + a16 = 4; + return -1; + } else if(((!(a7==1)&&(!(a17==1)&&((((a16==4)&&((a8==15)&&(input==1)))&&(a12==8))&&(a21==1))))&&(a20==1))){ + a7 = 1; + a8 = 13; + a17 = 1; + return -1; + } else if(((a17==1)&&(((a21==1)&&(!(a20==1)&&((a12==8)&&((a8==15)&&(!(a7==1)&&(input==1))))))&&(a16==6)))){ + a20 = 1; + a8 = 13; + a7 = 1; + a16 = 4; + return -1; + } else if(((a20==1)&&((a12==8)&&((((a17==1)&&((((a16==5)||(a16==6))&&(input==4))&&(a8==15)))&&(a21==1))&&!(a7==1))))){ + a16 = 4; + a7 = 1; + a8 = 13; + return -1; + } else if(((((a8==13)&&((((!(a21==1)&&(input==6))&&(a20==1))&&(a12==8))&&(a17==1)))&&(a7==1))&&(a16==5))){ + a16 = 4; + a20 = 0; + return 25; + } else if(((a16==5)&&(((((a12==8)&&(!(a7==1)&&((input==2)&&!(a20==1))))&&(a21==1))&&(a17==1))&&(a8==15)))){ + a17 = 0; + return 24; + } else if((((a12==8)&&(((!(a17==1)&&((a21==1)&&((input==4)&&!(a7==1))))&&(a8==15))&&(a20==1)))&&(a16==4))){ + a20 = 0; + a17 = 1; + a16 = 6; + return 21; + } else if(((a7==1)&&((a8==13)&&((a12==8)&&(!(a21==1)&&((input==2)&&((((a20==1)&&!(a17==1))&&(a16==6))||(((a17==1)&&!(a20==1))&&(a16==4))))))))){ + a16 = 4; + a20 = 0; + a17 = 1; + return -1; + } else if((((((((!(a20==1)&&(!(a17==1)&&!(a7==1)))&&(a8==15))&&(a16==6))&&(a21==1))||((((a8==13)&&(((a17==1)&&(a7==1))&&(a20==1)))&&(a16==4))&&!(a21==1)))&&(input==6))&&(a12==8))){ + a20 = 1; + a8 = 13; + a16 = 4; + a7 = 0; + a21 = 1; + a17 = 0; + return -1; + } else if(((!(a7==1)&&(!(a17==1)&&(((((input==3)&&(a21==1))&&(a16==4))&&(a8==15))&&(a12==8))))&&!(a20==1))){ + a17 = 1; + a7 = 1; + a8 = 13; + a20 = 1; + return -1; + } else if((((((a12==8)&&(((((a17==1)&&!(a20==1))&&(a16==4))||((((a20==1)&&!(a17==1))&&(a16==5))||((!(a17==1)&&(a20==1))&&(a16==6))))&&(input==3)))&&(a8==15))&&(a21==1))&&!(a7==1))){ + a16 = 4; + a17 = 1; + a8 = 13; + a20 = 1; + a7 = 1; + return -1; + } else if((((!(a7==1)&&(((input==5)&&((((a16==5)&&(!(a17==1)&&(a20==1)))||((a16==6)&&((a20==1)&&!(a17==1))))||((a16==4)&&(!(a20==1)&&(a17==1)))))&&(a12==8)))&&(a21==1))&&(a8==15))){ + a16 = 4; + a17 = 1; + a7 = 1; + a20 = 1; + a8 = 13; + return -1; + } else if(((!(a7==1)&&(((a21==1)&&(((a17==1)&&((a12==8)&&(input==2)))&&!(a20==1)))&&(a16==6)))&&(a8==15))){ + a8 = 13; + a20 = 1; + a16 = 4; + a7 = 1; + return -1; + } else if(((!(a17==1)&&((a21==1)&&((!(a20==1)&&((a12==8)&&((input==3)&&!(a7==1))))&&(a8==15))))&&(a16==5))){ + a8 = 13; + a16 = 4; + return -1; + } else if((((a16==5)&&(!(a20==1)&&(((((input==6)&&(a21==1))&&(a17==1))&&!(a7==1))&&(a12==8))))&&(a8==15))){ + return 24; + } else if((!(a7==1)&&((a17==1)&&(((a16==6)&&(!(a20==1)&&(((input==6)&&(a12==8))&&(a21==1))))&&(a8==15))))){ + a7 = 1; + a8 = 13; + a20 = 1; + a16 = 4; + return -1; + } else if(((((a21==1)&&((a8==15)&&((a12==8)&&(!(a7==1)&&(!(a17==1)&&(input==2))))))&&(a16==4))&&(a20==1))){ + a17 = 1; + a8 = 13; + a7 = 1; + return -1; + } else if(((a8==15)&&(((a16==4)&&((a12==8)&&((!(a20==1)&&(!(a7==1)&&(input==1)))&&!(a17==1))))&&(a21==1)))){ + a16 = 6; + a20 = 1; + return 22; + } else if(((a21==1)&&(((a12==8)&&((((a17==1)&&((input==3)&&((a16==5)||(a16==6))))&&!(a7==1))&&(a20==1)))&&(a8==15)))){ + a17 = 0; + a16 = 4; + return 21; + } else if((!(a21==1)&&((a20==1)&&(((a12==8)&&((a8==13)&&((((a16==5)&&!(a17==1))||(((a17==1)&&(a16==6))||(!(a17==1)&&(a16==4))))&&(input==2))))&&(a7==1))))){ + a21 = 1; + a8 = 15; + a17 = 1; + a7 = 0; + a16 = 6; + a20 = 0; + return -1; + } else if(((a7==1)&&((a12==8)&&((((a20==1)&&(((!(a17==1)&&(a16==5))||(((a17==1)&&(a16==6))||((a16==4)&&!(a17==1))))&&(input==4)))&&(a8==13))&&!(a21==1))))){ + a8 = 15; + a16 = 6; + a21 = 1; + a7 = 0; + a20 = 0; + a17 = 0; + return 26; + } else if(((a21==1)&&((((!(a7==1)&&((a8==15)&&(!(a20==1)&&(input==4))))&&(a17==1))&&(a16==5))&&(a12==8)))){ + return 24; + } else if((((!(a7==1)&&((!(a20==1)&&((a21==1)&&((input==3)&&(a17==1))))&&(a8==15)))&&(a12==8))&&(a16==5))){ + a20 = 1; + a8 = 13; + a7 = 1; + a16 = 4; + return -1; + } else if(((((!(a17==1)&&(!(a20==1)&&((a8==15)&&((input==1)&&(a16==5)))))&&(a12==8))&&(a21==1))&&!(a7==1))){ + return -1; + } else if(((((a21==1)&&((a8==15)&&(((a16==5)&&((a12==8)&&(input==1)))&&(a17==1))))&&!(a7==1))&&!(a20==1))){ + return 21; + } else if(((!(a21==1)&&((a20==1)&&((((a8==13)&&((a7==1)&&(input==5)))&&(a17==1))&&(a12==8))))&&(a16==5))){ + a21 = 1; + a7 = 0; + a17 = 0; + a8 = 14; + a20 = 0; + return -1; + } else if((((!(a7==1)&&((a21==1)&&((((input==6)&&(a20==1))&&(a8==15))&&!(a17==1))))&&(a12==8))&&(a16==4))){ + a7 = 1; + a8 = 13; + a17 = 1; + return -1; + } else if(((((a20==1)&&(((!(a21==1)&&((a7==1)&&(input==1)))&&(a8==13))&&(a17==1)))&&(a12==8))&&(a16==5))){ + a21 = 1; + a16 = 6; + a7 = 0; + return -1; + } else if(((a12==8)&&((input==5)&&((((((!(a17==1)&&!(a7==1))&&!(a20==1))&&(a8==15))&&(a16==6))&&(a21==1))||(!(a21==1)&&((a16==4)&&(((a20==1)&&((a7==1)&&(a17==1)))&&(a8==13)))))))){ + a20 = 0; + a21 = 1; + a8 = 14; + a17 = 0; + a16 = 5; + a7 = 1; + return -1; + } + if(((((((!(a17==1)&&(a7==1))&&!(a20==1))&&(a8==14))&&(a12==8))&&(a16==4))&&(a21==1))){ + error_20: exit(0); + } + if((((((((a17==1)&&!(a7==1))&&(a20==1))&&(a8==14))&&(a12==8))&&(a16==4))&&(a21==1))){ + error_47: exit(0); + } + if(((((((!(a17==1)&&(a7==1))&&!(a20==1))&&(a8==15))&&(a12==8))&&(a16==4))&&(a21==1))){ + error_32: exit(0); + } + if((((((((a17==1)&&!(a7==1))&&(a20==1))&&(a8==13))&&(a12==8))&&(a16==6))&&(a21==1))){ + error_37: exit(0); + } + if(((((((!(a17==1)&&!(a7==1))&&!(a20==1))&&(a8==14))&&(a12==8))&&(a16==4))&&(a21==1))){ + error_56: exit(0); + } + if(((((((!(a17==1)&&(a7==1))&&!(a20==1))&&(a8==15))&&(a12==8))&&(a16==5))&&(a21==1))){ + error_33: exit(0); + } + if(((((((!(a17==1)&&!(a7==1))&&!(a20==1))&&(a8==14))&&(a12==8))&&(a16==5))&&(a21==1))){ + error_57: exit(0); + } + if(((((((!(a17==1)&&!(a7==1))&&(a20==1))&&(a8==14))&&(a12==8))&&(a16==4))&&(a21==1))){ + error_50: exit(0); + } + if((((((((a17==1)&&!(a7==1))&&(a20==1))&&(a8==13))&&(a12==8))&&(a16==4))&&(a21==1))){ + error_35: exit(0); + } + if(((((((!(a17==1)&&(a7==1))&&(a20==1))&&(a8==14))&&(a12==8))&&(a16==5))&&(a21==1))){ + error_15: exit(0); + } + if(((((((!(a17==1)&&!(a7==1))&&(a20==1))&&(a8==13))&&(a12==8))&&(a16==4))&&(a21==1))){ + error_38: exit(0); + } + if(((((((!(a17==1)&&(a7==1))&&!(a20==1))&&(a8==14))&&(a12==8))&&(a16==5))&&(a21==1))){ + error_21: exit(0); + } + if(((((((!(a17==1)&&!(a7==1))&&!(a20==1))&&(a8==13))&&(a12==8))&&(a16==4))&&(a21==1))){ + error_44: exit(0); + } + if((((((((a17==1)&&!(a7==1))&&!(a20==1))&&(a8==13))&&(a12==8))&&(a16==4))&&(a21==1))){ + error_41: exit(0); + } + if((((((((a17==1)&&(a7==1))&&!(a20==1))&&(a8==14))&&(a12==8))&&(a16==6))&&(a21==1))){ + error_19: exit(0); + } + if(((((((!(a17==1)&&!(a7==1))&&(a20==1))&&(a8==13))&&(a12==8))&&(a16==6))&&(a21==1))){ + error_40: exit(0); + } + if(((((((!(a17==1)&&(a7==1))&&(a20==1))&&(a8==15))&&(a12==8))&&(a16==5))&&(a21==1))){ + error_27: exit(0); + } + if((((((((a17==1)&&!(a7==1))&&(a20==1))&&(a8==15))&&(a12==8))&&(a16==4))&&(a21==1))){ + error_59: exit(0); + } + if(((((((!(a17==1)&&(a7==1))&&(a20==1))&&(a8==13))&&(a12==8))&&(a16==4))&&(a21==1))){ + error_2: exit(0); + } + if((((((((a17==1)&&(a7==1))&&(a20==1))&&(a8==13))&&(a12==8))&&(a16==6))&&(a21==1))){ + error_1: exit(0); + } + if((((((((a17==1)&&(a7==1))&&!(a20==1))&&(a8==15))&&(a12==8))&&(a16==6))&&(a21==1))){ + error_31: exit(0); + } + if(((((((!(a17==1)&&(a7==1))&&(a20==1))&&(a8==15))&&(a12==8))&&(a16==6))&&(a21==1))){ + error_28: exit(0); + } + if((((((((a17==1)&&(a7==1))&&!(a20==1))&&(a8==13))&&(a12==8))&&(a16==4))&&(a21==1))){ + error_5: exit(0); + } + if((((((((a17==1)&&(a7==1))&&(a20==1))&&(a8==15))&&(a12==8))&&(a16==4))&&(a21==1))){ + error_23: exit(0); + } + if(((((((!(a17==1)&&(a7==1))&&(a20==1))&&(a8==13))&&(a12==8))&&(a16==6))&&(a21==1))){ + error_4: exit(0); + } + if((((((((a17==1)&&(a7==1))&&(a20==1))&&(a8==13))&&(a12==8))&&(a16==4))&&(a21==1))){ + globalError: exit(0); + } + if((((((((a17==1)&&(a7==1))&&(a20==1))&&(a8==15))&&(a12==8))&&(a16==5))&&(a21==1))){ + error_24: exit(0); + } + if(((((((!(a17==1)&&!(a7==1))&&!(a20==1))&&(a8==14))&&(a12==8))&&(a16==6))&&(a21==1))){ + error_58: exit(0); + } + if((((((((a17==1)&&(a7==1))&&!(a20==1))&&(a8==14))&&(a12==8))&&(a16==5))&&(a21==1))){ + error_18: exit(0); + } + if((((((((a17==1)&&(a7==1))&&!(a20==1))&&(a8==15))&&(a12==8))&&(a16==4))&&(a21==1))){ + error_29: exit(0); + } + if((((((((a17==1)&&!(a7==1))&&(a20==1))&&(a8==13))&&(a12==8))&&(a16==5))&&(a21==1))){ + error_36: exit(0); + } + if(((((((!(a17==1)&&(a7==1))&&(a20==1))&&(a8==15))&&(a12==8))&&(a16==4))&&(a21==1))){ + error_26: exit(0); + } + if((((((((a17==1)&&(a7==1))&&!(a20==1))&&(a8==13))&&(a12==8))&&(a16==6))&&(a21==1))){ + error_7: exit(0); + } + if(((((((!(a17==1)&&(a7==1))&&!(a20==1))&&(a8==15))&&(a12==8))&&(a16==6))&&(a21==1))){ + error_34: exit(0); + } + if(((((((!(a17==1)&&!(a7==1))&&(a20==1))&&(a8==14))&&(a12==8))&&(a16==5))&&(a21==1))){ + error_51: exit(0); + } + if((((((((a17==1)&&!(a7==1))&&(a20==1))&&(a8==14))&&(a12==8))&&(a16==6))&&(a21==1))){ + error_49: exit(0); + } + if((((((((a17==1)&&(a7==1))&&(a20==1))&&(a8==13))&&(a12==8))&&(a16==5))&&(a21==1))){ + error_0: __VERIFIER_error(); + } + if((((((((a17==1)&&(a7==1))&&(a20==1))&&(a8==14))&&(a12==8))&&(a16==4))&&(a21==1))){ + error_11: exit(0); + } + if(((((((!(a17==1)&&(a7==1))&&!(a20==1))&&(a8==13))&&(a12==8))&&(a16==6))&&(a21==1))){ + error_10: exit(0); + } + if((((((((a17==1)&&!(a7==1))&&!(a20==1))&&(a8==14))&&(a12==8))&&(a16==6))&&(a21==1))){ + error_55: exit(0); + } + if(((((((!(a17==1)&&!(a7==1))&&!(a20==1))&&(a8==13))&&(a12==8))&&(a16==6))&&(a21==1))){ + error_46: exit(0); + } + if(((((((!(a17==1)&&(a7==1))&&!(a20==1))&&(a8==13))&&(a12==8))&&(a16==4))&&(a21==1))){ + error_8: exit(0); + } + if((((((((a17==1)&&!(a7==1))&&!(a20==1))&&(a8==14))&&(a12==8))&&(a16==4))&&(a21==1))){ + error_53: exit(0); + } + if((((((((a17==1)&&!(a7==1))&&!(a20==1))&&(a8==13))&&(a12==8))&&(a16==5))&&(a21==1))){ + error_42: exit(0); + } + if((((((((a17==1)&&(a7==1))&&!(a20==1))&&(a8==14))&&(a12==8))&&(a16==4))&&(a21==1))){ + error_17: exit(0); + } + if(((((((!(a17==1)&&!(a7==1))&&!(a20==1))&&(a8==13))&&(a12==8))&&(a16==5))&&(a21==1))){ + error_45: exit(0); + } + if(((((((!(a17==1)&&(a7==1))&&!(a20==1))&&(a8==13))&&(a12==8))&&(a16==5))&&(a21==1))){ + error_9: exit(0); + } + if((((((((a17==1)&&(a7==1))&&(a20==1))&&(a8==15))&&(a12==8))&&(a16==6))&&(a21==1))){ + error_25: exit(0); + } + if((((((((a17==1)&&(a7==1))&&(a20==1))&&(a8==14))&&(a12==8))&&(a16==5))&&(a21==1))){ + error_12: exit(0); + } + if((((((((a17==1)&&!(a7==1))&&(a20==1))&&(a8==14))&&(a12==8))&&(a16==5))&&(a21==1))){ + error_48: exit(0); + } + if((((((((a17==1)&&!(a7==1))&&!(a20==1))&&(a8==14))&&(a12==8))&&(a16==5))&&(a21==1))){ + error_54: exit(0); + } + if((((((((a17==1)&&(a7==1))&&(a20==1))&&(a8==14))&&(a12==8))&&(a16==6))&&(a21==1))){ + error_13: exit(0); + } + if((((((((a17==1)&&(a7==1))&&!(a20==1))&&(a8==13))&&(a12==8))&&(a16==5))&&(a21==1))){ + error_6: exit(0); + } + if((((((((a17==1)&&(a7==1))&&!(a20==1))&&(a8==15))&&(a12==8))&&(a16==5))&&(a21==1))){ + error_30: exit(0); + } + if(((((((!(a17==1)&&!(a7==1))&&(a20==1))&&(a8==14))&&(a12==8))&&(a16==6))&&(a21==1))){ + error_52: exit(0); + } + if(((((((!(a17==1)&&(a7==1))&&!(a20==1))&&(a8==14))&&(a12==8))&&(a16==6))&&(a21==1))){ + error_22: exit(0); + } + if((((((((a17==1)&&!(a7==1))&&!(a20==1))&&(a8==13))&&(a12==8))&&(a16==6))&&(a21==1))){ + error_43: exit(0); + } + if(((((((!(a17==1)&&(a7==1))&&(a20==1))&&(a8==13))&&(a12==8))&&(a16==5))&&(a21==1))){ + error_3: exit(0); + } + if(((((((!(a17==1)&&(a7==1))&&(a20==1))&&(a8==14))&&(a12==8))&&(a16==6))&&(a21==1))){ + error_16: exit(0); + } + if(((((((!(a17==1)&&(a7==1))&&(a20==1))&&(a8==14))&&(a12==8))&&(a16==4))&&(a21==1))){ + error_14: exit(0); + } + if(((((((!(a17==1)&&!(a7==1))&&(a20==1))&&(a8==13))&&(a12==8))&&(a16==5))&&(a21==1))){ + error_39: exit(0); + } + return -2; + } + +int main() +{ + // default output + int output = -1; + + // main i/o-loop + while(1) + { + // read input + int input; + input = __VERIFIER_nondet_int(); + if ((input != 1) && (input != 2) && (input != 3) && (input != 4) && (input != 5) && (input != 6)) return -2; + + // operate eca engine + output = calculate_output(input); + + } +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem02_label00_true-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem02_label00_true-unreach-call.c new file mode 100644 index 000000000..1e4523608 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem02_label00_true-unreach-call.c @@ -0,0 +1,616 @@ +extern void __VERIFIER_error(void); +extern int __VERIFIER_nondet_int(void); +extern void exit(int); + + // inputs + int a= 1; + int e= 5; + int d= 4; + int f= 6; + int c= 3; + + // outputs + int u = 21; + int v = 22; + int w = 23; + int x = 24; + int y = 25; + int z = 26; + + + int a25 = 0; + int a11 = 0; + int a28 = 7; + int a19 = 1; + int a21 = 1; + int a17 = 8; + + int calculate_output(int input) { + if((((!(a11==1)&&((a19==1)&&((input==4)&&((!(a25==1)&&(a28==8))||((a25==1)&&(a28==9))))))&&(a21==1))&&(a17==8))){ + a28 = 9; + a11 = 1; + a25 = 1; + return -1; + } else if(((a17==8)&&((((!(a11==1)&&((a21==1)&&(input==6)))&&(a28==7))&&(a19==1))&&!(a25==1)))){ + a28 = 10; + return 22; + } else if(((a21==1)&&((a19==1)&&((((((a25==1)||!(a25==1))&&(input==3))&&(a17==9))&&(a11==1))&&(a28==9))))){ + a28 = 7; + a25 = 1; + return 22; + } else if(((a28==9)&&(!(a19==1)&&((a21==1)&&((((input==4)&&!(a25==1))&&!(a11==1))&&(a17==8)))))){ + a25 = 1; + a19 = 1; + a11 = 1; + return -1; + } else if(((((a17==8)&&((((input==1)&&((a25==1)||!(a25==1)))&&!(a11==1))&&(a19==1)))&&(a21==1))&&(a28==10))){ + a25 = 0; + return -1; + } else if(((a19==1)&&(!(a25==1)&&((a21==1)&&((((input==1)&&(a17==8))&&!(a11==1))&&(a28==7)))))){ + a28 = 11; + a25 = 1; + return 26; + } else if(((((!(a19==1)&&((input==1)&&((((a25==1)&&(a28==7))||((a28==7)&&!(a25==1)))||((a25==1)&&(a28==8)))))&&(a21==1))&&(a17==8))&&!(a11==1))){ + a28 = 7; + a11 = 1; + a25 = 0; + return -1; + } else if(((a19==1)&&(((((input==1)&&(((a25==1)&&(a28==8))||(((a28==7)&&(a25==1))||((a28==7)&&!(a25==1)))))&&(a11==1))&&(a21==1))&&(a17==9)))){ + a28 = 11; + a17 = 7; + a11 = 0; + a25 = 1; + return 22; + } else if(((a19==1)&&(((a17==8)&&(((input==6)&&((!(a25==1)&&(a28==8))||((a25==1)&&(a28==9))))&&!(a11==1)))&&(a21==1)))){ + a28 = 10; + a25 = 0; + return 22; + } else if((!(a11==1)&&((((a21==1)&&((input==1)&&(((a28==8)&&!(a25==1))||((a25==1)&&(a28==9)))))&&!(a19==1))&&(a17==8)))){ + a28 = 7; + a25 = 0; + a11 = 1; + return -1; + } else if((!(a19==1)&&(((((a17==8)&&((a25==1)&&(input==3)))&&(a28==10))&&!(a11==1))&&(a21==1)))){ + if((a19==1)){ + + }else{ + a19 = 1; + a28 = 8; + } + return 26; + } else if((((!(a19==1)&&((a21==1)&&((((a25==1)&&(a28==8))||(((a28==7)&&(a25==1))||((a28==7)&&!(a25==1))))&&(input==4))))&&!(a11==1))&&(a17==8))){ + if((a28==10)){ + a28 = 7; + a25 = 1; + }else{ + a28 = 8; + a25 = 0; + } + return 22; + } else if(((a17==8)&&((a21==1)&&((a25==1)&&((a19==1)&&(!(a11==1)&&((a28==11)&&(input==3)))))))){ + a28 = 10; + a25 = 0; + return -1; + } else if(((a28==9)&&(((!(a19==1)&&(((input==3)&&!(a11==1))&&(a17==8)))&&!(a25==1))&&(a21==1)))){ + a28 = 10; + a19 = 1; + return 22; + } else if(((!(a11==1)&&(((a28==11)&&((a25==1)&&((input==1)&&(a19==1))))&&(a17==8)))&&(a21==1))){ + a17 = 7; + a25 = 0; + a11 = 1; + a28 = 10; + a19 = 0; + return -1; + } else if((((a11==1)&&((((((a25==1)&&(a28==8))||(((a25==1)&&(a28==7))||(!(a25==1)&&(a28==7))))&&(input==6))&&(a19==1))&&(a17==9)))&&(a21==1))){ + a17 = 8; + a25 = 0; + a19 = 0; + a28 = 11; + a11 = 0; + return 23; + } else if(((a17==8)&&((a21==1)&&(!(a11==1)&&(!(a19==1)&&(((!(a25==1)&&(a28==8))||((a25==1)&&(a28==9)))&&(input==3))))))){ + a28 = 10; + a19 = 1; + a11 = 1; + a25 = 1; + return -1; + } else if((((((a21==1)&&((a28==10)&&((input==1)&&(a25==1))))&&!(a11==1))&&(a17==8))&&!(a19==1))){ + a25 = 0; + a19 = 1; + return 26; + } else if((!(a11==1)&&(!(a19==1)&&(((a17==8)&&((input==6)&&((((a25==1)&&(a28==7))||((a28==7)&&!(a25==1)))||((a28==8)&&(a25==1)))))&&(a21==1))))){ + a17 = 7; + a25 = 1; + a11 = 1; + a28 = 7; + a19 = 1; + return -1; + } else if(((((a17==8)&&(!(a19==1)&&(((input==6)&&(a21==1))&&!(a25==1))))&&!(a11==1))&&(a28==9))){ + a28 = 10; + a19 = 1; + return 22; + } else if((!(a11==1)&&((!(a25==1)&&(((a21==1)&&((input==1)&&(a19==1)))&&(a17==8)))&&(a28==11)))){ + a28 = 7; + a19 = 0; + a11 = 1; + return -1; + } else if((((a11==1)&&(((a19==1)&&((a21==1)&&(((a25==1)||!(a25==1))&&(input==4))))&&(a17==9)))&&(a28==9))){ + a25 = 0; + a17 = 8; + return -1; + } else if(((!(a11==1)&&((a28==9)&&(((!(a19==1)&&(input==5))&&!(a25==1))&&(a21==1))))&&(a17==8))){ + a17 = 7; + a11 = 1; + a25 = 1; + return -1; + } else if(((!(a11==1)&&(((a17==8)&&(((((a28==7)&&(a25==1))||(!(a25==1)&&(a28==7)))||((a28==8)&&(a25==1)))&&(input==3)))&&!(a19==1)))&&(a21==1))){ + a11 = 1; + a19 = 1; + a28 = 10; + a25 = 1; + return -1; + } else if(((a21==1)&&(!(a19==1)&&((((input==5)&&(((a28==8)&&(a25==1))||(((a25==1)&&(a28==7))||(!(a25==1)&&(a28==7)))))&&!(a11==1))&&(a17==8))))){ + a25 = 1; + a19 = 1; + a28 = 7; + return -1; + } else if((((a17==9)&&(((a28==8)&&(((input==1)&&(a19==1))&&!(a25==1)))&&(a11==1)))&&(a21==1))){ + a17 = 8; + a19 = 0; + a28 = 9; + a25 = 1; + return 22; + } else if((((a21==1)&&((a19==1)&&((a28==7)&&((a17==8)&&(!(a25==1)&&(input==3))))))&&!(a11==1))){ + a25 = 1; + a28 = 9; + return 26; + } else if(((a28==11)&&(((a17==8)&&((((input==6)&&(a21==1))&&(a19==1))&&!(a25==1)))&&!(a11==1)))){ + a17 = 7; + a11 = 1; + a28 = 7; + a25 = 1; + return -1; + } else if(((!(a11==1)&&(((a17==8)&&((a21==1)&&((input==3)&&(a28==8))))&&(a19==1)))&&(a25==1))){ + a28 = 10; + a19 = 0; + return 26; + } else if((((a21==1)&&(((a19==1)&&(((((a25==1)&&(a28==7))||((a28==7)&&!(a25==1)))||((a25==1)&&(a28==8)))&&(input==4)))&&(a11==1)))&&(a17==9))){ + a17 = 8; + a25 = 1; + a11 = 0; + a28 = 8; + return -1; + } else if((((!(a11==1)&&((a17==8)&&(((input==4)&&(a19==1))&&(a28==8))))&&(a21==1))&&(a25==1))){ + return 22; + } else if(((a19==1)&&((((((input==4)&&(a21==1))&&(a28==9))&&!(a25==1))&&!(a11==1))&&(a17==8)))){ + return 22; + } else if(((a17==8)&&((((((input==1)&&(a21==1))&&!(a11==1))&&(a19==1))&&!(a25==1))&&(a28==9)))){ + return 23; + } else if((((((((input==4)&&((a25==1)||!(a25==1)))&&!(a11==1))&&(a21==1))&&(a17==8))&&(a28==10))&&(a19==1))){ + a25 = 1; + return 22; + } else if(((!(a25==1)&&((a11==1)&&((a28==8)&&(((a17==9)&&(input==4))&&(a19==1)))))&&(a21==1))){ + a17 = 7; + a11 = 0; + return 22; + } else if((!(a19==1)&&((a17==8)&&((a28==10)&&(((a25==1)&&(!(a11==1)&&(input==5)))&&(a21==1)))))){ + a19 = 1; + a28 = 11; + return 23; + } else if((((((a21==1)&&((input==1)&&((!(a25==1)&&(a28==8))||((a25==1)&&(a28==9)))))&&(a17==8))&&!(a11==1))&&(a19==1))){ + if((a11==1)){ + a19 = 0; + a25 = 0; + a28 = 9; + }else{ + a25 = 1; + a28 = 9; + } + return 23; + } else if(((a21==1)&&((((a19==1)&&((a25==1)&&((a28==11)&&(input==6))))&&!(a11==1))&&(a17==8)))){ + a28 = 10; + return -1; + } else if((!(a11==1)&&((a19==1)&&((a28==10)&&(((((a25==1)||!(a25==1))&&(input==5))&&(a17==8))&&(a21==1)))))){ + a25 = 1; + return -1; + } else if((((((a17==9)&&((((a25==1)||!(a25==1))&&(input==6))&&(a11==1)))&&(a19==1))&&(a21==1))&&(a28==9))){ + a17 = 8; + a28 = 8; + a25 = 1; + return -1; + } else if((((a17==8)&&(((((input==6)&&(a25==1))&&!(a19==1))&&!(a11==1))&&(a28==10)))&&(a21==1))){ + return 26; + } else if(((!(a19==1)&&((a17==8)&&(!(a11==1)&&((input==1)&&((((a28==10)&&!(a25==1))||((a25==1)&&(a28==11)))||(!(a25==1)&&(a28==11)))))))&&(a21==1))){ + a28 = 7; + a25 = 1; + a19 = 1; + a17 = 7; + a11 = 1; + return 22; + } else if((((((((input==1)&&(a21==1))&&(a28==9))&&!(a19==1))&&!(a25==1))&&(a17==8))&&!(a11==1))){ + return 23; + } else if(((a17==8)&&(((!(a11==1)&&((!(a25==1)&&(input==4))&&(a19==1)))&&(a28==7))&&(a21==1)))){ + a28 = 9; + return 23; + } else if((!(a11==1)&&(((a17==8)&&((((!(a25==1)&&(a28==11))||((!(a25==1)&&(a28==10))||((a28==11)&&(a25==1))))&&(input==3))&&(a21==1)))&&!(a19==1)))){ + if((a25==1)){ + a19 = 1; + a28 = 7; + a25 = 1; + a11 = 1; + }else{ + a28 = 7; + a25 = 1; + } + return -1; + } else if(((((!(a11==1)&&(((!(a25==1)&&(a28==8))||((a25==1)&&(a28==9)))&&(input==5)))&&(a21==1))&&!(a19==1))&&(a17==8))){ + a25 = 1; + a19 = 1; + a28 = 7; + return -1; + } else if((((a17==9)&&(((((input==1)&&((a25==1)||!(a25==1)))&&(a11==1))&&(a21==1))&&(a19==1)))&&(a28==9))){ + a28 = 7; + a17 = 8; + a25 = 0; + a11 = 0; + return -1; + } else if((!(a11==1)&&((a19==1)&&(((((a28==9)&&(input==6))&&(a21==1))&&(a17==8))&&!(a25==1))))){ + return 23; + } else if(((a17==9)&&((a21==1)&&((a11==1)&&(((input==3)&&(((a25==1)&&(a28==8))||(((a28==7)&&(a25==1))||(!(a25==1)&&(a28==7)))))&&(a19==1)))))){ + if((a19==1)){ + a25 = 0; + a19 = 0; + a17 = 7; + a28 = 9; + a11 = 0; + }else{ + a19 = 0; + a11 = 0; + a28 = 10; + a25 = 1; + a17 = 7; + } + return 23; + } else if(((a28==7)&&((a17==8)&&(!(a25==1)&&((a21==1)&&((a19==1)&&((input==5)&&!(a11==1)))))))){ + a25 = 1; + a28 = 8; + return 21; + } else if(((a28==8)&&((a21==1)&&((!(a11==1)&&(((input==1)&&(a17==8))&&(a19==1)))&&(a25==1))))){ + a28 = 10; + return 26; + } else if((((((a17==8)&&(((input==6)&&((a25==1)||!(a25==1)))&&(a21==1)))&&(a28==10))&&!(a11==1))&&(a19==1))){ + a25 = 0; + return 22; + } else if(((!(a11==1)&&((!(a19==1)&&(((!(a25==1)&&(a28==11))||(((a28==10)&&!(a25==1))||((a25==1)&&(a28==11))))&&(input==5)))&&(a17==8)))&&(a21==1))){ + a25 = 0; + a19 = 1; + a28 = 9; + return -1; + } else if(((a17==8)&&(((a21==1)&&(!(a11==1)&&((a25==1)&&((a28==8)&&(input==6)))))&&(a19==1)))){ + return 26; + } else if((((a19==1)&&((a17==8)&&(((!(a25==1)&&(input==5))&&(a21==1))&&!(a11==1))))&&(a28==11))){ + a28 = 7; + a25 = 1; + return -1; + } else if(((a11==1)&&(((a17==9)&&((a28==9)&&((a19==1)&&(((a25==1)||!(a25==1))&&(input==5)))))&&(a21==1)))){ + if((a11==1)){ + a25 = 0; + a17 = 8; + }else{ + a28 = 7; + a25 = 0; + a11 = 0; + a19 = 0; + a17 = 8; + } + return 25; + } else if((((((((input==3)&&(a19==1))&&(a21==1))&&(a17==8))&&!(a25==1))&&(a28==11))&&!(a11==1))){ + a25 = 1; + a11 = 1; + a28 = 10; + return -1; + } else if(((a19==1)&&((a21==1)&&((((input==5)&&(((a25==1)&&(a28==8))||(((a28==7)&&(a25==1))||(!(a25==1)&&(a28==7)))))&&(a11==1))&&(a17==9))))){ + if((a25==1)){ + a11 = 0; + a19 = 0; + a25 = 1; + a28 = 10; + a17 = 8; + }else{ + a17 = 8; + a25 = 1; + a11 = 0; + a28 = 8; + } + return 22; + } else if((((a19==1)&&(((!(a11==1)&&(((a25==1)||!(a25==1))&&(input==3)))&&(a28==10))&&(a21==1)))&&(a17==8))){ + a25 = 0; + return -1; + } else if(((!(a11==1)&&(((((input==4)&&(a17==8))&&!(a25==1))&&(a21==1))&&(a28==11)))&&(a19==1))){ + if((a11==1)){ + a28 = 8; + a19 = 0; + } + return 22; + } else if((((!(a19==1)&&(((input==4)&&(((!(a25==1)&&(a28==10))||((a28==11)&&(a25==1)))||(!(a25==1)&&(a28==11))))&&(a21==1)))&&(a17==8))&&!(a11==1))){ + if((a17==7)){ + a25 = 0; + a28 = 9; + }else{ + a11 = 1; + a17 = 7; + a28 = 10; + a25 = 0; + a19 = 1; + } + return -1; + } else if((!(a11==1)&&(((a17==8)&&((((a25==1)&&(input==4))&&(a19==1))&&(a28==11)))&&(a21==1)))){ + a28 = 9; + a11 = 1; + a25 = 0; + return -1; + } else if((((((a21==1)&&((((a28==8)&&!(a25==1))||((a28==9)&&(a25==1)))&&(input==6)))&&!(a11==1))&&!(a19==1))&&(a17==8))){ + a19 = 1; + a11 = 1; + a17 = 7; + a28 = 7; + a25 = 1; + return -1; + } else if(((a19==1)&&((((a21==1)&&((!(a25==1)&&(input==3))&&(a17==9)))&&(a28==8))&&(a11==1)))){ + a25 = 1; + a11 = 0; + a17 = 8; + a28 = 7; + a19 = 0; + return -1; + } else if(((a17==8)&&(((a21==1)&&(((input==5)&&((!(a25==1)&&(a28==8))||((a28==9)&&(a25==1))))&&(a19==1)))&&!(a11==1)))){ + a11 = 1; + a19 = 0; + a25 = 1; + a17 = 7; + a28 = 9; + return -1; + } else if(((a19==1)&&(((((a17==8)&&((input==5)&&!(a11==1)))&&(a21==1))&&(a25==1))&&(a28==8)))){ + a28 = 11; + return 23; + } else if((((!(a11==1)&&((((a21==1)&&(input==4))&&(a28==10))&&(a17==8)))&&!(a19==1))&&(a25==1))){ + return 22; + } else if(((a28==8)&&(((a19==1)&&((a11==1)&&(!(a25==1)&&((a17==9)&&(input==6)))))&&(a21==1)))){ + if((a25==1)){ + a17 = 8; + a11 = 0; + }else{ + a28 = 11; + a17 = 7; + } + return 21; + } else if((!(a11==1)&&((((a21==1)&&((input==6)&&((((a28==10)&&!(a25==1))||((a25==1)&&(a28==11)))||(!(a25==1)&&(a28==11)))))&&(a17==8))&&!(a19==1)))){ + a28 = 11; + a19 = 1; + a25 = 1; + return 22; + } else if((((((!(a25==1)&&((a19==1)&&(input==3)))&&(a28==9))&&(a21==1))&&(a17==8))&&!(a11==1))){ + a19 = 0; + a28 = 7; + return 25; + } else if((((a17==8)&&((((input==4)&&(((a28==8)&&!(a25==1))||((a25==1)&&(a28==9))))&&(a21==1))&&!(a19==1)))&&!(a11==1))){ + a28 = 8; + a25 = 0; + return 22; + } else if((((!(a11==1)&&((((a19==1)&&(input==5))&&(a17==8))&&(a21==1)))&&(a28==9))&&!(a25==1))){ + return 21; + } else if((((a11==1)&&((a19==1)&&((a21==1)&&(((a17==9)&&(input==5))&&!(a25==1)))))&&(a28==8))){ + a17 = 7; + return -1; + } else if((!(a11==1)&&((a21==1)&&(((a19==1)&&((a17==8)&&((a25==1)&&(input==5))))&&(a28==11))))){ + return -1; + } else if(((a19==1)&&((a17==8)&&(((((!(a25==1)&&(a28==8))||((a25==1)&&(a28==9)))&&(input==3))&&!(a11==1))&&(a21==1))))){ + a25 = 0; + a28 = 10; + return 22; + } + if((((((!(a25==1)&&(a11==1))&&(a28==7))&&!(a19==1))&&(a21==1))&&(a17==8))){ + error_50: exit(0); + } + if(((((((a25==1)&&(a11==1))&&(a28==10))&&(a19==1))&&(a21==1))&&(a17==8))){ + error_45: exit(0); + } + if(((((((a25==1)&&!(a11==1))&&(a28==7))&&(a19==1))&&(a21==1))&&(a17==8))){ + error_59: exit(0); + } + if(((((((a25==1)&&(a11==1))&&(a28==7))&&(a19==1))&&(a21==1))&&(a17==7))){ + globalError: exit(0); + } + if(((((((a25==1)&&(a11==1))&&(a28==9))&&(a19==1))&&(a21==1))&&(a17==8))){ + error_43: exit(0); + } + if(((((((a25==1)&&(a11==1))&&(a28==9))&&!(a19==1))&&(a21==1))&&(a17==7))){ + error_13: exit(0); + } + if((((((!(a25==1)&&(a11==1))&&(a28==10))&&!(a19==1))&&(a21==1))&&(a17==7))){ + error_16: exit(0); + } + if((((((!(a25==1)&&(a11==1))&&(a28==9))&&(a19==1))&&(a21==1))&&(a17==8))){ + error_44: exit(0); + } + if((((((!(a25==1)&&(a11==1))&&(a28==7))&&(a19==1))&&(a21==1))&&(a17==8))){ + error_40: exit(0); + } + if(((((((a25==1)&&(a11==1))&&(a28==8))&&(a19==1))&&(a21==1))&&(a17==8))){ + error_41: exit(0); + } + if(((((((a25==1)&&(a11==1))&&(a28==11))&&!(a19==1))&&(a21==1))&&(a17==8))){ + error_57: exit(0); + } + if(((((((a25==1)&&!(a11==1))&&(a28==7))&&(a19==1))&&(a21==1))&&(a17==7))){ + error_19: exit(0); + } + if((((((!(a25==1)&&(a11==1))&&(a28==8))&&(a19==1))&&(a21==1))&&(a17==7))){ + error_2: exit(0); + } + if(((((((a25==1)&&!(a11==1))&&(a28==10))&&!(a19==1))&&(a21==1))&&(a17==7))){ + error_35: exit(0); + } + if(((((((a25==1)&&!(a11==1))&&(a28==11))&&(a19==1))&&(a21==1))&&(a17==7))){ + error_27: exit(0); + } + if(((((((a25==1)&&!(a11==1))&&(a28==8))&&(a19==1))&&(a21==1))&&(a17==7))){ + error_21: exit(0); + } + if((((((!(a25==1)&&!(a11==1))&&(a28==8))&&(a19==1))&&(a21==1))&&(a17==7))){ + error_22: exit(0); + } + if((((((!(a25==1)&&!(a11==1))&&(a28==9))&&!(a19==1))&&(a21==1))&&(a17==7))){ + error_34: exit(0); + } + if((((((!(a25==1)&&!(a11==1))&&(a28==7))&&(a19==1))&&(a21==1))&&(a17==7))){ + error_20: exit(0); + } + if((((((!(a25==1)&&(a11==1))&&(a28==8))&&(a19==1))&&(a21==1))&&(a17==8))){ + error_42: exit(0); + } + if((((((!(a25==1)&&(a11==1))&&(a28==9))&&!(a19==1))&&(a21==1))&&(a17==8))){ + error_54: exit(0); + } + if(((((((a25==1)&&!(a11==1))&&(a28==7))&&!(a19==1))&&(a21==1))&&(a17==7))){ + error_29: exit(0); + } + if((((((!(a25==1)&&(a11==1))&&(a28==11))&&!(a19==1))&&(a21==1))&&(a17==8))){ + error_58: exit(0); + } + if((((((!(a25==1)&&(a11==1))&&(a28==8))&&!(a19==1))&&(a21==1))&&(a17==8))){ + error_52: exit(0); + } + if(((((((a25==1)&&(a11==1))&&(a28==10))&&!(a19==1))&&(a21==1))&&(a17==8))){ + error_55: exit(0); + } + if((((((!(a25==1)&&(a11==1))&&(a28==9))&&(a19==1))&&(a21==1))&&(a17==7))){ + error_4: exit(0); + } + if(((((((a25==1)&&(a11==1))&&(a28==11))&&(a19==1))&&(a21==1))&&(a17==8))){ + error_47: exit(0); + } + if(((((((a25==1)&&(a11==1))&&(a28==8))&&!(a19==1))&&(a21==1))&&(a17==7))){ + error_11: exit(0); + } + if((((((!(a25==1)&&!(a11==1))&&(a28==8))&&!(a19==1))&&(a21==1))&&(a17==7))){ + error_32: exit(0); + } + if(((((((a25==1)&&(a11==1))&&(a28==8))&&!(a19==1))&&(a21==1))&&(a17==8))){ + error_51: exit(0); + } + if(((((((a25==1)&&(a11==1))&&(a28==7))&&(a19==1))&&(a21==1))&&(a17==8))){ + error_39: exit(0); + } + if((((((!(a25==1)&&(a11==1))&&(a28==10))&&(a19==1))&&(a21==1))&&(a17==8))){ + error_46: exit(0); + } + if(((((((a25==1)&&(a11==1))&&(a28==8))&&(a19==1))&&(a21==1))&&(a17==7))){ + error_1: exit(0); + } + if((((((!(a25==1)&&!(a11==1))&&(a28==9))&&(a19==1))&&(a21==1))&&(a17==7))){ + error_24: exit(0); + } + if((((((!(a25==1)&&(a11==1))&&(a28==7))&&(a19==1))&&(a21==1))&&(a17==7))){ + error_0: __VERIFIER_error(); + } + if(((((((a25==1)&&!(a11==1))&&(a28==8))&&!(a19==1))&&(a21==1))&&(a17==7))){ + error_31: exit(0); + } + if((((((!(a25==1)&&(a11==1))&&(a28==9))&&!(a19==1))&&(a21==1))&&(a17==7))){ + error_14: exit(0); + } + if((((((!(a25==1)&&(a11==1))&&(a28==8))&&!(a19==1))&&(a21==1))&&(a17==7))){ + error_12: exit(0); + } + if(((((((a25==1)&&(a11==1))&&(a28==11))&&!(a19==1))&&(a21==1))&&(a17==7))){ + error_17: exit(0); + } + if(((((((a25==1)&&!(a11==1))&&(a28==11))&&!(a19==1))&&(a21==1))&&(a17==7))){ + error_37: exit(0); + } + if(((((((a25==1)&&(a11==1))&&(a28==7))&&!(a19==1))&&(a21==1))&&(a17==7))){ + error_9: exit(0); + } + if((((((!(a25==1)&&(a11==1))&&(a28==11))&&(a19==1))&&(a21==1))&&(a17==7))){ + error_8: exit(0); + } + if((((((!(a25==1)&&(a11==1))&&(a28==10))&&!(a19==1))&&(a21==1))&&(a17==8))){ + error_56: exit(0); + } + if((((((!(a25==1)&&!(a11==1))&&(a28==11))&&(a19==1))&&(a21==1))&&(a17==7))){ + error_28: exit(0); + } + if(((((((a25==1)&&(a11==1))&&(a28==7))&&!(a19==1))&&(a21==1))&&(a17==8))){ + error_49: exit(0); + } + if(((((((a25==1)&&(a11==1))&&(a28==10))&&(a19==1))&&(a21==1))&&(a17==7))){ + error_5: exit(0); + } + if((((((!(a25==1)&&(a11==1))&&(a28==11))&&!(a19==1))&&(a21==1))&&(a17==7))){ + error_18: exit(0); + } + if((((((!(a25==1)&&!(a11==1))&&(a28==7))&&!(a19==1))&&(a21==1))&&(a17==7))){ + error_30: exit(0); + } + if(((((((a25==1)&&(a11==1))&&(a28==9))&&(a19==1))&&(a21==1))&&(a17==7))){ + error_3: exit(0); + } + if(((((((a25==1)&&(a11==1))&&(a28==10))&&!(a19==1))&&(a21==1))&&(a17==7))){ + error_15: exit(0); + } + if((((((!(a25==1)&&!(a11==1))&&(a28==11))&&!(a19==1))&&(a21==1))&&(a17==7))){ + error_38: exit(0); + } + if((((((!(a25==1)&&!(a11==1))&&(a28==10))&&!(a19==1))&&(a21==1))&&(a17==7))){ + error_36: exit(0); + } + if(((((((a25==1)&&!(a11==1))&&(a28==9))&&(a19==1))&&(a21==1))&&(a17==7))){ + error_23: exit(0); + } + if(((((((a25==1)&&!(a11==1))&&(a28==10))&&(a19==1))&&(a21==1))&&(a17==7))){ + error_25: exit(0); + } + if((((((!(a25==1)&&(a11==1))&&(a28==7))&&!(a19==1))&&(a21==1))&&(a17==7))){ + error_10: exit(0); + } + if((((((!(a25==1)&&!(a11==1))&&(a28==10))&&(a19==1))&&(a21==1))&&(a17==7))){ + error_26: exit(0); + } + if((((((!(a25==1)&&(a11==1))&&(a28==11))&&(a19==1))&&(a21==1))&&(a17==8))){ + error_48: exit(0); + } + if(((((((a25==1)&&(a11==1))&&(a28==9))&&!(a19==1))&&(a21==1))&&(a17==8))){ + error_53: exit(0); + } + if(((((((a25==1)&&(a11==1))&&(a28==11))&&(a19==1))&&(a21==1))&&(a17==7))){ + error_7: exit(0); + } + if((((((!(a25==1)&&(a11==1))&&(a28==10))&&(a19==1))&&(a21==1))&&(a17==7))){ + error_6: exit(0); + } + if(((((((a25==1)&&!(a11==1))&&(a28==9))&&!(a19==1))&&(a21==1))&&(a17==7))){ + error_33: exit(0); + } + return -2; + } + +int main() +{ + // default output + int output = -1; + + // main i/o-loop + while(1) + { + // read input + int input; + input = __VERIFIER_nondet_int(); + if ((input != 1) && (input != 3) && (input != 4) && (input != 5) && (input != 6)) return -2; + + // operate eca engine + output = calculate_output(input); + + } +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem03_label00_true-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem03_label00_true-unreach-call.c new file mode 100644 index 000000000..cfc0d21fb --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem03_label00_true-unreach-call.c @@ -0,0 +1,1668 @@ +extern void __VERIFIER_error(void); +extern int __VERIFIER_nondet_int(void); +extern void exit(int); + + // inputs + int d= 4; + int f= 6; + int a= 1; + int e= 5; + int c= 3; + int b= 2; + + // outputs + int u = 21; + int v = 22; + int w = 23; + int x = 24; + int y = 25; + int z = 26; + + + int a1 = 1; + int a4 = 1; + int a0 = 1; + int a15 = 1; + int a29 = 1; + int a10 = 1; + int a16 = 1; + int a22 = 1; + int a2 = 0; + int a17 = 0; + int a25 = 0; + int a7 = 0; + int a14 = 0; + int a19 = 0; + int a20 = 0; + int a8 = 0; + int a23 = 0; + int a21 = 1; + int a24 = 1; + int a13 = 1; + int a9 = 1; + int a28 = 1; + int a26 = 0; + int a6 = 0; + int a27 = 1; + int a12 = 0; + int a3 = 1; + int a11 = 0; + int a5 = 1; + int a18 = 1; + + int calculate_output(int input) { + if((((((a18==1)&&((((a22==1)&&(a4==1))||(a2==1))&&(a0==1)))&&(a11==1))&&(a3==2))&&(!(a8==1)&&(((a5==1)&&((a6==1)&&(((((!(a27==1)&&!(a26==1))&&(a12==1))||(((a26==1)&&(a27==1))&&!(a12==1)))&&(input==5))&&!(a2==1))))&&!(a25==1))))){ + if((a18==1)){ + a2 = 0; + a27 = 1; + a25 = 0; + a19 = 0; + a26 = 1; + a11 = 0; + a12 = 0; + }else{ + a12 = 0; + a29 = 1; + a26 = 1; + a27 = 1; + a6 = 0; + a1 = 1; + } + return 23; + } else if(((((a5==1)&&((a20==1)&&(((!(a26==1)&&(a27==1))||(!(a27==1)&&(a26==1)))&&(input==6))))&&!(a15==1))&&(((a3==2)&&(!(a1==1)&&((a18==1)&&((a19==1)&&(((((a0==1)&&!(a16==1))&&(a12==1))&&(a14==1))&&(a6==1))))))&&!(a11==1)))){ + a26 = 1; + a3 = 0; + a27 = 0; + a17 = 1; + a25 = 1; + a19 = 1; + a11 = 1; + return -1; + } else if(((!(a1==1)||((a10==1)&&((a4==1)&&!(a8==1))))&&((!(a11==1)&&(!(a14==1)&&(((a18==1)&&(!(a12==1)&&((((a3==2)&&(((((a26==1)&&(a27==1))||(!(a26==1)&&(a27==1)))||((a26==1)&&!(a27==1)))&&(input==5)))&&!(a8==1))&&(a16==1))))&&(a6==1))))&&(a5==1)))){ + a4 = 1; + a26 = 0; + a25 = 0; + a2 = 0; + a27 = 1; + return -1; + } else if(((((a3==1)&&(!(a6==1)&&((!(a14==1)&&(((input==5)&&!(a26==1))&&(a1==1)))&&!(a8==1))))&&(a27==1))&&(((!(a16==1)||((!(a12==1)&&((a5==1)&&((a29==1)&&!(a25==1))))&&(a18==1)))&&(a10==1))&&!(a11==1)))){ + a17 = 0; + a1 = 1; + a25 = 0; + a27 = 0; + return 26; + } else if(((!(a26==1)&&((a5==1)&&((a18==1)&&(((a4==1)&&!(a11==1))&&!(a6==1)))))&&(((a29==1)&&(!(a23==1)&&(!(a7==1)&&((!(a25==1)&&(((!(a27==1)&&(input==1))&&(a3==1))&&(a10==1)))&&!(a14==1)))))&&!(a12==1)))){ + a26 = 1; + a11 = 1; + a3 = 0; + a27 = 1; + a6 = 1; + a12 = 1; + a15 = 1; + a4 = 1; + return -1; + } else if(((((a16==1)&&((a3==2)&&((a11==1)&&((a20==1)||((a16==1)&&(a18==1))))))&&(a22==1))&&((a15==1)&&((a22==1)&&(((a5==1)&&(((((!(a26==1)&&!(a27==1))||(((a27==1)&&!(a26==1))||(!(a27==1)&&(a26==1))))&&(input==2))&&!(a17==1))&&!(a12==1)))&&(a6==1)))))){ + a7 = 0; + a1 = 1; + a3 = 0; + a12 = 1; + a26 = 1; + a27 = 1; + a14 = 0; + return -1; + } else if((((((a18==1)&&((((((!(a12==1)&&((!(a26==1)&&!(a6==1))&&!(a27==1)))&&(a3==2))&&!(a11==1))&&(a5==1))||(!(a5==1)&&(((a3==0)&&((a12==1)&&((a27==1)&&((a26==1)&&(a6==1)))))&&(a11==1))))&&(input==3)))&&!(a20==1))&&!(a23==1))&&(!(a29==1)||(!(a1==1)||(!(a15==1)||(!(a17==1)&&(a4==1))))))){ + a19 = 1; + a12 = 1; + a24 = 1; + a5 = 1; + a26 = 1; + a11 = 0; + a6 = 0; + a28 = 0; + a27 = 1; + a3 = 0; + return 25; + } else if(((((((!(a20==1)&&((((a15==1)&&((input==1)&&(((a12==1)&&(!(a27==1)&&!(a26==1)))||(((a27==1)&&(a26==1))&&!(a12==1)))))&&!(a8==1))&&(a5==1)))&&(a11==1))&&!(a17==1))&&(a4==1))&&(a6==1))&&(!(a19==1)&&((a18==1)&&((a3==2)&&(a0==1)))))){ + a16 = 1; + a22 = 1; + a8 = 0; + a3 = 0; + a26 = 1; + a12 = 1; + a27 = 1; + return -1; + } else if((((((a18==1)&&((!(a2==1)&&(((input==5)&&(((a12==1)&&(!(a26==1)&&!(a27==1)))||(!(a12==1)&&((a26==1)&&(a27==1)))))&&!(a7==1)))&&(a29==1)))&&(a0==1))&&(a11==1))&&((a6==1)&&((a7==1)||(!(a10==1)||(!(a5==1)&&((a3==0)&&(a0==1)))))))){ + a14 = 1; + a10 = 0; + a6 = 0; + a5 = 1; + a11 = 0; + a12 = 1; + a26 = 1; + a24 = 0; + a27 = 1; + return 21; + } else if(((((a7==1)||((!(a8==1)&&((!(a12==1)&&((a0==1)&&(a3==0)))&&!(a19==1)))&&(a11==1)))&&!(a5==1))&&((a18==1)&&((((a6==1)&&((a10==1)&&(((((a27==1)&&!(a26==1))||((a26==1)&&!(a27==1)))||(!(a27==1)&&!(a26==1)))&&(input==4))))&&(a1==1))&&(a22==1))))){ + a26 = 0; + a15 = 0; + a29 = 0; + a27 = 0; + a5 = 1; + a6 = 0; + a12 = 1; + return 25; + } else if(((!(a22==1)&&(((a5==1)&&((a3==2)&&((!(a22==1)&&((a17==1)&&(a10==1)))&&(a12==1))))&&!(a11==1)))&&((!(a15==1)&&(((a18==1)&&(((input==4)&&((!(a26==1)&&(a27==1))||((a26==1)&&!(a27==1))))&&(a20==1)))&&(a6==1)))&&!(a4==1)))){ + a26 = 1; + a29 = 0; + a28 = 1; + a11 = 1; + a6 = 0; + a27 = 0; + a25 = 1; + return -1; + } else if(((((a3==2)&&(((a6==1)&&((!(a23==1)&&(!(a25==1)&&(((((a26==1)&&(a27==1))||(!(a26==1)&&(a27==1)))||((a26==1)&&!(a27==1)))&&(input==2))))&&!(a11==1)))&&(a16==1)))&&(a18==1))&&((a5==1)&&((((a25==1)||((a4==1)&&(a22==1)))&&!(a25==1))&&!(a12==1))))){ + a6 = 0; + a29 = 1; + a11 = 1; + a26 = 1; + a7 = 0; + a27 = 1; + return 23; + } else if((((a11==1)&&((a18==1)&&((a22==1)&&((!(a23==1)&&(((!(a26==1)&&!(a27==1))||((!(a26==1)&&(a27==1))||((a26==1)&&!(a27==1))))&&(input==6)))&&!(a12==1)))))&&(!(a22==1)||((a6==1)&&(((a22==1)&&(((a5==1)&&((a4==1)||!(a10==1)))&&(a3==2)))||!(a22==1)))))){ + a27 = 1; + a17 = 0; + a10 = 1; + a3 = 0; + a8 = 0; + a26 = 1; + a12 = 1; + return -1; + } else if(((!(a26==1)&&((!(a22==1)||(!(a1==1)||((!(a8==1)&&(a29==1))||(a7==1))))&&(a29==1)))&&((a3==1)&&((a27==1)&&((!(a12==1)&&(!(a11==1)&&((a18==1)&&(((input==6)&&(a5==1))&&!(a6==1)))))&&!(a19==1)))))){ + a3 = 0; + a11 = 1; + a12 = 1; + a8 = 0; + a20 = 0; + a26 = 1; + a6 = 1; + a29 = 1; + return -1; + } else if((((a11==1)&&(!(a8==1)&&((((a12==1)&&(!(a26==1)&&!(a27==1)))||(!(a12==1)&&((a27==1)&&(a26==1))))&&(input==6))))&&(!(a5==1)&&((a3==0)&&((a18==1)&&((((!(a4==1)||(((a1==1)&&!(a8==1))&&(a6==1)))||(a14==1))||!(a0==1))&&(a4==1))))))){ + if((a29==1)){ + a12 = 1; + a26 = 1; + a5 = 1; + a0 = 0; + a27 = 1; + a3 = 2; + a21 = 1; + a6 = 0; + a29 = 0; + }else{ + a29 = 0; + a9 = 0; + a3 = 2; + a26 = 0; + a4 = 0; + a12 = 0; + a5 = 1; + a27 = 0; + } + return -1; + } else if(((!(a17==1)&&(!(a8==1)&&((a4==1)&&((a18==1)&&((a3==2)&&(!(a6==1)&&(((!(a17==1)&&((((!(a26==1)&&!(a27==1))&&(a12==1))||(!(a12==1)&&((a27==1)&&(a26==1))))&&(input==2)))&&(a5==1))&&!(a11==1))))))))&&(((a4==1)||(a2==1))||!(a10==1)))){ + a3 = 1; + a24 = 0; + a28 = 0; + a0 = 0; + a27 = 0; + a12 = 0; + a26 = 1; + return -1; + } else if((((a15==1)&&((a3==2)&&((a5==1)&&((((input==1)&&((!(a12==1)&&(((a6==1)&&!(a26==1))&&!(a27==1)))||(((a27==1)&&((a26==1)&&!(a6==1)))&&(a12==1))))&&!(a11==1))&&(a29==1)))))&&((a8==1)||((((a18==1)&&(!(a7==1)&&(a15==1)))&&!(a19==1))&&(a22==1))))){ + a12 = 1; + a27 = 1; + a26 = 1; + a25 = 0; + a6 = 1; + a3 = 0; + a16 = 1; + a10 = 1; + a11 = 1; + return -1; + } else if(((((((((!(a25==1)&&(a1==1))&&(a0==1))||(a7==1))&&!(a6==1))&&(a29==1))&&(a3==2))&&(a11==1))&&((a18==1)&&((((a27==1)&&(((!(a12==1)&&(input==2))&&(a29==1))&&!(a26==1)))&&!(a25==1))&&(a5==1))))){ + a1 = 1; + a19 = 0; + a0 = 1; + return 24; + } else if((((a0==1)&&((!(a6==1)&&(((a3==1)&&(!(a12==1)&&((a8==1)||((a22==1)&&!(a23==1)))))||!(a10==1)))&&!(a11==1)))&&(!(a27==1)&&((a26==1)&&((!(a14==1)&&(((input==1)&&(a5==1))&&(a29==1)))&&(a18==1)))))){ + a1 = 1; + a11 = 1; + a12 = 1; + a3 = 0; + a27 = 1; + a19 = 0; + a6 = 1; + a2 = 0; + return -1; + } else if(((((((a20==1)||((a4==1)&&((a20==1)||((a29==1)&&(a5==1)))))||!(a22==1))&&(a3==2))&&(a27==1))&&((!(a14==1)&&(!(a26==1)&&(((a1==1)&&((a18==1)&&(!(a12==1)&&(input==1))))&&(a11==1))))&&!(a6==1)))){ + a27 = 0; + a1 = 1; + a25 = 0; + a6 = 1; + a26 = 1; + a3 = 1; + a15 = 1; + return -1; + } else if(((((((((a11==1)&&((a6==1)&&(!(a7==1)&&(a22==1))))&&(a18==1))&&(a5==1))||(a14==1))&&(a16==1))&&(a29==1))&&((a10==1)&&(!(a2==1)&&((((((a26==1)&&!(a27==1))||(((a26==1)&&(a27==1))||((a27==1)&&!(a26==1))))&&(input==1))&&(a3==2))&&(a12==1)))))){ + a26 = 1; + a3 = 0; + a27 = 1; + a25 = 0; + a23 = 0; + a4 = 1; + return -1; + } else if((((a3==2)&&((!(a17==1)&&((a18==1)&&((a17==1)||(a16==1))))&&(a5==1)))&&(!(a25==1)&&(((!(a11==1)&&((((!(a12==1)&&((!(a26==1)&&(a6==1))&&!(a27==1)))||((a12==1)&&((!(a6==1)&&(a26==1))&&(a27==1))))&&(input==5))&&!(a7==1)))&&!(a19==1))&&!(a7==1))))){ + a3 = 0; + a12 = 1; + a26 = 1; + a11 = 1; + a15 = 1; + a6 = 1; + a27 = 1; + a2 = 0; + a23 = 0; + return -1; + } else if((((a1==1)&&(((!(a23==1)&&((a27==1)&&(!(a12==1)&&((a18==1)&&(!(a20==1)&&((input==1)&&(a11==1)))))))&&!(a23==1))&&!(a19==1)))&&(!(a20==1)&&((a3==2)&&((a5==1)&&(!(a6==1)&&((a16==1)&&(a26==1)))))))){ + a11 = 0; + a6 = 1; + a14 = 0; + a10 = 1; + a27 = 0; + a23 = 0; + return -1; + } else if(((((a18==1)&&(((!(a14==1)&&((a4==1)&&((a16==1)&&(((input==3)&&((a26==1)||!(a26==1)))&&(a22==1)))))&&(a11==1))&&(a5==1)))&&!(a6==1))&&((a27==1)&&((a12==1)&&(((a22==1)&&((a10==1)&&(a0==1)))&&(a3==2)))))){ + a11 = 0; + a17 = 0; + a7 = 0; + a26 = 1; + a6 = 1; + a20 = 0; + return 21; + } else if(((!(a25==1)&&((((((a11==1)&&(((!(a14==1)&&(!(a27==1)&&(a15==1)))&&(a12==1))&&(a5==1)))&&(a3==2))&&!(a2==1))||!(a15==1))&&!(a6==1)))&&((a22==1)&&(((a29==1)&&(((a26==1)||!(a26==1))&&(input==4)))&&(a18==1))))){ + a27 = 1; + a16 = 1; + a6 = 1; + a3 = 0; + a26 = 1; + a0 = 1; + a10 = 1; + return -1; + } else if((((a1==1)&&((a5==1)&&((!(a26==1)&&(a0==1))&&!(a6==1))))&&((((!(a23==1)&&((((!(a11==1)&&(((a3==1)&&(input==2))&&!(a27==1)))&&!(a12==1))&&(a0==1))&&!(a19==1)))&&!(a17==1))&&(a18==1))&&(a16==1)))){ + a3 = 0; + a12 = 1; + a11 = 1; + a6 = 1; + a14 = 0; + a27 = 1; + a0 = 1; + a7 = 0; + a26 = 1; + return -1; + } else if(((!(a6==1)&&((!(a8==1)&&((!(a7==1)&&((input==4)&&(a11==1)))&&(a5==1)))&&!(a8==1)))&&((a18==1)&&((!(a12==1)&&((((((a3==2)&&(a0==1))||!(a0==1))||!(a1==1))&&(a26==1))&&(a27==1)))||!(a16==1))))){ + a11 = 0; + a6 = 1; + a1 = 1; + a2 = 0; + a19 = 0; + return 23; + } else if((((!(a26==1)&&((((a27==1)&&((a10==1)&&(!(a25==1)&&(a22==1))))||!(a16==1))&&!(a2==1)))&&!(a7==1))&&(((a5==1)&&(((a18==1)&&((a0==1)&&(!(a11==1)&&((input==2)&&(a3==1)))))&&!(a6==1)))&&!(a12==1)))){ + a11 = 1; + a14 = 0; + a6 = 1; + a15 = 1; + a23 = 0; + a26 = 1; + a3 = 0; + a12 = 1; + return -1; + } else if(((!(a23==1)&&((a1==1)&&(!(a27==1)&&(((input==2)&&(a18==1))&&(a0==1)))))&&(((a12==1)&&((a3==2)&&((!(a11==1)&&((a5==1)&&((a2==1)||((a10==1)&&((a15==1)||(a7==1))))))&&!(a26==1))))&&(a6==1)))){ + a29 = 1; + a4 = 1; + a27 = 1; + a17 = 0; + a6 = 0; + a3 = 1; + a26 = 1; + a11 = 1; + return -1; + } else if(((!(a2==1)&&(((a3==2)&&((a5==1)&&((a12==1)&&((!(a11==1)&&((a6==1)&&((input==5)&&((!(a26==1)&&(a27==1))||((a26==1)&&!(a27==1))))))&&(a15==1)))))&&(a10==1)))&&(!(a0==1)||((!(a7==1)&&((a4==1)&&(a22==1)))&&(a18==1))))){ + a12 = 0; + a25 = 0; + a3 = 0; + a15 = 1; + a26 = 1; + a6 = 0; + a27 = 1; + return -1; + } else if(((((a0==1)&&(!(a17==1)&&((a0==1)&&((((input==5)&&((!(a26==1)&&!(a27==1))||((!(a26==1)&&(a27==1))||(!(a27==1)&&(a26==1)))))&&!(a2==1))&&!(a12==1)))))&&(a1==1))&&((((a18==1)&&((a11==1)&&(((a22==1)&&(a6==1))&&(a5==1))))&&(a3==2))||!(a29==1)))){ + a20 = 0; + a27 = 1; + a2 = 0; + a26 = 0; + a6 = 0; + a22 = 1; + return 24; + } else if(((((a3==1)&&(((((((a23==1)||(a15==1))||!(a15==1))&&(a26==1))&&!(a14==1))&&!(a19==1))&&!(a12==1)))&&!(a27==1))&&(!(a6==1)&&(((a5==1)&&((a0==1)&&((a10==1)&&((input==4)&&(a18==1)))))&&!(a11==1))))){ + a3 = 0; + a29 = 1; + a12 = 1; + a11 = 1; + a15 = 1; + a6 = 1; + a0 = 1; + a27 = 1; + return -1; + } else if((((a6==1)&&(((!(a19==1)&&((a0==1)&&(!(a5==1)&&(((input==3)&&(((!(a27==1)&&!(a26==1))&&(a12==1))||(((a26==1)&&(a27==1))&&!(a12==1))))&&(a10==1)))))&&!(a25==1))&&(a3==0)))&&((a11==1)&&((a18==1)&&((a4==1)&&(!(a4==1)||(a15==1))))))){ + a20 = 1; + a6 = 0; + a5 = 1; + a12 = 0; + a3 = 2; + a19 = 1; + a27 = 1; + a26 = 1; + a21 = 1; + return -1; + } else if(((((a6==1)&&(((a19==1)||((!(a19==1)&&(a29==1))||(a20==1)))&&!(a5==1)))&&(a18==1))&&((a11==1)&&((!(a23==1)&&((((a10==1)&&(((((a27==1)&&!(a26==1))||((a26==1)&&!(a27==1)))||(!(a27==1)&&!(a26==1)))&&(input==3)))&&!(a12==1))&&(a3==0)))&&!(a20==1))))){ + if((a15==1)){ + a11 = 0; + a24 = 0; + a0 = 0; + a26 = 1; + a6 = 0; + a27 = 1; + a5 = 1; + a9 = 1; + a3 = 2; + }else{ + a20 = 1; + a5 = 1; + a12 = 1; + a16 = 0; + a27 = 1; + a26 = 0; + } + return -1; + } else if((((a18==1)&&((((((a6==1)&&((input==2)&&(((!(a26==1)&&!(a27==1))&&(a12==1))||(!(a12==1)&&((a27==1)&&(a26==1))))))&&!(a23==1))&&(a11==1))&&(a0==1))&&!(a8==1)))&&((!(a7==1)&&((a3==2)&&(((a15==1)||(a14==1))&&(a5==1))))||!(a0==1)))){ + a3 = 0; + a23 = 0; + a12 = 1; + a27 = 1; + a1 = 1; + a26 = 1; + return -1; + } else if(((((((a3==2)&&((a5==1)&&(((a7==1)||(a22==1))&&!(a6==1))))&&!(a27==1))||!(a4==1))&&(a12==1))&&((a11==1)&&(((a18==1)&&((((((a26==1)||!(a26==1))&&(input==6))&&!(a19==1))&&!(a7==1))&&(a16==1)))&&(a0==1))))){ + a27 = 1; + a16 = 1; + a3 = 0; + a7 = 0; + a6 = 1; + a10 = 1; + a26 = 1; + return -1; + } else if(((((((((a4==1)&&((a18==1)&&((a11==1)&&((((a26==1)&&!(a27==1))||(((a27==1)&&(a26==1))||((a27==1)&&!(a26==1))))&&(input==6)))))&&(a10==1))&&(a22==1))&&!(a25==1))&&(a3==2))&&(a6==1))&&((((a5==1)&&((a12==1)&&(a15==1)))&&(a1==1))&&!(a7==1)))){ + a3 = 0; + a10 = 1; + a27 = 1; + a26 = 1; + a1 = 1; + a8 = 0; + return -1; + } else if(((((((a16==1)||!(a16==1))||(a25==1))&&(a18==1))&&!(a2==1))&&((a22==1)&&((((input==5)&&(((a5==1)&&(((((!(a26==1)&&!(a6==1))&&!(a27==1))&&!(a12==1))&&(a3==2))&&!(a11==1)))||(!(a5==1)&&(((((a27==1)&&((a6==1)&&(a26==1)))&&(a12==1))&&(a3==0))&&(a11==1)))))&&(a16==1))&&!(a7==1))))){ + a13 = 1; + a25 = 1; + a12 = 1; + a26 = 0; + a3 = 1; + a27 = 0; + a20 = 1; + a11 = 1; + a6 = 1; + a5 = 1; + return -1; + } else if(((((a18==1)&&((a5==1)&&(!(a12==1)&&(!(a20==1)&&(((input==5)&&((!(a26==1)&&(a27==1))||(!(a27==1)&&(a26==1))))&&(a0==1))))))&&(a3==2))&&(!(a11==1)&&(((a22==1)&&((a14==1)||(!(a6==1)&&((a10==1)||(a14==1)))))||(a2==1))))){ + a21 = 0; + a27 = 1; + a26 = 1; + a24 = 1; + a3 = 1; + return -1; + } else if(((((!(a27==1)&&((a3==2)&&(((!(a16==1)||(a29==1))&&(a22==1))||!(a22==1))))&&(a10==1))&&!(a8==1))&&(((!(a25==1)&&(!(a26==1)&&((((input==1)&&(a6==1))&&!(a11==1))&&(a5==1))))&&(a12==1))&&(a18==1)))){ + a26 = 1; + a2 = 0; + a29 = 1; + a6 = 0; + a11 = 1; + a23 = 0; + a3 = 0; + return -1; + } else if((((((!(a14==1)&&(((a0==1)&&((a15==1)&&(!(a8==1)&&((input==5)&&((!(a26==1)&&(a27==1))||(!(a27==1)&&(a26==1)))))))&&!(a25==1)))&&(a5==1))&&!(a6==1))&&(a18==1))&&(!(a11==1)&&((a3==2)&&((a12==1)&&((a10==1)&&!(a23==1))))))){ + a11 = 1; + a26 = 1; + a23 = 0; + a27 = 1; + a19 = 0; + a12 = 0; + return 23; + } else if(((((((a6==1)&&((a12==1)&&((a2==1)&&(a22==1))))&&(a23==1))&&(a8==1))&&(a7==1))&&((!(a11==1)&&(((a3==2)&&((a19==1)&&(((input==3)&&((!(a26==1)&&(a27==1))||((a26==1)&&!(a27==1))))&&(a5==1))))&&(a18==1)))&&(a17==1)))){ + a28 = 0; + a27 = 0; + a8 = 1; + a12 = 0; + a13 = 1; + a11 = 1; + a26 = 1; + return 23; + } else if(((((a3==2)&&(((a4==1)&&(!(a17==1)&&((!(a19==1)&&(((a26==1)&&((a27==1)&&((input==3)&&(a18==1))))&&(a0==1)))&&(a4==1))))&&!(a17==1)))&&(a5==1))&&(((!(a6==1)&&(a15==1))&&!(a12==1))&&(a11==1)))){ + if((a20==1)){ + a14 = 0; + a26 = 0; + a11 = 0; + a6 = 1; + a15 = 1; + }else{ + a10 = 1; + a17 = 0; + a14 = 0; + } + return 23; + } else if((((a22==1)&&(((((a29==1)||!(a4==1))||(a17==1))&&(a18==1))&&(a11==1)))&&(!(a6==1)&&((a12==1)&&((((a3==2)&&((a4==1)&&((a5==1)&&((a27==1)&&(((a26==1)||!(a26==1))&&(input==2))))))&&!(a8==1))&&(a15==1)))))){ + a25 = 0; + a1 = 1; + a3 = 0; + a7 = 0; + a26 = 1; + a6 = 1; + return -1; + } else if((((a6==1)&&((a19==1)||(((a8==1)||(!(a12==1)&&(((a5==1)&&(a10==1))||!(a4==1))))&&(a11==1))))&&((a18==1)&&(!(a19==1)&&(((a1==1)&&(((input==1)&&(((!(a26==1)&&(a27==1))||((a26==1)&&!(a27==1)))||(!(a27==1)&&!(a26==1))))&&(a3==2)))&&!(a20==1)))))){ + a0 = 1; + a12 = 1; + a26 = 1; + a2 = 0; + a27 = 1; + a1 = 1; + a3 = 0; + return -1; + } else if(((((a3==2)&&((a29==1)&&((a10==1)&&((a17==1)||((((a15==1)&&(a22==1))&&!(a12==1))&&(a29==1))))))&&(a6==1))&&((!(a11==1)&&((((((a26==1)&&!(a27==1))||(((a27==1)&&(a26==1))||((a27==1)&&!(a26==1))))&&(input==4))&&(a29==1))&&(a5==1)))&&(a18==1)))){ + if((a23==1)){ + a14 = 0; + a29 = 1; + a26 = 0; + a27 = 1; + a23 = 0; + }else{ + a27 = 1; + a26 = 1; + a25 = 0; + a11 = 1; + a4 = 1; + a6 = 0; + } + return 23; + } else if(((((a8==1)||((a14==1)||(((a22==1)&&(a11==1))&&!(a6==1))))&&!(a27==1))&&((a12==1)&&((a16==1)&&(!(a17==1)&&((a5==1)&&((a4==1)&&((a3==2)&&(((a0==1)&&(((a26==1)||!(a26==1))&&(input==2)))&&(a18==1)))))))))){ + a26 = 1; + a6 = 1; + a27 = 1; + a3 = 0; + a29 = 1; + a0 = 1; + a15 = 1; + return -1; + } else if((((((((((a26==1)||!(a26==1))&&(input==4))&&(a5==1))&&(a27==1))&&!(a19==1))&&(a18==1))&&(a16==1))&&(((!(a16==1)||((((a11==1)&&(((a15==1)&&(a3==2))&&!(a6==1)))||!(a22==1))&&(a12==1)))&&!(a25==1))&&(a16==1)))){ + a16 = 1; + a6 = 1; + a3 = 0; + a10 = 1; + a26 = 1; + return -1; + } else if(((((a5==1)&&((((a18==1)&&((a0==1)&&(((a16==1)&&((input==2)&&((((!(a26==1)&&(a6==1))&&!(a27==1))&&!(a12==1))||((a12==1)&&((a27==1)&&(!(a6==1)&&(a26==1)))))))&&!(a25==1))))&&!(a2==1))&&(a3==2)))&&(a22==1))&&(!(a11==1)&&((a29==1)||!(a1==1))))){ + a12 = 1; + a6 = 1; + a26 = 1; + a27 = 1; + a2 = 0; + a22 = 1; + a3 = 0; + a11 = 1; + return -1; + } else if((((a12==1)&&(!(a6==1)&&(((a11==1)&&((((a26==1)||!(a26==1))&&(input==5))&&(a3==2)))&&!(a14==1))))&&(!(a15==1)||(((a15==1)&&(!(a0==1)||((((a18==1)&&((a5==1)&&(a1==1)))||(a19==1))&&(a27==1))))||(a2==1))))){ + a26 = 1; + a16 = 1; + a15 = 1; + a6 = 1; + a3 = 0; + return -1; + } else if((((((((a5==1)&&((a3==2)&&(a1==1)))&&(a18==1))&&(a22==1))&&!(a11==1))||!(a0==1))&&((((a12==1)&&(((a6==1)&&((((!(a26==1)&&(a27==1))||((a26==1)&&!(a27==1)))&&(input==4))&&!(a8==1)))&&(a4==1)))&&!(a23==1))&&(a29==1)))){ + a12 = 0; + a10 = 1; + a27 = 1; + a6 = 0; + a23 = 0; + a26 = 0; + a8 = 0; + a3 = 0; + return -1; + } else if(((!(a19==1)&&((a16==1)&&(!(a7==1)&&(!(a20==1)&&(((input==2)&&((!(a11==1)&&((a12==1)&&((a27==1)&&((a6==1)&&(a26==1)))))||(((a11==1)&&((!(a27==1)&&(!(a6==1)&&(a26==1)))&&!(a12==1)))||((a11==1)&&(!(a12==1)&&(!(a27==1)&&(!(a26==1)&&!(a6==1))))))))&&!(a17==1))))))&&((a18==1)&&((a17==1)||(((a15==1)&&(a3==2))&&(a5==1)))))){ + a12 = 0; + a11 = 1; + a27 = 0; + a6 = 0; + a26 = 0; + a25 = 0; + a16 = 1; + a20 = 0; + return -1; + } else if((((a12==1)&&((a3==2)&&((!(a1==1)||(!(a22==1)||((a11==1)&&((a4==1)&&((a6==1)&&((a4==1)||!(a15==1)))))))||(a2==1))))&&((a29==1)&&((a18==1)&&((a5==1)&&(((((a26==1)&&(a27==1))||((a27==1)&&!(a26==1)))||(!(a27==1)&&(a26==1)))&&(input==4))))))){ + a23 = 0; + a10 = 1; + a3 = 0; + a27 = 1; + a4 = 1; + a26 = 1; + return -1; + } else if(((!(a11==1)&&((a5==1)&&((((input==5)&&(((a27==1)&&!(a26==1))||(!(a27==1)&&(a26==1))))&&(a23==1))&&(a3==2))))&&((a23==1)&&(!(a4==1)&&((((a18==1)&&((((a12==1)&&(a29==1))&&!(a22==1))&&!(a0==1)))&&(a19==1))&&(a6==1)))))){ + a27 = 1; + a0 = 0; + a12 = 0; + a11 = 1; + a29 = 0; + a26 = 0; + a28 = 1; + return -1; + } else if((((((a1==1)&&(((input==6)&&(((a12==1)&&(!(a26==1)&&!(a27==1)))||(((a27==1)&&(a26==1))&&!(a12==1))))&&(a1==1)))&&(a5==1))&&(a16==1))&&(((a3==2)&&(!(a11==1)&&((!(a1==1)||((!(a6==1)&&(a0==1))&&!(a20==1)))&&(a18==1))))&&!(a17==1)))){ + a3 = 0; + a12 = 1; + a24 = 0; + a28 = 1; + a26 = 1; + a4 = 0; + a27 = 0; + return -1; + } else if((((a18==1)&&(((!(a20==1)&&(a0==1))||(a20==1))&&(a1==1)))&&((a3==2)&&((a1==1)&&((a5==1)&&((((((((a27==1)&&((a26==1)&&(a6==1)))&&(a12==1))&&!(a11==1))||((((!(a27==1)&&(!(a6==1)&&(a26==1)))&&!(a12==1))&&(a11==1))||((!(a12==1)&&(!(a27==1)&&(!(a6==1)&&!(a26==1))))&&(a11==1))))&&(input==1))&&!(a7==1))&&(a15==1))))))){ + a6 = 0; + a26 = 1; + a1 = 1; + a23 = 0; + a27 = 1; + a12 = 0; + a11 = 1; + a14 = 0; + a3 = 1; + return -1; + } else if(((((((a18==1)&&((a25==1)||(!(a11==1)&&((a4==1)&&(a3==2)))))&&(a0==1))&&(a5==1))||(a7==1))&&((a10==1)&&((!(a14==1)&&((input==6)&&((((!(a26==1)&&(a6==1))&&!(a27==1))&&!(a12==1))||((a12==1)&&((a27==1)&&(!(a6==1)&&(a26==1)))))))&&(a4==1))))){ + a11 = 1; + a26 = 1; + a12 = 1; + a3 = 0; + a7 = 0; + a27 = 1; + a4 = 1; + a0 = 1; + a6 = 1; + return -1; + } else if((((!(a11==1)&&(((((a12==1)&&((((a27==1)&&!(a26==1))||((a26==1)&&!(a27==1)))&&(input==3)))&&!(a8==1))&&!(a19==1))&&!(a14==1)))&&(a0==1))&&(((a3==2)&&((((a5==1)&&(!(a6==1)&&(a29==1)))||(a17==1))&&(a16==1)))&&(a18==1)))){ + a7 = 0; + a22 = 1; + a16 = 1; + a3 = 0; + a26 = 0; + a27 = 0; + return -1; + } else if((((!(a19==1)&&(((((a4==1)&&!(a26==1))||!(a4==1))&&!(a11==1))&&!(a6==1)))||(a23==1))&&(!(a27==1)&&((a5==1)&&((((a22==1)&&((((a3==1)&&(input==5))&&!(a12==1))&&!(a25==1)))&&(a1==1))&&(a18==1)))))){ + a11 = 1; + a12 = 1; + a6 = 1; + a1 = 1; + a15 = 1; + a10 = 1; + a27 = 1; + a3 = 0; + a26 = 1; + return -1; + } else if((((a4==1)&&((((((((!(a12==1)&&(((a26==1)&&!(a6==1))&&!(a27==1)))&&(a11==1))||((!(a12==1)&&(!(a27==1)&&(!(a6==1)&&!(a26==1))))&&(a11==1)))||(!(a11==1)&&((((a6==1)&&(a26==1))&&(a27==1))&&(a12==1))))&&(input==4))&&(a5==1))&&(a18==1))&&!(a19==1)))&&(((a17==1)||((!(a25==1)&&((a3==2)&&(a29==1)))||(a23==1)))&&(a1==1)))){ + a6 = 1; + a12 = 1; + a26 = 1; + a11 = 0; + a8 = 0; + a27 = 1; + a22 = 1; + a15 = 1; + return -1; + } else if((((a3==2)&&(((a18==1)&&(((input==2)&&((!(a26==1)&&(a27==1))||((a26==1)&&!(a27==1))))&&(a10==1)))&&(a15==1)))&&((((a23==1)||((a20==1)||((!(a25==1)&&(((a5==1)&&(a4==1))&&!(a8==1)))&&(a12==1))))&&!(a11==1))&&!(a6==1)))){ + a26 = 1; + a10 = 1; + a27 = 1; + a3 = 0; + a6 = 1; + a11 = 1; + a19 = 0; + a23 = 0; + return -1; + } else if(((!(a23==1)&&((!(a2==1)&&((((a5==1)&&(a29==1))||!(a1==1))||!(a22==1)))||(a8==1)))&&((a0==1)&&((a18==1)&&(!(a12==1)&&(!(a26==1)&&((((a3==2)&&((a27==1)&&(input==6)))&&(a11==1))&&!(a6==1)))))))){ + a0 = 1; + a7 = 0; + a22 = 1; + return -1; + } else if((((a1==1)&&(((((a15==1)&&((!(a11==1)&&(!(a23==1)&&(!(a14==1)&&((input==3)&&(((a27==1)&&!(a26==1))||((a26==1)&&!(a27==1)))))))&&(a10==1)))&&!(a6==1))&&(a5==1))&&(a1==1)))&&((a3==2)&&((!(a12==1)&&(a10==1))&&(a18==1))))){ + a26 = 1; + a0 = 0; + a27 = 1; + a9 = 1; + a21 = 0; + return -1; + } else if(((!(a11==1)&&((a18==1)&&((!(a23==1)&&(((((a5==1)&&((input==1)&&(((a12==1)&&(!(a27==1)&&!(a26==1)))||(((a26==1)&&(a27==1))&&!(a12==1)))))&&!(a6==1))&&!(a14==1))&&(a16==1)))&&(a3==2))))&&(!(a10==1)||((a19==1)||(!(a7==1)&&(a0==1)))))){ + a12 = 0; + a26 = 1; + a11 = 1; + a3 = 0; + a22 = 0; + a24 = 1; + a27 = 1; + a7 = 1; + return -1; + } else if((((((!(a25==1)&&((((a22==1)||(a8==1))&&(a18==1))||!(a15==1)))&&!(a12==1))&&(a6==1))&&(a5==1))&&((a11==1)&&(((((a3==2)&&((input==4)&&((!(a27==1)&&!(a26==1))||((!(a26==1)&&(a27==1))||(!(a27==1)&&(a26==1))))))&&!(a14==1))&&(a16==1))&&!(a20==1))))){ + a27 = 1; + a12 = 1; + a3 = 0; + a10 = 1; + a26 = 1; + a25 = 0; + a16 = 1; + return -1; + } else if(((!(a17==1)&&((((!(a11==1)&&(a1==1))&&(a18==1))&&(a6==1))&&(a3==2)))&&((a4==1)&&((a16==1)&&(!(a20==1)&&((a15==1)&&((((((((a27==1)&&(a26==1))||((a27==1)&&!(a26==1)))||((a26==1)&&!(a27==1)))&&(input==1))&&!(a14==1))&&(a5==1))&&!(a12==1)))))))){ + if((a10==1)){ + a26 = 0; + a27 = 1; + a1 = 1; + a2 = 0; + a14 = 0; + }else{ + a23 = 0; + a0 = 1; + a6 = 0; + a25 = 0; + a11 = 1; + a26 = 1; + a27 = 1; + } + return -1; + } else if((((a1==1)&&(((a18==1)&&((!(a27==1)&&(a29==1))&&(a10==1)))||(a7==1)))&&(((!(a19==1)&&(((a5==1)&&((((a11==1)&&((input==3)&&((a26==1)||!(a26==1))))&&!(a6==1))&&(a12==1)))&&(a3==2)))&&(a16==1))&&(a0==1)))){ + a26 = 1; + a6 = 1; + a11 = 0; + a22 = 1; + a15 = 1; + a8 = 0; + return 25; + } else if((((((a16==1)&&((a18==1)&&((input==2)&&(((a5==1)&&(((!(a12==1)&&(!(a27==1)&&(!(a26==1)&&!(a6==1))))&&(a3==2))&&!(a11==1)))||(!(a5==1)&&((a11==1)&&(((a12==1)&&(((a6==1)&&(a26==1))&&(a27==1)))&&(a3==0))))))))&&(a10==1))&&(a29==1))&&((a0==1)&&(((a15==1)&&!(a14==1))&&!(a2==1))))){ + if((a11==1)){ + a26 = 1; + a12 = 0; + a27 = 0; + a14 = 1; + a5 = 1; + a11 = 1; + a3 = 0; + a24 = 0; + a6 = 0; + }else{ + a3 = 2; + a11 = 1; + a6 = 1; + a12 = 0; + a5 = 1; + a27 = 1; + a13 = 0; + a26 = 1; + a25 = 1; + a21 = 1; + } + return 23; + } else if(((((a3==2)&&((a18==1)&&(a1==1)))&&!(a19==1))&&(((((a15==1)&&((((input==3)&&((((a12==1)&&((a27==1)&&((a6==1)&&(a26==1))))&&!(a11==1))||(((!(a12==1)&&(!(a27==1)&&((a26==1)&&!(a6==1))))&&(a11==1))||((a11==1)&&((!(a27==1)&&(!(a26==1)&&!(a6==1)))&&!(a12==1))))))&&(a5==1))&&!(a17==1)))&&(a10==1))&&(a16==1))&&(a0==1)))){ + a26 = 0; + a27 = 1; + a20 = 0; + a29 = 1; + a10 = 1; + a11 = 1; + a6 = 0; + a12 = 0; + return -1; + } else if((((!(a11==1)&&((a1==1)&&(a29==1)))&&(a12==1))&&((!(a2==1)&&(!(a6==1)&&((!(a17==1)&&(((a3==2)&&((a18==1)&&(((input==6)&&(((a27==1)&&!(a26==1))||((a26==1)&&!(a27==1))))&&(a0==1))))&&(a15==1)))&&(a22==1))))&&(a5==1)))){ + a10 = 1; + a19 = 0; + a27 = 1; + a2 = 0; + a6 = 1; + a26 = 1; + a3 = 0; + a11 = 1; + return -1; + } else if(((((((a2==1)||((a5==1)&&((a3==2)&&(a10==1))))&&(a18==1))||!(a1==1))&&!(a12==1))&&(!(a7==1)&&(!(a14==1)&&(!(a11==1)&&((((((!(a26==1)&&(a27==1))||(!(a27==1)&&(a26==1)))&&(input==4))&&(a4==1))&&!(a6==1))&&(a10==1))))))){ + a21 = 0; + a26 = 1; + a13 = 0; + a4 = 0; + a6 = 1; + a27 = 0; + return -1; + } else if((((!(a10==1)||(!(a12==1)&&(!(a27==1)&&(!(a7==1)&&(a22==1)))))&&!(a6==1))&&((a3==1)&&(!(a11==1)&&((!(a20==1)&&((a0==1)&&((!(a2==1)&&((a18==1)&&((a5==1)&&(input==5))))&&!(a19==1))))&&(a26==1)))))){ + a16 = 1; + a22 = 1; + a11 = 1; + a3 = 2; + a27 = 1; + a6 = 1; + return 21; + } else if(((((((!(a7==1)&&(a16==1))||!(a10==1))||!(a15==1))&&!(a6==1))||!(a22==1))&&(((!(a12==1)&&((a3==2)&&((a18==1)&&((!(a11==1)&&((((a27==1)&&!(a26==1))||(!(a27==1)&&(a26==1)))&&(input==6)))&&(a5==1)))))&&(a29==1))&&(a0==1)))){ + a27 = 1; + a15 = 0; + a14 = 1; + a3 = 1; + a26 = 0; + a6 = 1; + return -1; + } else if(((!(a12==1)&&(!(a11==1)&&((a6==1)&&((!(a17==1)&&((a5==1)&&(!(a2==1)&&(((input==6)&&((((a27==1)&&(a26==1))||((a27==1)&&!(a26==1)))||((a26==1)&&!(a27==1))))&&!(a7==1)))))&&(a29==1)))))&&((((!(a16==1)||(a1==1))&&(a3==2))||(a2==1))&&(a18==1)))){ + a26 = 1; + a10 = 1; + a29 = 1; + a27 = 0; + a1 = 1; + return 23; + } else if(((((((a1==1)&&((input==3)&&(((a12==1)&&(!(a26==1)&&!(a27==1)))||(((a26==1)&&(a27==1))&&!(a12==1)))))&&!(a7==1))&&(a18==1))&&(a4==1))&&((a6==1)&&((a5==1)&&((a20==1)||(!(a1==1)||(((a3==2)&&((a10==1)||!(a10==1)))&&(a11==1)))))))){ + a26 = 0; + a3 = 0; + a6 = 0; + a12 = 1; + a27 = 0; + a2 = 0; + a14 = 0; + a11 = 0; + a8 = 0; + return -1; + } else if(((((a18==1)&&((a1==1)&&((((a0==1)&&(!(a6==1)&&((((a12==1)&&(!(a26==1)&&!(a27==1)))||(((a27==1)&&(a26==1))&&!(a12==1)))&&(input==3))))&&!(a11==1))&&(a0==1))))&&(a16==1))&&(((a3==2)&&(((a5==1)&&(a0==1))&&(a1==1)))&&(a16==1)))){ + a12 = 0; + a26 = 1; + a4 = 0; + a13 = 0; + a25 = 1; + a27 = 1; + a11 = 1; + return 23; + } else if(((!(a16==1)||(!(a8==1)&&(!(a0==1)||(((a16==1)&&(a6==1))&&(a11==1)))))&&((a16==1)&&((((a18==1)&&((a3==2)&&((a4==1)&&((((a12==1)&&(!(a26==1)&&!(a27==1)))||(!(a12==1)&&((a27==1)&&(a26==1))))&&(input==6)))))&&(a22==1))&&(a5==1))))){ + a16 = 1; + a3 = 0; + a26 = 1; + a22 = 1; + a7 = 0; + a27 = 1; + a12 = 1; + return -1; + } else if(((((a6==1)&&(!(a7==1)&&(((a11==1)&&(((((input==5)&&((!(a26==1)&&!(a27==1))||((!(a26==1)&&(a27==1))||((a26==1)&&!(a27==1)))))&&(a18==1))&&!(a2==1))&&!(a19==1)))&&(a10==1))))&&!(a12==1))&&(((a3==0)&&(!(a0==1)||((a22==1)&&!(a8==1))))&&!(a5==1)))){ + a9 = 0; + a3 = 1; + a1 = 0; + a5 = 1; + a12 = 1; + a11 = 0; + a26 = 1; + a27 = 0; + a29 = 0; + a6 = 0; + return 23; + } else if((((!(a20==1)&&(((((a5==1)&&((((!(a26==1)&&!(a27==1))&&(a12==1))||(!(a12==1)&&((a26==1)&&(a27==1))))&&(input==5)))&&!(a17==1))&&(a22==1))&&(a3==2)))&&!(a11==1))&&(((a25==1)||((a18==1)&&(((a0==1)&&!(a14==1))&&!(a6==1))))&&(a22==1)))){ + a4 = 0; + a12 = 0; + a6 = 1; + a26 = 0; + a9 = 0; + a0 = 0; + a27 = 1; + a3 = 0; + a11 = 1; + return -1; + } else if(((!(a2==1)&&((((((((((a26==1)||!(a26==1))&&(input==1))&&!(a14==1))&&(a11==1))&&!(a17==1))&&(a18==1))&&(a4==1))&&!(a6==1))&&!(a8==1)))&&((((a27==1)&&((a5==1)&&((a22==1)||(a23==1))))&&(a12==1))&&(a3==2)))){ + a16 = 1; + a26 = 1; + a3 = 0; + a4 = 1; + a6 = 1; + a2 = 0; + return -1; + } else if(((((!(a7==1)&&(!(a20==1)&&(((a6==1)&&(((a3==2)&&((input==3)&&((((a27==1)&&!(a26==1))||((a26==1)&&!(a27==1)))||(!(a27==1)&&!(a26==1)))))&&!(a12==1)))&&(a4==1))))&&(a11==1))&&(a18==1))&&((!(a10==1)||(((a15==1)||(a25==1))&&(a5==1)))&&!(a2==1)))){ + a10 = 1; + a12 = 1; + a27 = 1; + a29 = 1; + a14 = 0; + a3 = 0; + a26 = 1; + return -1; + } else if(((((a11==1)&&((((a16==1)&&((a6==1)&&((input==4)&&(((!(a27==1)&&!(a26==1))&&(a12==1))||(!(a12==1)&&((a27==1)&&(a26==1)))))))&&(a18==1))&&(a3==0)))&&(a10==1))&&((((!(a5==1)&&((a15==1)||(a25==1)))||(a7==1))&&!(a2==1))&&!(a25==1)))){ + a26 = 1; + a29 = 0; + a0 = 0; + a27 = 0; + a12 = 1; + a6 = 0; + a5 = 1; + a8 = 1; + return -1; + } else if((((a11==1)&&(!(a6==1)&&(((a27==1)&&((a0==1)&&((!(a23==1)&&(!(a12==1)&&(input==5)))&&!(a26==1))))&&(a5==1))))&&((a3==2)&&((a23==1)||(((((a4==1)&&(a18==1))&&(a15==1))||!(a0==1))||!(a29==1)))))){ + a14 = 0; + a29 = 1; + a10 = 1; + return -1; + } else if((((a3==0)&&((!(a5==1)&&(!(a14==1)&&(((((a0==1)||(a23==1))&&!(a25==1))||!(a1==1))||!(a29==1))))&&(a6==1)))&&((a11==1)&&((((((((a27==1)&&!(a26==1))||(!(a27==1)&&(a26==1)))||(!(a26==1)&&!(a27==1)))&&(input==2))&&(a18==1))&&!(a20==1))&&!(a12==1))))){ + if((a5==1)){ + a3 = 1; + a26 = 1; + a22 = 0; + a15 = 0; + a5 = 1; + a21 = 1; + a27 = 0; + }else{ + a3 = 1; + a6 = 0; + a5 = 1; + a13 = 0; + a26 = 1; + a2 = 1; + a22 = 0; + a27 = 0; + a11 = 0; + } + return -1; + } else if(((!(a27==1)&&(!(a23==1)&&(!(a11==1)&&(((a12==1)&&(!(a26==1)&&((a3==2)&&(input==4))))&&(a4==1)))))&&(((a15==1)&&((a23==1)||((a6==1)&&(!(a8==1)&&((a23==1)||((a18==1)&&(a22==1)))))))&&(a5==1)))){ + a11 = 1; + a4 = 1; + a26 = 1; + a23 = 0; + a12 = 0; + a19 = 0; + a27 = 1; + a3 = 1; + return -1; + } else if(((((!(a16==1)&&((((a3==2)&&(!(a22==1)&&(!(a10==1)&&(((!(a26==1)&&(a27==1))||((a26==1)&&!(a27==1)))&&(input==1)))))&&(a12==1))&&(a25==1)))&&(a20==1))&&!(a11==1))&&((((a5==1)&&((a18==1)&&(a1==1)))&&!(a15==1))&&(a6==1)))){ + a12 = 0; + a14 = 1; + a28 = 1; + a9 = 1; + a27 = 0; + a26 = 0; + return 24; + } else if(((((a18==1)&&(((!(a22==1)||((a15==1)&&(a4==1)))||(a25==1))&&(a5==1)))&&!(a11==1))&&(((a3==2)&&((!(a7==1)&&((input==3)&&((!(a12==1)&&(((a6==1)&&!(a26==1))&&!(a27==1)))||((((a26==1)&&!(a6==1))&&(a27==1))&&(a12==1)))))&&(a22==1)))&&(a0==1)))){ + a26 = 0; + a1 = 1; + a11 = 1; + a27 = 0; + a6 = 0; + a22 = 1; + a12 = 0; + a14 = 0; + return 21; + } else if((((a16==1)&&(!(a5==1)&&((a3==0)&&(((input==2)&&(((!(a26==1)&&!(a27==1))&&(a12==1))||(((a27==1)&&(a26==1))&&!(a12==1))))&&(a6==1)))))&&(!(a29==1)||((a17==1)||(((((a17==1)||((a15==1)&&(a11==1)))||!(a10==1))&&(a18==1))||(a7==1)))))){ + if((a0==1)){ + a6 = 0; + a13 = 0; + a5 = 1; + a7 = 1; + a12 = 0; + a2 = 1; + a26 = 0; + a27 = 1; + }else{ + a5 = 1; + a12 = 1; + a9 = 0; + a27 = 0; + a16 = 0; + a2 = 1; + a26 = 1; + } + return -1; + } else if((((!(a14==1)&&((a0==1)&&(a18==1)))&&(a16==1))&&((!(a19==1)&&((!(a23==1)&&((a5==1)&&((a3==2)&&((input==6)&&((((a11==1)&&((((a26==1)&&!(a6==1))&&!(a27==1))&&!(a12==1)))||((a11==1)&&((!(a27==1)&&(!(a6==1)&&!(a26==1)))&&!(a12==1))))||(((a12==1)&&(((a6==1)&&(a26==1))&&(a27==1)))&&!(a11==1)))))))&&!(a19==1)))&&(a16==1)))){ + a11 = 1; + a6 = 0; + a12 = 0; + a26 = 0; + a1 = 1; + a19 = 0; + a20 = 0; + a27 = 0; + return -1; + } else if(((!(a10==1)||((!(a1==1)||((((a23==1)||(((a11==1)&&((a29==1)&&!(a12==1)))&&!(a8==1)))&&(a6==1))&&(a3==0)))&&(a18==1)))&&(((((input==6)&&((!(a26==1)&&!(a27==1))||(((a27==1)&&!(a26==1))||((a26==1)&&!(a27==1)))))&&!(a7==1))&&!(a5==1))&&!(a2==1)))){ + a5 = 1; + a25 = 1; + a12 = 1; + a9 = 0; + a27 = 1; + a26 = 0; + return -1; + } else if((((!(a14==1)&&(((a18==1)&&((input==4)&&(((!(a11==1)&&(((!(a27==1)&&(!(a26==1)&&!(a6==1)))&&!(a12==1))&&(a3==2)))&&(a5==1))||(!(a5==1)&&(((a3==0)&&((a12==1)&&(((a26==1)&&(a6==1))&&(a27==1))))&&(a11==1))))))&&!(a25==1)))&&!(a2==1))&&((a10==1)&&(!(a7==1)&&((a10==1)&&!(a19==1)))))){ + a5 = 1; + a19 = 1; + a27 = 1; + a12 = 0; + a26 = 0; + a21 = 0; + a3 = 2; + a6 = 1; + a11 = 0; + return -1; + } else if((((a5==1)&&(((!(a12==1)&&((((a16==1)||(a14==1))||(a19==1))&&!(a17==1)))&&!(a25==1))&&!(a11==1)))&&((((a18==1)&&((a3==2)&&((((((a26==1)&&(a27==1))||(!(a26==1)&&(a27==1)))||((a26==1)&&!(a27==1)))&&(input==3))&&!(a2==1))))&&(a6==1))&&(a29==1)))){ + a27 = 1; + a26 = 1; + a11 = 1; + a6 = 0; + a22 = 1; + a23 = 0; + a20 = 0; + return 23; + } else if((((!(a12==1)&&((((a19==1)||((a22==1)&&!(a6==1)))&&(a5==1))||!(a16==1)))&&!(a26==1))&&((a4==1)&&((((a16==1)&&(((((input==3)&&!(a11==1))&&!(a25==1))&&(a27==1))&&(a18==1)))&&(a10==1))&&(a3==1))))){ + a6 = 1; + a11 = 1; + a3 = 2; + a7 = 0; + a12 = 1; + a17 = 0; + return 22; + } else if(((!(a17==1)&&((a1==1)&&(((a15==1)&&((!(a11==1)&&((((a27==1)&&!(a26==1))||((a26==1)&&!(a27==1)))&&(input==1)))&&(a15==1)))&&(a12==1))))&&(((a18==1)&&((a16==1)&&(((a3==2)&&((a22==1)&&(a5==1)))&&(a6==1))))&&!(a8==1)))){ + a11 = 1; + a0 = 1; + a27 = 0; + a12 = 0; + a6 = 0; + a23 = 0; + a16 = 1; + a3 = 0; + a26 = 1; + return -1; + } else if(((((a3==2)&&(((((a29==1)||(a14==1))&&!(a6==1))||(a23==1))||!(a4==1)))&&(a5==1))&&(!(a27==1)&&(((a12==1)&&(((!(a2==1)&&((a22==1)&&((input==1)&&((a26==1)||!(a26==1)))))&&(a18==1))&&(a11==1)))&&!(a14==1))))){ + a27 = 1; + a14 = 0; + a15 = 1; + a3 = 0; + a6 = 1; + a10 = 1; + a26 = 1; + return -1; + } else if((((!(a2==1)&&(((((input==3)&&(((a26==1)&&!(a27==1))||(((a26==1)&&(a27==1))||((a27==1)&&!(a26==1)))))&&(a6==1))&&(a18==1))&&(a3==2)))&&!(a23==1))&&((((a5==1)&&(((((a17==1)||(a22==1))&&!(a25==1))||(a20==1))&&(a4==1)))&&(a12==1))&&(a11==1)))){ + a3 = 0; + a22 = 1; + a26 = 1; + a14 = 0; + a29 = 1; + a27 = 1; + return -1; + } else if(((!(a6==1)&&(((!(a25==1)&&((a3==1)&&((a16==1)&&(a26==1))))&&!(a19==1))&&!(a20==1)))&&((((((a1==1)&&((a18==1)&&((!(a12==1)&&(input==3))&&(a5==1))))&&!(a27==1))&&!(a8==1))&&!(a7==1))&&!(a11==1)))){ + a6 = 1; + a3 = 0; + a11 = 1; + a20 = 0; + a14 = 0; + a27 = 1; + a12 = 1; + a7 = 0; + return -1; + } else if((((a15==1)&&(!(a25==1)&&(((a3==2)&&((((((a5==1)&&(((!(a26==1)&&(a27==1))||((a26==1)&&!(a27==1)))&&(input==1)))&&!(a2==1))&&!(a11==1))&&(a12==1))&&(a18==1)))&&!(a17==1))))&&((!(a16==1)||((a1==1)&&!(a6==1)))&&(a4==1)))){ + a4 = 1; + a11 = 1; + a25 = 0; + a26 = 1; + a27 = 1; + a3 = 0; + a23 = 0; + a6 = 1; + return -1; + } else if((((((a18==1)&&(((a27==1)&&(!(a11==1)&&(input==4)))&&!(a2==1)))&&!(a6==1))&&!(a12==1))&&((!(a26==1)&&(((a25==1)||(((!(a8==1)&&((a19==1)||(a16==1)))&&!(a17==1))&&!(a8==1)))&&(a3==1)))&&(a5==1)))){ + a27 = 0; + a17 = 0; + a22 = 1; + a26 = 1; + a0 = 1; + return 25; + } else if(((((!(a19==1)&&((a11==1)&&(((((!(a5==1)&&((input==1)&&((!(a26==1)&&!(a27==1))||((!(a26==1)&&(a27==1))||((a26==1)&&!(a27==1))))))&&!(a12==1))&&(a22==1))&&(a6==1))&&(a18==1))))&&(a10==1))&&(a3==0))&&(((!(a16==1)||(a22==1))||!(a10==1))||!(a29==1)))){ + if((a2==1)){ + a12 = 1; + a15 = 0; + a2 = 1; + a27 = 1; + a6 = 0; + a26 = 1; + a24 = 0; + a3 = 2; + a5 = 1; + }else{ + a6 = 0; + a21 = 0; + a29 = 0; + a26 = 1; + a8 = 1; + a11 = 0; + a27 = 1; + a5 = 1; + a12 = 1; + } + return -1; + } else if(((((a4==1)&&((a22==1)&&((a11==1)&&((a0==1)&&((((input==6)&&(a18==1))&&(a29==1))&&!(a6==1))))))&&(a3==2))&&((a27==1)&&(((a5==1)&&(!(a12==1)&&((a26==1)&&((a22==1)&&(a1==1)))))||!(a22==1))))){ + a20 = 0; + a14 = 0; + a25 = 0; + return 23; + } else if(((((((a1==1)&&(!(a27==1)&&((a18==1)&&(a16==1))))||(a8==1))||(a20==1))&&(a3==2))&&(((!(a19==1)&&((!(a11==1)&&((((input==6)&&(a5==1))&&(a16==1))&&(a12==1)))&&!(a26==1)))&&!(a19==1))&&(a6==1)))){ + a27 = 1; + a12 = 0; + a0 = 1; + a23 = 0; + a29 = 1; + a3 = 1; + return -1; + } else if(((((((a29==1)&&(a15==1))||(a14==1))&&(a4==1))&&!(a5==1))&&(((((a18==1)&&((a12==1)&&(!(a2==1)&&(!(a23==1)&&(((((a27==1)&&!(a26==1))||(!(a27==1)&&(a26==1)))&&(input==4))&&!(a17==1))))))&&(a3==0))&&(a6==1))&&(a11==1)))){ + a27 = 1; + a3 = 1; + a7 = 1; + a22 = 0; + a11 = 0; + a6 = 0; + a26 = 1; + a12 = 0; + a5 = 1; + a19 = 1; + return -1; + } else if((((a17==1)&&((a20==1)&&((!(a11==1)&&((a6==1)&&((a18==1)&&(((input==2)&&((!(a26==1)&&(a27==1))||(!(a27==1)&&(a26==1))))&&!(a0==1)))))&&(a12==1))))&&((!(a16==1)&&(((a5==1)&&((a15==1)&&(a3==2)))&&!(a22==1)))&&(a23==1)))){ + a3 = 0; + a6 = 0; + a4 = 0; + a26 = 0; + a27 = 0; + a8 = 1; + a22 = 0; + return -1; + } else if(((((a18==1)&&((!(a8==1)&&(((a6==1)&&(input==5))&&!(a23==1)))&&(a12==1)))&&(a5==1))&&((a16==1)&&(!(a27==1)&&(!(a2==1)&&((a20==1)||(!(a26==1)&&(!(a11==1)&&(!(a15==1)||((a10==1)&&(a3==2))))))))))){ + a6 = 0; + a22 = 1; + a11 = 1; + a27 = 1; + a12 = 0; + a19 = 0; + a16 = 1; + return 21; + } else if((((a4==1)&&((a12==1)&&((a6==1)&&(((a18==1)&&((a10==1)&&(((a16==1)&&(a0==1))&&(a5==1))))&&!(a11==1)))))&&((!(a17==1)&&((((input==3)&&((!(a26==1)&&(a27==1))||((a26==1)&&!(a27==1))))&&!(a20==1))&&(a3==2)))&&(a16==1)))){ + a27 = 1; + a26 = 1; + a8 = 0; + a11 = 1; + a3 = 1; + a15 = 1; + return -1; + } else if((((!(a7==1)&&(((a6==1)&&((a5==1)&&(((input==2)&&((!(a26==1)&&(a27==1))||((a26==1)&&!(a27==1))))&&(a18==1))))&&(a12==1)))&&!(a8==1))&&((((a4==1)&&((a0==1)&&((a3==2)&&((a10==1)&&!(a11==1)))))&&(a0==1))||(a8==1)))){ + a10 = 1; + a27 = 0; + a2 = 0; + a23 = 0; + a26 = 0; + a3 = 1; + return -1; + } else if((((a3==2)&&(!(a11==1)&&(!(a17==1)&&((a19==1)||((a4==1)&&((a1==1)&&!(a12==1)))))))&&((((!(a7==1)&&((a5==1)&&((a18==1)&&((((a27==1)&&!(a26==1))||((a26==1)&&!(a27==1)))&&(input==1)))))&&!(a23==1))&&!(a6==1))&&!(a2==1)))){ + a12 = 1; + a27 = 0; + a28 = 1; + a26 = 1; + a21 = 1; + return -1; + } else if(((!(a29==1)||((a4==1)&&(((a5==1)&&((a17==1)||(a22==1)))&&(a1==1))))&&(!(a12==1)&&(((a26==1)&&((a27==1)&&((a3==2)&&((a11==1)&&(!(a8==1)&&(!(a25==1)&&((input==5)&&(a18==1))))))))&&!(a6==1))))){ + a4 = 1; + a22 = 1; + a7 = 0; + return -1; + } else if((((((a4==1)&&((!(a20==1)&&(!(a19==1)&&(((((((a6==1)&&(a26==1))&&(a27==1))&&(a12==1))&&!(a11==1))||(((a11==1)&&(!(a12==1)&&(!(a27==1)&&((a26==1)&&!(a6==1)))))||(((!(a27==1)&&(!(a26==1)&&!(a6==1)))&&!(a12==1))&&(a11==1))))&&(input==5))))&&(a5==1)))&&!(a7==1))&&(a3==2))&&((a18==1)&&((a15==1)&&((a1==1)&&(a4==1)))))){ + a0 = 1; + a6 = 0; + a26 = 0; + a12 = 0; + a25 = 0; + a27 = 1; + a11 = 1; + a20 = 0; + return -1; + } else if(((((((((a27==1)&&(a22==1))&&!(a17==1))&&!(a20==1))&&(a3==1))&&!(a11==1))&&!(a23==1))&&((((a5==1)&&((a29==1)&&((a18==1)&&((((input==1)&&!(a26==1))&&!(a12==1))&&!(a6==1)))))&&(a10==1))&&(a4==1)))){ + a7 = 0; + a26 = 1; + a6 = 1; + a11 = 1; + a4 = 1; + a12 = 1; + a3 = 0; + a8 = 0; + return -1; + } else if((((((!(a11==1)&&((a5==1)&&(input==2)))&&(a15==1))&&(a1==1))&&(a3==1))&&(!(a12==1)&&(!(a6==1)&&((a0==1)&&((!(a19==1)&&(!(a16==1)||(((a26==1)&&((a15==1)&&(a18==1)))&&!(a27==1))))&&!(a17==1))))))){ + a6 = 1; + a25 = 0; + a17 = 0; + a23 = 0; + a3 = 0; + a27 = 1; + a11 = 1; + a12 = 1; + return -1; + } else if((((((a22==1)&&((!(a27==1)&&(!(a6==1)&&(((a22==1)&&(a3==1))&&!(a12==1))))&&(a0==1)))&&!(a20==1))||!(a16==1))&&(!(a26==1)&&((a29==1)&&(!(a14==1)&&(!(a11==1)&&((a5==1)&&((input==4)&&(a18==1))))))))){ + a11 = 1; + a10 = 1; + a12 = 1; + a26 = 1; + a15 = 1; + a6 = 1; + a3 = 0; + a27 = 1; + a29 = 1; + return -1; + } else if(((((a5==1)&&((!(a11==1)&&(!(a23==1)&&((a29==1)&&(((((a27==1)&&!(a26==1))||((a26==1)&&!(a27==1)))&&(input==2))&&!(a19==1)))))&&!(a23==1)))&&!(a6==1))&&(!(a20==1)&&(!(a12==1)&&(((a29==1)&&((a22==1)&&(a3==2)))&&(a18==1)))))){ + a6 = 1; + a11 = 1; + a29 = 0; + a26 = 1; + a27 = 0; + a13 = 1; + a2 = 1; + return -1; + } else if(((((a29==1)&&((((a22==1)&&(((((((a27==1)&&(a26==1))||((a27==1)&&!(a26==1)))||(!(a27==1)&&(a26==1)))&&(input==5))&&(a6==1))&&(a5==1)))&&(a3==2))&&!(a20==1)))&&!(a2==1))&&((a11==1)&&((((!(a16==1)||(a1==1))&&!(a25==1))&&(a18==1))&&(a12==1))))){ + a15 = 1; + a27 = 1; + a3 = 0; + a16 = 1; + a22 = 1; + a26 = 1; + return -1; + } else if(((!(a15==1)||(((!(a23==1)&&(((((a0==1)&&!(a11==1))||(a20==1))&&(a5==1))&&(a6==1)))&&(a1==1))||(a8==1)))&&((((a0==1)&&(((a3==2)&&((input==3)&&(a12==1)))&&!(a27==1)))&&(a18==1))&&!(a26==1)))){ + a26 = 1; + a11 = 1; + a23 = 0; + a10 = 1; + a6 = 0; + a12 = 0; + a3 = 1; + a4 = 1; + return -1; + } else if(((!(a6==1)&&((!(a8==1)&&((a16==1)&&((a22==1)&&((a26==1)&&(!(a11==1)&&(input==6))))))&&(a18==1)))&&(!(a27==1)&&((((!(a1==1)||(((a22==1)&&!(a12==1))&&(a0==1)))&&(a3==1))&&(a10==1))&&(a5==1))))){ + a27 = 1; + a3 = 0; + a6 = 1; + a12 = 1; + a29 = 1; + a19 = 0; + a4 = 1; + a11 = 1; + return -1; + } else if(((!(a26==1)&&(((a3==1)&&((a1==1)&&((!(a6==1)&&((a5==1)&&(input==6)))&&(a18==1))))&&!(a11==1)))&&(!(a12==1)&&((((a0==1)&&((((a0==1)&&(a10==1))||!(a10==1))&&(a22==1)))&&(a29==1))&&!(a27==1))))){ + if((a7==1)){ + a23 = 0; + a3 = 2; + a6 = 1; + a1 = 1; + }else{ + a19 = 0; + a26 = 1; + a0 = 1; + a12 = 1; + a3 = 2; + a11 = 1; + a27 = 1; + } + return 25; + } else if(((!(a29==1)||((!(a11==1)&&((a22==1)&&(a16==1)))&&(a5==1)))&&((a10==1)&&((((!(a7==1)&&((a29==1)&&(((!(a12==1)&&(!(a27==1)&&(!(a26==1)&&(a6==1))))||((a12==1)&&((!(a6==1)&&(a26==1))&&(a27==1))))&&(input==4))))&&(a18==1))&&(a3==2))&&(a29==1))))){ + a22 = 1; + a6 = 1; + a4 = 1; + a3 = 0; + a0 = 1; + a11 = 1; + a12 = 1; + a26 = 1; + a27 = 1; + return -1; + } else if(((!(a25==1)&&((a15==1)&&((((a5==1)&&(((a3==2)&&(((!(a26==1)&&!(a6==1))&&!(a27==1))&&!(a12==1)))&&!(a11==1)))||(((a11==1)&&(((((a6==1)&&(a26==1))&&(a27==1))&&(a12==1))&&(a3==0)))&&!(a5==1)))&&(input==6))))&&((a14==1)||(!(a2==1)&&((((a4==1)&&(a0==1))&&(a18==1))&&!(a19==1)))))){ + a10 = 0; + a8 = 1; + a5 = 1; + a12 = 1; + a3 = 0; + a9 = 0; + a11 = 0; + a26 = 1; + a27 = 1; + a6 = 0; + return -1; + } else if((((a10==1)||!(a16==1))&&((a0==1)&&(!(a25==1)&&(!(a17==1)&&((a18==1)&&((!(a19==1)&&((input==1)&&(((a5==1)&&(!(a11==1)&&(((!(a27==1)&&(!(a6==1)&&!(a26==1)))&&!(a12==1))&&(a3==2))))||(((a11==1)&&((a3==0)&&((a12==1)&&((a27==1)&&((a6==1)&&(a26==1))))))&&!(a5==1)))))&&!(a25==1)))))))){ + if((a13==1)){ + a4 = 0; + a5 = 1; + a26 = 1; + a11 = 1; + a12 = 0; + a28 = 0; + a2 = 1; + a3 = 0; + a27 = 0; + a6 = 1; + }else{ + a8 = 1; + a3 = 2; + a27 = 1; + a29 = 0; + a5 = 1; + a6 = 0; + a11 = 0; + a12 = 1; + a26 = 0; + a24 = 1; + } + return -1; + } else if(((!(a22==1)||((a19==1)||(!(a10==1)||((a12==1)&&(!(a27==1)&&(((a0==1)&&(a18==1))&&(a11==1)))))))&&(!(a20==1)&&((a10==1)&&(((a5==1)&&(!(a6==1)&&((a0==1)&&((input==5)&&((a26==1)||!(a26==1))))))&&(a3==2)))))){ + a6 = 1; + a23 = 0; + a7 = 0; + a15 = 1; + a3 = 0; + a26 = 1; + a27 = 1; + return -1; + } else if((((a12==1)&&(((a2==1)||(a10==1))&&!(a25==1)))&&(((a3==0)&&(((a18==1)&&(!(a23==1)&&((((a15==1)&&((a29==1)&&(((!(a26==1)&&(a27==1))||(!(a27==1)&&(a26==1)))&&(input==1))))&&!(a5==1))&&(a11==1))))&&(a1==1)))&&(a6==1)))){ + if((a29==1)){ + a5 = 1; + a21 = 0; + a12 = 0; + a11 = 0; + a26 = 0; + a22 = 0; + a3 = 1; + a13 = 0; + a27 = 0; + }else{ + a5 = 1; + a9 = 0; + a11 = 0; + a16 = 0; + a26 = 0; + a20 = 1; + a6 = 0; + a27 = 1; + } + return 25; + } else if((((a3==2)&&((((a29==1)&&(((input==6)&&((a26==1)||!(a26==1)))&&(a4==1)))&&(a29==1))&&!(a20==1)))&&(!(a4==1)||(((a11==1)&&((a5==1)&&(((a18==1)&&((a12==1)&&((a27==1)&&(a29==1))))&&(a10==1))))&&!(a6==1))))){ + a8 = 0; + a4 = 1; + a6 = 1; + a3 = 0; + a26 = 1; + a15 = 1; + return -1; + } else if(((!(a16==1)||(!(a26==1)&&(((a15==1)&&(a3==2))&&!(a17==1))))&&((a29==1)&&((a5==1)&&(((!(a23==1)&&((!(a23==1)&&((a27==1)&&(!(a12==1)&&(!(a6==1)&&(input==4)))))&&(a18==1)))&&(a11==1))&&(a16==1)))))){ + a6 = 1; + a27 = 0; + a16 = 1; + a23 = 0; + a26 = 1; + a20 = 0; + return -1; + } else if((((a15==1)&&(((a11==1)&&(((a5==1)&&((!(a10==1)||(a1==1))&&(a3==2)))||(a7==1)))||!(a22==1)))&&((((a18==1)&&((!(a6==1)&&((!(a12==1)&&(input==3))&&(a1==1)))&&(a29==1)))&&(a27==1))&&!(a26==1)))){ + a2 = 0; + a0 = 1; + a10 = 1; + return -1; + } else if(((!(a14==1)&&(((a5==1)&&(!(a6==1)&&((input==4)&&(((!(a26==1)&&!(a27==1))&&(a12==1))||(!(a12==1)&&((a27==1)&&(a26==1)))))))&&!(a23==1)))&&((a2==1)||((!(a1==1)||(((((a18==1)&&(a1==1))&&!(a11==1))&&(a29==1))&&(a3==2)))&&!(a8==1))))){ + a27 = 1; + a16 = 0; + a26 = 1; + a12 = 0; + a8 = 1; + a6 = 1; + a3 = 1; + a23 = 1; + return -1; + } else if((((a18==1)&&((a7==1)||(!(a2==1)&&(((((a16==1)&&(a11==1))&&(a6==1))&&!(a23==1))||(a23==1)))))&&((a5==1)&&((a3==2)&&((!(a14==1)&&((a12==1)&&((input==2)&&((((a26==1)&&(a27==1))||((a27==1)&&!(a26==1)))||((a26==1)&&!(a27==1))))))&&(a22==1)))))){ + a17 = 0; + a19 = 0; + a6 = 0; + a26 = 1; + a27 = 0; + a1 = 1; + return 25; + } else if((((a4==1)&&(((a6==1)&&((a10==1)&&!(a11==1)))&&(a12==1)))&&(!(a7==1)&&(((a5==1)&&(((((((((a27==1)&&!(a26==1))||((a26==1)&&!(a27==1)))&&(input==6))&&(a3==2))&&(a16==1))&&!(a23==1))&&(a18==1))&&(a0==1)))&&!(a19==1))))){ + a19 = 0; + a27 = 0; + a26 = 0; + a8 = 0; + return 26; + } else if(((((!(a16==1)||((((a5==1)&&(((a22==1)&&!(a23==1))||!(a22==1)))&&(a6==1))&&(a16==1)))&&(a18==1))||(a2==1))&&((((a3==2)&&((input==4)&&(((!(a27==1)&&!(a26==1))&&(a12==1))||(!(a12==1)&&((a27==1)&&(a26==1))))))&&(a16==1))&&(a11==1)))){ + a3 = 0; + a27 = 1; + a16 = 1; + a12 = 1; + a19 = 0; + a26 = 1; + a22 = 1; + return -1; + } else if((((a18==1)&&((a4==1)&&((a14==1)||((!(a5==1)&&(a16==1))||!(a1==1)))))&&((((((a11==1)&&((a12==1)&&((a6==1)&&((((a27==1)&&!(a26==1))||((a26==1)&&!(a27==1)))&&(input==5)))))&&!(a8==1))&&!(a14==1))&&(a3==0))&&!(a2==1)))){ + if((a0==1)){ + a17 = 1; + a3 = 2; + a20 = 1; + a27 = 0; + a26 = 0; + a12 = 0; + a11 = 0; + a5 = 1; + a1 = 0; + }else{ + a27 = 0; + a1 = 0; + a3 = 1; + a6 = 0; + a9 = 1; + a15 = 0; + a5 = 1; + a26 = 1; + } + return -1; + } else if(((!(a20==1)&&((((!(a10==1)||((a6==1)&&((!(a0==1)||(a10==1))&&!(a2==1))))||!(a1==1))&&!(a14==1))&&(a11==1)))&&((a18==1)&&(((a12==1)&&(((input==3)&&((!(a26==1)&&(a27==1))||(!(a27==1)&&(a26==1))))&&!(a5==1)))&&(a3==0))))){ + if((a22==1)){ + a16 = 0; + a3 = 2; + a23 = 1; + a27 = 0; + a11 = 0; + a5 = 1; + a26 = 1; + a1 = 0; + }else{ + a27 = 1; + a3 = 2; + a2 = 1; + a11 = 0; + a10 = 0; + a16 = 0; + a26 = 0; + a5 = 1; + } + return -1; + } else if((((((a18==1)&&(!(a20==1)&&(a0==1)))&&(a12==1))||!(a1==1))&&(((((a11==1)&&(!(a23==1)&&(!(a5==1)&&((((input==6)&&(((a27==1)&&!(a26==1))||(!(a27==1)&&(a26==1))))&&!(a14==1))&&!(a20==1)))))&&(a6==1))&&(a3==0))&&(a1==1)))){ + if((a21==1)){ + a22 = 0; + a12 = 0; + a24 = 1; + a27 = 1; + a26 = 1; + a5 = 1; + a9 = 0; + }else{ + a28 = 1; + a5 = 1; + a11 = 0; + a7 = 1; + a3 = 2; + a4 = 0; + a27 = 1; + a12 = 0; + a26 = 0; + } + return -1; + } else if(((!(a19==1)&&((a4==1)&&((((a18==1)&&(a0==1))&&(a11==1))&&!(a5==1))))&&((a10==1)&&((a15==1)&&((!(a14==1)&&((a6==1)&&((a3==0)&&((((!(a26==1)&&!(a27==1))&&(a12==1))||(!(a12==1)&&((a27==1)&&(a26==1))))&&(input==1)))))&&(a16==1)))))){ + a27 = 0; + a25 = 1; + a2 = 1; + a23 = 1; + a26 = 1; + a12 = 1; + a5 = 1; + return -1; + } else if((((a0==1)&&((((a6==1)&&(!(a5==1)&&((((a27==1)&&!(a26==1))||(!(a27==1)&&(a26==1)))&&(input==2))))&&!(a2==1))&&(a3==0)))&&((a22==1)&&((a12==1)&&(((a18==1)&&((((a22==1)&&(a11==1))&&!(a23==1))||!(a4==1)))&&!(a7==1)))))){ + a27 = 0; + a3 = 2; + a26 = 0; + a5 = 1; + a7 = 1; + a11 = 0; + a28 = 0; + a2 = 1; + return -1; + } else if(((((!(a11==1)&&(!(a6==1)&&((((input==4)&&((!(a26==1)&&(a27==1))||((a26==1)&&!(a27==1))))&&!(a8==1))&&(a18==1))))&&(a16==1))&&!(a17==1))&&((a1==1)&&((a20==1)||((((a5==1)&&((a3==2)&&(a1==1)))&&(a12==1))||!(a4==1)))))){ + a11 = 1; + a27 = 1; + a25 = 0; + a17 = 0; + a6 = 1; + a3 = 0; + a7 = 0; + a26 = 1; + return -1; + } else if((((((!(a7==1)&&(((input==3)&&(a5==1))&&(a16==1)))&&(a18==1))&&!(a27==1))&&!(a26==1))&&((!(a11==1)&&((!(a17==1)&&((a3==1)&&(!(a23==1)&&(!(a16==1)||((a10==1)||(a14==1))))))&&!(a12==1)))&&!(a6==1)))){ + a6 = 1; + a10 = 1; + a3 = 2; + a0 = 1; + a11 = 1; + a26 = 1; + return 21; + } else if((((a27==1)&&(!(a12==1)&&((a11==1)&&((!(a2==1)&&((a18==1)&&(((!(a25==1)&&(((a3==2)&&(input==2))&&(a15==1)))&&(a29==1))&&(a15==1))))&&!(a25==1)))))&&((a5==1)&&(((a10==1)&&(a26==1))&&!(a6==1))))){ + a17 = 0; + a15 = 1; + a2 = 0; + return 23; + } + if(((((((((a26==1)&&!(a6==1))&&!(a27==1))&&!(a12==1))&&(a3==1))&&(a11==1))&&(a5==1))&&(a18==1))){ + error_45: exit(0); + } + if(((((((((a26==1)&&(a6==1))&&(a27==1))&&!(a12==1))&&(a3==1))&&(a11==1))&&(a5==1))&&(a18==1))){ + error_35: exit(0); + } + if((((((((!(a26==1)&&(a6==1))&&(a27==1))&&!(a12==1))&&(a3==1))&&!(a11==1))&&(a5==1))&&(a18==1))){ + error_52: exit(0); + } + if(((((((((a26==1)&&!(a6==1))&&(a27==1))&&(a12==1))&&(a3==1))&&(a11==1))&&(a5==1))&&(a18==1))){ + error_39: exit(0); + } + if(((((((((a26==1)&&!(a6==1))&&!(a27==1))&&(a12==1))&&(a3==0))&&(a11==1))&&(a5==1))&&(a18==1))){ + error_9: exit(0); + } + if(((((((((a26==1)&&(a6==1))&&!(a27==1))&&!(a12==1))&&(a3==1))&&(a11==1))&&(a5==1))&&(a18==1))){ + error_37: exit(0); + } + if(((((((((a26==1)&&!(a6==1))&&(a27==1))&&!(a12==1))&&(a3==1))&&(a11==1))&&(a5==1))&&(a18==1))){ + error_43: exit(0); + } + if(((((((((a26==1)&&(a6==1))&&(a27==1))&&(a12==1))&&(a3==1))&&(a11==1))&&(a5==1))&&(a18==1))){ + error_31: exit(0); + } + if((((((((!(a26==1)&&!(a6==1))&&(a27==1))&&!(a12==1))&&(a3==0))&&!(a11==1))&&(a5==1))&&(a18==1))){ + error_28: exit(0); + } + if(((((((((a26==1)&&!(a6==1))&&(a27==1))&&!(a12==1))&&(a3==0))&&!(a11==1))&&(a5==1))&&(a18==1))){ + error_27: exit(0); + } + if((((((((!(a26==1)&&(a6==1))&&!(a27==1))&&(a12==1))&&(a3==1))&&!(a11==1))&&(a5==1))&&(a18==1))){ + error_50: exit(0); + } + if(((((((((a26==1)&&!(a6==1))&&!(a27==1))&&!(a12==1))&&(a3==0))&&(a11==1))&&(a5==1))&&(a18==1))){ + error_13: exit(0); + } + if((((((((!(a26==1)&&!(a6==1))&&!(a27==1))&&(a12==1))&&(a3==0))&&!(a11==1))&&(a5==1))&&(a18==1))){ + error_26: exit(0); + } + if((((((((!(a26==1)&&!(a6==1))&&(a27==1))&&(a12==1))&&(a3==0))&&(a11==1))&&(a5==1))&&(a18==1))){ + error_8: exit(0); + } + if(((((((((a26==1)&&(a6==1))&&!(a27==1))&&!(a12==1))&&(a3==0))&&(a11==1))&&(a5==1))&&(a18==1))){ + error_5: exit(0); + } + if(((((((((a26==1)&&(a6==1))&&!(a27==1))&&(a12==1))&&(a3==1))&&(a11==1))&&(a5==1))&&(a18==1))){ + error_33: exit(0); + } + if((((((((!(a26==1)&&!(a6==1))&&!(a27==1))&&(a12==1))&&(a3==1))&&!(a11==1))&&(a5==1))&&(a18==1))){ + error_58: exit(0); + } + if(((((((((a26==1)&&!(a6==1))&&!(a27==1))&&(a12==1))&&(a3==1))&&!(a11==1))&&(a5==1))&&(a18==1))){ + error_57: exit(0); + } + if(((((((((a26==1)&&!(a6==1))&&(a27==1))&&(a12==1))&&(a3==1))&&!(a11==1))&&(a5==1))&&(a18==1))){ + error_55: exit(0); + } + if((((((((!(a26==1)&&!(a6==1))&&(a27==1))&&!(a12==1))&&(a3==0))&&(a11==1))&&(a5==1))&&(a18==1))){ + error_12: exit(0); + } + if(((((((((a26==1)&&(a6==1))&&(a27==1))&&!(a12==1))&&(a3==0))&&(a11==1))&&(a5==1))&&(a18==1))){ + error_3: exit(0); + } + if((((((((!(a26==1)&&(a6==1))&&(a27==1))&&(a12==1))&&(a3==0))&&!(a11==1))&&(a5==1))&&(a18==1))){ + error_16: exit(0); + } + if((((((((!(a26==1)&&(a6==1))&&!(a27==1))&&!(a12==1))&&(a3==1))&&!(a11==1))&&(a5==1))&&(a18==1))){ + error_54: exit(0); + } + if((((((((!(a26==1)&&(a6==1))&&!(a27==1))&&!(a12==1))&&(a3==0))&&!(a11==1))&&(a5==1))&&(a18==1))){ + error_22: exit(0); + } + if(((((((((a26==1)&&(a6==1))&&!(a27==1))&&(a12==1))&&(a3==1))&&!(a11==1))&&(a5==1))&&(a18==1))){ + error_49: exit(0); + } + if((((((((!(a26==1)&&(a6==1))&&!(a27==1))&&!(a12==1))&&(a3==0))&&(a11==1))&&(a5==1))&&(a18==1))){ + error_6: exit(0); + } + if((((((((!(a26==1)&&!(a6==1))&&!(a27==1))&&!(a12==1))&&(a3==0))&&(a11==1))&&(a5==1))&&(a18==1))){ + error_14: exit(0); + } + if(((((((((a26==1)&&!(a6==1))&&(a27==1))&&(a12==1))&&(a3==0))&&!(a11==1))&&(a5==1))&&(a18==1))){ + error_23: exit(0); + } + if(((((((((a26==1)&&!(a6==1))&&(a27==1))&&(a12==1))&&(a3==0))&&(a11==1))&&(a5==1))&&(a18==1))){ + error_7: exit(0); + } + if((((((((!(a26==1)&&!(a6==1))&&(a27==1))&&(a12==1))&&(a3==1))&&!(a11==1))&&(a5==1))&&(a18==1))){ + error_56: exit(0); + } + if(((((((((a26==1)&&!(a6==1))&&(a27==1))&&!(a12==1))&&(a3==1))&&!(a11==1))&&(a5==1))&&(a18==1))){ + error_59: exit(0); + } + if((((((((!(a26==1)&&!(a6==1))&&!(a27==1))&&!(a12==1))&&(a3==0))&&!(a11==1))&&(a5==1))&&(a18==1))){ + error_30: exit(0); + } + if(((((((((a26==1)&&(a6==1))&&(a27==1))&&(a12==1))&&(a3==0))&&(a11==1))&&(a5==1))&&(a18==1))){ + globalError: exit(0); + } + if((((((((!(a26==1)&&!(a6==1))&&(a27==1))&&!(a12==1))&&(a3==1))&&(a11==1))&&(a5==1))&&(a18==1))){ + error_44: exit(0); + } + if(((((((((a26==1)&&!(a6==1))&&!(a27==1))&&!(a12==1))&&(a3==0))&&!(a11==1))&&(a5==1))&&(a18==1))){ + error_29: exit(0); + } + if((((((((!(a26==1)&&(a6==1))&&(a27==1))&&!(a12==1))&&(a3==1))&&(a11==1))&&(a5==1))&&(a18==1))){ + error_36: exit(0); + } + if(((((((((a26==1)&&!(a6==1))&&!(a27==1))&&(a12==1))&&(a3==0))&&!(a11==1))&&(a5==1))&&(a18==1))){ + error_25: exit(0); + } + if((((((((!(a26==1)&&!(a6==1))&&!(a27==1))&&(a12==1))&&(a3==0))&&(a11==1))&&(a5==1))&&(a18==1))){ + error_10: exit(0); + } + if(((((((((a26==1)&&!(a6==1))&&!(a27==1))&&(a12==1))&&(a3==1))&&(a11==1))&&(a5==1))&&(a18==1))){ + error_41: exit(0); + } + if((((((((!(a26==1)&&(a6==1))&&(a27==1))&&(a12==1))&&(a3==1))&&!(a11==1))&&(a5==1))&&(a18==1))){ + error_48: exit(0); + } + if((((((((!(a26==1)&&!(a6==1))&&(a27==1))&&(a12==1))&&(a3==1))&&(a11==1))&&(a5==1))&&(a18==1))){ + error_40: exit(0); + } + if((((((((!(a26==1)&&!(a6==1))&&!(a27==1))&&!(a12==1))&&(a3==1))&&(a11==1))&&(a5==1))&&(a18==1))){ + error_46: exit(0); + } + if(((((((((a26==1)&&(a6==1))&&!(a27==1))&&(a12==1))&&(a3==0))&&(a11==1))&&(a5==1))&&(a18==1))){ + error_1: exit(0); + } + if(((((((((a26==1)&&(a6==1))&&(a27==1))&&!(a12==1))&&(a3==0))&&!(a11==1))&&(a5==1))&&(a18==1))){ + error_19: exit(0); + } + if(((((((((a26==1)&&(a6==1))&&(a27==1))&&!(a12==1))&&(a3==1))&&!(a11==1))&&(a5==1))&&(a18==1))){ + error_51: exit(0); + } + if((((((((!(a26==1)&&(a6==1))&&(a27==1))&&(a12==1))&&(a3==1))&&(a11==1))&&(a5==1))&&(a18==1))){ + error_32: exit(0); + } + if((((((((!(a26==1)&&(a6==1))&&!(a27==1))&&(a12==1))&&(a3==1))&&(a11==1))&&(a5==1))&&(a18==1))){ + error_34: exit(0); + } + if((((((((!(a26==1)&&!(a6==1))&&(a27==1))&&(a12==1))&&(a3==0))&&!(a11==1))&&(a5==1))&&(a18==1))){ + error_24: exit(0); + } + if((((((((!(a26==1)&&(a6==1))&&(a27==1))&&(a12==1))&&(a3==0))&&(a11==1))&&(a5==1))&&(a18==1))){ + error_0: __VERIFIER_error(); + } + if(((((((((a26==1)&&!(a6==1))&&(a27==1))&&!(a12==1))&&(a3==0))&&(a11==1))&&(a5==1))&&(a18==1))){ + error_11: exit(0); + } + if(((((((((a26==1)&&(a6==1))&&!(a27==1))&&!(a12==1))&&(a3==1))&&!(a11==1))&&(a5==1))&&(a18==1))){ + error_53: exit(0); + } + if((((((((!(a26==1)&&(a6==1))&&(a27==1))&&!(a12==1))&&(a3==0))&&!(a11==1))&&(a5==1))&&(a18==1))){ + error_20: exit(0); + } + if((((((((!(a26==1)&&!(a6==1))&&!(a27==1))&&(a12==1))&&(a3==1))&&(a11==1))&&(a5==1))&&(a18==1))){ + error_42: exit(0); + } + if(((((((((a26==1)&&(a6==1))&&(a27==1))&&(a12==1))&&(a3==1))&&!(a11==1))&&(a5==1))&&(a18==1))){ + error_47: exit(0); + } + if((((((((!(a26==1)&&(a6==1))&&(a27==1))&&!(a12==1))&&(a3==0))&&(a11==1))&&(a5==1))&&(a18==1))){ + error_4: exit(0); + } + if(((((((((a26==1)&&(a6==1))&&!(a27==1))&&(a12==1))&&(a3==0))&&!(a11==1))&&(a5==1))&&(a18==1))){ + error_17: exit(0); + } + if(((((((((a26==1)&&(a6==1))&&(a27==1))&&(a12==1))&&(a3==0))&&!(a11==1))&&(a5==1))&&(a18==1))){ + error_15: exit(0); + } + if((((((((!(a26==1)&&(a6==1))&&!(a27==1))&&!(a12==1))&&(a3==1))&&(a11==1))&&(a5==1))&&(a18==1))){ + error_38: exit(0); + } + if(((((((((a26==1)&&(a6==1))&&!(a27==1))&&!(a12==1))&&(a3==0))&&!(a11==1))&&(a5==1))&&(a18==1))){ + error_21: exit(0); + } + if((((((((!(a26==1)&&(a6==1))&&!(a27==1))&&(a12==1))&&(a3==0))&&!(a11==1))&&(a5==1))&&(a18==1))){ + error_18: exit(0); + } + if((((((((!(a26==1)&&(a6==1))&&!(a27==1))&&(a12==1))&&(a3==0))&&(a11==1))&&(a5==1))&&(a18==1))){ + error_2: exit(0); + } + return -2; + } + +int main() +{ + // default output + int output = -1; + + // main i/o-loop + while(1) + { + // read input + int input; + input = __VERIFIER_nondet_int(); + if ((input != 1) && (input != 2) && (input != 3) && (input != 4) && (input != 5) && (input != 6)) return -2; + + // operate eca engine + output = calculate_output(input); + + } +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem04_label00_true-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem04_label00_true-unreach-call.c new file mode 100644 index 000000000..db7853dbf --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem04_label00_true-unreach-call.c @@ -0,0 +1,4823 @@ +extern void __VERIFIER_error(void); +extern int __VERIFIER_nondet_int(void); +extern void exit(int); + + // inputs + int f= 6; + int e= 5; + int d= 4; + int b= 2; + int a= 1; + int c= 3; + + // outputs + int u = 21; + int v = 22; + int w = 23; + int x = 24; + int y = 25; + int z = 26; + + + int a3 = 1; + int a4 = 17; + int a25 = 1; + int a1 = 1; + int a26 = 18; + int a28 = 15; + int a7 = 1; + int a14 = 19; + + int calculate_output2(int input); + int calculate_output3(int input); + int calculate_output4(int input); + + int calculate_output(int input) { + if((((a25==1)&&((a1==1)&&((input==5)&&((((((a4==17)&&(a26==19))&&(a28==17))&&!(a7==1))&&(a14==20))||(((a7==1)&&(((a26==17)&&(a4==18))&&(a28==15)))&&(a14==18))))))&&(a3==1))){ + a28 = 15; + a26 = 17; + a4 = 16; + a14 = 18; + a7 = 1; + return -1; + } else if((((a25==1)&&(((a28==16)&&((a4==17)&&((a1==1)&&(((((a7==1)&&(a26==18))||((a26==19)&&(a7==1)))||(!(a7==1)&&(a26==17)))&&(input==4)))))&&!(a3==1)))&&(a14==20))){ + a26 = 19; + a28 = 15; + a7 = 0; + return -1; + } else if(((a28==17)&&((a1==1)&&((a25==1)&&((a7==1)&&((a4==17)&&(((a14==18)&&((input==4)&&((a26==17)||(a26==18))))&&!(a3==1)))))))){ + a28 = 15; + a4 = 16; + a26 = 17; + a3 = 1; + return -1; + } else if((!(a7==1)&&(!(a3==1)&&(((a28==16)&&((a25==1)&&((a4==17)&&((((a26==17)||(a26==18))&&(input==6))&&(a1==1)))))&&(a14==19))))){ + a7 = 1; + a26 = 17; + a28 = 15; + a4 = 16; + a3 = 1; + a14 = 18; + return -1; + } else if(((a28==16)&&((((a14==18)&&((!(a7==1)&&((a26==18)&&((a3==1)&&(input==1))))&&(a1==1)))&&(a25==1))&&(a4==18)))){ + a7 = 1; + a28 = 15; + a4 = 16; + a26 = 17; + return -1; + } else if((!(a3==1)&&((a28==17)&&((a25==1)&&((((input==5)&&((((a14==18)&&((a26==19)&&!(a7==1)))||((a14==19)&&((a7==1)&&(a26==17))))||((a14==19)&&((a26==18)&&(a7==1)))))&&(a4==17))&&(a1==1)))))){ + a28 = 15; + a4 = 16; + a7 = 1; + a14 = 18; + a26 = 17; + a3 = 1; + return -1; + } else if(((a1==1)&&((a26==17)&&((a4==18)&&(!(a7==1)&&((((a25==1)&&((input==3)&&(a28==15)))&&(a3==1))&&(a14==20))))))){ + a14 = 18; + a4 = 16; + a7 = 1; + return -1; + } else if(((((((a1==1)&&(((a14==20)&&((input==2)&&(a26==17)))&&!(a7==1)))&&(a28==15))&&(a25==1))&&(a4==17))&&!(a3==1))){ + a7 = 1; + a28 = 17; + a4 = 16; + a14 = 19; + a26 = 18; + return -1; + } else if(((a28==17)&&((a4==17)&&((a25==1)&&((a3==1)&&((a14==20)&&((a1==1)&&((input==6)&&((((a7==1)&&(a26==19))||((a26==17)&&!(a7==1)))||(!(a7==1)&&(a26==18))))))))))){ + a28 = 15; + a14 = 18; + a4 = 16; + a7 = 1; + a26 = 17; + return -1; + } else if(((((a4==17)&&((((((!(a7==1)&&(a26==19))&&(a14==19))||((a14==20)&&((a7==1)&&(a26==17))))&&(input==3))&&(a28==15))&&(a25==1)))&&(a3==1))&&(a1==1))){ + a14 = 18; + a26 = 17; + a7 = 1; + a4 = 16; + return -1; + } else if((((a28==16)&&((!(a7==1)&&((a1==1)&&((a4==17)&&((((a26==18)||(a26==19))&&(input==5))&&!(a3==1)))))&&(a14==18)))&&(a25==1))){ + a4 = 16; + a28 = 15; + a7 = 1; + a3 = 1; + a26 = 17; + return -1; + } else if(((a25==1)&&(((a1==1)&&(((a7==1)&&((((input==2)&&(a4==17))&&(a28==15))&&(a3==1)))&&(a26==18)))&&(a14==19)))){ + a26 = 17; + a14 = 20; + return 24; + } else if((((a26==18)&&((a7==1)&&((a28==16)&&(((((a25==1)&&(input==2))&&(a4==18))&&(a14==19))&&(a1==1)))))&&!(a3==1))){ + a7 = 0; + a4 = 16; + a3 = 1; + return -1; + } else if(((a4==18)&&((a7==1)&&(!(a3==1)&&((a14==19)&&(((a1==1)&&((a28==16)&&((input==1)&&(a26==18))))&&(a25==1))))))){ + a28 = 15; + a3 = 1; + a7 = 0; + a4 = 16; + a14 = 20; + return -1; + } else if(((a25==1)&&(!(a3==1)&&((a28==16)&&(((((input==3)&&((!(a7==1)&&(a26==17))||(((a7==1)&&(a26==18))||((a7==1)&&(a26==19)))))&&(a14==20))&&(a1==1))&&(a4==17)))))){ + a7 = 1; + a14 = 18; + a28 = 15; + a4 = 16; + a26 = 17; + a3 = 1; + return -1; + } else if(((a4==17)&&((a25==1)&&((a14==20)&&(((!(a3==1)&&((input==5)&&((((a7==1)&&(a26==18))||((a26==19)&&(a7==1)))||((a26==17)&&!(a7==1)))))&&(a1==1))&&(a28==16)))))){ + a26 = 18; + a28 = 15; + a7 = 0; + return 26; + } else if(((((((((a7==1)&&(((a26==19)||((a26==17)||(a26==18)))&&(input==5)))&&(a1==1))&&!(a3==1))&&(a25==1))&&(a14==20))&&(a4==18))&&(a28==15))){ + a4 = 16; + a26 = 17; + a3 = 1; + a14 = 18; + return -1; + } else if((((a26==19)&&((a7==1)&&(((((a14==18)&&((input==4)&&(a1==1)))&&!(a3==1))&&(a25==1))&&(a28==15))))&&(a4==16))){ + a3 = 1; + a26 = 17; + return -1; + } else if(((a26==18)&&(((a28==15)&&((a7==1)&&((a25==1)&&(((a4==17)&&((a14==19)&&(input==6)))&&(a3==1)))))&&(a1==1)))){ + a7 = 0; + a26 = 17; + return 21; + } else if((((a14==20)&&(((a28==15)&&((((a4==17)&&((input==5)&&(a3==1)))&&(a26==19))&&(a25==1)))&&(a1==1)))&&(a7==1))){ + a4 = 16; + a14 = 18; + a26 = 17; + return -1; + } else if((((a1==1)&&(((((a14==19)&&((input==4)&&(((a26==18)&&!(a7==1))||(((a7==1)&&(a26==19))||((a26==17)&&!(a7==1))))))&&(a28==16))&&(a4==16))&&(a25==1)))&&!(a3==1))){ + a26 = 18; + a14 = 20; + a7 = 0; + a28 = 17; + return -1; + } else if(((a28==17)&&(((a3==1)&&((a25==1)&&((a4==18)&&((input==1)&&((((a26==19)&&!(a7==1))&&(a14==19))||(((a26==17)&&(a7==1))&&(a14==20)))))))&&(a1==1)))){ + a26 = 17; + a4 = 16; + a7 = 1; + a14 = 18; + a28 = 15; + return -1; + } else if(((!(a7==1)&&(((!(a3==1)&&(((((a26==18)||(a26==19))&&(input==2))&&(a1==1))&&(a14==18)))&&(a25==1))&&(a4==16)))&&(a28==16))){ + a26 = 17; + a7 = 1; + a3 = 1; + a28 = 15; + return -1; + } else if((((a1==1)&&(((a14==20)&&(((a28==17)&&(((((a7==1)&&(a26==19))||((a26==17)&&!(a7==1)))||((a26==18)&&!(a7==1)))&&(input==3)))&&(a4==17)))&&(a3==1)))&&(a25==1))){ + a26 = 17; + a14 = 18; + a4 = 18; + a7 = 1; + return 22; + } else if((((a25==1)&&((a28==16)&&(((a1==1)&&((((((a26==18)&&!(a7==1))&&(a14==19))||(((a26==19)&&!(a7==1))&&(a14==19)))||((a14==20)&&((a7==1)&&(a26==17))))&&(input==5)))&&(a3==1))))&&(a4==17))){ + a4 = 16; + a7 = 1; + a28 = 15; + a14 = 18; + a26 = 17; + return -1; + } else if(((a1==1)&&((a4==16)&&((((((((a26==17)||(a26==18))&&(input==3))&&(a28==16))&&(a7==1))&&(a25==1))&&!(a3==1))&&(a14==19))))){ + a3 = 1; + a28 = 15; + a14 = 18; + a26 = 17; + return -1; + } else if(((a4==16)&&((a25==1)&&((a28==17)&&((((a14==19)&&(((input==1)&&((a26==18)||(a26==19)))&&(a7==1)))&&!(a3==1))&&(a1==1)))))){ + a3 = 1; + a28 = 15; + a14 = 18; + a26 = 17; + return -1; + } else if(((a25==1)&&(((((a3==1)&&((((((a26==19)&&!(a7==1))&&(a14==19))||((a14==20)&&((a7==1)&&(a26==17))))||(((a7==1)&&(a26==18))&&(a14==20)))&&(input==3)))&&(a28==15))&&(a1==1))&&(a4==18)))){ + a14 = 18; + a7 = 1; + a26 = 17; + a4 = 16; + return -1; + } else if(((a28==16)&&((a3==1)&&((a14==19)&&((((a4==18)&&(!(a7==1)&&((input==5)&&((a26==18)||(a26==19)))))&&(a25==1))&&(a1==1)))))){ + a26 = 17; + a14 = 18; + a7 = 1; + a4 = 16; + a28 = 15; + return -1; + } else if(((!(a3==1)&&((((((((a7==1)&&(a26==19))||(!(a7==1)&&(a26==17)))&&(input==2))&&(a4==17))&&(a25==1))&&(a28==15))&&(a14==19)))&&(a1==1))){ + a26 = 17; + a7 = 1; + a3 = 1; + a4 = 16; + a14 = 18; + return -1; + } else if(((((a28==17)&&(((((input==2)&&((((a26==18)&&(a7==1))||((a26==19)&&(a7==1)))||(!(a7==1)&&(a26==17))))&&(a14==18))&&(a25==1))&&(a4==18)))&&(a3==1))&&(a1==1))){ + a28 = 15; + a26 = 17; + a4 = 16; + a7 = 1; + return -1; + } else if((((((a3==1)&&(((a25==1)&&(((input==4)&&(a7==1))&&(a14==20)))&&(a1==1)))&&(a4==17))&&(a28==17))&&(a26==18))){ + a14 = 18; + a4 = 16; + a28 = 15; + a26 = 17; + return -1; + } else if(((a1==1)&&((a4==18)&&(((!(a7==1)&&((a14==19)&&(((input==5)&&((a26==17)||(a26==18)))&&(a25==1))))&&(a28==15))&&(a3==1))))){ + a7 = 1; + a14 = 18; + a26 = 17; + a4 = 16; + return -1; + } else if(((a25==1)&&((a4==18)&&((a1==1)&&((a28==16)&&((((input==2)&&((!(a7==1)&&(a26==18))||(((a7==1)&&(a26==19))||((a26==17)&&!(a7==1)))))&&(a14==18))&&!(a3==1))))))){ + a26 = 17; + a4 = 16; + a28 = 15; + a7 = 1; + a3 = 1; + return -1; + } else if((((a4==18)&&(((a28==16)&&((a3==1)&&((a14==18)&&(((!(a7==1)&&(a26==17))||(((a26==18)&&(a7==1))||((a7==1)&&(a26==19))))&&(input==2)))))&&(a1==1)))&&(a25==1))){ + a26 = 17; + a28 = 15; + a4 = 16; + a7 = 1; + return -1; + } else if(((!(a7==1)&&((a28==16)&&((a25==1)&&((a1==1)&&(!(a3==1)&&(((input==5)&&(a14==19))&&(a26==18)))))))&&(a4==18))){ + a26 = 19; + a7 = 1; + a14 = 20; + return 23; + } else if(((((((a28==15)&&(((a1==1)&&((input==2)&&((a26==17)||(a26==18))))&&!(a3==1)))&&(a25==1))&&(a14==19))&&(a7==1))&&(a4==16))){ + a3 = 1; + a14 = 18; + a26 = 17; + return -1; + } else if(((((((!(a7==1)&&((a14==20)&&(((a26==17)||(a26==18))&&(input==6))))&&(a25==1))&&(a4==16))&&(a1==1))&&!(a3==1))&&(a28==15))){ + a26 = 17; + return -1; + } else if(((a14==19)&&((a26==19)&&((a28==15)&&(((a4==16)&&(!(a3==1)&&(((a25==1)&&(input==2))&&!(a7==1))))&&(a1==1)))))){ + a14 = 18; + a26 = 17; + a7 = 1; + a3 = 1; + return -1; + } else if((((((a25==1)&&((a4==18)&&((((((a7==1)&&(a26==18))||((a26==19)&&(a7==1)))||((a26==17)&&!(a7==1)))&&(input==4))&&(a14==18))))&&(a28==17))&&(a3==1))&&(a1==1))){ + a28 = 15; + a7 = 1; + a26 = 17; + a4 = 16; + return -1; + } else if((((a28==16)&&((((a14==19)&&((((((a7==1)&&(a26==18))||((a7==1)&&(a26==19)))||(!(a7==1)&&(a26==17)))&&(input==1))&&(a3==1)))&&(a25==1))&&(a1==1)))&&(a4==17))){ + a26 = 17; + a4 = 18; + a28 = 15; + a7 = 1; + a14 = 20; + return 22; + } else if(((a25==1)&&((((((a28==15)&&(((input==6)&&(a14==19))&&(a26==18)))&&!(a7==1))&&(a4==17))&&(a1==1))&&!(a3==1)))){ + a4 = 16; + a26 = 17; + a7 = 1; + a3 = 1; + a14 = 18; + return -1; + } else if(((a3==1)&&(((((input==4)&&(((a14==18)&&((a7==1)&&((a26==17)&&(a28==16))))||(((a14==20)&&(((a26==18)&&(a28==15))&&!(a7==1)))||((!(a7==1)&&((a26==19)&&(a28==15)))&&(a14==20)))))&&(a1==1))&&(a25==1))&&(a4==18)))){ + a28 = 15; + a7 = 1; + a4 = 16; + a3 = 0; + a26 = 17; + a14 = 19; + return 22; + } else if(((a14==20)&&((a25==1)&&(((a7==1)&&((((a4==16)&&((input==5)&&((a26==17)||(a26==18))))&&(a1==1))&&!(a3==1)))&&(a28==15))))){ + a3 = 1; + a14 = 18; + a26 = 17; + return -1; + } else if((!(a3==1)&&(((a25==1)&&((a28==17)&&(((input==5)&&(((a14==20)&&((a26==18)&&(a7==1)))||(((!(a7==1)&&(a26==19))&&(a14==19))||((a14==20)&&((a26==17)&&(a7==1))))))&&(a4==16))))&&(a1==1)))){ + a26 = 17; + a7 = 1; + a28 = 15; + a14 = 18; + a3 = 1; + return -1; + } else if(((a14==18)&&((a28==16)&&(((((!(a7==1)&&((input==6)&&((a26==18)||(a26==19))))&&(a4==16))&&!(a3==1))&&(a1==1))&&(a25==1))))){ + a26 = 18; + a28 = 15; + a14 = 20; + return 26; + } else if(((a4==18)&&((a26==17)&&((a25==1)&&((a1==1)&&((((a7==1)&&((a28==16)&&(input==6)))&&(a14==20))&&(a3==1))))))){ + a4 = 17; + a28 = 17; + return -1; + } else if((((a25==1)&&((a28==16)&&(!(a3==1)&&((a4==16)&&(((input==1)&&(((a7==1)&&(a26==19))||((a26==17)&&!(a7==1))))&&(a1==1))))))&&(a14==20))){ + a7 = 1; + a28 = 15; + a4 = 17; + a14 = 19; + a26 = 19; + return 24; + } else if(((a1==1)&&((a3==1)&&(((a14==20)&&((a28==16)&&(((input==3)&&((((a7==1)&&(a26==18))||((a26==19)&&(a7==1)))||((a26==17)&&!(a7==1))))&&(a25==1))))&&(a4==18))))){ + a26 = 17; + a14 = 18; + a4 = 16; + a7 = 1; + a28 = 15; + return -1; + } else if(((((a4==18)&&((((input==6)&&(((a14==18)&&(!(a7==1)&&(a26==19)))||((a14==19)&&((a26==17)&&(a7==1)))))&&(a1==1))&&!(a3==1)))&&(a25==1))&&(a28==16))){ + a28 = 15; + a14 = 18; + a7 = 1; + a4 = 16; + a26 = 17; + a3 = 1; + return -1; + } else if(((a7==1)&&((a25==1)&&((((a1==1)&&(((a28==17)&&((input==2)&&((a26==17)||(a26==18))))&&(a14==18)))&&(a4==18))&&!(a3==1))))){ + a4 = 16; + a3 = 1; + a26 = 19; + a28 = 16; + a14 = 20; + return -1; + } else if(((((((a28==16)&&((a25==1)&&((input==6)&&(((a26==17)&&!(a7==1))||(((a26==18)&&(a7==1))||((a7==1)&&(a26==19)))))))&&(a1==1))&&(a3==1))&&(a14==19))&&(a4==18))){ + a26 = 17; + a14 = 18; + a4 = 16; + a7 = 1; + a28 = 15; + return -1; + } else if((((a14==19)&&((a25==1)&&((!(a7==1)&&((a28==16)&&((a4==17)&&((input==3)&&!(a3==1)))))&&(a26==19))))&&(a1==1))){ + a28 = 15; + a14 = 18; + a7 = 1; + a26 = 17; + a3 = 1; + a4 = 16; + return -1; + } else if(((((a1==1)&&((((a3==1)&&((a14==19)&&((input==2)&&(a4==18))))&&(a7==1))&&(a28==15)))&&(a26==18))&&(a25==1))){ + a26 = 17; + a4 = 16; + a14 = 18; + return -1; + } else if(((a4==16)&&((!(a3==1)&&((a14==19)&&((a1==1)&&(((((a26==17)||(a26==18))&&(input==4))&&(a28==15))&&!(a7==1)))))&&(a25==1)))){ + a28 = 17; + a26 = 17; + a14 = 18; + return 24; + } else if(((((((a14==18)&&((((input==1)&&(a3==1))&&(a28==17))&&(a4==18)))&&!(a7==1))&&(a26==18))&&(a1==1))&&(a25==1))){ + a26 = 17; + a28 = 15; + a7 = 1; + a4 = 16; + return -1; + } else if(((a7==1)&&((a26==19)&&((a1==1)&&((a14==19)&&((a25==1)&&((a28==15)&&((a4==16)&&(!(a3==1)&&(input==5)))))))))){ + a3 = 1; + a14 = 18; + a26 = 17; + return -1; + } else if((!(a7==1)&&(((a1==1)&&(((!(a3==1)&&((a14==18)&&((input==6)&&((a26==19)||((a26==17)||(a26==18))))))&&(a4==16))&&(a25==1)))&&(a28==15)))){ + a3 = 1; + a26 = 17; + a7 = 1; + return -1; + } else if(((a4==16)&&((!(a3==1)&&((a14==20)&&((((((a26==17)||(a26==18))&&(input==4))&&(a28==15))&&(a25==1))&&(a1==1))))&&!(a7==1)))){ + a7 = 1; + a14 = 19; + a3 = 1; + a26 = 19; + a28 = 17; + a4 = 18; + return 22; + } else if((((a4==16)&&((((a14==19)&&((a7==1)&&(((input==1)&&((a26==17)||(a26==18)))&&!(a3==1))))&&(a25==1))&&(a1==1)))&&(a28==15))){ + a3 = 1; + a26 = 17; + a14 = 18; + return -1; + } else if((((((a26==19)&&((a4==18)&&((!(a7==1)&&((a28==16)&&(input==2)))&&(a1==1))))&&(a14==18))&&(a25==1))&&(a3==1))){ + a3 = 0; + a14 = 19; + a28 = 15; + a4 = 16; + return 26; + } else if(((((a1==1)&&((a28==17)&&((a14==20)&&((a3==1)&&(((((a26==19)&&(a7==1))||(!(a7==1)&&(a26==17)))||((a26==18)&&!(a7==1)))&&(input==5))))))&&(a4==17))&&(a25==1))){ + a28 = 15; + a4 = 16; + a14 = 18; + a26 = 17; + a7 = 1; + return -1; + } else if((((a25==1)&&((a4==18)&&((((a7==1)&&(((input==6)&&(a3==1))&&(a1==1)))&&(a14==19))&&(a26==17))))&&(a28==16))){ + a28 = 15; + a4 = 16; + a14 = 18; + return -1; + } else if(((((a1==1)&&(((((((a26==18)||(a26==19))&&(input==4))&&(a25==1))&&!(a3==1))&&(a14==18))&&(a28==16)))&&!(a7==1))&&(a4==16))){ + a28 = 15; + a26 = 17; + a7 = 1; + a3 = 1; + return -1; + } else if(((a1==1)&&(((a14==19)&&((((a7==1)&&(((input==6)&&((a26==18)||(a26==19)))&&(a28==17)))&&!(a3==1))&&(a25==1)))&&(a4==16)))){ + a14 = 18; + a3 = 1; + a28 = 15; + a26 = 17; + return -1; + } else if(((((a25==1)&&((((a7==1)&&(((input==2)&&(a14==20))&&(a4==17)))&&(a28==15))&&(a26==18)))&&(a1==1))&&(a3==1))){ + a14 = 18; + a28 = 17; + return 24; + } else if(((((a1==1)&&((a14==20)&&((!(a7==1)&&(((a28==15)&&(input==5))&&(a26==17)))&&(a25==1))))&&(a3==1))&&(a4==17))){ + a26 = 18; + a28 = 17; + return 22; + } else if(((a1==1)&&((a4==17)&&((a25==1)&&((a28==16)&&(!(a7==1)&&((!(a3==1)&&(((a26==18)||(a26==19))&&(input==5)))&&(a14==20)))))))){ + a26 = 19; + return 24; + } else if((((a14==19)&&((a3==1)&&((a1==1)&&(((a25==1)&&(((!(a7==1)&&(a26==17))||(((a26==18)&&(a7==1))||((a26==19)&&(a7==1))))&&(input==1)))&&(a4==18)))))&&(a28==17))){ + a28 = 15; + a26 = 17; + a14 = 18; + a7 = 1; + a4 = 16; + return -1; + } else if(((a28==16)&&(((a1==1)&&((a4==17)&&((a3==1)&&((a25==1)&&((input==6)&&(((a26==17)&&!(a7==1))||(((a7==1)&&(a26==18))||((a26==19)&&(a7==1)))))))))&&(a14==20)))){ + a28 = 15; + a4 = 16; + a7 = 1; + a26 = 17; + a14 = 18; + return -1; + } else if((((a25==1)&&((((a1==1)&&((((input==6)&&((a26==18)||(a26==19)))&&(a4==18))&&(a14==20)))&&!(a7==1))&&(a28==15)))&&!(a3==1))){ + a14 = 18; + a7 = 1; + a26 = 19; + a28 = 16; + return 22; + } else if(((a28==16)&&(((((a4==16)&&((a7==1)&&(((input==6)&&(a14==18))&&!(a3==1))))&&(a25==1))&&(a1==1))&&(a26==18)))){ + a26 = 17; + a3 = 1; + a28 = 15; + return -1; + } else if((((a28==15)&&((a1==1)&&((a4==16)&&(!(a3==1)&&(((((a26==17)||(a26==18))&&(input==1))&&(a25==1))&&(a14==20))))))&&(a7==1))){ + a28 = 17; + a26 = 19; + a14 = 18; + a7 = 0; + return 21; + } else if(((a1==1)&&((a28==15)&&(((a4==17)&&(((a26==19)&&(((a14==19)&&(input==4))&&(a25==1)))&&!(a3==1)))&&!(a7==1))))){ + a3 = 1; + a14 = 18; + a4 = 16; + a26 = 17; + a7 = 1; + return -1; + } else if(((a14==19)&&(((a7==1)&&((((((a4==18)&&(input==4))&&(a26==18))&&(a28==15))&&(a25==1))&&(a1==1)))&&(a3==1)))){ + a4 = 16; + a14 = 18; + a26 = 17; + return -1; + } else if(((((a1==1)&&((a28==16)&&((a7==1)&&((a4==18)&&(!(a3==1)&&(((a26==17)||(a26==18))&&(input==6)))))))&&(a25==1))&&(a14==18))){ + a26 = 17; + a28 = 15; + a3 = 1; + a4 = 16; + return -1; + } else if((((a4==16)&&(((a1==1)&&((a26==18)&&((!(a3==1)&&((a25==1)&&(input==3)))&&(a14==18))))&&(a7==1)))&&(a28==16))){ + a26 = 17; + a28 = 15; + a3 = 1; + return -1; + } else if(((a28==17)&&((a14==19)&&((a26==18)&&(!(a7==1)&&((a25==1)&&((((input==3)&&(a3==1))&&(a4==18))&&(a1==1)))))))){ + a7 = 1; + return 26; + } else if(((((a1==1)&&(((((input==3)&&(((a26==17)&&!(a7==1))||(((a26==18)&&(a7==1))||((a7==1)&&(a26==19)))))&&(a28==17))&&(a4==18))&&(a3==1)))&&(a25==1))&&(a14==20))){ + a7 = 1; + a26 = 17; + a4 = 16; + a28 = 15; + a14 = 18; + return -1; + } else if((((a4==18)&&((((input==6)&&((((((a28==16)&&(a26==18))&&!(a7==1))&&(a14==20))||((!(a7==1)&&((a28==16)&&(a26==19)))&&(a14==20)))||(((a7==1)&&((a28==17)&&(a26==17)))&&(a14==18))))&&(a3==1))&&(a1==1)))&&(a25==1))){ + a14 = 18; + a26 = 17; + a7 = 1; + a28 = 15; + a4 = 16; + return -1; + } else if(((((a1==1)&&(((a25==1)&&(((((!(a7==1)&&(a26==19))&&(a14==19))||(((a26==17)&&(a7==1))&&(a14==20)))||((a14==20)&&((a7==1)&&(a26==18))))&&(input==6)))&&(a28==17)))&&(a4==16))&&!(a3==1))){ + a3 = 1; + a28 = 15; + a26 = 17; + a14 = 18; + a7 = 1; + return -1; + } else if(((((((a1==1)&&((a4==17)&&(!(a7==1)&&((input==6)&&((a26==18)||(a26==19))))))&&(a25==1))&&!(a3==1))&&(a14==20))&&(a28==16))){ + a26 = 17; + a28 = 15; + return -1; + } else if(((((a14==20)&&(((a4==18)&&(((input==2)&&((((a26==18)&&(a7==1))||((a26==19)&&(a7==1)))||((a26==17)&&!(a7==1))))&&(a25==1)))&&(a28==16)))&&(a1==1))&&(a3==1))){ + a7 = 1; + a26 = 17; + a4 = 16; + a28 = 15; + a14 = 18; + return -1; + } else if(((a14==20)&&((a4==17)&&((a28==16)&&(!(a3==1)&&((a1==1)&&((a25==1)&&((((a26==18)||(a26==19))&&(input==2))&&!(a7==1))))))))){ + a26 = 19; + return -1; + } else if(((a4==16)&&(!(a3==1)&&(((((a28==17)&&(((a1==1)&&(input==6))&&(a26==18)))&&(a14==19))&&!(a7==1))&&(a25==1))))){ + a28 = 15; + a7 = 1; + a14 = 18; + a26 = 17; + a3 = 1; + return -1; + } else if(((((((((((a7==1)&&(a26==18))&&(a14==19))||(((a14==18)&&(!(a7==1)&&(a26==19)))||((a14==19)&&((a26==17)&&(a7==1)))))&&(input==2))&&(a4==17))&&(a1==1))&&(a28==17))&&!(a3==1))&&(a25==1))){ + a28 = 15; + a26 = 17; + a7 = 1; + a14 = 18; + a3 = 1; + a4 = 16; + return -1; + } else if(((a4==16)&&(!(a7==1)&&((a25==1)&&(((a14==19)&&(!(a3==1)&&((a1==1)&&((a26==19)&&(input==3)))))&&(a28==15)))))){ + a7 = 1; + a26 = 17; + a3 = 1; + a14 = 18; + return -1; + } else if(((a7==1)&&(((a28==15)&&((((((input==6)&&(a1==1))&&(a14==19))&&(a4==18))&&(a25==1))&&(a3==1)))&&(a26==17)))){ + a4 = 16; + a14 = 18; + return -1; + } else if((((a1==1)&&((((a4==17)&&(!(a7==1)&&(((input==1)&&((a26==17)||(a26==18)))&&!(a3==1))))&&(a25==1))&&(a14==19)))&&(a28==16))){ + a26 = 17; + a14 = 18; + a7 = 1; + a3 = 1; + a4 = 16; + a28 = 15; + return -1; + } else if((((a1==1)&&(((!(a3==1)&&((a28==17)&&(!(a7==1)&&((a14==19)&&(input==4)))))&&(a25==1))&&(a4==16)))&&(a26==18))){ + a26 = 17; + a14 = 18; + a28 = 15; + a7 = 1; + a3 = 1; + return -1; + } else if(((!(a3==1)&&((!(a7==1)&&((a1==1)&&((a25==1)&&(((input==5)&&((a26==18)||(a26==19)))&&(a4==16)))))&&(a28==16)))&&(a14==18))){ + a3 = 1; + a26 = 17; + a28 = 15; + a7 = 1; + return -1; + } else if((((((a28==17)&&((((((a26==18)&&(a7==1))&&(a14==19))||(((!(a7==1)&&(a26==19))&&(a14==18))||((a14==19)&&((a26==17)&&(a7==1)))))&&(input==4))&&(a1==1)))&&(a25==1))&&(a4==17))&&!(a3==1))){ + a4 = 16; + a14 = 18; + a28 = 15; + a26 = 17; + a3 = 1; + a7 = 1; + return -1; + } else if((((a4==17)&&(((a28==17)&&((((((a14==19)&&((a26==18)&&!(a7==1)))||((!(a7==1)&&(a26==19))&&(a14==19)))||(((a26==17)&&(a7==1))&&(a14==20)))&&(input==1))&&(a3==1)))&&(a1==1)))&&(a25==1))){ + a28 = 15; + a4 = 16; + a7 = 1; + a26 = 17; + a14 = 18; + return -1; + } else if(((((a25==1)&&(((((!(a7==1)&&((a28==15)&&(a26==19)))&&(a14==20))||(((a7==1)&&((a28==16)&&(a26==17)))&&(a14==18)))&&(input==1))&&(a4==16)))&&!(a3==1))&&(a1==1))){ + a14 = 18; + a28 = 15; + a7 = 1; + a3 = 1; + a26 = 17; + return -1; + } else if((((a25==1)&&((((a3==1)&&((input==2)&&(((((a26==18)&&!(a7==1))&&(a14==19))||((!(a7==1)&&(a26==19))&&(a14==19)))||(((a7==1)&&(a26==17))&&(a14==20)))))&&(a4==17))&&(a1==1)))&&(a28==16))){ + a4 = 16; + a14 = 18; + a7 = 1; + a28 = 15; + a26 = 17; + return -1; + } else if((((((a25==1)&&(((a28==15)&&((a1==1)&&((input==3)&&(a4==18))))&&!(a3==1)))&&!(a7==1))&&(a26==17))&&(a14==20))){ + a3 = 1; + a14 = 18; + a4 = 16; + a7 = 1; + return -1; + } else if((((a25==1)&&((((a28==15)&&(((a1==1)&&((a3==1)&&(input==3)))&&(a4==18)))&&(a14==19))&&(a7==1)))&&(a26==19))){ + a4 = 16; + a14 = 18; + a26 = 17; + return -1; + } else if(((a4==18)&&((a14==18)&&((a1==1)&&((a26==18)&&(!(a3==1)&&(((a25==1)&&((input==4)&&(a28==15)))&&!(a7==1)))))))){ + a3 = 1; + a7 = 1; + a4 = 16; + a26 = 17; + return -1; + } else if(((((a1==1)&&(((((input==1)&&((((a26==19)&&(a7==1))||((a26==17)&&!(a7==1)))||((a26==18)&&!(a7==1))))&&(a28==17))&&!(a3==1))&&(a4==18)))&&(a14==18))&&(a25==1))){ + a26 = 18; + a7 = 0; + return -1; + } else if(((((a4==18)&&(!(a3==1)&&((a25==1)&&((((input==1)&&((a26==18)||(a26==19)))&&(a1==1))&&(a14==19)))))&&!(a7==1))&&(a28==15))){ + a14 = 20; + a26 = 17; + return 24; + } else if(((a14==19)&&((((a28==17)&&((a1==1)&&((a4==17)&&((input==1)&&((!(a7==1)&&(a26==17))||(((a26==18)&&(a7==1))||((a7==1)&&(a26==19))))))))&&(a25==1))&&(a3==1)))){ + a7 = 1; + a28 = 16; + a4 = 18; + a26 = 18; + return 26; + } else if((((a25==1)&&(((a28==17)&&((((input==4)&&((((a26==18)&&(a7==1))||((a26==19)&&(a7==1)))||((a26==17)&&!(a7==1))))&&(a4==17))&&(a14==19)))&&(a1==1)))&&(a3==1))){ + a7 = 1; + a26 = 17; + a14 = 18; + a28 = 15; + a4 = 16; + return -1; + } else if(((a1==1)&&((a28==17)&&((a14==19)&&((a4==17)&&(((((input==6)&&(a25==1))&&!(a3==1))&&(a26==18))&&!(a7==1))))))){ + a26 = 17; + a7 = 1; + a14 = 18; + a28 = 15; + a4 = 16; + a3 = 1; + return -1; + } else if(((((((((a25==1)&&((input==6)&&(a28==15)))&&(a1==1))&&(a26==18))&&!(a3==1))&&(a4==18))&&(a7==1))&&(a14==19))){ + a26 = 17; + a14 = 20; + a4 = 16; + a7 = 0; + return 26; + } else if(((a26==19)&&((a28==16)&&((a3==1)&&((a1==1)&&((a14==18)&&(((a25==1)&&((input==3)&&(a4==18)))&&!(a7==1)))))))){ + a4 = 16; + a7 = 1; + a26 = 17; + a28 = 15; + return -1; + } else if((((a28==16)&&((a14==18)&&((a4==17)&&((a3==1)&&((((((a26==18)&&(a7==1))||((a26==19)&&(a7==1)))||(!(a7==1)&&(a26==17)))&&(input==3))&&(a25==1))))))&&(a1==1))){ + a28 = 15; + a14 = 19; + a4 = 18; + a26 = 17; + a7 = 1; + return 24; + } else if((!(a3==1)&&(((a14==19)&&((a1==1)&&((a28==16)&&(((((a26==17)||(a26==18))&&(input==4))&&(a25==1))&&(a4==16)))))&&(a7==1)))){ + a14 = 20; + a26 = 19; + a28 = 17; + return 23; + } else if((((a14==20)&&((a1==1)&&((a28==17)&&((!(a3==1)&&((a4==17)&&((input==5)&&(((a26==17)||(a26==18))||(a26==19)))))&&(a7==1)))))&&(a25==1))){ + a26 = 17; + a14 = 18; + a3 = 1; + a28 = 15; + a4 = 16; + return -1; + } else if(((a1==1)&&((a14==19)&&(((a25==1)&&((a3==1)&&((a26==18)&&(((input==5)&&(a28==17))&&!(a7==1)))))&&(a4==18))))){ + a26 = 17; + a4 = 16; + a28 = 15; + a7 = 1; + a14 = 18; + return -1; + } else if((((a4==17)&&(!(a3==1)&&(((((((a26==18)&&!(a7==1))||(((a26==19)&&(a7==1))||(!(a7==1)&&(a26==17))))&&(input==2))&&(a25==1))&&(a1==1))&&(a14==18))))&&(a28==17))){ + a26 = 19; + a14 = 20; + a7 = 1; + a28 = 16; + return 24; + } else if((((a4==18)&&((a14==20)&&((a25==1)&&((a1==1)&&((a28==16)&&((((a26==19)&&(a7==1))||(!(a7==1)&&(a26==17)))&&(input==5)))))))&&!(a3==1))){ + a28 = 17; + a7 = 0; + a26 = 18; + a14 = 19; + a4 = 16; + a3 = 1; + return -1; + } else if((!(a3==1)&&((a14==19)&&((a25==1)&&(((a1==1)&&(((((a26==18)&&!(a7==1))||(((a26==19)&&(a7==1))||(!(a7==1)&&(a26==17))))&&(input==1))&&(a4==16)))&&(a28==16)))))){ + a28 = 15; + a4 = 17; + a7 = 1; + a26 = 18; + a14 = 18; + return 23; + } else if(((a4==16)&&((a28==15)&&(!(a3==1)&&(((!(a7==1)&&((((a26==19)||((a26==17)||(a26==18)))&&(input==3))&&(a25==1)))&&(a14==18))&&(a1==1)))))){ + a7 = 1; + a26 = 17; + a3 = 1; + return -1; + } else if((((a1==1)&&((a3==1)&&(((a7==1)&&(((a14==18)&&(((a26==18)||(a26==19))&&(input==4)))&&(a25==1)))&&(a28==15))))&&(a4==18))){ + a4 = 16; + a26 = 17; + return -1; + } else if(((a28==16)&&((a4==17)&&((((a1==1)&&((((((a26==18)&&(a7==1))||((a7==1)&&(a26==19)))||((a26==17)&&!(a7==1)))&&(input==4))&&(a25==1)))&&(a14==18))&&(a3==1))))){ + a26 = 18; + a28 = 15; + a7 = 0; + a4 = 18; + return 24; + } else if((!(a3==1)&&((((a1==1)&&((a25==1)&&((input==5)&&((((a7==1)&&(a26==18))&&(a14==20))||((((a26==19)&&!(a7==1))&&(a14==19))||(((a7==1)&&(a26==17))&&(a14==20)))))))&&(a28==16))&&(a4==18)))){ + a14 = 19; + a4 = 17; + a26 = 17; + a7 = 0; + return -1; + } else if(((a7==1)&&(((((a25==1)&&(!(a3==1)&&((a28==16)&&((a4==17)&&(input==5)))))&&(a1==1))&&(a26==17))&&(a14==20)))){ + a28 = 15; + a14 = 18; + a3 = 1; + a4 = 16; + return -1; + } else if((((((((((a14==19)&&(!(a7==1)&&(a26==19)))||(((a7==1)&&(a26==17))&&(a14==20)))&&(input==4))&&(a4==17))&&(a1==1))&&(a28==15))&&(a3==1))&&(a25==1))){ + a7 = 0; + a26 = 18; + a28 = 16; + a14 = 18; + return 23; + } else if((!(a3==1)&&((((a28==17)&&((a14==18)&&((((((a7==1)&&(a26==19))||((a26==17)&&!(a7==1)))||((a26==18)&&!(a7==1)))&&(input==5))&&(a1==1))))&&(a4==18))&&(a25==1)))){ + a14 = 20; + a7 = 0; + a4 = 17; + a28 = 16; + a26 = 17; + return 23; + } else if(((a14==19)&&(((a4==17)&&(((a3==1)&&((((a7==1)&&(input==4))&&(a28==15))&&(a25==1)))&&(a26==18)))&&(a1==1)))){ + a26 = 17; + a14 = 18; + a4 = 16; + return -1; + } else if((((a14==20)&&((((a4==17)&&(((((a26==18)&&!(a7==1))||(((a7==1)&&(a26==19))||((a26==17)&&!(a7==1))))&&(input==2))&&(a25==1)))&&(a3==1))&&(a1==1)))&&(a28==17))){ + a7 = 1; + a14 = 18; + a4 = 16; + a26 = 17; + a28 = 15; + return -1; + } else if((((a28==15)&&((a7==1)&&(!(a3==1)&&((a25==1)&&(((a26==19)&&((a14==20)&&(input==6)))&&(a1==1))))))&&(a4==16))){ + a3 = 1; + a26 = 17; + a14 = 18; + return -1; + } else if((((a26==18)&&(((((a28==17)&&((a4==16)&&((a7==1)&&(input==6))))&&(a1==1))&&(a14==18))&&!(a3==1)))&&(a25==1))){ + return -1; + } else if((((a7==1)&&(((a28==15)&&((a4==17)&&((a1==1)&&((a14==19)&&((input==3)&&(a26==18))))))&&(a25==1)))&&(a3==1))){ + a14 = 18; + a26 = 17; + a4 = 16; + return -1; + } else if(((a28==17)&&((a4==18)&&((a25==1)&&(((a3==1)&&((input==3)&&(((!(a7==1)&&(a26==19))&&(a14==18))||(((a26==17)&&(a7==1))&&(a14==19)))))&&(a1==1)))))){ + a14 = 18; + a7 = 0; + a26 = 19; + return 26; + } else if((((a14==20)&&(((((a4==18)&&((input==1)&&(((a26==17)&&!(a7==1))||(((a26==18)&&(a7==1))||((a26==19)&&(a7==1))))))&&(a3==1))&&(a28==16))&&(a1==1)))&&(a25==1))){ + a7 = 1; + a26 = 17; + return -1; + } else if((((((a28==16)&&(((input==3)&&((((a7==1)&&(a26==17))&&(a14==19))||(((a14==18)&&((a26==18)&&!(a7==1)))||((a14==18)&&(!(a7==1)&&(a26==19))))))&&(a1==1)))&&(a25==1))&&(a4==17))&&(a3==1))){ + a4 = 16; + a28 = 15; + a7 = 1; + a14 = 18; + a26 = 17; + return -1; + } else if((((a14==19)&&(((((a1==1)&&((((a7==1)&&(a26==19))||(!(a7==1)&&(a26==17)))&&(input==5)))&&(a4==17))&&!(a3==1))&&(a25==1)))&&(a28==17))){ + a3 = 1; + a14 = 18; + a7 = 1; + a28 = 15; + a4 = 16; + a26 = 17; + return -1; + } else if((!(a7==1)&&((a1==1)&&(((a3==1)&&((a25==1)&&(((((a26==18)||(a26==19))&&(input==2))&&(a28==16))&&(a14==20))))&&(a4==17))))){ + a7 = 1; + a28 = 15; + a26 = 17; + a4 = 16; + a14 = 18; + return -1; + } else if(((!(a3==1)&&((((((((a26==19)&&(a7==1))||((a26==17)&&!(a7==1)))&&(input==2))&&(a4==17))&&(a28==17))&&(a25==1))&&(a1==1)))&&(a14==19))){ + a28 = 15; + a14 = 18; + a4 = 16; + a3 = 1; + a7 = 1; + a26 = 17; + return -1; + } else if((!(a3==1)&&((a28==16)&&(((a1==1)&&((((input==2)&&(((a26==18)&&!(a7==1))||(((a26==19)&&(a7==1))||(!(a7==1)&&(a26==17)))))&&(a14==19))&&(a25==1)))&&(a4==16))))){ + a7 = 1; + a26 = 17; + a3 = 1; + a14 = 18; + a28 = 15; + return -1; + } else if(((!(a3==1)&&((a28==16)&&((((a14==19)&&((a1==1)&&((input==1)&&((a26==17)||(a26==18)))))&&(a25==1))&&(a4==16))))&&(a7==1))){ + a3 = 1; + a28 = 15; + a14 = 18; + a26 = 17; + return -1; + } else if((((a1==1)&&(((a25==1)&&(((a7==1)&&(((a4==16)&&(input==2))&&!(a3==1)))&&(a14==18)))&&(a26==19)))&&(a28==15))){ + a26 = 18; + a28 = 16; + a14 = 20; + return 24; + } else if(((a14==18)&&(!(a3==1)&&((((((a1==1)&&(((a26==17)||(a26==18))&&(input==5)))&&(a25==1))&&(a7==1))&&(a28==15))&&(a4==18))))){ + a3 = 1; + a26 = 17; + a4 = 16; + return -1; + } else if(((!(a3==1)&&((a28==17)&&(((a1==1)&&((a25==1)&&((!(a7==1)&&(input==4))&&(a14==18))))&&(a4==16))))&&(a26==18))){ + a7 = 1; + a28 = 15; + a3 = 1; + a26 = 17; + return -1; + } else if(((a4==17)&&((((a26==19)&&(((((input==4)&&(a25==1))&&(a28==17))&&(a14==19))&&!(a7==1)))&&(a1==1))&&!(a3==1)))){ + a3 = 1; + a7 = 1; + a28 = 15; + a26 = 17; + a14 = 18; + a4 = 16; + return -1; + } else if((((a25==1)&&((a7==1)&&((a14==19)&&((((((a26==18)||(a26==19))&&(input==5))&&(a4==16))&&(a28==17))&&!(a3==1)))))&&(a1==1))){ + a26 = 18; + return 26; + } else if((!(a3==1)&&((a25==1)&&((a4==17)&&(((input==5)&&(((a14==18)&&(((a26==17)&&(a28==16))&&(a7==1)))||(((a14==20)&&(((a28==15)&&(a26==18))&&!(a7==1)))||((!(a7==1)&&((a26==19)&&(a28==15)))&&(a14==20)))))&&(a1==1)))))){ + a7 = 1; + a14 = 20; + a28 = 16; + a26 = 19; + return 22; + } else if((((a25==1)&&((((a14==19)&&(((input==3)&&(((a7==1)&&(a26==19))||(!(a7==1)&&(a26==17))))&&(a1==1)))&&(a28==17))&&(a4==17)))&&!(a3==1))){ + a14 = 18; + a7 = 1; + a3 = 1; + a26 = 17; + a4 = 16; + a28 = 15; + return -1; + } else if(((a4==17)&&(((a25==1)&&(((!(a7==1)&&(((input==5)&&(((a26==17)||(a26==18))||(a26==19)))&&(a14==20)))&&(a1==1))&&!(a3==1)))&&(a28==17)))){ + a7 = 1; + a14 = 18; + a26 = 17; + a28 = 15; + a4 = 16; + a3 = 1; + return -1; + } else if(((a1==1)&&(((a25==1)&&((a28==17)&&((a3==1)&&((((!(a7==1)&&(a26==18))||(((a26==19)&&(a7==1))||(!(a7==1)&&(a26==17))))&&(input==1))&&(a14==20)))))&&(a4==17)))){ + a14 = 18; + a7 = 1; + a26 = 17; + a4 = 16; + a28 = 15; + return -1; + } else if(((a4==18)&&((a25==1)&&((a1==1)&&((a28==15)&&((((((a7==1)&&(a26==19))||(!(a7==1)&&(a26==17)))&&(input==1))&&(a14==18))&&!(a3==1))))))){ + a4 = 16; + a3 = 1; + a7 = 1; + a26 = 17; + return -1; + } else if(((a1==1)&&((a25==1)&&(((((((!(a7==1)&&((a28==15)&&(a26==18)))&&(a14==20))||((((a26==19)&&(a28==15))&&!(a7==1))&&(a14==20)))||((((a26==17)&&(a28==16))&&(a7==1))&&(a14==18)))&&(input==5))&&(a4==17))&&(a3==1))))){ + a4 = 18; + a7 = 1; + a26 = 17; + a14 = 18; + a28 = 15; + return 26; + } else if((((a28==15)&&((((a25==1)&&((a4==16)&&(((((a26==17)||(a26==18))||(a26==19))&&(input==2))&&!(a3==1))))&&!(a7==1))&&(a14==18)))&&(a1==1))){ + a3 = 1; + a26 = 17; + a7 = 1; + return -1; + } else if(((((((a4==17)&&((input==4)&&(((((a26==19)&&!(a7==1))&&(a14==18))||(((a26==17)&&(a7==1))&&(a14==19)))||(((a26==18)&&(a7==1))&&(a14==19)))))&&(a28==15))&&(a1==1))&&!(a3==1))&&(a25==1))){ + a7 = 1; + a26 = 17; + a4 = 16; + a14 = 18; + a3 = 1; + return -1; + } else if(((a14==19)&&((a25==1)&&(((!(a7==1)&&((a4==17)&&(((input==2)&&(a28==17))&&!(a3==1))))&&(a26==19))&&(a1==1))))){ + a7 = 1; + a28 = 15; + a4 = 16; + a26 = 17; + a3 = 1; + a14 = 18; + return -1; + } else if((((a14==20)&&((a1==1)&&(((a25==1)&&((a4==18)&&((input==6)&&(((a7==1)&&(a26==19))||((a26==17)&&!(a7==1))))))&&(a28==16))))&&!(a3==1))){ + a26 = 17; + a4 = 16; + a7 = 1; + a28 = 15; + a3 = 1; + return -1; + } else if((!(a7==1)&&((((!(a3==1)&&((a28==15)&&(((a4==16)&&(input==1))&&(a26==19))))&&(a1==1))&&(a14==19))&&(a25==1)))){ + a14 = 18; + a26 = 18; + a28 = 17; + return 21; + } else if(((!(a3==1)&&((a1==1)&&((a7==1)&&((a25==1)&&((((input==3)&&((a26==19)||((a26==17)||(a26==18))))&&(a14==20))&&(a28==15))))))&&(a4==17))){ + a26 = 17; + a28 = 16; + a7 = 0; + a14 = 19; + return -1; + } else if((!(a3==1)&&((((a14==19)&&((((a25==1)&&(((a26==17)||(a26==18))&&(input==5)))&&(a28==16))&&(a4==17)))&&(a1==1))&&!(a7==1)))){ + a28 = 15; + a4 = 16; + a26 = 17; + a7 = 1; + a3 = 1; + a14 = 18; + return -1; + } else if((((a25==1)&&((!(a3==1)&&((a7==1)&&((a4==17)&&((a1==1)&&(((a26==17)||(a26==18))&&(input==5))))))&&(a14==18)))&&(a28==17))){ + a26 = 17; + a28 = 15; + a4 = 16; + a3 = 1; + return -1; + } else if(((a1==1)&&((((a25==1)&&(((!(a3==1)&&(((a26==18)||(a26==19))&&(input==3)))&&(a14==18))&&(a28==16)))&&!(a7==1))&&(a4==17)))){ + a7 = 1; + a28 = 15; + a4 = 16; + a3 = 1; + a26 = 17; + return -1; + } else if((((a14==20)&&(((!(a7==1)&&((a1==1)&&((a4==17)&&(((a26==18)||(a26==19))&&(input==4)))))&&(a25==1))&&(a3==1)))&&(a28==16))){ + a26 = 19; + a4 = 18; + a28 = 15; + return 26; + } else if((((((a28==16)&&(((a4==18)&&((input==3)&&((((a26==18)&&(a7==1))||((a7==1)&&(a26==19)))||((a26==17)&&!(a7==1)))))&&(a3==1)))&&(a25==1))&&(a14==18))&&(a1==1))){ + a4 = 16; + a3 = 0; + a26 = 19; + a14 = 19; + a7 = 1; + a28 = 15; + return 26; + } else if(((a25==1)&&((a4==18)&&((a26==19)&&(((a3==1)&&((a28==16)&&(((input==1)&&(a1==1))&&(a14==18))))&&!(a7==1)))))){ + a26 = 17; + a28 = 15; + a4 = 16; + a7 = 1; + return -1; + } else if((((((a3==1)&&((a1==1)&&((!(a7==1)&&((input==4)&&((a26==17)||(a26==18))))&&(a28==15))))&&(a14==19))&&(a25==1))&&(a4==18))){ + a4 = 16; + a14 = 18; + a7 = 1; + a26 = 17; + return -1; + } else if(((((((((input==6)&&(((a7==1)&&(a26==19))||((a26==17)&&!(a7==1))))&&(a25==1))&&!(a3==1))&&(a14==19))&&(a4==18))&&(a1==1))&&(a28==16))){ + a14 = 18; + a3 = 1; + a4 = 16; + a7 = 1; + a26 = 17; + return -1; + } else if((((a28==15)&&((a25==1)&&((a4==17)&&(((input==1)&&(((!(a7==1)&&(a26==19))&&(a14==19))||(((a7==1)&&(a26==17))&&(a14==20))))&&(a1==1)))))&&(a3==1))){ + a7 = 1; + a26 = 17; + a14 = 18; + a4 = 16; + return -1; + } else if((!(a3==1)&&(((!(a7==1)&&((((a1==1)&&((input==5)&&((a26==18)||(a26==19))))&&(a14==19))&&(a28==15)))&&(a4==18))&&(a25==1)))){ + a3 = 1; + a7 = 1; + a26 = 17; + a4 = 16; + a14 = 18; + return -1; + } else if(((a28==17)&&(((!(a3==1)&&((a4==18)&&((((((a7==1)&&(a26==19))||((a26==17)&&!(a7==1)))||(!(a7==1)&&(a26==18)))&&(input==4))&&(a25==1))))&&(a1==1))&&(a14==18)))){ + a4 = 16; + a26 = 18; + a7 = 1; + return 24; + } else if(((a1==1)&&(((a26==17)&&((a28==16)&&((a3==1)&&((a4==18)&&((a7==1)&&((a14==19)&&(input==3)))))))&&(a25==1)))){ + a3 = 0; + a4 = 16; + a14 = 20; + a28 = 15; + return 24; + } else if((((((a25==1)&&((((a1==1)&&((input==6)&&((a26==18)||(a26==19))))&&(a14==18))&&(a4==17)))&&(a7==1))&&(a28==15))&&!(a3==1))){ + a26 = 18; + return 23; + } else if((((a4==18)&&(!(a7==1)&&((a26==18)&&((a25==1)&&(((a14==18)&&((a28==15)&&(input==2)))&&(a1==1))))))&&!(a3==1))){ + a7 = 1; + a26 = 17; + a3 = 1; + a4 = 16; + return -1; + } else if((((a1==1)&&((a25==1)&&(((a28==15)&&(((((a26==19)&&(a7==1))||(!(a7==1)&&(a26==17)))&&(input==2))&&(a4==18)))&&!(a3==1))))&&(a14==19))){ + a7 = 1; + a4 = 16; + a14 = 18; + a26 = 17; + a3 = 1; + return -1; + } else if((((((a25==1)&&((!(a3==1)&&((a4==18)&&((input==4)&&((a26==18)||(a26==19)))))&&(a14==20)))&&(a1==1))&&!(a7==1))&&(a28==16))){ + a26 = 19; + return 23; + } else if(((((((a28==16)&&(((input==5)&&((!(a7==1)&&(a26==17))||(((a7==1)&&(a26==18))||((a26==19)&&(a7==1)))))&&(a3==1)))&&(a25==1))&&(a4==18))&&(a14==19))&&(a1==1))){ + a7 = 1; + a4 = 16; + a28 = 15; + a14 = 18; + a26 = 17; + return -1; + } else if((!(a7==1)&&(((((a1==1)&&(!(a3==1)&&((a25==1)&&((input==6)&&(a4==17)))))&&(a14==19))&&(a28==15))&&(a26==19)))){ + a4 = 16; + a26 = 17; + a14 = 18; + a7 = 1; + a3 = 1; + return -1; + } else if(((a1==1)&&((!(a3==1)&&((((((a14==20)&&((a7==1)&&(a26==18)))||(((a14==19)&&((a26==19)&&!(a7==1)))||(((a7==1)&&(a26==17))&&(a14==20))))&&(input==6))&&(a28==16))&&(a25==1)))&&(a4==16)))){ + a3 = 1; + a14 = 18; + a26 = 17; + a28 = 15; + a7 = 1; + return -1; + } else if(((a4==18)&&((a3==1)&&(((a14==18)&&(((a1==1)&&((((a26==17)&&!(a7==1))||(((a26==18)&&(a7==1))||((a26==19)&&(a7==1))))&&(input==6)))&&(a28==17)))&&(a25==1))))){ + a4 = 16; + a28 = 16; + a3 = 0; + a26 = 18; + a7 = 1; + return 23; + } else if(((a1==1)&&((a14==18)&&(((((a4==17)&&((input==6)&&(((a26==19)&&(a7==1))||((a26==17)&&!(a7==1)))))&&(a28==17))&&(a3==1))&&(a25==1))))){ + a26 = 17; + a7 = 1; + a4 = 16; + a28 = 15; + return -1; + } else if(((a1==1)&&((a7==1)&&(!(a3==1)&&((a28==15)&&((a25==1)&&(((((a26==17)||(a26==18))&&(input==4))&&(a4==16))&&(a14==20)))))))){ + a3 = 1; + a26 = 17; + a14 = 18; + return -1; + } else if((((a28==16)&&((a4==17)&&((a25==1)&&((a3==1)&&(((input==1)&&((((a26==18)&&(a7==1))||((a7==1)&&(a26==19)))||(!(a7==1)&&(a26==17))))&&(a14==20))))))&&(a1==1))){ + a28 = 15; + a14 = 18; + a26 = 17; + a4 = 16; + a7 = 1; + return -1; + } else if((((((a4==17)&&((a1==1)&&(((((a26==19)&&(a7==1))||((a26==17)&&!(a7==1)))&&(input==4))&&(a14==18))))&&(a3==1))&&(a28==17))&&(a25==1))){ + a4 = 16; + a28 = 15; + a7 = 1; + a26 = 17; + return -1; + } else if(((a28==17)&&(((a25==1)&&((a3==1)&&((a1==1)&&((input==3)&&((((a26==19)&&!(a7==1))&&(a14==19))||(((a26==17)&&(a7==1))&&(a14==20)))))))&&(a4==18)))){ + a4 = 16; + a26 = 17; + a28 = 15; + a7 = 1; + a14 = 18; + return -1; + } else if((((((((a28==15)&&(((input==1)&&(((a26==17)||(a26==18))||(a26==19)))&&(a4==18)))&&(a1==1))&&(a25==1))&&(a7==1))&&!(a3==1))&&(a14==20))){ + a14 = 18; + a26 = 17; + a4 = 16; + a3 = 1; + return -1; + } else if(((a3==1)&&((a1==1)&&((a25==1)&&((((a26==17)&&((a14==20)&&((a4==18)&&(input==5))))&&!(a7==1))&&(a28==15)))))){ + a4 = 16; + a14 = 18; + a7 = 1; + return -1; + } else if((((a3==1)&&((a28==16)&&((a26==18)&&((a1==1)&&(!(a7==1)&&((a25==1)&&((a14==18)&&(input==3))))))))&&(a4==18))){ + a3 = 0; + a28 = 15; + a4 = 16; + a14 = 19; + return 24; + } else if(((a25==1)&&(((a4==16)&&(((input==6)&&(((((a26==17)&&(a28==17))&&(a7==1))&&(a14==18))||(((!(a7==1)&&((a26==18)&&(a28==16)))&&(a14==20))||((((a26==19)&&(a28==16))&&!(a7==1))&&(a14==20)))))&&(a1==1)))&&!(a3==1)))){ + a3 = 1; + a28 = 15; + a26 = 17; + a14 = 18; + a7 = 1; + return -1; + } else if(((a25==1)&&(!(a3==1)&&((a1==1)&&((a4==16)&&((input==2)&&((((((a26==18)&&(a28==16))&&!(a7==1))&&(a14==20))||((!(a7==1)&&((a26==19)&&(a28==16)))&&(a14==20)))||((((a26==17)&&(a28==17))&&(a7==1))&&(a14==18))))))))){ + a7 = 0; + a4 = 17; + a14 = 19; + a26 = 18; + a28 = 15; + return 26; + } else if(((a4==16)&&(((a25==1)&&((((a1==1)&&(((a26==18)&&(input==5))&&(a28==16)))&&(a7==1))&&(a14==18)))&&!(a3==1)))){ + a28 = 17; + a7 = 0; + a14 = 19; + return 24; + } else if(((a14==20)&&((((a4==18)&&(((a26==18)&&(((input==6)&&(a28==17))&&(a1==1)))&&!(a7==1)))&&(a25==1))&&(a3==1)))){ + a26 = 17; + a7 = 1; + a14 = 18; + a28 = 15; + a4 = 16; + return -1; + } else if(((((a3==1)&&((((a1==1)&&((a28==16)&&((a25==1)&&(input==4))))&&(a4==18))&&(a14==19)))&&(a26==17))&&(a7==1))){ + a14 = 18; + a28 = 15; + a4 = 16; + return -1; + } else if(((((a4==17)&&((((((input==5)&&(a28==16))&&(a25==1))&&(a26==19))&&!(a7==1))&&(a1==1)))&&!(a3==1))&&(a14==19))){ + a4 = 16; + a26 = 17; + a14 = 18; + a7 = 1; + a28 = 15; + a3 = 1; + return -1; + } else if(((a1==1)&&((a25==1)&&((!(a3==1)&&((a4==16)&&(((((a14==19)&&(!(a7==1)&&(a26==19)))||((a14==20)&&((a7==1)&&(a26==17))))||(((a26==18)&&(a7==1))&&(a14==20)))&&(input==3))))&&(a28==16))))){ + a14 = 18; + a26 = 19; + a7 = 0; + a4 = 17; + a28 = 15; + return 26; + } else if((((((((a26==18)&&(((input==5)&&(a25==1))&&(a3==1)))&&(a7==1))&&(a28==17))&&(a4==17))&&(a1==1))&&(a14==20))){ + a28 = 15; + a4 = 16; + a14 = 18; + a26 = 17; + return -1; + } else if(((a25==1)&&((((a4==18)&&((a28==16)&&((input==4)&&(((!(a7==1)&&(a26==19))&&(a14==18))||(((a26==17)&&(a7==1))&&(a14==19))))))&&(a1==1))&&!(a3==1)))){ + a4 = 16; + a7 = 1; + a28 = 15; + a26 = 17; + a3 = 1; + a14 = 18; + return -1; + } else if(((((((a14==18)&&((a4==18)&&(((((a26==19)&&(a7==1))||(!(a7==1)&&(a26==17)))||(!(a7==1)&&(a26==18)))&&(input==5))))&&(a1==1))&&(a25==1))&&!(a3==1))&&(a28==16))){ + a3 = 1; + a4 = 16; + a26 = 17; + a7 = 1; + a28 = 15; + return -1; + } else if((((a25==1)&&((((((((a26==18)||(a26==19))&&(input==2))&&(a14==18))&&(a1==1))&&(a4==18))&&(a7==1))&&(a3==1)))&&(a28==15))){ + a7 = 0; + a26 = 19; + a28 = 17; + return 26; + } else if(((((a25==1)&&((a1==1)&&((a4==18)&&((((!(a7==1)&&(a26==19))&&(a14==18))||((a14==19)&&((a7==1)&&(a26==17))))&&(input==5)))))&&(a28==17))&&(a3==1))){ + a26 = 17; + a7 = 1; + a14 = 19; + return -1; + } else if((((((((a14==19)&&(((((a7==1)&&(a26==19))||(!(a7==1)&&(a26==17)))||((a26==18)&&!(a7==1)))&&(input==2)))&&(a4==17))&&(a25==1))&&(a28==15))&&(a3==1))&&(a1==1))){ + a26 = 17; + a4 = 16; + a14 = 18; + a7 = 1; + return -1; + } else if((((((((a14==18)&&((((a7==1)&&(a26==19))||(!(a7==1)&&(a26==17)))&&(input==5)))&&(a4==16))&&!(a3==1))&&(a25==1))&&(a1==1))&&(a28==16))){ + a7 = 1; + a28 = 15; + a3 = 1; + a26 = 17; + return -1; + } else if((!(a7==1)&&(((a4==17)&&((((a28==15)&&((a1==1)&&((a26==17)&&(input==2))))&&(a3==1))&&(a14==20)))&&(a25==1)))){ + a26 = 18; + a28 = 17; + a7 = 1; + return 24; + } else if(((((a1==1)&&(!(a3==1)&&((a14==19)&&((a4==16)&&((a26==19)&&((input==6)&&!(a7==1)))))))&&(a25==1))&&(a28==15))){ + a7 = 1; + a3 = 1; + a26 = 17; + a14 = 18; + return -1; + } else if(((a14==19)&&(((a4==17)&&(((a25==1)&&((a1==1)&&(((input==5)&&(((a26==17)||(a26==18))||(a26==19)))&&(a7==1))))&&(a28==16)))&&!(a3==1)))){ + a4 = 16; + a3 = 1; + a26 = 17; + a14 = 18; + a28 = 15; + return -1; + } else if((((((a25==1)&&(((a4==18)&&(((((a26==17)||(a26==18))||(a26==19))&&(input==6))&&(a28==15)))&&(a1==1)))&&(a7==1))&&!(a3==1))&&(a14==20))){ + a26 = 17; + a4 = 16; + a3 = 1; + a14 = 18; + return -1; + } else if(((a4==16)&&((!(a3==1)&&((((((input==3)&&((a26==17)||(a26==18)))&&(a25==1))&&(a14==20))&&(a1==1))&&(a7==1)))&&(a28==15)))){ + a26 = 17; + a14 = 18; + a3 = 1; + return -1; + } else if(((!(a3==1)&&((((((((a26==17)||(a26==18))&&(input==1))&&(a1==1))&&(a14==18))&&(a4==18))&&(a25==1))&&(a28==15)))&&(a7==1))){ + a14 = 19; + a26 = 17; + return 24; + } else if(((a14==20)&&(((((a26==17)&&((a1==1)&&((a7==1)&&((input==2)&&!(a3==1)))))&&(a28==16))&&(a25==1))&&(a4==17)))){ + a3 = 1; + a14 = 18; + a4 = 16; + a28 = 15; + return -1; + } else if((((a4==17)&&(((a3==1)&&(((input==2)&&(((((a26==18)&&!(a7==1))&&(a14==18))||((a14==18)&&((a26==19)&&!(a7==1))))||((a14==19)&&((a26==17)&&(a7==1)))))&&(a28==16)))&&(a25==1)))&&(a1==1))){ + a26 = 17; + a4 = 16; + a28 = 15; + a7 = 1; + a14 = 18; + return -1; + } else if(((a28==17)&&((a25==1)&&((a3==1)&&((a14==19)&&((a1==1)&&((a4==18)&&(((((a26==18)&&(a7==1))||((a26==19)&&(a7==1)))||((a26==17)&&!(a7==1)))&&(input==3))))))))){ + a28 = 15; + a14 = 18; + a26 = 17; + a7 = 0; + return -1; + } else if(((a1==1)&&((a4==16)&&(((((!(a7==1)&&((input==5)&&((a26==17)||(a26==18))))&&(a14==20))&&(a28==15))&&!(a3==1))&&(a25==1))))){ + a14 = 18; + a3 = 1; + a7 = 1; + a26 = 17; + return -1; + } else if((((a4==18)&&(((a28==15)&&((a1==1)&&((a7==1)&&((a3==1)&&((a25==1)&&(input==5))))))&&(a26==18)))&&(a14==19))){ + a26 = 19; + a7 = 0; + a28 = 17; + return 24; + } else if(((((a25==1)&&(((a28==15)&&(((a26==18)&&((input==4)&&!(a3==1)))&&(a1==1)))&&(a4==18)))&&(a14==19))&&(a7==1))){ + a14 = 18; + a3 = 1; + a4 = 16; + a26 = 17; + return -1; + } else if(((a3==1)&&((a1==1)&&(((a4==18)&&((a28==17)&&((((a14==19)&&(!(a7==1)&&(a26==19)))||(((a26==17)&&(a7==1))&&(a14==20)))&&(input==5))))&&(a25==1))))){ + a7 = 1; + a26 = 17; + a14 = 19; + return 26; + } else if(((((a4==16)&&((a26==19)&&(((a14==20)&&(!(a3==1)&&((a7==1)&&(input==5))))&&(a25==1))))&&(a1==1))&&(a28==15))){ + a14 = 18; + a3 = 1; + a26 = 17; + return -1; + } else if(((a25==1)&&((a1==1)&&(((a4==17)&&((a3==1)&&((input==2)&&((((a26==19)&&!(a7==1))&&(a14==19))||(((a7==1)&&(a26==17))&&(a14==20))))))&&(a28==15))))){ + a14 = 18; + a4 = 16; + a26 = 17; + a7 = 1; + return -1; + } else if((((a4==18)&&((a28==16)&&((a25==1)&&(((input==5)&&(((a14==18)&&(!(a7==1)&&(a26==19)))||((a14==19)&&((a7==1)&&(a26==17)))))&&!(a3==1)))))&&(a1==1))){ + a7 = 1; + a14 = 19; + a26 = 19; + return 22; + } else if(((a25==1)&&((a28==15)&&(((a14==18)&&((a4==17)&&((((input==5)&&((a26==17)||(a26==18)))&&(a1==1))&&!(a3==1))))&&!(a7==1))))){ + a26 = 17; + a14 = 19; + a28 = 16; + return -1; + } else if(((((a4==18)&&(((a28==17)&&(((((!(a7==1)&&(a26==19))&&(a14==18))||(((a26==17)&&(a7==1))&&(a14==19)))||((a14==19)&&((a26==18)&&(a7==1))))&&(input==1)))&&(a1==1)))&&!(a3==1))&&(a25==1))){ + a26 = 17; + a14 = 18; + a7 = 0; + return 26; + } else if(((a25==1)&&((a1==1)&&((((((((a14==18)&&((a26==19)&&!(a7==1)))||((a14==19)&&((a26==17)&&(a7==1))))||(((a7==1)&&(a26==18))&&(a14==19)))&&(input==6))&&(a4==17))&&(a28==17))&&!(a3==1))))){ + a14 = 20; + a7 = 1; + a26 = 19; + return 22; + } else if(((((a28==17)&&((a1==1)&&((a4==17)&&((input==1)&&(((a14==19)&&((a26==18)&&(a7==1)))||(((a14==18)&&(!(a7==1)&&(a26==19)))||((a14==19)&&((a7==1)&&(a26==17)))))))))&&(a25==1))&&!(a3==1))){ + a26 = 17; + a3 = 1; + a4 = 16; + a14 = 18; + a7 = 1; + a28 = 15; + return -1; + } else if(((a28==15)&&((a25==1)&&((a3==1)&&(!(a7==1)&&(((((a1==1)&&(input==4))&&(a14==20))&&(a26==17))&&(a4==17))))))){ + a28 = 17; + a7 = 1; + a26 = 19; + a14 = 19; + return 22; + } else if((((a25==1)&&((((a28==15)&&((a1==1)&&(!(a3==1)&&((input==1)&&((a26==17)||(a26==18))))))&&(a4==17))&&!(a7==1)))&&(a14==18))){ + a28 = 17; + a7 = 1; + a4 = 16; + a26 = 18; + return -1; + } else if(((a25==1)&&((a1==1)&&((input==6)&&((((((a28==17)&&((a26==19)&&((a4==18)&&(a3==1))))&&!(a7==1))&&(a14==20))||((((a28==15)&&((!(a3==1)&&(a4==16))&&(a26==17)))&&(a7==1))&&(a14==18)))||((a14==18)&&((a7==1)&&((a28==15)&&((a26==18)&&(!(a3==1)&&(a4==16))))))))))){ + a28 = 15; + a26 = 17; + a7 = 1; + a14 = 18; + a3 = 1; + a4 = 16; + return -1; + } else if(((a1==1)&&((((((a14==19)&&((a28==15)&&((a7==1)&&(input==6))))&&(a4==16))&&(a26==19))&&!(a3==1))&&(a25==1)))){ + a3 = 1; + a26 = 17; + a14 = 18; + return -1; + } else if((((a25==1)&&((((((a4==17)&&((((a26==17)||(a26==18))||(a26==19))&&(input==6)))&&(a28==17))&&(a14==20))&&(a1==1))&&(a7==1)))&&!(a3==1))){ + a14 = 18; + a4 = 16; + a3 = 1; + a26 = 17; + a28 = 15; + return -1; + } else if(((!(a3==1)&&((((a25==1)&&(((((a26==18)||(a26==19))&&(input==4))&&(a14==18))&&(a7==1)))&&(a4==17))&&(a28==15)))&&(a1==1))){ + a26 = 19; + return 23; + } else if(((a25==1)&&(((((!(a3==1)&&(!(a7==1)&&((input==6)&&((a26==18)||(a26==19)))))&&(a28==15))&&(a4==18))&&(a1==1))&&(a14==19)))){ + a14 = 18; + a7 = 1; + a26 = 17; + a3 = 1; + a4 = 16; + return -1; + } else if(((a28==15)&&(!(a3==1)&&((a4==18)&&(((a1==1)&&((((!(a7==1)&&(a26==19))&&(a14==18))||(((a7==1)&&(a26==17))&&(a14==19)))&&(input==3)))&&(a25==1)))))){ + a4 = 16; + a3 = 1; + a14 = 18; + a26 = 17; + a7 = 1; + return -1; + } else if(((a4==16)&&((a1==1)&&((a14==20)&&((!(a3==1)&&((a28==16)&&((input==3)&&(((a7==1)&&(a26==19))||((a26==17)&&!(a7==1))))))&&(a25==1)))))){ + a28 = 15; + a3 = 1; + a14 = 18; + a26 = 17; + a7 = 1; + return -1; + } return calculate_output2(input); + } + + int calculate_output2(int input) { + if((((a28==16)&&((((a25==1)&&(((a1==1)&&((a4==18)&&(input==4)))&&(a14==18)))&&(a26==18))&&!(a7==1)))&&(a3==1))){ + a28 = 15; + a7 = 1; + a4 = 16; + a26 = 17; + return -1; + } else if(((a25==1)&&((a4==17)&&((a28==15)&&((((((((a7==1)&&(a26==19))||((a26==17)&&!(a7==1)))||(!(a7==1)&&(a26==18)))&&(input==1))&&(a3==1))&&(a14==19))&&(a1==1)))))){ + a14 = 20; + a26 = 17; + a7 = 0; + return 22; + } else if(((a4==16)&&((!(a3==1)&&(((a14==19)&&((((input==3)&&(a28==15))&&(a26==19))&&(a25==1)))&&(a1==1)))&&(a7==1)))){ + a26 = 17; + a3 = 1; + a14 = 18; + return -1; + } else if(((!(a3==1)&&((((((a26==18)&&((input==1)&&(a4==16)))&&(a1==1))&&(a28==17))&&(a14==18))&&(a7==1)))&&(a25==1))){ + return -1; + } else if((((!(a7==1)&&((a14==18)&&(((!(a3==1)&&((input==3)&&(a1==1)))&&(a25==1))&&(a28==17))))&&(a4==16))&&(a26==18))){ + a7 = 1; + return 24; + } else if(((a28==16)&&(((((a14==20)&&((((input==4)&&((a26==18)||(a26==19)))&&!(a7==1))&&!(a3==1)))&&(a1==1))&&(a4==17))&&(a25==1)))){ + a26 = 18; + a28 = 15; + a7 = 1; + return -1; + } else if(((!(a3==1)&&((a25==1)&&((a28==17)&&((a14==18)&&((a4==17)&&(((input==3)&&((a26==17)||(a26==18)))&&(a7==1)))))))&&(a1==1))){ + a26 = 17; + a4 = 16; + a28 = 15; + a3 = 1; + return -1; + } else if((((a3==1)&&(((((((a14==19)&&(!(a7==1)&&(a26==19)))||(((a7==1)&&(a26==17))&&(a14==20)))&&(input==2))&&(a1==1))&&(a25==1))&&(a4==18)))&&(a28==17))){ + a14 = 18; + a26 = 17; + a28 = 15; + a4 = 16; + a7 = 1; + return -1; + } else if(((a14==20)&&((((!(a3==1)&&((a4==17)&&(((input==1)&&((a26==19)||((a26==17)||(a26==18))))&&(a28==17))))&&!(a7==1))&&(a25==1))&&(a1==1)))){ + a26 = 18; + a14 = 18; + a28 = 15; + a4 = 18; + return 22; + } else if((((a3==1)&&((((((input==5)&&((((a7==1)&&(a26==18))||((a7==1)&&(a26==19)))||((a26==17)&&!(a7==1))))&&(a25==1))&&(a28==16))&&(a14==20))&&(a1==1)))&&(a4==17))){ + a14 = 18; + a28 = 15; + a26 = 17; + a4 = 16; + a7 = 1; + return -1; + } else if((((((((a25==1)&&((((a26==17)||(a26==18))&&(input==6))&&(a1==1)))&&(a4==17))&&!(a3==1))&&(a14==18))&&!(a7==1))&&(a28==15))){ + a26 = 18; + a4 = 16; + a7 = 1; + a28 = 17; + return -1; + } else if(((a4==17)&&(((((a25==1)&&(((((a26==18)&&!(a7==1))||(((a26==19)&&(a7==1))||(!(a7==1)&&(a26==17))))&&(input==3))&&(a1==1)))&&(a3==1))&&(a28==15))&&(a14==19)))){ + a4 = 16; + a7 = 1; + a26 = 17; + a14 = 18; + return -1; + } else if((((a25==1)&&((a26==19)&&((a14==20)&&((a3==1)&&(((a1==1)&&((input==2)&&(a4==18)))&&(a7==1))))))&&(a28==15))){ + a14 = 18; + a4 = 16; + a26 = 17; + return -1; + } else if(((a26==19)&&((a28==15)&&((a25==1)&&(((a1==1)&&((!(a3==1)&&((a4==16)&&(input==3)))&&(a14==20)))&&(a7==1)))))){ + a3 = 1; + a26 = 17; + a14 = 18; + return -1; + } else if((((((a1==1)&&((a26==17)&&((a25==1)&&(((input==2)&&(a7==1))&&(a14==19)))))&&(a28==16))&&(a3==1))&&(a4==18))){ + a4 = 16; + a14 = 18; + a28 = 15; + return -1; + } else if((!(a7==1)&&((a25==1)&&(((a1==1)&&(((((a14==20)&&(input==4))&&!(a3==1))&&(a4==18))&&(a26==17)))&&(a28==15))))){ + a14 = 18; + a4 = 16; + a3 = 1; + a7 = 1; + return -1; + } else if(((a28==15)&&((a1==1)&&((a4==18)&&(!(a3==1)&&((((((a7==1)&&(a26==19))||(!(a7==1)&&(a26==17)))&&(input==5))&&(a25==1))&&(a14==18))))))){ + a7 = 1; + a4 = 16; + a26 = 17; + a3 = 1; + return -1; + } else if((((a14==19)&&((a4==18)&&((a28==16)&&((a25==1)&&(!(a7==1)&&((a1==1)&&((input==2)&&((a26==18)||(a26==19)))))))))&&(a3==1))){ + a28 = 17; + a26 = 17; + return 26; + } else if((((((a28==16)&&((((((a26==17)||(a26==18))&&(input==3))&&(a1==1))&&(a4==17))&&!(a7==1)))&&(a14==19))&&!(a3==1))&&(a25==1))){ + a26 = 18; + return -1; + } else if((((((a25==1)&&((a4==17)&&((((((a26==18)&&!(a7==1))&&(a14==19))||((!(a7==1)&&(a26==19))&&(a14==19)))||((a14==20)&&((a7==1)&&(a26==17))))&&(input==2))))&&(a3==1))&&(a28==17))&&(a1==1))){ + a14 = 18; + a28 = 15; + a4 = 16; + a26 = 17; + a7 = 1; + return -1; + } else if((((a25==1)&&(((((a4==18)&&(((input==1)&&(a26==19))&&(a28==15)))&&(a7==1))&&(a14==20))&&(a1==1)))&&(a3==1))){ + a4 = 16; + a26 = 17; + a14 = 18; + return -1; + } else if(((a28==15)&&((a26==19)&&((a4==17)&&((!(a7==1)&&(!(a3==1)&&(((a1==1)&&(input==5))&&(a14==19))))&&(a25==1)))))){ + a14 = 18; + a7 = 1; + a4 = 16; + a3 = 1; + a26 = 17; + return -1; + } else if(((a1==1)&&((a25==1)&&(((a3==1)&&(((a4==17)&&(((!(a7==1)&&(a26==17))||(((a26==18)&&(a7==1))||((a26==19)&&(a7==1))))&&(input==3)))&&(a28==16)))&&(a14==20))))){ + a28 = 15; + a7 = 1; + a14 = 18; + a4 = 16; + a26 = 17; + return -1; + } else if(((a25==1)&&(((a14==19)&&(((((a3==1)&&((a4==18)&&(input==2)))&&(a26==19))&&(a28==15))&&(a1==1)))&&(a7==1)))){ + a28 = 17; + a26 = 17; + a7 = 0; + a14 = 20; + return 22; + } else if((((a25==1)&&((a4==17)&&((a1==1)&&(((((a7==1)&&((a28==16)&&(a26==17)))&&(a14==18))||(((a14==20)&&(!(a7==1)&&((a28==15)&&(a26==18))))||((a14==20)&&(!(a7==1)&&((a26==19)&&(a28==15))))))&&(input==6)))))&&!(a3==1))){ + a7 = 0; + a28 = 15; + a26 = 17; + a14 = 20; + return 23; + } else if(((a25==1)&&((((!(a3==1)&&((a4==18)&&((a28==15)&&((a26==17)&&(input==1)))))&&(a1==1))&&(a14==20))&&!(a7==1)))){ + a28 = 16; + a7 = 1; + a14 = 18; + return 22; + } else if((((a28==17)&&(((a4==18)&&((a26==18)&&((a3==1)&&((a1==1)&&((a14==19)&&(input==6))))))&&!(a7==1)))&&(a25==1))){ + a7 = 1; + a28 = 15; + a14 = 18; + a26 = 17; + a4 = 16; + return -1; + } else if(((((a3==1)&&((((a26==18)&&(((a25==1)&&(input==5))&&(a28==16)))&&!(a7==1))&&(a1==1)))&&(a4==18))&&(a14==18))){ + a7 = 1; + a28 = 15; + a26 = 17; + a4 = 16; + return -1; + } else if(((a3==1)&&((a4==18)&&(((!(a7==1)&&((a14==19)&&((a1==1)&&((input==3)&&((a26==17)||(a26==18))))))&&(a25==1))&&(a28==15))))){ + a4 = 16; + a26 = 17; + a14 = 18; + a7 = 1; + return -1; + } else if((((a28==15)&&((a25==1)&&((a7==1)&&((((a3==1)&&((input==1)&&(a1==1)))&&(a26==19))&&(a4==18)))))&&(a14==19))){ + a4 = 16; + a14 = 18; + a26 = 17; + return -1; + } else if(((!(a3==1)&&((((((a4==16)&&((a25==1)&&(input==5)))&&(a26==19))&&(a7==1))&&(a1==1))&&(a14==18)))&&(a28==15))){ + a26 = 17; + a3 = 1; + return -1; + } else if((((((a28==16)&&(((a14==20)&&(((!(a7==1)&&(a26==17))||(((a26==18)&&(a7==1))||((a26==19)&&(a7==1))))&&(input==2)))&&!(a3==1)))&&(a4==17))&&(a25==1))&&(a1==1))){ + a7 = 0; + a26 = 17; + a28 = 15; + return -1; + } else if(((a3==1)&&((((((a1==1)&&((input==2)&&((((a26==18)&&(a7==1))||((a7==1)&&(a26==19)))||((a26==17)&&!(a7==1)))))&&(a25==1))&&(a28==16))&&(a4==17))&&(a14==18)))){ + a4 = 16; + a7 = 1; + a28 = 15; + a26 = 17; + return -1; + } else if(((a28==17)&&((!(a7==1)&&((a25==1)&&((a1==1)&&((a26==18)&&(((a14==18)&&(input==6))&&(a4==16))))))&&!(a3==1)))){ + a3 = 1; + a28 = 15; + a7 = 1; + a26 = 17; + return -1; + } else if(((a1==1)&&((a25==1)&&((((((a26==18)&&((input==5)&&(a28==17)))&&(a14==19))&&!(a7==1))&&!(a3==1))&&(a4==16))))){ + a4 = 17; + a14 = 18; + a28 = 16; + a7 = 1; + return 23; + } else if(((a1==1)&&((a25==1)&&(((a3==1)&&((a28==15)&&((((a14==19)&&((a26==19)&&!(a7==1)))||((a14==20)&&((a26==17)&&(a7==1))))&&(input==5))))&&(a4==17))))){ + a7 = 0; + a26 = 17; + a14 = 19; + a28 = 16; + return 24; + } else if(((a28==17)&&(((a25==1)&&(((((((a14==18)&&(!(a7==1)&&(a26==19)))||((a14==19)&&((a7==1)&&(a26==17))))||((a14==19)&&((a7==1)&&(a26==18))))&&(input==2))&&(a4==18))&&(a1==1)))&&!(a3==1)))){ + a7 = 1; + a26 = 19; + a14 = 18; + return -1; + } else if(((a1==1)&&(((a7==1)&&((a28==15)&&((a14==20)&&((((a26==19)&&(input==2))&&(a3==1))&&(a4==17)))))&&(a25==1)))){ + a26 = 17; + a14 = 18; + a4 = 16; + return -1; + } else if(((!(a3==1)&&((a4==17)&&(!(a7==1)&&(((((input==5)&&(a14==19))&&(a26==19))&&(a25==1))&&(a1==1)))))&&(a28==17))){ + a28 = 15; + a4 = 16; + a7 = 1; + a26 = 17; + a14 = 18; + a3 = 1; + return -1; + } else if(((((a1==1)&&((((((input==2)&&(a28==17))&&!(a7==1))&&(a26==18))&&(a25==1))&&!(a3==1)))&&(a4==16))&&(a14==19))){ + a3 = 1; + a7 = 1; + a28 = 15; + a26 = 17; + a14 = 18; + return -1; + } else if((((a4==18)&&(((a14==18)&&((a1==1)&&(!(a7==1)&&((a25==1)&&((a26==18)&&(input==2))))))&&(a3==1)))&&(a28==16))){ + a28 = 15; + a7 = 1; + a4 = 16; + a26 = 17; + return -1; + } else if(((((a25==1)&&((((a14==20)&&((input==4)&&(((a7==1)&&(a26==19))||((a26==17)&&!(a7==1)))))&&(a28==16))&&!(a3==1)))&&(a1==1))&&(a4==16))){ + a14 = 18; + a26 = 17; + a28 = 15; + a7 = 1; + a3 = 1; + return -1; + } else if(((a4==17)&&((!(a3==1)&&((a25==1)&&((a28==16)&&((((((a26==18)&&(a7==1))||((a7==1)&&(a26==19)))||(!(a7==1)&&(a26==17)))&&(input==5))&&(a14==18)))))&&(a1==1)))){ + a26 = 17; + a28 = 15; + a4 = 16; + a3 = 1; + a7 = 1; + return -1; + } else if(((a1==1)&&((a14==20)&&((a25==1)&&((!(a3==1)&&((a4==16)&&((((a7==1)&&(a26==19))||(!(a7==1)&&(a26==17)))&&(input==4))))&&(a28==17)))))){ + a26 = 18; + a4 = 17; + a28 = 16; + a14 = 19; + a7 = 1; + return 24; + } else if(((((((input==3)&&(((((a26==17)&&(a28==17))&&(a7==1))&&(a14==18))||(((a14==20)&&(!(a7==1)&&((a26==18)&&(a28==16))))||((((a28==16)&&(a26==19))&&!(a7==1))&&(a14==20)))))&&!(a3==1))&&(a4==16))&&(a25==1))&&(a1==1))){ + a3 = 1; + a7 = 1; + a14 = 18; + a28 = 15; + a26 = 17; + return -1; + } else if((((((a25==1)&&((a1==1)&&((((((a7==1)&&(a26==18))||((a26==19)&&(a7==1)))||(!(a7==1)&&(a26==17)))&&(input==4))&&(a14==19))))&&(a28==16))&&(a4==18))&&(a3==1))){ + a28 = 15; + a7 = 1; + a4 = 16; + a26 = 17; + a14 = 18; + return -1; + } else if((((a28==15)&&((a26==18)&&((((((input==1)&&(a4==17))&&(a1==1))&&(a7==1))&&(a14==19))&&(a25==1))))&&(a3==1))){ + a14 = 20; + return 26; + } else if((!(a3==1)&&((((((((((a26==19)&&!(a7==1))&&(a14==19))||(((a7==1)&&(a26==17))&&(a14==20)))||(((a26==18)&&(a7==1))&&(a14==20)))&&(input==4))&&(a28==16))&&(a25==1))&&(a4==18))&&(a1==1)))){ + a26 = 19; + a14 = 20; + a7 = 0; + return 26; + } else if(((a25==1)&&((a14==18)&&(((((a4==18)&&(((((a26==18)&&(a7==1))||((a7==1)&&(a26==19)))||(!(a7==1)&&(a26==17)))&&(input==6)))&&(a28==16))&&(a3==1))&&(a1==1))))){ + a7 = 1; + a4 = 16; + a28 = 15; + a26 = 17; + return -1; + } else if(((a25==1)&&((a4==16)&&(!(a3==1)&&(((((a14==20)&&(!(a7==1)&&((a26==19)&&(a28==15))))||((a14==18)&&(((a28==16)&&(a26==17))&&(a7==1))))&&(input==5))&&(a1==1)))))){ + a26 = 17; + a14 = 18; + a28 = 15; + a7 = 1; + a3 = 1; + return -1; + } else if(((a28==15)&&((a4==17)&&((!(a3==1)&&((a14==18)&&((a1==1)&&(((input==3)&&((a26==18)||(a26==19)))&&(a7==1)))))&&(a25==1))))){ + a4 = 16; + a26 = 18; + a28 = 17; + return -1; + } else if(((a14==18)&&((((((a4==16)&&((!(a3==1)&&(input==1))&&(a25==1)))&&(a28==17))&&(a1==1))&&!(a7==1))&&(a26==18)))){ + a26 = 17; + a7 = 1; + a3 = 1; + a28 = 15; + return -1; + } else if((((((((a25==1)&&((a7==1)&&((input==6)&&(((a26==17)||(a26==18))||(a26==19)))))&&(a1==1))&&(a4==17))&&(a28==15))&&!(a3==1))&&(a14==20))){ + a26 = 18; + a4 = 16; + a14 = 19; + a28 = 17; + return -1; + } else if((((a3==1)&&((a28==17)&&((a4==18)&&(((a25==1)&&((input==6)&&((!(a7==1)&&(a26==17))||(((a26==18)&&(a7==1))||((a7==1)&&(a26==19))))))&&(a14==20)))))&&(a1==1))){ + a14 = 18; + a26 = 18; + a28 = 16; + a3 = 0; + a7 = 0; + a4 = 16; + return 24; + } else if(((a26==18)&&((a14==19)&&(((a4==17)&&((!(a3==1)&&((a1==1)&&((input==2)&&!(a7==1))))&&(a28==17)))&&(a25==1))))){ + a3 = 1; + a4 = 16; + a14 = 18; + a26 = 17; + a7 = 1; + a28 = 15; + return -1; + } else if((((((a4==17)&&(((((!(a7==1)&&(a26==18))||(((a7==1)&&(a26==19))||(!(a7==1)&&(a26==17))))&&(input==4))&&(a1==1))&&(a25==1)))&&(a3==1))&&(a28==15))&&(a14==19))){ + a26 = 17; + a28 = 16; + a7 = 1; + a14 = 18; + return 22; + } else if(((((((a25==1)&&((a26==18)&&((a7==1)&&((input==1)&&(a14==20)))))&&(a3==1))&&(a1==1))&&(a4==17))&&(a28==15))){ + a4 = 16; + a26 = 17; + a14 = 18; + return -1; + } else if(((a14==19)&&((a26==19)&&((a7==1)&&((((a3==1)&&(((a25==1)&&(input==6))&&(a4==18)))&&(a1==1))&&(a28==15)))))){ + a14 = 18; + a26 = 17; + a4 = 16; + return -1; + } else if((((a4==17)&&(((a1==1)&&((((((!(a7==1)&&(a26==18))&&(a14==19))||(((a26==19)&&!(a7==1))&&(a14==19)))||((a14==20)&&((a26==17)&&(a7==1))))&&(input==4))&&(a3==1)))&&(a25==1)))&&(a28==16))){ + a28 = 15; + a14 = 20; + a7 = 1; + a4 = 18; + a26 = 19; + return 26; + } else if(((a14==19)&&((a4==18)&&(!(a7==1)&&((a25==1)&&(((((a1==1)&&(input==2))&&(a28==16))&&(a26==18))&&!(a3==1))))))){ + a14 = 18; + a7 = 1; + a4 = 16; + a28 = 17; + a3 = 1; + return -1; + } else if(((!(a3==1)&&(((a4==18)&&(((input==1)&&((((a26==19)&&!(a7==1))&&(a14==18))||(((a26==17)&&(a7==1))&&(a14==19))))&&(a28==16)))&&(a25==1)))&&(a1==1))){ + a14 = 18; + a3 = 1; + a28 = 15; + a7 = 1; + a26 = 17; + a4 = 16; + return -1; + } else if(((a28==15)&&(((a25==1)&&(((((((a26==18)&&(a7==1))&&(a14==20))||((((a26==19)&&!(a7==1))&&(a14==19))||(((a7==1)&&(a26==17))&&(a14==20))))&&(input==6))&&(a4==18))&&(a1==1)))&&(a3==1)))){ + a26 = 17; + a4 = 16; + a14 = 18; + a7 = 1; + return -1; + } else if(((!(a7==1)&&((a4==18)&&((a1==1)&&(((a26==18)&&(((input==1)&&(a14==19))&&(a28==17)))&&(a3==1)))))&&(a25==1))){ + a14 = 18; + a7 = 1; + a4 = 16; + a28 = 15; + a26 = 17; + return -1; + } else if((((a4==18)&&(((((a1==1)&&((a25==1)&&((a14==18)&&(input==5))))&&(a3==1))&&!(a7==1))&&(a26==19)))&&(a28==16))){ + a7 = 1; + a4 = 16; + a26 = 17; + a28 = 15; + return -1; + } else if(((a28==16)&&(((a25==1)&&(((a4==18)&&((((a14==20)&&((a7==1)&&(a26==18)))||((((a26==19)&&!(a7==1))&&(a14==19))||(((a7==1)&&(a26==17))&&(a14==20))))&&(input==2)))&&(a1==1)))&&!(a3==1)))){ + a28 = 17; + a4 = 16; + a26 = 19; + a7 = 0; + a3 = 1; + a14 = 18; + return -1; + } else if(((a4==18)&&(!(a3==1)&&((((a25==1)&&((a28==16)&&((input==6)&&(((a26==18)&&!(a7==1))||(((a7==1)&&(a26==19))||(!(a7==1)&&(a26==17)))))))&&(a1==1))&&(a14==18))))){ + a3 = 1; + a4 = 16; + a26 = 17; + a28 = 15; + a7 = 1; + return -1; + } else if((!(a7==1)&&((a28==15)&&((((a25==1)&&(((a14==18)&&((((a26==17)||(a26==18))||(a26==19))&&(input==4)))&&(a1==1)))&&(a3==1))&&(a4==18))))){ + a7 = 1; + a26 = 17; + a4 = 16; + return -1; + } else if(((a3==1)&&((a25==1)&&((a26==18)&&((a4==18)&&(((a7==1)&&(((a28==15)&&(input==3))&&(a14==19)))&&(a1==1))))))){ + a14 = 18; + a4 = 16; + a26 = 17; + return -1; + } else if(((a1==1)&&(((((a28==16)&&((input==1)&&(((a14==20)&&((a26==17)&&(a7==1)))||(((!(a7==1)&&(a26==18))&&(a14==19))||(((a26==19)&&!(a7==1))&&(a14==19))))))&&(a4==17))&&(a25==1))&&(a3==1)))){ + a14 = 18; + a28 = 15; + a26 = 17; + a7 = 1; + a4 = 16; + return -1; + } else if(((((a28==15)&&((a1==1)&&((a4==17)&&(((((a7==1)&&(a26==19))||((a26==17)&&!(a7==1)))&&(input==1))&&(a14==19)))))&&!(a3==1))&&(a25==1))){ + a7 = 1; + a26 = 17; + a3 = 1; + a4 = 16; + a14 = 18; + return -1; + } else if((((a14==19)&&(((((a1==1)&&((input==3)&&(((a26==17)&&!(a7==1))||(((a26==18)&&(a7==1))||((a26==19)&&(a7==1))))))&&(a3==1))&&(a28==17))&&(a4==17)))&&(a25==1))){ + a7 = 1; + a28 = 15; + a14 = 18; + a4 = 16; + a26 = 17; + return -1; + } else if(((a28==17)&&(((a3==1)&&((a25==1)&&((a1==1)&&((input==6)&&(((a14==18)&&((a26==19)&&!(a7==1)))||((a14==19)&&((a26==17)&&(a7==1))))))))&&(a4==18)))){ + a26 = 19; + a14 = 18; + a7 = 0; + return -1; + } else if((((a25==1)&&((a4==18)&&((a1==1)&&((input==4)&&((((a7==1)&&((a26==17)&&(a28==17)))&&(a14==18))||(((a14==20)&&(!(a7==1)&&((a28==16)&&(a26==18))))||((a14==20)&&(!(a7==1)&&((a26==19)&&(a28==16))))))))))&&(a3==1))){ + a7 = 1; + a28 = 15; + a26 = 17; + a4 = 16; + a14 = 18; + return -1; + } else if(((a28==15)&&(((((((a4==16)&&((a14==18)&&(input==3)))&&(a25==1))&&(a7==1))&&!(a3==1))&&(a1==1))&&(a26==19)))){ + a26 = 17; + a3 = 1; + return -1; + } else if((((((((a28==15)&&(((input==6)&&(a4==17))&&(a14==20)))&&(a7==1))&&(a26==19))&&(a3==1))&&(a25==1))&&(a1==1))){ + a28 = 17; + a14 = 18; + return 23; + } else if(((a14==19)&&(((a1==1)&&(((!(a7==1)&&((a4==18)&&((input==1)&&(a28==16))))&&(a26==18))&&!(a3==1)))&&(a25==1)))){ + a7 = 1; + a26 = 19; + a4 = 17; + a3 = 1; + a28 = 15; + a14 = 18; + return -1; + } else if(((a28==17)&&((((!(a3==1)&&((input==3)&&((((a14==18)&&(!(a7==1)&&(a26==19)))||((a14==19)&&((a7==1)&&(a26==17))))||((a14==19)&&((a26==18)&&(a7==1))))))&&(a25==1))&&(a4==17))&&(a1==1)))){ + a14 = 18; + a28 = 15; + a7 = 1; + a26 = 17; + a4 = 16; + a3 = 1; + return -1; + } else if(((a28==16)&&(((a7==1)&&((a25==1)&&((a14==19)&&((a1==1)&&((((a26==17)||(a26==18))&&(input==5))&&(a4==16))))))&&!(a3==1)))){ + a28 = 15; + a14 = 18; + a26 = 17; + a3 = 1; + return -1; + } else if(((a4==16)&&(((((a7==1)&&((a25==1)&&(((input==4)&&(a1==1))&&!(a3==1))))&&(a14==19))&&(a28==15))&&(a26==19)))){ + a14 = 18; + a26 = 17; + a3 = 1; + return -1; + } else if(((a28==17)&&((a3==1)&&(((a4==17)&&((((((!(a7==1)&&(a26==18))&&(a14==18))||((a14==18)&&(!(a7==1)&&(a26==19))))||(((a7==1)&&(a26==17))&&(a14==19)))&&(input==2))&&(a25==1)))&&(a1==1))))){ + a28 = 15; + a7 = 1; + a26 = 17; + a4 = 16; + a14 = 18; + return -1; + } else if((((a3==1)&&(((((((((a26==18)&&(a28==16))&&!(a7==1))&&(a14==20))||((!(a7==1)&&((a28==16)&&(a26==19)))&&(a14==20)))||((a14==18)&&((a7==1)&&((a26==17)&&(a28==17)))))&&(input==3))&&(a25==1))&&(a1==1)))&&(a4==18))){ + a26 = 19; + a4 = 16; + a3 = 0; + a28 = 15; + a7 = 0; + a14 = 20; + return 22; + } else if(((a1==1)&&((a3==1)&&(((a28==16)&&((a25==1)&&((a14==20)&&((a4==17)&&(((a26==18)||(a26==19))&&(input==5))))))&&!(a7==1))))){ + a4 = 16; + a26 = 17; + a14 = 18; + a7 = 1; + a28 = 15; + return -1; + } else if(((a4==18)&&(((a14==18)&&((a28==15)&&(!(a7==1)&&(((a25==1)&&((((a26==17)||(a26==18))||(a26==19))&&(input==2)))&&(a1==1)))))&&(a3==1)))){ + a26 = 17; + a7 = 1; + a4 = 16; + return -1; + } else if((((a4==17)&&((a28==16)&&(((a3==1)&&(((((a26==17)&&(a7==1))&&(a14==20))||((((a26==18)&&!(a7==1))&&(a14==19))||(((a26==19)&&!(a7==1))&&(a14==19))))&&(input==3)))&&(a1==1))))&&(a25==1))){ + a26 = 17; + a28 = 15; + a4 = 16; + a7 = 1; + a14 = 18; + return -1; + } else if(((a14==19)&&((!(a3==1)&&((((a1==1)&&((a7==1)&&((input==4)&&((a26==18)||(a26==19)))))&&(a28==17))&&(a25==1)))&&(a4==16)))){ + a14 = 20; + a28 = 15; + a26 = 18; + a4 = 17; + return 23; + } else if(((((a1==1)&&(((a3==1)&&((a14==19)&&((a4==18)&&((a7==1)&&(input==4)))))&&(a28==15)))&&(a26==19))&&(a25==1))){ + a26 = 17; + a4 = 16; + a14 = 18; + return -1; + } else if((((a1==1)&&(!(a3==1)&&((((a4==17)&&((((a7==1)&&(a26==19))||(!(a7==1)&&(a26==17)))&&(input==4)))&&(a14==19))&&(a28==15))))&&(a25==1))){ + a7 = 1; + a26 = 17; + a28 = 16; + a14 = 20; + return 24; + } else if((((a28==15)&&(((((a25==1)&&((((a26==18)||(a26==19))&&(input==5))&&(a4==18)))&&(a7==1))&&(a14==18))&&(a3==1)))&&(a1==1))){ + a4 = 16; + a26 = 17; + return -1; + } else if(((a25==1)&&(((a28==15)&&(((a7==1)&&(!(a3==1)&&((((a26==18)||(a26==19))&&(input==2))&&(a4==17))))&&(a14==18)))&&(a1==1)))){ + a26 = 19; + return 23; + } else if((((a14==19)&&(((!(a3==1)&&((((input==5)&&((a26==17)||(a26==18)))&&(a7==1))&&(a28==15)))&&(a4==16))&&(a25==1)))&&(a1==1))){ + a28 = 17; + a14 = 18; + a26 = 17; + return 22; + } else if(((a25==1)&&(((a1==1)&&(!(a3==1)&&(((a4==17)&&((a28==16)&&(((a26==18)||(a26==19))&&(input==2))))&&(a14==18))))&&!(a7==1)))){ + a4 = 16; + a28 = 15; + a3 = 1; + a7 = 1; + a26 = 17; + return -1; + } else if(((a14==20)&&((((a3==1)&&(((((input==1)&&(a25==1))&&(a28==16))&&(a1==1))&&(a7==1)))&&(a26==17))&&(a4==18)))){ + a14 = 18; + a4 = 16; + a28 = 15; + return -1; + } else if(((a25==1)&&(((a14==18)&&(!(a3==1)&&((a4==17)&&((a28==16)&&(((((a7==1)&&(a26==18))||((a7==1)&&(a26==19)))||((a26==17)&&!(a7==1)))&&(input==3))))))&&(a1==1)))){ + a4 = 16; + a3 = 1; + a7 = 1; + a28 = 15; + a26 = 17; + return -1; + } else if((((a1==1)&&((((!(a7==1)&&((a25==1)&&((input==4)&&(a14==19))))&&(a4==17))&&!(a3==1))&&(a26==18)))&&(a28==15))){ + a4 = 16; + a26 = 17; + a14 = 18; + a7 = 1; + a3 = 1; + return -1; + } else if(((((((a1==1)&&(((((a26==18)||(a26==19))&&(input==5))&&(a14==20))&&!(a3==1)))&&!(a7==1))&&(a28==15))&&(a25==1))&&(a4==18))){ + a14 = 18; + a4 = 16; + a26 = 17; + a7 = 1; + a3 = 1; + return -1; + } else if((!(a7==1)&&(((a14==19)&&((a4==17)&&(((!(a3==1)&&((input==4)&&(a25==1)))&&(a28==17))&&(a26==18))))&&(a1==1)))){ + a4 = 16; + a7 = 1; + a3 = 1; + a28 = 15; + a26 = 17; + a14 = 18; + return -1; + } else if(((a28==17)&&((a25==1)&&((((((input==3)&&((!(a7==1)&&(a26==18))||(((a7==1)&&(a26==19))||((a26==17)&&!(a7==1)))))&&!(a3==1))&&(a1==1))&&(a4==17))&&(a14==18))))){ + a7 = 1; + a4 = 16; + a26 = 17; + a3 = 1; + a28 = 15; + return -1; + } else if((((!(a7==1)&&((a28==16)&&((a14==18)&&(((a1==1)&&((input==1)&&((a26==18)||(a26==19))))&&!(a3==1)))))&&(a25==1))&&(a4==16))){ + a7 = 1; + a26 = 17; + a28 = 15; + a3 = 1; + return -1; + } else if(((a25==1)&&((a1==1)&&(((((a7==1)&&((a28==15)&&(((a4==16)&&!(a3==1))&&(a26==18))))&&(a14==18))||(((a14==20)&&(!(a7==1)&&((((a3==1)&&(a4==18))&&(a26==19))&&(a28==17))))||(((a7==1)&&((((a4==16)&&!(a3==1))&&(a26==17))&&(a28==15)))&&(a14==18))))&&(input==3))))){ + a28 = 15; + a7 = 1; + a14 = 18; + a3 = 1; + a26 = 17; + a4 = 16; + return -1; + } else if(((a25==1)&&((((a28==15)&&((a26==17)&&((a4==18)&&((a14==19)&&((a3==1)&&(input==1))))))&&(a1==1))&&(a7==1)))){ + a4 = 16; + a14 = 18; + return -1; + } else if(((a1==1)&&((!(a7==1)&&(((a14==19)&&(((a3==1)&&((input==6)&&((a26==18)||(a26==19))))&&(a4==18)))&&(a28==16)))&&(a25==1)))){ + a7 = 1; + a26 = 17; + a28 = 15; + a14 = 18; + a4 = 16; + return -1; + } else if(((((a1==1)&&((input==2)&&(((a14==20)&&(!(a7==1)&&((a28==17)&&((a4==17)&&(a26==19)))))||(((a7==1)&&(((a26==17)&&(a4==18))&&(a28==15)))&&(a14==18)))))&&(a3==1))&&(a25==1))){ + a4 = 18; + a26 = 18; + a14 = 18; + a7 = 0; + a28 = 17; + return 22; + } else if(((a4==17)&&(!(a3==1)&&((((((((a26==19)&&(a7==1))||(!(a7==1)&&(a26==17)))&&(input==6))&&(a28==15))&&(a1==1))&&(a25==1))&&(a14==19))))){ + a14 = 18; + a3 = 1; + a26 = 17; + a7 = 1; + a4 = 16; + return -1; + } else if(((((a4==16)&&((a25==1)&&((((a7==1)&&((a14==18)&&(input==4)))&&(a26==18))&&(a28==17))))&&(a1==1))&&!(a3==1))){ + a3 = 1; + a28 = 15; + a26 = 17; + return -1; + } else if(((((a28==17)&&((a1==1)&&(((input==4)&&((((a26==17)&&(a7==1))&&(a14==19))||(((a14==18)&&(!(a7==1)&&(a26==18)))||((a14==18)&&((a26==19)&&!(a7==1))))))&&(a25==1))))&&(a3==1))&&(a4==17))){ + a28 = 15; + a7 = 1; + a26 = 17; + a4 = 16; + a14 = 18; + return -1; + } else if((((a25==1)&&((a1==1)&&((a4==17)&&((input==2)&&((((!(a7==1)&&((a28==15)&&(a26==18)))&&(a14==20))||((((a28==15)&&(a26==19))&&!(a7==1))&&(a14==20)))||(((a7==1)&&((a26==17)&&(a28==16)))&&(a14==18)))))))&&!(a3==1))){ + a26 = 19; + a14 = 20; + a28 = 16; + a7 = 0; + return 24; + } else if(((a1==1)&&((((a25==1)&&((((((a7==1)&&(a26==17))&&(a14==19))||(((!(a7==1)&&(a26==18))&&(a14==18))||(((a26==19)&&!(a7==1))&&(a14==18))))&&(input==6))&&(a3==1)))&&(a28==16))&&(a4==17)))){ + a26 = 17; + a28 = 15; + a4 = 16; + a14 = 18; + a7 = 1; + return -1; + } else if(((((!(a3==1)&&((a25==1)&&((a14==18)&&((input==3)&&((((a26==19)&&(a7==1))||(!(a7==1)&&(a26==17)))||((a26==18)&&!(a7==1)))))))&&(a28==17))&&(a1==1))&&(a4==18))){ + a7 = 0; + a26 = 19; + return 24; + } else if((!(a3==1)&&((((a1==1)&&(((a7==1)&&((a28==16)&&((a14==20)&&(input==6))))&&(a4==17)))&&(a26==17))&&(a25==1)))){ + a14 = 19; + a7 = 0; + a26 = 19; + a28 = 17; + return 24; + } else if(((((a25==1)&&(((((((a26==17)||(a26==18))&&(input==5))&&!(a3==1))&&(a4==18))&&(a14==18))&&(a28==17)))&&(a7==1))&&(a1==1))){ + a26 = 18; + a3 = 1; + a7 = 0; + a4 = 16; + return -1; + } else if(((a28==16)&&(((!(a3==1)&&((a4==18)&&((((input==1)&&((a26==17)||(a26==18)))&&(a25==1))&&(a7==1))))&&(a14==18))&&(a1==1)))){ + a28 = 15; + a3 = 1; + a26 = 17; + a4 = 16; + return -1; + } else if(((((((a3==1)&&((((((a26==19)&&!(a7==1))&&(a14==19))||((a14==20)&&((a26==17)&&(a7==1))))||(((a26==18)&&(a7==1))&&(a14==20)))&&(input==1)))&&(a25==1))&&(a1==1))&&(a28==15))&&(a4==18))){ + a7 = 0; + a28 = 17; + a26 = 19; + a14 = 20; + return 21; + } else if((((a28==16)&&(!(a3==1)&&((a14==19)&&((a4==17)&&(!(a7==1)&&(((a26==19)&&(input==1))&&(a1==1)))))))&&(a25==1))){ + a28 = 15; + a3 = 1; + a4 = 16; + a7 = 1; + a26 = 17; + a14 = 18; + return -1; + } else if(((a1==1)&&((a3==1)&&((a25==1)&&((a4==18)&&((((a14==18)&&((a7==1)&&((a28==16)&&(a26==17))))||(((a14==20)&&(((a28==15)&&(a26==18))&&!(a7==1)))||((!(a7==1)&&((a28==15)&&(a26==19)))&&(a14==20))))&&(input==2))))))){ + a7 = 1; + a4 = 16; + a14 = 18; + a28 = 15; + a26 = 17; + return -1; + } else if((((a3==1)&&(((a4==18)&&(((a1==1)&&((a14==18)&&((input==6)&&!(a7==1))))&&(a28==16)))&&(a26==19)))&&(a25==1))){ + a4 = 16; + a28 = 15; + a7 = 1; + a26 = 17; + return -1; + } else if(((((((a25==1)&&((a26==18)&&(((a4==18)&&(input==4))&&(a28==16))))&&(a1==1))&&!(a7==1))&&(a14==19))&&!(a3==1))){ + a4 = 16; + a14 = 18; + a3 = 1; + a7 = 1; + return -1; + } else if((((a1==1)&&((((((((a14==18)&&((a26==18)&&!(a7==1)))||((!(a7==1)&&(a26==19))&&(a14==18)))||((a14==19)&&((a26==17)&&(a7==1))))&&(input==1))&&(a4==17))&&(a28==17))&&(a25==1)))&&(a3==1))){ + a4 = 16; + a7 = 1; + a28 = 15; + a26 = 17; + a14 = 18; + return -1; + } else if(((a4==16)&&((!(a3==1)&&(((((a1==1)&&((input==5)&&(a25==1)))&&!(a7==1))&&(a28==17))&&(a14==19)))&&(a26==17)))){ + a14 = 18; + a7 = 1; + a3 = 1; + a28 = 15; + return -1; + } else if(((a4==16)&&((a25==1)&&(((a1==1)&&(((((input==3)&&((a26==17)||(a26==18)))&&!(a3==1))&&(a28==15))&&!(a7==1)))&&(a14==20))))){ + a26 = 17; + a3 = 1; + a7 = 1; + a14 = 18; + return -1; + } else if((!(a3==1)&&((a1==1)&&((a25==1)&&(((((input==6)&&((((a7==1)&&(a26==19))||((a26==17)&&!(a7==1)))||(!(a7==1)&&(a26==18))))&&(a4==17))&&(a28==17))&&(a14==18)))))){ + a7 = 1; + a26 = 17; + a28 = 15; + a3 = 1; + a4 = 16; + return -1; + } else if(((a1==1)&&((a4==16)&&(!(a7==1)&&(((((a26==17)&&((a25==1)&&(input==1)))&&!(a3==1))&&(a14==18))&&(a28==17)))))){ + a26 = 18; + a7 = 1; + return 21; + } else if(((((((a28==15)&&(((((a26==17)||(a26==18))&&(input==6))&&!(a3==1))&&!(a7==1)))&&(a1==1))&&(a14==19))&&(a25==1))&&(a4==16))){ + a7 = 1; + a14 = 18; + a3 = 1; + a26 = 17; + return -1; + } else if(((a28==16)&&((a14==19)&&(((a7==1)&&(((((input==1)&&(a26==17))&&(a1==1))&&(a4==18))&&(a3==1)))&&(a25==1))))){ + a4 = 16; + a28 = 15; + a14 = 18; + return -1; + } else if((((((a4==17)&&((a28==16)&&(((input==2)&&(((a26==17)&&!(a7==1))||(((a26==18)&&(a7==1))||((a26==19)&&(a7==1)))))&&(a25==1))))&&(a1==1))&&(a14==20))&&(a3==1))){ + a7 = 0; + a26 = 17; + a4 = 18; + a28 = 15; + return 22; + } else if(((((a4==18)&&((a25==1)&&((a1==1)&&((((a14==18)&&((a26==19)&&!(a7==1)))||((a14==19)&&((a7==1)&&(a26==17))))&&(input==1)))))&&(a3==1))&&(a28==17))){ + a14 = 20; + a28 = 16; + a7 = 1; + a26 = 17; + return -1; + } else if(((a25==1)&&((((a14==18)&&((!(a3==1)&&((input==6)&&((((a7==1)&&(a26==19))||((a26==17)&&!(a7==1)))||((a26==18)&&!(a7==1)))))&&(a1==1)))&&(a4==18))&&(a28==17)))){ + a4 = 16; + a26 = 18; + a7 = 1; + return 24; + } else if((((a4==17)&&(((a28==15)&&(((a1==1)&&((((a26==17)||(a26==18))&&(input==4))&&(a14==18)))&&(a25==1)))&&!(a7==1)))&&!(a3==1))){ + a26 = 18; + return -1; + } else if(((a25==1)&&(((a1==1)&&((((((input==3)&&((a26==17)||(a26==18)))&&!(a7==1))&&(a28==15))&&!(a3==1))&&(a4==16)))&&(a14==19)))){ + a14 = 18; + a26 = 17; + a7 = 1; + a3 = 1; + return -1; + } else if((((a4==16)&&((a1==1)&&(((((((!(a7==1)&&(a26==19))&&(a14==19))||(((a7==1)&&(a26==17))&&(a14==20)))||(((a7==1)&&(a26==18))&&(a14==20)))&&(input==4))&&(a28==17))&&!(a3==1))))&&(a25==1))){ + a26 = 17; + a14 = 18; + a3 = 1; + a7 = 1; + a28 = 15; + return -1; + } else if(((a28==15)&&((a4==17)&&((a14==20)&&((a1==1)&&(((((((a26==17)||(a26==18))||(a26==19))&&(input==1))&&!(a3==1))&&(a7==1))&&(a25==1))))))){ + a4 = 16; + a26 = 17; + a14 = 18; + a3 = 1; + return -1; + } else if(((!(a7==1)&&(((((a4==18)&&((a1==1)&&((a3==1)&&(input==6))))&&(a14==18))&&(a26==18))&&(a28==16)))&&(a25==1))){ + a26 = 17; + a4 = 16; + a7 = 1; + a28 = 15; + return -1; + } else if((!(a7==1)&&(((!(a3==1)&&((((a14==18)&&((input==6)&&(a4==18)))&&(a25==1))&&(a28==15)))&&(a1==1))&&(a26==18)))){ + a7 = 1; + a26 = 17; + a3 = 1; + a4 = 16; + return -1; + } else if(((((a14==19)&&(((((a1==1)&&((input==3)&&((a26==18)||(a26==19))))&&(a25==1))&&(a4==18))&&(a28==15)))&&!(a3==1))&&!(a7==1))){ + a4 = 16; + a3 = 1; + a26 = 17; + a14 = 18; + a7 = 1; + return -1; + } else if(((((((a7==1)&&((a4==17)&&((a25==1)&&(((a26==19)||((a26==17)||(a26==18)))&&(input==2)))))&&!(a3==1))&&(a1==1))&&(a28==17))&&(a14==20))){ + a4 = 16; + a26 = 17; + a14 = 18; + a28 = 15; + a3 = 1; + return -1; + } else if(((a4==16)&&((a28==15)&&(((a1==1)&&(((((input==2)&&((a26==17)||(a26==18)))&&!(a7==1))&&(a14==20))&&!(a3==1)))&&(a25==1))))){ + a26 = 17; + a14 = 18; + a7 = 1; + a3 = 1; + return -1; + } else if((((((a1==1)&&((((((a26==19)&&!(a7==1))&&(a14==18))||(((a7==1)&&(a26==17))&&(a14==19)))&&(input==2))&&(a28==17)))&&(a25==1))&&(a4==16))&&!(a3==1))){ + a7 = 1; + a14 = 18; + a28 = 15; + a26 = 17; + a3 = 1; + return -1; + } else if((((((a3==1)&&((input==1)&&((((a7==1)&&((a28==17)&&(a26==17)))&&(a14==18))||(((((a28==16)&&(a26==18))&&!(a7==1))&&(a14==20))||((!(a7==1)&&((a28==16)&&(a26==19)))&&(a14==20))))))&&(a25==1))&&(a1==1))&&(a4==18))){ + a28 = 15; + a4 = 16; + a14 = 18; + a7 = 1; + a26 = 17; + return -1; + } else if(((a1==1)&&((a26==17)&&(!(a7==1)&&(((((a3==1)&&((a25==1)&&(input==2)))&&(a4==18))&&(a28==15))&&(a14==20)))))){ + a14 = 18; + a7 = 1; + a4 = 16; + return -1; + } else if(((a26==18)&&(!(a3==1)&&((a14==19)&&(((a25==1)&&((a7==1)&&(((input==6)&&(a28==16))&&(a4==18))))&&(a1==1)))))){ + a3 = 1; + a26 = 17; + a4 = 16; + a28 = 15; + a14 = 18; + return -1; + } else if(((((a4==16)&&(((!(a3==1)&&((input==5)&&(((a7==1)&&(a26==19))||(!(a7==1)&&(a26==17)))))&&(a28==16))&&(a1==1)))&&(a25==1))&&(a14==20))){ + a28 = 15; + a3 = 1; + a7 = 1; + a14 = 18; + a26 = 17; + return -1; + } else if((((((a25==1)&&(((a1==1)&&((input==5)&&(((a26==17)&&!(a7==1))||(((a7==1)&&(a26==18))||((a26==19)&&(a7==1))))))&&(a4==18)))&&(a3==1))&&(a14==18))&&(a28==16))){ + a4 = 16; + a26 = 17; + a28 = 15; + a7 = 1; + return -1; + } else if((((a4==18)&&((((a25==1)&&((a26==17)&&(((input==3)&&(a28==16))&&(a14==20))))&&(a7==1))&&(a1==1)))&&(a3==1))){ + a4 = 16; + a28 = 15; + a14 = 18; + return -1; + } else if((((a25==1)&&(((a14==18)&&(!(a3==1)&&(((input==4)&&(((a7==1)&&(a26==19))||((a26==17)&&!(a7==1))))&&(a28==15))))&&(a1==1)))&&(a4==18))){ + a26 = 18; + a7 = 1; + a14 = 19; + return 22; + } else if((((((a1==1)&&((a4==18)&&((a14==19)&&((a3==1)&&((a26==17)&&(input==4))))))&&(a28==15))&&(a25==1))&&(a7==1))){ + a14 = 18; + a4 = 16; + return -1; + } else if(((a25==1)&&((((a28==17)&&(((a1==1)&&((input==5)&&((((a7==1)&&(a26==18))||((a26==19)&&(a7==1)))||((a26==17)&&!(a7==1)))))&&(a4==17)))&&(a14==19))&&(a3==1)))){ + a14 = 18; + a28 = 15; + a26 = 17; + a7 = 1; + a4 = 16; + return -1; + } else if(((a1==1)&&((a25==1)&&((a4==16)&&((a28==17)&&((!(a7==1)&&((a14==19)&&(!(a3==1)&&(input==1))))&&(a26==17))))))){ + a26 = 19; + a28 = 15; + a14 = 20; + a4 = 17; + return 24; + } else if(((a25==1)&&((((a1==1)&&((((a14==18)&&(((a28==16)&&(a26==17))&&(a7==1)))||(((((a26==18)&&(a28==15))&&!(a7==1))&&(a14==20))||((!(a7==1)&&((a26==19)&&(a28==15)))&&(a14==20))))&&(input==5)))&&(a3==1))&&(a4==18)))){ + a4 = 16; + a14 = 18; + a28 = 15; + a26 = 17; + a7 = 1; + return -1; + } else if(((a26==18)&&((a7==1)&&((((((a28==17)&&((a3==1)&&(input==3)))&&(a25==1))&&(a1==1))&&(a4==17))&&(a14==20))))){ + a4 = 18; + a28 = 16; + return 26; + } else if(((a26==17)&&((a1==1)&&(((a28==15)&&((a3==1)&&((a14==20)&&(((input==4)&&(a25==1))&&(a4==18)))))&&!(a7==1))))){ + a3 = 0; + a14 = 18; + a4 = 16; + return 26; + } else if((!(a3==1)&&((a4==18)&&(((a28==17)&&((a25==1)&&(((((a7==1)&&(a26==18))&&(a14==19))||(((a14==18)&&((a26==19)&&!(a7==1)))||(((a26==17)&&(a7==1))&&(a14==19))))&&(input==5))))&&(a1==1))))){ + a3 = 1; + a4 = 16; + a7 = 1; + a14 = 20; + a26 = 18; + a28 = 15; + return -1; + } else if(((a26==19)&&(((a25==1)&&(!(a3==1)&&((a28==15)&&((a1==1)&&(((input==1)&&(a7==1))&&(a4==16))))))&&(a14==20)))){ + a14 = 19; + a28 = 17; + a26 = 18; + return 24; + } else if(((((((((a14==20)&&(((a28==15)&&(a26==19))&&!(a7==1)))||((((a28==16)&&(a26==17))&&(a7==1))&&(a14==18)))&&(input==6))&&(a4==16))&&(a25==1))&&(a1==1))&&!(a3==1))){ + a7 = 1; + a3 = 1; + a26 = 17; + a28 = 15; + a14 = 18; + return -1; + } else if((((a7==1)&&(((a25==1)&&(((a28==15)&&((a4==16)&&(((a26==17)||(a26==18))&&(input==2))))&&(a1==1)))&&!(a3==1)))&&(a14==20))){ + a26 = 17; + a3 = 1; + a14 = 18; + return -1; + } else if((!(a3==1)&&((((a28==16)&&((a4==16)&&(((((a7==1)&&(a26==19))||(!(a7==1)&&(a26==17)))&&(input==2))&&(a1==1))))&&(a25==1))&&(a14==18)))){ + a28 = 15; + a3 = 1; + a26 = 17; + a7 = 1; + return -1; + } else if(((((a4==17)&&((a25==1)&&((a26==18)&&(((a14==20)&&((input==3)&&(a1==1)))&&(a7==1)))))&&(a3==1))&&(a28==15))){ + a4 = 16; + a26 = 17; + a14 = 18; + return -1; + } else if((!(a3==1)&&((!(a7==1)&&((a1==1)&&(((a25==1)&&(((input==2)&&((a26==17)||(a26==18)))&&(a4==17)))&&(a14==18))))&&(a28==15)))){ + a7 = 1; + a28 = 17; + a4 = 16; + a26 = 18; + return -1; + } else if(((a25==1)&&((((a28==15)&&(((a4==18)&&(!(a3==1)&&((input==1)&&((a26==18)||(a26==19)))))&&(a1==1)))&&(a14==20))&&!(a7==1)))){ + a26 = 17; + a3 = 1; + a14 = 18; + a7 = 1; + a4 = 16; + return -1; + } else if(((a4==17)&&(((a3==1)&&((a1==1)&&((a25==1)&&((input==1)&&((((a7==1)&&(a26==17))&&(a14==19))||((((a26==18)&&!(a7==1))&&(a14==18))||(((a26==19)&&!(a7==1))&&(a14==18))))))))&&(a28==16)))){ + a28 = 15; + a26 = 17; + a4 = 16; + a7 = 1; + a14 = 18; + return -1; + } else if(((!(a3==1)&&((a14==18)&&(((a1==1)&&(((((a7==1)&&(a26==19))||(!(a7==1)&&(a26==17)))&&(input==2))&&(a28==15)))&&(a25==1))))&&(a4==18))){ + a4 = 16; + a7 = 1; + a3 = 1; + a26 = 17; + return -1; + } else if(((a4==17)&&((a14==19)&&(((a1==1)&&(((a28==16)&&(!(a3==1)&&((input==2)&&((a26==17)||(a26==18)))))&&(a25==1)))&&!(a7==1))))){ + a26 = 18; + a28 = 17; + a4 = 16; + a7 = 1; + return 26; + } else if(((a14==20)&&((a1==1)&&((a25==1)&&(((((a4==17)&&((a28==15)&&(input==3)))&&(a26==19))&&(a3==1))&&(a7==1)))))){ + a7 = 0; + a28 = 17; + a26 = 18; + a14 = 18; + return 24; + } else if((((a25==1)&&(((a1==1)&&((a4==16)&&(((input==4)&&(((a7==1)&&(a26==19))||((a26==17)&&!(a7==1))))&&(a28==16))))&&!(a3==1)))&&(a14==18))){ + a7 = 1; + a3 = 1; + a28 = 15; + a26 = 17; + return -1; + } else if(((a25==1)&&((a28==17)&&((a1==1)&&((a7==1)&&((a14==18)&&((((input==1)&&!(a3==1))&&(a26==19))&&(a4==16)))))))){ + a26 = 18; + return -1; + } else if(((a3==1)&&(((a25==1)&&(((((((a4==17)&&(a26==19))&&(a28==17))&&!(a7==1))&&(a14==20))||((a14==18)&&(((a28==15)&&((a4==18)&&(a26==17)))&&(a7==1))))&&(input==1)))&&(a1==1)))){ + a7 = 1; + a26 = 17; + a14 = 18; + a28 = 15; + a4 = 16; + return -1; + } else if((((a1==1)&&(((((((!(a7==1)&&(a26==19))&&(a14==18))||((a14==19)&&((a7==1)&&(a26==17))))&&(input==6))&&(a4==16))&&(a25==1))&&(a28==17)))&&!(a3==1))){ + a14 = 18; + a3 = 1; + a7 = 1; + a28 = 15; + a26 = 17; + return -1; + } else if((((a28==16)&&(!(a3==1)&&((a4==18)&&((((input==1)&&(((a26==19)&&(a7==1))||((a26==17)&&!(a7==1))))&&(a14==19))&&(a25==1)))))&&(a1==1))){ + a7 = 0; + a28 = 15; + a14 = 18; + a4 = 17; + a26 = 18; + return 21; + } else if((((a28==15)&&((((!(a3==1)&&((a25==1)&&(((a26==18)||(a26==19))&&(input==2))))&&(a1==1))&&!(a7==1))&&(a14==20)))&&(a4==18))){ + a7 = 1; + a4 = 16; + a3 = 1; + a14 = 18; + a26 = 17; + return -1; + } else if((((a7==1)&&(((a1==1)&&(!(a3==1)&&((((input==1)&&(a26==18))&&(a25==1))&&(a28==15))))&&(a4==18)))&&(a14==19))){ + a14 = 20; + a7 = 0; + a4 = 16; + return 26; + } else if((((a14==19)&&(((!(a7==1)&&(((a1==1)&&(((a26==18)||(a26==19))&&(input==1)))&&(a3==1)))&&(a28==16))&&(a4==18)))&&(a25==1))){ + a14 = 18; + a4 = 16; + a7 = 1; + a28 = 15; + a26 = 17; + return -1; + } else if((((a4==17)&&((a28==17)&&(!(a3==1)&&((((((a7==1)&&(a26==19))||(!(a7==1)&&(a26==17)))&&(input==6))&&(a14==19))&&(a1==1)))))&&(a25==1))){ + a14 = 18; + a7 = 1; + a3 = 1; + a26 = 17; + a28 = 15; + a4 = 16; + return -1; + } else if(((a28==16)&&(((a4==17)&&((((((((a26==18)&&(a7==1))||((a26==19)&&(a7==1)))||(!(a7==1)&&(a26==17)))&&(input==6))&&(a14==20))&&(a1==1))&&!(a3==1)))&&(a25==1)))){ + a14 = 19; + a26 = 18; + a7 = 0; + return 26; + } else if((((((a25==1)&&(((((input==3)&&(a1==1))&&(a7==1))&&(a4==16))&&(a14==18)))&&(a28==17))&&(a26==19))&&!(a3==1))){ + a28 = 15; + a3 = 1; + a26 = 17; + return -1; + } else if((((a1==1)&&(((((a28==15)&&((a14==20)&&((((a26==17)||(a26==18))||(a26==19))&&(input==3))))&&!(a3==1))&&(a4==18))&&(a25==1)))&&(a7==1))){ + a26 = 18; + a7 = 0; + return 26; + } else if((((a28==16)&&(!(a7==1)&&(((a14==20)&&((a1==1)&&((a4==17)&&(((a26==18)||(a26==19))&&(input==3)))))&&!(a3==1))))&&(a25==1))){ + a26 = 17; + a28 = 15; + return -1; + } else if(((a28==17)&&((a7==1)&&(((a25==1)&&(!(a3==1)&&(((a14==20)&&((input==3)&&(((a26==17)||(a26==18))||(a26==19))))&&(a1==1))))&&(a4==17))))){ + a14 = 18; + a3 = 1; + a26 = 17; + a4 = 16; + a28 = 15; + return -1; + } else if((((a4==18)&&((a14==20)&&((a3==1)&&((a1==1)&&((a28==17)&&(((input==2)&&(a26==18))&&!(a7==1)))))))&&(a25==1))){ + a14 = 18; + a7 = 1; + a28 = 15; + a4 = 16; + a26 = 17; + return -1; + } else if(((a26==19)&&(((a7==1)&&(!(a3==1)&&((a4==16)&&(((a1==1)&&((a25==1)&&(input==1)))&&(a14==19)))))&&(a28==15)))){ + a14 = 18; + a26 = 18; + a28 = 17; + return 22; + } else if((((a25==1)&&(((((a14==20)&&(((a28==17)&&((a26==19)&&((a4==18)&&(a3==1))))&&!(a7==1)))||((a14==18)&&((a7==1)&&((a28==15)&&((a26==17)&&((a4==16)&&!(a3==1)))))))||((a14==18)&&(((a28==15)&&((a26==18)&&(!(a3==1)&&(a4==16))))&&(a7==1))))&&(input==5)))&&(a1==1))){ + a4 = 16; + a28 = 15; + a14 = 18; + a3 = 1; + a7 = 1; + a26 = 17; + return -1; + } else if(((((a7==1)&&((a4==17)&&(((a28==17)&&((a25==1)&&(((a26==17)||(a26==18))&&(input==2))))&&(a3==1))))&&(a1==1))&&(a14==18))){ + a4 = 16; + a28 = 15; + a26 = 17; + return -1; + } else if(((a28==16)&&((((a25==1)&&(((a7==1)&&(((a26==18)&&(input==4))&&!(a3==1)))&&(a14==19)))&&(a1==1))&&(a4==18)))){ + a28 = 15; + a4 = 16; + a14 = 18; + a26 = 17; + a3 = 1; + return -1; + } else if((((a4==18)&&((((((a26==17)&&((input==2)&&(a3==1)))&&(a28==15))&&(a14==19))&&(a7==1))&&(a25==1)))&&(a1==1))){ + a4 = 16; + a14 = 18; + return -1; + } else if((((a1==1)&&((a25==1)&&((input==1)&&((((a14==20)&&(!(a7==1)&&((a28==17)&&((a4==16)&&(a26==18)))))||((a14==20)&&(((a28==17)&&((a26==19)&&(a4==16)))&&!(a7==1))))||((a14==18)&&((a7==1)&&((a28==15)&&((a26==17)&&(a4==17)))))))))&&!(a3==1))){ + a7 = 1; + a14 = 18; + a4 = 16; + a26 = 18; + a28 = 17; + return -1; + } else if(((a1==1)&&((a3==1)&&(((a26==18)&&((a4==18)&&(((a25==1)&&((input==4)&&(a28==17)))&&!(a7==1))))&&(a14==18))))){ + a28 = 15; + a26 = 17; + a4 = 16; + a7 = 1; + return -1; + } else if(((a26==18)&&((a25==1)&&((((a1==1)&&(!(a3==1)&&(((input==1)&&(a14==19))&&(a28==15))))&&!(a7==1))&&(a4==17))))){ + a14 = 18; + return 21; + } else if(((a4==17)&&(((((!(a3==1)&&((a1==1)&&(((a26==17)||(a26==18))&&(input==3))))&&(a28==15))&&(a14==18))&&!(a7==1))&&(a25==1)))){ + a7 = 1; + a26 = 18; + a28 = 17; + a4 = 16; + return 26; + } else if(((a4==17)&&(((a14==20)&&(((a28==15)&&((a7==1)&&((a25==1)&&((input==2)&&((a26==19)||((a26==17)||(a26==18)))))))&&!(a3==1)))&&(a1==1)))){ + a26 = 18; + a14 = 19; + a4 = 16; + a28 = 17; + return -1; + } else if(((a26==18)&&((((a14==18)&&(((((a4==16)&&(input==4))&&(a7==1))&&!(a3==1))&&(a25==1)))&&(a1==1))&&(a28==16)))){ + a28 = 15; + a3 = 1; + a26 = 17; + return -1; + } else if(((!(a3==1)&&((a25==1)&&((a14==19)&&((a4==16)&&(((a28==17)&&((input==1)&&(a26==18)))&&(a1==1))))))&&!(a7==1))){ + a14 = 18; + a26 = 17; + a28 = 15; + a3 = 1; + a7 = 1; + return -1; + } else if((((a25==1)&&((a4==18)&&(((((((a26==17)&&!(a7==1))||(((a26==18)&&(a7==1))||((a7==1)&&(a26==19))))&&(input==2))&&(a28==16))&&(a1==1))&&(a14==19))))&&(a3==1))){ + a4 = 16; + a14 = 18; + a26 = 17; + a7 = 1; + a28 = 15; + return -1; + } else if(((((((a14==19)&&(!(a3==1)&&((((a7==1)&&(a26==19))||((a26==17)&&!(a7==1)))&&(input==3))))&&(a25==1))&&(a28==16))&&(a1==1))&&(a4==18))){ + a26 = 17; + a7 = 1; + a4 = 16; + a28 = 17; + a3 = 1; + a14 = 18; + return -1; + } else if(((a14==19)&&(((a3==1)&&((a25==1)&&(((a28==17)&&((input==2)&&((!(a7==1)&&(a26==17))||(((a26==18)&&(a7==1))||((a7==1)&&(a26==19))))))&&(a4==18))))&&(a1==1)))){ + a14 = 20; + a28 = 16; + a7 = 1; + a26 = 17; + return -1; + } else if((((a28==16)&&((!(a3==1)&&(((((a26==18)&&(input==3))&&(a4==18))&&(a14==19))&&!(a7==1)))&&(a1==1)))&&(a25==1))){ + a3 = 1; + a28 = 15; + a14 = 20; + a7 = 1; + a26 = 19; + a4 = 16; + return -1; + } else if(((!(a7==1)&&((((a25==1)&&((a1==1)&&((((a26==18)||(a26==19))&&(input==1))&&(a4==18))))&&(a28==16))&&!(a3==1)))&&(a14==20))){ + a26 = 18; + a14 = 18; + a28 = 15; + a4 = 17; + return 23; + } else if(((a25==1)&&((a4==16)&&((a26==19)&&((a1==1)&&((((a28==15)&&((input==5)&&!(a3==1)))&&(a14==19))&&!(a7==1))))))){ + a14 = 18; + a7 = 1; + a3 = 1; + a26 = 17; + return -1; + } else if((((a1==1)&&(!(a3==1)&&((((input==3)&&(((((a26==19)&&!(a7==1))&&(a14==18))||((a14==19)&&((a26==17)&&(a7==1))))||((a14==19)&&((a26==18)&&(a7==1)))))&&(a28==15))&&(a4==17))))&&(a25==1))){ + a26 = 17; + a3 = 1; + a4 = 16; + a14 = 18; + a7 = 1; + return -1; + } else if(((a4==18)&&((a14==20)&&(((((a1==1)&&(!(a7==1)&&((a28==15)&&(input==5))))&&(a26==17))&&(a25==1))&&!(a3==1))))){ + a14 = 18; + a7 = 1; + a4 = 16; + a3 = 1; + return -1; + } else if((((a25==1)&&(!(a3==1)&&((input==5)&&(((a14==18)&&((a7==1)&&((a28==15)&&((a4==17)&&(a26==17)))))||(((!(a7==1)&&(((a4==16)&&(a26==18))&&(a28==17)))&&(a14==20))||((!(a7==1)&&((a28==17)&&((a4==16)&&(a26==19))))&&(a14==20)))))))&&(a1==1))){ + a7 = 1; + a4 = 16; + a26 = 17; + a3 = 1; + a28 = 15; + a14 = 18; + return -1; + } else if(((a7==1)&&((a4==18)&&((((a25==1)&&((a28==16)&&((a14==20)&&((input==4)&&(a3==1)))))&&(a26==17))&&(a1==1))))){ + return -1; + } else if(((((a25==1)&&((a4==16)&&(((((a14==20)&&(((a26==18)&&(a28==16))&&!(a7==1)))||((((a26==19)&&(a28==16))&&!(a7==1))&&(a14==20)))||((a14==18)&&((a7==1)&&((a28==17)&&(a26==17)))))&&(input==4))))&&(a1==1))&&!(a3==1))){ + a7 = 1; + a28 = 15; + a14 = 18; + a26 = 17; + a3 = 1; + return -1; + } else if((((a4==17)&&((((input==3)&&((((a14==20)&&(((a26==18)&&(a28==15))&&!(a7==1)))||((!(a7==1)&&((a26==19)&&(a28==15)))&&(a14==20)))||((a14==18)&&((a7==1)&&((a26==17)&&(a28==16))))))&&(a3==1))&&(a25==1)))&&(a1==1))){ + a14 = 18; + a28 = 15; + a26 = 17; + a4 = 16; + a7 = 1; + return -1; + } else if(((((((a14==18)&&((a7==1)&&((a26==18)&&((input==5)&&(a1==1)))))&&!(a3==1))&&(a28==17))&&(a25==1))&&(a4==16))){ + a26 = 17; + a3 = 1; + a28 = 15; + return -1; + } else if(((a4==18)&&(((a25==1)&&((((a3==1)&&(!(a7==1)&&(((a26==17)||(a26==18))&&(input==6))))&&(a1==1))&&(a28==15)))&&(a14==19)))){ + a7 = 1; + a26 = 17; + a14 = 18; + a4 = 16; + return -1; + } else if((((a25==1)&&(!(a3==1)&&(((a1==1)&&((a28==17)&&((((a7==1)&&(a26==19))||((a26==17)&&!(a7==1)))&&(input==1))))&&(a4==17))))&&(a14==19))){ + a28 = 15; + a4 = 16; + a3 = 1; + a7 = 1; + a14 = 18; + a26 = 17; + return -1; + } else if(((((((a28==15)&&((((input==2)&&!(a3==1))&&(a4==18))&&(a1==1)))&&!(a7==1))&&(a14==20))&&(a26==17))&&(a25==1))){ + a7 = 1; + a4 = 16; + a14 = 18; + a3 = 1; + return -1; + } else if((((((a1==1)&&((a4==17)&&(!(a7==1)&&(((input==3)&&(a14==19))&&(a25==1)))))&&(a26==19))&&!(a3==1))&&(a28==17))){ + a7 = 1; + a26 = 17; + a28 = 15; + a14 = 18; + a4 = 16; + a3 = 1; + return -1; + } else if(((a25==1)&&(((a3==1)&&((a7==1)&&(((a14==18)&&((((a26==18)||(a26==19))&&(input==3))&&(a28==15)))&&(a4==18))))&&(a1==1)))){ + a26 = 17; + a4 = 16; + return -1; + } else if(((a1==1)&&((a4==18)&&((a28==16)&&((a14==20)&&(((a25==1)&&(((((a26==18)&&(a7==1))||((a26==19)&&(a7==1)))||((a26==17)&&!(a7==1)))&&(input==5)))&&(a3==1))))))){ + a4 = 16; + a26 = 17; + a28 = 15; + a14 = 18; + a7 = 1; + return -1; + } else if(((((a1==1)&&((a3==1)&&((((input==4)&&((!(a7==1)&&(a26==17))||(((a7==1)&&(a26==18))||((a26==19)&&(a7==1)))))&&(a4==18))&&(a25==1))))&&(a28==16))&&(a14==20))){ + a4 = 16; + a28 = 15; + a14 = 18; + a26 = 17; + a7 = 1; + return -1; + } else if(((a25==1)&&((a1==1)&&((((a3==1)&&((a14==18)&&((((a26==17)&&!(a7==1))||(((a26==18)&&(a7==1))||((a26==19)&&(a7==1))))&&(input==1))))&&(a28==17))&&(a4==18))))){ + a4 = 16; + a7 = 1; + a26 = 17; + a28 = 15; + return -1; + } else if((((a4==17)&&(((a14==19)&&((a3==1)&&((a1==1)&&((input==5)&&((!(a7==1)&&(a26==18))||(((a7==1)&&(a26==19))||(!(a7==1)&&(a26==17))))))))&&(a25==1)))&&(a28==15))){ + a7 = 0; + a28 = 16; + a14 = 18; + a26 = 17; + return 23; + } else if((((((((!(a7==1)&&(((a26==19)||((a26==17)||(a26==18)))&&(input==3)))&&(a25==1))&&(a14==20))&&(a4==17))&&(a28==17))&&!(a3==1))&&(a1==1))){ + a3 = 1; + a14 = 18; + a26 = 17; + a4 = 16; + a7 = 1; + a28 = 15; + return -1; + } else if(((a26==17)&&((a3==1)&&((((a14==20)&&((a1==1)&&(((input==6)&&!(a7==1))&&(a28==15))))&&(a25==1))&&(a4==17))))){ + a14 = 18; + a4 = 16; + a7 = 1; + return -1; + } else if(((a4==17)&&(((((a1==1)&&((a14==20)&&(((input==3)&&((a26==18)||(a26==19)))&&(a25==1))))&&!(a7==1))&&(a28==16))&&(a3==1)))){ + a7 = 1; + a14 = 18; + a26 = 17; + a4 = 16; + a28 = 15; + return -1; + } else if(((a14==19)&&((!(a3==1)&&(((((input==6)&&((((a26==19)&&(a7==1))||(!(a7==1)&&(a26==17)))||((a26==18)&&!(a7==1))))&&(a25==1))&&(a28==16))&&(a4==16)))&&(a1==1)))){ + a3 = 1; + a28 = 15; + a7 = 1; + a14 = 18; + a26 = 17; + return -1; + } else if(((!(a3==1)&&((a1==1)&&((a4==16)&&((((((a7==1)&&(a26==18))&&(a14==20))||(((!(a7==1)&&(a26==19))&&(a14==19))||(((a26==17)&&(a7==1))&&(a14==20))))&&(input==1))&&(a28==17)))))&&(a25==1))){ + a14 = 18; + a26 = 17; + a7 = 1; + a28 = 15; + a3 = 1; + return -1; + } else if(((((a25==1)&&((((a14==20)&&((a7==1)&&((input==5)&&(((a26==17)||(a26==18))||(a26==19)))))&&(a1==1))&&(a28==15)))&&!(a3==1))&&(a4==17))){ + a3 = 1; + a14 = 18; + a26 = 17; + a4 = 16; + return -1; + } else if((((a4==17)&&((a1==1)&&(((input==2)&&((((!(a7==1)&&((a28==15)&&(a26==18)))&&(a14==20))||((a14==20)&&(!(a7==1)&&((a26==19)&&(a28==15)))))||((((a26==17)&&(a28==16))&&(a7==1))&&(a14==18))))&&(a25==1))))&&(a3==1))){ + a4 = 18; + a14 = 18; + a28 = 15; + a26 = 19; + a7 = 1; + return 24; + } else if((((((((!(a7==1)&&((a28==17)&&(((a4==18)&&(a3==1))&&(a26==19))))&&(a14==20))||((a14==18)&&((a7==1)&&((a28==15)&&((a26==17)&&(!(a3==1)&&(a4==16)))))))||((((a28==15)&&(((a4==16)&&!(a3==1))&&(a26==18)))&&(a7==1))&&(a14==18)))&&(input==4))&&(a1==1))&&(a25==1))){ + a14 = 18; + a4 = 16; + a26 = 17; + a3 = 1; + a7 = 1; + a28 = 15; + return -1; + } else if((((((a3==1)&&((((((a26==17)||(a26==18))&&(input==4))&&(a28==17))&&(a25==1))&&(a1==1)))&&(a4==17))&&(a14==18))&&(a7==1))){ + a4 = 18; + a28 = 16; + a7 = 0; + a26 = 18; + return 22; + } else if((((a28==15)&&((a25==1)&&((((input==5)&&(((a14==18)&&((a26==19)&&!(a7==1)))||((a14==19)&&((a26==17)&&(a7==1)))))&&!(a3==1))&&(a1==1))))&&(a4==18))){ + a3 = 1; + a14 = 18; + a7 = 1; + a26 = 17; + a4 = 16; + return -1; + } return calculate_output3(input); + } + + int calculate_output3(int input) { + if((!(a3==1)&&((((a14==18)&&((a7==1)&&(((a4==17)&&(((a26==17)||(a26==18))&&(input==1)))&&(a28==17))))&&(a1==1))&&(a25==1)))){ + a28 = 15; + a26 = 17; + a3 = 1; + a4 = 16; + return -1; + } else if(((a7==1)&&((a1==1)&&(((a14==20)&&((((a28==17)&&(((a26==19)||((a26==17)||(a26==18)))&&(input==1)))&&!(a3==1))&&(a25==1)))&&(a4==17))))){ + a7 = 0; + a26 = 17; + a28 = 15; + a4 = 18; + a14 = 18; + return 21; + } else if((((((((a14==20)&&((a4==18)&&((a25==1)&&(input==3))))&&(a3==1))&&(a7==1))&&(a1==1))&&(a28==15))&&(a26==19))){ + a4 = 16; + a26 = 17; + a14 = 18; + return -1; + } else if(((((a25==1)&&((a14==20)&&(((a1==1)&&((input==2)&&((!(a7==1)&&(a26==17))||(((a7==1)&&(a26==18))||((a26==19)&&(a7==1))))))&&(a3==1))))&&(a4==18))&&(a28==17))){ + a4 = 16; + a7 = 1; + a14 = 18; + a26 = 17; + a28 = 15; + return -1; + } else if(((((((((a28==15)&&((input==6)&&((a26==17)||(a26==18))))&&!(a3==1))&&(a4==18))&&(a25==1))&&(a1==1))&&(a7==1))&&(a14==18))){ + a4 = 16; + a26 = 17; + a3 = 1; + return -1; + } else if((((a25==1)&&(!(a3==1)&&((a4==16)&&(((input==1)&&(((a14==18)&&(!(a7==1)&&(a26==19)))||(((a26==17)&&(a7==1))&&(a14==19))))&&(a1==1)))))&&(a28==17))){ + a4 = 17; + a14 = 19; + a7 = 0; + a28 = 15; + a26 = 19; + return 21; + } else if((!(a7==1)&&(((a14==18)&&((a3==1)&&((((a25==1)&&((input==2)&&(a1==1)))&&(a4==18))&&(a26==18))))&&(a28==17)))){ + a26 = 17; + a4 = 16; + a28 = 15; + a7 = 1; + return -1; + } else if(((((a4==17)&&((a14==20)&&((a1==1)&&((((((a7==1)&&(a26==18))||((a7==1)&&(a26==19)))||(!(a7==1)&&(a26==17)))&&(input==1))&&(a28==16)))))&&!(a3==1))&&(a25==1))){ + a26 = 19; + a7 = 1; + return -1; + } else if(((((a7==1)&&((((((input==1)&&!(a3==1))&&(a4==16))&&(a28==16))&&(a14==18))&&(a1==1)))&&(a26==18))&&(a25==1))){ + a26 = 17; + a3 = 1; + a28 = 15; + return -1; + } else if((!(a7==1)&&(((a1==1)&&(((a3==1)&&(((a25==1)&&(((a26==18)||(a26==19))&&(input==3)))&&(a14==19)))&&(a28==16)))&&(a4==18)))){ + a26 = 17; + a4 = 16; + a7 = 1; + a14 = 18; + a28 = 15; + return -1; + } else if((((a3==1)&&((((input==6)&&(((a14==18)&&(((a28==16)&&(a26==17))&&(a7==1)))||(((a14==20)&&(!(a7==1)&&((a26==18)&&(a28==15))))||((!(a7==1)&&((a26==19)&&(a28==15)))&&(a14==20)))))&&(a4==18))&&(a25==1)))&&(a1==1))){ + a26 = 17; + a14 = 18; + a4 = 16; + a7 = 1; + a28 = 15; + return -1; + } else if(((a4==18)&&(((a28==15)&&((a25==1)&&(((((a14==19)&&(input==5))&&(a7==1))&&(a3==1))&&(a26==19))))&&(a1==1)))){ + a4 = 16; + a14 = 18; + a26 = 17; + return -1; + } else if(((a1==1)&&((a4==17)&&((((((((a26==17)&&(a7==1))&&(a14==19))||(((a14==18)&&((a26==18)&&!(a7==1)))||((a14==18)&&(!(a7==1)&&(a26==19)))))&&(input==5))&&(a25==1))&&(a3==1))&&(a28==16))))){ + a4 = 16; + a14 = 18; + a7 = 1; + a26 = 17; + a28 = 15; + return -1; + } else if(((!(a7==1)&&(!(a3==1)&&(((a14==18)&&(((a4==16)&&((a25==1)&&(input==4)))&&(a28==17)))&&(a26==17))))&&(a1==1))){ + a28 = 15; + a7 = 1; + a3 = 1; + return -1; + } else if(((((a14==20)&&(((((a4==17)&&((input==3)&&(a26==17)))&&(a3==1))&&(a25==1))&&(a1==1)))&&!(a7==1))&&(a28==15))){ + a7 = 1; + a14 = 18; + a4 = 16; + return -1; + } else if((((((a1==1)&&(!(a3==1)&&((input==3)&&(((a14==19)&&((a7==1)&&(a26==18)))||(((!(a7==1)&&(a26==19))&&(a14==18))||(((a7==1)&&(a26==17))&&(a14==19)))))))&&(a28==17))&&(a25==1))&&(a4==18))){ + a4 = 17; + a28 = 15; + a7 = 0; + a26 = 18; + a14 = 18; + return 24; + } else if(((a4==17)&&(((((input==6)&&((((((a28==15)&&(a26==18))&&!(a7==1))&&(a14==20))||((((a26==19)&&(a28==15))&&!(a7==1))&&(a14==20)))||(((a7==1)&&((a28==16)&&(a26==17)))&&(a14==18))))&&(a25==1))&&(a3==1))&&(a1==1)))){ + a4 = 16; + a28 = 15; + a14 = 18; + a26 = 17; + a7 = 1; + return -1; + } else if(((a14==19)&&(((a1==1)&&(((!(a3==1)&&((((a7==1)&&(a26==19))||((a26==17)&&!(a7==1)))&&(input==5)))&&(a25==1))&&(a28==16)))&&(a4==18)))){ + a4 = 16; + a3 = 1; + a7 = 0; + a26 = 18; + a28 = 15; + return -1; + } else if(((((a3==1)&&((((((((a26==18)&&(a7==1))||((a7==1)&&(a26==19)))||(!(a7==1)&&(a26==17)))&&(input==5))&&(a25==1))&&(a4==17))&&(a1==1)))&&(a28==16))&&(a14==18))){ + a26 = 18; + a28 = 15; + a4 = 18; + a7 = 1; + a14 = 19; + return 22; + } else if(((((a14==18)&&(((((a3==1)&&((input==5)&&((a26==19)||((a26==17)||(a26==18)))))&&(a4==18))&&(a28==15))&&(a25==1)))&&!(a7==1))&&(a1==1))){ + a7 = 1; + a4 = 16; + a26 = 17; + return -1; + } else if(((a14==20)&&((((a4==17)&&(((a28==17)&&(((a1==1)&&(input==2))&&(a26==18)))&&(a3==1)))&&(a25==1))&&(a7==1)))){ + a4 = 16; + a14 = 18; + a28 = 15; + a26 = 17; + return -1; + } else if(((((((a28==15)&&((((a14==20)&&((a7==1)&&(a26==18)))||(((a14==19)&&(!(a7==1)&&(a26==19)))||(((a26==17)&&(a7==1))&&(a14==20))))&&(input==4)))&&(a1==1))&&(a4==18))&&(a25==1))&&(a3==1))){ + a26 = 17; + a7 = 1; + a14 = 18; + a4 = 16; + return -1; + } else if(((((a28==16)&&((a3==1)&&((a1==1)&&((a4==18)&&(((((a26==18)&&(a7==1))||((a26==19)&&(a7==1)))||(!(a7==1)&&(a26==17)))&&(input==4))))))&&(a14==18))&&(a25==1))){ + a4 = 16; + a7 = 1; + a26 = 17; + a28 = 15; + return -1; + } else if(((a1==1)&&((a28==16)&&(((a25==1)&&(!(a3==1)&&((a14==18)&&(((input==2)&&((a26==17)||(a26==18)))&&(a7==1)))))&&(a4==18))))){ + a4 = 16; + a26 = 17; + a28 = 15; + a3 = 1; + return -1; + } else if(((a4==18)&&((a1==1)&&(((a25==1)&&((input==2)&&((((a7==1)&&((a28==17)&&(a26==17)))&&(a14==18))||(((a14==20)&&(((a28==16)&&(a26==18))&&!(a7==1)))||((((a28==16)&&(a26==19))&&!(a7==1))&&(a14==20))))))&&(a3==1))))){ + a4 = 16; + a14 = 18; + a7 = 1; + a28 = 15; + a26 = 17; + return -1; + } else if(((a28==17)&&((((a25==1)&&((a14==19)&&((((input==2)&&!(a3==1))&&!(a7==1))&&(a26==17))))&&(a1==1))&&(a4==16)))){ + a14 = 18; + a7 = 1; + a3 = 1; + a28 = 15; + return -1; + } else if(((a3==1)&&(((((a1==1)&&((((a25==1)&&(input==2))&&(a4==18))&&(a14==20)))&&(a7==1))&&(a28==16))&&(a26==17)))){ + return -1; + } else if((((a4==18)&&(((a28==15)&&(!(a3==1)&&((input==6)&&(((a14==18)&&(!(a7==1)&&(a26==19)))||(((a26==17)&&(a7==1))&&(a14==19))))))&&(a25==1)))&&(a1==1))){ + a14 = 18; + a3 = 1; + a26 = 17; + a4 = 16; + a7 = 1; + return -1; + } else if(((a1==1)&&((a25==1)&&(((a4==18)&&((((input==5)&&(((a7==1)&&(a26==19))||(!(a7==1)&&(a26==17))))&&!(a3==1))&&(a14==19)))&&(a28==15))))){ + a3 = 1; + a4 = 16; + a26 = 17; + a7 = 1; + a14 = 18; + return -1; + } else if((((a4==18)&&(((!(a3==1)&&(((a1==1)&&((input==3)&&((a26==17)||(a26==18))))&&(a25==1)))&&(a7==1))&&(a28==17)))&&(a14==18))){ + a28 = 15; + a4 = 17; + a3 = 1; + a26 = 19; + a7 = 0; + return -1; + } else if((!(a3==1)&&((((a28==15)&&((a1==1)&&((((a26==19)&&(input==1))&&(a7==1))&&(a25==1))))&&(a14==18))&&(a4==16)))){ + a26 = 17; + a3 = 1; + return -1; + } else if(((a25==1)&&((((((a28==16)&&(((input==5)&&(a26==18))&&(a14==19)))&&(a1==1))&&(a7==1))&&(a4==18))&&!(a3==1)))){ + a14 = 18; + a26 = 17; + a28 = 15; + a3 = 1; + a4 = 16; + return -1; + } else if((!(a3==1)&&((a25==1)&&((a1==1)&&((input==4)&&((((((a28==17)&&((a26==18)&&(a4==16)))&&!(a7==1))&&(a14==20))||((a14==20)&&((((a26==19)&&(a4==16))&&(a28==17))&&!(a7==1))))||((((a28==15)&&((a26==17)&&(a4==17)))&&(a7==1))&&(a14==18)))))))){ + a28 = 15; + a14 = 18; + a26 = 17; + a7 = 1; + a4 = 16; + a3 = 1; + return -1; + } else if(((a14==19)&&(((a1==1)&&((((a25==1)&&((input==2)&&((!(a7==1)&&(a26==17))||(((a26==18)&&(a7==1))||((a26==19)&&(a7==1))))))&&(a4==17))&&(a3==1)))&&(a28==17)))){ + a28 = 15; + a26 = 17; + a4 = 16; + a14 = 18; + a7 = 1; + return -1; + } else if(((a4==17)&&((a1==1)&&(((((((a14==20)&&(((a28==15)&&(a26==18))&&!(a7==1)))||((a14==20)&&(((a26==19)&&(a28==15))&&!(a7==1))))||(((a7==1)&&((a28==16)&&(a26==17)))&&(a14==18)))&&(input==1))&&(a25==1))&&(a3==1))))){ + a4 = 16; + a7 = 1; + a26 = 17; + a28 = 15; + a14 = 18; + return -1; + } else if((((a1==1)&&(!(a3==1)&&(((a14==20)&&(((input==6)&&(((a26==19)&&(a7==1))||(!(a7==1)&&(a26==17))))&&(a25==1)))&&(a28==16))))&&(a4==16))){ + a28 = 15; + a7 = 1; + a26 = 17; + a14 = 18; + a3 = 1; + return -1; + } else if(((((((a25==1)&&(((a28==15)&&((input==6)&&(a14==20)))&&(a4==18)))&&!(a7==1))&&(a1==1))&&!(a3==1))&&(a26==17))){ + a7 = 1; + a14 = 18; + a4 = 16; + a3 = 1; + return -1; + } else if((((((((a4==16)&&(!(a3==1)&&((input==4)&&((a26==17)||(a26==18)))))&&(a25==1))&&(a14==19))&&(a1==1))&&(a28==15))&&(a7==1))){ + a14 = 18; + a26 = 17; + a3 = 1; + return -1; + } else if(((a25==1)&&((!(a7==1)&&((((a4==17)&&((a14==18)&&(((a26==18)||(a26==19))&&(input==4))))&&(a28==16))&&(a1==1)))&&!(a3==1)))){ + a26 = 19; + a28 = 17; + a7 = 1; + return 26; + } else if((((((a1==1)&&((input==1)&&(((a14==18)&&(((a26==17)&&(a28==16))&&(a7==1)))||(((((a26==18)&&(a28==15))&&!(a7==1))&&(a14==20))||((((a26==19)&&(a28==15))&&!(a7==1))&&(a14==20))))))&&(a25==1))&&!(a3==1))&&(a4==17))){ + a26 = 17; + a28 = 16; + a14 = 19; + a7 = 0; + return 22; + } else if(((a4==17)&&((a3==1)&&((a14==18)&&((a25==1)&&((((a28==17)&&((input==3)&&((a26==17)||(a26==18))))&&(a7==1))&&(a1==1))))))){ + a4 = 16; + a26 = 17; + a28 = 15; + return -1; + } else if((((a14==18)&&(!(a3==1)&&((a1==1)&&(((a4==17)&&((input==6)&&((!(a7==1)&&(a26==17))||(((a26==18)&&(a7==1))||((a26==19)&&(a7==1))))))&&(a28==16)))))&&(a25==1))){ + a28 = 17; + a7 = 1; + a26 = 18; + return 24; + } else if((((a25==1)&&((((((((a26==17)||(a26==18))&&(input==6))&&(a3==1))&&(a1==1))&&(a4==17))&&(a28==17))&&(a7==1)))&&(a14==18))){ + a28 = 15; + a26 = 17; + a4 = 16; + return -1; + } else if(((a1==1)&&((a4==16)&&(!(a3==1)&&(((((((a26==19)&&(a28==15))&&!(a7==1))&&(a14==20))||((a14==18)&&(((a26==17)&&(a28==16))&&(a7==1))))&&(input==3))&&(a25==1)))))){ + a14 = 18; + a26 = 17; + a28 = 15; + a7 = 1; + a3 = 1; + return -1; + } else if(((((a26==19)&&((((((a14==19)&&(input==2))&&(a7==1))&&(a1==1))&&(a28==15))&&(a25==1)))&&(a4==16))&&!(a3==1))){ + a28 = 17; + a14 = 18; + return 24; + } else if(((((a1==1)&&((a14==19)&&((a28==15)&&(((((a26==19)&&(a7==1))||(!(a7==1)&&(a26==17)))&&(input==3))&&(a4==17)))))&&(a25==1))&&!(a3==1))){ + a7 = 1; + a3 = 1; + a14 = 18; + a4 = 16; + a26 = 17; + return -1; + } else if(((((a25==1)&&((((((((a26==19)&&!(a7==1))&&(a14==18))||(((a7==1)&&(a26==17))&&(a14==19)))||((a14==19)&&((a26==18)&&(a7==1))))&&(input==5))&&!(a3==1))&&(a1==1)))&&(a28==15))&&(a4==17))){ + a7 = 1; + a3 = 1; + a26 = 17; + a14 = 18; + a4 = 16; + return -1; + } else if(((a4==18)&&((a14==20)&&(((((a1==1)&&((((a26==19)&&(a7==1))||((a26==17)&&!(a7==1)))&&(input==1)))&&(a25==1))&&(a28==16))&&!(a3==1))))){ + a26 = 19; + a3 = 1; + a7 = 0; + a28 = 15; + a4 = 16; + a14 = 18; + return -1; + } else if(((a28==17)&&((a25==1)&&((a1==1)&&((a7==1)&&((!(a3==1)&&((a26==18)&&((input==3)&&(a14==18))))&&(a4==16))))))){ + a3 = 1; + a28 = 16; + a26 = 19; + a4 = 18; + return -1; + } else if((((a4==17)&&((a25==1)&&(((a28==16)&&((((((a26==18)&&(a7==1))||((a7==1)&&(a26==19)))||(!(a7==1)&&(a26==17)))&&(input==5))&&(a3==1)))&&(a1==1))))&&(a14==19))){ + a4 = 16; + a14 = 18; + a7 = 1; + a26 = 17; + a28 = 15; + return -1; + } else if((((a28==17)&&((a4==18)&&(!(a3==1)&&((a7==1)&&((((input==1)&&((a26==17)||(a26==18)))&&(a1==1))&&(a25==1))))))&&(a14==18))){ + a26 = 17; + a7 = 0; + return 21; + } else if((((a14==19)&&(((a25==1)&&(((((((a26==17)||(a26==18))||(a26==19))&&(input==1))&&(a4==17))&&!(a3==1))&&(a28==16)))&&(a7==1)))&&(a1==1))){ + a26 = 17; + a4 = 16; + a3 = 1; + a14 = 18; + a28 = 15; + return -1; + } else if((((a25==1)&&((((a3==1)&&((a1==1)&&((input==4)&&((!(a7==1)&&(a26==17))||(((a7==1)&&(a26==18))||((a7==1)&&(a26==19)))))))&&(a28==17))&&(a4==18)))&&(a14==20))){ + a26 = 17; + a28 = 15; + a7 = 1; + a4 = 16; + a14 = 18; + return -1; + } else if(((a3==1)&&((a4==17)&&(((a1==1)&&((a26==17)&&(((a25==1)&&((a28==15)&&(input==1)))&&!(a7==1))))&&(a14==20))))){ + a28 = 17; + a14 = 19; + a26 = 19; + return 24; + } else if(((a4==17)&&(((a1==1)&&((a14==20)&&((!(a7==1)&&(((a28==15)&&(input==6))&&!(a3==1)))&&(a26==17))))&&(a25==1)))){ + a26 = 18; + a7 = 1; + a28 = 17; + a4 = 16; + a14 = 19; + return -1; + } else if(((a25==1)&&(((a28==15)&&((((a14==18)&&(!(a7==1)&&((input==4)&&((a26==19)||((a26==17)||(a26==18))))))&&!(a3==1))&&(a1==1)))&&(a4==16)))){ + a14 = 20; + a28 = 16; + a26 = 17; + return 24; + } else if(((((a14==20)&&((((a1==1)&&((a26==17)&&((input==4)&&!(a7==1))))&&(a4==17))&&!(a3==1)))&&(a25==1))&&(a28==15))){ + a4 = 16; + a7 = 1; + a14 = 18; + a3 = 1; + return -1; + } else if((((((a3==1)&&((input==5)&&(((a14==18)&&(((a28==17)&&(a26==17))&&(a7==1)))||(((((a28==16)&&(a26==18))&&!(a7==1))&&(a14==20))||((((a26==19)&&(a28==16))&&!(a7==1))&&(a14==20))))))&&(a25==1))&&(a4==18))&&(a1==1))){ + a26 = 17; + a7 = 1; + a4 = 16; + a14 = 18; + a28 = 15; + return -1; + } else if((((a14==19)&&(((a28==15)&&((a25==1)&&((a3==1)&&(((!(a7==1)&&(a26==18))||(((a26==19)&&(a7==1))||(!(a7==1)&&(a26==17))))&&(input==6)))))&&(a1==1)))&&(a4==17))){ + a4 = 16; + a14 = 18; + a26 = 17; + a7 = 1; + return -1; + } else if((((a14==18)&&((a25==1)&&((((a4==18)&&((a3==1)&&(((a26==18)||(a26==19))&&(input==1))))&&(a7==1))&&(a1==1))))&&(a28==15))){ + a26 = 17; + a4 = 16; + return -1; + } else if(((((((a1==1)&&((((input==6)&&(a25==1))&&(a26==17))&&!(a3==1)))&&!(a7==1))&&(a4==16))&&(a28==17))&&(a14==19))){ + a14 = 18; + a7 = 1; + a3 = 1; + a28 = 15; + return -1; + } else if(((((a14==18)&&((a4==18)&&((((((a26==18)&&!(a7==1))||(((a26==19)&&(a7==1))||(!(a7==1)&&(a26==17))))&&(input==2))&&!(a3==1))&&(a25==1))))&&(a28==17))&&(a1==1))){ + a28 = 15; + a26 = 17; + a7 = 0; + a4 = 17; + return 23; + } else if(((((((!(a3==1)&&((((a26==17)||(a26==18))&&(input==3))&&(a1==1)))&&(a14==19))&&(a7==1))&&(a25==1))&&(a4==16))&&(a28==15))){ + a26 = 17; + a3 = 1; + a14 = 18; + return -1; + } else if(((a25==1)&&((((input==2)&&((((!(a7==1)&&((a28==17)&&((a26==18)&&(a4==16))))&&(a14==20))||((a14==20)&&(!(a7==1)&&((a28==17)&&((a26==19)&&(a4==16))))))||(((a7==1)&&(((a4==17)&&(a26==17))&&(a28==15)))&&(a14==18))))&&!(a3==1))&&(a1==1)))){ + a28 = 15; + a14 = 18; + a26 = 17; + a4 = 16; + a3 = 1; + a7 = 1; + return -1; + } else if((((a25==1)&&((((((input==6)&&((((a26==18)&&(a7==1))||((a7==1)&&(a26==19)))||((a26==17)&&!(a7==1))))&&(a14==20))&&(a3==1))&&(a4==18))&&(a1==1)))&&(a28==16))){ + a28 = 15; + a3 = 0; + a7 = 0; + a4 = 16; + a26 = 18; + return 23; + } else if(((a28==16)&&(((!(a3==1)&&((((a25==1)&&(((a26==18)||(a26==19))&&(input==1)))&&(a4==17))&&!(a7==1)))&&(a1==1))&&(a14==18)))){ + a3 = 1; + a26 = 17; + a4 = 16; + a7 = 1; + a28 = 15; + return -1; + } else if((((a25==1)&&(!(a7==1)&&(((a14==18)&&((((((a26==17)||(a26==18))||(a26==19))&&(input==1))&&!(a3==1))&&(a4==16)))&&(a1==1))))&&(a28==15))){ + a26 = 17; + a7 = 1; + a3 = 1; + return -1; + } else if(((((((a1==1)&&((a25==1)&&((input==3)&&(((a7==1)&&(a26==19))||((a26==17)&&!(a7==1))))))&&(a4==17))&&(a28==17))&&(a14==18))&&(a3==1))){ + a28 = 15; + a4 = 16; + a7 = 1; + a26 = 17; + return -1; + } else if((((a1==1)&&((!(a3==1)&&((a28==15)&&((a4==18)&&((input==6)&&(((a7==1)&&(a26==19))||(!(a7==1)&&(a26==17)))))))&&(a14==18)))&&(a25==1))){ + a26 = 17; + a7 = 1; + a3 = 1; + a4 = 16; + return -1; + } else if(((((a7==1)&&((((!(a3==1)&&((a26==17)&&(input==4)))&&(a14==20))&&(a25==1))&&(a28==16)))&&(a4==17))&&(a1==1))){ + a3 = 1; + a28 = 15; + a14 = 18; + a4 = 16; + return -1; + } else if((((a28==17)&&(((a4==17)&&((a3==1)&&((input==6)&&((((a7==1)&&(a26==17))&&(a14==20))||(((a14==19)&&(!(a7==1)&&(a26==18)))||((!(a7==1)&&(a26==19))&&(a14==19)))))))&&(a25==1)))&&(a1==1))){ + a14 = 20; + a4 = 18; + a26 = 17; + a7 = 1; + a28 = 16; + return 26; + } else if(((a4==17)&&(((((a28==15)&&(!(a7==1)&&(!(a3==1)&&((a1==1)&&(input==3)))))&&(a25==1))&&(a26==18))&&(a14==19)))){ + a26 = 17; + a14 = 18; + a4 = 16; + a7 = 1; + a3 = 1; + return -1; + } else if(((a28==17)&&((a25==1)&&((a3==1)&&(((a4==17)&&(((((a14==19)&&(!(a7==1)&&(a26==18)))||(((a26==19)&&!(a7==1))&&(a14==19)))||((a14==20)&&((a7==1)&&(a26==17))))&&(input==5)))&&(a1==1)))))){ + a28 = 15; + a14 = 18; + a4 = 16; + a26 = 17; + a7 = 1; + return -1; + } else if(((a4==18)&&(((((((a3==1)&&((a14==19)&&(input==5)))&&(a7==1))&&(a1==1))&&(a26==17))&&(a28==16))&&(a25==1)))){ + a4 = 16; + a14 = 18; + a28 = 15; + return -1; + } else if(((a25==1)&&(((a1==1)&&((a4==17)&&(((a7==1)&&(((input==5)&&((a26==17)||(a26==18)))&&(a14==18)))&&(a3==1))))&&(a28==17)))){ + a4 = 16; + a28 = 15; + a26 = 17; + return -1; + } else if((((((a25==1)&&(((a4==17)&&(((a26==19)&&(input==6))&&(a14==19)))&&!(a7==1)))&&!(a3==1))&&(a28==17))&&(a1==1))){ + a4 = 16; + a14 = 18; + a7 = 1; + a3 = 1; + a28 = 15; + a26 = 17; + return -1; + } else if((((a28==15)&&(((((a25==1)&&(!(a7==1)&&((input==3)&&((a26==19)||((a26==17)||(a26==18))))))&&(a14==18))&&(a1==1))&&(a3==1)))&&(a4==18))){ + a4 = 16; + a26 = 17; + a7 = 1; + return -1; + } else if(((a26==18)&&(((a14==20)&&((((a3==1)&&((a1==1)&&((a4==18)&&(input==5))))&&!(a7==1))&&(a28==17)))&&(a25==1)))){ + a4 = 16; + a7 = 1; + a26 = 17; + a28 = 15; + a14 = 18; + return -1; + } else if((((a1==1)&&((a4==18)&&((a25==1)&&((a7==1)&&((a14==20)&&(((input==2)&&(((a26==17)||(a26==18))||(a26==19)))&&!(a3==1)))))))&&(a28==15))){ + a4 = 16; + a14 = 18; + a3 = 1; + a26 = 17; + return -1; + } else if((((a14==18)&&(((a28==15)&&((a3==1)&&((a4==18)&&(((((a26==17)||(a26==18))||(a26==19))&&(input==1))&&(a1==1)))))&&(a25==1)))&&!(a7==1))){ + a7 = 1; + a4 = 16; + a26 = 17; + return -1; + } else if(((((a28==16)&&((a1==1)&&(((input==2)&&(((a14==18)&&((a26==19)&&!(a7==1)))||(((a7==1)&&(a26==17))&&(a14==19))))&&!(a3==1))))&&(a25==1))&&(a4==18))){ + a14 = 19; + a26 = 18; + a7 = 0; + return 24; + } else if((((a25==1)&&(!(a3==1)&&(((((((a14==19)&&((a26==19)&&!(a7==1)))||((a14==20)&&((a7==1)&&(a26==17))))||((a14==20)&&((a7==1)&&(a26==18))))&&(input==3))&&(a4==18))&&(a28==16))))&&(a1==1))){ + a7 = 1; + a26 = 18; + a14 = 20; + return -1; + } else if(((a4==18)&&((((a25==1)&&((a28==16)&&(((input==2)&&(((a7==1)&&(a26==19))||((a26==17)&&!(a7==1))))&&!(a3==1))))&&(a1==1))&&(a14==20)))){ + a28 = 17; + a7 = 0; + a3 = 1; + a14 = 18; + a26 = 17; + a4 = 16; + return -1; + } else if((((((a3==1)&&((a28==16)&&((a1==1)&&(!(a7==1)&&(((a26==18)||(a26==19))&&(input==1))))))&&(a4==17))&&(a25==1))&&(a14==20))){ + a26 = 18; + a14 = 18; + a4 = 18; + a7 = 1; + return 21; + } else if(((((((((a25==1)&&((input==6)&&((a26==17)||(a26==18))))&&(a28==16))&&(a4==16))&&(a7==1))&&(a1==1))&&!(a3==1))&&(a14==19))){ + a3 = 1; + a14 = 18; + a26 = 17; + a28 = 15; + return -1; + } else if((((a28==16)&&(!(a3==1)&&((a25==1)&&(((input==4)&&(((((a26==19)&&!(a7==1))&&(a14==19))||(((a7==1)&&(a26==17))&&(a14==20)))||(((a7==1)&&(a26==18))&&(a14==20))))&&(a1==1)))))&&(a4==16))){ + a14 = 18; + a28 = 15; + a3 = 1; + a26 = 17; + a7 = 1; + return -1; + } else if((((a7==1)&&((((a25==1)&&((a14==20)&&((a1==1)&&((((a26==17)||(a26==18))||(a26==19))&&(input==4)))))&&(a28==15))&&(a4==18)))&&!(a3==1))){ + a4 = 16; + a3 = 1; + a14 = 18; + a26 = 17; + return -1; + } else if((!(a3==1)&&(((((a4==18)&&((input==3)&&((((a26==19)&&!(a7==1))&&(a14==18))||((a14==19)&&((a26==17)&&(a7==1))))))&&(a1==1))&&(a25==1))&&(a28==16)))){ + a3 = 1; + a14 = 18; + a26 = 17; + a28 = 15; + a7 = 1; + a4 = 16; + return -1; + } else if((((a28==15)&&(((a3==1)&&((((a14==18)&&((input==6)&&((a26==19)||((a26==17)||(a26==18)))))&&!(a7==1))&&(a4==18)))&&(a1==1)))&&(a25==1))){ + a7 = 1; + a26 = 19; + a28 = 17; + a14 = 19; + return 26; + } else if((((a25==1)&&(((((((a26==18)&&(input==1))&&(a4==18))&&(a14==20))&&(a1==1))&&(a3==1))&&(a28==17)))&&!(a7==1))){ + a14 = 18; + a7 = 1; + a28 = 15; + a26 = 17; + a4 = 16; + return -1; + } else if(((a4==18)&&((((((a7==1)&&(!(a3==1)&&((input==3)&&(a14==19))))&&(a25==1))&&(a28==16))&&(a1==1))&&(a26==18)))){ + a14 = 20; + return 21; + } else if(((!(a7==1)&&(((a14==18)&&((a28==15)&&((((input==5)&&(a26==18))&&(a25==1))&&!(a3==1))))&&(a4==18)))&&(a1==1))){ + a7 = 1; + a14 = 19; + a26 = 19; + return 24; + } else if(((a26==19)&&((a28==15)&&(((a4==16)&&((a1==1)&&((a25==1)&&(((input==6)&&(a14==18))&&!(a3==1)))))&&(a7==1))))){ + a26 = 17; + a3 = 1; + return -1; + } else if((((a4==16)&&((!(a3==1)&&(((((input==3)&&(a26==17))&&(a14==19))&&(a25==1))&&(a28==17)))&&(a1==1)))&&!(a7==1))){ + a14 = 18; + a28 = 15; + a3 = 1; + a7 = 1; + return -1; + } else if(((a4==17)&&((a1==1)&&(((a14==19)&&((((a28==16)&&((((a26==17)||(a26==18))||(a26==19))&&(input==3)))&&(a25==1))&&!(a3==1)))&&(a7==1))))){ + a4 = 16; + a26 = 17; + a14 = 18; + a3 = 1; + a28 = 15; + return -1; + } else if((((a3==1)&&(((a4==17)&&((a1==1)&&(((((a26==19)&&(a7==1))||(!(a7==1)&&(a26==17)))&&(input==2))&&(a28==17))))&&(a25==1)))&&(a14==18))){ + a26 = 17; + a28 = 15; + a4 = 16; + a7 = 1; + return -1; + } else if((((a7==1)&&((a14==19)&&((((a28==15)&&(!(a3==1)&&((input==6)&&((a26==17)||(a26==18)))))&&(a4==16))&&(a1==1))))&&(a25==1))){ + a3 = 1; + a26 = 17; + a14 = 18; + return -1; + } else if((((a28==15)&&((((!(a3==1)&&((((a26==19)&&(a7==1))||(!(a7==1)&&(a26==17)))&&(input==3)))&&(a25==1))&&(a1==1))&&(a14==18)))&&(a4==18))){ + a26 = 17; + a3 = 1; + a4 = 16; + a7 = 1; + return -1; + } else if(((((a28==16)&&(((a1==1)&&(((((a14==19)&&(!(a7==1)&&(a26==19)))||((a14==20)&&((a7==1)&&(a26==17))))||((a14==20)&&((a7==1)&&(a26==18))))&&(input==1)))&&(a4==18)))&&(a25==1))&&!(a3==1))){ + a26 = 17; + a14 = 20; + a7 = 1; + return -1; + } else if((!(a7==1)&&(((((!(a3==1)&&((a14==19)&&(((a26==18)||(a26==19))&&(input==2))))&&(a1==1))&&(a28==15))&&(a4==18))&&(a25==1)))){ + a26 = 17; + a7 = 1; + a3 = 1; + a4 = 16; + a14 = 18; + return -1; + } else if(((((((input==1)&&((((((a26==18)&&(a28==15))&&!(a7==1))&&(a14==20))||((((a28==15)&&(a26==19))&&!(a7==1))&&(a14==20)))||((a14==18)&&((a7==1)&&((a28==16)&&(a26==17))))))&&(a25==1))&&(a3==1))&&(a4==18))&&(a1==1))){ + a4 = 16; + a14 = 18; + a7 = 1; + a28 = 15; + a26 = 17; + return -1; + } else if((((((a14==18)&&(((a25==1)&&((((a26==17)||(a26==18))&&(input==2))&&(a1==1)))&&(a28==17)))&&(a7==1))&&!(a3==1))&&(a4==17))){ + a14 = 19; + a4 = 18; + a26 = 19; + a3 = 1; + return 26; + } else if((((a25==1)&&(((a1==1)&&((input==1)&&((((!(a7==1)&&((a26==18)&&(a28==16)))&&(a14==20))||((!(a7==1)&&((a26==19)&&(a28==16)))&&(a14==20)))||((a14==18)&&((a7==1)&&((a26==17)&&(a28==17)))))))&&(a4==16)))&&!(a3==1))){ + a7 = 1; + a14 = 18; + a28 = 15; + a3 = 1; + a26 = 17; + return -1; + } else if(((a1==1)&&(((((a4==17)&&((a28==16)&&((((a26==17)&&!(a7==1))||(((a26==18)&&(a7==1))||((a7==1)&&(a26==19))))&&(input==4))))&&(a14==18))&&(a25==1))&&!(a3==1)))){ + a26 = 17; + a7 = 1; + a3 = 1; + a28 = 15; + a4 = 16; + return -1; + } else if((((((a14==19)&&(((((input==5)&&(a26==18))&&(a1==1))&&(a25==1))&&(a28==15)))&&!(a3==1))&&(a7==1))&&(a4==18))){ + a28 = 17; + a3 = 1; + a26 = 17; + return 26; + } else if(((a25==1)&&((a14==18)&&((a1==1)&&((a7==1)&&(((a28==16)&&((a4==18)&&(((a26==17)||(a26==18))&&(input==4))))&&!(a3==1))))))){ + a4 = 16; + a26 = 17; + a3 = 1; + a28 = 15; + return -1; + } else if(((((a7==1)&&((a4==18)&&(((!(a3==1)&&(((a26==17)||(a26==18))&&(input==2)))&&(a28==15))&&(a14==18))))&&(a25==1))&&(a1==1))){ + a3 = 1; + a4 = 16; + a26 = 17; + return -1; + } else if(((((a3==1)&&((a14==18)&&((a26==18)&&((a4==18)&&((a28==17)&&((input==5)&&(a1==1)))))))&&(a25==1))&&!(a7==1))){ + a7 = 1; + a28 = 16; + a4 = 16; + a26 = 19; + a3 = 0; + return 22; + } else if((((a25==1)&&((a1==1)&&((a28==15)&&(!(a3==1)&&((a4==18)&&((a14==19)&&((input==4)&&((a26==18)||(a26==19)))))))))&&!(a7==1))){ + a26 = 17; + a4 = 16; + a7 = 1; + a3 = 1; + a14 = 18; + return -1; + } else if(((!(a7==1)&&((a25==1)&&((a4==16)&&((a14==20)&&((a28==15)&&(!(a3==1)&&((input==1)&&((a26==17)||(a26==18)))))))))&&(a1==1))){ + a4 = 18; + a28 = 17; + a26 = 19; + a3 = 1; + a14 = 18; + return -1; + } else if(((a25==1)&&((a4==17)&&((a7==1)&&((((a28==15)&&(((a26==19)&&(input==4))&&(a3==1)))&&(a1==1))&&(a14==20)))))){ + a4 = 16; + a26 = 17; + a14 = 18; + return -1; + } else if(((a28==16)&&((a3==1)&&((a1==1)&&((a25==1)&&(((((!(a7==1)&&(a26==17))||(((a7==1)&&(a26==18))||((a7==1)&&(a26==19))))&&(input==4))&&(a4==17))&&(a14==20))))))){ + a14 = 18; + a7 = 1; + a4 = 16; + a28 = 15; + a26 = 17; + return -1; + } else if(((a14==19)&&(((((a28==16)&&((a25==1)&&((((a26==17)&&!(a7==1))||(((a7==1)&&(a26==18))||((a7==1)&&(a26==19))))&&(input==1))))&&(a1==1))&&(a3==1))&&(a4==18)))){ + a14 = 20; + a28 = 15; + a26 = 19; + a7 = 1; + a4 = 16; + a3 = 0; + return 26; + } else if(((a14==18)&&(!(a3==1)&&((a1==1)&&(((a28==17)&&((a4==17)&&(((!(a7==1)&&(a26==18))||(((a26==19)&&(a7==1))||(!(a7==1)&&(a26==17))))&&(input==4))))&&(a25==1)))))){ + a4 = 16; + a7 = 1; + a3 = 1; + a28 = 15; + a26 = 17; + return -1; + } else if(((a28==15)&&(((((a25==1)&&((a14==18)&&((a4==18)&&((input==3)&&((a26==17)||(a26==18))))))&&!(a3==1))&&(a7==1))&&(a1==1)))){ + a26 = 17; + a4 = 16; + a3 = 1; + return -1; + } else if((((a1==1)&&(((((a4==17)&&((input==1)&&((((a26==18)&&(a7==1))||((a26==19)&&(a7==1)))||((a26==17)&&!(a7==1)))))&&!(a3==1))&&(a14==18))&&(a25==1)))&&(a28==16))){ + a3 = 1; + a4 = 16; + a7 = 1; + a26 = 17; + a28 = 15; + return -1; + } else if(((a28==15)&&(!(a7==1)&&((a25==1)&&(!(a3==1)&&((a1==1)&&((a26==17)&&(((input==5)&&(a4==17))&&(a14==20))))))))){ + return -1; + } else if(((a25==1)&&((a4==18)&&(((a28==15)&&(!(a3==1)&&((((a14==18)&&(!(a7==1)&&(a26==19)))||(((a7==1)&&(a26==17))&&(a14==19)))&&(input==1))))&&(a1==1))))){ + a4 = 16; + a26 = 17; + a7 = 1; + a14 = 18; + a3 = 1; + return -1; + } else if(((((a26==18)&&(((a4==17)&&((!(a7==1)&&((input==2)&&(a28==15)))&&(a25==1)))&&(a1==1)))&&!(a3==1))&&(a14==19))){ + a4 = 16; + a3 = 1; + a14 = 18; + a7 = 1; + a26 = 17; + return -1; + } else if(((((!(a3==1)&&((a14==20)&&((a4==16)&&((((a26==19)&&(a7==1))||(!(a7==1)&&(a26==17)))&&(input==2)))))&&(a25==1))&&(a1==1))&&(a28==16))){ + a14 = 18; + a3 = 1; + a7 = 1; + a28 = 15; + a26 = 17; + return -1; + } else if(((((((a4==16)&&((((input==2)&&((a26==17)||(a26==18)))&&(a25==1))&&!(a7==1)))&&(a14==19))&&(a28==15))&&(a1==1))&&!(a3==1))){ + a14 = 18; + a7 = 1; + a26 = 17; + a3 = 1; + return -1; + } else if(((a28==15)&&((a25==1)&&(!(a3==1)&&((a4==17)&&(((input==2)&&(((a14==19)&&((a26==18)&&(a7==1)))||((((a26==19)&&!(a7==1))&&(a14==18))||(((a7==1)&&(a26==17))&&(a14==19)))))&&(a1==1))))))){ + a3 = 1; + a14 = 18; + a26 = 17; + a4 = 16; + a7 = 1; + return -1; + } else if((((a25==1)&&((a14==18)&&(((a28==17)&&((a1==1)&&((((a26==19)&&(a7==1))||(!(a7==1)&&(a26==17)))&&(input==5))))&&(a3==1))))&&(a4==17))){ + a26 = 19; + a28 = 16; + a4 = 18; + a7 = 0; + return 22; + } else if((((a4==17)&&(((a28==17)&&(((a1==1)&&((a25==1)&&((input==5)&&!(a7==1))))&&(a14==19)))&&!(a3==1)))&&(a26==18))){ + a14 = 18; + a7 = 1; + a28 = 15; + a4 = 16; + a3 = 1; + a26 = 17; + return -1; + } else if(((a14==19)&&(((a7==1)&&((((a26==18)&&((a1==1)&&((input==2)&&(a28==15))))&&(a25==1))&&(a4==18)))&&!(a3==1)))){ + a14 = 20; + a28 = 16; + a3 = 1; + a26 = 17; + return 26; + } else if((((a14==19)&&(!(a3==1)&&((((a1==1)&&((input==1)&&(((a26==19)&&(a7==1))||((a26==17)&&!(a7==1)))))&&(a25==1))&&(a4==18))))&&(a28==15))){ + a7 = 1; + a4 = 16; + a26 = 17; + a3 = 1; + a14 = 18; + return -1; + } else if(((a4==17)&&(!(a3==1)&&((((a25==1)&&((((!(a7==1)&&(a26==17))||(((a7==1)&&(a26==18))||((a7==1)&&(a26==19))))&&(input==2))&&(a28==16)))&&(a1==1))&&(a14==18))))){ + a26 = 17; + a4 = 16; + a28 = 15; + a7 = 1; + a3 = 1; + return -1; + } else if(((a7==1)&&((!(a3==1)&&((((((a14==18)&&(input==2))&&(a25==1))&&(a1==1))&&(a4==16))&&(a26==19)))&&(a28==17)))){ + a26 = 17; + a3 = 1; + a28 = 15; + return -1; + } else if((((((a1==1)&&(((a28==16)&&((((a26==19)&&(a7==1))||((a26==17)&&!(a7==1)))&&(input==3)))&&(a4==18)))&&(a14==20))&&!(a3==1))&&(a25==1))){ + a4 = 16; + a3 = 1; + a7 = 0; + a26 = 17; + a14 = 19; + return -1; + } else if(((a28==16)&&(((a4==17)&&(!(a3==1)&&((((a25==1)&&((input==4)&&((a26==19)||((a26==17)||(a26==18)))))&&(a1==1))&&(a14==19))))&&(a7==1)))){ + a4 = 16; + a3 = 1; + a26 = 17; + a28 = 15; + a14 = 18; + return -1; + } else if((((a4==17)&&((a14==19)&&((a25==1)&&((((a1==1)&&((input==3)&&(a28==17)))&&!(a3==1))&&(a26==18)))))&&!(a7==1))){ + a14 = 18; + a7 = 1; + a26 = 17; + a3 = 1; + a4 = 16; + a28 = 15; + return -1; + } else if(((a4==18)&&((a25==1)&&(((a1==1)&&((input==3)&&((((!(a7==1)&&((a26==18)&&(a28==15)))&&(a14==20))||((a14==20)&&(!(a7==1)&&((a26==19)&&(a28==15)))))||((((a26==17)&&(a28==16))&&(a7==1))&&(a14==18)))))&&(a3==1))))){ + a7 = 1; + a26 = 17; + a28 = 15; + a4 = 16; + a14 = 18; + return -1; + } else if(((a3==1)&&((a25==1)&&(((a1==1)&&((a28==17)&&((((a14==19)&&((a26==19)&&!(a7==1)))||((a14==20)&&((a7==1)&&(a26==17))))&&(input==4))))&&(a4==18))))){ + a14 = 18; + a4 = 16; + a28 = 15; + a26 = 17; + a7 = 1; + return -1; + } else if(((a3==1)&&((a25==1)&&(((input==3)&&(((a14==20)&&((((a4==17)&&(a26==19))&&(a28==17))&&!(a7==1)))||(((((a26==17)&&(a4==18))&&(a28==15))&&(a7==1))&&(a14==18))))&&(a1==1))))){ + a28 = 15; + a26 = 17; + a7 = 1; + a14 = 18; + a4 = 16; + return -1; + } else if((((a25==1)&&(((a1==1)&&((a4==17)&&((((((a26==19)&&(a7==1))||((a26==17)&&!(a7==1)))||(!(a7==1)&&(a26==18)))&&(input==4))&&(a14==20))))&&(a3==1)))&&(a28==17))){ + a7 = 0; + a14 = 18; + a26 = 17; + a4 = 18; + return 26; + } else if(((((((a1==1)&&((input==6)&&(((a14==19)&&((a7==1)&&(a26==18)))||(((!(a7==1)&&(a26==19))&&(a14==18))||((a14==19)&&((a26==17)&&(a7==1)))))))&&!(a3==1))&&(a25==1))&&(a28==17))&&(a4==18))){ + a7 = 0; + a14 = 18; + a26 = 17; + a4 = 17; + a28 = 15; + return 24; + } else if(((a4==16)&&((!(a3==1)&&((a1==1)&&(!(a7==1)&&((((a26==17)&&(input==6))&&(a28==17))&&(a14==18)))))&&(a25==1)))){ + a28 = 15; + a3 = 1; + a7 = 1; + return -1; + } else if((((((a1==1)&&((a28==17)&&((a25==1)&&(((input==3)&&(a14==20))&&(a26==18)))))&&(a3==1))&&!(a7==1))&&(a4==18))){ + a28 = 16; + a7 = 1; + a4 = 16; + a3 = 0; + a14 = 19; + return 22; + } else if(((a1==1)&&((a4==18)&&((a14==20)&&((a28==16)&&((!(a7==1)&&(!(a3==1)&&(((a26==18)||(a26==19))&&(input==6))))&&(a25==1))))))){ + a3 = 1; + a26 = 19; + a4 = 16; + a14 = 18; + a7 = 1; + return -1; + } else if(((!(a3==1)&&(((a1==1)&&(((((input==3)&&((a26==17)||(a26==18)))&&(a7==1))&&(a14==18))&&(a28==16)))&&(a25==1)))&&(a4==18))){ + a14 = 19; + a26 = 17; + return 24; + } else if((((a1==1)&&((a28==15)&&(((a3==1)&&(((((a14==19)&&((a26==19)&&!(a7==1)))||(((a26==17)&&(a7==1))&&(a14==20)))||((a14==20)&&((a7==1)&&(a26==18))))&&(input==2)))&&(a25==1))))&&(a4==18))){ + a26 = 17; + a14 = 18; + a7 = 1; + a4 = 16; + return -1; + } else if(((a1==1)&&(((a4==17)&&((a25==1)&&((input==3)&&(((a14==18)&&(((a28==16)&&(a26==17))&&(a7==1)))||(((a14==20)&&(((a26==18)&&(a28==15))&&!(a7==1)))||((((a28==15)&&(a26==19))&&!(a7==1))&&(a14==20)))))))&&!(a3==1)))){ + a14 = 18; + a4 = 16; + a7 = 1; + a26 = 17; + a3 = 1; + a28 = 15; + return -1; + } else if((!(a7==1)&&((a25==1)&&(!(a3==1)&&(((a14==18)&&(((a1==1)&&(((a26==18)||(a26==19))&&(input==3)))&&(a28==16)))&&(a4==16)))))){ + a28 = 15; + a26 = 18; + a14 = 20; + return 26; + } else if((!(a3==1)&&(((a1==1)&&((a25==1)&&(((((a14==18)&&((a26==19)&&!(a7==1)))||(((a7==1)&&(a26==17))&&(a14==19)))&&(input==4))&&(a28==17))))&&(a4==16)))){ + a7 = 1; + a14 = 18; + a3 = 1; + a26 = 17; + a28 = 15; + return -1; + } else if((((a1==1)&&((a28==15)&&((a14==19)&&((a4==18)&&(((input==6)&&(((a26==19)&&(a7==1))||(!(a7==1)&&(a26==17))))&&!(a3==1))))))&&(a25==1))){ + a14 = 18; + a3 = 1; + a7 = 1; + a26 = 17; + a4 = 16; + return -1; + } else if(((a28==15)&&((a14==19)&&(((((a26==18)&&((a1==1)&&((a25==1)&&(input==1))))&&(a3==1))&&(a7==1))&&(a4==18))))){ + a14 = 18; + a4 = 16; + a26 = 17; + return -1; + } else if((((a3==1)&&((((a1==1)&&((input==6)&&((((a7==1)&&(a26==17))&&(a14==19))||(((!(a7==1)&&(a26==18))&&(a14==18))||((!(a7==1)&&(a26==19))&&(a14==18))))))&&(a25==1))&&(a28==17)))&&(a4==17))){ + a14 = 19; + a28 = 16; + a4 = 18; + a26 = 17; + a7 = 1; + return 26; + } else if((((a1==1)&&((a25==1)&&((a4==18)&&(((input==6)&&(((a14==20)&&((a26==18)&&(a7==1)))||((((a26==19)&&!(a7==1))&&(a14==19))||(((a26==17)&&(a7==1))&&(a14==20)))))&&(a28==16)))))&&!(a3==1))){ + a26 = 17; + a4 = 17; + a7 = 0; + a14 = 18; + a28 = 15; + return 21; + } else if(((((a25==1)&&((a7==1)&&((((a1==1)&&((a4==18)&&(input==4)))&&(a3==1))&&(a26==19))))&&(a14==20))&&(a28==15))){ + a14 = 18; + a4 = 16; + a26 = 17; + return -1; + } else if(((a28==15)&&((a14==20)&&((((a7==1)&&((((input==4)&&(a1==1))&&(a25==1))&&!(a3==1)))&&(a26==19))&&(a4==16))))){ + a3 = 1; + a26 = 17; + a14 = 18; + return -1; + } else if((((a3==1)&&((a4==17)&&((((((input==1)&&(a7==1))&&(a1==1))&&(a26==19))&&(a25==1))&&(a14==20))))&&(a28==15))){ + a4 = 16; + a14 = 18; + a26 = 17; + return -1; + } else if((((a25==1)&&(!(a3==1)&&((a1==1)&&(((((a14==18)&&(!(a7==1)&&(a26==19)))||(((a7==1)&&(a26==17))&&(a14==19)))&&(input==2))&&(a4==18)))))&&(a28==15))){ + a3 = 1; + a14 = 18; + a26 = 17; + a7 = 1; + a4 = 16; + return -1; + } else if((((a4==16)&&((a25==1)&&(((a1==1)&&((((a14==18)&&(!(a7==1)&&(a26==19)))||(((a26==17)&&(a7==1))&&(a14==19)))&&(input==3)))&&!(a3==1))))&&(a28==17))){ + a26 = 17; + a14 = 18; + a3 = 1; + a7 = 1; + a28 = 15; + return -1; + } else if(((a25==1)&&((a1==1)&&((a14==20)&&(!(a3==1)&&((a4==17)&&((a7==1)&&(((a28==16)&&(input==3))&&(a26==17))))))))){ + a28 = 15; + a3 = 1; + a4 = 16; + a14 = 18; + return -1; + } else if(((a4==18)&&(((a28==15)&&(((a7==1)&&((((input==4)&&((a26==17)||(a26==18)))&&(a14==18))&&(a1==1)))&&(a25==1)))&&!(a3==1)))){ + a4 = 16; + a26 = 17; + a3 = 1; + return -1; + } else if(((a14==20)&&(((((a7==1)&&((((input==6)&&((a26==17)||(a26==18)))&&(a28==15))&&(a25==1)))&&!(a3==1))&&(a1==1))&&(a4==16)))){ + a3 = 1; + a14 = 18; + a26 = 17; + return -1; + } else if(((a14==19)&&(!(a3==1)&&(((((a1==1)&&((((a26==19)&&(a7==1))||(!(a7==1)&&(a26==17)))&&(input==5)))&&(a28==15))&&(a25==1))&&(a4==17))))){ + a7 = 1; + a14 = 18; + a4 = 16; + a3 = 1; + a26 = 17; + return -1; + } else if(((a25==1)&&(!(a3==1)&&(((((a14==20)&&((((a26==19)||((a26==17)||(a26==18)))&&(input==4))&&(a1==1)))&&(a7==1))&&(a28==15))&&(a4==17))))){ + a14 = 18; + a3 = 1; + a4 = 16; + a26 = 17; + return -1; + } else if(((a1==1)&&(((a3==1)&&(((a4==18)&&(((((a26==17)&&!(a7==1))||(((a26==18)&&(a7==1))||((a26==19)&&(a7==1))))&&(input==5))&&(a25==1)))&&(a28==17)))&&(a14==18)))){ + a7 = 1; + a4 = 16; + a28 = 15; + a26 = 17; + return -1; + } else if(((a28==17)&&(((((a4==17)&&((a3==1)&&(((input==1)&&(a1==1))&&(a25==1))))&&(a7==1))&&(a14==20))&&(a26==18)))){ + a28 = 15; + a4 = 16; + a14 = 18; + a26 = 17; + return -1; + } else if(((a28==17)&&(((a1==1)&&((a3==1)&&(((a25==1)&&(((!(a7==1)&&(a26==17))||(((a26==18)&&(a7==1))||((a7==1)&&(a26==19))))&&(input==5)))&&(a4==18))))&&(a14==19)))){ + a14 = 18; + a26 = 19; + a7 = 0; + return 24; + } else if(((((a1==1)&&((a25==1)&&((((input==3)&&(((a26==19)&&(a7==1))||(!(a7==1)&&(a26==17))))&&(a14==18))&&(a28==16))))&&(a4==16))&&!(a3==1))){ + a26 = 17; + a7 = 1; + a3 = 1; + a28 = 15; + return -1; + } else if(((a28==15)&&((((a3==1)&&((((((!(a7==1)&&(a26==19))&&(a14==19))||((a14==20)&&((a7==1)&&(a26==17))))||(((a7==1)&&(a26==18))&&(a14==20)))&&(input==5))&&(a25==1)))&&(a4==18))&&(a1==1)))){ + a7 = 1; + a14 = 18; + a4 = 16; + a26 = 17; + return -1; + } else if(((((a25==1)&&(((input==4)&&(((a14==18)&&((a7==1)&&((a28==16)&&(a26==17))))||(((!(a7==1)&&((a26==18)&&(a28==15)))&&(a14==20))||((!(a7==1)&&((a28==15)&&(a26==19)))&&(a14==20)))))&&(a3==1)))&&(a4==17))&&(a1==1))){ + a14 = 18; + a26 = 17; + a7 = 1; + a4 = 16; + a28 = 15; + return -1; + } else if((((a4==18)&&((((a26==18)&&((!(a7==1)&&((input==3)&&(a28==15)))&&!(a3==1)))&&(a14==18))&&(a25==1)))&&(a1==1))){ + a26 = 17; + a3 = 1; + a4 = 16; + a7 = 1; + return -1; + } else if((((((a4==17)&&((a14==19)&&(((((a26==19)&&(a7==1))||((a26==17)&&!(a7==1)))&&(input==4))&&!(a3==1))))&&(a1==1))&&(a25==1))&&(a28==17))){ + a14 = 20; + a7 = 0; + a26 = 17; + return 24; + } else if((!(a3==1)&&((((a28==16)&&((((a1==1)&&((input==3)&&((a26==18)||(a26==19))))&&!(a7==1))&&(a14==20)))&&(a4==18))&&(a25==1)))){ + a7 = 1; + a4 = 16; + a28 = 17; + a26 = 18; + a14 = 18; + return 24; + } else if(((a25==1)&&(((a1==1)&&((a3==1)&&((a28==17)&&((input==6)&&(((a14==19)&&((a26==19)&&!(a7==1)))||(((a7==1)&&(a26==17))&&(a14==20)))))))&&(a4==18)))){ + a26 = 18; + a14 = 19; + a7 = 1; + return 26; + } else if((((((((!(a7==1)&&((a28==17)&&(((a4==18)&&(a3==1))&&(a26==19))))&&(a14==20))||((a14==18)&&((a7==1)&&(((!(a3==1)&&(a4==16))&&(a26==17))&&(a28==15)))))||(((a7==1)&&((a28==15)&&(((a4==16)&&!(a3==1))&&(a26==18))))&&(a14==18)))&&(input==1))&&(a25==1))&&(a1==1))){ + a4 = 16; + a14 = 19; + a26 = 19; + a3 = 0; + a7 = 1; + a28 = 16; + return 26; + } else if(((a1==1)&&((a25==1)&&(((a4==17)&&((a28==16)&&(((input==2)&&((((a7==1)&&(a26==18))||((a7==1)&&(a26==19)))||(!(a7==1)&&(a26==17))))&&(a3==1))))&&(a14==19))))){ + a14 = 18; + a26 = 17; + a7 = 1; + a28 = 15; + a4 = 16; + return -1; + } else if(((a28==16)&&(((a14==20)&&((!(a3==1)&&(((a1==1)&&((a7==1)&&(input==1)))&&(a26==17)))&&(a4==17)))&&(a25==1)))){ + a14 = 18; + a4 = 16; + a3 = 1; + a28 = 15; + return -1; + } else if((!(a7==1)&&((((((a14==20)&&((a28==15)&&((input==1)&&(a3==1))))&&(a26==17))&&(a25==1))&&(a1==1))&&(a4==18)))){ + a7 = 1; + a4 = 16; + a14 = 18; + return -1; + } else if((!(a3==1)&&((a14==19)&&(((a4==16)&&(((a25==1)&&(((input==2)&&((a26==17)||(a26==18)))&&(a28==16)))&&(a7==1)))&&(a1==1))))){ + a26 = 17; + a3 = 1; + a14 = 18; + a28 = 15; + return -1; + } else if(((((a4==18)&&((((((((a26==18)&&(a7==1))||((a7==1)&&(a26==19)))||((a26==17)&&!(a7==1)))&&(input==5))&&(a28==17))&&(a1==1))&&(a25==1)))&&(a3==1))&&(a14==20))){ + a26 = 17; + a14 = 18; + a7 = 1; + a4 = 16; + a28 = 15; + return -1; + } else if((((a14==20)&&((a1==1)&&((a4==16)&&(((a28==17)&&((input==2)&&(((a7==1)&&(a26==19))||(!(a7==1)&&(a26==17)))))&&!(a3==1)))))&&(a25==1))){ + a7 = 1; + a26 = 17; + a14 = 18; + a28 = 15; + a3 = 1; + return -1; + } else if(((((a28==15)&&(((a4==18)&&(((a26==19)&&((input==5)&&(a14==20)))&&(a1==1)))&&(a3==1)))&&(a25==1))&&(a7==1))){ + a3 = 0; + a14 = 18; + a4 = 16; + return 26; + } else if(((((a28==15)&&(((a4==18)&&(((((a26==19)&&(a7==1))||(!(a7==1)&&(a26==17)))&&(input==3))&&(a25==1)))&&(a1==1)))&&!(a3==1))&&(a14==19))){ + a3 = 1; + a14 = 18; + a4 = 16; + a7 = 1; + a26 = 17; + return -1; + } else if(((a1==1)&&((a25==1)&&(((((a7==1)&&(((a14==20)&&(input==2))&&(a26==19)))&&(a4==16))&&!(a3==1))&&(a28==15))))){ + a14 = 18; + a26 = 17; + a3 = 1; + return -1; + } else if(((a4==16)&&((!(a3==1)&&(((input==2)&&(((!(a7==1)&&((a26==19)&&(a28==15)))&&(a14==20))||(((a7==1)&&((a28==16)&&(a26==17)))&&(a14==18))))&&(a1==1)))&&(a25==1)))){ + a14 = 19; + a7 = 0; + a28 = 17; + a26 = 17; + return 26; + } else if((((a1==1)&&((!(a3==1)&&((a14==19)&&((a28==16)&&((a26==19)&&((input==2)&&!(a7==1))))))&&(a25==1)))&&(a4==17))){ + a26 = 17; + a28 = 15; + a4 = 16; + a7 = 1; + a3 = 1; + a14 = 18; + return -1; + } else if((((a1==1)&&(((input==4)&&((((((a4==17)&&(a26==19))&&(a28==17))&&!(a7==1))&&(a14==20))||(((a7==1)&&((a28==15)&&((a26==17)&&(a4==18))))&&(a14==18))))&&(a3==1)))&&(a25==1))){ + a14 = 18; + a28 = 15; + a4 = 16; + a7 = 1; + a26 = 17; + return -1; + } else if(((a14==19)&&((a1==1)&&((a3==1)&&((a4==17)&&(((a25==1)&&((((a26==17)&&!(a7==1))||(((a26==18)&&(a7==1))||((a26==19)&&(a7==1))))&&(input==4)))&&(a28==16))))))){ + a4 = 16; + a26 = 17; + a7 = 1; + a28 = 15; + a14 = 18; + return -1; + } else if(((!(a3==1)&&(((((!(a7==1)&&((input==1)&&(a4==17)))&&(a25==1))&&(a26==18))&&(a1==1))&&(a14==19)))&&(a28==17))){ + a7 = 1; + a4 = 18; + a14 = 18; + a28 = 15; + return 24; + } else if(((((((((((a26==17)&&!(a7==1))||(((a7==1)&&(a26==18))||((a7==1)&&(a26==19))))&&(input==1))&&(a4==17))&&(a14==18))&&(a25==1))&&(a1==1))&&(a3==1))&&(a28==16))){ + a26 = 17; + a28 = 15; + a7 = 1; + a4 = 16; + return -1; + } else if(((((((a14==18)&&((a28==16)&&((((a26==19)&&(a7==1))||((a26==17)&&!(a7==1)))&&(input==6))))&&(a25==1))&&(a1==1))&&(a4==16))&&!(a3==1))){ + a28 = 15; + a7 = 1; + a3 = 1; + a26 = 17; + return -1; + } else if(((a4==16)&&(((a7==1)&&((!(a3==1)&&(((a14==18)&&((a26==19)&&(input==4)))&&(a28==17)))&&(a25==1)))&&(a1==1)))){ + a3 = 1; + a26 = 17; + a28 = 15; + return -1; + } else if(((a28==16)&&(((a4==17)&&((((input==6)&&((((a7==1)&&(a26==17))&&(a14==20))||((((a26==18)&&!(a7==1))&&(a14==19))||((!(a7==1)&&(a26==19))&&(a14==19)))))&&(a25==1))&&(a3==1)))&&(a1==1)))){ + a7 = 1; + a14 = 18; + a28 = 15; + a4 = 16; + a26 = 17; + return -1; + } else if(((a1==1)&&((!(a7==1)&&(((((((a26==18)||(a26==19))&&(input==5))&&(a25==1))&&!(a3==1))&&(a28==16))&&(a14==20)))&&(a4==18)))){ + a26 = 17; + a28 = 15; + a4 = 17; + return 24; + } else if((((!(a3==1)&&((a28==15)&&(((input==1)&&(((a14==19)&&((a26==18)&&(a7==1)))||(((a14==18)&&(!(a7==1)&&(a26==19)))||(((a7==1)&&(a26==17))&&(a14==19)))))&&(a4==17))))&&(a1==1))&&(a25==1))){ + a4 = 16; + a14 = 18; + a3 = 1; + a7 = 1; + a26 = 17; + return -1; + } else if(((a25==1)&&((a1==1)&&(!(a3==1)&&(((input==4)&&(((!(a7==1)&&((a26==19)&&(a28==15)))&&(a14==20))||(((a7==1)&&((a28==16)&&(a26==17)))&&(a14==18))))&&(a4==16)))))){ + a3 = 1; + a26 = 17; + a7 = 1; + a28 = 15; + a14 = 18; + return -1; + } else if(((((((!(a3==1)&&(((input==1)&&(a25==1))&&(a28==15)))&&(a14==20))&&(a1==1))&&(a4==17))&&(a26==17))&&!(a7==1))){ + a7 = 1; + a26 = 19; + return -1; + } else if((((!(a3==1)&&((a14==20)&&((a4==17)&&(((a1==1)&&(((a26==18)||(a26==19))&&(input==1)))&&(a28==16)))))&&!(a7==1))&&(a25==1))){ + a26 = 17; + return -1; + } else if((((a4==16)&&(((((a28==15)&&((a14==19)&&(((a26==17)||(a26==18))&&(input==1))))&&!(a3==1))&&!(a7==1))&&(a1==1)))&&(a25==1))){ + a3 = 1; + a26 = 17; + a7 = 1; + a14 = 18; + return -1; + } else if(((!(a7==1)&&((a25==1)&&((a1==1)&&((a3==1)&&((a4==18)&&(((input==4)&&((a26==18)||(a26==19)))&&(a28==16)))))))&&(a14==19))){ + a7 = 1; + a28 = 15; + a26 = 17; + a14 = 18; + a4 = 16; + return -1; + } else if(((a28==15)&&((((a7==1)&&((a4==17)&&(((a25==1)&&(((a26==18)||(a26==19))&&(input==1)))&&(a1==1))))&&!(a3==1))&&(a14==18)))){ + a26 = 18; + return 23; + } else if(((a26==19)&&((a28==16)&&((!(a7==1)&&((a3==1)&&(((a25==1)&&((input==4)&&(a4==18)))&&(a1==1))))&&(a14==18))))){ + a7 = 1; + a4 = 16; + a26 = 17; + a28 = 15; + return -1; + } else if(((((a25==1)&&((a28==17)&&(!(a3==1)&&(((((a14==19)&&((a26==19)&&!(a7==1)))||((a14==20)&&((a26==17)&&(a7==1))))||((a14==20)&&((a7==1)&&(a26==18))))&&(input==3)))))&&(a1==1))&&(a4==16))){ + a7 = 1; + a26 = 17; + a3 = 1; + a14 = 18; + a28 = 15; + return -1; + } else if(((((((a25==1)&&((!(a7==1)&&((input==1)&&(a28==15)))&&(a1==1)))&&(a4==17))&&!(a3==1))&&(a14==19))&&(a26==19))){ + a3 = 1; + a7 = 1; + a4 = 16; + a14 = 18; + a26 = 17; + return -1; + } else if(((((a1==1)&&((a28==15)&&((a4==17)&&((input==6)&&(((((a26==19)&&!(a7==1))&&(a14==18))||((a14==19)&&((a7==1)&&(a26==17))))||(((a7==1)&&(a26==18))&&(a14==19)))))))&&(a25==1))&&!(a3==1))){ + a7 = 0; + a28 = 16; + a26 = 19; + a14 = 19; + return 22; + } else if(((a14==18)&&((a28==17)&&((((a25==1)&&(!(a3==1)&&((a1==1)&&(((a26==17)||(a26==18))&&(input==4)))))&&(a4==18))&&(a7==1))))){ + a14 = 19; + a26 = 18; + a28 = 15; + a3 = 1; + a4 = 16; + return -1; + } else if((!(a7==1)&&((a28==17)&&((a14==18)&&(((a1==1)&&((a26==18)&&(!(a3==1)&&((input==2)&&(a25==1)))))&&(a4==16)))))){ + a28 = 15; + a3 = 1; + a26 = 17; + a7 = 1; + return -1; + } else if(((!(a3==1)&&(((((((((a26==17)||(a26==18))||(a26==19))&&(input==4))&&!(a7==1))&&(a25==1))&&(a1==1))&&(a28==17))&&(a14==20)))&&(a4==17))){ + a3 = 1; + a4 = 16; + a14 = 18; + a28 = 15; + a26 = 17; + a7 = 1; + return -1; + } else if((((((((a4==17)&&(((input==5)&&(a25==1))&&(a1==1)))&&(a14==20))&&(a3==1))&&(a26==18))&&(a7==1))&&(a28==15))){ + a4 = 16; + a26 = 17; + a14 = 18; + return -1; + } else if(((a4==16)&&(((a25==1)&&((a1==1)&&((input==5)&&(((a14==18)&&((a7==1)&&((a28==17)&&(a26==17))))||(((((a26==18)&&(a28==16))&&!(a7==1))&&(a14==20))||((a14==20)&&(((a26==19)&&(a28==16))&&!(a7==1))))))))&&!(a3==1)))){ + a14 = 18; + a26 = 17; + a3 = 1; + a28 = 15; + a7 = 1; + return -1; + } else if(((a25==1)&&((a3==1)&&((((a4==17)&&(((((a26==17)&&!(a7==1))||(((a26==18)&&(a7==1))||((a26==19)&&(a7==1))))&&(input==6))&&(a28==16)))&&(a14==19))&&(a1==1))))){ + a28 = 15; + a7 = 1; + a26 = 17; + a4 = 16; + a14 = 18; + return -1; + } else if(((((((a4==16)&&(!(a7==1)&&((a14==18)&&((input==5)&&(a1==1)))))&&!(a3==1))&&(a28==17))&&(a25==1))&&(a26==18))){ + a28 = 15; + a7 = 1; + a3 = 1; + a26 = 17; + return -1; + } else if((((((((a28==15)&&(((input==3)&&((a26==18)||(a26==19)))&&(a25==1)))&&!(a3==1))&&!(a7==1))&&(a4==18))&&(a1==1))&&(a14==20))){ + a7 = 1; + a3 = 1; + a4 = 16; + a14 = 18; + a26 = 17; + return -1; + } else if(((a14==19)&&(((a1==1)&&((((a4==18)&&((input==6)&&(((a26==17)&&!(a7==1))||(((a26==18)&&(a7==1))||((a7==1)&&(a26==19))))))&&(a3==1))&&(a28==17)))&&(a25==1)))){ + a26 = 17; + a7 = 0; + return 22; + } else if(((a4==18)&&(((((((((a26==19)&&(a7==1))||(!(a7==1)&&(a26==17)))&&(input==2))&&(a28==16))&&(a14==19))&&(a25==1))&&!(a3==1))&&(a1==1)))){ + a26 = 17; + a4 = 16; + a7 = 1; + a14 = 18; + a28 = 15; + a3 = 1; + return -1; + } else if(((a25==1)&&((((a1==1)&&((a14==18)&&(((input==5)&&((((a26==19)&&(a7==1))||(!(a7==1)&&(a26==17)))||((a26==18)&&!(a7==1))))&&(a4==17))))&&!(a3==1))&&(a28==17)))){ + a3 = 1; + a4 = 16; + a7 = 1; + a28 = 15; + a26 = 17; + return -1; + } else if((((a25==1)&&((a7==1)&&(((((a14==18)&&(((a26==17)||(a26==18))&&(input==6)))&&(a4==17))&&!(a3==1))&&(a1==1))))&&(a28==17))){ + a26 = 17; + a4 = 18; + a28 = 16; + a14 = 20; + a3 = 1; + return 26; + } else if(((a4==16)&&((!(a3==1)&&((a28==17)&&((a1==1)&&((input==5)&&(((a14==18)&&(!(a7==1)&&(a26==19)))||(((a26==17)&&(a7==1))&&(a14==19)))))))&&(a25==1)))){ + a7 = 1; + a28 = 15; + a3 = 1; + a26 = 17; + a14 = 18; + return -1; + } else if(((a28==17)&&(((a26==18)&&(!(a7==1)&&((a4==18)&&((((a3==1)&&(input==4))&&(a25==1))&&(a1==1)))))&&(a14==19)))){ + a7 = 1; + a28 = 16; + a26 = 17; + a14 = 20; + return 26; + } else if(((a25==1)&&(((a28==16)&&((a3==1)&&(((a4==17)&&((input==3)&&((!(a7==1)&&(a26==17))||(((a7==1)&&(a26==18))||((a26==19)&&(a7==1))))))&&(a1==1))))&&(a14==19)))){ + a4 = 16; + a14 = 18; + a26 = 17; + a7 = 1; + a28 = 15; + return -1; + } else if((((a25==1)&&(((a14==20)&&(((a28==15)&&(((input==4)&&((a26==18)||(a26==19)))&&(a4==18)))&&(a1==1)))&&!(a3==1)))&&!(a7==1))){ + a14 = 18; + a7 = 1; + a3 = 1; + a4 = 16; + a26 = 17; + return -1; + } else if((!(a3==1)&&(((a14==19)&&((a4==17)&&(((a1==1)&&(!(a7==1)&&((a25==1)&&(input==2))))&&(a28==15))))&&(a26==19)))){ + a7 = 1; + a14 = 18; + a3 = 1; + a26 = 17; + a4 = 16; + return -1; + } else if(((a1==1)&&(((((((a14==19)&&((a4==18)&&(input==6)))&&(a25==1))&&(a28==16))&&(a26==18))&&!(a3==1))&&!(a7==1)))){ + a26 = 17; + a28 = 15; + a14 = 20; + a3 = 1; + a4 = 16; + return -1; + } else if(((a4==18)&&((a1==1)&&(((a14==20)&&(((((!(a7==1)&&(a26==17))||(((a26==18)&&(a7==1))||((a26==19)&&(a7==1))))&&(input==1))&&(a25==1))&&(a3==1)))&&(a28==17))))){ + a14 = 18; + a7 = 1; + a26 = 17; + a28 = 15; + a4 = 16; + return -1; + } else if(((a26==19)&&(!(a7==1)&&((a4==17)&&((a1==1)&&((((a28==17)&&((input==1)&&!(a3==1)))&&(a25==1))&&(a14==19))))))){ + a14 = 18; + a26 = 17; + a28 = 15; + return 21; + } else if(((a28==17)&&((((a25==1)&&(((input==2)&&((((a7==1)&&(a26==18))&&(a14==20))||(((a14==19)&&(!(a7==1)&&(a26==19)))||(((a7==1)&&(a26==17))&&(a14==20)))))&&(a4==16)))&&!(a3==1))&&(a1==1)))){ + a4 = 17; + a7 = 0; + a14 = 18; + a26 = 18; + a28 = 16; + return 22; + } return calculate_output4(input); + } + + int calculate_output4(int input) { + if(((a25==1)&&((a28==17)&&((a14==18)&&(((((a26==17)&&((a4==16)&&(input==5)))&&!(a3==1))&&!(a7==1))&&(a1==1)))))){ + a3 = 1; + a7 = 1; + a28 = 15; + return -1; + } else if(((a3==1)&&(((a1==1)&&((a28==16)&&(((a4==18)&&((input==1)&&((((a26==18)&&(a7==1))||((a26==19)&&(a7==1)))||(!(a7==1)&&(a26==17)))))&&(a14==18))))&&(a25==1)))){ + a4 = 16; + a26 = 17; + a7 = 1; + a28 = 15; + return -1; + } else if(((!(a7==1)&&(((a25==1)&&(((((input==2)&&(((a26==17)||(a26==18))||(a26==19)))&&(a1==1))&&!(a3==1))&&(a28==17)))&&(a4==17)))&&(a14==20))){ + a26 = 17; + a3 = 1; + a4 = 16; + a14 = 18; + a28 = 15; + a7 = 1; + return -1; + } else if(((a4==17)&&((a28==17)&&((a25==1)&&((a3==1)&&(((input==3)&&((((a14==19)&&(!(a7==1)&&(a26==18)))||(((a26==19)&&!(a7==1))&&(a14==19)))||(((a7==1)&&(a26==17))&&(a14==20))))&&(a1==1))))))){ + a4 = 16; + a7 = 1; + a26 = 17; + a28 = 15; + a14 = 18; + return -1; + } else if(((a28==15)&&((a1==1)&&(((a25==1)&&(((a4==16)&&(((((a26==17)||(a26==18))||(a26==19))&&(input==5))&&!(a7==1)))&&!(a3==1)))&&(a14==18))))){ + a26 = 17; + a3 = 1; + a7 = 1; + return -1; + } else if((((!(a7==1)&&((a4==17)&&((a14==19)&&((a1==1)&&((((a26==17)||(a26==18))&&(input==4))&&!(a3==1))))))&&(a28==16))&&(a25==1))){ + a4 = 16; + a26 = 18; + a7 = 1; + a28 = 17; + return 26; + } else if((!(a3==1)&&(((a14==20)&&((a25==1)&&((a1==1)&&(((input==4)&&(((a7==1)&&(a26==19))||(!(a7==1)&&(a26==17))))&&(a4==18)))))&&(a28==16)))){ + a28 = 17; + a26 = 18; + a14 = 18; + a7 = 1; + return 24; + } else if(((((a1==1)&&((((a14==19)&&((input==3)&&((((a7==1)&&(a26==19))||((a26==17)&&!(a7==1)))||((a26==18)&&!(a7==1)))))&&(a28==16))&&!(a3==1)))&&(a25==1))&&(a4==16))){ + a28 = 15; + a3 = 1; + a26 = 17; + a7 = 1; + a14 = 18; + return -1; + } else if(((a3==1)&&((((a28==17)&&(((a14==18)&&((input==3)&&(((a26==17)&&!(a7==1))||(((a26==18)&&(a7==1))||((a7==1)&&(a26==19))))))&&(a1==1)))&&(a25==1))&&(a4==18)))){ + a4 = 16; + a28 = 15; + a26 = 17; + a7 = 1; + return -1; + } else if(((a28==16)&&(((a4==16)&&(((a25==1)&&((input==5)&&((((a7==1)&&(a26==18))&&(a14==20))||(((a14==19)&&(!(a7==1)&&(a26==19)))||((a14==20)&&((a26==17)&&(a7==1)))))))&&(a1==1)))&&!(a3==1)))){ + a3 = 1; + a14 = 18; + a7 = 1; + a28 = 15; + a26 = 17; + return -1; + } else if(((a4==16)&&((((a14==20)&&(!(a3==1)&&((a28==17)&&((((a26==19)&&(a7==1))||((a26==17)&&!(a7==1)))&&(input==6)))))&&(a25==1))&&(a1==1)))){ + a26 = 17; + a3 = 1; + a14 = 18; + a7 = 1; + a28 = 15; + return -1; + } else if(((((a14==19)&&((a1==1)&&((a28==16)&&(((((a7==1)&&(a26==19))||(!(a7==1)&&(a26==17)))&&(input==4))&&(a4==18)))))&&!(a3==1))&&(a25==1))){ + a4 = 16; + a26 = 17; + a7 = 0; + a3 = 1; + a14 = 20; + return -1; + } else if(((a25==1)&&(((!(a3==1)&&((((a28==16)&&((input==6)&&(((a26==17)||(a26==18))||(a26==19))))&&(a1==1))&&(a4==17)))&&(a14==19))&&(a7==1)))){ + a14 = 18; + a7 = 0; + a28 = 17; + a26 = 19; + return 26; + } else if((((a7==1)&&((a25==1)&&(!(a3==1)&&((((((a26==17)||(a26==18))&&(input==5))&&(a28==16))&&(a14==18))&&(a1==1)))))&&(a4==18))){ + a4 = 16; + a28 = 15; + a26 = 17; + a3 = 1; + return -1; + } else if((((a4==17)&&(((((((((a26==19)&&(a7==1))||((a26==17)&&!(a7==1)))||(!(a7==1)&&(a26==18)))&&(input==1))&&(a25==1))&&(a1==1))&&(a14==18))&&!(a3==1)))&&(a28==17))){ + a14 = 19; + a7 = 0; + a28 = 16; + a26 = 18; + return 24; + } else if(((a28==16)&&(!(a7==1)&&((a26==19)&&((a25==1)&&(!(a3==1)&&((a14==19)&&(((input==4)&&(a1==1))&&(a4==17))))))))){ + a26 = 18; + a28 = 17; + return 23; + } else if((((a4==18)&&(((a28==16)&&((a25==1)&&((a14==18)&&((input==4)&&((((a7==1)&&(a26==19))||(!(a7==1)&&(a26==17)))||((a26==18)&&!(a7==1)))))))&&!(a3==1)))&&(a1==1))){ + a7 = 1; + a3 = 1; + a26 = 17; + a4 = 16; + a28 = 15; + return -1; + } else if(((a28==15)&&(!(a3==1)&&((a1==1)&&((a4==18)&&(((((!(a7==1)&&(a26==19))&&(a14==18))||(((a7==1)&&(a26==17))&&(a14==19)))&&(input==4))&&(a25==1))))))){ + a26 = 19; + a14 = 19; + a7 = 0; + return 22; + } else if((((a25==1)&&((a28==16)&&((a4==16)&&((a1==1)&&((input==2)&&(((a14==20)&&((a26==18)&&(a7==1)))||((((a26==19)&&!(a7==1))&&(a14==19))||((a14==20)&&((a26==17)&&(a7==1))))))))))&&!(a3==1))){ + a14 = 18; + a7 = 1; + a28 = 15; + a26 = 17; + a3 = 1; + return -1; + } else if(((a4==18)&&(!(a7==1)&&(((a26==18)&&(((((a3==1)&&(input==2))&&(a28==17))&&(a1==1))&&(a14==19)))&&(a25==1))))){ + a26 = 17; + a4 = 16; + a28 = 15; + a14 = 18; + a7 = 1; + return -1; + } else if((((a14==20)&&(((a3==1)&&(!(a7==1)&&((a25==1)&&(((input==6)&&((a26==18)||(a26==19)))&&(a28==16)))))&&(a4==17)))&&(a1==1))){ + a28 = 15; + a14 = 18; + a26 = 17; + a4 = 16; + a7 = 1; + return -1; + } else if((((a1==1)&&((((a7==1)&&((a14==18)&&((a28==17)&&(((a26==17)||(a26==18))&&(input==6)))))&&(a4==18))&&(a25==1)))&&!(a3==1))){ + a7 = 0; + a4 = 16; + a26 = 19; + a14 = 20; + a3 = 1; + return -1; + } else if((((((a1==1)&&((a4==17)&&((input==6)&&(((!(a7==1)&&(a26==19))&&(a14==19))||(((a26==17)&&(a7==1))&&(a14==20))))))&&(a25==1))&&(a28==15))&&(a3==1))){ + a14 = 19; + a7 = 0; + a26 = 18; + a28 = 16; + return 23; + } else if((((a28==17)&&((((a3==1)&&((input==4)&&(((!(a7==1)&&(a26==19))&&(a14==18))||((a14==19)&&((a26==17)&&(a7==1))))))&&(a4==18))&&(a1==1)))&&(a25==1))){ + a7 = 0; + a14 = 20; + a28 = 16; + a26 = 17; + return -1; + } else if(((a28==17)&&((a1==1)&&((a4==18)&&((a3==1)&&(((a25==1)&&(((input==6)&&!(a7==1))&&(a26==18)))&&(a14==18))))))){ + a4 = 16; + a7 = 1; + a26 = 17; + a28 = 15; + return -1; + } else if(((((a3==1)&&((a14==19)&&((a28==15)&&(((a1==1)&&((input==1)&&((a26==17)||(a26==18))))&&!(a7==1)))))&&(a25==1))&&(a4==18))){ + a14 = 18; + a4 = 16; + a7 = 1; + a26 = 17; + return -1; + } else if(((a1==1)&&(((a25==1)&&(((!(a3==1)&&((input==5)&&((!(a7==1)&&(a26==18))||(((a7==1)&&(a26==19))||(!(a7==1)&&(a26==17))))))&&(a28==16))&&(a4==16)))&&(a14==19)))){ + a14 = 18; + a7 = 1; + a28 = 15; + a26 = 17; + a3 = 1; + return -1; + } else if((((((a25==1)&&(((a26==18)&&((a4==18)&&((input==1)&&(a1==1))))&&(a28==15)))&&!(a3==1))&&!(a7==1))&&(a14==18))){ + a7 = 1; + a26 = 17; + a3 = 1; + a4 = 16; + return -1; + } else if(((a4==17)&&((a28==16)&&(((a14==18)&&((!(a7==1)&&((a25==1)&&(((a26==18)||(a26==19))&&(input==6))))&&!(a3==1)))&&(a1==1))))){ + a28 = 15; + a3 = 1; + a26 = 17; + a4 = 16; + a7 = 1; + return -1; + } else if((((a3==1)&&((a28==16)&&(((a1==1)&&((a14==18)&&(((((a26==18)&&(a7==1))||((a26==19)&&(a7==1)))||(!(a7==1)&&(a26==17)))&&(input==6))))&&(a4==17))))&&(a25==1))){ + a26 = 19; + a4 = 18; + a28 = 15; + a14 = 19; + a7 = 1; + return 23; + } else if((((a25==1)&&((a1==1)&&((a4==17)&&((a3==1)&&((input==4)&&((((!(a7==1)&&(a26==18))&&(a14==18))||((a14==18)&&(!(a7==1)&&(a26==19))))||((a14==19)&&((a7==1)&&(a26==17)))))))))&&(a28==16))){ + a14 = 19; + a28 = 15; + a26 = 17; + a4 = 18; + a7 = 0; + return 23; + } else if(((a14==19)&&((a25==1)&&(((a1==1)&&((((a28==15)&&((input==5)&&((a26==17)||(a26==18))))&&!(a3==1))&&!(a7==1)))&&(a4==16))))){ + a3 = 1; + a14 = 18; + a7 = 1; + a26 = 17; + return -1; + } else if(((a28==16)&&((a14==18)&&((a4==16)&&((!(a3==1)&&((a25==1)&&((input==1)&&(((a7==1)&&(a26==19))||((a26==17)&&!(a7==1))))))&&(a1==1)))))){ + a14 = 20; + a7 = 1; + a28 = 17; + a26 = 17; + return 26; + } else if(((((a26==19)&&((a7==1)&&((a3==1)&&((a25==1)&&((a28==15)&&((a1==1)&&(input==6)))))))&&(a14==20))&&(a4==18))){ + a26 = 17; + a14 = 18; + a4 = 16; + return -1; + } else if(((((a4==17)&&((a14==19)&&((a7==1)&&(!(a3==1)&&((((a26==19)||((a26==17)||(a26==18)))&&(input==2))&&(a1==1))))))&&(a25==1))&&(a28==16))){ + a28 = 17; + a7 = 0; + a26 = 17; + return 22; + } else if(((a4==17)&&(!(a3==1)&&(((a1==1)&&((input==4)&&((((!(a7==1)&&((a26==18)&&(a28==15)))&&(a14==20))||((!(a7==1)&&((a26==19)&&(a28==15)))&&(a14==20)))||(((a7==1)&&((a26==17)&&(a28==16)))&&(a14==18)))))&&(a25==1))))){ + a26 = 17; + a14 = 19; + a28 = 16; + a7 = 0; + return 26; + } else if((((((((((input==3)&&(a26==17))&&(a25==1))&&(a1==1))&&(a14==20))&&!(a7==1))&&(a4==17))&&!(a3==1))&&(a28==15))){ + a7 = 1; + a4 = 16; + a3 = 1; + a14 = 18; + return -1; + } else if(((((a3==1)&&((a28==17)&&((a14==19)&&((a4==17)&&((((a26==17)&&!(a7==1))||(((a26==18)&&(a7==1))||((a26==19)&&(a7==1))))&&(input==6))))))&&(a1==1))&&(a25==1))){ + a28 = 15; + a26 = 17; + a7 = 1; + a4 = 16; + a14 = 18; + return -1; + } else if(((a7==1)&&((a1==1)&&((a28==17)&&((((a4==16)&&(((input==2)&&((a26==18)||(a26==19)))&&(a25==1)))&&!(a3==1))&&(a14==19)))))){ + a7 = 0; + a4 = 17; + a28 = 15; + a26 = 17; + a14 = 20; + return 26; + } else if(((((a7==1)&&((a14==19)&&((a1==1)&&(!(a3==1)&&(((a4==18)&&(input==3))&&(a28==15))))))&&(a25==1))&&(a26==18))){ + a26 = 17; + a28 = 16; + a14 = 20; + a3 = 1; + return 26; + } else if((((a4==17)&&((a28==17)&&((a14==20)&&((!(a7==1)&&((a1==1)&&((((a26==17)||(a26==18))||(a26==19))&&(input==6))))&&!(a3==1)))))&&(a25==1))){ + a14 = 18; + a3 = 1; + a28 = 15; + a4 = 16; + a7 = 1; + a26 = 17; + return -1; + } else if(((((((a1==1)&&(((((a14==18)&&((a26==18)&&!(a7==1)))||((a14==18)&&(!(a7==1)&&(a26==19))))||(((a7==1)&&(a26==17))&&(a14==19)))&&(input==3)))&&(a3==1))&&(a4==17))&&(a28==17))&&(a25==1))){ + a26 = 17; + a4 = 16; + a14 = 18; + a7 = 1; + a28 = 15; + return -1; + } else if((((a3==1)&&((a25==1)&&((a1==1)&&(((a14==18)&&((a4==18)&&((a26==18)&&(input==3))))&&(a28==17)))))&&!(a7==1))){ + a28 = 15; + a4 = 16; + a7 = 1; + a26 = 17; + return -1; + } else if((((a14==19)&&((a4==17)&&((((!(a3==1)&&((input==3)&&!(a7==1)))&&(a1==1))&&(a26==19))&&(a25==1))))&&(a28==15))){ + a26 = 18; + a7 = 1; + a14 = 18; + return 26; + } else if(((a4==17)&&(((a7==1)&&((((a3==1)&&((a25==1)&&((input==4)&&(a14==20))))&&(a28==15))&&(a26==18)))&&(a1==1)))){ + a28 = 16; + a7 = 0; + return 24; + } else if(((a4==18)&&((a3==1)&&(((((input==2)&&((((a26==19)&&!(a7==1))&&(a14==18))||((a14==19)&&((a26==17)&&(a7==1)))))&&(a28==17))&&(a25==1))&&(a1==1))))){ + a7 = 1; + a28 = 16; + a14 = 20; + a26 = 19; + return -1; + } else if(((a25==1)&&((a1==1)&&((((a26==18)&&((((a14==20)&&(input==6))&&(a3==1))&&(a4==17)))&&(a28==17))&&(a7==1))))){ + a4 = 16; + a28 = 15; + a14 = 18; + a26 = 17; + return -1; + } else if(((((a26==19)&&(((((a1==1)&&((input==4)&&(a28==15)))&&!(a7==1))&&(a4==16))&&(a25==1)))&&!(a3==1))&&(a14==19))){ + a26 = 17; + a3 = 1; + a14 = 18; + a7 = 1; + return -1; + } else if(((((input==2)&&((((!(a7==1)&&((a28==17)&&((a26==19)&&((a3==1)&&(a4==18)))))&&(a14==20))||((a14==18)&&((a7==1)&&((a28==15)&&((!(a3==1)&&(a4==16))&&(a26==17))))))||(((a7==1)&&((a28==15)&&((a26==18)&&((a4==16)&&!(a3==1)))))&&(a14==18))))&&(a1==1))&&(a25==1))){ + a28 = 15; + a14 = 18; + a3 = 1; + a7 = 1; + a4 = 16; + a26 = 17; + return -1; + } else if(((a4==18)&&(((a1==1)&&((!(a7==1)&&((a14==19)&&((a25==1)&&((input==2)&&((a26==17)||(a26==18))))))&&(a28==15)))&&(a3==1)))){ + a26 = 18; + a14 = 20; + a28 = 17; + return 24; + } else if(((((a25==1)&&((a4==16)&&(((a14==20)&&((((a7==1)&&(a26==19))||(!(a7==1)&&(a26==17)))&&(input==1)))&&!(a3==1))))&&(a28==17))&&(a1==1))){ + a7 = 1; + a28 = 15; + a14 = 18; + a26 = 17; + a3 = 1; + return -1; + } else if((((a4==18)&&((((a14==18)&&(((((a26==18)||(a26==19))&&(input==6))&&(a28==15))&&(a1==1)))&&(a25==1))&&(a7==1)))&&(a3==1))){ + a4 = 16; + a26 = 17; + return -1; + } else if(((a3==1)&&((a25==1)&&((a28==17)&&((((input==4)&&((((a14==19)&&((a26==18)&&!(a7==1)))||((a14==19)&&(!(a7==1)&&(a26==19))))||(((a7==1)&&(a26==17))&&(a14==20))))&&(a1==1))&&(a4==17)))))){ + a4 = 18; + a28 = 16; + a26 = 19; + a7 = 0; + a14 = 19; + return 23; + } else if(((((((a26==19)&&((a14==19)&&((a4==17)&&((input==6)&&(a25==1)))))&&!(a7==1))&&(a1==1))&&(a28==16))&&!(a3==1))){ + a4 = 16; + a7 = 1; + a28 = 15; + a14 = 18; + a3 = 1; + a26 = 17; + return -1; + } else if(((a26==17)&&((a1==1)&&((((((!(a3==1)&&(input==3))&&(a14==18))&&(a28==17))&&!(a7==1))&&(a25==1))&&(a4==16))))){ + a7 = 1; + a3 = 1; + a28 = 15; + return -1; + } else if(((a4==16)&&(((a26==17)&&((a14==19)&&(((a28==17)&&((!(a7==1)&&(input==4))&&(a1==1)))&&!(a3==1))))&&(a25==1)))){ + a14 = 18; + a7 = 1; + a28 = 15; + a3 = 1; + return -1; + } else if(((a4==17)&&(((((((a1==1)&&((a3==1)&&(input==5)))&&(a14==19))&&(a7==1))&&(a26==18))&&(a25==1))&&(a28==15)))){ + a14 = 20; + a26 = 19; + return 22; + } else if((!(a3==1)&&((a4==18)&&((((a14==18)&&((a28==16)&&((input==1)&&((((a7==1)&&(a26==19))||(!(a7==1)&&(a26==17)))||(!(a7==1)&&(a26==18))))))&&(a25==1))&&(a1==1))))){ + a14 = 19; + a26 = 18; + a7 = 1; + return 22; + } else if((((a7==1)&&((a3==1)&&((a14==20)&&((a25==1)&&((a4==17)&&(((input==6)&&(a26==18))&&(a28==15)))))))&&(a1==1))){ + a26 = 17; + a7 = 0; + a28 = 16; + return 24; + } else if(((a25==1)&&(((a1==1)&&((a28==15)&&((a26==17)&&((a4==18)&&(((a14==20)&&(input==6))&&(a3==1))))))&&!(a7==1)))){ + a4 = 16; + a7 = 1; + a14 = 18; + return -1; + } else if((((a4==18)&&((a3==1)&&((a28==15)&&((((a25==1)&&((a1==1)&&(input==5)))&&(a7==1))&&(a26==17)))))&&(a14==19))){ + a28 = 17; + a7 = 0; + a26 = 18; + return 22; + } else if((((a26==19)&&((a1==1)&&((a14==18)&&(((((input==5)&&(a25==1))&&!(a3==1))&&(a4==16))&&(a7==1)))))&&(a28==17))){ + a3 = 1; + a26 = 17; + a28 = 15; + return -1; + } else if((((a1==1)&&((a4==17)&&((a28==17)&&((a14==20)&&((!(a3==1)&&((((a26==17)||(a26==18))||(a26==19))&&(input==4)))&&(a7==1))))))&&(a25==1))){ + a3 = 1; + a28 = 15; + a14 = 18; + a26 = 17; + a4 = 16; + return -1; + } else if((!(a7==1)&&((!(a3==1)&&((((a28==17)&&((a14==19)&&((a26==18)&&(input==3))))&&(a25==1))&&(a1==1)))&&(a4==16)))){ + a3 = 1; + a7 = 1; + a14 = 18; + a28 = 15; + a26 = 17; + return -1; + } else if((((a4==18)&&((a14==20)&&((a26==18)&&(((a1==1)&&((a25==1)&&((a3==1)&&(input==4))))&&!(a7==1)))))&&(a28==17))){ + a4 = 16; + a14 = 18; + a28 = 15; + a7 = 1; + a26 = 17; + return -1; + } else if((!(a3==1)&&((a4==18)&&(!(a7==1)&&((a25==1)&&((a28==16)&&(((a1==1)&&((input==2)&&((a26==18)||(a26==19))))&&(a14==20)))))))){ + a14 = 18; + a28 = 15; + a4 = 17; + a26 = 18; + return 23; + } else if(((a4==18)&&((a26==17)&&(((a14==19)&&(((a25==1)&&(((a7==1)&&(input==3))&&(a3==1)))&&(a28==15)))&&(a1==1))))){ + a4 = 16; + a14 = 18; + return -1; + } else if(((a25==1)&&(((a4==18)&&((((a3==1)&&((((a26==17)&&!(a7==1))||(((a26==18)&&(a7==1))||((a26==19)&&(a7==1))))&&(input==3)))&&(a28==16))&&(a1==1)))&&(a14==19)))){ + a26 = 17; + a28 = 15; + a14 = 18; + a4 = 16; + a7 = 1; + return -1; + } else if((!(a3==1)&&(!(a7==1)&&((a25==1)&&((a1==1)&&((a28==17)&&((a14==18)&&(((input==2)&&(a26==17))&&(a4==16))))))))){ + a3 = 1; + a28 = 15; + a7 = 1; + return -1; + } else if((((a14==18)&&((((a1==1)&&((a4==17)&&((((a26==19)&&(a7==1))||((a26==17)&&!(a7==1)))&&(input==1))))&&(a28==17))&&(a25==1)))&&(a3==1))){ + a28 = 15; + a7 = 1; + a4 = 16; + a26 = 17; + return -1; + } else if((((a1==1)&&((((((((!(a7==1)&&(a26==19))&&(a14==18))||(((a7==1)&&(a26==17))&&(a14==19)))||((a14==19)&&((a26==18)&&(a7==1))))&&(input==4))&&(a28==17))&&(a25==1))&&(a4==18)))&&!(a3==1))){ + a26 = 18; + a14 = 19; + a7 = 1; + return 24; + } else if(((a1==1)&&(!(a3==1)&&((a4==16)&&(((a14==19)&&(((a28==17)&&(((a26==18)||(a26==19))&&(input==3)))&&(a7==1)))&&(a25==1)))))){ + a14 = 18; + a28 = 15; + a3 = 1; + a26 = 17; + return -1; + } else if(((a25==1)&&((a1==1)&&((((a28==17)&&((input==5)&&((((!(a7==1)&&(a26==18))&&(a14==18))||((a14==18)&&((a26==19)&&!(a7==1))))||(((a7==1)&&(a26==17))&&(a14==19)))))&&(a3==1))&&(a4==17))))){ + a14 = 18; + a28 = 15; + a7 = 1; + a4 = 16; + a26 = 17; + return -1; + } else if(((a25==1)&&((a26==18)&&(((a4==16)&&(((((input==2)&&(a28==16))&&(a1==1))&&(a7==1))&&!(a3==1)))&&(a14==18))))){ + a26 = 17; + a28 = 15; + a3 = 1; + return -1; + } else if(((!(a3==1)&&((((a7==1)&&((((a14==18)&&(input==6))&&(a1==1))&&(a4==16)))&&(a26==19))&&(a28==17)))&&(a25==1))){ + a28 = 15; + a26 = 17; + a3 = 1; + return -1; + } else if(((a25==1)&&(((a4==18)&&((a28==15)&&((a1==1)&&(((a26==18)&&((a3==1)&&(input==6)))&&(a7==1)))))&&(a14==19)))){ + a26 = 17; + a4 = 16; + a14 = 18; + return -1; + } else if(((a14==18)&&((a25==1)&&((a28==16)&&(((((input==3)&&(((a26==18)&&!(a7==1))||(((a7==1)&&(a26==19))||(!(a7==1)&&(a26==17)))))&&(a1==1))&&(a4==18))&&!(a3==1)))))){ + a28 = 15; + a3 = 1; + a26 = 17; + a7 = 1; + a4 = 16; + return -1; + } else if((((a3==1)&&((((((((a26==19)&&(a4==17))&&(a28==17))&&!(a7==1))&&(a14==20))||((a14==18)&&((((a26==17)&&(a4==18))&&(a28==15))&&(a7==1))))&&(input==6))&&(a1==1)))&&(a25==1))){ + a28 = 15; + a14 = 18; + a26 = 17; + a7 = 1; + a4 = 16; + return -1; + } else if(((a14==20)&&((a1==1)&&((((a25==1)&&(((((a7==1)&&(a26==19))||((a26==17)&&!(a7==1)))&&(input==5))&&(a28==17)))&&(a4==16))&&!(a3==1))))){ + a7 = 1; + a14 = 18; + a26 = 17; + a28 = 15; + a3 = 1; + return -1; + } else if(((!(a3==1)&&((a7==1)&&(((((((a26==18)||(a26==19))&&(input==5))&&(a4==17))&&(a14==18))&&(a25==1))&&(a1==1))))&&(a28==15))){ + a28 = 16; + a14 = 20; + a4 = 18; + a3 = 1; + a26 = 17; + return -1; + } else if((((a4==16)&&((!(a3==1)&&((a25==1)&&((((a14==20)&&((a26==18)&&(a7==1)))||((((a26==19)&&!(a7==1))&&(a14==19))||((a14==20)&&((a7==1)&&(a26==17)))))&&(input==1))))&&(a1==1)))&&(a28==16))){ + a26 = 18; + a14 = 18; + a4 = 17; + a7 = 0; + a28 = 15; + return 21; + } else if(((a1==1)&&((((((a28==15)&&((((a7==1)&&(a26==19))||((a26==17)&&!(a7==1)))&&(input==4)))&&(a14==19))&&!(a3==1))&&(a25==1))&&(a4==18)))){ + a7 = 1; + a26 = 18; + a14 = 20; + return 24; + } else if((((!(a3==1)&&((((((((a4==16)&&(a26==18))&&(a28==17))&&!(a7==1))&&(a14==20))||((a14==20)&&((((a26==19)&&(a4==16))&&(a28==17))&&!(a7==1))))||((a14==18)&&((((a26==17)&&(a4==17))&&(a28==15))&&(a7==1))))&&(input==6)))&&(a1==1))&&(a25==1))){ + a26 = 17; + a14 = 18; + a4 = 16; + a7 = 1; + a28 = 15; + a3 = 1; + return -1; + } else if((((a26==18)&&((((a14==19)&&((a25==1)&&((a1==1)&&((a4==17)&&(input==5)))))&&(a28==15))&&!(a3==1)))&&!(a7==1))){ + a3 = 1; + a14 = 18; + a7 = 1; + a26 = 17; + a4 = 16; + return -1; + } else if(((a1==1)&&((a25==1)&&(((a28==17)&&(((a14==18)&&((a7==1)&&((input==2)&&(a26==18))))&&(a4==16)))&&!(a3==1))))){ + return 22; + } else if((((a25==1)&&((a3==1)&&((a4==18)&&((a14==20)&&((((input==5)&&(a1==1))&&(a26==17))&&(a7==1))))))&&(a28==16))){ + a4 = 16; + a14 = 18; + a28 = 15; + return -1; + } else if((((a3==1)&&((a25==1)&&((a7==1)&&((a14==18)&&((a28==17)&&((a4==17)&&((input==1)&&((a26==17)||(a26==18)))))))))&&(a1==1))){ + a28 = 15; + a4 = 16; + a26 = 17; + return -1; + } else if(((a1==1)&&((a25==1)&&(!(a3==1)&&((((a14==18)&&((((a4==17)&&(a26==17))&&(a28==15))&&(a7==1)))||(((!(a7==1)&&(((a26==18)&&(a4==16))&&(a28==17)))&&(a14==20))||((a14==20)&&(!(a7==1)&&(((a4==16)&&(a26==19))&&(a28==17))))))&&(input==3)))))){ + a3 = 1; + a14 = 18; + a7 = 1; + a28 = 15; + a26 = 17; + a4 = 16; + return -1; + } else if(((a28==17)&&((a14==20)&&((a4==16)&&((((a25==1)&&((((a7==1)&&(a26==19))||((a26==17)&&!(a7==1)))&&(input==3)))&&(a1==1))&&!(a3==1)))))){ + a26 = 17; + a7 = 1; + a28 = 15; + a14 = 18; + a3 = 1; + return -1; + } else if((((a4==18)&&((a14==19)&&((a28==17)&&((a25==1)&&(((input==4)&&((((a26==18)&&(a7==1))||((a7==1)&&(a26==19)))||(!(a7==1)&&(a26==17))))&&(a3==1))))))&&(a1==1))){ + a7 = 1; + a14 = 20; + a28 = 16; + a26 = 18; + return -1; + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==18))&&(a28==15))&&(a7==1))&&(a14==20))){ + error_12: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==19))&&(a28==16))&&(a7==1))&&(a14==18))){ + error_19: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==19))&&(a28==16))&&(a7==1))&&(a14==20))){ + error_31: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==18))&&(a28==17))&&!(a7==1))&&(a14==18))){ + error_39: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==19))&&(a28==17))&&!(a7==1))&&(a14==20))){ + error_52: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==18))&&(a28==15))&&(a7==1))&&(a14==19))){ + error_6: exit(0); + } + if(((((((((a3==1)&&(a4==17))&&(a25==1))&&(a1==1))&&(a26==19))&&(a28==15))&&!(a7==1))&&(a14==18))){ + error_58: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==19))&&(a28==17))&&!(a7==1))&&(a14==18))){ + error_40: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==19))&&(a28==15))&&!(a7==1))&&(a14==18))){ + error_4: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==17))&&(a28==17))&&!(a7==1))&&(a14==18))){ + error_38: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==18))&&(a28==17))&&!(a7==1))&&(a14==19))){ + error_45: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==17))&&(a28==15))&&(a7==1))&&(a14==20))){ + error_11: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==17))&&(a28==16))&&!(a7==1))&&(a14==19))){ + error_26: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==17))&&(a28==15))&&(a7==1))&&(a14==18))){ + globalError: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==18))&&(a28==15))&&!(a7==1))&&(a14==19))){ + error_9: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==17))&&(a28==16))&&(a7==1))&&(a14==18))){ + error_17: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==17))&&(a28==16))&&!(a7==1))&&(a14==20))){ + error_32: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==17))&&(a28==17))&&(a7==1))&&(a14==18))){ + error_35: exit(0); + } + if(((((((((a3==1)&&(a4==17))&&(a25==1))&&(a1==1))&&(a26==19))&&(a28==15))&&(a7==1))&&(a14==18))){ + error_55: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==18))&&(a28==17))&&(a7==1))&&(a14==18))){ + error_36: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==17))&&(a28==15))&&!(a7==1))&&(a14==20))){ + error_14: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==18))&&(a28==16))&&(a7==1))&&(a14==18))){ + error_18: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==19))&&(a28==15))&&(a7==1))&&(a14==20))){ + error_13: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==18))&&(a28==15))&&!(a7==1))&&(a14==20))){ + error_15: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==18))&&(a28==16))&&!(a7==1))&&(a14==19))){ + error_27: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==18))&&(a28==16))&&(a7==1))&&(a14==20))){ + error_30: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==17))&&(a28==17))&&!(a7==1))&&(a14==19))){ + error_44: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==17))&&(a28==15))&&(a7==1))&&(a14==19))){ + error_5: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==17))&&(a28==16))&&(a7==1))&&(a14==20))){ + error_29: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==18))&&(a28==15))&&!(a7==1))&&(a14==18))){ + error_3: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==17))&&(a28==17))&&(a7==1))&&(a14==20))){ + error_47: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==18))&&(a28==17))&&!(a7==1))&&(a14==20))){ + error_51: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==19))&&(a28==16))&&!(a7==1))&&(a14==20))){ + error_34: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==19))&&(a28==15))&&(a7==1))&&(a14==19))){ + error_7: exit(0); + } + if(((((((((a3==1)&&(a4==17))&&(a25==1))&&(a1==1))&&(a26==17))&&(a28==15))&&(a7==1))&&(a14==19))){ + error_59: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==19))&&(a28==17))&&(a7==1))&&(a14==20))){ + error_49: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==19))&&(a28==17))&&!(a7==1))&&(a14==19))){ + error_46: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==17))&&(a28==16))&&!(a7==1))&&(a14==18))){ + error_20: exit(0); + } + if(((((((((a3==1)&&(a4==17))&&(a25==1))&&(a1==1))&&(a26==18))&&(a28==15))&&!(a7==1))&&(a14==18))){ + error_57: exit(0); + } + if(((((((((a3==1)&&(a4==17))&&(a25==1))&&(a1==1))&&(a26==17))&&(a28==15))&&(a7==1))&&(a14==18))){ + error_53: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==18))&&(a28==16))&&!(a7==1))&&(a14==18))){ + error_21: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==19))&&(a28==16))&&(a7==1))&&(a14==19))){ + error_25: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==19))&&(a28==17))&&(a7==1))&&(a14==19))){ + error_43: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==19))&&(a28==15))&&!(a7==1))&&(a14==20))){ + error_16: exit(0); + } + if(((((((((a3==1)&&(a4==17))&&(a25==1))&&(a1==1))&&(a26==17))&&(a28==15))&&!(a7==1))&&(a14==18))){ + error_56: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==18))&&(a28==15))&&(a7==1))&&(a14==18))){ + error_0: __VERIFIER_error(); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==17))&&(a28==15))&&!(a7==1))&&(a14==18))){ + error_2: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==18))&&(a28==16))&&(a7==1))&&(a14==19))){ + error_24: exit(0); + } + if(((((((((a3==1)&&(a4==17))&&(a25==1))&&(a1==1))&&(a26==18))&&(a28==15))&&(a7==1))&&(a14==18))){ + error_54: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==17))&&(a28==16))&&(a7==1))&&(a14==19))){ + error_23: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==18))&&(a28==17))&&(a7==1))&&(a14==20))){ + error_48: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==17))&&(a28==15))&&!(a7==1))&&(a14==19))){ + error_8: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==19))&&(a28==16))&&!(a7==1))&&(a14==19))){ + error_28: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==19))&&(a28==15))&&(a7==1))&&(a14==18))){ + error_1: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==19))&&(a28==15))&&!(a7==1))&&(a14==19))){ + error_10: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==17))&&(a28==17))&&(a7==1))&&(a14==19))){ + error_41: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==18))&&(a28==16))&&!(a7==1))&&(a14==20))){ + error_33: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==19))&&(a28==16))&&!(a7==1))&&(a14==18))){ + error_22: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==18))&&(a28==17))&&(a7==1))&&(a14==19))){ + error_42: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==19))&&(a28==17))&&(a7==1))&&(a14==18))){ + error_37: exit(0); + } + if(((((((((a3==1)&&(a4==16))&&(a25==1))&&(a1==1))&&(a26==17))&&(a28==17))&&!(a7==1))&&(a14==20))){ + error_50: exit(0); + } + return -2; + } + +int main() +{ + // default output + int output = -1; + + // main i/o-loop + while(1) + { + // read input + int input; + input = __VERIFIER_nondet_int(); + if ((input != 1) && (input != 2) && (input != 3) && (input != 4) && (input != 5) && (input != 6)) return -2; + + // operate eca engine + output = calculate_output(input); + + } +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem05_label00_false-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem05_label00_false-unreach-call.c new file mode 100644 index 000000000..363141c86 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem05_label00_false-unreach-call.c @@ -0,0 +1,11134 @@ +extern void __VERIFIER_error(void); +extern int __VERIFIER_nondet_int(void); +extern void exit(int); + + // inputs + int d= 4; + int c= 3; + int e= 5; + int a= 1; + int f= 6; + int b= 2; + + int a9 = 18; + int a27 = 1; + int a2 = 10; + int a16 = 1; + int a15 = 1; + int a12 = 4; + int a25 = 1; + int a20 = 5; + + int calculate_output2(int input); + int calculate_output3(int input); + int calculate_output4(int input); + int calculate_output5(int input); + int calculate_output6(int input); + int calculate_output7(int input); + int calculate_output8(int input); + + int calculate_output(int input) { + if(((((((((a12==2)&&(!(a15==1)&&(input==1)))&&(a27==1))&&(a9==17))&&(a20==5))&&!(a25==1))&&(a16==1))&&(a2==12))){ + a15 = 1; + a2 = 10; + a25 = 1; + return -1; + } else if(((((a9==18)&&((((a2==13)&&((a16==1)&&((input==4)&&!(a25==1))))&&(a12==4))&&(a27==1)))&&(a20==7))&&(a15==1))){ + a25 = 1; + a2 = 11; + a12 = 2; + a9 = 16; + a20 = 5; + return -1; + } else if(((((a27==1)&&((((a16==1)&&((a15==1)&&((a9==16)&&(input==6))))&&!(a25==1))&&(a20==6)))&&(a2==11))&&(a12==4))){ + a20 = 5; + a2 = 9; + a25 = 1; + a12 = 2; + return -1; + } else if(((a15==1)&&(((a16==1)&&((input==4)&&(((((a12==2)&&((a9==16)&&(a2==10)))&&(a25==1))&&(a20==7))||(((a20==6)&&(((a12==6)&&((a9==18)&&(a2==13)))&&!(a25==1)))||((((a12==2)&&((a2==9)&&(a9==16)))&&(a25==1))&&(a20==7))))))&&(a27==1)))){ + a2 = 9; + a25 = 1; + a20 = 5; + a12 = 2; + a9 = 16; + return -1; + } else if((((a12==4)&&(((a20==7)&&(((a16==1)&&((a25==1)&&(((a2==10)||(a2==11))&&(input==1))))&&(a27==1)))&&(a15==1)))&&(a9==17))){ + a20 = 6; + a9 = 16; + a2 = 11; + return -1; + } else if((!(a25==1)&&(((((((a16==1)&&((input==5)&&((a2==11)||(a2==12))))&&!(a15==1))&&(a12==3))&&(a20==5))&&(a9==18))&&(a27==1)))){ + if((a9==17)){ + a9 = 16; + a25 = 1; + a2 = 11; + a15 = 1; + }else{ + a25 = 1; + a12 = 5; + a9 = 16; + a2 = 9; + a15 = 1; + } + return -1; + } else if(((a16==1)&&((a15==1)&&((((a20==7)&&((a9==17)&&(((((a12==3)&&(a2==12))||((a2==13)&&(a12==3)))||((a12==4)&&(a2==9)))&&(input==4))))&&(a27==1))&&(a25==1))))){ + a20 = 5; + a2 = 9; + a9 = 16; + a12 = 2; + return -1; + } else if((((((((a12==3)&&(((input==2)&&((a2==12)||(a2==13)))&&(a16==1)))&&(a20==7))&&(a15==1))&&(a9==16))&&(a27==1))&&(a25==1))){ + a9 = 17; + a12 = 2; + a2 = 9; + return 25; + } else if(((((a16==1)&&((!(a25==1)&&((((a9==16)&&(input==1))&&(a12==6))&&(a27==1)))&&!(a15==1)))&&(a20==5))&&(a2==12))){ + if((a2==11)){ + a9 = 17; + a2 = 10; + a15 = 1; + a20 = 7; + }else{ + a25 = 1; + a12 = 5; + } + return -1; + } else if(((a20==6)&&((a9==18)&&(((a15==1)&&(!(a25==1)&&((((input==4)&&((a2==9)||(a2==10)))&&(a12==6))&&(a16==1))))&&(a27==1))))){ + a12 = 2; + a2 = 9; + a25 = 1; + a20 = 5; + a9 = 16; + return -1; + } else if(((a9==18)&&((a27==1)&&(((((a12==5)&&((a20==5)&&((input==1)&&((a2==12)||(a2==13)))))&&(a16==1))&&(a15==1))&&!(a25==1))))){ + a12 = 2; + a2 = 9; + a25 = 1; + a9 = 16; + return -1; + } else if((((a2==10)&&(!(a25==1)&&((((((input==2)&&(a15==1))&&(a9==16))&&(a16==1))&&(a20==6))&&(a12==6))))&&(a27==1))){ + a12 = 2; + a25 = 1; + a20 = 5; + a2 = 9; + return -1; + } else if(((((a2==11)&&((a20==6)&&((((a9==17)&&((input==1)&&!(a25==1)))&&(a15==1))&&(a16==1))))&&(a12==5))&&(a27==1))){ + a25 = 1; + a9 = 16; + a20 = 5; + a12 = 2; + a2 = 9; + return -1; + } else if(((((((((a25==1)&&((input==6)&&(a27==1)))&&!(a15==1))&&(a12==6))&&(a20==5))&&(a9==17))&&(a16==1))&&(a2==11))){ + a9 = 16; + a15 = 1; + a2 = 12; + a12 = 4; + return -1; + } else if(((((a15==1)&&(((a9==18)&&(((((a2==10)&&(a12==5))||(((a12==4)&&(a2==13))||((a12==5)&&(a2==9))))&&(input==2))&&(a27==1)))&&(a16==1)))&&(a20==5))&&(a25==1))){ + a2 = 9; + a9 = 16; + a12 = 3; + a25 = 0; + return 23; + } else if(((a27==1)&&((a15==1)&&(((a9==16)&&(((a20==7)&&(!(a25==1)&&((input==2)&&((a2==13)||((a2==11)||(a2==12))))))&&(a16==1)))&&(a12==6))))){ + a12 = 2; + a20 = 5; + a2 = 9; + a25 = 1; + return -1; + } else if(((a20==7)&&((((a27==1)&&(((a9==17)&&(((((a12==2)&&(a2==13))||((a2==9)&&(a12==3)))||((a2==10)&&(a12==3)))&&(input==2)))&&(a15==1)))&&(a16==1))&&(a25==1)))){ + if((a9==16)){ + a2 = 9; + a12 = 4; + a9 = 18; + }else{ + a2 = 13; + a25 = 0; + a12 = 3; + } + return 23; + } else if((((a16==1)&&((a27==1)&&(((a20==7)&&(((((a2==10)||(a2==11))&&(input==6))&&(a12==5))&&(a9==17)))&&(a25==1))))&&(a15==1))){ + a2 = 9; + a9 = 16; + a12 = 2; + a20 = 5; + return -1; + } else if(((a9==16)&&(((((((a20==6)&&((input==2)&&((a2==9)||(a2==10))))&&(a12==3))&&(a15==1))&&(a16==1))&&(a27==1))&&(a25==1)))){ + a2 = 9; + a20 = 7; + a12 = 4; + a9 = 18; + return 23; + } else if(((a25==1)&&((a16==1)&&((((a15==1)&&((((a12==6)&&((a9==17)&&(a2==13)))||((a12==2)&&((a2==9)&&(a9==18))))&&(input==5)))&&(a27==1))&&(a20==7))))){ + a20 = 6; + a2 = 9; + a9 = 18; + a12 = 2; + return -1; + } else if((((((((a27==1)&&(((input==2)&&((a2==9)||(a2==10)))&&(a9==17)))&&(a16==1))&&(a15==1))&&!(a25==1))&&(a12==6))&&(a20==6))){ + a20 = 5; + a9 = 16; + a25 = 1; + a2 = 9; + a12 = 2; + return -1; + } else if((((!(a25==1)&&(((a20==5)&&((a2==12)&&((a12==2)&&(!(a15==1)&&(input==4)))))&&(a9==17)))&&(a27==1))&&(a16==1))){ + if((a27==1)){ + a9 = 16; + a15 = 1; + a20 = 6; + a12 = 4; + a25 = 1; + a2 = 13; + }else{ + a2 = 13; + a15 = 1; + a25 = 1; + a12 = 4; + } + return 25; + } else if(((a25==1)&&((a20==7)&&(((a9==16)&&(((((input==1)&&(a16==1))&&(a27==1))&&(a15==1))&&(a2==12)))&&(a12==5))))){ + a20 = 5; + a2 = 9; + a12 = 2; + return -1; + } else if((((a16==1)&&(!(a25==1)&&((a9==18)&&((a27==1)&&((a12==5)&&((((a2==12)||((a2==10)||(a2==11)))&&(input==1))&&(a15==1)))))))&&(a20==6))){ + a9 = 16; + a2 = 9; + a12 = 2; + a20 = 5; + a25 = 1; + return -1; + } else if(((((a16==1)&&((a25==1)&&(!(a15==1)&&((((a12==2)&&((a2==10)&&(a9==17)))||((((a9==16)&&(a2==13))&&(a12==6))||((a12==2)&&((a9==17)&&(a2==9)))))&&(input==4)))))&&(a27==1))&&(a20==5))){ + a15 = 1; + a12 = 4; + a25 = 0; + a20 = 7; + a2 = 12; + a9 = 18; + return -1; + } else if(((a20==5)&&((a16==1)&&(((a9==16)&&((a12==2)&&(!(a25==1)&&(((((a2==9)||(a2==10))||(a2==11))&&(input==3))&&(a27==1)))))&&(a15==1))))){ + a25 = 1; + a2 = 9; + return -1; + } else if((((a20==7)&&((a27==1)&&(((!(a25==1)&&((a16==1)&&((input==2)&&((a2==11)||(a2==12)))))&&(a12==6))&&(a15==1))))&&(a9==18))){ + a2 = 9; + a12 = 4; + a25 = 1; + a20 = 6; + return 21; + } else if(((a27==1)&&((a12==2)&&((a15==1)&&(((((a2==9)&&((input==5)&&(a9==17)))&&(a20==7))&&(a16==1))&&(a25==1)))))){ + a20 = 6; + a9 = 18; + a12 = 4; + a2 = 10; + return 21; + } else if(((a12==3)&&((((a27==1)&&((a20==7)&&((((((a2==10)||(a2==11))||(a2==12))&&(input==4))&&(a16==1))&&(a15==1))))&&(a9==18))&&(a25==1)))){ + if((a20==7)){ + a25 = 0; + a9 = 16; + a2 = 13; + a12 = 4; + }else{ + a20 = 6; + a9 = 16; + a2 = 12; + } + return -1; + } else if(((a20==6)&&((a25==1)&&((a16==1)&&((a15==1)&&((((input==4)&&((((a12==3)&&(a2==13))||((a12==4)&&(a2==9)))||((a12==4)&&(a2==10))))&&(a27==1))&&(a9==18))))))){ + a20 = 5; + a12 = 2; + a2 = 9; + a9 = 16; + return -1; + } else if(((a16==1)&&(((a20==6)&&((((((((a2==10)||(a2==11))||(a2==12))&&(input==6))&&(a12==3))&&(a25==1))&&(a27==1))&&(a9==17)))&&(a15==1)))){ + a2 = 9; + a12 = 2; + a20 = 5; + a9 = 16; + return -1; + } else if(((a16==1)&&((!(a25==1)&&(((a9==16)&&(((((a12==3)&&(a2==10))||(((a12==2)&&(a2==13))||((a12==3)&&(a2==9))))&&(input==5))&&(a20==6)))&&(a15==1)))&&(a27==1)))){ + a20 = 5; + a2 = 9; + a25 = 1; + a12 = 2; + return -1; + } else if(((((a12==6)&&(((((a15==1)&&((input==1)&&((a2==10)||(a2==11))))&&(a27==1))&&(a25==1))&&(a9==18)))&&(a16==1))&&(a20==5))){ + a12 = 4; + a25 = 0; + a2 = 11; + a9 = 17; + return 23; + } else if(((a20==5)&&((a16==1)&&(!(a15==1)&&(((a9==18)&&(!(a25==1)&&((((a2==10)&&(a12==5))||(((a12==4)&&(a2==13))||((a12==5)&&(a2==9))))&&(input==1))))&&(a27==1)))))){ + a9 = 17; + a2 = 11; + a25 = 1; + a15 = 1; + a12 = 5; + return -1; + } else if((((((a27==1)&&(((a20==5)&&(((input==2)&&((a2==10)||(a2==11)))&&(a9==18)))&&(a16==1)))&&!(a15==1))&&(a12==6))&&!(a25==1))){ + a9 = 16; + a2 = 9; + a25 = 1; + a15 = 1; + a12 = 3; + return -1; + } else if((((((a20==5)&&((a9==17)&&(((a12==2)&&(((a2==10)||(a2==11))&&(input==3)))&&(a16==1))))&&(a27==1))&&!(a25==1))&&!(a15==1))){ + if((a27==1)){ + a9 = 18; + a20 = 7; + a2 = 9; + a15 = 1; + a12 = 5; + }else{ + a2 = 11; + a15 = 1; + a25 = 1; + a9 = 16; + } + return -1; + } else if(((a27==1)&&((a20==5)&&((((a12==3)&&((((input==5)&&((a2==9)||(a2==10)))&&(a9==16))&&!(a15==1)))&&(a16==1))&&!(a25==1))))){ + a15 = 1; + a12 = 5; + a2 = 10; + a9 = 17; + a25 = 1; + return -1; + } else if((((a12==3)&&((a20==6)&&((a15==1)&&(((a27==1)&&((a25==1)&&(((a2==11)||(a2==12))&&(input==6))))&&(a16==1)))))&&(a9==16))){ + a12 = 2; + a9 = 17; + a2 = 13; + return 26; + } else if(((a20==6)&&(((a16==1)&&((a15==1)&&((a25==1)&&((((((a2==9)||(a2==10))||(a2==11))&&(input==1))&&(a9==18))&&(a12==2)))))&&(a27==1)))){ + a2 = 12; + a12 = 4; + a9 = 16; + return -1; + } else if((((a16==1)&&(!(a25==1)&&((a20==6)&&(((a27==1)&&(((((a12==4)&&(a2==12))||((a2==13)&&(a12==4)))||((a12==5)&&(a2==9)))&&(input==4)))&&(a9==18)))))&&(a15==1))){ + a12 = 2; + a20 = 5; + a25 = 1; + a2 = 9; + a9 = 16; + return -1; + } else if(((a27==1)&&(!(a25==1)&&(((a20==5)&&(((a12==5)&&(((input==3)&&(a15==1))&&(a16==1)))&&(a9==17)))&&(a2==12))))){ + a9 = 16; + a20 = 6; + a12 = 4; + a2 = 10; + return 23; + } else if((((((a12==5)&&((a15==1)&&((a20==5)&&((a16==1)&&((input==2)&&((a2==9)||(a2==10)))))))&&(a27==1))&&!(a25==1))&&(a9==17))){ + a9 = 16; + a12 = 2; + a25 = 1; + a2 = 9; + return -1; + } else if(((!(a15==1)&&(((a20==5)&&((a25==1)&&(((a12==2)&&((input==5)&&((a2==12)||(a2==13))))&&(a9==18))))&&(a16==1)))&&(a27==1))){ + a9 = 17; + a15 = 1; + a2 = 11; + a12 = 6; + return -1; + } else if((((a15==1)&&((a27==1)&&(((a9==16)&&((a20==7)&&(((((a12==4)&&(a2==13))||((a12==5)&&(a2==9)))||((a2==10)&&(a12==5)))&&(input==4))))&&(a16==1))))&&(a25==1))){ + a2 = 11; + a12 = 2; + a20 = 5; + return -1; + } else if(((((a25==1)&&((a2==11)&&((a16==1)&&(!(a15==1)&&((a9==16)&&((input==4)&&(a27==1)))))))&&(a12==5))&&(a20==5))){ + a2 = 10; + a15 = 1; + a20 = 7; + a9 = 17; + a12 = 4; + return -1; + } else if((((a20==5)&&((a9==17)&&((((((input==5)&&(a27==1))&&(a16==1))&&(a12==4))&&(a2==10))&&!(a15==1))))&&!(a25==1))){ + if((a15==1)){ + a15 = 1; + a12 = 2; + a25 = 1; + a2 = 9; + }else{ + a9 = 18; + a12 = 6; + } + return 26; + } else if((((!(a15==1)&&((a27==1)&&(((a16==1)&&((a12==4)&&(((a2==10)||(a2==11))&&(input==5))))&&(a9==16))))&&(a25==1))&&(a20==5))){ + a15 = 1; + a2 = 9; + a12 = 2; + return -1; + } else if((((a12==3)&&((((a25==1)&&((((input==4)&&(((a2==9)||(a2==10))||(a2==11)))&&(a9==17))&&(a27==1)))&&(a20==5))&&!(a15==1)))&&(a16==1))){ + a9 = 16; + a2 = 13; + a25 = 0; + a12 = 5; + return -1; + } else if((((a20==6)&&((a12==6)&&(((((a25==1)&&(((a2==12)||(a2==13))&&(input==3)))&&(a9==16))&&(a15==1))&&(a27==1))))&&(a16==1))){ + a2 = 12; + a9 = 18; + a12 = 5; + return 21; + } else if((((a20==5)&&((((((a16==1)&&((input==5)&&(((a2==10)||(a2==11))||(a2==12))))&&(a15==1))&&!(a25==1))&&(a27==1))&&(a9==18)))&&(a12==2))){ + a25 = 1; + a2 = 9; + a9 = 16; + return -1; + } else if((((a15==1)&&((((a9==16)&&((a2==13)&&((a12==2)&&((a16==1)&&(input==3)))))&&!(a25==1))&&(a27==1)))&&(a20==7))){ + a25 = 1; + a20 = 5; + a2 = 9; + return -1; + } else if((((a20==7)&&(((a16==1)&&(((((input==4)&&((a2==11)||((a2==9)||(a2==10))))&&(a12==3))&&(a27==1))&&(a9==16)))&&!(a25==1)))&&(a15==1))){ + a12 = 2; + a25 = 1; + a20 = 5; + a2 = 9; + return -1; + } else if(((a20==6)&&((a16==1)&&((((a15==1)&&(((((a2==13)&&(a12==2))||((a2==9)&&(a12==3)))&&(input==6))&&(a25==1)))&&(a27==1))&&(a9==17))))){ + a9 = 16; + a12 = 4; + a2 = 11; + return -1; + } else if(((a16==1)&&((a9==18)&&(((((a15==1)&&(!(a25==1)&&(((a2==11)||(a2==12))&&(input==1))))&&(a27==1))&&(a20==7))&&(a12==6))))){ + a2 = 9; + a25 = 1; + a12 = 2; + a20 = 5; + a9 = 16; + return -1; + } else if((((a15==1)&&((a27==1)&&((input==5)&&((((a20==6)&&((((a2==13)&&(a9==18))&&(a12==6))&&!(a25==1)))||((a20==7)&&((((a9==16)&&(a2==9))&&(a12==2))&&(a25==1))))||(((a25==1)&&(((a2==10)&&(a9==16))&&(a12==2)))&&(a20==7))))))&&(a16==1))){ + a25 = 1; + a12 = 2; + a20 = 5; + a9 = 16; + a2 = 9; + return -1; + } else if((!(a25==1)&&(((((a27==1)&&((a20==6)&&((((a2==9)||(a2==10))&&(input==1))&&(a15==1))))&&(a12==4))&&(a16==1))&&(a9==17)))){ + a2 = 9; + a9 = 16; + a20 = 5; + a25 = 1; + a12 = 2; + return -1; + } else if((((a27==1)&&(((a12==5)&&((a9==16)&&((!(a15==1)&&((a16==1)&&(input==6)))&&(a2==13))))&&(a20==5)))&&(a25==1))){ + if((a2==10)){ + a25 = 0; + a15 = 1; + a20 = 7; + a9 = 18; + }else{ + a2 = 10; + a20 = 6; + a12 = 4; + a15 = 1; + a25 = 0; + } + return 24; + } else if((((a12==3)&&((a16==1)&&(!(a25==1)&&(((a20==5)&&((a9==18)&&(((a2==9)||(a2==10))&&(input==1))))&&!(a15==1)))))&&(a27==1))){ + a15 = 1; + a12 = 5; + a9 = 16; + a20 = 7; + a2 = 11; + a25 = 1; + return -1; + } else if(((a12==4)&&((!(a25==1)&&((a20==7)&&((a9==17)&&((((input==1)&&((a2==11)||(a2==12)))&&(a27==1))&&(a16==1)))))&&(a15==1)))){ + a20 = 6; + a2 = 13; + a9 = 16; + a25 = 1; + return -1; + } else if((((a16==1)&&((((!(a15==1)&&((((a2==12)||(a2==13))&&(input==1))&&(a25==1)))&&(a27==1))&&(a9==18))&&(a12==5)))&&(a20==5))){ + a2 = 10; + a15 = 1; + a9 = 16; + a12 = 3; + return 21; + } else if((((a12==4)&&((a2==13)&&((a27==1)&&((!(a25==1)&&(((input==5)&&(a16==1))&&(a20==5)))&&(a15==1)))))&&(a9==18))){ + a2 = 9; + a9 = 16; + a12 = 2; + a25 = 1; + return -1; + } else if(((a2==9)&&((a20==5)&&(((a9==17)&&(!(a15==1)&&((((input==6)&&(a12==4))&&!(a25==1))&&(a16==1))))&&(a27==1))))){ + if((a2==11)){ + a12 = 6; + a2 = 13; + a25 = 1; + a15 = 1; + a9 = 16; + }else{ + a15 = 1; + a2 = 13; + a25 = 1; + a9 = 16; + } + return 23; + } else if(((a15==1)&&((((((a20==6)&&((a16==1)&&((input==2)&&(a12==3))))&&(a9==18))&&(a25==1))&&(a27==1))&&(a2==12)))){ + a2 = 9; + a12 = 2; + a9 = 16; + a20 = 5; + return -1; + } else if((((a2==11)&&(((((((a9==18)&&(input==3))&&!(a25==1))&&(a15==1))&&(a16==1))&&(a27==1))&&(a20==6)))&&(a12==4))){ + a2 = 9; + a20 = 5; + a12 = 2; + a9 = 16; + a25 = 1; + return -1; + } else if(((a12==4)&&(!(a25==1)&&((((((a2==12)&&((input==6)&&(a20==6)))&&(a15==1))&&(a9==16))&&(a16==1))&&(a27==1))))){ + a12 = 2; + a2 = 9; + a20 = 5; + a25 = 1; + return -1; + } else if(((((a25==1)&&((a16==1)&&((a15==1)&&(((a20==7)&&((input==2)&&(a12==6)))&&(a2==11)))))&&(a27==1))&&(a9==18))){ + a20 = 5; + a12 = 2; + a2 = 9; + a9 = 16; + return -1; + } else if(((a27==1)&&(!(a25==1)&&(((a16==1)&&(((a9==17)&&((input==4)&&((((a2==13)&&(a12==3))||((a12==4)&&(a2==9)))||((a2==10)&&(a12==4)))))&&(a20==5)))&&(a15==1))))){ + a9 = 18; + a2 = 11; + a25 = 1; + a12 = 4; + a20 = 6; + return 26; + } else if((((a25==1)&&((a20==6)&&((a15==1)&&((((input==6)&&(((a12==4)&&(a2==13))||((a2==9)&&(a12==5))))&&(a9==17))&&(a27==1)))))&&(a16==1))){ + a20 = 5; + a2 = 9; + a12 = 2; + a9 = 16; + return -1; + } else if(((a25==1)&&((a15==1)&&((a16==1)&&((a12==5)&&(((a20==7)&&((a27==1)&&(((a2==10)||(a2==11))&&(input==3))))&&(a9==18))))))){ + a12 = 2; + a20 = 5; + a9 = 16; + a2 = 9; + return -1; + } else if((!(a15==1)&&((a16==1)&&(((a20==5)&&(((input==4)&&(((((a2==12)&&(a9==17))&&(a12==6))||(((a9==17)&&(a2==13))&&(a12==6)))||(((a2==9)&&(a9==18))&&(a12==2))))&&(a25==1)))&&(a27==1))))){ + a15 = 1; + a2 = 12; + a12 = 6; + a9 = 16; + return -1; + } else if((((((a27==1)&&(((((input==6)&&((a2==10)||(a2==11)))&&(a16==1))&&!(a25==1))&&(a9==18)))&&(a12==5))&&(a15==1))&&(a20==7))){ + a12 = 2; + a20 = 5; + a25 = 1; + a2 = 9; + a9 = 16; + return -1; + } else if(((a2==9)&&((a12==4)&&((a20==7)&&((a25==1)&&(((((input==1)&&(a15==1))&&(a9==16))&&(a27==1))&&(a16==1))))))){ + a12 = 2; + a20 = 5; + return -1; + } else if((((a27==1)&&((a20==7)&&(!(a25==1)&&((((a16==1)&&((((a2==10)||(a2==11))||(a2==12))&&(input==5)))&&(a15==1))&&(a9==16)))))&&(a12==5))){ + a12 = 2; + a20 = 5; + a25 = 1; + a2 = 9; + return -1; + } else if(((a16==1)&&((a27==1)&&((a20==6)&&((a9==16)&&(((((input==3)&&(a15==1))&&!(a25==1))&&(a12==4))&&(a2==10))))))){ + a20 = 5; + a25 = 1; + a2 = 9; + a12 = 2; + return -1; + } else if((((a12==3)&&((((((((a2==10)||(a2==11))&&(input==4))&&(a20==7))&&(a9==16))&&(a16==1))&&(a15==1))&&(a27==1)))&&(a25==1))){ + a20 = 5; + a2 = 9; + a12 = 2; + return -1; + } else if(((a9==18)&&(!(a25==1)&&((((a12==3)&&((((input==6)&&((a2==9)||(a2==10)))&&(a16==1))&&(a20==5)))&&!(a15==1))&&(a27==1))))){ + if((a27==1)){ + a2 = 12; + a25 = 1; + a20 = 6; + a15 = 1; + a12 = 6; + }else{ + a12 = 6; + a9 = 16; + a2 = 11; + a25 = 1; + } + return -1; + } else if(((((a20==5)&&((a9==18)&&((a27==1)&&(((input==6)&&((((a12==4)&&(a2==13))||((a12==5)&&(a2==9)))||((a12==5)&&(a2==10))))&&(a16==1)))))&&(a25==1))&&(a15==1))){ + a9 = 16; + a12 = 2; + a2 = 9; + return -1; + } else if((((((a15==1)&&((a16==1)&&((a20==7)&&((a25==1)&&(((a2==12)||(a2==13))&&(input==3))))))&&(a9==18))&&(a27==1))&&(a12==6))){ + a20 = 5; + a12 = 2; + a9 = 16; + a2 = 9; + return -1; + } else if(((a20==6)&&((a16==1)&&(!(a25==1)&&((((a2==11)&&((a9==17)&&((input==6)&&(a12==5))))&&(a15==1))&&(a27==1)))))){ + a9 = 16; + a2 = 9; + a20 = 5; + a25 = 1; + a12 = 2; + return -1; + } else if((((a20==7)&&((a16==1)&&((a27==1)&&(!(a25==1)&&((a15==1)&&((input==6)&&(((a12==5)&&(a2==10))||(((a2==13)&&(a12==4))||((a2==9)&&(a12==5))))))))))&&(a9==17))){ + a25 = 1; + a2 = 12; + a12 = 4; + a20 = 6; + return -1; + } else if(((a12==2)&&(((a9==18)&&((((((input==1)&&(((a2==10)||(a2==11))||(a2==12)))&&(a16==1))&&!(a25==1))&&(a27==1))&&(a15==1)))&&(a20==5)))){ + a9 = 16; + a2 = 9; + a25 = 1; + return -1; + } else if(((((a9==17)&&((a25==1)&&((a15==1)&&((a12==5)&&((((a2==10)||(a2==11))&&(input==5))&&(a16==1))))))&&(a27==1))&&(a20==6))){ + a2 = 13; + a9 = 16; + a12 = 4; + return -1; + } else if((((!(a15==1)&&((a20==5)&&(!(a25==1)&&(((((a2==13)&&(a9==17))&&(a12==6))||((a12==2)&&((a9==18)&&(a2==9))))&&(input==3)))))&&(a16==1))&&(a27==1))){ + a12 = 4; + a15 = 1; + a25 = 1; + a2 = 13; + a9 = 16; + return -1; + } else if(((a27==1)&&((a20==7)&&(((a15==1)&&(((a25==1)&&((((a2==10)&&(a12==6))||(((a12==5)&&(a2==13))||((a2==9)&&(a12==6))))&&(input==3)))&&(a16==1)))&&(a9==18))))){ + a2 = 9; + a12 = 2; + a20 = 5; + a9 = 16; + return -1; + } else if(((a15==1)&&((a25==1)&&(((a9==17)&&((a12==3)&&((a16==1)&&((a27==1)&&((input==3)&&((a2==12)||((a2==10)||(a2==11))))))))&&(a20==6))))){ + a9 = 16; + a20 = 5; + a12 = 2; + a2 = 9; + return -1; + } else if(((((a27==1)&&(((((a9==18)&&(((a2==13)||((a2==11)||(a2==12)))&&(input==2)))&&(a20==6))&&(a12==2))&&!(a25==1)))&&(a16==1))&&(a15==1))){ + a2 = 10; + a12 = 5; + a9 = 16; + return 26; + } else if(((a20==6)&&((a25==1)&&((a2==9)&&((a16==1)&&(((a12==2)&&(((input==5)&&(a15==1))&&(a27==1)))&&(a9==17))))))){ + a9 = 16; + a20 = 5; + return -1; + } else if(((a20==5)&&(((a12==3)&&(!(a15==1)&&((a27==1)&&((a16==1)&&((a9==16)&&((input==6)&&(((a2==11)||(a2==12))||(a2==13))))))))&&!(a25==1)))){ + if((a9==16)){ + a9 = 18; + a25 = 1; + a15 = 1; + a2 = 10; + a12 = 2; + }else{ + a9 = 17; + a25 = 1; + a2 = 12; + a12 = 2; + } + return -1; + } else if(((a27==1)&&((((((a15==1)&&(((input==3)&&(((a2==11)||(a2==12))||(a2==13)))&&(a20==6)))&&(a16==1))&&(a9==16))&&(a25==1))&&(a12==4)))){ + a2 = 10; + return -1; + } else if(((a15==1)&&((a12==2)&&(((a27==1)&&(!(a25==1)&&((a2==9)&&(((a20==7)&&(input==6))&&(a9==16)))))&&(a16==1))))){ + a12 = 4; + a25 = 1; + a2 = 13; + a20 = 6; + return -1; + } else if(((a2==11)&&((((((a25==1)&&((a9==17)&&((input==2)&&(a16==1))))&&(a20==7))&&(a27==1))&&(a15==1))&&(a12==3)))){ + a20 = 5; + a2 = 9; + a12 = 2; + a9 = 16; + return -1; + } else if((((!(a25==1)&&((a15==1)&&((a16==1)&&(((((a2==9)||(a2==10))&&(input==5))&&(a12==2))&&(a27==1)))))&&(a20==6))&&(a9==17))){ + a25 = 1; + a2 = 9; + a20 = 5; + a9 = 16; + return -1; + } else if((((a16==1)&&((((a2==10)&&((a12==5)&&((a27==1)&&((input==4)&&(a9==16)))))&&!(a15==1))&&(a20==5)))&&(a25==1))){ + if((a20==5)){ + a15 = 1; + a25 = 0; + a9 = 18; + a12 = 3; + }else{ + a12 = 2; + a20 = 7; + a25 = 0; + a2 = 11; + a9 = 17; + a15 = 1; + } + return -1; + } else if(((a20==5)&&(((a16==1)&&((a9==17)&&((a15==1)&&((a12==6)&&((((a2==11)||(a2==12))&&(input==3))&&!(a25==1))))))&&(a27==1)))){ + a2 = 9; + a9 = 16; + a25 = 1; + a12 = 2; + return -1; + } else if((!(a15==1)&&((((a12==4)&&(((a16==1)&&(((a20==5)&&(input==6))&&!(a25==1)))&&(a9==16)))&&(a27==1))&&(a2==9)))){ + a15 = 1; + a20 = 6; + a12 = 3; + return -1; + } else if((((((a9==16)&&(((a16==1)&&((a12==5)&&((input==5)&&(a20==5))))&&(a25==1)))&&(a27==1))&&(a2==11))&&!(a15==1))){ + a2 = 9; + a15 = 1; + a12 = 6; + a9 = 17; + return 26; + } else if(((((((a15==1)&&((a20==7)&&((a9==17)&&((input==2)&&((a2==9)||(a2==10))))))&&(a12==6))&&!(a25==1))&&(a27==1))&&(a16==1))){ + a25 = 1; + a2 = 9; + a12 = 2; + a9 = 16; + a20 = 5; + return -1; + } else if((((a12==5)&&((((((a20==7)&&(((a2==12)||(a2==13))&&(input==6)))&&(a9==17))&&(a27==1))&&(a16==1))&&(a15==1)))&&(a25==1))){ + if((a27==1)){ + a2 = 11; + a9 = 16; + a20 = 5; + a15 = 0; + a12 = 4; + }else{ + a20 = 6; + a2 = 13; + a9 = 16; + } + return -1; + } else if(((((a20==7)&&((a9==16)&&((a16==1)&&(((input==5)&&(((a2==9)&&(a12==4))||(((a12==3)&&(a2==12))||((a2==13)&&(a12==3)))))&&(a27==1)))))&&!(a25==1))&&(a15==1))){ + a2 = 9; + a20 = 5; + a12 = 2; + a25 = 1; + return -1; + } else if(((a15==1)&&((((a12==3)&&(((a9==17)&&((a20==7)&&((a2==11)&&(input==4))))&&(a25==1)))&&(a16==1))&&(a27==1)))){ + if((a2==12)){ + a12 = 5; + a2 = 13; + }else{ + a9 = 16; + a12 = 6; + a2 = 10; + a20 = 6; + } + return -1; + } else if(((a20==6)&&(((a16==1)&&(((((a27==1)&&((input==4)&&((a2==11)||(a2==12))))&&(a15==1))&&(a25==1))&&(a9==17)))&&(a12==6)))){ + a2 = 9; + a9 = 16; + a20 = 5; + a12 = 2; + return -1; + } else if((((a12==5)&&(((a16==1)&&((a27==1)&&((a20==5)&&(((input==6)&&(a9==17))&&(a2==9)))))&&!(a15==1)))&&!(a25==1))){ + if((a2==12)){ + a9 = 16; + a15 = 1; + a12 = 3; + a25 = 1; + }else{ + a2 = 11; + a12 = 2; + a20 = 6; + a15 = 1; + } + return -1; + } else if(((a15==1)&&((((((input==1)&&(((a12==6)&&((a2==13)&&(a9==17)))||((a12==2)&&((a2==9)&&(a9==18)))))&&(a27==1))&&!(a25==1))&&(a20==5))&&(a16==1)))){ + a2 = 11; + a12 = 2; + a9 = 17; + a20 = 6; + return 21; + } else if((((a16==1)&&((((a15==1)&&((((input==3)&&((a2==11)||(a2==12)))&&(a25==1))&&(a20==6)))&&(a9==17))&&(a12==4)))&&(a27==1))){ + a2 = 12; + return 25; + } else if((!(a15==1)&&((((a20==5)&&((a9==18)&&((a25==1)&&(((input==3)&&((a2==13)||((a2==11)||(a2==12))))&&(a12==6)))))&&(a27==1))&&(a16==1)))){ + a15 = 1; + a12 = 5; + a2 = 12; + a9 = 17; + a20 = 6; + return -1; + } else if(((a25==1)&&((a12==4)&&((a20==5)&&((a9==18)&&((a15==1)&&((a16==1)&&(((input==3)&&(((a2==10)||(a2==11))||(a2==12)))&&(a27==1))))))))){ + a12 = 6; + a2 = 11; + return 23; + } else if(((a27==1)&&((a20==5)&&(((a15==1)&&((((input==2)&&((((a12==5)&&(a2==13))||((a12==6)&&(a2==9)))||((a12==6)&&(a2==10))))&&!(a25==1))&&(a16==1)))&&(a9==16))))){ + a25 = 1; + a12 = 3; + a20 = 7; + a9 = 18; + a2 = 13; + return 25; + } else if(((a16==1)&&(!(a25==1)&&(((a20==6)&&(((input==1)&&(((a12==6)&&((a2==13)&&(a9==17)))||((a12==2)&&((a9==18)&&(a2==9)))))&&(a27==1)))&&(a15==1))))){ + a2 = 9; + a25 = 1; + a12 = 2; + a9 = 16; + a20 = 5; + return -1; + } else if(((a16==1)&&((a2==11)&&((a15==1)&&((a12==4)&&(((a27==1)&&(((input==2)&&(a20==6))&&!(a25==1)))&&(a9==16))))))){ + a2 = 9; + a20 = 5; + a12 = 2; + a25 = 1; + return -1; + } else if(((a12==3)&&(((a15==1)&&((a27==1)&&((!(a25==1)&&((a16==1)&&(((a2==12)||(a2==13))&&(input==3))))&&(a20==6))))&&(a9==18)))){ + a9 = 16; + a12 = 2; + a25 = 1; + a20 = 5; + a2 = 9; + return -1; + } else if(((a9==18)&&((((((a12==5)&&((((a2==10)||(a2==11))&&(input==6))&&(a25==1)))&&!(a15==1))&&(a16==1))&&(a27==1))&&(a20==5)))){ + a25 = 0; + a2 = 12; + a12 = 4; + a15 = 1; + return -1; + } else if(((a9==18)&&(((a12==6)&&(((a2==11)&&((a20==7)&&((a25==1)&&((a27==1)&&(input==1)))))&&(a16==1)))&&(a15==1)))){ + a20 = 5; + a12 = 2; + a9 = 16; + a2 = 9; + return -1; + } else if(((a27==1)&&(((((((((a12==5)&&(a2==13))||((a12==6)&&(a2==9)))&&(input==5))&&!(a15==1))&&(a20==5))&&(a9==18))&&(a16==1))&&!(a25==1)))){ + a20 = 6; + a15 = 1; + a12 = 6; + a2 = 12; + return -1; + } else if((((((a9==18)&&(((((a20==5)&&(input==4))&&(a12==3))&&!(a15==1))&&(a25==1)))&&(a27==1))&&(a16==1))&&(a2==13))){ + a2 = 11; + a25 = 0; + a9 = 16; + return -1; + } else if((((a20==5)&&((a16==1)&&((a9==16)&&((((input==1)&&((((a12==4)&&(a2==13))||((a12==5)&&(a2==9)))||((a12==5)&&(a2==10))))&&(a27==1))&&!(a25==1)))))&&!(a15==1))){ + a12 = 2; + a2 = 9; + a9 = 18; + return -1; + } else if(((a9==17)&&(((a20==7)&&((a25==1)&&((((input==6)&&((((a2==13)&&(a12==2))||((a12==3)&&(a2==9)))||((a2==10)&&(a12==3))))&&(a16==1))&&(a15==1))))&&(a27==1)))){ + a12 = 6; + a2 = 13; + a20 = 5; + return -1; + } else if((((a12==6)&&((a15==1)&&((((a20==6)&&((((a2==11)||(a2==12))&&(input==6))&&!(a25==1)))&&(a9==18))&&(a16==1))))&&(a27==1))){ + a20 = 5; + a2 = 9; + a9 = 16; + a25 = 1; + a12 = 2; + return -1; + } else if(((a16==1)&&(((((a25==1)&&(((a15==1)&&((input==5)&&(a12==2)))&&(a9==16)))&&(a27==1))&&(a2==11))&&(a20==7)))){ + if((a15==1)){ + a9 = 18; + a2 = 13; + a25 = 0; + a12 = 4; + }else{ + a2 = 13; + a12 = 4; + } + return 21; + } else if((((a20==6)&&((!(a25==1)&&((((input==2)&&((((a2==13)&&(a12==2))||((a12==3)&&(a2==9)))||((a12==3)&&(a2==10))))&&(a16==1))&&(a9==17)))&&(a27==1)))&&(a15==1))){ + a9 = 16; + a2 = 9; + a12 = 5; + return 26; + } else if(((a20==5)&&((a25==1)&&((a9==18)&&(((a16==1)&&((a27==1)&&((((a2==9)||(a2==10))&&(input==4))&&!(a15==1))))&&(a12==3)))))){ + a2 = 11; + a9 = 16; + return -1; + } else if((((((a20==7)&&((a2==12)&&((a12==2)&&(((a15==1)&&(input==4))&&(a9==16)))))&&(a25==1))&&(a27==1))&&(a16==1))){ + a2 = 9; + a20 = 5; + return -1; + } else if(((((a20==7)&&(((a16==1)&&(((input==5)&&((((a2==13)&&(a12==4))||((a2==9)&&(a12==5)))||((a2==10)&&(a12==5))))&&(a27==1)))&&(a15==1)))&&(a25==1))&&(a9==16))){ + a20 = 5; + a12 = 5; + a9 = 17; + a2 = 11; + return -1; + } else if(((a20==5)&&(((a27==1)&&((a16==1)&&(((a12==5)&&((((a2==12)||(a2==13))&&(input==3))&&!(a25==1)))&&(a9==18))))&&(a15==1)))){ + a20 = 6; + a2 = 13; + a12 = 3; + return -1; + } else if(((a15==1)&&((a9==17)&&(((((a25==1)&&((a16==1)&&((input==1)&&(a20==7))))&&(a27==1))&&(a12==3))&&(a2==11))))){ + a20 = 6; + a12 = 5; + a2 = 13; + return -1; + } else if((!(a25==1)&&((((a15==1)&&((((input==2)&&((((a12==3)&&(a2==13))||((a2==9)&&(a12==4)))||((a2==10)&&(a12==4))))&&(a20==5))&&(a16==1)))&&(a9==17))&&(a27==1)))){ + a12 = 2; + a2 = 9; + a25 = 1; + a9 = 16; + return -1; + } else if(((a12==3)&&((!(a15==1)&&((((a9==18)&&(((input==1)&&((a2==9)||(a2==10)))&&(a16==1)))&&(a25==1))&&(a20==5)))&&(a27==1)))){ + a9 = 16; + a15 = 1; + a2 = 12; + a12 = 2; + return -1; + } else if(((a16==1)&&((a2==13)&&((a12==5)&&(!(a25==1)&&((a27==1)&&((a20==6)&&((a15==1)&&((a9==18)&&(input==2)))))))))){ + a25 = 1; + a2 = 12; + a12 = 3; + return 25; + } else if(((((a16==1)&&((((((a12==6)&&((a9==16)&&(a2==13)))||(((a9==17)&&(a2==9))&&(a12==2)))&&(input==5))&&!(a25==1))&&!(a15==1)))&&(a20==5))&&(a27==1))){ + a9 = 17; + a12 = 6; + a25 = 1; + a15 = 1; + a2 = 11; + return -1; + } else if(((a27==1)&&((!(a25==1)&&((a20==6)&&((a15==1)&&(((((a2==9)||(a2==10))&&(input==1))&&(a12==2))&&(a16==1)))))&&(a9==17)))){ + a9 = 16; + a20 = 5; + a2 = 9; + a25 = 1; + return -1; + } else if(((a9==17)&&(((a12==5)&&(((a25==1)&&((a27==1)&&(((input==1)&&(a15==1))&&(a2==12))))&&(a16==1)))&&(a20==6)))){ + if((a25==1)){ + a20 = 7; + a25 = 0; + a2 = 9; + }else{ + a12 = 6; + a9 = 16; + a25 = 0; + a2 = 10; + } + return 23; + } else if(((((a27==1)&&((a20==6)&&((a15==1)&&(((a2==11)&&((a12==5)&&(input==2)))&&!(a25==1)))))&&(a16==1))&&(a9==17))){ + a25 = 1; + a12 = 4; + a9 = 18; + a2 = 10; + return 21; + } else if(((a27==1)&&(((((((((a2==12)||(a2==13))&&(input==6))&&(a20==5))&&(a16==1))&&(a15==1))&&(a12==2))&&!(a25==1))&&(a9==16)))){ + a2 = 12; + a9 = 18; + return 23; + } else if(((((a9==17)&&((a16==1)&&(((a15==1)&&((((a12==3)&&(a2==10))||(((a12==2)&&(a2==13))||((a12==3)&&(a2==9))))&&(input==5)))&&!(a25==1))))&&(a20==6))&&(a27==1))){ + a2 = 9; + a12 = 2; + a25 = 1; + a20 = 5; + a9 = 16; + return -1; + } else if(((a16==1)&&((((a9==16)&&((a20==5)&&((a12==2)&&((a27==1)&&((input==1)&&(((a2==9)||(a2==10))||(a2==11)))))))&&!(a25==1))&&(a15==1)))){ + a2 = 9; + a25 = 1; + return -1; + } else if((((a16==1)&&((a15==1)&&((a25==1)&&((a12==6)&&((a20==6)&&((a27==1)&&((input==5)&&((a2==11)||(a2==12)))))))))&&(a9==17))){ + a2 = 10; + a9 = 16; + a12 = 5; + return -1; + } else if((((!(a15==1)&&(!(a25==1)&&((a9==16)&&((a2==11)&&(((input==3)&&(a27==1))&&(a12==2))))))&&(a16==1))&&(a20==5))){ + if((a15==1)){ + a9 = 17; + a25 = 1; + a12 = 6; + a2 = 10; + a15 = 1; + }else{ + a2 = 13; + a20 = 7; + a15 = 1; + } + return -1; + } else if(((a9==16)&&((a16==1)&&((a15==1)&&((!(a25==1)&&(((input==1)&&(((a2==9)&&(a12==4))||(((a2==12)&&(a12==3))||((a12==3)&&(a2==13)))))&&(a27==1)))&&(a20==7)))))){ + a12 = 2; + a25 = 1; + a2 = 9; + a20 = 5; + return -1; + } else if((((a16==1)&&((a12==2)&&(!(a15==1)&&(((a9==18)&&(((input==2)&&(a27==1))&&(a2==13)))&&!(a25==1)))))&&(a20==5))){ + a2 = 10; + a25 = 1; + a9 = 16; + return -1; + } else if(((((((a16==1)&&(!(a25==1)&&(((input==2)&&(a2==10))&&(a20==5))))&&(a9==17))&&(a27==1))&&(a15==1))&&(a12==6))){ + a9 = 16; + a25 = 1; + a2 = 9; + a12 = 2; + return -1; + } else if(((a20==5)&&(((a27==1)&&((a9==16)&&((a16==1)&&(((a2==12)&&((a25==1)&&(input==4)))&&(a12==6)))))&&!(a15==1)))){ + a9 = 18; + a12 = 4; + a2 = 13; + return 21; + } else if((((a9==18)&&((((((a16==1)&&(((a2==11)||(a2==12))&&(input==2)))&&(a27==1))&&!(a15==1))&&!(a25==1))&&(a12==3)))&&(a20==5))){ + if((a9==17)){ + a12 = 5; + a15 = 1; + a20 = 7; + a2 = 13; + a9 = 16; + a25 = 1; + }else{ + a12 = 2; + a9 = 17; + a2 = 9; + a20 = 7; + a15 = 1; + } + return -1; + } else if(((((a12==5)&&(!(a25==1)&&((a16==1)&&((a27==1)&&((((a2==12)||((a2==10)||(a2==11)))&&(input==4))&&(a9==17))))))&&!(a15==1))&&(a20==5))){ + a2 = 9; + a15 = 1; + a12 = 6; + a9 = 16; + a20 = 6; + return -1; + } else if((((((a12==3)&&((a16==1)&&(((a9==17)&&((input==4)&&((a2==11)||(a2==12))))&&(a20==5))))&&(a15==1))&&(a27==1))&&!(a25==1))){ + a2 = 10; + a12 = 6; + a20 = 6; + a25 = 1; + return 26; + } else if(((((a12==4)&&((a2==9)&&((a25==1)&&((a16==1)&&((a9==16)&&((input==3)&&(a20==7)))))))&&(a27==1))&&(a15==1))){ + a12 = 2; + a20 = 5; + return -1; + } else if(((!(a15==1)&&((((!(a25==1)&&(((input==1)&&((a2==9)||(a2==10)))&&(a27==1)))&&(a16==1))&&(a20==5))&&(a9==16)))&&(a12==2))){ + a2 = 10; + a25 = 1; + a12 = 5; + a15 = 1; + return -1; + } else if((((((!(a25==1)&&((a20==7)&&(((input==6)&&(a27==1))&&(a16==1))))&&(a9==17))&&(a2==13))&&(a12==3))&&(a15==1))){ + a2 = 11; + a20 = 6; + a12 = 5; + a25 = 1; + a9 = 16; + return -1; + } else if(((a9==16)&&((a15==1)&&(((a2==11)&&(((a16==1)&&(((input==3)&&(a27==1))&&(a20==6)))&&!(a25==1)))&&(a12==4))))){ + a25 = 1; + a9 = 18; + a12 = 5; + return 21; + } else if(((a20==6)&&(((a15==1)&&((a25==1)&&((a9==17)&&((((input==2)&&((a2==10)||(a2==11)))&&(a27==1))&&(a16==1)))))&&(a12==5)))){ + a9 = 16; + a12 = 2; + a20 = 5; + a2 = 9; + return -1; + } else if((!(a25==1)&&((a9==18)&&((a20==7)&&((a12==6)&&((a15==1)&&((a16==1)&&((a27==1)&&((input==6)&&((a2==11)||(a2==12))))))))))){ + a2 = 9; + a20 = 5; + a9 = 16; + a12 = 2; + a25 = 1; + return -1; + } else if(((((((!(a25==1)&&(((input==6)&&((a2==10)||(a2==11)))&&(a16==1)))&&(a9==16))&&(a27==1))&&(a20==5))&&(a12==3))&&(a15==1))){ + a12 = 2; + a25 = 1; + a2 = 9; + return -1; + } else if(((a15==1)&&(((a9==17)&&(((a16==1)&&((!(a25==1)&&((a27==1)&&(input==1)))&&(a20==5)))&&(a2==12)))&&(a12==5)))){ + a12 = 4; + a9 = 16; + a20 = 6; + return 21; + } else if(((!(a25==1)&&(((((a9==18)&&(((((a2==11)||(a2==12))||(a2==13))&&(input==5))&&(a15==1)))&&(a16==1))&&(a20==6))&&(a12==2)))&&(a27==1))){ + a25 = 1; + a20 = 5; + a9 = 16; + a2 = 9; + return -1; + } else if(((((a27==1)&&(((a15==1)&&(((((a9==17)&&(a2==13))&&(a12==6))||(((a2==9)&&(a9==18))&&(a12==2)))&&(input==6)))&&(a25==1)))&&(a20==7))&&(a16==1))){ + a9 = 17; + a2 = 12; + a12 = 4; + a20 = 6; + return -1; + } else if((((a9==18)&&((a27==1)&&(((!(a15==1)&&(((input==2)&&((a2==12)||(a2==13)))&&(a12==5)))&&(a20==5))&&(a25==1))))&&(a16==1))){ + a2 = 10; + a25 = 0; + a9 = 17; + return -1; + } else if(((a16==1)&&((a2==13)&&((a9==16)&&(((a15==1)&&(!(a25==1)&&(((input==2)&&(a12==2))&&(a27==1))))&&(a20==7)))))){ + a25 = 1; + a2 = 12; + a12 = 3; + a9 = 18; + a20 = 6; + return 25; + } else if(((a20==5)&&(!(a15==1)&&((a9==16)&&((((a16==1)&&((((a2==12)||((a2==10)||(a2==11)))&&(input==6))&&!(a25==1)))&&(a12==4))&&(a27==1)))))){ + a12 = 6; + a2 = 13; + a15 = 1; + return -1; + } else if(((((((((a27==1)&&((input==1)&&((a2==9)||(a2==10))))&&(a12==2))&&!(a25==1))&&(a16==1))&&(a20==7))&&(a9==17))&&(a15==1))){ + a2 = 12; + a9 = 18; + a25 = 1; + a20 = 6; + return -1; + } else if(((a12==2)&&((a15==1)&&((a16==1)&&(!(a25==1)&&((a27==1)&&((a9==16)&&((a20==5)&&((input==4)&&((a2==12)||(a2==13))))))))))){ + a25 = 1; + a2 = 9; + return -1; + } else if(((a9==16)&&((a16==1)&&(((a25==1)&&((a27==1)&&((a12==6)&&((((a2==12)||(a2==13))&&(input==5))&&(a20==6)))))&&(a15==1))))){ + a12 = 2; + a2 = 9; + a20 = 5; + return -1; + } else if(((a20==6)&&(((((((((a12==5)&&(a2==13))||((a2==9)&&(a12==6)))&&(input==4))&&(a15==1))&&(a27==1))&&(a9==16))&&!(a25==1))&&(a16==1)))){ + a2 = 12; + a12 = 4; + return -1; + } else if(((a9==17)&&((a27==1)&&(((a12==4)&&((((((a2==10)||(a2==11))&&(input==3))&&!(a15==1))&&(a20==5))&&(a16==1)))&&(a25==1))))){ + if((a9==17)){ + a2 = 9; + a25 = 0; + a12 = 5; + }else{ + a15 = 1; + a20 = 6; + a25 = 0; + a2 = 13; + a9 = 16; + } + return -1; + } else if(((a27==1)&&((((a15==1)&&(((a16==1)&&((a12==4)&&((((a2==11)||(a2==12))||(a2==13))&&(input==5))))&&(a9==18)))&&(a25==1))&&(a20==6)))){ + if((a20==5)){ + a20 = 7; + a2 = 9; + }else{ + a2 = 11; + a12 = 6; + a9 = 17; + } + return -1; + } else if((!(a15==1)&&((a9==17)&&((((((a16==1)&&((input==4)&&((a2==10)||(a2==11))))&&(a20==5))&&!(a25==1))&&(a27==1))&&(a12==2))))){ + a25 = 1; + a2 = 10; + a15 = 1; + a9 = 16; + return -1; + } else if((((a9==16)&&(((a15==1)&&((a16==1)&&(((a25==1)&&((input==1)&&((a2==13)||((a2==11)||(a2==12)))))&&(a27==1))))&&(a20==6)))&&(a12==4))){ + a12 = 2; + a20 = 5; + a2 = 9; + return -1; + } else if((!(a15==1)&&((a27==1)&&(((a16==1)&&((a9==16)&&((((input==2)&&(((a2==10)||(a2==11))||(a2==12)))&&(a20==5))&&(a12==2))))&&(a25==1))))){ + a15 = 1; + a2 = 9; + return -1; + } else if((((((a12==3)&&((((a27==1)&&((a2==12)&&(input==4)))&&(a9==17))&&(a16==1)))&&(a20==5))&&(a25==1))&&!(a15==1))){ + a15 = 1; + a12 = 4; + a2 = 11; + return -1; + } else if(((a9==16)&&((a16==1)&&((((((((a2==10)||(a2==11))&&(input==6))&&(a15==1))&&(a20==7))&&(a27==1))&&!(a25==1))&&(a12==4))))){ + a20 = 5; + a25 = 1; + a2 = 9; + a12 = 2; + return -1; + } else if(((a16==1)&&(((a27==1)&&((((((input==4)&&!(a25==1))&&(a9==17))&&(a12==2))&&(a20==6))&&(a2==12)))&&(a15==1)))){ + a20 = 7; + a9 = 18; + a25 = 1; + a12 = 5; + a2 = 9; + return 23; + } else if(((a20==7)&&(((a16==1)&&((((a12==5)&&((a2==9)&&((input==3)&&(a27==1))))&&(a15==1))&&!(a25==1)))&&(a9==18)))){ + a2 = 13; + a20 = 6; + return -1; + } else if(((a9==17)&&(!(a25==1)&&(((a15==1)&&((a16==1)&&((((a27==1)&&(input==3))&&(a12==3))&&(a20==7))))&&(a2==13))))){ + a25 = 1; + a20 = 5; + a2 = 9; + a9 = 16; + a12 = 2; + return -1; + } else if((!(a15==1)&&((((a9==18)&&(((a27==1)&&((((a12==5)&&(a2==9))||(((a2==12)&&(a12==4))||((a12==4)&&(a2==13))))&&(input==1)))&&(a20==5)))&&(a25==1))&&(a16==1)))){ + if((a12==5)){ + a9 = 16; + a20 = 7; + a12 = 4; + a2 = 12; + a15 = 1; + }else{ + a9 = 17; + a20 = 6; + a25 = 0; + a2 = 11; + a15 = 1; + a12 = 5; + } + return -1; + } else if(((((a9==18)&&(((((((a2==10)||(a2==11))&&(input==1))&&(a25==1))&&(a16==1))&&(a27==1))&&(a15==1)))&&(a12==5))&&(a20==7))){ + a9 = 16; + a12 = 2; + a2 = 9; + a20 = 5; + return -1; + } else if(((a20==7)&&((a27==1)&&((a12==2)&&((a16==1)&&(((a9==17)&&((a25==1)&&((input==3)&&((a2==10)||(a2==11)))))&&(a15==1))))))){ + a2 = 9; + a20 = 5; + a9 = 16; + return -1; + } else if(((a27==1)&&(((((((((a2==10)||(a2==11))&&(input==5))&&(a16==1))&&!(a25==1))&&(a15==1))&&(a12==4))&&(a20==7))&&(a9==16)))){ + a12 = 2; + a25 = 1; + a20 = 5; + a2 = 9; + return -1; + } else if((((a16==1)&&(((a27==1)&&((a9==16)&&(!(a25==1)&&((a20==5)&&((a12==4)&&(input==1))))))&&(a2==10)))&&(a15==1))){ + a12 = 2; + a2 = 9; + a25 = 1; + return -1; + } else if((((a9==16)&&(((a16==1)&&(((a2==11)&&((a12==2)&&(!(a15==1)&&(input==4))))&&(a20==5)))&&!(a25==1)))&&(a27==1))){ + if((a9==16)){ + a12 = 4; + a25 = 1; + a2 = 10; + a15 = 1; + }else{ + a12 = 5; + a15 = 1; + a9 = 18; + a2 = 13; + a20 = 7; + a25 = 1; + } + return -1; + } else if((((((a15==1)&&((((((a12==2)&&(a2==13))||((a12==3)&&(a2==9)))&&(input==1))&&(a20==7))&&!(a25==1)))&&(a16==1))&&(a9==18))&&(a27==1))){ + a20 = 5; + a9 = 16; + a25 = 1; + a2 = 9; + a12 = 2; + return -1; + } else if(((a15==1)&&((a20==7)&&(((a2==13)&&(!(a25==1)&&((a27==1)&&((a12==5)&&((input==3)&&(a9==17))))))&&(a16==1))))){ + a9 = 18; + a12 = 6; + a20 = 5; + a2 = 10; + a25 = 1; + return 23; + } else if(((((a20==6)&&(((a27==1)&&((!(a25==1)&&((input==2)&&((a2==9)||(a2==10))))&&(a16==1)))&&(a15==1)))&&(a12==5))&&(a9==16))){ + a25 = 1; + a20 = 5; + a2 = 9; + a12 = 2; + return -1; + } else if((((((((a20==6)&&((a16==1)&&((input==3)&&(((a2==9)||(a2==10))||(a2==11)))))&&(a9==16))&&(a12==5))&&(a27==1))&&(a25==1))&&(a15==1))){ + a20 = 7; + a2 = 12; + a12 = 3; + a9 = 18; + return -1; + } else if(((a16==1)&&(((a12==3)&&((a20==5)&&((!(a25==1)&&((a27==1)&&((input==2)&&(((a2==11)||(a2==12))||(a2==13)))))&&(a9==18))))&&(a15==1)))){ + a2 = 10; + a20 = 6; + a12 = 5; + a9 = 17; + return 24; + } else if((((a20==7)&&(((((a9==18)&&(!(a25==1)&&(((a2==10)||(a2==11))&&(input==6))))&&(a16==1))&&(a12==3))&&(a15==1)))&&(a27==1))){ + a20 = 6; + a2 = 10; + a25 = 1; + a9 = 16; + a12 = 6; + return 21; + } else if(((((a27==1)&&((((a16==1)&&((input==6)&&((((a2==13)&&(a12==3))||((a2==9)&&(a12==4)))||((a2==10)&&(a12==4)))))&&(a15==1))&&(a9==16)))&&(a25==1))&&(a20==6))){ + a20 = 7; + a25 = 0; + a12 = 5; + a2 = 9; + return -1; + } else if(((a27==1)&&((((((a20==5)&&(((a2==12)&&(input==6))&&!(a15==1)))&&!(a25==1))&&(a16==1))&&(a12==2))&&(a9==17)))){ + if((a16==1)){ + a2 = 11; + a15 = 1; + a12 = 5; + }else{ + a25 = 1; + a15 = 1; + a12 = 3; + a20 = 7; + a2 = 11; + } + return 26; + } else if(((a9==16)&&(((a27==1)&&((a20==6)&&(((((input==1)&&(a12==4))&&(a2==10))&&!(a25==1))&&(a15==1))))&&(a16==1)))){ + a20 = 5; + a2 = 9; + a12 = 2; + a25 = 1; + return -1; + } else if(((a15==1)&&((((a27==1)&&(((a12==6)&&((a20==6)&&((input==5)&&((a2==9)||(a2==10)))))&&(a9==18)))&&!(a25==1))&&(a16==1)))){ + a20 = 5; + a25 = 1; + a9 = 16; + a12 = 2; + a2 = 9; + return -1; + } else if((((a27==1)&&(((a12==2)&&((a20==5)&&(((a16==1)&&(((a2==9)||(a2==10))&&(input==5)))&&!(a25==1))))&&!(a15==1)))&&(a9==16))){ + a12 = 3; + a20 = 7; + a2 = 11; + a25 = 1; + a15 = 1; + return -1; + } else if((((a16==1)&&(!(a25==1)&&(((a20==5)&&((a27==1)&&((input==3)&&((((a12==4)&&(a2==13))||((a2==9)&&(a12==5)))||((a12==5)&&(a2==10))))))&&!(a15==1))))&&(a9==18))){ + a25 = 1; + a15 = 1; + a12 = 5; + a2 = 10; + return -1; + } else if(((a15==1)&&((((a27==1)&&((a16==1)&&(((((a12==4)&&(a2==10))||(((a12==3)&&(a2==13))||((a12==4)&&(a2==9))))&&(input==5))&&(a9==16))))&&(a25==1))&&(a20==6)))){ + a12 = 3; + a2 = 12; + return -1; + } else if(((((a12==2)&&((a15==1)&&((a9==17)&&(((a16==1)&&(((a2==10)||(a2==11))&&(input==2)))&&(a25==1)))))&&(a27==1))&&(a20==7))){ + if((a16==1)){ + a2 = 10; + a12 = 4; + }else{ + a12 = 6; + a20 = 6; + a2 = 12; + } + return 23; + } else if(((a20==5)&&((a16==1)&&(((!(a25==1)&&(((a12==3)&&((((a2==11)||(a2==12))||(a2==13))&&(input==3)))&&(a27==1)))&&(a15==1))&&(a9==18))))){ + a25 = 1; + a2 = 9; + a9 = 16; + a12 = 2; + return -1; + } else if(((!(a15==1)&&((a27==1)&&((a12==3)&&((a9==17)&&(((a25==1)&&((input==3)&&(((a2==9)||(a2==10))||(a2==11))))&&(a20==5))))))&&(a16==1))){ + if((a20==5)){ + a2 = 13; + a12 = 4; + a9 = 18; + a20 = 7; + a15 = 1; + }else{ + a15 = 1; + a12 = 4; + a20 = 7; + a2 = 13; + } + return -1; + } else if((((a16==1)&&((a27==1)&&(((a2==9)&&(((a9==16)&&((a12==2)&&(input==1)))&&!(a25==1)))&&(a15==1))))&&(a20==7))){ + a2 = 13; + a25 = 1; + a12 = 4; + a20 = 6; + return -1; + } else if(((((((a9==16)&&((a20==7)&&(((input==6)&&(((a2==11)||(a2==12))||(a2==13)))&&(a27==1))))&&(a15==1))&&(a25==1))&&(a12==6))&&(a16==1))){ + a12 = 3; + a2 = 13; + a20 = 5; + a9 = 18; + return -1; + } else if(((a16==1)&&((a20==5)&&((a9==17)&&((a27==1)&&((a12==5)&&((!(a25==1)&&((input==5)&&(a2==11)))&&(a15==1)))))))){ + a9 = 16; + a20 = 6; + a2 = 13; + a12 = 2; + return 24; + } else if((((a20==5)&&((((a9==17)&&((a12==5)&&(((input==2)&&!(a25==1))&&(a16==1))))&&!(a15==1))&&(a2==9)))&&(a27==1))){ + if((a16==1)){ + a15 = 1; + a2 = 12; + a9 = 18; + a25 = 1; + a12 = 3; + }else{ + a12 = 3; + a20 = 6; + a15 = 1; + } + return 23; + } else if((((a16==1)&&((a25==1)&&((a9==16)&&(((a2==12)&&((a20==5)&&((a12==5)&&(input==3))))&&(a27==1)))))&&!(a15==1))){ + a9 = 18; + a2 = 10; + a15 = 1; + a12 = 2; + return -1; + } else if(((a2==10)&&(!(a25==1)&&((((((a27==1)&&((a15==1)&&(input==6)))&&(a20==5))&&(a16==1))&&(a9==17))&&(a12==6))))){ + a9 = 16; + a2 = 9; + a25 = 1; + a12 = 2; + return -1; + } else if(((((a20==7)&&((a27==1)&&(((a12==5)&&(((input==1)&&(a25==1))&&(a15==1)))&&(a16==1))))&&(a2==13))&&(a9==16))){ + a12 = 2; + a2 = 9; + a20 = 5; + return -1; + } else if(((a12==4)&&((((a2==13)&&((((a16==1)&&((a27==1)&&(input==5)))&&(a9==17))&&(a25==1)))&&(a20==7))&&(a15==1)))){ + a12 = 5; + a9 = 18; + a2 = 11; + a20 = 5; + return 26; + } else if(((((a27==1)&&((a16==1)&&((((a20==7)&&((input==4)&&((a2==10)||(a2==11))))&&(a9==16))&&!(a25==1))))&&(a12==4))&&(a15==1))){ + a20 = 5; + a25 = 1; + a12 = 2; + a2 = 9; + return -1; + } else if((((((a16==1)&&(!(a25==1)&&((((a12==5)&&(input==4))&&(a15==1))&&(a27==1))))&&(a2==9))&&(a20==7))&&(a9==18))){ + a12 = 2; + a25 = 1; + a9 = 16; + a20 = 5; + return -1; + } else if((((!(a15==1)&&((((a20==5)&&((((a2==10)&&(a12==6))||(((a12==5)&&(a2==13))||((a12==6)&&(a2==9))))&&(input==1)))&&(a16==1))&&(a9==17)))&&(a25==1))&&(a27==1))){ + if((a27==1)){ + a15 = 1; + a12 = 3; + a9 = 18; + a2 = 9; + }else{ + a15 = 1; + a9 = 16; + a12 = 2; + a2 = 10; + } + return -1; + } else if(((((((a9==17)&&((!(a25==1)&&((a20==5)&&(input==2)))&&(a16==1)))&&(a12==4))&&!(a15==1))&&(a27==1))&&(a2==9))){ + if((a9==17)){ + a15 = 1; + a9 = 16; + a2 = 12; + a25 = 1; + a12 = 2; + }else{ + a20 = 7; + a15 = 1; + a12 = 3; + a2 = 12; + } + return -1; + } else if(((a15==1)&&((a27==1)&&(!(a25==1)&&((a20==5)&&((a9==16)&&((((((a2==13)&&(a12==5))||((a2==9)&&(a12==6)))||((a2==10)&&(a12==6)))&&(input==6))&&(a16==1)))))))){ + a2 = 9; + a12 = 3; + a20 = 6; + a25 = 1; + return 21; + } else if(((a16==1)&&((a15==1)&&(((((((input==6)&&(a2==13))&&(a20==6))&&(a27==1))&&(a9==17))&&(a25==1))&&(a12==6))))){ + a2 = 10; + return -1; + } else if(((a25==1)&&((a12==5)&&(((a20==6)&&((a15==1)&&((((input==6)&&((a2==10)||(a2==11)))&&(a9==17))&&(a27==1))))&&(a16==1))))){ + a12 = 4; + a2 = 12; + a9 = 16; + return -1; + } else if(((a16==1)&&((a9==18)&&((((a12==6)&&(((a20==5)&&((input==5)&&(((a2==11)||(a2==12))||(a2==13))))&&(a27==1)))&&(a15==1))&&!(a25==1))))){ + a12 = 5; + a2 = 11; + a20 = 6; + return -1; + } else if(((a27==1)&&((((a16==1)&&((a20==7)&&(((a25==1)&&((input==5)&&(a9==18)))&&(a15==1))))&&(a12==6))&&(a2==11)))){ + a2 = 13; + a9 = 17; + a12 = 4; + a20 = 6; + return 25; + } else if(((((a12==4)&&((a27==1)&&((a15==1)&&((((input==2)&&((a2==9)||(a2==10)))&&(a16==1))&&(a20==6)))))&&!(a25==1))&&(a9==18))){ + a25 = 1; + a12 = 3; + a2 = 12; + return 25; + } else if((!(a25==1)&&((a20==5)&&((((a15==1)&&(((a12==5)&&((input==6)&&((a2==12)||(a2==13))))&&(a9==18)))&&(a16==1))&&(a27==1))))){ + a20 = 6; + a12 = 3; + a2 = 10; + return -1; + } else if(((a27==1)&&((a20==5)&&(((a16==1)&&((a12==3)&&((a9==17)&&(((((a2==9)||(a2==10))||(a2==11))&&(input==5))&&(a25==1)))))&&!(a15==1))))){ + a25 = 0; + a2 = 9; + return -1; + } else if(((((a25==1)&&((a20==7)&&(((((input==2)&&(a16==1))&&(a27==1))&&(a2==9))&&(a12==5))))&&(a9==17))&&(a15==1))){ + a20 = 5; + a9 = 16; + a12 = 2; + return -1; + } else if((((a9==16)&&((((((a27==1)&&((a2==11)&&(input==5)))&&!(a25==1))&&(a12==4))&&(a20==6))&&(a15==1)))&&(a16==1))){ + a25 = 1; + a12 = 3; + a20 = 7; + a9 = 17; + return 21; + } else if(((a12==5)&&(((a25==1)&&((a27==1)&&(((a15==1)&&((a16==1)&&((input==1)&&((a2==10)||(a2==11)))))&&(a20==6))))&&(a9==17)))){ + a12 = 4; + a2 = 12; + a9 = 16; + return -1; + } else if(((((a9==16)&&(((a20==6)&&((a15==1)&&((a12==3)&&((input==6)&&((a2==11)||(a2==12))))))&&(a27==1)))&&(a16==1))&&!(a25==1))){ + a12 = 5; + a9 = 17; + a2 = 12; + a25 = 1; + return -1; + } else if(((a27==1)&&((a15==1)&&((((a12==5)&&((a9==17)&&(((input==5)&&((a2==11)||(a2==12)))&&!(a25==1))))&&(a20==7))&&(a16==1))))){ + a2 = 9; + a20 = 5; + a25 = 1; + a9 = 16; + a12 = 2; + return -1; + } else if((((a2==13)&&(((((a12==3)&&((a25==1)&&((input==2)&&(a16==1))))&&!(a15==1))&&(a20==5))&&(a27==1)))&&(a9==18))){ + a20 = 7; + a15 = 1; + a12 = 4; + a25 = 0; + a2 = 9; + return -1; + } else if(((((a2==11)&&(((a9==16)&&((a12==5)&&(((a16==1)&&(input==3))&&(a25==1))))&&(a27==1)))&&(a20==7))&&(a15==1))){ + a9 = 17; + a12 = 4; + a20 = 5; + return -1; + } else if((!(a25==1)&&((a27==1)&&(((a16==1)&&(((a15==1)&&(((input==5)&&((a2==9)||(a2==10)))&&(a12==5)))&&(a20==5)))&&(a9==17))))){ + a12 = 6; + a2 = 9; + a9 = 18; + a20 = 6; + a25 = 1; + return 25; + } return calculate_output2(input); + } + + int calculate_output2(int input) { + if(((a20==6)&&((a16==1)&&((a27==1)&&((a2==12)&&((a15==1)&&((a9==17)&&(((a12==5)&&(input==4))&&(a25==1))))))))){ + a20 = 5; + a12 = 2; + a2 = 9; + a9 = 16; + return -1; + } else if(((a27==1)&&(((a20==5)&&((a9==18)&&((((((a2==9)||(a2==10))&&(input==4))&&!(a25==1))&&!(a15==1))&&(a12==3))))&&(a16==1)))){ + a9 = 16; + a2 = 10; + a15 = 1; + a12 = 4; + return -1; + } else if(((a27==1)&&(((a16==1)&&(!(a25==1)&&((a12==4)&&((a9==16)&&((a20==5)&&((((a2==10)||(a2==11))||(a2==12))&&(input==4)))))))&&!(a15==1)))){ + if((a16==1)){ + a15 = 1; + a25 = 1; + a2 = 12; + a20 = 7; + }else{ + a15 = 1; + a2 = 10; + a25 = 1; + a9 = 17; + } + return -1; + } else if((((((!(a25==1)&&((a16==1)&&((a20==5)&&((input==4)&&((a2==10)||(a2==11))))))&&(a9==18))&&(a15==1))&&(a27==1))&&(a12==4))){ + a9 = 17; + a20 = 6; + a12 = 6; + a2 = 9; + return 24; + } else if(((a12==6)&&((a20==5)&&((!(a25==1)&&(!(a15==1)&&(((a16==1)&&(((a2==12)||((a2==10)||(a2==11)))&&(input==6)))&&(a9==17))))&&(a27==1))))){ + a25 = 1; + a9 = 16; + a2 = 10; + a15 = 1; + return -1; + } else if(((a16==1)&&((a27==1)&&((a25==1)&&((a20==6)&&((a15==1)&&((((input==4)&&((a2==9)||(a2==10)))&&(a9==18))&&(a12==5)))))))){ + a2 = 12; + a12 = 4; + a9 = 17; + return 21; + } else if(((((((a9==16)&&((a16==1)&&(((input==4)&&((a2==11)||((a2==9)||(a2==10))))&&(a25==1))))&&(a15==1))&&(a12==6))&&(a27==1))&&(a20==6))){ + if((a15==1)){ + a20 = 5; + a15 = 0; + a2 = 10; + a12 = 4; + }else{ + a2 = 12; + a12 = 5; + } + return -1; + } else if((!(a15==1)&&((((a9==16)&&((a20==5)&&(!(a25==1)&&((a12==2)&&((input==6)&&((a2==9)||(a2==10)))))))&&(a27==1))&&(a16==1)))){ + if((a9==16)){ + a9 = 17; + a25 = 1; + a2 = 13; + }else{ + a15 = 1; + a12 = 5; + a2 = 10; + a25 = 1; + } + return -1; + } else if(((a9==17)&&(((((a16==1)&&((a20==7)&&(((input==4)&&((a2==11)||((a2==9)||(a2==10))))&&(a25==1))))&&(a12==6))&&(a15==1))&&(a27==1)))){ + a20 = 6; + a2 = 11; + a12 = 3; + return 24; + } else if(((a27==1)&&((a12==4)&&(((a20==5)&&((a16==1)&&((a15==1)&&((a9==17)&&((input==4)&&((a2==13)||((a2==11)||(a2==12))))))))&&!(a25==1))))){ + a12 = 5; + a9 = 18; + a20 = 6; + a2 = 9; + a25 = 1; + return 23; + } else if(((((a20==5)&&((!(a15==1)&&((input==2)&&((((a2==13)&&(a9==17))&&(a12==6))||(((a9==18)&&(a2==9))&&(a12==2)))))&&(a16==1)))&&(a27==1))&&!(a25==1))){ + a20 = 6; + a25 = 1; + a9 = 16; + a12 = 2; + a15 = 1; + a2 = 11; + return -1; + } else if(((a15==1)&&((((a9==18)&&((a2==9)&&((a12==5)&&(((input==5)&&(a20==7))&&!(a25==1)))))&&(a16==1))&&(a27==1)))){ + a20 = 6; + a12 = 6; + a2 = 10; + return -1; + } else if(((a12==4)&&(((((a15==1)&&((a9==18)&&((!(a25==1)&&(input==4))&&(a2==9))))&&(a20==5))&&(a27==1))&&(a16==1)))){ + a9 = 16; + a25 = 1; + a12 = 2; + return -1; + } else if((((((a15==1)&&(((((input==6)&&(a25==1))&&(a27==1))&&(a9==18))&&(a16==1)))&&(a12==5))&&(a2==12))&&(a20==7))){ + a12 = 2; + a20 = 5; + a9 = 16; + a2 = 9; + return -1; + } else if((((((((a20==6)&&((a12==5)&&(((a2==11)||(a2==12))&&(input==2))))&&(a9==18))&&(a25==1))&&(a15==1))&&(a16==1))&&(a27==1))){ + a12 = 2; + a9 = 16; + a20 = 5; + a2 = 9; + return -1; + } else if(((a9==18)&&((a27==1)&&((a20==7)&&(((a12==4)&&((a16==1)&&(((input==6)&&!(a25==1))&&(a15==1))))&&(a2==13)))))){ + a2 = 12; + a9 = 17; + a20 = 5; + a25 = 1; + return -1; + } else if(((((a2==12)&&((((a15==1)&&(((input==2)&&(a9==18))&&(a16==1)))&&(a27==1))&&(a12==5)))&&(a25==1))&&(a20==7))){ + a20 = 6; + a12 = 3; + return 25; + } else if(((a12==2)&&((a9==16)&&((a20==5)&&(((((a16==1)&&((input==2)&&!(a15==1)))&&(a27==1))&&!(a25==1))&&(a2==11)))))){ + if((a27==1)){ + a2 = 12; + a15 = 1; + a25 = 1; + a9 = 18; + }else{ + a9 = 18; + a25 = 1; + a15 = 1; + a2 = 9; + } + return -1; + } else if(((a2==11)&&(((a16==1)&&((a20==7)&&(((a9==18)&&(((input==6)&&(a15==1))&&(a27==1)))&&(a12==6))))&&(a25==1)))){ + a2 = 9; + a12 = 3; + a20 = 5; + a9 = 16; + a15 = 0; + return 21; + } else if(((a15==1)&&((((input==2)&&((((((a2==10)&&(a9==16))&&(a12==2))&&(a25==1))&&(a20==7))||(((!(a25==1)&&((a12==6)&&((a2==13)&&(a9==18))))&&(a20==6))||((a20==7)&&((((a9==16)&&(a2==9))&&(a12==2))&&(a25==1))))))&&(a16==1))&&(a27==1)))){ + if((a9==17)){ + a9 = 17; + a20 = 7; + a2 = 11; + a12 = 4; + a25 = 1; + }else{ + a20 = 6; + a2 = 12; + a12 = 6; + a9 = 17; + a25 = 1; + } + return 23; + } else if(((((a16==1)&&((a27==1)&&((a20==6)&&(!(a25==1)&&((input==3)&&((((a2==13)&&(a12==2))||((a2==9)&&(a12==3)))||((a12==3)&&(a2==10))))))))&&(a15==1))&&(a9==17))){ + a9 = 16; + a25 = 1; + a20 = 5; + a2 = 9; + a12 = 2; + return -1; + } else if(((a15==1)&&(((a9==17)&&(((a27==1)&&((a12==2)&&((((a2==9)||(a2==10))&&(input==2))&&(a20==7))))&&(a16==1)))&&!(a25==1)))){ + a9 = 16; + a20 = 5; + a2 = 9; + a25 = 1; + return -1; + } else if(((a27==1)&&((a9==16)&&((a16==1)&&((a20==6)&&(((((((a2==11)||(a2==12))||(a2==13))&&(input==5))&&(a15==1))&&(a12==4))&&(a25==1))))))){ + a2 = 11; + return -1; + } else if(((a20==5)&&((!(a25==1)&&((((a9==16)&&(((input==1)&&(a12==2))&&(a16==1)))&&(a27==1))&&(a2==11)))&&!(a15==1)))){ + a12 = 3; + a25 = 1; + a15 = 1; + a2 = 12; + return 23; + } else if(((a27==1)&&(((((((a20==7)&&(((a2==11)||((a2==9)||(a2==10)))&&(input==6)))&&(a15==1))&&(a9==16))&&(a16==1))&&!(a25==1))&&(a12==3)))){ + a20 = 5; + a25 = 1; + a12 = 2; + a2 = 9; + return -1; + } else if(((a9==18)&&((a20==5)&&((a27==1)&&((a16==1)&&((a15==1)&&((a12==6)&&((((a2==9)||(a2==10))&&(input==1))&&!(a25==1))))))))){ + a12 = 2; + a25 = 1; + a9 = 16; + a2 = 9; + return -1; + } else if(((a27==1)&&((((a12==6)&&(((((input==5)&&(((a2==9)||(a2==10))||(a2==11)))&&(a15==1))&&(a16==1))&&(a20==6)))&&(a9==16))&&(a25==1)))){ + a12 = 4; + a2 = 11; + return -1; + } else if((((a9==16)&&((a2==9)&&((!(a25==1)&&(((a16==1)&&((a20==5)&&(input==5)))&&(a15==1)))&&(a12==3))))&&(a27==1))){ + a25 = 1; + a12 = 2; + return -1; + } else if(((a27==1)&&((a2==12)&&((((a16==1)&&(((a9==16)&&(!(a25==1)&&(input==5)))&&(a12==4)))&&(a20==6))&&(a15==1))))){ + a25 = 1; + a12 = 3; + a9 = 18; + return -1; + } else if(((a9==16)&&((a16==1)&&((((!(a25==1)&&((a27==1)&&(((a2==12)||(a2==13))&&(input==4))))&&(a20==5))&&(a12==2))&&!(a15==1))))){ + a12 = 3; + a15 = 1; + a2 = 9; + return -1; + } else if((!(a25==1)&&((((a27==1)&&((a20==5)&&((((input==3)&&((a2==9)||(a2==10)))&&(a12==2))&&(a9==16))))&&!(a15==1))&&(a16==1)))){ + a25 = 1; + a20 = 6; + a12 = 4; + a2 = 9; + a15 = 1; + a9 = 17; + return -1; + } else if((((((a9==16)&&((a20==5)&&((((input==3)&&(a12==4))&&(a16==1))&&(a2==10))))&&(a15==1))&&!(a25==1))&&(a27==1))){ + a2 = 13; + a12 = 5; + a9 = 18; + return 21; + } else if((((a9==16)&&(((a25==1)&&((!(a15==1)&&((((a2==10)||(a2==11))&&(input==4))&&(a12==6)))&&(a27==1)))&&(a16==1)))&&(a20==5))){ + a15 = 1; + a2 = 11; + a12 = 4; + return -1; + } else if((((a2==13)&&((a27==1)&&((!(a15==1)&&((((input==1)&&(a16==1))&&(a20==5))&&!(a25==1)))&&(a9==18))))&&(a12==2))){ + a2 = 12; + a20 = 7; + a9 = 17; + a12 = 4; + a15 = 1; + return -1; + } else if((((((a2==9)&&((a12==2)&&(!(a25==1)&&((a9==16)&&((a20==7)&&(input==3))))))&&(a15==1))&&(a16==1))&&(a27==1))){ + a20 = 5; + a25 = 1; + return -1; + } else if(((((a9==17)&&((!(a15==1)&&(((input==4)&&((((a2==13)&&(a12==5))||((a12==6)&&(a2==9)))||((a12==6)&&(a2==10))))&&(a27==1)))&&(a25==1)))&&(a20==5))&&(a16==1))){ + a12 = 3; + a2 = 10; + a25 = 0; + a9 = 16; + a15 = 1; + return -1; + } else if((((a25==1)&&(((((a16==1)&&((a2==11)&&((input==1)&&(a12==6))))&&(a9==17))&&!(a15==1))&&(a20==5)))&&(a27==1))){ + if((a15==1)){ + a9 = 16; + a15 = 1; + a12 = 5; + }else{ + a15 = 1; + a20 = 6; + a25 = 0; + a9 = 18; + } + return -1; + } else if(((a16==1)&&((!(a15==1)&&((a20==5)&&((a9==17)&&((a27==1)&&((((a2==13)&&(a12==5))||((a2==9)&&(a12==6)))&&(input==5))))))&&!(a25==1)))){ + a2 = 10; + a15 = 1; + a25 = 1; + a9 = 16; + a12 = 3; + return -1; + } else if((((a9==17)&&((a27==1)&&(!(a15==1)&&((a2==11)&&(((a16==1)&&((input==3)&&(a20==5)))&&(a25==1))))))&&(a12==6))){ + a12 = 3; + a2 = 13; + a15 = 1; + return 25; + } else if(((((((((a20==7)&&((input==6)&&(a9==16)))&&(a16==1))&&(a27==1))&&(a25==1))&&(a2==10))&&(a12==4))&&(a15==1))){ + if((a9==18)){ + a2 = 13; + a9 = 18; + a25 = 0; + a12 = 2; + }else{ + a12 = 2; + a9 = 17; + a2 = 11; + } + return -1; + } else if((((a9==17)&&((a20==6)&&((a16==1)&&((a2==12)&&((((a27==1)&&(input==5))&&(a12==5))&&(a25==1))))))&&(a15==1))){ + a9 = 16; + a12 = 2; + a20 = 5; + a2 = 9; + return -1; + } else if((((((a20==7)&&((a9==18)&&((((input==1)&&!(a25==1))&&(a16==1))&&(a12==5))))&&(a27==1))&&(a15==1))&&(a2==9))){ + a20 = 5; + a9 = 16; + a12 = 2; + a25 = 1; + return -1; + } else if(((a12==2)&&(((a15==1)&&(!(a25==1)&&((a20==6)&&((((input==4)&&(a2==11))&&(a16==1))&&(a9==17)))))&&(a27==1)))){ + a9 = 16; + a20 = 5; + a2 = 9; + a25 = 1; + return -1; + } else if((((((((a16==1)&&(((a2==12)&&(input==6))&&(a12==4)))&&!(a25==1))&&(a9==18))&&(a20==5))&&(a15==1))&&(a27==1))){ + a2 = 9; + a9 = 16; + a12 = 2; + a25 = 1; + return -1; + } else if((((a9==16)&&((a25==1)&&((a12==3)&&((a27==1)&&((a15==1)&&((a20==6)&&(((a2==11)||(a2==12))&&(input==2))))))))&&(a16==1))){ + a12 = 2; + a20 = 5; + a2 = 9; + return -1; + } else if(((((a2==11)&&((a9==18)&&((a15==1)&&((((input==1)&&!(a25==1))&&(a20==6))&&(a27==1)))))&&(a16==1))&&(a12==4))){ + a2 = 9; + a20 = 5; + a9 = 16; + a25 = 1; + a12 = 2; + return -1; + } else if((!(a15==1)&&((a20==5)&&((a12==4)&&((a9==17)&&((a2==9)&&((((a16==1)&&(input==1))&&(a27==1))&&!(a25==1)))))))){ + a25 = 1; + a2 = 11; + a12 = 2; + a9 = 18; + a15 = 1; + return -1; + } else if(((((((a12==6)&&((a15==1)&&((a16==1)&&((input==5)&&((a2==9)||(a2==10))))))&&(a27==1))&&(a20==6))&&(a9==17))&&!(a25==1))){ + a2 = 11; + a12 = 3; + a9 = 16; + return 21; + } else if(((a9==16)&&((a27==1)&&((!(a25==1)&&((((a20==7)&&((input==2)&&(((a2==9)||(a2==10))||(a2==11))))&&(a15==1))&&(a12==3)))&&(a16==1))))){ + a20 = 6; + a2 = 10; + a12 = 5; + return 23; + } else if((((((a20==5)&&(((a12==3)&&((a9==17)&&((input==5)&&(((a2==11)||(a2==12))||(a2==13)))))&&(a16==1)))&&(a27==1))&&!(a25==1))&&!(a15==1))){ + a2 = 12; + a15 = 1; + a25 = 1; + a12 = 4; + return 25; + } else if((((((a12==5)&&(((((input==3)&&(a16==1))&&!(a15==1))&&(a20==5))&&(a9==16)))&&(a27==1))&&(a2==11))&&!(a25==1))){ + a12 = 6; + a9 = 17; + a2 = 12; + a15 = 1; + a25 = 1; + return -1; + } else if(((a9==17)&&((a20==5)&&((a27==1)&&((a15==1)&&(((a12==4)&&(((input==5)&&(((a2==11)||(a2==12))||(a2==13)))&&(a16==1)))&&!(a25==1))))))){ + a25 = 1; + a12 = 2; + a2 = 9; + a9 = 16; + return -1; + } else if((((a27==1)&&((!(a25==1)&&(((((input==6)&&((a2==11)||(a2==12)))&&(a9==18))&&(a12==4))&&(a20==5)))&&!(a15==1)))&&(a16==1))){ + a2 = 11; + a15 = 1; + a9 = 17; + a25 = 1; + a12 = 6; + return -1; + } else if(((a27==1)&&((a12==2)&&((((a15==1)&&(!(a25==1)&&(((input==2)&&((a2==12)||(a2==13)))&&(a20==5))))&&(a16==1))&&(a9==16))))){ + a25 = 1; + a2 = 9; + return -1; + } else if(((a15==1)&&((a16==1)&&(((((input==4)&&((((a9==17)&&(a2==13))&&(a12==6))||(((a2==9)&&(a9==18))&&(a12==2))))&&(a27==1))&&(a20==6))&&!(a25==1))))){ + a12 = 2; + a20 = 5; + a9 = 16; + a25 = 1; + a2 = 9; + return -1; + } else if(((a9==16)&&((a20==7)&&((a25==1)&&((a12==5)&&((a15==1)&&((a27==1)&&((a2==13)&&((a16==1)&&(input==5)))))))))){ + a2 = 9; + a12 = 2; + a20 = 5; + return -1; + } else if(((a25==1)&&(((a27==1)&&(((a9==16)&&((a20==6)&&((a12==3)&&((input==4)&&((a2==11)||(a2==12))))))&&(a16==1)))&&(a15==1)))){ + a9 = 18; + a2 = 13; + return 26; + } else if(((a16==1)&&((a12==6)&&(!(a25==1)&&((!(a15==1)&&((a2==12)&&((a9==16)&&((a20==5)&&(input==6)))))&&(a27==1)))))){ + a9 = 17; + a12 = 5; + a2 = 10; + a15 = 1; + a25 = 1; + return 25; + } else if((((a27==1)&&(!(a25==1)&&((a20==5)&&((a12==2)&&((a16==1)&&((((a2==12)||(a2==13))&&(input==1))&&!(a15==1)))))))&&(a9==16))){ + a15 = 1; + a20 = 6; + a2 = 9; + a12 = 5; + return -1; + } else if(((a12==4)&&(((a27==1)&&((((((input==1)&&(((a2==9)||(a2==10))||(a2==11)))&&(a16==1))&&!(a25==1))&&(a15==1))&&(a20==7)))&&(a9==18)))){ + a9 = 17; + a2 = 10; + a20 = 6; + a25 = 1; + return -1; + } else if(((a9==18)&&((a20==5)&&(!(a25==1)&&((!(a15==1)&&((a16==1)&&((((a12==5)&&(a2==10))||(((a12==4)&&(a2==13))||((a12==5)&&(a2==9))))&&(input==6))))&&(a27==1)))))){ + a12 = 2; + a25 = 1; + a9 = 16; + a2 = 12; + return -1; + } else if(((((a16==1)&&(((a27==1)&&((a25==1)&&(((input==5)&&((a2==10)||(a2==11)))&&(a20==7))))&&(a12==5)))&&(a15==1))&&(a9==17))){ + a12 = 2; + a9 = 16; + a20 = 5; + a2 = 9; + return -1; + } else if(((a12==4)&&(!(a25==1)&&(((((a16==1)&&(((input==3)&&((a2==9)||(a2==10)))&&(a27==1)))&&(a15==1))&&(a20==6))&&(a9==18))))){ + a25 = 1; + a2 = 9; + a20 = 5; + a9 = 16; + a12 = 2; + return -1; + } else if((!(a25==1)&&((((a16==1)&&((a20==5)&&((a12==6)&&(((input==6)&&(((a2==11)||(a2==12))||(a2==13)))&&(a15==1)))))&&(a9==18))&&(a27==1)))){ + a25 = 1; + a2 = 9; + a9 = 16; + a12 = 2; + return -1; + } else if((((a12==6)&&(((a9==16)&&((a15==1)&&((a27==1)&&((a2==10)&&((input==6)&&(a20==7))))))&&!(a25==1)))&&(a16==1))){ + a9 = 17; + a2 = 11; + a25 = 1; + a20 = 6; + a12 = 5; + return 21; + } else if((((((a20==7)&&(((a9==16)&&((input==6)&&((((a12==4)&&(a2==12))||((a2==13)&&(a12==4)))||((a2==9)&&(a12==5)))))&&(a15==1)))&&(a16==1))&&!(a25==1))&&(a27==1))){ + a2 = 9; + a9 = 17; + a20 = 6; + a25 = 1; + a12 = 3; + return 26; + } else if((((a16==1)&&(((a2==11)&&((((a9==17)&&((input==6)&&(a15==1)))&&(a12==5))&&!(a25==1)))&&(a20==5)))&&(a27==1))){ + a2 = 9; + a9 = 16; + a25 = 1; + a12 = 2; + return -1; + } else if(((a12==6)&&(((a16==1)&&(!(a25==1)&&((!(a15==1)&&(((input==3)&&((a2==12)||((a2==10)||(a2==11))))&&(a9==17)))&&(a27==1))))&&(a20==5)))){ + a15 = 1; + a2 = 11; + a12 = 4; + a25 = 1; + a20 = 6; + return -1; + } else if(((a15==1)&&((((a20==7)&&((a25==1)&&(((a9==17)&&((a16==1)&&(input==3)))&&(a27==1))))&&(a2==9))&&(a12==5)))){ + a2 = 11; + a12 = 6; + a20 = 5; + a9 = 18; + return 23; + } else if((((a9==17)&&((a16==1)&&(((a20==6)&&(((((a2==11)||(a2==12))&&(input==6))&&(a12==4))&&(a15==1)))&&(a27==1))))&&(a25==1))){ + a2 = 11; + return -1; + } else if(((a27==1)&&((!(a25==1)&&((((a16==1)&&(((((a2==13)&&(a12==3))||((a12==4)&&(a2==9)))||((a2==10)&&(a12==4)))&&(input==5)))&&(a9==17))&&(a15==1)))&&(a20==5)))){ + a25 = 1; + a12 = 3; + a2 = 12; + a9 = 18; + a20 = 6; + return 25; + } else if((((((a15==1)&&((((((a2==12)||(a2==13))&&(input==2))&&(a9==17))&&(a16==1))&&(a27==1)))&&(a20==7))&&(a25==1))&&(a12==5))){ + a12 = 2; + a2 = 9; + a20 = 5; + a9 = 16; + return -1; + } else if(((((a9==17)&&((a2==13)&&((a27==1)&&(((a20==7)&&((input==2)&&(a16==1)))&&(a12==4)))))&&(a15==1))&&(a25==1))){ + a20 = 5; + a2 = 9; + a9 = 16; + a12 = 2; + return -1; + } else if((((!(a15==1)&&((!(a25==1)&&(((((a12==5)&&(a2==13))||((a2==9)&&(a12==6)))&&(input==1))&&(a16==1)))&&(a27==1)))&&(a9==17))&&(a20==5))){ + a12 = 3; + a2 = 10; + a9 = 18; + a20 = 6; + a15 = 1; + return 26; + } else if(((((a12==4)&&(!(a15==1)&&((a20==5)&&(((a27==1)&&((a9==18)&&(input==5)))&&!(a25==1)))))&&(a16==1))&&(a2==10))){ + a20 = 7; + a25 = 1; + a15 = 1; + a2 = 11; + return -1; + } else if((((a12==3)&&((a20==5)&&((a16==1)&&((a15==1)&&((((input==5)&&(((a2==11)||(a2==12))||(a2==13)))&&(a9==18))&&!(a25==1))))))&&(a27==1))){ + a12 = 2; + a25 = 1; + a9 = 16; + a2 = 9; + return -1; + } else if(((a16==1)&&(!(a25==1)&&(((((((input==1)&&((a2==12)||(a2==13)))&&(a27==1))&&(a15==1))&&(a9==18))&&(a20==7))&&(a12==3))))){ + a2 = 12; + a20 = 5; + a12 = 6; + return 23; + } else if((((a12==4)&&((a9==18)&&((((a15==1)&&((a25==1)&&((a2==11)&&(input==4))))&&(a20==7))&&(a16==1))))&&(a27==1))){ + a2 = 13; + return 23; + } else if((((!(a25==1)&&(((a15==1)&&((a16==1)&&((a27==1)&&((input==4)&&(a20==5)))))&&(a2==12)))&&(a12==5))&&(a9==17))){ + a2 = 9; + a12 = 2; + a9 = 16; + a25 = 1; + return -1; + } else if((((a16==1)&&(((a9==16)&&(((a2==12)&&(!(a25==1)&&((input==3)&&(a12==2))))&&(a20==6)))&&(a15==1)))&&(a27==1))){ + if((a16==1)){ + a2 = 9; + a20 = 7; + }else{ + a9 = 17; + a2 = 10; + a25 = 1; + a12 = 5; + } + return -1; + } else if((((a16==1)&&((a25==1)&&((a12==2)&&((a20==5)&&(((((a2==12)||(a2==13))&&(input==3))&&(a9==18))&&!(a15==1))))))&&(a27==1))){ + a12 = 5; + a2 = 10; + a9 = 16; + return -1; + } else if((((a9==17)&&((a12==3)&&((a27==1)&&((a15==1)&&(((((a2==11)||(a2==12))&&(input==1))&&(a16==1))&&(a20==5))))))&&!(a25==1))){ + a2 = 11; + a12 = 4; + a25 = 1; + a20 = 7; + return 23; + } else if(((a16==1)&&((a15==1)&&(((a9==17)&&((a20==5)&&(((((a2==13)&&(a12==5))||((a2==9)&&(a12==6)))&&(input==1))&&(a27==1))))&&!(a25==1))))){ + a9 = 16; + a25 = 1; + a2 = 9; + a12 = 2; + return -1; + } else if(((((((a27==1)&&(((a9==18)&&((a16==1)&&(input==4)))&&!(a15==1)))&&(a2==13))&&(a12==2))&&(a20==5))&&!(a25==1))){ + a2 = 10; + a25 = 1; + a9 = 16; + a12 = 4; + a15 = 1; + return -1; + } else if((!(a15==1)&&(((a25==1)&&((a20==5)&&(((a9==18)&&(((((a2==12)&&(a12==4))||((a2==13)&&(a12==4)))||((a12==5)&&(a2==9)))&&(input==4)))&&(a16==1))))&&(a27==1)))){ + a9 = 17; + a2 = 12; + a15 = 1; + a12 = 5; + return -1; + } else if(((a12==6)&&((a16==1)&&((a9==16)&&(!(a15==1)&&(((a20==5)&&(((input==4)&&((a2==11)||((a2==9)||(a2==10))))&&!(a25==1)))&&(a27==1))))))){ + a12 = 4; + a2 = 12; + a25 = 1; + a15 = 1; + return -1; + } else if((((a20==6)&&((a27==1)&&((a16==1)&&((!(a25==1)&&(((input==1)&&((a2==13)||((a2==11)||(a2==12))))&&(a15==1)))&&(a12==2)))))&&(a9==18))){ + a9 = 16; + a25 = 1; + a20 = 5; + a2 = 9; + return -1; + } else if(((a25==1)&&((a9==18)&&((a27==1)&&(((a15==1)&&(((((a2==13)&&(a12==2))||((a12==3)&&(a2==9)))&&(input==3))&&(a16==1)))&&(a20==7)))))){ + a12 = 2; + a2 = 9; + a20 = 5; + a9 = 16; + return -1; + } else if(((((a20==6)&&((((a9==16)&&((((a2==12)||(a2==13))&&(input==6))&&(a16==1)))&&(a15==1))&&(a27==1)))&&(a12==6))&&(a25==1))){ + a20 = 5; + a12 = 2; + a2 = 9; + return -1; + } else if(((a20==5)&&((a9==17)&&((a15==1)&&((!(a25==1)&&(((input==2)&&(((a2==9)&&(a12==3))||(((a12==2)&&(a2==12))||((a12==2)&&(a2==13)))))&&(a16==1)))&&(a27==1)))))){ + a25 = 1; + a2 = 9; + a9 = 16; + a12 = 2; + return -1; + } else if((!(a15==1)&&(((((a27==1)&&((input==5)&&((((a2==10)&&(a9==17))&&(a12==2))||(((a12==6)&&((a9==16)&&(a2==13)))||((a12==2)&&((a9==17)&&(a2==9)))))))&&(a25==1))&&(a20==5))&&(a16==1)))){ + if((a16==1)){ + a12 = 2; + a2 = 10; + a9 = 16; + a15 = 1; + }else{ + a2 = 12; + a12 = 2; + a9 = 18; + a25 = 0; + } + return 21; + } else if(((((a25==1)&&((((((a12==2)&&((a9==17)&&(a2==10)))||(((a12==6)&&((a9==16)&&(a2==13)))||(((a2==9)&&(a9==17))&&(a12==2))))&&(input==3))&&(a27==1))&&!(a15==1)))&&(a16==1))&&(a20==5))){ + if((a2==9)){ + a12 = 6; + a9 = 16; + a2 = 12; + }else{ + a12 = 2; + a9 = 17; + a25 = 0; + a2 = 12; + } + return -1; + } else if(((a20==7)&&((a9==17)&&(((((a16==1)&&((a25==1)&&((input==2)&&((a2==10)||(a2==11)))))&&(a27==1))&&(a12==4))&&(a15==1))))){ + a2 = 9; + a20 = 5; + a12 = 2; + a9 = 16; + return -1; + } else if(((a20==5)&&((((((a15==1)&&((a16==1)&&((input==1)&&(a9==18))))&&(a12==5))&&(a27==1))&&(a25==1))&&(a2==11)))){ + a9 = 16; + a25 = 0; + return 25; + } else if((((a25==1)&&(!(a15==1)&&((a20==5)&&(((((input==4)&&((a2==10)||(a2==11)))&&(a27==1))&&(a12==4))&&(a16==1)))))&&(a9==17))){ + a15 = 1; + a2 = 12; + a12 = 5; + a20 = 7; + a25 = 0; + return 21; + } else if((((a12==5)&&(((a20==5)&&((a16==1)&&(!(a25==1)&&(((input==4)&&((a2==12)||(a2==13)))&&(a9==18)))))&&(a15==1)))&&(a27==1))){ + a25 = 1; + a12 = 2; + a9 = 16; + a2 = 9; + return -1; + } else if((((a15==1)&&((a12==6)&&((a9==18)&&((!(a25==1)&&((a27==1)&&((input==6)&&((a2==9)||(a2==10)))))&&(a16==1)))))&&(a20==6))){ + a9 = 16; + a12 = 2; + a25 = 1; + a20 = 5; + a2 = 9; + return -1; + } else if(((a15==1)&&((a25==1)&&((((a27==1)&&((((((a12==3)&&(a2==13))||((a12==4)&&(a2==9)))||((a2==10)&&(a12==4)))&&(input==5))&&(a20==6)))&&(a16==1))&&(a9==17))))){ + if((a16==1)){ + a12 = 6; + a2 = 12; + a20 = 7; + }else{ + a12 = 4; + a2 = 10; + a9 = 18; + a20 = 7; + } + return -1; + } else if(((a20==5)&&((a16==1)&&(((a12==5)&&(((a27==1)&&((a25==1)&&((input==2)&&(a9==16))))&&(a2==10)))&&!(a15==1))))){ + a12 = 6; + a2 = 13; + a9 = 17; + a15 = 1; + return -1; + } else if((!(a25==1)&&((a27==1)&&((((a12==3)&&((a2==9)&&((a16==1)&&((a20==5)&&(input==1)))))&&(a9==16))&&(a15==1))))){ + a12 = 2; + a25 = 1; + return -1; + } else if((((a27==1)&&(((!(a25==1)&&((((input==4)&&((a2==11)||((a2==9)||(a2==10))))&&(a20==7))&&(a9==18)))&&(a12==2))&&(a16==1)))&&(a15==1))){ + a9 = 16; + a2 = 9; + a20 = 5; + a25 = 1; + return -1; + } else if(((a20==5)&&(((a9==18)&&((((a16==1)&&(!(a15==1)&&((input==1)&&((a2==10)||(a2==11)))))&&(a25==1))&&(a12==2)))&&(a27==1)))){ + a15 = 1; + a9 = 16; + a20 = 6; + a25 = 0; + a2 = 13; + a12 = 4; + return -1; + } else if((((a25==1)&&(((((a9==18)&&((a27==1)&&((input==1)&&((a2==10)||(a2==11)))))&&!(a15==1))&&(a20==5))&&(a16==1)))&&(a12==5))){ + a9 = 17; + a15 = 1; + a2 = 12; + a12 = 4; + return 26; + } else if((((a9==16)&&((a20==6)&&(((a25==1)&&(((a16==1)&&((input==6)&&(((a2==11)||(a2==12))||(a2==13))))&&(a15==1)))&&(a27==1))))&&(a12==4))){ + if((a16==1)){ + a12 = 3; + a20 = 7; + a9 = 18; + a2 = 11; + }else{ + a2 = 9; + } + return -1; + } else if(((a9==16)&&(((a12==5)&&((a16==1)&&((a27==1)&&((((input==5)&&(a20==5))&&!(a25==1))&&!(a15==1)))))&&(a2==11)))){ + a15 = 1; + a12 = 4; + a2 = 13; + a25 = 1; + return 21; + } else if(((a12==4)&&(!(a25==1)&&((a27==1)&&((a15==1)&&((a9==18)&&((a20==5)&&(((input==3)&&((a2==10)||(a2==11)))&&(a16==1))))))))){ + a12 = 5; + a9 = 17; + a20 = 6; + a2 = 13; + return 23; + } else if((((((a9==17)&&((a20==7)&&((a25==1)&&((a15==1)&&(((a2==12)||(a2==13))&&(input==3))))))&&(a27==1))&&(a12==5))&&(a16==1))){ + a2 = 13; + return -1; + } else if((((a9==18)&&((a20==6)&&((((a27==1)&&(((input==4)&&(((a2==9)||(a2==10))||(a2==11)))&&(a15==1)))&&(a25==1))&&(a16==1))))&&(a12==3))){ + a9 = 16; + a2 = 9; + a12 = 6; + return -1; + } else if(((a15==1)&&(((a12==3)&&(((a20==6)&&(!(a25==1)&&(((input==4)&&((a2==12)||(a2==13)))&&(a9==18))))&&(a27==1)))&&(a16==1)))){ + a9 = 16; + a12 = 2; + a25 = 1; + a2 = 9; + a20 = 5; + return -1; + } else if((((a2==12)&&(((a25==1)&&((a12==2)&&((a27==1)&&(((input==4)&&(a20==6))&&(a16==1)))))&&(a15==1)))&&(a9==16))){ + a20 = 5; + a2 = 9; + return -1; + } else if((((((a15==1)&&((((a16==1)&&((a9==17)&&(input==5)))&&(a2==11))&&(a27==1)))&&(a12==5))&&!(a25==1))&&(a20==6))){ + a9 = 16; + a20 = 5; + a25 = 1; + a2 = 9; + a12 = 2; + return -1; + } else if((((a27==1)&&((a25==1)&&((a9==18)&&((a12==6)&&((!(a15==1)&&((((a2==11)||(a2==12))||(a2==13))&&(input==4)))&&(a16==1))))))&&(a20==5))){ + a9 = 17; + a12 = 5; + a15 = 1; + a2 = 10; + return -1; + } else if(((a20==7)&&(((((a12==3)&&((a25==1)&&((a15==1)&&((input==4)&&((a2==12)||(a2==13))))))&&(a16==1))&&(a9==16))&&(a27==1)))){ + a2 = 9; + a20 = 5; + a12 = 2; + return -1; + } else if(((a16==1)&&(((a9==16)&&(((((a12==2)&&(((a2==12)||(a2==13))&&(input==6)))&&(a27==1))&&!(a25==1))&&!(a15==1)))&&(a20==5)))){ + if((a20==5)){ + a9 = 18; + a25 = 1; + a12 = 3; + a15 = 1; + a2 = 12; + }else{ + a2 = 9; + a25 = 1; + a9 = 17; + a12 = 5; + a15 = 1; + } + return -1; + } else if(((a15==1)&&((a2==11)&&((a27==1)&&(!(a25==1)&&((a9==16)&&(((a12==4)&&((input==4)&&(a20==6)))&&(a16==1)))))))){ + a2 = 9; + a25 = 1; + a12 = 2; + a20 = 5; + return -1; + } else if((((a15==1)&&((a16==1)&&((!(a25==1)&&(((((a12==5)&&(a2==13))||((a12==6)&&(a2==9)))&&(input==5))&&(a20==7)))&&(a9==16))))&&(a27==1))){ + a2 = 9; + a12 = 4; + a9 = 17; + return -1; + } else if(((a25==1)&&((a27==1)&&(((((((input==6)&&((a2==11)||((a2==9)||(a2==10))))&&(a16==1))&&(a20==6))&&(a15==1))&&(a12==6))&&(a9==16))))){ + if((a20==5)){ + a15 = 0; + a20 = 5; + a2 = 11; + a12 = 4; + }else{ + a2 = 13; + a12 = 5; + } + return -1; + } else if(((a20==6)&&((a15==1)&&((a25==1)&&(((((((a2==11)||((a2==9)||(a2==10)))&&(input==6))&&(a9==16))&&(a27==1))&&(a16==1))&&(a12==5)))))){ + a20 = 7; + a25 = 0; + a2 = 12; + a12 = 3; + a9 = 17; + return -1; + } else if((!(a15==1)&&((!(a25==1)&&((a16==1)&&(((a12==3)&&((((a2==13)||((a2==11)||(a2==12)))&&(input==5))&&(a27==1)))&&(a20==5))))&&(a9==16)))){ + a25 = 1; + a9 = 17; + a12 = 4; + a15 = 1; + a2 = 10; + return -1; + } else if((((a15==1)&&((a27==1)&&((((((a20==7)&&(input==2))&&(a12==3))&&(a16==1))&&(a9==17))&&!(a25==1))))&&(a2==9))){ + a12 = 2; + a25 = 1; + a20 = 5; + a9 = 16; + return -1; + } else if(((a27==1)&&(((((((((a12==6)&&((a2==13)&&(a9==18)))&&!(a25==1))&&(a20==6))||((((a12==2)&&((a9==16)&&(a2==9)))&&(a25==1))&&(a20==7)))||((a20==7)&&(((a12==2)&&((a2==10)&&(a9==16)))&&(a25==1))))&&(input==1))&&(a16==1))&&(a15==1)))){ + a9 = 16; + a20 = 5; + a12 = 2; + a2 = 9; + a25 = 1; + return -1; + } else if(((a12==6)&&((a25==1)&&((a16==1)&&((a15==1)&&((a20==7)&&((a27==1)&&(((input==4)&&(a2==12))&&(a9==17))))))))){ + a9 = 16; + a20 = 6; + a2 = 13; + a12 = 3; + return -1; + } else if(((((((a16==1)&&(!(a25==1)&&((((a2==9)&&(a12==4))||(((a12==3)&&(a2==12))||((a12==3)&&(a2==13))))&&(input==3))))&&(a27==1))&&(a20==5))&&(a15==1))&&(a9==16))){ + a2 = 9; + a25 = 1; + a12 = 2; + return -1; + } else if((((a16==1)&&((a15==1)&&(((a27==1)&&((!(a25==1)&&(((a2==9)||(a2==10))&&(input==2)))&&(a12==6)))&&(a9==18))))&&(a20==5))){ + a12 = 2; + a2 = 9; + a25 = 1; + a9 = 16; + return -1; + } else if((!(a15==1)&&((a12==4)&&(!(a25==1)&&((((((input==1)&&(a27==1))&&(a20==5))&&(a2==9))&&(a9==16))&&(a16==1)))))){ + a20 = 7; + a12 = 3; + a15 = 1; + a9 = 17; + a2 = 10; + return 23; + } else if((((a2==12)&&(((a25==1)&&((a12==2)&&(((a9==17)&&((a20==7)&&(input==1)))&&(a27==1))))&&(a16==1)))&&(a15==1))){ + a9 = 16; + a2 = 9; + a20 = 5; + return -1; + } else if(((a15==1)&&((a9==17)&&(!(a25==1)&&((a27==1)&&((a20==7)&&(((a12==4)&&((input==5)&&((a2==9)||(a2==10))))&&(a16==1)))))))){ + a25 = 1; + a12 = 2; + a9 = 16; + a2 = 9; + a20 = 5; + return -1; + } else if(((!(a25==1)&&((((a15==1)&&((((input==5)&&(a27==1))&&(a2==10))&&(a16==1)))&&(a12==6))&&(a9==17)))&&(a20==5))){ + a12 = 5; + a9 = 16; + a20 = 6; + a2 = 12; + return 21; + } else if(((a27==1)&&(!(a25==1)&&(!(a15==1)&&((a9==18)&&((((((a12==5)&&(a2==10))||(((a2==13)&&(a12==4))||((a2==9)&&(a12==5))))&&(input==5))&&(a16==1))&&(a20==5))))))){ + if((a27==1)){ + a9 = 17; + a2 = 11; + a20 = 7; + a12 = 3; + a15 = 1; + }else{ + a12 = 3; + a25 = 1; + a2 = 12; + a9 = 17; + a15 = 1; + } + return 25; + } else if(((a15==1)&&((a9==18)&&((a20==5)&&((((a27==1)&&(((input==6)&&((a2==10)||(a2==11)))&&(a16==1)))&&!(a25==1))&&(a12==4)))))){ + a2 = 9; + a12 = 2; + a25 = 1; + a9 = 16; + return -1; + } else if((((((((a20==7)&&((input==5)&&(((a2==13)&&(a12==2))||((a2==9)&&(a12==3)))))&&(a15==1))&&(a16==1))&&!(a25==1))&&(a27==1))&&(a9==18))){ + a2 = 9; + a9 = 16; + a25 = 1; + a20 = 5; + a12 = 2; + return -1; + } else if(((((((((a20==6)&&((input==5)&&(a16==1)))&&(a12==2))&&(a2==11))&&(a27==1))&&(a9==16))&&!(a25==1))&&(a15==1))){ + a2 = 12; + a12 = 4; + a9 = 18; + a25 = 1; + return -1; + } else if((((a15==1)&&((a9==17)&&((((((input==6)&&(((a2==11)||(a2==12))||(a2==13)))&&(a27==1))&&!(a25==1))&&(a12==6))&&(a20==7))))&&(a16==1))){ + a25 = 1; + a9 = 16; + a20 = 5; + a2 = 9; + a12 = 2; + return -1; + } else if((((a20==7)&&((a16==1)&&((a27==1)&&((a9==16)&&(((((a2==9)&&(a12==5))||(((a2==12)&&(a12==4))||((a2==13)&&(a12==4))))&&(input==3))&&(a15==1))))))&&!(a25==1))){ + a12 = 2; + a2 = 9; + a20 = 5; + a25 = 1; + return -1; + } else if((!(a15==1)&&((a20==5)&&(((((a25==1)&&((input==4)&&(((a12==5)&&(a2==9))||(((a2==12)&&(a12==4))||((a12==4)&&(a2==13))))))&&(a27==1))&&(a16==1))&&(a9==17))))){ + a2 = 10; + a15 = 1; + a12 = 5; + a9 = 16; + return 25; + } else if(((a20==7)&&((a16==1)&&((((((a27==1)&&((input==5)&&((a2==9)||(a2==10))))&&(a12==6))&&(a25==1))&&(a15==1))&&(a9==16))))){ + a20 = 5; + a2 = 9; + a12 = 2; + return -1; + } else if(((a15==1)&&(((a9==17)&&(((!(a25==1)&&((a16==1)&&((input==3)&&(((a2==11)||(a2==12))||(a2==13)))))&&(a27==1))&&(a20==6)))&&(a12==3)))){ + a12 = 2; + a20 = 5; + a25 = 1; + a2 = 9; + a9 = 16; + return -1; + } else if(((a12==4)&&((((a25==1)&&((a15==1)&&(((a27==1)&&((a2==9)&&(input==4)))&&(a16==1))))&&(a9==16))&&(a20==7)))){ + a20 = 5; + a12 = 2; + return -1; + } else if(((a27==1)&&(((a16==1)&&(!(a25==1)&&((a15==1)&&(((a12==3)&&((input==2)&&((a2==11)||(a2==12))))&&(a9==16)))))&&(a20==6)))){ + a12 = 2; + a20 = 5; + a2 = 9; + a25 = 1; + return -1; + } else if((((a12==5)&&((a20==5)&&(!(a15==1)&&(((a25==1)&&((a16==1)&&((input==4)&&((a2==12)||(a2==13)))))&&(a9==18)))))&&(a27==1))){ + if((a16==1)){ + a2 = 12; + a9 = 17; + a15 = 1; + }else{ + a12 = 2; + a2 = 9; + a9 = 17; + a15 = 1; + } + return -1; + } else if(((a15==1)&&(((a25==1)&&((((a20==6)&&((input==3)&&((((a2==13)&&(a12==3))||((a2==9)&&(a12==4)))||((a2==10)&&(a12==4)))))&&(a27==1))&&(a9==18)))&&(a16==1)))){ + a12 = 2; + a2 = 9; + a9 = 16; + a20 = 5; + return -1; + } else if(((a27==1)&&(((a15==1)&&((a9==18)&&(((((((a12==4)&&(a2==12))||((a12==4)&&(a2==13)))||((a12==5)&&(a2==9)))&&(input==6))&&!(a25==1))&&(a20==6))))&&(a16==1)))){ + a9 = 16; + a2 = 9; + a25 = 1; + a20 = 5; + a12 = 2; + return -1; + } else if(((a16==1)&&((a9==16)&&((!(a25==1)&&(((a15==1)&&((a20==7)&&((input==1)&&(((a2==11)||(a2==12))||(a2==13)))))&&(a27==1)))&&(a12==6))))){ + a20 = 5; + a12 = 2; + a2 = 9; + a25 = 1; + return -1; + } else if((((a27==1)&&((a2==11)&&((((((input==6)&&(a15==1))&&(a12==5))&&(a20==5))&&(a25==1))&&(a9==18))))&&(a16==1))){ + a2 = 10; + a12 = 4; + a20 = 7; + a9 = 16; + a25 = 0; + return 21; + } else if(((a15==1)&&((a16==1)&&((a9==17)&&((a20==7)&&((((!(a25==1)&&(input==6))&&(a2==9))&&(a27==1))&&(a12==3))))))){ + a9 = 18; + a20 = 5; + a2 = 10; + a12 = 6; + return 23; + } else if(((a9==17)&&((a27==1)&&((a25==1)&&(((((input==6)&&((((a2==13)&&(a12==5))||((a12==6)&&(a2==9)))||((a2==10)&&(a12==6))))&&(a20==5))&&(a16==1))&&!(a15==1)))))){ + a15 = 1; + a9 = 16; + a2 = 9; + a12 = 6; + return 25; + } else if((!(a15==1)&&((a9==18)&&((a27==1)&&(((((a25==1)&&((input==3)&&((a2==9)||(a2==10))))&&(a16==1))&&(a20==5))&&(a12==3)))))){ + a20 = 7; + a12 = 4; + a25 = 0; + a2 = 13; + a15 = 1; + return 25; + } else if(((a20==6)&&((!(a25==1)&&((((a12==2)&&(((input==2)&&(a9==17))&&(a2==12)))&&(a27==1))&&(a16==1)))&&(a15==1)))){ + a9 = 16; + a25 = 1; + a20 = 5; + a2 = 9; + return -1; + } else if(((a20==7)&&((a27==1)&&(((a12==2)&&((((((a2==9)||(a2==10))&&(input==3))&&(a9==17))&&!(a25==1))&&(a15==1)))&&(a16==1))))){ + a2 = 11; + a25 = 1; + a20 = 6; + return -1; + } else if((((a12==5)&&(((((a2==9)&&((a27==1)&&((input==5)&&(a16==1))))&&!(a15==1))&&(a20==5))&&(a9==17)))&&!(a25==1))){ + a2 = 10; + a15 = 1; + a12 = 4; + a20 = 6; + return 21; + } else if(((((((a12==2)&&(((a27==1)&&((input==6)&&((a2==12)||((a2==10)||(a2==11)))))&&(a20==7)))&&(a9==18))&&(a25==1))&&(a16==1))&&(a15==1))){ + a20 = 5; + a2 = 13; + a12 = 3; + return -1; + } else if((((((a27==1)&&((((((a12==6)&&((a2==13)&&(a9==18)))&&(a25==1))||(!(a25==1)&&((a12==2)&&((a9==16)&&(a2==9)))))||(!(a25==1)&&((a12==2)&&((a2==10)&&(a9==16)))))&&(input==6)))&&(a16==1))&&(a20==6))&&(a15==1))){ + a2 = 9; + a25 = 1; + a9 = 18; + a12 = 6; + return -1; + } else if((((a20==5)&&(((a2==9)&&(((a15==1)&&(((a27==1)&&(input==2))&&(a12==3)))&&(a9==16)))&&(a16==1)))&&!(a25==1))){ + a12 = 4; + a2 = 10; + a9 = 18; + return 23; + } else if((!(a25==1)&&((a27==1)&&(((((((input==2)&&(a12==5))&&(a2==11))&&(a15==1))&&(a16==1))&&(a20==5))&&(a9==18))))){ + a25 = 1; + a2 = 9; + a9 = 16; + a12 = 2; + return -1; + } else if(((a20==6)&&(((a25==1)&&((a27==1)&&(((((((a12==5)&&(a2==13))||((a2==9)&&(a12==6)))||((a2==10)&&(a12==6)))&&(input==4))&&(a16==1))&&(a15==1))))&&(a9==17)))){ + a12 = 2; + a2 = 9; + a20 = 5; + a9 = 16; + return -1; + } else if(((((a9==18)&&((a27==1)&&(((a15==1)&&((a16==1)&&((input==6)&&((a2==11)||(a2==12)))))&&(a25==1))))&&(a20==6))&&(a12==5))){ + a9 = 16; + a20 = 5; + a12 = 2; + a2 = 9; + return -1; + } else if(((a12==4)&&((a20==6)&&((a27==1)&&((((a15==1)&&(((input==4)&&!(a25==1))&&(a16==1)))&&(a2==10))&&(a9==16)))))){ + a25 = 1; + a12 = 2; + a2 = 9; + a20 = 5; + return -1; + } else if((((a27==1)&&((a25==1)&&((((a9==18)&&(((((a12==4)&&(a2==13))||((a12==5)&&(a2==9)))||((a12==5)&&(a2==10)))&&(input==5)))&&(a20==5))&&(a15==1))))&&(a16==1))){ + a9 = 16; + a12 = 2; + a2 = 9; + return -1; + } else if((((a16==1)&&((((a25==1)&&((a20==7)&&((input==4)&&(((a12==2)&&(a2==13))||((a12==3)&&(a2==9))))))&&(a27==1))&&(a9==16)))&&(a15==1))){ + a2 = 9; + a12 = 2; + a20 = 5; + return -1; + } else if(((a20==5)&&((((a27==1)&&(((((((a2==12)&&(a12==3))||((a12==3)&&(a2==13)))||((a2==9)&&(a12==4)))&&(input==2))&&(a9==16))&&(a16==1)))&&(a25==1))&&!(a15==1)))){ + a2 = 9; + a12 = 5; + a25 = 0; + a20 = 6; + a15 = 1; + return 26; + } else if((((a16==1)&&(((a20==5)&&((a27==1)&&((a25==1)&&((a2==13)&&(!(a15==1)&&(input==4))))))&&(a9==16)))&&(a12==5))){ + a9 = 18; + a12 = 2; + a2 = 10; + return -1; + } else if(((((a2==11)&&((((a27==1)&&(((input==6)&&(a16==1))&&(a20==5)))&&(a15==1))&&(a9==16)))&&(a12==4))&&!(a25==1))){ + a12 = 6; + a2 = 9; + a20 = 7; + return 23; + } else if((((a16==1)&&((a20==7)&&((a9==18)&&((a27==1)&&((a12==2)&&(((input==5)&&((a2==11)||((a2==9)||(a2==10))))&&!(a25==1)))))))&&(a15==1))){ + a9 = 16; + a2 = 9; + a20 = 5; + a25 = 1; + return -1; + } else if(((a20==5)&&(((((a2==9)&&((a9==18)&&((!(a15==1)&&(input==6))&&(a16==1))))&&(a25==1))&&(a27==1))&&(a12==4)))){ + a25 = 0; + a12 = 5; + a2 = 12; + a15 = 1; + a9 = 17; + return -1; + } else if((((((a16==1)&&((a9==18)&&((a25==1)&&((input==5)&&(((a12==5)&&(a2==9))||(((a2==12)&&(a12==4))||((a12==4)&&(a2==13))))))))&&(a15==1))&&(a20==7))&&(a27==1))){ + a12 = 2; + a2 = 9; + a9 = 16; + a20 = 5; + return -1; + } else if((((a20==6)&&(((a9==17)&&((((input==2)&&(((a2==10)&&(a12==6))||(((a12==5)&&(a2==13))||((a2==9)&&(a12==6)))))&&(a25==1))&&(a15==1)))&&(a16==1)))&&(a27==1))){ + a20 = 5; + a2 = 9; + a12 = 2; + a9 = 16; + return -1; + } else if((((((a15==1)&&((a12==2)&&((((a16==1)&&(input==2))&&(a27==1))&&(a2==12))))&&(a20==6))&&!(a25==1))&&(a9==16))){ + a20 = 5; + a2 = 9; + a25 = 1; + return -1; + } else if((((a27==1)&&((a16==1)&&((a9==17)&&((a20==5)&&(!(a15==1)&&((((a12==6)&&(a2==10))||(((a2==13)&&(a12==5))||((a12==6)&&(a2==9))))&&(input==2)))))))&&(a25==1))){ + if((a16==1)){ + a2 = 10; + a15 = 1; + a12 = 5; + }else{ + a12 = 4; + a25 = 0; + a15 = 1; + a2 = 13; + a9 = 18; + } + return -1; + } else if((((!(a15==1)&&((a16==1)&&((((a20==5)&&((((a2==11)||(a2==12))||(a2==13))&&(input==6)))&&!(a25==1))&&(a12==4))))&&(a27==1))&&(a9==17))){ + if((a16==1)){ + a12 = 2; + a20 = 6; + a9 = 18; + a2 = 9; + a15 = 1; + a25 = 1; + }else{ + a12 = 5; + a2 = 9; + } + return -1; + } else if(((((a27==1)&&(((((a16==1)&&((input==4)&&((a2==11)||(a2==12))))&&!(a25==1))&&(a15==1))&&(a12==6)))&&(a9==17))&&(a20==5))){ + a2 = 9; + a25 = 1; + a12 = 2; + a9 = 16; + return -1; + } else if(((((((a27==1)&&((a9==18)&&(!(a15==1)&&((a2==11)&&(input==4)))))&&(a16==1))&&(a25==1))&&(a20==5))&&(a12==3))){ + if((a16==1)){ + a15 = 1; + a9 = 17; + a2 = 9; + }else{ + a9 = 17; + a20 = 7; + a2 = 12; + a12 = 6; + a15 = 1; + } + return -1; + } else if(((a12==6)&&((a25==1)&&((a20==7)&&((((a9==18)&&((a27==1)&&(((a2==12)||(a2==13))&&(input==4))))&&(a16==1))&&(a15==1)))))){ + a20 = 6; + a12 = 2; + a2 = 13; + a9 = 17; + return -1; + } else if((((((a9==16)&&(((a20==6)&&(((input==4)&&((a2==9)||(a2==10)))&&!(a25==1)))&&(a16==1)))&&(a15==1))&&(a12==5))&&(a27==1))){ + a9 = 18; + a2 = 10; + a25 = 1; + a12 = 4; + return -1; + } else if(((a2==12)&&((a15==1)&&((a9==17)&&((a20==7)&&((((a16==1)&&((a12==4)&&(input==1)))&&(a25==1))&&(a27==1))))))){ + a12 = 2; + a2 = 9; + a20 = 5; + a9 = 16; + return -1; + } else if(((((a9==17)&&((!(a25==1)&&((a20==5)&&((input==2)&&(((a12==3)&&(a2==10))||(((a2==13)&&(a12==2))||((a12==3)&&(a2==9)))))))&&!(a15==1)))&&(a27==1))&&(a16==1))){ + if((a27==1)){ + a12 = 2; + a25 = 1; + a2 = 12; + a15 = 1; + a9 = 18; + }else{ + a15 = 1; + a2 = 11; + a12 = 2; + a9 = 18; + a25 = 1; + } + return 21; + } else if(((a12==6)&&((a27==1)&&(((!(a25==1)&&((a16==1)&&((a20==5)&&((input==3)&&((a2==11)||(a2==12))))))&&(a9==16))&&(a15==1))))){ + if((a16==1)){ + a25 = 1; + a12 = 3; + a20 = 7; + a9 = 18; + a2 = 12; + }else{ + a25 = 1; + a20 = 6; + a2 = 10; + a12 = 4; + } + return 26; + } else if((((a9==16)&&(((((a20==6)&&((((a2==13)&&(a12==5))||((a2==9)&&(a12==6)))&&(input==3)))&&(a15==1))&&!(a25==1))&&(a16==1)))&&(a27==1))){ + a12 = 3; + a25 = 1; + a9 = 17; + a2 = 9; + return -1; + } else if(((((a9==18)&&((((a2==12)&&(((input==3)&&(a16==1))&&(a20==6)))&&(a25==1))&&(a27==1)))&&(a12==3))&&(a15==1))){ + a12 = 5; + a9 = 16; + a2 = 10; + return -1; + } else if(((a15==1)&&((a9==18)&&((a16==1)&&((((a12==5)&&(((input==5)&&((a2==9)||(a2==10)))&&(a27==1)))&&!(a25==1))&&(a20==5)))))){ + a2 = 9; + a12 = 2; + a9 = 16; + a25 = 1; + return -1; + } else if(((a27==1)&&((((a20==5)&&(((a12==4)&&((a15==1)&&(!(a25==1)&&(input==2))))&&(a2==13)))&&(a16==1))&&(a9==18)))){ + a2 = 9; + a25 = 1; + a12 = 2; + a20 = 7; + return 21; + } else if(((a20==6)&&((!(a25==1)&&(((a15==1)&&(((((a12==5)&&(a2==13))||((a12==6)&&(a2==9)))&&(input==5))&&(a27==1)))&&(a9==16)))&&(a16==1)))){ + a20 = 5; + a2 = 9; + a25 = 1; + a12 = 2; + return -1; + } else if(((a20==5)&&(((a9==16)&&(((a15==1)&&((((((a12==5)&&(a2==13))||((a2==9)&&(a12==6)))||((a12==6)&&(a2==10)))&&(input==1))&&!(a25==1)))&&(a27==1)))&&(a16==1)))){ + a12 = 2; + a2 = 9; + a25 = 1; + return -1; + } else if(((((a25==1)&&(((a12==5)&&((a15==1)&&(((input==1)&&((a2==11)||((a2==9)||(a2==10))))&&(a20==6))))&&(a27==1)))&&(a9==16))&&(a16==1))){ + if((a20==5)){ + a20 = 7; + a2 = 9; + a25 = 0; + }else{ + a12 = 3; + a2 = 12; + } + return -1; + } else if((((a20==6)&&((a27==1)&&((a16==1)&&((a15==1)&&((a12==3)&&(((input==5)&&((a2==11)||(a2==12)))&&!(a25==1)))))))&&(a9==16))){ + a2 = 9; + a12 = 2; + a25 = 1; + a20 = 5; + return -1; + } else if(((a20==5)&&((a16==1)&&((a27==1)&&((((((input==6)&&((a2==13)||((a2==11)||(a2==12))))&&(a9==17))&&(a15==1))&&(a12==4))&&!(a25==1)))))){ + a2 = 11; + a25 = 1; + a12 = 5; + a9 = 18; + a20 = 6; + return 21; + } else if((((((a25==1)&&((((a16==1)&&((input==6)&&(a2==12)))&&(a9==16))&&(a12==5)))&&(a20==7))&&(a15==1))&&(a27==1))){ + a2 = 9; + a12 = 2; + a20 = 5; + return -1; + } else if((((a27==1)&&((a9==18)&&((a16==1)&&((!(a15==1)&&((a20==5)&&((input==1)&&((a2==9)||(a2==10)))))&&(a12==6)))))&&(a25==1))){ + if((a9==16)){ + a15 = 1; + a20 = 7; + a12 = 5; + a2 = 9; + a25 = 0; + a9 = 17; + }else{ + a9 = 16; + a15 = 1; + a12 = 4; + a2 = 12; + } + return -1; + } else if(((a16==1)&&((a9==18)&&(((a25==1)&&(((((input==5)&&((a2==10)||(a2==11)))&&!(a15==1))&&(a20==5))&&(a27==1)))&&(a12==5))))){ + if((a9==18)){ + a2 = 10; + a12 = 2; + a15 = 1; + }else{ + a12 = 4; + a15 = 1; + a9 = 16; + a2 = 13; + } + return -1; + } else if((((a20==6)&&((a9==17)&&(((a27==1)&&(((input==2)&&((((a2==13)&&(a12==3))||((a2==9)&&(a12==4)))||((a12==4)&&(a2==10))))&&(a16==1)))&&(a25==1))))&&(a15==1))){ + a20 = 5; + a2 = 9; + a9 = 16; + a12 = 2; + return -1; + } else if(((a9==16)&&(((((a20==6)&&(((!(a25==1)&&(input==2))&&(a2==13))&&(a12==4)))&&(a16==1))&&(a15==1))&&(a27==1)))){ + a12 = 2; + a25 = 1; + a2 = 9; + a20 = 5; + return -1; + } else if(((a9==16)&&((a16==1)&&(((a2==11)&&(((((input==2)&&(a27==1))&&!(a25==1))&&(a20==6))&&(a15==1)))&&(a12==2))))){ + a2 = 9; + a20 = 5; + a25 = 1; + return -1; + } else if((((((a9==18)&&((a27==1)&&(!(a15==1)&&(!(a25==1)&&((((a2==10)||(a2==11))||(a2==12))&&(input==4))))))&&(a12==2))&&(a16==1))&&(a20==5))){ + a12 = 4; + a2 = 13; + a9 = 17; + return -1; + } else if(((a20==5)&&((a9==16)&&((((((((a2==12)||(a2==13))&&(input==6))&&!(a25==1))&&(a12==5))&&(a16==1))&&!(a15==1))&&(a27==1))))){ + a9 = 17; + a15 = 1; + a12 = 3; + a25 = 1; + a2 = 10; + return -1; + } else if((((((a2==12)&&(((((a12==5)&&(input==5))&&(a25==1))&&(a16==1))&&(a15==1)))&&(a9==16))&&(a20==7))&&(a27==1))){ + a12 = 2; + a2 = 9; + a20 = 5; + return -1; + } else if(((a12==6)&&((a16==1)&&((a25==1)&&((a20==7)&&((a15==1)&&(((a9==16)&&((input==1)&&((a2==9)||(a2==10))))&&(a27==1)))))))){ + a12 = 2; + a2 = 9; + a20 = 5; + return -1; + } else if(((a16==1)&&((a15==1)&&(((a12==6)&&(((a20==7)&&(((input==3)&&((a2==11)||(a2==12)))&&!(a25==1)))&&(a9==18)))&&(a27==1))))){ + a20 = 6; + a2 = 10; + a9 = 17; + a25 = 1; + return 21; + } else if((((a16==1)&&(((a20==6)&&(((a27==1)&&(!(a25==1)&&((((a2==11)||(a2==12))||(a2==13))&&(input==5))))&&(a9==17)))&&(a15==1)))&&(a12==3))){ + a2 = 9; + a20 = 5; + a9 = 16; + a25 = 1; + a12 = 2; + return -1; + } else if((((a25==1)&&((a27==1)&&((a12==4)&&(((a16==1)&&(((input==5)&&((a2==10)||(a2==11)))&&(a20==7)))&&(a9==17)))))&&(a15==1))){ + a2 = 10; + a12 = 5; + a20 = 6; + a9 = 16; + return -1; + } else if(((a15==1)&&((a27==1)&&((((a25==1)&&(((input==4)&&(((a2==13)&&(a12==2))||((a12==3)&&(a2==9))))&&(a20==7)))&&(a16==1))&&(a9==18))))){ + a2 = 9; + a12 = 2; + a9 = 16; + a20 = 5; + return -1; + } else if((((a25==1)&&((((a15==1)&&((a20==6)&&(((((a2==13)&&(a12==3))||((a12==4)&&(a2==9)))||((a2==10)&&(a12==4)))&&(input==4))))&&(a9==16))&&(a27==1)))&&(a16==1))){ + if((a20==7)){ + a2 = 12; + a25 = 0; + a20 = 7; + a12 = 4; + }else{ + a2 = 12; + a12 = 3; + } + return -1; + } else if((((((a25==1)&&(((a27==1)&&((a9==18)&&((a20==7)&&(input==1))))&&(a2==11)))&&(a12==4))&&(a16==1))&&(a15==1))){ + a2 = 9; + a20 = 5; + a9 = 16; + a12 = 2; + return -1; + } else if(((a9==16)&&((a27==1)&&((!(a15==1)&&(((((input==3)&&(a2==10))&&(a20==5))&&(a16==1))&&(a12==5)))&&(a25==1))))){ + a25 = 0; + a20 = 6; + a15 = 1; + a2 = 12; + a12 = 2; + return -1; + } else if(((a27==1)&&(((a2==9)&&((a20==5)&&(((!(a15==1)&&((input==5)&&!(a25==1)))&&(a9==17))&&(a12==4))))&&(a16==1)))){ + a15 = 1; + a9 = 16; + a12 = 2; + a20 = 7; + return -1; + } else if((((((a16==1)&&(((a9==18)&&(!(a25==1)&&((input==2)&&((a2==9)||(a2==10)))))&&(a15==1)))&&(a27==1))&&(a12==5))&&(a20==5))){ + a25 = 1; + a12 = 2; + a9 = 16; + a2 = 9; + return -1; + } else if(((a20==5)&&((((((!(a15==1)&&((input==6)&&((a2==12)||(a2==13))))&&(a16==1))&&(a25==1))&&(a12==2))&&(a27==1))&&(a9==18)))){ + a2 = 12; + a12 = 5; + a9 = 17; + a20 = 7; + a15 = 1; + return -1; + } else if((((a9==16)&&((a15==1)&&(((a25==1)&&((((input==1)&&((a2==13)||((a2==11)||(a2==12))))&&(a20==7))&&(a27==1)))&&(a16==1))))&&(a12==6))){ + a12 = 2; + a20 = 5; + a2 = 10; + return -1; + } else if(((a16==1)&&((((a9==17)&&((a15==1)&&(((((a2==9)||(a2==10))&&(input==6))&&(a20==7))&&!(a25==1))))&&(a12==6))&&(a27==1)))){ + a25 = 1; + a2 = 9; + a20 = 5; + a12 = 2; + a9 = 16; + return -1; + } else if(((a9==16)&&((a20==5)&&((a12==6)&&(!(a15==1)&&((!(a25==1)&&((((a2==11)||((a2==9)||(a2==10)))&&(input==3))&&(a16==1)))&&(a27==1))))))){ + if((a2==9)){ + a2 = 9; + a9 = 17; + a15 = 1; + }else{ + a12 = 3; + a25 = 1; + a2 = 11; + a9 = 18; + a15 = 1; + } + return 26; + } else if(((a9==16)&&((((a20==7)&&(((a27==1)&&((a16==1)&&((input==4)&&(a15==1))))&&(a12==5)))&&(a25==1))&&(a2==12)))){ + a20 = 5; + a2 = 9; + a12 = 2; + return -1; + } else if(((((((a20==6)&&(((a16==1)&&(((a2==11)||((a2==9)||(a2==10)))&&(input==5)))&&(a27==1)))&&(a15==1))&&(a9==18))&&(a25==1))&&(a12==3))){ + if((a16==1)){ + a25 = 0; + a20 = 7; + a2 = 9; + a9 = 16; + a12 = 2; + }else{ + a2 = 11; + a12 = 5; + a9 = 17; + } + return -1; + } else if((((((a9==16)&&((((a2==12)&&((input==2)&&(a12==5)))&&(a20==7))&&(a25==1)))&&(a15==1))&&(a16==1))&&(a27==1))){ + a2 = 9; + a25 = 0; + a20 = 6; + return 23; + } else if((((a27==1)&&(((((((input==3)&&(a16==1))&&(a25==1))&&!(a15==1))&&(a2==12))&&(a20==5))&&(a12==3)))&&(a9==17))){ + a12 = 2; + a15 = 1; + return -1; + } else if(((a15==1)&&((a9==17)&&((!(a25==1)&&((a12==3)&&(((a2==10)&&((a20==5)&&(input==5)))&&(a16==1))))&&(a27==1))))){ + a25 = 1; + a2 = 9; + a12 = 5; + a20 = 6; + return 25; + } else if(((((a9==18)&&((a27==1)&&((a16==1)&&((((input==3)&&((a2==11)||(a2==12)))&&!(a25==1))&&(a20==6)))))&&(a15==1))&&(a12==6))){ + a9 = 16; + a2 = 9; + a25 = 1; + a12 = 2; + a20 = 5; + return -1; + } else if((((a20==5)&&((((a2==12)&&(((a27==1)&&((input==2)&&(a12==3)))&&(a9==17)))&&(a16==1))&&(a25==1)))&&!(a15==1))){ + if((a20==7)){ + a12 = 2; + a15 = 1; + a2 = 9; + a9 = 16; + }else{ + a15 = 1; + a2 = 11; + a12 = 5; + } + return -1; + } else if(((a12==2)&&((a9==16)&&((((a25==1)&&((((((a2==10)||(a2==11))||(a2==12))&&(input==4))&&(a16==1))&&(a20==5)))&&(a27==1))&&!(a15==1))))){ + a2 = 9; + a15 = 1; + a9 = 18; + a12 = 6; + return 25; + } else if(((a16==1)&&((a27==1)&&(((((((a15==1)&&((a2==13)&&(a9==18)))&&(a12==6))&&!(a25==1))&&(a20==7))||((a20==5)&&((a25==1)&&((a12==2)&&(((a9==16)&&(a2==9))&&!(a15==1))))))&&(input==4))))){ + a9 = 17; + a25 = 0; + a15 = 1; + a2 = 13; + a20 = 6; + a12 = 4; + return -1; + } else if(((a15==1)&&(((((a12==5)&&((a25==1)&&(((input==3)&&((a2==12)||(a2==13)))&&(a27==1))))&&(a20==6))&&(a16==1))&&(a9==16)))){ + if((a16==1)){ + a12 = 3; + a2 = 11; + a9 = 18; + a20 = 7; + }else{ + a2 = 9; + a12 = 4; + } + return -1; + } else if(((a15==1)&&((((a16==1)&&(((a25==1)&&(((((a2==10)||(a2==11))||(a2==12))&&(input==2))&&(a9==17)))&&(a20==6)))&&(a27==1))&&(a12==3)))){ + a2 = 9; + a20 = 5; + a9 = 16; + a12 = 2; + return -1; + } else if(((a16==1)&&((((a12==2)&&(((a9==18)&&((a2==13)&&((input==6)&&!(a25==1))))&&(a27==1)))&&!(a15==1))&&(a20==5)))){ + a2 = 10; + a15 = 1; + a25 = 1; + return 21; + } return calculate_output3(input); + } + + int calculate_output3(int input) { + if((((((a9==17)&&(((!(a15==1)&&((input==5)&&(a12==2)))&&!(a25==1))&&(a2==12)))&&(a20==5))&&(a16==1))&&(a27==1))){ + a25 = 1; + a15 = 1; + a12 = 4; + a20 = 7; + return -1; + } else if(((a16==1)&&((a27==1)&&((a12==4)&&((!(a15==1)&&((!(a25==1)&&((input==1)&&(((a2==10)||(a2==11))||(a2==12))))&&(a9==16)))&&(a20==5)))))){ + a25 = 1; + a15 = 1; + a2 = 11; + a9 = 17; + a12 = 6; + return -1; + } else if((((a12==4)&&(((((((a9==18)&&(input==6))&&(a16==1))&&(a27==1))&&(a2==10))&&(a15==1))&&(a25==1)))&&(a20==7))){ + a9 = 16; + a2 = 12; + a12 = 5; + a20 = 6; + return -1; + } else if(((((a25==1)&&((a27==1)&&(((a9==18)&&(((((a2==11)||(a2==12))||(a2==13))&&(input==4))&&(a16==1)))&&(a12==4))))&&(a20==6))&&(a15==1))){ + a9 = 16; + a12 = 5; + a2 = 11; + return -1; + } else if(((a9==18)&&((((a15==1)&&((a20==5)&&((a12==4)&&(((((a2==10)||(a2==11))||(a2==12))&&(input==2))&&(a25==1)))))&&(a27==1))&&(a16==1)))){ + a9 = 16; + a2 = 9; + a12 = 2; + return -1; + } else if(((a9==16)&&(((((a27==1)&&(!(a15==1)&&(((((a12==3)&&(a2==12))||((a12==3)&&(a2==13)))||((a2==9)&&(a12==4)))&&(input==5))))&&(a25==1))&&(a16==1))&&(a20==5)))){ + a15 = 1; + a12 = 2; + a2 = 9; + return -1; + } else if((((a20==5)&&((((a9==18)&&((!(a25==1)&&(((a2==11)||(a2==12))&&(input==2)))&&(a16==1)))&&(a12==5))&&!(a15==1)))&&(a27==1))){ + a25 = 1; + a9 = 16; + a15 = 1; + a2 = 10; + return -1; + } else if(((a12==5)&&(!(a25==1)&&((a20==5)&&(((!(a15==1)&&(((input==4)&&((a2==12)||(a2==13)))&&(a16==1)))&&(a27==1))&&(a9==16)))))){ + a2 = 10; + a12 = 6; + a15 = 1; + a20 = 6; + a9 = 17; + return -1; + } else if(((((((a20==7)&&(((a12==5)&&((input==4)&&(a9==17)))&&(a25==1)))&&(a16==1))&&(a27==1))&&(a15==1))&&(a2==9))){ + a9 = 18; + a20 = 5; + a12 = 6; + return 25; + } else if((((a15==1)&&(((a16==1)&&(((a25==1)&&((input==6)&&(((a12==4)&&(a2==10))||(((a12==3)&&(a2==13))||((a12==4)&&(a2==9))))))&&(a9==18)))&&(a27==1)))&&(a20==6))){ + a2 = 10; + a12 = 6; + a9 = 16; + return -1; + } else if(((a12==2)&&(((a15==1)&&((a20==6)&&(((a16==1)&&((a25==1)&&((input==1)&&(((a2==9)||(a2==10))||(a2==11)))))&&(a9==16))))&&(a27==1)))){ + a20 = 5; + a2 = 9; + return -1; + } else if(((a20==6)&&((a15==1)&&((a25==1)&&(((a12==2)&&((a2==12)&&(((a9==16)&&(input==3))&&(a27==1))))&&(a16==1)))))){ + a25 = 0; + a2 = 13; + a12 = 5; + a9 = 18; + return -1; + } else if((((((a16==1)&&((((((a12==5)&&(a2==13))||((a2==9)&&(a12==6)))&&(input==3))&&(a20==5))&&(a15==1)))&&(a27==1))&&!(a25==1))&&(a9==17))){ + a12 = 4; + a2 = 13; + a20 = 6; + a9 = 16; + return 23; + } else if((((a9==18)&&(((a15==1)&&((a20==5)&&((!(a25==1)&&(((a2==10)||(a2==11))&&(input==1)))&&(a27==1))))&&(a12==4)))&&(a16==1))){ + a2 = 9; + a25 = 1; + a12 = 2; + a9 = 16; + return -1; + } else if((((((((((((a2==10)||(a2==11))||(a2==12))&&(input==3))&&(a20==5))&&(a12==2))&&(a27==1))&&(a9==18))&&!(a15==1))&&!(a25==1))&&(a16==1))){ + a25 = 1; + a2 = 10; + a12 = 6; + return -1; + } else if((!(a15==1)&&(((((a9==18)&&(((((a2==11)||(a2==12))&&(input==3))&&(a20==5))&&(a12==5)))&&!(a25==1))&&(a16==1))&&(a27==1)))){ + a2 = 12; + a25 = 1; + a9 = 17; + a12 = 2; + a15 = 1; + return -1; + } else if(((((a9==16)&&((a27==1)&&((a20==6)&&((a16==1)&&(((a12==2)&&(input==2))&&(a2==12))))))&&(a25==1))&&(a15==1))){ + a2 = 9; + a20 = 5; + return -1; + } else if(((a25==1)&&((a20==7)&&((a9==18)&&((a27==1)&&((a16==1)&&(((((a2==10)&&(a12==6))||(((a2==13)&&(a12==5))||((a2==9)&&(a12==6))))&&(input==5))&&(a15==1)))))))){ + a20 = 5; + a9 = 16; + a2 = 9; + a12 = 2; + return -1; + } else if(((a25==1)&&((a27==1)&&((a16==1)&&((a20==5)&&((a9==17)&&(((((a12==6)&&(a2==10))||(((a2==13)&&(a12==5))||((a2==9)&&(a12==6))))&&(input==5))&&!(a15==1)))))))){ + a12 = 5; + a9 = 16; + a15 = 1; + a2 = 11; + return -1; + } else if(((!(a25==1)&&((a20==5)&&(((a16==1)&&((((input==1)&&((a2==11)||(a2==12)))&&(a27==1))&&(a9==18)))&&!(a15==1))))&&(a12==5))){ + if((a25==1)){ + a25 = 1; + a9 = 16; + a2 = 9; + a12 = 3; + a15 = 1; + }else{ + a15 = 1; + a9 = 16; + a25 = 1; + a20 = 6; + a2 = 13; + a12 = 3; + } + return -1; + } else if(((((a20==7)&&(((((((a2==10)||(a2==11))&&(input==2))&&(a27==1))&&!(a25==1))&&(a12==5))&&(a9==18)))&&(a16==1))&&(a15==1))){ + a9 = 16; + a25 = 1; + a2 = 12; + a12 = 4; + return 23; + } else if(((a12==2)&&((((a25==1)&&(((a20==5)&&(!(a15==1)&&(((a2==10)||(a2==11))&&(input==3))))&&(a9==18)))&&(a16==1))&&(a27==1)))){ + a2 = 12; + a9 = 16; + a12 = 6; + a25 = 0; + return 21; + } else if(((((a16==1)&&(((!(a25==1)&&(((((a12==2)&&(a2==13))||((a12==3)&&(a2==9)))||((a12==3)&&(a2==10)))&&(input==5)))&&(a27==1))&&(a20==5)))&&!(a15==1))&&(a9==17))){ + a15 = 1; + a9 = 16; + a2 = 9; + a20 = 7; + a25 = 1; + a12 = 4; + return 24; + } else if(((a20==7)&&(((a12==3)&&(((a16==1)&&((!(a25==1)&&(((a2==10)||(a2==11))&&(input==4)))&&(a27==1)))&&(a15==1)))&&(a9==18)))){ + a20 = 5; + a12 = 2; + a2 = 9; + a25 = 1; + a9 = 16; + return -1; + } else if(((a27==1)&&(((((a9==18)&&((a15==1)&&((((a2==10)&&(a12==5))||(((a2==13)&&(a12==4))||((a2==9)&&(a12==5))))&&(input==1))))&&(a25==1))&&(a20==5))&&(a16==1)))){ + a25 = 0; + a12 = 2; + a2 = 12; + a20 = 7; + return 26; + } else if((((((a27==1)&&((((((a9==16)&&(a2==10))&&(a12==2))&&!(a25==1))||(((((a2==13)&&(a9==18))&&(a12==6))&&(a25==1))||((((a9==16)&&(a2==9))&&(a12==2))&&!(a25==1))))&&(input==4)))&&(a15==1))&&(a20==6))&&(a16==1))){ + a2 = 10; + a12 = 4; + a20 = 7; + a25 = 1; + a9 = 18; + return -1; + } else if((((((a16==1)&&((a20==6)&&(((((a2==13)||((a2==11)||(a2==12)))&&(input==3))&&(a9==17))&&(a12==4))))&&(a15==1))&&!(a25==1))&&(a27==1))){ + a20 = 5; + a9 = 16; + a12 = 2; + a25 = 1; + a2 = 9; + return -1; + } else if(((a2==13)&&((a25==1)&&(((((a12==6)&&((a9==17)&&((input==2)&&(a27==1))))&&(a20==6))&&(a15==1))&&(a16==1))))){ + a2 = 9; + a9 = 16; + a12 = 2; + a20 = 5; + return -1; + } else if(((a9==17)&&(((a12==3)&&((a16==1)&&((a20==7)&&((a15==1)&&(((input==2)&&(((a2==10)||(a2==11))||(a2==12)))&&!(a25==1))))))&&(a27==1)))){ + a20 = 5; + a2 = 9; + a25 = 1; + a12 = 2; + a9 = 16; + return -1; + } else if((((a9==17)&&(((a25==1)&&(((a16==1)&&((((a12==4)&&(a2==13))||((a2==9)&&(a12==5)))&&(input==2)))&&(a27==1)))&&(a15==1)))&&(a20==6))){ + a20 = 5; + a12 = 2; + a2 = 9; + a9 = 16; + return -1; + } else if((((a9==17)&&((((a12==2)&&((!(a25==1)&&((input==3)&&(a15==1)))&&(a16==1)))&&(a2==12))&&(a20==6)))&&(a27==1))){ + a2 = 9; + a25 = 1; + a20 = 5; + a9 = 16; + return -1; + } else if((((a20==6)&&((a9==17)&&((a27==1)&&((a16==1)&&((a15==1)&&((input==6)&&(((a2==10)&&(a12==4))||(((a12==3)&&(a2==13))||((a12==4)&&(a2==9))))))))))&&(a25==1))){ + a20 = 5; + a12 = 4; + a9 = 16; + a2 = 11; + a15 = 0; + return -1; + } else if(((a16==1)&&((a25==1)&&(!(a15==1)&&((((a27==1)&&((input==1)&&((((a2==12)&&(a12==3))||((a12==3)&&(a2==13)))||((a2==9)&&(a12==4)))))&&(a20==5))&&(a9==16)))))){ + a12 = 2; + a15 = 1; + a2 = 9; + return -1; + } else if(((a9==18)&&((a20==7)&&(((a12==5)&&((a27==1)&&(((a16==1)&&((a15==1)&&(input==3)))&&(a25==1))))&&(a2==12))))){ + a2 = 9; + a9 = 16; + a20 = 5; + a12 = 2; + return -1; + } else if((((((!(a15==1)&&(((a9==16)&&(((a2==9)||(a2==10))&&(input==4)))&&(a16==1)))&&!(a25==1))&&(a20==5))&&(a12==3))&&(a27==1))){ + a12 = 2; + a15 = 1; + a9 = 17; + a20 = 7; + a2 = 9; + return 23; + } else if(((a20==7)&&((((a12==5)&&(((a9==17)&&((a16==1)&&(((a2==12)||(a2==13))&&(input==5))))&&(a25==1)))&&(a27==1))&&(a15==1)))){ + a2 = 12; + a12 = 4; + a9 = 16; + a20 = 6; + return -1; + } else if(((!(a25==1)&&((a20==5)&&((a27==1)&&((a16==1)&&(((input==2)&&(((a2==13)&&(a12==5))||((a12==6)&&(a2==9))))&&(a9==17))))))&&!(a15==1))){ + if((a15==1)){ + a2 = 10; + a9 = 18; + a12 = 6; + }else{ + a25 = 1; + a2 = 11; + a12 = 3; + a15 = 1; + } + return -1; + } else if((((a16==1)&&((!(a25==1)&&((a20==5)&&(((a15==1)&&(((a2==9)||(a2==10))&&(input==1)))&&(a9==17))))&&(a12==5)))&&(a27==1))){ + a20 = 7; + a2 = 11; + a9 = 18; + a12 = 4; + return 23; + } else if(((a20==6)&&((a15==1)&&((((((((a2==9)||(a2==10))&&(input==3))&&(a16==1))&&(a25==1))&&(a9==18))&&(a27==1))&&(a12==5))))){ + a12 = 2; + a20 = 5; + a9 = 16; + a2 = 9; + return -1; + } else if((((a16==1)&&((((a9==18)&&((a27==1)&&((input==1)&&(((a2==13)&&(a12==5))||((a2==9)&&(a12==6))))))&&!(a25==1))&&(a20==5)))&&!(a15==1))){ + a2 = 12; + a15 = 1; + a20 = 7; + a12 = 4; + a25 = 1; + a9 = 16; + return -1; + } else if(((((a16==1)&&(!(a25==1)&&((a27==1)&&(((a9==17)&&((input==6)&&((a2==11)||(a2==12))))&&(a12==6)))))&&(a20==5))&&(a15==1))){ + a12 = 2; + a2 = 9; + a9 = 16; + a25 = 1; + return -1; + } else if((((a27==1)&&(((((a20==5)&&(((a16==1)&&(input==5))&&(a12==6)))&&!(a15==1))&&(a9==16))&&!(a25==1)))&&(a2==12))){ + a25 = 1; + a2 = 11; + a12 = 3; + a15 = 1; + a20 = 7; + a9 = 18; + return -1; + } else if(((a15==1)&&(((((a27==1)&&((((input==3)&&((a2==11)||((a2==9)||(a2==10))))&&(a12==2))&&(a9==16)))&&(a16==1))&&(a25==1))&&(a20==6)))){ + a9 = 18; + a2 = 10; + return 21; + } else if((((((a25==1)&&((a20==6)&&(((input==4)&&(((a12==6)&&(a2==10))||(((a2==13)&&(a12==5))||((a2==9)&&(a12==6)))))&&(a15==1))))&&(a16==1))&&(a9==18))&&(a27==1))){ + a2 = 12; + a9 = 17; + a12 = 5; + return -1; + } else if((((a16==1)&&(((a25==1)&&((a20==7)&&((a27==1)&&((a2==13)&&((input==4)&&(a15==1))))))&&(a12==3)))&&(a9==18))){ + a2 = 9; + a12 = 2; + a20 = 5; + a9 = 16; + return -1; + } else if(((a9==18)&&(!(a25==1)&&((a20==7)&&((a27==1)&&(((a12==2)&&((a16==1)&&((input==2)&&((a2==11)||((a2==9)||(a2==10))))))&&(a15==1))))))){ + a25 = 1; + a20 = 6; + a9 = 16; + a12 = 4; + a2 = 9; + return 21; + } else if(((a9==18)&&(((a15==1)&&((a16==1)&&(((!(a25==1)&&(((a2==13)||((a2==11)||(a2==12)))&&(input==1)))&&(a12==6))&&(a27==1))))&&(a20==5)))){ + a2 = 13; + a12 = 4; + a20 = 6; + return -1; + } else if(((a20==5)&&(((((((((a12==3)&&(a2==13))||((a12==4)&&(a2==9)))&&(input==2))&&!(a25==1))&&(a9==18))&&!(a15==1))&&(a27==1))&&(a16==1)))){ + a15 = 1; + a12 = 4; + a9 = 16; + a2 = 10; + a25 = 1; + return 21; + } else if(((a16==1)&&(((((a27==1)&&(((a12==5)&&((input==6)&&!(a25==1)))&&(a15==1)))&&(a2==13))&&(a20==6))&&(a9==18)))){ + a20 = 5; + a25 = 1; + a2 = 9; + a9 = 16; + a12 = 2; + return -1; + } else if(((((((a20==7)&&((((input==6)&&((a2==9)||(a2==10)))&&(a9==16))&&(a16==1)))&&(a27==1))&&(a12==6))&&(a25==1))&&(a15==1))){ + a2 = 9; + a20 = 5; + a12 = 2; + return -1; + } else if(((!(a15==1)&&((((a12==6)&&((a16==1)&&((a9==18)&&(((a2==9)||(a2==10))&&(input==4)))))&&(a27==1))&&(a25==1)))&&(a20==5))){ + a2 = 9; + a25 = 0; + a9 = 17; + a12 = 5; + return -1; + } else if(((a16==1)&&(!(a25==1)&&(((a12==3)&&((a27==1)&&((a9==17)&&((((a2==12)||((a2==10)||(a2==11)))&&(input==4))&&(a15==1)))))&&(a20==7))))){ + a12 = 4; + a25 = 1; + a9 = 16; + a2 = 13; + a20 = 6; + return 23; + } else if(((a9==16)&&(((a15==1)&&((a16==1)&&(((a27==1)&&((((a12==4)&&(a2==9))||(((a2==12)&&(a12==3))||((a2==13)&&(a12==3))))&&(input==2)))&&!(a25==1))))&&(a20==7)))){ + a9 = 17; + a12 = 2; + a2 = 9; + a25 = 1; + return 25; + } else if(((((((a16==1)&&((a15==1)&&((((a2==10)||(a2==11))&&(input==1))&&(a20==7))))&&(a25==1))&&(a27==1))&&(a9==17))&&(a12==2))){ + a20 = 5; + a9 = 16; + a2 = 9; + return -1; + } else if(((((a9==18)&&((a27==1)&&((a15==1)&&((a25==1)&&((((a2==10)&&(a12==5))||(((a2==13)&&(a12==4))||((a2==9)&&(a12==5))))&&(input==4))))))&&(a16==1))&&(a20==5))){ + a9 = 16; + a2 = 10; + a12 = 3; + a25 = 0; + return 26; + } else if((((((a9==18)&&(!(a15==1)&&((a2==12)&&((a16==1)&&((input==5)&&(a27==1))))))&&(a25==1))&&(a20==5))&&(a12==3))){ + a12 = 2; + a9 = 17; + a2 = 13; + a15 = 1; + return -1; + } else if(((a15==1)&&(((a20==6)&&((((a25==1)&&((a2==13)&&((a27==1)&&(input==1))))&&(a12==2))&&(a9==16)))&&(a16==1)))){ + a20 = 5; + a2 = 9; + return -1; + } else if(((a27==1)&&(!(a25==1)&&(((a15==1)&&((((input==2)&&(((a12==2)&&(a2==13))||((a2==9)&&(a12==3))))&&(a16==1))&&(a20==7)))&&(a9==18))))){ + a20 = 6; + a2 = 11; + a25 = 1; + a9 = 17; + a12 = 6; + return 23; + } else if(((a9==18)&&(((a16==1)&&((((((((a2==12)&&(a12==4))||((a12==4)&&(a2==13)))||((a2==9)&&(a12==5)))&&(input==1))&&!(a25==1))&&(a27==1))&&(a20==6)))&&(a15==1)))){ + a9 = 16; + a12 = 2; + a2 = 9; + a20 = 5; + a25 = 1; + return -1; + } else if(((((!(a25==1)&&((a9==16)&&((a15==1)&&(((((a12==2)&&(a2==13))||((a12==3)&&(a2==9)))||((a2==10)&&(a12==3)))&&(input==3)))))&&(a20==6))&&(a27==1))&&(a16==1))){ + a25 = 1; + a12 = 6; + a9 = 18; + a2 = 9; + return 21; + } else if((!(a15==1)&&(!(a25==1)&&((a16==1)&&((a27==1)&&((a20==5)&&((a12==6)&&((a9==16)&&(((a2==11)||((a2==9)||(a2==10)))&&(input==1)))))))))){ + if((a27==1)){ + a15 = 1; + a9 = 18; + a20 = 6; + a12 = 5; + a25 = 1; + a2 = 10; + }else{ + a25 = 1; + a12 = 5; + a9 = 17; + a15 = 1; + a2 = 12; + } + return -1; + } else if((((a15==1)&&(((a25==1)&&(((a9==16)&&((a20==7)&&(((a2==12)||(a2==13))&&(input==3))))&&(a27==1)))&&(a12==3)))&&(a16==1))){ + a2 = 9; + a12 = 2; + a20 = 5; + return -1; + } else if(((((((a20==6)&&((a15==1)&&((input==2)&&(((a12==3)&&(a2==13))||((a12==4)&&(a2==9))))))&&(a9==16))&&(a16==1))&&!(a25==1))&&(a27==1))){ + a20 = 5; + a25 = 1; + a2 = 9; + a12 = 2; + return -1; + } else if((((!(a15==1)&&(!(a25==1)&&(((a27==1)&&((a12==5)&&(((a2==12)||(a2==13))&&(input==5))))&&(a16==1))))&&(a9==16))&&(a20==5))){ + a15 = 1; + a25 = 1; + a12 = 6; + a9 = 17; + a2 = 12; + return -1; + } else if((((a20==5)&&((!(a25==1)&&((((input==3)&&(((a12==3)&&(a2==9))||(((a2==12)&&(a12==2))||((a2==13)&&(a12==2)))))&&(a16==1))&&(a27==1)))&&(a15==1)))&&(a9==17))){ + a12 = 4; + a20 = 6; + a25 = 1; + a2 = 12; + return 25; + } else if((((a16==1)&&((((((((a2==11)||(a2==12))&&(input==6))&&!(a25==1))&&(a27==1))&&(a12==6))&&(a15==1))&&(a20==5)))&&(a9==16))){ + a25 = 1; + a12 = 3; + a20 = 6; + a2 = 11; + return 26; + } else if((((((a25==1)&&(((a16==1)&&((a12==3)&&((input==4)&&(((a2==10)||(a2==11))||(a2==12)))))&&(a9==17)))&&(a15==1))&&(a20==6))&&(a27==1))){ + a2 = 10; + return 24; + } else if(((a20==5)&&(((((((input==6)&&((((a2==12)&&(a12==4))||((a12==4)&&(a2==13)))||((a12==5)&&(a2==9))))&&(a16==1))&&(a27==1))&&!(a25==1))&&(a9==16))&&(a15==1)))){ + a2 = 9; + a25 = 1; + a12 = 2; + return -1; + } else if((((a9==17)&&(((a25==1)&&((a20==5)&&(((a12==5)&&((input==4)&&(((a2==10)||(a2==11))||(a2==12))))&&(a16==1))))&&(a27==1)))&&!(a15==1))){ + a12 = 4; + a2 = 9; + a20 = 7; + a15 = 1; + a9 = 16; + return -1; + } else if((((a25==1)&&(((((a27==1)&&((((a12==2)&&(a2==13))||((a12==3)&&(a2==9)))&&(input==2)))&&(a15==1))&&(a20==7))&&(a9==18)))&&(a16==1))){ + a2 = 9; + a9 = 16; + a12 = 2; + a20 = 5; + return -1; + } else if(((((a16==1)&&(((!(a25==1)&&(((input==2)&&((a2==9)||(a2==10)))&&(a9==16)))&&!(a15==1))&&(a27==1)))&&(a20==5))&&(a12==3))){ + a2 = 9; + a12 = 6; + return -1; + } else if(((a25==1)&&((a16==1)&&(((a20==7)&&((a27==1)&&(((input==5)&&(((a2==10)&&(a12==3))||(((a12==2)&&(a2==13))||((a12==3)&&(a2==9)))))&&(a9==17))))&&(a15==1))))){ + a2 = 13; + a20 = 5; + a12 = 3; + return -1; + } else if((((a27==1)&&((a16==1)&&(((a15==1)&&(((input==6)&&(((a12==4)&&(a2==10))||(((a2==13)&&(a12==3))||((a2==9)&&(a12==4)))))&&(a20==5)))&&!(a25==1))))&&(a9==17))){ + a9 = 18; + a25 = 1; + a2 = 9; + a12 = 4; + a20 = 6; + return 23; + } else if(((a2==11)&&(((a16==1)&&((a12==4)&&(((((input==3)&&(a20==7))&&(a15==1))&&(a27==1))&&(a25==1))))&&(a9==18)))){ + a12 = 2; + a20 = 5; + a9 = 16; + a2 = 9; + return -1; + } else if(((a16==1)&&(((a27==1)&&(((a9==18)&&(((((a2==10)||(a2==11))&&(input==2))&&(a12==2))&&(a25==1)))&&!(a15==1)))&&(a20==5)))){ + a9 = 17; + a15 = 1; + a2 = 9; + return -1; + } else if((((a12==3)&&((((((a16==1)&&((input==3)&&((a2==9)||(a2==10))))&&(a9==16))&&(a20==5))&&!(a25==1))&&!(a15==1)))&&(a27==1))){ + a2 = 12; + a15 = 1; + a25 = 1; + return -1; + } else if((((((((a27==1)&&((((a2==12)||((a2==10)||(a2==11)))&&(input==3))&&(a12==2)))&&(a16==1))&&!(a25==1))&&(a9==16))&&(a15==1))&&(a20==7))){ + a25 = 1; + a20 = 5; + a2 = 9; + return -1; + } else if(((a20==7)&&(((a9==18)&&(!(a25==1)&&((a27==1)&&((a16==1)&&((input==4)&&(((a12==2)&&(a2==13))||((a2==9)&&(a12==3))))))))&&(a15==1)))){ + a25 = 1; + a12 = 2; + a2 = 9; + a9 = 16; + a20 = 5; + return -1; + } else if((!(a25==1)&&(((a12==5)&&(((a9==18)&&(((a16==1)&&((a20==6)&&(input==3)))&&(a27==1)))&&(a2==13)))&&(a15==1)))){ + a2 = 9; + a9 = 16; + a25 = 1; + a20 = 5; + a12 = 2; + return -1; + } else if(((a27==1)&&(!(a15==1)&&((a9==17)&&(!(a25==1)&&((a20==5)&&((a16==1)&&(((((a2==13)&&(a12==2))||((a2==9)&&(a12==3)))||((a2==10)&&(a12==3)))&&(input==6))))))))){ + if((a25==1)){ + a2 = 13; + a12 = 6; + }else{ + a25 = 1; + a12 = 3; + a2 = 10; + } + return -1; + } else if(((a25==1)&&((a9==18)&&((a16==1)&&(((a15==1)&&((a20==7)&&(((input==2)&&((a2==10)||(a2==11)))&&(a12==5))))&&(a27==1)))))){ + a9 = 16; + a2 = 13; + a20 = 6; + a12 = 3; + return 21; + } else if((!(a25==1)&&((a12==6)&&(((a15==1)&&((a16==1)&&((a2==10)&&((a9==18)&&((a27==1)&&(input==4))))))&&(a20==7))))){ + a9 = 16; + a25 = 1; + a20 = 5; + a2 = 9; + a12 = 2; + return -1; + } else if(((a9==16)&&((((a2==13)&&((a16==1)&&((a27==1)&&((a12==5)&&((a20==7)&&(input==3))))))&&(a25==1))&&(a15==1)))){ + a12 = 2; + a2 = 9; + a20 = 5; + return -1; + } else if(((a20==7)&&(((a27==1)&&((a15==1)&&(((a25==1)&&(((input==6)&&(((a2==9)||(a2==10))||(a2==11)))&&(a12==6)))&&(a9==17))))&&(a16==1)))){ + a9 = 16; + a20 = 5; + a12 = 2; + a2 = 9; + return -1; + } else if(((a15==1)&&((((((((input==4)&&((a2==10)||(a2==11)))&&(a27==1))&&(a16==1))&&(a12==2))&&(a20==7))&&(a9==17))&&(a25==1)))){ + a20 = 5; + a2 = 9; + a9 = 16; + return -1; + } else if(((a20==5)&&((((a12==5)&&(((a25==1)&&(((input==1)&&!(a15==1))&&(a2==11)))&&(a16==1)))&&(a27==1))&&(a9==16)))){ + if((a25==1)){ + a12 = 6; + a2 = 12; + a25 = 0; + }else{ + a20 = 6; + a25 = 0; + a15 = 1; + a9 = 18; + a12 = 4; + } + return -1; + } else if(((((a20==5)&&((a27==1)&&((a16==1)&&(!(a15==1)&&((a9==18)&&(((a2==12)||((a2==10)||(a2==11)))&&(input==1)))))))&&!(a25==1))&&(a12==2))){ + a9 = 16; + a15 = 1; + a2 = 11; + a20 = 6; + return 23; + } else if(((((a9==16)&&((a27==1)&&((a12==4)&&(((a25==1)&&((input==1)&&((a2==10)||(a2==11))))&&(a20==5)))))&&!(a15==1))&&(a16==1))){ + a2 = 9; + a12 = 2; + a15 = 1; + return -1; + } else if(((((((a15==1)&&((a20==6)&&((a27==1)&&(((a2==9)||(a2==10))&&(input==3)))))&&(a12==6))&&(a9==17))&&!(a25==1))&&(a16==1))){ + a9 = 16; + a2 = 9; + a12 = 2; + a25 = 1; + a20 = 5; + return -1; + } else if(((a12==5)&&((a25==1)&&(((a9==16)&&((a27==1)&&((a2==12)&&(((a20==5)&&(input==1))&&!(a15==1)))))&&(a16==1))))){ + if((a27==1)){ + a2 = 13; + a15 = 1; + a12 = 6; + }else{ + a15 = 1; + a12 = 4; + a9 = 17; + } + return -1; + } else if((!(a15==1)&&((a25==1)&&((((a16==1)&&((input==5)&&((((a12==6)&&((a9==17)&&(a2==12)))||(((a9==17)&&(a2==13))&&(a12==6)))||((a12==2)&&((a2==9)&&(a9==18))))))&&(a27==1))&&(a20==5))))){ + if((a15==1)){ + a15 = 1; + a2 = 9; + a12 = 5; + a20 = 6; + a9 = 17; + }else{ + a9 = 16; + a15 = 1; + a2 = 12; + a12 = 5; + } + return -1; + } else if(((a20==5)&&((a25==1)&&(((a2==13)&&((a27==1)&&(!(a15==1)&&((a16==1)&&((input==3)&&(a9==18))))))&&(a12==3))))){ + a12 = 6; + a9 = 17; + a2 = 12; + a15 = 1; + return -1; + } else if((((a16==1)&&((((a27==1)&&((a9==17)&&((a20==6)&&((input==6)&&((a2==9)||(a2==10))))))&&(a15==1))&&!(a25==1)))&&(a12==6))){ + a12 = 2; + a9 = 16; + a25 = 1; + a2 = 9; + a20 = 5; + return -1; + } else if(((a15==1)&&(((((a25==1)&&(((a16==1)&&(((a2==11)||(a2==12))&&(input==3)))&&(a27==1)))&&(a12==6))&&(a20==6))&&(a9==18)))){ + a2 = 12; + a12 = 4; + a9 = 16; + return -1; + } else if(((a12==4)&&((!(a25==1)&&(((a16==1)&&((a9==17)&&((a15==1)&&((((a2==11)||(a2==12))||(a2==13))&&(input==4)))))&&(a20==6)))&&(a27==1)))){ + a12 = 2; + a9 = 16; + a25 = 1; + a20 = 5; + a2 = 9; + return -1; + } else if((!(a25==1)&&(((a12==4)&&(((a15==1)&&((a27==1)&&(((input==5)&&((a2==9)||(a2==10)))&&(a20==6))))&&(a16==1)))&&(a9==17)))){ + a2 = 9; + a12 = 2; + a9 = 16; + a20 = 5; + a25 = 1; + return -1; + } else if(((a27==1)&&((a2==9)&&((!(a25==1)&&((a9==16)&&((a12==3)&&((a20==5)&&((a16==1)&&(input==3))))))&&(a15==1))))){ + a2 = 12; + a12 = 4; + a9 = 18; + return 23; + } else if(((((((a20==5)&&((a12==5)&&((a9==16)&&((input==2)&&((a2==12)||(a2==13))))))&&(a27==1))&&(a16==1))&&!(a15==1))&&!(a25==1))){ + a25 = 1; + a12 = 2; + a2 = 11; + a9 = 17; + a15 = 1; + return -1; + } else if(((a16==1)&&((a9==16)&&((!(a25==1)&&(((((a27==1)&&(input==4))&&(a12==2))&&(a2==13))&&(a15==1)))&&(a20==7))))){ + a20 = 5; + a2 = 9; + a25 = 1; + return -1; + } else if((!(a25==1)&&((a9==17)&&(((((a16==1)&&((a15==1)&&(((a2==9)||(a2==10))&&(input==6))))&&(a27==1))&&(a12==2))&&(a20==7))))){ + a2 = 12; + a20 = 6; + a12 = 4; + a25 = 1; + return -1; + } else if((((((((a16==1)&&(((a2==12)&&(input==1))&&(a25==1)))&&(a27==1))&&(a9==16))&&(a20==6))&&(a12==2))&&(a15==1))){ + a2 = 9; + a20 = 5; + return -1; + } else if((((a27==1)&&((a2==10)&&(((!(a15==1)&&(((a9==17)&&(input==1))&&(a16==1)))&&(a20==5))&&!(a25==1))))&&(a12==4))){ + a12 = 3; + a9 = 16; + a25 = 1; + a15 = 1; + return -1; + } else if((((a16==1)&&((!(a25==1)&&((a9==17)&&((a20==7)&&((a12==6)&&((input==2)&&((a2==13)||((a2==11)||(a2==12))))))))&&(a15==1)))&&(a27==1))){ + a2 = 12; + a12 = 3; + a25 = 1; + a20 = 6; + a9 = 18; + return 25; + } else if(((a27==1)&&((a16==1)&&((((!(a25==1)&&((((a2==13)&&(a9==18))&&(a15==1))&&(a12==6)))&&(a20==7))||((((a12==2)&&(!(a15==1)&&((a2==9)&&(a9==16))))&&(a25==1))&&(a20==5)))&&(input==1))))){ + a9 = 16; + a25 = 1; + a20 = 5; + a2 = 13; + a12 = 3; + a15 = 0; + return -1; + } else if((!(a15==1)&&((a16==1)&&(((((a20==5)&&(((a9==16)&&(input==4))&&(a25==1)))&&(a12==5))&&(a2==12))&&(a27==1))))){ + if((a15==1)){ + a15 = 1; + a2 = 11; + a12 = 4; + }else{ + a2 = 13; + a9 = 18; + a15 = 1; + a12 = 4; + a25 = 0; + } + return -1; + } else if((((((a9==18)&&((((a20==5)&&(((a2==9)||(a2==10))&&(input==2)))&&(a16==1))&&!(a15==1)))&&(a12==3))&&(a27==1))&&(a25==1))){ + if((a15==1)){ + a20 = 6; + a15 = 1; + a2 = 12; + }else{ + a2 = 10; + a15 = 1; + } + return 21; + } else if((((a9==17)&&(((a20==7)&&((a12==4)&&((((input==3)&&((a2==9)||(a2==10)))&&(a27==1))&&(a15==1))))&&(a16==1)))&&!(a25==1))){ + a9 = 16; + a20 = 5; + a25 = 1; + a12 = 2; + a2 = 9; + return -1; + } else if((((a12==3)&&((((a16==1)&&((((((a2==9)||(a2==10))||(a2==11))&&(input==4))&&(a9==18))&&!(a25==1)))&&(a27==1))&&(a20==6)))&&(a15==1))){ + a2 = 9; + a9 = 16; + a12 = 2; + a20 = 5; + a25 = 1; + return -1; + } else if((((((a27==1)&&((a9==18)&&(!(a25==1)&&((((a2==11)||((a2==9)||(a2==10)))&&(input==5))&&(a16==1)))))&&(a15==1))&&(a20==6))&&(a12==3))){ + a2 = 9; + a12 = 2; + a20 = 5; + a9 = 16; + a25 = 1; + return -1; + } else if((((((a12==2)&&((((a20==7)&&((input==1)&&(a15==1)))&&(a27==1))&&(a25==1)))&&(a2==9))&&(a16==1))&&(a9==17))){ + if((a9==17)){ + a2 = 12; + a12 = 4; + a9 = 18; + a25 = 0; + }else{ + a25 = 0; + a2 = 11; + a12 = 5; + a20 = 6; + a9 = 16; + } + return 21; + } else if(((((a20==6)&&((a9==18)&&((a25==1)&&((a12==5)&&((((a2==9)||(a2==10))&&(input==1))&&(a16==1))))))&&(a15==1))&&(a27==1))){ + a25 = 0; + a12 = 6; + a2 = 11; + a20 = 7; + a9 = 16; + return 21; + } else if(((a16==1)&&((((((a25==1)&&(((a20==5)&&(input==1))&&(a9==17)))&&!(a15==1))&&(a2==13))&&(a27==1))&&(a12==2)))){ + if((a16==1)){ + a9 = 16; + a15 = 1; + }else{ + a25 = 0; + a20 = 7; + a2 = 11; + a12 = 5; + a15 = 1; + } + return 25; + } else if(((((a16==1)&&(((a9==16)&&(((input==1)&&(((a2==13)&&(a12==5))||((a12==6)&&(a2==9))))&&!(a25==1)))&&(a20==6)))&&(a15==1))&&(a27==1))){ + a2 = 9; + a20 = 5; + a12 = 2; + a25 = 1; + return -1; + } else if(((((a25==1)&&(((a27==1)&&(((a12==2)&&((a9==17)&&(input==3)))&&(a20==6)))&&(a15==1)))&&(a2==9))&&(a16==1))){ + a2 = 11; + a9 = 18; + a12 = 5; + return 21; + } else if((((a20==7)&&(((((((a9==17)&&(input==3))&&(a12==6))&&(a16==1))&&(a15==1))&&(a27==1))&&(a25==1)))&&(a2==12))){ + a20 = 6; + a12 = 3; + a2 = 13; + return -1; + } else if((!(a25==1)&&((a27==1)&&(((a15==1)&&((((a16==1)&&((a12==4)&&(input==6)))&&(a20==6))&&(a9==16)))&&(a2==13))))){ + if((a2==9)){ + a9 = 17; + a2 = 10; + a12 = 5; + a20 = 7; + }else{ + a12 = 6; + a2 = 10; + } + return 21; + } else if((((!(a25==1)&&((a27==1)&&(((input==5)&&((((a2==13)&&(a9==17))&&(a12==6))||((a12==2)&&((a2==9)&&(a9==18)))))&&!(a15==1))))&&(a20==5))&&(a16==1))){ + if((a20==6)){ + a20 = 6; + a9 = 18; + a2 = 12; + a15 = 1; + a12 = 6; + }else{ + a12 = 6; + a15 = 1; + a9 = 16; + a25 = 1; + a2 = 11; + } + return -1; + } else if(((a12==5)&&((a20==5)&&((((((a15==1)&&((a27==1)&&(input==4)))&&(a9==18))&&!(a25==1))&&(a2==11))&&(a16==1))))){ + a20 = 6; + a12 = 2; + a2 = 10; + return 21; + } else if(((a16==1)&&(((a25==1)&&((a9==17)&&(((((((a12==3)&&(a2==12))||((a2==13)&&(a12==3)))||((a12==4)&&(a2==9)))&&(input==1))&&(a27==1))&&(a20==7))))&&(a15==1)))){ + a9 = 16; + a12 = 6; + a2 = 12; + a20 = 6; + return 25; + } else if((((a20==7)&&((((a12==4)&&(((a9==18)&&((input==3)&&((a2==11)||((a2==9)||(a2==10)))))&&(a27==1)))&&(a16==1))&&(a15==1)))&&!(a25==1))){ + a20 = 6; + a25 = 1; + a2 = 11; + return -1; + } else if(((a9==16)&&(((a25==1)&&((a12==2)&&((((a27==1)&&((input==6)&&((a2==12)||((a2==10)||(a2==11)))))&&(a16==1))&&!(a15==1))))&&(a20==5)))){ + a15 = 1; + a12 = 6; + a9 = 18; + a2 = 13; + return 24; + } else if(((a27==1)&&(((!(a15==1)&&((((a16==1)&&((input==1)&&(((a2==10)||(a2==11))||(a2==12))))&&!(a25==1))&&(a20==5)))&&(a12==6))&&(a9==17)))){ + a2 = 13; + a25 = 1; + a12 = 4; + return -1; + } else if((((((a25==1)&&(((a16==1)&&(((((a2==12)&&(a12==5))||((a12==5)&&(a2==13)))||((a2==9)&&(a12==6)))&&(input==1)))&&(a27==1)))&&(a20==5))&&(a9==18))&&(a15==1))){ + a12 = 6; + a2 = 11; + a20 = 7; + return 24; + } else if((((a2==13)&&(((((((a9==18)&&(input==4))&&(a12==5))&&(a15==1))&&(a27==1))&&(a20==6))&&!(a25==1)))&&(a16==1))){ + a12 = 2; + a9 = 16; + a20 = 5; + a2 = 9; + a25 = 1; + return -1; + } else if((!(a25==1)&&((((a15==1)&&((a20==7)&&(((((a12==6)&&(a2==9))||(((a2==12)&&(a12==5))||((a2==13)&&(a12==5))))&&(input==2))&&(a27==1))))&&(a16==1))&&(a9==18)))){ + a12 = 5; + a9 = 16; + a2 = 9; + a20 = 6; + return 23; + } else if(((a9==16)&&(((((((input==4)&&(((a12==3)&&(a2==10))||(((a2==13)&&(a12==2))||((a2==9)&&(a12==3)))))&&(a27==1))&&(a20==6))&&(a15==1))&&(a16==1))&&!(a25==1)))){ + a2 = 12; + a12 = 4; + return 21; + } else if(((a9==18)&&(((!(a25==1)&&((((a12==5)&&((input==6)&&(((a2==10)||(a2==11))||(a2==12))))&&(a16==1))&&(a20==6)))&&(a27==1))&&(a15==1)))){ + a12 = 2; + a25 = 1; + a20 = 5; + a9 = 16; + a2 = 9; + return -1; + } else if(((a15==1)&&((a9==16)&&((a12==3)&&((a25==1)&&(((((input==1)&&((a2==11)||(a2==12)))&&(a20==6))&&(a16==1))&&(a27==1))))))){ + a12 = 6; + a20 = 5; + a2 = 12; + a25 = 0; + return -1; + } else if(((a27==1)&&((a15==1)&&(((((a9==17)&&((a20==5)&&(((a2==11)||(a2==12))&&(input==2))))&&(a16==1))&&(a12==6))&&!(a25==1))))){ + a2 = 10; + a12 = 5; + a9 = 16; + a20 = 6; + return 26; + } else if(((a12==4)&&((a20==7)&&((a15==1)&&((a16==1)&&(((((input==5)&&((a2==11)||(a2==12)))&&(a27==1))&&!(a25==1))&&(a9==17))))))){ + a2 = 13; + a12 = 3; + a20 = 6; + a25 = 1; + return -1; + } else if(((((a12==6)&&((a15==1)&&((a9==17)&&((a20==7)&&(((input==3)&&(((a2==9)||(a2==10))||(a2==11)))&&(a16==1))))))&&(a27==1))&&(a25==1))){ + a2 = 11; + a20 = 6; + a12 = 4; + return 25; + } else if(((a12==4)&&((a27==1)&&((a20==6)&&((a16==1)&&((a15==1)&&((((input==4)&&((a2==9)||(a2==10)))&&!(a25==1))&&(a9==17)))))))){ + a20 = 5; + a25 = 1; + a12 = 2; + a9 = 16; + a2 = 9; + return -1; + } else if(((a12==5)&&(((a15==1)&&(((a27==1)&&(((((a2==12)||(a2==13))&&(input==6))&&(a9==17))&&!(a25==1)))&&(a16==1)))&&(a20==6)))){ + a12 = 6; + a25 = 1; + a2 = 10; + a9 = 18; + return 21; + } else if((((a9==16)&&(((((a12==3)&&((((a2==11)||((a2==9)||(a2==10)))&&(input==1))&&(a25==1)))&&(a20==5))&&!(a15==1))&&(a27==1)))&&(a16==1))){ + a2 = 12; + a20 = 6; + a15 = 1; + a12 = 4; + return -1; + } else if((((a9==16)&&((a12==3)&&((a16==1)&&(((a20==5)&&((((a2==13)||((a2==11)||(a2==12)))&&(input==1))&&(a27==1)))&&!(a25==1)))))&&!(a15==1))){ + a15 = 1; + a25 = 1; + a9 = 17; + a2 = 11; + a12 = 4; + return -1; + } else if((((a15==1)&&(((a16==1)&&(((((a9==18)&&(input==2))&&(a20==6))&&(a25==1))&&(a2==12)))&&(a12==2)))&&(a27==1))){ + a9 = 16; + a20 = 5; + a2 = 9; + return -1; + } else if(((((a27==1)&&(((!(a25==1)&&((a9==18)&&(((a2==10)||(a2==11))&&(input==5))))&&!(a15==1))&&(a20==5)))&&(a16==1))&&(a12==6))){ + if((a25==1)){ + a15 = 1; + a20 = 7; + a12 = 4; + a2 = 13; + }else{ + a12 = 4; + a2 = 12; + a25 = 1; + } + return -1; + } else if(((((a9==18)&&((a27==1)&&(((a2==12)&&((!(a25==1)&&(input==5))&&(a15==1)))&&(a20==7))))&&(a16==1))&&(a12==2))){ + a20 = 5; + a9 = 16; + a2 = 9; + a25 = 1; + return -1; + } else if(((a16==1)&&(((((a20==7)&&((((a9==16)&&(input==2))&&(a2==9))&&(a27==1)))&&(a12==2))&&!(a25==1))&&(a15==1)))){ + a25 = 1; + a20 = 5; + return -1; + } else if(((((a12==3)&&(!(a25==1)&&((((a20==5)&&((input==3)&&((a2==11)||(a2==12))))&&(a27==1))&&(a9==17))))&&(a15==1))&&(a16==1))){ + a2 = 10; + a9 = 18; + a20 = 6; + a12 = 2; + a25 = 1; + return 21; + } else if((((a9==17)&&((a12==5)&&((a15==1)&&((a20==7)&&((((input==1)&&((a2==10)||(a2==11)))&&(a25==1))&&(a16==1))))))&&(a27==1))){ + a9 = 16; + a12 = 2; + a20 = 5; + a2 = 9; + return -1; + } else if((((a27==1)&&((a15==1)&&((a12==5)&&(((a16==1)&&((a9==17)&&((input==6)&&((a2==9)||(a2==10)))))&&(a20==5)))))&&!(a25==1))){ + a12 = 2; + a20 = 6; + a2 = 12; + a9 = 16; + return 26; + } else if(((a9==18)&&(((((a15==1)&&(((a16==1)&&((input==3)&&!(a25==1)))&&(a20==6)))&&(a2==10))&&(a12==2))&&(a27==1)))){ + a25 = 1; + a9 = 16; + a2 = 9; + a20 = 5; + return -1; + } else if(((((a27==1)&&((((a16==1)&&(((input==4)&&(((a2==10)||(a2==11))||(a2==12)))&&(a9==18)))&&(a15==1))&&!(a25==1)))&&(a20==6))&&(a12==5))){ + a20 = 5; + a12 = 2; + a9 = 16; + a25 = 1; + a2 = 9; + return -1; + } else if(((!(a25==1)&&((a12==3)&&((((a20==6)&&((a27==1)&&((input==2)&&((a2==12)||(a2==13)))))&&(a15==1))&&(a9==18))))&&(a16==1))){ + a2 = 12; + a25 = 1; + return 25; + } else if(((a20==5)&&(!(a15==1)&&((a16==1)&&((a27==1)&&((a9==16)&&(((a12==2)&&((input==3)&&((a2==12)||(a2==13))))&&!(a25==1)))))))){ + a12 = 6; + a25 = 1; + a15 = 1; + a2 = 9; + return -1; + } else if((((a27==1)&&((a12==2)&&((a16==1)&&(((a20==7)&&(!(a25==1)&&(((a2==11)||((a2==9)||(a2==10)))&&(input==3))))&&(a15==1)))))&&(a9==18))){ + a2 = 9; + a20 = 5; + a25 = 1; + a9 = 16; + return -1; + } else if((((a25==1)&&(((((a12==4)&&((a16==1)&&((input==5)&&(a27==1))))&&(a9==16))&&(a15==1))&&(a20==7)))&&(a2==10))){ + a12 = 2; + a20 = 5; + a2 = 9; + return -1; + } else if(((!(a15==1)&&((((((a9==17)&&((((a2==9)||(a2==10))||(a2==11))&&(input==6)))&&(a12==3))&&(a25==1))&&(a27==1))&&(a20==5)))&&(a16==1))){ + a9 = 16; + a2 = 13; + a15 = 1; + a20 = 7; + a12 = 2; + return 25; + } else if((((((a15==1)&&(((a20==6)&&((a27==1)&&((input==5)&&(a12==3))))&&(a25==1)))&&(a16==1))&&(a9==18))&&(a2==12))){ + a2 = 11; + a20 = 7; + return -1; + } else if(((a27==1)&&((a16==1)&&(!(a15==1)&&((a20==5)&&(!(a25==1)&&((input==2)&&(((a12==6)&&((a2==13)&&(a9==16)))||((a12==2)&&((a2==9)&&(a9==17))))))))))){ + if((a20==7)){ + a2 = 12; + a15 = 1; + a12 = 2; + a9 = 16; + }else{ + a12 = 2; + a25 = 1; + a2 = 9; + a15 = 1; + a9 = 16; + } + return 23; + } else if((((a9==18)&&((a16==1)&&(((((((a12==2)&&(a2==13))||((a2==9)&&(a12==3)))&&(input==6))&&(a20==7))&&!(a25==1))&&(a27==1))))&&(a15==1))){ + a20 = 5; + a12 = 2; + a25 = 1; + a9 = 16; + a2 = 9; + return -1; + } else if((((a12==4)&&((a20==6)&&(((((((a2==9)||(a2==10))&&(input==4))&&(a9==18))&&(a16==1))&&(a15==1))&&!(a25==1))))&&(a27==1))){ + a20 = 5; + a25 = 1; + a9 = 16; + a12 = 2; + a2 = 9; + return -1; + } else if((((((a25==1)&&((a27==1)&&(!(a15==1)&&(((a12==6)&&(input==4))&&(a16==1)))))&&(a2==9))&&(a9==16))&&(a20==5))){ + if((a12==5)){ + a15 = 1; + a2 = 10; + a9 = 17; + a12 = 2; + }else{ + a2 = 12; + a15 = 1; + } + return -1; + } else if(((((a20==7)&&(((a12==3)&&(((a15==1)&&(((a2==10)||(a2==11))&&(input==2)))&&(a25==1)))&&(a27==1)))&&(a9==16))&&(a16==1))){ + a20 = 6; + a2 = 10; + a12 = 6; + a9 = 17; + return 25; + } else if((((((a25==1)&&(((a20==5)&&((a9==16)&&((input==5)&&(((a2==9)||(a2==10))||(a2==11)))))&&!(a15==1)))&&(a27==1))&&(a16==1))&&(a12==3))){ + a12 = 4; + a2 = 11; + a20 = 6; + a15 = 1; + return -1; + } else if((((a9==18)&&(((a15==1)&&(((((input==4)&&(a12==4))&&(a20==7))&&(a16==1))&&(a25==1)))&&(a2==10)))&&(a27==1))){ + a2 = 9; + a9 = 16; + a20 = 6; + return -1; + } else if(((a20==5)&&(((a16==1)&&((a9==18)&&(((a25==1)&&((((a2==10)||(a2==11))&&(input==3))&&!(a15==1)))&&(a12==5))))&&(a27==1)))){ + a12 = 3; + a25 = 0; + a2 = 11; + a20 = 6; + a15 = 1; + a9 = 17; + return -1; + } else if(((a25==1)&&((a20==6)&&((((a16==1)&&(((a12==5)&&((input==5)&&((a2==12)||(a2==13))))&&(a15==1)))&&(a27==1))&&(a9==16))))){ + a2 = 9; + a20 = 5; + a12 = 2; + return -1; + } else if((((a20==6)&&((a16==1)&&((a27==1)&&((((a12==5)&&(((a2==11)||(a2==12))&&(input==1)))&&(a9==16))&&!(a25==1)))))&&(a15==1))){ + a2 = 12; + a12 = 3; + a25 = 1; + a9 = 18; + return -1; + } else if(((!(a25==1)&&(((a27==1)&&((a12==5)&&(((a16==1)&&((input==3)&&((a2==9)||(a2==10))))&&(a9==18))))&&(a15==1)))&&(a20==5))){ + a2 = 9; + a25 = 1; + a12 = 2; + a9 = 16; + return -1; + } else if((((a12==6)&&((((a20==5)&&(((a16==1)&&((input==6)&&((a2==10)||(a2==11))))&&(a9==18)))&&(a27==1))&&!(a25==1)))&&!(a15==1))){ + a15 = 1; + a9 = 16; + a2 = 10; + a20 = 7; + a12 = 2; + return -1; + } else if(((a15==1)&&((a9==18)&&(((!(a25==1)&&((a12==6)&&(((input==3)&&(a27==1))&&(a2==10))))&&(a16==1))&&(a20==7))))){ + a20 = 5; + a25 = 1; + a12 = 2; + a2 = 9; + a9 = 16; + return -1; + } else if(((a9==18)&&((!(a25==1)&&(((a16==1)&&((a27==1)&&(((input==3)&&((a2==13)||((a2==11)||(a2==12))))&&(a12==6))))&&(a15==1)))&&(a20==5)))){ + a2 = 9; + a12 = 2; + a25 = 1; + a9 = 16; + return -1; + } else if(((((a20==7)&&((a16==1)&&((a27==1)&&(!(a25==1)&&((input==2)&&(((a2==13)&&(a12==5))||((a12==6)&&(a2==9))))))))&&(a9==16))&&(a15==1))){ + a20 = 5; + a2 = 9; + a25 = 1; + a12 = 2; + return -1; + } else if(((a15==1)&&((a16==1)&&(((a9==16)&&((a12==6)&&((a27==1)&&((((a2==11)||(a2==12))&&(input==5))&&!(a25==1)))))&&(a20==5))))){ + a20 = 6; + a12 = 5; + a25 = 1; + a2 = 12; + return 25; + } else if(((a12==4)&&((a9==18)&&((a20==7)&&((a25==1)&&(((a27==1)&&((a15==1)&&((a2==10)&&(input==1))))&&(a16==1))))))){ + a20 = 6; + a2 = 11; + a9 = 16; + return -1; + } else if(((a20==5)&&(((a27==1)&&((((a16==1)&&((input==2)&&(((a2==9)&&(a12==4))||(((a12==3)&&(a2==12))||((a2==13)&&(a12==3))))))&&(a15==1))&&!(a25==1)))&&(a9==16)))){ + a2 = 11; + a9 = 18; + a12 = 5; + return 21; + } else if((((a9==17)&&(((((((((a12==4)&&(a2==12))||((a12==4)&&(a2==13)))||((a12==5)&&(a2==9)))&&(input==5))&&(a27==1))&&!(a15==1))&&(a25==1))&&(a16==1)))&&(a20==5))){ + a2 = 12; + a12 = 6; + a15 = 1; + a20 = 7; + return 25; + } else if(((a27==1)&&(((((a9==16)&&((((((a2==12)&&(a12==4))||((a2==13)&&(a12==4)))||((a2==9)&&(a12==5)))&&(input==4))&&!(a15==1)))&&(a20==5))&&(a25==1))&&(a16==1)))){ + a15 = 1; + a12 = 5; + a9 = 17; + a20 = 6; + a2 = 12; + return 21; + } else if((((a12==3)&&((a20==7)&&(((a25==1)&&(((a16==1)&&((input==3)&&(((a2==10)||(a2==11))||(a2==12))))&&(a9==18)))&&(a27==1))))&&(a15==1))){ + a12 = 6; + a2 = 12; + a20 = 5; + a9 = 16; + a25 = 0; + return -1; + } else if(((a15==1)&&((a27==1)&&((((((input==3)&&((((a2==12)&&(a12==5))||((a2==13)&&(a12==5)))||((a2==9)&&(a12==6))))&&(a9==18))&&(a16==1))&&(a20==5))&&(a25==1))))){ + if((a9==16)){ + a12 = 6; + a20 = 7; + a2 = 9; + a9 = 17; + }else{ + a9 = 17; + a12 = 2; + a25 = 0; + a2 = 13; + } + return 21; + } else if((((((a9==17)&&((((input==3)&&(((a2==13)&&(a12==2))||((a2==9)&&(a12==3))))&&(a27==1))&&(a16==1)))&&(a15==1))&&(a25==1))&&(a20==6))){ + a12 = 6; + a9 = 16; + a2 = 10; + return -1; + } else if((((a15==1)&&(((a9==16)&&(((((a2==13)&&(input==3))&&(a27==1))&&(a20==6))&&(a16==1)))&&(a12==4)))&&!(a25==1))){ + a25 = 1; + a2 = 11; + a15 = 0; + a20 = 5; + return 21; + } else if(((a12==6)&&((a16==1)&&((a27==1)&&(((a9==16)&&(!(a25==1)&&((((a2==13)||((a2==11)||(a2==12)))&&(input==4))&&(a15==1))))&&(a20==6)))))){ + a25 = 1; + a12 = 2; + a20 = 5; + a2 = 9; + return -1; + } else if(((((a12==6)&&((a15==1)&&(((a25==1)&&(((input==1)&&((a2==12)||(a2==13)))&&(a16==1)))&&(a27==1))))&&(a20==6))&&(a9==16))){ + a20 = 7; + a2 = 12; + a9 = 17; + return 21; + } else if(((((((((a15==1)&&((input==3)&&(((a2==9)||(a2==10))||(a2==11))))&&(a12==6))&&(a9==16))&&(a25==1))&&(a27==1))&&(a20==6))&&(a16==1))){ + if((a15==1)){ + a20 = 7; + a12 = 5; + a9 = 17; + a2 = 12; + }else{ + a2 = 10; + } + return -1; + } else if(((a16==1)&&((a12==2)&&(((a20==5)&&((a25==1)&&((a9==17)&&((((a2==11)||(a2==12))&&(input==1))&&(a27==1)))))&&!(a15==1))))){ + if((a15==1)){ + a2 = 9; + a9 = 18; + a12 = 4; + a15 = 1; + }else{ + a20 = 7; + a9 = 16; + a2 = 12; + a12 = 6; + a15 = 1; + } + return -1; + } else if(((a20==6)&&(((((a25==1)&&(((((a2==13)&&(a12==2))||((a12==3)&&(a2==9)))&&(input==2))&&(a27==1)))&&(a9==17))&&(a15==1))&&(a16==1)))){ + a9 = 16; + a20 = 5; + a2 = 9; + a12 = 2; + return -1; + } else if(((a9==16)&&((a27==1)&&(((((a16==1)&&(((((a2==9)||(a2==10))||(a2==11))&&(input==5))&&(a20==5)))&&(a12==6))&&!(a25==1))&&!(a15==1))))){ + a2 = 9; + a20 = 6; + a25 = 1; + a12 = 4; + a15 = 1; + return -1; + } else if(((a27==1)&&((!(a25==1)&&(((a16==1)&&((a20==5)&&((((a2==12)||(a2==13))&&(input==1))&&!(a15==1))))&&(a12==5)))&&(a9==16)))){ + a12 = 3; + a15 = 1; + a25 = 1; + a2 = 11; + return -1; + } else if(((a16==1)&&((a12==3)&&(((((((input==1)&&((a2==9)||(a2==10)))&&(a27==1))&&(a20==5))&&(a9==16))&&!(a15==1))&&!(a25==1))))){ + if((a9==16)){ + a2 = 13; + a12 = 6; + a25 = 1; + a9 = 17; + a15 = 1; + }else{ + a2 = 13; + a25 = 1; + a15 = 1; + } + return -1; + } else if((((a9==18)&&((a27==1)&&(((a20==6)&&((a16==1)&&(((input==1)&&(a15==1))&&(a2==10))))&&!(a25==1))))&&(a12==2))){ + a9 = 16; + a2 = 9; + a20 = 5; + a25 = 1; + return -1; + } else if((((a20==6)&&(((a12==5)&&((((((a2==11)||((a2==9)||(a2==10)))&&(input==4))&&(a9==16))&&(a25==1))&&(a15==1)))&&(a27==1)))&&(a16==1))){ + a12 = 4; + a2 = 12; + return -1; + } else if(((a27==1)&&((a9==16)&&(((a16==1)&&((a25==1)&&((a12==2)&&((a20==5)&&((input==2)&&(a2==13))))))&&!(a15==1))))){ + a12 = 5; + a15 = 1; + a25 = 0; + a20 = 6; + a2 = 10; + return 26; + } else if((((a25==1)&&((a20==7)&&(((a16==1)&&((((a15==1)&&(input==4))&&(a2==11))&&(a12==2)))&&(a9==16))))&&(a27==1))){ + a12 = 5; + return 23; + } else if((((((((a20==5)&&(((a25==1)&&(input==3))&&(a2==11)))&&(a27==1))&&(a9==18))&&(a12==5))&&(a15==1))&&(a16==1))){ + if((a16==1)){ + a12 = 3; + a20 = 7; + a25 = 0; + a2 = 12; + }else{ + a12 = 4; + a25 = 0; + a9 = 16; + } + return 21; + } else if((((((((a27==1)&&((((a2==10)||(a2==11))&&(input==4))&&(a16==1)))&&(a12==4))&&(a9==17))&&(a25==1))&&(a15==1))&&(a20==7))){ + a20 = 5; + a9 = 16; + a2 = 9; + a12 = 2; + return -1; + } else if((((a15==1)&&((a25==1)&&((((a12==4)&&(((input==5)&&((a2==11)||(a2==12)))&&(a20==6)))&&(a16==1))&&(a9==17))))&&(a27==1))){ + a2 = 13; + a9 = 16; + return -1; + } else if((((a15==1)&&(((a2==13)&&((a16==1)&&(((a9==16)&&((input==4)&&(a27==1)))&&(a12==4))))&&(a20==6)))&&!(a25==1))){ + a20 = 5; + a12 = 2; + a25 = 1; + a2 = 9; + return -1; + } else if(((!(a25==1)&&((((a15==1)&&((a2==10)&&((a9==17)&&((input==4)&&(a27==1)))))&&(a16==1))&&(a20==5)))&&(a12==6))){ + if((a2==9)){ + a20 = 7; + a2 = 13; + a12 = 4; + }else{ + a9 = 16; + a20 = 6; + } + return 26; + } else if((((a20==6)&&((a15==1)&&((((input==3)&&((((a9==17)&&(a2==13))&&(a12==6))||((a12==2)&&((a9==18)&&(a2==9)))))&&!(a25==1))&&(a27==1))))&&(a16==1))){ + a12 = 2; + a2 = 9; + a20 = 5; + a9 = 16; + a25 = 1; + return -1; + } else if((((((a20==7)&&((a12==2)&&(!(a25==1)&&(((input==5)&&(a16==1))&&(a9==17)))))&&(a2==11))&&(a27==1))&&(a15==1))){ + a2 = 9; + a9 = 16; + a25 = 1; + a20 = 5; + return -1; + } else if(((a12==4)&&(((a15==1)&&((a2==9)&&((a27==1)&&((((a16==1)&&(input==5))&&(a20==7))&&(a25==1)))))&&(a9==18)))){ + a20 = 6; + a12 = 5; + a9 = 16; + return -1; + } else if(((a15==1)&&(((((a16==1)&&(((a12==2)&&((input==6)&&(a2==12)))&&(a25==1)))&&(a9==18))&&(a20==6))&&(a27==1)))){ + a12 = 4; + a2 = 11; + a9 = 17; + return -1; + } else if((!(a15==1)&&((a27==1)&&(((a16==1)&&(((a9==18)&&((a12==3)&&((input==5)&&(a20==5))))&&(a2==11)))&&(a25==1))))){ + a15 = 1; + a2 = 9; + a20 = 6; + a12 = 2; + return -1; + } else if(((a20==5)&&(((a16==1)&&((((!(a25==1)&&((input==2)&&((a2==10)||(a2==11))))&&(a9==17))&&!(a15==1))&&(a27==1)))&&(a12==2)))){ + a12 = 3; + a25 = 1; + a9 = 16; + a2 = 9; + a15 = 1; + return 23; + } else if((!(a25==1)&&((a9==18)&&((a15==1)&&((a27==1)&&(((a16==1)&&((a20==7)&&((input==2)&&((a2==12)||(a2==13)))))&&(a12==3))))))){ + a12 = 2; + a2 = 9; + a20 = 5; + a9 = 16; + a25 = 1; + return -1; + } else if(((a9==16)&&((a27==1)&&(((a16==1)&&(((a15==1)&&((input==6)&&(((a2==9)&&(a12==4))||(((a12==3)&&(a2==12))||((a2==13)&&(a12==3))))))&&!(a25==1)))&&(a20==5))))){ + a2 = 9; + a12 = 2; + a25 = 1; + return -1; + } else if(((a16==1)&&(((a15==1)&&(((a12==6)&&(((((a2==9)||(a2==10))&&(input==3))&&(a9==17))&&(a20==7)))&&!(a25==1)))&&(a27==1)))){ + a2 = 9; + a9 = 16; + a20 = 5; + a25 = 1; + a12 = 2; + return -1; + } else if(((a9==18)&&((((a15==1)&&(((a16==1)&&(((((a2==10)||(a2==11))||(a2==12))&&(input==5))&&(a20==7)))&&(a27==1)))&&(a25==1))&&(a12==3)))){ + a20 = 6; + a2 = 12; + a9 = 16; + return -1; + } else if(((((a27==1)&&((a15==1)&&((a9==17)&&((a25==1)&&((a12==2)&&((input==3)&&(((a2==10)||(a2==11))||(a2==12))))))))&&(a20==6))&&(a16==1))){ + a2 = 10; + return 23; + } else if(((!(a25==1)&&((a15==1)&&(((a20==6)&&((input==6)&&(((a12==6)&&((a9==17)&&(a2==13)))||(((a9==18)&&(a2==9))&&(a12==2)))))&&(a16==1))))&&(a27==1))){ + a12 = 2; + a25 = 1; + a2 = 9; + a20 = 5; + a9 = 16; + return -1; + } else if(((a15==1)&&(((a12==4)&&((a2==13)&&(((a20==7)&&(((input==2)&&!(a25==1))&&(a9==18)))&&(a16==1))))&&(a27==1)))){ + a20 = 6; + a12 = 3; + a2 = 12; + a25 = 1; + return 25; + } else if(((a16==1)&&(((((((a15==1)&&(((a2==11)||(a2==12))&&(input==4)))&&(a12==6))&&(a9==18))&&(a20==7))&&(a27==1))&&!(a25==1)))){ + a9 = 16; + a20 = 5; + a25 = 1; + a2 = 9; + a12 = 2; + return -1; + } else if(((a25==1)&&((a20==5)&&(((a27==1)&&(((a9==16)&&((((a2==9)&&(a12==5))||(((a12==4)&&(a2==12))||((a12==4)&&(a2==13))))&&(input==2)))&&(a16==1)))&&!(a15==1))))){ + a2 = 9; + a15 = 1; + a12 = 2; + return -1; + } else if((!(a25==1)&&((((a27==1)&&(((a16==1)&&((a2==11)&&((input==1)&&(a15==1))))&&(a12==2)))&&(a9==17))&&(a20==7)))){ + a25 = 1; + a20 = 5; + a9 = 16; + a2 = 9; + return -1; + } else if(((a16==1)&&((a15==1)&&((a9==16)&&((a12==3)&&(((a20==5)&&((a27==1)&&((input==4)&&!(a25==1))))&&(a2==9))))))){ + a12 = 2; + a25 = 1; + return -1; + } else if(((((a27==1)&&(((((a16==1)&&((input==1)&&((a2==13)||((a2==11)||(a2==12)))))&&(a12==6))&&(a20==5))&&(a9==18)))&&!(a15==1))&&(a25==1))){ + a2 = 12; + a15 = 1; + a9 = 17; + a12 = 3; + return 21; + } else if((((a25==1)&&((((!(a15==1)&&((a9==18)&&(((a2==10)||(a2==11))&&(input==3))))&&(a20==5))&&(a27==1))&&(a12==4)))&&(a16==1))){ + a15 = 1; + a2 = 12; + a9 = 16; + a12 = 5; + return -1; + } else if(((!(a25==1)&&(((((a15==1)&&((a27==1)&&(((a2==10)||(a2==11))&&(input==4))))&&(a20==7))&&(a9==18))&&(a12==5)))&&(a16==1))){ + a2 = 11; + a25 = 1; + a9 = 16; + return 23; + } else if((((a15==1)&&(!(a25==1)&&((a27==1)&&((((input==5)&&((((a2==12)&&(a12==4))||((a2==13)&&(a12==4)))||((a12==5)&&(a2==9))))&&(a20==5))&&(a9==16)))))&&(a16==1))){ + a25 = 1; + a2 = 9; + a12 = 2; + return -1; + } else if(((a16==1)&&((a20==5)&&((((a27==1)&&(!(a15==1)&&(!(a25==1)&&((input==5)&&((a2==13)||((a2==11)||(a2==12)))))))&&(a12==4))&&(a9==17))))){ + a2 = 10; + a12 = 2; + a15 = 1; + a25 = 1; + return -1; + } else if(((a20==6)&&((((((a16==1)&&((a9==17)&&(((a2==13)||((a2==11)||(a2==12)))&&(input==2))))&&!(a25==1))&&(a27==1))&&(a15==1))&&(a12==4)))){ + a9 = 18; + a25 = 1; + a2 = 12; + a12 = 3; + return 25; + } else if((!(a15==1)&&((a9==18)&&((a20==5)&&((((a27==1)&&((input==4)&&(((a2==13)&&(a12==5))||((a2==9)&&(a12==6)))))&&!(a25==1))&&(a16==1)))))){ + a25 = 1; + a15 = 1; + a12 = 3; + a9 = 16; + a2 = 11; + return -1; + } else if(((a16==1)&&(((a2==9)&&((a27==1)&&(((a25==1)&&(((input==6)&&!(a15==1))&&(a20==5)))&&(a12==6))))&&(a9==16)))){ + a2 = 11; + a15 = 1; + return -1; + } else if(((((a9==16)&&(((a20==7)&&((a12==4)&&((a15==1)&&(((a2==11)||(a2==12))&&(input==4)))))&&(a25==1)))&&(a27==1))&&(a16==1))){ + a20 = 6; + a2 = 11; + a9 = 17; + return -1; + } else if((((a20==7)&&((((((((a2==10)||(a2==11))&&(input==3))&&!(a25==1))&&(a27==1))&&(a16==1))&&(a15==1))&&(a9==18)))&&(a12==3))){ + a2 = 9; + a25 = 1; + a20 = 5; + a9 = 16; + a12 = 2; + return -1; + } else if(((a16==1)&&((a12==6)&&(((a9==16)&&(((a25==1)&&((((a2==11)||((a2==9)||(a2==10)))&&(input==2))&&(a15==1)))&&(a27==1)))&&(a20==6))))){ + a12 = 2; + a20 = 5; + a2 = 9; + return -1; + } else if(((a15==1)&&((a9==18)&&(((!(a25==1)&&(((a20==5)&&((a12==5)&&(input==3)))&&(a16==1)))&&(a2==11))&&(a27==1))))){ + a2 = 9; + a12 = 2; + a25 = 1; + a9 = 16; + return -1; + } return calculate_output4(input); + } + + int calculate_output4(int input) { + if((((((a20==5)&&((a27==1)&&(!(a25==1)&&((input==4)&&(((a12==5)&&(a2==9))||(((a12==4)&&(a2==12))||((a2==13)&&(a12==4))))))))&&(a15==1))&&(a16==1))&&(a9==16))){ + a12 = 2; + a25 = 1; + a2 = 9; + return -1; + } else if((((((((a27==1)&&((((a2==9)&&(a12==5))||(((a12==4)&&(a2==12))||((a2==13)&&(a12==4))))&&(input==2)))&&(a25==1))&&(a20==5))&&(a16==1))&&!(a15==1))&&(a9==17))){ + a9 = 16; + a12 = 4; + a15 = 1; + a2 = 9; + return 26; + } else if((((a27==1)&&((((a20==5)&&(((a15==1)&&(((a2==12)||(a2==13))&&(input==1)))&&(a25==1)))&&(a12==6))&&(a16==1)))&&(a9==18))){ + a9 = 17; + a25 = 0; + a2 = 9; + return 24; + } else if(((a15==1)&&((((a2==10)&&((a16==1)&&((((a20==7)&&(input==1))&&(a9==18))&&(a12==6))))&&!(a25==1))&&(a27==1)))){ + a25 = 1; + a12 = 2; + a9 = 16; + a2 = 9; + a20 = 5; + return -1; + } else if(((((((a12==5)&&((((input==3)&&((a2==9)||(a2==10)))&&(a16==1))&&(a15==1)))&&(a20==6))&&!(a25==1))&&(a27==1))&&(a9==17))){ + a25 = 1; + a20 = 7; + a2 = 11; + a12 = 4; + return 21; + } else if(((a27==1)&&(!(a15==1)&&((((a25==1)&&((a16==1)&&((a12==3)&&((input==5)&&(a9==18)))))&&(a2==13))&&(a20==5))))){ + a12 = 6; + a9 = 17; + a15 = 1; + a2 = 11; + return -1; + } else if(((!(a15==1)&&(((a20==5)&&((a9==17)&&((a27==1)&&((a16==1)&&((input==5)&&(((a2==10)||(a2==11))||(a2==12)))))))&&(a12==6)))&&!(a25==1))){ + if((a16==1)){ + a2 = 9; + a25 = 1; + a12 = 3; + a9 = 16; + a15 = 1; + }else{ + a25 = 1; + a2 = 10; + a12 = 5; + a9 = 16; + a15 = 1; + } + return -1; + } else if(((a16==1)&&((((((a27==1)&&((((a2==11)||(a2==12))&&(input==2))&&!(a15==1)))&&(a9==18))&&(a12==4))&&(a20==5))&&!(a25==1)))){ + a2 = 10; + a12 = 2; + a9 = 17; + return -1; + } else if((((a15==1)&&(((a20==6)&&(!(a25==1)&&((((a9==18)&&(input==5))&&(a2==11))&&(a27==1))))&&(a16==1)))&&(a12==4))){ + a20 = 5; + a12 = 2; + a2 = 9; + a25 = 1; + a9 = 16; + return -1; + } else if(((((a16==1)&&((((a12==4)&&(!(a15==1)&&((input==4)&&!(a25==1))))&&(a2==9))&&(a27==1)))&&(a20==5))&&(a9==16))){ + if((a25==1)){ + a12 = 2; + a15 = 1; + a2 = 12; + a20 = 6; + a25 = 1; + }else{ + a15 = 1; + a12 = 2; + a25 = 1; + a2 = 12; + } + return -1; + } else if(((a12==4)&&((a25==1)&&((a16==1)&&(((a27==1)&&((a20==6)&&((a9==18)&&((input==6)&&(((a2==11)||(a2==12))||(a2==13))))))&&(a15==1)))))){ + if((a9==17)){ + a9 = 16; + a2 = 11; + a20 = 5; + a15 = 0; + }else{ + a2 = 12; + a9 = 16; + a12 = 5; + } + return -1; + } else if((((((a20==6)&&((((((a2==11)||(a2==12))&&(input==4))&&!(a25==1))&&(a15==1))&&(a12==3)))&&(a9==16))&&(a27==1))&&(a16==1))){ + a20 = 5; + a12 = 2; + a2 = 9; + a25 = 1; + return -1; + } else if(((a9==16)&&((((a20==6)&&((a27==1)&&((((input==2)&&(((a2==11)||(a2==12))||(a2==13)))&&(a15==1))&&!(a25==1))))&&(a12==6))&&(a16==1)))){ + a2 = 10; + a12 = 5; + return 26; + } else if(((a20==5)&&((a12==4)&&(((((a15==1)&&((!(a25==1)&&(input==2))&&(a9==16)))&&(a2==11))&&(a27==1))&&(a16==1))))){ + a12 = 2; + a2 = 9; + a25 = 1; + return -1; + } else if(((a16==1)&&((((a27==1)&&(((((input==1)&&(a12==2))&&(a20==6))&&(a15==1))&&(a9==16)))&&(a2==12))&&!(a25==1)))){ + a2 = 11; + a12 = 6; + a9 = 18; + a25 = 1; + return -1; + } else if((!(a25==1)&&(((((a15==1)&&((a27==1)&&((input==1)&&((((a12==4)&&(a2==13))||((a2==9)&&(a12==5)))||((a12==5)&&(a2==10))))))&&(a9==17))&&(a20==7))&&(a16==1)))){ + a2 = 12; + a20 = 6; + a25 = 1; + a12 = 6; + return 25; + } else if((((a12==2)&&(((a9==17)&&(((!(a25==1)&&((input==6)&&(((a2==9)||(a2==10))||(a2==11))))&&(a16==1))&&(a27==1)))&&(a20==5)))&&(a15==1))){ + a25 = 1; + a2 = 10; + a20 = 6; + return 21; + } else if((((!(a25==1)&&((a9==18)&&((a20==6)&&((a27==1)&&(((input==5)&&((a2==11)||(a2==12)))&&(a16==1))))))&&(a12==6))&&(a15==1))){ + a20 = 5; + a2 = 9; + a25 = 1; + a12 = 2; + a9 = 16; + return -1; + } else if((((((a25==1)&&((a9==18)&&(((a15==1)&&((((a2==9)||(a2==10))||(a2==11))&&(input==6)))&&(a20==6))))&&(a12==3))&&(a27==1))&&(a16==1))){ + a12 = 2; + a2 = 13; + return -1; + } else if((((a16==1)&&(((!(a15==1)&&(((input==1)&&((((a2==12)&&(a12==4))||((a12==4)&&(a2==13)))||((a12==5)&&(a2==9))))&&(a9==17)))&&(a20==5))&&(a25==1)))&&(a27==1))){ + a12 = 2; + a2 = 9; + a15 = 1; + return -1; + } else if(((a15==1)&&(((a27==1)&&(!(a25==1)&&((((a9==18)&&(((a2==12)||((a2==10)||(a2==11)))&&(input==3)))&&(a16==1))&&(a20==5))))&&(a12==2)))){ + a9 = 16; + a2 = 9; + a25 = 1; + return -1; + } else if(((a16==1)&&((a9==17)&&(((((a27==1)&&((input==2)&&(((a2==13)&&(a12==3))||((a12==4)&&(a2==9)))))&&(a20==5))&&(a25==1))&&!(a15==1))))){ + if((a27==1)){ + a2 = 10; + a15 = 1; + a12 = 4; + }else{ + a2 = 10; + a15 = 1; + a9 = 16; + a12 = 5; + } + return -1; + } else if((((a12==6)&&((a9==17)&&((!(a25==1)&&(((a20==7)&&(((a2==13)||((a2==11)||(a2==12)))&&(input==5)))&&(a15==1)))&&(a16==1))))&&(a27==1))){ + a9 = 16; + a12 = 2; + a20 = 5; + a25 = 1; + a2 = 9; + return -1; + } else if(((a20==6)&&((a15==1)&&(((((a9==16)&&(((((a2==13)&&(a12==2))||((a12==3)&&(a2==9)))||((a2==10)&&(a12==3)))&&(input==6)))&&(a16==1))&&(a27==1))&&!(a25==1))))){ + a25 = 1; + a12 = 2; + a2 = 9; + a20 = 5; + return -1; + } else if((((a16==1)&&((((a20==6)&&((a9==17)&&((a15==1)&&(((a2==13)||((a2==11)||(a2==12)))&&(input==6)))))&&(a27==1))&&(a12==4)))&&!(a25==1))){ + a2 = 9; + a25 = 1; + a9 = 16; + a12 = 2; + a20 = 5; + return -1; + } else if((((a27==1)&&(((((((input==1)&&((a2==10)||(a2==11)))&&(a15==1))&&(a9==18))&&(a12==5))&&!(a25==1))&&(a16==1)))&&(a20==7))){ + a9 = 16; + a2 = 13; + a25 = 1; + return -1; + } else if((((a12==5)&&((a9==18)&&((a20==5)&&((!(a25==1)&&((((a2==9)||(a2==10))&&(input==4))&&(a15==1)))&&(a27==1)))))&&(a16==1))){ + a2 = 9; + a12 = 2; + a25 = 1; + a9 = 16; + return -1; + } else if(((((a9==18)&&(!(a15==1)&&((a16==1)&&(((a12==6)&&((input==5)&&((a2==9)||(a2==10))))&&(a25==1)))))&&(a27==1))&&(a20==5))){ + a25 = 0; + a2 = 13; + a15 = 1; + return -1; + } else if((((a9==17)&&((!(a25==1)&&((a20==6)&&(((a16==1)&&(((a2==12)||(a2==13))&&(input==1)))&&(a12==5))))&&(a15==1)))&&(a27==1))){ + a2 = 9; + a20 = 5; + a9 = 16; + a25 = 1; + a12 = 2; + return -1; + } else if(((((a27==1)&&((a2==10)&&(((a12==4)&&(((input==3)&&!(a25==1))&&(a20==5)))&&(a9==18))))&&!(a15==1))&&(a16==1))){ + if((a9==16)){ + a12 = 2; + a25 = 1; + a2 = 11; + a9 = 16; + a15 = 1; + }else{ + a12 = 3; + a25 = 1; + a2 = 12; + a15 = 1; + } + return -1; + } else if(((((((a27==1)&&(((((a2==10)||(a2==11))&&(input==3))&&(a15==1))&&(a9==18)))&&(a16==1))&&(a12==5))&&!(a25==1))&&(a20==7))){ + a9 = 16; + a2 = 12; + a25 = 1; + return -1; + } else if((((a27==1)&&((a12==4)&&((a15==1)&&(((((input==4)&&(a20==5))&&(a2==13))&&(a16==1))&&(a9==18)))))&&!(a25==1))){ + a2 = 9; + a9 = 16; + a12 = 2; + a25 = 1; + return -1; + } else if(((((a27==1)&&(((!(a25==1)&&(((input==4)&&(a15==1))&&(a2==11)))&&(a16==1))&&(a12==5)))&&(a9==17))&&(a20==6))){ + a20 = 5; + a25 = 1; + a2 = 9; + a9 = 16; + a12 = 2; + return -1; + } else if(((a20==5)&&((((a9==16)&&(((((input==3)&&(((a2==10)||(a2==11))||(a2==12)))&&(a12==4))&&(a27==1))&&!(a25==1)))&&!(a15==1))&&(a16==1)))){ + if((a27==1)){ + a25 = 1; + a2 = 9; + a15 = 1; + a12 = 5; + }else{ + a2 = 10; + a20 = 7; + a15 = 1; + a9 = 18; + a12 = 5; + } + return -1; + } else if(((a12==5)&&(((a16==1)&&((a27==1)&&(((a15==1)&&(((a20==7)&&(input==5))&&(a25==1)))&&(a2==11))))&&(a9==16)))){ + a9 = 17; + a20 = 5; + a12 = 3; + a2 = 10; + return -1; + } else if(((a16==1)&&((((a25==1)&&(((a9==17)&&((((a2==12)||((a2==10)||(a2==11)))&&(input==1))&&(a15==1)))&&(a12==3)))&&(a27==1))&&(a20==6)))){ + a9 = 16; + a12 = 2; + a2 = 9; + a20 = 5; + return -1; + } else if((!(a25==1)&&((a12==4)&&((a27==1)&&((((a9==16)&&(((a2==10)&&(input==2))&&(a15==1)))&&(a20==5))&&(a16==1)))))){ + a25 = 1; + a12 = 2; + a2 = 9; + return -1; + } else if((((a9==18)&&((a20==5)&&((((!(a15==1)&&(((a2==12)||(a2==13))&&(input==5)))&&(a12==5))&&(a25==1))&&(a16==1))))&&(a27==1))){ + a2 = 12; + a12 = 3; + return 21; + } else if((((a20==7)&&(((a15==1)&&((a16==1)&&((((a9==18)&&(input==5))&&(a12==6))&&(a2==10))))&&!(a25==1)))&&(a27==1))){ + a25 = 1; + a12 = 2; + a20 = 5; + a9 = 16; + a2 = 9; + return -1; + } else if(((((a15==1)&&(((a27==1)&&((((a12==5)&&(input==1))&&(a25==1))&&(a16==1)))&&(a9==17)))&&(a2==9))&&(a20==7))){ + a20 = 5; + a9 = 18; + a12 = 4; + a2 = 13; + return 25; + } else if((((((a20==5)&&((((a16==1)&&(((a2==10)||(a2==11))&&(input==6)))&&(a25==1))&&(a9==18)))&&!(a15==1))&&(a12==4))&&(a27==1))){ + a20 = 6; + a15 = 1; + a2 = 10; + a12 = 6; + return -1; + } else if((((a12==5)&&((a20==6)&&(((((((a2==9)||(a2==10))&&(input==5))&&(a16==1))&&(a9==18))&&(a25==1))&&(a27==1))))&&(a15==1))){ + a2 = 9; + a9 = 16; + a20 = 5; + a12 = 2; + return -1; + } else if((((a12==2)&&(((a15==1)&&((a20==6)&&((a25==1)&&((((a2==11)||((a2==9)||(a2==10)))&&(input==2))&&(a16==1)))))&&(a9==18)))&&(a27==1))){ + a20 = 5; + a2 = 9; + a9 = 16; + return -1; + } else if((((a12==2)&&((a20==6)&&(!(a25==1)&&(((((a15==1)&&(input==1))&&(a9==16))&&(a2==11))&&(a16==1)))))&&(a27==1))){ + a20 = 7; + a2 = 9; + return -1; + } else if(((((((a27==1)&&((a16==1)&&(((input==2)&&((a2==12)||((a2==10)||(a2==11))))&&(a20==6))))&&(a15==1))&&!(a25==1))&&(a12==5))&&(a9==18))){ + a12 = 3; + a25 = 1; + a2 = 12; + return 25; + } else if((!(a25==1)&&(((a16==1)&&((((a20==7)&&(((input==2)&&(a15==1))&&(a2==11)))&&(a27==1))&&(a12==2)))&&(a9==17)))){ + a25 = 1; + a9 = 18; + a12 = 4; + a20 = 6; + a2 = 10; + return 21; + } else if(((((((a9==17)&&((a15==1)&&((a27==1)&&(((a2==13)||((a2==11)||(a2==12)))&&(input==2)))))&&(a12==4))&&(a20==5))&&(a16==1))&&!(a25==1))){ + a12 = 2; + a25 = 1; + a9 = 16; + a2 = 9; + return -1; + } else if(((a9==16)&&(((((((((a12==5)&&(a2==9))||(((a12==4)&&(a2==12))||((a2==13)&&(a12==4))))&&(input==5))&&(a27==1))&&(a15==1))&&(a16==1))&&!(a25==1))&&(a20==7)))){ + if((a12==4)){ + a12 = 3; + a9 = 17; + a2 = 12; + }else{ + a12 = 6; + a20 = 5; + a2 = 11; + } + return -1; + } else if((((a16==1)&&((a12==2)&&((a20==6)&&((a25==1)&&((((((a2==9)||(a2==10))||(a2==11))&&(input==3))&&(a15==1))&&(a27==1))))))&&(a9==18))){ + if((a25==1)){ + a2 = 9; + a20 = 7; + a25 = 0; + a9 = 16; + }else{ + a2 = 10; + a9 = 17; + a12 = 5; + } + return -1; + } else if((!(a25==1)&&((a12==3)&&((((a9==16)&&(((a20==5)&&((input==5)&&((a2==10)||(a2==11))))&&(a16==1)))&&(a15==1))&&(a27==1))))){ + a12 = 4; + a9 = 18; + a2 = 13; + return 21; + } else if((((a20==7)&&((a15==1)&&((a27==1)&&((a16==1)&&((a25==1)&&(((a2==13)&&(input==5))&&(a9==18)))))))&&(a12==3))){ + a9 = 16; + a12 = 2; + a2 = 9; + a20 = 5; + return -1; + } else if((((a12==2)&&(((a27==1)&&(((((input==3)&&((a2==12)||((a2==10)||(a2==11))))&&(a20==5))&&(a9==16))&&(a16==1)))&&!(a15==1)))&&(a25==1))){ + a12 = 6; + a9 = 18; + a15 = 1; + a2 = 11; + return 23; + } else if(((a9==16)&&((a16==1)&&((((!(a15==1)&&((a20==5)&&((input==1)&&(a2==10))))&&(a27==1))&&(a12==5))&&(a25==1))))){ + if((a15==1)){ + a12 = 2; + a2 = 12; + a15 = 1; + a20 = 6; + }else{ + a12 = 3; + a9 = 17; + a15 = 1; + a2 = 13; + } + return 25; + } else if(((a25==1)&&(((a9==17)&&((a20==7)&&(((((a16==1)&&(input==5))&&(a2==12))&&(a12==4))&&(a27==1))))&&(a15==1)))){ + a9 = 16; + a20 = 5; + a12 = 2; + a2 = 9; + return -1; + } else if(((((a9==18)&&(((a15==1)&&((a20==7)&&(((((a12==5)&&(a2==13))||((a2==9)&&(a12==6)))||((a2==10)&&(a12==6)))&&(input==6))))&&(a27==1)))&&(a16==1))&&(a25==1))){ + a2 = 9; + a12 = 2; + a9 = 16; + a20 = 5; + return -1; + } else if(((a20==5)&&(((a27==1)&&((a25==1)&&(((((input==6)&&((a2==9)||(a2==10)))&&(a16==1))&&!(a15==1))&&(a12==6))))&&(a9==18)))){ + a2 = 9; + a9 = 16; + a15 = 1; + return -1; + } else if(((a27==1)&&((a9==17)&&(((((a20==6)&&((a2==12)&&((input==1)&&(a16==1))))&&(a15==1))&&(a12==2))&&!(a25==1))))){ + a2 = 9; + a25 = 1; + a20 = 5; + a9 = 16; + return -1; + } else if(((a9==18)&&(((a15==1)&&((a16==1)&&((!(a25==1)&&((input==3)&&(((a2==13)&&(a12==2))||((a12==3)&&(a2==9)))))&&(a27==1))))&&(a20==7)))){ + a20 = 5; + a9 = 16; + a12 = 2; + a2 = 9; + a25 = 1; + return -1; + } else if(((a12==2)&&((a9==17)&&((a20==5)&&((!(a25==1)&&((((((a2==9)||(a2==10))||(a2==11))&&(input==5))&&(a15==1))&&(a27==1)))&&(a16==1)))))){ + a2 = 9; + a9 = 16; + a25 = 1; + return -1; + } else if(((a16==1)&&(((!(a25==1)&&((a9==18)&&(!(a15==1)&&((((a2==11)||(a2==12))&&(input==4))&&(a12==3)))))&&(a20==5))&&(a27==1)))){ + if((a2==12)){ + a20 = 6; + a9 = 16; + a15 = 1; + a12 = 2; + a2 = 12; + }else{ + a20 = 7; + a9 = 17; + a15 = 1; + a2 = 9; + } + return -1; + } else if(((a9==18)&&(((a27==1)&&((a16==1)&&((a12==5)&&(!(a25==1)&&((a20==5)&&(((a2==12)||(a2==13))&&(input==2)))))))&&(a15==1)))){ + a9 = 16; + a25 = 1; + a2 = 9; + a12 = 2; + return -1; + } else if((((a9==18)&&((((a12==4)&&((a16==1)&&(((input==4)&&(a20==7))&&(a15==1))))&&(a2==12))&&(a27==1)))&&!(a25==1))){ + a20 = 6; + a2 = 11; + a12 = 3; + a9 = 16; + return -1; + } else if(((a9==16)&&((((a15==1)&&((a27==1)&&((((input==5)&&(((a2==9)||(a2==10))||(a2==11)))&&(a12==2))&&(a25==1))))&&(a20==6))&&(a16==1)))){ + a2 = 9; + a20 = 5; + return -1; + } else if(((a15==1)&&((a25==1)&&((((a16==1)&&((a9==18)&&((a27==1)&&((((a2==9)||(a2==10))||(a2==11))&&(input==4)))))&&(a12==2))&&(a20==6))))){ + a2 = 11; + a9 = 17; + a25 = 0; + a20 = 5; + a12 = 3; + return -1; + } else if(((a16==1)&&((a12==6)&&((a2==13)&&(!(a25==1)&&((a27==1)&&((((input==4)&&(a20==5))&&(a15==1))&&(a9==16)))))))){ + a2 = 9; + a12 = 2; + a25 = 1; + return -1; + } else if(((((a9==16)&&((((!(a25==1)&&(((a2==12)||(a2==13))&&(input==5)))&&(a27==1))&&!(a15==1))&&(a20==5)))&&(a16==1))&&(a12==2))){ + if((a16==1)){ + a15 = 1; + a2 = 11; + a12 = 5; + a9 = 17; + }else{ + a2 = 13; + a12 = 6; + a9 = 18; + a15 = 1; + } + return -1; + } else if((((a25==1)&&((a15==1)&&((a20==7)&&(((a2==12)&&(((input==4)&&(a27==1))&&(a9==17)))&&(a12==4)))))&&(a16==1))){ + a12 = 2; + a9 = 16; + a20 = 5; + a2 = 9; + return -1; + } else if(((a16==1)&&((((!(a15==1)&&((a9==18)&&((a2==13)&&((input==5)&&(a12==2)))))&&(a20==5))&&(a27==1))&&!(a25==1)))){ + if((a27==1)){ + a15 = 1; + a2 = 12; + a12 = 3; + a25 = 1; + a9 = 17; + }else{ + a20 = 7; + a25 = 1; + a15 = 1; + a12 = 5; + a2 = 12; + a9 = 17; + } + return -1; + } else if((((a20==7)&&((a16==1)&&((a9==18)&&(((a25==1)&&((a12==4)&&((input==2)&&(a15==1))))&&(a2==9)))))&&(a27==1))){ + a9 = 16; + a20 = 5; + a12 = 2; + return -1; + } else if((((a9==16)&&((a12==5)&&(((a2==12)&&((a20==5)&&((a25==1)&&(!(a15==1)&&(input==2)))))&&(a27==1))))&&(a16==1))){ + a9 = 17; + return -1; + } else if(((a9==18)&&(((a20==5)&&((a12==6)&&((a27==1)&&((a25==1)&&((a16==1)&&(((a2==10)||(a2==11))&&(input==2)))))))&&(a15==1)))){ + a2 = 9; + a9 = 16; + a12 = 2; + return -1; + } else if(((a9==18)&&(!(a15==1)&&(!(a25==1)&&((a20==5)&&(((a16==1)&&((((a12==5)&&(a2==13))||((a2==9)&&(a12==6)))&&(input==3)))&&(a27==1))))))){ + a15 = 1; + a2 = 13; + a12 = 3; + a20 = 7; + return 24; + } else if((((a16==1)&&((((!(a15==1)&&(((((a2==13)&&(a12==4))||((a12==5)&&(a2==9)))||((a12==5)&&(a2==10)))&&(input==2)))&&(a9==18))&&(a20==5))&&!(a25==1)))&&(a27==1))){ + if((a15==1)){ + a2 = 11; + a12 = 2; + a25 = 1; + a15 = 1; + }else{ + a15 = 1; + a2 = 9; + a25 = 1; + a12 = 5; + a9 = 17; + } + return -1; + } else if(((a15==1)&&((a9==17)&&(((a27==1)&&(((a25==1)&&((a20==7)&&((input==5)&&((a2==10)||(a2==11)))))&&(a12==2)))&&(a16==1))))){ + a2 = 9; + a20 = 5; + a9 = 16; + return -1; + } else if((((a9==18)&&(((((a15==1)&&(((input==1)&&(a12==5))&&(a2==11)))&&(a27==1))&&(a20==5))&&!(a25==1)))&&(a16==1))){ + a25 = 1; + a2 = 9; + a9 = 16; + a12 = 2; + return -1; + } else if(((a9==18)&&((a27==1)&&(((a16==1)&&(((a20==7)&&((a12==6)&&((input==6)&&(a15==1))))&&(a2==10)))&&!(a25==1))))){ + a12 = 2; + a25 = 1; + a2 = 9; + a20 = 5; + a9 = 16; + return -1; + } else if(((a12==2)&&((a15==1)&&(((((((((a2==9)||(a2==10))||(a2==11))&&(input==6))&&(a9==18))&&(a25==1))&&(a27==1))&&(a20==6))&&(a16==1))))){ + if((a16==1)){ + a2 = 10; + a12 = 4; + a20 = 7; + a9 = 17; + }else{ + a9 = 17; + a12 = 6; + a2 = 11; + } + return -1; + } else if((((a2==9)&&((((a27==1)&&((a9==17)&&(!(a25==1)&&((a12==3)&&(input==1)))))&&(a15==1))&&(a20==7)))&&(a16==1))){ + a9 = 18; + a12 = 6; + a20 = 5; + a2 = 13; + return 23; + } else if(((a9==17)&&(((a27==1)&&((a16==1)&&((a12==2)&&((((input==5)&&((a2==9)||(a2==10)))&&!(a25==1))&&(a20==7)))))&&(a15==1)))){ + a2 = 11; + a9 = 18; + a20 = 6; + a25 = 1; + return -1; + } else if((((a15==1)&&(((((a12==5)&&((a20==6)&&((input==4)&&((a2==9)||(a2==10)))))&&(a16==1))&&!(a25==1))&&(a27==1)))&&(a9==17))){ + a9 = 16; + a25 = 1; + a12 = 2; + a2 = 9; + a20 = 5; + return -1; + } else if((((a20==7)&&((a12==3)&&((((a16==1)&&(((input==4)&&(a2==13))&&!(a25==1)))&&(a9==17))&&(a27==1))))&&(a15==1))){ + a20 = 5; + a25 = 1; + a12 = 2; + a2 = 9; + a9 = 16; + return -1; + } else if(((a15==1)&&(((a20==5)&&((a27==1)&&((a12==4)&&(!(a25==1)&&(((input==1)&&(a2==13))&&(a9==18))))))&&(a16==1)))){ + a25 = 1; + a12 = 2; + a2 = 9; + a9 = 16; + return -1; + } else if(((a20==7)&&((((a9==17)&&((a15==1)&&((((input==4)&&((a2==9)||(a2==10)))&&(a12==2))&&(a27==1))))&&!(a25==1))&&(a16==1)))){ + a20 = 6; + a25 = 1; + a12 = 5; + a2 = 10; + return -1; + } else if((((a20==5)&&(!(a15==1)&&((((a9==16)&&(((input==2)&&((a2==11)||((a2==9)||(a2==10))))&&(a16==1)))&&(a27==1))&&(a12==3))))&&(a25==1))){ + a2 = 9; + a15 = 1; + a12 = 2; + return -1; + } else if((((((((((input==3)&&(((a2==9)||(a2==10))||(a2==11)))&&(a27==1))&&(a12==3))&&(a9==16))&&(a16==1))&&!(a15==1))&&(a20==5))&&(a25==1))){ + a12 = 2; + a15 = 1; + a2 = 9; + return -1; + } else if(((a15==1)&&((a9==16)&&(((a16==1)&&(((a20==5)&&(((input==3)&&(a12==4))&&!(a25==1)))&&(a27==1)))&&(a2==11))))){ + a2 = 9; + a25 = 1; + a12 = 2; + return -1; + } else if((((a16==1)&&((a9==16)&&(!(a25==1)&&((a15==1)&&((a12==4)&&((a20==7)&&(((a2==10)||(a2==11))&&(input==2))))))))&&(a27==1))){ + a20 = 6; + a2 = 11; + a25 = 1; + a12 = 2; + return 24; + } else if(((a27==1)&&((((a20==7)&&(((a25==1)&&(((input==1)&&((a2==12)||(a2==13)))&&(a9==17)))&&(a15==1)))&&(a16==1))&&(a12==5)))){ + if((a12==6)){ + a20 = 5; + a2 = 10; + a12 = 4; + a9 = 16; + a15 = 0; + }else{ + a20 = 6; + a2 = 12; + a9 = 16; + } + return -1; + } else if((((((a27==1)&&((a16==1)&&(((a20==6)&&((input==1)&&((a2==11)||((a2==9)||(a2==10)))))&&(a12==6))))&&(a25==1))&&(a9==16))&&(a15==1))){ + if((a12==5)){ + a20 = 5; + a15 = 0; + a12 = 4; + a2 = 10; + }else{ + a2 = 13; + a12 = 5; + } + return -1; + } else if(((((a16==1)&&(((((input==3)&&(((a12==4)&&(a2==9))||(((a2==12)&&(a12==3))||((a2==13)&&(a12==3)))))&&(a20==5))&&!(a15==1))&&(a9==16)))&&(a25==1))&&(a27==1))){ + a2 = 9; + a15 = 1; + a12 = 2; + return -1; + } else if(((a20==5)&&(((a12==2)&&(((a9==17)&&((((input==6)&&((a2==10)||(a2==11)))&&(a27==1))&&!(a25==1)))&&!(a15==1)))&&(a16==1)))){ + a2 = 13; + a9 = 18; + return -1; + } else if(((a16==1)&&(((((a27==1)&&((a15==1)&&((input==4)&&((((a12==2)&&(a2==12))||((a12==2)&&(a2==13)))||((a12==3)&&(a2==9))))))&&(a20==5))&&(a9==17))&&!(a25==1)))){ + a20 = 6; + a25 = 1; + a12 = 3; + a2 = 10; + return 24; + } else if(((a27==1)&&(((((((a9==18)&&((input==5)&&(a15==1)))&&(a12==4))&&(a2==10))&&(a20==7))&&(a16==1))&&(a25==1)))){ + a9 = 17; + a20 = 6; + return -1; + } else if((((a27==1)&&(((((((((a2==12)&&(a12==3))||((a2==13)&&(a12==3)))||((a2==9)&&(a12==4)))&&(input==3))&&(a16==1))&&(a25==1))&&(a15==1))&&(a20==7)))&&(a9==17))){ + a20 = 6; + a12 = 2; + a2 = 9; + return 23; + } else if(((!(a25==1)&&(((a20==5)&&(((((input==6)&&((a2==9)||(a2==10)))&&(a9==16))&&(a12==3))&&!(a15==1)))&&(a27==1)))&&(a16==1))){ + a20 = 7; + a25 = 1; + a15 = 1; + a2 = 11; + a12 = 5; + return -1; + } else if(((a16==1)&&((a27==1)&&((((a25==1)&&((a15==1)&&((((a2==10)||(a2==11))&&(input==6))&&(a12==2))))&&(a20==7))&&(a9==17))))){ + a2 = 9; + a20 = 5; + a9 = 16; + return -1; + } else if((((a16==1)&&((a2==11)&&(((a9==18)&&(((a12==4)&&((input==4)&&(a15==1)))&&(a20==6)))&&(a27==1))))&&!(a25==1))){ + a20 = 5; + a9 = 16; + a25 = 1; + a12 = 2; + a2 = 9; + return -1; + } else if(((((((a20==6)&&((((input==1)&&(((a2==11)||(a2==12))||(a2==13)))&&(a12==4))&&(a27==1)))&&(a9==18))&&(a16==1))&&(a25==1))&&(a15==1))){ + a12 = 2; + a2 = 13; + return -1; + } else if((!(a25==1)&&(((((((((a2==11)||(a2==12))&&(input==4))&&(a12==6))&&(a15==1))&&(a27==1))&&(a16==1))&&(a9==16))&&(a20==5)))){ + a12 = 4; + a25 = 1; + a20 = 6; + a2 = 11; + return 23; + } else if(((a9==18)&&((((((a27==1)&&((a2==9)&&((a20==7)&&(input==3))))&&(a15==1))&&(a25==1))&&(a12==4))&&(a16==1)))){ + a9 = 16; + a20 = 5; + a12 = 2; + return -1; + } else if(((((((a16==1)&&((a15==1)&&((input==6)&&((((a12==2)&&(a2==13))||((a12==3)&&(a2==9)))||((a2==10)&&(a12==3))))))&&(a9==17))&&(a27==1))&&(a20==6))&&!(a25==1))){ + a2 = 9; + a20 = 5; + a9 = 16; + a12 = 2; + a25 = 1; + return -1; + } else if((((((a16==1)&&(((a9==17)&&(!(a25==1)&&((((a2==9)||(a2==10))||(a2==11))&&(input==4))))&&(a20==5)))&&(a15==1))&&(a12==2))&&(a27==1))){ + a25 = 1; + a2 = 9; + a9 = 16; + return -1; + } else if(((a25==1)&&((!(a15==1)&&((((a16==1)&&((input==1)&&(((a12==3)&&(a2==13))||((a2==9)&&(a12==4)))))&&(a9==17))&&(a20==5)))&&(a27==1)))){ + a2 = 9; + a12 = 5; + a15 = 1; + return -1; + } else if(((a20==5)&&(!(a25==1)&&((a9==16)&&(((a16==1)&&(((a12==6)&&((input==1)&&((a2==11)||(a2==12))))&&(a27==1)))&&(a15==1)))))){ + a25 = 1; + a2 = 11; + a12 = 5; + a20 = 6; + return 23; + } else if((((a15==1)&&(((a12==6)&&(((a27==1)&&(!(a25==1)&&(((a2==11)||(a2==12))&&(input==5))))&&(a9==17)))&&(a16==1)))&&(a20==5))){ + a20 = 6; + a2 = 13; + a9 = 16; + return 26; + } else if(((a12==3)&&((((!(a25==1)&&(!(a15==1)&&(((input==3)&&(((a2==11)||(a2==12))||(a2==13)))&&(a9==17))))&&(a16==1))&&(a20==5))&&(a27==1)))){ + a2 = 12; + a9 = 18; + return 21; + } else if(((((a15==1)&&((((a12==2)&&((a2==12)&&((input==3)&&(a27==1))))&&(a16==1))&&(a20==7)))&&(a9==17))&&(a25==1))){ + a9 = 16; + a2 = 9; + a20 = 5; + return -1; + } else if(((!(a15==1)&&((((a25==1)&&((a27==1)&&((((a2==10)||(a2==11))&&(input==6))&&(a12==6))))&&(a9==16))&&(a16==1)))&&(a20==5))){ + a12 = 4; + a9 = 17; + a2 = 11; + a20 = 6; + a15 = 1; + return -1; + } else if((((a16==1)&&(!(a25==1)&&((((a27==1)&&((((a12==5)&&(a2==13))||((a12==6)&&(a2==9)))&&(input==2)))&&(a20==6))&&(a15==1))))&&(a9==16))){ + a20 = 5; + a2 = 9; + a25 = 1; + a12 = 2; + return -1; + } else if(((a25==1)&&(((a27==1)&&((a16==1)&&(((((input==2)&&((a2==9)||(a2==10)))&&(a12==5))&&(a9==18))&&(a15==1))))&&(a20==6)))){ + a12 = 2; + a9 = 16; + a2 = 9; + a20 = 5; + return -1; + } else if((((a20==7)&&((a25==1)&&((((a27==1)&&((input==2)&&(((a2==9)&&(a12==5))||(((a2==12)&&(a12==4))||((a12==4)&&(a2==13))))))&&(a15==1))&&(a16==1))))&&(a9==18))){ + a9 = 16; + a2 = 9; + a12 = 6; + a20 = 6; + return 21; + } else if((((a16==1)&&(((a27==1)&&((a25==1)&&(((input==2)&&(((a12==4)&&(a2==10))||(((a12==3)&&(a2==13))||((a12==4)&&(a2==9)))))&&(a9==18))))&&(a15==1)))&&(a20==6))){ + a2 = 9; + a12 = 2; + a9 = 16; + a20 = 5; + return -1; + } else if(((a27==1)&&(((a16==1)&&((a15==1)&&((((((a2==11)||(a2==12))&&(input==1))&&(a12==5))&&(a9==17))&&!(a25==1))))&&(a20==7)))){ + a12 = 2; + a20 = 5; + a25 = 1; + a2 = 9; + a9 = 16; + return -1; + } else if(((a9==18)&&((a20==5)&&((a27==1)&&((a16==1)&&(!(a15==1)&&((((input==2)&&(((a2==11)||(a2==12))||(a2==13)))&&(a12==6))&&(a25==1)))))))){ + if((a15==1)){ + a2 = 11; + a9 = 16; + }else{ + a15 = 1; + a12 = 5; + a2 = 9; + a9 = 16; + } + return -1; + } else if((((((a16==1)&&((a20==5)&&((((((a2==10)||(a2==11))||(a2==12))&&(input==2))&&(a27==1))&&(a12==6))))&&!(a15==1))&&(a9==17))&&!(a25==1))){ + if((a15==1)){ + a12 = 3; + a9 = 18; + a2 = 9; + a15 = 1; + a25 = 1; + }else{ + a12 = 3; + a9 = 18; + a25 = 1; + a2 = 12; + a15 = 1; + } + return 26; + } else if(((a16==1)&&((a27==1)&&((((a20==6)&&((a15==1)&&((((a2==9)||(a2==10))&&(input==5))&&!(a25==1))))&&(a12==5))&&(a9==17))))){ + a12 = 2; + a9 = 16; + a25 = 1; + a2 = 9; + a20 = 5; + return -1; + } else if(((a27==1)&&((a16==1)&&((a20==5)&&(!(a15==1)&&(((input==2)&&((((a9==18)&&(a2==9))&&(a12==2))||(((a12==6)&&((a2==12)&&(a9==17)))||((a12==6)&&((a9==17)&&(a2==13))))))&&(a25==1))))))){ + a2 = 11; + a20 = 6; + a9 = 17; + a12 = 2; + a15 = 1; + return 25; + } else if(((a15==1)&&((((a27==1)&&((a16==1)&&(((((a2==12)||(a2==13))&&(input==4))&&!(a25==1))&&(a20==7))))&&(a12==2))&&(a9==17)))){ + a2 = 9; + a20 = 5; + a9 = 16; + a25 = 1; + return -1; + } else if((!(a15==1)&&((((a12==3)&&((a9==18)&&((!(a25==1)&&(((a2==11)||(a2==12))&&(input==1)))&&(a27==1))))&&(a20==5))&&(a16==1)))){ + a25 = 1; + a9 = 16; + a2 = 10; + a15 = 1; + return -1; + } else if((((a16==1)&&(((a20==5)&&(((a27==1)&&((((a2==12)||((a2==10)||(a2==11)))&&(input==2))&&(a12==2)))&&!(a25==1)))&&!(a15==1)))&&(a9==18))){ + a20 = 6; + a12 = 6; + a15 = 1; + a9 = 17; + a2 = 10; + return -1; + } else if((!(a25==1)&&((a16==1)&&(((a20==5)&&((a27==1)&&(((a15==1)&&(((a2==11)||(a2==12))&&(input==2)))&&(a9==16))))&&(a12==6))))){ + a2 = 9; + a25 = 1; + a12 = 2; + return -1; + } else if(((a9==18)&&(((!(a15==1)&&(((((a16==1)&&(input==3))&&(a25==1))&&(a20==5))&&(a12==4)))&&(a2==9))&&(a27==1)))){ + a25 = 0; + a9 = 16; + a12 = 5; + return -1; + } else if((((a15==1)&&((a9==16)&&((a2==11)&&((a27==1)&&((a12==2)&&(((input==2)&&(a25==1))&&(a20==7)))))))&&(a16==1))){ + a12 = 4; + return 23; + } else if(((((a27==1)&&((a16==1)&&((a9==16)&&(((a12==6)&&((input==6)&&(((a2==11)||(a2==12))||(a2==13))))&&(a20==6)))))&&!(a25==1))&&(a15==1))){ + a2 = 9; + a12 = 2; + a25 = 1; + a20 = 5; + return -1; + } else if(((a25==1)&&((a15==1)&&(((a20==6)&&(((a16==1)&&((a12==5)&&((input==3)&&((a2==10)||(a2==11)))))&&(a27==1)))&&(a9==17))))){ + a20 = 5; + a9 = 16; + a12 = 2; + a2 = 9; + return -1; + } else if((((a9==17)&&(((((a15==1)&&(!(a25==1)&&((input==3)&&((a2==11)||(a2==12)))))&&(a16==1))&&(a27==1))&&(a20==7)))&&(a12==5))){ + a2 = 9; + a25 = 1; + a12 = 2; + a20 = 5; + a9 = 16; + return -1; + } else if(((a15==1)&&(((a20==6)&&(((a27==1)&&((a9==17)&&(((((a12==5)&&(a2==13))||((a2==9)&&(a12==6)))||((a2==10)&&(a12==6)))&&(input==5))))&&(a16==1)))&&(a25==1)))){ + a9 = 16; + a12 = 3; + a2 = 12; + return -1; + } else if(((((a20==6)&&(((a12==5)&&(((((a2==11)||(a2==12))&&(input==2))&&!(a25==1))&&(a16==1)))&&(a9==16)))&&(a15==1))&&(a27==1))){ + a2 = 9; + a12 = 2; + a25 = 1; + a20 = 5; + return -1; + } else if(((a15==1)&&((a20==7)&&((a12==2)&&((a16==1)&&((a9==18)&&((a27==1)&&((a25==1)&&((input==1)&&((a2==12)||((a2==10)||(a2==11)))))))))))){ + a9 = 16; + a2 = 10; + a20 = 5; + return -1; + } else if((((((a15==1)&&((a9==17)&&((a2==10)&&(((input==1)&&(a16==1))&&(a27==1)))))&&(a12==3))&&(a20==5))&&!(a25==1))){ + a9 = 16; + a2 = 9; + a25 = 1; + a12 = 2; + return -1; + } else if((!(a15==1)&&(((((a27==1)&&(!(a25==1)&&((((a12==3)&&(a2==10))||(((a2==13)&&(a12==2))||((a2==9)&&(a12==3))))&&(input==3))))&&(a20==5))&&(a9==17))&&(a16==1)))){ + if((a27==1)){ + a12 = 3; + a25 = 1; + a15 = 1; + a20 = 7; + a2 = 12; + }else{ + a15 = 1; + a25 = 1; + a9 = 16; + a12 = 4; + a2 = 11; + } + return -1; + } else if(((a16==1)&&((((((a12==3)&&(((input==1)&&(a20==5))&&(a2==11)))&&(a9==18))&&(a25==1))&&(a27==1))&&!(a15==1)))){ + a9 = 17; + a15 = 1; + a12 = 5; + return -1; + } else if(((a9==17)&&((a2==11)&&((a20==7)&&(((a15==1)&&((((input==5)&&(a12==3))&&(a25==1))&&(a27==1)))&&(a16==1)))))){ + if((a12==3)){ + a25 = 0; + a2 = 9; + a9 = 16; + a12 = 2; + }else{ + a20 = 6; + a12 = 5; + } + return -1; + } else if(((a20==5)&&(((((a27==1)&&(((((a2==13)&&(a12==3))||((a2==9)&&(a12==4)))&&(input==3))&&!(a15==1)))&&(a9==18))&&!(a25==1))&&(a16==1)))){ + if((a25==1)){ + a25 = 1; + a2 = 13; + a15 = 1; + a12 = 2; + }else{ + a12 = 5; + a25 = 1; + a9 = 16; + a2 = 12; + } + return 23; + } else if(((a20==6)&&((a15==1)&&((((((a25==1)&&((input==4)&&((a2==12)||(a2==13))))&&(a12==5))&&(a9==16))&&(a27==1))&&(a16==1))))){ + a12 = 4; + a2 = 12; + return -1; + } else if(((a20==6)&&((a16==1)&&(((!(a25==1)&&(((a12==4)&&(((a2==9)||(a2==10))&&(input==5)))&&(a9==18)))&&(a27==1))&&(a15==1))))){ + a9 = 16; + a20 = 5; + a12 = 2; + a2 = 9; + a25 = 1; + return -1; + } else if(((a27==1)&&(((a12==5)&&((a20==7)&&(!(a25==1)&&((((input==2)&&(a2==9))&&(a9==18))&&(a15==1)))))&&(a16==1)))){ + a25 = 1; + a20 = 5; + a9 = 16; + a12 = 2; + return -1; + } else if((!(a25==1)&&((a20==5)&&(((a16==1)&&((a27==1)&&((a15==1)&&((input==3)&&((((a12==3)&&(a2==13))||((a12==4)&&(a2==9)))||((a12==4)&&(a2==10)))))))&&(a9==17))))){ + a2 = 9; + a25 = 1; + a12 = 3; + a9 = 18; + a20 = 6; + return 23; + } else if((((a12==4)&&(((((a27==1)&&((a9==18)&&(!(a25==1)&&(input==2))))&&(a16==1))&&(a2==12))&&(a20==5)))&&(a15==1))){ + a2 = 9; + a9 = 16; + a12 = 2; + a25 = 1; + return -1; + } else if(((a25==1)&&(((a27==1)&&((a20==5)&&(((((a12==2)&&((a9==18)&&(a2==9)))||((((a2==12)&&(a9==17))&&(a12==6))||(((a2==13)&&(a9==17))&&(a12==6))))&&(input==6))&&!(a15==1))))&&(a16==1)))){ + a12 = 6; + a2 = 12; + a25 = 0; + a9 = 16; + return -1; + } else if((((a27==1)&&(((a2==12)&&((((a15==1)&&(!(a25==1)&&(input==4)))&&(a12==4))&&(a20==5)))&&(a9==18)))&&(a16==1))){ + a2 = 10; + a9 = 17; + a12 = 6; + a20 = 7; + return 21; + } else if(((a12==6)&&(!(a25==1)&&(((a16==1)&&((a2==10)&&(((a27==1)&&((a15==1)&&(input==2)))&&(a9==18))))&&(a20==7))))){ + a2 = 11; + a12 = 5; + a20 = 6; + a9 = 17; + return 23; + } else if(((((((((a9==16)&&(((a2==11)||(a2==12))&&(input==5)))&&(a25==1))&&(a12==3))&&(a16==1))&&(a27==1))&&(a15==1))&&(a20==6))){ + if((a12==6)){ + a2 = 12; + a20 = 7; + a9 = 17; + a25 = 0; + }else{ + a2 = 12; + a20 = 5; + a25 = 0; + a12 = 6; + } + return -1; + } else if((((a12==2)&&((a16==1)&&((a9==18)&&((a25==1)&&((((input==3)&&(a27==1))&&(a2==12))&&(a15==1))))))&&(a20==6))){ + a2 = 10; + a9 = 17; + return -1; + } else if((((a9==17)&&(!(a15==1)&&((((a20==5)&&((input==6)&&(((a2==13)&&(a12==3))||((a12==4)&&(a2==9)))))&&(a25==1))&&(a27==1))))&&(a16==1))){ + a20 = 6; + a12 = 6; + a2 = 11; + a15 = 1; + return -1; + } else if((((((a9==17)&&(((!(a15==1)&&((a2==12)&&(input==5)))&&(a20==5))&&(a25==1)))&&(a27==1))&&(a12==3))&&(a16==1))){ + a15 = 1; + a9 = 16; + a2 = 11; + a12 = 4; + return 23; + } else if((!(a25==1)&&((a15==1)&&(((a9==16)&&((a20==5)&&(((a2==13)&&((a27==1)&&(input==5)))&&(a16==1))))&&(a12==6))))){ + a20 = 7; + a12 = 5; + a2 = 12; + a9 = 17; + a25 = 1; + return 21; + } else if(((!(a25==1)&&((a27==1)&&((a20==7)&&((((a15==1)&&((input==3)&&(a9==17)))&&(a16==1))&&(a12==2)))))&&(a2==11))){ + a25 = 1; + a20 = 6; + a2 = 13; + a12 = 5; + return 21; + } else if((((a15==1)&&((((a9==16)&&(((!(a25==1)&&(input==1))&&(a27==1))&&(a12==4)))&&(a2==11))&&(a20==5)))&&(a16==1))){ + a12 = 6; + a2 = 13; + a9 = 18; + return 23; + } else if(((((((a9==18)&&(!(a25==1)&&(((input==6)&&(a12==4))&&(a16==1))))&&(a27==1))&&(a20==5))&&!(a15==1))&&(a2==10))){ + a12 = 5; + a25 = 1; + a9 = 17; + a2 = 11; + a15 = 1; + return -1; + } else if(((a15==1)&&(((a12==2)&&((a16==1)&&((a9==16)&&((((((a2==10)||(a2==11))||(a2==12))&&(input==1))&&!(a25==1))&&(a20==7)))))&&(a27==1)))){ + a20 = 5; + a2 = 9; + a25 = 1; + return -1; + } else if((!(a25==1)&&((a16==1)&&(((a9==17)&&((a20==5)&&((a12==6)&&((a15==1)&&((input==1)&&((a2==11)||(a2==12)))))))&&(a27==1))))){ + a2 = 10; + a12 = 2; + a20 = 6; + return -1; + } else if(((a9==17)&&((((((((input==2)&&(a12==6))&&(a20==5))&&(a2==11))&&!(a15==1))&&(a16==1))&&(a25==1))&&(a27==1)))){ + a2 = 12; + a15 = 1; + a12 = 4; + return -1; + } else if(((a9==16)&&(((a15==1)&&(((a12==2)&&((a20==7)&&((((a2==12)||((a2==10)||(a2==11)))&&(input==6))&&!(a25==1))))&&(a16==1)))&&(a27==1)))){ + a2 = 9; + a25 = 1; + a20 = 5; + return -1; + } else if((((((a25==1)&&((a20==7)&&((a15==1)&&(((((a2==11)||(a2==12))||(a2==13))&&(input==5))&&(a27==1)))))&&(a12==6))&&(a9==16))&&(a16==1))){ + a20 = 5; + a9 = 18; + a2 = 10; + a12 = 3; + return -1; + } else if(((((a15==1)&&((a12==2)&&(((a25==1)&&((a27==1)&&((input==6)&&(a2==12))))&&(a20==7))))&&(a16==1))&&(a9==16))){ + a2 = 9; + a20 = 5; + return -1; + } else if((!(a15==1)&&((a27==1)&&(((((((input==4)&&(a9==17))&&(a12==6))&&(a2==11))&&(a16==1))&&(a20==5))&&(a25==1))))){ + if((a27==1)){ + a9 = 16; + a15 = 1; + a12 = 2; + a25 = 0; + }else{ + a15 = 1; + a9 = 16; + a2 = 13; + a12 = 3; + } + return 26; + } else if((((((a16==1)&&((a27==1)&&((a9==16)&&((a12==4)&&(((a2==10)||(a2==11))&&(input==3))))))&&(a20==5))&&(a25==1))&&!(a15==1))){ + a12 = 3; + a2 = 13; + a15 = 1; + a20 = 6; + return -1; + } else if(((((((((a16==1)&&(((a2==11)||(a2==12))&&(input==3)))&&(a20==5))&&(a12==2))&&(a9==17))&&(a25==1))&&!(a15==1))&&(a27==1))){ + if((a12==2)){ + a12 = 3; + a15 = 1; + a9 = 16; + a2 = 12; + }else{ + a20 = 6; + a2 = 12; + a9 = 16; + a15 = 1; + } + return 26; + } else if((((((a2==9)&&((a20==7)&&(((a15==1)&&((input==5)&&!(a25==1)))&&(a16==1))))&&(a9==16))&&(a27==1))&&(a12==2))){ + a20 = 6; + a12 = 4; + a25 = 1; + a2 = 12; + return -1; + } else if(((a27==1)&&(((((((((a2==12)||((a2==10)||(a2==11)))&&(input==2))&&(a9==17))&&(a16==1))&&(a15==1))&&(a25==1))&&(a20==6))&&(a12==2)))){ + a20 = 5; + a9 = 16; + a2 = 9; + return -1; + } else if((!(a25==1)&&((((a20==6)&&((((a16==1)&&((input==1)&&(((a2==11)||(a2==12))||(a2==13))))&&(a9==17))&&(a15==1)))&&(a12==3))&&(a27==1)))){ + a12 = 2; + a9 = 16; + a25 = 1; + a2 = 9; + a20 = 5; + return -1; + } else if((!(a25==1)&&((a27==1)&&((a15==1)&&(((((((a9==17)&&(a2==13))&&(a12==6))||(((a2==9)&&(a9==18))&&(a12==2)))&&(input==3))&&(a16==1))&&(a20==5)))))){ + a2 = 9; + a25 = 1; + a12 = 2; + a9 = 16; + return -1; + } else if(((a25==1)&&((((a2==13)&&(((a16==1)&&((a27==1)&&((a12==2)&&(input==4))))&&(a20==6)))&&(a15==1))&&(a9==18)))){ + a2 = 9; + a20 = 5; + a9 = 16; + return -1; + } else if((((a20==6)&&((a12==4)&&((a16==1)&&(((a15==1)&&((((a2==9)||(a2==10))&&(input==1))&&!(a25==1)))&&(a9==18)))))&&(a27==1))){ + a12 = 2; + a25 = 1; + a20 = 5; + a9 = 16; + a2 = 9; + return -1; + } else if((((a27==1)&&(((a9==17)&&((((a15==1)&&((input==6)&&((a2==9)||(a2==10))))&&(a12==4))&&!(a25==1)))&&(a20==7)))&&(a16==1))){ + a25 = 1; + a9 = 16; + a20 = 5; + a2 = 9; + a12 = 2; + return -1; + } else if(((((!(a25==1)&&((a16==1)&&(((((a2==11)||(a2==12))&&(input==5))&&(a9==18))&&(a12==4))))&&!(a15==1))&&(a27==1))&&(a20==5))){ + if((a16==1)){ + a15 = 1; + a12 = 3; + a2 = 12; + }else{ + a12 = 2; + a2 = 12; + a25 = 1; + a15 = 1; + } + return -1; + } else if((((a27==1)&&((((((a12==6)&&((a15==1)&&((a2==13)&&(a9==18))))&&!(a25==1))&&(a20==7))||((((!(a15==1)&&((a9==16)&&(a2==9)))&&(a12==2))&&(a25==1))&&(a20==5)))&&(input==3)))&&(a16==1))){ + if((a15==1)){ + a15 = 0; + a20 = 5; + a2 = 13; + a12 = 2; + a9 = 16; + a25 = 1; + }else{ + a20 = 6; + a12 = 3; + a9 = 17; + a25 = 0; + a15 = 1; + a2 = 13; + } + return -1; + } else if(((a20==5)&&(((((a9==17)&&((!(a15==1)&&((input==5)&&((a2==11)||(a2==12))))&&(a25==1)))&&(a27==1))&&(a12==2))&&(a16==1)))){ + a15 = 1; + a9 = 18; + a2 = 12; + return -1; + } else if((((a15==1)&&((a25==1)&&((a12==3)&&(((a20==7)&&(((input==1)&&((a2==10)||(a2==11)))&&(a16==1)))&&(a9==16)))))&&(a27==1))){ + a2 = 10; + a25 = 0; + return -1; + } else if(((!(a25==1)&&((a15==1)&&((a12==3)&&((a9==18)&&((a20==7)&&((a16==1)&&((input==3)&&((a2==12)||(a2==13)))))))))&&(a27==1))){ + a25 = 1; + a2 = 9; + a9 = 16; + a12 = 2; + a20 = 5; + return -1; + } else if(((((((a27==1)&&((input==1)&&((((a2==13)&&(a9==17))&&(a12==6))||((a12==2)&&((a2==9)&&(a9==18))))))&&(a20==5))&&!(a15==1))&&!(a25==1))&&(a16==1))){ + if((a9==18)){ + a25 = 1; + a2 = 9; + a9 = 16; + a12 = 6; + }else{ + a2 = 10; + a12 = 4; + a25 = 1; + a9 = 16; + } + return -1; + } else if((((((((((input==5)&&((a2==10)||(a2==11)))&&(a16==1))&&!(a15==1))&&(a20==5))&&(a9==17))&&(a27==1))&&!(a25==1))&&(a12==2))){ + if((a20==6)){ + a2 = 11; + a20 = 6; + a12 = 4; + a9 = 16; + a15 = 1; + }else{ + a12 = 3; + a20 = 7; + a2 = 13; + a15 = 1; + a25 = 1; + } + return -1; + } else if((((a9==17)&&((a12==5)&&((a16==1)&&(!(a15==1)&&(!(a25==1)&&((a27==1)&&((input==2)&&((a2==12)||((a2==10)||(a2==11))))))))))&&(a20==5))){ + if((a9==18)){ + a15 = 1; + a20 = 6; + a2 = 12; + a12 = 3; + a9 = 18; + }else{ + a2 = 11; + a12 = 3; + a15 = 1; + a25 = 1; + } + return -1; + } else if((((a9==18)&&((((a15==1)&&(((((a2==12)||(a2==13))&&(input==5))&&(a27==1))&&(a20==7)))&&(a16==1))&&!(a25==1)))&&(a12==3))){ + a20 = 5; + a2 = 9; + a9 = 16; + a25 = 1; + a12 = 2; + return -1; + } else if((((a9==17)&&((a20==6)&&((a2==11)&&((a12==2)&&((((input==6)&&(a15==1))&&(a27==1))&&(a16==1))))))&&!(a25==1))){ + a12 = 5; + a9 = 18; + a20 = 7; + a2 = 10; + return 21; + } else if(((a27==1)&&((((a12==5)&&((a15==1)&&(((a9==17)&&((a16==1)&&(input==6)))&&(a2==9))))&&(a25==1))&&(a20==7)))){ + a2 = 13; + a9 = 18; + a12 = 6; + a20 = 5; + return 24; + } else if(((a9==17)&&(!(a25==1)&&((a20==6)&&(((a27==1)&&((a16==1)&&((a15==1)&&(((a2==9)||(a2==10))&&(input==6)))))&&(a12==5)))))){ + a20 = 5; + a25 = 1; + a12 = 2; + a2 = 9; + a9 = 16; + return -1; + } else if(((!(a25==1)&&((((a16==1)&&(((a27==1)&&((input==1)&&(a2==11)))&&(a20==6)))&&(a15==1))&&(a9==17)))&&(a12==2))){ + a25 = 1; + a20 = 5; + a2 = 9; + a9 = 16; + return -1; + } else if((((a16==1)&&((a9==18)&&((!(a25==1)&&((a12==2)&&(((input==5)&&((a2==12)||((a2==10)||(a2==11))))&&(a27==1))))&&!(a15==1))))&&(a20==5))){ + a12 = 4; + a25 = 1; + a15 = 1; + a9 = 16; + a2 = 12; + return -1; + } else if(((a9==17)&&((a25==1)&&(((((((a16==1)&&(input==1))&&(a2==13))&&(a12==6))&&(a20==6))&&(a27==1))&&(a15==1))))){ + if((a20==7)){ + a2 = 11; + a9 = 18; + a20 = 7; + a12 = 3; + }else{ + a12 = 3; + a9 = 16; + } + return -1; + } else if((((((a27==1)&&((a20==6)&&((a15==1)&&((input==1)&&(((a12==2)&&(a2==13))||((a12==3)&&(a2==9)))))))&&(a25==1))&&(a16==1))&&(a9==17))){ + if((a2==11)){ + a25 = 0; + a12 = 5; + a9 = 16; + a2 = 9; + a20 = 7; + }else{ + a2 = 12; + a9 = 16; + a12 = 3; + } + return -1; + } else if(((a12==4)&&((a27==1)&&((a9==17)&&(((a20==7)&&((a15==1)&&(((input==4)&&(a16==1))&&(a25==1))))&&(a2==13)))))){ + a2 = 12; + a12 = 5; + a9 = 18; + a20 = 5; + return 25; + } else if((((((a25==1)&&((((a20==6)&&((input==3)&&((a2==11)||((a2==9)||(a2==10)))))&&(a15==1))&&(a27==1)))&&(a12==3))&&(a9==18))&&(a16==1))){ + a20 = 7; + a2 = 10; + return -1; + } else if(((((a16==1)&&((a25==1)&&(((a12==5)&&((a27==1)&&((input==5)&&!(a15==1))))&&(a2==12))))&&(a9==16))&&(a20==5))){ + a15 = 1; + a12 = 3; + a2 = 9; + a20 = 7; + a9 = 17; + a25 = 0; + return -1; + } else if((((a16==1)&&(((((((a12==2)&&((a2==9)&&(a9==18)))||(((a12==6)&&((a2==12)&&(a9==17)))||(((a2==13)&&(a9==17))&&(a12==6))))&&(input==3))&&!(a15==1))&&(a20==5))&&(a25==1)))&&(a27==1))){ + if((a15==1)){ + a12 = 3; + a2 = 12; + a15 = 1; + a9 = 18; + }else{ + a15 = 1; + a2 = 10; + a20 = 7; + a12 = 4; + a9 = 18; + } + return -1; + } else if(((a9==18)&&((a16==1)&&((a27==1)&&(((a20==6)&&((a15==1)&&(!(a25==1)&&(((a2==12)||(a2==13))&&(input==1)))))&&(a12==3)))))){ + a12 = 2; + a25 = 1; + a20 = 5; + a2 = 9; + a9 = 16; + return -1; + } else if(((((a27==1)&&(!(a25==1)&&(((a9==18)&&((((a2==12)||((a2==10)||(a2==11)))&&(input==6))&&!(a15==1)))&&(a16==1))))&&(a12==2))&&(a20==5))){ + a15 = 1; + a12 = 4; + a25 = 1; + a2 = 9; + return -1; + } else if(((a2==12)&&(((((a9==16)&&((((input==2)&&(a16==1))&&(a27==1))&&!(a25==1)))&&(a15==1))&&(a12==4))&&(a20==6)))){ + a20 = 5; + a25 = 1; + a2 = 9; + a12 = 2; + return -1; + } else if(((a2==12)&&((a27==1)&&(((((a25==1)&&(((a16==1)&&(input==6))&&(a9==18)))&&(a20==6))&&(a15==1))&&(a12==3))))){ + a12 = 4; + a2 = 10; + a20 = 7; + return -1; + } else if(((a20==7)&&(((((((a15==1)&&(((a2==10)||(a2==11))&&(input==6)))&&(a27==1))&&(a25==1))&&(a16==1))&&(a12==4))&&(a9==17)))){ + a12 = 5; + a20 = 6; + a2 = 9; + a9 = 16; + return -1; + } else if((!(a25==1)&&((a20==5)&&((a9==18)&&(((((((a2==9)||(a2==10))&&(input==6))&&(a15==1))&&(a16==1))&&(a27==1))&&(a12==5)))))){ + a20 = 6; + a2 = 13; + a9 = 17; + a12 = 6; + return 21; + } else if((((((a20==7)&&((a15==1)&&(((((a2==13)&&(a12==2))||((a12==3)&&(a2==9)))&&(input==2))&&(a16==1))))&&(a27==1))&&(a25==1))&&(a9==16))){ + a20 = 6; + a2 = 13; + a12 = 3; + return 21; + } else if(((a25==1)&&(((((a2==12)&&((a12==4)&&(((a27==1)&&(input==2))&&(a16==1))))&&(a9==17))&&(a20==7))&&(a15==1)))){ + if((a12==3)){ + a2 = 10; + a9 = 18; + a12 = 3; + }else{ + a20 = 6; + a9 = 16; + a2 = 10; + } + return 21; + } else if(((((a12==3)&&(((a15==1)&&(!(a25==1)&&((a20==6)&&((((a2==11)||(a2==12))||(a2==13))&&(input==2)))))&&(a9==17)))&&(a27==1))&&(a16==1))){ + a2 = 10; + a12 = 5; + a9 = 16; + return 26; + } else if(((a16==1)&&(((((((a12==5)&&(((a2==11)||(a2==12))&&(input==5)))&&(a20==6))&&(a27==1))&&(a9==16))&&!(a25==1))&&(a15==1)))){ + a25 = 1; + a12 = 3; + a15 = 0; + a2 = 10; + a20 = 5; + return 21; + } else if(((a12==5)&&((a16==1)&&(((((a2==9)&&(((input==3)&&!(a15==1))&&(a20==5)))&&(a9==17))&&(a27==1))&&!(a25==1))))){ + if((a2==12)){ + a15 = 1; + a12 = 2; + a2 = 11; + a25 = 1; + a20 = 6; + }else{ + a25 = 1; + a2 = 13; + a12 = 6; + a20 = 6; + a15 = 1; + } + return -1; + } else if((((a20==5)&&((a27==1)&&(!(a25==1)&&(((a9==17)&&((input==6)&&(((a12==3)&&(a2==9))||(((a12==2)&&(a2==12))||((a12==2)&&(a2==13))))))&&(a16==1)))))&&(a15==1))){ + a12 = 2; + a2 = 9; + a9 = 16; + a25 = 1; + return -1; + } else if((((a20==7)&&(((a15==1)&&((a16==1)&&((a27==1)&&(!(a25==1)&&(((a2==9)||(a2==10))&&(input==2))))))&&(a12==4)))&&(a9==17))){ + a9 = 18; + a2 = 12; + a20 = 6; + a12 = 3; + a25 = 1; + return 25; + } else if(((a20==7)&&((!(a25==1)&&(((a9==17)&&((a15==1)&&((a27==1)&&((input==4)&&((a2==9)||(a2==10))))))&&(a16==1)))&&(a12==6)))){ + a9 = 16; + a25 = 1; + a2 = 13; + a12 = 2; + return 25; + } else if(((!(a25==1)&&((a15==1)&&((a16==1)&&((a20==5)&&(((a27==1)&&(((a2==11)||(a2==12))&&(input==6)))&&(a12==3))))))&&(a9==17))){ + a12 = 2; + a20 = 6; + a9 = 18; + a25 = 1; + a2 = 12; + return 21; + } else if(((a15==1)&&((((a12==3)&&((((a9==18)&&(((a2==11)||((a2==9)||(a2==10)))&&(input==2)))&&(a25==1))&&(a16==1)))&&(a20==6))&&(a27==1)))){ + a20 = 5; + a9 = 16; + a2 = 9; + a12 = 2; + return -1; + } else if((((a15==1)&&(((((a25==1)&&(((a27==1)&&(input==6))&&(a9==16)))&&(a20==6))&&(a2==12))&&(a12==2)))&&(a16==1))){ + a2 = 9; + a20 = 5; + return -1; + } else if(((((a27==1)&&((((a9==18)&&((a20==7)&&((a12==4)&&(input==6))))&&(a16==1))&&(a25==1)))&&(a2==11))&&(a15==1))){ + a9 = 16; + a2 = 9; + a12 = 2; + a20 = 5; + return -1; + } else if(((a15==1)&&(((a20==6)&&(!(a25==1)&&((a9==17)&&(((a27==1)&&((input==6)&&((a2==9)||(a2==10))))&&(a12==2)))))&&(a16==1)))){ + a25 = 1; + a9 = 16; + a2 = 9; + a20 = 5; + return -1; + } else if(((a16==1)&&(!(a25==1)&&((a27==1)&&((a15==1)&&(((a9==16)&&((input==3)&&(((a12==3)&&(a2==13))||((a12==4)&&(a2==9)))))&&(a20==6))))))){ + a2 = 9; + a20 = 5; + a25 = 1; + a12 = 2; + return -1; + } else if(((a27==1)&&(((((a12==2)&&(((a20==6)&&((input==6)&&(a16==1)))&&!(a25==1)))&&(a9==16))&&(a2==11))&&(a15==1)))){ + if((a2==10)){ + a25 = 1; + a2 = 10; + a12 = 4; + a20 = 5; + a15 = 0; + }else{ + a25 = 1; + a2 = 13; + a12 = 5; + } + return -1; + } else if(((a16==1)&&((a20==5)&&((!(a25==1)&&(!(a15==1)&&(((input==4)&&((((a12==4)&&(a2==13))||((a2==9)&&(a12==5)))||((a12==5)&&(a2==10))))&&(a9==16))))&&(a27==1))))){ + a12 = 6; + a2 = 13; + a25 = 1; + a15 = 1; + return 21; + } else if((((a9==16)&&((a27==1)&&((a25==1)&&((a2==12)&&((((a12==2)&&(input==1))&&(a15==1))&&(a20==7))))))&&(a16==1))){ + a20 = 5; + a2 = 9; + return -1; + } else if(((((a16==1)&&(!(a25==1)&&(((((((a2==10)||(a2==11))||(a2==12))&&(input==1))&&(a15==1))&&(a12==5))&&(a20==5))))&&(a9==16))&&(a27==1))){ + a20 = 6; + a25 = 1; + a12 = 2; + a2 = 12; + return 21; + } else if((((a27==1)&&((a16==1)&&(((((((a2==13)||((a2==11)||(a2==12)))&&(input==4))&&(a20==5))&&(a12==3))&&(a9==16))&&!(a15==1))))&&!(a25==1))){ + if((a15==1)){ + a25 = 1; + a2 = 9; + a15 = 1; + a12 = 4; + a20 = 7; + }else{ + a15 = 1; + a25 = 1; + a2 = 10; + a9 = 17; + } + return -1; + } else if(((a9==16)&&((a12==5)&&(((!(a15==1)&&((a16==1)&&(((input==2)&&(a25==1))&&(a27==1))))&&(a20==5))&&(a2==11))))){ + if((a16==1)){ + a9 = 17; + a15 = 1; + a12 = 2; + }else{ + a20 = 7; + a2 = 10; + a9 = 18; + a12 = 2; + a15 = 1; + } + return 23; + } else if(((((a20==5)&&(!(a25==1)&&((a9==16)&&((((((a12==3)&&(a2==12))||((a12==3)&&(a2==13)))||((a2==9)&&(a12==4)))&&(input==4))&&(a16==1)))))&&(a27==1))&&(a15==1))){ + a2 = 10; + a12 = 5; + a9 = 18; + return 26; + } else if((!(a25==1)&&((a27==1)&&((a16==1)&&(((a20==5)&&(((a15==1)&&((input==4)&&((a2==13)||((a2==11)||(a2==12)))))&&(a12==3)))&&(a9==18)))))){ + a12 = 2; + a9 = 16; + a25 = 1; + a2 = 9; + return -1; + } else if(((((a20==6)&&((a9==17)&&(((((input==4)&&((a2==12)||((a2==10)||(a2==11))))&&(a16==1))&&(a25==1))&&(a15==1))))&&(a12==2))&&(a27==1))){ + if((a16==1)){ + a2 = 11; + a12 = 3; + a20 = 7; + }else{ + a9 = 18; + a2 = 11; + a12 = 3; + } + return 26; + } else if(((a16==1)&&((((((((input==6)&&((a2==10)||(a2==11)))&&(a9==16))&&(a15==1))&&(a25==1))&&(a12==3))&&(a20==7))&&(a27==1)))){ + a20 = 5; + a2 = 9; + a12 = 2; + return -1; + } else if(((a20==7)&&((a16==1)&&((a27==1)&&((a9==18)&&((a12==6)&&((a15==1)&&(((input==5)&&((a2==12)||(a2==13)))&&(a25==1))))))))){ + a2 = 11; + a9 = 16; + a12 = 4; + a20 = 6; + return -1; + } else if((((a12==5)&&((a9==18)&&(((a20==6)&&((a16==1)&&((((a2==11)||(a2==12))&&(input==5))&&(a27==1))))&&(a15==1))))&&(a25==1))){ + if((a27==1)){ + a20 = 7; + a9 = 16; + a2 = 9; + a12 = 2; + a25 = 0; + }else{ + a9 = 17; + a2 = 11; + } + return -1; + } else if(((a15==1)&&((a9==17)&&(((a20==5)&&(((a27==1)&&(((input==4)&&((a2==9)||(a2==10)))&&!(a25==1)))&&(a12==5)))&&(a16==1))))){ + a20 = 6; + a9 = 16; + a12 = 2; + a2 = 11; + return 25; + } else if((((a12==5)&&((a9==16)&&(((a27==1)&&(((((a2==12)||(a2==13))&&(input==2))&&(a25==1))&&(a20==6)))&&(a15==1))))&&(a16==1))){ + a20 = 5; + a12 = 2; + a2 = 9; + return -1; + } return calculate_output5(input); + } + + int calculate_output5(int input) { + if((((a20==5)&&((((a12==4)&&((a15==1)&&((((a2==10)||(a2==11))&&(input==5))&&(a16==1))))&&!(a25==1))&&(a27==1)))&&(a9==18))){ + a12 = 2; + a2 = 9; + a9 = 16; + a25 = 1; + return -1; + } else if(((((a9==17)&&((a27==1)&&(((a16==1)&&((((a12==3)&&(a2==13))||((a2==9)&&(a12==4)))&&(input==5)))&&(a25==1))))&&(a20==5))&&!(a15==1))){ + if((a2==12)){ + a15 = 1; + a2 = 10; + a12 = 2; + }else{ + a12 = 6; + a15 = 1; + a9 = 16; + a2 = 12; + } + return -1; + } else if((((a15==1)&&((a27==1)&&((((a16==1)&&((((a2==10)&&(a12==3))||(((a2==13)&&(a12==2))||((a12==3)&&(a2==9))))&&(input==2)))&&(a9==18))&&!(a25==1))))&&(a20==5))){ + a25 = 1; + a2 = 12; + a20 = 6; + a12 = 3; + return 25; + } else if(((a20==6)&&((((a25==1)&&((a27==1)&&((a2==12)&&(((a15==1)&&(input==1))&&(a16==1)))))&&(a9==18))&&(a12==3)))){ + a12 = 5; + a9 = 17; + return -1; + } else if(((a25==1)&&(((a16==1)&&((a27==1)&&(((input==1)&&(((a12==6)&&((a9==17)&&(a2==13)))||(((a9==18)&&(a2==9))&&(a12==2))))&&(a20==7))))&&(a15==1)))){ + a2 = 12; + a12 = 2; + a20 = 6; + a9 = 18; + return -1; + } else if(((a20==6)&&((a15==1)&&(((a27==1)&&(((!(a25==1)&&((a12==2)&&((a9==16)&&(a2==10))))||(((a25==1)&&((a12==6)&&((a9==18)&&(a2==13))))||(!(a25==1)&&(((a2==9)&&(a9==16))&&(a12==2)))))&&(input==3)))&&(a16==1))))){ + a25 = 1; + a9 = 18; + a2 = 11; + a12 = 4; + return -1; + } else if((((a9==18)&&((((((((a2==11)||(a2==12))&&(input==3))&&(a27==1))&&!(a15==1))&&(a20==5))&&(a16==1))&&!(a25==1)))&&(a12==3))){ + a12 = 4; + a2 = 10; + return -1; + } else if(((a15==1)&&(((((a27==1)&&(((input==1)&&(((a2==13)&&(a12==2))||((a2==9)&&(a12==3))))&&(a25==1)))&&(a20==7))&&(a16==1))&&(a9==18)))){ + a9 = 16; + a2 = 9; + a20 = 5; + a12 = 2; + return -1; + } else if(((((a9==16)&&((a2==12)&&(((((a27==1)&&(input==6))&&!(a15==1))&&(a20==5))&&(a16==1))))&&(a25==1))&&(a12==6))){ + a15 = 1; + a2 = 13; + a12 = 3; + return -1; + } else if((((((a16==1)&&((((a12==4)&&((input==3)&&((a2==13)||((a2==11)||(a2==12)))))&&(a25==1))&&(a9==18)))&&(a15==1))&&(a20==6))&&(a27==1))){ + if((a12==6)){ + a2 = 9; + a20 = 7; + }else{ + a20 = 7; + a2 = 13; + a12 = 3; + a9 = 17; + a25 = 0; + } + return -1; + } else if(((a25==1)&&((((a9==18)&&((a2==13)&&((a27==1)&&((a20==7)&&((input==6)&&(a15==1))))))&&(a16==1))&&(a12==3)))){ + a9 = 16; + a20 = 5; + a2 = 9; + a12 = 2; + return -1; + } else if((((a9==16)&&(((a12==2)&&((((a27==1)&&((input==3)&&((a2==12)||(a2==13))))&&(a15==1))&&(a20==5)))&&!(a25==1)))&&(a16==1))){ + a2 = 12; + a9 = 18; + a12 = 3; + return 21; + } else if((((((a16==1)&&(((a9==17)&&((((a12==5)&&(a2==10))||(((a12==4)&&(a2==13))||((a2==9)&&(a12==5))))&&(input==4)))&&(a15==1)))&&(a27==1))&&!(a25==1))&&(a20==7))){ + a20 = 5; + a9 = 18; + a12 = 6; + a2 = 13; + a25 = 1; + return 24; + } else if(((((a25==1)&&((a9==17)&&(((a20==6)&&((((a12==2)&&(a2==13))||((a12==3)&&(a2==9)))&&(input==4)))&&(a15==1))))&&(a16==1))&&(a27==1))){ + a20 = 5; + a15 = 0; + a9 = 16; + a12 = 4; + a2 = 10; + return -1; + } else if((!(a25==1)&&(((a27==1)&&((a9==16)&&(((a12==4)&&(((a16==1)&&(input==1))&&(a2==12)))&&(a15==1))))&&(a20==6)))){ + a25 = 1; + a2 = 9; + a12 = 2; + a20 = 5; + return -1; + } else if((((((((a27==1)&&((a9==18)&&((a20==7)&&(input==2))))&&(a15==1))&&(a16==1))&&(a2==11))&&(a12==4))&&(a25==1))){ + a2 = 9; + a9 = 16; + a12 = 2; + a20 = 5; + return -1; + } else if(((a12==2)&&((a15==1)&&((a20==5)&&((a16==1)&&((a9==18)&&((a27==1)&&(((input==4)&&((a2==12)||((a2==10)||(a2==11))))&&!(a25==1))))))))){ + a25 = 1; + a2 = 9; + a9 = 16; + return -1; + } else if((((a27==1)&&((((a20==7)&&(!(a25==1)&&((a12==6)&&((a15==1)&&((a2==13)&&(a9==18))))))||((a20==5)&&((a25==1)&&((a12==2)&&(((a9==16)&&(a2==9))&&!(a15==1))))))&&(input==2)))&&(a16==1))){ + a20 = 6; + a12 = 3; + a9 = 18; + a2 = 12; + a25 = 1; + a15 = 1; + return 25; + } else if(((((a20==5)&&(!(a25==1)&&((((((a2==13)&&(a9==17))&&(a12==6))||((a12==2)&&((a9==18)&&(a2==9))))&&(input==4))&&(a27==1))))&&!(a15==1))&&(a16==1))){ + a25 = 1; + a2 = 11; + a12 = 3; + a15 = 1; + a9 = 18; + return -1; + } else if((((a25==1)&&((((a15==1)&&((a27==1)&&(((((a12==5)&&(a2==12))||((a2==13)&&(a12==5)))||((a2==9)&&(a12==6)))&&(input==4))))&&(a20==5))&&(a9==18)))&&(a16==1))){ + if((a20==5)){ + a12 = 4; + a9 = 17; + a2 = 9; + a20 = 7; + }else{ + a12 = 6; + a2 = 13; + a9 = 16; + a25 = 0; + } + return 25; + } else if(((a9==16)&&((((a25==1)&&((((a2==13)&&((input==2)&&(a12==2)))&&(a16==1))&&(a27==1)))&&(a20==6))&&(a15==1)))){ + a2 = 9; + a20 = 5; + return -1; + } else if(((a12==3)&&((a2==13)&&((a16==1)&&(((a25==1)&&(((a9==18)&&((a20==7)&&(input==1)))&&(a27==1)))&&(a15==1)))))){ + a9 = 16; + a12 = 2; + a2 = 9; + a20 = 5; + return -1; + } else if(((((a9==18)&&(!(a15==1)&&(((a16==1)&&((input==6)&&(((a12==3)&&(a2==13))||((a2==9)&&(a12==4)))))&&!(a25==1))))&&(a20==5))&&(a27==1))){ + a25 = 1; + a2 = 9; + a12 = 3; + a9 = 16; + return -1; + } else if(((!(a25==1)&&((((a12==4)&&((a15==1)&&(((input==4)&&((a2==9)||(a2==10)))&&(a20==7))))&&(a27==1))&&(a9==17)))&&(a16==1))){ + a20 = 5; + a2 = 9; + a12 = 2; + a9 = 16; + a25 = 1; + return -1; + } else if(((a20==7)&&((a27==1)&&((a9==18)&&((a16==1)&&(((a15==1)&&(((((a12==5)&&(a2==12))||((a12==5)&&(a2==13)))||((a2==9)&&(a12==6)))&&(input==1)))&&!(a25==1))))))){ + a20 = 5; + a12 = 2; + a9 = 16; + a25 = 1; + a2 = 9; + return -1; + } else if(((((a20==5)&&(((a9==17)&&((((input==5)&&((a2==10)||(a2==11)))&&!(a15==1))&&(a12==4)))&&(a25==1)))&&(a16==1))&&(a27==1))){ + if((a20==7)){ + a9 = 18; + a12 = 3; + a2 = 9; + a15 = 1; + }else{ + a15 = 1; + a20 = 7; + a9 = 16; + a12 = 2; + a2 = 11; + } + return 25; + } else if((((a15==1)&&(((a12==5)&&(((!(a25==1)&&((a20==5)&&(input==6)))&&(a16==1))&&(a27==1)))&&(a2==12)))&&(a9==17))){ + a20 = 6; + a9 = 16; + a2 = 11; + a12 = 4; + return 25; + } else if((((a25==1)&&(((a15==1)&&((a27==1)&&(((((a12==4)&&(a2==10))||(((a2==13)&&(a12==3))||((a2==9)&&(a12==4))))&&(input==3))&&(a16==1))))&&(a9==16)))&&(a20==6))){ + if((a25==1)){ + a9 = 17; + a12 = 3; + a20 = 7; + a25 = 0; + a2 = 10; + }else{ + a2 = 12; + a20 = 5; + a12 = 6; + a25 = 0; + } + return -1; + } else if(((((a15==1)&&(((a27==1)&&(((!(a25==1)&&(input==5))&&(a12==5))&&(a20==6)))&&(a2==13)))&&(a9==18))&&(a16==1))){ + a12 = 2; + a20 = 5; + a9 = 16; + a2 = 9; + a25 = 1; + return -1; + } else if(((((((a9==16)&&((((input==6)&&((a2==11)||(a2==12)))&&(a16==1))&&!(a25==1)))&&(a27==1))&&(a20==6))&&(a12==5))&&(a15==1))){ + a9 = 18; + a12 = 6; + a2 = 12; + a25 = 1; + a20 = 5; + return 24; + } else if((((((a25==1)&&((a9==17)&&((a12==6)&&((a27==1)&&((input==2)&&(a15==1))))))&&(a20==7))&&(a16==1))&&(a2==12))){ + a2 = 9; + a9 = 16; + a20 = 5; + a12 = 2; + return -1; + } else if(((a2==11)&&((((a9==16)&&((a20==5)&&((!(a15==1)&&(!(a25==1)&&(input==2)))&&(a27==1))))&&(a16==1))&&(a12==5)))){ + a2 = 10; + a15 = 1; + a25 = 1; + a12 = 2; + return -1; + } else if((((!(a25==1)&&((a20==7)&&((((a12==4)&&((input==1)&&((a2==9)||(a2==10))))&&(a16==1))&&(a27==1))))&&(a9==17))&&(a15==1))){ + a25 = 1; + a12 = 2; + a2 = 9; + a9 = 16; + a20 = 5; + return -1; + } else if(((a27==1)&&((a16==1)&&(!(a25==1)&&((a20==6)&&((a12==6)&&((a9==17)&&((a15==1)&&((input==5)&&((a2==11)||(a2==12))))))))))){ + a20 = 5; + a9 = 16; + a25 = 1; + a2 = 9; + a12 = 2; + return -1; + } else if(((a25==1)&&((a27==1)&&(((((input==6)&&((((a9==17)&&(a2==10))&&(a12==2))||(((a12==6)&&((a9==16)&&(a2==13)))||((a12==2)&&((a2==9)&&(a9==17))))))&&!(a15==1))&&(a20==5))&&(a16==1))))){ + a12 = 6; + a9 = 16; + a2 = 13; + a25 = 0; + a15 = 1; + return -1; + } else if(((a20==7)&&((a9==16)&&(((a27==1)&&(((((((a2==13)&&(a12==4))||((a2==9)&&(a12==5)))||((a2==10)&&(a12==5)))&&(input==1))&&(a15==1))&&(a16==1)))&&(a25==1))))){ + a2 = 13; + a12 = 5; + a20 = 5; + return -1; + } else if(((a9==16)&&((a27==1)&&((((a25==1)&&((a20==7)&&((input==6)&&(((a2==13)&&(a12==2))||((a12==3)&&(a2==9))))))&&(a15==1))&&(a16==1))))){ + a12 = 2; + a20 = 5; + a2 = 9; + return -1; + } else if(((a16==1)&&((a25==1)&&((a20==7)&&(((((input==4)&&(((a2==10)&&(a12==6))||(((a12==5)&&(a2==13))||((a2==9)&&(a12==6)))))&&(a9==18))&&(a27==1))&&(a15==1)))))){ + a20 = 5; + a2 = 9; + a9 = 16; + a12 = 2; + return -1; + } else if(((a27==1)&&(((a25==1)&&((a20==7)&&((((a2==12)&&((a9==16)&&(input==2)))&&(a16==1))&&(a12==2))))&&(a15==1)))){ + a12 = 6; + a2 = 10; + a20 = 6; + return 21; + } else if(((a12==4)&&((a15==1)&&((a27==1)&&(((a9==18)&&((a2==9)&&(!(a25==1)&&((a20==5)&&(input==2)))))&&(a16==1)))))){ + a9 = 17; + a12 = 5; + a2 = 11; + a20 = 6; + return 23; + } else if((((a9==16)&&((((a2==13)&&((((input==6)&&(a20==7))&&(a16==1))&&!(a25==1)))&&(a12==2))&&(a15==1)))&&(a27==1))){ + a25 = 1; + a20 = 5; + a2 = 9; + return -1; + } else if((((a16==1)&&(((((a27==1)&&((input==1)&&(((a2==10)&&(a12==4))||(((a12==3)&&(a2==13))||((a2==9)&&(a12==4))))))&&(a20==6))&&(a25==1))&&(a15==1)))&&(a9==17))){ + a9 = 16; + a2 = 11; + a12 = 4; + return -1; + } else if(((a20==5)&&(((((a16==1)&&((((input==2)&&((a2==12)||((a2==10)||(a2==11))))&&(a15==1))&&!(a25==1)))&&(a12==2))&&(a9==18))&&(a27==1)))){ + if((a16==1)){ + a2 = 11; + a12 = 4; + a25 = 1; + a20 = 7; + }else{ + a20 = 6; + a2 = 12; + a9 = 17; + } + return 21; + } else if((((a15==1)&&(!(a25==1)&&((a27==1)&&((((a20==7)&&(((a2==12)||((a2==10)||(a2==11)))&&(input==3)))&&(a16==1))&&(a9==17)))))&&(a12==3))){ + a9 = 16; + a25 = 1; + a2 = 10; + a12 = 4; + a20 = 6; + return 26; + } else if((((a27==1)&&((a16==1)&&((a9==18)&&(((a15==1)&&(((((a12==5)&&(a2==13))||((a2==9)&&(a12==6)))||((a12==6)&&(a2==10)))&&(input==2)))&&(a25==1)))))&&(a20==6))){ + a9 = 16; + a12 = 2; + a2 = 9; + a20 = 5; + return -1; + } else if((((a20==5)&&(((a9==18)&&(((a27==1)&&((((a2==12)||(a2==13))&&(input==5))&&(a15==1)))&&!(a25==1)))&&(a16==1)))&&(a12==5))){ + a2 = 9; + a12 = 2; + a9 = 16; + a25 = 1; + return -1; + } else if((((a25==1)&&(((((a15==1)&&((a16==1)&&((a9==16)&&(input==6))))&&(a12==5))&&(a2==11))&&(a27==1)))&&(a20==7))){ + a9 = 17; + a12 = 6; + a20 = 5; + a2 = 12; + return -1; + } else if((((a16==1)&&(((((a9==16)&&(((input==1)&&(a2==13))&&(a27==1)))&&!(a25==1))&&(a12==4))&&(a20==6)))&&(a15==1))){ + a20 = 5; + a25 = 1; + a12 = 2; + a2 = 9; + return -1; + } else if(((a20==5)&&((((a16==1)&&((((a9==16)&&(!(a15==1)&&(input==2)))&&(a27==1))&&!(a25==1)))&&(a2==12))&&(a12==6)))){ + a25 = 1; + a15 = 1; + a9 = 18; + a2 = 11; + a12 = 3; + return -1; + } else if(((a9==18)&&((a15==1)&&(((a20==7)&&(((a27==1)&&((a12==2)&&((input==3)&&((a2==12)||((a2==10)||(a2==11))))))&&(a25==1)))&&(a16==1))))){ + a2 = 13; + a20 = 5; + a9 = 17; + a12 = 4; + return -1; + } else if(((a16==1)&&((a12==6)&&(((((!(a25==1)&&(((a2==13)||((a2==11)||(a2==12)))&&(input==4)))&&(a20==5))&&(a27==1))&&(a15==1))&&(a9==18))))){ + a2 = 9; + a9 = 16; + a25 = 1; + a12 = 2; + return -1; + } else if(((a2==9)&&((a12==2)&&(((a20==7)&&((a15==1)&&((a25==1)&&((a16==1)&&((a9==17)&&(input==4))))))&&(a27==1))))){ + a12 = 4; + a2 = 11; + a20 = 5; + a9 = 16; + return -1; + } else if((((a9==18)&&((((!(a25==1)&&((a27==1)&&((input==3)&&((a2==9)||(a2==10)))))&&(a12==3))&&(a16==1))&&!(a15==1)))&&(a20==5))){ + a2 = 9; + a9 = 16; + a15 = 1; + return -1; + } else if((((a2==10)&&(((a20==5)&&((a15==1)&&((a12==6)&&(((input==1)&&(a16==1))&&!(a25==1)))))&&(a27==1)))&&(a9==17))){ + a12 = 2; + a25 = 1; + a2 = 9; + a9 = 16; + return -1; + } else if((((a27==1)&&((((a16==1)&&(((input==1)&&(((a2==13)&&(a12==3))||((a12==4)&&(a2==9))))&&(a15==1)))&&(a9==16))&&(a20==6)))&&!(a25==1))){ + if((a16==1)){ + a9 = 18; + a20 = 7; + a12 = 4; + a2 = 12; + }else{ + a2 = 12; + a12 = 5; + } + return 21; + } else if(((a20==7)&&((a2==11)&&((a9==17)&&((a12==3)&&((((a25==1)&&((a15==1)&&(input==3)))&&(a16==1))&&(a27==1))))))){ + a9 = 18; + return -1; + } else if(((a15==1)&&((a16==1)&&(((((((((a2==13)&&(a12==4))||((a2==9)&&(a12==5)))||((a12==5)&&(a2==10)))&&(input==3))&&!(a25==1))&&(a20==7))&&(a9==17))&&(a27==1))))){ + a12 = 6; + a20 = 6; + a9 = 16; + a25 = 1; + a2 = 10; + return -1; + } else if((((a9==17)&&((((((input==1)&&(((a12==3)&&(a2==10))||(((a12==2)&&(a2==13))||((a12==3)&&(a2==9)))))&&(a16==1))&&(a27==1))&&!(a15==1))&&!(a25==1)))&&(a20==5))){ + a12 = 5; + a15 = 1; + a9 = 16; + a2 = 9; + return -1; + } else if(((a12==4)&&(!(a25==1)&&((a16==1)&&(!(a15==1)&&((a27==1)&&(((a9==17)&&((input==4)&&((a2==13)||((a2==11)||(a2==12)))))&&(a20==5)))))))){ + a15 = 1; + a2 = 10; + a12 = 2; + a9 = 16; + return -1; + } else if(((((a9==16)&&((a15==1)&&((a16==1)&&((a20==6)&&(!(a25==1)&&((input==3)&&((a2==11)||(a2==12))))))))&&(a27==1))&&(a12==5))){ + if((a20==5)){ + a12 = 4; + a2 = 10; + a20 = 7; + a9 = 18; + }else{ + a12 = 2; + a2 = 9; + } + return -1; + } else if(((((a15==1)&&((a16==1)&&(((input==4)&&(((a12==6)&&((a2==13)&&(a9==17)))||(((a9==18)&&(a2==9))&&(a12==2))))&&(a27==1))))&&(a20==5))&&!(a25==1))){ + a9 = 16; + a25 = 1; + a2 = 9; + a12 = 2; + return -1; + } else if(((a12==3)&&((a16==1)&&((a27==1)&&((a25==1)&&((a20==6)&&((a9==16)&&(((input==3)&&((a2==11)||(a2==12)))&&(a15==1))))))))){ + a20 = 5; + a12 = 2; + a2 = 9; + return -1; + } else if(((a15==1)&&(((a16==1)&&((((((input==5)&&((a2==12)||(a2==13)))&&(a12==5))&&(a27==1))&&(a20==6))&&(a9==17)))&&!(a25==1)))){ + a9 = 16; + a2 = 12; + a12 = 4; + return 21; + } else if((!(a25==1)&&((a12==5)&&((((a20==5)&&(((a27==1)&&((input==5)&&((a2==12)||((a2==10)||(a2==11)))))&&(a16==1)))&&!(a15==1))&&(a9==17))))){ + a9 = 16; + a12 = 4; + a15 = 1; + a2 = 9; + a25 = 1; + return -1; + } else if(((a27==1)&&(((a16==1)&&(((a2==10)&&((a20==6)&&(((input==4)&&!(a25==1))&&(a9==18))))&&(a12==2)))&&(a15==1)))){ + a25 = 1; + a20 = 5; + a2 = 9; + a9 = 16; + return -1; + } else if(((((((a27==1)&&(((((a2==13)&&(a9==16))&&(a12==6))||((a12==2)&&((a2==9)&&(a9==17))))&&(input==4)))&&!(a25==1))&&(a20==5))&&(a16==1))&&!(a15==1))){ + a15 = 1; + a12 = 4; + a2 = 13; + a9 = 16; + return -1; + } else if(((!(a15==1)&&((a20==5)&&(((a9==16)&&(((((a2==10)||(a2==11))&&(input==2))&&(a12==4))&&(a16==1)))&&(a27==1))))&&(a25==1))){ + a12 = 2; + a15 = 1; + a2 = 9; + return -1; + } else if(((a9==16)&&((!(a25==1)&&((a16==1)&&(((a27==1)&&((input==4)&&(((a2==9)&&(a12==4))||(((a2==12)&&(a12==3))||((a2==13)&&(a12==3))))))&&(a20==7))))&&(a15==1)))){ + a2 = 9; + a12 = 2; + a25 = 1; + a20 = 5; + return -1; + } else if((((a16==1)&&((a9==18)&&((a20==7)&&(((a25==1)&&(((a15==1)&&(input==3))&&(a12==4)))&&(a27==1)))))&&(a2==10))){ + if((a2==10)){ + a25 = 0; + a9 = 17; + a2 = 11; + }else{ + a2 = 9; + a20 = 6; + a9 = 17; + } + return -1; + } else if((((a27==1)&&((a20==6)&&(((a12==5)&&((a16==1)&&(!(a25==1)&&((input==1)&&((a2==9)||(a2==10))))))&&(a15==1))))&&(a9==17))){ + a9 = 16; + a2 = 11; + return 21; + } else if(((((!(a25==1)&&((a15==1)&&((input==2)&&((((a2==13)&&(a9==17))&&(a12==6))||((a12==2)&&((a2==9)&&(a9==18)))))))&&(a20==6))&&(a27==1))&&(a16==1))){ + a12 = 2; + a9 = 16; + a2 = 9; + a20 = 5; + a25 = 1; + return -1; + } else if(((a2==9)&&((a20==7)&&(((a9==16)&&(((a16==1)&&(((a12==4)&&(input==5))&&(a27==1)))&&(a15==1)))&&(a25==1))))){ + a12 = 2; + a20 = 5; + return -1; + } else if((!(a25==1)&&((((a2==9)&&(((a15==1)&&((a27==1)&&((input==6)&&(a20==5))))&&(a12==3)))&&(a16==1))&&(a9==16)))){ + a12 = 2; + a25 = 1; + return -1; + } else if((((a20==6)&&(((((a16==1)&&((((a2==10)&&(a12==3))||(((a12==2)&&(a2==13))||((a2==9)&&(a12==3))))&&(input==2)))&&!(a25==1))&&(a15==1))&&(a9==16)))&&(a27==1))){ + a25 = 1; + a12 = 2; + a20 = 5; + a2 = 9; + return -1; + } else if((((a9==16)&&(((((a27==1)&&((input==1)&&(((a12==2)&&(a2==13))||((a2==9)&&(a12==3)))))&&(a25==1))&&(a16==1))&&(a20==7)))&&(a15==1))){ + a12 = 2; + a20 = 5; + a2 = 9; + return -1; + } else if(((a9==18)&&((a12==6)&&(!(a25==1)&&((a16==1)&&((((a20==7)&&(((a2==11)||(a2==12))&&(input==5)))&&(a27==1))&&(a15==1))))))){ + a20 = 5; + a9 = 16; + a2 = 9; + a12 = 2; + a25 = 1; + return -1; + } else if((((a20==5)&&((a16==1)&&((a12==5)&&(((((input==2)&&(((a2==10)||(a2==11))||(a2==12)))&&(a27==1))&&(a9==17))&&!(a15==1)))))&&(a25==1))){ + if((a20==6)){ + a15 = 1; + a2 = 9; + }else{ + a15 = 1; + a2 = 13; + a9 = 18; + a12 = 3; + } + return -1; + } else if(((((a9==17)&&((a20==7)&&((((a16==1)&&(((a2==12)||(a2==13))&&(input==1)))&&(a27==1))&&(a12==2))))&&!(a25==1))&&(a15==1))){ + a9 = 16; + a25 = 1; + a20 = 5; + a2 = 9; + return -1; + } else if(((a25==1)&&((a9==17)&&(((a27==1)&&((a16==1)&&(((((a12==3)&&(a2==13))||((a2==9)&&(a12==4)))&&(input==4))&&!(a15==1))))&&(a20==5))))){ + a9 = 16; + a2 = 9; + a15 = 1; + a12 = 6; + return -1; + } else if(((a20==5)&&((a27==1)&&(!(a25==1)&&(((a15==1)&&((input==5)&&((((a9==17)&&(a2==13))&&(a12==6))||((a12==2)&&((a9==18)&&(a2==9))))))&&(a16==1)))))){ + a2 = 9; + a25 = 1; + a12 = 2; + a9 = 16; + return -1; + } else if((((a27==1)&&(((!(a15==1)&&((!(a25==1)&&((input==6)&&(((a2==11)||(a2==12))||(a2==13))))&&(a9==17)))&&(a20==5))&&(a12==3)))&&(a16==1))){ + if((a15==1)){ + a12 = 5; + a2 = 11; + a9 = 16; + a15 = 1; + a25 = 1; + }else{ + a15 = 1; + a9 = 16; + a12 = 2; + a2 = 13; + a25 = 1; + } + return -1; + } else if(((((a15==1)&&((a27==1)&&(((a20==5)&&((a25==1)&&(((a2==10)||(a2==11))&&(input==3))))&&(a9==18))))&&(a12==6))&&(a16==1))){ + a2 = 9; + a9 = 16; + a12 = 2; + return -1; + } else if(((((((!(a15==1)&&((a2==12)&&((input==1)&&(a27==1))))&&(a12==6))&&(a9==16))&&(a25==1))&&(a16==1))&&(a20==5))){ + if((a27==1)){ + a20 = 6; + a15 = 1; + a12 = 2; + }else{ + a12 = 4; + a9 = 18; + a2 = 11; + } + return -1; + } else if((!(a25==1)&&((((a9==17)&&((a12==3)&&((((input==1)&&(a15==1))&&(a27==1))&&(a16==1))))&&(a20==7))&&(a2==13)))){ + a25 = 1; + a12 = 4; + a9 = 16; + a20 = 6; + return -1; + } else if((!(a25==1)&&(((!(a15==1)&&((a2==10)&&((a27==1)&&((a9==18)&&((a16==1)&&(input==1))))))&&(a12==4))&&(a20==5)))){ + a15 = 1; + a9 = 17; + a2 = 11; + a12 = 5; + a25 = 1; + return -1; + } else if(((a2==10)&&((((a12==6)&&((a9==16)&&((((a15==1)&&(input==1))&&(a16==1))&&(a20==6))))&&(a27==1))&&!(a25==1)))){ + a2 = 12; + a9 = 17; + a25 = 1; + return 25; + } else if(((a9==17)&&((a25==1)&&(((((((a20==6)&&(input==3))&&(a15==1))&&(a12==5))&&(a2==12))&&(a27==1))&&(a16==1))))){ + if((a12==6)){ + a12 = 6; + a20 = 7; + a9 = 18; + a2 = 13; + }else{ + a15 = 0; + a20 = 5; + a12 = 3; + a9 = 16; + a2 = 10; + } + return -1; + } else if(((((a15==1)&&(((a27==1)&&((a9==16)&&(((input==5)&&((a2==11)||((a2==9)||(a2==10))))&&(a25==1))))&&(a20==6)))&&(a16==1))&&(a12==5))){ + a2 = 10; + return 23; + } else if(((a25==1)&&((((a20==7)&&((a12==5)&&((a15==1)&&(((input==2)&&(a9==16))&&(a27==1)))))&&(a16==1))&&(a2==13)))){ + a20 = 6; + a2 = 10; + a25 = 0; + return 23; + } else if(((a12==3)&&((a15==1)&&((a16==1)&&((((a9==16)&&((a20==5)&&(((a2==10)||(a2==11))&&(input==1))))&&!(a25==1))&&(a27==1)))))){ + a2 = 9; + a12 = 2; + a25 = 1; + return -1; + } else if(((a15==1)&&((a12==2)&&((a9==16)&&((a27==1)&&((a16==1)&&(((((a2==12)||((a2==10)||(a2==11)))&&(input==2))&&(a20==7))&&!(a25==1)))))))){ + a20 = 6; + a9 = 17; + a12 = 5; + a2 = 11; + return 23; + } else if(((a2==13)&&((a12==2)&&(((a16==1)&&((((a25==1)&&((input==6)&&(a27==1)))&&(a9==16))&&(a20==5)))&&!(a15==1))))){ + a15 = 1; + a2 = 9; + return -1; + } else if(((((a9==17)&&((a27==1)&&(((a20==5)&&((input==3)&&((((a2==13)&&(a12==5))||((a2==9)&&(a12==6)))||((a2==10)&&(a12==6)))))&&(a25==1))))&&!(a15==1))&&(a16==1))){ + if((a12==2)){ + a12 = 6; + a15 = 1; + a2 = 9; + }else{ + a9 = 16; + a2 = 11; + a15 = 1; + a12 = 2; + } + return -1; + } else if((((a27==1)&&((((a9==16)&&(((a12==5)&&((input==5)&&(a16==1)))&&(a20==5)))&&(a25==1))&&!(a15==1)))&&(a2==13))){ + a20 = 7; + a2 = 11; + a25 = 0; + a15 = 1; + return -1; + } else if(((((a27==1)&&(((a16==1)&&((!(a25==1)&&((input==6)&&((a2==9)||(a2==10))))&&(a20==6)))&&(a12==5)))&&(a15==1))&&(a9==16))){ + a25 = 1; + a20 = 5; + a2 = 9; + a12 = 2; + return -1; + } else if(((a9==17)&&((a12==6)&&(!(a25==1)&&((((a15==1)&&((((a2==11)||(a2==12))&&(input==3))&&(a27==1)))&&(a16==1))&&(a20==6)))))){ + a12 = 2; + a20 = 5; + a2 = 9; + a9 = 16; + a25 = 1; + return -1; + } else if(((a20==5)&&((a9==18)&&(((a25==1)&&(!(a15==1)&&(((a27==1)&&(((a2==10)||(a2==11))&&(input==2)))&&(a16==1))))&&(a12==4))))){ + a2 = 13; + a9 = 17; + a12 = 2; + return -1; + } else if((((a25==1)&&((((a20==7)&&(((input==5)&&(((a2==13)&&(a12==2))||((a12==3)&&(a2==9))))&&(a15==1)))&&(a16==1))&&(a27==1)))&&(a9==16))){ + a20 = 5; + a2 = 9; + a12 = 2; + return -1; + } else if((((a15==1)&&((a16==1)&&((a25==1)&&((a9==16)&&((a27==1)&&((a20==6)&&(((a2==12)||(a2==13))&&(input==2))))))))&&(a12==6))){ + a20 = 5; + a12 = 2; + a2 = 9; + return -1; + } else if((((!(a15==1)&&((a12==6)&&(((((input==5)&&(a2==11))&&(a25==1))&&(a20==5))&&(a27==1))))&&(a9==17))&&(a16==1))){ + a2 = 13; + a9 = 18; + a12 = 2; + return 21; + } else if((((((a2==13)&&(((a27==1)&&((a25==1)&&((a12==6)&&(input==3))))&&(a20==6)))&&(a9==17))&&(a16==1))&&(a15==1))){ + a12 = 2; + a9 = 16; + a2 = 9; + a20 = 5; + return -1; + } else if((((a15==1)&&((a9==17)&&((a16==1)&&(((a25==1)&&(((input==3)&&(a12==2))&&(a2==9)))&&(a20==7)))))&&(a27==1))){ + a9 = 16; + a20 = 5; + return -1; + } else if(((a27==1)&&((a20==5)&&(!(a25==1)&&(((a9==16)&&(!(a15==1)&&(((input==3)&&((a2==13)||((a2==11)||(a2==12))))&&(a16==1))))&&(a12==3)))))){ + a15 = 1; + a25 = 1; + a9 = 18; + a12 = 2; + a2 = 10; + return 23; + } else if((((a9==16)&&((((((!(a15==1)&&(input==3))&&!(a25==1))&&(a12==6))&&(a16==1))&&(a20==5))&&(a2==12)))&&(a27==1))){ + a20 = 7; + a15 = 1; + a2 = 11; + a25 = 1; + return -1; + } else if(((((a9==18)&&((!(a25==1)&&((a27==1)&&((((a2==11)||(a2==12))&&(input==5))&&(a12==5))))&&(a20==5)))&&(a16==1))&&!(a15==1))){ + a2 = 10; + a20 = 7; + a15 = 1; + return 23; + } else if(((a15==1)&&(((((a25==1)&&((a12==2)&&(((input==5)&&(a27==1))&&(a16==1))))&&(a9==18))&&(a2==13))&&(a20==6)))){ + a9 = 17; + a12 = 6; + return -1; + } else if(((a9==18)&&((a20==7)&&((a15==1)&&((((a27==1)&&((a25==1)&&((input==1)&&(a12==5))))&&(a2==12))&&(a16==1)))))){ + a12 = 2; + a2 = 9; + a9 = 16; + a20 = 5; + return -1; + } else if(((a15==1)&&((a16==1)&&((((a9==16)&&(!(a25==1)&&(((((a12==5)&&(a2==13))||((a2==9)&&(a12==6)))||((a2==10)&&(a12==6)))&&(input==3))))&&(a27==1))&&(a20==5))))){ + a25 = 1; + a2 = 9; + a12 = 2; + return -1; + } else if(((a9==18)&&((a27==1)&&((a20==5)&&((((!(a15==1)&&((a25==1)&&(input==3)))&&(a16==1))&&(a2==12))&&(a12==3)))))){ + if((a20==5)){ + a12 = 4; + a2 = 10; + a9 = 16; + a15 = 1; + }else{ + a2 = 11; + a12 = 6; + a25 = 0; + a9 = 16; + a15 = 1; + } + return -1; + } else if(((a16==1)&&((a27==1)&&((a2==13)&&(((((!(a25==1)&&(input==1))&&(a12==2))&&(a15==1))&&(a9==16))&&(a20==7)))))){ + a20 = 5; + a25 = 1; + a2 = 9; + return -1; + } else if(((a27==1)&&((a12==6)&&((a16==1)&&((a20==5)&&((a9==16)&&((((input==3)&&(a25==1))&&!(a15==1))&&(a2==9)))))))){ + if((a2==9)){ + a9 = 17; + a15 = 1; + a2 = 12; + }else{ + a12 = 2; + a2 = 11; + a15 = 1; + a25 = 0; + a20 = 7; + a9 = 17; + } + return -1; + } else if((!(a25==1)&&((a2==12)&&((a9==16)&&((!(a15==1)&&(((a20==5)&&((a12==6)&&(input==4)))&&(a27==1)))&&(a16==1)))))){ + a15 = 1; + a12 = 4; + a25 = 1; + return -1; + } else if(((!(a25==1)&&(((a9==17)&&((a16==1)&&((a27==1)&&(((input==3)&&(a2==10))&&(a20==5)))))&&(a12==6)))&&(a15==1))){ + a12 = 5; + a2 = 13; + a9 = 16; + a20 = 6; + return 25; + } else if((((a20==5)&&((!(a25==1)&&((((((a2==13)&&(a12==3))||((a2==9)&&(a12==4)))&&(input==5))&&!(a15==1))&&(a9==18)))&&(a27==1)))&&(a16==1))){ + a25 = 1; + a2 = 13; + a15 = 1; + a9 = 17; + a12 = 3; + return -1; + } else if(((a15==1)&&(!(a25==1)&&(((a9==17)&&(((a20==5)&&((input==5)&&(((a12==3)&&(a2==9))||(((a12==2)&&(a2==12))||((a2==13)&&(a12==2))))))&&(a16==1)))&&(a27==1))))){ + a25 = 1; + a12 = 2; + a2 = 9; + a9 = 16; + return -1; + } else if(((((((((input==2)&&((((a12==5)&&(a2==13))||((a2==9)&&(a12==6)))||((a12==6)&&(a2==10))))&&(a15==1))&&(a25==1))&&(a27==1))&&(a9==18))&&(a20==7))&&(a16==1))){ + a20 = 6; + a2 = 12; + a12 = 3; + return 25; + } else if(((a27==1)&&((a9==16)&&((a15==1)&&(((a12==6)&&((a16==1)&&(((input==4)&&((a2==12)||(a2==13)))&&(a25==1))))&&(a20==6)))))){ + a20 = 5; + a12 = 2; + a2 = 9; + return -1; + } else if(((((a20==5)&&((((!(a25==1)&&(((a2==9)||(a2==10))&&(input==1)))&&(a27==1))&&(a16==1))&&(a15==1)))&&(a12==5))&&(a9==18))){ + a2 = 9; + a25 = 1; + a12 = 2; + a9 = 16; + return -1; + } else if(((a9==17)&&((a25==1)&&(((a27==1)&&(((a16==1)&&(((a2==12)&&(input==4))&&(a12==2)))&&(a20==7)))&&(a15==1))))){ + a20 = 5; + a9 = 16; + a2 = 9; + return -1; + } else if((!(a25==1)&&((a9==17)&&(((((((input==5)&&((a2==11)||(a2==12)))&&(a16==1))&&(a12==3))&&(a15==1))&&(a27==1))&&(a20==5))))){ + a25 = 1; + a2 = 13; + a20 = 6; + a12 = 6; + return 25; + } else if(((a12==4)&&((a16==1)&&((a20==7)&&(((a27==1)&&((a25==1)&&((a15==1)&&((input==1)&&((a2==11)||(a2==12))))))&&(a9==16)))))){ + a2 = 9; + a9 = 17; + a12 = 2; + a20 = 5; + return -1; + } else if(((!(a25==1)&&((a16==1)&&((a27==1)&&((((a12==4)&&((input==2)&&(a2==10)))&&(a9==16))&&(a15==1)))))&&(a20==6))){ + a2 = 9; + a12 = 2; + a25 = 1; + a20 = 5; + return -1; + } else if(((a15==1)&&((((a9==17)&&((a16==1)&&(!(a25==1)&&((((a2==11)||(a2==12))&&(input==4))&&(a20==7)))))&&(a12==5))&&(a27==1)))){ + a12 = 2; + a2 = 9; + a20 = 5; + a25 = 1; + a9 = 16; + return -1; + } else if((((a27==1)&&((a20==5)&&(((a25==1)&&(((((a2==10)&&(a9==17))&&(a12==2))||(((a12==6)&&((a2==13)&&(a9==16)))||(((a9==17)&&(a2==9))&&(a12==2))))&&(input==2)))&&!(a15==1))))&&(a16==1))){ + a9 = 18; + a15 = 1; + a12 = 2; + a2 = 12; + return -1; + } else if((((a9==18)&&((a27==1)&&(((a25==1)&&(!(a15==1)&&((a16==1)&&((a2==11)&&(input==2)))))&&(a20==5))))&&(a12==3))){ + a15 = 1; + a9 = 17; + a12 = 4; + return 25; + } else if(((a16==1)&&((a20==7)&&((a9==18)&&(((a25==1)&&(((input==1)&&((((a2==12)&&(a12==4))||((a2==13)&&(a12==4)))||((a12==5)&&(a2==9))))&&(a27==1)))&&(a15==1)))))){ + a2 = 9; + a20 = 5; + a12 = 2; + a9 = 16; + return -1; + } else if((((a27==1)&&(((!(a25==1)&&(((a15==1)&&((input==4)&&(a16==1)))&&(a20==5)))&&(a2==11))&&(a9==16)))&&(a12==4))){ + a12 = 2; + a25 = 1; + a2 = 9; + return -1; + } else if(((a27==1)&&(((a20==7)&&(((((a12==2)&&((((a2==10)||(a2==11))||(a2==12))&&(input==5)))&&!(a25==1))&&(a15==1))&&(a9==16)))&&(a16==1)))){ + a2 = 9; + a25 = 1; + a20 = 5; + return -1; + } else if(((a25==1)&&(((a27==1)&&(((a20==5)&&((((input==5)&&((a2==10)||(a2==11)))&&(a9==18))&&(a12==6)))&&(a16==1)))&&(a15==1)))){ + a9 = 17; + a25 = 0; + a2 = 12; + a12 = 3; + return 21; + } else if(((a9==16)&&((a12==6)&&((a27==1)&&(((a20==7)&&(!(a25==1)&&(((((a2==11)||(a2==12))||(a2==13))&&(input==3))&&(a16==1))))&&(a15==1)))))){ + a2 = 13; + a25 = 1; + a12 = 2; + a20 = 6; + a9 = 17; + return -1; + } else if(((a9==17)&&((a12==5)&&((a15==1)&&(((a16==1)&&((!(a25==1)&&((a27==1)&&(input==6)))&&(a2==13)))&&(a20==7)))))){ + a2 = 12; + a9 = 18; + a25 = 1; + a12 = 6; + a20 = 5; + return 24; + } else if((!(a15==1)&&(((a16==1)&&(((((a27==1)&&((input==5)&&(((a2==11)||(a2==12))||(a2==13))))&&(a9==18))&&(a20==5))&&(a12==6)))&&(a25==1)))){ + a12 = 4; + a2 = 13; + a9 = 17; + a15 = 1; + return -1; + } else if((((a16==1)&&((a27==1)&&((a25==1)&&((a15==1)&&(((input==1)&&(((a2==10)&&(a12==4))||(((a12==3)&&(a2==13))||((a2==9)&&(a12==4)))))&&(a9==16))))))&&(a20==6))){ + a2 = 10; + a12 = 4; + return -1; + } else if((((a27==1)&&(((((a9==16)&&((input==4)&&((((a12==5)&&(a2==13))||((a2==9)&&(a12==6)))||((a12==6)&&(a2==10)))))&&(a20==5))&&!(a25==1))&&(a15==1)))&&(a16==1))){ + a2 = 9; + a25 = 1; + a12 = 2; + return -1; + } else if(((!(a25==1)&&((a20==6)&&(((a15==1)&&((((input==5)&&(a16==1))&&(a12==2))&&(a2==10)))&&(a27==1))))&&(a9==18))){ + a20 = 7; + a12 = 4; + a2 = 9; + a25 = 1; + a9 = 16; + return -1; + } else if((((a9==18)&&(((a12==6)&&(((a16==1)&&((((a2==9)||(a2==10))&&(input==6))&&!(a25==1)))&&(a20==5)))&&(a15==1)))&&(a27==1))){ + a9 = 16; + a12 = 2; + a2 = 9; + a25 = 1; + return -1; + } else if(((a16==1)&&((a9==18)&&((!(a25==1)&&(((((input==2)&&((a2==11)||(a2==12)))&&(a27==1))&&(a20==6))&&(a12==6)))&&(a15==1))))){ + a12 = 3; + a25 = 1; + a2 = 12; + return 25; + } else if(((a20==5)&&(((a9==17)&&(!(a25==1)&&((a27==1)&&((a16==1)&&((a12==5)&&((a15==1)&&(input==4)))))))&&(a2==11)))){ + a20 = 6; + a12 = 3; + a9 = 16; + return 21; + } else if(((a20==5)&&(!(a25==1)&&((a27==1)&&(((a9==17)&&(((input==5)&&(((a12==5)&&(a2==13))||((a2==9)&&(a12==6))))&&(a16==1)))&&(a15==1)))))){ + a9 = 16; + a2 = 9; + a20 = 6; + a12 = 5; + return 21; + } else if((((a12==5)&&((((a27==1)&&(((a20==6)&&((input==2)&&((a2==11)||((a2==9)||(a2==10)))))&&(a9==16)))&&(a15==1))&&(a16==1)))&&(a25==1))){ + a20 = 5; + a2 = 9; + a12 = 2; + return -1; + } else if(((a27==1)&&((a25==1)&&(!(a15==1)&&(((((a20==5)&&((input==3)&&(a2==13)))&&(a12==2))&&(a9==16))&&(a16==1)))))){ + a15 = 1; + a2 = 9; + return -1; + } else if((!(a15==1)&&(((a20==5)&&(((a16==1)&&(((input==4)&&(((a2==10)&&(a12==5))||(((a2==13)&&(a12==4))||((a12==5)&&(a2==9)))))&&(a9==18)))&&!(a25==1)))&&(a27==1)))){ + if((a12==3)){ + a12 = 4; + a2 = 12; + a25 = 1; + }else{ + a12 = 3; + a2 = 13; + a25 = 1; + } + return -1; + } else if(((a27==1)&&((((((!(a15==1)&&((input==2)&&((a2==9)||(a2==10))))&&(a16==1))&&!(a25==1))&&(a12==3))&&(a9==18))&&(a20==5)))){ + a9 = 16; + a20 = 7; + a25 = 1; + a2 = 12; + a12 = 2; + a15 = 1; + return -1; + } else if((((a16==1)&&((a12==4)&&((((a25==1)&&(((input==5)&&(((a2==10)||(a2==11))||(a2==12)))&&(a27==1)))&&(a15==1))&&(a9==18))))&&(a20==5))){ + a12 = 5; + a2 = 11; + return 26; + } else if(((a9==17)&&(((a20==5)&&((a27==1)&&((!(a25==1)&&((((a12==5)&&(a2==13))||((a2==9)&&(a12==6)))&&(input==4)))&&!(a15==1))))&&(a16==1)))){ + a15 = 1; + a9 = 16; + a2 = 11; + a20 = 6; + a12 = 4; + return -1; + } else if(((a16==1)&&((a12==4)&&((a20==5)&&((a27==1)&&(!(a25==1)&&((!(a15==1)&&(((a2==11)||(a2==12))&&(input==3)))&&(a9==18)))))))){ + a9 = 17; + a15 = 1; + a20 = 7; + a2 = 9; + return -1; + } else if((((a12==3)&&((a16==1)&&(((a20==5)&&((((input==3)&&(a2==10))&&(a9==17))&&(a15==1)))&&(a27==1))))&&!(a25==1))){ + a2 = 9; + a25 = 1; + a12 = 2; + a9 = 16; + return -1; + } else if(((!(a25==1)&&((a20==7)&&(((a16==1)&&(((a2==12)&&((input==1)&&(a27==1)))&&(a12==2)))&&(a15==1))))&&(a9==18))){ + a2 = 9; + a9 = 16; + a25 = 1; + a20 = 5; + return -1; + } else if((((((a20==7)&&(((((input==5)&&(a27==1))&&!(a25==1))&&(a16==1))&&(a9==18)))&&(a15==1))&&(a12==4))&&(a2==13))){ + a12 = 5; + a25 = 1; + a2 = 11; + a9 = 17; + a20 = 5; + return -1; + } else if((((((a20==7)&&((a27==1)&&((a25==1)&&((a2==12)&&((a9==16)&&(input==5))))))&&(a12==2))&&(a15==1))&&(a16==1))){ + a2 = 9; + a20 = 5; + return -1; + } else if(((((((a12==2)&&((((a27==1)&&(input==6))&&(a20==6))&&(a9==16)))&&(a15==1))&&(a16==1))&&!(a25==1))&&(a2==12))){ + a25 = 1; + a20 = 5; + a2 = 9; + return -1; + } else if(((a16==1)&&((a9==17)&&((a12==3)&&((a20==5)&&(((a15==1)&&(((input==2)&&((a2==11)||(a2==12)))&&!(a25==1)))&&(a27==1))))))){ + a9 = 16; + a2 = 9; + a12 = 2; + a25 = 1; + return -1; + } else if((((a20==5)&&(!(a25==1)&&(((a12==4)&&((a9==18)&&((a2==13)&&((input==3)&&(a27==1)))))&&(a16==1))))&&(a15==1))){ + a2 = 9; + a25 = 1; + a9 = 16; + a12 = 2; + return -1; + } else if(((a16==1)&&((a20==5)&&((((a9==18)&&((a27==1)&&((a12==6)&&(((a2==9)||(a2==10))&&(input==4)))))&&!(a25==1))&&(a15==1))))){ + a20 = 6; + a12 = 4; + a2 = 11; + return -1; + } else if(((((a15==1)&&(((a9==17)&&(!(a25==1)&&(((input==3)&&((a2==13)||((a2==11)||(a2==12))))&&(a27==1))))&&(a20==7)))&&(a16==1))&&(a12==6))){ + a20 = 5; + a9 = 16; + a25 = 1; + a2 = 9; + a12 = 2; + return -1; + } else if((((a15==1)&&((((a9==16)&&((a27==1)&&((input==6)&&(((a12==3)&&(a2==13))||((a12==4)&&(a2==9))))))&&(a16==1))&&(a20==6)))&&!(a25==1))){ + if((a15==1)){ + a20 = 7; + a2 = 11; + a25 = 1; + a9 = 18; + a12 = 3; + }else{ + a12 = 4; + a25 = 1; + a2 = 10; + } + return 21; + } else if(((((!(a15==1)&&(((a20==5)&&(((input==3)&&(a25==1))&&(a27==1)))&&(a2==12)))&&(a12==6))&&(a9==16))&&(a16==1))){ + if((a15==1)){ + a12 = 3; + a2 = 11; + a15 = 1; + a9 = 17; + }else{ + a12 = 3; + a2 = 9; + a9 = 17; + a15 = 1; + } + return -1; + } else if(((a27==1)&&((a2==11)&&((a12==5)&&((((a15==1)&&((a9==18)&&((a16==1)&&(input==4))))&&(a20==5))&&(a25==1)))))){ + a2 = 10; + a25 = 0; + a9 = 16; + a12 = 4; + return 25; + } else if(((a16==1)&&(((a15==1)&&((a9==17)&&(((a20==5)&&((a27==1)&&((input==1)&&((a2==13)||((a2==11)||(a2==12))))))&&(a12==4))))&&!(a25==1)))){ + a12 = 2; + a25 = 1; + a9 = 16; + a2 = 9; + return -1; + } else if((((a20==6)&&(((((((a15==1)&&(input==2))&&(a27==1))&&(a2==9))&&(a9==17))&&(a12==2))&&(a25==1)))&&(a16==1))){ + a20 = 5; + a9 = 16; + return -1; + } else if((((a9==17)&&(!(a15==1)&&(((a12==3)&&((a27==1)&&((a16==1)&&((((a2==11)||(a2==12))||(a2==13))&&(input==1)))))&&(a20==5))))&&!(a25==1))){ + a9 = 16; + a12 = 2; + a25 = 1; + a15 = 1; + a20 = 6; + a2 = 9; + return -1; + } else if((((((((((a16==1)&&(input==5))&&(a2==11))&&(a15==1))&&(a9==17))&&!(a25==1))&&(a20==6))&&(a12==2))&&(a27==1))){ + a2 = 9; + a9 = 16; + a25 = 1; + a20 = 5; + return -1; + } else if(((a9==18)&&((a12==4)&&((!(a25==1)&&(((a20==7)&&((a27==1)&&((a2==13)&&(input==1))))&&(a15==1)))&&(a16==1))))){ + a12 = 5; + a9 = 16; + a20 = 5; + a25 = 1; + return -1; + } else if((((a15==1)&&((a27==1)&&((a16==1)&&((a2==11)&&(((a9==18)&&((input==6)&&(a12==5)))&&!(a25==1))))))&&(a20==5))){ + a12 = 2; + a9 = 16; + a25 = 1; + a2 = 9; + return -1; + } else if(((((a25==1)&&((((((input==2)&&((a2==13)||((a2==11)||(a2==12))))&&(a27==1))&&(a9==16))&&(a15==1))&&(a12==6)))&&(a20==7))&&(a16==1))){ + a20 = 6; + a12 = 3; + a2 = 12; + a9 = 18; + return 25; + } else if(((a16==1)&&((a20==5)&&((!(a15==1)&&((a9==16)&&((a27==1)&&((input==5)&&(((a2==9)&&(a12==5))||(((a12==4)&&(a2==12))||((a2==13)&&(a12==4))))))))&&(a25==1))))){ + a2 = 9; + a20 = 6; + a9 = 17; + a12 = 5; + a15 = 1; + return 25; + } else if(((a27==1)&&(((a16==1)&&((a20==6)&&((((((a9==17)&&(a2==13))&&(a12==6))||(((a2==9)&&(a9==18))&&(a12==2)))&&(input==5))&&!(a25==1))))&&(a15==1)))){ + a20 = 7; + a9 = 16; + a2 = 9; + a12 = 4; + return 23; + } else if(((a20==7)&&((a27==1)&&(((((a9==16)&&(((((a12==3)&&(a2==12))||((a12==3)&&(a2==13)))||((a12==4)&&(a2==9)))&&(input==6)))&&(a15==1))&&(a16==1))&&!(a25==1))))){ + a2 = 9; + a20 = 5; + a25 = 1; + a12 = 2; + return -1; + } else if((((a15==1)&&((((a20==7)&&((a9==16)&&((a2==10)&&((input==5)&&(a16==1)))))&&(a12==6))&&!(a25==1)))&&(a27==1))){ + a2 = 9; + a25 = 1; + a9 = 17; + a12 = 5; + a20 = 6; + return 25; + } else if(((a27==1)&&((a20==7)&&((((a9==16)&&((a12==6)&&((((a2==13)||((a2==11)||(a2==12)))&&(input==3))&&(a25==1))))&&(a16==1))&&(a15==1))))){ + a20 = 5; + a12 = 4; + a9 = 17; + a2 = 13; + return -1; + } else if((((a20==7)&&(((a15==1)&&(((((a12==6)&&((a9==17)&&(a2==13)))||((a12==2)&&((a9==18)&&(a2==9))))&&(input==4))&&(a16==1)))&&(a25==1)))&&(a27==1))){ + a9 = 16; + a15 = 0; + a2 = 9; + a20 = 5; + a12 = 3; + return -1; + } else if((((((!(a25==1)&&(((a27==1)&&((input==5)&&((a2==11)||((a2==9)||(a2==10)))))&&(a16==1)))&&(a9==16))&&(a20==5))&&(a15==1))&&(a12==2))){ + a25 = 1; + a2 = 9; + return -1; + } else if((((((input==6)&&((((a25==1)&&((a12==2)&&((a2==10)&&(a9==16))))&&(a20==7))||(((a20==6)&&(((a12==6)&&((a2==13)&&(a9==18)))&&!(a25==1)))||(((a25==1)&&(((a9==16)&&(a2==9))&&(a12==2)))&&(a20==7)))))&&(a27==1))&&(a16==1))&&(a15==1))){ + a9 = 16; + a25 = 1; + a20 = 5; + a2 = 9; + a12 = 2; + return -1; + } else if(((a2==10)&&(((a27==1)&&((((a20==7)&&(((a15==1)&&(input==2))&&(a9==16)))&&(a12==6))&&(a16==1)))&&!(a25==1)))){ + a20 = 5; + a2 = 9; + a25 = 1; + a12 = 2; + return -1; + } else if(((a15==1)&&((a12==4)&&(((a27==1)&&((a9==17)&&(((a16==1)&&((((a2==11)||(a2==12))||(a2==13))&&(input==1)))&&(a20==6))))&&!(a25==1))))){ + a9 = 16; + a12 = 2; + a2 = 9; + a25 = 1; + a20 = 5; + return -1; + } else if(((((((a12==4)&&((a9==17)&&((a2==12)&&((input==6)&&(a16==1)))))&&(a27==1))&&(a20==7))&&(a15==1))&&(a25==1))){ + a2 = 9; + a12 = 2; + a20 = 5; + a9 = 16; + return -1; + } else if(((a27==1)&&(!(a25==1)&&((((((a2==10)&&((a9==16)&&(input==4)))&&(a12==4))&&(a20==5))&&(a16==1))&&(a15==1))))){ + a25 = 1; + a2 = 9; + a12 = 2; + return -1; + } else if(((a12==2)&&((a20==5)&&(!(a25==1)&&(((((a9==17)&&((input==1)&&(((a2==9)||(a2==10))||(a2==11))))&&(a15==1))&&(a27==1))&&(a16==1)))))){ + a9 = 16; + a2 = 9; + a25 = 1; + return -1; + } else if(((a27==1)&&(!(a15==1)&&((a16==1)&&(!(a25==1)&&(((input==6)&&(((a12==6)&&((a2==13)&&(a9==17)))||((a12==2)&&((a2==9)&&(a9==18)))))&&(a20==5))))))){ + if((a20==7)){ + a9 = 17; + a25 = 1; + a12 = 3; + a2 = 11; + }else{ + a2 = 9; + a12 = 3; + a15 = 1; + a20 = 7; + a9 = 17; + } + return -1; + } else if(((a27==1)&&((a9==16)&&((((a16==1)&&((((((a12==4)&&(a2==12))||((a12==4)&&(a2==13)))||((a12==5)&&(a2==9)))&&(input==1))&&(a20==5)))&&!(a25==1))&&(a15==1))))){ + a25 = 1; + a12 = 2; + a2 = 9; + return -1; + } else if(((((a27==1)&&(((((a15==1)&&((a12==4)&&(input==4)))&&(a20==7))&&(a2==9))&&(a9==18)))&&(a25==1))&&(a16==1))){ + a20 = 5; + a12 = 2; + a9 = 16; + return -1; + } else if(((((a9==16)&&(!(a25==1)&&((a16==1)&&((a20==5)&&(((((a2==13)&&(a12==4))||((a12==5)&&(a2==9)))||((a12==5)&&(a2==10)))&&(input==5))))))&&!(a15==1))&&(a27==1))){ + a20 = 7; + a25 = 1; + a15 = 1; + a12 = 4; + a2 = 10; + a9 = 18; + return -1; + } else if((((((((a12==5)&&((((a2==11)||(a2==12))&&(input==6))&&(a27==1)))&&(a20==5))&&(a16==1))&&(a9==18))&&!(a25==1))&&!(a15==1))){ + if((a25==1)){ + a12 = 3; + a25 = 1; + a2 = 9; + a9 = 17; + a15 = 1; + }else{ + a15 = 1; + a12 = 4; + a2 = 10; + a9 = 17; + a25 = 1; + } + return 25; + } else if(((a9==18)&&((a12==5)&&((a15==1)&&((a27==1)&&((((((a2==10)||(a2==11))&&(input==5))&&(a20==7))&&(a16==1))&&(a25==1))))))){ + a9 = 16; + a20 = 5; + a12 = 2; + a2 = 9; + return -1; + } else if((((a15==1)&&((a27==1)&&((((((a20==7)&&(input==3))&&(a9==18))&&(a16==1))&&(a12==4))&&!(a25==1))))&&(a2==12))){ + a12 = 2; + a9 = 16; + a2 = 10; + a20 = 6; + return -1; + } else if(((((a15==1)&&((a20==6)&&(((a27==1)&&((input==1)&&(((a12==4)&&(a2==13))||((a12==5)&&(a2==9)))))&&(a25==1))))&&(a9==17))&&(a16==1))){ + a2 = 11; + a12 = 5; + a9 = 18; + return 21; + } else if(((!(a25==1)&&((a2==11)&&(((((a27==1)&&((input==6)&&(a12==2)))&&(a9==17))&&(a15==1))&&(a20==7))))&&(a16==1))){ + a9 = 16; + a20 = 5; + a25 = 1; + a2 = 9; + return -1; + } else if(((a20==5)&&((a9==17)&&((a25==1)&&((a2==13)&&((((a16==1)&&((input==6)&&!(a15==1)))&&(a12==2))&&(a27==1))))))){ + if((a27==1)){ + a9 = 16; + a2 = 10; + a15 = 1; + }else{ + a9 = 18; + a25 = 0; + } + return -1; + } else if(((((a16==1)&&((a9==17)&&((!(a15==1)&&((a27==1)&&((input==2)&&((a2==13)||((a2==11)||(a2==12))))))&&(a20==5))))&&!(a25==1))&&(a12==4))){ + if((a9==17)){ + a2 = 13; + a15 = 1; + a9 = 18; + }else{ + a2 = 9; + a20 = 7; + a12 = 2; + a9 = 16; + a15 = 1; + a25 = 1; + } + return -1; + } else if(((!(a25==1)&&((a9==17)&&(((!(a15==1)&&(((a2==9)&&(input==1))&&(a12==5)))&&(a20==5))&&(a16==1))))&&(a27==1))){ + a2 = 12; + a15 = 1; + a12 = 2; + a25 = 1; + a9 = 16; + return 26; + } else if(((((((a15==1)&&((a25==1)&&((((a2==12)||(a2==13))&&(input==3))&&(a20==5))))&&(a27==1))&&(a12==6))&&(a16==1))&&(a9==18))){ + a25 = 0; + a9 = 17; + a12 = 5; + a2 = 10; + return 21; + } else if(((a27==1)&&((((((a20==5)&&(((input==4)&&((a2==11)||(a2==12)))&&!(a15==1)))&&(a12==4))&&(a16==1))&&(a9==18))&&!(a25==1)))){ + a2 = 12; + a25 = 1; + a12 = 3; + return -1; + } else if(((!(a25==1)&&((a12==3)&&(!(a15==1)&&((a16==1)&&(((a20==5)&&((input==2)&&((a2==13)||((a2==11)||(a2==12)))))&&(a27==1))))))&&(a9==16))){ + a2 = 13; + a15 = 1; + a12 = 6; + a9 = 17; + a25 = 1; + return -1; + } else if(((a15==1)&&(((a27==1)&&(!(a25==1)&&(((a12==3)&&((a20==7)&&(((a2==10)||(a2==11))&&(input==2))))&&(a9==18))))&&(a16==1)))){ + a12 = 2; + a20 = 5; + a25 = 1; + a2 = 9; + a9 = 16; + return -1; + } else if(((a15==1)&&((a16==1)&&((a27==1)&&(((((a20==7)&&((input==2)&&((a2==9)||(a2==10))))&&(a9==16))&&(a12==6))&&(a25==1)))))){ + a20 = 6; + a12 = 5; + a2 = 9; + a25 = 0; + return 23; + } else if((((a9==17)&&((((a2==12)&&((a16==1)&&(((input==6)&&(a20==5))&&!(a15==1))))&&(a27==1))&&(a12==3)))&&(a25==1))){ + return -1; + } else if((((a2==12)&&((((a15==1)&&(((a16==1)&&((input==5)&&(a9==17)))&&(a12==6)))&&(a20==7))&&(a25==1)))&&(a27==1))){ + return -1; + } else if(((a20==7)&&((a16==1)&&((a9==16)&&((a15==1)&&((a12==3)&&((((input==1)&&((a2==12)||(a2==13)))&&(a27==1))&&(a25==1)))))))){ + a2 = 9; + a20 = 5; + a12 = 2; + return -1; + } else if((((a15==1)&&(((a20==6)&&((((((a2==11)||(a2==12))&&(input==1))&&(a9==17))&&(a16==1))&&(a12==6)))&&(a27==1)))&&(a25==1))){ + a9 = 16; + a2 = 12; + a12 = 4; + return -1; + } else if(((a9==17)&&(!(a25==1)&&((((a12==2)&&(((a2==11)&&((a15==1)&&(input==4)))&&(a27==1)))&&(a20==7))&&(a16==1))))){ + a9 = 16; + a20 = 5; + a2 = 9; + a25 = 1; + return -1; + } else if(((a25==1)&&((((a9==16)&&((a16==1)&&(!(a15==1)&&((input==1)&&((((a2==12)&&(a12==4))||((a12==4)&&(a2==13)))||((a2==9)&&(a12==5)))))))&&(a27==1))&&(a20==5)))){ + a15 = 1; + a2 = 9; + a12 = 2; + return -1; + } else if(((a20==7)&&((a15==1)&&((a16==1)&&((((a27==1)&&(((input==3)&&(a9==18))&&(a2==12)))&&(a12==2))&&!(a25==1)))))){ + a25 = 1; + a20 = 5; + a9 = 16; + a2 = 9; + return -1; + } else if((((((a25==1)&&(((a20==7)&&((((a12==4)&&(a2==9))||(((a12==3)&&(a2==12))||((a12==3)&&(a2==13))))&&(input==6)))&&(a16==1)))&&(a9==17))&&(a27==1))&&(a15==1))){ + a9 = 16; + a20 = 5; + a12 = 2; + a2 = 9; + return -1; + } else if(((((a27==1)&&(((a15==1)&&((a12==3)&&(((input==6)&&(((a2==9)||(a2==10))||(a2==11)))&&(a9==18))))&&(a20==6)))&&(a16==1))&&!(a25==1))){ + a12 = 2; + a25 = 1; + a20 = 5; + a2 = 9; + a9 = 16; + return -1; + } else if((((a2==13)&&(((((a15==1)&&(((a16==1)&&(input==2))&&(a20==7)))&&(a12==3))&&!(a25==1))&&(a27==1)))&&(a9==17))){ + a20 = 5; + a2 = 9; + a12 = 2; + a9 = 16; + a25 = 1; + return -1; + } else if((((a12==6)&&((a20==5)&&((((a15==1)&&((a16==1)&&(((a2==9)||(a2==10))&&(input==5))))&&(a27==1))&&(a9==18))))&&!(a25==1))){ + a2 = 9; + a12 = 4; + a20 = 6; + return -1; + } else if(((((a9==17)&&((a27==1)&&(((a16==1)&&(((input==3)&&((a2==13)||((a2==11)||(a2==12))))&&!(a25==1)))&&(a20==5))))&&!(a15==1))&&(a12==4))){ + a25 = 1; + a2 = 10; + a15 = 1; + a9 = 16; + return -1; + } else if(((a9==18)&&((a27==1)&&(((a15==1)&&(((a25==1)&&((a16==1)&&(((a2==10)||(a2==11))&&(input==4))))&&(a12==6)))&&(a20==5))))){ + a2 = 9; + a12 = 2; + a9 = 16; + return -1; + } else if(((a9==16)&&(((((a20==5)&&((((((a2==12)&&(a12==4))||((a2==13)&&(a12==4)))||((a2==9)&&(a12==5)))&&(input==3))&&!(a15==1)))&&(a16==1))&&(a25==1))&&(a27==1)))){ + a2 = 9; + a12 = 2; + a15 = 1; + return -1; + } else if((((a15==1)&&(((((a16==1)&&((input==2)&&((((a12==3)&&(a2==13))||((a2==9)&&(a12==4)))||((a12==4)&&(a2==10)))))&&(a25==1))&&(a20==6))&&(a9==16)))&&(a27==1))){ + a2 = 9; + a20 = 5; + a12 = 2; + return -1; + } else if(((((a27==1)&&((((a15==1)&&(((input==4)&&(a12==6))&&(a16==1)))&&(a25==1))&&(a20==7)))&&(a2==11))&&(a9==18))){ + a20 = 6; + a2 = 12; + a12 = 5; + a9 = 17; + return 21; + } else if(((((a15==1)&&(((a12==2)&&((((input==5)&&(a20==6))&&(a16==1))&&(a27==1)))&&!(a25==1)))&&(a2==12))&&(a9==17))){ + a2 = 9; + a20 = 5; + a9 = 16; + a25 = 1; + return -1; + } else if((((((a27==1)&&((a9==16)&&((a16==1)&&(((input==2)&&(((a2==10)||(a2==11))||(a2==12)))&&(a12==4)))))&&!(a25==1))&&!(a15==1))&&(a20==5))){ + a15 = 1; + a25 = 1; + a20 = 7; + a2 = 11; + return 25; + } else if(((a16==1)&&((a20==5)&&((((a25==1)&&(((((a2==10)||(a2==11))&&(input==4))&&!(a15==1))&&(a12==2)))&&(a27==1))&&(a9==18))))){ + a2 = 10; + a25 = 0; + a15 = 1; + return -1; + } else if(((((a27==1)&&((((a16==1)&&((((a2==12)||((a2==10)||(a2==11)))&&(input==4))&&(a9==18)))&&(a15==1))&&(a20==5)))&&(a25==1))&&(a12==4))){ + a12 = 5; + a2 = 13; + return 25; + } else if(((a9==18)&&((!(a15==1)&&((a12==5)&&((((a25==1)&&((input==2)&&((a2==10)||(a2==11))))&&(a20==5))&&(a16==1))))&&(a27==1)))){ + if((a2==10)){ + a9 = 16; + a2 = 10; + a20 = 6; + a12 = 6; + a15 = 1; + }else{ + a2 = 12; + a12 = 3; + a15 = 1; + a9 = 16; + } + return -1; + } else if(((a9==17)&&((a27==1)&&((((a12==4)&&((a16==1)&&(((input==3)&&(a25==1))&&(a2==13))))&&(a20==7))&&(a15==1))))){ + a20 = 5; + a2 = 11; + a9 = 18; + a12 = 6; + return 23; + } else if(((a15==1)&&(((a9==18)&&(((a20==6)&&((a12==6)&&(!(a25==1)&&((input==3)&&((a2==9)||(a2==10))))))&&(a27==1)))&&(a16==1)))){ + a9 = 16; + a12 = 2; + a25 = 1; + a20 = 5; + a2 = 9; + return -1; + } else if(((((a9==16)&&((((a20==7)&&((input==2)&&(((a2==10)&&(a12==5))||(((a2==13)&&(a12==4))||((a2==9)&&(a12==5))))))&&(a25==1))&&(a27==1)))&&(a16==1))&&(a15==1))){ + a12 = 3; + a9 = 18; + a20 = 6; + a2 = 12; + return 25; + } else if(((a9==16)&&((a15==1)&&((((a16==1)&&((a27==1)&&((input==6)&&(((a12==5)&&(a2==13))||((a12==6)&&(a2==9))))))&&(a20==6))&&!(a25==1))))){ + a25 = 1; + a12 = 3; + a9 = 18; + a2 = 12; + return -1; + } return calculate_output6(input); + } + + int calculate_output6(int input) { + if(((a20==5)&&(((a2==12)&&(!(a15==1)&&((a12==2)&&((a9==17)&&(((input==3)&&(a27==1))&&!(a25==1))))))&&(a16==1)))){ + a12 = 4; + a25 = 1; + a9 = 18; + a2 = 9; + return -1; + } else if(((a16==1)&&((((a15==1)&&(((a20==5)&&(((((a2==12)&&(a12==5))||((a2==13)&&(a12==5)))||((a2==9)&&(a12==6)))&&(input==5)))&&(a25==1)))&&(a27==1))&&(a9==18)))){ + a2 = 11; + a25 = 0; + a9 = 16; + a12 = 6; + return 21; + } else if(((((((((((a2==11)||(a2==12))&&(input==2))&&(a27==1))&&(a9==17))&&(a25==1))&&(a12==2))&&(a16==1))&&!(a15==1))&&(a20==5))){ + a9 = 16; + a2 = 9; + return 25; + } else if(((((a25==1)&&((a20==5)&&((a9==18)&&(((input==2)&&(((a2==9)&&(a12==6))||(((a12==5)&&(a2==12))||((a2==13)&&(a12==5)))))&&(a27==1)))))&&(a16==1))&&(a15==1))){ + a2 = 9; + a9 = 16; + a12 = 2; + return -1; + } else if((((a20==6)&&(((a9==17)&&(((a27==1)&&((a16==1)&&((input==2)&&((a2==11)||(a2==12)))))&&(a12==6)))&&(a25==1)))&&(a15==1))){ + a12 = 2; + a9 = 16; + a20 = 5; + a2 = 9; + return -1; + } else if(((((((((input==6)&&((((a2==12)&&(a12==3))||((a2==13)&&(a12==3)))||((a12==4)&&(a2==9))))&&!(a15==1))&&(a16==1))&&(a27==1))&&(a9==16))&&(a20==5))&&(a25==1))){ + a12 = 2; + a2 = 9; + a15 = 1; + return -1; + } else if(((a16==1)&&(((a27==1)&&((a9==17)&&((a15==1)&&((a25==1)&&((a20==7)&&((input==3)&&(a2==12)))))))&&(a12==4)))){ + a9 = 16; + a12 = 2; + a20 = 5; + a2 = 9; + return -1; + } else if(((a20==6)&&((((a15==1)&&(!(a25==1)&&((a12==4)&&((a9==18)&&(((a2==9)||(a2==10))&&(input==6))))))&&(a16==1))&&(a27==1)))){ + a12 = 2; + a25 = 1; + a20 = 5; + a9 = 16; + a2 = 9; + return -1; + } else if((((a16==1)&&(((a20==7)&&(((((a9==16)&&(input==3))&&(a27==1))&&(a12==2))&&(a25==1)))&&(a15==1)))&&(a2==12))){ + a2 = 9; + a20 = 5; + return -1; + } else if((((((!(a15==1)&&((a9==16)&&(((a2==9)&&(input==1))&&(a27==1))))&&(a25==1))&&(a12==6))&&(a16==1))&&(a20==5))){ + if((a16==1)){ + a2 = 13; + a12 = 3; + a15 = 1; + a20 = 7; + }else{ + a2 = 10; + a9 = 18; + a15 = 1; + a12 = 3; + } + return -1; + } else if((((a15==1)&&((a16==1)&&(((a20==7)&&((((a12==3)&&(input==3))&&!(a25==1))&&(a9==17)))&&(a2==9))))&&(a27==1))){ + a12 = 2; + a25 = 1; + a9 = 16; + a20 = 5; + return -1; + } else if(((a20==7)&&((a15==1)&&((a12==3)&&(((((a25==1)&&(((a2==10)||(a2==11))&&(input==3)))&&(a16==1))&&(a27==1))&&(a9==16)))))){ + a9 = 18; + a12 = 2; + a2 = 10; + return -1; + } else if(((a27==1)&&(!(a25==1)&&((((((input==3)&&((((a12==5)&&(a2==12))||((a12==5)&&(a2==13)))||((a12==6)&&(a2==9))))&&(a15==1))&&(a20==7))&&(a16==1))&&(a9==18))))){ + a9 = 16; + a20 = 5; + a2 = 9; + a12 = 2; + a25 = 1; + return -1; + } else if(((a2==13)&&(((a9==16)&&((a27==1)&&((a16==1)&&(((a25==1)&&((a20==5)&&(input==2)))&&(a12==5)))))&&!(a15==1)))){ + a9 = 18; + a15 = 1; + a2 = 11; + return -1; + } else if((((a27==1)&&(((a15==1)&&((a9==16)&&((((input==6)&&(a16==1))&&(a12==5))&&(a20==7))))&&(a2==13)))&&(a25==1))){ + a20 = 5; + a12 = 2; + a2 = 9; + return -1; + } else if((!(a25==1)&&((a12==4)&&(((a9==17)&&((a20==5)&&((((a16==1)&&(input==2))&&(a2==10))&&!(a15==1))))&&(a27==1))))){ + a2 = 13; + a15 = 1; + a9 = 16; + a25 = 1; + return -1; + } else if(((((a20==5)&&((a27==1)&&((!(a15==1)&&((a12==2)&&((input==6)&&(a9==16))))&&(a2==11))))&&!(a25==1))&&(a16==1))){ + a15 = 1; + a2 = 12; + a25 = 1; + a12 = 4; + return -1; + } else if((((((a16==1)&&(((!(a15==1)&&((((a2==9)||(a2==10))||(a2==11))&&(input==2)))&&(a9==16))&&!(a25==1)))&&(a12==6))&&(a27==1))&&(a20==5))){ + a25 = 1; + a2 = 13; + a15 = 1; + a12 = 3; + a9 = 17; + return -1; + } else if((((a27==1)&&((a20==5)&&((a15==1)&&((a16==1)&&((((a12==6)&&((a9==17)&&(a2==13)))||((a12==2)&&((a2==9)&&(a9==18))))&&(input==6))))))&&!(a25==1))){ + a2 = 9; + a25 = 1; + a12 = 2; + a9 = 16; + return -1; + } else if(((a9==17)&&((((a16==1)&&(((((a20==7)&&(input==4))&&!(a25==1))&&(a27==1))&&(a2==13)))&&(a15==1))&&(a12==5)))){ + a20 = 5; + a9 = 18; + a2 = 12; + a25 = 1; + return 25; + } else if(((a2==9)&&((a9==16)&&((a12==4)&&(!(a25==1)&&((a20==5)&&((a16==1)&&(!(a15==1)&&((input==3)&&(a27==1)))))))))){ + if((a16==1)){ + a12 = 3; + a20 = 7; + a2 = 10; + a15 = 1; + }else{ + a12 = 5; + a2 = 11; + a15 = 1; + a9 = 17; + } + return -1; + } else if(((a25==1)&&((a15==1)&&(((a20==5)&&((a27==1)&&(((input==3)&&((((a12==4)&&(a2==13))||((a12==5)&&(a2==9)))||((a12==5)&&(a2==10))))&&(a9==18))))&&(a16==1))))){ + a9 = 16; + a2 = 13; + a12 = 2; + a25 = 0; + return 21; + } else if(((a25==1)&&(((((((a20==7)&&((a12==5)&&(input==4)))&&(a15==1))&&(a27==1))&&(a9==16))&&(a2==13))&&(a16==1)))){ + a2 = 9; + a20 = 5; + a12 = 2; + return -1; + } else if(((((((a15==1)&&((((((a2==10)||(a2==11))||(a2==12))&&(input==1))&&(a16==1))&&(a12==5)))&&(a27==1))&&(a9==16))&&!(a25==1))&&(a20==7))){ + a20 = 5; + a12 = 2; + a25 = 1; + a2 = 9; + return -1; + } else if(((a9==18)&&(((((a27==1)&&(((a15==1)&&(((a2==12)||(a2==13))&&(input==5)))&&(a25==1)))&&(a12==6))&&(a16==1))&&(a20==5)))){ + a2 = 11; + a12 = 5; + a9 = 17; + a25 = 0; + return 25; + } else if(((a15==1)&&(((a20==6)&&((((a2==12)&&(((a27==1)&&(input==4))&&(a12==3)))&&(a9==18))&&(a25==1)))&&(a16==1)))){ + return 25; + } else if(((a9==18)&&((((((a12==3)&&(((input==6)&&(a20==5))&&(a2==12)))&&(a27==1))&&(a25==1))&&!(a15==1))&&(a16==1)))){ + if((a15==1)){ + a9 = 16; + a12 = 5; + a15 = 1; + a2 = 13; + a25 = 0; + }else{ + a20 = 7; + a12 = 4; + a2 = 9; + a15 = 1; + a25 = 0; + } + return -1; + } else if(((a15==1)&&((((((input==3)&&(((a12==6)&&((a9==17)&&(a2==13)))||((a12==2)&&((a2==9)&&(a9==18)))))&&(a27==1))&&(a25==1))&&(a16==1))&&(a20==7)))){ + a9 = 17; + a12 = 2; + a2 = 10; + a20 = 6; + return -1; + } else if(((a16==1)&&((a20==5)&&((!(a25==1)&&((a27==1)&&((((input==3)&&(a2==11))&&(a15==1))&&(a9==17))))&&(a12==5))))){ + a20 = 6; + a12 = 4; + a9 = 16; + a2 = 9; + return 23; + } else if((((a9==18)&&((a20==5)&&(((!(a25==1)&&((input==6)&&(((a2==10)&&(a12==3))||(((a12==2)&&(a2==13))||((a2==9)&&(a12==3))))))&&(a15==1))&&(a27==1))))&&(a16==1))){ + a25 = 1; + a12 = 2; + a2 = 9; + a9 = 16; + return -1; + } else if((((a20==7)&&((a27==1)&&((a25==1)&&((a9==16)&&((a15==1)&&((a2==10)&&((input==4)&&(a16==1))))))))&&(a12==4))){ + a12 = 2; + a9 = 17; + a2 = 12; + return -1; + } else if(((a9==16)&&((a16==1)&&((((a2==13)&&((a25==1)&&(((input==3)&&(a12==5))&&(a27==1))))&&(a20==5))&&!(a15==1))))){ + if((a9==17)){ + a15 = 1; + }else{ + a15 = 1; + a12 = 3; + a9 = 18; + a25 = 0; + a2 = 12; + } + return -1; + } else if((((((a12==3)&&((a20==7)&&((a27==1)&&(!(a25==1)&&((input==3)&&((a2==11)||((a2==9)||(a2==10))))))))&&(a16==1))&&(a9==16))&&(a15==1))){ + a12 = 2; + a2 = 9; + a20 = 5; + a25 = 1; + return -1; + } else if(((a16==1)&&((((a2==9)&&((a12==2)&&((a25==1)&&(((a27==1)&&(input==2))&&(a15==1)))))&&(a20==7))&&(a9==17)))){ + a2 = 10; + a9 = 16; + a20 = 5; + a12 = 5; + return -1; + } else if(((((a12==4)&&((a20==7)&&((a27==1)&&((a15==1)&&((a9==17)&&(((a2==11)||(a2==12))&&(input==4)))))))&&!(a25==1))&&(a16==1))){ + a9 = 16; + a20 = 6; + a2 = 13; + a12 = 3; + a25 = 1; + return -1; + } else if(((a27==1)&&(((a15==1)&&(((a12==6)&&((a20==7)&&((a16==1)&&((a25==1)&&(input==3)))))&&(a2==11)))&&(a9==18)))){ + a9 = 16; + a2 = 9; + a12 = 2; + a20 = 5; + return -1; + } else if(((a9==16)&&((((((a20==5)&&((a27==1)&&(((a2==10)||(a2==11))&&(input==6))))&&(a12==4))&&(a25==1))&&!(a15==1))&&(a16==1)))){ + a15 = 1; + a20 = 6; + a2 = 10; + a12 = 5; + return -1; + } else if((((((((((a25==1)&&(input==3))&&(a15==1))&&(a27==1))&&(a16==1))&&(a12==2))&&(a20==6))&&(a9==16))&&(a2==13))){ + if((a15==1)){ + a12 = 5; + a9 = 18; + a20 = 7; + }else{ + a12 = 6; + a25 = 0; + a2 = 11; + a9 = 18; + } + return 21; + } else if((((((((a12==2)&&(((input==1)&&((a2==10)||(a2==11)))&&!(a25==1)))&&(a9==17))&&(a16==1))&&(a20==5))&&(a27==1))&&!(a15==1))){ + a25 = 1; + a15 = 1; + a2 = 12; + a12 = 4; + return -1; + } else if(((a12==6)&&(!(a25==1)&&(!(a15==1)&&(((((((a2==10)||(a2==11))&&(input==4))&&(a16==1))&&(a27==1))&&(a20==5))&&(a9==18)))))){ + a15 = 1; + a2 = 13; + a25 = 1; + a12 = 3; + a9 = 16; + return 25; + } else if(((a9==16)&&(((!(a25==1)&&((a16==1)&&((((a27==1)&&(input==4))&&(a12==4))&&(a2==12))))&&(a15==1))&&(a20==6)))){ + a25 = 1; + a20 = 7; + a2 = 10; + a9 = 17; + return -1; + } else if(((a20==6)&&((a12==5)&&((a27==1)&&((a9==18)&&((a15==1)&&((a16==1)&&((((a2==9)||(a2==10))&&(input==6))&&(a25==1))))))))){ + a20 = 5; + a2 = 9; + a9 = 16; + a12 = 2; + return -1; + } else if((!(a15==1)&&((a20==5)&&(((a16==1)&&((a9==18)&&((a25==1)&&((((a12==5)&&(a2==9))||(((a12==4)&&(a2==12))||((a2==13)&&(a12==4))))&&(input==2)))))&&(a27==1))))){ + a2 = 9; + a9 = 17; + a12 = 5; + return -1; + } else if(((a12==2)&&(((a16==1)&&((((a15==1)&&(((input==3)&&(a20==6))&&!(a25==1)))&&(a27==1))&&(a2==11)))&&(a9==16)))){ + a12 = 6; + a9 = 18; + a25 = 1; + return -1; + } else if(((((((a25==1)&&((a16==1)&&((a12==2)&&((input==1)&&(a2==13)))))&&(a27==1))&&(a20==6))&&(a15==1))&&(a9==18))){ + a9 = 16; + a20 = 5; + a2 = 9; + return -1; + } else if(((a15==1)&&((a27==1)&&((a20==6)&&((((((a25==1)&&((a12==6)&&((a9==18)&&(a2==13))))||(((a12==2)&&((a2==9)&&(a9==16)))&&!(a25==1)))||((((a2==10)&&(a9==16))&&(a12==2))&&!(a25==1)))&&(input==2))&&(a16==1)))))){ + a12 = 2; + a2 = 9; + a9 = 16; + a25 = 1; + a20 = 5; + return -1; + } else if((!(a25==1)&&((a16==1)&&(((a12==4)&&((a27==1)&&((a2==13)&&(((a9==16)&&(input==5))&&(a20==6)))))&&(a15==1))))){ + a25 = 1; + a2 = 9; + a20 = 5; + a12 = 2; + return -1; + } else if((((((a25==1)&&((a12==5)&&((a9==16)&&((a15==1)&&(((a2==12)||(a2==13))&&(input==6))))))&&(a16==1))&&(a27==1))&&(a20==6))){ + a2 = 10; + return -1; + } else if((((a15==1)&&((a12==4)&&((a16==1)&&((((a25==1)&&((input==6)&&((a2==11)||(a2==12))))&&(a20==7))&&(a9==16)))))&&(a27==1))){ + a2 = 11; + a20 = 6; + a12 = 5; + return -1; + } else if(((((a27==1)&&((a15==1)&&((a9==17)&&((a20==7)&&(((((a12==4)&&(a2==13))||((a12==5)&&(a2==9)))||((a2==10)&&(a12==5)))&&(input==5))))))&&!(a25==1))&&(a16==1))){ + a2 = 10; + a20 = 6; + a12 = 5; + a25 = 1; + return -1; + } else if((((a16==1)&&((a12==4)&&((a9==17)&&((a20==6)&&(!(a25==1)&&((((a2==13)||((a2==11)||(a2==12)))&&(input==5))&&(a27==1)))))))&&(a15==1))){ + a25 = 1; + a9 = 16; + a2 = 9; + a12 = 2; + a20 = 5; + return -1; + } else if(((((a16==1)&&((input==3)&&((((a20==6)&&(((a12==6)&&((a2==13)&&(a9==18)))&&!(a25==1)))||(((a25==1)&&(((a2==9)&&(a9==16))&&(a12==2)))&&(a20==7)))||((a20==7)&&((a25==1)&&(((a9==16)&&(a2==10))&&(a12==2)))))))&&(a15==1))&&(a27==1))){ + a25 = 1; + a9 = 16; + a20 = 5; + a12 = 2; + a2 = 9; + return -1; + } else if((((a20==5)&&((a12==4)&&(!(a25==1)&&((a27==1)&&(((a2==9)&&((input==2)&&(a9==16)))&&(a16==1))))))&&!(a15==1))){ + a12 = 5; + a15 = 1; + a2 = 13; + a9 = 17; + a25 = 1; + return 25; + } else if(((((((a20==7)&&(((a12==6)&&((a15==1)&&((a2==13)&&(a9==18))))&&!(a25==1)))||((((a12==2)&&(!(a15==1)&&((a2==9)&&(a9==16))))&&(a25==1))&&(a20==5)))&&(input==6))&&(a27==1))&&(a16==1))){ + a9 = 16; + a12 = 2; + a25 = 1; + a20 = 5; + a2 = 9; + a15 = 1; + return -1; + } else if(((a12==4)&&((a16==1)&&((a9==16)&&((a27==1)&&((a15==1)&&(!(a25==1)&&(((input==1)&&((a2==10)||(a2==11)))&&(a20==7))))))))){ + a12 = 2; + a2 = 9; + a20 = 5; + a25 = 1; + return -1; + } else if(((a20==5)&&((((((a15==1)&&(((input==5)&&(a2==12))&&!(a25==1)))&&(a16==1))&&(a9==18))&&(a12==4))&&(a27==1)))){ + a12 = 2; + a2 = 9; + a25 = 1; + a9 = 16; + return -1; + } else if(((a25==1)&&(((a27==1)&&((((a16==1)&&((a20==6)&&((input==4)&&((a2==11)||(a2==12)))))&&(a12==5))&&(a15==1)))&&(a9==18)))){ + a9 = 17; + a2 = 13; + a12 = 2; + return 26; + } else if(((a9==17)&&(((a27==1)&&((!(a15==1)&&((a16==1)&&((a20==5)&&(((a2==12)||((a2==10)||(a2==11)))&&(input==3)))))&&(a12==5)))&&(a25==1)))){ + if((a12==6)){ + a12 = 6; + a2 = 9; + a9 = 16; + }else{ + a9 = 16; + a2 = 12; + a12 = 2; + a15 = 1; + } + return -1; + } else if((((((a20==5)&&(!(a25==1)&&((a9==16)&&((input==6)&&(((a2==10)&&(a12==5))||(((a12==4)&&(a2==13))||((a12==5)&&(a2==9))))))))&&(a16==1))&&(a27==1))&&!(a15==1))){ + a9 = 18; + a25 = 1; + a12 = 6; + a2 = 12; + a20 = 7; + a15 = 1; + return -1; + } else if((((a9==18)&&((a12==6)&&(((((a15==1)&&((((a2==11)||(a2==12))||(a2==13))&&(input==2)))&&(a20==5))&&!(a25==1))&&(a16==1))))&&(a27==1))){ + a2 = 9; + a25 = 1; + a9 = 16; + a12 = 2; + return -1; + } else if(((a25==1)&&(((a12==3)&&((a27==1)&&((a20==6)&&((a15==1)&&((((a2==9)||(a2==10))&&(input==5))&&(a9==16))))))&&(a16==1)))){ + a12 = 2; + a20 = 5; + a2 = 9; + return -1; + } else if(((a9==17)&&((!(a15==1)&&(((a2==13)&&((a27==1)&&((a20==5)&&((a12==2)&&(input==3)))))&&(a25==1)))&&(a16==1)))){ + a2 = 12; + a12 = 6; + a15 = 1; + return -1; + } else if(((a27==1)&&(((((a16==1)&&((a20==6)&&(((((a2==11)||(a2==12))||(a2==13))&&(input==3))&&(a9==16))))&&(a15==1))&&(a12==6))&&!(a25==1)))){ + a12 = 2; + a25 = 1; + a2 = 9; + a20 = 5; + return -1; + } else if(((a25==1)&&(((a15==1)&&(((a20==6)&&((a12==6)&&((((a2==11)||(a2==12))&&(input==3))&&(a27==1))))&&(a9==17)))&&(a16==1)))){ + a12 = 2; + a2 = 9; + a20 = 5; + a9 = 16; + return -1; + } else if((((a20==7)&&((a12==3)&&(((a15==1)&&((a9==16)&&((a27==1)&&(((a2==11)||((a2==9)||(a2==10)))&&(input==5)))))&&!(a25==1))))&&(a16==1))){ + a12 = 2; + a2 = 9; + a25 = 1; + a20 = 5; + return -1; + } else if(((a16==1)&&((a15==1)&&((a9==18)&&((a25==1)&&(((a20==6)&&((((a12==6)&&(a2==10))||(((a2==13)&&(a12==5))||((a12==6)&&(a2==9))))&&(input==3)))&&(a27==1))))))){ + a2 = 12; + a12 = 2; + return -1; + } else if((((a20==5)&&(!(a25==1)&&((a15==1)&&(((a16==1)&&((((a12==5)&&(a2==13))||((a12==6)&&(a2==9)))&&(input==2)))&&(a27==1)))))&&(a9==17))){ + a12 = 2; + a25 = 1; + a9 = 16; + a2 = 9; + return -1; + } else if(((a9==17)&&(((a15==1)&&(((((((a12==5)&&(a2==13))||((a2==9)&&(a12==6)))&&(input==6))&&!(a25==1))&&(a16==1))&&(a27==1)))&&(a20==5)))){ + a2 = 9; + a25 = 1; + a12 = 2; + a9 = 16; + return -1; + } else if((((a16==1)&&((a9==17)&&((((a25==1)&&((a12==2)&&((a15==1)&&(input==4))))&&(a2==9))&&(a20==6))))&&(a27==1))){ + a20 = 5; + a9 = 16; + return -1; + } else if((!(a25==1)&&((a27==1)&&((a20==7)&&(((a12==6)&&(((a16==1)&&(((a2==9)||(a2==10))&&(input==1)))&&(a15==1)))&&(a9==17)))))){ + a25 = 1; + a12 = 3; + a2 = 11; + a9 = 16; + return 21; + } else if(((((a12==6)&&((a2==12)&&((((a9==16)&&((a25==1)&&(input==2)))&&!(a15==1))&&(a16==1))))&&(a20==5))&&(a27==1))){ + a9 = 17; + a15 = 1; + return -1; + } else if(((a20==5)&&((a27==1)&&((a25==1)&&((((input==1)&&((((a9==17)&&(a2==10))&&(a12==2))||((((a2==13)&&(a9==16))&&(a12==6))||(((a9==17)&&(a2==9))&&(a12==2)))))&&!(a15==1))&&(a16==1)))))){ + a2 = 13; + a12 = 5; + a9 = 17; + a15 = 1; + return -1; + } else if((((a12==6)&&(((a16==1)&&((a9==17)&&(((a27==1)&&(((a2==11)||((a2==9)||(a2==10)))&&(input==1)))&&(a20==7))))&&(a15==1)))&&(a25==1))){ + if((a16==1)){ + a25 = 0; + a12 = 4; + a2 = 11; + }else{ + a12 = 4; + a20 = 6; + a2 = 9; + } + return 26; + } else if(((a15==1)&&((a2==9)&&(((a27==1)&&((a16==1)&&((((input==1)&&(a25==1))&&(a20==7))&&(a9==18))))&&(a12==4))))){ + a9 = 16; + a20 = 6; + a2 = 13; + return -1; + } else if(((a25==1)&&(((a9==16)&&((a16==1)&&((a27==1)&&(((a15==1)&&((a12==5)&&(input==2)))&&(a2==11)))))&&(a20==7)))){ + a20 = 6; + a2 = 13; + a9 = 17; + return 25; + } else if(((a9==18)&&((!(a25==1)&&((a27==1)&&((a16==1)&&((((input==3)&&((a2==9)||(a2==10)))&&(a15==1))&&(a20==5)))))&&(a12==6)))){ + a2 = 9; + a9 = 16; + a12 = 2; + a25 = 1; + return -1; + } else if((((a9==17)&&(!(a25==1)&&((a15==1)&&((a27==1)&&((a12==5)&&((a16==1)&&((input==5)&&(a2==13))))))))&&(a20==7))){ + a9 = 18; + a20 = 5; + a25 = 1; + a2 = 11; + return 26; + } else if(((((!(a25==1)&&(((a15==1)&&((input==5)&&(((a12==5)&&(a2==9))||(((a2==12)&&(a12==4))||((a12==4)&&(a2==13))))))&&(a9==18)))&&(a27==1))&&(a16==1))&&(a20==6))){ + a12 = 2; + a20 = 5; + a2 = 9; + a25 = 1; + a9 = 16; + return -1; + } else if((((!(a25==1)&&(((a20==7)&&((((input==2)&&(a15==1))&&(a27==1))&&(a9==17)))&&(a12==5)))&&(a16==1))&&(a2==13))){ + a25 = 1; + a9 = 16; + a2 = 9; + a20 = 5; + a12 = 2; + return -1; + } else if(((((((a25==1)&&((a12==5)&&((a16==1)&&((input==6)&&((a2==10)||(a2==11))))))&&(a20==7))&&(a9==18))&&(a15==1))&&(a27==1))){ + a12 = 2; + a20 = 5; + a2 = 9; + a9 = 16; + return -1; + } else if(((a20==5)&&((a12==2)&&((a27==1)&&(((((a16==1)&&((input==2)&&((a2==12)||(a2==13))))&&(a9==18))&&!(a15==1))&&(a25==1)))))){ + if((a27==1)){ + a12 = 6; + a20 = 6; + a15 = 1; + a25 = 0; + a9 = 17; + a2 = 12; + }else{ + a20 = 7; + a2 = 12; + a9 = 16; + a15 = 1; + a12 = 4; + } + return -1; + } else if((((a25==1)&&((a27==1)&&((a16==1)&&((a9==18)&&(((a2==12)&&((a20==5)&&(input==4)))&&(a12==3))))))&&!(a15==1))){ + if((a15==1)){ + a9 = 17; + a12 = 6; + a15 = 1; + }else{ + a15 = 1; + a12 = 4; + a9 = 16; + } + return -1; + } else if(((a27==1)&&((a9==16)&&(((a15==1)&&((a20==7)&&(((a12==5)&&((a2==12)&&(input==3)))&&(a25==1))))&&(a16==1))))){ + a20 = 5; + a2 = 9; + a12 = 2; + return -1; + } else if(((a25==1)&&((((a9==18)&&(((a15==1)&&((a16==1)&&(((a2==11)||(a2==12))&&(input==3))))&&(a12==5)))&&(a20==6))&&(a27==1)))){ + a20 = 5; + a2 = 9; + a9 = 16; + a12 = 2; + return -1; + } else if(((!(a25==1)&&((a9==18)&&((((a20==7)&&((a16==1)&&(((a2==11)||((a2==9)||(a2==10)))&&(input==5))))&&(a12==4))&&(a27==1))))&&(a15==1))){ + a2 = 9; + a20 = 5; + a9 = 16; + a25 = 1; + a12 = 2; + return -1; + } else if((((((a20==6)&&((a27==1)&&((a25==1)&&((a12==6)&&(((a2==11)||(a2==12))&&(input==6))))))&&(a15==1))&&(a16==1))&&(a9==17))){ + a2 = 9; + a12 = 5; + a9 = 16; + return -1; + } else if(((a16==1)&&((a25==1)&&(((!(a15==1)&&(((input==6)&&((((a2==12)&&(a12==4))||((a12==4)&&(a2==13)))||((a2==9)&&(a12==5))))&&(a9==17)))&&(a20==5))&&(a27==1))))){ + a15 = 1; + a12 = 3; + a2 = 12; + return -1; + } else if((((a15==1)&&(((a12==6)&&(((((input==4)&&!(a25==1))&&(a2==10))&&(a9==16))&&(a27==1)))&&(a16==1)))&&(a20==6))){ + a2 = 13; + a25 = 1; + a20 = 5; + a9 = 18; + return 24; + } else if((((a20==5)&&(((((((input==1)&&(a27==1))&&(a15==1))&&!(a25==1))&&(a16==1))&&(a12==4))&&(a9==18)))&&(a2==12))){ + a9 = 16; + a2 = 9; + a25 = 1; + a12 = 2; + return -1; + } else if(((a12==2)&&((a9==18)&&((((a27==1)&&(!(a25==1)&&((a20==6)&&((input==6)&&((a2==13)||((a2==11)||(a2==12)))))))&&(a15==1))&&(a16==1))))){ + a9 = 16; + a20 = 5; + a25 = 1; + a2 = 9; + return -1; + } else if(((a12==2)&&((((a27==1)&&((((a2==12)&&((input==5)&&(a9==17)))&&(a20==7))&&(a25==1)))&&(a16==1))&&(a15==1)))){ + a20 = 5; + a2 = 9; + a9 = 16; + return -1; + } else if(((a9==17)&&(((a2==12)&&(((a27==1)&&((!(a15==1)&&((a12==2)&&(input==2)))&&(a16==1)))&&!(a25==1)))&&(a20==5)))){ + a2 = 11; + a25 = 1; + a15 = 1; + a9 = 18; + a12 = 3; + return -1; + } else if((((!(a25==1)&&((((a2==13)&&(((input==6)&&(a9==16))&&(a27==1)))&&(a15==1))&&(a16==1)))&&(a20==5))&&(a12==6))){ + a2 = 9; + a25 = 1; + a12 = 2; + return -1; + } else if((((a9==17)&&(((a12==2)&&((((a16==1)&&((input==3)&&((a2==12)||(a2==13))))&&!(a25==1))&&(a15==1)))&&(a20==7)))&&(a27==1))){ + a2 = 9; + a25 = 1; + a9 = 16; + a20 = 5; + return -1; + } else if(((((a16==1)&&((a12==2)&&((a27==1)&&((a15==1)&&((((a2==12)||((a2==10)||(a2==11)))&&(input==4))&&(a20==7))))))&&(a9==16))&&!(a25==1))){ + a20 = 5; + a2 = 9; + a25 = 1; + return -1; + } else if((((a20==7)&&((!(a25==1)&&((a15==1)&&((((input==1)&&((a2==13)||((a2==11)||(a2==12))))&&(a9==17))&&(a27==1))))&&(a16==1)))&&(a12==6))){ + a2 = 9; + a9 = 16; + a12 = 2; + a25 = 1; + a20 = 5; + return -1; + } else if((((((((a27==1)&&((((a2==13)||((a2==11)||(a2==12)))&&(input==2))&&(a20==6)))&&(a16==1))&&(a9==16))&&(a15==1))&&(a12==4))&&(a25==1))){ + a12 = 2; + a20 = 5; + a2 = 9; + return -1; + } else if(((a15==1)&&(((((((((a2==9)||(a2==10))&&(input==5))&&(a12==6))&&(a27==1))&&(a20==7))&&!(a25==1))&&(a16==1))&&(a9==17)))){ + a25 = 1; + a12 = 2; + a2 = 9; + a20 = 5; + a9 = 16; + return -1; + } else if(((a16==1)&&((!(a25==1)&&(((a27==1)&&(((((a2==10)||(a2==11))&&(input==3))&&(a15==1))&&(a9==16)))&&(a20==7)))&&(a12==4)))){ + a2 = 9; + a12 = 2; + a25 = 1; + a20 = 5; + return -1; + } else if((((a27==1)&&(((a25==1)&&(((((((a2==10)||(a2==11))||(a2==12))&&(input==6))&&(a15==1))&&(a16==1))&&(a20==6)))&&(a12==2)))&&(a9==17))){ + a2 = 12; + a20 = 7; + a12 = 5; + return -1; + } else if((((a12==4)&&((a9==17)&&((!(a25==1)&&((a20==5)&&((a15==1)&&((input==3)&&(((a2==11)||(a2==12))||(a2==13))))))&&(a27==1))))&&(a16==1))){ + a9 = 16; + a12 = 2; + a25 = 1; + a2 = 9; + return -1; + } else if(((((a16==1)&&((((a9==18)&&(((input==5)&&((a2==10)||(a2==11)))&&(a15==1)))&&(a27==1))&&(a20==7)))&&(a12==3))&&!(a25==1))){ + a2 = 13; + a20 = 6; + a12 = 2; + a25 = 1; + a9 = 17; + return 21; + } else if(((a20==6)&&(((a16==1)&&(((((((a2==11)||((a2==9)||(a2==10)))&&(input==6))&&(a25==1))&&(a9==16))&&(a12==2))&&(a27==1)))&&(a15==1)))){ + if((a15==1)){ + a20 = 7; + a9 = 18; + a12 = 3; + a2 = 12; + }else{ + a12 = 4; + a2 = 10; + } + return 21; + } else if((!(a25==1)&&((((a12==2)&&((((a9==16)&&(((a2==12)||(a2==13))&&(input==5)))&&(a16==1))&&(a27==1)))&&(a20==5))&&(a15==1)))){ + a9 = 18; + a12 = 4; + a2 = 9; + return 26; + } else if(((((a9==17)&&(((a12==5)&&((a2==9)&&(((input==5)&&(a15==1))&&(a25==1))))&&(a27==1)))&&(a16==1))&&(a20==7))){ + a9 = 18; + a2 = 11; + a20 = 5; + return 26; + } else if(((a20==5)&&((a12==6)&&((a16==1)&&(!(a25==1)&&((((((a2==10)||(a2==11))&&(input==3))&&(a9==18))&&!(a15==1))&&(a27==1))))))){ + a12 = 3; + a2 = 12; + return -1; + } else if(((a25==1)&&(((a27==1)&&(((a12==3)&&((a20==6)&&((((a2==9)||(a2==10))&&(input==3))&&(a9==16))))&&(a15==1)))&&(a16==1)))){ + a12 = 6; + a2 = 13; + a25 = 0; + a9 = 18; + return -1; + } else if(((a15==1)&&((a16==1)&&(((((a9==18)&&((a27==1)&&((input==6)&&((a2==11)||((a2==9)||(a2==10))))))&&!(a25==1))&&(a20==7))&&(a12==4))))){ + a2 = 10; + a12 = 6; + a20 = 6; + a25 = 1; + return -1; + } else if((((a9==17)&&(((((a15==1)&&((((a2==12)||(a2==13))&&(input==4))&&(a16==1)))&&(a25==1))&&(a12==5))&&(a20==7)))&&(a27==1))){ + if((a2==10)){ + a12 = 4; + a2 = 11; + a20 = 5; + a15 = 0; + a9 = 16; + }else{ + a2 = 12; + a9 = 16; + a20 = 6; + } + return -1; + } else if(((a12==2)&&((a16==1)&&((a20==7)&&((a25==1)&&((a9==16)&&((a15==1)&&(((a2==11)&&(input==3))&&(a27==1))))))))){ + a12 = 5; + a2 = 12; + return -1; + } else if(((a16==1)&&((a25==1)&&((a20==5)&&(((a27==1)&&(((((a12==5)&&(a2==9))||(((a2==12)&&(a12==4))||((a2==13)&&(a12==4))))&&(input==3))&&!(a15==1)))&&(a9==18)))))){ + a9 = 17; + a12 = 2; + a15 = 1; + a2 = 9; + return -1; + } else if(((a9==16)&&(((a20==5)&&((a27==1)&&((!(a15==1)&&((a16==1)&&(((a2==12)||((a2==10)||(a2==11)))&&(input==5))))&&(a12==4))))&&!(a25==1)))){ + if((a25==1)){ + a2 = 13; + a9 = 17; + a20 = 7; + a15 = 1; + }else{ + a15 = 1; + a2 = 11; + a20 = 6; + a12 = 3; + } + return -1; + } else if(((a20==6)&&(((a15==1)&&((a9==18)&&(!(a25==1)&&(((input==3)&&(((a2==9)&&(a12==5))||(((a2==12)&&(a12==4))||((a2==13)&&(a12==4)))))&&(a16==1)))))&&(a27==1)))){ + a9 = 16; + a12 = 2; + a20 = 5; + a2 = 9; + a25 = 1; + return -1; + } else if(((((a9==18)&&((a27==1)&&((a15==1)&&(((a25==1)&&((((a2==9)||(a2==10))||(a2==11))&&(input==5)))&&(a12==2)))))&&(a20==6))&&(a16==1))){ + a2 = 9; + return 21; + } else if((((a9==18)&&(((((a12==2)&&(((((a2==10)||(a2==11))||(a2==12))&&(input==2))&&(a20==7)))&&(a25==1))&&(a15==1))&&(a27==1)))&&(a16==1))){ + a2 = 12; + a12 = 3; + a20 = 6; + return 25; + } else if(((a12==5)&&(!(a15==1)&&((a20==5)&&((((((input==6)&&(a25==1))&&(a2==12))&&(a9==16))&&(a16==1))&&(a27==1)))))){ + a2 = 11; + a25 = 0; + a9 = 17; + a12 = 6; + return -1; + } else if(((a9==18)&&(((!(a25==1)&&(((a15==1)&&((a27==1)&&(((a2==12)||((a2==10)||(a2==11)))&&(input==5))))&&(a20==6)))&&(a12==5))&&(a16==1)))){ + a2 = 9; + a12 = 2; + a25 = 1; + a9 = 16; + a20 = 5; + return -1; + } else if(((a27==1)&&((!(a25==1)&&(((a16==1)&&((a9==16)&&((input==5)&&((((a2==12)&&(a12==3))||((a2==13)&&(a12==3)))||((a12==4)&&(a2==9))))))&&(a20==5)))&&(a15==1)))){ + a2 = 9; + a25 = 1; + a12 = 2; + return -1; + } else if(((!(a25==1)&&((a16==1)&&(((a12==3)&&(((a9==17)&&((input==4)&&(a2==9)))&&(a15==1)))&&(a27==1))))&&(a20==7))){ + a9 = 16; + a12 = 2; + a25 = 1; + a20 = 5; + return -1; + } else if(((a16==1)&&(((a20==5)&&((a9==18)&&((a25==1)&&(((a12==2)&&((input==5)&&((a2==10)||(a2==11))))&&!(a15==1)))))&&(a27==1)))){ + if((a25==1)){ + a9 = 16; + a2 = 12; + a15 = 1; + a20 = 6; + }else{ + a12 = 6; + a9 = 16; + a2 = 12; + a15 = 1; + a25 = 0; + } + return -1; + } else if(((a27==1)&&((a9==17)&&(((a20==7)&&(((a25==1)&&((input==4)&&((((a2==13)&&(a12==2))||((a12==3)&&(a2==9)))||((a12==3)&&(a2==10)))))&&(a15==1)))&&(a16==1))))){ + a20 = 5; + a12 = 2; + a2 = 11; + a9 = 18; + return -1; + } else if(((a20==6)&&(((a27==1)&&(!(a25==1)&&((a12==5)&&(((a9==17)&&(((a2==12)||(a2==13))&&(input==2)))&&(a15==1)))))&&(a16==1)))){ + a20 = 5; + a9 = 16; + a2 = 9; + a12 = 2; + a25 = 1; + return -1; + } else if(((a20==6)&&(!(a25==1)&&((a27==1)&&((a16==1)&&((a9==18)&&((((a15==1)&&(input==6))&&(a12==4))&&(a2==11)))))))){ + a2 = 9; + a12 = 2; + a9 = 16; + a25 = 1; + a20 = 5; + return -1; + } else if(((a16==1)&&((a15==1)&&((a20==6)&&((a2==11)&&((((a27==1)&&(!(a25==1)&&(input==3)))&&(a12==5))&&(a9==17))))))){ + a2 = 9; + a25 = 1; + a12 = 6; + return 21; + } else if((((a12==2)&&((((a9==17)&&(((((a2==9)||(a2==10))&&(input==4))&&(a16==1))&&(a15==1)))&&(a20==6))&&!(a25==1)))&&(a27==1))){ + a20 = 5; + a9 = 16; + a2 = 9; + a25 = 1; + return -1; + } else if(((a9==17)&&((((((a27==1)&&((a15==1)&&((input==1)&&(a2==9))))&&(a20==6))&&(a25==1))&&(a12==2))&&(a16==1)))){ + a12 = 6; + a2 = 11; + a9 = 16; + return 21; + } else if(((a20==7)&&(((a15==1)&&((((a12==4)&&((a9==17)&&((input==2)&&((a2==11)||(a2==12)))))&&(a27==1))&&!(a25==1)))&&(a16==1)))){ + a9 = 16; + a12 = 2; + a20 = 5; + a2 = 9; + a25 = 1; + return -1; + } else if((((a20==7)&&(!(a25==1)&&((a27==1)&&(((a15==1)&&(((a2==12)&&(input==2))&&(a16==1)))&&(a12==4)))))&&(a9==18))){ + a2 = 9; + a9 = 16; + a12 = 2; + a20 = 5; + a25 = 1; + return -1; + } else if((((((((a20==5)&&((a27==1)&&(((a2==12)||(a2==13))&&(input==3))))&&(a25==1))&&(a9==18))&&(a12==5))&&(a16==1))&&!(a15==1))){ + if((a2==11)){ + a15 = 1; + a9 = 17; + a20 = 7; + a2 = 11; + a12 = 3; + }else{ + a2 = 12; + a12 = 4; + a20 = 6; + a15 = 1; + a9 = 16; + } + return 25; + } else if(((a15==1)&&(((a16==1)&&(((a9==17)&&((a20==7)&&((a27==1)&&(((a2==11)||((a2==9)||(a2==10)))&&(input==2)))))&&(a25==1)))&&(a12==6)))){ + a12 = 2; + a20 = 5; + a2 = 9; + a9 = 16; + return -1; + } else if(((a12==6)&&((((((((input==3)&&((a2==9)||(a2==10)))&&(a25==1))&&(a9==18))&&(a27==1))&&!(a15==1))&&(a16==1))&&(a20==5)))){ + if((a15==1)){ + a12 = 3; + a2 = 12; + a9 = 16; + a15 = 1; + }else{ + a12 = 2; + a2 = 13; + a15 = 1; + a9 = 16; + a25 = 0; + } + return -1; + } else if(((a12==6)&&(((((a9==18)&&((a16==1)&&((((a2==12)||(a2==13))&&(input==6))&&(a15==1))))&&(a27==1))&&(a20==5))&&(a25==1)))){ + a2 = 10; + a25 = 0; + a9 = 17; + return 21; + } else if(((a15==1)&&((a9==16)&&(!(a25==1)&&((a12==4)&&((a20==5)&&((a2==10)&&((a16==1)&&((a27==1)&&(input==6)))))))))){ + a25 = 1; + a2 = 9; + a12 = 2; + return -1; + } else if((((a16==1)&&((a20==5)&&(((a9==16)&&((((((a12==4)&&(a2==12))||((a2==13)&&(a12==4)))||((a2==9)&&(a12==5)))&&(input==6))&&(a25==1)))&&!(a15==1))))&&(a27==1))){ + a15 = 1; + a20 = 6; + a2 = 11; + a9 = 17; + a12 = 5; + return 21; + } else if(((a9==16)&&((a27==1)&&((((a12==2)&&(((a15==1)&&((a16==1)&&(input==5)))&&!(a25==1)))&&(a20==7))&&(a2==13))))){ + a20 = 5; + a2 = 9; + a25 = 1; + return -1; + } else if(((((((((input==3)&&(((a12==4)&&(a2==9))||(((a12==3)&&(a2==12))||((a12==3)&&(a2==13)))))&&(a27==1))&&(a16==1))&&(a15==1))&&!(a25==1))&&(a20==7))&&(a9==16))){ + a25 = 1; + a12 = 2; + a2 = 9; + a20 = 5; + return -1; + } else if(((a15==1)&&(((!(a25==1)&&((a9==18)&&(((a20==7)&&((input==4)&&((a2==12)||(a2==13))))&&(a12==3))))&&(a16==1))&&(a27==1)))){ + a12 = 2; + a25 = 1; + a20 = 5; + a9 = 16; + a2 = 9; + return -1; + } else if(((a2==10)&&(((a27==1)&&(((!(a25==1)&&(((input==2)&&(a9==17))&&(a15==1)))&&(a16==1))&&(a12==3)))&&(a20==5)))){ + a12 = 2; + a2 = 9; + a25 = 1; + a9 = 16; + return -1; + } else if((!(a15==1)&&(((a16==1)&&(((a9==16)&&((a27==1)&&((((a2==12)||((a2==10)||(a2==11)))&&(input==1))&&(a25==1))))&&(a12==2)))&&(a20==5)))){ + a2 = 13; + a15 = 1; + a9 = 18; + a12 = 4; + return 25; + } else if((((((a15==1)&&((((input==1)&&(((a12==3)&&(a2==10))||(((a12==2)&&(a2==13))||((a12==3)&&(a2==9)))))&&!(a25==1))&&(a20==6)))&&(a27==1))&&(a16==1))&&(a9==17))){ + a9 = 16; + a2 = 9; + a25 = 1; + a20 = 5; + a12 = 2; + return -1; + } else if(((a16==1)&&((!(a25==1)&&((((a27==1)&&((input==5)&&((((a2==13)&&(a12==2))||((a2==9)&&(a12==3)))||((a2==10)&&(a12==3)))))&&(a20==5))&&(a9==18)))&&(a15==1)))){ + a12 = 4; + a9 = 17; + a20 = 6; + a2 = 10; + return -1; + } else if((((((a27==1)&&((a20==6)&&(((a12==3)&&((input==6)&&((a2==9)||(a2==10))))&&(a15==1))))&&(a16==1))&&(a9==16))&&(a25==1))){ + a20 = 5; + a2 = 9; + a12 = 2; + return -1; + } else if(((a20==6)&&((a16==1)&&(((a12==4)&&((a27==1)&&((a25==1)&&(((((a2==11)||(a2==12))||(a2==13))&&(input==4))&&(a15==1)))))&&(a9==16))))){ + a2 = 9; + a20 = 5; + a12 = 2; + return -1; + } else if(((((a20==7)&&((a16==1)&&((((((a12==6)&&(a2==10))||(((a12==5)&&(a2==13))||((a12==6)&&(a2==9))))&&(input==1))&&(a25==1))&&(a15==1))))&&(a9==18))&&(a27==1))){ + a2 = 10; + a9 = 16; + a12 = 4; + return 26; + } else if(((a16==1)&&((a12==2)&&(((((((input==5)&&((a2==12)||((a2==10)||(a2==11))))&&!(a15==1))&&(a27==1))&&(a9==16))&&(a25==1))&&(a20==5))))){ + a15 = 1; + a12 = 5; + a2 = 11; + a9 = 18; + return 26; + } else if((!(a25==1)&&((a9==18)&&(((((a20==7)&&((input==6)&&((((a12==5)&&(a2==12))||((a2==13)&&(a12==5)))||((a2==9)&&(a12==6)))))&&(a27==1))&&(a16==1))&&(a15==1))))){ + a2 = 9; + a12 = 2; + a20 = 5; + a9 = 16; + a25 = 1; + return -1; + } else if((((((a12==3)&&((a16==1)&&(!(a25==1)&&((a2==13)&&((input==5)&&(a27==1))))))&&(a9==17))&&(a20==7))&&(a15==1))){ + a12 = 5; + a20 = 6; + a2 = 10; + a9 = 16; + a25 = 1; + return -1; + } else if(((((a12==6)&&((a9==16)&&((((a20==7)&&((input==4)&&((a2==9)||(a2==10))))&&(a27==1))&&(a15==1))))&&(a25==1))&&(a16==1))){ + a2 = 9; + a20 = 5; + a12 = 2; + return -1; + } else if((((a12==5)&&((((a9==17)&&((a2==12)&&((a15==1)&&((input==2)&&(a27==1)))))&&(a25==1))&&(a20==6)))&&(a16==1))){ + a9 = 16; + a20 = 5; + a2 = 9; + a12 = 2; + return -1; + } else if(((a20==5)&&((a15==1)&&((a9==18)&&(!(a25==1)&&(((a27==1)&&((input==1)&&((((a12==2)&&(a2==13))||((a12==3)&&(a2==9)))||((a12==3)&&(a2==10)))))&&(a16==1))))))){ + a12 = 3; + a9 = 17; + a2 = 9; + a20 = 6; + return -1; + } else if(((a20==5)&&((a16==1)&&((a15==1)&&((a9==16)&&((a27==1)&&(((input==1)&&(((a2==9)&&(a12==4))||(((a12==3)&&(a2==12))||((a12==3)&&(a2==13)))))&&!(a25==1)))))))){ + a12 = 2; + a25 = 1; + a2 = 9; + return -1; + } else if(((((a9==18)&&(((((input==5)&&(((a2==13)&&(a12==2))||((a12==3)&&(a2==9))))&&(a25==1))&&(a15==1))&&(a20==7)))&&(a16==1))&&(a27==1))){ + a12 = 4; + a20 = 5; + a25 = 0; + a2 = 13; + return 21; + } else if(((a25==1)&&((a9==18)&&((a20==7)&&(((a27==1)&&((((((a2==12)&&(a12==4))||((a12==4)&&(a2==13)))||((a12==5)&&(a2==9)))&&(input==3))&&(a16==1)))&&(a15==1)))))){ + a12 = 2; + a9 = 16; + a2 = 9; + a20 = 5; + return -1; + } else if(((a15==1)&&(((!(a25==1)&&((a9==16)&&((((input==4)&&(a12==2))&&(a27==1))&&(a16==1))))&&(a20==6))&&(a2==12)))){ + a9 = 17; + a12 = 5; + a25 = 1; + return -1; + } else if(((a20==5)&&(!(a25==1)&&(((a15==1)&&((a16==1)&&((a9==16)&&(((((a2==12)&&(a12==4))||((a12==4)&&(a2==13)))||((a2==9)&&(a12==5)))&&(input==2)))))&&(a27==1))))){ + a25 = 1; + a20 = 6; + a2 = 10; + a12 = 2; + return 24; + } else if((!(a15==1)&&(((a27==1)&&((a20==5)&&(((a16==1)&&((((a12==5)&&(a2==9))||(((a2==12)&&(a12==4))||((a12==4)&&(a2==13))))&&(input==3)))&&(a25==1))))&&(a9==17)))){ + a2 = 12; + a12 = 3; + a15 = 1; + a9 = 16; + return -1; + } else if((!(a25==1)&&(((a15==1)&&(((a27==1)&&((a12==3)&&((a16==1)&&(((a2==12)||(a2==13))&&(input==6)))))&&(a20==6)))&&(a9==18)))){ + a9 = 16; + a2 = 9; + a20 = 5; + a25 = 1; + a12 = 2; + return -1; + } else if(((a9==17)&&((((a12==4)&&((((a16==1)&&(((a2==10)||(a2==11))&&(input==2)))&&(a25==1))&&!(a15==1)))&&(a27==1))&&(a20==5)))){ + a2 = 11; + a15 = 1; + a9 = 16; + return -1; + } else if((((a2==13)&&((a20==6)&&((((a16==1)&&(((a15==1)&&(input==5))&&(a25==1)))&&(a9==16))&&(a27==1))))&&(a12==2))){ + a20 = 5; + a2 = 9; + return -1; + } else if(((((a12==6)&&((a20==7)&&((a15==1)&&((a16==1)&&((((a2==12)||(a2==13))&&(input==6))&&(a27==1))))))&&(a25==1))&&(a9==18))){ + a20 = 6; + a9 = 16; + a2 = 11; + a12 = 4; + return -1; + } else if((((!(a15==1)&&((a9==18)&&((!(a25==1)&&((((a2==13)&&(a12==3))||((a2==9)&&(a12==4)))&&(input==4)))&&(a16==1))))&&(a20==5))&&(a27==1))){ + a9 = 16; + a2 = 12; + a25 = 1; + a12 = 5; + a15 = 1; + return -1; + } else if((((((a12==6)&&(((((((a2==11)||(a2==12))||(a2==13))&&(input==5))&&(a15==1))&&(a20==7))&&(a16==1)))&&(a9==16))&&(a27==1))&&!(a25==1))){ + a2 = 9; + a20 = 5; + a25 = 1; + a12 = 2; + return -1; + } else if(((a20==7)&&((a9==16)&&((a25==1)&&(((a27==1)&&(((input==3)&&(((a2==13)&&(a12==2))||((a2==9)&&(a12==3))))&&(a15==1)))&&(a16==1)))))){ + a2 = 9; + a20 = 5; + a12 = 2; + return -1; + } else if(((a12==2)&&((((((a25==1)&&(((input==6)&&(a20==7))&&(a16==1)))&&(a15==1))&&(a2==9))&&(a9==17))&&(a27==1)))){ + a2 = 11; + a20 = 5; + return -1; + } else if(((a9==17)&&((a27==1)&&((((a16==1)&&(((a25==1)&&((input==1)&&((a2==10)||(a2==11))))&&!(a15==1)))&&(a20==5))&&(a12==4))))){ + a15 = 1; + a9 = 18; + a2 = 9; + return -1; + } else if((((a16==1)&&(!(a15==1)&&(((a9==16)&&((a12==5)&&(!(a25==1)&&(((a2==12)||(a2==13))&&(input==3)))))&&(a20==5))))&&(a27==1))){ + if((a20==5)){ + a15 = 1; + a25 = 1; + a12 = 6; + a20 = 6; + a2 = 11; + }else{ + a25 = 1; + a9 = 18; + a2 = 11; + a12 = 2; + a15 = 1; + } + return -1; + } else if(((a27==1)&&(((!(a25==1)&&((a20==5)&&(((a2==10)&&((a12==4)&&(input==2)))&&(a9==18))))&&(a16==1))&&!(a15==1)))){ + a12 = 6; + a9 = 17; + a2 = 13; + a25 = 1; + return -1; + } else if((((((((a25==1)&&(((((a2==13)&&(a12==2))||((a12==3)&&(a2==9)))||((a12==3)&&(a2==10)))&&(input==1)))&&(a16==1))&&(a27==1))&&(a20==7))&&(a15==1))&&(a9==17))){ + a12 = 3; + a2 = 12; + a20 = 5; + return -1; + } else if(((((a15==1)&&(((a16==1)&&((((((a12==2)&&(a2==12))||((a12==2)&&(a2==13)))||((a2==9)&&(a12==3)))&&(input==1))&&(a27==1)))&&(a20==5)))&&!(a25==1))&&(a9==17))){ + a12 = 6; + a20 = 7; + a2 = 12; + a25 = 1; + return 26; + } else if(((a25==1)&&(((a27==1)&&((a16==1)&&((a20==5)&&((a12==2)&&(((input==4)&&((a2==12)||(a2==13)))&&!(a15==1))))))&&(a9==18)))){ + a2 = 9; + a25 = 0; + a9 = 16; + return 21; + } else if((!(a15==1)&&((a16==1)&&((((((a2==10)&&((a27==1)&&(input==4)))&&(a9==18))&&(a20==5))&&(a12==4))&&!(a25==1))))){ + a2 = 13; + a9 = 16; + a12 = 5; + a25 = 1; + a15 = 1; + return -1; + } else if(((((a15==1)&&(!(a25==1)&&((a9==16)&&((a27==1)&&((((a12==3)&&(a2==13))||((a2==9)&&(a12==4)))&&(input==4))))))&&(a20==6))&&(a16==1))){ + a12 = 2; + a2 = 9; + a25 = 1; + a20 = 5; + return -1; + } else if((((((((((input==1)&&((a2==11)||(a2==12)))&&(a20==6))&&(a12==5))&&(a25==1))&&(a15==1))&&(a27==1))&&(a9==18))&&(a16==1))){ + if((a20==5)){ + a15 = 0; + a9 = 16; + a2 = 11; + a12 = 4; + a20 = 5; + }else{ + a2 = 12; + a9 = 16; + } + return 21; + } else if(((a12==2)&&((a16==1)&&((a2==12)&&((((a25==1)&&((a15==1)&&((input==1)&&(a9==18))))&&(a27==1))&&(a20==6)))))){ + return -1; + } else if(((a16==1)&&((a12==4)&&(!(a25==1)&&((a27==1)&&((a15==1)&&((a9==17)&&(((input==3)&&((a2==9)||(a2==10)))&&(a20==6))))))))){ + a12 = 2; + a20 = 5; + a25 = 1; + a2 = 9; + a9 = 16; + return -1; + } else if(((a20==7)&&((a12==3)&&((a16==1)&&((a15==1)&&((a27==1)&&(((a9==17)&&((input==1)&&(((a2==10)||(a2==11))||(a2==12))))&&!(a25==1)))))))){ + a20 = 6; + a25 = 1; + a12 = 5; + a9 = 16; + a2 = 10; + return 23; + } else if((((((a27==1)&&((((a12==3)&&((input==4)&&((a2==9)||(a2==10))))&&(a16==1))&&(a9==16)))&&(a25==1))&&(a15==1))&&(a20==6))){ + a20 = 5; + a2 = 9; + a12 = 2; + return -1; + } else if(((a25==1)&&(((a20==6)&&((((a2==13)&&((a16==1)&&((a9==17)&&(input==5))))&&(a12==6))&&(a27==1)))&&(a15==1)))){ + a12 = 2; + a2 = 9; + a20 = 5; + a9 = 16; + return -1; + } else if((!(a15==1)&&((a12==2)&&(((((((input==1)&&((a2==12)||(a2==13)))&&(a20==5))&&(a9==18))&&(a25==1))&&(a27==1))&&(a16==1))))){ + a12 = 5; + a9 = 17; + a2 = 9; + return 26; + } else if(((((!(a15==1)&&(((a9==18)&&((((a2==9)||(a2==10))&&(input==2))&&(a25==1)))&&(a12==6)))&&(a27==1))&&(a16==1))&&(a20==5))){ + a15 = 1; + a9 = 16; + a2 = 12; + return 25; + } else if(((((a15==1)&&(((a27==1)&&((a12==3)&&(!(a25==1)&&((input==4)&&((a2==13)||((a2==11)||(a2==12)))))))&&(a9==17)))&&(a20==6))&&(a16==1))){ + a9 = 16; + a12 = 2; + a25 = 1; + a20 = 5; + a2 = 9; + return -1; + } else if(((a16==1)&&(((a20==6)&&(!(a25==1)&&((a27==1)&&(((((a2==11)||(a2==12))&&(input==1))&&(a9==17))&&(a15==1)))))&&(a12==6)))){ + a2 = 10; + a12 = 3; + a20 = 7; + a25 = 1; + a9 = 16; + return 21; + } else if(((a20==7)&&((((a27==1)&&((a12==2)&&(((a9==17)&&((input==5)&&((a2==12)||(a2==13))))&&!(a25==1))))&&(a16==1))&&(a15==1)))){ + a25 = 1; + a20 = 5; + a9 = 16; + a2 = 9; + return -1; + } else if((((a12==5)&&(((a27==1)&&((a15==1)&&(((((a2==11)||(a2==12))&&(input==2))&&(a16==1))&&(a20==7))))&&(a9==17)))&&!(a25==1))){ + a12 = 3; + a25 = 1; + a9 = 18; + a20 = 6; + a2 = 12; + return 25; + } else if((((a9==17)&&((a20==6)&&((((a12==4)&&((a15==1)&&((input==2)&&((a2==11)||(a2==12)))))&&(a25==1))&&(a16==1))))&&(a27==1))){ + a9 = 16; + a12 = 2; + a20 = 5; + a2 = 9; + return -1; + } else if(((((a25==1)&&((a12==4)&&((a16==1)&&((((a15==1)&&(input==5))&&(a9==18))&&(a2==11)))))&&(a27==1))&&(a20==7))){ + a2 = 9; + a9 = 16; + a12 = 2; + a20 = 5; + return -1; + } else if((((a16==1)&&(((a25==1)&&(((a27==1)&&(((input==5)&&((a2==10)||(a2==11)))&&(a20==5)))&&(a12==4)))&&(a9==18)))&&!(a15==1))){ + a12 = 2; + a25 = 0; + a2 = 13; + a15 = 1; + return -1; + } else if((((a27==1)&&((((a20==5)&&((!(a15==1)&&(((a2==10)||(a2==11))&&(input==5)))&&(a9==16)))&&(a12==6))&&(a16==1)))&&(a25==1))){ + a2 = 12; + a15 = 1; + a12 = 3; + a9 = 17; + return -1; + } else if(((a25==1)&&((((((a9==18)&&((((a2==12)||(a2==13))&&(input==2))&&(a20==5)))&&(a27==1))&&(a16==1))&&(a12==6))&&(a15==1)))){ + a2 = 9; + a12 = 2; + a9 = 16; + return -1; + } else if((((a9==16)&&(((a16==1)&&(!(a25==1)&&((a12==5)&&(!(a15==1)&&((a20==5)&&(input==1))))))&&(a27==1)))&&(a2==11))){ + if((a25==1)){ + a9 = 18; + a12 = 3; + }else{ + a15 = 1; + a12 = 6; + a25 = 1; + } + return -1; + } else if(((a20==5)&&((a27==1)&&(!(a15==1)&&(!(a25==1)&&(((a16==1)&&((input==6)&&(((a2==13)&&(a12==5))||((a12==6)&&(a2==9)))))&&(a9==18))))))){ + a2 = 10; + a25 = 1; + a15 = 1; + a9 = 17; + a12 = 3; + return 23; + } else if((((a12==3)&&((a16==1)&&((((a27==1)&&((a20==6)&&((input==3)&&((a2==11)||((a2==9)||(a2==10))))))&&(a9==18))&&!(a25==1))))&&(a15==1))){ + a9 = 16; + a12 = 2; + a20 = 5; + a25 = 1; + a2 = 9; + return -1; + } else if(((((a20==5)&&(!(a25==1)&&((((a15==1)&&((input==3)&&(((a2==10)||(a2==11))||(a2==12))))&&(a16==1))&&(a12==5))))&&(a27==1))&&(a9==16))){ + a2 = 9; + a25 = 1; + a12 = 2; + return -1; + } else if(((((a15==1)&&((((a20==5)&&((a27==1)&&((a2==10)&&(input==4))))&&!(a25==1))&&(a16==1)))&&(a12==3))&&(a9==17))){ + a25 = 1; + a20 = 6; + a2 = 12; + a12 = 5; + return 21; + } else if(((((a12==4)&&(((((a20==5)&&((input==4)&&((a2==10)||(a2==11))))&&(a25==1))&&!(a15==1))&&(a27==1)))&&(a9==18))&&(a16==1))){ + a2 = 11; + a12 = 5; + a15 = 1; + a9 = 17; + return -1; + } else if((((((a15==1)&&((a20==7)&&(((a12==5)&&((input==4)&&(a27==1)))&&(a16==1))))&&(a9==16))&&(a2==11))&&(a25==1))){ + a20 = 5; + a9 = 17; + a2 = 9; + a12 = 6; + return -1; + } else if((((a16==1)&&(((!(a25==1)&&(((a20==7)&&(((a2==12)||(a2==13))&&(input==2)))&&(a9==17)))&&(a27==1))&&(a15==1)))&&(a12==2))){ + a9 = 16; + a20 = 6; + a12 = 6; + a2 = 9; + a25 = 1; + return 21; + } else if((((a20==5)&&((a27==1)&&((a12==3)&&((a2==11)&&(((a25==1)&&((input==3)&&!(a15==1)))&&(a16==1))))))&&(a9==18))){ + if((a12==3)){ + a9 = 16; + a12 = 4; + a15 = 1; + a2 = 9; + }else{ + a15 = 1; + a12 = 2; + a9 = 16; + a2 = 10; + } + return -1; + } else if((!(a25==1)&&((a27==1)&&((a9==16)&&((a20==6)&&((a16==1)&&((a2==12)&&(((a15==1)&&(input==5))&&(a12==2))))))))){ + a2 = 11; + return -1; + } else if(((((a16==1)&&((((a20==7)&&(((input==4)&&(((a2==11)||(a2==12))||(a2==13)))&&(a27==1)))&&(a15==1))&&(a9==16)))&&(a25==1))&&(a12==6))){ + a12 = 3; + a2 = 12; + a20 = 5; + a9 = 18; + return -1; + } else if((((a16==1)&&(((a15==1)&&(((a27==1)&&(((input==6)&&(((a2==9)||(a2==10))||(a2==11)))&&(a12==2)))&&!(a25==1)))&&(a9==16)))&&(a20==5))){ + a2 = 9; + a25 = 1; + return -1; + } else if(((((a27==1)&&((a16==1)&&((a12==5)&&((a2==9)&&((!(a15==1)&&(input==4))&&!(a25==1))))))&&(a20==5))&&(a9==17))){ + if((a20==6)){ + a9 = 18; + a25 = 1; + a15 = 1; + a12 = 2; + }else{ + a25 = 1; + a15 = 1; + a12 = 3; + a9 = 16; + } + return -1; + } else if(((a15==1)&&((a16==1)&&(((((a12==4)&&((a9==17)&&(((a2==11)||(a2==12))&&(input==6))))&&(a27==1))&&!(a25==1))&&(a20==7))))){ + if((a16==1)){ + a9 = 16; + a20 = 5; + a15 = 0; + a2 = 11; + a25 = 1; + }else{ + a9 = 16; + a2 = 13; + a20 = 6; + a12 = 5; + a25 = 1; + } + return -1; + } else if((((a2==11)&&((((a15==1)&&((((a16==1)&&(input==2))&&(a27==1))&&(a12==5)))&&(a9==17))&&(a20==5)))&&!(a25==1))){ + a12 = 2; + a25 = 1; + a2 = 9; + a9 = 16; + return -1; + } else if(((a27==1)&&(((((!(a15==1)&&((((a2==13)||((a2==11)||(a2==12)))&&(input==6))&&(a20==5)))&&(a12==6))&&(a9==18))&&(a16==1))&&(a25==1)))){ + a9 = 17; + a15 = 1; + a2 = 13; + a12 = 4; + return 21; + } else if(((a9==18)&&(((!(a25==1)&&((((a27==1)&&(((a2==11)||(a2==12))&&(input==4)))&&(a20==6))&&(a15==1)))&&(a12==6))&&(a16==1)))){ + a25 = 1; + a9 = 16; + a2 = 9; + a12 = 2; + a20 = 5; + return -1; + } else if(((a9==17)&&(((a16==1)&&((((a20==7)&&((input==5)&&((((a12==3)&&(a2==12))||((a2==13)&&(a12==3)))||((a2==9)&&(a12==4)))))&&(a27==1))&&(a15==1)))&&(a25==1)))){ + a2 = 12; + a12 = 5; + return 21; + } else if(((a27==1)&&(((a15==1)&&((a9==17)&&(((((input==6)&&(a12==5))&&(a2==12))&&(a25==1))&&(a20==6))))&&(a16==1)))){ + if((a20==5)){ + a20 = 7; + a2 = 13; + }else{ + a9 = 16; + a12 = 6; + a2 = 9; + } + return 23; + } else if(((((a9==18)&&((a20==5)&&(((a25==1)&&(((a2==13)&&(input==1))&&(a12==3)))&&(a16==1))))&&(a27==1))&&!(a15==1))){ + a2 = 10; + a9 = 17; + a12 = 5; + a15 = 1; + a20 = 7; + return -1; + } else if((((a20==7)&&((a15==1)&&((a27==1)&&((a16==1)&&((input==2)&&((((a2==13)&&(a9==17))&&(a12==6))||(((a9==18)&&(a2==9))&&(a12==2))))))))&&(a25==1))){ + a12 = 2; + a2 = 9; + a20 = 5; + a9 = 16; + return -1; + } else if(((((a9==18)&&((a27==1)&&((a25==1)&&((a12==4)&&((((a2==10)||(a2==11))&&(input==1))&&(a20==5))))))&&!(a15==1))&&(a16==1))){ + if((a25==1)){ + a2 = 11; + a9 = 16; + a12 = 3; + a20 = 6; + a15 = 1; + }else{ + a12 = 5; + a25 = 0; + a15 = 1; + a2 = 13; + a20 = 6; + a9 = 16; + } + return 21; + } else if(((a12==2)&&((a9==16)&&(!(a25==1)&&((a20==5)&&(((a15==1)&&((a16==1)&&((input==1)&&((a2==12)||(a2==13)))))&&(a27==1))))))){ + if((a27==1)){ + a15 = 0; + a2 = 9; + a25 = 1; + }else{ + a9 = 18; + a2 = 13; + } + return 21; + } else if(((((((a16==1)&&((((input==4)&&(a27==1))&&(a20==5))&&(a12==2)))&&(a25==1))&&(a2==13))&&!(a15==1))&&(a9==17))){ + a20 = 6; + a15 = 1; + return -1; + } else if(((a16==1)&&((a15==1)&&((((a20==7)&&((a25==1)&&((input==4)&&((((a12==4)&&(a2==12))||((a12==4)&&(a2==13)))||((a2==9)&&(a12==5))))))&&(a27==1))&&(a9==18))))){ + a2 = 9; + a20 = 5; + a12 = 2; + a9 = 16; + return -1; + } else if((((((a27==1)&&((a9==18)&&((!(a25==1)&&((input==2)&&((a2==10)||(a2==11))))&&(a16==1))))&&(a20==5))&&(a12==4))&&(a15==1))){ + a12 = 2; + a9 = 16; + a25 = 1; + a2 = 9; + return -1; + } else if((((a27==1)&&((((((input==5)&&(((a12==2)&&(a2==13))||((a12==3)&&(a2==9))))&&(a25==1))&&(a15==1))&&(a9==17))&&(a20==6)))&&(a16==1))){ + if((a2==9)){ + a2 = 12; + a12 = 3; + a9 = 18; + a20 = 7; + }else{ + a2 = 13; + a12 = 3; + a9 = 16; + } + return -1; + } else if(((a12==4)&&((a20==7)&&((a16==1)&&((((a27==1)&&(((input==1)&&(a9==16))&&(a2==10)))&&(a15==1))&&(a25==1)))))){ + a9 = 17; + a2 = 13; + a12 = 2; + return -1; + } else if((((a15==1)&&(((a16==1)&&((a25==1)&&((((input==3)&&((a2==9)||(a2==10)))&&(a9==16))&&(a20==7))))&&(a27==1)))&&(a12==6))){ + a12 = 2; + a2 = 9; + a20 = 5; + return -1; + } else if(((a20==6)&&((a12==6)&&((((((((a2==11)||(a2==12))&&(input==2))&&(a16==1))&&!(a25==1))&&(a27==1))&&(a15==1))&&(a9==17))))){ + a9 = 16; + a2 = 9; + a12 = 2; + a20 = 5; + a25 = 1; + return -1; + } else if((((!(a15==1)&&(((a9==17)&&((((input==1)&&(a16==1))&&(a25==1))&&(a12==3)))&&(a2==12)))&&(a20==5))&&(a27==1))){ + if((a9==17)){ + a2 = 11; + a9 = 16; + a15 = 1; + a12 = 6; + }else{ + a9 = 18; + a25 = 0; + a12 = 5; + } + return -1; + } return calculate_output7(input); + } + + int calculate_output7(int input) { + if(((a9==18)&&(((a25==1)&&((a15==1)&&((((((a2==13)&&(a12==2))||((a2==9)&&(a12==3)))&&(input==6))&&(a20==7))&&(a27==1))))&&(a16==1)))){ + a2 = 9; + a12 = 2; + a9 = 16; + a20 = 5; + return -1; + } else if(((a27==1)&&((a12==4)&&((a16==1)&&(((a20==7)&&((a9==16)&&(((a25==1)&&(input==2))&&(a15==1))))&&(a2==9)))))){ + a9 = 18; + return 23; + } else if((((a15==1)&&((a12==5)&&((!(a25==1)&&((((input==1)&&((a2==9)||(a2==10)))&&(a16==1))&&(a20==6)))&&(a9==16))))&&(a27==1))){ + a2 = 12; + a12 = 3; + a25 = 1; + a9 = 18; + return -1; + } else if(((a12==3)&&((a20==5)&&(((a16==1)&&((a9==16)&&((a27==1)&&(((input==3)&&((a2==10)||(a2==11)))&&(a15==1)))))&&!(a25==1))))){ + a2 = 9; + a12 = 2; + a25 = 1; + return -1; + } else if(((a12==2)&&((((a20==5)&&((a27==1)&&(((a2==13)&&((input==3)&&(a9==18)))&&(a16==1))))&&!(a15==1))&&!(a25==1)))){ + a15 = 1; + a2 = 12; + a9 = 16; + a12 = 3; + a25 = 1; + return -1; + } else if((((((((a12==2)&&((a20==5)&&((input==6)&&((a2==11)||(a2==12)))))&&(a25==1))&&!(a15==1))&&(a27==1))&&(a9==17))&&(a16==1))){ + if((a12==3)){ + a25 = 0; + a9 = 18; + a2 = 9; + a15 = 1; + a12 = 5; + a20 = 6; + }else{ + a2 = 11; + a12 = 3; + a15 = 1; + a9 = 16; + } + return -1; + } else if((((a15==1)&&(((a25==1)&&(((a9==17)&&((a16==1)&&((a20==7)&&(input==1))))&&(a27==1)))&&(a2==13)))&&(a12==4))){ + a12 = 5; + a2 = 10; + a20 = 5; + a9 = 18; + return 25; + } else if((!(a15==1)&&(!(a25==1)&&(((a20==5)&&(((input==1)&&(((a12==6)&&((a2==13)&&(a9==16)))||(((a2==9)&&(a9==17))&&(a12==2))))&&(a16==1)))&&(a27==1))))){ + if((a12==2)){ + a15 = 1; + a9 = 18; + a12 = 6; + a2 = 11; + a25 = 1; + }else{ + a25 = 1; + a9 = 17; + a2 = 9; + a15 = 1; + a12 = 4; + } + return -1; + } else if(((((a12==4)&&((!(a25==1)&&((((((a2==9)||(a2==10))||(a2==11))&&(input==2))&&(a27==1))&&(a16==1)))&&(a15==1)))&&(a9==18))&&(a20==7))){ + a9 = 16; + a25 = 1; + a20 = 5; + a12 = 2; + a2 = 9; + return -1; + } else if(((!(a25==1)&&(((a27==1)&&((((((a2==9)||(a2==10))&&(input==4))&&(a16==1))&&(a12==2))&&(a9==16)))&&!(a15==1)))&&(a20==5))){ + a12 = 6; + a9 = 17; + a15 = 1; + a2 = 10; + a20 = 6; + return -1; + } else if(((((a15==1)&&((((a27==1)&&((a16==1)&&(((a2==9)||(a2==10))&&(input==5))))&&(a12==5))&&!(a25==1)))&&(a9==16))&&(a20==6))){ + a2 = 9; + a20 = 5; + a12 = 2; + a25 = 1; + return -1; + } else if((((a20==5)&&((a16==1)&&(((((input==1)&&((((a2==13)&&(a12==3))||((a2==9)&&(a12==4)))||((a12==4)&&(a2==10))))&&(a9==17))&&(a15==1))&&!(a25==1))))&&(a27==1))){ + a2 = 13; + a20 = 6; + a25 = 1; + a12 = 2; + a9 = 18; + return 21; + } else if((!(a25==1)&&((a27==1)&&((a16==1)&&((a15==1)&&(((((((a2==13)&&(a12==2))||((a2==9)&&(a12==3)))||((a2==10)&&(a12==3)))&&(input==4))&&(a20==6))&&(a9==17))))))){ + a12 = 2; + a9 = 16; + a20 = 5; + a25 = 1; + a2 = 9; + return -1; + } else if((((a15==1)&&((a2==11)&&((((((input==1)&&(a16==1))&&(a12==5))&&(a25==1))&&(a27==1))&&(a20==7))))&&(a9==16))){ + a9 = 17; + a20 = 5; + a2 = 10; + return -1; + } else if(((a15==1)&&((a27==1)&&(!(a25==1)&&(((a9==18)&&((a16==1)&&(((input==2)&&((a2==9)||(a2==10)))&&(a20==6))))&&(a12==6)))))){ + a9 = 16; + a2 = 9; + a12 = 5; + return 26; + } else if(((a25==1)&&((((((a20==5)&&(((a12==5)&&(input==2))&&(a2==11)))&&(a27==1))&&(a15==1))&&(a16==1))&&(a9==18)))){ + a25 = 0; + a2 = 13; + a9 = 16; + return 26; + } else if((((a27==1)&&((a16==1)&&((((a25==1)&&((input==6)&&((((a12==5)&&(a2==13))||((a2==9)&&(a12==6)))||((a2==10)&&(a12==6)))))&&(a15==1))&&(a9==17))))&&(a20==6))){ + if((a2==13)){ + a12 = 3; + a9 = 16; + a20 = 5; + a15 = 0; + a2 = 11; + }else{ + a9 = 18; + a20 = 7; + a12 = 6; + a2 = 12; + } + return -1; + } else if((((a16==1)&&(!(a25==1)&&((a27==1)&&((((a20==5)&&((a12==6)&&(input==1)))&&(a9==16))&&(a15==1)))))&&(a2==13))){ + a25 = 1; + a20 = 6; + return 25; + } else if(((((((a9==16)&&((a2==11)&&((a16==1)&&((a20==7)&&(input==6)))))&&(a27==1))&&(a25==1))&&(a15==1))&&(a12==2))){ + a2 = 9; + a20 = 5; + return -1; + } else if(((!(a25==1)&&((a27==1)&&(((((a16==1)&&(((a2==11)||(a2==12))&&(input==4)))&&(a15==1))&&(a20==6))&&(a9==17))))&&(a12==6))){ + a20 = 7; + a12 = 4; + a25 = 1; + a2 = 12; + return 25; + } else if(((a9==16)&&(!(a25==1)&&((a27==1)&&(((a16==1)&&((((input==4)&&((a2==11)||(a2==12)))&&(a15==1))&&(a20==6)))&&(a12==5)))))){ + a12 = 3; + a2 = 11; + return -1; + } else if((((((a16==1)&&(((a27==1)&&((input==4)&&(((a2==10)&&(a12==3))||(((a2==13)&&(a12==2))||((a12==3)&&(a2==9))))))&&(a20==5)))&&(a9==17))&&!(a25==1))&&!(a15==1))){ + a9 = 18; + a15 = 1; + a12 = 3; + a2 = 9; + a25 = 1; + return -1; + } else if((((a25==1)&&((a27==1)&&((((((a2==9)&&(input==2))&&(a9==16))&&(a16==1))&&(a20==5))&&(a12==6))))&&!(a15==1))){ + if((a20==6)){ + a12 = 3; + a9 = 17; + a15 = 1; + a2 = 12; + }else{ + a15 = 1; + a2 = 10; + a9 = 17; + a12 = 5; + } + return -1; + } else if(((a9==18)&&((a12==4)&&((a2==11)&&((a15==1)&&(!(a25==1)&&((a16==1)&&((a20==6)&&((a27==1)&&(input==2)))))))))){ + a12 = 5; + a2 = 10; + a9 = 16; + return 26; + } else if(((a20==6)&&((a2==13)&&(((((a27==1)&&((a25==1)&&((input==4)&&(a16==1))))&&(a12==6))&&(a15==1))&&(a9==17))))){ + return 25; + } else if(((a9==17)&&((a25==1)&&((a12==4)&&((((!(a15==1)&&((input==6)&&((a2==10)||(a2==11))))&&(a27==1))&&(a16==1))&&(a20==5)))))){ + if((a15==1)){ + a15 = 1; + a12 = 3; + a25 = 0; + a20 = 7; + a2 = 12; + }else{ + a20 = 6; + a2 = 9; + a9 = 16; + a12 = 3; + a15 = 1; + } + return -1; + } else if((!(a15==1)&&((a2==9)&&(((a20==5)&&(((a16==1)&&((a9==17)&&(!(a25==1)&&(input==4))))&&(a12==4)))&&(a27==1))))){ + if((a12==5)){ + a12 = 3; + a2 = 12; + a9 = 18; + }else{ + a2 = 12; + a12 = 2; + } + return 21; + } else if(((a9==16)&&((a16==1)&&((!(a25==1)&&(((((a12==6)&&(input==5))&&(a2==10))&&(a27==1))&&(a15==1)))&&(a20==6))))){ + a2 = 11; + a12 = 5; + a25 = 1; + a9 = 17; + return -1; + } else if(((a15==1)&&(!(a25==1)&&(((a2==12)&&((a16==1)&&((a27==1)&&(((input==1)&&(a9==18))&&(a12==4)))))&&(a20==7))))){ + a20 = 6; + a25 = 1; + a12 = 3; + return -1; + } else if(((a12==4)&&((a9==16)&&(((a20==6)&&(((((a16==1)&&(input==1))&&!(a25==1))&&(a15==1))&&(a2==11)))&&(a27==1))))){ + a25 = 1; + a2 = 9; + a20 = 5; + a12 = 2; + return -1; + } else if((!(a25==1)&&(((((a16==1)&&(((a9==17)&&((input==3)&&((a2==11)||(a2==12))))&&(a15==1)))&&(a20==7))&&(a12==4))&&(a27==1)))){ + if((a15==1)){ + a2 = 12; + }else{ + a2 = 13; + a12 = 3; + a20 = 6; + a25 = 1; + } + return -1; + } else if(((a16==1)&&(((a15==1)&&(((a25==1)&&(((((a2==10)&&(a12==5))||(((a2==13)&&(a12==4))||((a2==9)&&(a12==5))))&&(input==3))&&(a27==1)))&&(a20==7)))&&(a9==16)))){ + a12 = 5; + a9 = 17; + a20 = 5; + a2 = 9; + return -1; + } else if(((a20==7)&&((((a27==1)&&((a16==1)&&(((input==1)&&(((a2==13)&&(a12==5))||((a12==6)&&(a2==9))))&&(a15==1))))&&(a9==16))&&!(a25==1)))){ + a25 = 1; + a2 = 9; + a12 = 2; + a20 = 5; + return -1; + } else if((((!(a25==1)&&((a12==6)&&((a2==10)&&(((a20==7)&&((input==3)&&(a15==1)))&&(a9==16)))))&&(a27==1))&&(a16==1))){ + a12 = 2; + a25 = 1; + a20 = 5; + a2 = 9; + return -1; + } else if(((a27==1)&&((a12==5)&&(((a15==1)&&((a20==7)&&(((a9==16)&&((((a2==10)||(a2==11))||(a2==12))&&(input==2)))&&!(a25==1))))&&(a16==1))))){ + a12 = 2; + a2 = 9; + a25 = 1; + a20 = 5; + return -1; + } else if((((((a20==7)&&((a27==1)&&((((((a12==5)&&(a2==12))||((a2==13)&&(a12==5)))||((a2==9)&&(a12==6)))&&(input==4))&&!(a25==1))))&&(a9==18))&&(a16==1))&&(a15==1))){ + a12 = 2; + a9 = 16; + a20 = 5; + a2 = 9; + a25 = 1; + return -1; + } else if((((!(a25==1)&&((a16==1)&&(((((input==4)&&((a2==9)||(a2==10)))&&(a12==6))&&(a27==1))&&(a20==6))))&&(a15==1))&&(a9==17))){ + a2 = 13; + a25 = 1; + return 21; + } else if((((((a12==5)&&((a20==7)&&(((a25==1)&&((input==2)&&((a2==10)||(a2==11))))&&(a9==17))))&&(a15==1))&&(a16==1))&&(a27==1))){ + a12 = 6; + a2 = 11; + a20 = 6; + return 23; + } else if(((a12==6)&&((a15==1)&&((a25==1)&&((a9==17)&&(((a27==1)&&((a16==1)&&(((a2==11)||((a2==9)||(a2==10)))&&(input==5))))&&(a20==7))))))){ + a9 = 16; + a20 = 5; + a2 = 9; + a12 = 2; + return -1; + } else if(((((a25==1)&&((a16==1)&&((a20==7)&&(((input==3)&&((((a12==2)&&(a2==13))||((a2==9)&&(a12==3)))||((a12==3)&&(a2==10))))&&(a9==17)))))&&(a27==1))&&(a15==1))){ + a12 = 4; + a2 = 13; + a9 = 16; + a20 = 5; + return -1; + } else if((((a25==1)&&((a2==12)&&(((a27==1)&&((a20==6)&&(((a15==1)&&(input==5))&&(a12==2))))&&(a16==1))))&&(a9==16))){ + a12 = 6; + a9 = 18; + a2 = 10; + a25 = 0; + return -1; + } else if(((a20==5)&&((a16==1)&&(((a15==1)&&((a12==2)&&((a27==1)&&(!(a25==1)&&((input==2)&&(((a2==9)||(a2==10))||(a2==11)))))))&&(a9==17))))){ + a9 = 16; + a2 = 9; + a25 = 1; + return -1; + } else if((((a20==5)&&(((a16==1)&&((a12==6)&&((a9==16)&&((((a2==10)||(a2==11))&&(input==2))&&!(a15==1)))))&&(a25==1)))&&(a27==1))){ + a9 = 17; + a12 = 3; + a2 = 9; + a20 = 6; + a15 = 1; + return 21; + } else if(((a9==16)&&((a15==1)&&(((((a27==1)&&((a25==1)&&((input==5)&&((a2==10)||(a2==11)))))&&(a12==3))&&(a16==1))&&(a20==7))))){ + a2 = 9; + a12 = 2; + a20 = 5; + return -1; + } else if((((a2==11)&&((a20==5)&&((!(a15==1)&&((a16==1)&&((a9==16)&&((a12==5)&&(input==4)))))&&(a27==1))))&&!(a25==1))){ + if((a12==6)){ + a25 = 1; + a15 = 1; + a2 = 13; + }else{ + a9 = 18; + a12 = 4; + a2 = 10; + } + return 23; + } else if(((a20==5)&&((a25==1)&&((a12==2)&&((a27==1)&&((a16==1)&&(((a9==17)&&(((a2==11)||(a2==12))&&(input==4)))&&!(a15==1)))))))){ + a25 = 0; + a12 = 6; + a2 = 12; + return -1; + } else if((((((a25==1)&&(((((input==2)&&!(a15==1))&&(a2==13))&&(a27==1))&&(a12==2)))&&(a16==1))&&(a20==5))&&(a9==17))){ + a12 = 3; + a15 = 1; + a2 = 10; + return -1; + } else if(((((a9==17)&&((((((input==2)&&((a2==11)||((a2==9)||(a2==10))))&&(a27==1))&&(a25==1))&&(a12==3))&&(a20==5)))&&(a16==1))&&!(a15==1))){ + if((a2==11)){ + a12 = 6; + a2 = 9; + a25 = 0; + a15 = 1; + }else{ + a25 = 0; + a20 = 6; + a12 = 5; + a15 = 1; + a2 = 12; + a9 = 16; + } + return -1; + } else if((((a20==7)&&((a16==1)&&((a27==1)&&((a15==1)&&((a12==3)&&(!(a25==1)&&(((a2==10)||(a2==11))&&(input==1))))))))&&(a9==18))){ + a20 = 5; + a9 = 16; + a25 = 1; + a2 = 9; + a12 = 2; + return -1; + } else if(((a12==2)&&((a20==6)&&((((((a9==16)&&((input==6)&&(a16==1)))&&(a25==1))&&(a27==1))&&(a2==13))&&(a15==1))))){ + a20 = 5; + a2 = 9; + return -1; + } else if((!(a25==1)&&(((a27==1)&&((a15==1)&&(((a16==1)&&(((input==5)&&(((a2==11)||(a2==12))||(a2==13)))&&(a12==6)))&&(a20==6))))&&(a9==16)))){ + a20 = 5; + a12 = 2; + a2 = 9; + a25 = 1; + return -1; + } else if((((((a12==3)&&((((a25==1)&&((((a2==9)||(a2==10))||(a2==11))&&(input==1)))&&(a9==17))&&(a20==5)))&&(a16==1))&&(a27==1))&&!(a15==1))){ + if((a16==1)){ + a25 = 0; + a2 = 10; + a12 = 4; + }else{ + a2 = 12; + a15 = 1; + a25 = 0; + a20 = 6; + a12 = 2; + } + return -1; + } else if(((((a12==5)&&((a27==1)&&(((a16==1)&&((((a2==10)||(a2==11))&&(input==5))&&(a20==7)))&&!(a25==1))))&&(a9==18))&&(a15==1))){ + a2 = 13; + a12 = 4; + a9 = 16; + a25 = 1; + return 21; + } else if(((a16==1)&&(((a2==12)&&((a27==1)&&((!(a25==1)&&(((input==4)&&(a20==7))&&(a15==1)))&&(a9==18))))&&(a12==2)))){ + a2 = 9; + a20 = 5; + return 21; + } else if(((a27==1)&&(((((a20==5)&&((a9==16)&&((a12==5)&&((input==6)&&((a2==12)||((a2==10)||(a2==11)))))))&&(a15==1))&&(a16==1))&&!(a25==1)))){ + a25 = 1; + a2 = 9; + a12 = 2; + return -1; + } else if(((a25==1)&&((a9==16)&&(((a16==1)&&((a27==1)&&(!(a15==1)&&(((input==6)&&(a2==11))&&(a12==5)))))&&(a20==5))))){ + a9 = 17; + a12 = 4; + a2 = 13; + a15 = 1; + return -1; + } else if((((a9==18)&&(((a12==4)&&((a15==1)&&(!(a25==1)&&((a20==7)&&((input==4)&&(((a2==9)||(a2==10))||(a2==11)))))))&&(a27==1)))&&(a16==1))){ + a20 = 6; + a2 = 13; + a25 = 1; + a12 = 3; + a9 = 17; + return -1; + } else if(((a16==1)&&((a12==4)&&(((a20==6)&&((!(a25==1)&&((a27==1)&&((input==2)&&((a2==9)||(a2==10)))))&&(a9==17)))&&(a15==1))))){ + a2 = 9; + a9 = 16; + a12 = 5; + return 26; + } else if((((((a9==16)&&(((((a20==5)&&(input==1))&&(a27==1))&&(a2==13))&&(a12==5)))&&(a25==1))&&!(a15==1))&&(a16==1))){ + if((a12==4)){ + a15 = 1; + a12 = 3; + a9 = 17; + a2 = 10; + }else{ + a15 = 1; + a12 = 2; + a2 = 11; + a9 = 17; + } + return -1; + } else if((((a27==1)&&((a9==16)&&(((((a20==7)&&((a15==1)&&(input==3)))&&(a16==1))&&(a25==1))&&(a2==10))))&&(a12==4))){ + a12 = 2; + a20 = 5; + a2 = 9; + return -1; + } else if(((!(a25==1)&&((a20==5)&&(((a15==1)&&(((a9==17)&&((a12==5)&&(input==5)))&&(a27==1)))&&(a2==12))))&&(a16==1))){ + a25 = 1; + a2 = 9; + a12 = 2; + a9 = 16; + return -1; + } else if(((a16==1)&&((!(a25==1)&&((((input==3)&&((((a9==16)&&(a2==13))&&(a12==6))||((a12==2)&&((a9==17)&&(a2==9)))))&&(a20==5))&&!(a15==1)))&&(a27==1)))){ + a15 = 1; + a2 = 9; + a25 = 1; + a9 = 17; + a12 = 4; + return -1; + } else if(((a20==5)&&((!(a25==1)&&((a16==1)&&((a12==4)&&(!(a15==1)&&((a2==10)&&((input==3)&&(a9==17)))))))&&(a27==1)))){ + if((a9==18)){ + a9 = 16; + a12 = 5; + a25 = 1; + }else{ + a20 = 7; + a12 = 3; + a25 = 1; + a9 = 18; + a15 = 1; + } + return 23; + } else if((((a20==7)&&((!(a25==1)&&((a9==18)&&(((a2==12)&&((input==5)&&(a12==4)))&&(a16==1))))&&(a27==1)))&&(a15==1))){ + a25 = 1; + a20 = 6; + a12 = 5; + a9 = 17; + a2 = 10; + return 21; + } else if(((a20==7)&&((a15==1)&&(((a9==18)&&(!(a25==1)&&(((a27==1)&&((input==6)&&((a2==11)||((a2==9)||(a2==10)))))&&(a12==2))))&&(a16==1))))){ + a2 = 9; + a20 = 5; + a25 = 1; + a9 = 16; + return -1; + } else if((((a20==6)&&(((!(a25==1)&&((a9==16)&&((a27==1)&&((a12==4)&&(input==5)))))&&(a16==1))&&(a2==10)))&&(a15==1))){ + a12 = 2; + a25 = 1; + a2 = 13; + a9 = 17; + return 21; + } else if(((a15==1)&&((a12==4)&&((((a9==18)&&((((input==6)&&(a27==1))&&(a2==9))&&!(a25==1)))&&(a20==5))&&(a16==1))))){ + a12 = 2; + a25 = 1; + a9 = 16; + return -1; + } else if(((!(a25==1)&&(((a9==17)&&((((((a2==9)||(a2==10))&&(input==1))&&(a27==1))&&(a20==6))&&(a15==1)))&&(a16==1)))&&(a12==6))){ + a12 = 4; + a9 = 16; + a2 = 12; + return 21; + } else if(((!(a25==1)&&((a12==5)&&((((a20==5)&&(((((a2==10)||(a2==11))||(a2==12))&&(input==6))&&(a9==17)))&&(a16==1))&&(a27==1))))&&!(a15==1))){ + a2 = 11; + a9 = 16; + a15 = 1; + a12 = 6; + a25 = 1; + return -1; + } else if(((a27==1)&&((!(a25==1)&&(((a20==5)&&((a12==6)&&(((input==2)&&(a16==1))&&(a2==13))))&&(a9==16)))&&(a15==1)))){ + a25 = 1; + a12 = 2; + a2 = 9; + return -1; + } else if((((((((a12==4)&&((a20==5)&&((a2==13)&&(input==6))))&&!(a25==1))&&(a16==1))&&(a15==1))&&(a27==1))&&(a9==18))){ + a25 = 1; + a2 = 9; + a12 = 2; + a9 = 16; + return -1; + } else if((((((a27==1)&&((a15==1)&&((a25==1)&&(((a9==18)&&(input==6))&&(a20==7)))))&&(a12==4))&&(a16==1))&&(a2==9))){ + a12 = 5; + a9 = 16; + a20 = 6; + a2 = 10; + return -1; + } else if(((a20==5)&&((((a27==1)&&(((a12==3)&&(((((a2==11)||(a2==12))||(a2==13))&&(input==1))&&(a9==18)))&&!(a25==1)))&&(a15==1))&&(a16==1)))){ + a2 = 9; + a12 = 2; + a25 = 1; + a9 = 16; + return -1; + } else if(((a16==1)&&((a15==1)&&((a27==1)&&(((((a20==6)&&(((a2==12)||((a2==10)||(a2==11)))&&(input==5)))&&(a25==1))&&(a12==2))&&(a9==17)))))){ + if((a20==7)){ + a12 = 4; + a20 = 5; + a2 = 11; + a15 = 0; + a9 = 16; + }else{ + a12 = 5; + a9 = 16; + a2 = 12; + } + return -1; + } else if(((a12==6)&&(((a20==5)&&((((!(a25==1)&&((a9==16)&&(input==3)))&&(a15==1))&&(a27==1))&&(a2==13)))&&(a16==1)))){ + a2 = 9; + a20 = 6; + a9 = 17; + a25 = 1; + a12 = 2; + return 23; + } else if(((a16==1)&&((a20==5)&&((a9==18)&&(!(a25==1)&&((((((a12==3)&&(a2==10))||(((a2==13)&&(a12==2))||((a12==3)&&(a2==9))))&&(input==4))&&(a27==1))&&(a15==1))))))){ + a20 = 6; + a12 = 4; + a9 = 17; + a2 = 13; + return -1; + } else if(((a2==9)&&((a15==1)&&((a16==1)&&((a20==7)&&((a12==5)&&((a9==18)&&((a27==1)&&((input==6)&&!(a25==1)))))))))){ + a25 = 1; + a12 = 2; + a9 = 16; + a20 = 5; + return -1; + } else if(((a9==18)&&(((a15==1)&&((a27==1)&&(((a12==4)&&(((((a2==10)||(a2==11))||(a2==12))&&(input==6))&&(a25==1)))&&(a16==1))))&&(a20==5)))){ + a2 = 13; + a12 = 6; + return 24; + } else if((((((a20==6)&&((a25==1)&&((((((a12==3)&&(a2==13))||((a2==9)&&(a12==4)))||((a2==10)&&(a12==4)))&&(input==4))&&(a16==1))))&&(a15==1))&&(a9==17))&&(a27==1))){ + a9 = 16; + a2 = 9; + a12 = 4; + return -1; + } else if(((a15==1)&&((((a9==16)&&((a16==1)&&(((((a2==11)||(a2==12))&&(input==1))&&(a20==6))&&(a12==3))))&&!(a25==1))&&(a27==1)))){ + a2 = 12; + a9 = 18; + a25 = 1; + return -1; + } else if(((((a9==18)&&((a27==1)&&(((a12==2)&&((((a2==12)||((a2==10)||(a2==11)))&&(input==5))&&(a15==1)))&&(a25==1))))&&(a20==7))&&(a16==1))){ + a2 = 10; + a20 = 5; + a12 = 3; + return -1; + } else if(((a27==1)&&(((a12==3)&&((a16==1)&&((a25==1)&&(((a20==5)&&((input==4)&&((a2==11)||((a2==9)||(a2==10)))))&&!(a15==1)))))&&(a9==16)))){ + a12 = 2; + a2 = 13; + a20 = 6; + a15 = 1; + a9 = 17; + return -1; + } else if(((a12==5)&&((a2==11)&&((a27==1)&&(((!(a15==1)&&(((input==3)&&(a20==5))&&(a16==1)))&&(a9==16))&&(a25==1)))))){ + a2 = 10; + a15 = 1; + return -1; + } else if((!(a15==1)&&(((a25==1)&&((a20==5)&&((a12==2)&&(((a9==17)&&((a2==13)&&(input==5)))&&(a16==1)))))&&(a27==1)))){ + if((a27==1)){ + a2 = 12; + a12 = 3; + a15 = 1; + a9 = 16; + }else{ + a9 = 18; + a12 = 3; + a2 = 9; + } + return 26; + } else if(((!(a25==1)&&((a20==7)&&((a16==1)&&(((a15==1)&&((((a12==5)&&(a2==10))||(((a12==4)&&(a2==13))||((a2==9)&&(a12==5))))&&(input==2)))&&(a9==17)))))&&(a27==1))){ + a12 = 2; + a20 = 5; + a9 = 16; + a2 = 9; + a25 = 1; + return -1; + } else if(((a20==7)&&(((((((input==2)&&((((a2==12)&&(a12==4))||((a12==4)&&(a2==13)))||((a2==9)&&(a12==5))))&&(a15==1))&&!(a25==1))&&(a9==16))&&(a16==1))&&(a27==1)))){ + a2 = 9; + a25 = 1; + a20 = 5; + a12 = 2; + return -1; + } else if(((a12==4)&&((a27==1)&&(!(a25==1)&&((a2==9)&&((a9==18)&&((a20==5)&&(((input==5)&&(a16==1))&&(a15==1))))))))){ + a9 = 16; + a12 = 2; + a25 = 1; + return -1; + } else if(((((a15==1)&&((a12==4)&&((a27==1)&&(!(a25==1)&&((a2==9)&&((a20==5)&&(input==3)))))))&&(a9==18))&&(a16==1))){ + a12 = 2; + a9 = 16; + a25 = 1; + return -1; + } else if((((a9==18)&&(((a20==6)&&((((a16==1)&&((input==6)&&(a2==13)))&&(a25==1))&&(a27==1)))&&(a15==1)))&&(a12==2))){ + a25 = 0; + a20 = 5; + a2 = 9; + a12 = 4; + a9 = 17; + return -1; + } else if(((a25==1)&&((a16==1)&&((a9==17)&&(((a15==1)&&((((((a12==5)&&(a2==13))||((a12==6)&&(a2==9)))||((a12==6)&&(a2==10)))&&(input==1))&&(a20==6)))&&(a27==1)))))){ + a12 = 5; + a2 = 12; + return -1; + } else if(((a2==12)&&((a20==7)&&(((a16==1)&&(((a27==1)&&(((a12==6)&&(input==6))&&(a15==1)))&&(a9==17)))&&(a25==1))))){ + if((a12==3)){ + a2 = 11; + a15 = 0; + a20 = 5; + a9 = 16; + a12 = 4; + }else{ + a9 = 16; + a20 = 6; + a12 = 5; + } + return -1; + } else if((((a27==1)&&(((((((((a2==9)||(a2==10))||(a2==11))&&(input==3))&&(a15==1))&&(a9==17))&&!(a25==1))&&(a20==5))&&(a16==1)))&&(a12==2))){ + a20 = 6; + a2 = 13; + a25 = 1; + return 21; + } else if(((a27==1)&&(((((a12==2)&&((a16==1)&&((a15==1)&&((((a2==11)||(a2==12))||(a2==13))&&(input==3)))))&&(a20==6))&&(a9==18))&&!(a25==1)))){ + a25 = 1; + a9 = 16; + a20 = 5; + a2 = 9; + return -1; + } else if((((a9==16)&&((a20==5)&&((a12==6)&&((a16==1)&&((!(a15==1)&&(((a2==10)||(a2==11))&&(input==3)))&&(a25==1))))))&&(a27==1))){ + a2 = 10; + a9 = 18; + a12 = 3; + return -1; + } else if((((a20==7)&&(((a15==1)&&(((a9==17)&&(((a12==3)&&(input==5))&&(a16==1)))&&(a27==1)))&&(a2==9)))&&!(a25==1))){ + a9 = 16; + a12 = 2; + a25 = 1; + a20 = 5; + return -1; + } else if(((((((a9==16)&&((a27==1)&&((a2==9)&&((a16==1)&&(input==5)))))&&!(a15==1))&&(a12==4))&&!(a25==1))&&(a20==5))){ + a2 = 12; + a15 = 1; + a12 = 3; + a25 = 1; + return -1; + } else if(((((((a12==5)&&((a27==1)&&(((((a2==10)||(a2==11))||(a2==12))&&(input==6))&&!(a15==1))))&&(a16==1))&&(a25==1))&&(a20==5))&&(a9==17))){ + a15 = 1; + a12 = 3; + a2 = 13; + return -1; + } else if((((!(a25==1)&&(((((input==3)&&(((a12==5)&&(a2==9))||(((a2==12)&&(a12==4))||((a2==13)&&(a12==4)))))&&(a15==1))&&(a27==1))&&(a20==5)))&&(a16==1))&&(a9==16))){ + a2 = 9; + a25 = 1; + a12 = 2; + return -1; + } else if(((a15==1)&&(!(a25==1)&&(((a20==7)&&(((a16==1)&&((((a2==11)||(a2==12))&&(input==6))&&(a9==17)))&&(a12==5)))&&(a27==1))))){ + a20 = 5; + a12 = 2; + a2 = 9; + a25 = 1; + a9 = 16; + return -1; + } else if(((a25==1)&&(((((((input==5)&&(((a12==4)&&(a2==13))||((a2==9)&&(a12==5))))&&(a27==1))&&(a16==1))&&(a15==1))&&(a20==6))&&(a9==17)))){ + a9 = 16; + a2 = 9; + a20 = 5; + a12 = 2; + return -1; + } else if(((a27==1)&&(((a9==16)&&(((!(a25==1)&&((a12==5)&&((((a2==10)||(a2==11))||(a2==12))&&(input==6))))&&(a16==1))&&(a20==7)))&&(a15==1)))){ + a25 = 1; + a12 = 2; + a20 = 5; + a2 = 9; + return -1; + } else if(((a20==6)&&((a9==17)&&(((((a15==1)&&(((input==1)&&(((a2==10)||(a2==11))||(a2==12)))&&(a25==1)))&&(a12==2))&&(a27==1))&&(a16==1))))){ + if((a15==1)){ + a12 = 3; + a9 = 18; + a20 = 7; + a2 = 11; + }else{ + a2 = 13; + a12 = 3; + a9 = 16; + } + return -1; + } else if(((a2==11)&&((a20==5)&&((((((a27==1)&&((a12==5)&&(input==5)))&&(a16==1))&&(a25==1))&&(a15==1))&&(a9==18))))){ + a9 = 16; + a25 = 0; + a2 = 9; + a12 = 4; + return 26; + } else if(((a27==1)&&((a20==7)&&((a16==1)&&((a9==16)&&(((((input==1)&&(a2==11))&&(a12==2))&&(a25==1))&&(a15==1))))))){ + a2 = 13; + a12 = 5; + return -1; + } else if(((a9==17)&&((a12==3)&&(!(a25==1)&&(((((((a2==13)||((a2==11)||(a2==12)))&&(input==2))&&(a16==1))&&(a27==1))&&(a20==5))&&!(a15==1)))))){ + a12 = 4; + a25 = 1; + a15 = 1; + a2 = 10; + return -1; + } else if((!(a25==1)&&(((((a27==1)&&(!(a15==1)&&((((a2==10)&&(a12==5))||(((a12==4)&&(a2==13))||((a2==9)&&(a12==5))))&&(input==2))))&&(a9==16))&&(a16==1))&&(a20==5)))){ + a12 = 5; + a2 = 11; + a15 = 1; + a20 = 6; + a9 = 18; + return -1; + } else if((((a12==3)&&((a9==18)&&(!(a25==1)&&((((a15==1)&&((input==2)&&((a2==11)||((a2==9)||(a2==10)))))&&(a27==1))&&(a16==1)))))&&(a20==6))){ + a25 = 1; + a2 = 12; + return 25; + } else if((!(a25==1)&&(((a16==1)&&((((a27==1)&&(((input==3)&&(a20==5))&&(a9==17)))&&(a12==4))&&!(a15==1)))&&(a2==9)))){ + if((a2==9)){ + a2 = 11; + a12 = 6; + a15 = 1; + a25 = 1; + }else{ + a2 = 11; + a20 = 6; + a25 = 1; + a15 = 1; + a9 = 16; + a12 = 5; + } + return -1; + } else if(((((!(a25==1)&&(!(a15==1)&&((a20==5)&&((((a12==5)&&(a2==13))||((a2==9)&&(a12==6)))&&(input==2)))))&&(a9==18))&&(a16==1))&&(a27==1))){ + a9 = 17; + a25 = 1; + a2 = 12; + a12 = 3; + return -1; + } else if(((a20==6)&&((a27==1)&&((((input==1)&&((((a25==1)&&((a12==6)&&((a2==13)&&(a9==18))))||(!(a25==1)&&(((a9==16)&&(a2==9))&&(a12==2))))||(!(a25==1)&&((a12==2)&&((a2==10)&&(a9==16))))))&&(a16==1))&&(a15==1))))){ + a12 = 6; + a9 = 17; + a2 = 12; + a20 = 7; + a25 = 1; + return -1; + } else if((((a2==9)&&((((a12==4)&&((a9==18)&&(((a25==1)&&(input==5))&&!(a15==1))))&&(a27==1))&&(a20==5)))&&(a16==1))){ + if((a9==16)){ + a9 = 17; + a12 = 5; + a15 = 1; + a2 = 13; + }else{ + a15 = 1; + a9 = 16; + a12 = 2; + a2 = 11; + } + return -1; + } else if(((a16==1)&&((((!(a25==1)&&(((((a2==12)||(a2==13))&&(input==3))&&(a9==17))&&(a20==6)))&&(a15==1))&&(a27==1))&&(a12==5)))){ + a25 = 1; + a12 = 2; + a20 = 5; + a2 = 9; + a9 = 16; + return -1; + } else if(((a9==16)&&(!(a15==1)&&(((a2==10)&&((((a27==1)&&((a25==1)&&(input==6)))&&(a12==5))&&(a20==5)))&&(a16==1))))){ + a2 = 9; + a25 = 0; + a12 = 4; + return 21; + } else if(((a27==1)&&((a16==1)&&(((a9==18)&&((a15==1)&&((a25==1)&&((((a12==6)&&(a2==10))||(((a2==13)&&(a12==5))||((a12==6)&&(a2==9))))&&(input==1)))))&&(a20==6))))){ + a2 = 11; + a12 = 4; + a9 = 17; + return -1; + } else if(((((a27==1)&&((((input==2)&&((((a9==17)&&(a2==13))&&(a12==6))||(((a9==18)&&(a2==9))&&(a12==2))))&&(a16==1))&&(a15==1)))&&!(a25==1))&&(a20==5))){ + a12 = 2; + a2 = 9; + a9 = 16; + a25 = 1; + return -1; + } else if(((((a15==1)&&((a20==7)&&((a16==1)&&((a9==16)&&((a27==1)&&((input==3)&&((a2==11)||(a2==12))))))))&&(a12==4))&&(a25==1))){ + a20 = 6; + a2 = 11; + a12 = 2; + a25 = 0; + return -1; + } else if(((a27==1)&&((!(a15==1)&&(((a20==5)&&((a16==1)&&((a12==4)&&(((a2==13)||((a2==11)||(a2==12)))&&(input==1)))))&&!(a25==1)))&&(a9==17)))){ + if((a25==1)){ + a12 = 5; + a25 = 1; + a2 = 9; + a15 = 1; + a20 = 7; + }else{ + a2 = 13; + } + return -1; + } else if((((((a15==1)&&(((((input==2)&&((a2==11)||(a2==12)))&&(a16==1))&&(a20==6))&&(a27==1)))&&(a25==1))&&(a12==6))&&(a9==18))){ + a12 = 2; + a2 = 9; + a20 = 5; + a9 = 16; + return -1; + } else if(((a12==2)&&((!(a15==1)&&((!(a25==1)&&((((input==2)&&((a2==12)||(a2==13)))&&(a9==16))&&(a16==1)))&&(a27==1)))&&(a20==5)))){ + a15 = 1; + a12 = 4; + a2 = 12; + a20 = 6; + return -1; + } else if(((a25==1)&&((a16==1)&&(((a20==6)&&(((a2==13)&&(((a27==1)&&(input==3))&&(a15==1)))&&(a12==2)))&&(a9==18))))){ + a12 = 3; + a20 = 7; + a2 = 11; + return -1; + } else if((((a9==16)&&((a16==1)&&((a15==1)&&((((a12==5)&&((input==4)&&((a2==12)||((a2==10)||(a2==11)))))&&(a20==7))&&!(a25==1)))))&&(a27==1))){ + if((a2==10)){ + a9 = 17; + a2 = 12; + a12 = 2; + }else{ + a2 = 12; + a12 = 2; + a25 = 1; + } + return 23; + } else if(((a27==1)&&((a9==16)&&(((((((((a12==4)&&(a2==13))||((a2==9)&&(a12==5)))||((a2==10)&&(a12==5)))&&(input==6))&&(a16==1))&&(a15==1))&&(a20==7))&&(a25==1))))){ + a2 = 12; + a20 = 5; + a9 = 17; + a12 = 4; + return -1; + } else if((((((!(a15==1)&&((((input==4)&&(((a2==11)||(a2==12))||(a2==13)))&&!(a25==1))&&(a9==17)))&&(a16==1))&&(a20==5))&&(a27==1))&&(a12==3))){ + a2 = 9; + a15 = 1; + a9 = 16; + return -1; + } else if(((a20==7)&&((a25==1)&&(((a9==17)&&(((a27==1)&&((a12==4)&&((input==6)&&(a2==13))))&&(a16==1)))&&(a15==1))))){ + a20 = 5; + a9 = 18; + a12 = 6; + return 24; + } else if(((a15==1)&&((a16==1)&&(((a27==1)&&((a9==16)&&(((input==1)&&(((a2==9)&&(a12==5))||(((a2==12)&&(a12==4))||((a2==13)&&(a12==4)))))&&!(a25==1))))&&(a20==7))))){ + a9 = 17; + a2 = 10; + a12 = 3; + return -1; + } else if(((a20==7)&&(((((((a15==1)&&(((a2==12)||((a2==10)||(a2==11)))&&(input==6)))&&(a27==1))&&(a12==3))&&(a9==18))&&(a16==1))&&(a25==1)))){ + if((a9==17)){ + a12 = 5; + a25 = 0; + a9 = 16; + a2 = 9; + }else{ + a20 = 6; + a2 = 11; + a9 = 16; + } + return -1; + } else if(((((a12==3)&&(((a20==6)&&((((input==6)&&(((a2==11)||(a2==12))||(a2==13)))&&(a15==1))&&(a9==17)))&&!(a25==1)))&&(a27==1))&&(a16==1))){ + a25 = 1; + a12 = 2; + a2 = 9; + a20 = 5; + a9 = 16; + return -1; + } else if(((a27==1)&&((!(a25==1)&&((((a9==18)&&(((input==1)&&((a2==9)||(a2==10)))&&(a20==6)))&&(a15==1))&&(a16==1)))&&(a12==6)))){ + a2 = 9; + a25 = 1; + a12 = 2; + a20 = 5; + a9 = 16; + return -1; + } else if(((a9==18)&&(!(a15==1)&&((((a20==5)&&((a16==1)&&((((a2==9)&&(a12==5))||(((a12==4)&&(a2==12))||((a2==13)&&(a12==4))))&&(input==6))))&&(a27==1))&&(a25==1))))){ + if((a12==6)){ + a15 = 1; + a12 = 5; + a2 = 13; + a9 = 16; + }else{ + a12 = 5; + a2 = 10; + a9 = 16; + a15 = 1; + } + return -1; + } else if(((a16==1)&&(((((a27==1)&&(((input==2)&&((((a2==12)&&(a12==4))||((a2==13)&&(a12==4)))||((a2==9)&&(a12==5))))&&!(a25==1)))&&(a9==18))&&(a15==1))&&(a20==6)))){ + a25 = 1; + a2 = 12; + a12 = 3; + return 25; + } else if(((a15==1)&&((a16==1)&&((a27==1)&&((a20==7)&&(((a12==3)&&((((a2==12)||(a2==13))&&(input==6))&&!(a25==1)))&&(a9==18))))))){ + a12 = 6; + a20 = 5; + a2 = 10; + return 23; + } else if((((a9==16)&&((a16==1)&&(!(a25==1)&&((a20==5)&&((a27==1)&&(((((a2==9)||(a2==10))||(a2==11))&&(input==6))&&(a12==6)))))))&&!(a15==1))){ + if((a12==3)){ + a15 = 1; + a2 = 13; + a12 = 3; + a25 = 1; + }else{ + a15 = 1; + a9 = 18; + a2 = 12; + a25 = 1; + a20 = 6; + } + return -1; + } else if(((((a20==7)&&((((((input==6)&&(a2==9))&&(a27==1))&&(a12==4))&&(a15==1))&&(a25==1)))&&(a16==1))&&(a9==16))){ + a12 = 2; + a20 = 5; + return -1; + } else if(((((a2==13)&&((((((a25==1)&&(input==6))&&(a16==1))&&(a12==3))&&(a9==18))&&(a27==1)))&&(a20==5))&&!(a15==1))){ + a9 = 16; + a15 = 1; + a2 = 10; + a12 = 4; + a25 = 0; + return 25; + } else if(((a27==1)&&((a16==1)&&(((a15==1)&&((!(a25==1)&&((((a2==13)&&(a12==3))||((a12==4)&&(a2==9)))&&(input==5)))&&(a9==16)))&&(a20==6))))){ + a25 = 1; + a20 = 5; + a2 = 9; + a12 = 2; + return -1; + } else if((!(a15==1)&&((((!(a25==1)&&((a20==5)&&((input==3)&&(((a2==10)&&(a12==5))||(((a12==4)&&(a2==13))||((a2==9)&&(a12==5)))))))&&(a9==16))&&(a27==1))&&(a16==1)))){ + a15 = 1; + a2 = 10; + a12 = 4; + a9 = 17; + a20 = 7; + return -1; + } else if((((((a25==1)&&((((a12==2)&&((input==2)&&(a15==1)))&&(a16==1))&&(a2==12)))&&(a27==1))&&(a9==17))&&(a20==7))){ + a9 = 16; + a12 = 5; + a2 = 10; + a20 = 6; + a25 = 0; + return 23; + } else if(((a27==1)&&(!(a25==1)&&((a16==1)&&(((a9==16)&&(((input==5)&&((((a12==5)&&(a2==13))||((a12==6)&&(a2==9)))||((a2==10)&&(a12==6))))&&(a20==5)))&&(a15==1)))))){ + a12 = 2; + a2 = 9; + a25 = 1; + return -1; + } else if(((((a12==2)&&(((a9==16)&&((((a16==1)&&(input==4))&&(a15==1))&&(a20==7)))&&!(a25==1)))&&(a27==1))&&(a2==9))){ + a25 = 1; + a12 = 3; + a9 = 17; + a20 = 6; + return -1; + } else if(((a15==1)&&((a27==1)&&(((a12==3)&&(((a9==18)&&(!(a25==1)&&((((a2==9)||(a2==10))||(a2==11))&&(input==1))))&&(a16==1)))&&(a20==6))))){ + a20 = 5; + a25 = 1; + a9 = 16; + a12 = 2; + a2 = 9; + return -1; + } else if((((((((a12==6)&&((((a2==11)||(a2==12))&&(input==1))&&(a20==6)))&&(a16==1))&&!(a25==1))&&(a9==18))&&(a15==1))&&(a27==1))){ + a25 = 1; + a2 = 10; + a12 = 4; + a20 = 7; + a9 = 16; + return 26; + } else if((((a20==5)&&((a2==9)&&(!(a15==1)&&(((((input==5)&&(a16==1))&&(a12==6))&&(a27==1))&&(a25==1)))))&&(a9==16))){ + a12 = 3; + a25 = 0; + a9 = 17; + a20 = 7; + a15 = 1; + return 26; + } else if(((((a27==1)&&((((((a9==16)&&(input==5))&&(a20==5))&&!(a25==1))&&(a2==10))&&(a16==1)))&&(a15==1))&&(a12==4))){ + a25 = 1; + a2 = 9; + a12 = 2; + return -1; + } else if((((((a25==1)&&((a15==1)&&(((input==6)&&(((a12==6)&&(a2==10))||(((a12==5)&&(a2==13))||((a2==9)&&(a12==6)))))&&(a27==1))))&&(a16==1))&&(a9==18))&&(a20==6))){ + a20 = 7; + a2 = 10; + a12 = 3; + return -1; + } else if(((a20==5)&&((a2==9)&&((a27==1)&&((a12==4)&&(!(a15==1)&&((((input==1)&&(a25==1))&&(a16==1))&&(a9==18)))))))){ + if((a16==1)){ + a12 = 6; + a9 = 17; + a15 = 1; + a2 = 13; + }else{ + a15 = 1; + a9 = 16; + a12 = 5; + } + return 26; + } else if(((a27==1)&&(((a20==5)&&((a16==1)&&(!(a15==1)&&((input==1)&&(((a12==2)&&((a9==18)&&(a2==9)))||((((a2==12)&&(a9==17))&&(a12==6))||((a12==6)&&((a2==13)&&(a9==17)))))))))&&(a25==1)))){ + if((a9==18)){ + a15 = 1; + a2 = 10; + a9 = 16; + a12 = 2; + }else{ + a12 = 2; + a2 = 12; + a9 = 16; + a15 = 1; + } + return -1; + } else if(((a12==2)&&(((a16==1)&&((a9==18)&&(((a27==1)&&((a20==7)&&((((a2==9)||(a2==10))||(a2==11))&&(input==1))))&&(a15==1))))&&!(a25==1)))){ + a2 = 9; + a9 = 16; + a20 = 5; + a25 = 1; + return -1; + } else if(((((a9==16)&&((a27==1)&&((a16==1)&&((a25==1)&&(((a2==13)&&(input==4))&&(a12==2))))))&&(a15==1))&&(a20==6))){ + a2 = 9; + a20 = 5; + return -1; + } else if(((a16==1)&&((a15==1)&&(((a27==1)&&((a20==7)&&(((input==5)&&((((a12==5)&&(a2==12))||((a2==13)&&(a12==5)))||((a12==6)&&(a2==9))))&&(a9==18))))&&!(a25==1))))){ + a9 = 16; + a2 = 9; + a12 = 2; + a20 = 5; + a25 = 1; + return -1; + } else if(((a16==1)&&((((a9==18)&&(((((input==3)&&(a2==12))&&(a20==5))&&!(a25==1))&&(a15==1)))&&(a12==4))&&(a27==1)))){ + a2 = 9; + a9 = 16; + a12 = 2; + a25 = 1; + return -1; + } else if(((((a15==1)&&((a16==1)&&((a27==1)&&((((a12==5)&&(input==1))&&(a20==7))&&(a9==17)))))&&!(a25==1))&&(a2==13))){ + a25 = 1; + a20 = 5; + a2 = 9; + a9 = 18; + return 25; + } else if(((a9==18)&&((a15==1)&&(((a20==6)&&((a27==1)&&((a16==1)&&(!(a25==1)&&((input==3)&&((a2==12)||((a2==10)||(a2==11))))))))&&(a12==5))))){ + a2 = 9; + a20 = 5; + a12 = 2; + a25 = 1; + a9 = 16; + return -1; + } else if(((((a12==6)&&(!(a25==1)&&(((a16==1)&&((a27==1)&&((input==1)&&((a2==13)||((a2==11)||(a2==12))))))&&(a20==6))))&&(a9==16))&&(a15==1))){ + a2 = 9; + a25 = 1; + a20 = 5; + a12 = 2; + return -1; + } else if(((a12==3)&&((a25==1)&&(((a9==16)&&((a16==1)&&(((a15==1)&&((input==6)&&((a2==12)||(a2==13))))&&(a20==7))))&&(a27==1))))){ + a20 = 5; + a12 = 2; + a2 = 9; + return -1; + } else if(((a16==1)&&(((a9==16)&&(!(a15==1)&&((a20==5)&&((a27==1)&&(((input==1)&&((a2==10)||(a2==11)))&&(a12==6))))))&&(a25==1)))){ + a9 = 18; + a2 = 11; + a15 = 1; + a12 = 5; + a20 = 7; + return -1; + } else if((!(a15==1)&&(((a16==1)&&((a2==13)&&(((((input==1)&&(a27==1))&&(a12==2))&&(a9==16))&&(a20==5))))&&(a25==1)))){ + a2 = 9; + a15 = 1; + return -1; + } else if((((a27==1)&&((((a16==1)&&((a20==7)&&((a25==1)&&(((a2==11)||(a2==12))&&(input==5)))))&&(a9==16))&&(a12==4)))&&(a15==1))){ + a2 = 13; + a12 = 2; + a9 = 17; + a20 = 6; + return 26; + } else if((((a12==6)&&(((a15==1)&&((a27==1)&&(!(a25==1)&&(((input==6)&&((a2==13)||((a2==11)||(a2==12))))&&(a9==16)))))&&(a20==7)))&&(a16==1))){ + a20 = 6; + a12 = 3; + a2 = 12; + a25 = 1; + a9 = 18; + return -1; + } else if((((a15==1)&&((((((((a2==13)||((a2==11)||(a2==12)))&&(input==6))&&(a27==1))&&(a16==1))&&(a20==5))&&(a12==3))&&!(a25==1)))&&(a9==18))){ + a9 = 16; + a2 = 9; + a12 = 2; + a25 = 1; + return -1; + } else if(((a9==18)&&((((a20==7)&&((a12==4)&&((a27==1)&&(((a16==1)&&(input==2))&&(a2==10)))))&&(a25==1))&&(a15==1)))){ + a20 = 5; + a2 = 9; + a9 = 16; + a12 = 2; + return -1; + } else if((((a16==1)&&(((a20==6)&&((a9==17)&&((a27==1)&&(((input==4)&&((a2==11)||(a2==12)))&&(a12==4)))))&&(a25==1)))&&(a15==1))){ + a2 = 12; + a20 = 7; + a12 = 6; + return -1; + } else if(((a27==1)&&((a9==18)&&((a12==2)&&((a2==10)&&((((a20==6)&&((a15==1)&&(input==2)))&&(a16==1))&&!(a25==1))))))){ + a12 = 5; + a2 = 9; + a9 = 16; + return 23; + } else if((((a9==16)&&(((a12==3)&&(((a15==1)&&(!(a25==1)&&((input==3)&&((a2==11)||(a2==12)))))&&(a16==1)))&&(a27==1)))&&(a20==6))){ + a25 = 1; + a2 = 9; + a9 = 17; + a12 = 6; + return -1; + } else if((((a25==1)&&((a9==17)&&((((a20==7)&&((((a2==10)||(a2==11))&&(input==3))&&(a12==5)))&&(a27==1))&&(a16==1))))&&(a15==1))){ + a20 = 5; + a12 = 2; + a9 = 16; + a2 = 9; + return -1; + } else if(((a16==1)&&(((input==5)&&(((a20==7)&&(!(a25==1)&&((((a9==18)&&(a2==13))&&(a15==1))&&(a12==6))))||((a20==5)&&(((!(a15==1)&&((a9==16)&&(a2==9)))&&(a12==2))&&(a25==1)))))&&(a27==1)))){ + a2 = 9; + a9 = 17; + a15 = 1; + a20 = 6; + a25 = 0; + a12 = 4; + return -1; + } else if(((a15==1)&&((a16==1)&&(((((a9==17)&&(((input==4)&&((a2==13)||((a2==11)||(a2==12))))&&!(a25==1)))&&(a20==7))&&(a27==1))&&(a12==6))))){ + a20 = 5; + a9 = 16; + a2 = 9; + a12 = 2; + a25 = 1; + return -1; + } else if(((((!(a25==1)&&((a9==18)&&((a15==1)&&((input==3)&&((((a2==13)&&(a12==2))||((a12==3)&&(a2==9)))||((a2==10)&&(a12==3)))))))&&(a16==1))&&(a27==1))&&(a20==5))){ + if((a9==16)){ + a9 = 16; + a25 = 1; + a2 = 13; + a15 = 0; + a12 = 2; + }else{ + a9 = 17; + a2 = 11; + a20 = 6; + a12 = 3; + } + return -1; + } else if(((a25==1)&&((a20==7)&&(((a12==3)&&((a15==1)&&(((a16==1)&&(((a2==12)||((a2==10)||(a2==11)))&&(input==1)))&&(a27==1))))&&(a9==18))))){ + if((a20==5)){ + a2 = 10; + }else{ + a2 = 10; + a9 = 16; + a12 = 4; + a20 = 6; + } + return -1; + } else if(((a25==1)&&(((((((a20==7)&&(((a2==11)||(a2==12))&&(input==2)))&&(a15==1))&&(a27==1))&&(a16==1))&&(a9==16))&&(a12==4)))){ + a12 = 2; + a2 = 9; + a20 = 5; + return -1; + } else if(((!(a15==1)&&(((a27==1)&&((((((a2==10)||(a2==11))&&(input==6))&&(a20==5))&&(a25==1))&&(a9==18)))&&(a12==2)))&&(a16==1))){ + a9 = 17; + a2 = 12; + a15 = 1; + a12 = 6; + return -1; + } else if(((a25==1)&&(((((a27==1)&&((a20==6)&&((((a12==4)&&(a2==13))||((a2==9)&&(a12==5)))&&(input==3))))&&(a16==1))&&(a9==17))&&(a15==1)))){ + a2 = 13; + a12 = 4; + a9 = 18; + return 21; + } else if(((a20==7)&&((a25==1)&&((((a16==1)&&((((((a2==10)||(a2==11))||(a2==12))&&(input==2))&&(a27==1))&&(a15==1)))&&(a9==18))&&(a12==3))))){ + a9 = 16; + a20 = 5; + a2 = 9; + a12 = 2; + return -1; + } else if(((a15==1)&&((a16==1)&&(((a9==17)&&((a25==1)&&((a27==1)&&((((a2==10)&&(a12==6))||(((a12==5)&&(a2==13))||((a12==6)&&(a2==9))))&&(input==3)))))&&(a20==6))))){ + a2 = 12; + a12 = 4; + a9 = 16; + return -1; + } else if(((a9==16)&&(((a27==1)&&(((a2==12)&&((((input==5)&&!(a15==1))&&(a12==6))&&(a25==1)))&&(a16==1)))&&(a20==5)))){ + a25 = 0; + a9 = 18; + a15 = 1; + a12 = 5; + return -1; + } else if((((((a9==18)&&((a2==13)&&((((input==1)&&(a20==6))&&!(a25==1))&&(a12==5))))&&(a15==1))&&(a27==1))&&(a16==1))){ + a25 = 1; + a2 = 9; + a20 = 5; + a9 = 16; + a12 = 2; + return -1; + } else if(((((((a20==7)&&(((input==6)&&(((a12==5)&&(a2==13))||((a2==9)&&(a12==6))))&&(a9==16)))&&(a27==1))&&(a15==1))&&!(a25==1))&&(a16==1))){ + a20 = 5; + a2 = 9; + a12 = 2; + a25 = 1; + return -1; + } else if((((a20==7)&&((((a15==1)&&(((((a2==12)||(a2==13))&&(input==6))&&(a12==2))&&(a16==1)))&&(a27==1))&&!(a25==1)))&&(a9==17))){ + a25 = 1; + a9 = 16; + a20 = 5; + a2 = 9; + return -1; + } else if((((a15==1)&&((a20==6)&&((((((input==2)&&((a2==9)||(a2==10)))&&(a27==1))&&!(a25==1))&&(a12==5))&&(a16==1))))&&(a9==17))){ + a20 = 5; + a25 = 1; + a2 = 9; + a12 = 2; + a9 = 16; + return -1; + } else if(((a9==18)&&(((a27==1)&&(((a16==1)&&((a25==1)&&((input==6)&&((((a2==12)&&(a12==5))||((a12==5)&&(a2==13)))||((a12==6)&&(a2==9))))))&&(a15==1)))&&(a20==5)))){ + a25 = 0; + a9 = 17; + a2 = 9; + a12 = 2; + return 25; + } else if(((((((a15==1)&&((a9==18)&&((a16==1)&&(((a2==11)||(a2==12))&&(input==5)))))&&(a27==1))&&(a25==1))&&(a20==6))&&(a12==6))){ + if((a25==1)){ + a20 = 7; + a12 = 3; + a2 = 11; + a9 = 17; + }else{ + a2 = 9; + a12 = 3; + } + return -1; + } else if((((a25==1)&&((a12==5)&&((((!(a15==1)&&((input==4)&&((a2==10)||(a2==11))))&&(a9==18))&&(a16==1))&&(a27==1))))&&(a20==5))){ + if((a20==7)){ + a9 = 16; + a12 = 4; + a2 = 13; + a20 = 6; + a25 = 0; + a15 = 1; + }else{ + a12 = 4; + a15 = 1; + a9 = 17; + a2 = 11; + } + return -1; + } else if(((a27==1)&&((!(a25==1)&&(((a20==5)&&((((((a2==10)||(a2==11))||(a2==12))&&(input==2))&&(a16==1))&&(a12==5)))&&(a15==1)))&&(a9==16)))){ + a25 = 1; + a12 = 2; + a2 = 9; + return -1; + } else if((((a15==1)&&(!(a25==1)&&((a9==17)&&(((((((a2==10)||(a2==11))||(a2==12))&&(input==5))&&(a12==3))&&(a27==1))&&(a20==7)))))&&(a16==1))){ + a9 = 16; + a12 = 5; + a20 = 6; + a25 = 1; + a2 = 13; + return 25; + } else if(((a9==16)&&(((a2==12)&&((a20==6)&&(((a12==4)&&((a15==1)&&((a16==1)&&(input==3))))&&!(a25==1))))&&(a27==1)))){ + if((a16==1)){ + a9 = 17; + a20 = 7; + a12 = 5; + a25 = 1; + }else{ + a12 = 6; + a2 = 9; + a25 = 1; + } + return -1; + } else if(((((((((a9==18)&&(((a2==9)||(a2==10))&&(input==6)))&&(a20==5))&&(a16==1))&&(a12==3))&&(a25==1))&&(a27==1))&&!(a15==1))){ + a2 = 9; + a25 = 0; + a9 = 17; + a12 = 5; + return -1; + } else if(((a9==17)&&((a20==5)&&((a27==1)&&(((a12==5)&&((((((a2==10)||(a2==11))||(a2==12))&&(input==1))&&(a25==1))&&!(a15==1)))&&(a16==1)))))){ + if((a25==1)){ + a15 = 1; + a12 = 4; + a2 = 11; + }else{ + a2 = 9; + a12 = 4; + a9 = 18; + a15 = 1; + } + return -1; + } else if(((a9==18)&&((a16==1)&&((a15==1)&&(((a12==3)&&((a25==1)&&(((a27==1)&&(input==3))&&(a20==7))))&&(a2==13)))))){ + a2 = 9; + a12 = 6; + return 21; + } else if(((a27==1)&&(!(a15==1)&&((a9==16)&&((((a20==5)&&((((a2==9)||(a2==10))&&(input==2))&&(a12==2)))&&!(a25==1))&&(a16==1)))))){ + if((a20==7)){ + a25 = 1; + a20 = 7; + a15 = 1; + a2 = 11; + }else{ + a25 = 1; + a15 = 1; + a12 = 5; + a2 = 10; + } + return 21; + } else if(((((a9==18)&&((a12==3)&&((a20==7)&&((a15==1)&&((a16==1)&&((a27==1)&&(input==2)))))))&&(a2==13))&&(a25==1))){ + a2 = 9; + a12 = 2; + a9 = 16; + a20 = 5; + return -1; + } else if(((a16==1)&&((a25==1)&&(((a20==5)&&(!(a15==1)&&(((((a12==5)&&(a2==9))||(((a2==12)&&(a12==4))||((a2==13)&&(a12==4))))&&(input==5))&&(a27==1))))&&(a9==18))))){ + a15 = 1; + a9 = 16; + a20 = 6; + a25 = 0; + a2 = 11; + a12 = 4; + return -1; + } else if(((a25==1)&&((((a20==6)&&((a27==1)&&(((input==5)&&(((a2==10)&&(a12==4))||(((a2==13)&&(a12==3))||((a2==9)&&(a12==4)))))&&(a15==1))))&&(a16==1))&&(a9==18)))){ + a2 = 11; + a12 = 6; + a9 = 16; + return -1; + } else if((((((a16==1)&&((a9==18)&&((a25==1)&&((a27==1)&&(((a2==10)||(a2==11))&&(input==6))))))&&(a20==5))&&(a15==1))&&(a12==6))){ + a9 = 17; + a25 = 0; + a12 = 4; + a2 = 9; + return 21; + } else if(((a25==1)&&(((a27==1)&&(((a12==2)&&(((a16==1)&&((input==4)&&((a2==12)||((a2==10)||(a2==11)))))&&(a20==7)))&&(a15==1)))&&(a9==18)))){ + a20 = 5; + a12 = 3; + a2 = 12; + return -1; + } else if((((a25==1)&&((a15==1)&&(((a12==3)&&((a27==1)&&((((a2==12)||(a2==13))&&(input==5))&&(a20==7))))&&(a9==16))))&&(a16==1))){ + a2 = 9; + a12 = 2; + a20 = 5; + return -1; + } else if((((a9==16)&&((a16==1)&&((a20==6)&&((a25==1)&&((a15==1)&&((a27==1)&&(((a2==9)||(a2==10))&&(input==1))))))))&&(a12==3))){ + a20 = 5; + a2 = 9; + a12 = 2; + return -1; + } else if(((a27==1)&&((((a9==18)&&(((a12==6)&&(((input==4)&&((a2==12)||(a2==13)))&&(a25==1)))&&(a15==1)))&&(a20==5))&&(a16==1)))){ + a9 = 17; + a25 = 0; + a2 = 12; + a12 = 5; + return 23; + } else if(((a27==1)&&((((a9==18)&&(!(a15==1)&&(((((a2==9)||(a2==10))&&(input==5))&&(a20==5))&&!(a25==1))))&&(a16==1))&&(a12==3)))){ + if((a20==7)){ + a12 = 6; + a2 = 11; + a15 = 1; + a25 = 1; + }else{ + a25 = 1; + a12 = 6; + a15 = 1; + a2 = 9; + a9 = 17; + } + return -1; + } else if(((a20==7)&&(((a15==1)&&(!(a25==1)&&((((input==4)&&(((a12==5)&&(a2==13))||((a2==9)&&(a12==6))))&&(a27==1))&&(a16==1))))&&(a9==16)))){ + a9 = 18; + a20 = 6; + a2 = 11; + a12 = 4; + return -1; + } else if(((((a16==1)&&((((((((a2==13)&&(a12==2))||((a2==9)&&(a12==3)))||((a2==10)&&(a12==3)))&&(input==1))&&(a20==6))&&(a15==1))&&(a27==1)))&&(a9==16))&&!(a25==1))){ + a20 = 5; + a25 = 1; + a2 = 9; + a12 = 2; + return -1; + } else if(((((a20==7)&&((a27==1)&&((a12==2)&&((a16==1)&&((a25==1)&&((input==6)&&(a2==12)))))))&&(a9==17))&&(a15==1))){ + a20 = 5; + a2 = 9; + a9 = 16; + return -1; + } else if(((a20==5)&&((((a16==1)&&((a9==17)&&(((input==4)&&(((a12==5)&&(a2==13))||((a12==6)&&(a2==9))))&&!(a25==1))))&&(a15==1))&&(a27==1)))){ + a12 = 2; + a9 = 16; + a25 = 1; + a2 = 9; + return -1; + } else if(((a20==6)&&((a27==1)&&(((a12==4)&&((a15==1)&&((a16==1)&&((a25==1)&&((input==2)&&(((a2==11)||(a2==12))||(a2==13)))))))&&(a9==18))))){ + a9 = 16; + a12 = 2; + a2 = 9; + a20 = 5; + return -1; + } else if((((a9==16)&&(((a12==5)&&((a20==7)&&((((input==3)&&(((a2==10)||(a2==11))||(a2==12)))&&!(a25==1))&&(a16==1))))&&(a15==1)))&&(a27==1))){ + a12 = 2; + a2 = 9; + a20 = 5; + a25 = 1; + return -1; + } else if(((a16==1)&&((a27==1)&&((a9==16)&&((((a12==2)&&((((a2==11)||((a2==9)||(a2==10)))&&(input==2))&&!(a25==1)))&&(a15==1))&&(a20==5)))))){ + a9 = 17; + a12 = 6; + a2 = 12; + return 21; + } else if(((a12==2)&&((a16==1)&&(((a20==6)&&((a9==16)&&((a25==1)&&((a27==1)&&(((a2==11)||((a2==9)||(a2==10)))&&(input==4))))))&&(a15==1))))){ + a20 = 5; + a2 = 9; + return -1; + } else if((((a9==18)&&(!(a15==1)&&(((((a12==5)&&(((a2==12)||(a2==13))&&(input==6)))&&(a20==5))&&(a27==1))&&(a25==1))))&&(a16==1))){ + if((a27==1)){ + a9 = 17; + a2 = 13; + a25 = 0; + a12 = 3; + }else{ + a15 = 1; + a2 = 13; + a12 = 2; + a20 = 6; + a9 = 16; + } + return -1; + } else if(((a27==1)&&((a16==1)&&(((a9==18)&&((a15==1)&&((((input==6)&&(a20==7))&&!(a25==1))&&(a12==4))))&&(a2==12))))){ + a25 = 1; + a12 = 6; + a2 = 13; + a20 = 5; + return 24; + } else if(((a27==1)&&(((((a20==6)&&(((a16==1)&&(((a2==11)||(a2==12))&&(input==6)))&&(a15==1)))&&!(a25==1))&&(a9==17))&&(a12==6)))){ + a9 = 16; + a20 = 5; + a2 = 9; + a25 = 1; + a12 = 2; + return -1; + } else if((((a16==1)&&((a15==1)&&((a27==1)&&(((a20==7)&&((((a12==5)&&(a2==9))||(((a12==4)&&(a2==12))||((a12==4)&&(a2==13))))&&(input==6)))&&(a9==18)))))&&(a25==1))){ + a2 = 9; + a9 = 16; + a12 = 2; + a20 = 5; + return -1; + } else if(((a16==1)&&(((!(a15==1)&&(((a25==1)&&(((a27==1)&&(input==2))&&(a2==12)))&&(a9==18)))&&(a12==3))&&(a20==5)))){ + a12 = 4; + a2 = 11; + a15 = 1; + a25 = 0; + a9 = 16; + return -1; + } else if(((a16==1)&&(((((a27==1)&&((((((a2==12)&&(a12==4))||((a12==4)&&(a2==13)))||((a12==5)&&(a2==9)))&&(input==4))&&(a20==7)))&&(a9==16))&&(a15==1))&&!(a25==1)))){ + a12 = 4; + a9 = 18; + a2 = 9; + a25 = 1; + a20 = 6; + return 26; + } else if(((((a27==1)&&(((a20==5)&&(((((a2==11)||((a2==9)||(a2==10)))&&(input==4))&&(a16==1))&&(a12==2)))&&(a9==16)))&&(a15==1))&&!(a25==1))){ + a9 = 18; + a2 = 9; + return 21; + } else if(((a12==4)&&((a25==1)&&(((a16==1)&&((!(a15==1)&&(((a9==18)&&(input==4))&&(a2==9)))&&(a20==5)))&&(a27==1))))){ + a20 = 6; + a12 = 5; + a9 = 17; + a2 = 12; + a15 = 1; + return -1; + } else if((!(a15==1)&&((((a2==12)&&((a27==1)&&((((a12==3)&&(input==1))&&(a20==5))&&(a16==1))))&&(a25==1))&&(a9==18)))){ + a12 = 6; + a25 = 0; + a2 = 11; + return -1; + } else if((!(a25==1)&&(((((a27==1)&&(((a20==5)&&(((a2==12)||((a2==10)||(a2==11)))&&(input==3)))&&(a9==17)))&&!(a15==1))&&(a16==1))&&(a12==5)))){ + if((a2==13)){ + a9 = 16; + a25 = 1; + a2 = 13; + a15 = 1; + a12 = 2; + }else{ + a25 = 1; + a12 = 4; + a15 = 1; + a9 = 16; + a2 = 9; + } + return -1; + } else if((((((a25==1)&&(((a20==6)&&((input==4)&&(((a12==4)&&(a2==13))||((a12==5)&&(a2==9)))))&&(a15==1)))&&(a16==1))&&(a9==17))&&(a27==1))){ + a9 = 16; + a12 = 2; + a2 = 9; + a20 = 5; + return -1; + } else if(((a16==1)&&((a25==1)&&((a20==5)&&((a27==1)&&((((input==3)&&(((a12==3)&&(a2==13))||((a12==4)&&(a2==9))))&&(a9==17))&&!(a15==1))))))){ + a2 = 11; + a9 = 18; + a15 = 1; + a12 = 2; + return -1; + } else if(((a15==1)&&(!(a25==1)&&((a27==1)&&((((a2==10)&&(((a20==6)&&(input==6))&&(a12==6)))&&(a9==16))&&(a16==1)))))){ + a12 = 4; + a9 = 17; + a25 = 1; + a2 = 11; + return -1; + } else if((!(a15==1)&&(((a9==17)&&(((!(a25==1)&&((a2==10)&&((input==4)&&(a27==1))))&&(a20==5))&&(a16==1)))&&(a12==4)))){ + a9 = 18; + a15 = 1; + a2 = 12; + a12 = 3; + a25 = 1; + return -1; + } else if(((((((a15==1)&&((a2==10)&&(!(a25==1)&&((a16==1)&&(input==6)))))&&(a27==1))&&(a12==4))&&(a20==6))&&(a9==16))){ + a2 = 9; + a25 = 1; + a12 = 6; + return 21; + } return calculate_output8(input); + } + + int calculate_output8(int input) { + if(((a20==5)&&((a27==1)&&((((!(a25==1)&&((a9==17)&&((input==3)&&((a2==9)||(a2==10)))))&&(a12==5))&&(a16==1))&&(a15==1))))){ + a20 = 6; + a2 = 12; + a12 = 6; + a25 = 1; + a9 = 18; + return 23; + } else if((!(a25==1)&&(((a9==17)&&((!(a15==1)&&(((((a12==5)&&(a2==13))||((a2==9)&&(a12==6)))&&(input==3))&&(a16==1)))&&(a20==5)))&&(a27==1)))){ + a20 = 6; + a12 = 3; + a25 = 1; + a2 = 11; + a9 = 18; + a15 = 1; + return -1; + } else if(((a20==7)&&(((((a15==1)&&((((((a2==12)&&(a12==3))||((a12==3)&&(a2==13)))||((a2==9)&&(a12==4)))&&(input==2))&&(a16==1)))&&(a27==1))&&(a9==17))&&(a25==1)))){ + a12 = 2; + a2 = 9; + a20 = 5; + a9 = 16; + return -1; + } else if((((((((!(a15==1)&&((a16==1)&&(input==4)))&&(a25==1))&&(a12==2))&&(a20==5))&&(a27==1))&&(a9==16))&&(a2==13))){ + a2 = 9; + a15 = 1; + return -1; + } else if(((((a9==17)&&(!(a25==1)&&((((a16==1)&&((input==3)&&(a15==1)))&&(a20==6))&&(a2==11))))&&(a27==1))&&(a12==2))){ + a2 = 9; + a25 = 1; + a9 = 16; + a20 = 5; + return -1; + } else if(((a16==1)&&(((((a12==6)&&((a20==7)&&(((input==4)&&(((a2==11)||(a2==12))||(a2==13)))&&(a15==1))))&&(a27==1))&&(a9==16))&&!(a25==1)))){ + a2 = 12; + a12 = 4; + a20 = 6; + return -1; + } else if(((((((a25==1)&&((a15==1)&&((((a2==11)||(a2==12))&&(input==1))&&(a12==6))))&&(a9==18))&&(a27==1))&&(a16==1))&&(a20==6))){ + a2 = 13; + a9 = 17; + return -1; + } else if(((a9==16)&&((a12==4)&&((a16==1)&&(((a25==1)&&((a27==1)&&(((input==4)&&((a2==10)||(a2==11)))&&(a20==5))))&&!(a15==1)))))){ + a15 = 1; + a2 = 12; + a20 = 6; + return -1; + } else if(((a12==2)&&(((a15==1)&&((a2==11)&&((a9==16)&&((a16==1)&&(((a20==6)&&(input==4))&&(a27==1))))))&&!(a25==1)))){ + a12 = 4; + a25 = 1; + a2 = 13; + return -1; + } else if(((a20==6)&&((a16==1)&&(((a25==1)&&((a15==1)&&(((a27==1)&&((input==1)&&((a2==12)||(a2==13))))&&(a9==16))))&&(a12==5))))){ + a20 = 5; + a12 = 2; + a2 = 9; + return -1; + } else if((!(a25==1)&&(!(a15==1)&&((((a9==18)&&((a27==1)&&((((a2==11)||(a2==12))&&(input==6))&&(a20==5))))&&(a16==1))&&(a12==3))))){ + a2 = 10; + a20 = 6; + a15 = 1; + a25 = 1; + a12 = 6; + return 21; + } else if(((a25==1)&&(((((a2==9)&&((a27==1)&&((a9==18)&&((a16==1)&&(input==2)))))&&(a12==4))&&(a20==5))&&!(a15==1)))){ + a15 = 1; + a9 = 17; + a12 = 3; + return 26; + } else if(((a9==17)&&((a16==1)&&((a20==7)&&((a15==1)&&((a12==3)&&(!(a25==1)&&(((((a2==10)||(a2==11))||(a2==12))&&(input==6))&&(a27==1))))))))){ + a25 = 1; + a20 = 6; + a9 = 16; + a2 = 12; + return 26; + } else if(((a20==5)&&(((a15==1)&&((a12==5)&&(((((a9==17)&&(input==2))&&(a2==12))&&(a27==1))&&!(a25==1))))&&(a16==1)))){ + a25 = 1; + a2 = 9; + a9 = 16; + a12 = 2; + return -1; + } else if(((a9==17)&&(((((a16==1)&&((a27==1)&&((a2==10)&&((a20==5)&&(input==6)))))&&(a12==3))&&!(a25==1))&&(a15==1)))){ + a20 = 7; + a9 = 16; + a2 = 9; + a12 = 2; + return 21; + } else if(((a15==1)&&(((a27==1)&&((a12==5)&&((a16==1)&&(!(a25==1)&&(((input==4)&&((a2==12)||(a2==13)))&&(a9==17))))))&&(a20==6)))){ + a9 = 16; + a12 = 4; + a2 = 12; + return 21; + } else if(((a16==1)&&(((a27==1)&&((a15==1)&&(!(a25==1)&&((((input==4)&&(((a2==11)||(a2==12))||(a2==13)))&&(a9==18))&&(a20==6)))))&&(a12==2)))){ + a9 = 16; + a2 = 9; + a20 = 5; + a25 = 1; + return -1; + } else if(((a12==4)&&(((((a9==16)&&(!(a25==1)&&((a27==1)&&((input==5)&&(a20==5)))))&&(a2==11))&&(a16==1))&&(a15==1)))){ + a25 = 1; + a12 = 2; + a2 = 9; + return -1; + } else if(((a20==5)&&((a16==1)&&((!(a25==1)&&((a27==1)&&(!(a15==1)&&((input==6)&&(((a2==13)&&(a12==5))||((a2==9)&&(a12==6)))))))&&(a9==17))))){ + a20 = 6; + a15 = 1; + a2 = 12; + a12 = 5; + return -1; + } else if((((!(a15==1)&&((((((a25==1)&&(input==6))&&(a27==1))&&(a20==5))&&(a2==11))&&(a9==18)))&&(a12==3))&&(a16==1))){ + a15 = 1; + a20 = 7; + a9 = 16; + a2 = 12; + return -1; + } else if(((a20==7)&&(((a25==1)&&(((((((a2==10)||(a2==11))&&(input==3))&&(a16==1))&&(a9==17))&&(a12==4))&&(a27==1)))&&(a15==1)))){ + a2 = 9; + a9 = 16; + a20 = 5; + a12 = 2; + return -1; + } else if(((((a27==1)&&((a12==2)&&((a20==6)&&((a16==1)&&(((a15==1)&&(input==6))&&(a9==18))))))&&!(a25==1))&&(a2==10))){ + a9 = 16; + a25 = 1; + a2 = 9; + a20 = 5; + return -1; + } else if(((((a12==4)&&((a20==5)&&(!(a25==1)&&((a27==1)&&(!(a15==1)&&((input==1)&&((a2==11)||(a2==12))))))))&&(a9==18))&&(a16==1))){ + a9 = 16; + a25 = 1; + a15 = 1; + a2 = 9; + return -1; + } else if(((((a12==2)&&((a9==18)&&((a20==7)&&((!(a25==1)&&((a27==1)&&(input==6)))&&(a2==12)))))&&(a16==1))&&(a15==1))){ + a2 = 9; + a20 = 5; + a25 = 1; + a9 = 16; + return -1; + } else if((((a20==5)&&((a16==1)&&((((((input==1)&&(a2==9))&&(a9==18))&&(a12==4))&&(a15==1))&&!(a25==1))))&&(a27==1))){ + a9 = 16; + a25 = 1; + a12 = 2; + return -1; + } else if(((a15==1)&&((a16==1)&&((a12==3)&&((((a9==18)&&((((a2==12)||(a2==13))&&(input==5))&&!(a25==1)))&&(a20==6))&&(a27==1)))))){ + a20 = 5; + a9 = 16; + a12 = 2; + a25 = 1; + a2 = 9; + return -1; + } else if((((a9==17)&&(((a15==1)&&((a16==1)&&((a27==1)&&(((((a12==3)&&(a2==13))||((a2==9)&&(a12==4)))||((a2==10)&&(a12==4)))&&(input==3)))))&&(a20==6)))&&(a25==1))){ + if((a27==1)){ + a12 = 4; + a9 = 18; + a2 = 10; + a20 = 7; + }else{ + a2 = 13; + a12 = 3; + } + return -1; + } else if(((((a16==1)&&((a9==18)&&((((((a2==12)||(a2==13))&&(input==2))&&(a12==6))&&(a15==1))&&(a25==1))))&&(a27==1))&&(a20==7))){ + a12 = 2; + a20 = 5; + a2 = 9; + a9 = 16; + return -1; + } else if(((((!(a15==1)&&(((a16==1)&&((a12==5)&&((input==1)&&((a2==12)||((a2==10)||(a2==11))))))&&(a9==17)))&&(a27==1))&&(a20==5))&&!(a25==1))){ + a25 = 1; + a12 = 3; + a15 = 1; + a2 = 11; + return -1; + } else if(((((((((a12==5)&&(((a2==9)||(a2==10))&&(input==3)))&&(a9==16))&&!(a25==1))&&(a27==1))&&(a15==1))&&(a20==6))&&(a16==1))){ + a25 = 1; + a2 = 13; + a9 = 17; + a12 = 2; + return -1; + } else if(((a15==1)&&((((((((input==1)&&((a2==11)||(a2==12)))&&(a16==1))&&(a9==17))&&(a27==1))&&(a20==6))&&(a25==1))&&(a12==4)))){ + if((a2==13)){ + a25 = 0; + a2 = 13; + a20 = 7; + a9 = 16; + }else{ + a12 = 3; + a2 = 12; + a9 = 16; + } + return -1; + } else if((!(a25==1)&&((a20==7)&&((a27==1)&&(((((a2==13)&&((a15==1)&&(input==3)))&&(a12==4))&&(a16==1))&&(a9==18)))))){ + a2 = 9; + a9 = 17; + a12 = 5; + a20 = 5; + a25 = 1; + return -1; + } else if(((a2==10)&&((((a20==6)&&(((((input==3)&&(a16==1))&&(a12==6))&&(a9==16))&&(a27==1)))&&!(a25==1))&&(a15==1)))){ + a2 = 9; + a25 = 1; + return -1; + } else if((!(a15==1)&&((a2==10)&&((a20==5)&&(((((a9==16)&&((a12==5)&&(input==5)))&&(a16==1))&&(a27==1))&&(a25==1)))))){ + a12 = 6; + a2 = 13; + a15 = 1; + a9 = 17; + return -1; + } else if((!(a25==1)&&((((a9==16)&&((a16==1)&&((a12==6)&&((a27==1)&&((a20==7)&&(input==1))))))&&(a15==1))&&(a2==10)))){ + a20 = 5; + a25 = 1; + a2 = 9; + a12 = 2; + return -1; + } else if(((a27==1)&&((a25==1)&&((a9==17)&&(((a16==1)&&((((a15==1)&&(input==1))&&(a12==6))&&(a20==7)))&&(a2==12)))))){ + a9 = 16; + a20 = 6; + a2 = 13; + a12 = 4; + return -1; + } else if((((a16==1)&&((a15==1)&&((a20==6)&&(((((a25==1)&&((a12==6)&&((a2==13)&&(a9==18))))||(((a12==2)&&((a9==16)&&(a2==9)))&&!(a25==1)))||(!(a25==1)&&((a12==2)&&((a2==10)&&(a9==16)))))&&(input==5)))))&&(a27==1))){ + a2 = 9; + a9 = 16; + a20 = 5; + a25 = 1; + a12 = 2; + return -1; + } else if(((a12==6)&&((a25==1)&&((a15==1)&&(((a16==1)&&(((((a2==11)||(a2==12))&&(input==6))&&(a20==6))&&(a9==18)))&&(a27==1)))))){ + if((a2==11)){ + a9 = 17; + a20 = 7; + a2 = 12; + }else{ + a2 = 10; + a12 = 4; + a20 = 7; + } + return -1; + } else if((((a16==1)&&((a12==4)&&((a20==7)&&(((((input==2)&&(a2==10))&&(a25==1))&&(a27==1))&&(a9==16)))))&&(a15==1))){ + a12 = 2; + a2 = 9; + a20 = 5; + return -1; + } else if((((a9==18)&&((a16==1)&&((a20==7)&&((a27==1)&&((a12==5)&&((a25==1)&&((input==5)&&(a15==1))))))))&&(a2==12))){ + a2 = 9; + a20 = 5; + a9 = 16; + a12 = 2; + return -1; + } else if((((a9==18)&&(((a20==6)&&((a27==1)&&((a25==1)&&(((input==1)&&(((a2==9)||(a2==10))||(a2==11)))&&(a16==1)))))&&(a15==1)))&&(a12==3))){ + a12 = 5; + a2 = 13; + a9 = 17; + return -1; + } else if(((a9==18)&&(!(a25==1)&&((a15==1)&&((a20==5)&&(((a12==2)&&((a27==1)&&((input==6)&&(((a2==10)||(a2==11))||(a2==12)))))&&(a16==1))))))){ + a2 = 9; + a9 = 16; + a25 = 1; + return -1; + } else if(((a12==3)&&(((!(a15==1)&&(((a9==16)&&(((input==6)&&((a2==11)||((a2==9)||(a2==10))))&&(a25==1)))&&(a16==1)))&&(a27==1))&&(a20==5)))){ + a12 = 4; + a2 = 12; + a15 = 1; + a20 = 6; + return -1; + } else if(((a25==1)&&((a2==11)&&((a20==7)&&((a9==17)&&((a16==1)&&((a12==3)&&(((a15==1)&&(input==6))&&(a27==1))))))))){ + a9 = 18; + a12 = 2; + a20 = 6; + a2 = 13; + return -1; + } else if(((a9==17)&&((((a27==1)&&(!(a25==1)&&(((a15==1)&&((input==6)&&(a16==1)))&&(a12==2))))&&(a2==12))&&(a20==6)))){ + a2 = 9; + a25 = 1; + a20 = 5; + a9 = 16; + return -1; + } else if((((((a16==1)&&(!(a25==1)&&((a2==11)&&(((a27==1)&&(input==5))&&(a12==5)))))&&(a9==18))&&(a20==5))&&(a15==1))){ + a12 = 2; + a20 = 6; + return -1; + } else if(((a16==1)&&(((((a27==1)&&(((a20==5)&&((((a2==10)||(a2==11))||(a2==12))&&(input==5)))&&(a25==1)))&&(a9==17))&&(a12==5))&&!(a15==1)))){ + a9 = 18; + a25 = 0; + a2 = 13; + return 24; + } else if(((a9==16)&&((a16==1)&&((a27==1)&&(!(a15==1)&&((a25==1)&&((a20==5)&&((input==4)&&(((a12==4)&&(a2==9))||(((a12==3)&&(a2==12))||((a12==3)&&(a2==13)))))))))))){ + a2 = 9; + a15 = 1; + a12 = 2; + return -1; + } else if(((a16==1)&&(((a27==1)&&((a15==1)&&((((a20==5)&&((input==1)&&(a9==17)))&&!(a25==1))&&(a12==5))))&&(a2==11)))){ + a12 = 2; + a9 = 16; + a25 = 1; + a2 = 9; + return -1; + } else if((((a9==17)&&((a20==6)&&(((a27==1)&&((a16==1)&&((((a2==9)||(a2==10))&&(input==2))&&!(a25==1))))&&(a12==2))))&&(a15==1))){ + a2 = 9; + a9 = 16; + a12 = 5; + return 26; + } else if(((a9==18)&&(((a25==1)&&((a15==1)&&((a20==6)&&((((a2==13)&&(input==2))&&(a27==1))&&(a12==2)))))&&(a16==1)))){ + a9 = 16; + a2 = 9; + a20 = 5; + return -1; + } else if(((a16==1)&&(((a12==2)&&(((a9==18)&&((a27==1)&&((a2==12)&&((a25==1)&&(input==5)))))&&(a20==6)))&&(a15==1)))){ + a2 = 9; + return -1; + } else if(((!(a25==1)&&((((((a15==1)&&((a12==2)&&(input==2)))&&(a9==18))&&(a27==1))&&(a16==1))&&(a20==7)))&&(a2==12))){ + a20 = 5; + a9 = 17; + a12 = 6; + return 21; + } else if((((a9==17)&&(((a15==1)&&((a27==1)&&(((((a2==10)||(a2==11))&&(input==4))&&(a20==7))&&(a25==1))))&&(a12==5)))&&(a16==1))){ + a9 = 16; + a20 = 5; + a2 = 9; + a12 = 2; + return -1; + } else if((((!(a15==1)&&((a16==1)&&(((a20==5)&&((a9==17)&&((a27==1)&&(input==6))))&&(a12==4))))&&(a2==10))&&!(a25==1))){ + a9 = 16; + a15 = 1; + return -1; + } else if((((a16==1)&&((a15==1)&&((a9==17)&&((a20==6)&&((a27==1)&&((((a2==12)||((a2==10)||(a2==11)))&&(input==5))&&(a12==3)))))))&&(a25==1))){ + a2 = 12; + return 21; + } else if((((a9==18)&&((a27==1)&&((a20==5)&&((a16==1)&&(!(a15==1)&&((((a12==3)&&(a2==13))||((a2==9)&&(a12==4)))&&(input==1)))))))&&!(a25==1))){ + a25 = 1; + a12 = 2; + a15 = 1; + a2 = 9; + return -1; + } else if((((((a20==6)&&((a9==18)&&((((((a2==13)&&(a12==5))||((a2==9)&&(a12==6)))||((a12==6)&&(a2==10)))&&(input==5))&&(a27==1))))&&(a15==1))&&(a16==1))&&(a25==1))){ + a2 = 11; + a20 = 7; + a12 = 3; + return -1; + } else if((((a25==1)&&(((((a15==1)&&(((((a2==13)&&(a12==3))||((a12==4)&&(a2==9)))||((a2==10)&&(a12==4)))&&(input==1)))&&(a9==18))&&(a27==1))&&(a16==1)))&&(a20==6))){ + a2 = 11; + a12 = 2; + return -1; + } else if((((a15==1)&&((((a12==3)&&(((a20==7)&&((input==1)&&((a2==11)||((a2==9)||(a2==10)))))&&!(a25==1)))&&(a16==1))&&(a27==1)))&&(a9==16))){ + a20 = 5; + a12 = 2; + a25 = 1; + a2 = 9; + return -1; + } else if((!(a25==1)&&((((((a12==6)&&(((input==1)&&((a2==10)||(a2==11)))&&(a27==1)))&&(a9==18))&&(a20==5))&&(a16==1))&&!(a15==1)))){ + a25 = 1; + a9 = 16; + a12 = 5; + a15 = 1; + a2 = 11; + return -1; + } else if((((((!(a15==1)&&(((a27==1)&&((input==5)&&(a20==5)))&&(a2==13)))&&(a25==1))&&(a16==1))&&(a12==2))&&(a9==16))){ + a2 = 9; + a15 = 1; + return -1; + } else if(((a20==6)&&((!(a25==1)&&((a9==17)&&((((a16==1)&&((input==6)&&((a2==9)||(a2==10))))&&(a15==1))&&(a12==4))))&&(a27==1)))){ + a20 = 5; + a2 = 9; + a25 = 1; + a9 = 16; + a12 = 2; + return -1; + } else if((((a27==1)&&(((a15==1)&&((((((a2==10)||(a2==11))&&(input==2))&&!(a25==1))&&(a16==1))&&(a12==3)))&&(a20==5)))&&(a9==16))){ + a12 = 2; + a2 = 9; + a25 = 1; + return -1; + } else if(((((a2==12)&&((a25==1)&&((a27==1)&&((((a20==6)&&(input==4))&&(a9==18))&&(a12==2)))))&&(a15==1))&&(a16==1))){ + if((a20==6)){ + a25 = 0; + a2 = 9; + a20 = 7; + a9 = 16; + }else{ + a12 = 5; + a2 = 11; + a9 = 17; + } + return -1; + } else if(((a16==1)&&(((a25==1)&&((((a15==1)&&((a9==17)&&(((a2==10)||(a2==11))&&(input==4))))&&(a12==5))&&(a20==6)))&&(a27==1)))){ + a2 = 9; + a12 = 3; + return -1; + } else if(((((a9==17)&&((a2==9)&&((a20==6)&&((a12==2)&&((a25==1)&&((a16==1)&&(input==6)))))))&&(a27==1))&&(a15==1))){ + a20 = 5; + a9 = 16; + return -1; + } else if((!(a25==1)&&(((!(a15==1)&&(((a27==1)&&((a16==1)&&((input==4)&&((a2==12)||((a2==10)||(a2==11))))))&&(a12==6)))&&(a20==5))&&(a9==17)))){ + if((a15==1)){ + a2 = 11; + a12 = 5; + a9 = 16; + a25 = 1; + a15 = 1; + }else{ + a15 = 1; + a12 = 5; + a2 = 10; + a25 = 1; + } + return -1; + } else if(((a15==1)&&(((((a16==1)&&((a20==7)&&((input==3)&&(((a2==13)&&(a12==5))||((a12==6)&&(a2==9))))))&&!(a25==1))&&(a9==16))&&(a27==1)))){ + a25 = 1; + a2 = 9; + a12 = 2; + a20 = 5; + return -1; + } else if(((((a27==1)&&((!(a25==1)&&((a9==16)&&(((input==5)&&!(a15==1))&&(a20==5))))&&(a12==2)))&&(a16==1))&&(a2==11))){ + a9 = 18; + a25 = 1; + a15 = 1; + a2 = 13; + return -1; + } else if(((a9==18)&&(!(a15==1)&&((a16==1)&&(((((a27==1)&&((input==5)&&((a2==9)||(a2==10))))&&(a20==5))&&(a12==3))&&(a25==1)))))){ + if((a27==1)){ + a20 = 7; + a12 = 6; + a15 = 1; + a2 = 12; + }else{ + a2 = 11; + a15 = 1; + a9 = 17; + } + return -1; + } else if((!(a25==1)&&((a20==6)&&(((a16==1)&&(((((input==2)&&(a12==2))&&(a2==11))&&(a27==1))&&(a9==17)))&&(a15==1))))){ + a2 = 9; + a20 = 5; + a9 = 16; + a25 = 1; + return -1; + } else if((((a15==1)&&(((a27==1)&&(((a20==5)&&((a16==1)&&(((a2==12)||((a2==10)||(a2==11)))&&(input==4))))&&!(a25==1)))&&(a12==5)))&&(a9==16))){ + a12 = 2; + a2 = 9; + a25 = 1; + return -1; + } else if(((a25==1)&&((a16==1)&&((a15==1)&&(((a27==1)&&((a12==6)&&(((input==1)&&((a2==12)||(a2==13)))&&(a9==18))))&&(a20==7)))))){ + a20 = 6; + a12 = 4; + a9 = 16; + a2 = 11; + return -1; + } else if(((a2==11)&&(((a20==5)&&(!(a15==1)&&((a9==16)&&((a12==5)&&((a27==1)&&((a16==1)&&(input==6)))))))&&!(a25==1)))){ + a9 = 18; + a20 = 6; + a15 = 1; + a2 = 9; + a25 = 1; + return -1; + } else if(((a12==5)&&(((a2==12)&&((a9==18)&&((((a15==1)&&((input==4)&&(a27==1)))&&(a16==1))&&(a25==1))))&&(a20==7)))){ + a12 = 2; + a2 = 9; + a20 = 5; + a9 = 16; + return -1; + } else if((((a9==16)&&((a27==1)&&((!(a25==1)&&((a16==1)&&((a15==1)&&((input==5)&&((a2==12)||((a2==10)||(a2==11)))))))&&(a20==5))))&&(a12==5))){ + a25 = 1; + a2 = 9; + a12 = 2; + return -1; + } else if(((a12==2)&&(((a15==1)&&(((a16==1)&&((a9==17)&&((a20==6)&&((input==3)&&((a2==9)||(a2==10))))))&&(a27==1)))&&!(a25==1)))){ + a9 = 16; + a20 = 5; + a25 = 1; + a2 = 9; + return -1; + } else if((((((a27==1)&&((a15==1)&&((a12==2)&&(((input==2)&&((a2==11)||((a2==9)||(a2==10))))&&(a25==1)))))&&(a20==6))&&(a9==16))&&(a16==1))){ + a20 = 5; + a2 = 9; + return -1; + } else if((((a25==1)&&((((a16==1)&&((a20==6)&&(((input==4)&&((a2==11)||(a2==12)))&&(a27==1))))&&(a15==1))&&(a9==18)))&&(a12==6))){ + a12 = 5; + a2 = 11; + return -1; + } else if(((((a20==5)&&((((((input==4)&&((a2==10)||(a2==11)))&&(a12==3))&&(a27==1))&&(a15==1))&&(a9==16)))&&(a16==1))&&!(a25==1))){ + a25 = 1; + a12 = 2; + a2 = 9; + return -1; + } else if((!(a15==1)&&(((((((((a2==13)&&(a9==16))&&(a12==6))||(((a9==17)&&(a2==9))&&(a12==2)))&&(input==6))&&(a20==5))&&!(a25==1))&&(a16==1))&&(a27==1)))){ + a20 = 6; + a12 = 3; + a2 = 13; + a15 = 1; + a25 = 1; + a9 = 17; + return -1; + } else if((((a9==16)&&((a2==10)&&(((!(a25==1)&&(((a12==6)&&(input==4))&&(a15==1)))&&(a16==1))&&(a27==1))))&&(a20==7))){ + a25 = 1; + a12 = 5; + a2 = 12; + a9 = 17; + a20 = 6; + return 21; + } else if(((a20==5)&&(((((a15==1)&&(((a16==1)&&((((a2==10)||(a2==11))||(a2==12))&&(input==1)))&&(a25==1)))&&(a27==1))&&(a9==18))&&(a12==4)))){ + a2 = 13; + return 25; + } else if((!(a25==1)&&(!(a15==1)&&((((((((a2==11)||(a2==12))&&(input==4))&&(a16==1))&&(a9==18))&&(a12==5))&&(a27==1))&&(a20==5))))){ + a25 = 1; + a15 = 1; + a2 = 11; + a9 = 16; + return -1; + } else if(((a12==5)&&((a20==7)&&((a15==1)&&((a9==18)&&(((a25==1)&&((a27==1)&&(((a2==10)||(a2==11))&&(input==4))))&&(a16==1))))))){ + a20 = 5; + a2 = 9; + a9 = 16; + a12 = 2; + return -1; + } + if(((((((((a9==16)&&(a27==1))&&(a2==10))&&(a16==1))&&(a15==1))&&(a12==2))&&(a25==1))&&(a20==5))){ + error_0: __VERIFIER_error(); + } + if(((((((((a9==17)&&(a27==1))&&(a2==13))&&(a16==1))&&(a15==1))&&(a12==4))&&(a25==1))&&(a20==5))){ + error_38: exit(0); + } + if(((((((((a9==18)&&(a27==1))&&(a2==12))&&(a16==1))&&(a15==1))&&(a12==3))&&(a25==1))&&(a20==5))){ + error_57: exit(0); + } + if(((((((((a9==18)&&(a27==1))&&(a2==10))&&(a16==1))&&(a15==1))&&(a12==3))&&(a25==1))&&(a20==5))){ + error_55: exit(0); + } + if(((((((((a9==18)&&(a27==1))&&(a2==13))&&(a16==1))&&(a15==1))&&(a12==3))&&(a25==1))&&(a20==5))){ + error_58: exit(0); + } + if(((((((((a9==17)&&(a27==1))&&(a2==12))&&(a16==1))&&(a15==1))&&(a12==3))&&(a25==1))&&(a20==5))){ + error_32: exit(0); + } + if(((((((((a9==16)&&(a27==1))&&(a2==13))&&(a16==1))&&(a15==1))&&(a12==4))&&(a25==1))&&(a20==5))){ + error_13: exit(0); + } + if(((((((((a9==18)&&(a27==1))&&(a2==11))&&(a16==1))&&(a15==1))&&(a12==2))&&(a25==1))&&(a20==5))){ + error_51: exit(0); + } + if(((((((((a9==17)&&(a27==1))&&(a2==13))&&(a16==1))&&(a15==1))&&(a12==3))&&(a25==1))&&(a20==5))){ + error_33: exit(0); + } + if(((((((((a9==17)&&(a27==1))&&(a2==13))&&(a16==1))&&(a15==1))&&(a12==6))&&(a25==1))&&(a20==5))){ + error_48: exit(0); + } + if(((((((((a9==16)&&(a27==1))&&(a2==13))&&(a16==1))&&(a15==1))&&(a12==5))&&(a25==1))&&(a20==5))){ + error_18: exit(0); + } + if(((((((((a9==17)&&(a27==1))&&(a2==9))&&(a16==1))&&(a15==1))&&(a12==5))&&(a25==1))&&(a20==5))){ + error_39: exit(0); + } + if(((((((((a9==16)&&(a27==1))&&(a2==11))&&(a16==1))&&(a15==1))&&(a12==2))&&(a25==1))&&(a20==5))){ + error_1: exit(0); + } + if(((((((((a9==17)&&(a27==1))&&(a2==11))&&(a16==1))&&(a15==1))&&(a12==5))&&(a25==1))&&(a20==5))){ + error_41: exit(0); + } + if(((((((((a9==17)&&(a27==1))&&(a2==12))&&(a16==1))&&(a15==1))&&(a12==4))&&(a25==1))&&(a20==5))){ + error_37: exit(0); + } + if(((((((((a9==16)&&(a27==1))&&(a2==9))&&(a16==1))&&(a15==1))&&(a12==2))&&(a25==1))&&(a20==5))){ + globalError: exit(0); + } + if(((((((((a9==16)&&(a27==1))&&(a2==11))&&(a16==1))&&(a15==1))&&(a12==4))&&(a25==1))&&(a20==5))){ + error_11: exit(0); + } + if(((((((((a9==17)&&(a27==1))&&(a2==11))&&(a16==1))&&(a15==1))&&(a12==2))&&(a25==1))&&(a20==5))){ + error_26: exit(0); + } + if(((((((((a9==16)&&(a27==1))&&(a2==10))&&(a16==1))&&(a15==1))&&(a12==5))&&(a25==1))&&(a20==5))){ + error_15: exit(0); + } + if(((((((((a9==17)&&(a27==1))&&(a2==10))&&(a16==1))&&(a15==1))&&(a12==5))&&(a25==1))&&(a20==5))){ + error_40: exit(0); + } + if(((((((((a9==17)&&(a27==1))&&(a2==11))&&(a16==1))&&(a15==1))&&(a12==4))&&(a25==1))&&(a20==5))){ + error_36: exit(0); + } + if(((((((((a9==17)&&(a27==1))&&(a2==9))&&(a16==1))&&(a15==1))&&(a12==6))&&(a25==1))&&(a20==5))){ + error_44: exit(0); + } + if(((((((((a9==17)&&(a27==1))&&(a2==10))&&(a16==1))&&(a15==1))&&(a12==3))&&(a25==1))&&(a20==5))){ + error_30: exit(0); + } + if(((((((((a9==17)&&(a27==1))&&(a2==12))&&(a16==1))&&(a15==1))&&(a12==6))&&(a25==1))&&(a20==5))){ + error_47: exit(0); + } + if(((((((((a9==17)&&(a27==1))&&(a2==9))&&(a16==1))&&(a15==1))&&(a12==2))&&(a25==1))&&(a20==5))){ + error_24: exit(0); + } + if(((((((((a9==16)&&(a27==1))&&(a2==9))&&(a16==1))&&(a15==1))&&(a12==5))&&(a25==1))&&(a20==5))){ + error_14: exit(0); + } + if(((((((((a9==17)&&(a27==1))&&(a2==10))&&(a16==1))&&(a15==1))&&(a12==4))&&(a25==1))&&(a20==5))){ + error_35: exit(0); + } + if(((((((((a9==18)&&(a27==1))&&(a2==9))&&(a16==1))&&(a15==1))&&(a12==4))&&(a25==1))&&(a20==5))){ + error_59: exit(0); + } + if(((((((((a9==16)&&(a27==1))&&(a2==12))&&(a16==1))&&(a15==1))&&(a12==6))&&(a25==1))&&(a20==5))){ + error_22: exit(0); + } + if(((((((((a9==16)&&(a27==1))&&(a2==12))&&(a16==1))&&(a15==1))&&(a12==3))&&(a25==1))&&(a20==5))){ + error_7: exit(0); + } + if(((((((((a9==17)&&(a27==1))&&(a2==12))&&(a16==1))&&(a15==1))&&(a12==5))&&(a25==1))&&(a20==5))){ + error_42: exit(0); + } + if(((((((((a9==17)&&(a27==1))&&(a2==10))&&(a16==1))&&(a15==1))&&(a12==2))&&(a25==1))&&(a20==5))){ + error_25: exit(0); + } + if(((((((((a9==16)&&(a27==1))&&(a2==12))&&(a16==1))&&(a15==1))&&(a12==2))&&(a25==1))&&(a20==5))){ + error_2: exit(0); + } + if(((((((((a9==16)&&(a27==1))&&(a2==13))&&(a16==1))&&(a15==1))&&(a12==3))&&(a25==1))&&(a20==5))){ + error_8: exit(0); + } + if(((((((((a9==17)&&(a27==1))&&(a2==11))&&(a16==1))&&(a15==1))&&(a12==3))&&(a25==1))&&(a20==5))){ + error_31: exit(0); + } + if(((((((((a9==16)&&(a27==1))&&(a2==11))&&(a16==1))&&(a15==1))&&(a12==6))&&(a25==1))&&(a20==5))){ + error_21: exit(0); + } + if(((((((((a9==17)&&(a27==1))&&(a2==12))&&(a16==1))&&(a15==1))&&(a12==2))&&(a25==1))&&(a20==5))){ + error_27: exit(0); + } + if(((((((((a9==16)&&(a27==1))&&(a2==13))&&(a16==1))&&(a15==1))&&(a12==6))&&(a25==1))&&(a20==5))){ + error_23: exit(0); + } + if(((((((((a9==16)&&(a27==1))&&(a2==11))&&(a16==1))&&(a15==1))&&(a12==3))&&(a25==1))&&(a20==5))){ + error_6: exit(0); + } + if(((((((((a9==16)&&(a27==1))&&(a2==12))&&(a16==1))&&(a15==1))&&(a12==5))&&(a25==1))&&(a20==5))){ + error_17: exit(0); + } + if(((((((((a9==16)&&(a27==1))&&(a2==9))&&(a16==1))&&(a15==1))&&(a12==4))&&(a25==1))&&(a20==5))){ + error_9: exit(0); + } + if(((((((((a9==18)&&(a27==1))&&(a2==11))&&(a16==1))&&(a15==1))&&(a12==3))&&(a25==1))&&(a20==5))){ + error_56: exit(0); + } + if(((((((((a9==16)&&(a27==1))&&(a2==12))&&(a16==1))&&(a15==1))&&(a12==4))&&(a25==1))&&(a20==5))){ + error_12: exit(0); + } + if(((((((((a9==17)&&(a27==1))&&(a2==10))&&(a16==1))&&(a15==1))&&(a12==6))&&(a25==1))&&(a20==5))){ + error_45: exit(0); + } + if(((((((((a9==18)&&(a27==1))&&(a2==9))&&(a16==1))&&(a15==1))&&(a12==3))&&(a25==1))&&(a20==5))){ + error_54: exit(0); + } + if(((((((((a9==18)&&(a27==1))&&(a2==9))&&(a16==1))&&(a15==1))&&(a12==2))&&(a25==1))&&(a20==5))){ + error_49: exit(0); + } + if(((((((((a9==18)&&(a27==1))&&(a2==12))&&(a16==1))&&(a15==1))&&(a12==2))&&(a25==1))&&(a20==5))){ + error_52: exit(0); + } + if(((((((((a9==16)&&(a27==1))&&(a2==10))&&(a16==1))&&(a15==1))&&(a12==4))&&(a25==1))&&(a20==5))){ + error_10: exit(0); + } + if(((((((((a9==16)&&(a27==1))&&(a2==13))&&(a16==1))&&(a15==1))&&(a12==2))&&(a25==1))&&(a20==5))){ + error_3: exit(0); + } + if(((((((((a9==17)&&(a27==1))&&(a2==13))&&(a16==1))&&(a15==1))&&(a12==2))&&(a25==1))&&(a20==5))){ + error_28: exit(0); + } + if(((((((((a9==18)&&(a27==1))&&(a2==10))&&(a16==1))&&(a15==1))&&(a12==2))&&(a25==1))&&(a20==5))){ + error_50: exit(0); + } + if(((((((((a9==17)&&(a27==1))&&(a2==9))&&(a16==1))&&(a15==1))&&(a12==4))&&(a25==1))&&(a20==5))){ + error_34: exit(0); + } + if(((((((((a9==16)&&(a27==1))&&(a2==10))&&(a16==1))&&(a15==1))&&(a12==6))&&(a25==1))&&(a20==5))){ + error_20: exit(0); + } + if(((((((((a9==17)&&(a27==1))&&(a2==13))&&(a16==1))&&(a15==1))&&(a12==5))&&(a25==1))&&(a20==5))){ + error_43: exit(0); + } + if(((((((((a9==18)&&(a27==1))&&(a2==13))&&(a16==1))&&(a15==1))&&(a12==2))&&(a25==1))&&(a20==5))){ + error_53: exit(0); + } + if(((((((((a9==16)&&(a27==1))&&(a2==10))&&(a16==1))&&(a15==1))&&(a12==3))&&(a25==1))&&(a20==5))){ + error_5: exit(0); + } + if(((((((((a9==16)&&(a27==1))&&(a2==11))&&(a16==1))&&(a15==1))&&(a12==5))&&(a25==1))&&(a20==5))){ + error_16: exit(0); + } + if(((((((((a9==16)&&(a27==1))&&(a2==9))&&(a16==1))&&(a15==1))&&(a12==6))&&(a25==1))&&(a20==5))){ + error_19: exit(0); + } + if(((((((((a9==17)&&(a27==1))&&(a2==11))&&(a16==1))&&(a15==1))&&(a12==6))&&(a25==1))&&(a20==5))){ + error_46: exit(0); + } + if(((((((((a9==17)&&(a27==1))&&(a2==9))&&(a16==1))&&(a15==1))&&(a12==3))&&(a25==1))&&(a20==5))){ + error_29: exit(0); + } + if(((((((((a9==16)&&(a27==1))&&(a2==9))&&(a16==1))&&(a15==1))&&(a12==3))&&(a25==1))&&(a20==5))){ + error_4: exit(0); + } + return -2; + } + +int main() +{ + // default output + int output = -1; + + // main i/o-loop + while(1) + { + // read input + int input; + input = __VERIFIER_nondet_int(); + if ((input != 1) && (input != 2) && (input != 3) && (input != 4) && (input != 5) && (input != 6)) return -2; + + // operate eca engine + output = calculate_output(input); + + } +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem06_label00_false-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem06_label00_false-unreach-call.c new file mode 100644 index 000000000..c9b619db5 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem06_label00_false-unreach-call.c @@ -0,0 +1,9479 @@ +extern void __VERIFIER_error(void); +extern int __VERIFIER_nondet_int(void); +extern void exit(int); + + // inputs + int a= 1; + int f= 6; + int e= 5; + int b= 2; + int d= 4; + int c= 3; + + // outputs + int u = 21; + int v = 22; + int w = 23; + int x = 24; + int y = 25; + int z = 26; + + + int a7 = 1; + int a28 = 1; + int a6 = 1; + int a12 = 1; + int a20 = 1; + int a5 = 1; + int a15 = 1; + int a18 = 1; + int a29 = 1; + int a11 = 0; + int a21 = 0; + int a9 = 0; + int a23 = 0; + int a19 = 0; + int a16 = 0; + int a1 = 0; + int a17 = 0; + int a13 = 0; + int a0 = 1; + int a8 = 1; + int a24 = 1; + int a22 = 1; + int a4 = 1; + int a2 = 1; + int a14 = 4; + int a25 = 1; + int a3 = 12; + int a27 = 20; + int a10 = 1; + int a26 = 1; + + int calculate_output2(int input); + int calculate_output3(int input); + int calculate_output4(int input); + int calculate_output5(int input); + + int calculate_output(int input) { + if((((((a2==1)&&((a1==1)&&((a3==14)&&(((a10==1)&&(a7==1))&&!(a12==1)))))&&(a21==1))&&(a26==1))&&(!(a5==1)&&((((a14==4)&&((a11==1)&&((input==1)&&(a27==21))))&&(a25==1))&&!(a6==1))))){ + a20 = 0; + a26 = 0; + a14 = 6; + a0 = 1; + a2 = 0; + a28 = 0; + a3 = 13; + a27 = 19; + return 25; + } else if((((a20==1)&&(((a1==1)||(a6==1))&&!(a11==1)))&&((a15==1)&&((((a10==1)&&((a27==21)&&(!(a25==1)&&(!(a2==1)&&((a26==1)&&((input==4)&&(((a3==13)&&(a14==3))||(((a3==12)&&(a14==6))||((a14==7)&&(a3==12))))))))))&&!(a19==1))&&(a7==1))))){ + a2 = 1; + a14 = 7; + a4 = 1; + a24 = 1; + a29 = 0; + a3 = 12; + return 22; + } else if(((!(a13==1)&&((((a14==5)&&(!(a25==1)&&(((input==4)&&(a10==1))&&(a7==1))))&&!(a21==1))&&(a27==21)))&&(!(a26==1)&&((a3==14)&&(((((a9==1)||(a20==1))||!(a20==1))&&!(a2==1))||(a23==1)))))){ + a29 = 0; + a0 = 0; + a25 = 1; + a2 = 1; + a27 = 19; + a26 = 1; + a14 = 4; + a1 = 1; + return -1; + } else if(((((a23==1)&&((a25==1)&&((!(a26==1)&&(a5==1))&&(a16==1))))&&(a10==1))&&(((a23==1)&&(!(a5==1)&&((a14==3)&&(((((input==3)&&!(a2==1))&&(a27==19))&&!(a5==1))&&(a3==14)))))&&(a17==1)))){ + a29 = 0; + a14 = 6; + a17 = 1; + a3 = 12; + a2 = 1; + return -1; + } else if((((a1==1)||((a15==1)&&(a12==1)))&&((!(a2==1)&&((((!(a21==1)&&((a10==1)&&(((((a3==14)&&((a25==1)&&(a14==7)))&&!(a26==1))||((a26==1)&&(((a14==3)&&!(a25==1))&&(a3==12))))&&(input==5))))&&(a12==1))&&!(a17==1))&&(a18==1)))&&(a27==20)))){ + a14 = 3; + a16 = 0; + a2 = 1; + a29 = 1; + a27 = 21; + a3 = 12; + a26 = 1; + a25 = 0; + a1 = 0; + return 24; + } else if((((a9==1)||(((((a2==1)&&(((a29==1)&&(a10==1))&&(a27==21)))&&!(a25==1))||!(a12==1))&&(a28==1)))&&((!(a11==1)&&(((a26==1)&&((input==4)&&((((a14==7)&&(a3==12))||((a3==13)&&(a14==3)))||((a3==13)&&(a14==4)))))&&(a18==1)))&&!(a1==1)))){ + a23 = 0; + a11 = 0; + a3 = 13; + a14 = 4; + a25 = 1; + a15 = 1; + a27 = 20; + return 25; + } else if(((((a26==1)&&((a14==3)&&(!(a28==1)||(!(a11==1)&&((((a3==13)&&(a20==1))&&!(a2==1))||(a9==1))))))&&(a27==19))&&((!(a13==1)&&((a10==1)&&((a6==1)&&((a25==1)&&(input==5)))))&&!(a23==1)))){ + if((a15==1)){ + a1 = 0; + a19 = 0; + a14 = 7; + a26 = 0; + a15 = 1; + a25 = 0; + }else{ + a28 = 1; + a27 = 20; + a3 = 12; + a14 = 7; + a20 = 1; + a2 = 1; + a9 = 0; + } + return 24; + } else if((((((a12==1)&&(!(a19==1)&&(((a27==21)&&(((((a14==6)||((a14==4)||(a14==5)))&&(input==1))&&(a12==1))&&!(a26==1)))&&(a7==1))))&&(a3==13))&&(a5==1))&&(!(a2==1)&&((a10==1)&&(((a28==1)&&(a5==1))&&(a25==1)))))){ + a7 = 0; + a25 = 0; + a11 = 1; + a6 = 0; + a26 = 1; + a14 = 6; + a3 = 12; + return -1; + } else if((((a11==1)||((a19==1)||((a5==1)&&((a10==1)&&((a2==1)&&((((a20==1)&&((a27==21)&&(a5==1)))&&(a3==13))&&(a26==1)))))))&&((!(a1==1)&&(((input==2)&&(((a14==5)||(a14==6))||(a14==7)))&&!(a25==1)))&&!(a16==1)))){ + a12 = 1; + a13 = 0; + a18 = 1; + a14 = 5; + return 22; + } else if(((!(a13==1)&&((((a5==1)&&(!(a26==1)&&(!(a21==1)&&(!(a19==1)&&((input==6)&&(((a14==3)||(a14==4))||(a14==5)))))))&&(a20==1))&&(a10==1)))&&((a3==12)&&(!(a25==1)&&((((a7==1)&&(a2==1))||!(a6==1))&&(a27==20)))))){ + a7 = 1; + a14 = 5; + a26 = 1; + a2 = 0; + a5 = 1; + return 26; + } else if((((!(a2==1)&&((!(a21==1)&&(((a12==1)||(a11==1))||(a13==1)))||(a17==1)))&&!(a26==1))&&((a10==1)&&(((a27==19)&&(((a28==1)&&(((((a14==7)&&(a3==12))||((a3==13)&&(a14==3)))||((a3==13)&&(a14==4)))&&(input==1)))&&(a25==1)))&&(a5==1))))){ + a6 = 1; + a13 = 0; + a27 = 20; + a12 = 1; + a3 = 13; + a26 = 1; + a14 = 4; + a2 = 1; + return 24; + } else if(((((!(a26==1)&&((a27==19)&&(((a10==1)&&((((input==5)&&(((a14==4)||(a14==5))||(a14==6)))&&!(a21==1))&&(a7==1)))&&(a18==1))))&&(a20==1))&&!(a1==1))&&(!(a6==1)||((a3==14)&&(((a25==1)&&(a5==1))&&!(a2==1)))))){ + a17 = 0; + a7 = 1; + a21 = 0; + a26 = 1; + a2 = 1; + a3 = 12; + a14 = 3; + return -1; + } else if(((!(a23==1)&&((((a10==1)&&(((a12==1)&&(a26==1))&&!(a25==1)))||(a16==1))||(a19==1)))&&((!(a1==1)&&((((((input==5)&&((a14==5)||(a14==6)))&&(a3==13))&&!(a1==1))&&(a2==1))&&(a27==20)))&&(a6==1)))){ + a27 = 19; + a2 = 0; + a28 = 1; + a3 = 12; + a26 = 0; + a25 = 1; + a20 = 1; + a14 = 5; + return 22; + } else if((((!(a2==1)&&(((!(a28==1)||((a29==1)&&(a10==1)))&&(a27==20))&&!(a25==1)))||(a16==1))&&(!(a17==1)&&((((a20==1)&&((a3==13)&&(!(a26==1)&&((input==2)&&((a14==5)||(a14==6))))))&&(a20==1))&&(a15==1))))){ + a2 = 1; + a18 = 0; + a26 = 1; + a14 = 4; + a20 = 0; + return 22; + } else if((((((a7==1)&&(((a15==1)&&(((input==4)&&(a14==5))&&!(a13==1)))&&(a6==1)))&&(a29==1))&&(a26==1))&&(((a10==1)&&((a25==1)&&(((a2==1)&&((a7==1)&&(a12==1)))&&(a3==14))))&&(a27==21)))){ + a21 = 0; + a19 = 0; + return 24; + } else if((((a15==1)&&((!(a1==1)&&(!(a25==1)&&((input==3)&&((a14==5)||((a14==3)||(a14==4))))))&&(a10==1)))&&((a27==19)&&((a9==1)||(((((((a5==1)&&(a20==1))&&(a3==13))&&!(a2==1))&&(a26==1))&&(a12==1))&&(a15==1)))))){ + a18 = 1; + a25 = 1; + a2 = 1; + a15 = 1; + a17 = 0; + a3 = 12; + a14 = 3; + return -1; + } else if(((((!(a2==1)&&((a26==1)&&(((a17==1)&&((((input==1)&&((a14==3)||(a14==4)))&&!(a20==1))&&(a13==1)))&&(a27==19))))&&(a3==12))&&(a19==1))&&((a10==1)&&((((a5==1)&&(a21==1))&&!(a5==1))&&(a25==1))))){ + a17 = 1; + a14 = 6; + a3 = 13; + a4 = 0; + a20 = 0; + a25 = 0; + a2 = 1; + return -1; + } else if((((a11==1)||((a23==1)||((a3==13)&&((((a21==1)||((a6==1)&&(a2==1)))&&(a25==1))&&(a14==4)))))&&(!(a17==1)&&(((a26==1)&&(((a10==1)&&((input==3)&&(a27==20)))&&(a20==1)))&&(a28==1))))){ + a15 = 1; + a12 = 1; + a26 = 0; + a5 = 1; + a14 = 6; + return 22; + } else if((((((a2==1)&&((a10==1)&&(((((a7==1)&&(a29==1))&&!(a19==1))&&(a15==1))&&(a29==1))))&&(a14==3))&&(a26==1))&&((((((input==5)&&(a3==13))&&(a25==1))&&(a15==1))&&(a27==20))&&(a28==1)))){ + a26 = 0; + a6 = 1; + a13 = 0; + a9 = 0; + a3 = 12; + a14 = 6; + return 24; + } else if(((((a12==1)&&((!(a23==1)&&(((a10==1)&&(input==6))&&!(a25==1)))&&(a26==1)))&&(a12==1))&&((a16==1)||(((a14==7)&&(((a12==1)&&((a2==1)&&((a27==20)&&(a6==1))))&&!(a13==1)))&&(a3==13))))){ + a27 = 19; + a3 = 12; + a9 = 0; + a25 = 1; + a23 = 0; + a14 = 3; + a1 = 0; + return -1; + } else if((((a7==1)&&((!(a11==1)&&((((input==2)&&(((a14==3)&&(a3==13))||(((a14==6)&&(a3==12))||((a3==12)&&(a14==7)))))&&!(a17==1))&&!(a2==1)))&&!(a11==1)))&&(!(a21==1)&&(((a10==1)&&(((a25==1)&&(!(a29==1)||(a6==1)))&&(a27==20)))&&!(a26==1))))){ + a26 = 1; + a7 = 1; + a14 = 6; + a13 = 0; + a3 = 14; + a29 = 1; + a2 = 1; + return 24; + } else if(((!(a17==1)&&(((!(a15==1)||((((!(a25==1)&&((a29==1)&&(a3==12)))&&!(a11==1))&&(a2==1))&&(a10==1)))&&(a27==21))&&!(a26==1)))&&(((((input==4)&&((a14==3)||(a14==4)))&&!(a23==1))&&!(a21==1))&&(a28==1)))){ + a14 = 6; + a25 = 1; + a3 = 14; + a20 = 1; + a23 = 0; + a15 = 1; + a27 = 20; + return 26; + } else if(((((a7==1)&&((a10==1)&&(!(a15==1)||((a1==1)||(a29==1)))))&&(a7==1))&&((((a27==21)&&(((a26==1)&&(((((a14==6)||(a14==7))&&(input==4))&&(a25==1))&&!(a9==1)))&&!(a2==1)))&&(a7==1))&&(a3==13)))){ + a14 = 4; + a3 = 12; + a13 = 1; + a2 = 1; + a25 = 0; + a4 = 1; + return -1; + } else if(((((input==3)&&((((((a14==7)&&!(a25==1))&&(a3==14))&&(a27==19))&&!(a26==1))||((a26==1)&&((a27==20)&&((a3==12)&&((a14==3)&&(a25==1)))))))&&(a7==1))&&((((a13==1)||((!(a9==1)&&(!(a2==1)&&((a10==1)&&(a12==1))))||!(a7==1)))||!(a5==1))&&(a18==1)))){ + a2 = 1; + a27 = 20; + a5 = 1; + a26 = 1; + a17 = 0; + a3 = 12; + a14 = 7; + a25 = 1; + a15 = 1; + return 24; + } else if(((!(a25==1)&&(!(a12==1)||((!(a19==1)&&(((a3==12)&&((a20==1)&&!(a17==1)))&&!(a21==1)))&&(a6==1))))&&(((((((a14==6)&&(input==4))&&!(a26==1))&&(a2==1))&&(a27==20))&&(a10==1))&&!(a13==1)))){ + a26 = 1; + a25 = 1; + a27 = 19; + a13 = 0; + a1 = 0; + a14 = 3; + a21 = 0; + return -1; + } else if((((((a27==19)&&(((a7==1)&&(a28==1))||(a17==1)))&&(a10==1))&&(a12==1))&&(((!(a25==1)&&((a15==1)&&(!(a23==1)&&(!(a2==1)&&((input==4)&&(((a14==3)&&(a3==13))||(((a14==6)&&(a3==12))||((a3==12)&&(a14==7)))))))))&&!(a17==1))&&!(a26==1)))){ + a25 = 1; + a3 = 14; + a14 = 5; + a16 = 0; + a12 = 1; + a7 = 1; + return -1; + } else if((((a10==1)&&(!(a26==1)&&((!(a16==1)&&((a7==1)&&(((a25==1)&&(((a16==1)||(a28==1))&&!(a17==1)))&&(a2==1))))&&!(a1==1))))&&((a27==21)&&(((((a14==6)||((a14==4)||(a14==5)))&&(input==6))&&(a3==14))&&!(a23==1))))){ + a1 = 0; + a14 = 3; + a26 = 1; + a3 = 12; + a28 = 1; + a27 = 19; + a18 = 1; + return -1; + } else if((((((a15==1)&&(!(a13==1)&&((input==6)&&(a26==1))))&&(a3==14))&&!(a17==1))&&(!(a2==1)&&(!(a25==1)&&(((a14==5)&&(((a27==21)&&((a5==1)&&((a20==1)&&!(a1==1))))&&(a10==1)))&&!(a11==1)))))){ + if((a28==1)){ + a24 = 1; + a3 = 13; + a4 = 1; + a26 = 0; + a29 = 0; + }else{ + a2 = 1; + a14 = 6; + a3 = 12; + a27 = 19; + a7 = 0; + a25 = 1; + a8 = 0; + } + return 26; + } else if((((a28==1)&&(a20==1))&&((((!(a17==1)&&(((a10==1)&&(((((a12==1)&&(((input==4)&&(a27==20))&&(a7==1)))&&(a14==4))&&(a3==13))&&!(a2==1)))&&!(a25==1)))&&!(a26==1))&&!(a1==1))&&!(a16==1)))){ + a20 = 0; + a8 = 0; + a26 = 1; + a15 = 0; + return 26; + } else if((((((a19==1)&&((((!(a2==1)&&(a20==1))&&(a3==14))&&!(a26==1))&&(a10==1)))&&!(a20==1))&&!(a6==1))&&(!(a12==1)&&(!(a7==1)&&(!(a28==1)&&((a25==1)&&(((a14==3)&&(input==1))&&(a27==19)))))))){ + a25 = 0; + a15 = 0; + a26 = 1; + a12 = 0; + a22 = 0; + a14 = 4; + a2 = 1; + return -1; + } else if(((((((a23==1)||((a17==1)||((a26==1)&&((!(a2==1)&&((a20==1)&&(a27==21)))||(a17==1)))))&&!(a25==1))&&(a3==14))&&!(a17==1))&&(!(a23==1)&&((((input==5)&&((a14==3)||(a14==4)))&&(a10==1))&&(a29==1))))){ + if((a10==1)){ + a14 = 3; + a27 = 20; + a6 = 0; + a1 = 1; + a9 = 1; + a26 = 0; + a3 = 13; + }else{ + a14 = 7; + a27 = 19; + a28 = 0; + a16 = 1; + a1 = 1; + a3 = 13; + a2 = 1; + } + return 25; + } else if(((((a10==1)&&((a26==1)&&((!(a20==1)||(a18==1))&&(a27==21))))&&(a2==1))&&(((((a29==1)&&((a20==1)&&((a5==1)&&((a18==1)&&((input==5)&&((a14==7)||((a14==5)||(a14==6))))))))&&!(a25==1))&&!(a21==1))&&(a3==13)))){ + a26 = 0; + a18 = 1; + a3 = 14; + a27 = 20; + a14 = 4; + a25 = 1; + a29 = 1; + a6 = 1; + return 26; + } else if(((!(a2==1)&&(((((a27==21)&&(!(a25==1)&&(!(a23==1)&&((a7==1)&&((a23==1)||(a29==1))))))&&!(a17==1))||(a23==1))&&(a10==1)))&&((a14==3)&&((a3==14)&&(((input==4)&&!(a26==1))&&!(a19==1)))))){ + a14 = 7; + a27 = 19; + a23 = 1; + a26 = 1; + a2 = 1; + a24 = 1; + a25 = 1; + a4 = 1; + return 22; + } else if(((((a7==1)&&(((!(a25==1)&&(((a14==6)||(a14==7))&&(input==3)))&&(a27==19))&&(a26==1)))&&(a18==1))&&(((((a3==13)&&(((!(a21==1)&&(a7==1))&&!(a2==1))&&(a10==1)))||!(a28==1))||!(a5==1))&&!(a11==1)))){ + a14 = 5; + a6 = 1; + a20 = 1; + a27 = 21; + a3 = 14; + a16 = 0; + a25 = 1; + a2 = 1; + return 26; + } else if(((!(a1==1)&&((a25==1)&&((((input==1)&&(((a14==4)||(a14==5))||(a14==6)))&&(a6==1))&&(a3==14))))&&(((a2==1)&&(!(a19==1)&&(((a6==1)&&((a27==21)&&(((a19==1)||(a29==1))&&!(a26==1))))&&(a10==1))))&&(a15==1)))){ + a14 = 3; + a27 = 19; + a16 = 0; + a3 = 12; + a26 = 1; + a1 = 0; + return -1; + } else if(((!(a2==1)&&((a10==1)&&((a3==13)&&(((a27==20)&&((a14==4)&&(a12==1)))||(a17==1)))))&&((a28==1)&&((a12==1)&&(!(a25==1)&&((!(a16==1)&&((!(a26==1)&&(input==2))&&(a5==1)))&&(a5==1))))))){ + if((a26==1)){ + a25 = 1; + a17 = 1; + a14 = 5; + a27 = 21; + a11 = 1; + a2 = 1; + a8 = 1; + }else{ + a1 = 1; + a27 = 19; + a14 = 5; + a5 = 0; + a2 = 1; + a21 = 1; + } + return 26; + } else if((((a26==1)&&((a27==21)&&(!(a19==1)&&(!(a2==1)&&(!(a23==1)&&((input==3)&&((a14==5)||((a14==3)||(a14==4)))))))))&&((a9==1)||(((a25==1)&&(!(a6==1)||(!(a20==1)||((a10==1)&&((a29==1)||!(a20==1))))))&&(a3==14))))){ + a14 = 5; + a6 = 0; + a27 = 19; + a18 = 0; + a3 = 13; + a25 = 0; + return 22; + } else if(((!(a1==1)&&((((a29==1)&&(!(a25==1)&&(!(a2==1)&&((input==3)&&((a14==5)||((a14==3)||(a14==4)))))))&&(a29==1))&&(a29==1)))&&(((a27==19)&&((((a10==1)&&((a26==1)&&(a20==1)))&&(a3==14))||!(a6==1)))||!(a18==1)))){ + a14 = 5; + a17 = 0; + a25 = 1; + a29 = 1; + a27 = 20; + a2 = 1; + return 25; + } else if((((a10==1)&&(!(a6==1)||((a13==1)||((a18==1)&&(a3==12)))))&&(!(a26==1)&&((!(a25==1)&&((((a20==1)&&(((((a14==4)||(a14==5))&&(input==4))&&(a6==1))&&(a7==1)))&&(a7==1))&&!(a2==1)))&&(a27==19))))){ + a1 = 0; + a27 = 20; + a2 = 1; + a7 = 1; + a3 = 14; + a14 = 3; + a18 = 1; + a25 = 1; + return 25; + } else if((((a26==1)&&((((((a18==1)&&(((input==6)&&(((a14==5)||(a14==6))||(a14==7)))&&(a10==1)))&&!(a11==1))&&!(a23==1))&&(a5==1))&&!(a2==1)))&&(((a21==1)||((((a25==1)&&(a15==1))&&(a20==1))&&(a3==12)))&&(a27==19)))){ + a3 = 13; + a27 = 21; + a20 = 1; + a2 = 1; + a13 = 0; + a12 = 1; + a14 = 5; + return 25; + } else if((((a17==1)||((((a25==1)&&(((a10==1)&&(((((a14==3)&&(a20==1))&&(a3==14))||!(a15==1))&&!(a21==1)))&&!(a2==1)))&&(a27==19))||(a17==1)))&&(!(a16==1)&&((a7==1)&&((input==4)&&(a26==1)))))){ + a2 = 1; + a26 = 0; + a18 = 1; + a25 = 0; + a14 = 5; + a13 = 0; + a7 = 1; + return -1; + } else if((((!(a25==1)&&(!(a17==1)&&((a18==1)&&((a18==1)&&(!(a2==1)&&((a27==21)&&((((a3==13)&&(a14==3))||(((a3==12)&&(a14==6))||((a3==12)&&(a14==7))))&&(input==1))))))))&&(a10==1))&&(((((a26==1)&&(a28==1))||!(a18==1))&&(a20==1))&&(a12==1)))){ + a0 = 0; + a3 = 13; + a27 = 19; + a15 = 0; + a14 = 5; + a25 = 1; + a2 = 1; + return 22; + } else if((((a27==21)&&((a18==1)&&(((a3==12)&&(((a10==1)&&(((a14==3)||(a14==4))&&(input==5)))&&(a6==1)))&&!(a2==1))))&&((!(a25==1)&&(((!(a26==1)&&((a6==1)&&(a5==1)))&&(a12==1))&&!(a23==1)))&&!(a1==1)))){ + a7 = 0; + a9 = 1; + a27 = 19; + a14 = 7; + a3 = 13; + a17 = 1; + a25 = 1; + a2 = 1; + return 25; + } else if((((!(a2==1)&&((a21==1)||(a12==1)))&&!(a11==1))&&((a20==1)&&((a10==1)&&(((((((((((a3==14)&&(a14==6))&&(a26==1))||((a26==1)&&((a3==14)&&(a14==7))))||(!(a26==1)&&((a3==12)&&(a14==3))))&&(input==2))&&(a27==19))&&(a25==1))&&!(a23==1))&&!(a17==1))&&(a6==1)))))){ + a14 = 4; + a2 = 1; + a3 = 13; + a27 = 20; + a7 = 1; + a20 = 1; + a26 = 1; + a13 = 0; + return 25; + } else if(((!(a13==1)&&(!(a17==1)&&((a6==1)&&(((((((a3==14)&&(a14==7))&&(a26==1))||(!(a26==1)&&((a3==12)&&(a14==3))))||(((a3==12)&&(a14==4))&&!(a26==1)))&&(input==6))&&!(a2==1)))))&&((((((!(a25==1)&&(a20==1))&&(a27==20))&&(a10==1))&&(a18==1))&&(a15==1))||(a1==1)))){ + if((a11==1)){ + a4 = 1; + a8 = 1; + a22 = 0; + a2 = 1; + a14 = 4; + a27 = 19; + a3 = 13; + a26 = 1; + }else{ + a3 = 12; + a27 = 19; + a11 = 1; + a14 = 5; + a15 = 0; + a28 = 0; + a26 = 0; + } + return 25; + } else if((((a7==1)&&(((!(a2==1)&&(a7==1))&&(a5==1))&&!(a25==1)))&&((a12==1)&&((!(a26==1)&&(((((a29==1)&&((((a14==5)||(a14==6))&&(input==3))&&(a27==21)))&&!(a23==1))&&(a10==1))&&(a3==12)))&&(a29==1))))){ + if((a0==1)){ + a14 = 6; + a16 = 1; + a26 = 1; + a27 = 20; + a29 = 0; + a22 = 1; + a2 = 1; + }else{ + a21 = 1; + a27 = 20; + a2 = 1; + a14 = 6; + a3 = 13; + a24 = 1; + } + return -1; + } else if(((!(a2==1)&&((a3==14)&&(((((a13==1)||((!(a12==1)||((a10==1)&&(a15==1)))&&(a27==21)))||(a21==1))&&!(a16==1))&&!(a26==1))))&&(((((input==6)&&(a14==4))&&!(a21==1))&&(a12==1))&&!(a25==1)))){ + if((a15==1)){ + a3 = 12; + a29 = 0; + a28 = 0; + a26 = 1; + a16 = 1; + a14 = 6; + a27 = 20; + }else{ + a26 = 1; + a14 = 7; + a27 = 19; + a0 = 1; + a3 = 13; + a5 = 0; + a2 = 1; + } + return -1; + } else if((((a27==20)&&(((a6==1)||!(a6==1))||(a17==1)))&&((!(a21==1)&&((!(a23==1)&&((((a26==1)&&(((a10==1)&&((a2==1)&&(input==1)))&&(a25==1)))&&!(a13==1))&&(a3==14)))&&!(a1==1)))&&(a14==5)))){ + a15 = 1; + a27 = 19; + a13 = 0; + a14 = 3; + a3 = 12; + a19 = 0; + return -1; + } else if((((((a6==1)&&(((((a2==1)&&((input==5)&&((((a3==12)&&(a14==3))&&!(a26==1))||(((a26==1)&&((a14==6)&&(a3==14)))||(((a14==7)&&(a3==14))&&(a26==1))))))&&(a18==1))&&(a15==1))&&!(a19==1)))&&(a27==21))&&!(a9==1))&&(((a19==1)||((a20==1)&&(a25==1)))&&(a10==1)))){ + a15 = 1; + a20 = 1; + a26 = 1; + a29 = 1; + a27 = 19; + a14 = 3; + a3 = 12; + return -1; + } else if(((((a27==21)&&((!(a26==1)&&(((input==1)&&(a10==1))&&!(a2==1)))&&(a28==1)))&&(a15==1))&&(!(a17==1)&&((a13==1)||(!(a6==1)||((((a5==1)&&((a14==7)&&(a5==1)))&&(a3==13))&&(a25==1))))))){ + a3 = 14; + a27 = 19; + a2 = 1; + a17 = 1; + a14 = 3; + a28 = 0; + a8 = 1; + a25 = 0; + return 24; + } else if((((a3==12)&&((a10==1)&&((a11==1)&&((!(a15==1)&&(a12==1))&&(a9==1)))))&&((a25==1)&&(!(a6==1)&&((a26==1)&&((a27==19)&&((!(a18==1)&&(((input==2)&&((a14==3)||(a14==4)))&&!(a2==1)))&&!(a12==1)))))))){ + a2 = 1; + a26 = 0; + a24 = 1; + a11 = 1; + a14 = 5; + a8 = 1; + return -1; + } else if((((((!(a19==1)&&((a11==1)||((a7==1)&&(a27==21))))&&(a2==1))||(a13==1))&&(a10==1))&&(!(a19==1)&&((((((((a26==1)&&((a14==6)&&(a3==14)))||((a26==1)&&((a3==14)&&(a14==7))))||(!(a26==1)&&((a14==3)&&(a3==12))))&&(input==6))&&(a25==1))&&!(a21==1))&&!(a13==1))))){ + a27 = 20; + a29 = 1; + a6 = 1; + a3 = 12; + a26 = 0; + a14 = 5; + a19 = 0; + return 25; + } else if(((((a25==1)&&(((a7==1)&&!(a11==1))&&(a10==1)))&&!(a11==1))&&((a12==1)&&(((a12==1)&&(!(a26==1)&&((!(a11==1)&&((a2==1)&&((((a14==5)||(a14==6))&&(input==4))&&!(a17==1))))&&(a27==20))))&&(a3==14))))){ + a26 = 1; + a14 = 3; + a12 = 1; + a27 = 19; + a21 = 0; + a11 = 0; + a3 = 12; + return -1; + } else if(((((a3==13)&&(((a14==4)||(a14==5))&&(input==6)))&&!(a13==1))&&((a27==19)&&((((((a12==1)&&(!(a26==1)&&((((a15==1)&&!(a2==1))||!(a12==1))||!(a12==1))))&&(a7==1))&&(a10==1))&&(a20==1))&&!(a25==1))))){ + a14 = 4; + a2 = 1; + a17 = 0; + a1 = 0; + a25 = 1; + a20 = 1; + return -1; + } else if((((a26==1)&&((!(a5==1)||(a6==1))&&(a28==1)))&&((!(a17==1)&&(!(a9==1)&&(((a27==20)&&((((!(a13==1)&&((input==1)&&!(a2==1)))&&!(a25==1))&&(a14==5))&&(a28==1)))&&(a10==1))))&&(a3==13)))){ + a26 = 0; + a14 = 4; + a8 = 0; + a27 = 21; + a1 = 1; + a9 = 1; + return 24; + } else if((((a28==1)&&(((((input==1)&&(a3==13))&&(a27==21))&&!(a16==1))&&(a25==1)))&&(((((a29==1)&&((((a29==1)&&(!(a2==1)&&(a18==1)))&&(a18==1))||(a19==1)))&&(a14==3))&&(a10==1))&&!(a26==1)))){ + if((a12==1)){ + a25 = 0; + a26 = 1; + a3 = 14; + a1 = 1; + a7 = 0; + a2 = 1; + a13 = 1; + a27 = 19; + }else{ + a2 = 1; + a0 = 0; + a13 = 1; + a14 = 7; + a23 = 1; + a3 = 14; + } + return 22; + } else if(((!(a25==1)&&((!(a18==1)||(!(a15==1)||((a18==1)&&(!(a15==1)||(!(a21==1)&&(a5==1))))))&&(a27==20)))&&((a10==1)&&((a3==12)&&((a14==4)&&(!(a2==1)&&(((a26==1)&&(input==2))&&(a29==1)))))))){ + a7 = 1; + a14 = 3; + a25 = 1; + a21 = 0; + a2 = 1; + a26 = 0; + a3 = 14; + return 24; + } else if((((a25==1)&&((((a5==1)&&((((a27==19)&&(((a14==6)||((a14==4)||(a14==5)))&&(input==5)))&&(a28==1))&&!(a9==1)))&&!(a2==1))&&(a29==1)))&&((((a10==1)&&(((a6==1)&&!(a16==1))&&(a3==12)))&&!(a26==1))||(a17==1)))){ + a13 = 0; + a28 = 1; + a27 = 21; + a2 = 1; + a7 = 1; + a14 = 5; + return 22; + } else if((((a10==1)&&((a25==1)&&((((a27==20)&&(((a29==1)&&(!(a11==1)&&(((a15==1)&&(a2==1))&&!(a1==1))))||(a21==1)))&&(a26==1))&&(a3==13))))&&((!(a23==1)&&(((a14==5)||(a14==6))&&(input==1)))&&!(a23==1)))){ + a14 = 6; + a3 = 12; + a25 = 0; + a15 = 1; + a19 = 0; + a13 = 0; + return 26; + } else if(((((a17==1)||((((a20==1)&&(!(a25==1)&&(a20==1)))&&(a27==21))&&(a29==1)))&&!(a19==1))&&(((((a14==3)&&((a3==12)&&(((input==4)&&(a10==1))&&!(a19==1))))&&(a2==1))&&(a26==1))&&(a5==1)))){ + a17 = 0; + a3 = 13; + a27 = 20; + a16 = 0; + a14 = 4; + a25 = 1; + return 22; + } else if(((((((a5==1)&&!(a25==1))&&(a3==12))||(a11==1))||!(a5==1))&&((a18==1)&&((!(a23==1)&&(((((((a14==5)&&(input==2))&&(a5==1))&&(a27==21))&&(a10==1))&&!(a26==1))&&(a2==1)))&&!(a13==1))))){ + a1 = 0; + a26 = 1; + a3 = 13; + a25 = 1; + a27 = 20; + a17 = 0; + a14 = 4; + a29 = 1; + return 25; + } else if((((!(a25==1)&&(((!(a2==1)&&((input==4)&&(a3==14)))&&(a27==21))&&(a15==1)))&&(a26==1))&&(((((!(a6==1)||((a10==1)&&((a23==1)||(a28==1))))&&(a14==5))||(a13==1))&&!(a9==1))&&(a20==1)))){ + a25 = 1; + a19 = 1; + a3 = 12; + a14 = 7; + a26 = 0; + a27 = 19; + a2 = 1; + a9 = 1; + a7 = 0; + return 22; + } else if((((((((a26==1)&&(input==6))&&(a14==4))&&(a27==20))&&!(a9==1))&&(a6==1))&&((a10==1)&&((((((a3==13)&&(((a6==1)&&!(a13==1))&&(a2==1)))&&(a25==1))||!(a12==1))||(a13==1))||!(a7==1))))){ + a3 = 12; + a14 = 3; + a18 = 1; + a19 = 0; + a27 = 19; + return -1; + } else if((((a26==1)&&((((a14==5)&&(((a11==1)||((a18==1)&&(a15==1)))&&(a2==1)))&&(a10==1))&&(a27==21)))&&((a6==1)&&(!(a9==1)&&((a12==1)&&(!(a19==1)&&((a3==13)&&((input==5)&&(a25==1))))))))){ + a15 = 1; + a27 = 20; + a5 = 1; + a17 = 0; + a14 = 3; + return 24; + } else if(((((!(a21==1)&&((((input==4)&&((((a3==12)&&(a14==7))||((a3==13)&&(a14==3)))||((a14==4)&&(a3==13))))&&(a10==1))&&(a2==1)))&&(a27==20))&&!(a25==1))&&((!(a29==1)||(!(a9==1)&&(((a26==1)&&((a9==1)||(a15==1)))||!(a7==1))))||(a19==1)))){ + a2 = 0; + a11 = 0; + a5 = 1; + a27 = 19; + a3 = 14; + a14 = 5; + a25 = 1; + return 25; + } else if((((a10==1)&&((a27==20)&&((!(a11==1)&&((a25==1)&&((((a14==6)||(a14==7))&&(input==4))&&!(a9==1))))&&(a29==1))))&&((a26==1)&&((((((a15==1)||(a19==1))&&(a3==12))||!(a15==1))&&!(a2==1))||(a9==1))))){ + a2 = 1; + a19 = 0; + a3 = 13; + a16 = 0; + a14 = 6; + a26 = 0; + a20 = 1; + return 22; + } else if(((((((a2==1)&&((((a7==1)&&((input==3)&&((a14==4)||(a14==5))))&&(a3==12))&&(a27==20)))&&(a26==1))&&!(a21==1))&&(a18==1))&&((a7==1)&&(((a20==1)&&(((a10==1)&&(a28==1))&&!(a25==1)))||(a11==1))))){ + a27 = 19; + a14 = 3; + a9 = 0; + a20 = 1; + a12 = 1; + a25 = 1; + return -1; + } else if(((!(a2==1)&&((((!(a17==1)&&((a27==21)&&(!(a18==1)||((a25==1)&&(a29==1)))))&&(a29==1))||(a11==1))&&(a10==1)))&&(((((a3==14)&&((((a14==3)||(a14==4))||(a14==5))&&(input==2)))&&!(a26==1))&&(a20==1))&&(a7==1)))){ + a2 = 1; + a3 = 12; + a0 = 1; + a4 = 1; + a27 = 19; + a14 = 4; + a25 = 0; + a24 = 1; + return -1; + } else if(((((a2==1)&&((!(a6==1)&&(((!(a25==1)&&(a12==1))&&(a26==1))&&(a9==1)))&&(a27==21)))&&(a10==1))&&((a3==14)&&(!(a15==1)&&((a19==1)&&(((((a14==5)||((a14==3)||(a14==4)))&&(input==5))&&(a11==1))&&(a11==1))))))){ + a3 = 13; + a28 = 0; + a4 = 0; + a14 = 4; + a27 = 19; + return 26; + } else if(((((a25==1)&&((a3==13)&&(((input==1)&&((a14==4)||(a14==5)))&&(a29==1))))&&!(a11==1))&&(((a6==1)&&((a27==20)&&(((!(a2==1)&&(((a15==1)&&!(a11==1))&&(a10==1)))&&!(a23==1))&&!(a26==1))))||(a17==1)))){ + a26 = 1; + a15 = 1; + a14 = 4; + a3 = 12; + a27 = 19; + a21 = 0; + a29 = 1; + a25 = 0; + return 22; + } else if((((a14==3)&&((!(a19==1)&&(!(a21==1)&&((a27==19)&&((a3==13)&&((a26==1)&&(input==4))))))&&(a10==1)))&&(((!(a23==1)&&(!(a2==1)&&(((a6==1)&&!(a17==1))&&!(a16==1))))&&(a25==1))&&(a7==1)))){ + a27 = 20; + a12 = 1; + a2 = 1; + a14 = 4; + a19 = 0; + a16 = 0; + return 25; + } else if(((((!(a2==1)&&(!(a11==1)&&((((a21==1)||((a18==1)&&(a15==1)))&&!(a16==1))&&!(a26==1))))&&(a27==20))&&!(a11==1))&&(!(a23==1)&&((a10==1)&&((a25==1)&&(((input==2)&&((a14==5)||(a14==6)))&&(a3==14))))))){ + a2 = 1; + a14 = 4; + a23 = 0; + a7 = 1; + a3 = 13; + a27 = 21; + a1 = 0; + return 22; + } else if((((!(a11==1)&&((a28==1)&&((((a15==1)&&((a26==1)&&(input==3)))&&(a14==5))&&!(a17==1))))&&(a3==14))&&((((((a2==1)&&((a5==1)||!(a15==1)))&&(a20==1))&&(a10==1))&&(a25==1))&&(a27==20)))){ + a25 = 0; + a26 = 0; + a21 = 0; + a7 = 1; + a12 = 1; + a14 = 7; + a3 = 13; + return 26; + } else if((((!(a11==1)&&((((a27==19)&&(a12==1))&&(a29==1))||!(a20==1)))&&(a26==1))&&((a10==1)&&(!(a2==1)&&((((!(a9==1)&&(((input==1)&&((a14==7)||((a14==5)||(a14==6))))&&(a12==1)))&&(a6==1))&&(a25==1))&&(a3==12)))))){ + a3 = 13; + a16 = 0; + a14 = 5; + a25 = 0; + a2 = 1; + a29 = 1; + return -1; + } else if((((a27==20)&&((((a25==1)&&((a18==1)&&(((a29==1)&&(a3==14))||!(a20==1))))||!(a29==1))&&(a26==1)))&&((a10==1)&&((((a18==1)&&((a20==1)&&(((a14==6)||(a14==7))&&(input==1))))&&!(a1==1))&&!(a2==1))))){ + a17 = 0; + a27 = 19; + a1 = 0; + a3 = 12; + a14 = 3; + a20 = 1; + a2 = 1; + return -1; + } else if((((a28==1)&&((((((a14==3)||(a14==4))&&(input==3))&&!(a25==1))&&(a26==1))&&(a10==1)))&&(!(a29==1)||((a1==1)||((a13==1)||((!(a2==1)&&((((a12==1)&&(a27==21))&&(a3==14))||(a21==1)))&&(a7==1))))))){ + a0 = 1; + a25 = 1; + a20 = 0; + a27 = 20; + a2 = 1; + a19 = 1; + a3 = 12; + a14 = 7; + return 26; + } else if((((a1==1)||(!(a7==1)||((a3==12)&&(!(a9==1)&&((a28==1)&&!(a26==1))))))&&((((a2==1)&&(((a10==1)&&((a12==1)&&((((a14==3)||(a14==4))&&(input==4))&&(a7==1))))&&(a7==1)))&&(a27==20))&&(a25==1)))){ + a27 = 21; + a18 = 1; + a5 = 1; + a13 = 0; + a26 = 1; + a14 = 5; + return 25; + } else if(((!(a13==1)&&(!(a16==1)&&(!(a21==1)&&((a11==1)||(a20==1)))))&&(!(a2==1)&&((((a10==1)&&((((((a3==14)&&((a14==7)&&!(a25==1)))&&(a27==19))&&!(a26==1))||((a26==1)&&((a27==20)&&(((a25==1)&&(a14==3))&&(a3==12)))))&&(input==4)))&&(a28==1))&&!(a17==1))))){ + a7 = 1; + a5 = 1; + a2 = 1; + a13 = 0; + a3 = 12; + a14 = 3; + a25 = 1; + a27 = 19; + a26 = 1; + return -1; + } else if((((a18==1)&&(!(a9==1)&&((((a27==20)&&((input==1)&&(((((a14==7)&&(a25==1))&&(a3==14))&&!(a26==1))||((((a14==3)&&!(a25==1))&&(a3==12))&&(a26==1)))))&&(a5==1))&&!(a19==1))))&&(!(a16==1)&&((a11==1)||(((a6==1)&&(a10==1))&&(a2==1)))))){ + a25 = 0; + a16 = 0; + a23 = 0; + a3 = 14; + a27 = 21; + a14 = 4; + a26 = 0; + a6 = 1; + return 26; + } else if(((!(a26==1)&&((a12==1)&&(a10==1)))&&((a27==20)&&((a3==14)&&((a25==1)&&(!(a23==1)&&((a7==1)&&(((a12==1)&&(((a29==1)&&(((input==6)&&((a14==5)||(a14==6)))&&!(a2==1)))&&(a20==1)))&&(a18==1))))))))){ + a17 = 0; + a29 = 1; + a2 = 1; + a14 = 3; + a3 = 12; + a25 = 0; + a26 = 1; + return -1; + } else if((((a29==1)&&(!(a11==1)&&(((((a26==1)&&(((((input==3)&&(a25==1))&&(a3==13))&&!(a11==1))&&(a14==3)))&&(a28==1))&&(a27==19))&&(a10==1))))&&(!(a6==1)||((!(a2==1)&&(a20==1))&&(a20==1))))){ + if((a17==1)){ + a11 = 0; + a25 = 0; + a15 = 1; + a14 = 4; + a3 = 14; + a26 = 0; + a7 = 1; + }else{ + a3 = 12; + a25 = 0; + a27 = 20; + a29 = 1; + a18 = 1; + a15 = 1; + } + return 22; + } else if(((((!(a21==1)&&((a10==1)&&((!(a19==1)&&((a2==1)&&((input==6)&&((a14==5)||((a14==3)||(a14==4))))))&&!(a23==1))))&&!(a13==1))&&!(a26==1))&&((a3==13)&&(((!(a12==1)||((a5==1)&&(a25==1)))&&(a27==21))||!(a7==1))))){ + a26 = 1; + a28 = 1; + a27 = 19; + a29 = 1; + a3 = 12; + a14 = 3; + return -1; + } else if(((((a2==1)&&(!(a21==1)&&((a26==1)&&(((a15==1)||(a11==1))||!(a15==1)))))&&(a10==1))&&((a3==14)&&(!(a9==1)&&(((((a27==21)&&((((a14==3)||(a14==4))||(a14==5))&&(input==5)))&&(a15==1))&&!(a25==1))&&(a29==1)))))){ + a2 = 0; + a26 = 0; + a1 = 0; + a14 = 4; + a27 = 19; + a29 = 1; + return 24; + } else if(((((a12==1)&&((a10==1)&&(!(a11==1)&&(((input==6)&&((a14==5)||(a14==6)))&&!(a26==1)))))&&(a3==12))&&((!(a6==1)||(((a27==21)&&(!(a2==1)&&(!(a17==1)&&((a29==1)&&(a7==1)))))&&(a18==1)))&&!(a25==1)))){ + if((a8==1)){ + a5 = 0; + a3 = 14; + a17 = 1; + a27 = 20; + a8 = 0; + a2 = 1; + a14 = 6; + }else{ + a26 = 1; + a14 = 6; + a2 = 1; + a8 = 1; + a15 = 0; + a27 = 19; + a3 = 13; + a19 = 1; + } + return -1; + } else if(((((a26==1)&&((a3==14)&&((((((a14==3)||(a14==4))&&(input==1))&&(a29==1))&&(a27==21))&&(a10==1))))&&(a28==1))&&((((((a23==1)||((a6==1)&&!(a16==1)))&&!(a2==1))&&(a7==1))||(a11==1))&&!(a25==1)))){ + a3 = 13; + a14 = 5; + a25 = 1; + a4 = 1; + a0 = 1; + a27 = 20; + a26 = 0; + a8 = 1; + return -1; + } else if(((((((a28==1)&&!(a21==1))||!(a20==1))&&(a27==21))&&(a3==14))&&(((!(a23==1)&&(((((((input==3)&&(((a14==3)||(a14==4))||(a14==5)))&&(a26==1))&&(a5==1))&&!(a23==1))&&(a2==1))&&!(a25==1)))&&!(a23==1))&&(a10==1)))){ + a18 = 1; + a3 = 13; + a27 = 20; + a15 = 1; + a14 = 4; + a25 = 1; + a9 = 0; + return 26; + } else if((((((((!(a2==1)&&((((a10==1)&&((input==5)&&(a25==1)))&&(a12==1))&&(a28==1)))&&(a18==1))&&(a27==19))&&!(a19==1))&&(a26==1))&&(a14==4))&&(((!(a7==1)||(a15==1))||!(a12==1))&&(a3==13)))){ + a14 = 3; + a2 = 1; + a29 = 1; + a3 = 12; + a23 = 0; + a5 = 1; + return -1; + } else if(((((a23==1)||(((((a25==1)&&(a29==1))&&(a14==6))&&(a27==20))||!(a12==1)))&&(a6==1))&&((a5==1)&&(((a15==1)&&((((!(a26==1)&&(input==3))&&!(a16==1))&&!(a2==1))&&(a10==1)))&&(a3==13))))){ + a2 = 1; + a1 = 0; + a14 = 4; + a26 = 1; + a12 = 1; + a15 = 1; + return 26; + } else if(((!(a25==1)&&(((!(a16==1)&&(((!(a18==1)||((a10==1)&&(a6==1)))&&!(a2==1))&&!(a21==1)))&&(a27==21))&&!(a11==1)))&&((((a3==13)&&((a15==1)&&(((a14==4)||(a14==5))&&(input==1))))&&!(a26==1))&&!(a19==1)))){ + a11 = 1; + a14 = 7; + a25 = 1; + a3 = 14; + a5 = 0; + a26 = 1; + a27 = 19; + a16 = 1; + a2 = 1; + return 26; + } else if(((!(a5==1)&&((a27==19)&&(!(a6==1)&&(!(a7==1)&&((a19==1)&&(((a5==1)&&!(a25==1))&&(a3==13)))))))&&((a26==1)&&((a16==1)&&(!(a2==1)&&(((a11==1)&&(((a14==5)||((a14==3)||(a14==4)))&&(input==6)))&&(a10==1))))))){ + a22 = 0; + a26 = 0; + a4 = 1; + a5 = 0; + a2 = 1; + a14 = 3; + return 25; + } else if(((((a6==1)&&(!(a13==1)&&((a5==1)&&((a10==1)&&(!(a2==1)&&((input==6)&&((a14==3)||(a14==4))))))))&&!(a1==1))&&((a28==1)&&((a15==1)&&((a26==1)&&((a27==21)&&((!(a25==1)&&(a12==1))&&(a3==14)))))))){ + if((a28==1)){ + a14 = 3; + a2 = 1; + a25 = 1; + a28 = 0; + a3 = 13; + a8 = 0; + a18 = 0; + }else{ + a4 = 1; + a26 = 0; + a14 = 4; + a15 = 0; + a2 = 1; + a27 = 19; + a12 = 0; + } + return 22; + } else if((((((((a3==14)&&((a27==19)&&((!(a18==1)||(a29==1))||(a17==1))))&&!(a17==1))||!(a12==1))&&!(a23==1))&&!(a2==1))&&((a14==5)&&((a25==1)&&((((a26==1)&&(input==4))&&(a10==1))&&!(a11==1)))))){ + if((a12==1)){ + a13 = 0; + a26 = 0; + a14 = 7; + a7 = 1; + a6 = 1; + a25 = 0; + a3 = 13; + }else{ + a29 = 1; + a27 = 20; + a21 = 0; + a3 = 12; + a2 = 1; + a11 = 0; + a14 = 7; + } + return 22; + } else if((((!(a2==1)&&(((a10==1)&&((a18==1)&&((((!(a19==1)&&(a29==1))&&!(a11==1))&&(a26==1))&&(a3==12))))&&!(a17==1)))&&(a27==20))&&((((!(a25==1)&&(input==2))&&!(a9==1))&&(a29==1))&&(a14==6)))){ + a25 = 1; + a2 = 1; + a28 = 1; + a18 = 1; + a27 = 19; + a14 = 3; + a21 = 0; + return -1; + } else if(((((((a7==1)&&(a14==3))||(a21==1))&&(a20==1))&&(a2==1))&&(((((!(a9==1)&&((((a25==1)&&((a26==1)&&(input==2)))&&(a15==1))&&!(a23==1)))&&!(a19==1))&&(a10==1))&&(a3==13))&&(a27==20)))){ + a15 = 1; + a5 = 1; + a21 = 0; + a26 = 0; + a14 = 4; + return 26; + } else if((((a29==1)&&((((a27==21)&&((a25==1)&&(a12==1)))&&!(a19==1))||!(a28==1)))&&((((!(a2==1)&&((a10==1)&&((input==2)&&((!(a26==1)&&((a14==3)&&(a3==12)))||((((a3==14)&&(a14==6))&&(a26==1))||(((a3==14)&&(a14==7))&&(a26==1)))))))&&!(a21==1))&&!(a16==1))&&(a12==1)))){ + a29 = 0; + a9 = 1; + a14 = 7; + a16 = 1; + a27 = 20; + a3 = 13; + a26 = 1; + return 25; + } else if((((!(a11==1)&&(((a10==1)&&((((a18==1)&&((((a27==20)&&(input==5))&&(a14==6))&&(a3==14)))&&!(a26==1))&&(a2==1)))&&!(a11==1)))&&(a7==1))&&(!(a29==1)||(!(a25==1)&&((a18==1)&&(a28==1)))))){ + a26 = 1; + a3 = 12; + a23 = 0; + a27 = 19; + a1 = 0; + a25 = 1; + a21 = 0; + a14 = 3; + return -1; + } else if(((!(a7==1)&&(((!(a15==1)&&(!(a18==1)&&(((input==2)&&(a25==1))&&!(a2==1))))&&(a27==19))&&!(a7==1)))&&((((a26==1)&&(((a10==1)&&((a7==1)&&(a3==14)))&&(a14==4)))&&!(a20==1))&&(a21==1)))){ + a1 = 1; + a3 = 13; + a14 = 6; + a2 = 1; + a26 = 0; + a5 = 0; + a24 = 0; + return 22; + } else if(((!(a13==1)&&((a17==1)||(((((a2==1)&&((a10==1)&&(a15==1)))&&(a26==1))||!(a5==1))&&!(a9==1))))&&(!(a23==1)&&((a25==1)&&((((((a3==14)&&(a14==4))||(((a3==13)&&(a14==7))||((a14==3)&&(a3==14))))&&(input==2))&&(a27==20))&&(a18==1)))))){ + a14 = 3; + a3 = 13; + a18 = 1; + a7 = 1; + a25 = 0; + a23 = 0; + return 25; + } else if(((!(a9==1)&&(((a2==1)&&((!(a16==1)&&(((input==3)&&((a14==6)||(a14==7)))&&(a18==1)))&&!(a25==1)))&&!(a13==1)))&&(((((((a7==1)&&(a27==21))&&!(a26==1))&&(a3==13))&&(a10==1))&&(a7==1))||!(a12==1)))){ + a14 = 6; + a13 = 0; + a17 = 0; + a3 = 12; + a16 = 0; + a25 = 1; + return 22; + } else if((((a3==12)&&((((!(a5==1)||(((a15==1)||!(a18==1))||(a19==1)))&&!(a2==1))&&(a25==1))&&!(a26==1)))&&((((a28==1)&&((a15==1)&&((a7==1)&&(((a14==5)||((a14==3)||(a14==4)))&&(input==1)))))&&(a27==20))&&(a10==1)))){ + a5 = 1; + a14 = 4; + a26 = 1; + a2 = 1; + a23 = 0; + a1 = 0; + a3 = 13; + return 22; + } else if((((a10==1)&&(!(a25==1)&&(!(a23==1)&&((!(a12==1)||((a19==1)||(a12==1)))&&(a26==1)))))&&(!(a2==1)&&((a20==1)&&(((a7==1)&&(!(a13==1)&&((((a14==5)||((a14==3)||(a14==4)))&&(input==2))&&(a3==14))))&&(a27==19)))))){ + a3 = 13; + a27 = 20; + a1 = 0; + a29 = 1; + a2 = 1; + a15 = 1; + a25 = 1; + a14 = 4; + return 22; + } else if((((a14==5)&&((((a15==1)&&((((input==2)&&(a25==1))&&(a2==1))&&(a10==1)))&&!(a1==1))&&(a26==1)))&&((((((a7==1)&&((a29==1)&&(a20==1)))&&(a3==14))&&(a27==21))||!(a29==1))||!(a6==1)))){ + a23 = 0; + a20 = 1; + a12 = 1; + a27 = 20; + a3 = 12; + a14 = 7; + a26 = 0; + return 25; + } else if((((a20==1)&&((a10==1)&&((((!(a2==1)&&((((a14==7)&&(input==2))&&(a6==1))&&!(a21==1)))&&(a20==1))&&(a15==1))&&!(a26==1))))&&((a27==21)&&(!(a9==1)&&((a25==1)&&((a12==1)&&(a3==13))))))){ + if((a12==1)){ + a15 = 0; + a2 = 1; + a25 = 0; + a14 = 6; + a11 = 1; + a9 = 1; + }else{ + a0 = 0; + a12 = 0; + a27 = 20; + a29 = 0; + a26 = 1; + a2 = 1; + a14 = 4; + } + return -1; + } else if((((!(a11==1)&&(((((((a26==1)&&((a3==14)&&(a14==6)))||((a26==1)&&((a3==14)&&(a14==7))))||(((a14==3)&&(a3==12))&&!(a26==1)))&&(input==3))&&(a27==19))&&!(a19==1)))&&(a20==1))&&((a9==1)||(((a23==1)||((((a10==1)&&(a20==1))&&!(a2==1))&&(a25==1)))||(a11==1))))){ + a3 = 13; + a2 = 1; + a11 = 0; + a18 = 1; + a29 = 1; + a27 = 20; + a26 = 1; + a14 = 3; + return 22; + } else if(((!(a2==1)&&((a27==21)&&((a7==1)&&((!(a26==1)&&((a3==13)&&((input==2)&&((a14==4)||(a14==5)))))&&(a5==1)))))&&(((a21==1)||(!(a25==1)&&(!(a13==1)&&(((a10==1)&&(a12==1))||!(a20==1)))))||(a17==1)))){ + a26 = 1; + a14 = 3; + a20 = 0; + a1 = 1; + a3 = 12; + a16 = 1; + a2 = 1; + a27 = 19; + return 22; + } else if(((!(a15==1)||((((!(a25==1)&&(!(a18==1)||(a29==1)))&&(a10==1))&&(a5==1))&&(a14==3)))&&(!(a21==1)&&((((a29==1)&&((((input==1)&&(a2==1))&&!(a9==1))&&(a3==14)))&&!(a26==1))&&(a27==20))))){ + a29 = 1; + a26 = 1; + a25 = 1; + a3 = 13; + a13 = 0; + return 22; + } else if(((((a13==1)||((a7==1)||!(a18==1)))&&(a5==1))&&(!(a13==1)&&((((a10==1)&&(((a27==19)&&((input==1)&&(((a26==1)&&(((a14==4)&&!(a25==1))&&(a3==12)))||(((((a14==7)&&(a25==1))&&(a3==14))&&!(a26==1))||((((a14==3)&&!(a25==1))&&(a3==12))&&(a26==1))))))&&!(a2==1)))&&(a12==1))&&(a29==1))))){ + a26 = 1; + a15 = 1; + a25 = 1; + a14 = 4; + a27 = 20; + a29 = 1; + a3 = 13; + a23 = 0; + a2 = 1; + return 26; + } else if(((((a26==1)&&((a15==1)&&(((((a18==1)&&!(a25==1))||!(a7==1))||(a21==1))||(a1==1))))&&(a2==1))&&((a10==1)&&(((((((a14==5)||(a14==6))&&(input==6))&&(a27==20))&&!(a16==1))&&(a3==13))&&(a5==1))))){ + a21 = 0; + a27 = 19; + a25 = 1; + a14 = 3; + a15 = 1; + a3 = 12; + a29 = 1; + return -1; + } else if((((a18==1)&&(((!(a26==1)&&(((((((a14==5)||(a14==6))||(a14==7))&&(input==1))&&(a15==1))&&(a27==19))&&(a3==13)))&&!(a2==1))&&!(a17==1)))&&(((a17==1)||((((a10==1)&&(a20==1))&&(a25==1))||(a23==1)))||!(a20==1)))){ + a6 = 1; + a2 = 1; + a3 = 14; + a14 = 3; + a5 = 1; + a7 = 1; + a27 = 20; + return 22; + } else if((((((a10==1)&&((((a11==1)||(a18==1))&&(a2==1))||!(a6==1)))||!(a29==1))&&(a25==1))&&(!(a11==1)&&((a27==21)&&(((((((a14==3)&&(a3==12))&&!(a26==1))||((((a3==14)&&(a14==6))&&(a26==1))||((a26==1)&&((a3==14)&&(a14==7)))))&&(input==4))&&!(a23==1))&&!(a9==1)))))){ + a14 = 3; + a27 = 20; + a26 = 1; + a16 = 0; + a7 = 1; + a3 = 13; + a18 = 1; + return 26; + } else if(((((a3==13)&&((!(a1==1)&&((((a15==1)&&(a25==1))&&!(a16==1))&&!(a1==1)))&&(a26==1)))||!(a6==1))&&(((a27==19)&&(((a10==1)&&(!(a2==1)&&((input==2)&&((a14==5)||(a14==6)))))&&!(a1==1)))&&!(a1==1)))){ + a27 = 20; + a18 = 1; + a2 = 1; + a12 = 1; + a14 = 5; + a6 = 1; + a3 = 14; + return 26; + } else if((((a25==1)&&((a7==1)&&((!(a19==1)&&((a28==1)&&(((((((a3==12)&&(a14==6))||((a14==7)&&(a3==12)))||((a14==3)&&(a3==13)))&&(input==5))&&!(a1==1))&&(a20==1))))&&(a29==1))))&&((!(a26==1)&&((a10==1)&&((a7==1)&&(a27==20))))&&!(a2==1)))){ + a20 = 1; + a2 = 1; + a19 = 0; + a26 = 1; + a14 = 6; + a3 = 14; + return 25; + } else if((((((((!(a7==1)||((a26==1)&&((a3==12)&&((a1==1)||((a14==4)&&(a6==1))))))&&(a27==20))||!(a15==1))&&(a28==1))||(a9==1))&&!(a25==1))&&(!(a2==1)&&(!(a9==1)&&((a10==1)&&(input==5)))))){ + a7 = 1; + a21 = 0; + a14 = 7; + a3 = 14; + a26 = 0; + a27 = 21; + a2 = 1; + a25 = 1; + a11 = 0; + return 26; + } else if((((((a2==1)&&(!(a16==1)&&(((((a14==6)||(a14==7))&&(input==3))&&!(a26==1))&&(a27==20))))&&(a3==13))&&!(a1==1))&&(!(a19==1)&&(!(a28==1)||(((((a29==1)&&(a10==1))||!(a15==1))&&!(a25==1))&&(a18==1)))))){ + a26 = 1; + a25 = 1; + a27 = 19; + a18 = 1; + a14 = 3; + a13 = 0; + a3 = 12; + a12 = 1; + return -1; + } else if((((a27==20)&&((a7==1)&&(a28==1)))&&((a10==1)&&((a2==1)&&(!(a13==1)&&(((a25==1)&&((a3==12)&&((((!(a23==1)&&((((a14==4)||(a14==5))||(a14==6))&&(input==1)))&&(a18==1))&&(a26==1))&&!(a19==1))))&&(a5==1))))))){ + a14 = 4; + a9 = 0; + a29 = 1; + a3 = 13; + a6 = 1; + return 22; + } else if((((((((a14==5)||(a14==6))&&(input==5))&&!(a11==1))&&!(a2==1))&&!(a25==1))&&(((a3==13)&&((((!(a26==1)&&(((a20==1)&&((a27==20)&&(a29==1)))&&(a29==1)))&&(a18==1))&&(a28==1))||(a1==1)))&&(a10==1)))){ + a24 = 0; + a11 = 1; + a14 = 3; + a27 = 19; + a17 = 1; + a3 = 12; + return 26; + } else if((((a10==1)&&(((a2==1)&&(!(a6==1)||(!(a18==1)||(!(a1==1)&&((a28==1)&&!(a23==1))))))||!(a6==1)))&&(((input==2)&&((((a27==21)&&((a3==12)&&((a14==4)&&(a25==1))))&&(a26==1))||((!(a26==1)&&((a27==20)&&((a3==14)&&((a14==7)&&!(a25==1)))))||(((a27==21)&&((a3==12)&&((a25==1)&&(a14==3))))&&(a26==1)))))&&!(a16==1)))){ + a25 = 1; + a27 = 21; + a19 = 0; + a5 = 1; + a14 = 3; + a26 = 1; + a20 = 1; + a3 = 12; + return 25; + } else if((((a14==4)&&(((((!(a7==1)&&((((a25==1)&&(input==6))&&(a10==1))&&!(a18==1)))&&(a2==1))&&(a27==21))&&(a9==1))&&!(a20==1)))&&((a3==14)&&((((a26==1)&&(a28==1))&&(a11==1))&&!(a18==1))))){ + a27 = 19; + a1 = 1; + a3 = 12; + a24 = 0; + a11 = 1; + a25 = 0; + a14 = 7; + return 22; + } else if(((((a1==1)||((a2==1)&&(a29==1)))||!(a18==1))&&(!(a1==1)&&(((!(a16==1)&&((a27==20)&&(((input==2)&&((!(a26==1)&&((a3==14)&&((a25==1)&&(a14==7))))||((a26==1)&&((!(a25==1)&&(a14==3))&&(a3==12)))))&&(a10==1))))&&!(a21==1))&&!(a13==1))))){ + a14 = 3; + a13 = 0; + a25 = 1; + a18 = 1; + a27 = 19; + a26 = 1; + a19 = 0; + a3 = 12; + return -1; + } else if(((!(a29==1)||(((a27==20)&&((((((a26==1)&&((!(a25==1)&&((a29==1)&&!(a9==1)))||(a16==1)))||(a11==1))&&(a3==12))&&(a14==6))||!(a28==1)))&&(a29==1)))&&(((a2==1)&&(input==3))&&(a10==1)))){ + a15 = 1; + a5 = 1; + a27 = 19; + a14 = 4; + a25 = 1; + a3 = 13; + a7 = 1; + a2 = 0; + return 26; + } else if(((((((((a26==1)&&(a18==1))&&!(a2==1))&&!(a16==1))&&(a27==20))&&(a10==1))&&!(a13==1))&&((a29==1)&&((((((a28==1)&&(((a14==4)||(a14==5))&&(input==4)))&&!(a11==1))&&(a3==12))&&!(a16==1))&&(a25==1))))){ + a2 = 1; + a14 = 6; + a3 = 13; + a1 = 0; + a26 = 0; + a21 = 0; + return 22; + } else if((((a5==1)&&(((!(a15==1)||((a15==1)&&(a2==1)))&&(a20==1))&&(a26==1)))&&(!(a16==1)&&(((a27==20)&&((!(a25==1)&&((a10==1)&&(((((a14==7)&&(a3==12))||((a14==3)&&(a3==13)))||((a14==4)&&(a3==13)))&&(input==2))))&&!(a16==1)))&&(a5==1))))){ + a27 = 19; + a1 = 0; + a25 = 1; + a19 = 0; + a15 = 1; + a3 = 12; + a14 = 3; + return -1; + } else if((((a10==1)&&((a3==13)&&((!(a12==1)||(!(a23==1)&&(a15==1)))&&!(a13==1))))&&((a27==20)&&(((a25==1)&&(!(a13==1)&&((((((a14==5)||(a14==6))&&(input==6))&&(a26==1))&&(a15==1))&&(a18==1))))&&(a2==1))))){ + a1 = 0; + a21 = 0; + a3 = 12; + a14 = 3; + a27 = 19; + return -1; + } else if(((((a3==12)&&(((((!(a2==1)&&(((a25==1)&&((a10==1)&&((input==4)&&(((a14==4)||(a14==5))||(a14==6)))))&&(a6==1)))&&!(a17==1))&&(a29==1))&&(a7==1))&&(a27==19)))&&!(a26==1))&&(((a12==1)||!(a15==1))||(a19==1)))){ + a2 = 1; + a27 = 21; + a19 = 0; + a25 = 0; + a11 = 0; + a3 = 13; + a23 = 0; + a14 = 3; + return -1; + } else if(((((((a10==1)&&(((!(a6==1)||(!(a9==1)&&(a29==1)))||(a19==1))||!(a5==1)))&&!(a25==1))&&!(a26==1))&&(a3==12))&&((a27==21)&&(((a2==1)&&((((a14==3)||(a14==4))&&(input==2))&&(a15==1)))&&(a28==1))))){ + a25 = 1; + a26 = 1; + a15 = 1; + a23 = 0; + a27 = 20; + a14 = 4; + a3 = 13; + a7 = 1; + return 25; + } else if((((a10==1)&&((a12==1)&&(!(a17==1)&&(!(a7==1)||((a5==1)&&!(a19==1))))))&&((!(a19==1)&&((((input==3)&&((!(a26==1)&&(((a25==1)&&(a14==7))&&(a3==14)))||(((!(a25==1)&&(a14==3))&&(a3==12))&&(a26==1))))&&!(a11==1))&&(a27==20)))&&!(a2==1)))){ + a14 = 3; + a2 = 1; + a6 = 1; + a3 = 14; + a21 = 0; + a20 = 1; + a25 = 0; + a26 = 1; + a27 = 21; + return 22; + } else if((((a19==1)||(((a7==1)&&((a3==14)&&((((!(a25==1)&&((a20==1)&&(a15==1)))&&(a26==1))&&(a27==21))||(a16==1))))&&(a7==1)))&&(((a10==1)&&(((input==2)&&((a14==3)||(a14==4)))&&(a12==1)))&&!(a2==1)))){ + a28 = 0; + a3 = 12; + a8 = 0; + a14 = 7; + a9 = 1; + a2 = 1; + a26 = 0; + return 25; + } else if((((((a27==20)&&(((a12==1)&&(a26==1))&&!(a2==1)))&&(a17==1))&&(a13==1))&&(!(a12==1)&&((a19==1)&&((a9==1)&&(((((input==4)&&((((a14==7)&&(a3==12))||((a14==3)&&(a3==13)))||((a3==13)&&(a14==4))))&&!(a25==1))&&(a10==1))&&!(a29==1))))))){ + a14 = 4; + a3 = 12; + a0 = 0; + a25 = 1; + a23 = 1; + a9 = 1; + return 22; + } else if((((a23==1)||(((((a10==1)&&((a27==21)&&((a18==1)&&(a29==1))))||!(a12==1))||(a19==1))||(a19==1)))&&(!(a17==1)&&(!(a2==1)&&((input==6)&&((((((a25==1)&&(a14==6))&&(a3==14))&&!(a26==1))||(!(a26==1)&&(((a25==1)&&(a14==7))&&(a3==14))))||(((a3==12)&&(!(a25==1)&&(a14==3)))&&(a26==1)))))))){ + a14 = 4; + a2 = 1; + a3 = 13; + a20 = 0; + a25 = 0; + a27 = 19; + a26 = 0; + a24 = 1; + a4 = 0; + return -1; + } else if((((a2==1)&&((a10==1)&&((a21==1)||(a29==1))))&&((a25==1)&&(((a3==14)&&((a29==1)&&(((((a27==20)&&(!(a9==1)&&((input==2)&&((a14==6)||(a14==7)))))&&!(a9==1))&&(a5==1))&&(a26==1))))&&!(a19==1))))){ + a19 = 0; + a14 = 3; + a3 = 12; + a5 = 1; + a27 = 19; + a28 = 1; + return -1; + } else if((((((a28==1)&&(!(a9==1)&&(((((a14==5)||((a14==3)||(a14==4)))&&(input==3))&&(a10==1))&&!(a2==1))))&&(a18==1))&&(a28==1))&&((a27==20)&&((!(a26==1)&&(((!(a19==1)&&(a20==1))||!(a28==1))&&(a25==1)))&&(a3==12))))){ + a1 = 0; + a2 = 1; + a6 = 1; + a14 = 7; + a16 = 0; + a26 = 1; + return 24; + } else if(((!(a26==1)&&((a10==1)&&((a25==1)&&(((a1==1)&&((a27==20)&&((((a15==1)&&(a23==1))&&(a3==12))&&(a2==1))))&&(a16==1)))))&&(((!(a6==1)&&(((a14==3)||(a14==4))&&(input==1)))&&!(a5==1))&&(a17==1)))){ + a27 = 19; + a29 = 0; + a25 = 0; + a18 = 0; + a3 = 14; + a14 = 7; + a26 = 1; + a5 = 0; + return 25; + } else if(((((a10==1)&&(!(a19==1)&&(((!(a25==1)&&(((input==6)&&((a14==4)||(a14==5)))&&(a7==1)))&&!(a26==1))&&(a29==1))))&&(a28==1))&&((a6==1)&&(((!(a2==1)&&((a3==12)&&(a18==1)))||(a23==1))&&(a27==19))))){ + a27 = 20; + a14 = 4; + a21 = 0; + a2 = 1; + a29 = 1; + a5 = 1; + a25 = 1; + a3 = 13; + a26 = 1; + return 26; + } else if(((((a29==1)&&(!(a2==1)&&((a15==1)&&(((((input==5)&&((a14==6)||(a14==7)))&&!(a25==1))&&(a27==21))&&(a26==1)))))&&!(a16==1))&&((a23==1)||(!(a11==1)&&((a13==1)||((a3==14)&&((a10==1)&&(a7==1)))))))){ + a14 = 7; + a25 = 1; + a27 = 19; + a8 = 0; + a2 = 1; + a13 = 1; + return 26; + } else if((((((!(a25==1)&&((((a2==1)&&((input==6)&&((a14==6)||(a14==7))))&&(a15==1))&&!(a13==1)))&&!(a16==1))&&!(a11==1))&&!(a26==1))&&((a10==1)&&(!(a13==1)&&((a3==13)&&(((a18==1)&&(a27==20))&&!(a23==1))))))){ + a14 = 7; + a27 = 19; + a5 = 1; + a20 = 1; + a23 = 0; + a2 = 0; + return 25; + } else if((((a25==1)&&((a7==1)&&((a29==1)&&!(a26==1))))&&((a27==20)&&((!(a19==1)&&((a28==1)&&((a7==1)&&(!(a11==1)&&((((input==1)&&(((a3==14)&&(a14==4))||(((a14==7)&&(a3==13))||((a3==14)&&(a14==3)))))&&(a10==1))&&!(a13==1))))))&&!(a2==1))))){ + a21 = 0; + a26 = 1; + a27 = 19; + a2 = 1; + a3 = 12; + a11 = 0; + a25 = 0; + a14 = 7; + return -1; + } else if((((((a10==1)&&(((!(a13==1)&&(a20==1))&&(a15==1))&&!(a26==1)))||!(a6==1))||!(a15==1))&&((!(a21==1)&&((((!(a2==1)&&((a25==1)&&(input==3)))&&(a3==12))&&(a29==1))&&(a14==7)))&&(a27==21)))){ + if((a21==1)){ + a25 = 0; + a5 = 0; + a21 = 1; + a19 = 1; + a2 = 1; + }else{ + a2 = 1; + a3 = 13; + a12 = 0; + a16 = 1; + a14 = 5; + a27 = 19; + } + return -1; + } else if(((!(a17==1)&&((((input==4)&&((((a14==6)&&(a3==12))||((a14==7)&&(a3==12)))||((a3==13)&&(a14==3))))&&!(a26==1))&&(a29==1)))&&((a1==1)||(!(a9==1)&&(((a28==1)&&(!(a2==1)&&((a27==20)&&((a25==1)&&((a18==1)&&(a10==1))))))&&!(a16==1)))))){ + a14 = 6; + a1 = 0; + a28 = 1; + a2 = 1; + a26 = 1; + a16 = 0; + a3 = 14; + return 24; + } else if((((a10==1)&&((a27==21)&&((a3==13)&&((!(a18==1)||(a29==1))||!(a18==1)))))&&((a25==1)&&((!(a9==1)&&((((a28==1)&&((((a14==5)||((a14==3)||(a14==4)))&&(input==1))&&!(a2==1)))&&!(a23==1))&&!(a21==1)))&&(a26==1))))){ + if((a5==1)){ + a11 = 1; + a28 = 0; + a25 = 0; + a14 = 7; + a2 = 1; + a26 = 0; + a27 = 19; + }else{ + a4 = 0; + a13 = 1; + a25 = 0; + a0 = 0; + a14 = 4; + a26 = 0; + a2 = 1; + a27 = 20; + } + return -1; + } else if(((!(a25==1)&&((!(a15==1)||((a20==1)&&((a7==1)&&(a27==21))))&&(a2==1)))&&(((a12==1)&&((((a10==1)&&(!(a11==1)&&(((input==4)&&((a14==6)||(a14==7)))&&!(a17==1))))&&(a3==14))&&(a26==1)))&&!(a11==1)))){ + a7 = 1; + a29 = 1; + a15 = 1; + a14 = 3; + a25 = 1; + a27 = 19; + a3 = 12; + return -1; + } else if((((((((!(a9==1)&&((((a18==1)&&(a6==1))||(a9==1))&&(a27==21)))&&(a18==1))&&(a2==1))&&(a3==14))&&(a10==1))&&(a26==1))&&((a15==1)&&(((((a14==5)||((a14==3)||(a14==4)))&&(input==2))&&!(a25==1))&&(a29==1))))){ + a29 = 1; + a19 = 0; + a2 = 0; + a5 = 1; + a26 = 0; + a27 = 19; + a14 = 3; + return 22; + } else if((((a3==12)&&(!(a16==1)&&(((a20==1)&&(((a25==1)&&(!(a2==1)&&((a27==20)&&(((input==5)&&((a14==6)||(a14==7)))&&!(a9==1)))))&&!(a23==1)))&&!(a17==1))))&&((((a5==1)&&(a10==1))&&(a29==1))&&(a26==1)))){ + if((a11==1)){ + a19 = 0; + a23 = 0; + a14 = 7; + a6 = 1; + }else{ + a14 = 7; + a17 = 0; + a27 = 21; + a16 = 0; + a26 = 0; + a2 = 1; + a29 = 1; + a3 = 14; + } + return 26; + } else if(((!(a26==1)&&((a3==13)&&(!(a2==1)&&((!(a16==1)&&(a28==1))||!(a29==1)))))&&((((((((a10==1)&&((((a14==5)||(a14==6))||(a14==7))&&(input==2)))&&(a27==19))&&(a25==1))&&(a29==1))&&(a6==1))&&!(a19==1))&&!(a19==1)))){ + a14 = 3; + a6 = 1; + a11 = 0; + a20 = 1; + a2 = 1; + a27 = 20; + a26 = 1; + return 22; + } else if((((!(a26==1)&&(!(a23==1)&&((((a29==1)&&!(a2==1))||(a9==1))&&!(a9==1))))||!(a20==1))&&((a18==1)&&((a10==1)&&(!(a25==1)&&((!(a19==1)&&((((a14==7)&&(a3==12))||((a3==13)&&(a14==3)))&&(input==2)))&&(a27==21))))))){ + a26 = 1; + a3 = 14; + a6 = 0; + a14 = 7; + a0 = 1; + a4 = 1; + a2 = 1; + return 25; + } else if((((!(a16==1)&&((a26==1)&&(!(a2==1)&&((((a6==1)&&(((((a14==5)||(a14==6))&&(input==4))&&(a3==13))&&!(a21==1)))&&(a25==1))&&(a10==1)))))&&!(a19==1))&&((((a29==1)&&(a27==19))||(a9==1))&&!(a13==1)))){ + a14 = 7; + a20 = 1; + a21 = 0; + a27 = 21; + a16 = 0; + a2 = 1; + a3 = 12; + return 26; + } else if(((!(a13==1)&&(((!(a23==1)&&((((a26==1)&&(((input==5)&&((a14==7)||((a14==5)||(a14==6))))&&(a10==1)))&&(a3==12))&&(a27==21)))&&(a25==1))&&(a18==1)))&&(((((a15==1)&&(a2==1))&&!(a17==1))||!(a6==1))&&!(a1==1)))){ + a20 = 1; + a12 = 1; + a15 = 1; + a14 = 3; + a27 = 19; + return -1; + } else if(((((a10==1)&&((((a5==1)&&(!(a1==1)&&(((input==2)&&(((a14==3)||(a14==4))||(a14==5)))&&(a27==20))))&&!(a26==1))&&(a29==1)))&&(a3==12))&&(((!(a28==1)||((a28==1)&&((a12==1)&&(a2==1))))&&!(a21==1))&&!(a25==1)))){ + a7 = 1; + a21 = 0; + a14 = 5; + return 22; + } else if(((!(a11==1)&&(((a27==21)&&((a15==1)&&((((input==1)&&((a14==3)||(a14==4)))&&(a29==1))&&!(a9==1))))&&!(a17==1)))&&((a26==1)&&((a25==1)&&((a2==1)&&((a3==13)&&((a20==1)&&((a10==1)&&(a28==1))))))))){ + a27 = 19; + a3 = 12; + a14 = 3; + a7 = 1; + a15 = 1; + a16 = 0; + return -1; + } else if((((a26==1)&&((a27==20)&&((((input==2)&&((((a14==7)&&(a3==12))||((a14==3)&&(a3==13)))||((a3==13)&&(a14==4))))&&!(a5==1))&&!(a20==1))))&&(((!(a28==1)&&(!(a25==1)&&(((!(a2==1)&&(a15==1))&&!(a29==1))&&(a19==1))))&&(a17==1))&&(a10==1)))){ + a14 = 3; + a3 = 13; + a22 = 1; + a19 = 1; + return 24; + } else if((((((a26==1)&&(!(a1==1)&&((!(a9==1)&&(!(a16==1)&&((input==4)&&(((a14==5)||(a14==6))||(a14==7)))))&&!(a19==1))))&&(a3==14))&&(a10==1))&&(((a2==1)&&((a13==1)||((a5==1)&&((a27==20)&&(a6==1)))))&&!(a25==1)))){ + a2 = 0; + a12 = 1; + a27 = 19; + a26 = 0; + a15 = 1; + a3 = 12; + a7 = 1; + a14 = 6; + return 26; + } else if(((((a10==1)&&((!(a29==1)||(!(a17==1)&&(!(a2==1)&&((a15==1)||!(a12==1)))))&&!(a19==1)))&&(a27==20))&&(((!(a25==1)&&(((input==2)&&(((a14==4)&&(a3==13))||(((a14==7)&&(a3==12))||((a3==13)&&(a14==3)))))&&!(a1==1)))&&(a26==1))&&(a5==1)))){ + a14 = 4; + a1 = 0; + a2 = 1; + a3 = 13; + a25 = 1; + a18 = 1; + a28 = 1; + return 25; + } else if(((!(a1==1)&&((((!(a13==1)&&((a15==1)&&((a2==1)&&((a20==1)&&((((a14==5)||(a14==6))&&(input==3))&&!(a16==1))))))&&!(a19==1))&&(a27==20))&&!(a26==1)))&&((a25==1)&&(((a12==1)&&(a10==1))&&(a3==14))))){ + a7 = 1; + a13 = 0; + a25 = 0; + a14 = 7; + a27 = 21; + a20 = 1; + a26 = 1; + return 22; + } else if((((((a10==1)&&(((a14==3)||(a14==4))&&(input==1)))&&(a18==1))&&!(a13==1))&&(((a26==1)&&((a20==1)&&((a25==1)&&((a16==1)||(((!(a9==1)&&((a7==1)&&(a27==19)))&&!(a2==1))&&!(a11==1))))))&&(a3==12)))){ + a14 = 7; + a3 = 13; + a2 = 1; + a6 = 1; + a25 = 0; + a23 = 0; + a9 = 0; + return -1; + } else if(((((a3==13)&&(((((a7==1)&&(a29==1))||!(a18==1))&&(a26==1))||(a13==1)))&&!(a25==1))&&(((((a6==1)&&(((a2==1)&&((input==3)&&((a14==5)||(a14==6))))&&(a27==20)))&&(a10==1))&&(a15==1))&&!(a16==1)))){ + a25 = 1; + a17 = 0; + a21 = 0; + a3 = 12; + a27 = 19; + a5 = 1; + a14 = 3; + return -1; + } else if((((!(a15==1)||((a13==1)||((a7==1)&&!(a16==1))))&&(a27==19))&&(((a26==1)&&((a3==12)&&((a25==1)&&((a15==1)&&(!(a2==1)&&(((a10==1)&&((input==3)&&((a14==7)||((a14==5)||(a14==6)))))&&(a20==1)))))))&&(a18==1)))){ + a26 = 0; + a29 = 1; + a2 = 1; + a18 = 1; + a25 = 0; + a14 = 6; + a28 = 1; + a27 = 21; + a3 = 13; + return -1; + } else if((((((a9==1)||((a3==12)&&((a26==1)&&((a5==1)&&(a10==1)))))&&(a27==19))||!(a6==1))&&((a29==1)&&((!(a19==1)&&(!(a11==1)&&(!(a21==1)&&(!(a2==1)&&((input==6)&&((a14==7)||((a14==5)||(a14==6))))))))&&!(a25==1))))){ + a26 = 0; + a17 = 0; + a3 = 13; + a27 = 21; + a2 = 1; + a14 = 6; + a12 = 1; + a19 = 0; + return -1; + } else if((((!(a9==1)&&(!(a11==1)&&(!(a11==1)&&(!(a2==1)&&((((a14==6)||(a14==7))&&(input==2))&&(a27==21))))))&&(a20==1))&&(!(a23==1)&&(!(a29==1)||(((a3==12)&&((a25==1)&&((a29==1)&&(a10==1))))&&(a26==1)))))){ + a8 = 0; + a21 = 1; + a2 = 1; + a3 = 13; + a24 = 1; + a27 = 19; + a26 = 0; + a14 = 7; + return 25; + } else if((((((((a21==1)||((a27==19)&&(!(a2==1)&&((a29==1)&&!(a16==1)))))||(a21==1))&&(a6==1))&&!(a9==1))&&(a10==1))&&(!(a26==1)&&((((((a14==5)||(a14==6))&&(input==2))&&!(a25==1))&&!(a9==1))&&(a3==14))))){ + a3 = 12; + a26 = 1; + a18 = 1; + a13 = 0; + a25 = 1; + a2 = 1; + a14 = 3; + a12 = 1; + return -1; + } else if((((a1==1)&&((a21==1)&&((!(a15==1)&&((a3==14)&&((input==3)&&((a14==5)||((a14==3)||(a14==4))))))&&(a23==1))))&&(((a19==1)&&(((a2==1)&&((((a7==1)&&!(a25==1))&&(a27==21))&&(a10==1)))&&!(a15==1)))&&(a26==1)))){ + a4 = 0; + a22 = 1; + a14 = 6; + a5 = 0; + a25 = 1; + a27 = 20; + a3 = 12; + a2 = 0; + a26 = 0; + return 24; + } else if(((((a10==1)&&(((a5==1)&&((a12==1)&&((a2==1)&&((input==2)&&((a14==3)||(a14==4))))))&&!(a23==1)))&&(a26==1))&&(((((a15==1)&&(!(a17==1)&&((a27==21)&&(a15==1))))&&(a25==1))||!(a18==1))&&(a3==13)))){ + a7 = 1; + a14 = 3; + a28 = 1; + a18 = 1; + a27 = 20; + return 25; + } else if(((((a3==13)&&(input==1))&&!(a25==1))&&((a10==1)&&((!(a2==1)&&(!(a23==1)&&((a27==20)&&(((a7==1)&&((((!(a23==1)&&(a5==1))&&(a14==4))&&(a7==1))||!(a18==1)))||(a13==1)))))&&!(a26==1))))){ + if((a27==20)){ + a19 = 1; + a25 = 1; + a4 = 0; + a26 = 1; + a14 = 5; + a2 = 1; + }else{ + a8 = 1; + a5 = 0; + a27 = 19; + a24 = 0; + a25 = 1; + a2 = 1; + a3 = 14; + } + return 22; + } else if((((a27==21)&&((a3==13)&&(!(a19==1)&&(!(a23==1)&&(((a25==1)&&(((a7==1)&&!(a23==1))&&(a10==1)))||(a1==1))))))&&(!(a26==1)&&((((((a14==6)||((a14==4)||(a14==5)))&&(input==4))&&!(a2==1))&&(a12==1))&&(a29==1))))){ + a2 = 1; + a26 = 1; + a17 = 1; + a6 = 0; + a13 = 1; + a3 = 14; + a14 = 5; + return -1; + } else if((((a9==1)||((a3==13)&&(((a29==1)&&!(a17==1))&&!(a25==1))))&&((a15==1)&&(!(a17==1)&&((a15==1)&&((a27==21)&&((a26==1)&&(((a2==1)&&((a12==1)&&(((a14==7)||((a14==5)||(a14==6)))&&(input==4))))&&(a10==1))))))))){ + a11 = 0; + a18 = 1; + a28 = 1; + a25 = 1; + a27 = 20; + a14 = 4; + return 25; + } else if(((((((a10==1)&&((!(a2==1)&&((a3==13)&&(((a14==6)||(a14==7))&&(input==2))))&&!(a23==1)))&&(a26==1))&&(a18==1))&&(a25==1))&&(!(a29==1)||((a6==1)&&(((a27==21)&&(!(a19==1)&&(a29==1)))&&!(a17==1)))))){ + a8 = 0; + a2 = 1; + a25 = 0; + a14 = 7; + a27 = 19; + a24 = 1; + a17 = 1; + return 25; + } else if((((((((a18==1)&&!(a2==1))&&(a10==1))||(a13==1))&&(a7==1))&&(a3==13))&&((((!(a17==1)&&((a27==21)&&((!(a26==1)&&(((a14==6)||(a14==7))&&(input==1)))&&(a7==1))))&&(a5==1))&&!(a25==1))&&(a5==1)))){ + a3 = 14; + a23 = 1; + a25 = 1; + a16 = 1; + a29 = 0; + a14 = 7; + a2 = 1; + a27 = 19; + return -1; + } else if((((a18==1)&&(!(a13==1)&&((a10==1)&&(!(a2==1)&&(((input==6)&&(((((a3==14)&&((a14==7)&&(a25==1)))&&!(a26==1))||(((!(a25==1)&&(a14==3))&&(a3==12))&&(a26==1)))||((a26==1)&&((!(a25==1)&&(a14==4))&&(a3==12)))))&&(a27==19))))))&&(!(a18==1)||(((a7==1)&&((a15==1)&&!(a19==1)))&&!(a9==1))))){ + if((a2==1)){ + a14 = 6; + a25 = 0; + a15 = 1; + a3 = 14; + a6 = 1; + a28 = 1; + a26 = 0; + }else{ + a3 = 13; + a6 = 1; + a18 = 1; + a27 = 20; + a2 = 1; + a26 = 1; + a25 = 0; + a14 = 7; + } + return 25; + } else if(((!(a29==1)||((a28==1)&&((!(a26==1)&&((a7==1)&&(a27==20)))||!(a7==1))))&&(!(a9==1)&&(!(a19==1)&&((a25==1)&&((!(a2==1)&&((a6==1)&&(((((a14==6)&&(a3==12))||((a14==7)&&(a3==12)))||((a14==3)&&(a3==13)))&&(input==1))))&&(a10==1))))))){ + a14 = 3; + a3 = 13; + a15 = 1; + a12 = 1; + a26 = 1; + a2 = 1; + a29 = 1; + return 22; + } else if((((((input==3)&&(a10==1))&&(a2==1))&&(a3==12))&&((a27==21)&&(!(a25==1)&&(((a20==1)&&(((!(a26==1)&&(!(a19==1)&&((!(a21==1)&&(a6==1))&&(a15==1))))&&(a14==5))&&!(a13==1)))&&!(a1==1)))))){ + a26 = 1; + a25 = 1; + a20 = 1; + a6 = 1; + a14 = 3; + a16 = 0; + a27 = 19; + return -1; + } else if((((a10==1)&&(((((a25==1)&&((a14==4)&&((a12==1)&&!(a13==1))))&&(a3==14))&&!(a19==1))&&(a26==1)))&&(((a6==1)&&(((a18==1)&&(((a27==21)&&(input==2))&&!(a9==1)))&&(a5==1)))&&(a2==1)))){ + a29 = 1; + a9 = 0; + a1 = 0; + return 25; + } else if((((a27==20)&&(((((a14==5)||((a14==3)||(a14==4)))&&(input==4))&&!(a2==1))&&(a18==1)))&&((a3==12)&&((a13==1)||(((a11==1)||(((((a28==1)&&(!(a26==1)&&(a18==1)))&&(a10==1))&&!(a17==1))&&!(a13==1)))&&(a25==1)))))){ + a3 = 13; + a14 = 3; + a2 = 1; + a26 = 1; + a23 = 0; + a13 = 0; + return 22; + } else if((((a28==1)&&(!(a13==1)&&(!(a20==1)||((a10==1)&&(a12==1)))))&&((((a7==1)&&((a27==20)&&((a2==1)&&(((!(a26==1)&&((a3==14)&&((a25==1)&&(a14==7))))||(((a3==12)&&((a14==3)&&!(a25==1)))&&(a26==1)))&&(input==3)))))&&!(a21==1))&&!(a23==1)))){ + a3 = 12; + a12 = 1; + a27 = 19; + a15 = 1; + a14 = 3; + a25 = 1; + a7 = 1; + a26 = 1; + return -1; + } else if((((a20==1)&&((((a25==1)&&(!(a13==1)&&((a3==14)&&(!(a2==1)&&(((a14==4)||(a14==5))&&(input==3))))))&&(a27==20))&&!(a21==1)))&&(!(a6==1)||((a1==1)||((((a28==1)&&(a7==1))&&(a26==1))&&(a10==1)))))){ + a29 = 1; + a11 = 0; + a25 = 0; + a2 = 1; + a26 = 0; + a14 = 6; + a15 = 1; + return 26; + } else if(((((a10==1)&&((((a14==6)||((a14==4)||(a14==5)))&&(input==2))&&(a26==1)))&&(a3==12))&&((a7==1)&&((a25==1)&&((a21==1)||(!(a7==1)||((a5==1)&&((!(a15==1)||((a27==20)&&((a18==1)||!(a5==1))))&&(a2==1))))))))){ + a17 = 0; + a9 = 0; + a27 = 19; + a14 = 3; + a29 = 1; + return -1; + } else if((((a28==1)&&((!(a26==1)&&((a27==21)&&((((a5==1)&&((a15==1)&&(((a14==6)||((a14==4)||(a14==5)))&&(input==2))))&&(a10==1))&&(a5==1))))&&(a25==1)))&&((((a13==1)||((a7==1)&&(a28==1)))&&(a3==13))&&!(a2==1)))){ + a4 = 1; + a14 = 5; + a26 = 1; + a3 = 12; + a23 = 1; + a24 = 1; + a27 = 19; + a25 = 0; + return 25; + } else if(((((((a3==12)&&((a14==5)&&(!(a2==1)&&(((input==2)&&!(a25==1))&&(a18==1)))))&&(a29==1))&&(a20==1))&&!(a26==1))&&((((((a10==1)&&(a28==1))&&(a27==20))&&!(a11==1))||!(a28==1))&&!(a13==1)))){ + a19 = 1; + a3 = 13; + a27 = 19; + a29 = 0; + a14 = 6; + a15 = 0; + return -1; + } else if((((a27==20)&&(!(a2==1)&&((((((a14==4)||(a14==5))&&(input==1))&&!(a19==1))&&!(a25==1))&&!(a1==1))))&&(!(a18==1)||((a10==1)&&(!(a15==1)||((a21==1)||(((!(a26==1)&&(a6==1))||(a16==1))&&(a3==14)))))))){ + a18 = 0; + a14 = 3; + a2 = 1; + a5 = 0; + a25 = 1; + a27 = 21; + a19 = 1; + return 25; + } else if((((!(a11==1)&&((a3==13)&&((a27==20)&&((a28==1)||(a19==1)))))||(a9==1))&&((!(a17==1)&&(((((((input==3)&&((a14==5)||(a14==6)))&&(a12==1))&&!(a2==1))&&!(a25==1))&&!(a26==1))&&(a10==1)))&&!(a1==1)))){ + a26 = 1; + a2 = 1; + a29 = 0; + a14 = 6; + a27 = 19; + a24 = 1; + a8 = 1; + return 22; + } else if((((a23==1)||(((a3==13)&&((a27==19)&&((((a14==6)&&((a10==1)&&(a7==1)))&&(a5==1))||!(a20==1))))&&!(a2==1)))&&(!(a23==1)&&(((a6==1)&&(!(a25==1)&&((input==1)&&!(a26==1))))&&!(a9==1))))){ + a5 = 1; + a21 = 0; + a14 = 7; + a11 = 0; + return 25; + } else if((((((a10==1)&&(!(a20==1)||((a5==1)&&(a5==1))))||!(a15==1))||(a21==1))&&((((a27==19)&&(!(a25==1)&&((!(a26==1)&&((((a14==5)||(a14==6))&&(input==4))&&!(a1==1)))&&(a3==14))))&&!(a2==1))&&(a7==1)))){ + a12 = 1; + a25 = 1; + a11 = 0; + a20 = 1; + a14 = 5; + return 26; + } else if((((a16==1)||(!(a20==1)||(((a2==1)&&((((!(a25==1)&&(a20==1))&&(a26==1))||!(a28==1))&&(a27==21)))&&!(a11==1))))&&(!(a17==1)&&((a12==1)&&(((a3==12)&&((input==5)&&((a14==6)||((a14==4)||(a14==5)))))&&(a10==1)))))){ + a17 = 0; + a12 = 1; + a14 = 4; + a9 = 0; + return 25; + } else if((((a21==1)||(!(a26==1)&&(!(a18==1)||((a18==1)&&(!(a5==1)||(a29==1))))))&&(!(a2==1)&&((((a10==1)&&((((input==4)&&(((a3==13)&&(a14==4))||(((a3==12)&&(a14==7))||((a3==13)&&(a14==3)))))&&(a25==1))&&!(a16==1)))&&(a27==19))&&(a12==1))))){ + a14 = 3; + a2 = 1; + a13 = 0; + a20 = 1; + a1 = 0; + a26 = 1; + a3 = 12; + return -1; + } else if(((((a2==1)&&((!(a25==1)&&(a20==1))&&(a27==20)))&&(a15==1))&&((((a29==1)&&(!(a9==1)&&(((!(a16==1)&&((a10==1)&&(!(a26==1)&&(input==1))))&&(a14==6))&&(a3==12))))&&(a28==1))&&!(a1==1)))){ + a27 = 19; + a12 = 1; + a23 = 0; + a25 = 1; + a14 = 3; + a26 = 1; + a19 = 0; + return -1; + } else if((((((!(a16==1)&&((input==3)&&(a3==12)))&&(a10==1))&&!(a26==1))&&(a27==21))&&(((a2==1)&&((((((a14==4)&&((a21==1)||(a12==1)))||(a1==1))||!(a5==1))&&(a5==1))||(a1==1)))&&(a25==1)))){ + a21 = 0; + a1 = 0; + a14 = 3; + a3 = 13; + a13 = 0; + a27 = 20; + a26 = 1; + return 26; + } else if(((((a5==1)&&((!(a2==1)&&((a5==1)&&((a6==1)&&(a25==1))))||!(a15==1)))||(a21==1))&&(!(a21==1)&&(!(a26==1)&&(((a27==19)&&((a18==1)&&(((input==4)&&((a14==6)||((a14==4)||(a14==5))))&&(a10==1))))&&(a3==14)))))){ + a7 = 1; + a2 = 1; + a14 = 3; + a3 = 12; + a26 = 1; + return -1; + } else if((((((a21==1)&&(((((a14==3)&&(input==6))&&(a21==1))&&(a10==1))&&(a21==1)))&&!(a26==1))&&!(a29==1))&&(!(a12==1)&&((a27==19)&&((!(a2==1)&&((a25==1)&&((a6==1)&&(a13==1))))&&(a3==14)))))){ + a2 = 1; + a21 = 1; + a27 = 20; + a26 = 1; + a3 = 13; + a14 = 7; + a25 = 0; + a16 = 1; + a11 = 1; + return 24; + } else if((((a21==1)||(((!(a26==1)&&((a29==1)&&(a25==1)))&&(a2==1))||!(a29==1)))&&(!(a23==1)&&((a29==1)&&(!(a1==1)&&((a14==4)&&(((((input==2)&&(a10==1))&&(a27==21))&&!(a9==1))&&(a3==12)))))))){ + a3 = 13; + a23 = 0; + a11 = 0; + a21 = 0; + a14 = 3; + a26 = 1; + a27 = 20; + return 24; + } else if(((((!(a21==1)&&(((a2==1)&&(((input==3)&&!(a25==1))&&(a6==1)))&&(a14==5)))&&!(a1==1))&&(a18==1))&&(((!(a11==1)&&((a10==1)&&((a3==13)&&((a20==1)&&(a27==20)))))||(a16==1))&&!(a26==1)))){ + a14 = 7; + a28 = 1; + a21 = 0; + a27 = 19; + a12 = 1; + a2 = 0; + return 22; + } else if((((((a10==1)&&(((!(a9==1)&&(a18==1))&&(a27==21))&&!(a23==1)))||!(a12==1))&&!(a9==1))&&((a2==1)&&((!(a26==1)&&((a25==1)&&(!(a21==1)&&((((a14==7)&&(a3==13))||((a14==3)&&(a3==14)))&&(input==3)))))&&(a28==1))))){ + a21 = 0; + a16 = 0; + a14 = 7; + a3 = 13; + a18 = 1; + return 24; + } else if((((!(a25==1)&&(((a27==21)&&(!(a16==1)&&(!(a1==1)&&((a18==1)&&(((a29==1)&&((input==4)&&(((a14==5)||(a14==6))||(a14==7))))&&(a29==1))))))&&(a10==1)))&&(a2==1))&&(((a3==14)&&(!(a11==1)&&(a28==1)))&&!(a26==1)))){ + a3 = 13; + a26 = 1; + a14 = 5; + a21 = 0; + a7 = 1; + a25 = 1; + a29 = 1; + return 25; + } else if(((((a6==1)&&(!(a7==1)||((a13==1)||((a27==21)&&((a12==1)&&(a14==5))))))&&!(a26==1))&&((!(a2==1)&&((((((a3==14)&&(input==3))&&(a20==1))&&!(a9==1))&&!(a1==1))&&(a10==1)))&&!(a25==1)))){ + if((a28==1)){ + a27 = 19; + a14 = 4; + a18 = 0; + a2 = 1; + a0 = 1; + a3 = 13; + a7 = 0; + }else{ + a22 = 0; + a25 = 1; + a14 = 3; + a2 = 1; + a8 = 1; + a3 = 12; + a7 = 0; + } + return -1; + } else if((((a2==1)&&((((a6==1)&&(((input==3)&&(a3==12))&&(a12==1)))&&!(a23==1))&&(a7==1)))&&(!(a25==1)&&((((!(a7==1)||((a14==6)&&((a5==1)&&!(a19==1))))&&!(a26==1))&&(a27==20))&&(a10==1))))){ + if((a6==1)){ + a27 = 19; + a2 = 0; + a14 = 7; + a20 = 1; + a23 = 0; + a3 = 13; + }else{ + a5 = 1; + a21 = 0; + a25 = 1; + a14 = 7; + a16 = 0; + a26 = 1; + } + return 24; + } else if(((!(a28==1)||((a19==1)||((!(a23==1)&&((((a6==1)||(a23==1))||(a11==1))||!(a12==1)))&&(a25==1))))&&((a10==1)&&((a27==21)&&(((((input==6)&&((a14==6)||(a14==7)))&&!(a2==1))&&(a26==1))&&(a3==13)))))){ + a14 = 7; + a26 = 0; + a24 = 0; + a13 = 1; + a27 = 19; + a3 = 12; + a16 = 1; + a2 = 1; + a25 = 0; + return -1; + } else if(((((a27==20)&&((a2==1)&&(!(a25==1)&&(((a17==1)||(a5==1))&&!(a13==1)))))&&(a3==13))&&((a20==1)&&(((a18==1)&&((a10==1)&&(((((a14==6)||(a14==7))&&(input==5))&&!(a11==1))&&!(a26==1))))&&(a6==1))))){ + a19 = 0; + a3 = 14; + a26 = 1; + a9 = 0; + a23 = 0; + a14 = 5; + a25 = 1; + return 25; + } else if((((a26==1)&&(((!(a1==1)&&((input==3)&&((a14==6)||(a14==7))))&&!(a19==1))&&!(a9==1)))&&(((a3==14)&&((a27==21)&&((!(a28==1)||((((a2==1)&&(a18==1))||!(a12==1))&&(a10==1)))||!(a28==1))))&&!(a25==1)))){ + a19 = 0; + a25 = 1; + a13 = 0; + a14 = 3; + a21 = 0; + a3 = 12; + a27 = 19; + return -1; + } else if((((((!(a2==1)&&((input==2)&&(a3==14)))&&!(a9==1))&&(a10==1))&&!(a16==1))&&((((a14==4)&&((a27==21)&&(!(a9==1)&&(((a15==1)&&((a20==1)&&!(a26==1)))&&!(a25==1)))))&&(a18==1))&&!(a16==1)))){ + a8 = 1; + a23 = 1; + a27 = 20; + a14 = 7; + a22 = 0; + return 22; + } else if((((a18==1)&&(((a10==1)&&(((!(a11==1)&&(((a29==1)&&((a3==14)&&(input==5)))&&(a14==5)))&&!(a9==1))&&(a27==21)))&&!(a9==1)))&&(!(a28==1)||((!(a25==1)&&((a18==1)&&!(a2==1)))&&!(a26==1))))){ + a4 = 1; + a14 = 3; + a5 = 0; + a25 = 1; + a11 = 1; + a2 = 1; + return 25; + } else if((((a2==1)&&((a5==1)&&((a27==20)&&((a3==12)&&(!(a21==1)&&(a12==1))))))&&(!(a19==1)&&(!(a9==1)&&((a20==1)&&(((a20==1)&&((((input==5)&&((a14==4)||(a14==5)))&&(a26==1))&&(a10==1)))&&!(a25==1))))))){ + a27 = 21; + a26 = 0; + a14 = 6; + a23 = 0; + a20 = 1; + a3 = 14; + return 25; + } else if(((((a20==1)&&(((a14==3)&&((a3==14)&&(((a26==1)&&(input==1))&&!(a2==1))))&&(a5==1)))&&!(a11==1))&&(!(a6==1)||(!(a28==1)||((((a25==1)&&((a28==1)&&(a27==19)))&&(a10==1))||(a16==1)))))){ + a26 = 0; + a5 = 1; + a7 = 1; + a14 = 6; + a2 = 1; + a25 = 0; + a20 = 1; + a3 = 12; + return -1; + } else if(((((((a6==1)&&(!(a1==1)&&((input==4)&&(a25==1))))&&(a12==1))&&!(a26==1))&&(a10==1))&&((a2==1)&&((a27==21)&&(((a3==13)&&((!(a16==1)&&((a9==1)||(a20==1)))&&(a14==6)))&&(a18==1)))))){ + a26 = 1; + a19 = 0; + a20 = 1; + a14 = 3; + a23 = 0; + a3 = 12; + a27 = 19; + return -1; + } else if(((!(a11==1)&&((!(a12==1)||((((a7==1)&&(a14==6))&&(a2==1))&&(a10==1)))||!(a29==1)))&&(((a6==1)&&(!(a1==1)&&(((a27==20)&&((a3==12)&&((input==4)&&(a26==1))))&&!(a25==1))))&&!(a17==1)))){ + if((a20==1)){ + a7 = 1; + a3 = 14; + a18 = 1; + a12 = 1; + a14 = 3; + a2 = 0; + a26 = 0; + a25 = 1; + }else{ + a27 = 19; + a2 = 0; + a25 = 1; + a3 = 13; + a1 = 0; + a12 = 1; + a15 = 1; + a14 = 7; + } + return 24; + } else if(((((!(a26==1)&&((a25==1)&&((a10==1)&&((a2==1)&&(((((input==4)&&(((a14==5)||(a14==6))||(a14==7)))&&(a15==1))&&(a28==1))&&(a15==1))))))&&(a7==1))&&!(a19==1))&&((a3==12)&&(((a27==20)&&(a15==1))&&!(a9==1))))){ + a29 = 1; + a20 = 1; + a14 = 7; + a3 = 14; + a27 = 21; + a26 = 1; + a23 = 0; + return 24; + } else if((((!(a23==1)&&((a26==1)&&((a10==1)&&((input==5)&&((a14==4)||(a14==5))))))&&!(a1==1))&&((((a27==20)&&((!(a7==1)||(!(a23==1)&&(((a3==12)&&(a12==1))&&!(a2==1))))&&(a25==1)))&&!(a13==1))&&(a29==1)))){ + a18 = 1; + a9 = 0; + a16 = 0; + a3 = 13; + a14 = 3; + return 26; + } else if((((((!(a2==1)&&(((a12==1)||(a13==1))&&(a27==21)))||!(a28==1))&&(a15==1))&&!(a1==1))&&((((((a3==14)&&((a10==1)&&(((a14==6)||(a14==7))&&(input==2))))&&!(a25==1))&&(a26==1))&&!(a17==1))&&(a5==1)))){ + a27 = 19; + a25 = 1; + a0 = 1; + a4 = 1; + a7 = 0; + a14 = 4; + return 22; + } else if(((((((((a14==3)||(a14==4))||(a14==5))&&(input==3))&&(a26==1))&&!(a13==1))&&!(a19==1))&&(((a10==1)&&((((a17==1)||((((a25==1)&&(!(a2==1)&&(a29==1)))&&!(a19==1))||(a9==1)))||(a21==1))&&(a3==12)))&&(a27==21)))){ + if((a9==1)){ + a27 = 19; + a25 = 0; + a2 = 1; + a14 = 6; + a0 = 1; + a24 = 0; + a17 = 1; + a26 = 0; + a3 = 13; + }else{ + a3 = 14; + a27 = 19; + a15 = 0; + a21 = 1; + a24 = 0; + a26 = 0; + a14 = 3; + } + return -1; + } else if((((a14==5)&&((a9==1)||((!(a21==1)&&(!(a29==1)||(a28==1)))&&(a27==20))))&&(!(a9==1)&&((a5==1)&&(((!(a25==1)&&((a10==1)&&((a15==1)&&((a3==13)&&(input==6)))))&&!(a2==1))&&(a26==1)))))){ + if((a23==1)){ + a8 = 1; + a2 = 1; + a25 = 1; + a26 = 0; + a12 = 0; + a24 = 1; + }else{ + a27 = 19; + a25 = 1; + a15 = 0; + a2 = 1; + a17 = 1; + a14 = 6; + a8 = 0; + a3 = 12; + } + return 22; + } else if((((((a27==21)&&(!(a18==1)||(((a11==1)||((!(a9==1)&&(a28==1))||!(a18==1)))&&(a3==13))))&&(a26==1))||!(a7==1))&&((((((((a14==5)||(a14==6))||(a14==7))&&(input==3))&&!(a25==1))&&(a2==1))&&(a7==1))&&(a10==1)))){ + a14 = 4; + a6 = 1; + a9 = 0; + a25 = 1; + a23 = 0; + a27 = 20; + return 25; + } else if((((a27==19)&&(!(a25==1)&&((a28==1)&&((((a18==1)&&((input==6)&&((a14==5)||((a14==3)||(a14==4)))))&&(a10==1))&&!(a9==1)))))&&(((a3==13)&&(!(a23==1)&&(((a17==1)||((a9==1)||(a28==1)))&&!(a2==1))))&&(a26==1)))){ + a17 = 0; + a20 = 1; + a27 = 20; + a25 = 1; + a2 = 1; + a14 = 4; + a18 = 1; + return 25; + } else if((((a20==1)&&((((!(a25==1)&&((a7==1)&&((input==4)&&(((((a3==14)&&(a14==6))&&(a26==1))||(((a3==14)&&(a14==7))&&(a26==1)))||(!(a26==1)&&((a14==3)&&(a3==12)))))))&&(a27==19))&&(a10==1))&&!(a21==1)))&&(((((a18==1)&&!(a2==1))||(a13==1))&&!(a17==1))||(a11==1)))){ + a3 = 13; + a27 = 21; + a2 = 1; + a14 = 5; + a26 = 0; + a16 = 0; + a11 = 0; + return -1; + } else if((((((!(a15==1)||(((a15==1)&&!(a11==1))||!(a20==1)))&&!(a25==1))&&!(a19==1))&&(a26==1))&&((a10==1)&&((a2==1)&&((a27==20)&&(!(a23==1)&&((((((a14==5)||(a14==6))||(a14==7))&&(input==2))&&(a18==1))&&(a3==14)))))))){ + a16 = 0; + a14 = 6; + a2 = 0; + a7 = 1; + a27 = 19; + a19 = 0; + return 26; + } else if((((!(a25==1)&&(((a12==1)&&((((a14==4)||(a14==5))&&(input==6))&&(a5==1)))&&!(a2==1)))&&(a10==1))&&(((a3==12)&&((a1==1)||((a27==21)&&(!(a20==1)||((a6==1)&&((a23==1)||(a15==1)))))))&&(a26==1)))){ + if((a2==1)){ + a9 = 1; + a22 = 0; + a14 = 5; + a26 = 0; + a16 = 1; + a2 = 1; + a27 = 19; + }else{ + a8 = 0; + a14 = 6; + a25 = 1; + a4 = 1; + a27 = 20; + } + return 22; + } else if((((a20==1)&&(((a27==20)&&((a12==1)&&(a10==1)))&&!(a9==1)))&&((a18==1)&&(((a18==1)&&(((((((((a14==7)&&(a3==12))||((a3==13)&&(a14==3)))||((a14==4)&&(a3==13)))&&(input==6))&&!(a26==1))&&(a7==1))&&(a2==1))&&!(a25==1)))&&!(a9==1))))){ + a27 = 19; + a3 = 13; + a29 = 1; + a15 = 1; + a28 = 1; + a2 = 0; + a14 = 7; + return 26; + } else if((((a10==1)&&(!(a23==1)&&((a26==1)&&(((a25==1)&&((((a3==14)&&(a14==3))||(((a14==6)&&(a3==13))||((a3==13)&&(a14==7))))&&(input==4)))&&(a12==1)))))&&((a27==21)&&(((!(a6==1)||(((a18==1)&&(a6==1))&&!(a16==1)))||!(a29==1))&&(a2==1))))){ + a14 = 3; + a6 = 1; + a26 = 0; + a27 = 20; + a29 = 1; + a19 = 0; + a3 = 12; + return 25; + } else if(((((((a10==1)&&((a6==1)&&(a25==1)))||!(a7==1))||(a23==1))&&!(a17==1))&&((a2==1)&&(!(a21==1)&&((((a27==20)&&((((((a3==13)&&(a14==7))||((a3==14)&&(a14==3)))||((a14==4)&&(a3==14)))&&(input==6))&&(a26==1)))&&(a20==1))&&(a20==1)))))){ + a14 = 3; + a9 = 0; + a3 = 14; + a25 = 0; + a13 = 0; + a29 = 1; + return 22; + } else if((((a27==20)&&(((a2==1)&&(!(a26==1)&&((a3==14)&&((a25==1)&&((a28==1)&&((((a20==1)||!(a6==1))||!(a6==1))&&(a28==1)))))))&&(a10==1)))&&((((input==5)&&((a14==5)||(a14==6)))&&(a5==1))&&!(a21==1)))){ + a12 = 1; + a26 = 1; + a28 = 1; + a27 = 19; + a3 = 12; + a14 = 3; + return -1; + } else if((((a7==1)&&(((a25==1)&&((((a26==1)&&(((a3==13)&&(input==1))&&(a29==1)))&&(a18==1))&&!(a16==1)))&&(a18==1)))&&((((a27==21)&&(((a10==1)&&(a6==1))&&(a2==1)))||(a23==1))&&(a14==5)))){ + a9 = 0; + a27 = 20; + a11 = 0; + a18 = 1; + a14 = 3; + return 25; + } else if((((a6==1)&&(((((!(a16==1)&&(((input==5)&&((a14==4)||(a14==5)))&&(a6==1)))&&(a27==19))&&!(a2==1))&&!(a26==1))&&(a3==13)))&&((((a18==1)&&(((a6==1)&&!(a25==1))||!(a7==1)))&&(a10==1))&&!(a19==1)))){ + a2 = 1; + a25 = 1; + a18 = 1; + a14 = 3; + a12 = 1; + a15 = 1; + a27 = 21; + return 22; + } else if((((a23==1)||(!(a12==1)||((a23==1)||(a20==1))))&&((a5==1)&&((((input==3)&&((!(a26==1)&&(((a27==21)&&((((a14==7)&&!(a2==1))&&!(a25==1))&&(a3==14)))&&(a10==1)))||((!(a10==1)&&((a27==19)&&((((a14==3)&&(a2==1))&&(a25==1))&&(a3==12))))&&(a26==1))))&&!(a16==1))&&(a12==1))))){ + a2 = 1; + a12 = 0; + a19 = 1; + a22 = 0; + a27 = 19; + a10 = 1; + a25 = 1; + a26 = 1; + a3 = 13; + a14 = 7; + return -1; + } else if((((a11==1)||((a20==1)&&(((a7==1)||!(a12==1))||(a19==1))))&&(((a29==1)&&((a3==13)&&(((a27==21)&&(!(a25==1)&&(!(a2==1)&&((a10==1)&&((input==2)&&((a14==5)||(a14==6)))))))&&(a26==1))))&&!(a13==1)))){ + if((a22==1)){ + a4 = 0; + a16 = 1; + a14 = 4; + a27 = 20; + a2 = 1; + }else{ + a27 = 20; + a14 = 4; + a2 = 1; + a19 = 1; + a8 = 0; + a25 = 1; + } + return 24; + } else if((((a10==1)&&((!(a13==1)&&(!(a26==1)&&((input==4)&&((a14==5)||(a14==6)))))&&!(a16==1)))&&((!(a11==1)&&((((a28==1)&&((a27==20)&&((a25==1)&&((a28==1)&&(a3==14)))))&&!(a2==1))||(a16==1)))&&!(a13==1)))){ + a1 = 0; + a2 = 1; + a3 = 13; + a25 = 0; + a14 = 5; + a23 = 0; + a6 = 1; + return 26; + } else if((((a11==1)||(((a27==19)&&(((a7==1)&&!(a25==1))&&!(a21==1)))&&!(a16==1)))&&((!(a2==1)&&((a6==1)&&(!(a13==1)&&((a10==1)&&((a3==12)&&((((a14==4)||(a14==5))&&(input==2))&&!(a26==1)))))))&&!(a23==1)))){ + a27 = 20; + a25 = 1; + a20 = 1; + a14 = 5; + a11 = 0; + a2 = 1; + return 26; + } return calculate_output2(input); + } + + int calculate_output2(int input) { + if(((((a18==1)&&(a26==1))&&(a3==14))&&(!(a16==1)&&(((((a25==1)&&((!(a2==1)&&(!(a21==1)&&((a20==1)&&((a10==1)&&(((a14==4)||(a14==5))&&(input==4))))))&&(a29==1)))&&(a7==1))&&(a18==1))&&(a27==20))))){ + a28 = 1; + a2 = 1; + a3 = 13; + a12 = 1; + a14 = 3; + a23 = 0; + return 24; + } else if((((a27==19)&&((a17==1)||((a14==3)&&((a17==1)||(!(a19==1)&&((a9==1)||((a26==1)&&(a20==1))))))))&&((a25==1)&&((((((a3==14)&&(input==3))&&!(a2==1))&&(a7==1))&&(a10==1))&&(a18==1))))){ + a17 = 0; + a9 = 0; + a29 = 1; + a3 = 12; + return -1; + } else if((((((a6==1)&&((a10==1)&&(!(a11==1)&&((input==6)&&(((a3==13)&&(a14==7))||((a3==14)&&(a14==3)))))))&&(a7==1))&&(a2==1))&&((a15==1)&&(!(a20==1)||(!(a28==1)||((((a27==21)&&(a20==1))&&(a25==1))&&!(a26==1))))))){ + a26 = 1; + a20 = 1; + a16 = 0; + a7 = 1; + a27 = 20; + a14 = 4; + a3 = 13; + return 22; + } else if((((a26==1)&&(!(a17==1)&&((a14==4)&&((a5==1)&&(((input==3)&&(a27==21))&&(a6==1))))))&&(!(a17==1)&&((a10==1)&&((!(a25==1)&&(!(a13==1)&&(((a18==1)&&!(a19==1))&&(a3==13))))&&!(a2==1)))))){ + a18 = 0; + a2 = 1; + a0 = 1; + a4 = 0; + a14 = 6; + a25 = 1; + a27 = 19; + return -1; + } else if(((((a3==12)&&(!(a2==1)&&(((a27==19)&&((((!(a11==1)&&((((input==2)&&((a14==7)||((a14==5)||(a14==6))))&&(a29==1))&&!(a23==1)))&&!(a9==1))&&!(a9==1))&&(a10==1)))&&(a26==1))))&&!(a25==1))&&((a20==1)||!(a18==1)))){ + a26 = 0; + a16 = 0; + a3 = 14; + a2 = 1; + a25 = 1; + a18 = 1; + a11 = 0; + a14 = 5; + a27 = 20; + return 22; + } else if(((((a26==1)&&(((a3==13)&&((((((a14==5)||(a14==6))&&(input==4))&&!(a25==1))&&(a10==1))&&(a2==1)))&&!(a16==1)))&&(a29==1))&&(((!(a6==1)||(((a17==1)||(a5==1))&&(a27==20)))&&!(a11==1))&&(a18==1)))){ + a9 = 0; + a16 = 0; + a25 = 1; + a2 = 0; + a26 = 0; + a14 = 3; + a27 = 19; + return 26; + } else if(((!(a23==1)&&((a5==1)&&(!(a2==1)&&((a26==1)&&(!(a23==1)&&(((input==5)&&((((a14==6)&&(a3==12))||((a14==7)&&(a3==12)))||((a14==3)&&(a3==13))))&&(a27==21)))))))&&((!(a25==1)&&(!(a28==1)||(((a28==1)||(a16==1))||!(a6==1))))&&(a10==1)))){ + if((a16==1)){ + a14 = 5; + a0 = 0; + a27 = 19; + a16 = 1; + a3 = 14; + a2 = 1; + a1 = 1; + }else{ + a28 = 0; + a5 = 0; + a27 = 20; + a14 = 3; + a8 = 0; + a3 = 13; + } + return 22; + } else if(((((((a3==12)&&(((a25==1)&&((input==3)&&(((a14==4)||(a14==5))||(a14==6))))&&(a2==1)))&&(a7==1))&&!(a9==1))&&(a5==1))&&(((((a10==1)&&((a27==20)&&((a26==1)&&(a29==1))))||(a13==1))&&!(a11==1))&&!(a13==1)))){ + a14 = 7; + a20 = 1; + a16 = 0; + a6 = 1; + return 24; + } else if((((a2==1)&&((!(a9==1)&&((a14==7)&&((((((a10==1)&&(input==2))&&!(a25==1))&&!(a9==1))&&!(a13==1))&&(a26==1))))&&(a20==1)))&&(((((a3==13)&&(a12==1))&&!(a23==1))&&(a27==20))&&(a20==1)))){ + a25 = 1; + a3 = 12; + a11 = 0; + a18 = 1; + a19 = 0; + a27 = 19; + a14 = 3; + return -1; + } else if(((((a5==1)||(a23==1))&&(a29==1))&&((((a15==1)&&((a29==1)&&((a10==1)&&(!(a25==1)&&((a2==1)&&((a27==21)&&((((input==6)&&((a14==5)||((a14==3)||(a14==4))))&&!(a21==1))&&(a26==1))))))))&&(a3==14))&&!(a19==1)))){ + a23 = 0; + a14 = 3; + a27 = 19; + a25 = 1; + a16 = 0; + a5 = 1; + a3 = 12; + return -1; + } else if((((a10==1)&&((a18==1)&&((((a3==13)&&((input==5)&&(a14==4)))&&(a25==1))&&(a29==1))))&&((a2==1)&&((a26==1)&&(!(a7==1)||((a27==20)&&((a15==1)&&((a7==1)&&((a9==1)||(a6==1)))))))))){ + if((a29==1)){ + a6 = 1; + a13 = 0; + a2 = 0; + a25 = 0; + a27 = 19; + a3 = 14; + a14 = 3; + a26 = 0; + }else{ + a25 = 0; + a18 = 1; + a14 = 3; + a16 = 0; + a3 = 12; + a2 = 0; + a28 = 1; + } + return 22; + } else if(((((((a28==1)&&((a27==21)&&((input==5)&&(((a26==1)&&(((a14==3)&&!(a25==1))&&(a3==12)))||(((((a25==1)&&(a14==6))&&(a3==14))&&!(a26==1))||((((a25==1)&&(a14==7))&&(a3==14))&&!(a26==1)))))))&&!(a17==1))&&!(a2==1))&&!(a16==1))&&(!(a19==1)&&((((a28==1)&&(a10==1))&&(a18==1))&&!(a13==1))))){ + a26 = 0; + a25 = 1; + a14 = 3; + a9 = 1; + a6 = 0; + a13 = 1; + a3 = 14; + return 24; + } else if(((!(a2==1)&&(((a18==1)&&(((a18==1)&&((a6==1)&&(((a3==12)&&(((a14==4)||(a14==5))&&(input==2)))&&(a26==1))))&&!(a11==1)))&&(a27==21)))&&(((a5==1)&&((a17==1)||(!(a25==1)&&(a6==1))))&&(a10==1)))){ + a27 = 19; + a2 = 1; + a20 = 0; + a7 = 0; + a18 = 0; + a14 = 4; + a26 = 0; + a3 = 13; + return -1; + } else if((((((((a12==1)&&(a3==14))&&(a27==20))&&!(a25==1))&&!(a26==1))||(a9==1))&&((a6==1)&&((a15==1)&&(!(a16==1)&&(((a2==1)&&((((input==2)&&((a14==4)||(a14==5)))&&(a10==1))&&(a12==1)))&&!(a16==1))))))){ + a29 = 1; + a28 = 1; + a14 = 5; + a21 = 0; + return 26; + } else if(((((!(a9==1)&&((((a10==1)&&((input==3)&&((((a26==1)&&((a14==6)&&(a3==14)))||((a26==1)&&((a3==14)&&(a14==7))))||(((a14==3)&&(a3==12))&&!(a26==1)))))&&!(a16==1))&&!(a23==1)))&&!(a2==1))&&(a28==1))&&((a25==1)&&((((a18==1)||(a16==1))||(a21==1))&&(a27==21))))){ + if((a15==1)){ + a27 = 19; + a16 = 1; + a2 = 1; + a23 = 1; + a3 = 14; + a8 = 1; + a26 = 1; + a14 = 3; + }else{ + a27 = 19; + a14 = 3; + a4 = 0; + a25 = 0; + a11 = 1; + a13 = 1; + a26 = 0; + a2 = 1; + a3 = 14; + } + return 24; + } else if(((((!(a9==1)&&((!(a20==1)||((((a9==1)||(a6==1))&&(a14==6))&&(a10==1)))&&(a27==21)))&&(a6==1))&&!(a23==1))&&((!(a26==1)&&(!(a25==1)&&(!(a11==1)&&((a3==14)&&(input==2)))))&&!(a2==1)))){ + a14 = 7; + a25 = 1; + a27 = 19; + a2 = 1; + a9 = 1; + a1 = 1; + a3 = 12; + return 25; + } else if(((!(a2==1)&&((a3==13)&&((a10==1)&&(((a6==1)||(a13==1))&&!(a26==1)))))&&((!(a16==1)&&((!(a23==1)&&((((a20==1)&&(((a14==4)||(a14==5))&&(input==4)))&&!(a1==1))&&!(a23==1)))&&(a27==20)))&&(a25==1)))){ + a14 = 4; + a5 = 1; + a3 = 14; + a15 = 1; + a28 = 1; + a27 = 19; + return 26; + } else if((((a25==1)&&((a6==1)&&((a19==1)||(((a7==1)||(a13==1))&&(a20==1)))))&&((((((a27==20)&&(!(a16==1)&&((a7==1)&&((input==4)&&(a26==1)))))&&(a3==14))&&(a10==1))&&(a14==5))&&(a2==1)))){ + a23 = 0; + a17 = 0; + a25 = 0; + a14 = 4; + a3 = 13; + a7 = 1; + a26 = 0; + return 24; + } else if(((((a27==19)&&(!(a7==1)||(!(a16==1)&&(!(a15==1)||(a7==1)))))&&!(a19==1))&&((!(a21==1)&&(((((a26==1)&&((a3==14)&&((input==3)&&(a10==1))))&&(a14==5))&&!(a2==1))&&(a25==1)))&&!(a9==1)))){ + a2 = 1; + a18 = 1; + a5 = 1; + a9 = 0; + a27 = 20; + return 25; + } else if((((!(a17==1)&&(!(a25==1)&&(!(a13==1)&&(!(a16==1)&&(((((a14==6)||(a14==7))&&(input==2))&&(a28==1))&&(a3==14))))))&&(a10==1))&&((!(a2==1)&&(((a16==1)||((a16==1)||(a18==1)))&&!(a26==1)))&&(a27==20)))){ + a27 = 19; + a25 = 1; + a26 = 1; + a3 = 12; + a0 = 0; + a2 = 1; + a28 = 0; + a14 = 7; + return -1; + } else if(((((a28==1)||!(a29==1))||!(a15==1))&&(!(a1==1)&&(!(a17==1)&&(!(a25==1)&&((a27==20)&&(((a10==1)&&(((a3==14)&&((((input==5)&&((a14==4)||(a14==5)))&&(a28==1))&&!(a2==1)))&&(a15==1)))&&!(a26==1)))))))){ + a14 = 6; + a2 = 1; + a22 = 1; + a23 = 1; + a27 = 21; + return -1; + } else if((((((!(a2==1)&&((a27==21)&&((!(a21==1)&&((input==3)&&((a14==5)||(a14==6))))&&(a10==1))))&&!(a17==1))&&(a3==13))&&!(a21==1))&&((!(a25==1)&&(((a23==1)||((a26==1)&&(a18==1)))||(a17==1)))||(a9==1)))){ + a27 = 19; + a26 = 0; + a21 = 1; + a18 = 0; + a14 = 7; + a7 = 0; + a3 = 14; + a25 = 1; + return -1; + } else if(((((a27==21)&&((a10==1)&&(!(a5==1)||((((a29==1)&&(a3==12))||(a13==1))&&!(a11==1)))))||!(a12==1))&&((a14==4)&&(!(a26==1)&&((a5==1)&&(((a25==1)&&((input==6)&&(a2==1)))&&(a29==1))))))){ + a27 = 19; + a15 = 1; + a5 = 1; + a26 = 1; + a14 = 3; + a7 = 1; + return -1; + } else if((((a5==1)&&(((a27==20)&&(((a2==1)&&(a20==1))||(a16==1)))&&!(a26==1)))&&((a10==1)&&((a25==1)&&((((!(a23==1)&&(((input==3)&&((a14==3)||(a14==4)))&&!(a19==1)))&&(a20==1))&&!(a17==1))&&(a3==12)))))){ + a28 = 1; + a25 = 0; + a21 = 0; + a3 = 14; + a14 = 7; + a19 = 0; + return 26; + } else if(((!(a18==1)||(((((((a27==19)&&((a21==1)||(a12==1)))&&(a10==1))&&!(a16==1))&&!(a2==1))&&!(a25==1))||(a21==1)))&&(!(a11==1)&&(!(a21==1)&&((input==1)&&(((((a14==6)&&(a3==14))&&(a26==1))||((a26==1)&&((a3==14)&&(a14==7))))||(((a14==3)&&(a3==12))&&!(a26==1)))))))){ + a29 = 1; + a3 = 14; + a27 = 20; + a19 = 0; + a25 = 1; + a14 = 5; + a26 = 1; + a11 = 0; + a2 = 1; + return 26; + } else if((((a5==1)&&(((((a2==1)&&((a5==1)&&(((input==4)&&(((((a25==1)&&(a14==7))&&(a3==14))&&!(a26==1))||((((a14==3)&&!(a25==1))&&(a3==12))&&(a26==1))))&&(a10==1))))&&(a6==1))&&(a29==1))&&!(a19==1)))&&(((a12==1)&&(a27==20))||(a17==1)))){ + a5 = 1; + a25 = 0; + a16 = 0; + a18 = 1; + a26 = 0; + a27 = 21; + a3 = 13; + a14 = 7; + return 26; + } else if(((!(a25==1)&&(((a18==1)&&((((a10==1)&&(((a6==1)&&(((input==3)&&(a3==14))&&!(a11==1)))&&(a20==1)))&&(a26==1))&&(a18==1)))&&(a20==1)))&&((((a14==5)&&(a20==1))&&(a27==21))&&!(a2==1)))){ + a2 = 1; + a8 = 0; + a5 = 0; + a14 = 4; + a23 = 1; + a27 = 19; + return 25; + } else if((((a6==1)&&((((((!(a26==1)&&((a27==19)&&((a3==14)&&(!(a25==1)&&(a14==7)))))||(((a27==20)&&(((a14==3)&&(a25==1))&&(a3==12)))&&(a26==1)))&&(input==2))&&(a15==1))&&!(a2==1))&&!(a9==1)))&&((((a17==1)||((a5==1)&&(a10==1)))||!(a28==1))&&(a29==1)))){ + a2 = 1; + a25 = 1; + a13 = 0; + a16 = 0; + a26 = 1; + a14 = 5; + a3 = 14; + a27 = 20; + return 25; + } else if((((a13==1)||(((a27==21)&&((((a3==12)&&((a12==1)&&(a2==1)))&&(a10==1))||!(a5==1)))||!(a18==1)))&&(((!(a25==1)&&(((a7==1)&&((input==4)&&!(a26==1)))&&(a14==5)))&&!(a17==1))&&!(a9==1)))){ + if((a16==1)){ + a6 = 1; + a27 = 20; + a26 = 1; + a2 = 0; + a5 = 1; + a14 = 7; + a15 = 1; + }else{ + a28 = 1; + a12 = 1; + } + return 24; + } else if(((((a27==21)&&(!(a23==1)&&((a15==1)&&(((((a10==1)&&((input==6)&&((a14==3)||(a14==4))))&&(a12==1))&&!(a9==1))&&!(a9==1)))))&&!(a25==1))&&((a2==1)&&((a20==1)&&(((a3==14)&&(a18==1))&&!(a26==1)))))){ + a3 = 13; + a27 = 20; + a25 = 1; + a14 = 4; + a20 = 1; + a26 = 1; + a28 = 1; + a16 = 0; + return 22; + } else if(((!(a13==1)&&((a21==1)||((!(a12==1)||(!(a2==1)&&(a20==1)))||(a11==1))))&&((a6==1)&&((!(a17==1)&&(((a27==20)&&((a10==1)&&((input==6)&&(((a14==7)&&(a3==13))||((a14==3)&&(a3==14))))))&&!(a25==1)))&&!(a26==1))))){ + a4 = 0; + a24 = 1; + a2 = 1; + a3 = 13; + a9 = 1; + a27 = 19; + a25 = 1; + a14 = 4; + return 26; + } else if((((a17==1)||(((((a2==1)&&((a3==13)&&(a15==1)))&&(a27==20))&&!(a19==1))&&!(a16==1)))&&((a15==1)&&(!(a13==1)&&((a26==1)&&((((!(a25==1)&&(input==4))&&!(a1==1))&&(a14==7))&&(a10==1))))))){ + a27 = 19; + a3 = 14; + a26 = 0; + a28 = 1; + a14 = 6; + a23 = 0; + a25 = 1; + a2 = 0; + a7 = 1; + return 26; + } else if(((((a14==4)&&((!(a6==1)||(!(a25==1)&&((a7==1)&&(a27==21))))&&(a3==13)))&&!(a19==1))&&((a20==1)&&((a28==1)&&(((a29==1)&&((((a10==1)&&(input==5))&&(a26==1))&&!(a2==1)))&&!(a17==1)))))){ + a22 = 0; + a27 = 19; + a4 = 0; + a26 = 0; + a3 = 14; + a1 = 1; + return 25; + } else if(((((!(a1==1)&&((((input==5)&&((((a3==13)&&(a14==6))||((a14==7)&&(a3==13)))||((a14==3)&&(a3==14))))&&!(a9==1))&&(a2==1)))&&(a5==1))&&(a12==1))&&(((a26==1)&&(((a5==1)&&((a10==1)&&((a12==1)&&(a25==1))))||!(a18==1)))&&(a27==21)))){ + a27 = 20; + a14 = 3; + a16 = 0; + a3 = 13; + a15 = 1; + a6 = 1; + return 26; + } else if(((((a10==1)&&(!(a28==1)||(!(a15==1)||(((a28==1)&&(a7==1))&&(a3==12)))))&&(a25==1))&&((a27==21)&&((a2==1)&&((a26==1)&&((!(a21==1)&&(((((a14==5)||(a14==6))||(a14==7))&&(input==4))&&!(a21==1)))&&!(a1==1))))))){ + a7 = 1; + a5 = 1; + a29 = 1; + a27 = 19; + a14 = 3; + return -1; + } else if((((a15==1)&&((a5==1)&&((a6==1)&&(((((((a25==1)&&(a14==6))&&(a3==14))&&!(a26==1))||(!(a26==1)&&(((a25==1)&&(a14==7))&&(a3==14))))||((a26==1)&&((a3==12)&&((a14==3)&&!(a25==1)))))&&(input==2)))))&&(!(a6==1)||(((((a27==21)&&((a18==1)&&(a10==1)))&&!(a11==1))||(a17==1))&&!(a2==1))))){ + a3 = 13; + a4 = 1; + a25 = 1; + a26 = 1; + a14 = 6; + a27 = 19; + a2 = 1; + a20 = 0; + return -1; + } else if((((a15==1)&&((a20==1)&&((a10==1)&&((a18==1)&&(a27==20)))))&&(!(a1==1)&&(!(a17==1)&&((!(a2==1)&&(((((((a3==12)&&(a14==4))&&!(a26==1))||(((a26==1)&&((a3==14)&&(a14==7)))||(((a14==3)&&(a3==12))&&!(a26==1))))&&(input==2))&&(a15==1))&&!(a11==1)))&&!(a25==1)))))){ + a24 = 0; + a12 = 0; + a27 = 19; + a26 = 0; + a3 = 14; + a14 = 7; + a4 = 0; + a2 = 1; + a25 = 1; + return 26; + } else if((((a27==19)&&((a14==7)&&((a5==1)&&(a18==1))))&&((a12==1)&&((((((a25==1)&&(((a10==1)&&(!(a2==1)&&((input==1)&&(a26==1))))&&!(a23==1)))&&(a3==13))&&!(a11==1))&&(a18==1))&&(a12==1))))){ + a6 = 1; + a25 = 0; + a3 = 12; + a2 = 1; + a12 = 1; + a23 = 0; + return -1; + } else if(((((a27==21)&&((a25==1)&&((a17==1)||((a10==1)&&((a12==1)&&(a12==1))))))&&(a26==1))&&((!(a11==1)&&((((((((a3==13)&&(a14==6))||((a14==7)&&(a3==13)))||((a3==14)&&(a14==3)))&&(input==6))&&(a29==1))&&!(a1==1))&&(a2==1)))&&!(a23==1)))){ + a7 = 1; + a14 = 3; + a27 = 20; + a17 = 0; + a12 = 1; + a3 = 13; + return 25; + } else if((((((a26==1)&&((a20==1)&&((a14==7)&&((a20==1)&&(!(a21==1)&&(((a5==1)||(a11==1))&&(a12==1)))))))||(a9==1))&&(a2==1))&&((a27==20)&&((a25==1)&&(((a3==12)&&(input==4))&&(a10==1)))))){ + a7 = 1; + a17 = 0; + a23 = 0; + a3 = 13; + a14 = 5; + return 26; + } else if(((((a3==14)&&((a9==1)&&(((a23==1)&&(((a7==1)&&(a10==1))&&(a27==19)))&&(a26==1))))&&!(a12==1))&&(((a9==1)&&((!(a29==1)&&((a25==1)&&((input==3)&&!(a2==1))))&&(a14==4)))&&(a11==1)))){ + a14 = 6; + a6 = 0; + a13 = 1; + a2 = 1; + a16 = 1; + a3 = 12; + return 24; + } else if((((((a17==1)||((a10==1)&&(a29==1)))&&(a14==3))&&(a28==1))&&(((((a15==1)&&(!(a26==1)&&((a3==14)&&((!(a2==1)&&((input==5)&&(a27==19)))&&(a25==1)))))&&(a29==1))&&(a29==1))&&(a12==1)))){ + a3 = 13; + a23 = 0; + a14 = 4; + a2 = 1; + a1 = 0; + a11 = 0; + a27 = 20; + a26 = 1; + return 24; + } else if((((((((!(a25==1)&&((a16==1)||(!(a6==1)||(!(a15==1)||(a20==1)))))&&!(a17==1))&&!(a26==1))&&(a10==1))&&(a3==14))&&(a27==21))&&((a14==3)&&((a18==1)&&(((input==2)&&!(a2==1))&&!(a19==1)))))){ + a17 = 1; + a19 = 1; + a24 = 1; + a3 = 13; + return 22; + } else if(((((a28==1)&&((a11==1)||(!(a2==1)&&(((a18==1)&&(a27==19))&&(a3==12)))))&&!(a17==1))&&((((((((input==4)&&((a14==3)||(a14==4)))&&(a26==1))&&!(a13==1))&&(a10==1))&&(a25==1))&&(a12==1))&&!(a21==1)))){ + a3 = 13; + a14 = 6; + a13 = 0; + a7 = 1; + a5 = 1; + a2 = 1; + a25 = 0; + return -1; + } else if(((!(a26==1)&&(((a10==1)&&((a3==13)&&((((a14==6)||(a14==7))&&(input==2))&&(a2==1))))&&(a7==1)))&&(!(a9==1)&&((a15==1)&&((a20==1)&&((!(a25==1)&&(((a13==1)||(a29==1))||!(a15==1)))&&(a27==20))))))){ + a28 = 1; + a3 = 14; + a29 = 1; + a26 = 1; + a25 = 1; + a14 = 5; + a18 = 1; + return 26; + } else if((((a2==1)&&((a3==13)&&((!(a28==1)||(a7==1))&&(a10==1))))&&(((a25==1)&&((((((((((a14==3)||(a14==4))||(a14==5))&&(input==3))&&(a20==1))&&!(a13==1))&&(a7==1))&&(a27==20))&&(a6==1))&&!(a16==1)))&&!(a26==1)))){ + a3 = 12; + a17 = 0; + a14 = 6; + a27 = 21; + a11 = 0; + a29 = 1; + return 26; + } else if((((a12==1)&&(((!(a21==1)&&(!(a2==1)&&(((input==2)&&!(a25==1))&&(a14==5))))&&(a3==14))&&!(a19==1)))&&(((a10==1)&&((!(a26==1)&&(!(a13==1)&&((a27==21)&&(a6==1))))&&(a7==1)))&&!(a13==1)))){ + if((a16==1)){ + a25 = 1; + a27 = 19; + a2 = 1; + a12 = 0; + a17 = 1; + a14 = 4; + a3 = 12; + }else{ + a3 = 12; + a14 = 7; + a21 = 1; + a25 = 1; + a27 = 19; + a0 = 1; + a8 = 0; + a2 = 1; + } + return 25; + } else if(((!(a29==1)||(!(a20==1)||((a10==1)&&((a2==1)&&(a15==1)))))&&(((((!(a11==1)&&((a25==1)&&(((a3==12)&&((((a14==5)||(a14==6))||(a14==7))&&(input==6)))&&(a29==1))))&&(a27==20))&&!(a26==1))&&!(a1==1))&&!(a1==1)))){ + a29 = 1; + a27 = 21; + a26 = 1; + a15 = 1; + a20 = 1; + a3 = 14; + a14 = 4; + return 25; + } else if((((((input==1)&&(((((a14==7)&&(a25==1))&&(a3==14))&&!(a26==1))||((a26==1)&&(((a14==3)&&!(a25==1))&&(a3==12)))))&&!(a2==1))&&(a18==1))&&((((a27==20)&&(!(a9==1)&&(!(a6==1)||(((a28==1)&&(a10==1))||(a11==1)))))&&(a20==1))||!(a18==1)))){ + a17 = 0; + a27 = 19; + a2 = 1; + a26 = 1; + a18 = 1; + a25 = 1; + a3 = 12; + a19 = 0; + a14 = 3; + return -1; + } else if((((a18==1)&&(((a10==1)&&(!(a19==1)&&((a27==21)&&(a5==1))))&&(a2==1)))&&(!(a19==1)&&((a26==1)&&((a3==14)&&(((((((a14==6)||(a14==7))&&(input==5))&&!(a19==1))&&(a20==1))&&!(a25==1))&&(a29==1))))))){ + a27 = 19; + a3 = 12; + a7 = 1; + a25 = 1; + a18 = 1; + a14 = 3; + a11 = 0; + return -1; + } else if(((!(a25==1)&&(!(a2==1)&&(!(a11==1)&&((a12==1)&&(((a14==6)||(a14==7))&&(input==4))))))&&(((a9==1)||(((a6==1)&&(((a3==13)&&((a27==21)&&((a20==1)&&(a6==1))))&&(a10==1)))&&!(a26==1)))||(a13==1)))){ + a3 = 12; + a8 = 1; + a25 = 1; + a22 = 1; + a27 = 19; + a6 = 0; + a26 = 1; + a2 = 1; + a14 = 4; + return 24; + } else if((((a10==1)&&(((a14==6)&&((((a27==20)&&((input==6)&&(a26==1)))&&!(a2==1))&&(a12==1)))&&(a6==1)))&&(!(a16==1)&&(!(a28==1)||(!(a15==1)||(((a3==12)&&((a6==1)||(a13==1)))&&!(a25==1))))))){ + a29 = 1; + a23 = 0; + a14 = 4; + a25 = 1; + a2 = 1; + a6 = 1; + a3 = 13; + return 25; + } else if((((((a2==1)&&(!(a7==1)||((a15==1)&&(a10==1))))||(a11==1))||!(a29==1))&&((!(a13==1)&&((a27==20)&&(((((((a14==3)||(a14==4))&&(input==1))&&(a25==1))&&(a3==12))&&!(a26==1))&&!(a11==1))))&&(a18==1)))){ + a20 = 1; + a17 = 0; + a1 = 0; + a26 = 1; + a27 = 19; + a14 = 3; + return -1; + } else if(((((a10==1)&&((((!(a2==1)&&(input==6))&&(a25==1))&&(a27==19))&&!(a21==1)))&&(a20==1))&&((!(a19==1)&&((a9==1)||(((a3==14)&&(((a14==5)&&(a18==1))||(a1==1)))&&(a26==1))))||(a21==1)))){ + if((a29==1)){ + a21 = 0; + a26 = 0; + a14 = 4; + a28 = 1; + a25 = 0; + a1 = 0; + }else{ + a27 = 20; + a26 = 0; + a14 = 7; + a12 = 1; + a11 = 0; + a15 = 1; + } + return 26; + } else if(((!(a16==1)&&((!(a9==1)&&(((a25==1)&&((a27==19)&&((a10==1)&&((((((a14==6)&&(a3==14))&&(a26==1))||((a26==1)&&((a3==14)&&(a14==7))))||(((a14==3)&&(a3==12))&&!(a26==1)))&&(input==4)))))&&!(a11==1)))&&(a12==1)))&&((!(a2==1)&&(!(a6==1)||(a15==1)))&&!(a17==1)))){ + a14 = 5; + a26 = 1; + a25 = 0; + a17 = 0; + a7 = 1; + a27 = 20; + a3 = 12; + a5 = 1; + return 26; + } else if(((!(a21==1)&&((a6==1)&&((!(a2==1)&&(((a15==1)&&((((((a14==3)&&(a3==12))&&!(a26==1))||(((a26==1)&&((a3==14)&&(a14==6)))||(((a3==14)&&(a14==7))&&(a26==1))))&&(input==1))&&(a10==1)))&&(a27==19)))&&!(a11==1))))&&((a25==1)&&((!(a5==1)||(a6==1))||!(a12==1))))){ + a7 = 1; + a26 = 1; + a27 = 20; + a28 = 1; + a3 = 13; + a2 = 1; + a14 = 4; + a5 = 1; + return 26; + } else if(((((a14==5)&&((a5==1)&&((input==5)&&!(a25==1))))&&(a10==1))&&(((a26==1)&&((!(a29==1)||(((a3==12)&&(!(a2==1)&&(!(a18==1)||((a12==1)||!(a15==1)))))&&!(a23==1)))&&(a27==20)))||!(a6==1)))){ + a5 = 1; + a20 = 1; + a2 = 1; + a26 = 0; + a15 = 1; + return 25; + } else if((((((a10==1)&&(!(a5==1)||(!(a26==1)&&((a23==1)||((!(a16==1)&&((a27==20)&&(a18==1)))&&!(a2==1))))))&&!(a19==1))&&!(a13==1))&&((((input==3)&&(((a14==4)&&(a3==14))||(((a3==13)&&(a14==7))||((a3==14)&&(a14==3)))))&&(a25==1))&&(a12==1)))){ + a20 = 1; + a2 = 1; + a11 = 0; + a3 = 14; + a27 = 21; + a14 = 3; + return 24; + } else if(((((a10==1)&&(!(a21==1)&&(!(a11==1)&&(((a3==13)&&((a27==21)&&((input==3)&&((a14==6)||(a14==7)))))&&!(a17==1)))))&&!(a9==1))&&((!(a2==1)&&(((!(a26==1)&&(a6==1))&&!(a23==1))&&!(a25==1)))&&(a15==1)))){ + if((a22==1)){ + a14 = 7; + a9 = 1; + a2 = 1; + a3 = 12; + a26 = 1; + a19 = 1; + a25 = 1; + a27 = 19; + a0 = 1; + }else{ + a12 = 0; + a4 = 0; + a20 = 0; + a14 = 6; + a27 = 20; + } + return -1; + } else if(((((a23==1)||((((a5==1)&&(a6==1))||!(a6==1))&&(a27==20)))&&(a25==1))&&((((!(a1==1)&&((a18==1)&&((a2==1)&&((((a3==14)&&(a14==4))||(((a3==13)&&(a14==7))||((a3==14)&&(a14==3))))&&(input==3)))))&&(a10==1))&&!(a11==1))&&(a26==1)))){ + if((a15==1)){ + a1 = 0; + a2 = 0; + a18 = 1; + a3 = 14; + a27 = 19; + a14 = 6; + a6 = 1; + a25 = 0; + a26 = 0; + }else{ + a21 = 0; + a6 = 1; + a2 = 0; + a14 = 4; + a26 = 0; + a3 = 13; + a5 = 1; + } + return 25; + } else if(((!(a7==1)||((a6==1)&&(a27==20)))&&((!(a9==1)&&((a20==1)&&(!(a13==1)&&((a18==1)&&((!(a2==1)&&(((((a3==14)&&((a14==7)&&(a25==1)))&&!(a26==1))||(((a3==12)&&((a14==3)&&!(a25==1)))&&(a26==1)))&&(input==2)))&&(a10==1))))))&&!(a1==1)))){ + a26 = 1; + a17 = 0; + a14 = 7; + a9 = 0; + a7 = 1; + a27 = 21; + a2 = 1; + a3 = 13; + a25 = 0; + return 24; + } else if((((a16==1)||((!(a23==1)&&((((a2==1)&&(a28==1))&&(a26==1))&&(a29==1)))||!(a5==1)))&&(!(a19==1)&&((a5==1)&&((!(a25==1)&&((((input==5)&&((a14==7)||((a14==5)||(a14==6))))&&(a27==20))&&(a10==1)))&&(a3==14)))))){ + a27 = 19; + a11 = 0; + a19 = 0; + a3 = 12; + a25 = 1; + a1 = 0; + a14 = 3; + return -1; + } else if((((!(a21==1)&&((a27==19)&&((a10==1)&&((((((a3==12)&&((a14==4)&&!(a25==1)))&&(a26==1))||((!(a26==1)&&((a3==14)&&((a14==7)&&(a25==1))))||(((a3==12)&&((a14==3)&&!(a25==1)))&&(a26==1))))&&(input==3))&&!(a2==1)))))&&!(a23==1))&&((a13==1)||(((!(a16==1)&&(a18==1))&&(a28==1))&&!(a23==1))))){ + a14 = 3; + a3 = 12; + a12 = 1; + a26 = 1; + a25 = 1; + a28 = 1; + a2 = 1; + return -1; + } else if(((!(a17==1)&&(!(a9==1)&&((input==1)&&((((a10==1)&&(((((a14==7)&&!(a2==1))&&!(a25==1))&&(a3==14))&&(a27==21)))&&!(a26==1))||(((((a3==12)&&(((a14==3)&&(a2==1))&&(a25==1)))&&(a27==19))&&!(a10==1))&&(a26==1))))))&&(!(a16==1)&&(((a5==1)&&((a28==1)||!(a15==1)))||(a21==1))))){ + if((a12==1)){ + a3 = 13; + a17 = 1; + a27 = 19; + a21 = 1; + a25 = 1; + a18 = 0; + a26 = 1; + a2 = 1; + a14 = 5; + a10 = 1; + }else{ + a26 = 0; + a2 = 1; + a13 = 1; + a10 = 1; + a27 = 19; + a14 = 5; + a3 = 14; + a25 = 0; + a12 = 0; + } + return 22; + } else if((((!(a2==1)&&(((input==5)&&((((a3==13)&&(a14==7))||((a14==3)&&(a3==14)))||((a3==14)&&(a14==4))))&&!(a26==1)))&&(a25==1))&&(((((a7==1)&&((a17==1)||(((a27==20)&&(!(a16==1)&&(a15==1)))&&!(a1==1))))||(a9==1))||(a16==1))&&(a10==1)))){ + a26 = 1; + a25 = 0; + a20 = 1; + a27 = 19; + a18 = 1; + a3 = 12; + a13 = 0; + a14 = 3; + a2 = 1; + return -1; + } else if((((a10==1)&&(a7==1))&&((((((a18==1)&&(!(a1==1)&&((!(a9==1)&&(((((((a14==5)||(a14==6))||(a14==7))&&(input==3))&&!(a26==1))&&(a3==14))&&(a12==1)))&&(a2==1))))&&(a5==1))&&!(a25==1))&&(a29==1))&&(a27==21)))){ + a25 = 1; + a19 = 0; + a26 = 1; + a13 = 0; + a27 = 20; + a14 = 7; + a16 = 0; + return 24; + } else if(((((a17==1)||((a27==20)&&((a6==1)||!(a6==1))))&&!(a2==1))&&((a25==1)&&(!(a16==1)&&(((a26==1)&&((!(a23==1)&&(((((a14==3)&&(a3==14))||(((a3==13)&&(a14==6))||((a14==7)&&(a3==13))))&&(input==5))&&(a10==1)))&&(a12==1)))&&!(a1==1)))))){ + a3 = 13; + a21 = 0; + a14 = 3; + a7 = 1; + a2 = 1; + return 22; + } else if(((!(a1==1)&&(((a10==1)&&(((((a15==1)&&((input==2)&&(((a14==4)||(a14==5))||(a14==6))))&&!(a11==1))&&!(a23==1))&&!(a2==1)))&&(a3==14)))&&(((a25==1)&&((((a15==1)||(a23==1))&&!(a26==1))&&(a27==19)))||(a21==1)))){ + a14 = 3; + a28 = 1; + a3 = 12; + a9 = 0; + a26 = 1; + a2 = 1; + return -1; + } else if((((a3==14)&&((a11==1)||((a27==20)&&((a29==1)&&(a15==1)))))&&(!(a2==1)&&((a5==1)&&((a10==1)&&(((a20==1)&&(((((input==4)&&((a14==4)||(a14==5)))&&(a12==1))&&(a12==1))&&!(a25==1)))&&!(a26==1))))))){ + a27 = 21; + a3 = 12; + a20 = 0; + a25 = 1; + a29 = 0; + a16 = 1; + a14 = 3; + return 22; + } else if(((((((a27==19)&&(!(a2==1)&&(((input==1)&&((a14==6)||((a14==4)||(a14==5))))&&!(a13==1))))&&(a18==1))&&(a3==14))&&(a10==1))&&(((!(a18==1)||((a25==1)&&(((a15==1)&&!(a1==1))||!(a15==1))))&&!(a26==1))||(a11==1)))){ + a18 = 1; + a27 = 20; + a3 = 13; + a12 = 1; + a26 = 1; + a2 = 1; + a6 = 1; + a14 = 4; + return 25; + } else if(((((a3==12)&&(((a10==1)&&((a14==5)&&((a27==21)&&((a5==1)||!(a6==1)))))&&!(a19==1)))||(a1==1))&&(!(a26==1)&&(!(a23==1)&&(((!(a16==1)&&((input==5)&&!(a25==1)))&&(a7==1))&&(a2==1)))))){ + a25 = 1; + a29 = 1; + a18 = 1; + a16 = 0; + a27 = 19; + a14 = 3; + a26 = 1; + return -1; + } else if(((((a7==1)&&(((a10==1)&&(((!(a23==1)&&(((a27==21)&&((input==1)&&((a14==3)||(a14==4))))&&!(a26==1)))&&(a28==1))&&(a15==1)))&&!(a16==1)))&&!(a25==1))&&(((a3==12)&&((a28==1)&&!(a11==1)))&&!(a2==1)))){ + if((a17==1)){ + a14 = 4; + a2 = 1; + a17 = 1; + a25 = 1; + a20 = 0; + a27 = 19; + a22 = 1; + }else{ + a15 = 0; + a2 = 1; + a14 = 5; + a16 = 1; + a26 = 1; + a6 = 0; + a27 = 19; + } + return 22; + } else if((((a3==14)&&((a10==1)&&(!(a9==1)&&((a15==1)&&((a27==21)&&((((a14==3)||(a14==4))&&(input==4))&&!(a2==1)))))))&&((!(a17==1)&&(((a13==1)||((a26==1)&&((a20==1)||(a21==1))))&&!(a1==1)))&&!(a25==1)))){ + a19 = 1; + a27 = 19; + a14 = 4; + a11 = 1; + a2 = 1; + a26 = 0; + a25 = 1; + a28 = 0; + return 22; + } else if(((((a2==1)&&((a27==21)&&((a3==13)&&((((!(a19==1)&&(!(a9==1)&&(a18==1)))&&!(a17==1))&&(a10==1))||!(a18==1)))))&&(a14==6))&&(!(a16==1)&&(!(a23==1)&&(((input==5)&&!(a26==1))&&(a25==1)))))){ + a27 = 20; + a14 = 4; + a12 = 1; + a11 = 0; + a26 = 1; + a18 = 1; + return 22; + } else if(((((((((a27==21)&&((a2==1)&&(input==1)))&&(a12==1))&&(a25==1))&&(a7==1))&&!(a26==1))&&(a10==1))&&(!(a12==1)||((!(a18==1)||(((a14==7)&&((a3==14)&&(a5==1)))&&(a12==1)))||!(a7==1))))){ + a27 = 19; + a3 = 12; + a23 = 0; + a26 = 1; + a1 = 0; + a15 = 1; + a14 = 3; + return -1; + } else if((((a28==1)&&((((a3==12)&&(((a10==1)&&(((input==4)&&((a14==3)||(a14==4)))&&!(a21==1)))&&(a18==1)))&&(a27==21))&&(a7==1)))&&((((!(a17==1)&&((a12==1)&&!(a26==1)))&&!(a2==1))&&!(a25==1))||(a23==1)))){ + a5 = 0; + a0 = 1; + a26 = 1; + a27 = 19; + a29 = 0; + a14 = 6; + a2 = 1; + a3 = 14; + return 25; + } else if((((a29==1)&&(!(a16==1)&&((a18==1)&&(!(a13==1)&&((input==2)&&((((a10==1)&&((a27==21)&&(((!(a2==1)&&(a14==7))&&!(a25==1))&&(a3==14))))&&!(a26==1))||((((((a25==1)&&((a2==1)&&(a14==3)))&&(a3==12))&&(a27==19))&&!(a10==1))&&(a26==1))))))))&&(((a15==1)&&(a6==1))||(a23==1)))){ + a13 = 1; + a10 = 1; + a2 = 1; + a22 = 0; + a3 = 14; + a26 = 1; + a27 = 20; + a14 = 7; + a20 = 0; + a25 = 1; + return -1; + } else if((((a27==21)&&((!(a13==1)&&(((((a2==1)&&((a26==1)&&(((((a3==13)&&(a14==4))||(((a3==12)&&(a14==7))||((a14==3)&&(a3==13))))&&(input==2))&&(a18==1))))&&!(a25==1))&&(a28==1))&&(a7==1)))&&(a28==1)))&&((a16==1)||((a28==1)&&(a10==1))))){ + a14 = 4; + a3 = 13; + a5 = 1; + a28 = 1; + a27 = 20; + a16 = 0; + a25 = 1; + return 26; + } else if(((((a1==1)||((a25==1)&&(!(a19==1)&&(((a28==1)&&(a20==1))||!(a28==1)))))&&!(a17==1))&&((a2==1)&&(((a10==1)&&((a5==1)&&(((input==1)&&(((a3==14)&&(a14==3))||(((a3==13)&&(a14==6))||((a14==7)&&(a3==13)))))&&(a27==20))))&&!(a26==1))))){ + a16 = 0; + a9 = 0; + a19 = 0; + a3 = 13; + a14 = 6; + a27 = 21; + return 25; + } else if((((((a29==1)&&((((a10==1)&&((input==3)&&(a26==1)))&&(a28==1))&&!(a2==1)))&&(a3==12))&&(a27==20))&&(((a17==1)||(!(a25==1)&&((((a28==1)&&(a7==1))||(a1==1))||!(a29==1))))&&(a14==5)))){ + a1 = 0; + a2 = 1; + a28 = 1; + a3 = 13; + a14 = 7; + return 25; + } else if((((((((a25==1)&&(!(a1==1)&&(((a29==1)||!(a20==1))&&(a27==20))))&&(a10==1))&&(a26==1))&&(a14==7))||!(a6==1))&&(((a5==1)&&(!(a19==1)&&(((input==2)&&(a3==12))&&(a2==1))))&&(a29==1)))){ + a14 = 3; + a7 = 1; + a12 = 1; + a27 = 19; + a17 = 0; + return -1; + } else if((((a6==1)&&(!(a21==1)&&(((((input==5)&&((((a26==1)&&((a3==14)&&(a14==6)))||(((a14==7)&&(a3==14))&&(a26==1)))||(!(a26==1)&&((a14==3)&&(a3==12)))))&&(a27==19))&&!(a2==1))&&(a6==1))))&&(!(a19==1)&&((!(a20==1)||(((a7==1)&&!(a25==1))&&(a10==1)))&&!(a23==1))))){ + if((a20==1)){ + a27 = 20; + a26 = 1; + a3 = 12; + a7 = 1; + a14 = 5; + a17 = 0; + a19 = 0; + }else{ + a27 = 20; + a2 = 1; + a7 = 1; + a14 = 7; + a26 = 1; + a11 = 0; + a3 = 13; + a25 = 1; + } + return 26; + } else if((((a3==12)&&(((((a29==1)&&((a20==1)&&(!(a9==1)&&(((a14==5)&&(input==6))&&(a10==1)))))&&(a29==1))&&(a27==20))&&(a18==1)))&&((!(a2==1)&&((!(a25==1)&&(a5==1))&&!(a1==1)))&&!(a26==1)))){ + a3 = 14; + a22 = 0; + a27 = 19; + a2 = 1; + a26 = 1; + a4 = 1; + a9 = 1; + a14 = 4; + return -1; + } else if(((!(a7==1)||((!(a21==1)&&((a17==1)||(((a3==13)&&(a18==1))&&!(a2==1))))&&(a25==1)))&&(((a6==1)&&((a26==1)&&((a27==19)&&((a10==1)&&(((input==1)&&(a14==4))&&!(a21==1))))))&&!(a17==1)))){ + a16 = 0; + a3 = 12; + a2 = 1; + a15 = 1; + a14 = 3; + a21 = 0; + return -1; + } else if(((((a25==1)&&(!(a13==1)&&(!(a2==1)&&((a27==20)&&((input==4)&&(((a3==14)&&(a14==4))||(((a3==13)&&(a14==7))||((a14==3)&&(a3==14)))))))))&&(a29==1))&&((a21==1)||((a10==1)&&((!(a26==1)&&(!(a1==1)&&((a6==1)&&(a29==1))))||!(a7==1)))))){ + a3 = 14; + a20 = 1; + a11 = 0; + a2 = 1; + a27 = 19; + a1 = 0; + a14 = 3; + a26 = 1; + return -1; + } else if(((((a27==21)&&((((((a1==1)||(a15==1))&&(a2==1))&&(a26==1))&&!(a13==1))&&(a10==1)))&&(a29==1))&&((a18==1)&&((a3==13)&&(((((input==3)&&((a14==3)||(a14==4)))&&!(a21==1))&&!(a23==1))&&(a25==1)))))){ + a23 = 0; + a16 = 0; + a14 = 3; + a3 = 12; + a11 = 0; + a27 = 19; + return -1; + } else if((((((a27==20)&&((input==1)&&((((a14==7)&&(a3==13))||((a3==14)&&(a14==3)))||((a3==14)&&(a14==4)))))&&(a26==1))&&!(a11==1))&&((a20==1)&&((a29==1)&&(((a15==1)&&((a10==1)&&((a2==1)&&((!(a15==1)||(a6==1))&&(a25==1)))))||!(a12==1)))))){ + a14 = 6; + a3 = 14; + a1 = 0; + a11 = 0; + a15 = 1; + a2 = 0; + return 22; + } else if((((!(a1==1)&&((!(a13==1)&&((((((a3==14)&&(a14==6))&&(a26==1))||(((a14==7)&&(a3==14))&&(a26==1)))||(((a3==12)&&(a14==3))&&!(a26==1)))&&(input==2)))&&(a25==1)))&&(a10==1))&&((a27==21)&&((((!(a7==1)||((a5==1)&&(a29==1)))&&(a6==1))&&!(a11==1))&&(a2==1))))){ + a28 = 1; + a20 = 1; + a3 = 13; + a14 = 3; + a27 = 20; + a26 = 1; + return 24; + } else if((((!(a2==1)&&(((a26==1)&&((a3==13)&&((a7==1)&&(a14==4))))||!(a15==1)))||(a21==1))&&((a18==1)&&((((((a28==1)&&((input==4)&&!(a25==1)))&&(a10==1))&&(a27==21))&&!(a11==1))&&(a12==1))))){ + a28 = 0; + a3 = 14; + a26 = 0; + a14 = 5; + a27 = 19; + a8 = 0; + a4 = 1; + return -1; + } else if(((!(a19==1)&&((!(a1==1)&&((a25==1)&&(!(a2==1)&&((a27==19)&&((((a14==6)||((a14==4)||(a14==5)))&&(input==1))&&!(a19==1))))))&&!(a13==1)))&&((a18==1)&&((a10==1)&&(((a3==12)&&((a6==1)&&(a7==1)))&&!(a26==1)))))){ + a26 = 1; + a21 = 0; + a14 = 3; + a11 = 0; + a20 = 1; + a2 = 1; + return -1; + } else if(((((a6==1)&&((a10==1)&&((!(a5==1)||(((a2==1)&&(a15==1))||!(a18==1)))||!(a15==1))))&&(a27==20))&&(((!(a26==1)&&((((a14==3)&&(input==4))&&(a6==1))&&!(a25==1)))&&!(a16==1))&&(a3==14)))){ + a19 = 0; + a26 = 1; + a20 = 1; + a25 = 1; + a14 = 6; + a17 = 0; + return 24; + } else if(((((a18==1)&&((((a14==4)&&(a3==13))||(((a3==12)&&(a14==7))||((a14==3)&&(a3==13))))&&(input==6)))&&!(a25==1))&&(((((a19==1)||(!(a21==1)&&(((((a27==21)&&(a6==1))||!(a6==1))||!(a7==1))&&(a29==1))))&&(a26==1))&&(a10==1))&&(a2==1)))){ + a27 = 19; + a23 = 0; + a17 = 0; + a20 = 1; + a25 = 1; + a3 = 12; + a14 = 3; + return -1; + } else if((((a5==1)&&(((a27==20)&&((a3==12)&&((!(a17==1)&&((a18==1)&&((input==5)&&!(a25==1))))&&(a2==1))))&&(a10==1)))&&((a29==1)&&(((((a29==1)&&(a14==6))&&!(a26==1))&&!(a9==1))||(a1==1))))){ + a1 = 0; + a14 = 5; + a3 = 14; + a26 = 1; + a7 = 1; + a18 = 1; + a25 = 1; + return 25; + } else if(((((((a13==1)||(((((a15==1)&&(a3==13))&&!(a2==1))&&(a10==1))&&(a27==19)))||!(a7==1))&&!(a26==1))&&!(a25==1))&&((a29==1)&&(!(a9==1)&&(!(a17==1)&&((a7==1)&&(((a14==4)||(a14==5))&&(input==4)))))))){ + a2 = 1; + a16 = 0; + a26 = 1; + a25 = 1; + a3 = 14; + a19 = 0; + a5 = 1; + a14 = 4; + return -1; + } else if((((a10==1)&&(((a27==21)&&((!(a13==1)&&((a7==1)&&(((((input==2)&&!(a26==1))&&!(a2==1))&&(a3==12))&&(a29==1))))&&(a14==7)))&&!(a23==1)))&&((a25==1)&&((a21==1)||((a28==1)&&(a6==1)))))){ + if((a6==1)){ + a3 = 14; + a25 = 0; + a24 = 1; + a19 = 1; + a21 = 1; + a27 = 20; + }else{ + a6 = 0; + a27 = 19; + a25 = 0; + a1 = 1; + a2 = 1; + a26 = 1; + a9 = 1; + } + return 25; + } else if(((!(a18==1)||((!(a11==1)&&(((((a3==13)&&((a17==1)||(a12==1)))&&!(a2==1))&&!(a25==1))&&!(a9==1)))||!(a29==1)))&&((a6==1)&&(((((input==5)&&(a14==7))&&(a27==19))&&!(a26==1))&&(a10==1))))){ + a18 = 1; + a3 = 12; + a14 = 3; + a1 = 0; + a12 = 1; + a2 = 1; + a25 = 1; + a26 = 1; + return -1; + } else if((((((a10==1)&&(((a28==1)||!(a29==1))&&!(a2==1)))&&(a27==19))&&(a12==1))&&((a6==1)&&((((!(a11==1)&&((a14==6)&&(!(a26==1)&&((a3==13)&&(input==5)))))&&!(a25==1))&&(a20==1))&&!(a19==1))))){ + a25 = 1; + a2 = 1; + a14 = 4; + a26 = 1; + a27 = 20; + a16 = 0; + a29 = 1; + a9 = 0; + return 25; + } else if((((a10==1)&&((((((a15==1)&&((((a14==4)||(a14==5))&&(input==6))&&(a3==12)))&&(a15==1))&&(a27==20))&&!(a19==1))&&(a2==1)))&&(!(a23==1)&&(((!(a5==1)||((a18==1)&&!(a25==1)))||(a21==1))&&(a26==1))))){ + a14 = 3; + a25 = 1; + a6 = 1; + a9 = 0; + a17 = 0; + a27 = 19; + return -1; + } else if(((!(a13==1)&&((a2==1)&&((((input==1)&&((a14==5)||((a14==3)||(a14==4))))&&(a12==1))&&!(a16==1))))&&((!(a26==1)&&((!(a7==1)||(((!(a20==1)||((a15==1)&&!(a25==1)))&&(a27==20))&&(a10==1)))&&(a18==1)))&&(a3==12)))){ + a26 = 1; + a13 = 0; + a5 = 1; + a25 = 1; + a14 = 7; + a16 = 0; + return 22; + } else if((((a18==1)&&(((!(a2==1)&&((((a26==1)&&(((a14==3)&&!(a25==1))&&(a3==12)))||((((a3==14)&&((a25==1)&&(a14==6)))&&!(a26==1))||(!(a26==1)&&(((a25==1)&&(a14==7))&&(a3==14)))))&&(input==1)))&&(a6==1))&&!(a23==1)))&&(((a5==1)&&((a27==21)&&(((a15==1)&&(a15==1))&&(a10==1))))||(a9==1)))){ + if((a19==1)){ + a19 = 1; + a3 = 13; + a26 = 0; + a27 = 19; + a2 = 1; + a25 = 1; + a23 = 1; + a14 = 7; + a7 = 0; + }else{ + a14 = 5; + a25 = 0; + a3 = 12; + a21 = 1; + a27 = 19; + a2 = 1; + a20 = 0; + a26 = 0; + a6 = 0; + } + return 26; + } else if(((((a2==1)&&((((a27==21)&&(!(a19==1)&&((a14==3)&&(((a29==1)&&(a26==1))||!(a12==1)))))&&(a3==12))||(a19==1)))||!(a20==1))&&((!(a17==1)&&(((input==5)&&!(a25==1))&&(a10==1)))&&!(a23==1)))){ + a19 = 0; + a25 = 1; + a1 = 0; + a13 = 0; + a14 = 4; + a3 = 13; + a27 = 20; + return 26; + } else if((((((a10==1)&&(!(a12==1)||(!(a2==1)&&((a16==1)||((a29==1)&&(!(a23==1)&&(a15==1)))))))||!(a18==1))||(a23==1))&&(!(a25==1)&&(((a3==14)&&((a14==5)&&((a26==1)&&(input==5))))&&(a27==21))))){ + if((a11==1)){ + a25 = 1; + a8 = 0; + a15 = 0; + a0 = 1; + a3 = 13; + a26 = 0; + a2 = 1; + a14 = 6; + }else{ + a26 = 0; + a28 = 0; + a14 = 4; + a18 = 0; + a6 = 0; + a3 = 13; + a27 = 20; + } + return 26; + } else if((((a21==1)||((((a23==1)||(a28==1))&&(a3==13))&&(a27==21)))&&(((((a25==1)&&(((a7==1)&&((a10==1)&&(((input==6)&&((a14==5)||((a14==3)||(a14==4))))&&(a7==1))))&&(a26==1)))&&!(a2==1))&&!(a21==1))&&!(a19==1)))){ + if((a15==1)){ + a24 = 1; + a6 = 0; + a14 = 7; + a2 = 1; + a21 = 1; + a26 = 0; + a25 = 0; + a27 = 19; + }else{ + a22 = 0; + a14 = 3; + a25 = 0; + a20 = 0; + a21 = 1; + a2 = 1; + a3 = 14; + } + return -1; + } else if((((!(a26==1)&&((a12==1)&&!(a2==1)))&&!(a21==1))&&(((a3==14)&&(!(a25==1)&&(((a10==1)&&((a27==20)&&(((a15==1)&&((a6==1)&&((input==3)&&((a14==4)||(a14==5)))))&&!(a21==1))))&&(a5==1))))&&(a12==1)))){ + a27 = 19; + a25 = 1; + a13 = 1; + a24 = 1; + a2 = 1; + a14 = 3; + a15 = 0; + return 22; + } else if((((a25==1)&&(((a26==1)&&((((((a12==1)||!(a15==1))&&(a27==20))&&!(a1==1))||(a23==1))||!(a28==1)))&&(a3==13)))&&(((((a5==1)&&((input==4)&&((a14==5)||(a14==6))))&&(a2==1))&&(a10==1))&&!(a21==1)))){ + a27 = 19; + a3 = 12; + a23 = 0; + a9 = 0; + a14 = 3; + a28 = 1; + return -1; + } else if((((a6==1)&&(((a21==1)||(a5==1))&&(a26==1)))&&(((((!(a11==1)&&(((((((a14==3)||(a14==4))&&(input==5))&&(a25==1))&&(a7==1))&&(a10==1))&&(a29==1)))&&(a3==13))&&(a27==21))&&(a28==1))&&(a2==1)))){ + a3 = 12; + a23 = 0; + a20 = 1; + a14 = 3; + a12 = 1; + a27 = 19; + return -1; + } else if((((a25==1)&&((a27==21)&&(((a26==1)&&(((((a14==5)||(a14==6))||(a14==7))&&(input==1))&&(a10==1)))&&!(a13==1))))&&(((a1==1)||(((a2==1)&&((((a29==1)&&(a15==1))&&!(a19==1))&&(a3==12)))||(a1==1)))&&!(a16==1)))){ + a17 = 0; + a18 = 1; + a19 = 0; + a14 = 7; + return 26; + } else if(((!(a2==1)&&((a3==13)&&(((((a28==1)&&(a5==1))&&!(a9==1))&&!(a25==1))&&(a27==21))))&&((a10==1)&&((a29==1)&&((((!(a1==1)&&((input==3)&&((a14==4)||(a14==5))))&&(a15==1))&&!(a17==1))&&!(a26==1)))))){ + a22 = 0; + a5 = 0; + a13 = 1; + a14 = 7; + return -1; + } else if((((a12==1)&&((a5==1)&&(!(a25==1)&&(((!(a19==1)&&((input==1)&&((a14==6)||(a14==7))))&&(a3==13))&&!(a23==1)))))&&((a28==1)&&(((a27==19)&&((!(a2==1)&&((a26==1)&&(a18==1)))&&(a10==1)))||!(a20==1))))){ + a3 = 12; + a28 = 1; + a15 = 1; + a26 = 0; + a1 = 0; + a27 = 21; + a2 = 1; + a14 = 7; + return -1; + } else if(((!(a2==1)&&(((a26==1)&&(!(a5==1)||((a10==1)&&(a5==1))))&&(a27==21)))&&(!(a17==1)&&((a5==1)&&(!(a23==1)&&(!(a9==1)&&((a14==5)&&(!(a1==1)&&(((a3==14)&&(input==2))&&!(a25==1)))))))))){ + a27 = 19; + a14 = 3; + a26 = 0; + a13 = 1; + a9 = 1; + a2 = 1; + a4 = 0; + return 26; + } else if((((!(a15==1)||(((!(a26==1)&&((a19==1)||((a6==1)||!(a12==1))))||!(a12==1))&&(a29==1)))&&(a27==19))&&((((a25==1)&&((((((a14==7)&&(a3==12))||((a3==13)&&(a14==3)))||((a3==13)&&(a14==4)))&&(input==2))&&(a7==1)))&&(a10==1))&&!(a2==1)))){ + a28 = 1; + a27 = 21; + a23 = 0; + a3 = 14; + a2 = 1; + a11 = 0; + a14 = 3; + return 24; + } else if((((a12==1)&&(!(a16==1)&&(!(a18==1)||((((a10==1)&&((a19==1)||(a15==1)))&&(a2==1))||!(a18==1)))))&&(!(a17==1)&&(((input==5)&&((((a3==14)&&((a25==1)&&(a14==7)))&&!(a26==1))||((a26==1)&&(((a14==3)&&!(a25==1))&&(a3==12)))))&&(a27==20))))){ + a14 = 7; + a25 = 0; + a27 = 21; + a6 = 1; + a1 = 0; + a26 = 0; + a3 = 12; + return 24; + } else if((((((a5==1)&&((a29==1)&&((((a25==1)&&(input==3))&&(a2==1))&&!(a17==1))))&&(a29==1))&&(a10==1))&&((((a5==1)&&((a14==4)&&(!(a26==1)&&(!(a18==1)||(a12==1)))))&&(a3==14))&&(a27==20)))){ + a1 = 0; + a25 = 0; + a12 = 1; + a5 = 1; + a14 = 5; + a26 = 1; + a27 = 21; + return 22; + } else if((((a29==1)&&(!(a25==1)&&((((a14==6)&&(input==3))&&!(a16==1))&&!(a26==1))))&&((((a17==1)||((a17==1)||((a27==20)&&((a3==14)&&(!(a13==1)&&((a2==1)&&(a6==1)))))))&&!(a13==1))&&(a10==1)))){ + a17 = 0; + a26 = 1; + a2 = 0; + a15 = 1; + a14 = 4; + a16 = 0; + a25 = 1; + return 26; + } else if(((((((a17==1)||(!(a2==1)&&(a12==1)))&&!(a26==1))&&(a27==20))||!(a28==1))&&((!(a21==1)&&((a10==1)&&(!(a11==1)&&((!(a25==1)&&((input==6)&&(((a14==3)&&(a3==13))||(((a14==6)&&(a3==12))||((a14==7)&&(a3==12))))))&&!(a23==1)))))&&!(a1==1)))){ + a27 = 19; + a26 = 1; + a22 = 1; + a3 = 14; + a14 = 7; + a2 = 1; + a8 = 1; + a9 = 1; + return 25; + } else if(((((a6==1)&&(((a25==1)&&(((a3==14)&&((input==5)&&((a14==4)||(a14==5))))&&(a10==1)))&&(a12==1)))&&(a6==1))&&((!(a2==1)&&((a26==1)&&((!(a13==1)&&((a12==1)&&!(a23==1)))&&(a27==20))))&&!(a9==1)))){ + a14 = 3; + a27 = 19; + a19 = 0; + a3 = 12; + a5 = 1; + a2 = 1; + return -1; + } else if((((!(a6==1)||(((a25==1)&&((a6==1)&&(a27==19)))&&(a7==1)))||(a9==1))&&((a18==1)&&(!(a17==1)&&((((a14==3)&&((a26==1)&&(!(a2==1)&&((input==5)&&(a3==14)))))&&(a10==1))&&!(a9==1)))))){ + if((a19==1)){ + a18 = 1; + a25 = 0; + a12 = 1; + a7 = 1; + a14 = 5; + a3 = 12; + a27 = 20; + }else{ + a27 = 20; + a7 = 1; + a2 = 1; + a6 = 1; + } + return 25; + } else if((((((!(a11==1)&&(((a10==1)&&(input==2))&&(a5==1)))&&(a20==1))&&(a14==5))&&(a2==1))&&((((((((a6==1)&&(a6==1))&&!(a26==1))||(a13==1))&&!(a25==1))&&(a6==1))&&(a3==13))&&(a27==20)))){ + a12 = 1; + a11 = 0; + a1 = 0; + return 26; + } else if(((((((a29==1)&&(((((a18==1)&&(((a14==5)||(a14==6))&&(input==2)))&&(a5==1))&&(a10==1))&&(a2==1)))&&(a27==20))&&(a3==14))&&!(a26==1))&&(!(a21==1)&&((((a12==1)&&(a25==1))||!(a6==1))&&(a20==1))))){ + a25 = 0; + a9 = 0; + a3 = 13; + a21 = 0; + a14 = 3; + a5 = 1; + a26 = 1; + a2 = 0; + return 24; + } else if(((((a6==1)&&(!(a26==1)&&(!(a19==1)&&(((input==2)&&(((a14==4)||(a14==5))||(a14==6)))&&(a12==1)))))&&(a28==1))&&((a10==1)&&((a3==14)&&(!(a7==1)||((a27==21)&&((((a29==1)&&(a25==1))&&(a2==1))||(a21==1)))))))){ + a15 = 1; + a26 = 1; + a5 = 1; + a14 = 4; + a27 = 20; + a3 = 13; + return 25; + } else if(((((((((a20==1)&&!(a26==1))&&(a14==3))&&(a10==1))&&(a25==1))&&(a7==1))&&(a7==1))&&(!(a21==1)&&((a29==1)&&((a28==1)&&(((a3==13)&&(!(a1==1)&&((a27==21)&&(input==6))))&&!(a2==1))))))){ + a2 = 1; + a27 = 20; + a26 = 1; + a8 = 1; + a14 = 6; + a25 = 0; + a0 = 1; + return 25; + } else if((((a14==7)&&((((((a25==1)&&((a27==20)&&(input==1)))&&(a6==1))&&(a10==1))&&(a2==1))&&(a3==12)))&&((((((a9==1)||((a6==1)&&(a26==1)))||(a9==1))&&(a7==1))||!(a12==1))||(a11==1)))){ + a27 = 19; + a14 = 3; + a5 = 1; + a28 = 1; + a21 = 0; + return -1; + } else if((((((a26==1)&&((a5==1)&&((((a20==1)&&(((a14==7)&&((input==1)&&(a27==21)))&&(a10==1)))&&!(a25==1))&&(a7==1))))&&!(a23==1))&&!(a23==1))&&((a3==13)&&(!(a2==1)&&(!(a17==1)&&(a20==1)))))){ + a0 = 0; + a3 = 14; + a27 = 19; + a14 = 5; + a18 = 0; + a24 = 1; + a26 = 0; + a25 = 1; + return -1; + } else if((((((a3==13)&&((a12==1)&&!(a16==1)))&&(a2==1))&&(a7==1))&&(((a10==1)&&((a27==21)&&(((a18==1)&&((a6==1)&&(((((a14==6)||(a14==7))&&(input==6))&&(a7==1))&&!(a25==1))))&&(a7==1))))&&!(a26==1)))){ + a17 = 0; + a9 = 0; + a26 = 1; + a27 = 20; + a3 = 12; + a14 = 3; + a29 = 1; + return -1; + } else if((((((((a7==1)&&(((!(a26==1)&&((a3==12)&&(a14==4)))||(((a26==1)&&((a14==7)&&(a3==14)))||(!(a26==1)&&((a3==12)&&(a14==3)))))&&(input==5)))&&(a10==1))&&(a27==20))&&!(a19==1))&&!(a25==1))&&((!(a20==1)||(!(a7==1)||((a11==1)||(!(a11==1)&&(a7==1)))))&&!(a2==1)))){ + if((a15==1)){ + a28 = 0; + a14 = 4; + a27 = 19; + a19 = 1; + a25 = 1; + a26 = 0; + a8 = 0; + a3 = 14; + }else{ + a27 = 19; + a4 = 1; + a8 = 0; + a26 = 0; + a25 = 1; + a3 = 12; + a9 = 1; + a14 = 6; + a2 = 1; + } + return -1; + } else if((((a10==1)&&(((a15==1)&&((!(a1==1)&&((a15==1)||!(a28==1)))&&(a7==1)))&&(a26==1)))&&(((((a18==1)&&(((((a14==6)||(a14==7))&&(input==1))&&(a3==14))&&(a20==1)))&&!(a2==1))&&(a27==21))&&!(a25==1)))){ + a19 = 1; + a0 = 0; + a27 = 19; + a21 = 1; + a3 = 12; + a14 = 7; + return 24; + } else if(((!(a13==1)&&(((a5==1)&&((a27==20)&&(((!(a26==1)&&((input==6)&&((a14==5)||(a14==6))))&&(a3==14))&&!(a21==1))))&&!(a11==1)))&&(!(a23==1)&&(((a2==1)&&(((a28==1)&&(a25==1))&&(a10==1)))&&(a29==1))))){ + a26 = 1; + a14 = 3; + a12 = 1; + a29 = 1; + a27 = 19; + a15 = 1; + a3 = 12; + return -1; + } else if(((((((((((a3==14)&&(a14==6))&&(a26==1))||(((a3==14)&&(a14==7))&&(a26==1)))||(!(a26==1)&&((a3==12)&&(a14==3))))&&(input==4))&&(a10==1))&&(a7==1))&&(a12==1))&&(((a27==21)&&(!(a2==1)&&((a18==1)&&((((a15==1)||!(a15==1))||(a16==1))&&(a25==1)))))||!(a20==1)))){ + a14 = 5; + a2 = 1; + a15 = 0; + a22 = 1; + a27 = 19; + a25 = 0; + a13 = 1; + a3 = 12; + a26 = 1; + return 24; + } else if((((!(a23==1)&&(((a25==1)&&((a3==13)&&(input==2)))&&(a14==7)))&&(a29==1))&&(!(a23==1)&&(((a18==1)&&((a10==1)&&(((a26==1)&&((!(a2==1)&&(a18==1))&&!(a23==1)))&&(a27==19))))||!(a28==1))))){ + if((a4==1)){ + a29 = 1; + a13 = 0; + a27 = 20; + a26 = 0; + a3 = 14; + }else{ + a26 = 0; + a29 = 1; + a16 = 0; + a28 = 1; + a25 = 0; + a3 = 14; + a14 = 4; + } + return 26; + } else if(((!(a26==1)&&((a10==1)&&(!(a21==1)&&(!(a28==1)||(!(a20==1)||(((a28==1)||!(a18==1))&&(a27==21)))))))&&((((a25==1)&&((((((a14==3)||(a14==4))||(a14==5))&&(input==1))&&(a3==14))&&(a20==1)))&&!(a2==1))&&(a6==1)))){ + if((a20==1)){ + a26 = 1; + a27 = 19; + a15 = 0; + a2 = 1; + a14 = 3; + a5 = 0; + a3 = 13; + }else{ + a8 = 0; + a3 = 13; + a14 = 7; + a18 = 0; + a27 = 20; + a17 = 1; + } + return 25; + } else if((((a27==19)&&((!(a19==1)&&((a17==1)||((a25==1)&&(((a6==1)&&!(a19==1))||!(a6==1)))))&&(a14==3)))&&((a10==1)&&(!(a2==1)&&(((a3==14)&&(!(a9==1)&&((input==4)&&!(a26==1))))&&(a12==1)))))){ + a15 = 1; + a23 = 0; + a3 = 12; + a2 = 1; + a14 = 7; + a6 = 1; + a27 = 20; + return 25; + } else if((((a27==20)&&(((((((input==3)&&(a2==1))&&(a14==3))&&(a10==1))&&!(a11==1))&&!(a9==1))&&(a3==14)))&&(!(a11==1)&&(((!(a26==1)&&(!(a25==1)&&((a7==1)&&(a12==1))))||(a21==1))&&!(a9==1))))){ + a26 = 1; + a16 = 0; + a5 = 1; + a25 = 1; + a7 = 1; + a14 = 6; + return 25; + } else if(((!(a13==1)&&(((a12==1)&&((((((a27==21)&&(((a25==1)&&(a14==4))&&(a3==12)))&&(a26==1))||((!(a26==1)&&(((!(a25==1)&&(a14==7))&&(a3==14))&&(a27==20)))||(((a27==21)&&(((a14==3)&&(a25==1))&&(a3==12)))&&(a26==1))))&&(input==6))&&(a2==1)))&&(a10==1)))&&((a6==1)&&(((a18==1)&&(!(a5==1)||(a5==1)))&&(a28==1))))){ + a25 = 0; + a26 = 0; + a27 = 20; + a14 = 7; + a11 = 0; + a3 = 14; + a12 = 1; + a28 = 1; + return 26; + } else if(((!(a17==1)&&((a11==1)||(((a28==1)&&(a20==1))&&(a7==1))))&&((a5==1)&&(((input==4)&&((!(a26==1)&&((a10==1)&&((a27==21)&&((!(a25==1)&&(!(a2==1)&&(a14==7)))&&(a3==14)))))||((a26==1)&&(((a27==19)&&(((a25==1)&&((a14==3)&&(a2==1)))&&(a3==12)))&&!(a10==1)))))&&!(a13==1))))){ + a0 = 0; + a9 = 1; + a2 = 1; + a25 = 1; + a10 = 1; + a14 = 3; + a26 = 0; + a3 = 14; + a28 = 0; + a27 = 20; + return -1; + } else if((((a28==1)&&((a18==1)&&((((a3==14)&&((a25==1)&&((a14==5)&&((input==6)&&(a2==1)))))&&(a27==20))&&(a20==1))))&&((!(a17==1)&&((a26==1)&&(((a10==1)&&(a18==1))||!(a18==1))))&&(a7==1)))){ + a23 = 0; + a3 = 13; + a26 = 0; + a25 = 0; + a29 = 1; + a21 = 0; + return 22; + } else if((((a7==1)&&((((((((a25==1)&&(((input==1)&&((a14==5)||(a14==6)))&&!(a13==1)))&&(a27==20))&&(a3==14))&&!(a9==1))&&!(a16==1))&&(a10==1))&&!(a26==1)))&&((a15==1)&&((a12==1)&&((a6==1)&&(a2==1)))))){ + a17 = 0; + a3 = 12; + a25 = 0; + a20 = 1; + a14 = 4; + a27 = 21; + a19 = 0; + return 24; + } else if(((((a16==1)||(((a25==1)&&(((a26==1)&&((a29==1)&&(a3==12)))&&(a27==19)))&&!(a2==1)))&&!(a1==1))&&(((a28==1)&&(((((input==5)&&((a14==3)||(a14==4)))&&(a10==1))&&!(a1==1))&&(a7==1)))&&!(a17==1)))){ + a25 = 0; + a13 = 0; + a14 = 4; + a9 = 0; + a2 = 1; + a27 = 20; + a28 = 1; + return -1; + } else if((((((a15==1)&&(((!(a2==1)&&(input==6))&&!(a25==1))&&(a3==13)))&&!(a16==1))&&(a6==1))&&(!(a29==1)||((a10==1)&&((((!(a6==1)||((a14==7)&&(a18==1)))&&(a26==1))&&!(a11==1))&&(a27==21)))))){ + a0 = 0; + a24 = 0; + a25 = 1; + a27 = 20; + a14 = 5; + a9 = 1; + a3 = 12; + return 24; + } else if((((!(a26==1)&&((a27==19)&&((a14==3)&&(!(a21==1)&&((a15==1)&&((a3==14)&&((input==6)&&(a10==1))))))))&&!(a2==1))&&(((a1==1)||((a25==1)&&(!(a20==1)||(!(a11==1)&&(a6==1)))))&&(a18==1)))){ + a27 = 20; + a14 = 4; + a3 = 12; + a29 = 1; + a15 = 1; + a7 = 1; + a2 = 1; + return 25; + } else if((((((a27==19)&&(((((input==2)&&((a14==6)||(a14==7)))&&!(a13==1))&&!(a25==1))&&(a26==1)))&&(a29==1))&&(a10==1))&&((a28==1)&&(((((a3==13)&&((a18==1)&&(a28==1)))&&(a15==1))&&!(a2==1))&&!(a19==1))))){ + a2 = 1; + a25 = 1; + a27 = 20; + a13 = 0; + a14 = 3; + a16 = 0; + return 25; + } else if(((((a27==20)&&(!(a13==1)&&(!(a2==1)&&((a5==1)&&(((a14==4)||(a14==5))&&(input==6))))))&&!(a9==1))&&((a20==1)&&(!(a9==1)&&((!(a26==1)&&(((a3==14)&&((a10==1)&&(a18==1)))&&!(a25==1)))||!(a15==1)))))){ + a26 = 1; + a3 = 13; + a25 = 1; + a23 = 1; + a22 = 1; + a14 = 3; + a27 = 19; + a2 = 1; + return 24; + } else if((((a10==1)&&(!(a2==1)&&((((a13==1)||((a20==1)&&(a18==1)))&&!(a26==1))||(a23==1))))&&((a27==19)&&((a25==1)&&(((a15==1)&&((((input==6)&&(((a14==5)||(a14==6))||(a14==7)))&&!(a13==1))&&(a20==1)))&&(a3==13)))))){ + a12 = 1; + a18 = 1; + a14 = 3; + a6 = 1; + a2 = 1; + a3 = 12; + a26 = 1; + return -1; + } else if(((!(a15==1)||((!(a11==1)&&((((a28==1)||(a13==1))&&(a7==1))&&!(a26==1)))&&!(a1==1)))&&((((a2==1)&&((a27==20)&&((a25==1)&&((a10==1)&&((a3==14)&&(input==6))))))&&(a14==4))&&(a20==1)))){ + a26 = 1; + a20 = 1; + a5 = 1; + a27 = 21; + a11 = 0; + a3 = 12; + a25 = 0; + return 22; + } else if((((a7==1)&&(((((a3==14)&&((a27==21)&&(((a5==1)&&(!(a2==1)&&(a20==1)))&&!(a26==1))))&&(a20==1))&&(a18==1))&&(a10==1)))&&(!(a13==1)&&(!(a25==1)&&(!(a11==1)&&((input==3)&&(a14==4))))))){ + a14 = 3; + a27 = 19; + a20 = 0; + a3 = 12; + a26 = 1; + a2 = 1; + a8 = 0; + return -1; + } else if((((((a29==1)&&(!(a28==1)||((a11==1)||((a27==21)&&(!(a11==1)&&((a7==1)&&(a10==1)))))))&&(a15==1))||(a19==1))&&((a3==13)&&((a2==1)&&(!(a26==1)&&(((input==2)&&((a14==6)||(a14==7)))&&!(a25==1))))))){ + a14 = 3; + a13 = 0; + a5 = 1; + a25 = 1; + a18 = 1; + return 22; + } else if((((a10==1)&&(((a5==1)&&((a3==14)&&(((a2==1)&&(a28==1))&&(a26==1))))||!(a15==1)))&&(((((!(a25==1)&&(((input==6)&&(((a14==5)||(a14==6))||(a14==7)))&&!(a13==1)))&&!(a11==1))&&!(a11==1))&&(a27==20))&&(a20==1)))){ + a26 = 0; + a16 = 0; + a14 = 5; + a2 = 0; + a27 = 19; + a3 = 12; + a13 = 0; + a5 = 1; + return 26; + } else if(((!(a19==1)&&((!(a17==1)&&(!(a2==1)&&(!(a17==1)&&(!(a19==1)&&(!(a25==1)&&(input==5))))))&&(a27==21)))&&(!(a7==1)||((a12==1)&&(((a14==7)&&(((a26==1)&&(a28==1))&&(a3==13)))&&(a10==1)))))){ + a14 = 3; + a16 = 1; + a11 = 1; + a25 = 1; + a20 = 0; + a26 = 0; + a2 = 1; + a27 = 19; + return 24; + } else if(((!(a25==1)&&((a28==1)&&((((!(a1==1)&&((input==3)&&(((a14==4)&&(a3==13))||(((a14==7)&&(a3==12))||((a3==13)&&(a14==3))))))&&(a12==1))&&(a26==1))&&(a10==1))))&&(((a23==1)||((a21==1)||(!(a2==1)&&((a20==1)&&!(a16==1)))))&&(a27==20)))){ + a1 = 0; + a29 = 1; + a27 = 19; + a14 = 3; + a2 = 1; + a3 = 12; + a25 = 1; + a11 = 0; + return -1; + } else if(((!(a16==1)&&(((a27==20)&&((a12==1)&&((input==5)&&(((a3==13)&&(a14==4))||(((a14==7)&&(a3==12))||((a3==13)&&(a14==3)))))))&&!(a19==1)))&&(((a26==1)&&(!(a9==1)&&((((a11==1)||(!(a25==1)&&(a18==1)))&&(a10==1))||!(a18==1))))&&(a2==1)))){ + a14 = 3; + a27 = 19; + a23 = 0; + a29 = 1; + a25 = 1; + a15 = 1; + a3 = 12; + return -1; + } else if((((a26==1)&&(((a3==13)&&(!(a7==1)||((a21==1)||((a10==1)&&((a12==1)&&(a5==1))))))&&!(a9==1)))&&(!(a19==1)&&((!(a25==1)&&(!(a1==1)&&(!(a2==1)&&(((a14==5)||(a14==6))&&(input==1)))))&&(a27==21))))){ + a2 = 1; + a13 = 1; + a3 = 14; + a14 = 3; + a27 = 20; + a9 = 1; + a24 = 1; + return 25; + } else if((((((a29==1)&&((!(a2==1)&&(((((a14==6)&&(a3==12))||((a14==7)&&(a3==12)))||((a3==13)&&(a14==3)))&&(input==4)))&&(a27==20)))&&(a12==1))&&(a29==1))&&((a13==1)||((((!(a25==1)&&((a15==1)&&(a10==1)))||(a16==1))&&!(a26==1))&&(a18==1))))){ + a18 = 0; + a3 = 12; + a14 = 4; + a4 = 1; + a13 = 1; + a2 = 1; + a26 = 1; + return -1; + } else if((((a27==20)&&(((a1==1)||(((a26==1)&&(a28==1))&&!(a11==1)))||!(a15==1)))&&((((((((a10==1)&&((input==6)&&(a2==1)))&&(a14==6))&&(a3==12))&&(a12==1))&&!(a11==1))&&!(a16==1))&&!(a25==1)))){ + a3 = 14; + a29 = 1; + a16 = 0; + a14 = 3; + a2 = 0; + a25 = 1; + a28 = 1; + a27 = 19; + return 24; + } else if((((a27==21)&&((a10==1)&&(((!(a11==1)&&(((a12==1)||!(a18==1))&&!(a16==1)))&&(a25==1))&&!(a26==1))))&&(((((a28==1)&&(!(a9==1)&&((a2==1)&&(input==2))))&&(a6==1))&&(a3==13))&&(a14==6)))){ + a14 = 3; + a27 = 19; + a19 = 0; + a17 = 0; + a3 = 12; + a1 = 0; + a26 = 1; + return -1; + } else if((((((((a27==19)&&(a7==1))&&!(a13==1))&&!(a26==1))&&(a10==1))&&(a12==1))&&(((a3==13)&&(((!(a25==1)&&((((input==2)&&!(a2==1))&&!(a9==1))&&(a14==7)))&&!(a1==1))&&!(a19==1)))&&!(a9==1)))){ + a14 = 3; + a2 = 1; + a26 = 1; + a23 = 0; + a17 = 0; + a3 = 12; + a11 = 0; + a25 = 1; + return -1; + } else if(((((((!(a21==1)&&((((!(a26==1)&&(((a25==1)&&(a14==7))&&(a3==14)))||(((a3==12)&&(!(a25==1)&&(a14==3)))&&(a26==1)))&&(input==4))&&!(a1==1)))&&!(a19==1))&&!(a2==1))&&(a10==1))&&(a27==20))&&((a6==1)&&((a21==1)||((a21==1)||(a20==1)))))){ + a2 = 1; + a11 = 0; + a25 = 0; + a3 = 13; + a6 = 1; + a7 = 1; + a27 = 21; + a14 = 4; + a26 = 1; + return 22; + } else if(((((!(a19==1)&&(!(a13==1)&&(((a26==1)&&(a20==1))&&(a10==1))))&&(a3==12))&&!(a9==1))&&((((a27==19)&&(!(a13==1)&&(((a25==1)&&((input==4)&&(((a14==5)||(a14==6))||(a14==7))))&&(a6==1))))&&!(a2==1))&&!(a21==1)))){ + a25 = 0; + a2 = 1; + a27 = 20; + a26 = 0; + a28 = 1; + a11 = 0; + a14 = 4; + a3 = 13; + a6 = 1; + return 25; + } else if(((((!(a26==1)&&(!(a15==1)||(!(a2==1)&&((!(a18==1)||(a6==1))&&!(a25==1)))))&&!(a16==1))||(a16==1))&&((a15==1)&&(((a3==13)&&(((((a14==4)||(a14==5))&&(input==4))&&!(a13==1))&&(a10==1)))&&(a27==21))))){ + a24 = 1; + a14 = 7; + a15 = 0; + a3 = 14; + a8 = 0; + return 25; + } else if(((((a2==1)&&((a27==21)&&((a10==1)&&((a3==14)&&(((input==4)&&(((a14==3)||(a14==4))||(a14==5)))&&!(a12==1))))))&&!(a15==1))&&(!(a5==1)&&((a11==1)&&(!(a25==1)&&(!(a12==1)&&((a26==1)&&((a21==1)&&(a15==1))))))))){ + a25 = 1; + a3 = 13; + a14 = 4; + a21 = 1; + a2 = 0; + a26 = 0; + a27 = 20; + a28 = 0; + return 24; + } else if(((((a10==1)&&(!(a19==1)&&((a12==1)&&((a2==1)&&((a18==1)&&((((a25==1)&&((a15==1)&&!(a13==1)))&&(a14==4))||(a9==1)))))))&&(a26==1))&&(((a18==1)&&((a27==20)&&(input==4)))&&(a3==13)))){ + a5 = 1; + a14 = 3; + a7 = 1; + a3 = 12; + a16 = 0; + a27 = 19; + return -1; + } else if((((a7==1)&&((a27==20)&&((((input==5)&&((a14==4)||(a14==5)))&&(a2==1))&&(a28==1))))&&(!(a25==1)&&(((a28==1)&&(((a16==1)||((a3==14)&&((a11==1)||(!(a26==1)&&(a28==1)))))||!(a15==1)))&&(a10==1))))){ + a3 = 13; + a7 = 1; + a5 = 1; + a23 = 0; + a25 = 1; + a26 = 1; + a14 = 3; + return 25; + } else if(((!(a15==1)||(((a26==1)&&(!(a25==1)&&((a12==1)&&(!(a5==1)||((a18==1)&&(a18==1))))))&&(a2==1)))&&(!(a19==1)&&((a7==1)&&((a10==1)&&((a27==21)&&((input==1)&&((((a14==7)&&(a3==12))||((a14==3)&&(a3==13)))||((a3==13)&&(a14==4)))))))))){ + a21 = 0; + a14 = 4; + a7 = 1; + a3 = 13; + a16 = 0; + return 24; + } else if(((((((a6==1)&&(a3==13))&&(a25==1))&&(a2==1))||!(a29==1))&&((a18==1)&&(((((a10==1)&&(((a27==21)&&(!(a11==1)&&((input==5)&&(((a14==3)||(a14==4))||(a14==5)))))&&!(a26==1)))&&(a15==1))&&(a18==1))&&(a18==1))))){ + a6 = 1; + a14 = 3; + a27 = 19; + a16 = 0; + a26 = 1; + a12 = 1; + a3 = 12; + return -1; + } else if((((a25==1)&&((a14==7)&&(((!(a18==1)||(a12==1))&&(a7==1))&&(a28==1))))&&((a27==20)&&(((((a10==1)&&((a12==1)&&(((a3==12)&&(input==3))&&(a26==1))))&&!(a19==1))&&!(a16==1))&&(a2==1))))){ + a13 = 0; + a9 = 0; + a14 = 4; + a3 = 14; + a7 = 1; + return 26; + } else if(((!(a19==1)&&(!(a1==1)&&((!(a2==1)&&((input==4)&&((((a3==12)&&(!(a25==1)&&(a14==4)))&&(a26==1))||((!(a26==1)&&((a3==14)&&((a25==1)&&(a14==7))))||(((a3==12)&&((a14==3)&&!(a25==1)))&&(a26==1))))))&&(a27==19))))&&(((((a10==1)&&((a15==1)&&(a15==1)))||!(a7==1))||(a17==1))&&(a6==1)))){ + a25 = 1; + a21 = 0; + a3 = 12; + a14 = 3; + a2 = 1; + a18 = 1; + a20 = 1; + a26 = 1; + return -1; + } else if((((a15==1)&&((!(a25==1)&&((((a3==13)&&(a14==3))||(((a14==6)&&(a3==12))||((a3==12)&&(a14==7))))&&(input==3)))&&(a27==21)))&&((a10==1)&&((((a11==1)||((((a17==1)||((a17==1)||(a7==1)))||!(a6==1))&&(a26==1)))||(a1==1))&&!(a2==1))))){ + if((a3==14)){ + a13 = 1; + a14 = 4; + a0 = 1; + a3 = 14; + a8 = 1; + }else{ + a3 = 14; + a27 = 19; + a0 = 1; + a24 = 1; + a14 = 5; + a26 = 0; + a13 = 1; + } + return -1; + } else if(((((a26==1)&&((a10==1)&&(input==1)))&&(a29==1))&&(((a25==1)&&((a2==1)&&((!(a11==1)&&((a3==13)&&(!(a9==1)&&(((a12==1)&&(!(a12==1)||(a12==1)))&&(a27==20)))))&&(a14==4))))||!(a28==1)))){ + a14 = 5; + a15 = 1; + a26 = 0; + a18 = 1; + a3 = 14; + a7 = 1; + return 25; + } else if(((((a26==1)&&(!(a5==1)||(!(a16==1)&&((a17==1)||(!(a25==1)&&(a12==1))))))&&(a27==21))&&(((!(a11==1)&&((a15==1)&&(!(a1==1)&&(((((a14==4)||(a14==5))||(a14==6))&&(input==1))&&(a10==1)))))&&(a3==12))&&(a2==1)))){ + a1 = 0; + a11 = 0; + a27 = 20; + a3 = 13; + a14 = 4; + a25 = 1; + a29 = 1; + return 24; + } else if((((a10==1)&&((a25==1)&&((((a6==1)&&(a2==1))||(a23==1))||!(a20==1))))&&(!(a21==1)&&((((((a27==21)&&((input==3)&&(((a3==14)&&(a14==3))||(((a14==6)&&(a3==13))||((a14==7)&&(a3==13))))))&&(a5==1))&&(a29==1))&&(a26==1))&&(a29==1))))){ + a12 = 1; + a18 = 1; + a3 = 14; + a7 = 1; + a14 = 3; + return 26; + } else if((((a3==13)&&((!(a18==1)||((((!(a23==1)&&(!(a25==1)&&(a15==1)))&&(a10==1))||!(a29==1))&&(a5==1)))&&(a2==1)))&&(((a27==20)&&(!(a21==1)&&((a7==1)&&(((a14==5)||(a14==6))&&(input==1)))))&&(a26==1)))){ + a21 = 0; + a27 = 19; + a5 = 1; + a26 = 0; + a14 = 7; + a11 = 0; + a2 = 0; + a25 = 1; + return 22; + } else if(((((a29==1)&&(((((input==1)&&(a10==1))&&(a5==1))&&(a20==1))&&(a27==21)))&&(a5==1))&&((!(a25==1)&&(((a14==5)&&(!(a26==1)&&((a2==1)&&((a5==1)&&(a12==1)))))&&(a3==12)))&&!(a17==1)))){ + a18 = 1; + a1 = 0; + a27 = 20; + a3 = 14; + a23 = 0; + a25 = 1; + return 26; + } else if(((((!(a18==1)&&((!(a2==1)&&(((a10==1)&&(a5==1))&&(a27==19)))&&(a3==14)))&&(a16==1))&&!(a15==1))&&((a1==1)&&(((((!(a26==1)&&(input==2))&&(a14==3))&&!(a28==1))&&(a25==1))&&(a17==1))))){ + a0 = 0; + a2 = 1; + a14 = 4; + a17 = 1; + a8 = 0; + return 22; + } else if(((!(a18==1)||((((a15==1)||(a9==1))&&!(a2==1))&&(a10==1)))&&(((a27==19)&&(((a18==1)&&((a3==14)&&((((a20==1)&&(((a14==3)||(a14==4))&&(input==2)))&&(a15==1))&&!(a17==1))))&&!(a26==1)))&&!(a25==1)))){ + a2 = 1; + a23 = 0; + a27 = 21; + a26 = 1; + a15 = 1; + a20 = 1; + a14 = 6; + a3 = 13; + return 24; + } else if(((((a10==1)&&((a19==1)||((a23==1)||((a3==13)&&(a29==1)))))&&(a5==1))&&(!(a21==1)&&((!(a11==1)&&((a25==1)&&(((((input==4)&&((a14==3)||(a14==4)))&&(a27==21))&&(a26==1))&&(a2==1))))&&(a5==1))))){ + a18 = 1; + a19 = 0; + a14 = 3; + a27 = 20; + return 22; + } else if((((a2==1)&&((a3==13)&&((a23==1)||(!(a25==1)&&(((a15==1)&&!(a17==1))&&!(a26==1))))))&&((((a18==1)&&((a27==21)&&(((((a14==5)||((a14==3)||(a14==4)))&&(input==6))&&(a12==1))&&(a18==1))))&&!(a13==1))&&(a10==1)))){ + a25 = 1; + a5 = 1; + a9 = 0; + a19 = 0; + a26 = 1; + a14 = 4; + a27 = 20; + return 22; + } else if((((a27==21)&&((a2==1)&&(!(a25==1)&&((a14==3)&&((!(a20==1)||(!(a1==1)&&((a6==1)&&!(a9==1))))||!(a18==1))))))&&((a10==1)&&((a3==12)&&(!(a9==1)&&(!(a9==1)&&((a26==1)&&(input==6)))))))){ + a23 = 0; + a6 = 1; + a1 = 0; + return 24; + } else if((((a29==1)&&(!(a2==1)&&(!(a19==1)&&(!(a23==1)&&(((a26==1)&&(((input==1)&&((a14==6)||(a14==7)))&&(a10==1)))&&!(a1==1))))))&&((((a29==1)&&((a25==1)&&((a27==21)&&(a6==1))))&&(a3==12))||!(a12==1)))){ + a19 = 1; + a6 = 0; + a2 = 1; + a26 = 0; + a25 = 0; + a14 = 5; + a5 = 0; + return 24; + } else if(((!(a2==1)&&((a26==1)&&(!(a25==1)&&(!(a11==1)&&((a27==20)&&((a14==6)&&((a18==1)&&(((a3==12)&&(input==1))&&(a29==1)))))))))&&((!(a13==1)&&((a21==1)||((a5==1)||(a1==1))))&&(a10==1)))){ + a25 = 1; + a19 = 0; + a13 = 0; + a14 = 3; + a7 = 1; + a27 = 19; + a2 = 1; + return -1; + } else if(((((a29==1)&&(((a27==20)&&(((((a3==14)&&((a14==7)&&(a25==1)))&&!(a26==1))||(((!(a25==1)&&(a14==3))&&(a3==12))&&(a26==1)))&&(input==6)))&&(a7==1)))&&!(a1==1))&&(((a6==1)&&(((a2==1)&&(!(a12==1)||(a15==1)))&&(a10==1)))||!(a20==1)))){ + a26 = 0; + a9 = 0; + a23 = 0; + a3 = 13; + a28 = 1; + a25 = 0; + a27 = 21; + a14 = 3; + return 25; + } else if((((a6==1)&&(((a2==1)&&((a10==1)&&((!(a13==1)&&((a3==12)&&((((a14==5)||(a14==6))||(a14==7))&&(input==6))))&&!(a1==1))))&&(a25==1)))&&((a29==1)&&(!(a23==1)&&((a27==21)&&(!(a1==1)&&(!(a26==1)&&(a6==1)))))))){ + a14 = 7; + a19 = 0; + a29 = 1; + a15 = 1; + return 22; + } else if((((((((((((a14==4)&&(a3==13))||(((a3==12)&&(a14==7))||((a3==13)&&(a14==3))))&&(input==4))&&(a6==1))&&(a27==20))&&(a20==1))&&!(a26==1))&&(a10==1))&&!(a23==1))&&((a19==1)||(((a21==1)||((a2==1)&&(!(a25==1)&&(a20==1))))&&(a12==1))))){ + if((a11==1)){ + a14 = 7; + a27 = 19; + a2 = 0; + a15 = 1; + a23 = 0; + a3 = 13; + }else{ + a14 = 7; + a29 = 1; + a28 = 1; + a3 = 12; + a25 = 1; + a26 = 1; + a20 = 1; + } + return 25; + } else if((((a26==1)&&(((a12==1)&&(a25==1))&&!(a1==1)))&&((a27==21)&&((a2==1)&&(((a28==1)&&(!(a1==1)&&(!(a17==1)&&((a10==1)&&(((input==2)&&((((a3==13)&&(a14==6))||((a14==7)&&(a3==13)))||((a3==14)&&(a14==3))))&&!(a1==1))))))&&(a15==1)))))){ + a27 = 19; + a3 = 12; + a13 = 0; + a7 = 1; + a15 = 1; + a14 = 3; + return -1; + } else if(((((!(a2==1)&&((((a7==1)||!(a29==1))&&(a27==20))&&(a18==1)))||!(a5==1))&&!(a25==1))&&(((a15==1)&&(((a10==1)&&(!(a23==1)&&((a26==1)&&((input==4)&&(a3==13)))))&&(a6==1)))&&(a14==5)))){ + a2 = 1; + a14 = 6; + a24 = 0; + a26 = 0; + a13 = 1; + a18 = 0; + a27 = 19; + a25 = 1; + return 25; + } else if(((((a27==19)&&((a16==1)&&(((!(a2==1)&&((a10==1)&&(((input==3)&&((a14==3)||(a14==4)))&&(a26==1))))&&(a13==1))&&(a1==1))))&&(a3==12))&&((a25==1)&&((!(a5==1)&&(!(a7==1)&&(a6==1)))&&!(a6==1))))){ + a19 = 1; + a25 = 0; + a14 = 7; + a4 = 0; + a24 = 1; + a3 = 14; + return -1; + } else if(((!(a6==1)||(!(a13==1)&&(((a26==1)&&((a2==1)&&((a25==1)&&(a20==1))))&&(a10==1))))&&((((((a27==21)&&((a12==1)&&((input==6)&&(a3==14))))&&(a15==1))&&!(a9==1))&&(a14==4))&&(a20==1)))){ + a1 = 0; + a26 = 0; + a27 = 20; + a3 = 12; + a28 = 1; + a16 = 0; + a14 = 5; + return 26; + } else if(((((a26==1)&&((a2==1)&&((a25==1)&&(((((a14==5)||(a14==6))&&(input==3))&&!(a11==1))&&(a28==1)))))&&!(a17==1))&&((a10==1)&&((!(a15==1)||(((a15==1)&&(!(a11==1)&&(a12==1)))&&(a27==20)))&&(a3==13))))){ + a13 = 0; + a25 = 0; + a3 = 12; + a11 = 0; + a9 = 0; + a14 = 5; + return 22; + } else if(((((a15==1)&&(!(a23==1)&&((!(a26==1)&&((((a20==1)&&(a10==1))&&(a25==1))&&(a27==20)))||(a17==1))))&&!(a16==1))&&(((a2==1)&&(!(a16==1)&&(((((a14==6)&&(a3==13))||((a14==7)&&(a3==13)))||((a3==14)&&(a14==3)))&&(input==6))))&&(a7==1)))){ + a18 = 1; + a27 = 21; + a1 = 0; + a3 = 13; + a23 = 0; + a14 = 7; + return 24; + } else if((((!(a13==1)&&(!(a2==1)&&((((a10==1)&&(a15==1))&&(a27==20))&&(a29==1))))||!(a18==1))&&((a3==12)&&(((a7==1)&&((((a25==1)&&((input==6)&&((a14==6)||(a14==7))))&&(a28==1))&&(a26==1)))&&(a29==1))))){ + a26 = 0; + a14 = 3; + a3 = 14; + a18 = 1; + a5 = 1; + a23 = 0; + a2 = 1; + return 25; + } else if(((!(a23==1)&&((((a28==1)&&(((a27==19)&&(input==2))&&(a14==3)))&&(a26==1))&&!(a2==1)))&&((((a25==1)&&((a21==1)||((!(a19==1)&&((a10==1)&&(a15==1)))&&!(a23==1))))&&(a3==14))&&(a20==1)))){ + a13 = 0; + a27 = 21; + a25 = 0; + a26 = 0; + a2 = 1; + a18 = 1; + return -1; + } else if((((((a3==14)&&(!(a11==1)&&((a15==1)&&(a14==4))))&&(a10==1))||(a13==1))&&(((((a18==1)&&(!(a9==1)&&(((a27==21)&&((input==5)&&!(a2==1)))&&(a18==1))))&&!(a26==1))&&!(a25==1))&&!(a9==1)))){ + a3 = 13; + a9 = 1; + a27 = 19; + a2 = 1; + a4 = 0; + a25 = 1; + a22 = 0; + a14 = 7; + return 22; + } else if(((!(a19==1)&&(((!(a6==1)||(((a17==1)||(((a10==1)&&(a15==1))&&!(a25==1)))&&(a27==20)))||!(a15==1))&&(a29==1)))&&(((a26==1)&&((a14==5)&&((a18==1)&&((a3==12)&&(input==2)))))&&!(a2==1)))){ + a21 = 0; + a14 = 7; + a2 = 1; + a6 = 1; + a1 = 0; + return 25; + } else if(((!(a11==1)&&((((a2==1)&&((a27==20)&&((a14==4)&&((a10==1)&&(input==2)))))&&(a18==1))&&!(a9==1)))&&((a3==13)&&(((a25==1)&&((((a26==1)&&(a12==1))&&!(a16==1))&&!(a19==1)))&&!(a1==1))))){ + a27 = 19; + a29 = 1; + a12 = 1; + a3 = 12; + a14 = 3; + return -1; + } else if(((((a29==1)&&((a3==12)&&((!(a2==1)&&(a5==1))&&(a25==1))))&&(a7==1))&&((!(a17==1)&&(!(a17==1)&&(((a26==1)&&((a10==1)&&(!(a21==1)&&((input==6)&&((a14==6)||(a14==7))))))&&(a7==1))))&&(a27==21)))){ + a13 = 1; + a2 = 1; + a25 = 0; + a24 = 1; + a14 = 6; + a27 = 20; + a23 = 1; + return -1; + } else if((((a10==1)&&(!(a25==1)&&((a26==1)&&((!(a13==1)&&((((a3==14)&&(((a15==1)&&(((a14==6)||((a14==4)||(a14==5)))&&(input==1)))&&(a15==1)))&&(a5==1))&&(a18==1)))&&(a27==20)))))&&(((a15==1)&&!(a2==1))&&!(a9==1)))){ + if((a4==1)){ + a8 = 1; + a2 = 1; + a14 = 3; + a29 = 0; + a12 = 0; + a3 = 13; + }else{ + a27 = 19; + a26 = 0; + a16 = 1; + a14 = 7; + a8 = 0; + a24 = 0; + } + return 22; + } else if((((!(a13==1)&&((a3==14)&&(!(a23==1)&&((a10==1)&&((((input==1)&&(a14==4))&&!(a16==1))&&(a2==1))))))&&!(a26==1))&&((a27==20)&&((a12==1)&&((a25==1)&&((!(a1==1)&&(a12==1))&&!(a17==1))))))){ + a23 = 0; + a21 = 0; + a27 = 19; + a26 = 1; + a3 = 12; + a17 = 0; + a14 = 3; + return -1; + } else if((((!(a21==1)&&(!(a17==1)&&((a3==13)&&(((a2==1)&&(!(a25==1)&&(input==1)))&&!(a19==1)))))&&!(a16==1))&&((a20==1)&&(((((a14==5)&&(!(a23==1)&&(a28==1)))&&!(a26==1))&&(a10==1))&&(a27==20))))){ + a29 = 1; + a26 = 1; + a3 = 14; + a1 = 0; + a16 = 0; + a25 = 1; + return 26; + } else if((((a3==13)&&(((((((input==2)&&(a10==1))&&(a29==1))&&!(a16==1))&&(a14==5))&&(a15==1))&&(a25==1)))&&(!(a21==1)&&(!(a13==1)&&(((a2==1)&&((a26==1)&&((a27==21)&&(a15==1))))&&!(a9==1)))))){ + a18 = 1; + a15 = 1; + a21 = 0; + return 25; + } else if((((((a25==1)&&(((a26==1)&&((a10==1)&&((a29==1)&&(a18==1))))||(a1==1)))&&!(a19==1))||(a23==1))&&((!(a21==1)&&((((a27==20)&&((input==3)&&((a14==6)||(a14==7))))&&(a3==14))&&!(a2==1)))&&(a15==1)))){ + a27 = 19; + a29 = 1; + a14 = 4; + a1 = 0; + a26 = 0; + a3 = 13; + a25 = 0; + a15 = 1; + return 26; + } else if((((a27==19)&&((((((a28==1)&&(!(a23==1)&&(((input==6)&&(a25==1))&&(a3==13))))&&!(a13==1))&&!(a21==1))&&(a14==4))&&!(a2==1)))&&(((((a10==1)&&(a5==1))&&(a26==1))&&(a20==1))&&(a7==1)))){ + a14 = 7; + a29 = 1; + a3 = 14; + a25 = 0; + a6 = 1; + a2 = 1; + a26 = 0; + a27 = 21; + a9 = 0; + return -1; + } else if(((!(a13==1)&&((((a12==1)&&(((input==4)&&((((a14==7)&&(a3==13))||((a3==14)&&(a14==3)))||((a14==4)&&(a3==14))))&&(a27==20)))&&(a26==1))&&(a2==1)))&&((((a29==1)&&(!(a13==1)&&(((a18==1)&&(a10==1))&&(a25==1))))||!(a18==1))&&(a12==1)))){ + a21 = 0; + a3 = 13; + a14 = 6; + a5 = 1; + a25 = 0; + return 24; + } else if(((((a20==1)&&((!(a2==1)&&(!(a25==1)&&((input==6)&&((a14==5)||((a14==3)||(a14==4))))))&&(a10==1)))&&(a28==1))&&(!(a29==1)||((((a27==19)&&((((a26==1)&&(a20==1))&&!(a16==1))&&(a3==14)))&&!(a13==1))&&(a7==1))))){ + a14 = 7; + a27 = 20; + a11 = 0; + a25 = 1; + a1 = 0; + a2 = 1; + a18 = 1; + a3 = 12; + return 25; + } else if(((((a25==1)&&(!(a5==1)||(!(a13==1)&&((a29==1)&&((a3==12)&&((((a6==1)||!(a6==1))&&(a27==20))&&(a10==1)))))))&&!(a1==1))&&(((a7==1)&&((a26==1)&&((input==2)&&((a14==6)||(a14==7)))))&&!(a2==1)))){ + a26 = 0; + a18 = 1; + a2 = 1; + a3 = 14; + a13 = 0; + a17 = 0; + a14 = 3; + return 24; + } else if((((a20==1)&&((!(a2==1)&&(((((((a25==1)&&(a14==7))&&(a3==14))&&!(a26==1))||(((!(a25==1)&&(a14==3))&&(a3==12))&&(a26==1)))&&(input==6))&&(a27==20)))&&!(a9==1)))&&((a17==1)||(!(a28==1)||(!(a21==1)&&(!(a16==1)&&((a10==1)&&(a6==1)))))))){ + a7 = 1; + a26 = 1; + a2 = 1; + a1 = 0; + a25 = 0; + a28 = 1; + a14 = 6; + a27 = 21; + a3 = 12; + return 22; + } else if((((((!(a1==1)&&((input==3)&&(a26==1)))&&(a28==1))&&(a10==1))&&!(a11==1))&&((a29==1)&&((((a14==3)&&(((((a20==1)&&(a2==1))&&(a20==1))&&(a3==12))||(a21==1)))&&(a27==21))&&!(a25==1))))){ + if((a26==1)){ + a2 = 0; + a29 = 1; + a27 = 20; + a19 = 0; + a1 = 0; + }else{ + a27 = 20; + a12 = 1; + a18 = 1; + a14 = 4; + a25 = 1; + a6 = 1; + a26 = 0; + a3 = 14; + } + return 22; + } else if((((((a3==13)&&((input==3)&&(a10==1)))&&!(a19==1))&&(a5==1))&&(!(a11==1)&&((a16==1)||(((a27==19)&&(!(a26==1)&&((!(a2==1)&&((!(a25==1)&&(a20==1))||!(a12==1)))&&(a14==6))))&&(a15==1)))))){ + a14 = 3; + a19 = 0; + a26 = 1; + a27 = 20; + a2 = 1; + a25 = 1; + a6 = 1; + a17 = 0; + return 25; + } else if((((a10==1)&&((((a14==4)&&(!(a21==1)&&((a2==1)&&((a15==1)&&(((a3==12)&&(input==4))&&(a29==1))))))&&(a28==1))&&(a6==1)))&&((a25==1)&&((!(a12==1)||((a29==1)&&(a27==21)))&&!(a26==1))))){ + a16 = 0; + a3 = 13; + a11 = 0; + a27 = 20; + a13 = 0; + return 24; + } else if(((((((((a14==6)||(a14==7))&&(input==4))&&(a10==1))&&(a20==1))&&!(a1==1))&&(a26==1))&&((((a3==12)&&((a25==1)&&((a27==21)&&(!(a17==1)&&(((a7==1)||(a16==1))||(a19==1))))))||(a19==1))&&!(a2==1)))){ + a25 = 0; + a8 = 0; + a2 = 1; + a23 = 1; + a11 = 1; + a27 = 19; + a14 = 6; + return -1; + } else if((((a12==1)&&(!(a19==1)&&(((a5==1)&&((a3==14)&&((!(a6==1)||((a10==1)&&(a15==1)))&&!(a26==1))))&&(a2==1))))&&(!(a25==1)&&((a18==1)&&(((a29==1)&&(((a14==4)||(a14==5))&&(input==6)))&&(a27==20)))))){ + a25 = 1; + a14 = 3; + a13 = 0; + a5 = 1; + a27 = 19; + a29 = 1; + a3 = 12; + a26 = 1; + return -1; + } else if((((a3==12)&&((a10==1)&&(!(a9==1)&&((a26==1)&&((((input==3)&&(a27==20))&&!(a25==1))&&!(a17==1))))))&&((a14==4)&&(((a17==1)||((!(a6==1)||((a20==1)&&!(a2==1)))&&(a7==1)))&&!(a19==1))))){ + a9 = 0; + a2 = 1; + a25 = 1; + a7 = 1; + a3 = 13; + a13 = 0; + return 24; + } else if(((((((a21==1)||((a20==1)&&(a6==1)))||(a17==1))&&!(a2==1))&&(a26==1))&&((a27==19)&&(((a25==1)&&((!(a17==1)&&(!(a16==1)&&(((input==4)&&(a14==4))&&!(a11==1))))&&(a3==13)))&&(a10==1))))){ + a14 = 3; + a19 = 0; + a17 = 0; + a27 = 20; + a28 = 1; + a2 = 1; + return 22; + } else if((((a7==1)&&((((a10==1)&&(((a14==6)&&(a29==1))&&(a3==12)))||(a21==1))&&(a27==20)))&&((((!(a2==1)&&(!(a17==1)&&((a7==1)&&((input==3)&&(a26==1)))))&&!(a25==1))&&!(a23==1))&&!(a9==1)))){ + a14 = 3; + a5 = 1; + a18 = 1; + a25 = 1; + a2 = 1; + a23 = 0; + a27 = 19; + return -1; + } else if(((!(a18==1)&&((a13==1)&&((a3==14)&&((a10==1)&&(((a2==1)&&((input==6)&&((a14==5)||((a14==3)||(a14==4)))))&&(a23==1))))))&&(((a1==1)&&((a27==21)&&(((!(a12==1)&&(a7==1))&&!(a25==1))&&(a19==1))))&&(a26==1)))){ + a29 = 0; + a28 = 0; + a0 = 1; + a3 = 13; + a14 = 6; + return 22; + } else if((((a2==1)&&(((((a27==21)&&((a14==7)&&((((((input==5)&&(a25==1))&&(a28==1))&&(a5==1))&&(a20==1))&&(a3==14))))&&(a18==1))&&!(a26==1))&&(a6==1)))&&(((a6==1)||!(a15==1))&&(a10==1)))){ + a20 = 1; + a7 = 1; + a27 = 20; + a28 = 1; + a26 = 1; + a2 = 0; + a3 = 12; + a14 = 4; + return 26; + } else if((((a7==1)&&((a15==1)&&((input==6)&&((a14==6)||(a14==7)))))&&((!(a25==1)&&((a3==12)&&(!(a5==1)||(((((a12==1)&&(((a27==21)&&(a20==1))&&(a2==1)))&&(a10==1))&&!(a26==1))&&(a28==1)))))||!(a28==1)))){ + a25 = 1; + a26 = 1; + a11 = 0; + a6 = 1; + a3 = 13; + a29 = 1; + a27 = 20; + a14 = 6; + return 26; + } else if(((!(a25==1)&&((((a10==1)&&((!(a26==1)&&(a20==1))||(a21==1)))&&(a27==21))||!(a29==1)))&&((a3==14)&&((a7==1)&&(!(a21==1)&&(!(a16==1)&&((!(a2==1)&&((input==1)&&(a14==3)))&&!(a11==1)))))))){ + a13 = 1; + a27 = 19; + a4 = 0; + a23 = 1; + a3 = 12; + a2 = 1; + return 26; + } else if(((((a16==1)||(!(a29==1)||(!(a18==1)||((a13==1)||((a12==1)&&(a27==20))))))&&!(a13==1))&&((a26==1)&&((!(a25==1)&&(!(a16==1)&&(!(a2==1)&&((((a14==3)&&(a3==14))||(((a14==6)&&(a3==13))||((a14==7)&&(a3==13))))&&(input==3)))))&&(a10==1))))){ + if((a8==1)){ + a25 = 1; + a7 = 0; + a27 = 21; + a8 = 1; + a14 = 7; + a26 = 0; + a3 = 13; + a23 = 1; + a2 = 1; + }else{ + a13 = 1; + a9 = 1; + a8 = 1; + a14 = 6; + a25 = 1; + a3 = 12; + a27 = 21; + a26 = 0; + } + return -1; + } else if((((((a15==1)&&(a3==13))&&!(a11==1))&&!(a13==1))&&(((((a27==20)&&(((a2==1)&&(!(a1==1)&&((a14==3)&&(((a10==1)&&(input==1))&&(a26==1)))))&&!(a21==1)))&&(a25==1))&&!(a16==1))&&!(a1==1)))){ + a17 = 0; + a6 = 1; + a3 = 12; + a14 = 4; + a26 = 0; + return 25; + } else if((((((a3==13)&&((a26==1)&&((a10==1)&&((input==3)&&!(a25==1)))))&&!(a11==1))&&(a5==1))&&(((a29==1)&&((a14==7)&&((a27==20)&&((((a16==1)||(a29==1))&&(a2==1))||!(a12==1)))))||(a13==1)))){ + a25 = 1; + a3 = 12; + a27 = 19; + a11 = 0; + a14 = 3; + a7 = 1; + a29 = 1; + return -1; + } else if(((((!(a13==1)&&((!(a25==1)&&((a13==1)||(a29==1)))&&(a27==21)))&&!(a26==1))&&(a2==1))&&((a10==1)&&(!(a11==1)&&(((!(a19==1)&&((a15==1)&&((input==1)&&((a14==7)||((a14==5)||(a14==6))))))&&(a3==14))&&(a7==1)))))){ + a25 = 1; + a14 = 5; + a26 = 1; + a17 = 0; + a18 = 1; + return 24; + } else if((((a27==19)&&(((!(a1==1)&&((a10==1)&&((a29==1)||(a13==1))))||(a9==1))&&!(a25==1)))&&(((a6==1)&&(!(a2==1)&&((a26==1)&&(!(a21==1)&&((((a14==7)||((a14==5)||(a14==6)))&&(input==1))&&!(a9==1))))))&&(a3==12)))){ + a21 = 0; + a25 = 1; + a2 = 1; + a3 = 14; + a14 = 3; + a23 = 0; + a20 = 1; + a26 = 0; + return -1; + } else if(((((a29==1)&&((((!(a26==1)&&(((a29==1)&&(((a14==3)||(a14==4))&&(input==2)))&&!(a9==1)))&&!(a17==1))&&(a10==1))&&!(a2==1)))&&!(a9==1))&&(!(a6==1)||((a3==12)&&(((a27==21)&&(a29==1))&&!(a25==1)))))){ + a0 = 0; + a2 = 1; + a14 = 3; + a26 = 1; + a4 = 1; + a27 = 19; + a10 = 0; + a25 = 1; + return -1; + } return calculate_output3(input); + } + + int calculate_output3(int input) { + if((((a28==1)&&(!(a21==1)&&((((((input==4)&&(a10==1))&&(a12==1))&&!(a26==1))&&(a14==6))&&(a27==20))))&&((((a5==1)&&((a3==14)&&((a2==1)&&(!(a17==1)&&(a5==1)))))&&!(a25==1))||!(a18==1)))){ + a26 = 1; + a14 = 3; + a3 = 13; + a25 = 1; + a17 = 0; + a15 = 1; + a23 = 0; + return 24; + } else if((((!(a11==1)&&((a27==20)&&((a10==1)&&(((a20==1)&&((a26==1)&&((((a14==3)&&(a3==14))||(((a14==6)&&(a3==13))||((a14==7)&&(a3==13))))&&(input==4))))&&(a6==1)))))&&(a5==1))&&((!(a25==1)&&((!(a2==1)&&(a28==1))||(a1==1)))&&!(a9==1)))){ + a26 = 0; + a3 = 14; + a25 = 1; + a0 = 1; + a2 = 1; + a12 = 0; + a27 = 19; + a14 = 3; + a29 = 0; + return 22; + } else if((((a2==1)&&((a1==1)||((a27==20)&&(((a20==1)&&!(a25==1))&&(a28==1)))))&&((((((!(a23==1)&&((((a3==13)&&(a14==4))||(((a3==12)&&(a14==7))||((a14==3)&&(a3==13))))&&(input==2)))&&(a12==1))&&!(a26==1))&&(a10==1))&&(a20==1))&&!(a19==1)))){ + a14 = 4; + a5 = 1; + a3 = 13; + a6 = 1; + a29 = 1; + return 25; + } else if(((((!(a18==1)&&((((!(a25==1)&&(a7==1))&&(a10==1))&&(a27==20))&&!(a20==1)))&&(a19==1))&&!(a12==1))&&((((((((a3==13)&&(a14==4))||(((a3==12)&&(a14==7))||((a3==13)&&(a14==3))))&&(input==5))&&!(a7==1))&&(a26==1))&&(a17==1))&&!(a2==1)))){ + a12 = 0; + a3 = 14; + a25 = 1; + a2 = 1; + a17 = 1; + a14 = 4; + a24 = 1; + return 24; + } else if(((((a25==1)&&(!(a1==1)&&((!(a26==1)&&((a2==1)&&(((input==1)&&(((a14==5)||(a14==6))||(a14==7)))&&!(a13==1))))&&(a20==1))))&&(a3==12))&&(!(a29==1)||((a10==1)&&((((a15==1)&&(a7==1))&&(a27==21))||!(a18==1)))))){ + a14 = 3; + a26 = 1; + a21 = 0; + a27 = 19; + a20 = 1; + return -1; + } else if((((a26==1)&&((a25==1)&&((a3==14)&&((!(a21==1)&&((a5==1)&&((((((a14==6)||(a14==7))&&(input==5))&&(a5==1))&&(a2==1))&&(a7==1))))&&!(a9==1)))))&&((((a5==1)&&(a12==1))&&(a27==20))&&(a10==1)))){ + if((a9==1)){ + a2 = 0; + a18 = 1; + a14 = 6; + a11 = 0; + a26 = 0; + a3 = 12; + a29 = 1; + }else{ + a1 = 0; + a14 = 3; + a26 = 0; + a28 = 1; + a25 = 0; + } + return 22; + } else if(((!(a9==1)&&((a28==1)&&((!(a2==1)&&((input==6)&&((((a14==3)&&(a3==12))&&!(a26==1))||((((a3==14)&&(a14==6))&&(a26==1))||((a26==1)&&((a14==7)&&(a3==14)))))))&&!(a19==1))))&&((a23==1)||(((a10==1)&&((a27==19)&&(!(a25==1)&&((a15==1)||(a16==1)))))||!(a15==1))))){ + a25 = 1; + a28 = 1; + a7 = 1; + a14 = 3; + a26 = 1; + a3 = 12; + a19 = 0; + a2 = 1; + return -1; + } else if((((a2==1)&&((!(a17==1)&&((a7==1)&&((a5==1)&&((!(a26==1)&&(((input==1)&&(((a14==3)||(a14==4))||(a14==5)))&&(a3==13)))&&(a20==1)))))&&(a10==1)))&&(((!(a11==1)&&((a6==1)&&!(a25==1)))&&(a27==21))||(a11==1)))){ + a29 = 1; + a6 = 1; + a25 = 1; + a14 = 7; + a26 = 1; + a3 = 12; + a27 = 20; + return 22; + } else if(((((((((a2==1)&&(input==5))&&(a14==4))&&!(a9==1))&&!(a17==1))&&!(a26==1))&&!(a23==1))&&((a25==1)&&((a27==20)&&((((((a15==1)&&(a10==1))&&(a3==14))||(a21==1))||(a16==1))&&!(a21==1)))))){ + a14 = 3; + a3 = 12; + a25 = 0; + a6 = 1; + a27 = 21; + a26 = 1; + a28 = 1; + return 24; + } else if(((((a15==1)&&((((a12==1)&&(a27==21))&&(a10==1))&&!(a26==1)))&&(a3==12))&&(((a28==1)&&(((!(a25==1)&&((((input==4)&&((a14==5)||(a14==6)))&&!(a23==1))&&!(a2==1)))&&!(a19==1))&&(a12==1)))&&!(a17==1)))){ + a2 = 1; + a14 = 5; + a4 = 0; + a3 = 13; + a25 = 1; + a13 = 1; + a27 = 19; + a0 = 0; + return -1; + } else if((((a12==1)&&(((a27==21)&&(((input==5)&&((a14==5)||(a14==6)))&&!(a11==1)))&&(a10==1)))&&(((!(a2==1)&&(!(a29==1)||(((((a26==1)&&(a15==1))&&!(a9==1))&&(a3==13))&&!(a25==1))))&&(a29==1))||(a19==1)))){ + a14 = 7; + a9 = 1; + a26 = 0; + a24 = 0; + a17 = 1; + a27 = 19; + a2 = 1; + a3 = 12; + return -1; + } else if((((a27==21)&&((((((a3==13)&&(((a14==3)||(a14==4))&&(input==6)))&&(a20==1))&&(a29==1))&&(a2==1))&&!(a9==1)))&&((a26==1)&&(((a12==1)&&((!(a15==1)||((a10==1)&&(a20==1)))&&(a25==1)))||(a23==1))))){ + a18 = 1; + a27 = 20; + a14 = 3; + a6 = 1; + a28 = 1; + return 24; + } else if(((!(a23==1)&&((a25==1)&&(((a3==12)&&((input==3)&&(((a14==4)||(a14==5))||(a14==6))))&&(a27==19))))&&((!(a5==1)||(!(a9==1)&&((a10==1)&&((!(a2==1)&&((!(a26==1)&&(a15==1))||(a11==1)))&&!(a19==1)))))||(a16==1)))){ + a15 = 1; + a16 = 0; + a12 = 1; + a14 = 3; + a26 = 1; + a2 = 1; + return -1; + } else if((((a16==1)||(((!(a15==1)||(((a7==1)&&((a27==21)&&(a15==1)))||!(a6==1)))&&(a3==12))&&(a2==1)))&&(!(a13==1)&&((((a25==1)&&((a10==1)&&(((a14==7)||((a14==5)||(a14==6)))&&(input==2))))&&(a12==1))&&!(a26==1))))){ + a14 = 3; + a27 = 20; + a3 = 13; + a20 = 1; + a26 = 1; + a6 = 1; + a21 = 0; + return 25; + } else if((((((a14==4)&&((a20==1)&&(((a26==1)&&((a10==1)&&((input==1)&&(a27==20))))&&(a5==1))))&&!(a2==1))&&!(a25==1))&&((((a3==12)&&((a18==1)&&((a16==1)||(a6==1))))&&!(a16==1))&&(a28==1)))){ + a20 = 1; + a23 = 0; + a13 = 0; + a2 = 1; + a14 = 3; + a25 = 1; + a27 = 19; + return -1; + } else if(((((a28==1)&&(!(a18==1)||((((a3==12)&&(!(a26==1)&&(a12==1)))&&!(a25==1))&&(a27==21))))&&!(a21==1))&&((a6==1)&&((a10==1)&&(!(a1==1)&&(((((a14==3)||(a14==4))&&(input==3))&&!(a11==1))&&!(a2==1))))))){ + a5 = 0; + a24 = 1; + a20 = 0; + a25 = 1; + a3 = 14; + a14 = 3; + a27 = 19; + a2 = 1; + return -1; + } else if((((a2==1)&&((a10==1)&&(!(a7==1)||((a20==1)||!(a6==1)))))&&((a27==21)&&((((a15==1)&&((a29==1)&&((((a5==1)&&(((a14==7)||((a14==5)||(a14==6)))&&(input==2)))&&(a25==1))&&!(a11==1))))&&(a26==1))&&(a3==12))))){ + a6 = 1; + a15 = 1; + a26 = 0; + a14 = 4; + a27 = 20; + a5 = 1; + return 22; + } else if((((((((a25==1)&&(!(a21==1)&&(!(a17==1)&&((a7==1)&&((input==6)&&((a14==4)||(a14==5)))))))&&(a3==12))&&(a26==1))&&(a27==20))&&!(a2==1))&&((!(a5==1)||(((a10==1)&&(a12==1))&&(a5==1)))&&!(a1==1)))){ + a2 = 1; + a28 = 1; + a5 = 1; + a26 = 0; + a14 = 7; + a3 = 13; + a7 = 1; + return 25; + } else if((((((!(a20==1)||(!(a1==1)&&(((a29==1)&&(a2==1))&&(a12==1))))||(a9==1))&&(a3==14))&&(a25==1))&&(!(a13==1)&&((a10==1)&&(((a26==1)&&(((a14==4)&&(input==1))&&(a12==1)))&&(a27==21)))))){ + a20 = 1; + a14 = 3; + a19 = 0; + a27 = 19; + a3 = 12; + return -1; + } else if((((a27==20)&&((((((a15==1)&&(a15==1))&&(a2==1))||!(a15==1))||(a19==1))&&(a14==6)))&&(((!(a23==1)&&((a5==1)&&(((!(a25==1)&&(input==6))&&(a5==1))&&(a3==12))))&&!(a26==1))&&(a10==1)))){ + a27 = 19; + a26 = 1; + a17 = 0; + a25 = 1; + a5 = 1; + a14 = 3; + return -1; + } else if(((!(a5==1)||((a14==6)&&(a6==1)))&&((!(a23==1)&&((a26==1)&&(((a12==1)&&(!(a19==1)&&(((a20==1)&&((a28==1)&&((!(a25==1)&&(input==4))&&!(a2==1))))&&(a27==20))))&&(a3==12))))&&(a10==1)))){ + a21 = 0; + a15 = 1; + a27 = 21; + a2 = 1; + a16 = 0; + return 25; + } else if((((((!(a2==1)&&(!(a15==1)||((a18==1)||(a9==1))))||!(a18==1))&&(a3==13))||!(a29==1))&&((a10==1)&&((a27==19)&&(((a25==1)&&((((a14==7)&&(input==3))&&!(a9==1))&&(a7==1)))&&(a26==1)))))){ + a27 = 21; + a2 = 1; + a17 = 0; + a26 = 0; + a9 = 0; + a15 = 1; + return 24; + } else if((((!(a19==1)&&((!(a25==1)&&(a12==1))||(a23==1)))&&!(a2==1))&&((!(a11==1)&&((a27==21)&&((((!(a26==1)&&((a6==1)&&((a14==3)&&(input==3))))&&!(a9==1))&&(a3==14))&&(a10==1))))&&!(a9==1)))){ + if((a23==1)){ + a18 = 0; + a8 = 1; + a24 = 0; + a14 = 5; + a26 = 1; + a3 = 13; + a27 = 19; + a2 = 1; + }else{ + a3 = 12; + a6 = 0; + a25 = 1; + a4 = 1; + a27 = 20; + a14 = 4; + a12 = 0; + } + return 25; + } else if(((((a17==1)||(((a20==1)||(a17==1))&&!(a25==1)))||!(a5==1))&&((!(a2==1)&&((!(a21==1)&&(((a18==1)&&(((!(a26==1)&&((a3==12)&&(a14==3)))||((((a14==6)&&(a3==14))&&(a26==1))||(((a3==14)&&(a14==7))&&(a26==1))))&&(input==2)))&&(a27==19)))&&(a10==1)))&&(a7==1)))){ + a15 = 1; + a27 = 20; + a26 = 1; + a2 = 1; + a14 = 4; + a3 = 13; + a18 = 1; + a25 = 1; + return 24; + } else if((((!(a21==1)&&((!(a2==1)&&(((a27==20)&&(!(a25==1)&&((a7==1)&&((a10==1)&&(input==4)))))&&(a3==12)))&&(a6==1)))&&(a5==1))&&(!(a19==1)&&(((!(a26==1)&&(a5==1))&&(a14==5))||(a9==1))))){ + if((a22==1)){ + a14 = 3; + a0 = 0; + a19 = 1; + a26 = 1; + a25 = 1; + a12 = 0; + }else{ + a13 = 1; + a27 = 19; + a2 = 1; + a4 = 1; + a3 = 13; + a15 = 0; + a14 = 4; + } + return 26; + } else if(((((!(a2==1)&&((!(a25==1)&&((((a3==13)&&(a14==3))||(((a3==12)&&(a14==6))||((a3==12)&&(a14==7))))&&(input==3)))&&!(a9==1)))&&(a6==1))&&!(a21==1))&&(!(a19==1)&&(!(a12==1)||((((a11==1)||((a7==1)&&(a27==19)))&&(a10==1))&&!(a26==1)))))){ + a2 = 1; + a27 = 20; + a3 = 13; + a15 = 1; + a20 = 1; + a14 = 4; + a25 = 1; + a26 = 1; + a17 = 0; + return 26; + } else if(((!(a16==1)&&(!(a25==1)&&(((a20==1)&&(!(a11==1)&&((a2==1)&&(input==2))))&&!(a13==1))))&&((!(a26==1)&&(!(a1==1)&&(((((a18==1)&&(a3==14))&&(a27==20))&&(a10==1))&&!(a13==1))))&&(a14==3)))){ + a14 = 6; + a13 = 0; + a12 = 1; + a26 = 1; + a25 = 1; + a1 = 0; + return 24; + } else if(((((a14==6)&&(((((a5==1)&&((a10==1)&&(input==1)))&&(a2==1))&&!(a13==1))&&!(a16==1)))&&(a27==20))&&(!(a25==1)&&((((a29==1)&&((a5==1)&&((a29==1)&&!(a26==1))))||(a13==1))&&(a3==14))))){ + if((a2==1)){ + a12 = 1; + a25 = 1; + a15 = 1; + a26 = 1; + a14 = 5; + a6 = 1; + a2 = 0; + }else{ + a28 = 1; + a5 = 1; + a16 = 0; + } + return 22; + } else if((((a7==1)&&(((a27==19)&&((a26==1)&&(a12==1)))&&(a6==1)))&&((a18==1)&&((((!(a2==1)&&((a3==14)&&((((a25==1)&&(input==1))&&!(a17==1))&&(a10==1))))&&(a28==1))&&(a14==4))&&(a12==1))))){ + a14 = 3; + a3 = 13; + a12 = 1; + a17 = 0; + a20 = 1; + a2 = 1; + return -1; + } else if(((((a10==1)&&((((a14==3)||(a14==4))||(a14==5))&&(input==1)))&&(a27==19))&&((!(a7==1)&&(((((a26==1)&&((((a19==1)&&(!(a20==1)&&(a6==1)))&&(a3==13))&&(a16==1)))&&!(a25==1))&&(a11==1))&&!(a2==1)))&&(a16==1)))){ + a9 = 1; + a27 = 21; + a14 = 5; + a26 = 0; + a25 = 1; + a2 = 1; + a29 = 0; + a3 = 12; + return 25; + } else if((((((a10==1)&&((a3==14)&&(((a19==1)&&((a12==1)&&(a16==1)))&&(a14==3))))&&!(a26==1))&&(a23==1))&&((!(a7==1)&&((a27==19)&&(((a17==1)&&((input==4)&&!(a2==1)))&&(a16==1))))&&(a25==1)))){ + a26 = 1; + a4 = 1; + a11 = 1; + a14 = 4; + a29 = 0; + a3 = 13; + return 25; + } else if(((!(a11==1)&&(!(a17==1)&&((a14==6)&&(!(a17==1)&&((a10==1)&&(!(a2==1)&&(!(a26==1)&&((a3==13)&&(a12==1)))))))))&&((a6==1)&&((a27==19)&&((a6==1)&&(((input==2)&&!(a25==1))&&(a20==1))))))){ + a15 = 1; + a2 = 1; + a14 = 5; + a27 = 20; + a25 = 1; + a17 = 0; + a21 = 0; + a3 = 14; + a26 = 1; + return 22; + } else if((((a6==1)&&((a5==1)&&((a20==1)&&(((a27==20)&&(!(a25==1)&&(!(a26==1)&&((input==2)&&(((a3==13)&&(a14==7))||((a3==14)&&(a14==3)))))))&&!(a17==1)))))&&(((((a10==1)&&(a5==1))&&!(a2==1))||!(a28==1))||(a13==1)))){ + a20 = 0; + a14 = 5; + a27 = 21; + a3 = 12; + a0 = 0; + a28 = 0; + a26 = 1; + return 26; + } else if(((((((a25==1)&&((input==1)&&(a14==6)))&&!(a17==1))&&!(a17==1))&&!(a23==1))&&(!(a5==1)||(((((a27==20)&&((!(a2==1)&&((a28==1)&&(a10==1)))&&!(a26==1)))&&(a3==13))&&(a20==1))&&!(a11==1))))){ + a14 = 4; + a3 = 14; + a21 = 0; + a19 = 0; + a2 = 1; + a11 = 0; + return 26; + } else if(((((a23==1)&&(!(a12==1)&&((((a17==1)&&(((a10==1)&&(((a14==3)||(a14==4))&&(input==4)))&&(a3==12)))&&!(a2==1))&&(a27==19))))&&(a16==1))&&(((a26==1)&&(((a7==1)&&(a17==1))&&(a25==1)))&&(a17==1)))){ + a1 = 1; + a3 = 14; + a14 = 5; + a2 = 1; + a16 = 1; + a26 = 0; + a0 = 1; + return 22; + } else if((((a18==1)&&((a28==1)&&(((a10==1)&&((!(a16==1)&&((((a14==7)&&(a3==13))||((a14==3)&&(a3==14)))&&(input==3)))&&!(a9==1)))&&!(a23==1))))&&((((a27==20)&&(!(a26==1)&&((a12==1)&&(a20==1))))&&!(a2==1))&&!(a25==1)))){ + if((a24==1)){ + a5 = 0; + a3 = 14; + a25 = 1; + a0 = 0; + a27 = 21; + a14 = 6; + }else{ + a14 = 7; + a2 = 1; + a23 = 1; + a29 = 0; + a18 = 0; + a3 = 14; + a26 = 1; + } + return 24; + } else if(((((((((a27==21)&&((!(a13==1)&&(((a14==4)||(a14==5))&&(input==3)))&&(a26==1)))&&!(a23==1))&&!(a25==1))&&(a10==1))&&!(a16==1))&&!(a16==1))&&((!(a5==1)||((a3==12)&&(!(a28==1)||(a15==1))))&&!(a2==1)))){ + a27 = 20; + a8 = 0; + a1 = 1; + a25 = 1; + a2 = 1; + a3 = 14; + a14 = 3; + a28 = 0; + return 22; + } else if((((((a14==4)&&((a10==1)&&((((input==6)&&!(a26==1))&&!(a21==1))&&!(a25==1))))&&(a28==1))&&!(a2==1))&&(((a3==13)&&(!(a18==1)||((!(a1==1)&&((a5==1)&&(a7==1)))||(a1==1))))&&(a27==20)))){ + if((a24==1)){ + a4 = 0; + a27 = 21; + a20 = 0; + a14 = 3; + a5 = 0; + }else{ + a2 = 1; + a27 = 19; + a4 = 1; + a26 = 1; + a3 = 12; + a9 = 1; + a12 = 0; + a14 = 5; + } + return -1; + } else if((((a10==1)&&((a26==1)&&((a3==14)&&(!(a19==1)&&(a20==1)))))&&((a2==1)&&((a12==1)&&(((a28==1)&&((!(a19==1)&&(((a29==1)&&((input==5)&&(a27==21)))&&(a14==5)))&&(a20==1)))&&(a25==1)))))){ + a16 = 0; + a14 = 3; + a27 = 20; + a3 = 13; + a12 = 1; + a5 = 1; + return 22; + } else if((((a3==12)&&((((a13==1)||(((a13==1)||(a28==1))&&(a10==1)))||!(a5==1))&&(a27==20)))&&(((a25==1)&&(!(a26==1)&&(!(a19==1)&&((!(a1==1)&&((input==3)&&((a14==7)||((a14==5)||(a14==6)))))&&(a28==1)))))&&(a2==1)))){ + a1 = 0; + a28 = 1; + a26 = 1; + a21 = 0; + a27 = 19; + a14 = 3; + return -1; + } else if(((!(a12==1)&&((((!(a28==1)&&((a15==1)&&!(a15==1)))&&!(a2==1))&&(a16==1))&&(a10==1)))&&((a1==1)&&(((a26==1)&&(!(a6==1)&&(((a27==19)&&((input==5)&&((a14==3)||(a14==4))))&&(a25==1))))&&(a3==12))))){ + a3 = 13; + a26 = 0; + a25 = 0; + a8 = 0; + a15 = 0; + a18 = 0; + a2 = 1; + a14 = 7; + return 25; + } else if(((!(a23==1)&&(!(a2==1)&&((a9==1)||(((a7==1)&&(a27==20))&&(a10==1)))))&&(!(a11==1)&&(!(a26==1)&&((a28==1)&&((((a20==1)&&(((input==6)&&((a14==6)||(a14==7)))&&(a3==14)))&&(a12==1))&&!(a25==1))))))){ + if((a1==1)){ + a26 = 1; + a2 = 1; + a14 = 4; + a27 = 19; + a15 = 0; + a9 = 1; + a20 = 0; + }else{ + a26 = 1; + a2 = 1; + a19 = 1; + a29 = 0; + a3 = 12; + a14 = 4; + a21 = 1; + a27 = 19; + } + return 25; + } else if(((((a3==12)&&(((a7==1)&&(!(a21==1)&&((a29==1)&&!(a16==1))))||!(a7==1)))&&!(a26==1))&&((((((!(a13==1)&&((input==5)&&(((a14==3)||(a14==4))||(a14==5))))&&(a27==20))&&(a25==1))&&(a6==1))&&(a10==1))&&!(a2==1)))){ + a2 = 1; + a14 = 3; + a21 = 0; + a20 = 1; + a12 = 1; + a26 = 1; + a27 = 19; + return -1; + } else if(((!(a26==1)&&((a10==1)&&((a3==12)&&((input==2)&&((a14==6)||((a14==4)||(a14==5)))))))&&(!(a1==1)&&((!(a21==1)&&(((((!(a18==1)||((a12==1)&&(a28==1)))&&(a27==21))&&(a25==1))&&!(a2==1))||!(a7==1)))&&!(a1==1))))){ + if((a29==1)){ + a2 = 1; + a14 = 7; + a0 = 1; + a3 = 13; + a22 = 1; + a19 = 1; + }else{ + a17 = 1; + a3 = 13; + a19 = 1; + a27 = 19; + a14 = 3; + a2 = 1; + a4 = 0; + } + return 25; + } else if((((((a15==1)&&(((a14==4)&&(input==4))&&(a5==1)))&&(a3==14))&&(a7==1))&&(!(a13==1)&&(((a15==1)&&((a25==1)&&(((!(a21==1)&&((a18==1)&&(a10==1)))&&(a27==19))&&(a26==1))))&&!(a2==1))))){ + a7 = 1; + a14 = 5; + a2 = 1; + a1 = 0; + a27 = 20; + a28 = 1; + return 26; + } else if(((!(a9==1)&&(!(a25==1)&&(((a3==13)&&((a14==4)&&(((((input==2)&&(a10==1))&&!(a13==1))&&(a18==1))&&(a6==1))))&&!(a2==1))))&&((a26==1)&&((((a12==1)&&(a27==21))&&(a28==1))&&!(a23==1))))){ + a14 = 3; + a2 = 1; + a24 = 1; + a22 = 1; + a27 = 19; + a13 = 1; + return 25; + } else if(((!(a2==1)&&((!(a19==1)&&(!(a12==1)||((a26==1)&&(a28==1))))&&(a12==1)))&&((a27==21)&&(((!(a16==1)&&(!(a16==1)&&((((input==1)&&((a14==6)||(a14==7)))&&(a3==13))&&(a10==1))))&&!(a13==1))&&(a25==1))))){ + a27 = 20; + a14 = 4; + a22 = 0; + a26 = 0; + a16 = 1; + a3 = 14; + return -1; + } else if((((((a28==1)&&(!(a25==1)&&(!(a21==1)&&((input==1)&&((a14==6)||(a14==7))))))&&(a27==21))&&!(a26==1))&&(((a3==12)&&(((((a23==1)||((a29==1)&&(a5==1)))||(a19==1))&&!(a13==1))&&(a2==1)))&&(a10==1)))){ + a14 = 6; + a25 = 1; + a3 = 13; + a6 = 1; + a21 = 0; + return 25; + } else if((((!(a11==1)&&((((a25==1)&&(((a14==5)||((a14==3)||(a14==4)))&&(input==3)))&&(a26==1))&&(a27==21)))&&(a15==1))&&((a11==1)||((a17==1)||(!(a13==1)&&((a3==13)&&((((a28==1)||(a17==1))&&!(a2==1))&&(a10==1)))))))){ + a14 = 5; + a26 = 0; + a0 = 1; + a8 = 1; + a25 = 0; + a3 = 14; + a4 = 0; + return -1; + } else if((((((!(a19==1)&&(((input==2)&&(((a3==14)&&(a14==3))||(((a14==6)&&(a3==13))||((a3==13)&&(a14==7)))))&&!(a2==1)))&&!(a13==1))&&(a27==20))&&(a7==1))&&((a16==1)||((a26==1)&&((a10==1)&&(!(a6==1)||((a29==1)&&((a25==1)&&(a20==1))))))))){ + a14 = 5; + a9 = 0; + a3 = 14; + a2 = 1; + a23 = 0; + return 26; + } else if(((!(a23==1)&&((!(a2==1)&&((((((a10==1)&&((a26==1)&&(input==1)))&&(a12==1))&&(a12==1))&&(a27==21))&&(a14==5)))&&!(a16==1)))&&((a9==1)||(((!(a25==1)&&(a20==1))&&(a3==14))&&!(a13==1))))){ + if((a6==1)){ + a15 = 0; + a0 = 0; + a2 = 1; + a25 = 1; + a14 = 6; + a17 = 1; + a3 = 12; + }else{ + a2 = 1; + a27 = 19; + a9 = 1; + a14 = 7; + a25 = 1; + a22 = 0; + a16 = 1; + } + return -1; + } else if((((!(a25==1)&&((!(a26==1)&&(((a18==1)&&(((a29==1)&&(a10==1))||!(a12==1)))&&(a27==20)))||(a13==1)))&&!(a2==1))&&(!(a13==1)&&(((((((a3==12)&&(a14==6))||((a3==12)&&(a14==7)))||((a14==3)&&(a3==13)))&&(input==1))&&!(a23==1))&&(a28==1))))){ + a27 = 21; + a25 = 1; + a26 = 1; + a0 = 0; + a2 = 1; + a15 = 0; + a14 = 4; + a29 = 0; + a3 = 12; + return -1; + } else if(((!(a1==1)&&((a10==1)&&(a28==1)))&&((a5==1)&&((a26==1)&&(!(a19==1)&&(!(a16==1)&&(!(a2==1)&&((a27==19)&&(((((a6==1)&&((input==6)&&((a14==3)||(a14==4))))&&(a25==1))&&(a18==1))&&(a3==12)))))))))){ + a28 = 1; + a2 = 1; + a13 = 0; + a27 = 21; + a3 = 13; + a12 = 1; + a14 = 5; + return 25; + } else if((((((!(a16==1)&&(!(a2==1)&&(((a14==6)||((a14==4)||(a14==5)))&&(input==1))))&&!(a17==1))&&(a7==1))&&(a15==1))&&((a3==12)&&(((a25==1)&&((a27==21)&&(((a13==1)||(!(a1==1)&&(a28==1)))&&!(a26==1))))&&(a10==1))))){ + a2 = 1; + a14 = 5; + a12 = 0; + a9 = 1; + a7 = 0; + a25 = 0; + a3 = 14; + a26 = 1; + return 24; + } else if((((!(a7==1)&&(!(a20==1)&&((((a18==1)&&(a10==1))&&!(a25==1))&&(a27==21))))&&(a23==1))&&((a21==1)&&(((((a26==1)&&((a2==1)&&((((a14==3)||(a14==4))||(a14==5))&&(input==1))))&&(a3==14))&&!(a15==1))&&(a16==1))))){ + a25 = 1; + a26 = 0; + a14 = 7; + a22 = 0; + a8 = 0; + a3 = 13; + a23 = 1; + a27 = 20; + return 22; + } else if(((((((((a25==1)&&(((input==5)&&(((a14==4)||(a14==5))||(a14==6)))&&!(a23==1)))&&!(a1==1))&&(a27==20))&&!(a16==1))&&(a2==1))&&!(a16==1))&&((((((a26==1)&&(a7==1))&&!(a19==1))&&(a10==1))||!(a6==1))&&(a3==12)))){ + a14 = 3; + a27 = 19; + a6 = 1; + a13 = 0; + a16 = 0; + return -1; + } else if((((((a5==1)&&(((a27==20)&&(!(a25==1)&&((input==3)&&((a14==6)||((a14==4)||(a14==5))))))&&(a18==1)))&&(a20==1))&&(a3==14))&&((((a26==1)&&((((a20==1)||(a19==1))&&!(a2==1))&&(a10==1)))&&(a20==1))&&(a12==1)))){ + a27 = 19; + a14 = 3; + a6 = 0; + a16 = 1; + a25 = 1; + a2 = 1; + a29 = 0; + a26 = 0; + a3 = 12; + return -1; + } else if(((((!(a11==1)&&(!(a5==1)||(!(a11==1)&&((a17==1)||((((a2==1)&&(a20==1))&&(a29==1))&&(a7==1))))))&&!(a26==1))&&(a3==12))&&((((a10==1)&&((input==6)&&((a14==3)||(a14==4))))&&(a25==1))&&(a27==20)))){ + a27 = 21; + a3 = 13; + a21 = 0; + a5 = 1; + a14 = 3; + a6 = 1; + a26 = 1; + return 26; + } else if((((((a14==7)&&((a2==1)&&(a29==1)))&&!(a21==1))||(a17==1))&&((((a10==1)&&((!(a21==1)&&(((!(a19==1)&&(!(a25==1)&&(input==5)))&&(a27==20))&&(a3==13)))&&(a26==1)))&&!(a17==1))&&(a6==1)))){ + a18 = 1; + a6 = 1; + a27 = 19; + a11 = 0; + a2 = 0; + a3 = 14; + a14 = 3; + a26 = 0; + a25 = 1; + return 25; + } else if(((((((a2==1)&&(a28==1))&&(a20==1))&&(a20==1))&&(a26==1))&&(((a28==1)&&(((a27==20)&&((a10==1)&&((!(a9==1)&&(((((a14==7)&&(a3==12))||((a14==3)&&(a3==13)))||((a3==13)&&(a14==4)))&&(input==1)))&&!(a25==1))))&&(a20==1)))&&!(a19==1)))){ + a2 = 0; + a25 = 1; + a27 = 19; + a3 = 14; + a5 = 1; + a12 = 1; + a28 = 1; + a14 = 6; + return 26; + } else if((((a27==19)&&(((((((((a14==6)&&(a3==12))||((a14==7)&&(a3==12)))||((a14==3)&&(a3==13)))&&(input==5))&&(a10==1))&&(a12==1))&&(a6==1))&&(a12==1)))&&(((((!(a25==1)&&((a20==1)||(a16==1)))&&(a20==1))&&(a20==1))&&!(a26==1))&&!(a2==1)))){ + a26 = 1; + a16 = 0; + a2 = 1; + a23 = 0; + a3 = 14; + a28 = 1; + a25 = 1; + a14 = 6; + return -1; + } else if(((((!(a19==1)&&((a25==1)&&(((input==6)&&((a14==4)||(a14==5)))&&!(a2==1))))&&(a26==1))&&(a10==1))&&((a9==1)||((a3==14)&&(((a27==20)&&(!(a12==1)||((!(a29==1)||(a18==1))||!(a15==1))))&&(a12==1)))))){ + a14 = 7; + a20 = 1; + a2 = 1; + a18 = 1; + a16 = 0; + return 25; + } else if(((!(a20==1)||(((((a27==20)&&(a6==1))||(a17==1))||(a9==1))||!(a20==1)))&&((a10==1)&&(((((a2==1)&&(!(a16==1)&&((input==1)&&((((a3==12)&&(a14==7))||((a14==3)&&(a3==13)))||((a3==13)&&(a14==4))))))&&(a20==1))&&!(a25==1))&&!(a26==1))))){ + a27 = 19; + a29 = 1; + a23 = 0; + a19 = 0; + a25 = 1; + a14 = 3; + a3 = 12; + a26 = 1; + return -1; + } else if((((a26==1)&&(!(a13==1)&&(((!(a7==1)||(!(a19==1)&&(a28==1)))||!(a6==1))&&(a3==13))))&&((a29==1)&&((((a20==1)&&(!(a2==1)&&((a25==1)&&(((a14==5)||((a14==3)||(a14==4)))&&(input==4)))))&&(a27==21))&&(a10==1))))){ + if((a9==1)){ + a17 = 1; + a18 = 0; + a27 = 19; + a4 = 1; + a2 = 1; + a14 = 3; + a3 = 12; + }else{ + a2 = 1; + a16 = 1; + a5 = 0; + a14 = 6; + a28 = 0; + a26 = 0; + a27 = 20; + } + return -1; + } else if((((a14==5)&&(((a26==1)&&(((!(a2==1)&&(((a7==1)&&((input==2)&&(a3==13)))&&(a12==1)))&&(a6==1))&&(a27==20)))&&(a10==1)))&&(!(a25==1)&&(!(a9==1)&&(!(a5==1)||((a7==1)&&(a7==1))))))){ + a20 = 0; + a2 = 1; + a21 = 1; + a17 = 1; + a3 = 14; + return -1; + } else if(((!(a23==1)&&((((!(a25==1)&&((!(a11==1)&&(!(a2==1)&&(a6==1)))&&(a27==21)))&&!(a26==1))&&(a5==1))&&(a10==1)))&&(((a12==1)&&(((input==4)&&(((a3==12)&&(a14==7))||((a14==3)&&(a3==13))))&&(a6==1)))&&(a12==1)))){ + a11 = 1; + a14 = 3; + a3 = 13; + a8 = 0; + return 22; + } else if((((((a25==1)&&(((input==2)&&((a14==3)||(a14==4)))&&(a7==1)))&&!(a16==1))&&(a29==1))&&((a10==1)&&((a27==20)&&(!(a26==1)&&((((((a7==1)&&(a3==12))&&!(a16==1))&&(a2==1))||(a1==1))||(a16==1))))))){ + a27 = 21; + a20 = 1; + a11 = 0; + a14 = 5; + a26 = 1; + a3 = 13; + return 26; + } else if((((((a10==1)&&((((a3==12)&&((input==2)&&((a14==6)||((a14==4)||(a14==5)))))&&(a27==21))&&(a2==1)))&&(a18==1))&&(a28==1))&&((((a20==1)&&((((a26==1)&&(a28==1))&&!(a25==1))&&!(a1==1)))&&!(a19==1))&&(a6==1)))){ + a9 = 0; + a27 = 19; + a5 = 1; + a14 = 3; + a16 = 0; + a25 = 1; + return -1; + } else if((((((!(a2==1)&&(((a27==19)&&(!(a23==1)&&((a26==1)&&(input==6))))&&(a3==13)))&&(a15==1))&&!(a9==1))&&(a18==1))&&((a1==1)||((((a1==1)||((a15==1)&&(a10==1)))&&(a14==7))&&(a25==1))))){ + a3 = 12; + a7 = 1; + a21 = 0; + a29 = 1; + a14 = 4; + return -1; + } else if((((!(a25==1)&&((a6==1)&&((((((input==4)&&((a14==5)||(a14==6)))&&(a3==13))&&(a26==1))&&(a7==1))&&(a27==21))))&&!(a23==1))&&((!(a29==1)||(((!(a1==1)&&(a5==1))&&!(a17==1))&&!(a2==1)))&&(a10==1)))){ + if((a3==12)){ + a26 = 0; + a1 = 1; + a20 = 0; + a27 = 19; + a2 = 1; + a9 = 1; + a14 = 6; + a3 = 14; + a25 = 1; + }else{ + a27 = 20; + a29 = 0; + a14 = 5; + a13 = 1; + a7 = 0; + } + return 22; + } else if((((a27==21)&&((!(a25==1)&&((input==6)&&((a14==6)||(a14==7))))&&(a6==1)))&&((a26==1)&&(((a10==1)&&(((a18==1)&&((a19==1)||((a3==14)&&((!(a1==1)&&(a7==1))&&(a15==1)))))&&(a29==1)))&&!(a2==1))))){ + if((a15==1)){ + a8 = 1; + a25 = 1; + a20 = 0; + a26 = 0; + a28 = 0; + a2 = 1; + a14 = 6; + }else{ + a27 = 19; + a2 = 1; + a14 = 6; + a20 = 0; + a19 = 1; + a11 = 1; + } + return -1; + } else if((((a26==1)&&((a18==1)&&((((!(a11==1)&&((a6==1)&&((input==4)&&((a14==5)||((a14==3)||(a14==4))))))&&(a27==19))&&(a3==14))&&!(a16==1))))&&((!(a25==1)&&((a10==1)&&(!(a5==1)||((a28==1)&&!(a1==1)))))&&!(a2==1)))){ + a14 = 3; + a7 = 1; + a27 = 20; + a20 = 1; + a3 = 13; + a11 = 0; + a2 = 1; + a25 = 1; + return 24; + } else if((((a15==1)&&((((a3==14)&&(((!(a15==1)||((a2==1)&&(a28==1)))||!(a5==1))&&(a10==1)))&&!(a21==1))||(a13==1)))&&(!(a25==1)&&((!(a26==1)&&((a7==1)&&((input==3)&&((a14==3)||(a14==4)))))&&(a27==21))))){ + if((a13==1)){ + a19 = 0; + a27 = 20; + a14 = 7; + a2 = 0; + a12 = 1; + a25 = 1; + a1 = 0; + }else{ + a28 = 1; + a16 = 0; + a25 = 1; + a23 = 0; + a14 = 4; + a27 = 20; + } + return 22; + } else if((((((a25==1)&&((a26==1)&&(!(a20==1)||((a6==1)&&!(a2==1)))))&&(a10==1))&&!(a17==1))&&((!(a17==1)&&((a3==12)&&(((!(a13==1)&&(((a14==6)||(a14==7))&&(input==3)))&&(a27==20))&&(a6==1))))&&(a6==1)))){ + a3 = 13; + a21 = 0; + a14 = 4; + a2 = 1; + a12 = 1; + return 24; + } else if((((((((((a12==1)||!(a29==1))&&(a25==1))&&(a10==1))&&!(a23==1))&&(a27==21))&&(a2==1))&&!(a17==1))&&(!(a13==1)&&(!(a17==1)&&(((a29==1)&&((input==4)&&(((a3==13)&&(a14==7))||((a3==14)&&(a14==3)))))&&!(a26==1)))))){ + a27 = 20; + a26 = 1; + a6 = 1; + a9 = 0; + a3 = 13; + a17 = 0; + a14 = 4; + return 22; + } else if(((!(a25==1)&&((((a15==1)&&((input==5)&&(((a14==3)||(a14==4))||(a14==5))))&&!(a19==1))&&!(a26==1)))&&((a2==1)&&((((!(a13==1)&&((a27==20)&&(((a5==1)||(a17==1))&&(a3==12))))&&!(a23==1))&&(a10==1))||(a19==1))))){ + a14 = 6; + a27 = 19; + a3 = 13; + a2 = 0; + a11 = 0; + a21 = 0; + a20 = 1; + return 25; + } else if((((a3==14)&&(!(a2==1)&&(!(a13==1)&&(((a12==1)&&(a6==1))&&(a15==1)))))&&(!(a26==1)&&(((a12==1)&&((a7==1)&&((a10==1)&&((((a27==21)&&(input==4))&&!(a25==1))&&(a14==6)))))&&!(a1==1))))){ + a3 = 13; + a16 = 1; + a26 = 1; + a8 = 1; + a25 = 1; + a27 = 19; + a14 = 4; + a19 = 1; + a2 = 1; + return 25; + } else if(((((a10==1)&&(!(a26==1)&&(((input==6)&&(a14==5))&&(a12==1))))&&(a7==1))&&(((a3==13)&&((a27==20)&&(((((a17==1)||((a20==1)&&!(a25==1)))&&(a2==1))&&(a18==1))&&!(a11==1))))&&(a28==1)))){ + a26 = 1; + a28 = 1; + a3 = 14; + a21 = 0; + a20 = 1; + a25 = 1; + return 22; + } else if((((((a18==1)&&((((a12==1)&&((input==6)&&(((a14==3)&&(a3==13))||(((a3==12)&&(a14==6))||((a14==7)&&(a3==12))))))&&!(a2==1))&&!(a26==1)))&&(a6==1))&&!(a13==1))&&((a10==1)&&(((((a18==1)&&(a25==1))&&(a27==20))&&!(a16==1))||(a1==1))))){ + a13 = 0; + a14 = 3; + a2 = 1; + a29 = 1; + a3 = 13; + a26 = 1; + return 24; + } else if((((a20==1)&&((a15==1)&&((!(a21==1)&&(!(a19==1)&&((!(a26==1)&&(((((a14==7)&&(a3==13))||((a14==3)&&(a3==14)))||((a3==14)&&(a14==4)))&&(input==2)))&&(a10==1))))&&!(a13==1))))&&(!(a2==1)&&((a25==1)&&((a15==1)&&((a27==20)&&(a6==1))))))){ + a14 = 4; + a5 = 1; + a23 = 0; + a12 = 1; + a3 = 14; + a2 = 1; + return 26; + } else if(((!(a19==1)&&((a10==1)&&((!(a9==1)&&(((a14==5)||(a14==6))&&(input==1)))&&(a7==1))))&&((a3==13)&&(!(a2==1)&&((!(a7==1)||((!(a25==1)&&((!(a26==1)&&(a20==1))&&!(a17==1)))||(a9==1)))&&(a27==20)))))){ + a14 = 7; + a3 = 14; + a27 = 21; + a15 = 0; + a2 = 1; + a16 = 1; + a5 = 0; + return 26; + } else if((((((((a28==1)&&((input==6)&&((a14==6)||(a14==7))))&&!(a1==1))&&!(a2==1))&&!(a26==1))&&(a28==1))&&((!(a16==1)&&(((a27==21)&&((((a29==1)&&(a10==1))&&!(a25==1))&&(a3==13)))||!(a28==1)))||!(a6==1)))){ + a3 = 12; + a14 = 7; + a20 = 0; + a15 = 0; + a27 = 19; + a4 = 1; + a25 = 1; + a2 = 1; + return 26; + } else if((((((a10==1)&&(!(a17==1)&&(((((a14==4)&&(a3==13))||(((a3==12)&&(a14==7))||((a14==3)&&(a3==13))))&&(input==3))&&(a5==1))))&&!(a11==1))&&(a29==1))&&(((!(a25==1)&&((!(a21==1)&&((a28==1)&&(a26==1)))&&(a27==21)))&&(a2==1))||!(a6==1)))){ + a13 = 0; + a3 = 12; + a29 = 1; + a27 = 19; + a25 = 1; + a11 = 0; + a14 = 3; + return -1; + } else if((((a10==1)&&(!(a21==1)&&(((a20==1)&&(a3==12))&&(a20==1))))&&((a26==1)&&((((a28==1)&&(((a7==1)&&((a5==1)&&((((a14==7)||((a14==5)||(a14==6)))&&(input==5))&&!(a1==1))))&&(a27==19)))&&!(a25==1))&&!(a2==1))))){ + a7 = 1; + a20 = 1; + a28 = 1; + a2 = 1; + a27 = 20; + a3 = 13; + a14 = 4; + a25 = 1; + return 26; + } else if((((a5==1)&&((a27==19)&&(((a12==1)&&(a7==1))&&(a10==1))))&&((!(a11==1)&&(((a18==1)&&((a29==1)&&((((a26==1)&&(((a14==4)&&!(a25==1))&&(a3==12)))||((((a3==14)&&((a14==7)&&(a25==1)))&&!(a26==1))||(((!(a25==1)&&(a14==3))&&(a3==12))&&(a26==1))))&&(input==5))))&&!(a2==1)))&&(a28==1)))){ + a3 = 12; + a14 = 3; + a2 = 1; + a25 = 1; + a23 = 0; + a26 = 1; + a7 = 1; + return -1; + } else if((((a20==1)&&((!(a9==1)&&(!(a21==1)&&(((input==3)&&(((((a14==3)&&!(a25==1))&&(a3==12))&&(a26==1))||((((a3==14)&&((a25==1)&&(a14==6)))&&!(a26==1))||(((a3==14)&&((a25==1)&&(a14==7)))&&!(a26==1)))))&&(a12==1))))&&!(a11==1)))&&(((!(a2==1)&&((a21==1)||(a29==1)))&&(a27==21))&&(a10==1)))){ + a3 = 13; + a26 = 1; + a14 = 3; + a2 = 1; + a9 = 1; + a20 = 0; + a25 = 0; + a16 = 1; + return -1; + } else if((((((!(a9==1)&&((!(a13==1)&&((a10==1)&&(a29==1)))&&(a2==1)))&&(a27==21))&&(a6==1))&&(a5==1))&&(!(a19==1)&&(!(a23==1)&&(((input==1)&&((((a14==3)&&(a3==12))&&!(a26==1))||((((a3==14)&&(a14==6))&&(a26==1))||((a26==1)&&((a14==7)&&(a3==14))))))&&(a25==1)))))){ + a26 = 1; + a27 = 20; + a29 = 1; + a17 = 0; + a3 = 13; + a28 = 1; + a14 = 3; + return 24; + } else if(((((a10==1)&&((((((a27==19)&&((a3==14)&&((a14==7)&&!(a25==1))))&&!(a26==1))||((a26==1)&&((a27==20)&&(((a14==3)&&(a25==1))&&(a3==12)))))&&(input==1))&&!(a9==1)))&&!(a17==1))&&((a18==1)&&((a13==1)||((!(a2==1)&&(!(a12==1)||(a6==1)))||(a11==1)))))){ + a2 = 1; + a26 = 1; + a9 = 0; + a28 = 1; + a25 = 1; + a3 = 12; + a27 = 19; + a14 = 3; + a21 = 0; + return -1; + } else if(((!(a5==1)||((!(a16==1)&&((a10==1)&&(((a15==1)&&!(a23==1))&&(a3==13))))||(a9==1)))&&(((a26==1)&&(((a27==20)&&((a25==1)&&(!(a23==1)&&(((a14==5)||((a14==3)||(a14==4)))&&(input==3)))))&&!(a2==1)))&&(a28==1)))){ + a2 = 1; + a5 = 1; + a14 = 4; + a18 = 1; + a20 = 1; + return 24; + } else if(((!(a19==1)&&((((!(a19==1)&&((a2==1)&&((((input==3)&&((a14==3)||(a14==4)))&&(a27==21))&&!(a26==1))))&&!(a17==1))&&(a20==1))&&!(a11==1)))&&((a12==1)&&(((a3==12)&&((a10==1)&&(a5==1)))&&!(a25==1))))){ + a19 = 0; + a26 = 1; + a14 = 3; + a28 = 1; + a1 = 0; + a25 = 1; + a27 = 19; + return -1; + } else if(((((a6==1)&&((!(a2==1)&&((a20==1)&&((a27==20)&&(input==5))))&&(a10==1)))&&(a14==4))&&((!(a26==1)&&((a3==13)&&(((((a15==1)||!(a29==1))||!(a28==1))&&(a20==1))||(a11==1))))&&!(a25==1)))){ + if((a3==12)){ + a2 = 1; + a11 = 1; + a25 = 1; + a3 = 14; + a14 = 3; + a24 = 0; + a7 = 0; + a27 = 19; + }else{ + a6 = 0; + a27 = 19; + a2 = 1; + a16 = 1; + a14 = 3; + } + return 22; + } else if(((!(a11==1)&&((a27==21)&&(!(a1==1)&&(!(a1==1)&&(((a10==1)&&(input==6))&&(a15==1))))))&&((!(a25==1)&&((((((a3==14)&&(a28==1))&&!(a26==1))&&(a29==1))&&!(a2==1))&&(a14==6)))&&!(a1==1)))){ + a8 = 0; + a22 = 0; + a14 = 3; + a7 = 0; + a27 = 20; + a25 = 1; + a26 = 1; + a2 = 1; + return 24; + } else if((((a11==1)||((a13==1)||((((!(a25==1)&&((a28==1)&&(a27==21)))&&!(a26==1))&&(a28==1))&&!(a17==1))))&&(!(a11==1)&&(((a2==1)&&((a6==1)&&(((input==2)&&(((a14==5)||(a14==6))||(a14==7)))&&(a10==1))))&&(a3==14))))){ + a14 = 6; + a11 = 0; + a23 = 0; + a7 = 1; + a25 = 1; + a27 = 19; + return -1; + } else if((((!(a2==1)&&(!(a9==1)&&((((input==3)&&((a14==4)||(a14==5)))&&(a6==1))&&(a7==1))))&&(a15==1))&&(((a3==12)&&((((a27==19)&&(((a29==1)&&!(a26==1))&&(a10==1)))&&!(a25==1))&&!(a21==1)))&&(a29==1)))){ + a18 = 1; + a25 = 1; + a27 = 21; + a26 = 1; + a14 = 5; + a28 = 1; + a5 = 1; + a2 = 1; + a3 = 13; + return 26; + } else if(((!(a9==1)&&((a7==1)&&(!(a2==1)&&((a10==1)&&(!(a23==1)&&((input==6)&&(((((a3==14)&&(a14==6))&&(a26==1))||((a26==1)&&((a3==14)&&(a14==7))))||(((a3==12)&&(a14==3))&&!(a26==1)))))))))&&((a27==21)&&((a25==1)&&((a17==1)||(((a7==1)&&(a15==1))||!(a29==1))))))){ + a26 = 1; + a9 = 1; + a14 = 6; + a24 = 1; + a3 = 14; + a27 = 19; + a16 = 1; + a2 = 1; + return 25; + } else if((((!(a19==1)&&((!(a1==1)&&(a12==1))&&(a27==19)))&&(a10==1))&&(!(a1==1)&&(((!(a1==1)&&(!(a26==1)&&(((a18==1)&&(((((a14==7)&&(a3==12))||((a3==13)&&(a14==3)))||((a14==4)&&(a3==13)))&&(input==3)))&&!(a2==1))))&&(a20==1))&&(a25==1))))){ + a2 = 1; + a3 = 14; + a19 = 0; + a20 = 1; + a26 = 1; + a14 = 5; + a27 = 21; + a21 = 0; + return 26; + } else if(((!(a29==1)||((((((a25==1)&&(a5==1))&&(a15==1))&&(a27==21))&&(a3==13))||(a21==1)))&&((a12==1)&&(!(a2==1)&&((a6==1)&&((((a6==1)&&((input==3)&&(a14==7)))&&(a10==1))&&!(a26==1))))))){ + a3 = 12; + a21 = 1; + a13 = 1; + a14 = 5; + a27 = 19; + a29 = 0; + a2 = 1; + return 25; + } else if((((((a5==1)&&(a26==1))||!(a20==1))&&(a14==5))&&((!(a23==1)&&((a18==1)&&((a28==1)&&(((a12==1)&&(((a10==1)&&((a3==13)&&((input==3)&&!(a25==1))))&&(a18==1)))&&(a27==20)))))&&!(a2==1)))){ + a25 = 1; + a4 = 0; + a14 = 3; + a7 = 0; + a27 = 19; + return -1; + } else if(((((a27==19)&&(!(a19==1)&&((a3==13)&&(!(a9==1)&&(((a14==7)||((a14==5)||(a14==6)))&&(input==5))))))&&(a10==1))&&((!(a5==1)||(!(a6==1)||(!(a2==1)&&((((a20==1)||!(a15==1))||!(a6==1))&&(a25==1)))))&&!(a26==1)))){ + a26 = 1; + a3 = 14; + a14 = 5; + a2 = 1; + a19 = 0; + a27 = 21; + a7 = 1; + return 26; + } else if(((!(a1==1)&&((a28==1)&&(!(a2==1)&&(!(a28==1)||((a27==20)&&(a29==1))))))&&((a10==1)&&(((a25==1)&&((a7==1)&&((a26==1)&&(((input==6)&&((((a3==13)&&(a14==6))||((a14==7)&&(a3==13)))||((a3==14)&&(a14==3))))&&(a18==1)))))&&!(a11==1))))){ + a2 = 1; + a3 = 13; + a14 = 4; + a11 = 0; + a21 = 0; + a17 = 0; + return 25; + } else if(((((a27==20)&&(((((a5==1)&&(a26==1))&&(a3==14))&&!(a23==1))&&!(a1==1)))||(a19==1))&&(((a20==1)&&(((!(a11==1)&&((a10==1)&&(((a14==6)||(a14==7))&&(input==5))))&&(a25==1))&&!(a2==1)))&&!(a21==1)))){ + a27 = 19; + a3 = 12; + a12 = 1; + a2 = 1; + a14 = 3; + return -1; + } else if((((a15==1)&&((a10==1)&&(((!(a21==1)&&((a25==1)&&((((a14==5)||(a14==6))||(a14==7))&&(input==5))))&&(a6==1))&&(a20==1))))&&(((a20==1)&&((!(a26==1)&&((a2==1)&&(!(a12==1)||(a28==1))))&&(a3==12)))&&(a27==21)))){ + a14 = 3; + a26 = 1; + a27 = 19; + a1 = 0; + a23 = 0; + a29 = 1; + return -1; + } else if(((((a12==1)&&(((a10==1)&&((((a3==13)&&((input==1)&&((a14==5)||(a14==6))))&&!(a23==1))&&(a27==19)))&&(a26==1)))&&(a18==1))&&((((((a20==1)&&(a28==1))&&!(a9==1))&&(a25==1))||!(a6==1))&&!(a2==1)))){ + a23 = 0; + a9 = 0; + a3 = 14; + a2 = 1; + a20 = 1; + a14 = 5; + return -1; + } else if((((((a25==1)&&(((a12==1)&&(a3==13))&&(a5==1)))||!(a6==1))||(a21==1))&&(!(a13==1)&&((a10==1)&&(((a15==1)&&((a14==3)&&(((a27==20)&&((a2==1)&&(input==4)))&&(a26==1))))&&!(a1==1)))))){ + a3 = 12; + a28 = 1; + a5 = 1; + a20 = 1; + a27 = 19; + return -1; + } else if(((((a3==14)&&((a26==1)&&(!(a13==1)&&((((input==5)&&!(a2==1))&&!(a21==1))&&!(a16==1)))))&&(a10==1))&&((((a14==5)&&((((a5==1)&&(a25==1))||!(a6==1))||!(a6==1)))&&(a20==1))&&(a27==19)))){ + a16 = 0; + a3 = 13; + a2 = 1; + a27 = 20; + a18 = 1; + a14 = 4; + a5 = 1; + return 24; + } else if((((a26==1)&&(((!(a2==1)&&((a16==1)||((a27==21)&&(!(a25==1)&&(a18==1)))))||!(a12==1))&&(a10==1)))&&((a18==1)&&(!(a21==1)&&(((a15==1)&&((((a3==13)&&(a14==3))||(((a3==12)&&(a14==6))||((a3==12)&&(a14==7))))&&(input==6)))&&!(a11==1)))))){ + a27 = 19; + a14 = 6; + a11 = 1; + a9 = 1; + a3 = 12; + a0 = 0; + a2 = 1; + return 26; + } else if((((a5==1)&&(((a2==1)&&(!(a16==1)&&(!(a1==1)&&((a18==1)&&((input==1)&&((a14==3)||(a14==4)))))))&&(a3==12)))&&((a17==1)||((((a10==1)&&(!(a25==1)&&(!(a26==1)&&(a7==1))))||!(a29==1))&&(a27==21))))){ + a29 = 1; + a14 = 4; + a11 = 0; + return 25; + } else if((((a18==1)&&(((a15==1)&&(!(a23==1)&&((a7==1)&&((((input==6)&&((((a14==3)&&(a3==12))&&!(a26==1))||(((a26==1)&&((a3==14)&&(a14==6)))||(((a3==14)&&(a14==7))&&(a26==1)))))&&!(a2==1))&&(a27==19)))))&&(a28==1)))&&((((a7==1)&&(a10==1))&&(a25==1))&&!(a19==1)))){ + a2 = 1; + a3 = 14; + a20 = 1; + a26 = 0; + a13 = 0; + a14 = 3; + a23 = 0; + a27 = 21; + return 24; + } else if((((!(a19==1)&&((a12==1)&&((a5==1)&&(((a10==1)&&((a29==1)&&(((a14==5)&&(input==6))&&(a7==1))))&&(a2==1)))))&&(a27==21))&&((a25==1)&&(((a26==1)&&(!(a20==1)||(a7==1)))&&(a3==13))))){ + a1 = 0; + a15 = 1; + a6 = 1; + return 25; + } else if(((!(a28==1)||((a27==19)&&((((!(a26==1)&&((a10==1)&&(!(a28==1)||(a15==1))))&&(a3==14))&&(a29==1))||(a1==1))))&&((((a29==1)&&((((a14==3)||(a14==4))&&(input==3))&&!(a25==1)))&&!(a2==1))&&(a6==1)))){ + if((a16==1)){ + a18 = 1; + a27 = 20; + a3 = 13; + a25 = 1; + a14 = 6; + a29 = 1; + a19 = 0; + }else{ + a14 = 5; + a26 = 1; + a16 = 0; + a13 = 0; + a9 = 0; + a27 = 21; + a2 = 1; + } + return 22; + } else if(((((((((a10==1)&&((input==3)&&((a14==6)||(a14==7))))&&!(a19==1))&&!(a2==1))&&(a27==21))&&!(a25==1))&&(a3==14))&&(((!(a13==1)&&((a16==1)||((a12==1)&&((a26==1)&&(a28==1)))))||(a17==1))&&!(a1==1)))){ + a29 = 0; + a16 = 1; + a3 = 13; + a14 = 7; + a27 = 20; + a6 = 0; + return 26; + } else if((((a10==1)&&(!(a2==1)&&(!(a25==1)&&(((a21==1)||(!(a5==1)||(a18==1)))&&(a18==1)))))&&(!(a13==1)&&((a14==5)&&((a28==1)&&(((a3==12)&&(((input==6)&&(a26==1))&&(a27==20)))&&(a12==1))))))){ + a14 = 3; + a3 = 14; + a2 = 1; + a6 = 1; + a12 = 1; + a21 = 0; + return 22; + } else if((((!(a25==1)&&(!(a19==1)&&(((a20==1)||(a23==1))&&(a27==19))))&&!(a19==1))&&(!(a2==1)&&((((a18==1)&&((a14==6)&&((a3==13)&&(((input==4)&&!(a26==1))&&(a5==1)))))&&!(a13==1))&&(a10==1))))){ + a3 = 12; + a27 = 21; + a14 = 3; + a6 = 1; + a26 = 1; + a23 = 0; + a2 = 1; + a21 = 0; + return 24; + } else if(((((a27==21)&&(((!(a26==1)&&((!(a25==1)&&(((a6==1)||(a17==1))||(a13==1)))||!(a20==1)))&&!(a17==1))&&(a3==13)))&&(a10==1))&&(!(a16==1)&&((!(a2==1)&&((input==6)&&((a14==4)||(a14==5))))&&!(a21==1))))){ + a26 = 1; + a6 = 0; + a13 = 1; + a25 = 1; + a3 = 14; + a18 = 0; + a14 = 3; + return -1; + } else if((((a11==1)&&((a21==1)&&((((a13==1)&&((a3==14)&&((((a14==5)||((a14==3)||(a14==4)))&&(input==2))&&(a27==21))))&&!(a29==1))&&(a2==1))))&&(((!(a25==1)&&(((a26==1)&&(a29==1))&&(a10==1)))&&(a11==1))&&(a13==1)))){ + a22 = 1; + a1 = 1; + a27 = 19; + a26 = 0; + a23 = 1; + a3 = 12; + a14 = 5; + return -1; + } else if((((!(a23==1)&&((a26==1)&&((input==4)&&((a14==6)||(a14==7)))))&&!(a21==1))&&(((a3==14)&&(((a27==20)&&((((((a20==1)&&(a25==1))&&!(a19==1))&&!(a19==1))&&!(a2==1))||(a9==1)))&&!(a13==1)))&&(a10==1)))){ + a25 = 0; + a26 = 0; + a27 = 19; + a3 = 12; + a1 = 0; + a20 = 1; + a14 = 6; + return 26; + } else if(((!(a26==1)&&((a3==12)&&((a10==1)&&((!(a25==1)&&((input==5)&&((a14==3)||(a14==4))))&&(a27==21)))))&&((a19==1)||(((a7==1)&&((((a2==1)&&((a13==1)||(a12==1)))&&!(a17==1))||(a11==1)))||!(a6==1))))){ + a28 = 1; + a19 = 0; + a14 = 3; + a25 = 1; + a27 = 19; + a26 = 1; + return -1; + } else if((((a3==14)&&((a14==4)&&((a17==1)||(a5==1))))&&(((((((((a10==1)&&((a18==1)&&((input==4)&&(a26==1))))&&!(a17==1))&&!(a17==1))&&!(a19==1))&&!(a17==1))&&(a27==21))&&(a25==1))&&(a2==1)))){ + a26 = 0; + a28 = 1; + a27 = 20; + a20 = 1; + a3 = 12; + a14 = 6; + return 22; + } else if(((!(a7==1)||((a12==1)&&((!(a2==1)&&((a26==1)&&((a5==1)&&(a7==1))))&&(a6==1))))&&(((a20==1)&&(((((a25==1)&&((a14==3)&&(input==6)))&&(a12==1))&&(a3==14))&&(a27==19)))&&(a10==1)))){ + a14 = 5; + a27 = 21; + a2 = 1; + a3 = 13; + a20 = 1; + a9 = 0; + a18 = 1; + return 25; + } else if((((a18==1)&&(((((a10==1)&&((a27==19)&&(!(a2==1)&&(a15==1))))&&(a26==1))||!(a29==1))&&!(a23==1)))&&(((((a25==1)&&(((((a14==5)||(a14==6))||(a14==7))&&(input==2))&&(a3==12)))&&!(a19==1))&&!(a11==1))&&(a5==1)))){ + a12 = 1; + a20 = 1; + a19 = 0; + a2 = 1; + a14 = 4; + return -1; + } else if(((((a26==1)&&((((a27==21)&&(((a10==1)&&(a5==1))&&(a29==1)))&&(a25==1))||(a9==1)))&&(a3==13))&&(((a28==1)&&((!(a19==1)&&(!(a2==1)&&((input==5)&&(((a14==3)||(a14==4))||(a14==5)))))&&(a18==1)))&&!(a1==1)))){ + if((a8==1)){ + a2 = 1; + a27 = 20; + a26 = 0; + a3 = 14; + a28 = 0; + a11 = 1; + a20 = 0; + a14 = 3; + }else{ + a25 = 0; + a27 = 19; + a12 = 0; + a22 = 0; + a19 = 1; + a3 = 14; + a2 = 1; + a14 = 3; + } + return 22; + } else if((((((((a3==12)&&((input==3)&&(((a14==4)||(a14==5))||(a14==6))))&&!(a25==1))&&(a2==1))&&!(a19==1))&&!(a21==1))&&(((a26==1)&&(!(a9==1)&&((a10==1)&&(((a18==1)&&((a7==1)&&(a27==21)))&&!(a13==1)))))||(a13==1)))){ + a27 = 19; + a12 = 1; + a25 = 1; + a1 = 0; + a11 = 0; + a14 = 3; + return -1; + } else if((((a10==1)&&(!(a19==1)&&(!(a2==1)&&(((!(a9==1)&&((a20==1)&&(((a3==14)&&(a6==1))&&(a27==19))))||(a16==1))&&(a25==1)))))&&((((a18==1)&&((a26==1)&&(input==1)))&&!(a16==1))&&(a14==5)))){ + if((a15==1)){ + a20 = 1; + a3 = 13; + a14 = 7; + a25 = 0; + a26 = 0; + a6 = 1; + a16 = 0; + }else{ + a28 = 1; + a2 = 1; + a12 = 1; + a23 = 0; + a14 = 7; + a3 = 12; + a27 = 20; + } + return 22; + } else if(((((((a12==1)&&(((a3==13)&&(input==6))&&!(a11==1)))&&!(a23==1))&&(a10==1))&&(a12==1))&&(!(a25==1)&&(!(a26==1)&&((!(a2==1)&&((((a14==7)&&(a12==1))||!(a12==1))||(a11==1)))&&(a27==19)))))){ + a25 = 1; + a26 = 1; + a27 = 20; + a2 = 1; + a9 = 0; + a14 = 5; + a15 = 1; + a3 = 14; + a5 = 1; + return 25; + } else if((((((((((input==4)&&(a26==1))&&(a27==21))&&!(a18==1))&&(a25==1))&&(a21==1))&&(a14==4))&&(a10==1))&&(!(a12==1)&&(((a23==1)&&((((a20==1)&&(a19==1))&&!(a18==1))&&(a2==1)))&&(a3==14))))){ + a28 = 0; + a0 = 0; + a2 = 0; + a9 = 1; + a27 = 20; + return 22; + } else if((((((a20==1)&&(((a3==14)&&((a15==1)&&((!(a16==1)&&((input==3)&&!(a25==1)))&&!(a19==1))))&&!(a26==1)))&&!(a13==1))&&(a10==1))&&((a20==1)&&(!(a2==1)&&((a27==21)&&((a14==6)&&(a28==1))))))){ + a27 = 20; + a13 = 1; + a16 = 1; + a26 = 1; + a25 = 1; + a14 = 3; + return 25; + } else if((((a20==1)&&(((a10==1)&&(((a25==1)&&(!(a26==1)&&(((((a14==7)&&(a3==12))||((a3==13)&&(a14==3)))||((a14==4)&&(a3==13)))&&(input==5))))&&(a27==19)))&&!(a2==1)))&&(!(a20==1)||((!(a6==1)||((a17==1)||((a12==1)||(a23==1))))||(a21==1))))){ + a13 = 0; + a1 = 0; + a26 = 1; + a2 = 1; + a29 = 1; + a14 = 3; + a3 = 12; + return -1; + } else if((((a14==5)&&((((((a12==1)||(a9==1))||!(a18==1))&&(a27==21))&&(a10==1))&&!(a17==1)))&&(!(a26==1)&&(!(a9==1)&&((!(a21==1)&&((((a3==12)&&(input==6))&&(a6==1))&&(a2==1)))&&!(a25==1)))))){ + a12 = 1; + a23 = 0; + a25 = 1; + a27 = 19; + a14 = 3; + a1 = 0; + a26 = 1; + return -1; + } else if((((!(a21==1)&&(((a18==1)&&((a7==1)&&((a14==6)&&(((a26==1)&&(input==2))&&(a3==12)))))&&(a10==1)))&&(a29==1))&&((((a2==1)&&((!(a25==1)&&(a29==1))&&(a27==20)))||(a9==1))||!(a7==1)))){ + a17 = 0; + a25 = 1; + a2 = 0; + a11 = 0; + a13 = 0; + a3 = 13; + a27 = 19; + return 26; + } else if(((((((((((a5==1)&&(a2==1))||(a1==1))&&(a7==1))&&!(a26==1))||!(a20==1))&&(a27==21))&&(a29==1))||(a13==1))&&((a3==14)&&(((!(a25==1)&&((input==1)&&((a14==3)||(a14==4))))&&(a10==1))&&!(a9==1))))){ + a7 = 1; + a27 = 20; + a3 = 13; + a14 = 6; + a25 = 1; + a15 = 1; + return 22; + } else if(((((a20==1)&&((!(a26==1)&&(((a2==1)&&((a3==14)&&(a15==1)))&&(a14==7)))||!(a7==1)))||!(a12==1))&&(!(a21==1)&&((((a15==1)&&(((a25==1)&&(input==2))&&(a10==1)))&&(a27==21))&&!(a1==1))))){ + a27 = 20; + a12 = 1; + a21 = 0; + a18 = 1; + a14 = 3; + return 24; + } else if(((!(a28==1)||((((a27==20)&&((a2==1)&&(a20==1)))||!(a15==1))&&!(a21==1)))&&((((a5==1)&&((a10==1)&&(((a25==1)&&((((a14==3)&&(a3==14))||(((a3==13)&&(a14==6))||((a14==7)&&(a3==13))))&&(input==3)))&&!(a26==1))))&&(a15==1))&&!(a23==1)))){ + a3 = 12; + a1 = 0; + a27 = 19; + a13 = 0; + a11 = 0; + a14 = 3; + a26 = 1; + return -1; + } else if(((((a27==21)&&(!(a2==1)&&((a18==1)&&(((a14==6)||(a14==7))&&(input==5)))))&&(a25==1))&&((a26==1)&&(((a3==12)&&((!(a11==1)&&((((a12==1)&&(a15==1))&&(a10==1))&&(a15==1)))&&!(a19==1)))||(a19==1))))){ + if((a29==1)){ + a11 = 1; + a16 = 1; + a2 = 1; + a27 = 19; + a19 = 1; + a14 = 5; + }else{ + a27 = 20; + a3 = 13; + a14 = 6; + a25 = 0; + a17 = 1; + a20 = 0; + a15 = 0; + a26 = 0; + } + return 25; + } else if((((a7==1)&&(!(a25==1)&&(((((!(a19==1)&&((input==1)&&(a3==12)))&&(a10==1))&&!(a11==1))&&(a27==20))&&(a14==5))))&&((!(a16==1)&&((a26==1)&&(!(a7==1)||(!(a2==1)&&(a29==1)))))||(a19==1)))){ + a7 = 1; + a2 = 1; + a1 = 0; + a14 = 7; + a3 = 14; + a18 = 1; + return 22; + } else if(((!(a20==1)||((!(a2==1)&&(((a27==20)&&((a12==1)&&(a3==13)))&&(a6==1)))||!(a20==1)))&&(((a12==1)&&((((a25==1)&&(((input==6)&&(((a14==3)||(a14==4))||(a14==5)))&&(a26==1)))&&(a10==1))&&(a29==1)))&&(a6==1)))){ + a2 = 1; + a11 = 0; + a14 = 3; + a26 = 0; + a3 = 14; + a13 = 0; + a29 = 1; + return 25; + } else if((((((((!(a23==1)&&(((a14==3)&&(a6==1))&&(a27==19)))&&(a25==1))&&(a10==1))&&(a28==1))&&!(a9==1))||!(a29==1))&&(((a20==1)&&((a26==1)&&(!(a1==1)&&((input==1)&&(a3==13)))))&&!(a2==1)))){ + a20 = 1; + a3 = 12; + a23 = 0; + a25 = 0; + a14 = 6; + a27 = 20; + a2 = 1; + return -1; + } else if(((((((a12==1)&&((a3==12)&&((a2==1)&&(input==2))))&&(a6==1))&&(a15==1))&&(a18==1))&&((((a5==1)&&((a27==21)&&((a14==3)&&(!(a25==1)&&((a28==1)&&!(a21==1))))))&&(a10==1))&&(a26==1)))){ + a17 = 0; + a12 = 1; + a6 = 1; + return 24; + } else if((((((a28==1)&&((a3==14)&&(((!(a25==1)&&(!(a26==1)&&(input==5)))&&(a10==1))&&(a12==1))))&&(a27==21))&&!(a11==1))&&((!(a2==1)&&((!(a9==1)&&((a7==1)&&(a14==6)))||!(a12==1)))||(a21==1)))){ + if((a12==1)){ + a3 = 12; + a23 = 1; + a6 = 0; + a2 = 1; + a26 = 1; + a27 = 19; + a25 = 1; + }else{ + a25 = 1; + a19 = 1; + a3 = 13; + a4 = 1; + a2 = 1; + a27 = 19; + a18 = 0; + } + return -1; + } else if((((a19==1)||((!(a7==1)||((a10==1)&&((a28==1)&&(a2==1))))&&!(a23==1)))&&((((((a20==1)&&((((input==5)&&(a25==1))&&(a14==7))&&(a28==1)))&&(a3==12))&&(a26==1))&&(a12==1))&&(a27==20)))){ + a14 = 3; + a28 = 1; + a27 = 19; + a9 = 0; + a16 = 0; + return -1; + } else if(((((a21==1)&&((a27==21)&&((((a6==1)&&(a13==1))&&(a14==4))&&(a25==1))))&&(a3==14))&&((a26==1)&&((a10==1)&&((a1==1)&&(!(a20==1)&&((((a2==1)&&(input==5))&&!(a6==1))&&!(a28==1)))))))){ + a29 = 0; + a12 = 0; + a25 = 0; + a14 = 5; + a15 = 0; + return -1; + } else if((((a10==1)&&(((((a3==12)&&((a29==1)&&(!(a19==1)&&((a27==20)&&((a26==1)&&(((input==2)&&((a14==4)||(a14==5)))&&!(a17==1)))))))&&!(a19==1))&&(a2==1))&&!(a16==1)))&&((!(a25==1)&&(a7==1))&&(a7==1)))){ + a16 = 0; + a25 = 1; + a14 = 4; + a2 = 0; + a27 = 19; + a20 = 1; + a17 = 0; + return 22; + } else if((((((a25==1)&&(((!(a19==1)&&((a12==1)&&((input==3)&&(a27==21))))&&(a10==1))&&(a2==1)))&&(a26==1))&&!(a19==1))&&((a23==1)||(((a3==14)&&((!(a20==1)||(a12==1))&&(a15==1)))&&(a14==4))))){ + a14 = 5; + a27 = 20; + a23 = 0; + a3 = 12; + a12 = 1; + a26 = 0; + a15 = 1; + return 26; + } else if((((((a10==1)&&((!(a16==1)&&((a18==1)&&!(a11==1)))||!(a28==1)))&&(a26==1))&&(a3==12))&&(!(a1==1)&&((a15==1)&&(!(a2==1)&&((a25==1)&&(!(a19==1)&&((a27==20)&&((input==3)&&((a14==4)||(a14==5))))))))))){ + a21 = 0; + a14 = 4; + a2 = 1; + a12 = 1; + a3 = 13; + a1 = 0; + return 24; + } else if(((!(a21==1)&&(!(a25==1)&&((a3==12)&&((a27==21)&&((((((a14==6)||(a14==7))&&(input==2))&&(a6==1))&&(a12==1))&&(a20==1))))))&&((a10==1)&&((a2==1)&&((((a15==1)||(a23==1))&&!(a13==1))&&!(a26==1)))))){ + a3 = 14; + a12 = 1; + a11 = 0; + a14 = 5; + a29 = 1; + a26 = 1; + a25 = 1; + return 26; + } else if(((((a3==14)&&((a27==20)&&(!(a25==1)&&(((input==3)&&((a14==4)||(a14==5)))&&(a10==1)))))&&(a7==1))&&((!(a11==1)&&(!(a26==1)&&(((a2==1)&&(((a18==1)&&(a6==1))&&!(a11==1)))&&(a5==1))))||!(a28==1)))){ + a11 = 0; + a14 = 6; + a26 = 1; + a6 = 1; + a25 = 1; + a5 = 1; + return 25; + } else if(((((!(a25==1)&&((a7==1)&&((a16==1)||((a6==1)&&(a15==1)))))&&!(a2==1))&&(a14==5))&&(((a15==1)&&(((a28==1)&&((((a27==20)&&(input==5))&&(a26==1))&&(a10==1)))&&(a5==1)))&&(a3==13)))){ + a3 = 12; + a22 = 0; + a27 = 19; + a11 = 1; + a26 = 0; + a28 = 0; + return 25; + } else if((((a21==1)&&(((!(a2==1)&&(((((a14==3)||(a14==4))||(a14==5))&&(input==4))&&(a3==13)))&&(a26==1))&&(a16==1)))&&(!(a12==1)&&((((((a19==1)&&(!(a5==1)&&(a28==1)))&&!(a5==1))&&!(a25==1))&&(a27==19))&&(a10==1))))){ + a14 = 3; + a25 = 1; + a23 = 1; + a27 = 20; + a7 = 0; + a2 = 1; + a4 = 0; + a26 = 0; + return -1; + } else if((((((((((a12==1)&&(a10==1))&&(a27==20))&&!(a11==1))&&(a29==1))&&(a25==1))&&!(a13==1))||(a1==1))&&((a20==1)&&((!(a26==1)&&(!(a11==1)&&((input==4)&&((((a14==6)&&(a3==13))||((a3==13)&&(a14==7)))||((a3==14)&&(a14==3))))))&&(a2==1))))){ + a5 = 1; + a11 = 0; + a27 = 21; + a14 = 6; + a3 = 14; + a7 = 1; + return 24; + } else if(((((a20==1)&&((((a15==1)&&((!(a26==1)&&(((a14==6)||(a14==7))&&(input==5)))&&!(a25==1)))&&(a27==21))&&(a10==1)))&&(a18==1))&&((a3==12)&&((a29==1)&&(!(a16==1)&&(!(a13==1)&&((a15==1)&&(a2==1)))))))){ + a25 = 1; + a27 = 20; + a3 = 13; + a14 = 3; + a5 = 1; + a18 = 1; + a20 = 1; + a26 = 1; + return 25; + } else if(((!(a2==1)&&((((!(a23==1)&&(((((a3==14)&&(a14==3))||(((a14==6)&&(a3==13))||((a3==13)&&(a14==7))))&&(input==1))&&!(a17==1)))&&(a25==1))&&(a27==20))&&!(a11==1)))&&((((a28==1)&&(((a5==1)&&(a29==1))||(a19==1)))&&(a26==1))&&(a10==1)))){ + a3 = 14; + a2 = 1; + a7 = 1; + a23 = 0; + a28 = 1; + a14 = 5; + a27 = 19; + return -1; + } else if(((((((a28==1)&&(a15==1))&&(a3==12))||!(a20==1))&&!(a13==1))&&(!(a13==1)&&(((a10==1)&&((a25==1)&&((a7==1)&&((((a27==21)&&((input==6)&&(((a14==4)||(a14==5))||(a14==6))))&&!(a26==1))&&!(a2==1)))))&&(a15==1))))){ + if((a4==1)){ + a3 = 13; + a27 = 20; + a22 = 1; + a16 = 1; + a14 = 4; + a26 = 1; + a19 = 1; + a2 = 1; + }else{ + a14 = 5; + a0 = 0; + a6 = 0; + a20 = 0; + a27 = 19; + a2 = 1; + } + return -1; + } else if(((((a12==1)&&((!(a25==1)&&(((a27==19)&&((a5==1)&&(a10==1)))||(a17==1)))||(a19==1)))&&!(a19==1))&&((!(a26==1)&&(!(a2==1)&&(!(a1==1)&&((a3==14)&&((input==6)&&((a14==3)||(a14==4)))))))&&!(a9==1)))){ + a3 = 12; + a14 = 5; + a2 = 1; + a18 = 1; + a12 = 1; + a23 = 0; + a27 = 21; + a26 = 1; + return 22; + } else if(((!(a19==1)&&((a7==1)&&((a25==1)&&((((a26==1)&&(!(a17==1)&&((((a14==4)||(a14==5))&&(input==1))&&(a27==20))))&&(a7==1))&&!(a21==1)))))&&((a3==12)&&(!(a2==1)&&(((a10==1)&&(a18==1))||!(a18==1)))))){ + a11 = 0; + a2 = 1; + a27 = 19; + a18 = 1; + a16 = 0; + a14 = 3; + return -1; + } else if(((!(a1==1)&&((!(a2==1)&&((a25==1)&&((((a3==14)&&(a6==1))&&(a27==19))&&!(a13==1))))||!(a28==1)))&&(((a10==1)&&((a18==1)&&((((input==3)&&(((a14==4)||(a14==5))||(a14==6)))&&!(a26==1))&&!(a23==1))))&&(a6==1)))){ + a19 = 0; + a23 = 0; + a27 = 21; + a2 = 1; + a25 = 0; + a14 = 5; + a20 = 1; + return -1; + } else if((((a23==1)&&((a11==1)&&(((a2==1)&&((a26==1)&&((a15==1)&&(a25==1))))&&(a10==1))))&&((a13==1)&&(((((!(a20==1)&&((a3==14)&&(input==2)))&&(a27==21))&&(a14==4))&&!(a6==1))&&(a11==1))))){ + a23 = 1; + a25 = 0; + a3 = 13; + a24 = 1; + a0 = 1; + return 25; + } else if(((((((input==5)&&((!(a26==1)&&((a27==19)&&((a3==14)&&((a14==7)&&!(a25==1)))))||((((a3==12)&&((a14==3)&&(a25==1)))&&(a27==20))&&(a26==1))))&&(a10==1))&&(a20==1))&&!(a9==1))&&(!(a13==1)&&(((((a6==1)&&!(a2==1))||(a17==1))||(a17==1))&&(a12==1))))){ + a6 = 1; + a3 = 14; + a14 = 5; + a17 = 0; + a25 = 1; + a21 = 0; + a27 = 20; + a26 = 1; + a2 = 1; + return 25; + } else if((((a16==1)||(!(a20==1)||(!(a2==1)&&((a23==1)||((a27==20)&&((((a10==1)&&(a29==1))||!(a20==1))&&(a3==12)))))))&&((a26==1)&&((a25==1)&&((((input==2)&&((a14==4)||(a14==5)))&&!(a16==1))&&!(a19==1)))))){ + a29 = 1; + a15 = 1; + a3 = 14; + a23 = 0; + a2 = 1; + a14 = 3; + a26 = 0; + return 24; + } else if(((!(a2==1)&&((!(a9==1)&&((a25==1)&&(!(a20==1)||(!(a13==1)&&(!(a26==1)&&((a20==1)||!(a18==1)))))))&&(a3==12)))&&(((a10==1)&&(((a7==1)&&((((a14==4)||(a14==5))||(a14==6))&&(input==5)))&&(a27==21)))&&(a15==1)))){ + a25 = 0; + a23 = 1; + a27 = 19; + a1 = 1; + a26 = 1; + a14 = 7; + a3 = 13; + a6 = 0; + return 26; + } else if((((a27==20)&&((a7==1)&&(!(a13==1)&&((((!(a16==1)&&((((a10==1)&&((input==5)&&(((a14==5)||(a14==6))||(a14==7))))&&(a2==1))&&!(a26==1)))&&(a3==12))&&(a15==1))&&(a6==1)))))&&(((a16==1)||(a18==1))&&(a25==1)))){ + a23 = 0; + a29 = 1; + a26 = 1; + a27 = 21; + a3 = 14; + a5 = 1; + a14 = 5; + return 26; + } else if(((((((!(a1==1)&&((a10==1)&&(((a14==4)||(a14==5))&&(input==4))))&&(a27==20))&&(a29==1))&&(a5==1))&&!(a25==1))&&((a16==1)||((a2==1)&&((a6==1)&&((((a7==1)&&(a3==14))&&!(a26==1))&&!(a19==1))))))){ + a27 = 19; + a3 = 12; + a25 = 1; + a7 = 1; + a29 = 1; + a26 = 1; + a13 = 0; + a14 = 3; + return -1; + } else if((((!(a19==1)&&((a20==1)&&(!(a25==1)&&(((a27==20)&&(!(a2==1)&&(input==4)))&&(a3==12)))))&&!(a13==1))&&((((a10==1)&&((a14==4)&&(!(a29==1)||((a6==1)&&(a28==1)))))&&(a26==1))||!(a15==1)))){ + a3 = 14; + a14 = 3; + a25 = 1; + a1 = 0; + a18 = 1; + a26 = 0; + a11 = 0; + a2 = 1; + return 22; + } else if((((a10==1)&&((((((a7==1)||(a16==1))||!(a6==1))&&(a6==1))&&(a12==1))&&(a26==1)))&&(!(a2==1)&&(((a27==21)&&(!(a25==1)&&(((a18==1)&&(((a14==5)||(a14==6))&&(input==6)))&&!(a16==1))))&&(a3==13))))){ + if((a1==1)){ + a3 = 14; + a12 = 0; + a2 = 1; + a14 = 4; + a27 = 19; + a22 = 0; + a17 = 1; + }else{ + a23 = 1; + a14 = 7; + a3 = 14; + a15 = 0; + a13 = 1; + a26 = 0; + a25 = 1; + a2 = 1; + } + return -1; + } else if((((a27==19)&&((a29==1)&&((((!(a25==1)&&((input==1)&&((a14==4)||(a14==5))))&&!(a26==1))&&(a10==1))&&(a3==13))))&&((!(a2==1)&&(((!(a28==1)||((a5==1)||!(a18==1)))&&(a18==1))||!(a15==1)))||!(a15==1)))){ + a26 = 1; + a14 = 4; + a23 = 0; + a3 = 12; + a6 = 1; + a27 = 21; + a7 = 1; + a2 = 1; + a25 = 1; + return 26; + } else if((((((a7==1)&&(((input==4)&&(((a14==3)||(a14==4))||(a14==5)))&&(a29==1)))&&(a15==1))&&(a3==14))&&(!(a13==1)&&((a1==1)||(((a27==21)&&(((a13==1)||(((a28==1)&&!(a25==1))&&(a10==1)))&&(a26==1)))&&(a2==1)))))){ + a15 = 1; + a3 = 13; + a27 = 20; + a14 = 4; + a25 = 1; + a21 = 0; + a23 = 0; + return 22; + } else if((((a3==13)&&(!(a29==1)&&((a26==1)&&((a10==1)&&((a28==1)&&(a23==1))))))&&(!(a5==1)&&((a1==1)&&(!(a25==1)&&((!(a2==1)&&(!(a15==1)&&((a27==19)&&((((a14==3)||(a14==4))||(a14==5))&&(input==5)))))&&(a9==1))))))){ + a19 = 1; + a21 = 1; + a14 = 7; + a3 = 14; + a8 = 0; + a2 = 1; + return 22; + } else if(((((((a3==13)&&(((((input==2)&&((a14==5)||((a14==3)||(a14==4))))&&!(a19==1))&&!(a25==1))&&(a27==19)))&&!(a23==1))&&(a10==1))&&!(a9==1))&&((a17==1)||(!(a2==1)&&((a12==1)&&(((a5==1)&&(a26==1))&&!(a16==1))))))){ + a14 = 3; + a2 = 1; + a29 = 1; + a3 = 12; + a7 = 1; + a25 = 1; + a12 = 1; + return -1; + } else if((((a29==1)&&((a3==13)&&(((a20==1)&&((a28==1)&&(((a14==4)||(a14==5))&&(input==2))))&&(a25==1))))&&(!(a16==1)&&(!(a26==1)&&(!(a2==1)&&((a10==1)&&((((a27==20)&&(a6==1))||(a1==1))||!(a6==1)))))))){ + a14 = 3; + a26 = 1; + a9 = 0; + a19 = 0; + a27 = 19; + a13 = 0; + a2 = 1; + a3 = 12; + return -1; + } else if(((((a15==1)&&(!(a2==1)&&(((((input==1)&&(((a14==3)||(a14==4))||(a14==5)))&&(a3==14))&&(a10==1))&&(a27==21))))&&(a18==1))&&(((((((a20==1)&&(a25==1))&&(a26==1))&&!(a13==1))&&(a29==1))||!(a29==1))&&(a15==1)))){ + a3 = 13; + a11 = 1; + a27 = 19; + a14 = 7; + a6 = 0; + a7 = 0; + a2 = 1; + return -1; + } else if((((a14==4)&&((a12==1)&&(((((input==5)&&(a2==1))&&!(a13==1))&&(a3==14))&&!(a11==1))))&&((a25==1)&&((a10==1)&&((((a7==1)&&(((a15==1)&&(a26==1))&&(a20==1)))&&(a27==21))&&(a7==1)))))){ + a14 = 3; + a12 = 1; + a27 = 19; + a17 = 0; + a3 = 12; + return -1; + } else if(((!(a2==1)&&((a7==1)&&(((a18==1)&&((a7==1)&&((a12==1)&&(!(a26==1)&&(input==4)))))&&(a5==1))))&&(((((a3==13)&&(!(a21==1)&&((a12==1)&&(a10==1))))&&(a27==21))&&(a14==7))&&(a25==1)))){ + a23 = 1; + a24 = 0; + a3 = 14; + a2 = 1; + a22 = 0; + a25 = 0; + a14 = 4; + return -1; + } else if((((a20==1)&&(((((!(a26==1)&&(a29==1))||(a9==1))&&(a7==1))||(a17==1))&&(a5==1)))&&(((a3==13)&&((a27==21)&&(((((input==3)&&(a10==1))&&!(a13==1))&&!(a2==1))&&(a25==1))))&&(a14==3)))){ + a3 = 14; + a23 = 1; + a27 = 19; + a22 = 0; + a29 = 0; + return 26; + } else if(((((a19==1)||(!(a25==1)&&(((!(a26==1)&&((a7==1)&&!(a11==1)))&&(a27==20))||(a19==1))))&&!(a2==1))&&((!(a19==1)&&((!(a19==1)&&((input==1)&&(((a14==7)&&(a3==13))||((a3==14)&&(a14==3)))))&&(a10==1)))&&!(a23==1)))){ + if((a6==1)){ + a27 = 19; + a3 = 14; + a1 = 1; + a14 = 7; + a7 = 0; + a26 = 1; + a24 = 1; + }else{ + a25 = 1; + a8 = 1; + a11 = 1; + a27 = 21; + a23 = 1; + a14 = 4; + a3 = 13; + } + return -1; + } else if((((((a18==1)&&((a20==1)||(a23==1)))&&(a14==7))&&!(a2==1))&&(!(a1==1)&&(((a10==1)&&((a28==1)&&((a3==13)&&(((((input==4)&&(a27==19))&&(a15==1))&&!(a26==1))&&(a6==1)))))&&!(a25==1))))){ + a28 = 1; + a1 = 0; + a6 = 1; + a27 = 20; + a25 = 1; + a26 = 1; + a14 = 5; + a2 = 1; + return 26; + } else if(((((a6==1)&&((((a10==1)&&(input==3))&&(a27==19))&&!(a16==1)))&&!(a9==1))&&(!(a28==1)||(((!(a26==1)&&(((((a3==13)&&(a28==1))||!(a28==1))&&!(a2==1))&&(a14==7)))||(a11==1))&&!(a25==1))))){ + if((a7==1)){ + a14 = 5; + a15 = 1; + a27 = 20; + a18 = 1; + a1 = 0; + a3 = 12; + a26 = 1; + }else{ + a15 = 1; + a14 = 3; + a12 = 1; + a25 = 1; + a27 = 20; + a2 = 1; + a26 = 1; + a3 = 14; + a23 = 0; + } + return 26; + } else if((((!(a25==1)&&(((a27==19)&&((!(a21==1)&&(!(a11==1)&&((input==5)&&((a14==5)||(a14==6)))))&&!(a17==1)))&&!(a26==1)))&&!(a23==1))&&((((((a5==1)||!(a15==1))&&!(a19==1))&&(a10==1))&&!(a2==1))&&(a3==14)))){ + a14 = 3; + a25 = 1; + a1 = 0; + a7 = 1; + a23 = 0; + return 25; + } else if(((((a10==1)&&((a29==1)&&(!(a13==1)&&(((input==4)&&(a14==4))&&(a20==1)))))&&!(a25==1))&&(!(a5==1)||((((a3==14)&&(!(a7==1)||(!(a2==1)&&((a6==1)&&!(a26==1)))))&&(a27==21))&&!(a21==1))))){ + a14 = 7; + a17 = 1; + a4 = 0; + a26 = 1; + a2 = 1; + a24 = 1; + return -1; + } else if((((a29==1)&&((((((input==5)&&(a3==12))&&!(a26==1))&&!(a19==1))&&!(a2==1))&&(a14==7)))&&((((a25==1)&&(!(a23==1)&&((a10==1)&&(((a7==1)||!(a12==1))||(a1==1)))))&&(a27==21))&&!(a16==1)))){ + a26 = 1; + a7 = 0; + a27 = 19; + a0 = 1; + a20 = 0; + a14 = 5; + a2 = 1; + return -1; + } else if(((((a3==14)&&(!(a28==1)||(((a29==1)||!(a15==1))||(a16==1))))&&(a26==1))&&((a5==1)&&((((((((a10==1)&&(input==2))&&!(a2==1))&&(a14==4))&&(a15==1))&&(a25==1))&&(a27==19))&&(a28==1))))){ + a1 = 0; + a28 = 1; + a3 = 12; + a2 = 1; + a27 = 20; + a14 = 3; + a6 = 1; + return -1; + } else if(((!(a17==1)&&(!(a26==1)&&((a10==1)&&((a3==13)&&((((((a14==4)||(a14==5))&&(input==5))&&(a27==21))&&!(a2==1))&&!(a13==1))))))&&(!(a25==1)&&(((!(a20==1)||((a6==1)&&(a15==1)))||(a21==1))&&!(a23==1))))){ + a8 = 0; + a4 = 1; + a27 = 19; + a29 = 0; + a2 = 1; + a14 = 3; + return -1; + } else if((((a5==1)&&((a10==1)&&(((a2==1)&&((a26==1)&&(((input==1)&&((a14==5)||((a14==3)||(a14==4))))&&(a5==1))))&&(a15==1))))&&(!(a7==1)||((!(a1==1)&&((a6==1)&&(((a5==1)&&!(a25==1))&&(a27==21))))&&(a3==14))))){ + a25 = 1; + a26 = 0; + a29 = 1; + a28 = 1; + a27 = 20; + a16 = 0; + a14 = 4; + return 26; + } else if(((!(a13==1)&&((a12==1)&&(((!(a11==1)&&(((a26==1)&&((a3==14)&&((input==1)&&(a27==21))))&&(a10==1)))&&(a2==1))&&(a6==1))))&&((a1==1)||((((a5==1)&&(a14==5))&&(a25==1))&&!(a9==1))))){ + a7 = 1; + a3 = 12; + a14 = 3; + a19 = 0; + a27 = 19; + a16 = 0; + return -1; + } else if((((a10==1)&&((a27==21)&&((!(a9==1)&&(!(a11==1)&&(a28==1)))&&!(a26==1))))&&((a3==13)&&((((a2==1)&&(!(a25==1)&&((a28==1)&&(((input==1)&&((a14==6)||(a14==7)))&&!(a13==1)))))&&!(a19==1))&&(a29==1))))){ + a27 = 19; + a3 = 14; + a14 = 4; + a16 = 0; + a2 = 0; + a11 = 0; + return 22; + } else if((((((a25==1)&&((((a29==1)&&((a21==1)||((a15==1)&&(a3==12))))&&!(a21==1))&&!(a26==1)))&&(a2==1))&&(a27==21))&&((((a7==1)&&((a29==1)&&((input==4)&&(((a14==5)||(a14==6))||(a14==7)))))&&(a29==1))&&(a10==1)))){ + a7 = 1; + a29 = 1; + a6 = 1; + a27 = 20; + a3 = 13; + a14 = 4; + return 26; + } else if(((((a6==1)&&((a27==20)&&(a5==1)))||!(a20==1))&&(!(a1==1)&&(!(a21==1)&&(!(a25==1)&&((a10==1)&&(!(a2==1)&&(!(a17==1)&&(!(a19==1)&&(((((a3==12)&&(a14==4))&&!(a26==1))||((((a3==14)&&(a14==7))&&(a26==1))||(!(a26==1)&&((a3==12)&&(a14==3)))))&&(input==3))))))))))){ + a24 = 1; + a2 = 1; + a14 = 5; + a3 = 14; + a27 = 19; + a26 = 0; + a20 = 0; + return 24; + } else if(((((a10==1)&&((!(a17==1)&&(a12==1))&&!(a26==1)))&&(a3==12))&&((((((a28==1)&&((!(a23==1)&&(((input==3)&&((a14==6)||(a14==7)))&&(a5==1)))&&(a27==21)))&&(a15==1))&&(a5==1))&&(a2==1))&&!(a25==1)))){ + a29 = 1; + a14 = 3; + a27 = 20; + a23 = 0; + a25 = 1; + a21 = 0; + return 22; + } else if((((((a29==1)&&((!(a21==1)&&(((a10==1)&&(input==5))&&!(a23==1)))&&(a3==13)))&&!(a2==1))&&(a27==21))&&(((a25==1)&&((!(a17==1)&&(((a28==1)&&(a14==7))||!(a12==1)))&&(a18==1)))&&!(a26==1)))){ + a24 = 0; + a8 = 0; + a27 = 19; + a14 = 5; + a28 = 0; + a3 = 12; + a2 = 1; + return 24; + } else if((((a6==1)&&((((((a15==1)&&(a5==1))&&(a7==1))&&!(a19==1))||(a13==1))&&(a26==1)))&&((a3==12)&&((a10==1)&&(((a5==1)&&(((a14==3)&&((input==1)&&(a2==1)))&&(a27==21)))&&!(a25==1)))))){ + a29 = 1; + a11 = 0; + a21 = 0; + return 25; + } else if((((a10==1)&&(!(a25==1)&&((a18==1)&&((a26==1)&&((((a14==3)&&(a3==14))||(((a14==6)&&(a3==13))||((a14==7)&&(a3==13))))&&(input==2))))))&&((((a23==1)||(!(a1==1)&&((((a12==1)||!(a7==1))&&(a27==20))&&!(a11==1))))&&(a20==1))&&!(a2==1)))){ + if((a19==1)){ + a9 = 1; + a3 = 13; + a25 = 1; + a27 = 19; + a16 = 1; + a14 = 3; + a21 = 1; + }else{ + a29 = 0; + a11 = 1; + a14 = 6; + a3 = 13; + a9 = 1; + a25 = 1; + a27 = 19; + } + return 24; + } else if((((((!(a26==1)&&((a20==1)&&((!(a23==1)&&((input==4)&&((a14==6)||(a14==7))))&&(a10==1))))&&(a20==1))&&(a3==13))&&(a2==1))&&(!(a25==1)&&(((((a7==1)||(a11==1))||(a19==1))||!(a29==1))&&(a27==21))))){ + a13 = 0; + a14 = 5; + a9 = 0; + a27 = 20; + a28 = 1; + return 26; + } else if((((a5==1)&&((((((a12==1)||(a13==1))&&(a10==1))&&!(a11==1))&&(a6==1))&&(a25==1)))&&((a28==1)&&(((((a27==21)&&(!(a26==1)&&(((a14==5)||((a14==3)||(a14==4)))&&(input==3))))&&!(a2==1))&&(a3==14))&&(a18==1))))){ + if((a3==14)){ + a5 = 0; + a14 = 4; + a27 = 20; + a3 = 13; + a13 = 1; + a0 = 1; + a25 = 0; + a26 = 1; + a2 = 1; + }else{ + a3 = 13; + a26 = 1; + a14 = 5; + a27 = 20; + a17 = 1; + a9 = 1; + a4 = 1; + } + return 22; + } else if((((a21==1)||((((a10==1)&&(a15==1))&&(a26==1))&&!(a16==1)))&&((!(a23==1)&&(((a3==14)&&(((!(a2==1)&&((a20==1)&&((((a14==4)||(a14==5))||(a14==6))&&(input==6))))&&(a27==20))&&(a18==1)))&&!(a25==1)))&&!(a9==1)))){ + if((a29==1)){ + a11 = 1; + a23 = 1; + a14 = 6; + a5 = 0; + a27 = 21; + a25 = 1; + a26 = 0; + a3 = 13; + }else{ + a6 = 0; + a0 = 0; + a26 = 0; + a3 = 13; + a14 = 3; + a8 = 1; + a27 = 21; + } + return 25; + } else if((((((a10==1)&&(!(a9==1)&&(a28==1)))&&(a3==14))&&(a25==1))&&((a5==1)&&(((a12==1)&&((a18==1)&&(!(a9==1)&&(!(a26==1)&&((!(a16==1)&&(((a14==5)||(a14==6))&&(input==5)))&&!(a2==1))))))&&(a27==20))))){ + a3 = 13; + a13 = 0; + a2 = 1; + a26 = 1; + a14 = 3; + a5 = 1; + a6 = 1; + return 25; + } else if((((a13==1)&&((a3==13)&&((!(a25==1)&&(((((a12==1)&&(a26==1))&&!(a7==1))&&!(a6==1))&&(a23==1)))&&!(a2==1))))&&(!(a6==1)&&(((!(a20==1)&&(((a14==5)||((a14==3)||(a14==4)))&&(input==2)))&&(a27==19))&&(a10==1))))){ + a26 = 0; + a2 = 1; + a3 = 14; + a19 = 1; + a13 = 1; + a8 = 1; + a14 = 4; + a25 = 1; + return 25; + } else if(((((!(a11==1)&&(((input==2)&&(((a14==7)&&(a3==13))||((a14==3)&&(a3==14))))&&!(a26==1)))&&(a25==1))&&(a27==21))&&(((!(a5==1)||((a2==1)&&(((a28==1)&&((a28==1)||(a9==1)))&&(a10==1))))||!(a29==1))&&!(a21==1)))){ + a17 = 0; + a3 = 13; + a23 = 0; + a26 = 1; + a19 = 0; + a27 = 20; + a14 = 4; + return 24; + } else if((((a23==1)||((a17==1)||(((a13==1)||(a6==1))&&(a10==1))))&&(!(a16==1)&&((a20==1)&&(((a27==20)&&((a26==1)&&(((((((a3==13)&&(a14==6))||((a3==13)&&(a14==7)))||((a14==3)&&(a3==14)))&&(input==3))&&!(a2==1))&&(a25==1))))&&!(a13==1)))))){ + a25 = 0; + a11 = 0; + a9 = 0; + a14 = 6; + a13 = 0; + a3 = 12; + a2 = 1; + return 26; + } else if((((a28==1)&&((a5==1)&&(!(a13==1)&&(!(a9==1)&&(((((a27==20)&&(((a14==5)||((a14==3)||(a14==4)))&&(input==6)))&&(a2==1))&&!(a26==1))&&(a6==1))))))&&(((a10==1)&&((a25==1)&&((a3==13)&&(a5==1))))||!(a28==1)))){ + a26 = 1; + a3 = 12; + a14 = 3; + a29 = 1; + a17 = 0; + a27 = 19; + return -1; + } else if((((a25==1)&&((a2==1)&&((a3==13)&&(((a18==1)&&((a10==1)&&((a12==1)&&((input==2)&&((a14==5)||(a14==6))))))&&!(a23==1)))))&&(!(a28==1)||(((a27==20)&&(!(a18==1)||(!(a5==1)||(a20==1))))&&(a26==1))))){ + a3 = 12; + a27 = 19; + a5 = 1; + a7 = 1; + a14 = 3; + return -1; + } else if(((((a9==1)||((((a10==1)&&((a29==1)&&(a28==1)))&&(a2==1))&&(a3==12)))&&!(a25==1))&&((a27==20)&&((!(a17==1)&&((((((a14==4)||(a14==5))&&(input==4))&&(a29==1))&&(a26==1))&&!(a1==1)))&&(a18==1))))){ + a21 = 0; + a23 = 0; + a27 = 19; + a13 = 0; + a25 = 1; + a14 = 3; + return -1; + } else if((((!(a15==1)||((a29==1)&&((a7==1)&&(a5==1))))&&!(a25==1))&&(!(a2==1)&&(((a15==1)&&(((((input==1)&&((((a26==1)&&((a3==14)&&(a14==7)))||(((a14==3)&&(a3==12))&&!(a26==1)))||(!(a26==1)&&((a3==12)&&(a14==4)))))&&(a10==1))&&!(a13==1))&&!(a11==1)))&&(a27==20))))){ + a2 = 1; + a17 = 1; + a24 = 0; + a27 = 19; + a14 = 4; + a7 = 0; + a26 = 1; + a3 = 13; + return 22; + } else if((((a11==1)||(((((a23==1)||((a7==1)&&(a28==1)))&&!(a25==1))&&(a10==1))||!(a7==1)))&&(!(a1==1)&&(((a27==20)&&(!(a2==1)&&((((((a14==7)&&(a3==12))||((a14==3)&&(a3==13)))||((a14==4)&&(a3==13)))&&(input==5))&&(a26==1))))&&(a7==1))))){ + a27 = 19; + a15 = 1; + a25 = 1; + a23 = 0; + a14 = 3; + a2 = 1; + a3 = 12; + a7 = 1; + return -1; + } else if((((a27==20)&&(!(a25==1)&&((a26==1)&&(((!(a16==1)&&(((a14==4)||(a14==5))&&(input==1)))&&(a18==1))&&!(a17==1)))))&&(((a5==1)&&((((a3==12)&&(!(a23==1)&&(a5==1)))&&(a10==1))||(a13==1)))&&(a2==1)))){ + a20 = 1; + a2 = 0; + a25 = 1; + a15 = 1; + a27 = 19; + a14 = 6; + return 22; + } else if(((((a7==1)&&(!(a17==1)&&(((a14==5)||(a14==6))&&(input==4))))&&(a29==1))&&(!(a26==1)&&(!(a25==1)&&(!(a28==1)||(!(a7==1)||(((a3==13)&&(!(a2==1)&&(((a10==1)&&(a20==1))&&(a27==20))))||!(a6==1)))))))){ + a25 = 1; + a5 = 0; + a27 = 19; + a26 = 1; + a2 = 1; + a23 = 1; + a14 = 6; + a22 = 1; + return 25; + } else if((((((a25==1)&&((a2==1)&&(((a14==3)||(a14==4))&&(input==4))))&&(a10==1))&&(a13==1))&&(!(a26==1)&&((!(a20==1)&&(!(a18==1)&&((!(a5==1)&&((a27==20)&&((a20==1)&&(a3==12))))&&!(a28==1))))&&!(a12==1))))){ + a14 = 3; + a27 = 19; + a16 = 1; + a4 = 0; + a7 = 0; + return 22; + } else if((((a10==1)&&((((((a11==1)||(a15==1))||!(a28==1))&&(a28==1))&&(a3==14))&&!(a26==1)))&&(!(a25==1)&&(((a27==21)&&(!(a13==1)&&((((input==4)&&((a14==3)||(a14==4)))&&(a6==1))&&!(a9==1))))&&(a2==1))))){ + a14 = 3; + a16 = 0; + a25 = 1; + a23 = 0; + a9 = 0; + a3 = 12; + a27 = 20; + return 22; + } else if((((a20==1)&&(!(a9==1)&&(!(a26==1)&&((((a27==19)&&(input==1))&&(a29==1))&&(a14==7)))))&&((a17==1)||((((a3==13)&&((!(a2==1)&&(!(a17==1)&&(a7==1)))&&!(a1==1)))&&(a10==1))&&!(a25==1))))){ + a14 = 3; + a6 = 1; + a2 = 1; + a25 = 1; + a26 = 1; + a20 = 1; + a7 = 1; + a3 = 12; + return -1; + } else if(((!(a21==1)&&(((input==6)&&(((((!(a25==1)&&(a14==7))&&(a3==14))&&(a27==19))&&!(a26==1))||((a26==1)&&((((a14==3)&&(a25==1))&&(a3==12))&&(a27==20)))))&&(a6==1)))&&(!(a1==1)&&((a11==1)||(!(a21==1)&&(!(a6==1)||(!(a2==1)&&((a10==1)&&(a5==1))))))))){ + a26 = 1; + a27 = 19; + a12 = 1; + a23 = 0; + a25 = 1; + a3 = 12; + a2 = 1; + a19 = 0; + a14 = 3; + return -1; + } else if(((((a14==4)&&((a16==1)&&(((a19==1)&&(((input==5)&&(a25==1))&&(a19==1)))&&(a17==1))))&&(a10==1))&&((a26==1)&&((a27==19)&&(((a3==14)&&((a9==1)&&(!(a7==1)&&(a6==1))))&&!(a2==1)))))){ + a14 = 5; + a28 = 0; + a3 = 13; + a23 = 1; + a22 = 0; + return 22; + } else if(((!(a11==1)&&((a25==1)&&((!(a13==1)&&(((((a14==5)||((a14==3)||(a14==4)))&&(input==2))&&(a10==1))&&!(a2==1)))&&(a27==20))))&&((a3==12)&&(((a11==1)||((a5==1)&&(((a28==1)||(a21==1))&&!(a26==1))))&&(a29==1))))){ + a29 = 1; + a14 = 3; + a26 = 1; + a12 = 1; + a2 = 1; + a27 = 19; + return -1; + } else if(((((((((a14==6)||(a14==7))&&(input==6))&&(a6==1))&&!(a9==1))&&!(a2==1))&&!(a16==1))&&(!(a18==1)||((a26==1)&&(((a3==13)&&(!(a29==1)||(!(a25==1)&&(((a27==19)&&(a18==1))&&(a7==1)))))&&(a10==1)))))){ + a28 = 1; + a17 = 0; + a2 = 1; + a3 = 12; + a14 = 3; + a26 = 0; + a21 = 0; + return -1; + } else if(((((a1==1)||((a10==1)&&(a12==1)))&&(a29==1))&&((((a20==1)&&((a27==20)&&(!(a9==1)&&(!(a19==1)&&(((input==4)&&((((a26==1)&&((a14==7)&&(a3==14)))||(((a3==12)&&(a14==3))&&!(a26==1)))||(!(a26==1)&&((a3==12)&&(a14==4)))))&&!(a2==1))))))&&!(a21==1))&&!(a25==1)))){ + a8 = 1; + a26 = 0; + a23 = 1; + a2 = 1; + a21 = 1; + a27 = 19; + a14 = 4; + a3 = 13; + return 25; + } else if(((!(a26==1)&&((a9==1)||((a14==7)&&((((a5==1)&&!(a21==1))&&(a25==1))&&(a27==21)))))&&((a7==1)&&((!(a23==1)&&(((((input==6)&&(a3==12))&&!(a2==1))&&(a28==1))&&(a10==1)))&&!(a13==1))))){ + a22 = 0; + a14 = 6; + a18 = 0; + a17 = 1; + return 26; + } else if((((a10==1)&&(((a1==1)||((a21==1)||((((a25==1)&&(a6==1))&&!(a9==1))||(a17==1))))&&(a2==1)))&&(((a12==1)&&((a15==1)&&((a27==20)&&(((((a14==6)&&(a3==13))||((a3==13)&&(a14==7)))||((a14==3)&&(a3==14)))&&(input==2)))))&&!(a26==1)))){ + a16 = 0; + a26 = 1; + a27 = 19; + a7 = 1; + a3 = 12; + a14 = 3; + return -1; + } else if(((((a21==1)||((a10==1)&&((a25==1)&&(((a20==1)&&(!(a2==1)&&(!(a28==1)||(a29==1))))&&!(a13==1)))))&&(a29==1))&&((((a27==21)&&((((a14==5)||((a14==3)||(a14==4)))&&(input==5))&&(a26==1)))&&(a7==1))&&(a3==14)))){ + a2 = 1; + a14 = 7; + a19 = 1; + a26 = 0; + a7 = 0; + a27 = 19; + a0 = 1; + return 25; + } else if(((((a12==1)&&((a20==1)&&((a10==1)&&(input==1))))&&(a14==5))&&((a27==20)&&((!(a21==1)&&((((a15==1)&&((((a21==1)||(a6==1))&&!(a26==1))&&(a3==12)))&&!(a2==1))&&!(a25==1)))&&!(a16==1))))){ + a13 = 1; + a25 = 1; + a0 = 1; + a18 = 0; + a2 = 1; + return 26; + } else if((((a25==1)&&((((!(a20==1)&&((a17==1)&&(((a10==1)&&(a28==1))&&(a2==1))))&&!(a28==1))&&(a16==1))&&!(a26==1)))&&(((!(a28==1)&&((((a14==3)||(a14==4))&&(input==6))&&!(a28==1)))&&(a3==12))&&(a27==20)))){ + a22 = 0; + a28 = 0; + a14 = 6; + a27 = 19; + a2 = 0; + a4 = 0; + a26 = 1; + return 26; + } else if((((a10==1)&&((((a27==21)&&(a29==1))&&(a18==1))&&(a26==1)))&&((a25==1)&&((a3==14)&&((a28==1)&&(!(a23==1)&&((!(a16==1)&&((a7==1)&&(!(a2==1)&&((((a14==3)||(a14==4))||(a14==5))&&(input==6)))))&&!(a13==1)))))))){ + a3 = 13; + a7 = 0; + a26 = 0; + a9 = 1; + a27 = 20; + a14 = 3; + a2 = 1; + a15 = 0; + return 22; + } else if(((!(a23==1)&&(((a10==1)&&((((input==5)&&((((a3==12)&&(a14==6))||((a3==12)&&(a14==7)))||((a14==3)&&(a3==13))))&&!(a25==1))&&!(a17==1)))&&(a27==20)))&&(!(a26==1)&&((!(a21==1)&&((!(a2==1)&&((a28==1)||!(a15==1)))||!(a20==1)))||!(a28==1))))){ + a2 = 1; + a3 = 13; + a27 = 19; + a29 = 0; + a0 = 1; + a25 = 1; + a14 = 4; + a12 = 0; + return 24; + } else if((((a10==1)&&((a26==1)&&((((a7==1)||(a23==1))||!(a29==1))&&!(a2==1))))&&((a3==12)&&((a25==1)&&((!(a16==1)&&(((a20==1)&&(((input==6)&&(((a14==3)||(a14==4))||(a14==5)))&&(a7==1)))&&!(a11==1)))&&(a27==21)))))){ + if((a11==1)){ + a25 = 0; + a27 = 19; + a5 = 0; + a14 = 6; + a2 = 1; + a12 = 0; + a0 = 1; + a3 = 14; + }else{ + a27 = 19; + a2 = 1; + a9 = 1; + a14 = 5; + a8 = 1; + } + return -1; + } else if(((((!(a1==1)&&(!(a2==1)&&((a10==1)&&((((!(a26==1)&&((input==3)&&((a14==5)||(a14==6))))&&(a3==14))&&(a12==1))&&!(a21==1)))))&&(a12==1))&&(a28==1))&&(((!(a25==1)&&(a5==1))&&(a27==19))&&!(a1==1)))){ + a14 = 3; + a7 = 1; + a26 = 1; + a3 = 12; + a2 = 1; + a25 = 1; + a16 = 0; + return -1; + } else if(((!(a1==1)&&(!(a19==1)&&((a5==1)&&((a12==1)&&(a2==1)))))&&(!(a16==1)&&((!(a21==1)&&((((((((!(a25==1)&&(a14==7))&&(a3==14))&&(a27==20))&&!(a26==1))||(((a27==21)&&(((a14==3)&&(a25==1))&&(a3==12)))&&(a26==1)))||((a26==1)&&((((a14==4)&&(a25==1))&&(a3==12))&&(a27==21))))&&(input==1))&&(a10==1)))&&!(a17==1))))){ + a26 = 0; + a5 = 1; + a3 = 14; + a18 = 1; + a25 = 0; + a27 = 20; + a14 = 7; + a28 = 1; + return 24; + } return calculate_output4(input); + } + + int calculate_output4(int input) { + if((((((a5==1)&&((a5==1)&&((((a14==5)||((a14==3)||(a14==4)))&&(input==6))&&(a10==1))))&&(a6==1))&&!(a26==1))&&((a25==1)&&((!(a2==1)&&(!(a20==1)||(((a12==1)&&((a12==1)&&(a27==21)))&&(a15==1))))&&(a3==14))))){ + a0 = 1; + a2 = 1; + a24 = 0; + a14 = 7; + a23 = 1; + a26 = 1; + a25 = 0; + return 24; + } else if((((a10==1)&&((a12==1)&&((!(a2==1)&&(((a25==1)&&((a14==4)&&(((a27==19)&&((a26==1)&&(input==3)))&&(a29==1))))&&(a3==13)))&&!(a11==1))))&&(!(a28==1)||(!(a18==1)||((a7==1)&&(a28==1)))))){ + a12 = 1; + a2 = 1; + a27 = 20; + a19 = 0; + a6 = 1; + return 25; + } else if((((!(a9==1)&&(((a27==21)&&((a2==1)&&((a3==12)&&((a7==1)&&!(a26==1)))))&&!(a25==1)))&&(a10==1))&&((((a12==1)&&((a29==1)&&((((a14==6)||(a14==7))&&(input==4))&&(a12==1))))&&!(a9==1))&&!(a16==1)))){ + a5 = 1; + a23 = 0; + a25 = 1; + a3 = 13; + a26 = 1; + a14 = 4; + a27 = 20; + a29 = 1; + return 24; + } else if((((a10==1)&&((a20==1)&&(((a27==20)&&((a28==1)&&((((((a14==3)||(a14==4))&&(input==6))&&(a2==1))&&(a29==1))&&(a3==14))))&&!(a25==1))))&&(!(a16==1)&&((((a12==1)&&(a26==1))||!(a29==1))&&!(a13==1))))){ + a3 = 12; + a14 = 3; + a20 = 1; + a25 = 1; + a7 = 1; + a27 = 19; + a5 = 1; + return -1; + } else if((((a27==21)&&(((!(a9==1)&&(!(a2==1)&&((input==3)&&((a14==6)||(a14==7)))))&&(a10==1))&&(a5==1)))&&((((!(a12==1)||((((a1==1)||(a29==1))&&(a25==1))||!(a20==1)))&&(a3==13))&&(a5==1))&&(a26==1)))){ + a14 = 7; + a19 = 1; + a26 = 0; + a9 = 1; + a25 = 0; + a3 = 12; + a23 = 1; + return 24; + } else if(((!(a9==1)&&((((a15==1)&&((((a25==1)&&(a18==1))&&(a27==19))||(a9==1)))&&(a10==1))&&(a14==3)))&&((!(a2==1)&&(((!(a9==1)&&((input==1)&&!(a26==1)))&&(a29==1))&&(a3==14)))&&!(a17==1)))){ + a21 = 0; + a1 = 0; + a27 = 20; + a14 = 4; + a16 = 0; + a2 = 1; + return 24; + } else if(((((a13==1)||((a3==12)&&(!(a20==1)||(a20==1))))||(a13==1))&&((!(a1==1)&&(((((((((a14==5)||((a14==3)||(a14==4)))&&(input==4))&&(a25==1))&&(a26==1))&&!(a2==1))&&(a27==21))&&(a10==1))&&!(a13==1)))&&(a20==1)))){ + a25 = 0; + a14 = 6; + a3 = 14; + a26 = 0; + a4 = 1; + a27 = 20; + a19 = 1; + return -1; + } else if((((a3==13)&&((a26==1)&&(!(a25==1)&&(((((a12==1)&&(((input==1)&&((a14==7)||((a14==5)||(a14==6))))&&(a10==1)))&&(a7==1))&&(a2==1))&&!(a11==1)))))&&(((a23==1)||((!(a17==1)&&(a20==1))||(a17==1)))&&(a27==21)))){ + a28 = 1; + a25 = 1; + a15 = 1; + a3 = 14; + a27 = 20; + a9 = 0; + a14 = 7; + a2 = 0; + a26 = 0; + return 26; + } else if(((((((a29==1)&&(((a14==6)||(a14==7))&&(input==6)))&&(a10==1))&&(a27==20))&&(a26==1))&&((((((a17==1)||(!(a28==1)||((a25==1)&&((a15==1)&&(a29==1)))))&&(a2==1))||!(a6==1))&&(a3==14))||(a23==1)))){ + a23 = 0; + a9 = 0; + a14 = 3; + a3 = 12; + a27 = 19; + return -1; + } else if((((((a13==1)||((a20==1)&&(a10==1)))||!(a5==1))&&!(a19==1))&&((a5==1)&&(!(a2==1)&&((((((a6==1)&&(((((a3==12)&&(a14==6))||((a14==7)&&(a3==12)))||((a14==3)&&(a3==13)))&&(input==6)))&&(a27==19))&&!(a26==1))&&!(a25==1))&&!(a17==1)))))){ + a27 = 20; + a16 = 0; + a25 = 1; + a9 = 0; + a3 = 13; + a26 = 1; + a7 = 1; + a2 = 1; + a14 = 4; + return 22; + } else if(((((((a27==21)&&(!(a26==1)&&(!(a23==1)&&((input==5)&&(((a14==7)&&(a3==13))||((a14==3)&&(a3==14)))))))&&(a5==1))&&!(a1==1))&&(a28==1))&&(((!(a20==1)||((a25==1)&&((a5==1)&&(a2==1))))&&(a10==1))||(a16==1)))){ + a3 = 12; + a12 = 1; + a18 = 1; + a26 = 1; + a14 = 3; + a27 = 19; + a7 = 1; + return -1; + } else if(((((a12==1)&&((!(a1==1)&&((input==3)&&((a14==5)||(a14==6))))&&(a10==1)))&&(a25==1))&&(!(a23==1)&&((((a26==1)&&((a3==13)&&((((a18==1)||!(a12==1))&&!(a2==1))&&(a27==19))))&&!(a9==1))&&(a12==1))))){ + a9 = 0; + a14 = 6; + a2 = 1; + a5 = 1; + a28 = 1; + a25 = 0; + a3 = 12; + a27 = 20; + return 26; + } else if((((a12==1)&&((a3==14)&&(((a27==20)&&((a19==1)||(a29==1)))&&(a26==1))))&&(((!(a19==1)&&(!(a21==1)&&(((!(a2==1)&&(((a14==6)||(a14==7))&&(input==2)))&&!(a21==1))&&(a25==1))))&&(a10==1))&&(a15==1)))){ + a17 = 0; + a15 = 1; + a19 = 0; + a25 = 0; + a27 = 19; + a26 = 0; + a3 = 12; + a14 = 3; + return 26; + } else if((((a25==1)&&((((a10==1)&&((input==6)&&(a14==7)))&&(a27==21))&&(a6==1)))&&(!(a23==1)&&((((a9==1)||(((!(a26==1)&&((a29==1)&&(a3==14)))&&!(a1==1))&&(a2==1)))&&!(a1==1))&&!(a16==1))))){ + a18 = 1; + a14 = 6; + a20 = 1; + a6 = 1; + a3 = 13; + a27 = 20; + return 25; + } else if((((a10==1)&&((((((a27==19)&&(input==6))&&(a3==13))&&!(a17==1))&&(a14==3))&&(a25==1)))&&((a19==1)||((((a29==1)&&(!(a9==1)&&(!(a12==1)||((a26==1)&&(a18==1)))))&&!(a2==1))||(a19==1))))){ + a1 = 0; + a26 = 0; + a28 = 1; + a14 = 5; + a2 = 1; + a5 = 1; + return -1; + } else if(((((!(a23==1)&&((a10==1)&&((a28==1)&&(((a14==3)||(a14==4))&&(input==4)))))&&!(a1==1))&&!(a9==1))&&((a12==1)&&((((((a3==14)&&((a7==1)&&(a27==20)))||(a13==1))&&(a26==1))&&(a2==1))&&!(a25==1))))){ + a14 = 3; + a29 = 1; + a25 = 1; + a19 = 0; + a27 = 19; + a1 = 0; + a3 = 12; + return -1; + } else if(((((!(a19==1)&&((a10==1)&&((((((a14==5)||(a14==6))||(a14==7))&&(input==1))&&!(a21==1))&&(a29==1))))&&!(a11==1))&&(a7==1))&&(!(a29==1)||(((a3==14)&&((a26==1)&&(((a2==1)&&(a20==1))&&!(a25==1))))&&(a27==20))))){ + a3 = 12; + a9 = 0; + a25 = 1; + a27 = 19; + a14 = 3; + a16 = 0; + a1 = 0; + return -1; + } else if(((!(a26==1)&&((((a10==1)&&((a14==3)&&(!(a2==1)&&(((a27==21)&&(a7==1))&&(a18==1)))))&&!(a16==1))&&(a20==1)))&&((a6==1)&&(!(a21==1)&&((((a3==13)&&(input==5))&&(a25==1))&&!(a9==1)))))){ + if((a23==1)){ + a8 = 0; + a25 = 0; + a3 = 14; + a11 = 1; + a27 = 19; + a14 = 5; + a12 = 0; + a2 = 1; + }else{ + a14 = 4; + a6 = 0; + a16 = 1; + a26 = 1; + a27 = 19; + a17 = 1; + } + return 24; + } else if(((((!(a2==1)&&(!(a6==1)||((a28==1)&&(a3==13))))&&(a15==1))||!(a28==1))&&(((a20==1)&&(((a10==1)&&((a27==19)&&((a25==1)&&(((((a14==5)||(a14==6))||(a14==7))&&(input==3))&&(a18==1)))))&&!(a26==1)))&&(a18==1)))){ + a2 = 1; + a3 = 12; + a26 = 1; + a20 = 1; + a14 = 3; + a16 = 0; + a12 = 1; + return -1; + } else if(((((a10==1)&&(((a5==1)&&((a27==19)&&(((a26==1)&&((a12==1)&&(a28==1)))||!(a28==1))))||!(a7==1)))&&(a25==1))&&((((a3==12)&&((((a14==3)||(a14==4))&&(input==2))&&!(a21==1)))&&(a5==1))&&!(a2==1)))){ + a2 = 1; + a14 = 7; + a25 = 0; + a12 = 1; + a15 = 1; + a26 = 0; + a20 = 1; + a27 = 21; + return -1; + } else if((((!(a9==1)&&(!(a19==1)&&(!(a11==1)&&(((a20==1)&&(((((a26==1)&&((a3==14)&&(a14==6)))||(((a14==7)&&(a3==14))&&(a26==1)))||(!(a26==1)&&((a3==12)&&(a14==3))))&&(input==3)))&&(a15==1)))))&&(a27==19))&&(((((a9==1)||(a28==1))&&!(a2==1))&&!(a25==1))&&(a10==1)))){ + a3 = 12; + a1 = 0; + a25 = 1; + a2 = 1; + a12 = 1; + a11 = 0; + a27 = 20; + a14 = 7; + a26 = 0; + return 26; + } else if((((((a6==1)&&((a2==1)&&((((a28==1)&&(((input==4)&&(((a14==3)||(a14==4))||(a14==5)))&&(a6==1)))&&(a28==1))&&(a27==20))))&&!(a23==1))&&!(a26==1))&&(((((a25==1)&&(a28==1))&&(a15==1))&&(a10==1))&&(a3==13)))){ + a26 = 1; + a16 = 0; + a3 = 12; + a7 = 1; + a27 = 19; + a14 = 3; + return -1; + } else if((((!(a13==1)&&(((a26==1)&&((a10==1)&&(input==3)))&&(a27==21)))&&(a14==7))&&(((((!(a1==1)&&(!(a21==1)&&(!(a18==1)||(!(a2==1)&&(a18==1)))))&&(a20==1))&&!(a25==1))||!(a29==1))&&(a3==13)))){ + a0 = 1; + a14 = 4; + a21 = 1; + a7 = 0; + a3 = 14; + a27 = 20; + return 25; + } else if((((a26==1)&&(((((a27==20)&&((input==3)&&((a14==7)||((a14==5)||(a14==6)))))&&!(a25==1))&&(a10==1))&&(a2==1)))&&(!(a9==1)&&((!(a16==1)&&(((a3==14)&&(((a18==1)&&(a18==1))||!(a20==1)))&&(a20==1)))&&!(a23==1))))){ + a17 = 0; + a14 = 5; + a27 = 19; + a12 = 1; + a19 = 0; + a2 = 0; + a26 = 0; + a3 = 13; + return 26; + } else if(((!(a5==1)||((a3==12)&&(!(a2==1)&&((a10==1)&&((a11==1)||((a15==1)&&((a29==1)&&(a27==20))))))))&&((!(a9==1)&&((a28==1)&&((a14==5)&&(!(a25==1)&&((input==3)&&!(a26==1))))))&&!(a17==1)))){ + a26 = 1; + a9 = 1; + a14 = 4; + a25 = 1; + a2 = 1; + a27 = 19; + a0 = 0; + a15 = 0; + return 26; + } else if(((!(a18==1)||((!(a2==1)&&((((a27==19)&&(!(a12==1)||(a28==1)))||!(a6==1))&&(a10==1)))&&(a12==1)))&&(((((a6==1)&&(!(a25==1)&&(((a14==4)||(a14==5))&&(input==2))))&&!(a23==1))&&(a3==13))&&!(a26==1)))){ + a15 = 1; + a25 = 1; + a26 = 1; + a11 = 0; + a21 = 0; + a14 = 4; + a2 = 1; + return -1; + } else if(((!(a29==1)||((!(a2==1)&&((a1==1)||((a3==14)&&((!(a26==1)&&((a18==1)&&(a20==1)))&&!(a25==1)))))||!(a29==1)))&&((a27==20)&&((a10==1)&&((((input==3)&&((a14==6)||(a14==7)))&&(a18==1))&&!(a16==1)))))){ + a14 = 4; + a25 = 1; + a2 = 1; + a27 = 19; + a28 = 0; + a11 = 1; + a3 = 13; + a1 = 1; + return 26; + } else if((((a15==1)&&(!(a20==1)||((a10==1)&&((a23==1)||((a27==19)&&((a11==1)||((!(a25==1)&&(a12==1))&&!(a26==1))))))))&&(!(a2==1)&&(((a20==1)&&((input==2)&&((((a14==6)&&(a3==12))||((a3==12)&&(a14==7)))||((a3==13)&&(a14==3)))))&&(a18==1))))){ + a26 = 1; + a14 = 7; + a13 = 0; + a2 = 1; + a21 = 0; + a23 = 0; + a27 = 21; + a3 = 12; + return 24; + } else if(((((((((a14==4)||(a14==5))||(a14==6))&&(input==4))&&(a7==1))&&!(a1==1))&&!(a21==1))&&((a12==1)&&((!(a9==1)&&(((!(a25==1)&&(((a27==20)&&((a26==1)&&(a15==1)))&&(a10==1)))&&(a3==14))&&!(a2==1)))||(a16==1))))){ + if((a21==1)){ + a25 = 1; + a27 = 19; + a14 = 6; + a7 = 0; + a22 = 0; + a2 = 1; + }else{ + a25 = 1; + a3 = 13; + a27 = 19; + a22 = 1; + a2 = 1; + a14 = 5; + a13 = 1; + } + return -1; + } else if(((!(a17==1)&&(!(a25==1)&&((((a3==14)&&((a29==1)&&(((a14==3)||(a14==4))&&(input==2))))&&(a26==1))&&!(a17==1))))&&((a2==1)&&((((a23==1)||((a10==1)&&((a28==1)&&(a18==1))))||(a11==1))&&(a27==20))))){ + a14 = 7; + a7 = 1; + a3 = 13; + a27 = 19; + a2 = 0; + return 26; + } else if((((a5==1)&&((a14==7)&&((a25==1)&&(!(a26==1)&&(input==6)))))&&((a3==13)&&((((((!(a2==1)&&((a10==1)&&(!(a11==1)&&(a12==1))))&&(a27==21))&&(a20==1))||!(a18==1))||!(a18==1))||(a11==1))))){ + if((a16==1)){ + a27 = 19; + a26 = 1; + a14 = 3; + a25 = 0; + a0 = 0; + a28 = 0; + a2 = 1; + a4 = 1; + }else{ + a14 = 5; + a27 = 19; + a2 = 1; + a4 = 0; + a9 = 1; + a5 = 0; + } + return 22; + } else if(((((a27==20)&&(!(a2==1)&&(((a10==1)&&(((a14==6)||((a14==4)||(a14==5)))&&(input==2)))&&(a29==1))))&&!(a25==1))&&(!(a7==1)||(((a12==1)&&((a3==14)&&((((a26==1)&&(a28==1))&&(a7==1))&&(a12==1))))&&!(a17==1))))){ + a27 = 19; + a8 = 1; + a2 = 1; + a14 = 3; + a4 = 1; + a20 = 0; + a26 = 0; + return -1; + } else if((((a12==1)&&((a6==1)&&((!(a25==1)&&((a29==1)&&((!(a2==1)&&((((a14==6)||(a14==7))&&(input==4))&&(a3==13)))&&(a10==1))))&&(a18==1))))&&((((a27==19)&&((a12==1)&&(a26==1)))||(a19==1))&&!(a11==1)))){ + a14 = 3; + a25 = 1; + a13 = 0; + a5 = 1; + a21 = 0; + a2 = 1; + a27 = 20; + return 25; + } else if((((a14==4)&&((((a27==19)&&(input==5))&&(a3==14))&&(a6==1)))&&((a26==1)&&(!(a2==1)&&((!(a1==1)&&(((a19==1)||(((a13==1)||((a28==1)||(a1==1)))&&(a25==1)))&&!(a11==1)))&&(a10==1)))))){ + a27 = 21; + a14 = 3; + a25 = 0; + a2 = 1; + a26 = 0; + a3 = 12; + a9 = 0; + a16 = 0; + return 25; + } else if((((((input==2)&&(((!(a26==1)&&((a3==14)&&((a25==1)&&(a14==7))))||((a26==1)&&(((a14==3)&&!(a25==1))&&(a3==12))))||(((a3==12)&&(!(a25==1)&&(a14==4)))&&(a26==1))))&&(a27==19))&&!(a9==1))&&((!(a20==1)||(!(a2==1)&&((a17==1)||(!(a23==1)&&(!(a5==1)||((a11==1)||(a5==1)))))))&&(a10==1)))){ + a6 = 1; + a3 = 12; + a27 = 21; + a25 = 0; + a23 = 0; + a26 = 1; + a2 = 1; + a14 = 3; + return 25; + } else if((((a19==1)||(!(a18==1)||((a28==1)&&!(a16==1))))&&(!(a19==1)&&(((((((((a3==14)&&(!(a25==1)&&(!(a2==1)&&(a14==7))))&&(a27==21))&&(a10==1))&&!(a26==1))||((!(a10==1)&&(((a3==12)&&(((a14==3)&&(a2==1))&&(a25==1)))&&(a27==19)))&&(a26==1)))&&(input==5))&&!(a21==1))&&(a18==1))))){ + if((a25==1)){ + a25 = 0; + a5 = 0; + a3 = 14; + a27 = 20; + a26 = 0; + a18 = 0; + a28 = 0; + a2 = 0; + a10 = 1; + a14 = 3; + }else{ + a2 = 1; + a3 = 13; + a14 = 3; + a15 = 0; + a26 = 1; + a10 = 1; + a23 = 1; + a28 = 0; + a27 = 19; + a25 = 1; + } + return 22; + } else if((((((((a10==1)&&((a16==1)||((a29==1)&&!(a2==1))))||(a23==1))&&(a3==14))&&(a27==19))&&!(a16==1))&&(((!(a11==1)&&(((a25==1)&&((a14==3)&&(input==2)))&&!(a13==1)))&&!(a16==1))&&!(a26==1)))){ + a7 = 1; + a14 = 4; + a2 = 1; + a26 = 1; + a17 = 0; + a19 = 0; + a27 = 20; + a3 = 13; + return 22; + } else if(((((((a26==1)&&(((a27==20)&&(!(a23==1)&&((a3==13)&&((input==1)&&(a10==1)))))&&!(a11==1)))&&(a18==1))&&(a2==1))&&(a20==1))&&((a14==7)&&((((a15==1)&&(a29==1))&&!(a25==1))&&!(a19==1))))){ + a27 = 19; + a3 = 12; + a20 = 1; + a16 = 0; + a2 = 0; + a14 = 4; + a21 = 0; + return 22; + } else if((((a3==13)&&((a27==21)&&((((a15==1)&&!(a2==1))&&(a10==1))||!(a29==1))))&&((((!(a26==1)&&(((a12==1)&&(((input==2)&&(a25==1))&&!(a1==1)))&&(a14==3)))&&!(a17==1))&&(a7==1))&&(a5==1)))){ + a27 = 19; + a14 = 7; + a2 = 1; + a8 = 0; + a26 = 1; + a25 = 0; + a28 = 0; + return 22; + } else if((((!(a26==1)&&((a5==1)&&((!(a13==1)&&((a5==1)&&(a27==21)))&&!(a2==1))))&&(a7==1))&&((((a10==1)&&((((a15==1)&&((input==6)&&(((a14==4)||(a14==5))||(a14==6))))&&(a5==1))&&(a3==13)))&&!(a21==1))&&(a25==1)))){ + a21 = 1; + a2 = 1; + a3 = 12; + a14 = 6; + a26 = 1; + a27 = 19; + a6 = 0; + a11 = 1; + return 22; + } else if((((a2==1)&&((a26==1)&&(((((a7==1)&&!(a11==1))&&(a25==1))&&(a10==1))&&(a5==1))))&&((((((a3==12)&&(!(a17==1)&&((input==4)&&(((a14==4)||(a14==5))||(a14==6)))))&&!(a23==1))&&(a29==1))&&(a27==20))&&!(a23==1)))){ + a7 = 1; + a23 = 0; + a14 = 3; + a3 = 13; + a12 = 1; + return 22; + } else if((((!(a17==1)&&(((!(a25==1)&&((input==6)&&(((a14==7)&&(a3==12))||((a14==3)&&(a3==13)))))&&!(a19==1))&&!(a26==1)))&&(a27==21))&&(((((a6==1)&&((a10==1)&&(!(a2==1)&&(a12==1))))||(a23==1))||(a13==1))&&(a7==1)))){ + if((a23==1)){ + a28 = 0; + a3 = 14; + a25 = 1; + a18 = 0; + a14 = 4; + a2 = 1; + a23 = 1; + }else{ + a18 = 0; + a1 = 1; + a26 = 1; + a25 = 1; + a3 = 12; + a27 = 19; + a14 = 4; + a17 = 1; + } + return -1; + } else if((((a14==4)&&(!(a26==1)&&(!(a16==1)&&(!(a11==1)&&((a27==21)&&((a2==1)&&((a6==1)&&((a25==1)&&(((a3==12)&&(input==1))&&(a10==1))))))))))&&((((a11==1)||(a29==1))||!(a28==1))||(a23==1)))){ + a27 = 19; + a1 = 0; + a26 = 1; + a15 = 1; + a13 = 0; + a14 = 3; + return -1; + } else if((((a27==21)&&(!(a26==1)&&((a5==1)&&(!(a21==1)&&(!(a1==1)&&((a25==1)&&((((a14==4)||(a14==5))||(a14==6))&&(input==5))))))))&&((a2==1)&&((!(a12==1)||(((a10==1)&&((a15==1)||(a13==1)))&&(a3==14)))||!(a5==1))))){ + a21 = 0; + a14 = 3; + a27 = 20; + a18 = 1; + a11 = 0; + return 22; + } else if((((a13==1)||(((!(a20==1)||(((a19==1)||(a5==1))&&(a3==14)))||!(a12==1))&&(a27==20)))&&(!(a17==1)&&(!(a13==1)&&(((a26==1)&&((a14==5)&&((a25==1)&&((input==5)&&(a2==1)))))&&(a10==1)))))){ + a29 = 1; + a20 = 1; + a14 = 3; + a3 = 12; + a9 = 0; + a27 = 19; + return -1; + } else if((((!(a23==1)&&(!(a26==1)&&((a15==1)&&(((input==1)&&(((a14==3)||(a14==4))||(a14==5)))&&(a12==1)))))&&!(a19==1))&&((((((a1==1)||((a3==13)&&((a7==1)&&(a2==1))))&&(a27==20))&&(a10==1))||!(a18==1))&&(a25==1)))){ + a3 = 12; + a27 = 21; + a13 = 0; + a14 = 4; + a29 = 1; + a11 = 0; + return 24; + } else if((((a18==1)&&(!(a11==1)&&(!(a17==1)&&(((((a3==14)&&((a27==20)&&((a25==1)&&(input==2))))&&(a14==4))&&(a10==1))&&!(a17==1)))))&&((a11==1)||(!(a26==1)&&((a2==1)&&((a1==1)||(a20==1))))))){ + a26 = 1; + a14 = 5; + a28 = 1; + a27 = 21; + a7 = 1; + a16 = 0; + a25 = 0; + a3 = 13; + return 24; + } else if(((((((a27==21)&&(!(a9==1)&&((input==1)&&((((a3==13)&&(a14==6))||((a14==7)&&(a3==13)))||((a14==3)&&(a3==14))))))&&(a26==1))&&!(a13==1))&&(a29==1))&&(((a9==1)||(((((a28==1)&&(a10==1))&&(a2==1))&&(a25==1))&&(a12==1)))||(a11==1)))){ + a3 = 12; + a14 = 3; + a28 = 1; + a27 = 20; + a13 = 0; + a5 = 1; + a26 = 0; + return 25; + } else if((((a27==21)&&(!(a23==1)&&((((a7==1)&&(((input==5)&&(((a3==12)&&(a14==7))||((a3==13)&&(a14==3))))&&!(a2==1)))&&!(a25==1))&&!(a9==1))))&&(!(a26==1)&&(!(a16==1)&&((a10==1)&&(!(a16==1)&&((a7==1)||(a17==1)))))))){ + if((a1==1)){ + a26 = 1; + a3 = 12; + a17 = 1; + a5 = 0; + a2 = 1; + a14 = 4; + a25 = 1; + a27 = 19; + a18 = 0; + }else{ + a22 = 1; + a12 = 0; + a26 = 1; + a24 = 0; + a3 = 13; + a14 = 7; + } + return 26; + } else if((((!(a21==1)&&((a7==1)&&(a29==1)))||(a13==1))&&((a12==1)&&(((!(a26==1)&&((a10==1)&&((a3==12)&&(((((((a14==5)||(a14==6))||(a14==7))&&(input==1))&&(a27==20))&&!(a19==1))&&(a6==1)))))&&(a2==1))&&(a25==1))))){ + a14 = 3; + a15 = 1; + a21 = 0; + a27 = 19; + a26 = 1; + return -1; + } else if((((!(a11==1)&&((a2==1)&&(a5==1)))&&(a14==7))&&(!(a1==1)&&((!(a21==1)&&((a20==1)&&(!(a13==1)&&((!(a26==1)&&((a27==21)&&(((a25==1)&&(input==4))&&(a3==14))))&&(a10==1)))))&&!(a17==1))))){ + a14 = 6; + a9 = 0; + a7 = 1; + a27 = 20; + a3 = 13; + return 22; + } else if((((((a15==1)&&(a28==1))&&!(a11==1))&&(a26==1))&&(!(a25==1)&&(!(a21==1)&&(((a2==1)&&(!(a11==1)&&((!(a21==1)&&((((((a14==7)&&(a3==12))||((a14==3)&&(a3==13)))||((a14==4)&&(a3==13)))&&(input==5))&&(a27==21)))&&(a18==1))))&&(a10==1)))))){ + a3 = 13; + a14 = 4; + a9 = 0; + a19 = 0; + a18 = 1; + return 25; + } else if((((a14==6)&&((a27==20)&&((!(a26==1)&&((a3==13)&&((((input==6)&&(a25==1))&&!(a17==1))&&!(a2==1))))&&(a12==1))))&&(!(a15==1)||(((!(a15==1)||((a15==1)||!(a29==1)))&&(a10==1))&&(a5==1))))){ + a9 = 0; + a26 = 1; + a27 = 19; + a14 = 3; + a2 = 1; + a3 = 12; + a29 = 1; + a20 = 1; + return -1; + } else if((((a2==1)&&((a25==1)&&(input==3)))&&(((a14==4)&&(!(a20==1)&&(!(a29==1)&&((a3==14)&&((a27==21)&&((((!(a6==1)&&((a15==1)&&!(a18==1)))&&!(a20==1))&&!(a28==1))&&(a26==1)))))))&&(a10==1)))){ + a27 = 19; + a3 = 13; + a13 = 1; + a23 = 1; + a12 = 0; + return 25; + } else if(((!(a26==1)&&((a27==20)&&((((a2==1)&&(!(a13==1)&&(((input==5)&&((((a3==13)&&(a14==6))||((a3==13)&&(a14==7)))||((a14==3)&&(a3==14))))&&(a29==1))))&&!(a1==1))&&(a25==1))))&&((((a10==1)&&((a28==1)||!(a29==1)))&&!(a1==1))||!(a18==1)))){ + if((a20==1)){ + a9 = 0; + a20 = 1; + a14 = 5; + a26 = 1; + a2 = 0; + a3 = 13; + a15 = 1; + }else{ + a25 = 0; + a26 = 1; + a2 = 0; + a14 = 4; + a17 = 0; + a3 = 12; + a6 = 1; + a21 = 0; + } + return 24; + } else if((((a1==1)||(((((a16==1)||(a29==1))||!(a28==1))||(a13==1))&&(a26==1)))&&(((a7==1)&&(!(a2==1)&&(!(a25==1)&&(((((((a14==7)&&(a3==12))||((a3==13)&&(a14==3)))||((a14==4)&&(a3==13)))&&(input==4))&&(a28==1))&&(a27==20)))))&&(a10==1)))){ + if((a10==1)){ + a3 = 13; + a1 = 0; + a14 = 3; + a18 = 1; + a19 = 0; + }else{ + a3 = 12; + a14 = 5; + a6 = 1; + a27 = 21; + a26 = 0; + a2 = 1; + a21 = 0; + a20 = 1; + } + return 24; + } else if((((((a15==1)&&(!(a26==1)&&(((a14==6)||(a14==7))&&(input==2))))&&!(a25==1))&&!(a13==1))&&((a21==1)||((a10==1)&&((a12==1)&&((((((a20==1)||(a16==1))&&!(a19==1))&&(a27==21))&&(a3==13))&&!(a2==1))))))){ + if((a23==1)){ + a5 = 0; + a24 = 1; + a14 = 7; + a27 = 19; + a2 = 1; + a25 = 1; + a26 = 1; + a3 = 12; + a17 = 1; + }else{ + a2 = 1; + a15 = 0; + a14 = 3; + a26 = 1; + a7 = 0; + a3 = 14; + a17 = 1; + a27 = 19; + } + return 26; + } else if((((a12==1)&&((((((a27==20)&&(!(a13==1)&&((input==3)&&((a14==5)||(a14==6)))))&&(a12==1))&&(a7==1))&&!(a26==1))&&(a6==1)))&&((((((a10==1)&&(a6==1))&&!(a2==1))||!(a29==1))&&(a3==14))&&(a25==1)))){ + a14 = 6; + a27 = 21; + a3 = 12; + a2 = 1; + a18 = 1; + a20 = 1; + a9 = 0; + return 22; + } else if((((((a25==1)&&(!(a1==1)&&(((a7==1)&&(a2==1))&&(a10==1))))&&!(a23==1))&&(a3==13))&&(!(a11==1)&&(((a27==21)&&((a20==1)&&((((input==2)&&((a14==5)||((a14==3)||(a14==4))))&&!(a26==1))&&(a18==1))))&&!(a19==1))))){ + a1 = 0; + a19 = 0; + a15 = 1; + a14 = 3; + a27 = 20; + return 25; + } else if(((((((!(a26==1)&&((a7==1)&&((a18==1)&&((input==4)&&(((a3==13)&&(a14==7))||((a14==3)&&(a3==14)))))))&&!(a25==1))&&!(a1==1))&&!(a2==1))&&!(a21==1))&&((a10==1)&&((((a7==1)&&(a12==1))&&(a18==1))&&(a27==20))))){ + if((a13==1)){ + a26 = 1; + a25 = 1; + a4 = 1; + a2 = 1; + a27 = 19; + a14 = 4; + a3 = 14; + a22 = 1; + }else{ + a27 = 19; + a2 = 1; + a14 = 4; + a3 = 12; + a26 = 1; + a8 = 0; + a23 = 1; + a12 = 0; + } + return 22; + } else if((((a10==1)&&(((!(a11==1)&&(((((input==1)&&((a14==5)||((a14==3)||(a14==4))))&&(a27==20))&&(a7==1))&&(a25==1)))&&!(a17==1))&&(a26==1)))&&(!(a2==1)&&((((a3==13)&&((a28==1)&&(a20==1)))||(a21==1))||!(a12==1))))){ + a11 = 0; + a3 = 12; + a27 = 19; + a14 = 3; + a2 = 1; + a6 = 1; + return -1; + } else if(((((((a6==1)&&((a12==1)&&!(a2==1)))&&(a10==1))&&!(a23==1))&&(a25==1))&&((a3==14)&&(((!(a23==1)&&(!(a26==1)&&((((input==3)&&(a27==19))&&(a14==3))&&!(a9==1))))&&(a7==1))&&(a12==1))))){ + a14 = 4; + a19 = 0; + a11 = 0; + a23 = 0; + a2 = 1; + a3 = 12; + return -1; + } else if((((((((input==5)&&(((((a27==20)&&(((a14==7)&&!(a25==1))&&(a3==14)))&&!(a26==1))||(((((a14==3)&&(a25==1))&&(a3==12))&&(a27==21))&&(a26==1)))||((a26==1)&&(((a3==12)&&((a25==1)&&(a14==4)))&&(a27==21)))))&&(a10==1))&&(a2==1))&&!(a1==1))&&(a5==1))&&(((((a15==1)||!(a15==1))&&(a5==1))&&(a20==1))&&(a7==1)))){ + a3 = 12; + a1 = 0; + a17 = 0; + a9 = 0; + a25 = 1; + a27 = 19; + a26 = 1; + a14 = 3; + return -1; + } else if((((((input==3)&&((((a3==12)&&(a14==7))||((a14==3)&&(a3==13)))||((a3==13)&&(a14==4))))&&(a26==1))&&(a2==1))&&((a18==1)&&(!(a21==1)&&((!(a13==1)&&((a9==1)||((((a10==1)&&((a5==1)&&(a27==20)))||(a21==1))&&!(a25==1))))||(a21==1)))))){ + a23 = 0; + a3 = 12; + a27 = 19; + a25 = 1; + a14 = 3; + a11 = 0; + a9 = 0; + return -1; + } else if((((!(a20==1)||((((a10==1)&&(a15==1))&&(a27==19))&&(a3==12)))&&!(a1==1))&&((((!(a26==1)&&((a18==1)&&((((input==5)&&((a14==4)||(a14==5)))&&!(a25==1))&&!(a2==1))))&&(a28==1))&&!(a9==1))&&!(a23==1)))){ + a25 = 1; + a11 = 0; + a26 = 1; + a9 = 0; + a14 = 3; + a2 = 1; + return -1; + } else if((((a20==1)&&(!(a6==1)||(((a18==1)&&!(a26==1))||(a17==1))))&&(((!(a23==1)&&(((((a3==14)&&(((input==6)&&(((a14==5)||(a14==6))||(a14==7)))&&!(a1==1)))&&(a27==21))&&(a10==1))&&(a2==1)))&&(a18==1))&&!(a25==1)))){ + a3 = 13; + a27 = 20; + a14 = 7; + a25 = 1; + a26 = 1; + a23 = 0; + a16 = 0; + a28 = 1; + return 26; + } else if((((((!(a2==1)&&((a10==1)&&((a3==14)&&((input==1)&&((a14==5)||(a14==6))))))&&!(a19==1))&&(a29==1))&&(a27==19))&&((a17==1)||((((!(a25==1)&&(!(a29==1)||(a7==1)))&&!(a26==1))&&(a28==1))&&!(a9==1))))){ + a26 = 1; + a14 = 3; + a1 = 0; + a15 = 1; + a18 = 1; + a3 = 12; + return 22; + } else if((((a27==21)&&(((a2==1)&&((a29==1)&&(a7==1)))&&(a25==1)))&&(((!(a16==1)&&(!(a23==1)&&((a3==14)&&(!(a19==1)&&((((input==4)&&((a14==6)||((a14==4)||(a14==5))))&&!(a26==1))&&(a10==1))))))&&(a18==1))&&!(a9==1)))){ + a27 = 19; + a14 = 3; + a1 = 0; + a26 = 1; + a5 = 1; + a3 = 12; + a13 = 0; + return -1; + } else if((((a26==1)&&(((a7==1)&&(!(a12==1)||((((a5==1)||!(a18==1))&&(a27==20))||!(a5==1))))&&(a10==1)))&&((a25==1)&&(((a28==1)&&((a20==1)&&((((a14==4)&&(a3==14))||(((a3==13)&&(a14==7))||((a14==3)&&(a3==14))))&&(input==5))))&&(a2==1))))){ + a14 = 4; + a26 = 0; + a3 = 12; + a18 = 1; + a1 = 0; + a25 = 0; + return 25; + } else if((((a26==1)&&(a18==1))&&((a15==1)&&((a12==1)&&(((((a27==21)&&((a10==1)&&(!(a2==1)&&(((a3==12)&&(!(a25==1)&&((input==1)&&((a14==4)||(a14==5)))))&&(a29==1)))))&&!(a1==1))&&!(a23==1))&&!(a13==1)))))){ + a12 = 0; + a25 = 1; + a13 = 1; + a3 = 13; + a1 = 1; + a14 = 5; + return -1; + } else if(((!(a23==1)&&(((((input==1)&&(((((a3==14)&&(a14==6))&&(a26==1))||((a26==1)&&((a3==14)&&(a14==7))))||(!(a26==1)&&((a3==12)&&(a14==3)))))&&(a27==21))&&!(a2==1))&&(a28==1)))&&((!(a16==1)&&(((a25==1)&&((a28==1)&&((a18==1)&&(a10==1))))&&!(a21==1)))||!(a18==1)))){ + if((a19==1)){ + a2 = 1; + a25 = 0; + a4 = 0; + a9 = 1; + a27 = 19; + a26 = 1; + a3 = 12; + a29 = 0; + a14 = 5; + }else{ + a11 = 1; + a14 = 7; + a9 = 1; + a26 = 1; + a0 = 1; + a3 = 13; + a25 = 0; + } + return 24; + } else if(((((a7==1)&&(!(a9==1)&&((((a14==3)||(a14==4))&&(input==6))&&(a10==1))))&&(a12==1))&&(((((a2==1)&&(((a28==1)&&(!(a25==1)&&((a6==1)&&!(a23==1))))&&!(a26==1)))&&(a27==21))&&(a20==1))&&(a3==12)))){ + a16 = 0; + a26 = 1; + a27 = 20; + a15 = 1; + a14 = 4; + a25 = 1; + a3 = 13; + return 26; + } else if(((((a7==1)&&((a7==1)&&(!(a13==1)&&((input==6)&&!(a25==1)))))&&(a26==1))&&((((((a3==12)&&(!(a23==1)&&((a10==1)&&((a18==1)&&(a12==1)))))&&(a27==20))&&!(a2==1))&&(a14==4))||(a11==1)))){ + a26 = 0; + a6 = 1; + a14 = 3; + a3 = 14; + a7 = 1; + a25 = 1; + a9 = 0; + a2 = 1; + return 25; + } else if(((!(a12==1)||(((a10==1)&&((a12==1)&&(a25==1)))&&!(a1==1)))&&((a20==1)&&(!(a23==1)&&((((a27==21)&&(!(a2==1)&&(((a26==1)&&((input==2)&&((a14==5)||((a14==3)||(a14==4)))))&&(a7==1))))&&(a3==13))&&!(a11==1)))))){ + a7 = 0; + a25 = 0; + a11 = 1; + a26 = 0; + a27 = 19; + a22 = 1; + a3 = 14; + a14 = 5; + a2 = 1; + return -1; + } else if((((!(a1==1)&&(!(a16==1)&&(((a5==1)&&(((a20==1)&&(((a14==5)||(a14==6))&&(input==6)))&&(a3==13)))&&!(a19==1))))&&(a15==1))&&(((a27==20)&&((!(a25==1)&&(!(a2==1)&&(a5==1)))&&(a10==1)))&&!(a26==1)))){ + a27 = 19; + a25 = 1; + a26 = 1; + a5 = 0; + a14 = 7; + a19 = 1; + a2 = 1; + a3 = 14; + a24 = 1; + return -1; + } else if((((a14==5)&&((a27==21)&&((a7==1)&&((a3==14)&&((a18==1)&&(a28==1))))))&&((!(a26==1)&&(((((!(a11==1)&&((input==1)&&!(a25==1)))&&(a5==1))&&(a10==1))&&!(a23==1))&&!(a2==1)))&&!(a1==1)))){ + if((a22==1)){ + a25 = 1; + a1 = 1; + a27 = 19; + a26 = 1; + a11 = 1; + a14 = 4; + a28 = 0; + }else{ + a21 = 1; + a0 = 1; + a27 = 20; + a2 = 1; + a14 = 6; + } + return 26; + } else if((((a29==1)&&((a10==1)&&(!(a19==1)&&(!(a25==1)&&(((a26==1)&&((a27==20)&&((input==6)&&((((a14==6)&&(a3==13))||((a3==13)&&(a14==7)))||((a14==3)&&(a3==14))))))&&!(a16==1))))))&&(!(a11==1)&&((((a12==1)&&!(a11==1))&&(a7==1))&&!(a2==1))))){ + if((a14==7)){ + a27 = 19; + a28 = 0; + a0 = 0; + a3 = 13; + a14 = 3; + a2 = 1; + a1 = 1; + }else{ + a18 = 0; + a28 = 0; + a22 = 1; + a14 = 4; + a3 = 13; + } + return 25; + } else if(((((a6==1)&&((((a27==20)&&((a10==1)&&(a6==1)))&&(a28==1))&&!(a11==1)))&&(a12==1))&&((!(a26==1)&&(!(a16==1)&&((a20==1)&&((a3==13)&&((a2==1)&&((input==5)&&((a14==5)||((a14==3)||(a14==4)))))))))&&(a25==1)))){ + a21 = 0; + a5 = 1; + a27 = 21; + a14 = 3; + a9 = 0; + return 22; + } else if(((!(a23==1)&&(!(a17==1)&&(!(a19==1)&&((((input==3)&&(((a3==12)&&(a14==7))||((a3==13)&&(a14==3))))&&!(a26==1))&&(a6==1)))))&&((a1==1)||((a7==1)&&(!(a25==1)&&(((a27==21)&&((a10==1)&&(a20==1)))&&!(a2==1))))))){ + if((a9==1)){ + a14 = 7; + a2 = 1; + a4 = 0; + a3 = 12; + a27 = 19; + a6 = 0; + a23 = 1; + }else{ + a2 = 1; + a5 = 0; + a14 = 4; + a25 = 1; + a3 = 14; + a23 = 1; + a18 = 0; + a27 = 19; + } + return 26; + } else if((((((((a3==14)&&((!(a13==1)&&(a29==1))&&(a28==1)))&&(a7==1))||(a19==1))||!(a18==1))&&!(a2==1))&&((a26==1)&&(((a27==20)&&((a10==1)&&((a25==1)&&(((a14==6)||(a14==7))&&(input==6)))))&&!(a19==1))))){ + a26 = 0; + a13 = 0; + a21 = 0; + a14 = 5; + a27 = 19; + a25 = 0; + a3 = 12; + return 26; + } else if(((!(a17==1)&&((((input==4)&&((a14==3)||(a14==4)))&&(a6==1))&&!(a23==1)))&&((!(a25==1)&&((a23==1)||(!(a26==1)&&((((!(a2==1)&&((a28==1)&&!(a23==1)))&&(a10==1))&&(a27==19))&&(a3==14)))))||!(a28==1)))){ + a7 = 1; + a26 = 1; + a19 = 0; + a3 = 13; + a14 = 4; + a2 = 1; + a27 = 21; + a29 = 1; + return 22; + } else if((((a10==1)&&(!(a26==1)&&(!(a21==1)&&((((!(a11==1)&&((a2==1)&&(((input==6)&&(a14==3))&&!(a25==1))))&&(a5==1))&&!(a17==1))&&(a6==1)))))&&((a27==20)&&(((a20==1)&&!(a13==1))&&(a3==14))))){ + a9 = 0; + a23 = 0; + a25 = 1; + a16 = 0; + a26 = 1; + a3 = 13; + return 24; + } else if((((!(a19==1)&&((a14==4)&&((a10==1)&&((((!(a17==1)&&(((a25==1)&&(input==3))&&(a26==1)))&&(a3==14))&&(a27==19))&&!(a13==1)))))&&(a12==1))&&((!(a16==1)&&(!(a2==1)&&(a12==1)))||(a1==1)))){ + a23 = 0; + a27 = 20; + a3 = 12; + a14 = 7; + a26 = 0; + a2 = 1; + a16 = 0; + a6 = 1; + return 22; + } else if(((((((a27==20)&&(((a20==1)&&(!(a19==1)&&(((((a14==4)||(a14==5))||(a14==6))&&(input==6))&&(a6==1))))&&!(a11==1)))&&!(a1==1))&&(a26==1))&&(a10==1))&&(((((a2==1)&&(a7==1))&&!(a16==1))&&(a3==12))&&(a25==1)))){ + a21 = 0; + a27 = 19; + a23 = 0; + a14 = 3; + a13 = 0; + return -1; + } else if(((!(a21==1)&&((!(a17==1)&&((a10==1)&&(((!(a2==1)&&((a12==1)&&((a27==19)&&(((((a3==12)&&(a14==6))||((a3==12)&&(a14==7)))||((a14==3)&&(a3==13)))&&(input==1)))))&&(a18==1))&&!(a11==1))))&&!(a25==1)))&&(((a11==1)||(a18==1))&&!(a26==1)))){ + a2 = 1; + a29 = 1; + a25 = 1; + a15 = 1; + a14 = 4; + a3 = 14; + a27 = 20; + return 26; + } else if((((a21==1)&&((a26==1)&&(!(a25==1)&&(!(a18==1)&&((input==1)&&(((a3==13)&&(a14==4))||(((a14==7)&&(a3==12))||((a3==13)&&(a14==3)))))))))&&((a10==1)&&((((((a27==20)&&(!(a2==1)&&(a6==1)))&&!(a7==1))&&!(a29==1))&&!(a12==1))&&(a21==1))))){ + a16 = 1; + a3 = 12; + a14 = 5; + a2 = 1; + a15 = 0; + return 25; + } else if(((((((a28==1)&&((a5==1)&&(((a3==13)&&(!(a25==1)&&((input==5)&&((a14==6)||(a14==7)))))&&(a15==1))))&&(a5==1))&&(a20==1))&&(a27==21))&&(!(a23==1)&&((!(a26==1)&&((a18==1)&&(a10==1)))&&(a2==1))))){ + a25 = 1; + a1 = 0; + a26 = 1; + a13 = 0; + a27 = 20; + a21 = 0; + a14 = 3; + return 25; + } else if(((!(a19==1)&&(((input==3)&&((((a27==21)&&((a3==12)&&((a25==1)&&(a14==4))))&&(a26==1))||((!(a26==1)&&((a27==20)&&(((a14==7)&&!(a25==1))&&(a3==14))))||((a26==1)&&((a27==21)&&((a3==12)&&((a25==1)&&(a14==3))))))))&&(a2==1)))&&((a23==1)||((a10==1)&&((a12==1)&&((!(a7==1)||((a13==1)||(a5==1)))&&(a28==1))))))){ + a26 = 1; + a27 = 21; + a23 = 0; + a1 = 0; + a14 = 4; + a25 = 1; + a19 = 0; + a3 = 12; + return 22; + } else if((((!(a19==1)&&((a15==1)&&((a25==1)&&((a12==1)&&((((a10==1)&&((((a14==5)||((a14==3)||(a14==4)))&&(input==5))&&!(a2==1)))&&(a26==1))&&!(a1==1))))))&&(a12==1))&&((((a7==1)||(a21==1))&&(a3==12))&&(a27==21)))){ + a19 = 1; + a14 = 4; + a25 = 0; + a3 = 13; + a26 = 0; + a24 = 1; + return 26; + } else if(((((((!(a25==1)&&((a10==1)&&(((a2==1)&&(((a14==3)||(a14==4))&&(input==3)))&&(a15==1))))&&!(a13==1))&&(a15==1))&&(a26==1))&&(a27==20))&&(!(a11==1)&&((((a20==1)&&(a3==14))&&(a20==1))&&!(a17==1))))){ + if((a8==1)){ + a29 = 1; + a21 = 0; + a14 = 6; + a2 = 0; + a3 = 12; + }else{ + a3 = 13; + a15 = 1; + a23 = 0; + a2 = 0; + a27 = 19; + a14 = 4; + a16 = 0; + } + return 26; + } else if(((!(a19==1)&&(((a7==1)&&((a14==4)&&(!(a21==1)&&((a26==1)&&(!(a25==1)&&((input==6)&&(a10==1)))))))&&(a27==21)))&&(((a5==1)&&((a9==1)||(!(a9==1)&&((a18==1)&&(a3==13)))))&&!(a2==1)))){ + if((a29==1)){ + a2 = 1; + a3 = 12; + a14 = 3; + a23 = 1; + a27 = 19; + a26 = 0; + a13 = 1; + a21 = 1; + }else{ + a2 = 1; + a14 = 6; + a4 = 1; + a20 = 0; + a27 = 19; + } + return 24; + } else if(((((((a15==1)&&((a10==1)&&(!(a2==1)&&(input==3))))&&(a27==20))&&(a14==4))&&!(a9==1))&&(((a11==1)||((a3==13)&&((!(a17==1)&&((!(a21==1)&&(a15==1))&&(a20==1)))&&!(a25==1))))&&!(a26==1)))){ + if((a9==1)){ + a3 = 12; + a2 = 1; + a4 = 0; + a27 = 19; + a14 = 7; + a25 = 1; + a8 = 1; + }else{ + a3 = 12; + a8 = 0; + a1 = 1; + a26 = 1; + a2 = 1; + a22 = 1; + a14 = 5; + a27 = 21; + } + return -1; + } else if((((a12==1)&&((!(a25==1)&&(!(a13==1)&&((a10==1)&&(((input==2)&&((a14==4)||(a14==5)))&&(a27==20)))))&&(a6==1)))&&(((((a3==14)&&((a17==1)||(!(a26==1)&&(a20==1))))&&(a15==1))&&(a6==1))&&!(a2==1)))){ + a9 = 1; + a7 = 0; + a14 = 4; + a2 = 1; + a26 = 1; + a8 = 1; + a27 = 19; + a25 = 1; + return 25; + } else if(((((!(a17==1)&&((a12==1)&&((a14==5)&&(!(a1==1)&&((((a26==1)&&(input==3))&&(a2==1))&&(a28==1))))))&&(a10==1))&&!(a19==1))&&((a25==1)&&((!(a6==1)||((a18==1)&&(a3==13)))&&(a27==21))))){ + a21 = 0; + a12 = 1; + a5 = 1; + return 26; + } else if(((((a10==1)&&(!(a19==1)&&((a27==21)&&((a26==1)&&(((a15==1)&&(((input==6)&&((a14==7)||((a14==5)||(a14==6))))&&(a18==1)))&&(a25==1))))))&&(a7==1))&&((((a3==12)&&((a13==1)||(a20==1)))||(a13==1))&&(a2==1)))){ + a18 = 1; + a7 = 1; + a26 = 0; + a17 = 0; + a27 = 20; + a14 = 3; + return 22; + } else if((((((((a29==1)&&((a29==1)&&(((a14==4)||(a14==5))&&(input==2))))&&(a10==1))&&!(a2==1))&&(a25==1))&&(a3==14))&&((a27==20)&&(((((a23==1)||(!(a28==1)||(a20==1)))&&(a26==1))||!(a18==1))&&!(a1==1))))){ + a7 = 1; + a27 = 19; + a3 = 12; + a5 = 1; + a2 = 1; + a20 = 1; + a14 = 3; + return -1; + } else if((((!(a23==1)&&((a20==1)&&(((((a14==6)||(a14==7))&&(input==1))&&(a6==1))&&!(a16==1))))&&(a25==1))&&((a26==1)&&(((!(a2==1)&&(((a27==20)&&((a28==1)&&(a20==1)))||!(a12==1)))&&(a3==12))&&(a10==1))))){ + a17 = 0; + a21 = 0; + a14 = 3; + a2 = 1; + a27 = 19; + return -1; + } else if(((!(a25==1)&&(!(a19==1)&&((((a12==1)&&!(a1==1))&&!(a1==1))&&(a3==14))))&&((a27==21)&&((a2==1)&&((a15==1)&&((a10==1)&&(!(a1==1)&&(((((a14==6)||(a14==7))&&(input==1))&&(a7==1))&&(a26==1))))))))){ + a16 = 0; + a12 = 1; + a6 = 1; + a25 = 1; + a3 = 13; + a14 = 4; + a27 = 20; + return 26; + } else if(((!(a2==1)&&(((a26==1)&&(!(a13==1)&&((a3==13)&&((!(a11==1)&&((((a14==6)||(a14==7))&&(input==5))&&(a20==1)))&&(a12==1)))))&&(a27==21)))&&((a10==1)&&((a25==1)&&((a15==1)&&((a12==1)&&(a18==1))))))){ + a1 = 1; + a13 = 1; + a27 = 19; + a2 = 1; + a14 = 4; + a8 = 0; + a3 = 14; + return -1; + } else if(((!(a9==1)&&(((a15==1)&&((a10==1)&&((((input==5)&&(((a14==3)||(a14==4))||(a14==5)))&&(a3==13))&&!(a2==1))))&&(a26==1)))&&((a12==1)&&(!(a7==1)||((a18==1)&&((a25==1)&&(((a12==1)||!(a20==1))&&(a27==20)))))))){ + a12 = 1; + a26 = 0; + a3 = 14; + a11 = 0; + a14 = 7; + a27 = 21; + a2 = 1; + a6 = 1; + return 26; + } else if((((a10==1)&&((a27==21)&&(((a11==1)||((a14==7)&&(((a19==1)||(!(a29==1)||((a5==1)||!(a7==1))))&&!(a17==1))))||(a21==1))))&&(!(a2==1)&&((a3==12)&&((!(a26==1)&&(input==1))&&(a25==1)))))){ + if((a17==1)){ + a8 = 1; + a14 = 5; + a3 = 14; + a27 = 19; + a4 = 0; + a0 = 0; + a2 = 1; + }else{ + a26 = 1; + a15 = 0; + a2 = 1; + a3 = 14; + a24 = 0; + a27 = 19; + a29 = 0; + } + return 25; + } else if((((!(a2==1)&&((((!(a16==1)&&(a12==1))||(a17==1))&&(a10==1))&&(a6==1)))&&(a27==19))&&(((a26==1)&&(!(a23==1)&&(((a3==13)&&((a5==1)&&((a14==3)&&(input==2))))&&(a5==1))))&&(a25==1)))){ + a26 = 0; + a19 = 0; + a27 = 20; + a2 = 1; + a14 = 6; + a3 = 14; + a25 = 0; + a13 = 0; + return 22; + } else if(((((a14==7)&&(!(a6==1)||((a2==1)&&(((a18==1)&&!(a21==1))&&!(a1==1)))))&&(a29==1))&&((!(a9==1)&&(((a3==12)&&((((a25==1)&&(input==6))&&(a10==1))&&(a26==1)))&&(a27==20)))&&!(a16==1)))){ + a3 = 14; + a16 = 0; + a12 = 1; + a9 = 0; + a14 = 5; + return 25; + } else if(((((!(a5==1)||((a7==1)&&(a3==12)))&&(a28==1))&&(a2==1))&&((a10==1)&&((a15==1)&&((a29==1)&&((a27==20)&&(((!(a25==1)&&(!(a26==1)&&((((a14==3)||(a14==4))||(a14==5))&&(input==3))))&&!(a17==1))&&!(a9==1)))))))){ + if((a17==1)){ + a16 = 0; + a26 = 1; + a18 = 1; + a14 = 5; + a2 = 0; + a6 = 1; + }else{ + a5 = 1; + a26 = 1; + a20 = 1; + a14 = 4; + a6 = 1; + a3 = 14; + a25 = 1; + } + return 25; + } else if((((a27==20)&&(((a26==1)&&(!(a25==1)&&(!(a19==1)&&((((a14==3)||(a14==4))&&(input==1))&&(a28==1)))))&&(a18==1)))&&((a2==1)&&(((((!(a20==1)||(a12==1))&&(a3==14))&&!(a19==1))&&(a12==1))&&(a10==1))))){ + a27 = 19; + a9 = 0; + a15 = 1; + a14 = 6; + a2 = 0; + a3 = 12; + a23 = 0; + return 25; + } else if((((a17==1)&&((a9==1)&&(((a3==14)&&((a27==19)&&(a18==1)))&&(a25==1))))&&(!(a20==1)&&(((a9==1)&&((a16==1)&&(((((a14==4)&&(input==1))&&(a10==1))&&(a26==1))&&!(a2==1))))&&(a21==1))))){ + a18 = 0; + a16 = 1; + a2 = 1; + a14 = 6; + a8 = 1; + return 24; + } else if((((a10==1)&&((a27==20)&&(!(a13==1)&&(!(a13==1)&&((a12==1)||(a23==1))))))&&(!(a9==1)&&(((((!(a26==1)&&(((input==1)&&((a14==6)||(a14==7)))&&(a3==13)))&&(a2==1))&&!(a25==1))&&(a28==1))&&(a7==1))))){ + a9 = 0; + a12 = 1; + a3 = 14; + a26 = 1; + a25 = 1; + a18 = 1; + a14 = 5; + return 26; + } else if((((a10==1)&&((a9==1)||(((a9==1)||(a7==1))&&(a3==12))))&&(!(a26==1)&&((a27==20)&&(((((a2==1)&&(!(a1==1)&&((!(a25==1)&&(input==2))&&(a5==1))))&&!(a17==1))&&(a15==1))&&(a14==6)))))){ + a14 = 5; + a3 = 14; + a26 = 1; + a21 = 0; + a25 = 1; + a20 = 1; + a6 = 1; + return 25; + } else if(((((a12==1)&&((a25==1)&&((!(a2==1)&&((a6==1)&&((a20==1)&&((a26==1)&&(((a14==5)||((a14==3)||(a14==4)))&&(input==4))))))&&(a27==21))))&&!(a11==1))&&(((a10==1)&&(!(a19==1)&&((a7==1)||!(a18==1))))&&(a3==14)))){ + a2 = 1; + a19 = 1; + a3 = 12; + a20 = 0; + a14 = 5; + a25 = 0; + return 24; + } else if((((a5==1)&&(((!(a20==1)||((a26==1)&&((a27==19)&&(((a5==1)&&(a10==1))&&(a3==13)))))||!(a18==1))||!(a7==1)))&&((a12==1)&&((!(a19==1)&&(!(a2==1)&&(((a14==5)||((a14==3)||(a14==4)))&&(input==1))))&&!(a25==1))))){ + a21 = 0; + a25 = 1; + a2 = 1; + a15 = 1; + a14 = 3; + a18 = 1; + a3 = 12; + return -1; + } else if((((a2==1)&&(((a3==14)&&(((!(a18==1)||(a5==1))||(a16==1))&&!(a25==1)))&&(a27==20)))&&((((a26==1)&&(((!(a21==1)&&((input==5)&&((a14==3)||(a14==4))))&&!(a13==1))&&!(a19==1)))&&!(a23==1))&&(a10==1)))){ + a11 = 0; + a2 = 0; + a21 = 0; + a19 = 0; + a27 = 19; + a14 = 5; + return 22; + } else if(((!(a21==1)&&((a23==1)||(((((a29==1)||!(a29==1))&&(a27==21))&&(a18==1))&&(a5==1))))&&((a5==1)&&((a3==12)&&((((((input==6)&&((a14==6)||((a14==4)||(a14==5))))&&!(a25==1))&&(a26==1))&&(a10==1))&&(a2==1)))))){ + a13 = 0; + a18 = 1; + a27 = 19; + a25 = 1; + a14 = 3; + a19 = 0; + return -1; + } else if((((!(a28==1)||((a12==1)&&((((a10==1)&&(!(a17==1)&&(((a5==1)&&(a2==1))&&!(a11==1))))&&(a3==12))&&(a27==20))))||(a23==1))&&(!(a26==1)&&((((input==4)&&(((a14==3)||(a14==4))||(a14==5)))&&!(a25==1))&&!(a23==1))))){ + a27 = 19; + a25 = 1; + a17 = 0; + a15 = 1; + a14 = 3; + a26 = 1; + a11 = 0; + return -1; + } else if((((!(a19==1)&&((!(a23==1)&&((a15==1)&&((((input==6)&&(((a3==13)&&(a14==4))||(((a3==12)&&(a14==7))||((a14==3)&&(a3==13)))))&&!(a21==1))&&!(a26==1))))&&(a10==1)))&&(a25==1))&&(!(a23==1)&&(((!(a2==1)&&(a6==1))||!(a12==1))&&(a27==19))))){ + if((a8==1)){ + a3 = 13; + a14 = 7; + a25 = 0; + a15 = 1; + a13 = 0; + a7 = 1; + }else{ + a14 = 7; + a27 = 20; + a26 = 1; + a2 = 1; + a3 = 12; + a17 = 0; + a21 = 0; + a13 = 0; + } + return -1; + } else if((((a18==1)&&(!(a16==1)&&((a28==1)&&((a10==1)&&((a14==7)&&((!(a25==1)&&((input==2)&&(a26==1)))&&(a3==13)))))))&&(((a5==1)&&((((a27==21)&&(a29==1))&&!(a2==1))&&!(a19==1)))&&(a28==1)))){ + if((a9==1)){ + a24 = 1; + a2 = 1; + a9 = 1; + a14 = 3; + a27 = 19; + }else{ + a26 = 0; + a27 = 19; + a25 = 1; + a14 = 3; + a2 = 1; + a16 = 1; + a3 = 14; + a0 = 1; + a17 = 1; + } + return 26; + } else if((((a26==1)&&(!(a2==1)&&((a27==20)&&(!(a21==1)&&(((a10==1)&&((a9==1)||(a18==1)))&&(a15==1))))))&&(((!(a25==1)&&((a18==1)&&(((((a3==12)&&(a14==7))||((a14==3)&&(a3==13)))||((a14==4)&&(a3==13)))&&(input==6))))&&!(a13==1))&&(a18==1)))){ + a11 = 0; + a14 = 3; + a27 = 19; + a2 = 1; + a6 = 1; + a25 = 1; + a1 = 0; + a3 = 12; + return -1; + } else if((((a10==1)&&((((a25==1)&&((((a2==1)&&(((input==1)&&((a14==6)||(a14==7)))&&!(a17==1)))&&!(a13==1))&&(a6==1)))&&(a7==1))&&!(a13==1)))&&((a27==20)&&((((a5==1)&&(a6==1))&&(a3==14))&&(a26==1))))){ + a6 = 1; + a26 = 0; + a28 = 1; + a19 = 0; + a14 = 6; + a25 = 0; + return 22; + } else if((((a10==1)&&((a3==14)&&(((a12==1)&&((((((a6==1)&&(a12==1))||(a16==1))&&!(a1==1))&&(a25==1))&&!(a21==1)))&&(a20==1))))&&(((((input==3)&&((a14==6)||((a14==4)||(a14==5))))&&(a2==1))&&!(a26==1))&&(a27==21)))){ + a27 = 20; + a26 = 1; + a18 = 1; + a29 = 1; + a28 = 1; + a3 = 13; + a14 = 4; + return 24; + } else if(((!(a15==1)&&(!(a25==1)&&((a27==20)&&((a19==1)&&(!(a18==1)&&(a7==1))))))&&(!(a2==1)&&((a10==1)&&(((!(a28==1)&&((a21==1)&&(((((a14==7)&&(a3==12))||((a3==13)&&(a14==3)))||((a3==13)&&(a14==4)))&&(input==6))))&&(a26==1))&&(a11==1)))))){ + a14 = 5; + a25 = 1; + a27 = 19; + a1 = 1; + a3 = 12; + a17 = 1; + a8 = 1; + a2 = 1; + return 25; + } else if(((!(a9==1)&&((((a2==1)&&((!(a26==1)&&(((((a14==7)&&(a3==13))||((a3==14)&&(a14==3)))&&(input==1))&&(a20==1)))&&(a6==1)))&&(a10==1))&&(a27==21)))&&(((a29==1)&&(!(a18==1)||((a6==1)&&(a25==1))))&&(a5==1)))){ + a26 = 1; + a6 = 1; + a18 = 1; + a17 = 0; + a3 = 13; + a14 = 4; + a27 = 20; + return 26; + } else if((((!(a2==1)&&((a3==13)&&(((!(a15==1)||(!(a20==1)||(a5==1)))&&!(a9==1))&&!(a1==1))))&&(a10==1))&&((!(a11==1)&&((a26==1)&&(!(a11==1)&&((a27==19)&&((input==5)&&((a14==5)||(a14==6)))))))&&(a25==1)))){ + a28 = 1; + a1 = 0; + a27 = 20; + a7 = 1; + a2 = 1; + a14 = 3; + return 22; + } else if(((((a2==1)&&(!(a26==1)&&((a3==13)&&((a12==1)||(a21==1)))))&&(a27==20))&&(!(a23==1)&&((a15==1)&&(((a15==1)&&((a7==1)&&((((input==2)&&(((a14==3)||(a14==4))||(a14==5)))&&(a25==1))&&(a10==1))))&&(a29==1)))))){ + a14 = 3; + a7 = 1; + a26 = 1; + a27 = 19; + a3 = 12; + a13 = 0; + a23 = 0; + return -1; + } else if((((!(a1==1)&&((a23==1)||((a3==14)&&((a18==1)&&(a6==1)))))&&!(a16==1))&&((((((a27==21)&&(!(a26==1)&&((a10==1)&&(!(a25==1)&&(input==6)))))&&(a14==5))&&!(a2==1))&&!(a16==1))&&!(a13==1)))){ + if((a0==1)){ + a14 = 4; + a26 = 1; + a18 = 0; + a11 = 1; + a4 = 1; + a25 = 1; + a2 = 1; + }else{ + a27 = 19; + a3 = 13; + a4 = 1; + a22 = 1; + a14 = 3; + a25 = 1; + a2 = 1; + a28 = 0; + } + return 26; + } else if(((((a29==1)&&((a3==13)&&((a2==1)&&((input==5)&&((a14==5)||(a14==6))))))&&(a29==1))&&((((a10==1)&&(!(a7==1)||(((a1==1)||(!(a21==1)&&((a20==1)&&(a6==1))))&&(a26==1))))&&(a25==1))&&(a27==20)))){ + a3 = 14; + a6 = 1; + a26 = 0; + a14 = 7; + a28 = 1; + a9 = 0; + return 22; + } else if((((((a3==12)&&(!(a25==1)&&((a2==1)&&((((a20==1)||!(a12==1))&&!(a17==1))&&!(a17==1)))))||!(a7==1))&&(a26==1))&&(((a27==21)&&((((input==4)&&(((a14==4)||(a14==5))||(a14==6)))&&!(a17==1))&&!(a1==1)))&&(a10==1)))){ + a1 = 0; + a3 = 13; + a25 = 1; + a27 = 20; + a13 = 0; + a14 = 4; + a9 = 0; + return 22; + } else if(((!(a2==1)&&((a26==1)&&((a15==1)&&!(a1==1))))&&((a10==1)&&((a3==12)&&(((a6==1)&&(((a5==1)&&(((((input==4)&&(((a14==5)||(a14==6))||(a14==7)))&&!(a25==1))&&!(a13==1))&&(a20==1)))&&(a12==1)))&&(a27==19)))))){ + a5 = 1; + a12 = 1; + a21 = 0; + a14 = 4; + a25 = 1; + a26 = 0; + a2 = 1; + a27 = 20; + return 25; + } else if(((!(a16==1)&&((!(a26==1)&&(((!(a25==1)&&((a20==1)&&((a10==1)&&(input==6))))&&(a27==21))&&(a14==3)))&&(a3==14)))&&((a12==1)&&(!(a5==1)||((((a6==1)&&!(a16==1))&&!(a11==1))&&!(a2==1)))))){ + a14 = 5; + a6 = 0; + a26 = 1; + a22 = 1; + a27 = 19; + a3 = 13; + a16 = 1; + return 22; + } else if(((((((a6==1)&&((input==5)&&((a14==5)||(a14==6))))&&!(a13==1))&&(a12==1))&&(a3==12))&&((!(a2==1)&&(!(a25==1)&&((((((a10==1)&&(a12==1))&&!(a13==1))&&(a29==1))&&(a12==1))&&(a27==21))))&&!(a26==1)))){ + if((a20==1)){ + a14 = 5; + a18 = 0; + a5 = 0; + a6 = 0; + a3 = 13; + a2 = 1; + a27 = 19; + a26 = 1; + }else{ + a8 = 1; + a27 = 19; + a2 = 1; + a25 = 1; + a16 = 1; + a12 = 0; + a14 = 4; + } + return -1; + } else if(((((((a15==1)&&(((a11==1)||(a12==1))||(a19==1)))||!(a6==1))&&(a10==1))&&(a3==13))&&(((a2==1)&&(!(a26==1)&&((a15==1)&&(!(a17==1)&&(!(a25==1)&&(((a14==5)||((a14==3)||(a14==4)))&&(input==3)))))))&&(a27==21)))){ + a26 = 1; + a14 = 5; + a25 = 1; + a3 = 14; + a5 = 1; + return 24; + } else if(((!(a5==1)||((a9==1)||((a2==1)&&(!(a1==1)&&((a21==1)||(a29==1))))))&&(!(a26==1)&&(((a10==1)&&(!(a25==1)&&(((a3==14)&&(!(a1==1)&&(((a14==3)||(a14==4))&&(input==2))))&&!(a13==1))))&&(a27==21))))){ + a13 = 0; + a3 = 13; + a14 = 7; + a27 = 20; + a5 = 1; + a1 = 0; + return 22; + } else if((((((((a9==1)||(a15==1))&&(a18==1))&&(a18==1))&&(a3==14))&&!(a25==1))&&(((((((((input==5)&&(((a14==5)||(a14==6))||(a14==7)))&&!(a26==1))&&(a27==21))&&!(a1==1))&&(a2==1))&&(a5==1))&&(a10==1))&&!(a19==1)))){ + a26 = 1; + a6 = 1; + a5 = 1; + a14 = 3; + a3 = 12; + return 24; + } else if(((!(a9==1)&&((!(a21==1)&&((((a3==12)&&((((((a14==5)||(a14==6))&&(input==2))&&(a27==21))&&!(a25==1))&&(a10==1)))&&!(a2==1))&&(a5==1)))&&!(a21==1)))&&((!(a26==1)&&((a7==1)||(a9==1)))&&!(a21==1)))){ + a25 = 1; + a14 = 4; + a27 = 19; + a3 = 13; + a5 = 0; + a26 = 1; + a29 = 0; + a4 = 1; + return 26; + } else if((((((a26==1)&&((a10==1)&&(((a3==13)&&(((a14==7)&&(input==5))&&(a25==1)))&&(a29==1))))&&(a6==1))&&(a28==1))&&(((a12==1)&&((((a7==1)&&!(a2==1))&&(a27==19))||(a16==1)))&&!(a9==1)))){ + a3 = 12; + a14 = 3; + a2 = 1; + a6 = 1; + a1 = 0; + a25 = 0; + a20 = 1; + return -1; + } else if((((a25==1)&&((a5==1)&&((!(a23==1)&&(!(a1==1)&&((a2==1)&&((a20==1)&&(((input==5)&&(a3==12))&&(a14==4))))))&&!(a26==1))))&&((a27==21)&&((((a6==1)&&(a10==1))||!(a12==1))||(a13==1))))){ + a6 = 1; + a5 = 1; + a14 = 3; + a27 = 19; + a26 = 1; + return -1; + } else if((((a27==21)&&(((a20==1)&&((a10==1)&&((a6==1)||(a17==1))))&&!(a25==1)))&&((((a26==1)&&((a5==1)&&(((a3==12)&&(!(a17==1)&&((input==5)&&((a14==4)||(a14==5)))))&&(a15==1))))&&!(a2==1))&&(a7==1)))){ + a14 = 7; + a11 = 1; + a26 = 0; + a2 = 1; + a3 = 14; + a29 = 0; + a23 = 1; + a27 = 19; + return 26; + } else if(((((a29==1)&&(((((a10==1)&&((a27==20)&&(input==6)))&&(a3==14))&&(a14==6))&&!(a25==1)))&&!(a13==1))&&(((((a2==1)&&(!(a23==1)&&(!(a18==1)||(a29==1))))&&!(a26==1))||!(a12==1))&&(a28==1)))){ + a26 = 1; + a25 = 1; + a1 = 0; + a21 = 0; + a5 = 1; + return 25; + } else if(((((((a23==1)||(!(a21==1)&&((a14==5)&&(((a12==1)||(a1==1))||(a13==1)))))&&!(a25==1))&&(a12==1))&&!(a13==1))&&((a27==20)&&((a10==1)&&(!(a26==1)&&((a3==13)&&((input==4)&&(a2==1)))))))){ + a26 = 1; + a12 = 1; + a25 = 1; + a1 = 0; + a3 = 14; + a11 = 0; + return 26; + } else if(((!(a23==1)&&(((a27==20)&&(!(a16==1)&&(((((a3==14)&&(a14==3))||(((a3==13)&&(a14==6))||((a3==13)&&(a14==7))))&&(input==1))&&!(a25==1))))&&(a26==1)))&&(!(a1==1)&&((a1==1)||((((a17==1)||((a18==1)&&(a10==1)))&&!(a2==1))&&!(a1==1)))))){ + a11 = 1; + a8 = 0; + a14 = 7; + a3 = 13; + a24 = 0; + a2 = 1; + return 24; + } else if((((a3==14)&&(!(a2==1)&&((!(a1==1)&&(!(a25==1)&&((input==5)&&(((a14==4)||(a14==5))||(a14==6)))))&&!(a9==1))))&&((((!(a29==1)||((a26==1)&&((a10==1)&&((a20==1)&&(a27==20)))))||!(a15==1))&&(a15==1))&&(a29==1)))){ + a15 = 0; + a2 = 1; + a5 = 0; + a4 = 0; + a3 = 12; + a27 = 19; + a14 = 4; + return -1; + } else if((((!(a26==1)&&(!(a2==1)&&((((((a15==1)&&(a7==1))||!(a5==1))||!(a28==1))&&(a25==1))&&(a10==1))))&&!(a9==1))&&(!(a13==1)&&((((((a14==5)||((a14==3)||(a14==4)))&&(input==4))&&(a27==21))&&!(a16==1))&&(a3==14))))){ + a23 = 1; + a14 = 5; + a25 = 0; + a11 = 1; + a0 = 0; + return -1; + } else if(((((!(a19==1)&&(!(a2==1)&&(a28==1)))&&(a25==1))&&(a10==1))&&(!(a26==1)&&(((((((((((a3==12)&&(a14==6))||((a14==7)&&(a3==12)))||((a14==3)&&(a3==13)))&&(input==3))&&(a7==1))&&(a18==1))&&(a7==1))&&(a15==1))&&(a12==1))&&(a27==20))))){ + a3 = 14; + a15 = 1; + a26 = 1; + a11 = 0; + a2 = 1; + a14 = 7; + a1 = 0; + return 25; + } else if(((((a3==13)&&((a6==1)&&!(a26==1)))&&(a10==1))&&(((a29==1)&&((!(a23==1)&&(((a14==3)&&(((((a25==1)&&(input==4))&&!(a11==1))&&(a29==1))&&(a27==21)))&&!(a2==1)))&&(a6==1)))&&!(a1==1)))){ + a2 = 1; + a6 = 0; + a14 = 7; + a25 = 0; + a1 = 1; + return 25; + } else if((((a14==3)&&((((a3==13)&&((a25==1)&&(!(a1==1)&&(!(a21==1)&&(((a10==1)&&(input==6))&&(a12==1))))))&&(a29==1))&&(a27==20)))&&(((((a26==1)&&(a6==1))&&(a2==1))&&!(a19==1))&&(a20==1)))){ + a3 = 14; + a15 = 1; + a28 = 1; + a14 = 7; + a29 = 1; + return 24; + } else if(((((a26==1)&&(!(a9==1)&&((a28==1)&&(((input==1)&&(a14==4))&&!(a25==1)))))&&!(a11==1))&&((a16==1)||(!(a2==1)&&(((a3==13)&&(((a27==21)&&((a12==1)||!(a5==1)))&&(a10==1)))&&!(a23==1)))))){ + a3 = 12; + a24 = 1; + a13 = 1; + a14 = 3; + a27 = 20; + a4 = 1; + return -1; + } else if((((!(a26==1)&&(((!(a2==1)&&((a3==14)&&((((a14==6)||(a14==7))&&(input==4))&&!(a19==1))))&&!(a1==1))&&!(a25==1)))&&!(a16==1))&&(!(a6==1)||(((((a12==1)||!(a5==1))||(a1==1))&&(a27==20))&&(a10==1))))){ + a14 = 3; + a25 = 1; + a27 = 19; + a29 = 0; + a3 = 12; + a0 = 0; + a4 = 1; + return 24; + } else if(((((!(a2==1)&&((input==2)&&((a14==6)||((a14==4)||(a14==5)))))&&(a27==19))&&!(a17==1))&&(!(a17==1)&&((a25==1)&&(!(a13==1)&&((((!(a20==1)||((!(a9==1)&&(a5==1))&&!(a26==1)))||(a16==1))&&(a3==12))&&(a10==1))))))){ + a27 = 20; + a2 = 1; + a14 = 5; + a3 = 14; + a26 = 1; + a12 = 1; + a15 = 1; + a11 = 0; + return 26; + } else if((((a27==21)&&((a20==1)&&((a3==13)&&((!(a26==1)&&((((a2==1)&&(a29==1))||(a19==1))&&(a28==1)))||!(a7==1)))))&&((a18==1)&&((a10==1)&&((((input==3)&&(a25==1))&&(a20==1))&&(a14==6)))))){ + a11 = 0; + a29 = 1; + a19 = 0; + return 25; + } else if(((((!(a25==1)&&((((a14==6)&&((a27==19)&&((a12==1)&&((input==6)&&!(a2==1)))))&&(a3==13))&&(a18==1)))&&(a10==1))&&!(a13==1))&&((!(a26==1)&&(((a15==1)&&!(a16==1))&&!(a19==1)))&&(a6==1)))){ + a14 = 7; + a16 = 0; + a7 = 1; + a28 = 1; + return 24; + } else if(((((((!(a19==1)&&((((a3==14)&&(!(a1==1)&&((((a14==6)||(a14==7))&&(input==5))&&(a10==1))))&&(a27==20))&&!(a26==1)))&&!(a2==1))&&!(a25==1))&&!(a13==1))&&(a18==1))&&(!(a20==1)||((a15==1)&&(a29==1))))){ + if((a5==1)){ + a27 = 19; + a14 = 3; + a1 = 1; + a28 = 0; + a2 = 1; + a8 = 0; + a3 = 13; + }else{ + a3 = 12; + a1 = 1; + a2 = 1; + a14 = 6; + a27 = 21; + a13 = 1; + a20 = 0; + } + return -1; + } else if((((((!(a18==1)||(!(a11==1)&&(!(a7==1)||(!(a12==1)||((a10==1)&&(a7==1))))))&&(a2==1))&&(a27==20))&&(a15==1))&&(((a14==6)&&((!(a25==1)&&((a3==14)&&(input==2)))&&!(a26==1)))&&!(a13==1)))){ + a16 = 0; + a25 = 1; + a27 = 19; + a7 = 1; + a3 = 12; + a14 = 3; + a19 = 0; + a26 = 1; + return -1; + } else if((((((!(a26==1)&&((!(a20==1)||(a5==1))&&!(a1==1)))||(a1==1))&&(a10==1))&&(a25==1))&&(!(a21==1)&&((a3==13)&&((!(a16==1)&&((((input==1)&&(a27==21))&&(a14==6))&&(a2==1)))&&!(a1==1)))))){ + a7 = 1; + a14 = 4; + a16 = 0; + a9 = 0; + a27 = 20; + a26 = 1; + return 26; + } else if(((((((a10==1)&&(((a20==1)&&(!(a25==1)&&(((a14==5)||((a14==3)||(a14==4)))&&(input==5))))&&(a28==1)))&&(a26==1))&&!(a23==1))&&(a27==19))&&((a21==1)||(!(a2==1)&&(((a12==1)&&((a20==1)&&(a29==1)))&&(a3==14)))))){ + a27 = 21; + a2 = 1; + a18 = 1; + a26 = 0; + a7 = 1; + a14 = 4; + return -1; + } else if((((!(a16==1)&&(!(a20==1)||(!(a26==1)&&((a28==1)&&((a20==1)&&((a12==1)&&(a15==1)))))))&&(a27==21))&&((a25==1)&&((a10==1)&&(!(a9==1)&&((a2==1)&&(((((a14==5)||(a14==6))||(a14==7))&&(input==3))&&(a3==12)))))))){ + a5 = 1; + a26 = 1; + a14 = 3; + a3 = 13; + a27 = 20; + a13 = 0; + a28 = 1; + return 22; + } else if((((a29==1)&&((!(a16==1)&&((a29==1)&&((((a14==3)||(a14==4))&&(input==5))&&!(a25==1))))&&(a12==1)))&&(((((a29==1)&&((((a10==1)&&(a5==1))||!(a6==1))&&(a3==14)))&&!(a26==1))&&(a27==19))&&!(a2==1)))){ + a27 = 21; + a3 = 12; + a14 = 3; + a2 = 1; + a21 = 0; + a26 = 1; + a17 = 0; + return 24; + } else if((((a27==21)&&((a14==6)&&(!(a19==1)&&((a7==1)&&((!(a26==1)&&((((a10==1)&&(input==1))&&!(a1==1))&&(a6==1)))&&(a5==1))))))&&((!(a25==1)&&(((a6==1)&&!(a2==1))||(a1==1)))&&(a3==14)))){ + if((a9==1)){ + a5 = 0; + a3 = 12; + a14 = 4; + a17 = 1; + a16 = 1; + a2 = 1; + }else{ + a27 = 19; + a0 = 1; + a5 = 0; + a8 = 1; + a3 = 13; + a2 = 1; + a25 = 1; + } + return 25; + } else if((((((a3==13)&&((a27==20)&&(((a6==1)&&(a5==1))&&(a25==1))))&&!(a2==1))&&(a10==1))&&(((a5==1)&&(!(a13==1)&&(((((((a14==3)||(a14==4))||(a14==5))&&(input==4))&&(a26==1))&&!(a13==1))&&(a7==1))))&&(a7==1)))){ + a23 = 0; + a14 = 3; + a2 = 1; + a26 = 0; + a3 = 14; + a9 = 0; + return 22; + } else if(((((a21==1)||(!(a13==1)&&(!(a26==1)&&((a27==20)&&(a28==1)))))||(a23==1))&&(!(a13==1)&&(((a25==1)&&(((((!(a2==1)&&(input==2))&&(a10==1))&&!(a9==1))&&(a14==6))&&(a3==13)))&&!(a9==1))))){ + a3 = 14; + a6 = 1; + a5 = 1; + a20 = 1; + a2 = 1; + a14 = 4; + return 22; + } else if(((((!(a2==1)&&(((a3==12)&&(a6==1))&&!(a25==1)))||!(a28==1))||(a23==1))&&((a5==1)&&((a27==21)&&(((((!(a13==1)&&(((a14==3)||(a14==4))&&(input==6)))&&!(a26==1))&&!(a13==1))&&!(a23==1))&&(a10==1)))))){ + if((a28==1)){ + a3 = 13; + a26 = 1; + a0 = 1; + a20 = 0; + a6 = 0; + a2 = 1; + a27 = 20; + a14 = 4; + }else{ + a4 = 1; + a23 = 1; + a21 = 1; + a27 = 20; + a26 = 1; + a14 = 6; + } + return 25; + } else if((((a7==1)&&((a3==14)&&((a2==1)&&(((a20==1)&&((a26==1)&&((a7==1)&&((a10==1)&&(((a14==6)||(a14==7))&&(input==6))))))&&!(a23==1)))))&&(((a27==21)&&((!(a29==1)||(a29==1))&&!(a25==1)))&&!(a11==1)))){ + a14 = 6; + a6 = 1; + a25 = 1; + a27 = 20; + a1 = 0; + a26 = 0; + return 22; + } else if((((a27==19)&&(!(a12==1)||((((a18==1)&&(a20==1))&&!(a23==1))&&!(a25==1))))&&(((!(a26==1)&&(((a10==1)&&(((((a14==5)||(a14==6))&&(input==6))&&!(a11==1))&&(a3==14)))&&!(a19==1)))&&!(a2==1))&&!(a9==1)))){ + a2 = 1; + a3 = 12; + a15 = 1; + a26 = 1; + a19 = 0; + a25 = 1; + a14 = 3; + a21 = 0; + return -1; + } else if(((((a10==1)&&((!(a25==1)&&(!(a2==1)&&((((a14==4)||(a14==5))&&(input==3))&&!(a16==1))))&&(a15==1)))&&(a3==13))&&((((a6==1)&&((a7==1)&&((a11==1)||((a6==1)&&!(a19==1)))))&&(a27==19))&&!(a26==1)))){ + a11 = 0; + a5 = 1; + a29 = 1; + a27 = 20; + a2 = 1; + a3 = 12; + a26 = 1; + a25 = 1; + a14 = 7; + return 26; + } else if(((((a10==1)&&((a13==1)&&((a13==1)&&((a2==1)&&(a29==1)))))&&(a27==20))&&(((((a19==1)&&((a25==1)&&((a3==12)&&((a21==1)&&((input==3)&&((a14==3)||(a14==4)))))))&&(a17==1))&&(a19==1))&&!(a26==1)))){ + a14 = 4; + a17 = 1; + a29 = 0; + a8 = 1; + return -1; + } else if(((!(a1==1)&&((!(a9==1)&&((a21==1)||((a6==1)&&!(a23==1))))&&(a26==1)))&&((a10==1)&&((!(a19==1)&&(((!(a2==1)&&((input==5)&&((((a14==6)&&(a3==13))||((a14==7)&&(a3==13)))||((a3==14)&&(a14==3)))))&&(a27==20))&&(a29==1)))&&!(a25==1))))){ + a14 = 3; + a24 = 1; + a4 = 1; + a6 = 0; + a26 = 0; + a3 = 14; + return -1; + } else if(((!(a11==1)&&((a27==20)&&(((((a28==1)&&((input==5)&&(a10==1)))&&!(a2==1))&&(a14==6))&&(a25==1))))&&((a23==1)||((a9==1)||(!(a1==1)&&(!(a26==1)&&((a15==1)&&((a3==13)&&(a5==1))))))))){ + a3 = 14; + a1 = 0; + a2 = 1; + a9 = 0; + a20 = 1; + a14 = 4; + return 24; + } else if(((((!(a6==1)||(((a10==1)&&(!(a25==1)&&((a20==1)&&(a27==20))))&&!(a11==1)))&&(a12==1))||(a13==1))&&((!(a21==1)&&(((a2==1)&&((((a14==4)&&(a3==13))||(((a14==7)&&(a3==12))||((a3==13)&&(a14==3))))&&(input==5)))&&!(a26==1)))&&(a6==1)))){ + a3 = 13; + a21 = 0; + a14 = 4; + a20 = 1; + a1 = 0; + return 24; + } else if(((!(a26==1)&&((a3==12)&&(((a7==1)&&((a12==1)&&((((a14==4)||(a14==5))&&(input==1))&&!(a11==1))))&&(a12==1))))&&(((a11==1)||((a27==19)&&(!(a2==1)&&((!(a17==1)&&(a18==1))&&(a10==1)))))&&!(a25==1)))){ + a26 = 1; + a27 = 20; + a29 = 1; + a12 = 1; + a16 = 0; + a14 = 7; + return 24; + } else if(((((((a2==1)&&((a3==12)&&(((a14==3)||(a14==4))&&(input==5))))&&(a20==1))&&(a25==1))&&!(a13==1))&&(((((!(a5==1)||(((a10==1)&&(a5==1))&&!(a26==1)))&&(a27==20))||!(a29==1))||(a11==1))||(a21==1)))){ + a27 = 21; + a26 = 1; + a19 = 0; + a14 = 3; + a7 = 1; + a3 = 14; + return 25; + } else if(((((((a2==1)&&((a6==1)&&((a15==1)&&((input==3)&&(a27==20)))))&&!(a1==1))&&!(a16==1))&&(a14==3))&&(((!(a11==1)&&((((a3==13)&&(a28==1))&&(a26==1))&&(a25==1)))&&(a12==1))&&(a10==1)))){ + a9 = 0; + a17 = 0; + a29 = 1; + a3 = 12; + a27 = 19; + return -1; + } else if(((!(a2==1)&&(((((((((a14==7)&&(a3==12))||((a14==3)&&(a3==13)))||((a3==13)&&(a14==4)))&&(input==3))&&(a11==1))&&(a17==1))&&(a23==1))&&!(a25==1)))&&((a26==1)&&((((!(a28==1)&&((a18==1)&&!(a28==1)))&&(a10==1))&&!(a6==1))&&(a27==20))))){ + a13 = 1; + a27 = 19; + a2 = 1; + a8 = 0; + a14 = 6; + a7 = 0; + a25 = 1; + a26 = 0; + a3 = 12; + return 26; + } else if((((a29==1)&&(!(a9==1)&&((((((input==6)&&(a27==19))&&!(a2==1))&&!(a21==1))&&(a7==1))&&(a14==4))))&&((a18==1)&&((a10==1)&&(((((a3==14)&&(a7==1))&&(a26==1))&&(a25==1))&&!(a23==1)))))){ + a3 = 12; + a19 = 0; + a26 = 0; + a11 = 0; + a20 = 1; + a27 = 20; + a2 = 1; + return 25; + } else if((((a16==1)||((!(a18==1)||((a10==1)&&((((a7==1)&&(a25==1))&&(a27==20))&&!(a21==1))))&&(a15==1)))&&(((a3==13)&&(((a18==1)&&(!(a26==1)&&(((a14==4)||(a14==5))&&(input==3))))&&!(a2==1)))&&(a15==1)))){ + a16 = 0; + a26 = 1; + a13 = 0; + a2 = 1; + a18 = 1; + a27 = 19; + a14 = 3; + a3 = 12; + return -1; + } else if((((a12==1)&&(((a27==21)&&((a25==1)&&(a6==1)))&&!(a21==1)))&&((a10==1)&&(!(a13==1)&&((((a7==1)&&(((((((a14==6)&&(a3==14))&&(a26==1))||((a26==1)&&((a3==14)&&(a14==7))))||(!(a26==1)&&((a3==12)&&(a14==3))))&&(input==5))&&(a28==1)))&&!(a2==1))&&(a12==1)))))){ + a14 = 5; + a11 = 1; + a26 = 0; + a3 = 14; + a27 = 19; + a6 = 0; + a2 = 1; + a13 = 1; + a25 = 0; + return -1; + } else if((((a6==1)&&((a27==20)&&(((!(a19==1)&&((a29==1)&&(((input==5)&&(a10==1))&&(a3==14))))&&!(a19==1))&&(a2==1))))&&(!(a29==1)||((a15==1)&&(!(a26==1)&&((!(a25==1)&&(a28==1))&&(a14==3))))))){ + a18 = 1; + a29 = 1; + a25 = 1; + a26 = 1; + a14 = 6; + return 25; + } else if(((((a3==14)&&(((a27==20)&&(!(a12==1)||(((a20==1)||!(a7==1))&&(a25==1))))||(a1==1)))&&(a7==1))&&(!(a2==1)&&(((a10==1)&&(((((a14==4)||(a14==5))&&(input==1))&&!(a9==1))&&(a7==1)))&&(a26==1))))){ + a20 = 1; + a15 = 1; + a1 = 0; + a14 = 5; + return 22; + } else if((((!(a28==1)&&((a16==1)&&(((((a27==19)&&(input==4))&&(a14==4))&&(a9==1))&&(a3==14))))&&(a10==1))&&(!(a18==1)&&((a25==1)&&((a1==1)&&((a9==1)&&(((a26==1)&&(a6==1))&&!(a2==1)))))))){ + a6 = 0; + a2 = 1; + a19 = 1; + a26 = 0; + a8 = 0; + return 22; + } else if(((((((a27==20)&&(!(a2==1)&&((input==6)&&((a14==5)||((a14==3)||(a14==4))))))&&(a5==1))&&(a10==1))&&(a25==1))&&((((((a16==1)||(((a17==1)||(a29==1))&&!(a19==1)))&&!(a9==1))&&!(a26==1))||(a11==1))&&(a3==12)))){ + a26 = 1; + a5 = 1; + a11 = 0; + a27 = 19; + a1 = 0; + a14 = 3; + a2 = 1; + return -1; + } else if((((a6==1)&&(((a27==20)&&(((a7==1)&&((a5==1)&&(!(a2==1)&&((((a14==4)||(a14==5))&&(input==5))&&!(a26==1)))))&&(a10==1)))&&(a3==13)))&&((a13==1)||(!(a21==1)&&((!(a7==1)||(a15==1))&&(a25==1)))))){ + a12 = 1; + a14 = 3; + a28 = 1; + a3 = 14; + a1 = 0; + a27 = 19; + return 25; + } else if(((((((a26==1)&&(!(a11==1)&&(!(a23==1)&&(((((a14==3)||(a14==4))&&(input==3))&&!(a17==1))&&!(a2==1)))))&&!(a16==1))&&(a25==1))&&(a27==19))&&(((!(a15==1)||((a7==1)||(a16==1)))&&(a10==1))&&(a3==12)))){ + a26 = 0; + a15 = 1; + a25 = 0; + a14 = 7; + a28 = 1; + a2 = 1; + a9 = 0; + return -1; + } else if((((a2==1)&&((a3==14)&&(((((a10==1)&&((a15==1)&&((input==2)&&((a14==6)||(a14==7)))))&&(a28==1))&&(a7==1))&&!(a25==1))))&&((((a21==1)||(((a6==1)&&(a29==1))&&(a26==1)))&&(a27==21))||!(a5==1)))){ + a14 = 5; + a27 = 20; + a26 = 0; + a12 = 1; + a28 = 1; + a25 = 1; + a16 = 0; + return 22; + } else if((((a7==1)&&(((a10==1)&&(!(a25==1)&&(!(a11==1)&&(!(a1==1)&&(((a14==3)||(a14==4))&&(input==1))))))&&(a3==14)))&&((a15==1)&&(!(a2==1)&&(((a7==1)&&((!(a20==1)||(a5==1))&&!(a26==1)))&&(a27==19)))))){ + a14 = 3; + a25 = 1; + a15 = 1; + a3 = 12; + a26 = 1; + a29 = 1; + a2 = 1; + a23 = 0; + return -1; + } else if(((!(a29==1)||(((!(a7==1)||(!(a21==1)&&(a18==1)))&&(a25==1))&&(a18==1)))&&((a2==1)&&(((a29==1)&&(((a3==14)&&(!(a9==1)&&(((a14==5)&&(input==6))&&(a26==1))))&&(a10==1)))&&(a27==21))))){ + a12 = 1; + a3 = 12; + a5 = 1; + a14 = 7; + a26 = 0; + a27 = 20; + return 26; + } else if(((!(a21==1)&&(!(a23==1)&&((((a9==1)||(!(a26==1)&&((!(a25==1)&&((a29==1)||(a13==1)))&&(a10==1))))||!(a29==1))||!(a20==1))))&&((((a3==13)&&((input==2)&&((a14==5)||((a14==3)||(a14==4)))))&&(a27==21))&&(a2==1)))){ + a3 = 12; + a17 = 0; + a27 = 20; + a18 = 1; + a28 = 1; + a14 = 3; + a25 = 1; + return 22; + } else if(((((((((a10==1)&&((input==6)&&((a14==3)||(a14==4))))&&(a26==1))&&(a3==12))&&!(a29==1))&&!(a29==1))&&(a16==1))&&(!(a7==1)&&((((a27==19)&&(((a15==1)&&!(a2==1))&&(a25==1)))&&(a11==1))&&!(a6==1))))){ + a15 = 0; + a14 = 6; + a3 = 13; + a8 = 0; + a27 = 20; + return -1; + } else if(((!(a1==1)&&((a27==21)&&((!(a2==1)&&(((a3==13)&&((((a14==6)||(a14==7))&&(input==5))&&(a6==1)))&&(a10==1)))&&!(a26==1))))&&(((((a19==1)||((a18==1)&&!(a19==1)))||(a9==1))&&!(a17==1))&&!(a25==1)))){ + if((a16==1)){ + a14 = 4; + a3 = 14; + a25 = 1; + a9 = 1; + a27 = 19; + a19 = 1; + a26 = 1; + a2 = 1; + }else{ + a2 = 1; + a5 = 0; + a26 = 1; + a14 = 6; + a28 = 0; + a7 = 0; + a27 = 19; + } + return -1; + } else if((((((!(a23==1)&&((a28==1)&&((((a14==3)&&(a3==14))||(((a14==6)&&(a3==13))||((a14==7)&&(a3==13))))&&(input==4))))&&!(a11==1))&&!(a2==1))&&(a27==20))&&(!(a17==1)&&((((((a10==1)&&(a7==1))&&(a26==1))||(a1==1))&&(a25==1))&&(a28==1))))){ + a27 = 21; + a14 = 5; + a23 = 0; + a3 = 12; + a17 = 0; + a20 = 1; + a2 = 1; + return 26; + } else if((((!(a26==1)&&((a12==1)&&(a2==1)))&&!(a11==1))&&(!(a13==1)&&(((a27==21)&&(((((a14==7)&&((((a10==1)&&(input==3))&&(a25==1))&&(a5==1)))&&(a3==14))&&!(a16==1))&&(a6==1)))&&!(a13==1))))){ + a14 = 4; + a12 = 1; + a18 = 1; + a3 = 13; + a26 = 1; + a27 = 20; + return 24; + } else if(((!(a1==1)&&((!(a2==1)&&((a29==1)&&!(a19==1)))&&(a26==1)))&&(!(a23==1)&&(!(a11==1)&&((a20==1)&&((a10==1)&&((a27==21)&&(!(a25==1)&&((a29==1)&&((input==2)&&(((a3==13)&&(a14==3))||(((a3==12)&&(a14==6))||((a3==12)&&(a14==7)))))))))))))){ + a3 = 12; + a14 = 7; + a27 = 19; + a26 = 0; + a1 = 1; + a12 = 0; + a2 = 1; + a0 = 0; + a25 = 1; + return -1; + } else if((((a29==1)&&((((!(a13==1)&&((((input==4)&&(((a14==3)||(a14==4))||(a14==5)))&&!(a26==1))&&(a27==21)))&&!(a25==1))&&(a2==1))&&(a5==1)))&&(((a12==1)&&((((a10==1)&&(a20==1))||(a17==1))&&(a3==13)))&&(a5==1)))){ + a17 = 0; + a27 = 20; + a11 = 0; + a12 = 1; + a14 = 3; + return 25; + } else if((((((a11==1)&&((((a27==19)&&((a10==1)&&((!(a2==1)&&(input==6))&&(a3==14))))&&(a26==1))&&(a13==1)))&&!(a29==1))&&(a1==1))&&((((a25==1)&&((a14==4)&&(a6==1)))&&!(a29==1))&&(a1==1)))){ + a1 = 1; + a3 = 13; + a17 = 1; + a24 = 0; + a2 = 1; + return 22; + } else if(((!(a9==1)&&(((((!(a17==1)&&(((input==5)&&(a27==20))&&(a3==12)))&&!(a2==1))&&!(a1==1))&&!(a13==1))&&(a14==6)))&&(((a12==1)&&(!(a25==1)&&((a10==1)&&((a18==1)&&(a26==1)))))&&(a7==1)))){ + a23 = 0; + a27 = 21; + a26 = 0; + a3 = 14; + a2 = 1; + a14 = 7; + a18 = 1; + a9 = 0; + return -1; + } else if((((a18==1)&&((a20==1)&&((!(a26==1)&&((a7==1)&&!(a19==1)))&&(a20==1))))&&(!(a16==1)&&((a20==1)&&(!(a25==1)&&(((((((a3==13)&&(a14==3))||(((a3==12)&&(a14==6))||((a14==7)&&(a3==12))))&&(input==3))&&(a27==20))&&!(a2==1))&&(a10==1))))))){ + a3 = 14; + a27 = 19; + a6 = 0; + a16 = 1; + a25 = 1; + a2 = 1; + a14 = 3; + a5 = 0; + return 26; + } else if(((!(a16==1)&&(!(a23==1)&&(((a15==1)&&((a10==1)&&(!(a16==1)&&(((input==4)&&(((!(a26==1)&&((a3==14)&&((a14==6)&&(a25==1))))||(!(a26==1)&&((a3==14)&&((a14==7)&&(a25==1)))))||(((a3==12)&&((a14==3)&&!(a25==1)))&&(a26==1))))&&(a27==21)))))&&!(a17==1))))&&(!(a23==1)&&((a29==1)&&!(a2==1))))){ + a14 = 7; + a15 = 0; + a19 = 1; + a25 = 1; + a0 = 0; + a2 = 1; + a3 = 14; + a27 = 19; + a26 = 0; + return 24; + } else if(((!(a1==1)&&((a18==1)&&!(a9==1)))&&(!(a1==1)&&(((((a10==1)&&(((((((((a14==7)&&!(a25==1))&&(a3==14))&&(a27==20))&&!(a26==1))||((a26==1)&&((a27==21)&&(((a25==1)&&(a14==3))&&(a3==12)))))||(((((a14==4)&&(a25==1))&&(a3==12))&&(a27==21))&&(a26==1)))&&(input==4))&&(a2==1)))&&!(a1==1))&&!(a21==1))&&!(a19==1))))){ + a7 = 1; + a19 = 0; + a3 = 12; + a14 = 4; + a27 = 20; + a16 = 0; + a25 = 1; + a26 = 0; + return 25; + } else if((((a10==1)&&(!(a25==1)&&(((a15==1)&&(a7==1))&&!(a26==1))))&&(!(a17==1)&&((!(a2==1)&&((a20==1)&&(!(a9==1)&&(!(a9==1)&&(((input==5)&&(((a3==13)&&(a14==7))||((a3==14)&&(a14==3))))&&(a27==20))))))&&(a5==1))))){ + if((a27==21)){ + a8 = 1; + a21 = 1; + a3 = 14; + a25 = 1; + a2 = 1; + a14 = 7; + a16 = 1; + a26 = 1; + }else{ + a11 = 1; + a21 = 1; + a2 = 1; + a27 = 19; + a25 = 1; + a3 = 12; + a14 = 4; + a5 = 0; + } + return 26; + } else if((((((a5==1)&&((((((a3==14)&&(input==1))&&!(a25==1))&&!(a9==1))&&!(a2==1))&&!(a13==1)))&&!(a26==1))&&(a27==21))&&(((a14==4)&&((!(a23==1)&&((a20==1)||(a11==1)))||(a16==1)))&&(a10==1)))){ + if((a1==1)){ + a2 = 1; + a3 = 13; + a13 = 1; + a27 = 19; + a7 = 0; + a16 = 1; + }else{ + a14 = 3; + a24 = 0; + a6 = 0; + a2 = 1; + a27 = 19; + a5 = 0; + a3 = 12; + } + return 22; + } else if(((!(a17==1)&&((a21==1)||(((((a7==1)||!(a5==1))&&!(a9==1))&&!(a1==1))&&!(a17==1))))&&((input==6)&&((!(a26==1)&&(((a27==21)&&((!(a25==1)&&(!(a2==1)&&(a14==7)))&&(a3==14)))&&(a10==1)))||((a26==1)&&(!(a10==1)&&((a27==19)&&((a3==12)&&((a25==1)&&((a14==3)&&(a2==1))))))))))){ + a7 = 0; + a25 = 1; + a26 = 1; + a13 = 1; + a18 = 0; + a14 = 3; + a27 = 20; + a2 = 1; + a10 = 1; + a3 = 13; + return 22; + } else if((((a26==1)&&((((a17==1)||(a18==1))&&!(a25==1))&&(a27==19)))&&(((a10==1)&&(((a20==1)&&(!(a19==1)&&((!(a17==1)&&((((a14==5)||((a14==3)||(a14==4)))&&(input==1))&&!(a16==1)))&&(a3==14))))&&!(a11==1)))&&!(a2==1)))){ + a1 = 0; + a21 = 0; + a2 = 1; + a14 = 7; + a13 = 0; + a26 = 0; + return -1; + } else if(((((a2==1)&&((a21==1)||(((!(a21==1)&&(((a18==1)&&!(a23==1))&&(a3==12)))&&(a26==1))&&!(a21==1))))&&(a10==1))&&(((a27==21)&&((a5==1)&&(((((a14==5)||(a14==6))||(a14==7))&&(input==3))&&(a25==1))))&&(a5==1)))){ + a26 = 0; + a15 = 1; + a27 = 20; + a20 = 1; + a14 = 4; + return 22; + } else if((((a12==1)&&(!(a2==1)&&((((!(a13==1)&&(!(a21==1)&&((input==4)&&((a14==6)||((a14==4)||(a14==5))))))&&(a25==1))&&!(a13==1))&&!(a26==1))))&&((((a10==1)&&((!(a20==1)||(a12==1))&&!(a21==1)))&&(a27==21))&&(a3==12)))){ + a27 = 19; + a25 = 0; + a7 = 0; + a9 = 1; + a4 = 0; + a3 = 13; + a2 = 1; + a26 = 1; + a14 = 4; + return -1; + } else if((((a14==7)&&(((a13==1)||((!(a25==1)&&(!(a16==1)&&(a20==1)))&&!(a13==1)))&&(a3==13)))&&((((a28==1)&&(((((input==4)&&(a27==21))&&!(a2==1))&&!(a23==1))&&(a26==1)))&&!(a9==1))&&(a10==1)))){ + if((a23==1)){ + a27 = 19; + a25 = 1; + a22 = 0; + a17 = 1; + a2 = 1; + a26 = 0; + a1 = 1; + a3 = 12; + }else{ + a24 = 1; + a27 = 20; + a3 = 12; + a2 = 1; + a14 = 3; + a15 = 0; + a25 = 1; + a7 = 0; + } + return 25; + } else if((((a25==1)&&((a10==1)&&((a28==1)&&((a14==5)&&(((((input==2)&&(a27==20))&&(a3==14))&&(a2==1))&&!(a13==1))))))&&((((((a26==1)&&(a20==1))&&(a28==1))||!(a12==1))||(a13==1))||(a19==1)))){ + if((a23==1)){ + a2 = 0; + a3 = 12; + a14 = 3; + a23 = 0; + a20 = 1; + }else{ + a15 = 1; + a25 = 0; + a21 = 0; + a26 = 0; + a3 = 12; + a7 = 1; + a14 = 6; + } + return 24; + } else if((((a10==1)&&(!(a1==1)&&((a2==1)&&(((a16==1)||((a7==1)&&(a3==14)))&&!(a25==1)))))&&((a15==1)&&(((a28==1)&&(((((input==5)&&((a14==3)||(a14==4)))&&(a27==21))&&(a29==1))&&!(a26==1)))&&(a7==1))))){ + a19 = 0; + a14 = 4; + a5 = 1; + a27 = 20; + a25 = 1; + a26 = 1; + a15 = 1; + a3 = 13; + return 22; + } else if((((!(a2==1)&&((a1==1)||(((((((a15==1)&&(a27==20))&&!(a16==1))&&(a10==1))&&!(a13==1))&&!(a23==1))&&(a26==1))))&&(a12==1))&&((a20==1)&&((a25==1)&&((a3==13)&&((input==2)&&(((a14==3)||(a14==4))||(a14==5)))))))){ + a14 = 7; + a11 = 0; + a26 = 0; + a2 = 1; + a29 = 1; + a5 = 1; + return 24; + } else if((((!(a5==1)||((!(a7==1)||(((a26==1)&&(a7==1))&&!(a25==1)))&&(a20==1)))&&(a10==1))&&(!(a2==1)&&((a27==21)&&(((!(a13==1)&&(!(a16==1)&&((input==4)&&((a14==4)||(a14==5)))))&&(a3==12))&&!(a16==1)))))){ + if((a18==1)){ + a25 = 1; + a27 = 19; + a26 = 0; + a23 = 1; + a0 = 1; + a14 = 6; + a24 = 0; + a2 = 1; + }else{ + a26 = 0; + a21 = 1; + a14 = 5; + a2 = 1; + a29 = 0; + a0 = 0; + } + return -1; + } else if(((!(a16==1)&&((a20==1)&&(!(a13==1)&&((a10==1)&&(((a28==1)&&(!(a21==1)&&(!(a2==1)&&(((a26==1)&&(input==4))&&!(a1==1)))))&&(a25==1))))))&&((a3==13)&&(((a14==7)&&(a28==1))&&(a27==19))))){ + a2 = 1; + a3 = 14; + a14 = 3; + a11 = 0; + a23 = 0; + a17 = 0; + return -1; + } else if(((((!(a11==1)&&((((input==2)&&(a26==1))&&!(a2==1))&&(a27==19)))&&!(a13==1))&&!(a23==1))&&((((((a25==1)&&(((a7==1)&&(a3==14))&&(a14==5)))&&(a5==1))||(a16==1))&&(a29==1))&&(a10==1)))){ + a19 = 0; + a14 = 4; + a18 = 1; + a3 = 13; + a27 = 20; + a2 = 1; + a7 = 1; + return 26; + } else if((((a23==1)||(((((a29==1)&&!(a13==1))||!(a18==1))||(a19==1))||(a21==1)))&&((a3==13)&&(!(a2==1)&&((a27==19)&&((a10==1)&&((a25==1)&&((a14==4)&&(!(a13==1)&&((input==2)&&(a26==1))))))))))){ + a2 = 1; + a14 = 3; + a3 = 12; + a23 = 0; + a15 = 1; + return -1; + } else if(((((a29==1)||(a11==1))&&(a10==1))&&((((!(a19==1)&&(!(a23==1)&&((!(a25==1)&&((a3==13)&&(!(a1==1)&&(!(a21==1)&&((input==6)&&(((a14==5)||(a14==6))||(a14==7)))))))&&!(a1==1))))&&(a27==21))&&(a26==1))&&(a2==1)))){ + a14 = 5; + a17 = 0; + a6 = 1; + a5 = 1; + return 24; + } else if((((a27==21)&&(!(a2==1)&&((!(a9==1)&&(!(a29==1)||(!(a17==1)&&(!(a16==1)&&(!(a7==1)||((a18==1)&&(a29==1)))))))&&(a25==1))))&&(((a10==1)&&(((((a14==4)||(a14==5))||(a14==6))&&(input==5))&&(a3==13)))&&!(a26==1)))){ + a27 = 19; + a25 = 0; + a22 = 0; + a24 = 0; + a14 = 7; + a15 = 0; + a26 = 1; + a2 = 1; + return 25; + } else if((((a7==1)&&((((a25==1)&&((a10==1)&&((a5==1)&&(((a14==6)||((a14==4)||(a14==5)))&&(input==6)))))&&(a15==1))&&!(a26==1)))&&(!(a2==1)&&((a3==14)&&((a27==19)&&((a11==1)||((a15==1)&&((a17==1)||(a20==1))))))))){ + a2 = 1; + a14 = 6; + a9 = 0; + a7 = 1; + a16 = 0; + a27 = 20; + return 22; + } else if(((!(a15==1)||((a29==1)&&(((a7==1)&&(a25==1))&&(a3==13))))&&((a5==1)&&((a10==1)&&(!(a2==1)&&((((!(a26==1)&&((((a14==4)||(a14==5))&&(input==6))&&(a27==20)))&&(a28==1))&&!(a23==1))&&!(a16==1))))))){ + a18 = 1; + a3 = 12; + a2 = 1; + a1 = 0; + a14 = 3; + a26 = 1; + a28 = 1; + a27 = 19; + return -1; + } else if((((((a3==12)&&((a27==21)&&((a29==1)&&((a25==1)&&(((a7==1)&&!(a17==1))&&(a20==1))))))&&(a29==1))||(a23==1))&&(!(a2==1)&&(((((input==2)&&((a14==5)||((a14==3)||(a14==4))))&&(a26==1))&&(a28==1))&&(a10==1))))){ + a27 = 19; + a5 = 0; + a2 = 1; + a14 = 7; + a3 = 14; + a11 = 1; + return 26; + } else if((((a27==21)&&((a3==12)&&((((a11==1)||(((a29==1)&&((a5==1)&&((a5==1)||(a16==1))))&&!(a13==1)))&&(a25==1))&&!(a2==1))))&&(((a28==1)&&(((input==3)&&(((a14==4)||(a14==5))||(a14==6)))&&!(a26==1)))&&(a10==1)))){ + a24 = 0; + a27 = 19; + a9 = 1; + a3 = 14; + a5 = 0; + a14 = 3; + return 26; + } else if((((a2==1)&&(((((a10==1)&&(((a28==1)&&(a14==6))||!(a5==1)))||(a23==1))||(a16==1))||!(a12==1)))&&((a3==12)&&((a27==20)&&(((a26==1)&&((!(a25==1)&&(input==5))&&!(a19==1)))&&(a6==1)))))){ + a1 = 0; + a16 = 0; + a27 = 19; + a5 = 1; + a14 = 3; + a25 = 1; + return -1; + } else if(((((a14==6)&&((((!(a17==1)&&(((input==6)&&(a2==1))&&(a6==1)))&&(a5==1))&&(a25==1))&&(a10==1)))&&(a27==21))&&((((((a21==1)||(a15==1))||(a1==1))&&!(a26==1))||!(a29==1))&&(a3==13)))){ + a21 = 0; + a11 = 0; + return 24; + } else if((((a18==1)&&(((a16==1)||((((((a29==1)&&!(a25==1))||(a23==1))||(a11==1))&&!(a26==1))&&(a10==1)))||!(a12==1)))&&((a27==20)&&((((((a14==4)&&(a3==13))||(((a3==12)&&(a14==7))||((a3==13)&&(a14==3))))&&(input==3))&&!(a1==1))&&(a2==1))))){ + a23 = 0; + a14 = 3; + a12 = 1; + a15 = 1; + a3 = 13; + return 25; + } else if((((a10==1)&&(!(a23==1)&&((((input==2)&&(((a14==3)&&(a3==13))||(((a3==12)&&(a14==6))||((a14==7)&&(a3==12)))))&&(a20==1))&&(a7==1))))&&(((a27==20)&&(!(a2==1)&&(!(a21==1)&&(!(a20==1)||(!(a25==1)&&((a12==1)&&!(a13==1)))))))&&!(a26==1)))){ + if((a12==1)){ + a27 = 21; + a15 = 0; + a14 = 5; + a26 = 1; + a5 = 0; + a28 = 0; + a2 = 1; + a3 = 12; + }else{ + a3 = 14; + a27 = 19; + a12 = 0; + a14 = 6; + a28 = 0; + a25 = 1; + a23 = 1; + a2 = 1; + } + return -1; + } else if((((!(a7==1)||((!(a21==1)&&((((a27==20)&&(a29==1))&&(a10==1))||!(a28==1)))&&(a2==1)))&&(a25==1))&&((((!(a23==1)&&(((a3==14)&&(input==4))&&!(a9==1)))&&(a14==4))&&!(a19==1))&&!(a26==1)))){ + a19 = 0; + a3 = 13; + a26 = 1; + a27 = 21; + a13 = 0; + a25 = 0; + return 22; + } else if((((!(a16==1)&&((a20==1)&&(a3==12)))||(a21==1))&&((((!(a2==1)&&((!(a17==1)&&((a10==1)&&(((a26==1)&&((((a14==5)||(a14==6))||(a14==7))&&(input==5)))&&(a25==1))))&&(a12==1)))&&(a27==19))&&!(a9==1))&&(a15==1)))){ + a20 = 1; + a28 = 1; + a11 = 0; + a2 = 1; + a14 = 6; + return -1; + } else if((((((a20==1)&&((a27==20)&&((!(a2==1)&&((a5==1)&&((((a6==1)&&!(a26==1))||(a21==1))||!(a29==1))))&&(a10==1))))&&(a25==1))&&(a14==6))&&(!(a1==1)&&(!(a16==1)&&((input==4)&&(a3==13)))))){ + a21 = 0; + a26 = 1; + a6 = 1; + a11 = 0; + a14 = 4; + a2 = 1; + return 22; + } return calculate_output5(input); + } + + int calculate_output5(int input) { + if(((((a29==1)&&((a10==1)&&((!(a25==1)&&(input==5))&&!(a26==1))))&&(a3==13))&&((!(a13==1)&&((a13==1)||((a2==1)&&(!(a19==1)&&(!(a21==1)&&(((a14==5)&&(a15==1))&&(a27==20)))))))||(a17==1)))){ + a14 = 7; + a17 = 0; + a19 = 0; + a2 = 0; + a27 = 19; + return 22; + } else if(((((((a3==12)&&((a26==1)&&(!(a19==1)&&(((((a28==1)&&!(a19==1))&&!(a23==1))&&!(a17==1))&&(a10==1)))))||!(a12==1))&&(a27==21))&&!(a2==1))&&(((a25==1)&&((((a14==3)||(a14==4))||(a14==5))&&(input==1)))&&!(a16==1)))){ + if((a7==1)){ + a21 = 1; + a14 = 6; + a24 = 0; + a7 = 0; + a27 = 19; + a2 = 1; + }else{ + a3 = 14; + a14 = 5; + a25 = 0; + a4 = 0; + a23 = 1; + a8 = 0; + } + return 24; + } else if((((((a20==1)&&(!(a13==1)&&((input==4)&&(a3==12))))&&!(a19==1))&&(a10==1))&&((!(a26==1)&&(((a14==7)&&(!(a12==1)||((((a25==1)&&(a12==1))||!(a15==1))||!(a5==1))))&&!(a2==1)))&&(a27==21)))){ + if((a17==1)){ + a25 = 0; + a21 = 1; + a2 = 1; + a15 = 0; + a17 = 1; + a14 = 5; + }else{ + a2 = 1; + a26 = 1; + a25 = 0; + a27 = 19; + a14 = 5; + a3 = 14; + a22 = 0; + a0 = 0; + } + return -1; + } else if((((a28==1)&&(((((input==3)&&((!(a26==1)&&((a3==12)&&(a14==3)))||((((a3==14)&&(a14==6))&&(a26==1))||(((a3==14)&&(a14==7))&&(a26==1)))))&&(a10==1))&&(a2==1))&&!(a21==1)))&&((((a25==1)&&((a27==21)&&(((a28==1)&&(a7==1))&&(a28==1))))||!(a15==1))&&(a6==1)))){ + a16 = 0; + a26 = 0; + a7 = 1; + a14 = 6; + a27 = 20; + a3 = 12; + return 26; + } else if((((a20==1)&&(!(a21==1)&&(((input==4)&&(((a14==3)||(a14==4))||(a14==5)))&&(a27==21))))&&((a10==1)&&(((a25==1)&&(!(a7==1)||(((a18==1)&&((a3==13)&&(!(a16==1)&&((a7==1)&&(a20==1)))))&&!(a26==1))))&&(a2==1))))){ + a3 = 12; + a20 = 1; + a21 = 0; + a19 = 0; + a14 = 3; + a26 = 1; + a27 = 19; + return -1; + } else if(((!(a1==1)&&(((a23==1)||(a20==1))&&!(a25==1)))&&(((!(a19==1)&&((!(a16==1)&&(((a3==14)&&((!(a23==1)&&((input==1)&&((a14==4)||(a14==5))))&&!(a21==1)))&&(a10==1)))&&(a2==1)))&&(a27==20))&&!(a26==1)))){ + a3 = 13; + a25 = 1; + a26 = 1; + a13 = 0; + a18 = 1; + a14 = 3; + return 22; + } else if(((((a27==21)&&(!(a29==1)||(!(a28==1)||(((a28==1)&&((a25==1)&&((a10==1)&&(a12==1))))&&(a26==1)))))&&(a28==1))&&((a5==1)&&(!(a2==1)&&((a5==1)&&((a3==14)&&((input==2)&&((a14==5)||((a14==3)||(a14==4)))))))))){ + if((a8==1)){ + a27 = 19; + a3 = 12; + a26 = 0; + a2 = 1; + a14 = 4; + a17 = 1; + a15 = 0; + a22 = 1; + a25 = 0; + }else{ + a26 = 0; + a25 = 0; + a27 = 19; + a24 = 0; + a3 = 13; + a14 = 3; + a2 = 1; + a4 = 1; + } + return 24; + } else if((((a27==20)&&(((a3==14)&&(((!(a9==1)&&(a29==1))&&(a15==1))||!(a20==1)))&&(a2==1)))&&(((a10==1)&&((!(a17==1)&&((((input==3)&&((a14==6)||(a14==7)))&&!(a13==1))&&(a25==1)))&&(a5==1)))&&(a26==1)))){ + a14 = 4; + a13 = 0; + a25 = 0; + a18 = 1; + a1 = 0; + a26 = 0; + return 25; + } else if((((!(a19==1)&&(!(a11==1)&&(((!(a21==1)&&((((((a14==6)&&(a3==14))&&(a26==1))||(((a14==7)&&(a3==14))&&(a26==1)))||(((a3==12)&&(a14==3))&&!(a26==1)))&&(input==5)))&&!(a11==1))&&(a27==19))))&&!(a13==1))&&(((a17==1)||(((a12==1)&&!(a2==1))&&(a25==1)))&&(a10==1)))){ + a27 = 20; + a26 = 1; + a9 = 0; + a14 = 3; + a2 = 1; + a15 = 1; + a6 = 1; + a3 = 13; + return 26; + } else if(((((((a19==1)&&((a3==12)&&((a27==20)&&(!(a26==1)&&(((a23==1)&&((input==5)&&((a14==3)||(a14==4))))&&(a1==1))))))&&!(a12==1))&&(a10==1))&&(a19==1))&&((a2==1)&&((!(a29==1)&&(a18==1))&&(a25==1))))){ + a23 = 1; + a12 = 0; + a3 = 14; + a14 = 5; + a5 = 0; + a27 = 19; + return 24; + } else if(((!(a2==1)&&((!(a19==1)&&(!(a19==1)&&(!(a16==1)&&((((a14==6)||(a14==7))&&(input==1))&&!(a25==1)))))&&!(a26==1)))&&((a27==20)&&((a9==1)||((a3==14)&&((a20==1)&&(((a10==1)&&(a20==1))||!(a7==1)))))))){ + a4 = 0; + a2 = 1; + a22 = 1; + a14 = 4; + a28 = 0; + a25 = 1; + a3 = 12; + return -1; + } else if(((((input==6)&&(((a14==4)&&(a3==13))||(((a3==12)&&(a14==7))||((a3==13)&&(a14==3)))))&&(a5==1))&&((a27==20)&&(!(a18==1)||(!(a9==1)&&((a21==1)||((a10==1)&&(!(a25==1)&&((a2==1)&&(((a26==1)&&(!(a29==1)||(a15==1)))&&!(a16==1))))))))))){ + a20 = 1; + a23 = 0; + a25 = 1; + a19 = 0; + a3 = 14; + a27 = 19; + a14 = 4; + a2 = 0; + return 26; + } else if(((!(a25==1)&&(((a3==14)&&(!(a11==1)&&((a28==1)&&(!(a2==1)&&(a15==1)))))&&(a29==1)))&&((a26==1)&&((((((((a14==6)||(a14==7))&&(input==4))&&(a15==1))&&!(a23==1))&&(a10==1))&&(a20==1))&&(a27==21))))){ + if((a17==1)){ + a0 = 1; + a3 = 13; + a27 = 19; + a2 = 1; + a14 = 5; + a9 = 1; + }else{ + a22 = 1; + a3 = 13; + a2 = 1; + a14 = 5; + a7 = 0; + a27 = 19; + a8 = 1; + } + return 25; + } else if(((((!(a25==1)&&(!(a2==1)&&((a15==1)&&(a6==1))))&&(a3==12))&&!(a26==1))&&(((a27==21)&&((a6==1)&&((!(a19==1)&&((a10==1)&&((((a14==5)||(a14==6))&&(input==1))&&!(a23==1))))&&(a6==1))))&&(a15==1)))){ + a27 = 19; + a2 = 1; + a6 = 0; + a14 = 3; + a17 = 1; + a19 = 1; + return -1; + } else if(((!(a7==1)&&((a27==19)&&(((a23==1)&&(((!(a7==1)&&(((((a14==3)||(a14==4))||(a14==5))&&(input==3))&&(a19==1)))&&(a3==13))&&(a26==1)))&&(a10==1))))&&(((!(a2==1)&&((a5==1)&&!(a28==1)))&&!(a25==1))&&(a13==1)))){ + a2 = 1; + a0 = 1; + a3 = 14; + a8 = 1; + a14 = 6; + a9 = 1; + a25 = 1; + a26 = 0; + return -1; + } else if((((a26==1)&&(((a23==1)||((a25==1)&&(a7==1)))&&(a27==21)))&&(((!(a23==1)&&(!(a2==1)&&(((!(a19==1)&&((a10==1)&&((input==3)&&((a14==6)||(a14==7)))))&&(a28==1))&&!(a21==1))))&&(a3==12))&&(a7==1)))){ + if((a25==1)){ + a27 = 20; + a8 = 1; + a18 = 0; + a26 = 0; + a25 = 0; + a14 = 3; + a2 = 1; + a7 = 0; + }else{ + a14 = 4; + a0 = 0; + a2 = 1; + a28 = 0; + a27 = 19; + a25 = 0; + a20 = 0; + } + return -1; + } else if((((a6==1)&&((((a10==1)&&(((a5==1)&&((input==5)&&((a14==6)||(a14==7))))&&(a3==13)))&&(a12==1))&&(a27==19)))&&(!(a2==1)&&((a19==1)||((!(a25==1)&&((a20==1)&&((a12==1)&&(a26==1))))||(a13==1)))))){ + a25 = 1; + a2 = 1; + a3 = 12; + a14 = 5; + a11 = 0; + a20 = 1; + return -1; + } else if((((a2==1)&&((a25==1)&&((a28==1)&&(((a26==1)&&(!(a13==1)&&((a3==13)&&(input==4))))&&(a12==1)))))&&((((a10==1)&&(((!(a13==1)&&(a7==1))&&(a27==21))||(a11==1)))&&(a14==5))||!(a6==1)))){ + a14 = 3; + a11 = 0; + a27 = 20; + a6 = 1; + a29 = 1; + return 25; + } else if(((((!(a25==1)&&(!(a2==1)&&((a27==21)&&(!(a1==1)&&((((a14==7)&&(a3==12))||((a14==3)&&(a3==13)))&&(input==1))))))&&(a28==1))&&(a28==1))&&((a17==1)||((!(a20==1)||((a10==1)&&(!(a26==1)&&(a6==1))))||!(a20==1))))){ + a3 = 13; + a14 = 7; + a23 = 1; + a4 = 1; + a29 = 0; + a25 = 1; + return -1; + } else if((((a27==21)&&(((a28==1)&&(((a5==1)&&(((input==3)&&((a14==6)||((a14==4)||(a14==5))))&&(a3==13)))&&!(a23==1)))&&!(a9==1)))&&((a17==1)||(((a10==1)&&(!(a2==1)&&(!(a23==1)&&((a5==1)&&!(a26==1)))))&&(a25==1))))){ + a14 = 3; + a17 = 1; + a15 = 0; + a22 = 0; + a3 = 14; + a27 = 19; + return 25; + } else if((((((!(a28==1)||((((a6==1)||!(a5==1))&&(a3==14))&&!(a21==1)))||!(a7==1))&&(a25==1))&&(a10==1))&&((a7==1)&&((!(a2==1)&&(((a15==1)&&(((a14==5)||(a14==6))&&(input==1)))&&(a27==20)))&&!(a26==1))))){ + a11 = 0; + a2 = 1; + a23 = 0; + a9 = 0; + a14 = 4; + return 22; + } else if((((((((a26==1)&&((a29==1)&&(a3==12)))||(a11==1))&&(a27==19))&&(a28==1))||(a16==1))&&(!(a25==1)&&(!(a2==1)&&(((a10==1)&&(((((a14==7)||((a14==5)||(a14==6)))&&(input==3))&&!(a17==1))&&!(a16==1)))&&(a20==1)))))){ + a23 = 0; + a20 = 1; + a15 = 1; + a25 = 1; + a14 = 6; + return -1; + } else if(((((a10==1)&&((a27==19)&&(!(a29==1)||((a25==1)&&((a23==1)||(!(a2==1)&&(a7==1)))))))&&(a3==12))&&((!(a26==1)&&((a20==1)&&(!(a13==1)&&(((((a14==4)||(a14==5))||(a14==6))&&(input==6))&&(a7==1)))))&&(a29==1)))){ + a26 = 1; + a18 = 1; + a9 = 0; + a2 = 1; + a7 = 1; + a14 = 3; + return -1; + } else if((((a7==1)&&((a29==1)&&(((a10==1)&&((((((((a14==4)&&(a3==14))||(((a14==7)&&(a3==13))||((a14==3)&&(a3==14))))&&(input==6))&&(a25==1))&&(a27==20))&&!(a2==1))&&!(a26==1)))&&!(a21==1))))&&((a18==1)&&((!(a28==1)||(a18==1))||!(a6==1))))){ + a14 = 4; + a3 = 12; + a26 = 1; + a12 = 1; + a27 = 19; + a9 = 0; + return -1; + } else if(((!(a23==1)&&((!(a26==1)&&(((((a14==5)||((a14==3)||(a14==4)))&&(input==1))&&(a28==1))&&(a25==1)))&&(a10==1)))&&(!(a13==1)&&(((!(a12==1)||((((a6==1)&&(a3==13))||(a9==1))||!(a7==1)))&&(a27==21))&&(a2==1))))){ + a14 = 5; + a7 = 1; + a12 = 1; + a17 = 0; + return 22; + } else if((((!(a23==1)&&((a20==1)&&((a3==13)&&((input==4)&&((a14==7)||((a14==5)||(a14==6)))))))&&!(a2==1))&&((a25==1)&&(((!(a1==1)&&(!(a5==1)||(((!(a26==1)&&(a5==1))&&!(a13==1))&&(a27==19))))&&(a10==1))&&!(a13==1))))){ + a11 = 0; + a19 = 0; + a26 = 1; + a14 = 5; + a3 = 14; + a17 = 0; + return -1; + } else if((((a28==1)&&((((a15==1)&&((input==1)&&(((a14==4)&&(a3==13))||(((a14==7)&&(a3==12))||((a3==13)&&(a14==3))))))&&!(a16==1))&&!(a2==1)))&&(((a12==1)&&((((a27==20)&&((a10==1)&&((a20==1)&&(a29==1))))&&(a20==1))&&(a26==1)))&&!(a25==1)))){ + a26 = 0; + a6 = 1; + a14 = 5; + a25 = 1; + a3 = 14; + a16 = 0; + a2 = 1; + a21 = 0; + return 26; + } else if((((a15==1)&&(((!(a23==1)&&(!(a23==1)&&(((a3==12)&&((a2==1)&&((input==1)&&(a10==1))))&&!(a25==1))))&&(a18==1))&&(a27==20)))&&((a9==1)||((((a14==6)&&(a28==1))&&(a26==1))&&!(a11==1))))){ + a25 = 1; + a21 = 0; + a14 = 3; + a27 = 19; + a3 = 13; + a13 = 0; + a2 = 0; + a23 = 0; + return 22; + } else if((((a10==1)&&((a27==20)&&((!(a7==1)||(a5==1))&&(a26==1))))&&((a2==1)&&(!(a1==1)&&((a25==1)&&(((a15==1)&&(!(a21==1)&&((!(a17==1)&&((input==4)&&((a14==6)||(a14==7))))&&(a3==14))))&&!(a1==1))))))){ + a27 = 19; + a6 = 1; + a14 = 3; + a3 = 12; + a9 = 0; + return -1; + } else if(((!(a25==1)&&((a27==20)&&((a10==1)&&((a3==13)&&(a12==1)))))&&((((((!(a26==1)&&((((input==4)&&((a14==6)||(a14==7)))&&!(a13==1))&&!(a9==1)))&&!(a23==1))&&(a2==1))&&(a5==1))&&(a15==1))&&(a29==1)))){ + a14 = 6; + a1 = 0; + a9 = 0; + a17 = 0; + return 22; + } else if(((((a28==1)&&((a9==1)||((a6==1)&&(a10==1))))&&!(a13==1))&&(((!(a25==1)&&(!(a2==1)&&(!(a13==1)&&(((a3==12)&&(!(a21==1)&&((input==4)&&(a14==5))))&&(a27==20)))))&&(a26==1))&&(a12==1)))){ + a19 = 0; + a2 = 1; + a28 = 1; + a3 = 13; + a11 = 0; + return 24; + } else if((((((a20==1)&&(!(a16==1)&&(((a10==1)&&((a15==1)&&((input==4)&&(((a14==3)||(a14==4))||(a14==5)))))&&!(a25==1))))&&!(a9==1))&&(a6==1))&&((a12==1)&&(((a27==19)&&(((a15==1)&&(a26==1))&&!(a2==1)))&&(a3==13))))){ + a27 = 21; + a2 = 1; + a14 = 5; + a21 = 0; + a16 = 0; + a3 = 12; + a28 = 1; + return 25; + } else if(((!(a9==1)&&((!(a2==1)&&((a25==1)&&((input==6)&&((a14==5)||(a14==6)))))&&(a5==1)))&&(((!(a17==1)&&(((a27==19)&&((a10==1)&&(!(a16==1)&&((a26==1)&&(a20==1)))))||(a17==1)))||(a23==1))&&(a3==13)))){ + a12 = 1; + a2 = 1; + a28 = 1; + a14 = 4; + a5 = 1; + a27 = 20; + return 25; + } else if((((((a1==1)||(((a29==1)&&(a29==1))&&!(a25==1)))&&(a10==1))&&(a27==20))&&(((a14==5)&&((((a5==1)&&((((input==5)&&!(a2==1))&&!(a26==1))&&!(a9==1)))&&(a28==1))&&(a6==1)))&&(a3==12)))){ + a28 = 0; + a26 = 1; + a3 = 14; + a14 = 6; + a4 = 1; + a18 = 0; + a27 = 19; + return 26; + } else if(((!(a5==1)&&(((a2==1)&&((a25==1)&&((a3==12)&&((((a14==3)||(a14==4))&&(input==2))&&!(a5==1)))))&&(a19==1)))&&((((!(a26==1)&&((a27==20)&&((a29==1)&&(a10==1))))&&!(a7==1))&&!(a20==1))&&!(a18==1)))){ + a16 = 1; + a14 = 3; + a26 = 1; + a27 = 21; + a3 = 13; + a11 = 1; + a24 = 0; + return 24; + } else if((((a6==1)&&((((((input==5)&&(((a14==3)||(a14==4))||(a14==5)))&&(a29==1))&&(a3==13))&&(a26==1))&&!(a11==1)))&&((a27==19)&&(((((!(a2==1)&&(!(a25==1)&&(a15==1)))&&!(a1==1))&&!(a21==1))&&(a7==1))&&(a10==1))))){ + a26 = 0; + a14 = 5; + a15 = 1; + a1 = 0; + a27 = 21; + a2 = 1; + a20 = 1; + a3 = 14; + return -1; + } else if((((a18==1)&&((!(a16==1)&&(((a5==1)&&((((a27==21)&&((input==5)&&!(a25==1)))&&(a12==1))&&(a10==1)))&&!(a2==1)))&&!(a13==1)))&&(((((a18==1)&&(a3==14))&&!(a26==1))&&(a14==3))&&(a15==1)))){ + a14 = 5; + a25 = 1; + a27 = 19; + a2 = 1; + a16 = 1; + a4 = 0; + a26 = 1; + a20 = 0; + return -1; + } else if((((!(a26==1)&&((a9==1)||(!(a28==1)||((a11==1)||((a5==1)&&(a27==21))))))&&!(a11==1))&&((a18==1)&&((((a2==1)&&((((input==5)&&((a14==5)||((a14==3)||(a14==4))))&&!(a17==1))&&!(a25==1)))&&(a3==13))&&(a10==1))))){ + a14 = 5; + a3 = 12; + a1 = 0; + a7 = 1; + a25 = 1; + a26 = 1; + a21 = 0; + return 26; + } else if(((((!(a5==1)||(!(a28==1)||(((a27==21)&&(a20==1))&&!(a21==1))))&&(a10==1))||!(a15==1))&&(((a2==1)&&(((a25==1)&&(((a12==1)&&((((a14==3)||(a14==4))||(a14==5))&&(input==3)))&&(a20==1)))&&!(a26==1)))&&(a3==13)))){ + a14 = 3; + a12 = 1; + a28 = 1; + a29 = 1; + return 26; + } else if(((!(a13==1)&&(!(a15==1)||(((a5==1)&&((((a18==1)&&(a3==12))||(a1==1))&&(a2==1)))&&!(a17==1))))&&((a25==1)&&((a6==1)&&((((((a14==7)||((a14==5)||(a14==6)))&&(input==2))&&(a10==1))&&(a27==20))&&!(a26==1)))))){ + a12 = 1; + a26 = 1; + a14 = 3; + a27 = 19; + a23 = 0; + a29 = 1; + return -1; + } else if((((a27==19)&&(((!(a6==1)&&((((((input==5)&&!(a2==1))&&!(a12==1))&&!(a29==1))&&(a10==1))&&(a11==1)))&&(a3==14))&&(a14==3)))&&((((a17==1)&&((a25==1)&&(a28==1)))&&!(a28==1))&&!(a26==1)))){ + a22 = 1; + a2 = 1; + a4 = 0; + a14 = 4; + a3 = 13; + a23 = 1; + a26 = 1; + return -1; + } else if(((!(a2==1)&&((a25==1)&&(!(a26==1)&&((!(a9==1)&&(((!(a23==1)&&(((a14==5)||((a14==3)||(a14==4)))&&(input==5)))&&!(a9==1))&&!(a9==1)))&&(a3==14)))))&&(((a5==1)&&(((a5==1)&&!(a19==1))&&(a27==21)))&&(a10==1)))){ + if((a9==1)){ + a7 = 0; + a9 = 1; + a2 = 1; + a26 = 1; + a14 = 3; + a27 = 19; + a4 = 0; + }else{ + a5 = 0; + a14 = 7; + a17 = 1; + a22 = 0; + } + return 22; + } else if(((!(a23==1)&&((((a14==5)&&((a12==1)&&((a12==1)&&((input==3)&&(a3==14)))))&&(a2==1))&&(a27==21)))&&((((a16==1)||((a26==1)&&((a25==1)&&(!(a18==1)||(a15==1)))))&&(a10==1))||(a11==1)))){ + a13 = 0; + a18 = 1; + a12 = 1; + return 26; + } else if((((a27==20)&&((a2==1)&&((a26==1)&&((((((a14==5)||(a14==6))&&(input==2))&&!(a13==1))&&(a12==1))&&!(a25==1)))))&&(((((((a18==1)&&(a29==1))||(a13==1))&&(a15==1))||!(a7==1))&&(a3==13))&&(a10==1)))){ + a14 = 3; + a18 = 1; + a25 = 1; + a27 = 19; + a17 = 0; + a3 = 12; + a20 = 1; + return -1; + } + if((((((((a2==1)&&(a14==6))&&(a25==1))&&(a3==14))&&(a27==19))&&(a10==1))&&(a26==1))){ + error_12: exit(0); + } + if((((((((a2==1)&&(a14==5))&&(a25==1))&&(a3==13))&&(a27==19))&&(a10==1))&&!(a26==1))){ + error_21: exit(0); + } + if((((((((a2==1)&&(a14==5))&&(a25==1))&&(a3==14))&&(a27==19))&&(a10==1))&&(a26==1))){ + error_11: exit(0); + } + if((((((((a2==1)&&(a14==3))&&!(a25==1))&&(a3==12))&&(a27==19))&&(a10==1))&&!(a26==1))){ + error_44: exit(0); + } + if((((((((a2==1)&&(a14==5))&&(a25==1))&&(a3==12))&&(a27==19))&&(a10==1))&&(a26==1))){ + error_1: exit(0); + } + if((((((((a2==1)&&(a14==5))&&!(a25==1))&&(a3==13))&&(a27==19))&&(a10==1))&&(a26==1))){ + error_36: exit(0); + } + if((((((((a2==1)&&(a14==4))&&(a25==1))&&(a3==12))&&(a27==19))&&(a10==1))&&(a26==1))){ + error_0: __VERIFIER_error(); + } + if((((((((a2==1)&&(a14==6))&&(a25==1))&&(a3==12))&&(a27==19))&&(a10==1))&&(a26==1))){ + error_2: exit(0); + } + if((((((((a2==1)&&(a14==7))&&!(a25==1))&&(a3==13))&&(a27==19))&&(a10==1))&&(a26==1))){ + error_38: exit(0); + } + if((((((((a2==1)&&(a14==7))&&!(a25==1))&&(a3==12))&&(a27==19))&&(a10==1))&&!(a26==1))){ + error_48: exit(0); + } + if((((((((a2==1)&&(a14==6))&&!(a25==1))&&(a3==13))&&(a27==19))&&(a10==1))&&(a26==1))){ + error_37: exit(0); + } + if((((((((a2==1)&&(a14==3))&&(a25==1))&&(a3==13))&&(a27==19))&&(a10==1))&&(a26==1))){ + error_4: exit(0); + } + if((((((((a2==1)&&(a14==3))&&(a25==1))&&(a3==12))&&(a27==20))&&(a10==1))&&(a26==1))){ + error_59: exit(0); + } + if((((((((a2==1)&&(a14==4))&&(a25==1))&&(a3==14))&&(a27==19))&&(a10==1))&&(a26==1))){ + error_10: exit(0); + } + if((((((((a2==1)&&(a14==4))&&(a25==1))&&(a3==13))&&(a27==19))&&(a10==1))&&!(a26==1))){ + error_20: exit(0); + } + if((((((((a2==1)&&(a14==4))&&(a25==1))&&(a3==13))&&(a27==19))&&(a10==1))&&(a26==1))){ + error_5: exit(0); + } + if((((((((a2==1)&&(a14==4))&&(a25==1))&&(a3==12))&&(a27==19))&&(a10==1))&&!(a26==1))){ + error_15: exit(0); + } + if((((((((a2==1)&&(a14==6))&&(a25==1))&&(a3==14))&&(a27==19))&&(a10==1))&&!(a26==1))){ + error_27: exit(0); + } + if((((((((a2==1)&&(a14==7))&&!(a25==1))&&(a3==12))&&(a27==19))&&(a10==1))&&(a26==1))){ + error_33: exit(0); + } + if((((((((a2==1)&&(a14==3))&&(a25==1))&&(a3==14))&&(a27==19))&&(a10==1))&&(a26==1))){ + error_9: exit(0); + } + if((((((((a2==1)&&(a14==3))&&!(a25==1))&&(a3==12))&&(a27==19))&&(a10==1))&&(a26==1))){ + error_29: exit(0); + } + if((((((((a2==1)&&(a14==6))&&!(a25==1))&&(a3==12))&&(a27==19))&&(a10==1))&&!(a26==1))){ + error_47: exit(0); + } + if((((((((a2==1)&&(a14==5))&&!(a25==1))&&(a3==14))&&(a27==19))&&(a10==1))&&!(a26==1))){ + error_56: exit(0); + } + if((((((((a2==1)&&(a14==3))&&(a25==1))&&(a3==14))&&(a27==19))&&(a10==1))&&!(a26==1))){ + error_24: exit(0); + } + if((((((((a2==1)&&(a14==7))&&!(a25==1))&&(a3==14))&&(a27==19))&&(a10==1))&&!(a26==1))){ + error_58: exit(0); + } + if((((((((a2==1)&&(a14==4))&&!(a25==1))&&(a3==12))&&(a27==19))&&(a10==1))&&!(a26==1))){ + error_45: exit(0); + } + if((((((((a2==1)&&(a14==5))&&(a25==1))&&(a3==13))&&(a27==19))&&(a10==1))&&(a26==1))){ + error_6: exit(0); + } + if((((((((a2==1)&&(a14==5))&&(a25==1))&&(a3==14))&&(a27==19))&&(a10==1))&&!(a26==1))){ + error_26: exit(0); + } + if((((((((a2==1)&&(a14==3))&&!(a25==1))&&(a3==14))&&(a27==19))&&(a10==1))&&(a26==1))){ + error_39: exit(0); + } + if((((((((a2==1)&&(a14==7))&&(a25==1))&&(a3==14))&&(a27==19))&&(a10==1))&&(a26==1))){ + error_13: exit(0); + } + if((((((((a2==1)&&(a14==4))&&!(a25==1))&&(a3==12))&&(a27==19))&&(a10==1))&&(a26==1))){ + error_30: exit(0); + } + if((((((((a2==1)&&(a14==4))&&!(a25==1))&&(a3==14))&&(a27==19))&&(a10==1))&&!(a26==1))){ + error_55: exit(0); + } + if((((((((a2==1)&&(a14==6))&&(a25==1))&&(a3==13))&&(a27==19))&&(a10==1))&&(a26==1))){ + error_7: exit(0); + } + if((((((((a2==1)&&(a14==6))&&!(a25==1))&&(a3==12))&&(a27==19))&&(a10==1))&&(a26==1))){ + error_32: exit(0); + } + if((((((((a2==1)&&(a14==4))&&!(a25==1))&&(a3==13))&&(a27==19))&&(a10==1))&&(a26==1))){ + error_35: exit(0); + } + if((((((((a2==1)&&(a14==3))&&!(a25==1))&&(a3==14))&&(a27==19))&&(a10==1))&&!(a26==1))){ + error_54: exit(0); + } + if((((((((a2==1)&&(a14==7))&&(a25==1))&&(a3==12))&&(a27==19))&&(a10==1))&&(a26==1))){ + error_3: exit(0); + } + if((((((((a2==1)&&(a14==7))&&(a25==1))&&(a3==13))&&(a27==19))&&(a10==1))&&!(a26==1))){ + error_23: exit(0); + } + if((((((((a2==1)&&(a14==6))&&(a25==1))&&(a3==12))&&(a27==19))&&(a10==1))&&!(a26==1))){ + error_17: exit(0); + } + if((((((((a2==1)&&(a14==7))&&(a25==1))&&(a3==13))&&(a27==19))&&(a10==1))&&(a26==1))){ + error_8: exit(0); + } + if((((((((a2==1)&&(a14==3))&&(a25==1))&&(a3==12))&&(a27==19))&&(a10==1))&&!(a26==1))){ + error_14: exit(0); + } + if((((((((a2==1)&&(a14==4))&&!(a25==1))&&(a3==14))&&(a27==19))&&(a10==1))&&(a26==1))){ + error_40: exit(0); + } + if((((((((a2==1)&&(a14==6))&&!(a25==1))&&(a3==14))&&(a27==19))&&(a10==1))&&(a26==1))){ + error_42: exit(0); + } + if((((((((a2==1)&&(a14==6))&&!(a25==1))&&(a3==14))&&(a27==19))&&(a10==1))&&!(a26==1))){ + error_57: exit(0); + } + if((((((((a2==1)&&(a14==7))&&(a25==1))&&(a3==12))&&(a27==19))&&(a10==1))&&!(a26==1))){ + error_18: exit(0); + } + if((((((((a2==1)&&(a14==6))&&(a25==1))&&(a3==13))&&(a27==19))&&(a10==1))&&!(a26==1))){ + error_22: exit(0); + } + if((((((((a2==1)&&(a14==4))&&!(a25==1))&&(a3==13))&&(a27==19))&&(a10==1))&&!(a26==1))){ + error_50: exit(0); + } + if((((((((a2==1)&&(a14==3))&&(a25==1))&&(a3==12))&&(a27==19))&&(a10==1))&&(a26==1))){ + globalError: exit(0); + } + if((((((((a2==1)&&(a14==7))&&!(a25==1))&&(a3==14))&&(a27==19))&&(a10==1))&&(a26==1))){ + error_43: exit(0); + } + if((((((((a2==1)&&(a14==3))&&!(a25==1))&&(a3==13))&&(a27==19))&&(a10==1))&&(a26==1))){ + error_34: exit(0); + } + if((((((((a2==1)&&(a14==7))&&(a25==1))&&(a3==14))&&(a27==19))&&(a10==1))&&!(a26==1))){ + error_28: exit(0); + } + if((((((((a2==1)&&(a14==5))&&!(a25==1))&&(a3==13))&&(a27==19))&&(a10==1))&&!(a26==1))){ + error_51: exit(0); + } + if((((((((a2==1)&&(a14==5))&&!(a25==1))&&(a3==12))&&(a27==19))&&(a10==1))&&!(a26==1))){ + error_46: exit(0); + } + if((((((((a2==1)&&(a14==3))&&(a25==1))&&(a3==13))&&(a27==19))&&(a10==1))&&!(a26==1))){ + error_19: exit(0); + } + if((((((((a2==1)&&(a14==6))&&!(a25==1))&&(a3==13))&&(a27==19))&&(a10==1))&&!(a26==1))){ + error_52: exit(0); + } + if((((((((a2==1)&&(a14==4))&&(a25==1))&&(a3==14))&&(a27==19))&&(a10==1))&&!(a26==1))){ + error_25: exit(0); + } + if((((((((a2==1)&&(a14==5))&&!(a25==1))&&(a3==14))&&(a27==19))&&(a10==1))&&(a26==1))){ + error_41: exit(0); + } + if((((((((a2==1)&&(a14==5))&&(a25==1))&&(a3==12))&&(a27==19))&&(a10==1))&&!(a26==1))){ + error_16: exit(0); + } + if((((((((a2==1)&&(a14==7))&&!(a25==1))&&(a3==13))&&(a27==19))&&(a10==1))&&!(a26==1))){ + error_53: exit(0); + } + if((((((((a2==1)&&(a14==5))&&!(a25==1))&&(a3==12))&&(a27==19))&&(a10==1))&&(a26==1))){ + error_31: exit(0); + } + if((((((((a2==1)&&(a14==3))&&!(a25==1))&&(a3==13))&&(a27==19))&&(a10==1))&&!(a26==1))){ + error_49: exit(0); + } + return -2; + } + +int main() +{ + // default output + int output = -1; + + // main i/o-loop + while(1) + { + // read input + int input; + input = __VERIFIER_nondet_int(); + if ((input != 1) && (input != 2) && (input != 3) && (input != 4) && (input != 5) && (input != 6)) return -2; + + // operate eca engine + output = calculate_output(input); + + } +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem07_label00_true-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem07_label00_true-unreach-call.c new file mode 100644 index 000000000..2238e4c6e --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem07_label00_true-unreach-call.c @@ -0,0 +1,73652 @@ +extern void __VERIFIER_error(void); +extern int __VERIFIER_nondet_int(void); +extern void exit(int); + + // inputs + int a= 1; + int f= 6; + int d= 4; + int c= 3; + int b= 2; + int e= 5; + + // outputs + int u = 21; + int v = 22; + int w = 23; + int x = 24; + int y = 25; + int z = 26; + + + int a14 = 8; + int a0 = 1; + int a11 = 1; + int a28 = 1; + int a20 = 1; + int a7 = 0; + int a22 = 1; + int a24 = 1; + int a25 = 1; + int a29 = 6; + int a19 = 3; + + int calculate_output2(int input); + int calculate_output3(int input); + int calculate_output4(int input); + int calculate_output5(int input); + int calculate_output6(int input); + int calculate_output7(int input); + int calculate_output8(int input); + int calculate_output9(int input); + int calculate_output10(int input); + int calculate_output11(int input); + int calculate_output12(int input); + int calculate_output13(int input); + int calculate_output14(int input); + int calculate_output15(int input); + int calculate_output16(int input); + int calculate_output17(int input); + int calculate_output18(int input); + int calculate_output19(int input); + int calculate_output20(int input); + int calculate_output21(int input); + int calculate_output22(int input); + int calculate_output23(int input); + int calculate_output24(int input); + int calculate_output25(int input); + int calculate_output26(int input); + int calculate_output27(int input); + int calculate_output28(int input); + int calculate_output29(int input); + int calculate_output30(int input); + int calculate_output31(int input); + int calculate_output32(int input); + int calculate_output33(int input); + int calculate_output34(int input); + int calculate_output35(int input); + int calculate_output36(int input); + int calculate_output37(int input); + int calculate_output38(int input); + int calculate_output39(int input); + int calculate_output40(int input); + int calculate_output41(int input); + int calculate_output42(int input); + int calculate_output43(int input); + int calculate_output44(int input); + int calculate_output45(int input); + int calculate_output46(int input); + + int calculate_output(int input) { + if(((!(a7==1)&&(!(a11==1)&&((a24==1)&&(!(a25==1)&&((a28==1)&&(!(a0==1)&&((!(a20==1)&&((a22==1)&&((input==5)&&((a29==5)||(a29==6)))))&&(a19==3))))))))&&(a14==8))){ + a7 = 1; + a14 = 9; + a20 = 1; + a25 = 1; + a19 = 2; + a29 = 7; + return 24; + } else if((((a28==1)&&(!(a0==1)&&((a14==9)&&((a22==1)&&((a11==1)&&(!(a24==1)&&((((a19==1)&&((!(a7==1)&&(a25==1))&&(a29==6)))||((((a29==9)&&((a7==1)&&!(a25==1)))&&(a19==5))||(((!(a7==1)&&(a25==1))&&(a29==5))&&(a19==1))))&&(input==6))))))))&&(a20==1))){ + a0 = 1; + a19 = 1; + a24 = 1; + a7 = 1; + a29 = 5; + a25 = 1; + a14 = 8; + return -1; + } else if(((a7==1)&&((((((a20==1)&&((a28==1)&&(((a29==5)&&(((a22==1)&&(input==3))&&(a0==1)))&&(a19==2))))&&(a11==1))&&(a14==10))&&(a25==1))&&!(a24==1)))){ + a14 = 8; + a24 = 1; + a25 = 0; + a29 = 7; + return -1; + } else if(((((a11==1)&&((((a22==1)&&((((a24==1)&&(((input==3)&&(a14==10))&&!(a25==1)))&&(a19==3))&&(a29==7)))&&(a0==1))&&(a20==1)))&&(a7==1))&&(a28==1))){ + a7 = 0; + a0 = 0; + a29 = 8; + a19 = 4; + a14 = 9; + a11 = 0; + return -1; + } else if((((a0==1)&&(!(a24==1)&&(((a28==1)&&(!(a11==1)&&((!(a7==1)&&(((a19==2)&&(((a29==8)||(a29==9))&&(input==1)))&&(a22==1)))&&(a14==8))))&&!(a20==1))))&&!(a25==1))){ + a29 = 5; + a25 = 1; + a11 = 1; + a24 = 1; + a7 = 1; + a19 = 1; + a20 = 1; + return -1; + } else if((((!(a20==1)&&((a28==1)&&((a7==1)&&(!(a11==1)&&((a24==1)&&((a14==8)&&((a19==4)&&(((input==6)&&(a22==1))&&(a0==1)))))))))&&(a29==9))&&!(a25==1))){ + a11 = 1; + a25 = 1; + a0 = 0; + a20 = 1; + a7 = 0; + a19 = 2; + return 23; + } else if((((((a7==1)&&((a28==1)&&(((a20==1)&&((a19==5)&&(!(a11==1)&&((a29==5)&&((a0==1)&&(input==4))))))&&(a14==9))))&&(a25==1))&&(a22==1))&&!(a24==1))){ + a14 = 8; + a11 = 1; + a19 = 1; + a24 = 1; + return -1; + } else if((!(a0==1)&&(((!(a7==1)&&(((a22==1)&&((a11==1)&&((a20==1)&&((a19==2)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==6))&&(a14==9))))))&&!(a25==1)))&&(a28==1))&&(a24==1)))){ + a19 = 3; + a7 = 1; + a29 = 6; + a24 = 0; + a14 = 8; + return 24; + } else if(((((a0==1)&&((a19==4)&&(((!(a24==1)&&((a25==1)&&(!(a20==1)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==2))&&(a14==9)))))&&(a11==1))&&(a22==1))))&&!(a7==1))&&(a28==1))){ + a0 = 0; + a14 = 8; + a25 = 0; + a29 = 6; + a24 = 1; + a20 = 1; + return 24; + } else if(((a11==1)&&((a14==9)&&(((((((((((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))&&(input==5))&&(a28==1))&&(a25==1))&&(a22==1))&&!(a24==1))&&(a0==1))&&!(a7==1))&&!(a20==1))))){ + a14 = 8; + a19 = 5; + a29 = 5; + a7 = 1; + a0 = 0; + a25 = 0; + a11 = 0; + return -1; + } else if((!(a25==1)&&(((a14==8)&&((!(a11==1)&&(!(a0==1)&&(((!(a24==1)&&((a28==1)&&(((a29==8)||(a29==9))&&(input==6))))&&(a22==1))&&(a7==1))))&&(a20==1)))&&(a19==5)))){ + a7 = 0; + a19 = 1; + a14 = 9; + a24 = 1; + a29 = 9; + a25 = 1; + return 23; + } else if((!(a11==1)&&((((a25==1)&&((!(a20==1)&&(((a14==9)&&((a7==1)&&((a28==1)&&((input==2)&&((a29==5)||(a29==6))))))&&(a22==1)))&&(a24==1)))&&(a19==1))&&(a0==1)))){ + a14 = 8; + a11 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if((((a22==1)&&(!(a24==1)&&((!(a7==1)&&((!(a11==1)&&((!(a25==1)&&((((a29==6)||(a29==7))&&(input==1))&&(a14==8)))&&(a20==1)))&&(a28==1)))&&(a19==3))))&&(a0==1))){ + a25 = 1; + a24 = 1; + a11 = 1; + a0 = 0; + a29 = 8; + a19 = 2; + return 24; + } else if((((a28==1)&&((((a19==1)&&((a25==1)&&((((a22==1)&&((a29==8)&&((input==2)&&!(a0==1))))&&!(a11==1))&&(a20==1))))&&!(a7==1))&&!(a24==1)))&&(a14==9))){ + a14 = 8; + a19 = 3; + a29 = 7; + return -1; + } else if(((a28==1)&&((a14==8)&&((a19==1)&&((a7==1)&&((((a24==1)&&(!(a25==1)&&((a20==1)&&(((a29==5)&&(input==2))&&(a22==1)))))&&(a0==1))&&!(a11==1))))))){ + a19 = 2; + a20 = 0; + a7 = 0; + a0 = 0; + return 24; + } else if((!(a0==1)&&((!(a20==1)&&(((a19==2)&&(((a24==1)&&((a28==1)&&(((a14==8)&&(((a29==6)||(a29==7))&&(input==4)))&&!(a11==1))))&&(a22==1)))&&!(a7==1)))&&(a25==1)))){ + a7 = 1; + a20 = 1; + a11 = 1; + a29 = 5; + a19 = 1; + a0 = 1; + return -1; + } else if(((a7==1)&&((!(a24==1)&&(!(a25==1)&&(((a0==1)&&((a20==1)&&((a14==9)&&(!(a11==1)&&(((input==2)&&((a29==7)||((a29==5)||(a29==6))))&&(a19==5))))))&&(a22==1))))&&(a28==1)))){ + a20 = 0; + a19 = 3; + a29 = 9; + return 23; + } else if(((a28==1)&&(!(a0==1)&&(((a22==1)&&((((((a29==6)&&((!(a24==1)&&((a20==1)&&(a7==1)))&&(a25==1)))&&(a19==1))||(((a19==5)&&((!(a25==1)&&((!(a20==1)&&!(a7==1))&&(a24==1)))&&(a29==9)))||((((a25==1)&&(!(a24==1)&&((a20==1)&&(a7==1))))&&(a29==5))&&(a19==1))))&&(input==3))&&(a11==1)))&&(a14==8))))){ + a0 = 1; + a20 = 1; + a19 = 1; + a7 = 1; + a24 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if(((((a7==1)&&(((((a20==1)&&(((a14==9)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==1))&&(a22==1)))&&(a28==1)))&&!(a11==1))&&(a19==2))&&!(a25==1)))&&(a0==1))&&!(a24==1))){ + a20 = 0; + a19 = 1; + a29 = 6; + return 24; + } else if((((!(a20==1)&&(((((((((input==3)&&((a29==5)||(a29==6)))&&(a22==1))&&(a14==9))&&(a7==1))&&!(a25==1))&&(a11==1))&&(a28==1))&&(a19==1)))&&!(a0==1))&&(a24==1))){ + a0 = 1; + a20 = 1; + a29 = 5; + a14 = 8; + a25 = 1; + return -1; + } else if((!(a11==1)&&(!(a24==1)&&((((!(a20==1)&&((((((input==4)&&((a29==8)||((a29==6)||(a29==7))))&&(a14==9))&&!(a25==1))&&(a22==1))&&!(a7==1)))&&(a19==2))&&(a28==1))&&(a0==1))))){ + a29 = 8; + a7 = 1; + a19 = 3; + a14 = 8; + return 24; + } else if(((a28==1)&&(((!(a25==1)&&((!(a24==1)&&((a14==9)&&((a20==1)&&(((((a29==5)||(a29==6))&&(input==2))&&(a19==2))&&!(a0==1)))))&&(a22==1)))&&!(a11==1))&&(a7==1)))){ + a14 = 8; + a24 = 1; + a0 = 1; + a29 = 5; + a19 = 1; + a25 = 1; + a11 = 1; + return -1; + } else if(((((a24==1)&&((((a19==4)&&((!(a11==1)&&((a0==1)&&(((input==1)&&((a29==7)||(a29==8)))&&(a14==9))))&&(a22==1)))&&(a28==1))&&!(a25==1)))&&!(a20==1))&&!(a7==1))){ + a29 = 6; + a19 = 3; + a0 = 0; + a11 = 1; + a14 = 8; + return 21; + } else if((((a25==1)&&((a22==1)&&(((((((!(a7==1)&&((input==3)&&((a29==8)||(a29==9))))&&!(a24==1))&&(a0==1))&&(a14==9))&&(a20==1))&&(a11==1))&&(a19==4))))&&(a28==1))){ + a7 = 1; + a25 = 0; + a29 = 9; + a20 = 0; + a19 = 2; + a0 = 0; + a24 = 1; + a14 = 8; + return 21; + } else if((((((a0==1)&&(((a24==1)&&((a28==1)&&((a22==1)&&((a14==10)&&(!(a7==1)&&((input==4)&&((a29==8)||((a29==6)||(a29==7)))))))))&&(a25==1)))&&(a20==1))&&(a11==1))&&(a19==2))){ + a29 = 5; + a24 = 0; + a7 = 1; + a0 = 0; + a20 = 0; + a14 = 8; + a19 = 3; + return -1; + } else if(((a22==1)&&(((a28==1)&&((!(a20==1)&&(((a19==3)&&((a29==7)&&(!(a25==1)&&((a14==8)&&((a7==1)&&(input==1))))))&&!(a11==1)))&&(a0==1)))&&!(a24==1)))){ + a11 = 1; + a24 = 1; + a29 = 5; + a20 = 1; + a25 = 1; + a19 = 1; + return -1; + } else if((!(a0==1)&&(((a25==1)&&(((((a7==1)&&(((a14==9)&&((a28==1)&&((input==4)&&(a22==1))))&&!(a24==1)))&&!(a11==1))&&!(a20==1))&&(a19==5)))&&(a29==9)))){ + a19 = 3; + a25 = 0; + a11 = 1; + a7 = 0; + a0 = 1; + return 24; + } else if((((a11==1)&&((((a28==1)&&((a14==9)&&((!(a0==1)&&((a24==1)&&(!(a20==1)&&((input==5)&&(((a29==7)||(a29==8))||(a29==9))))))&&!(a7==1))))&&(a19==3))&&(a22==1)))&&!(a25==1))){ + a7 = 1; + a29 = 7; + a19 = 2; + a14 = 8; + a0 = 1; + a20 = 1; + a25 = 1; + return -1; + } else if((((a7==1)&&(((a14==9)&&(((a22==1)&&((!(a25==1)&&(!(a0==1)&&((((a19==4)&&(a29==5))||(((a19==3)&&(a29==8))||((a19==3)&&(a29==9))))&&(input==4))))&&!(a20==1)))&&(a24==1)))&&(a11==1)))&&(a28==1))){ + a14 = 8; + a20 = 1; + a11 = 0; + a25 = 1; + a19 = 3; + a29 = 6; + a7 = 0; + return -1; + } else if((!(a24==1)&&((a0==1)&&((!(a25==1)&&(((((((((a29==5)&&(a19==4))||(((a19==3)&&(a29==8))||((a19==3)&&(a29==9))))&&(input==1))&&(a11==1))&&(a28==1))&&(a20==1))&&!(a7==1))&&(a14==8)))&&(a22==1))))){ + a24 = 1; + a7 = 1; + a19 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if(((a19==2)&&(((a24==1)&&((((!(a20==1)&&((a0==1)&&(((((a29==7)||(a29==8))&&(input==1))&&(a14==9))&&(a22==1))))&&(a7==1))&&(a25==1))&&!(a11==1)))&&(a28==1)))){ + a0 = 0; + a11 = 1; + a29 = 9; + a19 = 4; + a14 = 8; + return 24; + } else if((((((a20==1)&&((a28==1)&&(!(a0==1)&&((!(a11==1)&&((a25==1)&&((input==2)&&((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))||((a19==5)&&(a29==6))))))&&(a22==1)))))&&!(a24==1))&&(a7==1))&&(a14==8))){ + a0 = 1; + a19 = 5; + a7 = 0; + a20 = 0; + a29 = 6; + return 23; + } else if(((a25==1)&&(((((a0==1)&&(((a19==5)&&(((!(a7==1)&&((input==1)&&((a29==7)||((a29==5)||(a29==6)))))&&!(a11==1))&&(a22==1)))&&(a28==1)))&&!(a24==1))&&!(a20==1))&&(a14==9)))){ + a11 = 1; + a19 = 1; + a29 = 7; + a25 = 0; + a24 = 1; + a7 = 1; + return -1; + } else if(((((a11==1)&&(((a24==1)&&(((a28==1)&&((a20==1)&&((((a25==1)&&(input==4))&&(a19==3))&&(a29==7))))&&(a14==9)))&&!(a7==1)))&&(a22==1))&&(a0==1))){ + a24 = 0; + a14 = 8; + a11 = 0; + a25 = 0; + a19 = 1; + a20 = 0; + return 23; + } else if((((!(a24==1)&&(((a14==9)&&(!(a7==1)&&(!(a25==1)&&((!(a20==1)&&((a22==1)&&((input==1)&&(a28==1))))&&!(a0==1)))))&&(a11==1)))&&(a19==3))&&(a29==8))){ + a29 = 6; + a0 = 1; + a25 = 1; + return 24; + } else if((!(a0==1)&&(((((a25==1)&&((a7==1)&&((a28==1)&&(!(a11==1)&&((a19==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==6))&&(a22==1)))))))&&(a20==1))&&(a14==9))&&!(a24==1)))){ + a0 = 1; + a7 = 0; + a20 = 0; + a29 = 5; + a11 = 1; + a25 = 0; + a19 = 5; + return 23; + } else if(((a22==1)&&((a14==9)&&((a25==1)&&(((a0==1)&&(((((((input==5)&&(((a29==5)||(a29==6))||(a29==7)))&&(a28==1))&&!(a11==1))&&(a7==1))&&!(a24==1))&&!(a20==1)))&&(a19==1)))))){ + a0 = 0; + a14 = 8; + a29 = 6; + a24 = 1; + a11 = 1; + a20 = 1; + a19 = 5; + a7 = 0; + return 21; + } else if((((((((!(a25==1)&&(((a28==1)&&((input==1)&&(((a19==3)&&(a29==6))||(((a29==9)&&(a19==2))||((a19==3)&&(a29==5))))))&&(a11==1)))&&!(a24==1))&&(a0==1))&&(a14==8))&&(a22==1))&&(a20==1))&&!(a7==1))){ + a29 = 8; + a19 = 4; + a7 = 1; + a0 = 0; + return 24; + } else if((((a29==5)&&((a28==1)&&((!(a7==1)&&((a19==3)&&(!(a11==1)&&(!(a24==1)&&((((a20==1)&&(input==5))&&(a22==1))&&(a0==1))))))&&(a25==1))))&&(a14==9))){ + a24 = 1; + a29 = 9; + return 24; + } else if(((a14==8)&&(((((((a28==1)&&((((input==6)&&((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))||((a29==6)&&(a19==3))))&&(a0==1))&&!(a7==1)))&&(a20==1))&&(a22==1))&&!(a11==1))&&(a24==1))&&(a25==1)))){ + a29 = 6; + a19 = 4; + a24 = 0; + a0 = 0; + return 21; + } else if(((a11==1)&&(!(a7==1)&&((a22==1)&&(!(a20==1)&&((((a28==1)&&(!(a24==1)&&((((input==4)&&((a29==8)||(a29==9)))&&(a19==3))&&!(a0==1))))&&(a14==8))&&(a25==1))))))){ + a19 = 1; + a29 = 5; + a7 = 1; + a20 = 1; + a0 = 1; + a24 = 1; + return -1; + } else if(((a20==1)&&((a22==1)&&((a7==1)&&((a28==1)&&(!(a25==1)&&(((((a14==8)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==4))&&!(a24==1)))&&(a11==1))&&(a19==5))&&(a0==1)))))))){ + a24 = 1; + a29 = 5; + a0 = 0; + a19 = 2; + a7 = 0; + return 23; + } else if(((!(a25==1)&&(((a19==4)&&(((a20==1)&&(!(a11==1)&&((a28==1)&&((a29==5)&&(((input==1)&&!(a0==1))&&!(a7==1))))))&&(a14==8)))&&(a22==1)))&&!(a24==1))){ + a24 = 1; + a14 = 9; + a20 = 0; + a25 = 1; + a29 = 6; + a19 = 3; + a7 = 1; + return 21; + } else if(((((!(a25==1)&&((a22==1)&&(!(a11==1)&&(((a19==1)&&(!(a0==1)&&((a14==9)&&((input==3)&&((a29==5)||(a29==6))))))&&(a24==1)))))&&(a7==1))&&!(a20==1))&&(a28==1))){ + a14 = 8; + a0 = 1; + a29 = 5; + a11 = 1; + a25 = 1; + a20 = 1; + return -1; + } else if((((((a14==8)&&((a28==1)&&((((((a24==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==3)))&&!(a7==1))&&(a22==1))&&(a19==3))&&!(a25==1))))&&(a11==1))&&!(a0==1))&&(a20==1))){ + a25 = 1; + a19 = 2; + a29 = 7; + return 23; + } else if(((a0==1)&&(((a24==1)&&((a14==8)&&((!(a25==1)&&(((a19==5)&&(((((a29==9)||((a29==7)||(a29==8)))&&(input==2))&&(a7==1))&&(a20==1)))&&(a22==1)))&&!(a11==1))))&&(a28==1)))){ + a29 = 8; + a24 = 0; + a0 = 0; + return 23; + } else if(((((a11==1)&&(((a14==8)&&((((a0==1)&&((!(a25==1)&&((input==5)&&((a29==5)||(a29==6))))&&(a28==1)))&&(a22==1))&&!(a7==1)))&&(a24==1)))&&(a20==1))&&(a19==4))){ + a24 = 0; + a19 = 3; + a25 = 1; + a7 = 1; + a29 = 5; + return 21; + } else if(((((a14==8)&&((a0==1)&&((a22==1)&&((a20==1)&&((!(a11==1)&&(((input==6)&&((((a19==2)&&(a29==8))||((a29==9)&&(a19==2)))||((a29==5)&&(a19==3))))&&!(a25==1)))&&(a28==1))))))&&!(a24==1))&&(a7==1))){ + a19 = 5; + a0 = 0; + a24 = 1; + a29 = 7; + a11 = 1; + return 24; + } else if(((a24==1)&&(((a25==1)&&((((a19==2)&&((a0==1)&&(((a7==1)&&((a14==10)&&((((a29==6)||(a29==7))||(a29==8))&&(input==5))))&&(a11==1))))&&!(a20==1))&&(a28==1)))&&(a22==1)))){ + a29 = 6; + a14 = 9; + return -1; + } else if((((a22==1)&&((((a7==1)&&((a28==1)&&((a11==1)&&(((((((a19==1)&&(a29==8))||((a19==1)&&(a29==9)))||((a19==2)&&(a29==5)))&&(input==5))&&(a24==1))&&!(a25==1)))))&&(a14==8))&&!(a0==1)))&&(a20==1))){ + a7 = 0; + a24 = 0; + a20 = 0; + a19 = 2; + a11 = 0; + a29 = 6; + a0 = 1; + return 21; + } else if(((!(a24==1)&&((((a28==1)&&(((a19==3)&&((a7==1)&&(((((a29==6)||(a29==7))&&(input==4))&&(a11==1))&&(a20==1))))&&(a25==1)))&&(a14==9))&&(a22==1)))&&!(a0==1))){ + a19 = 4; + a14 = 8; + a29 = 9; + a24 = 1; + a25 = 0; + return 24; + } else if((!(a11==1)&&((a7==1)&&((a29==8)&&(((((a22==1)&&((a14==9)&&((((input==4)&&!(a24==1))&&(a0==1))&&(a20==1))))&&(a19==3))&&!(a25==1))&&(a28==1)))))){ + a20 = 0; + a14 = 8; + a19 = 5; + a29 = 5; + a24 = 1; + a7 = 0; + a0 = 0; + return -1; + } else if(((a0==1)&&((((a25==1)&&(!(a24==1)&&(!(a7==1)&&((((a14==9)&&((input==1)&&(((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))))&&(a28==1))&&(a22==1)))))&&(a20==1))&&(a11==1)))){ + a29 = 5; + a14 = 8; + a19 = 1; + a7 = 1; + a24 = 1; + return -1; + } else if(((a28==1)&&(((a22==1)&&((a0==1)&&(!(a24==1)&&((((a25==1)&&(!(a11==1)&&((a20==1)&&(((a29==6)||(a29==7))&&(input==2)))))&&(a7==1))&&(a14==9)))))&&(a19==3)))){ + a25 = 0; + a19 = 5; + a29 = 5; + a11 = 1; + return 23; + } else if(((a28==1)&&((a22==1)&&(!(a0==1)&&(!(a20==1)&&((a24==1)&&(!(a7==1)&&((((a11==1)&&((input==5)&&(((a19==3)&&(a29==5))||(((a29==8)&&(a19==2))||((a19==2)&&(a29==9))))))&&(a25==1))&&(a14==9))))))))){ + a19 = 5; + a7 = 1; + a29 = 5; + a20 = 1; + a0 = 1; + return 21; + } else if(((a28==1)&&(!(a24==1)&&((((a14==8)&&((a19==2)&&(((a11==1)&&(!(a20==1)&&((a22==1)&&((input==5)&&(((a29==5)||(a29==6))||(a29==7))))))&&!(a25==1))))&&!(a0==1))&&(a7==1))))){ + a19 = 4; + a29 = 5; + a14 = 9; + a24 = 1; + return 24; + } else if((((((a28==1)&&((!(a25==1)&&((((a7==1)&&((a29==9)&&((input==2)&&(a11==1))))&&(a22==1))&&(a14==10)))&&(a0==1)))&&(a24==1))&&(a20==1))&&(a19==4))){ + a14 = 8; + a7 = 0; + a25 = 1; + a19 = 2; + a29 = 5; + a0 = 0; + return 24; + } else if(((a0==1)&&((((!(a11==1)&&(((a24==1)&&(((a28==1)&&(!(a20==1)&&(((a29==8)||(a29==9))&&(input==4))))&&(a7==1)))&&(a14==9)))&&(a22==1))&&(a19==5))&&!(a25==1)))){ + a19 = 2; + a29 = 7; + a0 = 0; + a11 = 1; + a14 = 8; + a7 = 0; + return -1; + } else if(((a20==1)&&((a11==1)&&(!(a24==1)&&(((a14==8)&&(((((input==4)&&(((a19==5)&&((a29==9)&&(a25==1)))||(((a29==5)&&!(a25==1))&&(a19==1))))&&(a22==1))&&!(a7==1))&&!(a0==1)))&&(a28==1)))))){ + a19 = 2; + a29 = 9; + a25 = 1; + return 23; + } else if((((a28==1)&&(((!(a7==1)&&(!(a20==1)&&((((a25==1)&&(!(a0==1)&&(((a29==7)||(a29==8))&&(input==6))))&&(a22==1))&&!(a11==1))))&&(a19==1))&&(a24==1)))&&(a14==8))){ + a0 = 1; + a7 = 1; + a11 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if((((a14==9)&&((a7==1)&&(!(a11==1)&&(!(a25==1)&&((((!(a24==1)&&((((a29==7)||(a29==8))&&(input==3))&&(a22==1)))&&!(a20==1))&&(a28==1))&&!(a0==1))))))&&(a19==2))){ + a19 = 1; + a14 = 8; + a7 = 0; + a29 = 9; + a0 = 1; + return 21; + } else if((((((a7==1)&&((!(a24==1)&&(!(a0==1)&&(((((input==6)&&((a29==7)||(a29==8)))&&(a14==9))&&!(a25==1))&&(a22==1))))&&(a28==1)))&&!(a11==1))&&(a19==2))&&!(a20==1))){ + a19 = 3; + a29 = 8; + a20 = 1; + a0 = 1; + a11 = 1; + return 23; + } else if((((((a14==9)&&(((((!(a25==1)&&((((a19==3)&&(a29==5))||(((a19==2)&&(a29==8))||((a19==2)&&(a29==9))))&&(input==4)))&&(a22==1))&&(a20==1))&&!(a7==1))&&!(a11==1)))&&(a28==1))&&!(a24==1))&&(a0==1))){ + a11 = 1; + a0 = 0; + a7 = 1; + a14 = 8; + a25 = 1; + a19 = 5; + a29 = 5; + return 21; + } else if(((a19==1)&&((((a24==1)&&((a28==1)&&(((((a11==1)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==4))&&(a22==1)))&&(a20==1))&&(a14==10))&&(a0==1))))&&!(a7==1))&&(a25==1)))){ + a25 = 0; + a29 = 8; + a24 = 0; + a14 = 9; + a11 = 0; + a7 = 1; + a19 = 5; + a20 = 0; + return 21; + } else if(((((((((a25==1)&&((!(a20==1)&&((((a19==2)&&(a29==6))||(((a29==9)&&(a19==1))||((a19==2)&&(a29==5))))&&(input==6)))&&(a28==1)))&&(a7==1))&&(a14==9))&&(a0==1))&&(a22==1))&&(a11==1))&&!(a24==1))){ + a29 = 5; + a14 = 10; + a25 = 0; + a19 = 1; + a24 = 1; + a7 = 0; + return 24; + } else if(((!(a11==1)&&(((a25==1)&&((!(a7==1)&&((a24==1)&&(((a20==1)&&((input==1)&&(((a19==4)&&(a29==6))||(((a29==9)&&(a19==3))||((a29==5)&&(a19==4))))))&&(a22==1))))&&(a14==8)))&&!(a0==1)))&&(a28==1))){ + a11 = 1; + a25 = 0; + a24 = 0; + a29 = 5; + a19 = 1; + a14 = 9; + return 24; + } else if(((((a28==1)&&((a0==1)&&((!(a7==1)&&((!(a25==1)&&(((a14==9)&&((input==2)&&(((a29==5)||(a29==6))||(a29==7))))&&!(a11==1)))&&(a20==1)))&&(a19==5))))&&(a22==1))&&(a24==1))){ + a0 = 0; + a19 = 4; + a24 = 0; + a29 = 6; + a11 = 1; + a14 = 8; + return -1; + } else if(((((a25==1)&&((a28==1)&&(!(a11==1)&&(((a24==1)&&(((a19==3)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==4))&&(a0==1)))&&(a7==1)))&&(a14==8)))))&&(a22==1))&&!(a20==1))){ + a19 = 1; + a29 = 5; + a20 = 1; + a11 = 1; + return -1; + } else if((((a19==4)&&((a14==10)&&((((a28==1)&&((a25==1)&&(((a11==1)&&((a7==1)&&((input==3)&&(a29==9))))&&(a22==1))))&&(a20==1))&&(a24==1))))&&(a0==1))){ + a19 = 3; + a29 = 6; + a14 = 9; + a7 = 0; + a20 = 0; + return 21; + } else if(((a28==1)&&((!(a20==1)&&((a0==1)&&((a22==1)&&((a25==1)&&((a11==1)&&(((!(a24==1)&&(((a29==5)||(a29==6))&&(input==1)))&&(a14==8))&&(a19==2)))))))&&!(a7==1)))){ + a0 = 0; + a25 = 0; + a24 = 1; + a20 = 1; + a29 = 6; + return 24; + } else if(((((a14==10)&&((a28==1)&&((a22==1)&&(((a20==1)&&(((a11==1)&&(((input==2)&&((a29==7)||((a29==5)||(a29==6))))&&(a0==1)))&&(a25==1)))&&(a19==1)))))&&!(a7==1))&&(a24==1))){ + a7 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if(((((((!(a24==1)&&(((a20==1)&&((a14==8)&&((((a29==6)||(a29==7))&&(input==5))&&!(a7==1))))&&(a0==1)))&&!(a25==1))&&(a19==4))&&(a22==1))&&!(a11==1))&&(a28==1))){ + a24 = 1; + a25 = 1; + a0 = 0; + a7 = 1; + a29 = 8; + a20 = 0; + a11 = 1; + a19 = 3; + return 21; + } else if((((a20==1)&&((a28==1)&&(!(a24==1)&&((a0==1)&&((a14==9)&&(((((((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))&&(input==6))&&(a22==1))&&!(a25==1))&&!(a7==1)))))))&&(a11==1))){ + a29 = 5; + a7 = 1; + a14 = 8; + a19 = 1; + a25 = 1; + a24 = 1; + return -1; + } else if((((a28==1)&&((!(a25==1)&&(((a11==1)&&(((a24==1)&&(((a14==9)&&(!(a20==1)&&(input==6)))&&(a29==6)))&&(a19==4)))&&(a7==1)))&&!(a0==1)))&&(a22==1))){ + a0 = 1; + a20 = 1; + a11 = 0; + a7 = 0; + a19 = 1; + a25 = 1; + return -1; + } else if(((a14==10)&&((a28==1)&&(!(a25==1)&&((a19==4)&&((a0==1)&&((a7==1)&&((a11==1)&&(((((input==2)&&(a24==1))&&!(a20==1))&&(a29==9))&&(a22==1)))))))))){ + a0 = 0; + a19 = 3; + a11 = 0; + a7 = 0; + a14 = 9; + a29 = 8; + a25 = 1; + return -1; + } else if(((a19==2)&&(!(a0==1)&&((a14==8)&&((((a22==1)&&(!(a24==1)&&(!(a11==1)&&((((input==4)&&((a29==7)||(a29==8)))&&(a20==1))&&!(a25==1)))))&&(a7==1))&&(a28==1)))))){ + a19 = 4; + a24 = 1; + a29 = 8; + a14 = 9; + return 23; + } else if((((a22==1)&&((((!(a0==1)&&((a11==1)&&((a28==1)&&((a25==1)&&((((a29==6)||(a29==7))&&(input==1))&&!(a24==1))))))&&!(a20==1))&&(a14==9))&&(a19==5)))&&!(a7==1))){ + a19 = 2; + a24 = 1; + a29 = 6; + a14 = 8; + return -1; + } else if((!(a25==1)&&(((a11==1)&&(((((a24==1)&&((a20==1)&&((a19==1)&&((a14==10)&&((input==2)&&(a29==7))))))&&(a22==1))&&(a28==1))&&!(a7==1)))&&(a0==1)))){ + a7 = 1; + a0 = 0; + a19 = 3; + a29 = 9; + a14 = 8; + a25 = 1; + return 23; + } else if((((((((a0==1)&&((a24==1)&&(((a22==1)&&(((input==4)&&((a29==6)||(a29==7)))&&(a28==1)))&&!(a7==1))))&&(a19==5))&&!(a25==1))&&(a14==9))&&!(a20==1))&&(a11==1))){ + a7 = 1; + a25 = 1; + a20 = 1; + a29 = 5; + a19 = 1; + a14 = 8; + return -1; + } else if(((((a22==1)&&((((((a19==5)&&((a29==8)&&((!(a24==1)&&(!(a7==1)&&(!(a20==1)&&(a11==1))))&&!(a25==1))))||((((!(a24==1)&&((!(a20==1)&&(a11==1))&&!(a7==1)))&&!(a25==1))&&(a29==9))&&(a19==5)))||((a19==1)&&(((a25==1)&&((a24==1)&&((a7==1)&&((a20==1)&&!(a11==1)))))&&(a29==5))))&&(input==4))&&(a28==1)))&&(a14==9))&&(a0==1))){ + a19 = 4; + a0 = 0; + a24 = 1; + a20 = 0; + a11 = 0; + a29 = 5; + a7 = 0; + a25 = 1; + a14 = 8; + return -1; + } else if((((a22==1)&&((a29==6)&&((((a28==1)&&((((a14==8)&&(!(a7==1)&&((a20==1)&&(input==2))))&&(a19==4))&&(a24==1)))&&!(a11==1))&&(a0==1))))&&(a25==1))){ + a11 = 1; + a0 = 0; + a29 = 5; + a7 = 1; + a25 = 0; + return 21; + } else if(((a20==1)&&((((a22==1)&&((a25==1)&&((a14==8)&&((!(a7==1)&&((((input==4)&&(a19==5))&&(a24==1))&&(a29==7)))&&!(a11==1)))))&&(a28==1))&&(a0==1)))){ + a19 = 4; + a24 = 0; + a25 = 0; + a29 = 5; + a0 = 0; + return 24; + } else if((((((a14==9)&&((a7==1)&&(!(a20==1)&&(!(a24==1)&&((!(a0==1)&&(((((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))||((a29==6)&&(a19==2)))&&(input==2)))&&(a28==1))))))&&!(a25==1))&&(a22==1))&&!(a11==1))){ + a20 = 1; + a19 = 5; + a0 = 1; + a24 = 1; + a29 = 5; + a25 = 1; + return 24; + } else if(((((a28==1)&&(!(a24==1)&&(((a19==3)&&(((a22==1)&&((((input==4)&&((a29==7)||((a29==5)||(a29==6))))&&(a14==9))&&!(a11==1)))&&!(a25==1)))&&!(a0==1))))&&!(a20==1))&&!(a7==1))){ + a25 = 1; + a7 = 1; + a24 = 1; + a29 = 5; + a0 = 1; + a20 = 1; + return -1; + } else if(((a28==1)&&(!(a0==1)&&((((a24==1)&&(((a7==1)&&((((input==4)&&(((a29==5)&&(a19==3))||(((a29==8)&&(a19==2))||((a29==9)&&(a19==2)))))&&(a22==1))&&(a20==1)))&&!(a11==1)))&&(a25==1))&&(a14==8))))){ + a29 = 9; + a11 = 1; + a19 = 5; + return 23; + } else if((((!(a25==1)&&((((a28==1)&&(((!(a11==1)&&((input==6)&&(((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))))&&(a22==1))&&(a0==1)))&&(a20==1))&&!(a7==1)))&&(a14==8))&&(a24==1))){ + a19 = 1; + a7 = 1; + a11 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if((!(a24==1)&&(((!(a0==1)&&((!(a25==1)&&((a11==1)&&((a22==1)&&((((((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))||((a29==6)&&(a19==2)))&&(input==4))&&(a28==1)))))&&(a20==1)))&&(a14==9))&&!(a7==1)))){ + a24 = 1; + a14 = 8; + a29 = 7; + a7 = 1; + a25 = 1; + a19 = 3; + return 24; + } else if((!(a24==1)&&(((a22==1)&&(((a7==1)&&(((!(a20==1)&&((a28==1)&&((((a29==7)||(a29==8))&&(input==1))&&(a14==9))))&&(a11==1))&&(a25==1)))&&(a0==1)))&&(a19==1)))){ + a20 = 1; + a24 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if((((a29==7)&&((((a25==1)&&((((a24==1)&&((((input==3)&&(a22==1))&&(a11==1))&&(a20==1)))&&(a0==1))&&(a19==2)))&&(a14==9))&&(a28==1)))&&(a7==1))){ + a14 = 8; + a29 = 5; + a19 = 1; + return -1; + } else if(((((a11==1)&&((a22==1)&&(((a24==1)&&((a19==3)&&((!(a25==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==1))&&(a0==1)))&&(a14==8))))&&!(a7==1))))&&(a28==1))&&(a20==1))){ + a20 = 0; + a19 = 4; + a29 = 5; + return 21; + } else if((((((a28==1)&&((a25==1)&&((((a19==2)&&((((input==2)&&((a29==8)||((a29==6)||(a29==7))))&&(a0==1))&&(a14==9)))&&(a7==1))&&(a11==1))))&&(a22==1))&&!(a24==1))&&(a20==1))){ + a29 = 5; + a19 = 1; + a14 = 8; + a24 = 1; + return -1; + } else if(((a7==1)&&(((a19==5)&&((a28==1)&&(((a24==1)&&(!(a20==1)&&(!(a25==1)&&((((input==3)&&(a22==1))&&(a29==6))&&(a14==9)))))&&!(a0==1))))&&(a11==1)))){ + a14 = 8; + a29 = 5; + a0 = 1; + a20 = 1; + a25 = 1; + a19 = 1; + return -1; + } else if(((!(a24==1)&&((a28==1)&&((((a7==1)&&((!(a25==1)&&(((((a19==3)&&(a29==5))||(((a19==2)&&(a29==8))||((a29==9)&&(a19==2))))&&(input==2))&&(a20==1)))&&!(a11==1)))&&(a0==1))&&(a22==1))))&&(a14==8))){ + a0 = 0; + a29 = 6; + a20 = 0; + a24 = 1; + a7 = 0; + a11 = 1; + a19 = 5; + a25 = 1; + return 23; + } else if(((a22==1)&&((a7==1)&&((a11==1)&&(((a28==1)&&((a24==1)&&(((a14==9)&&((a25==1)&&(((input==5)&&((a29==6)||(a29==7)))&&!(a0==1))))&&!(a20==1))))&&(a19==4)))))){ + a25 = 0; + a29 = 8; + a14 = 8; + a20 = 1; + a19 = 2; + return -1; + } else if((!(a20==1)&&((a14==8)&&(!(a25==1)&&(((((a22==1)&&(!(a24==1)&&((!(a11==1)&&((input==1)&&(a28==1)))&&(a7==1))))&&(a19==3))&&(a29==5))&&!(a0==1)))))){ + a29 = 9; + a14 = 9; + a11 = 1; + a0 = 1; + a20 = 1; + a19 = 1; + return 21; + } else if(((((a29==7)&&((a22==1)&&(((a28==1)&&((a14==9)&&(((((a24==1)&&(input==2))&&(a19==5))&&!(a7==1))&&(a20==1))))&&(a11==1))))&&(a0==1))&&!(a25==1))){ + a29 = 8; + a19 = 2; + a20 = 0; + return 24; + } else if(((a24==1)&&(((a22==1)&&((!(a7==1)&&(((a28==1)&&(!(a20==1)&&((((a19==5)&&((a25==1)&&(a29==9)))||((a19==1)&&(!(a25==1)&&(a29==5))))&&(input==5))))&&(a11==1)))&&(a0==1)))&&(a14==8)))){ + a19 = 3; + a25 = 0; + a29 = 5; + a11 = 0; + return 24; + } else if(((a14==9)&&((!(a24==1)&&(!(a20==1)&&((a19==5)&&((!(a7==1)&&(((((input==2)&&(((a29==5)||(a29==6))||(a29==7)))&&!(a11==1))&&(a25==1))&&(a22==1)))&&(a0==1)))))&&(a28==1)))){ + a14 = 8; + a19 = 1; + a29 = 5; + a11 = 1; + a7 = 1; + a20 = 1; + a24 = 1; + return -1; + } else if(((((((((a22==1)&&((!(a24==1)&&(((((a29==9)&&(a19==4))||((a29==5)&&(a19==5)))||((a19==5)&&(a29==6)))&&(input==2)))&&!(a11==1)))&&(a7==1))&&(a25==1))&&(a28==1))&&(a14==8))&&(a0==1))&&(a20==1))){ + a11 = 1; + a19 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if(((a28==1)&&(((a25==1)&&(((((!(a11==1)&&(((((a29==7)||(a29==8))&&(input==1))&&(a0==1))&&(a14==8)))&&!(a20==1))&&(a22==1))&&!(a24==1))&&(a7==1)))&&(a19==1)))){ + a29 = 5; + a11 = 1; + a24 = 1; + a20 = 1; + return -1; + } else if(((a24==1)&&(((!(a7==1)&&(((!(a25==1)&&(((a22==1)&&((input==5)&&((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))||((a29==6)&&(a19==3)))))&&(a14==10)))&&(a28==1))&&(a0==1)))&&(a20==1))&&(a11==1)))){ + a29 = 9; + a0 = 0; + a14 = 8; + a7 = 1; + a25 = 1; + a19 = 3; + return 21; + } else if(((((((a28==1)&&((!(a0==1)&&((a29==6)&&(((a14==8)&&((input==2)&&!(a20==1)))&&(a11==1))))&&!(a25==1)))&&(a19==4))&&(a7==1))&&!(a24==1))&&(a22==1))){ + a25 = 1; + a24 = 1; + a20 = 1; + a0 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((!(a25==1)&&((a28==1)&&(((!(a0==1)&&(((a22==1)&&((a14==9)&&((a11==1)&&(((a29==8)||(a29==9))&&(input==4)))))&&!(a7==1)))&&!(a20==1))&&!(a24==1))))&&(a19==5))){ + a7 = 1; + a19 = 4; + a20 = 1; + a29 = 9; + a24 = 1; + a0 = 1; + a25 = 1; + return 24; + } else if(((((a22==1)&&((((((a7==1)&&(((((a29==8)||(a29==9))&&(input==6))&&(a28==1))&&(a14==9)))&&!(a11==1))&&!(a25==1))&&(a24==1))&&(a19==5)))&&!(a20==1))&&(a0==1))){ + a7 = 0; + a14 = 8; + a29 = 7; + a19 = 4; + a0 = 0; + a24 = 0; + return 21; + } else if(((a28==1)&&((a22==1)&&(!(a0==1)&&((a7==1)&&(!(a11==1)&&(!(a24==1)&&(!(a20==1)&&(((a25==1)&&((a19==5)&&(((a29==8)||(a29==9))&&(input==1))))&&(a14==8)))))))))){ + a24 = 1; + a20 = 1; + a11 = 1; + a29 = 8; + return 24; + } else if(((!(a20==1)&&((a28==1)&&((((a25==1)&&((a22==1)&&(((a0==1)&&(!(a11==1)&&(((a29==8)||(a29==9))&&(input==6))))&&(a14==8))))&&!(a7==1))&&!(a24==1))))&&(a19==2))){ + a7 = 1; + a25 = 0; + a24 = 1; + a14 = 9; + a29 = 5; + a19 = 4; + return 23; + } else if((((((((a24==1)&&(!(a25==1)&&((a14==10)&&(((input==2)&&((((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))||((a19==5)&&(a29==6))))&&!(a7==1)))))&&(a0==1))&&(a22==1))&&(a11==1))&&(a28==1))&&(a20==1))){ + a14 = 8; + a19 = 3; + a7 = 1; + a29 = 9; + a0 = 0; + return 21; + } else if(((a22==1)&&((a25==1)&&(((a28==1)&&((!(a24==1)&&((a7==1)&&(((((input==3)&&((a29==8)||(a29==9)))&&!(a11==1))&&(a14==9))&&(a0==1))))&&(a20==1)))&&(a19==2))))){ + a19 = 1; + a14 = 8; + a0 = 0; + a7 = 0; + a24 = 1; + a29 = 8; + a11 = 1; + return 23; + } else if(((((a28==1)&&(!(a20==1)&&((a22==1)&&((a14==8)&&((a11==1)&&((input==2)&&((((a19==5)&&((!(a25==1)&&(a7==1))&&(a29==9)))||((a19==1)&&((a29==5)&&((a25==1)&&!(a7==1)))))||((a19==1)&&(((a25==1)&&!(a7==1))&&(a29==6))))))))))&&(a0==1))&&!(a24==1))){ + a7 = 1; + a25 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if((((a28==1)&&((a7==1)&&((((!(a20==1)&&(!(a24==1)&&((a25==1)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==6))&&(a0==1)))))&&(a14==8))&&(a22==1))&&!(a11==1))))&&(a19==3))){ + a29 = 7; + a25 = 0; + a24 = 1; + a20 = 1; + a14 = 9; + return 23; + } else if(((!(a0==1)&&((a24==1)&&((a25==1)&&(((((a28==1)&&((a22==1)&&((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))&&(input==5))))&&!(a20==1))&&(a14==9))&&!(a11==1)))))&&!(a7==1))){ + a20 = 1; + a0 = 1; + a11 = 1; + a7 = 1; + a29 = 5; + a19 = 1; + a14 = 8; + return -1; + } else if(((a28==1)&&((a25==1)&&(!(a11==1)&&((a19==4)&&((a0==1)&&(!(a20==1)&&(((((a22==1)&&((input==5)&&(a7==1)))&&(a14==8))&&(a29==9))&&(a24==1))))))))){ + a0 = 0; + a29 = 8; + a19 = 3; + a11 = 1; + return 24; + } else if(((a11==1)&&(!(a0==1)&&((((a20==1)&&((!(a25==1)&&((a19==3)&&(((((a29==6)||(a29==7))&&(input==6))&&(a28==1))&&(a14==9))))&&(a7==1)))&&(a22==1))&&(a24==1))))){ + a14 = 8; + a19 = 1; + a25 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if(((!(a24==1)&&((((a11==1)&&(((!(a0==1)&&((a22==1)&&(((input==4)&&((a29==7)||((a29==5)||(a29==6))))&&(a19==1))))&&(a28==1))&&(a20==1)))&&!(a25==1))&&(a7==1)))&&(a14==8))){ + a24 = 1; + a0 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if(((a24==1)&&((a14==9)&&(!(a0==1)&&((a7==1)&&((a22==1)&&(!(a20==1)&&((!(a11==1)&&(((input==5)&&((((a29==8)&&(a19==4))||((a19==4)&&(a29==9)))||((a29==5)&&(a19==5))))&&(a25==1)))&&(a28==1))))))))){ + a19 = 1; + a11 = 1; + a14 = 8; + a29 = 5; + a0 = 1; + a20 = 1; + return -1; + } else if(((((a28==1)&&((a11==1)&&(((a19==4)&&((a24==1)&&(((a14==9)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==2))&&!(a25==1)))&&!(a7==1))))&&(a22==1))))&&(a20==1))&&(a0==1))){ + a11 = 0; + a24 = 0; + a7 = 1; + a20 = 0; + a0 = 0; + a19 = 5; + a29 = 5; + return 24; + } else if(((!(a20==1)&&((a22==1)&&((a11==1)&&(((((a0==1)&&(((((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))&&(input==5))&&(a25==1)))&&(a24==1))&&(a28==1))&&(a7==1)))))&&(a14==10))){ + a29 = 5; + a14 = 8; + a20 = 1; + a19 = 1; + return -1; + } else if(((!(a24==1)&&(!(a20==1)&&((a22==1)&&((((a25==1)&&((a0==1)&&(!(a7==1)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==3))&&(a28==1)))))&&!(a11==1))&&(a14==9)))))&&(a19==4))){ + a24 = 1; + a14 = 8; + a29 = 7; + a7 = 1; + a20 = 1; + a0 = 0; + return -1; + } else if(((a7==1)&&((a14==9)&&((((!(a20==1)&&(!(a24==1)&&((a11==1)&&((((input==1)&&!(a25==1))&&(a28==1))&&(a29==5)))))&&(a22==1))&&(a19==3))&&(a0==1))))){ + a19 = 2; + a14 = 8; + a0 = 0; + a25 = 1; + a24 = 1; + a29 = 6; + return 21; + } else if(((a28==1)&&((((a14==9)&&((a22==1)&&((a11==1)&&((a20==1)&&((a0==1)&&((a24==1)&&(((input==1)&&(((a29==5)||(a29==6))||(a29==7)))&&(a19==2))))))))&&(a25==1))&&!(a7==1)))){ + a24 = 0; + a14 = 8; + a29 = 6; + a0 = 0; + a19 = 3; + return -1; + } else if(((a20==1)&&(((!(a0==1)&&(!(a24==1)&&(!(a11==1)&&(((a14==8)&&((a22==1)&&((a7==1)&&((input==6)&&((a29==7)||(a29==8))))))&&(a28==1)))))&&!(a25==1))&&(a19==2)))){ + a24 = 1; + a19 = 1; + a11 = 1; + a29 = 5; + a25 = 1; + a0 = 1; + return -1; + } else if((((!(a0==1)&&((a29==8)&&((a25==1)&&((a19==5)&&(((!(a20==1)&&(((a28==1)&&(input==2))&&(a14==8)))&&(a22==1))&&(a24==1))))))&&!(a7==1))&&!(a11==1))){ + a11 = 1; + a25 = 0; + a29 = 9; + a20 = 1; + return -1; + } else if((!(a0==1)&&((((!(a20==1)&&((a14==8)&&((((input==6)&&((((a19==5)&&((a29==9)&&(a25==1)))||((!(a25==1)&&(a29==5))&&(a19==1)))||((a19==1)&&((a29==6)&&!(a25==1)))))&&(a22==1))&&(a11==1))))&&(a28==1))&&(a24==1))&&(a7==1)))){ + a20 = 1; + a25 = 1; + a19 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if(((((((a22==1)&&(((a14==9)&&(((((((a29==6)||(a29==7))||(a29==8))&&(input==5))&&!(a24==1))&&(a0==1))&&(a28==1)))&&!(a25==1)))&&(a19==3))&&(a20==1))&&!(a7==1))&&(a11==1))){ + a19 = 4; + a7 = 1; + a20 = 0; + a29 = 6; + a24 = 1; + return -1; + } else if((((a19==1)&&((a20==1)&&((a24==1)&&(((a14==8)&&((a0==1)&&(!(a7==1)&&(((a22==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==3)))&&!(a25==1)))))&&(a11==1)))))&&(a28==1))){ + a19 = 3; + a7 = 1; + a20 = 0; + a29 = 7; + return 23; + } else if(((((a28==1)&&((a25==1)&&((a22==1)&&((((a7==1)&&(!(a20==1)&&(((input==4)&&(((a29==6)||(a29==7))||(a29==8)))&&(a0==1))))&&(a14==10))&&(a19==2)))))&&(a24==1))&&(a11==1))){ + a0 = 0; + a20 = 1; + a29 = 6; + a14 = 8; + a19 = 5; + return 21; + } else if((((a22==1)&&((((((a0==1)&&((((a29==7)&&((input==2)&&(a11==1)))&&!(a20==1))&&(a19==5)))&&(a25==1))&&!(a24==1))&&!(a7==1))&&(a14==9)))&&(a28==1))){ + a0 = 0; + a29 = 6; + a14 = 8; + a24 = 1; + a20 = 1; + a19 = 2; + return 21; + } else if((((a22==1)&&(!(a20==1)&&((a7==1)&&(((a25==1)&&((!(a24==1)&&(!(a0==1)&&((input==6)&&(((a29==6)&&(a19==5))||(((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))))))&&(a14==8)))&&!(a11==1)))))&&(a28==1))){ + a11 = 1; + a24 = 1; + a29 = 7; + a19 = 4; + return -1; + } else if(((a28==1)&&(!(a0==1)&&(((a7==1)&&(((a14==8)&&(!(a20==1)&&((a25==1)&&(((input==2)&&(((a19==4)&&(a29==6))||(((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))))&&(a22==1)))))&&!(a11==1)))&&(a24==1))))){ + a19 = 5; + a29 = 6; + a7 = 0; + a11 = 1; + return 21; + } else if(((a0==1)&&((a22==1)&&((a28==1)&&((a14==10)&&((a25==1)&&((a24==1)&&((a19==2)&&(((!(a20==1)&&((input==5)&&(a29==9)))&&(a11==1))&&!(a7==1)))))))))){ + a14 = 8; + a24 = 0; + a0 = 0; + a19 = 3; + a29 = 8; + a11 = 0; + return 24; + } else if(((a19==2)&&((!(a7==1)&&((((a28==1)&&(((a14==8)&&((a11==1)&&((a22==1)&&(((a29==8)||(a29==9))&&(input==2)))))&&(a24==1)))&&(a0==1))&&!(a25==1)))&&!(a20==1)))){ + a24 = 0; + a20 = 1; + a7 = 1; + a29 = 7; + a11 = 0; + return 23; + } else if((((a19==2)&&((a14==10)&&((a7==1)&&((((a25==1)&&(((a22==1)&&((a20==1)&&(((a29==8)||(a29==9))&&(input==5))))&&(a28==1)))&&(a24==1))&&(a0==1)))))&&(a11==1))){ + a14 = 9; + a11 = 0; + a0 = 0; + a29 = 7; + return -1; + } else if(((((((a14==9)&&(((((a25==1)&&(((input==1)&&((a29==9)||((a29==7)||(a29==8))))&&(a22==1)))&&(a19==3))&&!(a20==1))&&!(a0==1)))&&(a28==1))&&(a24==1))&&(a7==1))&&!(a11==1))){ + a11 = 1; + a19 = 1; + a20 = 1; + a0 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if((((((a22==1)&&(((a14==9)&&((a29==7)&&((!(a0==1)&&((a11==1)&&(!(a7==1)&&(input==3))))&&!(a20==1))))&&!(a25==1)))&&(a19==5))&&(a24==1))&&(a28==1))){ + a20 = 1; + a14 = 8; + a7 = 1; + a29 = 5; + a19 = 2; + a11 = 0; + return -1; + } else if((((a25==1)&&((!(a11==1)&&(((a14==8)&&((((a7==1)&&(!(a20==1)&&((input==5)&&((a29==7)||(a29==8)))))&&(a28==1))&&!(a0==1)))&&(a22==1)))&&(a24==1)))&&(a19==1))){ + a25 = 0; + a29 = 9; + a11 = 1; + return 24; + } else if(((a7==1)&&(((a22==1)&&(!(a20==1)&&((((((a14==10)&&((a28==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==4))))&&(a19==1))&&(a24==1))&&(a0==1))&&!(a25==1))))&&(a11==1)))){ + a25 = 1; + a20 = 1; + a19 = 3; + a24 = 0; + a7 = 0; + a29 = 6; + a14 = 9; + return 21; + } else if(((a20==1)&&(((a22==1)&&(((a24==1)&&(!(a0==1)&&((a11==1)&&((((a19==5)&&((!(a25==1)&&(a7==1))&&(a29==9)))||((a19==1)&&((!(a7==1)&&(a25==1))&&(a29==5))))&&(input==5)))))&&(a14==8)))&&(a28==1)))){ + a7 = 1; + a19 = 1; + a0 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if(((a14==10)&&((a19==5)&&(((a20==1)&&(((a0==1)&&((a11==1)&&((a22==1)&&((((input==6)&&(((a29==5)||(a29==6))||(a29==7)))&&(a24==1))&&!(a7==1)))))&&(a28==1)))&&(a25==1))))){ + a14 = 9; + a25 = 0; + a29 = 6; + a24 = 0; + a7 = 1; + return 23; + } else if((!(a11==1)&&(((a14==9)&&(!(a0==1)&&(!(a24==1)&&(((((a19==1)&&((((a7==1)&&!(a20==1))&&(a25==1))&&(a29==5)))||(((((!(a7==1)&&(a20==1))&&!(a25==1))&&(a29==8))&&(a19==5))||((a19==5)&&((((a20==1)&&!(a7==1))&&!(a25==1))&&(a29==9)))))&&(input==3))&&(a22==1)))))&&(a28==1)))){ + a29 = 5; + a0 = 1; + a7 = 1; + a19 = 4; + a20 = 1; + a25 = 1; + return -1; + } else if((((((((a0==1)&&(((a22==1)&&((a11==1)&&((((a29==7)||(a29==8))&&(input==4))&&!(a7==1))))&&!(a25==1)))&&(a24==1))&&(a20==1))&&(a28==1))&&(a19==2))&&(a14==10))){ + a20 = 0; + a19 = 1; + a14 = 8; + a29 = 7; + a0 = 0; + a25 = 1; + return 21; + } else if(((!(a11==1)&&((a14==9)&&((!(a0==1)&&(((!(a20==1)&&((!(a24==1)&&(((a29==8)||(a29==9))&&(input==3)))&&(a28==1)))&&(a22==1))&&(a7==1)))&&(a19==1))))&&(a25==1))){ + a25 = 0; + a24 = 1; + a20 = 1; + a11 = 1; + a19 = 3; + a14 = 8; + a29 = 8; + a7 = 0; + return 21; + } else if(((a29==5)&&((a14==8)&&(((a22==1)&&(!(a0==1)&&((a7==1)&&(((a20==1)&&((a19==1)&&(!(a11==1)&&(!(a24==1)&&(input==1)))))&&(a28==1)))))&&!(a25==1))))){ + a29 = 9; + a7 = 0; + a0 = 1; + a11 = 1; + a25 = 1; + a19 = 3; + a24 = 1; + return 23; + } else if((!(a11==1)&&((a28==1)&&(((a19==1)&&((!(a0==1)&&(((((((a29==6)||(a29==7))&&(input==1))&&!(a20==1))&&(a25==1))&&(a22==1))&&!(a24==1)))&&(a14==8)))&&(a7==1))))){ + a7 = 0; + a11 = 1; + a29 = 9; + a24 = 1; + a19 = 2; + return 21; + } else if((((a25==1)&&((a19==4)&&(((a11==1)&&((((a24==1)&&((((input==3)&&!(a20==1))&&(a0==1))&&(a7==1)))&&(a29==8))&&(a28==1)))&&(a14==8))))&&(a22==1))){ + a29 = 7; + a24 = 0; + return 23; + } else if(((((((a11==1)&&((a19==1)&&(!(a20==1)&&((a28==1)&&((a14==9)&&((a0==1)&&((input==2)&&(((a29==7)||(a29==8))||(a29==9)))))))))&&!(a24==1))&&(a22==1))&&!(a7==1))&&(a25==1))){ + a14 = 8; + a7 = 1; + a29 = 5; + a20 = 1; + a24 = 1; + return -1; + } else if(((a14==8)&&((((!(a11==1)&&((!(a25==1)&&((((input==5)&&((((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))||((a19==3)&&(a29==5))))&&(a22==1))&&!(a24==1)))&&(a7==1)))&&(a28==1))&&(a0==1))&&(a20==1)))){ + a19 = 5; + a29 = 9; + a25 = 1; + a14 = 9; + a11 = 1; + a7 = 0; + return 24; + } else if((((a14==8)&&(((a28==1)&&((a20==1)&&(((a11==1)&&(((a24==1)&&(((a29==9)&&(input==4))&&(a25==1)))&&(a7==1)))&&(a22==1))))&&!(a0==1)))&&(a19==1))){ + a24 = 0; + a20 = 0; + a19 = 3; + a25 = 0; + a11 = 0; + a29 = 6; + a0 = 1; + a7 = 0; + return -1; + } else if((((a28==1)&&(((((a14==8)&&(!(a25==1)&&((a24==1)&&((a22==1)&&((input==1)&&((((a29==8)&&(a19==4))||((a19==4)&&(a29==9)))||((a29==5)&&(a19==5))))))))&&(a0==1))&&!(a20==1))&&!(a11==1)))&&!(a7==1))){ + a19 = 3; + a0 = 0; + a29 = 7; + a20 = 1; + a25 = 1; + a11 = 1; + return 21; + } else if((((a19==1)&&(((((!(a11==1)&&((!(a20==1)&&((a25==1)&&((input==6)&&((a29==6)||(a29==7)))))&&!(a0==1)))&&(a7==1))&&(a14==9))&&(a22==1))&&(a28==1)))&&!(a24==1))){ + a20 = 1; + a29 = 5; + a24 = 1; + a11 = 1; + a0 = 1; + a14 = 8; + return -1; + } else if(((a24==1)&&((a14==10)&&((!(a7==1)&&(((a11==1)&&((((input==2)&&((((a19==5)&&((a25==1)&&(a29==8)))||((a19==5)&&((a29==9)&&(a25==1))))||((a19==1)&&((a29==5)&&!(a25==1)))))&&!(a20==1))&&(a22==1)))&&(a0==1)))&&(a28==1))))){ + a29 = 9; + a19 = 3; + a14 = 9; + a20 = 1; + a24 = 0; + a25 = 1; + return 23; + } else if(((a14==9)&&(!(a20==1)&&((a11==1)&&((a24==1)&&((!(a7==1)&&(((a28==1)&&((a0==1)&&(((input==3)&&((a29==8)||((a29==6)||(a29==7))))&&(a22==1))))&&(a19==4)))&&!(a25==1))))))){ + a20 = 1; + a29 = 9; + a14 = 10; + a19 = 3; + a25 = 1; + return 21; + } else if(((!(a25==1)&&((a11==1)&&((((a20==1)&&((a24==1)&&((((a0==1)&&((a29==5)&&(input==3)))&&(a28==1))&&(a19==2))))&&!(a7==1))&&(a22==1))))&&(a14==10))){ + a14 = 9; + a19 = 1; + a0 = 0; + return -1; + } else if((((a7==1)&&((a11==1)&&((((a22==1)&&((!(a20==1)&&(!(a25==1)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==4))&&(a24==1))))&&(a0==1)))&&(a28==1))&&(a14==9))))&&(a19==3))){ + a24 = 0; + a7 = 0; + a11 = 0; + a19 = 2; + a14 = 8; + a0 = 0; + a29 = 6; + return 21; + } else if((((((a22==1)&&((((((a28==1)&&((input==2)&&((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))||((a29==6)&&(a19==3)))))&&!(a0==1))&&(a14==9))&&!(a20==1))&&(a7==1)))&&!(a25==1))&&!(a11==1))&&(a24==1))){ + a25 = 1; + a14 = 8; + a29 = 5; + a19 = 1; + a0 = 1; + a11 = 1; + a20 = 1; + return -1; + } else if(((((a11==1)&&(!(a7==1)&&((!(a25==1)&&(((!(a24==1)&&((input==3)&&(((a29==5)&&(a19==4))||(((a29==8)&&(a19==3))||((a29==9)&&(a19==3))))))&&(a14==8))&&(a22==1)))&&(a28==1))))&&(a20==1))&&(a0==1))){ + a19 = 2; + a0 = 0; + a29 = 5; + a25 = 1; + return 23; + } else if((((a22==1)&&(((!(a25==1)&&((a14==9)&&(((((((a29==8)||(a29==9))&&(input==4))&&(a19==2))&&!(a7==1))&&!(a24==1))&&!(a11==1))))&&!(a0==1))&&(a28==1)))&&!(a20==1))){ + a19 = 3; + a29 = 8; + a0 = 1; + a7 = 1; + a14 = 8; + return 21; + } else if(((a14==9)&&((!(a0==1)&&(!(a20==1)&&(!(a25==1)&&(((a7==1)&&(((a22==1)&&((input==4)&&((((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))||((a29==6)&&(a19==2)))))&&!(a24==1)))&&!(a11==1)))))&&(a28==1)))){ + a29 = 7; + a0 = 1; + a19 = 2; + a24 = 1; + return 21; + } else if((!(a25==1)&&(!(a20==1)&&((a14==9)&&(((a0==1)&&(((a24==1)&&((a19==3)&&(((a11==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==6)))&&(a22==1))))&&(a28==1)))&&!(a7==1)))))){ + a7 = 1; + a25 = 1; + a20 = 1; + a14 = 8; + a19 = 1; + a29 = 5; + return -1; + } else if(((a22==1)&&((a28==1)&&((a19==1)&&((((a14==8)&&((a0==1)&&(((a24==1)&&(((a7==1)&&(input==5))&&!(a25==1)))&&!(a11==1))))&&(a29==5))&&(a20==1)))))){ + a29 = 6; + a20 = 0; + a7 = 0; + a19 = 3; + a0 = 0; + return 23; + } else if(((a24==1)&&(((((a20==1)&&(!(a7==1)&&((!(a0==1)&&((((input==2)&&(((a29==6)||(a29==7))||(a29==8)))&&!(a11==1))&&(a25==1)))&&(a22==1))))&&(a19==4))&&(a28==1))&&(a14==9)))){ + a19 = 1; + a25 = 0; + a20 = 0; + a14 = 8; + a7 = 1; + a29 = 5; + return 21; + } else if(((a14==8)&&(!(a0==1)&&(!(a25==1)&&((a22==1)&&((a20==1)&&((a19==2)&&((a29==9)&&((!(a24==1)&&((a28==1)&&((input==2)&&(a7==1))))&&(a11==1)))))))))){ + a19 = 5; + a24 = 1; + return 23; + } else if((!(a20==1)&&((a22==1)&&(!(a7==1)&&(((a0==1)&&(((a19==1)&&((a24==1)&&((a28==1)&&(!(a25==1)&&((input==4)&&(((a29==7)||(a29==8))||(a29==9)))))))&&(a14==9)))&&(a11==1)))))){ + a19 = 4; + a29 = 9; + a7 = 1; + a20 = 1; + a14 = 10; + return 24; + } else if(((a25==1)&&(((a14==9)&&((!(a11==1)&&(((a7==1)&&(((a22==1)&&((a28==1)&&((a20==1)&&(input==1))))&&(a24==1)))&&(a29==9)))&&(a19==3)))&&(a0==1)))){ + a29 = 7; + a0 = 0; + a19 = 4; + a11 = 1; + a25 = 0; + a14 = 8; + return -1; + } else if(((a22==1)&&(!(a7==1)&&((((!(a20==1)&&((((((a28==1)&&(input==3))&&(a25==1))&&(a24==1))&&(a14==8))&&(a11==1)))&&(a19==3))&&!(a0==1))&&(a29==5))))){ + return -1; + } else if(((a22==1)&&(!(a0==1)&&((((a14==8)&&(((((((a19==1)&&((a29==5)&&!(a25==1)))||((((a29==8)&&(a25==1))&&(a19==5))||(((a29==9)&&(a25==1))&&(a19==5))))&&(input==5))&&(a28==1))&&(a20==1))&&!(a11==1)))&&!(a24==1))&&!(a7==1))))){ + a24 = 1; + a29 = 9; + a25 = 0; + a19 = 4; + a14 = 9; + return 21; + } else if((((a11==1)&&((a14==9)&&(!(a25==1)&&((((((a0==1)&&((a22==1)&&((input==1)&&((a29==6)||(a29==7)))))&&(a28==1))&&(a19==3))&&!(a7==1))&&!(a24==1)))))&&!(a20==1))){ + a25 = 1; + a19 = 1; + a24 = 1; + a14 = 8; + a7 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if((((a24==1)&&((a7==1)&&((!(a20==1)&&((a22==1)&&(((!(a25==1)&&(((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))||((a29==6)&&(a19==3)))&&(input==6)))&&(a11==1))&&(a14==10))))&&(a28==1))))&&(a0==1))){ + a14 = 9; + a20 = 1; + a19 = 2; + a29 = 9; + return 23; + } else if((((((a25==1)&&((((a22==1)&&(((a14==8)&&(((input==5)&&((a29==7)||(a29==8)))&&(a28==1)))&&(a7==1)))&&!(a0==1))&&!(a24==1)))&&(a11==1))&&(a19==3))&&(a20==1))){ + a29 = 5; + a0 = 1; + a24 = 1; + a19 = 1; + return -1; + } else if((((!(a11==1)&&((a14==8)&&(((a22==1)&&(!(a20==1)&&(((a25==1)&&((((a29==6)&&(a19==5))||(((a29==9)&&(a19==4))||((a29==5)&&(a19==5))))&&(input==2)))&&(a28==1))))&&!(a0==1))))&&(a7==1))&&!(a24==1))){ + a11 = 1; + a24 = 1; + a25 = 0; + a29 = 9; + a19 = 3; + a20 = 1; + return -1; + } else if(((((!(a11==1)&&((a25==1)&&(((!(a20==1)&&((a14==8)&&((a22==1)&&((input==1)&&((a29==5)||(a29==6))))))&&!(a0==1))&&!(a24==1))))&&(a19==4))&&(a28==1))&&!(a7==1))){ + a19 = 3; + a7 = 1; + a29 = 9; + a20 = 1; + a14 = 9; + return 23; + } else if((((a7==1)&&((a29==9)&&(!(a25==1)&&((((a28==1)&&((a14==9)&&(((a20==1)&&((input==1)&&!(a11==1)))&&(a19==5))))&&!(a0==1))&&(a22==1)))))&&(a24==1))){ + a29 = 5; + a14 = 8; + a20 = 0; + a7 = 0; + a25 = 1; + a11 = 1; + a19 = 4; + return 23; + } else if(((((a22==1)&&((a28==1)&&((a25==1)&&(!(a24==1)&&((a0==1)&&((((input==5)&&(((a29==9)&&(a19==3))||((a19==4)&&(a29==5))))&&!(a7==1))&&!(a20==1)))))))&&(a14==8))&&(a11==1))){ + a19 = 4; + a25 = 0; + a0 = 0; + a24 = 1; + a11 = 0; + a7 = 1; + a20 = 1; + a29 = 7; + return 24; + } else if(((!(a11==1)&&((((!(a0==1)&&((a22==1)&&((((((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))&&(input==3))&&!(a20==1))&&(a14==8))))&&(a24==1))&&(a28==1))&&!(a25==1)))&&!(a7==1))){ + a20 = 1; + a7 = 1; + a14 = 9; + a25 = 1; + a19 = 1; + a29 = 5; + return 23; + } else if(((a29==7)&&(!(a24==1)&&(((((a28==1)&&((a22==1)&&((a25==1)&&((((a19==2)&&(input==4))&&(a20==1))&&!(a7==1)))))&&(a14==8))&&(a0==1))&&(a11==1))))){ + a7 = 1; + a19 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if(((a14==8)&&((a20==1)&&((!(a11==1)&&((((!(a0==1)&&(((((a19==2)&&(a29==5))||(((a19==1)&&(a29==8))||((a29==9)&&(a19==1))))&&(input==4))&&(a22==1)))&&(a28==1))&&(a24==1))&&!(a7==1)))&&!(a25==1))))){ + a14 = 9; + a29 = 8; + a11 = 1; + a19 = 4; + a24 = 0; + return 21; + } else if(((((a19==4)&&((((a28==1)&&((a14==9)&&(((!(a24==1)&&((a0==1)&&(input==5)))&&!(a20==1))&&(a25==1))))&&!(a11==1))&&(a22==1)))&&(a29==9))&&!(a7==1))){ + a25 = 0; + a7 = 1; + a20 = 1; + a29 = 6; + a24 = 1; + return 23; + } else if((((a24==1)&&(((a20==1)&&((a19==1)&&((((a11==1)&&((a22==1)&&((a29==7)&&((input==5)&&(a28==1)))))&&(a14==8))&&!(a0==1))))&&(a7==1)))&&!(a25==1))){ + a11 = 0; + a24 = 0; + a14 = 9; + a0 = 1; + a25 = 1; + return 23; + } else if(((((((a28==1)&&(!(a11==1)&&((((a22==1)&&(((input==2)&&!(a24==1))&&!(a7==1)))&&(a29==9))&&(a14==9))))&&!(a25==1))&&(a20==1))&&!(a0==1))&&(a19==2))){ + a19 = 5; + a11 = 1; + a29 = 7; + a14 = 8; + a7 = 1; + return -1; + } else if(((((a19==3)&&((((a14==9)&&(((a24==1)&&((a20==1)&&(((input==2)&&((a29==5)||(a29==6)))&&(a28==1))))&&(a22==1)))&&!(a25==1))&&(a7==1)))&&(a0==1))&&(a11==1))){ + a19 = 5; + a7 = 0; + a11 = 0; + a24 = 0; + a29 = 6; + a0 = 0; + return 21; + } else if((((a22==1)&&((((!(a0==1)&&((a25==1)&&((!(a20==1)&&((a28==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==2))))&&(a14==8))))&&!(a7==1))&&(a19==4))&&!(a24==1)))&&(a11==1))){ + a19 = 5; + a24 = 1; + a14 = 9; + a29 = 9; + return 21; + } else if((((a28==1)&&(((((!(a11==1)&&((((((a19==3)&&(a29==6))||(((a29==9)&&(a19==2))||((a19==3)&&(a29==5))))&&(input==2))&&(a24==1))&&!(a7==1)))&&(a14==9))&&(a20==1))&&!(a25==1))&&(a0==1)))&&(a22==1))){ + a29 = 6; + a11 = 1; + a14 = 8; + a19 = 2; + a0 = 0; + a24 = 0; + a25 = 1; + a7 = 1; + return 21; + } else if(((a14==9)&&((a25==1)&&(((((a0==1)&&((((a22==1)&&((((a29==5)||(a29==6))&&(input==5))&&(a19==2)))&&(a28==1))&&!(a24==1)))&&!(a11==1))&&!(a7==1))&&!(a20==1))))){ + a29 = 9; + a25 = 0; + a19 = 1; + return 23; + } else if(((!(a11==1)&&((a20==1)&&((a7==1)&&(((a19==2)&&(((((a0==1)&&((input==5)&&((a29==9)||((a29==7)||(a29==8)))))&&(a22==1))&&!(a25==1))&&(a28==1)))&&!(a24==1)))))&&(a14==9))){ + a24 = 1; + a19 = 1; + a25 = 1; + a11 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((a25==1)&&((a11==1)&&((a24==1)&&(((a22==1)&&(((a20==1)&&(((a28==1)&&(!(a0==1)&&(((a29==7)||(a29==8))&&(input==5))))&&(a14==8)))&&!(a7==1)))&&(a19==3)))))){ + a19 = 5; + a25 = 0; + a7 = 1; + a29 = 7; + return 21; + } else if(((((a19==5)&&(!(a0==1)&&((a14==9)&&((!(a11==1)&&((((a7==1)&&((input==4)&&((a29==6)||(a29==7))))&&!(a20==1))&&!(a25==1)))&&!(a24==1)))))&&(a22==1))&&(a28==1))){ + a14 = 8; + a29 = 9; + a19 = 3; + a0 = 1; + return 21; + } else if((((a11==1)&&((a0==1)&&((a28==1)&&((a19==2)&&(!(a24==1)&&((!(a7==1)&&(((a14==9)&&((input==3)&&(a20==1)))&&(a25==1)))&&(a29==8)))))))&&(a22==1))){ + a29 = 9; + a25 = 0; + a20 = 0; + a7 = 1; + a14 = 10; + a19 = 1; + a24 = 1; + return 24; + } else if(((((a14==8)&&(!(a11==1)&&((((a20==1)&&((a0==1)&&(((a22==1)&&(!(a24==1)&&(input==5)))&&(a28==1))))&&!(a25==1))&&(a19==3))))&&(a29==6))&&(a7==1))){ + a29 = 8; + a7 = 0; + a14 = 9; + a11 = 1; + a19 = 1; + return 21; + } else if((((!(a0==1)&&(!(a7==1)&&((a25==1)&&(!(a11==1)&&((a19==3)&&((a14==8)&&((a22==1)&&(((input==5)&&((a29==6)||(a29==7)))&&!(a20==1)))))))))&&!(a24==1))&&(a28==1))){ + a20 = 1; + a29 = 6; + a25 = 0; + a19 = 1; + return -1; + } else if((((a7==1)&&((((a22==1)&&(!(a25==1)&&((a14==9)&&((a19==1)&&(!(a11==1)&&(((input==1)&&((a29==7)||(a29==8)))&&!(a0==1)))))))&&(a24==1))&&!(a20==1)))&&(a28==1))){ + a11 = 1; + a29 = 7; + a7 = 0; + a25 = 1; + a19 = 4; + return -1; + } else if(((a20==1)&&(((a0==1)&&((a29==9)&&((a14==10)&&((a28==1)&&((a19==3)&&((((a22==1)&&((a7==1)&&(input==2)))&&(a24==1))&&(a25==1)))))))&&(a11==1)))){ + a20 = 0; + a14 = 8; + a0 = 0; + a29 = 5; + return 24; + } else if((((a28==1)&&(!(a20==1)&&((a19==1)&&((((((!(a7==1)&&((input==1)&&(a14==8)))&&(a24==1))&&(a29==9))&&(a22==1))&&(a11==1))&&!(a25==1)))))&&!(a0==1))){ + a19 = 4; + a0 = 1; + a14 = 9; + a7 = 1; + a24 = 0; + a11 = 0; + return 23; + } else if((!(a0==1)&&(((!(a24==1)&&((((a7==1)&&((a19==3)&&(((a14==9)&&((input==6)&&(a25==1)))&&(a22==1))))&&(a29==9))&&!(a20==1)))&&(a11==1))&&(a28==1)))){ + a0 = 1; + a11 = 0; + a19 = 5; + a25 = 0; + return 21; + } else if(((a14==9)&&(!(a20==1)&&(!(a11==1)&&(((a28==1)&&((((((((a29==8)||((a29==6)||(a29==7)))&&(input==2))&&(a0==1))&&(a19==3))&&(a22==1))&&!(a7==1))&&(a24==1)))&&!(a25==1)))))){ + a11 = 1; + a14 = 8; + a29 = 7; + a19 = 4; + a25 = 1; + a7 = 1; + a0 = 0; + return 21; + } else if(((!(a24==1)&&((((a7==1)&&(((a11==1)&&((((a22==1)&&((input==6)&&((a29==6)||(a29==7))))&&!(a0==1))&&(a28==1)))&&(a25==1)))&&!(a20==1))&&(a19==3)))&&(a14==8))){ + a20 = 1; + a29 = 6; + a24 = 1; + a7 = 0; + return 23; + } else if((((!(a20==1)&&((((!(a11==1)&&((a22==1)&&(!(a25==1)&&((a24==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==5))))))&&(a19==2))&&!(a0==1))&&!(a7==1)))&&(a28==1))&&(a14==8))){ + a14 = 9; + a29 = 8; + a7 = 1; + a19 = 1; + a20 = 1; + a25 = 1; + return 21; + } else if(((a11==1)&&(!(a25==1)&&(((!(a20==1)&&(!(a0==1)&&(((a28==1)&&((a7==1)&&(((input==4)&&((a29==8)||(a29==9)))&&(a19==1))))&&!(a24==1))))&&(a22==1))&&(a14==9))))){ + a25 = 1; + a24 = 1; + a19 = 2; + a29 = 6; + a11 = 0; + a14 = 8; + return 21; + } else if(((a11==1)&&((a14==9)&&(((a28==1)&&(!(a25==1)&&((a22==1)&&((a19==5)&&((a0==1)&&(!(a20==1)&&(((input==6)&&((a29==8)||(a29==9)))&&(a7==1))))))))&&(a24==1))))){ + a14 = 8; + a19 = 3; + a29 = 5; + a20 = 1; + a0 = 0; + a11 = 0; + return -1; + } else if(((a0==1)&&((((a24==1)&&(((a7==1)&&((a14==9)&&(!(a11==1)&&((a28==1)&&((a20==1)&&(((a29==6)||(a29==7))&&(input==4)))))))&&!(a25==1)))&&(a22==1))&&(a19==2)))){ + a11 = 1; + a19 = 4; + a14 = 8; + a24 = 0; + a29 = 9; + a0 = 0; + a7 = 0; + return 23; + } else if((((((a28==1)&&(!(a11==1)&&(((a20==1)&&((!(a0==1)&&((input==3)&&(((a19==3)&&(a29==6))||(((a29==9)&&(a19==2))||((a19==3)&&(a29==5))))))&&(a22==1)))&&(a24==1))))&&(a25==1))&&!(a7==1))&&(a14==8))){ + a19 = 3; + a0 = 1; + a24 = 0; + a14 = 9; + a29 = 6; + return 23; + } else if((((a20==1)&&((a22==1)&&((a14==8)&&((!(a0==1)&&((a11==1)&&(!(a7==1)&&((input==5)&&((((a25==1)&&(a29==9))&&(a19==5))||((a19==1)&&((a29==5)&&!(a25==1))))))))&&(a28==1)))))&&!(a24==1))){ + a29 = 8; + a20 = 0; + a7 = 1; + a25 = 0; + a0 = 1; + a19 = 4; + a11 = 0; + return -1; + } else if(((a28==1)&&((a7==1)&&((a0==1)&&((((((a20==1)&&(((input==1)&&(((a29==6)&&(a19==4))||(((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))))&&!(a24==1)))&&!(a25==1))&&(a22==1))&&(a14==9))&&(a11==1)))))){ + a14 = 8; + a29 = 8; + a20 = 0; + a19 = 1; + a11 = 0; + a7 = 0; + return 23; + } else if(((a14==9)&&((a28==1)&&((a20==1)&&((a7==1)&&(((a19==4)&&((a25==1)&&((a22==1)&&((((input==6)&&((a29==6)||(a29==7)))&&(a24==1))&&!(a11==1)))))&&(a0==1))))))){ + a19 = 1; + a11 = 1; + a7 = 0; + a29 = 6; + a24 = 0; + a20 = 0; + return 21; + } else if((!(a7==1)&&(((!(a20==1)&&((a28==1)&&(!(a25==1)&&((((((input==3)&&((a29==6)||(a29==7)))&&(a19==5))&&(a0==1))&&(a11==1))&&(a24==1)))))&&(a14==9))&&(a22==1)))){ + a11 = 0; + a25 = 1; + a19 = 2; + a29 = 9; + return 23; + } else if(((a14==8)&&((!(a25==1)&&(!(a11==1)&&((a20==1)&&((a28==1)&&(!(a7==1)&&((!(a0==1)&&((a19==3)&&(((a29==7)||(a29==8))&&(input==3))))&&!(a24==1)))))))&&(a22==1)))){ + a0 = 1; + a29 = 7; + a20 = 0; + a25 = 1; + return 24; + } else if(((a11==1)&&((a24==1)&&(!(a7==1)&&((a14==8)&&(!(a20==1)&&((a0==1)&&((a22==1)&&(((input==6)&&((((a29==9)&&(a25==1))&&(a19==5))||(((a29==5)&&!(a25==1))&&(a19==1))))&&(a28==1)))))))))){ + a29 = 9; + a25 = 0; + a19 = 3; + a11 = 0; + return 24; + } else if(((a14==9)&&((!(a11==1)&&((a24==1)&&((a7==1)&&((((a28==1)&&((input==3)&&((((a29==5)&&!(a25==1))&&(a19==1))||(((a19==5)&&((a25==1)&&(a29==8)))||(((a25==1)&&(a29==9))&&(a19==5))))))&&!(a0==1))&&(a22==1)))))&&(a20==1)))){ + a25 = 0; + a29 = 6; + a14 = 8; + a24 = 0; + a19 = 3; + a7 = 0; + a0 = 1; + a20 = 0; + return 24; + } else if(((!(a11==1)&&(((a19==2)&&((!(a0==1)&&((!(a7==1)&&((a25==1)&&((a28==1)&&((input==2)&&((a29==5)||(a29==6))))))&&!(a24==1)))&&(a22==1)))&&(a20==1)))&&(a14==9))){ + a14 = 8; + a29 = 7; + a7 = 1; + a24 = 1; + a19 = 4; + return -1; + } else if(((a22==1)&&(((a14==9)&&(!(a7==1)&&(!(a0==1)&&((a19==3)&&((a25==1)&&((a24==1)&&((a20==1)&&(((input==6)&&((a29==7)||((a29==5)||(a29==6))))&&(a28==1)))))))))&&!(a11==1)))){ + a25 = 0; + a29 = 6; + a20 = 0; + a7 = 1; + a19 = 4; + a14 = 8; + a11 = 1; + return 23; + } else if(((a14==9)&&((((!(a7==1)&&((a29==7)&&((!(a24==1)&&((a20==1)&&(!(a11==1)&&((a28==1)&&(input==3)))))&&(a22==1))))&&(a0==1))&&(a19==5))&&!(a25==1)))){ + a29 = 5; + a20 = 0; + a7 = 1; + a19 = 2; + return 21; + } else if((!(a25==1)&&((((a28==1)&&((a24==1)&&(!(a0==1)&&((((a11==1)&&((a22==1)&&((a29==7)&&(input==4))))&&(a19==4))&&!(a7==1)))))&&!(a20==1))&&(a14==9)))){ + a25 = 1; + a19 = 1; + a20 = 1; + a14 = 8; + a7 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if(((((((a0==1)&&(((a24==1)&&(((a20==1)&&((((a19==3)&&(a29==6))||(((a19==2)&&(a29==9))||((a29==5)&&(a19==3))))&&(input==4)))&&!(a11==1)))&&(a28==1)))&&(a7==1))&&(a25==1))&&(a14==8))&&(a22==1))){ + a29 = 5; + a19 = 1; + a11 = 1; + return -1; + } else if((((a14==9)&&(((!(a20==1)&&((((a24==1)&&(((input==6)&&(((a29==9)&&(a19==4))||((a29==5)&&(a19==5))))&&!(a11==1)))&&(a22==1))&&!(a25==1)))&&(a0==1))&&(a28==1)))&&!(a7==1))){ + a20 = 1; + a11 = 1; + a0 = 0; + a19 = 2; + a14 = 8; + a29 = 6; + a25 = 1; + return 24; + } else if(((!(a7==1)&&((a20==1)&&(((a22==1)&&(!(a25==1)&&(((a0==1)&&(((((a19==3)&&(a29==6))||(((a19==2)&&(a29==9))||((a29==5)&&(a19==3))))&&(input==5))&&!(a11==1)))&&(a24==1))))&&(a28==1))))&&(a14==9))){ + a0 = 0; + a29 = 6; + a19 = 5; + a14 = 8; + a7 = 1; + a24 = 0; + return 21; + } else if(((((((a19==3)&&(((((a25==1)&&(((input==2)&&(a29==8))&&(a14==8)))&&(a22==1))&&!(a0==1))&&(a24==1)))&&(a28==1))&&!(a20==1))&&(a7==1))&&!(a11==1))){ + a29 = 9; + a0 = 1; + a14 = 9; + a25 = 0; + a19 = 5; + return 23; + } else if((((((((((((a14==9)&&((input==4)&&((a29==8)||(a29==9))))&&!(a20==1))&&(a0==1))&&(a28==1))&&(a25==1))&&(a22==1))&&!(a7==1))&&!(a11==1))&&(a24==1))&&(a19==1))){ + a11 = 1; + a29 = 6; + a7 = 1; + a14 = 8; + a25 = 0; + a0 = 0; + a19 = 4; + return 24; + } else if((!(a7==1)&&(((((a28==1)&&((a14==9)&&((!(a24==1)&&(!(a0==1)&&((input==1)&&((((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))||((a19==3)&&(a29==6))))))&&!(a20==1))))&&(a11==1))&&(a22==1))&&(a25==1)))){ + a20 = 1; + a29 = 8; + a25 = 0; + a0 = 1; + a7 = 1; + a19 = 1; + return 24; + } else if(((((((((a14==8)&&((a24==1)&&(!(a0==1)&&(((a29==6)&&(input==2))&&(a19==1)))))&&(a11==1))&&(a7==1))&&(a20==1))&&(a22==1))&&(a28==1))&&!(a25==1))){ + a29 = 8; + a14 = 9; + a7 = 0; + a0 = 1; + a11 = 0; + a19 = 5; + a20 = 0; + return 24; + } else if(((!(a11==1)&&((a7==1)&&((((((((((a29==5)||(a29==6))&&(input==3))&&!(a25==1))&&(a19==5))&&(a28==1))&&!(a0==1))&&(a20==1))&&(a22==1))&&(a14==9))))&&!(a24==1))){ + a29 = 8; + a0 = 1; + a20 = 0; + a19 = 1; + a24 = 1; + return 21; + } else if((((((!(a24==1)&&((a28==1)&&(((a25==1)&&(!(a0==1)&&((a22==1)&&(((a29==6)||(a29==7))&&(input==4)))))&&!(a20==1))))&&(a7==1))&&(a11==1))&&(a14==9))&&(a19==2))){ + a11 = 0; + a20 = 1; + a24 = 1; + a19 = 4; + a0 = 1; + a29 = 5; + return 23; + } else if((!(a7==1)&&((((a11==1)&&(((a19==3)&&((((a28==1)&&((a24==1)&&((a29==6)&&(input==2))))&&(a14==9))&&(a22==1)))&&(a20==1)))&&(a25==1))&&(a0==1)))){ + a29 = 7; + a19 = 2; + a14 = 8; + a25 = 0; + a0 = 0; + return 23; + } return calculate_output2(input); + } + + int calculate_output2(int input) { + if((((((a22==1)&&(!(a7==1)&&(!(a0==1)&&((a24==1)&&(((a14==8)&&(!(a20==1)&&((input==6)&&((a29==6)||(a29==7)))))&&(a19==3))))))&&(a11==1))&&(a25==1))&&(a28==1))){ + a25 = 0; + a7 = 1; + a29 = 7; + return 23; + } else if((!(a25==1)&&((a7==1)&&((a11==1)&&(((a28==1)&&((a24==1)&&(((a0==1)&&((a22==1)&&(((((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))||((a19==3)&&(a29==6)))&&(input==1))))&&!(a20==1))))&&(a14==10)))))){ + a14 = 8; + a29 = 5; + a19 = 1; + a20 = 1; + a25 = 1; + return -1; + } else if(((a0==1)&&((a19==2)&&(((((a28==1)&&((((((input==1)&&((a29==5)||(a29==6)))&&!(a24==1))&&!(a11==1))&&(a25==1))&&(a7==1)))&&(a14==8))&&(a22==1))&&(a20==1))))){ + a19 = 5; + a29 = 6; + a11 = 1; + a14 = 9; + return 24; + } else if(((a28==1)&&((a0==1)&&((!(a24==1)&&((a19==5)&&(((((((input==2)&&(a22==1))&&(a7==1))&&(a25==1))&&(a20==1))&&!(a11==1))&&(a29==8))))&&(a14==9))))){ + a19 = 3; + a11 = 1; + a25 = 0; + a20 = 0; + a24 = 1; + a29 = 9; + return 23; + } else if(((a28==1)&&(((((((a7==1)&&(((a22==1)&&(((input==5)&&((a29==7)||((a29==5)||(a29==6))))&&(a0==1)))&&(a14==9)))&&!(a11==1))&&(a19==5))&&!(a20==1))&&!(a24==1))&&!(a25==1)))){ + a29 = 7; + a11 = 1; + a19 = 2; + a0 = 0; + a24 = 1; + a7 = 0; + a20 = 1; + a14 = 8; + return 24; + } else if(((((((a25==1)&&((a22==1)&&((!(a20==1)&&(((!(a24==1)&&(input==6))&&!(a0==1))&&(a19==5)))&&(a28==1))))&&!(a7==1))&&(a14==8))&&(a11==1))&&(a29==7))){ + a24 = 1; + a7 = 1; + a0 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a29==5)&&(!(a7==1)&&(!(a25==1)&&(((a19==4)&&((((a28==1)&&(((!(a20==1)&&(input==3))&&(a14==8))&&!(a24==1)))&&(a11==1))&&(a0==1)))&&(a22==1)))))){ + a25 = 1; + a20 = 1; + a19 = 5; + a29 = 7; + a0 = 0; + a24 = 1; + a7 = 1; + return 24; + } else if((((a25==1)&&(((a22==1)&&(((!(a24==1)&&(((a19==2)&&(((a11==1)&&(input==6))&&(a29==9)))&&!(a20==1)))&&(a28==1))&&(a7==1)))&&!(a0==1)))&&(a14==8))){ + a29 = 5; + a0 = 1; + a20 = 1; + a19 = 1; + a24 = 1; + return -1; + } else if((((((a7==1)&&((a28==1)&&((a19==1)&&((((a14==10)&&(((a22==1)&&(input==1))&&(a29==6)))&&(a11==1))&&!(a20==1)))))&&(a24==1))&&!(a25==1))&&(a0==1))){ + a29 = 5; + a11 = 0; + a14 = 8; + a19 = 3; + a24 = 0; + return 21; + } else if(((((((((a11==1)&&(((a22==1)&&(!(a0==1)&&((input==6)&&((a29==6)||(a29==7)))))&&(a14==9)))&&(a19==5))&&(a7==1))&&(a28==1))&&!(a24==1))&&!(a25==1))&&!(a20==1))){ + a29 = 7; + a14 = 8; + a7 = 0; + a20 = 1; + a25 = 1; + a24 = 1; + a19 = 2; + return 23; + } else if(((a11==1)&&((((((input==1)&&(((((((!(a20==1)&&!(a7==1))&&(a24==1))&&!(a25==1))&&(a29==9))&&(a19==5))||(((a29==5)&&((!(a24==1)&&((a7==1)&&(a20==1)))&&(a25==1)))&&(a19==1)))||((a19==1)&&(((((a7==1)&&(a20==1))&&!(a24==1))&&(a25==1))&&(a29==6)))))&&(a0==1))&&(a28==1))&&(a14==8))&&(a22==1)))){ + a19 = 3; + a11 = 0; + a7 = 0; + a20 = 1; + a25 = 0; + a24 = 0; + a29 = 8; + return 24; + } else if(((a29==8)&&(((a14==8)&&(((a20==1)&&((((!(a11==1)&&(((a0==1)&&(input==6))&&!(a25==1)))&&!(a24==1))&&(a28==1))&&(a22==1)))&&(a19==1)))&&!(a7==1)))){ + a14 = 9; + a20 = 0; + a11 = 1; + a19 = 4; + a25 = 1; + return 24; + } else if(((((a22==1)&&((a7==1)&&((!(a11==1)&&((((a28==1)&&(!(a25==1)&&((input==1)&&(((a29==6)||(a29==7))||(a29==8)))))&&(a14==9))&&(a19==5)))&&!(a20==1))))&&!(a0==1))&&(a24==1))){ + a24 = 0; + a20 = 1; + a29 = 9; + a25 = 1; + a7 = 0; + a19 = 3; + a0 = 1; + return -1; + } else if((!(a20==1)&&((a14==9)&&(!(a0==1)&&(((a22==1)&&((((a7==1)&&(!(a11==1)&&((a24==1)&&(((a29==5)||(a29==6))&&(input==2)))))&&(a19==2))&&(a28==1)))&&(a25==1)))))){ + a20 = 1; + a11 = 1; + a29 = 7; + a19 = 4; + a14 = 8; + a25 = 0; + return 24; + } else if(((((!(a0==1)&&((a11==1)&&(((((((((a29==6)||(a29==7))||(a29==8))&&(input==2))&&!(a20==1))&&(a25==1))&&(a19==5))&&(a14==9))&&(a24==1))))&&(a7==1))&&(a28==1))&&(a22==1))){ + a29 = 5; + a20 = 1; + a19 = 1; + a0 = 1; + a14 = 8; + return -1; + } else if((((a25==1)&&(!(a0==1)&&(((((a24==1)&&(((a11==1)&&((a29==9)&&((a28==1)&&(input==3))))&&!(a20==1)))&&(a19==5))&&(a22==1))&&(a14==9))))&&(a7==1))){ + a7 = 0; + a0 = 1; + a19 = 2; + a29 = 7; + return 24; + } else if(((a24==1)&&((a7==1)&&((a11==1)&&((a22==1)&&(((a0==1)&&((a19==5)&&(!(a20==1)&&((((input==5)&&((a29==7)||((a29==5)||(a29==6))))&&!(a25==1))&&(a14==10)))))&&(a28==1))))))){ + a20 = 1; + a19 = 1; + a29 = 5; + a25 = 1; + a14 = 8; + return -1; + } else if((((a28==1)&&((!(a11==1)&&((!(a0==1)&&(((((a20==1)&&(((a29==6)||(a29==7))&&(input==1)))&&!(a24==1))&&(a14==8))&&(a25==1)))&&(a22==1)))&&!(a7==1)))&&(a19==4))){ + a7 = 1; + a0 = 1; + a25 = 0; + a29 = 7; + a20 = 0; + a19 = 3; + return 23; + } else if((((a14==8)&&(((a28==1)&&((a0==1)&&((input==6)&&((((a19==5)&&((a29==8)&&(((!(a7==1)&&!(a20==1))&&(a24==1))&&!(a25==1))))||((a19==5)&&((a29==9)&&(((a24==1)&&(!(a7==1)&&!(a20==1)))&&!(a25==1)))))||((a19==1)&&((a29==5)&&((a25==1)&&(((a20==1)&&(a7==1))&&!(a24==1)))))))))&&!(a11==1)))&&(a22==1))){ + a11 = 1; + a24 = 1; + a0 = 0; + a29 = 8; + a20 = 0; + a19 = 5; + a7 = 0; + a25 = 1; + return 24; + } else if((((a7==1)&&((a24==1)&&((a22==1)&&(((((a11==1)&&(((!(a25==1)&&(input==4))&&(a28==1))&&(a29==9)))&&(a14==9))&&!(a0==1))&&(a19==5)))))&&!(a20==1))){ + a24 = 0; + a11 = 0; + a0 = 1; + a19 = 2; + a14 = 8; + a7 = 0; + return 21; + } else if(((!(a0==1)&&(((a28==1)&&(!(a25==1)&&(((((a11==1)&&((input==2)&&((((a19==4)&&(a29==8))||((a19==4)&&(a29==9)))||((a19==5)&&(a29==5)))))&&!(a20==1))&&(a22==1))&&(a7==1))))&&(a14==9)))&&!(a24==1))){ + a7 = 0; + a25 = 1; + a24 = 1; + a0 = 1; + a19 = 1; + a29 = 9; + return 24; + } else if(((a14==9)&&((a0==1)&&((a11==1)&&((a22==1)&&(((((((a29==8)&&(!(a25==1)&&((!(a7==1)&&!(a20==1))&&(a24==1))))&&(a19==5))||((a19==5)&&((a29==9)&&(((a24==1)&&(!(a7==1)&&!(a20==1)))&&!(a25==1)))))||(((a29==5)&&((a25==1)&&(((a7==1)&&(a20==1))&&!(a24==1))))&&(a19==1)))&&(input==5))&&(a28==1))))))){ + a0 = 0; + a25 = 1; + a20 = 1; + a29 = 8; + a14 = 8; + a24 = 1; + a7 = 1; + a19 = 3; + return 23; + } else if(((((a19==3)&&(((((a29==5)&&((a25==1)&&((((a22==1)&&(input==1))&&(a11==1))&&(a14==8))))&&!(a20==1))&&(a28==1))&&(a24==1)))&&!(a7==1))&&!(a0==1))){ + a0 = 1; + a19 = 1; + a20 = 1; + a7 = 1; + return -1; + } else if((((a14==10)&&((((a25==1)&&(((a0==1)&&((((a11==1)&&((input==6)&&(a29==9)))&&!(a20==1))&&!(a7==1)))&&(a19==2)))&&(a24==1))&&(a22==1)))&&(a28==1))){ + a19 = 1; + a11 = 0; + a14 = 9; + a7 = 1; + a20 = 1; + a24 = 0; + return 23; + } else if((((a28==1)&&(!(a0==1)&&(((a14==8)&&(((!(a20==1)&&(!(a11==1)&&((input==6)&&(((a29==6)&&(a19==3))||(((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))))))&&(a22==1))&&!(a7==1)))&&(a24==1))))&&(a25==1))){ + a29 = 9; + a7 = 1; + a11 = 1; + a19 = 5; + a25 = 0; + a20 = 1; + return 21; + } else if(((((((!(a25==1)&&(((((a11==1)&&((input==2)&&(((a29==6)||(a29==7))||(a29==8))))&&(a24==1))&&(a0==1))&&(a14==8)))&&!(a20==1))&&(a28==1))&&(a19==1))&&!(a7==1))&&(a22==1))){ + a19 = 5; + a11 = 0; + a29 = 7; + return 23; + } else if((!(a7==1)&&((a29==6)&&((!(a24==1)&&((a25==1)&&(((((a19==4)&&((a0==1)&&((a28==1)&&(input==2))))&&!(a11==1))&&(a14==9))&&(a22==1))))&&(a20==1))))){ + a24 = 1; + a20 = 0; + a19 = 1; + a29 = 8; + a11 = 1; + a7 = 1; + return -1; + } else if((((a29==8)&&((a0==1)&&((a25==1)&&((a19==4)&&((a7==1)&&(!(a20==1)&&((a11==1)&&((a28==1)&&(((a22==1)&&(input==1))&&(a14==10))))))))))&&(a24==1))){ + a14 = 8; + a25 = 0; + a24 = 0; + a0 = 0; + a20 = 1; + a19 = 3; + a11 = 0; + return 24; + } else if((((((a11==1)&&(((((((a19==2)&&((input==5)&&(a29==6)))&&(a14==8))&&(a22==1))&&(a0==1))&&(a28==1))&&!(a20==1)))&&(a7==1))&&(a25==1))&&!(a24==1))){ + a29 = 8; + a19 = 1; + a20 = 1; + a0 = 0; + a24 = 1; + return 24; + } else if(((a29==9)&&(!(a24==1)&&(!(a20==1)&&(((a25==1)&&((a28==1)&&(((!(a11==1)&&(((a22==1)&&(input==3))&&!(a0==1)))&&(a7==1))&&(a14==9))))&&(a19==5)))))){ + a19 = 3; + a11 = 1; + a7 = 0; + a0 = 1; + a24 = 1; + return -1; + } else if((((a24==1)&&((a22==1)&&((((((a28==1)&&(((a0==1)&&((input==1)&&(a29==9)))&&(a25==1)))&&(a20==1))&&!(a7==1))&&(a11==1))&&(a19==2))))&&(a14==9))){ + a20 = 0; + a29 = 8; + a11 = 0; + a19 = 5; + a24 = 0; + a0 = 0; + a7 = 1; + return 24; + } else if((!(a25==1)&&(((((((a22==1)&&((a20==1)&&((a14==9)&&(((input==5)&&((a29==6)||(a29==7)))&&(a19==2)))))&&!(a0==1))&&(a7==1))&&(a28==1))&&(a24==1))&&!(a11==1)))){ + a29 = 5; + a14 = 8; + a19 = 3; + a20 = 0; + a11 = 1; + return 24; + } else if(((!(a0==1)&&((a22==1)&&((a28==1)&&((!(a7==1)&&((((a25==1)&&((a24==1)&&((input==5)&&(a14==9))))&&(a20==1))&&(a19==3)))&&(a29==5)))))&&(a11==1))){ + a7 = 1; + a0 = 1; + a29 = 6; + return 23; + } else if(((a19==4)&&((((((a22==1)&&((a20==1)&&(!(a24==1)&&((a0==1)&&(((input==3)&&((a29==8)||((a29==6)||(a29==7))))&&(a14==9))))))&&(a28==1))&&!(a7==1))&&!(a25==1))&&!(a11==1)))){ + a20 = 0; + a7 = 1; + a29 = 5; + a14 = 8; + a19 = 5; + return -1; + } else if((((a20==1)&&(!(a7==1)&&((a14==8)&&(((((!(a0==1)&&(!(a25==1)&&(((a29==6)||(a29==7))&&(input==6))))&&(a22==1))&&(a19==2))&&(a28==1))&&!(a24==1)))))&&!(a11==1))){ + a19 = 1; + a0 = 1; + a25 = 1; + a11 = 1; + a29 = 5; + a24 = 1; + a7 = 1; + return -1; + } else if(((a14==8)&&((a20==1)&&(!(a11==1)&&((!(a7==1)&&((a22==1)&&(((((a28==1)&&((input==5)&&(((a29==5)||(a29==6))||(a29==7))))&&!(a24==1))&&(a19==5))&&(a25==1))))&&!(a0==1)))))){ + a7 = 1; + a29 = 7; + a19 = 1; + a25 = 0; + a0 = 1; + a14 = 9; + return 23; + } else if(((a11==1)&&(((((a19==3)&&((a24==1)&&((a28==1)&&((a29==5)&&((a14==8)&&(!(a7==1)&&((input==4)&&!(a0==1))))))))&&(a22==1))&&!(a20==1))&&!(a25==1)))){ + a19 = 1; + a20 = 1; + a25 = 1; + a0 = 1; + a7 = 1; + return -1; + } else if((((a28==1)&&(!(a24==1)&&(((!(a25==1)&&(!(a11==1)&&(!(a20==1)&&(((((a29==5)&&(a19==5))||(((a29==8)&&(a19==4))||((a19==4)&&(a29==9))))&&(input==6))&&(a0==1)))))&&(a22==1))&&!(a7==1))))&&(a14==8))){ + a25 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a0==1)&&(((a19==3)&&(((a20==1)&&((((((a28==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==5)))&&!(a25==1))&&(a14==8))&&(a11==1))&&(a22==1)))&&(a7==1)))&&!(a24==1)))){ + a24 = 1; + a19 = 5; + a29 = 5; + a0 = 0; + return 23; + } else if((((!(a20==1)&&(((!(a0==1)&&((a19==2)&&((((a11==1)&&(((a29==5)||(a29==6))&&(input==6)))&&(a25==1))&&!(a7==1))))&&(a28==1))&&!(a24==1)))&&(a14==8))&&(a22==1))){ + a29 = 5; + a0 = 1; + a7 = 1; + a19 = 1; + a20 = 1; + a24 = 1; + return -1; + } else if((!(a0==1)&&(!(a11==1)&&((a19==5)&&((a28==1)&&(!(a25==1)&&(((!(a7==1)&&(((((a29==6)||(a29==7))&&(input==2))&&(a14==9))&&(a20==1)))&&(a24==1))&&(a22==1)))))))){ + a20 = 0; + a11 = 1; + a29 = 5; + a14 = 8; + a19 = 1; + return 21; + } else if(((a7==1)&&(((a25==1)&&((((a14==8)&&(((((((a29==6)&&(a19==2))||(((a19==1)&&(a29==9))||((a19==2)&&(a29==5))))&&(input==4))&&!(a20==1))&&!(a24==1))&&!(a11==1)))&&(a22==1))&&(a0==1)))&&(a28==1)))){ + a20 = 1; + a24 = 1; + a29 = 6; + a19 = 2; + a11 = 1; + a0 = 0; + a7 = 0; + return 23; + } else if((((((((a28==1)&&(((a14==8)&&((a22==1)&&(((a29==9)&&(input==5))&&!(a0==1))))&&!(a7==1)))&&(a11==1))&&!(a20==1))&&!(a25==1))&&!(a24==1))&&(a19==4))){ + a25 = 1; + a11 = 0; + a19 = 1; + a29 = 7; + a20 = 1; + return 21; + } else if((((!(a25==1)&&((((a28==1)&&((a19==1)&&((a7==1)&&(((a20==1)&&((input==1)&&((a29==7)||(a29==8))))&&(a22==1)))))&&!(a11==1))&&(a24==1)))&&!(a0==1))&&(a14==9))){ + a11 = 1; + a7 = 0; + a14 = 8; + a0 = 1; + a19 = 3; + a29 = 7; + return 23; + } else if(((((a11==1)&&((((!(a7==1)&&((a22==1)&&((a24==1)&&((input==4)&&(((a29==6)&&(a19==4))||(((a29==9)&&(a19==3))||((a19==4)&&(a29==5))))))))&&!(a25==1))&&(a14==8))&&(a28==1)))&&!(a0==1))&&(a20==1))){ + a7 = 1; + a29 = 6; + a19 = 2; + return -1; + } else if((((((a19==2)&&((a20==1)&&(((((((((a29==7)||(a29==8))||(a29==9))&&(input==1))&&(a22==1))&&(a25==1))&&!(a11==1))&&(a14==9))&&!(a0==1))))&&(a28==1))&&!(a7==1))&&!(a24==1))){ + a25 = 0; + a20 = 0; + a29 = 8; + a0 = 1; + return 21; + } else if(((((a0==1)&&((a14==9)&&(((!(a20==1)&&((((input==5)&&((((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))||((a19==5)&&(a29==5))))&&(a11==1))&&(a24==1)))&&!(a7==1))&&(a25==1))))&&(a22==1))&&(a28==1))){ + a14 = 8; + a20 = 1; + a7 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((!(a0==1)&&(((!(a20==1)&&(!(a24==1)&&((((a7==1)&&((((a29==8)||(a29==9))&&(input==5))&&(a25==1)))&&(a14==8))&&(a19==3))))&&(a22==1))&&(a28==1)))&&(a11==1))){ + a0 = 1; + a29 = 6; + a14 = 9; + a19 = 2; + a20 = 1; + return 21; + } else if(((!(a20==1)&&(!(a7==1)&&((a11==1)&&(((!(a25==1)&&(((((input==4)&&((a29==5)||(a29==6)))&&(a22==1))&&(a19==4))&&(a14==9)))&&!(a24==1))&&(a28==1)))))&&!(a0==1))){ + a19 = 5; + a14 = 8; + a29 = 7; + a20 = 1; + return -1; + } else if((((!(a24==1)&&(((a22==1)&&(!(a20==1)&&(((a19==1)&&((((a25==1)&&(input==5))&&!(a7==1))&&(a29==6)))&&(a11==1))))&&(a28==1)))&&!(a0==1))&&(a14==9))){ + a25 = 0; + a19 = 4; + a29 = 7; + a7 = 1; + a20 = 1; + a24 = 1; + a14 = 8; + return 24; + } else if(((!(a24==1)&&((((a7==1)&&((((a11==1)&&((a20==1)&&(((input==6)&&(a22==1))&&(a25==1))))&&(a29==8))&&(a19==1)))&&(a28==1))&&(a14==10)))&&(a0==1))){ + a25 = 0; + a14 = 9; + a19 = 3; + a29 = 6; + return 23; + } else if(((a29==9)&&(((a19==5)&&((a0==1)&&(!(a20==1)&&((!(a25==1)&&(!(a24==1)&&(((a14==9)&&((input==6)&&(a28==1)))&&!(a11==1))))&&!(a7==1)))))&&(a22==1)))){ + a19 = 2; + a25 = 1; + a24 = 1; + a11 = 1; + a29 = 6; + return 24; + } else if(((!(a0==1)&&((a14==8)&&(((((((a24==1)&&(!(a7==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==1))))&&(a28==1))&&(a19==5))&&(a11==1))&&(a20==1))&&(a22==1))))&&!(a25==1))){ + a11 = 0; + a0 = 1; + a20 = 0; + a24 = 0; + a29 = 9; + return -1; + } else if((((a19==1)&&((((a24==1)&&(((a14==9)&&(!(a0==1)&&(((a20==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==2)))&&(a11==1))))&&!(a7==1)))&&!(a25==1))&&(a22==1)))&&(a28==1))){ + a29 = 6; + a24 = 0; + a11 = 0; + a0 = 1; + a14 = 8; + a20 = 0; + return 24; + } else if(((!(a7==1)&&((((a29==9)&&(((a22==1)&&((!(a20==1)&&((a0==1)&&((a28==1)&&(input==3))))&&!(a25==1)))&&(a11==1)))&&(a19==4))&&(a14==9)))&&!(a24==1))){ + a25 = 1; + a19 = 2; + a0 = 0; + a29 = 7; + a14 = 8; + a24 = 1; + return 21; + } else if((((a0==1)&&(((a28==1)&&((a7==1)&&((((a22==1)&&((a19==1)&&(((input==1)&&((a29==5)||(a29==6)))&&(a14==8))))&&!(a24==1))&&!(a25==1))))&&(a11==1)))&&!(a20==1))){ + a20 = 1; + a24 = 1; + a0 = 0; + a7 = 0; + a29 = 8; + return 21; + } else if((((a28==1)&&(((((a19==3)&&((a0==1)&&((a14==8)&&((a22==1)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==3))&&!(a20==1))))))&&!(a24==1))&&!(a7==1))&&(a11==1)))&&!(a25==1))){ + a19 = 2; + a0 = 0; + a24 = 1; + a29 = 6; + return 23; + } else if(((a7==1)&&(!(a20==1)&&(!(a11==1)&&((((a19==5)&&(((a14==9)&&(!(a24==1)&&(!(a25==1)&&((input==1)&&((a29==7)||((a29==5)||(a29==6)))))))&&(a0==1)))&&(a28==1))&&(a22==1)))))){ + a25 = 1; + a19 = 4; + a0 = 0; + a14 = 8; + a29 = 8; + return 21; + } else if((((a0==1)&&((a11==1)&&((((a24==1)&&(((a22==1)&&(((a14==9)&&((input==1)&&(a28==1)))&&!(a25==1)))&&!(a20==1)))&&(a29==8))&&(a19==4))))&&(a7==1))){ + a20 = 1; + a11 = 0; + a19 = 5; + a29 = 5; + a7 = 0; + a14 = 8; + a0 = 0; + return -1; + } else if(((a19==1)&&(((a22==1)&&(((a11==1)&&(((((((input==5)&&(a28==1))&&!(a7==1))&&(a24==1))&&!(a25==1))&&(a20==1))&&(a14==10)))&&(a0==1)))&&(a29==7)))){ + a0 = 0; + a24 = 0; + a25 = 1; + a14 = 8; + a29 = 8; + return 21; + } else if(((a0==1)&&((a7==1)&&((a25==1)&&((a24==1)&&((a28==1)&&(((a22==1)&&(((a14==8)&&((((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))&&(input==3)))&&(a20==1)))&&!(a11==1)))))))){ + a29 = 5; + a11 = 1; + a19 = 1; + return -1; + } else if((((a28==1)&&((((a11==1)&&((a24==1)&&((a0==1)&&(((a29==7)&&(((a14==8)&&(input==4))&&(a22==1)))&&(a19==4)))))&&(a20==1))&&(a25==1)))&&!(a7==1))){ + a29 = 9; + a19 = 5; + a25 = 0; + return 23; + } else if(((((((a0==1)&&(((a28==1)&&((a14==8)&&(((input==2)&&(((a19==3)&&(a29==5))||(((a29==8)&&(a19==2))||((a19==2)&&(a29==9)))))&&!(a24==1))))&&(a20==1)))&&!(a7==1))&&(a22==1))&&(a11==1))&&(a25==1))){ + a19 = 3; + a20 = 0; + a29 = 6; + a0 = 0; + a24 = 1; + return 24; + } else if((!(a24==1)&&((((a7==1)&&((a19==1)&&(!(a11==1)&&((a14==9)&&((a25==1)&&(!(a20==1)&&((a0==1)&&((input==3)&&((a29==8)||(a29==9))))))))))&&(a22==1))&&(a28==1)))){ + a7 = 0; + a29 = 8; + a25 = 0; + a20 = 1; + return -1; + } else if(((a20==1)&&(!(a11==1)&&(((a14==9)&&((a22==1)&&(((!(a7==1)&&(((input==6)&&(((a19==5)&&(a29==6))||(((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))))&&(a0==1)))&&!(a24==1))&&(a25==1))))&&(a28==1))))){ + a7 = 1; + a19 = 1; + a14 = 8; + a11 = 1; + a29 = 9; + a0 = 0; + a24 = 1; + return 21; + } else if(((a22==1)&&(((a19==2)&&((a29==5)&&((a28==1)&&(((a25==1)&&((!(a0==1)&&((a24==1)&&((input==6)&&(a14==9))))&&(a7==1)))&&(a11==1)))))&&!(a20==1)))){ + a0 = 1; + a19 = 1; + a14 = 8; + a20 = 1; + return -1; + } else if((((a28==1)&&(((a22==1)&&(((!(a11==1)&&(((!(a20==1)&&(!(a7==1)&&(input==5)))&&(a29==5))&&(a14==9)))&&!(a25==1))&&(a19==2)))&&(a24==1)))&&(a0==1))){ + a19 = 5; + a25 = 1; + a29 = 9; + a24 = 0; + return 23; + } else if(((((((((a14==8)&&((((input==5)&&((((a29==8)&&(a19==2))||((a29==9)&&(a19==2)))||((a19==3)&&(a29==5))))&&(a20==1))&&!(a0==1)))&&(a22==1))&&!(a25==1))&&(a28==1))&&!(a11==1))&&!(a7==1))&&!(a24==1))){ + a24 = 1; + a11 = 1; + a0 = 1; + a19 = 1; + a25 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if((((a19==1)&&(!(a25==1)&&((a11==1)&&((!(a7==1)&&(!(a0==1)&&(((a22==1)&&(((input==1)&&(((a29==7)||(a29==8))||(a29==9)))&&(a14==8)))&&!(a24==1))))&&(a28==1)))))&&(a20==1))){ + a0 = 1; + a25 = 1; + a24 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if((((((a11==1)&&(!(a24==1)&&((a22==1)&&((a19==2)&&((a25==1)&&((a7==1)&&((a20==1)&&((input==6)&&((a29==6)||(a29==7))))))))))&&(a14==8))&&(a0==1))&&(a28==1))){ + a11 = 0; + a19 = 5; + a20 = 0; + a29 = 9; + return 21; + } else if(((((((a29==8)&&(((a14==9)&&(((a0==1)&&(((a11==1)&&(input==6))&&(a22==1)))&&(a20==1)))&&(a28==1)))&&(a24==1))&&!(a25==1))&&(a7==1))&&(a19==3))){ + a19 = 5; + a29 = 7; + a14 = 8; + a0 = 0; + a7 = 0; + return 23; + } else if(((a19==5)&&(!(a25==1)&&(((a28==1)&&((a0==1)&&((a20==1)&&(((a14==8)&&(!(a11==1)&&((((a29==8)||(a29==9))&&(input==2))&&!(a7==1))))&&(a24==1)))))&&(a22==1))))){ + a19 = 2; + a0 = 0; + a20 = 0; + a29 = 5; + a24 = 0; + a25 = 1; + return 21; + } else if(((a22==1)&&(((a20==1)&&((a25==1)&&(((a19==1)&&(((((a7==1)&&(((a29==7)||(a29==8))&&(input==5)))&&!(a24==1))&&(a14==9))&&(a11==1)))&&!(a0==1))))&&(a28==1)))){ + a14 = 8; + a19 = 5; + a29 = 8; + a20 = 0; + return 24; + } else if((!(a0==1)&&((a24==1)&&((a20==1)&&(((a14==8)&&(((a22==1)&&((input==3)&&(((((a7==1)&&!(a25==1))&&(a29==9))&&(a19==5))||(((a29==5)&&(!(a7==1)&&(a25==1)))&&(a19==1)))))&&(a11==1)))&&(a28==1)))))){ + a25 = 1; + a19 = 1; + a0 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if((((!(a11==1)&&(!(a24==1)&&(((a29==5)&&((((((input==2)&&(a14==9))&&(a19==1))&&!(a0==1))&&(a28==1))&&(a7==1)))&&!(a20==1))))&&!(a25==1))&&(a22==1))){ + a29 = 9; + a0 = 1; + a25 = 1; + a19 = 2; + return -1; + } else if((!(a25==1)&&(((a22==1)&&((!(a0==1)&&(((a11==1)&&((a19==3)&&(((a7==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==1)))&&(a24==1))))&&(a14==9)))&&!(a20==1)))&&(a28==1)))){ + a19 = 4; + a24 = 0; + a25 = 1; + a29 = 5; + a14 = 8; + a20 = 1; + return -1; + } else if(((a19==2)&&(((!(a7==1)&&((!(a25==1)&&(((((!(a11==1)&&(input==5))&&(a22==1))&&(a0==1))&&(a29==6))&&(a24==1)))&&(a20==1)))&&(a14==8))&&(a28==1)))){ + a11 = 1; + a19 = 5; + a25 = 1; + a29 = 9; + a7 = 1; + a0 = 0; + return 21; + } else if((!(a24==1)&&((((a28==1)&&(!(a11==1)&&((a14==8)&&(((((a19==5)&&((a29==9)&&(!(a25==1)&&(!(a7==1)&&(a20==1)))))||((((a25==1)&&((a7==1)&&!(a20==1)))&&(a29==5))&&(a19==1)))||(((a29==6)&&((a25==1)&&(!(a20==1)&&(a7==1))))&&(a19==1)))&&(input==3)))))&&(a0==1))&&(a22==1)))){ + a11 = 1; + a25 = 0; + a20 = 0; + a24 = 1; + a19 = 5; + a29 = 8; + a7 = 0; + a0 = 0; + return 21; + } else if(((((a11==1)&&((!(a0==1)&&((a20==1)&&(((a14==9)&&((input==1)&&((((a25==1)&&(a29==9))&&(a19==5))||((a19==1)&&((a29==5)&&!(a25==1))))))&&(a22==1))))&&!(a7==1)))&&(a28==1))&&!(a24==1))){ + a19 = 5; + a24 = 1; + a29 = 9; + a7 = 1; + a25 = 1; + return -1; + } else if((!(a20==1)&&(((a19==5)&&(((((((a29==8)&&(((a22==1)&&(input==3))&&(a11==1)))&&(a7==1))&&(a28==1))&&!(a0==1))&&!(a25==1))&&(a24==1)))&&(a14==9)))){ + a7 = 0; + a29 = 5; + a20 = 1; + a14 = 8; + return -1; + } else if((((((a11==1)&&((a28==1)&&((((a7==1)&&((a24==1)&&((((a19==3)&&(a29==5))||(((a19==2)&&(a29==8))||((a29==9)&&(a19==2))))&&(input==3))))&&(a25==1))&&!(a20==1))))&&(a14==9))&&(a22==1))&&!(a0==1))){ + a11 = 0; + a0 = 1; + a29 = 8; + a19 = 4; + a24 = 0; + a14 = 8; + a7 = 0; + return 21; + } else if(((a29==6)&&(!(a25==1)&&((a19==5)&&((!(a7==1)&&(!(a20==1)&&(((((a14==8)&&((input==5)&&(a24==1)))&&!(a0==1))&&(a28==1))&&(a11==1))))&&(a22==1)))))){ + a0 = 1; + a24 = 0; + a11 = 0; + a14 = 9; + a29 = 8; + a19 = 1; + return 24; + } else if(((((!(a0==1)&&((a19==5)&&((a14==8)&&(((a25==1)&&((a22==1)&&((a24==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==2)))))&&!(a11==1)))))&&(a7==1))&&(a20==1))&&(a28==1))){ + a29 = 6; + a19 = 4; + a25 = 0; + a11 = 1; + return 21; + } else if((!(a11==1)&&((a28==1)&&((a19==5)&&((a20==1)&&((a22==1)&&((((((a0==1)&&(((a29==5)||(a29==6))&&(input==5)))&&(a14==8))&&!(a7==1))&&(a25==1))&&(a24==1)))))))){ + a24 = 0; + a20 = 0; + a25 = 0; + a29 = 8; + return 21; + } else if(((a20==1)&&((a22==1)&&(((a28==1)&&(!(a0==1)&&((a11==1)&&((((((input==4)&&((a29==8)||(a29==9)))&&(a19==2))&&(a25==1))&&!(a24==1))&&(a7==1)))))&&(a14==8))))){ + a11 = 0; + a25 = 0; + a14 = 9; + a29 = 9; + a20 = 0; + a19 = 5; + a7 = 0; + a0 = 1; + return 21; + } else if(((a20==1)&&((a0==1)&&(((((!(a7==1)&&(!(a25==1)&&((a22==1)&&((((a29==5)&&(a19==2))||(((a19==1)&&(a29==8))||((a29==9)&&(a19==1))))&&(input==3)))))&&(a28==1))&&(a24==1))&&!(a11==1))&&(a14==9))))){ + a0 = 0; + a25 = 1; + a19 = 1; + a29 = 8; + a11 = 1; + a14 = 8; + return 23; + } else if(((!(a11==1)&&((((a25==1)&&(!(a7==1)&&((a22==1)&&((a19==1)&&((!(a0==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==2)))&&(a28==1))))))&&(a20==1))&&(a24==1)))&&(a14==9))){ + a14 = 8; + a7 = 1; + a11 = 1; + a29 = 5; + a20 = 0; + a19 = 4; + return -1; + } else if(((a29==6)&&((a11==1)&&(((a28==1)&&((!(a7==1)&&((a24==1)&&((!(a0==1)&&(((a19==5)&&(input==6))&&(a14==8)))&&!(a25==1))))&&(a22==1)))&&!(a20==1))))){ + a14 = 9; + a19 = 2; + a0 = 1; + a24 = 0; + a11 = 0; + return 24; + } else if((!(a25==1)&&((a20==1)&&(((a28==1)&&((!(a24==1)&&((!(a7==1)&&((a19==2)&&(((input==5)&&((a29==5)||(a29==6)))&&!(a11==1))))&&(a0==1)))&&(a22==1)))&&(a14==9))))){ + a29 = 8; + a11 = 1; + a14 = 8; + a7 = 1; + a0 = 0; + a24 = 1; + a19 = 4; + return 21; + } else if(((a22==1)&&(((a28==1)&&(((((a14==8)&&((((input==6)&&((((a19==1)&&(a29==8))||((a19==1)&&(a29==9)))||((a29==5)&&(a19==2))))&&!(a0==1))&&!(a24==1)))&&(a20==1))&&!(a11==1))&&!(a25==1)))&&!(a7==1)))){ + a11 = 1; + a19 = 1; + a24 = 1; + a20 = 0; + a29 = 7; + return 23; + } else if((((a25==1)&&((a22==1)&&(((a19==4)&&(!(a11==1)&&(((a7==1)&&((a28==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==4))&&(a14==9))))&&!(a20==1))))&&(a0==1))))&&(a24==1))){ + a11 = 1; + a20 = 1; + a19 = 5; + a0 = 0; + a29 = 9; + a14 = 8; + return -1; + } else if(((((((a0==1)&&(((a22==1)&&(((a19==3)&&((a14==8)&&((a11==1)&&(input==5))))&&(a28==1)))&&!(a24==1)))&&(a25==1))&&(a20==1))&&(a29==6))&&!(a7==1))){ + a0 = 0; + a19 = 4; + a24 = 1; + a20 = 0; + return 24; + } else if(((a19==3)&&((a14==9)&&((a24==1)&&((((a25==1)&&(((((a28==1)&&((input==2)&&!(a0==1)))&&!(a7==1))&&(a20==1))&&(a11==1)))&&(a29==6))&&(a22==1)))))){ + a19 = 4; + a7 = 1; + a11 = 0; + a24 = 0; + a29 = 5; + a14 = 8; + a25 = 0; + return 24; + } else if((!(a20==1)&&(((a22==1)&&((a11==1)&&(((a29==7)&&(((!(a25==1)&&((a7==1)&&((a14==8)&&(input==1))))&&(a28==1))&&!(a24==1)))&&(a19==4))))&&!(a0==1)))){ + a19 = 5; + a14 = 9; + a24 = 1; + a29 = 8; + return 21; + } else if(((((a11==1)&&(!(a0==1)&&((((((a22==1)&&(((input==6)&&(((a29==5)||(a29==6))||(a29==7)))&&(a14==8)))&&!(a7==1))&&(a28==1))&&!(a20==1))&&(a19==1))))&&(a25==1))&&(a24==1))){ + a29 = 7; + a19 = 3; + a7 = 1; + return -1; + } else if((!(a20==1)&&(((!(a0==1)&&(!(a24==1)&&(((a7==1)&&((a22==1)&&((a28==1)&&(!(a25==1)&&(((a29==5)||(a29==6))&&(input==6))))))&&(a14==8))))&&!(a11==1))&&(a19==2)))){ + a19 = 1; + a24 = 1; + a29 = 6; + a7 = 0; + a11 = 1; + return -1; + } else if((((!(a11==1)&&((a0==1)&&((((a20==1)&&((((input==5)&&((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))||((a19==4)&&(a29==6))))&&!(a25==1))&&(a22==1)))&&(a24==1))&&(a7==1))))&&(a14==8))&&(a28==1))){ + a11 = 1; + a19 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if(((a19==4)&&((!(a7==1)&&((a22==1)&&((a14==9)&&((a11==1)&&((a28==1)&&((a20==1)&&(((((a29==7)||(a29==8))&&(input==3))&&(a25==1))&&!(a0==1))))))))&&!(a24==1)))){ + a29 = 7; + a0 = 1; + a11 = 0; + a14 = 8; + a20 = 0; + a19 = 5; + return 23; + } else if((((a14==9)&&((a7==1)&&(!(a11==1)&&(!(a0==1)&&((a28==1)&&((((a22==1)&&((input==1)&&(((a19==4)&&(a29==6))||(((a19==3)&&(a29==9))||((a19==4)&&(a29==5))))))&&(a24==1))&&(a20==1)))))))&&!(a25==1))){ + a11 = 1; + a29 = 9; + a19 = 3; + a14 = 8; + a20 = 0; + return -1; + } else if(((a19==1)&&((!(a24==1)&&((a28==1)&&(((a22==1)&&((a0==1)&&((a20==1)&&(((a14==8)&&(((a29==6)||(a29==7))&&(input==4)))&&(a11==1)))))&&(a7==1))))&&!(a25==1)))){ + a25 = 1; + a19 = 2; + a24 = 1; + a0 = 0; + a29 = 7; + return 21; + } else if(((a11==1)&&(((((((a20==1)&&((a0==1)&&(((((a19==3)&&(a29==5))||(((a19==2)&&(a29==8))||((a29==9)&&(a19==2))))&&(input==3))&&(a14==8))))&&(a25==1))&&!(a24==1))&&(a7==1))&&(a28==1))&&(a22==1)))){ + a19 = 3; + a11 = 0; + a29 = 7; + a25 = 0; + a20 = 0; + return 23; + } else if((((a28==1)&&((a22==1)&&(((((((a19==1)&&((((a29==6)||(a29==7))&&(input==6))&&!(a7==1)))&&(a11==1))&&!(a25==1))&&!(a0==1))&&!(a20==1))&&(a14==8))))&&!(a24==1))){ + a7 = 1; + a14 = 9; + a29 = 5; + a0 = 1; + a25 = 1; + return 23; + } else if(((a11==1)&&(((!(a0==1)&&(((a28==1)&&(!(a25==1)&&((a14==9)&&(((((a29==7)||((a29==5)||(a29==6)))&&(input==2))&&(a19==1))&&!(a20==1)))))&&!(a7==1)))&&(a22==1))&&(a24==1)))){ + a29 = 9; + a25 = 1; + a14 = 8; + a0 = 1; + a20 = 1; + a19 = 2; + return -1; + } else if(((!(a24==1)&&(!(a7==1)&&((a20==1)&&(((a11==1)&&(!(a25==1)&&(!(a0==1)&&(((input==6)&&((((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))||((a29==5)&&(a19==3))))&&(a28==1)))))&&(a14==8)))))&&(a22==1))){ + a29 = 5; + a25 = 1; + a24 = 1; + a14 = 9; + a19 = 5; + return 23; + } else if(((!(a11==1)&&(((a0==1)&&((((a19==2)&&((a14==8)&&((((a25==1)&&(input==6))&&(a24==1))&&(a22==1))))&&!(a20==1))&&(a7==1)))&&(a28==1)))&&(a29==9))){ + a11 = 1; + a25 = 0; + a0 = 0; + a19 = 3; + return 21; + } else if(((a19==5)&&(((a7==1)&&(((a24==1)&&((a14==8)&&(((a22==1)&&(!(a11==1)&&((a28==1)&&((input==4)&&(((a29==5)||(a29==6))||(a29==7))))))&&!(a0==1))))&&(a25==1)))&&!(a20==1)))){ + a19 = 1; + a11 = 1; + a29 = 5; + a0 = 1; + a20 = 1; + return -1; + } else if((((a0==1)&&(!(a25==1)&&((!(a20==1)&&(((a28==1)&&(((((input==4)&&((a29==8)||(a29==9)))&&!(a24==1))&&(a19==2))&&(a22==1)))&&(a14==9)))&&(a7==1))))&&(a11==1))){ + a29 = 6; + a24 = 1; + a7 = 0; + a25 = 1; + a19 = 3; + return 21; + } else if(((a19==4)&&(!(a20==1)&&(((a29==6)&&((a22==1)&&(!(a24==1)&&((!(a25==1)&&((a28==1)&&(((input==4)&&(a14==8))&&(a0==1))))&&!(a7==1)))))&&(a11==1))))){ + a24 = 1; + a7 = 1; + a11 = 0; + a0 = 0; + a25 = 1; + a19 = 1; + a29 = 8; + return 21; + } else if((((a22==1)&&((a0==1)&&((((a28==1)&&((!(a11==1)&&(!(a7==1)&&(((input==5)&&(((a29==7)||(a29==8))||(a29==9)))&&(a19==2))))&&(a14==8)))&&(a20==1))&&!(a25==1))))&&(a24==1))){ + a29 = 9; + a0 = 0; + a19 = 1; + a25 = 1; + a11 = 1; + return 23; + } else if(((!(a25==1)&&(((a28==1)&&((a19==4)&&(!(a20==1)&&(((a11==1)&&(((a14==8)&&(((a29==8)||(a29==9))&&(input==2)))&&(a22==1)))&&!(a7==1)))))&&!(a0==1)))&&(a24==1))){ + a7 = 1; + a20 = 1; + a29 = 6; + a19 = 5; + a25 = 1; + return -1; + } else if(((!(a20==1)&&(!(a7==1)&&((a14==10)&&((a29==6)&&((((((a19==5)&&((input==4)&&(a24==1)))&&(a28==1))&&!(a25==1))&&(a0==1))&&(a11==1))))))&&(a22==1))){ + a14 = 8; + a25 = 1; + a0 = 0; + a24 = 0; + a29 = 8; + a19 = 4; + return 21; + } else if((((a14==8)&&(!(a25==1)&&((!(a7==1)&&((a28==1)&&((!(a0==1)&&(((a19==4)&&(!(a20==1)&&(input==1)))&&(a29==9)))&&(a11==1))))&&(a22==1))))&&!(a24==1))){ + a11 = 0; + a0 = 1; + a29 = 5; + return 24; + } else if((!(a0==1)&&((((a22==1)&&(!(a20==1)&&((a25==1)&&(((a14==8)&&((!(a7==1)&&((input==5)&&((a29==6)||(a29==7))))&&(a28==1)))&&(a11==1)))))&&(a24==1))&&(a19==2)))){ + a0 = 1; + a29 = 6; + a19 = 3; + a11 = 0; + a24 = 0; + a25 = 0; + a7 = 1; + return 23; + } else if(((a19==2)&&(((a22==1)&&((!(a7==1)&&((a28==1)&&(!(a24==1)&&(!(a20==1)&&((a14==8)&&(((input==3)&&((a29==5)||(a29==6)))&&!(a0==1)))))))&&(a25==1)))&&(a11==1)))){ + a7 = 1; + a25 = 0; + a19 = 5; + a29 = 6; + a24 = 1; + return 23; + } else if(((a22==1)&&((a20==1)&&(((a25==1)&&((a11==1)&&((!(a7==1)&&(!(a0==1)&&(((a14==9)&&((((a29==7)||(a29==8))||(a29==9))&&(input==4)))&&(a24==1))))&&(a19==3))))&&(a28==1))))){ + a24 = 0; + a19 = 4; + a25 = 0; + a0 = 1; + a29 = 6; + return -1; + } else if(((a28==1)&&(((a19==4)&&(((a22==1)&&(((((a20==1)&&(((a29==6)&&(input==1))&&(a14==8)))&&!(a7==1))&&(a0==1))&&!(a11==1)))&&(a24==1)))&&(a25==1)))){ + a0 = 0; + a11 = 1; + a19 = 3; + a25 = 0; + a20 = 0; + return 21; + } else if((!(a20==1)&&((((a28==1)&&(((((a7==1)&&(!(a24==1)&&(((a14==8)&&(input==1))&&(a19==1))))&&(a29==8))&&(a25==1))&&!(a0==1)))&&(a22==1))&&!(a11==1)))){ + a25 = 0; + a19 = 5; + a24 = 1; + a11 = 1; + return -1; + } else if(((a25==1)&&((!(a0==1)&&(((!(a20==1)&&(!(a11==1)&&((a14==9)&&((a7==1)&&((a19==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==5)))))))&&(a22==1))&&(a24==1)))&&(a28==1)))){ + a24 = 0; + a19 = 5; + a29 = 8; + a11 = 1; + return -1; + } else if(((((a19==2)&&((a28==1)&&((((((a22==1)&&((a11==1)&&(((a29==8)||(a29==9))&&(input==3))))&&(a20==1))&&(a7==1))&&(a25==1))&&(a0==1))))&&(a14==9))&&(a24==1))){ + a29 = 9; + a24 = 0; + a11 = 0; + a0 = 0; + a19 = 4; + a7 = 0; + return 24; + } else if(((a11==1)&&((a22==1)&&(((a25==1)&&((((!(a7==1)&&((a19==4)&&(!(a0==1)&&((input==5)&&((a29==8)||(a29==9))))))&&!(a20==1))&&(a24==1))&&(a28==1)))&&(a14==9))))){ + a0 = 1; + a7 = 1; + a19 = 3; + a25 = 0; + a11 = 0; + a20 = 1; + a29 = 7; + a24 = 0; + return 21; + } else if((!(a25==1)&&(!(a20==1)&&((((a22==1)&&(((a28==1)&&(((a19==4)&&(((input==2)&&((a29==6)||(a29==7)))&&!(a0==1)))&&!(a11==1)))&&(a14==8)))&&(a24==1))&&!(a7==1))))){ + a0 = 1; + a25 = 1; + a7 = 1; + a19 = 1; + a20 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if(((((((((a22==1)&&(!(a0==1)&&(!(a24==1)&&((input==3)&&(((a29==6)&&(a19==2))||(((a19==1)&&(a29==9))||((a19==2)&&(a29==5))))))))&&(a28==1))&&!(a20==1))&&(a25==1))&&!(a7==1))&&(a14==9))&&(a11==1))){ + a20 = 1; + a29 = 9; + a14 = 8; + a24 = 1; + a0 = 1; + a25 = 0; + a19 = 5; + a7 = 1; + return -1; + } else if(((((a14==10)&&(((a24==1)&&((((!(a25==1)&&(((a0==1)&&(input==3))&&(a22==1)))&&(a19==5))&&!(a20==1))&&(a29==6)))&&!(a7==1)))&&(a11==1))&&(a28==1))){ + a11 = 0; + a29 = 5; + a24 = 0; + a19 = 2; + a14 = 9; + a25 = 1; + a20 = 1; + return 21; + } else if((((!(a24==1)&&((a22==1)&&((((a28==1)&&(((((input==6)&&((a29==8)||(a29==9)))&&(a7==1))&&!(a11==1))&&(a14==8)))&&(a19==5))&&!(a20==1))))&&!(a0==1))&&(a25==1))){ + a11 = 1; + a19 = 1; + a29 = 8; + a24 = 1; + return 21; + } else if((((((!(a20==1)&&(((a29==6)&&((a19==2)&&(((a22==1)&&((a28==1)&&(input==4)))&&!(a25==1))))&&(a11==1)))&&(a14==8))&&(a0==1))&&!(a24==1))&&!(a7==1))){ + a24 = 1; + a25 = 1; + a0 = 0; + a29 = 8; + a19 = 1; + a7 = 1; + return 23; + } else if((((a20==1)&&((a28==1)&&((a0==1)&&(((((((((a29==8)||(a29==9))&&(input==3))&&(a22==1))&&!(a24==1))&&!(a7==1))&&(a14==8))&&!(a25==1))&&(a11==1)))))&&(a19==1))){ + a29 = 9; + a24 = 1; + a7 = 1; + a0 = 0; + a25 = 1; + return 23; + } else if(((((a14==8)&&(((a11==1)&&((input==1)&&(((((a29==9)&&(!(a25==1)&&((!(a7==1)&&!(a20==1))&&(a24==1))))&&(a19==5))||((((a25==1)&&(((a7==1)&&(a20==1))&&!(a24==1)))&&(a29==5))&&(a19==1)))||((a19==1)&&(((((a20==1)&&(a7==1))&&!(a24==1))&&(a25==1))&&(a29==6))))))&&(a28==1)))&&!(a0==1))&&(a22==1))){ + a24 = 0; + a7 = 1; + a19 = 4; + a29 = 7; + a20 = 0; + a25 = 1; + return 23; + } else if(((a14==8)&&((a7==1)&&((a28==1)&&((a24==1)&&(!(a20==1)&&(!(a11==1)&&(!(a25==1)&&((a22==1)&&(((input==3)&&(((a19==2)&&(a29==9))||((a29==5)&&(a19==3))))&&!(a0==1))))))))))){ + a29 = 9; + a19 = 3; + a7 = 0; + a11 = 1; + a25 = 1; + a20 = 1; + return 24; + } else if((((a14==9)&&(((a7==1)&&(((a11==1)&&((a20==1)&&((a22==1)&&((a0==1)&&(((((a29==9)&&(a19==4))||((a29==5)&&(a19==5)))||((a29==6)&&(a19==5)))&&(input==5))))))&&(a24==1)))&&!(a25==1)))&&(a28==1))){ + a19 = 4; + a24 = 0; + a29 = 8; + a14 = 8; + a0 = 0; + a20 = 0; + return 21; + } else if(((a14==8)&&((!(a25==1)&&(((a22==1)&&(((((a20==1)&&((((a29==5)&&(a19==2))||(((a19==1)&&(a29==8))||((a29==9)&&(a19==1))))&&(input==4)))&&!(a24==1))&&!(a0==1))&&(a28==1)))&&(a11==1)))&&(a7==1)))){ + a25 = 1; + a29 = 6; + a24 = 1; + a19 = 3; + a14 = 9; + return 21; + } else if((((((((((a24==1)&&((((input==5)&&((a29==7)||(a29==8)))&&!(a25==1))&&(a22==1)))&&(a28==1))&&(a0==1))&&(a14==8))&&!(a7==1))&&(a19==4))&&(a11==1))&&(a20==1))){ + a19 = 5; + a24 = 0; + a25 = 1; + a7 = 1; + a29 = 5; + return 24; + } else if(((a19==4)&&(((!(a7==1)&&(!(a11==1)&&((a14==8)&&((((a20==1)&&(!(a24==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==6))))&&(a25==1))&&(a22==1)))))&&(a0==1))&&(a28==1)))){ + a20 = 0; + a7 = 1; + a19 = 3; + a25 = 0; + a29 = 5; + a11 = 1; + a14 = 9; + return 21; + } else if((!(a7==1)&&(!(a24==1)&&((!(a11==1)&&(((((a0==1)&&((((input==1)&&!(a25==1))&&(a20==1))&&(a28==1)))&&(a29==7))&&(a19==5))&&(a14==9)))&&(a22==1))))){ + a29 = 9; + a19 = 2; + a25 = 1; + a14 = 8; + a0 = 0; + return 23; + } else if(((!(a11==1)&&((a20==1)&&((((a14==9)&&((a22==1)&&((a25==1)&&((((input==1)&&((a29==9)||((a29==7)||(a29==8))))&&(a0==1))&&!(a24==1)))))&&(a28==1))&&(a19==5))))&&!(a7==1))){ + a19 = 1; + a29 = 6; + a14 = 8; + a11 = 1; + a24 = 1; + a0 = 0; + a20 = 0; + return 23; + } else if(((a25==1)&&((a19==4)&&(((a14==8)&&(((a28==1)&&(((a24==1)&&(!(a0==1)&&(((input==5)&&(((a29==7)||(a29==8))||(a29==9)))&&!(a7==1))))&&!(a11==1)))&&(a22==1)))&&!(a20==1))))){ + a19 = 2; + a29 = 8; + a14 = 9; + a25 = 0; + a11 = 1; + a24 = 0; + return 21; + } else if((((a0==1)&&((a28==1)&&((a7==1)&&((((a25==1)&&((!(a11==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==2))&&(a20==1)))&&(a14==9)))&&(a24==1))&&(a19==5)))))&&(a22==1))){ + a11 = 1; + a14 = 8; + a29 = 5; + a19 = 1; + return -1; + } else if(((!(a25==1)&&((((((((a20==1)&&(((input==4)&&(((a29==6)||(a29==7))||(a29==8)))&&(a0==1)))&&(a28==1))&&(a19==4))&&!(a24==1))&&(a11==1))&&!(a7==1))&&(a14==8)))&&(a22==1))){ + a29 = 7; + a25 = 1; + a0 = 0; + return 24; + } else if(((a24==1)&&((((a0==1)&&((((!(a25==1)&&(((((a29==7)||((a29==5)||(a29==6)))&&(input==3))&&(a14==10))&&(a11==1)))&&(a22==1))&&!(a7==1))&&!(a20==1)))&&(a28==1))&&(a19==3)))){ + a29 = 5; + a19 = 4; + a20 = 1; + return -1; + } else if(((a0==1)&&((a7==1)&&(((a28==1)&&((a25==1)&&(!(a11==1)&&(((((a22==1)&&((input==2)&&((a29==5)||(a29==6))))&&!(a24==1))&&(a14==9))&&(a20==1)))))&&(a19==4))))){ + a14 = 8; + a29 = 5; + a19 = 3; + a25 = 0; + a0 = 0; + return -1; + } else if(((a19==5)&&((a11==1)&&(((a25==1)&&(((a24==1)&&((a20==1)&&((a14==9)&&(((a7==1)&&(((a29==5)||(a29==6))&&(input==6)))&&!(a0==1)))))&&(a28==1)))&&(a22==1))))){ + a14 = 8; + a19 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if((!(a20==1)&&((a0==1)&&((a19==3)&&(((!(a24==1)&&(((a14==9)&&(((((a29==7)||(a29==8))&&(input==5))&&(a22==1))&&(a7==1)))&&!(a11==1)))&&(a28==1))&&(a25==1)))))){ + a19 = 1; + a20 = 1; + a24 = 1; + a14 = 8; + a11 = 1; + a29 = 5; + return -1; + } else if(((((a7==1)&&((a28==1)&&((!(a25==1)&&((a0==1)&&(!(a11==1)&&((a24==1)&&((a19==1)&&((a22==1)&&(input==1)))))))&&!(a20==1))))&&(a29==8))&&(a14==9))){ + a29 = 5; + a11 = 1; + a20 = 1; + a14 = 8; + a25 = 1; + return -1; + } else if(((a0==1)&&((((a11==1)&&((((!(a20==1)&&(((!(a24==1)&&(input==4))&&(a29==6))&&(a28==1)))&&(a25==1))&&(a22==1))&&(a14==9)))&&(a19==1))&&(a7==1)))){ + a24 = 1; + a20 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((a28==1)&&(!(a25==1)&&(((((((a24==1)&&((a29==7)&&(!(a11==1)&&((a7==1)&&(input==2)))))&&!(a0==1))&&(a19==2))&&!(a20==1))&&(a22==1))&&(a14==9))))){ + a11 = 1; + a14 = 8; + a29 = 5; + a19 = 5; + a7 = 0; + return -1; + } else if((((a11==1)&&((!(a20==1)&&((a14==9)&&((a25==1)&&((((a22==1)&&(((input==2)&&((a29==8)||(a29==9)))&&!(a7==1)))&&(a28==1))&&(a19==5)))))&&!(a24==1)))&&(a0==1))){ + a20 = 1; + a29 = 9; + a14 = 8; + a24 = 1; + a0 = 0; + a7 = 1; + a19 = 3; + return 23; + } else if((((a11==1)&&((a19==1)&&(!(a0==1)&&((((a28==1)&&((((a20==1)&&((input==4)&&(((a29==6)||(a29==7))||(a29==8))))&&!(a7==1))&&!(a24==1)))&&!(a25==1))&&(a22==1)))))&&(a14==9))){ + a0 = 1; + a24 = 1; + a19 = 3; + a11 = 0; + a29 = 7; + return 24; + } else if(((((a24==1)&&((a22==1)&&((((a28==1)&&(((a25==1)&&(((a14==9)&&(input==4))&&!(a7==1)))&&(a19==2)))&&(a29==5))&&!(a20==1))))&&!(a11==1))&&(a0==1))){ + a11 = 1; + a7 = 1; + a14 = 8; + a20 = 1; + a19 = 1; + return -1; + } else if(((a14==9)&&((a20==1)&&(((a29==8)&&((a0==1)&&((a19==3)&&(!(a25==1)&&((a7==1)&&((((a28==1)&&(input==5))&&!(a24==1))&&(a22==1)))))))&&(a11==1))))){ + a11 = 0; + a19 = 2; + a20 = 0; + a29 = 5; + return 23; + } else if(((((((((!(a25==1)&&((a22==1)&&(!(a0==1)&&((input==3)&&(((a29==7)||(a29==8))||(a29==9))))))&&(a28==1))&&(a19==3))&&!(a20==1))&&(a11==1))&&(a14==8))&&!(a7==1))&&(a24==1))){ + a19 = 2; + a29 = 7; + a20 = 1; + return -1; + } else if(((a14==9)&&(((a28==1)&&((a0==1)&&(!(a11==1)&&((input==2)&&(((a19==1)&&((a29==5)&&((a25==1)&&(!(a24==1)&&((a20==1)&&(a7==1))))))||(((a19==5)&&((a29==8)&&(((a24==1)&&(!(a20==1)&&!(a7==1)))&&!(a25==1))))||(((a29==9)&&(((a24==1)&&(!(a7==1)&&!(a20==1)))&&!(a25==1)))&&(a19==5))))))))&&(a22==1)))){ + a19 = 2; + a24 = 0; + a25 = 1; + a0 = 0; + a14 = 8; + a29 = 8; + a7 = 0; + a20 = 0; + return 23; + } else if((!(a24==1)&&(((a28==1)&&((a0==1)&&((a29==5)&&(!(a7==1)&&((a11==1)&&(!(a25==1)&&((a22==1)&&(!(a20==1)&&((input==4)&&(a14==9))))))))))&&(a19==5)))){ + a20 = 1; + a19 = 1; + a7 = 1; + a25 = 1; + a14 = 8; + a24 = 1; + return -1; + } else if(((((!(a11==1)&&(((a22==1)&&((a25==1)&&((a14==8)&&((a7==1)&&(((input==4)&&(((a29==7)||(a29==8))||(a29==9)))&&(a19==2))))))&&(a20==1)))&&!(a24==1))&&!(a0==1))&&(a28==1))){ + a24 = 1; + a14 = 9; + a20 = 0; + a11 = 1; + a29 = 5; + a0 = 1; + a19 = 4; + return 21; + } else if(((a19==5)&&(!(a0==1)&&(!(a7==1)&&(((!(a20==1)&&(((((a11==1)&&((input==2)&&((a29==8)||(a29==9))))&&(a14==9))&&!(a24==1))&&(a22==1)))&&(a25==1))&&(a28==1)))))){ + a29 = 5; + a7 = 1; + a14 = 8; + a19 = 1; + a24 = 1; + a20 = 1; + a0 = 1; + return -1; + } else if(((a22==1)&&(((((!(a11==1)&&((a28==1)&&(((a24==1)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==6))&&(a19==2)))&&!(a20==1))))&&!(a7==1))&&!(a25==1))&&(a14==9))&&!(a0==1)))){ + a11 = 1; + a7 = 1; + a29 = 9; + a25 = 1; + a0 = 1; + return 24; + } else if(((a29==8)&&((((a14==9)&&(((a7==1)&&((a19==3)&&((((a28==1)&&((input==2)&&!(a25==1)))&&!(a24==1))&&(a0==1))))&&(a22==1)))&&(a11==1))&&(a20==1)))){ + a24 = 1; + a25 = 1; + a29 = 6; + a14 = 10; + a20 = 0; + return 21; + } else if(((a11==1)&&((a14==8)&&(((a25==1)&&(((!(a7==1)&&(((!(a24==1)&&((input==4)&&((a29==9)||((a29==7)||(a29==8)))))&&(a28==1))&&(a22==1)))&&(a0==1))&&(a19==2)))&&!(a20==1))))){ + a29 = 5; + a0 = 0; + a7 = 1; + a19 = 3; + a25 = 0; + a24 = 1; + return 21; + } else if((((!(a20==1)&&((a14==10)&&(((((a0==1)&&((input==6)&&((((a29==5)&&!(a25==1))&&(a19==1))||(((a19==5)&&((a25==1)&&(a29==8)))||((a19==5)&&((a25==1)&&(a29==9)))))))&&(a22==1))&&(a24==1))&&(a28==1))))&&!(a7==1))&&(a11==1))){ + a25 = 0; + a14 = 8; + a24 = 0; + a19 = 2; + a29 = 7; + a0 = 0; + a11 = 0; + return 21; + } else if(((a11==1)&&((a14==9)&&(!(a25==1)&&((a22==1)&&(((a0==1)&&((((a24==1)&&(((input==4)&&!(a7==1))&&(a28==1)))&&(a19==3))&&(a29==6)))&&!(a20==1))))))){ + a29 = 5; + a20 = 1; + a14 = 10; + a25 = 1; + a19 = 2; + return 23; + } else if((((a28==1)&&(!(a24==1)&&(((((a25==1)&&((a19==3)&&(((((a29==8)||(a29==9))&&(input==2))&&(a11==1))&&!(a0==1))))&&!(a20==1))&&(a14==8))&&(a7==1))))&&(a22==1))){ + a20 = 1; + a19 = 1; + a24 = 1; + a29 = 8; + a7 = 0; + return 23; + } else if((((a20==1)&&((a24==1)&&(!(a7==1)&&((((a19==1)&&((a25==1)&&((a14==9)&&(!(a0==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==6))))))&&(a22==1))&&(a28==1)))))&&!(a11==1))){ + a29 = 5; + a14 = 8; + a0 = 1; + a7 = 1; + a11 = 1; + return -1; + } else if(((!(a20==1)&&((((a14==9)&&((a24==1)&&(((((a28==1)&&(((a29==8)||(a29==9))&&(input==5)))&&!(a0==1))&&(a22==1))&&!(a11==1))))&&(a25==1))&&!(a7==1)))&&(a19==1))){ + a29 = 5; + a0 = 1; + a14 = 8; + a7 = 1; + a11 = 1; + a20 = 1; + return -1; + } else if(((((!(a7==1)&&((a11==1)&&((a25==1)&&((((!(a20==1)&&((input==2)&&(a14==9)))&&(a24==1))&&(a19==5))&&!(a0==1)))))&&(a22==1))&&(a28==1))&&(a29==7))){ + a11 = 0; + a29 = 9; + a14 = 8; + a25 = 0; + a19 = 1; + return 21; + } else if((((!(a7==1)&&((a19==1)&&((!(a24==1)&&((a14==8)&&(!(a20==1)&&((a0==1)&&((a28==1)&&(((a29==6)||(a29==7))&&(input==2)))))))&&!(a25==1))))&&(a22==1))&&!(a11==1))){ + a29 = 8; + a7 = 1; + a19 = 2; + return -1; + } else if(((a25==1)&&(((a19==2)&&(((((((a22==1)&&((((a29==7)||(a29==8))&&(input==6))&&(a24==1)))&&(a20==1))&&(a0==1))&&(a28==1))&&(a14==8))&&!(a11==1)))&&(a7==1)))){ + a19 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if(((!(a0==1)&&(!(a24==1)&&(((!(a20==1)&&((a19==1)&&(((a29==8)&&((a14==8)&&((a22==1)&&(input==5))))&&(a25==1))))&&(a7==1))&&!(a11==1))))&&(a28==1))){ + a25 = 0; + a19 = 2; + a29 = 7; + a24 = 1; + a14 = 9; + return 24; + } else if((!(a25==1)&&((a11==1)&&((((!(a24==1)&&(!(a0==1)&&((((a14==8)&&(((a29==6)||(a29==7))&&(input==6)))&&(a22==1))&&(a28==1))))&&!(a20==1))&&(a7==1))&&(a19==3))))){ + a24 = 1; + a25 = 1; + a29 = 6; + a19 = 1; + a20 = 1; + return -1; + } else if((!(a24==1)&&((((a7==1)&&((((a28==1)&&((a29==5)&&(((a25==1)&&(!(a20==1)&&(input==1)))&&(a14==9))))&&(a11==1))&&!(a0==1)))&&(a19==2))&&(a22==1)))){ + a0 = 1; + a14 = 8; + a20 = 1; + a24 = 1; + a19 = 1; + return -1; + } else if((!(a20==1)&&((a11==1)&&((a28==1)&&((a14==8)&&(((!(a25==1)&&(((a7==1)&&(((a22==1)&&(input==4))&&(a29==7)))&&(a19==5)))&&!(a0==1))&&!(a24==1))))))){ + a24 = 1; + a14 = 9; + a19 = 2; + a7 = 0; + a29 = 9; + a25 = 1; + return 21; + } else if((((a14==9)&&(((((a25==1)&&(!(a7==1)&&((a28==1)&&(!(a24==1)&&((input==3)&&(((a29==5)&&(a19==4))||(((a29==8)&&(a19==3))||((a19==3)&&(a29==9)))))))))&&(a22==1))&&!(a11==1))&&(a0==1)))&&!(a20==1))){ + a24 = 1; + a19 = 1; + a20 = 1; + a29 = 5; + a11 = 1; + a7 = 1; + a14 = 8; + return -1; + } else if(((a29==7)&&((!(a11==1)&&((a14==9)&&((!(a7==1)&&(((a25==1)&&((a19==4)&&((a24==1)&&((input==6)&&(a28==1)))))&&(a0==1)))&&(a22==1))))&&!(a20==1)))){ + a19 = 1; + a20 = 1; + a11 = 1; + a29 = 5; + a14 = 8; + a7 = 1; + return -1; + } else if((!(a0==1)&&((a11==1)&&(!(a7==1)&&((a28==1)&&((a22==1)&&((a24==1)&&((a20==1)&&(((input==2)&&(((a19==1)&&(!(a25==1)&&(a29==5)))||(((a19==5)&&((a25==1)&&(a29==8)))||(((a25==1)&&(a29==9))&&(a19==5)))))&&(a14==9)))))))))){ + a29 = 5; + a14 = 8; + a19 = 4; + a25 = 1; + return 24; + } else if(((a24==1)&&(((a19==4)&&(!(a11==1)&&(((a28==1)&&((a0==1)&&((a22==1)&&((a7==1)&&(!(a25==1)&&((input==1)&&((a29==7)||(a29==8))))))))&&(a14==8))))&&(a20==1)))){ + a0 = 0; + a25 = 1; + a11 = 1; + a29 = 6; + a19 = 2; + return 24; + } else if(((((a19==4)&&(((!(a24==1)&&((!(a20==1)&&((((input==1)&&((a29==8)||(a29==9)))&&(a11==1))&&(a28==1)))&&(a14==8)))&&(a22==1))&&!(a25==1)))&&(a7==1))&&!(a0==1))){ + a19 = 2; + a24 = 1; + a29 = 7; + a7 = 0; + return 23; + } else if(((((((((a25==1)&&(((a28==1)&&((a19==4)&&((input==2)&&(((a29==7)||(a29==8))||(a29==9)))))&&!(a7==1)))&&!(a24==1))&&(a22==1))&&(a14==8))&&!(a20==1))&&(a0==1))&&(a11==1))){ + a0 = 0; + a7 = 1; + a20 = 1; + a25 = 0; + a11 = 0; + a29 = 9; + a24 = 1; + a19 = 5; + return 24; + } else if(((a22==1)&&((a25==1)&&((a28==1)&&((a29==6)&&(((a19==2)&&((((a14==8)&&(((input==4)&&!(a24==1))&&(a20==1)))&&!(a11==1))&&!(a7==1)))&&(a0==1))))))){ + a7 = 1; + a20 = 0; + a11 = 1; + a29 = 8; + a19 = 4; + a14 = 9; + return 23; + } else if(((a14==9)&&(!(a7==1)&&(!(a24==1)&&(((a25==1)&&((!(a20==1)&&((a22==1)&&(((input==2)&&((((a29==8)&&(a19==3))||((a19==3)&&(a29==9)))||((a29==5)&&(a19==4))))&&(a28==1))))&&!(a11==1)))&&!(a0==1)))))){ + a29 = 8; + a20 = 1; + a11 = 1; + a0 = 1; + a25 = 0; + a19 = 3; + a7 = 1; + return 23; + } else if(((a14==8)&&(!(a25==1)&&((((!(a20==1)&&((!(a0==1)&&((a11==1)&&((a19==4)&&((input==3)&&((a29==6)||(a29==7))))))&&(a28==1)))&&!(a7==1))&&(a24==1))&&(a22==1))))){ + a7 = 1; + a29 = 5; + a25 = 1; + a19 = 2; + return -1; + } else if((((a14==8)&&(!(a24==1)&&((((a11==1)&&((((!(a7==1)&&((input==3)&&((a29==8)||(a29==9))))&&!(a0==1))&&(a19==1))&&(a22==1)))&&!(a20==1))&&!(a25==1))))&&(a28==1))){ + a7 = 1; + a29 = 9; + a24 = 1; + return -1; + } else if(((a29==6)&&((a22==1)&&((a24==1)&&((((a7==1)&&((a28==1)&&(((a0==1)&&((a20==1)&&((a11==1)&&(input==1))))&&(a14==10))))&&(a25==1))&&(a19==4)))))){ + a14 = 8; + a20 = 0; + a25 = 0; + a0 = 0; + a7 = 0; + a11 = 0; + a29 = 9; + a19 = 1; + return -1; + } else if((!(a11==1)&&((a29==9)&&((a28==1)&&((a22==1)&&(((a14==8)&&((a19==1)&&((a7==1)&&((a25==1)&&((a24==1)&&((input==3)&&!(a0==1)))))))&&!(a20==1))))))){ + a11 = 1; + a0 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if((!(a24==1)&&(((a7==1)&&((a29==9)&&(!(a0==1)&&(((a14==9)&&((a25==1)&&(((a19==4)&&((a20==1)&&(input==3)))&&(a11==1))))&&(a22==1)))))&&(a28==1)))){ + a25 = 0; + a19 = 1; + a14 = 8; + a29 = 5; + a11 = 0; + a20 = 0; + return -1; + } else if(((((!(a0==1)&&(((a14==8)&&((a22==1)&&(((a7==1)&&(((input==1)&&(((a29==6)||(a29==7))||(a29==8)))&&(a25==1)))&&!(a11==1))))&&!(a24==1)))&&(a28==1))&&(a19==1))&&(a20==1))){ + a19 = 3; + a29 = 7; + a25 = 0; + a11 = 1; + a24 = 1; + a7 = 0; + return 21; + } else if(((!(a7==1)&&((a19==1)&&(!(a20==1)&&(((!(a25==1)&&((((a14==8)&&((input==1)&&((a29==6)||(a29==7))))&&(a0==1))&&(a11==1)))&&(a28==1))&&!(a24==1)))))&&(a22==1))){ + a7 = 1; + a24 = 1; + a0 = 0; + a29 = 9; + a20 = 1; + a25 = 1; + return 24; + } else if(((!(a24==1)&&(((a28==1)&&((((a20==1)&&(((a0==1)&&(((input==4)&&((a29==9)||((a29==7)||(a29==8))))&&(a25==1)))&&!(a7==1)))&&!(a11==1))&&(a14==8)))&&(a19==2)))&&(a22==1))){ + a0 = 0; + a7 = 1; + a11 = 1; + a24 = 1; + a20 = 0; + a29 = 6; + a19 = 1; + a25 = 0; + return 24; + } else if((((((!(a0==1)&&((a11==1)&&(((a24==1)&&((a14==8)&&((((a29==6)||(a29==7))&&(input==1))&&(a19==4))))&&(a28==1))))&&!(a20==1))&&!(a7==1))&&(a22==1))&&!(a25==1))){ + a29 = 9; + a20 = 1; + a19 = 2; + return 24; + } else if(((((a14==9)&&((!(a7==1)&&(((a22==1)&&((a20==1)&&((!(a0==1)&&((input==6)&&((a29==8)||(a29==9))))&&(a11==1))))&&(a19==2)))&&!(a25==1)))&&(a28==1))&&(a24==1))){ + a29 = 9; + a25 = 1; + a14 = 8; + a19 = 3; + return -1; + } else if(((((!(a11==1)&&(((!(a7==1)&&(!(a24==1)&&((a22==1)&&((((a19==5)&&(a29==5))||(((a29==8)&&(a19==4))||((a29==9)&&(a19==4))))&&(input==3)))))&&!(a0==1))&&(a14==9)))&&(a28==1))&&!(a20==1))&&(a25==1))){ + a20 = 1; + a11 = 1; + a19 = 5; + a25 = 0; + a7 = 1; + a29 = 6; + a24 = 1; + return -1; + } else if(((a14==9)&&((a20==1)&&((((((a25==1)&&(((((input==3)&&(a22==1))&&!(a7==1))&&(a28==1))&&!(a24==1)))&&!(a11==1))&&(a29==9))&&!(a0==1))&&(a19==3))))){ + a24 = 1; + a19 = 4; + a11 = 1; + a29 = 7; + a14 = 8; + a20 = 0; + a25 = 0; + return 24; + } else if(((!(a11==1)&&(((!(a24==1)&&((!(a25==1)&&((((a22==1)&&(((a29==6)||(a29==7))&&(input==2)))&&(a19==3))&&(a0==1)))&&(a7==1)))&&(a14==9))&&(a20==1)))&&(a28==1))){ + a20 = 0; + a25 = 1; + a0 = 0; + a29 = 8; + a14 = 8; + a7 = 0; + a19 = 5; + return -1; + } else if((!(a7==1)&&((((a11==1)&&((((((a22==1)&&(((input==3)&&((a29==6)||(a29==7)))&&(a0==1)))&&!(a25==1))&&(a14==8))&&!(a20==1))&&(a19==2)))&&(a28==1))&&(a24==1)))){ + a24 = 0; + a11 = 0; + a25 = 1; + a7 = 1; + a20 = 1; + a19 = 4; + a29 = 5; + return 24; + } else if(((a22==1)&&(((a28==1)&&((a14==8)&&((a25==1)&&((!(a0==1)&&((!(a24==1)&&((a11==1)&&((input==6)&&((a29==5)||(a29==6)))))&&(a7==1)))&&(a20==1)))))&&(a19==5)))){ + a0 = 1; + a11 = 0; + a20 = 0; + a7 = 0; + a29 = 5; + a19 = 3; + return 23; + } else if(((!(a11==1)&&(((((a24==1)&&((a28==1)&&(!(a20==1)&&((((((a25==1)&&(a29==9))&&(a19==5))||((!(a25==1)&&(a29==5))&&(a19==1)))||((a19==1)&&((a29==6)&&!(a25==1))))&&(input==5)))))&&!(a0==1))&&(a22==1))&&(a14==8)))&&!(a7==1))){ + a11 = 1; + a29 = 5; + a25 = 0; + a14 = 9; + a24 = 0; + a19 = 5; + return 23; + } else if((((a7==1)&&((!(a24==1)&&((a22==1)&&(((((!(a20==1)&&((input==4)&&(((a29==7)||(a29==8))||(a29==9))))&&(a0==1))&&(a28==1))&&(a14==8))&&!(a11==1))))&&(a25==1)))&&(a19==2))){ + a29 = 5; + a14 = 9; + a20 = 1; + a19 = 1; + a25 = 0; + a24 = 1; + return 23; + } else if((((((a0==1)&&(!(a25==1)&&((a29==9)&&(!(a20==1)&&((a28==1)&&((a11==1)&&(!(a24==1)&&((input==1)&&(a14==9)))))))))&&(a22==1))&&!(a7==1))&&(a19==1))){ + a29 = 5; + a24 = 1; + a20 = 1; + a25 = 1; + a7 = 1; + a14 = 8; + return -1; + } else if((!(a11==1)&&((!(a7==1)&&((a24==1)&&(!(a25==1)&&((a19==1)&&(((a28==1)&&((a22==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==3))&&(a14==9))))&&!(a20==1))))))&&(a0==1)))){ + a29 = 7; + a19 = 2; + a11 = 1; + a20 = 1; + a0 = 0; + a14 = 8; + return 23; + } else if(((((a14==9)&&(!(a24==1)&&(((a28==1)&&(((((((a29==7)||(a29==8))&&(input==3))&&(a22==1))&&(a19==4))&&(a11==1))&&!(a0==1)))&&(a25==1))))&&(a7==1))&&!(a20==1))){ + a14 = 8; + a19 = 2; + a25 = 0; + a29 = 6; + a11 = 0; + a20 = 1; + a7 = 0; + return 23; + } else if(((a24==1)&&(((((a7==1)&&((((a28==1)&&(((a0==1)&&((a20==1)&&(input==3)))&&(a22==1)))&&(a11==1))&&(a25==1)))&&(a19==4))&&(a14==10))&&(a29==6)))){ + a20 = 0; + a0 = 0; + a14 = 8; + a19 = 2; + a29 = 7; + a11 = 0; + return -1; + } else if(((((((a25==1)&&((a7==1)&&(!(a20==1)&&((a11==1)&&((a22==1)&&(((((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))||((a19==2)&&(a29==6)))&&(input==2)))))))&&(a0==1))&&(a14==9))&&!(a24==1))&&(a28==1))){ + a25 = 0; + a24 = 1; + a29 = 5; + a0 = 0; + a19 = 5; + a14 = 8; + return 23; + } else if(((a22==1)&&((a14==9)&&((a11==1)&&((a24==1)&&(!(a7==1)&&((((a19==4)&&((((((a29==6)||(a29==7))||(a29==8))&&(input==4))&&(a0==1))&&(a28==1)))&&(a20==1))&&(a25==1)))))))){ + a7 = 1; + a14 = 8; + a29 = 5; + a19 = 1; + return -1; + } else if(((a22==1)&&(((((((a19==5)&&((a0==1)&&((((input==3)&&((a29==9)||((a29==7)||(a29==8))))&&(a7==1))&&!(a24==1))))&&(a11==1))&&(a14==10))&&(a28==1))&&(a20==1))&&(a25==1)))){ + a29 = 6; + a0 = 0; + a24 = 1; + a25 = 0; + a14 = 9; + a20 = 0; + return -1; + } else if(((a14==8)&&((a22==1)&&(((input==2)&&(((a19==5)&&((!(a25==1)&&((!(a7==1)&&(!(a20==1)&&(!(a11==1)&&(a0==1))))&&!(a24==1)))&&(a29==9)))||((a19==1)&&(((a25==1)&&(((a7==1)&&(((a11==1)&&!(a0==1))&&(a20==1)))&&(a24==1)))&&(a29==5)))))&&(a28==1))))){ + a24 = 1; + a29 = 8; + a7 = 0; + a19 = 5; + a11 = 1; + a25 = 1; + a20 = 0; + a0 = 0; + return 24; + } else if(((((a7==1)&&((((a20==1)&&((a19==2)&&(((a28==1)&&((a22==1)&&(((a29==5)||(a29==6))&&(input==1))))&&!(a11==1))))&&(a24==1))&&!(a0==1)))&&(a14==9))&&(a25==1))){ + a14 = 8; + a19 = 3; + a29 = 8; + a11 = 1; + return 23; + } else if((((((a7==1)&&(((((a14==9)&&((a28==1)&&(!(a24==1)&&((input==4)&&(((a29==6)||(a29==7))||(a29==8))))))&&(a25==1))&&(a19==4))&&(a20==1)))&&!(a0==1))&&(a11==1))&&(a22==1))){ + a7 = 0; + a24 = 1; + a29 = 9; + a14 = 8; + return 21; + } else if(((a28==1)&&(!(a24==1)&&(!(a0==1)&&((((a25==1)&&((a7==1)&&((a14==8)&&(((((a29==8)||(a29==9))&&(input==3))&&!(a11==1))&&(a22==1)))))&&!(a20==1))&&(a19==5)))))){ + a29 = 7; + a11 = 1; + a24 = 1; + return 21; + } else if((!(a7==1)&&(((a14==10)&&((a24==1)&&((a11==1)&&(((a29==9)&&((a22==1)&&((a0==1)&&(((input==1)&&!(a25==1))&&(a28==1)))))&&(a20==1)))))&&(a19==1)))){ + a7 = 1; + a19 = 4; + a0 = 0; + a11 = 0; + a14 = 9; + a25 = 1; + a29 = 6; + a24 = 0; + return -1; + } else if(((a7==1)&&((a19==2)&&((a14==9)&&((a11==1)&&((a28==1)&&((a24==1)&&((a20==1)&&((a29==8)&&(((a22==1)&&((a25==1)&&(input==4)))&&!(a0==1))))))))))){ + a0 = 1; + a19 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if((!(a24==1)&&((a19==1)&&(((((((a25==1)&&(!(a20==1)&&(((a0==1)&&(input==1))&&(a14==9))))&&(a28==1))&&(a29==6))&&(a11==1))&&(a7==1))&&(a22==1))))){ + a14 = 8; + a0 = 0; + a24 = 1; + a29 = 8; + a19 = 3; + a25 = 0; + return 23; + } else if(((((((a22==1)&&(!(a0==1)&&((a11==1)&&(((a14==9)&&((a28==1)&&((input==6)&&(a25==1))))&&!(a24==1)))))&&!(a7==1))&&(a19==4))&&(a29==6))&&!(a20==1))){ + a25 = 0; + a29 = 5; + a11 = 0; + a0 = 1; + a7 = 1; + a20 = 1; + a19 = 3; + return 23; + } else if((!(a0==1)&&((a14==8)&&(!(a11==1)&&((!(a20==1)&&(((((a7==1)&&((a19==2)&&(((a29==8)||(a29==9))&&(input==4))))&&(a22==1))&&(a28==1))&&!(a25==1)))&&!(a24==1)))))){ + a0 = 1; + a19 = 1; + a14 = 9; + a20 = 1; + a24 = 1; + a29 = 7; + a11 = 1; + a7 = 0; + return 24; + } else if(((a24==1)&&(!(a20==1)&&((a11==1)&&((a22==1)&&((a14==9)&&((a0==1)&&((a25==1)&&((((input==1)&&(((a29==5)&&(a19==3))||(((a29==8)&&(a19==2))||((a29==9)&&(a19==2)))))&&(a28==1))&&!(a7==1)))))))))){ + a14 = 8; + a19 = 2; + a29 = 5; + a0 = 0; + return 23; + } else if(((((a14==9)&&((a20==1)&&((a25==1)&&(((!(a24==1)&&((a22==1)&&((a0==1)&&((input==3)&&!(a7==1)))))&&(a28==1))&&(a29==9)))))&&(a19==3))&&(a11==1))){ + a14 = 8; + a29 = 7; + a20 = 0; + a19 = 1; + a25 = 0; + a7 = 1; + a0 = 0; + return -1; + } else if(((a25==1)&&((a28==1)&&(((((a22==1)&&((a0==1)&&(((a7==1)&&((a11==1)&&((a19==2)&&(input==4))))&&(a14==8))))&&(a29==6))&&!(a20==1))&&(a24==1))))){ + a24 = 0; + a7 = 0; + a20 = 1; + a19 = 5; + return 23; + } else if((((((!(a7==1)&&(!(a20==1)&&((a14==8)&&((a22==1)&&(((((a29==7)||(a29==8))&&(input==5))&&(a11==1))&&!(a24==1))))))&&(a19==2))&&!(a0==1))&&!(a25==1))&&(a28==1))){ + a29 = 9; + a0 = 1; + a19 = 3; + a11 = 0; + return 21; + } else if((((a28==1)&&(!(a20==1)&&(((a0==1)&&(!(a24==1)&&(((a14==8)&&(((input==5)&&(((a19==3)&&(a29==9))||((a29==5)&&(a19==4))))&&!(a11==1)))&&(a7==1))))&&!(a25==1))))&&(a22==1))){ + a29 = 9; + a19 = 3; + return -1; + } else if(((a7==1)&&((a25==1)&&((((a14==9)&&((a28==1)&&((a19==5)&&((a20==1)&&(((a0==1)&&(((a29==6)||(a29==7))&&(input==2)))&&(a24==1))))))&&(a11==1))&&(a22==1))))){ + a29 = 7; + a19 = 2; + a11 = 0; + a25 = 0; + a0 = 0; + a7 = 0; + a24 = 0; + return 24; + } else if(((((a28==1)&&((a24==1)&&((((a19==5)&&(((a29==8)&&((!(a20==1)&&(input==5))&&(a0==1)))&&(a14==10)))&&(a25==1))&&(a22==1))))&&(a7==1))&&(a11==1))){ + a19 = 2; + a11 = 0; + a14 = 9; + a29 = 6; + return -1; + } else if((((!(a11==1)&&((a7==1)&&((a24==1)&&((a20==1)&&(((a25==1)&&((a28==1)&&((((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))&&(input==6))))&&(a14==8))))))&&(a22==1))&&(a0==1))){ + a29 = 5; + a19 = 1; + a11 = 1; + return -1; + } else if((((a14==9)&&((!(a11==1)&&(((((a25==1)&&((((input==6)&&(a28==1))&&(a24==1))&&(a19==2)))&&!(a20==1))&&(a29==6))&&!(a7==1)))&&(a22==1)))&&!(a0==1))){ + a19 = 4; + a11 = 1; + a14 = 8; + a29 = 7; + a24 = 0; + return -1; + } else if(((a11==1)&&((a19==1)&&((((((((a25==1)&&(((input==6)&&((a29==5)||(a29==6)))&&(a22==1)))&&(a28==1))&&(a0==1))&&(a14==10))&&(a20==1))&&(a7==1))&&(a24==1))))){ + a29 = 5; + a11 = 0; + a14 = 9; + return 21; + } else if((((a28==1)&&(!(a24==1)&&((((((a14==8)&&((input==2)&&((((a29==5)&&!(a25==1))&&(a19==1))||((((a25==1)&&(a29==8))&&(a19==5))||((a19==5)&&((a29==9)&&(a25==1)))))))&&(a22==1))&&!(a0==1))&&!(a20==1))&&!(a7==1))))&&(a11==1))){ + a24 = 1; + a29 = 9; + a25 = 1; + a20 = 1; + a19 = 4; + return 21; + } return calculate_output3(input); + } + + int calculate_output3(int input) { + if(((a25==1)&&((((a19==3)&&((a20==1)&&(((a0==1)&&((a22==1)&&((a28==1)&&(!(a7==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==3))))))&&(a11==1))))&&!(a24==1))&&(a14==9)))){ + a25 = 0; + a7 = 1; + a20 = 0; + a29 = 9; + a14 = 10; + a24 = 1; + return 24; + } else if(((a19==2)&&(((!(a25==1)&&(((a22==1)&&((a11==1)&&((a28==1)&&((((a29==5)&&(input==6))&&(a20==1))&&!(a24==1)))))&&!(a0==1)))&&(a14==9))&&(a7==1)))){ + a25 = 1; + a19 = 1; + a0 = 1; + a29 = 9; + a20 = 0; + return -1; + } else if((((a22==1)&&(((((!(a20==1)&&((a14==9)&&((a7==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==4))&&(a0==1)))))&&!(a24==1))&&(a11==1))&&(a28==1))&&(a19==3)))&&(a25==1))){ + a29 = 5; + a19 = 1; + a14 = 8; + a24 = 1; + a20 = 1; + return -1; + } else if((((a19==4)&&((a20==1)&&((a11==1)&&((((a22==1)&&(((a29==6)&&((a25==1)&&((input==5)&&!(a7==1))))&&!(a24==1)))&&(a14==8))&&(a28==1)))))&&(a0==1))){ + a25 = 0; + a24 = 1; + a20 = 0; + a29 = 7; + a0 = 0; + return 23; + } else if(((((((((((a7==1)&&(!(a24==1)&&(((a29==7)||(a29==8))&&(input==6))))&&(a19==2))&&(a11==1))&&(a25==1))&&(a0==1))&&!(a20==1))&&(a28==1))&&(a22==1))&&(a14==8))){ + a29 = 5; + a24 = 1; + a19 = 1; + a20 = 1; + return -1; + } else if(((((!(a11==1)&&(((a24==1)&&((a19==2)&&((a14==9)&&(((((a29==6)||(a29==7))&&(input==5))&&!(a20==1))&&!(a25==1)))))&&(a22==1)))&&(a28==1))&&!(a7==1))&&(a0==1))){ + a19 = 1; + a29 = 5; + a14 = 8; + a7 = 1; + a11 = 1; + a20 = 1; + a25 = 1; + return -1; + } else if((!(a11==1)&&((((((a28==1)&&((((!(a0==1)&&(((a29==6)||(a29==7))&&(input==6)))&&(a22==1))&&(a14==8))&&!(a7==1)))&&(a25==1))&&(a19==2))&&(a20==1))&&(a24==1)))){ + a7 = 1; + a19 = 1; + a29 = 5; + a0 = 1; + a11 = 1; + return -1; + } else if((((a7==1)&&((a20==1)&&(!(a0==1)&&((a22==1)&&((a14==8)&&(((((input==3)&&((((a19==1)&&(a29==8))||((a19==1)&&(a29==9)))||((a19==2)&&(a29==5))))&&!(a24==1))&&(a11==1))&&(a28==1)))))))&&!(a25==1))){ + a24 = 1; + a25 = 1; + a7 = 0; + a29 = 9; + a19 = 3; + return 23; + } else if(((a24==1)&&((a28==1)&&((((a19==2)&&(!(a7==1)&&((a14==8)&&(((((((a29==6)||(a29==7))||(a29==8))&&(input==3))&&(a25==1))&&(a20==1))&&(a0==1)))))&&(a22==1))&&!(a11==1))))){ + a11 = 1; + a0 = 0; + a20 = 0; + a29 = 6; + return 21; + } else if((!(a7==1)&&((a22==1)&&(!(a11==1)&&(((a28==1)&&((((a24==1)&&(((input==4)&&(((a19==3)&&(a29==6))||(((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))))&&(a14==8)))&&(a25==1))&&(a20==1)))&&!(a0==1)))))){ + a19 = 3; + a25 = 0; + a20 = 0; + a11 = 1; + a29 = 9; + return 24; + } else if(((a24==1)&&(((a28==1)&&((a7==1)&&(((a11==1)&&((a22==1)&&(((a29==7)&&((a20==1)&&((input==3)&&(a14==8))))&&!(a25==1))))&&(a19==3))))&&!(a0==1)))){ + a11 = 0; + a0 = 1; + a20 = 0; + a29 = 6; + a24 = 0; + a19 = 4; + return -1; + } else if(((a25==1)&&((a0==1)&&(((a19==1)&&((a14==8)&&((a20==1)&&((a22==1)&&(((!(a24==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==2)))&&(a28==1))&&(a7==1))))))&&!(a11==1))))){ + a7 = 0; + a11 = 1; + a0 = 0; + a29 = 5; + a19 = 4; + a20 = 0; + a24 = 1; + return 24; + } else if((((a22==1)&&((!(a20==1)&&(((((!(a0==1)&&((a24==1)&&((input==3)&&((a29==7)||(a29==8)))))&&(a28==1))&&(a14==8))&&(a19==1))&&(a11==1)))&&!(a25==1)))&&!(a7==1))){ + a19 = 2; + a25 = 1; + a29 = 5; + return -1; + } else if(((a20==1)&&((a14==9)&&((a22==1)&&(!(a7==1)&&((a25==1)&&((a28==1)&&(((!(a0==1)&&((a24==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==3))))&&(a19==1))&&(a11==1))))))))){ + a29 = 8; + a24 = 0; + a14 = 8; + a19 = 2; + a7 = 1; + return -1; + } else if(((((!(a20==1)&&((a22==1)&&((((a11==1)&&((a28==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==5))&&(a19==4))))&&!(a25==1))&&(a0==1))))&&(a14==9))&&(a24==1))&&!(a7==1))){ + a29 = 6; + a14 = 8; + a24 = 0; + a11 = 0; + a19 = 2; + return 21; + } else if(((a19==2)&&(((((a25==1)&&((a14==9)&&(((a20==1)&&((a29==9)&&((!(a24==1)&&(input==1))&&(a28==1))))&&!(a11==1))))&&(a22==1))&&!(a0==1))&&(a7==1)))){ + a20 = 0; + a29 = 7; + a19 = 3; + a14 = 8; + return -1; + } else if((((a7==1)&&(!(a24==1)&&(((a29==5)&&(!(a25==1)&&((a28==1)&&((a14==8)&&((((input==6)&&(a11==1))&&!(a0==1))&&(a22==1))))))&&(a19==5))))&&!(a20==1))){ + a29 = 8; + a0 = 1; + a11 = 0; + return 24; + } else if(((a11==1)&&(((a28==1)&&(!(a7==1)&&((a14==10)&&(((a25==1)&&((((a0==1)&&((input==5)&&((a29==5)||(a29==6))))&&(a24==1))&&(a22==1)))&&(a19==2)))))&&!(a20==1)))){ + a11 = 0; + a24 = 0; + a29 = 7; + a14 = 8; + return 24; + } else if(((a24==1)&&((a19==2)&&((a22==1)&&((((a25==1)&&((((a14==9)&&(((input==1)&&((a29==7)||((a29==5)||(a29==6))))&&(a7==1)))&&(a0==1))&&(a28==1)))&&(a11==1))&&!(a20==1)))))){ + a14 = 8; + a0 = 0; + a7 = 0; + a29 = 7; + return 21; + } else if(((!(a24==1)&&((a22==1)&&((a19==5)&&((!(a11==1)&&(!(a0==1)&&((((a28==1)&&(((a29==5)||(a29==6))&&(input==6)))&&!(a25==1))&&(a20==1))))&&!(a7==1)))))&&(a14==9))){ + a20 = 0; + a25 = 1; + a19 = 2; + a0 = 1; + a29 = 5; + return -1; + } else if(((((a14==9)&&((!(a0==1)&&((((!(a25==1)&&(((input==4)&&((a29==7)||((a29==5)||(a29==6))))&&(a24==1)))&&!(a7==1))&&(a22==1))&&!(a20==1)))&&!(a11==1)))&&(a19==3))&&(a28==1))){ + a20 = 1; + a7 = 1; + a25 = 1; + a29 = 9; + a14 = 8; + return 24; + } else if(((((a29==5)&&((a7==1)&&((a11==1)&&(((a14==9)&&((((a22==1)&&((input==6)&&(a19==4)))&&(a28==1))&&(a20==1)))&&!(a0==1)))))&&!(a24==1))&&!(a25==1))){ + a19 = 2; + a11 = 0; + a7 = 0; + a0 = 1; + a14 = 8; + a24 = 1; + a29 = 6; + return 21; + } else if(((!(a7==1)&&(!(a0==1)&&((a20==1)&&(((a19==1)&&(((a22==1)&&((((input==5)&&(a24==1))&&(a14==8))&&(a11==1)))&&(a28==1)))&&!(a25==1)))))&&(a29==8))){ + a11 = 0; + a19 = 2; + a24 = 0; + a14 = 9; + a29 = 9; + a25 = 1; + a0 = 1; + return 21; + } else if(((!(a20==1)&&((a7==1)&&(((!(a24==1)&&((((a22==1)&&((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))&&(input==2)))&&(a28==1))&&(a0==1)))&&(a11==1))&&!(a25==1))))&&(a14==8))){ + a7 = 0; + a29 = 8; + a0 = 0; + a19 = 3; + return 23; + } else if((!(a24==1)&&(!(a0==1)&&(!(a20==1)&&((((a14==8)&&((((input==1)&&(((((a29==8)&&(a25==1))&&(a19==5))||((a19==5)&&((a25==1)&&(a29==9))))||((a19==1)&&((a29==5)&&!(a25==1)))))&&(a7==1))&&(a22==1)))&&(a28==1))&&(a11==1)))))){ + a25 = 0; + a29 = 5; + a20 = 1; + a19 = 3; + a14 = 9; + a11 = 0; + a0 = 1; + return 23; + } else if((((a29==5)&&(!(a7==1)&&(((a19==4)&&((a14==8)&&(!(a11==1)&&(!(a25==1)&&((!(a24==1)&&((input==3)&&(a28==1)))&&(a20==1))))))&&(a0==1))))&&(a22==1))){ + a11 = 1; + a25 = 1; + a19 = 2; + a24 = 1; + a0 = 0; + return 23; + } else if((((a22==1)&&((((((a14==8)&&(((a11==1)&&((input==1)&&(((a29==5)&&(a19==4))||(((a19==3)&&(a29==8))||((a19==3)&&(a29==9))))))&&(a0==1)))&&!(a7==1))&&(a25==1))&&(a28==1))&&(a24==1)))&&!(a20==1))){ + a29 = 9; + a19 = 5; + a7 = 1; + a11 = 0; + return 23; + } else if(((a29==5)&&((((a19==3)&&(!(a11==1)&&((a14==9)&&((((((input==2)&&(a22==1))&&(a25==1))&&(a20==1))&&(a7==1))&&!(a24==1)))))&&(a28==1))&&(a0==1)))){ + a29 = 6; + a7 = 0; + a11 = 1; + a19 = 2; + return 23; + } else if(((((((!(a24==1)&&(((((((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))&&(input==3))&&(a28==1))&&(a14==9))&&(a25==1)))&&(a11==1))&&(a22==1))&&!(a7==1))&&!(a0==1))&&(a20==1))){ + a7 = 1; + a14 = 8; + a24 = 1; + a29 = 7; + a19 = 3; + return 21; + } else if(((((((!(a0==1)&&((((a19==3)&&(((input==3)&&(((a29==6)||(a29==7))||(a29==8)))&&(a25==1)))&&(a11==1))&&(a14==8)))&&(a22==1))&&(a20==1))&&(a24==1))&&(a28==1))&&(a7==1))){ + a0 = 1; + a25 = 0; + a29 = 7; + a14 = 9; + a7 = 0; + a11 = 0; + a19 = 2; + a20 = 0; + return 23; + } else if((((((a20==1)&&((!(a7==1)&&((!(a25==1)&&(((a22==1)&&(((a29==6)||(a29==7))&&(input==6)))&&(a11==1)))&&(a19==3)))&&!(a24==1)))&&(a14==8))&&!(a0==1))&&(a28==1))){ + a24 = 1; + a14 = 9; + a29 = 7; + a19 = 5; + a25 = 1; + return 21; + } else if(((((a28==1)&&(!(a0==1)&&((a19==5)&&(((a7==1)&&(((!(a24==1)&&((a25==1)&&(input==3)))&&(a29==7))&&!(a11==1)))&&(a22==1)))))&&!(a20==1))&&(a14==8))){ + a29 = 8; + a0 = 1; + a7 = 0; + return 24; + } else if(((a22==1)&&((!(a24==1)&&((a14==8)&&((!(a25==1)&&((a29==7)&&(((((input==1)&&(a28==1))&&(a19==5))&&(a11==1))&&(a20==1))))&&(a0==1))))&&!(a7==1)))){ + a29 = 8; + a19 = 2; + a0 = 0; + return 24; + } else if((!(a7==1)&&(((a0==1)&&((a28==1)&&((a24==1)&&(((a14==10)&&(((a19==2)&&((((a29==7)||(a29==8))&&(input==5))&&(a11==1)))&&(a22==1)))&&!(a25==1)))))&&(a20==1)))){ + a25 = 1; + a7 = 1; + a29 = 5; + a14 = 8; + a19 = 1; + return -1; + } else if(((a20==1)&&(!(a7==1)&&((a0==1)&&(!(a11==1)&&((a19==3)&&(((((((input==1)&&((a29==6)||(a29==7)))&&(a22==1))&&(a28==1))&&(a25==1))&&!(a24==1))&&(a14==9)))))))){ + a14 = 8; + a25 = 0; + a0 = 0; + a19 = 4; + a29 = 7; + return 21; + } else if((((((a19==4)&&((!(a25==1)&&(((((((a29==5)||(a29==6))&&(input==2))&&(a24==1))&&!(a7==1))&&(a22==1))&&(a14==9)))&&(a28==1)))&&!(a20==1))&&(a0==1))&&!(a11==1))){ + a0 = 0; + a20 = 1; + a11 = 1; + a29 = 7; + a25 = 1; + a14 = 8; + a19 = 5; + return 21; + } else if((((!(a24==1)&&((a14==8)&&((a29==8)&&((((((a11==1)&&(!(a25==1)&&(input==2)))&&(a19==2))&&(a28==1))&&(a7==1))&&!(a20==1)))))&&(a0==1))&&(a22==1))){ + a7 = 0; + a29 = 6; + a0 = 0; + a19 = 1; + return 24; + } else if((!(a25==1)&&((a22==1)&&((a19==2)&&((((a14==9)&&((a28==1)&&(((a24==1)&&((a11==1)&&(((a29==7)||(a29==8))&&(input==3))))&&(a20==1))))&&(a0==1))&&!(a7==1)))))){ + a7 = 1; + a19 = 1; + a29 = 5; + a14 = 8; + a25 = 1; + return -1; + } else if((!(a25==1)&&((a20==1)&&((a28==1)&&((((a22==1)&&(!(a0==1)&&((a14==9)&&((a7==1)&&(!(a11==1)&&(((a29==7)||(a29==8))&&(input==4)))))))&&(a19==5))&&!(a24==1)))))){ + a19 = 1; + a14 = 8; + a24 = 1; + a11 = 1; + a25 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if((((a14==8)&&(((a22==1)&&((a28==1)&&((((a7==1)&&(!(a20==1)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==4))&&(a24==1))))&&(a11==1))&&!(a0==1))))&&!(a25==1)))&&(a19==2))){ + a29 = 9; + a11 = 0; + a0 = 1; + a24 = 0; + return 21; + } else if(((a22==1)&&(((!(a24==1)&&((a19==1)&&((a28==1)&&((((a14==8)&&(!(a11==1)&&((input==2)&&(a25==1))))&&!(a0==1))&&!(a7==1)))))&&(a20==1))&&(a29==8)))){ + a24 = 1; + a29 = 5; + a11 = 1; + a7 = 1; + a0 = 1; + return -1; + } else if(((a24==1)&&((a28==1)&&(((a14==9)&&((a22==1)&&(((!(a7==1)&&(((((a29==8)||((a29==6)||(a29==7)))&&(input==1))&&(a25==1))&&!(a20==1)))&&(a19==3))&&!(a0==1))))&&!(a11==1))))){ + a19 = 1; + a7 = 1; + a29 = 5; + a14 = 8; + a0 = 1; + a20 = 1; + a11 = 1; + return -1; + } else if(((((a28==1)&&((((a24==1)&&(!(a11==1)&&(!(a7==1)&&((a25==1)&&(((input==4)&&((a29==9)||((a29==7)||(a29==8))))&&!(a0==1))))))&&(a14==8))&&!(a20==1)))&&(a22==1))&&(a19==4))){ + a0 = 1; + a14 = 9; + a29 = 6; + a25 = 0; + a19 = 2; + return 21; + } else if(((a19==5)&&(((((a25==1)&&((((((a7==1)&&(((a29==7)||(a29==8))&&(input==3)))&&(a14==9))&&(a22==1))&&(a24==1))&&!(a0==1)))&&(a20==1))&&(a11==1))&&(a28==1)))){ + a14 = 8; + a29 = 5; + a0 = 1; + a19 = 1; + return -1; + } else if((!(a0==1)&&((((((((!(a20==1)&&((((a29==7)||(a29==8))&&(input==1))&&!(a11==1)))&&(a19==1))&&!(a7==1))&&(a14==8))&&(a25==1))&&(a22==1))&&(a24==1))&&(a28==1)))){ + a19 = 5; + a25 = 0; + a29 = 6; + a11 = 1; + a20 = 1; + a7 = 1; + return 21; + } else if((!(a20==1)&&(((a22==1)&&(((!(a0==1)&&(((a14==8)&&(!(a11==1)&&(((input==6)&&(a28==1))&&(a7==1))))&&(a24==1)))&&!(a25==1))&&(a19==1)))&&(a29==9)))){ + a20 = 1; + a19 = 2; + a7 = 0; + a11 = 1; + a25 = 1; + a29 = 6; + return 21; + } else if((((a25==1)&&((((((a11==1)&&(!(a20==1)&&(((((a29==8)||(a29==9))&&(input==3))&&(a28==1))&&(a22==1))))&&(a0==1))&&(a24==1))&&(a19==2))&&(a7==1)))&&(a14==9))){ + a14 = 8; + a0 = 0; + a20 = 1; + a29 = 6; + a7 = 0; + return 24; + } else if(((a24==1)&&(!(a11==1)&&((((a14==9)&&(!(a7==1)&&((((a25==1)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==6))&&(a19==1)))&&(a0==1))&&(a28==1))))&&(a22==1))&&!(a20==1))))){ + a20 = 1; + a11 = 1; + a7 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if((((((((a19==2)&&((a28==1)&&((a7==1)&&(!(a25==1)&&(((input==3)&&((a29==8)||((a29==6)||(a29==7))))&&(a20==1))))))&&(a0==1))&&(a14==9))&&(a22==1))&&!(a24==1))&&(a11==1))){ + a11 = 0; + a14 = 8; + a29 = 7; + a19 = 1; + a20 = 0; + a7 = 0; + return -1; + } else if(((a25==1)&&(!(a24==1)&&((a19==3)&&(((a22==1)&&((!(a11==1)&&(((a14==8)&&((a29==9)&&((input==2)&&(a28==1))))&&!(a7==1)))&&(a20==1)))&&!(a0==1)))))){ + a11 = 1; + a19 = 1; + a7 = 1; + a29 = 5; + a0 = 1; + a24 = 1; + return -1; + } else if(((a22==1)&&((a24==1)&&((a7==1)&&((((!(a11==1)&&((a14==8)&&((a19==4)&&((((a29==7)||(a29==8))&&(input==6))&&(a20==1)))))&&(a25==1))&&(a28==1))&&(a0==1)))))){ + a11 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((((!(a7==1)&&(((a22==1)&&(((((a24==1)&&((input==6)&&((a29==7)||(a29==8))))&&!(a25==1))&&!(a11==1))&&(a20==1)))&&(a0==1)))&&(a14==8))&&(a28==1))&&(a19==3))){ + a11 = 1; + a7 = 1; + a29 = 9; + a0 = 0; + a19 = 5; + return 21; + } else if(((a11==1)&&(((!(a0==1)&&(!(a20==1)&&(((((((input==4)&&(a29==9))&&(a22==1))&&(a14==8))&&(a24==1))&&!(a25==1))&&(a19==1))))&&!(a7==1))&&(a28==1)))){ + a29 = 5; + a25 = 1; + a20 = 1; + a19 = 4; + return 24; + } else if(((((a14==9)&&(((((((a20==1)&&((input==5)&&(((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))))&&(a22==1))&&(a11==1))&&!(a24==1))&&(a25==1))&&(a28==1)))&&(a0==1))&&(a7==1))){ + a19 = 1; + a29 = 9; + a7 = 0; + a14 = 10; + a24 = 1; + a25 = 0; + return 21; + } else if(((a22==1)&&((a25==1)&&(((a11==1)&&(((((a28==1)&&((a29==6)&&((a20==1)&&((a19==4)&&(input==6)))))&&(a24==1))&&!(a7==1))&&(a0==1)))&&(a14==8))))){ + a19 = 3; + a25 = 0; + return 24; + } else if(((a0==1)&&(((a22==1)&&((((a19==3)&&((a24==1)&&((a7==1)&&(((a14==8)&&(((a29==7)||(a29==8))&&(input==6)))&&(a20==1)))))&&(a28==1))&&(a25==1)))&&!(a11==1)))){ + a0 = 0; + a11 = 1; + a29 = 6; + return 23; + } else if(((a28==1)&&(((a29==6)&&((!(a0==1)&&(((((((a22==1)&&(input==5))&&!(a20==1))&&(a24==1))&&(a14==8))&&(a25==1))&&!(a7==1)))&&(a19==5)))&&(a11==1)))){ + a20 = 1; + a29 = 9; + a7 = 1; + a25 = 0; + return -1; + } else if(((((((a14==9)&&(!(a7==1)&&((a28==1)&&((a24==1)&&((a19==2)&&((a25==1)&&((input==5)&&((a29==7)||((a29==5)||(a29==6))))))))))&&(a11==1))&&!(a20==1))&&!(a0==1))&&(a22==1))){ + a25 = 0; + a7 = 1; + a29 = 6; + a20 = 1; + a14 = 8; + a19 = 4; + return -1; + } else if((((!(a11==1)&&((((a0==1)&&((a24==1)&&(((((input==4)&&(a14==8))&&(a28==1))&&(a25==1))&&(a22==1))))&&(a19==2))&&!(a7==1)))&&(a20==1))&&(a29==5))){ + a11 = 1; + a19 = 3; + a0 = 0; + return 23; + } else if((!(a11==1)&&((((((a29==6)&&((a28==1)&&((!(a0==1)&&(((a19==4)&&(input==1))&&(a7==1)))&&!(a24==1))))&&(a22==1))&&(a14==9))&&!(a20==1))&&(a25==1)))){ + a14 = 8; + a20 = 1; + a0 = 1; + a24 = 1; + a29 = 5; + a11 = 1; + a19 = 1; + return -1; + } else if((((a25==1)&&((a20==1)&&((a11==1)&&((a14==8)&&((((a0==1)&&((!(a24==1)&&((input==2)&&((a29==6)||(a29==7))))&&(a28==1)))&&(a22==1))&&(a19==4))))))&&(a7==1))){ + a24 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a19==1)&&((a22==1)&&((a14==9)&&(((!(a7==1)&&((((((input==1)&&(((a29==5)||(a29==6))||(a29==7)))&&(a28==1))&&!(a20==1))&&!(a25==1))&&!(a24==1)))&&!(a11==1))&&(a0==1)))))){ + a24 = 1; + a7 = 1; + a14 = 8; + a11 = 1; + a20 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if(((!(a11==1)&&(((a14==8)&&(!(a24==1)&&(!(a7==1)&&((a22==1)&&((a19==4)&&((a0==1)&&(((input==4)&&((a29==7)||((a29==5)||(a29==6))))&&(a28==1))))))))&&!(a20==1)))&&!(a25==1))){ + a24 = 1; + a11 = 1; + a29 = 8; + a19 = 5; + a20 = 1; + a0 = 0; + return 21; + } else if((((a22==1)&&((((a7==1)&&((!(a20==1)&&(!(a25==1)&&(!(a11==1)&&((((a19==2)&&(a29==6))||(((a29==9)&&(a19==1))||((a19==2)&&(a29==5))))&&(input==3)))))&&(a14==9)))&&!(a0==1))&&(a28==1)))&&!(a24==1))){ + a19 = 3; + a11 = 1; + a14 = 8; + a20 = 1; + a29 = 6; + return 23; + } else if((!(a25==1)&&(((((a11==1)&&((a28==1)&&(((((a22==1)&&((input==6)&&((a29==9)||((a29==7)||(a29==8)))))&&(a19==5))&&(a7==1))&&(a14==9))))&&(a24==1))&&(a20==1))&&!(a0==1)))){ + a7 = 0; + a25 = 1; + a19 = 2; + a14 = 8; + a20 = 0; + a29 = 6; + return 21; + } else if(((a11==1)&&(((a24==1)&&((a22==1)&&((a14==8)&&((((((input==3)&&((((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))||((a19==5)&&(a29==5))))&&(a0==1))&&!(a20==1))&&(a28==1))&&(a25==1)))))&&!(a7==1)))){ + a19 = 5; + a7 = 1; + a29 = 5; + a11 = 0; + a25 = 0; + return 23; + } else if((((a28==1)&&((a14==8)&&((a25==1)&&((a7==1)&&((a29==6)&&(!(a11==1)&&((a20==1)&&((((input==2)&&(a0==1))&&(a24==1))&&(a22==1)))))))))&&(a19==5))){ + a0 = 0; + a19 = 3; + a7 = 0; + a29 = 5; + a20 = 0; + return 23; + } else if((((a22==1)&&((!(a0==1)&&(!(a7==1)&&(((a11==1)&&(((((!(a25==1)&&(a29==5))&&(a19==1))||(((a19==5)&&((a25==1)&&(a29==8)))||(((a25==1)&&(a29==9))&&(a19==5))))&&(input==1))&&!(a20==1)))&&!(a24==1))))&&(a28==1)))&&(a14==8))){ + a0 = 1; + a25 = 0; + a29 = 9; + a7 = 1; + a19 = 3; + a11 = 0; + return 24; + } else if(((!(a25==1)&&(!(a0==1)&&((((a7==1)&&(((!(a24==1)&&((a22==1)&&((input==5)&&((a29==8)||(a29==9)))))&&(a14==8))&&(a19==5)))&&(a28==1))&&(a11==1))))&&!(a20==1))){ + a0 = 1; + a29 = 7; + a7 = 0; + a11 = 0; + return 23; + } else if(((a0==1)&&(((((a11==1)&&(((a24==1)&&((a25==1)&&(((a19==1)&&((a20==1)&&(input==1)))&&(a7==1))))&&(a29==8)))&&(a22==1))&&(a14==9))&&(a28==1)))){ + a19 = 5; + a0 = 0; + a29 = 9; + a7 = 0; + a20 = 0; + a14 = 8; + return -1; + } else if((((((a22==1)&&((a28==1)&&(((a11==1)&&((!(a7==1)&&(!(a20==1)&&((input==1)&&((a29==7)||(a29==8)))))&&(a14==8)))&&!(a25==1))))&&(a19==5))&&!(a0==1))&&(a24==1))){ + a19 = 1; + a25 = 1; + a0 = 1; + a7 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if(((((!(a7==1)&&((a0==1)&&((!(a25==1)&&((a19==3)&&((!(a24==1)&&(((a29==8)||(a29==9))&&(input==4)))&&(a28==1))))&&!(a20==1))))&&!(a11==1))&&(a14==8))&&(a22==1))){ + a24 = 1; + a19 = 4; + a25 = 1; + a14 = 9; + a29 = 7; + return 23; + } else if(((!(a24==1)&&((a22==1)&&((a29==5)&&((a19==4)&&((a7==1)&&((((a25==1)&&(((input==3)&&(a14==9))&&(a0==1)))&&(a11==1))&&!(a20==1)))))))&&(a28==1))){ + a25 = 0; + a20 = 1; + a24 = 1; + a29 = 7; + a19 = 1; + a0 = 0; + a14 = 8; + return 23; + } else if(((((((a25==1)&&((a20==1)&&((a14==9)&&(((a11==1)&&((a22==1)&&((input==5)&&((a29==5)||(a29==6)))))&&(a7==1)))))&&(a24==1))&&(a19==1))&&(a28==1))&&!(a0==1))){ + a25 = 0; + a0 = 1; + a11 = 0; + a20 = 0; + a24 = 0; + a19 = 5; + a29 = 9; + return -1; + } else if(((a20==1)&&((a0==1)&&(((a28==1)&&(((!(a11==1)&&(((a22==1)&&((a14==8)&&((input==6)&&((a29==8)||(a29==9)))))&&!(a7==1)))&&!(a25==1))&&(a19==3)))&&!(a24==1))))){ + a20 = 0; + a25 = 1; + a19 = 1; + a29 = 7; + return 24; + } else if((((a19==2)&&((a28==1)&&((((a22==1)&&(((a7==1)&&(!(a0==1)&&((a14==8)&&((input==1)&&(a20==1)))))&&(a25==1)))&&(a24==1))&&(a11==1))))&&(a29==7))){ + a25 = 0; + a11 = 0; + a0 = 1; + a19 = 1; + a7 = 0; + a14 = 9; + a20 = 0; + return 21; + } else if((!(a11==1)&&((a25==1)&&((a28==1)&&((a7==1)&&(((((a14==9)&&((((((a29==5)||(a29==6))||(a29==7))&&(input==3))&&!(a24==1))&&(a20==1)))&&(a19==2))&&(a0==1))&&(a22==1))))))){ + a19 = 1; + a14 = 8; + a24 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if(((a28==1)&&((a14==9)&&(!(a24==1)&&((!(a11==1)&&((a19==4)&&(((a20==1)&&(((((a29==6)||(a29==7))&&(input==5))&&(a7==1))&&(a22==1)))&&(a25==1))))&&!(a0==1)))))){ + a7 = 0; + a19 = 3; + a20 = 0; + a29 = 6; + a14 = 8; + a0 = 1; + return 24; + } else if(((((!(a7==1)&&((a19==2)&&(!(a11==1)&&((!(a25==1)&&(((a22==1)&&((input==2)&&((a29==8)||(a29==9))))&&!(a20==1)))&&(a14==8)))))&&!(a24==1))&&(a28==1))&&!(a0==1))){ + a14 = 9; + a25 = 1; + a24 = 1; + a7 = 1; + a29 = 9; + a0 = 1; + a19 = 1; + return 23; + } else if(((!(a11==1)&&((a22==1)&&(((a14==8)&&(!(a24==1)&&((((a19==1)&&((a29==5)&&((a25==1)&&((a7==1)&&!(a20==1)))))||(((((!(a7==1)&&(a20==1))&&!(a25==1))&&(a29==8))&&(a19==5))||((a19==5)&&((a29==9)&&(!(a25==1)&&(!(a7==1)&&(a20==1)))))))&&(input==3))))&&(a28==1))))&&!(a0==1))){ + a29 = 6; + a20 = 0; + a19 = 5; + a25 = 1; + a24 = 1; + a7 = 1; + return -1; + } else if((((a14==9)&&(!(a25==1)&&((((!(a11==1)&&((a22==1)&&((a28==1)&&((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))&&(input==2)))))&&(a0==1))&&(a7==1))&&(a24==1))))&&!(a20==1))){ + a29 = 5; + a19 = 1; + a20 = 1; + a25 = 1; + a14 = 8; + a11 = 1; + return -1; + } else if(((a11==1)&&((a20==1)&&(((((a29==5)&&(!(a25==1)&&((a19==4)&&((a14==10)&&((a28==1)&&((a24==1)&&(input==4)))))))&&(a7==1))&&(a22==1))&&(a0==1))))){ + a19 = 1; + a14 = 9; + a20 = 0; + a24 = 0; + return -1; + } else if(((a22==1)&&(!(a25==1)&&(((((!(a7==1)&&((a28==1)&&((a19==1)&&((((a29==6)||(a29==7))&&(input==6))&&!(a0==1)))))&&!(a11==1))&&(a14==9))&&!(a24==1))&&(a20==1))))){ + a29 = 7; + a19 = 4; + a24 = 1; + a0 = 1; + return -1; + } else if((((((((a28==1)&&((a14==9)&&(((((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))||((a29==6)&&(a19==3)))&&(input==6))&&(a20==1))&&(a24==1))))&&(a22==1))&&!(a11==1))&&(a0==1))&&!(a7==1))&&!(a25==1))){ + a14 = 8; + a24 = 0; + a0 = 0; + a29 = 9; + a7 = 1; + a11 = 1; + a19 = 2; + return 23; + } else if((((a14==8)&&(!(a25==1)&&((a7==1)&&((!(a24==1)&&(((a28==1)&&(((input==2)&&((((a29==8)&&(a19==3))||((a19==3)&&(a29==9)))||((a19==4)&&(a29==5))))&&!(a0==1)))&&!(a20==1)))&&(a22==1)))))&&(a11==1))){ + a29 = 6; + a19 = 5; + a25 = 1; + a24 = 1; + return 24; + } else if(((((a22==1)&&((a11==1)&&(((!(a24==1)&&(!(a0==1)&&(!(a7==1)&&((input==1)&&(((a19==4)&&(a29==5))||(((a29==8)&&(a19==3))||((a19==3)&&(a29==9))))))))&&(a20==1))&&(a14==8))))&&!(a25==1))&&(a28==1))){ + a25 = 1; + a14 = 9; + a29 = 8; + a19 = 5; + a24 = 1; + return 23; + } else if(((!(a0==1)&&((a28==1)&&(!(a20==1)&&((a19==3)&&((a11==1)&&((a14==8)&&((a7==1)&&((a29==5)&&((a25==1)&&((input==4)&&!(a24==1)))))))))))&&(a22==1))){ + a29 = 8; + a25 = 0; + a19 = 1; + a20 = 1; + a7 = 0; + a14 = 9; + a0 = 1; + return 21; + } else if(((a20==1)&&((a28==1)&&(!(a0==1)&&(((((a7==1)&&((a14==9)&&((((input==4)&&((a29==5)||(a29==6)))&&!(a11==1))&&(a25==1))))&&(a24==1))&&(a22==1))&&(a19==2)))))){ + a29 = 5; + a11 = 1; + a0 = 1; + a14 = 8; + a19 = 1; + return -1; + } else if((!(a24==1)&&((((a28==1)&&(((((a7==1)&&((((((a29==8)&&(a19==2))||((a19==2)&&(a29==9)))||((a19==3)&&(a29==5)))&&(input==6))&&(a11==1)))&&!(a25==1))&&!(a20==1))&&(a22==1)))&&!(a0==1))&&(a14==8)))){ + a25 = 1; + a29 = 9; + a19 = 3; + return -1; + } else if((!(a25==1)&&((a29==7)&&(((((a11==1)&&(((!(a20==1)&&((!(a7==1)&&(input==2))&&(a22==1)))&&!(a24==1))&&(a28==1)))&&!(a0==1))&&(a14==9))&&(a19==3))))){ + a29 = 5; + a24 = 1; + a14 = 8; + return -1; + } else if(((a19==4)&&(((((a7==1)&&((((((a20==1)&&((input==5)&&((a29==8)||(a29==9))))&&!(a11==1))&&!(a0==1))&&(a14==8))&&(a24==1)))&&(a25==1))&&(a28==1))&&(a22==1)))){ + a0 = 1; + a11 = 1; + a19 = 5; + a29 = 9; + a7 = 0; + return 21; + } else if(((a0==1)&&(((a19==2)&&((a20==1)&&(((!(a7==1)&&((a29==6)&&((a22==1)&&((a28==1)&&((a25==1)&&(input==5))))))&&(a14==8))&&!(a24==1))))&&!(a11==1)))){ + a19 = 4; + a14 = 9; + a11 = 1; + a7 = 1; + a20 = 0; + a29 = 7; + return 21; + } else if(((a14==9)&&(((a22==1)&&(((((a28==1)&&(!(a7==1)&&((((input==1)&&((a29==6)||(a29==7)))&&!(a20==1))&&!(a11==1))))&&(a25==1))&&(a19==5))&&(a24==1)))&&(a0==1)))){ + a7 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + a14 = 8; + a11 = 1; + return -1; + } else if((((((((a24==1)&&((((((input==5)&&(((a29==7)||(a29==8))||(a29==9)))&&(a7==1))&&(a19==1))&&!(a0==1))&&(a11==1)))&&(a22==1))&&!(a25==1))&&(a28==1))&&(a14==9))&&!(a20==1))){ + a29 = 9; + a19 = 3; + a11 = 0; + a25 = 1; + a0 = 1; + return 24; + } else if((!(a25==1)&&(((((((a11==1)&&((((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))&&(input==2))&&(a14==9))&&!(a7==1)))&&(a28==1))&&(a22==1))&&(a24==1))&&(a0==1))&&(a20==1)))){ + a19 = 3; + a29 = 8; + a25 = 1; + return -1; + } else if(((a7==1)&&((!(a11==1)&&(((a28==1)&&((((a22==1)&&((!(a25==1)&&(((a29==8)||(a29==9))&&(input==1)))&&(a14==8)))&&(a20==1))&&!(a0==1)))&&(a19==2)))&&(a24==1)))){ + a29 = 8; + a24 = 0; + a11 = 1; + a14 = 9; + return 21; + } else if((((((a14==10)&&(((a19==3)&&((a24==1)&&((!(a7==1)&&((a25==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==3))))&&(a11==1))))&&(a22==1)))&&!(a20==1))&&(a0==1))&&(a28==1))){ + a25 = 0; + a19 = 4; + a29 = 9; + a14 = 9; + return 23; + } else if((!(a11==1)&&(((a20==1)&&((a14==9)&&(((a25==1)&&((a28==1)&&((((a22==1)&&(((a29==6)||(a29==7))&&(input==6)))&&!(a7==1))&&(a19==4))))&&!(a0==1))))&&!(a24==1)))){ + a29 = 6; + a14 = 8; + a20 = 0; + a24 = 1; + a11 = 1; + return 21; + } else if((((a28==1)&&(!(a7==1)&&(((((a19==2)&&((a14==9)&&((a0==1)&&(!(a24==1)&&((a20==1)&&(input==5))))))&&!(a11==1))&&!(a25==1))&&(a29==7))))&&(a22==1))){ + a25 = 1; + a14 = 8; + a20 = 0; + return 24; + } else if((((a28==1)&&((a25==1)&&((a7==1)&&((((!(a24==1)&&((a14==8)&&((!(a0==1)&&(input==1))&&(a22==1))))&&!(a20==1))&&(a29==5))&&(a11==1)))))&&(a19==3))){ + a29 = 8; + a24 = 1; + a14 = 9; + return 24; + } else if(((a7==1)&&((!(a25==1)&&((!(a24==1)&&((!(a20==1)&&(!(a11==1)&&((((((a29==6)||(a29==7))||(a29==8))&&(input==5))&&(a28==1))&&!(a0==1))))&&(a19==4)))&&(a22==1)))&&(a14==9)))){ + a24 = 1; + a25 = 1; + a20 = 1; + a29 = 5; + a11 = 1; + a19 = 1; + a14 = 8; + a0 = 1; + return -1; + } else if(((a19==2)&&(!(a24==1)&&((((a14==8)&&((a28==1)&&(!(a25==1)&&(!(a0==1)&&(((a22==1)&&((input==6)&&((a29==7)||((a29==5)||(a29==6)))))&&(a11==1))))))&&!(a7==1))&&(a20==1))))){ + a29 = 6; + a25 = 1; + a24 = 1; + a14 = 9; + a19 = 4; + return 24; + } else if(((((((a14==9)&&((a0==1)&&(!(a7==1)&&((a24==1)&&(((input==2)&&(((a19==3)&&(a29==9))||((a29==5)&&(a19==4))))&&!(a11==1))))))&&!(a25==1))&&(a22==1))&&(a28==1))&&(a20==1))){ + a11 = 1; + a25 = 1; + a19 = 5; + a29 = 7; + a0 = 0; + a14 = 8; + return 21; + } else if(((a14==9)&&((((((((((((a29==6)||(a29==7))&&(input==2))&&!(a25==1))&&(a28==1))&&!(a24==1))&&(a19==3))&&(a22==1))&&!(a7==1))&&(a0==1))&&(a11==1))&&!(a20==1)))){ + a29 = 7; + a24 = 1; + a0 = 0; + a19 = 4; + a14 = 8; + return 24; + } else if(((a28==1)&&((a14==8)&&(!(a0==1)&&((a20==1)&&((a22==1)&&(((a19==4)&&(((a29==7)&&(!(a24==1)&&(!(a25==1)&&(input==3))))&&!(a7==1)))&&(a11==1)))))))){ + a14 = 9; + a20 = 0; + a0 = 1; + a19 = 5; + a29 = 5; + return 24; + } else if((!(a0==1)&&((!(a20==1)&&((a28==1)&&((a14==8)&&((!(a24==1)&&(((input==2)&&(((((a25==1)&&(a29==8))&&(a19==5))||(((a25==1)&&(a29==9))&&(a19==5)))||(((a29==5)&&!(a25==1))&&(a19==1))))&&(a11==1)))&&(a7==1)))))&&(a22==1)))){ + a24 = 1; + a29 = 5; + a14 = 9; + a19 = 2; + a25 = 0; + return 21; + } else if(((a20==1)&&((((a22==1)&&(((a7==1)&&(((a28==1)&&((a25==1)&&(((a24==1)&&(input==4))&&(a14==9))))&&(a29==7)))&&(a19==1)))&&!(a11==1))&&!(a0==1)))){ + a14 = 8; + a29 = 5; + a0 = 1; + a11 = 1; + return -1; + } else if(((a28==1)&&((a20==1)&&((((a7==1)&&((a14==9)&&(!(a11==1)&&(((!(a24==1)&&(((a29==6)||(a29==7))&&(input==6)))&&(a25==1))&&(a22==1)))))&&!(a0==1))&&(a19==4))))){ + a0 = 1; + a19 = 1; + a24 = 1; + a11 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if((!(a24==1)&&(((a22==1)&&((((a14==8)&&(((!(a11==1)&&((a20==1)&&((a28==1)&&(input==2))))&&!(a25==1))&&(a19==3)))&&(a0==1))&&(a29==7)))&&(a7==1)))){ + a29 = 5; + a11 = 1; + a24 = 1; + a19 = 1; + a25 = 1; + return -1; + } else if(((!(a24==1)&&(((((a19==5)&&((((a0==1)&&((a28==1)&&((input==2)&&!(a20==1))))&&(a11==1))&&(a25==1)))&&(a7==1))&&(a14==9))&&(a29==8)))&&(a22==1))){ + a29 = 5; + a24 = 1; + a14 = 8; + a19 = 1; + a20 = 1; + return -1; + } else if(((a19==1)&&((a25==1)&&((a22==1)&&(((a20==1)&&((a24==1)&&(((a14==8)&&((!(a11==1)&&(((a29==7)||(a29==8))&&(input==2)))&&(a28==1)))&&(a7==1))))&&(a0==1)))))){ + a25 = 0; + a29 = 9; + a20 = 0; + a0 = 0; + return 23; + } else if((((a7==1)&&(!(a0==1)&&(((((!(a11==1)&&((a29==8)&&((a20==1)&&((input==6)&&(a14==9)))))&&(a19==3))&&(a22==1))&&!(a24==1))&&(a28==1))))&&(a25==1))){ + a25 = 0; + a29 = 9; + a0 = 1; + a19 = 1; + return 24; + } else if(((((a28==1)&&((a24==1)&&(((a25==1)&&((a22==1)&&((a14==9)&&(((!(a0==1)&&(input==6))&&(a29==7))&&(a11==1)))))&&!(a20==1))))&&!(a7==1))&&(a19==5))){ + a24 = 0; + a0 = 1; + a7 = 1; + a29 = 8; + a25 = 0; + a19 = 3; + a11 = 0; + return 21; + } else if((!(a20==1)&&(!(a11==1)&&(((a14==8)&&((((a28==1)&&(!(a7==1)&&((a22==1)&&((a25==1)&&(((a29==7)||(a29==8))&&(input==1))))))&&(a19==3))&&!(a24==1)))&&(a0==1))))){ + a25 = 0; + a19 = 4; + a24 = 1; + a20 = 1; + a29 = 8; + a11 = 1; + return -1; + } else if(((((((a19==4)&&(((!(a24==1)&&((!(a20==1)&&((input==5)&&(a22==1)))&&!(a11==1)))&&(a14==9))&&!(a25==1)))&&!(a0==1))&&(a28==1))&&(a29==9))&&(a7==1))){ + a19 = 2; + a14 = 8; + a0 = 1; + a29 = 8; + return 24; + } else if((((!(a7==1)&&((((((!(a25==1)&&((((a19==5)&&(a29==6))||(((a29==9)&&(a19==4))||((a29==5)&&(a19==5))))&&(input==5)))&&(a20==1))&&(a11==1))&&(a24==1))&&(a28==1))&&(a0==1)))&&(a22==1))&&(a14==10))){ + a19 = 5; + a29 = 9; + a0 = 0; + a7 = 1; + a14 = 9; + a20 = 0; + return -1; + } else if((((((!(a20==1)&&((a19==5)&&(((a29==7)&&(((!(a7==1)&&(input==2))&&(a28==1))&&!(a0==1)))&&!(a11==1))))&&(a24==1))&&(a14==8))&&(a22==1))&&!(a25==1))){ + a20 = 1; + a19 = 4; + a29 = 6; + a7 = 1; + a14 = 9; + a25 = 1; + return 24; + } else if(((a24==1)&&((a25==1)&&(!(a20==1)&&((a11==1)&&((a7==1)&&((((a29==9)&&((((input==4)&&(a14==10))&&(a28==1))&&(a0==1)))&&(a22==1))&&(a19==4)))))))){ + a20 = 1; + a11 = 0; + a24 = 0; + a19 = 1; + a14 = 8; + a7 = 0; + a0 = 0; + a29 = 5; + return -1; + } else if(((a22==1)&&(((a24==1)&&(((a11==1)&&(!(a7==1)&&(!(a20==1)&&(!(a25==1)&&((((input==3)&&(a19==5))&&(a0==1))&&(a29==5))))))&&(a28==1)))&&(a14==10)))){ + a19 = 1; + a20 = 1; + a25 = 1; + a7 = 1; + a14 = 8; + return -1; + } else if((!(a7==1)&&((!(a20==1)&&(((a22==1)&&((!(a24==1)&&((a28==1)&&(!(a25==1)&&(((((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))||((a29==6)&&(a19==2)))&&(input==5)))))&&!(a11==1)))&&(a14==9)))&&!(a0==1)))){ + a25 = 1; + a29 = 5; + a14 = 8; + a7 = 1; + a24 = 1; + a20 = 1; + a19 = 1; + a0 = 1; + a11 = 1; + return -1; + } else if(((a19==2)&&(!(a0==1)&&(((a14==9)&&((a25==1)&&((a24==1)&&((a28==1)&&((a11==1)&&((a7==1)&&((a22==1)&&((input==6)&&((a29==6)||(a29==7))))))))))&&(a20==1))))){ + a29 = 5; + a0 = 1; + a19 = 1; + a14 = 8; + return -1; + } else if((((!(a20==1)&&((a28==1)&&(!(a11==1)&&((((a24==1)&&(!(a25==1)&&((((a29==7)||(a29==8))&&(input==4))&&(a19==1))))&&(a22==1))&&!(a7==1)))))&&!(a0==1))&&(a14==8))){ + a19 = 5; + a14 = 9; + a11 = 1; + a29 = 7; + a24 = 0; + return 24; + } else if((!(a7==1)&&((a14==9)&&(((a22==1)&&(!(a25==1)&&((a29==7)&&(!(a0==1)&&(!(a20==1)&&((a28==1)&&(((input==6)&&(a19==3))&&(a11==1))))))))&&!(a24==1))))){ + a14 = 8; + a11 = 0; + a29 = 9; + a19 = 5; + return -1; + } else if(((!(a25==1)&&((((a22==1)&&((((((input==6)&&(((a19==1)&&(a29==9))||((a29==5)&&(a19==2))))&&(a14==10))&&(a7==1))&&(a28==1))&&(a11==1)))&&!(a24==1))&&(a20==1)))&&(a0==1))){ + a14 = 8; + a7 = 0; + a24 = 1; + a19 = 3; + a0 = 0; + a29 = 6; + a25 = 1; + a20 = 0; + return 21; + } else if((((((!(a24==1)&&((((a28==1)&&((a19==2)&&((a20==1)&&((a14==9)&&(input==6)))))&&(a11==1))&&(a22==1)))&&(a7==1))&&!(a25==1))&&(a0==1))&&(a29==9))){ + a19 = 1; + a14 = 8; + a24 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if((!(a0==1)&&((a22==1)&&(((a24==1)&&((a28==1)&&((((a20==1)&&((((input==1)&&((a29==8)||((a29==6)||(a29==7))))&&(a11==1))&&(a19==4)))&&(a14==8))&&!(a7==1))))&&(a25==1))))){ + a0 = 1; + a14 = 9; + a7 = 1; + a24 = 0; + a29 = 7; + a11 = 0; + a25 = 0; + return 24; + } else if((!(a25==1)&&((a7==1)&&((((a14==8)&&((((!(a20==1)&&(((input==2)&&(((a29==6)||(a29==7))||(a29==8)))&&(a19==5)))&&(a24==1))&&(a0==1))&&(a11==1)))&&(a22==1))&&(a28==1))))){ + a29 = 9; + a19 = 4; + a11 = 0; + a20 = 1; + return 23; + } else if(((a22==1)&&(((a25==1)&&((!(a24==1)&&((!(a7==1)&&(((((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))||((a19==4)&&(a29==6)))&&(input==2))&&(a14==9))&&(a28==1)))&&!(a0==1)))&&(a20==1)))&&(a11==1)))){ + a20 = 0; + a24 = 1; + a14 = 8; + a19 = 5; + a7 = 1; + a29 = 9; + return 23; + } else if(((((((a28==1)&&((((a0==1)&&(((a22==1)&&(!(a7==1)&&(input==1)))&&(a11==1)))&&!(a24==1))&&!(a20==1)))&&!(a25==1))&&(a14==9))&&(a29==5))&&(a19==1))){ + a25 = 1; + a20 = 1; + a11 = 0; + a7 = 1; + a19 = 3; + a24 = 1; + return 23; + } else if((!(a11==1)&&((a22==1)&&((a14==8)&&((((a24==1)&&((!(a20==1)&&(((input==6)&&(((a29==5)&&(a19==3))||(((a19==2)&&(a29==8))||((a29==9)&&(a19==2)))))&&!(a25==1)))&&(a0==1)))&&(a28==1))&&(a7==1)))))){ + a20 = 1; + a29 = 5; + a25 = 1; + a11 = 1; + a19 = 1; + return -1; + } else if((!(a25==1)&&((((((a19==4)&&((a28==1)&&(((a20==1)&&((a0==1)&&(((a29==5)||(a29==6))&&(input==6))))&&(a7==1))))&&(a24==1))&&(a22==1))&&!(a11==1))&&(a14==9)))){ + a29 = 6; + return 21; + } else if(((!(a24==1)&&((a0==1)&&((a20==1)&&((a11==1)&&(!(a7==1)&&((a22==1)&&(((((((a29==8)&&(a25==1))&&(a19==5))||((a19==5)&&((a29==9)&&(a25==1))))||((!(a25==1)&&(a29==5))&&(a19==1)))&&(input==1))&&(a14==8))))))))&&(a28==1))){ + a19 = 4; + a7 = 1; + a29 = 8; + a0 = 0; + a25 = 1; + return 23; + } else if((((a28==1)&&(((a14==8)&&(!(a0==1)&&((a19==3)&&((a7==1)&&(((a25==1)&&(((input==2)&&((a29==7)||((a29==5)||(a29==6))))&&(a24==1)))&&!(a20==1))))))&&(a11==1)))&&(a22==1))){ + a19 = 1; + a20 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if(((((a11==1)&&((a24==1)&&((((a25==1)&&(((((((a29==8)&&(a19==3))||((a29==9)&&(a19==3)))||((a19==4)&&(a29==5)))&&(input==4))&&!(a7==1))&&(a14==8)))&&(a22==1))&&(a0==1))))&&!(a20==1))&&(a28==1))){ + a19 = 1; + a20 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if((((a29==9)&&(((((a0==1)&&((((((input==4)&&!(a25==1))&&!(a7==1))&&!(a20==1))&&!(a24==1))&&(a28==1)))&&(a22==1))&&(a14==9))&&(a11==1)))&&(a19==4))){ + a29 = 7; + a19 = 2; + a14 = 8; + a7 = 1; + a0 = 0; + a20 = 1; + return -1; + } else if(((a7==1)&&((!(a20==1)&&((!(a24==1)&&(((a14==9)&&(!(a25==1)&&(((((a29==7)||((a29==5)||(a29==6)))&&(input==1))&&(a22==1))&&(a28==1))))&&(a11==1)))&&!(a0==1)))&&(a19==2)))){ + a24 = 1; + a29 = 8; + a19 = 5; + a7 = 0; + a0 = 1; + return 23; + } else if(((a0==1)&&((a28==1)&&(((((((a14==9)&&(((((a29==5)||(a29==6))&&(input==2))&&(a7==1))&&(a24==1)))&&(a25==1))&&(a22==1))&&!(a20==1))&&!(a11==1))&&(a19==4))))){ + a14 = 8; + a0 = 0; + a25 = 0; + a11 = 1; + a29 = 6; + return 23; + } else if((((((((((a20==1)&&((a28==1)&&((a0==1)&&((input==4)&&((a29==8)||(a29==9))))))&&(a19==2))&&(a11==1))&&(a24==1))&&(a7==1))&&(a14==10))&&!(a25==1))&&(a22==1))){ + a29 = 9; + a14 = 8; + a19 = 1; + a20 = 0; + a0 = 0; + return 23; + } else if(((a0==1)&&((a28==1)&&((a7==1)&&(((a24==1)&&((((((a14==10)&&((input==4)&&((a29==7)||(a29==8))))&&(a19==1))&&(a22==1))&&!(a20==1))&&(a11==1)))&&(a25==1)))))){ + a11 = 0; + a7 = 0; + a19 = 5; + a14 = 8; + a24 = 0; + a29 = 7; + return 21; + } else if(((a11==1)&&((!(a7==1)&&(!(a0==1)&&(((((!(a20==1)&&((a14==8)&&((input==1)&&((a29==6)||(a29==7)))))&&(a28==1))&&(a25==1))&&(a24==1))&&(a22==1))))&&(a19==3)))){ + a29 = 9; + a7 = 1; + a19 = 1; + return -1; + } else if((((a20==1)&&(!(a24==1)&&((((a22==1)&&(((((a7==1)&&((input==5)&&(a14==10)))&&(a19==2))&&(a29==8))&&!(a25==1)))&&(a28==1))&&(a0==1))))&&(a11==1))){ + a25 = 1; + a14 = 8; + a24 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if((((a28==1)&&((((!(a20==1)&&((((a25==1)&&((a0==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==3))))&&!(a11==1))&&(a22==1)))&&(a19==4))&&(a14==8))&&(a24==1)))&&!(a7==1))){ + a29 = 6; + a14 = 9; + a19 = 2; + a7 = 1; + a11 = 1; + a25 = 0; + return 24; + } else if(((a28==1)&&(!(a24==1)&&((a20==1)&&((a29==6)&&((a19==5)&&(((a0==1)&&(((a25==1)&&(((a14==8)&&(input==3))&&!(a7==1)))&&!(a11==1)))&&(a22==1)))))))){ + a19 = 1; + a14 = 9; + a11 = 1; + a29 = 5; + a20 = 0; + return 24; + } else if(((((((((a22==1)&&(((a24==1)&&((input==1)&&(((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))))&&!(a25==1)))&&!(a7==1))&&(a20==1))&&(a11==1))&&(a28==1))&&(a0==1))&&(a14==9))){ + a29 = 6; + a14 = 8; + a20 = 0; + a24 = 0; + a7 = 1; + a19 = 5; + a11 = 0; + return 24; + } else if((((((a14==9)&&((((((!(a0==1)&&(((a29==8)||(a29==9))&&(input==1)))&&(a28==1))&&(a7==1))&&!(a11==1))&&!(a24==1))&&(a19==5)))&&(a20==1))&&(a22==1))&&(a25==1))){ + a0 = 1; + a11 = 1; + a14 = 8; + a19 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if(((a19==3)&&((!(a7==1)&&((a11==1)&&((a25==1)&&((a29==8)&&(!(a20==1)&&(((((a28==1)&&(input==4))&&(a22==1))&&!(a24==1))&&(a14==9)))))))&&!(a0==1)))){ + a0 = 1; + a20 = 1; + a19 = 2; + a25 = 0; + a29 = 6; + a11 = 0; + return -1; + } else if(((a28==1)&&(((a14==9)&&(((((a7==1)&&((!(a25==1)&&(((input==2)&&(a19==3))&&(a29==8)))&&(a20==1)))&&(a22==1))&&(a24==1))&&(a0==1)))&&(a11==1)))){ + a29 = 9; + a24 = 0; + a7 = 0; + a19 = 5; + return 24; + } else if(((!(a7==1)&&(((a11==1)&&((a24==1)&&((!(a0==1)&&((((((a19==3)&&(a29==5))||(((a19==2)&&(a29==8))||((a19==2)&&(a29==9))))&&(input==4))&&(a20==1))&&!(a25==1)))&&(a22==1))))&&(a14==8)))&&(a28==1))){ + a19 = 1; + a7 = 1; + a29 = 7; + return -1; + } else if(((a7==1)&&(((a22==1)&&(!(a20==1)&&(!(a0==1)&&(((a28==1)&&((a14==9)&&((a25==1)&&(((((a19==2)&&(a29==8))||((a29==9)&&(a19==2)))||((a19==3)&&(a29==5)))&&(input==4)))))&&(a24==1)))))&&(a11==1)))){ + a19 = 3; + a0 = 1; + a24 = 0; + a29 = 5; + a20 = 1; + return 23; + } else if((((!(a20==1)&&(((a19==3)&&(((a14==8)&&(!(a7==1)&&(((a0==1)&&((input==6)&&(((a29==5)||(a29==6))||(a29==7))))&&(a28==1))))&&(a22==1)))&&!(a11==1)))&&(a25==1))&&(a24==1))){ + a11 = 1; + a19 = 1; + a7 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if((((a28==1)&&((!(a7==1)&&((a22==1)&&((((a0==1)&&((a11==1)&&((((a29==6)||(a29==7))&&(input==3))&&!(a24==1))))&&(a19==1))&&!(a25==1))))&&(a20==1)))&&(a14==8))){ + a29 = 5; + a7 = 1; + a25 = 1; + a24 = 1; + return -1; + } else if((!(a7==1)&&((a28==1)&&((a22==1)&&(((a20==1)&&(((!(a24==1)&&((input==4)&&((((a25==1)&&(a29==9))&&(a19==5))||((a19==1)&&((a29==5)&&!(a25==1))))))&&(a11==1))&&!(a0==1)))&&(a14==9)))))){ + a11 = 0; + a25 = 0; + a29 = 5; + a20 = 0; + a19 = 5; + a0 = 1; + a14 = 8; + return 21; + } else if((((a11==1)&&((((a28==1)&&(!(a25==1)&&((a19==3)&&((a14==9)&&((a0==1)&&(((input==6)&&(a24==1))&&(a7==1)))))))&&(a20==1))&&(a29==7)))&&(a22==1))){ + a0 = 0; + a14 = 8; + a29 = 5; + a25 = 1; + a11 = 0; + a24 = 0; + a19 = 2; + return 21; + } else if((((((a14==8)&&(!(a0==1)&&((a11==1)&&((a28==1)&&((((((a29==5)&&(a19==4))||(((a19==3)&&(a29==8))||((a19==3)&&(a29==9))))&&(input==5))&&!(a24==1))&&(a22==1))))))&&!(a25==1))&&!(a7==1))&&(a20==1))){ + a0 = 1; + a29 = 5; + a24 = 1; + a19 = 1; + a25 = 1; + a7 = 1; + return -1; + } else if((((a25==1)&&(((((a0==1)&&((((a11==1)&&((a22==1)&&((input==3)&&((a29==5)||(a29==6)))))&&!(a20==1))&&(a24==1)))&&(a28==1))&&(a14==8))&&!(a7==1)))&&(a19==2))){ + a11 = 0; + a25 = 0; + a19 = 4; + a29 = 5; + a20 = 1; + return 23; + } else if(((!(a11==1)&&((a20==1)&&((a22==1)&&((((a0==1)&&((((a19==5)&&((input==1)&&(((a29==5)||(a29==6))||(a29==7))))&&(a7==1))&&(a28==1)))&&(a24==1))&&!(a25==1)))))&&(a14==9))){ + a29 = 9; + a19 = 4; + a14 = 8; + a20 = 0; + a24 = 0; + return 24; + } else if((((a0==1)&&((a14==9)&&((a20==1)&&((a28==1)&&((!(a11==1)&&(!(a24==1)&&(((a22==1)&&((input==2)&&((a29==8)||(a29==9))))&&!(a25==1))))&&(a7==1))))))&&(a19==5))){ + a11 = 1; + a14 = 8; + a0 = 0; + a7 = 0; + a29 = 6; + a19 = 3; + a24 = 1; + return 21; + } else if(((((((a19==1)&&((((!(a7==1)&&(!(a0==1)&&((input==1)&&!(a20==1))))&&(a14==9))&&(a24==1))&&!(a11==1)))&&(a29==7))&&(a25==1))&&(a22==1))&&(a28==1))){ + a7 = 1; + a0 = 1; + a29 = 9; + a25 = 0; + a14 = 8; + a24 = 0; + a19 = 5; + return 24; + } else if(((((a19==5)&&((a28==1)&&((a22==1)&&((((a24==1)&&((((input==5)&&((a29==6)||(a29==7)))&&!(a25==1))&&!(a20==1)))&&(a11==1))&&!(a7==1)))))&&(a14==9))&&(a0==1))){ + a20 = 1; + a25 = 1; + a19 = 4; + a14 = 10; + a29 = 9; + return 23; + } else if(((a19==4)&&((a7==1)&&((a0==1)&&((a25==1)&&((a24==1)&&((((!(a20==1)&&(!(a11==1)&&((a28==1)&&(input==2))))&&(a14==8))&&(a29==5))&&(a22==1)))))))){ + a29 = 7; + a7 = 0; + a24 = 0; + a0 = 0; + a25 = 0; + return 21; + } else if(((((a7==1)&&(((((((a19==2)&&((a28==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==1))))&&(a20==1))&&!(a25==1))&&(a14==8))&&!(a11==1))&&(a0==1)))&&!(a24==1))&&(a22==1))){ + a14 = 9; + a11 = 1; + a7 = 0; + a25 = 1; + a19 = 4; + a29 = 8; + return 21; + } else if((((a7==1)&&((a14==9)&&((((((a22==1)&&((((input==1)&&(a29==9))&&!(a0==1))&&!(a25==1)))&&(a11==1))&&(a28==1))&&(a19==4))&&(a20==1))))&&!(a24==1))){ + a14 = 8; + a29 = 8; + a25 = 1; + a11 = 0; + a7 = 0; + return -1; + } else if((!(a0==1)&&((!(a7==1)&&(!(a24==1)&&((a22==1)&&(((a28==1)&&((((((a19==5)&&((a29==8)&&(a25==1)))||(((a25==1)&&(a29==9))&&(a19==5)))||(((a29==5)&&!(a25==1))&&(a19==1)))&&(input==3))&&!(a20==1)))&&(a14==8)))))&&(a11==1)))){ + a25 = 0; + a24 = 1; + a20 = 1; + a19 = 2; + a29 = 8; + return 21; + } else if((((!(a11==1)&&(((a19==3)&&((((a29==7)&&((((input==1)&&(a28==1))&&!(a7==1))&&(a22==1)))&&!(a0==1))&&(a14==9)))&&(a24==1)))&&(a20==1))&&!(a25==1))){ + a14 = 8; + a7 = 1; + a19 = 1; + a25 = 1; + a29 = 5; + a11 = 1; + a0 = 1; + return -1; + } else if((((((a7==1)&&((a19==5)&&((a22==1)&&((((((input==5)&&(a28==1))&&!(a0==1))&&!(a24==1))&&(a14==9))&&!(a11==1)))))&&!(a20==1))&&!(a25==1))&&(a29==8))){ + a7 = 0; + a11 = 1; + a19 = 1; + a14 = 8; + a29 = 5; + a24 = 1; + a20 = 1; + return 24; + } else if(((a20==1)&&((((a11==1)&&((((((a0==1)&&(!(a25==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==5))))&&(a28==1))&&(a19==5))&&(a24==1))&&!(a7==1)))&&(a14==10))&&(a22==1)))){ + a19 = 2; + a0 = 0; + a25 = 1; + a11 = 0; + a14 = 8; + a29 = 7; + a24 = 0; + return 21; + } else if(((a25==1)&&((a28==1)&&((a24==1)&&(((a11==1)&&((!(a0==1)&&((a7==1)&&(!(a20==1)&&((input==2)&&(((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))))))&&(a14==8)))&&(a22==1)))))){ + a29 = 5; + a20 = 1; + a0 = 1; + a19 = 1; + return -1; + } else if((((a14==8)&&(((((((((!(a11==1)&&(input==3))&&!(a7==1))&&(a22==1))&&!(a0==1))&&(a19==3))&&(a25==1))&&!(a20==1))&&(a29==9))&&!(a24==1)))&&(a28==1))){ + a11 = 1; + a20 = 1; + a24 = 1; + return 21; + } else if(((a28==1)&&(!(a0==1)&&((((a22==1)&&(((a24==1)&&((((input==4)&&(((a19==1)&&(a29==9))||((a29==5)&&(a19==2))))&&!(a11==1))&&!(a25==1)))&&(a14==9)))&&(a7==1))&&(a20==1))))){ + a19 = 2; + a25 = 1; + a20 = 0; + a29 = 5; + a11 = 1; + return -1; + } else if((((a7==1)&&((a24==1)&&(((a28==1)&&((a0==1)&&((a25==1)&&(((a11==1)&&((((a29==7)||(a29==8))&&(input==5))&&(a19==1)))&&!(a20==1)))))&&(a22==1))))&&(a14==10))){ + a19 = 3; + a29 = 7; + a14 = 9; + a25 = 0; + a20 = 1; + return 21; + } else if(((a14==8)&&((a24==1)&&(!(a7==1)&&((a20==1)&&((a28==1)&&((((a19==1)&&(!(a0==1)&&((a22==1)&&((input==2)&&!(a25==1)))))&&(a11==1))&&(a29==7)))))))){ + a7 = 1; + a0 = 1; + a29 = 9; + a24 = 0; + a19 = 4; + return 24; + } else if((((a14==9)&&((a25==1)&&((!(a20==1)&&(((((a24==1)&&((a11==1)&&((input==1)&&(((a29==6)||(a29==7))||(a29==8)))))&&(a28==1))&&(a19==3))&&(a0==1)))&&(a7==1))))&&(a22==1))){ + a29 = 5; + a19 = 1; + a14 = 8; + a20 = 1; + return -1; + } else if((((a28==1)&&(((a20==1)&&((a0==1)&&((a24==1)&&((a14==9)&&(((((a19==1)&&(!(a25==1)&&(a29==5)))||(((a19==5)&&((a29==8)&&(a25==1)))||((a19==5)&&((a25==1)&&(a29==9)))))&&(input==4))&&!(a11==1))))))&&(a22==1)))&&!(a7==1))){ + a11 = 1; + a29 = 5; + a7 = 1; + a25 = 1; + a14 = 8; + a19 = 1; + return -1; + } else if(((a19==2)&&(((!(a7==1)&&((((((((((a29==7)||(a29==8))||(a29==9))&&(input==3))&&(a22==1))&&!(a11==1))&&!(a20==1))&&(a0==1))&&!(a24==1))&&(a25==1)))&&(a28==1))&&(a14==9)))){ + a7 = 1; + a19 = 1; + a29 = 8; + a25 = 0; + a24 = 1; + return 21; + } else if((((!(a25==1)&&((a0==1)&&((((a14==10)&&((a28==1)&&(((input==6)&&(((a19==3)&&(a29==9))||((a29==5)&&(a19==4))))&&(a11==1))))&&!(a20==1))&&(a7==1))))&&(a22==1))&&(a24==1))){ + a29 = 6; + a0 = 0; + a14 = 8; + a19 = 5; + return 23; + } else if(((!(a25==1)&&(((!(a11==1)&&(((a19==3)&&(((a7==1)&&((a24==1)&&((input==3)&&((a29==6)||(a29==7)))))&&(a20==1)))&&(a14==9)))&&(a28==1))&&(a22==1)))&&(a0==1))){ + a25 = 1; + a29 = 9; + a0 = 0; + a24 = 0; + a20 = 0; + a14 = 8; + a11 = 1; + return -1; + } else if(((a25==1)&&(((a11==1)&&((a20==1)&&((a24==1)&&((a22==1)&&((!(a0==1)&&((a14==9)&&(((a29==7)&&(input==6))&&!(a7==1))))&&(a28==1))))))&&(a19==5)))){ + a11 = 0; + a25 = 0; + a0 = 1; + a20 = 0; + return -1; + } else if((((a14==8)&&((((a19==1)&&((((a7==1)&&(!(a0==1)&&(!(a11==1)&&((input==3)&&((a29==9)||((a29==7)||(a29==8)))))))&&(a20==1))&&!(a25==1)))&&(a22==1))&&(a28==1)))&&(a24==1))){ + a20 = 0; + a0 = 1; + a7 = 0; + a19 = 3; + a25 = 1; + a29 = 7; + a24 = 0; + a11 = 1; + a14 = 9; + return 24; + } else if(((a11==1)&&((a19==4)&&(((a29==9)&&((((a0==1)&&((a22==1)&&(((a24==1)&&((input==1)&&(a20==1)))&&(a28==1))))&&!(a25==1))&&(a7==1)))&&(a14==10))))){ + a11 = 0; + a25 = 1; + a24 = 0; + a20 = 0; + a7 = 0; + a14 = 8; + return 24; + } else if((!(a0==1)&&((a22==1)&&((!(a11==1)&&((((a14==9)&&((((((a29==6)||(a29==7))&&(input==4))&&(a25==1))&&(a28==1))&&(a20==1)))&&!(a7==1))&&(a24==1)))&&(a19==5))))){ + a29 = 5; + a14 = 8; + a7 = 1; + a24 = 0; + a11 = 1; + return -1; + } else if((((a24==1)&&(!(a20==1)&&((a14==8)&&((a22==1)&&(((a28==1)&&((((input==1)&&(((a29==5)&&(a19==5))||(((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))))&&(a7==1))&&!(a25==1)))&&!(a0==1))))))&&!(a11==1))){ + a25 = 1; + a19 = 1; + a0 = 1; + a11 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if(((a19==1)&&((a14==9)&&((((((((((((a29==6)||(a29==7))||(a29==8))&&(input==6))&&(a28==1))&&(a20==1))&&!(a7==1))&&(a22==1))&&!(a0==1))&&!(a25==1))&&(a11==1))&&(a24==1))))){ + a19 = 4; + a29 = 7; + a25 = 1; + a14 = 8; + a24 = 0; + a20 = 0; + return -1; + } else if(((a11==1)&&(!(a7==1)&&((a0==1)&&((a25==1)&&((((a28==1)&&(((((((a29==8)&&(a19==2))||((a19==2)&&(a29==9)))||((a29==5)&&(a19==3)))&&(input==4))&&(a22==1))&&(a20==1)))&&!(a24==1))&&(a14==8))))))){ + a24 = 1; + a19 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if(((((a7==1)&&(((a25==1)&&(((a19==2)&&((((((a29==5)||(a29==6))&&(input==4))&&(a0==1))&&(a14==8))&&(a20==1)))&&!(a11==1)))&&(a28==1)))&&(a24==1))&&(a22==1))){ + a29 = 5; + a11 = 1; + a19 = 1; + return -1; + } else if((((((((a14==10)&&((a0==1)&&(!(a25==1)&&(((a11==1)&&((a29==8)&&(input==3)))&&(a20==1)))))&&(a19==4))&&!(a7==1))&&(a24==1))&&(a28==1))&&(a22==1))){ + a19 = 2; + a24 = 0; + a14 = 8; + a25 = 1; + a11 = 0; + a0 = 0; + a29 = 6; + return -1; + } else if(((a14==9)&&((((a0==1)&&(((((a24==1)&&(!(a25==1)&&((a22==1)&&(((a29==7)||(a29==8))&&(input==4)))))&&(a19==4))&&!(a7==1))&&(a28==1)))&&!(a11==1))&&(a20==1)))){ + a19 = 2; + a29 = 7; + a11 = 1; + a7 = 1; + return 23; + } else if(((((!(a25==1)&&(((a22==1)&&((a0==1)&&(!(a20==1)&&((a11==1)&&(((a24==1)&&(input==5))&&(a19==4))))))&&(a14==9)))&&(a29==5))&&(a28==1))&&!(a7==1))){ + a25 = 1; + a20 = 1; + a29 = 8; + a14 = 10; + a19 = 3; + return 23; + } else if(((!(a24==1)&&((a0==1)&&((a28==1)&&(!(a25==1)&&((((a14==8)&&((a19==2)&&(!(a20==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==6)))))&&(a11==1))&&(a22==1))))))&&(a7==1))){ + a24 = 1; + a29 = 7; + a19 = 3; + a0 = 0; + a7 = 0; + return 23; + } else if((((a20==1)&&((((a14==10)&&((((((a19==1)&&((input==5)&&(a29==8)))&&(a22==1))&&(a0==1))&&(a24==1))&&(a28==1)))&&(a11==1))&&!(a7==1)))&&!(a25==1))){ + a7 = 1; + a14 = 9; + a0 = 0; + a29 = 9; + a19 = 3; + a24 = 0; + return -1; + } else if(((!(a24==1)&&(!(a7==1)&&((((a11==1)&&(((!(a0==1)&&((a19==1)&&((input==5)&&((a29==5)||(a29==6)))))&&!(a20==1))&&(a22==1)))&&(a28==1))&&(a14==8))))&&(a25==1))){ + a29 = 9; + a19 = 2; + a20 = 1; + a25 = 0; + a7 = 1; + return 24; + } else if((((a28==1)&&((a14==9)&&((((((!(a7==1)&&(!(a24==1)&&((input==3)&&(((a29==6)||(a29==7))||(a29==8)))))&&(a19==3))&&(a0==1))&&!(a25==1))&&(a22==1))&&!(a11==1))))&&(a20==1))){ + a25 = 1; + a19 = 1; + a20 = 0; + a29 = 6; + a11 = 1; + return -1; + } else if((!(a0==1)&&(((((a14==8)&&(((a28==1)&&((a7==1)&&((a24==1)&&((input==4)&&(((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))))))&&(a25==1)))&&(a22==1))&&!(a20==1))&&(a11==1)))){ + a25 = 0; + a19 = 4; + a29 = 5; + a20 = 1; + return -1; + } else if(((a29==6)&&((a24==1)&&((a0==1)&&((a28==1)&&((a19==3)&&((a14==9)&&(((((a22==1)&&(!(a25==1)&&(input==2)))&&!(a11==1))&&!(a20==1))&&(a7==1))))))))){ + a19 = 2; + a11 = 1; + a29 = 8; + return 23; + } else if(((!(a7==1)&&(!(a25==1)&&((a14==8)&&((a11==1)&&(((a20==1)&&((((input==3)&&((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))||((a29==6)&&(a19==5))))&&(a28==1))&&(a24==1)))&&(a22==1))))))&&(a0==1))){ + a7 = 1; + a24 = 0; + a19 = 2; + a29 = 9; + return 21; + } else if((((a24==1)&&((((a0==1)&&(((a28==1)&&((a29==5)&&((((a14==9)&&(input==3))&&(a25==1))&&(a7==1))))&&(a19==2)))&&(a20==1))&&(a22==1)))&&!(a11==1))){ + a14 = 8; + a24 = 0; + a29 = 8; + a20 = 0; + a19 = 3; + a25 = 0; + a7 = 0; + return 23; + } else if(((a0==1)&&((a19==3)&&(((a22==1)&&((a14==9)&&(((a24==1)&&(((a7==1)&&((((a29==7)||(a29==8))&&(input==2))&&!(a20==1)))&&(a28==1)))&&(a25==1))))&&!(a11==1))))){ + a29 = 5; + a14 = 8; + a25 = 0; + a24 = 0; + return 23; + } else if(((!(a20==1)&&((a25==1)&&((a14==8)&&((a19==4)&&(!(a7==1)&&((((((input==1)&&((a29==9)||((a29==7)||(a29==8))))&&(a28==1))&&!(a0==1))&&(a22==1))&&!(a24==1)))))))&&!(a11==1))){ + a19 = 3; + a0 = 1; + a25 = 0; + a29 = 6; + return -1; + } else if((((a0==1)&&(!(a20==1)&&((a11==1)&&((a29==8)&&(((a28==1)&&((a19==4)&&((((input==5)&&(a14==9))&&(a7==1))&&(a25==1))))&&(a22==1))))))&&!(a24==1))){ + a29 = 5; + a19 = 1; + a14 = 10; + a20 = 1; + return 23; + } else if((!(a7==1)&&(!(a24==1)&&(!(a20==1)&&((a11==1)&&((a28==1)&&(!(a0==1)&&((a19==2)&&((((((a29==7)||(a29==8))&&(input==1))&&(a14==8))&&!(a25==1))&&(a22==1)))))))))){ + a19 = 1; + a29 = 5; + a25 = 1; + a24 = 1; + a7 = 1; + a0 = 1; + a20 = 1; + return -1; + } else if((!(a20==1)&&((a28==1)&&((a0==1)&&((a11==1)&&(((a22==1)&&((a14==9)&&((input==6)&&((((((a7==1)&&!(a25==1))&&(a29==8))&&(a19==5))||((a19==5)&&((a29==9)&&(!(a25==1)&&(a7==1)))))||(((a29==5)&&((a25==1)&&!(a7==1)))&&(a19==1))))))&&!(a24==1))))))){ + a14 = 8; + a24 = 1; + a0 = 0; + a19 = 3; + a25 = 0; + a29 = 5; + a7 = 0; + return 24; + } else if((((a11==1)&&((a29==6)&&((a22==1)&&((((((a19==2)&&((a28==1)&&((input==4)&&(a0==1))))&&!(a25==1))&&(a14==10))&&!(a7==1))&&(a24==1)))))&&(a20==1))){ + a29 = 7; + a7 = 1; + a19 = 1; + a20 = 0; + a14 = 8; + a0 = 0; + return 24; + } else if(((!(a0==1)&&((!(a7==1)&&((((((!(a25==1)&&((input==6)&&((a29==7)||(a29==8))))&&(a28==1))&&(a19==4))&&!(a11==1))&&(a20==1))&&(a14==9)))&&(a24==1)))&&(a22==1))){ + a11 = 1; + a19 = 1; + a7 = 1; + a29 = 7; + a14 = 8; + return -1; + } else if(((((!(a20==1)&&(!(a25==1)&&(((!(a7==1)&&((a19==2)&&(((input==1)&&((a29==5)||(a29==6)))&&(a28==1))))&&(a14==9))&&(a11==1))))&&(a0==1))&&(a24==1))&&(a22==1))){ + a29 = 6; + a7 = 1; + a19 = 1; + a14 = 8; + a0 = 0; + a25 = 1; + a11 = 0; + return 23; + } else if(((a20==1)&&((!(a25==1)&&(!(a0==1)&&(((!(a24==1)&&(((a28==1)&&((a7==1)&&((input==1)&&((a29==7)||(a29==8)))))&&!(a11==1)))&&(a14==8))&&(a22==1))))&&(a19==2)))){ + a19 = 4; + a11 = 1; + a25 = 1; + a29 = 5; + a24 = 1; + return 21; + } else if(((!(a7==1)&&(((a24==1)&&(((!(a20==1)&&((a22==1)&&((a25==1)&&((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))&&(input==3)))))&&!(a0==1))&&(a14==9)))&&(a28==1)))&&!(a11==1))){ + a20 = 1; + a19 = 4; + a29 = 6; + a0 = 1; + a24 = 0; + a25 = 0; + a7 = 1; + return -1; + } else if(((a14==9)&&(((a28==1)&&(((((a24==1)&&(!(a20==1)&&(((input==5)&&(((a19==4)&&(a29==9))||((a19==5)&&(a29==5))))&&(a22==1))))&&(a0==1))&&!(a25==1))&&(a11==1)))&&(a7==1)))){ + a25 = 1; + a14 = 8; + a29 = 5; + a19 = 1; + a20 = 1; + return -1; + } else if(((((((a28==1)&&((((a20==1)&&((a22==1)&&(((input==1)&&(((a29==5)||(a29==6))||(a29==7)))&&(a0==1))))&&(a19==5))&&(a24==1)))&&!(a7==1))&&!(a25==1))&&(a14==9))&&!(a11==1))){ + a7 = 1; + a20 = 0; + a11 = 1; + a29 = 6; + return 21; + } else if(((((a22==1)&&(((a7==1)&&((a29==7)&&(!(a0==1)&&(((((a24==1)&&(input==2))&&(a19==3))&&(a11==1))&&(a28==1)))))&&!(a25==1)))&&(a14==8))&&(a20==1))){ + a19 = 1; + a0 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if(((!(a0==1)&&(!(a20==1)&&((a22==1)&&((!(a11==1)&&((a7==1)&&(((((input==1)&&((a29==7)||((a29==5)||(a29==6))))&&(a19==2))&&(a25==1))&&!(a24==1))))&&(a28==1)))))&&(a14==9))){ + a19 = 1; + a0 = 1; + a14 = 8; + a20 = 1; + a29 = 5; + a24 = 1; + a11 = 1; + return -1; + } else if(((!(a0==1)&&((a7==1)&&((!(a25==1)&&((a14==8)&&((a29==8)&&((a28==1)&&((a22==1)&&((a20==1)&&((input==4)&&(a11==1))))))))&&!(a24==1))))&&(a19==2))){ + a24 = 1; + a14 = 9; + a29 = 9; + a25 = 1; + a19 = 3; + return 21; + } else if((((a28==1)&&((((((a19==5)&&(((!(a11==1)&&((a29==6)&&(input==4)))&&(a20==1))&&(a0==1)))&&!(a24==1))&&(a25==1))&&(a14==8))&&!(a7==1)))&&(a22==1))){ + a25 = 0; + a19 = 2; + a20 = 0; + a29 = 8; + return 21; + } else if(((a24==1)&&((a28==1)&&((((a11==1)&&((a14==8)&&((a19==4)&&(((a0==1)&&((a22==1)&&((input==1)&&((a29==6)||(a29==7)))))&&!(a20==1)))))&&(a25==1))&&!(a7==1))))){ + a25 = 0; + a11 = 0; + a7 = 1; + a29 = 7; + a19 = 2; + return 23; + } else if(((a22==1)&&((a20==1)&&((a11==1)&&(((a29==5)&&(!(a7==1)&&(((a28==1)&&((!(a24==1)&&((a14==8)&&(input==3)))&&(a19==1)))&&(a25==1))))&&!(a0==1)))))){ + a14 = 9; + a24 = 1; + a7 = 1; + a29 = 9; + a19 = 2; + a25 = 0; + return 24; + } else if((((a14==9)&&(!(a0==1)&&((((!(a7==1)&&((a22==1)&&(!(a11==1)&&((((a19==5)&&(a29==5))||(((a19==4)&&(a29==8))||((a19==4)&&(a29==9))))&&(input==1)))))&&(a28==1))&&!(a20==1))&&(a25==1))))&&!(a24==1))){ + a29 = 9; + a19 = 1; + a7 = 1; + a0 = 1; + a25 = 0; + a24 = 1; + return 23; + } else if(((a20==1)&&(((!(a11==1)&&(((a25==1)&&((a29==7)&&((a14==8)&&(((a24==1)&&((a22==1)&&(input==3)))&&!(a7==1)))))&&(a19==1)))&&(a28==1))&&(a0==1)))){ + a7 = 1; + a19 = 5; + a29 = 9; + a24 = 0; + a25 = 0; + a20 = 0; + return 23; + } else if(((!(a11==1)&&((a14==8)&&(((!(a20==1)&&((a7==1)&&((((((a19==2)&&(a29==6))||(((a19==1)&&(a29==9))||((a29==5)&&(a19==2))))&&(input==1))&&(a28==1))&&(a25==1))))&&(a22==1))&&!(a0==1))))&&!(a24==1))){ + a25 = 0; + a29 = 6; + a19 = 2; + a11 = 1; + a24 = 1; + return 24; + } else if((((a14==9)&&((!(a0==1)&&((((((a24==1)&&((input==5)&&(((a19==5)&&(a29==6))||(((a19==4)&&(a29==9))||((a19==5)&&(a29==5))))))&&!(a25==1))&&(a22==1))&&(a28==1))&&(a20==1)))&&!(a7==1)))&&(a11==1))){ + a24 = 0; + a25 = 1; + a29 = 5; + a7 = 1; + a19 = 2; + a14 = 8; + return 23; + } else if((((((a22==1)&&((input==5)&&(((a19==1)&&((a29==5)&&((((!(a11==1)&&(a20==1))&&(a7==1))&&(a24==1))&&(a25==1))))||(((a19==5)&&((a29==8)&&(((!(a7==1)&&(!(a20==1)&&(a11==1)))&&!(a24==1))&&!(a25==1))))||((a19==5)&&(((((!(a20==1)&&(a11==1))&&!(a7==1))&&!(a24==1))&&!(a25==1))&&(a29==9)))))))&&(a0==1))&&(a28==1))&&(a14==9))){ + a24 = 1; + a25 = 1; + a29 = 5; + a20 = 1; + a19 = 1; + a14 = 8; + a11 = 1; + a7 = 1; + return -1; + } else if(((a0==1)&&(!(a11==1)&&(((!(a20==1)&&((((a14==8)&&(((a19==3)&&((input==1)&&(a28==1)))&&!(a24==1)))&&(a22==1))&&!(a7==1)))&&(a29==7))&&!(a25==1))))){ + a11 = 1; + a24 = 1; + a19 = 1; + a7 = 1; + a29 = 5; + a25 = 1; + a20 = 1; + return -1; + } else if(((((!(a7==1)&&((a28==1)&&((a20==1)&&(!(a24==1)&&((!(a0==1)&&(!(a11==1)&&((input==3)&&(((a29==7)||(a29==8))||(a29==9)))))&&(a22==1))))))&&(a14==9))&&(a19==2))&&(a25==1))){ + a19 = 1; + a24 = 1; + a11 = 1; + a29 = 9; + a14 = 8; + a20 = 0; + return 23; + } return calculate_output4(input); + } + + int calculate_output4(int input) { + if(((a25==1)&&(!(a7==1)&&((a14==9)&&(((a28==1)&&((((a0==1)&&(!(a11==1)&&(((input==1)&&((a29==5)||(a29==6)))&&(a19==2))))&&(a22==1))&&(a20==1)))&&(a24==1)))))){ + a19 = 1; + a7 = 1; + a29 = 5; + a14 = 8; + a11 = 1; + return -1; + } else if(((a14==8)&&(!(a20==1)&&(((a0==1)&&((((a25==1)&&(((a24==1)&&((a28==1)&&((input==2)&&((a29==5)||(a29==6)))))&&!(a11==1)))&&(a19==1))&&(a22==1)))&&(a7==1))))){ + a25 = 0; + a11 = 1; + a0 = 0; + a19 = 3; + a29 = 9; + a7 = 0; + return 24; + } else if(((a22==1)&&(((((a0==1)&&((input==5)&&(((a19==5)&&((((!(a7==1)&&!(a20==1))&&(a24==1))&&!(a25==1))&&(a29==9)))||(((a29==5)&&((((a20==1)&&(a7==1))&&!(a24==1))&&(a25==1)))&&(a19==1)))))&&(a11==1))&&(a14==10))&&(a28==1)))){ + a14 = 8; + a19 = 1; + a0 = 0; + a25 = 1; + a24 = 1; + a7 = 1; + a29 = 9; + a20 = 0; + return 21; + } else if(((a14==9)&&((a22==1)&&(!(a24==1)&&((a11==1)&&((((input==6)&&(((a19==5)&&((((a20==1)&&!(a7==1))&&!(a25==1))&&(a29==9)))||((a19==1)&&(((!(a20==1)&&(a7==1))&&(a25==1))&&(a29==5)))))&&(a0==1))&&(a28==1))))))){ + a25 = 1; + a20 = 1; + a7 = 1; + a29 = 5; + a14 = 8; + a19 = 1; + a24 = 1; + return -1; + } else if(((((!(a0==1)&&(!(a24==1)&&(((((a14==9)&&(((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))||((a19==3)&&(a29==6)))&&(input==5)))&&(a7==1))&&!(a20==1))&&(a28==1))))&&!(a11==1))&&!(a25==1))&&(a22==1))){ + a25 = 1; + a19 = 1; + a0 = 1; + a20 = 1; + a29 = 5; + a24 = 1; + a14 = 8; + a11 = 1; + return -1; + } else if((!(a11==1)&&((a14==8)&&((a19==3)&&(((a0==1)&&(!(a25==1)&&((a20==1)&&((a7==1)&&((a28==1)&&(((input==6)&&((a29==6)||(a29==7)))&&(a24==1)))))))&&(a22==1)))))){ + a19 = 1; + a29 = 5; + a0 = 0; + a24 = 0; + return 21; + } else if((((((a7==1)&&(((((a14==8)&&((a24==1)&&(!(a25==1)&&((input==5)&&(((a29==6)||(a29==7))||(a29==8))))))&&!(a20==1))&&(a0==1))&&(a28==1)))&&(a19==3))&&(a22==1))&&!(a11==1))){ + a20 = 1; + a11 = 1; + a14 = 9; + a19 = 1; + a25 = 1; + a7 = 0; + a29 = 8; + return 24; + } else if(((a19==4)&&((a28==1)&&(!(a20==1)&&(((a24==1)&&(((a14==10)&&((((a22==1)&&((input==3)&&((a29==7)||((a29==5)||(a29==6)))))&&!(a25==1))&&(a11==1)))&&(a0==1)))&&!(a7==1)))))){ + a29 = 8; + a14 = 9; + a24 = 0; + a7 = 1; + return -1; + } else if(((a29==9)&&(((a28==1)&&(!(a0==1)&&((a22==1)&&((((a14==9)&&((a7==1)&&((a11==1)&&((a25==1)&&(input==6)))))&&(a20==1))&&(a19==1)))))&&!(a24==1)))){ + a20 = 0; + a19 = 3; + a11 = 0; + a0 = 1; + a29 = 8; + a14 = 8; + a25 = 0; + return 21; + } else if(((((((a28==1)&&((((a14==8)&&((a20==1)&&(((input==3)&&((a29==8)||(a29==9)))&&!(a7==1))))&&(a22==1))&&!(a25==1)))&&!(a24==1))&&!(a0==1))&&(a19==4))&&(a11==1))){ + a7 = 1; + a11 = 0; + a20 = 0; + a29 = 6; + a19 = 5; + a0 = 1; + return 21; + } else if(((a28==1)&&((((((((a7==1)&&((a0==1)&&((a25==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==3)))))&&(a14==8))&&(a11==1))&&(a22==1))&&!(a24==1))&&(a20==1))&&(a19==5)))){ + a25 = 0; + a20 = 0; + a7 = 0; + a11 = 0; + a19 = 2; + a29 = 9; + return 23; + } else if((((((a22==1)&&((((a19==4)&&(((a28==1)&&((a0==1)&&((input==6)&&(a11==1))))&&!(a20==1)))&&(a14==10))&&(a7==1)))&&(a25==1))&&(a29==9))&&(a24==1))){ + a20 = 1; + a29 = 5; + a14 = 8; + a19 = 1; + return -1; + } else if((((a22==1)&&(((!(a7==1)&&((a19==5)&&((a24==1)&&(((((input==1)&&((a29==8)||(a29==9)))&&!(a0==1))&&(a25==1))&&(a28==1)))))&&(a20==1))&&!(a11==1)))&&(a14==8))){ + a19 = 3; + a24 = 0; + a14 = 9; + a11 = 1; + a29 = 7; + a25 = 0; + return 23; + } else if((!(a11==1)&&((a14==9)&&((a28==1)&&((a22==1)&&((a25==1)&&(!(a20==1)&&(!(a0==1)&&(((((input==6)&&((a29==5)||(a29==6)))&&(a24==1))&&(a19==2))&&(a7==1)))))))))){ + a14 = 8; + a25 = 0; + a24 = 0; + a19 = 5; + a7 = 0; + a29 = 5; + return -1; + } else if((((((a25==1)&&((a22==1)&&(((a28==1)&&((((a14==8)&&((input==4)&&(a29==7)))&&(a7==1))&&(a11==1)))&&(a19==2))))&&(a20==1))&&!(a0==1))&&(a24==1))){ + a11 = 0; + a0 = 1; + a20 = 0; + a19 = 1; + a24 = 0; + a7 = 0; + a25 = 0; + return -1; + } else if(((a22==1)&&(!(a24==1)&&(((((a0==1)&&(((a14==9)&&(((((a29==5)&&(a19==3))||(((a29==8)&&(a19==2))||((a19==2)&&(a29==9))))&&(input==4))&&(a28==1)))&&(a25==1)))&&!(a20==1))&&(a11==1))&&(a7==1))))){ + a29 = 5; + a14 = 8; + a20 = 1; + a19 = 1; + a24 = 1; + return -1; + } else if(((!(a25==1)&&((a19==5)&&(!(a20==1)&&((((a14==9)&&((a24==1)&&((!(a7==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==4)))&&(a22==1))))&&(a28==1))&&!(a11==1)))))&&!(a0==1))){ + a29 = 9; + a25 = 1; + a11 = 1; + a7 = 1; + a19 = 1; + a20 = 1; + return -1; + } else if(((a28==1)&&(((!(a20==1)&&((!(a24==1)&&(!(a0==1)&&(((a22==1)&&((input==6)&&(((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))))&&(a7==1))))&&(a14==8)))&&(a25==1))&&!(a11==1)))){ + a14 = 9; + a19 = 4; + a25 = 0; + a24 = 1; + a29 = 9; + return 24; + } else if(((a0==1)&&((((a20==1)&&((a29==5)&&(((a19==2)&&(!(a24==1)&&(((a22==1)&&((a28==1)&&(input==5)))&&!(a7==1))))&&(a14==8))))&&(a25==1))&&!(a11==1)))){ + a11 = 1; + a24 = 1; + a19 = 1; + a7 = 1; + return -1; + } else if(((a14==9)&&((a11==1)&&((a22==1)&&((!(a0==1)&&(!(a25==1)&&((!(a7==1)&&((a19==2)&&((((a29==6)||(a29==7))&&(input==1))&&!(a20==1))))&&!(a24==1))))&&(a28==1)))))){ + a29 = 7; + a0 = 1; + a24 = 1; + a25 = 1; + a11 = 0; + return -1; + } else if((((a14==8)&&(!(a11==1)&&((((a7==1)&&((a25==1)&&((a22==1)&&((((((a29==6)||(a29==7))||(a29==8))&&(input==1))&&(a20==1))&&(a24==1)))))&&(a28==1))&&(a19==1))))&&!(a0==1))){ + a29 = 5; + a0 = 1; + a11 = 1; + return -1; + } else if(((((a22==1)&&((((!(a20==1)&&((((a11==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==3)))&&!(a0==1))&&!(a25==1)))&&(a24==1))&&!(a7==1))&&(a14==9)))&&(a19==1))&&(a28==1))){ + a24 = 0; + a19 = 5; + a14 = 8; + a11 = 0; + a25 = 1; + a29 = 5; + return 23; + } else if(((a24==1)&&((a14==8)&&(((!(a20==1)&&((a28==1)&&((!(a7==1)&&((a19==2)&&(((input==3)&&((a29==5)||(a29==6)))&&(a22==1))))&&(a11==1))))&&!(a25==1))&&!(a0==1))))){ + a19 = 5; + a24 = 0; + a14 = 9; + a29 = 7; + a0 = 1; + a11 = 0; + a7 = 1; + return 23; + } else if(((a22==1)&&((((a28==1)&&((!(a25==1)&&(((a0==1)&&((a14==9)&&((a19==4)&&(((a29==5)||(a29==6))&&(input==3)))))&&!(a11==1)))&&(a24==1)))&&!(a7==1))&&!(a20==1)))){ + a24 = 0; + a25 = 1; + a14 = 8; + a20 = 1; + a29 = 7; + a0 = 0; + return 21; + } else if((((a7==1)&&(((a25==1)&&((a20==1)&&((a22==1)&&(!(a24==1)&&(!(a11==1)&&((a14==8)&&((((a19==3)&&(a29==5))||(((a19==2)&&(a29==8))||((a29==9)&&(a19==2))))&&(input==1))))))))&&(a0==1)))&&(a28==1))){ + a19 = 1; + a25 = 0; + a29 = 9; + a14 = 9; + a11 = 1; + return 23; + } else if(((!(a24==1)&&(((a7==1)&&(!(a25==1)&&((((a22==1)&&((((((a29==5)||(a29==6))||(a29==7))&&(input==6))&&(a19==1))&&(a11==1)))&&(a0==1))&&(a20==1))))&&(a28==1)))&&(a14==10))){ + a24 = 1; + a14 = 8; + a29 = 5; + a25 = 1; + return -1; + } else if(((((a7==1)&&(!(a0==1)&&((a22==1)&&((((a28==1)&&(!(a20==1)&&((((a29==8)||(a29==9))&&(input==2))&&(a14==9))))&&(a24==1))&&!(a11==1)))))&&(a25==1))&&(a19==5))){ + a11 = 1; + a29 = 5; + a20 = 1; + a7 = 0; + a24 = 0; + return -1; + } else if(((a0==1)&&((a28==1)&&((!(a25==1)&&(!(a20==1)&&(!(a11==1)&&((((a7==1)&&((((a29==5)||(a29==6))&&(input==4))&&(a22==1)))&&(a19==3))&&(a14==8)))))&&!(a24==1))))){ + a29 = 6; + return 24; + } else if(((!(a24==1)&&((((a28==1)&&(!(a11==1)&&(((((a19==5)&&((input==6)&&((a29==8)||((a29==6)||(a29==7)))))&&!(a7==1))&&!(a25==1))&&(a0==1))))&&(a14==9))&&!(a20==1)))&&(a22==1))){ + a24 = 1; + a29 = 9; + a0 = 0; + a19 = 3; + a11 = 1; + a14 = 8; + return 21; + } else if((((((a7==1)&&(((a19==3)&&(((a29==8)&&((a28==1)&&(((input==6)&&!(a20==1))&&(a22==1))))&&!(a24==1)))&&!(a25==1)))&&(a0==1))&&!(a11==1))&&(a14==8))){ + a11 = 1; + a20 = 1; + a29 = 5; + a25 = 1; + a19 = 1; + a24 = 1; + return -1; + } else if(((a7==1)&&((a14==9)&&((a20==1)&&(((((a0==1)&&(!(a11==1)&&(((a22==1)&&((a24==1)&&(input==5)))&&(a25==1))))&&(a19==3))&&(a29==9))&&(a28==1)))))){ + a14 = 8; + a29 = 8; + a24 = 0; + a20 = 0; + a7 = 0; + a0 = 0; + return 24; + } else if(((a28==1)&&((a20==1)&&(((a25==1)&&((a29==5)&&(!(a11==1)&&((a19==5)&&(((a14==9)&&(!(a0==1)&&((input==4)&&(a24==1))))&&(a22==1))))))&&!(a7==1))))){ + a14 = 8; + a29 = 9; + a19 = 4; + a24 = 0; + return -1; + } else if(((a20==1)&&(!(a24==1)&&(((a28==1)&&(!(a25==1)&&(((((!(a7==1)&&(((a29==5)||(a29==6))&&(input==4)))&&(a22==1))&&(a11==1))&&(a14==9))&&(a19==3))))&&!(a0==1))))){ + a24 = 1; + a29 = 8; + a14 = 8; + a25 = 1; + return 24; + } else if((!(a0==1)&&((!(a7==1)&&((a11==1)&&((a19==2)&&(((a28==1)&&((((a22==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==3)))&&!(a25==1))&&!(a24==1)))&&(a20==1)))))&&(a14==8)))){ + a24 = 1; + a19 = 4; + a20 = 0; + a29 = 7; + a25 = 1; + return 21; + } else if(((a11==1)&&((((a24==1)&&(((a14==10)&&((a0==1)&&((a20==1)&&(((((a29==5)||(a29==6))&&(input==6))&&!(a7==1))&&(a28==1)))))&&(a19==3)))&&(a25==1))&&(a22==1)))){ + a7 = 1; + a19 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if((((a22==1)&&(((!(a24==1)&&((a28==1)&&((((a0==1)&&(((input==1)&&(((a29==7)||(a29==8))||(a29==9)))&&(a25==1)))&&!(a7==1))&&!(a20==1))))&&!(a11==1))&&(a19==2)))&&(a14==9))){ + a25 = 0; + a29 = 6; + a24 = 1; + return -1; + } else if(((a0==1)&&(!(a11==1)&&(((((!(a20==1)&&((a22==1)&&(!(a24==1)&&((input==1)&&((((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))||((a19==3)&&(a29==5)))))))&&(a7==1))&&(a14==9))&&!(a25==1))&&(a28==1))))){ + a14 = 8; + a11 = 1; + a29 = 6; + a0 = 0; + a24 = 1; + a7 = 0; + a20 = 1; + a19 = 3; + return 24; + } else if(((a11==1)&&((a19==1)&&(((a14==8)&&((a25==1)&&((a28==1)&&((a7==1)&&((!(a0==1)&&(((input==6)&&((a29==6)||(a29==7)))&&!(a20==1)))&&(a22==1))))))&&!(a24==1))))){ + a0 = 1; + a29 = 5; + a24 = 1; + a20 = 1; + return -1; + } else if(((((a0==1)&&(((((a19==2)&&((a11==1)&&((((input==5)&&(a14==8))&&(a7==1))&&(a22==1))))&&!(a25==1))&&(a28==1))&&!(a24==1)))&&(a29==8))&&!(a20==1))){ + a19 = 1; + a0 = 0; + a7 = 0; + return 23; + } else if((((((a20==1)&&((a0==1)&&((((!(a24==1)&&((((a19==4)&&(a29==5))||(((a19==3)&&(a29==8))||((a29==9)&&(a19==3))))&&(input==5)))&&(a14==8))&&!(a7==1))&&(a28==1))))&&!(a11==1))&&(a22==1))&&(a25==1))){ + a24 = 1; + a29 = 5; + a11 = 1; + a7 = 1; + a19 = 1; + return -1; + } else if(((a20==1)&&(!(a24==1)&&((!(a7==1)&&(((((a0==1)&&(((((a19==4)&&(a29==5))||(((a19==3)&&(a29==8))||((a29==9)&&(a19==3))))&&(input==4))&&(a22==1)))&&(a14==8))&&(a28==1))&&!(a25==1)))&&(a11==1))))){ + a19 = 1; + a29 = 5; + a25 = 1; + a24 = 1; + a7 = 1; + return -1; + } else if(((a0==1)&&(!(a24==1)&&((a22==1)&&((((a28==1)&&((a20==1)&&((a7==1)&&((a14==9)&&((((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))&&(input==4))))))&&(a11==1))&&(a25==1)))))){ + a19 = 2; + a29 = 9; + a25 = 0; + a14 = 8; + a20 = 0; + a11 = 0; + return 23; + } else if(((((((a19==4)&&((((a25==1)&&((a7==1)&&(!(a0==1)&&(((a29==5)||(a29==6))&&(input==1)))))&&(a20==1))&&(a28==1)))&&(a22==1))&&(a24==1))&&(a11==1))&&(a14==9))){ + a14 = 8; + a29 = 5; + a19 = 1; + a0 = 1; + return -1; + } else if((!(a25==1)&&((a20==1)&&((((a19==4)&&((((((a14==9)&&((a28==1)&&(input==2)))&&(a0==1))&&(a24==1))&&(a11==1))&&(a7==1)))&&(a22==1))&&(a29==8))))){ + a24 = 0; + a19 = 2; + a14 = 8; + a29 = 6; + a11 = 0; + a7 = 0; + a0 = 0; + return 23; + } else if(((a22==1)&&((a28==1)&&(!(a20==1)&&((!(a7==1)&&(((a24==1)&&(!(a0==1)&&((a14==9)&&(((((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))||((a19==5)&&(a29==6)))&&(input==3)))))&&(a11==1)))&&!(a25==1)))))){ + a14 = 8; + a29 = 9; + a7 = 1; + a19 = 3; + return -1; + } else if(((a28==1)&&(((!(a7==1)&&((((a19==2)&&((a29==6)&&(!(a25==1)&&((a24==1)&&((a11==1)&&(input==4))))))&&(a22==1))&&(a14==9)))&&(a0==1))&&(a20==1)))){ + a29 = 7; + a19 = 3; + a7 = 1; + a11 = 0; + a24 = 0; + a14 = 8; + a20 = 0; + return 21; + } else if(((a28==1)&&((a14==8)&&((!(a7==1)&&((((((a19==3)&&(((input==2)&&((a29==7)||(a29==8)))&&!(a25==1)))&&(a11==1))&&(a22==1))&&!(a24==1))&&!(a20==1)))&&!(a0==1))))){ + a24 = 1; + a19 = 2; + a29 = 7; + a14 = 9; + return 21; + } else if(((a22==1)&&((((((a14==8)&&(((!(a24==1)&&((input==2)&&((((a19==1)&&(a29==8))||((a29==9)&&(a19==1)))||((a29==5)&&(a19==2)))))&&!(a25==1))&&(a28==1)))&&(a20==1))&&(a11==1))&&(a7==1))&&!(a0==1)))){ + a24 = 1; + a14 = 9; + a25 = 1; + a19 = 3; + a29 = 7; + return 21; + } else if((((((a22==1)&&(!(a7==1)&&((a19==1)&&(((a28==1)&&(((((a29==8)||(a29==9))&&(input==6))&&!(a20==1))&&(a14==9)))&&(a11==1)))))&&(a24==1))&&(a0==1))&&(a25==1))){ + a11 = 0; + a7 = 1; + a19 = 3; + a25 = 0; + a29 = 8; + return 24; + } else if((((a25==1)&&(((((a19==5)&&(((a11==1)&&((a14==9)&&(((input==3)&&(a28==1))&&(a24==1))))&&(a7==1)))&&(a20==1))&&(a22==1))&&(a0==1)))&&(a29==8))){ + a29 = 5; + a19 = 1; + a14 = 8; + return -1; + } else if(((!(a11==1)&&((!(a7==1)&&((a19==3)&&(((a14==8)&&(((((input==3)&&((a29==8)||((a29==6)||(a29==7))))&&(a22==1))&&!(a0==1))&&(a20==1)))&&(a28==1))))&&!(a24==1)))&&(a25==1))){ + a20 = 0; + a11 = 1; + a25 = 0; + a19 = 4; + a29 = 9; + return -1; + } else if(((((a14==9)&&((a25==1)&&(((a24==1)&&(((a7==1)&&(((a11==1)&&((input==4)&&((a29==7)||(a29==8))))&&(a19==4)))&&(a0==1)))&&!(a20==1))))&&(a22==1))&&(a28==1))){ + a14 = 8; + a19 = 1; + a29 = 9; + a20 = 1; + a0 = 0; + return 23; + } else if((((a28==1)&&((a22==1)&&((((!(a7==1)&&(((a19==1)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==2))&&!(a25==1)))&&(a14==8)))&&(a20==1))&&(a11==1))&&(a0==1))))&&(a24==1))){ + a20 = 0; + a29 = 8; + a19 = 3; + a7 = 1; + return 21; + } else if(((a24==1)&&((a0==1)&&(((a11==1)&&(!(a20==1)&&((a14==8)&&((a7==1)&&(((a29==6)&&((a25==1)&&((a19==2)&&(input==2))))&&(a22==1))))))&&(a28==1))))){ + a20 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((((a28==1)&&((a14==8)&&(((a11==1)&&((a7==1)&&((a22==1)&&(!(a24==1)&&((!(a20==1)&&(((a29==5)||(a29==6))&&(input==2)))&&(a19==1))))))&&(a0==1))))&&(a25==1))){ + a20 = 1; + a7 = 0; + a25 = 0; + a0 = 0; + a29 = 7; + a19 = 4; + return 21; + } else if((((a7==1)&&(((!(a11==1)&&((a14==9)&&(((((!(a25==1)&&(input==6))&&!(a24==1))&&(a22==1))&&(a0==1))&&(a28==1))))&&!(a20==1))&&(a19==4)))&&(a29==9))){ + a14 = 8; + a19 = 1; + a0 = 0; + a24 = 1; + a11 = 1; + return 21; + } else if(((!(a20==1)&&(((a28==1)&&((a25==1)&&((a14==8)&&((((((input==6)&&((a29==5)||(a29==6)))&&(a0==1))&&(a19==3))&&!(a11==1))&&!(a24==1)))))&&!(a7==1)))&&(a22==1))){ + a11 = 1; + a24 = 1; + a7 = 1; + a19 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if(((((a22==1)&&((!(a24==1)&&((a19==2)&&(((!(a25==1)&&(!(a7==1)&&((input==4)&&((a29==6)||(a29==7)))))&&!(a11==1))&&!(a0==1))))&&(a14==8)))&&!(a20==1))&&(a28==1))){ + a29 = 5; + a19 = 5; + a25 = 1; + a11 = 1; + a20 = 1; + a24 = 1; + return 23; + } else if((((((a28==1)&&((a19==2)&&((a0==1)&&(((((((a29==6)||(a29==7))&&(input==4))&&!(a20==1))&&!(a25==1))&&(a22==1))&&!(a24==1)))))&&!(a11==1))&&(a7==1))&&(a14==8))){ + a19 = 1; + a24 = 1; + a29 = 5; + a25 = 1; + a11 = 1; + a20 = 1; + return -1; + } else if((!(a20==1)&&((((((a28==1)&&((a19==3)&&(((!(a25==1)&&((input==5)&&(((a29==7)||(a29==8))||(a29==9))))&&!(a7==1))&&(a14==8))))&&!(a0==1))&&(a22==1))&&!(a24==1))&&!(a11==1)))){ + a0 = 1; + a29 = 7; + a14 = 9; + a19 = 1; + a20 = 1; + a11 = 1; + return 24; + } else if((((!(a0==1)&&((a28==1)&&(((((a24==1)&&(!(a20==1)&&((a19==5)&&((input==2)&&!(a25==1)))))&&(a14==8))&&!(a7==1))&&(a29==6))))&&(a11==1))&&(a22==1))){ + a25 = 1; + a0 = 1; + a7 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((((a14==8)&&(!(a20==1)&&(((!(a0==1)&&((a11==1)&&((a7==1)&&(((((a29==5)&&(a19==4))||(((a29==8)&&(a19==3))||((a19==3)&&(a29==9))))&&(input==6))&&!(a25==1)))))&&!(a24==1))&&(a22==1))))&&(a28==1))){ + a20 = 1; + a24 = 1; + a0 = 1; + a25 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if((((a19==2)&&(((a20==1)&&((((((!(a7==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==6)))&&(a28==1))&&(a25==1))&&(a0==1))&&(a11==1))&&(a14==9)))&&(a24==1)))&&(a22==1))){ + a14 = 8; + a29 = 7; + a7 = 1; + a0 = 0; + return 23; + } else if(((a0==1)&&(((((a28==1)&&((a29==5)&&((a22==1)&&((a19==2)&&((!(a11==1)&&((a14==8)&&(input==4)))&&(a20==1))))))&&!(a7==1))&&!(a24==1))&&(a25==1)))){ + a24 = 1; + a0 = 0; + a11 = 1; + a29 = 8; + a19 = 1; + a7 = 1; + a25 = 0; + return 21; + } else if(((((a25==1)&&(((a28==1)&&((!(a20==1)&&(((((input==4)&&((a29==5)||(a29==6)))&&(a11==1))&&(a22==1))&&!(a7==1)))&&(a19==5)))&&(a24==1)))&&!(a0==1))&&(a14==9))){ + a0 = 1; + a25 = 0; + a11 = 0; + a29 = 8; + a20 = 1; + a7 = 1; + a19 = 1; + return 23; + } else if((((a28==1)&&((!(a0==1)&&((((((((!(a20==1)&&(a7==1))&&(a25==1))&&(a29==5))&&(a19==1))||((((a29==8)&&(!(a25==1)&&(!(a7==1)&&(a20==1))))&&(a19==5))||(((a29==9)&&((!(a7==1)&&(a20==1))&&!(a25==1)))&&(a19==5))))&&(input==4))&&(a22==1))&&(a24==1)))&&!(a11==1)))&&(a14==9))){ + a0 = 1; + a25 = 1; + a14 = 8; + a11 = 1; + a20 = 1; + a7 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((((a0==1)&&((!(a7==1)&&(!(a11==1)&&(!(a20==1)&&(((a14==8)&&(!(a25==1)&&((((a29==5)&&(a19==4))||(((a19==3)&&(a29==8))||((a29==9)&&(a19==3))))&&(input==4))))&&(a22==1)))))&&(a28==1)))&&(a24==1))){ + a29 = 7; + a19 = 2; + a14 = 9; + a11 = 1; + return 23; + } else if(((!(a25==1)&&(((a0==1)&&((((((a22==1)&&((a14==8)&&((((a29==7)||(a29==8))||(a29==9))&&(input==6))))&&(a19==3))&&!(a7==1))&&!(a20==1))&&(a28==1)))&&(a24==1)))&&(a11==1))){ + a19 = 4; + a11 = 0; + a29 = 6; + a7 = 1; + a20 = 1; + a24 = 0; + return 21; + } else if((((a14==8)&&((((!(a24==1)&&((!(a7==1)&&(!(a11==1)&&((a19==3)&&((input==1)&&((a29==7)||(a29==8))))))&&(a20==1)))&&(a22==1))&&!(a0==1))&&!(a25==1)))&&(a28==1))){ + a29 = 5; + a24 = 1; + a11 = 1; + a7 = 1; + return 24; + } else if((!(a20==1)&&((a11==1)&&((a25==1)&&((((a14==9)&&((a24==1)&&(((a0==1)&&(((input==5)&&!(a7==1))&&(a19==3)))&&(a29==6))))&&(a22==1))&&(a28==1)))))){ + a7 = 1; + a25 = 0; + a19 = 1; + a29 = 5; + a14 = 10; + a20 = 1; + return 21; + } else if(((a29==8)&&((((a19==4)&&((a0==1)&&((a11==1)&&((a7==1)&&((a28==1)&&((a14==8)&&((a22==1)&&((input==5)&&(a24==1)))))))))&&(a25==1))&&!(a20==1)))){ + a19 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if(((a22==1)&&((a11==1)&&((a0==1)&&((((a28==1)&&(((!(a25==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==2))&&!(a7==1)))&&(a20==1))&&(a14==9)))&&(a19==3))&&(a24==1)))))){ + a29 = 5; + a25 = 1; + a14 = 8; + a7 = 1; + a19 = 1; + return -1; + } else if((((a20==1)&&(((a24==1)&&((((((a11==1)&&(!(a25==1)&&((input==5)&&((a29==7)||(a29==8)))))&&(a28==1))&&(a19==2))&&(a7==1))&&(a22==1)))&&(a0==1)))&&(a14==9))){ + a29 = 5; + a25 = 1; + a14 = 8; + a19 = 3; + a0 = 0; + a7 = 0; + a20 = 0; + return 24; + } else if((!(a25==1)&&((a7==1)&&((((((!(a11==1)&&((a29==8)&&((!(a20==1)&&(input==6))&&(a24==1))))&&(a22==1))&&(a14==8))&&!(a0==1))&&(a28==1))&&(a19==5))))){ + a0 = 1; + a19 = 1; + a20 = 1; + a29 = 5; + a11 = 1; + a25 = 1; + return -1; + } else if(((a25==1)&&(((a28==1)&&((a29==6)&&((a19==1)&&(((a22==1)&&(!(a7==1)&&((!(a24==1)&&((input==5)&&(a20==1)))&&(a14==8))))&&(a0==1)))))&&(a11==1)))){ + a0 = 0; + a29 = 8; + a7 = 1; + a20 = 0; + a19 = 3; + a24 = 1; + return 24; + } else if((((a22==1)&&((((a28==1)&&((a0==1)&&((((a11==1)&&((((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))&&(input==6)))&&(a20==1))&&(a25==1))))&&(a14==10))&&!(a7==1)))&&(a24==1))){ + a14 = 9; + a29 = 8; + a19 = 2; + a0 = 0; + return -1; + } else if(((((a19==2)&&((a0==1)&&((a22==1)&&(((a7==1)&&((((a28==1)&&((input==4)&&(((a29==6)||(a29==7))||(a29==8))))&&(a24==1))&&(a20==1)))&&(a14==8)))))&&!(a25==1))&&!(a11==1))){ + a0 = 0; + a11 = 1; + a7 = 0; + a19 = 5; + a25 = 1; + a29 = 7; + a20 = 0; + return 24; + } else if((((((a7==1)&&((a19==3)&&((a24==1)&&((((a20==1)&&((a14==10)&&((input==3)&&(((a29==5)||(a29==6))||(a29==7)))))&&(a25==1))&&(a11==1)))))&&(a0==1))&&(a28==1))&&(a22==1))){ + a29 = 8; + a19 = 1; + a20 = 0; + a24 = 0; + a11 = 0; + a0 = 0; + a14 = 8; + return 24; + } else if(((!(a0==1)&&((((((a20==1)&&((a22==1)&&((((input==4)&&(a28==1))&&!(a11==1))&&(a29==7))))&&(a24==1))&&(a19==3))&&(a7==1))&&(a25==1)))&&(a14==8))){ + a11 = 1; + a19 = 2; + a29 = 6; + return 23; + } else if(((a19==3)&&((!(a0==1)&&((a11==1)&&((((a7==1)&&((a24==1)&&((a14==9)&&(((input==1)&&(a25==1))&&(a29==6)))))&&!(a20==1))&&(a28==1))))&&(a22==1)))){ + a29 = 5; + a0 = 1; + return -1; + } else if(((a14==8)&&((a0==1)&&(!(a20==1)&&((a28==1)&&((((a24==1)&&((!(a7==1)&&((a19==5)&&((input==1)&&!(a25==1))))&&!(a11==1)))&&(a29==6))&&(a22==1))))))){ + a11 = 1; + a25 = 1; + a19 = 1; + a29 = 5; + a20 = 1; + a7 = 1; + return -1; + } else if(((a28==1)&&(((a24==1)&&(((a19==5)&&(((a14==9)&&(((a20==1)&&(((input==2)&&((a29==6)||(a29==7)))&&!(a11==1)))&&(a25==1)))&&!(a7==1)))&&!(a0==1)))&&(a22==1)))){ + a20 = 0; + a19 = 4; + a7 = 1; + a14 = 8; + a29 = 5; + a24 = 0; + a0 = 1; + a25 = 0; + return 24; + } else if((!(a24==1)&&((a7==1)&&((a19==2)&&((a25==1)&&((a11==1)&&(((a0==1)&&(((a28==1)&&((a22==1)&&(((a29==6)||(a29==7))&&(input==6))))&&(a20==1)))&&(a14==10)))))))){ + a29 = 7; + a0 = 0; + a24 = 1; + a19 = 3; + a14 = 8; + a25 = 0; + return 23; + } else if((((((a24==1)&&(!(a20==1)&&((((a14==8)&&(!(a0==1)&&((a11==1)&&(((a29==5)||(a29==6))&&(input==3)))))&&(a7==1))&&(a22==1))))&&(a28==1))&&(a19==5))&&!(a25==1))){ + a19 = 1; + a29 = 8; + return -1; + } else if(((a19==2)&&((((a22==1)&&((a7==1)&&((a24==1)&&(!(a0==1)&&((a14==8)&&(((((a29==5)||(a29==6))&&(input==3))&&(a11==1))&&(a25==1)))))))&&(a20==1))&&(a28==1)))){ + a25 = 0; + a19 = 4; + a29 = 9; + return 21; + } else if(((a14==9)&&((((((a11==1)&&((a22==1)&&(!(a20==1)&&((a24==1)&&((input==5)&&((((a29==8)&&(a19==3))||((a29==9)&&(a19==3)))||((a29==5)&&(a19==4))))))))&&!(a7==1))&&(a25==1))&&!(a0==1))&&(a28==1)))){ + a20 = 1; + a19 = 5; + a29 = 6; + a25 = 0; + return -1; + } else if((((a28==1)&&((a22==1)&&((a0==1)&&((((((a29==8)&&((a11==1)&&((a25==1)&&(input==1))))&&(a20==1))&&(a14==10))&&(a24==1))&&(a19==3)))))&&(a7==1))){ + a29 = 7; + a19 = 2; + a24 = 0; + a0 = 0; + a14 = 8; + return 21; + } else if((((((!(a11==1)&&(((((a0==1)&&(((input==3)&&((a29==8)||(a29==9)))&&(a19==1)))&&!(a25==1))&&(a14==8))&&(a28==1)))&&(a24==1))&&(a7==1))&&(a22==1))&&(a20==1))){ + a11 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if((((a19==1)&&((a11==1)&&((a28==1)&&((((((a22==1)&&((a14==9)&&((input==4)&&(((a29==5)||(a29==6))||(a29==7)))))&&!(a25==1))&&(a7==1))&&(a20==1))&&!(a0==1)))))&&(a24==1))){ + a25 = 1; + a14 = 8; + a19 = 4; + a29 = 9; + a7 = 0; + return 21; + } else if(((a24==1)&&((a28==1)&&(((a19==4)&&(!(a20==1)&&(((!(a7==1)&&(!(a0==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==2))&&!(a11==1))))&&(a14==8))&&(a22==1))))&&(a25==1))))){ + a7 = 1; + a11 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if((((a22==1)&&(!(a25==1)&&((((((!(a0==1)&&((input==1)&&(((a19==2)&&(a29==6))||(((a29==9)&&(a19==1))||((a19==2)&&(a29==5))))))&&(a28==1))&&!(a7==1))&&(a11==1))&&(a14==9))&&!(a24==1))))&&(a20==1))){ + a19 = 4; + a14 = 8; + a24 = 1; + a20 = 0; + a29 = 6; + return 24; + } else if(((((a0==1)&&((((!(a7==1)&&((a14==9)&&(((((a29==8)||((a29==6)||(a29==7)))&&(input==3))&&(a22==1))&&!(a24==1))))&&!(a20==1))&&(a28==1))&&!(a25==1)))&&(a19==4))&&(a11==1))){ + a24 = 1; + a11 = 0; + a7 = 1; + a29 = 7; + return 23; + } else if((((!(a0==1)&&(((a28==1)&&(((((((input==2)&&(a20==1))&&(a19==4))&&!(a7==1))&&(a14==9))&&(a29==5))&&(a25==1)))&&!(a24==1)))&&(a22==1))&&!(a11==1))){ + a0 = 1; + a29 = 6; + a7 = 1; + a20 = 0; + return -1; + } else if(((((a22==1)&&(((a0==1)&&((a24==1)&&((((a14==9)&&(((input==2)&&((a29==8)||(a29==9)))&&(a28==1)))&&!(a20==1))&&(a19==3))))&&(a7==1)))&&!(a25==1))&&(a11==1))){ + a11 = 0; + a7 = 0; + a29 = 9; + a0 = 0; + a24 = 0; + return 23; + } else if(((a11==1)&&(!(a0==1)&&(((((a19==1)&&(((!(a20==1)&&(!(a7==1)&&((input==4)&&((a29==7)||(a29==8)))))&&(a14==8))&&(a24==1)))&&(a28==1))&&(a22==1))&&!(a25==1))))){ + a19 = 4; + a11 = 0; + a29 = 5; + a7 = 1; + a24 = 0; + a0 = 1; + return 23; + } else if(((((a22==1)&&((((a7==1)&&(((!(a25==1)&&((((a29==6)&&(a19==5))||(((a29==9)&&(a19==4))||((a29==5)&&(a19==5))))&&(input==1)))&&!(a24==1))&&(a0==1)))&&(a28==1))&&(a14==8)))&&(a11==1))&&(a20==1))){ + a0 = 0; + a19 = 1; + a29 = 6; + a7 = 0; + a24 = 1; + return 24; + } else if((((((a29==7)&&(!(a7==1)&&((((a28==1)&&((((input==3)&&(a11==1))&&(a14==9))&&(a19==3)))&&(a20==1))&&(a25==1))))&&(a22==1))&&(a0==1))&&(a24==1))){ + a14 = 8; + a29 = 5; + a19 = 1; + a7 = 1; + return -1; + } else if((((!(a0==1)&&((((((!(a7==1)&&(((input==2)&&((a29==5)||(a29==6)))&&!(a25==1)))&&(a20==1))&&(a28==1))&&(a14==9))&&!(a24==1))&&(a19==5)))&&!(a11==1))&&(a22==1))){ + a29 = 7; + a20 = 0; + a7 = 1; + a0 = 1; + a19 = 3; + return -1; + } else if((!(a0==1)&&(((a22==1)&&(!(a20==1)&&(((a28==1)&&((a14==9)&&((!(a7==1)&&(((input==4)&&((a29==7)||((a29==5)||(a29==6))))&&!(a11==1)))&&(a19==2))))&&!(a25==1))))&&(a24==1)))){ + a19 = 1; + a25 = 1; + a0 = 1; + a29 = 5; + a11 = 1; + a14 = 8; + a20 = 1; + a7 = 1; + return -1; + } else if(((a22==1)&&(((((!(a20==1)&&((a14==8)&&((a11==1)&&((a29==6)&&(((input==1)&&!(a7==1))&&(a28==1))))))&&(a19==5))&&!(a0==1))&&(a24==1))&&(a25==1)))){ + a29 = 5; + a19 = 1; + a20 = 1; + a0 = 1; + a7 = 1; + return -1; + } else if(((a14==8)&&((a28==1)&&((a19==1)&&((a25==1)&&((!(a24==1)&&((a11==1)&&((a0==1)&&((((((a29==7)||(a29==8))||(a29==9))&&(input==3))&&!(a7==1))&&!(a20==1)))))&&(a22==1))))))){ + a25 = 0; + a29 = 8; + a0 = 0; + a20 = 1; + a24 = 1; + return 23; + } else if(((a25==1)&&((a24==1)&&((((a14==9)&&(((a7==1)&&((((a22==1)&&((input==1)&&(((a29==6)||(a29==7))||(a29==8))))&&(a19==5))&&(a20==1)))&&(a0==1)))&&!(a11==1))&&(a28==1))))){ + a0 = 0; + a20 = 0; + a14 = 8; + a29 = 5; + a7 = 0; + a11 = 1; + a19 = 4; + a25 = 0; + return -1; + } else if(((a29==7)&&((a11==1)&&(((!(a7==1)&&((((a24==1)&&((a20==1)&&((a14==8)&&((input==2)&&(a0==1)))))&&(a28==1))&&(a22==1)))&&(a19==3))&&(a25==1))))){ + a7 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a0==1)&&((((a14==8)&&((a20==1)&&((a22==1)&&((((a11==1)&&((((a19==3)&&(a29==5))||(((a19==2)&&(a29==8))||((a19==2)&&(a29==9))))&&(input==6)))&&!(a24==1))&&(a7==1)))))&&(a25==1))&&(a28==1)))){ + a29 = 8; + a19 = 2; + a20 = 0; + a11 = 0; + a25 = 0; + return 21; + } else if(((a22==1)&&(((a7==1)&&((!(a0==1)&&(((a14==8)&&(!(a20==1)&&(!(a25==1)&&((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))&&(input==6)))))&&(a11==1)))&&(a24==1)))&&(a28==1)))){ + a11 = 0; + a14 = 9; + a24 = 0; + a29 = 9; + a0 = 1; + a19 = 3; + a25 = 1; + return 23; + } else if((!(a11==1)&&(((a0==1)&&((a20==1)&&((a25==1)&&(((!(a7==1)&&(((a22==1)&&((input==5)&&!(a24==1)))&&(a29==7)))&&(a19==2))&&(a14==9)))))&&(a28==1)))){ + a24 = 1; + a11 = 1; + a19 = 1; + a29 = 5; + a7 = 1; + a14 = 8; + return -1; + } else if(((a29==8)&&((((a28==1)&&((((a14==8)&&((!(a24==1)&&(((input==2)&&(a19==1))&&(a22==1)))&&(a25==1)))&&!(a11==1))&&!(a0==1)))&&(a7==1))&&!(a20==1)))){ + a11 = 1; + a7 = 0; + a19 = 5; + a20 = 1; + a29 = 7; + a24 = 1; + return 23; + } else if(((!(a0==1)&&((((a28==1)&&((a19==5)&&((a24==1)&&((a14==9)&&((a7==1)&&(((input==4)&&(a29==9))&&!(a25==1)))))))&&!(a11==1))&&(a20==1)))&&(a22==1))){ + a25 = 1; + a29 = 6; + a20 = 0; + a0 = 1; + a19 = 2; + return 24; + } else if((((a20==1)&&((a24==1)&&((((!(a11==1)&&((a25==1)&&((((input==5)&&((a29==8)||(a29==9)))&&(a0==1))&&(a14==9))))&&(a28==1))&&(a22==1))&&(a19==4))))&&(a7==1))){ + a29 = 5; + a19 = 2; + a25 = 0; + a24 = 0; + return 21; + } else if((!(a0==1)&&(!(a20==1)&&((a19==4)&&((a24==1)&&((a14==8)&&(((((a22==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==3))&&!(a25==1)))&&(a7==1))&&(a11==1))&&(a28==1)))))))){ + a29 = 6; + a19 = 5; + return 21; + } else if((((a25==1)&&(!(a7==1)&&((a24==1)&&(((a28==1)&&((((a22==1)&&((input==5)&&(((a29==6)&&(a19==4))||(((a19==3)&&(a29==9))||((a29==5)&&(a19==4))))))&&!(a0==1))&&!(a11==1)))&&(a14==9)))))&&!(a20==1))){ + a19 = 4; + a0 = 1; + a14 = 8; + a25 = 0; + a24 = 0; + a29 = 5; + a7 = 1; + return 24; + } else if(((((a19==4)&&(((a20==1)&&(((a14==8)&&((((a22==1)&&((input==5)&&!(a25==1)))&&(a28==1))&&!(a0==1)))&&(a11==1)))&&(a7==1)))&&(a29==9))&&(a24==1))){ + a0 = 1; + a11 = 0; + a29 = 7; + a19 = 1; + a14 = 9; + a24 = 0; + return 21; + } else if(((a11==1)&&((a14==9)&&(((!(a25==1)&&((((a22==1)&&((a28==1)&&((((a29==8)||(a29==9))&&(input==1))&&(a20==1))))&&!(a0==1))&&!(a24==1)))&&(a19==3))&&(a7==1))))){ + a25 = 1; + a20 = 0; + a0 = 1; + a11 = 0; + a29 = 9; + a7 = 0; + a19 = 5; + return 23; + } else if(((((((((((a29==5)&&((a22==1)&&(!(a24==1)&&(input==5))))&&!(a11==1))&&(a7==1))&&(a19==4))&&!(a25==1))&&(a28==1))&&(a20==1))&&(a14==9))&&!(a0==1))){ + a11 = 1; + a25 = 1; + a19 = 1; + a14 = 8; + a0 = 1; + a24 = 1; + return -1; + } else if(((((a0==1)&&((a11==1)&&(((a14==8)&&((a25==1)&&(((a28==1)&&((((a19==3)&&(a29==6))||(((a19==2)&&(a29==9))||((a19==3)&&(a29==5))))&&(input==5)))&&!(a20==1))))&&(a22==1))))&&!(a7==1))&&(a24==1))){ + a11 = 0; + a19 = 1; + a7 = 1; + a29 = 7; + return 23; + } else if((!(a20==1)&&((a7==1)&&(((((((((input==6)&&((((a29==8)&&(a19==2))||((a19==2)&&(a29==9)))||((a29==5)&&(a19==3))))&&(a28==1))&&(a14==9))&&(a25==1))&&(a11==1))&&!(a0==1))&&!(a24==1))&&(a22==1))))){ + a25 = 0; + a20 = 1; + a7 = 0; + a0 = 1; + a19 = 5; + a29 = 9; + return 24; + } else if(((a24==1)&&((a25==1)&&(!(a0==1)&&((a7==1)&&((a14==9)&&((((a22==1)&&((a19==1)&&((a28==1)&&((input==6)&&((a29==9)||((a29==7)||(a29==8)))))))&&(a11==1))&&!(a20==1)))))))){ + a11 = 0; + a19 = 3; + a29 = 5; + a14 = 8; + a24 = 0; + a25 = 0; + a20 = 1; + return -1; + } else if((((((a19==1)&&((((a14==8)&&(((a22==1)&&((a29==9)&&((a28==1)&&(input==4))))&&(a24==1)))&&!(a0==1))&&!(a11==1)))&&(a7==1))&&(a25==1))&&!(a20==1))){ + a19 = 5; + a29 = 8; + a11 = 1; + a24 = 0; + return -1; + } else if((((a22==1)&&(!(a11==1)&&(((a19==3)&&(((((a24==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==6))&&(a7==1)))&&(a14==9))&&(a25==1))&&(a28==1)))&&!(a0==1))))&&!(a20==1))){ + a19 = 1; + a11 = 1; + a14 = 8; + a0 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if((((((a20==1)&&(((!(a0==1)&&((((a14==8)&&((input==2)&&((a29==8)||(a29==9))))&&(a11==1))&&!(a24==1)))&&(a25==1))&&(a28==1)))&&(a22==1))&&(a19==2))&&(a7==1))){ + a19 = 5; + a24 = 1; + a0 = 1; + a7 = 0; + a20 = 0; + a29 = 8; + a14 = 9; + return 21; + } else if(((a25==1)&&((((((a28==1)&&(((a22==1)&&((a14==9)&&((((a19==4)&&(a29==6))||(((a19==3)&&(a29==9))||((a29==5)&&(a19==4))))&&(input==4))))&&!(a11==1)))&&(a0==1))&&!(a20==1))&&(a7==1))&&!(a24==1)))){ + a14 = 8; + a19 = 1; + a29 = 5; + a20 = 1; + a24 = 1; + a11 = 1; + return -1; + } else if(((a25==1)&&((!(a20==1)&&(((a11==1)&&((a28==1)&&((a22==1)&&(((a24==1)&&(((input==5)&&((a29==5)||(a29==6)))&&!(a7==1)))&&(a14==9)))))&&!(a0==1)))&&(a19==5)))){ + a20 = 1; + a29 = 6; + return -1; + } else if((((!(a11==1)&&((!(a20==1)&&(((a0==1)&&(((a22==1)&&((input==3)&&((((a19==3)&&(a29==8))||((a29==9)&&(a19==3)))||((a29==5)&&(a19==4)))))&&(a14==9)))&&(a7==1)))&&!(a24==1)))&&(a28==1))&&!(a25==1))){ + a19 = 2; + a29 = 7; + a24 = 1; + a11 = 1; + a20 = 1; + a25 = 1; + return 24; + } else if((((!(a0==1)&&((((((a22==1)&&(!(a7==1)&&((input==6)&&((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))||((a29==6)&&(a19==4))))))&&(a20==1))&&(a24==1))&&(a11==1))&&(a28==1)))&&!(a25==1))&&(a14==8))){ + a24 = 0; + a11 = 0; + a29 = 9; + a25 = 1; + a14 = 9; + a19 = 3; + a0 = 1; + return 24; + } else if((!(a0==1)&&(((a22==1)&&(((a7==1)&&(((((!(a25==1)&&((input==6)&&((a29==7)||((a29==5)||(a29==6)))))&&!(a20==1))&&(a28==1))&&!(a11==1))&&(a14==8)))&&(a24==1)))&&(a19==1)))){ + a20 = 1; + a11 = 1; + a29 = 5; + a0 = 1; + a25 = 1; + return -1; + } else if((!(a0==1)&&(!(a7==1)&&((a24==1)&&((((a14==9)&&((((a19==2)&&(!(a20==1)&&((input==2)&&((a29==8)||(a29==9)))))&&!(a11==1))&&!(a25==1)))&&(a22==1))&&(a28==1)))))){ + a24 = 0; + a29 = 9; + a14 = 8; + a7 = 1; + a0 = 1; + return 23; + } else if((!(a7==1)&&((a20==1)&&((!(a0==1)&&((((a22==1)&&(!(a11==1)&&((((((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))||((a29==6)&&(a19==2)))&&(input==5))&&!(a25==1))))&&(a14==9))&&(a24==1)))&&(a28==1))))){ + a25 = 1; + a14 = 8; + a7 = 1; + a29 = 5; + a24 = 0; + a19 = 4; + return 24; + } else if((((a22==1)&&(((a19==1)&&((!(a24==1)&&((a14==9)&&(((a0==1)&&((((a29==7)||(a29==8))&&(input==5))&&(a7==1)))&&(a11==1))))&&(a28==1)))&&!(a20==1)))&&(a25==1))){ + a29 = 9; + a25 = 0; + a14 = 8; + a11 = 0; + a19 = 3; + return 21; + } else if(((a24==1)&&((a19==1)&&((a7==1)&&(!(a25==1)&&(((a28==1)&&((((a11==1)&&(((a0==1)&&(input==6))&&(a14==10)))&&(a29==5))&&!(a20==1)))&&(a22==1))))))){ + a19 = 5; + a7 = 0; + a11 = 0; + a24 = 0; + a14 = 8; + a29 = 7; + return 23; + } else if(((((!(a20==1)&&((a28==1)&&((!(a24==1)&&((a0==1)&&((a7==1)&&((((a29==6)||(a29==7))&&(input==4))&&(a19==4)))))&&(a22==1))))&&(a25==1))&&(a11==1))&&(a14==9))){ + a25 = 0; + a29 = 5; + a14 = 8; + a20 = 1; + a24 = 1; + a7 = 0; + a0 = 0; + return -1; + } else if(((a20==1)&&((!(a11==1)&&((a28==1)&&((a14==8)&&(!(a7==1)&&(((a22==1)&&(!(a0==1)&&((input==2)&&((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))||((a29==6)&&(a19==3))))))&&(a25==1))))))&&(a24==1)))){ + a19 = 2; + a29 = 9; + a20 = 0; + a7 = 1; + a11 = 1; + a25 = 0; + return 24; + } else if(((a11==1)&&(((a14==8)&&((a24==1)&&((a7==1)&&((a28==1)&&((a22==1)&&((!(a20==1)&&((input==4)&&(((a29==6)&&(a19==4))||(((a29==9)&&(a19==3))||((a19==4)&&(a29==5))))))&&!(a25==1)))))))&&(a0==1)))){ + a29 = 7; + a11 = 0; + a19 = 3; + a25 = 1; + a20 = 1; + return 24; + } else if(((a29==5)&&(!(a7==1)&&(!(a25==1)&&((a14==9)&&((a22==1)&&((((a20==1)&&((((input==6)&&(a11==1))&&(a28==1))&&!(a0==1)))&&(a24==1))&&(a19==3)))))))){ + a14 = 8; + a0 = 1; + a25 = 1; + a7 = 1; + a19 = 1; + return -1; + } else if((((!(a25==1)&&((a28==1)&&((a22==1)&&(!(a11==1)&&((((a29==8)&&((a24==1)&&((input==6)&&(a0==1))))&&!(a20==1))&&(a14==8))))))&&!(a7==1))&&(a19==2))){ + a19 = 5; + a20 = 1; + a11 = 1; + a7 = 1; + a29 = 6; + a0 = 0; + return 23; + } else if((((a28==1)&&(((a22==1)&&((!(a0==1)&&((a7==1)&&(!(a25==1)&&((!(a11==1)&&((input==4)&&((a29==5)||(a29==6))))&&!(a24==1)))))&&(a20==1)))&&(a14==9)))&&(a19==5))){ + a25 = 1; + a0 = 1; + a24 = 1; + a20 = 0; + a11 = 1; + a29 = 6; + a19 = 1; + return -1; + } else if(((!(a24==1)&&((a22==1)&&(((a0==1)&&((a11==1)&&(!(a7==1)&&(((a25==1)&&((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))&&(input==2)))&&(a14==9)))))&&(a28==1))))&&!(a20==1))){ + a19 = 5; + a0 = 0; + a29 = 7; + a14 = 8; + a25 = 0; + a20 = 1; + a7 = 1; + return 21; + } else if((!(a20==1)&&((!(a11==1)&&(((((a29==7)&&((a7==1)&&((((a14==9)&&(input==6))&&!(a25==1))&&!(a24==1))))&&(a0==1))&&(a19==3))&&(a28==1)))&&(a22==1)))){ + a7 = 0; + a19 = 2; + a20 = 1; + return 23; + } else if((((a22==1)&&((a0==1)&&((a7==1)&&((((a19==5)&&((a28==1)&&(!(a11==1)&&((a14==8)&&((input==3)&&((a29==5)||(a29==6)))))))&&!(a20==1))&&(a24==1)))))&&(a25==1))){ + a19 = 4; + a11 = 1; + a14 = 9; + a20 = 1; + a29 = 6; + return 24; + } else if(((a0==1)&&(((((a28==1)&&((((((a24==1)&&((input==5)&&(a14==9)))&&!(a20==1))&&(a19==1))&&(a22==1))&&!(a7==1)))&&(a11==1))&&(a29==7))&&(a25==1)))){ + a20 = 1; + a14 = 8; + a29 = 5; + a7 = 1; + return -1; + } else if(((a28==1)&&((((a19==1)&&(((a29==6)&&(((((a22==1)&&((input==1)&&(a7==1)))&&(a11==1))&&!(a0==1))&&(a14==8)))&&!(a24==1)))&&!(a25==1))&&!(a20==1)))){ + a29 = 7; + a14 = 9; + a19 = 3; + a24 = 1; + return 23; + } else if(((((((((a14==9)&&(((((input==6)&&(((a29==5)||(a29==6))||(a29==7)))&&(a11==1))&&(a0==1))&&(a24==1)))&&(a28==1))&&(a20==1))&&(a22==1))&&!(a7==1))&&(a19==1))&&!(a25==1))){ + a0 = 0; + a11 = 0; + a29 = 6; + a14 = 8; + a19 = 4; + a20 = 0; + a7 = 1; + return -1; + } else if(((a19==4)&&((a14==9)&&((a25==1)&&((a22==1)&&((((a24==1)&&(((a28==1)&&((a0==1)&&(((a29==6)||(a29==7))&&(input==4))))&&(a7==1)))&&!(a11==1))&&(a20==1))))))){ + a29 = 5; + a20 = 0; + a7 = 0; + a19 = 2; + a11 = 1; + return 21; + } else if((!(a20==1)&&(((a24==1)&&((a14==8)&&(((a22==1)&&((a11==1)&&((a19==1)&&(((a28==1)&&(((a29==7)||(a29==8))&&(input==6)))&&!(a0==1)))))&&!(a25==1))))&&!(a7==1)))){ + a25 = 1; + a7 = 1; + a19 = 5; + a29 = 5; + a20 = 1; + return -1; + } else if(((a28==1)&&(((a14==8)&&(((a7==1)&&((a11==1)&&((a24==1)&&((a19==1)&&(((a20==1)&&((input==3)&&!(a25==1)))&&(a29==6))))))&&(a22==1)))&&!(a0==1)))){ + a29 = 5; + a0 = 1; + a25 = 1; + return -1; + } else if((!(a7==1)&&(((((((a22==1)&&((a0==1)&&(!(a20==1)&&((((a19==3)&&(a29==5))||(((a29==8)&&(a19==2))||((a19==2)&&(a29==9))))&&(input==6)))))&&(a25==1))&&(a11==1))&&!(a24==1))&&(a28==1))&&(a14==9)))){ + a20 = 1; + a24 = 1; + a29 = 6; + a19 = 2; + a11 = 0; + return 21; + } else if(((a19==3)&&(((((a29==5)&&((a14==8)&&((((a28==1)&&((a22==1)&&((input==5)&&!(a7==1))))&&!(a24==1))&&!(a0==1))))&&!(a11==1))&&(a25==1))&&!(a20==1)))){ + a7 = 1; + a19 = 1; + a0 = 1; + a24 = 1; + a20 = 1; + a11 = 1; + return -1; + } else if(((a14==8)&&((a0==1)&&(!(a24==1)&&((a25==1)&&(!(a20==1)&&((a28==1)&&(((((a7==1)&&(((a29==7)||(a29==8))&&(input==6)))&&(a22==1))&&(a19==1))&&!(a11==1))))))))){ + a24 = 1; + a29 = 8; + a20 = 1; + a19 = 4; + a14 = 9; + return 24; + } else if(((a0==1)&&(!(a24==1)&&(!(a7==1)&&((a25==1)&&(((a19==2)&&((((!(a20==1)&&((a14==8)&&(input==6)))&&(a22==1))&&!(a11==1))&&(a28==1)))&&(a29==6))))))){ + a7 = 1; + a29 = 9; + a25 = 0; + return -1; + } else if((((a14==9)&&(!(a0==1)&&((a24==1)&&((a28==1)&&((a20==1)&&(((a22==1)&&(!(a11==1)&&((input==6)&&(((a19==2)&&(a29==9))||((a29==5)&&(a19==3))))))&&(a25==1)))))))&&(a7==1))){ + a11 = 1; + a19 = 5; + a24 = 0; + a14 = 8; + a25 = 0; + a29 = 9; + return 21; + } else if((!(a11==1)&&((a22==1)&&(((a25==1)&&(!(a24==1)&&(!(a7==1)&&(((a20==1)&&(((a28==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==2)))&&(a0==1)))&&(a19==3)))))&&(a14==8))))){ + a7 = 1; + a19 = 1; + a29 = 5; + a24 = 1; + a11 = 1; + return -1; + } else if((!(a25==1)&&(((!(a0==1)&&(((a20==1)&&(((a19==5)&&((((input==2)&&(a24==1))&&(a29==6))&&(a22==1)))&&(a7==1)))&&(a28==1)))&&(a11==1))&&(a14==9)))){ + a11 = 0; + a19 = 1; + a0 = 1; + a29 = 5; + return 21; + } else if((((a22==1)&&(((((a0==1)&&((a28==1)&&((a7==1)&&((a25==1)&&((((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))&&(input==3))))))&&!(a24==1))&&!(a20==1))&&!(a11==1)))&&(a14==8))){ + a19 = 1; + a24 = 1; + a11 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if(((a14==9)&&((a0==1)&&((a7==1)&&((a20==1)&&((a22==1)&&((!(a25==1)&&((((((a29==6)||(a29==7))&&(input==4))&&(a28==1))&&!(a11==1))&&(a24==1)))&&(a19==3)))))))){ + a29 = 5; + a25 = 1; + a14 = 8; + a19 = 1; + a11 = 1; + return -1; + } else if(((a19==5)&&(((a20==1)&&(((((a28==1)&&(((((input==6)&&((a29==7)||(a29==8)))&&(a22==1))&&(a14==8))&&(a25==1)))&&(a0==1))&&!(a11==1))&&(a7==1)))&&!(a24==1)))){ + a11 = 1; + a19 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if(((a19==1)&&(((((a28==1)&&(((a14==9)&&(!(a7==1)&&(((a22==1)&&((input==1)&&((a29==7)||((a29==5)||(a29==6)))))&&!(a11==1))))&&(a25==1)))&&!(a0==1))&&(a24==1))&&(a20==1)))){ + a19 = 4; + a20 = 0; + a14 = 8; + a25 = 0; + a11 = 1; + a29 = 8; + return -1; + } else if(((a19==4)&&(!(a7==1)&&(!(a0==1)&&(!(a25==1)&&(((a20==1)&&((a11==1)&&((((a22==1)&&((a14==8)&&(input==5)))&&(a28==1))&&!(a24==1))))&&(a29==6))))))){ + a29 = 7; + a24 = 1; + a25 = 1; + a19 = 2; + a7 = 1; + a20 = 0; + return 21; + } else if(((!(a20==1)&&(((((((a14==8)&&(!(a7==1)&&(((input==2)&&!(a25==1))&&!(a24==1))))&&(a22==1))&&!(a11==1))&&(a19==3))&&(a29==6))&&!(a0==1)))&&(a28==1))){ + a20 = 1; + a7 = 1; + a14 = 9; + a19 = 2; + return 23; + } else if((((((a22==1)&&((a7==1)&&(((((((((a29==7)||(a29==8))||(a29==9))&&(input==6))&&(a14==8))&&(a19==1))&&!(a11==1))&&(a20==1))&&!(a25==1))))&&(a24==1))&&!(a0==1))&&(a28==1))){ + a11 = 1; + a24 = 0; + a14 = 9; + a29 = 7; + return 21; + } else if(((!(a20==1)&&((!(a7==1)&&((((a14==8)&&(!(a24==1)&&(((((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))&&(input==5))&&(a22==1))))&&!(a25==1))&&!(a0==1)))&&!(a11==1)))&&(a28==1))){ + a19 = 2; + a24 = 1; + a7 = 1; + a29 = 5; + a20 = 1; + a0 = 1; + a25 = 1; + a14 = 9; + return 24; + } else if(((a24==1)&&(!(a0==1)&&(((!(a20==1)&&((a28==1)&&((a11==1)&&((a14==9)&&((a22==1)&&((a29==8)&&((a25==1)&&(input==5))))))))&&!(a7==1))&&(a19==5))))){ + a7 = 1; + a0 = 1; + a14 = 8; + a20 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((((a7==1)&&(((a28==1)&&((a0==1)&&((((((input==5)&&(((a29==9)&&(a19==3))||((a19==4)&&(a29==5))))&&!(a20==1))&&(a14==8))&&!(a24==1))&&(a11==1))))&&(a22==1)))&&(a25==1))){ + a20 = 1; + a24 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a29==9)&&((((a25==1)&&((a22==1)&&((a11==1)&&((a19==3)&&(((a28==1)&&((a0==1)&&((a24==1)&&(input==5))))&&(a7==1))))))&&!(a20==1))&&(a14==9)))){ + a20 = 1; + a29 = 6; + return 23; + } else if((((!(a25==1)&&((a0==1)&&((a19==4)&&(!(a20==1)&&((a22==1)&&((!(a24==1)&&(((input==1)&&((a29==6)||(a29==7)))&&!(a11==1)))&&(a28==1)))))))&&(a14==9))&&!(a7==1))){ + a19 = 2; + a29 = 7; + a7 = 1; + a24 = 1; + a25 = 1; + a11 = 1; + return 24; + } else if(((a0==1)&&((((a24==1)&&((a22==1)&&((!(a7==1)&&((((((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))&&(input==5))&&!(a25==1))&&(a20==1)))&&(a28==1))))&&(a11==1))&&(a14==9)))){ + a29 = 6; + a0 = 0; + a7 = 1; + a25 = 1; + a19 = 2; + a14 = 8; + return 21; + } else if((((((a11==1)&&((a0==1)&&(((((!(a24==1)&&((input==5)&&(a20==1)))&&(a29==5))&&(a7==1))&&(a14==8))&&(a19==2))))&&(a22==1))&&(a28==1))&&(a25==1))){ + a11 = 0; + a19 = 3; + a20 = 0; + a29 = 9; + return 24; + } else if(((a14==9)&&((((!(a0==1)&&((!(a24==1)&&(((a7==1)&&(((input==5)&&(a25==1))&&!(a20==1)))&&(a11==1)))&&(a22==1)))&&(a19==5))&&(a29==7))&&(a28==1)))){ + a19 = 1; + a20 = 1; + a0 = 1; + a7 = 0; + a29 = 6; + return -1; + } else if(((a25==1)&&((!(a11==1)&&((a22==1)&&((a0==1)&&(((((a19==1)&&((((a29==7)||(a29==8))&&(input==3))&&(a20==1)))&&(a14==8))&&(a24==1))&&(a7==1)))))&&(a28==1)))){ + a19 = 3; + a29 = 6; + a20 = 0; + a25 = 0; + a24 = 0; + return 21; + } else if(((a0==1)&&((!(a7==1)&&((((((((((a29==7)||(a29==8))&&(input==2))&&(a25==1))&&(a22==1))&&!(a24==1))&&(a14==8))&&!(a11==1))&&!(a20==1))&&(a28==1)))&&(a19==5)))){ + a11 = 1; + a29 = 5; + a7 = 1; + a19 = 1; + a20 = 1; + a24 = 1; + return -1; + } else if((((a11==1)&&(((a19==3)&&(!(a7==1)&&((a24==1)&&((a0==1)&&(((a14==8)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==4))&&(a22==1)))&&(a28==1))))))&&!(a25==1)))&&!(a20==1))){ + a11 = 0; + a7 = 1; + a20 = 1; + a19 = 4; + a24 = 0; + a29 = 9; + return 21; + } else if(((!(a25==1)&&(!(a11==1)&&((a28==1)&&(!(a24==1)&&((a19==5)&&(((a29==9)&&(((!(a0==1)&&(input==6))&&(a14==8))&&(a7==1)))&&!(a20==1)))))))&&(a22==1))){ + a20 = 1; + a24 = 1; + a19 = 4; + a7 = 0; + a11 = 1; + a29 = 7; + return 23; + } else if(((a20==1)&&((((a14==8)&&((a0==1)&&(((((a22==1)&&((((a29==7)||(a29==8))&&(input==2))&&(a28==1)))&&(a7==1))&&(a19==5))&&(a25==1))))&&(a24==1))&&!(a11==1)))){ + a7 = 0; + a0 = 0; + a29 = 8; + a20 = 0; + return 24; + } else if((((a19==3)&&((((a14==8)&&(!(a0==1)&&((((!(a7==1)&&((input==6)&&(a11==1)))&&(a25==1))&&(a29==5))&&(a22==1))))&&(a24==1))&&(a28==1)))&&!(a20==1))){ + a29 = 8; + a20 = 1; + return -1; + } else if((((((a7==1)&&((!(a25==1)&&(((((((a29==6)&&(a19==2))||(((a19==1)&&(a29==9))||((a29==5)&&(a19==2))))&&(input==3))&&(a22==1))&&(a24==1))&&(a0==1)))&&!(a20==1)))&&(a14==8))&&!(a11==1))&&(a28==1))){ + a7 = 0; + a19 = 3; + a11 = 1; + a29 = 8; + a0 = 0; + return 21; + } else if(((a22==1)&&((a20==1)&&((a7==1)&&(((a14==9)&&(((((((((a25==1)&&(a29==8))&&(a19==5))||((a19==5)&&((a29==9)&&(a25==1))))||(((a29==5)&&!(a25==1))&&(a19==1)))&&(input==5))&&(a24==1))&&(a28==1))&&!(a0==1)))&&!(a11==1)))))){ + a11 = 1; + a29 = 5; + a25 = 1; + a0 = 1; + a14 = 8; + a19 = 1; + return -1; + } else if((!(a24==1)&&((((a7==1)&&((a25==1)&&((a28==1)&&((a19==5)&&((a22==1)&&(((a29==9)&&((input==2)&&!(a20==1)))&&!(a11==1)))))))&&(a14==9))&&!(a0==1)))){ + a19 = 3; + a29 = 7; + a0 = 1; + a11 = 1; + return 24; + } else if((((a14==8)&&((a0==1)&&(((a22==1)&&((a20==1)&&((!(a24==1)&&((a7==1)&&(!(a11==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==1)))))&&(a25==1))))&&(a19==1))))&&(a28==1))){ + a29 = 5; + a11 = 1; + a24 = 1; + return -1; + } else if((((a11==1)&&((!(a24==1)&&((a0==1)&&((((a7==1)&&(((((a19==5)&&(a29==6))||(((a19==4)&&(a29==9))||((a29==5)&&(a19==5))))&&(input==3))&&!(a20==1)))&&(a25==1))&&(a22==1))))&&(a28==1)))&&(a14==9))){ + a20 = 1; + a19 = 1; + a29 = 5; + a24 = 1; + a14 = 8; + return -1; + } else if(((a0==1)&&((a25==1)&&((a19==5)&&(((a28==1)&&(((a14==9)&&(!(a11==1)&&(!(a20==1)&&((a24==1)&&((input==5)&&((a29==5)||(a29==6)))))))&&(a7==1)))&&(a22==1)))))){ + a11 = 1; + a19 = 1; + a0 = 0; + a29 = 7; + a14 = 8; + return 24; + } else if(((a22==1)&&((!(a7==1)&&(!(a20==1)&&((a11==1)&&(((a14==9)&&((!(a0==1)&&(((input==3)&&!(a25==1))&&(a28==1)))&&(a19==3)))&&(a29==8)))))&&!(a24==1)))){ + a11 = 0; + a0 = 1; + a7 = 1; + a29 = 9; + a14 = 8; + a19 = 2; + return 24; + } else if((((a22==1)&&((a14==10)&&(((a24==1)&&((!(a7==1)&&(((a11==1)&&((((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))&&(input==3)))&&(a0==1)))&&(a25==1)))&&(a28==1))))&&(a20==1))){ + a19 = 2; + a11 = 0; + a29 = 5; + a24 = 0; + a14 = 8; + a20 = 0; + return 23; + } else if(((a25==1)&&((((a22==1)&&(((a14==9)&&((a24==1)&&((((((a29==5)&&(a19==4))||(((a29==8)&&(a19==3))||((a29==9)&&(a19==3))))&&(input==2))&&(a11==1))&&(a20==1))))&&!(a7==1)))&&(a0==1))&&(a28==1)))){ + a14 = 8; + a29 = 8; + a19 = 1; + a20 = 0; + a24 = 0; + a11 = 0; + return 23; + } else if(((a20==1)&&(((a22==1)&&(((a14==9)&&((a19==3)&&((!(a24==1)&&((((input==5)&&((a29==5)||(a29==6)))&&!(a25==1))&&(a11==1)))&&(a7==1))))&&(a0==1)))&&(a28==1)))){ + a29 = 5; + a7 = 0; + a19 = 4; + a25 = 1; + a0 = 0; + a24 = 1; + a14 = 8; + return 21; + } else if((!(a24==1)&&((((a14==9)&&((a11==1)&&(!(a7==1)&&(!(a0==1)&&((a25==1)&&((a28==1)&&((input==3)&&((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))||((a29==6)&&(a19==4))))))))))&&(a22==1))&&(a20==1)))){ + a29 = 8; + a11 = 0; + a19 = 1; + a14 = 8; + return -1; + } else if(((a28==1)&&((((!(a0==1)&&(((((a19==5)&&((((a24==1)&&(!(a20==1)&&!(a7==1)))&&!(a25==1))&&(a29==8)))||(((((!(a20==1)&&!(a7==1))&&(a24==1))&&!(a25==1))&&(a29==9))&&(a19==5)))||((((((a20==1)&&(a7==1))&&!(a24==1))&&(a25==1))&&(a29==5))&&(a19==1)))&&(input==4)))&&!(a11==1))&&(a22==1))&&(a14==8)))){ + a7 = 1; + a29 = 6; + a25 = 1; + a20 = 1; + a19 = 5; + a14 = 9; + a24 = 1; + return 23; + } else if((!(a7==1)&&((a25==1)&&(((((a24==1)&&(!(a20==1)&&(((((input==1)&&(((a29==7)||(a29==8))||(a29==9)))&&(a14==8))&&(a11==1))&&(a19==1))))&&(a22==1))&&(a28==1))&&(a0==1))))){ + a19 = 2; + a20 = 1; + a11 = 0; + a29 = 5; + a25 = 0; + return 24; + } else if((!(a7==1)&&((a20==1)&&(((((((((input==2)&&(((a19==5)&&(a29==6))||(((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))))&&(a28==1))&&(a24==1))&&(a22==1))&&(a14==9))&&(a11==1))&&(a0==1))&&!(a25==1))))){ + a11 = 0; + a29 = 6; + a7 = 1; + a0 = 0; + a19 = 5; + a20 = 0; + a24 = 0; + return 24; + } else if(((a28==1)&&((a14==9)&&(((((a11==1)&&((a22==1)&&((!(a20==1)&&(((((a19==1)&&(a29==8))||((a19==1)&&(a29==9)))||((a29==5)&&(a19==2)))&&(input==1)))&&!(a24==1))))&&!(a0==1))&&!(a7==1))&&!(a25==1))))){ + a20 = 1; + a24 = 1; + a29 = 9; + a14 = 8; + a19 = 4; + return 21; + } else if((((((((a11==1)&&(((a22==1)&&((input==4)&&((((a19==5)&&((a25==1)&&(a29==8)))||(((a29==9)&&(a25==1))&&(a19==5)))||((!(a25==1)&&(a29==5))&&(a19==1)))))&&(a28==1)))&&!(a0==1))&&(a14==8))&&!(a20==1))&&!(a24==1))&&!(a7==1))){ + a19 = 5; + a24 = 1; + a29 = 6; + a25 = 1; + a20 = 1; + return 23; + } else if((((((((a29==9)&&(!(a24==1)&&(((a7==1)&&((!(a25==1)&&(input==5))&&(a19==1)))&&(a14==8))))&&(a20==1))&&!(a11==1))&&(a0==1))&&(a28==1))&&(a22==1))){ + a19 = 3; + a25 = 1; + a11 = 1; + a14 = 9; + a7 = 0; + return 24; + } else if((!(a7==1)&&((a29==5)&&((((a28==1)&&((a0==1)&&((a14==9)&&(!(a24==1)&&((a22==1)&&(((input==4)&&!(a20==1))&&(a11==1)))))))&&!(a25==1))&&(a19==1))))){ + a0 = 0; + a20 = 1; + a29 = 6; + a14 = 8; + return -1; + } else if(((!(a24==1)&&(((((a25==1)&&((a22==1)&&((a28==1)&&((a11==1)&&(((input==1)&&(a29==9))&&!(a20==1))))))&&!(a0==1))&&(a7==1))&&(a14==9)))&&(a19==3))){ + a14 = 8; + a29 = 8; + a19 = 4; + a20 = 1; + return 21; + } else if((!(a7==1)&&((a28==1)&&((a22==1)&&(((((a14==8)&&((!(a11==1)&&(((((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))||((a29==5)&&(a19==3)))&&(input==3)))&&(a20==1)))&&!(a24==1))&&(a25==1))&&!(a0==1)))))){ + a19 = 3; + a20 = 0; + a25 = 0; + a0 = 1; + a7 = 1; + a29 = 6; + return -1; + } else if((!(a25==1)&&(((((a28==1)&&((((a0==1)&&((a7==1)&&((((a29==6)&&(a19==3))||(((a19==2)&&(a29==9))||((a19==3)&&(a29==5))))&&(input==4))))&&(a11==1))&&(a22==1)))&&(a14==10))&&!(a20==1))&&(a24==1)))){ + a7 = 0; + a14 = 9; + a25 = 1; + a24 = 0; + a29 = 6; + a19 = 5; + return 21; + } else if(((a25==1)&&((a28==1)&&((a7==1)&&(((a14==9)&&(((a20==1)&&((a24==1)&&(((((a29==6)||(a29==7))&&(input==2))&&(a19==4))&&!(a11==1))))&&(a22==1)))&&(a0==1)))))){ + a29 = 9; + a25 = 0; + a20 = 0; + a19 = 2; + a0 = 0; + a11 = 1; + a14 = 8; + return 24; + } else if((((a19==1)&&(((((a20==1)&&((((((input==4)&&((a29==6)||(a29==7)))&&(a14==8))&&(a28==1))&&!(a0==1))&&(a22==1)))&&!(a7==1))&&!(a25==1))&&!(a24==1)))&&!(a11==1))){ + a0 = 1; + a25 = 1; + a29 = 5; + a7 = 1; + a11 = 1; + a24 = 1; + return -1; + } else if(((((((a28==1)&&((a14==9)&&((!(a20==1)&&((a22==1)&&((input==5)&&(((a29==9)&&(a19==4))||((a29==5)&&(a19==5))))))&&!(a24==1))))&&!(a25==1))&&(a11==1))&&!(a7==1))&&!(a0==1))){ + a19 = 1; + a25 = 1; + a14 = 8; + a7 = 1; + a0 = 1; + a20 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if(((a0==1)&&((((a29==5)&&(((((a24==1)&&((!(a7==1)&&((input==1)&&(a28==1)))&&!(a25==1)))&&(a22==1))&&(a19==4))&&(a11==1)))&&!(a20==1))&&(a14==9)))){ + a19 = 1; + a25 = 1; + a7 = 1; + a29 = 6; + return -1; + } else if((!(a7==1)&&((((a11==1)&&((((((a24==1)&&(((input==3)&&(((a29==6)||(a29==7))||(a29==8)))&&(a14==9)))&&(a19==3))&&!(a0==1))&&(a22==1))&&(a28==1)))&&!(a25==1))&&(a20==1)))){ + a19 = 2; + a11 = 0; + a29 = 9; + a25 = 1; + a14 = 8; + a24 = 0; + return -1; + } else if((((!(a7==1)&&(((a0==1)&&(((a22==1)&&(!(a24==1)&&((!(a20==1)&&(((a29==5)||(a29==6))&&(input==3)))&&!(a11==1))))&&(a25==1)))&&(a14==9)))&&(a28==1))&&(a19==1))){ + a7 = 1; + a11 = 1; + a0 = 0; + a14 = 8; + a29 = 8; + a19 = 2; + return 21; + } else if((((a28==1)&&(((a11==1)&&((a22==1)&&((a0==1)&&(((a24==1)&&((a20==1)&&((((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))&&(input==3))))&&!(a25==1)))))&&(a14==10)))&&!(a7==1))){ + a0 = 0; + a11 = 0; + a19 = 5; + a7 = 1; + a14 = 9; + a29 = 6; + a25 = 1; + return -1; + } else if(((a14==9)&&(!(a24==1)&&((((a7==1)&&((a19==4)&&(((a20==1)&&(((((a29==5)||(a29==6))&&(input==1))&&(a25==1))&&(a28==1)))&&(a22==1))))&&!(a11==1))&&(a0==1))))){ + a20 = 0; + a7 = 0; + a0 = 0; + a19 = 3; + a11 = 1; + a29 = 7; + a25 = 0; + a14 = 8; + return -1; + } else if((!(a20==1)&&(!(a7==1)&&((a22==1)&&((a11==1)&&(((a19==5)&&(((a28==1)&&((((input==2)&&((a29==8)||(a29==9)))&&!(a0==1))&&!(a25==1)))&&!(a24==1)))&&(a14==9))))))){ + a24 = 1; + a25 = 1; + a20 = 1; + a7 = 1; + a29 = 6; + a14 = 8; + return 24; + } else if((!(a11==1)&&(((a22==1)&&((a0==1)&&((a28==1)&&((a24==1)&&(!(a25==1)&&((a7==1)&&((a19==1)&&((a20==1)&&((input==1)&&((a29==8)||(a29==9)))))))))))&&(a14==8)))){ + a11 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if(((a7==1)&&((a11==1)&&((a22==1)&&(!(a24==1)&&(((!(a0==1)&&((a25==1)&&((!(a20==1)&&((input==2)&&(a14==9)))&&(a29==8))))&&(a19==1))&&(a28==1))))))){ + a29 = 5; + a25 = 0; + a20 = 1; + a19 = 5; + a14 = 8; + a11 = 0; + return -1; + } else if(((a20==1)&&((a11==1)&&(((a28==1)&&(!(a7==1)&&(((a22==1)&&(((((((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))||((a19==5)&&(a29==5)))&&(input==6))&&(a25==1))&&!(a0==1)))&&!(a24==1))))&&(a14==8))))){ + a29 = 9; + a14 = 9; + a19 = 2; + a24 = 1; + return 23; + } else if(((a7==1)&&((((a14==9)&&(!(a0==1)&&(((a22==1)&&((!(a24==1)&&((((a29==8)||(a29==9))&&(input==2))&&(a28==1)))&&(a19==1)))&&!(a11==1))))&&(a25==1))&&!(a20==1)))){ + a29 = 5; + a19 = 3; + a14 = 8; + a20 = 1; + return -1; + } else if(((a25==1)&&(((((a22==1)&&(!(a24==1)&&(((a28==1)&&((((input==3)&&((a29==7)||((a29==5)||(a29==6))))&&(a0==1))&&(a11==1)))&&(a19==4))))&&!(a20==1))&&(a14==9))&&!(a7==1)))){ + a19 = 3; + a29 = 8; + a24 = 1; + a25 = 0; + return 23; + } else if(((a25==1)&&(((((a19==4)&&(!(a11==1)&&((((a28==1)&&((a20==1)&&((input==3)&&((a29==7)||(a29==8)))))&&(a7==1))&&(a24==1))))&&(a22==1))&&(a0==1))&&(a14==8)))){ + a29 = 5; + a20 = 0; + a19 = 5; + a0 = 0; + a11 = 1; + a25 = 0; + return 21; + } else if((((a24==1)&&(((a22==1)&&((a7==1)&&((a14==8)&&(((a19==2)&&(!(a11==1)&&(!(a20==1)&&(((a29==5)||(a29==6))&&(input==2)))))&&(a25==1)))))&&(a28==1)))&&!(a0==1))){ + a19 = 1; + a11 = 1; + a29 = 7; + return 24; + } else if(((((a7==1)&&((((a28==1)&&((a0==1)&&((a11==1)&&(!(a25==1)&&(((input==3)&&((a29==5)||(a29==6)))&&(a22==1))))))&&(a24==1))&&(a14==9)))&&(a19==3))&&(a20==1))){ + a14 = 8; + a29 = 8; + a19 = 4; + a7 = 0; + a20 = 0; + a0 = 0; + return 21; + } else if((!(a24==1)&&((a25==1)&&((a20==1)&&(((a7==1)&&((a22==1)&&((((a14==9)&&((a29==9)&&((input==6)&&(a28==1))))&&(a0==1))&&(a19==3))))&&(a11==1)))))){ + a7 = 0; + a24 = 1; + a25 = 0; + a29 = 8; + a14 = 10; + return 21; + } else if(((a24==1)&&((!(a25==1)&&(((((((((input==4)&&((a29==9)||((a29==7)||(a29==8))))&&!(a20==1))&&(a22==1))&&(a14==8))&&(a28==1))&&(a7==1))&&(a19==1))&&(a11==1)))&&(a0==1)))){ + a24 = 0; + a19 = 3; + a7 = 0; + a29 = 8; + a25 = 1; + return 21; + } else if(((((a11==1)&&(((a29==6)&&((a22==1)&&((((a24==1)&&((a7==1)&&((a14==9)&&(input==1))))&&(a19==5))&&!(a0==1))))&&!(a20==1)))&&(a28==1))&&!(a25==1))){ + a19 = 3; + a0 = 1; + a20 = 1; + a7 = 0; + a25 = 1; + a29 = 5; + return 21; + } else if((!(a0==1)&&(((a19==5)&&((((((a7==1)&&((a22==1)&&(((input==2)&&((a29==5)||(a29==6)))&&(a11==1))))&&(a14==8))&&!(a24==1))&&(a25==1))&&(a28==1)))&&(a20==1)))){ + a0 = 1; + a29 = 5; + a19 = 1; + a24 = 1; + return -1; + } else if(((a19==2)&&((((a0==1)&&(!(a24==1)&&((a14==8)&&((((a20==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==6))&&(a25==1)))&&(a22==1))&&(a28==1)))))&&!(a7==1))&&!(a11==1)))){ + a20 = 0; + a25 = 0; + a7 = 1; + a29 = 9; + return 23; + } else if(((a28==1)&&((((!(a0==1)&&((a20==1)&&(((((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))&&(input==3))&&!(a11==1))&&!(a24==1))&&!(a25==1))))&&(a22==1))&&(a7==1))&&(a14==8)))){ + a25 = 1; + a19 = 5; + a7 = 0; + a0 = 1; + a29 = 7; + a20 = 0; + return 21; + } else if(((a11==1)&&((!(a24==1)&&(!(a0==1)&&((a14==8)&&(!(a20==1)&&((((a22==1)&&(((input==5)&&((a29==7)||((a29==5)||(a29==6))))&&(a19==2)))&&(a28==1))&&(a25==1))))))&&(a7==1)))){ + a0 = 1; + a14 = 9; + a7 = 0; + a20 = 1; + a25 = 0; + a29 = 5; + a19 = 5; + return 24; + } else if(((a29==8)&&((a7==1)&&((a19==2)&&((((a28==1)&&((a22==1)&&((a20==1)&&(((a24==1)&&(!(a0==1)&&(input==1)))&&!(a11==1)))))&&!(a25==1))&&(a14==9)))))){ + a20 = 0; + a29 = 7; + a24 = 0; + a19 = 5; + a11 = 1; + return -1; + } else if((((!(a0==1)&&((a28==1)&&((a24==1)&&((a25==1)&&(!(a20==1)&&((a22==1)&&((a29==8)&&(!(a7==1)&&((input==4)&&!(a11==1))))))))))&&(a19==2))&&(a14==8))){ + a0 = 1; + a19 = 1; + a7 = 1; + a20 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if(((!(a0==1)&&((a25==1)&&(((a28==1)&&((((a11==1)&&(((input==1)&&(((a19==1)&&(a29==9))||((a19==2)&&(a29==5))))&&(a22==1)))&&(a14==9))&&!(a7==1)))&&(a20==1))))&&!(a24==1))){ + a24 = 1; + a29 = 5; + a19 = 1; + a14 = 8; + a7 = 1; + a0 = 1; + return -1; + } return calculate_output5(input); + } + + int calculate_output5(int input) { + if(((a24==1)&&((((a22==1)&&((a0==1)&&(((!(a11==1)&&(((((a29==5)||(a29==6))&&(input==2))&&(a28==1))&&(a7==1)))&&(a20==1))&&!(a25==1))))&&(a14==9))&&(a19==4)))){ + a29 = 5; + a25 = 1; + a14 = 8; + a7 = 0; + a20 = 0; + a0 = 0; + return 21; + } else if(((a7==1)&&((a0==1)&&((((!(a24==1)&&((a19==3)&&((((a25==1)&&(((a29==6)||(a29==7))&&(input==6)))&&(a28==1))&&(a14==10))))&&(a11==1))&&(a20==1))&&(a22==1))))){ + a29 = 5; + a14 = 9; + a19 = 5; + a0 = 0; + a24 = 1; + a11 = 0; + return -1; + } else if((!(a11==1)&&((a24==1)&&((a0==1)&&((((!(a20==1)&&(((((input==6)&&((a29==7)||(a29==8)))&&(a22==1))&&(a7==1))&&(a28==1)))&&(a19==1))&&(a14==9))&&(a25==1)))))){ + a11 = 1; + a20 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((a22==1)&&(((a7==1)&&(((((a14==8)&&((((((a29==6)||(a29==7))&&(input==4))&&(a11==1))&&(a25==1))&&!(a0==1)))&&!(a20==1))&&!(a24==1))&&(a19==1)))&&(a28==1)))){ + a20 = 1; + a19 = 3; + a29 = 9; + a7 = 0; + a25 = 0; + return -1; + } else if((((!(a11==1)&&(((a25==1)&&((((((a28==1)&&((a29==8)&&(input==1)))&&!(a7==1))&&!(a20==1))&&(a0==1))&&(a22==1)))&&(a19==5)))&&(a24==1))&&(a14==8))){ + a25 = 0; + a0 = 0; + a7 = 1; + a29 = 5; + a11 = 1; + a19 = 3; + a20 = 1; + return 23; + } else if(((a28==1)&&((((a22==1)&&((!(a7==1)&&(!(a11==1)&&((((((a29==6)||(a29==7))&&(input==1))&&(a14==8))&&(a20==1))&&!(a24==1))))&&(a0==1)))&&(a19==1))&&!(a25==1)))){ + a29 = 7; + a19 = 3; + a24 = 1; + a7 = 1; + a11 = 1; + a0 = 0; + return 23; + } else if(((((!(a20==1)&&((!(a25==1)&&(((a14==9)&&((a7==1)&&(((a19==4)&&(input==4))&&(a29==6))))&&(a24==1)))&&!(a0==1)))&&(a22==1))&&(a11==1))&&(a28==1))){ + a29 = 5; + a25 = 1; + a19 = 1; + a20 = 1; + a0 = 1; + a14 = 8; + return -1; + } else if(((a7==1)&&(((a14==10)&&(((!(a20==1)&&((a25==1)&&(((a0==1)&&((a11==1)&&((input==6)&&((a29==7)||(a29==8)))))&&(a22==1))))&&(a24==1))&&(a19==1)))&&(a28==1)))){ + a14 = 8; + a7 = 0; + a25 = 0; + a0 = 0; + a20 = 1; + a29 = 8; + return 23; + } else if(((!(a7==1)&&(((a19==4)&&((((a14==8)&&((((a22==1)&&((input==6)&&(a28==1)))&&(a29==5))&&!(a25==1)))&&!(a11==1))&&!(a0==1)))&&(a24==1)))&&!(a20==1))){ + a11 = 1; + a0 = 1; + a20 = 1; + a25 = 1; + a19 = 1; + a7 = 1; + return -1; + } else if(((!(a0==1)&&((((a22==1)&&((a24==1)&&((a20==1)&&((a14==8)&&((((((a29==8)&&(a19==3))||((a29==9)&&(a19==3)))||((a19==4)&&(a29==5)))&&(input==5))&&(a28==1))))))&&!(a11==1))&&!(a25==1)))&&(a7==1))){ + a19 = 5; + a25 = 1; + a11 = 1; + a29 = 8; + return 21; + } else if(((!(a7==1)&&(((a11==1)&&((((!(a24==1)&&(((((a19==3)&&(a29==6))||(((a29==9)&&(a19==2))||((a19==3)&&(a29==5))))&&(input==2))&&(a28==1)))&&(a22==1))&&!(a25==1))&&!(a0==1)))&&!(a20==1)))&&(a14==8))){ + a24 = 1; + a25 = 1; + a29 = 8; + a7 = 1; + a19 = 3; + return 24; + } else if((((((((((((input==6)&&(((a29==6)&&(a19==3))||(((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))))&&!(a20==1))&&(a11==1))&&!(a7==1))&&!(a0==1))&&(a14==9))&&(a24==1))&&(a28==1))&&!(a25==1))&&(a22==1))){ + a0 = 1; + a7 = 1; + a14 = 8; + a19 = 1; + a20 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if(((a19==4)&&(((a25==1)&&(((a0==1)&&((((((a28==1)&&(!(a7==1)&&(input==2)))&&(a22==1))&&!(a24==1))&&(a29==9))&&!(a11==1)))&&(a14==8)))&&(a20==1)))){ + a7 = 1; + a11 = 1; + a19 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if((((!(a24==1)&&((a20==1)&&(((a0==1)&&(((a29==7)&&(((a14==8)&&((a7==1)&&(input==2)))&&(a22==1)))&&(a25==1)))&&(a28==1))))&&(a19==2))&&!(a11==1))){ + a7 = 0; + a25 = 0; + a20 = 0; + a19 = 1; + a29 = 8; + return 21; + } else if((!(a20==1)&&((a22==1)&&((a14==8)&&((a28==1)&&(((a0==1)&&((a25==1)&&(!(a11==1)&&(((((a29==8)||(a29==9))&&(input==5))&&(a24==1))&&!(a7==1)))))&&(a19==1))))))){ + a24 = 0; + a25 = 0; + a19 = 2; + a29 = 9; + return 24; + } else if((!(a25==1)&&(((a19==5)&&((a24==1)&&((((a14==10)&&((a0==1)&&((a28==1)&&((((a29==8)||(a29==9))&&(input==6))&&(a7==1)))))&&(a11==1))&&(a22==1))))&&!(a20==1)))){ + a11 = 0; + a29 = 6; + a24 = 0; + a14 = 9; + return -1; + } else if((((a20==1)&&(!(a7==1)&&((a19==3)&&((((!(a0==1)&&((a22==1)&&((a25==1)&&((input==6)&&((a29==7)||((a29==5)||(a29==6)))))))&&!(a24==1))&&(a14==9))&&(a28==1)))))&&!(a11==1))){ + a29 = 9; + a25 = 0; + a20 = 0; + a19 = 2; + a0 = 1; + return -1; + } else if(((a22==1)&&(!(a11==1)&&(((((input==5)&&(((((!(a25==1)&&((!(a7==1)&&!(a20==1))&&(a24==1)))&&(a29==8))&&(a19==5))||(((!(a25==1)&&((a24==1)&&(!(a20==1)&&!(a7==1))))&&(a29==9))&&(a19==5)))||((a19==1)&&(((a25==1)&&(((a7==1)&&(a20==1))&&!(a24==1)))&&(a29==5)))))&&(a14==8))&&(a28==1))&&!(a0==1))))){ + a19 = 4; + a24 = 1; + a20 = 1; + a7 = 1; + a25 = 1; + a11 = 1; + a29 = 7; + return 21; + } else if(((a0==1)&&(((a24==1)&&(!(a11==1)&&((((((a22==1)&&((input==3)&&(((a29==6)&&(a19==3))||(((a29==9)&&(a19==2))||((a29==5)&&(a19==3))))))&&!(a7==1))&&!(a25==1))&&(a20==1))&&(a28==1))))&&(a14==9)))){ + a14 = 8; + a20 = 0; + a29 = 6; + a19 = 4; + a24 = 0; + return 23; + } else if((((a22==1)&&((((a24==1)&&((a7==1)&&((((a14==8)&&((a28==1)&&((input==6)&&((a29==7)||(a29==8)))))&&(a19==1))&&!(a0==1))))&&!(a20==1))&&(a25==1)))&&!(a11==1))){ + a29 = 5; + a20 = 1; + a0 = 1; + a11 = 1; + return -1; + } else if((!(a0==1)&&((a22==1)&&((((a11==1)&&(!(a24==1)&&(((a7==1)&&((a25==1)&&(((input==3)&&(((a29==7)||(a29==8))||(a29==9)))&&(a28==1))))&&(a19==5))))&&(a20==1))&&(a14==8))))){ + a29 = 5; + a7 = 0; + a24 = 1; + a20 = 0; + a25 = 0; + a19 = 3; + return -1; + } else if(((((a20==1)&&(((a22==1)&&(((a19==2)&&((((a11==1)&&((input==3)&&!(a24==1)))&&(a0==1))&&(a7==1)))&&(a14==9)))&&(a28==1)))&&!(a25==1))&&(a29==9))){ + a19 = 1; + a20 = 0; + a14 = 10; + a25 = 1; + a24 = 1; + a29 = 7; + return 21; + } else if(((!(a7==1)&&(!(a0==1)&&(((a11==1)&&((!(a20==1)&&(((a25==1)&&((a19==3)&&((input==4)&&((a29==6)||(a29==7)))))&&(a22==1)))&&(a24==1)))&&(a28==1))))&&(a14==9))){ + a0 = 1; + a19 = 4; + a24 = 0; + a11 = 0; + a7 = 1; + a29 = 5; + return -1; + } else if((((((a24==1)&&((a22==1)&&((a19==5)&&(!(a0==1)&&((((a7==1)&&((input==1)&&((a29==7)||((a29==5)||(a29==6)))))&&(a14==8))&&!(a25==1))))))&&(a20==1))&&(a28==1))&&(a11==1))){ + a29 = 5; + a20 = 0; + a7 = 0; + return 21; + } else if(((a22==1)&&((!(a7==1)&&(((a14==8)&&((((!(a20==1)&&((a28==1)&&((input==5)&&((a29==7)||(a29==8)))))&&!(a25==1))&&(a19==5))&&(a24==1)))&&(a11==1)))&&!(a0==1)))){ + a29 = 9; + a20 = 1; + a25 = 1; + a7 = 1; + a19 = 3; + return 21; + } else if((!(a25==1)&&(((a11==1)&&((((!(a7==1)&&(!(a20==1)&&(((((a29==8)||(a29==9))&&(input==1))&&!(a24==1))&&!(a0==1))))&&(a14==9))&&(a22==1))&&(a19==5)))&&(a28==1)))){ + a20 = 1; + a19 = 1; + a0 = 1; + a11 = 0; + a29 = 9; + a25 = 1; + return -1; + } else if(((((!(a25==1)&&((a28==1)&&((!(a0==1)&&(!(a20==1)&&(!(a7==1)&&((((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))&&(input==1)))))&&(a22==1))))&&!(a24==1))&&!(a11==1))&&(a14==8))){ + a19 = 1; + a7 = 1; + a29 = 7; + a11 = 1; + a25 = 1; + return 21; + } else if(((((a22==1)&&(((a11==1)&&((a19==3)&&((a14==8)&&(!(a24==1)&&((a28==1)&&(!(a20==1)&&(((a29==6)||(a29==7))&&(input==4))))))))&&(a25==1)))&&!(a7==1))&&(a0==1))){ + a25 = 0; + a19 = 1; + a24 = 1; + a29 = 7; + a7 = 1; + return 24; + } else if((((a28==1)&&((!(a25==1)&&(((((a22==1)&&(((a19==3)&&((a14==9)&&(input==6)))&&!(a20==1)))&&!(a11==1))&&(a0==1))&&!(a24==1)))&&(a29==9)))&&!(a7==1))){ + a7 = 1; + a24 = 1; + a25 = 1; + a11 = 1; + a0 = 0; + a14 = 8; + a29 = 8; + a20 = 1; + return 23; + } else if(((!(a0==1)&&((a19==5)&&((a25==1)&&((a14==9)&&(((((a7==1)&&(!(a20==1)&&(((a29==5)||(a29==6))&&(input==6))))&&(a22==1))&&(a28==1))&&!(a24==1))))))&&!(a11==1))){ + a7 = 0; + a24 = 1; + a19 = 4; + a25 = 0; + a29 = 6; + a0 = 1; + return -1; + } else if(((((a14==9)&&(!(a11==1)&&((!(a0==1)&&((((a25==1)&&(((input==3)&&((a29==6)||(a29==7)))&&(a19==4)))&&(a20==1))&&!(a7==1)))&&(a22==1))))&&(a28==1))&&!(a24==1))){ + a14 = 8; + a7 = 1; + a19 = 1; + a11 = 1; + a29 = 5; + a24 = 1; + return 23; + } else if(((a22==1)&&(((a14==9)&&((a28==1)&&((a0==1)&&(((a19==4)&&(((((input==5)&&((a29==7)||((a29==5)||(a29==6))))&&(a11==1))&&(a20==1))&&!(a24==1)))&&(a25==1)))))&&!(a7==1)))){ + a19 = 5; + a20 = 0; + a25 = 0; + a7 = 1; + a29 = 9; + a24 = 1; + a14 = 10; + return 21; + } else if(((a20==1)&&((a14==8)&&((((a28==1)&&((((a0==1)&&(((((a29==5)||(a29==6))&&(input==6))&&(a19==5))&&!(a11==1)))&&!(a7==1))&&(a22==1)))&&(a25==1))&&(a24==1))))){ + a29 = 5; + a19 = 1; + a11 = 1; + a7 = 1; + return -1; + } else if((((a14==8)&&((a28==1)&&((a22==1)&&((((a19==5)&&((((!(a7==1)&&((a11==1)&&!(a20==1)))&&!(a24==1))&&!(a25==1))&&(a29==9)))||(((((a24==1)&&((!(a11==1)&&(a20==1))&&(a7==1)))&&(a25==1))&&(a29==5))&&(a19==1)))&&(input==5)))))&&(a0==1))){ + a11 = 0; + a24 = 1; + a20 = 0; + a7 = 1; + a25 = 1; + a0 = 0; + a19 = 4; + a29 = 6; + return 24; + } else if(((a11==1)&&(((((a24==1)&&((a0==1)&&((a28==1)&&((((a14==9)&&((input==5)&&((a29==9)||((a29==7)||(a29==8)))))&&(a22==1))&&!(a25==1)))))&&!(a20==1))&&(a19==3))&&!(a7==1)))){ + a0 = 0; + a29 = 6; + a19 = 1; + a25 = 1; + a14 = 8; + return 21; + } else if(((a25==1)&&((a7==1)&&((a20==1)&&((a24==1)&&(!(a0==1)&&(((a28==1)&&((a22==1)&&(((input==6)&&((((a29==8)&&(a19==2))||((a19==2)&&(a29==9)))||((a29==5)&&(a19==3))))&&(a14==8))))&&!(a11==1)))))))){ + a14 = 9; + a29 = 9; + a24 = 0; + a11 = 1; + a19 = 1; + return 23; + } else if((!(a0==1)&&((((!(a11==1)&&(((a22==1)&&(((a19==5)&&(!(a20==1)&&((input==6)&&((a29==5)||(a29==6)))))&&(a7==1)))&&(a28==1)))&&(a14==8))&&!(a25==1))&&!(a24==1)))){ + a25 = 1; + a19 = 1; + a0 = 1; + a11 = 1; + a24 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if(((((a7==1)&&(!(a24==1)&&((((a14==8)&&(((a0==1)&&((input==2)&&(((a19==4)&&(a29==6))||(((a29==9)&&(a19==3))||((a29==5)&&(a19==4))))))&&(a20==1)))&&(a25==1))&&!(a11==1))))&&(a28==1))&&(a22==1))){ + a11 = 1; + a19 = 2; + a14 = 9; + a25 = 0; + a29 = 9; + return 23; + } else if((!(a0==1)&&(!(a24==1)&&((((((((((input==1)&&(a28==1))&&!(a7==1))&&(a14==9))&&!(a20==1))&&(a19==3))&&!(a11==1))&&(a22==1))&&!(a25==1))&&(a29==8))))){ + a29 = 5; + a11 = 1; + a19 = 2; + a24 = 1; + a25 = 1; + a7 = 1; + return -1; + } else if((!(a25==1)&&(((((a7==1)&&((a11==1)&&((((a28==1)&&(((input==3)&&(a29==5))&&(a19==3)))&&(a0==1))&&(a14==9))))&&!(a24==1))&&(a22==1))&&!(a20==1)))){ + a25 = 1; + a20 = 1; + a19 = 1; + a14 = 8; + a24 = 1; + return -1; + } else if((((a24==1)&&((((((!(a25==1)&&((a22==1)&&((a19==3)&&((input==6)&&((a29==7)||((a29==5)||(a29==6)))))))&&!(a7==1))&&!(a11==1))&&(a14==9))&&!(a0==1))&&(a28==1)))&&!(a20==1))){ + a7 = 1; + a14 = 8; + a19 = 2; + a29 = 9; + a11 = 1; + return 24; + } else if(((a28==1)&&((a22==1)&&((a14==9)&&((a19==4)&&(!(a24==1)&&((a20==1)&&((a11==1)&&((a7==1)&&((a25==1)&&((a0==1)&&(((a29==5)||(a29==6))&&(input==4))))))))))))){ + a14 = 10; + a25 = 0; + a7 = 0; + a24 = 1; + a29 = 9; + a19 = 3; + return 21; + } else if((((((!(a7==1)&&(!(a24==1)&&((a14==8)&&((a20==1)&&(!(a25==1)&&((input==1)&&((((a19==2)&&(a29==8))||((a29==9)&&(a19==2)))||((a19==3)&&(a29==5)))))))))&&!(a0==1))&&(a22==1))&&(a28==1))&&(a11==1))){ + a24 = 1; + a29 = 6; + a20 = 0; + a19 = 3; + return 24; + } else if(((a14==8)&&(((((((!(a11==1)&&((a19==3)&&((a29==9)&&((a20==1)&&(input==2)))))&&!(a24==1))&&!(a25==1))&&!(a0==1))&&(a28==1))&&(a22==1))&&!(a7==1)))){ + a0 = 1; + a24 = 1; + a25 = 1; + a19 = 1; + a29 = 5; + a11 = 1; + a7 = 1; + return -1; + } else if(((a29==9)&&((a20==1)&&((a14==8)&&(((a7==1)&&((!(a25==1)&&(!(a0==1)&&(((a28==1)&&((input==1)&&(a11==1)))&&(a24==1))))&&(a22==1)))&&(a19==4)))))){ + a19 = 2; + a25 = 1; + return -1; + } else if((((((a28==1)&&((a29==5)&&((a7==1)&&(((a14==8)&&((a24==1)&&(((a22==1)&&(input==1))&&(a20==1))))&&(a19==4)))))&&!(a0==1))&&(a11==1))&&!(a25==1))){ + a19 = 1; + a0 = 1; + a25 = 1; + return -1; + } else if((((((((a19==2)&&((a24==1)&&(!(a0==1)&&((a11==1)&&(((input==2)&&((a29==8)||((a29==6)||(a29==7))))&&(a14==9))))))&&(a25==1))&&(a22==1))&&(a28==1))&&(a20==1))&&!(a7==1))){ + a14 = 8; + a19 = 1; + a7 = 1; + a29 = 9; + a20 = 0; + return 23; + } else if(((a22==1)&&(!(a0==1)&&(((a28==1)&&(((((((((a29==7)||((a29==5)||(a29==6)))&&(input==2))&&(a24==1))&&!(a11==1))&&!(a7==1))&&(a20==1))&&(a14==8))&&(a19==1)))&&!(a25==1))))){ + a25 = 1; + a11 = 1; + a0 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if((((a25==1)&&(((((!(a20==1)&&((((!(a0==1)&&(input==3))&&(a7==1))&&(a14==9))&&(a22==1)))&&(a29==7))&&(a24==1))&&(a11==1))&&(a28==1)))&&(a19==2))){ + a29 = 5; + a0 = 1; + a19 = 1; + a14 = 8; + a20 = 1; + return -1; + } else if(((a19==1)&&(!(a20==1)&&((a22==1)&&(((a14==9)&&(((((!(a7==1)&&((a24==1)&&(input==2)))&&(a28==1))&&(a25==1))&&(a11==1))&&(a29==7)))&&(a0==1)))))){ + a11 = 0; + a25 = 0; + a29 = 9; + a19 = 4; + return 24; + } else if(((((a7==1)&&((a0==1)&&((a22==1)&&(((a28==1)&&((a14==8)&&(((((a29==7)||((a29==5)||(a29==6)))&&(input==3))&&(a24==1))&&(a25==1))))&&(a19==3)))))&&!(a20==1))&&(a11==1))){ + a19 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if(((a22==1)&&(((a14==8)&&(((((a11==1)&&((a28==1)&&(((input==2)&&(((a29==5)&&(a19==2))||(((a19==1)&&(a29==8))||((a29==9)&&(a19==1)))))&&!(a0==1))))&&(a20==1))&&(a24==1))&&(a7==1)))&&!(a25==1)))){ + a25 = 1; + a0 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((((a28==1)&&(!(a24==1)&&(!(a25==1)&&((a14==9)&&((((((a22==1)&&(input==2))&&(a19==3))&&(a29==5))&&(a20==1))&&!(a11==1))))))&&(a0==1))&&(a7==1))){ + a24 = 1; + a11 = 1; + a25 = 1; + a19 = 5; + a14 = 8; + a20 = 0; + a0 = 0; + return 23; + } else if(((a19==3)&&(!(a11==1)&&(!(a24==1)&&(((a22==1)&&(((a28==1)&&((!(a20==1)&&((a14==8)&&(!(a0==1)&&(input==2))))&&!(a7==1)))&&(a29==5)))&&!(a25==1)))))){ + a20 = 1; + a7 = 1; + a29 = 8; + a25 = 1; + a19 = 1; + return 24; + } else if(((a28==1)&&(((a20==1)&&((a11==1)&&(!(a7==1)&&((a22==1)&&(!(a24==1)&&((a14==8)&&((!(a0==1)&&(((a29==5)||(a29==6))&&(input==5)))&&(a19==2))))))))&&(a25==1)))){ + a19 = 5; + a24 = 1; + a14 = 9; + a7 = 1; + a25 = 0; + a29 = 6; + return 21; + } else if((((((a28==1)&&(((a24==1)&&((input==6)&&(((((!(a20==1)&&(a7==1))&&(a25==1))&&(a29==5))&&(a19==1))||(((a19==5)&&((a29==8)&&(((a20==1)&&!(a7==1))&&!(a25==1))))||(((a29==9)&&(!(a25==1)&&(!(a7==1)&&(a20==1))))&&(a19==5))))))&&(a11==1)))&&(a22==1))&&(a14==9))&&(a0==1))){ + a19 = 3; + a7 = 1; + a29 = 7; + a14 = 8; + a25 = 1; + a0 = 0; + a20 = 1; + return 21; + } else if(((a22==1)&&((!(a25==1)&&(((!(a24==1)&&(((a28==1)&&((a0==1)&&((a14==9)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==6)))))&&(a20==1)))&&!(a11==1))&&(a19==2)))&&(a7==1)))){ + a11 = 1; + a24 = 1; + a29 = 5; + a14 = 8; + a19 = 1; + a25 = 1; + return -1; + } else if(((a20==1)&&(!(a25==1)&&((((a19==5)&&(((a0==1)&&(((((input==5)&&(a22==1))&&(a24==1))&&(a28==1))&&(a14==9)))&&!(a7==1)))&&(a11==1))&&(a29==7))))){ + a20 = 0; + a0 = 0; + a19 = 1; + a29 = 5; + a11 = 0; + a25 = 1; + a24 = 0; + return 21; + } else if(((((a19==2)&&(((a11==1)&&(!(a25==1)&&((!(a20==1)&&((a0==1)&&((((a29==7)||(a29==8))&&(input==4))&&(a24==1))))&&(a22==1))))&&!(a7==1)))&&(a28==1))&&(a14==9))){ + a0 = 0; + a29 = 9; + a7 = 1; + a20 = 1; + a19 = 3; + a14 = 8; + return -1; + } else if((!(a20==1)&&((a7==1)&&(((a28==1)&&((a22==1)&&(((((input==6)&&((((a29==5)&&!(a25==1))&&(a19==1))||(((a19==5)&&((a29==8)&&(a25==1)))||(((a29==9)&&(a25==1))&&(a19==5)))))&&(a11==1))&&!(a0==1))&&(a14==8))))&&!(a24==1))))){ + a25 = 1; + a29 = 6; + a19 = 1; + a20 = 1; + a24 = 1; + return 23; + } else if((!(a0==1)&&(((a20==1)&&((((a7==1)&&((a28==1)&&((((a22==1)&&((input==6)&&(a11==1)))&&(a24==1))&&(a29==7))))&&(a19==3))&&(a25==1)))&&(a14==9)))){ + a29 = 8; + a11 = 0; + a19 = 5; + a14 = 8; + a24 = 0; + a7 = 0; + return -1; + } else if(((((((((a25==1)&&(!(a20==1)&&(!(a7==1)&&(((input==1)&&((a29==5)||(a29==6)))&&!(a11==1)))))&&(a22==1))&&(a28==1))&&(a19==1))&&(a0==1))&&!(a24==1))&&(a14==9))){ + a24 = 1; + a7 = 1; + a29 = 5; + a20 = 1; + a14 = 8; + a11 = 1; + return -1; + } else if(((a28==1)&&(((!(a25==1)&&((((a19==3)&&((!(a11==1)&&(!(a24==1)&&(!(a20==1)&&(input==3))))&&(a7==1)))&&(a29==6))&&(a14==8)))&&(a22==1))&&!(a0==1)))){ + a24 = 1; + a20 = 1; + a25 = 1; + a19 = 1; + a29 = 5; + a0 = 1; + a11 = 1; + return -1; + } else if(((a14==10)&&(((((a11==1)&&((a29==5)&&(((a7==1)&&((a0==1)&&((a20==1)&&((input==1)&&!(a25==1)))))&&(a28==1))))&&(a22==1))&&(a19==2))&&(a24==1)))){ + a20 = 0; + a29 = 6; + a0 = 0; + a11 = 0; + a14 = 8; + a24 = 0; + return 23; + } else if((((!(a20==1)&&(((a22==1)&&((a28==1)&&((((((input==3)&&((a29==7)||(a29==8)))&&(a24==1))&&(a0==1))&&(a14==10))&&(a7==1))))&&(a11==1)))&&(a19==1))&&(a25==1))){ + a0 = 0; + a11 = 0; + a19 = 2; + a20 = 1; + a14 = 9; + a29 = 6; + return -1; + } else if(((a7==1)&&((a22==1)&&(!(a11==1)&&((a20==1)&&((a14==8)&&(((((a28==1)&&((((a29==6)&&(a19==5))||(((a29==9)&&(a19==4))||((a29==5)&&(a19==5))))&&(input==3)))&&(a24==1))&&(a0==1))&&!(a25==1)))))))){ + a0 = 0; + a19 = 4; + a24 = 0; + a29 = 6; + return 23; + } else if((!(a25==1)&&((a28==1)&&((a14==9)&&((a20==1)&&((a24==1)&&((((((a19==2)&&(((a29==8)||(a29==9))&&(input==2)))&&(a22==1))&&!(a0==1))&&!(a11==1))&&!(a7==1)))))))){ + a14 = 8; + a25 = 1; + a11 = 1; + a19 = 3; + a29 = 6; + return 23; + } else if((((((a24==1)&&((!(a7==1)&&((((a20==1)&&((input==2)&&((((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))||((a29==6)&&(a19==5)))))&&(a28==1))&&(a0==1)))&&(a22==1)))&&(a11==1))&&(a14==8))&&!(a25==1))){ + a29 = 5; + a19 = 1; + a7 = 1; + a25 = 1; + return -1; + } else if(((a28==1)&&((a14==9)&&((!(a7==1)&&((a22==1)&&((a20==1)&&(!(a24==1)&&(!(a0==1)&&(!(a25==1)&&((input==3)&&(((a19==3)&&(a29==9))||((a29==5)&&(a19==4))))))))))&&!(a11==1))))){ + a24 = 1; + a14 = 8; + a29 = 5; + a0 = 1; + a7 = 1; + a25 = 1; + a19 = 1; + a11 = 1; + return -1; + } else if((((!(a11==1)&&(((a28==1)&&((!(a7==1)&&(((a22==1)&&(((input==5)&&(a24==1))&&(a20==1)))&&(a29==9)))&&!(a0==1)))&&(a19==4)))&&(a25==1))&&(a14==9))){ + a24 = 0; + a14 = 8; + a29 = 5; + a25 = 0; + return 21; + } else if(((a0==1)&&(((a19==5)&&((a28==1)&&(!(a7==1)&&((a11==1)&&(!(a25==1)&&((a22==1)&&(((a14==8)&&(((a29==6)||(a29==7))&&(input==2)))&&!(a20==1))))))))&&!(a24==1)))){ + a24 = 1; + a11 = 0; + a7 = 1; + a0 = 0; + a25 = 1; + a29 = 7; + a19 = 3; + return 23; + } else if(((a7==1)&&((a11==1)&&(((!(a0==1)&&((a24==1)&&((a20==1)&&((((a19==2)&&(((a29==6)||(a29==7))&&(input==1)))&&(a25==1))&&(a14==9)))))&&(a28==1))&&(a22==1))))){ + a19 = 1; + a14 = 8; + a0 = 1; + a29 = 5; + return -1; + } else if(((a14==8)&&((a28==1)&&((((((((((input==2)&&((a29==5)||(a29==6)))&&(a19==2))&&(a11==1))&&!(a7==1))&&!(a24==1))&&!(a20==1))&&(a22==1))&&!(a0==1))&&!(a25==1))))){ + a19 = 1; + a29 = 8; + a25 = 1; + a0 = 1; + a11 = 0; + return 24; + } else if((((a7==1)&&(((a22==1)&&(((a14==9)&&((a19==4)&&(((a28==1)&&(!(a25==1)&&(!(a24==1)&&(input==2))))&&!(a0==1))))&&(a29==6)))&&(a20==1)))&&(a11==1))){ + a0 = 1; + a24 = 1; + a11 = 0; + a19 = 1; + a29 = 9; + a7 = 0; + return 23; + } else if(((a14==10)&&(((((a28==1)&&((((a11==1)&&((((input==2)&&((a29==8)||(a29==9)))&&(a22==1))&&(a19==4)))&&(a0==1))&&!(a20==1)))&&!(a7==1))&&(a24==1))&&!(a25==1)))){ + a29 = 7; + a19 = 5; + a7 = 1; + a20 = 1; + a14 = 9; + a25 = 1; + a0 = 0; + return -1; + } else if(((!(a25==1)&&((a22==1)&&(!(a20==1)&&((a24==1)&&((((a14==9)&&((a29==5)&&(((a19==1)&&(input==5))&&(a11==1))))&&(a0==1))&&(a7==1))))))&&(a28==1))){ + a29 = 7; + a25 = 1; + a11 = 0; + a14 = 8; + a20 = 1; + a19 = 5; + a7 = 0; + a0 = 0; + return -1; + } else if(((a22==1)&&(((a28==1)&&(((a14==8)&&((a19==4)&&((!(a20==1)&&((!(a25==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==3)))&&(a24==1)))&&!(a0==1))))&&!(a11==1)))&&(a7==1)))){ + a24 = 0; + a11 = 1; + a14 = 9; + a19 = 5; + a29 = 8; + return 24; + } else if((!(a24==1)&&(((a19==5)&&((a11==1)&&(!(a25==1)&&((a22==1)&&((((a28==1)&&((((a29==8)||(a29==9))&&(input==6))&&(a14==9)))&&(a0==1))&&(a20==1))))))&&(a7==1)))){ + a19 = 1; + a25 = 1; + a29 = 5; + a14 = 8; + a24 = 1; + return -1; + } else if(((a22==1)&&((((a25==1)&&((a11==1)&&((((a14==8)&&(!(a0==1)&&(((((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))||((a29==6)&&(a19==5)))&&(input==4))))&&(a20==1))&&(a24==1))))&&(a7==1))&&(a28==1)))){ + a29 = 9; + a19 = 3; + return -1; + } else if(((a25==1)&&((((a14==8)&&(!(a0==1)&&(((((((a24==1)&&(input==3))&&!(a11==1))&&(a29==8))&&(a19==2))&&!(a7==1))&&(a22==1))))&&(a28==1))&&!(a20==1)))){ + a19 = 5; + a24 = 0; + a14 = 9; + a29 = 5; + a11 = 1; + return 23; + } else if((((((!(a20==1)&&((!(a25==1)&&(!(a0==1)&&((!(a7==1)&&((input==1)&&(a22==1)))&&(a19==4))))&&(a28==1)))&&(a29==7))&&(a14==9))&&(a11==1))&&(a24==1))){ + a29 = 8; + a25 = 1; + a7 = 1; + a0 = 1; + a24 = 0; + a19 = 5; + return 21; + } else if(((a25==1)&&((a7==1)&&(!(a24==1)&&(!(a0==1)&&(((a22==1)&&(!(a20==1)&&((a14==8)&&(((input==3)&&((((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))||((a29==6)&&(a19==5))))&&(a28==1)))))&&!(a11==1))))))){ + a24 = 1; + a19 = 1; + a29 = 5; + a0 = 1; + a20 = 1; + a11 = 1; + return -1; + } else if((!(a0==1)&&((a19==2)&&((a7==1)&&((a28==1)&&((a11==1)&&(((((a25==1)&&((a14==9)&&((input==6)&&((a29==6)||(a29==7)))))&&!(a24==1))&&(a22==1))&&(a20==1)))))))){ + a25 = 0; + a7 = 0; + a29 = 5; + a24 = 1; + a14 = 8; + return 24; + } else if((((a0==1)&&((a7==1)&&((((a14==9)&&((a19==2)&&((a25==1)&&(((((a29==8)||(a29==9))&&(input==4))&&(a20==1))&&(a24==1)))))&&!(a11==1))&&(a28==1))))&&(a22==1))){ + a20 = 0; + a29 = 5; + a11 = 1; + a7 = 0; + a19 = 4; + return 23; + } else if((!(a7==1)&&(((a19==4)&&((a0==1)&&((!(a20==1)&&((a22==1)&&((!(a24==1)&&((a28==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==1))))&&(a14==8))))&&(a11==1))))&&(a25==1)))){ + a11 = 0; + a20 = 1; + a0 = 0; + a19 = 1; + a24 = 1; + a29 = 8; + return 23; + } else if((!(a7==1)&&(((a28==1)&&((a11==1)&&(!(a24==1)&&((a0==1)&&(((a20==1)&&(((input==6)&&(((a29==9)&&(a19==2))||((a29==5)&&(a19==3))))&&(a22==1)))&&(a14==9))))))&&!(a25==1)))){ + a19 = 5; + a24 = 1; + a7 = 1; + a25 = 1; + a29 = 6; + return -1; + } else if((!(a11==1)&&((a14==9)&&((a22==1)&&((a28==1)&&((a0==1)&&((a19==4)&&((((((a29==7)&&(input==1))&&!(a7==1))&&(a24==1))&&!(a20==1))&&(a25==1))))))))){ + a25 = 0; + a19 = 5; + a29 = 8; + a20 = 1; + return 24; + } else if(((a14==8)&&((a0==1)&&((a19==2)&&(!(a25==1)&&((!(a7==1)&&((((a28==1)&&(((input==1)&&(((a29==5)||(a29==6))||(a29==7)))&&!(a11==1)))&&(a22==1))&&(a24==1)))&&!(a20==1))))))){ + a29 = 5; + a19 = 1; + a20 = 1; + a11 = 1; + a25 = 1; + a7 = 1; + return -1; + } else if((((((a28==1)&&((a20==1)&&(((!(a0==1)&&(((a19==3)&&((input==2)&&((a29==5)||(a29==6))))&&!(a7==1)))&&(a22==1))&&!(a24==1))))&&(a11==1))&&!(a25==1))&&(a14==9))){ + a0 = 1; + a29 = 8; + a19 = 4; + a14 = 8; + a20 = 0; + a11 = 0; + return 24; + } else if((!(a11==1)&&((((((a22==1)&&((a7==1)&&((((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))&&(input==2))&&!(a0==1))&&(a28==1))))&&(a20==1))&&(a24==1))&&(a25==1))&&(a14==9)))){ + a19 = 1; + a29 = 8; + a14 = 8; + a11 = 1; + a0 = 1; + a7 = 0; + a25 = 0; + return 23; + } else if((((a22==1)&&((a24==1)&&((((a14==9)&&(!(a7==1)&&((a19==3)&&((a29==5)&&((!(a0==1)&&(input==4))&&(a28==1))))))&&!(a25==1))&&(a20==1))))&&(a11==1))){ + a0 = 1; + a11 = 0; + a19 = 5; + a7 = 1; + a29 = 9; + a25 = 1; + return -1; + } else if((((a22==1)&&((a28==1)&&((((a24==1)&&((a19==5)&&(!(a20==1)&&(((a11==1)&&((input==1)&&(((a29==6)||(a29==7))||(a29==8))))&&(a14==9)))))&&(a7==1))&&!(a0==1))))&&(a25==1))){ + a11 = 0; + a29 = 8; + a14 = 8; + a0 = 1; + a7 = 0; + a24 = 0; + return 23; + } else if(((a19==3)&&((((a24==1)&&(((a11==1)&&(!(a20==1)&&((a22==1)&&((((a14==9)&&(input==6))&&(a7==1))&&(a25==1)))))&&(a0==1)))&&(a28==1))&&(a29==5)))){ + a19 = 1; + a14 = 8; + a20 = 1; + return -1; + } else if((((((((a19==2)&&((a29==6)&&((a0==1)&&((a14==8)&&((a22==1)&&((input==1)&&!(a20==1)))))))&&!(a7==1))&&(a28==1))&&!(a24==1))&&!(a11==1))&&(a25==1))){ + a24 = 1; + a20 = 1; + a19 = 4; + a11 = 1; + return -1; + } else if((((((((a25==1)&&((a11==1)&&((((a24==1)&&((input==5)&&((a29==7)||(a29==8))))&&(a7==1))&&(a28==1))))&&(a19==4))&&(a22==1))&&(a14==10))&&(a0==1))&&(a20==1))){ + a29 = 5; + a19 = 1; + a14 = 8; + return -1; + } else if(((a14==9)&&((a19==4)&&(((!(a11==1)&&(!(a7==1)&&(!(a24==1)&&((((a22==1)&&(((a29==8)||(a29==9))&&(input==2)))&&(a28==1))&&(a20==1)))))&&(a25==1))&&!(a0==1))))){ + a20 = 0; + a19 = 3; + a0 = 1; + a25 = 0; + a29 = 8; + a14 = 8; + a7 = 1; + return -1; + } else if(((a11==1)&&((((a0==1)&&(((a20==1)&&((a7==1)&&((a22==1)&&((a14==10)&&((a19==1)&&((a29==8)&&(input==5)))))))&&(a28==1)))&&!(a25==1))&&!(a24==1)))){ + a24 = 1; + a20 = 0; + a14 = 9; + a25 = 1; + return 23; + } else if((((!(a25==1)&&(((a22==1)&&(((a11==1)&&(((a7==1)&&((a29==9)&&((input==4)&&(a14==8))))&&(a19==2)))&&!(a0==1)))&&(a20==1)))&&(a28==1))&&!(a24==1))){ + a29 = 5; + a24 = 1; + a7 = 0; + return 21; + } else if((((a28==1)&&((((a14==9)&&((a22==1)&&(!(a7==1)&&((((a24==1)&&(((a29==8)||(a29==9))&&(input==2)))&&!(a20==1))&&(a19==3)))))&&!(a11==1))&&!(a25==1)))&&!(a0==1))){ + a20 = 1; + a14 = 8; + a11 = 1; + a0 = 1; + a29 = 5; + a19 = 1; + a7 = 1; + a25 = 1; + return -1; + } else if((((a14==9)&&(!(a20==1)&&((((a25==1)&&((!(a24==1)&&(((((a29==5)&&(a19==3))||(((a29==8)&&(a19==2))||((a29==9)&&(a19==2))))&&(input==5))&&!(a11==1)))&&(a28==1)))&&(a22==1))&&(a7==1))))&&!(a0==1))){ + a29 = 5; + a25 = 0; + a7 = 0; + a0 = 1; + a11 = 1; + a24 = 1; + a19 = 4; + return -1; + } else if(((a22==1)&&(!(a11==1)&&((a14==8)&&((!(a24==1)&&((!(a20==1)&&(((a25==1)&&((a28==1)&&(((a29==6)||(a29==7))&&(input==6))))&&!(a0==1)))&&!(a7==1)))&&(a19==3)))))){ + a20 = 1; + a19 = 1; + a29 = 5; + a14 = 9; + a7 = 1; + return 23; + } else if((((a28==1)&&(((a14==8)&&(((((a19==5)&&((a29==8)&&(!(a25==1)&&((!(a7==1)&&((a11==1)&&!(a20==1)))&&!(a24==1)))))||((a19==5)&&(((!(a24==1)&&(!(a7==1)&&((a11==1)&&!(a20==1))))&&!(a25==1))&&(a29==9))))||((a19==1)&&(((a25==1)&&((((a20==1)&&!(a11==1))&&(a7==1))&&(a24==1)))&&(a29==5))))&&(input==4)))&&!(a0==1)))&&(a22==1))){ + a19 = 2; + a25 = 1; + a24 = 1; + a20 = 1; + a29 = 6; + a11 = 1; + a7 = 1; + return 23; + } else if((((((a22==1)&&(((((((a28==1)&&((input==2)&&((a29==7)||((a29==5)||(a29==6)))))&&(a24==1))&&!(a11==1))&&(a19==1))&&(a14==9))&&!(a20==1)))&&(a25==1))&&(a0==1))&&!(a7==1))){ + a7 = 1; + a14 = 8; + a11 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if(((a11==1)&&(!(a20==1)&&((a24==1)&&(((a14==10)&&((a28==1)&&((a22==1)&&(((((input==4)&&((a29==7)||(a29==8)))&&(a0==1))&&!(a25==1))&&(a19==3)))))&&(a7==1)))))){ + a25 = 1; + a14 = 9; + a0 = 0; + a29 = 7; + a11 = 0; + a19 = 1; + a24 = 0; + return -1; + } else if(((!(a25==1)&&(((a7==1)&&((!(a0==1)&&(((a22==1)&&(((a14==8)&&(((a29==8)||(a29==9))&&(input==5)))&&(a28==1)))&&(a19==5)))&&!(a11==1)))&&!(a24==1)))&&(a20==1))){ + a11 = 1; + a24 = 1; + a20 = 0; + a29 = 8; + return 21; + } else if(((((a22==1)&&((a20==1)&&((a11==1)&&(((a7==1)&&(((a25==1)&&((input==2)&&(((a19==5)&&(a29==6))||(((a29==9)&&(a19==4))||((a19==5)&&(a29==5))))))&&(a14==8)))&&!(a0==1)))))&&(a28==1))&&(a24==1))){ + a20 = 0; + a19 = 5; + a29 = 6; + a25 = 0; + return 21; + } else if(((a14==9)&&((a28==1)&&(((!(a11==1)&&(((a29==6)&&(((((a25==1)&&(input==3))&&(a20==1))&&!(a24==1))&&(a19==1)))&&(a22==1)))&&!(a7==1))&&!(a0==1))))){ + a14 = 8; + a24 = 1; + a19 = 3; + a25 = 0; + a7 = 1; + a29 = 7; + a11 = 1; + return 24; + } else if(((a29==9)&&(((((a14==10)&&((a24==1)&&((a22==1)&&(((a28==1)&&((a20==1)&&((a7==1)&&(input==2))))&&(a0==1)))))&&(a11==1))&&(a19==4))&&(a25==1)))){ + a7 = 0; + a29 = 5; + a14 = 9; + a25 = 0; + a19 = 5; + a11 = 0; + a0 = 0; + return -1; + } else if(((!(a24==1)&&(((a22==1)&&((a19==3)&&(!(a20==1)&&(((((((a29==7)||((a29==5)||(a29==6)))&&(input==4))&&!(a7==1))&&(a14==8))&&(a25==1))&&!(a0==1)))))&&(a28==1)))&&(a11==1))){ + a29 = 5; + a11 = 0; + a19 = 2; + a25 = 0; + a0 = 1; + return 23; + } else if(((a7==1)&&(((!(a11==1)&&((a29==6)&&(((((((a28==1)&&(input==1))&&(a14==9))&&(a22==1))&&(a19==3))&&!(a25==1))&&(a0==1))))&&!(a24==1))&&!(a20==1)))){ + a29 = 5; + a20 = 1; + a14 = 8; + a11 = 1; + a19 = 1; + a25 = 1; + a24 = 1; + return -1; + } else if(((a25==1)&&((a7==1)&&(!(a24==1)&&((((a19==1)&&((a14==9)&&(!(a11==1)&&(((((a29==6)||(a29==7))&&(input==1))&&(a22==1))&&(a0==1)))))&&(a20==1))&&(a28==1)))))){ + a25 = 0; + a14 = 8; + a7 = 0; + a29 = 9; + a0 = 0; + a11 = 1; + return 24; + } else if((!(a0==1)&&((a19==1)&&(((a14==8)&&(((a28==1)&&((a22==1)&&(((!(a11==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==3)))&&!(a7==1))&&(a24==1))))&&(a20==1)))&&!(a25==1))))){ + a25 = 1; + a0 = 1; + a7 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if((!(a20==1)&&((a19==5)&&((a11==1)&&(((a25==1)&&(!(a24==1)&&((a28==1)&&((!(a7==1)&&(((input==3)&&((a29==5)||(a29==6)))&&(a14==8)))&&(a22==1)))))&&(a0==1)))))){ + a25 = 0; + a24 = 1; + a7 = 1; + a19 = 4; + a29 = 6; + a20 = 1; + a0 = 0; + return 21; + } else if((!(a0==1)&&(((a28==1)&&((((a7==1)&&(((((a14==8)&&((input==2)&&(a20==1)))&&(a11==1))&&(a22==1))&&(a29==6)))&&(a24==1))&&(a19==4)))&&!(a25==1)))){ + a19 = 5; + a14 = 9; + a29 = 5; + a0 = 1; + a11 = 0; + a24 = 0; + a25 = 1; + return 23; + } else if(((a25==1)&&(((a14==9)&&((a19==3)&&(((a22==1)&&((!(a20==1)&&((a24==1)&&(((input==3)&&((a29==7)||(a29==8)))&&(a0==1))))&&(a7==1)))&&!(a11==1))))&&(a28==1)))){ + a7 = 0; + a20 = 1; + a25 = 0; + a29 = 9; + a19 = 1; + return -1; + } else if((!(a7==1)&&(!(a25==1)&&((((a22==1)&&(((a14==9)&&(!(a11==1)&&((a0==1)&&(!(a24==1)&&((input==1)&&(((a29==6)||(a29==7))||(a29==8)))))))&&(a19==3)))&&(a28==1))&&(a20==1))))){ + a11 = 1; + a25 = 1; + a7 = 1; + a19 = 1; + a24 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if((((((a28==1)&&((a14==8)&&((a24==1)&&((a7==1)&&(((((input==3)&&(((a29==5)||(a29==6))||(a29==7)))&&!(a25==1))&&(a19==5))&&(a22==1))))))&&!(a11==1))&&(a20==1))&&!(a0==1))){ + a11 = 1; + a25 = 1; + a29 = 5; + a19 = 1; + return 23; + } else if(((((!(a25==1)&&((((a22==1)&&((a19==1)&&((a14==9)&&((a28==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==5))))))&&!(a0==1))&&!(a7==1)))&&(a11==1))&&!(a20==1))&&!(a24==1))){ + a19 = 5; + a7 = 1; + a11 = 0; + a29 = 9; + a0 = 1; + return 21; + } else if(((a14==9)&&(!(a0==1)&&((a29==9)&&((a19==3)&&((!(a24==1)&&((a20==1)&&((a28==1)&&((((input==1)&&(a22==1))&&(a25==1))&&!(a11==1)))))&&!(a7==1))))))){ + a7 = 1; + a24 = 1; + a11 = 1; + a0 = 1; + a14 = 8; + a29 = 5; + a19 = 1; + return -1; + } else if(((a22==1)&&(((a14==8)&&(((((!(a7==1)&&(((a28==1)&&((input==1)&&((a29==8)||(a29==9))))&&!(a25==1)))&&(a19==5))&&(a24==1))&&!(a11==1))&&(a0==1)))&&(a20==1)))){ + a19 = 1; + a25 = 1; + a7 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if((((a19==3)&&((((a25==1)&&((a11==1)&&(!(a24==1)&&((!(a20==1)&&((((a29==6)||(a29==7))&&(input==3))&&!(a0==1)))&&(a7==1)))))&&(a14==8))&&(a28==1)))&&(a22==1))){ + a29 = 5; + a24 = 1; + a19 = 4; + a14 = 9; + return 24; + } else if(((a24==1)&&((a19==1)&&((a20==1)&&((a14==9)&&((a28==1)&&(((a25==1)&&((a22==1)&&(!(a11==1)&&(!(a0==1)&&((input==2)&&(a7==1))))))&&(a29==9)))))))){ + a29 = 7; + a19 = 5; + a11 = 1; + a14 = 8; + return 23; + } else if(((!(a25==1)&&(((a28==1)&&(((a20==1)&&((((a24==1)&&((input==2)&&(((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))))&&(a22==1))&&(a14==9)))&&(a7==1)))&&!(a11==1)))&&!(a0==1))){ + a0 = 1; + a14 = 8; + a29 = 5; + a11 = 1; + a19 = 1; + a25 = 1; + return -1; + } else if((((a7==1)&&(((a19==2)&&((a22==1)&&(((a20==1)&&(!(a0==1)&&((((((a29==7)||(a29==8))||(a29==9))&&(input==6))&&!(a24==1))&&(a11==1))))&&(a28==1))))&&(a14==9)))&&!(a25==1))){ + a29 = 5; + a25 = 1; + a19 = 1; + a14 = 8; + a0 = 1; + a24 = 1; + return -1; + } else if(((((a7==1)&&((!(a25==1)&&((((((((a29==8)||(a29==9))&&(input==3))&&(a20==1))&&(a0==1))&&(a19==5))&&(a14==9))&&!(a24==1)))&&(a28==1)))&&(a22==1))&&(a11==1))){ + a0 = 0; + a7 = 0; + a24 = 1; + a14 = 8; + a19 = 1; + a29 = 6; + a20 = 0; + return 24; + } else if(((a7==1)&&((a0==1)&&(((a20==1)&&((a19==2)&&((a25==1)&&((a14==9)&&(((a28==1)&&((a22==1)&&((input==4)&&(((a29==6)||(a29==7))||(a29==8)))))&&(a11==1))))))&&!(a24==1))))){ + a25 = 0; + a7 = 0; + a29 = 6; + a24 = 1; + a20 = 0; + return -1; + } else if((((a11==1)&&(((a7==1)&&(!(a0==1)&&((((a14==8)&&((a19==2)&&(((input==2)&&(((a29==6)||(a29==7))||(a29==8)))&&(a20==1))))&&(a22==1))&&!(a25==1))))&&(a28==1)))&&(a24==1))){ + a29 = 7; + a0 = 1; + a24 = 0; + a11 = 0; + a20 = 0; + a19 = 3; + return -1; + } else if((!(a11==1)&&((((((((((a0==1)&&((input==2)&&(a25==1)))&&(a14==8))&&(a20==1))&&(a28==1))&&!(a24==1))&&(a22==1))&&(a29==6))&&(a19==5))&&!(a7==1)))){ + a20 = 0; + a19 = 1; + a29 = 9; + a25 = 0; + return 23; + } else if(((!(a0==1)&&((a11==1)&&(((a7==1)&&((a14==9)&&((a28==1)&&((!(a24==1)&&(!(a20==1)&&(((a29==8)||(a29==9))&&(input==6))))&&!(a25==1)))))&&(a22==1))))&&(a19==1))){ + a19 = 4; + a11 = 0; + a0 = 1; + a29 = 9; + return 23; + } else if(((a24==1)&&((((((((((a25==1)&&((a29==7)&&(input==1)))&&(a19==5))&&!(a0==1))&&(a14==9))&&(a22==1))&&!(a20==1))&&(a11==1))&&!(a7==1))&&(a28==1)))){ + a19 = 2; + a14 = 8; + a7 = 1; + a25 = 0; + a20 = 1; + return -1; + } else if((!(a11==1)&&(!(a25==1)&&((((a20==1)&&(((!(a0==1)&&((a7==1)&&((input==4)&&(((a29==5)&&(a19==4))||(((a19==3)&&(a29==8))||((a19==3)&&(a29==9)))))))&&(a28==1))&&!(a24==1)))&&(a22==1))&&(a14==8))))){ + a0 = 1; + a24 = 1; + a19 = 1; + a29 = 5; + a25 = 1; + a11 = 1; + return -1; + } else if(((((a22==1)&&(((((a14==8)&&((!(a0==1)&&(((input==5)&&((a29==7)||((a29==5)||(a29==6))))&&(a7==1)))&&!(a24==1)))&&(a11==1))&&(a20==1))&&!(a25==1)))&&(a28==1))&&(a19==3))){ + a25 = 1; + a29 = 6; + a24 = 1; + a19 = 5; + a14 = 9; + return 24; + } else if(((a11==1)&&((a20==1)&&(((((((a7==1)&&((((a19==4)&&(input==5))&&!(a25==1))&&!(a24==1)))&&!(a0==1))&&(a28==1))&&(a22==1))&&(a29==6))&&(a14==9))))){ + a0 = 1; + a29 = 5; + a19 = 1; + a24 = 1; + a25 = 1; + a14 = 8; + return -1; + } else if(((((a7==1)&&(((a29==5)&&(!(a24==1)&&((a28==1)&&((a19==4)&&(((a25==1)&&((input==5)&&!(a0==1)))&&(a14==9))))))&&!(a11==1)))&&!(a20==1))&&(a22==1))){ + a0 = 1; + a29 = 7; + a14 = 8; + a25 = 0; + a19 = 3; + return 23; + } else if(((a28==1)&&((((((a20==1)&&((!(a11==1)&&((((input==4)&&((a29==9)||((a29==7)||(a29==8))))&&(a19==1))&&!(a24==1)))&&(a14==9)))&&(a22==1))&&(a0==1))&&!(a25==1))&&(a7==1)))){ + a29 = 7; + a19 = 4; + a24 = 1; + a11 = 1; + a14 = 8; + a25 = 1; + a0 = 0; + return 21; + } else if((((!(a24==1)&&((((((a22==1)&&(!(a20==1)&&((((a29==6)||(a29==7))&&(input==1))&&(a19==4))))&&!(a0==1))&&(a7==1))&&(a14==9))&&(a11==1)))&&(a28==1))&&!(a25==1))){ + a7 = 0; + a29 = 7; + a14 = 8; + a24 = 1; + a19 = 2; + return -1; + } else if(((a11==1)&&((a28==1)&&((!(a25==1)&&(((a20==1)&&(((((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))&&(input==5))&&(a22==1))&&!(a24==1))&&(a0==1)))&&!(a7==1)))&&(a14==9))))){ + a14 = 8; + a7 = 1; + a25 = 1; + a24 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((a7==1)&&((a14==9)&&(((a28==1)&&((((((a19==1)&&((!(a11==1)&&(input==4))&&!(a20==1)))&&!(a25==1))&&(a29==9))&&(a24==1))&&(a0==1)))&&(a22==1))))){ + a0 = 0; + a19 = 3; + a14 = 8; + a11 = 1; + a29 = 6; + return 23; + } else if(((!(a0==1)&&(((a25==1)&&((a28==1)&&((((!(a11==1)&&(!(a24==1)&&((input==3)&&((a29==8)||((a29==6)||(a29==7))))))&&(a22==1))&&(a14==8))&&(a20==1))))&&(a7==1)))&&(a19==1))){ + a20 = 0; + a11 = 1; + a7 = 0; + a29 = 8; + a25 = 0; + a24 = 1; + a19 = 5; + return -1; + } else if((((a14==9)&&((!(a7==1)&&(!(a20==1)&&((a24==1)&&(((a25==1)&&((((((a19==4)&&(a29==8))||((a19==4)&&(a29==9)))||((a19==5)&&(a29==5)))&&(input==3))&&(a28==1)))&&(a22==1)))))&&(a11==1)))&&(a0==1))){ + a29 = 6; + a19 = 5; + a7 = 1; + a24 = 0; + a14 = 8; + a11 = 0; + a25 = 0; + return 24; + } else if(((a22==1)&&((a14==10)&&(((a19==1)&&((!(a24==1)&&((a20==1)&&((a28==1)&&(((a0==1)&&(((a29==6)||(a29==7))&&(input==4)))&&(a7==1)))))&&(a11==1)))&&(a25==1))))){ + a14 = 8; + a24 = 1; + a29 = 5; + return -1; + } else if((((((!(a0==1)&&((((a25==1)&&((a7==1)&&(((input==6)&&((a29==7)||(a29==8)))&&!(a20==1))))&&(a14==9))&&(a28==1)))&&!(a24==1))&&(a19==5))&&!(a11==1))&&(a22==1))){ + a29 = 6; + a0 = 1; + a19 = 2; + return 24; + } else if(((((a28==1)&&((a14==9)&&((a22==1)&&(!(a11==1)&&((a20==1)&&(!(a7==1)&&((a25==1)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==4))&&(a19==5)))))))))&&(a0==1))&&(a24==1))){ + a7 = 1; + a29 = 8; + a24 = 0; + a19 = 1; + a0 = 0; + a14 = 8; + a20 = 0; + return 24; + } else if((((a14==8)&&(!(a11==1)&&(((!(a7==1)&&((a20==1)&&(!(a0==1)&&((a25==1)&&((((a19==4)&&(a29==6))||(((a19==3)&&(a29==9))||((a19==4)&&(a29==5))))&&(input==6))))))&&(a28==1))&&(a22==1))))&&(a24==1))){ + a19 = 4; + a25 = 0; + a29 = 9; + a7 = 1; + return -1; + } else if(((a11==1)&&(((a28==1)&&((a14==9)&&((!(a25==1)&&(((a7==1)&&(((!(a0==1)&&(input==4))&&(a22==1))&&(a29==7)))&&!(a20==1)))&&!(a24==1))))&&(a19==3)))){ + a19 = 4; + a14 = 8; + return -1; + } else if((((a14==8)&&((a22==1)&&((a20==1)&&(((a24==1)&&(!(a25==1)&&(!(a7==1)&&(((((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))&&(input==3))&&(a0==1)))))&&!(a11==1)))))&&(a28==1))){ + a0 = 0; + a20 = 0; + a29 = 9; + a19 = 4; + a7 = 1; + a24 = 0; + return 21; + } else if((!(a11==1)&&(!(a7==1)&&((((a20==1)&&(((a28==1)&&((((input==2)&&(((a19==3)&&(a29==9))||((a29==5)&&(a19==4))))&&(a22==1))&&!(a0==1)))&&!(a25==1)))&&(a14==9))&&!(a24==1))))){ + a25 = 1; + a29 = 9; + a14 = 8; + a11 = 1; + a19 = 1; + a24 = 1; + return 23; + } else if((((a28==1)&&(!(a25==1)&&(((!(a7==1)&&(((a22==1)&&(((((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))&&(input==1))&&(a0==1)))&&!(a24==1)))&&(a20==1))&&(a14==9))))&&(a11==1))){ + a0 = 0; + a29 = 9; + a25 = 1; + a19 = 5; + a14 = 8; + return 24; + } else if((((a11==1)&&((((a22==1)&&(!(a25==1)&&((a19==4)&&((a24==1)&&((a14==9)&&((a28==1)&&(((a29==6)||(a29==7))&&(input==3))))))))&&!(a0==1))&&(a20==1)))&&(a7==1))){ + a29 = 8; + a7 = 0; + a19 = 2; + a0 = 1; + a20 = 0; + return 24; + } else if((((a24==1)&&(((((!(a25==1)&&(((a14==8)&&((input==1)&&((((a29==8)&&(a19==1))||((a29==9)&&(a19==1)))||((a29==5)&&(a19==2)))))&&!(a0==1)))&&!(a11==1))&&(a22==1))&&!(a7==1))&&(a28==1)))&&(a20==1))){ + a19 = 5; + a29 = 7; + a20 = 0; + a11 = 1; + a25 = 1; + return 23; + } else if((((a22==1)&&((!(a20==1)&&(((((!(a25==1)&&((input==2)&&(((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))))&&!(a24==1))&&(a14==9))&&!(a7==1))&&!(a11==1)))&&(a0==1)))&&(a28==1))){ + a29 = 9; + a14 = 8; + a11 = 1; + a0 = 0; + a19 = 4; + return 21; + } else if(((a24==1)&&(((!(a25==1)&&((a19==3)&&((((a28==1)&&((!(a0==1)&&((input==4)&&(((a29==6)||(a29==7))||(a29==8))))&&(a22==1)))&&(a20==1))&&!(a11==1))))&&(a7==1))&&(a14==9)))){ + a7 = 0; + a11 = 1; + a29 = 9; + a14 = 8; + a20 = 0; + return 21; + } else if((((((a28==1)&&(((a20==1)&&((a29==5)&&((a22==1)&&((a7==1)&&((a19==1)&&((input==1)&&(a14==9)))))))&&(a0==1)))&&(a24==1))&&!(a25==1))&&!(a11==1))){ + a25 = 1; + a19 = 4; + return 23; + } else if((!(a0==1)&&((a14==9)&&((((!(a7==1)&&((a11==1)&&(((a19==2)&&((a28==1)&&(((a29==6)||(a29==7))&&(input==5))))&&!(a24==1))))&&(a22==1))&&(a20==1))&&(a25==1))))){ + a19 = 1; + a24 = 1; + a7 = 1; + a25 = 0; + a29 = 8; + return -1; + } else if((((!(a7==1)&&((!(a0==1)&&((a24==1)&&(((a14==9)&&(!(a20==1)&&((a28==1)&&((input==1)&&((a29==9)||((a29==7)||(a29==8)))))))&&!(a11==1))))&&(a19==2)))&&(a25==1))&&(a22==1))){ + a14 = 8; + a29 = 5; + a7 = 1; + a0 = 1; + a19 = 1; + a11 = 1; + a20 = 1; + return -1; + } else if((((a7==1)&&((((((a28==1)&&(!(a0==1)&&((a11==1)&&((a22==1)&&((input==2)&&(((a29==6)||(a29==7))||(a29==8)))))))&&!(a25==1))&&!(a20==1))&&(a24==1))&&(a14==8)))&&(a19==3))){ + a25 = 1; + a29 = 7; + a20 = 1; + return 23; + } else if(((((a24==1)&&(!(a7==1)&&(((a0==1)&&(((a28==1)&&(!(a11==1)&&((((a29==6)||(a29==7))&&(input==3))&&(a22==1))))&&(a19==1)))&&(a14==8))))&&(a25==1))&&!(a20==1))){ + a29 = 9; + a11 = 1; + a20 = 1; + a0 = 0; + a19 = 3; + return 23; + } else if(((((a28==1)&&((!(a20==1)&&((((!(a24==1)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==4))&&!(a25==1)))&&(a7==1))&&(a19==1))&&!(a11==1)))&&(a22==1)))&&(a14==8))&&(a0==1))){ + a14 = 9; + a19 = 3; + a29 = 8; + a7 = 0; + a24 = 1; + a20 = 1; + return 23; + } else if((!(a20==1)&&((a22==1)&&((a28==1)&&((!(a7==1)&&(!(a24==1)&&(!(a25==1)&&((a11==1)&&(((input==5)&&(((a29==6)&&(a19==4))||(((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))))&&!(a0==1))))))&&(a14==8)))))){ + a19 = 3; + a14 = 9; + a29 = 8; + a24 = 1; + return 24; + } else if(((((a11==1)&&((a7==1)&&((((a19==1)&&(!(a24==1)&&(!(a0==1)&&((a28==1)&&((input==6)&&(((a29==7)||(a29==8))||(a29==9)))))))&&(a14==8))&&!(a25==1))))&&!(a20==1))&&(a22==1))){ + a29 = 6; + a19 = 5; + a24 = 1; + a7 = 0; + a25 = 1; + return -1; + } else if(((a22==1)&&(((((((a28==1)&&(!(a25==1)&&((a14==10)&&(((a19==1)&&(input==6))&&(a20==1)))))&&(a24==1))&&(a11==1))&&(a0==1))&&(a7==1))&&(a29==9)))){ + a29 = 5; + a14 = 9; + a20 = 0; + return 24; + } else if(((a0==1)&&(((a11==1)&&((a14==10)&&(!(a24==1)&&((a22==1)&&(((((((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))&&(input==2))&&(a20==1))&&(a7==1))&&(a28==1))))))&&(a25==1)))){ + a14 = 8; + a19 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if(((a11==1)&&(((((a14==9)&&((a28==1)&&(!(a7==1)&&(((a25==1)&&(!(a0==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==3))))&&(a22==1)))))&&(a19==1))&&!(a20==1))&&(a24==1)))){ + a7 = 1; + a19 = 5; + a29 = 6; + a11 = 0; + a0 = 1; + a20 = 1; + a25 = 0; + return -1; + } else if(((a20==1)&&((a11==1)&&((!(a25==1)&&((a28==1)&&((a19==4)&&(!(a0==1)&&((!(a7==1)&&(((input==3)&&(a29==6))&&(a14==8)))&&(a22==1))))))&&!(a24==1))))){ + a24 = 1; + a19 = 2; + a14 = 9; + a29 = 7; + return 24; + } else if(((((!(a7==1)&&(((((((a14==9)&&((a20==1)&&(input==4)))&&(a22==1))&&(a11==1))&&(a25==1))&&(a28==1))&&(a19==2)))&&!(a0==1))&&(a29==8))&&!(a24==1))){ + a29 = 5; + a14 = 8; + a19 = 1; + a0 = 1; + a24 = 1; + a7 = 1; + return -1; + } else if((((a28==1)&&((!(a7==1)&&((!(a25==1)&&((!(a24==1)&&(((a14==9)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==5)))&&(a19==5)))&&(a0==1)))&&(a22==1)))&&(a20==1)))&&(a11==1))){ + a24 = 1; + a14 = 10; + a20 = 0; + a25 = 1; + a29 = 6; + a19 = 4; + return 24; + } else if(((a29==6)&&(((!(a7==1)&&((!(a11==1)&&(((a14==8)&&((a22==1)&&(((a28==1)&&(input==1))&&(a20==1))))&&(a19==5)))&&(a24==1)))&&!(a0==1))&&(a25==1)))){ + a19 = 1; + a11 = 1; + a7 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if(((a22==1)&&((a11==1)&&((a28==1)&&((a25==1)&&((((a24==1)&&(!(a0==1)&&(!(a20==1)&&((a19==3)&&((input==2)&&((a29==6)||(a29==7)))))))&&(a14==9))&&!(a7==1))))))){ + a14 = 8; + a0 = 1; + a29 = 5; + a20 = 1; + a7 = 1; + a19 = 1; + return -1; + } else if((((a22==1)&&(((a0==1)&&((a14==8)&&(((a20==1)&&(!(a24==1)&&(((input==1)&&(((a19==3)&&(a29==9))||((a29==5)&&(a19==4))))&&(a7==1))))&&(a28==1))))&&!(a25==1)))&&(a11==1))){ + a29 = 5; + a24 = 1; + a25 = 1; + a19 = 1; + a7 = 0; + a0 = 0; + return 21; + } else if((((a28==1)&&((a20==1)&&((!(a11==1)&&((a24==1)&&((a7==1)&&((((a19==1)&&((a25==1)&&(input==3)))&&(a14==9))&&(a29==8)))))&&!(a0==1))))&&(a22==1))){ + a11 = 1; + a0 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if((!(a20==1)&&((((a0==1)&&(((!(a24==1)&&(!(a7==1)&&((a14==8)&&((((a29==5)||(a29==6))&&(input==1))&&(a19==3)))))&&(a22==1))&&(a25==1)))&&!(a11==1))&&(a28==1)))){ + a7 = 1; + a11 = 1; + a24 = 1; + a19 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if(((((((((((((a0==1)&&(input==4))&&!(a24==1))&&(a22==1))&&(a28==1))&&!(a7==1))&&(a14==9))&&!(a20==1))&&(a29==5))&&!(a11==1))&&(a19==5))&&!(a25==1))){ + a20 = 1; + a14 = 8; + a0 = 0; + a7 = 1; + return -1; + } else if(((((a7==1)&&((a24==1)&&((a19==2)&&((((a14==8)&&((!(a11==1)&&(!(a20==1)&&(input==5)))&&(a28==1)))&&(a22==1))&&(a29==9)))))&&(a0==1))&&(a25==1))){ + a11 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((((!(a7==1)&&((a14==9)&&(((a22==1)&&((a25==1)&&((((((a29==6)||(a29==7))||(a29==8))&&(input==2))&&(a19==4))&&(a28==1))))&&(a24==1))))&&(a11==1))&&(a20==1))&&(a0==1))){ + a24 = 0; + a11 = 0; + a14 = 8; + a25 = 0; + a20 = 0; + a7 = 1; + a0 = 0; + a29 = 6; + return -1; + } else if(((a29==8)&&(!(a11==1)&&((!(a24==1)&&(((a14==8)&&(!(a20==1)&&((a25==1)&&((a22==1)&&(!(a0==1)&&((input==3)&&(a28==1)))))))&&(a19==3)))&&(a7==1))))){ + a19 = 5; + a14 = 9; + a11 = 1; + a0 = 1; + return 21; + } else if(((!(a0==1)&&((a20==1)&&((!(a24==1)&&((a11==1)&&((!(a7==1)&&((a22==1)&&((a19==2)&&((input==3)&&((a29==7)||(a29==8))))))&&(a28==1))))&&(a25==1))))&&(a14==8))){ + a29 = 9; + a19 = 5; + a24 = 1; + return 21; + } else if((((a29==8)&&((a22==1)&&(!(a0==1)&&((((a19==1)&&((a28==1)&&((a7==1)&&(((input==5)&&(a11==1))&&!(a24==1)))))&&(a14==9))&&(a20==1)))))&&!(a25==1))){ + a19 = 5; + a20 = 0; + a0 = 1; + a11 = 0; + return -1; + } else if((((!(a0==1)&&((a22==1)&&((a14==9)&&((!(a25==1)&&(((a28==1)&&((a7==1)&&((a20==1)&&(input==1))))&&!(a11==1)))&&(a29==8)))))&&(a19==4))&&(a24==1))){ + a25 = 1; + a7 = 0; + a19 = 1; + a14 = 8; + a20 = 0; + a11 = 1; + a29 = 9; + return 23; + } else if(((!(a25==1)&&((a29==9)&&(((((((((input==1)&&(a24==1))&&(a0==1))&&(a20==1))&&(a28==1))&&!(a7==1))&&!(a11==1))&&(a19==1))&&(a22==1))))&&(a14==8))){ + a19 = 4; + a25 = 1; + a7 = 1; + a24 = 0; + a29 = 7; + a20 = 0; + a0 = 0; + return 23; + } else if(((((!(a7==1)&&((a11==1)&&(((a14==8)&&((a19==2)&&(!(a0==1)&&((((a29==8)||(a29==9))&&(input==4))&&(a22==1)))))&&(a28==1))))&&!(a20==1))&&!(a25==1))&&(a24==1))){ + a19 = 1; + a20 = 1; + a25 = 1; + a29 = 5; + a0 = 1; + a7 = 1; + return -1; + } else if((!(a25==1)&&((((a22==1)&&((!(a20==1)&&((a14==9)&&((a19==1)&&((a11==1)&&((a7==1)&&((input==2)&&((a29==9)||((a29==7)||(a29==8)))))))))&&!(a0==1)))&&(a24==1))&&(a28==1)))){ + a24 = 0; + a19 = 2; + a7 = 0; + a25 = 1; + a0 = 1; + a29 = 8; + a11 = 0; + return -1; + } else if((((a14==8)&&((((a22==1)&&((a19==1)&&((!(a7==1)&&((a11==1)&&(((input==1)&&(a20==1))&&(a28==1))))&&!(a0==1))))&&(a29==7))&&(a24==1)))&&!(a25==1))){ + a0 = 1; + a19 = 5; + a29 = 8; + return -1; + } else if((!(a11==1)&&(((((a7==1)&&(!(a20==1)&&((a14==8)&&(((a28==1)&&((input==3)&&((((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))||((a19==5)&&(a29==6)))))&&!(a25==1)))))&&!(a24==1))&&(a0==1))&&(a22==1)))){ + a11 = 1; + a7 = 0; + a20 = 1; + a29 = 6; + a24 = 1; + a25 = 1; + a19 = 4; + return -1; + } else if((((a19==1)&&(((!(a0==1)&&((a22==1)&&(((a14==9)&&((!(a20==1)&&((input==3)&&(((a29==7)||(a29==8))||(a29==9))))&&(a7==1)))&&(a28==1))))&&(a24==1))&&(a11==1)))&&!(a25==1))){ + a20 = 1; + a0 = 1; + a14 = 8; + a25 = 1; + a29 = 5; + return -1; + } else if(((((((((a22==1)&&(!(a20==1)&&((a24==1)&&((a7==1)&&((input==6)&&((a29==5)||(a29==6)))))))&&(a28==1))&&(a14==9))&&!(a25==1))&&!(a0==1))&&!(a11==1))&&(a19==1))){ + a19 = 2; + a29 = 5; + a0 = 1; + a25 = 1; + a7 = 0; + return -1; + } else if(((a7==1)&&(((a25==1)&&(((((((a0==1)&&(!(a20==1)&&((input==6)&&((a29==7)||(a29==8)))))&&(a28==1))&&(a22==1))&&(a14==8))&&!(a11==1))&&!(a24==1)))&&(a19==5)))){ + a7 = 0; + a20 = 1; + a29 = 8; + a19 = 1; + a25 = 0; + a14 = 9; + a24 = 1; + return 21; + } else if(((a11==1)&&(!(a7==1)&&(((a0==1)&&(((((a14==10)&&((a24==1)&&((a19==4)&&(((a29==8)||(a29==9))&&(input==6)))))&&(a25==1))&&(a20==1))&&(a28==1)))&&(a22==1))))){ + a29 = 5; + a19 = 1; + a14 = 8; + a7 = 1; + return -1; + } else if((((a28==1)&&(((((a19==1)&&(!(a11==1)&&(((!(a25==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==3)))&&!(a20==1))&&(a24==1))))&&(a14==8))&&(a7==1))&&(a0==1)))&&(a22==1))){ + a29 = 7; + a14 = 9; + a20 = 1; + a11 = 1; + return 23; + } else if(((a25==1)&&((a19==4)&&((a28==1)&&(!(a0==1)&&((((((a11==1)&&(((input==3)&&((a29==6)||(a29==7)))&&!(a20==1)))&&(a14==9))&&(a24==1))&&(a7==1))&&(a22==1))))))){ + a20 = 1; + a25 = 0; + a29 = 6; + a14 = 8; + return 21; + } else if(((a22==1)&&(((a20==1)&&((a7==1)&&((a11==1)&&(((!(a25==1)&&(!(a24==1)&&((a14==9)&&((input==6)&&(a29==9)))))&&(a19==4))&&!(a0==1)))))&&(a28==1)))){ + a14 = 8; + a29 = 8; + a11 = 0; + a20 = 0; + a25 = 1; + a19 = 1; + return 24; + } else if(((!(a20==1)&&(((((((a0==1)&&((a28==1)&&((input==4)&&(((a29==5)&&(a19==2))||(((a29==8)&&(a19==1))||((a29==9)&&(a19==1)))))))&&(a22==1))&&(a7==1))&&!(a25==1))&&(a11==1))&&!(a24==1)))&&(a14==9))){ + a24 = 1; + a14 = 8; + a29 = 5; + a19 = 5; + a0 = 0; + return 21; + } else if(((a28==1)&&((a22==1)&&(((a7==1)&&((a24==1)&&(((((a19==4)&&(((a11==1)&&(input==5))&&(a20==1)))&&(a0==1))&&!(a25==1))&&(a29==8))))&&(a14==9))))){ + a25 = 1; + a29 = 5; + a19 = 1; + a14 = 8; + return -1; + } else if((((((a20==1)&&((a22==1)&&(((!(a11==1)&&((((((a29==5)||(a29==6))||(a29==7))&&(input==5))&&(a7==1))&&(a24==1)))&&!(a25==1))&&(a28==1))))&&!(a0==1))&&(a19==3))&&(a14==8))){ + a14 = 9; + a11 = 1; + a29 = 5; + a24 = 0; + return 21; + } else if(((a14==9)&&((a25==1)&&(!(a7==1)&&(((!(a24==1)&&((((!(a11==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==5)))&&!(a20==1))&&(a0==1))&&(a28==1)))&&(a22==1))&&(a19==3)))))){ + a29 = 7; + a0 = 0; + a24 = 1; + a19 = 2; + a11 = 1; + a14 = 8; + a25 = 0; + return 23; + } else if(((((a25==1)&&((((a11==1)&&(((a28==1)&&((!(a0==1)&&((input==2)&&((a29==5)||(a29==6))))&&(a20==1)))&&(a14==9)))&&!(a7==1))&&(a22==1)))&&(a19==4))&&(a24==1))){ + a14 = 8; + a25 = 0; + a7 = 1; + a29 = 7; + a19 = 1; + return 24; + } else if((((a28==1)&&((a19==4)&&((a22==1)&&(((a20==1)&&((!(a24==1)&&((((input==4)&&((a29==6)||(a29==7)))&&!(a25==1))&&!(a11==1)))&&(a14==8)))&&!(a7==1)))))&&(a0==1))){ + a11 = 1; + a29 = 5; + a7 = 1; + a24 = 1; + a19 = 1; + a25 = 1; + return -1; + } else if(((!(a7==1)&&((((((((a0==1)&&(((input==4)&&((a29==6)||(a29==7)))&&(a11==1)))&&(a14==8))&&!(a25==1))&&(a19==5))&&(a22==1))&&(a28==1))&&!(a24==1)))&&!(a20==1))){ + a0 = 0; + a19 = 3; + a29 = 6; + a11 = 0; + a24 = 1; + a25 = 1; + a7 = 1; + return 24; + } else if(((!(a25==1)&&(((a28==1)&&(!(a20==1)&&(((a7==1)&&(!(a11==1)&&((a24==1)&&(((((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))||((a19==4)&&(a29==6)))&&(input==4)))))&&!(a0==1))))&&(a14==9)))&&(a22==1))){ + a25 = 1; + a0 = 1; + a11 = 1; + a29 = 9; + a20 = 1; + a7 = 0; + a19 = 1; + return -1; + } else if((!(a7==1)&&(!(a24==1)&&(((a22==1)&&((((a11==1)&&((!(a20==1)&&((a14==8)&&((input==4)&&((a29==9)||((a29==7)||(a29==8))))))&&(a0==1)))&&(a28==1))&&(a25==1)))&&(a19==1))))){ + a29 = 5; + a7 = 1; + a24 = 1; + a20 = 1; + return -1; + } else if((!(a7==1)&&(((a25==1)&&((a22==1)&&(!(a20==1)&&(!(a11==1)&&(((a19==5)&&(!(a0==1)&&((((a29==6)||(a29==7))&&(input==6))&&!(a24==1))))&&(a28==1))))))&&(a14==8)))){ + a29 = 7; + a19 = 2; + a25 = 0; + a11 = 1; + a7 = 1; + a24 = 1; + return 24; + } else if(((((a0==1)&&((!(a20==1)&&(((a28==1)&&((a29==9)&&((a11==1)&&((a19==2)&&((input==6)&&(a22==1))))))&&(a24==1)))&&!(a7==1)))&&!(a25==1))&&(a14==10))){ + a29 = 7; + a19 = 4; + a14 = 8; + a0 = 0; + return 24; + } else if(((a20==1)&&((a0==1)&&((a11==1)&&(!(a24==1)&&((((((((input==6)&&(a25==1))&&(a14==10))&&(a29==9))&&(a19==1))&&(a28==1))&&(a22==1))&&(a7==1))))))){ + a14 = 8; + a19 = 5; + a0 = 0; + a24 = 1; + a20 = 0; + return 24; + } else if((!(a25==1)&&((((a7==1)&&((a0==1)&&(((!(a20==1)&&((a28==1)&&((a19==4)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==4)))))&&(a11==1))&&(a24==1))))&&(a22==1))&&(a14==10)))){ + a11 = 0; + a0 = 0; + a19 = 5; + a29 = 8; + a20 = 1; + a14 = 8; + return 24; + } else if((((a7==1)&&(((a11==1)&&((a24==1)&&((((a14==9)&&(((input==3)&&(((a19==2)&&(a29==9))||((a19==3)&&(a29==5))))&&(a22==1)))&&(a28==1))&&(a20==1))))&&(a25==1)))&&!(a0==1))){ + a11 = 0; + a19 = 3; + a7 = 0; + a29 = 9; + a14 = 8; + return -1; + } else if((((a25==1)&&(((!(a24==1)&&((((a19==5)&&((a0==1)&&(((input==1)&&(a28==1))&&(a22==1))))&&!(a20==1))&&(a14==9)))&&(a7==1))&&(a29==9)))&&(a11==1))){ + a7 = 0; + a29 = 8; + a0 = 0; + a25 = 0; + a14 = 8; + a19 = 3; + a24 = 1; + return 21; + } else if(((!(a0==1)&&(!(a11==1)&&(((a14==9)&&((((a22==1)&&(((((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))&&(input==6))&&!(a24==1)))&&(a20==1))&&(a28==1)))&&(a7==1))))&&(a25==1))){ + a24 = 1; + a29 = 6; + a20 = 0; + a14 = 8; + a7 = 0; + a19 = 4; + a25 = 0; + a11 = 1; + return 24; + } else if((((a28==1)&&(((a7==1)&&((!(a0==1)&&((a24==1)&&(((a19==5)&&((((a29==8)||(a29==9))&&(input==2))&&(a25==1)))&&!(a20==1))))&&(a22==1)))&&!(a11==1)))&&(a14==8))){ + a14 = 9; + a7 = 0; + a29 = 9; + a24 = 0; + a25 = 0; + a0 = 1; + a19 = 1; + return 23; + } else if(((a11==1)&&(((a24==1)&&((((((a29==9)&&(!(a20==1)&&(((input==3)&&(a0==1))&&(a19==2))))&&(a25==1))&&(a22==1))&&(a14==10))&&!(a7==1)))&&(a28==1)))){ + a29 = 5; + a19 = 1; + a7 = 1; + a14 = 8; + a20 = 1; + return -1; + } else if((((a28==1)&&((!(a11==1)&&(((a24==1)&&((input==1)&&((((a29==5)&&((a25==1)&&(!(a20==1)&&(a7==1))))&&(a19==1))||(((a19==5)&&((a29==8)&&(!(a25==1)&&(!(a7==1)&&(a20==1)))))||((((!(a7==1)&&(a20==1))&&!(a25==1))&&(a29==9))&&(a19==5))))))&&(a14==9)))&&!(a0==1)))&&(a22==1))){ + a11 = 1; + a14 = 8; + a29 = 8; + a25 = 1; + a7 = 1; + a20 = 0; + a19 = 3; + return 24; + } else if(((a25==1)&&(!(a0==1)&&((!(a24==1)&&(!(a7==1)&&((((a19==2)&&((!(a20==1)&&(((a29==6)||(a29==7))&&(input==2)))&&!(a11==1)))&&(a22==1))&&(a14==8))))&&(a28==1))))){ + a20 = 1; + a19 = 3; + a29 = 7; + a11 = 1; + return -1; + } else if((((a19==1)&&(!(a24==1)&&((a22==1)&&(!(a20==1)&&((a7==1)&&(((a25==1)&&(((a28==1)&&((input==3)&&((a29==7)||((a29==5)||(a29==6)))))&&(a0==1)))&&!(a11==1)))))))&&(a14==9))){ + a25 = 0; + a24 = 1; + a20 = 1; + a0 = 0; + a29 = 9; + a11 = 1; + a19 = 4; + a14 = 8; + return 21; + } else if((((a19==5)&&(!(a7==1)&&(!(a0==1)&&(!(a24==1)&&((a22==1)&&((a20==1)&&((a28==1)&&((a14==8)&&((((a29==7)||(a29==8))&&(input==3))&&(a11==1))))))))))&&(a25==1))){ + a20 = 0; + a24 = 1; + a29 = 5; + a7 = 1; + a25 = 0; + return 24; + } else if((!(a25==1)&&(!(a11==1)&&(((a7==1)&&((a28==1)&&((((((a14==8)&&((input==1)&&((a29==8)||((a29==6)||(a29==7)))))&&(a22==1))&&(a19==2))&&(a0==1))&&(a20==1))))&&(a24==1))))){ + a24 = 0; + a0 = 0; + a25 = 1; + a29 = 6; + a19 = 3; + return 21; + } else if(((((!(a11==1)&&((!(a25==1)&&(((a24==1)&&((a14==8)&&((((a29==5)||(a29==6))&&(input==1))&&(a22==1))))&&!(a7==1)))&&(a28==1)))&&!(a0==1))&&(a19==3))&&!(a20==1))){ + a19 = 2; + a29 = 7; + a20 = 1; + return 24; + } else if(((((((a25==1)&&(((a20==1)&&((a11==1)&&((((((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))||((a29==6)&&(a19==3)))&&(input==3))&&(a14==8))))&&(a28==1)))&&(a22==1))&&!(a0==1))&&!(a7==1))&&!(a24==1))){ + a29 = 5; + a0 = 1; + a24 = 1; + a7 = 1; + a19 = 1; + return -1; + } else if(((a14==9)&&((a7==1)&&(((a28==1)&&((((a22==1)&&(((a24==1)&&((((a19==5)&&(a29==5))||(((a19==4)&&(a29==8))||((a29==9)&&(a19==4))))&&(input==2)))&&!(a0==1)))&&(a11==1))&&!(a20==1)))&&!(a25==1))))){ + a29 = 7; + a0 = 1; + a19 = 3; + return -1; + } else if((!(a25==1)&&((a22==1)&&((a19==5)&&(((((a20==1)&&((a0==1)&&((a14==8)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==1))&&(a28==1)))))&&!(a11==1))&&!(a24==1))&&!(a7==1)))))){ + a11 = 1; + a19 = 4; + a29 = 6; + a0 = 0; + a24 = 1; + a7 = 1; + return 24; + } else if(((a19==5)&&((!(a24==1)&&((!(a11==1)&&((a28==1)&&((a7==1)&&((a14==9)&&((((input==1)&&(((a29==5)||(a29==6))||(a29==7)))&&!(a25==1))&&(a0==1))))))&&(a22==1)))&&(a20==1)))){ + a25 = 1; + a19 = 1; + a29 = 5; + a14 = 8; + a11 = 1; + a24 = 1; + return -1; + } else if((((((a11==1)&&((((((a14==9)&&((input==4)&&(((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))))&&!(a20==1))&&(a22==1))&&(a0==1))&&(a25==1)))&&!(a7==1))&&(a28==1))&&!(a24==1))){ + a19 = 3; + a20 = 1; + a24 = 1; + a14 = 8; + a0 = 0; + a29 = 6; + return 24; + } else if((((((a22==1)&&(((!(a11==1)&&((((!(a0==1)&&(input==4))&&(a24==1))&&(a29==7))&&!(a20==1)))&&(a28==1))&&(a19==5)))&&!(a7==1))&&!(a25==1))&&(a14==8))){ + a24 = 0; + a14 = 9; + a11 = 1; + a7 = 1; + a29 = 8; + a0 = 1; + return 21; + } return calculate_output6(input); + } + + int calculate_output6(int input) { + if(((a22==1)&&(!(a0==1)&&((a28==1)&&((((a19==2)&&((a14==8)&&((a20==1)&&((a7==1)&&(((input==6)&&((a29==6)||(a29==7)))&&(a25==1))))))&&!(a24==1))&&(a11==1)))))){ + a24 = 1; + a29 = 6; + a19 = 3; + a20 = 0; + return 24; + } else if(((a19==1)&&(((a14==8)&&(!(a7==1)&&((((((a28==1)&&((a25==1)&&((input==2)&&((a29==7)||(a29==8)))))&&(a22==1))&&(a24==1))&&!(a11==1))&&!(a0==1))))&&!(a20==1)))){ + a0 = 1; + a11 = 1; + a20 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if((!(a7==1)&&(((a28==1)&&((a14==8)&&(!(a0==1)&&(((!(a24==1)&&(((input==3)&&((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))||((a19==3)&&(a29==6))))&&(a22==1)))&&(a11==1))&&!(a20==1)))))&&!(a25==1)))){ + a19 = 3; + a29 = 5; + a25 = 1; + a24 = 1; + return 24; + } else if(((!(a25==1)&&((((((a0==1)&&((((a22==1)&&(((a29==7)||(a29==8))&&(input==4)))&&(a19==5))&&(a14==8)))&&(a7==1))&&(a20==1))&&(a28==1))&&!(a11==1)))&&!(a24==1))){ + a0 = 0; + a11 = 1; + a29 = 8; + a24 = 1; + return 24; + } else if((((((a14==8)&&((a20==1)&&(!(a24==1)&&(((a28==1)&&((!(a0==1)&&(!(a25==1)&&(input==4)))&&!(a7==1)))&&!(a11==1)))))&&(a29==9))&&(a19==4))&&(a22==1))){ + a19 = 5; + a7 = 1; + a25 = 1; + a29 = 7; + a20 = 0; + a14 = 9; + a24 = 1; + return 23; + } else if((((a25==1)&&((!(a20==1)&&((((a22==1)&&((a11==1)&&((a24==1)&&((input==2)&&(((a29==5)&&(a19==3))||(((a29==8)&&(a19==2))||((a19==2)&&(a29==9))))))))&&(a28==1))&&!(a0==1)))&&(a14==9)))&&!(a7==1))){ + a20 = 1; + a29 = 5; + a0 = 1; + a19 = 1; + a7 = 1; + a14 = 8; + return -1; + } else if((((((((((a19==1)&&((!(a0==1)&&((a25==1)&&(input==1)))&&!(a11==1)))&&(a20==1))&&(a7==1))&&(a29==8))&&(a14==9))&&(a24==1))&&(a22==1))&&(a28==1))){ + a20 = 0; + a14 = 8; + return -1; + } else if((((a28==1)&&(((a22==1)&&(!(a25==1)&&(((a11==1)&&((((((a29==7)||(a29==8))&&(input==3))&&!(a20==1))&&!(a24==1))&&!(a7==1)))&&!(a0==1))))&&(a14==8)))&&(a19==3))){ + a19 = 5; + a24 = 1; + a25 = 1; + a29 = 8; + return 23; + } else if(((((a28==1)&&((((!(a25==1)&&((!(a11==1)&&(((a24==1)&&(input==6))&&(a7==1)))&&(a29==6)))&&(a14==8))&&(a19==4))&&(a22==1)))&&(a20==1))&&!(a0==1))){ + a29 = 9; + a11 = 1; + a20 = 0; + a19 = 2; + a7 = 0; + a25 = 1; + return 23; + } else if(((a22==1)&&((a11==1)&&((a20==1)&&((a14==10)&&((a7==1)&&(((((a25==1)&&(((input==3)&&((a29==5)||(a29==6)))&&(a19==1)))&&(a28==1))&&(a0==1))&&(a24==1)))))))){ + a11 = 0; + a25 = 0; + a14 = 8; + a20 = 0; + a19 = 5; + a0 = 0; + a29 = 5; + a24 = 0; + a7 = 0; + return -1; + } else if(((!(a24==1)&&((a20==1)&&((((a19==2)&&((a28==1)&&(((((input==6)&&(a22==1))&&(a29==6))&&(a14==9))&&!(a0==1))))&&!(a25==1))&&(a7==1))))&&(a11==1))){ + a24 = 1; + a29 = 7; + a19 = 3; + a14 = 8; + return 23; + } else if(((!(a20==1)&&(((((!(a11==1)&&((a19==1)&&((((input==3)&&((a29==8)||((a29==6)||(a29==7))))&&(a28==1))&&(a22==1))))&&!(a25==1))&&(a7==1))&&(a14==8))&&!(a24==1)))&&(a0==1))){ + a20 = 1; + a19 = 3; + a14 = 9; + a7 = 0; + a29 = 9; + a24 = 1; + return 24; + } else if((((a22==1)&&(((((a0==1)&&((((a19==5)&&((!(a25==1)&&(!(a7==1)&&(a20==1)))&&(a29==9)))||(((a29==5)&&(((a7==1)&&!(a20==1))&&(a25==1)))&&(a19==1)))&&(input==3)))&&!(a24==1))&&(a14==9))&&(a11==1)))&&(a28==1))){ + a19 = 3; + a29 = 7; + a25 = 1; + a14 = 8; + a7 = 0; + a0 = 0; + a24 = 1; + a20 = 1; + return 24; + } else if(((((a28==1)&&(((a11==1)&&((((((((a25==1)&&(a29==9))&&(a19==5))||((a19==1)&&(!(a25==1)&&(a29==5))))&&(input==1))&&(a22==1))&&(a0==1))&&!(a20==1)))&&(a14==9)))&&(a24==1))&&!(a7==1))){ + a7 = 1; + a14 = 10; + a29 = 7; + a19 = 3; + a25 = 0; + a20 = 1; + return 24; + } else if(((((!(a25==1)&&((a11==1)&&((a24==1)&&((!(a0==1)&&(((((a19==3)&&(a29==5))||(((a29==8)&&(a19==2))||((a19==2)&&(a29==9))))&&(input==2))&&(a20==1)))&&(a28==1)))))&&(a22==1))&&!(a7==1))&&(a14==8))){ + a19 = 1; + a7 = 1; + a25 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if(((((a24==1)&&((a25==1)&&((a22==1)&&(((a11==1)&&((a19==2)&&((a14==9)&&((((a29==8)||(a29==9))&&(input==1))&&(a7==1)))))&&(a20==1)))))&&(a28==1))&&(a0==1))){ + a29 = 5; + a19 = 1; + a14 = 8; + return -1; + } else if(((a28==1)&&((a19==3)&&(((((a25==1)&&((a20==1)&&((a22==1)&&((a7==1)&&((a24==1)&&((input==1)&&(a11==1)))))))&&(a29==7))&&(a0==1))&&(a14==9))))){ + a19 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if((!(a11==1)&&((a22==1)&&((a28==1)&&(((((a19==4)&&((a24==1)&&((a14==9)&&(((input==2)&&((a29==9)||((a29==7)||(a29==8))))&&(a7==1)))))&&(a0==1))&&(a20==1))&&!(a25==1)))))){ + a25 = 1; + a19 = 1; + a29 = 5; + a11 = 1; + a14 = 8; + return -1; + } else if(((((a7==1)&&(!(a24==1)&&((((a25==1)&&(((a28==1)&&((a20==1)&&(((a29==6)||(a29==7))&&(input==3))))&&(a19==3)))&&(a11==1))&&(a22==1))))&&(a0==1))&&(a14==8))){ + a29 = 8; + a20 = 0; + a11 = 0; + a25 = 0; + a19 = 4; + return 24; + } else if((!(a7==1)&&((((((a20==1)&&((a25==1)&&((!(a24==1)&&((input==5)&&(((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))))&&(a28==1))))&&(a0==1))&&(a14==9))&&(a11==1))&&(a22==1)))){ + a19 = 4; + a25 = 0; + a29 = 7; + a7 = 1; + a24 = 1; + a20 = 0; + a11 = 0; + return 23; + } else if((!(a0==1)&&((((a24==1)&&(!(a7==1)&&(((((a22==1)&&((input==5)&&(((a29==5)&&(a19==2))||(((a29==8)&&(a19==1))||((a29==9)&&(a19==1))))))&&(a14==8))&&!(a20==1))&&(a28==1))))&&(a25==1))&&(a11==1)))){ + a19 = 2; + a25 = 0; + a29 = 7; + a7 = 1; + return -1; + } else if(((a22==1)&&(((a7==1)&&(!(a20==1)&&((((((!(a11==1)&&((input==2)&&((a29==8)||(a29==9))))&&!(a24==1))&&(a25==1))&&!(a0==1))&&(a14==8))&&(a19==5))))&&(a28==1)))){ + a19 = 2; + a25 = 0; + a24 = 1; + a20 = 1; + a29 = 8; + a14 = 9; + a0 = 1; + return 21; + } else if(((a11==1)&&(!(a20==1)&&((!(a7==1)&&((((a14==9)&&((((((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))&&(input==5))&&(a25==1))&&!(a0==1)))&&(a22==1))&&(a28==1)))&&!(a24==1))))){ + a25 = 0; + a29 = 7; + a11 = 0; + a19 = 2; + a7 = 1; + a24 = 1; + a20 = 1; + a14 = 8; + return -1; + } else if((((a0==1)&&((a14==8)&&(!(a24==1)&&((a19==5)&&((a11==1)&&(((a25==1)&&(((a28==1)&&(((a29==5)||(a29==6))&&(input==4)))&&!(a7==1)))&&!(a20==1)))))))&&(a22==1))){ + a7 = 1; + a24 = 1; + a20 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((((a28==1)&&((!(a25==1)&&((((a14==9)&&((a19==5)&&(((input==3)&&(a29==5))&&!(a20==1))))&&!(a11==1))&&(a0==1)))&&(a22==1)))&&!(a7==1))&&!(a24==1))){ + a25 = 1; + a20 = 1; + a19 = 2; + return 21; + } else if(((a22==1)&&((a29==7)&&((a20==1)&&((((((a24==1)&&((a19==5)&&((a28==1)&&((a11==1)&&(input==2)))))&&(a25==1))&&!(a0==1))&&!(a7==1))&&(a14==9)))))){ + a24 = 0; + a25 = 0; + a11 = 0; + a29 = 8; + a0 = 1; + a19 = 3; + a14 = 8; + a20 = 0; + return 23; + } else if((!(a11==1)&&(!(a7==1)&&(((a19==5)&&((a28==1)&&((((a14==8)&&(((a0==1)&&(((a29==7)||(a29==8))&&(input==1)))&&(a20==1)))&&(a25==1))&&(a22==1))))&&!(a24==1))))){ + a29 = 5; + a11 = 1; + a24 = 1; + a19 = 1; + a7 = 1; + return -1; + } else if(((((!(a0==1)&&(!(a20==1)&&((a25==1)&&((a28==1)&&(!(a7==1)&&((((input==4)&&(a14==8))&&(a19==5))&&(a29==7)))))))&&(a24==1))&&(a11==1))&&(a22==1))){ + a7 = 1; + a25 = 0; + a0 = 1; + a14 = 9; + a24 = 0; + a19 = 3; + a11 = 0; + return 23; + } else if((((a0==1)&&((a28==1)&&((a29==8)&&((a24==1)&&(((((a22==1)&&(((a20==1)&&(input==2))&&(a14==9)))&&(a11==1))&&(a25==1))&&(a19==3))))))&&(a7==1))){ + a14 = 8; + a11 = 0; + a25 = 0; + a0 = 0; + a29 = 6; + a19 = 1; + return 24; + } else if((((a28==1)&&((a0==1)&&(((a25==1)&&(((a22==1)&&((a14==9)&&(((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))&&(input==6))&&(a20==1))))&&!(a24==1)))&&!(a11==1))))&&!(a7==1))){ + a19 = 1; + a29 = 8; + a24 = 1; + a11 = 1; + return -1; + } else if(((((((a11==1)&&(((!(a7==1)&&((a24==1)&&(!(a20==1)&&((input==4)&&(a25==1)))))&&(a29==6))&&(a19==5)))&&(a22==1))&&(a28==1))&&(a14==8))&&(a0==1))){ + a19 = 2; + a11 = 0; + a29 = 8; + return 21; + } else if(((a22==1)&&(((a24==1)&&((!(a7==1)&&((a0==1)&&(!(a20==1)&&((!(a11==1)&&((a25==1)&&((a28==1)&&(input==6))))&&(a29==8)))))&&(a14==8)))&&(a19==5)))){ + a14 = 9; + a29 = 7; + a11 = 1; + a19 = 1; + return 23; + } else if(((((((a28==1)&&((a19==4)&&(!(a20==1)&&((!(a7==1)&&((a22==1)&&((input==1)&&(((a29==5)||(a29==6))||(a29==7)))))&&(a14==9)))))&&(a0==1))&&!(a24==1))&&(a25==1))&&(a11==1))){ + a25 = 0; + a29 = 6; + a19 = 5; + a14 = 8; + a11 = 0; + a7 = 1; + return 23; + } else if((((a20==1)&&((a22==1)&&((!(a25==1)&&(!(a0==1)&&(!(a24==1)&&((a14==8)&&((a28==1)&&((a11==1)&&((input==5)&&((a29==7)||((a29==5)||(a29==6))))))))))&&(a19==4))))&&(a7==1))){ + a25 = 1; + a29 = 5; + a19 = 1; + a24 = 1; + a7 = 0; + return -1; + } else if(((!(a11==1)&&(((!(a20==1)&&((a19==1)&&(((a28==1)&&(((a25==1)&&(((a29==7)||(a29==8))&&(input==6)))&&!(a7==1)))&&!(a24==1))))&&(a14==9))&&(a22==1)))&&!(a0==1))){ + a0 = 1; + a11 = 1; + a25 = 0; + a19 = 2; + a20 = 1; + a29 = 6; + a14 = 8; + a24 = 1; + a7 = 1; + return -1; + } else if(((a22==1)&&((a25==1)&&((a11==1)&&((a0==1)&&(((a24==1)&&((a19==3)&&((((a14==9)&&((input==5)&&(a7==1)))&&(a28==1))&&(a29==8))))&&(a20==1))))))){ + a0 = 0; + a11 = 0; + a14 = 8; + a24 = 0; + a25 = 0; + return 21; + } else if((((((((((a19==3)&&((a25==1)&&((a0==1)&&(((a29==6)||(a29==7))&&(input==5)))))&&(a14==8))&&!(a24==1))&&(a11==1))&&(a7==1))&&(a28==1))&&(a20==1))&&(a22==1))){ + a7 = 0; + a19 = 1; + a29 = 5; + a11 = 0; + a20 = 0; + return 21; + } else if(((a25==1)&&((a14==8)&&(((((!(a24==1)&&(((a20==1)&&((((a29==6)||(a29==7))&&(input==1))&&!(a11==1)))&&(a28==1)))&&!(a0==1))&&!(a7==1))&&(a19==1))&&(a22==1))))){ + a29 = 5; + a19 = 4; + a25 = 0; + return 21; + } else if(((!(a20==1)&&((a11==1)&&((((a19==5)&&((a14==10)&&((a29==8)&&((((input==1)&&(a0==1))&&(a28==1))&&(a22==1)))))&&(a7==1))&&(a25==1))))&&(a24==1))){ + a14 = 8; + a29 = 5; + a19 = 1; + a20 = 1; + return -1; + } else if((!(a0==1)&&(((a28==1)&&((a7==1)&&(((a20==1)&&(!(a24==1)&&((a14==8)&&(((a11==1)&&((input==3)&&(((a29==5)||(a29==6))||(a29==7))))&&(a22==1)))))&&!(a25==1))))&&(a19==3)))){ + a19 = 5; + a29 = 9; + a24 = 1; + return 24; + } else if((((!(a11==1)&&(!(a24==1)&&((((a20==1)&&(((a7==1)&&((a0==1)&&((input==1)&&(a25==1))))&&(a29==5)))&&(a28==1))&&(a19==5))))&&(a14==9))&&(a22==1))){ + a19 = 1; + a24 = 1; + a29 = 8; + return 23; + } else if(((((a22==1)&&((a28==1)&&((((a14==8)&&((((a24==1)&&((a29==7)&&(input==2)))&&!(a11==1))&&!(a0==1)))&&(a7==1))&&!(a20==1))))&&(a19==3))&&(a25==1))){ + a19 = 5; + a29 = 6; + a11 = 1; + a25 = 0; + return 21; + } else if(((a14==9)&&((a24==1)&&((a28==1)&&((a22==1)&&(((a20==1)&&((((a7==1)&&((a25==1)&&((input==4)&&((a29==7)||(a29==8)))))&&!(a0==1))&&(a19==5)))&&(a11==1))))))){ + a29 = 7; + a20 = 0; + a24 = 0; + a0 = 1; + a19 = 1; + return 24; + } else if(((!(a7==1)&&(((((((a0==1)&&((((((a29==5)||(a29==6))||(a29==7))&&(input==5))&&(a11==1))&&(a19==3)))&&(a14==10))&&!(a20==1))&&(a24==1))&&(a28==1))&&(a22==1)))&&!(a25==1))){ + a25 = 1; + a7 = 1; + a29 = 5; + a20 = 1; + a19 = 1; + a14 = 8; + return -1; + } else if((((a22==1)&&(!(a7==1)&&(!(a11==1)&&(!(a20==1)&&((((a28==1)&&((((a19==5)&&((a29==9)&&(a25==1)))||((!(a25==1)&&(a29==5))&&(a19==1)))&&(input==6)))&&!(a0==1))&&!(a24==1))))))&&(a14==8))){ + a19 = 1; + a29 = 9; + a24 = 1; + a7 = 1; + a11 = 1; + a20 = 1; + a25 = 1; + return 21; + } else if(((!(a11==1)&&((a24==1)&&((a22==1)&&(((!(a7==1)&&(!(a20==1)&&(((a19==4)&&((input==3)&&(a29==8)))&&(a28==1))))&&(a25==1))&&(a0==1)))))&&(a14==9))){ + a20 = 1; + a29 = 9; + a0 = 0; + a14 = 8; + a19 = 2; + return 24; + } else if(((a22==1)&&((a24==1)&&((!(a11==1)&&(!(a0==1)&&((a28==1)&&(((((((a29==7)||((a29==5)||(a29==6)))&&(input==2))&&!(a20==1))&&(a14==9))&&!(a7==1))&&!(a25==1)))))&&(a19==3))))){ + a29 = 6; + a24 = 0; + a20 = 1; + a19 = 4; + a25 = 1; + a7 = 1; + a11 = 1; + a0 = 1; + return 24; + } else if(((((a28==1)&&(!(a7==1)&&((((a14==8)&&(!(a24==1)&&((input==1)&&(((a19==5)&&((a29==9)&&(a25==1)))||(((a29==5)&&!(a25==1))&&(a19==1))))))&&(a20==1))&&(a22==1))))&&(a11==1))&&!(a0==1))){ + a29 = 7; + a25 = 1; + a14 = 9; + a19 = 3; + a24 = 1; + return 23; + } else if(((a28==1)&&(((a22==1)&&((((a25==1)&&((a7==1)&&((a14==8)&&(((input==3)&&(((a19==1)&&(a29==9))||((a29==5)&&(a19==2))))&&!(a20==1)))))&&(a11==1))&&!(a24==1)))&&(a0==1)))){ + a0 = 0; + a19 = 1; + a29 = 5; + return 23; + } else if((((a28==1)&&(!(a25==1)&&((((a14==9)&&((((a19==2)&&(((input==3)&&((a29==7)||((a29==5)||(a29==6))))&&!(a7==1)))&&(a11==1))&&!(a20==1)))&&(a22==1))&&(a0==1))))&&!(a24==1))){ + a20 = 1; + a24 = 1; + a14 = 8; + a29 = 5; + a25 = 1; + a19 = 1; + a7 = 1; + return -1; + } else if((!(a0==1)&&((a24==1)&&((a28==1)&&(((((!(a7==1)&&((a14==9)&&((a11==1)&&((input==1)&&(((a29==6)||(a29==7))||(a29==8))))))&&(a25==1))&&(a20==1))&&(a19==2))&&(a22==1)))))){ + a29 = 9; + a7 = 1; + return -1; + } else if((((((a14==8)&&(!(a20==1)&&((((a24==1)&&((!(a25==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==4)))&&(a11==1)))&&(a7==1))&&(a22==1))))&&(a19==3))&&(a28==1))&&(a0==1))){ + a19 = 1; + a25 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if(((a11==1)&&(((((a14==8)&&((a22==1)&&((a7==1)&&((((((a29==5)||(a29==6))&&(input==4))&&!(a0==1))&&!(a24==1))&&(a25==1)))))&&(a19==3))&&(a20==1))&&(a28==1)))){ + a19 = 1; + a29 = 5; + a24 = 1; + a0 = 1; + return -1; + } else if((((a11==1)&&((a0==1)&&((((a22==1)&&((((a25==1)&&((a28==1)&&(((a29==6)||(a29==7))&&(input==6))))&&(a14==10))&&!(a20==1)))&&(a7==1))&&(a19==3))))&&(a24==1))){ + a19 = 5; + a0 = 0; + a29 = 9; + a20 = 1; + a25 = 0; + a14 = 8; + return 21; + } else if(((((a11==1)&&(!(a7==1)&&(!(a24==1)&&((((a28==1)&&(((a22==1)&&((a25==1)&&(input==1)))&&(a29==5)))&&(a0==1))&&(a14==8)))))&&(a19==1))&&(a20==1))){ + a0 = 0; + a19 = 2; + a20 = 0; + a24 = 1; + a29 = 7; + a7 = 1; + return 21; + } else if(((a19==4)&&((((!(a7==1)&&((((a11==1)&&((a28==1)&&(((input==6)&&((a29==6)||(a29==7)))&&(a22==1))))&&!(a25==1))&&(a0==1)))&&(a24==1))&&(a14==10))&&(a20==1)))){ + a11 = 0; + a14 = 8; + a20 = 0; + a25 = 1; + a24 = 0; + a29 = 8; + a19 = 3; + return 23; + } else if(((((a28==1)&&((a11==1)&&((a25==1)&&((a14==9)&&(!(a0==1)&&(((a24==1)&&((((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))&&(input==5)))&&(a7==1)))))))&&(a22==1))&&(a20==1))){ + a0 = 1; + a29 = 5; + a14 = 8; + a19 = 1; + return -1; + } else if((!(a7==1)&&(((!(a25==1)&&(((((a28==1)&&(!(a0==1)&&((a20==1)&&(((a29==5)||(a29==6))&&(input==5)))))&&(a19==4))&&(a14==9))&&(a24==1)))&&(a22==1))&&(a11==1)))){ + a11 = 0; + a29 = 9; + a14 = 8; + a24 = 0; + a19 = 5; + return -1; + } else if((!(a25==1)&&((((a0==1)&&((!(a7==1)&&((a19==3)&&(!(a20==1)&&((((input==2)&&((a29==9)||((a29==7)||(a29==8))))&&(a24==1))&&(a28==1)))))&&(a11==1)))&&(a22==1))&&(a14==9)))){ + a25 = 1; + a20 = 1; + a14 = 10; + a29 = 5; + return 23; + } else if(((((a22==1)&&((a24==1)&&((a7==1)&&(((a11==1)&&((a0==1)&&(((a20==1)&&((input==1)&&((a29==7)||((a29==5)||(a29==6)))))&&(a19==3))))&&(a28==1)))))&&(a25==1))&&(a14==10))){ + a7 = 0; + a20 = 0; + a0 = 0; + a19 = 1; + a24 = 0; + a25 = 0; + a14 = 8; + a11 = 0; + a29 = 8; + return -1; + } else if(((a11==1)&&(((a20==1)&&((((((a29==5)&&((a19==1)&&((a25==1)&&((input==4)&&(a22==1)))))&&(a14==8))&&(a28==1))&&!(a24==1))&&!(a7==1)))&&!(a0==1)))){ + a11 = 0; + a20 = 0; + a0 = 1; + a25 = 0; + a19 = 3; + a29 = 8; + return 21; + } else if(((((((a14==8)&&((a22==1)&&(((!(a7==1)&&(((input==5)&&(a11==1))&&(a28==1)))&&!(a24==1))&&(a25==1))))&&(a0==1))&&(a29==7))&&(a20==1))&&(a19==2))){ + a19 = 1; + a24 = 1; + a29 = 5; + a0 = 0; + a20 = 0; + return 24; + } else if((((a20==1)&&((a7==1)&&(!(a0==1)&&(!(a25==1)&&(((a14==8)&&(!(a24==1)&&((a28==1)&&((input==2)&&(((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))))))&&!(a11==1))))))&&(a22==1))){ + a24 = 1; + a11 = 1; + a29 = 7; + a19 = 5; + a25 = 1; + return 23; + } else if((((a28==1)&&((a22==1)&&((a29==9)&&((((a24==1)&&((a7==1)&&((((input==5)&&(a14==8))&&(a11==1))&&(a19==3))))&&(a25==1))&&(a0==1)))))&&!(a20==1))){ + a19 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if((((!(a25==1)&&(!(a7==1)&&((a28==1)&&(((a11==1)&&((((((a29==5)||(a29==6))&&(input==2))&&!(a0==1))&&(a19==4))&&(a14==9)))&&(a22==1)))))&&!(a20==1))&&!(a24==1))){ + a29 = 8; + a19 = 5; + a0 = 1; + a7 = 1; + a25 = 1; + return -1; + } else if(((!(a24==1)&&((a22==1)&&((((a0==1)&&(((((((a29==6)||(a29==7))&&(input==5))&&(a28==1))&&!(a20==1))&&(a19==4))&&(a7==1)))&&!(a25==1))&&(a14==8))))&&(a11==1))){ + a25 = 1; + a24 = 1; + a20 = 1; + a19 = 2; + a11 = 0; + a0 = 0; + a29 = 8; + return 24; + } else if((((a19==4)&&((a24==1)&&((!(a11==1)&&(((a22==1)&&(((!(a7==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==6)))&&(a20==1))&&(a25==1)))&&(a28==1)))&&(a0==1))))&&(a14==8))){ + a0 = 0; + a24 = 0; + a29 = 8; + a19 = 3; + a25 = 0; + return 21; + } else if(((((a24==1)&&((((a0==1)&&((a20==1)&&((a11==1)&&((a14==9)&&((((a29==7)||(a29==8))&&(input==1))&&(a19==2))))))&&(a7==1))&&!(a25==1)))&&(a28==1))&&(a22==1))){ + a19 = 1; + a14 = 8; + a29 = 5; + a25 = 1; + return -1; + } else if(((a25==1)&&((a14==8)&&(((!(a0==1)&&(((a28==1)&&((a7==1)&&(((a11==1)&&((input==4)&&(a24==1)))&&!(a20==1))))&&(a22==1)))&&(a19==3))&&(a29==8))))){ + a0 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((((!(a7==1)&&(!(a11==1)&&((!(a0==1)&&(((((input==1)&&((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))||((a29==6)&&(a19==3))))&&(a22==1))&&(a24==1))&&(a25==1)))&&(a14==8))))&&(a28==1))&&!(a20==1))){ + a11 = 1; + a24 = 0; + a29 = 6; + a19 = 5; + a14 = 9; + return 24; + } else if((((((a14==9)&&(!(a20==1)&&(!(a24==1)&&((a11==1)&&((a25==1)&&(!(a0==1)&&((((a29==5)&&(a19==3))||(((a19==2)&&(a29==8))||((a29==9)&&(a19==2))))&&(input==1))))))))&&(a28==1))&&(a22==1))&&(a7==1))){ + a19 = 3; + a0 = 1; + a11 = 0; + a29 = 9; + a25 = 0; + a24 = 1; + a7 = 0; + return 21; + } else if((((a24==1)&&(!(a0==1)&&((a19==3)&&((a7==1)&&((a22==1)&&((a11==1)&&((a28==1)&&((a14==9)&&((((a29==6)||(a29==7))&&(input==2))&&!(a25==1))))))))))&&(a20==1))){ + a29 = 8; + a19 = 5; + a14 = 8; + a24 = 0; + a20 = 0; + return -1; + } else if(((((a20==1)&&((a19==1)&&(((a29==6)&&(((a7==1)&&((((a28==1)&&(input==3))&&(a24==1))&&!(a11==1)))&&!(a0==1)))&&!(a25==1))))&&(a22==1))&&(a14==8))){ + a25 = 1; + a29 = 5; + a11 = 1; + a0 = 1; + return -1; + } else if(((((((!(a0==1)&&(!(a7==1)&&((!(a24==1)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==1))&&(a19==4)))&&(a20==1))))&&(a11==1))&&!(a25==1))&&(a28==1))&&(a22==1))&&(a14==9))){ + a25 = 1; + a29 = 6; + a20 = 0; + a11 = 0; + a14 = 8; + a0 = 1; + return 23; + } else if(((a14==9)&&(((a22==1)&&((((a25==1)&&((a19==3)&&((a28==1)&&(((((a29==8)||((a29==6)||(a29==7)))&&(input==1))&&(a11==1))&&!(a0==1)))))&&(a7==1))&&!(a24==1)))&&!(a20==1)))){ + a19 = 2; + a20 = 1; + a7 = 0; + a29 = 5; + return -1; + } else if((!(a25==1)&&((((a22==1)&&(!(a11==1)&&(!(a20==1)&&((!(a0==1)&&((a28==1)&&((((a29==5)&&(a19==5))||(((a29==8)&&(a19==4))||((a29==9)&&(a19==4))))&&(input==3))))&&!(a7==1)))))&&!(a24==1))&&(a14==8)))){ + a29 = 6; + a20 = 1; + a19 = 5; + a7 = 1; + a25 = 1; + return -1; + } else if((!(a20==1)&&(((a24==1)&&((((((a22==1)&&((!(a0==1)&&((input==5)&&((a29==5)||(a29==6))))&&(a14==8)))&&!(a11==1))&&(a19==5))&&(a28==1))&&!(a7==1)))&&!(a25==1)))){ + a7 = 1; + a20 = 1; + a19 = 1; + a0 = 1; + a25 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if(((((((((!(a0==1)&&((a19==1)&&((a28==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==3)))))&&!(a24==1))&&(a14==9))&&!(a20==1))&&(a11==1))&&!(a25==1))&&!(a7==1))&&(a22==1))){ + a20 = 1; + a14 = 8; + a0 = 1; + a25 = 1; + a7 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if(((!(a0==1)&&((!(a11==1)&&((a22==1)&&((a19==5)&&((!(a24==1)&&((((((a29==7)||(a29==8))||(a29==9))&&(input==3))&&(a20==1))&&(a7==1)))&&(a25==1)))))&&(a28==1)))&&(a14==8))){ + a19 = 1; + a11 = 1; + a29 = 5; + a24 = 1; + a0 = 1; + return -1; + } else if(((a11==1)&&(!(a20==1)&&((a24==1)&&((a7==1)&&(!(a0==1)&&(((a14==8)&&(((((!(a25==1)&&(a29==6))&&(a19==1))||((((a25==1)&&(a29==9))&&(a19==5))||((!(a25==1)&&(a29==5))&&(a19==1))))&&(input==5))&&(a28==1)))&&(a22==1)))))))){ + a0 = 1; + a25 = 0; + a24 = 0; + a29 = 7; + a7 = 0; + a19 = 4; + a11 = 0; + return -1; + } else if((!(a11==1)&&((a14==9)&&((a7==1)&&((a28==1)&&(((a22==1)&&((a20==1)&&((!(a24==1)&&(((((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))||((a19==2)&&(a29==6)))&&(input==3)))&&(a25==1))))&&!(a0==1))))))){ + a0 = 1; + a19 = 3; + a25 = 0; + a29 = 6; + a11 = 1; + return 23; + } else if((((((a19==5)&&(((a0==1)&&((((((input==2)&&(a22==1))&&(a7==1))&&(a11==1))&&!(a24==1))&&(a20==1)))&&(a25==1)))&&(a29==7))&&(a28==1))&&(a14==9))){ + a0 = 0; + a24 = 1; + a29 = 6; + a7 = 0; + a14 = 8; + return 24; + } else if((((a11==1)&&(((a24==1)&&((a7==1)&&((a29==8)&&(((a22==1)&&((a14==10)&&(((a0==1)&&(input==4))&&(a28==1))))&&(a19==4)))))&&(a25==1)))&&!(a20==1))){ + a0 = 0; + a19 = 3; + a20 = 1; + a25 = 0; + a14 = 8; + a11 = 0; + a29 = 9; + a24 = 0; + return -1; + } else if(((a22==1)&&((a28==1)&&(!(a11==1)&&((a24==1)&&((a0==1)&&(((((a14==9)&&((!(a20==1)&&(input==6))&&(a19==2)))&&(a29==5))&&(a25==1))&&!(a7==1)))))))){ + a29 = 7; + a7 = 1; + a19 = 5; + a25 = 0; + a20 = 1; + a11 = 1; + return 21; + } else if((((((a19==3)&&((a28==1)&&((a11==1)&&((a14==10)&&(!(a7==1)&&((a25==1)&&((a22==1)&&(((a29==7)||(a29==8))&&(input==6)))))))))&&(a0==1))&&(a24==1))&&(a20==1))){ + a25 = 0; + a29 = 9; + a0 = 0; + a19 = 2; + a7 = 1; + a14 = 8; + return 24; + } else if(((a20==1)&&((a14==9)&&((a7==1)&&(!(a24==1)&&((a29==6)&&((((a22==1)&&(!(a0==1)&&((!(a25==1)&&(input==3))&&!(a11==1))))&&(a28==1))&&(a19==3)))))))){ + a11 = 1; + a25 = 1; + a0 = 1; + a29 = 5; + a19 = 5; + return 21; + } else if(((!(a20==1)&&((((a28==1)&&((((a0==1)&&(!(a24==1)&&(!(a11==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==1)))))&&(a19==1))&&(a25==1)))&&(a22==1))&&!(a7==1)))&&(a14==8))){ + a7 = 1; + a25 = 0; + a29 = 9; + a19 = 5; + return -1; + } else if((!(a24==1)&&((a28==1)&&(!(a25==1)&&(((!(a7==1)&&((a20==1)&&((a22==1)&&((((((a29==8)&&(a19==1))||((a29==9)&&(a19==1)))||((a19==2)&&(a29==5)))&&(input==1))&&!(a11==1)))))&&(a14==8))&&!(a0==1)))))){ + a11 = 1; + a7 = 1; + a0 = 1; + a24 = 1; + a19 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if(((a20==1)&&((a24==1)&&(((a7==1)&&((a22==1)&&((a19==4)&&((a28==1)&&((a25==1)&&(((a29==9)&&((input==4)&&(a14==10)))&&(a0==1)))))))&&(a11==1))))){ + a29 = 6; + a19 = 5; + a11 = 0; + a24 = 0; + a14 = 8; + a20 = 0; + a25 = 0; + return 21; + } else if(((((!(a11==1)&&(((((a28==1)&&((a14==8)&&(!(a7==1)&&((input==4)&&((a29==8)||((a29==6)||(a29==7)))))))&&!(a24==1))&&(a19==4))&&(a20==1)))&&(a22==1))&&(a25==1))&&(a0==1))){ + a19 = 3; + a24 = 1; + a0 = 0; + a29 = 5; + a11 = 1; + a20 = 0; + return 24; + } else if(((a25==1)&&(((a22==1)&&(((a28==1)&&((!(a20==1)&&(((a11==1)&&(!(a24==1)&&(((a29==7)||(a29==8))&&(input==1))))&&(a0==1)))&&(a14==8)))&&!(a7==1)))&&(a19==5)))){ + a25 = 0; + a29 = 9; + a20 = 1; + a0 = 0; + a19 = 3; + a24 = 1; + a7 = 1; + return 21; + } else if((((a19==4)&&(!(a25==1)&&((a0==1)&&((a14==9)&&((a28==1)&&((((((input==4)&&!(a24==1))&&!(a11==1))&&!(a20==1))&&(a29==5))&&(a22==1)))))))&&!(a7==1))){ + a7 = 1; + a11 = 1; + a20 = 1; + a24 = 1; + a25 = 1; + a14 = 8; + a19 = 1; + return -1; + } else if(((!(a20==1)&&((a24==1)&&(!(a7==1)&&((a29==5)&&((a14==9)&&((((a22==1)&&(((a11==1)&&(input==4))&&(a28==1)))&&(a0==1))&&(a19==5)))))))&&!(a25==1))){ + a29 = 7; + a19 = 4; + a14 = 10; + a25 = 1; + a20 = 1; + return 23; + } else if((((((a11==1)&&((a28==1)&&(((((a22==1)&&(((((a19==3)&&(a29==8))||((a19==3)&&(a29==9)))||((a29==5)&&(a19==4)))&&(input==2)))&&(a20==1))&&(a25==1))&&(a0==1))))&&!(a24==1))&&(a14==10))&&(a7==1))){ + a0 = 0; + a20 = 0; + a24 = 1; + a14 = 8; + a19 = 3; + a25 = 0; + a29 = 8; + return 24; + } else if(((!(a7==1)&&((((a22==1)&&(!(a0==1)&&(((a25==1)&&((a19==5)&&(((input==1)&&!(a20==1))&&(a28==1))))&&!(a24==1))))&&(a29==7))&&(a14==8)))&&(a11==1))){ + a20 = 1; + a25 = 0; + a19 = 1; + a24 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if(((!(a20==1)&&((a11==1)&&(((a0==1)&&((a14==10)&&((a25==1)&&((a24==1)&&((a19==4)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==5))&&!(a7==1)))))))&&(a28==1))))&&(a22==1))){ + a7 = 1; + a20 = 1; + a29 = 8; + a14 = 9; + a25 = 0; + a19 = 3; + return 21; + } else if(((a22==1)&&(!(a0==1)&&(!(a7==1)&&(((!(a20==1)&&((a24==1)&&(((a28==1)&&(((input==2)&&((a29==5)||(a29==6)))&&(a19==1)))&&(a11==1))))&&!(a25==1))&&(a14==8)))))){ + a29 = 5; + a20 = 1; + return -1; + } else if(((a25==1)&&((((a29==5)&&((((a7==1)&&(((((a11==1)&&(input==3))&&(a24==1))&&(a28==1))&&!(a0==1)))&&(a14==8))&&(a19==4)))&&(a22==1))&&(a20==1)))){ + a11 = 0; + a25 = 0; + a20 = 0; + a14 = 9; + a0 = 1; + a7 = 0; + a29 = 6; + return 24; + } else if(((a22==1)&&((((!(a20==1)&&((a29==9)&&((((a14==9)&&((a19==1)&&((a25==1)&&(input==3))))&&(a24==1))&&(a7==1))))&&(a0==1))&&(a28==1))&&(a11==1)))){ + a29 = 5; + a14 = 8; + a20 = 1; + return -1; + } else if((((a19==2)&&((a14==8)&&(((a28==1)&&(((!(a0==1)&&(!(a20==1)&&(((input==4)&&((a29==8)||(a29==9)))&&(a25==1))))&&(a24==1))&&(a22==1)))&&(a11==1))))&&!(a7==1))){ + a29 = 8; + a20 = 1; + a19 = 4; + return -1; + } else if(((a14==8)&&((!(a25==1)&&((a20==1)&&(((a22==1)&&((((a11==1)&&(((((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))||((a29==5)&&(a19==3)))&&(input==5)))&&!(a0==1))&&(a28==1)))&&!(a24==1))))&&!(a7==1)))){ + a19 = 5; + a25 = 1; + a20 = 0; + a24 = 1; + a7 = 1; + a29 = 5; + return 24; + } else if((((((((((a19==2)&&((a7==1)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==5))&&(a11==1))))&&(a22==1))&&!(a25==1))&&(a28==1))&&(a24==1))&&!(a20==1))&&!(a0==1))&&(a14==9))){ + a19 = 5; + a25 = 1; + a29 = 5; + a0 = 1; + a11 = 0; + a24 = 0; + return -1; + } else if((((a29==6)&&(((a24==1)&&((!(a11==1)&&((a7==1)&&((((!(a20==1)&&(input==5))&&(a14==9))&&(a25==1))&&!(a0==1))))&&(a28==1)))&&(a19==3)))&&(a22==1))){ + a20 = 1; + a19 = 5; + a24 = 0; + a25 = 0; + a0 = 1; + a29 = 9; + a7 = 0; + return -1; + } else if((((!(a25==1)&&((a22==1)&&(!(a24==1)&&((((a0==1)&&(((((a29==6)&&(a19==4))||(((a19==3)&&(a29==9))||((a19==4)&&(a29==5))))&&(input==3))&&(a11==1)))&&(a28==1))&&(a14==9)))))&&(a20==1))&&(a7==1))){ + a11 = 0; + a19 = 4; + a29 = 5; + a14 = 8; + a20 = 0; + return 24; + } else if((((a0==1)&&(((((((((a29==8)&&(!(a25==1)&&((!(a20==1)&&!(a7==1))&&(a24==1))))&&(a19==5))||((a19==5)&&((((!(a20==1)&&!(a7==1))&&(a24==1))&&!(a25==1))&&(a29==9))))||((((a25==1)&&(((a20==1)&&(a7==1))&&!(a24==1)))&&(a29==5))&&(a19==1)))&&(input==4))&&(a22==1))&&(a28==1))&&(a14==9)))&&!(a11==1))){ + a24 = 1; + a14 = 8; + a20 = 1; + a19 = 1; + a29 = 5; + a7 = 1; + a11 = 1; + a25 = 1; + return -1; + } else if(((((a24==1)&&((((a25==1)&&(!(a7==1)&&((((a19==5)&&((input==3)&&(a11==1)))&&(a22==1))&&(a0==1))))&&!(a20==1))&&(a29==7)))&&(a28==1))&&(a14==8))){ + a19 = 4; + a29 = 9; + a11 = 0; + return 24; + } else if((((((a7==1)&&(((a14==8)&&((((a19==4)&&(((input==3)&&((a29==9)||((a29==7)||(a29==8))))&&(a25==1)))&&!(a0==1))&&!(a24==1)))&&(a20==1)))&&(a11==1))&&(a28==1))&&(a22==1))){ + a24 = 1; + a29 = 7; + a14 = 9; + a19 = 1; + return 23; + } else if(((!(a24==1)&&((a28==1)&&((((a29==5)&&((a11==1)&&((a25==1)&&((a14==9)&&(((a22==1)&&(input==1))&&(a0==1))))))&&(a7==1))&&!(a20==1))))&&(a19==4))){ + a7 = 0; + a0 = 0; + a19 = 3; + a14 = 8; + a24 = 1; + a20 = 1; + return 24; + } else if(((a19==2)&&(((a7==1)&&((!(a20==1)&&((a22==1)&&(!(a25==1)&&((a24==1)&&((a0==1)&&((a14==10)&&((input==4)&&((a29==7)||(a29==8)))))))))&&(a11==1)))&&(a28==1)))){ + a19 = 1; + a29 = 8; + a11 = 0; + a14 = 9; + return -1; + } else if(((a14==9)&&((a25==1)&&((a19==1)&&(!(a7==1)&&(!(a11==1)&&((!(a20==1)&&((a22==1)&&((a24==1)&&((a28==1)&&((input==4)&&((a29==7)||((a29==5)||(a29==6))))))))&&(a0==1)))))))){ + a29 = 5; + a14 = 8; + a7 = 1; + a11 = 1; + a20 = 1; + return -1; + } else if(((((a14==10)&&((((((a19==1)&&((a29==8)&&(((a11==1)&&(input==4))&&(a7==1))))&&!(a25==1))&&(a28==1))&&(a20==1))&&(a22==1)))&&!(a24==1))&&(a0==1))){ + a20 = 0; + a24 = 1; + a14 = 9; + a29 = 9; + return -1; + } else if(((!(a20==1)&&((a7==1)&&(!(a11==1)&&(!(a25==1)&&(((((a28==1)&&((input==1)&&(((a29==6)&&(a19==4))||(((a29==9)&&(a19==3))||((a29==5)&&(a19==4))))))&&(a14==9))&&!(a0==1))&&(a24==1))))))&&(a22==1))){ + a29 = 5; + a14 = 8; + a0 = 1; + a11 = 1; + a25 = 1; + a20 = 1; + a19 = 1; + return -1; + } else if((!(a20==1)&&((a19==5)&&((((((((a7==1)&&((a14==9)&&(((a29==8)||(a29==9))&&(input==5))))&&(a28==1))&&!(a0==1))&&(a25==1))&&(a24==1))&&!(a11==1))&&(a22==1))))){ + a29 = 7; + a19 = 3; + a24 = 0; + a0 = 1; + a7 = 0; + return 23; + } else if(((a14==10)&&(((a7==1)&&((((((a24==1)&&(((a11==1)&&((a22==1)&&(input==6)))&&(a0==1)))&&(a20==1))&&(a28==1))&&(a29==8))&&(a19==3)))&&(a25==1)))){ + a29 = 5; + a7 = 0; + a14 = 9; + a19 = 4; + return 23; + } else if(((!(a7==1)&&((a11==1)&&((a19==1)&&((a28==1)&&(((((a22==1)&&(!(a25==1)&&((input==1)&&(((a29==6)||(a29==7))||(a29==8)))))&&(a14==9))&&(a20==1))&&!(a0==1))))))&&(a24==1))){ + a24 = 0; + a20 = 0; + a19 = 5; + a0 = 1; + a29 = 5; + return 24; + } else if(((!(a11==1)&&(((a22==1)&&(((((((a28==1)&&((a7==1)&&(input==6)))&&(a0==1))&&(a19==3))&&(a20==1))&&!(a24==1))&&!(a25==1)))&&(a14==9)))&&(a29==8))){ + a29 = 7; + a11 = 1; + a24 = 1; + return 21; + } else if((((!(a7==1)&&((a14==8)&&(!(a20==1)&&(!(a24==1)&&(!(a11==1)&&((a28==1)&&(((a22==1)&&(((a29==8)||(a29==9))&&(input==4)))&&(a0==1))))))))&&(a19==1))&&!(a25==1))){ + a25 = 1; + a20 = 1; + a29 = 5; + a24 = 1; + a11 = 1; + a7 = 1; + return -1; + } else if(((((a29==9)&&(((((a24==1)&&((a11==1)&&((!(a0==1)&&(!(a25==1)&&(input==2)))&&(a22==1))))&&(a20==1))&&(a28==1))&&!(a7==1)))&&(a14==9))&&(a19==3))){ + a19 = 1; + a25 = 1; + a14 = 8; + a0 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if((((a28==1)&&(((!(a24==1)&&(((a19==3)&&((!(a7==1)&&((a14==8)&&((input==6)&&!(a11==1))))&&(a25==1)))&&!(a20==1)))&&(a22==1))&&(a29==9)))&&!(a0==1))){ + a11 = 1; + a7 = 1; + a14 = 9; + a19 = 5; + a29 = 5; + a0 = 1; + a25 = 0; + return 24; + } else if(((a28==1)&&((a22==1)&&(((!(a20==1)&&((a14==8)&&((((((input==6)&&!(a7==1))&&(a24==1))&&(a19==1))&&(a29==5))&&(a0==1))))&&(a25==1))&&!(a11==1))))){ + a25 = 0; + a29 = 8; + a14 = 9; + a19 = 4; + a20 = 1; + a11 = 1; + return 24; + } else if((((a22==1)&&((((((((a14==8)&&(((input==3)&&((a29==8)||(a29==9)))&&(a28==1)))&&(a20==1))&&(a0==1))&&(a11==1))&&!(a25==1))&&!(a7==1))&&(a19==2)))&&(a24==1))){ + a25 = 1; + a29 = 8; + a19 = 5; + a20 = 0; + return 24; + } else if(((a25==1)&&(((a19==5)&&((a22==1)&&(((a28==1)&&(((a20==1)&&((a24==1)&&((a0==1)&&((input==4)&&((a29==5)||(a29==6))))))&&(a14==8)))&&!(a7==1))))&&!(a11==1)))){ + a11 = 1; + a7 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((((((a20==1)&&(((a14==8)&&(!(a11==1)&&((((input==1)&&(a22==1))&&(a28==1))&&!(a24==1))))&&(a19==3)))&&!(a25==1))&&(a29==6))&&!(a0==1))&&!(a7==1))){ + a29 = 5; + a11 = 1; + return -1; + } else if(((!(a25==1)&&(((!(a0==1)&&(((((a20==1)&&((((a29==5)||(a29==6))&&(input==6))&&!(a11==1)))&&(a19==2))&&(a28==1))&&!(a24==1)))&&(a22==1))&&(a14==9)))&&(a7==1))){ + a20 = 0; + a19 = 4; + a29 = 8; + a0 = 1; + return -1; + } else if(((a22==1)&&((a25==1)&&(((a28==1)&&(!(a11==1)&&((a7==1)&&((a14==9)&&(((a19==4)&&(((input==3)&&(((a29==7)||(a29==8))||(a29==9)))&&(a0==1)))&&!(a24==1))))))&&(a20==1))))){ + a29 = 7; + a0 = 0; + a7 = 0; + a14 = 8; + a20 = 0; + a25 = 0; + a19 = 5; + return 21; + } else if((!(a11==1)&&((a29==9)&&((((a28==1)&&((a7==1)&&(((a0==1)&&(((a22==1)&&((a19==4)&&(input==5)))&&(a14==8)))&&!(a20==1))))&&!(a25==1))&&(a24==1))))){ + a24 = 0; + a29 = 7; + a19 = 5; + return 23; + } else if((((a28==1)&&((a25==1)&&((a19==4)&&(!(a0==1)&&((((((((a29==7)||(a29==8))&&(input==1))&&(a14==9))&&(a11==1))&&(a22==1))&&!(a24==1))&&!(a20==1))))))&&(a7==1))){ + a29 = 8; + a25 = 0; + a20 = 1; + a19 = 3; + return -1; + } else if(((a24==1)&&((a20==1)&&((!(a0==1)&&((a22==1)&&((a11==1)&&((a14==8)&&((a25==1)&&(!(a7==1)&&((((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))&&(input==1))))))))&&(a28==1))))){ + a24 = 0; + a19 = 3; + a11 = 0; + a0 = 1; + a29 = 6; + a20 = 0; + return -1; + } else if(((((a19==1)&&(((!(a20==1)&&(!(a11==1)&&((a28==1)&&(!(a25==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==5))&&(a22==1))))))&&!(a7==1))&&!(a0==1)))&&(a14==8))&&!(a24==1))){ + a25 = 1; + a29 = 5; + a24 = 1; + a20 = 1; + a11 = 1; + a0 = 1; + a7 = 1; + return -1; + } else if(((((!(a25==1)&&(((a14==8)&&(!(a0==1)&&((((((a29==5)&&(a19==4))||(((a19==3)&&(a29==8))||((a29==9)&&(a19==3))))&&(input==3))&&(a7==1))&&(a24==1))))&&(a28==1)))&&!(a11==1))&&(a20==1))&&(a22==1))){ + a29 = 6; + a0 = 1; + a14 = 9; + a19 = 4; + a7 = 0; + a25 = 1; + a20 = 0; + return 24; + } else if((((a25==1)&&((!(a11==1)&&((a20==1)&&(((a14==8)&&(((a7==1)&&((input==5)&&((((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))||((a29==6)&&(a19==2)))))&&(a28==1)))&&(a22==1))))&&(a24==1)))&&!(a0==1))){ + a11 = 1; + a24 = 0; + a0 = 1; + a20 = 0; + a29 = 7; + a19 = 2; + a14 = 9; + return 23; + } else if(((a14==10)&&((a0==1)&&((a29==8)&&((((a11==1)&&((a19==3)&&((a28==1)&&((a24==1)&&(!(a20==1)&&((input==6)&&(a25==1)))))))&&(a22==1))&&!(a7==1)))))){ + a7 = 1; + a19 = 1; + a29 = 5; + a20 = 1; + a14 = 8; + return -1; + } else if((((a22==1)&&(!(a20==1)&&((((((((a19==2)&&((input==2)&&(((a29==7)||(a29==8))||(a29==9))))&&!(a7==1))&&!(a24==1))&&(a11==1))&&(a14==8))&&(a28==1))&&!(a25==1))))&&(a0==1))){ + a0 = 0; + a29 = 9; + a19 = 5; + a20 = 1; + a25 = 1; + a24 = 1; + return 24; + } else if(((a7==1)&&((a22==1)&&((a11==1)&&((!(a20==1)&&(((((a28==1)&&((a24==1)&&((a19==5)&&(input==6))))&&(a14==9))&&!(a25==1))&&!(a0==1)))&&(a29==8)))))){ + a0 = 1; + a24 = 0; + a29 = 9; + a19 = 2; + return -1; + } else if(((a19==1)&&((((((a28==1)&&((a25==1)&&(((((a22==1)&&(input==4))&&!(a20==1))&&(a7==1))&&(a11==1))))&&(a14==9))&&!(a0==1))&&(a29==9))&&!(a24==1)))){ + a24 = 1; + a0 = 1; + a29 = 6; + a7 = 0; + a25 = 0; + a19 = 2; + a20 = 1; + return -1; + } else if((((((a28==1)&&(((((a14==8)&&(!(a25==1)&&((!(a0==1)&&(input==2))&&(a29==5))))&&(a22==1))&&!(a11==1))&&!(a7==1)))&&!(a20==1))&&(a19==4))&&(a24==1))){ + a24 = 0; + a7 = 1; + a11 = 1; + a19 = 2; + a29 = 9; + return 21; + } else if(((!(a0==1)&&((a28==1)&&((!(a7==1)&&(((a22==1)&&(!(a25==1)&&((a14==9)&&((((a29==5)&&(a19==2))||(((a29==8)&&(a19==1))||((a19==1)&&(a29==9))))&&(input==6)))))&&!(a11==1)))&&!(a24==1))))&&(a20==1))){ + a19 = 1; + a14 = 8; + a29 = 5; + a25 = 1; + a24 = 1; + a0 = 1; + a7 = 1; + a11 = 1; + return -1; + } else if(((a28==1)&&((!(a25==1)&&((a7==1)&&((a22==1)&&((a19==2)&&((((((((a29==6)||(a29==7))||(a29==8))&&(input==5))&&(a0==1))&&!(a11==1))&&(a14==9))&&(a24==1))))))&&!(a20==1)))){ + a19 = 1; + a20 = 1; + a14 = 8; + a29 = 5; + a11 = 1; + a25 = 1; + return -1; + } else if((((a22==1)&&(((!(a11==1)&&(((a28==1)&&(((input==5)&&(((a19==5)&&((a25==1)&&(a29==9)))||(((a29==5)&&!(a25==1))&&(a19==1))))&&(a7==1)))&&!(a20==1)))&&(a0==1))&&!(a24==1)))&&(a14==8))){ + a7 = 0; + a19 = 3; + a29 = 7; + a25 = 0; + return 23; + } else if((!(a25==1)&&(!(a20==1)&&((((((((a14==8)&&((a28==1)&&((input==5)&&!(a7==1))))&&(a11==1))&&(a19==5))&&(a24==1))&&(a29==5))&&(a22==1))&&!(a0==1))))){ + a7 = 1; + a0 = 1; + a20 = 1; + a25 = 1; + a19 = 1; + return -1; + } else if((((!(a7==1)&&(!(a11==1)&&(((((a14==9)&&(((input==5)&&(((a29==5)&&(a19==2))||(((a19==1)&&(a29==8))||((a29==9)&&(a19==1)))))&&(a0==1)))&&!(a25==1))&&!(a20==1))&&(a22==1))))&&(a28==1))&&!(a24==1))){ + a19 = 1; + a29 = 6; + a25 = 1; + a11 = 1; + return -1; + } else if(((((((a28==1)&&((((!(a11==1)&&(((input==2)&&((a29==6)||(a29==7)))&&(a0==1)))&&(a22==1))&&!(a25==1))&&!(a7==1)))&&(a14==9))&&!(a20==1))&&(a19==5))&&(a24==1))){ + a11 = 1; + a0 = 0; + a20 = 1; + a14 = 8; + a29 = 8; + return 23; + } else if(((((a19==1)&&(((((((((input==2)&&((a29==8)||(a29==9)))&&(a28==1))&&(a22==1))&&(a0==1))&&(a25==1))&&(a20==1))&&!(a11==1))&&(a14==9)))&&!(a24==1))&&(a7==1))){ + a29 = 5; + a11 = 1; + a14 = 8; + a24 = 1; + return -1; + } else if((((a24==1)&&(((((((a22==1)&&((a14==9)&&(((input==4)&&((a29==8)||(a29==9)))&&(a25==1))))&&!(a11==1))&&(a19==4))&&(a0==1))&&(a7==1))&&(a20==1)))&&(a28==1))){ + a19 = 2; + a14 = 8; + a11 = 1; + a29 = 9; + a7 = 0; + a0 = 0; + return -1; + } else if(((((a14==8)&&((a11==1)&&(((a19==4)&&(!(a0==1)&&((a28==1)&&(((((a29==8)||(a29==9))&&(input==5))&&!(a25==1))&&(a22==1)))))&&!(a24==1))))&&(a20==1))&&!(a7==1))){ + a19 = 1; + a0 = 1; + a29 = 5; + a25 = 1; + a7 = 1; + a24 = 1; + return -1; + } else if(((a0==1)&&(!(a20==1)&&(((!(a7==1)&&((a11==1)&&(((a22==1)&&((a28==1)&&((a19==4)&&((input==2)&&((a29==9)||((a29==7)||(a29==8)))))))&&(a25==1))))&&(a14==10))&&(a24==1))))){ + a19 = 1; + a20 = 1; + a29 = 5; + a24 = 0; + a14 = 9; + a0 = 0; + a25 = 0; + return -1; + } else if(((a25==1)&&((a24==1)&&((a28==1)&&((((((((((a19==3)&&(a29==6))||(((a19==2)&&(a29==9))||((a19==3)&&(a29==5))))&&(input==2))&&!(a11==1))&&(a0==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a14==8)))))){ + a11 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((!(a0==1)&&(((a11==1)&&((((a22==1)&&((!(a20==1)&&(((((a29==9)||((a29==7)||(a29==8)))&&(input==4))&&(a28==1))&&(a14==8)))&&(a19==1)))&&(a7==1))&&!(a25==1)))&&(a24==1)))){ + a29 = 5; + a25 = 1; + a0 = 1; + a20 = 1; + return -1; + } else if(((a0==1)&&(((((a28==1)&&((((((a19==1)&&((!(a7==1)&&(a25==1))&&(a29==5)))||(((a19==5)&&((a29==8)&&(!(a25==1)&&(a7==1))))||(((!(a25==1)&&(a7==1))&&(a29==9))&&(a19==5))))&&(input==3))&&(a22==1))&&!(a24==1)))&&(a11==1))&&!(a20==1))&&(a14==9)))){ + a20 = 1; + a19 = 5; + a24 = 1; + a25 = 0; + a0 = 0; + a29 = 8; + a7 = 0; + a14 = 8; + return -1; + } else if((!(a20==1)&&((a22==1)&&(((!(a25==1)&&(((a0==1)&&((a28==1)&&((((input==4)&&((a29==5)||(a29==6)))&&(a14==8))&&!(a11==1))))&&!(a7==1)))&&(a19==3))&&!(a24==1))))){ + a29 = 6; + a19 = 2; + return -1; + } else if((!(a20==1)&&((((!(a11==1)&&(!(a7==1)&&((a24==1)&&(((a0==1)&&(((input==3)&&(a22==1))&&(a28==1)))&&(a29==6)))))&&(a14==9))&&!(a25==1))&&(a19==1)))){ + a29 = 7; + a14 = 8; + a7 = 1; + a20 = 1; + a11 = 1; + a19 = 3; + a0 = 0; + return -1; + } else if((((a29==5)&&(((!(a7==1)&&(((((a24==1)&&((a22==1)&&((input==6)&&(a11==1))))&&(a0==1))&&(a14==8))&&!(a25==1)))&&(a20==1))&&(a28==1)))&&(a19==3))){ + a7 = 1; + a19 = 1; + a25 = 1; + return -1; + } else if(((((a20==1)&&(((!(a25==1)&&((((a22==1)&&((((a19==3)&&(a29==5))||(((a29==8)&&(a19==2))||((a29==9)&&(a19==2))))&&(input==2)))&&(a28==1))&&!(a24==1)))&&!(a11==1))&&(a14==9)))&&(a0==1))&&!(a7==1))){ + a11 = 1; + a14 = 8; + a19 = 4; + a0 = 0; + a29 = 9; + a7 = 1; + a24 = 1; + return 21; + } else if(((a29==6)&&(((a19==1)&&((a7==1)&&((((a28==1)&&((a22==1)&&((!(a24==1)&&((input==2)&&!(a0==1)))&&!(a25==1))))&&!(a20==1))&&(a14==8))))&&!(a11==1)))){ + a20 = 1; + a14 = 9; + a7 = 0; + a19 = 4; + a11 = 1; + a29 = 9; + a0 = 1; + a25 = 1; + return 23; + } else if((((((((a14==8)&&(((!(a7==1)&&((((a29==6)&&(a19==2))||(((a19==1)&&(a29==9))||((a29==5)&&(a19==2))))&&(input==4)))&&!(a11==1))&&(a20==1)))&&(a22==1))&&!(a24==1))&&(a25==1))&&!(a0==1))&&(a28==1))){ + a24 = 1; + a11 = 1; + a19 = 5; + a29 = 9; + a20 = 0; + return 23; + } else if(((a22==1)&&(((a28==1)&&(!(a25==1)&&((((a14==8)&&((((a20==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==4)))&&!(a11==1))&&!(a24==1)))&&(a19==5))&&(a0==1))))&&!(a7==1)))){ + a24 = 1; + a14 = 9; + a29 = 5; + a25 = 1; + a7 = 1; + a19 = 3; + return 23; + } else if(((a19==5)&&(((a22==1)&&(((a28==1)&&((a25==1)&&(((!(a0==1)&&(!(a7==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==6))))&&!(a24==1))&&(a11==1))))&&(a14==9)))&&(a20==1)))){ + a14 = 8; + a7 = 1; + a29 = 5; + a19 = 1; + a0 = 1; + a24 = 1; + return -1; + } else if((((a14==9)&&((((((a22==1)&&((a11==1)&&((((input==3)&&(((a29==6)||(a29==7))||(a29==8)))&&!(a7==1))&&!(a0==1))))&&!(a25==1))&&!(a20==1))&&(a28==1))&&(a24==1)))&&(a19==2))){ + a29 = 5; + a19 = 4; + a0 = 1; + a25 = 1; + return 21; + } else if(((a0==1)&&((((((((((a24==1)&&(((a29==5)||(a29==6))&&(input==1)))&&!(a11==1))&&(a19==1))&&!(a7==1))&&(a28==1))&&(a22==1))&&(a25==1))&&(a20==1))&&(a14==9)))){ + a14 = 8; + a0 = 0; + a20 = 0; + a25 = 0; + a29 = 6; + a24 = 0; + a19 = 4; + return -1; + } else if(((a11==1)&&((!(a24==1)&&(((((a20==1)&&((a29==8)&&((((a0==1)&&(input==4))&&!(a7==1))&&(a22==1))))&&(a25==1))&&(a28==1))&&(a19==2)))&&(a14==9)))){ + a24 = 1; + a14 = 8; + a0 = 0; + a29 = 9; + a19 = 5; + a20 = 0; + return 23; + } else if((((!(a25==1)&&((a19==5)&&(!(a24==1)&&((a28==1)&&(!(a0==1)&&((a7==1)&&((a22==1)&&(((input==2)&&((a29==5)||(a29==6)))&&(a14==8)))))))))&&!(a20==1))&&!(a11==1))){ + a20 = 1; + a29 = 5; + a19 = 2; + a14 = 9; + a0 = 1; + return 23; + } else if(((a20==1)&&(((a14==10)&&(((a29==8)&&(((a19==4)&&((a22==1)&&((((a0==1)&&(input==4))&&(a24==1))&&(a11==1))))&&!(a25==1)))&&(a28==1)))&&!(a7==1)))){ + a29 = 5; + a7 = 1; + a25 = 1; + a19 = 1; + a14 = 8; + return -1; + } else if(((a19==3)&&(((((a14==9)&&((((a29==6)&&((a24==1)&&((a28==1)&&((input==6)&&(a25==1)))))&&(a22==1))&&!(a11==1)))&&!(a20==1))&&!(a0==1))&&(a7==1)))){ + a11 = 1; + a14 = 8; + a29 = 5; + a19 = 2; + a25 = 0; + return 23; + } else if(((((a20==1)&&((a19==4)&&((a24==1)&&(((a28==1)&&((a14==9)&&(((((a29==9)||((a29==7)||(a29==8)))&&(input==1))&&(a22==1))&&!(a11==1))))&&(a0==1)))))&&(a7==1))&&!(a25==1))){ + a14 = 8; + a25 = 1; + a29 = 6; + a0 = 0; + a19 = 2; + return -1; + } else if((((a22==1)&&((a24==1)&&((a0==1)&&((a14==8)&&(!(a11==1)&&(!(a25==1)&&(((a20==1)&&(((input==4)&&((a29==8)||(a29==9)))&&(a19==5)))&&!(a7==1))))))))&&(a28==1))){ + a0 = 0; + a19 = 1; + a25 = 1; + a20 = 0; + a24 = 0; + a29 = 6; + return 21; + } else if((((!(a25==1)&&((((((((input==1)&&((((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))||((a19==2)&&(a29==6))))&&(a11==1))&&(a24==1))&&(a22==1))&&!(a0==1))&&(a14==8))&&(a20==1)))&&(a28==1))&&!(a7==1))){ + a25 = 1; + a0 = 1; + a19 = 3; + a11 = 0; + a14 = 9; + a29 = 5; + a24 = 0; + return 24; + } else if((((a14==9)&&(((a0==1)&&(!(a24==1)&&(((a28==1)&&(((a19==3)&&(((input==3)&&((a29==5)||(a29==6)))&&(a20==1)))&&(a11==1)))&&!(a25==1))))&&(a22==1)))&&(a7==1))){ + a14 = 8; + a11 = 0; + a7 = 0; + a25 = 1; + a29 = 6; + a19 = 2; + a20 = 0; + return 21; + } else if(((a19==5)&&(((a14==9)&&(!(a0==1)&&((a24==1)&&((a7==1)&&((!(a25==1)&&(((((a29==9)||((a29==7)||(a29==8)))&&(input==4))&&(a28==1))&&(a22==1)))&&(a20==1))))))&&(a11==1)))){ + a11 = 0; + a24 = 0; + a14 = 8; + a19 = 1; + a29 = 8; + return 23; + } else if(((((a25==1)&&((a22==1)&&(((!(a0==1)&&((((a14==9)&&((input==5)&&(((a29==6)||(a29==7))||(a29==8))))&&!(a20==1))&&(a24==1)))&&!(a7==1))&&(a19==5))))&&(a28==1))&&!(a11==1))){ + a14 = 8; + a7 = 1; + a29 = 7; + a24 = 0; + a0 = 1; + a25 = 0; + a19 = 3; + return 23; + } else if((((((a28==1)&&(!(a24==1)&&((a25==1)&&((a22==1)&&((!(a11==1)&&((input==2)&&(((a29==6)&&(a19==4))||(((a29==9)&&(a19==3))||((a19==4)&&(a29==5))))))&&(a0==1))))))&&(a14==9))&&!(a20==1))&&(a7==1))){ + a7 = 0; + a20 = 1; + a29 = 9; + a19 = 1; + return -1; + } else if((((a24==1)&&((((a28==1)&&((a19==2)&&((a0==1)&&(((a14==9)&&(!(a11==1)&&((input==5)&&((a29==6)||(a29==7)))))&&(a22==1)))))&&(a20==1))&&!(a25==1)))&&(a7==1))){ + a25 = 1; + a19 = 4; + a29 = 9; + return 21; + } else if((!(a25==1)&&((((((a22==1)&&(((((a28==1)&&((input==1)&&(((a29==7)||(a29==8))||(a29==9))))&&!(a7==1))&&!(a0==1))&&(a11==1)))&&!(a20==1))&&(a14==8))&&(a19==3))&&(a24==1)))){ + a0 = 1; + a20 = 1; + a25 = 1; + a29 = 5; + a7 = 1; + a19 = 1; + return -1; + } else if(((((a25==1)&&((a14==9)&&(((a19==1)&&((!(a20==1)&&((a24==1)&&((a22==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==6)))))&&!(a0==1)))&&!(a11==1))))&&(a7==1))&&(a28==1))){ + a25 = 0; + a19 = 5; + a11 = 1; + a7 = 0; + a14 = 8; + a29 = 5; + return 21; + } else if(((!(a11==1)&&((a25==1)&&((!(a7==1)&&(((a22==1)&&(((a19==3)&&(((input==1)&&(((a29==7)||(a29==8))||(a29==9)))&&(a28==1)))&&!(a0==1)))&&(a24==1)))&&(a14==8))))&&!(a20==1))){ + a11 = 1; + a7 = 1; + a29 = 8; + return 23; + } else if(((a24==1)&&(((((a19==1)&&(!(a7==1)&&(((a22==1)&&((((input==1)&&((a29==8)||(a29==9)))&&(a11==1))&&!(a20==1)))&&(a28==1))))&&!(a0==1))&&!(a25==1))&&(a14==9)))){ + a19 = 5; + a29 = 6; + a24 = 0; + a25 = 1; + a0 = 1; + return 21; + } else if(((a0==1)&&((((a28==1)&&(!(a20==1)&&((a11==1)&&((a14==8)&&((a22==1)&&(((input==6)&&((((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))||((a29==6)&&(a19==3))))&&(a25==1)))))))&&(a24==1))&&!(a7==1)))){ + a11 = 0; + a7 = 1; + a19 = 2; + a29 = 9; + return 23; + } else if((((a11==1)&&((a22==1)&&(!(a20==1)&&((((a14==8)&&(!(a7==1)&&((a0==1)&&((a24==1)&&((input==5)&&((a29==5)||(a29==6)))))))&&(a28==1))&&!(a25==1)))))&&(a19==4))){ + a29 = 5; + a20 = 1; + a19 = 2; + a25 = 1; + a24 = 0; + a11 = 0; + return 21; + } else if(((a14==8)&&((a19==5)&&((a28==1)&&((!(a11==1)&&((((!(a24==1)&&(!(a25==1)&&((input==6)&&(((a29==5)||(a29==6))||(a29==7)))))&&!(a7==1))&&(a22==1))&&!(a0==1)))&&(a20==1)))))){ + a11 = 1; + a19 = 4; + a24 = 1; + a20 = 0; + a29 = 8; + a25 = 1; + return 24; + } else if((((a19==5)&&(((((a29==5)&&((a28==1)&&(!(a0==1)&&((!(a20==1)&&((input==2)&&(a14==8)))&&(a11==1)))))&&!(a7==1))&&(a22==1))&&(a24==1)))&&!(a25==1))){ + a7 = 1; + a19 = 3; + return -1; + } else if(((a0==1)&&((((a14==10)&&(!(a7==1)&&(((a20==1)&&((a29==7)&&((((a25==1)&&(input==3))&&(a22==1))&&(a28==1))))&&(a11==1))))&&(a19==4))&&(a24==1)))){ + a14 = 8; + a29 = 5; + a7 = 1; + a19 = 1; + return -1; + } else if((((a19==2)&&((!(a24==1)&&((a22==1)&&((((a28==1)&&((a20==1)&&((a0==1)&&((a14==10)&&(input==6)))))&&(a7==1))&&(a11==1))))&&(a29==5)))&&(a25==1))){ + a14 = 9; + a19 = 3; + a24 = 1; + return 23; + } else if(((((a7==1)&&((a14==8)&&((((((a28==1)&&((((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))&&(input==4)))&&!(a20==1))&&!(a24==1))&&(a0==1))&&(a22==1))))&&!(a25==1))&&!(a11==1))){ + a24 = 1; + a19 = 4; + a20 = 1; + a29 = 9; + a7 = 0; + a14 = 9; + return 23; + } else if((((a14==9)&&((a20==1)&&((!(a11==1)&&((a29==9)&&((a19==2)&&(!(a25==1)&&(!(a7==1)&&(!(a0==1)&&((input==4)&&(a28==1))))))))&&(a22==1))))&&!(a24==1))){ + a11 = 1; + a14 = 8; + a7 = 1; + a24 = 1; + a25 = 1; + a19 = 3; + return -1; + } else if(((a22==1)&&(!(a11==1)&&((((a28==1)&&((!(a0==1)&&(((((a19==1)&&(!(a25==1)&&(a29==5)))||(((a19==5)&&((a29==8)&&(a25==1)))||(((a29==9)&&(a25==1))&&(a19==5))))&&(input==4))&&(a14==9)))&&!(a7==1)))&&(a24==1))&&(a20==1))))){ + a14 = 8; + a7 = 1; + a29 = 5; + a25 = 1; + a11 = 1; + a19 = 1; + a0 = 1; + return -1; + } else if(((((a25==1)&&((a22==1)&&((a28==1)&&((a19==5)&&(!(a20==1)&&((a11==1)&&(((a24==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==6)))&&(a0==1))))))))&&!(a7==1))&&(a14==9))){ + a20 = 1; + a29 = 5; + a7 = 1; + a19 = 1; + a14 = 8; + return -1; + } else if(((((((!(a11==1)&&(((a20==1)&&((input==2)&&(((((a25==1)&&(a29==9))&&(a19==5))||(((a29==5)&&!(a25==1))&&(a19==1)))||(((a29==6)&&!(a25==1))&&(a19==1)))))&&!(a24==1)))&&(a28==1))&&(a22==1))&&(a7==1))&&(a14==8))&&(a0==1))){ + a19 = 2; + a14 = 9; + a25 = 1; + a7 = 0; + a29 = 6; + a11 = 1; + return 23; + } else if((!(a11==1)&&((((((((a14==8)&&(((a28==1)&&((input==6)&&(((a29==7)||(a29==8))||(a29==9))))&&!(a24==1)))&&(a19==1))&&(a22==1))&&(a25==1))&&(a20==1))&&(a0==1))&&(a7==1)))){ + a7 = 0; + a11 = 1; + a24 = 1; + a29 = 5; + a20 = 0; + a0 = 0; + a19 = 4; + return 23; + } else if((((a0==1)&&((((((a28==1)&&((((((a29==7)||(a29==8))&&(input==3))&&(a19==1))&&(a25==1))&&!(a20==1)))&&!(a24==1))&&(a7==1))&&(a22==1))&&(a11==1)))&&(a14==9))){ + a24 = 1; + a20 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if((((a28==1)&&(!(a7==1)&&((a14==8)&&(((!(a24==1)&&((((input==4)&&(((a19==1)&&(a29==9))||((a29==5)&&(a19==2))))&&(a22==1))&&!(a20==1)))&&!(a11==1))&&!(a0==1)))))&&!(a25==1))){ + a24 = 1; + a19 = 5; + a29 = 5; + a25 = 1; + a20 = 1; + a7 = 1; + return 21; + } else if(((a28==1)&&((a25==1)&&(!(a24==1)&&(((!(a11==1)&&((((((input==2)&&((a29==9)||((a29==7)||(a29==8))))&&(a20==1))&&(a7==1))&&(a0==1))&&(a19==4)))&&(a22==1))&&(a14==9)))))){ + a14 = 8; + a7 = 0; + a0 = 0; + a24 = 1; + a19 = 5; + a29 = 9; + return -1; + } else if(((a22==1)&&(((!(a0==1)&&(((a19==5)&&((a20==1)&&((((a28==1)&&(((a29==7)||(a29==8))&&(input==6)))&&(a11==1))&&(a14==9))))&&(a7==1)))&&(a25==1))&&(a24==1)))){ + a24 = 0; + a29 = 6; + a25 = 0; + a19 = 2; + a0 = 1; + return -1; + } else if(((a24==1)&&(!(a11==1)&&((a0==1)&&((a7==1)&&(((a20==1)&&((a19==2)&&((a22==1)&&((a28==1)&&(((input==3)&&((a29==6)||(a29==7)))&&!(a25==1))))))&&(a14==9))))))){ + a19 = 1; + a14 = 8; + a29 = 5; + a25 = 1; + a11 = 1; + return -1; + } else if(((a28==1)&&((a24==1)&&((a7==1)&&(!(a11==1)&&((a22==1)&&((a0==1)&&((((a19==1)&&((a25==1)&&((input==2)&&((a29==7)||(a29==8)))))&&(a14==8))&&!(a20==1))))))))){ + a20 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if((!(a24==1)&&((a14==8)&&((a28==1)&&(((a29==9)&&((((((a7==1)&&(!(a20==1)&&(input==4)))&&(a11==1))&&(a22==1))&&(a25==1))&&!(a0==1)))&&(a19==2)))))){ + a0 = 1; + a24 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((!(a11==1)&&((a19==3)&&((((a0==1)&&(((((a14==8)&&(!(a24==1)&&(((a29==7)||(a29==8))&&(input==2))))&&(a28==1))&&!(a20==1))&&!(a7==1)))&&(a22==1))&&(a25==1))))){ + a19 = 5; + a29 = 9; + a25 = 0; + a7 = 1; + return -1; + } else if((((a14==9)&&((a28==1)&&((a11==1)&&(((!(a7==1)&&((((((a19==5)&&(a29==6))||(((a29==9)&&(a19==4))||((a29==5)&&(a19==5))))&&(input==1))&&(a20==1))&&(a24==1)))&&!(a25==1))&&!(a0==1)))))&&(a22==1))){ + a0 = 1; + a29 = 7; + a19 = 3; + a20 = 0; + return 23; + } else if((((a25==1)&&((a7==1)&&(!(a11==1)&&(((a0==1)&&((((((input==6)&&((a29==8)||(a29==9)))&&(a20==1))&&(a22==1))&&!(a24==1))&&(a14==9)))&&(a19==2)))))&&(a28==1))){ + a7 = 0; + a25 = 0; + a20 = 0; + a29 = 8; + a24 = 1; + a0 = 0; + a11 = 1; + a14 = 8; + a19 = 4; + return 24; + } else if(((a29==8)&&((a11==1)&&((a28==1)&&((a24==1)&&((a7==1)&&(((a20==1)&&((a22==1)&&(((a25==1)&&((input==6)&&(a14==10)))&&(a0==1))))&&(a19==5)))))))){ + a19 = 3; + a29 = 7; + a14 = 8; + a25 = 0; + return -1; + } else if((((((a28==1)&&((((a7==1)&&((!(a24==1)&&(((a14==8)&&(input==6))&&(a22==1)))&&!(a11==1)))&&!(a20==1))&&!(a25==1)))&&(a19==5))&&(a29==8))&&!(a0==1))){ + a7 = 0; + a24 = 1; + a14 = 9; + a19 = 2; + a29 = 9; + return 21; + } else if((((((a14==8)&&((((a22==1)&&((((a19==5)&&((input==1)&&((a29==5)||(a29==6))))&&(a28==1))&&(a7==1)))&&!(a0==1))&&(a11==1)))&&!(a25==1))&&(a20==1))&&!(a24==1))){ + a25 = 1; + a19 = 1; + a0 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if((((a28==1)&&(((a22==1)&&((a14==8)&&(!(a20==1)&&((a24==1)&&(((a19==1)&&(((input==5)&&(((a29==5)||(a29==6))||(a29==7)))&&(a7==1)))&&!(a0==1))))))&&!(a11==1)))&&!(a25==1))){ + a20 = 1; + a29 = 6; + a25 = 1; + a19 = 5; + a7 = 0; + a11 = 1; + return 24; + } else if((((a7==1)&&(((a11==1)&&((!(a20==1)&&((a14==9)&&((((((a29==6)&&(a19==5))||(((a29==9)&&(a19==4))||((a29==5)&&(a19==5))))&&(input==1))&&(a28==1))&&(a0==1))))&&(a25==1)))&&!(a24==1)))&&(a22==1))){ + a14 = 8; + a7 = 0; + a24 = 1; + a25 = 0; + a19 = 4; + a29 = 6; + a0 = 0; + return 23; + } else if(((!(a0==1)&&((a7==1)&&(((a14==8)&&((((a24==1)&&((a22==1)&&(((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))||((a19==5)&&(a29==6)))&&(input==3))))&&(a28==1))&&(a25==1)))&&(a11==1))))&&(a20==1))){ + a11 = 0; + a0 = 1; + a7 = 0; + a24 = 0; + a25 = 0; + a19 = 5; + a20 = 0; + a29 = 5; + return 21; + } else if((((a0==1)&&(((((((((a29==8)&&((input==1)&&(a14==9)))&&(a22==1))&&(a28==1))&&(a11==1))&&!(a7==1))&&(a25==1))&&(a19==2))&&(a20==1)))&&!(a24==1))){ + a7 = 1; + a25 = 0; + a14 = 10; + a24 = 1; + a29 = 5; + a20 = 0; + return 21; + } else if(((a25==1)&&(((a14==8)&&((a29==5)&&((a22==1)&&(((a0==1)&&(((!(a7==1)&&((input==1)&&(a19==2)))&&!(a11==1))&&(a28==1)))&&(a20==1)))))&&(a24==1)))){ + a0 = 0; + a29 = 9; + a19 = 1; + a11 = 1; + return 24; + } else if(((a28==1)&&(!(a20==1)&&(!(a11==1)&&(((a22==1)&&(((a24==1)&&((!(a0==1)&&((((a29==5)||(a29==6))&&(input==6))&&!(a7==1)))&&(a14==8)))&&!(a25==1)))&&(a19==3)))))){ + a25 = 1; + a29 = 9; + a20 = 1; + a19 = 2; + a14 = 9; + a7 = 1; + return 23; + } else if(((((a22==1)&&(!(a0==1)&&((a7==1)&&(!(a11==1)&&(((a19==4)&&(((((a29==9)||((a29==7)||(a29==8)))&&(input==6))&&!(a20==1))&&(a25==1)))&&!(a24==1))))))&&(a28==1))&&(a14==9))){ + a24 = 1; + a19 = 3; + a0 = 1; + a29 = 7; + a25 = 0; + return -1; + } else if((!(a7==1)&&((a24==1)&&((a28==1)&&((((a22==1)&&(!(a20==1)&&(((a19==1)&&(((input==2)&&((a29==5)||(a29==6)))&&(a0==1)))&&(a11==1))))&&(a14==10))&&(a25==1)))))){ + a19 = 5; + a29 = 6; + a14 = 9; + a20 = 1; + return 21; + } else if((((a7==1)&&((a14==8)&&(!(a25==1)&&(!(a20==1)&&((!(a0==1)&&(((a28==1)&&((a19==3)&&((((a29==6)||(a29==7))||(a29==8))&&(input==4))))&&(a11==1)))&&(a24==1))))))&&(a22==1))){ + a29 = 7; + a19 = 1; + return -1; + } else if((!(a20==1)&&((a28==1)&&((a25==1)&&((a11==1)&&((!(a7==1)&&(((a19==1)&&((a14==9)&&(((input==1)&&((a29==7)||(a29==8)))&&(a22==1))))&&!(a0==1)))&&!(a24==1))))))){ + a0 = 1; + a19 = 2; + a14 = 8; + a11 = 0; + a29 = 9; + a25 = 0; + a7 = 1; + return -1; + } else if(((!(a11==1)&&((a0==1)&&((a22==1)&&(!(a20==1)&&((a7==1)&&((!(a25==1)&&(!(a24==1)&&((input==5)&&((((a19==3)&&(a29==8))||((a29==9)&&(a19==3)))||((a19==4)&&(a29==5))))))&&(a14==9)))))))&&(a28==1))){ + a7 = 0; + a29 = 9; + a19 = 2; + a24 = 1; + a14 = 8; + a11 = 1; + a0 = 0; + return 21; + } else if((((a22==1)&&((a14==8)&&(((a11==1)&&((a28==1)&&(((!(a24==1)&&(((input==6)&&((a29==8)||(a29==9)))&&!(a7==1)))&&!(a25==1))&&(a19==4))))&&!(a0==1))))&&(a20==1))){ + a19 = 2; + a7 = 1; + a20 = 0; + a24 = 1; + a29 = 9; + return 21; + } else if((((a25==1)&&((a11==1)&&(((((!(a20==1)&&((a7==1)&&((a22==1)&&(((a29==5)||(a29==6))&&(input==1)))))&&(a19==1))&&(a0==1))&&(a28==1))&&(a24==1))))&&(a14==8))){ + a19 = 2; + a7 = 0; + a24 = 0; + a29 = 7; + a20 = 1; + return 23; + } else if(((a11==1)&&((a29==7)&&(((!(a25==1)&&((((a22==1)&&(!(a7==1)&&(((input==5)&&(a14==8))&&(a19==4))))&&(a0==1))&&(a24==1)))&&!(a20==1))&&(a28==1))))){ + a20 = 1; + a11 = 0; + a24 = 0; + a25 = 1; + a29 = 6; + return 23; + } else if((((((a7==1)&&((a19==5)&&((a20==1)&&(((!(a11==1)&&((a29==7)&&(!(a0==1)&&(input==5))))&&(a25==1))&&(a14==9)))))&&(a24==1))&&(a28==1))&&(a22==1))){ + a19 = 4; + a24 = 0; + a11 = 1; + a14 = 8; + a29 = 9; + a25 = 0; + return 21; + } else if(((a28==1)&&((((((a19==4)&&(!(a7==1)&&((((a14==9)&&((input==5)&&((a29==6)||(a29==7))))&&!(a25==1))&&(a22==1))))&&!(a11==1))&&!(a20==1))&&(a24==1))&&!(a0==1)))){ + a29 = 5; + a20 = 1; + return -1; + } else if(((!(a11==1)&&((a7==1)&&((a14==9)&&(((a29==9)&&(((a19==1)&&((a28==1)&&(((a22==1)&&(input==1))&&!(a0==1))))&&(a20==1)))&&(a25==1)))))&&(a24==1))){ + a19 = 3; + a24 = 0; + a29 = 5; + a14 = 8; + a7 = 0; + a11 = 1; + return 23; + } else if(((a25==1)&&(((((((a19==1)&&((!(a24==1)&&((a28==1)&&((input==6)&&((a29==7)||(a29==8)))))&&(a0==1)))&&(a11==1))&&!(a7==1))&&(a14==8))&&(a22==1))&&(a20==1)))){ + a7 = 1; + a20 = 0; + a24 = 1; + a0 = 0; + a29 = 7; + a25 = 0; + return 24; + } else if(((((a7==1)&&((((a25==1)&&((!(a0==1)&&(((a28==1)&&(!(a20==1)&&(input==5)))&&(a14==8)))&&(a29==7)))&&(a22==1))&&!(a11==1)))&&(a19==2))&&(a24==1))){ + a29 = 5; + a20 = 1; + a11 = 1; + a7 = 0; + return 23; + } else if((!(a0==1)&&((((!(a20==1)&&((a25==1)&&((a11==1)&&((a14==8)&&((a7==1)&&(((input==3)&&((a29==6)||(a29==7)))&&(a19==5)))))))&&(a22==1))&&(a28==1))&&!(a24==1)))){ + a7 = 0; + a11 = 0; + a19 = 3; + a25 = 0; + a29 = 8; + a0 = 1; + return 21; + } return calculate_output7(input); + } + + int calculate_output7(int input) { + if(((a24==1)&&(((((((a0==1)&&((!(a7==1)&&((a22==1)&&((a19==5)&&(input==4))))&&(a29==8)))&&(a14==8))&&!(a11==1))&&(a28==1))&&(a25==1))&&!(a20==1)))){ + a11 = 1; + a14 = 9; + a29 = 6; + a19 = 1; + return 21; + } else if(((a14==8)&&((a28==1)&&(((!(a11==1)&&(((a19==2)&&((((a22==1)&&(((a29==8)||(a29==9))&&(input==1)))&&!(a25==1))&&!(a0==1)))&&(a7==1)))&&!(a24==1))&&!(a20==1))))){ + a11 = 1; + a7 = 0; + a19 = 4; + a25 = 1; + a29 = 5; + return -1; + } else if((((a29==5)&&((a25==1)&&((!(a11==1)&&((a28==1)&&(!(a24==1)&&(((((input==2)&&!(a20==1))&&(a22==1))&&!(a7==1))&&(a14==9)))))&&!(a0==1))))&&(a19==3))){ + a24 = 1; + a14 = 8; + a20 = 1; + a11 = 1; + a29 = 6; + return 24; + } else if((((((a0==1)&&((((a24==1)&&((a7==1)&&((((((a29==5)||(a29==6))||(a29==7))&&(input==2))&&!(a25==1))&&(a28==1))))&&(a11==1))&&!(a20==1)))&&(a22==1))&&(a19==2))&&(a14==9))){ + a29 = 7; + return -1; + } else if(((a19==5)&&(((a22==1)&&(!(a0==1)&&(((a14==9)&&((((((input==5)&&((a29==8)||(a29==9)))&&!(a25==1))&&(a28==1))&&!(a20==1))&&!(a24==1)))&&(a11==1))))&&!(a7==1)))){ + a14 = 8; + a25 = 1; + a29 = 7; + a11 = 0; + a0 = 1; + a19 = 1; + return 24; + } else if((!(a25==1)&&((!(a20==1)&&((((((((input==3)&&((((a29==8)&&(a19==2))||((a19==2)&&(a29==9)))||((a19==3)&&(a29==5))))&&(a24==1))&&(a22==1))&&(a28==1))&&(a14==8))&&(a11==1))&&(a7==1)))&&!(a0==1)))){ + a25 = 1; + a29 = 5; + a19 = 1; + a20 = 1; + a0 = 1; + return -1; + } else if(((!(a11==1)&&(((a24==1)&&(((a14==9)&&(!(a0==1)&&((a7==1)&&((a19==3)&&(((input==4)&&((a29==7)||(a29==8)))&&!(a20==1))))))&&!(a25==1)))&&(a22==1)))&&(a28==1))){ + a29 = 5; + a25 = 1; + a14 = 8; + a11 = 1; + a20 = 1; + a19 = 1; + a0 = 1; + return -1; + } else if((((((a11==1)&&(((((a0==1)&&((((input==4)&&((a29==7)||(a29==8)))&&!(a7==1))&&(a14==8)))&&!(a20==1))&&(a28==1))&&!(a24==1)))&&(a22==1))&&(a19==5))&&(a25==1))){ + a19 = 4; + a24 = 1; + a25 = 0; + a29 = 9; + a0 = 0; + return 21; + } else if(((a0==1)&&(((a22==1)&&((a28==1)&&((((((a24==1)&&((a7==1)&&((input==4)&&!(a25==1))))&&(a19==1))&&!(a20==1))&&(a29==6))&&(a11==1))))&&(a14==10)))){ + a29 = 5; + a14 = 8; + a20 = 1; + a25 = 1; + return -1; + } else if(((((a19==4)&&(((!(a24==1)&&(((a14==8)&&(((a20==1)&&((input==5)&&((a29==7)||(a29==8))))&&(a28==1)))&&(a25==1)))&&(a7==1))&&(a0==1)))&&!(a11==1))&&(a22==1))){ + a19 = 1; + a11 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if(((a25==1)&&(((!(a11==1)&&((((a24==1)&&((((((a29==6)&&(a19==3))||(((a19==2)&&(a29==9))||((a29==5)&&(a19==3))))&&(input==6))&&!(a7==1))&&!(a0==1)))&&(a20==1))&&(a14==8)))&&(a22==1))&&(a28==1)))){ + a19 = 4; + a20 = 0; + a7 = 1; + a11 = 1; + a25 = 0; + a29 = 5; + return 23; + } else if(((((a14==8)&&((((a22==1)&&(((a19==2)&&(!(a20==1)&&(!(a0==1)&&((input==5)&&((a29==8)||(a29==9))))))&&(a24==1)))&&(a25==1))&&!(a7==1)))&&(a11==1))&&(a28==1))){ + a7 = 1; + a19 = 1; + a29 = 5; + a0 = 1; + a20 = 1; + return -1; + } else if((((a7==1)&&((!(a20==1)&&((((a22==1)&&((a25==1)&&(((((a29==9)||((a29==7)||(a29==8)))&&(input==2))&&(a28==1))&&(a19==5))))&&!(a11==1))&&(a0==1)))&&(a24==1)))&&(a14==9))){ + a19 = 4; + a14 = 8; + a25 = 0; + a29 = 5; + a24 = 0; + return 23; + } else if(((a22==1)&&((a19==4)&&(((((a11==1)&&((((a28==1)&&(((a14==10)&&(input==4))&&!(a7==1)))&&(a25==1))&&(a0==1)))&&(a24==1))&&!(a20==1))&&(a29==6))))){ + a0 = 0; + a29 = 7; + a11 = 0; + a7 = 1; + a14 = 8; + a25 = 0; + return 24; + } else if((((((a25==1)&&(((((a24==1)&&(((a28==1)&&(((a29==5)||(a29==6))&&(input==5)))&&(a19==2)))&&(a7==1))&&!(a11==1))&&(a0==1)))&&(a22==1))&&(a14==8))&&(a20==1))){ + a20 = 0; + a7 = 0; + a19 = 5; + a24 = 0; + a29 = 8; + return 24; + } else if((((((a19==2)&&(((a14==8)&&((!(a25==1)&&((((input==4)&&((a29==5)||(a29==6)))&&(a22==1))&&(a28==1)))&&!(a7==1)))&&!(a20==1)))&&(a11==1))&&!(a24==1))&&!(a0==1))){ + a24 = 1; + a29 = 5; + a14 = 9; + return 23; + } else if(((((a28==1)&&(((a7==1)&&(((((a24==1)&&((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))&&(input==2)))&&(a14==10))&&(a22==1))&&(a11==1)))&&!(a20==1)))&&(a0==1))&&!(a25==1))){ + a29 = 5; + a25 = 1; + a20 = 1; + a19 = 1; + a14 = 8; + return -1; + } else if((((a14==10)&&((a28==1)&&((a7==1)&&((a11==1)&&(((((a20==1)&&((((a29==9)&&(a19==4))||((a29==5)&&(a19==5)))&&(input==5)))&&(a22==1))&&(a25==1))&&(a0==1))))))&&!(a24==1))){ + a24 = 1; + a19 = 5; + a11 = 0; + a29 = 5; + a14 = 9; + return -1; + } else if((((a20==1)&&((((a19==4)&&(((a28==1)&&(!(a11==1)&&(((((a29==7)||(a29==8))&&(input==5))&&!(a24==1))&&(a22==1))))&&(a14==9)))&&!(a7==1))&&(a25==1)))&&(a0==1))){ + a29 = 6; + a11 = 1; + a0 = 0; + a24 = 1; + a19 = 3; + a14 = 8; + return -1; + } else if((((!(a7==1)&&(!(a20==1)&&(((a22==1)&&(((!(a0==1)&&((a19==4)&&((input==6)&&((a29==6)||(a29==7)))))&&(a14==9))&&(a24==1)))&&(a11==1))))&&(a25==1))&&(a28==1))){ + a29 = 7; + a20 = 1; + a19 = 1; + a7 = 1; + a14 = 8; + a25 = 0; + return 21; + } else if(((!(a7==1)&&((a22==1)&&((a20==1)&&((a24==1)&&((a14==8)&&((a28==1)&&((a0==1)&&((input==5)&&((((a19==5)&&((a29==9)&&(a25==1)))||(((a29==5)&&!(a25==1))&&(a19==1)))||((a19==1)&&(!(a25==1)&&(a29==6))))))))))))&&!(a11==1))){ + a11 = 1; + a29 = 5; + a19 = 1; + a25 = 1; + a7 = 1; + return -1; + } else if((((a0==1)&&((a24==1)&&((((a22==1)&&(((a14==8)&&((((input==5)&&(a28==1))&&(a25==1))&&(a19==5)))&&!(a7==1)))&&!(a11==1))&&(a20==1))))&&(a29==7))){ + a29 = 9; + a7 = 1; + a20 = 0; + a24 = 0; + a19 = 3; + a25 = 0; + return 24; + } else if(((a7==1)&&(((a22==1)&&((a14==9)&&(!(a24==1)&&(((a28==1)&&((a11==1)&&(!(a0==1)&&((((a29==5)&&(a19==5))||(((a29==8)&&(a19==4))||((a29==9)&&(a19==4))))&&(input==3)))))&&!(a25==1)))))&&!(a20==1)))){ + a29 = 9; + a0 = 1; + a20 = 1; + a7 = 0; + a19 = 2; + a11 = 0; + return -1; + } else if(((((a22==1)&&(((a29==9)&&((((a20==1)&&((a24==1)&&((a7==1)&&((a19==3)&&(input==3)))))&&(a14==10))&&(a0==1)))&&(a25==1)))&&(a11==1))&&(a28==1))){ + a29 = 5; + a19 = 5; + a25 = 0; + a0 = 0; + a14 = 8; + a7 = 0; + a20 = 0; + return 21; + } else if(((((a24==1)&&((a14==9)&&(((!(a7==1)&&((a0==1)&&((a28==1)&&((a22==1)&&((input==3)&&(a29==7))))))&&(a20==1))&&(a11==1))))&&!(a25==1))&&(a19==5))){ + a7 = 1; + a0 = 0; + a29 = 6; + a14 = 8; + a25 = 1; + return 24; + } else if((((a19==1)&&((!(a0==1)&&((a7==1)&&(((a22==1)&&((a11==1)&&(!(a24==1)&&(((input==2)&&((a29==8)||(a29==9)))&&!(a20==1)))))&&(a28==1))))&&(a25==1)))&&(a14==8))){ + a29 = 6; + a19 = 4; + a14 = 9; + a25 = 0; + a11 = 0; + a0 = 1; + return 21; + } else if(((a14==8)&&(!(a25==1)&&((a29==5)&&((a28==1)&&(((((!(a0==1)&&((a11==1)&&((input==6)&&!(a7==1))))&&(a19==5))&&!(a20==1))&&(a22==1))&&(a24==1))))))){ + a24 = 0; + a29 = 9; + a25 = 1; + a0 = 1; + a14 = 9; + a11 = 0; + return 24; + } else if(((a22==1)&&(((a0==1)&&((a28==1)&&((a19==5)&&(!(a7==1)&&(((a14==9)&&((a24==1)&&((((a29==6)||(a29==7))&&(input==6))&&!(a11==1))))&&(a25==1))))))&&!(a20==1)))){ + a7 = 1; + a19 = 3; + a25 = 0; + a11 = 1; + a29 = 9; + return 23; + } else if((((a19==3)&&((a29==7)&&((a7==1)&&((a25==1)&&(((((a22==1)&&(!(a11==1)&&((input==3)&&(a28==1))))&&(a20==1))&&(a24==1))&&!(a0==1))))))&&(a14==8))){ + a24 = 0; + a20 = 0; + a0 = 1; + a25 = 0; + a29 = 6; + return 23; + } else if((!(a25==1)&&(!(a7==1)&&(((!(a11==1)&&((a28==1)&&((a22==1)&&(((a24==1)&&((input==5)&&((((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))||((a29==5)&&(a19==5)))))&&!(a20==1)))))&&(a0==1))&&(a14==8))))){ + a11 = 1; + a25 = 1; + a29 = 9; + a20 = 1; + a0 = 0; + a19 = 1; + return 23; + } else if(((a24==1)&&((a22==1)&&((a14==8)&&(!(a7==1)&&(!(a25==1)&&(((a28==1)&&((((a19==2)&&((input==2)&&(((a29==6)||(a29==7))||(a29==8))))&&!(a0==1))&&!(a20==1)))&&!(a11==1)))))))){ + a0 = 1; + a29 = 5; + a19 = 1; + a25 = 1; + a11 = 1; + a20 = 1; + a7 = 1; + return -1; + } else if((!(a7==1)&&(((a25==1)&&(((a19==4)&&((a0==1)&&(((a28==1)&&(!(a11==1)&&(((input==3)&&(a29==6))&&(a24==1))))&&(a22==1))))&&(a20==1)))&&(a14==9)))){ + a7 = 1; + a11 = 1; + a19 = 2; + a29 = 8; + a24 = 0; + a20 = 0; + return 24; + } else if(((a11==1)&&(!(a20==1)&&((a0==1)&&(((a24==1)&&((a7==1)&&((a22==1)&&(((input==6)&&(((a19==1)&&(!(a25==1)&&(a29==6)))||(((a19==5)&&((a29==9)&&(a25==1)))||((a19==1)&&(!(a25==1)&&(a29==5))))))&&(a14==8)))))&&(a28==1)))))){ + a7 = 0; + a25 = 1; + a19 = 1; + a24 = 0; + a29 = 8; + return 24; + } else if((((a11==1)&&((a25==1)&&(((((a19==4)&&((a20==1)&&((a0==1)&&(!(a7==1)&&((input==3)&&!(a24==1))))))&&(a22==1))&&(a14==8))&&(a28==1))))&&(a29==7))){ + a7 = 1; + a0 = 0; + a29 = 5; + a19 = 1; + return 24; + } else if((((a14==9)&&(((((a25==1)&&((a20==1)&&(((a22==1)&&((((a29==5)||(a29==6))&&(input==3))&&(a28==1)))&&(a19==4))))&&!(a7==1))&&(a24==1))&&(a11==1)))&&!(a0==1))){ + a19 = 5; + a14 = 8; + a7 = 1; + a29 = 7; + a20 = 0; + return 21; + } else if((!(a0==1)&&((a14==9)&&(((((!(a11==1)&&(!(a7==1)&&(((a25==1)&&((a19==1)&&(input==6)))&&(a29==9))))&&(a28==1))&&(a22==1))&&!(a24==1))&&(a20==1))))){ + a11 = 1; + a29 = 7; + a7 = 1; + a24 = 1; + a14 = 8; + a19 = 2; + return 23; + } else if(((a14==8)&&(((a20==1)&&(!(a11==1)&&(!(a25==1)&&(!(a7==1)&&(!(a24==1)&&((a22==1)&&((a28==1)&&((((a29==8)||(a29==9))&&(input==5))&&(a0==1)))))))))&&(a19==3)))){ + a29 = 5; + a20 = 0; + a24 = 1; + a0 = 0; + a11 = 1; + a7 = 1; + return 23; + } else if((!(a0==1)&&((((a14==8)&&((((!(a25==1)&&(((((a29==9)&&(a19==4))||((a29==5)&&(a19==5)))&&(input==3))&&(a20==1)))&&!(a11==1))&&!(a24==1))&&(a28==1)))&&(a22==1))&&(a7==1)))){ + a19 = 4; + a20 = 0; + a0 = 1; + a29 = 5; + return 21; + } else if((((a11==1)&&(((((((a29==7)&&(((a22==1)&&((input==4)&&(a19==3)))&&!(a0==1)))&&!(a20==1))&&(a28==1))&&(a14==9))&&!(a25==1))&&!(a7==1)))&&!(a24==1))){ + a14 = 8; + a7 = 1; + a11 = 0; + a29 = 9; + a0 = 1; + return 21; + } else if((((((a28==1)&&((a25==1)&&(((a20==1)&&((a24==1)&&((((input==4)&&(a19==4))&&!(a7==1))&&(a22==1))))&&(a14==8))))&&(a11==1))&&(a29==6))&&(a0==1))){ + a7 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((a22==1)&&((a28==1)&&(((a0==1)&&((((((a14==9)&&((input==1)&&(((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))))&&!(a25==1))&&(a11==1))&&(a24==1))&&(a20==1)))&&!(a7==1))))){ + a29 = 5; + a19 = 1; + a25 = 1; + a7 = 1; + a14 = 8; + return -1; + } else if((((a14==8)&&(((a7==1)&&(((!(a25==1)&&((!(a20==1)&&((input==4)&&(((a19==5)&&(a29==5))||(((a29==8)&&(a19==4))||((a29==9)&&(a19==4))))))&&(a22==1)))&&(a24==1))&&!(a11==1)))&&(a28==1)))&&!(a0==1))){ + a7 = 0; + a29 = 7; + a11 = 1; + a25 = 1; + a19 = 2; + return 21; + } else if((!(a20==1)&&(((a0==1)&&(((!(a25==1)&&((((a28==1)&&((!(a11==1)&&(input==2))&&(a14==8)))&&(a29==9))&&(a24==1)))&&(a22==1))&&(a19==4)))&&(a7==1)))){ + a29 = 5; + a11 = 1; + a19 = 1; + a25 = 1; + a20 = 1; + return -1; + } else if((((((a22==1)&&((a25==1)&&(((((a20==1)&&(((input==3)&&(a28==1))&&(a7==1)))&&(a19==5))&&(a14==9))&&(a29==5))))&&!(a11==1))&&(a0==1))&&(a24==1))){ + a14 = 8; + a19 = 1; + a11 = 1; + return -1; + } else if(((a28==1)&&((!(a0==1)&&((a20==1)&&(((a14==9)&&((a24==1)&&(((a25==1)&&(((input==3)&&(a11==1))&&(a19==3)))&&(a29==9))))&&(a7==1))))&&(a22==1)))){ + a19 = 2; + a29 = 7; + a11 = 0; + a14 = 8; + return 21; + } else if(((((!(a20==1)&&(!(a24==1)&&((a7==1)&&((a11==1)&&((a28==1)&&(((((a29==9)&&(a19==4))||((a29==5)&&(a19==5)))&&(input==1))&&(a14==9)))))))&&(a0==1))&&!(a25==1))&&(a22==1))){ + a14 = 8; + a24 = 1; + a29 = 5; + a20 = 1; + a19 = 1; + a25 = 1; + return -1; + } else if((((!(a24==1)&&((a20==1)&&(((a14==8)&&((a11==1)&&(((a28==1)&&((((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))&&(input==5)))&&(a0==1))))&&!(a7==1))))&&(a25==1))&&(a22==1))){ + a24 = 1; + a0 = 0; + a20 = 0; + a25 = 0; + a29 = 8; + a19 = 3; + return 21; + } else if(((a14==9)&&(((a22==1)&&((!(a11==1)&&(((a20==1)&&(((((input==4)&&((a29==8)||(a29==9)))&&!(a0==1))&&!(a7==1))&&(a28==1)))&&!(a25==1)))&&(a19==4)))&&!(a24==1)))){ + a11 = 1; + a24 = 1; + a19 = 5; + a0 = 1; + a25 = 1; + a29 = 8; + a20 = 0; + return 23; + } else if((((a22==1)&&((a14==9)&&(((a19==4)&&(((((!(a25==1)&&((input==3)&&((a29==7)||(a29==8))))&&(a11==1))&&(a7==1))&&(a20==1))&&(a28==1)))&&!(a0==1))))&&!(a24==1))){ + a29 = 5; + a24 = 1; + a0 = 1; + a14 = 8; + a25 = 1; + a19 = 1; + return -1; + } else if(((!(a7==1)&&(((a25==1)&&((a19==5)&&((((a22==1)&&((((input==6)&&(((a29==6)||(a29==7))||(a29==8)))&&(a20==1))&&(a28==1)))&&(a0==1))&&(a14==8))))&&(a24==1)))&&(a11==1))){ + a7 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((a25==1)&&((a28==1)&&(((a24==1)&&(((a11==1)&&((a7==1)&&((((a19==1)&&((input==1)&&((a29==5)||(a29==6))))&&!(a20==1))&&(a14==10))))&&(a0==1)))&&(a22==1))))){ + a20 = 1; + a29 = 7; + a14 = 8; + a7 = 0; + a24 = 0; + a0 = 0; + a25 = 0; + return 24; + } else if(((a28==1)&&((a11==1)&&(!(a25==1)&&((!(a20==1)&&(((((((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))||((a19==4)&&(a29==6)))&&(input==5))&&(a22==1))&&(a7==1))&&(a24==1))&&(a14==8)))&&(a0==1)))))){ + a11 = 0; + a25 = 1; + a19 = 4; + a20 = 1; + a29 = 6; + return 23; + } else if(((((a24==1)&&((a20==1)&&((a22==1)&&(!(a7==1)&&(((a25==1)&&((a11==1)&&((a19==1)&&((input==2)&&(((a29==6)||(a29==7))||(a29==8))))))&&(a14==9))))))&&(a28==1))&&!(a0==1))){ + a7 = 1; + a29 = 7; + a19 = 3; + a0 = 1; + a25 = 0; + return 21; + } else if(((((a7==1)&&(((a0==1)&&((a28==1)&&((!(a20==1)&&(!(a24==1)&&((((a19==5)&&(a29==6))||(((a19==4)&&(a29==9))||((a19==5)&&(a29==5))))&&(input==4))))&&(a14==8))))&&!(a25==1)))&&!(a11==1))&&(a22==1))){ + a29 = 5; + a19 = 5; + return 23; + } else if((!(a24==1)&&((a25==1)&&((((a14==9)&&(!(a11==1)&&((a0==1)&&(((a28==1)&&((((a29==6)||(a29==7))&&(input==1))&&(a20==1)))&&(a7==1)))))&&(a22==1))&&(a19==3))))){ + a19 = 1; + a29 = 5; + a11 = 1; + a24 = 1; + a14 = 8; + return -1; + } else if((((a24==1)&&((a14==8)&&(!(a20==1)&&((((((a28==1)&&(!(a0==1)&&(((a29==8)||(a29==9))&&(input==3))))&&(a25==1))&&(a7==1))&&(a19==2))&&(a22==1)))))&&(a11==1))){ + a24 = 0; + a7 = 0; + a0 = 1; + a29 = 8; + a11 = 0; + a19 = 5; + return -1; + } else if((!(a7==1)&&((a14==8)&&((a28==1)&&(((((((a25==1)&&((input==4)&&(((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))))&&(a22==1))&&(a20==1))&&(a11==1))&&!(a0==1))&&(a24==1)))))){ + a19 = 4; + a29 = 9; + a7 = 1; + a25 = 0; + return 21; + } else if(((a14==10)&&((a20==1)&&((a11==1)&&((a24==1)&&(((((a19==3)&&(((a22==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==5)))&&(a28==1)))&&(a0==1))&&(a25==1))&&(a7==1))))))){ + a29 = 8; + a7 = 0; + a14 = 8; + a25 = 0; + a20 = 0; + a0 = 0; + a19 = 2; + return 24; + } else if(((!(a20==1)&&(((a25==1)&&(((a14==9)&&((a22==1)&&((a7==1)&&((!(a11==1)&&(((a29==5)||(a29==6))&&(input==3)))&&(a19==5)))))&&!(a0==1)))&&!(a24==1)))&&(a28==1))){ + a29 = 8; + a25 = 0; + a0 = 1; + a19 = 4; + a7 = 0; + return -1; + } else if(((a22==1)&&(!(a25==1)&&((a14==8)&&(!(a7==1)&&(((((((input==4)&&((((a29==8)&&(a19==2))||((a19==2)&&(a29==9)))||((a29==5)&&(a19==3))))&&!(a24==1))&&(a11==1))&&!(a0==1))&&(a28==1))&&(a20==1))))))){ + a24 = 1; + a25 = 1; + a29 = 7; + a19 = 2; + return 24; + } else if(((a19==2)&&((a22==1)&&((a0==1)&&((!(a25==1)&&((a28==1)&&((!(a24==1)&&(((a7==1)&&(((a29==6)||(a29==7))&&(input==1)))&&(a11==1)))&&(a14==9))))&&!(a20==1)))))){ + a29 = 5; + a25 = 1; + a14 = 8; + a19 = 1; + a20 = 1; + a24 = 1; + return -1; + } else if(((((((a24==1)&&((a20==1)&&(((a11==1)&&(((((a19==5)&&((a25==1)&&(a29==8)))||((a19==5)&&((a29==9)&&(a25==1))))||((a19==1)&&((a29==5)&&!(a25==1))))&&(input==4)))&&(a28==1))))&&(a22==1))&&!(a7==1))&&(a14==10))&&(a0==1))){ + a19 = 1; + a7 = 1; + a14 = 8; + a25 = 1; + a29 = 5; + return -1; + } else if((((a14==9)&&(((!(a25==1)&&((!(a20==1)&&(((a28==1)&&((((a29==8)||(a29==9))&&(input==2))&&(a22==1)))&&(a19==2)))&&(a7==1)))&&(a0==1))&&(a11==1)))&&(a24==1))){ + a25 = 1; + a7 = 0; + a14 = 8; + a29 = 8; + a0 = 0; + a19 = 5; + return 23; + } else if(((a7==1)&&(!(a11==1)&&((((((((!(a20==1)&&((input==4)&&(a25==1)))&&(a29==9))&&(a0==1))&&(a24==1))&&(a22==1))&&(a28==1))&&(a14==8))&&(a19==4))))){ + a20 = 1; + a29 = 6; + a11 = 1; + a14 = 9; + a19 = 3; + return 24; + } else if((!(a11==1)&&((a22==1)&&((!(a7==1)&&((!(a20==1)&&((((a28==1)&&(((a24==1)&&(input==5))&&!(a25==1)))&&(a0==1))&&(a29==8)))&&(a19==2)))&&(a14==8))))){ + a14 = 9; + a29 = 5; + a19 = 1; + a11 = 1; + return 21; + } else if((!(a20==1)&&((a28==1)&&((((a19==1)&&((a29==5)&&((a25==1)&&(((!(a7==1)&&(!(a0==1)&&(input==6)))&&(a22==1))&&(a14==8)))))&&!(a11==1))&&!(a24==1))))){ + a25 = 0; + a7 = 1; + a0 = 1; + a19 = 4; + return 23; + } else if((!(a7==1)&&((a0==1)&&(((!(a11==1)&&((a24==1)&&((((((!(a25==1)&&(a29==6))&&(a19==1))||((((a25==1)&&(a29==9))&&(a19==5))||((a19==1)&&((a29==5)&&!(a25==1)))))&&(input==4))&&(a22==1))&&(a20==1))))&&(a14==8))&&(a28==1))))){ + a11 = 1; + a25 = 0; + a29 = 6; + a19 = 3; + a7 = 1; + a20 = 0; + a0 = 0; + return 21; + } else if(((((((((((input==3)&&((((a29==5)&&!(a25==1))&&(a19==1))||((((a29==8)&&(a25==1))&&(a19==5))||((a19==5)&&((a29==9)&&(a25==1))))))&&(a7==1))&&(a14==9))&&(a11==1))&&(a22==1))&&!(a24==1))&&(a0==1))&&(a28==1))&&(a20==1))){ + a19 = 5; + a7 = 0; + a14 = 10; + a25 = 0; + a24 = 1; + a29 = 9; + return 21; + } else if(((a14==9)&&(!(a7==1)&&((a24==1)&&((a22==1)&&((a11==1)&&((a20==1)&&((a0==1)&&(((((((a29==9)&&(a19==4))||((a29==5)&&(a19==5)))||((a29==6)&&(a19==5)))&&(input==3))&&(a28==1))&&(a25==1)))))))))){ + a19 = 3; + a29 = 5; + a25 = 0; + a20 = 0; + a0 = 0; + a14 = 8; + return 23; + } else if((((a22==1)&&(((a0==1)&&(!(a25==1)&&(!(a20==1)&&(((!(a24==1)&&((input==2)&&((((a19==4)&&(a29==8))||((a29==9)&&(a19==4)))||((a29==5)&&(a19==5)))))&&(a11==1))&&!(a7==1)))))&&(a28==1)))&&(a14==8))){ + a29 = 9; + a24 = 1; + a0 = 0; + a7 = 1; + a19 = 1; + return 23; + } else if(((((((a28==1)&&(!(a0==1)&&(((a7==1)&&((a24==1)&&((input==2)&&((((a29==8)&&(a19==2))||((a19==2)&&(a29==9)))||((a29==5)&&(a19==3))))))&&(a11==1))))&&(a22==1))&&!(a20==1))&&(a14==9))&&(a25==1))){ + a11 = 0; + a29 = 6; + a25 = 0; + a19 = 3; + a0 = 1; + return -1; + } else if((!(a0==1)&&(((a28==1)&&((a11==1)&&((a14==9)&&((a19==1)&&((!(a25==1)&&((((input==6)&&((a29==8)||(a29==9)))&&(a20==1))&&(a24==1)))&&(a22==1))))))&&(a7==1)))){ + a7 = 0; + a20 = 0; + a11 = 0; + a14 = 8; + a24 = 0; + a29 = 6; + a19 = 2; + return 24; + } else if((!(a25==1)&&((((a28==1)&&((((a24==1)&&((((((a29==7)||(a29==8))&&(input==4))&&!(a7==1))&&(a19==4))&&(a14==9)))&&(a11==1))&&!(a0==1)))&&(a22==1))&&(a20==1)))){ + a0 = 1; + a19 = 1; + a14 = 8; + a29 = 5; + a25 = 1; + a7 = 1; + return -1; + } else if(((((((a19==4)&&(((a28==1)&&(!(a11==1)&&(((a0==1)&&(((a29==7)||(a29==8))&&(input==3)))&&!(a24==1))))&&(a25==1)))&&(a20==1))&&!(a7==1))&&(a14==9))&&(a22==1))){ + a25 = 0; + a29 = 8; + a0 = 0; + a19 = 5; + a7 = 1; + a14 = 8; + a11 = 1; + a24 = 1; + return 24; + } else if(((a22==1)&&(!(a20==1)&&((a0==1)&&(!(a11==1)&&((a19==1)&&((((!(a7==1)&&((a28==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==3))))&&!(a24==1))&&(a25==1))&&(a14==9)))))))){ + a14 = 8; + a20 = 1; + a0 = 0; + a7 = 1; + a29 = 6; + return 24; + } else if((((!(a0==1)&&(((((a24==1)&&((a20==1)&&(!(a11==1)&&(!(a25==1)&&((input==6)&&((a29==8)||((a29==6)||(a29==7))))))))&&(a22==1))&&!(a7==1))&&(a19==2)))&&(a28==1))&&(a14==8))){ + a29 = 8; + a19 = 5; + a11 = 1; + a7 = 1; + a25 = 1; + return 21; + } else if(((a14==9)&&(!(a7==1)&&((a22==1)&&(((a29==7)&&((a19==5)&&((!(a20==1)&&((((a28==1)&&(input==3))&&!(a0==1))&&(a25==1)))&&(a11==1))))&&(a24==1)))))){ + a14 = 8; + a19 = 1; + a20 = 1; + a29 = 5; + a7 = 1; + a0 = 1; + return -1; + } else if(((((((((a24==1)&&((a28==1)&&(((a0==1)&&((input==3)&&!(a11==1)))&&(a19==5))))&&(a14==9))&&!(a25==1))&&(a22==1))&&(a7==1))&&(a29==7))&&!(a20==1))){ + a25 = 1; + a14 = 8; + a19 = 1; + a20 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if(((a28==1)&&(!(a24==1)&&((((!(a11==1)&&(((((((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))&&(input==1))&&!(a25==1))&&(a0==1))&&(a14==9)))&&(a7==1))&&(a22==1))&&(a20==1))))){ + a14 = 8; + a19 = 1; + a11 = 1; + a24 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if(((((a25==1)&&((a22==1)&&(!(a24==1)&&((a7==1)&&(((a19==1)&&(((((a29==8)||((a29==6)||(a29==7)))&&(input==1))&&(a28==1))&&!(a11==1)))&&(a14==9))))))&&(a20==1))&&!(a0==1))){ + a29 = 6; + a20 = 0; + a19 = 3; + a0 = 1; + return 23; + } else if((((a0==1)&&((!(a20==1)&&(!(a11==1)&&((a14==8)&&((!(a7==1)&&((input==5)&&(((((a25==1)&&(a29==9))&&(a19==5))||(((a29==5)&&!(a25==1))&&(a19==1)))||((a19==1)&&((a29==6)&&!(a25==1))))))&&(a24==1)))))&&(a22==1)))&&(a28==1))){ + a25 = 0; + a24 = 0; + a19 = 3; + a29 = 6; + return 23; + } else if((((((a22==1)&&((a25==1)&&(((!(a0==1)&&((a28==1)&&(!(a24==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==2)))))&&(a7==1))&&!(a20==1))))&&(a14==8))&&(a19==4))&&(a11==1))){ + a0 = 1; + a29 = 5; + a19 = 1; + a24 = 1; + a20 = 1; + return -1; + } else if(((a24==1)&&((a14==9)&&(!(a11==1)&&((((((a19==1)&&((a7==1)&&(((input==5)&&(a29==9))&&!(a20==1))))&&(a0==1))&&(a28==1))&&!(a25==1))&&(a22==1)))))){ + a19 = 2; + a25 = 1; + a7 = 0; + a14 = 8; + a29 = 6; + a0 = 0; + return -1; + } else if(((a22==1)&&(!(a11==1)&&(((!(a20==1)&&((a7==1)&&(!(a0==1)&&((a24==1)&&(((input==6)&&(((a19==4)&&(a29==9))||((a29==5)&&(a19==5))))&&!(a25==1))))))&&(a14==9))&&(a28==1))))){ + a7 = 0; + a19 = 2; + a20 = 1; + a11 = 1; + a24 = 0; + a29 = 8; + return -1; + } else if(((a7==1)&&(((a11==1)&&(!(a25==1)&&((!(a20==1)&&(((((a14==9)&&((input==4)&&(((a29==5)||(a29==6))||(a29==7))))&&(a28==1))&&!(a24==1))&&(a19==2)))&&!(a0==1))))&&(a22==1)))){ + a20 = 1; + a24 = 1; + a29 = 5; + a25 = 1; + a19 = 1; + a0 = 1; + a14 = 8; + return -1; + } else if(((a25==1)&&((a0==1)&&((a14==8)&&(!(a20==1)&&(!(a24==1)&&(((a7==1)&&((a28==1)&&(((input==6)&&(((a19==3)&&(a29==9))||((a29==5)&&(a19==4))))&&(a11==1))))&&(a22==1)))))))){ + a29 = 9; + a25 = 0; + a0 = 0; + a19 = 2; + return 21; + } else if(((((a22==1)&&(((a29==7)&&((a20==1)&&((((a0==1)&&((!(a11==1)&&(input==6))&&(a19==2)))&&(a25==1))&&(a28==1))))&&(a14==9)))&&(a24==1))&&(a7==1))){ + a11 = 1; + a14 = 8; + a19 = 5; + a0 = 0; + a29 = 9; + a25 = 0; + return 23; + } else if((((((a28==1)&&((!(a7==1)&&(!(a0==1)&&((a14==8)&&(((((a29==9)||((a29==7)||(a29==8)))&&(input==3))&&!(a24==1))&&(a25==1)))))&&(a11==1)))&&(a19==3))&&(a22==1))&&(a20==1))){ + a19 = 1; + a0 = 1; + a29 = 5; + a7 = 1; + a24 = 1; + return -1; + } else if(((a25==1)&&((a0==1)&&((((a28==1)&&(((!(a7==1)&&((a11==1)&&((a14==8)&&(((a29==7)||(a29==8))&&(input==3)))))&&!(a24==1))&&(a20==1)))&&(a22==1))&&(a19==3))))){ + a20 = 0; + a0 = 0; + a24 = 1; + a29 = 9; + a19 = 1; + a25 = 0; + return 21; + } else if((((((((a28==1)&&((a11==1)&&((a7==1)&&(!(a24==1)&&((((a29==8)||(a29==9))&&(input==3))&&(a19==5))))))&&(a14==8))&&!(a20==1))&&!(a25==1))&&(a22==1))&&!(a0==1))){ + a7 = 0; + a19 = 3; + a24 = 1; + a25 = 1; + a29 = 6; + a14 = 9; + return 23; + } else if((((!(a24==1)&&((!(a0==1)&&((((((a28==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==4)))&&(a7==1))&&(a25==1))&&(a22==1))&&(a11==1)))&&(a14==8)))&&(a19==2))&&!(a20==1))){ + a29 = 5; + a24 = 1; + a14 = 9; + return 21; + } else if(((((a24==1)&&((a0==1)&&((a19==1)&&((((a28==1)&&((a25==1)&&((((a29==5)||(a29==6))&&(input==5))&&!(a20==1))))&&!(a7==1))&&(a11==1)))))&&(a22==1))&&(a14==9))){ + a20 = 1; + a7 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((a7==1)&&((((a14==10)&&((((a11==1)&&((((((a29==8)||((a29==6)||(a29==7)))&&(input==4))&&(a0==1))&&(a25==1))&&(a22==1)))&&(a19==4))&&!(a24==1)))&&(a20==1))&&(a28==1)))){ + a14 = 8; + a24 = 1; + a0 = 0; + a29 = 8; + a20 = 0; + a19 = 3; + a25 = 0; + return 21; + } else if((((a0==1)&&((((((a29==8)&&((a22==1)&&((a25==1)&&((a19==3)&&(!(a7==1)&&(input==3))))))&&(a14==8))&&(a11==1))&&(a28==1))&&!(a20==1)))&&!(a24==1))){ + a11 = 0; + a24 = 1; + a20 = 1; + a0 = 0; + a25 = 0; + a7 = 1; + return 23; + } else if(((!(a7==1)&&((a14==8)&&((a0==1)&&((!(a24==1)&&(!(a11==1)&&((a25==1)&&((a28==1)&&((input==2)&&((((a19==3)&&(a29==8))||((a19==3)&&(a29==9)))||((a29==5)&&(a19==4))))))))&&(a22==1)))))&&(a20==1))){ + a24 = 1; + a11 = 1; + a7 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((!(a7==1)&&(((a28==1)&&((a0==1)&&((((a20==1)&&((a14==8)&&((input==3)&&((((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))||((a29==6)&&(a19==2))))))&&!(a24==1))&&(a22==1))))&&(a11==1)))&&(a25==1))){ + a24 = 1; + a19 = 4; + a25 = 0; + a0 = 0; + a29 = 6; + a7 = 1; + a20 = 0; + return 21; + } else if(((a0==1)&&(((!(a7==1)&&(((a14==8)&&((((a19==2)&&(((input==2)&&((a29==5)||(a29==6)))&&(a25==1)))&&(a11==1))&&(a28==1)))&&(a22==1)))&&(a24==1))&&!(a20==1)))){ + a7 = 1; + a19 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if(((((a28==1)&&(((((a22==1)&&((a14==8)&&((((input==5)&&((a29==6)||(a29==7)))&&(a25==1))&&!(a20==1))))&&(a11==1))&&(a7==1))&&(a0==1)))&&(a19==5))&&!(a24==1))){ + a29 = 5; + a19 = 3; + a11 = 0; + a7 = 0; + return 24; + } else if(((a14==8)&&(((((a20==1)&&((((a19==4)&&((a0==1)&&((a11==1)&&(((a29==7)||(a29==8))&&(input==4)))))&&(a22==1))&&!(a25==1)))&&!(a7==1))&&(a28==1))&&(a24==1)))){ + a7 = 1; + a19 = 1; + a29 = 6; + a24 = 0; + return 21; + } else if((!(a20==1)&&((a14==10)&&((((((a19==2)&&((a7==1)&&((((((a29==6)||(a29==7))||(a29==8))&&(input==1))&&(a22==1))&&(a11==1))))&&(a0==1))&&(a28==1))&&(a24==1))&&(a25==1))))){ + a19 = 1; + a29 = 8; + a20 = 1; + a14 = 9; + a11 = 0; + return 23; + } else if(((a20==1)&&((((a14==9)&&((a22==1)&&(!(a25==1)&&((((!(a7==1)&&((input==2)&&((a29==8)||((a29==6)||(a29==7)))))&&(a0==1))&&(a28==1))&&!(a11==1)))))&&(a19==3))&&!(a24==1)))){ + a11 = 1; + a29 = 8; + a25 = 1; + return -1; + } else if((((((a14==9)&&((((((((input==5)&&(((a29==5)||(a29==6))||(a29==7)))&&(a24==1))&&(a0==1))&&!(a7==1))&&(a20==1))&&(a28==1))&&!(a11==1)))&&(a19==5))&&(a22==1))&&!(a25==1))){ + a11 = 1; + a20 = 0; + a24 = 0; + a7 = 1; + a29 = 8; + a19 = 1; + a25 = 1; + return 24; + } else if((!(a20==1)&&(((!(a7==1)&&(((a14==9)&&(!(a0==1)&&(((a22==1)&&(((((a29==8)&&(a19==4))||((a19==4)&&(a29==9)))||((a29==5)&&(a19==5)))&&(input==2)))&&!(a11==1))))&&(a24==1)))&&!(a25==1))&&(a28==1)))){ + a19 = 5; + a0 = 1; + a25 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if(((a22==1)&&(((a24==1)&&(((((a29==9)&&(((a20==1)&&(((input==6)&&(a14==8))&&(a7==1)))&&(a28==1)))&&(a25==1))&&!(a0==1))&&(a19==3)))&&(a11==1)))){ + a19 = 2; + return -1; + } else if((((a14==9)&&(!(a11==1)&&((a22==1)&&(((a24==1)&&(((a28==1)&&(!(a7==1)&&(((((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))||((a29==5)&&(a19==5)))&&(input==6))))&&!(a0==1)))&&!(a20==1)))))&&!(a25==1))){ + a19 = 1; + a29 = 5; + a11 = 1; + a0 = 1; + a25 = 1; + a20 = 1; + a14 = 8; + a7 = 1; + return -1; + } else if(((((((a22==1)&&((!(a20==1)&&(((!(a7==1)&&(((a29==6)||(a29==7))&&(input==4)))&&!(a24==1))&&!(a25==1)))&&(a0==1)))&&(a19==5))&&(a11==1))&&(a14==9))&&(a28==1))){ + a29 = 5; + a19 = 1; + return 21; + } else if(((a7==1)&&(((a14==9)&&((!(a0==1)&&(!(a25==1)&&(((a28==1)&&((a11==1)&&((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))&&(input==2))))&&(a20==1))))&&(a24==1)))&&(a22==1)))){ + a14 = 8; + a20 = 0; + a24 = 0; + a19 = 5; + a25 = 1; + a29 = 7; + return 23; + } else if(((a14==8)&&(((!(a7==1)&&(((a19==1)&&((a22==1)&&(((a24==1)&&(((input==1)&&(a0==1))&&(a28==1)))&&(a25==1))))&&!(a20==1)))&&!(a11==1))&&(a29==5)))){ + a7 = 1; + a20 = 1; + a11 = 1; + return -1; + } else if((!(a25==1)&&(((a22==1)&&((!(a11==1)&&(((a0==1)&&((a7==1)&&((a14==9)&&((((a19==3)&&(a29==5))||(((a29==8)&&(a19==2))||((a19==2)&&(a29==9))))&&(input==5)))))&&(a28==1)))&&!(a24==1)))&&!(a20==1)))){ + a19 = 2; + a20 = 1; + a25 = 1; + a11 = 1; + a29 = 6; + return -1; + } else if(((a19==2)&&(!(a0==1)&&((((!(a24==1)&&(((((((a29==5)||(a29==6))&&(input==2))&&(a22==1))&&!(a20==1))&&(a14==8))&&!(a25==1)))&&(a28==1))&&!(a11==1))&&(a7==1))))){ + a11 = 1; + a24 = 1; + a29 = 5; + a20 = 1; + a25 = 1; + a19 = 1; + a0 = 1; + return -1; + } else if((!(a20==1)&&(!(a24==1)&&((a0==1)&&(((a28==1)&&((((((((a19==2)&&(a29==5))||(((a29==8)&&(a19==1))||((a29==9)&&(a19==1))))&&(input==5))&&!(a25==1))&&(a7==1))&&(a11==1))&&(a22==1)))&&(a14==9)))))){ + a0 = 0; + a7 = 0; + a14 = 8; + a25 = 1; + a29 = 7; + a19 = 3; + return -1; + } else if(((((!(a11==1)&&(((((a28==1)&&((a22==1)&&((a20==1)&&(!(a24==1)&&(input==1)))))&&!(a25==1))&&(a0==1))&&(a14==8)))&&(a29==5))&&(a19==5))&&!(a7==1))){ + a11 = 1; + a7 = 1; + a25 = 1; + a0 = 0; + a24 = 1; + a19 = 1; + a20 = 0; + a29 = 8; + return 21; + } else if((!(a24==1)&&(((!(a25==1)&&((((!(a11==1)&&((a22==1)&&((((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))&&(input==3))))&&(a14==8))&&!(a7==1))&&(a0==1)))&&(a28==1))&&(a20==1)))){ + a25 = 1; + a24 = 1; + a19 = 1; + a29 = 5; + a7 = 1; + a11 = 1; + return -1; + } else if((!(a20==1)&&((!(a0==1)&&(((((a14==9)&&(((((input==1)&&((a29==7)||((a29==5)||(a29==6))))&&(a28==1))&&(a7==1))&&(a25==1)))&&!(a11==1))&&(a24==1))&&(a22==1)))&&(a19==4)))){ + a14 = 8; + a25 = 0; + a7 = 0; + a19 = 2; + a29 = 9; + return 21; + } else if(((a14==8)&&((((((a19==1)&&(((((a25==1)&&(((a29==8)||(a29==9))&&(input==1)))&&(a24==1))&&!(a20==1))&&(a22==1)))&&!(a7==1))&&(a28==1))&&!(a11==1))&&(a0==1)))){ + a29 = 5; + a0 = 0; + a19 = 3; + a11 = 1; + a25 = 0; + return 23; + } else if(((a28==1)&&((a20==1)&&((a19==2)&&((a14==8)&&((a0==1)&&((((((a22==1)&&((input==2)&&!(a11==1)))&&(a29==5))&&(a25==1))&&(a24==1))&&!(a7==1)))))))){ + a24 = 0; + a19 = 4; + a29 = 8; + a20 = 0; + a25 = 0; + a7 = 1; + return 23; + } else if(((((a0==1)&&((a22==1)&&((a7==1)&&(((a11==1)&&((((((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))&&(input==4))&&(a28==1))&&(a14==8)))&&!(a24==1)))))&&!(a20==1))&&(a25==1))){ + a0 = 0; + a19 = 3; + a29 = 5; + return 21; + } else if((!(a25==1)&&(((a7==1)&&((a14==8)&&(!(a0==1)&&((a20==1)&&((a19==1)&&(((a22==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==1))&&(a28==1)))&&!(a11==1)))))))&&(a24==1)))){ + a25 = 1; + a11 = 1; + a24 = 0; + a29 = 6; + a19 = 3; + a20 = 0; + return -1; + } else if((((!(a24==1)&&((a14==9)&&((a19==5)&&((a7==1)&&((a0==1)&&(((!(a11==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==4)))&&(a28==1))&&(a20==1)))))))&&(a22==1))&&!(a25==1))){ + a20 = 0; + a19 = 1; + a7 = 0; + a29 = 9; + return 24; + } else if(((((((((!(a11==1)&&(!(a7==1)&&(((a14==9)&&(input==3))&&(a19==5))))&&!(a25==1))&&(a22==1))&&(a29==9))&&!(a20==1))&&!(a24==1))&&(a0==1))&&(a28==1))){ + a7 = 1; + a29 = 5; + a14 = 8; + a25 = 1; + a24 = 1; + a11 = 1; + a0 = 0; + a19 = 3; + return 24; + } else if((((a11==1)&&(((a14==9)&&((!(a20==1)&&((a0==1)&&((input==4)&&(((a19==1)&&((!(a7==1)&&(a25==1))&&(a29==5)))||((((a29==8)&&((a7==1)&&!(a25==1)))&&(a19==5))||((((a7==1)&&!(a25==1))&&(a29==9))&&(a19==5)))))))&&(a22==1)))&&!(a24==1)))&&(a28==1))){ + a20 = 1; + a29 = 8; + a14 = 10; + a25 = 0; + a7 = 1; + a19 = 2; + return 21; + } else if((!(a25==1)&&((((a24==1)&&((!(a0==1)&&((a7==1)&&(((((((a29==7)||(a29==8))||(a29==9))&&(input==6))&&(a22==1))&&(a14==9))&&(a28==1))))&&(a11==1)))&&!(a20==1))&&(a19==1)))){ + a25 = 1; + a0 = 1; + a20 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if(((a25==1)&&(((!(a0==1)&&((a28==1)&&(((a29==6)&&(((((input==5)&&(a22==1))&&!(a24==1))&&(a19==1))&&(a11==1)))&&(a20==1))))&&(a7==1))&&(a14==9)))){ + a0 = 1; + a29 = 7; + a7 = 0; + a19 = 5; + a20 = 0; + return -1; + } else if(((a22==1)&&(!(a7==1)&&((((a25==1)&&(!(a11==1)&&(!(a0==1)&&((a24==1)&&((!(a20==1)&&((input==5)&&(a29==6)))&&(a28==1))))))&&(a19==1))&&(a14==9))))){ + a11 = 1; + a25 = 0; + a20 = 1; + a29 = 7; + a14 = 8; + a19 = 3; + a0 = 1; + return 23; + } else if(((a22==1)&&((a28==1)&&(((a24==1)&&(((a25==1)&&((!(a20==1)&&(!(a0==1)&&((a7==1)&&((input==4)&&(((a29==7)||(a29==8))||(a29==9))))))&&(a14==9)))&&(a19==3)))&&!(a11==1))))){ + a19 = 1; + a29 = 5; + a11 = 1; + a20 = 1; + a14 = 8; + a0 = 1; + return -1; + } else if((((a14==8)&&((a7==1)&&((a28==1)&&(!(a24==1)&&(!(a0==1)&&((((a25==1)&&((a19==2)&&((((a29==7)||(a29==8))||(a29==9))&&(input==1))))&&!(a20==1))&&(a22==1)))))))&&!(a11==1))){ + a19 = 5; + a0 = 1; + a7 = 0; + a29 = 7; + return 24; + } else if((!(a25==1)&&((!(a0==1)&&(((((a14==9)&&(((((input==5)&&((a29==7)||(a29==8)))&&(a24==1))&&(a22==1))&&(a19==3)))&&!(a11==1))&&(a7==1))&&!(a20==1)))&&(a28==1)))){ + a11 = 1; + a19 = 1; + a29 = 8; + a25 = 1; + a14 = 8; + return 24; + } else if(((!(a24==1)&&(((a28==1)&&(!(a0==1)&&((a20==1)&&((a22==1)&&((a25==1)&&((a11==1)&&(!(a7==1)&&(((a29==7)||(a29==8))&&(input==6)))))))))&&(a14==8)))&&(a19==5))){ + a20 = 0; + a19 = 3; + a29 = 6; + a7 = 1; + return 24; + } else if(((!(a11==1)&&((((!(a24==1)&&((a19==1)&&(((a28==1)&&((a0==1)&&(((a29==8)||(a29==9))&&(input==6))))&&(a22==1))))&&(a7==1))&&(a25==1))&&(a20==1)))&&(a14==9))){ + a24 = 1; + a0 = 0; + a14 = 8; + a11 = 1; + a19 = 2; + a29 = 8; + return 23; + } else if(((((((!(a7==1)&&((a11==1)&&(((a19==3)&&(!(a20==1)&&((input==6)&&(a28==1))))&&!(a0==1))))&&(a29==9))&&!(a25==1))&&(a22==1))&&(a14==9))&&!(a24==1))){ + a25 = 1; + a29 = 5; + a24 = 1; + a19 = 1; + a20 = 1; + a7 = 1; + a14 = 8; + a0 = 1; + return -1; + } else if(((a28==1)&&(!(a7==1)&&(!(a20==1)&&(!(a24==1)&&(!(a0==1)&&((a25==1)&&(((a11==1)&&((a14==8)&&(((input==1)&&((a29==5)||(a29==6)))&&(a22==1))))&&(a19==1))))))))){ + a20 = 1; + a29 = 5; + a24 = 1; + a0 = 1; + a7 = 1; + return -1; + } else if((((a7==1)&&((!(a24==1)&&((!(a25==1)&&(!(a0==1)&&((a28==1)&&((((input==3)&&(a14==8))&&!(a20==1))&&(a11==1)))))&&(a22==1)))&&(a19==4)))&&(a29==6))){ + a24 = 1; + a25 = 1; + a19 = 2; + a29 = 5; + a7 = 0; + return 23; + } else if(((a28==1)&&((((a25==1)&&((a14==8)&&((a24==1)&&((a19==2)&&(((a7==1)&&((((a29==5)||(a29==6))&&(input==2))&&(a20==1)))&&(a22==1))))))&&(a11==1))&&!(a0==1)))){ + a19 = 3; + a29 = 7; + a25 = 0; + return 21; + } else if((!(a11==1)&&(((a28==1)&&((a22==1)&&((a19==1)&&(((!(a0==1)&&(((a20==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==4)))&&(a24==1)))&&!(a7==1))&&!(a25==1)))))&&(a14==9)))){ + a14 = 8; + a19 = 3; + a29 = 7; + a24 = 0; + a25 = 1; + return -1; + } else if(((a0==1)&&((((((((a11==1)&&((a7==1)&&((input==5)&&(((a19==5)&&(a29==6))||(((a29==9)&&(a19==4))||((a29==5)&&(a19==5)))))))&&(a24==1))&&(a14==9))&&(a28==1))&&(a25==1))&&(a22==1))&&!(a20==1)))){ + a19 = 5; + a29 = 9; + a7 = 0; + a0 = 0; + a14 = 8; + return 24; + } else if(((((a28==1)&&((a22==1)&&((a14==9)&&((a11==1)&&((!(a25==1)&&((((a20==1)&&(input==6))&&!(a0==1))&&(a29==5)))&&(a19==4))))))&&(a7==1))&&(a24==1))){ + a29 = 9; + a25 = 1; + a14 = 8; + a20 = 0; + return 21; + } else if(((a7==1)&&((a19==2)&&((a11==1)&&((((a14==9)&&((a25==1)&&(((((input==2)&&(a22==1))&&(a20==1))&&(a28==1))&&(a0==1))))&&(a24==1))&&(a29==6)))))){ + a7 = 0; + a0 = 0; + a11 = 0; + a25 = 0; + a14 = 8; + a19 = 5; + a29 = 5; + a24 = 0; + return -1; + } else if(((a14==9)&&(((a22==1)&&(((!(a25==1)&&(((a28==1)&&((((input==1)&&(a29==6))&&(a0==1))&&(a20==1)))&&(a7==1)))&&(a19==4))&&!(a24==1)))&&!(a11==1)))){ + a20 = 0; + a29 = 8; + a11 = 1; + a14 = 8; + a19 = 2; + a7 = 0; + a0 = 0; + return -1; + } else if((!(a0==1)&&((((((a19==5)&&((a20==1)&&(((((input==2)&&((a29==5)||(a29==6)))&&!(a7==1))&&(a14==8))&&(a11==1))))&&(a24==1))&&(a22==1))&&!(a25==1))&&(a28==1)))){ + a29 = 5; + a0 = 1; + a24 = 0; + a19 = 1; + a25 = 1; + return 24; + } else if(((a22==1)&&((a28==1)&&((a0==1)&&(((!(a7==1)&&((((((input==1)&&((a29==8)||(a29==9)))&&!(a20==1))&&!(a25==1))&&(a24==1))&&(a19==4)))&&(a11==1))&&(a14==8)))))){ + a29 = 5; + a20 = 1; + a19 = 1; + a7 = 1; + a25 = 1; + return -1; + } else if((((a19==4)&&((a7==1)&&((!(a11==1)&&((!(a24==1)&&((((((a29==7)||(a29==8))&&(input==5))&&(a0==1))&&(a25==1))&&(a22==1)))&&(a14==9)))&&(a28==1))))&&!(a20==1))){ + a29 = 5; + a19 = 1; + a7 = 0; + a14 = 8; + return -1; + } else if((((((!(a0==1)&&(!(a11==1)&&((a28==1)&&((a19==5)&&(((a25==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==1)))&&(a20==1))))))&&(a14==8))&&(a22==1))&&!(a24==1))&&!(a7==1))){ + a29 = 9; + a7 = 1; + a11 = 1; + a24 = 1; + a19 = 4; + a25 = 0; + return -1; + } else if(((a25==1)&&(((a19==5)&&((a0==1)&&(!(a24==1)&&(!(a11==1)&&((a22==1)&&((a29==6)&&(!(a20==1)&&(((a14==8)&&(input==2))&&(a28==1)))))))))&&(a7==1)))){ + a20 = 1; + a29 = 5; + a24 = 1; + a19 = 1; + a11 = 1; + return -1; + } else if((((a24==1)&&((((((a7==1)&&(((a22==1)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==2))&&(a28==1)))&&!(a0==1)))&&(a14==9))&&(a20==1))&&(a19==3))&&(a25==1)))&&!(a11==1))){ + a29 = 5; + a0 = 1; + a14 = 8; + a11 = 1; + a19 = 1; + return -1; + } else if(((a22==1)&&((a0==1)&&((a7==1)&&((!(a24==1)&&(((((((((a29==6)||(a29==7))||(a29==8))&&(input==1))&&(a19==4))&&(a14==8))&&!(a11==1))&&(a20==1))&&(a28==1)))&&!(a25==1)))))){ + a29 = 5; + a20 = 0; + a11 = 1; + a19 = 3; + a0 = 0; + a24 = 1; + return 24; + } else if(((((a25==1)&&((a11==1)&&((a19==4)&&((a14==9)&&((a29==6)&&((!(a0==1)&&(((input==3)&&!(a7==1))&&(a28==1)))&&!(a20==1)))))))&&!(a24==1))&&(a22==1))){ + a19 = 2; + a7 = 1; + a25 = 0; + a14 = 8; + a11 = 0; + return 21; + } else if(((a24==1)&&((!(a20==1)&&(!(a0==1)&&((a19==1)&&((a29==8)&&((((((a14==8)&&(input==3))&&(a22==1))&&(a7==1))&&(a28==1))&&!(a25==1))))))&&!(a11==1)))){ + a29 = 5; + a11 = 1; + a20 = 1; + return 24; + } else if((((((a11==1)&&(((((((a28==1)&&((input==2)&&(((a29==7)||(a29==8))||(a29==9))))&&(a14==8))&&!(a0==1))&&(a22==1))&&!(a25==1))&&!(a7==1)))&&(a19==3))&&(a24==1))&&!(a20==1))){ + a19 = 4; + a29 = 9; + return 24; + } else if((((a11==1)&&((((((((((((a29==7)||(a29==8))||(a29==9))&&(input==3))&&(a28==1))&&(a20==1))&&(a19==3))&&(a25==1))&&!(a0==1))&&(a24==1))&&(a14==9))&&(a22==1)))&&!(a7==1))){ + a19 = 1; + a0 = 1; + a14 = 8; + a29 = 5; + a7 = 1; + return -1; + } else if(((a22==1)&&(((((((((a19==5)&&(((!(a7==1)&&(a20==1))&&!(a25==1))&&(a29==9)))||((a19==1)&&((a29==5)&&((a25==1)&&((a7==1)&&!(a20==1))))))&&(input==2))&&(a0==1))&&!(a24==1))&&(a14==9))&&(a28==1))&&(a11==1)))){ + a19 = 4; + a25 = 1; + a24 = 1; + a29 = 7; + a20 = 0; + a7 = 0; + return -1; + } else if((((a20==1)&&((a28==1)&&(((a25==1)&&((a22==1)&&((!(a11==1)&&((a14==8)&&((input==2)&&(((a29==5)&&(a19==3))||(((a29==8)&&(a19==2))||((a29==9)&&(a19==2)))))))&&(a7==1))))&&(a0==1))))&&!(a24==1))){ + a20 = 0; + a19 = 5; + a11 = 1; + a25 = 0; + a29 = 5; + a0 = 0; + a24 = 1; + return 23; + } else if(((a19==1)&&((a11==1)&&((a22==1)&&((!(a20==1)&&((a0==1)&&((a7==1)&&((a24==1)&&((a14==9)&&(((input==3)&&((a29==6)||(a29==7)))&&!(a25==1)))))))&&(a28==1)))))){ + a7 = 0; + a29 = 7; + a14 = 8; + a19 = 4; + a0 = 0; + a25 = 1; + return 24; + } else if(((((a0==1)&&(!(a7==1)&&(((((a22==1)&&(((a29==6)&&((input==2)&&(a25==1)))&&!(a24==1)))&&(a20==1))&&(a11==1))&&(a28==1))))&&(a19==3))&&(a14==8))){ + a29 = 8; + a0 = 0; + a24 = 1; + a19 = 5; + a20 = 0; + return 24; + } else if(((((((a11==1)&&(((a14==8)&&((a0==1)&&((a7==1)&&(!(a25==1)&&((input==6)&&(a28==1))))))&&(a19==3)))&&(a29==7))&&!(a24==1))&&!(a20==1))&&(a22==1))){ + a11 = 0; + return 23; + } else if(((a14==10)&&((a7==1)&&(((a0==1)&&(((a22==1)&&((a24==1)&&((!(a20==1)&&(!(a25==1)&&(((a29==7)||(a29==8))&&(input==2))))&&(a28==1))))&&(a19==2)))&&(a11==1))))){ + a14 = 8; + a29 = 9; + a0 = 0; + a11 = 0; + a25 = 1; + a7 = 0; + a20 = 1; + a19 = 1; + return -1; + } else if(((((((a24==1)&&((a14==9)&&((a22==1)&&((((a11==1)&&(((a29==8)||(a29==9))&&(input==4)))&&(a28==1))&&!(a20==1)))))&&(a7==1))&&(a19==2))&&!(a25==1))&&(a0==1))){ + a29 = 7; + a24 = 0; + a20 = 1; + a19 = 4; + a11 = 0; + return 23; + } else if(((((a11==1)&&((((a22==1)&&((((((input==1)&&((a29==8)||((a29==6)||(a29==7))))&&!(a20==1))&&!(a24==1))&&(a0==1))&&(a25==1)))&&(a28==1))&&!(a7==1)))&&(a14==9))&&(a19==3))){ + a20 = 1; + a24 = 1; + a7 = 1; + a29 = 5; + a14 = 8; + a19 = 1; + return -1; + } else if(((a14==8)&&((!(a25==1)&&(((a7==1)&&(((((a24==1)&&((((a19==3)&&(a29==5))||(((a19==2)&&(a29==8))||((a19==2)&&(a29==9))))&&(input==5)))&&!(a20==1))&&(a0==1))&&(a28==1)))&&(a22==1)))&&!(a11==1)))){ + a14 = 9; + a19 = 4; + a29 = 6; + a11 = 1; + a20 = 1; + return 21; + } else if(((a28==1)&&(((((a7==1)&&(((a20==1)&&(!(a0==1)&&((((input==3)&&(a24==1))&&(a19==4))&&(a11==1))))&&(a29==5)))&&(a22==1))&&(a14==8))&&!(a25==1)))){ + a29 = 9; + a0 = 1; + a7 = 0; + return -1; + } else if(((a7==1)&&((((a14==9)&&((a24==1)&&((a28==1)&&(((a20==1)&&((!(a11==1)&&(((a29==7)||(a29==8))&&(input==2)))&&(a19==1)))&&(a22==1)))))&&!(a0==1))&&!(a25==1)))){ + a11 = 1; + a29 = 7; + a19 = 5; + return -1; + } else if(((((a29==6)&&((a28==1)&&(!(a7==1)&&((((a22==1)&&((((input==6)&&(a0==1))&&(a25==1))&&(a20==1)))&&(a14==8))&&(a19==4)))))&&(a11==1))&&!(a24==1))){ + a19 = 5; + a24 = 1; + a0 = 0; + a25 = 0; + a20 = 0; + return 23; + } else if(((((a25==1)&&((a19==1)&&((!(a0==1)&&(((a14==9)&&(!(a20==1)&&(((input==6)&&((a29==5)||(a29==6)))&&(a11==1))))&&(a7==1)))&&(a24==1))))&&(a28==1))&&(a22==1))){ + a25 = 0; + a29 = 7; + a24 = 0; + a7 = 0; + a11 = 0; + a19 = 4; + a14 = 8; + return 21; + } else if(((a19==3)&&(!(a24==1)&&((((a28==1)&&((a7==1)&&(((a22==1)&&(!(a0==1)&&(!(a11==1)&&((a29==6)&&(input==6)))))&&(a20==1))))&&(a14==9))&&!(a25==1))))){ + a14 = 8; + a25 = 1; + a19 = 4; + a24 = 1; + a7 = 0; + return -1; + } else if(((!(a0==1)&&((a22==1)&&((a20==1)&&((a24==1)&&((a19==4)&&(((a11==1)&&(((a7==1)&&((input==6)&&((a29==5)||(a29==6))))&&(a28==1)))&&(a25==1)))))))&&(a14==9))){ + a29 = 6; + a14 = 8; + a7 = 0; + a11 = 0; + a25 = 0; + a19 = 1; + return 24; + } else if(((!(a25==1)&&(!(a0==1)&&((a28==1)&&(!(a24==1)&&(((((a19==5)&&((((a29==5)||(a29==6))&&(input==3))&&!(a7==1)))&&(a14==8))&&(a11==1))&&(a20==1))))))&&(a22==1))){ + a0 = 1; + a25 = 1; + a24 = 1; + a7 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if((((a29==9)&&((((a28==1)&&(((a19==4)&&((a14==8)&&((a20==1)&&(((input==2)&&!(a24==1))&&!(a7==1)))))&&(a0==1)))&&(a25==1))&&(a11==1)))&&(a22==1))){ + a11 = 0; + a20 = 0; + a19 = 5; + a29 = 7; + return 24; + } else if(((a20==1)&&((a19==4)&&((((!(a24==1)&&(((a22==1)&&((!(a11==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==1)))&&(a28==1)))&&(a14==8)))&&!(a0==1))&&!(a7==1))&&!(a25==1))))){ + a24 = 1; + a7 = 1; + a0 = 1; + a19 = 1; + a29 = 5; + a11 = 1; + a25 = 1; + return -1; + } else if((((((((a0==1)&&((a19==3)&&(((a7==1)&&(!(a24==1)&&((input==6)&&((a29==8)||((a29==6)||(a29==7))))))&&!(a20==1))))&&(a11==1))&&!(a25==1))&&(a28==1))&&(a22==1))&&(a14==9))){ + a25 = 1; + a14 = 10; + a20 = 1; + a29 = 6; + return 23; + } else if(((((a14==8)&&(((!(a20==1)&&(((a25==1)&&((a28==1)&&(((input==3)&&((a29==7)||(a29==8)))&&!(a11==1))))&&(a7==1)))&&(a0==1))&&(a19==1)))&&(a22==1))&&(a24==1))){ + a7 = 0; + a19 = 5; + a24 = 0; + a29 = 7; + return 21; + } else if(((a14==8)&&(!(a25==1)&&((a11==1)&&((a20==1)&&(((a19==5)&&((!(a7==1)&&((a28==1)&&(((input==4)&&((a29==5)||(a29==6)))&&(a24==1))))&&!(a0==1)))&&(a22==1))))))){ + a29 = 5; + a25 = 1; + a7 = 1; + a0 = 1; + a19 = 1; + return -1; + } else if((((a22==1)&&(((((a20==1)&&(!(a7==1)&&((a28==1)&&((a11==1)&&((((a29==5)||(a29==6))&&(input==4))&&!(a25==1))))))&&(a14==8))&&!(a0==1))&&(a24==1)))&&(a19==1))){ + a7 = 1; + a0 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if(((!(a0==1)&&((!(a7==1)&&((a28==1)&&(((a19==4)&&(!(a25==1)&&((((input==2)&&!(a24==1))&&!(a11==1))&&(a22==1))))&&(a29==9))))&&(a20==1)))&&(a14==8))){ + a11 = 1; + a25 = 1; + a0 = 1; + a29 = 5; + a24 = 1; + a19 = 1; + a7 = 1; + return -1; + } else if(((a20==1)&&(((a25==1)&&((a22==1)&&(((((a7==1)&&((a28==1)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==5))&&(a19==4))))&&!(a0==1))&&!(a24==1))&&(a14==9))))&&(a11==1)))){ + a24 = 1; + a19 = 3; + a29 = 6; + a25 = 0; + a0 = 1; + return 21; + } else if(((!(a7==1)&&(((a19==2)&&((a29==6)&&(((!(a0==1)&&((a20==1)&&(((input==6)&&!(a11==1))&&(a25==1))))&&(a28==1))&&(a22==1))))&&(a24==1)))&&(a14==9))){ + a29 = 5; + a19 = 1; + a14 = 8; + a0 = 1; + a11 = 1; + a7 = 1; + return -1; + } else if(((a11==1)&&(((a0==1)&&(!(a7==1)&&(((a20==1)&&((a25==1)&&((a28==1)&&(((((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))&&(input==2))&&!(a24==1)))))&&(a14==8))))&&(a22==1)))){ + a29 = 9; + a24 = 1; + a0 = 0; + a25 = 0; + a20 = 0; + a19 = 2; + return 21; + } else if(((a14==9)&&(((a7==1)&&(((((!(a24==1)&&(((input==1)&&(((a29==6)&&(a19==5))||(((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))))&&(a25==1)))&&(a11==1))&&!(a0==1))&&(a28==1))&&(a22==1)))&&!(a20==1)))){ + a29 = 5; + a24 = 1; + a19 = 4; + a14 = 8; + a7 = 0; + return 23; + } else if(((a11==1)&&(((((!(a0==1)&&(((a24==1)&&((a7==1)&&((input==2)&&(((a29==5)&&(a19==4))||(((a19==3)&&(a29==8))||((a29==9)&&(a19==3)))))))&&!(a20==1)))&&(a14==9))&&(a28==1))&&(a22==1))&&!(a25==1)))){ + a29 = 5; + a14 = 8; + a20 = 1; + a19 = 3; + return 23; + } else if((((((a11==1)&&(!(a7==1)&&(((a22==1)&&(!(a0==1)&&((a20==1)&&((((a29==7)||(a29==8))&&(input==1))&&(a24==1)))))&&(a28==1))))&&(a19==4))&&(a14==9))&&!(a25==1))){ + a29 = 9; + a20 = 0; + a7 = 1; + a19 = 2; + a14 = 8; + return 21; + } else if(((a22==1)&&((((a28==1)&&((a11==1)&&((a0==1)&&((a24==1)&&(!(a7==1)&&((((((a25==1)&&(a29==8))&&(a19==5))||(((a25==1)&&(a29==9))&&(a19==5)))||((a19==1)&&((a29==5)&&!(a25==1))))&&(input==6)))))))&&(a20==1))&&(a14==10)))){ + a19 = 5; + a11 = 0; + a7 = 1; + a14 = 9; + a29 = 5; + a0 = 0; + a24 = 0; + a25 = 1; + a20 = 0; + return -1; + } else if(((((!(a24==1)&&((a19==1)&&((((a14==8)&&((!(a0==1)&&((a28==1)&&(input==4)))&&!(a25==1)))&&(a29==6))&&(a11==1))))&&!(a7==1))&&(a20==1))&&(a22==1))){ + a19 = 5; + a25 = 1; + a24 = 1; + a7 = 1; + return 24; + } else if((((((a14==9)&&(!(a7==1)&&((a25==1)&&(!(a24==1)&&((a22==1)&&((a19==1)&&(((input==4)&&(((a29==5)||(a29==6))||(a29==7)))&&(a20==1))))))))&&(a28==1))&&!(a11==1))&&(a0==1))){ + a24 = 1; + a14 = 8; + a29 = 5; + a7 = 1; + a11 = 1; + return -1; + } else if((!(a7==1)&&((!(a0==1)&&((a14==8)&&(((!(a24==1)&&((!(a11==1)&&((((a29==6)||(a29==7))&&(input==2))&&(a22==1)))&&(a19==5)))&&(a28==1))&&!(a20==1))))&&(a25==1)))){ + a24 = 1; + a19 = 4; + a20 = 1; + a29 = 9; + a11 = 1; + return 23; + } else if((((a20==1)&&(((a28==1)&&((((a24==1)&&((a22==1)&&(((((a29==5)||(a29==6))&&(input==3))&&!(a25==1))&&(a11==1))))&&!(a7==1))&&!(a0==1)))&&(a14==8)))&&(a19==5))){ + a7 = 1; + a25 = 1; + a29 = 5; + a0 = 1; + a19 = 1; + return -1; + } else if((!(a25==1)&&((a28==1)&&(!(a7==1)&&(((((a11==1)&&((a19==3)&&((a20==1)&&(!(a24==1)&&((input==2)&&((a29==6)||(a29==7)))))))&&!(a0==1))&&(a14==8))&&(a22==1)))))){ + a29 = 8; + a7 = 1; + a19 = 4; + a24 = 1; + return 21; + } else if(((a22==1)&&((a11==1)&&(((a7==1)&&(((a28==1)&&(!(a24==1)&&((!(a25==1)&&((a14==8)&&((input==3)&&(a19==1))))&&!(a0==1))))&&(a29==6)))&&!(a20==1))))){ + a19 = 5; + a24 = 1; + a25 = 1; + a20 = 1; + return 23; + } else if(((a28==1)&&(((a0==1)&&((a19==5)&&((a14==8)&&((a11==1)&&((a22==1)&&(!(a24==1)&&((!(a7==1)&&(((a29==7)||(a29==8))&&(input==6)))&&(a25==1))))))))&&!(a20==1)))){ + a19 = 1; + a24 = 1; + a0 = 0; + a29 = 5; + a20 = 1; + a7 = 1; + return 23; + } else if((!(a24==1)&&(((a20==1)&&((((a19==1)&&(!(a0==1)&&(((((a28==1)&&(input==1))&&(a11==1))&&(a22==1))&&!(a25==1))))&&(a14==9))&&(a7==1)))&&(a29==8)))){ + a25 = 1; + a29 = 5; + a24 = 1; + a14 = 8; + a19 = 2; + return 23; + } else if(((a25==1)&&((!(a20==1)&&(((!(a7==1)&&((a28==1)&&((((input==4)&&((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))||((a29==6)&&(a19==4))))&&(a14==9))&&(a22==1))))&&!(a0==1))&&(a24==1)))&&!(a11==1)))){ + a20 = 1; + a29 = 5; + a11 = 1; + a19 = 1; + a14 = 8; + return 23; + } else if(((a7==1)&&((a28==1)&&((a22==1)&&((((!(a24==1)&&((a19==2)&&(((((a29==7)||((a29==5)||(a29==6)))&&(input==5))&&(a14==8))&&!(a25==1))))&&!(a11==1))&&(a0==1))&&(a20==1)))))){ + a19 = 1; + a25 = 1; + a24 = 1; + a29 = 8; + a20 = 0; + a0 = 0; + a11 = 1; + return 24; + } else if(((((((a14==10)&&(((a20==1)&&((!(a24==1)&&(((a0==1)&&(input==3))&&(a22==1)))&&(a28==1)))&&(a7==1)))&&(a19==2))&&(a11==1))&&(a29==8))&&!(a25==1))){ + a20 = 0; + a19 = 3; + a29 = 7; + a11 = 0; + a14 = 8; + return 23; + } else if(((((!(a0==1)&&(((((((a19==3)&&((input==3)&&(a22==1)))&&(a28==1))&&!(a20==1))&&(a14==8))&&(a24==1))&&!(a25==1)))&&(a29==5))&&(a11==1))&&!(a7==1))){ + a20 = 1; + a7 = 1; + a19 = 4; + return -1; + } else if(((((((((a28==1)&&(!(a0==1)&&((a25==1)&&((a20==1)&&((a24==1)&&(input==2))))))&&!(a11==1))&&(a14==8))&&(a22==1))&&(a29==8))&&!(a7==1))&&(a19==1))){ + a14 = 9; + a24 = 0; + a29 = 6; + a11 = 1; + return 23; + } else if((!(a25==1)&&(((a19==1)&&((((a28==1)&&((((a0==1)&&((a14==9)&&((input==4)&&(((a29==5)||(a29==6))||(a29==7)))))&&(a22==1))&&!(a7==1)))&&!(a11==1))&&!(a24==1)))&&!(a20==1)))){ + a20 = 1; + a11 = 1; + a14 = 8; + a0 = 0; + a25 = 1; + a24 = 1; + a29 = 8; + return 23; + } else if(((!(a20==1)&&(((a19==1)&&((a11==1)&&((a7==1)&&((((a28==1)&&((((a29==8)||(a29==9))&&(input==3))&&(a14==9)))&&(a22==1))&&!(a24==1)))))&&!(a0==1)))&&!(a25==1))){ + a11 = 0; + a29 = 7; + a0 = 1; + a20 = 1; + return 24; + } else if((((a25==1)&&((a14==9)&&((a20==1)&&(!(a7==1)&&((a24==1)&&(!(a0==1)&&((((a19==5)&&(((a29==5)||(a29==6))&&(input==5)))&&(a28==1))&&(a22==1))))))))&&(a11==1))){ + a11 = 0; + a25 = 0; + a20 = 0; + a29 = 6; + a24 = 0; + a19 = 2; + a0 = 1; + a7 = 1; + return -1; + } else if(((!(a11==1)&&((a29==7)&&((a20==1)&&((a19==4)&&(((((a7==1)&&(!(a25==1)&&((a14==9)&&(input==1))))&&(a24==1))&&(a28==1))&&(a22==1))))))&&!(a0==1))){ + a25 = 1; + a11 = 1; + a19 = 1; + a0 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((a14==9)&&((((((a22==1)&&(!(a0==1)&&((a24==1)&&(((!(a7==1)&&(input==3))&&!(a20==1))&&(a29==9)))))&&(a19==5))&&(a28==1))&&(a11==1))&&(a25==1)))){ + a11 = 0; + a20 = 1; + a0 = 1; + a7 = 1; + return -1; + } else if(((((!(a25==1)&&((a7==1)&&((a28==1)&&((((a22==1)&&(((a29==6)&&(input==2))&&(a19==5)))&&!(a20==1))&&(a0==1)))))&&(a14==9))&&(a24==1))&&(a11==1))){ + a19 = 1; + a14 = 10; + a25 = 1; + a20 = 1; + return 23; + } else if(((a22==1)&&((((a29==6)&&(((a0==1)&&((a28==1)&&((a11==1)&&((a25==1)&&((a19==1)&&((input==1)&&!(a7==1)))))))&&(a14==9)))&&(a20==1))&&!(a24==1)))){ + a20 = 0; + a14 = 8; + a19 = 2; + a0 = 0; + a25 = 0; + a11 = 0; + a29 = 5; + return 24; + } else if(((a25==1)&&((a28==1)&&(((a14==8)&&(((a7==1)&&(((((input==6)&&((((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))||((a19==2)&&(a29==6))))&&(a22==1))&&!(a11==1))&&(a24==1)))&&(a20==1)))&&!(a0==1))))){ + a14 = 9; + a19 = 5; + a7 = 0; + a20 = 0; + a29 = 9; + a11 = 1; + a25 = 0; + return 24; + } else if((((((a14==8)&&(((a20==1)&&((a7==1)&&(((((input==3)&&(((a29==7)||(a29==8))||(a29==9)))&&(a22==1))&&(a28==1))&&(a0==1))))&&(a19==1)))&&!(a11==1))&&!(a24==1))&&(a25==1))){ + a24 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if(((!(a7==1)&&((a19==4)&&((a11==1)&&(((((a25==1)&&((a24==1)&&((((a29==8)||(a29==9))&&(input==2))&&(a22==1))))&&(a28==1))&&(a14==9))&&!(a20==1)))))&&!(a0==1))){ + a7 = 1; + a29 = 8; + a0 = 1; + a19 = 5; + a24 = 0; + return 21; + } else if((!(a11==1)&&(!(a25==1)&&(((a28==1)&&((a0==1)&&((a7==1)&&((!(a20==1)&&((a22==1)&&((((a29==5)||(a29==6))&&(input==1))&&(a19==3))))&&(a14==8)))))&&!(a24==1))))){ + a24 = 1; + a25 = 1; + a14 = 9; + a19 = 2; + a29 = 7; + return 23; + } else if(((((a7==1)&&((!(a25==1)&&((a14==9)&&(!(a11==1)&&((((input==5)&&(((a29==9)&&(a19==4))||((a29==5)&&(a19==5))))&&(a24==1))&&(a28==1)))))&&(a22==1)))&&!(a20==1))&&!(a0==1))){ + a29 = 5; + a25 = 1; + a11 = 1; + a0 = 1; + a19 = 1; + a7 = 0; + return -1; + } else if((((a19==5)&&((a7==1)&&((a0==1)&&((((a22==1)&&((a29==8)&&((a24==1)&&(((a25==1)&&(input==6))&&(a14==8)))))&&(a11==1))&&(a28==1)))))&&!(a20==1))){ + a20 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if((((a20==1)&&((a28==1)&&(((a11==1)&&((a24==1)&&(((input==2)&&((((a29==9)&&((a7==1)&&!(a25==1)))&&(a19==5))||((a19==1)&&((a29==5)&&((a25==1)&&!(a7==1))))))&&(a22==1))))&&(a14==8))))&&!(a0==1))){ + a29 = 5; + a25 = 0; + a7 = 1; + a19 = 3; + return -1; + } else if(((((!(a24==1)&&(((a25==1)&&((((a14==8)&&((a7==1)&&((a19==2)&&(input==1))))&&(a11==1))&&(a29==5)))&&(a22==1)))&&(a28==1))&&(a0==1))&&(a20==1))){ + a11 = 0; + a19 = 4; + a20 = 0; + return 24; + } else if((!(a20==1)&&(!(a25==1)&&(((a29==7)&&(((a28==1)&&((a14==9)&&((a7==1)&&((a19==5)&&((a24==1)&&((a22==1)&&(input==3)))))))&&(a11==1)))&&(a0==1))))){ + a24 = 0; + a11 = 0; + a19 = 2; + a29 = 6; + a14 = 8; + a7 = 0; + return 21; + } else if((((((a14==9)&&(!(a20==1)&&(((a28==1)&&((!(a7==1)&&(!(a24==1)&&((input==1)&&((a29==7)||(a29==8)))))&&(a19==1)))&&!(a11==1))))&&(a25==1))&&!(a0==1))&&(a22==1))){ + a25 = 0; + a19 = 3; + a7 = 1; + a29 = 9; + a14 = 8; + return -1; + } else if((!(a7==1)&&((a22==1)&&((a28==1)&&(!(a0==1)&&((a11==1)&&(!(a25==1)&&((((a14==9)&&(((input==3)&&(((a29==6)||(a29==7))||(a29==8)))&&(a19==1)))&&(a20==1))&&(a24==1))))))))){ + a0 = 1; + a29 = 5; + a7 = 1; + a14 = 8; + a25 = 1; + return -1; + } else if(((a29==7)&&(((!(a0==1)&&((a7==1)&&(((a20==1)&&(((!(a11==1)&&((a19==3)&&(input==2)))&&(a24==1))&&(a25==1)))&&(a28==1))))&&(a22==1))&&(a14==8)))){ + a24 = 0; + a29 = 8; + a7 = 0; + a19 = 1; + return 23; + } else if(((a14==9)&&((!(a20==1)&&((a22==1)&&((!(a24==1)&&(!(a11==1)&&((((((a25==1)&&!(a7==1))&&(a29==6))&&(a19==1))||((((!(a25==1)&&(a7==1))&&(a29==9))&&(a19==5))||((a19==1)&&(((a25==1)&&!(a7==1))&&(a29==5)))))&&(input==6))))&&(a28==1))))&&!(a0==1)))){ + a11 = 1; + a7 = 1; + a25 = 1; + a24 = 1; + a14 = 8; + a20 = 1; + a0 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((!(a25==1)&&((((((a29==6)&&((!(a20==1)&&((a19==1)&&(!(a11==1)&&(input==3))))&&!(a24==1)))&&!(a0==1))&&(a22==1))&&(a7==1))&&(a28==1)))&&(a14==8))){ + a20 = 1; + a24 = 1; + a0 = 1; + a11 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if(((a22==1)&&(!(a24==1)&&((!(a25==1)&&((a14==10)&&((((a28==1)&&(((((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))&&(input==4))&&(a20==1)))&&(a7==1))&&(a0==1))))&&(a11==1))))){ + a19 = 3; + a7 = 0; + a0 = 0; + a14 = 9; + a29 = 9; + return -1; + } else if(((!(a7==1)&&((a14==9)&&((a11==1)&&((a28==1)&&(!(a24==1)&&((a19==5)&&(((!(a0==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==4)))&&(a20==1))&&!(a25==1))))))))&&(a22==1))){ + a0 = 1; + a25 = 1; + a11 = 0; + a29 = 6; + a19 = 2; + return 21; + } else if(((a22==1)&&(!(a25==1)&&((((((a28==1)&&((!(a24==1)&&(!(a11==1)&&(((a29==8)||(a29==9))&&(input==3))))&&(a20==1)))&&(a0==1))&&!(a7==1))&&(a14==8))&&(a19==4))))){ + a0 = 0; + a11 = 1; + a24 = 1; + a29 = 7; + a20 = 0; + a19 = 1; + return 24; + } else if(((a28==1)&&((a24==1)&&(((a25==1)&&((a19==1)&&((!(a11==1)&&((((((a29==8)||(a29==9))&&(input==2))&&(a22==1))&&(a14==9))&&(a0==1)))&&!(a20==1))))&&!(a7==1))))){ + a29 = 5; + a7 = 1; + a11 = 1; + a14 = 8; + a20 = 1; + return -1; + } else if(((a11==1)&&((a14==9)&&((a19==1)&&((a28==1)&&((a0==1)&&((!(a7==1)&&((a22==1)&&((a25==1)&&((((a29==5)||(a29==6))&&(input==6))&&(a24==1)))))&&!(a20==1)))))))){ + a29 = 6; + a7 = 1; + a20 = 1; + a19 = 3; + a14 = 10; + return 21; + } else if((((((a11==1)&&((!(a25==1)&&(((((a19==4)&&((input==1)&&(((a29==6)||(a29==7))||(a29==8))))&&(a0==1))&&(a24==1))&&(a20==1)))&&(a28==1)))&&(a22==1))&&(a14==9))&&!(a7==1))){ + a0 = 0; + a19 = 1; + a14 = 8; + a25 = 1; + a11 = 0; + a29 = 8; + a7 = 1; + return -1; + } else if(((a22==1)&&((!(a25==1)&&((a14==8)&&((!(a24==1)&&((((!(a7==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==1)))&&(a28==1))&&!(a20==1))&&(a19==1)))&&!(a11==1))))&&!(a0==1)))){ + a11 = 1; + a24 = 1; + a19 = 2; + a29 = 6; + a25 = 1; + return 21; + } return calculate_output8(input); + } + + int calculate_output8(int input) { + if((((a14==8)&&(((((!(a0==1)&&(((a7==1)&&((a19==5)&&(((a29==6)||(a29==7))&&(input==4))))&&(a28==1)))&&!(a20==1))&&(a24==1))&&!(a11==1))&&(a22==1)))&&!(a25==1))){ + a11 = 1; + a19 = 2; + a7 = 0; + a29 = 6; + a24 = 0; + a25 = 1; + a14 = 9; + return 24; + } else if((((a25==1)&&((((a28==1)&&(((((((input==2)&&(a22==1))&&(a0==1))&&(a14==8))&&(a11==1))&&(a19==3))&&!(a24==1)))&&!(a20==1))&&(a29==6)))&&(a7==1))){ + a29 = 9; + a0 = 0; + return 24; + } else if((((!(a11==1)&&((a28==1)&&(((((((a29==8)&&(!(a25==1)&&((a24==1)&&(!(a7==1)&&!(a20==1)))))&&(a19==5))||(((!(a25==1)&&((a24==1)&&(!(a20==1)&&!(a7==1))))&&(a29==9))&&(a19==5)))||(((a29==5)&&((a25==1)&&(((a20==1)&&(a7==1))&&!(a24==1))))&&(a19==1)))&&(input==2))&&(a22==1))))&&(a0==1))&&(a14==8))){ + a20 = 0; + a19 = 2; + a29 = 9; + a7 = 0; + a25 = 0; + a24 = 0; + return 23; + } else if(((a11==1)&&(((a22==1)&&(((!(a20==1)&&((((a19==5)&&((a14==8)&&(((a29==7)||(a29==8))&&(input==6))))&&(a28==1))&&!(a25==1)))&&(a24==1))&&!(a7==1)))&&!(a0==1)))){ + a14 = 9; + a24 = 0; + a19 = 2; + a0 = 1; + a29 = 9; + a11 = 0; + return 24; + } else if(((a22==1)&&(!(a11==1)&&((!(a7==1)&&(((a19==2)&&(!(a20==1)&&(!(a24==1)&&((((input==3)&&(a29==6))&&(a0==1))&&(a28==1)))))&&(a25==1)))&&(a14==8))))){ + a25 = 0; + a19 = 3; + a7 = 1; + a29 = 5; + return -1; + } else if((!(a7==1)&&(!(a25==1)&&((((((a14==9)&&((!(a11==1)&&(((input==5)&&((a29==8)||((a29==6)||(a29==7))))&&(a0==1)))&&!(a20==1)))&&(a22==1))&&!(a24==1))&&(a19==3))&&(a28==1))))){ + a20 = 1; + a29 = 6; + a7 = 1; + a24 = 1; + return 24; + } else if((!(a0==1)&&(((a14==9)&&((a28==1)&&((a22==1)&&((a7==1)&&((!(a20==1)&&((a25==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==2))&&(a24==1))))&&(a11==1))))))&&(a19==1)))){ + a0 = 1; + a14 = 8; + a29 = 5; + a20 = 1; + return -1; + } else if((!(a0==1)&&((a24==1)&&(((((a25==1)&&(((a28==1)&&((a19==5)&&((a14==9)&&((a22==1)&&(input==5)))))&&!(a7==1)))&&!(a20==1))&&(a29==7))&&(a11==1))))){ + a11 = 0; + a20 = 1; + a29 = 9; + a24 = 0; + a25 = 0; + a14 = 8; + return -1; + } else if(((a28==1)&&((a7==1)&&((a19==3)&&(!(a24==1)&&(((((a20==1)&&(!(a25==1)&&((a0==1)&&((input==5)&&((a29==6)||(a29==7))))))&&!(a11==1))&&(a22==1))&&(a14==9))))))){ + a25 = 1; + a11 = 1; + a24 = 1; + a14 = 8; + a19 = 1; + a29 = 5; + return -1; + } else if(((a22==1)&&(!(a25==1)&&(((a19==5)&&((a24==1)&&((!(a11==1)&&((a20==1)&&((a14==9)&&(((input==5)&&((a29==7)||((a29==5)||(a29==6))))&&(a7==1)))))&&(a28==1))))&&(a0==1))))){ + a25 = 1; + a29 = 7; + a14 = 8; + a19 = 3; + a0 = 0; + a20 = 0; + return 21; + } else if((((a19==1)&&(!(a11==1)&&(((((a0==1)&&((a7==1)&&((a28==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==6))&&!(a25==1)))))&&(a14==8))&&!(a20==1))&&(a22==1))))&&(a24==1))){ + a14 = 9; + a11 = 1; + a29 = 9; + a20 = 1; + return 24; + } else if((((((a19==1)&&((a28==1)&&(!(a20==1)&&((((((input==5)&&((a29==7)||((a29==5)||(a29==6))))&&!(a0==1))&&(a22==1))&&!(a25==1))&&!(a7==1)))))&&(a14==9))&&(a24==1))&&(a11==1))){ + a29 = 7; + a25 = 1; + a14 = 8; + a20 = 1; + a11 = 0; + return -1; + } else if((!(a20==1)&&((a11==1)&&((a0==1)&&((((((a22==1)&&(!(a7==1)&&(((input==2)&&(a14==10))&&(a29==6))))&&!(a25==1))&&(a19==5))&&(a24==1))&&(a28==1)))))){ + a0 = 0; + a7 = 1; + a20 = 1; + a29 = 7; + a14 = 8; + a25 = 1; + return 24; + } else if(((((((a22==1)&&(((a24==1)&&((a19==4)&&((a25==1)&&((a7==1)&&((input==3)&&((a29==7)||(a29==8)))))))&&(a14==8)))&&(a0==1))&&!(a11==1))&&(a28==1))&&!(a20==1))){ + a14 = 9; + a11 = 1; + a20 = 1; + a29 = 8; + a19 = 2; + return 24; + } else if(((!(a0==1)&&((a11==1)&&((((((a19==1)&&(((a24==1)&&((input==5)&&((a29==7)||((a29==5)||(a29==6)))))&&(a25==1)))&&(a14==8))&&!(a7==1))&&(a28==1))&&!(a20==1))))&&(a22==1))){ + a7 = 1; + a20 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if(((a14==9)&&((((a19==4)&&((a22==1)&&((a28==1)&&((a25==1)&&(!(a7==1)&&((!(a11==1)&&((input==6)&&((a29==8)||(a29==9))))&&!(a24==1)))))))&&!(a0==1))&&(a20==1)))){ + a25 = 0; + a7 = 1; + a19 = 3; + a24 = 1; + a29 = 9; + return -1; + } else if((!(a11==1)&&(!(a0==1)&&(((a14==8)&&(!(a24==1)&&((!(a20==1)&&((a25==1)&&(((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))&&(input==2))&&(a7==1))))&&(a28==1))))&&(a22==1))))){ + a19 = 3; + a29 = 5; + a14 = 9; + a0 = 1; + a7 = 0; + return 23; + } else if((((a0==1)&&((a25==1)&&((!(a20==1)&&(((a28==1)&&(((a22==1)&&((input==3)&&(((a29==5)&&(a19==4))||(((a19==3)&&(a29==8))||((a29==9)&&(a19==3))))))&&(a11==1)))&&(a14==8)))&&!(a7==1))))&&(a24==1))){ + a7 = 1; + a11 = 0; + a19 = 1; + a29 = 5; + a25 = 0; + return 23; + } else if((((((((a19==5)&&(!(a25==1)&&(!(a20==1)&&(((a7==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==3)))&&(a14==8)))))&&(a11==1))&&(a22==1))&&(a28==1))&&(a24==1))&&(a0==1))){ + a11 = 0; + a20 = 1; + a19 = 1; + a7 = 0; + a29 = 6; + a25 = 1; + return 23; + } else if((((!(a7==1)&&((a28==1)&&((a0==1)&&((a25==1)&&((a14==8)&&((!(a24==1)&&(((input==3)&&(((a29==5)||(a29==6))||(a29==7)))&&(a11==1)))&&(a19==5)))))))&&(a22==1))&&(a20==1))){ + a24 = 1; + a29 = 5; + a19 = 1; + a7 = 1; + return -1; + } else if(((a28==1)&&((((((((a24==1)&&((a22==1)&&(((input==1)&&((a29==7)||((a29==5)||(a29==6))))&&(a19==5))))&&(a11==1))&&(a25==1))&&(a7==1))&&!(a20==1))&&(a14==8))&&(a0==1)))){ + a29 = 5; + a19 = 1; + a20 = 1; + return -1; + } else if((!(a7==1)&&((a20==1)&&(((a25==1)&&((a28==1)&&((((a22==1)&&((((a14==8)&&(input==2))&&(a19==4))&&(a11==1)))&&(a0==1))&&(a29==6))))&&(a24==1))))){ + a25 = 0; + a29 = 5; + return 23; + } else if((((!(a24==1)&&((a19==1)&&(((((((a29==5)&&((input==3)&&(a20==1)))&&(a28==1))&&(a22==1))&&!(a11==1))&&(a14==8))&&!(a0==1))))&&!(a7==1))&&(a25==1))){ + a24 = 1; + a19 = 2; + a25 = 0; + a29 = 8; + return -1; + } else if((((a7==1)&&((a22==1)&&((!(a0==1)&&(((a11==1)&&(((((input==5)&&((a29==7)||((a29==5)||(a29==6))))&&!(a25==1))&&(a28==1))&&(a14==9)))&&(a24==1)))&&(a19==1))))&&(a20==1))){ + a29 = 9; + a24 = 0; + a14 = 8; + a19 = 2; + return -1; + } else if((((a24==1)&&(((a22==1)&&(((((((input==1)&&(((a19==3)&&(a29==5))||(((a29==8)&&(a19==2))||((a19==2)&&(a29==9)))))&&(a20==1))&&(a25==1))&&(a7==1))&&!(a0==1))&&(a14==8)))&&(a28==1)))&&(a11==1))){ + a0 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((((a11==1)&&((((a14==8)&&((!(a20==1)&&(!(a7==1)&&((a22==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==6))&&!(a0==1)))))&&(a28==1)))&&(a25==1))&&(a19==1)))&&!(a24==1))){ + a29 = 5; + a24 = 1; + a20 = 1; + a19 = 4; + a7 = 1; + return 24; + } else if((!(a20==1)&&(((a28==1)&&((a19==3)&&(((a22==1)&&((a11==1)&&(((a7==1)&&((a25==1)&&(((a29==7)||(a29==8))&&(input==4))))&&(a14==8))))&&!(a24==1))))&&(a0==1)))){ + a25 = 0; + a19 = 1; + a29 = 5; + a0 = 0; + return 24; + } else if((((a7==1)&&(((a28==1)&&(((!(a0==1)&&((a11==1)&&((((a19==5)&&((a25==1)&&(a29==9)))||((a19==1)&&((a29==5)&&!(a25==1))))&&(input==5))))&&(a22==1))&&(a20==1)))&&(a24==1)))&&(a14==8))){ + a29 = 5; + a0 = 1; + a25 = 1; + a19 = 1; + return -1; + } else if((!(a20==1)&&(((a14==8)&&(((((((!(a11==1)&&((a7==1)&&(input==4)))&&(a24==1))&&!(a0==1))&&(a22==1))&&!(a25==1))&&(a29==5))&&(a28==1)))&&(a19==2)))){ + a25 = 1; + a0 = 1; + a11 = 1; + a19 = 1; + a20 = 1; + return -1; + } else if(((((a20==1)&&(((((a24==1)&&((!(a0==1)&&(!(a11==1)&&((input==5)&&((a29==7)||(a29==8)))))&&(a14==8)))&&!(a7==1))&&(a25==1))&&(a28==1)))&&(a22==1))&&(a19==3))){ + a14 = 9; + a29 = 8; + a24 = 0; + a19 = 4; + a11 = 1; + return 21; + } else if(((a25==1)&&(!(a11==1)&&(((((a28==1)&&(!(a24==1)&&(((a7==1)&&((a22==1)&&((a14==9)&&(input==4))))&&(a29==5))))&&!(a20==1))&&!(a0==1))&&(a19==4))))){ + a14 = 8; + a19 = 3; + a29 = 6; + a7 = 0; + a25 = 0; + a24 = 1; + a11 = 1; + return 21; + } else if(((((a28==1)&&((a25==1)&&((a19==5)&&((a22==1)&&(((!(a7==1)&&((((a29==5)||(a29==6))&&(input==1))&&(a0==1)))&&(a14==8))&&!(a11==1))))))&&(a20==1))&&(a24==1))){ + a29 = 9; + a25 = 0; + a19 = 3; + a24 = 0; + a0 = 0; + return 23; + } else if(((a25==1)&&((a7==1)&&((((a20==1)&&((a24==1)&&(((a11==1)&&((a14==9)&&((input==3)&&((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))||((a19==4)&&(a29==6))))))&&(a0==1))))&&(a28==1))&&(a22==1))))){ + a0 = 0; + a14 = 8; + a29 = 6; + a19 = 3; + return 21; + } else if((!(a24==1)&&(!(a25==1)&&(((!(a11==1)&&(((((!(a0==1)&&((input==4)&&((a29==6)||(a29==7))))&&(a22==1))&&(a20==1))&&(a28==1))&&(a14==9)))&&(a19==1))&&!(a7==1))))){ + a0 = 1; + a11 = 1; + a24 = 1; + a29 = 7; + a19 = 5; + a20 = 0; + return -1; + } else if((((((a19==3)&&(((!(a11==1)&&(((((input==4)&&!(a20==1))&&(a22==1))&&(a24==1))&&(a14==9)))&&(a28==1))&&(a7==1)))&&(a29==6))&&!(a0==1))&&(a25==1))){ + a29 = 9; + a14 = 8; + a24 = 0; + a11 = 1; + a19 = 1; + a20 = 1; + return 23; + } else if((((a22==1)&&((a19==5)&&((a0==1)&&((a11==1)&&((((a28==1)&&((((input==4)&&(a14==9))&&(a25==1))&&!(a20==1)))&&(a7==1))&&(a29==7))))))&&!(a24==1))){ + a14 = 8; + a0 = 0; + a19 = 1; + a29 = 8; + a20 = 1; + a25 = 0; + a11 = 0; + return 21; + } else if((!(a7==1)&&(((a28==1)&&((!(a0==1)&&(((a25==1)&&((((input==5)&&(((a29==9)&&(a19==1))||((a29==5)&&(a19==2))))&&(a14==8))&&(a24==1)))&&!(a11==1)))&&(a20==1)))&&(a22==1)))){ + a7 = 1; + a19 = 3; + a29 = 6; + a0 = 1; + a25 = 0; + a24 = 0; + a20 = 0; + return 23; + } else if(((a25==1)&&((a7==1)&&((((((a19==4)&&(((((input==1)&&((a29==9)||((a29==7)||(a29==8))))&&(a28==1))&&(a22==1))&&!(a0==1)))&&!(a11==1))&&(a24==1))&&(a14==8))&&!(a20==1))))){ + a0 = 1; + a7 = 0; + a19 = 2; + a29 = 9; + a14 = 9; + return 23; + } else if(((a7==1)&&(((a20==1)&&(((a28==1)&&((a29==8)&&((a22==1)&&(((!(a24==1)&&((input==1)&&(a0==1)))&&!(a11==1))&&(a14==9)))))&&(a19==3)))&&(a25==1)))){ + a0 = 0; + a11 = 1; + a24 = 1; + a7 = 0; + a29 = 7; + a20 = 0; + a14 = 8; + return 24; + } else if(((((a11==1)&&(((a19==1)&&((((!(a25==1)&&((!(a0==1)&&(input==4))&&(a24==1)))&&(a28==1))&&(a29==9))&&(a14==9)))&&(a20==1)))&&(a22==1))&&!(a7==1))){ + a29 = 5; + a0 = 1; + a7 = 1; + a14 = 8; + a25 = 1; + return -1; + } else if((((a14==8)&&((((((a28==1)&&((!(a20==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==1))&&(a11==1)))&&(a19==1)))&&!(a0==1))&&(a22==1))&&(a7==1))&&!(a25==1)))&&(a24==1))){ + a25 = 1; + a29 = 6; + a19 = 3; + return -1; + } else if((((((((a14==9)&&((!(a20==1)&&((a28==1)&&((((a29==5)||(a29==6))&&(input==6))&&(a22==1))))&&!(a11==1)))&&(a0==1))&&(a19==1))&&(a24==1))&&(a7==1))&&(a25==1))){ + a24 = 0; + a29 = 6; + a0 = 0; + a14 = 8; + a19 = 5; + return 24; + } else if((!(a25==1)&&(!(a24==1)&&((a0==1)&&(((a14==8)&&((((a19==4)&&(((a28==1)&&((a20==1)&&(input==3)))&&(a7==1)))&&(a29==6))&&(a11==1)))&&(a22==1)))))){ + a25 = 1; + a0 = 0; + a7 = 0; + a19 = 3; + a24 = 1; + a29 = 8; + return 23; + } else if(((a22==1)&&((!(a25==1)&&((((!(a11==1)&&((a28==1)&&((!(a24==1)&&((input==5)&&((a29==7)||((a29==5)||(a29==6)))))&&(a14==8))))&&(a19==5))&&!(a7==1))&&!(a0==1)))&&(a20==1)))){ + a11 = 1; + a7 = 1; + a14 = 9; + a29 = 6; + a25 = 1; + a0 = 1; + return 21; + } else if((((a11==1)&&((!(a25==1)&&(!(a24==1)&&((((a14==8)&&(((input==5)&&((((a19==3)&&(a29==8))||((a29==9)&&(a19==3)))||((a19==4)&&(a29==5))))&&!(a7==1)))&&(a22==1))&&(a0==1))))&&(a20==1)))&&(a28==1))){ + a0 = 0; + a29 = 7; + a25 = 1; + a19 = 2; + return 24; + } else if(((((!(a11==1)&&((a20==1)&&(!(a25==1)&&((a22==1)&&((a29==9)&&((((input==5)&&(a14==8))&&(a28==1))&&!(a7==1)))))))&&(a0==1))&&(a24==1))&&(a19==1))){ + a19 = 3; + a11 = 1; + a20 = 0; + a0 = 0; + a25 = 1; + return 21; + } else if((!(a24==1)&&((!(a25==1)&&(((((a7==1)&&((a11==1)&&(((!(a20==1)&&(input==2))&&!(a0==1))&&(a29==6))))&&(a22==1))&&(a14==8))&&(a19==5)))&&(a28==1)))){ + a0 = 1; + a7 = 0; + a11 = 0; + a29 = 5; + return -1; + } else if(((a19==5)&&(((a29==6)&&((a28==1)&&((((a25==1)&&((((a14==8)&&((a24==1)&&(input==6)))&&!(a7==1))&&(a11==1)))&&!(a20==1))&&(a0==1))))&&(a22==1)))){ + a29 = 7; + a19 = 2; + a11 = 0; + return 23; + } else if(((a28==1)&&((a0==1)&&((a19==2)&&((a14==8)&&(!(a20==1)&&(((a7==1)&&(((((input==1)&&(((a29==7)||(a29==8))||(a29==9)))&&(a24==1))&&(a11==1))&&(a25==1)))&&(a22==1)))))))){ + a24 = 0; + a29 = 6; + a25 = 0; + a7 = 0; + a20 = 1; + return 21; + } else if((((a28==1)&&(((a20==1)&&((!(a24==1)&&(((a22==1)&&((((input==4)&&(((a29==7)||(a29==8))||(a29==9)))&&(a0==1))&&!(a7==1)))&&(a14==9)))&&(a19==4)))&&(a11==1)))&&!(a25==1))){ + a25 = 1; + a24 = 1; + a29 = 5; + a7 = 1; + a19 = 1; + a14 = 8; + return -1; + } else if((!(a25==1)&&((a28==1)&&((a22==1)&&(((a7==1)&&((a24==1)&&((!(a0==1)&&((a14==9)&&((a20==1)&&(((a29==6)||(a29==7))&&(input==1)))))&&(a11==1))))&&(a19==4)))))){ + a11 = 0; + a19 = 1; + a0 = 1; + a20 = 0; + a25 = 1; + a29 = 6; + return -1; + } else if((((((!(a24==1)&&(((a19==1)&&((a22==1)&&((a20==1)&&((((a29==8)||(a29==9))&&(input==1))&&(a0==1)))))&&(a28==1)))&&(a7==1))&&(a25==1))&&(a14==9))&&!(a11==1))){ + a29 = 5; + a19 = 2; + a24 = 1; + a7 = 0; + return -1; + } else if((((a28==1)&&(!(a20==1)&&((((a19==1)&&((a14==9)&&((((((a29==7)||(a29==8))&&(input==3))&&(a11==1))&&(a22==1))&&(a25==1))))&&(a0==1))&&(a7==1))))&&(a24==1))){ + a29 = 9; + a19 = 2; + a24 = 0; + a25 = 0; + a11 = 0; + a14 = 8; + return 23; + } else if(((((a0==1)&&((a19==5)&&(((((a20==1)&&((a22==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==1))&&!(a24==1))))&&(a7==1))&&(a11==1))&&(a28==1))))&&(a14==8))&&!(a25==1))){ + a0 = 0; + a19 = 4; + a24 = 1; + a29 = 5; + a7 = 0; + return 24; + } else if(((a20==1)&&((a24==1)&&((a19==1)&&((a11==1)&&((a28==1)&&((a25==1)&&((((a0==1)&&(!(a7==1)&&((a29==9)&&(input==5))))&&(a22==1))&&(a14==9))))))))){ + a7 = 1; + a20 = 0; + a29 = 7; + a24 = 0; + a19 = 4; + a11 = 0; + a0 = 0; + return 23; + } else if((!(a11==1)&&(((a22==1)&&((((a19==4)&&(!(a20==1)&&((a14==8)&&((a7==1)&&(((input==5)&&(a24==1))&&(a28==1))))))&&(a25==1))&&(a29==6)))&&(a0==1)))){ + a0 = 0; + a29 = 9; + a7 = 0; + a19 = 5; + a25 = 0; + a24 = 0; + return 21; + } else if(((a28==1)&&((((a29==7)&&((a11==1)&&(((!(a20==1)&&(((a19==4)&&((a0==1)&&(input==4)))&&(a14==9)))&&(a7==1))&&!(a25==1))))&&(a22==1))&&(a24==1)))){ + a19 = 1; + a25 = 1; + a20 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if(((a28==1)&&(((((((a29==9)&&(((!(a7==1)&&((!(a11==1)&&(a0==1))&&!(a20==1)))&&!(a24==1))&&!(a25==1)))&&(a19==5))||(((a29==5)&&((a25==1)&&((a24==1)&&((a7==1)&&((a20==1)&&(!(a0==1)&&(a11==1)))))))&&(a19==1)))&&(input==3))&&(a14==8))&&(a22==1)))){ + a24 = 1; + a19 = 5; + a7 = 0; + a20 = 1; + a29 = 8; + a25 = 0; + a0 = 0; + a11 = 1; + return 23; + } else if((((a19==2)&&(!(a0==1)&&((a28==1)&&((!(a7==1)&&(!(a24==1)&&(!(a20==1)&&(((((a29==7)||(a29==8))&&(input==2))&&(a25==1))&&(a11==1)))))&&(a22==1)))))&&(a14==9))){ + a0 = 1; + a19 = 1; + a20 = 1; + a24 = 1; + a7 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if((((!(a24==1)&&((a22==1)&&(((!(a25==1)&&(((!(a7==1)&&((input==2)&&(((a29==5)||(a29==6))||(a29==7))))&&(a14==8))&&(a28==1)))&&(a20==1))&&(a11==1))))&&!(a0==1))&&(a19==2))){ + a29 = 8; + a24 = 1; + a7 = 1; + return 23; + } else if((!(a24==1)&&((!(a20==1)&&((a19==1)&&(((((a14==9)&&((!(a25==1)&&((input==6)&&(a28==1)))&&(a7==1)))&&!(a11==1))&&(a29==8))&&(a22==1))))&&!(a0==1)))){ + a25 = 1; + a14 = 8; + a24 = 1; + a29 = 5; + a0 = 1; + a11 = 1; + a20 = 1; + return -1; + } else if(((a0==1)&&(!(a11==1)&&(!(a24==1)&&((a14==8)&&((a28==1)&&(((input==6)&&((((a19==5)&&(((!(a7==1)&&(a20==1))&&!(a25==1))&&(a29==9)))||((a19==1)&&(((a25==1)&&(!(a20==1)&&(a7==1)))&&(a29==5))))||(((a29==6)&&(((a7==1)&&!(a20==1))&&(a25==1)))&&(a19==1))))&&(a22==1)))))))){ + a25 = 1; + a14 = 9; + a19 = 4; + a20 = 1; + a24 = 1; + a29 = 5; + a7 = 1; + return 24; + } else if((!(a24==1)&&(((!(a25==1)&&(((((!(a0==1)&&(((((a19==2)&&(a29==8))||((a29==9)&&(a19==2)))||((a29==5)&&(a19==3)))&&(input==3)))&&(a28==1))&&(a11==1))&&!(a7==1))&&(a20==1)))&&(a22==1))&&(a14==8)))){ + a20 = 0; + a19 = 5; + a29 = 5; + a24 = 1; + return 23; + } else if(((((((a14==9)&&(!(a20==1)&&(!(a24==1)&&((!(a7==1)&&(!(a11==1)&&((input==3)&&((a29==6)||(a29==7)))))&&!(a0==1)))))&&(a25==1))&&(a22==1))&&(a28==1))&&(a19==4))){ + a19 = 2; + a29 = 9; + a24 = 1; + a25 = 0; + a14 = 8; + return 21; + } else if(((((a7==1)&&((a24==1)&&((a11==1)&&(((((a22==1)&&(((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))||((a29==6)&&(a19==4)))&&(input==6)))&&(a14==9))&&(a25==1))&&(a0==1)))))&&(a20==1))&&(a28==1))){ + a14 = 8; + a0 = 0; + a24 = 0; + a29 = 5; + a20 = 0; + a19 = 2; + a7 = 0; + return -1; + } else if(((!(a7==1)&&(((a19==3)&&((((!(a25==1)&&(!(a20==1)&&(!(a0==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==5)))))&&(a28==1))&&(a24==1))&&!(a11==1)))&&(a14==9)))&&(a22==1))){ + a25 = 1; + a0 = 1; + a29 = 6; + return -1; + } else if((((a28==1)&&((a14==9)&&(!(a24==1)&&(((a19==2)&&((((a0==1)&&((((a29==6)||(a29==7))&&(input==5))&&(a22==1)))&&(a11==1))&&!(a25==1)))&&!(a20==1)))))&&(a7==1))){ + a0 = 0; + a11 = 0; + a14 = 8; + a29 = 8; + a25 = 1; + a19 = 3; + return -1; + } else if(((a28==1)&&((a19==1)&&((((((!(a20==1)&&(!(a0==1)&&((a14==9)&&((input==1)&&(((a29==7)||(a29==8))||(a29==9))))))&&(a22==1))&&!(a25==1))&&(a7==1))&&(a11==1))&&(a24==1))))){ + a25 = 1; + a14 = 8; + a20 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if(((!(a25==1)&&((a22==1)&&(!(a11==1)&&((a28==1)&&(!(a20==1)&&(((((((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))&&(input==6))&&(a24==1))&&(a14==8))&&(a0==1)))))))&&!(a7==1))){ + a29 = 5; + a0 = 0; + a19 = 1; + a11 = 1; + return 21; + } else if(((((a22==1)&&((((a28==1)&&((a14==8)&&(((((input==3)&&(a25==1))&&!(a11==1))&&!(a20==1))&&!(a0==1))))&&!(a7==1))&&(a19==5)))&&(a24==1))&&(a29==8))){ + a14 = 9; + a25 = 0; + a19 = 4; + a24 = 0; + a11 = 1; + return 24; + } else if(((!(a24==1)&&((((a19==5)&&((((a14==8)&&((a22==1)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==6))&&!(a20==1))))&&(a28==1))&&!(a7==1)))&&!(a0==1))&&!(a25==1)))&&(a11==1))){ + a7 = 1; + a25 = 1; + a24 = 1; + a0 = 1; + a19 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if((!(a11==1)&&((((((a0==1)&&((((a28==1)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==2))&&(a19==1)))&&(a14==9))&&(a7==1)))&&(a25==1))&&(a22==1))&&!(a24==1))&&!(a20==1)))){ + a20 = 1; + a19 = 3; + a11 = 1; + a25 = 0; + a29 = 5; + a0 = 0; + a14 = 8; + return 23; + } else if(((a14==8)&&((a28==1)&&(((((a19==4)&&((a11==1)&&((((a24==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==2)))&&(a25==1))&&(a7==1))))&&!(a0==1))&&(a22==1))&&(a20==1))))){ + a19 = 2; + a29 = 7; + return -1; + } else if((!(a25==1)&&(((!(a11==1)&&((((((a28==1)&&(((input==3)&&(((a29==5)||(a29==6))||(a29==7)))&&!(a0==1)))&&!(a7==1))&&(a19==4))&&(a22==1))&&(a14==8)))&&(a24==1))&&(a20==1)))){ + a25 = 1; + a29 = 5; + a11 = 1; + a19 = 3; + return -1; + } else if((!(a24==1)&&((!(a11==1)&&(!(a20==1)&&((a28==1)&&(!(a0==1)&&((a14==8)&&((((((a29==5)||(a29==6))&&(input==5))&&(a19==2))&&(a22==1))&&(a7==1)))))))&&!(a25==1)))){ + a19 = 1; + a11 = 1; + a29 = 8; + return 23; + } else if(((a0==1)&&((a24==1)&&(((a14==9)&&(((a11==1)&&(((a19==1)&&((((((a29==5)||(a29==6))||(a29==7))&&(input==5))&&(a22==1))&&(a20==1)))&&!(a25==1)))&&(a28==1)))&&!(a7==1))))){ + a7 = 1; + a25 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if((((a19==4)&&((a25==1)&&(((a7==1)&&((((((a14==10)&&((input==4)&&((a29==7)||(a29==8))))&&(a20==1))&&(a0==1))&&(a24==1))&&(a28==1)))&&(a11==1))))&&(a22==1))){ + a20 = 0; + a14 = 9; + a25 = 0; + a24 = 0; + a29 = 5; + return -1; + } else if(((a7==1)&&((((a19==5)&&((a20==1)&&((a22==1)&&((!(a25==1)&&((a28==1)&&((a0==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==2)))))&&(a24==1)))))&&(a14==9))&&!(a11==1)))){ + a29 = 5; + a11 = 1; + a14 = 8; + a19 = 1; + a25 = 1; + return -1; + } else if(((!(a25==1)&&((a0==1)&&((a19==1)&&((a29==5)&&(((!(a20==1)&&(((a24==1)&&((input==2)&&(a22==1)))&&(a14==8)))&&(a7==1))&&!(a11==1))))))&&(a28==1))){ + a19 = 5; + a25 = 1; + a14 = 9; + a11 = 1; + a29 = 7; + a20 = 1; + return 23; + } else if((!(a7==1)&&((a22==1)&&((!(a24==1)&&((!(a0==1)&&(!(a25==1)&&(((a19==4)&&((((a29==6)||(a29==7))&&(input==3))&&(a20==1)))&&(a14==9))))&&!(a11==1)))&&(a28==1))))){ + a14 = 8; + a11 = 1; + a29 = 7; + a24 = 1; + a25 = 1; + a19 = 5; + return 21; + } else if(((!(a11==1)&&((!(a7==1)&&((!(a24==1)&&((a14==9)&&((!(a0==1)&&(((input==2)&&(a28==1))&&!(a25==1)))&&(a22==1))))&&!(a20==1)))&&(a19==5)))&&(a29==9))){ + a25 = 1; + a0 = 1; + a29 = 5; + a7 = 1; + a19 = 1; + a24 = 1; + a11 = 1; + a20 = 1; + a14 = 8; + return -1; + } else if((!(a20==1)&&((!(a7==1)&&((a25==1)&&((a22==1)&&((a28==1)&&((a14==9)&&(!(a11==1)&&((a0==1)&&((((a29==9)&&(a19==4))||((a29==5)&&(a19==5)))&&(input==4)))))))))&&(a24==1)))){ + a7 = 1; + a0 = 0; + a19 = 4; + a11 = 1; + a25 = 0; + a29 = 5; + a14 = 8; + a20 = 1; + return 21; + } else if(((a28==1)&&(!(a11==1)&&(((((input==1)&&((((a19==5)&&((a29==8)&&(!(a25==1)&&((a24==1)&&(!(a7==1)&&!(a20==1))))))||((a19==5)&&((a29==9)&&(((!(a20==1)&&!(a7==1))&&(a24==1))&&!(a25==1)))))||(((a29==5)&&((((a7==1)&&(a20==1))&&!(a24==1))&&(a25==1)))&&(a19==1))))&&(a14==8))&&(a22==1))&&(a0==1))))){ + a19 = 2; + a24 = 0; + a11 = 1; + a20 = 1; + a29 = 6; + a7 = 1; + a14 = 9; + a25 = 1; + return 23; + } else if(((a11==1)&&(((!(a0==1)&&((!(a25==1)&&(((a28==1)&&(((((a29==8)||(a29==9))&&(input==5))&&(a24==1))&&!(a7==1)))&&(a22==1)))&&!(a20==1)))&&(a19==1))&&(a14==9)))){ + a14 = 8; + a19 = 3; + a29 = 5; + a25 = 1; + return 23; + } else if(((a14==9)&&((((((a20==1)&&((!(a11==1)&&((((((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))||((a29==5)&&(a19==5)))&&(input==5))&&!(a0==1)))&&(a28==1)))&&(a24==1))&&(a7==1))&&(a25==1))&&(a22==1)))){ + a24 = 0; + a7 = 0; + a25 = 0; + a29 = 9; + a19 = 3; + a14 = 8; + a11 = 1; + return 23; + } else if((((!(a0==1)&&((a19==4)&&(((a14==8)&&((a20==1)&&((!(a11==1)&&(((input==1)&&((a29==9)||((a29==7)||(a29==8))))&&(a24==1)))&&(a22==1))))&&(a7==1))))&&!(a25==1))&&(a28==1))){ + a29 = 5; + a25 = 1; + a19 = 1; + a11 = 1; + a0 = 1; + return -1; + } else if(((a24==1)&&((((!(a7==1)&&((!(a0==1)&&((a14==8)&&(!(a11==1)&&((a28==1)&&(((a29==7)||(a29==8))&&(input==4))))))&&(a25==1)))&&(a22==1))&&!(a20==1))&&(a19==1)))){ + a20 = 1; + a19 = 5; + a29 = 6; + a11 = 1; + a7 = 1; + return 24; + } else if(((a14==9)&&(((((a19==3)&&((a24==1)&&(((a7==1)&&(((a29==7)&&((input==1)&&(a11==1)))&&(a22==1)))&&(a20==1))))&&(a28==1))&&(a0==1))&&!(a25==1)))){ + a0 = 0; + a19 = 2; + a29 = 8; + a14 = 8; + a20 = 0; + return 24; + } else if(((((((a24==1)&&(!(a25==1)&&((a11==1)&&(((((input==2)&&((a29==8)||(a29==9)))&&(a20==1))&&(a22==1))&&!(a0==1)))))&&(a14==9))&&(a28==1))&&(a19==1))&&(a7==1))){ + a11 = 0; + a24 = 0; + a20 = 0; + a0 = 1; + a14 = 8; + a7 = 0; + a19 = 3; + a29 = 9; + return 21; + } else if(((a14==8)&&((((a20==1)&&(!(a0==1)&&((a28==1)&&((((a22==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==6))&&!(a24==1)))&&!(a11==1))&&(a19==5)))))&&(a25==1))&&(a7==1)))){ + a24 = 1; + a29 = 5; + a20 = 0; + a7 = 0; + return 24; + } else if((((a25==1)&&(!(a11==1)&&(!(a0==1)&&(((((a24==1)&&((((input==3)&&(((a29==6)||(a29==7))||(a29==8)))&&(a19==3))&&(a28==1)))&&!(a20==1))&&(a22==1))&&(a14==9)))))&&!(a7==1))){ + a20 = 1; + a14 = 8; + a19 = 4; + a11 = 1; + a29 = 9; + return 23; + } else if((!(a24==1)&&(!(a0==1)&&(((!(a25==1)&&((a14==9)&&((a19==5)&&((a28==1)&&((a11==1)&&(((input==5)&&((a29==6)||(a29==7)))&&!(a20==1)))))))&&!(a7==1))&&(a22==1))))){ + a19 = 3; + a29 = 6; + a24 = 1; + a14 = 8; + return 23; + } else if(((((((a19==1)&&(!(a24==1)&&(((a22==1)&&(((((a29==7)||(a29==8))&&(input==2))&&(a20==1))&&(a14==8)))&&(a0==1))))&&(a7==1))&&!(a11==1))&&(a28==1))&&!(a25==1))){ + a0 = 0; + a19 = 2; + a11 = 1; + a20 = 0; + a29 = 9; + a24 = 1; + return 24; + } else if((!(a20==1)&&((a7==1)&&(((a28==1)&&(!(a25==1)&&(((!(a24==1)&&((((input==6)&&(a19==3))&&(a29==5))&&(a22==1)))&&!(a0==1))&&!(a11==1))))&&(a14==8))))){ + a14 = 9; + a29 = 9; + a25 = 1; + a24 = 1; + a7 = 0; + return 23; + } else if((!(a25==1)&&((a28==1)&&((a11==1)&&((a20==1)&&((((a14==9)&&(((a22==1)&&((input==6)&&((((a19==4)&&(a29==8))||((a29==9)&&(a19==4)))||((a19==5)&&(a29==5)))))&&(a24==1)))&&!(a0==1))&&(a7==1))))))){ + a24 = 0; + a19 = 1; + a29 = 9; + a14 = 8; + a7 = 0; + return 23; + } else if(((a28==1)&&(((((a11==1)&&(((a22==1)&&(((a25==1)&&(((input==5)&&!(a20==1))&&(a14==9)))&&(a19==3)))&&(a7==1)))&&(a24==1))&&(a29==6))&&!(a0==1)))){ + a29 = 7; + a24 = 0; + a14 = 8; + a19 = 1; + return -1; + } else if((!(a24==1)&&((a19==1)&&((a28==1)&&(!(a7==1)&&((a22==1)&&((a14==9)&&(((a25==1)&&((((input==6)&&!(a0==1))&&!(a11==1))&&(a20==1)))&&(a29==6))))))))){ + a19 = 2; + a29 = 7; + a25 = 0; + a0 = 1; + a20 = 0; + a24 = 1; + a11 = 1; + return 24; + } else if(((a28==1)&&((!(a11==1)&&((((a0==1)&&((a19==3)&&(!(a24==1)&&((!(a7==1)&&(!(a25==1)&&(input==1)))&&(a22==1)))))&&(a14==9))&&(a29==9)))&&!(a20==1)))){ + a14 = 8; + a24 = 1; + a11 = 1; + a29 = 6; + a19 = 2; + a0 = 0; + return 23; + } else if(((((((((a11==1)&&(((a25==1)&&(((a29==9)&&(input==3))&&!(a7==1)))&&(a14==9)))&&(a20==1))&&(a28==1))&&(a22==1))&&(a19==1))&&(a24==1))&&(a0==1))){ + a24 = 0; + a11 = 0; + a29 = 6; + a7 = 1; + return 21; + } else if(((((a11==1)&&(!(a20==1)&&((((a19==4)&&(((!(a7==1)&&((input==5)&&(a22==1)))&&(a25==1))&&(a29==6)))&&!(a24==1))&&(a14==9))))&&(a28==1))&&!(a0==1))){ + a19 = 1; + a29 = 5; + a7 = 1; + a24 = 1; + a20 = 1; + return -1; + } else if((((((a11==1)&&(!(a7==1)&&((a28==1)&&(!(a20==1)&&(!(a25==1)&&((a22==1)&&(((input==1)&&((a29==9)||((a29==7)||(a29==8))))&&(a19==2))))))))&&(a0==1))&&!(a24==1))&&(a14==8))){ + a29 = 5; + a20 = 1; + a24 = 1; + a7 = 1; + a19 = 1; + a25 = 1; + return -1; + } else if((((a11==1)&&(((((((!(a0==1)&&((a20==1)&&((a14==9)&&(input==2))))&&(a29==7))&&(a25==1))&&(a19==1))&&(a7==1))&&(a24==1))&&(a28==1)))&&(a22==1))){ + a29 = 9; + a14 = 8; + a25 = 0; + a20 = 0; + return -1; + } else if((((((!(a20==1)&&(!(a24==1)&&(((((input==1)&&(((a19==3)&&(a29==9))||((a19==4)&&(a29==5))))&&(a28==1))&&(a22==1))&&!(a11==1))))&&(a14==8))&&!(a0==1))&&(a25==1))&&(a7==1))){ + a20 = 1; + a19 = 2; + a11 = 1; + a25 = 0; + a29 = 7; + a24 = 1; + return -1; + } else if(((a20==1)&&((((a22==1)&&((a29==5)&&(((((a0==1)&&(!(a25==1)&&((input==4)&&(a19==1))))&&(a24==1))&&(a14==8))&&!(a11==1))))&&(a7==1))&&(a28==1)))){ + a0 = 0; + a29 = 7; + a11 = 1; + return 21; + } else if(((a14==8)&&((((((((((a19==5)&&((input==1)&&((a29==6)||(a29==7))))&&(a22==1))&&!(a25==1))&&!(a24==1))&&!(a7==1))&&(a11==1))&&(a0==1))&&!(a20==1))&&(a28==1)))){ + a24 = 1; + a7 = 1; + a25 = 1; + a29 = 7; + a0 = 0; + a19 = 2; + a11 = 0; + return 21; + } else if((((a0==1)&&(((a11==1)&&(((a25==1)&&(((((a14==10)&&(((a29==5)||(a29==6))&&(input==6)))&&(a28==1))&&(a24==1))&&(a19==1)))&&(a22==1)))&&!(a20==1)))&&!(a7==1))){ + a29 = 9; + a0 = 0; + a19 = 5; + a7 = 1; + a24 = 0; + a14 = 8; + return 24; + } else if((!(a24==1)&&(!(a20==1)&&((a19==2)&&(((a14==8)&&(!(a25==1)&&(((!(a11==1)&&((a29==9)&&((a7==1)&&(input==3))))&&(a22==1))&&(a0==1))))&&(a28==1)))))){ + a11 = 1; + a25 = 1; + a20 = 1; + a19 = 4; + a7 = 0; + a29 = 6; + a24 = 1; + return -1; + } else if((((((a19==3)&&(((a22==1)&&(((!(a0==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==1))&&(a14==8)))&&(a25==1))&&!(a24==1)))&&!(a11==1)))&&(a28==1))&&(a7==1))&&(a20==1))){ + a29 = 5; + a0 = 1; + a19 = 1; + a11 = 1; + a24 = 1; + return -1; + } else if((((!(a7==1)&&(!(a0==1)&&((((((((input==4)&&((a29==7)||(a29==8)))&&(a11==1))&&!(a24==1))&&(a25==1))&&(a19==1))&&(a14==9))&&(a28==1))))&&(a22==1))&&!(a20==1))){ + a14 = 8; + a20 = 1; + a24 = 1; + a7 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if((((!(a7==1)&&((a22==1)&&(((((((((a19==5)&&((a29==8)&&(a25==1)))||(((a25==1)&&(a29==9))&&(a19==5)))||((a19==1)&&((a29==5)&&!(a25==1))))&&(input==4))&&!(a0==1))&&(a28==1))&&(a14==9))&&(a20==1))))&&(a24==1))&&(a11==1))){ + a0 = 1; + a25 = 0; + a24 = 0; + a19 = 5; + a29 = 5; + a20 = 0; + return 24; + } else if((((!(a24==1)&&(((((((a14==9)&&(((a22==1)&&(input==5))&&!(a7==1)))&&!(a11==1))&&!(a25==1))&&(a29==7))&&!(a20==1))&&!(a0==1)))&&(a28==1))&&(a19==2))){ + a24 = 1; + a29 = 5; + a7 = 1; + a25 = 1; + a14 = 8; + a20 = 1; + return -1; + } else if((((a25==1)&&((a24==1)&&((((((a11==1)&&((a14==9)&&((a22==1)&&(((a29==5)||(a29==6))&&(input==4)))))&&(a28==1))&&(a20==1))&&(a7==1))&&(a19==5))))&&!(a0==1))){ + a14 = 8; + a20 = 0; + a19 = 1; + a29 = 8; + return 24; + } else if(((((((!(a25==1)&&((a22==1)&&(((a28==1)&&((a0==1)&&((input==6)&&(((a29==7)||(a29==8))||(a29==9)))))&&(a19==4))))&&!(a11==1))&&(a7==1))&&(a24==1))&&(a20==1))&&(a14==9))){ + a29 = 5; + a25 = 1; + a14 = 8; + a11 = 1; + a19 = 1; + return -1; + } else if(((a22==1)&&((a24==1)&&((((a25==1)&&((((a7==1)&&(((((a29==8)||(a29==9))&&(input==6))&&(a0==1))&&(a19==2)))&&(a14==10))&&(a11==1)))&&(a28==1))&&(a20==1))))){ + a25 = 0; + a29 = 5; + a20 = 0; + a19 = 4; + a0 = 0; + a14 = 8; + a24 = 0; + a11 = 0; + return -1; + } else if(((a14==9)&&((((a28==1)&&((a25==1)&&((a7==1)&&((a20==1)&&(!(a11==1)&&((a22==1)&&((input==5)&&(((a19==3)&&(a29==9))||((a29==5)&&(a19==4))))))))))&&!(a24==1))&&!(a0==1)))){ + a0 = 1; + a11 = 1; + a29 = 7; + a7 = 0; + a25 = 0; + a19 = 2; + return -1; + } else if((!(a7==1)&&(((!(a11==1)&&(((a24==1)&&((!(a20==1)&&(((((a19==5)&&((a29==9)&&(a25==1)))||(((a29==5)&&!(a25==1))&&(a19==1)))||((!(a25==1)&&(a29==6))&&(a19==1)))&&(input==2)))&&(a14==8)))&&(a0==1)))&&(a28==1))&&(a22==1)))){ + a19 = 2; + a25 = 1; + a29 = 7; + a14 = 9; + a11 = 1; + return 23; + } else if((((a22==1)&&((((a14==8)&&(!(a25==1)&&((a19==3)&&((a24==1)&&(!(a20==1)&&(((input==3)&&((a29==5)||(a29==6)))&&!(a0==1)))))))&&!(a11==1))&&!(a7==1)))&&(a28==1))){ + a0 = 1; + a25 = 1; + a19 = 5; + a24 = 0; + a29 = 7; + return 23; + } else if(((a19==2)&&(((!(a0==1)&&((!(a11==1)&&((((!(a24==1)&&(((a29==5)||(a29==6))&&(input==4)))&&(a14==8))&&(a28==1))&&(a7==1)))&&!(a20==1)))&&!(a25==1))&&(a22==1)))){ + a11 = 1; + a7 = 0; + a20 = 1; + a25 = 1; + a29 = 9; + a24 = 1; + a19 = 3; + return 24; + } else if(((a14==9)&&((a0==1)&&(((a22==1)&&(((a11==1)&&(((((a29==9)&&(((a20==1)&&!(a7==1))&&!(a25==1)))&&(a19==5))||((a19==1)&&(((!(a20==1)&&(a7==1))&&(a25==1))&&(a29==5))))&&(input==1)))&&!(a24==1)))&&(a28==1))))){ + a14 = 10; + a25 = 1; + a24 = 1; + a19 = 4; + a29 = 7; + a7 = 0; + a20 = 0; + return 23; + } else if(((((a14==9)&&(((a24==1)&&(((a25==1)&&(((((((a19==3)&&(a29==8))||((a29==9)&&(a19==3)))||((a29==5)&&(a19==4)))&&(input==3))&&(a11==1))&&!(a0==1)))&&!(a7==1)))&&!(a20==1)))&&(a22==1))&&(a28==1))){ + a20 = 1; + a25 = 0; + a29 = 6; + a7 = 1; + a19 = 5; + return -1; + } else if((((a24==1)&&((a22==1)&&((((a19==3)&&((!(a25==1)&&(((((a29==8)||((a29==6)||(a29==7)))&&(input==6))&&(a14==8))&&(a28==1)))&&!(a0==1)))&&!(a7==1))&&(a20==1))))&&(a11==1))){ + a29 = 6; + a24 = 0; + a11 = 0; + a14 = 9; + a0 = 1; + a25 = 1; + return 23; + } else if((!(a7==1)&&((a25==1)&&((a14==10)&&(!(a20==1)&&((a11==1)&&((a19==5)&&((a0==1)&&((((a22==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==5)))&&(a28==1))&&(a24==1)))))))))){ + a29 = 5; + a20 = 1; + a14 = 8; + a7 = 1; + a19 = 1; + return -1; + } else if((((a24==1)&&(!(a7==1)&&(((a14==9)&&((a25==1)&&((a22==1)&&((a29==5)&&(!(a0==1)&&((!(a11==1)&&(input==5))&&(a19==5)))))))&&(a20==1))))&&(a28==1))){ + a14 = 8; + a11 = 1; + return 21; + } else if((((a28==1)&&((!(a7==1)&&(((a11==1)&&(((((((a29==5)&&(a19==4))||(((a19==3)&&(a29==8))||((a19==3)&&(a29==9))))&&(input==5))&&(a14==9))&&!(a24==1))&&!(a25==1)))&&(a0==1)))&&(a22==1)))&&!(a20==1))){ + a25 = 1; + a19 = 1; + a29 = 5; + a7 = 1; + a20 = 1; + a14 = 8; + a24 = 1; + return -1; + } else if(((a29==7)&&(!(a20==1)&&((a19==4)&&(((((a22==1)&&((!(a25==1)&&((a24==1)&&((input==4)&&(a7==1))))&&(a28==1)))&&(a0==1))&&(a11==1))&&(a14==8)))))){ + a29 = 5; + a25 = 1; + a19 = 1; + a20 = 1; + return -1; + } else if((((a28==1)&&((a20==1)&&((a22==1)&&((a11==1)&&((a14==9)&&(((((input==2)&&(((a29==9)&&(a19==2))||((a19==3)&&(a29==5))))&&(a25==1))&&(a24==1))&&!(a0==1)))))))&&(a7==1))){ + a29 = 5; + a20 = 0; + a24 = 0; + a14 = 8; + a19 = 5; + a11 = 0; + a0 = 1; + a25 = 0; + return 21; + } else if((((!(a7==1)&&((((a22==1)&&((((a28==1)&&((a25==1)&&((a14==8)&&(input==1))))&&!(a24==1))&&!(a0==1)))&&!(a11==1))&&(a20==1)))&&(a29==7))&&(a19==2))){ + a20 = 0; + a11 = 1; + a29 = 5; + a19 = 3; + a24 = 1; + return 24; + } else if(((a19==5)&&(((a20==1)&&((a24==1)&&((a28==1)&&(!(a11==1)&&((((a29==6)&&(((a0==1)&&(input==6))&&(a14==8)))&&(a22==1))&&(a7==1))))))&&(a25==1)))){ + a19 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if(((a24==1)&&((a28==1)&&((!(a11==1)&&((a22==1)&&((a25==1)&&(!(a0==1)&&((((input==4)&&(((a29==6)&&(a19==2))||(((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))))&&(a20==1))&&(a14==8))))))&&(a7==1))))){ + a29 = 6; + a14 = 9; + a24 = 0; + a11 = 1; + a19 = 1; + return 21; + } else if((!(a7==1)&&((a14==8)&&((((a0==1)&&((a19==1)&&((!(a25==1)&&((((input==6)&&((a29==7)||(a29==8)))&&(a28==1))&&(a24==1)))&&(a22==1))))&&(a20==1))&&!(a11==1))))){ + a7 = 1; + a29 = 8; + a0 = 0; + a20 = 0; + a24 = 0; + a25 = 1; + a19 = 3; + return 21; + } else if((!(a24==1)&&((((!(a0==1)&&(!(a7==1)&&((a22==1)&&((a14==9)&&((a29==5)&&(((input==4)&&(a20==1))&&(a28==1)))))))&&!(a11==1))&&(a19==3))&&!(a25==1)))){ + a29 = 8; + a11 = 1; + a19 = 1; + return -1; + } else if(((!(a0==1)&&(((a28==1)&&((a14==8)&&(((!(a25==1)&&((a7==1)&&((((a19==4)&&(a29==5))||(((a19==3)&&(a29==8))||((a29==9)&&(a19==3))))&&(input==6))))&&!(a24==1))&&(a20==1))))&&!(a11==1)))&&(a22==1))){ + a0 = 1; + a24 = 1; + a29 = 5; + a11 = 1; + a19 = 1; + a25 = 1; + return -1; + } else if((((((a29==6)&&((a28==1)&&(((a0==1)&&((((!(a7==1)&&(input==3))&&(a22==1))&&(a25==1))&&!(a20==1)))&&(a11==1))))&&(a14==8))&&(a19==5))&&(a24==1))){ + a20 = 1; + a19 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if(((((((a11==1)&&(((!(a25==1)&&(!(a7==1)&&((a24==1)&&((input==5)&&((a29==8)||(a29==9))))))&&(a0==1))&&(a14==8)))&&(a20==1))&&(a22==1))&&(a28==1))&&(a19==2))){ + a29 = 6; + a25 = 1; + a19 = 5; + a20 = 0; + return 21; + } else if((((a22==1)&&(!(a20==1)&&(!(a7==1)&&(((a0==1)&&(!(a11==1)&&(((a14==9)&&(((((a29==8)&&(a19==3))||((a29==9)&&(a19==3)))||((a19==4)&&(a29==5)))&&(input==1)))&&!(a24==1))))&&(a25==1)))))&&(a28==1))){ + a19 = 1; + a29 = 5; + a25 = 0; + a24 = 1; + a7 = 1; + a11 = 1; + a0 = 0; + a14 = 8; + return 24; + } else if(((a11==1)&&(((a20==1)&&((a14==8)&&(!(a0==1)&&(((a22==1)&&(((a24==1)&&((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))&&(input==6)))&&!(a7==1)))&&(a28==1)))))&&(a25==1)))){ + a19 = 2; + a29 = 6; + return -1; + } else if(((a25==1)&&((a19==4)&&((!(a0==1)&&((((((a11==1)&&((a14==9)&&(((a29==6)||(a29==7))&&(input==4))))&&(a24==1))&&(a7==1))&&!(a20==1))&&(a22==1)))&&(a28==1))))){ + a20 = 1; + a19 = 2; + a7 = 0; + a14 = 8; + a11 = 0; + a29 = 8; + return 21; + } else if(((!(a11==1)&&((((((a19==5)&&(((a7==1)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==2))&&(a22==1)))&&(a25==1)))&&(a24==1))&&(a28==1))&&(a14==8))&&!(a0==1)))&&!(a20==1))){ + a11 = 1; + a19 = 4; + a29 = 8; + a20 = 1; + return 24; + } else if(((((a20==1)&&((a7==1)&&((((a25==1)&&(!(a24==1)&&((a14==8)&&((input==3)&&(((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))))))&&(a22==1))&&!(a0==1))))&&(a11==1))&&(a28==1))){ + a20 = 0; + a7 = 0; + a29 = 5; + a19 = 3; + return 24; + } else if(((a14==8)&&((((a0==1)&&((a7==1)&&((((!(a25==1)&&((a28==1)&&((input==4)&&(a29==9))))&&(a24==1))&&(a11==1))&&(a19==5))))&&(a22==1))&&!(a20==1)))){ + a7 = 0; + a19 = 4; + a20 = 1; + a29 = 5; + a11 = 0; + a25 = 1; + return 21; + } else if(((a25==1)&&((a14==8)&&((((a19==3)&&((a7==1)&&((((!(a24==1)&&(!(a0==1)&&(input==6)))&&(a28==1))&&(a11==1))&&!(a20==1))))&&(a22==1))&&(a29==5))))){ + a29 = 9; + a14 = 9; + a20 = 1; + a7 = 0; + a0 = 1; + return 23; + } else if(((a22==1)&&(!(a0==1)&&(((a20==1)&&(((a14==8)&&((a7==1)&&((a28==1)&&((a25==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==5))&&!(a24==1))))))&&(a19==4)))&&(a11==1))))){ + a29 = 9; + a7 = 0; + a24 = 1; + a20 = 0; + return 21; + } else if((!(a25==1)&&((a11==1)&&(!(a0==1)&&(!(a7==1)&&((a19==1)&&(!(a24==1)&&((a22==1)&&((a28==1)&&((((input==5)&&(((a29==7)||(a29==8))||(a29==9)))&&(a14==8))&&(a20==1))))))))))){ + a0 = 1; + a24 = 1; + a29 = 5; + a25 = 1; + a7 = 1; + return -1; + } else if(((a14==9)&&(!(a25==1)&&((((a28==1)&&(!(a24==1)&&(((a7==1)&&(((((a29==7)||(a29==8))&&(input==1))&&!(a0==1))&&(a19==1)))&&(a20==1))))&&!(a11==1))&&(a22==1))))){ + a29 = 8; + a11 = 1; + a19 = 5; + a7 = 0; + a24 = 1; + return -1; + } else if(((a29==7)&&(((!(a20==1)&&(!(a24==1)&&(((a19==4)&&(!(a25==1)&&(((a28==1)&&(!(a0==1)&&(input==3)))&&!(a7==1))))&&(a22==1))))&&!(a11==1))&&(a14==9)))){ + a11 = 1; + a0 = 1; + a25 = 1; + a20 = 1; + a19 = 3; + return 24; + } else if(((a25==1)&&((((a22==1)&&(((!(a11==1)&&((a7==1)&&((((a28==1)&&(input==2))&&(a0==1))&&(a14==8))))&&!(a24==1))&&(a20==1)))&&(a29==6))&&(a19==1)))){ + a0 = 0; + a7 = 0; + a25 = 0; + a11 = 1; + a19 = 3; + a20 = 0; + a24 = 1; + return 23; + } else if((!(a0==1)&&(!(a24==1)&&(((a22==1)&&((a28==1)&&((((a25==1)&&((a19==5)&&(((input==6)&&((a29==6)||(a29==7)))&&(a7==1))))&&!(a20==1))&&(a11==1))))&&(a14==8))))){ + a0 = 1; + a24 = 1; + a29 = 5; + a19 = 1; + a20 = 1; + return -1; + } else if(((a14==8)&&((a28==1)&&((!(a0==1)&&((!(a7==1)&&((!(a20==1)&&((a22==1)&&(((input==6)&&((a29==5)||(a29==6)))&&(a24==1))))&&!(a11==1)))&&(a25==1)))&&(a19==4))))){ + a0 = 1; + a20 = 1; + a19 = 1; + a11 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if((((a25==1)&&((a11==1)&&(((a7==1)&&(!(a24==1)&&((a14==10)&&((a0==1)&&((a22==1)&&((((a29==5)&&(a19==3))||(((a19==2)&&(a29==8))||((a19==2)&&(a29==9))))&&(input==1)))))))&&(a28==1))))&&(a20==1))){ + a11 = 0; + a25 = 0; + a29 = 9; + a19 = 3; + a7 = 0; + a20 = 0; + a14 = 8; + return 23; + } else if((((a19==2)&&((a25==1)&&(!(a0==1)&&((a28==1)&&((!(a11==1)&&((a22==1)&&(!(a20==1)&&((a24==1)&&((input==1)&&((a29==7)||(a29==8)))))))&&(a14==9))))))&&(a7==1))){ + a7 = 0; + a11 = 1; + a29 = 8; + a20 = 1; + a0 = 1; + return -1; + } else if((((((a19==3)&&((a29==7)&&((a24==1)&&(((!(a7==1)&&(((input==3)&&(a0==1))&&(a14==8)))&&(a28==1))&&(a25==1)))))&&!(a20==1))&&(a11==1))&&(a22==1))){ + a11 = 0; + a7 = 1; + a29 = 6; + a19 = 5; + return 24; + } else if((((a14==9)&&(((a28==1)&&(!(a0==1)&&((a19==4)&&(((a24==1)&&(!(a20==1)&&((!(a25==1)&&(input==3))&&(a29==7))))&&(a7==1)))))&&(a22==1)))&&(a11==1))){ + a14 = 8; + a20 = 1; + a0 = 1; + a19 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if(((a14==8)&&(((a19==2)&&((a22==1)&&(!(a20==1)&&(((a11==1)&&(!(a0==1)&&((a7==1)&&((a25==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==4))))))&&(a24==1)))))&&(a28==1)))){ + a20 = 1; + a25 = 0; + a14 = 9; + a0 = 1; + a24 = 0; + a11 = 0; + a7 = 0; + a29 = 8; + return 24; + } else if(((a22==1)&&((((a28==1)&&(((!(a20==1)&&((a14==9)&&(((input==5)&&((((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))||((a19==2)&&(a29==6))))&&(a25==1))))&&!(a24==1))&&!(a7==1)))&&(a11==1))&&!(a0==1)))){ + a7 = 1; + a29 = 9; + a24 = 1; + a19 = 5; + a14 = 8; + a20 = 1; + return 21; + } else if((((a24==1)&&(!(a25==1)&&((a7==1)&&(((a28==1)&&(((((input==3)&&((((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))||((a29==5)&&(a19==3))))&&!(a11==1))&&(a0==1))&&(a14==8)))&&!(a20==1)))))&&(a22==1))){ + a29 = 6; + a20 = 1; + a11 = 1; + a19 = 5; + a14 = 9; + return 24; + } else if((!(a24==1)&&(((a19==4)&&(((a14==8)&&((a7==1)&&((a22==1)&&((a28==1)&&(!(a0==1)&&(!(a25==1)&&(((a29==8)||(a29==9))&&(input==3))))))))&&!(a20==1)))&&!(a11==1)))){ + a0 = 1; + a14 = 9; + a20 = 1; + a25 = 1; + a29 = 5; + a19 = 3; + return 24; + } else if((((a22==1)&&(((a25==1)&&((((a7==1)&&((a19==5)&&((((input==3)&&(a29==9))&&(a20==1))&&(a11==1))))&&(a24==1))&&(a14==9)))&&!(a0==1)))&&(a28==1))){ + a0 = 1; + a14 = 8; + a29 = 5; + a19 = 1; + return -1; + } else if(((a0==1)&&((!(a7==1)&&(!(a25==1)&&(!(a11==1)&&((a28==1)&&((((((input==2)&&((a29==8)||(a29==9)))&&(a22==1))&&(a20==1))&&(a14==8))&&(a19==3))))))&&!(a24==1)))){ + a20 = 0; + a19 = 5; + a29 = 6; + a14 = 9; + a11 = 1; + return 21; + } else if((!(a20==1)&&((((a11==1)&&((((((a24==1)&&((input==3)&&(((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))))&&(a22==1))&&(a14==8))&&(a7==1))&&(a28==1)))&&!(a0==1))&&(a25==1)))){ + a11 = 0; + a7 = 0; + a20 = 1; + a14 = 9; + a0 = 1; + a24 = 0; + a25 = 0; + a29 = 7; + a19 = 5; + return 21; + } else if((((((!(a0==1)&&((((((a28==1)&&((input==6)&&((a29==6)||(a29==7))))&&(a24==1))&&(a7==1))&&(a22==1))&&!(a20==1)))&&!(a25==1))&&(a19==3))&&!(a11==1))&&(a14==8))){ + a24 = 0; + a29 = 9; + a14 = 9; + a11 = 1; + a0 = 1; + return 21; + } else if((!(a7==1)&&(((a14==9)&&((a20==1)&&((a22==1)&&(!(a0==1)&&((a11==1)&&((!(a25==1)&&((input==6)&&((((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))||((a19==2)&&(a29==6)))))&&!(a24==1)))))))&&(a28==1)))){ + a25 = 1; + a29 = 7; + a14 = 8; + a7 = 1; + a19 = 3; + return -1; + } else if(((a19==2)&&((a7==1)&&(((a28==1)&&((!(a24==1)&&(((a11==1)&&((((input==4)&&((a29==6)||(a29==7)))&&(a20==1))&&(a14==10)))&&(a0==1)))&&(a25==1)))&&(a22==1))))){ + a19 = 3; + a14 = 8; + a0 = 0; + a29 = 6; + a24 = 1; + return 21; + } else if(((a22==1)&&(!(a11==1)&&((a0==1)&&((a14==9)&&(((input==5)&&((((a19==5)&&((!(a25==1)&&((!(a20==1)&&!(a7==1))&&(a24==1)))&&(a29==8)))||(((a29==9)&&(!(a25==1)&&((!(a20==1)&&!(a7==1))&&(a24==1))))&&(a19==5)))||((a19==1)&&(((!(a24==1)&&((a20==1)&&(a7==1)))&&(a25==1))&&(a29==5)))))&&(a28==1))))))){ + a14 = 8; + a0 = 0; + a11 = 1; + a19 = 5; + a29 = 5; + a25 = 0; + a7 = 0; + a20 = 1; + a24 = 1; + return 24; + } else if(((a22==1)&&((a25==1)&&((a24==1)&&(!(a11==1)&&(((a20==1)&&((((a28==1)&&((input==3)&&(((a19==2)&&(a29==6))||(((a29==9)&&(a19==1))||((a29==5)&&(a19==2))))))&&!(a0==1))&&(a7==1)))&&(a14==8))))))){ + a0 = 1; + a11 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if((!(a7==1)&&((a24==1)&&(!(a20==1)&&((((!(a11==1)&&(((a0==1)&&((a22==1)&&(!(a25==1)&&(input==3))))&&(a14==9)))&&(a29==9))&&(a28==1))&&(a19==3)))))){ + a29 = 6; + a0 = 0; + a20 = 1; + a14 = 8; + a24 = 0; + return 21; + } else if((((a28==1)&&(!(a0==1)&&((a19==1)&&((a11==1)&&(!(a7==1)&&(!(a20==1)&&((a14==8)&&((a22==1)&&((((a29==5)||(a29==6))&&(input==2))&&(a25==1))))))))))&&!(a24==1))){ + a29 = 9; + a25 = 0; + a20 = 1; + a7 = 1; + a0 = 1; + a14 = 9; + return 24; + } else if((!(a24==1)&&(!(a20==1)&&(((a14==9)&&(((((input==5)&&((((a29==6)&&(!(a7==1)&&(a25==1)))&&(a19==1))||(((((a7==1)&&!(a25==1))&&(a29==9))&&(a19==5))||(((a29==5)&&(!(a7==1)&&(a25==1)))&&(a19==1)))))&&(a28==1))&&!(a11==1))&&!(a0==1)))&&(a22==1))))){ + a7 = 1; + a19 = 4; + a29 = 5; + a25 = 0; + a0 = 1; + a14 = 8; + return 21; + } else if((!(a7==1)&&((a24==1)&&((a22==1)&&((!(a11==1)&&((a14==9)&&((((a19==1)&&((a0==1)&&(((a29==8)||(a29==9))&&(input==1))))&&(a25==1))&&!(a20==1))))&&(a28==1)))))){ + a29 = 7; + a11 = 1; + a19 = 3; + return 24; + } else if(((a19==4)&&((a14==9)&&((a28==1)&&(((a20==1)&&((((a22==1)&&((((input==3)&&(a29==6))&&(a0==1))&&(a7==1)))&&!(a24==1))&&!(a25==1)))&&!(a11==1)))))){ + a11 = 1; + a20 = 0; + a19 = 1; + a29 = 9; + return 24; + } else if(((a20==1)&&(((a24==1)&&(((!(a7==1)&&(((a0==1)&&(!(a11==1)&&((input==2)&&(((a19==4)&&(a29==9))||((a19==5)&&(a29==5))))))&&(a28==1)))&&(a14==8))&&(a22==1)))&&!(a25==1)))){ + a25 = 1; + a19 = 2; + a11 = 1; + a20 = 0; + a29 = 5; + a0 = 0; + return 21; + } else if((((((((a22==1)&&(!(a11==1)&&((a28==1)&&(((a20==1)&&(((a29==6)||(a29==7))&&(input==5)))&&(a14==8)))))&&!(a24==1))&&!(a0==1))&&(a25==1))&&(a19==1))&&!(a7==1))){ + a24 = 1; + a7 = 1; + a11 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if((((a22==1)&&(((a0==1)&&(!(a11==1)&&(!(a7==1)&&(!(a25==1)&&(((((input==3)&&((a29==5)||(a29==6)))&&!(a20==1))&&!(a24==1))&&(a19==3))))))&&(a14==8)))&&(a28==1))){ + a25 = 1; + a19 = 1; + a7 = 1; + a11 = 1; + a20 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if((((a25==1)&&((a7==1)&&((a24==1)&&((a14==9)&&(!(a0==1)&&((a22==1)&&(!(a11==1)&&(((a20==1)&&((input==3)&&(a28==1)))&&(a19==1)))))))))&&(a29==9))){ + a14 = 8; + a29 = 5; + a0 = 1; + a11 = 1; + return -1; + } else if((!(a25==1)&&(((a22==1)&&(((a11==1)&&((a28==1)&&((a0==1)&&((((input==6)&&(((a19==2)&&(a29==5))||(((a29==8)&&(a19==1))||((a19==1)&&(a29==9)))))&&(a7==1))&&(a14==9)))))&&!(a24==1)))&&!(a20==1)))){ + a0 = 0; + a20 = 1; + a29 = 9; + a24 = 1; + a14 = 8; + a19 = 4; + return 21; + } else if(((((a7==1)&&(((a20==1)&&((a14==9)&&((a22==1)&&(!(a11==1)&&((((a25==1)&&(input==1))&&(a24==1))&&(a19==1))))))&&!(a0==1)))&&(a29==6))&&(a28==1))){ + a14 = 8; + a0 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if((!(a24==1)&&((a14==8)&&(((a0==1)&&(!(a11==1)&&((a28==1)&&(!(a25==1)&&(!(a7==1)&&(((((a29==8)||(a29==9))&&(input==3))&&(a19==3))&&(a20==1)))))))&&(a22==1))))){ + a24 = 1; + a25 = 1; + a11 = 1; + a7 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a14==8)&&((a25==1)&&((a11==1)&&((a24==1)&&((!(a7==1)&&((a22==1)&&((a19==5)&&((a28==1)&&((a20==1)&&(!(a0==1)&&(input==2)))))))&&(a29==9))))))){ + a0 = 1; + a19 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if((((((a7==1)&&(((a0==1)&&(((a28==1)&&((a22==1)&&((a20==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==6)))))&&!(a11==1)))&&(a19==1)))&&!(a24==1))&&!(a25==1))&&(a14==9))){ + a25 = 1; + a11 = 1; + a14 = 8; + a24 = 1; + a29 = 5; + return -1; + } else if((((a19==5)&&((a14==8)&&((a29==8)&&(!(a25==1)&&((!(a20==1)&&(!(a7==1)&&(((a0==1)&&((input==1)&&(a11==1)))&&(a22==1))))&&(a24==1))))))&&(a28==1))){ + a19 = 2; + a24 = 0; + a11 = 0; + a20 = 1; + return 24; + } else if(((a7==1)&&((!(a25==1)&&(((a14==8)&&((a19==4)&&((!(a0==1)&&(((((a29==7)||((a29==5)||(a29==6)))&&(input==4))&&!(a20==1))&&(a22==1)))&&(a24==1))))&&(a28==1)))&&!(a11==1)))){ + a24 = 0; + a14 = 9; + a25 = 1; + a29 = 6; + a19 = 1; + a7 = 0; + a11 = 1; + return 23; + } else if(((a14==8)&&((a19==3)&&(!(a0==1)&&(!(a24==1)&&((((a11==1)&&(!(a25==1)&&((a7==1)&&((a28==1)&&((input==5)&&((a29==6)||(a29==7)))))))&&(a22==1))&&!(a20==1))))))){ + a24 = 1; + a19 = 4; + a29 = 5; + a25 = 1; + return -1; + } else if((!(a0==1)&&((!(a7==1)&&(((!(a24==1)&&((!(a25==1)&&(((input==5)&&(((a29==6)&&(a19==3))||(((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))))&&(a28==1)))&&(a22==1)))&&(a14==8))&&!(a20==1)))&&(a11==1)))){ + a24 = 1; + a29 = 5; + a19 = 1; + a0 = 1; + a7 = 1; + a20 = 1; + a25 = 1; + return -1; + } else if(((((a28==1)&&(((!(a24==1)&&((!(a11==1)&&((a14==8)&&((a22==1)&&(((a29==5)||(a29==6))&&(input==1)))))&&(a25==1)))&&!(a0==1))&&(a19==3)))&&(a20==1))&&(a7==1))){ + a11 = 1; + a24 = 1; + a7 = 0; + a29 = 6; + return -1; + } else if((((!(a20==1)&&(!(a7==1)&&(((a14==8)&&(!(a0==1)&&(((a11==1)&&((((a29==8)||(a29==9))&&(input==1))&&(a19==3)))&&(a22==1))))&&(a28==1))))&&(a25==1))&&(a24==1))){ + a11 = 0; + a19 = 2; + a24 = 0; + a0 = 1; + a29 = 7; + return -1; + } else if(((a19==2)&&(((((((!(a7==1)&&(((((a29==6)||(a29==7))&&(input==1))&&(a22==1))&&(a11==1)))&&(a24==1))&&(a0==1))&&(a14==9))&&(a25==1))&&(a28==1))&&!(a20==1)))){ + a14 = 8; + a7 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((((a11==1)&&((a20==1)&&((((a0==1)&&(((a7==1)&&(((a14==9)&&(((a29==5)||(a29==6))&&(input==5)))&&(a19==3)))&&(a24==1)))&&(a28==1))&&!(a25==1))))&&(a22==1))){ + a7 = 0; + a11 = 0; + a24 = 0; + a0 = 0; + a29 = 9; + a19 = 4; + return 21; + } else if((((a20==1)&&((((a19==5)&&(((((!(a7==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==4)))&&(a25==1))&&(a24==1))&&(a11==1))&&(a14==8)))&&(a0==1))&&(a28==1)))&&(a22==1))){ + a19 = 4; + a7 = 1; + a20 = 0; + a29 = 8; + return 21; + } else if((((a0==1)&&(((a11==1)&&((a20==1)&&(!(a25==1)&&((a22==1)&&(!(a7==1)&&((a19==4)&&((a24==1)&&((input==2)&&((a29==5)||(a29==6))))))))))&&(a28==1)))&&(a14==8))){ + a7 = 1; + a29 = 6; + a24 = 0; + a25 = 1; + a19 = 2; + return 24; + } else if(((a14==9)&&((((a28==1)&&((a22==1)&&((((!(a25==1)&&(((input==4)&&((a29==5)||(a29==6)))&&!(a0==1)))&&(a11==1))&&(a19==3))&&!(a20==1))))&&!(a24==1))&&!(a7==1)))){ + a19 = 4; + a14 = 8; + a24 = 1; + a29 = 7; + return 24; + } else if(((a28==1)&&((((((a14==9)&&(((a19==3)&&(((((a29==8)||(a29==9))&&(input==3))&&!(a20==1))&&!(a0==1)))&&(a24==1)))&&!(a7==1))&&!(a25==1))&&(a22==1))&&!(a11==1)))){ + a29 = 6; + a14 = 8; + a25 = 1; + a11 = 1; + a19 = 1; + return 23; + } else if(((!(a24==1)&&((((a14==8)&&(((a0==1)&&((a28==1)&&((((((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))||((a19==2)&&(a29==6)))&&(input==6))&&(a20==1))))&&!(a25==1)))&&(a22==1))&&!(a11==1)))&&!(a7==1))){ + a11 = 1; + a19 = 1; + a25 = 1; + a29 = 5; + a24 = 1; + a7 = 1; + return -1; + } else if(((a20==1)&&((((a14==8)&&((a19==2)&&((a11==1)&&((((a28==1)&&((a7==1)&&(((a29==6)||(a29==7))&&(input==3))))&&(a22==1))&&(a25==1)))))&&!(a24==1))&&(a0==1)))){ + a11 = 0; + a20 = 0; + a29 = 6; + a19 = 1; + a25 = 0; + return 24; + } else if(((!(a7==1)&&(((((a24==1)&&((((a14==8)&&(((input==2)&&((a29==5)||(a29==6)))&&(a11==1)))&&(a28==1))&&!(a20==1)))&&(a22==1))&&(a0==1))&&(a19==1)))&&(a25==1))){ + a19 = 5; + a11 = 0; + a29 = 7; + a20 = 1; + return 24; + } else if((((a28==1)&&((a19==1)&&(((a22==1)&&(!(a11==1)&&(((a14==8)&&((a24==1)&&(((input==2)&&(((a29==7)||(a29==8))||(a29==9)))&&!(a25==1))))&&!(a7==1))))&&(a0==1))))&&!(a20==1))){ + a20 = 1; + a29 = 5; + a25 = 1; + a11 = 1; + a7 = 1; + return -1; + } else if(((a28==1)&&((!(a25==1)&&((a29==8)&&((((a11==1)&&((((a14==9)&&((a20==1)&&(input==2)))&&(a22==1))&&(a19==1)))&&(a24==1))&&(a0==1))))&&!(a7==1)))){ + a14 = 8; + a25 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if((((!(a24==1)&&((a28==1)&&((a11==1)&&((!(a20==1)&&(((a0==1)&&(((((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))||((a29==5)&&(a19==3)))&&(input==5)))&&(a22==1)))&&(a14==9)))))&&!(a7==1))&&(a25==1))){ + a24 = 1; + a29 = 7; + a7 = 1; + a19 = 1; + a25 = 0; + a14 = 8; + a0 = 0; + return 24; + } else if(((a20==1)&&((a28==1)&&(((((a19==1)&&(!(a0==1)&&(!(a11==1)&&((a7==1)&&(((input==6)&&(a14==8))&&(a22==1))))))&&!(a25==1))&&!(a24==1))&&(a29==5))))){ + a24 = 1; + a0 = 1; + a11 = 1; + a25 = 1; + return -1; + } else if(((!(a24==1)&&((a14==8)&&(((a22==1)&&((a19==3)&&((a28==1)&&((((a11==1)&&((input==3)&&((a29==8)||(a29==9))))&&(a7==1))&&(a20==1)))))&&!(a25==1))))&&!(a0==1))){ + a0 = 1; + a24 = 1; + a25 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if((((a19==5)&&(!(a0==1)&&((((a22==1)&&((a7==1)&&((a28==1)&&((((a14==9)&&(input==1))&&!(a20==1))&&(a29==9)))))&&!(a25==1))&&(a24==1))))&&(a11==1))){ + a11 = 0; + a0 = 1; + a7 = 0; + a29 = 6; + a14 = 8; + a19 = 1; + a24 = 0; + return 21; + } else if(((!(a25==1)&&((((a20==1)&&(((a22==1)&&(!(a11==1)&&((!(a0==1)&&((a14==9)&&(input==3)))&&(a7==1))))&&(a28==1)))&&(a19==4))&&(a29==9)))&&(a24==1))){ + a19 = 1; + a11 = 1; + a24 = 0; + a29 = 8; + a0 = 1; + a20 = 0; + a7 = 0; + return 21; + } else if(((a19==3)&&((a22==1)&&((((((a24==1)&&((!(a0==1)&&((a25==1)&&((a20==1)&&(input==1))))&&(a7==1)))&&(a28==1))&&(a11==1))&&(a29==9))&&(a14==9))))){ + a29 = 5; + a25 = 0; + a20 = 0; + a24 = 0; + a19 = 1; + a14 = 8; + return 23; + } else if(((((((((a29==8)&&(((((a28==1)&&(input==2))&&(a0==1))&&!(a7==1))&&(a14==8)))&&!(a11==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a19==4))&&!(a20==1))){ + a11 = 1; + a25 = 0; + a14 = 9; + a19 = 3; + a7 = 1; + return 23; + } else if(((a20==1)&&((((a7==1)&&((a14==8)&&(((a24==1)&&(((a25==1)&&(((input==1)&&(a29==9))&&(a28==1)))&&!(a0==1)))&&(a11==1))))&&(a22==1))&&(a19==3)))){ + a25 = 0; + a29 = 7; + a7 = 0; + a11 = 0; + a0 = 1; + a14 = 9; + a20 = 0; + return 21; + } else if(((a24==1)&&((a25==1)&&((a14==8)&&(((((a28==1)&&(((a22==1)&&(((input==1)&&((a29==6)||(a29==7)))&&(a0==1)))&&!(a11==1)))&&(a19==1))&&!(a7==1))&&!(a20==1)))))){ + a0 = 0; + a11 = 1; + a29 = 8; + return 23; + } else if(((a14==9)&&((a22==1)&&((a20==1)&&((((a7==1)&&(!(a24==1)&&(((!(a11==1)&&((input==6)&&((a29==8)||(a29==9))))&&(a25==1))&&!(a0==1))))&&(a19==5))&&(a28==1)))))){ + a19 = 1; + a24 = 1; + a14 = 8; + a29 = 5; + a11 = 1; + a0 = 1; + return -1; + } else if(((a29==5)&&(((((((!(a24==1)&&((((input==3)&&(a20==1))&&(a22==1))&&(a11==1)))&&(a14==9))&&(a19==2))&&(a28==1))&&(a7==1))&&!(a25==1))&&!(a0==1)))){ + a7 = 0; + a19 = 3; + a0 = 1; + a25 = 1; + a20 = 0; + a14 = 8; + return 24; + } else if(((a0==1)&&((a20==1)&&((a7==1)&&((!(a25==1)&&((!(a11==1)&&((a14==8)&&((a19==2)&&(((input==2)&&((a29==8)||((a29==6)||(a29==7))))&&(a22==1)))))&&(a24==1)))&&(a28==1)))))){ + a19 = 1; + a25 = 1; + a29 = 5; + a11 = 1; + return -1; + } else if((!(a7==1)&&(((a25==1)&&((a20==1)&&((a24==1)&&((a22==1)&&(((a19==1)&&(((a14==8)&&((input==4)&&((a29==8)||(a29==9))))&&(a28==1)))&&(a0==1))))))&&!(a11==1)))){ + a24 = 0; + a20 = 0; + a19 = 2; + a25 = 0; + a29 = 5; + return 21; + } else if(((a22==1)&&(((!(a24==1)&&((((a19==1)&&(((a7==1)&&((a29==6)&&((a0==1)&&(input==6))))&&(a14==9)))&&(a25==1))&&(a28==1)))&&(a11==1))&&!(a20==1)))){ + a29 = 5; + a14 = 8; + a20 = 1; + a24 = 1; + return -1; + } else if(((((a0==1)&&((((a28==1)&&((((a29==9)&&(!(a11==1)&&(!(a24==1)&&(input==4))))&&(a20==1))&&(a22==1)))&&(a25==1))&&(a14==8)))&&(a19==4))&&!(a7==1))){ + a25 = 0; + a14 = 9; + a19 = 3; + a20 = 0; + a11 = 1; + a29 = 8; + a7 = 1; + return 23; + } else if(((a0==1)&&((a11==1)&&(((a25==1)&&(!(a7==1)&&((((a28==1)&&((((input==1)&&(a29==9))&&!(a24==1))&&(a19==3)))&&(a20==1))&&(a22==1))))&&(a14==9))))){ + a20 = 0; + a29 = 8; + a19 = 4; + a14 = 8; + a11 = 0; + return 24; + } else if((((a24==1)&&((a7==1)&&(((((a0==1)&&((a19==1)&&((a20==1)&&(((input==4)&&((a29==9)||((a29==7)||(a29==8))))&&(a14==10)))))&&(a22==1))&&(a11==1))&&(a28==1))))&&(a25==1))){ + a7 = 0; + a29 = 8; + a19 = 2; + a25 = 0; + a14 = 8; + return 21; + } else if(((a19==1)&&(((a29==7)&&((a24==1)&&((((((((input==1)&&(a25==1))&&(a20==1))&&(a28==1))&&(a22==1))&&!(a0==1))&&(a7==1))&&(a11==1))))&&(a14==9)))){ + a14 = 8; + a7 = 0; + a20 = 0; + return 23; + } else if(((a14==9)&&((a0==1)&&(((((((((input==5)&&(((a29==9)&&(a19==1))||((a19==2)&&(a29==5))))&&(a20==1))&&(a24==1))&&!(a11==1))&&(a28==1))&&!(a25==1))&&(a22==1))&&(a7==1))))){ + a24 = 0; + a29 = 8; + a11 = 1; + a19 = 5; + a25 = 1; + a7 = 0; + return -1; + } else if(((a22==1)&&(((!(a11==1)&&((a24==1)&&((a19==4)&&(!(a7==1)&&((a28==1)&&(((a0==1)&&(((a29==7)||(a29==8))&&(input==6)))&&(a14==9)))))))&&!(a20==1))&&!(a25==1)))){ + a29 = 5; + a7 = 1; + a19 = 1; + a25 = 1; + return 21; + } else if(((((!(a0==1)&&((a25==1)&&(!(a20==1)&&(!(a11==1)&&((a14==8)&&((((((a29==8)&&(a19==1))||((a19==1)&&(a29==9)))||((a19==2)&&(a29==5)))&&(input==6))&&(a28==1)))))))&&!(a24==1))&&!(a7==1))&&(a22==1))){ + a25 = 0; + a19 = 3; + a0 = 1; + a29 = 8; + return 23; + } else if((((a19==1)&&((a11==1)&&((a20==1)&&((((a28==1)&&((((a22==1)&&((input==2)&&((a29==8)||(a29==9))))&&(a25==1))&&(a14==8)))&&(a7==1))&&!(a24==1)))))&&(a0==1))){ + a24 = 1; + a29 = 5; + return -1; + } else if(((!(a11==1)&&((a20==1)&&((a19==3)&&(((((!(a7==1)&&(((input==4)&&((a29==5)||(a29==6)))&&(a14==8)))&&(a28==1))&&(a0==1))&&(a22==1))&&(a24==1)))))&&!(a25==1))){ + a29 = 5; + a0 = 0; + a7 = 1; + a11 = 1; + a19 = 4; + a20 = 0; + return 24; + } else if(((a20==1)&&(((a28==1)&&((((!(a0==1)&&((((a14==9)&&(((a29==7)||(a29==8))&&(input==4)))&&!(a24==1))&&(a25==1)))&&(a11==1))&&(a19==4))&&!(a7==1)))&&(a22==1)))){ + a29 = 9; + a11 = 0; + a14 = 8; + a7 = 1; + a20 = 0; + return 24; + } else if(((a14==8)&&((((a28==1)&&((input==6)&&((((a19==5)&&((!(a25==1)&&(!(a24==1)&&(!(a7==1)&&((a11==1)&&!(a20==1)))))&&(a29==8)))||((a19==5)&&(((!(a24==1)&&(((a11==1)&&!(a20==1))&&!(a7==1)))&&!(a25==1))&&(a29==9))))||((((a25==1)&&(((a7==1)&&((a20==1)&&!(a11==1)))&&(a24==1)))&&(a29==5))&&(a19==1)))))&&!(a0==1))&&(a22==1)))){ + a20 = 0; + a14 = 9; + a19 = 4; + a29 = 9; + a25 = 0; + a24 = 1; + a7 = 0; + a11 = 1; + return 21; + } return calculate_output9(input); + } + + int calculate_output9(int input) { + if(((a14==9)&&((a28==1)&&((a20==1)&&(((a19==1)&&(((a22==1)&&((!(a11==1)&&(((input==3)&&(a29==7))&&!(a24==1)))&&!(a0==1)))&&!(a7==1)))&&(a25==1)))))){ + a29 = 6; + a20 = 0; + a14 = 8; + a11 = 1; + a24 = 1; + a25 = 0; + a7 = 1; + return 21; + } else if(((a20==1)&&((a11==1)&&((a14==10)&&((a0==1)&&((a28==1)&&((a24==1)&&((a22==1)&&((a7==1)&&((input==3)&&(((a19==5)&&((a29==9)&&(a25==1)))||((!(a25==1)&&(a29==5))&&(a19==1))))))))))))){ + a25 = 1; + a19 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if(((a22==1)&&((a19==1)&&((((((a28==1)&&(!(a24==1)&&(!(a0==1)&&((a14==8)&&((((a29==7)||(a29==8))||(a29==9))&&(input==2))))))&&!(a25==1))&&!(a20==1))&&(a7==1))&&(a11==1))))){ + a0 = 1; + a29 = 7; + a25 = 1; + a19 = 3; + a11 = 0; + a7 = 0; + return 23; + } else if(((a11==1)&&(((a25==1)&&(((((a24==1)&&(!(a0==1)&&(((!(a20==1)&&(input==2))&&!(a7==1))&&(a22==1))))&&(a14==8))&&(a29==5))&&(a19==3)))&&(a28==1)))){ + a0 = 1; + a7 = 1; + a20 = 1; + a19 = 1; + return -1; + } else if(((a11==1)&&(!(a25==1)&&(((a20==1)&&(((a7==1)&&((!(a24==1)&&((a28==1)&&((input==1)&&((((a29==8)&&(a19==1))||((a29==9)&&(a19==1)))||((a29==5)&&(a19==2))))))&&(a14==8)))&&(a22==1)))&&(a0==1))))){ + a24 = 1; + a29 = 5; + a25 = 1; + a0 = 0; + a19 = 4; + return 23; + } else if((!(a0==1)&&((!(a25==1)&&((((!(a7==1)&&(((a11==1)&&((a28==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==5))))&&(a20==1)))&&!(a24==1))&&(a19==4))&&(a14==9)))&&(a22==1)))){ + a29 = 8; + a19 = 1; + a24 = 1; + a14 = 8; + return 21; + } else if(((a19==5)&&(!(a24==1)&&(((((a14==8)&&((a0==1)&&((a25==1)&&((((input==3)&&(a22==1))&&(a11==1))&&(a7==1)))))&&!(a20==1))&&(a28==1))&&(a29==8))))){ + a24 = 1; + a29 = 7; + a25 = 0; + a20 = 1; + a0 = 0; + return 23; + } else if(((a25==1)&&((((a14==9)&&(((((a11==1)&&(((((a29==6)||(a29==7))&&(input==1))&&(a19==3))&&(a28==1)))&&(a20==1))&&(a22==1))&&!(a0==1)))&&!(a24==1))&&(a7==1)))){ + a0 = 1; + a20 = 0; + a29 = 8; + a11 = 0; + return 23; + } else if(((a29==7)&&(!(a20==1)&&((a14==9)&&((!(a25==1)&&((!(a0==1)&&((a28==1)&&(((a7==1)&&((a11==1)&&(input==2)))&&(a19==1))))&&(a22==1)))&&!(a24==1)))))){ + a20 = 1; + a24 = 1; + a14 = 8; + a25 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if(((((a24==1)&&((!(a11==1)&&(!(a25==1)&&((a14==8)&&(((a22==1)&&((((a29==7)||(a29==8))&&(input==3))&&(a20==1)))&&(a7==1)))))&&(a28==1)))&&(a19==4))&&(a0==1))){ + a7 = 0; + a0 = 0; + a29 = 7; + a19 = 3; + a11 = 1; + return 21; + } else if(((((!(a11==1)&&((a28==1)&&((a0==1)&&((((a19==1)&&(!(a25==1)&&((input==6)&&((a29==6)||(a29==7)))))&&(a22==1))&&(a14==8)))))&&!(a7==1))&&!(a20==1))&&!(a24==1))){ + a25 = 1; + a24 = 1; + a19 = 2; + a14 = 9; + a29 = 9; + return 23; + } else if(((!(a20==1)&&((a24==1)&&((a14==9)&&((a7==1)&&(((((!(a11==1)&&(!(a25==1)&&(input==6)))&&(a0==1))&&(a22==1))&&(a28==1))&&(a29==5))))))&&(a19==2))){ + a24 = 0; + a11 = 1; + a7 = 0; + a29 = 7; + return -1; + } else if(((a25==1)&&((((((((!(a20==1)&&((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))&&(input==1)))&&!(a7==1))&&!(a24==1))&&(a14==9))&&(a22==1))&&!(a0==1))&&(a28==1))&&(a11==1)))){ + a25 = 0; + a29 = 7; + a11 = 0; + a19 = 1; + a14 = 8; + a24 = 1; + a7 = 1; + return 21; + } else if(((a25==1)&&(((((((a22==1)&&((a7==1)&&(!(a24==1)&&((a14==8)&&((input==3)&&((a29==5)||(a29==6)))))))&&!(a11==1))&&(a19==3))&&(a28==1))&&(a20==1))&&!(a0==1)))){ + a29 = 8; + a19 = 2; + return -1; + } else if(((a7==1)&&(((!(a20==1)&&((((a0==1)&&(!(a24==1)&&(!(a11==1)&&(((input==4)&&((a29==7)||(a29==8)))&&(a19==5)))))&&(a28==1))&&(a14==8)))&&(a25==1))&&(a22==1)))){ + a29 = 6; + a19 = 3; + a24 = 1; + a7 = 0; + a11 = 1; + a0 = 0; + a20 = 1; + return 24; + } else if(((((a28==1)&&((!(a11==1)&&((((a0==1)&&((a19==1)&&(((a29==6)&&(input==5))&&(a20==1))))&&!(a24==1))&&(a22==1)))&&(a7==1)))&&(a25==1))&&(a14==8))){ + a29 = 9; + a19 = 3; + a11 = 1; + a14 = 9; + return 23; + } else if((!(a20==1)&&((a28==1)&&(!(a0==1)&&(((((a25==1)&&((((a22==1)&&((input==3)&&(((a29==7)||(a29==8))||(a29==9))))&&(a14==9))&&(a19==4)))&&!(a7==1))&&(a11==1))&&!(a24==1)))))){ + a7 = 1; + a14 = 8; + a20 = 1; + a29 = 6; + a25 = 0; + a24 = 1; + return 21; + } else if(((a22==1)&&(((((a29==6)&&((a0==1)&&(!(a7==1)&&((((a24==1)&&(!(a25==1)&&(input==1)))&&(a19==1))&&(a28==1)))))&&(a20==1))&&(a11==1))&&(a14==10)))){ + a7 = 1; + a29 = 5; + a14 = 8; + a25 = 1; + return -1; + } else if(((!(a7==1)&&(((a0==1)&&((a20==1)&&((a22==1)&&(!(a24==1)&&((a28==1)&&((((((a29==8)&&(a25==1))&&(a19==5))||(((a29==9)&&(a25==1))&&(a19==5)))||((!(a25==1)&&(a29==5))&&(a19==1)))&&(input==2)))))))&&(a11==1)))&&(a14==9))){ + a14 = 8; + a25 = 1; + a29 = 9; + a24 = 1; + a7 = 1; + a19 = 1; + a0 = 0; + a20 = 0; + return 23; + } else if(((!(a24==1)&&(!(a7==1)&&(((a22==1)&&(!(a11==1)&&((a29==8)&&(!(a0==1)&&((((a14==9)&&(input==1))&&(a19==1))&&!(a20==1))))))&&!(a25==1))))&&(a28==1))){ + a7 = 1; + a25 = 1; + a24 = 1; + a20 = 1; + a29 = 5; + a0 = 1; + a14 = 8; + a11 = 1; + return -1; + } else if(((a19==3)&&((a7==1)&&((a11==1)&&(((a14==8)&&(((a22==1)&&(!(a24==1)&&((a25==1)&&(((a28==1)&&(input==5))&&!(a20==1)))))&&(a29==6)))&&(a0==1)))))){ + a19 = 5; + a29 = 7; + a0 = 0; + return 21; + } else if(((a25==1)&&(((((a14==9)&&(((((a20==1)&&(!(a24==1)&&((a28==1)&&(input==5))))&&!(a7==1))&&(a29==9))&&(a0==1)))&&(a11==1))&&(a22==1))&&(a19==3)))){ + a25 = 0; + a7 = 1; + a19 = 5; + a0 = 0; + a14 = 8; + return 21; + } else if((((!(a7==1)&&((a14==8)&&(((a28==1)&&(!(a0==1)&&((a22==1)&&((((((a29==8)&&(a19==2))||((a29==9)&&(a19==2)))||((a19==3)&&(a29==5)))&&(input==2))&&(a20==1)))))&&!(a25==1))))&&!(a24==1))&&(a11==1))){ + a14 = 9; + a24 = 1; + a25 = 1; + a29 = 7; + a19 = 4; + return 24; + } else if(((((a7==1)&&(!(a24==1)&&((((a14==8)&&((a28==1)&&((a22==1)&&(((((a19==4)&&(a29==8))||((a19==4)&&(a29==9)))||((a19==5)&&(a29==5)))&&(input==3)))))&&(a11==1))&&(a25==1))))&&!(a20==1))&&!(a0==1))){ + a7 = 0; + a24 = 1; + a19 = 2; + a29 = 9; + return 21; + } else if((!(a20==1)&&(!(a24==1)&&(((a28==1)&&((!(a7==1)&&((a22==1)&&(!(a0==1)&&((((a19==4)&&(input==2))&&!(a25==1))&&(a29==7)))))&&(a14==9)))&&!(a11==1))))){ + a19 = 2; + a14 = 8; + a7 = 1; + a29 = 5; + a11 = 1; + a25 = 1; + a24 = 1; + return 24; + } else if(((((a28==1)&&((a11==1)&&(((input==3)&&((((a19==5)&&((!(a25==1)&&((a24==1)&&(!(a20==1)&&!(a7==1))))&&(a29==8)))||(((!(a25==1)&&((a24==1)&&(!(a7==1)&&!(a20==1))))&&(a29==9))&&(a19==5)))||((((((a20==1)&&(a7==1))&&!(a24==1))&&(a25==1))&&(a29==5))&&(a19==1))))&&!(a0==1))))&&(a22==1))&&(a14==9))){ + a25 = 0; + a0 = 1; + a24 = 1; + a7 = 0; + a20 = 0; + a29 = 9; + a19 = 4; + return -1; + } else if((((!(a7==1)&&(!(a20==1)&&((a11==1)&&((((a22==1)&&(((((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))&&(input==6))&&(a25==1)))&&!(a24==1))&&(a14==8)))))&&(a28==1))&&(a0==1))){ + a24 = 1; + a20 = 1; + a29 = 6; + a19 = 2; + a0 = 0; + return 24; + } else if(((a20==1)&&((a28==1)&&(((((a22==1)&&((!(a7==1)&&((((input==5)&&(a14==8))&&(a19==2))&&!(a11==1)))&&(a29==8)))&&!(a24==1))&&(a0==1))&&!(a25==1))))){ + a14 = 9; + a11 = 1; + a20 = 0; + a19 = 1; + a29 = 9; + return 24; + } else if(((a14==9)&&((a22==1)&&((((!(a0==1)&&((input==2)&&(((a19==1)&&((a29==5)&&((a25==1)&&((a7==1)&&!(a20==1)))))||(((a19==5)&&((a29==8)&&((!(a7==1)&&(a20==1))&&!(a25==1))))||(((((a20==1)&&!(a7==1))&&!(a25==1))&&(a29==9))&&(a19==5))))))&&!(a24==1))&&!(a11==1))&&(a28==1))))){ + a20 = 0; + a29 = 5; + a25 = 0; + a7 = 0; + a19 = 2; + a0 = 1; + a24 = 1; + return 21; + } else if((!(a20==1)&&((a7==1)&&((((a25==1)&&((!(a11==1)&&(((((a14==9)&&(input==1))&&(a22==1))&&!(a24==1))&&(a0==1)))&&(a19==5)))&&(a29==7))&&(a28==1))))){ + a11 = 1; + a19 = 1; + a14 = 8; + a20 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if((((a0==1)&&((a19==2)&&((a24==1)&&(((((a14==8)&&(((a22==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==5)))&&!(a20==1)))&&!(a11==1))&&!(a7==1))&&(a25==1)))))&&(a28==1))){ + a19 = 5; + a29 = 6; + a11 = 1; + return 24; + } else if((!(a24==1)&&((a22==1)&&((((((a20==1)&&((a28==1)&&(!(a7==1)&&(((input==2)&&(a25==1))&&(a0==1)))))&&(a29==7))&&(a14==9))&&!(a11==1))&&(a19==2))))){ + a14 = 8; + a0 = 0; + a11 = 1; + a24 = 1; + a20 = 0; + a19 = 5; + return 24; + } else if(((a0==1)&&((a22==1)&&(((a7==1)&&(((!(a20==1)&&((a11==1)&&(((((a29==6)||(a29==7))&&(input==6))&&(a19==4))&&(a14==9))))&&(a25==1))&&!(a24==1)))&&(a28==1))))){ + a29 = 7; + a20 = 1; + a11 = 0; + a0 = 0; + a14 = 8; + return 21; + } else if((!(a11==1)&&(!(a24==1)&&((a19==1)&&((a20==1)&&(((a22==1)&&((!(a0==1)&&(((((a29==6)||(a29==7))&&(input==5))&&!(a7==1))&&(a28==1)))&&!(a25==1)))&&(a14==9))))))){ + a7 = 1; + a20 = 0; + a24 = 1; + a11 = 1; + a19 = 3; + a14 = 8; + a29 = 5; + return 23; + } else if((((((a19==4)&&((((((!(a0==1)&&(!(a20==1)&&(input==1)))&&!(a11==1))&&(a24==1))&&(a28==1))&&(a22==1))&&(a14==8)))&&(a29==5))&&!(a25==1))&&!(a7==1))){ + a11 = 1; + a0 = 1; + a20 = 1; + a7 = 1; + a25 = 1; + a19 = 1; + return -1; + } else if(((a22==1)&&(((a11==1)&&((a28==1)&&(!(a24==1)&&((a0==1)&&((((a20==1)&&((a19==4)&&((input==6)&&((a29==7)||(a29==8)))))&&!(a25==1))&&(a14==8))))))&&(a7==1)))){ + a29 = 5; + a24 = 1; + a19 = 1; + a25 = 1; + return -1; + } else if((((a22==1)&&(((!(a11==1)&&((a14==8)&&((a29==6)&&((a28==1)&&(!(a20==1)&&((a19==4)&&((input==4)&&(a24==1))))))))&&!(a7==1))&&!(a25==1)))&&(a0==1))){ + a11 = 1; + a20 = 1; + a7 = 1; + a19 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if(((((a0==1)&&(!(a7==1)&&((a22==1)&&((a14==8)&&(!(a24==1)&&((((input==1)&&(((a29==5)&&(a19==2))||(((a19==1)&&(a29==8))||((a29==9)&&(a19==1)))))&&!(a20==1))&&!(a25==1)))))))&&(a11==1))&&(a28==1))){ + a11 = 0; + a0 = 0; + a25 = 1; + a19 = 4; + a29 = 7; + a24 = 1; + a20 = 1; + return 24; + } else if(((a28==1)&&((a24==1)&&((a19==1)&&((!(a25==1)&&((a22==1)&&((((a0==1)&&(((input==3)&&((a29==7)||((a29==5)||(a29==6))))&&(a14==9)))&&(a7==1))&&!(a20==1))))&&!(a11==1)))))){ + a29 = 6; + a25 = 1; + a24 = 0; + a7 = 0; + a20 = 1; + a14 = 8; + a0 = 0; + a19 = 5; + a11 = 1; + return 24; + } else if((!(a25==1)&&(((a0==1)&&(((a19==4)&&(((a14==8)&&((!(a20==1)&&((a7==1)&&((a24==1)&&(input==3))))&&(a22==1)))&&(a29==8)))&&!(a11==1)))&&(a28==1)))){ + a7 = 0; + a25 = 1; + a11 = 1; + a20 = 1; + a19 = 3; + a14 = 9; + return 23; + } else if(((a0==1)&&((a29==6)&&((((!(a20==1)&&((a22==1)&&((a24==1)&&((((input==5)&&!(a25==1))&&!(a11==1))&&(a28==1)))))&&(a14==9))&&(a19==1))&&!(a7==1))))){ + a19 = 5; + a24 = 0; + a0 = 0; + a29 = 7; + a25 = 1; + a14 = 8; + a11 = 1; + return 21; + } else if(((((!(a0==1)&&((a28==1)&&((((a14==9)&&((a24==1)&&((input==6)&&(((a29==9)&&(a19==1))||((a19==2)&&(a29==5))))))&&(a25==1))&&(a20==1))))&&(a11==1))&&(a22==1))&&!(a7==1))){ + a0 = 1; + a19 = 1; + a11 = 0; + a7 = 1; + a29 = 9; + return -1; + } else if((((a28==1)&&((a20==1)&&((((((a14==9)&&(!(a7==1)&&((!(a0==1)&&(input==4))&&(a29==9))))&&(a22==1))&&!(a11==1))&&(a19==4))&&(a25==1))))&&(a24==1))){ + a7 = 1; + a11 = 1; + a29 = 5; + a19 = 1; + a14 = 8; + a0 = 1; + return -1; + } else if(((a24==1)&&(((((((((((input==5)&&(((a29==6)||(a29==7))||(a29==8)))&&(a28==1))&&(a11==1))&&(a19==4))&&(a7==1))&&(a14==8))&&(a22==1))&&(a20==1))&&!(a0==1))&&(a25==1)))){ + a29 = 5; + a0 = 1; + a19 = 1; + return -1; + } else if(((a22==1)&&(!(a11==1)&&(((((a7==1)&&(((!(a20==1)&&((a19==5)&&(!(a24==1)&&(input==1))))&&(a29==5))&&!(a0==1)))&&(a14==9))&&(a28==1))&&!(a25==1))))){ + a19 = 4; + a24 = 1; + a20 = 1; + a11 = 1; + a14 = 8; + return -1; + } else if((((((a14==8)&&(((!(a0==1)&&(!(a11==1)&&(((a24==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==6)))&&(a20==1))))&&(a28==1))&&(a19==1)))&&(a22==1))&&!(a25==1))&&!(a7==1))){ + a11 = 1; + a7 = 1; + a29 = 5; + a25 = 1; + a0 = 1; + return -1; + } else if(((a25==1)&&(!(a24==1)&&(!(a20==1)&&(!(a0==1)&&((a14==9)&&(((a22==1)&&((((a19==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==2)))&&(a11==1))&&(a28==1)))&&(a7==1)))))))){ + a29 = 5; + a25 = 0; + a19 = 4; + a20 = 1; + return -1; + } else if(((a28==1)&&(((!(a11==1)&&((a0==1)&&((a22==1)&&(((a14==9)&&((((((a19==3)&&(a29==8))||((a29==9)&&(a19==3)))||((a19==4)&&(a29==5)))&&(input==5))&&(a20==1)))&&(a25==1)))))&&(a24==1))&&!(a7==1)))){ + a11 = 1; + a14 = 8; + a29 = 5; + a19 = 1; + a7 = 1; + return -1; + } else if(((a24==1)&&((a28==1)&&(((a14==8)&&(!(a7==1)&&((a11==1)&&((a20==1)&&(((a22==1)&&((a19==5)&&((a29==9)&&(input==3))))&&(a0==1))))))&&(a25==1))))){ + a19 = 1; + a25 = 0; + a7 = 1; + a20 = 0; + a29 = 6; + return 21; + } else if((((a14==8)&&(((a22==1)&&((!(a7==1)&&((a20==1)&&(!(a0==1)&&(((((a19==3)&&(a29==5))||(((a29==8)&&(a19==2))||((a19==2)&&(a29==9))))&&(input==6))&&!(a25==1)))))&&!(a24==1)))&&(a28==1)))&&!(a11==1))){ + a20 = 0; + a24 = 1; + a11 = 1; + a19 = 3; + a7 = 1; + a29 = 9; + return 23; + } else if(((((a7==1)&&(((((a28==1)&&(((((input==1)&&(a29==6))&&(a20==1))&&(a22==1))&&(a11==1)))&&(a24==1))&&(a14==9))&&(a25==1)))&&(a19==3))&&!(a0==1))){ + a29 = 5; + a0 = 1; + a14 = 8; + a19 = 1; + return -1; + } else if(((a28==1)&&((((!(a11==1)&&(!(a24==1)&&((a20==1)&&((((input==1)&&(((a19==4)&&(a29==5))||(((a29==8)&&(a19==3))||((a29==9)&&(a19==3)))))&&(a0==1))&&(a22==1)))))&&!(a7==1))&&(a25==1))&&(a14==8)))){ + a29 = 9; + a11 = 1; + a14 = 9; + a19 = 1; + a7 = 1; + a20 = 0; + a25 = 0; + return 24; + } else if(((!(a20==1)&&((((a19==5)&&(!(a7==1)&&((a28==1)&&((a14==8)&&(!(a11==1)&&((a0==1)&&(((a29==5)||(a29==6))&&(input==2))))))))&&(a25==1))&&!(a24==1)))&&(a22==1))){ + a24 = 1; + a19 = 1; + a29 = 5; + a11 = 1; + a7 = 1; + a20 = 1; + return -1; + } else if(((a0==1)&&((a22==1)&&(((!(a20==1)&&((((!(a24==1)&&(((input==4)&&(((a29==6)||(a29==7))||(a29==8)))&&(a14==8)))&&(a28==1))&&(a19==5))&&!(a25==1)))&&(a7==1))&&(a11==1))))){ + a24 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if((((((a11==1)&&(!(a25==1)&&(((a0==1)&&((((a19==5)&&((((a29==6)||(a29==7))||(a29==8))&&(input==6)))&&(a22==1))&&(a7==1)))&&(a28==1))))&&!(a20==1))&&(a14==8))&&!(a24==1))){ + a24 = 1; + a29 = 5; + a19 = 1; + a25 = 1; + a20 = 1; + return -1; + } else if(((a22==1)&&(((((((((a29==6)&&((((a7==1)&&(a20==1))&&!(a24==1))&&(a25==1)))&&(a19==1))||((((a29==9)&&(!(a25==1)&&((a24==1)&&(!(a7==1)&&!(a20==1)))))&&(a19==5))||((((a25==1)&&(!(a24==1)&&((a20==1)&&(a7==1))))&&(a29==5))&&(a19==1))))&&(input==4))&&(a0==1))&&(a11==1))&&(a28==1))&&(a14==8)))){ + a29 = 5; + a24 = 1; + a19 = 1; + a7 = 1; + a25 = 1; + a20 = 1; + return -1; + } else if(((((a14==9)&&((a25==1)&&((a0==1)&&((((a7==1)&&((a19==1)&&((a28==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==1)))))&&!(a24==1))&&(a22==1)))))&&!(a20==1))&&!(a11==1))){ + a19 = 5; + a0 = 0; + a7 = 0; + a29 = 9; + a14 = 8; + a20 = 1; + return 24; + } else if(((a25==1)&&((a19==4)&&((!(a20==1)&&(((((((a7==1)&&((input==1)&&((a29==7)||((a29==5)||(a29==6)))))&&(a14==8))&&(a11==1))&&!(a0==1))&&!(a24==1))&&(a28==1)))&&(a22==1))))){ + a29 = 5; + a24 = 1; + a19 = 1; + a20 = 1; + a0 = 1; + return -1; + } else if(((((a19==3)&&(!(a24==1)&&((a22==1)&&((a28==1)&&((!(a11==1)&&((a0==1)&&(((a20==1)&&(input==4))&&(a29==5))))&&(a25==1))))))&&(a7==1))&&(a14==9))){ + a11 = 1; + a19 = 1; + a24 = 1; + a14 = 8; + a0 = 0; + return 24; + } else if(((((((a19==5)&&(((((((a25==1)&&(input==4))&&(a29==9))&&(a0==1))&&(a14==8))&&(a11==1))&&!(a20==1)))&&(a22==1))&&(a28==1))&&(a7==1))&&!(a24==1))){ + a0 = 0; + a24 = 1; + return 23; + } else if(((a19==4)&&(!(a25==1)&&((a20==1)&&(((a14==8)&&(!(a11==1)&&(!(a24==1)&&(((((input==6)&&(a28==1))&&(a29==5))&&(a22==1))&&!(a7==1)))))&&(a0==1)))))){ + a11 = 1; + a7 = 1; + a19 = 1; + a24 = 1; + a25 = 1; + return -1; + } else if(((((a22==1)&&((((!(a25==1)&&((a0==1)&&((a28==1)&&((a19==2)&&(((a29==7)||(a29==8))&&(input==2))))))&&(a24==1))&&(a11==1))&&(a7==1)))&&(a20==1))&&(a14==9))){ + a19 = 1; + a25 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if((!(a11==1)&&(!(a24==1)&&((a28==1)&&(!(a25==1)&&((((a19==1)&&(((a22==1)&&((!(a7==1)&&(input==6))&&!(a20==1)))&&(a29==8)))&&(a14==9))&&!(a0==1))))))){ + a11 = 1; + a0 = 1; + a20 = 1; + a25 = 1; + a7 = 1; + a14 = 8; + a29 = 5; + a24 = 1; + return -1; + } else if(((a14==8)&&(((a11==1)&&(((a28==1)&&(((a22==1)&&((((((a29==6)||(a29==7))&&(input==4))&&!(a0==1))&&!(a24==1))&&!(a20==1)))&&(a19==3)))&&(a7==1)))&&!(a25==1)))){ + a29 = 5; + a24 = 1; + a14 = 9; + a19 = 5; + return 24; + } else if(((((!(a25==1)&&(((a19==4)&&(!(a0==1)&&((a28==1)&&((a24==1)&&((a14==9)&&(((a29==7)||(a29==8))&&(input==2)))))))&&(a22==1)))&&(a20==1))&&(a11==1))&&!(a7==1))){ + a25 = 1; + a7 = 1; + a14 = 8; + a29 = 5; + a0 = 1; + a19 = 1; + return -1; + } else if(((a24==1)&&(!(a25==1)&&(((!(a7==1)&&((a19==5)&&(((((a0==1)&&(((a29==6)||(a29==7))&&(input==3)))&&(a20==1))&&(a14==8))&&(a22==1))))&&!(a11==1))&&(a28==1))))){ + a29 = 5; + a19 = 1; + a24 = 0; + a0 = 0; + a20 = 0; + a25 = 1; + return 24; + } else if((!(a20==1)&&((a19==3)&&(((((a0==1)&&((a14==10)&&(((((input==2)&&(((a29==5)||(a29==6))||(a29==7)))&&(a22==1))&&(a11==1))&&(a24==1))))&&!(a7==1))&&(a28==1))&&(a25==1))))){ + a24 = 0; + a7 = 1; + a14 = 8; + a29 = 7; + a11 = 0; + a0 = 0; + a19 = 2; + return 24; + } else if(((!(a20==1)&&((a24==1)&&((a0==1)&&((a28==1)&&((((a22==1)&&(((a14==10)&&((input==2)&&((a29==7)||(a29==8))))&&(a11==1)))&&(a7==1))&&!(a25==1))))))&&(a19==3))){ + a29 = 6; + a14 = 9; + a20 = 1; + return 24; + } else if(((a20==1)&&(((a22==1)&&((((a0==1)&&(!(a25==1)&&((a28==1)&&(((((a29==6)||(a29==7))&&(input==4))&&(a7==1))&&(a24==1)))))&&(a19==1))&&!(a11==1)))&&(a14==8)))){ + a19 = 4; + a20 = 0; + a29 = 5; + a0 = 0; + a7 = 0; + return 24; + } else if(((a25==1)&&((a0==1)&&((a11==1)&&(!(a7==1)&&((((a19==5)&&((a28==1)&&((a22==1)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==4))&&(a24==1)))))&&!(a20==1))&&(a14==10))))))){ + a29 = 7; + a11 = 0; + a14 = 9; + a19 = 1; + a0 = 0; + a24 = 0; + a20 = 1; + a25 = 0; + return -1; + } else if(((a19==2)&&((a25==1)&&(((a22==1)&&(!(a0==1)&&((a7==1)&&(((a28==1)&&((a29==7)&&((a11==1)&&((a20==1)&&(input==6)))))&&(a14==8)))))&&(a24==1))))){ + a19 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if((((a22==1)&&((a7==1)&&(((a24==1)&&((a19==5)&&(!(a0==1)&&((a29==6)&&(!(a20==1)&&(!(a25==1)&&((a14==9)&&(input==5))))))))&&(a28==1))))&&(a11==1))){ + a0 = 1; + a25 = 1; + a29 = 8; + a11 = 0; + a20 = 1; + return -1; + } else if((((a19==3)&&((((((!(a24==1)&&((((input==6)&&(a20==1))&&(a14==9))&&(a22==1)))&&(a29==8))&&(a28==1))&&(a25==1))&&!(a11==1))&&!(a7==1)))&&!(a0==1))){ + a29 = 5; + a0 = 1; + a7 = 1; + a14 = 8; + a24 = 1; + a19 = 1; + a11 = 1; + return -1; + } else if(((a28==1)&&((((!(a0==1)&&((a20==1)&&(((((((a29==8)||((a29==6)||(a29==7)))&&(input==3))&&(a7==1))&&(a19==4))&&(a14==9))&&(a25==1))))&&(a22==1))&&!(a24==1))&&(a11==1)))){ + a0 = 1; + a7 = 0; + a25 = 0; + a11 = 0; + a14 = 8; + a20 = 0; + a29 = 6; + return 23; + } else if((((!(a11==1)&&(((a22==1)&&((a7==1)&&(((a0==1)&&((a25==1)&&((((a29==5)||(a29==6))&&(input==4))&&(a28==1))))&&(a24==1))))&&!(a20==1)))&&(a14==9))&&(a19==1))){ + a11 = 1; + a7 = 0; + a0 = 0; + a29 = 5; + a14 = 8; + return 23; + } else if((!(a24==1)&&((a22==1)&&((a7==1)&&((a0==1)&&(((a20==1)&&((((((a29==9)&&(input==2))&&(a28==1))&&(a14==8))&&(a19==4))&&!(a25==1)))&&!(a11==1))))))){ + a19 = 5; + a29 = 5; + a14 = 9; + a7 = 0; + a11 = 1; + return 21; + } else if(((a19==3)&&((((a29==8)&&(((a28==1)&&(((!(a24==1)&&(!(a0==1)&&((input==6)&&!(a20==1))))&&(a7==1))&&!(a11==1)))&&(a14==8)))&&(a25==1))&&(a22==1)))){ + a19 = 1; + a24 = 1; + a0 = 1; + a29 = 5; + a20 = 1; + a11 = 1; + return -1; + } else if((((a20==1)&&(!(a0==1)&&((a7==1)&&((!(a11==1)&&(!(a24==1)&&((a22==1)&&(((a19==5)&&(((a29==5)||(a29==6))&&(input==1)))&&(a28==1)))))&&(a25==1)))))&&(a14==9))){ + a14 = 8; + a0 = 1; + a11 = 1; + a24 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if((!(a24==1)&&((a11==1)&&(!(a25==1)&&((!(a7==1)&&((a20==1)&&((a0==1)&&((((a14==9)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==3)))&&(a22==1))&&(a19==4)))))&&(a28==1)))))){ + a25 = 1; + a7 = 1; + a14 = 8; + a29 = 5; + a24 = 1; + a19 = 1; + return -1; + } else if((((a25==1)&&(((a19==1)&&((a11==1)&&((a24==1)&&(!(a7==1)&&(((a14==8)&&((((a29==5)||(a29==6))&&(input==4))&&(a0==1)))&&(a28==1))))))&&!(a20==1)))&&(a22==1))){ + a29 = 5; + a20 = 1; + a7 = 1; + return -1; + } else if(((a28==1)&&(!(a24==1)&&(!(a20==1)&&((!(a7==1)&&(((a22==1)&&((a11==1)&&((a14==9)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==4))&&(a0==1)))))&&(a19==2)))&&!(a25==1)))))){ + a20 = 1; + a14 = 8; + a25 = 1; + a24 = 1; + a19 = 4; + a29 = 5; + return 24; + } else if(((a19==2)&&(!(a11==1)&&((a14==9)&&((a25==1)&&(((!(a0==1)&&(!(a20==1)&&((a24==1)&&((a22==1)&&(((a29==5)||(a29==6))&&(input==3))))))&&(a7==1))&&(a28==1))))))){ + a11 = 1; + a29 = 5; + a14 = 8; + return 24; + } else if(((!(a0==1)&&((!(a25==1)&&((a20==1)&&(((a28==1)&&(((a24==1)&&((((a19==4)&&(a29==6))||(((a29==9)&&(a19==3))||((a19==4)&&(a29==5))))&&(input==5)))&&!(a7==1)))&&(a22==1))))&&(a11==1)))&&(a14==8))){ + a25 = 1; + a0 = 1; + a7 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((((a22==1)&&((a28==1)&&(((a0==1)&&((((a19==2)&&(((a11==1)&&(input==3))&&(a20==1)))&&(a14==9))&&(a7==1)))&&(a24==1))))&&!(a25==1))&&(a29==9))){ + a19 = 4; + a14 = 8; + a0 = 0; + a29 = 7; + a20 = 0; + a7 = 0; + return 24; + } else if(((a14==9)&&((a25==1)&&(((((a28==1)&&(((a7==1)&&((((((a29==8)&&(a19==2))||((a19==2)&&(a29==9)))||((a19==3)&&(a29==5)))&&(input==1))&&!(a24==1)))&&!(a0==1)))&&(a22==1))&&!(a11==1))&&!(a20==1))))){ + a25 = 0; + a11 = 1; + a29 = 6; + a19 = 3; + a24 = 1; + a14 = 8; + a7 = 0; + return 23; + } else if(((a14==8)&&((a19==2)&&((((a25==1)&&((a22==1)&&((!(a7==1)&&((!(a20==1)&&((input==2)&&((a29==6)||(a29==7))))&&(a24==1)))&&(a28==1))))&&!(a0==1))&&!(a11==1))))){ + a19 = 3; + a11 = 1; + a0 = 1; + a14 = 9; + a24 = 0; + a20 = 1; + a29 = 9; + return 21; + } else if((((a14==9)&&(!(a24==1)&&((a11==1)&&((a0==1)&&((a20==1)&&((a25==1)&&((a22==1)&&(((((a29==6)||(a29==7))&&(input==2))&&!(a7==1))&&(a19==2)))))))))&&(a28==1))){ + a0 = 0; + a14 = 8; + a24 = 1; + a29 = 8; + a19 = 3; + a11 = 0; + return -1; + } else if((((((((!(a24==1)&&(((a0==1)&&(((input==4)&&!(a20==1))&&(a19==5)))&&(a25==1)))&&(a14==9))&&(a29==6))&&(a28==1))&&!(a7==1))&&(a22==1))&&(a11==1))){ + a7 = 1; + a20 = 1; + a14 = 8; + a24 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((((a28==1)&&(((a22==1)&&(((a11==1)&&((((((a29==5)||(a29==6))&&(input==3))&&(a25==1))&&!(a20==1))&&!(a0==1)))&&(a19==1)))&&!(a24==1)))&&!(a7==1))&&(a14==8))){ + a25 = 0; + a24 = 1; + a14 = 9; + a29 = 8; + a7 = 1; + a0 = 1; + a11 = 0; + a19 = 5; + return 21; + } else if(((((a14==9)&&((a24==1)&&(((!(a0==1)&&((((((a19==5)&&((a25==1)&&(a29==8)))||((a19==5)&&((a29==9)&&(a25==1))))||((a19==1)&&(!(a25==1)&&(a29==5))))&&(input==4))&&(a7==1)))&&(a28==1))&&(a20==1))))&&(a22==1))&&!(a11==1))){ + a19 = 5; + a11 = 1; + a25 = 0; + a29 = 8; + a20 = 0; + a7 = 0; + return -1; + } else if(((a19==5)&&((a11==1)&&((a28==1)&&((((a0==1)&&((a14==10)&&(!(a20==1)&&(!(a25==1)&&((a22==1)&&((input==1)&&((a29==8)||(a29==9))))))))&&(a7==1))&&(a24==1)))))){ + a11 = 0; + a14 = 9; + a7 = 0; + a19 = 4; + a24 = 0; + a29 = 6; + return -1; + } else if((!(a25==1)&&((((((a22==1)&&((!(a0==1)&&(((!(a11==1)&&(input==5))&&(a19==3))&&(a29==7)))&&(a24==1)))&&!(a7==1))&&(a28==1))&&(a20==1))&&(a14==9)))){ + a29 = 5; + a11 = 1; + a19 = 4; + a25 = 1; + a0 = 1; + return 23; + } else if((!(a20==1)&&(!(a7==1)&&(((a14==9)&&((a28==1)&&((a22==1)&&((a0==1)&&(((a24==1)&&(((input==4)&&(((a29==5)||(a29==6))||(a29==7)))&&(a25==1)))&&(a19==3))))))&&!(a11==1))))){ + a0 = 0; + a14 = 8; + a29 = 9; + a24 = 0; + a11 = 1; + a19 = 2; + return -1; + } else if(((a25==1)&&((!(a24==1)&&((a29==6)&&((a19==1)&&((a20==1)&&((!(a7==1)&&(!(a0==1)&&(!(a11==1)&&((a28==1)&&(input==2)))))&&(a22==1))))))&&(a14==9)))){ + a19 = 2; + a14 = 8; + a29 = 8; + return -1; + } else if(((a20==1)&&((a19==1)&&(!(a7==1)&&((a28==1)&&(!(a11==1)&&(((a0==1)&&((a25==1)&&((a14==8)&&(!(a24==1)&&((input==2)&&((a29==5)||(a29==6)))))))&&(a22==1)))))))){ + a29 = 6; + a7 = 1; + a20 = 0; + a19 = 2; + a14 = 9; + a11 = 1; + return 23; + } else if(((((((a28==1)&&((!(a0==1)&&(((a19==2)&&(!(a7==1)&&((input==3)&&(((a29==6)||(a29==7))||(a29==8)))))&&(a24==1)))&&(a22==1)))&&!(a11==1))&&(a20==1))&&!(a25==1))&&(a14==8))){ + a19 = 5; + a11 = 1; + a29 = 7; + a25 = 1; + return 21; + } else if(((((((a22==1)&&((a11==1)&&(!(a7==1)&&((a14==8)&&((((((a29==6)||(a29==7))||(a29==8))&&(input==4))&&(a25==1))&&(a28==1))))))&&(a20==1))&&(a19==1))&&(a24==1))&&!(a0==1))){ + a19 = 3; + a29 = 6; + a24 = 0; + a20 = 0; + a0 = 1; + a11 = 0; + return -1; + } else if((!(a20==1)&&((!(a24==1)&&(!(a25==1)&&((a28==1)&&((((((input==1)&&(((a29==9)&&(a19==3))||((a29==5)&&(a19==4))))&&(a14==9))&&!(a0==1))&&!(a11==1))&&(a7==1)))))&&(a22==1)))){ + a7 = 0; + a20 = 1; + a14 = 8; + a25 = 1; + a19 = 4; + a29 = 7; + a24 = 1; + return -1; + } else if(((a28==1)&&(((a19==4)&&((a14==9)&&(((((a7==1)&&((a24==1)&&((a25==1)&&((input==4)&&((a29==7)||(a29==8))))))&&(a0==1))&&(a11==1))&&(a22==1))))&&(a20==1)))){ + a14 = 8; + a29 = 5; + a19 = 1; + return -1; + } else if(((a25==1)&&((!(a11==1)&&(!(a7==1)&&(!(a20==1)&&(((a24==1)&&((((a28==1)&&((input==4)&&(a22==1)))&&(a29==9))&&(a14==8)))&&(a0==1)))))&&(a19==4)))){ + a25 = 0; + a29 = 7; + a24 = 0; + a19 = 1; + return 23; + } else if(((((a14==9)&&(((a22==1)&&(!(a24==1)&&((((a28==1)&&(((input==5)&&(a7==1))&&!(a20==1)))&&(a29==9))&&!(a0==1))))&&(a25==1)))&&(a19==3))&&!(a11==1))){ + a20 = 1; + a29 = 7; + a14 = 8; + a7 = 0; + a19 = 2; + a25 = 0; + return 23; + } else if((!(a0==1)&&((a24==1)&&(!(a25==1)&&((((a20==1)&&(!(a7==1)&&(((a28==1)&&((input==3)&&(((a29==5)&&(a19==3))||(((a19==2)&&(a29==8))||((a19==2)&&(a29==9))))))&&(a14==8))))&&(a11==1))&&(a22==1)))))){ + a20 = 0; + a19 = 3; + a7 = 1; + a29 = 6; + return 21; + } else if(((a22==1)&&((a28==1)&&((a11==1)&&(((a19==3)&&(!(a7==1)&&(!(a25==1)&&(((a20==1)&&(((input==1)&&(a14==8))&&(a0==1)))&&!(a24==1)))))&&(a29==7)))))){ + a25 = 1; + a0 = 0; + a19 = 1; + return 24; + } else if((((a14==9)&&((a28==1)&&((((a22==1)&&(!(a24==1)&&(!(a20==1)&&((a19==5)&&(((input==6)&&(((a29==5)||(a29==6))||(a29==7)))&&(a0==1))))))&&(a25==1))&&!(a7==1))))&&!(a11==1))){ + a11 = 1; + a29 = 8; + a20 = 1; + a7 = 1; + a14 = 8; + a0 = 0; + a24 = 1; + return 24; + } else if(((!(a20==1)&&(!(a24==1)&&((a19==4)&&(((((a28==1)&&((((input==3)&&(a11==1))&&(a7==1))&&(a22==1)))&&(a14==9))&&(a29==5))&&!(a25==1)))))&&!(a0==1))){ + a0 = 1; + a11 = 0; + a19 = 5; + a29 = 9; + return 21; + } else if(((a28==1)&&(((!(a25==1)&&((a20==1)&&((!(a7==1)&&((a0==1)&&((a11==1)&&((input==6)&&(((a29==5)&&(a19==4))||(((a19==3)&&(a29==8))||((a19==3)&&(a29==9))))))))&&(a22==1))))&&(a14==8))&&!(a24==1)))){ + a29 = 9; + a25 = 1; + a0 = 0; + a19 = 2; + return 23; + } else if(((((a25==1)&&(((a14==8)&&((((a19==4)&&((a24==1)&&(((input==5)&&(((a29==6)||(a29==7))||(a29==8)))&&(a11==1))))&&(a22==1))&&(a7==1)))&&(a28==1)))&&!(a20==1))&&!(a0==1))){ + a20 = 1; + a29 = 5; + a0 = 1; + a19 = 1; + return -1; + } else if(((((((a22==1)&&(((((((input==2)&&(((a29==7)||(a29==8))||(a29==9)))&&(a14==8))&&!(a20==1))&&!(a25==1))&&!(a0==1))&&(a24==1)))&&!(a11==1))&&!(a7==1))&&(a19==3))&&(a28==1))){ + a14 = 9; + a29 = 5; + a11 = 1; + a0 = 1; + a19 = 5; + return 23; + } else if((((!(a24==1)&&(((a7==1)&&((a22==1)&&((((a0==1)&&(((input==2)&&(((a29==7)||(a29==8))||(a29==9)))&&!(a20==1)))&&(a25==1))&&(a19==2))))&&(a28==1)))&&(a14==8))&&!(a11==1))){ + a24 = 1; + a29 = 5; + a20 = 1; + a11 = 1; + a19 = 1; + return -1; + } else if((((((!(a0==1)&&((((a28==1)&&((((a22==1)&&(input==3))&&(a25==1))&&(a24==1)))&&(a20==1))&&(a29==5)))&&!(a7==1))&&(a19==5))&&(a11==1))&&(a14==8))){ + a20 = 0; + a0 = 1; + a19 = 1; + a24 = 0; + a29 = 9; + a11 = 0; + return -1; + } else if((!(a0==1)&&((((a28==1)&&((((a25==1)&&(((a22==1)&&((a19==2)&&(((a29==5)||(a29==6))&&(input==2))))&&!(a7==1)))&&!(a24==1))&&(a14==8)))&&(a11==1))&&(a20==1)))){ + a25 = 0; + a29 = 9; + a11 = 0; + a19 = 1; + return 23; + } else if(((!(a24==1)&&(((a25==1)&&(((a28==1)&&(((((a14==8)&&((input==6)&&((a29==5)||(a29==6))))&&!(a7==1))&&!(a20==1))&&(a22==1)))&&!(a11==1)))&&(a0==1)))&&(a19==5))){ + a25 = 0; + a29 = 6; + a7 = 1; + return -1; + } else if(((a25==1)&&(((((a22==1)&&((((a28==1)&&(((a19==3)&&((a0==1)&&(input==3)))&&(a14==10)))&&(a20==1))&&(a7==1)))&&(a29==8))&&(a11==1))&&(a24==1)))){ + a14 = 8; + a29 = 9; + a11 = 0; + a19 = 5; + a25 = 0; + a0 = 0; + a24 = 0; + return -1; + } else if(((a28==1)&&((a22==1)&&((!(a11==1)&&((((a29==9)&&(!(a20==1)&&(((a24==1)&&((input==2)&&(a0==1)))&&(a14==8))))&&!(a7==1))&&(a25==1)))&&(a19==3))))){ + a29 = 5; + a19 = 1; + a7 = 1; + a11 = 1; + a20 = 1; + return -1; + } else if(((a28==1)&&((a19==1)&&((a0==1)&&((a22==1)&&((!(a11==1)&&(((((a7==1)&&((input==5)&&((a29==7)||((a29==5)||(a29==6)))))&&!(a20==1))&&!(a25==1))&&(a14==9)))&&(a24==1))))))){ + a7 = 0; + a25 = 1; + a0 = 0; + a20 = 1; + a19 = 4; + a14 = 8; + a29 = 6; + return 24; + } else if((((a29==7)&&((!(a11==1)&&((a22==1)&&((a20==1)&&((((((a14==9)&&(input==6))&&(a7==1))&&(a25==1))&&(a28==1))&&(a19==1)))))&&!(a0==1)))&&(a24==1))){ + a20 = 0; + a25 = 0; + a29 = 9; + a19 = 5; + a11 = 1; + a0 = 1; + return 21; + } else if(((a22==1)&&((!(a25==1)&&((a0==1)&&((a28==1)&&((a11==1)&&(((((input==2)&&(((a19==1)&&(a29==9))||((a29==5)&&(a19==2))))&&(a7==1))&&(a20==1))&&!(a24==1))))))&&(a14==10)))){ + a14 = 8; + a29 = 6; + a19 = 5; + a0 = 0; + a24 = 1; + return 24; + } else if((((!(a11==1)&&((a0==1)&&((a20==1)&&(!(a25==1)&&(((((a28==1)&&((input==2)&&((a29==8)||((a29==6)||(a29==7)))))&&!(a7==1))&&(a22==1))&&(a14==9))))))&&!(a24==1))&&(a19==4))){ + a19 = 1; + a24 = 1; + a7 = 1; + a14 = 8; + a29 = 5; + a25 = 1; + a11 = 1; + return -1; + } else if(((a11==1)&&(!(a24==1)&&(!(a7==1)&&(((((a28==1)&&((((a14==8)&&((input==5)&&(((a29==5)||(a29==6))||(a29==7))))&&(a0==1))&&(a22==1)))&&(a19==5))&&(a20==1))&&(a25==1)))))){ + a19 = 2; + a24 = 1; + a29 = 5; + a0 = 0; + a7 = 1; + return 21; + } else if((((!(a25==1)&&(((a14==8)&&((a20==1)&&(!(a0==1)&&((a7==1)&&(((a24==1)&&((input==3)&&((a29==9)||((a29==7)||(a29==8)))))&&(a19==4))))))&&!(a11==1)))&&(a28==1))&&(a22==1))){ + a29 = 8; + a11 = 1; + a24 = 0; + a19 = 5; + a20 = 0; + return 24; + } else if((((!(a11==1)&&((!(a25==1)&&((!(a0==1)&&((a14==8)&&(!(a7==1)&&((a24==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==5))))))&&(a28==1)))&&!(a20==1)))&&(a22==1))&&(a19==3))){ + a29 = 8; + a19 = 1; + a11 = 1; + a24 = 0; + return -1; + } else if(((((((a22==1)&&((a0==1)&&(((((a7==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==4)))&&(a28==1))&&!(a11==1))&&!(a25==1))))&&!(a24==1))&&(a19==4))&&(a20==1))&&(a14==9))){ + a7 = 0; + a14 = 8; + a24 = 1; + a11 = 1; + a20 = 0; + a19 = 2; + a0 = 0; + a29 = 6; + return 21; + } else if((((a20==1)&&((((a19==2)&&((a11==1)&&((!(a7==1)&&((!(a0==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==2)))&&!(a25==1)))&&(a24==1))))&&(a28==1))&&(a22==1)))&&(a14==9))){ + a29 = 7; + a14 = 8; + return 23; + } else if(((!(a0==1)&&(((a28==1)&&(!(a20==1)&&((a22==1)&&(!(a7==1)&&(((a14==9)&&(!(a11==1)&&(((a29==7)||(a29==8))&&(input==2))))&&(a25==1))))))&&!(a24==1)))&&(a19==1))){ + a19 = 5; + a20 = 1; + a11 = 1; + a7 = 1; + a24 = 1; + a29 = 6; + return -1; + } else if(((a19==4)&&((a11==1)&&((!(a20==1)&&(((a22==1)&&((a14==8)&&((a24==1)&&(((a0==1)&&((input==5)&&((a29==8)||(a29==9))))&&!(a25==1)))))&&(a28==1)))&&(a7==1))))){ + a19 = 1; + a11 = 0; + a20 = 1; + a29 = 7; + return 24; + } else if((((a28==1)&&((((!(a11==1)&&((a19==2)&&(!(a20==1)&&((a25==1)&&(((input==5)&&((a29==8)||(a29==9)))&&(a14==8))))))&&!(a7==1))&&!(a24==1))&&(a22==1)))&&(a0==1))){ + a7 = 1; + a29 = 5; + a25 = 0; + a19 = 4; + return 23; + } else if(((a14==9)&&(!(a11==1)&&(!(a24==1)&&((((a28==1)&&(((((((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))&&(input==1))&&(a20==1))&&(a22==1))&&!(a0==1)))&&!(a25==1))&&!(a7==1)))))){ + a29 = 5; + a19 = 1; + a11 = 1; + a14 = 8; + a24 = 1; + a7 = 1; + a0 = 1; + a25 = 1; + return -1; + } else if(((a19==2)&&(((((a25==1)&&((((a28==1)&&(!(a7==1)&&(((input==2)&&((a29==6)||(a29==7)))&&(a14==9))))&&!(a20==1))&&(a11==1)))&&(a22==1))&&(a0==1))&&(a24==1)))){ + a14 = 8; + a20 = 1; + a19 = 5; + a0 = 0; + a29 = 7; + a24 = 0; + a25 = 0; + return 21; + } else if(((a25==1)&&(((a7==1)&&((a22==1)&&(!(a24==1)&&((a19==5)&&((a20==1)&&(!(a11==1)&&((a0==1)&&(((input==3)&&((a29==7)||(a29==8)))&&(a28==1)))))))))&&(a14==8)))){ + a0 = 0; + a24 = 1; + a11 = 1; + a29 = 8; + return 23; + } else if((((!(a7==1)&&((a25==1)&&(!(a0==1)&&(((a28==1)&&(!(a24==1)&&((((input==6)&&((a29==6)||(a29==7)))&&(a19==2))&&(a14==8))))&&(a22==1)))))&&!(a20==1))&&!(a11==1))){ + a20 = 1; + a24 = 1; + a19 = 5; + a29 = 5; + a11 = 1; + return 24; + } else if(((a0==1)&&(!(a25==1)&&(!(a7==1)&&((a11==1)&&((a20==1)&&(((a28==1)&&((a22==1)&&((((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))||((a19==4)&&(a29==6)))&&(input==6))&&!(a24==1))))&&(a14==9)))))))){ + a0 = 0; + a14 = 8; + a19 = 2; + a29 = 7; + a25 = 1; + a20 = 0; + a24 = 1; + return 21; + } else if(((a28==1)&&((a19==4)&&((a22==1)&&(((a0==1)&&(!(a7==1)&&((a20==1)&&(((((input==1)&&!(a24==1))&&(a11==1))&&(a25==1))&&(a29==6)))))&&(a14==8)))))){ + a25 = 0; + a24 = 1; + a20 = 0; + a19 = 5; + a0 = 0; + a29 = 5; + return 23; + } else if(((a29==9)&&((a20==1)&&((!(a7==1)&&(((a0==1)&&((a24==1)&&(((a25==1)&&((a22==1)&&((input==4)&&(a14==8))))&&(a11==1))))&&(a28==1)))&&(a19==5))))){ + a29 = 5; + a25 = 0; + a19 = 2; + a20 = 0; + a7 = 1; + return 21; + } else if(((((a19==5)&&((!(a25==1)&&(((((((((a29==5)||(a29==6))||(a29==7))&&(input==3))&&(a24==1))&&(a7==1))&&(a20==1))&&(a22==1))&&(a14==9)))&&(a0==1)))&&!(a11==1))&&(a28==1))){ + a25 = 1; + a29 = 5; + a19 = 1; + a11 = 1; + a14 = 8; + return -1; + } else if((((!(a20==1)&&(((a28==1)&&(((((((a7==1)&&(input==2))&&(a25==1))&&!(a24==1))&&(a29==5))&&!(a0==1))&&(a22==1)))&&(a14==8)))&&(a19==3))&&(a11==1))){ + a29 = 6; + a14 = 9; + a0 = 1; + return 24; + } else if(((((a14==8)&&(!(a0==1)&&((a25==1)&&((a28==1)&&((((((input==6)&&((a29==8)||((a29==6)||(a29==7))))&&(a7==1))&&(a19==4))&&(a22==1))&&(a24==1))))))&&(a11==1))&&!(a20==1))){ + a0 = 1; + a29 = 5; + a20 = 1; + a19 = 1; + return -1; + } else if(((((a22==1)&&(((a19==5)&&((((!(a25==1)&&(((a14==8)&&(input==3))&&!(a0==1)))&&(a7==1))&&!(a11==1))&&!(a20==1)))&&!(a24==1)))&&(a29==9))&&(a28==1))){ + a29 = 5; + a24 = 1; + a19 = 3; + a14 = 9; + a7 = 0; + return 21; + } else if(((a24==1)&&(!(a7==1)&&((a22==1)&&((!(a11==1)&&(((!(a0==1)&&((input==1)&&(((((a25==1)&&(a29==8))&&(a19==5))||(((a29==9)&&(a25==1))&&(a19==5)))||(((a29==5)&&!(a25==1))&&(a19==1)))))&&(a20==1))&&(a14==9)))&&(a28==1)))))){ + a29 = 5; + a19 = 1; + a11 = 1; + a25 = 1; + a0 = 1; + a7 = 1; + a14 = 8; + return -1; + } else if((((a25==1)&&(((((a22==1)&&((a19==2)&&((a28==1)&&(((a14==8)&&((((a29==7)||(a29==8))||(a29==9))&&(input==1)))&&!(a11==1)))))&&(a20==1))&&!(a24==1))&&(a7==1)))&&!(a0==1))){ + a19 = 5; + a7 = 0; + a20 = 0; + a24 = 1; + a11 = 1; + a29 = 8; + a25 = 0; + return -1; + } else if((!(a7==1)&&((a25==1)&&((a28==1)&&(((a19==1)&&(!(a20==1)&&((a22==1)&&((a0==1)&&(!(a24==1)&&((a14==9)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==1))))))))&&!(a11==1)))))){ + a20 = 1; + a7 = 1; + a14 = 8; + a24 = 1; + a29 = 5; + a11 = 1; + return -1; + } else if((((((((a24==1)&&((a19==1)&&((a28==1)&&(((a22==1)&&((input==4)&&((a29==8)||(a29==9))))&&!(a7==1)))))&&(a25==1))&&(a14==8))&&(a0==1))&&!(a20==1))&&!(a11==1))){ + a20 = 1; + a14 = 9; + a19 = 4; + a25 = 0; + a29 = 9; + a11 = 1; + return 21; + } else if((((a0==1)&&(!(a11==1)&&((a22==1)&&((!(a24==1)&&(((a28==1)&&((((input==5)&&(((a29==5)||(a29==6))||(a29==7)))&&(a19==4))&&!(a20==1)))&&!(a25==1)))&&(a14==8)))))&&!(a7==1))){ + a25 = 1; + a24 = 1; + a20 = 1; + a11 = 1; + a29 = 6; + return 23; + } else if((((a20==1)&&(((!(a7==1)&&(!(a24==1)&&(((a19==2)&&(((((a29==6)||(a29==7))&&(input==1))&&(a11==1))&&(a28==1)))&&(a25==1))))&&(a22==1))&&(a14==9)))&&(a0==1))){ + a14 = 8; + a7 = 1; + a29 = 5; + a19 = 1; + a24 = 1; + return -1; + } else if(((a11==1)&&(((a14==8)&&((a20==1)&&(((a19==5)&&((a22==1)&&((((a24==1)&&((input==3)&&!(a7==1)))&&(a25==1))&&(a29==9))))&&(a28==1))))&&!(a0==1)))){ + a29 = 6; + a7 = 1; + a19 = 2; + return -1; + } else if((((((a0==1)&&(((a28==1)&&((((a25==1)&&(((input==1)&&((a29==7)||((a29==5)||(a29==6))))&&!(a7==1)))&&(a24==1))&&(a14==8)))&&!(a20==1)))&&(a19==4))&&(a22==1))&&!(a11==1))){ + a11 = 1; + a29 = 6; + a0 = 0; + a19 = 2; + return 21; + } else if(((a14==9)&&(((a19==5)&&(((a29==5)&&((((a28==1)&&(((a0==1)&&((input==3)&&!(a24==1)))&&(a11==1)))&&!(a7==1))&&(a22==1)))&&(a20==1)))&&!(a25==1)))){ + a24 = 1; + a25 = 1; + a19 = 1; + a14 = 8; + a7 = 1; + return -1; + } else if(((a7==1)&&((a11==1)&&((a0==1)&&((a20==1)&&((a28==1)&&((((a24==1)&&((input==2)&&((((a29==9)&&(a25==1))&&(a19==5))||((a19==1)&&(!(a25==1)&&(a29==5))))))&&(a22==1))&&(a14==10)))))))){ + a19 = 2; + a25 = 1; + a20 = 0; + a14 = 8; + a11 = 0; + a29 = 8; + a24 = 0; + a0 = 0; + return 24; + } else if(((((((a11==1)&&((!(a7==1)&&((a25==1)&&((a19==2)&&((a0==1)&&(((a29==5)||(a29==6))&&(input==4))))))&&(a22==1)))&&(a24==1))&&!(a20==1))&&(a14==10))&&(a28==1))){ + a29 = 5; + a14 = 8; + a20 = 1; + a7 = 1; + a19 = 1; + return -1; + } else if(((a11==1)&&(!(a0==1)&&(((a19==1)&&(((a14==8)&&((a22==1)&&(((!(a24==1)&&(((a29==8)||(a29==9))&&(input==5)))&&!(a25==1))&&!(a20==1))))&&(a28==1)))&&!(a7==1))))){ + a29 = 5; + a24 = 1; + a7 = 1; + a20 = 1; + a25 = 1; + a0 = 1; + return -1; + } else if(((a28==1)&&((a20==1)&&((a29==8)&&((((a0==1)&&(((a14==8)&&(!(a25==1)&&(((a22==1)&&(input==1))&&(a11==1))))&&(a24==1)))&&(a19==1))&&!(a7==1)))))){ + a29 = 9; + a7 = 1; + a20 = 0; + a19 = 5; + return 24; + } else if((((a19==3)&&(((a24==1)&&(((a14==9)&&(((((a7==1)&&((a29==7)&&(input==2)))&&!(a0==1))&&(a11==1))&&(a22==1)))&&(a25==1)))&&(a28==1)))&&(a20==1))){ + a19 = 4; + a25 = 0; + a29 = 8; + a0 = 1; + return -1; + } else if(((a11==1)&&(((((a28==1)&&(((a22==1)&&((a20==1)&&((input==6)&&((((a19==5)&&((a25==1)&&(a29==8)))||(((a25==1)&&(a29==9))&&(a19==5)))||((a19==1)&&(!(a25==1)&&(a29==5)))))))&&(a24==1)))&&!(a7==1))&&!(a0==1))&&(a14==9)))){ + a29 = 8; + a0 = 1; + a14 = 8; + a19 = 3; + a24 = 0; + a11 = 0; + a25 = 0; + a20 = 0; + return 21; + } else if(((a7==1)&&(((a0==1)&&((a14==9)&&(((a19==3)&&((a25==1)&&((a20==1)&&(!(a11==1)&&((a24==1)&&((input==4)&&(((a29==6)||(a29==7))||(a29==8))))))))&&(a22==1))))&&(a28==1)))){ + a11 = 1; + a7 = 0; + a24 = 0; + a19 = 2; + a29 = 5; + return 21; + } else if((((!(a20==1)&&((a0==1)&&((a14==8)&&(((((((input==5)&&!(a7==1))&&(a22==1))&&(a28==1))&&(a19==3))&&(a24==1))&&(a29==7)))))&&(a25==1))&&(a11==1))){ + a29 = 6; + a19 = 4; + a11 = 0; + a7 = 1; + return 24; + } else if(((a19==2)&&(((!(a7==1)&&((a20==1)&&((a28==1)&&(((a24==1)&&(((a11==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==1)))&&(a0==1)))&&!(a25==1)))))&&(a14==8))&&(a22==1)))){ + a19 = 4; + a29 = 6; + a20 = 0; + a25 = 1; + return 23; + } else if(((a25==1)&&(((a14==8)&&(((((a24==1)&&(((a19==3)&&(((input==3)&&((a29==7)||((a29==5)||(a29==6))))&&(a7==1)))&&(a22==1)))&&(a0==1))&&(a28==1))&&!(a20==1)))&&!(a11==1)))){ + a29 = 9; + a24 = 0; + a25 = 0; + a7 = 0; + a0 = 0; + a19 = 1; + return 21; + } else if(((a22==1)&&(!(a25==1)&&((((a14==8)&&(((a28==1)&&((a19==4)&&((a0==1)&&(!(a24==1)&&((input==5)&&((a29==7)||(a29==8)))))))&&(a11==1)))&&(a7==1))&&(a20==1))))){ + a7 = 0; + a0 = 0; + a29 = 9; + a24 = 1; + a25 = 1; + return 21; + } else if(((a14==8)&&(((a24==1)&&((!(a20==1)&&((a7==1)&&((a22==1)&&((((input==5)&&(((a19==4)&&(a29==9))||((a19==5)&&(a29==5))))&&(a11==1))&&(a28==1)))))&&(a25==1)))&&!(a0==1)))){ + a0 = 1; + a29 = 6; + a19 = 1; + return 24; + } else if((!(a25==1)&&((a24==1)&&((a0==1)&&(((a11==1)&&((!(a7==1)&&((((input==5)&&(((a19==1)&&(a29==9))||((a19==2)&&(a29==5))))&&!(a20==1))&&(a22==1)))&&(a14==8)))&&(a28==1)))))){ + a11 = 0; + a25 = 1; + a20 = 1; + a29 = 8; + a7 = 1; + a24 = 0; + a19 = 1; + return 21; + } else if((((!(a7==1)&&(((((a19==5)&&((a25==1)&&((!(a24==1)&&((input==1)&&(a28==1)))&&(a14==8))))&&(a20==1))&&!(a0==1))&&(a29==6)))&&(a11==1))&&(a22==1))){ + a7 = 1; + a0 = 1; + a29 = 5; + a19 = 1; + a24 = 1; + return -1; + } else if((!(a11==1)&&(((!(a20==1)&&((a7==1)&&((a22==1)&&(!(a25==1)&&((a28==1)&&((a19==3)&&(((a14==9)&&(input==1))&&(a0==1))))))))&&!(a24==1))&&(a29==7)))){ + a11 = 1; + a14 = 8; + a20 = 1; + a24 = 1; + a29 = 5; + a25 = 1; + a19 = 1; + return -1; + } else if(((a20==1)&&((a22==1)&&(!(a24==1)&&((a11==1)&&((a19==1)&&(((((((input==2)&&(a7==1))&&(a28==1))&&(a25==1))&&(a0==1))&&(a14==8))&&(a29==7)))))))){ + a29 = 5; + a24 = 1; + return -1; + } else if((((a22==1)&&(!(a0==1)&&(!(a25==1)&&(!(a24==1)&&((a28==1)&&((((a29==7)&&((a7==1)&&(!(a20==1)&&(input==5))))&&(a14==9))&&(a19==1)))))))&&(a11==1))){ + a25 = 1; + a19 = 3; + a11 = 0; + a24 = 1; + a14 = 8; + return 23; + } else if(((((a14==8)&&((a22==1)&&(!(a11==1)&&((((((a19==5)&&((!(a25==1)&&(!(a7==1)&&(a20==1)))&&(a29==8)))||(((a29==9)&&(!(a25==1)&&((a20==1)&&!(a7==1))))&&(a19==5)))||((((a25==1)&&(!(a20==1)&&(a7==1)))&&(a29==5))&&(a19==1)))&&(input==2))&&(a28==1)))))&&!(a0==1))&&!(a24==1))){ + a29 = 7; + a25 = 0; + a19 = 1; + a24 = 1; + a7 = 1; + a14 = 9; + a20 = 0; + return 21; + } else if(((((!(a24==1)&&(((!(a20==1)&&((a11==1)&&((((((a29==7)||(a29==8))||(a29==9))&&(input==4))&&(a0==1))&&(a14==8))))&&!(a7==1))&&!(a25==1)))&&(a19==2))&&(a22==1))&&(a28==1))){ + a11 = 0; + a19 = 3; + a29 = 5; + return 23; + } else if(((a7==1)&&(((a19==2)&&((a28==1)&&((a22==1)&&(((!(a11==1)&&((a14==9)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==5))&&(a0==1))))&&!(a20==1))&&(a25==1)))))&&!(a24==1)))){ + a19 = 1; + a0 = 0; + a25 = 0; + a14 = 8; + a7 = 0; + a20 = 1; + a24 = 1; + a29 = 8; + a11 = 1; + return 21; + } else if((!(a24==1)&&((((a19==3)&&(((a22==1)&&((a14==9)&&(((a25==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==6))&&!(a20==1)))&&(a7==1))))&&(a28==1)))&&(a11==1))&&!(a0==1)))){ + a7 = 0; + a29 = 7; + a25 = 0; + a0 = 1; + a11 = 0; + a14 = 8; + return 21; + } else if((((((((((!(a11==1)&&(!(a20==1)&&((input==6)&&((a29==6)||(a29==7)))))&&(a28==1))&&!(a0==1))&&(a24==1))&&(a14==8))&&!(a7==1))&&(a22==1))&&(a19==2))&&(a25==1))){ + a24 = 0; + a29 = 6; + a0 = 1; + a25 = 0; + a19 = 3; + return 24; + } else if(((!(a24==1)&&(((!(a7==1)&&((((a19==3)&&(!(a0==1)&&(((a14==8)&&(input==6))&&!(a25==1))))&&(a22==1))&&(a29==5)))&&!(a11==1))&&(a28==1)))&&!(a20==1))){ + a29 = 7; + a25 = 1; + return 21; + } else if((!(a25==1)&&((((a20==1)&&(((a11==1)&&((((a19==2)&&(!(a0==1)&&((input==5)&&((a29==9)||((a29==7)||(a29==8))))))&&(a14==9))&&(a22==1)))&&(a7==1)))&&!(a24==1))&&(a28==1)))){ + a7 = 0; + a19 = 4; + a20 = 0; + a14 = 8; + a29 = 9; + return 24; + } else if(((a22==1)&&((((((a20==1)&&(!(a11==1)&&((((((a29==6)||(a29==7))&&(input==3))&&!(a0==1))&&(a14==9))&&(a25==1))))&&(a24==1))&&!(a7==1))&&(a28==1))&&(a19==5)))){ + a11 = 1; + a29 = 7; + a14 = 8; + a19 = 3; + return 21; + } else if(((a20==1)&&((a0==1)&&(((a28==1)&&((a22==1)&&(((a24==1)&&((((a14==8)&&(((a29==5)||(a29==6))&&(input==3)))&&!(a11==1))&&(a19==3)))&&!(a25==1))))&&!(a7==1))))){ + a0 = 0; + a19 = 4; + a11 = 1; + a29 = 9; + a7 = 1; + return 21; + } else if((((a11==1)&&(!(a20==1)&&(!(a0==1)&&(((((a28==1)&&(((((a29==6)||(a29==7))&&(input==5))&&(a7==1))&&(a22==1)))&&(a14==9))&&!(a24==1))&&(a25==1)))))&&(a19==2))){ + a19 = 5; + a25 = 0; + a14 = 8; + a7 = 0; + a11 = 0; + a29 = 9; + return -1; + } else if((((!(a24==1)&&(!(a25==1)&&((((a19==4)&&(((a7==1)&&(!(a20==1)&&((input==2)&&((a29==8)||((a29==6)||(a29==7))))))&&(a14==8)))&&(a28==1))&&!(a11==1))))&&(a22==1))&&(a0==1))){ + a29 = 9; + a19 = 2; + return -1; + } else if(((!(a24==1)&&((a25==1)&&((((a22==1)&&((a28==1)&&(((a11==1)&&((input==4)&&(((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))))&&!(a7==1))))&&!(a0==1))&&(a14==9))))&&(a20==1))){ + a7 = 1; + a14 = 8; + a25 = 0; + a19 = 4; + a29 = 9; + a24 = 1; + return 24; + } else if((((a22==1)&&(((a7==1)&&(!(a24==1)&&((a28==1)&&((a11==1)&&((a14==8)&&(!(a0==1)&&(((input==2)&&((a29==9)||((a29==7)||(a29==8))))&&!(a25==1))))))))&&(a20==1)))&&(a19==5))){ + a29 = 6; + a24 = 1; + a20 = 0; + a19 = 3; + return 21; + } else if((!(a20==1)&&(((a25==1)&&(!(a24==1)&&((!(a11==1)&&(!(a0==1)&&((a14==9)&&(((input==2)&&((((a29==8)&&(a19==4))||((a19==4)&&(a29==9)))||((a19==5)&&(a29==5))))&&(a28==1)))))&&!(a7==1))))&&(a22==1)))){ + a29 = 6; + a19 = 2; + a0 = 1; + a14 = 8; + return 24; + } else if(((a14==8)&&(((((a22==1)&&((!(a25==1)&&(!(a7==1)&&((((input==6)&&!(a20==1))&&(a11==1))&&(a0==1))))&&(a19==4)))&&!(a24==1))&&(a29==7))&&(a28==1)))){ + a7 = 1; + a24 = 1; + a25 = 1; + a11 = 0; + a19 = 2; + a0 = 0; + a29 = 6; + return 24; + } else if((!(a0==1)&&(!(a11==1)&&((a28==1)&&((((!(a24==1)&&(((((a29==9)&&((a7==1)&&!(a25==1)))&&(a19==5))||(((!(a7==1)&&(a25==1))&&(a29==5))&&(a19==1)))&&(input==6)))&&(a20==1))&&(a14==9))&&(a22==1)))))){ + a14 = 8; + a29 = 6; + a19 = 5; + a24 = 1; + a7 = 0; + a20 = 0; + a25 = 1; + a11 = 1; + return 21; + } else if((((a20==1)&&(((!(a11==1)&&((((a28==1)&&((a22==1)&&(((a19==4)&&(input==1))&&(a29==9))))&&(a14==9))&&!(a25==1)))&&!(a0==1))&&(a24==1)))&&(a7==1))){ + a11 = 1; + a20 = 0; + a14 = 8; + a29 = 8; + a24 = 0; + a19 = 5; + a25 = 1; + return -1; + } else if(((a11==1)&&(((a28==1)&&(((a14==9)&&(!(a0==1)&&((((a20==1)&&((input==1)&&(((a29==5)&&(a19==4))||(((a19==3)&&(a29==8))||((a19==3)&&(a29==9))))))&&!(a24==1))&&(a22==1))))&&(a25==1)))&&(a7==1)))){ + a29 = 5; + a20 = 0; + a19 = 3; + a24 = 1; + a7 = 0; + a14 = 8; + return 23; + } else if(((a20==1)&&((a29==9)&&((a19==4)&&((a14==9)&&((a24==1)&&(((a22==1)&&(!(a25==1)&&(((!(a11==1)&&(input==1))&&!(a7==1))&&!(a0==1))))&&(a28==1)))))))){ + a11 = 1; + a20 = 0; + a0 = 1; + a19 = 2; + a25 = 1; + a29 = 7; + return 24; + } else if(((((!(a0==1)&&((!(a11==1)&&(!(a24==1)&&(((a14==8)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==3))&&!(a20==1)))&&(a7==1))))&&(a19==4)))&&(a28==1))&&!(a25==1))&&(a22==1))){ + a7 = 0; + a20 = 1; + a19 = 2; + a29 = 7; + return 21; + } else if(((((((a7==1)&&(((a11==1)&&((a22==1)&&((a14==9)&&((a19==1)&&((input==5)&&((a29==8)||(a29==9)))))))&&(a0==1)))&&(a28==1))&&!(a20==1))&&!(a25==1))&&(a24==1))){ + a19 = 5; + a29 = 9; + a0 = 0; + a14 = 8; + a7 = 0; + a20 = 1; + return -1; + } else if(((a0==1)&&((a14==9)&&((((((a22==1)&&((a11==1)&&(!(a7==1)&&((input==4)&&(((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))))))&&!(a25==1))&&(a24==1))&&(a28==1))&&(a20==1))))){ + a7 = 1; + a14 = 8; + a19 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if(((((a11==1)&&((a28==1)&&((((a24==1)&&((((((a29==6)&&(a19==5))||(((a29==9)&&(a19==4))||((a19==5)&&(a29==5))))&&(input==6))&&(a22==1))&&!(a7==1)))&&(a25==1))&&(a14==9))))&&(a0==1))&&(a20==1))){ + a24 = 0; + a14 = 8; + a19 = 1; + a20 = 0; + a29 = 8; + a11 = 0; + return -1; + } else if(((!(a20==1)&&(((a28==1)&&(((a22==1)&&((a0==1)&&((a19==3)&&((a24==1)&&((a29==7)&&((input==6)&&(a25==1)))))))&&(a11==1)))&&(a14==8)))&&!(a7==1))){ + a11 = 0; + a29 = 8; + a7 = 1; + return 24; + } else if(((((((((((a11==1)&&((a19==5)&&((a7==1)&&(input==3))))&&(a29==7))&&!(a25==1))&&!(a24==1))&&(a22==1))&&(a14==8))&&!(a20==1))&&!(a0==1))&&(a28==1))){ + a24 = 1; + a20 = 1; + a29 = 9; + a19 = 1; + return 24; + } else if((!(a20==1)&&((a24==1)&&(!(a25==1)&&((a19==2)&&(((a28==1)&&((((a7==1)&&((((a29==8)||(a29==9))&&(input==6))&&!(a0==1)))&&(a22==1))&&(a14==9)))&&(a11==1))))))){ + a24 = 0; + a19 = 3; + a7 = 0; + a29 = 6; + a14 = 8; + return -1; + } else if(((!(a0==1)&&(!(a24==1)&&(!(a20==1)&&((a22==1)&&((a28==1)&&((a11==1)&&((a14==8)&&((input==5)&&(((((a29==8)&&(a25==1))&&(a19==5))||(((a25==1)&&(a29==9))&&(a19==5)))||((a19==1)&&(!(a25==1)&&(a29==5))))))))))))&&(a7==1))){ + a25 = 1; + a24 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if(((a24==1)&&(!(a25==1)&&(((a11==1)&&(((a29==5)&&(((a14==8)&&(!(a20==1)&&(((input==4)&&(a28==1))&&!(a7==1))))&&(a22==1)))&&!(a0==1)))&&(a19==4))))){ + a20 = 1; + a19 = 1; + a25 = 1; + a29 = 7; + return -1; + } else if((!(a24==1)&&(((((a14==8)&&(!(a11==1)&&(((a28==1)&&((a25==1)&&(!(a20==1)&&((input==4)&&((a29==6)||(a29==7))))))&&(a19==5))))&&!(a0==1))&&(a22==1))&&!(a7==1)))){ + a29 = 7; + a0 = 1; + a25 = 0; + a19 = 2; + return 21; + } else if((((a22==1)&&(((a28==1)&&(((a20==1)&&((!(a0==1)&&((a19==2)&&((a14==9)&&((input==4)&&((a29==6)||(a29==7))))))&&!(a24==1)))&&!(a7==1)))&&(a11==1)))&&(a25==1))){ + a19 = 3; + a20 = 0; + a29 = 5; + a25 = 0; + a7 = 1; + a24 = 1; + a0 = 1; + return 23; + } else if((((a19==3)&&((a11==1)&&((!(a0==1)&&(!(a20==1)&&(!(a24==1)&&((a7==1)&&(!(a25==1)&&(((input==3)&&((a29==6)||(a29==7)))&&(a14==8)))))))&&(a22==1))))&&(a28==1))){ + a19 = 2; + a11 = 0; + a0 = 1; + a7 = 0; + a25 = 1; + a29 = 7; + return 23; + } else if(((a28==1)&&((a19==3)&&((a20==1)&&(((a24==1)&&(!(a25==1)&&((((a14==9)&&((a7==1)&&((input==5)&&((a29==8)||(a29==9)))))&&(a0==1))&&(a22==1))))&&!(a11==1)))))){ + a0 = 0; + a11 = 1; + a29 = 5; + a20 = 0; + a24 = 0; + a14 = 8; + a19 = 5; + return -1; + } else if(((((a28==1)&&((((a14==9)&&((a19==3)&&((a0==1)&&((!(a24==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==1)))&&(a7==1)))))&&(a22==1))&&(a11==1)))&&!(a25==1))&&!(a20==1))){ + a29 = 5; + a20 = 1; + a25 = 1; + a14 = 8; + a19 = 1; + a24 = 1; + return -1; + } else if(((((!(a7==1)&&((a28==1)&&(!(a0==1)&&(!(a11==1)&&((a14==9)&&((((((a19==3)&&(a29==8))||((a29==9)&&(a19==3)))||((a19==4)&&(a29==5)))&&(input==2))&&(a24==1)))))))&&!(a25==1))&&(a22==1))&&(a20==1))){ + a25 = 1; + a29 = 9; + a11 = 1; + a7 = 1; + a19 = 1; + a0 = 1; + a14 = 8; + return -1; + } else if(((((a19==4)&&(((a29==5)&&(((a22==1)&&(((a7==1)&&(((a11==1)&&(input==3))&&(a14==9)))&&!(a25==1)))&&(a20==1)))&&(a28==1)))&&!(a24==1))&&!(a0==1))){ + a29 = 6; + a14 = 8; + a19 = 2; + a24 = 1; + a7 = 0; + a25 = 1; + return 21; + } else if(((!(a24==1)&&(((a25==1)&&(((((((a20==1)&&((a7==1)&&(input==3)))&&(a14==10))&&(a0==1))&&(a19==5))&&(a28==1))&&(a29==6)))&&(a11==1)))&&(a22==1))){ + a20 = 0; + a29 = 9; + a0 = 0; + a7 = 0; + a14 = 9; + a11 = 0; + return -1; + } else if(((((a0==1)&&(((a14==8)&&((input==4)&&(((a19==1)&&((a29==5)&&((a25==1)&&(((a20==1)&&(a7==1))&&!(a24==1)))))||(((a19==5)&&((a29==8)&&(((!(a7==1)&&!(a20==1))&&(a24==1))&&!(a25==1))))||((a19==5)&&((((!(a20==1)&&!(a7==1))&&(a24==1))&&!(a25==1))&&(a29==9)))))))&&!(a11==1)))&&(a22==1))&&(a28==1))){ + a25 = 1; + a24 = 1; + a0 = 0; + a7 = 0; + a29 = 7; + a20 = 1; + a11 = 1; + a19 = 1; + return 24; + } else if((((a25==1)&&((a14==9)&&(!(a24==1)&&(!(a20==1)&&(((a19==5)&&((((a28==1)&&(((a29==6)||(a29==7))&&(input==3)))&&!(a0==1))&&!(a11==1)))&&(a22==1))))))&&!(a7==1))){ + a19 = 2; + a0 = 1; + a29 = 8; + a14 = 8; + a25 = 0; + return 23; + } else if(((a19==3)&&(((!(a25==1)&&(((a28==1)&&((((a22==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==6))&&!(a24==1)))&&!(a7==1))&&!(a0==1)))&&(a11==1)))&&(a14==9))&&(a20==1)))){ + a7 = 1; + a29 = 5; + a0 = 1; + a19 = 4; + return -1; + } else if(((!(a20==1)&&((a14==8)&&(((a19==5)&&(!(a0==1)&&((a11==1)&&(!(a7==1)&&(((a29==5)&&((input==4)&&!(a25==1)))&&(a22==1))))))&&(a24==1))))&&(a28==1))){ + a29 = 7; + a19 = 3; + a25 = 1; + a20 = 1; + return -1; + } else if((((a28==1)&&((a19==1)&&(((!(a25==1)&&(!(a11==1)&&((a24==1)&&((a20==1)&&((a22==1)&&(((a29==8)||(a29==9))&&(input==4)))))))&&(a7==1))&&(a14==8))))&&(a0==1))){ + a29 = 5; + a0 = 0; + a19 = 4; + a7 = 0; + a20 = 0; + a11 = 1; + return 21; + } else if((!(a24==1)&&((((a19==5)&&((a28==1)&&((a20==1)&&((a25==1)&&((a29==5)&&((a7==1)&&(((input==4)&&(a11==1))&&(a14==9))))))))&&(a22==1))&&!(a0==1)))){ + a7 = 0; + a29 = 9; + a0 = 1; + a19 = 4; + return 24; + } else if(((a22==1)&&((((a19==5)&&((a14==9)&&((a29==7)&&(((a28==1)&&((((a24==1)&&(input==4))&&!(a20==1))&&(a11==1)))&&(a0==1)))))&&!(a25==1))&&(a7==1)))){ + a29 = 5; + a11 = 0; + a24 = 0; + a14 = 8; + a19 = 3; + return 23; + } else if(((!(a25==1)&&((((a14==8)&&(((!(a24==1)&&((((((a29==6)||(a29==7))||(a29==8))&&(input==5))&&(a22==1))&&!(a11==1)))&&(a7==1))&&(a28==1)))&&(a20==1))&&!(a0==1)))&&(a19==1))){ + a29 = 5; + a0 = 1; + a11 = 1; + a25 = 1; + a24 = 1; + return -1; + } else if((!(a24==1)&&((a22==1)&&(!(a7==1)&&((a28==1)&&((!(a11==1)&&(((a20==1)&&((input==5)&&((((a19==5)&&((a29==8)&&(a25==1)))||(((a29==9)&&(a25==1))&&(a19==5)))||((a19==1)&&((a29==5)&&!(a25==1))))))&&!(a0==1)))&&(a14==9))))))){ + a0 = 1; + a20 = 0; + a29 = 6; + a24 = 1; + a25 = 1; + a19 = 3; + a11 = 1; + return 21; + } else if(((a22==1)&&((a0==1)&&((!(a25==1)&&(((((((!(a24==1)&&(input==2))&&(a14==9))&&(a19==2))&&(a28==1))&&!(a11==1))&&(a7==1))&&!(a20==1)))&&(a29==7))))){ + a0 = 0; + a11 = 1; + a19 = 3; + a24 = 1; + a25 = 1; + a14 = 8; + a29 = 6; + a20 = 1; + a7 = 0; + return 24; + } else if(((a19==3)&&(((a25==1)&&(((a28==1)&&(((a0==1)&&(((((a20==1)&&(input==5))&&(a11==1))&&(a29==5))&&!(a7==1)))&&(a24==1)))&&(a14==9)))&&(a22==1)))){ + a7 = 1; + a14 = 8; + a19 = 1; + return -1; + } else if((((a22==1)&&((a28==1)&&(!(a24==1)&&((!(a7==1)&&((!(a25==1)&&((a14==8)&&(((input==6)&&(a19==3))&&!(a0==1))))&&(a20==1)))&&!(a11==1)))))&&(a29==6))){ + a19 = 4; + a25 = 1; + a24 = 1; + a20 = 0; + a11 = 1; + return 24; + } else if(((a24==1)&&(((!(a25==1)&&((a11==1)&&((a20==1)&&(((a22==1)&&((a28==1)&&(!(a7==1)&&(((a29==7)||(a29==8))&&(input==4)))))&&(a19==2)))))&&(a14==9))&&(a0==1)))){ + a14 = 8; + a29 = 5; + a0 = 0; + a20 = 0; + return 24; + } else if((((a14==8)&&(((((((((((a29==8)||(a29==9))&&(input==5))&&(a19==2))&&!(a11==1))&&!(a0==1))&&(a22==1))&&!(a7==1))&&!(a20==1))&&(a28==1))&&!(a24==1)))&&!(a25==1))){ + a19 = 1; + a20 = 1; + a0 = 1; + a25 = 1; + a24 = 1; + a7 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if((((a28==1)&&((((a14==9)&&((a7==1)&&(((a0==1)&&(!(a24==1)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==1))&&(a22==1))))&&(a20==1))))&&(a25==1))&&!(a11==1)))&&(a19==2))){ + a20 = 0; + a19 = 5; + a14 = 8; + a29 = 8; + a25 = 0; + return 24; + } else if(((((((((a20==1)&&(!(a0==1)&&(!(a25==1)&&(((input==3)&&((a29==8)||(a29==9)))&&!(a7==1)))))&&(a19==4))&&(a11==1))&&(a14==9))&&(a22==1))&&(a28==1))&&!(a24==1))){ + a14 = 8; + a11 = 0; + a19 = 5; + a20 = 0; + a29 = 7; + a0 = 1; + a25 = 1; + return 23; + } else if((((a22==1)&&(!(a7==1)&&((((((a24==1)&&((((((a29==5)||(a29==6))||(a29==7))&&(input==1))&&(a28==1))&&(a14==9)))&&(a0==1))&&(a20==1))&&(a25==1))&&(a11==1))))&&(a19==1))){ + a7 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if((!(a20==1)&&(!(a7==1)&&((!(a0==1)&&(((a14==9)&&(((a28==1)&&((((a19==1)&&((a29==6)&&!(a25==1)))||((((a25==1)&&(a29==9))&&(a19==5))||((a19==1)&&(!(a25==1)&&(a29==5)))))&&(input==5)))&&!(a11==1)))&&(a22==1)))&&(a24==1))))){ + a19 = 1; + a29 = 5; + a0 = 1; + a25 = 1; + a7 = 1; + a14 = 8; + a11 = 1; + a20 = 1; + return -1; + } else if((!(a0==1)&&(!(a7==1)&&((((((((((input==6)&&((a29==7)||(a29==8)))&&!(a11==1))&&(a20==1))&&(a28==1))&&(a22==1))&&(a14==8))&&!(a24==1))&&(a19==3))&&!(a25==1))))){ + a11 = 1; + a29 = 6; + a24 = 1; + a20 = 0; + return 23; + } else if(((a28==1)&&((a22==1)&&(!(a24==1)&&((((a25==1)&&((a19==4)&&((a0==1)&&((a7==1)&&(!(a20==1)&&((input==2)&&((a29==6)||(a29==7))))))))&&(a11==1))&&(a14==8)))))){ + a0 = 0; + a29 = 9; + a19 = 3; + a25 = 0; + return 24; + } else if(((a14==9)&&(((a0==1)&&((a28==1)&&((((((a29==8)&&(!(a25==1)&&(!(a24==1)&&(((a11==1)&&!(a20==1))&&!(a7==1)))))&&(a19==5))||((((((!(a20==1)&&(a11==1))&&!(a7==1))&&!(a24==1))&&!(a25==1))&&(a29==9))&&(a19==5)))||((a19==1)&&((a29==5)&&(((a24==1)&&(((a20==1)&&!(a11==1))&&(a7==1)))&&(a25==1)))))&&(input==1))))&&(a22==1)))){ + a19 = 4; + a29 = 7; + a11 = 1; + a14 = 8; + a7 = 1; + a20 = 1; + a0 = 0; + a24 = 1; + a25 = 0; + return -1; + } return calculate_output10(input); + } + + int calculate_output10(int input) { + if(((a14==9)&&((((a7==1)&&(!(a0==1)&&(((!(a25==1)&&(!(a24==1)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==2))&&(a28==1))))&&(a11==1))&&(a22==1))))&&!(a20==1))&&(a19==2)))){ + a7 = 0; + a0 = 1; + a19 = 4; + a29 = 8; + a25 = 1; + a20 = 1; + return 23; + } else if((((a24==1)&&((a20==1)&&((((a29==9)&&((!(a25==1)&&((a14==10)&&((!(a7==1)&&(input==4))&&(a22==1))))&&(a28==1)))&&(a11==1))&&(a0==1))))&&(a19==1))){ + a24 = 0; + a19 = 3; + a20 = 0; + a11 = 0; + a25 = 1; + a29 = 8; + a0 = 0; + a14 = 9; + return -1; + } else if((((a22==1)&&((a28==1)&&((a14==8)&&(((((a11==1)&&((a7==1)&&(((input==6)&&((a29==7)||((a29==5)||(a29==6))))&&(a0==1))))&&!(a20==1))&&(a19==5))&&(a25==1)))))&&(a24==1))){ + a29 = 5; + a20 = 1; + a19 = 1; + return -1; + } else if(((!(a11==1)&&((((a7==1)&&(((!(a0==1)&&((a25==1)&&((a14==9)&&(((a29==8)||(a29==9))&&(input==5)))))&&(a19==5))&&(a22==1)))&&(a28==1))&&!(a24==1)))&&(a20==1))){ + a29 = 7; + a25 = 0; + a0 = 1; + a20 = 0; + a19 = 3; + a14 = 8; + return 23; + } else if(((a22==1)&&(((a14==8)&&((a25==1)&&(((!(a24==1)&&(!(a20==1)&&(((a19==5)&&(((a29==6)||(a29==7))&&(input==3)))&&!(a11==1))))&&!(a7==1))&&!(a0==1))))&&(a28==1)))){ + a24 = 1; + a14 = 9; + a7 = 1; + a0 = 1; + a29 = 5; + a20 = 1; + return 24; + } else if(((((((((((a14==9)&&((a28==1)&&((input==4)&&(a25==1))))&&(a24==1))&&(a29==7))&&(a7==1))&&(a22==1))&&(a11==1))&&(a0==1))&&(a20==1))&&(a19==3))){ + a20 = 0; + a0 = 0; + a29 = 6; + a14 = 8; + a7 = 0; + return -1; + } else if(((a28==1)&&((!(a20==1)&&((a22==1)&&(!(a11==1)&&(((!(a7==1)&&((a25==1)&&((((a29==7)||(a29==8))&&(input==4))&&(a14==8))))&&!(a24==1))&&(a19==3)))))&&(a0==1)))){ + a19 = 1; + a24 = 1; + a0 = 0; + a29 = 8; + a20 = 1; + a25 = 0; + a11 = 1; + return 23; + } else if(((a14==9)&&((!(a25==1)&&((a7==1)&&((a0==1)&&(!(a11==1)&&((a20==1)&&((a19==3)&&((((input==4)&&(a22==1))&&(a28==1))&&!(a24==1))))))))&&(a29==5)))){ + a25 = 1; + a29 = 6; + a11 = 1; + a7 = 0; + a19 = 4; + return 24; + } else if(((a0==1)&&(((a28==1)&&((((a24==1)&&(!(a11==1)&&((a19==3)&&((!(a25==1)&&((input==2)&&((a29==7)||(a29==8))))&&(a22==1)))))&&!(a7==1))&&(a14==9)))&&(a20==1)))){ + a14 = 8; + a7 = 1; + a19 = 2; + a11 = 1; + a20 = 0; + a29 = 7; + a0 = 0; + return 23; + } else if((((a14==9)&&(((((((!(a20==1)&&((((a19==2)&&(a29==5))||(((a19==1)&&(a29==8))||((a19==1)&&(a29==9))))&&(input==6)))&&!(a24==1))&&(a28==1))&&!(a0==1))&&(a22==1))&&!(a25==1))&&(a11==1)))&&!(a7==1))){ + a19 = 1; + a14 = 8; + a20 = 1; + a29 = 5; + a0 = 1; + a24 = 1; + a7 = 1; + a25 = 1; + return -1; + } else if((((a28==1)&&((((!(a11==1)&&(!(a25==1)&&((a19==5)&&((a24==1)&&((a20==1)&&((input==3)&&((a29==6)||(a29==7))))))))&&!(a0==1))&&!(a7==1))&&(a14==9)))&&(a22==1))){ + a7 = 1; + a25 = 1; + a29 = 6; + a19 = 4; + a24 = 0; + a14 = 8; + return -1; + } else if(((a25==1)&&((((((((((input==4)&&((((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))||((a19==3)&&(a29==6))))&&(a14==8))&&!(a20==1))&&(a24==1))&&(a22==1))&&!(a7==1))&&(a28==1))&&!(a11==1))&&!(a0==1)))){ + a25 = 0; + a29 = 5; + a19 = 3; + a11 = 1; + return -1; + } else if(((a0==1)&&(((a22==1)&&(((a14==8)&&((!(a24==1)&&((a28==1)&&(((input==3)&&(((a29==5)&&(a19==3))||(((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))))&&(a20==1))))&&(a11==1)))&&(a25==1)))&&!(a7==1)))){ + a24 = 1; + a29 = 5; + a19 = 4; + a20 = 0; + a0 = 0; + return 21; + } else if((((a19==5)&&(((a24==1)&&((a22==1)&&(!(a20==1)&&(((a11==1)&&((a0==1)&&(((input==1)&&((a29==7)||((a29==5)||(a29==6))))&&(a25==1))))&&(a14==10)))))&&(a28==1)))&&!(a7==1))){ + a29 = 9; + a19 = 2; + a11 = 0; + a24 = 0; + a0 = 0; + a7 = 1; + a14 = 8; + a20 = 1; + return -1; + } else if(((a19==4)&&(!(a0==1)&&(((a25==1)&&(((a7==1)&&(((a14==8)&&((a20==1)&&(((input==4)&&((a29==7)||((a29==5)||(a29==6))))&&(a28==1))))&&!(a11==1)))&&!(a24==1)))&&(a22==1))))){ + a11 = 1; + a19 = 2; + a29 = 7; + a24 = 1; + return 23; + } else if(((a28==1)&&((((a24==1)&&((a20==1)&&(((a19==2)&&(!(a0==1)&&((((input==4)&&(a22==1))&&(a25==1))&&!(a11==1))))&&(a14==8))))&&(a29==8))&&!(a7==1)))){ + a19 = 3; + a14 = 9; + a29 = 6; + a11 = 1; + a24 = 0; + return 21; + } else if(((a0==1)&&(!(a7==1)&&((a11==1)&&((a14==8)&&(!(a25==1)&&((a20==1)&&((((a28==1)&&(((input==5)&&(((a29==6)||(a29==7))||(a29==8)))&&(a22==1)))&&!(a24==1))&&(a19==2))))))))){ + a19 = 4; + a25 = 1; + a0 = 0; + a7 = 1; + a29 = 8; + a24 = 1; + return 23; + } else if((!(a7==1)&&((a28==1)&&((a19==1)&&((((a24==1)&&(((a0==1)&&((a11==1)&&((a14==10)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==3)))))&&(a20==1)))&&(a25==1))&&(a22==1)))))){ + a14 = 8; + a20 = 0; + a0 = 0; + a29 = 7; + return 21; + } else if((((a22==1)&&(((a28==1)&&(((((((((a19==5)&&((a29==9)&&(a25==1)))||((a19==1)&&(!(a25==1)&&(a29==5))))||((!(a25==1)&&(a29==6))&&(a19==1)))&&(input==3))&&(a7==1))&&(a14==8))&&(a20==1))&&!(a11==1)))&&!(a24==1)))&&(a0==1))){ + a7 = 0; + a25 = 1; + a19 = 3; + a29 = 8; + a20 = 0; + return 23; + } else if((!(a0==1)&&((a22==1)&&(!(a11==1)&&(!(a24==1)&&(((a14==8)&&((input==5)&&(((((a29==8)&&(((a20==1)&&!(a7==1))&&!(a25==1)))&&(a19==5))||(((a29==9)&&((!(a7==1)&&(a20==1))&&!(a25==1)))&&(a19==5)))||(((a29==5)&&((!(a20==1)&&(a7==1))&&(a25==1)))&&(a19==1)))))&&(a28==1))))))){ + a25 = 1; + a20 = 1; + a24 = 1; + a7 = 0; + a29 = 9; + a19 = 1; + return -1; + } else if(((((a11==1)&&((!(a24==1)&&((((a28==1)&&(!(a7==1)&&((a19==5)&&((input==1)&&((a29==6)||(a29==7))))))&&(a22==1))&&!(a25==1)))&&(a0==1)))&&(a14==9))&&!(a20==1))){ + a25 = 1; + a14 = 8; + a24 = 1; + a29 = 7; + a0 = 0; + a7 = 1; + a19 = 3; + a20 = 1; + return -1; + } else if(((a11==1)&&(!(a0==1)&&((a22==1)&&(!(a7==1)&&((a14==9)&&((a28==1)&&(!(a20==1)&&(!(a24==1)&&(((input==4)&&(((a19==3)&&(a29==6))||(((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))))&&(a25==1))))))))))){ + a29 = 5; + a20 = 1; + a0 = 1; + a19 = 1; + a14 = 8; + a7 = 1; + a24 = 1; + return -1; + } else if(((a14==9)&&((a22==1)&&(((((a20==1)&&(((a0==1)&&(((a11==1)&&((input==1)&&(((a29==5)||(a29==6))||(a29==7))))&&(a7==1)))&&!(a25==1)))&&(a19==5))&&(a28==1))&&!(a24==1))))){ + a19 = 1; + a24 = 1; + a25 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((a28==1)&&(((((a24==1)&&((a25==1)&&(((a7==1)&&((a22==1)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==6))&&(a14==9))))&&(a0==1))))&&(a20==1))&&(a11==1))&&(a19==1)))){ + a29 = 9; + a14 = 8; + a7 = 0; + a19 = 3; + a0 = 0; + return 24; + } else if(((a24==1)&&(!(a25==1)&&((a19==5)&&((((a29==6)&&((a14==9)&&(((((input==6)&&(a11==1))&&(a22==1))&&(a7==1))&&(a0==1))))&&(a28==1))&&!(a20==1)))))){ + a19 = 2; + a24 = 0; + a14 = 8; + a0 = 0; + a20 = 1; + a7 = 0; + a29 = 7; + a11 = 0; + return -1; + } else if(((!(a20==1)&&((!(a25==1)&&((((a24==1)&&(((a0==1)&&((a29==6)&&((input==6)&&(a14==9))))&&!(a11==1)))&&(a7==1))&&(a22==1)))&&(a19==3)))&&(a28==1))){ + a11 = 1; + a14 = 8; + a29 = 8; + a0 = 0; + a25 = 1; + return 24; + } else if(((((a0==1)&&((a29==8)&&((a14==10)&&(!(a7==1)&&((((a19==1)&&((a28==1)&&((input==6)&&(a22==1))))&&(a24==1))&&!(a25==1))))))&&(a20==1))&&(a11==1))){ + a25 = 1; + a24 = 0; + a29 = 7; + a19 = 2; + a0 = 0; + a14 = 8; + return -1; + } else if((!(a20==1)&&((a25==1)&&((a14==9)&&((a22==1)&&(((!(a7==1)&&((a24==1)&&((!(a11==1)&&(((a29==6)||(a29==7))&&(input==5)))&&(a19==5))))&&(a0==1))&&(a28==1))))))){ + a29 = 6; + a24 = 0; + a19 = 3; + return 24; + } else if((((((a24==1)&&(!(a0==1)&&((((a19==2)&&((a14==8)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==3))&&(a20==1))))&&(a28==1))&&(a22==1))))&&!(a25==1))&&(a11==1))&&(a7==1))){ + a29 = 9; + a19 = 1; + a25 = 1; + return -1; + } else if((((a14==10)&&((((a11==1)&&((((((a28==1)&&((input==3)&&((a29==8)||(a29==9))))&&(a19==2))&&(a24==1))&&(a7==1))&&(a20==1)))&&(a0==1))&&(a22==1)))&&(a25==1))){ + a14 = 9; + a25 = 0; + a20 = 0; + a7 = 0; + a29 = 6; + return -1; + } else if(((!(a11==1)&&(((a14==9)&&((a28==1)&&(!(a0==1)&&((((input==1)&&(((a19==1)&&(!(a25==1)&&(a29==5)))||(((a19==5)&&((a29==8)&&(a25==1)))||(((a25==1)&&(a29==9))&&(a19==5)))))&&(a20==1))&&(a22==1)))))&&(a7==1)))&&(a24==1))){ + a25 = 1; + a24 = 0; + a19 = 4; + a7 = 0; + a20 = 0; + a11 = 1; + a29 = 9; + a0 = 1; + return 21; + } else if(((a0==1)&&((a14==9)&&(((a22==1)&&(((a7==1)&&((((a11==1)&&(!(a25==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==2))))&&(a20==1))&&(a19==2)))&&(a28==1)))&&!(a24==1))))){ + a24 = 1; + a25 = 1; + a19 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((a22==1)&&((((((a11==1)&&((a24==1)&&(!(a20==1)&&(((input==1)&&(((a29==5)&&(a19==2))||(((a29==8)&&(a19==1))||((a29==9)&&(a19==1)))))&&(a14==10)))))&&!(a25==1))&&!(a7==1))&&(a0==1))&&(a28==1)))){ + a11 = 0; + a24 = 0; + a19 = 3; + a14 = 9; + a0 = 0; + a25 = 1; + a20 = 1; + a7 = 1; + a29 = 8; + return -1; + } else if((((a25==1)&&(((a19==1)&&((!(a0==1)&&(!(a24==1)&&((((((a29==8)||(a29==9))&&(input==6))&&(a14==8))&&(a11==1))&&(a7==1))))&&(a28==1)))&&!(a20==1)))&&(a22==1))){ + a29 = 5; + a0 = 1; + a19 = 3; + a20 = 1; + a14 = 9; + a24 = 1; + a11 = 0; + return 21; + } else if(((a20==1)&&((a7==1)&&(((((a11==1)&&((a28==1)&&((a19==2)&&(((a25==1)&&(((a29==6)||(a29==7))&&(input==2)))&&!(a0==1)))))&&!(a24==1))&&(a22==1))&&(a14==8))))){ + a19 = 5; + a7 = 0; + a29 = 5; + a24 = 1; + return 21; + } else if((((a11==1)&&(!(a25==1)&&(!(a24==1)&&(!(a20==1)&&((a19==3)&&((((a22==1)&&((a14==8)&&(((a29==7)||(a29==8))&&(input==5))))&&(a28==1))&&!(a0==1)))))))&&!(a7==1))){ + a20 = 1; + a24 = 1; + a19 = 1; + a7 = 1; + a0 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if((((((a25==1)&&(((!(a11==1)&&(!(a20==1)&&((a29==9)&&(!(a0==1)&&((input==4)&&(a7==1))))))&&(a22==1))&&(a14==9)))&&(a28==1))&&!(a24==1))&&(a19==3))){ + a25 = 0; + a0 = 1; + a14 = 8; + return 21; + } else if(((a11==1)&&(((a14==10)&&(((a7==1)&&((a22==1)&&((a28==1)&&((a0==1)&&((a24==1)&&(!(a20==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==2))))))))&&(a25==1)))&&(a19==4)))){ + a14 = 8; + a29 = 8; + a19 = 2; + a20 = 1; + return -1; + } else if(((a29==7)&&(((((a11==1)&&(!(a0==1)&&(!(a24==1)&&(!(a20==1)&&((((a7==1)&&(input==6))&&(a14==9))&&(a19==3))))))&&(a28==1))&&!(a25==1))&&(a22==1)))){ + a29 = 5; + a7 = 0; + a14 = 8; + a19 = 1; + a24 = 1; + a20 = 1; + a11 = 0; + return -1; + } else if((((((a20==1)&&(!(a11==1)&&((a22==1)&&((a19==4)&&(!(a0==1)&&((a29==5)&&(((input==3)&&!(a24==1))&&(a14==9))))))))&&(a7==1))&&!(a25==1))&&(a28==1))){ + a24 = 1; + a11 = 1; + a19 = 1; + a20 = 0; + a29 = 7; + a14 = 8; + a7 = 0; + return 24; + } else if((!(a7==1)&&(((a11==1)&&((a22==1)&&((!(a24==1)&&((a14==8)&&((!(a25==1)&&((((a19==4)&&(a29==5))||(((a29==8)&&(a19==3))||((a19==3)&&(a29==9))))&&(input==3)))&&(a20==1))))&&(a28==1))))&&!(a0==1)))){ + a19 = 2; + a20 = 0; + a25 = 1; + a0 = 1; + a29 = 5; + a11 = 0; + return 21; + } else if((((a28==1)&&((a19==4)&&((((a7==1)&&((a22==1)&&((a14==8)&&(((a20==1)&&((input==1)&&((a29==6)||(a29==7))))&&(a25==1)))))&&!(a24==1))&&(a11==1))))&&(a0==1))){ + a7 = 0; + a11 = 0; + a29 = 6; + a20 = 0; + return 21; + } else if((((!(a24==1)&&((a22==1)&&((a7==1)&&(!(a25==1)&&((a14==9)&&(((a19==5)&&(((input==6)&&((a29==6)||(a29==7)))&&!(a11==1)))&&(a28==1)))))))&&!(a20==1))&&!(a0==1))){ + a20 = 1; + a25 = 1; + a24 = 1; + a14 = 8; + a29 = 7; + a7 = 0; + a11 = 1; + return 23; + } else if(((a24==1)&&((a14==9)&&((a20==1)&&((((a28==1)&&(((((a19==5)&&((a11==1)&&(input==5)))&&(a29==9))&&(a0==1))&&(a22==1)))&&!(a7==1))&&(a25==1)))))){ + a29 = 8; + a0 = 0; + a11 = 0; + a25 = 0; + a24 = 0; + a7 = 1; + a20 = 0; + a19 = 1; + return 21; + } else if((((a14==9)&&((((a19==3)&&((((!(a24==1)&&(!(a11==1)&&((input==6)&&(((a29==7)||(a29==8))||(a29==9)))))&&(a7==1))&&(a22==1))&&(a28==1)))&&!(a0==1))&&!(a25==1)))&&(a20==1))){ + a7 = 0; + a24 = 1; + a14 = 8; + a19 = 2; + a29 = 9; + a20 = 0; + a11 = 1; + return 23; + } else if(((a28==1)&&(!(a7==1)&&(((a14==9)&&(!(a11==1)&&(((a24==1)&&((!(a20==1)&&((a22==1)&&((a19==4)&&(input==2))))&&(a25==1)))&&(a29==6))))&&(a0==1))))){ + a25 = 0; + a24 = 0; + a7 = 1; + a19 = 1; + a0 = 0; + a14 = 8; + return -1; + } else if((((((a28==1)&&(!(a11==1)&&((((a20==1)&&(((((a29==5)&&(a19==3))||(((a19==2)&&(a29==8))||((a29==9)&&(a19==2))))&&(input==1))&&!(a7==1)))&&(a22==1))&&!(a24==1))))&&(a14==8))&&!(a25==1))&&!(a0==1))){ + a19 = 2; + a20 = 0; + a0 = 1; + a14 = 9; + a29 = 6; + a25 = 1; + return 24; + } else if(((a25==1)&&((a22==1)&&(!(a20==1)&&((((!(a11==1)&&(!(a7==1)&&((a19==4)&&(!(a0==1)&&(((a29==5)||(a29==6))&&(input==2))))))&&(a28==1))&&(a14==8))&&(a24==1)))))){ + a29 = 9; + a11 = 1; + a19 = 1; + a14 = 9; + a25 = 0; + a24 = 0; + return 21; + } else if((((a28==1)&&(((a24==1)&&((((a19==1)&&(((a29==7)&&((a14==8)&&((a22==1)&&(input==6))))&&(a11==1)))&&(a20==1))&&!(a0==1)))&&(a7==1)))&&!(a25==1))){ + a25 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if(((((!(a25==1)&&(((a0==1)&&((a24==1)&&((a28==1)&&((((a14==10)&&(input==1))&&(a22==1))&&(a11==1)))))&&(a19==1)))&&(a29==7))&&!(a7==1))&&(a20==1))){ + a25 = 1; + a0 = 0; + a7 = 1; + a29 = 9; + a14 = 9; + a11 = 0; + return -1; + } else if((((a25==1)&&((a29==7)&&(!(a20==1)&&(((a19==3)&&((((((input==6)&&(a22==1))&&(a11==1))&&(a0==1))&&(a28==1))&&(a14==9)))&&(a24==1)))))&&!(a7==1))){ + a0 = 0; + a29 = 5; + a20 = 1; + a7 = 1; + a14 = 8; + a19 = 5; + return 24; + } else if(((a22==1)&&((a29==6)&&((a28==1)&&((a14==9)&&(((a11==1)&&((((((a25==1)&&(input==2))&&!(a0==1))&&!(a20==1))&&!(a24==1))&&!(a7==1)))&&(a19==4))))))){ + a11 = 0; + a20 = 1; + a14 = 8; + a25 = 0; + a19 = 3; + return 21; + } else if(((!(a0==1)&&(!(a11==1)&&((a22==1)&&(((a14==9)&&((((a7==1)&&(((input==3)&&((a29==6)||(a29==7)))&&(a28==1)))&&(a19==1))&&!(a24==1)))&&(a25==1)))))&&!(a20==1))){ + a20 = 1; + a24 = 1; + a29 = 5; + a11 = 1; + a14 = 8; + a0 = 1; + return -1; + } else if((((((a28==1)&&(!(a0==1)&&((a22==1)&&(((!(a7==1)&&(((a20==1)&&(input==6))&&(a19==5)))&&(a29==5))&&!(a11==1)))))&&(a25==1))&&(a14==9))&&(a24==1))){ + a29 = 9; + a7 = 1; + a11 = 1; + a14 = 8; + a25 = 0; + return 23; + } else if(((a22==1)&&((((!(a20==1)&&(!(a24==1)&&((!(a11==1)&&((a7==1)&&(((input==6)&&((a29==7)||((a29==5)||(a29==6))))&&(a25==1))))&&(a19==3))))&&(a28==1))&&(a14==8))&&!(a0==1)))){ + a11 = 1; + a25 = 0; + a24 = 1; + a7 = 0; + a19 = 4; + a29 = 9; + return 24; + } else if(((!(a25==1)&&(((!(a24==1)&&(((a14==9)&&(!(a11==1)&&(((a0==1)&&((input==6)&&(a20==1)))&&(a29==5))))&&(a22==1)))&&(a19==3))&&(a28==1)))&&(a7==1))){ + a14 = 8; + a0 = 0; + a19 = 4; + a20 = 0; + return 23; + } else if(((((!(a0==1)&&((a22==1)&&((a7==1)&&(((a11==1)&&(((a19==4)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==4)))&&(a28==1)))&&!(a24==1)))))&&(a20==1))&&(a25==1))&&(a14==8))){ + a24 = 1; + a7 = 0; + a19 = 2; + a29 = 9; + return 23; + } else if((((a28==1)&&(!(a7==1)&&((a11==1)&&(!(a20==1)&&((((((a19==4)&&((input==1)&&(((a29==7)||(a29==8))||(a29==9))))&&(a14==9))&&!(a24==1))&&!(a0==1))&&(a25==1))))))&&(a22==1))){ + a19 = 3; + a20 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if(((a28==1)&&((a29==5)&&((((a14==9)&&((!(a24==1)&&((a25==1)&&(((a7==1)&&((input==1)&&!(a0==1)))&&!(a11==1))))&&(a22==1)))&&!(a20==1))&&(a19==4))))){ + a14 = 8; + a7 = 0; + a19 = 2; + a25 = 0; + a11 = 1; + return 24; + } else if(((a25==1)&&(!(a7==1)&&((a14==9)&&((!(a20==1)&&((((a19==4)&&(((!(a0==1)&&(input==4))&&(a28==1))&&(a24==1)))&&(a22==1))&&(a29==7)))&&!(a11==1)))))){ + a0 = 1; + a29 = 5; + a19 = 1; + a25 = 0; + return -1; + } else if((!(a20==1)&&(((((a25==1)&&((((!(a11==1)&&(!(a7==1)&&((input==2)&&(a24==1))))&&(a22==1))&&(a29==7))&&(a14==9)))&&(a19==4))&&(a0==1))&&(a28==1)))){ + a29 = 5; + a7 = 1; + a19 = 1; + a20 = 1; + a14 = 8; + a11 = 1; + return -1; + } else if((((!(a24==1)&&(!(a20==1)&&((a28==1)&&((a25==1)&&(!(a7==1)&&((!(a11==1)&&((input==5)&&(((a19==4)&&(a29==5))||(((a29==8)&&(a19==3))||((a19==3)&&(a29==9))))))&&(a14==9)))))))&&!(a0==1))&&(a22==1))){ + a19 = 1; + a14 = 8; + a0 = 1; + a20 = 1; + a29 = 5; + a24 = 1; + a11 = 1; + a7 = 1; + return -1; + } else if((((((a28==1)&&((((a11==1)&&((a19==3)&&((((input==4)&&(a20==1))&&(a29==9))&&(a25==1))))&&!(a24==1))&&(a22==1)))&&(a14==9))&&(a0==1))&&(a7==1))){ + a24 = 1; + a29 = 5; + a19 = 1; + a14 = 8; + return -1; + } else if(((((!(a11==1)&&(((a24==1)&&((((a25==1)&&((((a29==6)&&(a19==4))||(((a29==9)&&(a19==3))||((a29==5)&&(a19==4))))&&(input==6)))&&!(a0==1))&&!(a20==1)))&&(a22==1)))&&(a14==8))&&(a7==1))&&(a28==1))){ + a11 = 1; + a29 = 7; + a19 = 1; + return 24; + } else if(((a28==1)&&((a11==1)&&(((a14==8)&&(((!(a0==1)&&((a22==1)&&(((((a29==8)||(a29==9))&&(input==5))&&!(a24==1))&&!(a20==1))))&&(a7==1))&&(a19==4)))&&!(a25==1))))){ + a24 = 1; + a29 = 5; + a20 = 1; + a0 = 1; + a19 = 1; + a25 = 1; + return -1; + } else if(((a7==1)&&((a22==1)&&(!(a25==1)&&((a28==1)&&((((a14==9)&&((a20==1)&&((a0==1)&&((((a29==8)||(a29==9))&&(input==5))&&(a19==4)))))&&(a11==1))&&!(a24==1))))))){ + a29 = 7; + a20 = 0; + a14 = 10; + a24 = 1; + a25 = 1; + return 24; + } else if((((a22==1)&&((!(a0==1)&&(!(a24==1)&&(!(a7==1)&&((a28==1)&&((a25==1)&&((a14==8)&&(((((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))||((a29==5)&&(a19==5)))&&(input==2))))))))&&(a20==1)))&&(a11==1))){ + a7 = 1; + a0 = 1; + a29 = 5; + a24 = 1; + a19 = 1; + return -1; + } else if((((a22==1)&&(((((a19==5)&&(((a20==1)&&(((((a29==8)||((a29==6)||(a29==7)))&&(input==4))&&(a24==1))&&(a14==8)))&&!(a0==1)))&&!(a25==1))&&!(a7==1))&&(a28==1)))&&!(a11==1))){ + a19 = 4; + a20 = 0; + a7 = 1; + a11 = 1; + a29 = 6; + return 23; + } else if(((a20==1)&&(((((a28==1)&&((!(a24==1)&&((a22==1)&&(((((a29==8)||(a29==9))&&(input==6))&&!(a0==1))&&(a25==1))))&&!(a11==1)))&&(a19==4))&&(a7==1))&&(a14==9)))){ + a29 = 5; + a14 = 8; + a19 = 1; + a11 = 1; + a24 = 1; + a0 = 1; + return -1; + } else if((((a28==1)&&((((((((a11==1)&&(!(a7==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==5))))&&(a19==5))&&!(a25==1))&&(a0==1))&&(a20==1))&&(a14==8))&&(a24==1)))&&(a22==1))){ + a7 = 1; + a24 = 0; + a29 = 6; + a19 = 4; + return 23; + } else if((((a14==8)&&(((((!(a7==1)&&(((a22==1)&&(((input==4)&&((a29==6)||(a29==7)))&&(a11==1)))&&(a19==1)))&&!(a25==1))&&!(a20==1))&&(a28==1))&&(a0==1)))&&!(a24==1))){ + a29 = 7; + a19 = 3; + a25 = 1; + a0 = 0; + a20 = 1; + a24 = 1; + a11 = 0; + return 23; + } else if((((((a7==1)&&((a28==1)&&(((a24==1)&&(((a14==8)&&(!(a20==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==1))))&&!(a11==1)))&&(a22==1))))&&(a19==4))&&!(a25==1))&&!(a0==1))){ + a29 = 5; + a20 = 1; + a0 = 1; + a19 = 1; + a25 = 1; + a11 = 1; + return -1; + } else if((((a11==1)&&((a19==4)&&(!(a24==1)&&(!(a25==1)&&(((((a7==1)&&((a22==1)&&((a28==1)&&(input==1))))&&(a0==1))&&(a14==9))&&(a29==7))))))&&(a20==1))){ + a25 = 1; + a24 = 1; + a7 = 0; + a14 = 8; + a20 = 0; + a0 = 0; + a29 = 5; + return 21; + } else if(((a0==1)&&((a24==1)&&((a28==1)&&((a25==1)&&(((((((((a29==7)||((a29==5)||(a29==6)))&&(input==6))&&(a11==1))&&!(a20==1))&&(a22==1))&&(a19==4))&&(a14==10))&&(a7==1))))))){ + a29 = 8; + a24 = 0; + a14 = 8; + a11 = 0; + a19 = 3; + a25 = 0; + return 24; + } else if((((a22==1)&&(((((a25==1)&&(!(a11==1)&&((((a20==1)&&((input==4)&&(a29==6)))&&(a0==1))&&(a14==9))))&&(a24==1))&&(a19==2))&&(a28==1)))&&(a7==1))){ + a19 = 1; + a14 = 8; + a11 = 1; + a29 = 5; + return -1; + } else if((((a19==2)&&((!(a24==1)&&((!(a7==1)&&((a11==1)&&(((a25==1)&&((a28==1)&&((input==3)&&(a20==1))))&&(a29==7))))&&(a0==1)))&&(a14==8)))&&(a22==1))){ + a20 = 0; + a24 = 1; + a29 = 6; + a0 = 0; + return 23; + } else if(((a14==8)&&((a0==1)&&(((a22==1)&&(!(a24==1)&&((((a28==1)&&(((input==3)&&((((a29==8)&&(a19==1))||((a29==9)&&(a19==1)))||((a19==2)&&(a29==5))))&&(a7==1)))&&(a20==1))&&(a11==1))))&&!(a25==1))))){ + a29 = 8; + a19 = 5; + a24 = 1; + a25 = 1; + a0 = 0; + return 23; + } else if(((((((a25==1)&&((a28==1)&&((a19==4)&&((a0==1)&&((a14==9)&&(!(a20==1)&&((input==2)&&((a29==6)||(a29==7)))))))))&&(a11==1))&&(a24==1))&&!(a7==1))&&(a22==1))){ + a14 = 8; + a19 = 1; + a7 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if((!(a0==1)&&((a14==9)&&((a25==1)&&(((a29==7)&&(((a24==1)&&(!(a7==1)&&((((input==1)&&!(a20==1))&&(a22==1))&&!(a11==1))))&&(a19==4)))&&(a28==1)))))){ + a14 = 8; + a25 = 0; + a29 = 5; + a7 = 1; + a19 = 1; + return 21; + } else if(((((a19==1)&&(!(a7==1)&&((a24==1)&&((((a22==1)&&((((a25==1)&&(input==5))&&!(a0==1))&&!(a11==1)))&&(a29==8))&&(a14==9)))))&&(a28==1))&&(a20==1))){ + a20 = 0; + a14 = 8; + a29 = 6; + a25 = 0; + a11 = 1; + a19 = 3; + return 23; + } else if(((((a25==1)&&((((((!(a0==1)&&((a19==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==2))))&&(a14==8))&&(a20==1))&&!(a24==1))&&(a7==1))&&!(a11==1)))&&(a28==1))&&(a22==1))){ + a7 = 0; + a11 = 1; + a29 = 8; + a24 = 1; + return 23; + } else if(((((a22==1)&&(((!(a7==1)&&((a11==1)&&(!(a20==1)&&((((input==5)&&(a28==1))&&(a14==9))&&!(a24==1)))))&&!(a25==1))&&(a19==4)))&&(a29==9))&&(a0==1))){ + a7 = 1; + a19 = 3; + a29 = 7; + a14 = 8; + a11 = 0; + return 23; + } else if((!(a0==1)&&((a24==1)&&(((a22==1)&&(!(a7==1)&&((a28==1)&&((a19==2)&&((((a14==9)&&((input==5)&&((a29==9)||((a29==7)||(a29==8)))))&&(a25==1))&&!(a20==1))))))&&!(a11==1))))){ + a11 = 1; + a24 = 0; + a25 = 0; + a19 = 4; + a0 = 1; + a29 = 5; + return 24; + } else if((!(a7==1)&&((a20==1)&&((((((a22==1)&&(((a11==1)&&((a19==5)&&((input==2)&&((a29==8)||(a29==9)))))&&(a28==1)))&&!(a25==1))&&(a0==1))&&(a14==8))&&!(a24==1))))){ + a0 = 0; + a19 = 2; + a24 = 1; + a29 = 5; + a20 = 0; + a25 = 1; + return 23; + } else if((!(a24==1)&&(((a22==1)&&((a25==1)&&(((a0==1)&&(((a11==1)&&((a20==1)&&((input==1)&&(((a29==9)&&(a19==4))||((a19==5)&&(a29==5))))))&&(a7==1)))&&(a14==10))))&&(a28==1)))){ + a29 = 8; + a11 = 0; + a14 = 8; + a7 = 0; + a19 = 4; + a20 = 0; + return 24; + } else if((!(a0==1)&&((((a14==9)&&(!(a20==1)&&(((a19==1)&&((((((a29==6)||(a29==7))&&(input==5))&&(a22==1))&&(a28==1))&&!(a11==1)))&&(a25==1))))&&!(a24==1))&&(a7==1)))){ + a11 = 1; + a29 = 5; + a7 = 0; + a19 = 4; + a14 = 8; + a24 = 1; + return 24; + } else if((!(a24==1)&&((a7==1)&&(((a14==9)&&((!(a20==1)&&((a19==1)&&(((a28==1)&&(((input==6)&&((a29==7)||(a29==8)))&&(a0==1)))&&(a11==1))))&&(a22==1)))&&(a25==1))))){ + a25 = 0; + a24 = 1; + a19 = 3; + a29 = 7; + a7 = 0; + a0 = 0; + a20 = 1; + a14 = 8; + return 23; + } else if(((((a11==1)&&(((a7==1)&&(((a28==1)&&(((a0==1)&&((a14==8)&&((input==3)&&(a22==1))))&&(a24==1)))&&(a29==8)))&&!(a25==1)))&&(a19==3))&&!(a20==1))){ + a20 = 1; + a11 = 0; + a29 = 7; + a19 = 2; + a25 = 1; + return 21; + } else if(((a14==8)&&(!(a20==1)&&(((a28==1)&&((a25==1)&&(((a29==8)&&((a0==1)&&((a19==5)&&(((a11==1)&&(input==6))&&!(a7==1)))))&&(a22==1))))&&(a24==1))))){ + a20 = 1; + a19 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if((((!(a24==1)&&((!(a11==1)&&((((((a0==1)&&((input==5)&&((a29==7)||(a29==8))))&&(a25==1))&&!(a7==1))&&!(a20==1))&&(a28==1)))&&(a19==3)))&&(a22==1))&&(a14==8))){ + a24 = 1; + a11 = 1; + a20 = 1; + a29 = 5; + a19 = 1; + a7 = 1; + return -1; + } else if(((a22==1)&&(((a28==1)&&((!(a24==1)&&(!(a0==1)&&(((((a29==9)&&(!(a25==1)&&(input==1)))&&!(a20==1))&&!(a7==1))&&(a14==9))))&&(a19==5)))&&!(a11==1)))){ + a11 = 1; + a7 = 1; + a25 = 1; + a0 = 1; + a24 = 1; + a19 = 1; + a20 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((a24==1)&&((((a29==5)&&((a22==1)&&(!(a25==1)&&((a14==10)&&((a28==1)&&((((input==5)&&(a0==1))&&(a7==1))&&(a19==2)))))))&&(a20==1))&&(a11==1)))){ + a25 = 1; + a19 = 3; + a14 = 9; + a7 = 0; + a29 = 7; + a11 = 0; + a0 = 0; + return -1; + } else if(((!(a25==1)&&((a0==1)&&(((a14==8)&&((a22==1)&&((a20==1)&&((!(a24==1)&&((((a29==6)||(a29==7))&&(input==6))&&(a19==1)))&&!(a7==1)))))&&(a11==1))))&&(a28==1))){ + a7 = 1; + a29 = 5; + a25 = 1; + a24 = 1; + return -1; + } else if((!(a24==1)&&((((a28==1)&&(((!(a11==1)&&(((!(a20==1)&&((input==5)&&(a19==1)))&&!(a0==1))&&(a22==1)))&&!(a25==1))&&(a29==5)))&&(a14==8))&&(a7==1)))){ + a24 = 1; + a29 = 7; + a11 = 1; + a19 = 2; + a25 = 1; + return -1; + } else if((((a22==1)&&((a14==10)&&(((((((a20==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==1))&&!(a25==1)))&&(a7==1))&&(a0==1))&&(a28==1))&&(a24==1))&&(a11==1))))&&(a19==4))){ + a29 = 9; + a0 = 0; + a14 = 8; + a19 = 1; + return 24; + } else if(((a22==1)&&(((a28==1)&&(((a7==1)&&((a20==1)&&(!(a24==1)&&((a0==1)&&((a19==3)&&(((input==1)&&(((a29==6)||(a29==7))||(a29==8)))&&(a14==9)))))))&&(a25==1)))&&(a11==1)))){ + a19 = 2; + a25 = 0; + a7 = 0; + a24 = 1; + a14 = 10; + a29 = 7; + return 23; + } else if((((!(a24==1)&&(((a11==1)&&((a20==1)&&((a22==1)&&((((a14==9)&&(((a29==6)||(a29==7))&&(input==3)))&&!(a7==1))&&(a19==2)))))&&!(a0==1)))&&(a28==1))&&(a25==1))){ + a19 = 3; + a14 = 8; + a24 = 1; + a20 = 0; + a29 = 5; + return 23; + } else if(((((a22==1)&&((a0==1)&&(((a24==1)&&(((!(a20==1)&&((a19==4)&&((input==5)&&(a29==7))))&&(a14==9))&&!(a25==1)))&&(a28==1))))&&(a7==1))&&(a11==1))){ + a14 = 8; + a29 = 9; + a19 = 2; + a0 = 0; + return 24; + } else if((((((a14==9)&&((((!(a24==1)&&(((a0==1)&&(((a29==8)||(a29==9))&&(input==4)))&&!(a20==1)))&&(a7==1))&&!(a11==1))&&(a22==1)))&&(a19==5))&&(a28==1))&&!(a25==1))){ + a20 = 1; + a19 = 3; + a11 = 1; + a25 = 1; + a7 = 0; + a29 = 5; + a14 = 8; + a0 = 0; + a24 = 1; + return -1; + } else if((((((a22==1)&&(!(a25==1)&&((a11==1)&&((a29==7)&&(((((input==1)&&!(a24==1))&&!(a0==1))&&(a20==1))&&(a28==1))))))&&!(a7==1))&&(a19==4))&&(a14==8))){ + a19 = 2; + a0 = 1; + a11 = 0; + a14 = 9; + a20 = 0; + return 21; + } else if((((a14==8)&&(((a25==1)&&((a22==1)&&((!(a20==1)&&((a24==1)&&(!(a0==1)&&(((input==6)&&(a28==1))&&(a7==1)))))&&!(a11==1))))&&(a29==8)))&&(a19==3))){ + a29 = 6; + a25 = 0; + a11 = 1; + a19 = 4; + return -1; + } else if((((a7==1)&&(((a25==1)&&(((((a20==1)&&((a19==5)&&((a28==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==2)))))&&(a11==1))&&(a22==1))&&!(a24==1)))&&!(a0==1)))&&(a14==8))){ + a19 = 1; + a20 = 0; + a29 = 7; + a24 = 1; + return 24; + } else if((!(a24==1)&&((((a22==1)&&((a25==1)&&((a20==1)&&(!(a0==1)&&(((((input==2)&&((a29==6)||(a29==7)))&&(a14==9))&&!(a11==1))&&(a28==1))))))&&!(a7==1))&&(a19==4)))){ + a14 = 8; + a19 = 1; + a29 = 5; + a7 = 1; + a11 = 1; + a0 = 1; + a24 = 1; + return -1; + } else if(((((a14==9)&&(((a19==2)&&((((((((a29==7)||(a29==8))&&(input==6))&&(a11==1))&&(a25==1))&&(a22==1))&&!(a7==1))&&(a28==1)))&&!(a24==1)))&&!(a20==1))&&!(a0==1))){ + a14 = 8; + a29 = 5; + a0 = 1; + a7 = 1; + a20 = 1; + a24 = 1; + a19 = 1; + return -1; + } else if(((a11==1)&&((a22==1)&&(((!(a25==1)&&((!(a20==1)&&((a14==8)&&((a19==5)&&(!(a0==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==1))))))&&(a7==1)))&&(a24==1))&&(a28==1))))){ + a25 = 1; + a0 = 1; + a19 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if((((((a28==1)&&((((a20==1)&&((a11==1)&&((a25==1)&&((((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))&&(input==1)))))&&!(a7==1))&&!(a0==1)))&&(a22==1))&&(a24==1))&&(a14==9))){ + a19 = 2; + a11 = 0; + a14 = 8; + a29 = 8; + a20 = 0; + return -1; + } else if(((((a14==9)&&((a20==1)&&((a29==5)&&((((a28==1)&&((a24==1)&&((a11==1)&&((input==5)&&(a22==1)))))&&!(a0==1))&&!(a7==1)))))&&(a25==1))&&(a19==1))){ + a7 = 1; + a14 = 8; + a0 = 1; + return -1; + } else if(((a29==9)&&((a24==1)&&((a20==1)&&((a11==1)&&(!(a25==1)&&(((a22==1)&&(!(a7==1)&&(((a19==3)&&((input==6)&&(a28==1)))&&!(a0==1))))&&(a14==9)))))))){ + a7 = 1; + a29 = 5; + a0 = 1; + a19 = 2; + return -1; + } else if((((a0==1)&&((((((a11==1)&&(!(a24==1)&&(((a25==1)&&((input==1)&&(a14==8)))&&!(a20==1))))&&(a28==1))&&(a19==2))&&(a29==6))&&(a22==1)))&&(a7==1))){ + a0 = 0; + a29 = 8; + a19 = 1; + return 21; + } else if(((a11==1)&&((a29==9)&&(!(a7==1)&&((((a14==9)&&((a19==2)&&((a0==1)&&(((a28==1)&&((input==4)&&(a24==1)))&&(a20==1)))))&&(a25==1))&&(a22==1)))))){ + a19 = 5; + a20 = 0; + return 23; + } else if((((a22==1)&&(((a28==1)&&(!(a24==1)&&((a14==9)&&(!(a20==1)&&((a0==1)&&((a19==1)&&((((a29==7)||(a29==8))&&(input==4))&&(a25==1))))))))&&(a7==1)))&&(a11==1))){ + a29 = 5; + a20 = 1; + a24 = 1; + a14 = 8; + return -1; + } else if(((a22==1)&&((a25==1)&&((a14==9)&&((((a11==1)&&(((((((a29==6)||(a29==7))&&(input==6))&&(a24==1))&&!(a20==1))&&(a19==4))&&!(a0==1)))&&(a28==1))&&(a7==1)))))){ + a29 = 7; + a14 = 8; + a19 = 5; + a7 = 0; + return 23; + } else if((((a22==1)&&((a29==5)&&((a24==1)&&((((a14==9)&&((a28==1)&&((!(a20==1)&&((input==1)&&(a0==1)))&&!(a7==1))))&&(a19==5))&&(a11==1)))))&&!(a25==1))){ + a7 = 1; + a19 = 1; + a14 = 8; + a20 = 1; + a25 = 1; + return -1; + } else if(((((a25==1)&&(((((a19==1)&&(((((input==5)&&((a29==6)||(a29==7)))&&(a22==1))&&(a0==1))&&(a14==8)))&&!(a20==1))&&!(a11==1))&&(a24==1)))&&(a28==1))&&!(a7==1))){ + a11 = 1; + a29 = 8; + a0 = 0; + a20 = 1; + a19 = 3; + return 23; + } else if(((a28==1)&&((a24==1)&&((a19==1)&&((((a25==1)&&(!(a11==1)&&((a0==1)&&((((input==1)&&((a29==5)||(a29==6)))&&!(a7==1))&&(a20==1)))))&&(a14==8))&&(a22==1)))))){ + a0 = 0; + a29 = 9; + a11 = 1; + a19 = 4; + return 23; + } else if(((a28==1)&&(((a22==1)&&((a11==1)&&(((!(a25==1)&&(((a29==5)&&((!(a0==1)&&(input==2))&&!(a20==1)))&&(a19==2)))&&!(a7==1))&&(a14==9))))&&(a24==1)))){ + a19 = 3; + a11 = 0; + a25 = 1; + a7 = 1; + a0 = 1; + a24 = 0; + return -1; + } else if(((a20==1)&&((a25==1)&&(((!(a0==1)&&(((a24==1)&&((((input==3)&&(((a19==4)&&(a29==6))||(((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))))&&(a28==1))&&!(a7==1)))&&!(a11==1)))&&(a22==1))&&(a14==8))))){ + a14 = 9; + a19 = 5; + a24 = 0; + a11 = 1; + a29 = 5; + return 21; + } else if((!(a11==1)&&(((a22==1)&&((((a14==9)&&(!(a20==1)&&(((a24==1)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==2))&&!(a25==1)))&&(a19==2))))&&(a28==1))&&!(a0==1)))&&!(a7==1)))){ + a7 = 1; + a24 = 0; + a29 = 5; + a11 = 1; + return -1; + } else if((!(a20==1)&&((a14==8)&&((a25==1)&&(((a19==2)&&(((a28==1)&&(((!(a7==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==2)))&&!(a24==1))&&(a22==1)))&&(a0==1)))&&(a11==1)))))){ + a7 = 1; + a19 = 1; + a24 = 1; + a20 = 1; + a29 = 9; + a0 = 0; + a11 = 0; + a25 = 0; + return 21; + } else if((((a22==1)&&((((a19==1)&&((((a14==9)&&(!(a0==1)&&(!(a25==1)&&((input==3)&&((a29==7)||(a29==8))))))&&!(a11==1))&&(a28==1)))&&(a20==1))&&!(a24==1)))&&(a7==1))){ + a25 = 1; + a29 = 7; + a14 = 8; + a19 = 3; + a24 = 1; + return -1; + } else if(((a14==9)&&(!(a24==1)&&((a11==1)&&((a20==1)&&((a25==1)&&((a0==1)&&((a28==1)&&((!(a7==1)&&((input==4)&&(((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))))&&(a22==1)))))))))){ + a25 = 0; + a29 = 8; + a19 = 3; + a14 = 10; + a24 = 1; + a7 = 1; + a20 = 0; + return 21; + } else if((((a14==8)&&(((!(a11==1)&&((a22==1)&&((((a19==5)&&(((input==5)&&((a29==7)||(a29==8)))&&!(a7==1)))&&(a28==1))&&(a0==1))))&&(a25==1))&&!(a24==1)))&&(a20==1))){ + a11 = 1; + a19 = 1; + a14 = 9; + a20 = 0; + a29 = 8; + return 24; + } else if(((!(a24==1)&&(((a22==1)&&((a7==1)&&(((((a11==1)&&((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))&&(input==5)))&&!(a20==1))&&!(a25==1))&&(a14==8))))&&(a28==1)))&&(a0==1))){ + a29 = 9; + a19 = 1; + a24 = 1; + a25 = 1; + a0 = 0; + return 21; + } else if(((a25==1)&&((((a14==8)&&(!(a0==1)&&((a24==1)&&((a29==5)&&((a20==1)&&((a28==1)&&(((a19==5)&&(input==5))&&!(a7==1))))))))&&(a11==1))&&(a22==1)))){ + a7 = 1; + a29 = 9; + a25 = 0; + return -1; + } else if(((a14==8)&&((a22==1)&&((a28==1)&&((a19==2)&&((!(a25==1)&&(((a29==9)&&((!(a7==1)&&((input==6)&&(a24==1)))&&!(a20==1)))&&!(a11==1)))&&!(a0==1))))))){ + a11 = 1; + a7 = 1; + a19 = 1; + a29 = 5; + a20 = 1; + a0 = 1; + a25 = 1; + return -1; + } else if(((((a24==1)&&((((!(a11==1)&&(((((a20==1)&&(input==2))&&(a19==4))&&(a0==1))&&(a29==9)))&&!(a7==1))&&(a28==1))&&(a22==1)))&&!(a25==1))&&(a14==9))){ + a7 = 1; + a19 = 1; + a29 = 5; + a25 = 1; + a14 = 8; + a11 = 1; + return -1; + } else if(((a20==1)&&((!(a25==1)&&((((a28==1)&&(((a11==1)&&((a19==5)&&((a22==1)&&((input==1)&&(((a29==7)||(a29==8))||(a29==9))))))&&(a0==1)))&&(a14==9))&&(a24==1)))&&(a7==1)))){ + a24 = 0; + a25 = 1; + a19 = 4; + a29 = 7; + a0 = 0; + a14 = 8; + return 21; + } else if(((!(a11==1)&&(!(a0==1)&&(((((a25==1)&&((((((a19==4)&&(a29==5))||(((a29==8)&&(a19==3))||((a29==9)&&(a19==3))))&&(input==3))&&(a22==1))&&!(a20==1)))&&!(a7==1))&&(a28==1))&&!(a24==1))))&&(a14==9))){ + a0 = 1; + a20 = 1; + a7 = 1; + a19 = 2; + a29 = 8; + return -1; + } else if(((((a11==1)&&(((a19==3)&&(!(a0==1)&&((a14==8)&&(((((((a29==5)||(a29==6))||(a29==7))&&(input==3))&&(a22==1))&&(a7==1))&&(a24==1)))))&&(a25==1)))&&(a28==1))&&!(a20==1))){ + a19 = 2; + a25 = 0; + a20 = 1; + a29 = 7; + return 23; + } else if((!(a7==1)&&(((!(a25==1)&&((a22==1)&&((a19==3)&&((((a28==1)&&((((a29==7)||(a29==8))&&(input==2))&&!(a11==1)))&&(a24==1))&&(a0==1)))))&&(a20==1))&&(a14==8)))){ + a11 = 1; + a25 = 1; + a7 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if((((a19==2)&&((a14==8)&&(((((a20==1)&&(!(a11==1)&&((a22==1)&&(((input==4)&&((a29==7)||(a29==8)))&&(a28==1)))))&&(a24==1))&&(a7==1))&&(a25==1))))&&(a0==1))){ + a0 = 0; + a25 = 0; + a20 = 0; + a29 = 7; + a19 = 5; + return 21; + } else if((((a24==1)&&((((a29==7)&&((a25==1)&&((a28==1)&&((((a19==1)&&(!(a7==1)&&(input==4)))&&!(a20==1))&&(a22==1)))))&&(a14==9))&&!(a11==1)))&&!(a0==1))){ + a11 = 1; + a14 = 8; + a19 = 2; + a29 = 6; + a20 = 1; + return -1; + } else if(((a22==1)&&((a29==8)&&((((((((a25==1)&&((a24==1)&&((a19==4)&&(input==3))))&&(a14==8))&&!(a7==1))&&(a28==1))&&(a0==1))&&!(a11==1))&&!(a20==1))))){ + a25 = 0; + a7 = 1; + a29 = 9; + a24 = 0; + a19 = 3; + return 21; + } else if(((a28==1)&&(!(a7==1)&&(((a25==1)&&(((((a0==1)&&((a20==1)&&((a22==1)&&((input==4)&&(a11==1)))))&&(a19==4))&&(a14==8))&&(a29==7)))&&!(a24==1))))){ + a7 = 1; + a0 = 0; + a29 = 8; + a19 = 1; + return 21; + } else if(((a25==1)&&((((a19==5)&&(!(a7==1)&&(((a22==1)&&(((a28==1)&&(((a0==1)&&(input==5))&&(a24==1)))&&!(a20==1)))&&(a14==8))))&&(a29==6))&&(a11==1)))){ + a11 = 0; + a29 = 9; + a19 = 1; + return 21; + } else if((!(a20==1)&&(((a28==1)&&((((a7==1)&&(((((((a19==5)&&(a29==5))||(((a29==8)&&(a19==4))||((a19==4)&&(a29==9))))&&(input==4))&&(a14==9))&&(a22==1))&&(a24==1)))&&!(a0==1))&&(a25==1)))&&(a11==1)))){ + a19 = 5; + a20 = 1; + a7 = 0; + a29 = 8; + return -1; + } else if(((((!(a7==1)&&(((a19==4)&&((((!(a20==1)&&(((a29==6)||(a29==7))&&(input==4)))&&!(a11==1))&&(a22==1))&&(a28==1)))&&(a24==1)))&&(a14==8))&&!(a0==1))&&!(a25==1))){ + a25 = 1; + a19 = 5; + a29 = 7; + a24 = 0; + a0 = 1; + return 23; + } else if(((a7==1)&&(((a29==5)&&((a0==1)&&((a22==1)&&((!(a25==1)&&((a28==1)&&((((input==6)&&!(a24==1))&&(a19==3))&&(a11==1))))&&!(a20==1)))))&&(a14==9)))){ + a25 = 1; + a19 = 4; + a29 = 8; + a7 = 0; + a14 = 8; + a24 = 1; + a0 = 0; + return 21; + } else if(((a11==1)&&((a28==1)&&((a20==1)&&((((a22==1)&&((((((((a19==3)&&(a29==8))||((a29==9)&&(a19==3)))||((a29==5)&&(a19==4)))&&(input==3))&&!(a24==1))&&(a14==10))&&(a0==1)))&&(a7==1))&&(a25==1)))))){ + a14 = 8; + a29 = 7; + a19 = 1; + a24 = 1; + a25 = 0; + a0 = 0; + return 23; + } else if(((((a11==1)&&((((((a0==1)&&(((((a29==8)||(a29==9))&&(input==4))&&(a22==1))&&(a19==1)))&&!(a20==1))&&(a28==1))&&(a14==9))&&(a24==1)))&&(a25==1))&&!(a7==1))){ + a14 = 8; + a7 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if(((!(a7==1)&&((a11==1)&&(!(a25==1)&&((a0==1)&&((((a28==1)&&(((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))&&(input==1))&&(a22==1)))&&(a14==9))&&!(a20==1))))))&&(a24==1))){ + a7 = 1; + a24 = 0; + a14 = 8; + a29 = 7; + a25 = 1; + a0 = 0; + a19 = 3; + return 21; + } else if((((a20==1)&&((a25==1)&&((a28==1)&&(((a7==1)&&((a29==5)&&((a19==5)&&(((a22==1)&&((input==1)&&(a24==1)))&&(a0==1)))))&&!(a11==1)))))&&(a14==9))){ + a11 = 1; + a19 = 1; + a14 = 8; + return -1; + } else if(((a19==4)&&((((a7==1)&&((((((a28==1)&&((((a29==7)||(a29==8))&&(input==6))&&(a20==1)))&&(a22==1))&&(a25==1))&&!(a24==1))&&(a0==1)))&&!(a11==1))&&(a14==8)))){ + a29 = 5; + a25 = 0; + a11 = 1; + a14 = 9; + return 23; + } else if(((((a22==1)&&(((!(a11==1)&&(((a28==1)&&((!(a0==1)&&((input==2)&&!(a24==1)))&&(a14==9)))&&(a19==1)))&&!(a25==1))&&(a7==1)))&&!(a20==1))&&(a29==8))){ + a24 = 1; + a19 = 4; + a29 = 5; + a11 = 1; + a7 = 0; + return -1; + } else if(((a0==1)&&(!(a7==1)&&((a25==1)&&((a24==1)&&(((((a22==1)&&(((((a29==5)||(a29==6))&&(input==2))&&(a28==1))&&!(a20==1)))&&(a14==10))&&(a19==2))&&(a11==1))))))){ + a25 = 0; + a14 = 9; + a11 = 0; + a19 = 4; + a20 = 1; + a29 = 6; + return -1; + } else if((((!(a11==1)&&(((a24==1)&&(((a28==1)&&(((input==3)&&((((a29==6)&&!(a25==1))&&(a19==1))||((((a25==1)&&(a29==9))&&(a19==5))||((a19==1)&&(!(a25==1)&&(a29==5))))))&&!(a7==1)))&&(a0==1)))&&(a14==8)))&&(a22==1))&&!(a20==1))){ + a11 = 1; + a19 = 5; + a29 = 5; + a0 = 0; + a25 = 0; + return 24; + } else if((((!(a24==1)&&((!(a11==1)&&(((!(a7==1)&&((a20==1)&&(((input==3)&&((a29==5)||(a29==6)))&&(a14==9))))&&(a28==1))&&!(a25==1)))&&(a0==1)))&&(a19==1))&&(a22==1))){ + a29 = 5; + a25 = 1; + a24 = 1; + a7 = 1; + a14 = 8; + a11 = 1; + return -1; + } else if((((a11==1)&&((a22==1)&&((a7==1)&&((a28==1)&&(((((input==1)&&((((a29==5)&&!(a25==1))&&(a19==1))||((((a25==1)&&(a29==8))&&(a19==5))||((a19==5)&&((a29==9)&&(a25==1))))))&&(a0==1))&&(a14==8))&&!(a24==1))))))&&(a20==1))){ + a7 = 0; + a20 = 0; + a11 = 0; + a25 = 0; + a29 = 7; + a19 = 5; + return 21; + } else if((((((((a22==1)&&(((((a20==1)&&((input==2)&&(a29==9)))&&(a25==1))&&(a7==1))&&(a14==9)))&&(a19==4))&&!(a0==1))&&(a11==1))&&!(a24==1))&&(a28==1))){ + a24 = 1; + a0 = 1; + a29 = 5; + a19 = 1; + a14 = 8; + return -1; + } else if(((a24==1)&&(((a14==8)&&((!(a7==1)&&(((!(a11==1)&&((a28==1)&&((a0==1)&&((input==2)&&((a29==6)||(a29==7))))))&&!(a20==1))&&(a19==3)))&&!(a25==1)))&&(a22==1)))){ + a20 = 1; + a11 = 1; + a7 = 1; + a19 = 4; + a29 = 9; + a0 = 0; + return 24; + } else if(((a20==1)&&(((a24==1)&&(((((a0==1)&&(((((((a29==5)||(a29==6))||(a29==7))&&(input==2))&&(a14==9))&&(a11==1))&&(a28==1)))&&!(a7==1))&&(a19==2))&&(a22==1)))&&(a25==1)))){ + a25 = 0; + a11 = 0; + a14 = 8; + a19 = 4; + a24 = 0; + a20 = 0; + a29 = 5; + return 23; + } else if((((a7==1)&&((!(a25==1)&&((a20==1)&&(((!(a11==1)&&(!(a0==1)&&(((input==4)&&((a29==7)||((a29==5)||(a29==6))))&&(a19==3))))&&(a24==1))&&(a28==1))))&&(a14==8)))&&(a22==1))){ + a20 = 0; + a19 = 4; + a0 = 1; + a11 = 1; + a24 = 0; + a29 = 8; + a25 = 1; + a14 = 9; + return 24; + } else if((((a14==9)&&(!(a11==1)&&(!(a20==1)&&(((a7==1)&&(((((a29==6)&&((input==3)&&(a28==1)))&&(a22==1))&&(a24==1))&&(a19==1)))&&(a25==1)))))&&!(a0==1))){ + a20 = 1; + a29 = 8; + a11 = 1; + a14 = 8; + a7 = 0; + a19 = 5; + return 24; + } else if(((a20==1)&&((a19==3)&&(!(a11==1)&&((!(a24==1)&&((a14==9)&&((!(a0==1)&&((((a28==1)&&(input==5))&&!(a25==1))&&(a29==6)))&&(a7==1))))&&(a22==1)))))){ + a29 = 7; + a24 = 1; + a0 = 1; + return -1; + } else if((((a28==1)&&((((a25==1)&&(((!(a24==1)&&((a0==1)&&(((input==3)&&(a19==4))&&!(a7==1))))&&(a11==1))&&(a29==6)))&&(a20==1))&&(a22==1)))&&(a14==8))){ + a20 = 0; + a25 = 0; + a24 = 1; + a29 = 5; + a0 = 0; + return 24; + } else if(((((((!(a24==1)&&((a25==1)&&((((a19==3)&&(!(a7==1)&&(input==4)))&&(a22==1))&&(a29==9))))&&!(a11==1))&&(a28==1))&&!(a0==1))&&(a20==1))&&(a14==8))){ + a14 = 9; + a24 = 1; + a29 = 5; + a19 = 2; + a25 = 0; + return 24; + } else if((((!(a0==1)&&(((a11==1)&&((((((((!(a7==1)&&!(a20==1))&&(a24==1))&&!(a25==1))&&(a29==8))&&(a19==5))||((a19==5)&&((((!(a7==1)&&!(a20==1))&&(a24==1))&&!(a25==1))&&(a29==9))))||(((a29==5)&&((a25==1)&&(!(a24==1)&&((a20==1)&&(a7==1)))))&&(a19==1)))&&(input==5)))&&(a28==1)))&&(a22==1))&&(a14==9))){ + a7 = 1; + a29 = 5; + a24 = 1; + a0 = 1; + a25 = 1; + a19 = 1; + a20 = 1; + a14 = 8; + return -1; + } else if(((a28==1)&&((a22==1)&&(((a19==5)&&(((((a11==1)&&((((a7==1)&&(input==4))&&(a14==9))&&!(a24==1)))&&!(a0==1))&&(a25==1))&&!(a20==1)))&&(a29==7))))){ + a19 = 1; + a24 = 1; + a29 = 5; + a14 = 8; + a0 = 1; + a20 = 1; + return -1; + } else if((((a22==1)&&((a28==1)&&((a24==1)&&(((((a29==8)&&((a0==1)&&(((input==6)&&(a20==1))&&(a19==1))))&&(a25==1))&&(a7==1))&&(a11==1)))))&&(a14==9))){ + a20 = 0; + a24 = 0; + a14 = 8; + a0 = 0; + a29 = 6; + a19 = 5; + return 23; + } else if(((!(a11==1)&&(((((a20==1)&&(((!(a7==1)&&(!(a0==1)&&((input==1)&&((a29==5)||(a29==6)))))&&(a22==1))&&!(a24==1)))&&(a14==9))&&(a19==5))&&!(a25==1)))&&(a28==1))){ + a24 = 1; + a29 = 9; + a19 = 1; + a20 = 0; + a14 = 8; + return -1; + } else if((((!(a25==1)&&((a28==1)&&((((((((input==2)&&(a24==1))&&(a11==1))&&(a29==8))&&(a14==9))&&!(a20==1))&&(a22==1))&&(a19==4))))&&!(a7==1))&&!(a0==1))){ + a14 = 8; + a19 = 3; + a29 = 5; + return 23; + } else if((((a7==1)&&(((a22==1)&&(!(a25==1)&&((a11==1)&&(!(a20==1)&&(((a28==1)&&((a0==1)&&(((a29==8)||(a29==9))&&(input==2))))&&!(a24==1))))))&&(a19==2)))&&(a14==9))){ + a0 = 0; + a24 = 1; + a29 = 9; + a14 = 8; + a19 = 5; + return -1; + } else if((((a7==1)&&(!(a20==1)&&(((a22==1)&&((a14==9)&&(((a25==1)&&(((((a29==8)||((a29==6)||(a29==7)))&&(input==3))&&(a28==1))&&(a19==3)))&&(a24==1))))&&(a11==1))))&&(a0==1))){ + a14 = 8; + a29 = 9; + a24 = 0; + a11 = 0; + a25 = 0; + return 21; + } else if((!(a11==1)&&(((!(a7==1)&&((a0==1)&&((a19==4)&&(((a14==9)&&(!(a24==1)&&(!(a20==1)&&((input==6)&&((a29==8)||(a29==9))))))&&!(a25==1)))))&&(a28==1))&&(a22==1)))){ + a7 = 1; + a25 = 1; + a11 = 1; + a24 = 1; + a20 = 1; + a14 = 8; + a29 = 5; + a19 = 1; + return -1; + } else if(((((a22==1)&&((!(a11==1)&&((a20==1)&&((a14==8)&&(((((input==4)&&!(a25==1))&&(a19==3))&&(a29==8))&&(a28==1)))))&&(a7==1)))&&(a0==1))&&(a24==1))){ + a11 = 1; + a19 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if(((((a20==1)&&((a22==1)&&((a0==1)&&((a25==1)&&((a28==1)&&((a11==1)&&(((a19==1)&&((input==2)&&(((a29==5)||(a29==6))||(a29==7))))&&(a24==1))))))))&&(a7==1))&&(a14==9))){ + a11 = 0; + a0 = 0; + a29 = 7; + a19 = 5; + a24 = 0; + a25 = 0; + return 24; + } else if(((a0==1)&&((((((a28==1)&&((((a22==1)&&((a20==1)&&(((a29==5)||(a29==6))&&(input==2))))&&(a11==1))&&(a7==1)))&&(a14==9))&&(a25==1))&&(a19==4))&&!(a24==1)))){ + a19 = 1; + a29 = 5; + a14 = 8; + a24 = 1; + return -1; + } else if((((a29==7)&&((a11==1)&&((a19==3)&&(!(a20==1)&&(((a28==1)&&(((((input==5)&&(a22==1))&&(a7==1))&&(a14==8))&&!(a24==1)))&&(a0==1))))))&&!(a25==1))){ + a19 = 5; + a7 = 0; + a29 = 6; + a0 = 0; + return 24; + } else if((((a22==1)&&(!(a11==1)&&((((((a14==9)&&((input==4)&&(((a19==1)&&((a29==5)&&!(a25==1)))||(((a19==5)&&((a29==8)&&(a25==1)))||((a19==5)&&((a25==1)&&(a29==9)))))))&&!(a0==1))&&!(a24==1))&&!(a7==1))&&(a28==1))))&&(a20==1))){ + a20 = 0; + a19 = 2; + a29 = 6; + a25 = 0; + a14 = 8; + return 21; + } else if((((a20==1)&&(((((a14==9)&&((a25==1)&&(((a0==1)&&(!(a24==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==6))))&&(a19==1))))&&(a22==1))&&!(a7==1))&&!(a11==1)))&&(a28==1))){ + a11 = 1; + a29 = 6; + a20 = 0; + return 23; + } else if(((a19==4)&&((!(a20==1)&&((a25==1)&&((!(a0==1)&&((a28==1)&&(!(a7==1)&&((a14==8)&&((((a29==8)||(a29==9))&&(input==5))&&!(a24==1))))))&&(a22==1))))&&(a11==1)))){ + a24 = 1; + a14 = 9; + a19 = 1; + a25 = 0; + a29 = 5; + return 23; + } else if((((((((a14==9)&&((((a29==5)&&(((a25==1)&&(input==6))&&(a19==2)))&&!(a11==1))&&(a24==1)))&&(a20==1))&&(a7==1))&&(a28==1))&&(a0==1))&&(a22==1))){ + a7 = 0; + a25 = 0; + a0 = 0; + a29 = 9; + a14 = 8; + a19 = 3; + a11 = 1; + return 24; + } else if(((a24==1)&&((a22==1)&&(!(a0==1)&&(((a20==1)&&((!(a11==1)&&((a28==1)&&(((input==3)&&((((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))||((a19==3)&&(a29==6))))&&!(a25==1))))&&(a14==8)))&&!(a7==1)))))){ + a7 = 1; + a0 = 1; + a29 = 5; + a19 = 1; + a11 = 1; + a25 = 1; + return -1; + } else if((((a11==1)&&(((((a25==1)&&(((a19==5)&&(((a28==1)&&((input==5)&&(a20==1)))&&(a7==1)))&&(a0==1)))&&(a22==1))&&(a14==10))&&(a24==1)))&&(a29==8))){ + a7 = 0; + a29 = 5; + a0 = 0; + a14 = 8; + return 21; + } else if(((((a28==1)&&((a25==1)&&((((a19==2)&&(((((input==2)&&((a29==7)||(a29==8)))&&!(a20==1))&&!(a11==1))&&(a7==1)))&&(a14==9))&&!(a0==1))))&&(a22==1))&&(a24==1))){ + a19 = 5; + a11 = 1; + a29 = 8; + a14 = 8; + return 21; + } else if(((a20==1)&&(((a19==4)&&((((a11==1)&&((a29==9)&&((a22==1)&&(((a24==1)&&((a28==1)&&(input==4)))&&(a14==8)))))&&!(a0==1))&&!(a25==1)))&&(a7==1)))){ + a29 = 8; + return -1; + } else if(((a19==1)&&((!(a25==1)&&((a11==1)&&((a0==1)&&(((a7==1)&&(((a28==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==5))&&(a20==1)))&&(a22==1)))&&!(a24==1)))))&&(a14==9)))){ + a11 = 0; + a29 = 8; + a20 = 0; + a7 = 0; + a19 = 3; + a14 = 8; + return 23; + } else if(((a14==10)&&((((a0==1)&&((a7==1)&&(((((((input==3)&&((a29==7)||((a29==5)||(a29==6))))&&!(a20==1))&&(a24==1))&&(a28==1))&&(a25==1))&&(a19==4))))&&(a22==1))&&(a11==1)))){ + a29 = 8; + a14 = 9; + a24 = 0; + a7 = 0; + return 23; + } else if(((((a22==1)&&((a14==9)&&((((((a7==1)&&((input==1)&&((((a19==4)&&(a29==8))||((a29==9)&&(a19==4)))||((a29==5)&&(a19==5)))))&&!(a11==1))&&(a28==1))&&!(a0==1))&&(a25==1))))&&!(a20==1))&&(a24==1))){ + a20 = 1; + a11 = 1; + a14 = 8; + a19 = 5; + a29 = 9; + return 21; + } else if((!(a20==1)&&((a24==1)&&(((a25==1)&&((a11==1)&&((a19==3)&&((a0==1)&&((a14==10)&&((a7==1)&&(((input==2)&&((a29==8)||(a29==9)))&&(a22==1))))))))&&(a28==1))))){ + a29 = 5; + a14 = 8; + a19 = 1; + a20 = 1; + return -1; + } else if((((!(a7==1)&&((((a22==1)&&(((a11==1)&&(((a25==1)&&((input==5)&&((a29==7)||((a29==5)||(a29==6)))))&&(a28==1)))&&(a14==9)))&&(a20==1))&&(a19==2)))&&(a24==1))&&(a0==1))){ + a7 = 1; + a14 = 8; + a19 = 1; + a29 = 5; + return -1; + } else if(((a7==1)&&(((a29==5)&&((a0==1)&&((a24==1)&&((a14==9)&&((a25==1)&&(((a11==1)&&((a20==1)&&((input==1)&&(a28==1))))&&(a19==2)))))))&&(a22==1)))){ + a25 = 0; + a11 = 0; + a14 = 8; + a0 = 0; + a19 = 1; + a20 = 0; + a24 = 0; + a29 = 6; + return -1; + } else if((((((!(a25==1)&&((a19==2)&&((((a0==1)&&((a14==9)&&((((a29==6)||(a29==7))||(a29==8))&&(input==2))))&&!(a11==1))&&!(a7==1))))&&(a22==1))&&(a28==1))&&(a24==1))&&(a20==1))){ + a19 = 4; + a29 = 8; + a7 = 1; + a11 = 1; + a25 = 1; + a24 = 0; + return -1; + } else if((((a11==1)&&((a0==1)&&(!(a24==1)&&((a14==9)&&(!(a25==1)&&((a22==1)&&(((a28==1)&&((((a29==6)&&(a19==4))||(((a19==3)&&(a29==9))||((a29==5)&&(a19==4))))&&(input==6)))&&(a7==1))))))))&&(a20==1))){ + a20 = 0; + a29 = 8; + a0 = 0; + a7 = 0; + a19 = 1; + a14 = 8; + return 23; + } else if(((a22==1)&&(!(a25==1)&&(!(a11==1)&&(!(a20==1)&&((!(a7==1)&&((a0==1)&&((!(a24==1)&&(((((a29==8)&&(a19==4))||((a19==4)&&(a29==9)))||((a29==5)&&(a19==5)))&&(input==3)))&&(a14==8))))&&(a28==1))))))){ + a25 = 1; + a29 = 8; + a14 = 9; + a24 = 1; + a19 = 4; + return 24; + } else if(((a19==4)&&((a22==1)&&((((a24==1)&&((a14==8)&&(((((!(a0==1)&&(input==2))&&!(a20==1))&&(a29==6))&&(a11==1))&&(a7==1))))&&(a28==1))&&!(a25==1))))){ + a11 = 0; + a0 = 1; + a14 = 9; + a19 = 5; + a29 = 5; + a25 = 1; + a24 = 0; + return 21; + } else if(((a14==9)&&((a7==1)&&((((a28==1)&&((a22==1)&&(!(a0==1)&&(((a24==1)&&((input==3)&&((((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))||((a19==5)&&(a29==5)))))&&!(a20==1)))))&&!(a11==1))&&(a25==1))))){ + a29 = 5; + a7 = 0; + a19 = 1; + a20 = 1; + a14 = 8; + a11 = 1; + return 23; + } else if(((a14==9)&&((((((a28==1)&&(((!(a7==1)&&(((input==1)&&((a29==8)||((a29==6)||(a29==7))))&&!(a24==1)))&&!(a25==1))&&!(a0==1)))&&(a22==1))&&(a11==1))&&(a19==1))&&(a20==1)))){ + a19 = 2; + a11 = 0; + a29 = 5; + a14 = 8; + a20 = 0; + return 21; + } else if((((a14==8)&&(!(a11==1)&&(!(a24==1)&&(((a20==1)&&((((a22==1)&&((a19==3)&&(((a29==6)||(a29==7))&&(input==4))))&&(a0==1))&&!(a7==1)))&&(a28==1)))))&&!(a25==1))){ + a29 = 9; + a19 = 1; + a25 = 1; + a0 = 0; + a7 = 1; + a11 = 1; + a24 = 1; + return 21; + } else if((!(a20==1)&&(!(a11==1)&&((((a19==2)&&(((a14==8)&&(!(a24==1)&&(!(a25==1)&&((a28==1)&&((input==3)&&((a29==8)||(a29==9)))))))&&(a22==1)))&&!(a0==1))&&!(a7==1))))){ + a19 = 5; + a24 = 1; + a11 = 1; + a0 = 1; + a29 = 5; + a14 = 9; + return 23; + } else if((!(a24==1)&&(!(a0==1)&&((a14==9)&&((a11==1)&&(((((a20==1)&&(!(a25==1)&&((a28==1)&&((input==4)&&((a29==7)||(a29==8))))))&&(a22==1))&&(a19==5))&&(a7==1))))))){ + a19 = 4; + a14 = 8; + a24 = 1; + a29 = 6; + return 21; + } else if(((a22==1)&&((((((input==1)&&(((a19==5)&&((((!(a7==1)&&!(a20==1))&&(a24==1))&&!(a25==1))&&(a29==9)))||((((!(a24==1)&&((a20==1)&&(a7==1)))&&(a25==1))&&(a29==5))&&(a19==1))))&&(a11==1))&&(a28==1))&&(a14==10))&&(a0==1)))){ + a7 = 1; + a25 = 1; + a24 = 1; + a19 = 5; + a0 = 0; + a29 = 5; + a11 = 0; + a20 = 0; + a14 = 9; + return -1; + } else if((((a22==1)&&(((!(a7==1)&&(((a0==1)&&(!(a20==1)&&(((a19==3)&&((a29==8)&&(input==2)))&&!(a11==1))))&&(a14==8)))&&(a25==1))&&(a28==1)))&&(a24==1))){ + a7 = 1; + a14 = 9; + a29 = 5; + a19 = 5; + a11 = 1; + return 21; + } else if((!(a20==1)&&(!(a25==1)&&((a11==1)&&(((a14==9)&&(((a28==1)&&(!(a0==1)&&(!(a7==1)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==1))&&(a24==1)))))&&(a19==2)))&&(a22==1)))))){ + a19 = 1; + a14 = 8; + a25 = 1; + a0 = 1; + a20 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if(((((a19==5)&&(((a7==1)&&(!(a0==1)&&((a22==1)&&(!(a25==1)&&(((!(a20==1)&&(input==6))&&!(a24==1))&&(a29==5))))))&&(a14==9)))&&!(a11==1))&&(a28==1))){ + a14 = 8; + a20 = 1; + a25 = 1; + a11 = 1; + a24 = 1; + a0 = 1; + a19 = 1; + return -1; + } else if(((((a22==1)&&((((!(a20==1)&&((((a24==1)&&((input==2)&&(((a29==5)||(a29==6))||(a29==7))))&&(a7==1))&&(a28==1)))&&(a19==2))&&!(a25==1))&&(a0==1)))&&(a14==8))&&(a11==1))){ + a29 = 7; + a24 = 0; + a7 = 0; + a25 = 1; + a19 = 5; + return 24; + } else if(((a14==9)&&((a19==2)&&(!(a24==1)&&((a0==1)&&(!(a25==1)&&((a28==1)&&(((a22==1)&&((a7==1)&&((((a29==5)||(a29==6))&&(input==1))&&!(a11==1))))&&(a20==1))))))))){ + a29 = 8; + a19 = 3; + a24 = 1; + a7 = 0; + return 24; + } else if(((a22==1)&&((a25==1)&&((((((a0==1)&&((!(a24==1)&&((input==1)&&((((a29==9)&&(a19==4))||((a29==5)&&(a19==5)))||((a29==6)&&(a19==5)))))&&(a7==1)))&&(a28==1))&&(a14==8))&&(a20==1))&&!(a11==1))))){ + a29 = 5; + a0 = 0; + a11 = 1; + a24 = 1; + a19 = 4; + return 21; + } else if(((((!(a24==1)&&(((a19==5)&&((a20==1)&&(((a11==1)&&(((input==4)&&((a29==7)||(a29==8)))&&(a25==1)))&&(a14==8))))&&!(a7==1)))&&!(a0==1))&&(a22==1))&&(a28==1))){ + a20 = 0; + a24 = 1; + a29 = 9; + return 21; + } else if((!(a24==1)&&(((a14==8)&&((!(a20==1)&&(((a22==1)&&(((((input==1)&&!(a7==1))&&(a29==6))&&(a28==1))&&(a0==1)))&&(a11==1)))&&(a19==4)))&&(a25==1)))){ + a29 = 5; + a7 = 1; + a19 = 1; + a20 = 1; + a24 = 1; + return -1; + } else if(((a28==1)&&((a29==9)&&((a22==1)&&((((!(a7==1)&&(((!(a25==1)&&(!(a24==1)&&(input==4)))&&(a20==1))&&(a19==3)))&&!(a0==1))&&!(a11==1))&&(a14==8)))))){ + a19 = 2; + a29 = 7; + a7 = 1; + a24 = 1; + a25 = 1; + return 21; + } else if((!(a25==1)&&(!(a7==1)&&(((a22==1)&&((((a19==5)&&((a14==9)&&(((((a29==5)||(a29==6))&&(input==3))&&!(a24==1))&&(a11==1))))&&(a20==1))&&!(a0==1)))&&(a28==1))))){ + a7 = 1; + a14 = 8; + a19 = 2; + a0 = 1; + a24 = 1; + a29 = 8; + a20 = 0; + return -1; + } else if(((!(a20==1)&&(((a24==1)&&((!(a11==1)&&((a14==9)&&((a29==9)&&((a19==4)&&(((input==6)&&(a28==1))&&(a7==1))))))&&(a0==1)))&&!(a25==1)))&&(a22==1))){ + a11 = 1; + a14 = 8; + a0 = 0; + a29 = 5; + a19 = 3; + return -1; + } else if(((a28==1)&&((a11==1)&&((a25==1)&&(!(a7==1)&&(((a22==1)&&(((!(a20==1)&&(((input==3)&&(a29==6))&&(a19==4)))&&(a14==8))&&!(a24==1)))&&(a0==1))))))){ + a7 = 1; + a19 = 3; + a25 = 0; + a29 = 7; + a24 = 1; + a20 = 1; + a0 = 0; + return 24; + } else if(((a24==1)&&((((((a22==1)&&(((((a25==1)&&(((a29==7)||(a29==8))&&(input==2)))&&(a7==1))&&(a28==1))&&(a14==8)))&&(a20==1))&&(a19==2))&&!(a11==1))&&(a0==1)))){ + a7 = 0; + a24 = 0; + a25 = 0; + a29 = 5; + a20 = 0; + a19 = 3; + return 24; + } else if(((!(a20==1)&&(((a14==9)&&((a24==1)&&((a28==1)&&(((a25==1)&&(((((a29==7)||(a29==8))&&(input==1))&&(a0==1))&&(a11==1)))&&(a7==1)))))&&(a19==4)))&&(a22==1))){ + a24 = 0; + a29 = 7; + a25 = 0; + a11 = 0; + a19 = 5; + return 23; + } else if((!(a0==1)&&((a24==1)&&((!(a7==1)&&((a25==1)&&((a22==1)&&((a11==1)&&((a29==5)&&(((a14==8)&&(!(a20==1)&&(input==4)))&&(a28==1)))))))&&(a19==3))))){ + a7 = 1; + a19 = 1; + a20 = 1; + a0 = 1; + return -1; + } else if((((a25==1)&&(((!(a7==1)&&((((a20==1)&&((a11==1)&&((((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))&&(input==5))))&&(a22==1))&&(a24==1)))&&(a28==1))&&(a14==10)))&&(a0==1))){ + a29 = 8; + a24 = 0; + a0 = 0; + a11 = 0; + a19 = 1; + a14 = 8; + return 23; + } else if(((a7==1)&&((a14==8)&&(!(a11==1)&&((a24==1)&&(((a28==1)&&(((!(a25==1)&&(((input==6)&&((a29==7)||((a29==5)||(a29==6))))&&(a19==5)))&&(a20==1))&&!(a0==1)))&&(a22==1))))))){ + a29 = 8; + a19 = 4; + a11 = 1; + return 21; + } else if((!(a25==1)&&(!(a0==1)&&((a7==1)&&((a14==9)&&(((a11==1)&&((a19==2)&&((a28==1)&&((a24==1)&&((((a29==5)||(a29==6))&&(input==2))&&(a20==1))))))&&(a22==1))))))){ + a19 = 3; + a7 = 0; + a14 = 8; + a25 = 1; + a29 = 5; + return -1; + } else if((!(a20==1)&&(!(a7==1)&&(!(a11==1)&&((a24==1)&&(!(a25==1)&&((a19==4)&&((a22==1)&&(((((input==3)&&(a29==5))&&(a14==9))&&!(a0==1))&&(a28==1)))))))))){ + a0 = 1; + a29 = 6; + a7 = 1; + a19 = 5; + a11 = 1; + return 23; + } else if(((((a28==1)&&(((!(a11==1)&&((input==1)&&((((a19==5)&&((((a20==1)&&!(a7==1))&&!(a25==1))&&(a29==9)))||(((a29==5)&&((a25==1)&&(!(a20==1)&&(a7==1))))&&(a19==1)))||((a19==1)&&((a29==6)&&(((a7==1)&&!(a20==1))&&(a25==1)))))))&&(a22==1))&&(a0==1)))&&!(a24==1))&&(a14==8))){ + a29 = 9; + a7 = 1; + a14 = 9; + a19 = 3; + a24 = 1; + a25 = 1; + a20 = 1; + return 21; + } else if((!(a7==1)&&((!(a20==1)&&((a14==8)&&(((a28==1)&&((((((a19==5)&&(input==6))&&!(a0==1))&&(a24==1))&&(a22==1))&&(a11==1)))&&(a29==7))))&&(a25==1)))){ + a11 = 0; + a0 = 1; + a19 = 3; + a29 = 9; + a24 = 0; + return -1; + } else if((((!(a11==1)&&(((a19==2)&&((!(a0==1)&&((a22==1)&&((!(a25==1)&&((a7==1)&&(input==1)))&&(a29==8))))&&(a14==9)))&&!(a20==1)))&&(a28==1))&&(a24==1))){ + a29 = 6; + a14 = 8; + a20 = 1; + a25 = 1; + a11 = 1; + return 23; + } else if((!(a25==1)&&((((a28==1)&&(((a14==9)&&(!(a24==1)&&((a11==1)&&(!(a7==1)&&((a19==1)&&((input==3)&&(((a29==6)||(a29==7))||(a29==8))))))))&&(a22==1)))&&(a0==1))&&!(a20==1)))){ + a7 = 1; + a29 = 9; + a20 = 1; + a14 = 8; + a0 = 0; + a24 = 1; + a19 = 4; + return -1; + } else if((((a0==1)&&(!(a25==1)&&(((((a19==2)&&(((a24==1)&&(((input==3)&&(a20==1))&&(a28==1)))&&(a7==1)))&&(a11==1))&&(a29==5))&&(a22==1))))&&(a14==10))){ + a19 = 5; + a7 = 0; + a0 = 0; + a14 = 8; + a24 = 0; + return 24; + } else if(((a19==3)&&((a24==1)&&((a22==1)&&(!(a7==1)&&(((((a28==1)&&(!(a20==1)&&((((a29==5)||(a29==6))&&(input==1))&&!(a25==1))))&&(a0==1))&&(a11==1))&&(a14==8))))))){ + a29 = 7; + a20 = 1; + a24 = 0; + a11 = 0; + a7 = 1; + return 21; + } else if(((a28==1)&&((((!(a24==1)&&(((a22==1)&&(!(a7==1)&&((((a19==5)&&((a25==1)&&(a29==9)))||(((a29==5)&&!(a25==1))&&(a19==1)))&&(input==1))))&&(a14==8)))&&!(a20==1))&&!(a11==1))&&(a0==1)))){ + a19 = 2; + a24 = 1; + a14 = 9; + a29 = 5; + a25 = 1; + return 23; + } else if(((((((a28==1)&&((((a22==1)&&((a25==1)&&((((a29==7)||(a29==8))&&(input==2))&&(a19==2))))&&(a11==1))&&(a20==1)))&&!(a0==1))&&!(a24==1))&&(a14==8))&&!(a7==1))){ + a29 = 5; + a24 = 1; + a0 = 1; + a19 = 1; + a7 = 1; + return -1; + } else if((!(a11==1)&&((a22==1)&&((a20==1)&&((a14==8)&&((a28==1)&&((a0==1)&&((a24==1)&&((a19==2)&&((!(a25==1)&&((input==5)&&(a7==1)))&&(a29==5))))))))))){ + a19 = 1; + a25 = 1; + a0 = 0; + a24 = 0; + a29 = 7; + return 21; + } return calculate_output11(input); + } + + int calculate_output11(int input) { + if(((((a7==1)&&((a22==1)&&((a14==9)&&((a19==3)&&(((a28==1)&&(!(a25==1)&&((((a29==8)||(a29==9))&&(input==1))&&(a20==1))))&&(a11==1))))))&&(a24==1))&&!(a0==1))){ + a14 = 8; + a24 = 0; + a20 = 0; + a19 = 4; + a29 = 8; + a0 = 1; + a11 = 0; + return 24; + } else if(((a24==1)&&(!(a25==1)&&(((a14==10)&&((!(a20==1)&&(((a11==1)&&((a7==1)&&(((input==6)&&(((a29==6)||(a29==7))||(a29==8)))&&(a0==1))))&&(a22==1)))&&(a19==4)))&&(a28==1))))){ + a14 = 8; + a29 = 9; + a19 = 3; + a11 = 0; + a24 = 0; + return 21; + } else if(((a7==1)&&((((a0==1)&&(((a28==1)&&((a14==9)&&((((a22==1)&&((input==1)&&((a29==8)||(a29==9))))&&(a20==1))&&!(a24==1))))&&(a19==5)))&&!(a25==1))&&(a11==1)))){ + a19 = 1; + a29 = 5; + a25 = 1; + a24 = 1; + a14 = 8; + return -1; + } else if(((!(a0==1)&&((a28==1)&&((a22==1)&&(!(a24==1)&&(((a25==1)&&(((a20==1)&&(((input==2)&&((a29==7)||(a29==8)))&&!(a7==1)))&&(a19==5)))&&(a11==1))))))&&(a14==8))){ + a29 = 6; + a24 = 1; + a20 = 0; + a19 = 1; + return 21; + } else if((((a20==1)&&((a14==9)&&(((a24==1)&&(((a19==1)&&(((((input==2)&&((a29==7)||((a29==5)||(a29==6))))&&(a0==1))&&(a22==1))&&(a25==1)))&&(a11==1)))&&!(a7==1))))&&(a28==1))){ + a24 = 0; + a7 = 1; + a20 = 0; + a19 = 3; + a0 = 0; + a11 = 0; + a29 = 7; + return 24; + } else if(((a22==1)&&(((a19==3)&&((!(a0==1)&&(((a28==1)&&((!(a20==1)&&(((input==1)&&((a29==6)||(a29==7)))&&!(a7==1)))&&(a14==9)))&&(a24==1)))&&(a11==1)))&&(a25==1)))){ + a20 = 1; + a19 = 1; + a0 = 1; + a7 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if((((a28==1)&&((a22==1)&&(((a25==1)&&(!(a24==1)&&((a14==8)&&((a11==1)&&((((input==1)&&((a29==7)||(a29==8)))&&!(a0==1))&&(a19==1))))))&&(a7==1))))&&(a20==1))){ + a25 = 0; + a11 = 0; + a0 = 1; + a7 = 0; + a14 = 9; + a29 = 9; + a19 = 3; + a20 = 0; + return 24; + } else if((!(a25==1)&&(!(a24==1)&&(((((a28==1)&&((a19==2)&&((!(a20==1)&&((a14==8)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==1))))&&(a11==1))))&&(a0==1))&&(a22==1))&&(a7==1))))){ + a19 = 1; + a29 = 5; + a20 = 1; + a24 = 1; + a25 = 1; + return -1; + } else if((((!(a11==1)&&((((!(a0==1)&&((((input==3)&&(((a29==5)&&(a19==4))||(((a29==8)&&(a19==3))||((a19==3)&&(a29==9)))))&&(a14==8))&&(a28==1)))&&(a22==1))&&!(a25==1))&&(a20==1)))&&!(a24==1))&&(a7==1))){ + a20 = 0; + a19 = 1; + a24 = 1; + a11 = 1; + a7 = 0; + a29 = 6; + return -1; + } else if((!(a25==1)&&((a14==8)&&((a28==1)&&((((!(a24==1)&&((((a19==1)&&((input==5)&&((a29==9)||((a29==7)||(a29==8)))))&&!(a20==1))&&!(a0==1)))&&(a7==1))&&(a22==1))&&!(a11==1)))))){ + a29 = 8; + a19 = 2; + a0 = 1; + return 24; + } else if((!(a25==1)&&(((a28==1)&&((a22==1)&&((a24==1)&&(!(a20==1)&&(((((a14==8)&&((input==3)&&((a29==7)||((a29==5)||(a29==6)))))&&(a0==1))&&(a11==1))&&!(a7==1))))))&&(a19==5)))){ + a20 = 1; + a25 = 1; + a19 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if(((!(a24==1)&&((a28==1)&&((a14==8)&&((a22==1)&&(!(a20==1)&&(((a7==1)&&((a19==5)&&((a0==1)&&((input==5)&&(a11==1)))))&&(a25==1)))))))&&(a29==8))){ + a29 = 5; + a24 = 1; + a19 = 1; + a0 = 0; + a20 = 1; + a25 = 0; + return 24; + } else if(((a29==5)&&((((((!(a11==1)&&((((!(a25==1)&&(input==5))&&(a28==1))&&(a14==9))&&(a24==1)))&&(a19==5))&&(a7==1))&&(a22==1))&&(a20==1))&&!(a0==1)))){ + a11 = 1; + a25 = 1; + a19 = 1; + a0 = 1; + a14 = 8; + return -1; + } else if((((((a25==1)&&(((a20==1)&&((a14==8)&&((!(a24==1)&&(((input==1)&&((a29==7)||(a29==8)))&&(a28==1)))&&(a22==1))))&&(a0==1)))&&(a19==3))&&!(a7==1))&&(a11==1))){ + a0 = 0; + a29 = 7; + a25 = 0; + a24 = 1; + a19 = 2; + a20 = 0; + return 24; + } else if((((a7==1)&&(!(a20==1)&&((((((a28==1)&&((a19==4)&&(((input==1)&&((a29==6)||(a29==7)))&&!(a11==1))))&&(a25==1))&&(a14==8))&&!(a24==1))&&!(a0==1))))&&(a22==1))){ + a0 = 1; + a14 = 9; + a19 = 3; + a29 = 8; + return 23; + } else if(((a14==8)&&(!(a11==1)&&((((!(a0==1)&&((a22==1)&&(((((input==1)&&(((a29==5)||(a29==6))||(a29==7)))&&!(a7==1))&&(a20==1))&&!(a25==1))))&&(a19==5))&&!(a24==1))&&(a28==1))))){ + a25 = 1; + a0 = 1; + a14 = 9; + a29 = 8; + a20 = 0; + a11 = 1; + a19 = 1; + return 23; + } else if(((a20==1)&&((a22==1)&&((a25==1)&&((a14==9)&&(!(a11==1)&&(!(a24==1)&&(!(a0==1)&&((a28==1)&&(((a7==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==1)))&&(a19==3))))))))))){ + a29 = 5; + a19 = 4; + a24 = 1; + a0 = 1; + return 24; + } else if((((a14==9)&&((a7==1)&&(((a19==2)&&((a25==1)&&((((a11==1)&&((a22==1)&&((input==5)&&((a29==6)||(a29==7)))))&&(a28==1))&&(a20==1))))&&!(a24==1))))&&!(a0==1))){ + a14 = 8; + a0 = 1; + a11 = 0; + a20 = 0; + a25 = 0; + a19 = 3; + a29 = 5; + return 24; + } else if(((a20==1)&&((((((((a11==1)&&(((input==5)&&(((a29==6)&&(a19==5))||(((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))))&&(a22==1)))&&(a28==1))&&(a25==1))&&(a24==1))&&(a14==8))&&(a7==1))&&!(a0==1)))){ + a0 = 1; + a19 = 3; + a7 = 0; + a11 = 0; + a20 = 0; + a29 = 9; + a24 = 0; + return -1; + } else if(((a14==10)&&((a7==1)&&((a28==1)&&(((a24==1)&&((((a0==1)&&((a11==1)&&((input==5)&&(((a19==2)&&(a29==9))||((a29==5)&&(a19==3))))))&&(a22==1))&&!(a20==1)))&&(a25==1)))))){ + a20 = 1; + a19 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if(((!(a11==1)&&((a25==1)&&((((!(a7==1)&&((a22==1)&&(((((a29==5)||(a29==6))&&(input==3))&&(a19==2))&&(a24==1))))&&(a14==9))&&(a20==1))&&(a28==1))))&&(a0==1))){ + a24 = 0; + a20 = 0; + a14 = 8; + a25 = 0; + a19 = 3; + a29 = 9; + return 23; + } else if((!(a20==1)&&(((!(a24==1)&&((a22==1)&&(((a7==1)&&((a19==4)&&(((a11==1)&&(((a29==5)||(a29==6))&&(input==5)))&&!(a0==1))))&&(a14==9))))&&(a28==1))&&(a25==1)))){ + a0 = 1; + a11 = 0; + a7 = 0; + a19 = 1; + a25 = 0; + a29 = 8; + a24 = 1; + return 24; + } else if(((((((!(a24==1)&&((((a29==6)&&((a7==1)&&((input==2)&&(a28==1))))&&(a14==9))&&(a22==1)))&&(a25==1))&&!(a0==1))&&!(a20==1))&&(a19==4))&&!(a11==1))){ + a24 = 1; + a29 = 8; + a0 = 1; + a19 = 3; + return -1; + } else if(((a28==1)&&(((((a22==1)&&((!(a20==1)&&((a14==9)&&(!(a7==1)&&(((input==6)&&((a29==8)||(a29==9)))&&(a25==1)))))&&(a11==1)))&&(a19==5))&&!(a0==1))&&!(a24==1)))){ + a29 = 5; + a11 = 0; + a14 = 8; + a19 = 2; + a25 = 0; + a7 = 1; + return 23; + } else if(((!(a20==1)&&((!(a7==1)&&((a19==2)&&((a24==1)&&(!(a25==1)&&((((a28==1)&&((a22==1)&&(input==4)))&&(a0==1))&&(a14==10))))))&&(a11==1)))&&(a29==9))){ + a0 = 0; + a14 = 9; + a19 = 5; + a29 = 6; + a7 = 1; + a24 = 0; + a20 = 1; + return -1; + } else if((((!(a24==1)&&((a25==1)&&((((a22==1)&&((a7==1)&&((a19==4)&&(((input==5)&&((a29==5)||(a29==6)))&&(a11==1)))))&&(a0==1))&&(a28==1))))&&(a14==9))&&(a20==1))){ + a7 = 0; + a24 = 1; + a11 = 0; + a19 = 1; + a29 = 8; + return 21; + } else if(((a19==2)&&((a11==1)&&((((a28==1)&&(!(a25==1)&&(!(a20==1)&&(((!(a24==1)&&(((a29==6)||(a29==7))&&(input==6)))&&(a0==1))&&(a14==9)))))&&(a22==1))&&(a7==1))))){ + a24 = 1; + a19 = 1; + a29 = 5; + a25 = 1; + a14 = 8; + a20 = 1; + return -1; + } else if(((((((!(a25==1)&&(((a22==1)&&(((input==4)&&(((a19==2)&&(a29==9))||((a19==3)&&(a29==5))))&&!(a24==1)))&&(a0==1)))&&(a28==1))&&(a11==1))&&!(a20==1))&&(a7==1))&&(a14==8))){ + a20 = 1; + a24 = 1; + a19 = 5; + a0 = 0; + a29 = 5; + a7 = 0; + a25 = 1; + return 23; + } else if((((!(a0==1)&&((a22==1)&&((a24==1)&&(((a7==1)&&(((a25==1)&&((input==6)&&(((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))))&&(a28==1)))&&(a14==8)))))&&!(a20==1))&&(a11==1))){ + a0 = 1; + a19 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if(((a20==1)&&(((((!(a7==1)&&(((((((a29==7)||(a29==8))&&(input==5))&&!(a24==1))&&(a22==1))&&!(a25==1))&&!(a0==1)))&&(a14==8))&&(a19==3))&&!(a11==1))&&(a28==1)))){ + a24 = 1; + a29 = 5; + a25 = 1; + a19 = 5; + return -1; + } else if(((a19==3)&&((a20==1)&&((a24==1)&&(((a22==1)&&((a7==1)&&(((a14==8)&&((a25==1)&&(((input==1)&&((a29==7)||(a29==8)))&&(a0==1))))&&(a28==1))))&&!(a11==1)))))){ + a25 = 0; + a19 = 4; + a11 = 1; + a20 = 0; + a29 = 6; + return 24; + } else if((!(a24==1)&&(!(a7==1)&&((a20==1)&&(((a22==1)&&((((a11==1)&&(!(a25==1)&&((a19==4)&&((input==6)&&((a29==8)||((a29==6)||(a29==7)))))))&&(a0==1))&&(a14==8)))&&(a28==1)))))){ + a19 = 5; + a29 = 5; + a25 = 1; + a0 = 0; + return 24; + } else if((((a14==8)&&(!(a25==1)&&((a0==1)&&(((!(a7==1)&&((a19==5)&&((a29==8)&&((a28==1)&&((a11==1)&&(input==2))))))&&!(a24==1))&&(a22==1)))))&&!(a20==1))){ + a7 = 1; + a19 = 1; + a20 = 1; + a24 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if((((((!(a24==1)&&(((a14==9)&&((a19==4)&&(((((a29==8)||((a29==6)||(a29==7)))&&(input==4))&&!(a11==1))&&!(a20==1))))&&(a22==1)))&&!(a25==1))&&(a28==1))&&(a0==1))&&(a7==1))){ + a29 = 6; + a0 = 0; + a14 = 8; + a19 = 1; + return 24; + } else if(((((((a19==5)&&(((((a24==1)&&((a7==1)&&(((a29==8)||(a29==9))&&(input==5))))&&(a28==1))&&!(a25==1))&&(a22==1)))&&!(a11==1))&&!(a20==1))&&(a14==9))&&(a0==1))){ + a14 = 8; + a19 = 4; + a29 = 5; + a24 = 0; + a11 = 1; + a0 = 0; + return -1; + } else if((((a11==1)&&(((a14==9)&&((a22==1)&&((((((a24==1)&&((input==1)&&(a0==1)))&&(a20==1))&&(a29==8))&&(a19==4))&&(a7==1))))&&(a28==1)))&&!(a25==1))){ + a19 = 1; + a14 = 8; + a29 = 5; + a25 = 1; + return -1; + } else if(((a0==1)&&(((a22==1)&&(((a25==1)&&(((a19==5)&&(!(a11==1)&&(!(a24==1)&&(((input==4)&&((a29==7)||(a29==8)))&&(a28==1)))))&&(a14==8)))&&(a7==1)))&&(a20==1)))){ + a29 = 5; + a24 = 1; + a19 = 1; + a11 = 1; + return -1; + } else if(((a7==1)&&((a19==2)&&((a25==1)&&((a22==1)&&(!(a0==1)&&((a24==1)&&((!(a11==1)&&((a20==1)&&((a28==1)&&((input==3)&&((a29==5)||(a29==6))))))&&(a14==9))))))))){ + a20 = 0; + a29 = 9; + a11 = 1; + a0 = 1; + a24 = 0; + a19 = 5; + return 23; + } else if((!(a7==1)&&((a28==1)&&(((a20==1)&&(((a22==1)&&((((((input==4)&&(a14==8))&&(a25==1))&&(a29==7))&&(a19==2))&&!(a24==1)))&&!(a0==1)))&&!(a11==1))))){ + a29 = 9; + a7 = 1; + a25 = 0; + a19 = 1; + a20 = 0; + return 23; + } else if((((((a22==1)&&((a20==1)&&(((a25==1)&&(((a0==1)&&((a14==9)&&(((a29==5)||(a29==6))&&(input==4))))&&!(a11==1)))&&!(a7==1))))&&!(a24==1))&&(a28==1))&&(a19==2))){ + a19 = 1; + a29 = 5; + a11 = 1; + a24 = 1; + a7 = 1; + a14 = 8; + return -1; + } else if(((a22==1)&&(!(a0==1)&&((a28==1)&&((a24==1)&&((!(a7==1)&&((a20==1)&&(((a14==9)&&((input==4)&&((((a29==8)&&(a19==3))||((a19==3)&&(a29==9)))||((a19==4)&&(a29==5)))))&&!(a25==1))))&&!(a11==1))))))){ + a29 = 9; + a19 = 3; + a14 = 8; + a25 = 1; + return 24; + } else if(((a28==1)&&(((a22==1)&&((a29==9)&&((a0==1)&&((a14==10)&&((a24==1)&&(((a25==1)&&(((input==5)&&(a19==2))&&(a11==1)))&&(a20==1)))))))&&!(a7==1)))){ + a19 = 5; + a11 = 0; + a14 = 9; + a29 = 5; + a25 = 0; + return -1; + } else if((!(a0==1)&&((a14==9)&&(!(a24==1)&&(((a19==4)&&(((a25==1)&&(((!(a11==1)&&((input==5)&&(((a29==7)||(a29==8))||(a29==9))))&&(a7==1))&&!(a20==1)))&&(a28==1)))&&(a22==1)))))){ + a29 = 6; + a19 = 2; + a25 = 0; + a24 = 1; + a0 = 1; + return 24; + } else if((((((((!(a11==1)&&(!(a24==1)&&((a14==8)&&((a7==1)&&(((a29==5)||(a29==6))&&(input==5))))))&&(a0==1))&&(a19==3))&&!(a20==1))&&(a22==1))&&!(a25==1))&&(a28==1))){ + a24 = 1; + a29 = 6; + a25 = 1; + a14 = 9; + return 24; + } else if(((a11==1)&&(((((a24==1)&&((((!(a20==1)&&((input==3)&&(((a29==6)&&(a19==5))||(((a29==9)&&(a19==4))||((a19==5)&&(a29==5))))))&&(a0==1))&&(a25==1))&&(a7==1)))&&(a28==1))&&(a22==1))&&(a14==9)))){ + a19 = 1; + a29 = 5; + a14 = 8; + a20 = 1; + return -1; + } else if(((a28==1)&&((!(a20==1)&&(((a25==1)&&(((a22==1)&&((a11==1)&&((a14==10)&&((a7==1)&&(((a29==8)||(a29==9))&&(input==3))))))&&(a19==3)))&&(a0==1)))&&(a24==1)))){ + a0 = 0; + a29 = 5; + a14 = 8; + a25 = 0; + a24 = 0; + return 21; + } else if(((!(a7==1)&&((a29==8)&&(((((a28==1)&&(!(a0==1)&&((((a14==9)&&(input==4))&&(a20==1))&&(a19==1))))&&(a22==1))&&(a24==1))&&(a25==1))))&&!(a11==1))){ + a11 = 1; + a19 = 5; + a29 = 9; + a24 = 0; + return -1; + } else if(((!(a20==1)&&(!(a0==1)&&((a11==1)&&(((((a7==1)&&((((input==1)&&((a29==6)||(a29==7)))&&(a22==1))&&!(a24==1)))&&(a14==8))&&(a25==1))&&(a28==1)))))&&(a19==5))){ + a29 = 7; + a24 = 1; + a19 = 1; + a25 = 0; + a14 = 9; + return 23; + } else if(((a11==1)&&((a28==1)&&((((!(a25==1)&&(!(a20==1)&&((a22==1)&&(((a7==1)&&(((a29==8)||(a29==9))&&(input==5)))&&(a0==1)))))&&(a24==1))&&(a19==2))&&(a14==9))))){ + a29 = 7; + a20 = 1; + a7 = 0; + a19 = 5; + return -1; + } else if(((((((a7==1)&&(((((a14==9)&&((a11==1)&&((a28==1)&&(input==6))))&&!(a0==1))&&(a19==3))&&(a29==8)))&&(a20==1))&&(a25==1))&&(a22==1))&&(a24==1))){ + a14 = 8; + a0 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a22==1)&&((a11==1)&&((((((!(a0==1)&&(((input==5)&&(((a29==5)&&(a19==3))||(((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))))&&!(a24==1)))&&(a14==9))&&(a25==1))&&(a7==1))&&(a28==1))&&(a20==1))))){ + a29 = 5; + a25 = 0; + a20 = 0; + a19 = 1; + a0 = 1; + a7 = 0; + return 21; + } else if(((a19==4)&&(!(a20==1)&&((a0==1)&&((((a25==1)&&((a22==1)&&((((a14==8)&&((input==6)&&((a29==5)||(a29==6))))&&(a7==1))&&!(a11==1))))&&!(a24==1))&&(a28==1)))))){ + a29 = 5; + a24 = 1; + a11 = 1; + a20 = 1; + a19 = 1; + return -1; + } else if(((((!(a7==1)&&((a28==1)&&((a24==1)&&(!(a0==1)&&((!(a11==1)&&((input==5)&&(((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))))&&(a22==1))))))&&(a20==1))&&(a14==9))&&(a25==1))){ + a14 = 8; + a19 = 1; + a7 = 1; + a0 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if(((!(a7==1)&&(((a28==1)&&((!(a25==1)&&((a0==1)&&((a11==1)&&(((input==6)&&(((a29==9)&&(a19==2))||((a19==3)&&(a29==5))))&&(a14==9)))))&&!(a20==1)))&&(a22==1)))&&(a24==1))){ + a25 = 1; + a20 = 1; + a29 = 5; + a19 = 1; + a7 = 1; + a14 = 8; + return -1; + } else if(((a19==4)&&((a20==1)&&(!(a0==1)&&(((a7==1)&&((!(a24==1)&&(((a14==9)&&((a28==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==6))))&&(a22==1)))&&(a25==1)))&&(a11==1)))))){ + a0 = 1; + a19 = 3; + a11 = 0; + a29 = 7; + a7 = 0; + return 23; + } else if((((a24==1)&&((a0==1)&&((!(a7==1)&&(((a25==1)&&(!(a11==1)&&((a28==1)&&(!(a20==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==2))))))&&(a22==1)))&&(a19==3))))&&(a14==8))){ + a7 = 1; + a19 = 2; + a11 = 1; + a29 = 9; + a14 = 9; + return 23; + } else if(((a24==1)&&(((a22==1)&&(((a11==1)&&((a28==1)&&((a0==1)&&((!(a7==1)&&((input==1)&&(((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))))&&!(a20==1)))))&&(a14==8)))&&!(a25==1)))){ + a20 = 1; + a19 = 2; + a7 = 1; + a25 = 1; + a24 = 0; + a11 = 0; + a29 = 5; + return 24; + } else if(((a19==3)&&((a28==1)&&((a22==1)&&(((((((((input==2)&&(a14==9))&&(a24==1))&&!(a11==1))&&!(a7==1))&&(a0==1))&&(a29==9))&&!(a25==1))&&!(a20==1)))))){ + a20 = 1; + a25 = 1; + a24 = 0; + a0 = 0; + a14 = 8; + a19 = 2; + a29 = 8; + return -1; + } else if((((a25==1)&&(((a19==4)&&(((a29==6)&&(!(a11==1)&&(((a24==1)&&(((input==4)&&(a0==1))&&(a28==1)))&&(a22==1))))&&!(a7==1)))&&(a14==8)))&&(a20==1))){ + a19 = 1; + a7 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if(((!(a25==1)&&(((a0==1)&&(((a19==1)&&(((((a14==10)&&(((a29==6)||(a29==7))&&(input==5)))&&(a22==1))&&!(a20==1))&&(a28==1)))&&(a24==1)))&&!(a7==1)))&&(a11==1))){ + a7 = 1; + a14 = 8; + a25 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if(((((a22==1)&&(((a29==5)&&((!(a11==1)&&((!(a0==1)&&(((input==4)&&(a24==1))&&(a28==1)))&&!(a7==1)))&&(a25==1)))&&!(a20==1)))&&(a14==9))&&(a19==2))){ + a19 = 3; + a25 = 0; + a24 = 0; + a14 = 8; + a11 = 1; + return 24; + } else if(((((a19==3)&&((((a20==1)&&(((a24==1)&&(((((a29==6)||(a29==7))&&(input==1))&&(a22==1))&&!(a0==1)))&&(a14==9)))&&(a11==1))&&(a28==1)))&&!(a25==1))&&(a7==1))){ + a29 = 5; + a19 = 1; + a14 = 8; + a25 = 1; + a0 = 1; + return -1; + } else if((!(a25==1)&&(((a0==1)&&((a14==8)&&((((a28==1)&&((((input==4)&&((((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))||((a29==6)&&(a19==4))))&&(a24==1))&&(a20==1)))&&!(a11==1))&&(a7==1))))&&(a22==1)))){ + a25 = 1; + a19 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if(((!(a20==1)&&((!(a7==1)&&(((a24==1)&&((a11==1)&&((a28==1)&&(((a22==1)&&(((a29==5)||(a29==6))&&(input==4)))&&(a19==1)))))&&(a14==10)))&&(a0==1)))&&(a25==1))){ + a11 = 0; + a14 = 9; + a25 = 0; + a29 = 9; + return -1; + } else if(((((!(a24==1)&&((a7==1)&&((!(a11==1)&&(((a22==1)&&((input==6)&&(((a29==6)&&(a19==2))||(((a19==1)&&(a29==9))||((a19==2)&&(a29==5))))))&&(a28==1)))&&(a0==1))))&&(a14==9))&&!(a20==1))&&!(a25==1))){ + a29 = 5; + a20 = 1; + a14 = 8; + a11 = 1; + a19 = 1; + a25 = 1; + a24 = 1; + return -1; + } else if(((a28==1)&&((!(a11==1)&&((a22==1)&&((((a14==8)&&((((a19==4)&&((((a29==7)||(a29==8))||(a29==9))&&(input==5)))&&!(a20==1))&&!(a24==1)))&&(a0==1))&&!(a7==1))))&&(a25==1)))){ + a19 = 3; + a29 = 9; + return -1; + } else if(((((((((!(a20==1)&&(((input==2)&&(((a29==5)&&(a19==3))||(((a29==8)&&(a19==2))||((a19==2)&&(a29==9)))))&&(a0==1)))&&(a11==1))&&(a22==1))&&(a24==1))&&!(a7==1))&&(a28==1))&&(a25==1))&&(a14==9))){ + a29 = 5; + a14 = 8; + a20 = 1; + a19 = 1; + a7 = 1; + return -1; + } else if(((((a28==1)&&((a29==6)&&((a19==3)&&(((!(a25==1)&&((!(a24==1)&&((a22==1)&&(input==3)))&&(a0==1)))&&(a7==1))&&!(a11==1)))))&&(a14==9))&&!(a20==1))){ + a0 = 0; + a24 = 1; + a19 = 2; + a14 = 8; + a25 = 1; + return -1; + } else if((((a0==1)&&(!(a11==1)&&((((a14==9)&&(((a20==1)&&(((a7==1)&&((input==5)&&((a29==6)||(a29==7))))&&(a22==1)))&&(a28==1)))&&(a19==1))&&(a25==1))))&&!(a24==1))){ + a29 = 7; + a11 = 1; + a7 = 0; + a25 = 0; + a19 = 2; + return -1; + } else if(((a14==8)&&((a20==1)&&(!(a7==1)&&(!(a0==1)&&((a28==1)&&(((!(a25==1)&&(((((a29==5)&&(a19==3))||(((a29==8)&&(a19==2))||((a19==2)&&(a29==9))))&&(input==1))&&(a24==1)))&&(a22==1))&&(a11==1)))))))){ + a25 = 1; + a29 = 5; + a19 = 1; + return 24; + } else if((!(a7==1)&&((a25==1)&&((a19==3)&&(!(a24==1)&&((a22==1)&&((a28==1)&&((a20==1)&&((a14==9)&&((!(a0==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==3)))&&(a11==1))))))))))){ + a24 = 1; + a19 = 5; + a7 = 1; + a29 = 9; + a14 = 8; + return 23; + } else if(((((((!(a25==1)&&((a24==1)&&(((((input==6)&&((a29==6)||(a29==7)))&&!(a20==1))&&(a22==1))&&!(a7==1))))&&(a11==1))&&(a19==4))&&!(a0==1))&&(a14==8))&&(a28==1))){ + a29 = 5; + a0 = 1; + a25 = 1; + a20 = 1; + a7 = 1; + a19 = 1; + return -1; + } else if((((a22==1)&&((a14==8)&&(((((((!(a20==1)&&((a11==1)&&(input==1)))&&(a24==1))&&(a28==1))&&(a29==6))&&!(a0==1))&&!(a7==1))&&!(a25==1))))&&(a19==5))){ + a20 = 1; + a19 = 1; + return 24; + } else if(((((a29==9)&&((((a20==1)&&(((((a22==1)&&(!(a25==1)&&(input==1)))&&!(a11==1))&&(a19==1))&&(a28==1)))&&(a14==9))&&(a7==1)))&&!(a0==1))&&!(a24==1))){ + a11 = 1; + a20 = 0; + a19 = 2; + a14 = 8; + return -1; + } else if(((!(a24==1)&&(!(a20==1)&&(((a29==8)&&(!(a11==1)&&((a22==1)&&(((a14==9)&&(((a28==1)&&(input==6))&&(a19==5)))&&!(a7==1)))))&&(a25==1))))&&!(a0==1))){ + a11 = 1; + a7 = 1; + a20 = 1; + a19 = 3; + a29 = 9; + return -1; + } else if(((a11==1)&&((((a28==1)&&((a25==1)&&(((a22==1)&&(((a24==1)&&((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))&&(input==1)))&&(a7==1)))&&(a20==1))))&&!(a0==1))&&(a14==9)))){ + a14 = 8; + a19 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if(((a24==1)&&((a7==1)&&(((a14==10)&&(((a11==1)&&((a19==5)&&((a28==1)&&((a22==1)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==4))&&!(a20==1))))))&&!(a25==1)))&&(a0==1))))){ + a19 = 3; + a20 = 1; + a14 = 8; + a29 = 5; + a24 = 0; + a0 = 0; + return 23; + } else if((((a0==1)&&((a19==2)&&((a24==1)&&((a14==9)&&((a28==1)&&(((a22==1)&&((((input==3)&&((a29==7)||(a29==8)))&&!(a25==1))&&(a11==1)))&&(a20==1)))))))&&(a7==1))){ + a29 = 8; + a20 = 0; + a25 = 1; + a19 = 5; + return 24; + } else if(((((!(a25==1)&&((a7==1)&&(((a0==1)&&(((a28==1)&&((input==3)&&(((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))))&&(a14==9)))&&(a22==1))))&&!(a24==1))&&!(a11==1))&&(a20==1))){ + a29 = 5; + a24 = 1; + a19 = 3; + a20 = 0; + a7 = 0; + return 21; + } else if((!(a0==1)&&((a22==1)&&((((a24==1)&&(((!(a20==1)&&(((((a29==8)||(a29==9))&&(input==3))&&!(a7==1))&&(a19==2)))&&(a28==1))&&(a11==1)))&&(a25==1))&&(a14==8))))){ + a24 = 0; + a29 = 6; + a0 = 1; + a11 = 0; + return 24; + } else if((((a14==8)&&((a28==1)&&(((a19==4)&&((((!(a11==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==2))&&(a22==1)))&&!(a20==1))&&(a7==1))&&!(a0==1)))&&(a24==1))))&&(a25==1))){ + a11 = 1; + a29 = 5; + a25 = 0; + a7 = 0; + return -1; + } else if((((a14==8)&&(!(a0==1)&&((((a25==1)&&(((a22==1)&&(!(a24==1)&&((!(a7==1)&&(input==5))&&(a28==1))))&&(a29==7)))&&!(a11==1))&&(a20==1))))&&(a19==2))){ + a7 = 1; + a11 = 1; + a20 = 0; + a29 = 9; + return -1; + } else if((((a28==1)&&((a22==1)&&((!(a0==1)&&((a29==6)&&((!(a7==1)&&((((a11==1)&&(input==2))&&(a25==1))&&(a14==8)))&&(a24==1))))&&(a19==2))))&&(a20==1))){ + a19 = 3; + a11 = 0; + a7 = 1; + a25 = 0; + a0 = 1; + a24 = 0; + a14 = 9; + a29 = 7; + return 24; + } else if(((a24==1)&&((((a19==2)&&(((((((((a29==7)||(a29==8))&&(input==1))&&(a22==1))&&(a20==1))&&(a11==1))&&!(a0==1))&&(a28==1))&&!(a25==1)))&&(a14==9))&&(a7==1)))){ + a14 = 8; + a29 = 7; + a25 = 1; + return 23; + } else if((!(a11==1)&&((!(a25==1)&&((a14==8)&&((((!(a7==1)&&(((((a29==7)||((a29==5)||(a29==6)))&&(input==3))&&!(a0==1))&&!(a24==1)))&&(a20==1))&&(a22==1))&&(a19==5))))&&(a28==1)))){ + a19 = 1; + a7 = 1; + a29 = 5; + a20 = 0; + a14 = 9; + a24 = 1; + return 23; + } else if(((((!(a11==1)&&(((a28==1)&&((a25==1)&&((((((a29==8)||(a29==9))&&(input==3))&&(a19==4))&&!(a24==1))&&!(a0==1))))&&(a14==8)))&&(a22==1))&&!(a7==1))&&(a20==1))){ + a11 = 1; + a7 = 1; + a19 = 1; + a0 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if(((a22==1)&&((a14==9)&&(!(a24==1)&&(((a11==1)&&(!(a25==1)&&((((a7==1)&&((a19==1)&&((input==2)&&((a29==8)||(a29==9)))))&&!(a20==1))&&!(a0==1))))&&(a28==1)))))){ + a0 = 1; + a20 = 1; + a29 = 5; + a24 = 1; + a14 = 8; + a25 = 1; + return -1; + } else if(((((a19==4)&&((!(a0==1)&&(!(a7==1)&&((a28==1)&&((a11==1)&&((a24==1)&&(((input==4)&&((a29==5)||(a29==6)))&&(a25==1)))))))&&(a22==1)))&&(a14==9))&&(a20==1))){ + a14 = 8; + a29 = 8; + a19 = 2; + return -1; + } else if(((a19==3)&&((a20==1)&&((a14==9)&&((!(a0==1)&&((!(a24==1)&&((a7==1)&&((a28==1)&&(((input==5)&&(((a29==5)||(a29==6))||(a29==7)))&&!(a11==1)))))&&(a25==1)))&&(a22==1)))))){ + a11 = 1; + a0 = 1; + a7 = 0; + a19 = 5; + a25 = 0; + a29 = 9; + return 24; + } else if(((a11==1)&&(((a14==8)&&((!(a20==1)&&((a22==1)&&((((a19==2)&&((a25==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==1))))&&(a28==1))&&!(a24==1))))&&!(a0==1)))&&(a7==1)))){ + a19 = 1; + a29 = 5; + a24 = 1; + a20 = 1; + a0 = 1; + return -1; + } else if(((a24==1)&&(((!(a7==1)&&(!(a20==1)&&((a19==3)&&((a28==1)&&((a22==1)&&(!(a0==1)&&((a14==8)&&((input==5)&&((a29==8)||(a29==9))))))))))&&(a25==1))&&(a11==1)))){ + a29 = 5; + a19 = 4; + return 24; + } else if(((((a19==3)&&(((a0==1)&&(((a22==1)&&(!(a11==1)&&((!(a7==1)&&((input==5)&&(((a29==6)||(a29==7))||(a29==8))))&&(a14==9))))&&!(a24==1)))&&(a20==1)))&&(a28==1))&&!(a25==1))){ + a7 = 1; + a29 = 5; + a11 = 1; + a24 = 1; + a19 = 1; + a14 = 8; + a25 = 1; + return -1; + } else if((((a20==1)&&((a25==1)&&((a14==9)&&((a24==1)&&((((a22==1)&&(((((a29==5)||(a29==6))&&(input==5))&&(a28==1))&&(a19==5)))&&(a11==1))&&(a7==1))))))&&!(a0==1))){ + a29 = 8; + a14 = 8; + a11 = 0; + a7 = 0; + a19 = 1; + return -1; + } else if(((a14==9)&&((((a0==1)&&((((a29==5)&&((a22==1)&&(((a25==1)&&((input==6)&&!(a24==1)))&&(a7==1))))&&(a11==1))&&(a19==4)))&&(a28==1))&&!(a20==1)))){ + a24 = 1; + a25 = 0; + a14 = 10; + a7 = 0; + a29 = 7; + return 23; + } else if((!(a24==1)&&(((a7==1)&&((a28==1)&&(((((a14==8)&&(((a19==1)&&(((a29==6)||(a29==7))&&(input==2)))&&(a11==1)))&&(a22==1))&&!(a20==1))&&(a25==1))))&&!(a0==1)))){ + a0 = 1; + a20 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if((((((a22==1)&&((a19==2)&&(((a14==9)&&(!(a20==1)&&(!(a25==1)&&(((input==4)&&(((a29==6)||(a29==7))||(a29==8)))&&!(a11==1)))))&&(a28==1))))&&(a24==1))&&(a7==1))&&(a0==1))){ + a11 = 1; + a14 = 8; + a0 = 0; + a29 = 8; + a20 = 1; + a19 = 5; + return 24; + } else if(((a22==1)&&((((((!(a20==1)&&(((a19==3)&&(((input==6)&&((a29==5)||(a29==6)))&&(a0==1)))&&!(a25==1)))&&!(a11==1))&&!(a7==1))&&!(a24==1))&&(a14==8))&&(a28==1)))){ + a29 = 6; + a20 = 1; + a11 = 1; + a24 = 1; + a25 = 1; + a19 = 4; + return 23; + } else if(((a19==1)&&(((((((((a29==9)&&(((input==3)&&(a14==8))&&!(a11==1)))&&(a20==1))&&(a24==1))&&(a22==1))&&(a7==1))&&(a28==1))&&(a25==1))&&(a0==1)))){ + a29 = 5; + a11 = 1; + return -1; + } else if((((a19==3)&&((a22==1)&&((a28==1)&&((a11==1)&&(!(a20==1)&&(((!(a25==1)&&((a24==1)&&((input==4)&&((a29==9)||((a29==7)||(a29==8))))))&&!(a0==1))&&(a14==8)))))))&&!(a7==1))){ + a0 = 1; + a11 = 0; + a14 = 9; + a29 = 9; + a25 = 1; + a24 = 0; + return 23; + } else if((((a11==1)&&((!(a0==1)&&((((((a22==1)&&((a19==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==6))))&&!(a7==1))&&(a14==9))&&(a28==1))&&!(a20==1)))&&!(a25==1)))&&(a24==1))){ + a19 = 5; + a29 = 8; + a14 = 8; + a0 = 1; + a7 = 1; + a20 = 1; + return -1; + } else if((((((a28==1)&&(!(a24==1)&&(!(a7==1)&&((((!(a0==1)&&((input==1)&&((a29==8)||((a29==6)||(a29==7)))))&&(a25==1))&&(a22==1))&&(a14==8)))))&&!(a11==1))&&(a20==1))&&(a19==3))){ + a24 = 1; + a7 = 1; + a29 = 6; + a11 = 1; + return 21; + } else if(((((a11==1)&&(((a20==1)&&((a28==1)&&((((a19==1)&&(!(a25==1)&&((input==3)&&((a29==8)||(a29==9)))))&&!(a0==1))&&(a7==1))))&&(a14==9)))&&(a24==1))&&(a22==1))){ + a29 = 5; + a11 = 0; + a20 = 0; + a0 = 1; + return 24; + } else if((!(a0==1)&&(!(a7==1)&&(((a25==1)&&((((!(a20==1)&&((a22==1)&&((a19==4)&&(((a29==6)||(a29==7))&&(input==1)))))&&(a24==1))&&(a11==1))&&(a14==8)))&&(a28==1))))){ + a7 = 1; + a19 = 1; + a29 = 5; + a20 = 1; + a0 = 1; + return -1; + } else if(((a25==1)&&((((a22==1)&&((((a20==1)&&((((input==4)&&((((a29==8)&&(a19==2))||((a29==9)&&(a19==2)))||((a29==5)&&(a19==3))))&&(a28==1))&&(a14==10)))&&(a0==1))&&(a7==1)))&&(a11==1))&&!(a24==1)))){ + a20 = 0; + a19 = 1; + a25 = 0; + a29 = 5; + a24 = 1; + return -1; + } else if((((a22==1)&&((a24==1)&&(((((a0==1)&&(!(a20==1)&&((((input==5)&&(((a29==6)||(a29==7))||(a29==8)))&&(a28==1))&&(a14==10))))&&(a11==1))&&(a19==4))&&!(a25==1))))&&(a7==1))){ + a14 = 8; + a0 = 0; + a29 = 6; + a19 = 2; + a11 = 0; + a25 = 1; + return 24; + } else if(((a7==1)&&((((((a28==1)&&(!(a24==1)&&((a0==1)&&(((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))&&(input==2))&&(a22==1)))))&&(a14==8))&&!(a20==1))&&(a25==1))&&(a11==1)))){ + a29 = 6; + a0 = 0; + a24 = 1; + a19 = 2; + a25 = 0; + a7 = 0; + return 24; + } else if((((a22==1)&&((((((a11==1)&&(!(a25==1)&&(((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))&&(input==2))&&!(a20==1))))&&!(a0==1))&&(a7==1))&&(a28==1))&&(a24==1)))&&(a14==8))){ + a19 = 2; + a29 = 9; + return 24; + } else if(((!(a24==1)&&((!(a0==1)&&((a14==8)&&((((!(a25==1)&&((((a29==7)||(a29==8))&&(input==3))&&(a11==1)))&&!(a7==1))&&(a28==1))&&!(a20==1))))&&(a22==1)))&&(a19==2))){ + a29 = 5; + a19 = 3; + a24 = 1; + return -1; + } else if(((a28==1)&&(!(a7==1)&&((a22==1)&&(((!(a0==1)&&((!(a11==1)&&(((a14==8)&&((input==1)&&((a29==7)||((a29==5)||(a29==6)))))&&!(a24==1)))&&!(a25==1)))&&(a19==4))&&!(a20==1)))))){ + a29 = 7; + a19 = 3; + a0 = 1; + a7 = 1; + return 23; + } else if((!(a24==1)&&(((a22==1)&&(((a28==1)&&((((((a19==5)&&(((!(a7==1)&&(a20==1))&&!(a25==1))&&(a29==8)))||((a19==5)&&((a29==9)&&(!(a25==1)&&((a20==1)&&!(a7==1))))))||((a19==1)&&(((!(a20==1)&&(a7==1))&&(a25==1))&&(a29==5))))&&(input==5))&&(a14==8)))&&!(a0==1)))&&(a11==1)))){ + a0 = 1; + a29 = 5; + a20 = 1; + a7 = 1; + a24 = 1; + a25 = 1; + a19 = 1; + return -1; + } else if(((a28==1)&&(((((a22==1)&&((a14==9)&&((a29==9)&&((!(a7==1)&&((a19==3)&&((a11==1)&&(input==3))))&&!(a25==1)))))&&(a24==1))&&!(a0==1))&&(a20==1)))){ + a19 = 4; + a29 = 7; + a25 = 1; + a7 = 1; + return -1; + } else if(((a0==1)&&((a20==1)&&((a22==1)&&((a19==1)&&(!(a24==1)&&(((a28==1)&&(((a14==9)&&(((input==2)&&((a29==6)||(a29==7)))&&(a25==1)))&&!(a11==1)))&&(a7==1)))))))){ + a7 = 0; + a29 = 7; + a24 = 1; + a25 = 0; + a20 = 0; + a19 = 4; + a0 = 0; + a14 = 8; + return 24; + } else if((((a14==9)&&((a0==1)&&(!(a7==1)&&((((a20==1)&&((a22==1)&&((a25==1)&&(((input==3)&&((a29==9)||((a29==7)||(a29==8))))&&(a28==1)))))&&(a24==1))&&(a19==1)))))&&!(a11==1))){ + a29 = 6; + a19 = 4; + return 21; + } else if(((((a24==1)&&(((a22==1)&&(!(a11==1)&&(((a20==1)&&(((a19==1)&&((input==2)&&((a29==6)||(a29==7))))&&!(a7==1)))&&(a25==1))))&&(a14==8)))&&(a28==1))&&!(a0==1))){ + a11 = 1; + a7 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if(((a19==3)&&((a0==1)&&(!(a25==1)&&((!(a11==1)&&(!(a7==1)&&((!(a20==1)&&((((((a29==6)||(a29==7))||(a29==8))&&(input==5))&&(a14==9))&&(a28==1)))&&(a22==1))))&&(a24==1)))))){ + a25 = 1; + a19 = 1; + a20 = 1; + a29 = 5; + a7 = 1; + a11 = 1; + a14 = 8; + return -1; + } else if((((a22==1)&&((a24==1)&&(!(a0==1)&&((((((a14==8)&&(((input==1)&&((a29==8)||(a29==9)))&&(a19==2)))&&!(a25==1))&&!(a20==1))&&(a11==1))&&(a28==1)))))&&!(a7==1))){ + a14 = 9; + a29 = 6; + a25 = 1; + a0 = 1; + a24 = 0; + a11 = 0; + return 24; + } else if(((((a11==1)&&(!(a24==1)&&(((a22==1)&&(((a14==8)&&((!(a25==1)&&(((a29==8)||(a29==9))&&(input==2)))&&!(a0==1)))&&(a19==1)))&&(a28==1))))&&!(a7==1))&&!(a20==1))){ + a0 = 1; + a20 = 1; + a24 = 1; + a7 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if((!(a25==1)&&(((a11==1)&&((a14==10)&&((a28==1)&&((a24==1)&&((a19==3)&&((((((a29==5)||(a29==6))&&(input==6))&&(a22==1))&&(a0==1))&&(a20==1)))))))&&(a7==1)))){ + a0 = 0; + a14 = 8; + a11 = 0; + a19 = 1; + a20 = 0; + a29 = 5; + a24 = 0; + return -1; + } else if((((a24==1)&&(((((a29==6)&&(((a14==10)&&((a28==1)&&(((a19==2)&&(input==1))&&(a20==1))))&&(a0==1)))&&!(a7==1))&&(a22==1))&&!(a25==1)))&&(a11==1))){ + a0 = 0; + a20 = 0; + a24 = 0; + a19 = 5; + a25 = 1; + a29 = 8; + a14 = 8; + return 24; + } else if((((a20==1)&&((a25==1)&&((((a24==1)&&((((a28==1)&&((input==4)&&(((a29==5)&&(a19==4))||(((a19==3)&&(a29==8))||((a19==3)&&(a29==9))))))&&(a22==1))&&!(a7==1)))&&(a11==1))&&(a0==1))))&&(a14==8))){ + a29 = 8; + a25 = 0; + a19 = 1; + return 23; + } else if((!(a11==1)&&((((a19==3)&&((!(a24==1)&&((((((a14==8)&&(input==1))&&(a20==1))&&!(a0==1))&&!(a7==1))&&(a22==1)))&&!(a25==1)))&&(a28==1))&&(a29==9)))){ + a7 = 1; + a11 = 1; + a19 = 5; + a24 = 1; + return -1; + } else if((!(a24==1)&&(((((((a0==1)&&(!(a25==1)&&((((a19==2)&&(input==1))&&(a14==8))&&(a22==1))))&&(a11==1))&&!(a7==1))&&(a29==5))&&(a28==1))&&(a20==1)))){ + a0 = 0; + a7 = 1; + a29 = 9; + return 24; + } else if(((a24==1)&&(((((((((a14==8)&&((((a29==7)||(a29==8))&&(input==1))&&(a19==4)))&&(a22==1))&&(a20==1))&&!(a11==1))&&(a0==1))&&(a25==1))&&(a28==1))&&(a7==1)))){ + a29 = 5; + a11 = 1; + a7 = 0; + a19 = 3; + a0 = 0; + return 23; + } else if(((a22==1)&&((((((!(a25==1)&&((a28==1)&&((a19==4)&&((a14==8)&&((input==1)&&((a29==8)||((a29==6)||(a29==7))))))))&&!(a11==1))&&!(a24==1))&&(a7==1))&&!(a20==1))&&(a0==1)))){ + a29 = 8; + a7 = 0; + a25 = 1; + a19 = 3; + return 23; + } else if(((!(a7==1)&&(((a14==8)&&((!(a11==1)&&(((a25==1)&&(!(a0==1)&&((a29==6)&&((a24==1)&&(input==4)))))&&(a20==1)))&&(a22==1)))&&(a19==5)))&&(a28==1))){ + a29 = 9; + a25 = 0; + a7 = 1; + a24 = 0; + a11 = 1; + a20 = 0; + return 21; + } else if((((a28==1)&&((((((a20==1)&&(!(a0==1)&&((a7==1)&&((input==4)&&(((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))))))&&(a25==1))&&(a11==1))&&(a14==8))&&(a22==1)))&&!(a24==1))){ + a20 = 0; + a29 = 6; + a25 = 0; + a19 = 3; + a7 = 0; + a24 = 1; + return 24; + } else if(((((((a7==1)&&((a28==1)&&((a19==3)&&((a24==1)&&((a20==1)&&((((a29==5)||(a29==6))&&(input==1))&&(a0==1)))))))&&(a22==1))&&(a14==9))&&(a11==1))&&(a25==1))){ + a14 = 8; + a7 = 0; + a19 = 1; + a29 = 8; + a25 = 0; + a0 = 0; + return 21; + } else if(((a24==1)&&((a11==1)&&((a14==8)&&((a19==3)&&((a22==1)&&((((a29==8)&&(((a7==1)&&((input==2)&&!(a25==1)))&&(a0==1)))&&!(a20==1))&&(a28==1)))))))){ + a25 = 1; + a19 = 2; + a29 = 6; + a11 = 0; + a20 = 1; + return 21; + } else if(((a11==1)&&((a25==1)&&(((!(a20==1)&&((a7==1)&&((a14==9)&&((a0==1)&&(((a19==4)&&((input==1)&&(a29==8)))&&!(a24==1))))))&&(a22==1))&&(a28==1))))){ + a19 = 3; + a25 = 0; + a14 = 8; + a20 = 1; + a11 = 0; + a0 = 0; + a7 = 0; + a29 = 6; + return 23; + } else if(((a14==8)&&(((a28==1)&&(!(a24==1)&&(!(a25==1)&&(((((a0==1)&&((a7==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==6))))&&(a22==1))&&!(a11==1))&&!(a20==1)))))&&(a19==1)))){ + a25 = 1; + a24 = 1; + a20 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if((((((((a0==1)&&((a7==1)&&((a28==1)&&(((a19==3)&&((input==6)&&((a29==8)||((a29==6)||(a29==7)))))&&!(a11==1)))))&&(a14==8))&&!(a20==1))&&!(a25==1))&&(a22==1))&&(a24==1))){ + a14 = 9; + a20 = 1; + a29 = 8; + a11 = 1; + a19 = 5; + return 23; + } else if((!(a7==1)&&((a11==1)&&((!(a20==1)&&(((a25==1)&&(((a24==1)&&(((input==2)&&((((a19==3)&&(a29==8))||((a19==3)&&(a29==9)))||((a19==4)&&(a29==5))))&&(a22==1)))&&(a14==8)))&&(a0==1)))&&(a28==1))))){ + a7 = 1; + a29 = 5; + a20 = 1; + a19 = 1; + return -1; + } else if((!(a20==1)&&(((a28==1)&&((((a19==5)&&(((((a22==1)&&(((a29==5)||(a29==6))&&(input==1)))&&!(a0==1))&&(a7==1))&&(a25==1)))&&!(a24==1))&&!(a11==1)))&&(a14==9)))){ + a19 = 3; + a20 = 1; + a11 = 1; + a24 = 1; + a14 = 8; + a0 = 1; + a29 = 9; + a7 = 0; + return 23; + } else if(((!(a0==1)&&(!(a20==1)&&((((((a25==1)&&(((((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))&&(input==4))&&!(a7==1)))&&(a28==1))&&(a24==1))&&(a22==1))&&(a14==9))))&&!(a11==1))){ + a25 = 0; + a19 = 5; + a11 = 1; + a20 = 1; + a14 = 8; + a29 = 5; + a24 = 0; + return 24; + } else if(((a28==1)&&((a22==1)&&(!(a11==1)&&((a20==1)&&((!(a7==1)&&(((!(a0==1)&&(((input==3)&&((a29==8)||((a29==6)||(a29==7))))&&!(a25==1)))&&(a24==1))&&(a14==8)))&&(a19==5))))))){ + a19 = 2; + a24 = 0; + a14 = 9; + a29 = 9; + a0 = 1; + a20 = 0; + return 24; + } else if(((a25==1)&&((!(a7==1)&&(!(a20==1)&&(((a19==5)&&(((((a28==1)&&((a22==1)&&(input==5)))&&!(a0==1))&&(a24==1))&&(a29==9)))&&(a11==1))))&&(a14==9)))){ + a29 = 5; + a7 = 1; + a19 = 1; + a20 = 1; + a14 = 8; + a0 = 1; + return -1; + } else if(((a20==1)&&((((((((a14==9)&&((!(a7==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==5)))&&(a28==1)))&&!(a25==1))&&(a19==4))&&!(a11==1))&&(a22==1))&&!(a24==1))&&(a0==1)))){ + a24 = 1; + a19 = 1; + a11 = 1; + a7 = 1; + a25 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if((((((a0==1)&&((((a14==9)&&((((a25==1)&&((input==5)&&!(a20==1)))&&(a28==1))&&(a29==6)))&&!(a24==1))&&(a22==1)))&&!(a7==1))&&(a11==1))&&(a19==5))){ + a20 = 1; + a7 = 1; + a19 = 4; + a0 = 0; + a29 = 7; + a11 = 0; + a14 = 8; + return 24; + } else if((((a22==1)&&((!(a7==1)&&(((((a14==9)&&((a28==1)&&((a19==5)&&(((a29==6)||(a29==7))&&(input==3)))))&&!(a20==1))&&!(a25==1))&&!(a0==1)))&&!(a24==1)))&&(a11==1))){ + a29 = 5; + a0 = 1; + a20 = 1; + a14 = 8; + a25 = 1; + a19 = 1; + return 24; + } else if(((!(a25==1)&&((a28==1)&&(((a19==5)&&(!(a24==1)&&(((a11==1)&&(((((a29==5)||(a29==6))&&(input==4))&&(a22==1))&&!(a0==1)))&&!(a7==1))))&&(a14==9))))&&(a20==1))){ + a19 = 2; + a29 = 5; + a14 = 8; + return 24; + } else if(((!(a11==1)&&((a22==1)&&(!(a24==1)&&((((((a14==9)&&(((input==5)&&(((a29==6)||(a29==7))||(a29==8)))&&!(a7==1)))&&(a19==3))&&(a20==1))&&!(a25==1))&&(a28==1)))))&&!(a0==1))){ + a14 = 8; + a19 = 5; + a29 = 6; + a24 = 1; + a11 = 1; + return 24; + } else if(((((!(a11==1)&&((a19==5)&&((a24==1)&&((!(a20==1)&&(!(a7==1)&&(!(a25==1)&&((input==3)&&(a22==1)))))&&(a0==1)))))&&(a28==1))&&(a29==7))&&(a14==8))){ + a25 = 1; + a20 = 1; + a19 = 1; + a11 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if((!(a20==1)&&((a11==1)&&(((((a14==8)&&((a28==1)&&(((((a29==5)&&(input==4))&&!(a7==1))&&(a19==4))&&(a25==1))))&&(a22==1))&&(a24==1))&&!(a0==1))))){ + a19 = 2; + a29 = 7; + a25 = 0; + a7 = 1; + a20 = 1; + return -1; + } else if((!(a24==1)&&((a7==1)&&(!(a11==1)&&(((a0==1)&&(((a20==1)&&((a14==9)&&((((a19==1)&&(!(a25==1)&&(a29==6)))||((((a25==1)&&(a29==9))&&(a19==5))||((a19==1)&&(!(a25==1)&&(a29==5)))))&&(input==3))))&&(a28==1)))&&(a22==1)))))){ + a14 = 8; + a20 = 0; + a29 = 8; + a19 = 3; + a24 = 1; + a25 = 1; + a0 = 0; + return 23; + } else if((!(a7==1)&&((!(a24==1)&&(!(a11==1)&&(((!(a0==1)&&(!(a20==1)&&((a14==8)&&((input==5)&&(((a19==2)&&(a29==5))||(((a19==1)&&(a29==8))||((a29==9)&&(a19==1))))))))&&(a28==1))&&(a22==1))))&&(a25==1)))){ + a25 = 0; + a11 = 1; + a19 = 5; + a29 = 9; + a20 = 1; + a24 = 1; + return 23; + } else if((!(a25==1)&&(!(a7==1)&&(!(a20==1)&&(((a14==8)&&(!(a11==1)&&(((a0==1)&&(((a22==1)&&((input==2)&&((a29==5)||(a29==6))))&&(a28==1)))&&!(a24==1))))&&(a19==3)))))){ + a25 = 1; + a19 = 4; + a29 = 9; + return 21; + } else if(((a24==1)&&(((a22==1)&&((!(a0==1)&&(((a7==1)&&(((a29==9)&&((a19==3)&&((a28==1)&&(input==6))))&&(a11==1)))&&(a20==1)))&&(a14==8)))&&!(a25==1)))){ + a19 = 2; + a29 = 6; + a25 = 1; + return 23; + } else if(((a22==1)&&(!(a20==1)&&((a11==1)&&((a7==1)&&(!(a24==1)&&((a28==1)&&(((a14==8)&&(!(a25==1)&&((input==3)&&(((a19==5)&&(a29==5))||(((a29==8)&&(a19==4))||((a19==4)&&(a29==9)))))))&&(a0==1))))))))){ + a24 = 1; + a29 = 7; + a20 = 1; + a11 = 0; + a19 = 3; + a0 = 0; + a25 = 1; + return 21; + } else if(((((a28==1)&&(((a22==1)&&((a14==8)&&((((((a25==1)&&((a7==1)&&!(a20==1)))&&(a29==5))&&(a19==1))||(((a19==5)&&((a29==8)&&(((a20==1)&&!(a7==1))&&!(a25==1))))||((a19==5)&&((((a20==1)&&!(a7==1))&&!(a25==1))&&(a29==9)))))&&(input==4))))&&(a11==1)))&&!(a24==1))&&!(a0==1))){ + a7 = 0; + a19 = 3; + a29 = 6; + a24 = 1; + a25 = 1; + a20 = 1; + return 24; + } else if(((((a22==1)&&(((!(a0==1)&&(((a11==1)&&((a28==1)&&((((a29==5)&&(a19==5))||(((a29==8)&&(a19==4))||((a29==9)&&(a19==4))))&&(input==5))))&&!(a24==1)))&&!(a20==1))&&(a25==1)))&&(a7==1))&&(a14==8))){ + a7 = 0; + a0 = 1; + a19 = 4; + a29 = 8; + a11 = 0; + return 21; + } else if(((a22==1)&&(!(a25==1)&&((!(a0==1)&&(!(a11==1)&&((a28==1)&&((a20==1)&&((((input==5)&&((((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))||((a19==5)&&(a29==5))))&&(a14==8))&&(a24==1))))))&&!(a7==1))))){ + a11 = 1; + a29 = 7; + a24 = 0; + a19 = 2; + a25 = 1; + return -1; + } else if((((a22==1)&&(((((((((a25==1)&&((a20==1)&&(input==2)))&&(a14==8))&&(a29==5))&&!(a0==1))&&(a28==1))&&(a24==1))&&(a11==1))&&(a7==1)))&&(a19==4))){ + a25 = 0; + a20 = 0; + a24 = 0; + a0 = 1; + a11 = 0; + return -1; + } else if(((a0==1)&&(((((a24==1)&&((a11==1)&&((a25==1)&&((((input==6)&&(((a29==5)&&(a19==3))||(((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))))&&!(a20==1))&&(a22==1)))))&&(a28==1))&&(a14==9))&&!(a7==1)))){ + a19 = 5; + a7 = 1; + a29 = 7; + a20 = 1; + a14 = 10; + return 24; + } else if((((a28==1)&&(((a11==1)&&((((a7==1)&&((a0==1)&&((a25==1)&&((((a29==5)||(a29==6))&&(input==5))&&!(a24==1)))))&&(a19==1))&&!(a20==1)))&&(a22==1)))&&(a14==8))){ + a20 = 1; + a29 = 8; + a25 = 0; + a7 = 0; + a19 = 4; + a0 = 0; + return 21; + } else if(((a24==1)&&((a20==1)&&(!(a25==1)&&((((((a19==4)&&((((input==3)&&(a22==1))&&(a14==9))&&(a29==6)))&&!(a0==1))&&!(a7==1))&&(a28==1))&&!(a11==1)))))){ + a19 = 1; + a11 = 1; + a29 = 5; + a0 = 1; + a7 = 1; + a25 = 1; + a14 = 8; + return -1; + } else if(((a14==9)&&((!(a7==1)&&(((a28==1)&&((((((a22==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==4)))&&(a24==1))&&(a20==1))&&!(a25==1))&&(a0==1)))&&(a19==5)))&&!(a11==1)))){ + a11 = 1; + a14 = 8; + a29 = 5; + a25 = 1; + a19 = 1; + a7 = 1; + return -1; + } else if(((a28==1)&&(!(a0==1)&&((((a14==9)&&((!(a7==1)&&((((input==6)&&((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))||((a19==5)&&(a29==6))))&&!(a25==1))&&(a24==1)))&&(a22==1)))&&(a11==1))&&!(a20==1))))){ + a25 = 1; + a7 = 1; + a29 = 5; + a19 = 2; + a24 = 0; + a20 = 1; + a14 = 8; + return -1; + } else if((((a19==3)&&((a14==8)&&(((a22==1)&&(((!(a24==1)&&((a0==1)&&(((a29==6)&&(input==2))&&!(a20==1))))&&!(a25==1))&&(a11==1)))&&(a28==1))))&&(a7==1))){ + a25 = 1; + a19 = 1; + a20 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if(((a28==1)&&((a0==1)&&((a19==3)&&(!(a11==1)&&(!(a24==1)&&((a14==8)&&((((a7==1)&&(((a29==6)&&(input==6))&&(a20==1)))&&!(a25==1))&&(a22==1))))))))){ + a19 = 2; + a7 = 0; + a14 = 9; + a11 = 1; + a29 = 5; + return 23; + } else if(((a14==9)&&(!(a7==1)&&((a28==1)&&((((((((a19==4)&&((input==6)&&((a29==6)||(a29==7))))&&!(a20==1))&&!(a24==1))&&!(a0==1))&&!(a11==1))&&(a25==1))&&(a22==1)))))){ + a11 = 1; + a14 = 8; + a24 = 1; + a29 = 5; + a19 = 3; + return 24; + } else if(((a14==9)&&(((!(a0==1)&&((a11==1)&&(((a22==1)&&(!(a24==1)&&((a20==1)&&((input==2)&&(((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))))))&&!(a7==1))))&&(a28==1))&&(a25==1)))){ + a19 = 2; + a29 = 9; + a25 = 0; + a14 = 8; + a11 = 0; + a7 = 1; + a20 = 0; + return -1; + } else if(((a14==9)&&(((a28==1)&&(((a19==3)&&(((a7==1)&&((((a11==1)&&((input==1)&&(((a29==5)||(a29==6))||(a29==7))))&&!(a20==1))&&!(a25==1)))&&(a24==1)))&&(a22==1)))&&(a0==1)))){ + a19 = 1; + a20 = 1; + a29 = 5; + a14 = 8; + a25 = 1; + return -1; + } else if(((!(a11==1)&&(!(a20==1)&&((a24==1)&&(((a22==1)&&(((input==5)&&(((a19==5)&&((!(a25==1)&&(a7==1))&&(a29==9)))||((a19==1)&&((!(a7==1)&&(a25==1))&&(a29==5)))))&&(a28==1)))&&(a14==9)))))&&!(a0==1))){ + a19 = 1; + a7 = 0; + a25 = 1; + a14 = 8; + a0 = 1; + a29 = 7; + a24 = 0; + return 23; + } else if(((a14==9)&&((a22==1)&&(((!(a7==1)&&((!(a25==1)&&(((a11==1)&&((a20==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==5))))&&!(a24==1)))&&(a19==5)))&&(a28==1))&&!(a0==1))))){ + a14 = 8; + a24 = 1; + a20 = 0; + a19 = 4; + a29 = 6; + a25 = 1; + return 23; + } else if(((a19==3)&&((a28==1)&&((a0==1)&&((a22==1)&&(((((a29==6)&&((a14==9)&&((a11==1)&&((a7==1)&&(input==4)))))&&!(a24==1))&&!(a20==1))&&(a25==1))))))){ + a24 = 1; + a7 = 0; + a14 = 8; + a19 = 4; + a0 = 0; + a29 = 8; + return 21; + } else if((((a20==1)&&((((a11==1)&&(((a7==1)&&(!(a25==1)&&(((a0==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==3)))&&(a14==8))))&&(a19==5)))&&(a28==1))&&(a22==1)))&&!(a24==1))){ + a19 = 2; + a0 = 0; + a7 = 0; + a24 = 1; + a29 = 7; + return 24; + } else if(((a14==9)&&((a29==5)&&(((a28==1)&&(((a22==1)&&(((a7==1)&&((a19==2)&&((a11==1)&&(!(a20==1)&&(input==2)))))&&!(a24==1)))&&(a25==1)))&&!(a0==1))))){ + a29 = 8; + a20 = 1; + a24 = 1; + a19 = 3; + return -1; + } else if(((a0==1)&&((((((a22==1)&&(((a25==1)&&(((((a19==5)&&(a29==6))||(((a29==9)&&(a19==4))||((a29==5)&&(a19==5))))&&(input==4))&&(a7==1)))&&!(a20==1)))&&!(a11==1))&&(a14==9))&&!(a24==1))&&(a28==1)))){ + a25 = 0; + a29 = 7; + a14 = 8; + a19 = 3; + return 23; + } else if(((((a0==1)&&(!(a11==1)&&(!(a7==1)&&((a28==1)&&((((((input==1)&&(((a29==5)||(a29==6))||(a29==7)))&&(a14==9))&&!(a20==1))&&(a25==1))&&!(a24==1))))))&&(a22==1))&&(a19==3))){ + a25 = 0; + a14 = 8; + a19 = 4; + a29 = 5; + a20 = 1; + a0 = 0; + return -1; + } else if(((a22==1)&&(((((a14==10)&&(!(a7==1)&&(((a24==1)&&(((((a29==5)||(a29==6))&&(input==2))&&(a20==1))&&(a25==1)))&&(a19==3))))&&(a11==1))&&(a0==1))&&(a28==1)))){ + a7 = 1; + a0 = 0; + a25 = 0; + a29 = 6; + a14 = 9; + a11 = 0; + a20 = 0; + return -1; + } else if(((a22==1)&&(((a7==1)&&((((((a11==1)&&((((input==4)&&((a29==7)||(a29==8)))&&(a0==1))&&(a14==8)))&&(a25==1))&&!(a24==1))&&(a28==1))&&!(a20==1)))&&(a19==1)))){ + a29 = 5; + a20 = 1; + a24 = 1; + return -1; + } else if(((((((a22==1)&&(!(a25==1)&&(((((!(a20==1)&&(input==2))&&!(a11==1))&&(a14==8))&&(a19==2))&&(a29==9))))&&(a28==1))&&(a7==1))&&(a0==1))&&!(a24==1))){ + a25 = 1; + a29 = 6; + a11 = 1; + a7 = 0; + a19 = 1; + a24 = 1; + a0 = 0; + return 23; + } else if((!(a25==1)&&(((((((a20==1)&&(!(a0==1)&&(((a14==8)&&((input==5)&&!(a24==1)))&&(a22==1))))&&(a11==1))&&(a29==7))&&(a19==5))&&(a28==1))&&!(a7==1)))){ + a19 = 1; + a25 = 1; + a0 = 1; + a29 = 5; + a7 = 1; + a24 = 1; + return -1; + } else if(((((((!(a24==1)&&(((a19==5)&&((a0==1)&&((a20==1)&&(((a29==5)||(a29==6))&&(input==4)))))&&(a28==1)))&&(a7==1))&&(a22==1))&&!(a11==1))&&(a14==8))&&!(a25==1))){ + a29 = 5; + a25 = 1; + a0 = 0; + a11 = 1; + a24 = 1; + a20 = 0; + return 24; + } else if((((a29==7)&&(((a11==1)&&((a22==1)&&((a7==1)&&(!(a24==1)&&(!(a20==1)&&((((input==2)&&(a25==1))&&(a14==9))&&(a0==1)))))))&&(a19==2)))&&(a28==1))){ + a29 = 5; + a24 = 1; + a20 = 1; + a19 = 1; + a14 = 8; + return -1; + } else if((((a11==1)&&((a29==6)&&((((((a0==1)&&(!(a25==1)&&((a7==1)&&(!(a20==1)&&(input==2)))))&&(a22==1))&&(a14==9))&&!(a24==1))&&(a28==1))))&&(a19==4))){ + a24 = 1; + a7 = 0; + a19 = 3; + a29 = 7; + a25 = 1; + return -1; + } else if(((((!(a25==1)&&((a19==4)&&((!(a0==1)&&((a14==8)&&((!(a24==1)&&((input==6)&&(a28==1)))&&!(a11==1))))&&(a29==5))))&&!(a7==1))&&(a22==1))&&(a20==1))){ + a0 = 1; + a11 = 1; + a19 = 1; + a29 = 9; + a24 = 1; + return -1; + } else if((((a24==1)&&((a0==1)&&(!(a25==1)&&(((a19==4)&&((a22==1)&&((a14==9)&&((((input==4)&&((a29==8)||((a29==6)||(a29==7))))&&(a20==1))&&(a28==1)))))&&!(a7==1)))))&&(a11==1))){ + a19 = 1; + a25 = 1; + a29 = 5; + a7 = 1; + a14 = 8; + return -1; + } else if(((a19==3)&&((a14==9)&&(((!(a24==1)&&(!(a25==1)&&((a22==1)&&(((a20==1)&&(((input==3)&&((a29==9)||((a29==7)||(a29==8))))&&(a11==1)))&&(a28==1)))))&&!(a7==1))&&!(a0==1))))){ + a24 = 1; + a29 = 5; + a19 = 4; + a14 = 8; + return -1; + } else if(((!(a7==1)&&((((a22==1)&&(((a19==5)&&(!(a24==1)&&(((a0==1)&&((input==5)&&((a29==8)||(a29==9))))&&!(a25==1))))&&(a28==1)))&&(a20==1))&&(a11==1)))&&(a14==8))){ + a19 = 3; + a25 = 1; + a24 = 1; + a7 = 1; + a29 = 8; + a20 = 0; + return 24; + } else if((((a20==1)&&((a7==1)&&(((a19==1)&&(!(a0==1)&&((((a11==1)&&((a25==1)&&(((a29==7)||(a29==8))&&(input==4))))&&(a22==1))&&(a28==1))))&&!(a24==1))))&&(a14==8))){ + a29 = 5; + a0 = 1; + a24 = 1; + return -1; + } else if(((a14==8)&&((a25==1)&&((((a22==1)&&((!(a7==1)&&(((a20==1)&&(((((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))||((a29==6)&&(a19==2)))&&(input==6)))&&!(a24==1)))&&(a28==1)))&&(a11==1))&&(a0==1))))){ + a24 = 1; + a0 = 0; + a7 = 1; + a25 = 0; + a19 = 3; + a20 = 0; + a29 = 9; + return 24; + } else if((((((a22==1)&&((a28==1)&&(!(a25==1)&&((!(a24==1)&&((a14==8)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==2))&&!(a11==1))))&&(a0==1)))))&&(a19==2))&&!(a20==1))&&!(a7==1))){ + a7 = 1; + a29 = 5; + a11 = 1; + a0 = 0; + a24 = 1; + return 23; + } else if(((a19==1)&&((a11==1)&&(!(a0==1)&&(!(a24==1)&&((a20==1)&&((((!(a25==1)&&(((input==6)&&((a29==8)||((a29==6)||(a29==7))))&&!(a7==1)))&&(a28==1))&&(a22==1))&&(a14==9)))))))){ + a7 = 1; + a29 = 5; + a24 = 1; + a0 = 1; + a25 = 1; + a14 = 8; + return -1; + } else if(((!(a7==1)&&(((a22==1)&&(((a19==5)&&((!(a20==1)&&((((((a29==6)||(a29==7))||(a29==8))&&(input==6))&&(a14==8))&&(a0==1)))&&!(a11==1)))&&(a28==1)))&&!(a24==1)))&&!(a25==1))){ + a7 = 1; + a29 = 8; + a19 = 3; + return -1; + } else if(((a14==10)&&((!(a7==1)&&((a24==1)&&((a22==1)&&((((a25==1)&&((((input==1)&&((a29==5)||(a29==6)))&&(a20==1))&&(a11==1)))&&(a28==1))&&(a19==3)))))&&(a0==1)))){ + a14 = 9; + a0 = 0; + a19 = 1; + a29 = 9; + a11 = 0; + a7 = 1; + return -1; + } else if(((!(a7==1)&&(((a22==1)&&((((a11==1)&&((a25==1)&&((a14==9)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==5))&&!(a24==1)))))&&(a19==4))&&!(a20==1)))&&(a28==1)))&&(a0==1))){ + a14 = 8; + a29 = 7; + a19 = 3; + a25 = 0; + a7 = 1; + a0 = 0; + a11 = 0; + a24 = 1; + return 24; + } else if(((a7==1)&&(((a25==1)&&(!(a11==1)&&((((a14==9)&&((((a28==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==4)))&&(a22==1))&&(a24==1)))&&(a19==5))&&(a0==1))))&&(a20==1)))){ + a29 = 5; + a14 = 8; + a19 = 1; + a11 = 1; + return -1; + } else if((((a25==1)&&((((((a19==3)&&(((a28==1)&&((((a29==6)||(a29==7))&&(input==5))&&(a22==1)))&&(a24==1)))&&!(a0==1))&&(a11==1))&&(a14==8))&&!(a7==1)))&&!(a20==1))){ + a29 = 8; + a24 = 0; + a11 = 0; + a0 = 1; + a19 = 4; + return 23; + } else if(((((a14==9)&&((a24==1)&&(((a22==1)&&((a19==4)&&((a29==8)&&(!(a25==1)&&((a28==1)&&((input==5)&&(a11==1)))))))&&(a0==1))))&&(a7==1))&&!(a20==1))){ + a14 = 8; + a29 = 9; + a7 = 0; + a0 = 0; + return 24; + } else if(((!(a24==1)&&((((!(a20==1)&&((a28==1)&&(((a25==1)&&((a11==1)&&(((a29==8)||(a29==9))&&(input==6))))&&!(a7==1))))&&(a22==1))&&(a0==1))&&(a19==5)))&&(a14==9))){ + a20 = 1; + a19 = 1; + a29 = 5; + a14 = 8; + a7 = 1; + a24 = 1; + return -1; + } else if(((!(a7==1)&&(((a22==1)&&((a20==1)&&((a28==1)&&((a25==1)&&((a11==1)&&((!(a24==1)&&((input==5)&&((a29==8)||(a29==9))))&&(a14==9)))))))&&(a0==1)))&&(a19==4))){ + a25 = 0; + a19 = 3; + a7 = 1; + a29 = 7; + a11 = 0; + return 21; + } else if(((a22==1)&&(((a19==5)&&((((a14==10)&&(((a20==1)&&(((a0==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==1)))&&(a11==1)))&&(a28==1)))&&(a25==1))&&(a24==1)))&&!(a7==1)))){ + a29 = 5; + a7 = 1; + a14 = 8; + a19 = 1; + return -1; + } else if(((a7==1)&&(((((!(a11==1)&&((((a28==1)&&(!(a0==1)&&(((a29==7)||(a29==8))&&(input==4))))&&(a22==1))&&(a20==1)))&&(a14==9))&&!(a24==1))&&!(a25==1))&&(a19==1)))){ + a20 = 0; + a29 = 9; + a14 = 8; + a19 = 3; + return 24; + } else if(((((a28==1)&&((!(a0==1)&&(!(a11==1)&&(((((a22==1)&&(((a29==7)||(a29==8))&&(input==5)))&&!(a25==1))&&(a24==1))&&!(a7==1))))&&!(a20==1)))&&(a14==8))&&(a19==1))){ + a19 = 5; + a29 = 9; + a11 = 1; + a14 = 9; + a24 = 0; + return 21; + } else if((((a14==8)&&(((((!(a7==1)&&(((a28==1)&&(!(a24==1)&&((input==6)&&((a29==9)||((a29==7)||(a29==8))))))&&(a0==1)))&&(a25==1))&&(a19==1))&&(a20==1))&&(a22==1)))&&!(a11==1))){ + a20 = 0; + a25 = 0; + a29 = 8; + return 21; + } else if(((a22==1)&&((((a28==1)&&((!(a0==1)&&(((a25==1)&&(((a29==5)&&((input==2)&&!(a11==1)))&&!(a7==1)))&&(a14==9)))&&(a24==1)))&&(a19==3))&&!(a20==1)))){ + a11 = 1; + a24 = 0; + a0 = 1; + a19 = 4; + a20 = 1; + a25 = 0; + a29 = 7; + a7 = 1; + return -1; + } else if(((a22==1)&&((!(a11==1)&&((((a0==1)&&(!(a25==1)&&((((a7==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==6)))&&(a14==9))&&(a28==1))))&&(a24==1))&&(a20==1)))&&(a19==5)))){ + a14 = 8; + a20 = 0; + a19 = 2; + a7 = 0; + a0 = 0; + a11 = 1; + a29 = 5; + return 24; + } else if(((a11==1)&&(!(a7==1)&&(((a28==1)&&((a22==1)&&(((a19==3)&&((((a0==1)&&((input==2)&&(a14==9)))&&(a29==9))&&(a20==1)))&&(a25==1))))&&!(a24==1))))){ + a20 = 0; + a14 = 8; + a25 = 0; + a19 = 5; + a0 = 0; + a24 = 1; + a29 = 5; + return 24; + } else if((((a20==1)&&((!(a7==1)&&((a11==1)&&((a19==1)&&(((a14==9)&&(((((a29==9)||((a29==7)||(a29==8)))&&(input==1))&&!(a24==1))&&(a25==1)))&&(a28==1)))))&&(a0==1)))&&(a22==1))){ + a0 = 0; + a14 = 8; + a19 = 2; + a24 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if(((a28==1)&&((((a20==1)&&((a14==9)&&(((!(a0==1)&&((!(a24==1)&&((input==4)&&(((a29==5)||(a29==6))||(a29==7))))&&!(a25==1)))&&(a7==1))&&(a11==1))))&&(a19==1))&&(a22==1)))){ + a24 = 1; + a7 = 0; + a29 = 7; + a14 = 8; + return -1; + } else if(((a28==1)&&(((a7==1)&&(((a24==1)&&(((a19==3)&&((a11==1)&&((((input==5)&&((a29==8)||((a29==6)||(a29==7))))&&(a25==1))&&(a14==8))))&&!(a0==1)))&&(a22==1)))&&(a20==1)))){ + a29 = 6; + a19 = 1; + return -1; + } else if(((((a22==1)&&((a11==1)&&((a19==1)&&(((a28==1)&&(((a20==1)&&(!(a24==1)&&(((a29==7)||(a29==8))&&(input==4))))&&(a14==9)))&&!(a7==1)))))&&!(a0==1))&&(a25==1))){ + a11 = 0; + a24 = 1; + a29 = 5; + a7 = 1; + a0 = 1; + a19 = 4; + return 23; + } else if(((a28==1)&&((a22==1)&&(!(a20==1)&&((a29==7)&&(((((((!(a24==1)&&(input==2))&&(a25==1))&&(a19==5))&&(a14==9))&&(a7==1))&&(a0==1))&&(a11==1))))))){ + a14 = 8; + a20 = 1; + a19 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if((!(a11==1)&&((((((((((a22==1)&&((a20==1)&&(input==3)))&&(a0==1))&&(a19==1))&&(a29==9))&&(a28==1))&&(a14==8))&&(a24==1))&&!(a25==1))&&!(a7==1)))){ + a11 = 1; + a7 = 1; + a25 = 1; + a29 = 5; + a19 = 5; + a0 = 0; + return 24; + } else if(((((((a20==1)&&(((a22==1)&&(((((input==1)&&((a29==7)||(a29==8)))&&!(a25==1))&&(a11==1))&&!(a7==1)))&&(a0==1)))&&(a19==2))&&(a24==1))&&(a14==9))&&(a28==1))){ + a29 = 9; + a7 = 1; + return -1; + } else if((((a24==1)&&((a20==1)&&((a28==1)&&(!(a11==1)&&((a22==1)&&((a14==9)&&(!(a7==1)&&(((input==5)&&((((a29==8)&&(a19==1))||((a19==1)&&(a29==9)))||((a19==2)&&(a29==5))))&&!(a25==1)))))))))&&(a0==1))){ + a14 = 8; + a20 = 0; + a29 = 6; + a7 = 1; + a24 = 0; + a19 = 4; + return 21; + } else if((!(a0==1)&&((a14==8)&&((a28==1)&&((a19==1)&&((a25==1)&&((a24==1)&&((((a7==1)&&(!(a20==1)&&(((a29==5)||(a29==6))&&(input==1))))&&(a11==1))&&(a22==1))))))))){ + a7 = 0; + a0 = 1; + a20 = 1; + a11 = 0; + a25 = 0; + a29 = 8; + a14 = 9; + a24 = 0; + return 23; + } else if((((((a22==1)&&(((a7==1)&&((!(a20==1)&&((a28==1)&&((a29==9)&&((a19==2)&&(input==6)))))&&!(a25==1)))&&(a0==1)))&&(a14==8))&&(a24==1))&&(a11==1))){ + a19 = 1; + a29 = 5; + a25 = 1; + a20 = 1; + return -1; + } else if(((!(a20==1)&&(((a19==3)&&((a14==8)&&(((a24==1)&&((a7==1)&&((!(a0==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==5)))&&(a28==1))))&&(a22==1))))&&!(a25==1)))&&(a11==1))){ + a19 = 5; + a29 = 9; + a20 = 1; + return -1; + } else if((((((a11==1)&&((((a28==1)&&(((a0==1)&&(((a7==1)&&(input==4))&&(a19==5)))&&(a29==8)))&&!(a20==1))&&(a14==8)))&&(a24==1))&&(a22==1))&&(a25==1))){ + a19 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if(((a22==1)&&((((a29==5)&&(!(a25==1)&&((a11==1)&&(!(a20==1)&&((((a24==1)&&((input==3)&&(a0==1)))&&(a28==1))&&(a7==1))))))&&(a14==8))&&(a19==5)))){ + a19 = 3; + a29 = 7; + a11 = 0; + a20 = 1; + return 21; + } else if(((a14==8)&&(!(a20==1)&&((((a29==9)&&(!(a7==1)&&(((!(a11==1)&&(((input==4)&&(a24==1))&&(a19==2)))&&(a28==1))&&(a22==1))))&&!(a25==1))&&!(a0==1))))){ + a19 = 1; + a20 = 1; + a25 = 1; + a14 = 9; + a7 = 1; + return 24; + } else if(((a22==1)&&(((((a28==1)&&(!(a11==1)&&(((a14==9)&&((((input==6)&&(a29==8))&&(a19==1))&&(a7==1)))&&(a24==1))))&&!(a0==1))&&(a25==1))&&(a20==1)))){ + a11 = 1; + a19 = 3; + a0 = 1; + a20 = 0; + return 24; + } else if((!(a20==1)&&((a7==1)&&(((((a22==1)&&(((a19==3)&&((!(a25==1)&&((input==2)&&((a29==7)||(a29==8))))&&(a24==1)))&&!(a0==1)))&&(a14==9))&&!(a11==1))&&(a28==1))))){ + a20 = 1; + a11 = 1; + a25 = 1; + a24 = 0; + a19 = 5; + a0 = 1; + a29 = 5; + return 23; + } else if(((a22==1)&&((a24==1)&&((((a14==10)&&(!(a7==1)&&(((a19==4)&&((a11==1)&&(((input==6)&&(a0==1))&&(a28==1))))&&(a20==1))))&&!(a25==1))&&(a29==8))))){ + a19 = 1; + a24 = 0; + a14 = 9; + a25 = 1; + a20 = 0; + return -1; + } else if(((a0==1)&&((a22==1)&&(((a24==1)&&(((a20==1)&&((a29==8)&&(((a28==1)&&((a25==1)&&((a19==1)&&(input==4))))&&(a14==9))))&&(a11==1)))&&(a7==1))))){ + a19 = 5; + a29 = 6; + a14 = 8; + a20 = 0; + a0 = 0; + return 23; + } else if(((a11==1)&&((a14==8)&&((((a0==1)&&((a7==1)&&((!(a24==1)&&((a19==3)&&(!(a25==1)&&((a28==1)&&(input==1)))))&&!(a20==1))))&&(a22==1))&&(a29==7))))){ + a29 = 8; + a11 = 0; + return 24; + } else if(((((!(a20==1)&&((((a14==9)&&((a28==1)&&((a7==1)&&((((a29==7)||(a29==8))&&(input==4))&&!(a25==1)))))&&!(a0==1))&&!(a11==1)))&&(a22==1))&&(a19==3))&&!(a24==1))){ + a14 = 8; + a25 = 1; + a29 = 5; + a0 = 1; + a19 = 1; + a11 = 1; + a24 = 1; + a20 = 1; + return -1; + } else if(((a19==1)&&(!(a0==1)&&(((a11==1)&&((a22==1)&&((a28==1)&&(!(a20==1)&&((a29==7)&&(((a14==9)&&(!(a24==1)&&(input==1)))&&!(a25==1)))))))&&(a7==1))))){ + a11 = 0; + a19 = 4; + a7 = 0; + a14 = 8; + a29 = 9; + a20 = 1; + a25 = 1; + return 21; + } return calculate_output12(input); + } + + int calculate_output12(int input) { + if((((((((!(a7==1)&&((a22==1)&&((a28==1)&&((a19==1)&&((input==2)&&(((a29==7)||(a29==8))||(a29==9)))))))&&!(a0==1))&&(a14==8))&&!(a20==1))&&!(a24==1))&&(a11==1))&&(a25==1))){ + a25 = 0; + a24 = 1; + a11 = 0; + a29 = 5; + a0 = 1; + a7 = 1; + a19 = 4; + a14 = 9; + return 24; + } else if((!(a25==1)&&(!(a11==1)&&(((((((((a14==8)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==6)))&&(a22==1))&&(a20==1))&&(a28==1))&&(a19==2))&&(a0==1))&&!(a7==1))&&(a24==1))))){ + a20 = 0; + a0 = 0; + a29 = 6; + a24 = 0; + a7 = 1; + a19 = 1; + return 24; + } else if((((a24==1)&&(((a20==1)&&((((a29==9)&&((((a19==5)&&((a25==1)&&(input==1)))&&(a14==9))&&(a7==1)))&&!(a11==1))&&(a0==1)))&&(a22==1)))&&(a28==1))){ + a25 = 0; + a14 = 8; + a7 = 0; + a19 = 3; + a24 = 0; + a0 = 0; + return 24; + } else if((!(a7==1)&&(((a28==1)&&((a14==9)&&((a11==1)&&((a20==1)&&(((((((a19==5)&&(a29==6))||(((a19==4)&&(a29==9))||((a19==5)&&(a29==5))))&&(input==1))&&(a0==1))&&(a22==1))&&(a24==1))))))&&(a25==1)))){ + a19 = 1; + a14 = 8; + a29 = 8; + a0 = 0; + a7 = 1; + return 24; + } else if((!(a25==1)&&(((((a7==1)&&((a28==1)&&(!(a11==1)&&((a19==4)&&(!(a20==1)&&(((input==6)&&(((a29==5)||(a29==6))||(a29==7)))&&!(a0==1)))))))&&(a22==1))&&(a24==1))&&(a14==8)))){ + a29 = 5; + a11 = 1; + a25 = 1; + a20 = 1; + a0 = 1; + a19 = 1; + return -1; + } else if((((a20==1)&&(((((((a14==10)&&(!(a24==1)&&(((a28==1)&&(input==3))&&(a29==8))))&&(a0==1))&&(a11==1))&&(a19==1))&&(a22==1))&&(a25==1)))&&(a7==1))){ + a29 = 5; + a24 = 1; + a14 = 8; + return -1; + } else if((((!(a20==1)&&(((!(a11==1)&&((!(a0==1)&&(((((a29==6)&&(a19==4))||(((a19==3)&&(a29==9))||((a29==5)&&(a19==4))))&&(input==3))&&(a24==1)))&&(a14==9)))&&(a7==1))&&!(a25==1)))&&(a22==1))&&(a28==1))){ + a11 = 1; + a19 = 1; + a20 = 1; + a0 = 1; + a25 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if((((((((a0==1)&&(((a7==1)&&((a25==1)&&((a19==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==5)))))&&(a28==1)))&&(a24==1))&&(a22==1))&&(a14==8))&&(a11==1))&&!(a20==1))){ + a29 = 6; + a24 = 0; + a7 = 0; + a20 = 1; + a19 = 3; + return 24; + } else if(((a22==1)&&((a24==1)&&((a11==1)&&(((((a14==8)&&(((a20==1)&&((a7==1)&&((input==4)&&!(a0==1))))&&(a28==1)))&&(a29==7))&&(a25==1))&&(a19==5)))))){ + a0 = 1; + a19 = 4; + a29 = 5; + a20 = 0; + a25 = 0; + a24 = 0; + a11 = 0; + return -1; + } else if(((a28==1)&&((((a29==9)&&((a14==9)&&(!(a7==1)&&(((!(a25==1)&&(!(a24==1)&&(!(a0==1)&&(input==3))))&&(a11==1))&&(a19==2)))))&&(a22==1))&&(a20==1)))){ + a19 = 1; + a25 = 1; + a0 = 1; + a24 = 1; + a29 = 5; + a7 = 1; + a14 = 8; + return -1; + } else if((((((a22==1)&&(((a20==1)&&(((((((a29==7)||(a29==8))&&(input==2))&&(a14==8))&&(a24==1))&&(a19==4))&&(a0==1)))&&!(a11==1)))&&(a7==1))&&(a25==1))&&(a28==1))){ + a29 = 5; + a19 = 1; + a11 = 1; + return -1; + } else if(((a19==2)&&(!(a7==1)&&((((a28==1)&&((a11==1)&&((!(a24==1)&&(!(a25==1)&&(!(a0==1)&&((input==5)&&((a29==5)||(a29==6))))))&&(a22==1))))&&(a14==8))&&!(a20==1))))){ + a19 = 1; + a0 = 1; + a24 = 1; + a20 = 1; + a29 = 5; + a7 = 1; + a25 = 1; + return -1; + } else if(((((a22==1)&&((a7==1)&&((a19==4)&&(((a14==8)&&(!(a11==1)&&(!(a0==1)&&(((input==2)&&((a29==7)||((a29==5)||(a29==6))))&&!(a20==1)))))&&(a28==1)))))&&(a24==1))&&!(a25==1))){ + a20 = 1; + a19 = 5; + a29 = 8; + a11 = 1; + a25 = 1; + return 24; + } else if(((a28==1)&&((a20==1)&&((a11==1)&&((a19==5)&&((a22==1)&&((!(a0==1)&&(((a14==8)&&((a7==1)&&(((a29==5)||(a29==6))&&(input==4))))&&(a25==1)))&&!(a24==1)))))))){ + a29 = 5; + a19 = 2; + a7 = 0; + a24 = 1; + a20 = 0; + return 24; + } else if(((!(a20==1)&&(((!(a25==1)&&(((((a14==8)&&((input==4)&&((((a29==8)&&(a19==2))||((a29==9)&&(a19==2)))||((a19==3)&&(a29==5)))))&&(a7==1))&&(a22==1))&&(a28==1)))&&!(a11==1))&&(a0==1)))&&(a24==1))){ + a11 = 1; + a19 = 1; + a20 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if((!(a11==1)&&((((((a14==8)&&(((((input==5)&&(((a29==6)&&(a19==2))||(((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))))&&(a20==1))&&(a28==1))&&(a22==1)))&&!(a0==1))&&(a25==1))&&!(a7==1))&&!(a24==1)))){ + a14 = 9; + a19 = 4; + a29 = 9; + a24 = 1; + return 23; + } else if(((a22==1)&&(!(a7==1)&&((a28==1)&&((a19==4)&&(!(a0==1)&&((a29==5)&&((a14==9)&&(((a25==1)&&(((input==6)&&!(a11==1))&&!(a24==1)))&&(a20==1)))))))))){ + a0 = 1; + a7 = 1; + a14 = 8; + a11 = 1; + a24 = 1; + a19 = 1; + return -1; + } else if((((((((a11==1)&&(!(a25==1)&&((a20==1)&&(!(a0==1)&&((a28==1)&&((input==4)&&((a29==8)||((a29==6)||(a29==7)))))))))&&(a22==1))&&(a19==3))&&!(a7==1))&&(a24==1))&&(a14==8))){ + a11 = 0; + a20 = 0; + a29 = 7; + a7 = 1; + a0 = 1; + a24 = 0; + return -1; + } else if(((a29==7)&&((a14==9)&&((a19==2)&&(((a24==1)&&(!(a20==1)&&((a7==1)&&((a28==1)&&((a22==1)&&((a11==1)&&((input==1)&&!(a0==1))))))))&&(a25==1)))))){ + a11 = 0; + a29 = 6; + a20 = 1; + a14 = 8; + a19 = 3; + return 24; + } else if((!(a0==1)&&((!(a7==1)&&(((((a14==9)&&(((a29==8)&&((a11==1)&&(!(a24==1)&&(input==6))))&&(a22==1)))&&(a28==1))&&(a19==3))&&!(a20==1)))&&!(a25==1)))){ + a29 = 6; + a24 = 1; + a19 = 1; + a0 = 1; + a20 = 1; + return 24; + } else if((!(a0==1)&&((((((((a24==1)&&((a28==1)&&((input==1)&&(((a19==2)&&(a29==9))||((a29==5)&&(a19==3))))))&&(a14==8))&&!(a25==1))&&!(a20==1))&&!(a11==1))&&(a7==1))&&(a22==1)))){ + a0 = 1; + a19 = 1; + a25 = 1; + a29 = 5; + a20 = 1; + a11 = 1; + return -1; + } else if((!(a25==1)&&(((!(a7==1)&&((a14==9)&&((a24==1)&&(((!(a20==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==1))&&(a11==1)))&&(a22==1))&&(a28==1)))))&&(a0==1))&&(a19==3)))){ + a7 = 1; + a20 = 1; + a25 = 1; + a19 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if((((a11==1)&&(!(a20==1)&&((a24==1)&&(((a19==1)&&(((a22==1)&&((a14==9)&&(!(a7==1)&&(((a29==8)||(a29==9))&&(input==3)))))&&!(a25==1)))&&!(a0==1)))))&&(a28==1))){ + a20 = 1; + a29 = 8; + a24 = 0; + a14 = 8; + a11 = 0; + a25 = 1; + a19 = 2; + return 21; + } else if(((a24==1)&&(((a14==9)&&(((a28==1)&&(!(a0==1)&&(((input==6)&&(((a19==5)&&((a29==9)&&(!(a25==1)&&(a7==1))))||((a19==1)&&((!(a7==1)&&(a25==1))&&(a29==5)))))&&!(a11==1))))&&!(a20==1)))&&(a22==1)))){ + a20 = 1; + a24 = 0; + a25 = 1; + a14 = 8; + a7 = 0; + a29 = 7; + a19 = 2; + return -1; + } else if(((a14==10)&&((!(a25==1)&&((((a0==1)&&((a28==1)&&((a11==1)&&((((((a29==6)||(a29==7))||(a29==8))&&(input==3))&&!(a20==1))&&!(a7==1)))))&&(a19==2))&&(a24==1)))&&(a22==1)))){ + a29 = 9; + a19 = 1; + return -1; + } else if((((a19==1)&&((a11==1)&&((a14==8)&&((a24==1)&&((((a25==1)&&((((input==1)&&((a29==5)||(a29==6)))&&!(a20==1))&&(a0==1)))&&!(a7==1))&&(a28==1))))))&&(a22==1))){ + a29 = 5; + a11 = 0; + a19 = 5; + a20 = 1; + return 21; + } else if(((a25==1)&&((a28==1)&&((a22==1)&&((((((a20==1)&&((a0==1)&&((input==4)&&(((a19==3)&&(a29==5))||(((a19==2)&&(a29==8))||((a29==9)&&(a19==2)))))))&&!(a24==1))&&(a11==1))&&(a14==8))&&(a7==1)))))){ + a19 = 3; + a29 = 8; + a20 = 0; + a25 = 0; + a11 = 0; + return 21; + } else if(((a22==1)&&(((a20==1)&&((a19==3)&&((((a14==8)&&(!(a11==1)&&((a25==1)&&(!(a7==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==1))))))&&(a28==1))&&(a24==1))))&&(a0==1)))){ + a19 = 1; + a29 = 5; + a7 = 1; + a11 = 1; + return -1; + } else if((!(a11==1)&&((a25==1)&&((a14==8)&&(((a0==1)&&(((a19==1)&&((a24==1)&&(((a22==1)&&((input==1)&&((a29==7)||(a29==8))))&&(a7==1))))&&!(a20==1)))&&(a28==1)))))){ + a29 = 8; + a0 = 0; + a19 = 3; + a24 = 0; + a7 = 0; + return 24; + } else if(((a11==1)&&(!(a20==1)&&(((a29==6)&&((a22==1)&&((a0==1)&&(((!(a7==1)&&((a14==10)&&((input==5)&&(a24==1))))&&!(a25==1))&&(a19==5)))))&&(a28==1))))){ + a0 = 0; + a19 = 2; + a24 = 0; + a14 = 9; + return -1; + } else if(((a19==3)&&(!(a20==1)&&((a29==8)&&(((a22==1)&&(((((((a11==1)&&(input==1))&&!(a24==1))&&(a0==1))&&(a25==1))&&!(a7==1))&&(a28==1)))&&(a14==8)))))){ + a24 = 1; + a0 = 0; + a25 = 0; + a19 = 4; + a11 = 0; + a29 = 6; + a7 = 1; + a20 = 1; + return 24; + } else if((((a28==1)&&(!(a7==1)&&(((a24==1)&&((a19==1)&&(((((a0==1)&&((input==4)&&((a29==9)||((a29==7)||(a29==8)))))&&(a22==1))&&(a25==1))&&!(a20==1))))&&(a14==8))))&&(a11==1))){ + a29 = 8; + a11 = 0; + a19 = 5; + a20 = 1; + return 21; + } else if(((a19==3)&&(!(a11==1)&&(((a20==1)&&(!(a0==1)&&((!(a7==1)&&(((!(a25==1)&&((input==1)&&((a29==5)||(a29==6))))&&(a28==1))&&(a22==1)))&&(a24==1))))&&(a14==9))))){ + a19 = 5; + a7 = 1; + a11 = 1; + a29 = 8; + a14 = 8; + return 24; + } else if((((((a22==1)&&(((a28==1)&&((((a19==2)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==6))&&(a11==1)))&&(a0==1))&&!(a20==1)))&&(a24==1)))&&(a7==1))&&(a14==9))&&(a25==1))){ + a29 = 5; + a19 = 1; + a14 = 8; + a20 = 1; + return -1; + } else if(((((a11==1)&&(!(a25==1)&&((a28==1)&&(((((a20==1)&&((((a29==5)||(a29==6))&&(input==6))&&!(a24==1)))&&(a19==3))&&(a0==1))&&(a7==1)))))&&(a22==1))&&(a14==9))){ + a29 = 6; + a19 = 1; + a25 = 1; + a7 = 0; + return 24; + } else if(((a11==1)&&(((a22==1)&&((a14==9)&&((((!(a20==1)&&(!(a24==1)&&(((input==2)&&((a29==8)||((a29==6)||(a29==7))))&&(a19==4))))&&(a0==1))&&!(a25==1))&&!(a7==1))))&&(a28==1)))){ + a0 = 0; + a19 = 2; + a14 = 8; + a7 = 1; + a29 = 7; + a25 = 1; + a20 = 1; + a24 = 1; + return 23; + } else if((((a7==1)&&((((a11==1)&&((((a0==1)&&(((a24==1)&&((input==4)&&(a28==1)))&&(a29==8)))&&!(a20==1))&&(a19==5)))&&(a22==1))&&(a14==10)))&&(a25==1))){ + a20 = 1; + a14 = 8; + a19 = 1; + a29 = 5; + return -1; + } else if(((((a28==1)&&(!(a24==1)&&((((a14==9)&&(((((a19==1)&&(!(a25==1)&&(a29==6)))||((((a29==9)&&(a25==1))&&(a19==5))||((!(a25==1)&&(a29==5))&&(a19==1))))&&(input==4))&&(a0==1)))&&(a22==1))&&(a7==1))))&&(a20==1))&&!(a11==1))){ + a14 = 8; + a25 = 1; + a29 = 5; + a11 = 1; + a19 = 1; + a24 = 1; + return -1; + } else if((!(a7==1)&&(!(a11==1)&&((a0==1)&&((!(a25==1)&&(((a19==1)&&((!(a20==1)&&((a14==9)&&((input==2)&&(a28==1))))&&(a24==1)))&&(a29==6)))&&(a22==1)))))){ + a14 = 8; + a20 = 1; + a29 = 5; + a25 = 1; + a7 = 1; + a11 = 1; + return -1; + } else if(((((((a29==6)&&((a28==1)&&((a19==4)&&((a24==1)&&((((input==4)&&(a25==1))&&(a20==1))&&!(a11==1))))))&&(a14==9))&&!(a7==1))&&(a22==1))&&(a0==1))){ + a14 = 8; + a11 = 1; + a19 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if(((a14==8)&&((a22==1)&&((a29==5)&&((a0==1)&&((a11==1)&&((((a28==1)&&((!(a24==1)&&((input==4)&&(a20==1)))&&(a19==1)))&&(a25==1))&&!(a7==1)))))))){ + a0 = 0; + a24 = 1; + a25 = 0; + a19 = 5; + return 23; + } else if((((a20==1)&&((((a14==8)&&(!(a24==1)&&((a22==1)&&((a7==1)&&(((input==2)&&(((a29==6)&&(a19==2))||(((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))))&&!(a11==1))))))&&(a28==1))&&(a25==1)))&&!(a0==1))){ + a29 = 6; + a19 = 1; + a25 = 0; + a14 = 9; + a24 = 1; + return 24; + } else if(((((a11==1)&&((a20==1)&&(!(a0==1)&&((((a22==1)&&((((input==6)&&((a29==6)||(a29==7)))&&(a28==1))&&(a19==2)))&&!(a7==1))&&(a25==1)))))&&(a14==9))&&!(a24==1))){ + a29 = 8; + a11 = 0; + a0 = 1; + a7 = 1; + a20 = 0; + return 23; + } else if(((a28==1)&&(!(a11==1)&&((a14==8)&&((a22==1)&&(((a19==5)&&((a20==1)&&((!(a25==1)&&((a0==1)&&((input==5)&&(((a29==6)||(a29==7))||(a29==8)))))&&!(a7==1))))&&!(a24==1))))))){ + a25 = 1; + a11 = 1; + a24 = 1; + a29 = 8; + a0 = 0; + return 23; + } else if(((a28==1)&&(((!(a7==1)&&((a14==8)&&(((((a25==1)&&(!(a0==1)&&((input==4)&&(a19==2))))&&(a22==1))&&(a29==6))&&(a24==1))))&&(a20==1))&&(a11==1)))){ + a0 = 1; + a7 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((((a19==1)&&(((a20==1)&&((a22==1)&&(((a28==1)&&(!(a24==1)&&(((input==3)&&((a29==6)||(a29==7)))&&(a25==1))))&&(a0==1))))&&(a7==1)))&&!(a11==1))&&(a14==9))){ + a24 = 1; + a7 = 0; + a11 = 1; + a0 = 0; + a25 = 0; + a29 = 8; + a14 = 8; + return 21; + } else if((!(a7==1)&&(!(a20==1)&&(((((!(a25==1)&&(((a0==1)&&((a28==1)&&((input==6)&&((a29==8)||(a29==9)))))&&(a11==1)))&&(a24==1))&&(a22==1))&&(a14==8))&&(a19==4))))){ + a25 = 1; + a24 = 0; + a11 = 0; + a29 = 9; + a20 = 1; + return 21; + } else if((!(a25==1)&&((a19==1)&&((a29==9)&&(!(a0==1)&&((a7==1)&&((a22==1)&&((a11==1)&&((a14==9)&&((a28==1)&&(((a20==1)&&(input==2))&&!(a24==1)))))))))))){ + a0 = 1; + a19 = 3; + a29 = 7; + a20 = 0; + a7 = 0; + return 24; + } else if(((a20==1)&&(((((((a22==1)&&((((a25==1)&&((input==6)&&(a28==1)))&&(a0==1))&&!(a24==1)))&&(a29==9))&&(a14==9))&&(a19==3))&&(a7==1))&&!(a11==1)))){ + a14 = 8; + a11 = 1; + a24 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((((a22==1)&&((((a14==9)&&(!(a20==1)&&((a24==1)&&((((((a29==9)&&(a19==4))||((a29==5)&&(a19==5)))||((a29==6)&&(a19==5)))&&(input==6))&&(a25==1)))))&&(a11==1))&&(a7==1)))&&(a28==1))&&(a0==1))){ + a29 = 6; + a11 = 0; + a7 = 0; + a24 = 0; + a19 = 1; + a25 = 0; + a0 = 0; + return 24; + } else if(((a25==1)&&(((a19==4)&&((a14==8)&&(!(a7==1)&&(((!(a24==1)&&(((((a29==9)||((a29==7)||(a29==8)))&&(input==3))&&!(a20==1))&&(a22==1)))&&!(a0==1))&&!(a11==1)))))&&(a28==1)))){ + a14 = 9; + a29 = 6; + a25 = 0; + a0 = 1; + a24 = 1; + return 21; + } else if(((a20==1)&&((!(a24==1)&&(((a22==1)&&((((((((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))&&(input==3))&&(a28==1))&&!(a7==1))&&(a14==9))&&!(a25==1)))&&(a11==1)))&&(a0==1)))){ + a20 = 0; + a25 = 1; + a0 = 0; + a19 = 2; + a14 = 8; + a29 = 8; + a24 = 1; + return 23; + } else if(((a14==9)&&(!(a20==1)&&((!(a11==1)&&(((a22==1)&&((!(a7==1)&&((a24==1)&&((input==3)&&(((a19==5)&&(a29==5))||(((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))))))&&(a28==1)))&&!(a25==1)))&&!(a0==1))))){ + a19 = 2; + a24 = 0; + a29 = 7; + a25 = 1; + a0 = 1; + a20 = 1; + a11 = 1; + return -1; + } else if((((a24==1)&&(!(a7==1)&&((a14==9)&&((!(a20==1)&&(((((a29==8)&&((input==4)&&(a19==4)))&&!(a11==1))&&(a25==1))&&(a28==1)))&&(a22==1)))))&&(a0==1))){ + a25 = 0; + a29 = 5; + a14 = 8; + a20 = 1; + a7 = 1; + a11 = 1; + a19 = 1; + a0 = 0; + return -1; + } else if(((a0==1)&&(!(a24==1)&&((a7==1)&&((((a28==1)&&((((a25==1)&&(((input==6)&&(a22==1))&&(a19==5)))&&!(a20==1))&&(a29==9)))&&(a14==8))&&(a11==1)))))){ + a29 = 5; + a19 = 1; + a24 = 1; + a20 = 1; + return -1; + } else if((!(a25==1)&&(((a19==5)&&((a28==1)&&(((((a14==8)&&(((a22==1)&&(((a29==6)||(a29==7))&&(input==1)))&&!(a11==1)))&&(a7==1))&&(a20==1))&&!(a24==1))))&&!(a0==1)))){ + a19 = 1; + a11 = 1; + a7 = 0; + a29 = 5; + a14 = 9; + a0 = 1; + return 21; + } else if(((a28==1)&&((a19==4)&&((a22==1)&&((((((a0==1)&&((a24==1)&&((a14==10)&&((input==6)&&(((a29==5)||(a29==6))||(a29==7))))))&&(a11==1))&&!(a20==1))&&!(a25==1))&&!(a7==1)))))){ + a14 = 9; + a11 = 0; + a19 = 2; + a29 = 9; + a20 = 1; + a7 = 1; + return 21; + } else if(((a28==1)&&(!(a7==1)&&((((a20==1)&&(((a29==6)&&(((a19==2)&&((a11==1)&&((input==5)&&(a14==10))))&&(a22==1)))&&(a0==1)))&&!(a25==1))&&(a24==1))))){ + a29 = 9; + a19 = 4; + a14 = 8; + a25 = 1; + a11 = 0; + a20 = 0; + a24 = 0; + return 24; + } else if(((!(a11==1)&&(((((((a29==8)&&(((!(a20==1)&&(input==1))&&(a22==1))&&(a0==1)))&&!(a25==1))&&!(a24==1))&&(a14==8))&&(a19==3))&&(a28==1)))&&(a7==1))){ + a19 = 4; + a25 = 1; + a14 = 9; + a24 = 1; + return 23; + } else if(((!(a0==1)&&(((((((!(a7==1)&&((((a29==6)||(a29==7))&&(input==2))&&(a20==1)))&&!(a24==1))&&(a19==4))&&(a22==1))&&!(a11==1))&&(a25==1))&&(a28==1)))&&(a14==8))){ + a29 = 9; + a25 = 0; + a20 = 0; + a0 = 1; + return -1; + } else if(((a14==9)&&(!(a7==1)&&(!(a25==1)&&(((a11==1)&&(((!(a0==1)&&((a22==1)&&((input==4)&&((((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))||((a29==6)&&(a19==5))))))&&(a28==1))&&(a24==1)))&&!(a20==1)))))){ + a14 = 8; + a25 = 1; + a19 = 1; + a20 = 1; + a7 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if(((((((a28==1)&&((!(a24==1)&&((a14==9)&&((a7==1)&&((a19==3)&&((input==3)&&((a29==8)||(a29==9)))))))&&(a20==1)))&&!(a0==1))&&!(a25==1))&&(a11==1))&&(a22==1))){ + a0 = 1; + a14 = 8; + a19 = 1; + a24 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if((((!(a24==1)&&((a28==1)&&(((a11==1)&&(((((((a19==3)&&(a29==5))||(((a29==8)&&(a19==2))||((a19==2)&&(a29==9))))&&(input==5))&&(a14==8))&&!(a7==1))&&(a0==1)))&&(a22==1))))&&(a25==1))&&(a20==1))){ + a19 = 3; + a0 = 0; + a29 = 9; + a20 = 0; + a24 = 1; + return 21; + } else if((!(a25==1)&&(((((a11==1)&&((((((input==2)&&((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))||((a19==4)&&(a29==6))))&&(a14==9))&&(a0==1))&&!(a24==1))&&!(a7==1)))&&(a22==1))&&(a20==1))&&(a28==1)))){ + a19 = 1; + a25 = 1; + a14 = 8; + a29 = 5; + a7 = 1; + a24 = 1; + return -1; + } else if(((a14==9)&&(((a29==9)&&((((a22==1)&&((!(a25==1)&&((((input==5)&&!(a11==1))&&!(a24==1))&&!(a20==1)))&&!(a7==1)))&&(a28==1))&&(a19==5)))&&(a0==1)))){ + a25 = 1; + a29 = 8; + a7 = 1; + a11 = 1; + a20 = 1; + a24 = 1; + return 24; + } else if((((a28==1)&&((!(a25==1)&&(((a22==1)&&(!(a24==1)&&(((a0==1)&&((a19==3)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==6))))&&!(a11==1))))&&!(a7==1)))&&(a14==9)))&&(a20==1))){ + a24 = 1; + a29 = 5; + a25 = 1; + a11 = 1; + a7 = 1; + a19 = 1; + a14 = 8; + return -1; + } else if(((a22==1)&&((a0==1)&&(!(a25==1)&&(!(a7==1)&&(((a20==1)&&((a24==1)&&((((((a29==6)&&(a19==5))||(((a19==4)&&(a29==9))||((a19==5)&&(a29==5))))&&(input==6))&&(a14==9))&&(a11==1))))&&(a28==1))))))){ + a19 = 1; + a25 = 1; + a29 = 5; + a7 = 1; + a14 = 8; + return -1; + } else if(((a22==1)&&((a14==10)&&((a28==1)&&((((a11==1)&&(!(a7==1)&&((a24==1)&&((a0==1)&&(((input==3)&&((a29==5)||(a29==6)))&&(a20==1))))))&&(a25==1))&&(a19==3)))))){ + a19 = 1; + a29 = 5; + a7 = 1; + a14 = 8; + return -1; + } else if(((((a19==1)&&((a25==1)&&((((a29==9)&&(!(a20==1)&&((a7==1)&&(((a24==1)&&(input==1))&&(a28==1)))))&&!(a11==1))&&!(a0==1))))&&(a14==8))&&(a22==1))){ + a24 = 0; + a0 = 1; + a19 = 5; + a25 = 0; + a29 = 6; + return 21; + } else if(((a7==1)&&((a19==3)&&(((((((a14==8)&&((!(a0==1)&&(((a29==7)||(a29==8))&&(input==1)))&&(a11==1)))&&(a25==1))&&(a28==1))&&(a22==1))&&!(a24==1))&&(a20==1))))){ + a19 = 1; + a20 = 0; + a11 = 0; + a29 = 6; + return 23; + } else if(((a14==9)&&((a24==1)&&((((a25==1)&&((!(a0==1)&&(!(a7==1)&&(((input==4)&&(((a19==1)&&(a29==9))||((a19==2)&&(a29==5))))&&!(a11==1))))&&(a20==1)))&&(a22==1))&&(a28==1))))){ + a25 = 0; + a7 = 1; + a29 = 6; + a20 = 0; + a19 = 5; + a11 = 1; + a14 = 8; + return 21; + } else if(((((a19==1)&&((a29==6)&&((a22==1)&&((!(a25==1)&&((a14==9)&&(((a0==1)&&((input==5)&&(a28==1)))&&(a24==1))))&&!(a20==1)))))&&(a11==1))&&!(a7==1))){ + a29 = 5; + a14 = 10; + a19 = 4; + a20 = 1; + a7 = 1; + return 24; + } else if(((a14==9)&&((a22==1)&&((a19==4)&&((!(a25==1)&&(!(a7==1)&&(((a0==1)&&((a20==1)&&(((input==3)&&((a29==7)||(a29==8)))&&(a28==1))))&&(a24==1))))&&!(a11==1)))))){ + a24 = 0; + a14 = 8; + a19 = 3; + a29 = 7; + a20 = 0; + return 21; + } else if(((!(a7==1)&&(((((a14==8)&&((a25==1)&&(((((input==2)&&((a29==9)||((a29==7)||(a29==8))))&&(a19==2))&&(a28==1))&&!(a24==1))))&&!(a0==1))&&(a22==1))&&!(a20==1)))&&(a11==1))){ + a19 = 4; + a7 = 1; + a29 = 6; + a25 = 0; + a24 = 1; + return -1; + } else if(((a28==1)&&((((a14==9)&&((a19==3)&&((a22==1)&&(!(a25==1)&&((a29==6)&&(((a0==1)&&((input==1)&&(a7==1)))&&!(a20==1)))))))&&!(a11==1))&&(a24==1)))){ + a7 = 0; + a0 = 0; + a11 = 1; + a14 = 8; + a20 = 1; + a24 = 0; + return 23; + } else if(((a11==1)&&(((((a14==10)&&(((((((input==6)&&(((a29==7)||(a29==8))||(a29==9)))&&(a19==1))&&(a28==1))&&(a22==1))&&(a0==1))&&(a20==1)))&&(a25==1))&&(a7==1))&&(a24==1)))){ + a29 = 5; + a14 = 8; + return -1; + } else if((!(a11==1)&&((!(a0==1)&&((a22==1)&&(((a28==1)&&(((!(a7==1)&&((input==4)&&(((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))))&&!(a20==1))&&(a14==8)))&&(a24==1))))&&!(a25==1)))){ + a19 = 2; + a0 = 1; + a24 = 0; + a7 = 1; + a14 = 9; + a29 = 5; + return 21; + } else if(((a29==8)&&((a0==1)&&(((!(a24==1)&&((a14==8)&&((a22==1)&&((((a20==1)&&((a19==1)&&(input==2)))&&!(a11==1))&&(a28==1)))))&&!(a7==1))&&!(a25==1))))){ + a11 = 1; + a29 = 5; + a24 = 1; + a7 = 1; + a25 = 1; + return -1; + } else if((!(a20==1)&&(((a28==1)&&(!(a7==1)&&((a29==9)&&((a19==4)&&((!(a25==1)&&(!(a24==1)&&(((input==3)&&!(a0==1))&&(a22==1))))&&(a14==8))))))&&(a11==1)))){ + a19 = 2; + a0 = 1; + a14 = 9; + a7 = 1; + return 21; + } else if(((!(a24==1)&&((a7==1)&&(((a22==1)&&((a14==8)&&((a29==6)&&((a11==1)&&((a19==4)&&((!(a25==1)&&(input==5))&&(a20==1)))))))&&(a28==1))))&&(a0==1))){ + a25 = 1; + a19 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if(((a19==2)&&(!(a24==1)&&((a22==1)&&((((a25==1)&&((a0==1)&&(((a28==1)&&(!(a11==1)&&((a29==8)&&(input==2))))&&(a7==1))))&&!(a20==1))&&(a14==9)))))){ + a24 = 1; + a19 = 5; + a0 = 0; + a20 = 1; + a14 = 8; + a25 = 0; + return 24; + } else if((!(a0==1)&&(!(a25==1)&&(((((a22==1)&&(((((a20==1)&&((input==1)&&((a29==6)||(a29==7))))&&(a14==9))&&!(a7==1))&&!(a24==1)))&&(a28==1))&&!(a11==1))&&(a19==1))))){ + a19 = 4; + a0 = 1; + a24 = 1; + a29 = 8; + a7 = 1; + return -1; + } else if((!(a0==1)&&(!(a7==1)&&(((a28==1)&&(!(a24==1)&&(((a19==5)&&(((((((a29==5)||(a29==6))||(a29==7))&&(input==4))&&(a20==1))&&!(a11==1))&&!(a25==1)))&&(a14==8))))&&(a22==1))))){ + a11 = 1; + a0 = 1; + a19 = 1; + a25 = 1; + a24 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if((((((a28==1)&&((((a19==2)&&((a25==1)&&(((a7==1)&&((input==1)&&((a29==7)||(a29==8))))&&(a0==1))))&&(a22==1))&&!(a20==1)))&&!(a11==1))&&(a14==8))&&(a24==1))){ + a11 = 1; + a19 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if(((((a11==1)&&(((((((a20==1)&&((a25==1)&&((a19==3)&&(input==4))))&&(a22==1))&&(a14==9))&&(a7==1))&&(a28==1))&&(a29==8)))&&(a24==1))&&(a0==1))){ + a14 = 8; + a20 = 0; + return 24; + } else if(((a7==1)&&((!(a20==1)&&(((a0==1)&&(!(a24==1)&&(((a22==1)&&(((a28==1)&&(((a29==8)||(a29==9))&&(input==6)))&&(a11==1)))&&!(a25==1))))&&(a19==2)))&&(a14==9)))){ + a7 = 0; + a14 = 8; + a24 = 1; + a29 = 7; + a0 = 0; + return 21; + } else if((((((a7==1)&&(((a20==1)&&((a24==1)&&((a19==3)&&((!(a11==1)&&(((a29==8)||(a29==9))&&(input==3)))&&(a0==1)))))&&(a22==1)))&&(a14==9))&&!(a25==1))&&(a28==1))){ + a25 = 1; + a11 = 1; + a29 = 6; + a24 = 0; + a20 = 0; + a19 = 1; + return -1; + } else if((((a14==8)&&((a24==1)&&(((a19==5)&&(!(a20==1)&&((a22==1)&&((((a0==1)&&((input==2)&&(a28==1)))&&(a29==8))&&(a11==1)))))&&(a25==1))))&&(a7==1))){ + a29 = 5; + a24 = 0; + a25 = 0; + return 23; + } else if((!(a7==1)&&(!(a20==1)&&((a22==1)&&(((((a28==1)&&(((a25==1)&&((a29==9)&&(!(a0==1)&&(input==5))))&&(a24==1)))&&(a19==1))&&(a14==8))&&!(a11==1)))))){ + a7 = 1; + a20 = 1; + a25 = 0; + a24 = 0; + a19 = 2; + return 24; + } else if(((a25==1)&&((((a24==1)&&((((a11==1)&&(((a28==1)&&((((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))&&(input==5)))&&!(a7==1)))&&(a20==1))&&(a22==1)))&&(a14==9))&&!(a0==1)))){ + a24 = 0; + a29 = 9; + a19 = 2; + a20 = 0; + a11 = 0; + a14 = 8; + a7 = 1; + return 24; + } else if((((((((a22==1)&&(((((input==2)&&(((a19==3)&&(a29==9))||((a29==5)&&(a19==4))))&&(a14==8))&&(a28==1))&&!(a11==1)))&&(a20==1))&&(a0==1))&&(a24==1))&&(a25==1))&&(a7==1))){ + a11 = 1; + a7 = 0; + a29 = 7; + a0 = 0; + a20 = 0; + a19 = 2; + return 21; + } else if(((a14==9)&&((a20==1)&&(!(a25==1)&&((a22==1)&&(((a28==1)&&((!(a24==1)&&(((input==3)&&(((a29==9)&&(a19==1))||((a29==5)&&(a19==2))))&&!(a7==1)))&&(a11==1)))&&(a0==1))))))){ + a0 = 0; + a29 = 9; + a14 = 8; + a19 = 5; + a11 = 0; + return -1; + } else if(((!(a0==1)&&((a28==1)&&((a22==1)&&((a20==1)&&((!(a24==1)&&(((input==3)&&((((a19==5)&&((a29==8)&&(a25==1)))||(((a29==9)&&(a25==1))&&(a19==5)))||((a19==1)&&(!(a25==1)&&(a29==5)))))&&!(a11==1)))&&(a14==9))))))&&!(a7==1))){ + a19 = 1; + a14 = 8; + a7 = 1; + a0 = 1; + a29 = 5; + a24 = 1; + a11 = 1; + a25 = 1; + return -1; + } else if((((a29==8)&&(((a28==1)&&((a0==1)&&(((a24==1)&&((a19==1)&&((a22==1)&&(((a11==1)&&(input==4))&&!(a7==1)))))&&(a14==9))))&&(a20==1)))&&(a25==1))){ + a20 = 0; + a29 = 9; + a7 = 1; + a24 = 0; + a11 = 0; + a0 = 0; + a19 = 3; + return 23; + } else if((!(a0==1)&&(!(a11==1)&&((a14==8)&&(((a19==2)&&(!(a20==1)&&((((((input==6)&&((a29==8)||(a29==9)))&&(a7==1))&&(a28==1))&&!(a25==1))&&(a22==1))))&&!(a24==1)))))){ + a19 = 3; + a14 = 9; + a24 = 1; + a29 = 5; + a7 = 0; + a25 = 1; + return 24; + } else if(((a20==1)&&(((((a19==5)&&((((a22==1)&&((((((a29==7)||(a29==8))||(a29==9))&&(input==6))&&(a11==1))&&!(a25==1)))&&(a7==1))&&!(a24==1)))&&(a28==1))&&(a0==1))&&(a14==8)))){ + a24 = 1; + a29 = 6; + a7 = 0; + a19 = 3; + a0 = 0; + return 21; + } else if(((a19==3)&&(((a22==1)&&((a28==1)&&(((((((a11==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==5)))&&!(a7==1))&&!(a0==1))&&(a25==1))&&(a14==8))&&(a20==1))))&&!(a24==1)))){ + a19 = 1; + a24 = 1; + a29 = 7; + a14 = 9; + return 24; + } else if(((((a20==1)&&((((((a0==1)&&((a14==9)&&((a28==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==1)))))&&!(a24==1))&&(a11==1))&&!(a7==1))&&!(a25==1)))&&(a19==1))&&(a22==1))){ + a7 = 1; + a24 = 1; + a14 = 8; + a25 = 1; + a29 = 5; + return -1; + } else if((((a11==1)&&(((!(a0==1)&&((a14==8)&&(((!(a25==1)&&((a22==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==4))))&&(a19==2))&&(a7==1))))&&!(a24==1))&&!(a20==1)))&&(a28==1))){ + a19 = 1; + a29 = 9; + a20 = 1; + a24 = 1; + a25 = 1; + return 21; + } else if((((!(a20==1)&&((a0==1)&&((((a7==1)&&(((a22==1)&&(((input==2)&&((a29==7)||(a29==8)))&&(a14==8)))&&(a28==1)))&&!(a24==1))&&(a11==1))))&&(a25==1))&&(a19==1))){ + a20 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if(((a11==1)&&(((a29==5)&&((a19==5)&&((a28==1)&&((((a0==1)&&((a7==1)&&(((input==4)&&(a24==1))&&!(a20==1))))&&(a14==8))&&(a22==1)))))&&!(a25==1)))){ + a19 = 4; + a20 = 1; + a11 = 0; + return 24; + } else if(((!(a20==1)&&((((a19==3)&&((a14==8)&&((a0==1)&&(((((input==6)&&((a29==8)||(a29==9)))&&(a24==1))&&!(a11==1))&&(a25==1)))))&&(a22==1))&&(a28==1)))&&(a7==1))){ + a7 = 0; + a0 = 0; + a24 = 0; + a25 = 0; + a29 = 5; + return 24; + } else if(((a20==1)&&((a7==1)&&(((a11==1)&&((a22==1)&&((a28==1)&&(!(a24==1)&&(!(a25==1)&&(!(a0==1)&&((a19==3)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==6)))))))))&&(a14==9))))){ + a14 = 8; + a19 = 2; + a29 = 7; + a24 = 1; + return 23; + } else if((((((a19==2)&&(((a11==1)&&(((a28==1)&&(((((a29==7)||((a29==5)||(a29==6)))&&(input==6))&&(a25==1))&&!(a20==1)))&&!(a7==1)))&&(a22==1)))&&(a0==1))&&(a14==9))&&!(a24==1))){ + a25 = 0; + a29 = 9; + a19 = 4; + return 21; + } else if(((((a28==1)&&((a29==8)&&(((a19==5)&&(((!(a0==1)&&((a22==1)&&((input==4)&&!(a25==1))))&&(a20==1))&&(a7==1)))&&(a24==1))))&&!(a11==1))&&(a14==8))){ + a25 = 1; + a0 = 1; + a11 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a24==1)&&((a19==2)&&((((a7==1)&&((a14==8)&&(!(a0==1)&&((a28==1)&&(((a22==1)&&(((a29==5)||(a29==6))&&(input==1)))&&(a25==1))))))&&(a11==1))&&(a20==1))))){ + a29 = 8; + a20 = 0; + a25 = 0; + a19 = 5; + a0 = 1; + a11 = 0; + a24 = 0; + return -1; + } else if((!(a20==1)&&((a19==5)&&((!(a11==1)&&((((a29==7)&&(((((input==6)&&!(a24==1))&&(a0==1))&&(a14==9))&&(a7==1)))&&(a28==1))&&(a25==1)))&&(a22==1))))){ + a7 = 0; + a11 = 1; + a19 = 2; + a20 = 1; + a24 = 1; + a29 = 8; + return 21; + } else if((((a28==1)&&(!(a24==1)&&((!(a20==1)&&(!(a11==1)&&(((a14==8)&&((a0==1)&&((((a29==5)&&(a19==2))||(((a19==1)&&(a29==8))||((a29==9)&&(a19==1))))&&(input==2))))&&(a22==1))))&&!(a7==1))))&&(a25==1))){ + a24 = 1; + a11 = 1; + a7 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a22==1)&&(!(a20==1)&&(((((a28==1)&&((a0==1)&&((a11==1)&&(((input==4)&&(((a19==1)&&(a29==9))||((a19==2)&&(a29==5))))&&(a24==1)))))&&!(a7==1))&&!(a25==1))&&(a14==8))))){ + a20 = 1; + a25 = 1; + a29 = 7; + a7 = 1; + a24 = 0; + a11 = 0; + a19 = 2; + return 21; + } else if(((a14==8)&&(((a28==1)&&((((a19==1)&&((((a25==1)&&((a22==1)&&(((a29==7)||(a29==8))&&(input==4))))&&!(a7==1))&&(a20==1)))&&!(a24==1))&&(a0==1)))&&(a11==1)))){ + a19 = 4; + a7 = 1; + a24 = 1; + a20 = 0; + a29 = 9; + a0 = 0; + return 24; + } else if((((a19==3)&&(((a28==1)&&((!(a0==1)&&((a7==1)&&(!(a24==1)&&((((input==3)&&((a29==8)||(a29==9)))&&!(a20==1))&&(a11==1)))))&&(a25==1)))&&(a14==8)))&&(a22==1))){ + a24 = 1; + a11 = 0; + a14 = 9; + a20 = 1; + a19 = 4; + a29 = 5; + a0 = 1; + return 24; + } else if(((a7==1)&&((a14==10)&&((a20==1)&&((a28==1)&&((a22==1)&&(((((input==1)&&((((a25==1)&&(a29==9))&&(a19==5))||((a19==1)&&((a29==5)&&!(a25==1)))))&&(a11==1))&&(a24==1))&&(a0==1)))))))){ + a0 = 0; + a20 = 0; + a14 = 8; + a25 = 1; + a19 = 5; + a7 = 0; + a29 = 8; + return 23; + } else if(((a11==1)&&((a14==9)&&(((((((((input==5)&&(((a19==1)&&(a29==9))||((a29==5)&&(a19==2))))&&(a20==1))&&!(a7==1))&&!(a24==1))&&(a25==1))&&(a28==1))&&!(a0==1))&&(a22==1))))){ + a14 = 8; + a25 = 0; + a7 = 1; + a29 = 8; + a24 = 1; + a19 = 2; + return 23; + } else if(((a11==1)&&(((((!(a25==1)&&((a28==1)&&(((a14==10)&&((a7==1)&&((input==3)&&((a29==7)||(a29==8)))))&&(a19==2))))&&(a0==1))&&!(a20==1))&&(a24==1))&&(a22==1)))){ + a20 = 1; + a29 = 5; + a25 = 1; + a19 = 1; + a14 = 8; + return -1; + } else if((((a19==4)&&((((a28==1)&&((((!(a0==1)&&(!(a24==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==5))))&&(a14==8))&&!(a20==1))&&(a22==1)))&&!(a7==1))&&(a25==1)))&&!(a11==1))){ + a29 = 6; + a19 = 2; + a24 = 1; + a0 = 1; + a7 = 1; + a14 = 9; + a20 = 1; + return 24; + } else if(((a28==1)&&(((!(a0==1)&&((((((((input==1)&&((a29==6)||(a29==7)))&&(a14==9))&&!(a7==1))&&(a19==4))&&!(a24==1))&&(a25==1))&&!(a20==1)))&&!(a11==1))&&(a22==1)))){ + a25 = 0; + a0 = 1; + a19 = 2; + a29 = 9; + return 24; + } else if((!(a0==1)&&((a24==1)&&((a14==8)&&(((a28==1)&&((((!(a20==1)&&((input==4)&&((((a19==4)&&(a29==8))||((a19==4)&&(a29==9)))||((a29==5)&&(a19==5)))))&&!(a7==1))&&(a22==1))&&(a11==1)))&&(a25==1)))))){ + a24 = 0; + a29 = 7; + a11 = 0; + a19 = 3; + a0 = 1; + return -1; + } else if((((a28==1)&&((a14==8)&&((((((a19==5)&&(!(a25==1)&&((((a29==5)||(a29==6))&&(input==5))&&(a7==1))))&&(a0==1))&&!(a24==1))&&(a20==1))&&!(a11==1))))&&(a22==1))){ + a24 = 1; + a19 = 4; + a11 = 1; + a0 = 0; + a29 = 9; + return 21; + } else if((((a14==8)&&((a22==1)&&((a7==1)&&(!(a20==1)&&(((a28==1)&&((a24==1)&&((input==2)&&(((a19==1)&&((a29==6)&&!(a25==1)))||(((a19==5)&&((a25==1)&&(a29==9)))||((a19==1)&&((a29==5)&&!(a25==1))))))))&&!(a0==1))))))&&(a11==1))){ + a29 = 6; + a20 = 1; + a19 = 5; + a25 = 1; + return -1; + } else if(((a20==1)&&((((a22==1)&&(((a19==4)&&(((a14==8)&&(!(a25==1)&&(!(a0==1)&&((input==1)&&(((a29==7)||(a29==8))||(a29==9))))))&&(a24==1)))&&!(a7==1)))&&(a28==1))&&(a11==1)))){ + a24 = 0; + a14 = 9; + a0 = 1; + a11 = 0; + a25 = 1; + a29 = 6; + return 21; + } else if(((a25==1)&&((a19==1)&&((!(a20==1)&&((a7==1)&&((((((a0==1)&&(((a29==5)||(a29==6))&&(input==1)))&&(a28==1))&&(a22==1))&&!(a11==1))&&(a14==8))))&&(a24==1))))){ + a7 = 0; + a0 = 0; + a24 = 0; + a29 = 5; + a19 = 3; + return 21; + } else if((!(a20==1)&&((a19==4)&&((a24==1)&&((((((a22==1)&&((a14==9)&&((a29==8)&&((input==6)&&!(a25==1)))))&&(a7==1))&&(a0==1))&&(a28==1))&&(a11==1)))))){ + a14 = 8; + a29 = 5; + a25 = 1; + a20 = 1; + a19 = 1; + return -1; + } else if(((a20==1)&&((a22==1)&&((((((a19==1)&&(!(a25==1)&&((a14==9)&&(((a11==1)&&(input==5))&&!(a0==1)))))&&!(a7==1))&&(a24==1))&&(a29==9))&&(a28==1))))){ + a25 = 1; + a7 = 1; + a19 = 2; + a29 = 5; + a0 = 1; + return -1; + } else if(((a11==1)&&(!(a24==1)&&(((((a22==1)&&((a20==1)&&((a0==1)&&((!(a7==1)&&((input==5)&&((a29==6)||(a29==7))))&&(a28==1)))))&&(a25==1))&&(a14==9))&&(a19==2))))){ + a7 = 1; + a19 = 4; + a20 = 0; + a29 = 8; + return 23; + } else if(((a24==1)&&((a7==1)&&(((((!(a20==1)&&((!(a0==1)&&((a28==1)&&((input==2)&&(((a29==7)||(a29==8))||(a29==9)))))&&(a22==1)))&&(a19==4))&&(a11==1))&&(a14==8))&&!(a25==1))))){ + a19 = 2; + a7 = 0; + a29 = 8; + return 24; + } else if((((a19==2)&&(((a22==1)&&(!(a24==1)&&((a25==1)&&((((((input==2)&&((a29==7)||((a29==5)||(a29==6))))&&(a7==1))&&!(a20==1))&&(a11==1))&&(a28==1)))))&&(a14==8)))&&!(a0==1))){ + a24 = 1; + a14 = 9; + a19 = 1; + a29 = 6; + return 24; + } else if((!(a7==1)&&((((((a28==1)&&((a19==5)&&((a25==1)&&((a14==8)&&((!(a11==1)&&(input==2))&&(a22==1))))))&&(a29==7))&&(a20==1))&&!(a0==1))&&(a24==1)))){ + a14 = 9; + a19 = 3; + a24 = 0; + a29 = 5; + a11 = 1; + a25 = 0; + return 23; + } else if(((a14==9)&&((a7==1)&&((!(a20==1)&&(((((a0==1)&&((a22==1)&&((a28==1)&&((a11==1)&&(input==2)))))&&(a29==8))&&!(a24==1))&&(a25==1)))&&(a19==4))))){ + a19 = 5; + a25 = 0; + a7 = 0; + a24 = 1; + a14 = 10; + return 21; + } else if(((!(a20==1)&&((((a22==1)&&(((a19==1)&&((((a25==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==1)))&&(a24==1))&&(a14==8)))&&!(a0==1)))&&(a11==1))&&!(a7==1)))&&(a28==1))){ + a7 = 1; + a29 = 7; + a20 = 1; + a25 = 0; + return 21; + } else if((((a11==1)&&((a24==1)&&((a20==1)&&((a19==4)&&(((a28==1)&&((!(a0==1)&&((((a29==5)||(a29==6))&&(input==6))&&(a22==1)))&&!(a7==1)))&&!(a25==1))))))&&(a14==9))){ + a29 = 8; + a0 = 1; + a14 = 8; + a11 = 0; + a24 = 0; + a20 = 0; + a19 = 1; + return 21; + } else if(((a22==1)&&((((a11==1)&&((a20==1)&&(((a28==1)&&((!(a25==1)&&(!(a0==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==6))))&&(a7==1)))&&!(a24==1))))&&(a14==8))&&(a19==3)))){ + a25 = 1; + a29 = 5; + a19 = 1; + a24 = 1; + a0 = 1; + return -1; + } else if(((((a28==1)&&(!(a0==1)&&(((a24==1)&&((a22==1)&&((!(a7==1)&&(((input==1)&&((a29==5)||(a29==6)))&&(a11==1)))&&!(a20==1))))&&(a25==1))))&&(a14==9))&&(a19==5))){ + a7 = 1; + a19 = 1; + a14 = 8; + a29 = 6; + a24 = 0; + return -1; + } else if((((a22==1)&&((a19==5)&&(((a0==1)&&((!(a7==1)&&((a24==1)&&(!(a20==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==1))&&(a14==9)))))&&(a11==1)))&&(a28==1))))&&(a25==1))){ + a29 = 5; + a25 = 0; + a20 = 1; + a7 = 1; + a19 = 3; + a14 = 10; + return 23; + } else if((((((((a14==9)&&((a7==1)&&((((((a19==3)&&(a29==5))||(((a29==8)&&(a19==2))||((a29==9)&&(a19==2))))&&(input==4))&&!(a25==1))&&(a24==1))))&&(a20==1))&&(a22==1))&&!(a11==1))&&(a0==1))&&(a28==1))){ + a24 = 0; + a20 = 0; + a29 = 9; + a19 = 4; + a11 = 1; + a25 = 1; + a7 = 0; + return 21; + } else if((!(a7==1)&&((a0==1)&&((((a11==1)&&((!(a25==1)&&((a19==2)&&(((a24==1)&&((input==6)&&(a29==5)))&&(a28==1))))&&(a14==10)))&&(a20==1))&&(a22==1))))){ + a19 = 5; + a0 = 0; + a14 = 8; + a20 = 0; + a25 = 1; + a29 = 8; + return 24; + } else if((((((!(a11==1)&&((a22==1)&&((!(a0==1)&&((!(a25==1)&&((input==4)&&(a29==8)))&&(a28==1)))&&(a7==1))))&&(a19==5))&&(a24==1))&&(a14==8))&&!(a20==1))){ + a19 = 2; + a0 = 1; + a11 = 1; + a20 = 1; + a24 = 0; + a14 = 9; + return 21; + } else if((((a19==2)&&(!(a24==1)&&(((a0==1)&&((!(a11==1)&&((a7==1)&&((((((a29==7)||(a29==8))||(a29==9))&&(input==6))&&(a28==1))&&(a14==8))))&&!(a20==1)))&&(a22==1))))&&(a25==1))){ + a19 = 3; + a20 = 1; + a29 = 9; + a0 = 0; + a7 = 0; + a11 = 1; + a24 = 1; + return 21; + } else if(((((a22==1)&&((((((((a29==5)&&((input==6)&&(a7==1)))&&(a25==1))&&(a14==9))&&!(a24==1))&&(a0==1))&&(a28==1))&&(a19==5)))&&(a20==1))&&!(a11==1))){ + a11 = 1; + a19 = 1; + a14 = 8; + a24 = 1; + return -1; + } else if(((a14==8)&&(((((((a28==1)&&(!(a7==1)&&(!(a0==1)&&(((input==2)&&((a29==9)||((a29==7)||(a29==8))))&&!(a20==1)))))&&(a24==1))&&(a25==1))&&(a19==3))&&(a22==1))&&!(a11==1)))){ + a11 = 1; + a25 = 0; + a7 = 1; + a29 = 5; + return 24; + } else if((!(a7==1)&&((a0==1)&&(((a29==7)&&((a19==5)&&(((a11==1)&&((a28==1)&&(!(a20==1)&&(((a22==1)&&(input==2))&&(a24==1)))))&&(a14==8))))&&(a25==1))))){ + a19 = 3; + a29 = 9; + a11 = 0; + return 24; + } else if(((a24==1)&&((a22==1)&&((((a19==2)&&(((a28==1)&&((a14==8)&&((((input==5)&&!(a20==1))&&!(a11==1))&&!(a7==1))))&&(a29==5)))&&!(a0==1))&&(a25==1))))){ + a7 = 1; + a19 = 1; + a20 = 1; + a11 = 1; + a0 = 1; + return -1; + } else if((((a14==8)&&(((a20==1)&&(!(a0==1)&&((!(a25==1)&&(!(a7==1)&&(((a19==4)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==3)))&&(a11==1))))&&(a22==1))))&&(a24==1)))&&(a28==1))){ + a11 = 0; + a24 = 0; + a0 = 1; + a29 = 8; + a25 = 1; + a14 = 9; + return 24; + } else if((!(a24==1)&&((!(a25==1)&&((a20==1)&&((a0==1)&&((a28==1)&&((a7==1)&&((a11==1)&&(((a14==9)&&((((a29==6)||(a29==7))||(a29==8))&&(input==1)))&&(a19==2))))))))&&(a22==1)))){ + a19 = 1; + a14 = 8; + a11 = 0; + a24 = 1; + a0 = 0; + a29 = 6; + return -1; + } else if(((a7==1)&&(!(a24==1)&&(((a28==1)&&((a29==7)&&((!(a25==1)&&((((a14==8)&&((input==5)&&(a0==1)))&&!(a11==1))&&(a19==3)))&&(a22==1))))&&!(a20==1))))){ + a11 = 1; + a24 = 1; + a19 = 1; + a29 = 5; + a25 = 1; + a20 = 1; + return -1; + } else if((!(a25==1)&&(!(a7==1)&&(!(a20==1)&&((a19==2)&&((a28==1)&&((a0==1)&&((a24==1)&&((a22==1)&&(((a14==8)&&(((a29==6)||(a29==7))&&(input==2)))&&(a11==1))))))))))){ + a11 = 0; + a29 = 5; + a20 = 1; + a7 = 1; + a24 = 0; + a25 = 1; + a19 = 5; + return 24; + } else if((((a22==1)&&((a28==1)&&(((((((((((a29==6)||(a29==7))||(a29==8))&&(input==3))&&!(a24==1))&&(a19==1))&&(a11==1))&&(a14==9))&&!(a25==1))&&(a20==1))&&!(a7==1))))&&(a0==1))){ + a7 = 1; + a29 = 5; + a25 = 1; + a24 = 1; + a14 = 8; + return -1; + } else if(((((a0==1)&&((a19==3)&&((((a22==1)&&(!(a11==1)&&((((input==5)&&((a29==6)||(a29==7)))&&!(a25==1))&&(a7==1))))&&(a20==1))&&(a28==1))))&&(a24==1))&&(a14==9))){ + a0 = 0; + a24 = 0; + a25 = 1; + a11 = 1; + a20 = 0; + a19 = 2; + a29 = 8; + a14 = 8; + return -1; + } else if(((a29==9)&&(((a28==1)&&(!(a20==1)&&((!(a24==1)&&((a14==8)&&((a22==1)&&((!(a11==1)&&((a19==3)&&(input==5)))&&!(a7==1)))))&&!(a0==1))))&&(a25==1)))){ + a25 = 0; + a24 = 1; + a20 = 1; + a29 = 7; + return -1; + } else if((((a7==1)&&((!(a25==1)&&((((((a14==9)&&(!(a0==1)&&((a29==9)&&(input==2))))&&(a22==1))&&!(a11==1))&&(a20==1))&&(a28==1)))&&(a24==1)))&&(a19==5))){ + a24 = 0; + a29 = 7; + a14 = 8; + a19 = 4; + a25 = 1; + return 21; + } else if(((a0==1)&&(((((((a7==1)&&((a11==1)&&((a24==1)&&((a29==9)&&((input==4)&&(a19==1))))))&&(a28==1))&&(a20==1))&&(a25==1))&&(a22==1))&&(a14==9)))){ + a0 = 0; + a7 = 0; + a19 = 2; + a11 = 0; + a29 = 5; + a24 = 0; + return 24; + } else if(((a28==1)&&((a7==1)&&(((a14==8)&&(((((a24==1)&&((((a22==1)&&(input==1))&&(a19==5))&&!(a0==1)))&&(a11==1))&&(a25==1))&&(a29==7)))&&(a20==1))))){ + a19 = 3; + a29 = 6; + return -1; + } else if((((((a28==1)&&(((a19==1)&&(((((((a29==7)||(a29==8))&&(input==6))&&(a24==1))&&(a20==1))&&(a0==1))&&!(a11==1)))&&(a25==1)))&&(a14==8))&&(a22==1))&&(a7==1))){ + a20 = 0; + a29 = 5; + a25 = 0; + a0 = 0; + a19 = 2; + return 24; + } else if((((a7==1)&&(!(a11==1)&&((a24==1)&&((a22==1)&&(!(a0==1)&&(((!(a25==1)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==5))&&(a28==1)))&&(a20==1))&&(a14==9)))))))&&(a19==3))){ + a29 = 5; + a25 = 1; + a19 = 1; + a14 = 8; + a11 = 1; + a0 = 1; + return -1; + } else if((((((a22==1)&&(!(a0==1)&&((a29==6)&&(((!(a11==1)&&((a14==8)&&((input==3)&&(a7==1))))&&(a20==1))&&(a28==1)))))&&(a19==4))&&(a24==1))&&!(a25==1))){ + a7 = 0; + a11 = 1; + return 21; + } else if(((a7==1)&&((a25==1)&&((a11==1)&&(((((a14==10)&&((((a24==1)&&((a28==1)&&(input==4)))&&(a0==1))&&(a19==3)))&&(a29==8))&&(a20==1))&&(a22==1)))))){ + a24 = 0; + a29 = 6; + a19 = 1; + a0 = 0; + a14 = 8; + return 23; + } else if((!(a11==1)&&(((a14==9)&&(((a22==1)&&(((a24==1)&&(((a20==1)&&((a28==1)&&((input==2)&&((a29==6)||(a29==7)))))&&(a0==1)))&&(a7==1)))&&(a19==3)))&&!(a25==1)))){ + a11 = 1; + a29 = 6; + a14 = 8; + a7 = 0; + a19 = 4; + a25 = 1; + return 23; + } else if(((a14==9)&&(!(a20==1)&&((a22==1)&&(((a24==1)&&((((a19==2)&&((a11==1)&&((a28==1)&&((a29==6)&&(input==3)))))&&!(a0==1))&&(a7==1)))&&(a25==1)))))){ + a25 = 0; + a24 = 0; + a29 = 5; + a7 = 0; + a14 = 8; + a19 = 5; + return -1; + } else if(((((((a28==1)&&((((a29==8)&&((a25==1)&&(((input==6)&&(a19==5))&&(a22==1))))&&!(a7==1))&&!(a11==1)))&&(a0==1))&&(a20==1))&&(a24==1))&&(a14==8))){ + a29 = 6; + a20 = 0; + a19 = 4; + a0 = 0; + a11 = 1; + a25 = 0; + return 23; + } else if(((((a19==4)&&((a29==5)&&(((a25==1)&&((a24==1)&&((a14==8)&&(!(a11==1)&&(((a0==1)&&(input==5))&&(a28==1))))))&&!(a20==1))))&&(a22==1))&&(a7==1))){ + a25 = 0; + a24 = 0; + return 24; + } else if((((((a11==1)&&((a22==1)&&(((((a24==1)&&((((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))&&(input==4)))&&!(a20==1))&&(a0==1))&&(a7==1))))&&(a25==1))&&(a28==1))&&(a14==10))){ + a19 = 1; + a0 = 0; + a11 = 0; + a29 = 9; + a25 = 0; + a14 = 9; + a24 = 0; + a20 = 1; + return -1; + } else if((((a25==1)&&((((!(a7==1)&&((!(a20==1)&&((a28==1)&&(((a14==8)&&(input==6))&&(a19==1))))&&!(a0==1)))&&(a29==9))&&!(a11==1))&&(a22==1)))&&(a24==1))){ + a24 = 0; + a25 = 0; + a19 = 2; + a20 = 1; + a14 = 9; + a0 = 1; + a29 = 8; + return 21; + } else if((((a7==1)&&((a0==1)&&(!(a25==1)&&((a14==8)&&(((((((input==4)&&!(a20==1))&&!(a11==1))&&(a29==8))&&!(a24==1))&&(a22==1))&&(a19==2))))))&&(a28==1))){ + a14 = 9; + a25 = 1; + a19 = 1; + a29 = 6; + a24 = 1; + return 21; + } else if(((a22==1)&&(((((a7==1)&&((a20==1)&&((a19==5)&&((a28==1)&&(((((a29==9)||((a29==7)||(a29==8)))&&(input==6))&&(a25==1))&&(a14==8))))))&&!(a24==1))&&(a11==1))&&!(a0==1)))){ + a7 = 0; + a25 = 0; + a0 = 1; + a29 = 8; + a19 = 4; + a20 = 0; + a11 = 0; + return 24; + } else if((((a19==1)&&((a20==1)&&(((a28==1)&&((a25==1)&&(!(a11==1)&&(((a24==1)&&(((input==3)&&(a0==1))&&(a29==6)))&&(a14==8)))))&&(a22==1))))&&(a7==1))){ + a19 = 5; + a20 = 0; + a11 = 1; + a0 = 0; + a25 = 0; + return 21; + } else if((!(a7==1)&&((((((!(a20==1)&&((((((a19==5)&&(a29==5))||(((a19==4)&&(a29==8))||((a19==4)&&(a29==9))))&&(input==4))&&(a25==1))&&(a14==8)))&&(a0==1))&&(a11==1))&&(a28==1))&&(a24==1))&&(a22==1)))){ + a25 = 0; + a7 = 1; + a29 = 7; + a11 = 0; + a19 = 4; + return 23; + } else if((((!(a0==1)&&((a25==1)&&((a19==3)&&((!(a11==1)&&(!(a24==1)&&((a7==1)&&((a22==1)&&((a20==1)&&(input==3))))))&&(a28==1)))))&&(a14==9))&&(a29==8))){ + a24 = 1; + a7 = 0; + a14 = 8; + a25 = 0; + a29 = 7; + a19 = 2; + return 24; + } else if((((((a14==9)&&(((a19==2)&&((((a28==1)&&(((input==6)&&((a29==7)||((a29==5)||(a29==6))))&&(a11==1)))&&!(a20==1))&&(a22==1)))&&(a7==1)))&&!(a0==1))&&!(a25==1))&&(a24==1))){ + a19 = 1; + a29 = 7; + a11 = 0; + a24 = 0; + a14 = 8; + return 24; + } else if(((!(a24==1)&&((a28==1)&&((a25==1)&&((a11==1)&&(!(a20==1)&&((!(a7==1)&&(((input==4)&&(((a29==6)&&(a19==2))||(((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))))&&(a22==1)))&&(a14==9)))))))&&!(a0==1))){ + a24 = 1; + a7 = 1; + a11 = 0; + a0 = 1; + a29 = 9; + a19 = 1; + return -1; + } else if(((((((a19==5)&&((a28==1)&&((a22==1)&&(((a0==1)&&((a7==1)&&((a14==9)&&(input==3))))&&(a11==1)))))&&!(a25==1))&&(a29==6))&&!(a20==1))&&(a24==1))){ + a25 = 1; + a14 = 8; + a19 = 4; + a0 = 0; + return 23; + } else if(((((a24==1)&&(!(a20==1)&&((a28==1)&&((a25==1)&&((a19==4)&&((a0==1)&&(((((a29==7)||((a29==5)||(a29==6)))&&(input==6))&&(a14==8))&&(a7==1))))))))&&(a11==1))&&(a22==1))){ + a29 = 5; + a20 = 1; + a19 = 1; + return -1; + } else if(((a24==1)&&((!(a20==1)&&((((((a14==8)&&((a0==1)&&(((input==3)&&(((a29==7)||(a29==8))||(a29==9)))&&(a11==1))))&&(a19==3))&&(a28==1))&&(a22==1))&&!(a7==1)))&&!(a25==1)))){ + a20 = 1; + a19 = 1; + a7 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if(((a14==9)&&((!(a20==1)&&(((((a7==1)&&(!(a0==1)&&(((input==3)&&(((a29==5)&&(a19==5))||(((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))))&&(a24==1))))&&(a28==1))&&(a22==1))&&(a25==1)))&&(a11==1)))){ + a29 = 5; + a7 = 0; + a20 = 1; + a19 = 4; + return -1; + } else if(((!(a25==1)&&((a24==1)&&(!(a0==1)&&(((a7==1)&&((a28==1)&&((a20==1)&&((a14==8)&&((a19==3)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==6)))))))&&(a22==1)))))&&!(a11==1))){ + a29 = 6; + a11 = 1; + return 21; + } else if(((a24==1)&&((((!(a7==1)&&(((((a11==1)&&((((a29==7)||(a29==8))&&(input==4))&&(a0==1)))&&(a25==1))&&(a14==9))&&(a22==1)))&&(a28==1))&&(a20==1))&&(a19==5)))){ + a14 = 8; + a7 = 1; + a19 = 3; + a29 = 7; + a25 = 0; + a0 = 0; + return 23; + } else if(((a24==1)&&(!(a20==1)&&(((a28==1)&&(((a7==1)&&(((a0==1)&&((((input==6)&&(((a29==6)||(a29==7))||(a29==8)))&&!(a11==1))&&!(a25==1)))&&(a14==9)))&&(a19==2)))&&(a22==1))))){ + a19 = 5; + a14 = 8; + a11 = 1; + a25 = 1; + a20 = 1; + a7 = 0; + a29 = 8; + a0 = 0; + return 21; + } else if(((((((((a24==1)&&((((a25==1)&&((a20==1)&&(input==6)))&&(a22==1))&&(a19==5)))&&!(a11==1))&&(a28==1))&&(a7==1))&&(a0==1))&&(a14==9))&&(a29==9))){ + a24 = 0; + a7 = 0; + a0 = 0; + a14 = 8; + a25 = 0; + a19 = 1; + return 24; + } else if((((a14==10)&&((a22==1)&&(((a19==1)&&((a0==1)&&(!(a20==1)&&((a7==1)&&((((input==1)&&((a29==7)||(a29==8)))&&(a25==1))&&(a24==1))))))&&(a11==1))))&&(a28==1))){ + a11 = 0; + a24 = 0; + a7 = 0; + a29 = 6; + a14 = 9; + a19 = 4; + a20 = 1; + return -1; + } else if(((a11==1)&&(!(a24==1)&&(((a25==1)&&((a19==5)&&((a7==1)&&((((((a22==1)&&(input==2))&&!(a0==1))&&(a29==8))&&(a28==1))&&!(a20==1)))))&&(a14==9))))){ + a24 = 1; + a14 = 8; + a29 = 5; + a19 = 1; + a20 = 1; + a0 = 1; + return -1; + } else if(((a25==1)&&((a7==1)&&(((a22==1)&&((a28==1)&&(((a11==1)&&((a20==1)&&((a19==1)&&((((a29==7)||(a29==8))&&(input==2))&&!(a0==1)))))&&!(a24==1))))&&(a14==9))))){ + a25 = 0; + a0 = 1; + a29 = 6; + a19 = 5; + return 23; + } else if(((a11==1)&&((((a0==1)&&(((((a14==10)&&((!(a20==1)&&(((a29==5)||(a29==6))&&(input==3)))&&!(a7==1)))&&(a28==1))&&(a24==1))&&(a25==1)))&&(a22==1))&&(a19==2)))){ + a29 = 5; + a25 = 0; + a11 = 0; + a24 = 0; + a14 = 9; + a7 = 1; + return 21; + } else if((!(a0==1)&&(((a14==9)&&(!(a7==1)&&((a22==1)&&((((a24==1)&&((((((a29==6)||(a29==7))||(a29==8))&&(input==3))&&(a25==1))&&(a20==1)))&&(a19==2))&&(a11==1)))))&&(a28==1)))){ + a7 = 1; + a19 = 4; + a29 = 5; + a25 = 0; + return -1; + } else if(((!(a25==1)&&((a24==1)&&((a7==1)&&(((a14==9)&&((a20==1)&&((a11==1)&&(((a22==1)&&(((a29==7)||(a29==8))&&(input==6)))&&(a0==1)))))&&(a19==1)))))&&(a28==1))){ + a7 = 0; + a14 = 8; + a29 = 5; + a19 = 5; + a24 = 0; + a0 = 0; + return -1; + } else if(((a20==1)&&(!(a0==1)&&(((a22==1)&&((a24==1)&&(((a25==1)&&(((a7==1)&&((a19==5)&&((input==2)&&!(a11==1))))&&(a14==9)))&&(a29==6))))&&(a28==1))))){ + a11 = 1; + a14 = 8; + a19 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if(((a29==5)&&((a7==1)&&(!(a25==1)&&((!(a24==1)&&((a22==1)&&(((!(a0==1)&&((a14==8)&&((input==4)&&!(a11==1))))&&(a20==1))&&(a28==1))))&&(a19==1)))))){ + a24 = 1; + a11 = 1; + a19 = 2; + a20 = 0; + return 24; + } else if((((!(a24==1)&&(((((a25==1)&&((a11==1)&&((!(a0==1)&&((a7==1)&&(input==2)))&&(a14==9))))&&(a19==5))&&(a28==1))&&(a29==7)))&&(a22==1))&&!(a20==1))){ + a0 = 1; + a11 = 0; + a14 = 8; + a7 = 0; + return -1; + } else if((((a22==1)&&((a25==1)&&((a14==8)&&((((((a11==1)&&((((a29==7)||(a29==8))&&(input==6))&&(a0==1)))&&(a7==1))&&(a28==1))&&(a19==3))&&!(a24==1)))))&&!(a20==1))){ + a24 = 1; + a20 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((a25==1)&&((!(a7==1)&&(((a28==1)&&((((a11==1)&&((a20==1)&&(((input==6)&&(a0==1))&&(a24==1))))&&(a29==9))&&(a14==10)))&&(a19==2)))&&(a22==1)))){ + a29 = 5; + a25 = 0; + a7 = 1; + a0 = 0; + a19 = 1; + a14 = 8; + return 21; + } else if(((a25==1)&&((a22==1)&&(((a28==1)&&(((((!(a20==1)&&(!(a7==1)&&((input==2)&&((a29==5)||(a29==6)))))&&(a11==1))&&(a14==8))&&(a0==1))&&(a19==2)))&&!(a24==1))))){ + a20 = 1; + a25 = 0; + a29 = 9; + a19 = 5; + a0 = 0; + a24 = 1; + return 21; + } else if(((a25==1)&&(!(a24==1)&&(!(a7==1)&&((a28==1)&&((((a22==1)&&(((a14==8)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==5))&&(a0==1)))&&(a19==1)))&&!(a20==1))&&(a11==1))))))){ + a25 = 0; + a29 = 5; + a11 = 0; + a0 = 0; + a24 = 1; + a7 = 1; + a20 = 1; + return 24; + } else if((((!(a0==1)&&((a29==8)&&(((a28==1)&&(!(a11==1)&&((a22==1)&&((((input==1)&&(a7==1))&&!(a20==1))&&!(a24==1)))))&&(a14==8))))&&!(a25==1))&&(a19==5))){ + a29 = 7; + a19 = 2; + a7 = 0; + a24 = 1; + a14 = 9; + return 24; + } else if(((((((a25==1)&&((a28==1)&&((a0==1)&&(!(a7==1)&&(((input==1)&&((((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))||((a19==3)&&(a29==6))))&&(a24==1))))))&&(a11==1))&&(a22==1))&&!(a20==1))&&(a14==8))){ + a19 = 1; + a29 = 5; + a20 = 1; + a7 = 1; + return -1; + } else if(((a14==8)&&(((a29==8)&&(((a22==1)&&((a7==1)&&((!(a0==1)&&((a24==1)&&(((input==3)&&(a28==1))&&(a20==1))))&&(a19==3))))&&!(a25==1)))&&(a11==1)))){ + a25 = 1; + a0 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if((((a11==1)&&((a28==1)&&(!(a20==1)&&(!(a7==1)&&((a24==1)&&((a25==1)&&((((input==4)&&(((a29==5)&&(a19==4))||(((a19==3)&&(a29==8))||((a19==3)&&(a29==9)))))&&(a14==9))&&(a22==1))))))))&&(a0==1))){ + a14 = 8; + a0 = 0; + a7 = 1; + a19 = 4; + a29 = 9; + return 24; + } else if((!(a0==1)&&((((a28==1)&&((a14==8)&&((a19==1)&&(!(a11==1)&&((!(a20==1)&&((a22==1)&&(((a29==6)||(a29==7))&&(input==6))))&&(a25==1))))))&&!(a7==1))&&!(a24==1)))){ + a29 = 8; + a25 = 0; + a0 = 1; + return 21; + } else if((((((a0==1)&&(((((a20==1)&&((a19==4)&&(((input==6)&&(a25==1))&&(a24==1))))&&(a14==10))&&(a28==1))&&(a22==1)))&&(a11==1))&&(a29==9))&&(a7==1))){ + a14 = 9; + a20 = 0; + a11 = 0; + a19 = 1; + a24 = 0; + return 23; + } else if((((a19==3)&&(!(a24==1)&&(((((a20==1)&&((a11==1)&&(!(a0==1)&&((((a29==7)||(a29==8))&&(input==2))&&(a25==1)))))&&(a22==1))&&(a28==1))&&(a14==8))))&&(a7==1))){ + a29 = 5; + a19 = 1; + a24 = 1; + a0 = 1; + return -1; + } else if((((a14==9)&&(((a25==1)&&((a20==1)&&(((a22==1)&&((a28==1)&&((a0==1)&&((input==1)&&(((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))))))&&(a11==1))))&&(a7==1)))&&!(a24==1))){ + a14 = 8; + a19 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if((((!(a24==1)&&((a14==9)&&((a22==1)&&(((!(a11==1)&&(!(a0==1)&&((a7==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==3)))))&&(a19==4))&&(a20==1)))))&&(a28==1))&&!(a25==1))){ + a20 = 0; + a0 = 1; + a19 = 2; + a29 = 5; + return 23; + } else if((((a22==1)&&(((a29==6)&&((a0==1)&&(((a28==1)&&(!(a20==1)&&((a24==1)&&((a19==5)&&((input==5)&&(a14==8))))))&&!(a7==1))))&&!(a25==1)))&&!(a11==1))){ + a19 = 1; + a20 = 1; + a29 = 5; + a11 = 1; + a7 = 1; + a25 = 1; + return -1; + } else if(((a20==1)&&(((((a14==8)&&(!(a7==1)&&(!(a25==1)&&(((((((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))||((a29==6)&&(a19==2)))&&(input==2))&&(a28==1))&&(a22==1)))))&&!(a0==1))&&(a24==1))&&(a11==1)))){ + a20 = 0; + a19 = 4; + a0 = 1; + a11 = 0; + a25 = 1; + a24 = 0; + a29 = 8; + return -1; + } else if(((a28==1)&&(((a29==6)&&((a25==1)&&((((a19==3)&&((a22==1)&&((!(a24==1)&&((input==1)&&!(a7==1)))&&(a14==8))))&&(a20==1))&&(a11==1))))&&(a0==1)))){ + a24 = 1; + a19 = 4; + a20 = 0; + a29 = 9; + a0 = 0; + return 24; + } else if(((a19==5)&&((!(a7==1)&&(!(a25==1)&&((((!(a24==1)&&((a28==1)&&((a11==1)&&((input==5)&&((a29==5)||(a29==6))))))&&(a14==8))&&!(a0==1))&&(a20==1))))&&(a22==1)))){ + a29 = 5; + a25 = 1; + a7 = 1; + a24 = 1; + a0 = 1; + a19 = 1; + return -1; + } else if(((!(a11==1)&&((a0==1)&&(((a14==9)&&(!(a24==1)&&((a22==1)&&(((a20==1)&&((input==5)&&((((a29==9)&&(a19==4))||((a29==5)&&(a19==5)))||((a29==6)&&(a19==5)))))&&(a28==1)))))&&!(a7==1))))&&(a25==1))){ + a24 = 1; + a0 = 0; + a14 = 8; + a11 = 1; + a19 = 1; + a29 = 7; + a20 = 0; + a7 = 1; + return -1; + } else if(((a25==1)&&(((a0==1)&&(!(a20==1)&&((a19==4)&&((a11==1)&&((!(a7==1)&&((a22==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==1))&&(a14==10))))&&(a28==1))))))&&(a24==1)))){ + a29 = 5; + a25 = 0; + a14 = 8; + a7 = 1; + a19 = 1; + a20 = 1; + a0 = 0; + return 21; + } else if((((((a19==2)&&((a22==1)&&(((a14==8)&&((a28==1)&&(!(a25==1)&&((((a29==6)||(a29==7))&&(input==1))&&!(a0==1)))))&&!(a7==1))))&&!(a24==1))&&!(a11==1))&&!(a20==1))){ + a7 = 1; + a24 = 1; + a19 = 5; + a29 = 9; + return -1; + } else if(((((a24==1)&&((a11==1)&&(((((a14==10)&&((a25==1)&&(((input==3)&&((a29==9)||((a29==7)||(a29==8))))&&(a0==1))))&&!(a20==1))&&(a28==1))&&!(a7==1))))&&(a19==4))&&(a22==1))){ + a7 = 1; + a19 = 5; + a0 = 0; + a14 = 8; + a29 = 6; + return -1; + } else if(((((a24==1)&&(((((((!(a7==1)&&(((a29==7)||(a29==8))&&(input==3)))&&!(a11==1))&&(a22==1))&&!(a25==1))&&(a14==8))&&(a28==1))&&(a20==1)))&&(a19==3))&&(a0==1))){ + a7 = 1; + a19 = 1; + a29 = 5; + a11 = 1; + a25 = 1; + return -1; + } else if(((a20==1)&&((((a7==1)&&((a14==8)&&(!(a24==1)&&((((((a28==1)&&(input==6))&&(a0==1))&&(a19==1))&&(a25==1))&&(a22==1)))))&&(a11==1))&&(a29==7)))){ + a24 = 1; + a29 = 5; + return -1; + } else if((!(a11==1)&&((a28==1)&&(((a22==1)&&((((a14==8)&&((a29==8)&&(((a7==1)&&(!(a0==1)&&(input==5)))&&!(a20==1))))&&(a25==1))&&(a24==1)))&&(a19==3))))){ + a19 = 5; + a7 = 0; + a20 = 1; + a11 = 1; + a29 = 6; + return 21; + } else if(((((a29==5)&&(((a22==1)&&(!(a11==1)&&((a14==8)&&((a20==1)&&((((a24==1)&&(input==3))&&(a28==1))&&!(a7==1))))))&&(a0==1)))&&(a25==1))&&(a19==2))){ + a24 = 0; + a7 = 1; + a20 = 0; + a29 = 6; + a25 = 0; + a19 = 3; + return 24; + } else if(((((a11==1)&&(!(a0==1)&&((a24==1)&&((((a7==1)&&(!(a20==1)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==1))&&(a28==1))))&&(a22==1))&&(a19==2)))))&&!(a25==1))&&(a14==9))){ + a11 = 0; + a24 = 0; + a19 = 5; + a14 = 8; + a29 = 7; + a25 = 1; + a0 = 1; + a7 = 0; + return 21; + } else if(((((a22==1)&&(((a28==1)&&(((((a14==9)&&(((input==5)&&((a29==9)||((a29==7)||(a29==8))))&&!(a25==1)))&&(a0==1))&&(a24==1))&&(a20==1)))&&(a7==1)))&&(a19==4))&&!(a11==1))){ + a20 = 0; + a24 = 0; + a11 = 1; + a29 = 7; + return 23; + } else if((!(a24==1)&&((((a22==1)&&((a14==9)&&(((a20==1)&&((a11==1)&&((((input==1)&&(a0==1))&&(a28==1))&&(a29==5))))&&(a19==2))))&&!(a7==1))&&(a25==1)))){ + a11 = 0; + a7 = 1; + a19 = 1; + a24 = 1; + a25 = 0; + return 24; + } else if(((a24==1)&&((a25==1)&&(((a11==1)&&((((a19==2)&&((a29==7)&&((a14==8)&&((a28==1)&&((input==2)&&(a7==1))))))&&(a20==1))&&(a22==1)))&&!(a0==1))))){ + a0 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((((((a28==1)&&(!(a11==1)&&((!(a7==1)&&((a25==1)&&((a19==1)&&((input==6)&&((a29==5)||(a29==6))))))&&(a20==1))))&&(a14==9))&&(a0==1))&&(a22==1))&&(a24==1))){ + a29 = 8; + a19 = 5; + a11 = 1; + a0 = 0; + a20 = 0; + a14 = 8; + return 24; + } else if(((!(a11==1)&&((((!(a20==1)&&(((a19==5)&&((a22==1)&&((a24==1)&&(((a29==5)||(a29==6))&&(input==2)))))&&(a25==1)))&&(a0==1))&&(a28==1))&&(a14==9)))&&(a7==1))){ + a29 = 9; + a19 = 1; + a7 = 0; + a14 = 8; + a11 = 1; + a0 = 0; + a20 = 1; + return 21; + } else if((((((((a29==9)&&((a28==1)&&(((((input==2)&&!(a7==1))&&!(a0==1))&&(a19==3))&&!(a11==1))))&&(a22==1))&&(a20==1))&&!(a25==1))&&(a24==1))&&(a14==8))){ + a11 = 1; + a29 = 5; + a7 = 1; + a0 = 1; + a25 = 1; + a19 = 1; + return -1; + } else if(((a11==1)&&((a24==1)&&((a22==1)&&((((((a0==1)&&((a25==1)&&((input==2)&&(((a19==3)&&(a29==9))||((a29==5)&&(a19==4))))))&&(a28==1))&&!(a7==1))&&!(a20==1))&&(a14==10)))))){ + a14 = 9; + a25 = 0; + a29 = 5; + a24 = 0; + a19 = 5; + return -1; + } else if((((((a19==4)&&(((!(a7==1)&&((((a22==1)&&((input==3)&&((a29==6)||(a29==7))))&&(a14==9))&&(a28==1)))&&!(a11==1))&&!(a25==1)))&&!(a24==1))&&(a0==1))&&!(a20==1))){ + a19 = 3; + a11 = 1; + a20 = 1; + a29 = 6; + a25 = 1; + return 24; + } else if(((a22==1)&&(((((((((((input==6)&&(((a29==6)||(a29==7))||(a29==8)))&&!(a20==1))&&(a0==1))&&(a11==1))&&(a14==8))&&(a28==1))&&(a19==5))&&!(a25==1))&&(a7==1))&&(a24==1)))){ + a20 = 1; + a11 = 0; + a29 = 7; + return 24; + } return calculate_output13(input); + } + + int calculate_output13(int input) { + if((!(a24==1)&&(((a0==1)&&((a22==1)&&(((a25==1)&&(((a20==1)&&((((input==1)&&((a29==8)||((a29==6)||(a29==7))))&&(a19==3))&&(a11==1)))&&(a14==9)))&&(a28==1))))&&!(a7==1)))){ + a7 = 1; + a24 = 1; + a29 = 5; + a14 = 8; + a19 = 1; + return -1; + } else if((((((a29==5)&&((a19==4)&&((a11==1)&&((((((input==6)&&!(a0==1))&&(a14==8))&&!(a7==1))&&(a28==1))&&!(a20==1)))))&&(a24==1))&&!(a25==1))&&(a22==1))){ + a24 = 0; + a25 = 1; + a29 = 7; + a0 = 1; + a14 = 9; + a11 = 0; + return 23; + } else if(((a7==1)&&((a19==1)&&((a11==1)&&(!(a25==1)&&((a20==1)&&((a22==1)&&(!(a0==1)&&((((a14==9)&&((input==3)&&(((a29==5)||(a29==6))||(a29==7))))&&(a24==1))&&(a28==1)))))))))){ + a25 = 1; + a0 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((a22==1)&&(((a19==4)&&(!(a11==1)&&((((!(a20==1)&&((a14==9)&&(((input==4)&&(a25==1))&&!(a7==1))))&&(a0==1))&&(a29==7))&&(a24==1))))&&(a28==1)))){ + a29 = 6; + a19 = 1; + a24 = 0; + a14 = 8; + a0 = 0; + return 23; + } else if(((a20==1)&&(((((a28==1)&&(((a25==1)&&((a11==1)&&(((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))&&(input==3))&&!(a7==1))))&&(a0==1)))&&(a14==8))&&!(a24==1))&&(a22==1)))){ + a24 = 1; + a0 = 0; + a25 = 0; + a20 = 0; + a29 = 5; + a19 = 3; + return 23; + } else if(((a28==1)&&((a0==1)&&(((!(a11==1)&&((((((a24==1)&&(((a29==5)||(a29==6))&&(input==6)))&&!(a20==1))&&(a22==1))&&(a25==1))&&(a14==8)))&&(a7==1))&&(a19==1))))){ + a0 = 0; + a19 = 3; + a7 = 0; + a29 = 6; + a24 = 0; + return 24; + } else if((((a28==1)&&(!(a20==1)&&((((a11==1)&&(((((((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))&&(input==5))&&(a0==1))&&!(a24==1))&&(a7==1)))&&!(a25==1))&&(a22==1))))&&(a14==9))){ + a19 = 5; + a20 = 1; + a29 = 6; + a14 = 10; + a25 = 1; + return 23; + } else if((!(a20==1)&&(((a11==1)&&(!(a7==1)&&((a28==1)&&(!(a25==1)&&(!(a0==1)&&((a22==1)&&((a19==3)&&(((input==5)&&((a29==5)||(a29==6)))&&(a14==9)))))))))&&!(a24==1)))){ + a14 = 8; + a20 = 1; + a0 = 1; + a7 = 1; + a19 = 1; + a25 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if(((a19==3)&&((a22==1)&&(!(a7==1)&&((((a0==1)&&(!(a20==1)&&(!(a25==1)&&((a28==1)&&(((input==4)&&((a29==6)||(a29==7)))&&!(a11==1))))))&&(a24==1))&&(a14==8)))))){ + a19 = 4; + a24 = 0; + a29 = 5; + return 23; + } else if(((!(a24==1)&&((((!(a11==1)&&((a22==1)&&(((a14==8)&&(((a28==1)&&(input==1))&&(a7==1)))&&(a29==8))))&&!(a0==1))&&!(a20==1))&&(a19==4)))&&(a25==1))){ + a0 = 1; + a11 = 1; + a19 = 1; + a24 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if((((a11==1)&&((((a19==2)&&(!(a0==1)&&(!(a25==1)&&((a20==1)&&(!(a7==1)&&((a22==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==1))))))))&&(a24==1))&&(a14==9)))&&(a28==1))){ + a29 = 6; + a14 = 8; + a11 = 0; + return 23; + } else if(((a22==1)&&(((a20==1)&&(!(a7==1)&&(((a25==1)&&(((a28==1)&&((a14==8)&&((a24==1)&&((input==6)&&((a29==8)||(a29==9))))))&&(a19==5)))&&!(a0==1))))&&!(a11==1)))){ + a24 = 0; + a19 = 4; + a20 = 0; + a0 = 1; + a29 = 5; + a25 = 0; + return 24; + } else if(((a14==9)&&((a22==1)&&((a29==8)&&(((!(a25==1)&&((((((input==2)&&(a20==1))&&(a7==1))&&(a19==4))&&!(a0==1))&&!(a11==1)))&&(a28==1))&&(a24==1)))))){ + a19 = 1; + a25 = 1; + a11 = 1; + a14 = 8; + a0 = 1; + a29 = 5; + return -1; + } else if(((((!(a25==1)&&((((((a19==3)&&(((input==4)&&!(a24==1))&&(a0==1)))&&(a11==1))&&(a29==7))&&(a22==1))&&(a20==1)))&&(a14==8))&&!(a7==1))&&(a28==1))){ + a19 = 1; + a29 = 5; + a25 = 1; + a0 = 0; + return 21; + } else if((!(a7==1)&&(((a19==2)&&((a24==1)&&(!(a11==1)&&(((((a28==1)&&(((input==1)&&((a29==6)||(a29==7)))&&(a14==9)))&&!(a25==1))&&!(a20==1))&&(a22==1)))))&&(a0==1)))){ + a29 = 8; + a25 = 1; + a19 = 3; + a7 = 1; + return -1; + } else if(((!(a20==1)&&((!(a0==1)&&((((a25==1)&&((a22==1)&&(((((a19==3)&&(a29==5))||(((a29==8)&&(a19==2))||((a29==9)&&(a19==2))))&&(input==1))&&(a24==1))))&&!(a7==1))&&(a28==1)))&&(a11==1)))&&(a14==9))){ + a24 = 0; + a7 = 1; + a19 = 4; + a0 = 1; + a29 = 6; + return -1; + } else if((((a20==1)&&(!(a7==1)&&((a29==5)&&(!(a11==1)&&((a14==9)&&(!(a24==1)&&(!(a0==1)&&((a28==1)&&(((input==4)&&(a25==1))&&(a19==4))))))))))&&(a22==1))){ + a25 = 0; + a20 = 0; + a7 = 1; + a14 = 8; + a0 = 1; + return 24; + } else if((((((a22==1)&&((a11==1)&&(((a25==1)&&((a0==1)&&((a28==1)&&((((a29==5)&&(a19==4))||(((a29==8)&&(a19==3))||((a19==3)&&(a29==9))))&&(input==6)))))&&(a7==1))))&&!(a24==1))&&(a14==10))&&(a20==1))){ + a29 = 8; + a0 = 0; + a14 = 8; + a19 = 4; + a25 = 0; + return 21; + } else if((((((a19==2)&&(((!(a7==1)&&((((a0==1)&&((input==5)&&((a29==9)||((a29==7)||(a29==8)))))&&(a28==1))&&(a22==1)))&&(a11==1))&&!(a24==1)))&&(a14==8))&&(a25==1))&&!(a20==1))){ + a29 = 5; + a7 = 1; + a24 = 1; + a19 = 1; + a20 = 1; + return -1; + } else if(((a14==9)&&((((((a28==1)&&((!(a20==1)&&(((a11==1)&&((input==2)&&(((a29==5)||(a29==6))||(a29==7))))&&(a24==1)))&&(a0==1)))&&(a7==1))&&(a22==1))&&(a25==1))&&(a19==2)))){ + a11 = 0; + a29 = 7; + a14 = 8; + a19 = 4; + a7 = 0; + a24 = 0; + return -1; + } else if(((a28==1)&&((a0==1)&&((((a14==8)&&((a24==1)&&(((((a11==1)&&((input==3)&&((a29==7)||(a29==8))))&&!(a25==1))&&(a19==4))&&(a20==1))))&&!(a7==1))&&(a22==1))))){ + a7 = 1; + a25 = 1; + a29 = 9; + a24 = 0; + return 24; + } else if(((((a28==1)&&(!(a11==1)&&((a24==1)&&((a7==1)&&(((!(a20==1)&&((a25==1)&&((input==1)&&(((a29==7)||(a29==8))||(a29==9)))))&&(a19==5))&&(a22==1))))))&&(a0==1))&&(a14==8))){ + a11 = 1; + a29 = 5; + a20 = 1; + a19 = 1; + return -1; + } else if((((a22==1)&&(((((a11==1)&&(((!(a0==1)&&((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))&&(input==3)))&&(a14==9))&&(a24==1)))&&(a20==1))&&!(a25==1))&&(a28==1)))&&(a7==1))){ + a29 = 5; + a19 = 4; + a20 = 0; + a14 = 8; + return -1; + } else if((((((a20==1)&&((a11==1)&&((a22==1)&&(((((input==2)&&(((a29==9)&&(a19==1))||((a29==5)&&(a19==2))))&&(a0==1))&&!(a7==1))&&(a28==1)))))&&(a14==9))&&!(a25==1))&&!(a24==1))){ + a19 = 2; + a14 = 8; + a0 = 0; + a29 = 7; + a24 = 1; + return 23; + } else if((((a25==1)&&((!(a20==1)&&((!(a0==1)&&(((a14==9)&&((a29==5)&&(((input==6)&&(a19==2))&&!(a24==1))))&&(a22==1)))&&(a11==1)))&&(a28==1)))&&(a7==1))){ + a14 = 8; + a20 = 1; + a0 = 1; + a24 = 1; + a19 = 1; + return -1; + } else if(((!(a0==1)&&(((a11==1)&&((((a25==1)&&((a20==1)&&(((((a29==5)||(a29==6))&&(input==2))&&(a19==5))&&(a14==9))))&&!(a7==1))&&(a22==1)))&&(a24==1)))&&(a28==1))){ + a14 = 8; + a19 = 2; + a29 = 7; + a11 = 0; + a20 = 0; + return -1; + } else if(((a11==1)&&(!(a24==1)&&((a25==1)&&(((a28==1)&&((((a0==1)&&(!(a7==1)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==1))&&(a22==1))))&&!(a20==1))&&(a14==9)))&&(a19==2)))))){ + a20 = 1; + a29 = 5; + a14 = 8; + a7 = 1; + a19 = 1; + a24 = 1; + return -1; + } else if(((a25==1)&&(!(a24==1)&&((a11==1)&&(((a20==1)&&(!(a7==1)&&(((a14==8)&&(!(a0==1)&&(((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))||((a19==3)&&(a29==6)))&&(input==1))))&&(a28==1))))&&(a22==1)))))){ + a20 = 0; + a29 = 9; + a19 = 5; + a25 = 0; + a11 = 0; + a0 = 1; + return 23; + } else if(((((!(a11==1)&&((((a7==1)&&(((a22==1)&&(((input==3)&&(a19==3))&&(a29==7)))&&!(a24==1)))&&(a0==1))&&(a20==1)))&&(a14==8))&&(a28==1))&&!(a25==1))){ + a20 = 0; + a19 = 4; + a29 = 8; + return 21; + } else if(((a19==2)&&(((a11==1)&&((((a14==8)&&(!(a20==1)&&(!(a0==1)&&((((input==6)&&(((a29==5)||(a29==6))||(a29==7)))&&(a24==1))&&(a7==1)))))&&(a22==1))&&(a28==1)))&&(a25==1)))){ + a19 = 1; + a29 = 6; + a0 = 1; + a24 = 0; + a7 = 0; + a11 = 0; + return -1; + } else if(((!(a24==1)&&((a11==1)&&(((!(a25==1)&&(!(a7==1)&&((a22==1)&&((a14==9)&&(((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))||((a29==6)&&(a19==4)))&&(input==3))))))&&(a20==1))&&(a28==1))))&&(a0==1))){ + a25 = 1; + a19 = 4; + a20 = 0; + a24 = 1; + a29 = 5; + a14 = 8; + a0 = 0; + return 24; + } else if(((a20==1)&&((a0==1)&&((((a14==10)&&(((a7==1)&&(((a28==1)&&(!(a25==1)&&(((a29==5)||(a29==6))&&(input==6))))&&(a11==1)))&&(a24==1)))&&(a19==5))&&(a22==1))))){ + a0 = 0; + a14 = 8; + a29 = 7; + a19 = 3; + a7 = 0; + return 23; + } else if(((((a19==2)&&((a28==1)&&((a7==1)&&(((a20==1)&&((a22==1)&&((((input==6)&&(((a29==5)||(a29==6))||(a29==7)))&&(a11==1))&&(a25==1))))&&(a14==10)))))&&(a24==1))&&(a0==1))){ + a0 = 0; + a14 = 8; + a29 = 6; + return 21; + } else if(((a19==3)&&((a11==1)&&((((((((a20==1)&&((a28==1)&&((input==3)&&((a29==5)||(a29==6)))))&&(a7==1))&&(a0==1))&&(a25==1))&&(a22==1))&&(a24==1))&&(a14==9))))){ + a20 = 0; + a14 = 8; + a7 = 0; + a0 = 0; + a29 = 5; + return 24; + } else if((((!(a24==1)&&((a11==1)&&(((a7==1)&&(((a22==1)&&(((((a29==5)||(a29==6))&&(input==1))&&(a19==5))&&(a0==1)))&&(a14==9)))&&(a28==1))))&&(a20==1))&&(a25==1))){ + a0 = 0; + a14 = 8; + a19 = 1; + a24 = 1; + a7 = 0; + a25 = 0; + a29 = 8; + return -1; + } else if((((a29==8)&&((a22==1)&&(((!(a24==1)&&((!(a11==1)&&((a19==3)&&(((input==4)&&(a20==1))&&(a25==1))))&&!(a7==1)))&&(a28==1))&&!(a0==1))))&&(a14==9))){ + a20 = 0; + a29 = 5; + a0 = 1; + a25 = 0; + a7 = 1; + a19 = 4; + return 23; + } else if(((a29==8)&&((a22==1)&&((a19==2)&&((a14==8)&&(!(a25==1)&&((a0==1)&&(((a28==1)&&((a24==1)&&(((input==5)&&(a11==1))&&!(a20==1))))&&(a7==1))))))))){ + a25 = 1; + a19 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if(((a28==1)&&((a20==1)&&(((!(a11==1)&&((a19==4)&&(((!(a24==1)&&(((input==2)&&((a29==6)||(a29==7)))&&(a22==1)))&&(a7==1))&&!(a0==1))))&&(a14==9))&&(a25==1))))){ + a0 = 1; + a19 = 5; + a29 = 6; + return 23; + } else if((((((a22==1)&&(((a11==1)&&((a7==1)&&((((((a19==2)&&(a29==5))||(((a19==1)&&(a29==8))||((a29==9)&&(a19==1))))&&(input==2))&&(a28==1))&&!(a25==1))))&&(a14==9)))&&!(a20==1))&&(a0==1))&&!(a24==1))){ + a25 = 1; + a29 = 5; + a14 = 8; + a20 = 1; + a19 = 1; + a24 = 1; + return -1; + } else if(((a0==1)&&(((a24==1)&&(((!(a7==1)&&((a14==10)&&((!(a20==1)&&(((((a29==8)&&(a19==1))||((a19==1)&&(a29==9)))||((a29==5)&&(a19==2)))&&(input==2)))&&(a28==1))))&&(a22==1))&&!(a25==1)))&&(a11==1)))){ + a7 = 1; + a0 = 0; + a14 = 9; + a20 = 1; + a11 = 0; + a29 = 5; + a19 = 2; + a25 = 1; + return -1; + } else if((((a28==1)&&(((((!(a24==1)&&(((((input==2)&&((a29==7)||((a29==5)||(a29==6))))&&!(a25==1))&&(a19==2))&&!(a7==1)))&&(a0==1))&&!(a20==1))&&(a14==9))&&(a22==1)))&&(a11==1))){ + a29 = 5; + a19 = 1; + a7 = 1; + a24 = 1; + return 24; + } else if(((a20==1)&&((a0==1)&&(((a28==1)&&((((((a19==5)&&(!(a7==1)&&((input==3)&&((a29==8)||(a29==9)))))&&(a22==1))&&!(a24==1))&&!(a25==1))&&(a14==8)))&&(a11==1))))){ + a0 = 0; + a19 = 2; + a25 = 1; + a24 = 1; + a29 = 6; + return 23; + } else if((((((!(a20==1)&&(((a22==1)&&(!(a25==1)&&(((((a29==9)||((a29==7)||(a29==8)))&&(input==3))&&!(a11==1))&&(a24==1))))&&(a28==1)))&&(a14==8))&&!(a7==1))&&!(a0==1))&&(a19==3))){ + a29 = 6; + a7 = 1; + a19 = 4; + a24 = 0; + a11 = 1; + return 21; + } else if(((a14==9)&&((a28==1)&&(((a24==1)&&(!(a25==1)&&((((a29==8)&&(((a20==1)&&((a0==1)&&(input==5)))&&!(a11==1)))&&(a22==1))&&(a19==5))))&&!(a7==1))))){ + a25 = 1; + a29 = 9; + a19 = 3; + return -1; + } else if(((a14==9)&&((a11==1)&&(((a28==1)&&(!(a24==1)&&(((((a22==1)&&((((a29==8)||(a29==9))&&(input==1))&&!(a20==1)))&&(a0==1))&&(a19==2))&&(a7==1))))&&!(a25==1))))){ + a19 = 3; + a20 = 1; + a29 = 9; + a11 = 0; + a25 = 1; + a24 = 1; + return 23; + } else if(((a20==1)&&((a14==9)&&((a25==1)&&((a19==1)&&(((a29==5)&&(!(a7==1)&&(((((input==2)&&(a24==1))&&(a11==1))&&(a28==1))&&(a22==1))))&&!(a0==1))))))){ + a7 = 1; + a29 = 6; + a20 = 0; + a0 = 1; + a19 = 4; + return 24; + } else if(((a25==1)&&((((a24==1)&&(((!(a0==1)&&((a19==5)&&(((a28==1)&&(((a29==5)||(a29==6))&&(input==4)))&&(a11==1))))&&(a20==1))&&(a14==9)))&&!(a7==1))&&(a22==1)))){ + a29 = 8; + a7 = 1; + a14 = 8; + a20 = 0; + a11 = 0; + return -1; + } else if(((((!(a20==1)&&(((a24==1)&&(((a25==1)&&(((((a29==7)||(a29==8))&&(input==6))&&(a11==1))&&(a7==1)))&&(a28==1)))&&(a22==1)))&&(a0==1))&&(a19==1))&&(a14==9))){ + a7 = 0; + a11 = 0; + a24 = 0; + a29 = 8; + a0 = 0; + a19 = 2; + return 21; + } else if((((a14==8)&&((a24==1)&&(((!(a25==1)&&(!(a11==1)&&((a22==1)&&((a29==5)&&(((a20==1)&&(input==3))&&(a0==1))))))&&(a7==1))&&(a28==1))))&&(a19==2))){ + a25 = 1; + a24 = 0; + a0 = 0; + a29 = 7; + return 23; + } else if((!(a25==1)&&((a28==1)&&((((!(a11==1)&&((((a22==1)&&(((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))||((a19==4)&&(a29==6)))&&(input==5)))&&!(a24==1))&&!(a0==1)))&&!(a20==1))&&(a14==9))&&!(a7==1))))){ + a29 = 5; + a0 = 1; + a19 = 2; + a7 = 1; + return 21; + } else if((((a24==1)&&((a28==1)&&((!(a7==1)&&((((a22==1)&&((a0==1)&&((input==3)&&(((a29==9)&&(a19==2))||((a19==3)&&(a29==5))))))&&!(a25==1))&&(a20==1)))&&(a11==1))))&&(a14==9))){ + a19 = 2; + a14 = 8; + a29 = 6; + a20 = 0; + a0 = 0; + a25 = 1; + return 23; + } else if(((a20==1)&&(((a22==1)&&((a14==9)&&(!(a11==1)&&((a0==1)&&((a19==4)&&(((a25==1)&&((a28==1)&&(((a29==7)||(a29==8))&&(input==2))))&&!(a24==1)))))))&&!(a7==1)))){ + a11 = 1; + a14 = 8; + a24 = 1; + a0 = 0; + a29 = 8; + a7 = 1; + a25 = 0; + return 23; + } else if(((((((((a22==1)&&((a29==7)&&((!(a7==1)&&((a24==1)&&(input==5)))&&(a14==9))))&&!(a20==1))&&!(a0==1))&&(a19==1))&&!(a11==1))&&(a28==1))&&(a25==1))){ + a0 = 1; + a19 = 3; + a24 = 0; + a29 = 8; + a25 = 0; + a7 = 1; + return 21; + } else if((((a20==1)&&((a29==5)&&(((a19==3)&&(((a14==9)&&(((!(a24==1)&&((input==6)&&!(a11==1)))&&!(a0==1))&&(a22==1)))&&(a28==1)))&&!(a25==1))))&&!(a7==1))){ + a25 = 1; + a11 = 1; + a24 = 1; + a7 = 1; + a14 = 8; + a0 = 1; + a19 = 1; + return -1; + } else if((((a14==8)&&((a22==1)&&(!(a24==1)&&((!(a0==1)&&((a19==1)&&((a25==1)&&(!(a20==1)&&((a28==1)&&(((a29==6)||(a29==7))&&(input==4)))))))&&!(a11==1)))))&&(a7==1))){ + a11 = 1; + a20 = 1; + a0 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if(((a22==1)&&((a7==1)&&(((a28==1)&&(!(a0==1)&&((!(a24==1)&&((((((a29==5)||(a29==6))&&(input==4))&&(a20==1))&&!(a25==1))&&!(a11==1)))&&(a19==2))))&&(a14==9))))){ + a7 = 0; + a0 = 1; + a29 = 9; + a19 = 5; + a25 = 1; + return -1; + } else if(((a28==1)&&(!(a0==1)&&((!(a11==1)&&((a14==9)&&(((a22==1)&&(((a25==1)&&((a19==5)&&((input==2)&&((a29==8)||((a29==6)||(a29==7))))))&&!(a20==1)))&&!(a7==1))))&&(a24==1))))){ + a29 = 5; + a20 = 1; + a11 = 1; + a19 = 1; + a14 = 8; + a0 = 1; + a7 = 1; + return -1; + } else if((((!(a0==1)&&((a25==1)&&(!(a7==1)&&((((a28==1)&&((a29==8)&&((a14==8)&&((a19==1)&&(input==1)))))&&(a20==1))&&(a22==1)))))&&!(a11==1))&&!(a24==1))){ + a24 = 1; + a29 = 5; + a7 = 1; + a0 = 1; + a11 = 1; + return -1; + } else if((((!(a7==1)&&(((((!(a20==1)&&((a28==1)&&(!(a25==1)&&(((a29==7)||(a29==8))&&(input==2)))))&&(a11==1))&&(a19==5))&&!(a0==1))&&(a14==8)))&&(a22==1))&&(a24==1))){ + a0 = 1; + a19 = 3; + a24 = 0; + a25 = 1; + a29 = 7; + a11 = 0; + return -1; + } else if((!(a0==1)&&((((((a14==9)&&((((a20==1)&&((input==5)&&(((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))))&&!(a24==1))&&(a28==1)))&&!(a25==1))&&!(a11==1))&&(a22==1))&&!(a7==1)))){ + a14 = 8; + a20 = 0; + a24 = 1; + a19 = 1; + a29 = 7; + return -1; + } else if(((!(a0==1)&&((a14==9)&&((a22==1)&&((((a19==2)&&((a7==1)&&(((a28==1)&&((input==6)&&(a24==1)))&&(a29==6))))&&(a25==1))&&(a11==1)))))&&!(a20==1))){ + a20 = 1; + a14 = 8; + a19 = 3; + a29 = 9; + a25 = 0; + a24 = 0; + return -1; + } else if(((((a14==9)&&(((((a19==5)&&(!(a11==1)&&((a28==1)&&((a25==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==3))))))&&(a24==1))&&(a7==1))&&(a0==1)))&&(a20==1))&&(a22==1))){ + a29 = 5; + a20 = 0; + a0 = 0; + a7 = 0; + a11 = 1; + a14 = 8; + return 21; + } else if((!(a7==1)&&((a28==1)&&((a24==1)&&((!(a0==1)&&(((a20==1)&&((!(a11==1)&&((a14==9)&&((input==1)&&((a29==7)||(a29==8)))))&&(a22==1)))&&(a19==4)))&&!(a25==1)))))){ + a29 = 5; + a19 = 1; + a20 = 0; + a7 = 1; + a24 = 0; + a0 = 1; + return -1; + } else if((((((a28==1)&&((a19==2)&&(!(a24==1)&&((!(a7==1)&&((a11==1)&&((a14==8)&&((input==1)&&((a29==7)||(a29==8))))))&&(a25==1)))))&&!(a0==1))&&(a22==1))&&(a20==1))){ + a14 = 9; + a24 = 1; + a19 = 1; + a29 = 5; + return 24; + } else if(((a22==1)&&(((!(a25==1)&&((a0==1)&&(((a14==9)&&((((input==6)&&(((a29==9)&&(a19==1))||((a29==5)&&(a19==2))))&&(a11==1))&&!(a24==1)))&&(a28==1))))&&(a7==1))&&(a20==1)))){ + a20 = 0; + a7 = 0; + a24 = 1; + a19 = 5; + a29 = 9; + return 23; + } else if(((!(a20==1)&&(!(a7==1)&&((!(a0==1)&&((((a22==1)&&((a25==1)&&(((input==2)&&(a11==1))&&(a14==9))))&&!(a24==1))&&(a19==3)))&&(a28==1))))&&(a29==7))){ + a25 = 0; + a29 = 6; + a0 = 1; + a19 = 1; + a7 = 1; + return -1; + } else if(((!(a25==1)&&(((a28==1)&&(((a0==1)&&((!(a7==1)&&((a24==1)&&((a22==1)&&(!(a20==1)&&(input==4)))))&&(a29==6)))&&(a19==1)))&&(a14==9)))&&!(a11==1))){ + a20 = 1; + a29 = 9; + a14 = 8; + a0 = 0; + a11 = 1; + return 24; + } else if((((((a20==1)&&((a22==1)&&((!(a24==1)&&((a28==1)&&((a19==5)&&((((a29==5)||(a29==6))&&(input==2))&&(a11==1)))))&&(a14==9))))&&(a25==1))&&(a7==1))&&(a0==1))){ + a20 = 0; + a24 = 1; + a19 = 3; + a29 = 8; + return 24; + } else if((!(a7==1)&&((!(a0==1)&&((((a19==3)&&((((a24==1)&&((((a29==6)||(a29==7))&&(input==5))&&(a11==1)))&&(a28==1))&&(a14==9)))&&!(a20==1))&&(a25==1)))&&(a22==1)))){ + a11 = 0; + a0 = 1; + a25 = 0; + a29 = 5; + a14 = 8; + a24 = 0; + a19 = 4; + return 23; + } else if((!(a25==1)&&(((((a14==9)&&(((a19==4)&&(((((input==6)&&(a22==1))&&(a11==1))&&(a29==7))&&(a28==1)))&&(a20==1)))&&!(a24==1))&&(a0==1))&&(a7==1)))){ + a29 = 5; + a25 = 1; + a19 = 1; + a24 = 1; + a14 = 8; + return -1; + } else if(((((a22==1)&&(((a19==5)&&(!(a0==1)&&(((((((a29==8)||((a29==6)||(a29==7)))&&(input==4))&&(a25==1))&&(a20==1))&&(a14==8))&&(a11==1))))&&(a24==1)))&&!(a7==1))&&(a28==1))){ + a25 = 0; + a29 = 9; + a0 = 1; + return 23; + } else if(((a22==1)&&((((a14==9)&&((a19==1)&&(((!(a20==1)&&((((input==6)&&(a29==5))&&(a11==1))&&!(a24==1)))&&!(a25==1))&&!(a7==1))))&&(a28==1))&&(a0==1)))){ + a29 = 7; + a19 = 3; + return 24; + } else if(((((a22==1)&&((!(a0==1)&&((((((!(a25==1)&&(input==5))&&!(a20==1))&&(a28==1))&&(a14==8))&&!(a7==1))&&!(a11==1)))&&!(a24==1)))&&(a29==6))&&(a19==3))){ + a20 = 1; + a14 = 9; + a7 = 1; + a29 = 8; + a19 = 1; + return 23; + } else if(((((a20==1)&&(((a14==10)&&(((a19==3)&&((a29==8)&&(((a28==1)&&((input==2)&&(a7==1)))&&(a22==1))))&&(a25==1)))&&(a24==1)))&&(a0==1))&&(a11==1))){ + a19 = 2; + a7 = 0; + a20 = 0; + a25 = 0; + a0 = 0; + a29 = 5; + a14 = 8; + return 24; + } else if(((!(a25==1)&&(!(a0==1)&&((a20==1)&&((a28==1)&&(!(a7==1)&&(((a19==2)&&(((a14==9)&&(((a29==8)||(a29==9))&&(input==4)))&&(a24==1)))&&!(a11==1)))))))&&(a22==1))){ + a29 = 8; + a20 = 0; + a11 = 1; + a19 = 5; + a7 = 1; + return -1; + } else if(((a28==1)&&((a14==8)&&((a29==7)&&(((((a20==1)&&((!(a11==1)&&((a0==1)&&(!(a7==1)&&(input==2))))&&(a19==1)))&&(a24==1))&&(a25==1))&&(a22==1)))))){ + a0 = 0; + a29 = 5; + a24 = 0; + return 23; + } else if(((a11==1)&&((a22==1)&&((!(a7==1)&&(((a24==1)&&(((((((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))&&(input==4))&&(a20==1))&&(a25==1))&&!(a0==1)))&&(a28==1)))&&(a14==9))))){ + a14 = 8; + a24 = 0; + a11 = 0; + a19 = 1; + a0 = 1; + a20 = 0; + a29 = 6; + return -1; + } else if((((a29==6)&&((a22==1)&&(((a0==1)&&((a11==1)&&((a25==1)&&(((a14==8)&&((a28==1)&&((input==5)&&!(a20==1))))&&(a19==2)))))&&(a24==1))))&&(a7==1))){ + a19 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if((((a28==1)&&((!(a11==1)&&((a14==9)&&((a25==1)&&((!(a24==1)&&((a22==1)&&((a20==1)&&(((a29==8)||(a29==9))&&(input==4)))))&&!(a0==1)))))&&!(a7==1)))&&(a19==4))){ + a19 = 1; + a24 = 1; + a11 = 1; + a29 = 9; + a14 = 8; + return 24; + } else if(((a20==1)&&(((a22==1)&&((a28==1)&&(((a14==8)&&((!(a7==1)&&(!(a25==1)&&((a19==4)&&((input==5)&&((a29==9)||((a29==7)||(a29==8)))))))&&(a11==1)))&&(a24==1))))&&!(a0==1)))){ + a29 = 9; + a0 = 1; + a14 = 9; + a24 = 0; + a11 = 0; + a25 = 1; + return 24; + } else if((!(a24==1)&&((((a22==1)&&(((!(a11==1)&&((a14==9)&&((((input==5)&&!(a25==1))&&(a28==1))&&(a7==1))))&&(a29==8))&&(a20==1)))&&(a0==1))&&(a19==3)))){ + a24 = 1; + a19 = 2; + a14 = 8; + a20 = 0; + a11 = 1; + a0 = 0; + return 24; + } else if((!(a24==1)&&((((!(a25==1)&&((a0==1)&&((((a7==1)&&((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))&&(input==6)))&&(a20==1))&&(a14==9))))&&(a28==1))&&!(a11==1))&&(a22==1)))){ + a19 = 3; + a29 = 8; + a14 = 8; + a20 = 0; + return 23; + } else if(((a0==1)&&(!(a20==1)&&(((a25==1)&&(((a28==1)&&((a29==6)&&(!(a11==1)&&(((a22==1)&&((input==5)&&!(a7==1)))&&(a14==9)))))&&(a19==4)))&&(a24==1))))){ + a19 = 3; + a14 = 8; + a29 = 8; + a24 = 0; + a25 = 0; + return 23; + } else if(((!(a0==1)&&((a28==1)&&((a19==1)&&((a22==1)&&((a7==1)&&(!(a25==1)&&((((a24==1)&&(((a29==5)||(a29==6))&&(input==5)))&&!(a11==1))&&!(a20==1))))))))&&(a14==9))){ + a11 = 1; + a20 = 1; + a14 = 8; + a29 = 5; + a0 = 1; + a25 = 1; + return -1; + } else if(((((a28==1)&&((((((((a20==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==6)))&&!(a25==1))&&(a22==1))&&(a24==1))&&!(a0==1))&&(a19==2))&&(a7==1)))&&(a14==8))&&(a11==1))){ + a14 = 9; + a25 = 1; + a24 = 0; + a29 = 9; + a0 = 1; + a11 = 0; + return 23; + } else if(((a7==1)&&((((a14==9)&&((a24==1)&&(((((input==1)&&((((a19==5)&&((a25==1)&&(a29==9)))||(((a29==5)&&!(a25==1))&&(a19==1)))||((!(a25==1)&&(a29==6))&&(a19==1))))&&(a20==1))&&(a28==1))&&(a11==1))))&&(a0==1))&&(a22==1)))){ + a29 = 8; + a19 = 3; + a24 = 0; + a11 = 0; + a25 = 0; + a0 = 0; + a7 = 0; + return 23; + } else if(((a28==1)&&((a14==8)&&((a11==1)&&(!(a0==1)&&(((a24==1)&&(((input==4)&&(((a19==5)&&(((a7==1)&&!(a25==1))&&(a29==9)))||((a19==1)&&((!(a7==1)&&(a25==1))&&(a29==5)))))&&(a22==1)))&&(a20==1))))))){ + a0 = 1; + a19 = 2; + a7 = 1; + a24 = 0; + a14 = 9; + a11 = 0; + a29 = 8; + a25 = 0; + return 24; + } else if(((!(a25==1)&&((a28==1)&&(!(a11==1)&&((((((a0==1)&&((input==1)&&((((a19==3)&&(a29==8))||((a29==9)&&(a19==3)))||((a29==5)&&(a19==4)))))&&(a7==1))&&(a14==8))&&(a22==1))&&!(a24==1)))))&&(a20==1))){ + a7 = 0; + a14 = 9; + a19 = 3; + a11 = 1; + a29 = 7; + return 24; + } else if(((a24==1)&&((a0==1)&&(((a28==1)&&(!(a7==1)&&(((a20==1)&&((a22==1)&&((a25==1)&&((input==6)&&(((a29==5)&&(a19==5))||(((a29==8)&&(a19==4))||((a29==9)&&(a19==4))))))))&&(a14==8))))&&(a11==1))))){ + a20 = 0; + a29 = 7; + a7 = 1; + a19 = 2; + return 24; + } else if((!(a0==1)&&(!(a7==1)&&(!(a20==1)&&((((a19==2)&&(!(a25==1)&&((a28==1)&&((a22==1)&&((a24==1)&&((input==1)&&((a29==8)||((a29==6)||(a29==7)))))))))&&(a14==8))&&!(a11==1)))))){ + a20 = 1; + a14 = 9; + a7 = 1; + a25 = 1; + a19 = 1; + a29 = 6; + return 23; + } else if(((((a14==10)&&((a25==1)&&(!(a20==1)&&((a19==1)&&(!(a7==1)&&(((a24==1)&&((((a29==5)||(a29==6))&&(input==1))&&(a28==1)))&&(a11==1)))))))&&(a0==1))&&(a22==1))){ + a0 = 0; + a14 = 9; + a29 = 8; + a25 = 0; + a19 = 5; + return -1; + } else if((!(a11==1)&&((a28==1)&&((a22==1)&&(!(a24==1)&&((!(a20==1)&&((a7==1)&&((a0==1)&&((a14==8)&&(((input==4)&&((a29==7)||(a29==8)))&&(a25==1))))))&&(a19==4))))))){ + a19 = 3; + a20 = 1; + a7 = 0; + a29 = 7; + a24 = 1; + a14 = 9; + return 24; + } else if((!(a25==1)&&((a28==1)&&(((((a24==1)&&((!(a11==1)&&(!(a20==1)&&((input==1)&&((((a19==3)&&(a29==8))||((a19==3)&&(a29==9)))||((a29==5)&&(a19==4))))))&&!(a7==1)))&&(a0==1))&&(a22==1))&&(a14==8))))){ + a19 = 3; + a29 = 5; + a14 = 9; + a11 = 1; + return 24; + } else if((((((((a0==1)&&(((a29==9)&&(((a11==1)&&((a24==1)&&(input==3)))&&(a22==1)))&&(a25==1)))&&(a14==10))&&!(a20==1))&&(a7==1))&&(a19==4))&&(a28==1))){ + a0 = 0; + a29 = 5; + a19 = 5; + a14 = 8; + return 21; + } else if((!(a7==1)&&((a24==1)&&(!(a20==1)&&(((a25==1)&&((((((input==6)&&(((a19==4)&&(a29==5))||(((a19==3)&&(a29==8))||((a19==3)&&(a29==9)))))&&(a28==1))&&(a22==1))&&(a11==1))&&!(a0==1)))&&(a14==9)))))){ + a0 = 1; + a7 = 1; + a20 = 1; + a29 = 5; + a19 = 1; + a14 = 8; + return -1; + } else if(((a11==1)&&((a25==1)&&(((((((a22==1)&&(((((a29==8)||((a29==6)||(a29==7)))&&(input==6))&&(a7==1))&&(a19==5)))&&(a24==1))&&!(a20==1))&&!(a0==1))&&(a28==1))&&(a14==9))))){ + a20 = 1; + a11 = 0; + a7 = 0; + a24 = 0; + a29 = 6; + a19 = 2; + a0 = 1; + return -1; + } else if(((a28==1)&&((!(a0==1)&&((!(a11==1)&&((((a25==1)&&((a22==1)&&((a29==7)&&((input==2)&&!(a7==1)))))&&(a14==8))&&(a19==4)))&&(a24==1)))&&(a20==1)))){ + a19 = 1; + a7 = 1; + a11 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if(((a25==1)&&((!(a20==1)&&(((a19==2)&&(((!(a11==1)&&((((input==2)&&((a29==7)||(a29==8)))&&(a14==8))&&(a28==1)))&&(a0==1))&&(a22==1)))&&(a7==1)))&&(a24==1)))){ + a0 = 0; + a7 = 0; + a29 = 7; + a19 = 5; + a24 = 0; + return 23; + } else if((!(a25==1)&&((((a11==1)&&(!(a24==1)&&((a22==1)&&(!(a7==1)&&((((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))&&(input==6))&&!(a0==1))&&!(a20==1))))))&&(a28==1))&&(a14==9)))){ + a29 = 5; + a19 = 4; + return -1; + } else if(((a14==9)&&(((a22==1)&&(((((a28==1)&&(!(a20==1)&&(!(a24==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==5))&&(a25==1)))))&&!(a7==1))&&(a19==1))&&(a0==1)))&&!(a11==1)))){ + a7 = 1; + a20 = 1; + a24 = 1; + a11 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if((((((a14==9)&&(((a24==1)&&(((((a22==1)&&(((a29==5)||(a29==6))&&(input==5)))&&(a20==1))&&!(a0==1))&&(a11==1)))&&(a28==1)))&&(a25==1))&&(a7==1))&&(a19==4))){ + a29 = 6; + a14 = 8; + a7 = 0; + a19 = 2; + a24 = 0; + a20 = 0; + return -1; + } else if(((a29==5)&&((a28==1)&&((!(a25==1)&&(((((a0==1)&&(!(a7==1)&&(((a22==1)&&(input==1))&&(a19==2))))&&(a24==1))&&(a20==1))&&!(a11==1)))&&(a14==8))))){ + a7 = 1; + a20 = 0; + a0 = 0; + a25 = 1; + a24 = 0; + a29 = 9; + a19 = 5; + return 21; + } else if(((((a19==2)&&(!(a25==1)&&((a11==1)&&((((((a7==1)&&((input==6)&&((a29==8)||(a29==9))))&&(a24==1))&&(a0==1))&&(a22==1))&&!(a20==1)))))&&(a28==1))&&(a14==9))){ + a0 = 0; + a29 = 5; + a19 = 4; + a20 = 1; + a14 = 8; + a7 = 0; + a25 = 1; + return 21; + } else if(((a24==1)&&(((a11==1)&&(((((a14==10)&&((a29==8)&&((a22==1)&&((a28==1)&&((a25==1)&&(input==3))))))&&(a0==1))&&!(a20==1))&&(a19==3)))&&!(a7==1)))){ + a14 = 8; + a20 = 1; + a7 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((a28==1)&&((a0==1)&&(((((((a14==9)&&(!(a20==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==6))&&(a7==1))))&&(a11==1))&&(a19==5))&&(a22==1))&&(a24==1))&&(a25==1))))){ + a14 = 8; + a29 = 9; + a7 = 0; + a19 = 3; + a0 = 0; + return 21; + } else if((((a14==9)&&(((a11==1)&&(!(a24==1)&&((a19==5)&&((((((input==3)&&((a29==6)||(a29==7)))&&(a22==1))&&!(a25==1))&&(a0==1))&&(a28==1)))))&&!(a7==1)))&&!(a20==1))){ + a24 = 1; + a25 = 1; + a29 = 5; + a7 = 1; + a19 = 1; + a14 = 8; + a20 = 1; + return -1; + } else if(((a24==1)&&((a11==1)&&(((a14==10)&&(((!(a25==1)&&((a29==9)&&(((a28==1)&&((a22==1)&&(input==5)))&&(a0==1))))&&!(a20==1))&&(a19==4)))&&(a7==1))))){ + a20 = 1; + a14 = 9; + a11 = 0; + a29 = 8; + a25 = 1; + a19 = 3; + a7 = 0; + return 23; + } else if(((a22==1)&&((((!(a11==1)&&((((a25==1)&&((a28==1)&&((a20==1)&&((input==1)&&((a29==8)||(a29==9))))))&&(a14==8))&&(a7==1)))&&!(a0==1))&&(a19==4))&&(a24==1)))){ + a20 = 0; + a0 = 1; + a7 = 0; + a24 = 0; + a25 = 0; + a29 = 7; + return -1; + } else if((((a20==1)&&(((a14==9)&&((a28==1)&&(((a19==2)&&((a24==1)&&((a0==1)&&((((a29==5)||(a29==6))&&(input==5))&&(a25==1)))))&&!(a7==1))))&&!(a11==1)))&&(a22==1))){ + a14 = 8; + a29 = 5; + a0 = 0; + a24 = 0; + a19 = 3; + a7 = 1; + return -1; + } else if(((a29==8)&&((a14==9)&&((((((!(a24==1)&&((a22==1)&&((!(a0==1)&&(input==3))&&!(a7==1))))&&!(a11==1))&&!(a25==1))&&(a19==3))&&(a28==1))&&!(a20==1))))){ + a14 = 8; + a11 = 1; + a24 = 1; + a19 = 1; + a25 = 1; + a20 = 1; + a29 = 5; + a7 = 1; + a0 = 1; + return -1; + } else if(((!(a20==1)&&((a22==1)&&(!(a0==1)&&((((a24==1)&&((a19==5)&&((((input==4)&&((a29==5)||(a29==6)))&&!(a11==1))&&!(a25==1))))&&(a28==1))&&!(a7==1)))))&&(a14==8))){ + a19 = 3; + a25 = 1; + a29 = 5; + a20 = 1; + a7 = 1; + return -1; + } else if(((a29==9)&&((a28==1)&&(((((a14==8)&&(!(a24==1)&&(!(a20==1)&&((!(a25==1)&&((input==6)&&(a22==1)))&&(a19==2)))))&&!(a11==1))&&(a0==1))&&(a7==1))))){ + a24 = 1; + a29 = 6; + a25 = 1; + a14 = 9; + return 23; + } else if((!(a0==1)&&((a7==1)&&(((a22==1)&&((((a11==1)&&(!(a24==1)&&((a20==1)&&((a14==8)&&(((a29==7)||(a29==8))&&(input==6))))))&&(a28==1))&&(a25==1)))&&(a19==1))))){ + a7 = 0; + a29 = 5; + a19 = 3; + a24 = 1; + return 23; + } else if(((a19==3)&&(((((a22==1)&&((a25==1)&&((a11==1)&&((!(a7==1)&&((a14==8)&&((input==2)&&((a29==9)||((a29==7)||(a29==8))))))&&(a20==1)))))&&!(a0==1))&&!(a24==1))&&(a28==1)))){ + a19 = 1; + a7 = 1; + a29 = 5; + a0 = 1; + a24 = 1; + return -1; + } else if(((((a11==1)&&((((((a19==1)&&(((a25==1)&&(((a20==1)&&(a7==1))&&!(a24==1)))&&(a29==6)))||(((a19==5)&&((((!(a7==1)&&!(a20==1))&&(a24==1))&&!(a25==1))&&(a29==9)))||((a19==1)&&(((a25==1)&&(!(a24==1)&&((a7==1)&&(a20==1))))&&(a29==5)))))&&(input==2))&&(a28==1))&&(a22==1)))&&(a0==1))&&(a14==8))){ + a24 = 0; + a20 = 1; + a19 = 4; + a25 = 0; + a11 = 0; + a7 = 0; + a29 = 5; + return 23; + } else if((((((a25==1)&&(((a14==8)&&((a20==1)&&((((input==6)&&((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))||((a19==5)&&(a29==6))))&&!(a24==1))&&(a28==1))))&&(a7==1)))&&(a22==1))&&!(a11==1))&&!(a0==1))){ + a7 = 0; + a25 = 0; + a24 = 1; + a29 = 7; + a11 = 1; + a19 = 3; + return 21; + } else if((((a14==9)&&((a25==1)&&((a20==1)&&(!(a0==1)&&((a28==1)&&((((a24==1)&&((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))&&(input==5)))&&(a7==1))&&(a22==1)))))))&&!(a11==1))){ + a20 = 0; + a19 = 2; + a7 = 0; + a24 = 0; + a14 = 8; + a25 = 0; + a29 = 7; + return 21; + } else if(((((((a20==1)&&((a28==1)&&(!(a24==1)&&((a14==9)&&((((!(a25==1)&&(a29==5))&&(a19==1))||((((a29==8)&&(a25==1))&&(a19==5))||(((a29==9)&&(a25==1))&&(a19==5))))&&(input==1))))))&&(a22==1))&&!(a0==1))&&!(a7==1))&&!(a11==1))){ + a14 = 8; + a7 = 1; + a25 = 1; + a0 = 1; + a11 = 1; + a29 = 5; + a19 = 1; + a24 = 1; + return -1; + } else if(((a14==9)&&(((((a24==1)&&((!(a0==1)&&(((!(a25==1)&&((input==4)&&((a29==7)||(a29==8))))&&(a19==4))&&(a28==1)))&&!(a11==1)))&&!(a7==1))&&(a20==1))&&(a22==1)))){ + a0 = 1; + a24 = 0; + a11 = 1; + a7 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if((((((a24==1)&&((a22==1)&&(((!(a7==1)&&((a28==1)&&((a0==1)&&((input==5)&&((a29==7)||((a29==5)||(a29==6)))))))&&(a25==1))&&!(a20==1))))&&!(a11==1))&&(a19==3))&&(a14==9))){ + a19 = 1; + a7 = 1; + a20 = 1; + a29 = 5; + a11 = 1; + a14 = 8; + return -1; + } else if(((a28==1)&&(!(a7==1)&&((((a14==9)&&((((!(a20==1)&&((((a19==2)&&(a29==5))||(((a29==8)&&(a19==1))||((a29==9)&&(a19==1))))&&(input==6)))&&!(a11==1))&&(a0==1))&&!(a25==1)))&&!(a24==1))&&(a22==1))))){ + a0 = 0; + a14 = 8; + a7 = 1; + a11 = 1; + a29 = 7; + a19 = 2; + a24 = 1; + return 24; + } else if(((a14==9)&&((!(a0==1)&&((a19==1)&&((((a28==1)&&((((((a29==5)||(a29==6))&&(input==2))&&(a7==1))&&!(a20==1))&&(a22==1)))&&(a11==1))&&(a24==1))))&&(a25==1)))){ + a7 = 0; + a20 = 1; + a25 = 0; + a19 = 2; + a29 = 7; + a14 = 8; + return 23; + } else if((((a14==8)&&((a22==1)&&(!(a7==1)&&(!(a25==1)&&(!(a24==1)&&((a20==1)&&((((input==4)&&(((a29==5)&&(a19==3))||(((a29==8)&&(a19==2))||((a19==2)&&(a29==9)))))&&!(a0==1))&&!(a11==1))))))))&&(a28==1))){ + a20 = 0; + a14 = 9; + a25 = 1; + a24 = 1; + a7 = 1; + a19 = 2; + a29 = 6; + return 24; + } else if(((a14==9)&&((a19==5)&&(((((!(a11==1)&&((a28==1)&&((a20==1)&&(!(a0==1)&&((input==6)&&((a29==7)||(a29==8)))))))&&!(a24==1))&&(a7==1))&&!(a25==1))&&(a22==1))))){ + a20 = 0; + a29 = 6; + a19 = 3; + a14 = 8; + a25 = 1; + return 24; + } else if(((a14==8)&&(((!(a11==1)&&(((((((a29==5)&&(((a7==1)&&!(a20==1))&&(a25==1)))&&(a19==1))||((((!(a25==1)&&((a20==1)&&!(a7==1)))&&(a29==8))&&(a19==5))||((a19==5)&&((a29==9)&&(!(a25==1)&&(!(a7==1)&&(a20==1)))))))&&(input==6))&&!(a0==1))&&(a28==1)))&&!(a24==1))&&(a22==1)))){ + a19 = 3; + a25 = 0; + a7 = 1; + a20 = 0; + a29 = 7; + a0 = 1; + return 23; + } else if(((!(a20==1)&&((a29==7)&&(((((a7==1)&&((a14==8)&&((a28==1)&&(((a19==4)&&(input==6))&&(a22==1)))))&&!(a0==1))&&!(a25==1))&&!(a24==1))))&&(a11==1))){ + a19 = 1; + a0 = 1; + a25 = 1; + a20 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if((((a20==1)&&((((((a22==1)&&((!(a0==1)&&(((input==5)&&((a29==9)||((a29==7)||(a29==8))))&&(a28==1)))&&(a24==1)))&&!(a7==1))&&(a25==1))&&(a14==9))&&(a11==1)))&&(a19==3))){ + a14 = 8; + a24 = 0; + a19 = 5; + a29 = 8; + a11 = 0; + a25 = 0; + a20 = 0; + return -1; + } else if(((a14==9)&&(!(a7==1)&&((((!(a20==1)&&(((a19==4)&&((a29==9)&&(!(a11==1)&&((input==1)&&(a25==1)))))&&(a0==1)))&&(a22==1))&&(a28==1))&&!(a24==1))))){ + a7 = 1; + a14 = 8; + a0 = 0; + a11 = 1; + a20 = 1; + a29 = 5; + a19 = 2; + a24 = 1; + return 23; + } else if(((!(a24==1)&&(((((a28==1)&&(((((a19==1)&&((input==4)&&((a29==5)||(a29==6))))&&!(a20==1))&&(a22==1))&&(a25==1)))&&(a0==1))&&(a11==1))&&(a14==8)))&&(a7==1))){ + a0 = 0; + a7 = 0; + a20 = 1; + a29 = 9; + a25 = 0; + a19 = 3; + return 23; + } else if(((((a14==8)&&((((a7==1)&&(!(a0==1)&&((((input==1)&&(((a19==3)&&(a29==9))||((a19==4)&&(a29==5))))&&(a11==1))&&(a22==1))))&&!(a25==1))&&!(a20==1)))&&(a28==1))&&(a24==1))){ + a24 = 0; + a29 = 8; + a7 = 0; + a19 = 2; + a11 = 0; + a0 = 1; + return 23; + } else if(((((a14==9)&&((((!(a7==1)&&(((a0==1)&&(((input==5)&&((a29==6)||(a29==7)))&&(a28==1)))&&(a24==1)))&&!(a20==1))&&(a11==1))&&(a25==1)))&&(a19==4))&&(a22==1))){ + a20 = 1; + a19 = 1; + a14 = 8; + a7 = 1; + a29 = 5; + return -1; + } else if(((!(a25==1)&&((((a22==1)&&((((((((a29==7)||((a29==5)||(a29==6)))&&(input==5))&&(a0==1))&&(a24==1))&&(a28==1))&&(a14==8))&&!(a20==1)))&&!(a11==1))&&(a19==2)))&&!(a7==1))){ + a11 = 1; + a25 = 1; + a14 = 9; + a29 = 5; + a19 = 4; + return 24; + } else if(((((a14==9)&&(((a11==1)&&((a22==1)&&(((!(a7==1)&&((input==5)&&((((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))||((a19==4)&&(a29==6)))))&&!(a24==1))&&(a28==1))))&&!(a0==1)))&&(a20==1))&&(a25==1))){ + a29 = 7; + a19 = 3; + a25 = 0; + a14 = 8; + a11 = 0; + a24 = 1; + return 24; + } else if((((!(a7==1)&&((((a22==1)&&((a19==5)&&(!(a20==1)&&((a14==9)&&(!(a0==1)&&(!(a24==1)&&(input==3)))))))&&(a25==1))&&(a29==9)))&&!(a11==1))&&(a28==1))){ + a7 = 1; + a11 = 1; + a25 = 0; + a14 = 8; + a24 = 1; + a20 = 1; + a29 = 6; + return 24; + } else if((((a20==1)&&(((a0==1)&&(((((a22==1)&&((((input==6)&&((a29==9)||((a29==7)||(a29==8))))&&(a25==1))&&(a19==1)))&&!(a24==1))&&(a11==1))&&(a28==1)))&&(a14==9)))&&!(a7==1))){ + a19 = 3; + a20 = 0; + a29 = 9; + a24 = 1; + return 21; + } else if(((a0==1)&&((!(a11==1)&&(((!(a20==1)&&(((((a25==1)&&((input==6)&&(((a29==5)||(a29==6))||(a29==7))))&&!(a7==1))&&(a28==1))&&(a24==1)))&&(a19==4))&&(a14==8)))&&(a22==1)))){ + a19 = 3; + a29 = 5; + a25 = 0; + a14 = 9; + a7 = 1; + a11 = 1; + return 24; + } else if(((a7==1)&&(!(a25==1)&&(((a14==9)&&((((a11==1)&&(((a28==1)&&((((a29==6)||(a29==7))&&(input==4))&&!(a20==1)))&&!(a24==1)))&&(a22==1))&&(a19==5)))&&(a0==1))))){ + a20 = 1; + a14 = 8; + a19 = 1; + a24 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if(((a19==3)&&((a7==1)&&(!(a11==1)&&(((a24==1)&&(((a20==1)&&(((((a28==1)&&(input==2))&&(a22==1))&&(a14==9))&&(a29==5)))&&(a25==1)))&&(a0==1)))))){ + a19 = 1; + a11 = 1; + a14 = 8; + return -1; + } else if((!(a7==1)&&(((((((((!(a24==1)&&((input==2)&&(a28==1)))&&(a20==1))&&(a11==1))&&(a29==7))&&(a22==1))&&!(a25==1))&&!(a0==1))&&(a14==8))&&(a19==4)))){ + a14 = 9; + a24 = 1; + a29 = 5; + a19 = 3; + return 24; + } else if((((a28==1)&&((a25==1)&&((a14==9)&&((a24==1)&&(((a20==1)&&((!(a11==1)&&((a19==2)&&((input==1)&&(a0==1))))&&(a7==1)))&&(a29==7))))))&&(a22==1))){ + a14 = 8; + a11 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((a0==1)&&((a28==1)&&(((a7==1)&&((a19==4)&&((((a22==1)&&((a14==9)&&((a20==1)&&(((a29==8)||(a29==9))&&(input==2)))))&&(a24==1))&&(a25==1))))&&!(a11==1))))){ + a29 = 9; + a14 = 8; + a24 = 0; + a19 = 1; + a7 = 0; + a20 = 0; + return 24; + } else if((!(a11==1)&&((a14==8)&&((((a0==1)&&(((a19==3)&&((a28==1)&&((((input==2)&&((a29==8)||(a29==9)))&&!(a24==1))&&(a22==1))))&&!(a20==1)))&&(a7==1))&&(a25==1))))){ + a19 = 1; + a0 = 0; + a29 = 7; + a11 = 1; + a24 = 1; + a20 = 1; + return 21; + } else if(((a0==1)&&((a19==5)&&((a28==1)&&(!(a20==1)&&((a24==1)&&((!(a11==1)&&(!(a25==1)&&((!(a7==1)&&((input==4)&&((a29==6)||(a29==7))))&&(a14==9))))&&(a22==1)))))))){ + a19 = 1; + a29 = 5; + a11 = 1; + a14 = 8; + a20 = 1; + a7 = 1; + a25 = 1; + return -1; + } else if(((((a19==1)&&((!(a20==1)&&((a28==1)&&((a0==1)&&((((a22==1)&&(((a29==5)||(a29==6))&&(input==1)))&&(a24==1))&&(a25==1)))))&&!(a11==1)))&&(a14==9))&&(a7==1))){ + a7 = 0; + a19 = 5; + a24 = 0; + a14 = 8; + a25 = 0; + a0 = 0; + a29 = 9; + return -1; + } else if((((a14==9)&&((a25==1)&&((!(a11==1)&&((((a20==1)&&((a28==1)&&((a19==2)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==2)))))&&!(a0==1))&&!(a7==1)))&&(a24==1))))&&(a22==1))){ + a0 = 1; + a11 = 1; + a29 = 6; + a19 = 3; + a24 = 0; + return -1; + } else if((((((((a14==9)&&((a25==1)&&(((((a20==1)&&(input==2))&&(a11==1))&&(a29==5))&&(a24==1))))&&(a28==1))&&(a22==1))&&(a19==2))&&(a0==1))&&(a7==1))){ + a29 = 7; + a14 = 8; + a0 = 0; + a11 = 0; + a19 = 5; + return -1; + } else if((((a19==1)&&((!(a11==1)&&(((!(a0==1)&&(!(a24==1)&&((((input==2)&&(a20==1))&&(a7==1))&&(a14==8))))&&(a28==1))&&!(a25==1)))&&(a22==1)))&&(a29==5))){ + a29 = 7; + a7 = 0; + a19 = 3; + a20 = 0; + a0 = 1; + return 23; + } else if(((a24==1)&&((a19==1)&&((((a7==1)&&(((a28==1)&&(((a14==9)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==5))&&(a22==1)))&&(a11==1)))&&!(a20==1)))&&(a25==1))&&!(a0==1))))){ + a25 = 0; + a14 = 8; + a29 = 8; + a20 = 1; + a19 = 4; + return 23; + } else if(((a11==1)&&((((((((((a19==3)&&((input==1)&&((a29==7)||(a29==8))))&&(a25==1))&&(a0==1))&&(a22==1))&&!(a7==1))&&(a24==1))&&(a20==1))&&(a28==1))&&(a14==10)))){ + a19 = 2; + a29 = 9; + return -1; + } else if((((a0==1)&&((a20==1)&&((a14==9)&&(!(a11==1)&&((a28==1)&&(((((input==1)&&(((a29==6)&&(a19==3))||(((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))))&&(a24==1))&&!(a7==1))&&(a22==1)))))))&&!(a25==1))){ + a20 = 0; + a24 = 0; + a11 = 1; + a29 = 6; + a19 = 1; + return 21; + } else if((!(a24==1)&&((a14==8)&&(((!(a20==1)&&(!(a25==1)&&((a19==1)&&((!(a0==1)&&((a29==5)&&((input==1)&&(a22==1))))&&(a28==1)))))&&!(a11==1))&&(a7==1))))){ + a11 = 1; + a20 = 1; + a25 = 1; + a24 = 1; + a29 = 8; + a19 = 5; + return 24; + } else if((((!(a20==1)&&((a28==1)&&((a24==1)&&((a14==9)&&((a22==1)&&(!(a7==1)&&((input==3)&&(((!(a25==1)&&(a29==6))&&(a19==1))||(((a19==5)&&((a25==1)&&(a29==9)))||((a19==1)&&((a29==5)&&!(a25==1))))))))))))&&!(a0==1))&&!(a11==1))){ + a19 = 2; + a14 = 8; + a29 = 5; + a11 = 1; + a25 = 1; + a20 = 1; + a7 = 1; + return 23; + } else if(((a22==1)&&(((a28==1)&&((a25==1)&&(!(a20==1)&&((a7==1)&&(((((input==1)&&(((a19==3)&&(a29==6))||(((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))))&&(a0==1))&&(a14==9))&&!(a11==1))))))&&(a24==1)))){ + a29 = 8; + a14 = 8; + a7 = 0; + a0 = 0; + a19 = 4; + a11 = 1; + a20 = 1; + a25 = 0; + return -1; + } else if(((((((a28==1)&&((a14==9)&&((((a19==1)&&(((a20==1)&&(input==1))&&(a11==1)))&&(a0==1))&&(a22==1))))&&(a24==1))&&(a25==1))&&(a29==9))&&(a7==1))){ + a29 = 7; + a19 = 4; + a0 = 0; + a7 = 0; + a24 = 0; + a25 = 0; + a14 = 8; + return -1; + } else if((((a14==9)&&((((a28==1)&&((a7==1)&&(((!(a24==1)&&((input==6)&&((((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))||((a19==2)&&(a29==6)))))&&!(a11==1))&&!(a20==1))))&&!(a25==1))&&(a22==1)))&&!(a0==1))){ + a19 = 5; + a0 = 1; + a29 = 8; + return -1; + } else if(((a28==1)&&((((a14==8)&&((a11==1)&&((((a0==1)&&((((input==5)&&((a29==6)||(a29==7)))&&!(a7==1))&&!(a25==1)))&&!(a20==1))&&(a22==1))))&&(a24==1))&&(a19==2)))){ + a19 = 1; + a7 = 1; + a20 = 1; + a24 = 0; + a29 = 5; + a11 = 0; + return 24; + } else if(((((((a7==1)&&(((a20==1)&&(((a28==1)&&(((input==4)&&(((a29==7)||(a29==8))||(a29==9)))&&(a24==1)))&&(a19==4)))&&(a25==1)))&&(a11==1))&&(a22==1))&&!(a0==1))&&(a14==9))){ + a11 = 0; + a0 = 1; + a25 = 0; + a19 = 5; + a29 = 9; + a7 = 0; + return -1; + } else if((((a11==1)&&((((a20==1)&&(((((a19==1)&&(!(a25==1)&&((input==1)&&((a29==6)||(a29==7)))))&&(a0==1))&&(a14==8))&&!(a24==1)))&&(a22==1))&&(a28==1)))&&!(a7==1))){ + a20 = 0; + a11 = 0; + a7 = 1; + a29 = 7; + a19 = 3; + return 23; + } else if((!(a24==1)&&((a14==8)&&((a0==1)&&((a25==1)&&((a7==1)&&((a28==1)&&(!(a20==1)&&(((a22==1)&&((((a29==6)&&(a19==2))||(((a29==9)&&(a19==1))||((a29==5)&&(a19==2))))&&(input==6)))&&!(a11==1)))))))))){ + a29 = 5; + a24 = 1; + a11 = 1; + a20 = 1; + a19 = 1; + return -1; + } else if(((a25==1)&&((a20==1)&&(((((a19==5)&&(((((a11==1)&&((input==5)&&((a29==7)||((a29==5)||(a29==6)))))&&(a7==1))&&(a22==1))&&(a0==1)))&&!(a24==1))&&(a28==1))&&(a14==8))))){ + a25 = 0; + a11 = 0; + a29 = 5; + a19 = 3; + a20 = 0; + a7 = 0; + return 23; + } else if((((a0==1)&&((a20==1)&&(!(a11==1)&&((a14==8)&&((a22==1)&&(!(a24==1)&&((a25==1)&&(((((a19==5)&&(a29==6))||(((a19==4)&&(a29==9))||((a29==5)&&(a19==5))))&&(input==6))&&(a7==1)))))))))&&(a28==1))){ + a25 = 0; + a11 = 1; + a14 = 9; + a29 = 9; + a19 = 5; + return 21; + } else if((((((((a28==1)&&((a14==8)&&((a22==1)&&(((input==3)&&((((a29==8)&&(a19==3))||((a19==3)&&(a29==9)))||((a19==4)&&(a29==5))))&&!(a24==1)))))&&!(a11==1))&&(a20==1))&&(a25==1))&&!(a7==1))&&(a0==1))){ + a24 = 1; + a11 = 1; + a0 = 0; + a19 = 3; + a25 = 0; + a29 = 8; + return 21; + } else if(((a14==9)&&(((((a22==1)&&((((a28==1)&&((!(a0==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==4)))&&(a7==1)))&&(a24==1))&&!(a11==1)))&&(a19==3))&&(a20==1))&&(a25==1)))){ + a11 = 1; + a29 = 5; + a14 = 8; + a19 = 5; + return 23; + } else if(((((a22==1)&&((a28==1)&&((a7==1)&&(((a24==1)&&((!(a20==1)&&((a0==1)&&((a19==1)&&(input==6))))&&(a14==9)))&&!(a25==1)))))&&(a29==5))&&(a11==1))){ + a11 = 0; + a19 = 5; + a14 = 8; + a0 = 0; + a29 = 8; + return 21; + } else if((!(a24==1)&&((!(a11==1)&&(((a22==1)&&((a0==1)&&(!(a20==1)&&(!(a7==1)&&(((a28==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==1)))&&(a19==3))))))&&!(a25==1)))&&(a14==9)))){ + a29 = 5; + a24 = 1; + a20 = 1; + a11 = 1; + a7 = 1; + a19 = 5; + a25 = 1; + return 23; + } else if(((a14==8)&&((a7==1)&&(!(a24==1)&&((!(a25==1)&&((a28==1)&&((a19==3)&&(((a20==1)&&(((input==2)&&((a29==8)||(a29==9)))&&(a22==1)))&&!(a0==1)))))&&(a11==1)))))){ + a29 = 9; + a24 = 1; + a25 = 1; + a20 = 0; + return 24; + } else if(((a20==1)&&((((a25==1)&&((a11==1)&&(!(a0==1)&&((((a7==1)&&((a22==1)&&((input==1)&&((a29==5)||(a29==6)))))&&(a28==1))&&(a24==1)))))&&(a19==1))&&(a14==9)))){ + a29 = 5; + a0 = 1; + a19 = 2; + a24 = 0; + a25 = 0; + return 23; + } else if(((!(a25==1)&&((a19==1)&&((a14==9)&&((a0==1)&&((a20==1)&&(((a22==1)&&((((input==4)&&((a29==8)||((a29==6)||(a29==7))))&&(a7==1))&&(a24==1)))&&(a28==1)))))))&&!(a11==1))){ + a25 = 1; + a20 = 0; + a11 = 1; + a29 = 6; + return 21; + } else if((((a25==1)&&((a19==4)&&((a22==1)&&((a11==1)&&(!(a7==1)&&((((((input==1)&&(((a29==5)||(a29==6))||(a29==7)))&&(a20==1))&&!(a24==1))&&(a14==9))&&(a0==1)))))))&&(a28==1))){ + a24 = 1; + a19 = 1; + a29 = 5; + a14 = 8; + a7 = 1; + return -1; + } else if((!(a11==1)&&((!(a20==1)&&(((a22==1)&&(((((((input==3)&&(a25==1))&&(a14==8))&&(a24==1))&&(a19==2))&&!(a7==1))&&(a29==5)))&&!(a0==1)))&&(a28==1)))){ + a29 = 7; + a25 = 0; + a11 = 1; + a20 = 1; + a24 = 0; + return -1; + } else if(((a19==2)&&(((((a25==1)&&(((a28==1)&&((a24==1)&&((a22==1)&&(!(a11==1)&&((input==3)&&!(a7==1))))))&&!(a20==1)))&&(a29==5))&&(a14==9))&&(a0==1)))){ + a7 = 1; + a20 = 1; + a11 = 1; + a19 = 1; + a14 = 8; + return -1; + } else if(((a19==1)&&(((a14==8)&&((a22==1)&&((!(a7==1)&&((((a28==1)&&(!(a24==1)&&((input==3)&&(a29==6))))&&(a11==1))&&!(a25==1)))&&(a20==1))))&&!(a0==1)))){ + a20 = 0; + a29 = 8; + a7 = 1; + a19 = 3; + a25 = 1; + a24 = 1; + return 24; + } else if((!(a25==1)&&((a20==1)&&(((a14==8)&&((a22==1)&&(!(a0==1)&&((a28==1)&&((a11==1)&&((a7==1)&&(((input==2)&&((a29==7)||((a29==5)||(a29==6))))&&!(a24==1))))))))&&(a19==1))))){ + a24 = 1; + a20 = 0; + a19 = 5; + a25 = 1; + a7 = 0; + a29 = 6; + return 23; + } else if((((!(a0==1)&&((a22==1)&&(((a28==1)&&((a19==3)&&(!(a24==1)&&(((a20==1)&&((input==4)&&(((a29==7)||(a29==8))||(a29==9))))&&!(a7==1)))))&&(a14==8))))&&(a25==1))&&(a11==1))){ + a24 = 1; + a29 = 7; + a25 = 0; + a7 = 1; + return 24; + } else if(((((a24==1)&&(((a28==1)&&((!(a7==1)&&((((a22==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==1)))&&(a14==8))&&!(a25==1)))&&!(a0==1)))&&(a19==3)))&&!(a20==1))&&!(a11==1))){ + a19 = 4; + a29 = 6; + a24 = 0; + a20 = 1; + a11 = 1; + return -1; + } else if((((((a28==1)&&(((a29==5)&&(!(a7==1)&&(((a14==9)&&((a24==1)&&((input==3)&&(a19==3))))&&(a11==1))))&&(a20==1)))&&!(a0==1))&&(a22==1))&&!(a25==1))){ + a11 = 0; + a0 = 1; + a7 = 1; + a24 = 0; + return -1; + } else if(((a7==1)&&(((((a29==8)&&(((!(a0==1)&&((((input==6)&&(a22==1))&&!(a25==1))&&(a14==9)))&&(a28==1))&&(a19==1)))&&!(a24==1))&&(a20==1))&&(a11==1)))){ + a29 = 9; + a19 = 2; + a0 = 1; + a7 = 0; + return 21; + } else if(((!(a11==1)&&((a19==5)&&(((a28==1)&&(((a0==1)&&((!(a20==1)&&((((a29==7)||(a29==8))&&(input==5))&&!(a24==1)))&&(a14==8)))&&(a22==1)))&&!(a7==1))))&&(a25==1))){ + a24 = 1; + a14 = 9; + a29 = 7; + a19 = 1; + return 23; + } else if(((a22==1)&&((a24==1)&&((((a29==7)&&((a25==1)&&((!(a0==1)&&((a28==1)&&((a19==5)&&((a14==9)&&(input==3)))))&&(a20==1))))&&!(a11==1))&&(a7==1))))){ + a0 = 1; + a19 = 1; + a14 = 8; + a29 = 5; + a11 = 1; + return -1; + } else if((!(a7==1)&&(((((a25==1)&&((!(a24==1)&&((a29==5)&&((((input==2)&&(a28==1))&&(a19==1))&&!(a11==1))))&&!(a0==1)))&&(a22==1))&&!(a20==1))&&(a14==8)))){ + a25 = 0; + a29 = 7; + a24 = 1; + return -1; + } else if((!(a11==1)&&((a25==1)&&((a22==1)&&(((!(a20==1)&&((!(a7==1)&&((a28==1)&&((a19==4)&&((input==5)&&((a29==7)||((a29==5)||(a29==6)))))))&&(a0==1)))&&(a24==1))&&(a14==8)))))){ + a29 = 9; + a20 = 1; + a19 = 2; + a0 = 0; + a11 = 1; + return 24; + } else if((!(a25==1)&&((a19==5)&&((a22==1)&&((!(a0==1)&&((!(a24==1)&&(((a28==1)&&(((input==2)&&((a29==5)||(a29==6)))&&(a20==1)))&&(a14==8)))&&(a7==1)))&&(a11==1)))))){ + a25 = 1; + a0 = 1; + a29 = 5; + a24 = 1; + a19 = 1; + return -1; + } else if(((((((!(a0==1)&&((a22==1)&&(!(a25==1)&&((a14==9)&&((input==3)&&(((a29==9)&&(a19==2))||((a19==3)&&(a29==5))))))))&&(a24==1))&&(a20==1))&&!(a11==1))&&(a28==1))&&(a7==1))){ + a14 = 8; + a11 = 1; + a24 = 0; + a25 = 1; + a29 = 6; + a20 = 0; + a19 = 3; + return 21; + } else if(((((a19==5)&&((a0==1)&&((a24==1)&&(((a7==1)&&(((((input==5)&&(a14==8))&&(a28==1))&&(a29==9))&&!(a25==1)))&&(a22==1)))))&&!(a20==1))&&(a11==1))){ + a19 = 2; + a20 = 1; + a29 = 6; + a7 = 0; + a25 = 1; + a11 = 0; + return 23; + } else if((((a28==1)&&(((a20==1)&&((a25==1)&&((a22==1)&&(((!(a7==1)&&((((a29==8)||(a29==9))&&(input==2))&&(a14==9)))&&!(a11==1))&&(a19==2)))))&&(a0==1)))&&!(a24==1))){ + a0 = 0; + a7 = 1; + a14 = 8; + a25 = 0; + a20 = 0; + a19 = 5; + a29 = 8; + return -1; + } else if((((a0==1)&&((((a14==8)&&((!(a7==1)&&((!(a24==1)&&((a28==1)&&(((a29==5)||(a29==6))&&(input==6))))&&(a22==1)))&&!(a11==1)))&&(a19==1))&&(a20==1)))&&(a25==1))){ + a20 = 0; + a29 = 8; + a0 = 0; + a19 = 5; + a24 = 1; + a25 = 0; + a11 = 1; + return 24; + } else if((((a19==5)&&((a22==1)&&((((a11==1)&&(((a24==1)&&((((((a29==7)||(a29==8))||(a29==9))&&(input==3))&&!(a7==1))&&(a28==1)))&&!(a25==1)))&&(a20==1))&&(a0==1))))&&(a14==10))){ + a7 = 1; + a25 = 1; + a14 = 8; + a19 = 1; + a29 = 5; + return -1; + } else if(((a28==1)&&((((a24==1)&&(((((a22==1)&&(!(a25==1)&&(!(a20==1)&&((input==6)&&(a19==1)))))&&!(a7==1))&&!(a11==1))&&(a14==9)))&&(a0==1))&&(a29==6)))){ + a24 = 0; + a0 = 0; + a25 = 1; + a19 = 2; + a14 = 8; + a29 = 8; + return 21; + } else if(((((a0==1)&&((a28==1)&&(((input==1)&&(((((((a24==1)&&(!(a7==1)&&!(a20==1)))&&!(a25==1))&&(a29==8))&&(a19==5))||((a19==5)&&((a29==9)&&(!(a25==1)&&((!(a20==1)&&!(a7==1))&&(a24==1))))))||((((a25==1)&&(((a7==1)&&(a20==1))&&!(a24==1)))&&(a29==5))&&(a19==1))))&&(a14==9))))&&(a22==1))&&(a11==1))){ + a14 = 10; + a29 = 9; + a20 = 1; + a24 = 1; + a7 = 0; + a25 = 1; + a19 = 5; + return 23; + } else if(((a7==1)&&((!(a20==1)&&((!(a24==1)&&((a19==1)&&(!(a11==1)&&(((a14==8)&&(!(a25==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==2))))&&(a22==1)))))&&(a0==1)))&&(a28==1)))){ + a29 = 5; + a24 = 1; + a20 = 1; + a25 = 1; + a11 = 1; + return -1; + } else if(((a24==1)&&((!(a0==1)&&(((((a28==1)&&((!(a25==1)&&(!(a20==1)&&((input==6)&&((a29==8)||(a29==9)))))&&!(a7==1)))&&(a14==9))&&(a22==1))&&(a19==1)))&&(a11==1)))){ + a14 = 8; + a25 = 1; + a20 = 1; + a29 = 6; + a7 = 1; + return 24; + } else if(((a19==1)&&((!(a11==1)&&((((a24==1)&&((a14==9)&&((((a22==1)&&(!(a0==1)&&(input==4)))&&(a28==1))&&(a29==6))))&&(a7==1))&&(a20==1)))&&(a25==1)))){ + a20 = 0; + a19 = 3; + a25 = 0; + a14 = 8; + a11 = 1; + return -1; + } else if(((a11==1)&&(!(a20==1)&&((!(a0==1)&&(((((a28==1)&&((a7==1)&&((a19==2)&&((input==1)&&(((a29==5)||(a29==6))||(a29==7))))))&&(a22==1))&&(a14==8))&&(a24==1)))&&(a25==1))))){ + a20 = 1; + a29 = 7; + a0 = 1; + a24 = 0; + a14 = 9; + a25 = 0; + a11 = 0; + a7 = 0; + return 24; + } else if(((((a14==9)&&(((((a28==1)&&((a25==1)&&((((input==1)&&((a29==7)||(a29==8)))&&(a19==4))&&(a22==1))))&&!(a24==1))&&(a0==1))&&!(a11==1)))&&!(a7==1))&&(a20==1))){ + a24 = 1; + a7 = 1; + a20 = 0; + a25 = 0; + a0 = 0; + a29 = 8; + a14 = 8; + a19 = 3; + a11 = 1; + return 23; + } else if(((a19==1)&&((a7==1)&&((a0==1)&&((a25==1)&&((((((a28==1)&&((a14==9)&&((input==5)&&((a29==7)||(a29==8)))))&&(a24==1))&&(a11==1))&&(a22==1))&&!(a20==1))))))){ + a11 = 0; + a14 = 8; + a7 = 0; + a19 = 3; + a29 = 6; + a0 = 0; + return -1; + } else if(((!(a11==1)&&(!(a20==1)&&((a22==1)&&((((a14==9)&&(!(a24==1)&&(((input==3)&&(((a29==9)&&(a19==3))||((a19==4)&&(a29==5))))&&!(a25==1))))&&!(a0==1))&&(a7==1)))))&&(a28==1))){ + a24 = 1; + a25 = 1; + a20 = 1; + a19 = 2; + a7 = 0; + a14 = 8; + a29 = 8; + return 24; + } else if((((a24==1)&&(((!(a0==1)&&(((a29==9)&&((a11==1)&&((a22==1)&&(!(a20==1)&&((input==2)&&(a28==1))))))&&(a7==1)))&&!(a25==1))&&(a14==9)))&&(a19==5))){ + a0 = 1; + a19 = 1; + a29 = 5; + a11 = 0; + a20 = 1; + return -1; + } else if(((((!(a20==1)&&((a14==8)&&((a0==1)&&((a19==4)&&((a24==1)&&((a11==1)&&((a25==1)&&((input==2)&&((a29==6)||(a29==7))))))))))&&(a22==1))&&!(a7==1))&&(a28==1))){ + a19 = 2; + a29 = 9; + a11 = 0; + a7 = 1; + a25 = 0; + return 21; + } else if((((a19==3)&&(((((a22==1)&&((((((input==4)&&!(a7==1))&&!(a24==1))&&!(a25==1))&&!(a11==1))&&!(a0==1)))&&!(a20==1))&&(a14==8))&&(a28==1)))&&(a29==5))){ + a11 = 1; + a24 = 1; + a0 = 1; + a7 = 1; + a25 = 1; + a20 = 1; + a19 = 1; + return -1; + } else if(((a11==1)&&(!(a24==1)&&((!(a20==1)&&((a29==7)&&(!(a0==1)&&(((((a28==1)&&((input==3)&&!(a25==1)))&&!(a7==1))&&(a22==1))&&(a14==9)))))&&(a19==3))))){ + a29 = 8; + a24 = 1; + a19 = 5; + a20 = 1; + a14 = 8; + a25 = 1; + a7 = 1; + return 24; + } else if(((((a28==1)&&((!(a24==1)&&(((a0==1)&&((a22==1)&&(((a14==8)&&((a11==1)&&(input==4)))&&(a29==5))))&&(a7==1)))&&(a20==1)))&&(a25==1))&&(a19==2))){ + a24 = 1; + a19 = 1; + return -1; + } else if((((!(a20==1)&&(((((a0==1)&&(!(a7==1)&&((a14==9)&&((a25==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==2))))))&&(a28==1))&&(a22==1))&&(a11==1)))&&!(a24==1))&&(a19==2))){ + a19 = 1; + a20 = 1; + a29 = 5; + a14 = 8; + a7 = 1; + a24 = 1; + return -1; + } else if((((((a11==1)&&(((a28==1)&&(!(a25==1)&&(!(a7==1)&&(((a24==1)&&((a29==6)&&(input==3)))&&(a14==8)))))&&(a22==1)))&&!(a20==1))&&!(a0==1))&&(a19==3))){ + a7 = 1; + return 23; + } else if(((a14==8)&&(((a19==4)&&((a22==1)&&(!(a0==1)&&(!(a24==1)&&(!(a25==1)&&((((((a29==8)||((a29==6)||(a29==7)))&&(input==3))&&(a7==1))&&!(a11==1))&&(a20==1)))))))&&(a28==1)))){ + a11 = 1; + a0 = 1; + a24 = 1; + a29 = 5; + a25 = 1; + a19 = 1; + return -1; + } else if((((((((a24==1)&&(((a22==1)&&((a19==2)&&((a0==1)&&((input==6)&&(a29==6)))))&&(a14==9)))&&!(a25==1))&&(a20==1))&&!(a7==1))&&(a28==1))&&(a11==1))){ + a29 = 7; + a0 = 0; + a25 = 1; + a14 = 8; + a20 = 0; + a19 = 5; + return -1; + } else if((((((a20==1)&&((a19==1)&&(!(a25==1)&&((a7==1)&&(!(a11==1)&&((a14==8)&&(((input==5)&&((a29==7)||(a29==8)))&&(a28==1))))))))&&!(a24==1))&&(a0==1))&&(a22==1))){ + a14 = 9; + a11 = 1; + a29 = 8; + a25 = 1; + a19 = 2; + a7 = 0; + return 21; + } else if(((((a29==8)&&((a22==1)&&(((a28==1)&&((((a11==1)&&((a24==1)&&((a19==4)&&(input==4))))&&(a0==1))&&(a20==1)))&&(a14==9))))&&(a7==1))&&!(a25==1))){ + a25 = 1; + a29 = 5; + a19 = 1; + a14 = 8; + return -1; + } else if(((((a14==8)&&(((!(a24==1)&&(((!(a25==1)&&((a19==3)&&((input==2)&&!(a0==1))))&&(a22==1))&&!(a7==1)))&&(a28==1))&&(a29==6)))&&!(a11==1))&&(a20==1))){ + a20 = 0; + a29 = 8; + a19 = 2; + a24 = 1; + a11 = 1; + return 24; + } else if((((a25==1)&&(((a19==5)&&((!(a11==1)&&(((((a0==1)&&(((a29==7)||(a29==8))&&(input==5)))&&(a22==1))&&(a14==8))&&(a28==1)))&&(a7==1)))&&!(a20==1)))&&!(a24==1))){ + a0 = 0; + a29 = 7; + a7 = 0; + a24 = 1; + a19 = 2; + a11 = 1; + return 21; + } else if(((a28==1)&&((a22==1)&&((a19==2)&&(!(a0==1)&&(((a14==8)&&(((a11==1)&&((a24==1)&&(!(a20==1)&&((input==6)&&((a29==8)||(a29==9))))))&&!(a7==1)))&&(a25==1))))))){ + a14 = 9; + a29 = 5; + a11 = 0; + a7 = 1; + a24 = 0; + a25 = 0; + a0 = 1; + return 23; + } else if((!(a20==1)&&((a25==1)&&(((((a22==1)&&((a14==8)&&((a28==1)&&((!(a11==1)&&(((a29==7)||(a29==8))&&(input==3)))&&!(a0==1)))))&&(a7==1))&&(a19==1))&&(a24==1))))){ + a11 = 1; + a25 = 0; + a19 = 3; + a7 = 0; + a29 = 9; + return 24; + } else if(((a25==1)&&(((((!(a24==1)&&((a22==1)&&((a14==9)&&(((input==5)&&(((a29==5)&&(a19==3))||(((a29==8)&&(a19==2))||((a29==9)&&(a19==2)))))&&!(a20==1)))))&&(a7==1))&&(a11==1))&&(a28==1))&&!(a0==1)))){ + a19 = 1; + a14 = 8; + a29 = 7; + a7 = 0; + a24 = 1; + return 23; + } else if(((a14==9)&&(!(a0==1)&&((a7==1)&&((!(a25==1)&&(((a22==1)&&(!(a11==1)&&((((((a29==6)||(a29==7))||(a29==8))&&(input==1))&&(a28==1))&&!(a24==1))))&&!(a20==1)))&&(a19==4)))))){ + a11 = 1; + a29 = 6; + a24 = 1; + a14 = 8; + return 24; + } else if((((a0==1)&&((a28==1)&&(((a22==1)&&(!(a7==1)&&((a20==1)&&(((a14==8)&&(((a25==1)&&(input==6))&&!(a24==1)))&&(a11==1)))))&&(a19==1))))&&(a29==5))){ + a24 = 1; + a19 = 5; + a0 = 0; + a29 = 9; + a25 = 0; + return 23; + } else if((((a19==2)&&((a14==8)&&(!(a24==1)&&(((((a28==1)&&((((input==5)&&((a29==8)||(a29==9)))&&!(a0==1))&&(a7==1)))&&!(a11==1))&&!(a25==1))&&!(a20==1)))))&&(a22==1))){ + a11 = 1; + a19 = 4; + a24 = 1; + a29 = 6; + return 23; + } else if((((!(a25==1)&&((a24==1)&&(!(a0==1)&&(((a28==1)&&(((a14==8)&&((a22==1)&&((input==5)&&((a29==8)||((a29==6)||(a29==7))))))&&!(a11==1)))&&(a19==2)))))&&!(a7==1))&&(a20==1))){ + a29 = 8; + a20 = 0; + a0 = 1; + a25 = 1; + a19 = 3; + a24 = 0; + return 21; + } else if(((a24==1)&&(((a22==1)&&((((!(a25==1)&&((a14==8)&&((a28==1)&&((a11==1)&&(((a29==5)||(a29==6))&&(input==6))))))&&(a19==1))&&!(a7==1))&&!(a0==1)))&&(a20==1)))){ + a29 = 5; + a25 = 1; + a0 = 1; + a7 = 1; + return -1; + } else if((((!(a20==1)&&(!(a24==1)&&((a29==9)&&(!(a7==1)&&((a28==1)&&(((a22==1)&&(((input==6)&&(a19==4))&&(a11==1)))&&!(a0==1)))))))&&(a14==8))&&!(a25==1))){ + a14 = 9; + a7 = 1; + a25 = 1; + a11 = 0; + a0 = 1; + a29 = 6; + a24 = 1; + return 24; + } else if(((((a19==1)&&(((a25==1)&&((a14==8)&&(((a20==1)&&((((input==5)&&(a0==1))&&!(a24==1))&&!(a7==1)))&&(a11==1))))&&(a29==5)))&&(a28==1))&&(a22==1))){ + a20 = 0; + a0 = 0; + a29 = 8; + a7 = 1; + a19 = 2; + a24 = 1; + return 24; + } else if((((!(a11==1)&&((((a20==1)&&((a29==5)&&((a22==1)&&(!(a24==1)&&(((a25==1)&&(input==5))&&(a19==4))))))&&(a28==1))&&(a14==9)))&&!(a7==1))&&!(a0==1))){ + a19 = 5; + a11 = 1; + a7 = 1; + a14 = 8; + a25 = 0; + a24 = 1; + a29 = 6; + a20 = 0; + return 24; + } return calculate_output14(input); + } + + int calculate_output14(int input) { + if(((a14==8)&&((((!(a11==1)&&((a24==1)&&((a22==1)&&((((((a19==5)&&((a25==1)&&(a29==9)))||((a19==1)&&((a29==5)&&!(a25==1))))||((a19==1)&&(!(a25==1)&&(a29==6))))&&(input==4))&&!(a7==1)))))&&!(a20==1))&&(a28==1))&&!(a0==1)))){ + a24 = 0; + a11 = 1; + a29 = 6; + a25 = 0; + a19 = 4; + return -1; + } else if((!(a20==1)&&(((a0==1)&&((!(a11==1)&&(!(a24==1)&&(((a22==1)&&((a7==1)&&(((input==3)&&((a29==8)||(a29==9)))&&!(a25==1))))&&(a28==1))))&&(a14==9)))&&(a19==5)))){ + a29 = 8; + a0 = 0; + a20 = 1; + a7 = 0; + a14 = 8; + a25 = 1; + a19 = 2; + return -1; + } else if(((a24==1)&&((a22==1)&&((((a14==8)&&(((((a25==1)&&(((input==1)&&(((a29==5)||(a29==6))||(a29==7)))&&(a28==1)))&&(a0==1))&&!(a11==1))&&(a7==1)))&&!(a20==1))&&(a19==3))))){ + a11 = 1; + a20 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if((!(a24==1)&&((!(a7==1)&&((((a11==1)&&(((a22==1)&&(((((a29==9)&&(a25==1))&&(a19==5))||(((a29==5)&&!(a25==1))&&(a19==1)))&&(input==6)))&&!(a0==1)))&&(a20==1))&&(a14==9)))&&(a28==1)))){ + a25 = 0; + a20 = 0; + a29 = 7; + a11 = 0; + a19 = 5; + a7 = 1; + a14 = 8; + a24 = 1; + return -1; + } else if((((a14==8)&&((a19==1)&&((a20==1)&&(!(a0==1)&&((((a28==1)&&((a25==1)&&((a29==8)&&(!(a11==1)&&(input==5)))))&&(a24==1))&&!(a7==1))))))&&(a22==1))){ + a19 = 4; + a11 = 1; + a25 = 0; + a7 = 1; + return 21; + } else if(((!(a20==1)&&(((((a14==8)&&((!(a11==1)&&((a29==7)&&(((input==4)&&(a19==3))&&!(a0==1))))&&(a24==1)))&&(a28==1))&&(a7==1))&&(a22==1)))&&(a25==1))){ + a25 = 0; + a19 = 1; + a11 = 1; + a29 = 9; + return 24; + } else if(((!(a20==1)&&((((a28==1)&&(((a24==1)&&(!(a7==1)&&(((a22==1)&&((a14==9)&&(input==5)))&&(a0==1))))&&(a29==7)))&&(a25==1))&&(a19==4)))&&!(a11==1))){ + a11 = 1; + a7 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((((a28==1)&&(((((!(a24==1)&&((a22==1)&&(!(a11==1)&&((input==5)&&((a29==7)||(a29==8))))))&&(a7==1))&&(a0==1))&&(a25==1))&&(a19==5)))&&(a20==1))&&(a14==8))){ + a11 = 1; + a0 = 0; + a25 = 0; + a29 = 8; + a7 = 0; + a24 = 1; + a19 = 1; + return 23; + } else if(((!(a7==1)&&(((a14==8)&&(!(a11==1)&&((((a22==1)&&((!(a20==1)&&(((a29==5)||(a29==6))&&(input==2)))&&!(a24==1)))&&(a28==1))&&(a25==1))))&&!(a0==1)))&&(a19==4))){ + a19 = 2; + a20 = 1; + a24 = 1; + a11 = 1; + a29 = 6; + return 23; + } else if((!(a20==1)&&(!(a0==1)&&(!(a11==1)&&(!(a24==1)&&(((a7==1)&&((a22==1)&&((((((a29==7)||((a29==5)||(a29==6)))&&(input==6))&&(a19==2))&&(a14==9))&&(a25==1))))&&(a28==1))))))){ + a20 = 1; + a11 = 1; + a0 = 1; + a19 = 1; + a14 = 8; + a24 = 1; + a29 = 5; + return -1; + } else if((((a14==8)&&((a0==1)&&(!(a11==1)&&((a24==1)&&((((a22==1)&&((((a20==1)&&(input==5))&&(a25==1))&&(a29==7)))&&(a19==1))&&(a28==1))))))&&!(a7==1))){ + a11 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if(((((a28==1)&&((a29==6)&&(((a14==8)&&(!(a0==1)&&(((a19==3)&&(((input==2)&&!(a11==1))&&(a25==1)))&&(a24==1))))&&(a22==1))))&&!(a20==1))&&(a7==1))){ + a11 = 1; + a25 = 0; + a29 = 7; + a19 = 1; + a20 = 1; + a7 = 0; + return 21; + } else if((((((a19==1)&&((((((a28==1)&&((a20==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==5))))&&!(a7==1))&&!(a24==1))&&(a22==1))&&(a0==1)))&&(a14==9))&&!(a11==1))&&(a25==1))){ + a24 = 1; + a0 = 0; + a14 = 8; + a29 = 6; + a19 = 3; + a25 = 0; + return -1; + } else if((((((a19==3)&&(!(a7==1)&&((a0==1)&&((!(a24==1)&&((!(a20==1)&&(((a29==7)||(a29==8))&&(input==3)))&&(a22==1)))&&!(a11==1)))))&&(a28==1))&&(a25==1))&&(a14==8))){ + a19 = 2; + a29 = 7; + return -1; + } else if(((a19==4)&&((((a20==1)&&(!(a7==1)&&((a14==9)&&(((a22==1)&&(!(a11==1)&&(((input==6)&&(a25==1))&&(a28==1))))&&(a29==6)))))&&!(a24==1))&&(a0==1)))){ + a14 = 8; + a24 = 1; + a11 = 1; + a20 = 0; + a29 = 8; + a19 = 1; + a0 = 0; + a25 = 0; + return 23; + } else if((!(a7==1)&&((a14==8)&&(!(a24==1)&&((!(a11==1)&&(!(a20==1)&&((a28==1)&&(((input==5)&&(((a19==5)&&((a29==9)&&(a25==1)))||((a19==1)&&((a29==5)&&!(a25==1)))))&&(a22==1)))))&&!(a0==1)))))){ + a14 = 9; + a25 = 1; + a24 = 1; + a0 = 1; + a20 = 1; + a29 = 8; + a11 = 1; + a19 = 3; + return 23; + } else if(((((((a24==1)&&((((a14==8)&&(!(a20==1)&&((a11==1)&&((input==4)&&((a29==5)||(a29==6))))))&&!(a25==1))&&(a19==3)))&&(a22==1))&&(a0==1))&&(a28==1))&&!(a7==1))){ + a19 = 1; + a29 = 5; + a25 = 1; + a20 = 1; + a7 = 1; + return -1; + } else if(((!(a7==1)&&(((a25==1)&&((!(a0==1)&&((a14==8)&&((((input==3)&&(((a19==1)&&(a29==9))||((a29==5)&&(a19==2))))&&(a20==1))&&(a28==1))))&&(a11==1)))&&(a22==1)))&&(a24==1))){ + a19 = 3; + a29 = 5; + a25 = 0; + a11 = 0; + a24 = 0; + a14 = 9; + a0 = 1; + a7 = 1; + return 24; + } else if((((a14==8)&&((((a29==6)&&(((((((input==4)&&(a24==1))&&(a11==1))&&(a22==1))&&(a28==1))&&!(a7==1))&&(a19==3)))&&(a25==1))&&(a0==1)))&&(a20==1))){ + a29 = 7; + return 24; + } else if((((a14==9)&&(((((a25==1)&&(!(a20==1)&&((a11==1)&&(((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))&&(input==4))&&!(a7==1)))))&&!(a0==1))&&(a22==1))&&!(a24==1)))&&(a28==1))){ + a24 = 1; + a14 = 8; + a7 = 1; + a29 = 7; + a20 = 1; + a19 = 1; + return 21; + } else if(((!(a11==1)&&((((a14==9)&&((a7==1)&&(((!(a25==1)&&(!(a20==1)&&((input==4)&&!(a24==1))))&&(a28==1))&&(a22==1))))&&(a29==9))&&(a19==4)))&&(a0==1))){ + a29 = 7; + a19 = 3; + a24 = 1; + return -1; + } else if(((a28==1)&&(((a14==8)&&(((((a19==2)&&((a22==1)&&((!(a11==1)&&((input==5)&&(a29==7)))&&(a7==1))))&&(a25==1))&&(a0==1))&&(a20==1)))&&!(a24==1)))){ + a14 = 9; + a19 = 5; + a29 = 9; + a11 = 1; + return 23; + } else if(((a24==1)&&((((((a14==8)&&(((a25==1)&&(((((a29==8)||((a29==6)||(a29==7)))&&(input==3))&&(a28==1))&&(a11==1)))&&(a20==1)))&&(a22==1))&&(a19==1))&&(a7==1))&&!(a0==1)))){ + a29 = 5; + return -1; + } else if(((a28==1)&&((a11==1)&&(((a14==10)&&(((a24==1)&&(((!(a20==1)&&((((a29==8)||(a29==9))&&(input==6))&&(a25==1)))&&(a7==1))&&(a22==1)))&&(a19==3)))&&(a0==1))))){ + a14 = 8; + a24 = 0; + a19 = 4; + a29 = 8; + a7 = 0; + a0 = 0; + a11 = 0; + a20 = 1; + return 23; + } else if(((((a28==1)&&(((a14==8)&&((a7==1)&&(((!(a25==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==6))&&(a19==3)))&&!(a0==1))&&!(a24==1))))&&(a22==1)))&&!(a20==1))&&!(a11==1))){ + a20 = 1; + a11 = 1; + a14 = 9; + a7 = 0; + a25 = 1; + a0 = 1; + a29 = 8; + return 21; + } else if((((a11==1)&&(!(a0==1)&&(!(a20==1)&&((((a25==1)&&((a14==9)&&(!(a24==1)&&((((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))&&(input==3)))))&&(a22==1))&&!(a7==1)))))&&(a28==1))){ + a0 = 1; + a11 = 0; + a14 = 8; + a25 = 0; + a19 = 2; + a29 = 6; + return 24; + } else if(((a22==1)&&((a0==1)&&((((a20==1)&&(((a11==1)&&(!(a25==1)&&((a19==3)&&((a24==1)&&(((a29==8)||(a29==9))&&(input==4))))))&&(a7==1)))&&(a14==10))&&(a28==1))))){ + a25 = 1; + a29 = 5; + a19 = 4; + a14 = 9; + return 23; + } else if((((a22==1)&&(((a0==1)&&((a11==1)&&((a14==9)&&((a19==3)&&(!(a25==1)&&(!(a20==1)&&((a24==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==6)))))))))&&(a7==1)))&&(a28==1))){ + a29 = 7; + a25 = 1; + a20 = 1; + a7 = 0; + return 24; + } else if((!(a20==1)&&(((((((((a0==1)&&(((input==1)&&((a29==7)||((a29==5)||(a29==6))))&&!(a25==1)))&&(a22==1))&&!(a7==1))&&(a28==1))&&(a19==3))&&(a24==1))&&(a11==1))&&(a14==10)))){ + a14 = 8; + a0 = 0; + a20 = 1; + a29 = 5; + a7 = 1; + return 21; + } else if(((a7==1)&&((a11==1)&&(!(a24==1)&&((a22==1)&&((a19==4)&&(!(a0==1)&&((((a28==1)&&(((input==4)&&((a29==6)||(a29==7)))&&!(a25==1)))&&(a14==9))&&!(a20==1))))))))){ + a0 = 1; + a19 = 3; + a24 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if((((a25==1)&&(((a0==1)&&((((a22==1)&&(((!(a20==1)&&((a29==8)&&(input==1)))&&(a14==9))&&(a19==4)))&&!(a11==1))&&(a28==1)))&&!(a7==1)))&&(a24==1))){ + a25 = 0; + a19 = 2; + a29 = 6; + a14 = 8; + a0 = 0; + return 23; + } else if(((a25==1)&&(((((a11==1)&&((a14==8)&&((a28==1)&&((a0==1)&&((a20==1)&&((((a19==4)&&(a29==5))||(((a19==3)&&(a29==8))||((a19==3)&&(a29==9))))&&(input==4)))))))&&!(a24==1))&&(a7==1))&&(a22==1)))){ + a19 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if((((!(a0==1)&&(((a7==1)&&((a25==1)&&(((((a19==2)&&((input==2)&&(((a29==5)||(a29==6))||(a29==7))))&&!(a20==1))&&(a24==1))&&(a14==8))))&&(a22==1)))&&(a11==1))&&(a28==1))){ + a19 = 5; + a25 = 0; + a20 = 1; + a29 = 8; + return -1; + } else if(((!(a7==1)&&(!(a11==1)&&((a14==8)&&(!(a0==1)&&((((a28==1)&&((((input==4)&&(((a29==5)||(a29==6))||(a29==7)))&&!(a25==1))&&(a19==4)))&&(a22==1))&&(a20==1))))))&&(a24==1))){ + a20 = 0; + a0 = 1; + a19 = 1; + a24 = 0; + a29 = 6; + return 23; + } else if(((a11==1)&&(!(a25==1)&&((a28==1)&&(!(a7==1)&&((a19==2)&&(((((!(a20==1)&&(((a29==6)||(a29==7))&&(input==4)))&&(a22==1))&&(a14==9))&&!(a24==1))&&!(a0==1)))))))){ + a19 = 3; + a25 = 1; + a7 = 1; + a29 = 8; + a11 = 0; + a14 = 8; + return -1; + } else if((((!(a0==1)&&((((a19==3)&&((((a28==1)&&((a22==1)&&((input==6)&&((a29==5)||(a29==6)))))&&!(a7==1))&&!(a20==1)))&&!(a24==1))&&(a14==9)))&&!(a25==1))&&(a11==1))){ + a7 = 1; + a19 = 5; + a25 = 1; + a29 = 8; + a0 = 1; + return 21; + } else if(((a20==1)&&(!(a7==1)&&((!(a11==1)&&((a28==1)&&(((!(a0==1)&&(((((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))&&(input==3))&&(a22==1)))&&(a25==1))&&(a14==9))))&&(a24==1))))){ + a29 = 6; + a11 = 1; + a25 = 0; + a20 = 0; + a0 = 1; + a19 = 4; + return -1; + } else if((((a19==3)&&(((a11==1)&&(((a28==1)&&(((a0==1)&&(!(a7==1)&&((((a29==6)||(a29==7))&&(input==5))&&!(a20==1))))&&(a22==1)))&&!(a24==1)))&&(a25==1)))&&(a14==8))){ + a24 = 1; + a29 = 5; + a19 = 5; + a25 = 0; + a0 = 0; + return 23; + } else if(((a14==9)&&((!(a20==1)&&((a19==5)&&(!(a11==1)&&(!(a25==1)&&((((((input==5)&&((a29==5)||(a29==6)))&&(a24==1))&&(a0==1))&&(a28==1))&&(a7==1))))))&&(a22==1)))){ + a0 = 0; + a19 = 1; + a29 = 5; + a14 = 8; + a11 = 1; + return 24; + } else if(((!(a24==1)&&((a22==1)&&(((a11==1)&&((((a14==9)&&((a0==1)&&(((a29==8)&&(input==6))&&(a19==2))))&&(a20==1))&&(a28==1)))&&!(a7==1))))&&(a25==1))){ + a25 = 0; + a14 = 10; + a20 = 0; + a7 = 1; + a24 = 1; + a29 = 7; + return 21; + } else if(((!(a11==1)&&(((!(a7==1)&&((a25==1)&&(((a14==8)&&(((a24==1)&&(((a29==6)||(a29==7))&&(input==1)))&&(a28==1)))&&!(a0==1))))&&(a19==2))&&!(a20==1)))&&(a22==1))){ + a19 = 1; + a11 = 1; + a20 = 1; + a0 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if(((a25==1)&&((a22==1)&&((a0==1)&&((!(a20==1)&&((a7==1)&&(((a28==1)&&((a14==9)&&((a24==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==5)))))&&(a11==1))))&&(a19==5)))))){ + a20 = 1; + a19 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if((((a24==1)&&((((!(a20==1)&&(((a19==2)&&((a28==1)&&((!(a11==1)&&(input==1))&&!(a7==1))))&&(a25==1)))&&(a14==9))&&(a22==1))&&!(a0==1)))&&(a29==5))){ + a29 = 9; + a0 = 1; + a7 = 1; + a25 = 0; + a24 = 0; + a14 = 8; + return 23; + } else if((((a0==1)&&(((a22==1)&&(((((a14==8)&&(((((a25==1)&&(a29==9))&&(a19==5))||((!(a25==1)&&(a29==5))&&(a19==1)))&&(input==3)))&&!(a11==1))&&!(a24==1))&&!(a7==1)))&&!(a20==1)))&&(a28==1))){ + a20 = 1; + a7 = 1; + a19 = 1; + a29 = 5; + a11 = 1; + a25 = 1; + a24 = 1; + return -1; + } else if(((a14==9)&&(!(a25==1)&&(!(a7==1)&&(((a28==1)&&(((a19==5)&&(!(a11==1)&&((((input==4)&&(((a29==6)||(a29==7))||(a29==8)))&&(a22==1))&&!(a20==1))))&&(a0==1)))&&!(a24==1)))))){ + a7 = 1; + a19 = 2; + a29 = 5; + a20 = 1; + return 23; + } else if((((a14==9)&&((a19==4)&&(((((a24==1)&&(!(a7==1)&&((a20==1)&&(((input==3)&&((a29==7)||(a29==8)))&&(a28==1)))))&&!(a0==1))&&!(a11==1))&&!(a25==1))))&&(a22==1))){ + a29 = 7; + a25 = 1; + a24 = 0; + a20 = 0; + a0 = 1; + a19 = 3; + return 24; + } else if(((a28==1)&&((((a25==1)&&(((a11==1)&&(((a14==9)&&(((((a29==7)||((a29==5)||(a29==6)))&&(input==3))&&(a19==5))&&(a22==1)))&&(a20==1)))&&!(a7==1)))&&(a0==1))&&!(a24==1)))){ + a24 = 1; + a19 = 1; + a29 = 6; + a14 = 10; + a20 = 0; + return 23; + } else if((((((a7==1)&&((a22==1)&&((a28==1)&&(!(a24==1)&&(!(a11==1)&&((((input==2)&&(a19==3))&&(a20==1))&&(a25==1)))))))&&(a29==8))&&(a14==9))&&(a0==1))){ + a29 = 5; + a11 = 1; + a14 = 8; + a24 = 1; + a19 = 1; + return -1; + } else if(((a28==1)&&(!(a20==1)&&(((a29==8)&&(!(a24==1)&&((a22==1)&&((!(a0==1)&&((((input==4)&&(a7==1))&&(a14==8))&&(a19==5)))&&!(a25==1)))))&&!(a11==1))))){ + a19 = 4; + a29 = 7; + a7 = 0; + a0 = 1; + return 23; + } else if((((a24==1)&&(((((((!(a25==1)&&((a11==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==3))))&&(a20==1))&&(a19==3))&&(a22==1))&&(a28==1))&&!(a7==1))&&(a14==9)))&&(a0==1))){ + a29 = 5; + a7 = 1; + a25 = 1; + a14 = 8; + a19 = 1; + return -1; + } else if(((((a25==1)&&(((a29==9)&&(!(a20==1)&&((a7==1)&&(((!(a0==1)&&((input==6)&&(a11==1)))&&(a28==1))&&(a22==1)))))&&(a14==9)))&&(a19==1))&&!(a24==1))){ + a24 = 1; + a14 = 8; + a11 = 0; + a25 = 0; + a19 = 2; + return -1; + } else if(((a19==4)&&((a11==1)&&(((a20==1)&&((a28==1)&&((a22==1)&&((a0==1)&&(!(a7==1)&&((((input==5)&&(((a29==6)||(a29==7))||(a29==8)))&&(a14==9))&&(a25==1)))))))&&(a24==1))))){ + a19 = 1; + a7 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if(((a28==1)&&((a0==1)&&((((((a29==7)&&((!(a11==1)&&((a14==8)&&((input==3)&&(a19==4))))&&(a7==1)))&&(a24==1))&&(a22==1))&&!(a25==1))&&!(a20==1))))){ + a20 = 1; + a11 = 1; + a29 = 5; + a19 = 1; + a25 = 1; + return -1; + } else if(((((((((((a22==1)&&(((input==6)&&(a20==1))&&(a28==1)))&&(a11==1))&&(a14==8))&&!(a0==1))&&!(a24==1))&&(a7==1))&&!(a25==1))&&(a19==2))&&(a29==8))){ + a25 = 1; + a19 = 1; + a0 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if((((a19==4)&&(((!(a7==1)&&((a28==1)&&(((a20==1)&&((a22==1)&&((a0==1)&&((input==4)&&(((a29==7)||(a29==8))||(a29==9))))))&&(a24==1))))&&(a14==9))&&(a25==1)))&&!(a11==1))){ + a29 = 5; + a7 = 1; + a19 = 1; + a11 = 1; + a14 = 8; + return -1; + } else if(((((a11==1)&&((a24==1)&&((a14==8)&&(((a19==5)&&((((a28==1)&&((a22==1)&&(input==2)))&&(a0==1))&&(a29==5)))&&(a7==1)))))&&!(a20==1))&&!(a25==1))){ + a11 = 0; + a20 = 1; + a19 = 3; + return 21; + } else if(((((a28==1)&&((a20==1)&&((a25==1)&&(((((a7==1)&&((a29==6)&&(!(a24==1)&&(input==4))))&&!(a11==1))&&(a19==1))&&(a14==8)))))&&(a0==1))&&(a22==1))){ + a25 = 0; + a19 = 5; + a29 = 9; + a20 = 0; + return 24; + } else if((((a19==4)&&(!(a7==1)&&((a0==1)&&((a28==1)&&(((!(a20==1)&&(!(a11==1)&&((a22==1)&&((input==3)&&!(a24==1)))))&&(a14==9))&&(a29==5))))))&&!(a25==1))){ + a25 = 1; + a11 = 1; + a7 = 1; + a14 = 8; + a24 = 1; + a19 = 1; + a20 = 1; + return -1; + } else if((!(a25==1)&&((a19==4)&&(((a29==6)&&((a14==9)&&(((a22==1)&&((a28==1)&&(!(a24==1)&&(((input==2)&&(a20==1))&&(a0==1)))))&&!(a11==1))))&&(a7==1))))){ + a19 = 1; + return 23; + } else if(((a14==8)&&(((a25==1)&&((a28==1)&&(!(a20==1)&&(!(a7==1)&&(((a0==1)&&((a29==7)&&((a22==1)&&((a19==2)&&(input==5)))))&&!(a11==1))))))&&!(a24==1)))){ + a25 = 0; + a19 = 4; + a29 = 5; + a7 = 1; + return -1; + } else if(((a24==1)&&(((a28==1)&&((a14==9)&&(!(a7==1)&&((!(a25==1)&&(((a20==1)&&(((input==6)&&((a29==6)||(a29==7)))&&(a19==1)))&&(a22==1)))&&!(a11==1)))))&&(a0==1)))){ + a11 = 1; + a25 = 1; + a14 = 8; + a29 = 5; + a7 = 1; + return -1; + } else if(((a22==1)&&((!(a20==1)&&(((a0==1)&&(!(a7==1)&&(((((input==6)&&((((a29==8)&&(a19==2))||((a19==2)&&(a29==9)))||((a29==5)&&(a19==3))))&&!(a24==1))&&(a11==1))&&(a14==9))))&&(a28==1)))&&!(a25==1)))){ + a14 = 8; + a20 = 1; + a24 = 1; + a7 = 1; + a25 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if((((a0==1)&&((a20==1)&&(((a24==1)&&(!(a7==1)&&(((a14==9)&&(((input==4)&&(((a29==6)&&(a19==3))||(((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))))&&!(a25==1)))&&!(a11==1))))&&(a22==1))))&&(a28==1))){ + a11 = 1; + a19 = 3; + a0 = 0; + a20 = 0; + a7 = 1; + a14 = 8; + a29 = 8; + return 21; + } else if(((a29==8)&&((a20==1)&&((((a14==10)&&((((a22==1)&&((a7==1)&&((a19==5)&&((a11==1)&&(input==4)))))&&(a25==1))&&(a28==1)))&&(a24==1))&&(a0==1))))){ + a20 = 0; + a0 = 0; + a29 = 7; + a11 = 0; + a25 = 0; + a14 = 8; + a19 = 2; + a24 = 0; + a7 = 0; + return 21; + } else if(((a14==9)&&(((a22==1)&&(!(a11==1)&&((a28==1)&&(((((((!(a7==1)&&!(a20==1))&&(a24==1))&&!(a25==1))&&(a29==9))&&(a19==5))||((a19==1)&&(((!(a24==1)&&((a7==1)&&(a20==1)))&&(a25==1))&&(a29==5))))&&(input==2)))))&&!(a0==1)))){ + a11 = 1; + a7 = 0; + a29 = 7; + a19 = 5; + a25 = 0; + a24 = 1; + a20 = 0; + return -1; + } else if(((a19==2)&&(!(a7==1)&&((((((((a14==9)&&((a20==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==6))))&&(a24==1))&&(a28==1))&&(a0==1))&&!(a25==1))&&!(a11==1))&&(a22==1))))){ + a14 = 8; + a29 = 8; + a7 = 1; + a19 = 4; + a24 = 0; + a0 = 0; + return 21; + } else if((((a0==1)&&((((a20==1)&&(((((a22==1)&&(((a24==1)&&(input==1))&&(a19==1)))&&!(a7==1))&&(a29==7))&&(a25==1)))&&!(a11==1))&&(a28==1)))&&(a14==8))){ + a7 = 1; + a29 = 5; + a11 = 1; + return -1; + } else if((!(a24==1)&&((a14==8)&&((a28==1)&&((a22==1)&&(!(a11==1)&&((((!(a20==1)&&((((a19==2)&&(a29==5))||(((a19==1)&&(a29==8))||((a29==9)&&(a19==1))))&&(input==4)))&&(a25==1))&&!(a0==1))&&!(a7==1)))))))){ + a20 = 1; + a29 = 5; + a24 = 1; + a11 = 1; + a19 = 1; + a7 = 1; + return 21; + } else if(((a28==1)&&(((((a0==1)&&((((a14==9)&&(((a25==1)&&((input==6)&&((a29==5)||(a29==6))))&&!(a11==1)))&&(a20==1))&&(a19==3)))&&!(a7==1))&&(a24==1))&&(a22==1)))){ + a25 = 0; + a29 = 7; + a7 = 1; + return 24; + } else if((((a22==1)&&(!(a25==1)&&(((a29==8)&&((a19==4)&&(((!(a0==1)&&(!(a7==1)&&((a11==1)&&(input==4))))&&!(a20==1))&&(a24==1))))&&(a14==9))))&&(a28==1))){ + a25 = 1; + a20 = 1; + a0 = 1; + a24 = 0; + return 24; + } else if(((a22==1)&&(((a20==1)&&((a19==4)&&(!(a0==1)&&(((a7==1)&&((a11==1)&&((a14==8)&&((a24==1)&&((input==6)&&!(a25==1))))))&&(a28==1)))))&&(a29==6)))){ + a29 = 7; + a11 = 0; + a0 = 1; + a19 = 3; + a20 = 0; + a7 = 0; + a24 = 0; + return -1; + } else if(((!(a0==1)&&(!(a11==1)&&(((a22==1)&&(((((!(a24==1)&&((input==2)&&((a29==7)||((a29==5)||(a29==6)))))&&(a14==9))&&(a20==1))&&(a28==1))&&(a25==1)))&&(a19==3))))&&!(a7==1))){ + a0 = 1; + a29 = 8; + a24 = 1; + a20 = 0; + a19 = 4; + a25 = 0; + return 21; + } else if((((a24==1)&&((((a22==1)&&(((a7==1)&&((((input==3)&&((((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))||((a19==5)&&(a29==5))))&&(a11==1))&&(a28==1)))&&!(a0==1)))&&(a14==9))&&!(a20==1)))&&!(a25==1))){ + a0 = 1; + a14 = 8; + a29 = 5; + a25 = 1; + a19 = 1; + a20 = 1; + return -1; + } else if((((a19==5)&&(((a7==1)&&((!(a11==1)&&((a14==8)&&(((a0==1)&&((a20==1)&&(!(a24==1)&&(input==4))))&&!(a25==1))))&&(a22==1)))&&(a29==9)))&&(a28==1))){ + a24 = 1; + a29 = 5; + a11 = 1; + a25 = 1; + a19 = 1; + return -1; + } else if(((a28==1)&&(((a24==1)&&((a19==1)&&(!(a25==1)&&(!(a11==1)&&((((a0==1)&&(((input==3)&&(((a29==6)||(a29==7))||(a29==8)))&&(a7==1)))&&(a22==1))&&(a20==1))))))&&(a14==9)))){ + a25 = 1; + a19 = 5; + a29 = 5; + return 24; + } else if((((!(a11==1)&&((((!(a20==1)&&(!(a25==1)&&((a0==1)&&((input==4)&&(((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))))))&&(a28==1))&&(a7==1))&&(a22==1)))&&(a24==1))&&(a14==9))){ + a7 = 0; + a25 = 1; + a19 = 4; + a29 = 7; + return 24; + } else if(((a22==1)&&((((a14==8)&&((((a0==1)&&((((a25==1)&&((input==3)&&((a29==5)||(a29==6))))&&!(a11==1))&&(a19==1)))&&!(a7==1))&&(a28==1)))&&!(a24==1))&&(a20==1)))){ + a7 = 1; + a29 = 5; + a24 = 1; + a11 = 1; + return -1; + } else if((((a22==1)&&((a11==1)&&(((((a7==1)&&((((input==2)&&(((a29==9)&&(a19==1))||((a29==5)&&(a19==2))))&&(a0==1))&&(a14==9)))&&!(a25==1))&&(a20==1))&&!(a24==1))))&&(a28==1))){ + a14 = 8; + a29 = 9; + a11 = 0; + a20 = 0; + a0 = 0; + a19 = 3; + return -1; + } else if(((((a11==1)&&((((!(a24==1)&&(((((input==5)&&((a29==7)||(a29==8)))&&(a25==1))&&(a28==1))&&!(a7==1)))&&(a20==1))&&(a0==1))&&(a14==8)))&&(a22==1))&&(a19==3))){ + a29 = 8; + a0 = 0; + a20 = 0; + a24 = 1; + a19 = 1; + a25 = 0; + return 23; + } else if(((a20==1)&&((a14==8)&&((((((a24==1)&&(((a11==1)&&(((input==1)&&(a29==8))&&(a19==5)))&&(a28==1)))&&(a7==1))&&(a22==1))&&!(a25==1))&&!(a0==1))))){ + a29 = 9; + return 23; + } else if(((a14==10)&&(((((a25==1)&&((a11==1)&&(((((((a29==8)||(a29==9))&&(input==4))&&!(a20==1))&&(a28==1))&&(a7==1))&&(a0==1))))&&(a22==1))&&(a19==3))&&(a24==1)))){ + a0 = 0; + a19 = 4; + a7 = 0; + a25 = 0; + a29 = 5; + a14 = 8; + a20 = 1; + return 21; + } else if((!(a7==1)&&((!(a24==1)&&(((a25==1)&&((a11==1)&&(((a0==1)&&(((input==3)&&(((a19==3)&&(a29==5))||(((a29==8)&&(a19==2))||((a29==9)&&(a19==2)))))&&(a28==1)))&&(a14==9))))&&!(a20==1)))&&(a22==1)))){ + a19 = 1; + a7 = 1; + a20 = 1; + a14 = 8; + a29 = 5; + a24 = 1; + return -1; + } else if(((((a11==1)&&((a25==1)&&((((a19==5)&&(((((((a29==5)||(a29==6))||(a29==7))&&(input==2))&&(a22==1))&&(a0==1))&&(a28==1)))&&(a20==1))&&(a14==10))))&&(a7==1))&&(a24==1))){ + a0 = 0; + a29 = 6; + a14 = 8; + a11 = 0; + a19 = 4; + return -1; + } else if(((((a20==1)&&((!(a25==1)&&(!(a24==1)&&((((a19==1)&&((((a29==7)||(a29==8))&&(input==1))&&(a0==1)))&&(a28==1))&&(a7==1))))&&(a22==1)))&&(a14==8))&&!(a11==1))){ + a29 = 5; + a24 = 1; + a25 = 1; + a11 = 1; + return -1; + } else if((((((!(a24==1)&&((((((input==2)&&((((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))||((a19==3)&&(a29==5))))&&!(a0==1))&&(a7==1))&&(a28==1))&&(a22==1)))&&(a11==1))&&!(a25==1))&&(a14==8))&&!(a20==1))){ + a29 = 9; + a25 = 1; + a20 = 1; + a19 = 2; + a7 = 0; + a24 = 1; + return 23; + } else if((((a28==1)&&((a20==1)&&(!(a11==1)&&((((!(a0==1)&&(((((a19==2)&&(a29==5))||(((a19==1)&&(a29==8))||((a19==1)&&(a29==9))))&&(input==5))&&(a14==8)))&&!(a7==1))&&(a24==1))&&(a22==1)))))&&!(a25==1))){ + a29 = 7; + a19 = 3; + return 24; + } else if((!(a7==1)&&(((a25==1)&&((a29==6)&&(((!(a11==1)&&((a0==1)&&(((a19==2)&&((input==6)&&(a14==8)))&&(a20==1))))&&!(a24==1))&&(a28==1))))&&(a22==1)))){ + a25 = 0; + a19 = 3; + a11 = 1; + a7 = 1; + a0 = 0; + a24 = 1; + return 24; + } else if(((!(a0==1)&&(!(a7==1)&&((((((a22==1)&&(!(a11==1)&&((((a29==5)||(a29==6))&&(input==1))&&(a19==4))))&&(a25==1))&&!(a20==1))&&(a28==1))&&(a24==1))))&&(a14==8))){ + a20 = 1; + a29 = 5; + a19 = 1; + a7 = 1; + a0 = 1; + a11 = 1; + return -1; + } else if((((a11==1)&&(!(a20==1)&&((a29==8)&&((a14==8)&&((a22==1)&&((a28==1)&&(((a24==1)&&(((a0==1)&&(input==1))&&(a7==1)))&&(a19==2))))))))&&!(a25==1))){ + a7 = 0; + a24 = 0; + a29 = 6; + a19 = 3; + return 23; + } else if((((a28==1)&&(((a22==1)&&(!(a7==1)&&((((((input==2)&&((((a29==8)&&(a19==3))||((a19==3)&&(a29==9)))||((a29==5)&&(a19==4))))&&(a14==9))&&!(a20==1))&&(a25==1))&&(a11==1))))&&!(a0==1)))&&(a24==1))){ + a0 = 1; + a7 = 1; + a19 = 1; + a29 = 5; + a20 = 1; + a14 = 8; + return -1; + } else if(((a25==1)&&((!(a0==1)&&((a14==9)&&((a20==1)&&(((a24==1)&&((a22==1)&&((a11==1)&&((a28==1)&&(((a29==5)||(a29==6))&&(input==3))))))&&(a7==1)))))&&(a19==1)))){ + a29 = 7; + a14 = 8; + a20 = 0; + a7 = 0; + return 23; + } else if((((a11==1)&&((a29==9)&&((a22==1)&&((a19==1)&&((a25==1)&&(((a0==1)&&(((a20==1)&&((input==3)&&(a28==1)))&&(a24==1)))&&(a7==1)))))))&&(a14==9))){ + a14 = 8; + a29 = 5; + return -1; + } else if(((a0==1)&&((a7==1)&&((((a22==1)&&((a28==1)&&((a11==1)&&(!(a25==1)&&(((((a29==8)||((a29==6)||(a29==7)))&&(input==2))&&(a19==1))&&(a20==1))))))&&(a14==10))&&(a24==1))))){ + a29 = 5; + a14 = 8; + a25 = 1; + return -1; + } else if(((!(a24==1)&&((a25==1)&&((a28==1)&&(!(a7==1)&&(((a0==1)&&((((input==2)&&(((a19==3)&&(a29==9))||((a29==5)&&(a19==4))))&&(a22==1))&&(a14==9)))&&!(a11==1))))))&&(a20==1))){ + a29 = 7; + a14 = 8; + a20 = 0; + a19 = 2; + a25 = 0; + a0 = 0; + a11 = 1; + return -1; + } else if(((((a19==3)&&(((((a14==8)&&(!(a7==1)&&(((((a29==9)||((a29==7)||(a29==8)))&&(input==6))&&!(a20==1))&&(a22==1))))&&!(a24==1))&&!(a11==1))&&!(a25==1)))&&(a28==1))&&!(a0==1))){ + a7 = 1; + a19 = 1; + a29 = 7; + a11 = 1; + a24 = 1; + a20 = 1; + return 23; + } else if(((a29==8)&&((a28==1)&&((((!(a0==1)&&(((a25==1)&&((a14==9)&&((a7==1)&&((input==2)&&(a20==1)))))&&(a24==1)))&&(a11==1))&&(a22==1))&&(a19==3))))){ + a19 = 4; + a25 = 0; + a11 = 0; + a29 = 6; + a24 = 0; + a0 = 1; + return 23; + } else if((!(a7==1)&&(!(a11==1)&&(((a22==1)&&((!(a20==1)&&(!(a0==1)&&((a25==1)&&(((((a29==8)||((a29==6)||(a29==7)))&&(input==5))&&(a14==9))&&(a19==3)))))&&(a24==1)))&&(a28==1))))){ + a25 = 0; + a29 = 8; + a14 = 8; + a19 = 2; + a7 = 1; + a24 = 0; + return -1; + } else if(((a24==1)&&((a28==1)&&((!(a7==1)&&((a19==1)&&(((((a0==1)&&((a22==1)&&((input==5)&&(((a29==5)||(a29==6))||(a29==7)))))&&(a20==1))&&(a14==8))&&!(a25==1))))&&(a11==1))))){ + a7 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if(((a24==1)&&((((a14==9)&&(!(a20==1)&&(((((a25==1)&&((input==1)&&(((a29==5)&&(a19==3))||(((a29==8)&&(a19==2))||((a19==2)&&(a29==9))))))&&(a7==1))&&!(a0==1))&&(a22==1))))&&(a11==1))&&(a28==1)))){ + a29 = 5; + a19 = 5; + a0 = 1; + a7 = 0; + return -1; + } else if((!(a24==1)&&((a28==1)&&((a19==5)&&((a22==1)&&((a29==9)&&((!(a0==1)&&(((!(a20==1)&&((input==1)&&(a7==1)))&&(a25==1))&&(a14==9)))&&!(a11==1)))))))){ + a24 = 1; + a14 = 8; + a11 = 1; + a7 = 0; + return 21; + } else if((((((((a0==1)&&(!(a25==1)&&(((a28==1)&&((a14==9)&&((input==2)&&(((a29==7)||(a29==8))||(a29==9)))))&&(a20==1))))&&(a22==1))&&(a19==5))&&(a7==1))&&(a11==1))&&(a24==1))){ + a29 = 7; + a24 = 0; + a0 = 0; + a14 = 8; + a20 = 0; + a19 = 4; + return 23; + } else if(((((a20==1)&&(((a22==1)&&((a28==1)&&((a24==1)&&(((a11==1)&&((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))&&(input==6)))&&(a0==1)))))&&(a14==9)))&&!(a7==1))&&!(a25==1))){ + a20 = 0; + a29 = 5; + a19 = 5; + a7 = 1; + a0 = 0; + a14 = 8; + return 23; + } else if(((((a19==5)&&((a14==9)&&((a28==1)&&(((a7==1)&&((((a24==1)&&((input==3)&&(((a29==6)||(a29==7))||(a29==8))))&&!(a0==1))&&(a22==1)))&&(a25==1)))))&&!(a20==1))&&(a11==1))){ + a14 = 8; + a29 = 5; + a0 = 1; + a20 = 1; + a19 = 1; + return -1; + } else if(((a19==3)&&(!(a20==1)&&((((a29==8)&&(((!(a0==1)&&((a14==9)&&(((input==5)&&!(a7==1))&&(a22==1))))&&!(a11==1))&&!(a24==1)))&&(a28==1))&&!(a25==1))))){ + a29 = 9; + a24 = 1; + a14 = 8; + a19 = 2; + a11 = 1; + a25 = 1; + return 23; + } else if(((!(a24==1)&&((((a19==1)&&(!(a0==1)&&(((a28==1)&&((a7==1)&&(((input==5)&&((a29==8)||(a29==9)))&&!(a20==1))))&&!(a11==1))))&&(a22==1))&&(a25==1)))&&(a14==9))){ + a14 = 8; + a0 = 1; + a11 = 1; + a24 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if(((((!(a24==1)&&(((a25==1)&&((a28==1)&&(((((input==4)&&(a29==9))&&!(a11==1))&&(a7==1))&&(a19==2))))&&!(a0==1)))&&(a22==1))&&(a20==1))&&(a14==9))){ + a0 = 1; + a14 = 8; + a19 = 1; + a24 = 1; + a29 = 5; + a11 = 1; + return -1; + } else if((!(a0==1)&&(!(a24==1)&&((!(a11==1)&&(!(a20==1)&&((a19==5)&&((!(a25==1)&&((a22==1)&&(((input==5)&&(a28==1))&&(a29==7))))&&(a7==1)))))&&(a14==8))))){ + a24 = 1; + a11 = 1; + a19 = 1; + return 24; + } else if(((((a22==1)&&(!(a11==1)&&((a0==1)&&((a28==1)&&(((a7==1)&&(!(a20==1)&&((a14==8)&&((input==5)&&((a29==9)||((a29==7)||(a29==8)))))))&&(a19==5))))))&&(a25==1))&&(a24==1))){ + a20 = 1; + a11 = 1; + a14 = 9; + a29 = 5; + return 24; + } else if((((a20==1)&&((((((a22==1)&&(!(a11==1)&&(((a25==1)&&((input==5)&&(((a29==7)||(a29==8))||(a29==9))))&&!(a24==1))))&&(a28==1))&&(a14==8))&&(a0==1))&&(a19==1)))&&(a7==1))){ + a19 = 4; + a11 = 1; + a29 = 6; + a14 = 9; + return 23; + } else if(((((a14==8)&&((((a29==6)&&(((a22==1)&&(!(a11==1)&&((a28==1)&&(!(a7==1)&&(input==5)))))&&(a0==1)))&&(a24==1))&&!(a25==1)))&&(a19==4))&&!(a20==1))){ + a29 = 8; + a11 = 1; + a14 = 9; + a19 = 3; + return 21; + } else if((((a19==5)&&(((((a14==9)&&(((a28==1)&&((a29==7)&&(((input==4)&&(a7==1))&&(a24==1))))&&(a11==1)))&&!(a20==1))&&!(a0==1))&&(a22==1)))&&!(a25==1))){ + a0 = 1; + a29 = 5; + a20 = 1; + a25 = 1; + a14 = 8; + a19 = 1; + return -1; + } else if(((((!(a20==1)&&((a29==7)&&((a22==1)&&(((a28==1)&&((a19==2)&&((!(a25==1)&&(input==4))&&!(a11==1))))&&!(a0==1)))))&&(a14==8))&&(a7==1))&&!(a24==1))){ + a19 = 3; + a0 = 1; + a29 = 6; + a7 = 0; + return 24; + } else if(((a28==1)&&((!(a20==1)&&((a19==5)&&((a7==1)&&((a0==1)&&(!(a25==1)&&((a14==9)&&((!(a24==1)&&(((a29==8)||(a29==9))&&(input==2)))&&(a22==1))))))))&&!(a11==1)))){ + a14 = 8; + a0 = 0; + a7 = 0; + a29 = 8; + a19 = 4; + a24 = 1; + return -1; + } else if((((!(a25==1)&&((((a19==3)&&((a22==1)&&(!(a24==1)&&((((input==3)&&((a29==5)||(a29==6)))&&!(a0==1))&&!(a7==1)))))&&(a28==1))&&(a11==1)))&&(a20==1))&&(a14==9))){ + a0 = 1; + a19 = 2; + a24 = 1; + a7 = 1; + a29 = 7; + return 23; + } else if(((a7==1)&&((a20==1)&&((!(a0==1)&&(((a25==1)&&((((((input==4)&&(a11==1))&&(a14==9))&&(a22==1))&&!(a24==1))&&(a29==5)))&&(a19==2)))&&(a28==1))))){ + a24 = 1; + a19 = 1; + return -1; + } else if(((((!(a0==1)&&((((a14==8)&&((a24==1)&&((a19==4)&&((a7==1)&&(((a29==8)||(a29==9))&&(input==6))))))&&!(a11==1))&&(a25==1)))&&(a22==1))&&(a20==1))&&(a28==1))){ + a29 = 5; + a19 = 1; + a11 = 1; + a0 = 1; + return -1; + } else if(((a0==1)&&((((a20==1)&&((a14==8)&&(((((input==6)&&(((!(a25==1)&&(a29==5))&&(a19==1))||(((a19==5)&&((a29==8)&&(a25==1)))||(((a25==1)&&(a29==9))&&(a19==5)))))&&(a28==1))&&(a11==1))&&(a22==1))))&&!(a7==1))&&!(a24==1)))){ + a29 = 8; + a19 = 5; + a25 = 1; + a7 = 1; + a0 = 0; + return 23; + } else if(((a20==1)&&(((a7==1)&&((((a25==1)&&((a24==1)&&((a22==1)&&((a14==8)&&((input==4)&&(((a29==5)&&(a19==3))||(((a19==2)&&(a29==8))||((a29==9)&&(a19==2)))))))))&&!(a0==1))&&(a28==1)))&&(a11==1)))){ + a0 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a22==1)&&(!(a25==1)&&(!(a11==1)&&((a0==1)&&(((a14==8)&&(((((input==4)&&((((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))||((a29==6)&&(a19==2))))&&!(a20==1))&&(a24==1))&&(a7==1)))&&(a28==1))))))){ + a25 = 1; + a29 = 5; + a19 = 1; + a20 = 1; + a11 = 1; + return -1; + } else if((!(a20==1)&&(((a0==1)&&((a29==6)&&((a28==1)&&((a11==1)&&((((a25==1)&&(((input==6)&&(a19==3))&&(a7==1)))&&!(a24==1))&&(a14==9))))))&&(a22==1)))){ + a29 = 9; + a19 = 2; + a25 = 0; + a7 = 0; + a24 = 1; + a14 = 10; + return 23; + } else if((((!(a20==1)&&(!(a25==1)&&((!(a24==1)&&((((a0==1)&&((a28==1)&&(((a29==8)||(a29==9))&&(input==1))))&&!(a7==1))&&(a19==4)))&&!(a11==1))))&&(a22==1))&&(a14==9))){ + a11 = 1; + a20 = 1; + a14 = 8; + a7 = 1; + a24 = 1; + a29 = 5; + a19 = 1; + a25 = 1; + return -1; + } else if(((a24==1)&&(((((a22==1)&&(!(a20==1)&&(((a11==1)&&((((input==5)&&(a19==4))&&!(a0==1))&&(a28==1)))&&(a29==8))))&&!(a25==1))&&!(a7==1))&&(a14==9)))){ + a11 = 0; + a19 = 1; + a14 = 8; + a29 = 9; + a25 = 1; + a20 = 1; + return 23; + } else if((((a24==1)&&(((a0==1)&&((((a7==1)&&((a14==9)&&((((input==6)&&(a20==1))&&(a22==1))&&(a28==1))))&&(a25==1))&&!(a11==1)))&&(a29==6)))&&(a19==2))){ + a29 = 9; + a14 = 8; + a19 = 3; + a25 = 0; + a24 = 0; + a20 = 0; + return 23; + } else if((((a14==9)&&((a7==1)&&((a22==1)&&(((a19==5)&&((!(a24==1)&&((a28==1)&&(!(a11==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==4)))))&&!(a20==1)))&&!(a25==1)))))&&(a0==1))){ + a20 = 1; + a19 = 1; + a29 = 5; + a11 = 1; + a14 = 8; + a25 = 1; + a24 = 1; + return -1; + } else if(((a28==1)&&((((((a29==9)&&((((a24==1)&&((a11==1)&&((input==2)&&(a14==8))))&&(a25==1))&&(a20==1)))&&(a19==5))&&!(a7==1))&&(a22==1))&&(a0==1)))){ + a20 = 0; + a19 = 2; + a29 = 8; + a25 = 0; + a7 = 1; + return 21; + } else if((!(a7==1)&&((((!(a11==1)&&((a22==1)&&((((((input==6)&&!(a20==1))&&!(a0==1))&&(a25==1))&&(a14==9))&&(a28==1))))&&(a24==1))&&(a29==5))&&(a19==3)))){ + a19 = 1; + a0 = 1; + a7 = 1; + a14 = 8; + a11 = 1; + a20 = 1; + return -1; + } else if(((a14==8)&&((a20==1)&&((a19==4)&&(!(a25==1)&&(((a0==1)&&(!(a24==1)&&(((a11==1)&&(((input==2)&&((a29==7)||(a29==8)))&&(a7==1)))&&(a22==1))))&&(a28==1))))))){ + a29 = 6; + a25 = 1; + a24 = 1; + a0 = 0; + a7 = 0; + return 21; + } else if(((a24==1)&&((a19==2)&&((((a22==1)&&((((a7==1)&&((a29==7)&&(((a0==1)&&(input==3))&&(a14==9))))&&(a28==1))&&(a20==1)))&&(a25==1))&&!(a11==1))))){ + a19 = 1; + a14 = 8; + a11 = 1; + a29 = 5; + return -1; + } else if((((((a19==5)&&(((!(a0==1)&&((a7==1)&&(((((a29==7)||(a29==8))&&(input==6))&&(a22==1))&&(a11==1))))&&(a28==1))&&!(a24==1)))&&!(a25==1))&&(a20==1))&&(a14==9))){ + a7 = 0; + a14 = 8; + a29 = 6; + a19 = 2; + a0 = 1; + a11 = 0; + a25 = 1; + a20 = 0; + return 24; + } else if(((a22==1)&&(((((((a24==1)&&(!(a7==1)&&((a28==1)&&((input==2)&&(((a29==6)&&(a19==3))||(((a29==9)&&(a19==2))||((a19==3)&&(a29==5))))))))&&!(a0==1))&&!(a11==1))&&!(a20==1))&&(a25==1))&&(a14==8)))){ + a11 = 1; + a24 = 0; + a19 = 5; + a14 = 9; + a29 = 9; + return 23; + } else if(((a7==1)&&((((!(a0==1)&&((a22==1)&&(((!(a25==1)&&((input==6)&&(((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))))&&(a14==9))&&(a28==1))))&&!(a11==1))&&(a24==1))&&(a20==1)))){ + a29 = 8; + a11 = 1; + a24 = 0; + a7 = 0; + a19 = 4; + a14 = 8; + return 23; + } else if(((a19==2)&&((a14==9)&&((a28==1)&&(!(a11==1)&&((((a22==1)&&((a25==1)&&(!(a0==1)&&(!(a7==1)&&(((a29==8)||(a29==9))&&(input==5))))))&&!(a24==1))&&!(a20==1))))))){ + a14 = 8; + a19 = 5; + a29 = 7; + return 21; + } else if(((((((a14==8)&&(!(a20==1)&&((a24==1)&&((a7==1)&&((((input==3)&&((a29==8)||(a29==9)))&&(a11==1))&&(a19==4))))))&&(a28==1))&&(a22==1))&&!(a25==1))&&(a0==1))){ + a20 = 1; + a29 = 8; + a11 = 0; + a19 = 1; + return 24; + } else if((!(a20==1)&&(((((!(a7==1)&&((a24==1)&&((a29==9)&&((a28==1)&&((a19==4)&&((input==5)&&(a0==1)))))))&&(a22==1))&&(a14==9))&&(a11==1))&&!(a25==1)))){ + a7 = 1; + a19 = 1; + a14 = 8; + a25 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if(((a22==1)&&(((a28==1)&&(!(a24==1)&&(((a0==1)&&(!(a25==1)&&(((a20==1)&&((input==5)&&(((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))))&&(a14==8))))&&(a11==1))))&&(a7==1)))){ + a19 = 2; + a7 = 0; + a29 = 6; + a25 = 1; + a24 = 1; + a0 = 0; + return 24; + } else if(((!(a20==1)&&(((a25==1)&&((a7==1)&&((a19==4)&&(((a29==9)&&((a14==8)&&((a22==1)&&((a11==1)&&(input==6)))))&&(a28==1)))))&&(a0==1)))&&(a24==1))){ + a29 = 8; + a25 = 0; + a19 = 1; + a24 = 0; + return 21; + } else if((!(a0==1)&&((a28==1)&&((!(a24==1)&&((!(a11==1)&&(((a7==1)&&((a22==1)&&(((a14==9)&&(input==5))&&!(a25==1))))&&(a19==1)))&&(a20==1)))&&(a29==9))))){ + a14 = 8; + a11 = 1; + a25 = 1; + a0 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if(((a19==5)&&(((a14==9)&&(!(a7==1)&&(!(a0==1)&&(((a22==1)&&(((!(a24==1)&&((input==5)&&(a29==9)))&&!(a25==1))&&(a28==1)))&&!(a11==1)))))&&!(a20==1)))){ + a7 = 1; + a19 = 1; + a24 = 1; + a0 = 1; + a11 = 1; + a14 = 8; + a29 = 5; + a20 = 1; + a25 = 1; + return -1; + } else if((((((((a19==2)&&((((a0==1)&&(((input==5)&&((a29==5)||(a29==6)))&&(a7==1)))&&!(a24==1))&&(a28==1)))&&(a22==1))&&(a20==1))&&(a14==8))&&!(a11==1))&&(a25==1))){ + a29 = 9; + a7 = 0; + a20 = 0; + a0 = 0; + a11 = 1; + a24 = 1; + return 21; + } else if((((!(a25==1)&&((a29==9)&&(((a22==1)&&((((a24==1)&&((a14==10)&&((a0==1)&&(input==3))))&&(a28==1))&&(a19==1)))&&(a11==1))))&&(a20==1))&&!(a7==1))){ + a7 = 1; + a19 = 2; + a14 = 9; + a29 = 7; + return -1; + } else if((!(a25==1)&&((a22==1)&&((a28==1)&&((a14==8)&&((((!(a0==1)&&((((input==1)&&((a29==6)||(a29==7)))&&!(a20==1))&&!(a11==1)))&&!(a7==1))&&(a19==4))&&(a24==1))))))){ + a25 = 1; + a24 = 0; + a29 = 9; + a20 = 1; + return 21; + } else if((!(a25==1)&&((a14==8)&&(((((((!(a11==1)&&((a29==8)&&(!(a20==1)&&(input==1))))&&(a22==1))&&(a19==4))&&(a7==1))&&(a0==1))&&(a28==1))&&(a24==1))))){ + a29 = 7; + a20 = 1; + a19 = 3; + a14 = 9; + a7 = 0; + a11 = 1; + a25 = 1; + return 23; + } else if((((a29==8)&&((a22==1)&&((((a14==8)&&((a0==1)&&(!(a25==1)&&((((input==2)&&(a11==1))&&(a20==1))&&(a19==1)))))&&!(a7==1))&&(a28==1))))&&(a24==1))){ + a19 = 5; + a29 = 7; + a20 = 0; + a7 = 1; + return 24; + } else if(((a25==1)&&((a19==4)&&((!(a7==1)&&((a11==1)&&((((((a29==5)&&((input==5)&&!(a0==1)))&&(a14==8))&&!(a20==1))&&(a28==1))&&(a24==1))))&&(a22==1))))){ + a7 = 1; + a0 = 1; + a20 = 1; + a19 = 1; + return -1; + } else if((!(a11==1)&&((a14==9)&&((a19==2)&&((!(a25==1)&&(((!(a24==1)&&((a0==1)&&(((input==2)&&((a29==5)||(a29==6)))&&(a22==1))))&&(a28==1))&&(a7==1)))&&(a20==1)))))){ + a11 = 1; + a29 = 9; + a25 = 1; + return 23; + } else if(((a11==1)&&((a28==1)&&(((((a22==1)&&((a24==1)&&((a0==1)&&(!(a7==1)&&((input==5)&&(((a19==5)&&(a29==6))||(((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))))))))&&(a20==1))&&(a25==1))&&(a14==9))))){ + a7 = 1; + a29 = 9; + a14 = 8; + a0 = 0; + a19 = 4; + a20 = 0; + return 21; + } else if((!(a25==1)&&((a14==10)&&(((a11==1)&&((a0==1)&&((a24==1)&&((a22==1)&&(((a19==3)&&(((input==5)&&((a29==7)||(a29==8)))&&(a28==1)))&&(a7==1))))))&&!(a20==1))))){ + a19 = 2; + a0 = 0; + a11 = 0; + a14 = 9; + a20 = 1; + a29 = 8; + return -1; + } else if(((((a14==9)&&((!(a7==1)&&((a28==1)&&(((a19==1)&&(((((a29==8)||((a29==6)||(a29==7)))&&(input==2))&&(a22==1))&&!(a20==1)))&&!(a25==1))))&&(a11==1)))&&(a0==1))&&!(a24==1))){ + a25 = 1; + a14 = 8; + a29 = 5; + a7 = 1; + a24 = 1; + a20 = 1; + return -1; + } else if(((a22==1)&&(((!(a11==1)&&((a0==1)&&(!(a7==1)&&((a14==9)&&((((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))&&(input==3))&&!(a24==1))&&(a25==1))))))&&(a28==1))&&(a20==1)))){ + a29 = 7; + a14 = 8; + a0 = 0; + a19 = 1; + return 23; + } else if(((a25==1)&&(!(a24==1)&&(((((((((input==1)&&(((a19==3)&&(a29==9))||((a19==4)&&(a29==5))))&&(a22==1))&&(a14==9))&&!(a11==1))&&(a28==1))&&(a20==1))&&!(a7==1))&&(a0==1))))){ + a24 = 1; + a25 = 0; + a19 = 3; + a29 = 9; + a7 = 1; + return 23; + } else if((((a7==1)&&(((!(a24==1)&&(((!(a20==1)&&(((a14==8)&&(((a29==5)||(a29==6))&&(input==1)))&&(a28==1)))&&(a19==4))&&(a0==1)))&&(a25==1))&&(a22==1)))&&!(a11==1))){ + a19 = 2; + a29 = 6; + a7 = 0; + return 23; + } else if(((a28==1)&&(((a20==1)&&(!(a0==1)&&((a22==1)&&(!(a24==1)&&((a14==8)&&((a11==1)&&((a7==1)&&((input==6)&&((((a19==1)&&(a29==8))||((a29==9)&&(a19==1)))||((a19==2)&&(a29==5)))))))))))&&!(a25==1)))){ + a25 = 1; + a19 = 4; + a29 = 9; + a7 = 0; + a20 = 0; + a11 = 0; + a0 = 1; + return 24; + } else if((((a28==1)&&((a20==1)&&((((((((a11==1)&&(((a29==6)||(a29==7))&&(input==4)))&&(a19==2))&&(a25==1))&&!(a0==1))&&(a7==1))&&!(a24==1))&&(a22==1))))&&(a14==8))){ + a29 = 5; + a19 = 1; + a24 = 1; + a0 = 1; + return -1; + } else if((((a28==1)&&((a11==1)&&(((((a0==1)&&(!(a24==1)&&(((((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))&&(input==3))&&(a20==1))))&&!(a25==1))&&(a7==1))&&(a22==1))))&&(a14==8))){ + a25 = 1; + a19 = 1; + a0 = 0; + a24 = 1; + a29 = 8; + a7 = 0; + return 24; + } else if((((((!(a25==1)&&((a28==1)&&(!(a11==1)&&(!(a7==1)&&((a14==8)&&(((input==2)&&(((a29==7)||(a29==8))||(a29==9)))&&!(a0==1)))))))&&(a22==1))&&!(a24==1))&&(a19==3))&&!(a20==1))){ + a7 = 1; + a29 = 5; + a20 = 1; + a14 = 9; + return 21; + } else if(((a24==1)&&(!(a7==1)&&(((a19==1)&&((a11==1)&&((a25==1)&&(((a28==1)&&(!(a20==1)&&((((a29==5)||(a29==6))&&(input==3))&&(a22==1))))&&(a0==1)))))&&(a14==10))))){ + a25 = 0; + a19 = 3; + a29 = 9; + a0 = 0; + a20 = 1; + a14 = 8; + return 24; + } else if((!(a25==1)&&((a28==1)&&((((a22==1)&&((a14==9)&&(!(a0==1)&&((!(a11==1)&&((input==2)&&((((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))||((a19==2)&&(a29==6)))))&&!(a20==1)))))&&(a7==1))&&(a24==1))))){ + a19 = 3; + a24 = 0; + a29 = 9; + a14 = 8; + return -1; + } else if(((!(a11==1)&&(!(a7==1)&&((!(a20==1)&&((a28==1)&&(!(a25==1)&&(((a22==1)&&((a0==1)&&((input==1)&&(a24==1))))&&(a19==3)))))&&(a29==9))))&&(a14==9))){ + a0 = 0; + a20 = 1; + a7 = 1; + a11 = 1; + a14 = 8; + a29 = 7; + return 23; + } else if(((((a14==8)&&(((((((input==5)&&(((!(a25==1)&&(a29==5))&&(a19==1))||((((a25==1)&&(a29==8))&&(a19==5))||((a19==5)&&((a25==1)&&(a29==9))))))&&(a28==1))&&!(a20==1))&&(a22==1))&&!(a24==1))&&(a11==1)))&&!(a7==1))&&!(a0==1))){ + a24 = 1; + a7 = 1; + a20 = 1; + a0 = 1; + a19 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if(((a14==9)&&(((a24==1)&&((((a7==1)&&(((!(a20==1)&&(!(a0==1)&&((input==6)&&(a28==1))))&&!(a11==1))&&(a29==7)))&&(a22==1))&&(a19==2)))&&!(a25==1)))){ + a20 = 1; + a29 = 5; + a14 = 8; + a11 = 1; + a19 = 1; + a0 = 1; + a25 = 1; + return -1; + } else if((((a28==1)&&((((a14==9)&&(((!(a11==1)&&(((((a29==5)||(a29==6))&&(input==2))&&!(a25==1))&&!(a24==1)))&&(a22==1))&&!(a7==1)))&&(a0==1))&&(a19==1)))&&(a20==1))){ + a0 = 0; + a14 = 8; + a19 = 4; + a24 = 1; + a29 = 8; + a25 = 1; + a11 = 1; + return 24; + } else if(((!(a20==1)&&((a24==1)&&(((((a28==1)&&((a7==1)&&((a29==8)&&(((input==3)&&(a11==1))&&!(a0==1)))))&&(a19==3))&&(a22==1))&&(a14==8))))&&(a25==1))){ + a0 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((((!(a24==1)&&((((a22==1)&&((a19==5)&&((a14==8)&&((a29==7)&&(((a20==1)&&(input==1))&&!(a0==1))))))&&!(a7==1))&&!(a25==1)))&&(a28==1))&&(a11==1))){ + a7 = 1; + a29 = 6; + a24 = 1; + a19 = 4; + return 21; + } else if(((a24==1)&&((((!(a25==1)&&((a28==1)&&(((a0==1)&&((a20==1)&&((input==6)&&(((a19==3)&&(a29==9))||((a19==4)&&(a29==5))))))&&(a11==1))))&&(a22==1))&&(a14==9))&&!(a7==1)))){ + a20 = 0; + a14 = 8; + a29 = 6; + a7 = 1; + a19 = 1; + a0 = 0; + return 23; + } else if((((a22==1)&&((a7==1)&&(((a14==8)&&((((a20==1)&&((!(a0==1)&&((input==5)&&(((a29==5)||(a29==6))||(a29==7))))&&(a11==1)))&&(a19==1))&&!(a24==1)))&&!(a25==1))))&&(a28==1))){ + a25 = 1; + a29 = 5; + a0 = 1; + a24 = 1; + return -1; + } else if(((a22==1)&&((a14==10)&&((!(a7==1)&&((((((((input==4)&&(a0==1))&&(a11==1))&&!(a20==1))&&(a28==1))&&(a25==1))&&(a29==8))&&(a19==3)))&&(a24==1))))){ + a19 = 1; + a14 = 8; + a0 = 0; + a25 = 0; + return -1; + } else if(((((a19==3)&&((!(a7==1)&&((a28==1)&&((a20==1)&&((a11==1)&&((a24==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==4))&&(a14==9)))))))&&!(a0==1)))&&!(a25==1))&&(a22==1))){ + a25 = 1; + a7 = 1; + a14 = 8; + a19 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if(((a24==1)&&(((((a14==8)&&((a11==1)&&((a28==1)&&(((a0==1)&&((a25==1)&&(((a29==7)||(a29==8))&&(input==2))))&&(a22==1)))))&&!(a20==1))&&(a19==2))&&!(a7==1)))){ + a19 = 1; + a7 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if(((a14==9)&&(!(a0==1)&&(((a22==1)&&((a20==1)&&(((a11==1)&&((((a28==1)&&((input==3)&&((a29==6)||(a29==7))))&&(a7==1))&&(a24==1)))&&(a19==3))))&&!(a25==1))))){ + a25 = 1; + a0 = 1; + a19 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if((!(a11==1)&&((a22==1)&&((a14==9)&&((a28==1)&&((((!(a24==1)&&(((!(a25==1)&&(input==4))&&!(a20==1))&&(a7==1)))&&(a29==8))&&(a19==1))&&!(a0==1))))))){ + a14 = 8; + a0 = 1; + a19 = 2; + a7 = 0; + return 21; + } else if(((a20==1)&&((a28==1)&&(((!(a0==1)&&((a24==1)&&((a22==1)&&(!(a25==1)&&(!(a11==1)&&((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))&&(input==2)))))))&&(a7==1))&&(a14==9))))){ + a11 = 1; + a19 = 1; + a0 = 1; + a14 = 8; + a29 = 5; + a25 = 1; + return -1; + } else if((((a25==1)&&((a0==1)&&(((a28==1)&&(!(a7==1)&&(!(a11==1)&&((a24==1)&&((((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))||((a19==3)&&(a29==6)))&&(input==1))&&(a20==1))))))&&(a14==8))))&&(a22==1))){ + a11 = 1; + a7 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((!(a20==1)&&(((a22==1)&&((a24==1)&&((((((a11==1)&&(((input==1)&&(a28==1))&&!(a25==1)))&&(a19==5))&&(a29==8))&&(a14==9))&&(a7==1))))&&!(a0==1)))){ + a19 = 1; + a7 = 0; + a29 = 9; + a20 = 1; + a25 = 1; + a14 = 8; + return 21; + } else if((!(a11==1)&&(((a28==1)&&((((a22==1)&&((((a25==1)&&((a14==8)&&(!(a0==1)&&(input==5))))&&(a19==1))&&!(a20==1)))&&!(a7==1))&&(a29==5)))&&!(a24==1)))){ + a0 = 1; + a11 = 1; + a7 = 1; + a20 = 1; + a24 = 1; + return -1; + } else if(((a11==1)&&(!(a24==1)&&(((a19==4)&&((!(a25==1)&&((a22==1)&&((a14==9)&&(((a29==9)&&((input==3)&&(a20==1)))&&!(a0==1)))))&&(a28==1)))&&(a7==1))))){ + a7 = 0; + a14 = 8; + a29 = 8; + a20 = 0; + a11 = 0; + a19 = 5; + a25 = 1; + return 21; + } else if(((a7==1)&&(((a14==9)&&((a28==1)&&((a25==1)&&((a22==1)&&(((((a0==1)&&((input==1)&&((a29==5)||(a29==6))))&&(a19==4))&&(a24==1))&&!(a20==1))))))&&!(a11==1)))){ + a29 = 5; + a25 = 0; + a11 = 1; + a20 = 1; + a7 = 0; + return -1; + } else if((((a19==1)&&(!(a0==1)&&(((((a11==1)&&((a25==1)&&((((((a29==7)||(a29==8))||(a29==9))&&(input==5))&&(a22==1))&&(a24==1))))&&(a7==1))&&!(a20==1))&&(a28==1))))&&(a14==8))){ + a29 = 5; + a20 = 1; + a0 = 1; + return -1; + } else if(((((a14==8)&&((!(a11==1)&&(((a20==1)&&(((a19==4)&&((a7==1)&&((a24==1)&&(input==1))))&&(a28==1)))&&(a22==1)))&&!(a25==1)))&&!(a0==1))&&(a29==6))){ + a19 = 1; + a11 = 1; + a29 = 5; + a24 = 0; + a25 = 1; + a20 = 0; + return -1; + } else if(((a28==1)&&(((a11==1)&&(!(a25==1)&&(((a19==4)&&((a14==9)&&((a7==1)&&((a20==1)&&((a24==1)&&((input==3)&&((a29==6)||(a29==7))))))))&&(a0==1))))&&(a22==1)))){ + a14 = 8; + a25 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if((!(a0==1)&&(((((a22==1)&&(!(a11==1)&&((((!(a25==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==4)))&&(a19==1))&&(a7==1))&&(a20==1))))&&(a28==1))&&(a24==1))&&(a14==8)))){ + a11 = 1; + a29 = 5; + a19 = 3; + a20 = 0; + return 21; + } else if(((((a0==1)&&(!(a11==1)&&((a14==9)&&(((((a19==5)&&((a22==1)&&((input==5)&&((a29==8)||(a29==9)))))&&!(a20==1))&&(a28==1))&&(a7==1)))))&&!(a25==1))&&!(a24==1))){ + a0 = 0; + a25 = 1; + a19 = 2; + a20 = 1; + a29 = 6; + a14 = 8; + return 21; + } else if(((a22==1)&&((a11==1)&&((((a0==1)&&(((((a29==9)&&(!(a25==1)&&((a24==1)&&(!(a7==1)&&!(a20==1)))))&&(a19==5))||(((a29==5)&&((!(a24==1)&&((a20==1)&&(a7==1)))&&(a25==1)))&&(a19==1)))&&(input==4)))&&(a28==1))&&(a14==10))))){ + a29 = 7; + a0 = 0; + a11 = 0; + a20 = 0; + a24 = 1; + a25 = 1; + a19 = 3; + a14 = 8; + a7 = 1; + return -1; + } else if((((a19==1)&&(((!(a0==1)&&((((a22==1)&&((!(a24==1)&&((input==3)&&((a29==6)||(a29==7))))&&(a25==1)))&&(a28==1))&&(a7==1)))&&!(a20==1))&&(a14==8)))&&(a11==1))){ + a25 = 0; + a19 = 4; + a7 = 0; + a20 = 1; + a24 = 1; + a29 = 6; + return -1; + } else if(((a20==1)&&((a25==1)&&(!(a7==1)&&((a0==1)&&((((a19==1)&&(((a14==8)&&((a11==1)&&((input==2)&&((a29==7)||(a29==8)))))&&!(a24==1)))&&(a22==1))&&(a28==1))))))){ + a29 = 8; + a24 = 1; + a7 = 1; + a19 = 5; + a20 = 0; + a0 = 0; + return 21; + } else if(((a24==1)&&(((a0==1)&&(!(a11==1)&&((((((a28==1)&&((input==3)&&(((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))))&&!(a25==1))&&(a22==1))&&(a7==1))&&(a14==9))))&&!(a20==1)))){ + a29 = 9; + a19 = 1; + return -1; + } else if(((a7==1)&&(!(a0==1)&&(((a28==1)&&(((a14==9)&&(((((a29==8)&&((a24==1)&&(input==4)))&&(a19==4))&&!(a25==1))&&(a22==1)))&&!(a11==1)))&&(a20==1))))){ + a7 = 0; + a20 = 0; + a24 = 0; + a29 = 7; + a14 = 8; + a0 = 1; + a25 = 1; + return 23; + } else if(((a22==1)&&((!(a25==1)&&((a14==8)&&((((((a11==1)&&((((a29==8)||(a29==9))&&(input==5))&&(a20==1)))&&(a7==1))&&(a28==1))&&!(a24==1))&&!(a0==1))))&&(a19==3)))){ + a19 = 4; + a7 = 0; + a25 = 1; + a24 = 1; + a29 = 9; + return 24; + } else if(((!(a24==1)&&(((a20==1)&&(((a11==1)&&(!(a25==1)&&((((a29==5)&&(!(a7==1)&&(input==6)))&&(a0==1))&&(a28==1))))&&(a22==1)))&&(a14==9)))&&(a19==5))){ + a19 = 1; + a7 = 1; + a14 = 8; + a25 = 1; + a24 = 1; + return -1; + } else if(((((!(a7==1)&&((a20==1)&&(((((((input==2)&&((a29==6)||(a29==7)))&&!(a25==1))&&(a0==1))&&(a11==1))&&(a19==4))&&(a24==1))))&&(a22==1))&&(a28==1))&&(a14==10))){ + a14 = 8; + a19 = 2; + a25 = 1; + a29 = 6; + a20 = 0; + a7 = 1; + a0 = 0; + return 23; + } else if(((!(a11==1)&&(((a20==1)&&((((a28==1)&&(((((input==5)&&(a29==8))&&(a25==1))&&(a19==1))&&!(a0==1)))&&(a22==1))&&!(a7==1)))&&(a14==9)))&&!(a24==1))){ + a25 = 0; + a20 = 0; + a0 = 1; + a29 = 7; + a11 = 1; + return 21; + } else if(((((((((((a19==5)&&((((a24==1)&&(!(a20==1)&&!(a7==1)))&&!(a25==1))&&(a29==8)))||(((((!(a7==1)&&!(a20==1))&&(a24==1))&&!(a25==1))&&(a29==9))&&(a19==5)))||((a19==1)&&((a29==5)&&((a25==1)&&(!(a24==1)&&((a20==1)&&(a7==1)))))))&&(input==2))&&(a14==8))&&(a22==1))&&(a28==1))&&!(a11==1))&&!(a0==1))){ + a29 = 8; + a24 = 0; + a19 = 3; + a7 = 0; + a11 = 1; + a25 = 0; + a20 = 0; + return -1; + } else if(((a28==1)&&(!(a11==1)&&((((((input==5)&&((((a19==5)&&((a29==8)&&(!(a25==1)&&(!(a7==1)&&(a20==1)))))||((a19==5)&&((!(a25==1)&&((a20==1)&&!(a7==1)))&&(a29==9))))||(((a29==5)&&((a25==1)&&((a7==1)&&!(a20==1))))&&(a19==1))))&&(a24==1))&&(a14==9))&&!(a0==1))&&(a22==1))))){ + a20 = 1; + a7 = 0; + a29 = 6; + a19 = 1; + a25 = 1; + a11 = 1; + a24 = 0; + return -1; + } else if(((!(a11==1)&&((a28==1)&&((a22==1)&&((a20==1)&&((a24==1)&&(((((a19==3)&&((a0==1)&&(input==3)))&&(a25==1))&&(a14==9))&&(a29==5)))))))&&(a7==1))){ + a14 = 8; + a11 = 1; + a0 = 0; + a7 = 0; + a19 = 1; + return 23; + } else if((((a7==1)&&((((((((a19==4)&&(!(a0==1)&&((a14==9)&&(input==1))))&&!(a24==1))&&(a20==1))&&(a29==9))&&(a28==1))&&(a22==1))&&(a25==1)))&&(a11==1))){ + a19 = 3; + a25 = 0; + a29 = 5; + a24 = 1; + a7 = 0; + return -1; + } else if((((((a7==1)&&((a14==9)&&((a20==1)&&((a28==1)&&((((a25==1)&&((input==3)&&(a11==1)))&&(a22==1))&&(a29==8))))))&&(a19==2))&&!(a0==1))&&(a24==1))){ + a29 = 7; + a0 = 1; + a19 = 3; + a20 = 0; + return 21; + } else if((((a14==8)&&((a7==1)&&(!(a0==1)&&((((a22==1)&&(((a28==1)&&((a20==1)&&((a29==8)&&(input==1))))&&(a19==5)))&&(a11==1))&&(a25==1)))))&&(a24==1))){ + a29 = 5; + a0 = 1; + a19 = 1; + return -1; + } else if(((!(a11==1)&&((a22==1)&&((a19==1)&&(!(a7==1)&&(((((!(a25==1)&&((input==4)&&((a29==9)||((a29==7)||(a29==8)))))&&(a0==1))&&(a14==8))&&(a24==1))&&(a28==1))))))&&!(a20==1))){ + a29 = 9; + a19 = 2; + a20 = 1; + a0 = 0; + a11 = 1; + return 21; + } else if((((((a28==1)&&(((a25==1)&&((a19==4)&&(((a24==1)&&((a29==6)&&((a11==1)&&(input==6))))&&(a22==1))))&&(a14==10)))&&!(a7==1))&&(a20==1))&&(a0==1))){ + a14 = 8; + a20 = 0; + a29 = 7; + a0 = 0; + a19 = 2; + a25 = 0; + return 23; + } else if(((a22==1)&&(((a14==8)&&(((a28==1)&&(!(a11==1)&&((!(a20==1)&&((((input==1)&&((a29==8)||(a29==9)))&&(a19==4))&&!(a25==1)))&&(a24==1))))&&!(a7==1)))&&!(a0==1)))){ + a29 = 5; + a11 = 1; + a25 = 1; + a0 = 1; + a19 = 1; + a20 = 1; + a7 = 1; + return -1; + } else if(((((a22==1)&&((a20==1)&&((!(a11==1)&&((!(a7==1)&&(((((a29==5)&&(a19==5))||(((a29==8)&&(a19==4))||((a29==9)&&(a19==4))))&&(input==3))&&(a25==1)))&&(a24==1)))&&(a28==1))))&&!(a0==1))&&(a14==8))){ + a7 = 1; + a19 = 1; + a11 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if(((a14==9)&&((a22==1)&&((a28==1)&&(((!(a24==1)&&(((((input==4)&&((((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))||((a19==2)&&(a29==6))))&&(a11==1))&&!(a20==1))&&(a0==1)))&&(a7==1))&&(a25==1)))))){ + a19 = 1; + a25 = 0; + a29 = 7; + a7 = 0; + a14 = 10; + a24 = 1; + return 21; + } else if((((a0==1)&&((((a28==1)&&(!(a7==1)&&(((a19==3)&&((a22==1)&&((!(a25==1)&&(input==5))&&(a29==6))))&&(a14==9))))&&(a24==1))&&!(a20==1)))&&(a11==1))){ + a29 = 5; + a7 = 1; + a14 = 8; + a20 = 1; + a19 = 1; + a25 = 1; + return -1; + } else if(((a28==1)&&((((a19==2)&&((((a24==1)&&((((a11==1)&&(((a29==8)||(a29==9))&&(input==6)))&&(a14==8))&&!(a25==1)))&&!(a7==1))&&(a20==1)))&&(a22==1))&&(a0==1)))){ + a19 = 1; + a29 = 6; + a20 = 0; + return 23; + } else if(((((a22==1)&&((a19==2)&&((a7==1)&&((a14==10)&&(((((a28==1)&&((input==2)&&(a11==1)))&&(a29==5))&&(a24==1))&&!(a25==1))))))&&(a0==1))&&(a20==1))){ + a7 = 0; + a25 = 1; + a19 = 5; + a24 = 0; + a14 = 9; + a29 = 8; + return 21; + } else if(((((a22==1)&&(!(a0==1)&&((!(a7==1)&&(((!(a25==1)&&(((((a29==8)&&(a19==1))||((a19==1)&&(a29==9)))||((a29==5)&&(a19==2)))&&(input==2)))&&(a24==1))&&(a14==8)))&&(a28==1))))&&!(a11==1))&&(a20==1))){ + a19 = 2; + a29 = 6; + a25 = 1; + a7 = 1; + a11 = 1; + a20 = 0; + return 21; + } else if(((((!(a24==1)&&((((!(a0==1)&&((!(a11==1)&&((input==2)&&((a29==8)||(a29==9))))&&(a14==9)))&&(a19==4))&&(a20==1))&&!(a7==1)))&&(a22==1))&&!(a25==1))&&(a28==1))){ + a19 = 3; + a11 = 1; + a7 = 1; + a14 = 8; + a24 = 1; + a29 = 9; + return -1; + } else if((((((((a7==1)&&((a22==1)&&((((((a29==5)&&(a19==4))||(((a29==8)&&(a19==3))||((a29==9)&&(a19==3))))&&(input==2))&&(a11==1))&&(a14==8))))&&(a28==1))&&!(a24==1))&&(a0==1))&&(a20==1))&&(a25==1))){ + a19 = 2; + a20 = 0; + a29 = 9; + a7 = 0; + a11 = 0; + return 23; + } else if(((a19==1)&&((a14==8)&&((((a25==1)&&(((a28==1)&&(((!(a7==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==2)))&&(a11==1))&&!(a20==1)))&&(a0==1)))&&(a22==1))&&(a24==1))))){ + a19 = 2; + a25 = 0; + a29 = 6; + a11 = 0; + a20 = 1; + return 24; + } else if(((((a28==1)&&((((((a24==1)&&(!(a20==1)&&((a29==6)&&((input==5)&&(a11==1)))))&&(a14==8))&&(a7==1))&&!(a0==1))&&!(a25==1)))&&(a22==1))&&(a19==4))){ + a19 = 1; + a0 = 1; + a20 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if((((a19==5)&&((((a25==1)&&((a28==1)&&((((a14==8)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==3))&&!(a0==1)))&&(a22==1))&&(a7==1))))&&(a11==1))&&(a24==1)))&&!(a20==1))){ + a29 = 5; + a19 = 1; + a7 = 0; + a25 = 0; + a20 = 1; + return -1; + } else if((((a20==1)&&((!(a0==1)&&((((!(a25==1)&&((a19==2)&&(((input==3)&&!(a11==1))&&(a22==1))))&&!(a7==1))&&(a14==9))&&(a28==1)))&&!(a24==1)))&&(a29==9))){ + a29 = 7; + a25 = 1; + a19 = 5; + a7 = 1; + a20 = 0; + a0 = 1; + return -1; + } else if((((a25==1)&&((((a22==1)&&((a28==1)&&((a14==9)&&((!(a0==1)&&((((a29==8)||(a29==9))&&(input==1))&&!(a11==1)))&&!(a24==1)))))&&(a7==1))&&(a19==4)))&&(a20==1))){ + a19 = 1; + a29 = 5; + a24 = 1; + a14 = 8; + a0 = 1; + a11 = 1; + return -1; + } else if(((a19==2)&&((((a20==1)&&(((a0==1)&&(((a28==1)&&((a22==1)&&(((input==1)&&((a29==5)||(a29==6)))&&!(a7==1))))&&!(a24==1)))&&!(a25==1)))&&(a14==9))&&!(a11==1)))){ + a19 = 4; + a0 = 0; + a29 = 8; + a20 = 0; + a14 = 8; + a25 = 1; + return -1; + } else if((((((((a7==1)&&(!(a11==1)&&(!(a24==1)&&(!(a25==1)&&((a19==1)&&(!(a0==1)&&(input==4)))))))&&!(a20==1))&&(a22==1))&&(a28==1))&&(a14==9))&&(a29==5))){ + a29 = 8; + a19 = 5; + a20 = 1; + a11 = 1; + a14 = 8; + return -1; + } else if((!(a20==1)&&((a24==1)&&((a28==1)&&(!(a0==1)&&(((a14==9)&&((((((((a29==7)||(a29==8))||(a29==9))&&(input==1))&&(a19==1))&&(a25==1))&&(a22==1))&&!(a11==1)))&&(a7==1))))))){ + a19 = 5; + a20 = 1; + a29 = 8; + return -1; + } else if(((a24==1)&&((((a28==1)&&((((a25==1)&&(!(a11==1)&&(((input==6)&&((((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))||((a19==3)&&(a29==6))))&&(a22==1))))&&(a0==1))&&!(a20==1)))&&(a14==9))&&(a7==1)))){ + a20 = 1; + a14 = 8; + a11 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((!(a7==1)&&((a14==10)&&((((a22==1)&&((a0==1)&&(!(a25==1)&&((a24==1)&&(((input==4)&&((a29==7)||(a29==8)))&&(a28==1))))))&&(a20==1))&&(a19==3))))&&(a11==1))){ + a0 = 0; + a19 = 1; + a25 = 1; + a24 = 0; + a14 = 9; + a29 = 5; + return -1; + } else if((!(a25==1)&&((a28==1)&&(((!(a20==1)&&(((((((((a29==8)&&(a19==1))||((a29==9)&&(a19==1)))||((a29==5)&&(a19==2)))&&(input==4))&&(a0==1))&&!(a7==1))&&(a14==9))&&!(a11==1)))&&(a22==1))&&!(a24==1))))){ + a0 = 0; + a24 = 1; + a19 = 5; + a25 = 1; + a14 = 8; + a29 = 8; + a11 = 1; + return 23; + } else if((((a20==1)&&((a0==1)&&(((((a19==3)&&(!(a7==1)&&((a29==6)&&((a11==1)&&((a22==1)&&(input==6))))))&&(a24==1))&&(a25==1))&&(a28==1))))&&(a14==9))){ + a20 = 0; + a0 = 0; + a19 = 2; + a14 = 8; + a29 = 7; + return 21; + } else if((((!(a25==1)&&(!(a0==1)&&((a22==1)&&((a14==8)&&((!(a7==1)&&((a19==4)&&((a28==1)&&((input==4)&&((a29==8)||(a29==9))))))&&(a11==1))))))&&(a20==1))&&!(a24==1))){ + a19 = 1; + a29 = 5; + a24 = 1; + a7 = 1; + return 24; + } return calculate_output15(input); + } + + int calculate_output15(int input) { + if(((a14==8)&&(((a11==1)&&(((a0==1)&&((a22==1)&&((((a19==2)&&((!(a24==1)&&(input==4))&&(a29==8)))&&!(a25==1))&&!(a20==1))))&&(a28==1)))&&(a7==1)))){ + a0 = 0; + a7 = 0; + a29 = 6; + return 23; + } else if(((a28==1)&&((a22==1)&&(!(a0==1)&&((a25==1)&&(((!(a7==1)&&((a19==1)&&(((((a29==6)||(a29==7))&&(input==4))&&!(a24==1))&&(a20==1))))&&!(a11==1))&&(a14==8))))))){ + a19 = 2; + a14 = 9; + a29 = 9; + a24 = 1; + return 21; + } else if((!(a11==1)&&(((a25==1)&&(!(a24==1)&&((((a20==1)&&((a28==1)&&(((input==5)&&(((a29==9)&&(a19==3))||((a19==4)&&(a29==5))))&&(a0==1))))&&(a14==9))&&(a22==1))))&&!(a7==1)))){ + a24 = 1; + a14 = 8; + a11 = 1; + a7 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((a24==1)&&(!(a25==1)&&((a22==1)&&(((a14==9)&&(!(a20==1)&&((!(a11==1)&&(!(a7==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==1))&&(a28==1))))&&(a19==1))))&&!(a0==1)))))){ + a20 = 1; + a29 = 5; + a0 = 1; + a11 = 1; + a25 = 1; + a7 = 1; + a14 = 8; + return -1; + } else if(((((!(a7==1)&&(((a22==1)&&((((a29==6)&&(!(a25==1)&&((a20==1)&&(input==5))))&&(a19==4))&&(a0==1)))&&(a24==1)))&&(a28==1))&&(a14==9))&&!(a11==1))){ + a19 = 5; + a20 = 0; + a11 = 1; + a24 = 0; + a0 = 0; + a14 = 8; + a29 = 7; + a7 = 1; + return 24; + } else if(((a19==4)&&(((((a28==1)&&(!(a11==1)&&(((a22==1)&&((a20==1)&&(((a24==1)&&(input==5))&&(a14==9))))&&!(a25==1))))&&!(a7==1))&&!(a0==1))&&(a29==9)))){ + a25 = 1; + a7 = 1; + a29 = 6; + a19 = 2; + return -1; + } else if(((((((a29==5)&&(((a14==8)&&((a22==1)&&((!(a24==1)&&((input==2)&&(a25==1)))&&!(a11==1))))&&!(a0==1)))&&(a28==1))&&(a19==4))&&(a20==1))&&!(a7==1))){ + a19 = 2; + a29 = 8; + a14 = 9; + a25 = 0; + a24 = 1; + return 24; + } else if(((a22==1)&&(((((a14==8)&&((((((((a29==8)||(a29==9))&&(input==1))&&!(a7==1))&&(a28==1))&&!(a0==1))&&(a19==1))&&(a25==1)))&&(a11==1))&&(a20==1))&&!(a24==1)))){ + a25 = 0; + a7 = 1; + a19 = 3; + a29 = 9; + a24 = 1; + a14 = 9; + return 21; + } else if(((a7==1)&&((a22==1)&&((a0==1)&&(((a25==1)&&(!(a11==1)&&((a14==9)&&((((((a19==3)&&(a29==6))||(((a19==2)&&(a29==9))||((a19==3)&&(a29==5))))&&(input==2))&&!(a20==1))&&!(a24==1)))))&&(a28==1)))))){ + a25 = 0; + a11 = 1; + a19 = 4; + a29 = 8; + return -1; + } else if(((((!(a0==1)&&(!(a25==1)&&(!(a20==1)&&((a14==8)&&((a19==5)&&((a22==1)&&(((input==6)&&(a11==1))&&(a29==7))))))))&&(a7==1))&&!(a24==1))&&(a28==1))){ + a29 = 8; + a25 = 1; + a20 = 1; + a14 = 9; + a0 = 1; + a7 = 0; + a19 = 4; + return 24; + } else if(((a19==4)&&((a25==1)&&((a11==1)&&((((a14==10)&&((a28==1)&&((!(a7==1)&&((a20==1)&&((input==3)&&((a29==8)||(a29==9)))))&&(a22==1))))&&(a24==1))&&(a0==1)))))){ + a24 = 0; + a29 = 7; + a20 = 0; + a25 = 0; + a19 = 1; + a14 = 8; + a11 = 0; + return 24; + } else if((((!(a11==1)&&(((((a28==1)&&((a0==1)&&(((a19==1)&&((input==5)&&((a29==8)||(a29==9))))&&(a22==1))))&&(a7==1))&&(a14==9))&&!(a20==1)))&&!(a24==1))&&(a25==1))){ + a0 = 0; + a20 = 1; + a24 = 1; + a14 = 8; + a11 = 1; + a29 = 6; + a19 = 4; + return 23; + } else if((!(a7==1)&&(!(a0==1)&&((a25==1)&&(((((a14==8)&&((a19==3)&&(!(a20==1)&&(((input==4)&&((a29==6)||(a29==7)))&&(a11==1)))))&&(a28==1))&&(a22==1))&&(a24==1)))))){ + a7 = 1; + a29 = 8; + return -1; + } else if(((a19==4)&&(((a28==1)&&((a14==8)&&(((!(a11==1)&&((((a22==1)&&((input==6)&&((a29==8)||(a29==9))))&&!(a25==1))&&!(a20==1)))&&(a24==1))&&!(a7==1))))&&!(a0==1)))){ + a0 = 1; + a25 = 1; + a7 = 1; + a20 = 1; + a19 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if(((a19==3)&&((a24==1)&&(!(a25==1)&&(((a0==1)&&((((((((a29==7)||(a29==8))&&(input==6))&&(a28==1))&&(a11==1))&&!(a20==1))&&(a14==10))&&(a22==1)))&&(a7==1)))))){ + a25 = 1; + a7 = 0; + a19 = 1; + a24 = 0; + a14 = 9; + a29 = 6; + return 23; + } else if(((!(a0==1)&&((a19==3)&&(((a28==1)&&((a24==1)&&((((((a20==1)&&(input==3))&&(a14==8))&&(a25==1))&&(a7==1))&&(a22==1))))&&(a29==6))))&&!(a11==1))){ + a11 = 1; + a29 = 5; + a19 = 5; + return 24; + } else if(((a24==1)&&((a14==8)&&((a19==3)&&((((a22==1)&&((!(a20==1)&&((a28==1)&&(((input==3)&&(((a29==5)||(a29==6))||(a29==7)))&&(a25==1))))&&!(a7==1)))&&!(a11==1))&&(a0==1)))))){ + a29 = 6; + a11 = 1; + a14 = 9; + a7 = 1; + return 23; + } else if(((a11==1)&&(!(a7==1)&&((a28==1)&&((a20==1)&&((((((input==2)&&(((!(a25==1)&&(a29==5))&&(a19==1))||((((a29==8)&&(a25==1))&&(a19==5))||((a19==5)&&((a25==1)&&(a29==9))))))&&(a14==8))&&(a0==1))&&(a22==1))&&!(a24==1))))))){ + a25 = 1; + a19 = 1; + a24 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if((((((a22==1)&&(((a0==1)&&((a28==1)&&(((((a29==6)&&(input==4))&&(a7==1))&&(a14==8))&&(a19==4))))&&!(a24==1)))&&(a20==1))&&(a11==1))&&!(a25==1))){ + a19 = 1; + a29 = 5; + a25 = 1; + a24 = 1; + return -1; + } else if((((a22==1)&&((a14==9)&&(((((a11==1)&&(((input==5)&&((((a29==9)&&(a25==1))&&(a19==5))||((a19==1)&&(!(a25==1)&&(a29==5)))))&&!(a20==1)))&&!(a7==1))&&(a28==1))&&(a0==1))))&&(a24==1))){ + a25 = 1; + a0 = 0; + a29 = 5; + a11 = 0; + a24 = 0; + a19 = 5; + a14 = 8; + return -1; + } else if((((a24==1)&&(((((((((input==6)&&(((a19==4)&&(a29==5))||(((a29==8)&&(a19==3))||((a19==3)&&(a29==9)))))&&(a14==9))&&(a28==1))&&(a20==1))&&!(a7==1))&&(a22==1))&&(a11==1))&&(a25==1)))&&(a0==1))){ + a29 = 5; + a14 = 8; + a19 = 1; + a7 = 1; + return -1; + } else if(((((a20==1)&&((a14==10)&&((a28==1)&&(!(a25==1)&&(((a11==1)&&(((a29==8)&&(!(a7==1)&&(input==3)))&&(a0==1)))&&(a24==1))))))&&(a19==1))&&(a22==1))){ + a7 = 1; + a0 = 0; + a20 = 0; + a29 = 6; + a19 = 5; + a14 = 8; + return 23; + } else if((((a28==1)&&(!(a11==1)&&((a19==5)&&((a22==1)&&(!(a24==1)&&(((a25==1)&&((!(a0==1)&&((input==5)&&((a29==6)||(a29==7))))&&(a14==9)))&&!(a20==1)))))))&&!(a7==1))){ + a24 = 1; + a11 = 1; + a19 = 4; + a20 = 1; + a29 = 8; + a7 = 1; + a25 = 0; + a14 = 8; + return 21; + } else if(((a29==9)&&(((((a24==1)&&(!(a7==1)&&((a25==1)&&((a20==1)&&((a14==8)&&(((input==1)&&!(a0==1))&&(a11==1)))))))&&(a19==5))&&(a28==1))&&(a22==1)))){ + a25 = 0; + a19 = 3; + return 24; + } else if(((((a28==1)&&((a11==1)&&(((a22==1)&&((a20==1)&&(((a19==1)&&(!(a0==1)&&((input==1)&&((a29==6)||(a29==7)))))&&(a25==1))))&&!(a24==1))))&&(a14==8))&&!(a7==1))){ + a19 = 5; + a11 = 0; + a29 = 5; + a20 = 0; + a24 = 1; + return 24; + } else if((!(a7==1)&&(((a22==1)&&((a28==1)&&((((a14==9)&&(((!(a25==1)&&((a11==1)&&(input==2)))&&(a29==7))&&!(a20==1)))&&(a24==1))&&(a19==4))))&&!(a0==1)))){ + a19 = 1; + a20 = 1; + a25 = 1; + a14 = 8; + a0 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if(((((a28==1)&&(((((a24==1)&&(((a22==1)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==6))&&!(a20==1)))&&(a14==9)))&&(a19==1))&&(a0==1))&&!(a25==1)))&&!(a11==1))&&(a7==1))){ + a25 = 1; + a0 = 0; + a14 = 8; + a29 = 7; + a24 = 0; + a19 = 2; + return 24; + } else if((!(a20==1)&&((a7==1)&&(((a14==9)&&(((a0==1)&&(!(a11==1)&&(((((((a29==8)&&(a25==1))&&(a19==5))||(((a29==9)&&(a25==1))&&(a19==5)))||((!(a25==1)&&(a29==5))&&(a19==1)))&&(input==4))&&(a22==1))))&&!(a24==1)))&&(a28==1))))){ + a29 = 6; + a7 = 0; + a25 = 1; + a19 = 5; + a11 = 1; + return 21; + } else if(((a14==9)&&(((a28==1)&&((a25==1)&&((a19==2)&&((a22==1)&&(!(a20==1)&&((((((a29==6)||(a29==7))&&(input==3))&&(a24==1))&&!(a7==1))&&!(a11==1)))))))&&(a0==1)))){ + a14 = 8; + a29 = 5; + a0 = 0; + a24 = 0; + a19 = 3; + return -1; + } else if(((a28==1)&&(((((a11==1)&&((((a0==1)&&((a22==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==5))&&(a19==4))))&&!(a24==1))&&!(a25==1)))&&!(a7==1))&&(a14==9))&&!(a20==1)))){ + a14 = 8; + a24 = 1; + a19 = 2; + a29 = 7; + a0 = 0; + return 21; + } else if(((a22==1)&&(((a19==4)&&((a0==1)&&(((a11==1)&&((!(a7==1)&&(((a28==1)&&((input==4)&&((a29==7)||((a29==5)||(a29==6)))))&&(a20==1)))&&!(a24==1)))&&(a25==1))))&&(a14==9)))){ + a29 = 9; + a19 = 3; + return -1; + } else if(((a25==1)&&(((((((a24==1)&&(((a14==8)&&(!(a0==1)&&(((a29==8)||(a29==9))&&(input==5))))&&(a19==5)))&&!(a20==1))&&(a22==1))&&(a28==1))&&(a7==1))&&!(a11==1)))){ + a19 = 1; + a11 = 1; + a0 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if(((a14==8)&&((((((!(a20==1)&&(((((input==2)&&!(a24==1))&&(a29==9))&&(a28==1))&&(a7==1)))&&(a19==5))&&(a22==1))&&!(a11==1))&&!(a0==1))&&!(a25==1)))){ + a29 = 5; + a25 = 1; + a19 = 1; + a24 = 1; + a11 = 1; + a20 = 1; + a0 = 1; + return -1; + } else if((!(a7==1)&&((a11==1)&&((a14==10)&&(((((((((((a29==8)&&(a19==1))||((a29==9)&&(a19==1)))||((a29==5)&&(a19==2)))&&(input==6))&&!(a20==1))&&!(a25==1))&&(a0==1))&&(a28==1))&&(a24==1))&&(a22==1)))))){ + a29 = 5; + a25 = 1; + a19 = 1; + a20 = 1; + a7 = 1; + a14 = 8; + return -1; + } else if(((a14==8)&&(((a24==1)&&(((a22==1)&&((((!(a0==1)&&(((a20==1)&&(input==2))&&(a11==1)))&&(a25==1))&&(a29==9))&&(a28==1)))&&!(a7==1)))&&(a19==4)))){ + a29 = 8; + a7 = 1; + a19 = 5; + return 23; + } else if(((a20==1)&&(((a19==5)&&((!(a25==1)&&((((a7==1)&&((a22==1)&&((a0==1)&&((input==2)&&((a29==8)||(a29==9))))))&&(a11==1))&&(a14==9)))&&!(a24==1)))&&(a28==1)))){ + a0 = 0; + a14 = 8; + a19 = 4; + a29 = 6; + a24 = 1; + return -1; + } else if(((!(a11==1)&&((a7==1)&&((a19==3)&&(((a29==9)&&((((a20==1)&&(((a22==1)&&(input==5))&&(a0==1)))&&(a25==1))&&(a14==9)))&&(a28==1)))))&&!(a24==1))){ + a11 = 1; + a24 = 1; + a29 = 5; + a14 = 8; + a19 = 1; + return -1; + } else if(((a24==1)&&(((((a0==1)&&(((((a28==1)&&((input==6)&&(((a19==5)&&(a29==6))||(((a19==4)&&(a29==9))||((a29==5)&&(a19==5))))))&&(a14==10))&&(a11==1))&&!(a7==1)))&&(a22==1))&&!(a25==1))&&(a20==1)))){ + a0 = 0; + a14 = 8; + a19 = 3; + a11 = 0; + a7 = 1; + a20 = 0; + a29 = 8; + a25 = 1; + return -1; + } else if(((((a14==8)&&((((((((a25==1)&&((input==6)&&((a29==6)||(a29==7))))&&(a28==1))&&(a22==1))&&(a24==1))&&(a11==1))&&!(a7==1))&&!(a0==1)))&&!(a20==1))&&(a19==2))){ + a19 = 5; + a7 = 1; + a29 = 8; + a20 = 1; + return -1; + } else if((!(a25==1)&&(((a14==9)&&((a22==1)&&((a19==2)&&(((!(a0==1)&&(!(a24==1)&&(((input==2)&&((a29==8)||((a29==6)||(a29==7))))&&!(a11==1))))&&(a20==1))&&!(a7==1)))))&&(a28==1)))){ + a19 = 1; + a14 = 8; + a7 = 1; + a25 = 1; + a24 = 1; + a29 = 5; + a0 = 1; + a11 = 1; + return -1; + } else if((((((((a20==1)&&((a22==1)&&((a25==1)&&((a14==9)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==3))&&(a0==1))))))&&!(a7==1))&&(a28==1))&&(a19==2))&&(a11==1))&&(a24==1))){ + a20 = 0; + a14 = 8; + a0 = 0; + a25 = 0; + a19 = 5; + a29 = 7; + return 21; + } else if(((a28==1)&&(((a25==1)&&(((a22==1)&&((((a14==9)&&((a11==1)&&((((a19==3)&&(a29==5))||(((a19==2)&&(a29==8))||((a29==9)&&(a19==2))))&&(input==2))))&&!(a20==1))&&!(a0==1)))&&(a7==1)))&&!(a24==1)))){ + a0 = 1; + a20 = 1; + a14 = 8; + a19 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if(((((a7==1)&&((a20==1)&&((a22==1)&&((a19==4)&&(((((a28==1)&&(((a29==7)||(a29==8))&&(input==3)))&&(a11==1))&&!(a0==1))&&!(a25==1))))))&&(a14==8))&&(a24==1))){ + a0 = 1; + a11 = 0; + a24 = 0; + a7 = 0; + a29 = 6; + a19 = 5; + a25 = 1; + a20 = 0; + return -1; + } else if((!(a25==1)&&((a20==1)&&(((a14==8)&&((a22==1)&&(!(a0==1)&&(((a28==1)&&((((input==5)&&(((a29==5)||(a29==6))||(a29==7)))&&(a24==1))&&(a7==1)))&&(a19==5)))))&&(a11==1))))){ + a11 = 0; + a19 = 3; + a24 = 0; + a0 = 1; + a29 = 7; + a20 = 0; + return -1; + } else if(((a28==1)&&((a14==8)&&(!(a25==1)&&(((((((a24==1)&&(!(a11==1)&&((input==2)&&((a29==7)||((a29==5)||(a29==6))))))&&(a22==1))&&!(a0==1))&&(a19==2))&&(a20==1))&&(a7==1)))))){ + a29 = 8; + a19 = 3; + a25 = 1; + a11 = 1; + return 23; + } else if((((!(a7==1)&&((a29==9)&&((a14==8)&&((((a25==1)&&((((a0==1)&&(input==6))&&(a20==1))&&(a28==1)))&&(a11==1))&&(a19==4)))))&&(a22==1))&&!(a24==1))){ + a25 = 0; + a7 = 1; + a19 = 3; + a20 = 0; + a11 = 0; + return 23; + } else if((((a24==1)&&(!(a0==1)&&((a28==1)&&((a11==1)&&(((!(a7==1)&&(((a25==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==2)))&&!(a20==1)))&&(a14==8))&&(a19==1))))))&&(a22==1))){ + a20 = 1; + a7 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if((!(a20==1)&&((((!(a24==1)&&((!(a0==1)&&((a25==1)&&(!(a7==1)&&(((input==6)&&((a29==8)||(a29==9)))&&(a19==4)))))&&(a14==8)))&&(a22==1))&&(a11==1))&&(a28==1)))){ + a7 = 1; + a0 = 1; + a25 = 0; + a29 = 6; + a11 = 0; + a19 = 3; + return 21; + } else if((((a7==1)&&((!(a0==1)&&((((((a11==1)&&((((a29==8)||(a29==9))&&(input==6))&&(a14==8)))&&(a28==1))&&(a19==3))&&(a22==1))&&(a25==1)))&&!(a20==1)))&&!(a24==1))){ + a24 = 1; + a19 = 4; + a7 = 0; + a29 = 7; + return 21; + } else if(((a22==1)&&(!(a20==1)&&((a11==1)&&((a19==3)&&((a28==1)&&((a0==1)&&((a29==6)&&((!(a25==1)&&(((input==5)&&!(a24==1))&&(a14==8)))&&(a7==1)))))))))){ + a19 = 4; + a29 = 7; + a0 = 0; + a7 = 0; + return 21; + } else if((((a19==2)&&(((((((((((a29==6)||(a29==7))&&(input==3))&&!(a11==1))&&!(a25==1))&&(a22==1))&&(a24==1))&&(a0==1))&&(a28==1))&&(a14==9))&&!(a7==1)))&&!(a20==1))){ + a29 = 5; + a14 = 8; + a11 = 1; + a20 = 1; + a7 = 1; + a19 = 1; + a25 = 1; + return -1; + } else if(((a28==1)&&((a19==4)&&(!(a20==1)&&((((a25==1)&&(((!(a24==1)&&(((input==3)&&((a29==6)||(a29==7)))&&(a7==1)))&&!(a0==1))&&(a22==1)))&&!(a11==1))&&(a14==8)))))){ + a20 = 1; + a24 = 1; + a19 = 2; + a29 = 7; + a11 = 1; + a7 = 0; + return 23; + } else if(((a7==1)&&(!(a11==1)&&((a28==1)&&((a24==1)&&(!(a0==1)&&((a22==1)&&((((a25==1)&&((a19==3)&&((((a29==6)||(a29==7))||(a29==8))&&(input==1))))&&(a20==1))&&(a14==9))))))))){ + a29 = 9; + a11 = 1; + a20 = 0; + return -1; + } else if(((((((a19==3)&&(((a7==1)&&((a11==1)&&((a24==1)&&((a28==1)&&((input==6)&&((a29==7)||((a29==5)||(a29==6))))))))&&(a22==1)))&&(a14==8))&&!(a0==1))&&!(a20==1))&&(a25==1))){ + a20 = 1; + a14 = 9; + a29 = 5; + a24 = 0; + a19 = 5; + a25 = 0; + a11 = 0; + a0 = 1; + a7 = 0; + return 23; + } else if(((a14==8)&&((!(a7==1)&&((a25==1)&&((a22==1)&&((a24==1)&&((a20==1)&&((((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))&&(input==5))&&!(a0==1))&&(a28==1)))))))&&(a11==1)))){ + a29 = 9; + a19 = 3; + a7 = 1; + return -1; + } else if(((a22==1)&&((a28==1)&&(((((!(a7==1)&&((((((a29==5)&&(a19==5))||(((a19==4)&&(a29==8))||((a29==9)&&(a19==4))))&&(input==5))&&(a25==1))&&(a11==1)))&&(a24==1))&&!(a0==1))&&!(a20==1))&&(a14==8))))){ + a7 = 1; + a20 = 1; + a0 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((!(a7==1)&&(((!(a25==1)&&((!(a0==1)&&(((a20==1)&&(!(a24==1)&&((((a29==8)||(a29==9))&&(input==2))&&(a14==9))))&&(a28==1)))&&(a22==1)))&&(a11==1))&&(a19==4)))){ + a25 = 1; + a19 = 5; + a7 = 1; + a20 = 0; + a29 = 6; + a0 = 1; + a24 = 1; + a11 = 0; + return 23; + } else if((((a14==9)&&(((((a19==5)&&((!(a24==1)&&((a7==1)&&(!(a11==1)&&((input==3)&&((a29==7)||(a29==8))))))&&(a20==1)))&&!(a25==1))&&(a22==1))&&!(a0==1)))&&(a28==1))){ + a20 = 0; + a19 = 2; + a11 = 1; + a14 = 8; + a25 = 1; + a24 = 1; + a29 = 5; + return 21; + } else if(((((((a25==1)&&((((((a28==1)&&((input==5)&&(((a29==7)||(a29==8))||(a29==9))))&&(a14==8))&&(a22==1))&&(a20==1))&&(a19==1)))&&(a0==1))&&!(a7==1))&&!(a24==1))&&!(a11==1))){ + a29 = 9; + a20 = 0; + a7 = 1; + a14 = 9; + a19 = 2; + a11 = 1; + return 23; + } else if((((a14==8)&&((!(a24==1)&&(!(a7==1)&&(((a11==1)&&((a22==1)&&(!(a20==1)&&(((input==5)&&(((a29==5)||(a29==6))||(a29==7)))&&!(a0==1)))))&&(a25==1))))&&(a28==1)))&&(a19==4))){ + a29 = 5; + a19 = 2; + a24 = 1; + a20 = 1; + a25 = 0; + return 24; + } else if((((((a22==1)&&((!(a11==1)&&(((((a14==9)&&((input==2)&&((a29==9)||((a29==7)||(a29==8)))))&&!(a7==1))&&!(a25==1))&&(a19==1)))&&!(a20==1)))&&(a28==1))&&(a24==1))&&(a0==1))){ + a14 = 8; + a0 = 0; + a29 = 6; + a25 = 1; + a11 = 1; + a19 = 2; + return 21; + } else if(((a11==1)&&(((a24==1)&&(((a22==1)&&((a25==1)&&((a28==1)&&((((input==6)&&(((a29==9)&&(a19==2))||((a29==5)&&(a19==3))))&&(a7==1))&&(a20==1)))))&&(a14==9)))&&!(a0==1)))){ + a7 = 0; + a11 = 0; + a20 = 0; + a25 = 0; + a14 = 8; + a19 = 1; + a29 = 7; + return 23; + } else if(((((a25==1)&&(!(a11==1)&&(!(a7==1)&&(((a19==1)&&((((a22==1)&&((input==3)&&((a29==9)||((a29==7)||(a29==8)))))&&(a20==1))&&(a28==1)))&&!(a24==1)))))&&(a0==1))&&(a14==8))){ + a24 = 1; + a29 = 5; + a11 = 1; + a7 = 1; + return -1; + } else if((((a22==1)&&((a28==1)&&((!(a11==1)&&(((((a7==1)&&((((a19==3)&&(a29==5))||(((a19==2)&&(a29==8))||((a29==9)&&(a19==2))))&&(input==2)))&&(a14==9))&&(a0==1))&&(a24==1)))&&(a20==1))))&&!(a25==1))){ + a20 = 0; + a19 = 2; + a14 = 8; + a7 = 0; + a25 = 1; + a24 = 0; + a29 = 5; + return 24; + } else if((((a0==1)&&(!(a25==1)&&((a19==4)&&(((a29==9)&&((((((input==4)&&(a14==8))&&!(a20==1))&&(a28==1))&&(a22==1))&&!(a11==1)))&&(a7==1)))))&&(a24==1))){ + a7 = 0; + a25 = 1; + a19 = 5; + a11 = 1; + a20 = 1; + a29 = 5; + a14 = 9; + return 23; + } else if(((a29==9)&&((a14==9)&&(((((a25==1)&&((a22==1)&&((a0==1)&&(!(a20==1)&&(!(a11==1)&&((input==4)&&!(a7==1)))))))&&(a19==5))&&(a28==1))&&!(a24==1))))){ + a7 = 1; + a11 = 1; + a29 = 5; + return 24; + } else if(((a28==1)&&((a14==8)&&((a19==5)&&(!(a11==1)&&(((((a7==1)&&(((a0==1)&&(((a29==5)||(a29==6))&&(input==4)))&&!(a20==1)))&&(a24==1))&&(a22==1))&&(a25==1))))))){ + a29 = 5; + a25 = 0; + a24 = 0; + return 23; + } else if(((!(a24==1)&&((a19==3)&&(((a7==1)&&((a22==1)&&((a28==1)&&(!(a20==1)&&((a14==8)&&(((input==1)&&(((a29==7)||(a29==8))||(a29==9)))&&!(a0==1)))))))&&!(a25==1))))&&!(a11==1))){ + a7 = 0; + a29 = 5; + a20 = 1; + a19 = 4; + a24 = 1; + a11 = 1; + return 24; + } else if(((a19==5)&&((!(a7==1)&&(!(a24==1)&&(((a22==1)&&((a28==1)&&((a20==1)&&((((((a29==5)||(a29==6))||(a29==7))&&(input==2))&&!(a0==1))&&(a25==1)))))&&(a14==8))))&&!(a11==1)))){ + a24 = 1; + a14 = 9; + a25 = 0; + a19 = 4; + a29 = 6; + return 21; + } else if((((a19==4)&&((a28==1)&&(!(a25==1)&&((((a14==9)&&(((((input==6)&&(((a29==6)||(a29==7))||(a29==8)))&&!(a11==1))&&(a22==1))&&(a0==1)))&&!(a20==1))&&!(a24==1)))))&&(a7==1))){ + a11 = 1; + a19 = 5; + a25 = 1; + a29 = 9; + return 21; + } else if(((((a11==1)&&(((((a24==1)&&(((a29==9)&&(((a20==1)&&(input==6))&&(a25==1)))&&(a28==1)))&&!(a0==1))&&(a7==1))&&(a19==5)))&&(a22==1))&&(a14==9))){ + a0 = 1; + a29 = 5; + a19 = 1; + a14 = 8; + return -1; + } else if(((!(a0==1)&&((a22==1)&&(((((a28==1)&&(!(a25==1)&&((!(a20==1)&&((input==3)&&(a29==8)))&&(a14==9))))&&(a19==2))&&(a7==1))&&!(a11==1))))&&(a24==1))){ + a19 = 1; + a11 = 1; + a25 = 1; + a29 = 5; + a20 = 1; + a0 = 1; + a14 = 8; + return -1; + } else if(((a14==8)&&((((a29==9)&&(((a7==1)&&(!(a20==1)&&((((!(a24==1)&&(input==2))&&(a11==1))&&(a22==1))&&(a0==1))))&&(a19==5)))&&(a28==1))&&(a25==1)))){ + a19 = 1; + a7 = 0; + a0 = 0; + a29 = 8; + return 24; + } else if(((((((((((a28==1)&&(((input==2)&&((a29==8)||(a29==9)))&&(a0==1)))&&(a11==1))&&(a22==1))&&(a14==9))&&!(a7==1))&&!(a20==1))&&(a25==1))&&(a19==1))&&(a24==1))){ + a20 = 1; + a7 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if((((!(a7==1)&&(!(a11==1)&&(((a14==9)&&((a29==5)&&((((a28==1)&&((input==3)&&!(a25==1)))&&!(a24==1))&&(a19==3))))&&(a20==1))))&&!(a0==1))&&(a22==1))){ + a7 = 1; + a24 = 1; + a19 = 4; + a29 = 8; + a11 = 1; + a14 = 8; + return 24; + } else if(((a28==1)&&((!(a11==1)&&((a19==3)&&((!(a25==1)&&((a7==1)&&(((a14==8)&&(!(a20==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==2))))&&(a22==1))))&&(a0==1))))&&(a24==1)))){ + a14 = 9; + a29 = 8; + a25 = 1; + a20 = 1; + a11 = 1; + a7 = 0; + a19 = 2; + return 23; + } else if(((a19==2)&&(((a25==1)&&((a22==1)&&((a14==9)&&((((!(a7==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==6))&&(a20==1)))&&(a28==1))&&!(a11==1))&&!(a0==1)))))&&(a24==1)))){ + a25 = 0; + a29 = 9; + a0 = 1; + return 24; + } else if(((a14==9)&&((a0==1)&&(!(a25==1)&&((((a28==1)&&((a24==1)&&((a20==1)&&((a11==1)&&((input==2)&&(((a19==1)&&(a29==9))||((a19==2)&&(a29==5))))))))&&(a22==1))&&!(a7==1)))))){ + a0 = 0; + a7 = 1; + a14 = 8; + a19 = 1; + a20 = 0; + a29 = 9; + a11 = 0; + return -1; + } else if((((!(a11==1)&&((a28==1)&&(!(a20==1)&&((a7==1)&&((!(a0==1)&&(((a22==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==6)))&&!(a24==1)))&&(a25==1))))))&&(a19==3))&&(a14==9))){ + a29 = 6; + a11 = 1; + a25 = 0; + a20 = 1; + a14 = 8; + return 24; + } else if(((a7==1)&&((a19==3)&&(((a14==9)&&(!(a11==1)&&((a24==1)&&((a29==5)&&((a0==1)&&((a22==1)&&(((input==6)&&(a20==1))&&(a28==1))))))))&&(a25==1))))){ + a11 = 1; + a14 = 8; + a19 = 4; + a24 = 0; + a0 = 0; + a25 = 0; + a29 = 6; + return -1; + } else if(((!(a0==1)&&(!(a20==1)&&((a22==1)&&(((a28==1)&&((a14==8)&&(!(a24==1)&&((input==2)&&((((a25==1)&&(a29==9))&&(a19==5))||((a19==1)&&((a29==5)&&!(a25==1))))))))&&!(a7==1)))))&&!(a11==1))){ + a29 = 7; + a24 = 1; + a11 = 1; + a19 = 5; + a25 = 0; + return -1; + } else if(((!(a25==1)&&((a11==1)&&(((a0==1)&&(!(a20==1)&&(((!(a7==1)&&((a28==1)&&((input==3)&&(a14==9))))&&!(a24==1))&&(a19==5))))&&(a22==1))))&&(a29==5))){ + a20 = 1; + a25 = 1; + a7 = 1; + a14 = 8; + a19 = 1; + a24 = 1; + return -1; + } else if(((!(a11==1)&&((((!(a24==1)&&((((!(a0==1)&&((input==5)&&((a29==7)||(a29==8))))&&(a7==1))&&(a22==1))&&(a20==1)))&&!(a25==1))&&(a28==1))&&(a14==8)))&&(a19==2))){ + a0 = 1; + a19 = 4; + a14 = 9; + a29 = 9; + a20 = 0; + a11 = 1; + return 24; + } else if((!(a7==1)&&(!(a0==1)&&(((a22==1)&&(((a28==1)&&((a14==8)&&(((input==3)&&(((!(a25==1)&&(a29==5))&&(a19==1))||((((a29==8)&&(a25==1))&&(a19==5))||((a19==5)&&((a25==1)&&(a29==9))))))&&!(a24==1))))&&(a20==1)))&&!(a11==1))))){ + a19 = 5; + a29 = 7; + a25 = 0; + a14 = 9; + a24 = 1; + return 23; + } else if(((a20==1)&&(((((a28==1)&&((((((input==5)&&(((a29==9)&&(a19==1))||((a29==5)&&(a19==2))))&&!(a0==1))&&(a24==1))&&(a14==8))&&(a22==1)))&&!(a7==1))&&(a11==1))&&(a25==1)))){ + a7 = 1; + a29 = 5; + a0 = 1; + a19 = 1; + return -1; + } else if((!(a20==1)&&((a24==1)&&(((a22==1)&&(((!(a11==1)&&(!(a25==1)&&(((((a29==8)||(a29==9))&&(input==5))&&(a7==1))&&(a19==5))))&&(a28==1))&&(a0==1)))&&(a14==8))))){ + a29 = 7; + a20 = 1; + a19 = 2; + a11 = 1; + a7 = 0; + a14 = 9; + return 24; + } else if(((a24==1)&&((a19==3)&&((a25==1)&&((a14==8)&&(((a28==1)&&(!(a20==1)&&(((a29==8)&&(((input==6)&&(a0==1))&&(a22==1)))&&(a11==1))))&&(a7==1))))))){ + a24 = 0; + a19 = 1; + return 24; + } else if(((a25==1)&&(((a20==1)&&((((((a28==1)&&(((((a29==5)||(a29==6))&&(input==1))&&(a19==4))&&!(a24==1)))&&(a11==1))&&(a0==1))&&(a14==9))&&(a22==1)))&&(a7==1)))){ + a25 = 0; + a24 = 1; + a20 = 0; + a19 = 3; + a29 = 6; + a7 = 0; + return 23; + } else if(((a14==9)&&(((a22==1)&&(((a11==1)&&((((!(a7==1)&&(((input==1)&&!(a20==1))&&(a28==1)))&&(a24==1))&&(a19==3))&&(a25==1)))&&(a29==7)))&&(a0==1)))){ + a29 = 5; + a20 = 1; + a19 = 1; + a14 = 8; + a7 = 1; + return -1; + } else if(((((((((((a19==5)&&((a24==1)&&((a20==1)&&(input==3))))&&!(a25==1))&&!(a11==1))&&(a28==1))&&!(a0==1))&&(a29==5))&&(a14==9))&&(a22==1))&&!(a7==1))){ + a7 = 1; + a25 = 1; + a0 = 1; + a19 = 1; + a11 = 1; + a14 = 8; + return -1; + } else if(((a14==8)&&(!(a25==1)&&((a7==1)&&((!(a20==1)&&(!(a24==1)&&((a28==1)&&((a19==1)&&((a22==1)&&(((input==3)&&((a29==5)||(a29==6)))&&(a0==1)))))))&&(a11==1)))))){ + a19 = 3; + a0 = 0; + a7 = 0; + a29 = 9; + a25 = 1; + return 23; + } else if(((((a14==8)&&(((a22==1)&&(((a20==1)&&((!(a24==1)&&((((a19==3)&&(a29==6))||(((a29==9)&&(a19==2))||((a29==5)&&(a19==3))))&&(input==4)))&&(a28==1)))&&!(a25==1)))&&(a11==1)))&&!(a7==1))&&(a0==1))){ + a19 = 2; + a7 = 1; + a0 = 0; + a20 = 0; + a24 = 1; + a29 = 8; + return 24; + } else if(((a28==1)&&(((a0==1)&&((a20==1)&&((a22==1)&&((a19==1)&&((a14==9)&&((!(a11==1)&&((((a29==5)||(a29==6))&&(input==1))&&!(a25==1)))&&!(a7==1)))))))&&!(a24==1)))){ + a29 = 6; + a7 = 1; + a19 = 4; + return -1; + } else if(((a28==1)&&((a19==2)&&(((!(a20==1)&&((a22==1)&&((a0==1)&&((a25==1)&&((((input==6)&&(((a29==7)||(a29==8))||(a29==9)))&&!(a11==1))&&!(a7==1))))))&&!(a24==1))&&(a14==9))))){ + a14 = 8; + a29 = 7; + a19 = 3; + a25 = 0; + a7 = 1; + return 23; + } else if(((a28==1)&&((a25==1)&&(((a19==4)&&(!(a24==1)&&(!(a7==1)&&(((a22==1)&&(((a11==1)&&((input==1)&&(((a29==5)||(a29==6))||(a29==7))))&&(a14==8)))&&!(a0==1)))))&&(a20==1))))){ + a0 = 1; + a19 = 1; + a29 = 5; + a24 = 1; + a7 = 1; + return -1; + } else if(((a19==2)&&((a24==1)&&((a11==1)&&(((((((a28==1)&&((((a29==8)||(a29==9))&&(input==4))&&!(a20==1)))&&(a22==1))&&(a14==9))&&(a7==1))&&(a0==1))&&(a25==1)))))){ + a7 = 0; + a19 = 5; + a14 = 8; + a29 = 8; + a25 = 0; + a0 = 0; + a11 = 0; + return -1; + } else if((((a28==1)&&((a25==1)&&(((((!(a11==1)&&(((a19==5)&&((input==2)&&((a29==7)||(a29==8))))&&!(a24==1)))&&!(a20==1))&&(a7==1))&&(a14==9))&&(a22==1))))&&!(a0==1))){ + a29 = 5; + a14 = 8; + a11 = 1; + a7 = 0; + a24 = 1; + a20 = 1; + return 24; + } else if((!(a20==1)&&((((a28==1)&&((a29==6)&&(((((a25==1)&&((a14==8)&&((input==2)&&(a19==1))))&&!(a7==1))&&(a22==1))&&(a24==1))))&&!(a11==1))&&!(a0==1)))){ + a11 = 1; + a19 = 5; + a29 = 7; + return 24; + } else if((((((((a0==1)&&(((a19==1)&&(((a11==1)&&(((a29==8)||(a29==9))&&(input==6)))&&(a7==1)))&&(a24==1)))&&!(a25==1))&&(a22==1))&&(a14==9))&&(a28==1))&&!(a20==1))){ + a7 = 0; + a0 = 0; + a14 = 8; + a29 = 7; + a25 = 1; + return 23; + } else if(((a14==10)&&((a11==1)&&(((a0==1)&&((((a25==1)&&((a24==1)&&((a22==1)&&((((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))&&(input==1)))))&&(a28==1))&&(a7==1)))&&!(a20==1))))){ + a19 = 3; + a7 = 0; + a14 = 9; + a20 = 1; + a29 = 9; + return 23; + } else if((((a0==1)&&(((a11==1)&&(((a22==1)&&(!(a20==1)&&(((((input==2)&&(a28==1))&&(a19==4))&&(a25==1))&&(a29==6))))&&!(a24==1)))&&(a14==8)))&&!(a7==1))){ + a7 = 1; + a29 = 8; + a25 = 0; + a11 = 0; + a20 = 1; + a19 = 5; + a0 = 0; + a24 = 1; + return 21; + } else if((((a25==1)&&(!(a20==1)&&((a7==1)&&((a14==8)&&((a19==5)&&((a28==1)&&((a22==1)&&(((a29==9)&&(!(a24==1)&&(input==5)))&&(a0==1)))))))))&&(a11==1))){ + a19 = 2; + a7 = 0; + a29 = 6; + a0 = 0; + return 21; + } else if(((((((a24==1)&&(!(a25==1)&&(!(a20==1)&&((a19==3)&&((a28==1)&&(!(a11==1)&&(((a29==8)||(a29==9))&&(input==5))))))))&&(a14==9))&&(a22==1))&&!(a7==1))&&!(a0==1))){ + a29 = 7; + a11 = 1; + a19 = 2; + a7 = 1; + a14 = 8; + return 24; + } else if(((a28==1)&&((((a29==8)&&((a22==1)&&((a7==1)&&(((a24==1)&&((!(a11==1)&&(!(a25==1)&&(input==5)))&&(a19==4)))&&(a14==8)))))&&(a0==1))&&!(a20==1)))){ + a11 = 1; + a25 = 1; + a19 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if((!(a25==1)&&((((((((a20==1)&&((a22==1)&&((input==1)&&(((a29==6)&&(a19==3))||(((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))))))&&!(a0==1))&&!(a11==1))&&(a14==8))&&(a28==1))&&(a24==1))&&!(a7==1)))){ + a0 = 1; + a29 = 5; + a19 = 1; + a25 = 1; + a11 = 1; + a7 = 1; + return -1; + } else if((((((a20==1)&&(((!(a25==1)&&((a11==1)&&((a28==1)&&(((input==4)&&(a29==9))&&!(a7==1)))))&&(a22==1))&&(a19==1)))&&(a0==1))&&(a14==8))&&(a24==1))){ + a25 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if(((a19==4)&&((((a0==1)&&(!(a25==1)&&((a28==1)&&((a7==1)&&((a22==1)&&((a24==1)&&((a29==5)&&((a14==10)&&(input==5)))))))))&&(a20==1))&&(a11==1)))){ + a7 = 0; + a14 = 8; + a19 = 3; + a0 = 0; + a29 = 8; + return 23; + } else if((((a14==9)&&(((((((a7==1)&&((a25==1)&&(!(a11==1)&&((input==1)&&(((a29==7)||(a29==8))||(a29==9))))))&&!(a0==1))&&!(a20==1))&&(a28==1))&&(a22==1))&&!(a24==1)))&&(a19==4))){ + a0 = 1; + a19 = 2; + a29 = 8; + a11 = 1; + a7 = 0; + a25 = 0; + a24 = 1; + return 24; + } else if(((a14==9)&&(((a0==1)&&((a25==1)&&((a24==1)&&((((((a19==4)&&((input==1)&&(((a29==7)||(a29==8))||(a29==9))))&&(a20==1))&&(a22==1))&&!(a7==1))&&(a28==1)))))&&!(a11==1)))){ + a19 = 1; + a11 = 1; + a14 = 8; + a29 = 5; + a7 = 1; + return -1; + } else if((((a7==1)&&((a19==3)&&(((!(a0==1)&&(((a24==1)&&(((a28==1)&&((input==3)&&(a29==7)))&&(a14==9)))&&(a25==1)))&&(a22==1))&&(a11==1))))&&(a20==1))){ + a0 = 1; + a19 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if((((a22==1)&&((!(a20==1)&&((a25==1)&&(((a7==1)&&((a14==8)&&(((a19==1)&&(((a29==5)||(a29==6))&&(input==3)))&&(a11==1))))&&(a28==1))))&&(a0==1)))&&(a24==1))){ + a7 = 0; + a24 = 0; + a20 = 1; + a29 = 8; + return 24; + } else if((!(a24==1)&&((a20==1)&&(!(a11==1)&&(((a28==1)&&(((((a22==1)&&((a0==1)&&((input==6)&&(((a29==7)||(a29==8))||(a29==9)))))&&(a7==1))&&(a19==4))&&(a25==1)))&&(a14==9)))))){ + a11 = 1; + a19 = 1; + a29 = 5; + a14 = 8; + a24 = 1; + return -1; + } else if(((((!(a7==1)&&((((a0==1)&&((((a25==1)&&((input==5)&&((a29==8)||(a29==9))))&&(a20==1))&&!(a11==1)))&&(a22==1))&&!(a24==1)))&&(a28==1))&&(a14==9))&&(a19==1))){ + a29 = 7; + a19 = 3; + a7 = 1; + a24 = 1; + a20 = 0; + a11 = 1; + return 24; + } else if(((a14==9)&&(((a20==1)&&(!(a7==1)&&((!(a11==1)&&((a22==1)&&(((a25==1)&&((input==2)&&(((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))))&&!(a0==1))))&&(a28==1))))&&(a24==1)))){ + a11 = 1; + a29 = 7; + a19 = 3; + a0 = 1; + return 24; + } else if((((!(a7==1)&&(!(a25==1)&&((a14==10)&&((a22==1)&&((a0==1)&&((a28==1)&&((((input==3)&&((a29==6)||(a29==7)))&&(a11==1))&&(a19==4))))))))&&(a24==1))&&(a20==1))){ + a14 = 8; + a29 = 9; + a24 = 0; + a19 = 2; + a11 = 0; + a0 = 0; + a25 = 1; + return 21; + } else if(((a22==1)&&((a29==8)&&((!(a20==1)&&((a7==1)&&(!(a24==1)&&((a14==9)&&((((a19==5)&&(!(a11==1)&&(input==6)))&&(a28==1))&&!(a25==1))))))&&!(a0==1))))){ + a24 = 1; + a7 = 0; + a19 = 4; + a29 = 6; + a0 = 1; + a25 = 1; + return 24; + } else if(((a11==1)&&((((a14==8)&&((a0==1)&&((((((((a29==5)&&(a19==4))||(((a19==3)&&(a29==8))||((a19==3)&&(a29==9))))&&(input==1))&&(a25==1))&&(a28==1))&&!(a24==1))&&(a22==1))))&&(a20==1))&&(a7==1)))){ + a7 = 0; + a11 = 0; + a19 = 2; + a20 = 0; + a29 = 6; + return 24; + } else if(((((a11==1)&&(((a7==1)&&(((!(a25==1)&&((a20==1)&&((((a19==5)&&(a29==5))||(((a29==8)&&(a19==4))||((a29==9)&&(a19==4))))&&(input==3))))&&!(a0==1))&&(a22==1)))&&(a28==1)))&&(a14==9))&&(a24==1))){ + a19 = 1; + a29 = 5; + a14 = 8; + a25 = 1; + a0 = 1; + return -1; + } else if((((a28==1)&&((a0==1)&&((a20==1)&&((a11==1)&&((((a22==1)&&((!(a25==1)&&((input==4)&&((a29==7)||((a29==5)||(a29==6)))))&&(a14==9)))&&(a24==1))&&!(a7==1))))))&&(a19==1))){ + a29 = 5; + a11 = 0; + a14 = 8; + a7 = 1; + a20 = 0; + a24 = 0; + a0 = 0; + return -1; + } else if((!(a24==1)&&(!(a25==1)&&((a0==1)&&((!(a20==1)&&(((a19==1)&&((a7==1)&&((((((a29==7)||(a29==8))||(a29==9))&&(input==1))&&(a11==1))&&(a28==1))))&&(a14==8)))&&(a22==1)))))){ + a0 = 0; + a24 = 1; + a25 = 1; + a19 = 3; + a29 = 7; + return 23; + } else if(((a24==1)&&((((a25==1)&&((a28==1)&&((!(a7==1)&&((a20==1)&&((a0==1)&&((a19==3)&&((input==4)&&(a29==6))))))&&(a14==9))))&&(a11==1))&&(a22==1)))){ + a7 = 1; + a11 = 0; + a19 = 1; + a14 = 8; + a24 = 0; + a20 = 0; + a0 = 0; + a29 = 8; + return -1; + } else if(((((!(a11==1)&&((a7==1)&&(!(a24==1)&&(!(a25==1)&&(((!(a20==1)&&((input==2)&&(((a29==5)||(a29==6))||(a29==7))))&&!(a0==1))&&(a14==8))))))&&(a19==4))&&(a28==1))&&(a22==1))){ + a24 = 1; + a25 = 1; + a20 = 1; + a29 = 5; + a11 = 1; + a19 = 2; + return -1; + } else if(((!(a24==1)&&((a25==1)&&((a7==1)&&(((a0==1)&&(((a29==6)&&((((a14==8)&&(input==6))&&!(a11==1))&&(a20==1)))&&(a19==1)))&&(a28==1)))))&&(a22==1))){ + a24 = 1; + a29 = 5; + a20 = 0; + a0 = 0; + a19 = 3; + a11 = 1; + return 24; + } else if((!(a0==1)&&(((a22==1)&&((a14==8)&&((((a20==1)&&((input==6)&&(((a19==5)&&(((a7==1)&&!(a25==1))&&(a29==9)))||((a19==1)&&((a29==5)&&((a25==1)&&!(a7==1)))))))&&(a28==1))&&!(a11==1))))&&(a24==1)))){ + a29 = 6; + a19 = 4; + a25 = 0; + a7 = 1; + return -1; + } else if((((((a14==9)&&(!(a20==1)&&(((a24==1)&&((input==3)&&(((((a7==1)&&!(a25==1))&&(a29==9))&&(a19==5))||(((!(a7==1)&&(a25==1))&&(a29==5))&&(a19==1)))))&&(a28==1))))&&!(a0==1))&&(a22==1))&&!(a11==1))){ + a19 = 5; + a29 = 7; + a25 = 0; + a7 = 1; + return -1; + } else if(((a24==1)&&(!(a20==1)&&((a28==1)&&((!(a0==1)&&(((a14==8)&&((a22==1)&&((a25==1)&&(((((a19==1)&&(a29==8))||((a29==9)&&(a19==1)))||((a19==2)&&(a29==5)))&&(input==1)))))&&!(a7==1)))&&(a11==1)))))){ + a0 = 1; + a29 = 6; + a25 = 0; + a11 = 0; + a7 = 1; + a19 = 4; + a24 = 0; + return 24; + } else if((((((a7==1)&&((!(a0==1)&&(!(a20==1)&&((((input==3)&&((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))||((a29==6)&&(a19==3))))&&(a28==1))&&(a14==9))))&&!(a11==1)))&&!(a25==1))&&(a22==1))&&!(a24==1))){ + a24 = 1; + a19 = 4; + a11 = 1; + a0 = 1; + a29 = 9; + a20 = 1; + return -1; + } else if((((a7==1)&&((((!(a11==1)&&(!(a20==1)&&((a28==1)&&((a22==1)&&((((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))&&(input==6))))))&&!(a24==1))&&(a25==1))&&(a0==1)))&&(a14==8))){ + a19 = 1; + a7 = 0; + a29 = 8; + return 24; + } else if(((a22==1)&&((a14==9)&&((a7==1)&&(((((a24==1)&&((!(a0==1)&&(((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))||((a29==6)&&(a19==3)))&&(input==6)))&&(a28==1)))&&!(a20==1))&&!(a11==1))&&!(a25==1)))))){ + a19 = 4; + a7 = 0; + a0 = 1; + a24 = 0; + a29 = 7; + a14 = 8; + return 21; + } else if(((((((((a0==1)&&((a28==1)&&((a14==8)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==3))&&(a24==1)))))&&!(a11==1))&&(a20==1))&&(a25==1))&&!(a7==1))&&(a22==1))&&(a19==3))){ + a19 = 1; + a25 = 0; + a29 = 7; + a0 = 0; + a24 = 0; + return 23; + } else if(((!(a20==1)&&(!(a11==1)&&((a29==8)&&(!(a7==1)&&((a22==1)&&((((((a25==1)&&(input==4))&&(a19==3))&&(a28==1))&&(a0==1))&&(a24==1)))))))&&(a14==8))){ + a20 = 1; + a7 = 1; + a11 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a19==4)&&(!(a24==1)&&((((a14==8)&&((a28==1)&&(((a20==1)&&((((((a29==6)||(a29==7))||(a29==8))&&(input==1))&&!(a0==1))&&!(a25==1)))&&(a22==1))))&&(a7==1))&&!(a11==1))))){ + a29 = 9; + a20 = 0; + a19 = 5; + a25 = 1; + a11 = 1; + a24 = 1; + return 24; + } else if((((((((a25==1)&&((a11==1)&&((!(a7==1)&&(((input==1)&&((a29==8)||(a29==9)))&&!(a24==1)))&&!(a0==1))))&&(a14==9))&&(a19==5))&&(a22==1))&&(a28==1))&&!(a20==1))){ + a29 = 5; + a25 = 0; + a7 = 1; + a14 = 8; + return -1; + } else if(((a0==1)&&((!(a20==1)&&(((a22==1)&&(!(a11==1)&&((((a25==1)&&(((input==4)&&((a29==5)||(a29==6)))&&(a28==1)))&&(a19==1))&&!(a24==1))))&&!(a7==1)))&&(a14==9)))){ + a29 = 7; + a7 = 1; + a24 = 1; + a14 = 8; + a25 = 0; + a0 = 0; + a19 = 3; + return 23; + } else if((!(a7==1)&&(((a14==8)&&(((((((((a20==1)&&(input==3))&&(a19==1))&&(a22==1))&&(a28==1))&&(a0==1))&&(a25==1))&&(a11==1))&&!(a24==1)))&&(a29==6)))){ + a7 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if(((a29==8)&&((!(a11==1)&&((!(a0==1)&&(((((a25==1)&&((a14==8)&&((a22==1)&&(input==5))))&&(a28==1))&&!(a20==1))&&(a19==5)))&&!(a7==1)))&&!(a24==1)))){ + a20 = 1; + a29 = 9; + a19 = 4; + a7 = 1; + a14 = 9; + return 23; + } else if(((a19==2)&&(!(a20==1)&&(((!(a25==1)&&(((a22==1)&&((((a29==7)&&((a28==1)&&(input==3)))&&(a24==1))&&(a14==8)))&&(a11==1)))&&!(a0==1))&&!(a7==1))))){ + a20 = 1; + a29 = 5; + a25 = 1; + a19 = 1; + a7 = 1; + a0 = 1; + return -1; + } else if((((a20==1)&&(((((a11==1)&&(!(a0==1)&&((a25==1)&&(((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))&&(input==2))&&(a28==1)))))&&(a24==1))&&(a14==8))&&(a22==1)))&&!(a7==1))){ + a7 = 1; + a0 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((!(a20==1)&&(((((a22==1)&&((a25==1)&&(((a28==1)&&(((input==1)&&(a14==8))&&(a29==8)))&&!(a0==1))))&&!(a11==1))&&(a19==3))&&(a24==1)))&&(a7==1))){ + a25 = 0; + a19 = 5; + a11 = 1; + a20 = 1; + return 24; + } else if((((a14==9)&&((a28==1)&&((a19==5)&&((((((!(a20==1)&&((input==4)&&(a29==5)))&&!(a25==1))&&(a22==1))&&(a7==1))&&!(a11==1))&&!(a0==1)))))&&!(a24==1))){ + a25 = 1; + a11 = 1; + a7 = 0; + return -1; + } else if((((a24==1)&&((!(a0==1)&&((a20==1)&&((!(a7==1)&&((a11==1)&&(((input==2)&&(((a19==1)&&(a29==9))||((a29==5)&&(a19==2))))&&(a28==1))))&&(a25==1))))&&(a14==9)))&&(a22==1))){ + a7 = 1; + a19 = 1; + a14 = 8; + a0 = 1; + a29 = 5; + return -1; + } else if((((a22==1)&&(!(a7==1)&&((a25==1)&&(((((((((a29==8)||(a29==9))&&(input==5))&&(a28==1))&&!(a0==1))&&(a20==1))&&!(a24==1))&&!(a11==1))&&(a19==4)))))&&(a14==8))){ + a29 = 8; + a19 = 5; + a14 = 9; + a0 = 1; + a24 = 1; + a7 = 1; + a11 = 1; + return 24; + } else if(((((!(a0==1)&&(!(a11==1)&&((a20==1)&&((a22==1)&&((a28==1)&&((((a19==1)&&((a29==5)&&!(a25==1)))||((((a25==1)&&(a29==8))&&(a19==5))||(((a25==1)&&(a29==9))&&(a19==5))))&&(input==1)))))))&&(a14==8))&&(a24==1))&&(a7==1))){ + a0 = 1; + a25 = 1; + a29 = 5; + a19 = 1; + a11 = 1; + return -1; + } else if((((a19==3)&&(!(a11==1)&&(((((!(a24==1)&&((a25==1)&&((a29==5)&&((input==3)&&(a20==1)))))&&(a0==1))&&!(a7==1))&&(a14==9))&&(a28==1))))&&(a22==1))){ + a0 = 0; + a24 = 1; + a7 = 1; + a19 = 5; + a14 = 8; + a11 = 1; + a29 = 8; + return 24; + } else if(((a25==1)&&(((a22==1)&&((!(a20==1)&&(((a11==1)&&((a14==8)&&((a28==1)&&((a19==1)&&(((a29==5)||(a29==6))&&(input==4))))))&&(a7==1)))&&!(a0==1)))&&(a24==1)))){ + a0 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if(((((a0==1)&&((a19==1)&&((a7==1)&&(((((a11==1)&&(((input==2)&&((a29==9)||((a29==7)||(a29==8))))&&(a14==10)))&&(a20==1))&&(a24==1))&&(a28==1)))))&&(a25==1))&&(a22==1))){ + a14 = 8; + a29 = 5; + return -1; + } else if(((a22==1)&&((a24==1)&&((a14==9)&&((a25==1)&&(((!(a0==1)&&(!(a7==1)&&(((a28==1)&&(((a29==6)||(a29==7))&&(input==5)))&&(a19==4))))&&!(a20==1))&&(a11==1))))))){ + a19 = 1; + a29 = 6; + a25 = 0; + a14 = 8; + a20 = 1; + return 24; + } else if((((a22==1)&&((a0==1)&&(((a28==1)&&((a11==1)&&((((!(a7==1)&&(!(a24==1)&&(input==6)))&&!(a20==1))&&!(a25==1))&&(a29==9))))&&(a19==1))))&&(a14==9))){ + a29 = 8; + a14 = 8; + a0 = 0; + a24 = 1; + a19 = 2; + return 24; + } else if(((a22==1)&&((a0==1)&&((a7==1)&&((a20==1)&&((!(a11==1)&&((a29==9)&&(((a28==1)&&(((a19==1)&&(input==1))&&(a14==8)))&&!(a24==1))))&&!(a25==1))))))){ + a29 = 6; + a20 = 0; + a19 = 2; + a7 = 0; + a25 = 1; + return 24; + } else if((((a28==1)&&((a0==1)&&((!(a24==1)&&((((a22==1)&&((a25==1)&&((((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))&&(input==3))))&&(a14==8))&&(a11==1)))&&(a7==1))))&&!(a20==1))){ + a20 = 1; + a29 = 5; + a24 = 1; + a19 = 1; + return -1; + } else if((((((a11==1)&&((a29==8)&&(!(a25==1)&&((a20==1)&&((a19==2)&&(!(a0==1)&&((a14==8)&&((input==2)&&(a28==1)))))))))&&(a7==1))&&!(a24==1))&&(a22==1))){ + a20 = 0; + a11 = 0; + a29 = 5; + a25 = 1; + a24 = 1; + return 24; + } else if((!(a7==1)&&(((a14==9)&&(((!(a24==1)&&(((a28==1)&&((a20==1)&&((a19==4)&&((input==3)&&((a29==8)||(a29==9))))))&&(a22==1)))&&!(a0==1))&&!(a11==1)))&&!(a25==1)))){ + a11 = 1; + a14 = 8; + a19 = 2; + a29 = 6; + return 24; + } else if((!(a20==1)&&((!(a11==1)&&(((a22==1)&&((a14==9)&&(((a28==1)&&((!(a0==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==4)))&&(a24==1)))&&(a7==1))))&&(a19==4)))&&(a25==1)))){ + a19 = 1; + a29 = 5; + a11 = 1; + a14 = 8; + a20 = 1; + a0 = 1; + return -1; + } else if(((a7==1)&&((a24==1)&&(((a22==1)&&((a25==1)&&((!(a20==1)&&(((((a0==1)&&(input==6))&&(a19==3))&&(a14==8))&&(a28==1)))&&(a11==1))))&&(a29==9))))){ + a24 = 0; + a29 = 8; + a19 = 2; + return 23; + } else if((!(a25==1)&&((!(a11==1)&&(!(a20==1)&&(((a0==1)&&(((((a22==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==3)))&&!(a24==1))&&(a19==4))&&(a14==8)))&&(a28==1))))&&(a7==1)))){ + a24 = 1; + a29 = 6; + a19 = 1; + a14 = 9; + return 21; + } else if(((!(a20==1)&&(((a14==8)&&(((a24==1)&&((((a0==1)&&((!(a11==1)&&(input==6))&&(a28==1)))&&(a29==6))&&!(a7==1)))&&(a22==1)))&&!(a25==1)))&&(a19==5))){ + a11 = 1; + a0 = 0; + a29 = 5; + a25 = 1; + a19 = 3; + return 24; + } else if((!(a24==1)&&((a14==9)&&((a7==1)&&(((((((!(a11==1)&&((input==3)&&(((a29==6)||(a29==7))||(a29==8))))&&(a22==1))&&!(a25==1))&&(a28==1))&&(a0==1))&&!(a20==1))&&(a19==1)))))){ + a7 = 0; + a19 = 3; + a20 = 1; + a29 = 9; + a24 = 1; + return -1; + } else if(((((((((((((input==2)&&(a28==1))&&(a20==1))&&!(a11==1))&&(a29==7))&&(a25==1))&&(a22==1))&&(a14==9))&&(a24==1))&&(a7==1))&&!(a0==1))&&(a19==1))){ + a25 = 0; + a14 = 8; + a24 = 0; + a0 = 1; + a19 = 3; + a29 = 8; + a20 = 0; + return 21; + } else if((((((!(a11==1)&&(((a24==1)&&(((a22==1)&&((((a19==3)&&(a29==6))||(((a19==2)&&(a29==9))||((a19==3)&&(a29==5))))&&(input==3)))&&(a20==1)))&&!(a7==1)))&&(a28==1))&&(a25==1))&&(a0==1))&&(a14==8))){ + a19 = 1; + a7 = 1; + a29 = 5; + a11 = 1; + return -1; + } else if(((a14==9)&&((a28==1)&&(!(a11==1)&&(((((((((!(a7==1)&&!(a20==1))&&(a24==1))&&!(a25==1))&&(a29==9))&&(a19==5))||((((a25==1)&&(!(a24==1)&&((a20==1)&&(a7==1))))&&(a29==5))&&(a19==1)))&&(input==6))&&(a22==1))&&!(a0==1)))))){ + a29 = 9; + a25 = 0; + a14 = 8; + a20 = 0; + a24 = 0; + a11 = 1; + a19 = 1; + a7 = 1; + return 23; + } else if((!(a11==1)&&((a0==1)&&((((((!(a7==1)&&((((((a29==5)||(a29==6))||(a29==7))&&(input==3))&&(a14==9))&&(a22==1)))&&!(a20==1))&&(a28==1))&&(a25==1))&&(a19==3))&&(a24==1))))){ + a19 = 5; + a29 = 5; + a14 = 8; + a24 = 0; + a0 = 0; + return 21; + } else if((!(a25==1)&&(!(a24==1)&&((a11==1)&&(((a19==3)&&((a0==1)&&((((((input==2)&&(((a29==6)||(a29==7))||(a29==8)))&&(a20==1))&&(a22==1))&&!(a7==1))&&(a14==9))))&&(a28==1)))))){ + a7 = 1; + a19 = 1; + a24 = 1; + a29 = 5; + a14 = 8; + a25 = 1; + return -1; + } else if(((!(a11==1)&&(((a0==1)&&((a19==4)&&(!(a7==1)&&((((((a22==1)&&(input==6))&&(a20==1))&&(a14==8))&&(a29==6))&&(a24==1)))))&&!(a25==1)))&&(a28==1))){ + a0 = 0; + a20 = 0; + a19 = 3; + a24 = 0; + a7 = 1; + return 21; + } else if((((a19==4)&&((a25==1)&&((a7==1)&&((((a22==1)&&((a0==1)&&((!(a24==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==5)))&&!(a11==1))))&&(a28==1))&&(a14==9)))))&&(a20==1))){ + a24 = 1; + a25 = 0; + a19 = 1; + a20 = 0; + a29 = 9; + return 23; + } else if(((a20==1)&&((a14==10)&&(((a0==1)&&((a22==1)&&(((((a24==1)&&((a19==5)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==5))))&&(a7==1))&&(a25==1))&&(a11==1))))&&(a28==1))))){ + a0 = 0; + a14 = 8; + a29 = 7; + a19 = 2; + return -1; + } else if(((a11==1)&&((a14==9)&&(((!(a20==1)&&(((a25==1)&&((((a28==1)&&((input==5)&&((a29==5)||(a29==6))))&&(a0==1))&&(a19==4)))&&(a24==1)))&&(a22==1))&&(a7==1))))){ + a14 = 8; + a29 = 5; + a19 = 1; + a20 = 1; + return -1; + } else if(((a25==1)&&(((((a20==1)&&((a7==1)&&((a29==6)&&((a19==1)&&(((a28==1)&&((a24==1)&&(input==2)))&&(a0==1))))))&&!(a11==1))&&(a14==8))&&(a22==1)))){ + a20 = 0; + a25 = 0; + a24 = 0; + a19 = 3; + a7 = 0; + return 24; + } else if(((!(a25==1)&&((a11==1)&&(((a20==1)&&(((((((input==1)&&((a29==8)||(a29==9)))&&(a28==1))&&!(a0==1))&&!(a24==1))&&(a7==1))&&(a14==8)))&&(a22==1))))&&(a19==3))){ + a19 = 1; + a0 = 1; + a24 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if(((((a28==1)&&((a24==1)&&(((a14==8)&&((input==4)&&((((a19==5)&&((a29==9)&&(!(a25==1)&&((a20==1)&&!(a7==1)))))||((((!(a20==1)&&(a7==1))&&(a25==1))&&(a29==5))&&(a19==1)))||(((a29==6)&&((a25==1)&&((a7==1)&&!(a20==1))))&&(a19==1)))))&&!(a11==1))))&&!(a0==1))&&(a22==1))){ + a20 = 1; + a25 = 1; + a11 = 1; + a29 = 5; + a0 = 1; + a7 = 1; + a19 = 1; + return -1; + } else if(((((a28==1)&&(((!(a24==1)&&((a25==1)&&(((a20==1)&&((((a29==6)||(a29==7))&&(input==5))&&(a22==1)))&&(a0==1))))&&(a14==9))&&(a19==3)))&&(a7==1))&&!(a11==1))){ + a29 = 5; + a25 = 0; + a14 = 8; + a11 = 1; + a24 = 1; + a0 = 0; + a19 = 2; + return 24; + } else if(((a24==1)&&((a29==6)&&(((a22==1)&&((((((!(a0==1)&&(!(a25==1)&&(input==3)))&&(a28==1))&&(a20==1))&&(a7==1))&&(a14==9))&&(a19==5)))&&(a11==1))))){ + a29 = 7; + a24 = 0; + a7 = 0; + a19 = 2; + a25 = 1; + a14 = 8; + return -1; + } else if(((((a0==1)&&((a28==1)&&(((a7==1)&&(((a14==8)&&((((((a29==8)&&(a19==3))||((a19==3)&&(a29==9)))||((a29==5)&&(a19==4)))&&(input==4))&&!(a25==1)))&&!(a11==1)))&&(a22==1))))&&!(a24==1))&&(a20==1))){ + a0 = 0; + a11 = 1; + a19 = 1; + a24 = 1; + a29 = 7; + return 23; + } else if((!(a11==1)&&((a20==1)&&(!(a0==1)&&((a28==1)&&(((a22==1)&&((a14==8)&&((a25==1)&&((a19==4)&&(((input==4)&&((a29==6)||(a29==7)))&&(a24==1))))))&&(a7==1))))))){ + a29 = 8; + a11 = 1; + a24 = 0; + a19 = 3; + a14 = 9; + return 23; + } else if((((!(a11==1)&&(((a24==1)&&(((a20==1)&&((a28==1)&&((((((a29==6)||(a29==7))||(a29==8))&&(input==6))&&(a25==1))&&(a22==1))))&&(a19==3)))&&(a14==9)))&&(a7==1))&&!(a0==1))){ + a14 = 8; + a11 = 1; + a19 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if(((!(a0==1)&&((!(a7==1)&&(((((a11==1)&&((a20==1)&&((((a29==5)||(a29==6))&&(input==2))&&(a28==1))))&&(a19==1))&&(a24==1))&&(a14==8)))&&!(a25==1)))&&(a22==1))){ + a25 = 1; + a29 = 6; + a7 = 1; + a19 = 4; + return -1; + } else if(((((a0==1)&&((((a11==1)&&((a22==1)&&((a24==1)&&((a25==1)&&((((a29==5)&&(a19==5))||(((a19==4)&&(a29==8))||((a29==9)&&(a19==4))))&&(input==4))))))&&(a14==9))&&!(a7==1)))&&!(a20==1))&&(a28==1))){ + a19 = 2; + a7 = 1; + a25 = 0; + a14 = 10; + a20 = 1; + a29 = 6; + return 23; + } else if(((a19==5)&&(((((a22==1)&&((a20==1)&&(!(a0==1)&&((a11==1)&&((a14==8)&&(((input==1)&&((a29==8)||((a29==6)||(a29==7))))&&(a25==1)))))))&&(a28==1))&&(a24==1))&&!(a7==1)))){ + a24 = 0; + a29 = 5; + a0 = 1; + a11 = 0; + a19 = 2; + a20 = 0; + return 21; + } else if((!(a0==1)&&((a28==1)&&((a20==1)&&((a14==9)&&((!(a25==1)&&(((((a11==1)&&(((a29==8)||(a29==9))&&(input==1)))&&(a19==1))&&(a24==1))&&(a7==1)))&&(a22==1))))))){ + a14 = 8; + a19 = 2; + a29 = 8; + return 21; + } else if((!(a24==1)&&(((a25==1)&&(!(a11==1)&&(((a19==4)&&(((a28==1)&&((a14==8)&&(!(a20==1)&&((input==2)&&((a29==6)||(a29==7))))))&&!(a0==1)))&&(a7==1))))&&(a22==1)))){ + a19 = 1; + a0 = 1; + a29 = 5; + a24 = 1; + a20 = 1; + a11 = 1; + return -1; + } else if(((a19==3)&&((a28==1)&&(!(a24==1)&&(!(a11==1)&&((a0==1)&&(((a14==8)&&((a22==1)&&((!(a20==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==4)))&&(a25==1))))&&(a7==1)))))))){ + a7 = 0; + a29 = 7; + a11 = 1; + a25 = 0; + a24 = 1; + a19 = 5; + a20 = 1; + a0 = 0; + return 23; + } else if((((!(a25==1)&&((a24==1)&&(((a14==8)&&((((a7==1)&&((((a29==6)&&(a19==4))||(((a29==9)&&(a19==3))||((a19==4)&&(a29==5))))&&(input==1)))&&(a22==1))&&!(a11==1)))&&(a28==1))))&&(a20==1))&&(a0==1))){ + a11 = 1; + a0 = 0; + a25 = 1; + a29 = 6; + a19 = 5; + return 23; + } else if(((!(a25==1)&&((a22==1)&&((a7==1)&&(!(a11==1)&&((a28==1)&&((a24==1)&&(((a14==8)&&((a20==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==5))))&&(a0==1))))))))&&(a19==5))){ + a11 = 1; + a25 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a14==10)&&((a20==1)&&((!(a7==1)&&((a0==1)&&((a24==1)&&((a22==1)&&(((input==1)&&(((((a29==8)&&(a25==1))&&(a19==5))||((a19==5)&&((a25==1)&&(a29==9))))||((!(a25==1)&&(a29==5))&&(a19==1))))&&(a28==1))))))&&(a11==1))))){ + a19 = 1; + a29 = 5; + a25 = 1; + a7 = 1; + a14 = 8; + return -1; + } else if(((a11==1)&&((a22==1)&&((((a24==1)&&((a0==1)&&((((((!(a20==1)&&(a7==1))&&(a25==1))&&(a29==5))&&(a19==1))||(((a19==5)&&((a29==8)&&(!(a25==1)&&(!(a7==1)&&(a20==1)))))||((a19==5)&&((((a20==1)&&!(a7==1))&&!(a25==1))&&(a29==9)))))&&(input==2))))&&(a14==9))&&(a28==1))))){ + a29 = 6; + a25 = 1; + a14 = 8; + a24 = 0; + a19 = 3; + a20 = 0; + a7 = 0; + a11 = 0; + return -1; + } else if(((a14==9)&&((!(a25==1)&&(!(a11==1)&&(((a22==1)&&((a0==1)&&((!(a24==1)&&((a28==1)&&((input==2)&&!(a20==1))))&&(a29==6))))&&(a19==3))))&&(a7==1)))){ + a7 = 0; + a11 = 1; + a0 = 0; + a25 = 1; + a14 = 8; + a29 = 9; + a20 = 1; + a24 = 1; + return 24; + } else if(((a20==1)&&((a24==1)&&(((a19==3)&&((a11==1)&&((a14==9)&&((a7==1)&&((a28==1)&&(((((a29==6)||(a29==7))&&(input==4))&&(a22==1))&&!(a25==1)))))))&&!(a0==1))))){ + a0 = 1; + a7 = 0; + a19 = 5; + a29 = 6; + return 23; + } else if(((a22==1)&&(((a20==1)&&((((a11==1)&&(((!(a24==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==1))&&!(a0==1)))&&!(a25==1))&&(a19==2)))&&(a28==1))&&(a14==9)))&&(a7==1)))){ + a25 = 1; + a24 = 1; + a0 = 1; + a14 = 8; + a19 = 1; + a29 = 5; + return -1; + } else if(((a14==9)&&(!(a20==1)&&((a19==4)&&(((a22==1)&&((a0==1)&&(!(a24==1)&&(!(a7==1)&&((a29==9)&&(((input==4)&&!(a11==1))&&(a28==1)))))))&&(a25==1)))))){ + a20 = 1; + a7 = 1; + a19 = 1; + a29 = 5; + a11 = 1; + a14 = 8; + a24 = 1; + return -1; + } else if(((a7==1)&&((a28==1)&&(((a29==6)&&((a14==8)&&((a0==1)&&((a22==1)&&(!(a25==1)&&(!(a24==1)&&(((a20==1)&&(input==4))&&!(a11==1))))))))&&(a19==3))))){ + a25 = 1; + a11 = 1; + a19 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if((((a0==1)&&(((a22==1)&&((a25==1)&&((((a24==1)&&((a19==4)&&((a11==1)&&((input==4)&&((a29==6)||(a29==7))))))&&(a28==1))&&!(a20==1))))&&!(a7==1)))&&(a14==9))){ + a29 = 6; + a25 = 0; + a14 = 8; + a19 = 5; + a7 = 1; + a0 = 0; + return 23; + } else if((((!(a0==1)&&((a19==3)&&((a24==1)&&((a7==1)&&(((a28==1)&&(((a14==9)&&((input==1)&&((a29==7)||(a29==8))))&&(a11==1)))&&!(a20==1))))))&&(a25==1))&&(a22==1))){ + a0 = 1; + a19 = 1; + a14 = 8; + a29 = 5; + a20 = 1; + return -1; + } else if((((((a28==1)&&((a7==1)&&(!(a25==1)&&(!(a24==1)&&(!(a11==1)&&(!(a20==1)&&((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))&&(input==3))))))))&&(a0==1))&&(a14==8))&&(a22==1))){ + a25 = 1; + a19 = 5; + a14 = 9; + a24 = 1; + a29 = 8; + return 21; + } else if((((((a14==8)&&(!(a25==1)&&((!(a7==1)&&(((((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))||((a29==6)&&(a19==4)))&&(input==3))&&(a22==1))&&!(a0==1)))&&(a20==1))))&&(a11==1))&&(a24==1))&&(a28==1))){ + a0 = 1; + a14 = 9; + a24 = 0; + a25 = 1; + a29 = 8; + a19 = 3; + a11 = 0; + return 24; + } else if(((((((a28==1)&&((a0==1)&&(((a7==1)&&(!(a24==1)&&((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))&&(input==1))))&&(a14==9))))&&(a11==1))&&(a22==1))&&!(a25==1))&&!(a20==1))){ + a29 = 5; + a20 = 1; + a19 = 1; + a24 = 1; + a25 = 1; + a14 = 8; + return -1; + } else if(((a22==1)&&(!(a11==1)&&(((!(a7==1)&&((a14==8)&&((!(a24==1)&&(((((a29==6)||(a29==7))&&(input==1))&&(a28==1))&&!(a0==1)))&&(a25==1))))&&!(a20==1))&&(a19==5))))){ + a11 = 1; + a29 = 9; + a7 = 1; + a19 = 2; + return -1; + } else if((!(a20==1)&&((!(a11==1)&&((((a29==9)&&((a14==9)&&((a19==5)&&((a28==1)&&(((input==2)&&(a22==1))&&!(a7==1))))))&&!(a24==1))&&!(a0==1)))&&(a25==1)))){ + a19 = 1; + a7 = 1; + a24 = 1; + a29 = 5; + a0 = 1; + a14 = 8; + a11 = 1; + a20 = 1; + return -1; + } else if((((a22==1)&&(((a20==1)&&((a28==1)&&(((a29==6)&&((a14==9)&&(!(a25==1)&&(((input==4)&&!(a24==1))&&(a7==1)))))&&!(a11==1))))&&(a19==4)))&&!(a0==1))){ + a20 = 0; + a7 = 0; + a14 = 8; + a29 = 9; + a19 = 3; + a24 = 1; + return -1; + } else if((((((((a7==1)&&(((((((a29==6)||(a29==7))&&(input==1))&&!(a0==1))&&!(a25==1))&&(a20==1))&&(a14==8)))&&(a19==2))&&!(a24==1))&&(a28==1))&&(a22==1))&&(a11==1))){ + a19 = 4; + a29 = 6; + a14 = 9; + a25 = 1; + a11 = 0; + a0 = 1; + a20 = 0; + return 24; + } else if(((((((a28==1)&&(!(a11==1)&&((a24==1)&&(((input==6)&&(((!(a25==1)&&(a29==5))&&(a19==1))||(((a19==5)&&((a25==1)&&(a29==8)))||((a19==5)&&((a29==9)&&(a25==1))))))&&(a0==1)))))&&!(a7==1))&&(a22==1))&&(a20==1))&&(a14==9))){ + a29 = 5; + a14 = 8; + a7 = 1; + a11 = 1; + a25 = 1; + a19 = 1; + return -1; + } else if(((((a19==3)&&((((a22==1)&&((a7==1)&&((a24==1)&&(((a14==9)&&((input==6)&&(((a29==6)||(a29==7))||(a29==8))))&&(a20==1)))))&&!(a11==1))&&!(a0==1)))&&!(a25==1))&&(a28==1))){ + a24 = 0; + a29 = 9; + a0 = 1; + a20 = 0; + a19 = 2; + a14 = 8; + return 24; + } else if((((!(a0==1)&&((a22==1)&&((a19==5)&&(!(a7==1)&&((((a11==1)&&(((input==2)&&(a29==5))&&(a25==1)))&&(a24==1))&&(a20==1))))))&&(a28==1))&&(a14==8))){ + a19 = 1; + a0 = 1; + a7 = 1; + return -1; + } else if(((a14==9)&&(!(a24==1)&&(!(a25==1)&&(!(a0==1)&&(!(a11==1)&&((a28==1)&&((!(a20==1)&&(((a7==1)&&(((a29==6)||(a29==7))&&(input==1)))&&(a22==1)))&&(a19==1))))))))){ + a11 = 1; + a29 = 8; + a24 = 1; + a14 = 8; + a7 = 0; + a19 = 4; + return 24; + } else if((!(a25==1)&&(((a22==1)&&(!(a20==1)&&(((a14==9)&&((a28==1)&&((a19==2)&&(((((a29==8)||(a29==9))&&(input==3))&&!(a24==1))&&!(a0==1)))))&&(a11==1))))&&!(a7==1)))){ + a24 = 1; + a19 = 3; + a25 = 1; + a14 = 8; + a29 = 6; + a20 = 1; + return 24; + } else if((((a14==9)&&((!(a7==1)&&((a28==1)&&(!(a25==1)&&((((((input==3)&&((a29==5)||(a29==6)))&&!(a24==1))&&(a22==1))&&!(a0==1))&&(a19==3)))))&&(a11==1)))&&!(a20==1))){ + a14 = 8; + a24 = 1; + a20 = 1; + a0 = 1; + a25 = 1; + a29 = 5; + a19 = 1; + a7 = 1; + return -1; + } else if((!(a0==1)&&((a14==8)&&(!(a20==1)&&((((!(a25==1)&&((a24==1)&&(((((a29==7)||(a29==8))&&(input==1))&&(a22==1))&&!(a7==1))))&&(a11==1))&&(a19==1))&&(a28==1)))))){ + a25 = 1; + a19 = 4; + a20 = 1; + a29 = 5; + return -1; + } else if(((a28==1)&&(((a7==1)&&(((a20==1)&&((a11==1)&&(((a25==1)&&((a19==4)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==2))&&(a22==1))))&&!(a24==1))))&&!(a0==1)))&&(a14==9)))){ + a11 = 0; + a7 = 0; + a29 = 7; + a0 = 1; + a20 = 0; + a25 = 0; + return -1; + } else if((((((!(a7==1)&&(((!(a25==1)&&((((input==3)&&((a29==8)||(a29==9)))&&!(a20==1))&&(a28==1)))&&(a14==9))&&(a19==2)))&&(a24==1))&&!(a11==1))&&!(a0==1))&&(a22==1))){ + a24 = 0; + a29 = 6; + a14 = 8; + return -1; + } else if(((((a29==5)&&(!(a7==1)&&((((((!(a24==1)&&((input==4)&&!(a20==1)))&&(a19==3))&&(a28==1))&&(a0==1))&&(a14==8))&&(a25==1))))&&(a11==1))&&(a22==1))){ + a25 = 0; + a11 = 0; + a20 = 1; + a29 = 6; + a24 = 1; + a7 = 1; + a0 = 0; + return 24; + } else if(((a20==1)&&(((a28==1)&&(((!(a11==1)&&((a7==1)&&(((((input==1)&&(((a29==5)||(a29==6))||(a29==7)))&&(a24==1))&&(a19==3))&&(a22==1))))&&!(a0==1))&&!(a25==1)))&&(a14==8)))){ + a25 = 1; + a19 = 1; + a7 = 0; + a29 = 6; + a11 = 1; + return 21; + } else if(((a19==3)&&(((a29==8)&&(!(a24==1)&&(((a28==1)&&(((((a20==1)&&(!(a11==1)&&(input==2)))&&!(a7==1))&&(a14==9))&&!(a0==1)))&&(a22==1))))&&(a25==1)))){ + a24 = 1; + a11 = 1; + a19 = 1; + a7 = 1; + a0 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((a25==1)&&(!(a20==1)&&((a14==8)&&((!(a11==1)&&(((a28==1)&&((a0==1)&&((((input==1)&&((a29==5)||(a29==6)))&&!(a7==1))&&!(a24==1))))&&(a19==5)))&&(a22==1)))))){ + a29 = 5; + a11 = 1; + a24 = 1; + a7 = 1; + a19 = 1; + a20 = 1; + return -1; + } else if(((a22==1)&&(!(a11==1)&&(!(a0==1)&&(((a28==1)&&((((a19==1)&&((a29==5)&&((((a20==1)&&(a7==1))&&!(a24==1))&&(a25==1))))||((((a29==8)&&(!(a25==1)&&((!(a20==1)&&!(a7==1))&&(a24==1))))&&(a19==5))||(((((!(a7==1)&&!(a20==1))&&(a24==1))&&!(a25==1))&&(a29==9))&&(a19==5))))&&(input==6)))&&(a14==8)))))){ + a25 = 0; + a19 = 5; + a24 = 0; + a29 = 8; + a20 = 0; + a0 = 1; + a7 = 0; + return -1; + } else if((!(a11==1)&&(((!(a0==1)&&(((a7==1)&&(!(a20==1)&&((a29==6)&&((((input==3)&&(a19==3))&&(a28==1))&&(a24==1)))))&&(a25==1)))&&(a14==8))&&(a22==1)))){ + a25 = 0; + a20 = 1; + a19 = 4; + a29 = 9; + a11 = 1; + return 24; + } else if((((a24==1)&&((a14==10)&&(((((a28==1)&&((((((a29==5)||(a29==6))&&(input==4))&&(a11==1))&&(a22==1))&&!(a20==1)))&&(a7==1))&&(a25==1))&&(a0==1))))&&(a19==1))){ + a29 = 9; + a14 = 9; + a19 = 2; + return 24; + } else if((!(a25==1)&&((a22==1)&&((a19==1)&&(!(a7==1)&&((a0==1)&&(((((((input==3)&&(((a29==5)||(a29==6))||(a29==7)))&&(a14==9))&&(a28==1))&&(a11==1))&&(a24==1))&&(a20==1)))))))){ + a19 = 4; + a14 = 8; + a0 = 0; + a20 = 0; + a29 = 6; + a7 = 1; + return 21; + } else if((((((((a14==8)&&((((a28==1)&&(((input==4)&&((a29==6)||(a29==7)))&&(a25==1)))&&(a7==1))&&!(a0==1)))&&!(a20==1))&&(a22==1))&&(a11==1))&&!(a24==1))&&(a19==5))){ + a29 = 5; + a25 = 0; + a11 = 0; + a0 = 1; + return 23; + } else if((((a24==1)&&(!(a25==1)&&(((a7==1)&&((a28==1)&&(((a19==1)&&(!(a20==1)&&((a22==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==4)))))&&(a14==8))))&&!(a11==1))))&&!(a0==1))){ + a29 = 8; + a11 = 1; + a0 = 1; + a19 = 3; + return -1; + } else if(((a25==1)&&((a28==1)&&(!(a24==1)&&((((a7==1)&&((a20==1)&&((((input==5)&&((((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))||((a29==5)&&(a19==3))))&&(a11==1))&&(a0==1))))&&(a22==1))&&(a14==8)))))){ + a29 = 6; + a19 = 3; + a11 = 0; + a20 = 0; + a25 = 0; + return 24; + } else if(((a22==1)&&(!(a20==1)&&(((((a7==1)&&(((a0==1)&&((((input==2)&&((a29==5)||(a29==6)))&&(a14==8))&&(a28==1)))&&!(a24==1)))&&!(a11==1))&&!(a25==1))&&(a19==3))))){ + a20 = 1; + a24 = 1; + a29 = 6; + a7 = 0; + a19 = 4; + a11 = 1; + a25 = 1; + return 23; + } else if((!(a11==1)&&(((((a28==1)&&((a25==1)&&(((a22==1)&&((a0==1)&&(((a19==5)&&(input==1))&&!(a7==1))))&&(a29==6))))&&(a20==1))&&(a14==8))&&!(a24==1)))){ + a7 = 1; + a20 = 0; + a11 = 1; + a14 = 9; + a25 = 0; + return 24; + } return calculate_output16(input); + } + + int calculate_output16(int input) { + if((((a19==2)&&(!(a25==1)&&((a14==9)&&(!(a7==1)&&(!(a11==1)&&((((a22==1)&&((a24==1)&&((a28==1)&&(input==4))))&&(a20==1))&&!(a0==1)))))))&&(a29==7))){ + a11 = 1; + a0 = 1; + a25 = 1; + a7 = 1; + a19 = 4; + a20 = 0; + a29 = 5; + return 21; + } else if(((a19==1)&&((((a11==1)&&(((a28==1)&&(((((a22==1)&&(((a29==5)||(a29==6))&&(input==5)))&&(a25==1))&&!(a20==1))&&(a24==1)))&&(a14==8)))&&(a7==1))&&(a0==1)))){ + a20 = 1; + a29 = 6; + a7 = 0; + a24 = 0; + return 21; + } else if(((a19==4)&&(((a0==1)&&(!(a25==1)&&((a28==1)&&((!(a20==1)&&(!(a7==1)&&((a14==9)&&(!(a11==1)&&((input==4)&&((a29==6)||(a29==7)))))))&&!(a24==1)))))&&(a22==1)))){ + a7 = 1; + a14 = 8; + a29 = 5; + a19 = 1; + a20 = 1; + a0 = 0; + return 24; + } else if((((((((((a22==1)&&((a25==1)&&(((a28==1)&&(input==5))&&(a29==9))))&&!(a0==1))&&!(a24==1))&&(a7==1))&&(a19==1))&&(a20==1))&&(a14==9))&&(a11==1))){ + a29 = 7; + a14 = 8; + a19 = 3; + a24 = 1; + a25 = 0; + return 21; + } else if((((!(a20==1)&&((!(a7==1)&&(((a29==7)&&((((a24==1)&&((a19==2)&&(input==4)))&&(a22==1))&&!(a0==1)))&&(a28==1)))&&(a14==8)))&&!(a25==1))&&(a11==1))){ + a25 = 1; + a29 = 6; + a24 = 0; + a19 = 1; + a0 = 1; + a11 = 0; + a14 = 9; + return 21; + } else if(((a24==1)&&((a7==1)&&((a25==1)&&((((a28==1)&&(((a22==1)&&((a0==1)&&(((input==1)&&(((a29==5)||(a29==6))||(a29==7)))&&(a19==4))))&&!(a20==1)))&&(a14==10))&&(a11==1)))))){ + a29 = 5; + a19 = 1; + a14 = 8; + a20 = 1; + return -1; + } else if((((a7==1)&&((a22==1)&&((((a29==9)&&(((a19==2)&&((!(a0==1)&&((a14==8)&&(input==3)))&&(a28==1)))&&!(a24==1)))&&!(a25==1))&&(a20==1))))&&(a11==1))){ + a29 = 5; + a24 = 1; + a20 = 0; + a7 = 0; + a25 = 1; + a19 = 1; + return -1; + } else if(((a11==1)&&(((!(a25==1)&&((a14==9)&&((((a7==1)&&((!(a0==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==2)))&&(a28==1)))&&(a22==1))&&(a24==1))))&&!(a20==1))&&(a19==3)))){ + a0 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + a14 = 8; + a25 = 1; + return -1; + } else if(((a14==8)&&((a20==1)&&((a11==1)&&(!(a24==1)&&((a28==1)&&((((!(a0==1)&&(((input==1)&&((a29==5)||(a29==6)))&&(a22==1)))&&(a7==1))&&(a19==3))&&(a25==1)))))))){ + a29 = 6; + a24 = 1; + a7 = 0; + a19 = 2; + return -1; + } else if((((a0==1)&&((a14==9)&&((a22==1)&&((a24==1)&&((((a20==1)&&((a19==3)&&((!(a7==1)&&(input==5))&&!(a11==1))))&&(a28==1))&&(a25==1))))))&&(a29==7))){ + a29 = 5; + a19 = 1; + a11 = 1; + a7 = 1; + a14 = 8; + return -1; + } else if(((a28==1)&&((((a0==1)&&((a22==1)&&((a7==1)&&(!(a20==1)&&((a14==8)&&(!(a24==1)&&((((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))&&(input==3))))))))&&!(a25==1))&&(a11==1)))){ + a25 = 1; + a24 = 1; + a19 = 3; + a29 = 9; + a0 = 0; + return 24; + } else if((((!(a11==1)&&(((!(a0==1)&&((!(a20==1)&&((a22==1)&&((input==2)&&(((a29==5)&&(a19==5))||(((a29==8)&&(a19==4))||((a19==4)&&(a29==9)))))))&&(a24==1)))&&(a7==1))&&!(a25==1)))&&(a28==1))&&(a14==8))){ + a29 = 5; + a20 = 1; + a0 = 1; + a25 = 1; + a19 = 1; + a11 = 1; + return -1; + } else if(((((((a29==5)&&((a22==1)&&(!(a24==1)&&((a14==8)&&(!(a7==1)&&(((input==2)&&(a11==1))&&!(a20==1)))))))&&(a28==1))&&(a0==1))&&(a25==1))&&(a19==3))){ + a7 = 1; + a25 = 0; + a24 = 1; + a20 = 1; + a11 = 0; + a0 = 0; + a29 = 7; + a19 = 2; + return 24; + } else if(((((!(a0==1)&&((a7==1)&&(((a22==1)&&((a14==8)&&(((a25==1)&&((input==5)&&((a29==6)||(a29==7))))&&!(a20==1))))&&!(a24==1))))&&(a11==1))&&(a28==1))&&(a19==3))){ + a19 = 2; + a7 = 0; + a20 = 1; + a29 = 7; + a14 = 9; + a0 = 1; + return 23; + } else if((((a0==1)&&(!(a20==1)&&((((!(a24==1)&&((a28==1)&&(((a14==9)&&((((a29==6)||(a29==7))||(a29==8))&&(input==1)))&&(a19==1))))&&(a11==1))&&!(a25==1))&&(a22==1))))&&!(a7==1))){ + a0 = 0; + a11 = 0; + a14 = 8; + a24 = 1; + a29 = 9; + a19 = 2; + return -1; + } else if((!(a24==1)&&(((!(a25==1)&&((!(a11==1)&&(((a19==2)&&((a14==9)&&((a28==1)&&((input==1)&&((a29==9)||((a29==7)||(a29==8)))))))&&!(a0==1)))&&(a20==1)))&&(a7==1))&&(a22==1)))){ + a24 = 1; + a29 = 6; + a7 = 0; + a11 = 1; + a14 = 8; + a25 = 1; + a19 = 3; + return 23; + } else if(((((a28==1)&&((a22==1)&&((((a0==1)&&((!(a24==1)&&((a20==1)&&((input==6)&&(((a29==5)||(a29==6))||(a29==7)))))&&!(a25==1)))&&!(a11==1))&&(a7==1))))&&(a14==9))&&(a19==5))){ + a11 = 1; + a14 = 8; + a19 = 4; + a25 = 1; + a29 = 9; + a0 = 0; + return 21; + } else if((!(a25==1)&&(((a14==8)&&(((a22==1)&&(((((a7==1)&&(!(a0==1)&&((input==3)&&((a29==5)||(a29==6)))))&&!(a11==1))&&!(a24==1))&&(a28==1)))&&(a19==2)))&&!(a20==1)))){ + a29 = 8; + a14 = 9; + a24 = 1; + a7 = 0; + a25 = 1; + return 24; + } else if(((a7==1)&&((a20==1)&&((!(a24==1)&&((((a14==8)&&(((a28==1)&&(!(a25==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==3))))&&(a22==1)))&&!(a0==1))&&(a11==1)))&&(a19==1))))){ + a19 = 2; + a29 = 8; + a25 = 1; + a14 = 9; + a24 = 1; + return 21; + } else if(((((a14==8)&&(!(a24==1)&&((a25==1)&&(((((a7==1)&&((input==6)&&(((a19==4)&&(a29==6))||(((a29==9)&&(a19==3))||((a29==5)&&(a19==4))))))&&(a0==1))&&!(a11==1))&&(a28==1)))))&&(a20==1))&&(a22==1))){ + a29 = 7; + a25 = 0; + a11 = 1; + a19 = 3; + a14 = 9; + return 24; + } else if((!(a24==1)&&(!(a11==1)&&((a7==1)&&((a0==1)&&((a22==1)&&((!(a20==1)&&((a14==8)&&((((a19==5)&&((a29==9)&&(a25==1)))||((!(a25==1)&&(a29==5))&&(a19==1)))&&(input==1))))&&(a28==1)))))))){ + a20 = 1; + a25 = 0; + a29 = 7; + a24 = 1; + a14 = 9; + a19 = 2; + a7 = 0; + return 23; + } else if(((!(a25==1)&&(!(a20==1)&&((a24==1)&&((a14==9)&&((a22==1)&&((a7==1)&&((a28==1)&&((a11==1)&&((((a29==5)||(a29==6))&&(input==3))&&(a0==1))))))))))&&(a19==4))){ + a11 = 0; + a0 = 0; + a14 = 8; + a25 = 1; + a19 = 1; + a7 = 0; + a20 = 1; + a29 = 9; + return 23; + } else if(((a28==1)&&((a29==7)&&((a0==1)&&(((a14==8)&&((a11==1)&&((a20==1)&&((a19==5)&&(!(a24==1)&&((!(a25==1)&&(input==5))&&(a22==1)))))))&&!(a7==1)))))){ + a11 = 0; + a29 = 9; + a20 = 0; + return 21; + } else if(((a20==1)&&((((a25==1)&&((((a22==1)&&((!(a24==1)&&((((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))&&(input==6)))&&!(a7==1)))&&!(a0==1))&&(a28==1)))&&(a14==9))&&(a11==1)))){ + a0 = 1; + a25 = 0; + a19 = 4; + a24 = 1; + a20 = 0; + a29 = 5; + a11 = 0; + return 21; + } else if(((a14==9)&&((a22==1)&&((((a28==1)&&(((a20==1)&&((((a19==3)&&((input==3)&&!(a7==1)))&&!(a0==1))&&(a29==8)))&&!(a11==1)))&&(a25==1))&&!(a24==1))))){ + a20 = 0; + a11 = 1; + a7 = 1; + a19 = 2; + a0 = 1; + a24 = 1; + return 21; + } else if(((a14==9)&&((((a7==1)&&((a0==1)&&((a19==5)&&(((a28==1)&&(((((a29==7)||((a29==5)||(a29==6)))&&(input==6))&&!(a11==1))&&!(a20==1)))&&!(a25==1)))))&&(a22==1))&&!(a24==1)))){ + a29 = 9; + a20 = 1; + a25 = 1; + return 23; + } else if((((!(a11==1)&&((((a20==1)&&((((a0==1)&&(((input==2)&&((a29==6)||(a29==7)))&&(a25==1)))&&(a7==1))&&(a28==1)))&&(a22==1))&&(a19==5)))&&!(a24==1))&&(a14==9))){ + a14 = 8; + a29 = 5; + a24 = 1; + a11 = 1; + a19 = 1; + return -1; + } else if(((!(a0==1)&&((!(a20==1)&&((!(a11==1)&&(((((a24==1)&&((input==5)&&(((a29==7)||(a29==8))||(a29==9))))&&(a14==8))&&(a22==1))&&!(a7==1)))&&(a28==1)))&&(a19==3)))&&(a25==1))){ + a20 = 1; + a29 = 5; + a7 = 1; + a25 = 0; + a11 = 1; + return -1; + } else if(((a28==1)&&(!(a20==1)&&((!(a0==1)&&((!(a11==1)&&(((((a22==1)&&((input==1)&&!(a24==1)))&&(a19==3))&&!(a7==1))&&!(a25==1)))&&(a29==6)))&&(a14==8))))){ + a19 = 1; + a7 = 1; + a14 = 9; + a20 = 1; + a29 = 9; + return 23; + } else if(((a11==1)&&(!(a25==1)&&(((a22==1)&&(((((a7==1)&&(!(a20==1)&&(((((a19==3)&&(a29==8))||((a29==9)&&(a19==3)))||((a19==4)&&(a29==5)))&&(input==3))))&&(a14==9))&&!(a0==1))&&(a28==1)))&&(a24==1))))){ + a19 = 3; + a0 = 1; + a7 = 0; + a14 = 8; + a25 = 1; + a11 = 0; + a24 = 0; + a29 = 7; + return 24; + } else if((((!(a0==1)&&((a28==1)&&((a29==6)&&((a7==1)&&((a14==9)&&((a22==1)&&((!(a11==1)&&((input==5)&&(a24==1)))&&(a25==1))))))))&&(a19==1))&&!(a20==1))){ + a11 = 1; + a19 = 4; + a14 = 8; + a29 = 5; + a7 = 0; + return -1; + } else if((((a25==1)&&((((((a14==8)&&((a20==1)&&((a24==1)&&(((((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))||((a29==5)&&(a19==5)))&&(input==1)))))&&(a0==1))&&!(a7==1))&&(a11==1))&&(a22==1)))&&(a28==1))){ + a7 = 1; + a20 = 0; + a29 = 8; + a19 = 3; + return 23; + } else if(((!(a25==1)&&((((((((a11==1)&&((input==5)&&(((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))))&&!(a24==1))&&(a28==1))&&(a0==1))&&(a14==10))&&(a20==1))&&(a7==1)))&&(a22==1))){ + a14 = 8; + a20 = 0; + a29 = 8; + a0 = 0; + a19 = 5; + return -1; + } else if(((a22==1)&&(((a28==1)&&((a24==1)&&((((((!(a20==1)&&(((a29==7)||(a29==8))&&(input==1)))&&(a19==3))&&!(a11==1))&&(a25==1))&&(a14==9))&&(a0==1))))&&(a7==1)))){ + a20 = 1; + a29 = 5; + a19 = 5; + return 24; + } else if((((a19==2)&&(((a11==1)&&(!(a25==1)&&(((((a20==1)&&((((a29==8)||(a29==9))&&(input==3))&&(a24==1)))&&(a28==1))&&(a14==10))&&(a7==1))))&&(a0==1)))&&(a22==1))){ + a14 = 9; + a19 = 4; + a29 = 5; + a7 = 0; + a24 = 0; + a25 = 1; + a20 = 0; + return -1; + } else if((!(a0==1)&&(((((a14==9)&&((((a22==1)&&((a7==1)&&(!(a24==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==2)))))&&(a11==1))&&(a19==3)))&&(a20==1))&&!(a25==1))&&(a28==1)))){ + a7 = 0; + a29 = 8; + a14 = 8; + a19 = 4; + a11 = 0; + a0 = 1; + a20 = 0; + return 24; + } else if((((a14==8)&&(((a28==1)&&((((a29==9)&&((!(a0==1)&&(!(a7==1)&&((a19==5)&&(input==6))))&&(a25==1)))&&(a22==1))&&(a20==1)))&&(a24==1)))&&(a11==1))){ + a25 = 0; + a19 = 2; + a7 = 1; + return 24; + } else if(((a14==9)&&(!(a7==1)&&(((((a24==1)&&((a29==8)&&(((a20==1)&&((a19==1)&&(!(a0==1)&&(input==2))))&&!(a11==1))))&&(a25==1))&&(a28==1))&&(a22==1))))){ + a29 = 5; + a19 = 4; + a0 = 1; + a25 = 0; + a20 = 0; + return 21; + } else if((!(a20==1)&&((a14==8)&&(((((a25==1)&&(((a24==1)&&(((input==2)&&((((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))||((a29==5)&&(a19==5))))&&!(a7==1)))&&(a28==1)))&&(a11==1))&&!(a0==1))&&(a22==1))))){ + a0 = 1; + a19 = 1; + a7 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if(((((((a28==1)&&(!(a25==1)&&(((((a29==8)&&((a7==1)&&(input==1)))&&!(a20==1))&&!(a11==1))&&(a19==5))))&&!(a0==1))&&(a14==8))&&(a24==1))&&(a22==1))){ + a20 = 1; + a29 = 5; + a25 = 1; + a0 = 1; + a19 = 1; + a11 = 1; + return -1; + } else if(((a28==1)&&((a0==1)&&((((a22==1)&&((a14==9)&&(!(a20==1)&&((!(a7==1)&&(((((a29==8)&&(a19==2))||((a19==2)&&(a29==9)))||((a19==3)&&(a29==5)))&&(input==4)))&&(a25==1)))))&&(a24==1))&&(a11==1))))){ + a20 = 1; + a29 = 9; + a19 = 4; + a7 = 1; + a14 = 10; + return 24; + } else if((((a25==1)&&((a0==1)&&((a22==1)&&((((a28==1)&&((!(a11==1)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==6))&&!(a24==1)))&&(a19==2)))&&(a14==9))&&(a20==1)))))&&(a7==1))){ + a19 = 1; + a29 = 9; + a0 = 0; + a24 = 1; + a14 = 8; + a11 = 1; + return 21; + } else if((((a28==1)&&((((a24==1)&&((a19==4)&&((((((input==6)&&!(a11==1))&&(a20==1))&&(a14==8))&&(a25==1))&&(a22==1))))&&(a29==7))&&!(a0==1)))&&!(a7==1))){ + a14 = 9; + a19 = 2; + a29 = 5; + a11 = 1; + a25 = 0; + a24 = 0; + return 23; + } else if(((((a25==1)&&(((a19==4)&&(!(a0==1)&&(((a14==8)&&((a20==1)&&(!(a7==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==3)))))&&(a22==1))))&&(a11==1)))&&(a28==1))&&!(a24==1))){ + a20 = 0; + a25 = 0; + a24 = 1; + a19 = 2; + a29 = 5; + return 23; + } else if(((!(a25==1)&&(((a22==1)&&((a14==9)&&(((((a24==1)&&((a19==5)&&((((a29==6)||(a29==7))||(a29==8))&&(input==1))))&&!(a11==1))&&!(a20==1))&&!(a7==1))))&&!(a0==1)))&&(a28==1))){ + a0 = 1; + a25 = 1; + a29 = 6; + a24 = 0; + a19 = 2; + return 21; + } else if((((a22==1)&&((((a20==1)&&((((a19==4)&&((a14==10)&&(!(a25==1)&&((input==6)&&(a11==1)))))&&(a7==1))&&(a0==1)))&&(a29==9))&&(a28==1)))&&(a24==1))){ + a14 = 8; + a7 = 0; + a0 = 0; + a29 = 8; + a20 = 0; + a19 = 1; + return -1; + } else if((!(a7==1)&&((((a28==1)&&((a14==9)&&((((a20==1)&&((a25==1)&&((a22==1)&&((input==5)&&((a29==9)||((a29==7)||(a29==8)))))))&&!(a0==1))&&!(a11==1))))&&(a19==2))&&(a24==1)))){ + a11 = 1; + a25 = 0; + a29 = 5; + a14 = 8; + a19 = 3; + a20 = 0; + return 23; + } else if(((a25==1)&&(!(a11==1)&&((a19==2)&&((a24==1)&&((!(a20==1)&&((((((input==3)&&((a29==9)||((a29==7)||(a29==8))))&&(a28==1))&&(a22==1))&&!(a0==1))&&!(a7==1)))&&(a14==9))))))){ + a14 = 8; + a29 = 6; + a11 = 1; + a20 = 1; + return 23; + } else if((((a28==1)&&((a19==1)&&(!(a11==1)&&((a24==1)&&(!(a20==1)&&((a14==9)&&(!(a0==1)&&(((a25==1)&&(((a29==8)||(a29==9))&&(input==3)))&&!(a7==1)))))))))&&(a22==1))){ + a11 = 1; + a29 = 6; + a19 = 4; + a24 = 0; + return -1; + } else if(((a0==1)&&((!(a25==1)&&(((((a29==9)&&(((a19==2)&&(((input==3)&&(a22==1))&&!(a20==1)))&&(a28==1)))&&(a11==1))&&(a14==8))&&(a24==1)))&&(a7==1)))){ + a29 = 5; + a19 = 1; + a25 = 1; + a20 = 1; + return -1; + } else if(((a22==1)&&(!(a24==1)&&(!(a7==1)&&((a11==1)&&((a28==1)&&(((a20==1)&&((a25==1)&&(!(a0==1)&&((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))&&(input==1)))))&&(a14==9)))))))){ + a14 = 8; + a7 = 1; + a19 = 3; + a20 = 0; + a29 = 6; + return 21; + } else if(((a7==1)&&((a28==1)&&((a20==1)&&(!(a24==1)&&(((a25==1)&&(!(a0==1)&&((((a14==9)&&((a29==5)&&(input==2)))&&(a11==1))&&(a22==1))))&&(a19==2))))))){ + a0 = 1; + a7 = 0; + a20 = 0; + a19 = 5; + return 21; + } else if(((((a19==2)&&((a28==1)&&((a7==1)&&((((!(a25==1)&&(!(a24==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==3))))&&(a0==1))&&!(a20==1))&&(a22==1)))))&&(a11==1))&&(a14==8))){ + a25 = 1; + a29 = 5; + a19 = 1; + a20 = 1; + a24 = 1; + return -1; + } else if((((!(a20==1)&&((a25==1)&&((!(a24==1)&&(((!(a0==1)&&((((a29==6)||(a29==7))&&(input==1))&&(a22==1)))&&!(a7==1))&&(a19==1)))&&!(a11==1))))&&(a28==1))&&(a14==8))){ + a25 = 0; + a24 = 1; + a29 = 6; + a19 = 3; + a11 = 1; + return -1; + } else if(((!(a20==1)&&(!(a7==1)&&(((((a24==1)&&((!(a11==1)&&(!(a0==1)&&((input==2)&&(a22==1))))&&(a14==9)))&&!(a25==1))&&(a28==1))&&(a19==4))))&&(a29==5))){ + a0 = 1; + a7 = 1; + a25 = 1; + a14 = 8; + a20 = 1; + a11 = 1; + a19 = 1; + return -1; + } else if(((((a24==1)&&(((a14==9)&&((a28==1)&&((a22==1)&&((!(a0==1)&&((input==2)&&(((a19==5)&&(a29==6))||(((a29==9)&&(a19==4))||((a29==5)&&(a19==5))))))&&!(a25==1)))))&&!(a7==1)))&&(a11==1))&&(a20==1))){ + a0 = 1; + a24 = 0; + a14 = 8; + a19 = 5; + a11 = 0; + a7 = 1; + a29 = 7; + a20 = 0; + return 24; + } else if((((((a0==1)&&(((a19==4)&&(((a25==1)&&((a7==1)&&((a14==9)&&((input==1)&&((a29==5)||(a29==6))))))&&(a11==1)))&&(a22==1)))&&(a24==1))&&(a28==1))&&!(a20==1))){ + a14 = 8; + a25 = 0; + a0 = 0; + a11 = 0; + a20 = 1; + a29 = 6; + return 23; + } else if(((((a29==8)&&(((((a19==4)&&((a14==10)&&(((a24==1)&&((input==2)&&!(a7==1)))&&!(a25==1))))&&(a28==1))&&(a11==1))&&(a0==1)))&&(a22==1))&&(a20==1))){ + a19 = 1; + a14 = 8; + a29 = 5; + a7 = 1; + a25 = 1; + return -1; + } else if(((a11==1)&&((!(a0==1)&&(!(a7==1)&&(((((a28==1)&&((a14==8)&&(((input==3)&&((a29==8)||(a29==9)))&&(a22==1))))&&!(a20==1))&&(a25==1))&&(a19==4))))&&!(a24==1)))){ + a29 = 7; + a19 = 1; + a0 = 1; + a11 = 0; + a25 = 0; + return 23; + } else if(((a14==9)&&((((a28==1)&&(((!(a25==1)&&((a19==4)&&(!(a11==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==4))&&(a7==1)))))&&(a22==1))&&(a24==1)))&&(a0==1))&&(a20==1)))){ + a0 = 0; + a19 = 3; + a14 = 8; + a29 = 7; + a25 = 1; + return -1; + } else if(((a22==1)&&(!(a25==1)&&(((a11==1)&&((a28==1)&&(((a0==1)&&((a14==9)&&((a19==2)&&(!(a20==1)&&((input==3)&&(((a29==5)||(a29==6))||(a29==7)))))))&&(a24==1))))&&(a7==1))))){ + a19 = 1; + a25 = 1; + a29 = 5; + a14 = 8; + a20 = 1; + return -1; + } else if(((!(a24==1)&&(!(a20==1)&&(((a11==1)&&((a28==1)&&((a0==1)&&(((a22==1)&&(((input==3)&&((a29==9)||((a29==7)||(a29==8))))&&(a14==8)))&&(a19==2)))))&&!(a7==1))))&&(a25==1))){ + a19 = 1; + a11 = 0; + a24 = 1; + a29 = 6; + a25 = 0; + a20 = 1; + a0 = 0; + a7 = 1; + return 21; + } else if(((((((a14==9)&&(!(a7==1)&&((((a29==9)&&((a22==1)&&((input==4)&&!(a11==1))))&&(a28==1))&&(a19==3))))&&!(a20==1))&&(a0==1))&&(a24==1))&&!(a25==1))){ + a20 = 1; + a29 = 5; + a14 = 8; + a19 = 4; + a7 = 1; + a0 = 0; + return -1; + } else if((((((a0==1)&&(!(a24==1)&&(!(a7==1)&&((((a14==9)&&(!(a11==1)&&((input==6)&&((a29==5)||(a29==6)))))&&!(a25==1))&&(a22==1)))))&&(a19==1))&&(a28==1))&&(a20==1))){ + a7 = 1; + a29 = 8; + a19 = 4; + a25 = 1; + return 21; + } else if(((((((!(a20==1)&&(!(a7==1)&&((((a25==1)&&((input==6)&&!(a24==1)))&&(a19==1))&&(a22==1))))&&!(a0==1))&&(a29==6))&&(a28==1))&&(a11==1))&&(a14==9))){ + a0 = 1; + a29 = 5; + a7 = 1; + a14 = 8; + a24 = 1; + a20 = 1; + return -1; + } else if(((a22==1)&&(!(a20==1)&&((a14==9)&&(((!(a25==1)&&(((!(a11==1)&&(((input==6)&&((a29==7)||(a29==8)))&&(a7==1)))&&(a28==1))&&(a19==3)))&&!(a24==1))&&!(a0==1)))))){ + a11 = 1; + a29 = 9; + return -1; + } else if(((((((!(a20==1)&&((a28==1)&&((((((a25==1)&&!(a7==1))&&(a29==5))&&(a19==1))||((((a29==8)&&((a7==1)&&!(a25==1)))&&(a19==5))||((((a7==1)&&!(a25==1))&&(a29==9))&&(a19==5))))&&(input==1))))&&(a0==1))&&(a14==9))&&!(a24==1))&&(a22==1))&&(a11==1))){ + a25 = 1; + a0 = 0; + a14 = 8; + a20 = 1; + a29 = 8; + a7 = 0; + a19 = 2; + return 24; + } else if(((a28==1)&&((a24==1)&&((!(a11==1)&&(((a22==1)&&(((a14==9)&&(!(a20==1)&&((a19==5)&&(((a29==5)||(a29==6))&&(input==6)))))&&(a0==1)))&&(a7==1)))&&!(a25==1))))){ + a25 = 1; + a11 = 1; + a29 = 8; + a19 = 3; + return -1; + } else if((((((((a22==1)&&((a20==1)&&(!(a25==1)&&((((input==6)&&(((a29==7)||(a29==8))||(a29==9)))&&(a7==1))&&(a24==1)))))&&(a14==10))&&(a28==1))&&(a19==5))&&(a0==1))&&(a11==1))){ + a19 = 4; + a14 = 8; + a29 = 9; + a0 = 0; + return 21; + } else if(((!(a7==1)&&(((a0==1)&&(((a14==8)&&((a11==1)&&(!(a25==1)&&(!(a20==1)&&((((a29==5)||(a29==6))&&(input==5))&&(a28==1))))))&&(a22==1)))&&(a24==1)))&&(a19==3))){ + a20 = 1; + a24 = 0; + a7 = 1; + a11 = 0; + a29 = 6; + return 24; + } else if(((a14==9)&&((a7==1)&&(((a11==1)&&((a24==1)&&((a25==1)&&((((a28==1)&&(!(a0==1)&&(((a29==7)||(a29==8))&&(input==2))))&&(a19==5))&&(a22==1)))))&&(a20==1))))){ + a29 = 5; + a14 = 8; + a19 = 1; + a0 = 1; + return -1; + } else if((((a28==1)&&((!(a0==1)&&((((a19==5)&&((a22==1)&&((a24==1)&&(((input==4)&&(a25==1))&&(a29==7)))))&&!(a7==1))&&!(a20==1)))&&(a11==1)))&&(a14==9))){ + a14 = 8; + a29 = 9; + a19 = 3; + a24 = 0; + a11 = 0; + return 24; + } else if((((a14==10)&&((a28==1)&&(((a19==1)&&((((a24==1)&&((a7==1)&&((a22==1)&&((input==6)&&((a29==5)||(a29==6))))))&&!(a20==1))&&(a25==1)))&&(a11==1))))&&(a0==1))){ + a7 = 0; + a19 = 5; + a24 = 0; + a14 = 9; + a29 = 6; + a20 = 1; + return -1; + } else if(((!(a24==1)&&((a28==1)&&(((a0==1)&&(((((((a19==1)&&(!(a25==1)&&(a29==5)))||((((a29==8)&&(a25==1))&&(a19==5))||((a19==5)&&((a25==1)&&(a29==9)))))&&(input==6))&&(a14==9))&&(a20==1))&&(a22==1)))&&(a11==1))))&&(a7==1))){ + a29 = 5; + a24 = 1; + a14 = 8; + a25 = 1; + a19 = 1; + return -1; + } else if((!(a25==1)&&((!(a24==1)&&((a28==1)&&(((a14==9)&&((a11==1)&&(((!(a20==1)&&((input==2)&&((a29==6)||(a29==7))))&&!(a0==1))&&(a19==5))))&&(a22==1))))&&!(a7==1)))){ + a25 = 1; + a29 = 5; + a14 = 8; + a20 = 1; + a0 = 1; + a24 = 1; + a7 = 1; + a19 = 1; + return -1; + } else if((((((a11==1)&&(!(a0==1)&&(((a22==1)&&(!(a24==1)&&((input==6)&&((((a29==9)&&(a25==1))&&(a19==5))||((a19==1)&&(!(a25==1)&&(a29==5)))))))&&!(a7==1))))&&(a28==1))&&(a14==8))&&(a20==1))){ + a25 = 0; + a20 = 0; + a11 = 0; + a19 = 5; + a29 = 8; + a7 = 1; + a0 = 1; + return 23; + } else if(((!(a20==1)&&((a22==1)&&((a28==1)&&(((a0==1)&&(((a14==10)&&(!(a25==1)&&(!(a7==1)&&((input==6)&&(((a29==6)||(a29==7))||(a29==8))))))&&(a24==1)))&&(a19==2)))))&&(a11==1))){ + a0 = 0; + a25 = 1; + a14 = 9; + a24 = 0; + a29 = 8; + a19 = 1; + a7 = 1; + return -1; + } else if((((!(a25==1)&&(!(a11==1)&&((((a20==1)&&((((((a29==7)||(a29==8))&&(input==6))&&(a28==1))&&(a0==1))&&!(a7==1)))&&(a14==9))&&(a22==1))))&&(a24==1))&&(a19==4))){ + a11 = 1; + a19 = 3; + a20 = 0; + a29 = 6; + a24 = 0; + return 24; + } else if((((((a11==1)&&((a24==1)&&((a14==10)&&(((((((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))&&(input==6))&&!(a20==1))&&(a25==1))&&(a7==1)))))&&(a0==1))&&(a28==1))&&(a22==1))){ + a19 = 1; + a14 = 8; + a20 = 1; + a29 = 5; + return -1; + } else if((((a14==8)&&((!(a0==1)&&((a28==1)&&(!(a24==1)&&(((!(a11==1)&&(((input==3)&&(a19==5))&&(a29==8)))&&!(a25==1))&&!(a20==1)))))&&(a22==1)))&&!(a7==1))){ + a29 = 5; + a19 = 2; + a20 = 1; + a24 = 1; + a11 = 1; + a25 = 1; + return 23; + } else if(((!(a7==1)&&(((!(a20==1)&&((a28==1)&&(((a11==1)&&((a22==1)&&((a14==8)&&((input==2)&&(a0==1)))))&&(a19==3))))&&(a25==1))&&(a29==8)))&&!(a24==1))){ + a24 = 1; + a7 = 1; + a29 = 5; + a19 = 1; + a20 = 1; + return -1; + } else if(((a22==1)&&((a20==1)&&(!(a7==1)&&((a11==1)&&((((a28==1)&&((a0==1)&&(((input==1)&&(((a19==3)&&(a29==9))||((a19==4)&&(a29==5))))&&(a14==10))))&&!(a25==1))&&(a24==1))))))){ + a0 = 0; + a29 = 9; + a14 = 8; + a25 = 1; + a7 = 1; + a19 = 3; + return 23; + } else if(((!(a7==1)&&(!(a24==1)&&((a22==1)&&(((a14==8)&&((((a25==1)&&(((a0==1)&&(input==4))&&(a29==6)))&&(a19==1))&&(a11==1)))&&(a20==1)))))&&(a28==1))){ + a20 = 0; + a7 = 1; + a19 = 3; + a24 = 1; + a29 = 5; + a0 = 0; + return 24; + } else if((((a14==9)&&((a0==1)&&(((a24==1)&&(((((a22==1)&&((a28==1)&&((input==3)&&((a29==8)||((a29==6)||(a29==7))))))&&!(a7==1))&&(a20==1))&&(a19==4)))&&(a25==1))))&&(a11==1))){ + a7 = 1; + a24 = 0; + a20 = 0; + a19 = 5; + a29 = 9; + return 21; + } else if((((((a24==1)&&((a22==1)&&(!(a20==1)&&((a7==1)&&(((a28==1)&&(!(a25==1)&&((a19==2)&&(input==4))))&&(a14==9))))))&&!(a0==1))&&(a29==8))&&!(a11==1))){ + a29 = 5; + a24 = 0; + a7 = 0; + a19 = 4; + a20 = 1; + a0 = 1; + return -1; + } else if((((!(a7==1)&&(((a0==1)&&((a14==9)&&((a28==1)&&((!(a20==1)&&(!(a24==1)&&((input==6)&&((a29==5)||(a29==6)))))&&(a25==1)))))&&!(a11==1)))&&(a19==1))&&(a22==1))){ + a24 = 1; + a29 = 7; + a0 = 0; + a19 = 3; + a20 = 1; + a14 = 8; + a11 = 1; + return 21; + } else if((((a24==1)&&(((a0==1)&&((((((a7==1)&&((a28==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==4))))&&(a19==2))&&!(a20==1))&&(a14==9))&&(a11==1)))&&(a22==1)))&&(a25==1))){ + a29 = 5; + a20 = 1; + a19 = 1; + a14 = 8; + return -1; + } else if((((!(a25==1)&&(((a22==1)&&(((a14==8)&&((a7==1)&&((((input==4)&&((a29==7)||((a29==5)||(a29==6))))&&!(a20==1))&&(a0==1))))&&(a19==2)))&&(a28==1)))&&(a24==1))&&(a11==1))){ + a24 = 0; + a19 = 1; + a29 = 5; + a7 = 0; + return 24; + } else if(((a22==1)&&((a28==1)&&((a14==8)&&((a0==1)&&(!(a24==1)&&((((a25==1)&&((a20==1)&&((((a29==6)&&(a19==2))||(((a29==9)&&(a19==1))||((a29==5)&&(a19==2))))&&(input==4))))&&!(a7==1))&&(a11==1)))))))){ + a20 = 0; + a7 = 1; + a0 = 0; + a29 = 7; + a25 = 0; + a24 = 1; + a19 = 4; + return 21; + } else if((((a14==8)&&(!(a0==1)&&(!(a11==1)&&((((((a28==1)&&((!(a24==1)&&(input==6))&&(a7==1)))&&(a29==8))&&(a22==1))&&(a19==4))&&(a25==1)))))&&!(a20==1))){ + a24 = 1; + a11 = 1; + a20 = 1; + a19 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if(((a29==9)&&(((a7==1)&&((a28==1)&&((((a22==1)&&((a14==8)&&((!(a11==1)&&(!(a20==1)&&(input==1)))&&(a25==1))))&&(a24==1))&&(a19==4))))&&(a0==1)))){ + a11 = 1; + a29 = 8; + a0 = 0; + a25 = 0; + a7 = 0; + return 24; + } else if(((a0==1)&&(((((a25==1)&&((a19==1)&&((a22==1)&&((a20==1)&&((((input==5)&&(a28==1))&&(a11==1))&&(a29==9))))))&&(a7==1))&&(a24==1))&&(a14==9)))){ + a7 = 0; + a0 = 0; + a11 = 0; + a24 = 0; + return 23; + } else if(((a22==1)&&((a25==1)&&((a28==1)&&((a19==4)&&((a7==1)&&((a24==1)&&((a14==9)&&((a0==1)&&(!(a20==1)&&(!(a11==1)&&((input==6)&&((a29==9)||((a29==7)||(a29==8))))))))))))))){ + a24 = 0; + a14 = 8; + a19 = 3; + a7 = 0; + a29 = 7; + return 24; + } else if((((a22==1)&&((!(a7==1)&&((a29==9)&&((a14==9)&&(!(a11==1)&&((a28==1)&&((!(a20==1)&&((input==3)&&!(a25==1)))&&(a19==3)))))))&&!(a24==1)))&&(a0==1))){ + a20 = 1; + a29 = 5; + a19 = 5; + a11 = 1; + a25 = 1; + return 21; + } else if((!(a7==1)&&((a25==1)&&(((((((((a22==1)&&((input==1)&&((a29==8)||(a29==9))))&&(a19==1))&&(a24==1))&&(a14==8))&&!(a11==1))&&(a20==1))&&(a28==1))&&(a0==1))))){ + a29 = 8; + a0 = 0; + a24 = 0; + return 21; + } else if(((a28==1)&&((((((a19==1)&&((a11==1)&&(((!(a0==1)&&((a22==1)&&(input==1)))&&!(a20==1))&&(a25==1))))&&(a7==1))&&!(a24==1))&&(a29==9))&&(a14==9)))){ + a24 = 1; + a29 = 6; + a25 = 0; + a19 = 4; + a14 = 8; + a7 = 0; + return 24; + } else if(((a19==5)&&((a14==8)&&((a20==1)&&((a28==1)&&((a24==1)&&(((a29==5)&&(!(a0==1)&&((a22==1)&&(!(a7==1)&&((a25==1)&&(input==6))))))&&(a11==1)))))))){ + a19 = 2; + a29 = 7; + return -1; + } else if(((a19==1)&&((a22==1)&&(!(a24==1)&&((a7==1)&&(!(a0==1)&&((a11==1)&&((((a28==1)&&(((a25==1)&&(input==5))&&!(a20==1)))&&(a29==8))&&(a14==9))))))))){ + a29 = 5; + a24 = 1; + a25 = 0; + a20 = 1; + a7 = 0; + return -1; + } else if((((((((a7==1)&&(!(a0==1)&&(((a25==1)&&((a28==1)&&((input==2)&&((a29==7)||((a29==5)||(a29==6))))))&&(a19==4))))&&(a20==1))&&(a22==1))&&(a14==8))&&!(a11==1))&&!(a24==1))){ + a25 = 0; + a24 = 1; + a29 = 8; + a11 = 1; + a19 = 2; + return 23; + } else if(((a11==1)&&((((((a20==1)&&(!(a24==1)&&((!(a7==1)&&((a28==1)&&((a29==6)&&(input==6))))&&(a22==1))))&&(a0==1))&&(a19==3))&&(a25==1))&&(a14==8)))){ + a29 = 5; + a20 = 0; + a19 = 1; + a24 = 1; + a0 = 0; + a25 = 0; + return 24; + } else if(((a28==1)&&((a0==1)&&((((!(a25==1)&&((a20==1)&&((a22==1)&&(((input==6)&&((((a29==9)&&(a19==4))||((a29==5)&&(a19==5)))||((a29==6)&&(a19==5))))&&!(a7==1)))))&&!(a11==1))&&(a14==9))&&!(a24==1))))){ + a25 = 1; + a29 = 9; + a11 = 1; + a19 = 3; + return 24; + } else if((((((((((a19==3)&&(!(a25==1)&&(!(a20==1)&&((input==6)&&((a29==7)||((a29==5)||(a29==6)))))))&&(a14==10))&&(a11==1))&&(a24==1))&&!(a7==1))&&(a28==1))&&(a0==1))&&(a22==1))){ + a19 = 2; + a14 = 9; + a7 = 1; + a24 = 0; + a29 = 6; + return 23; + } else if(((a14==8)&&(!(a20==1)&&((a28==1)&&(!(a0==1)&&(((a11==1)&&((a22==1)&&(((a19==4)&&(!(a7==1)&&((input==2)&&((a29==7)||(a29==8)))))&&!(a24==1))))&&!(a25==1))))))){ + a29 = 8; + a19 = 2; + a24 = 1; + return 24; + } else if((((a11==1)&&((a19==4)&&(!(a20==1)&&((a14==9)&&(((a22==1)&&((a28==1)&&(((((a29==5)||(a29==6))&&(input==2))&&!(a24==1))&&(a7==1))))&&(a25==1))))))&&!(a0==1))){ + a14 = 8; + a29 = 5; + a19 = 2; + a11 = 0; + a7 = 0; + return -1; + } else if((!(a7==1)&&((a24==1)&&((a28==1)&&(!(a0==1)&&((a20==1)&&(!(a11==1)&&((!(a25==1)&&((a22==1)&&((input==2)&&((((a19==4)&&(a29==8))||((a29==9)&&(a19==4)))||((a19==5)&&(a29==5))))))&&(a14==8))))))))){ + a14 = 9; + a24 = 0; + a11 = 1; + a29 = 8; + a20 = 0; + a25 = 1; + a7 = 1; + a19 = 1; + return 23; + } else if(((a22==1)&&((((!(a24==1)&&((a19==2)&&((!(a11==1)&&((((input==1)&&(a28==1))&&!(a0==1))&&(a14==9)))&&!(a25==1))))&&(a20==1))&&!(a7==1))&&(a29==9)))){ + a25 = 1; + a29 = 8; + a7 = 1; + a24 = 1; + a19 = 4; + a14 = 8; + a20 = 0; + return -1; + } else if((!(a20==1)&&(((((a28==1)&&(((((a0==1)&&((input==5)&&((((a29==8)&&(a19==3))||((a29==9)&&(a19==3)))||((a19==4)&&(a29==5)))))&&!(a7==1))&&(a14==8))&&(a24==1)))&&(a22==1))&&(a25==1))&&(a11==1)))){ + a29 = 5; + a19 = 1; + a20 = 1; + a7 = 1; + return -1; + } else if((((((a14==9)&&((a22==1)&&(((((a25==1)&&((a19==1)&&((a7==1)&&(input==5))))&&!(a0==1))&&(a24==1))&&(a29==5))))&&(a28==1))&&!(a11==1))&&(a20==1))){ + a11 = 1; + a25 = 0; + a7 = 0; + a24 = 0; + a0 = 1; + a19 = 4; + a20 = 0; + return -1; + } else if((((a22==1)&&(((((a11==1)&&((a29==5)&&((!(a7==1)&&(!(a24==1)&&((input==5)&&!(a20==1))))&&(a25==1))))&&(a19==5))&&(a28==1))&&!(a0==1)))&&(a14==9))){ + a14 = 8; + a7 = 1; + a25 = 0; + a11 = 0; + a29 = 6; + a19 = 1; + return 24; + } else if(((a22==1)&&(!(a11==1)&&(((a7==1)&&((((((!(a25==1)&&((a20==1)&&(input==3)))&&(a19==4))&&(a14==8))&&(a28==1))&&(a0==1))&&(a29==9)))&&!(a24==1))))){ + a25 = 1; + a11 = 1; + a24 = 1; + a0 = 0; + a19 = 1; + return 23; + } else if(((!(a24==1)&&((a22==1)&&((a14==8)&&(!(a0==1)&&((a25==1)&&(((a7==1)&&((((input==4)&&((a29==5)||(a29==6)))&&(a20==1))&&(a19==3)))&&(a28==1)))))))&&!(a11==1))){ + a25 = 0; + a29 = 7; + a24 = 1; + a19 = 1; + a14 = 9; + return 21; + } else if((!(a0==1)&&((a29==6)&&((a25==1)&&(((((a22==1)&&((!(a11==1)&&((a24==1)&&((input==3)&&(a28==1))))&&(a19==1)))&&!(a20==1))&&!(a7==1))&&(a14==8)))))){ + a29 = 5; + a7 = 1; + a20 = 1; + a11 = 1; + a0 = 1; + return -1; + } else if(((a14==9)&&(((a25==1)&&(((a20==1)&&(((!(a24==1)&&((!(a7==1)&&((input==2)&&((a29==5)||(a29==6))))&&(a22==1)))&&(a0==1))&&!(a11==1)))&&(a28==1)))&&(a19==2)))){ + a19 = 4; + a20 = 0; + a0 = 0; + a29 = 8; + a7 = 1; + a14 = 8; + return -1; + } else if(((a14==9)&&(!(a11==1)&&(((a22==1)&&((a7==1)&&(!(a20==1)&&(!(a25==1)&&((a19==5)&&((a28==1)&&(!(a24==1)&&((input==2)&&((a29==6)||(a29==7))))))))))&&!(a0==1))))){ + a24 = 1; + a19 = 4; + a29 = 6; + a0 = 1; + a25 = 1; + return -1; + } else if(((a14==8)&&((a28==1)&&(((a24==1)&&((a20==1)&&(!(a25==1)&&(((a11==1)&&(!(a0==1)&&((input==5)&&(((a19==3)&&(a29==6))||(((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))))))&&(a22==1)))))&&(a7==1))))){ + a25 = 1; + a0 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a28==1)&&((((((!(a0==1)&&(((a29==6)&&((a19==3)&&((a22==1)&&(input==4))))&&(a24==1)))&&(a25==1))&&!(a11==1))&&(a7==1))&&(a20==1))&&(a14==8)))){ + a29 = 5; + a7 = 0; + a0 = 1; + a24 = 0; + a20 = 0; + return 24; + } else if(((!(a7==1)&&(((a28==1)&&((((!(a25==1)&&((a0==1)&&((a19==5)&&((a29==5)&&(input==2)))))&&(a14==9))&&!(a24==1))&&!(a11==1)))&&(a22==1)))&&!(a20==1))){ + a19 = 2; + a24 = 1; + a7 = 1; + return -1; + } else if(((a24==1)&&((a14==10)&&(!(a7==1)&&(((((a28==1)&&((((a11==1)&&((a29==6)&&(input==2)))&&(a25==1))&&(a19==4)))&&(a22==1))&&(a20==1))&&(a0==1)))))){ + a29 = 5; + a14 = 8; + a20 = 0; + a11 = 0; + a0 = 0; + a25 = 0; + a19 = 2; + return 21; + } else if(((((!(a7==1)&&((a22==1)&&((a14==8)&&(!(a24==1)&&((a0==1)&&((((((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))||((a29==6)&&(a19==2)))&&(input==1))&&(a25==1)))))))&&(a28==1))&&(a11==1))&&(a20==1))){ + a7 = 1; + a25 = 0; + a29 = 8; + a20 = 0; + a24 = 1; + a19 = 5; + a0 = 0; + return 23; + } else if(((a28==1)&&(!(a7==1)&&((((a14==9)&&(!(a0==1)&&(((a11==1)&&((((input==5)&&(((a29==6)||(a29==7))||(a29==8)))&&!(a25==1))&&(a22==1)))&&(a19==1))))&&(a24==1))&&(a20==1))))){ + a19 = 3; + a24 = 0; + a29 = 7; + a7 = 1; + a25 = 1; + a14 = 8; + return -1; + } else if((((a28==1)&&(((!(a7==1)&&(((a20==1)&&(((((input==6)&&((a29==5)||(a29==6)))&&(a24==1))&&(a22==1))&&(a14==8)))&&(a11==1)))&&(a19==4))&&(a0==1)))&&!(a25==1))){ + a7 = 1; + a29 = 6; + a25 = 1; + a24 = 0; + a19 = 3; + return 24; + } else if(((a29==8)&&((((((!(a11==1)&&((((a14==9)&&(!(a25==1)&&(input==2)))&&(a28==1))&&(a22==1)))&&(a20==1))&&!(a0==1))&&(a7==1))&&(a19==2))&&(a24==1)))){ + a0 = 1; + a7 = 0; + a20 = 0; + a29 = 9; + a19 = 3; + a14 = 8; + a24 = 0; + return 23; + } else if(((a25==1)&&(((a29==5)&&((a14==9)&&((a20==1)&&((a28==1)&&(((a0==1)&&(((!(a11==1)&&(input==1))&&!(a7==1))&&(a22==1)))&&(a19==3))))))&&!(a24==1)))){ + a14 = 8; + a11 = 1; + a19 = 1; + a24 = 1; + a7 = 1; + return -1; + } else if(((a19==3)&&(!(a20==1)&&(((a0==1)&&((((a25==1)&&((a14==8)&&((((input==6)&&((a29==6)||(a29==7)))&&(a22==1))&&(a28==1))))&&!(a7==1))&&(a11==1)))&&!(a24==1))))){ + a20 = 1; + a7 = 1; + a24 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if((((a22==1)&&((a20==1)&&(((a11==1)&&((a7==1)&&((a0==1)&&((a28==1)&&(((input==1)&&(((a19==2)&&(a29==5))||(((a29==8)&&(a19==1))||((a29==9)&&(a19==1)))))&&!(a24==1))))))&&(a14==9))))&&(a25==1))){ + a19 = 1; + a25 = 0; + a29 = 8; + a24 = 1; + a7 = 0; + a14 = 10; + return 21; + } else if(((!(a0==1)&&((!(a7==1)&&(!(a20==1)&&(((a14==8)&&((a29==7)&&((a24==1)&&(((a11==1)&&(input==1))&&(a28==1)))))&&!(a25==1))))&&(a19==2)))&&(a22==1))){ + a7 = 1; + a29 = 5; + a20 = 1; + return 23; + } else if(((((((((a14==8)&&(((a24==1)&&(((input==2)&&((a29==6)||(a29==7)))&&!(a20==1)))&&(a28==1)))&&!(a7==1))&&(a22==1))&&(a11==1))&&(a19==2))&&!(a0==1))&&(a25==1))){ + a29 = 5; + a7 = 1; + a19 = 3; + return -1; + } else if((!(a25==1)&&((a14==8)&&((!(a0==1)&&((((a7==1)&&(((a28==1)&&(!(a24==1)&&((input==6)&&((a29==6)||(a29==7)))))&&(a19==3)))&&(a22==1))&&!(a11==1)))&&(a20==1))))){ + a0 = 1; + a19 = 2; + a20 = 0; + a29 = 9; + return 24; + } else if(((a22==1)&&(((a29==7)&&((a14==10)&&((((a19==3)&&(((((a20==1)&&(input==2))&&(a7==1))&&(a11==1))&&(a24==1)))&&(a28==1))&&(a0==1))))&&!(a25==1)))){ + a29 = 8; + a11 = 0; + a19 = 5; + a7 = 0; + a14 = 9; + a24 = 0; + return 21; + } else if(((a25==1)&&(((a7==1)&&((a0==1)&&((a19==5)&&((((a20==1)&&(((a22==1)&&((input==6)&&(a14==9)))&&(a24==1)))&&(a11==1))&&(a28==1)))))&&(a29==8)))){ + a29 = 5; + a19 = 1; + a14 = 8; + return -1; + } else if(((a22==1)&&(((!(a7==1)&&((a25==1)&&((a19==4)&&(((!(a20==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==6))&&(a24==1)))&&(a14==8))&&!(a11==1)))))&&(a28==1))&&!(a0==1)))){ + a29 = 5; + a11 = 1; + a0 = 1; + a20 = 1; + a19 = 1; + a7 = 1; + return -1; + } else if((!(a24==1)&&((a22==1)&&((a11==1)&&(((((((a19==5)&&((a14==9)&&(!(a25==1)&&(input==2))))&&!(a7==1))&&(a28==1))&&(a0==1))&&(a29==5))&&!(a20==1)))))){ + a14 = 8; + a29 = 8; + a7 = 1; + a20 = 1; + a25 = 1; + a24 = 1; + a19 = 3; + a0 = 0; + return 23; + } else if((((!(a0==1)&&(!(a24==1)&&((a29==5)&&(((((((input==1)&&(a28==1))&&!(a25==1))&&!(a7==1))&&(a20==1))&&!(a11==1))&&(a19==3)))))&&(a14==9))&&(a22==1))){ + a24 = 1; + a14 = 8; + a7 = 1; + a19 = 1; + a25 = 1; + a11 = 1; + a0 = 1; + return -1; + } else if((!(a7==1)&&((a0==1)&&(((a14==10)&&(((a11==1)&&(!(a25==1)&&(((a22==1)&&((input==4)&&((((a29==9)&&(a19==4))||((a29==5)&&(a19==5)))||((a29==6)&&(a19==5)))))&&(a28==1))))&&(a20==1)))&&(a24==1))))){ + a14 = 9; + a7 = 1; + a24 = 0; + a19 = 4; + a20 = 0; + a0 = 0; + a29 = 5; + return -1; + } else if(((a25==1)&&(!(a7==1)&&((a14==9)&&(((((a28==1)&&(!(a11==1)&&((((((a29==7)||(a29==8))||(a29==9))&&(input==4))&&(a22==1))&&(a20==1))))&&(a0==1))&&(a19==1))&&(a24==1)))))){ + a14 = 8; + a19 = 3; + a25 = 0; + a20 = 0; + a24 = 0; + a7 = 1; + a29 = 9; + return 24; + } else if((((a19==3)&&(((((((a29==8)&&(!(a11==1)&&((!(a24==1)&&(input==1))&&!(a7==1))))&&(a22==1))&&(a28==1))&&(a25==1))&&(a20==1))&&!(a0==1)))&&(a14==9))){ + a25 = 0; + a29 = 5; + a24 = 1; + a11 = 1; + return -1; + } else if((((a28==1)&&((a14==10)&&((a11==1)&&(((a19==3)&&(((a24==1)&&((a20==1)&&((a25==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==2)))))&&(a0==1)))&&(a22==1)))))&&(a7==1))){ + a20 = 0; + a29 = 7; + a0 = 0; + a14 = 8; + a11 = 0; + return 21; + } else if((((a0==1)&&(((a11==1)&&(!(a7==1)&&((a28==1)&&(!(a20==1)&&(((((((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))||((a29==6)&&(a19==3)))&&(input==3))&&(a24==1))&&(a25==1))))))&&(a14==8)))&&(a22==1))){ + a29 = 6; + a7 = 1; + a19 = 2; + a11 = 0; + return 21; + } else if(((a0==1)&&(((((!(a11==1)&&(((a19==4)&&(!(a7==1)&&(!(a25==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==6)))))&&(a14==8)))&&!(a20==1))&&(a28==1))&&!(a24==1))&&(a22==1)))){ + a7 = 1; + a11 = 1; + a29 = 5; + a25 = 1; + a19 = 5; + a20 = 1; + return -1; + } else if(((a28==1)&&(((!(a25==1)&&(((a7==1)&&((((a19==4)&&(!(a20==1)&&((input==3)&&!(a11==1))))&&!(a24==1))&&(a22==1)))&&(a14==9)))&&(a29==9))&&(a0==1)))){ + a7 = 0; + a29 = 7; + a19 = 1; + a20 = 1; + a24 = 1; + return -1; + } else if((!(a7==1)&&(((a0==1)&&((a11==1)&&(((a20==1)&&(((a14==9)&&(((a22==1)&&((input==6)&&((a29==8)||(a29==9))))&&(a28==1)))&&!(a24==1)))&&(a25==1))))&&(a19==4)))){ + a29 = 8; + a11 = 0; + a14 = 8; + a0 = 0; + a19 = 5; + return -1; + } else if((((a11==1)&&((a29==9)&&((a19==5)&&((((a20==1)&&((a7==1)&&((a28==1)&&((a24==1)&&((input==1)&&!(a0==1))))))&&(a14==9))&&(a25==1)))))&&(a22==1))){ + a0 = 1; + a25 = 0; + a29 = 6; + a19 = 3; + a11 = 0; + return 24; + } else if(((a22==1)&&(!(a20==1)&&((a7==1)&&((a24==1)&&((a25==1)&&((!(a0==1)&&((a14==8)&&((a28==1)&&((input==5)&&((((a19==2)&&(a29==8))||((a29==9)&&(a19==2)))||((a19==3)&&(a29==5)))))))&&!(a11==1)))))))){ + a19 = 2; + a7 = 0; + a11 = 1; + a29 = 5; + return -1; + } else if(((a14==8)&&(!(a0==1)&&(((((a22==1)&&((((((input==3)&&((a29==8)||(a29==9)))&&(a11==1))&&(a28==1))&&!(a25==1))&&(a24==1)))&&(a19==4))&&!(a7==1))&&!(a20==1))))){ + a29 = 5; + a20 = 1; + a19 = 1; + a25 = 1; + return -1; + } else if(((a24==1)&&(((a11==1)&&((((a14==8)&&((((a22==1)&&((a0==1)&&((input==6)&&!(a7==1))))&&(a20==1))&&!(a25==1)))&&(a19==3))&&(a29==9)))&&(a28==1)))){ + a25 = 1; + a19 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if(((((a14==8)&&((!(a11==1)&&((a19==2)&&((!(a25==1)&&((a22==1)&&(((input==5)&&((a29==8)||((a29==6)||(a29==7))))&&(a24==1))))&&(a28==1))))&&(a7==1)))&&(a0==1))&&(a20==1))){ + a29 = 5; + a25 = 1; + a19 = 1; + a11 = 1; + return -1; + } else if(((((a22==1)&&(((a28==1)&&(!(a25==1)&&((a20==1)&&((!(a7==1)&&((input==1)&&((((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))||((a19==5)&&(a29==5)))))&&!(a0==1)))))&&!(a11==1)))&&(a24==1))&&(a14==8))){ + a29 = 6; + a25 = 1; + a19 = 2; + a11 = 1; + a20 = 0; + return 21; + } else if((((((a19==1)&&((a11==1)&&((!(a25==1)&&(!(a20==1)&&((a14==9)&&((a0==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==1))))))&&(a28==1))))&&!(a7==1))&&(a24==1))&&(a22==1))){ + a20 = 1; + a7 = 1; + a14 = 8; + a25 = 1; + a29 = 5; + return -1; + } else if(((a7==1)&&(((a22==1)&&((a24==1)&&((((a11==1)&&(((((a19==1)&&(!(a25==1)&&(a29==6)))||((((a25==1)&&(a29==9))&&(a19==5))||((a19==1)&&(!(a25==1)&&(a29==5)))))&&(input==5))&&(a0==1)))&&(a20==1))&&(a14==9))))&&(a28==1)))){ + a19 = 5; + a11 = 0; + a20 = 0; + a0 = 0; + a25 = 1; + a14 = 8; + a29 = 6; + return 24; + } else if(((a14==8)&&(((!(a11==1)&&(!(a7==1)&&((a22==1)&&(((a28==1)&&((a25==1)&&(((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))||((a29==6)&&(a19==4)))&&(input==6))))&&!(a20==1)))))&&!(a24==1))&&(a0==1)))){ + a11 = 1; + a29 = 6; + a24 = 1; + a20 = 1; + a19 = 4; + return -1; + } else if(((a11==1)&&(!(a7==1)&&(!(a25==1)&&((a19==3)&&((((a24==1)&&(((a14==10)&&(((input==6)&&((a29==8)||(a29==9)))&&(a22==1)))&&(a0==1)))&&(a28==1))&&!(a20==1))))))){ + a29 = 6; + a11 = 0; + a24 = 0; + a14 = 9; + a19 = 1; + a0 = 0; + a20 = 1; + return -1; + } else if((((a22==1)&&(((a28==1)&&((a11==1)&&((((a19==5)&&((((!(a7==1)&&!(a20==1))&&(a24==1))&&!(a25==1))&&(a29==9)))||((((a25==1)&&(((a20==1)&&(a7==1))&&!(a24==1)))&&(a29==5))&&(a19==1)))&&(input==3))))&&(a14==10)))&&(a0==1))){ + a19 = 1; + a24 = 1; + a14 = 8; + a29 = 5; + a25 = 1; + a20 = 1; + a7 = 1; + return -1; + } else if((!(a7==1)&&((a25==1)&&((((((((a29==8)&&(!(a20==1)&&((input==4)&&(a14==8))))&&!(a0==1))&&(a28==1))&&(a22==1))&&(a19==5))&&!(a11==1))&&!(a24==1))))){ + a14 = 9; + a20 = 1; + a0 = 1; + a19 = 2; + a29 = 7; + return 23; + } else if((((a28==1)&&((a20==1)&&((((a25==1)&&(!(a24==1)&&((a0==1)&&((((input==3)&&((a29==8)||(a29==9)))&&!(a11==1))&&(a19==2)))))&&(a22==1))&&!(a7==1))))&&(a14==9))){ + a29 = 5; + a24 = 1; + a11 = 1; + a14 = 8; + a19 = 1; + a7 = 1; + return -1; + } else if(((a25==1)&&((a0==1)&&((((a22==1)&&((a19==2)&&((a11==1)&&(!(a20==1)&&((((((a29==6)||(a29==7))||(a29==8))&&(input==3))&&(a7==1))&&(a28==1))))))&&(a14==10))&&(a24==1))))){ + a11 = 0; + a24 = 0; + a14 = 9; + a29 = 9; + a20 = 1; + return -1; + } else if((!(a20==1)&&(((!(a0==1)&&(((a11==1)&&((a7==1)&&((a28==1)&&(!(a25==1)&&((input==4)&&((((a19==3)&&(a29==8))||((a19==3)&&(a29==9)))||((a29==5)&&(a19==4))))))))&&(a14==8)))&&(a22==1))&&!(a24==1)))){ + a0 = 1; + a29 = 5; + a25 = 1; + a24 = 1; + a20 = 1; + a19 = 1; + return -1; + } else if((!(a7==1)&&(((((a28==1)&&(((a22==1)&&((((((a29==7)||(a29==8))&&(input==5))&&(a14==8))&&!(a0==1))&&(a24==1)))&&(a19==1)))&&!(a25==1))&&!(a20==1))&&(a11==1)))){ + a7 = 1; + a24 = 0; + a0 = 1; + a14 = 9; + a19 = 4; + a29 = 6; + a11 = 0; + return 21; + } else if((((((a22==1)&&((a7==1)&&((a14==8)&&((((((input==5)&&((a29==8)||(a29==9)))&&!(a11==1))&&(a28==1))&&!(a25==1))&&!(a20==1)))))&&(a19==4))&&!(a0==1))&&!(a24==1))){ + a14 = 9; + a29 = 5; + a19 = 1; + a24 = 1; + a7 = 0; + return 21; + } else if(((a7==1)&&(((a28==1)&&(((a11==1)&&((a22==1)&&((((((a14==8)&&(input==2))&&(a20==1))&&!(a0==1))&&(a24==1))&&(a19==5))))&&(a25==1)))&&(a29==8)))){ + a7 = 0; + a20 = 0; + a19 = 3; + a29 = 7; + return 24; + } else if(((a7==1)&&(((a11==1)&&(!(a0==1)&&((((a20==1)&&(((input==1)&&(((a19==5)&&((a25==1)&&(a29==9)))||((a19==1)&&((a29==5)&&!(a25==1)))))&&(a14==8)))&&(a24==1))&&(a28==1))))&&(a22==1)))){ + a29 = 7; + a25 = 1; + a7 = 0; + a20 = 0; + a19 = 2; + return 21; + } else if((((((a28==1)&&((!(a24==1)&&((!(a20==1)&&(((a0==1)&&((input==3)&&((a29==5)||(a29==6))))&&!(a11==1)))&&(a19==2)))&&(a14==9)))&&!(a7==1))&&(a22==1))&&(a25==1))){ + a14 = 8; + a11 = 1; + a0 = 0; + a19 = 1; + a24 = 1; + a25 = 0; + a29 = 9; + a7 = 1; + return 24; + } else if(((a7==1)&&(!(a25==1)&&((a0==1)&&(((a14==8)&&((a28==1)&&((a11==1)&&((((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))&&(input==2))&&(a22==1))&&(a20==1)))))&&!(a24==1)))))){ + a0 = 0; + a24 = 1; + a25 = 1; + a7 = 0; + a29 = 9; + a19 = 1; + return 23; + } else if(((!(a11==1)&&(!(a0==1)&&((a22==1)&&((a28==1)&&(((!(a7==1)&&((a14==8)&&((a20==1)&&((input==5)&&!(a24==1)))))&&(a19==4))&&!(a25==1))))))&&(a29==5))){ + a0 = 1; + a29 = 6; + a25 = 1; + a7 = 1; + a14 = 9; + a11 = 1; + return 24; + } else if(((!(a7==1)&&((((((a11==1)&&((a22==1)&&(((input==4)&&(((a29==9)&&(a19==2))||((a19==3)&&(a29==5))))&&(a25==1))))&&(a20==1))&&!(a24==1))&&(a28==1))&&(a14==9)))&&!(a0==1))){ + a11 = 0; + a29 = 7; + a14 = 8; + a19 = 5; + a0 = 1; + a20 = 0; + return 24; + } else if((((a25==1)&&((a22==1)&&((((((!(a20==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==1))&&(a19==5)))&&(a14==9))&&(a28==1))&&(a7==1))&&(a24==1))&&(a11==1))))&&(a0==1))){ + a19 = 1; + a20 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if(((a11==1)&&(((a22==1)&&(((a14==9)&&(((a28==1)&&(!(a0==1)&&((((input==6)&&(((a29==7)||(a29==8))||(a29==9)))&&!(a7==1))&&(a24==1))))&&(a19==3)))&&(a25==1)))&&(a20==1)))){ + a7 = 1; + a19 = 1; + a0 = 1; + a29 = 6; + a20 = 0; + a11 = 0; + return 23; + } else if((!(a24==1)&&(((a20==1)&&(!(a11==1)&&((a28==1)&&((a19==4)&&((((a7==1)&&(((input==3)&&(((a29==6)||(a29==7))||(a29==8)))&&(a14==8)))&&!(a25==1))&&(a0==1))))))&&(a22==1)))){ + a7 = 0; + a25 = 1; + a29 = 5; + a19 = 2; + a20 = 0; + return 24; + } else if((((a11==1)&&(((!(a7==1)&&((a19==4)&&(((((a0==1)&&((input==3)&&((a29==8)||(a29==9))))&&!(a25==1))&&(a22==1))&&(a14==8))))&&!(a20==1))&&(a24==1)))&&(a28==1))){ + a20 = 1; + a29 = 5; + a19 = 1; + a7 = 1; + a25 = 1; + return -1; + } else if((!(a0==1)&&((a22==1)&&(!(a11==1)&&((!(a24==1)&&((a14==9)&&((a28==1)&&(((((a19==5)&&((a29==9)&&((a7==1)&&!(a25==1))))||(((!(a7==1)&&(a25==1))&&(a29==5))&&(a19==1)))||((((a25==1)&&!(a7==1))&&(a29==6))&&(a19==1)))&&(input==1)))))&&!(a20==1)))))){ + a25 = 1; + a14 = 8; + a20 = 1; + a19 = 3; + a11 = 1; + a24 = 1; + a29 = 6; + a7 = 0; + return 24; + } else if(((a22==1)&&((((a24==1)&&((a28==1)&&((a11==1)&&((((input==4)&&(((a19==1)&&(!(a25==1)&&(a29==6)))||(((a19==5)&&((a29==9)&&(a25==1)))||((a19==1)&&((a29==5)&&!(a25==1))))))&&!(a0==1))&&(a7==1)))))&&!(a20==1))&&(a14==8)))){ + a19 = 1; + a25 = 1; + a29 = 5; + a0 = 1; + a20 = 1; + return -1; + } else if((((a19==4)&&(!(a0==1)&&(((((((a25==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==6))&&(a11==1)))&&(a22==1))&&(a14==8))&&(a7==1))&&(a28==1))&&(a20==1))))&&!(a24==1))){ + a19 = 1; + a24 = 1; + a14 = 9; + a29 = 9; + return 21; + } else if(((a28==1)&&((((a25==1)&&(((a14==10)&&((a7==1)&&((!(a20==1)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==2))&&(a19==5)))&&(a11==1))))&&(a22==1)))&&(a0==1))&&(a24==1)))){ + a14 = 8; + a7 = 0; + a20 = 1; + a11 = 0; + a19 = 4; + a29 = 7; + a0 = 0; + return 23; + } else if(((!(a11==1)&&((a22==1)&&((((a0==1)&&(((((((a29==5)&&(a19==2))||(((a19==1)&&(a29==8))||((a29==9)&&(a19==1))))&&(input==6))&&!(a7==1))&&!(a20==1))&&(a28==1)))&&(a14==8))&&!(a24==1))))&&(a25==1))){ + a7 = 1; + a19 = 3; + a29 = 5; + a25 = 0; + return -1; + } else if((((((a22==1)&&(!(a0==1)&&((a19==4)&&(!(a20==1)&&(((((input==3)&&((a29==6)||(a29==7)))&&(a24==1))&&(a25==1))&&(a14==9))))))&&!(a7==1))&&(a11==1))&&(a28==1))){ + a19 = 1; + a0 = 1; + a7 = 1; + a14 = 8; + a29 = 5; + a20 = 1; + return -1; + } else if((((a28==1)&&((((a14==9)&&((((a19==2)&&(!(a7==1)&&((a20==1)&&((a22==1)&&(input==2)))))&&!(a11==1))&&!(a0==1)))&&(a25==1))&&(a29==6)))&&(a24==1))){ + a29 = 5; + a19 = 1; + a7 = 1; + a11 = 1; + a0 = 1; + a14 = 8; + return -1; + } else if(((((a7==1)&&((a14==8)&&(((a28==1)&&((a20==1)&&((!(a0==1)&&((a19==1)&&((a24==1)&&(input==6))))&&(a22==1))))&&(a11==1))))&&(a25==1))&&(a29==9))){ + a24 = 0; + a11 = 0; + a19 = 3; + a0 = 1; + a7 = 0; + a20 = 0; + a25 = 0; + return 21; + } else if(((a25==1)&&((a0==1)&&((a14==9)&&((((a28==1)&&(((a22==1)&&(!(a24==1)&&((a11==1)&&((input==4)&&!(a20==1)))))&&(a7==1)))&&(a19==4))&&(a29==8)))))){ + a24 = 1; + a14 = 10; + a25 = 0; + a7 = 0; + a19 = 5; + a29 = 6; + return 23; + } else if(((a20==1)&&((((a25==1)&&((!(a7==1)&&(((a24==1)&&(((((a29==7)||(a29==8))&&(input==6))&&!(a11==1))&&(a14==8)))&&(a28==1)))&&(a22==1)))&&(a19==3))&&!(a0==1)))){ + a25 = 0; + a11 = 1; + a29 = 7; + return 24; + } else if(((a28==1)&&(!(a20==1)&&(!(a24==1)&&(((a14==9)&&((a0==1)&&((a7==1)&&(((((((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))||((a19==3)&&(a29==5)))&&(input==6))&&(a22==1))&&(a25==1)))))&&(a11==1)))))){ + a25 = 0; + a19 = 2; + a14 = 10; + a29 = 6; + a7 = 0; + a24 = 1; + return 21; + } else if((((!(a24==1)&&(((a28==1)&&((a0==1)&&((((((input==3)&&(((a29==7)||(a29==8))||(a29==9)))&&(a22==1))&&(a14==9))&&(a19==1))&&!(a25==1))))&&!(a7==1)))&&(a20==1))&&!(a11==1))){ + a14 = 8; + a20 = 0; + a29 = 8; + a19 = 5; + a0 = 0; + a25 = 1; + return 24; + } else if(((a24==1)&&((!(a25==1)&&((((a11==1)&&(((a22==1)&&((a29==7)&&(((input==1)&&(a14==8))&&(a7==1))))&&(a19==3)))&&!(a0==1))&&(a20==1)))&&(a28==1)))){ + a14 = 9; + a25 = 1; + a0 = 1; + a11 = 0; + a24 = 0; + a29 = 5; + return 24; + } else if(((!(a11==1)&&((((a14==9)&&((a7==1)&&((a28==1)&&((a20==1)&&((a22==1)&&((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))&&(input==4)))))))&&(a24==1))&&!(a25==1)))&&!(a0==1))){ + a19 = 4; + a14 = 8; + a11 = 1; + a29 = 7; + return 23; + } else if((!(a24==1)&&(((a0==1)&&(((a28==1)&&((((((a14==8)&&((input==5)&&((a29==8)||(a29==9))))&&(a20==1))&&(a22==1))&&(a19==4))&&!(a11==1)))&&!(a7==1)))&&!(a25==1)))){ + a7 = 1; + a25 = 1; + a19 = 1; + a11 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if(((((a28==1)&&((!(a25==1)&&(((a11==1)&&((((a19==5)&&((input==4)&&(((a29==6)||(a29==7))||(a29==8))))&&!(a20==1))&&(a22==1)))&&(a24==1)))&&(a14==8)))&&(a7==1))&&(a0==1))){ + a29 = 7; + a20 = 1; + a19 = 1; + a7 = 0; + a11 = 0; + a25 = 1; + return 23; + } else if(((a25==1)&&((a22==1)&&(((!(a24==1)&&(!(a0==1)&&((!(a20==1)&&((a29==9)&&((a11==1)&&((input==2)&&(a19==3)))))&&(a7==1))))&&(a14==9))&&(a28==1))))){ + a24 = 1; + a29 = 6; + a14 = 8; + a7 = 0; + return 24; + } else if(((a14==8)&&((a19==3)&&((!(a7==1)&&((a0==1)&&(((a29==5)&&((a11==1)&&((a24==1)&&((a20==1)&&(!(a25==1)&&(input==3))))))&&(a22==1))))&&(a28==1))))){ + a25 = 1; + a19 = 1; + a7 = 1; + return -1; + } else if((((((!(a24==1)&&((a28==1)&&((a25==1)&&((!(a11==1)&&(((input==3)&&((a29==5)||(a29==6)))&&(a7==1)))&&!(a20==1)))))&&(a19==4))&&(a22==1))&&(a0==1))&&(a14==8))){ + a19 = 1; + a29 = 7; + a20 = 1; + a14 = 9; + a7 = 0; + a24 = 1; + return 23; + } else if((((a14==8)&&((!(a24==1)&&((a25==1)&&(((a7==1)&&((((((a29==7)||(a29==8))&&(input==1))&&(a19==4))&&!(a11==1))&&(a0==1)))&&(a22==1))))&&(a28==1)))&&(a20==1))){ + a29 = 8; + a11 = 1; + a14 = 9; + a25 = 0; + return 21; + } else if(((a25==1)&&(((a11==1)&&((a28==1)&&(((((!(a7==1)&&((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))&&(input==6)))&&(a14==8))&&(a24==1))&&!(a0==1))&&(a22==1))))&&(a20==1)))){ + a19 = 4; + a25 = 0; + a24 = 0; + a0 = 1; + a29 = 7; + a11 = 0; + a7 = 1; + a20 = 0; + return -1; + } else if((((a20==1)&&(((a11==1)&&(!(a24==1)&&(((a22==1)&&((a0==1)&&((((((a25==1)&&(a29==8))&&(a19==5))||(((a25==1)&&(a29==9))&&(a19==5)))||((a19==1)&&((a29==5)&&!(a25==1))))&&(input==4))))&&(a28==1))))&&(a14==9)))&&!(a7==1))){ + a14 = 10; + a20 = 0; + a25 = 1; + a19 = 1; + a24 = 1; + a29 = 8; + return 23; + } else if((!(a20==1)&&((a14==8)&&(!(a0==1)&&(!(a7==1)&&((((a22==1)&&((a24==1)&&(!(a11==1)&&(((input==1)&&((a29==5)||(a29==6)))&&(a19==5)))))&&!(a25==1))&&(a28==1))))))){ + a29 = 6; + a19 = 4; + a11 = 1; + a25 = 1; + return 24; + } else if(((a7==1)&&(!(a11==1)&&(((a19==4)&&((a14==8)&&(((((a0==1)&&((a28==1)&&((a25==1)&&(input==6))))&&(a22==1))&&!(a20==1))&&(a24==1))))&&(a29==9))))){ + a19 = 5; + a11 = 1; + a0 = 0; + a7 = 0; + a29 = 5; + return 21; + } else if((((((a28==1)&&((a7==1)&&((a11==1)&&(((a14==8)&&((((input==6)&&(a25==1))&&!(a24==1))&&(a0==1)))&&(a22==1)))))&&(a19==2))&&(a29==5))&&(a20==1))){ + a19 = 4; + a11 = 0; + a29 = 8; + a20 = 0; + return 23; + } else if((!(a11==1)&&(!(a0==1)&&(((a28==1)&&(!(a7==1)&&((!(a25==1)&&((a22==1)&&((((input==3)&&(((a29==6)||(a29==7))||(a29==8)))&&(a20==1))&&(a19==3))))&&(a14==9))))&&!(a24==1))))){ + a25 = 1; + a20 = 0; + a0 = 1; + a29 = 7; + a14 = 8; + return 23; + } else if(((a19==2)&&((a7==1)&&(((!(a20==1)&&(!(a11==1)&&((a25==1)&&((a24==1)&&(((a22==1)&&((a14==8)&&(input==2)))&&(a0==1))))))&&(a29==9))&&(a28==1))))){ + a7 = 0; + a25 = 0; + a20 = 1; + a19 = 5; + a0 = 0; + a29 = 7; + a11 = 1; + return 23; + } else if(((((a7==1)&&(((!(a0==1)&&((a28==1)&&((!(a24==1)&&(((((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))||((a19==3)&&(a29==5)))&&(input==3)))&&(a20==1))))&&(a25==1))&&(a14==9)))&&(a11==1))&&(a22==1))){ + a11 = 0; + a0 = 1; + a14 = 8; + a29 = 7; + a19 = 3; + a25 = 0; + a20 = 0; + return 23; + } else if((((((a24==1)&&((a14==9)&&((((((a19==4)&&(((a29==6)||(a29==7))&&(input==6)))&&!(a7==1))&&(a28==1))&&!(a20==1))&&(a11==1))))&&(a22==1))&&(a0==1))&&(a25==1))){ + a19 = 5; + a29 = 5; + return 23; + } else if(((((a20==1)&&(((((!(a25==1)&&(!(a0==1)&&((a22==1)&&((input==6)&&(a19==1)))))&&(a28==1))&&(a11==1))&&(a7==1))&&(a14==8)))&&(a29==6))&&(a24==1))){ + a29 = 9; + a7 = 0; + a24 = 0; + a11 = 0; + a25 = 1; + a20 = 0; + a0 = 1; + return 23; + } else if(((a20==1)&&((a14==9)&&(!(a11==1)&&((((a22==1)&&(((a7==1)&&((a0==1)&&(((input==3)&&((a29==5)||(a29==6)))&&!(a25==1))))&&(a28==1)))&&!(a24==1))&&(a19==2)))))){ + a19 = 1; + a25 = 1; + a20 = 0; + a29 = 9; + a14 = 8; + a7 = 0; + return 24; + } else if(((a28==1)&&((a14==8)&&((!(a0==1)&&((a19==4)&&(((!(a25==1)&&(!(a20==1)&&(((input==4)&&((a29==8)||(a29==9)))&&!(a11==1))))&&(a22==1))&&!(a24==1))))&&(a7==1))))){ + a0 = 1; + a29 = 6; + a19 = 2; + a7 = 0; + return 24; + } else if(((a14==8)&&((((a24==1)&&((((a7==1)&&((((((a29==7)||(a29==8))&&(input==5))&&(a28==1))&&(a19==5))&&!(a11==1)))&&(a0==1))&&(a25==1)))&&(a20==1))&&(a22==1)))){ + a25 = 0; + a0 = 0; + a29 = 6; + a11 = 1; + a20 = 0; + a19 = 4; + return 23; + } else if(((a28==1)&&(!(a7==1)&&(!(a0==1)&&((((((!(a24==1)&&((a14==8)&&(((a29==7)||(a29==8))&&(input==4))))&&!(a20==1))&&(a11==1))&&(a22==1))&&!(a25==1))&&(a19==2)))))){ + a19 = 4; + a29 = 9; + a25 = 1; + a24 = 1; + return 21; + } else if(((a14==10)&&((a7==1)&&((a24==1)&&(((a0==1)&&(((((a20==1)&&((((a29==8)||(a29==9))&&(input==6))&&(a22==1)))&&(a28==1))&&!(a25==1))&&(a11==1)))&&(a19==3)))))){ + a0 = 0; + a25 = 1; + a29 = 7; + a24 = 0; + a14 = 8; + a11 = 0; + a19 = 4; + return -1; + } else if(((a29==5)&&(((((((a24==1)&&(!(a20==1)&&((a28==1)&&(((input==5)&&(a14==8))&&(a25==1)))))&&!(a0==1))&&(a11==1))&&(a22==1))&&(a19==3))&&!(a7==1)))){ + a29 = 8; + a0 = 1; + a19 = 1; + a7 = 1; + return -1; + } else if(((!(a20==1)&&((a22==1)&&((((a0==1)&&((a25==1)&&(!(a11==1)&&(((a24==1)&&((input==5)&&((a29==7)||(a29==8))))&&(a28==1)))))&&(a7==1))&&(a14==8))))&&(a19==4))){ + a29 = 5; + a19 = 1; + a20 = 1; + a11 = 1; + return -1; + } else if((((a14==9)&&((a0==1)&&((a11==1)&&((a22==1)&&((!(a24==1)&&((a7==1)&&(((((a29==5)&&!(a25==1))&&(a19==1))||((((a25==1)&&(a29==8))&&(a19==5))||(((a25==1)&&(a29==9))&&(a19==5))))&&(input==5))))&&(a28==1))))))&&(a20==1))){ + a24 = 1; + a25 = 0; + a11 = 0; + a29 = 5; + a19 = 1; + return 21; + } else if((((a25==1)&&(((((a24==1)&&((a28==1)&&((((a0==1)&&(((a29==8)||(a29==9))&&(input==4)))&&(a19==2))&&(a7==1))))&&(a14==10))&&(a22==1))&&(a20==1)))&&(a11==1))){ + a19 = 5; + a29 = 7; + a25 = 0; + a14 = 8; + return -1; + } else if((!(a7==1)&&(((((!(a0==1)&&(!(a24==1)&&((a28==1)&&(((input==2)&&((((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))||((a19==3)&&(a29==6))))&&(a11==1)))))&&(a25==1))&&(a20==1))&&(a22==1))&&(a14==8)))){ + a19 = 1; + a24 = 1; + a7 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if((((a19==4)&&((a28==1)&&((a25==1)&&((((((a29==6)&&((a22==1)&&(!(a24==1)&&(input==5))))&&(a14==9))&&(a7==1))&&!(a11==1))&&!(a0==1)))))&&!(a20==1))){ + a24 = 1; + a19 = 3; + a20 = 1; + a7 = 0; + a29 = 5; + a25 = 0; + a11 = 1; + return -1; + } else if(((a20==1)&&((a19==2)&&(!(a7==1)&&(((((a29==8)&&((a22==1)&&(!(a25==1)&&(!(a24==1)&&((a28==1)&&(input==6))))))&&!(a11==1))&&(a14==8))&&(a0==1)))))){ + a11 = 1; + a24 = 1; + a19 = 1; + a7 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if((((a14==9)&&(!(a0==1)&&(((!(a11==1)&&(((!(a24==1)&&((input==6)&&(((a29==5)&&(a19==3))||(((a19==2)&&(a29==8))||((a29==9)&&(a19==2))))))&&(a22==1))&&(a28==1)))&&(a25==1))&&(a7==1))))&&!(a20==1))){ + a19 = 3; + a11 = 1; + a14 = 8; + a29 = 7; + a24 = 1; + a25 = 0; + return 23; + } else if(((a24==1)&&(!(a20==1)&&((((((a29==9)&&(((a7==1)&&(((a11==1)&&(input==1))&&(a22==1)))&&(a14==10)))&&(a28==1))&&(a19==5))&&(a0==1))&&(a25==1))))){ + a29 = 7; + a25 = 0; + a14 = 8; + a0 = 0; + a20 = 1; + a19 = 3; + return 24; + } else if(((a24==1)&&(((((((((((a19==1)&&((a29==6)&&!(a25==1)))||(((a19==5)&&((a25==1)&&(a29==9)))||((!(a25==1)&&(a29==5))&&(a19==1))))&&(input==1))&&!(a20==1))&&!(a7==1))&&(a22==1))&&!(a0==1))&&!(a11==1))&&(a14==8))&&(a28==1)))){ + a20 = 1; + a25 = 1; + a11 = 1; + a29 = 6; + a19 = 2; + return 21; + } else if(((a28==1)&&((a14==8)&&((((a0==1)&&((input==3)&&((((a29==5)&&((a25==1)&&(((a20==1)&&(a7==1))&&!(a24==1))))&&(a19==1))||(((a19==5)&&((a29==8)&&(((!(a20==1)&&!(a7==1))&&(a24==1))&&!(a25==1))))||((a19==5)&&((!(a25==1)&&((a24==1)&&(!(a7==1)&&!(a20==1))))&&(a29==9)))))))&&!(a11==1))&&(a22==1))))){ + a24 = 1; + a25 = 1; + a11 = 1; + a7 = 0; + a29 = 5; + a20 = 1; + a0 = 0; + a19 = 4; + return 24; + } else if(((a19==5)&&((a14==8)&&(((((a28==1)&&((a11==1)&&((a22==1)&&((((input==2)&&((a29==7)||(a29==8)))&&(a0==1))&&!(a24==1)))))&&!(a7==1))&&(a25==1))&&!(a20==1))))){ + a20 = 1; + a24 = 1; + a29 = 5; + a19 = 1; + a7 = 1; + return -1; + } else if(((a25==1)&&((a22==1)&&(((!(a20==1)&&((a7==1)&&(((!(a0==1)&&((a29==8)&&((input==1)&&(a28==1))))&&(a14==8))&&(a11==1))))&&(a19==3))&&(a24==1))))){ + a0 = 1; + a25 = 0; + a7 = 0; + a11 = 0; + a24 = 0; + return -1; + } else if(((a11==1)&&((a24==1)&&((a22==1)&&((a7==1)&&((a14==9)&&((a20==1)&&(((!(a0==1)&&((((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))&&(input==4)))&&(a28==1))&&!(a25==1))))))))){ + a29 = 8; + a11 = 0; + a0 = 1; + a19 = 3; + return 23; + } else if(((a14==9)&&(!(a25==1)&&((!(a24==1)&&(((a22==1)&&((a20==1)&&((a19==2)&&((((input==6)&&((a29==5)||(a29==6)))&&!(a11==1))&&(a28==1)))))&&(a7==1)))&&(a0==1))))){ + a7 = 0; + a0 = 0; + a19 = 4; + a14 = 8; + a11 = 1; + a24 = 1; + a29 = 9; + return 21; + } else if((((a19==1)&&((a11==1)&&((((a7==1)&&(!(a24==1)&&((a22==1)&&((((((a29==5)||(a29==6))||(a29==7))&&(input==3))&&!(a0==1))&&!(a20==1)))))&&(a14==9))&&(a28==1))))&&(a25==1))){ + a7 = 0; + a0 = 1; + a11 = 0; + a29 = 6; + a25 = 0; + a14 = 8; + return 23; + } else if(((a14==9)&&(!(a20==1)&&((a28==1)&&((a24==1)&&((a22==1)&&((!(a0==1)&&(((a7==1)&&(((input==2)&&(a29==8))&&(a11==1)))&&(a19==5)))&&!(a25==1)))))))){ + a11 = 0; + a0 = 1; + a20 = 1; + a29 = 7; + a24 = 0; + return 24; + } return calculate_output17(input); + } + + int calculate_output17(int input) { + if(((a28==1)&&((((!(a0==1)&&(!(a7==1)&&((a19==3)&&(((a14==8)&&(((input==4)&&(a22==1))&&(a24==1)))&&(a11==1)))))&&(a25==1))&&(a29==6))&&(a20==1)))){ + a20 = 0; + a19 = 4; + a29 = 5; + return 24; + } else if(((a14==10)&&(((((!(a25==1)&&((((a7==1)&&((a22==1)&&(((a29==7)||(a29==8))&&(input==5))))&&(a24==1))&&(a28==1)))&&!(a20==1))&&(a19==2))&&(a11==1))&&(a0==1)))){ + a0 = 0; + a19 = 5; + a14 = 8; + a20 = 1; + a24 = 0; + a29 = 9; + return -1; + } else if(((!(a0==1)&&(((((a7==1)&&((a28==1)&&((a11==1)&&((a25==1)&&(((a14==9)&&(input==5))&&(a24==1))))))&&(a19==2))&&(a22==1))&&(a20==1)))&&(a29==8))){ + a19 = 5; + a14 = 8; + a29 = 7; + a7 = 0; + return 23; + } else if((((((a22==1)&&((a28==1)&&(!(a20==1)&&(((((input==4)&&(((a29==6)&&(a19==5))||(((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))))&&(a14==9))&&(a11==1))&&(a7==1)))))&&(a25==1))&&(a24==1))&&(a0==1))){ + a29 = 6; + a20 = 1; + a7 = 0; + a19 = 5; + return 21; + } else if((!(a11==1)&&((a7==1)&&((a28==1)&&((((a14==8)&&(!(a0==1)&&((((input==5)&&(((a19==4)&&(a29==9))||((a29==5)&&(a19==5))))&&(a20==1))&&(a22==1))))&&!(a25==1))&&!(a24==1)))))){ + a19 = 5; + a29 = 9; + a14 = 9; + a24 = 1; + return 21; + } else if((((a14==9)&&(!(a7==1)&&((!(a11==1)&&((((a25==1)&&(((((a29==6)||(a29==7))&&(input==5))&&(a20==1))&&(a28==1)))&&(a22==1))&&!(a0==1)))&&(a19==4))))&&!(a24==1))){ + a7 = 1; + a0 = 1; + a14 = 8; + a11 = 1; + a19 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if(((a14==9)&&((a28==1)&&(((a11==1)&&((a22==1)&&((((((a19==5)&&((((a29==5)||(a29==6))||(a29==7))&&(input==2)))&&!(a24==1))&&!(a7==1))&&(a0==1))&&(a25==1))))&&(a20==1))))){ + a25 = 0; + a19 = 2; + a0 = 0; + a20 = 0; + a7 = 1; + a29 = 9; + a14 = 8; + return 21; + } else if((((a22==1)&&((((((a28==1)&&((a20==1)&&(!(a7==1)&&((((a29==5)&&(a19==4))||(((a19==3)&&(a29==8))||((a19==3)&&(a29==9))))&&(input==2)))))&&(a24==1))&&(a25==1))&&!(a11==1))&&(a14==9)))&&!(a0==1))){ + a11 = 1; + a19 = 1; + a29 = 5; + a14 = 8; + return 24; + } else if((!(a24==1)&&((a0==1)&&((a14==9)&&((((((((((a29==8)||((a29==6)||(a29==7)))&&(input==2))&&(a11==1))&&(a7==1))&&(a22==1))&&(a28==1))&&!(a25==1))&&(a19==3))&&!(a20==1)))))){ + a20 = 1; + a29 = 6; + a25 = 1; + a19 = 4; + a14 = 10; + return 21; + } else if((((a11==1)&&(!(a24==1)&&((a0==1)&&((((a14==8)&&((a22==1)&&(!(a7==1)&&(((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))||((a19==3)&&(a29==6)))&&(input==6)))))&&(a20==1))&&!(a25==1)))))&&(a28==1))){ + a7 = 1; + a24 = 1; + a29 = 5; + a25 = 1; + a19 = 1; + return -1; + } else if(((a14==9)&&((((!(a20==1)&&(((a24==1)&&((a28==1)&&((a7==1)&&((a19==3)&&((input==4)&&(a0==1))))))&&(a11==1)))&&(a22==1))&&(a29==5))&&(a25==1)))){ + a14 = 8; + a25 = 0; + a7 = 0; + a29 = 7; + a11 = 0; + a24 = 0; + return 24; + } else if(((((((a0==1)&&((a14==10)&&(((a28==1)&&((a11==1)&&((((a29==5)||(a29==6))&&(input==5))&&!(a20==1))))&&(a22==1))))&&(a19==1))&&(a24==1))&&!(a7==1))&&(a25==1))){ + a24 = 0; + a14 = 8; + a19 = 2; + a29 = 5; + a11 = 0; + return 24; + } else if(((!(a24==1)&&(((!(a7==1)&&(((((a22==1)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==4))&&(a14==9)))&&!(a11==1))&&(a19==4))&&(a0==1)))&&(a28==1))&&(a25==1)))&&!(a20==1))){ + a24 = 1; + a19 = 1; + a20 = 1; + a7 = 1; + a29 = 5; + a11 = 1; + a14 = 8; + return -1; + } else if(((a14==9)&&((a22==1)&&(((((((a19==5)&&(!(a0==1)&&(((a29==7)&&(input==4))&&(a20==1))))&&(a25==1))&&(a24==1))&&!(a7==1))&&(a28==1))&&(a11==1))))){ + a20 = 0; + a7 = 1; + a19 = 3; + a29 = 9; + a14 = 8; + return 24; + } else if(((a22==1)&&((a14==8)&&(((!(a7==1)&&((a28==1)&&(((!(a24==1)&&((a19==3)&&(!(a25==1)&&(input==5))))&&(a20==1))&&(a29==9))))&&!(a0==1))&&!(a11==1))))){ + a24 = 1; + a11 = 1; + a7 = 1; + a0 = 1; + a25 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a22==1)&&(((a14==9)&&(!(a24==1)&&(((((((a19==4)&&(((a29==7)||(a29==8))&&(input==5)))&&!(a20==1))&&!(a0==1))&&(a25==1))&&(a11==1))&&(a28==1))))&&(a7==1)))){ + a14 = 8; + a0 = 1; + a29 = 5; + a20 = 1; + a24 = 1; + a19 = 1; + return -1; + } else if(((a22==1)&&(((a24==1)&&((a25==1)&&(((((a20==1)&&(((input==1)&&(((a19==3)&&(a29==9))||((a19==4)&&(a29==5))))&&(a11==1)))&&(a28==1))&&!(a7==1))&&(a14==8))))&&!(a0==1)))){ + a19 = 5; + a7 = 1; + a29 = 8; + a25 = 0; + return -1; + } else if((!(a0==1)&&(!(a7==1)&&(((((a24==1)&&((a29==6)&&((a28==1)&&((a22==1)&&((a25==1)&&((a14==9)&&(input==4)))))))&&(a11==1))&&(a19==3))&&(a20==1))))){ + a19 = 1; + a24 = 0; + a20 = 0; + a25 = 0; + a0 = 1; + a7 = 1; + a29 = 9; + return 23; + } else if((((!(a20==1)&&(!(a25==1)&&((((a22==1)&&((!(a24==1)&&((((a19==5)&&(a29==5))||(((a29==8)&&(a19==4))||((a19==4)&&(a29==9))))&&(input==1)))&&!(a7==1)))&&(a14==8))&&!(a11==1))))&&(a28==1))&&!(a0==1))){ + a29 = 9; + a7 = 1; + a20 = 1; + a19 = 3; + return 24; + } else if(((a20==1)&&((a28==1)&&((a19==1)&&(((a14==10)&&((((!(a25==1)&&((a11==1)&&((a7==1)&&(input==1))))&&(a29==8))&&!(a24==1))&&(a22==1)))&&(a0==1)))))){ + a14 = 8; + a29 = 5; + a25 = 1; + a24 = 1; + return -1; + } else if((((a14==9)&&((((!(a11==1)&&((a25==1)&&(((a22==1)&&((((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))&&(input==6)))&&(a28==1))))&&(a7==1))&&(a24==1))&&!(a0==1)))&&(a20==1))){ + a19 = 1; + a29 = 9; + a11 = 1; + a14 = 8; + return -1; + } else if((((a28==1)&&((a7==1)&&((a14==9)&&(((!(a11==1)&&((a19==5)&&(((a0==1)&&((input==3)&&((a29==8)||(a29==9))))&&(a20==1))))&&(a22==1))&&!(a25==1)))))&&(a24==1))){ + a14 = 8; + a7 = 0; + a20 = 0; + a29 = 6; + a24 = 0; + a19 = 1; + return 24; + } else if(((((((((a28==1)&&((a22==1)&&((a7==1)&&(!(a25==1)&&(((a29==6)||(a29==7))&&(input==1))))))&&(a24==1))&&!(a0==1))&&(a14==8))&&!(a11==1))&&(a19==3))&&!(a20==1))){ + a14 = 9; + a19 = 5; + a29 = 6; + a11 = 1; + a24 = 0; + return 24; + } else if((!(a25==1)&&(!(a0==1)&&(((!(a11==1)&&(((((((a20==1)&&(input==2))&&(a29==7))&&(a28==1))&&(a24==1))&&(a22==1))&&!(a7==1)))&&(a19==2))&&(a14==9))))){ + a14 = 8; + a29 = 8; + a19 = 3; + a11 = 1; + return 21; + } else if(((a25==1)&&((a28==1)&&(((((a19==1)&&(((a24==1)&&((a14==9)&&(((input==5)&&(((a29==6)||(a29==7))||(a29==8)))&&!(a7==1))))&&(a11==1)))&&(a22==1))&&(a20==1))&&!(a0==1))))){ + a0 = 1; + a7 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if((!(a7==1)&&(!(a24==1)&&((((a14==8)&&((((a28==1)&&((a22==1)&&((a19==2)&&((((a29==5)||(a29==6))||(a29==7))&&(input==4)))))&&(a0==1))&&!(a11==1)))&&!(a25==1))&&!(a20==1))))){ + a24 = 1; + a19 = 1; + a25 = 1; + a20 = 1; + a29 = 5; + a7 = 1; + a11 = 1; + return -1; + } else if(((a22==1)&&(((((!(a24==1)&&(((!(a25==1)&&((input==4)&&(((a19==5)&&(a29==6))||(((a19==4)&&(a29==9))||((a29==5)&&(a19==5))))))&&!(a7==1))&&(a11==1)))&&(a28==1))&&(a20==1))&&(a0==1))&&(a14==8)))){ + a19 = 5; + a29 = 6; + a0 = 0; + a25 = 1; + return 24; + } else if(((a0==1)&&((((a19==4)&&((((!(a24==1)&&((((a20==1)&&(input==5))&&!(a7==1))&&(a25==1)))&&(a28==1))&&(a22==1))&&(a14==8)))&&(a29==8))&&(a11==1)))){ + a11 = 0; + a29 = 6; + a19 = 3; + a25 = 0; + a20 = 0; + return 23; + } else if(((a19==2)&&((a25==1)&&((a22==1)&&((a11==1)&&((a20==1)&&(((a14==9)&&((!(a0==1)&&(((input==5)&&((a29==8)||((a29==6)||(a29==7))))&&(a24==1)))&&!(a7==1)))&&(a28==1)))))))){ + a20 = 0; + a14 = 8; + a0 = 1; + a29 = 9; + a25 = 0; + a7 = 1; + a24 = 0; + a11 = 0; + return 21; + } else if((((a28==1)&&((!(a24==1)&&((((((a7==1)&&((a22==1)&&(((a29==6)||(a29==7))&&(input==2))))&&(a11==1))&&!(a25==1))&&(a14==10))&&(a0==1)))&&(a19==2)))&&(a20==1))){ + a29 = 8; + a19 = 1; + a11 = 0; + a14 = 8; + a7 = 0; + a24 = 1; + a25 = 1; + a0 = 0; + return -1; + } else if(((a11==1)&&((a22==1)&&(((a28==1)&&((((((a14==10)&&((!(a25==1)&&(input==3))&&(a19==1)))&&(a24==1))&&(a0==1))&&(a7==1))&&(a20==1)))&&(a29==9))))){ + a19 = 5; + a11 = 0; + a0 = 0; + a29 = 5; + a24 = 0; + a14 = 8; + return 23; + } else if(((a7==1)&&(!(a0==1)&&(!(a11==1)&&((((a28==1)&&(((((a19==5)&&(((a29==7)||(a29==8))&&(input==2)))&&(a20==1))&&!(a25==1))&&(a24==1)))&&(a22==1))&&(a14==9)))))){ + a19 = 2; + a11 = 1; + a0 = 1; + a24 = 0; + a29 = 8; + a25 = 1; + return -1; + } else if((!(a24==1)&&(((((a22==1)&&(!(a25==1)&&(!(a7==1)&&(((a0==1)&&(((a19==5)&&(input==1))&&(a28==1)))&&(a11==1)))))&&(a29==8))&&(a14==8))&&!(a20==1)))){ + a25 = 1; + a19 = 3; + a24 = 1; + a11 = 0; + a7 = 1; + a0 = 0; + return 23; + } else if(((a22==1)&&((a28==1)&&((((input==1)&&((((a19==5)&&((a29==8)&&((((!(a20==1)&&(a11==1))&&!(a7==1))&&!(a24==1))&&!(a25==1))))||(((((!(a7==1)&&(!(a20==1)&&(a11==1)))&&!(a24==1))&&!(a25==1))&&(a29==9))&&(a19==5)))||((((a25==1)&&((a24==1)&&((!(a11==1)&&(a20==1))&&(a7==1))))&&(a29==5))&&(a19==1))))&&(a14==8))&&!(a0==1))))){ + a20 = 0; + a19 = 3; + a24 = 1; + a29 = 9; + a7 = 1; + a11 = 1; + a25 = 0; + return 21; + } else if((((a20==1)&&((!(a0==1)&&(!(a7==1)&&((a22==1)&&((((a28==1)&&(((input==2)&&((a29==6)||(a29==7)))&&!(a11==1)))&&(a14==8))&&(a25==1)))))&&(a19==2)))&&(a24==1))){ + a29 = 6; + a11 = 1; + a19 = 5; + a24 = 0; + return -1; + } else if(((!(a24==1)&&((a7==1)&&((!(a25==1)&&(((!(a11==1)&&((a14==8)&&((input==6)&&(((a19==2)&&(a29==9))||((a29==5)&&(a19==3))))))&&(a20==1))&&(a22==1)))&&(a28==1))))&&!(a0==1))){ + a11 = 1; + a25 = 1; + a19 = 2; + a24 = 1; + a29 = 7; + a20 = 0; + a7 = 0; + return 24; + } else if(((a14==8)&&((a28==1)&&(((!(a0==1)&&((a24==1)&&(((((a19==2)&&((input==1)&&((a29==8)||((a29==6)||(a29==7)))))&&!(a11==1))&&!(a7==1))&&(a20==1))))&&!(a25==1))&&(a22==1))))){ + a24 = 0; + a14 = 9; + a11 = 1; + a29 = 5; + a19 = 5; + return 24; + } else if(((((a22==1)&&((((a20==1)&&((a24==1)&&((((a29==6)&&((a14==8)&&(input==5)))&&(a19==3))&&(a28==1))))&&!(a11==1))&&!(a0==1)))&&(a25==1))&&(a7==1))){ + a19 = 1; + a29 = 9; + a11 = 1; + a7 = 0; + a24 = 0; + return -1; + } else if(((a19==5)&&((a7==1)&&(((((a28==1)&&(!(a25==1)&&((a11==1)&&((!(a0==1)&&(((a29==6)||(a29==7))&&(input==5)))&&(a14==9)))))&&!(a24==1))&&(a22==1))&&!(a20==1))))){ + a0 = 1; + a14 = 8; + a29 = 5; + a24 = 1; + a20 = 1; + a19 = 1; + a25 = 1; + return -1; + } else if((((((a7==1)&&(!(a0==1)&&((a20==1)&&((!(a24==1)&&((((input==5)&&(a19==2))&&(a14==8))&&(a11==1)))&&!(a25==1)))))&&(a22==1))&&(a29==9))&&(a28==1))){ + a25 = 1; + a11 = 0; + a20 = 0; + a19 = 4; + a7 = 0; + a0 = 1; + return 23; + } else if((((a22==1)&&(!(a0==1)&&(!(a25==1)&&(((a24==1)&&((a14==9)&&((((((a29==9)||((a29==7)||(a29==8)))&&(input==1))&&(a19==5))&&(a20==1))&&(a11==1))))&&!(a7==1)))))&&(a28==1))){ + a14 = 8; + a19 = 1; + a25 = 1; + a0 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if(((((a20==1)&&((a29==9)&&((((((a28==1)&&(((input==2)&&(a19==1))&&(a0==1)))&&(a11==1))&&(a22==1))&&!(a24==1))&&(a14==10))))&&(a7==1))&&(a25==1))){ + a20 = 0; + a19 = 4; + a29 = 8; + a24 = 1; + return -1; + } else if((((a29==8)&&(((((a0==1)&&(((a28==1)&&(!(a20==1)&&((a7==1)&&((input==5)&&(a22==1)))))&&!(a24==1)))&&(a19==5))&&(a25==1))&&(a11==1)))&&(a14==9))){ + a14 = 8; + a20 = 1; + a19 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if(((a24==1)&&((a22==1)&&((a28==1)&&(((a19==3)&&((a0==1)&&((!(a7==1)&&((a14==8)&&((a11==1)&&((a20==1)&&(input==5)))))&&(a29==9))))&&!(a25==1)))))){ + a25 = 1; + a29 = 5; + a19 = 1; + a7 = 1; + return -1; + } else if(((a0==1)&&((a11==1)&&(((((a20==1)&&(((a24==1)&&(((input==4)&&((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))||((a29==6)&&(a19==5))))&&(a28==1)))&&(a22==1)))&&!(a7==1))&&(a14==9))&&(a25==1))))){ + a19 = 1; + a0 = 0; + a20 = 0; + a29 = 7; + a14 = 8; + return 23; + } else if((!(a20==1)&&(((((a28==1)&&(((a0==1)&&((((((a29==5)||(a29==6))&&(input==6))&&(a22==1))&&!(a24==1))&&(a14==8)))&&(a19==3)))&&(a7==1))&&!(a25==1))&&!(a11==1)))){ + a20 = 1; + a29 = 5; + a11 = 1; + a25 = 1; + return 21; + } else if(((((a14==8)&&(((a19==3)&&((a22==1)&&(((((a11==1)&&(((a29==7)||(a29==8))&&(input==2)))&&(a0==1))&&!(a7==1))&&(a20==1))))&&!(a24==1)))&&(a28==1))&&(a25==1))){ + a29 = 5; + a19 = 2; + a0 = 0; + a25 = 0; + a20 = 0; + a24 = 1; + return 21; + } else if(((a19==4)&&((!(a24==1)&&((!(a25==1)&&(((a14==9)&&(((a29==9)&&((a28==1)&&((a0==1)&&(input==1))))&&!(a20==1)))&&!(a7==1)))&&(a22==1)))&&(a11==1)))){ + a24 = 1; + a0 = 0; + a20 = 1; + a19 = 5; + a14 = 8; + return 21; + } else if(((a28==1)&&(((a0==1)&&((a14==9)&&(((a24==1)&&((a19==3)&&((a22==1)&&((a7==1)&&((((a29==8)||(a29==9))&&(input==6))&&!(a11==1))))))&&!(a25==1))))&&(a20==1)))){ + a14 = 8; + a29 = 5; + a11 = 1; + a19 = 1; + a25 = 1; + return -1; + } else if(((!(a7==1)&&((a28==1)&&((a11==1)&&((((a19==1)&&(!(a25==1)&&(((((a29==8)||(a29==9))&&(input==1))&&(a14==8))&&(a22==1))))&&!(a20==1))&&!(a24==1)))))&&!(a0==1))){ + a29 = 5; + a25 = 1; + a7 = 1; + a20 = 1; + a0 = 1; + a24 = 1; + return -1; + } else if(((((a14==9)&&(((a22==1)&&((((((a28==1)&&(((a29==6)||(a29==7))&&(input==3)))&&!(a25==1))&&!(a24==1))&&!(a20==1))&&(a7==1)))&&(a19==5)))&&(a11==1))&&!(a0==1))){ + a24 = 1; + a14 = 8; + a19 = 1; + a25 = 1; + a20 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if((((a14==9)&&(!(a20==1)&&((a0==1)&&(((a25==1)&&((a19==3)&&((a11==1)&&(((a24==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==5)))&&(a28==1)))))&&(a7==1)))))&&(a22==1))){ + a29 = 5; + a0 = 0; + a7 = 0; + a19 = 5; + a14 = 8; + a20 = 1; + return 24; + } else if(((!(a25==1)&&((a11==1)&&(((a20==1)&&((a29==9)&&((a19==1)&&(!(a0==1)&&(((a14==9)&&(!(a24==1)&&(input==1)))&&(a7==1))))))&&(a22==1))))&&(a28==1))){ + a11 = 0; + a0 = 1; + a29 = 5; + a25 = 1; + a19 = 2; + a24 = 1; + return 24; + } else if((((a28==1)&&((a22==1)&&((((((a19==1)&&(((a25==1)&&(((a20==1)&&(a7==1))&&!(a24==1)))&&(a29==6)))||((((((!(a7==1)&&!(a20==1))&&(a24==1))&&!(a25==1))&&(a29==9))&&(a19==5))||((((a25==1)&&(!(a24==1)&&((a20==1)&&(a7==1))))&&(a29==5))&&(a19==1))))&&(input==5))&&(a0==1))&&(a11==1))))&&(a14==8))){ + a7 = 1; + a24 = 1; + a19 = 1; + a20 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if((((a28==1)&&(((a19==4)&&(((a25==1)&&(!(a24==1)&&(((a14==10)&&(((input==2)&&(((a29==6)||(a29==7))||(a29==8)))&&(a11==1)))&&(a0==1))))&&(a7==1)))&&(a20==1)))&&(a22==1))){ + a24 = 1; + a19 = 1; + a29 = 7; + a7 = 0; + a14 = 8; + a0 = 0; + a20 = 0; + return -1; + } else if((((!(a11==1)&&((a22==1)&&((a0==1)&&((((((a24==1)&&((a29==6)&&(input==5)))&&!(a20==1))&&(a19==3))&&(a7==1))&&(a14==9)))))&&(a28==1))&&!(a25==1))){ + a11 = 1; + a14 = 8; + a20 = 1; + a29 = 5; + a25 = 1; + a19 = 1; + return -1; + } else if((!(a7==1)&&(!(a11==1)&&(((((((a25==1)&&((!(a0==1)&&((input==1)&&((a29==6)||(a29==7))))&&(a20==1)))&&(a14==8))&&(a22==1))&&(a24==1))&&(a28==1))&&(a19==1))))){ + a7 = 1; + a19 = 4; + a29 = 7; + a20 = 0; + return 24; + } else if(((a14==8)&&((a22==1)&&(((a24==1)&&((((!(a25==1)&&(!(a20==1)&&((a19==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==4)))))&&(a7==1))&&(a28==1))&&!(a11==1)))&&(a0==1))))){ + a20 = 1; + a7 = 0; + a11 = 1; + a19 = 3; + a25 = 1; + a29 = 9; + return 24; + } else if((((((!(a20==1)&&((((((a14==8)&&((input==2)&&((a29==8)||(a29==9))))&&(a28==1))&&!(a7==1))&&!(a0==1))&&(a25==1)))&&(a11==1))&&(a24==1))&&(a22==1))&&(a19==2))){ + a19 = 3; + a20 = 1; + a7 = 1; + a29 = 9; + a25 = 0; + return -1; + } else if(((((a20==1)&&((a19==3)&&(((a0==1)&&((a7==1)&&(!(a24==1)&&((((input==4)&&((a29==6)||(a29==7)))&&(a22==1))&&(a14==10)))))&&(a25==1))))&&(a28==1))&&(a11==1))){ + a25 = 0; + a29 = 9; + a24 = 1; + a19 = 5; + a0 = 0; + a14 = 8; + return 23; + } else if((((((((((a28==1)&&(((((a29==6)||(a29==7))&&(input==1))&&(a7==1))&&(a11==1)))&&!(a24==1))&&(a20==1))&&(a14==8))&&(a0==1))&&(a22==1))&&(a25==1))&&(a19==3))){ + a7 = 0; + a19 = 1; + a11 = 0; + a20 = 0; + a29 = 9; + return 23; + } else if(((!(a0==1)&&(!(a7==1)&&((!(a25==1)&&((a22==1)&&((a28==1)&&((a19==3)&&(((((a29==7)||(a29==8))&&(input==5))&&!(a11==1))&&(a24==1))))))&&(a20==1))))&&(a14==8))){ + a19 = 2; + a7 = 1; + a11 = 1; + a29 = 5; + a25 = 1; + a20 = 0; + return 21; + } else if(((a14==8)&&((a19==4)&&(!(a11==1)&&(((a22==1)&&((a28==1)&&(!(a25==1)&&(((!(a7==1)&&((a0==1)&&(input==5)))&&!(a24==1))&&(a29==5)))))&&(a20==1)))))){ + a19 = 5; + a29 = 9; + a20 = 0; + a14 = 9; + a11 = 1; + return 21; + } else if(((a14==8)&&(((((((a24==1)&&(!(a7==1)&&(((((a29==6)||(a29==7))&&(input==5))&&(a20==1))&&(a28==1))))&&(a22==1))&&(a19==2))&&!(a0==1))&&(a25==1))&&!(a11==1)))){ + a19 = 1; + a7 = 1; + a25 = 0; + a11 = 1; + a29 = 7; + return 23; + } else if(((a7==1)&&((a22==1)&&((a20==1)&&((!(a11==1)&&(!(a24==1)&&((a14==9)&&((a0==1)&&(!(a25==1)&&(((input==6)&&(a29==6))&&(a28==1)))))))&&(a19==4)))))){ + a29 = 8; + a19 = 1; + a20 = 0; + a11 = 1; + return -1; + } else if(((((a11==1)&&((((a24==1)&&((a0==1)&&(((a28==1)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==1))&&(a19==3)))&&!(a25==1))))&&(a22==1))&&!(a20==1)))&&(a7==1))&&(a14==8))){ + a20 = 1; + a25 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if((!(a20==1)&&((((a19==3)&&((a11==1)&&((a22==1)&&((((((((a29==5)||(a29==6))||(a29==7))&&(input==3))&&(a14==8))&&(a28==1))&&!(a0==1))&&!(a7==1)))))&&!(a24==1))&&(a25==1)))){ + a19 = 5; + a7 = 1; + a24 = 1; + a29 = 6; + return 21; + } else if(((((((a14==9)&&((a28==1)&&((!(a0==1)&&(((((a29==6)&&(a19==4))||(((a29==9)&&(a19==3))||((a19==4)&&(a29==5))))&&(input==2))&&(a24==1)))&&(a22==1))))&&(a7==1))&&!(a25==1))&&!(a11==1))&&(a20==1))){ + a29 = 5; + a11 = 1; + a14 = 8; + a25 = 1; + a19 = 4; + a7 = 0; + a20 = 0; + return 21; + } else if(((a24==1)&&((a28==1)&&((((a19==4)&&(((((a14==10)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==2))&&!(a25==1)))&&!(a20==1))&&(a22==1))&&(a0==1)))&&(a11==1))&&!(a7==1))))){ + a24 = 0; + a25 = 1; + a29 = 6; + a14 = 9; + return -1; + } else if((!(a20==1)&&((a24==1)&&((((a11==1)&&((((a0==1)&&((a28==1)&&(((a19==4)&&(input==1))&&(a29==6))))&&(a22==1))&&(a25==1)))&&(a14==10))&&!(a7==1))))){ + a19 = 5; + a0 = 0; + a14 = 8; + a29 = 9; + return 21; + } else if(((((a19==5)&&(!(a11==1)&&(((((a20==1)&&(((((a29==6)||(a29==7))&&(input==6))&&!(a24==1))&&(a0==1)))&&(a7==1))&&(a22==1))&&(a25==1))))&&(a14==9))&&(a28==1))){ + a19 = 1; + a24 = 1; + a14 = 8; + a11 = 1; + a29 = 5; + return -1; + } else if((!(a11==1)&&((a25==1)&&((a22==1)&&(((a19==2)&&(!(a20==1)&&(((((((a29==7)||(a29==8))&&(input==2))&&(a28==1))&&(a24==1))&&(a14==9))&&(a0==1))))&&(a7==1)))))){ + a25 = 0; + a20 = 1; + a29 = 9; + a7 = 0; + return 24; + } else if(((a28==1)&&((((a25==1)&&(!(a7==1)&&(((!(a20==1)&&((a22==1)&&((((a29==5)||(a29==6))&&(input==2))&&(a11==1))))&&(a14==9))&&!(a0==1))))&&(a19==5))&&(a24==1)))){ + a0 = 1; + a29 = 5; + a20 = 1; + a14 = 8; + a7 = 1; + a19 = 1; + return -1; + } else if(((a19==4)&&(((!(a24==1)&&((!(a0==1)&&((a14==9)&&(!(a11==1)&&((((input==1)&&((a29==8)||(a29==9)))&&(a28==1))&&!(a7==1)))))&&(a25==1)))&&(a22==1))&&(a20==1)))){ + a24 = 1; + a20 = 0; + a14 = 8; + a29 = 7; + a25 = 0; + return -1; + } else if((((((!(a0==1)&&(!(a7==1)&&((a11==1)&&((((a19==4)&&(((a29==8)||(a29==9))&&(input==4)))&&(a24==1))&&!(a20==1)))))&&(a28==1))&&(a22==1))&&(a14==8))&&!(a25==1))){ + a0 = 1; + a29 = 5; + a25 = 1; + a7 = 1; + a20 = 1; + a19 = 1; + return -1; + } else if(((((a14==8)&&((((((a25==1)&&(((input==1)&&(((a29==5)&&(a19==4))||(((a29==8)&&(a19==3))||((a29==9)&&(a19==3)))))&&(a28==1)))&&!(a0==1))&&(a22==1))&&(a20==1))&&(a24==1)))&&(a7==1))&&!(a11==1))){ + a14 = 9; + a29 = 8; + a11 = 1; + a19 = 2; + a24 = 0; + return 23; + } else if((!(a24==1)&&(((!(a20==1)&&((a29==6)&&((a0==1)&&((((((a7==1)&&(input==1))&&!(a25==1))&&(a11==1))&&(a14==8))&&(a28==1)))))&&(a22==1))&&(a19==3)))){ + a0 = 0; + a29 = 9; + a7 = 0; + a19 = 4; + return 24; + } else if((!(a20==1)&&(((a19==4)&&(((a28==1)&&((!(a7==1)&&((a14==9)&&((a22==1)&&(((input==2)&&((a29==5)||(a29==6)))&&(a11==1)))))&&!(a0==1)))&&!(a25==1)))&&(a24==1)))){ + a19 = 5; + a0 = 1; + a29 = 6; + return -1; + } else if((!(a11==1)&&((a25==1)&&((a28==1)&&(((((((!(a7==1)&&(!(a0==1)&&(input==1)))&&(a22==1))&&!(a20==1))&&(a19==5))&&!(a24==1))&&(a29==9))&&(a14==9)))))){ + a19 = 3; + a25 = 0; + a29 = 7; + a7 = 1; + a20 = 1; + return -1; + } else if(((a24==1)&&((a19==4)&&((a25==1)&&((!(a7==1)&&((((a29==6)&&((a22==1)&&(((input==2)&&!(a11==1))&&(a20==1))))&&(a14==9))&&(a28==1)))&&(a0==1)))))){ + a29 = 8; + a19 = 3; + a7 = 1; + a14 = 8; + a0 = 0; + a20 = 0; + return -1; + } else if(((((!(a11==1)&&((a19==4)&&(((((a20==1)&&(!(a0==1)&&((input==3)&&((a29==8)||(a29==9)))))&&(a25==1))&&!(a24==1))&&(a14==9))))&&!(a7==1))&&(a28==1))&&(a22==1))){ + a11 = 1; + a29 = 5; + a19 = 1; + a24 = 1; + a14 = 8; + return 23; + } else if((((((a0==1)&&((a19==3)&&((a25==1)&&((a11==1)&&(!(a20==1)&&((a7==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==6))&&!(a24==1))))))))&&(a22==1))&&(a14==9))&&(a28==1))){ + a24 = 1; + a19 = 4; + a29 = 5; + a0 = 0; + a14 = 8; + return 24; + } else if(((!(a11==1)&&((a28==1)&&((a20==1)&&((a19==2)&&((a14==8)&&(((a22==1)&&(!(a0==1)&&((a7==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==3)))))&&(a24==1)))))))&&!(a25==1))){ + a19 = 1; + a29 = 5; + a0 = 1; + a25 = 1; + a11 = 1; + return -1; + } else if(((!(a20==1)&&(((((((((a7==1)&&((input==6)&&(((a29==5)||(a29==6))||(a29==7))))&&(a14==9))&&(a19==2))&&(a0==1))&&(a22==1))&&!(a11==1))&&(a28==1))&&(a25==1)))&&!(a24==1))){ + a24 = 1; + a14 = 8; + a20 = 1; + a11 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((((a25==1)&&((!(a20==1)&&((a0==1)&&((a14==8)&&(!(a11==1)&&((a7==1)&&((((input==3)&&((a29==7)||(a29==8)))&&(a19==5))&&(a22==1)))))))&&(a28==1)))&&!(a24==1))){ + a11 = 1; + a24 = 1; + a29 = 5; + a0 = 0; + a7 = 0; + a19 = 4; + return 21; + } else if((((!(a25==1)&&(!(a7==1)&&((((a19==5)&&((a29==8)&&((a24==1)&&(((input==5)&&(a0==1))&&(a11==1)))))&&!(a20==1))&&(a22==1))))&&(a28==1))&&(a14==8))){ + a29 = 5; + a20 = 1; + a11 = 0; + a19 = 3; + a24 = 0; + return 24; + } else if((((a0==1)&&(((((!(a11==1)&&((a14==9)&&((a7==1)&&((((a19==3)&&(a29==5))||(((a19==2)&&(a29==8))||((a29==9)&&(a19==2))))&&(input==4)))))&&!(a25==1))&&(a28==1))&&!(a24==1))&&(a22==1)))&&!(a20==1))){ + a20 = 1; + a11 = 1; + a24 = 1; + a25 = 1; + a7 = 0; + a19 = 1; + a29 = 9; + return -1; + } else if((((a28==1)&&(!(a24==1)&&((a22==1)&&((a19==1)&&(((a0==1)&&((a14==8)&&((a25==1)&&(((input==5)&&(((a29==5)||(a29==6))||(a29==7)))&&!(a20==1)))))&&!(a11==1))))))&&!(a7==1))){ + a7 = 1; + a19 = 2; + a14 = 9; + a25 = 0; + a24 = 1; + a29 = 9; + return 24; + } else if(((a22==1)&&(((((((a0==1)&&((((input==3)&&(((a19==2)&&(a29==6))||(((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))))&&!(a11==1))&&!(a25==1)))&&!(a24==1))&&!(a20==1))&&(a7==1))&&(a14==9))&&(a28==1)))){ + a25 = 1; + a7 = 0; + a24 = 1; + a0 = 0; + a19 = 1; + a11 = 1; + a14 = 8; + a29 = 5; + return 21; + } else if(((a28==1)&&(!(a11==1)&&(!(a25==1)&&((((((((((a29==8)||(a29==9))&&(input==5))&&(a19==4))&&!(a7==1))&&!(a20==1))&&(a0==1))&&(a14==9))&&!(a24==1))&&(a22==1)))))){ + a11 = 1; + a25 = 1; + a19 = 2; + a7 = 1; + a29 = 9; + return 23; + } else if(((((((!(a24==1)&&((((a19==5)&&(((input==1)&&((a29==7)||(a29==8)))&&(a11==1)))&&(a20==1))&&(a28==1)))&&!(a25==1))&&(a7==1))&&!(a0==1))&&(a14==9))&&(a22==1))){ + a29 = 8; + a14 = 8; + a11 = 0; + a7 = 0; + a19 = 2; + a24 = 1; + return 24; + } else if(((a28==1)&&((a14==9)&&((!(a24==1)&&(!(a7==1)&&((a22==1)&&((a25==1)&&((((a29==7)&&(!(a11==1)&&(input==3)))&&(a19==2))&&!(a0==1))))))&&!(a20==1))))){ + a29 = 5; + a0 = 1; + a7 = 1; + a19 = 1; + a14 = 8; + a24 = 1; + a11 = 1; + a20 = 1; + return -1; + } else if(((a28==1)&&((a14==9)&&((a24==1)&&((a7==1)&&(((((((a20==1)&&((a19==4)&&(input==2)))&&!(a25==1))&&!(a11==1))&&(a22==1))&&!(a0==1))&&(a29==9))))))){ + a24 = 0; + a14 = 8; + a29 = 8; + a0 = 1; + a20 = 0; + a19 = 5; + return 24; + } else if(((a24==1)&&(((a0==1)&&(!(a7==1)&&((!(a25==1)&&((a19==1)&&((((a28==1)&&((a11==1)&&(input==2)))&&(a22==1))&&(a29==8))))&&(a14==10))))&&(a20==1)))){ + a25 = 1; + a7 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if((((((!(a7==1)&&(((a24==1)&&(!(a20==1)&&((a22==1)&&(((((a29==8)&&(a19==3))||((a29==9)&&(a19==3)))||((a29==5)&&(a19==4)))&&(input==6)))))&&!(a11==1)))&&(a28==1))&&(a14==8))&&(a0==1))&&!(a25==1))){ + a19 = 2; + a29 = 9; + a24 = 0; + a7 = 1; + return 23; + } else if((!(a11==1)&&(((a28==1)&&(((a7==1)&&((a20==1)&&((a0==1)&&((a14==9)&&(((input==4)&&(((a29==9)&&(a19==3))||((a29==5)&&(a19==4))))&&(a22==1))))))&&!(a25==1)))&&!(a24==1)))){ + a19 = 1; + a24 = 1; + a14 = 8; + a29 = 5; + a11 = 1; + a25 = 1; + return -1; + } else if(((((a7==1)&&((((a19==1)&&((((a24==1)&&((!(a25==1)&&(input==2))&&(a11==1)))&&(a28==1))&&(a29==6)))&&(a0==1))&&(a14==10)))&&(a22==1))&&!(a20==1))){ + a20 = 1; + a0 = 0; + a19 = 3; + a25 = 1; + a14 = 8; + return 21; + } else if(((a0==1)&&(((a20==1)&&((((a28==1)&&((a25==1)&&((a11==1)&&((a14==9)&&((((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))&&(input==3))))))&&(a22==1))&&!(a24==1)))&&(a7==1)))){ + a29 = 5; + a7 = 0; + a19 = 2; + a14 = 10; + a25 = 0; + a24 = 1; + return 21; + } else if(((a25==1)&&(!(a11==1)&&((a7==1)&&(((!(a24==1)&&((a14==8)&&(!(a0==1)&&((!(a20==1)&&((input==4)&&((a29==9)||((a29==7)||(a29==8)))))&&(a22==1)))))&&(a19==2))&&(a28==1)))))){ + a24 = 1; + a29 = 5; + a19 = 5; + a7 = 0; + return 21; + } else if((!(a20==1)&&((((((((((a28==1)&&(((a29==7)||(a29==8))&&(input==5)))&&(a24==1))&&(a11==1))&&!(a0==1))&&(a7==1))&&(a14==9))&&(a19==3))&&(a22==1))&&(a25==1)))){ + a0 = 1; + a19 = 1; + a29 = 6; + a20 = 1; + a7 = 0; + return 21; + } else if(((a24==1)&&((a0==1)&&((a14==9)&&(((!(a11==1)&&(!(a20==1)&&((a19==4)&&((a29==9)&&(((input==4)&&!(a25==1))&&(a22==1))))))&&(a7==1))&&(a28==1)))))){ + a19 = 3; + a20 = 1; + return -1; + } else if(((!(a0==1)&&((a25==1)&&((a24==1)&&((a28==1)&&((a22==1)&&(((!(a20==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==4))&&(a14==8)))&&!(a11==1))&&(a19==3)))))))&&!(a7==1))){ + a14 = 9; + a19 = 2; + a0 = 1; + a20 = 1; + a29 = 8; + return 23; + } else if(((a7==1)&&(((((!(a25==1)&&(((((a28==1)&&((input==4)&&!(a11==1)))&&(a14==9))&&(a20==1))&&(a22==1)))&&(a19==3))&&!(a24==1))&&(a29==5))&&!(a0==1)))){ + a24 = 1; + a25 = 1; + a14 = 8; + a19 = 4; + a11 = 1; + a29 = 9; + return 21; + } else if(((a25==1)&&((a28==1)&&(!(a0==1)&&((a19==5)&&((!(a20==1)&&((a22==1)&&((a11==1)&&(!(a7==1)&&((((a29==5)||(a29==6))&&(input==3))&&(a24==1))))))&&(a14==9))))))){ + a20 = 1; + a0 = 1; + a7 = 1; + a29 = 7; + a19 = 3; + a25 = 0; + a11 = 0; + return -1; + } else if((!(a24==1)&&((a11==1)&&((((((a19==2)&&(!(a25==1)&&((a22==1)&&((((a29==8)||(a29==9))&&(input==5))&&(a14==9)))))&&!(a20==1))&&!(a0==1))&&!(a7==1))&&(a28==1))))){ + a24 = 1; + a25 = 1; + a7 = 1; + a29 = 5; + a20 = 1; + a0 = 1; + a14 = 8; + a19 = 1; + return -1; + } else if((((((a22==1)&&((a7==1)&&((((a28==1)&&(((((a29==8)||(a29==9))&&(input==3))&&!(a0==1))&&(a19==3)))&&!(a24==1))&&(a14==9))))&&!(a25==1))&&(a11==1))&&!(a20==1))){ + a24 = 1; + a0 = 1; + a19 = 2; + a25 = 1; + a29 = 7; + return 24; + } else if(((a28==1)&&((a29==8)&&(!(a0==1)&&((a19==5)&&(((((((a11==1)&&((a24==1)&&(input==6)))&&(a25==1))&&!(a7==1))&&!(a20==1))&&(a14==9))&&(a22==1))))))){ + a20 = 1; + a25 = 0; + a19 = 1; + a14 = 8; + a29 = 7; + return 23; + } else if(((((a19==4)&&((!(a0==1)&&(((a14==9)&&(((((input==1)&&(((a29==7)||(a29==8))||(a29==9)))&&(a28==1))&&!(a24==1))&&!(a25==1)))&&(a20==1)))&&(a22==1)))&&(a7==1))&&!(a11==1))){ + a14 = 8; + a24 = 1; + a29 = 5; + a25 = 1; + a19 = 1; + a11 = 1; + a0 = 1; + return -1; + } else if((((a14==8)&&((a7==1)&&((((a19==2)&&((a20==1)&&(((a24==1)&&(!(a11==1)&&((input==4)&&(a25==1))))&&(a22==1))))&&!(a0==1))&&(a29==7))))&&(a28==1))){ + a19 = 5; + a20 = 0; + a7 = 0; + a25 = 0; + a11 = 1; + return 23; + } else if((((a11==1)&&(((a0==1)&&((a22==1)&&(((a7==1)&&((((a28==1)&&(((a29==6)||(a29==7))&&(input==3)))&&!(a20==1))&&(a19==4)))&&(a25==1))))&&(a14==8)))&&!(a24==1))){ + a24 = 1; + a20 = 1; + a0 = 0; + a19 = 3; + a29 = 9; + return 23; + } else if(((((!(a7==1)&&((a20==1)&&(((a0==1)&&(((a19==4)&&(((input==5)&&(a22==1))&&(a14==8)))&&!(a11==1)))&&(a29==5))))&&(a24==1))&&(a25==1))&&(a28==1))){ + a24 = 0; + a19 = 3; + a0 = 0; + a25 = 0; + return 24; + } else if(((((((a19==1)&&(((a11==1)&&((a20==1)&&((a14==8)&&(((input==2)&&(((a29==7)||(a29==8))||(a29==9)))&&!(a25==1)))))&&(a28==1)))&&!(a7==1))&&(a22==1))&&!(a24==1))&&!(a0==1))){ + a11 = 0; + a19 = 5; + a0 = 1; + a29 = 9; + a20 = 0; + a7 = 1; + return 23; + } else if((!(a11==1)&&(!(a24==1)&&(((a22==1)&&((!(a25==1)&&(((a0==1)&&(!(a20==1)&&((input==3)&&(((a19==2)&&(a29==5))||(((a29==8)&&(a19==1))||((a19==1)&&(a29==9)))))))&&!(a7==1)))&&(a28==1)))&&(a14==9))))){ + a11 = 1; + a7 = 1; + a29 = 6; + a25 = 1; + a24 = 1; + a19 = 2; + a20 = 1; + return 21; + } else if((((a14==9)&&((a24==1)&&(((a20==1)&&((!(a7==1)&&(((!(a0==1)&&(((a29==8)||(a29==9))&&(input==1)))&&(a19==2))&&!(a25==1)))&&(a22==1)))&&(a11==1))))&&(a28==1))){ + a29 = 6; + a25 = 1; + a24 = 0; + a20 = 0; + a0 = 1; + a7 = 1; + a11 = 0; + return 21; + } else if(((((a19==3)&&((((((a25==1)&&((a11==1)&&((a14==8)&&((input==6)&&((a29==8)||((a29==6)||(a29==7)))))))&&(a24==1))&&!(a0==1))&&(a28==1))&&(a20==1)))&&(a22==1))&&(a7==1))){ + a14 = 9; + a0 = 1; + a11 = 0; + a20 = 0; + a25 = 0; + a29 = 5; + a7 = 0; + return 23; + } else if(((a19==5)&&(!(a25==1)&&((a7==1)&&(((((a14==8)&&(((a28==1)&&(!(a0==1)&&(((a29==6)||(a29==7))&&(input==2))))&&(a20==1)))&&(a22==1))&&!(a24==1))&&!(a11==1)))))){ + a24 = 1; + a29 = 8; + a19 = 1; + a7 = 0; + a25 = 1; + a14 = 9; + return 23; + } else if((((((a24==1)&&(((a7==1)&&(((a20==1)&&(((a19==5)&&((input==1)&&(a28==1)))&&(a22==1)))&&!(a0==1)))&&!(a11==1)))&&(a25==1))&&(a29==6))&&(a14==9))){ + a29 = 9; + a14 = 8; + a19 = 3; + a25 = 0; + a24 = 0; + return 24; + } else if((((a24==1)&&(((((a28==1)&&((a14==8)&&(((((input==6)&&((a29==8)||((a29==6)||(a29==7))))&&(a19==1))&&(a22==1))&&(a0==1))))&&!(a20==1))&&!(a25==1))&&!(a7==1)))&&(a11==1))){ + a29 = 6; + a11 = 0; + a19 = 5; + return 23; + } else if(((((((!(a11==1)&&(((a22==1)&&((a14==9)&&((a28==1)&&((input==6)&&((a29==8)||(a29==9))))))&&(a20==1)))&&!(a7==1))&&!(a24==1))&&(a0==1))&&(a19==2))&&(a25==1))){ + a11 = 1; + a29 = 6; + a7 = 1; + a24 = 1; + return -1; + } else if(((((a22==1)&&(!(a20==1)&&(!(a25==1)&&((a24==1)&&(((((a14==8)&&((input==6)&&(((a29==5)||(a29==6))||(a29==7))))&&(a19==2))&&!(a11==1))&&!(a7==1))))))&&(a0==1))&&(a28==1))){ + a20 = 1; + a7 = 1; + a11 = 1; + a29 = 5; + a25 = 1; + a19 = 1; + return -1; + } else if((((((a24==1)&&(((a25==1)&&(((a22==1)&&(((!(a11==1)&&(input==5))&&!(a20==1))&&(a29==6)))&&(a14==9)))&&!(a7==1)))&&(a19==2))&&(a28==1))&&!(a0==1))){ + a14 = 8; + a29 = 5; + a19 = 3; + a11 = 1; + return 24; + } else if((!(a0==1)&&((a14==9)&&((a28==1)&&(((((a25==1)&&(((a7==1)&&((((a29==8)||(a29==9))&&(input==1))&&!(a24==1)))&&!(a20==1)))&&(a19==1))&&!(a11==1))&&(a22==1)))))){ + a25 = 0; + a19 = 4; + a20 = 1; + a11 = 1; + a7 = 0; + a29 = 7; + return -1; + } else if(((a20==1)&&((a7==1)&&((a0==1)&&((a11==1)&&((((a14==8)&&((a28==1)&&(((input==5)&&(((a29==5)&&(a19==3))||(((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))))&&(a22==1))))&&!(a24==1))&&!(a25==1))))))){ + a24 = 1; + a19 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if((((a19==3)&&(((a28==1)&&(!(a24==1)&&((!(a20==1)&&((a29==7)&&(((a14==9)&&((input==3)&&(a7==1)))&&(a22==1))))&&!(a25==1))))&&(a0==1)))&&!(a11==1))){ + a20 = 1; + a29 = 5; + a25 = 1; + a19 = 5; + return 21; + } else if(((a28==1)&&(((a22==1)&&((a19==1)&&((a7==1)&&(!(a25==1)&&((a29==6)&&(((a14==8)&&(((a24==1)&&(input==1))&&!(a11==1)))&&!(a0==1)))))))&&(a20==1)))){ + a19 = 4; + a29 = 9; + a20 = 0; + a7 = 0; + a11 = 1; + return 24; + } else if((((a7==1)&&(((!(a20==1)&&(((!(a0==1)&&((a28==1)&&((a14==8)&&((input==5)&&!(a24==1)))))&&(a19==3))&&(a29==5)))&&!(a25==1))&&(a22==1)))&&!(a11==1))){ + a0 = 1; + a11 = 1; + a24 = 1; + a19 = 1; + a20 = 1; + a25 = 1; + return -1; + } else if(((a28==1)&&(!(a20==1)&&(((a7==1)&&(((a25==1)&&((a11==1)&&((a22==1)&&(((a14==8)&&((input==5)&&(a19==3)))&&(a24==1)))))&&(a0==1)))&&(a29==8))))){ + a7 = 0; + a25 = 0; + a20 = 1; + a19 = 5; + a24 = 0; + return 21; + } else if((((a24==1)&&(((!(a7==1)&&(((((a14==8)&&((input==5)&&(((a19==3)&&(a29==5))||(((a29==8)&&(a19==2))||((a19==2)&&(a29==9))))))&&(a11==1))&&(a20==1))&&!(a0==1)))&&(a22==1))&&!(a25==1)))&&(a28==1))){ + a11 = 0; + a7 = 1; + a0 = 1; + a24 = 0; + a19 = 4; + a20 = 0; + a29 = 7; + return -1; + } else if((!(a7==1)&&((a19==4)&&((((a14==8)&&(((!(a0==1)&&((a22==1)&&(((input==2)&&((a29==7)||((a29==5)||(a29==6))))&&(a11==1))))&&(a25==1))&&!(a24==1)))&&(a28==1))&&(a20==1))))){ + a7 = 1; + a20 = 0; + a29 = 8; + a24 = 1; + a25 = 0; + a19 = 1; + return 24; + } else if(((((a14==9)&&(!(a24==1)&&(!(a0==1)&&(((input==4)&&((((a29==5)&&((a25==1)&&(!(a20==1)&&(a7==1))))&&(a19==1))||((((((a20==1)&&!(a7==1))&&!(a25==1))&&(a29==8))&&(a19==5))||(((a29==9)&&(((a20==1)&&!(a7==1))&&!(a25==1)))&&(a19==5)))))&&(a28==1)))))&&(a22==1))&&!(a11==1))){ + a19 = 1; + a29 = 5; + a7 = 1; + a20 = 1; + a0 = 1; + a25 = 1; + a24 = 1; + a11 = 1; + a14 = 8; + return -1; + } else if(((a0==1)&&(((((!(a20==1)&&((((((input==4)&&((a29==7)||(a29==8)))&&(a19==1))&&(a7==1))&&(a22==1))&&(a24==1)))&&(a14==9))&&(a11==1))&&(a25==1))&&(a28==1)))){ + a19 = 2; + a11 = 0; + a7 = 0; + a0 = 0; + a24 = 0; + a29 = 7; + return 21; + } else if(((a24==1)&&((((a19==3)&&(((((a22==1)&&((((a20==1)&&(input==2))&&(a7==1))&&(a29==9)))&&(a28==1))&&!(a0==1))&&(a11==1)))&&(a25==1))&&(a14==9)))){ + a0 = 1; + a24 = 0; + a19 = 1; + a29 = 6; + a7 = 0; + a11 = 0; + return -1; + } else if(((a22==1)&&(((a0==1)&&((a24==1)&&((((((!(a25==1)&&(((a29==6)||(a29==7))&&(input==3)))&&(a28==1))&&(a7==1))&&(a19==3))&&(a14==8))&&!(a11==1))))&&(a20==1)))){ + a29 = 7; + a11 = 1; + a0 = 0; + return 24; + } else if((((a19==3)&&((((a7==1)&&((a14==8)&&(((!(a25==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==3))&&!(a20==1)))&&(a22==1))&&!(a11==1))))&&(a24==1))&&(a28==1)))&&(a0==1))){ + a11 = 1; + a20 = 1; + a29 = 5; + a25 = 1; + a14 = 9; + a19 = 2; + a7 = 0; + return 23; + } else if((((!(a0==1)&&((((!(a20==1)&&(((a22==1)&&(((a14==9)&&(input==3))&&(a29==8)))&&(a25==1)))&&!(a11==1))&&!(a7==1))&&(a19==4)))&&(a28==1))&&(a24==1))){ + a0 = 1; + a7 = 1; + a29 = 5; + a20 = 1; + a11 = 1; + a24 = 0; + return 23; + } else if((((a7==1)&&(((a28==1)&&((!(a24==1)&&((a11==1)&&((((a22==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==3)))&&(a14==9))&&(a19==3))))&&!(a0==1)))&&(a25==1)))&&!(a20==1))){ + a0 = 1; + a7 = 0; + a11 = 0; + a14 = 8; + a25 = 0; + a29 = 7; + return 23; + } else if(((a28==1)&&((a20==1)&&((a0==1)&&(((a14==8)&&((a22==1)&&(!(a11==1)&&((((((a29==6)||(a29==7))&&(input==1))&&!(a7==1))&&(a19==4))&&!(a24==1)))))&&!(a25==1)))))){ + a19 = 1; + a24 = 1; + a29 = 9; + a7 = 1; + a25 = 1; + a14 = 9; + return 21; + } else if(((a25==1)&&((a24==1)&&(!(a20==1)&&(((((((a22==1)&&((((a29==7)||(a29==8))&&(input==4))&&(a14==8)))&&(a19==4))&&(a7==1))&&(a0==1))&&!(a11==1))&&(a28==1)))))){ + a11 = 1; + a14 = 9; + a20 = 1; + a19 = 2; + a29 = 7; + return 24; + } else if(((((!(a25==1)&&((a11==1)&&((((a14==10)&&((!(a7==1)&&((input==6)&&(a20==1)))&&(a24==1)))&&(a29==7))&&(a19==1))))&&(a0==1))&&(a22==1))&&(a28==1))){ + a14 = 8; + a29 = 9; + a25 = 1; + a19 = 3; + a20 = 0; + a24 = 0; + a11 = 0; + return 23; + } else if((!(a24==1)&&((a11==1)&&(((a20==1)&&(((((a19==5)&&(((a22==1)&&((input==1)&&(((a29==6)||(a29==7))||(a29==8))))&&(a28==1)))&&(a25==1))&&(a14==9))&&!(a0==1)))&&(a7==1))))){ + a29 = 5; + a19 = 1; + a0 = 1; + a14 = 8; + a24 = 1; + return -1; + } else if((((a14==9)&&((a0==1)&&(!(a20==1)&&(!(a11==1)&&((a7==1)&&((((a25==1)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==1))&&(a28==1)))&&(a19==2))&&!(a24==1)))))))&&(a22==1))){ + a14 = 8; + a19 = 3; + a29 = 6; + a25 = 0; + a7 = 0; + return 24; + } else if((((a22==1)&&(((a11==1)&&((((((input==5)&&(((a19==1)&&((a29==5)&&!(a25==1)))||((((a25==1)&&(a29==8))&&(a19==5))||(((a25==1)&&(a29==9))&&(a19==5)))))&&!(a24==1))&&(a7==1))&&(a28==1))&&(a0==1)))&&(a14==8)))&&(a20==1))){ + a19 = 1; + a25 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if(((a14==8)&&(!(a20==1)&&(((a28==1)&&((((a25==1)&&(((a22==1)&&(!(a0==1)&&((input==2)&&!(a11==1))))&&(a29==8)))&&(a7==1))&&(a19==3)))&&!(a24==1))))){ + a7 = 0; + a11 = 1; + a19 = 5; + return -1; + } else if(((((a24==1)&&(((a28==1)&&((a0==1)&&(((a7==1)&&(((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))&&(input==3))&&(a25==1)))&&!(a20==1))))&&(a22==1)))&&(a11==1))&&(a14==10))){ + a14 = 9; + a29 = 5; + a24 = 0; + a19 = 4; + a11 = 0; + return -1; + } else if((((a28==1)&&(((((((a20==1)&&(!(a0==1)&&(!(a24==1)&&((a11==1)&&(input==4)))))&&!(a25==1))&&(a19==1))&&(a7==1))&&(a29==9))&&(a14==9)))&&(a22==1))){ + a20 = 0; + a29 = 7; + a19 = 3; + a7 = 0; + a0 = 1; + return 24; + } else if(((a14==8)&&(((((((((((((a29==8)&&(a19==3))||((a19==3)&&(a29==9)))||((a19==4)&&(a29==5)))&&(input==3))&&(a7==1))&&(a20==1))&&(a25==1))&&(a0==1))&&!(a24==1))&&(a22==1))&&(a28==1))&&(a11==1)))){ + a11 = 0; + a19 = 3; + a7 = 0; + a29 = 6; + a20 = 0; + return 23; + } else if(((a19==4)&&((a20==1)&&((((!(a11==1)&&((a24==1)&&((a25==1)&&((a22==1)&&((((a29==6)||(a29==7))&&(input==1))&&(a7==1))))))&&(a14==9))&&(a0==1))&&(a28==1))))){ + a19 = 2; + a29 = 8; + a20 = 0; + a24 = 0; + return 23; + } else if(((a24==1)&&((a19==5)&&(((a28==1)&&((((((a7==1)&&((a20==1)&&((a25==1)&&(input==5))))&&(a14==9))&&(a29==6))&&!(a0==1))&&!(a11==1)))&&(a22==1))))){ + a0 = 1; + a29 = 5; + a19 = 1; + a14 = 8; + a11 = 1; + return -1; + } else if(((a22==1)&&(((a19==2)&&((((a7==1)&&((a25==1)&&(!(a0==1)&&(!(a20==1)&&((((a29==6)||(a29==7))&&(input==6))&&(a14==9))))))&&(a11==1))&&!(a24==1)))&&(a28==1)))){ + a19 = 4; + a14 = 8; + a0 = 1; + a7 = 0; + a25 = 0; + a29 = 5; + return 23; + } else if(((a11==1)&&((a28==1)&&((((a20==1)&&((((((a22==1)&&(((a29==8)||(a29==9))&&(input==3)))&&(a0==1))&&(a14==8))&&(a7==1))&&(a25==1)))&&!(a24==1))&&(a19==1))))){ + a29 = 7; + a20 = 0; + a11 = 0; + return 23; + } else if(((a7==1)&&(!(a11==1)&&((a0==1)&&((a14==9)&&(((a22==1)&&((a28==1)&&(((((input==2)&&((a29==9)||((a29==7)||(a29==8))))&&(a20==1))&&!(a24==1))&&!(a25==1))))&&(a19==2))))))){ + a29 = 6; + a14 = 8; + a19 = 5; + a20 = 0; + return 21; + } else if(((!(a20==1)&&((a11==1)&&((((((a14==9)&&((a22==1)&&((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))&&(input==3))))&&!(a25==1))&&(a7==1))&&(a0==1))&&(a28==1))))&&!(a24==1))){ + a14 = 10; + a29 = 9; + a19 = 4; + a25 = 1; + a20 = 1; + return 23; + } else if(((a25==1)&&((a19==1)&&(((a28==1)&&((a29==7)&&((a11==1)&&(((a24==1)&&((a14==9)&&(((input==1)&&(a0==1))&&!(a7==1))))&&(a22==1)))))&&!(a20==1))))){ + a29 = 6; + a14 = 8; + a0 = 0; + a25 = 0; + a11 = 0; + a7 = 1; + a19 = 3; + return 24; + } else if((((a11==1)&&(((a0==1)&&((a22==1)&&((a19==4)&&(((((a28==1)&&((input==4)&&((a29==8)||(a29==9))))&&!(a7==1))&&(a20==1))&&!(a24==1)))))&&(a25==1)))&&(a14==9))){ + a24 = 1; + a29 = 5; + a7 = 1; + a14 = 8; + a19 = 1; + return -1; + } else if((!(a0==1)&&((a28==1)&&(!(a24==1)&&((a11==1)&&(((!(a25==1)&&((a7==1)&&((a19==2)&&((a20==1)&&((input==3)&&((a29==6)||(a29==7)))))))&&(a14==8))&&(a22==1))))))){ + a24 = 1; + a25 = 1; + a7 = 0; + a29 = 7; + a19 = 3; + return 21; + } else if((((a14==9)&&((!(a11==1)&&(((a22==1)&&(!(a24==1)&&((a0==1)&&((a7==1)&&(!(a20==1)&&((input==3)&&(((a29==5)||(a29==6))||(a29==7))))))))&&(a19==2)))&&(a25==1)))&&(a28==1))){ + a24 = 1; + a20 = 1; + a14 = 8; + a19 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if(((a7==1)&&(((a22==1)&&((a20==1)&&((!(a0==1)&&((((!(a24==1)&&((input==4)&&(((a29==5)||(a29==6))||(a29==7))))&&(a28==1))&&!(a25==1))&&(a19==3)))&&(a11==1))))&&(a14==8)))){ + a20 = 0; + a25 = 1; + a7 = 0; + a24 = 1; + a29 = 5; + return 24; + } else if(((!(a25==1)&&((a14==9)&&((a0==1)&&(((!(a11==1)&&(((a28==1)&&((a22==1)&&(((a29==8)||(a29==9))&&(input==6))))&&(a19==5)))&&!(a7==1))&&!(a24==1)))))&&(a20==1))){ + a29 = 8; + a24 = 1; + a25 = 1; + a11 = 1; + a7 = 1; + a20 = 0; + a19 = 4; + return 21; + } else if(((a20==1)&&((a29==9)&&((a14==9)&&(!(a11==1)&&(!(a0==1)&&(((a24==1)&&((a28==1)&&((((input==2)&&(a19==4))&&(a25==1))&&(a22==1))))&&!(a7==1)))))))){ + a11 = 1; + a24 = 0; + a29 = 5; + a0 = 1; + a19 = 1; + return 24; + } else if(((!(a25==1)&&((a14==8)&&((a28==1)&&((a24==1)&&((a20==1)&&((a19==5)&&((((a7==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==2)))&&(a11==1))&&!(a0==1))))))))&&(a22==1))){ + a14 = 9; + a11 = 0; + a0 = 1; + a19 = 2; + a29 = 5; + a24 = 0; + return 21; + } else if((((((a24==1)&&(!(a7==1)&&((a0==1)&&((a20==1)&&(((((a29==9)&&(input==1))&&(a22==1))&&(a11==1))&&(a19==5))))))&&(a28==1))&&(a25==1))&&(a14==9))){ + a29 = 8; + a11 = 0; + a24 = 0; + a20 = 0; + a25 = 0; + a7 = 1; + return 21; + } else if(((!(a20==1)&&((!(a25==1)&&(!(a7==1)&&(!(a0==1)&&((a11==1)&&((a22==1)&&((a24==1)&&((((a29==6)&&(a19==3))||(((a29==9)&&(a19==2))||((a19==3)&&(a29==5))))&&(input==3))))))))&&(a28==1)))&&(a14==9))){ + a14 = 8; + a0 = 1; + a20 = 1; + a19 = 1; + a25 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if((!(a11==1)&&(((a19==1)&&((a7==1)&&(((a22==1)&&(!(a25==1)&&((a14==9)&&((a20==1)&&((a29==5)&&((a24==1)&&(input==4)))))))&&(a0==1))))&&(a28==1)))){ + a7 = 0; + a29 = 9; + a20 = 0; + a25 = 1; + a11 = 1; + return 24; + } else if(((a22==1)&&((a25==1)&&(((!(a7==1)&&(!(a11==1)&&(((a14==8)&&((a0==1)&&((a28==1)&&((input==6)&&((a29==7)||(a29==8))))))&&(a19==3))))&&!(a20==1))&&!(a24==1))))){ + a29 = 5; + a20 = 1; + a7 = 1; + a11 = 1; + a24 = 1; + a19 = 1; + return -1; + } else if(((a19==4)&&(((!(a7==1)&&((a14==9)&&(((!(a20==1)&&((((input==4)&&((a29==8)||((a29==6)||(a29==7))))&&(a28==1))&&(a11==1)))&&(a22==1))&&!(a25==1))))&&(a0==1))&&(a24==1)))){ + a11 = 0; + a7 = 1; + a0 = 0; + a19 = 2; + a25 = 1; + a14 = 8; + a29 = 9; + a24 = 0; + return 23; + } else if(((!(a0==1)&&(((a28==1)&&((!(a11==1)&&((((a7==1)&&((input==5)&&((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))||((a29==6)&&(a19==3)))))&&(a22==1))&&(a14==9)))&&(a24==1)))&&!(a25==1)))&&!(a20==1))){ + a20 = 1; + a19 = 1; + a25 = 1; + a0 = 1; + a14 = 8; + a29 = 5; + a11 = 1; + return -1; + } else if(((a25==1)&&(((a22==1)&&((a24==1)&&((a19==2)&&(((!(a7==1)&&((a14==9)&&((a28==1)&&((input==4)&&((a29==5)||(a29==6))))))&&(a20==1))&&!(a11==1)))))&&(a0==1)))){ + a0 = 0; + a14 = 8; + a11 = 1; + a25 = 0; + a19 = 3; + a29 = 9; + a7 = 1; + return 23; + } else if(((((a24==1)&&((a0==1)&&((((((((input==3)&&((a29==9)||((a29==7)||(a29==8))))&&!(a7==1))&&!(a20==1))&&(a14==9))&&(a19==1))&&(a11==1))&&(a22==1))))&&(a28==1))&&!(a25==1))){ + a14 = 10; + a29 = 6; + a7 = 1; + a19 = 4; + a20 = 1; + return 21; + } else if(((((a28==1)&&(((a0==1)&&((a7==1)&&((a11==1)&&(!(a25==1)&&((a20==1)&&((input==6)&&(((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))))))))&&(a22==1)))&&!(a24==1))&&(a14==8))){ + a29 = 5; + a24 = 1; + a25 = 1; + a19 = 1; + return -1; + } else if(((((a22==1)&&(((a11==1)&&(((!(a20==1)&&(((a0==1)&&((a7==1)&&(input==1)))&&(a28==1)))&&(a25==1))&&(a19==4)))&&(a14==8)))&&(a24==1))&&(a29==9))){ + a24 = 0; + a19 = 5; + a29 = 8; + return 23; + } else if(((a7==1)&&((a22==1)&&(((a14==9)&&(((a0==1)&&(((((((a19==5)&&((a25==1)&&(a29==9)))||(((a29==5)&&!(a25==1))&&(a19==1)))||((a19==1)&&(!(a25==1)&&(a29==6))))&&(input==6))&&(a20==1))&&(a28==1)))&&(a24==1)))&&(a11==1))))){ + a19 = 1; + a29 = 5; + a14 = 8; + a25 = 1; + return -1; + } else if((((((((a24==1)&&((a25==1)&&((a22==1)&&(((((a29==6)&&(a19==2))||(((a29==9)&&(a19==1))||((a29==5)&&(a19==2))))&&(input==2))&&(a28==1)))))&&(a7==1))&&(a14==8))&&(a0==1))&&!(a11==1))&&!(a20==1))){ + a24 = 0; + a19 = 4; + a7 = 0; + a29 = 8; + a0 = 0; + return 24; + } else if((!(a11==1)&&((((!(a0==1)&&(((((((a28==1)&&(input==5))&&(a19==4))&&(a20==1))&&!(a25==1))&&(a29==6))&&(a24==1)))&&(a7==1))&&(a22==1))&&(a14==8)))){ + a25 = 1; + a29 = 5; + a11 = 1; + a19 = 1; + a0 = 1; + return -1; + } else if(((a0==1)&&((((!(a24==1)&&(((a11==1)&&(((a20==1)&&((a22==1)&&((input==5)&&((a29==7)||((a29==5)||(a29==6))))))&&(a14==9)))&&(a7==1)))&&(a28==1))&&!(a25==1))&&(a19==5)))){ + a29 = 7; + a19 = 4; + return -1; + } else if((!(a24==1)&&(((((!(a20==1)&&(!(a0==1)&&(((!(a11==1)&&((input==5)&&(a29==7)))&&!(a25==1))&&(a7==1))))&&(a14==8))&&(a28==1))&&(a22==1))&&(a19==2)))){ + a20 = 1; + a11 = 1; + a25 = 1; + a0 = 1; + a29 = 5; + a19 = 1; + a24 = 1; + return -1; + } else if((((((((a20==1)&&(!(a7==1)&&(((a14==9)&&((input==1)&&(((a19==2)&&(a29==5))||(((a19==1)&&(a29==8))||((a19==1)&&(a29==9))))))&&!(a25==1))))&&(a22==1))&&!(a11==1))&&(a28==1))&&!(a24==1))&&!(a0==1))){ + a7 = 1; + a19 = 5; + a20 = 0; + a24 = 1; + a29 = 5; + return -1; + } else if((((a28==1)&&((a11==1)&&(((a25==1)&&(((((a22==1)&&((a29==9)&&((a0==1)&&(input==2))))&&!(a24==1))&&!(a20==1))&&!(a7==1)))&&(a19==3))))&&(a14==9))){ + a19 = 1; + a24 = 1; + a7 = 1; + a29 = 5; + a14 = 8; + a20 = 1; + return -1; + } else if(((a28==1)&&(((a19==3)&&(!(a24==1)&&((a22==1)&&((a0==1)&&((a11==1)&&((!(a20==1)&&((a14==8)&&((a25==1)&&(input==4))))&&(a29==8)))))))&&!(a7==1)))){ + a29 = 9; + a7 = 1; + a25 = 0; + a19 = 2; + a11 = 0; + return 23; + } else if((((a14==9)&&((a20==1)&&(!(a11==1)&&((a19==2)&&((a28==1)&&(((((a22==1)&&((input==5)&&(((a29==6)||(a29==7))||(a29==8))))&&(a24==1))&&(a0==1))&&!(a25==1)))))))&&!(a7==1))){ + a19 = 5; + a29 = 8; + a20 = 0; + a14 = 8; + a7 = 1; + a24 = 0; + return 23; + } else if(((a19==3)&&((a25==1)&&((a24==1)&&((((a14==10)&&((a22==1)&&(((a0==1)&&(((input==4)&&(a20==1))&&(a7==1)))&&(a28==1))))&&(a29==9))&&(a11==1)))))){ + a24 = 0; + a25 = 0; + a19 = 1; + a14 = 9; + return 23; + } else if((!(a7==1)&&((!(a11==1)&&(((a0==1)&&(((!(a25==1)&&((((input==4)&&(a24==1))&&(a22==1))&&(a14==9)))&&(a19==5))&&(a20==1)))&&(a29==8)))&&(a28==1)))){ + a11 = 1; + a25 = 1; + a29 = 6; + a7 = 1; + a20 = 0; + a19 = 4; + return -1; + } else if((((!(a11==1)&&((a19==3)&&(!(a20==1)&&((a14==8)&&((a22==1)&&((a25==1)&&(((a28==1)&&((input==4)&&((a29==6)||(a29==7))))&&!(a7==1))))))))&&!(a0==1))&&!(a24==1))){ + a29 = 7; + a19 = 1; + a7 = 1; + a14 = 9; + a20 = 1; + return 24; + } else if(((a28==1)&&(!(a20==1)&&(((a7==1)&&((a22==1)&&((a24==1)&&((a11==1)&&(!(a0==1)&&((a14==8)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==5))&&(a25==1))))))))&&(a19==3))))){ + a29 = 5; + a0 = 1; + a20 = 1; + a19 = 1; + return -1; + } else if((((((!(a25==1)&&(!(a20==1)&&(((((a24==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==4)))&&!(a7==1))&&(a14==10))&&(a19==2))))&&(a28==1))&&(a11==1))&&(a22==1))&&(a0==1))){ + a24 = 0; + a20 = 1; + a14 = 9; + a29 = 7; + a25 = 1; + return 23; + } else if((((a11==1)&&(!(a0==1)&&(((!(a25==1)&&((a20==1)&&((a14==9)&&((((input==5)&&(((a29==5)||(a29==6))||(a29==7)))&&(a19==3))&&(a28==1)))))&&(a7==1))&&!(a24==1))))&&(a22==1))){ + a25 = 1; + a29 = 5; + a0 = 1; + return 21; + } else if((!(a7==1)&&((a19==2)&&((a29==5)&&((a14==9)&&(((a28==1)&&((((a22==1)&&(((input==1)&&(a24==1))&&!(a11==1)))&&(a0==1))&&!(a25==1)))&&!(a20==1))))))){ + a19 = 4; + a29 = 8; + a14 = 8; + a0 = 0; + a25 = 1; + a24 = 0; + a7 = 1; + return 24; + } else if(((((a0==1)&&((((a19==3)&&(!(a7==1)&&(((!(a25==1)&&((input==3)&&((a29==7)||(a29==8))))&&(a20==1))&&(a22==1))))&&(a14==9))&&(a28==1)))&&!(a11==1))&&(a24==1))){ + a11 = 1; + a24 = 0; + a29 = 7; + a20 = 0; + return 24; + } else if((((((a28==1)&&(((!(a0==1)&&((!(a20==1)&&(((((a29==8)&&(a19==1))||((a29==9)&&(a19==1)))||((a19==2)&&(a29==5)))&&(input==4)))&&(a25==1)))&&(a14==8))&&!(a7==1)))&&(a22==1))&&(a24==1))&&(a11==1))){ + a7 = 1; + a29 = 7; + a19 = 5; + return -1; + } else if(((a14==9)&&(!(a0==1)&&(((a22==1)&&((a28==1)&&(((((((input==5)&&((a29==8)||(a29==9)))&&!(a11==1))&&!(a25==1))&&!(a20==1))&&(a19==2))&&!(a7==1))))&&(a24==1))))){ + a0 = 1; + a20 = 1; + a11 = 1; + a14 = 8; + a7 = 1; + a29 = 5; + a19 = 1; + a25 = 1; + return -1; + } else if(((a0==1)&&((!(a24==1)&&(((a14==9)&&((a19==5)&&((a22==1)&&((a25==1)&&((!(a11==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==5)))&&(a28==1))))))&&!(a20==1)))&&!(a7==1)))){ + a20 = 1; + a29 = 5; + a24 = 1; + a7 = 1; + a19 = 1; + return 21; + } else if((((((a28==1)&&(!(a24==1)&&(((a22==1)&&((input==5)&&(((((a29==8)&&((a7==1)&&!(a25==1)))&&(a19==5))||(((a29==9)&&((a7==1)&&!(a25==1)))&&(a19==5)))||((a19==1)&&((a29==5)&&((a25==1)&&!(a7==1)))))))&&(a0==1))))&&!(a20==1))&&(a14==9))&&(a11==1))){ + a19 = 4; + a7 = 1; + a20 = 1; + a25 = 0; + a29 = 7; + return 24; + } else if((((a7==1)&&((((((a28==1)&&((a24==1)&&((a25==1)&&((input==5)&&((((a29==8)&&(a19==2))||((a19==2)&&(a29==9)))||((a19==3)&&(a29==5)))))))&&(a20==1))&&(a11==1))&&(a22==1))&&(a14==8)))&&!(a0==1))){ + a0 = 1; + a7 = 0; + a14 = 9; + a29 = 5; + a19 = 2; + a11 = 0; + a25 = 0; + a20 = 0; + return 21; + } else if((((a25==1)&&((a7==1)&&((a20==1)&&(!(a11==1)&&(((a28==1)&&((a22==1)&&(((input==6)&&(((a19==4)&&(a29==9))||((a19==5)&&(a29==5))))&&(a0==1))))&&(a14==8))))))&&(a24==1))){ + a19 = 1; + a29 = 5; + a7 = 0; + a0 = 0; + a20 = 0; + a25 = 0; + a11 = 1; + return 24; + } else if((((a22==1)&&(((((a28==1)&&((((((input==5)&&(a14==8))&&(a29==6))&&(a0==1))&&(a19==4))&&!(a25==1)))&&!(a7==1))&&!(a20==1))&&(a11==1)))&&!(a24==1))){ + a7 = 1; + a29 = 8; + a11 = 0; + return 21; + } else if(((a29==6)&&((a20==1)&&((a24==1)&&((a7==1)&&((((a22==1)&&(((a11==1)&&(((input==1)&&(a28==1))&&(a14==8)))&&!(a0==1)))&&(a19==4))&&!(a25==1))))))){ + a19 = 1; + a25 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if((((a24==1)&&((a22==1)&&((((((a0==1)&&((a7==1)&&((a19==1)&&((input==4)&&(a11==1)))))&&(a28==1))&&(a29==5))&&!(a20==1))&&(a14==10))))&&!(a25==1))){ + a11 = 0; + a19 = 2; + a20 = 1; + a25 = 1; + a14 = 9; + return 24; + } else if((((!(a11==1)&&(((((a29==8)&&((a22==1)&&(!(a24==1)&&((a14==9)&&((a20==1)&&(input==1))))))&&(a25==1))&&(a28==1))&&(a0==1)))&&(a7==1))&&(a19==5))){ + a0 = 0; + a20 = 0; + a11 = 1; + a14 = 8; + a19 = 4; + a25 = 0; + a7 = 0; + a24 = 1; + return 24; + } else if((((a24==1)&&((a14==9)&&(((a29==9)&&(((((a11==1)&&((!(a20==1)&&(input==3))&&(a7==1)))&&!(a25==1))&&(a19==5))&&(a22==1)))&&(a28==1))))&&!(a0==1))){ + a0 = 1; + a29 = 5; + a14 = 8; + a25 = 1; + a19 = 1; + a20 = 1; + return -1; + } else if(((((a14==8)&&((a7==1)&&(((a20==1)&&(!(a0==1)&&((((input==3)&&(((a19==3)&&(a29==5))||(((a29==8)&&(a19==2))||((a29==9)&&(a19==2)))))&&(a22==1))&&(a11==1))))&&(a24==1))))&&(a28==1))&&(a25==1))){ + a19 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if(((((a20==1)&&(((!(a24==1)&&((a22==1)&&((!(a25==1)&&(((input==2)&&!(a7==1))&&(a28==1)))&&(a14==8))))&&!(a11==1))&&(a19==5)))&&(a29==5))&&(a0==1))){ + a19 = 1; + a24 = 1; + a7 = 1; + a25 = 1; + a11 = 1; + return -1; + } else if((!(a20==1)&&(!(a0==1)&&(!(a7==1)&&((((a11==1)&&((!(a24==1)&&(((((a29==5)||(a29==6))&&(input==3))&&(a28==1))&&!(a25==1)))&&(a22==1)))&&(a14==8))&&(a19==2)))))){ + a7 = 1; + a25 = 1; + a19 = 1; + a0 = 1; + a20 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if((((a24==1)&&((a11==1)&&((a14==8)&&((a19==1)&&((!(a25==1)&&(!(a0==1)&&((a28==1)&&(!(a7==1)&&((a29==8)&&(input==3))))))&&(a22==1))))))&&(a20==1))){ + a7 = 1; + a29 = 7; + a25 = 1; + a19 = 2; + return -1; + } else if((((a28==1)&&(((a11==1)&&((((a0==1)&&((a14==8)&&(((((a29==9)||((a29==7)||(a29==8)))&&(input==5))&&!(a20==1))&&(a25==1))))&&!(a7==1))&&!(a24==1)))&&(a19==4)))&&(a22==1))){ + a19 = 1; + a11 = 0; + a20 = 1; + a0 = 0; + a24 = 1; + a29 = 7; + return 21; + } else if((((((a14==8)&&((!(a25==1)&&(!(a0==1)&&((a19==4)&&(((a22==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==2)))&&(a20==1)))))&&(a28==1)))&&(a11==1))&&!(a7==1))&&(a24==1))){ + a20 = 0; + a11 = 0; + a24 = 0; + a0 = 1; + a29 = 5; + return -1; + } else if(((a22==1)&&((a0==1)&&((a25==1)&&(((((a28==1)&&((a7==1)&&((a14==8)&&(((input==1)&&((a29==7)||(a29==8)))&&(a19==4)))))&&!(a20==1))&&!(a11==1))&&(a24==1)))))){ + a14 = 9; + a29 = 6; + a20 = 1; + a11 = 1; + a19 = 2; + return 21; + } else if((((((a20==1)&&(!(a24==1)&&((a28==1)&&(!(a25==1)&&(((a22==1)&&(((input==4)&&((a29==8)||(a29==9)))&&(a19==4)))&&(a14==8))))))&&(a11==1))&&!(a0==1))&&(a7==1))){ + a24 = 1; + a7 = 0; + a29 = 8; + a19 = 5; + a20 = 0; + return 23; + } else if(((((((!(a0==1)&&(((!(a25==1)&&(((input==5)&&((a29==9)||((a29==7)||(a29==8))))&&(a22==1)))&&(a14==8))&&(a11==1)))&&(a28==1))&&(a7==1))&&(a19==5))&&!(a20==1))&&(a24==1))){ + a29 = 5; + a0 = 1; + a19 = 1; + a20 = 1; + a25 = 1; + return -1; + } else if(((((((((((a25==1)&&((((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))&&(input==1)))&&(a22==1))&&!(a7==1))&&!(a0==1))&&(a14==8))&&(a24==1))&&(a20==1))&&(a28==1))&&(a11==1))){ + a29 = 6; + a25 = 0; + a19 = 2; + return 24; + } else if((((!(a11==1)&&((a14==8)&&((a25==1)&&((((a22==1)&&(((a24==1)&&((input==2)&&((a29==8)||(a29==9))))&&!(a7==1)))&&!(a20==1))&&(a0==1)))))&&(a28==1))&&(a19==1))){ + a19 = 4; + a11 = 1; + a29 = 5; + a7 = 1; + a25 = 0; + a20 = 1; + a0 = 0; + return 21; + } else if((((a19==5)&&((a22==1)&&(((a29==9)&&((((a28==1)&&((a24==1)&&((a14==9)&&((input==2)&&!(a7==1)))))&&!(a20==1))&&(a11==1)))&&!(a0==1))))&&(a25==1))){ + a7 = 1; + a19 = 3; + a29 = 7; + a25 = 0; + a14 = 8; + return 21; + } else if((((((!(a7==1)&&((a11==1)&&(((a24==1)&&(((((a29==8)||(a29==9))&&(input==4))&&(a28==1))&&!(a25==1)))&&(a22==1))))&&(a19==2))&&!(a20==1))&&(a0==1))&&(a14==8))){ + a29 = 5; + a20 = 1; + a25 = 1; + a19 = 1; + a7 = 1; + return -1; + } else if(((((a28==1)&&((a14==8)&&(((a7==1)&&((a22==1)&&(!(a0==1)&&((((((a29==5)||(a29==6))||(a29==7))&&(input==3))&&!(a24==1))&&!(a11==1)))))&&(a19==4))))&&(a25==1))&&(a20==1))){ + a0 = 1; + a29 = 5; + a11 = 1; + a24 = 1; + a19 = 1; + return -1; + } else if(((!(a20==1)&&(((((a7==1)&&((((a29==8)&&(((input==4)&&(a11==1))&&(a28==1)))&&!(a0==1))&&(a14==8)))&&(a19==2))&&(a22==1))&&!(a24==1)))&&(a25==1))){ + a24 = 1; + a7 = 0; + a29 = 6; + a19 = 5; + return 23; + } else if((((a29==9)&&(((a24==1)&&((((((!(a25==1)&&((input==5)&&(a14==9)))&&!(a11==1))&&(a28==1))&&(a22==1))&&!(a7==1))&&(a20==1)))&&(a19==4)))&&(a0==1))){ + a0 = 0; + a14 = 8; + a29 = 7; + a11 = 1; + a7 = 1; + a19 = 1; + return 21; + } else if((((a19==4)&&(((((a25==1)&&((((a29==5)&&(((input==2)&&(a14==9))&&(a0==1)))&&(a7==1))&&(a20==1)))&&(a22==1))&&(a24==1))&&!(a11==1)))&&(a28==1))){ + a29 = 9; + a11 = 1; + a19 = 1; + a20 = 0; + return -1; + } else if(((a28==1)&&((((!(a25==1)&&(((((((input==6)&&((a29==8)||(a29==9)))&&(a19==2))&&(a14==9))&&(a7==1))&&!(a24==1))&&(a22==1)))&&!(a0==1))&&(a11==1))&&!(a20==1)))){ + a11 = 0; + a14 = 8; + a29 = 5; + return 23; + } else if((((a29==9)&&(!(a24==1)&&((!(a0==1)&&(((a28==1)&&((!(a7==1)&&(((input==4)&&!(a11==1))&&(a22==1)))&&(a19==3)))&&(a14==8)))&&(a25==1))))&&!(a20==1))){ + a0 = 1; + a29 = 5; + a11 = 1; + a24 = 1; + a19 = 1; + a20 = 1; + a7 = 1; + return -1; + } else if(((a0==1)&&((a14==9)&&((a28==1)&&(((((((!(a20==1)&&((input==1)&&!(a11==1)))&&(a7==1))&&(a24==1))&&(a19==1))&&(a29==9))&&!(a25==1))&&(a22==1)))))){ + a0 = 0; + a25 = 1; + a11 = 1; + a29 = 8; + a14 = 8; + return 24; + } else if((!(a0==1)&&((a28==1)&&(((a22==1)&&(!(a20==1)&&((((a24==1)&&((a11==1)&&(((input==6)&&((a29==9)||((a29==7)||(a29==8))))&&(a14==9))))&&!(a7==1))&&(a19==1))))&&(a25==1))))){ + a11 = 0; + a29 = 7; + a19 = 3; + a20 = 1; + a0 = 1; + return 23; + } else if(((a20==1)&&((!(a25==1)&&((a24==1)&&((a28==1)&&(((a22==1)&&(((((input==5)&&(a0==1))&&(a19==1))&&(a14==8))&&!(a7==1)))&&(a29==8)))))&&(a11==1)))){ + a19 = 5; + a7 = 1; + a20 = 0; + a29 = 5; + return 23; + } return calculate_output18(input); + } + + int calculate_output18(int input) { + if((((a11==1)&&(!(a25==1)&&((a14==8)&&((a19==4)&&((!(a24==1)&&((!(a7==1)&&((a22==1)&&((input==4)&&(a28==1))))&&!(a20==1)))&&(a29==7))))))&&(a0==1))){ + a19 = 1; + a29 = 5; + a25 = 1; + a24 = 1; + a20 = 1; + a7 = 1; + return -1; + } else if(((a28==1)&&(((a22==1)&&(!(a24==1)&&((a11==1)&&((a0==1)&&((a14==9)&&(!(a25==1)&&(((((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))&&(input==6))&&!(a20==1))))))))&&(a7==1)))){ + a29 = 5; + a19 = 5; + a7 = 0; + return 23; + } else if(((a25==1)&&(((((a14==9)&&((a22==1)&&(!(a24==1)&&((((a19==4)&&((input==3)&&!(a0==1)))&&!(a7==1))&&(a29==5)))))&&!(a11==1))&&(a20==1))&&(a28==1)))){ + a11 = 1; + a14 = 8; + a0 = 1; + a7 = 1; + a19 = 1; + a24 = 1; + return -1; + } else if(((((!(a11==1)&&((a28==1)&&((((((((!(a7==1)&&!(a20==1))&&(a24==1))&&!(a25==1))&&(a29==8))&&(a19==5))||((a19==5)&&((a29==9)&&(!(a25==1)&&((a24==1)&&(!(a20==1)&&!(a7==1)))))))||((a19==1)&&((a29==5)&&((!(a24==1)&&((a20==1)&&(a7==1)))&&(a25==1)))))&&(input==1))))&&(a14==9))&&(a0==1))&&(a22==1))){ + a20 = 1; + a29 = 5; + a19 = 1; + a7 = 1; + a11 = 1; + a24 = 1; + a14 = 8; + a25 = 1; + return -1; + } else if(((((a24==1)&&(((a19==4)&&((a28==1)&&(((a11==1)&&((a22==1)&&(!(a7==1)&&((a14==10)&&(input==1)))))&&(a29==6))))&&(a25==1)))&&(a20==1))&&(a0==1))){ + a14 = 8; + a7 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((a24==1)&&((((a22==1)&&((a29==5)&&((a7==1)&&(((a20==1)&&((a28==1)&&((!(a11==1)&&(input==6))&&(a25==1))))&&(a14==9)))))&&!(a0==1))&&(a19==1)))){ + a7 = 0; + a0 = 1; + a24 = 0; + a25 = 0; + a29 = 9; + a20 = 0; + return 24; + } else if((((a20==1)&&((a14==9)&&((a22==1)&&((a29==6)&&((a24==1)&&((a7==1)&&((a25==1)&&(((a28==1)&&((a11==1)&&(input==4)))&&!(a0==1)))))))))&&(a19==3))){ + a25 = 0; + a29 = 9; + a14 = 8; + a19 = 4; + return 24; + } else if(((a11==1)&&((((((((((((a29==6)||(a29==7))&&(input==5))&&(a14==10))&&!(a24==1))&&(a28==1))&&(a19==1))&&(a20==1))&&(a25==1))&&(a22==1))&&(a0==1))&&(a7==1)))){ + a24 = 1; + a25 = 0; + a14 = 9; + a7 = 0; + a19 = 4; + a29 = 8; + return -1; + } else if((!(a7==1)&&((a22==1)&&(((a14==9)&&(((a25==1)&&((a19==2)&&(((a28==1)&&(((input==2)&&(((a29==7)||(a29==8))||(a29==9)))&&!(a0==1)))&&!(a20==1))))&&!(a11==1)))&&(a24==1))))){ + a11 = 1; + a19 = 4; + a0 = 1; + a29 = 5; + return 23; + } else if(((a7==1)&&((a25==1)&&((a22==1)&&(((!(a20==1)&&((((a28==1)&&(((input==3)&&(((a29==7)||(a29==8))||(a29==9)))&&(a19==4)))&&!(a11==1))&&(a14==9)))&&!(a0==1))&&!(a24==1)))))){ + a29 = 5; + a19 = 3; + a24 = 1; + a14 = 8; + a11 = 1; + return 24; + } else if(((a19==1)&&((a25==1)&&((a28==1)&&((a11==1)&&((a24==1)&&(((!(a20==1)&&(((((a29==5)||(a29==6))&&(input==3))&&(a14==9))&&(a22==1)))&&(a7==1))&&!(a0==1)))))))){ + a0 = 1; + a7 = 0; + a24 = 0; + a11 = 0; + a19 = 5; + a25 = 0; + a29 = 5; + return -1; + } else if((((a28==1)&&(((((((a0==1)&&(((a14==8)&&((a25==1)&&(input==2)))&&(a22==1)))&&(a19==5))&&(a20==1))&&!(a24==1))&&!(a7==1))&&(a29==5)))&&!(a11==1))){ + a7 = 1; + a25 = 0; + a14 = 9; + a11 = 1; + a20 = 0; + a29 = 7; + a19 = 4; + return 21; + } else if(((a7==1)&&(((((a28==1)&&((a11==1)&&((a0==1)&&((a19==4)&&((a22==1)&&((((a29==5)||(a29==6))&&(input==2))&&(a14==9)))))))&&!(a20==1))&&(a24==1))&&!(a25==1)))){ + a29 = 7; + a7 = 0; + a19 = 5; + a25 = 1; + a0 = 0; + a14 = 8; + return 24; + } else if(((a22==1)&&((a11==1)&&((((a25==1)&&((((a20==1)&&((((a29==8)&&(input==2))&&(a28==1))&&(a19==5)))&&(a7==1))&&(a0==1)))&&(a14==10))&&(a24==1))))){ + a19 = 1; + a0 = 0; + a7 = 0; + a25 = 0; + a11 = 0; + a14 = 8; + a24 = 0; + return 24; + } else if(((a14==9)&&((!(a7==1)&&((((a28==1)&&((((a0==1)&&((a20==1)&&((a24==1)&&(input==1))))&&(a19==5))&&(a22==1)))&&!(a25==1))&&(a29==7)))&&(a11==1)))){ + a29 = 6; + a7 = 1; + a20 = 0; + return 23; + } else if(((!(a24==1)&&((!(a20==1)&&((a19==5)&&((((a7==1)&&((!(a0==1)&&((input==5)&&(a22==1)))&&(a29==8)))&&(a28==1))&&!(a25==1))))&&!(a11==1)))&&(a14==8))){ + a29 = 5; + a24 = 1; + a19 = 1; + a20 = 1; + a25 = 1; + a0 = 1; + a11 = 1; + return -1; + } else if((((a14==8)&&(!(a25==1)&&(((a28==1)&&((((!(a24==1)&&((input==3)&&(((a19==4)&&(a29==5))||(((a19==3)&&(a29==8))||((a19==3)&&(a29==9))))))&&!(a0==1))&&(a7==1))&&!(a20==1)))&&(a22==1))))&&(a11==1))){ + a14 = 9; + a19 = 5; + a29 = 6; + a24 = 1; + return 21; + } else if(((a14==9)&&((a20==1)&&(((a11==1)&&((a19==5)&&(!(a25==1)&&((a28==1)&&((((((a29==9)||((a29==7)||(a29==8)))&&(input==3))&&(a7==1))&&(a0==1))&&(a22==1))))))&&(a24==1))))){ + a7 = 0; + a20 = 0; + a25 = 1; + a24 = 0; + a11 = 0; + a29 = 6; + a14 = 8; + return -1; + } else if((!(a25==1)&&((a11==1)&&((!(a24==1)&&((a7==1)&&((a20==1)&&((a28==1)&&((a14==9)&&((a0==1)&&((a22==1)&&((input==3)&&(((a29==5)||(a29==6))||(a29==7))))))))))&&(a19==5))))){ + a29 = 5; + a25 = 1; + a24 = 1; + a14 = 8; + a19 = 1; + return -1; + } else if(((a14==8)&&(!(a25==1)&&((a20==1)&&((((a19==5)&&((((a22==1)&&((a7==1)&&(!(a24==1)&&(input==3))))&&(a28==1))&&!(a11==1)))&&(a29==9))&&(a0==1)))))){ + a29 = 5; + a20 = 0; + a0 = 0; + a24 = 1; + a25 = 1; + a11 = 1; + return 21; + } else if(((((((a24==1)&&((a22==1)&&((a14==9)&&((a0==1)&&(!(a11==1)&&((input==5)&&(((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))))))))&&(a20==1))&&(a28==1))&&!(a7==1))&&!(a25==1))){ + a14 = 8; + a29 = 5; + a25 = 1; + a7 = 1; + a19 = 1; + a11 = 1; + return -1; + } else if((!(a7==1)&&((a19==5)&&(!(a20==1)&&((((((a29==8)&&((((a11==1)&&(input==3))&&(a0==1))&&(a14==8)))&&(a28==1))&&(a24==1))&&(a22==1))&&!(a25==1)))))){ + a20 = 1; + a11 = 0; + a19 = 1; + a24 = 0; + return 23; + } else if(((a28==1)&&(!(a0==1)&&((a19==1)&&(((a7==1)&&((a11==1)&&(((a14==9)&&(((a25==1)&&((a20==1)&&(input==1)))&&(a22==1)))&&(a29==9))))&&!(a24==1)))))){ + a11 = 0; + a0 = 1; + a24 = 1; + a19 = 4; + return -1; + } else if((((((a11==1)&&((!(a24==1)&&((((a20==1)&&((a14==8)&&((((a29==7)||(a29==8))||(a29==9))&&(input==5))))&&(a7==1))&&!(a25==1)))&&(a19==5)))&&!(a0==1))&&(a28==1))&&(a22==1))){ + a25 = 1; + a24 = 1; + a29 = 9; + a19 = 1; + return -1; + } else if(((a14==8)&&(!(a7==1)&&((a22==1)&&(((a28==1)&&(!(a0==1)&&((((input==4)&&((((a29==5)&&!(a25==1))&&(a19==1))||((((a29==8)&&(a25==1))&&(a19==5))||((a19==5)&&((a29==9)&&(a25==1))))))&&!(a24==1))&&(a20==1))))&&!(a11==1)))))){ + a25 = 0; + a14 = 9; + a29 = 5; + a19 = 5; + a24 = 1; + return 21; + } else if(((a28==1)&&((a24==1)&&(!(a11==1)&&((a19==1)&&(((a0==1)&&((a22==1)&&(((((input==6)&&((a29==8)||(a29==9)))&&(a14==8))&&(a25==1))&&!(a20==1))))&&!(a7==1))))))){ + a25 = 0; + a14 = 9; + a11 = 1; + a20 = 1; + a19 = 5; + a29 = 7; + return 23; + } else if(((a7==1)&&((a20==1)&&(!(a11==1)&&(!(a0==1)&&(!(a25==1)&&((((a19==3)&&(!(a24==1)&&((((a29==6)||(a29==7))&&(input==1))&&(a28==1))))&&(a14==8))&&(a22==1)))))))){ + a24 = 1; + a19 = 4; + a14 = 9; + a29 = 9; + return 21; + } else if((!(a11==1)&&(!(a20==1)&&((((a22==1)&&(((a28==1)&&(((a19==5)&&(!(a7==1)&&((input==4)&&((a29==6)||(a29==7)))))&&(a24==1)))&&!(a0==1)))&&(a14==8))&&(a25==1))))){ + a25 = 0; + a14 = 9; + a24 = 0; + a29 = 7; + a11 = 1; + a19 = 3; + return 24; + } else if(((a28==1)&&(!(a20==1)&&(!(a0==1)&&(((((a14==9)&&((a22==1)&&(((((a19==5)&&(a29==6))||(((a19==4)&&(a29==9))||((a19==5)&&(a29==5))))&&(input==3))&&!(a24==1))))&&(a11==1))&&(a25==1))&&(a7==1)))))){ + a19 = 5; + a7 = 0; + a24 = 1; + a14 = 8; + a20 = 1; + a29 = 6; + return 23; + } else if(((a14==8)&&(!(a7==1)&&((!(a25==1)&&((a28==1)&&((a0==1)&&(!(a24==1)&&((a20==1)&&(((a11==1)&&(((a29==8)||(a29==9))&&(input==5)))&&(a19==1)))))))&&(a22==1))))){ + a25 = 1; + a24 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if(((!(a11==1)&&(((a0==1)&&((a14==8)&&((((a7==1)&&((!(a20==1)&&((input==1)&&((a29==7)||(a29==8))))&&!(a24==1)))&&(a28==1))&&(a25==1))))&&(a22==1)))&&(a19==5))){ + a29 = 6; + a14 = 9; + a24 = 1; + a19 = 1; + a25 = 0; + a20 = 1; + a7 = 0; + return 23; + } else if((((a22==1)&&(((!(a7==1)&&(!(a25==1)&&(((!(a0==1)&&(!(a24==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==6))))&&(a28==1))&&(a20==1))))&&!(a11==1))&&(a19==4)))&&(a14==8))){ + a25 = 1; + a0 = 1; + a29 = 5; + a19 = 1; + a24 = 1; + a7 = 1; + a11 = 1; + return -1; + } else if(((!(a11==1)&&((!(a0==1)&&((a7==1)&&((a24==1)&&((((a14==9)&&((a29==9)&&((a28==1)&&(input==5))))&&(a20==1))&&(a19==4)))))&&(a22==1)))&&!(a25==1))){ + a24 = 0; + a29 = 6; + a0 = 1; + a25 = 1; + a19 = 1; + return -1; + } else if((!(a24==1)&&((a7==1)&&(((a11==1)&&(((a28==1)&&((!(a20==1)&&((((((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))||((a19==2)&&(a29==6)))&&(input==5))&&(a25==1)))&&(a22==1)))&&(a0==1)))&&(a14==9))))){ + a19 = 1; + a20 = 1; + a14 = 8; + a24 = 1; + a29 = 5; + return -1; + } else if(((a22==1)&&((a7==1)&&(((a0==1)&&((a28==1)&&(!(a25==1)&&(((a29==8)&&((a20==1)&&(((input==3)&&(a19==3))&&!(a24==1))))&&!(a11==1)))))&&(a14==9))))){ + a25 = 1; + a11 = 1; + a14 = 8; + a19 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if(((!(a0==1)&&((!(a11==1)&&((((!(a20==1)&&((a7==1)&&((a19==1)&&((input==2)&&((a29==7)||(a29==8))))))&&(a28==1))&&(a22==1))&&(a24==1)))&&(a14==8)))&&(a25==1))){ + a29 = 7; + a24 = 0; + a11 = 1; + return 21; + } else if(((!(a25==1)&&((a28==1)&&((((a7==1)&&(((a20==1)&&(((a24==1)&&(((a29==6)||(a29==7))&&(input==2)))&&!(a11==1)))&&(a19==2)))&&(a22==1))&&(a14==9))))&&!(a0==1))){ + a24 = 0; + a14 = 8; + a25 = 1; + a19 = 4; + a29 = 8; + return -1; + } else if(((a28==1)&&(!(a11==1)&&((((!(a0==1)&&(((a22==1)&&((a20==1)&&((a7==1)&&((input==1)&&(a29==7)))))&&(a25==1)))&&(a14==9))&&!(a24==1))&&(a19==5))))){ + a14 = 8; + a24 = 1; + a7 = 0; + a11 = 1; + a19 = 1; + a25 = 0; + return 21; + } else if((((a19==5)&&(!(a11==1)&&(((a22==1)&&((a14==9)&&(((a20==1)&&(!(a25==1)&&(((a28==1)&&(input==6))&&!(a7==1))))&&(a24==1))))&&(a29==5))))&&!(a0==1))){ + a11 = 1; + a25 = 1; + a14 = 8; + a20 = 0; + return 21; + } else if((!(a24==1)&&(((a0==1)&&((a19==3)&&(((!(a25==1)&&(!(a20==1)&&(((a29==6)&&((input==5)&&(a14==9)))&&!(a11==1))))&&(a7==1))&&(a28==1))))&&(a22==1)))){ + a19 = 2; + a29 = 9; + a7 = 0; + a24 = 1; + a11 = 1; + a20 = 1; + return -1; + } else if(((((((a7==1)&&((a25==1)&&((a11==1)&&((((((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))&&(input==1))&&(a24==1))&&(a28==1)))))&&(a14==9))&&(a0==1))&&(a22==1))&&(a20==1))){ + a29 = 9; + a0 = 0; + a14 = 8; + a19 = 4; + a7 = 0; + a20 = 0; + return 21; + } else if((((a24==1)&&((a25==1)&&((a19==1)&&((!(a11==1)&&((a20==1)&&((a0==1)&&((a28==1)&&(!(a7==1)&&((input==5)&&((a29==5)||(a29==6))))))))&&(a22==1)))))&&(a14==8))){ + a29 = 8; + a25 = 0; + a11 = 1; + a0 = 0; + return 24; + } else if((!(a25==1)&&(!(a11==1)&&((a22==1)&&((a7==1)&&(((a14==9)&&(((((a28==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==2)))&&(a19==4))&&!(a24==1))&&(a0==1)))&&!(a20==1))))))){ + a14 = 8; + a20 = 1; + a0 = 0; + a29 = 9; + return 23; + } else if(((((!(a24==1)&&((a19==4)&&((a0==1)&&((a14==9)&&(!(a20==1)&&((a11==1)&&(!(a25==1)&&(((a29==7)||(a29==8))&&(input==1)))))))))&&(a22==1))&&(a7==1))&&(a28==1))){ + a29 = 5; + a25 = 1; + a20 = 1; + a19 = 1; + a14 = 8; + a24 = 1; + return -1; + } else if((!(a24==1)&&(((((((((((input==1)&&((a29==8)||(a29==9)))&&(a22==1))&&!(a11==1))&&(a7==1))&&(a19==4))&&!(a20==1))&&!(a0==1))&&!(a25==1))&&(a28==1))&&(a14==8)))){ + a20 = 1; + a25 = 1; + a11 = 1; + a24 = 1; + a19 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if(((!(a20==1)&&((a14==8)&&(!(a24==1)&&((a28==1)&&((((a11==1)&&((a0==1)&&((input==6)&&(((a29==9)&&(a19==2))||((a29==5)&&(a19==3))))))&&!(a25==1))&&(a7==1))))))&&(a22==1))){ + a0 = 0; + a19 = 3; + a7 = 0; + a29 = 5; + return 24; + } else if((!(a24==1)&&((a11==1)&&((a7==1)&&(((a29==8)&&((a25==1)&&(!(a20==1)&&((((a22==1)&&((input==6)&&(a19==4)))&&(a28==1))&&(a14==9)))))&&(a0==1)))))){ + a24 = 1; + a19 = 1; + a7 = 0; + return -1; + } else if(((a28==1)&&((((!(a24==1)&&((a7==1)&&(((a0==1)&&((((input==5)&&((a29==5)||(a29==6)))&&(a20==1))&&(a22==1)))&&(a19==2))))&&!(a25==1))&&!(a11==1))&&(a14==9)))){ + a19 = 3; + a29 = 9; + a20 = 0; + return 21; + } else if(((a14==9)&&(!(a7==1)&&(((a24==1)&&(!(a11==1)&&((a19==5)&&((a20==1)&&((a22==1)&&(((a28==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==1)))&&(a0==1)))))))&&(a25==1))))){ + a7 = 1; + a24 = 0; + a14 = 8; + a20 = 0; + a29 = 8; + a25 = 0; + a19 = 4; + return 24; + } else if(((!(a0==1)&&(((a28==1)&&((a22==1)&&(!(a20==1)&&((((a19==1)&&(((input==5)&&((a29==6)||(a29==7)))&&(a14==8)))&&!(a11==1))&&!(a24==1)))))&&!(a7==1)))&&(a25==1))){ + a25 = 0; + a24 = 1; + a14 = 9; + a19 = 4; + a29 = 5; + return 21; + } else if(((a14==9)&&((((((a25==1)&&((!(a20==1)&&(((((a29==6)&&(a19==3))||(((a19==2)&&(a29==9))||((a19==3)&&(a29==5))))&&(input==5))&&(a7==1)))&&(a28==1)))&&(a0==1))&&(a22==1))&&(a24==1))&&!(a11==1)))){ + a14 = 8; + a20 = 1; + a11 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((a14==9)&&(((((a19==2)&&((((((a22==1)&&((input==1)&&(a20==1)))&&!(a0==1))&&!(a7==1))&&(a11==1))&&(a28==1)))&&!(a25==1))&&(a29==9))&&!(a24==1)))){ + a29 = 5; + a19 = 1; + a24 = 1; + a14 = 8; + a0 = 1; + a7 = 1; + a25 = 1; + return -1; + } else if(((a22==1)&&(!(a24==1)&&((!(a25==1)&&(((a14==8)&&((a0==1)&&((((a28==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==5)))&&(a7==1))&&!(a11==1))))&&!(a20==1)))&&(a19==1))))){ + a19 = 2; + a24 = 1; + a20 = 1; + a29 = 6; + a11 = 1; + a0 = 0; + return 21; + } else if(((a7==1)&&(((a0==1)&&((a14==9)&&((!(a20==1)&&((a11==1)&&((a22==1)&&((((a29==7)&&(input==3))&&!(a24==1))&&(a28==1)))))&&(a25==1))))&&(a19==2)))){ + a20 = 1; + a11 = 0; + a29 = 8; + a24 = 1; + a19 = 3; + a7 = 0; + return 23; + } else if((((((a24==1)&&((a20==1)&&((a14==8)&&((a11==1)&&(((((input==1)&&(a28==1))&&!(a7==1))&&(a19==2))&&(a22==1))))))&&(a29==7))&&!(a25==1))&&!(a0==1))){ + a19 = 1; + a25 = 1; + a29 = 8; + return -1; + } else if(((!(a25==1)&&((a24==1)&&((a7==1)&&((a0==1)&&((a28==1)&&((a22==1)&&((((((a29==7)||(a29==8))&&(input==4))&&(a19==3))&&(a14==9))&&!(a20==1))))))))&&!(a11==1))){ + a25 = 1; + a20 = 1; + a29 = 6; + a11 = 1; + a19 = 2; + a0 = 0; + a14 = 8; + return 23; + } else if((((a28==1)&&((((a20==1)&&(((a25==1)&&((a29==5)&&(((a7==1)&&((input==5)&&(a22==1)))&&(a0==1))))&&(a24==1)))&&(a19==3))&&(a14==9)))&&!(a11==1))){ + a19 = 1; + a14 = 8; + a11 = 1; + return -1; + } else if((((!(a24==1)&&(((a20==1)&&(((a25==1)&&(((a11==1)&&(((input==3)&&(a29==9))&&(a28==1)))&&(a22==1)))&&(a19==5)))&&!(a0==1)))&&(a14==9))&&(a7==1))){ + a19 = 3; + a0 = 1; + a25 = 0; + a20 = 0; + a24 = 1; + return 23; + } else if((((((((a28==1)&&((a25==1)&&(((a19==1)&&((a20==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==5))))&&!(a11==1))))&&!(a0==1))&&(a14==9))&&(a24==1))&&!(a7==1))&&(a22==1))){ + a29 = 9; + a7 = 1; + a11 = 1; + a14 = 8; + return 23; + } else if((((((((a14==9)&&(!(a11==1)&&(!(a0==1)&&((a24==1)&&(!(a7==1)&&(((a29==6)||(a29==7))&&(input==1)))))))&&(a22==1))&&(a19==5))&&!(a25==1))&&(a28==1))&&(a20==1))){ + a25 = 1; + a14 = 8; + a20 = 0; + a29 = 9; + a7 = 1; + return -1; + } else if(((a28==1)&&(((a14==10)&&((a22==1)&&(((((a19==5)&&((!(a25==1)&&((a24==1)&&(!(a7==1)&&!(a20==1))))&&(a29==9)))||(((a29==5)&&((a25==1)&&(((a20==1)&&(a7==1))&&!(a24==1))))&&(a19==1)))&&(input==2))&&(a11==1))))&&(a0==1)))){ + a25 = 1; + a0 = 0; + a7 = 1; + a14 = 8; + a24 = 1; + a29 = 7; + a20 = 1; + a19 = 3; + return 24; + } else if(((((a28==1)&&(!(a24==1)&&((a14==8)&&((a29==5)&&((!(a0==1)&&((a7==1)&&(((input==3)&&(a19==3))&&(a11==1))))&&!(a20==1))))))&&(a25==1))&&(a22==1))){ + a24 = 1; + a29 = 6; + a14 = 9; + return 23; + } else if(((a24==1)&&((a22==1)&&(!(a11==1)&&((a28==1)&&((((((((((a29==8)&&(a19==2))||((a19==2)&&(a29==9)))||((a29==5)&&(a19==3)))&&(input==4))&&(a7==1))&&(a14==8))&&(a25==1))&&!(a20==1))&&!(a0==1))))))){ + a20 = 1; + a29 = 7; + a25 = 0; + a7 = 0; + a19 = 3; + a11 = 1; + a24 = 0; + return 24; + } else if(((((((a22==1)&&((!(a20==1)&&((a0==1)&&((a25==1)&&(((input==2)&&((a29==6)||(a29==7)))&&(a24==1)))))&&!(a7==1)))&&(a19==2))&&(a28==1))&&(a14==9))&&!(a11==1))){ + a19 = 5; + a20 = 1; + a24 = 0; + a29 = 8; + return 21; + } else if((((a14==10)&&((((a29==5)&&((a20==1)&&((((((input==6)&&(a7==1))&&(a0==1))&&(a22==1))&&(a19==2))&&!(a25==1))))&&(a11==1))&&(a28==1)))&&(a24==1))){ + a20 = 0; + a14 = 8; + a7 = 0; + a11 = 0; + a19 = 5; + a25 = 1; + a0 = 0; + a29 = 8; + return -1; + } else if(((a28==1)&&((((a0==1)&&(!(a25==1)&&(((a22==1)&&(!(a7==1)&&((((a19==3)&&(input==2))&&!(a24==1))&&!(a20==1))))&&!(a11==1))))&&(a14==8))&&(a29==7)))){ + a20 = 1; + a19 = 1; + a25 = 1; + a24 = 1; + a29 = 5; + a11 = 1; + a7 = 1; + return -1; + } else if((((((!(a20==1)&&((((a14==8)&&(!(a24==1)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==3))&&!(a25==1))))&&(a11==1))&&(a22==1)))&&(a19==2))&&(a28==1))&&!(a0==1))&&(a7==1))){ + a20 = 1; + a25 = 1; + a0 = 1; + a29 = 5; + a19 = 1; + a24 = 1; + return -1; + } else if((!(a24==1)&&((!(a20==1)&&(((a14==8)&&((((a22==1)&&(((input==4)&&(((a29==6)&&(a19==3))||(((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))))&&!(a0==1)))&&!(a25==1))&&(a28==1)))&&(a11==1)))&&!(a7==1)))){ + a29 = 5; + a19 = 4; + a24 = 1; + a20 = 1; + a25 = 1; + a7 = 1; + return 24; + } else if(((((!(a20==1)&&((a19==1)&&(!(a25==1)&&(((a14==8)&&((((((a29==7)||(a29==8))||(a29==9))&&(input==1))&&(a28==1))&&(a22==1)))&&(a11==1)))))&&(a7==1))&&(a0==1))&&(a24==1))){ + a24 = 0; + a25 = 1; + a29 = 5; + a19 = 3; + a7 = 0; + return 24; + } else if((((a28==1)&&(((((a20==1)&&((a29==6)&&(((a11==1)&&(!(a7==1)&&(!(a24==1)&&(input==6))))&&(a14==9))))&&(a25==1))&&(a0==1))&&(a19==1)))&&(a22==1))){ + a7 = 1; + a20 = 0; + a14 = 10; + a19 = 5; + a29 = 8; + a24 = 1; + return 24; + } else if(((a20==1)&&(((!(a24==1)&&((a25==1)&&((((((a7==1)&&(((a29==5)||(a29==6))&&(input==6)))&&(a22==1))&&(a28==1))&&!(a0==1))&&!(a11==1))))&&(a19==3))&&(a14==8)))){ + a19 = 1; + a0 = 1; + a24 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if((!(a11==1)&&(((((!(a7==1)&&(!(a0==1)&&(((((input==6)&&((a29==7)||((a29==5)||(a29==6))))&&(a28==1))&&!(a25==1))&&(a22==1))))&&(a19==3))&&(a14==9))&&!(a24==1))&&!(a20==1)))){ + a19 = 4; + a11 = 1; + a24 = 1; + a29 = 5; + a20 = 1; + a14 = 8; + a25 = 1; + a7 = 1; + return -1; + } else if(((a22==1)&&((((((!(a11==1)&&(!(a7==1)&&((((input==6)&&(a19==5))&&(a28==1))&&(a25==1))))&&!(a0==1))&&(a29==5))&&!(a24==1))&&(a14==8))&&!(a20==1)))){ + a14 = 9; + a29 = 6; + a19 = 4; + a7 = 1; + a20 = 1; + return 24; + } else if(((((((a14==9)&&((a7==1)&&(!(a24==1)&&(!(a11==1)&&((a20==1)&&((input==5)&&(((a29==6)&&(a19==2))||(((a19==1)&&(a29==9))||((a29==5)&&(a19==2))))))))))&&(a22==1))&&(a28==1))&&(a25==1))&&!(a0==1))){ + a7 = 0; + a29 = 5; + a14 = 8; + a20 = 0; + a24 = 1; + a19 = 4; + a11 = 1; + return 24; + } else if((((((a22==1)&&((a19==2)&&((((a28==1)&&((a7==1)&&(!(a20==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==3)))))&&!(a11==1))&&(a14==9))))&&!(a0==1))&&(a25==1))&&!(a24==1))){ + a29 = 9; + a19 = 3; + a0 = 1; + a25 = 0; + return -1; + } else if(((a19==5)&&((a28==1)&&(((a25==1)&&(!(a20==1)&&((((((((a29==5)||(a29==6))&&(input==1))&&(a11==1))&&!(a0==1))&&!(a7==1))&&(a22==1))&&!(a24==1))))&&(a14==8))))){ + a29 = 5; + a24 = 1; + a20 = 1; + a7 = 1; + a0 = 1; + a19 = 1; + return -1; + } else if((((a14==8)&&((!(a7==1)&&(!(a11==1)&&((a22==1)&&(!(a20==1)&&((a24==1)&&((((input==1)&&(a25==1))&&!(a0==1))&&(a28==1)))))))&&(a19==2)))&&(a29==5))){ + a7 = 1; + a11 = 1; + a0 = 1; + a20 = 1; + a19 = 1; + return -1; + } else if(((((a0==1)&&(((!(a20==1)&&((a11==1)&&(!(a25==1)&&(((((a29==5)||(a29==6))&&(input==6))&&(a14==10))&&(a24==1)))))&&(a22==1))&&(a28==1)))&&(a19==2))&&(a7==1))){ + a20 = 1; + a25 = 1; + a14 = 8; + a29 = 9; + a19 = 5; + return -1; + } else if(((a7==1)&&((((((((((a24==1)&&((input==3)&&!(a11==1)))&&!(a25==1))&&!(a0==1))&&(a28==1))&&!(a20==1))&&(a14==8))&&(a29==8))&&(a19==5))&&(a22==1)))){ + a7 = 0; + a19 = 3; + a25 = 1; + a24 = 0; + a0 = 1; + return 23; + } else if((((((!(a11==1)&&(!(a7==1)&&((a19==1)&&((!(a20==1)&&((((a29==6)||(a29==7))&&(input==4))&&(a24==1)))&&(a22==1)))))&&(a0==1))&&(a28==1))&&(a25==1))&&(a14==8))){ + a11 = 1; + a0 = 0; + a19 = 3; + a29 = 8; + a7 = 1; + return 23; + } else if((((((a7==1)&&(((((a24==1)&&(((a19==1)&&((a28==1)&&(input==2)))&&(a20==1)))&&!(a25==1))&&(a29==6))&&!(a11==1)))&&(a22==1))&&!(a0==1))&&(a14==8))){ + a11 = 1; + a29 = 5; + a25 = 1; + a0 = 1; + return -1; + } else if((((((a29==5)&&((((a11==1)&&(((!(a20==1)&&((input==6)&&(a24==1)))&&(a19==3))&&!(a25==1)))&&!(a7==1))&&(a28==1)))&&!(a0==1))&&(a22==1))&&(a14==8))){ + a25 = 1; + a7 = 1; + a19 = 1; + a20 = 1; + a0 = 1; + return -1; + } else if(((((a14==8)&&(!(a20==1)&&(((((((a22==1)&&((input==4)&&((a29==8)||(a29==9))))&&!(a7==1))&&(a11==1))&&(a28==1))&&(a19==1))&&!(a24==1))))&&!(a0==1))&&!(a25==1))){ + a29 = 8; + a7 = 1; + a19 = 4; + a20 = 1; + a24 = 1; + return 21; + } else if((((a24==1)&&(((a19==5)&&((a25==1)&&(((a7==1)&&((((a28==1)&&(((a29==6)||(a29==7))&&(input==6)))&&(a22==1))&&!(a0==1)))&&!(a11==1))))&&(a14==9)))&&!(a20==1))){ + a25 = 0; + a19 = 2; + a7 = 0; + a20 = 1; + a29 = 9; + return -1; + } else if((!(a11==1)&&((a14==8)&&((!(a0==1)&&((((a7==1)&&((((a24==1)&&((input==4)&&(((a29==6)||(a29==7))||(a29==8))))&&(a22==1))&&!(a20==1)))&&!(a25==1))&&(a19==2)))&&(a28==1))))){ + a24 = 0; + a29 = 8; + a25 = 1; + a7 = 0; + a20 = 1; + return 21; + } else if((!(a24==1)&&((a0==1)&&(!(a11==1)&&(((((a14==9)&&((a7==1)&&((a19==4)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==6))&&(a28==1)))))&&(a22==1))&&(a20==1))&&!(a25==1)))))){ + a7 = 0; + a14 = 8; + a0 = 0; + a25 = 1; + a24 = 1; + a11 = 1; + a19 = 2; + a29 = 5; + return 23; + } else if(((a28==1)&&(((((!(a11==1)&&(!(a25==1)&&((((input==4)&&(((a19==5)&&(a29==6))||(((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))))&&(a0==1))&&(a20==1))))&&(a22==1))&&(a7==1))&&(a24==1))&&(a14==8)))){ + a25 = 1; + a20 = 0; + a19 = 2; + a7 = 0; + a0 = 0; + a11 = 1; + a29 = 9; + return 21; + } else if(((a7==1)&&(((a28==1)&&((a14==8)&&(!(a24==1)&&(((a25==1)&&((((((a19==4)&&(a29==6))||(((a19==3)&&(a29==9))||((a19==4)&&(a29==5))))&&(input==5))&&(a20==1))&&!(a0==1)))&&(a11==1)))))&&(a22==1)))){ + a0 = 1; + a19 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if(((((a28==1)&&((a22==1)&&(((a24==1)&&((a0==1)&&((a29==9)&&((a19==2)&&(((input==3)&&!(a7==1))&&!(a25==1))))))&&(a11==1))))&&!(a20==1))&&(a14==10))){ + a7 = 1; + a20 = 1; + a14 = 9; + a29 = 5; + a24 = 0; + return -1; + } else if((!(a25==1)&&(((!(a7==1)&&((((a24==1)&&((a22==1)&&((((input==2)&&((a29==5)||(a29==6)))&&!(a20==1))&&(a14==8))))&&(a11==1))&&(a0==1)))&&(a28==1))&&(a19==3)))){ + a25 = 1; + a29 = 5; + a20 = 1; + a19 = 1; + a7 = 1; + return -1; + } else if(((a0==1)&&(!(a25==1)&&((((((a28==1)&&(((a22==1)&&((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))&&(input==3)))&&!(a11==1)))&&(a7==1))&&(a20==1))&&(a14==8))&&(a24==1))))){ + a7 = 0; + a19 = 2; + a11 = 1; + a29 = 5; + a0 = 0; + return 24; + } else if((((a7==1)&&((((a14==8)&&(!(a24==1)&&((((!(a20==1)&&((input==4)&&(a22==1)))&&!(a0==1))&&(a28==1))&&(a29==8))))&&!(a11==1))&&(a19==1)))&&(a25==1))){ + a20 = 1; + a29 = 5; + a24 = 1; + a11 = 1; + a0 = 1; + return -1; + } else if((((!(a11==1)&&((a29==5)&&((a20==1)&&((a22==1)&&((a0==1)&&(!(a24==1)&&(!(a7==1)&&(((a28==1)&&(input==6))&&(a25==1)))))))))&&(a14==9))&&(a19==3))){ + a11 = 1; + a14 = 8; + a24 = 1; + a7 = 1; + a19 = 1; + return -1; + } else if((((a28==1)&&((a22==1)&&(!(a20==1)&&(((a24==1)&&((a14==9)&&((input==2)&&((((!(a25==1)&&(a7==1))&&(a29==9))&&(a19==5))||(((!(a7==1)&&(a25==1))&&(a29==5))&&(a19==1))))))&&!(a0==1)))))&&!(a11==1))){ + a7 = 1; + a29 = 6; + a24 = 0; + a25 = 0; + a19 = 4; + a11 = 1; + a0 = 1; + return 24; + } else if(((a20==1)&&((((((a14==9)&&(((a11==1)&&((((input==3)&&((a29==5)||(a29==6)))&&(a25==1))&&!(a0==1)))&&(a19==5)))&&(a24==1))&&(a22==1))&&!(a7==1))&&(a28==1)))){ + a20 = 0; + a7 = 1; + a19 = 3; + a25 = 0; + a29 = 6; + a14 = 8; + return 24; + } else if(((a24==1)&&((((((((a14==9)&&((a0==1)&&((a19==1)&&((input==3)&&((a29==8)||(a29==9))))))&&!(a20==1))&&!(a25==1))&&(a28==1))&&(a11==1))&&(a22==1))&&(a7==1)))){ + a14 = 8; + a25 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if(((a19==1)&&((a22==1)&&(!(a0==1)&&(((a7==1)&&((a14==9)&&(((a20==1)&&((a11==1)&&((a28==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==1)))))&&!(a24==1))))&&!(a25==1)))))){ + a0 = 1; + a24 = 1; + a29 = 8; + a11 = 0; + a20 = 0; + return -1; + } else if(((a14==8)&&((((a19==4)&&(!(a20==1)&&(((a22==1)&&(((a28==1)&&((a7==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==6))))&&!(a25==1)))&&(a0==1))))&&!(a11==1))&&!(a24==1)))){ + a29 = 5; + a25 = 1; + a19 = 1; + a20 = 1; + a24 = 1; + a11 = 1; + return -1; + } else if((((!(a0==1)&&((a14==8)&&((((((((input==2)&&((a29==7)||(a29==8)))&&(a11==1))&&(a22==1))&&(a19==1))&&!(a7==1))&&(a24==1))&&!(a25==1))))&&!(a20==1))&&(a28==1))){ + a11 = 0; + a0 = 1; + a19 = 3; + a29 = 8; + a24 = 0; + return 23; + } else if(((a19==2)&&((((a24==1)&&(((a0==1)&&((a14==9)&&(!(a11==1)&&((a28==1)&&(((input==4)&&(((a29==7)||(a29==8))||(a29==9)))&&(a22==1))))))&&(a25==1)))&&(a20==1))&&!(a7==1)))){ + a11 = 1; + a19 = 1; + a14 = 8; + a29 = 5; + a7 = 1; + return -1; + } else if(((a25==1)&&(!(a0==1)&&((a19==5)&&((((a24==1)&&((((a14==9)&&(!(a7==1)&&((input==3)&&!(a11==1))))&&(a29==5))&&(a20==1)))&&(a22==1))&&(a28==1)))))){ + a25 = 0; + a20 = 0; + a19 = 2; + a11 = 1; + a0 = 1; + a29 = 8; + return 23; + } else if(((((a19==3)&&(!(a7==1)&&((a14==8)&&((((a0==1)&&(!(a11==1)&&((((a29==7)||(a29==8))&&(input==1))&&(a22==1))))&&(a20==1))&&(a24==1)))))&&!(a25==1))&&(a28==1))){ + a11 = 1; + a7 = 1; + a29 = 5; + a25 = 1; + a19 = 1; + return -1; + } else if((!(a25==1)&&((!(a0==1)&&((a28==1)&&((a7==1)&&((!(a20==1)&&(((a22==1)&&(((input==2)&&((a29==8)||(a29==9)))&&(a14==8)))&&(a24==1)))&&(a19==3)))))&&!(a11==1)))){ + a19 = 4; + a11 = 1; + a25 = 1; + a29 = 8; + return 23; + } else if(((a22==1)&&(!(a7==1)&&((a14==8)&&((a29==5)&&(((!(a11==1)&&(((a19==5)&&(((input==5)&&(a28==1))&&(a25==1)))&&(a0==1)))&&(a24==1))&&!(a20==1))))))){ + a11 = 1; + a7 = 1; + a25 = 0; + a14 = 9; + a29 = 6; + return 21; + } else if(((a29==5)&&((a0==1)&&(((((a22==1)&&(!(a7==1)&&((((!(a11==1)&&(input==4))&&!(a25==1))&&(a14==8))&&(a20==1))))&&(a19==4))&&!(a24==1))&&(a28==1))))){ + a29 = 7; + a25 = 1; + a14 = 9; + a19 = 1; + a7 = 1; + a24 = 1; + return 24; + } else if((((a22==1)&&((((a0==1)&&((a7==1)&&(((a11==1)&&((input==4)&&((((a19==5)&&((a29==9)&&(a25==1)))||((!(a25==1)&&(a29==5))&&(a19==1)))||((a19==1)&&((a29==6)&&!(a25==1))))))&&(a20==1))))&&(a24==1))&&(a28==1)))&&(a14==9))){ + a29 = 8; + a0 = 0; + a25 = 0; + a19 = 4; + a14 = 8; + return -1; + } else if(((((a14==8)&&(((a22==1)&&(!(a11==1)&&((((a20==1)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==4))&&!(a25==1)))&&(a19==4))&&!(a0==1))))&&(a28==1)))&&!(a7==1))&&!(a24==1))){ + a29 = 8; + a11 = 1; + a19 = 5; + a24 = 1; + a7 = 1; + return 24; + } else if((!(a25==1)&&(((a28==1)&&(!(a24==1)&&((!(a11==1)&&((((a22==1)&&((a19==4)&&((input==4)&&(((a29==6)||(a29==7))||(a29==8)))))&&!(a20==1))&&(a7==1)))&&(a14==8))))&&(a0==1)))){ + a19 = 1; + a20 = 1; + a11 = 1; + a24 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if(((((a22==1)&&(((!(a20==1)&&(!(a25==1)&&((((a19==5)&&((input==2)&&(a14==9)))&&(a24==1))&&(a0==1))))&&(a28==1))&&(a29==7)))&&!(a11==1))&&(a7==1))){ + a14 = 8; + a11 = 1; + a20 = 1; + a25 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((a22==1)&&((a28==1)&&(((a29==8)&&((a24==1)&&(((a7==1)&&(((a11==1)&&((a14==9)&&((input==6)&&(a20==1))))&&(a19==3)))&&(a25==1))))&&(a0==1))))){ + a19 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((a0==1)&&(((((!(a20==1)&&(!(a25==1)&&((((a11==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==4)))&&(a28==1))&&!(a7==1))))&&(a22==1))&&(a14==10))&&(a24==1))&&(a19==4)))){ + a25 = 1; + a11 = 0; + a19 = 2; + a29 = 6; + a7 = 1; + a14 = 9; + return 24; + } else if(((a20==1)&&((!(a25==1)&&((a22==1)&&(((a29==7)&&(((a14==9)&&((((input==2)&&(a28==1))&&!(a24==1))&&(a11==1)))&&(a19==3)))&&(a7==1))))&&(a0==1)))){ + a29 = 5; + a25 = 1; + a19 = 1; + a24 = 1; + a14 = 8; + return -1; + } else if(((!(a20==1)&&((a14==9)&&((a28==1)&&(!(a7==1)&&(!(a24==1)&&((a0==1)&&((a22==1)&&(((((a29==8)||((a29==6)||(a29==7)))&&(input==6))&&(a19==3))&&(a11==1)))))))))&&(a25==1))){ + a14 = 8; + a20 = 1; + a24 = 1; + a29 = 5; + a7 = 1; + a19 = 1; + return -1; + } else if(((((a28==1)&&((((a7==1)&&(!(a0==1)&&((a19==2)&&(((((a29==6)||(a29==7))&&(input==3))&&(a22==1))&&(a20==1)))))&&(a25==1))&&(a14==8)))&&(a11==1))&&!(a24==1))){ + a0 = 1; + a19 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if(((!(a20==1)&&((a14==9)&&(((a24==1)&&((!(a25==1)&&(((!(a0==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==3)))&&!(a11==1))&&(a22==1)))&&(a19==2)))&&(a28==1))))&&!(a7==1))){ + a0 = 1; + a7 = 1; + a29 = 9; + a11 = 1; + a24 = 0; + a19 = 3; + a25 = 1; + a20 = 1; + return -1; + } else if((((a28==1)&&(((a7==1)&&(!(a11==1)&&(((a14==9)&&((a20==1)&&(((((a29==5)||(a29==6))&&(input==4))&&(a0==1))&&!(a25==1))))&&(a24==1))))&&(a22==1)))&&(a19==4))){ + a11 = 1; + a14 = 8; + a0 = 0; + a29 = 8; + return 23; + } else if(((a24==1)&&(!(a11==1)&&((((a28==1)&&((a20==1)&&((a0==1)&&(((a14==8)&&(((input==3)&&!(a25==1))&&(a29==6)))&&!(a7==1)))))&&(a22==1))&&(a19==2))))){ + return 21; + } else if((((!(a0==1)&&(((a14==9)&&(!(a11==1)&&(((a22==1)&&((a7==1)&&((a28==1)&&((a29==8)&&(input==6)))))&&(a24==1))))&&(a20==1)))&&(a19==4))&&!(a25==1))){ + a7 = 0; + a19 = 3; + a25 = 1; + a11 = 1; + a0 = 1; + a24 = 0; + return 23; + } else if((!(a11==1)&&(!(a24==1)&&((!(a0==1)&&((a22==1)&&(((!(a7==1)&&(((a29==8)&&((input==4)&&(a28==1)))&&!(a20==1)))&&(a14==9))&&(a19==1))))&&!(a25==1))))){ + a24 = 1; + a0 = 1; + a7 = 1; + return 21; + } else if((!(a25==1)&&((a11==1)&&((a28==1)&&((a20==1)&&(((a24==1)&&((!(a7==1)&&(((a22==1)&&(((a29==5)||(a29==6))&&(input==4)))&&(a19==4)))&&(a14==8)))&&(a0==1))))))){ + a25 = 1; + a24 = 0; + a29 = 9; + a19 = 3; + a7 = 1; + return 24; + } else if(((!(a25==1)&&(((!(a0==1)&&((a28==1)&&(((a19==4)&&(((a14==9)&&((((a29==5)||(a29==6))||(a29==7))&&(input==6)))&&(a11==1)))&&(a20==1))))&&!(a24==1))&&!(a7==1)))&&(a22==1))){ + a25 = 1; + a14 = 8; + a29 = 7; + a7 = 1; + a24 = 1; + a19 = 5; + return 23; + } else if((((a22==1)&&((a29==9)&&(((((((a28==1)&&((!(a11==1)&&(input==6))&&!(a20==1)))&&!(a7==1))&&(a19==3))&&!(a25==1))&&(a24==1))&&(a14==9))))&&(a0==1))){ + a11 = 1; + a0 = 0; + a29 = 5; + a14 = 8; + a25 = 1; + return 23; + } else if(((a7==1)&&(((a14==9)&&((a28==1)&&(!(a20==1)&&((a0==1)&&(!(a25==1)&&(!(a24==1)&&(((input==2)&&((((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))||((a29==6)&&(a19==2))))&&(a22==1))))))))&&!(a11==1)))){ + a0 = 0; + a29 = 6; + a19 = 5; + a14 = 8; + a25 = 1; + return 23; + } else if((((a11==1)&&(!(a25==1)&&(((a20==1)&&(!(a24==1)&&((((a14==8)&&((a0==1)&&((input==1)&&((a29==8)||((a29==6)||(a29==7))))))&&(a22==1))&&(a28==1))))&&(a19==2))))&&!(a7==1))){ + a29 = 5; + a24 = 1; + a7 = 1; + a19 = 1; + a25 = 1; + return -1; + } else if((((((!(a20==1)&&((a24==1)&&(((a19==3)&&((((input==3)&&((a29==7)||((a29==5)||(a29==6))))&&(a0==1))&&(a14==9)))&&(a28==1))))&&(a7==1))&&(a11==1))&&(a22==1))&&!(a25==1))){ + a29 = 8; + a24 = 0; + a7 = 0; + a0 = 0; + a11 = 0; + return 23; + } else if(((a24==1)&&(!(a0==1)&&(!(a20==1)&&((a22==1)&&((a7==1)&&((a14==9)&&((((a19==5)&&(((input==4)&&((a29==6)||(a29==7)))&&!(a11==1)))&&(a25==1))&&(a28==1))))))))){ + a25 = 0; + a0 = 1; + a19 = 1; + a29 = 8; + a11 = 1; + a20 = 1; + a7 = 0; + return -1; + } else if(((((a24==1)&&((a28==1)&&((a11==1)&&(!(a20==1)&&(((a29==8)&&(((a25==1)&&((a7==1)&&(input==3)))&&(a0==1)))&&(a14==10))))))&&(a19==5))&&(a22==1))){ + a0 = 0; + a20 = 1; + a7 = 0; + a14 = 9; + a29 = 5; + a25 = 0; + return -1; + } else if(((a0==1)&&((a28==1)&&((a29==6)&&((a14==9)&&((((a24==1)&&((a19==2)&&((((a20==1)&&(input==3))&&(a11==1))&&(a7==1))))&&(a25==1))&&(a22==1))))))){ + a19 = 4; + return 24; + } else if((((((!(a24==1)&&(((!(a0==1)&&(((a11==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==5)))&&(a14==9)))&&(a28==1))&&(a7==1)))&&(a19==3))&&(a25==1))&&(a22==1))&&!(a20==1))){ + a24 = 1; + a0 = 1; + a19 = 1; + a25 = 0; + a7 = 0; + a29 = 7; + a20 = 1; + a11 = 0; + return -1; + } else if((!(a7==1)&&(((((a19==5)&&((a20==1)&&(!(a24==1)&&(!(a25==1)&&(!(a11==1)&&((((a29==8)||(a29==9))&&(input==4))&&(a0==1)))))))&&(a22==1))&&(a28==1))&&(a14==9)))){ + a20 = 0; + a19 = 1; + a14 = 8; + a24 = 1; + a0 = 0; + a29 = 7; + return 23; + } else if((((!(a11==1)&&(((a24==1)&&(((a14==9)&&(((((input==5)&&!(a7==1))&&(a19==5))&&(a28==1))&&(a20==1)))&&(a29==9)))&&(a0==1)))&&(a22==1))&&!(a25==1))){ + a11 = 1; + a25 = 1; + a14 = 8; + a19 = 3; + a20 = 0; + a0 = 0; + a29 = 5; + return 24; + } else if(((a20==1)&&(!(a0==1)&&(((a22==1)&&(!(a11==1)&&(((a14==9)&&((a24==1)&&((input==6)&&((((a29==5)&&!(a25==1))&&(a19==1))||(((a19==5)&&((a25==1)&&(a29==8)))||((a19==5)&&((a29==9)&&(a25==1))))))))&&(a28==1))))&&(a7==1))))){ + a24 = 0; + a25 = 1; + a20 = 0; + a11 = 1; + a19 = 4; + a0 = 1; + a7 = 0; + a29 = 5; + return -1; + } else if((((a28==1)&&((a14==9)&&((!(a25==1)&&((((a22==1)&&(!(a11==1)&&((((a29==7)||(a29==8))&&(input==6))&&(a20==1))))&&(a19==3))&&(a0==1)))&&(a24==1))))&&!(a7==1))){ + a11 = 1; + a14 = 8; + a29 = 7; + a0 = 0; + a20 = 0; + a19 = 4; + return 24; + } else if(((((a25==1)&&(!(a20==1)&&(!(a11==1)&&((((a22==1)&&((!(a0==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==1)))&&(a19==5)))&&(a14==8))&&(a28==1)))))&&(a7==1))&&(a24==1))){ + a29 = 5; + a11 = 1; + a20 = 1; + a0 = 1; + a19 = 1; + return -1; + } else if(((!(a0==1)&&(!(a24==1)&&((((((a29==8)&&((a14==9)&&(((a25==1)&&(input==1))&&(a7==1))))&&(a22==1))&&!(a11==1))&&(a19==3))&&(a20==1))))&&(a28==1))){ + a25 = 0; + a24 = 1; + a20 = 0; + a29 = 6; + a0 = 1; + return -1; + } else if(((!(a25==1)&&((a19==3)&&((a14==8)&&((a28==1)&&((a24==1)&&(!(a11==1)&&(!(a20==1)&&((a22==1)&&(!(a0==1)&&((input==6)&&((a29==9)||((a29==7)||(a29==8)))))))))))))&&!(a7==1))){ + a0 = 1; + a29 = 5; + a14 = 9; + a19 = 2; + return 21; + } else if((!(a11==1)&&((!(a0==1)&&(!(a24==1)&&((a14==9)&&(((a25==1)&&(((a7==1)&&(((input==2)&&((a29==7)||((a29==5)||(a29==6))))&&(a22==1)))&&!(a20==1)))&&(a28==1)))))&&(a19==2)))){ + a20 = 1; + a29 = 5; + a19 = 3; + return -1; + } else if((((a28==1)&&((((a0==1)&&(!(a11==1)&&(((((a19==5)&&(((!(a7==1)&&(a20==1))&&!(a25==1))&&(a29==9)))||((a19==1)&&(((a25==1)&&(!(a20==1)&&(a7==1)))&&(a29==5))))||((a19==1)&&(((a25==1)&&((a7==1)&&!(a20==1)))&&(a29==6))))&&(input==2))))&&(a22==1))&&(a14==8)))&&!(a24==1))){ + a19 = 1; + a11 = 1; + a25 = 1; + a7 = 1; + a24 = 1; + a20 = 1; + a0 = 0; + a29 = 8; + return 21; + } else if((!(a11==1)&&(((a19==2)&&((((a14==8)&&((!(a7==1)&&((((input==2)&&(a29==7))&&(a22==1))&&(a28==1)))&&(a20==1)))&&(a0==1))&&!(a24==1)))&&!(a25==1)))){ + a24 = 1; + a25 = 1; + a11 = 1; + a7 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if((!(a24==1)&&((a22==1)&&((!(a11==1)&&((((((a0==1)&&(((input==2)&&!(a7==1))&&(a28==1)))&&(a29==5))&&(a25==1))&&(a19==2))&&(a20==1)))&&(a14==8))))){ + a29 = 9; + a19 = 3; + a14 = 9; + a20 = 0; + a7 = 1; + a11 = 1; + return 24; + } else if((!(a11==1)&&((a24==1)&&(!(a7==1)&&((a28==1)&&((((a25==1)&&((a14==8)&&(!(a20==1)&&((a19==4)&&((input==6)&&(a22==1))))))&&(a0==1))&&(a29==8))))))){ + a19 = 1; + a29 = 5; + a20 = 1; + a7 = 1; + a11 = 1; + return -1; + } else if((((a25==1)&&(!(a7==1)&&(((a22==1)&&((((!(a24==1)&&(!(a0==1)&&(((a29==8)||(a29==9))&&(input==2))))&&(a28==1))&&(a19==4))&&(a14==8)))&&(a11==1))))&&!(a20==1))){ + a11 = 0; + a20 = 1; + a29 = 7; + return 21; + } else if((((((a24==1)&&((a19==3)&&((((((a14==8)&&((input==6)&&(a11==1)))&&(a22==1))&&(a0==1))&&(a25==1))&&!(a7==1))))&&(a29==6))&&(a28==1))&&(a20==1))){ + a29 = 8; + return 24; + } else if((!(a25==1)&&((a28==1)&&((a7==1)&&((a19==1)&&((a22==1)&&((a14==8)&&((a24==1)&&((((a0==1)&&((a29==5)&&(input==4)))&&!(a11==1))&&!(a20==1)))))))))){ + a20 = 1; + a11 = 1; + a25 = 1; + return -1; + } else if((!(a25==1)&&((a11==1)&&((a19==2)&&((a0==1)&&((a28==1)&&((a22==1)&&(((!(a24==1)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==5))&&(a20==1)))&&(a14==9))&&!(a7==1))))))))){ + a24 = 1; + a7 = 1; + a29 = 8; + a20 = 0; + return -1; + } else if((!(a24==1)&&((a14==8)&&(((((!(a25==1)&&((a28==1)&&(((a22==1)&&((input==1)&&(a29==6)))&&(a20==1))))&&!(a7==1))&&!(a0==1))&&(a19==4))&&(a11==1))))){ + a20 = 0; + a19 = 5; + a14 = 9; + a29 = 7; + a0 = 1; + a25 = 1; + return 21; + } else if(((((!(a24==1)&&((a19==5)&&((!(a20==1)&&(((a7==1)&&((a14==9)&&(((a29==6)||(a29==7))&&(input==5))))&&(a28==1)))&&!(a25==1))))&&(a11==1))&&(a22==1))&&(a0==1))){ + a29 = 8; + a14 = 8; + a25 = 1; + a19 = 2; + a24 = 1; + a0 = 0; + return -1; + } else if((((!(a11==1)&&(((a14==9)&&(!(a20==1)&&((((a28==1)&&(!(a24==1)&&(((a29==7)||(a29==8))&&(input==1))))&&!(a0==1))&&!(a25==1))))&&(a19==5)))&&(a22==1))&&!(a7==1))){ + a29 = 5; + a20 = 1; + a7 = 1; + a0 = 1; + a24 = 1; + a25 = 1; + return 21; + } else if(((a7==1)&&((((a24==1)&&((a28==1)&&((a20==1)&&((((a22==1)&&((input==1)&&(((a29==6)&&(a19==2))||(((a29==9)&&(a19==1))||((a29==5)&&(a19==2))))))&&(a14==9))&&!(a25==1)))))&&(a11==1))&&(a0==1)))){ + a19 = 4; + a11 = 0; + a24 = 0; + a20 = 0; + a29 = 7; + return 23; + } else if(((a28==1)&&((!(a11==1)&&((a14==8)&&(!(a0==1)&&((((a19==1)&&(!(a25==1)&&((a24==1)&&(((a29==7)||(a29==8))&&(input==2)))))&&!(a20==1))&&(a22==1)))))&&!(a7==1)))){ + a7 = 1; + a29 = 5; + a20 = 1; + a11 = 1; + a25 = 1; + a0 = 1; + return -1; + } else if(((a14==8)&&((a11==1)&&(((a20==1)&&((!(a25==1)&&((a19==1)&&((((((a29==6)||(a29==7))&&(input==2))&&!(a7==1))&&(a0==1))&&(a22==1))))&&!(a24==1)))&&(a28==1))))){ + a29 = 5; + a25 = 1; + a24 = 1; + a7 = 1; + return -1; + } else if(((a14==8)&&((a22==1)&&((a11==1)&&((((a25==1)&&(!(a20==1)&&((a0==1)&&((((input==5)&&(a28==1))&&(a29==9))&&(a19==4)))))&&(a7==1))&&(a24==1)))))){ + a24 = 0; + a19 = 5; + return 21; + } else if(((a14==8)&&((((((((((a11==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==3)))&&(a24==1))&&(a25==1))&&(a28==1))&&(a20==1))&&!(a7==1))&&(a22==1))&&!(a0==1))&&(a19==1)))){ + a29 = 5; + a7 = 1; + return -1; + } else if(((a22==1)&&((((!(a0==1)&&((!(a25==1)&&((a14==9)&&((((a29==6)&&(input==2))&&(a20==1))&&!(a11==1))))&&(a24==1)))&&(a7==1))&&(a19==5))&&(a28==1)))){ + a19 = 2; + a7 = 0; + a24 = 0; + a25 = 1; + a0 = 1; + a29 = 7; + return -1; + } else if(((a25==1)&&((a22==1)&&((a19==1)&&((a14==9)&&((a0==1)&&((((((a24==1)&&(((a29==5)||(a29==6))&&(input==3)))&&(a11==1))&&(a28==1))&&!(a20==1))&&!(a7==1)))))))){ + a29 = 6; + a24 = 0; + a20 = 1; + a11 = 0; + a25 = 0; + a19 = 4; + a7 = 1; + a0 = 0; + a14 = 8; + return 24; + } else if((((a19==2)&&((((!(a7==1)&&(((a20==1)&&((a14==8)&&((a0==1)&&((a28==1)&&(input==3)))))&&!(a11==1)))&&!(a25==1))&&(a22==1))&&(a29==7)))&&!(a24==1))){ + a7 = 1; + a24 = 1; + a19 = 1; + a11 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if((((a19==3)&&((a7==1)&&((((!(a20==1)&&(((((input==6)&&(a0==1))&&(a14==8))&&(a25==1))&&(a29==6)))&&(a11==1))&&(a28==1))&&(a22==1))))&&!(a24==1))){ + a0 = 0; + a29 = 5; + a19 = 5; + return 24; + } else if((!(a7==1)&&((((a0==1)&&((a28==1)&&(!(a24==1)&&((!(a11==1)&&(((((a29==5)&&(a19==3))||(((a19==2)&&(a29==8))||((a19==2)&&(a29==9))))&&(input==6))&&(a20==1)))&&(a22==1)))))&&!(a25==1))&&(a14==9)))){ + a20 = 0; + a24 = 1; + a11 = 1; + a29 = 7; + a19 = 1; + a25 = 1; + return -1; + } else if(((!(a7==1)&&((a0==1)&&(((a11==1)&&(((((a28==1)&&((a20==1)&&((input==4)&&((a29==7)||((a29==5)||(a29==6))))))&&(a14==9))&&(a19==2))&&(a22==1)))&&(a25==1))))&&(a24==1))){ + a14 = 8; + a29 = 5; + a19 = 1; + a7 = 1; + return -1; + } else if((((a0==1)&&((a28==1)&&((a20==1)&&((a24==1)&&(!(a25==1)&&((a14==9)&&((a7==1)&&((((input==4)&&(((a29==5)||(a29==6))||(a29==7)))&&(a22==1))&&(a19==5)))))))))&&!(a11==1))){ + a29 = 5; + a11 = 1; + a19 = 1; + a25 = 1; + a14 = 8; + return -1; + } else if(((a25==1)&&(((a14==9)&&((!(a0==1)&&((a19==2)&&((a28==1)&&((a20==1)&&(!(a24==1)&&(!(a11==1)&&(((a29==7)||(a29==8))&&(input==1))))))))&&(a22==1)))&&(a7==1)))){ + a14 = 8; + a24 = 1; + a0 = 1; + a29 = 5; + a11 = 1; + a19 = 1; + return -1; + } else if((((a11==1)&&(((a22==1)&&((a19==4)&&((a24==1)&&((a28==1)&&(((((input==5)&&(a0==1))&&(a14==10))&&(a25==1))&&!(a7==1))))))&&(a29==6)))&&!(a20==1))){ + a19 = 1; + a20 = 1; + a29 = 5; + a7 = 1; + a14 = 8; + return -1; + } else if((!(a24==1)&&((a19==2)&&(((a7==1)&&(((((a11==1)&&((((input==3)&&((a29==6)||(a29==7)))&&(a0==1))&&!(a25==1)))&&(a20==1))&&(a22==1))&&(a14==10)))&&(a28==1))))){ + a11 = 0; + a0 = 0; + a19 = 3; + a29 = 8; + a20 = 0; + a14 = 9; + a25 = 1; + return -1; + } else if(((((a25==1)&&((a28==1)&&(((a19==1)&&((!(a0==1)&&((((input==6)&&((a29==8)||((a29==6)||(a29==7))))&&!(a11==1))&&(a20==1)))&&(a14==8)))&&(a7==1))))&&(a24==1))&&(a22==1))){ + a29 = 5; + a11 = 1; + a0 = 1; + return -1; + } else if(((a28==1)&&(((!(a7==1)&&(((((((a14==8)&&((input==5)&&((a29==6)||(a29==7))))&&!(a24==1))&&!(a11==1))&&!(a0==1))&&(a19==4))&&(a20==1)))&&(a22==1))&&(a25==1)))){ + a24 = 1; + a19 = 5; + a25 = 0; + a11 = 1; + a7 = 1; + a29 = 9; + return 24; + } else if((((((((a11==1)&&((a19==3)&&((a14==8)&&((a24==1)&&(((a28==1)&&(input==4))&&(a29==5))))))&&(a0==1))&&(a22==1))&&!(a25==1))&&(a20==1))&&!(a7==1))){ + a20 = 0; + a29 = 6; + return 21; + } else if(((a24==1)&&(((a28==1)&&((((a25==1)&&(!(a20==1)&&(((a11==1)&&(((((a19==4)&&(a29==8))||((a19==4)&&(a29==9)))||((a19==5)&&(a29==5)))&&(input==5)))&&(a0==1))))&&(a14==8))&&!(a7==1)))&&(a22==1)))){ + a19 = 4; + a29 = 9; + a25 = 0; + a11 = 0; + a7 = 1; + return 21; + } else if((((a24==1)&&(!(a20==1)&&((!(a11==1)&&(((a14==9)&&(((((input==5)&&(a22==1))&&(a29==5))&&!(a7==1))&&(a19==2)))&&(a28==1)))&&!(a0==1))))&&(a25==1))){ + a19 = 5; + a11 = 1; + a29 = 8; + a7 = 1; + a14 = 8; + return 23; + } else if(((a14==8)&&((!(a24==1)&&((a22==1)&&(((a0==1)&&((((((a29==8)&&(input==2))&&(a28==1))&&!(a11==1))&&(a20==1))&&!(a7==1)))&&!(a25==1))))&&(a19==2)))){ + a20 = 0; + a14 = 9; + a19 = 1; + a11 = 1; + a29 = 5; + return 24; + } else if(((((a24==1)&&(((!(a11==1)&&((a29==7)&&(((!(a0==1)&&((input==2)&&(a19==3)))&&!(a25==1))&&(a20==1))))&&(a22==1))&&!(a7==1)))&&(a28==1))&&(a14==9))){ + a0 = 1; + a7 = 1; + a29 = 5; + a11 = 1; + a25 = 1; + a14 = 8; + a19 = 1; + return -1; + } else if((!(a25==1)&&((a19==1)&&((!(a11==1)&&((a7==1)&&(!(a0==1)&&(((a24==1)&&((!(a20==1)&&((input==3)&&((a29==7)||((a29==5)||(a29==6)))))&&(a28==1)))&&(a14==8)))))&&(a22==1))))){ + a29 = 7; + a14 = 9; + a25 = 1; + a7 = 0; + a19 = 3; + a20 = 1; + a0 = 1; + return 23; + } else if(((a22==1)&&(((((a14==9)&&(((((((input==4)&&((a29==8)||(a29==9)))&&(a20==1))&&!(a24==1))&&!(a11==1))&&(a28==1))&&!(a0==1)))&&(a25==1))&&(a19==4))&&(a7==1)))){ + a11 = 1; + a25 = 0; + a7 = 0; + a24 = 1; + a20 = 0; + a29 = 7; + a19 = 3; + return -1; + } else if((((a14==8)&&(!(a11==1)&&((((a20==1)&&(((a22==1)&&(((((a29==6)||(a29==7))&&(input==5))&&!(a24==1))&&(a28==1)))&&(a0==1)))&&(a19==3))&&!(a7==1))))&&!(a25==1))){ + a29 = 7; + a0 = 0; + a19 = 1; + a11 = 1; + a20 = 0; + a24 = 1; + return 23; + } else if((((((((((((((a29==8)||((a29==6)||(a29==7)))&&(input==5))&&(a7==1))&&(a14==9))&&(a22==1))&&(a19==5))&&(a25==1))&&(a24==1))&&(a28==1))&&(a0==1))&&(a20==1))&&!(a11==1))){ + a11 = 1; + a29 = 5; + return 23; + } else if(((a24==1)&&(((a28==1)&&((a11==1)&&(((!(a0==1)&&((((a19==3)&&((a22==1)&&(input==3)))&&(a14==9))&&(a29==6)))&&(a7==1))&&(a25==1))))&&(a20==1)))){ + a20 = 0; + a29 = 9; + a24 = 0; + a19 = 4; + a25 = 0; + a0 = 1; + return -1; + } else if(((a22==1)&&((((!(a0==1)&&(((((a25==1)&&(!(a20==1)&&((input==3)&&((a29==6)||(a29==7)))))&&!(a7==1))&&(a28==1))&&(a19==5)))&&(a14==9))&&!(a24==1))&&(a11==1)))){ + a20 = 1; + a24 = 1; + a14 = 8; + a29 = 5; + a0 = 1; + a7 = 1; + a19 = 1; + return -1; + } else if(((((((a28==1)&&((a24==1)&&((((a14==9)&&((((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))&&(input==2)))&&!(a20==1))&&!(a0==1))))&&(a22==1))&&(a25==1))&&(a7==1))&&!(a11==1))){ + a20 = 1; + a0 = 1; + a14 = 8; + a11 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if((((((!(a25==1)&&((a19==3)&&((a14==8)&&((!(a0==1)&&(((input==4)&&((a29==7)||(a29==8)))&&!(a7==1)))&&(a20==1)))))&&(a22==1))&&!(a11==1))&&(a28==1))&&!(a24==1))){ + a0 = 1; + a20 = 0; + a29 = 8; + a7 = 1; + a19 = 2; + return 24; + } else if((((a22==1)&&(((a29==8)&&((a7==1)&&((!(a24==1)&&(!(a25==1)&&(((a0==1)&&(!(a20==1)&&(input==3)))&&(a28==1))))&&(a19==2))))&&!(a11==1)))&&(a14==8))){ + return 21; + } else if((((!(a0==1)&&((a28==1)&&(!(a7==1)&&((((a22==1)&&((((((a29==6)||(a29==7))||(a29==8))&&(input==1))&&(a20==1))&&!(a11==1)))&&(a24==1))&&(a19==5)))))&&!(a25==1))&&(a14==8))){ + a7 = 1; + a11 = 1; + a19 = 2; + a24 = 0; + a29 = 7; + return -1; + } else if(((a11==1)&&(((((!(a7==1)&&((a20==1)&&((a14==8)&&((((a29==5)&&(input==1))&&(a24==1))&&(a19==5)))))&&!(a0==1))&&(a22==1))&&(a28==1))&&(a25==1)))){ + a7 = 1; + a19 = 1; + a0 = 1; + return -1; + } else if((((((a7==1)&&(((a25==1)&&((!(a0==1)&&(((a14==9)&&((input==4)&&((a29==5)||(a29==6))))&&!(a11==1)))&&(a28==1)))&&!(a20==1)))&&!(a24==1))&&(a19==5))&&(a22==1))){ + a29 = 9; + a20 = 1; + a0 = 1; + return -1; + } else if((!(a25==1)&&(((!(a24==1)&&(!(a20==1)&&(!(a0==1)&&((a14==9)&&((((input==4)&&((((a29==8)&&(a19==1))||((a29==9)&&(a19==1)))||((a29==5)&&(a19==2))))&&(a28==1))&&(a11==1))))))&&!(a7==1))&&(a22==1)))){ + a7 = 1; + a19 = 1; + a25 = 1; + a29 = 5; + a14 = 8; + a20 = 1; + a24 = 1; + a0 = 1; + return -1; + } else if(((a22==1)&&(((a11==1)&&((!(a24==1)&&((a14==10)&&((a0==1)&&((a20==1)&&((((input==6)&&((a29==6)||(a29==7)))&&(a28==1))&&(a7==1))))))&&!(a25==1)))&&(a19==2)))){ + a29 = 6; + a19 = 3; + a20 = 0; + a24 = 1; + a7 = 0; + a0 = 0; + a14 = 8; + return 21; + } else if((!(a0==1)&&((a11==1)&&(((a7==1)&&((a22==1)&&(!(a25==1)&&((a28==1)&&((a14==8)&&(((((a29==5)&&(a19==3))||(((a19==2)&&(a29==8))||((a19==2)&&(a29==9))))&&(input==5))&&!(a20==1)))))))&&!(a24==1))))){ + a29 = 5; + a0 = 1; + a25 = 1; + a19 = 1; + a24 = 1; + a20 = 1; + return -1; + } else if((((a7==1)&&(((a14==9)&&(((((((input==5)&&(((a19==3)&&(a29==9))||((a29==5)&&(a19==4))))&&(a28==1))&&!(a20==1))&&(a11==1))&&(a24==1))&&!(a0==1)))&&(a22==1)))&&(a25==1))){ + a19 = 4; + a29 = 9; + a14 = 8; + a20 = 1; + return 21; + } else if(((a19==3)&&(((a0==1)&&((!(a24==1)&&((((a29==6)&&((((input==4)&&!(a20==1))&&(a14==8))&&!(a25==1)))&&(a28==1))&&(a7==1)))&&(a22==1)))&&(a11==1)))){ + a7 = 0; + a29 = 7; + a19 = 1; + a0 = 0; + a25 = 1; + a24 = 1; + return 21; + } else if((((a25==1)&&(((!(a0==1)&&((a28==1)&&((a19==5)&&((a22==1)&&((a24==1)&&((a20==1)&&((input==2)&&((a29==5)||(a29==6)))))))))&&(a11==1))&&(a7==1)))&&(a14==9))){ + a19 = 1; + a29 = 5; + a0 = 1; + a14 = 8; + return -1; + } else if((((((a22==1)&&((!(a7==1)&&((a28==1)&&(((a0==1)&&((a19==3)&&((input==2)&&(((a29==7)||(a29==8))||(a29==9)))))&&!(a11==1))))&&(a24==1)))&&(a14==8))&&(a20==1))&&(a25==1))){ + a20 = 0; + a0 = 0; + a29 = 5; + a11 = 1; + return 21; + } else if(((!(a7==1)&&((!(a11==1)&&((((a28==1)&&((a19==5)&&(((a22==1)&&((input==3)&&(((a29==5)||(a29==6))||(a29==7))))&&!(a0==1))))&&!(a24==1))&&(a25==1)))&&(a20==1)))&&(a14==9))){ + a0 = 1; + a19 = 4; + a29 = 7; + a24 = 1; + a11 = 1; + a25 = 0; + return -1; + } else if((!(a7==1)&&((a28==1)&&((((((a19==4)&&(((a24==1)&&((((a29==7)||(a29==8))&&(input==5))&&!(a0==1)))&&(a22==1)))&&!(a25==1))&&(a11==1))&&(a20==1))&&(a14==9))))){ + a7 = 1; + a11 = 0; + a14 = 8; + a19 = 5; + a29 = 6; + a24 = 0; + return -1; + } else if((!(a20==1)&&(!(a7==1)&&((((a22==1)&&((((a25==1)&&((((input==4)&&((a29==6)||(a29==7)))&&(a28==1))&&(a14==9)))&&(a19==2))&&!(a11==1)))&&(a0==1))&&(a24==1))))){ + a11 = 1; + a19 = 1; + a7 = 1; + a20 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if((((a25==1)&&(((a19==2)&&((a29==5)&&(((((a14==9)&&((!(a11==1)&&(input==2))&&(a28==1)))&&!(a7==1))&&(a24==1))&&(a22==1))))&&!(a20==1)))&&(a0==1))){ + a11 = 1; + a20 = 1; + a19 = 3; + return 21; + } else if((((a28==1)&&(!(a0==1)&&((a14==9)&&((a22==1)&&((a20==1)&&((((((((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))||((a29==5)&&(a19==5)))&&(input==4))&&!(a11==1))&&(a24==1))&&(a25==1)))))))&&(a7==1))){ + a24 = 0; + a19 = 3; + a0 = 1; + a29 = 9; + return 24; + } else if(((a28==1)&&((a0==1)&&((a14==9)&&((a25==1)&&((!(a7==1)&&((((((input==5)&&(a19==4))&&(a24==1))&&!(a20==1))&&(a29==8))&&(a22==1)))&&!(a11==1))))))){ + a11 = 1; + a0 = 0; + a20 = 1; + a25 = 0; + a29 = 6; + a19 = 1; + a14 = 8; + return 24; + } else if(((((a22==1)&&((((((a19==1)&&((((input==2)&&(a24==1))&&(a7==1))&&!(a0==1)))&&(a25==1))&&(a29==6))&&(a28==1))&&!(a11==1)))&&(a14==9))&&(a20==1))){ + a14 = 8; + a11 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if((((((!(a11==1)&&(((!(a25==1)&&(((((a19==4)&&(a29==6))||(((a29==9)&&(a19==3))||((a19==4)&&(a29==5))))&&(input==5))&&(a28==1)))&&!(a0==1))&&(a24==1)))&&(a20==1))&&(a14==9))&&(a7==1))&&(a22==1))){ + a25 = 1; + a29 = 6; + a19 = 2; + a14 = 8; + a24 = 0; + return 21; + } else if((!(a0==1)&&(((a11==1)&&((a24==1)&&((a14==8)&&(((a28==1)&&((a19==2)&&(((((a29==7)||(a29==8))&&(input==6))&&(a22==1))&&(a25==1))))&&(a20==1)))))&&!(a7==1)))){ + a11 = 0; + a0 = 1; + a20 = 0; + a29 = 7; + a24 = 0; + return -1; + } else if((((a14==9)&&((a0==1)&&((a11==1)&&((!(a25==1)&&((((((input==5)&&(a24==1))&&(a19==5))&&!(a20==1))&&(a28==1))&&(a29==5)))&&!(a7==1)))))&&(a22==1))){ + a14 = 8; + a20 = 1; + a25 = 1; + a0 = 0; + a7 = 1; + a29 = 9; + return 21; + } else if((((a22==1)&&(((a24==1)&&(!(a7==1)&&((a14==8)&&((((input==6)&&(((((a25==1)&&(a29==9))&&(a19==5))||((a19==1)&&((a29==5)&&!(a25==1))))||((!(a25==1)&&(a29==6))&&(a19==1))))&&(a28==1))&&(a0==1)))))&&!(a20==1)))&&!(a11==1))){ + a11 = 1; + a14 = 9; + a19 = 2; + a25 = 1; + a29 = 9; + return 23; + } else if(((!(a0==1)&&(((a20==1)&&(((a28==1)&&((!(a11==1)&&((((((a29==5)||(a29==6))||(a29==7))&&(input==2))&&!(a25==1))&&(a22==1)))&&(a24==1)))&&(a14==8)))&&(a19==3)))&&(a7==1))){ + a19 = 1; + a25 = 1; + a29 = 5; + a11 = 1; + a0 = 1; + return -1; + } else if(((a22==1)&&((((!(a11==1)&&(((((a19==2)&&((a14==9)&&((input==4)&&((a29==6)||(a29==7)))))&&(a0==1))&&!(a7==1))&&(a24==1)))&&(a28==1))&&!(a25==1))&&!(a20==1)))){ + a19 = 5; + a7 = 1; + a29 = 6; + return 23; + } else if((((a19==2)&&((a25==1)&&((a0==1)&&((a28==1)&&(!(a11==1)&&(!(a7==1)&&((a22==1)&&(((a24==1)&&((a20==1)&&(input==6)))&&(a29==5)))))))))&&(a14==8))){ + a29 = 6; + a25 = 0; + a11 = 1; + a19 = 5; + a7 = 1; + a0 = 0; + return 21; + } else if(((a14==10)&&((((((!(a25==1)&&((!(a20==1)&&((a11==1)&&((input==5)&&((a29==7)||((a29==5)||(a29==6))))))&&(a24==1)))&&!(a7==1))&&(a19==4))&&(a28==1))&&(a22==1))&&(a0==1)))){ + a24 = 0; + a7 = 1; + a20 = 1; + a0 = 0; + a14 = 8; + a29 = 8; + a11 = 0; + return 21; + } else if(((((((a14==9)&&((((!(a0==1)&&((input==1)&&(((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))))&&(a20==1))&&(a25==1))&&(a24==1)))&&(a28==1))&&!(a11==1))&&(a22==1))&&(a7==1))){ + a19 = 2; + a29 = 7; + return -1; + } else if((((a28==1)&&(((a22==1)&&((a0==1)&&(((!(a11==1)&&(((a14==8)&&((input==4)&&(a29==6)))&&(a7==1)))&&(a25==1))&&(a19==4))))&&(a24==1)))&&(a20==1))){ + a0 = 0; + a19 = 1; + a11 = 1; + return 23; + } else if(((((((a22==1)&&(((((((a20==1)&&(input==3))&&!(a7==1))&&(a29==9))&&(a28==1))&&(a24==1))&&(a19==4)))&&(a14==9))&&(a0==1))&&!(a11==1))&&!(a25==1))){ + a20 = 0; + a29 = 6; + a19 = 1; + a0 = 0; + a14 = 8; + a11 = 1; + a7 = 1; + return 24; + } else if((!(a25==1)&&((a7==1)&&((a14==8)&&((a28==1)&&((a0==1)&&(!(a11==1)&&((((a19==5)&&(((input==2)&&((a29==8)||(a29==9)))&&(a24==1)))&&(a22==1))&&!(a20==1))))))))){ + a0 = 0; + a11 = 1; + a29 = 6; + a19 = 4; + return 23; + } else if(((a14==10)&&(!(a25==1)&&((a28==1)&&(((a0==1)&&(!(a7==1)&&((a22==1)&&(((a19==1)&&((a29==6)&&((a11==1)&&(input==6))))&&(a24==1)))))&&(a20==1)))))){ + a0 = 0; + a14 = 8; + a29 = 9; + a11 = 0; + a20 = 0; + a19 = 2; + a24 = 0; + return -1; + } else if(((!(a7==1)&&(((((((((a19==1)&&(((a29==5)||(a29==6))&&(input==5)))&&(a20==1))&&!(a25==1))&&!(a11==1))&&(a0==1))&&(a28==1))&&!(a24==1))&&(a14==9)))&&(a22==1))){ + a11 = 1; + a29 = 5; + a7 = 1; + a25 = 1; + a14 = 8; + a24 = 1; + return -1; + } else if((((a28==1)&&(((a14==8)&&(((a11==1)&&(((((((a29==5)&&(a19==5))||(((a29==8)&&(a19==4))||((a29==9)&&(a19==4))))&&(input==5))&&!(a7==1))&&!(a20==1))&&(a0==1)))&&!(a24==1)))&&(a22==1)))&&!(a25==1))){ + a7 = 1; + a29 = 5; + a20 = 1; + a19 = 1; + a25 = 1; + a24 = 1; + return -1; + } else if(((((((a24==1)&&(((((a19==2)&&((((a29==8)||(a29==9))&&(input==4))&&(a22==1)))&&(a28==1))&&(a11==1))&&!(a25==1)))&&!(a7==1))&&(a20==1))&&!(a0==1))&&(a14==9))){ + a25 = 1; + a29 = 5; + a7 = 1; + a0 = 1; + a14 = 8; + a19 = 1; + return -1; + } else if(((((a29==8)&&((((((a28==1)&&((((a24==1)&&(input==2))&&(a25==1))&&(a19==2)))&&(a14==9))&&(a20==1))&&(a11==1))&&(a7==1)))&&!(a0==1))&&(a22==1))){ + a0 = 1; + a7 = 0; + a11 = 0; + a20 = 0; + a29 = 9; + a24 = 0; + a25 = 0; + return -1; + } else if(((a25==1)&&(!(a24==1)&&((a11==1)&&((a14==8)&&((a22==1)&&((a28==1)&&(((a7==1)&&((((input==6)&&(((a29==5)||(a29==6))||(a29==7)))&&!(a0==1))&&(a19==2)))&&!(a20==1))))))))){ + a24 = 1; + a29 = 7; + a14 = 9; + a19 = 1; + return 23; + } else if(((!(a7==1)&&(((((((a11==1)&&(!(a24==1)&&((a28==1)&&((input==2)&&(((a29==7)||(a29==8))||(a29==9))))))&&(a14==9))&&(a19==4))&&(a0==1))&&(a20==1))&&!(a25==1)))&&(a22==1))){ + a24 = 1; + a25 = 1; + a29 = 5; + a19 = 1; + a14 = 8; + a7 = 1; + return -1; + } else if(((a28==1)&&((((((a29==9)&&((((a11==1)&&((a19==1)&&((a25==1)&&(input==2))))&&(a20==1))&&(a24==1)))&&(a7==1))&&(a22==1))&&!(a0==1))&&(a14==8)))){ + a11 = 0; + a29 = 6; + a24 = 0; + a7 = 0; + a20 = 0; + a0 = 1; + a25 = 0; + a19 = 4; + return 24; + } else if(((a28==1)&&((a19==4)&&(((((!(a0==1)&&(!(a7==1)&&((a14==8)&&(!(a24==1)&&((input==1)&&((a29==8)||(a29==9)))))))&&!(a25==1))&&(a22==1))&&(a11==1))&&(a20==1))))){ + a0 = 1; + a11 = 0; + a20 = 0; + a19 = 1; + a29 = 9; + return 21; + } else if(((a14==8)&&((((a29==9)&&((a19==3)&&((((a25==1)&&(((!(a0==1)&&(input==2))&&(a24==1))&&(a22==1)))&&(a28==1))&&(a7==1))))&&(a11==1))&&(a20==1)))){ + a7 = 0; + a19 = 1; + a29 = 6; + return 23; + } else if(((a20==1)&&((a14==8)&&((((((!(a11==1)&&(((input==2)&&(((a19==3)&&(a29==5))||(((a29==8)&&(a19==2))||((a19==2)&&(a29==9)))))&&!(a0==1)))&&(a28==1))&&(a22==1))&&(a25==1))&&(a7==1))&&(a24==1))))){ + a19 = 5; + a29 = 9; + a11 = 1; + return 24; + } else if((((a22==1)&&(((a0==1)&&(((a28==1)&&(((a20==1)&&(((a14==9)&&((input==5)&&(a29==8)))&&(a24==1)))&&(a7==1)))&&(a25==1)))&&(a11==1)))&&(a19==5))){ + a11 = 0; + a29 = 6; + a20 = 0; + a19 = 2; + a25 = 0; + a0 = 0; + a14 = 8; + return 23; + } return calculate_output19(input); + } + + int calculate_output19(int input) { + if((((a22==1)&&((((a20==1)&&((!(a11==1)&&(((((input==4)&&((a29==7)||((a29==5)||(a29==6))))&&(a25==1))&&!(a7==1))&&(a14==9)))&&(a24==1)))&&!(a0==1))&&(a19==1)))&&(a28==1))){ + a19 = 5; + a0 = 1; + a7 = 1; + a29 = 9; + return 21; + } else if((((a22==1)&&((a24==1)&&((a29==6)&&(((((a14==9)&&(!(a0==1)&&((a28==1)&&((input==1)&&(a25==1)))))&&!(a20==1))&&(a7==1))&&(a11==1)))))&&(a19==2))){ + a20 = 1; + a29 = 8; + a19 = 5; + a7 = 0; + a0 = 1; + a14 = 8; + return 23; + } else if((((a19==2)&&(((a29==6)&&(((a25==1)&&(!(a7==1)&&((!(a0==1)&&(((a14==9)&&(input==3))&&(a24==1)))&&!(a20==1))))&&!(a11==1)))&&(a28==1)))&&(a22==1))){ + a29 = 5; + a7 = 1; + a11 = 1; + a20 = 1; + a14 = 8; + a19 = 1; + a0 = 1; + return -1; + } else if((((a29==6)&&(((((!(a24==1)&&(((a20==1)&&(((a14==9)&&(input==5))&&(a22==1)))&&(a28==1)))&&!(a25==1))&&(a19==4))&&(a0==1))&&(a7==1)))&&!(a11==1))){ + a24 = 1; + a20 = 0; + a11 = 1; + a7 = 0; + a19 = 5; + a14 = 8; + a29 = 8; + a25 = 1; + a0 = 0; + return 24; + } else if((((a19==4)&&(((a29==6)&&(((a14==9)&&(((!(a20==1)&&(((input==3)&&(a7==1))&&!(a0==1)))&&(a11==1))&&!(a25==1)))&&(a24==1)))&&(a28==1)))&&(a22==1))){ + a7 = 0; + a24 = 0; + a14 = 8; + a19 = 3; + return -1; + } else if(((a11==1)&&(((a22==1)&&((!(a0==1)&&((a14==8)&&((!(a24==1)&&(!(a25==1)&&(((input==5)&&((a29==8)||(a29==9)))&&(a28==1))))&&(a7==1))))&&(a19==4)))&&(a20==1)))){ + a24 = 1; + a29 = 5; + a25 = 1; + a0 = 1; + a19 = 1; + return -1; + } else if((!(a24==1)&&(!(a0==1)&&((a22==1)&&(!(a7==1)&&(!(a25==1)&&(((a28==1)&&((!(a20==1)&&((a14==8)&&(((a29==8)||(a29==9))&&(input==6))))&&(a19==2)))&&!(a11==1)))))))){ + a19 = 5; + a29 = 6; + a11 = 1; + a20 = 1; + a24 = 1; + return -1; + } else if((((a24==1)&&((((((a14==8)&&(((a22==1)&&((a28==1)&&((a20==1)&&(input==2))))&&!(a25==1)))&&(a0==1))&&(a29==9))&&!(a11==1))&&!(a7==1)))&&(a19==1))){ + a25 = 1; + a29 = 5; + a7 = 1; + a11 = 1; + return -1; + } else if(((a11==1)&&(!(a25==1)&&(!(a0==1)&&(!(a24==1)&&(!(a20==1)&&((((a28==1)&&((((a7==1)&&(input==3))&&(a29==7))&&(a22==1)))&&(a19==1))&&(a14==9)))))))){ + a20 = 1; + a24 = 1; + a19 = 4; + a14 = 8; + return 23; + } else if(((a19==5)&&((a14==8)&&(!(a0==1)&&(((!(a20==1)&&((a25==1)&&((!(a24==1)&&(!(a7==1)&&(((a29==5)||(a29==6))&&(input==4))))&&(a22==1))))&&(a11==1))&&(a28==1)))))){ + a19 = 3; + a29 = 7; + a7 = 1; + a24 = 1; + return 24; + } else if((((((a0==1)&&(!(a24==1)&&((a19==2)&&((a20==1)&&((a11==1)&&((a22==1)&&((a28==1)&&((a14==8)&&(input==5)))))))))&&!(a25==1))&&!(a7==1))&&(a29==5))){ + a7 = 1; + a24 = 1; + a25 = 1; + a19 = 1; + return -1; + } else if((((a28==1)&&((((a19==4)&&(((((((input==1)&&(a25==1))&&(a20==1))&&!(a11==1))&&(a14==8))&&!(a7==1))&&(a29==5)))&&(a22==1))&&(a24==1)))&&(a0==1))){ + a0 = 0; + a29 = 7; + a25 = 0; + a24 = 0; + a19 = 2; + return 23; + } else if(((((a24==1)&&((a14==9)&&((a7==1)&&((((a11==1)&&((a22==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==5))&&(a19==5))))&&!(a25==1))&&(a20==1)))))&&(a0==1))&&(a28==1))){ + a24 = 0; + a29 = 8; + a19 = 2; + a11 = 0; + a25 = 1; + a20 = 0; + a0 = 0; + return 24; + } else if(((!(a11==1)&&((((a14==8)&&(((a22==1)&&((a0==1)&&((a28==1)&&(((input==3)&&((a29==6)||(a29==7)))&&!(a25==1)))))&&(a19==1)))&&(a20==1))&&!(a24==1)))&&!(a7==1))){ + a25 = 1; + a20 = 0; + a11 = 1; + a19 = 4; + a14 = 9; + a29 = 5; + return 21; + } else if(((!(a20==1)&&((!(a11==1)&&((a14==8)&&(!(a24==1)&&((a28==1)&&((a22==1)&&((((input==1)&&((a29==8)||(a29==9)))&&(a19==2))&&!(a7==1)))))))&&!(a25==1)))&&!(a0==1))){ + a29 = 7; + a19 = 5; + a14 = 9; + a20 = 1; + a25 = 1; + a7 = 1; + return 21; + } else if(((((a24==1)&&((a25==1)&&(((a7==1)&&((a19==3)&&((!(a11==1)&&((a22==1)&&((input==1)&&(((a29==6)||(a29==7))||(a29==8)))))&&(a14==9))))&&(a20==1))))&&(a0==1))&&(a28==1))){ + a14 = 8; + a19 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if(((((a0==1)&&(((((a28==1)&&((a24==1)&&(((((a29==7)||((a29==5)||(a29==6)))&&(input==3))&&(a7==1))&&!(a25==1))))&&(a14==8))&&!(a20==1))&&!(a11==1)))&&(a22==1))&&(a19==5))){ + a7 = 0; + a11 = 1; + a19 = 1; + a20 = 1; + a29 = 6; + a14 = 9; + return 23; + } else if((((a28==1)&&((a22==1)&&(((a7==1)&&((((((((a29==9)||((a29==7)||(a29==8)))&&(input==4))&&!(a20==1))&&!(a0==1))&&(a11==1))&&(a25==1))&&(a19==1)))&&(a14==8))))&&(a24==1))){ + a25 = 0; + a14 = 9; + a20 = 1; + a7 = 0; + a19 = 2; + a11 = 0; + a29 = 5; + a0 = 1; + a24 = 0; + return 21; + } else if(((a19==3)&&(!(a0==1)&&((a20==1)&&((a14==8)&&((((a22==1)&&(((((input==2)&&((a29==7)||(a29==8)))&&!(a24==1))&&!(a11==1))&&!(a7==1)))&&(a28==1))&&!(a25==1))))))){ + a24 = 1; + a7 = 1; + a11 = 1; + a29 = 9; + a19 = 4; + return 21; + } else if((((a29==5)&&((a19==1)&&((((((a14==8)&&((a22==1)&&(((input==2)&&!(a24==1))&&!(a7==1))))&&(a28==1))&&(a25==1))&&(a20==1))&&!(a11==1))))&&!(a0==1))){ + a29 = 9; + a19 = 5; + a24 = 1; + a25 = 0; + return -1; + } else if((((a14==9)&&(((a24==1)&&((a11==1)&&((!(a7==1)&&(((input==3)&&(((a19==1)&&(!(a25==1)&&(a29==5)))||((((a25==1)&&(a29==8))&&(a19==5))||(((a29==9)&&(a25==1))&&(a19==5)))))&&(a20==1)))&&(a28==1))))&&!(a0==1)))&&(a22==1))){ + a0 = 1; + a20 = 0; + a29 = 7; + a19 = 2; + a25 = 0; + return 24; + } else if((((a0==1)&&(((a7==1)&&((a19==1)&&(((a28==1)&&((!(a20==1)&&((a24==1)&&((input==2)&&((a29==9)||((a29==7)||(a29==8))))))&&(a22==1)))&&(a11==1))))&&(a14==8)))&&(a25==1))){ + a20 = 1; + a29 = 5; + return -1; + } else if((!(a11==1)&&(((a28==1)&&((a0==1)&&((!(a24==1)&&((a22==1)&&(!(a7==1)&&(((((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))&&(input==6))&&!(a20==1)))))&&!(a25==1))))&&(a14==9)))){ + a29 = 9; + a14 = 8; + a11 = 1; + a19 = 3; + a24 = 1; + a0 = 0; + a7 = 1; + return 23; + } else if(((a28==1)&&(((a25==1)&&((a7==1)&&((a20==1)&&((a19==2)&&((a14==9)&&((a24==1)&&((a11==1)&&(((input==3)&&((a29==6)||(a29==7)))&&(a22==1)))))))))&&!(a0==1)))){ + a0 = 1; + a14 = 8; + a19 = 1; + a29 = 5; + return -1; + } else if((((a28==1)&&((a24==1)&&((a20==1)&&(((a22==1)&&(!(a11==1)&&((a14==9)&&(!(a0==1)&&(((((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))||((a19==2)&&(a29==6)))&&(input==1))))))&&!(a7==1)))))&&!(a25==1))){ + a14 = 8; + a29 = 9; + a7 = 1; + a24 = 0; + a19 = 5; + return -1; + } else if((!(a7==1)&&((!(a0==1)&&((((((a29==7)&&((a19==5)&&((a24==1)&&((input==5)&&(a22==1)))))&&(a20==1))&&(a25==1))&&(a11==1))&&(a28==1)))&&(a14==9)))){ + a29 = 9; + a0 = 1; + a20 = 0; + return 23; + } else if((!(a24==1)&&((a0==1)&&((!(a11==1)&&(!(a20==1)&&((a22==1)&&((a28==1)&&((((a19==1)&&((input==3)&&(((a29==5)||(a29==6))||(a29==7))))&&(a25==1))&&(a14==8))))))&&!(a7==1))))){ + a25 = 0; + a7 = 1; + a29 = 8; + a19 = 2; + a14 = 9; + a24 = 1; + return 21; + } else if(((!(a20==1)&&((a28==1)&&((a24==1)&&((a19==1)&&((a11==1)&&((a14==8)&&((!(a7==1)&&(!(a0==1)&&(((a29==5)||(a29==6))&&(input==3))))&&(a22==1))))))))&&!(a25==1))){ + a19 = 2; + a29 = 9; + a25 = 1; + return 21; + } else if(((a7==1)&&((a29==9)&&((a0==1)&&((a24==1)&&((a19==2)&&((!(a11==1)&&(((((input==3)&&(a28==1))&&(a14==8))&&(a22==1))&&!(a20==1)))&&(a25==1)))))))){ + a29 = 6; + a25 = 0; + a0 = 0; + a24 = 0; + a7 = 0; + a19 = 1; + return 24; + } else if(((a11==1)&&(((((a25==1)&&((((a22==1)&&(((a14==9)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==5)))&&!(a0==1)))&&!(a24==1))&&(a19==3)))&&!(a7==1))&&(a20==1))&&(a28==1)))){ + a19 = 4; + a0 = 1; + a20 = 0; + a25 = 0; + a29 = 5; + a11 = 0; + a14 = 8; + return 24; + } else if(((a24==1)&&(!(a7==1)&&((((((a25==1)&&((a28==1)&&(!(a11==1)&&(((input==1)&&(a29==8))&&!(a0==1)))))&&(a22==1))&&(a19==5))&&!(a20==1))&&(a14==8))))){ + a19 = 3; + a24 = 0; + a14 = 9; + a29 = 9; + a11 = 1; + a25 = 0; + return 21; + } else if(((a14==8)&&((((a29==7)&&((((a22==1)&&((!(a24==1)&&(((input==6)&&!(a25==1))&&(a20==1)))&&!(a7==1)))&&(a0==1))&&(a19==5)))&&(a11==1))&&(a28==1)))){ + a0 = 0; + a29 = 6; + a19 = 1; + return 24; + } else if(((((a28==1)&&(((((((a7==1)&&((a22==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==6))))&&(a11==1))&&(a14==9))&&!(a0==1))&&(a24==1))&&!(a20==1)))&&!(a25==1))&&(a19==3))){ + a14 = 8; + a29 = 7; + return 21; + } else if((!(a11==1)&&((((a19==5)&&((!(a7==1)&&(((a14==8)&&(((a22==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==5)))&&(a28==1)))&&!(a25==1)))&&(a24==1)))&&(a20==1))&&!(a0==1)))){ + a19 = 2; + a20 = 0; + a14 = 9; + a7 = 1; + a29 = 5; + a25 = 1; + a24 = 0; + a11 = 1; + return 21; + } else if(((((a11==1)&&((((a22==1)&&((!(a20==1)&&((a25==1)&&((input==1)&&((((a19==4)&&(a29==8))||((a29==9)&&(a19==4)))||((a29==5)&&(a19==5))))))&&(a28==1)))&&(a7==1))&&!(a24==1)))&&!(a0==1))&&(a14==8))){ + a29 = 8; + a20 = 1; + a7 = 0; + a24 = 1; + a19 = 5; + return 21; + } else if(((((a22==1)&&((!(a24==1)&&(((a14==9)&&((a20==1)&&(!(a25==1)&&(((input==2)&&(((a29==6)||(a29==7))||(a29==8)))&&(a11==1)))))&&(a19==1)))&&!(a7==1)))&&(a28==1))&&!(a0==1))){ + a24 = 1; + a29 = 5; + a7 = 1; + a0 = 1; + a11 = 0; + a20 = 0; + a19 = 2; + a25 = 1; + return 21; + } else if(((a28==1)&&((a19==5)&&(!(a7==1)&&(((((a14==9)&&((a25==1)&&(((a11==1)&&((input==6)&&((a29==7)||((a29==5)||(a29==6)))))&&!(a24==1))))&&(a22==1))&&(a20==1))&&(a0==1)))))){ + a29 = 7; + a20 = 0; + a0 = 0; + a14 = 8; + return -1; + } else if(((((((((a20==1)&&((a22==1)&&(((a28==1)&&((input==4)&&((a29==6)||(a29==7))))&&(a14==8))))&&!(a24==1))&&!(a7==1))&&!(a25==1))&&(a19==1))&&(a11==1))&&(a0==1))){ + a0 = 0; + a7 = 1; + a29 = 8; + return 23; + } else if(((a14==8)&&((a7==1)&&(((!(a20==1)&&((((a22==1)&&(!(a24==1)&&(((input==3)&&(((a29==7)||(a29==8))||(a29==9)))&&!(a0==1))))&&!(a25==1))&&(a19==1)))&&!(a11==1))&&(a28==1))))){ + a24 = 1; + a29 = 5; + a25 = 1; + a11 = 1; + a20 = 1; + a0 = 1; + return -1; + } else if(((a14==8)&&((a24==1)&&((a20==1)&&(((((!(a11==1)&&((((input==3)&&(a28==1))&&(a22==1))&&!(a7==1)))&&(a0==1))&&(a19==5))&&(a29==7))&&(a25==1)))))){ + a29 = 8; + a19 = 4; + a7 = 1; + a11 = 1; + a0 = 0; + return 21; + } else if((((a14==8)&&(!(a7==1)&&(((a20==1)&&((a0==1)&&((a28==1)&&(((a19==1)&&(((input==1)&&((a29==7)||(a29==8)))&&!(a25==1)))&&(a22==1)))))&&(a24==1))))&&!(a11==1))){ + a7 = 1; + a25 = 1; + a0 = 0; + a20 = 0; + a24 = 0; + a29 = 8; + return 24; + } else if(((a25==1)&&((!(a7==1)&&(((!(a24==1)&&((a20==1)&&(((a19==2)&&((((a29==8)||(a29==9))&&(input==1))&&(a22==1)))&&!(a11==1))))&&(a28==1))&&(a0==1)))&&(a14==9)))){ + a25 = 0; + a29 = 6; + a24 = 1; + a7 = 1; + a11 = 1; + a19 = 1; + return 21; + } else if(((((a28==1)&&((a22==1)&&(!(a0==1)&&((a19==2)&&((a14==9)&&((((((a29==7)||((a29==5)||(a29==6)))&&(input==4))&&!(a20==1))&&(a7==1))&&(a24==1)))))))&&(a11==1))&&!(a25==1))){ + a25 = 1; + a14 = 8; + a29 = 6; + a11 = 0; + return 23; + } else if(((((a28==1)&&((a22==1)&&(((!(a7==1)&&(((a24==1)&&((((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))&&(input==3)))&&(a14==8)))&&!(a0==1))&&(a25==1))))&&(a20==1))&&(a11==1))){ + a24 = 0; + a14 = 9; + a19 = 3; + a7 = 1; + a11 = 0; + a0 = 1; + a25 = 0; + a29 = 9; + return 21; + } else if(((a29==8)&&((a28==1)&&((a25==1)&&((a22==1)&&((!(a0==1)&&((a11==1)&&(((a7==1)&&(((input==1)&&(a19==2))&&(a24==1)))&&(a14==9))))&&(a20==1))))))){ + a7 = 0; + a14 = 8; + a29 = 5; + return 24; + } else if(((((((!(a20==1)&&(((a11==1)&&(((a14==10)&&((input==1)&&((a29==8)||((a29==6)||(a29==7)))))&&(a22==1)))&&!(a7==1)))&&!(a25==1))&&(a19==2))&&(a24==1))&&(a28==1))&&(a0==1))){ + a29 = 9; + a19 = 4; + a0 = 0; + a14 = 9; + a11 = 0; + a7 = 1; + a20 = 1; + a24 = 0; + return -1; + } else if((!(a25==1)&&(((a19==5)&&(!(a24==1)&&(((a22==1)&&((a20==1)&&(!(a11==1)&&((!(a0==1)&&((input==6)&&(a28==1)))&&(a29==7)))))&&!(a7==1))))&&(a14==9)))){ + a19 = 2; + a14 = 8; + a20 = 0; + a7 = 1; + a0 = 1; + a24 = 1; + return 23; + } else if(((a28==1)&&((!(a25==1)&&((a22==1)&&((((!(a7==1)&&((((((a29==8)&&(a19==1))||((a19==1)&&(a29==9)))||((a19==2)&&(a29==5)))&&(input==6))&&!(a11==1)))&&(a14==8))&&(a24==1))&&!(a0==1))))&&(a20==1)))){ + a19 = 3; + a0 = 1; + a25 = 1; + a11 = 1; + a29 = 9; + return 24; + } else if(((a24==1)&&((a20==1)&&(((a22==1)&&((!(a25==1)&&((!(a11==1)&&((((((a19==1)&&(a29==8))||((a19==1)&&(a29==9)))||((a29==5)&&(a19==2)))&&(input==1))&&(a0==1)))&&(a28==1)))&&!(a7==1)))&&(a14==9))))){ + a0 = 0; + a20 = 0; + a19 = 1; + a14 = 8; + a29 = 5; + a11 = 1; + return -1; + } else if(((!(a20==1)&&(((((a14==8)&&(!(a11==1)&&((((((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))&&(input==3))&&(a22==1))&&!(a25==1))))&&!(a0==1))&&!(a24==1))&&(a28==1)))&&!(a7==1))){ + a29 = 5; + a25 = 1; + a20 = 1; + a7 = 1; + a19 = 1; + a11 = 1; + a24 = 1; + a0 = 1; + return -1; + } else if(((a14==8)&&((a11==1)&&((a28==1)&&(((a25==1)&&((a7==1)&&((a22==1)&&((a0==1)&&(!(a20==1)&&((a24==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==3))))))))&&(a19==5)))))){ + a20 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a0==1)&&((((a14==8)&&((((a19==5)&&((!(a25==1)&&(!(a24==1)&&((!(a20==1)&&(a11==1))&&!(a7==1))))&&(a29==9)))||((((a25==1)&&(((!(a11==1)&&(a20==1))&&(a7==1))&&(a24==1)))&&(a29==5))&&(a19==1)))&&(input==1)))&&(a28==1))&&(a22==1)))){ + a20 = 0; + a0 = 0; + a19 = 5; + a7 = 1; + a11 = 0; + a29 = 5; + a24 = 1; + a25 = 1; + return 24; + } else if(((((a29==8)&&((a11==1)&&((a20==1)&&((a24==1)&&(((!(a25==1)&&(((a14==9)&&(input==4))&&(a0==1)))&&(a22==1))&&(a19==1))))))&&!(a7==1))&&(a28==1))){ + a7 = 1; + a29 = 9; + a0 = 0; + a14 = 8; + a19 = 3; + return 23; + } else if(((a22==1)&&(!(a20==1)&&((a24==1)&&((((!(a7==1)&&((a28==1)&&((a14==8)&&(!(a25==1)&&((input==1)&&((a29==8)||(a29==9)))))))&&(a19==4))&&(a11==1))&&!(a0==1)))))){ + a29 = 5; + a7 = 1; + a19 = 3; + a25 = 1; + return 21; + } else if(((a28==1)&&((((((a19==5)&&(((a0==1)&&((a14==8)&&(((input==2)&&((a29==7)||((a29==5)||(a29==6))))&&(a11==1))))&&!(a24==1)))&&!(a7==1))&&(a25==1))&&(a22==1))&&(a20==1)))){ + a29 = 5; + a7 = 1; + a24 = 1; + a19 = 1; + return -1; + } else if(((a20==1)&&((!(a11==1)&&((a28==1)&&((a14==9)&&((a22==1)&&(!(a25==1)&&((((a0==1)&&(((a29==5)||(a29==6))&&(input==3)))&&!(a24==1))&&(a19==2)))))))&&!(a7==1)))){ + a11 = 1; + a29 = 5; + a0 = 0; + a25 = 1; + a20 = 0; + a14 = 8; + a19 = 5; + return -1; + } else if((((a11==1)&&(((((a19==3)&&((a14==9)&&((a29==5)&&(((a24==1)&&((a28==1)&&(input==4)))&&!(a7==1)))))&&(a25==1))&&!(a0==1))&&(a22==1)))&&(a20==1))){ + a20 = 0; + a0 = 1; + a25 = 0; + a19 = 1; + return 24; + } else if(((a11==1)&&(!(a20==1)&&((a24==1)&&((a28==1)&&((!(a7==1)&&(((a25==1)&&(((a0==1)&&(((a29==7)||(a29==8))&&(input==4)))&&(a14==8)))&&(a19==2)))&&(a22==1))))))){ + a20 = 1; + a11 = 0; + a19 = 4; + a29 = 8; + a25 = 0; + return 24; + } else if(((a14==8)&&((((a19==2)&&((a22==1)&&((((a20==1)&&((!(a25==1)&&((input==4)&&(a0==1)))&&!(a11==1)))&&!(a7==1))&&(a28==1))))&&(a29==5))&&(a24==1)))){ + a0 = 0; + a11 = 1; + a25 = 1; + a29 = 6; + a19 = 1; + return 24; + } else if(((a28==1)&&((((!(a20==1)&&(!(a24==1)&&((a11==1)&&((((a19==1)&&((a29==5)&&((a25==1)&&!(a7==1))))||(((((a7==1)&&!(a25==1))&&(a29==8))&&(a19==5))||(((a29==9)&&(!(a25==1)&&(a7==1)))&&(a19==5))))&&(input==1)))))&&(a14==9))&&(a22==1))&&!(a0==1)))){ + a29 = 9; + a7 = 0; + a25 = 1; + a0 = 1; + a19 = 4; + return -1; + } else if((((a28==1)&&((((a11==1)&&((!(a24==1)&&(((a29==6)&&(((input==3)&&(a0==1))&&(a19==4)))&&(a14==9)))&&!(a25==1)))&&(a22==1))&&!(a20==1)))&&(a7==1))){ + a11 = 0; + a7 = 0; + a29 = 7; + a14 = 8; + return 23; + } else if((!(a0==1)&&(!(a20==1)&&((a24==1)&&(((a25==1)&&((a14==9)&&(((a11==1)&&(!(a7==1)&&((((a29==5)&&(a19==3))||(((a29==8)&&(a19==2))||((a19==2)&&(a29==9))))&&(input==3))))&&(a28==1))))&&(a22==1)))))){ + a0 = 1; + a19 = 2; + a24 = 0; + a11 = 0; + a20 = 1; + a29 = 8; + return -1; + } else if((((((a28==1)&&((a22==1)&&((!(a7==1)&&((((a20==1)&&(!(a0==1)&&(input==1)))&&(a14==8))&&(a11==1)))&&(a25==1))))&&!(a24==1))&&(a29==5))&&(a19==1))){ + a29 = 8; + a7 = 1; + a24 = 1; + a25 = 0; + a14 = 9; + a19 = 2; + return 23; + } else if((((a22==1)&&((!(a7==1)&&(!(a0==1)&&((a14==8)&&(((a19==3)&&(((a25==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==6)))&&(a28==1)))&&!(a24==1)))))&&(a20==1)))&&(a11==1))){ + a7 = 1; + a0 = 1; + a19 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if((((((!(a25==1)&&((((a22==1)&&((((input==4)&&((a29==6)||(a29==7)))&&(a19==2))&&(a14==8)))&&(a0==1))&&!(a24==1)))&&(a28==1))&&(a11==1))&&(a20==1))&&(a7==1))){ + a0 = 0; + a29 = 6; + a24 = 1; + return 21; + } else if(((!(a25==1)&&((((!(a20==1)&&(((((a11==1)&&(((a29==5)||(a29==6))&&(input==6)))&&!(a7==1))&&(a19==3))&&(a22==1)))&&(a24==1))&&(a14==8))&&(a28==1)))&&(a0==1))){ + a19 = 1; + a25 = 1; + a20 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if(((!(a25==1)&&(!(a24==1)&&(!(a0==1)&&((a22==1)&&((!(a11==1)&&((a28==1)&&((((((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))||((a29==6)&&(a19==2)))&&(input==3))&&!(a7==1))))&&!(a20==1))))))&&(a14==9))){ + a20 = 1; + a29 = 5; + a19 = 1; + a11 = 1; + a14 = 8; + a25 = 1; + a24 = 1; + a7 = 1; + a0 = 1; + return -1; + } else if((((a22==1)&&(((!(a24==1)&&(!(a20==1)&&((!(a7==1)&&(!(a11==1)&&((a0==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==6)))))&&(a28==1))))&&(a14==8))&&(a25==1)))&&(a19==4))){ + a24 = 1; + a29 = 8; + a25 = 0; + a20 = 1; + a11 = 1; + return 24; + } else if(((a14==9)&&((a28==1)&&((((a0==1)&&((a29==6)&&(((((a25==1)&&(!(a7==1)&&(input==5)))&&(a19==3))&&(a24==1))&&(a11==1))))&&(a20==1))&&(a22==1))))){ + a14 = 8; + a20 = 0; + a29 = 7; + a19 = 1; + a11 = 0; + a0 = 0; + return -1; + } else if(((!(a20==1)&&((a22==1)&&(!(a0==1)&&((a24==1)&&(((a19==2)&&((a14==8)&&(((((a29==8)||(a29==9))&&(input==5))&&(a28==1))&&(a11==1))))&&!(a25==1))))))&&!(a7==1))){ + a14 = 9; + a11 = 0; + a24 = 0; + a19 = 1; + a0 = 1; + a25 = 1; + a29 = 9; + return 21; + } else if((!(a7==1)&&((!(a25==1)&&((a28==1)&&((!(a24==1)&&(((a29==6)&&((a14==8)&&(!(a0==1)&&((a22==1)&&(input==3)))))&&(a19==3)))&&!(a20==1))))&&!(a11==1)))){ + a24 = 1; + a20 = 1; + a29 = 5; + a11 = 1; + a19 = 5; + return 23; + } else if((((a7==1)&&((((((a28==1)&&((a19==1)&&((a20==1)&&(!(a25==1)&&((input==2)&&((a29==7)||((a29==5)||(a29==6))))))))&&(a14==9))&&(a22==1))&&!(a24==1))&&(a11==1)))&&!(a0==1))){ + a0 = 1; + a29 = 8; + return -1; + } else if((((a7==1)&&((((((a25==1)&&((a20==1)&&((a28==1)&&((a14==8)&&((a19==5)&&(input==2))))))&&(a24==1))&&(a29==7))&&(a22==1))&&!(a0==1)))&&(a11==1))){ + a19 = 4; + a20 = 0; + a14 = 9; + a25 = 0; + a0 = 1; + a7 = 0; + a11 = 0; + a29 = 8; + return 24; + } else if(((!(a7==1)&&(((a11==1)&&((((a28==1)&&((a14==9)&&((a22==1)&&(((input==6)&&(a19==3))&&(a29==5)))))&&!(a0==1))&&(a24==1)))&&(a25==1)))&&(a20==1))){ + a29 = 7; + a20 = 0; + a19 = 2; + a25 = 0; + a11 = 0; + a0 = 1; + return 21; + } else if((!(a20==1)&&((a28==1)&&(!(a24==1)&&((a7==1)&&(!(a25==1)&&(((((!(a0==1)&&(((a29==6)||(a29==7))&&(input==1)))&&(a11==1))&&(a22==1))&&(a14==9))&&(a19==5)))))))){ + a24 = 1; + a14 = 8; + a7 = 0; + a29 = 9; + a20 = 1; + a25 = 1; + a19 = 2; + return 23; + } else if((((a22==1)&&((a19==1)&&((a7==1)&&((a28==1)&&((a14==8)&&((!(a25==1)&&(!(a11==1)&&(!(a20==1)&&((input==6)&&(((a29==7)||(a29==8))||(a29==9))))))&&!(a0==1)))))))&&!(a24==1))){ + a25 = 1; + a24 = 1; + a7 = 0; + a19 = 2; + a14 = 9; + a29 = 6; + return 23; + } else if((((!(a7==1)&&((((a25==1)&&(((a20==1)&&(((((a19==4)&&(a29==5))||(((a19==3)&&(a29==8))||((a29==9)&&(a19==3))))&&(input==6))&&!(a11==1)))&&(a28==1)))&&!(a0==1))&&(a22==1)))&&(a14==9))&&(a24==1))){ + a29 = 8; + a7 = 1; + a19 = 1; + a20 = 0; + a0 = 1; + a25 = 0; + return 21; + } else if((((a7==1)&&((((a22==1)&&(((((a29==8)&&(!(a20==1)&&((a11==1)&&(input==4))))&&!(a0==1))&&(a28==1))&&(a19==5)))&&(a14==9))&&(a24==1)))&&!(a25==1))){ + a29 = 5; + a20 = 1; + a19 = 4; + return -1; + } else if((((a14==9)&&(!(a24==1)&&((a20==1)&&((a22==1)&&((a11==1)&&((!(a0==1)&&((a28==1)&&(((a7==1)&&(input==3))&&(a25==1))))&&(a29==9)))))))&&(a19==1))){ + a24 = 1; + a14 = 8; + a29 = 5; + a0 = 1; + return -1; + } else if(((a25==1)&&((a28==1)&&(((a11==1)&&((a24==1)&&((a0==1)&&((a14==9)&&((a22==1)&&(((((a29==8)||((a29==6)||(a29==7)))&&(input==4))&&!(a20==1))&&!(a7==1)))))))&&(a19==5))))){ + a25 = 0; + a24 = 0; + a14 = 8; + a29 = 7; + a19 = 3; + a7 = 1; + a11 = 0; + return 21; + } else if((((((a20==1)&&(((a22==1)&&(((((a11==1)&&((input==2)&&!(a7==1)))&&(a24==1))&&(a29==9))&&(a14==10)))&&(a0==1)))&&(a19==2))&&(a28==1))&&(a25==1))){ + a29 = 7; + a14 = 8; + a0 = 0; + a19 = 3; + a25 = 0; + a20 = 0; + return 23; + } else if((((a14==9)&&((a25==1)&&(((a0==1)&&((!(a24==1)&&((a28==1)&&((((input==6)&&((a29==8)||((a29==6)||(a29==7))))&&(a20==1))&&!(a7==1))))&&(a11==1)))&&(a22==1))))&&(a19==3))){ + a24 = 1; + a20 = 0; + a14 = 8; + a29 = 7; + a19 = 4; + a0 = 0; + return 21; + } else if(((a22==1)&&((!(a0==1)&&(((a7==1)&&((!(a24==1)&&((a20==1)&&((((input==2)&&((a29==8)||(a29==9)))&&(a19==3))&&(a28==1))))&&(a14==9)))&&(a11==1)))&&!(a25==1)))){ + a29 = 7; + a14 = 8; + a7 = 0; + a25 = 1; + a20 = 0; + a24 = 1; + a19 = 1; + return 23; + } else if(((a24==1)&&(!(a11==1)&&((a22==1)&&((!(a25==1)&&((((((((a19==2)&&(a29==6))||(((a19==1)&&(a29==9))||((a29==5)&&(a19==2))))&&(input==2))&&(a28==1))&&(a14==9))&&!(a0==1))&&(a20==1)))&&!(a7==1)))))){ + a19 = 1; + a29 = 5; + a11 = 1; + a7 = 1; + a0 = 1; + a14 = 8; + a25 = 1; + return -1; + } else if(((a20==1)&&(!(a11==1)&&(!(a7==1)&&(((a28==1)&&((a24==1)&&(((a14==9)&&((((a19==1)&&((a29==5)&&!(a25==1)))||((((a29==8)&&(a25==1))&&(a19==5))||((a19==5)&&((a29==9)&&(a25==1)))))&&(input==1)))&&(a22==1))))&&(a0==1)))))){ + a20 = 0; + a7 = 1; + a25 = 1; + a11 = 1; + a29 = 8; + a19 = 2; + return 21; + } else if((((a29==9)&&(((a28==1)&&(!(a7==1)&&((!(a20==1)&&(((((input==4)&&!(a24==1))&&!(a11==1))&&(a22==1))&&!(a0==1)))&&(a14==9))))&&(a19==5)))&&(a25==1))){ + a14 = 8; + a29 = 8; + a19 = 2; + a24 = 1; + a20 = 1; + return 24; + } else if((!(a25==1)&&((a0==1)&&((a28==1)&&(((a24==1)&&(((a22==1)&&((!(a11==1)&&(((input==1)&&((a29==8)||((a29==6)||(a29==7))))&&(a14==8)))&&(a7==1)))&&!(a20==1)))&&(a19==3)))))){ + a25 = 1; + a29 = 6; + a11 = 1; + a7 = 0; + a20 = 1; + a19 = 1; + a14 = 9; + return 24; + } else if(((a14==9)&&(((!(a24==1)&&((!(a11==1)&&(((!(a20==1)&&((a19==2)&&(((a29==8)||(a29==9))&&(input==5))))&&!(a0==1))&&!(a25==1)))&&(a28==1)))&&!(a7==1))&&(a22==1)))){ + a7 = 1; + a19 = 4; + a20 = 1; + a29 = 8; + a11 = 1; + a24 = 1; + a14 = 8; + return 23; + } else if((!(a24==1)&&(!(a25==1)&&((!(a11==1)&&(((a19==2)&&(((a14==9)&&((!(a0==1)&&((input==3)&&((a29==5)||(a29==6))))&&(a22==1)))&&(a7==1)))&&(a28==1)))&&(a20==1))))){ + a24 = 1; + a19 = 4; + a7 = 0; + a25 = 1; + a29 = 9; + return -1; + } else if(((a11==1)&&(((a7==1)&&(((a29==5)&&(((a22==1)&&((a20==1)&&((a0==1)&&((!(a25==1)&&(input==4))&&(a24==1)))))&&(a28==1)))&&(a14==10)))&&(a19==2)))){ + a19 = 4; + a14 = 8; + a0 = 0; + a20 = 0; + return 24; + } else if(((a22==1)&&(!(a25==1)&&((!(a0==1)&&((!(a20==1)&&(((((a28==1)&&((input==5)&&(a29==5)))&&(a19==4))&&(a14==9))&&!(a24==1)))&&(a11==1)))&&(a7==1))))){ + a25 = 1; + a24 = 1; + a14 = 8; + a20 = 1; + a19 = 1; + a0 = 1; + return -1; + } else if(((((a14==8)&&((a7==1)&&((a22==1)&&((a28==1)&&(((a24==1)&&((((input==3)&&((a29==6)||(a29==7)))&&!(a0==1))&&!(a11==1)))&&(a19==4))))))&&(a20==1))&&(a25==1))){ + a19 = 1; + a29 = 5; + a11 = 1; + a0 = 1; + return -1; + } else if(((a20==1)&&(((a24==1)&&(((a7==1)&&(!(a0==1)&&((a14==9)&&((((a25==1)&&(((a29==5)||(a29==6))&&(input==6)))&&(a28==1))&&(a19==1)))))&&(a11==1)))&&(a22==1)))){ + a14 = 8; + a11 = 0; + a20 = 0; + a19 = 2; + a25 = 0; + a29 = 5; + return -1; + } else if((!(a24==1)&&(((a20==1)&&((((a25==1)&&((a28==1)&&((a19==1)&&((a29==5)&&(((input==4)&&(a22==1))&&(a14==9))))))&&(a11==1))&&!(a7==1)))&&(a0==1)))){ + a11 = 0; + a19 = 4; + a29 = 7; + return 23; + } else if(((((((((a11==1)&&(((a0==1)&&((a28==1)&&((a19==2)&&(input==2))))&&(a25==1)))&&(a22==1))&&!(a7==1))&&(a29==7))&&(a20==1))&&(a14==8))&&!(a24==1))){ + a0 = 0; + a20 = 0; + a29 = 8; + a19 = 1; + a24 = 1; + return 21; + } else if(((a14==8)&&(!(a11==1)&&((a20==1)&&(((a25==1)&&(((((a29==7)&&(((input==6)&&(a24==1))&&(a0==1)))&&(a22==1))&&!(a7==1))&&(a19==5)))&&(a28==1)))))){ + a19 = 2; + a0 = 0; + a29 = 6; + a11 = 1; + return 21; + } else if((((a24==1)&&(!(a7==1)&&(((a14==9)&&(!(a11==1)&&((((a22==1)&&((((a29==8)||(a29==9))&&(input==6))&&!(a20==1)))&&(a0==1))&&(a28==1))))&&(a25==1))))&&(a19==1))){ + a11 = 1; + a25 = 0; + a7 = 1; + a20 = 1; + a24 = 0; + a29 = 6; + return 24; + } else if(((((a20==1)&&(((((a7==1)&&(((a14==9)&&((input==6)&&(((a29==5)&&(a19==2))||(((a19==1)&&(a29==8))||((a29==9)&&(a19==1))))))&&(a24==1)))&&(a28==1))&&!(a0==1))&&(a25==1)))&&(a22==1))&&(a11==1))){ + a0 = 1; + a29 = 5; + a14 = 8; + a19 = 1; + return -1; + } else if(((((a20==1)&&(((a28==1)&&(((a14==8)&&(!(a11==1)&&(((((a29==7)||(a29==8))&&(input==3))&&(a22==1))&&!(a25==1))))&&(a19==5)))&&!(a24==1)))&&(a0==1))&&(a7==1))){ + a19 = 1; + a11 = 1; + a29 = 5; + a25 = 1; + a24 = 1; + return -1; + } else if((((((a29==6)&&(((a20==1)&&(((((a7==1)&&((a19==1)&&(input==4)))&&!(a11==1))&&(a22==1))&&!(a0==1)))&&(a24==1)))&&!(a25==1))&&(a14==8))&&(a28==1))){ + a0 = 1; + a19 = 3; + a24 = 0; + a20 = 0; + a29 = 9; + return 24; + } else if((((a28==1)&&(!(a0==1)&&(!(a25==1)&&((a19==5)&&((a22==1)&&((((a7==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==3))&&!(a24==1)))&&(a11==1))&&(a14==8)))))))&&(a20==1))){ + a29 = 6; + a14 = 9; + a24 = 1; + a19 = 2; + return 23; + } else if(((a19==2)&&((a22==1)&&((!(a0==1)&&((a20==1)&&(!(a25==1)&&((a14==8)&&((a7==1)&&(((a24==1)&&((input==5)&&(((a29==6)||(a29==7))||(a29==8))))&&(a28==1)))))))&&(a11==1))))){ + a19 = 1; + a0 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if(((a14==8)&&((a20==1)&&(!(a7==1)&&(((((a24==1)&&(((a11==1)&&(!(a25==1)&&((input==3)&&((a29==9)||((a29==7)||(a29==8))))))&&(a28==1)))&&(a22==1))&&(a19==5))&&(a0==1)))))){ + a24 = 0; + a7 = 1; + a29 = 9; + a19 = 3; + return 21; + } else if((!(a20==1)&&((a28==1)&&((a24==1)&&(!(a25==1)&&(((((((input==3)&&(((a19==3)&&(a29==9))||((a19==4)&&(a29==5))))&&(a22==1))&&(a0==1))&&(a7==1))&&(a11==1))&&(a14==10))))))){ + a25 = 1; + a19 = 1; + a29 = 5; + a20 = 1; + a14 = 8; + return -1; + } else if((!(a11==1)&&((a28==1)&&((a24==1)&&((a22==1)&&((!(a0==1)&&((input==2)&&((((a29==6)&&((a25==1)&&(!(a20==1)&&(a7==1))))&&(a19==1))||(((a19==5)&&((a29==9)&&((!(a7==1)&&(a20==1))&&!(a25==1))))||(((a29==5)&&((a25==1)&&(!(a20==1)&&(a7==1))))&&(a19==1))))))&&(a14==8))))))){ + a7 = 1; + a20 = 1; + a19 = 1; + a0 = 1; + a11 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if((!(a25==1)&&(((((a22==1)&&(((a14==9)&&((a7==1)&&((a28==1)&&((a19==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==1))))))&&(a11==1)))&&(a24==1))&&(a20==1))&&!(a0==1)))){ + a29 = 5; + a25 = 1; + a0 = 1; + a14 = 8; + return -1; + } else if(((((((!(a25==1)&&((a11==1)&&(((a28==1)&&((a19==5)&&((input==1)&&(((a29==6)||(a29==7))||(a29==8)))))&&(a22==1))))&&(a7==1))&&(a24==1))&&(a14==8))&&!(a20==1))&&(a0==1))){ + a19 = 4; + a20 = 1; + a29 = 8; + a11 = 0; + return 24; + } else if((((a0==1)&&((((!(a24==1)&&(!(a20==1)&&((((((a29==6)||(a29==7))&&(input==1))&&(a7==1))&&(a11==1))&&(a19==5))))&&!(a25==1))&&(a14==9))&&(a22==1)))&&(a28==1))){ + a19 = 2; + a14 = 10; + a20 = 1; + a29 = 5; + return 24; + } else if((!(a7==1)&&(((((((a11==1)&&(((!(a25==1)&&((input==2)&&(((a29==5)||(a29==6))||(a29==7))))&&(a19==1))&&(a14==9)))&&(a20==1))&&(a24==1))&&(a0==1))&&(a28==1))&&(a22==1)))){ + a19 = 3; + a0 = 0; + a29 = 5; + a25 = 1; + a14 = 8; + a7 = 1; + a24 = 0; + return -1; + } else if((((a14==9)&&(!(a24==1)&&((a29==8)&&((a0==1)&&(((a25==1)&&((a20==1)&&(!(a7==1)&&((a28==1)&&((a19==3)&&(input==3))))))&&!(a11==1))))))&&(a22==1))){ + a24 = 1; + a29 = 6; + a11 = 1; + return 21; + } else if(((((a11==1)&&(((a14==8)&&(!(a7==1)&&((!(a0==1)&&(((a20==1)&&((input==1)&&((a29==7)||((a29==5)||(a29==6)))))&&(a28==1)))&&(a22==1))))&&!(a24==1)))&&(a19==2))&&!(a25==1))){ + a0 = 1; + a29 = 5; + a7 = 1; + a19 = 1; + a24 = 1; + a25 = 1; + return -1; + } else if(((a28==1)&&(!(a24==1)&&(((a19==2)&&(((((((a0==1)&&((input==2)&&((a29==6)||(a29==7))))&&(a14==8))&&(a7==1))&&(a22==1))&&!(a25==1))&&(a20==1)))&&(a11==1))))){ + a0 = 0; + a19 = 1; + a29 = 7; + a24 = 1; + return 21; + } else if(((a25==1)&&((a20==1)&&((!(a24==1)&&((a28==1)&&(!(a0==1)&&((a11==1)&&((!(a7==1)&&((input==5)&&((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))||((a19==3)&&(a29==6)))))&&(a14==8))))))&&(a22==1))))){ + a0 = 1; + a24 = 1; + a14 = 9; + a25 = 0; + a29 = 5; + a19 = 3; + return 21; + } else if(((a14==8)&&(((a25==1)&&((((((!(a11==1)&&((((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))&&(input==3)))&&(a28==1))&&(a22==1))&&(a20==1))&&(a24==1))&&!(a0==1)))&&!(a7==1)))){ + a24 = 0; + a19 = 2; + a29 = 7; + a14 = 9; + a11 = 1; + return 24; + } else if(((((((a14==9)&&((a20==1)&&(((a28==1)&&(((((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))&&(input==5))&&(a7==1)))&&(a24==1))))&&(a22==1))&&!(a25==1))&&!(a0==1))&&!(a11==1))){ + a11 = 1; + a25 = 1; + a14 = 8; + a29 = 5; + a0 = 1; + a19 = 1; + return -1; + } else if(((((a14==8)&&(((a28==1)&&((a20==1)&&((!(a0==1)&&(!(a24==1)&&((input==1)&&(((a19==4)&&(a29==6))||(((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))))))&&(a7==1))))&&(a22==1)))&&(a11==1))&&(a25==1))){ + a19 = 1; + a29 = 5; + a24 = 1; + a0 = 1; + return -1; + } else if((!(a20==1)&&((a24==1)&&((a0==1)&&(((a22==1)&&(!(a25==1)&&(((a14==8)&&(((input==4)&&(((a19==5)&&(a29==5))||(((a19==4)&&(a29==8))||((a19==4)&&(a29==9)))))&&(a28==1)))&&!(a11==1))))&&!(a7==1)))))){ + a14 = 9; + a19 = 5; + a29 = 5; + a11 = 1; + return 21; + } else if(((((a14==8)&&((a0==1)&&((a22==1)&&((((((((a29==7)||(a29==8))&&(input==1))&&(a20==1))&&(a28==1))&&(a19==4))&&!(a7==1))&&!(a25==1)))))&&!(a11==1))&&(a24==1))){ + a0 = 0; + a11 = 1; + a29 = 8; + a19 = 3; + return 24; + } else if(((((a7==1)&&(!(a24==1)&&((((!(a20==1)&&((a0==1)&&((a11==1)&&((input==3)&&((a29==6)||(a29==7))))))&&(a14==9))&&(a25==1))&&(a19==4))))&&(a22==1))&&(a28==1))){ + a20 = 1; + a24 = 1; + a29 = 5; + a19 = 1; + a14 = 8; + return -1; + } else if((!(a7==1)&&((a20==1)&&((!(a25==1)&&((a28==1)&&(!(a0==1)&&((a14==8)&&((a19==5)&&((a11==1)&&((((a29==5)||(a29==6))&&(input==6))&&(a22==1))))))))&&!(a24==1))))){ + a7 = 1; + a24 = 1; + a25 = 1; + a11 = 0; + a29 = 6; + a19 = 4; + return 24; + } else if(((a22==1)&&(!(a25==1)&&((a0==1)&&((a19==2)&&(((a24==1)&&((!(a11==1)&&((!(a7==1)&&((a20==1)&&(input==3)))&&(a28==1)))&&(a29==5)))&&(a14==8))))))){ + a0 = 0; + a7 = 1; + a24 = 0; + a25 = 1; + a29 = 7; + a20 = 0; + a19 = 5; + return 21; + } else if((((((((a11==1)&&(!(a25==1)&&((((a14==10)&&((input==4)&&(a28==1)))&&(a19==1))&&(a0==1))))&&(a20==1))&&(a7==1))&&(a22==1))&&(a29==9))&&(a24==1))){ + a25 = 1; + a29 = 6; + a19 = 3; + a0 = 0; + a24 = 0; + a14 = 9; + return -1; + } else if(((a7==1)&&((a19==2)&&((a11==1)&&(((((((((input==2)&&!(a24==1))&&(a28==1))&&(a0==1))&&(a25==1))&&(a14==8))&&(a22==1))&&!(a20==1))&&(a29==6)))))){ + a25 = 0; + a19 = 3; + a11 = 0; + a29 = 7; + return 24; + } else if(((((!(a20==1)&&((a25==1)&&((a29==5)&&(((((a0==1)&&((input==2)&&!(a7==1)))&&(a28==1))&&(a24==1))&&(a14==8)))))&&(a19==1))&&(a22==1))&&!(a11==1))){ + a14 = 9; + a29 = 8; + a20 = 1; + a25 = 0; + a19 = 3; + a11 = 1; + return 24; + } else if((!(a11==1)&&(((a25==1)&&(((a20==1)&&((a28==1)&&((a22==1)&&((a24==1)&&((a7==1)&&(((((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))||((a19==5)&&(a29==5)))&&(input==2)))))))&&(a14==9)))&&!(a0==1)))){ + a29 = 8; + a24 = 0; + a19 = 5; + a20 = 0; + a11 = 1; + return -1; + } else if(((!(a0==1)&&(((a20==1)&&((a19==5)&&(((a14==9)&&(((a11==1)&&(!(a24==1)&&(((a29==5)||(a29==6))&&(input==4))))&&(a22==1)))&&(a7==1))))&&!(a25==1)))&&(a28==1))){ + a7 = 0; + a20 = 0; + a11 = 0; + a0 = 1; + a19 = 2; + a25 = 1; + a29 = 7; + a14 = 8; + return -1; + } else if((((a24==1)&&(!(a11==1)&&(((a19==4)&&((a29==5)&&((a28==1)&&(((((a0==1)&&(input==4))&&(a14==8))&&!(a7==1))&&(a22==1)))))&&(a25==1))))&&(a20==1))){ + a24 = 0; + a29 = 8; + a0 = 0; + a25 = 0; + a19 = 1; + return 24; + } else if(((!(a0==1)&&(((a14==8)&&((a25==1)&&(((a29==7)&&((a28==1)&&((!(a7==1)&&((input==3)&&(a24==1)))&&!(a20==1))))&&(a11==1))))&&(a19==5)))&&(a22==1))){ + a25 = 0; + a29 = 9; + a7 = 1; + a20 = 1; + return 21; + } else if((!(a20==1)&&((a22==1)&&(!(a7==1)&&((((a19==2)&&((((a28==1)&&(!(a24==1)&&((input==6)&&((a29==9)||((a29==7)||(a29==8))))))&&(a0==1))&&(a14==8)))&&(a11==1))&&(a25==1)))))){ + a29 = 9; + a25 = 0; + a11 = 0; + a19 = 3; + a7 = 1; + return 24; + } else if((((((a14==9)&&(!(a0==1)&&(((a25==1)&&((a7==1)&&((a28==1)&&(((input==6)&&(a19==1))&&(a22==1)))))&&(a24==1))))&&(a20==1))&&(a11==1))&&(a29==7))){ + a14 = 8; + a19 = 4; + a29 = 9; + a25 = 0; + return 24; + } else if(((((a14==8)&&(((a11==1)&&(((a7==1)&&((a25==1)&&(((a20==1)&&(((a29==6)||(a29==7))&&(input==5)))&&(a19==4))))&&(a28==1)))&&(a22==1)))&&!(a24==1))&&(a0==1))){ + a11 = 0; + a29 = 7; + a20 = 0; + a7 = 0; + return 24; + } else if(((a24==1)&&(((a28==1)&&((a22==1)&&((a14==9)&&(((!(a0==1)&&(!(a7==1)&&((input==6)&&(((a29==6)&&(a19==2))||(((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))))))&&(a20==1))&&!(a11==1)))))&&!(a25==1)))){ + a14 = 8; + a29 = 7; + a7 = 1; + a19 = 5; + a11 = 1; + return 21; + } else if(((a22==1)&&((a19==2)&&(((((a28==1)&&(((a29==9)&&((a14==9)&&(!(a7==1)&&((input==2)&&(a20==1)))))&&(a25==1)))&&(a11==1))&&(a24==1))&&(a0==1))))){ + a7 = 1; + a29 = 6; + a14 = 8; + a19 = 4; + a24 = 0; + a0 = 0; + a20 = 0; + return 23; + } else if((((a7==1)&&(((a14==8)&&((a19==4)&&((a24==1)&&(((a25==1)&&((((input==2)&&((a29==7)||((a29==5)||(a29==6))))&&(a28==1))&&(a0==1)))&&(a11==1)))))&&(a22==1)))&&!(a20==1))){ + a24 = 0; + a29 = 7; + a19 = 3; + return 21; + } else if(((((a28==1)&&((!(a24==1)&&((a0==1)&&((a19==2)&&((!(a20==1)&&((a14==8)&&((input==6)&&(a22==1))))&&(a7==1)))))&&!(a25==1)))&&!(a11==1))&&(a29==8))){ + a29 = 5; + a7 = 0; + a11 = 1; + a25 = 1; + a20 = 1; + a24 = 1; + a0 = 0; + return 21; + } else if((!(a7==1)&&((((a14==9)&&(((a19==3)&&(!(a25==1)&&(((a11==1)&&((((a29==6)||(a29==7))&&(input==3))&&!(a24==1)))&&(a28==1))))&&(a0==1)))&&!(a20==1))&&(a22==1)))){ + a11 = 0; + a29 = 5; + return 23; + } else if((((((a29==9)&&((((((a14==10)&&((a24==1)&&((input==1)&&(a19==2))))&&(a22==1))&&(a11==1))&&!(a20==1))&&(a25==1)))&&(a0==1))&&!(a7==1))&&(a28==1))){ + a29 = 8; + a7 = 1; + a14 = 9; + return 21; + } else if(((a20==1)&&((a28==1)&&(((a19==2)&&(((a29==5)&&((((((input==6)&&(a22==1))&&(a14==8))&&!(a11==1))&&(a0==1))&&(a7==1)))&&(a24==1)))&&!(a25==1))))){ + a0 = 0; + a19 = 5; + a20 = 0; + a7 = 0; + a29 = 8; + return 21; + } else if(((!(a25==1)&&(((a14==8)&&((a7==1)&&((a19==2)&&((((((input==4)&&((a29==7)||((a29==5)||(a29==6))))&&!(a0==1))&&(a20==1))&&(a22==1))&&!(a11==1)))))&&(a24==1)))&&(a28==1))){ + a0 = 1; + a24 = 0; + a20 = 0; + a29 = 8; + return -1; + } else if(((a14==8)&&((((((a20==1)&&(((((input==1)&&(((a29==6)&&(a19==4))||(((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))))&&(a11==1))&&!(a0==1))&&(a22==1)))&&(a24==1))&&(a28==1))&&!(a7==1))&&!(a25==1)))){ + a0 = 1; + a24 = 0; + a19 = 3; + a20 = 0; + a7 = 1; + a11 = 0; + a29 = 8; + return -1; + } else if((!(a11==1)&&((((a22==1)&&((a19==3)&&((((((!(a25==1)&&(input==3))&&(a20==1))&&(a24==1))&&(a7==1))&&(a29==8))&&(a0==1))))&&(a14==8))&&(a28==1)))){ + a11 = 1; + a25 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((((a20==1)&&(((a0==1)&&((((a19==4)&&((!(a7==1)&&((input==5)&&((a29==7)||(a29==8))))&&(a22==1)))&&(a24==1))&&(a28==1)))&&(a14==8)))&&!(a11==1))&&!(a25==1))){ + a0 = 0; + a7 = 1; + a20 = 0; + a29 = 6; + a11 = 1; + a25 = 1; + return 21; + } else if((((a14==9)&&(!(a20==1)&&((a0==1)&&((a11==1)&&(!(a7==1)&&((a22==1)&&((a28==1)&&((a24==1)&&((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))&&(input==2))))))))))&&!(a25==1))){ + a20 = 1; + a7 = 1; + a25 = 1; + a19 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((a14==9)&&((a0==1)&&((a7==1)&&((((a28==1)&&((a22==1)&&(((a11==1)&&((((a19==5)&&(a29==6))||(((a29==9)&&(a19==4))||((a29==5)&&(a19==5))))&&(input==2)))&&!(a20==1))))&&!(a24==1))&&(a25==1)))))){ + a14 = 8; + a20 = 1; + a19 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if(((a7==1)&&((a11==1)&&((a20==1)&&(((a14==9)&&((a22==1)&&((a19==2)&&(((a0==1)&&(((input==6)&&(a25==1))&&(a28==1)))&&(a29==5)))))&&(a24==1)))))){ + a14 = 8; + a0 = 0; + a11 = 0; + a20 = 0; + a7 = 0; + a25 = 0; + a29 = 6; + return -1; + } else if((((a0==1)&&((a19==2)&&((a11==1)&&(((a14==10)&&(((a7==1)&&(!(a24==1)&&(((a28==1)&&(input==6))&&(a22==1))))&&(a20==1)))&&(a29==8)))))&&!(a25==1))){ + a19 = 4; + a0 = 0; + a29 = 6; + a7 = 0; + a14 = 8; + a11 = 0; + a20 = 0; + return -1; + } else if(((((a24==1)&&((a29==9)&&((((a7==1)&&(((a28==1)&&((a19==5)&&((a22==1)&&(input==2))))&&!(a0==1)))&&(a11==1))&&(a20==1))))&&(a14==9))&&(a25==1))){ + a19 = 2; + a25 = 0; + a29 = 8; + a14 = 8; + return 23; + } else if((((a24==1)&&(((a22==1)&&((a14==8)&&((!(a11==1)&&(((input==2)&&((((a19==5)&&((a25==1)&&(a29==9)))||((a19==1)&&((a29==5)&&!(a25==1))))||((a19==1)&&(!(a25==1)&&(a29==6)))))&&(a0==1)))&&(a28==1))))&&(a20==1)))&&!(a7==1))){ + a24 = 0; + a19 = 1; + a20 = 0; + a0 = 0; + a29 = 5; + a25 = 1; + a7 = 1; + return 23; + } else if((((a14==9)&&((((a11==1)&&((a19==1)&&((((!(a25==1)&&(((a29==7)||(a29==8))&&(input==3)))&&(a20==1))&&(a28==1))&&(a0==1))))&&(a7==1))&&(a22==1)))&&(a24==1))){ + a11 = 0; + a19 = 3; + a0 = 0; + a29 = 8; + a14 = 8; + a25 = 1; + return 21; + } else if(((!(a20==1)&&((((a0==1)&&(((a19==1)&&(!(a25==1)&&((a22==1)&&((a28==1)&&(((a29==8)||(a29==9))&&(input==5))))))&&!(a24==1)))&&!(a7==1))&&(a14==8)))&&!(a11==1))){ + a25 = 1; + a11 = 1; + a0 = 0; + a29 = 5; + a19 = 5; + a24 = 1; + return 24; + } else if(((((a24==1)&&((a22==1)&&((a14==10)&&(((((((a19==5)&&((a29==9)&&(a25==1)))||(((a29==5)&&!(a25==1))&&(a19==1)))&&(input==6))&&(a28==1))&&(a0==1))&&(a11==1)))))&&(a7==1))&&(a20==1))){ + a29 = 5; + a25 = 1; + a14 = 8; + a19 = 1; + return -1; + } else if(((a24==1)&&(((a20==1)&&(((a0==1)&&(((a28==1)&&((a14==8)&&(!(a7==1)&&((a19==3)&&((input==1)&&(a29==7))))))&&(a11==1)))&&(a22==1)))&&(a25==1)))){ + a19 = 5; + return 23; + } else if((!(a0==1)&&((((a22==1)&&((a28==1)&&(((a19==4)&&(!(a11==1)&&((((input==2)&&((a29==6)||(a29==7)))&&(a24==1))&&(a7==1))))&&(a20==1))))&&(a25==1))&&(a14==9)))){ + a19 = 5; + a20 = 0; + a7 = 0; + a14 = 8; + a29 = 8; + a11 = 1; + return 23; + } else if(((((a11==1)&&((a14==8)&&(!(a25==1)&&(((a19==2)&&(((a28==1)&&(((a22==1)&&(input==3))&&!(a24==1)))&&(a29==6)))&&!(a20==1)))))&&(a0==1))&&!(a7==1))){ + a0 = 0; + a24 = 1; + a11 = 0; + a29 = 5; + a20 = 1; + return 24; + } else if((((a28==1)&&((!(a11==1)&&((a22==1)&&(!(a0==1)&&((a14==9)&&((a20==1)&&(((a25==1)&&(!(a24==1)&&(input==2)))&&(a7==1)))))))&&(a19==5)))&&(a29==7))){ + a11 = 1; + a19 = 3; + a29 = 8; + a24 = 1; + a14 = 8; + return 21; + } else if(((!(a7==1)&&((a29==6)&&((((a19==2)&&(((!(a11==1)&&(!(a25==1)&&((input==1)&&(a22==1))))&&(a0==1))&&(a20==1)))&&(a14==8))&&(a24==1))))&&(a28==1))){ + a7 = 1; + a24 = 0; + a0 = 0; + a19 = 1; + a29 = 5; + a20 = 0; + return 21; + } else if(((a11==1)&&((a24==1)&&(((a7==1)&&(((a19==1)&&((a20==1)&&(((((input==5)&&(a14==9))&&(a28==1))&&(a29==7))&&(a22==1))))&&!(a0==1)))&&(a25==1))))){ + a29 = 5; + a0 = 1; + a14 = 8; + return -1; + } else if((((a28==1)&&((!(a0==1)&&((((((a29==7)&&(((a22==1)&&(input==4))&&(a7==1)))&&(a14==9))&&(a11==1))&&!(a24==1))&&!(a25==1)))&&(a19==1)))&&!(a20==1))){ + a20 = 1; + a14 = 8; + a19 = 3; + a24 = 1; + return -1; + } else if(((a28==1)&&(((((a20==1)&&(((((a19==2)&&(((input==6)&&(((a29==6)||(a29==7))||(a29==8)))&&!(a7==1)))&&!(a25==1))&&!(a11==1))&&!(a24==1)))&&(a22==1))&&!(a0==1))&&(a14==9)))){ + a14 = 8; + a29 = 7; + a25 = 1; + a7 = 1; + a19 = 1; + return 24; + } else if(((a24==1)&&(!(a11==1)&&(((((a0==1)&&((a19==1)&&((a28==1)&&(((a25==1)&&(((a29==5)||(a29==6))&&(input==4)))&&!(a7==1)))))&&(a14==8))&&(a20==1))&&(a22==1))))){ + a0 = 0; + a20 = 0; + a11 = 1; + a19 = 4; + a7 = 1; + a29 = 8; + return 24; + } else if(((a22==1)&&((!(a7==1)&&((!(a0==1)&&((((a24==1)&&((a14==9)&&((((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))&&(input==2))))&&!(a20==1))&&!(a11==1)))&&(a25==1)))&&(a28==1)))){ + a19 = 1; + a20 = 1; + a11 = 1; + a14 = 8; + a25 = 0; + a29 = 6; + return 24; + } else if(((a11==1)&&((a28==1)&&(((a14==8)&&((!(a25==1)&&(!(a24==1)&&((a20==1)&&((a7==1)&&((input==6)&&(((a29==5)&&(a19==2))||(((a29==8)&&(a19==1))||((a29==9)&&(a19==1)))))))))&&(a22==1)))&&(a0==1))))){ + a24 = 1; + a0 = 0; + a29 = 7; + a19 = 5; + a25 = 1; + return 21; + } else if(((a28==1)&&((a0==1)&&((a11==1)&&((a22==1)&&(!(a7==1)&&(((a25==1)&&((a14==8)&&((!(a20==1)&&((input==1)&&((a29==5)||(a29==6))))&&(a19==2))))&&(a24==1)))))))){ + a20 = 1; + a11 = 0; + a25 = 0; + a29 = 7; + return 23; + } else if((((a7==1)&&(((a19==2)&&(((a25==1)&&(((a14==8)&&((a20==1)&&((a24==1)&&((input==6)&&((a29==5)||(a29==6))))))&&(a28==1)))&&(a0==1)))&&(a22==1)))&&!(a11==1))){ + a29 = 5; + a11 = 1; + a19 = 1; + return -1; + } else if((!(a11==1)&&((a24==1)&&(((a7==1)&&(((a29==9)&&((a28==1)&&(!(a25==1)&&((a19==1)&&((a14==8)&&((a22==1)&&(input==4)))))))&&!(a0==1)))&&!(a20==1))))){ + a19 = 5; + a11 = 1; + a29 = 7; + a20 = 1; + a25 = 1; + return 24; + } else if((!(a11==1)&&((((((a19==5)&&((!(a24==1)&&((a14==8)&&(!(a7==1)&&(((a29==6)||(a29==7))&&(input==4)))))&&(a28==1)))&&!(a25==1))&&!(a0==1))&&(a22==1))&&!(a20==1)))){ + a25 = 1; + a7 = 1; + a11 = 1; + a20 = 1; + a29 = 5; + a24 = 1; + a0 = 1; + a19 = 1; + return -1; + } else if((((a25==1)&&(((a14==9)&&((a22==1)&&((((a28==1)&&(!(a11==1)&&((input==3)&&(((a29==9)&&(a19==4))||((a29==5)&&(a19==5))))))&&!(a7==1))&&(a0==1))))&&!(a20==1)))&&(a24==1))){ + a29 = 5; + a7 = 1; + a14 = 8; + a19 = 1; + a11 = 1; + a20 = 1; + return -1; + } else if(((((a25==1)&&(((a7==1)&&((a14==10)&&((a28==1)&&(((a19==2)&&((a22==1)&&((input==2)&&(a29==5))))&&!(a24==1)))))&&(a0==1)))&&(a20==1))&&(a11==1))){ + a25 = 0; + a0 = 0; + a14 = 9; + a24 = 1; + a19 = 4; + return -1; + } else if(((a7==1)&&((a25==1)&&((((a20==1)&&((((a11==1)&&(((((a29==5)||(a29==6))&&(input==6))&&(a14==9))&&(a28==1)))&&(a24==1))&&(a0==1)))&&(a19==3))&&(a22==1))))){ + a14 = 8; + a19 = 1; + a29 = 5; + return -1; + } else if(((((a19==1)&&(!(a0==1)&&((a28==1)&&((a25==1)&&((a14==9)&&(((a22==1)&&((a29==5)&&((a20==1)&&(input==2))))&&(a7==1)))))))&&(a24==1))&&!(a11==1))){ + a29 = 9; + a19 = 2; + a20 = 0; + a0 = 1; + a11 = 1; + return 21; + } else if((!(a11==1)&&((a14==9)&&((((a28==1)&&((((a7==1)&&((((input==6)&&!(a25==1))&&(a22==1))&&(a19==4)))&&(a20==1))&&!(a0==1)))&&(a29==5))&&!(a24==1))))){ + a24 = 1; + a29 = 6; + a7 = 0; + a19 = 2; + return -1; + } else if(((a11==1)&&(!(a25==1)&&((a24==1)&&(((a22==1)&&(((((a14==10)&&((((a29==6)||(a29==7))&&(input==2))&&!(a20==1)))&&!(a7==1))&&(a0==1))&&(a19==1)))&&(a28==1)))))){ + a14 = 8; + a25 = 1; + a29 = 8; + a11 = 0; + a24 = 0; + return 24; + } else if(((a0==1)&&((a14==8)&&((a22==1)&&(((a20==1)&&((!(a11==1)&&((((a28==1)&&(((a29==7)||(a29==8))&&(input==2)))&&!(a7==1))&&(a19==4)))&&!(a25==1)))&&(a24==1)))))){ + a24 = 0; + a20 = 0; + a29 = 7; + return 24; + } else if(((a19==2)&&((a14==8)&&(((a22==1)&&((!(a7==1)&&(((a28==1)&&(((a20==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==2)))&&!(a25==1)))&&(a24==1)))&&(a11==1)))&&(a0==1))))){ + a29 = 6; + a19 = 3; + a20 = 0; + a25 = 1; + return 21; + } else if(((((!(a24==1)&&((a20==1)&&((a0==1)&&((((!(a7==1)&&(((a29==6)||(a29==7))&&(input==6)))&&(a28==1))&&(a19==3))&&(a14==9)))))&&(a22==1))&&(a25==1))&&!(a11==1))){ + a11 = 1; + a20 = 0; + a0 = 0; + a29 = 5; + a14 = 8; + a24 = 1; + return 24; + } else if(((a25==1)&&((((a28==1)&&((a14==8)&&(((a22==1)&&(!(a20==1)&&((a0==1)&&(((input==2)&&((a29==5)||(a29==6)))&&(a7==1)))))&&(a24==1))))&&(a11==1))&&(a19==1)))){ + a19 = 2; + a24 = 0; + a29 = 6; + a7 = 0; + a20 = 1; + return 24; + } else if(((a22==1)&&(!(a11==1)&&((!(a0==1)&&((a28==1)&&(((input==3)&&((((a19==5)&&((!(a25==1)&&((a20==1)&&!(a7==1)))&&(a29==8)))||(((a29==9)&&(!(a25==1)&&(!(a7==1)&&(a20==1))))&&(a19==5)))||((((!(a20==1)&&(a7==1))&&(a25==1))&&(a29==5))&&(a19==1))))&&(a24==1))))&&(a14==9))))){ + a7 = 1; + a20 = 1; + a11 = 1; + a19 = 1; + a0 = 1; + a25 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((((((!(a7==1)&&((((a29==5)&&(((a19==4)&&(input==1))&&(a22==1)))&&(a14==9))&&!(a11==1)))&&(a28==1))&&!(a25==1))&&(a0==1))&&!(a20==1))&&!(a24==1))){ + a29 = 6; + a24 = 1; + a19 = 1; + a14 = 8; + a0 = 0; + a11 = 1; + return 21; + } else if(((((a7==1)&&(((((a20==1)&&(!(a25==1)&&((((input==2)&&(((a29==6)||(a29==7))||(a29==8)))&&(a28==1))&&!(a24==1))))&&(a19==4))&&!(a0==1))&&(a22==1)))&&!(a11==1))&&(a14==8))){ + a0 = 1; + a29 = 5; + a19 = 1; + a11 = 1; + a24 = 1; + a25 = 1; + return -1; + } else if(((a24==1)&&((a20==1)&&((a14==8)&&((a28==1)&&((a22==1)&&((((((input==5)&&(((a29==6)&&(a19==3))||(((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))))&&(a0==1))&&!(a11==1))&&!(a7==1))&&(a25==1)))))))){ + a29 = 8; + a0 = 0; + a24 = 0; + a19 = 4; + return 23; + } else if(((a11==1)&&((!(a24==1)&&(((a0==1)&&((a25==1)&&((a14==9)&&((!(a20==1)&&((a7==1)&&((input==2)&&((a29==7)||(a29==8)))))&&(a28==1)))))&&(a22==1)))&&(a19==1)))){ + a24 = 1; + a14 = 10; + a29 = 7; + a7 = 0; + a19 = 5; + return 21; + } else if(((a11==1)&&((a28==1)&&((a20==1)&&((a22==1)&&(((a7==1)&&((a14==9)&&((a19==5)&&(!(a0==1)&&(((input==2)&&((a29==5)||(a29==6)))&&!(a24==1))))))&&!(a25==1))))))){ + a7 = 0; + a29 = 8; + a19 = 1; + a24 = 1; + a20 = 0; + a14 = 8; + return 24; + } else if(((a24==1)&&(!(a11==1)&&((((a0==1)&&(((a14==8)&&((a22==1)&&((a25==1)&&(((input==2)&&(((a29==7)||(a29==8))||(a29==9)))&&(a20==1)))))&&(a19==4)))&&(a28==1))&&!(a7==1))))){ + a24 = 0; + a0 = 0; + a25 = 0; + a19 = 3; + a29 = 6; + return 21; + } else if((!(a20==1)&&((a28==1)&&(!(a0==1)&&(((((a14==8)&&(((a19==2)&&(((input==6)&&((a29==9)||((a29==7)||(a29==8))))&&(a25==1)))&&(a11==1)))&&(a22==1))&&!(a24==1))&&!(a7==1)))))){ + a29 = 7; + a20 = 1; + a24 = 1; + a25 = 0; + return 23; + } else if((((a28==1)&&((a19==2)&&((((((a7==1)&&(((a11==1)&&((a25==1)&&(input==4)))&&(a0==1)))&&!(a20==1))&&(a14==8))&&!(a24==1))&&(a29==6))))&&(a22==1))){ + a19 = 1; + a0 = 0; + return 24; + } else if((!(a0==1)&&((((((((a22==1)&&((a28==1)&&((input==4)&&(((a29==6)&&(a19==4))||(((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))))))&&!(a24==1))&&!(a20==1))&&!(a7==1))&&!(a25==1))&&(a14==8))&&(a11==1)))){ + a19 = 5; + a29 = 7; + a11 = 0; + a0 = 1; + return 23; + } else if(((!(a7==1)&&((a29==5)&&(((a22==1)&&(!(a0==1)&&(((a14==8)&&(((!(a20==1)&&(input==4))&&!(a11==1))&&(a28==1)))&&(a24==1))))&&(a19==2))))&&(a25==1))){ + a24 = 0; + a25 = 0; + a0 = 1; + a29 = 9; + a7 = 1; + return 23; + } else if((((a29==7)&&(!(a11==1)&&((a19==4)&&(!(a0==1)&&(((a24==1)&&((!(a7==1)&&(((input==1)&&(a25==1))&&(a14==8)))&&(a20==1)))&&(a22==1))))))&&(a28==1))){ + a29 = 6; + a19 = 1; + a11 = 1; + return 23; + } else if((((a14==9)&&((!(a0==1)&&((!(a20==1)&&(((((((a29==8)||((a29==6)||(a29==7)))&&(input==5))&&(a7==1))&&(a11==1))&&(a25==1))&&(a19==5)))&&(a24==1)))&&(a28==1)))&&(a22==1))){ + a20 = 1; + a19 = 2; + a14 = 8; + a29 = 6; + return 23; + } else if(((a28==1)&&((a14==9)&&((a24==1)&&(((a22==1)&&(((a25==1)&&(!(a7==1)&&((a0==1)&&(!(a11==1)&&(((a29==5)||(a29==6))&&(input==2))))))&&(a20==1)))&&(a19==3)))))){ + a7 = 1; + a29 = 5; + a19 = 1; + a11 = 1; + a14 = 8; + return -1; + } else if((!(a25==1)&&((a28==1)&&(((a20==1)&&((((((a22==1)&&((a7==1)&&(((a29==8)||(a29==9))&&(input==6))))&&!(a0==1))&&(a14==9))&&(a19==3))&&(a11==1)))&&(a24==1))))){ + a14 = 8; + a24 = 0; + a7 = 0; + a11 = 0; + a29 = 6; + return 23; + } else if((((!(a20==1)&&(((a7==1)&&(((a22==1)&&((a28==1)&&((a24==1)&&((input==4)&&(((a29==9)&&(a19==4))||((a29==5)&&(a19==5)))))))&&(a0==1)))&&(a14==9)))&&!(a25==1))&&(a11==1))){ + a0 = 0; + a11 = 0; + a24 = 0; + a7 = 0; + a29 = 8; + a19 = 5; + return 24; + } else if(((((a19==4)&&((a28==1)&&(((a14==8)&&((((a20==1)&&(((a22==1)&&(input==3))&&!(a7==1)))&&(a29==9))&&!(a25==1)))&&!(a24==1))))&&!(a0==1))&&!(a11==1))){ + a19 = 5; + a14 = 9; + a20 = 0; + a29 = 8; + a7 = 1; + a24 = 1; + a25 = 1; + return 24; + } else if(((a22==1)&&(((a0==1)&&((a24==1)&&(((((((a25==1)&&((input==4)&&((a29==6)||(a29==7))))&&(a14==8))&&(a11==1))&&!(a20==1))&&(a28==1))&&!(a7==1))))&&(a19==4)))){ + a19 = 3; + a25 = 0; + a7 = 1; + a11 = 0; + a29 = 6; + return 24; + } else if(((a19==3)&&((a29==6)&&((a20==1)&&((a24==1)&&(!(a7==1)&&((a28==1)&&(((a0==1)&&((a25==1)&&((a22==1)&&((a11==1)&&(input==2)))))&&(a14==8))))))))){ + a19 = 4; + return 23; + } else if(((a28==1)&&((a29==8)&&(!(a20==1)&&(((a14==9)&&((a7==1)&&((a25==1)&&((!(a24==1)&&(((input==4)&&(a0==1))&&!(a11==1)))&&(a19==2)))))&&(a22==1)))))){ + a29 = 7; + a25 = 0; + a14 = 8; + a24 = 1; + a19 = 5; + a7 = 0; + a11 = 1; + a20 = 1; + return 23; + } else if((((a25==1)&&((a28==1)&&((a19==5)&&((!(a20==1)&&((((a14==8)&&(!(a7==1)&&((input==3)&&((a29==5)||(a29==6)))))&&!(a0==1))&&!(a24==1)))&&(a22==1)))))&&(a11==1))){ + a29 = 5; + a14 = 9; + a25 = 0; + a0 = 1; + a19 = 1; + return 21; + } else if(((((a14==9)&&(!(a20==1)&&((a0==1)&&((((a25==1)&&((((input==2)&&((a29==7)||(a29==8)))&&(a7==1))&&(a28==1)))&&(a22==1))&&(a19==1)))))&&(a24==1))&&!(a11==1))){ + a14 = 8; + a24 = 0; + a7 = 0; + a0 = 0; + a29 = 6; + a19 = 4; + return -1; + } else if(((a28==1)&&((a14==9)&&(!(a0==1)&&((a19==1)&&((((a22==1)&&(!(a7==1)&&(!(a24==1)&&(!(a20==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==3))))))&&!(a11==1))&&!(a25==1))))))){ + a7 = 1; + a29 = 5; + a19 = 5; + a14 = 8; + a11 = 1; + a24 = 1; + return 24; + } else if(((!(a0==1)&&(!(a24==1)&&((((a22==1)&&(((a28==1)&&(!(a25==1)&&(((input==3)&&(((a29==7)||(a29==8))||(a29==9)))&&!(a7==1))))&&(a20==1)))&&(a14==9))&&(a11==1))))&&(a19==5))){ + a24 = 1; + a29 = 7; + a20 = 0; + a11 = 0; + a14 = 8; + a7 = 1; + return 21; + } else if(((!(a24==1)&&((a11==1)&&((a28==1)&&(((((a25==1)&&(((((a29==8)||(a29==9))&&(input==4))&&(a7==1))&&(a20==1)))&&(a19==1))&&(a22==1))&&(a0==1)))))&&(a14==8))){ + a19 = 3; + a29 = 5; + a11 = 0; + a20 = 0; + return 23; + } else if(((a11==1)&&(((a19==3)&&((((a14==9)&&((a20==1)&&((a28==1)&&(!(a7==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==1))&&!(a25==1))))))&&!(a24==1))&&(a0==1)))&&(a22==1)))){ + a29 = 9; + a7 = 1; + a14 = 8; + a0 = 0; + a24 = 1; + return 23; + } else if(((a14==9)&&(!(a25==1)&&((a28==1)&&(!(a24==1)&&(((a20==1)&&((((a29==5)&&(!(a0==1)&&((a7==1)&&(input==1))))&&(a11==1))&&(a19==2)))&&(a22==1))))))){ + a24 = 1; + a19 = 1; + a14 = 8; + a0 = 1; + a25 = 1; + return -1; + } else if((((a0==1)&&((a25==1)&&((a29==6)&&(((((((a14==9)&&((input==2)&&(a11==1)))&&(a22==1))&&(a19==1))&&(a28==1))&&!(a7==1))&&(a20==1)))))&&!(a24==1))){ + a29 = 5; + a14 = 8; + a24 = 1; + a7 = 1; + return -1; + } else if((((a24==1)&&((((a22==1)&&(!(a20==1)&&((a25==1)&&((a0==1)&&((a28==1)&&((a7==1)&&((input==1)&&((a29==6)||(a29==7)))))))))&&(a11==1))&&(a19==3)))&&(a14==10))){ + a14 = 8; + a20 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((((((((((((input==4)&&(a7==1))&&(a24==1))&&(a20==1))&&(a14==9))&&(a29==6))&&(a19==1))&&(a28==1))&&!(a11==1))&&!(a0==1))&&(a22==1))&&!(a25==1))){ + a14 = 8; + a0 = 1; + a11 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if((!(a20==1)&&(((((a14==8)&&((a0==1)&&((((a22==1)&&((((a19==5)&&(a29==5))||(((a19==4)&&(a29==8))||((a19==4)&&(a29==9))))&&(input==5)))&&!(a24==1))&&(a28==1))))&&!(a7==1))&&!(a25==1))&&!(a11==1)))){ + a24 = 1; + a20 = 1; + a19 = 5; + a25 = 1; + a29 = 5; + a0 = 0; + a11 = 1; + return 24; + } else if(((a22==1)&&((a0==1)&&(((a24==1)&&((a7==1)&&(((((a14==9)&&((!(a11==1)&&(input==3))&&(a25==1)))&&(a19==2))&&(a28==1))&&!(a20==1))))&&(a29==6))))){ + a29 = 8; + a25 = 0; + a11 = 1; + a7 = 0; + return 24; + } else if((((a29==8)&&(((a28==1)&&(((a11==1)&&((!(a24==1)&&((((input==2)&&!(a20==1))&&(a14==8))&&(a22==1)))&&(a0==1)))&&(a19==5)))&&(a7==1)))&&(a25==1))){ + a0 = 0; + a25 = 0; + a29 = 9; + return 23; + } else if(((a11==1)&&((((a0==1)&&((a22==1)&&(!(a25==1)&&(((a19==5)&&(((((a29==8)||(a29==9))&&(input==4))&&(a14==9))&&(a7==1)))&&!(a20==1)))))&&(a24==1))&&(a28==1)))){ + a14 = 8; + a20 = 1; + a19 = 1; + a7 = 0; + a24 = 0; + a25 = 1; + a29 = 5; + return 24; + } else if(((a22==1)&&((a7==1)&&((a14==9)&&(((!(a25==1)&&((!(a20==1)&&((a24==1)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==1))&&!(a11==1))))&&(a0==1)))&&(a19==4))&&(a28==1)))))){ + a19 = 3; + a7 = 0; + a0 = 0; + a11 = 1; + a14 = 8; + a29 = 6; + return 23; + } else if(((!(a0==1)&&(!(a7==1)&&(((a24==1)&&((a28==1)&&((a14==8)&&(((a20==1)&&((input==5)&&((((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))||((a29==6)&&(a19==3)))))&&!(a11==1)))))&&!(a25==1))))&&(a22==1))){ + a7 = 1; + a11 = 1; + a25 = 1; + a0 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((((a28==1)&&((a0==1)&&(((a14==8)&&((((((input==1)&&(((a29==5)&&(a19==3))||(((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))))&&(a11==1))&&(a22==1))&&(a7==1))&&!(a24==1)))&&(a20==1))))&&(a25==1))){ + a29 = 9; + a19 = 2; + a11 = 0; + a25 = 0; + a20 = 0; + return 24; + } else if((((a19==5)&&((!(a0==1)&&(!(a24==1)&&((a7==1)&&(((a28==1)&&(((a22==1)&&((input==5)&&!(a25==1)))&&!(a20==1)))&&(a14==8)))))&&(a29==9)))&&!(a11==1))){ + a19 = 1; + a11 = 1; + a20 = 1; + a0 = 1; + a25 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if(((a19==2)&&((a22==1)&&(((a28==1)&&((!(a20==1)&&((((a24==1)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==5))&&(a7==1)))&&(a14==9))&&(a0==1)))&&!(a25==1)))&&(a11==1))))){ + a19 = 1; + a29 = 5; + a14 = 8; + a25 = 1; + a20 = 1; + return -1; + } else if((((a22==1)&&((((!(a25==1)&&(((((a14==9)&&((input==4)&&(((a29==6)||(a29==7))||(a29==8))))&&(a11==1))&&!(a24==1))&&!(a7==1)))&&(a19==2))&&(a0==1))&&(a28==1)))&&(a20==1))){ + a29 = 5; + a19 = 1; + a24 = 1; + a7 = 1; + a25 = 1; + a14 = 8; + return -1; + } else if((((a28==1)&&(((((a24==1)&&(((a11==1)&&(!(a25==1)&&((((a19==3)&&(a29==6))||(((a29==9)&&(a19==2))||((a29==5)&&(a19==3))))&&(input==3))))&&!(a7==1)))&&(a20==1))&&(a14==10))&&(a0==1)))&&(a22==1))){ + a11 = 0; + a20 = 0; + a19 = 3; + a14 = 9; + a29 = 6; + a24 = 0; + return -1; + } else if(((!(a25==1)&&((a14==10)&&((((a11==1)&&((a22==1)&&((a28==1)&&((a0==1)&&((input==5)&&((((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))||((a29==6)&&(a19==3))))))))&&(a7==1))&&(a24==1))))&&!(a20==1))){ + a25 = 1; + a11 = 0; + a19 = 5; + a14 = 9; + a20 = 1; + a24 = 0; + a29 = 7; + return 23; + } else if(((a0==1)&&((a25==1)&&(((a7==1)&&((!(a20==1)&&((a29==9)&&((((a24==1)&&((input==2)&&(a19==5)))&&(a22==1))&&(a14==10))))&&(a28==1)))&&(a11==1))))){ + a24 = 0; + a20 = 1; + a14 = 8; + a19 = 4; + a29 = 6; + a0 = 0; + return 24; + } else if(((a28==1)&&((a14==8)&&((!(a0==1)&&(!(a11==1)&&((a22==1)&&((a19==3)&&(!(a20==1)&&((!(a24==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==1)))&&!(a7==1)))))))&&!(a25==1))))){ + a7 = 1; + a29 = 6; + a14 = 9; + a20 = 1; + return 23; + } return calculate_output20(input); + } + + int calculate_output20(int input) { + if(((a25==1)&&(((((a28==1)&&(((a0==1)&&(((a14==8)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==1))&&!(a7==1)))&&(a19==1)))&&(a11==1)))&&(a22==1))&&!(a20==1))&&!(a24==1)))){ + a7 = 1; + a24 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if(((!(a0==1)&&((((!(a25==1)&&(!(a20==1)&&((((a11==1)&&((input==6)&&((a29==8)||(a29==9))))&&(a14==8))&&(a22==1))))&&(a28==1))&&!(a24==1))&&!(a7==1)))&&(a19==1))){ + a7 = 1; + a20 = 1; + a29 = 7; + a24 = 1; + return 23; + } else if((((a14==9)&&(((!(a25==1)&&((!(a24==1)&&(((a20==1)&&(((((a19==1)&&(a29==8))||((a29==9)&&(a19==1)))||((a19==2)&&(a29==5)))&&(input==3)))&&!(a7==1)))&&(a22==1)))&&!(a0==1))&&(a28==1)))&&!(a11==1))){ + a11 = 1; + a0 = 1; + a29 = 7; + a19 = 2; + a24 = 1; + return -1; + } else if(((((a22==1)&&((a25==1)&&(((!(a24==1)&&((!(a7==1)&&(((input==5)&&((a29==9)||((a29==7)||(a29==8))))&&!(a20==1)))&&(a28==1)))&&(a14==8))&&(a11==1))))&&(a19==2))&&!(a0==1))){ + a29 = 8; + a20 = 1; + a7 = 1; + a24 = 1; + a19 = 5; + return 24; + } else if((!(a20==1)&&((a0==1)&&((((a28==1)&&((a29==7)&&((a25==1)&&(((((input==1)&&(a22==1))&&(a24==1))&&(a14==8))&&(a19==5)))))&&!(a7==1))&&(a11==1))))){ + a29 = 5; + a11 = 0; + return 21; + } else if(((a25==1)&&((a22==1)&&((a14==10)&&(((a0==1)&&(((a20==1)&&((((((a29==8)||(a29==9))&&(input==4))&&(a19==4))&&!(a7==1))&&(a24==1)))&&(a28==1)))&&(a11==1)))))){ + a25 = 0; + a14 = 8; + a29 = 9; + a19 = 3; + a0 = 0; + return -1; + } else if((!(a7==1)&&((((((a22==1)&&((!(a11==1)&&((a28==1)&&(((a24==1)&&(input==4))&&(a29==6))))&&(a25==1)))&&!(a0==1))&&(a20==1))&&(a19==2))&&(a14==9)))){ + a11 = 1; + a24 = 0; + a14 = 8; + a19 = 1; + a20 = 0; + a25 = 0; + return -1; + } else if((((a14==9)&&((a19==1)&&(((a28==1)&&((a25==1)&&((a11==1)&&(!(a20==1)&&((a24==1)&&((a0==1)&&((input==4)&&((a29==5)||(a29==6)))))))))&&(a22==1))))&&!(a7==1))){ + a14 = 8; + a29 = 9; + a24 = 0; + a11 = 0; + return 24; + } else if((!(a7==1)&&((a24==1)&&((a28==1)&&(!(a11==1)&&((a14==9)&&((a25==1)&&((a22==1)&&(!(a20==1)&&((a0==1)&&((input==5)&&(((a19==4)&&(a29==5))||(((a19==3)&&(a29==8))||((a29==9)&&(a19==3))))))))))))))){ + a29 = 5; + a11 = 1; + a19 = 1; + a7 = 1; + a20 = 1; + a14 = 8; + return -1; + } else if((((a25==1)&&((a22==1)&&(!(a20==1)&&(((a7==1)&&((a28==1)&&(((a14==9)&&(!(a24==1)&&((input==2)&&((a29==6)||(a29==7)))))&&(a11==1))))&&(a0==1)))))&&(a19==4))){ + a29 = 5; + a24 = 1; + a20 = 1; + a19 = 1; + a14 = 8; + return -1; + } else if(((!(a7==1)&&((a25==1)&&((a0==1)&&(((a22==1)&&(((a14==9)&&((a20==1)&&((input==1)&&(((a29==5)&&(a19==4))||(((a19==3)&&(a29==8))||((a19==3)&&(a29==9)))))))&&(a28==1)))&&(a11==1)))))&&(a24==1))){ + a20 = 0; + a24 = 0; + a29 = 5; + a25 = 0; + a11 = 0; + a0 = 0; + a7 = 1; + a19 = 1; + return 24; + } else if((!(a11==1)&&((!(a20==1)&&(((a22==1)&&((!(a7==1)&&(!(a0==1)&&(((((a19==5)&&((a25==1)&&(a29==9)))||(((a29==5)&&!(a25==1))&&(a19==1)))||((a19==1)&&(!(a25==1)&&(a29==6))))&&(input==4))))&&(a24==1)))&&(a14==9)))&&(a28==1)))){ + a20 = 1; + a19 = 1; + a11 = 1; + a7 = 1; + a25 = 1; + a14 = 8; + a0 = 1; + a29 = 5; + return -1; + } else if((((a28==1)&&((a14==8)&&((((a11==1)&&((a25==1)&&(((a29==7)&&(((input==1)&&(a19==5))&&!(a0==1)))&&!(a20==1))))&&(a24==1))&&(a22==1))))&&!(a7==1))){ + a29 = 5; + a20 = 1; + a0 = 1; + a19 = 1; + a7 = 1; + return -1; + } else if((((((a29==8)&&(((((a19==2)&&((a7==1)&&(((input==1)&&(a25==1))&&(a14==8))))&&(a28==1))&&(a11==1))&&!(a0==1)))&&!(a24==1))&&(a22==1))&&!(a20==1))){ + a20 = 1; + a24 = 1; + a0 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((((a0==1)&&(((a11==1)&&((a14==8)&&(((a22==1)&&((((a19==1)&&(!(a25==1)&&(a29==6)))||(((a19==5)&&((a29==9)&&(a25==1)))||((a19==1)&&((a29==5)&&!(a25==1)))))&&(input==3)))&&(a24==1))))&&(a7==1)))&&(a28==1))&&!(a20==1))){ + a25 = 1; + a24 = 0; + a29 = 5; + a7 = 0; + a19 = 2; + return 21; + } else if((!(a11==1)&&(!(a24==1)&&((a19==3)&&(((a28==1)&&(!(a0==1)&&((a22==1)&&(((a25==1)&&((a7==1)&&((input==3)&&((a29==7)||((a29==5)||(a29==6))))))&&(a14==8)))))&&!(a20==1)))))){ + a19 = 1; + a0 = 1; + a29 = 5; + a20 = 1; + a24 = 1; + a11 = 1; + return -1; + } else if(((a28==1)&&(!(a24==1)&&((a14==8)&&(((a19==5)&&(((!(a25==1)&&((a7==1)&&(!(a0==1)&&(((a29==8)||(a29==9))&&(input==1)))))&&(a22==1))&&(a20==1)))&&!(a11==1)))))){ + a24 = 1; + a7 = 0; + a19 = 2; + a25 = 1; + a14 = 9; + a29 = 6; + return 21; + } else if((((!(a7==1)&&((a19==2)&&((((a22==1)&&(((((((a29==6)||(a29==7))||(a29==8))&&(input==1))&&!(a11==1))&&(a20==1))&&!(a24==1)))&&(a28==1))&&!(a0==1))))&&(a14==9))&&!(a25==1))){ + a19 = 1; + a11 = 1; + a20 = 0; + a29 = 9; + a14 = 8; + return -1; + } else if(((((a24==1)&&(!(a11==1)&&((!(a25==1)&&(!(a7==1)&&(((a14==9)&&((((a29==5)&&(a19==2))||(((a29==8)&&(a19==1))||((a29==9)&&(a19==1))))&&(input==4)))&&(a28==1))))&&(a20==1))))&&(a22==1))&&(a0==1))){ + a7 = 1; + a19 = 2; + a25 = 1; + a20 = 0; + a29 = 6; + a24 = 0; + return 21; + } else if((((a28==1)&&((a0==1)&&((a29==8)&&((a22==1)&&(!(a24==1)&&(((a20==1)&&(((a25==1)&&((input==4)&&!(a11==1)))&&(a14==9)))&&(a19==3)))))))&&(a7==1))){ + a11 = 1; + a19 = 1; + a14 = 8; + a24 = 1; + a29 = 5; + return -1; + } else if(((((a25==1)&&(((a7==1)&&((a14==10)&&((a0==1)&&((a24==1)&&((((input==3)&&((a29==6)||(a29==7)))&&!(a20==1))&&(a11==1))))))&&(a22==1)))&&(a19==3))&&(a28==1))){ + a25 = 0; + a0 = 0; + a29 = 9; + a14 = 8; + a19 = 2; + a24 = 0; + return 21; + } else if(((a28==1)&&(!(a11==1)&&((a29==7)&&((a7==1)&&(!(a0==1)&&((((a22==1)&&((a20==1)&&(((a25==1)&&(input==6))&&(a14==9))))&&(a19==5))&&!(a24==1)))))))){ + a11 = 1; + a14 = 8; + a25 = 0; + a19 = 2; + a24 = 1; + a29 = 9; + return 21; + } else if((((!(a7==1)&&((a29==8)&&(!(a0==1)&&(!(a20==1)&&((a22==1)&&((a14==8)&&((((input==2)&&(a19==5))&&(a25==1))&&(a28==1))))))))&&!(a11==1))&&!(a24==1))){ + a0 = 1; + a7 = 1; + a11 = 1; + a24 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a22==1)&&((a7==1)&&(!(a11==1)&&((((((a14==8)&&((a29==5)&&(!(a20==1)&&(!(a25==1)&&(input==4)))))&&(a19==3))&&(a28==1))&&!(a0==1))&&!(a24==1)))))){ + a7 = 0; + a14 = 9; + a29 = 7; + a19 = 4; + a24 = 1; + a25 = 1; + return 24; + } else if(((((((((a14==9)&&(((!(a25==1)&&((input==1)&&!(a0==1)))&&!(a11==1))&&(a22==1)))&&(a19==4))&&!(a24==1))&&(a20==1))&&(a7==1))&&(a29==6))&&(a28==1))){ + a25 = 1; + a0 = 1; + a29 = 5; + a24 = 1; + a14 = 8; + a11 = 1; + a19 = 1; + return -1; + } else if(((((((a14==10)&&((!(a25==1)&&(((a28==1)&&((input==4)&&((((a19==1)&&(a29==8))||((a19==1)&&(a29==9)))||((a19==2)&&(a29==5)))))&&(a11==1)))&&!(a20==1)))&&(a0==1))&&(a22==1))&&!(a7==1))&&(a24==1))){ + a0 = 0; + a25 = 1; + a14 = 8; + a19 = 4; + a29 = 5; + a7 = 1; + return -1; + } else if((((a20==1)&&((((((a29==6)&&(!(a11==1)&&((a14==9)&&((a25==1)&&((input==5)&&!(a7==1))))))&&(a22==1))&&(a0==1))&&(a19==4))&&(a28==1)))&&!(a24==1))){ + a29 = 9; + a0 = 0; + a19 = 3; + a7 = 1; + a14 = 8; + a11 = 1; + a24 = 1; + return -1; + } else if(((((a22==1)&&((((a28==1)&&((((((((a29==5)||(a29==6))||(a29==7))&&(input==1))&&!(a20==1))&&(a14==8))&&!(a24==1))&&(a19==2)))&&!(a25==1))&&(a0==1)))&&!(a7==1))&&!(a11==1))){ + a25 = 1; + a29 = 6; + a20 = 1; + a11 = 1; + a19 = 4; + a24 = 1; + return -1; + } else if(((a14==9)&&((((a20==1)&&(!(a0==1)&&((a28==1)&&((!(a11==1)&&((input==6)&&(((!(a25==1)&&(a29==5))&&(a19==1))||((((a29==8)&&(a25==1))&&(a19==5))||((a19==5)&&((a25==1)&&(a29==9)))))))&&!(a7==1)))))&&!(a24==1))&&(a22==1)))){ + a0 = 1; + a19 = 1; + a24 = 1; + a25 = 1; + a11 = 1; + a7 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if((((a19==4)&&((a14==8)&&(((!(a24==1)&&((!(a11==1)&&(!(a0==1)&&((((a29==5)||(a29==6))&&(input==4))&&(a28==1))))&&(a22==1)))&&(a25==1))&&!(a7==1))))&&!(a20==1))){ + a14 = 9; + a0 = 1; + a24 = 1; + a7 = 1; + a20 = 1; + a19 = 2; + a29 = 5; + return 24; + } else if(((a29==9)&&((a28==1)&&((a22==1)&&(((a20==1)&&(((((((a19==4)&&(input==4))&&!(a11==1))&&!(a7==1))&&!(a25==1))&&(a14==9))&&(a24==1)))&&!(a0==1)))))){ + a25 = 1; + a0 = 1; + a7 = 1; + a11 = 1; + a19 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if(((a0==1)&&(!(a7==1)&&((a22==1)&&((((((a28==1)&&((a19==5)&&((a24==1)&&((a14==8)&&(input==4)))))&&!(a25==1))&&!(a20==1))&&(a29==6))&&!(a11==1)))))){ + a29 = 7; + a19 = 1; + a11 = 1; + a0 = 0; + return 21; + } else if((((((((a19==5)&&(((!(a11==1)&&(((input==6)&&(a14==8))&&(a29==9)))&&(a7==1))&&(a28==1)))&&(a0==1))&&(a20==1))&&(a22==1))&&!(a24==1))&&!(a25==1))){ + a7 = 0; + a11 = 1; + a0 = 0; + a25 = 1; + a24 = 1; + a19 = 4; + return 21; + } else if((!(a7==1)&&(((((a14==9)&&((a28==1)&&((a25==1)&&((a11==1)&&((a19==3)&&(((input==2)&&((a29==8)||((a29==6)||(a29==7))))&&!(a20==1)))))))&&(a22==1))&&!(a24==1))&&(a0==1)))){ + a24 = 1; + a19 = 4; + a25 = 0; + a29 = 5; + return 23; + } else if((((((a14==8)&&(((a29==5)&&(((a24==1)&&(((a28==1)&&((input==6)&&!(a0==1)))&&!(a11==1)))&&(a19==2)))&&!(a20==1)))&&!(a7==1))&&(a22==1))&&(a25==1))){ + a19 = 1; + a11 = 1; + a7 = 1; + a20 = 1; + a0 = 1; + return -1; + } else if(((a28==1)&&((a29==8)&&(!(a0==1)&&(!(a7==1)&&(!(a11==1)&&(((a22==1)&&((a19==1)&&((a25==1)&&((a24==1)&&((a14==9)&&(input==1))))))&&(a20==1)))))))){ + a19 = 3; + a7 = 1; + a14 = 8; + a20 = 0; + a29 = 7; + a11 = 1; + return 24; + } else if(((((((a25==1)&&((a0==1)&&(!(a24==1)&&(((a19==3)&&((((a29==6)||(a29==7))&&(input==2))&&!(a7==1)))&&(a14==8)))))&&(a11==1))&&(a22==1))&&!(a20==1))&&(a28==1))){ + a24 = 1; + a7 = 1; + a25 = 0; + a19 = 4; + a29 = 5; + a0 = 0; + return 23; + } else if(((a25==1)&&(((((((a7==1)&&((a19==2)&&((((((a29==7)||(a29==8))||(a29==9))&&(input==6))&&!(a11==1))&&(a28==1))))&&!(a24==1))&&(a14==8))&&!(a0==1))&&(a20==1))&&(a22==1)))){ + a24 = 1; + a29 = 7; + a11 = 1; + a20 = 0; + return 21; + } else if(((((((a28==1)&&(((!(a24==1)&&((a14==9)&&((a7==1)&&((input==5)&&(a11==1)))))&&!(a20==1))&&(a0==1)))&&(a22==1))&&(a19==5))&&(a29==9))&&(a25==1))){ + a19 = 1; + a29 = 5; + a14 = 8; + a24 = 1; + a20 = 1; + return -1; + } else if(((a22==1)&&((a11==1)&&((a29==8)&&((((a7==1)&&((a19==3)&&((a20==1)&&((((a0==1)&&(input==3))&&(a28==1))&&(a24==1)))))&&(a25==1))&&(a14==9)))))){ + a19 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if((((a7==1)&&((((a20==1)&&((a22==1)&&(((a19==2)&&(((a14==9)&&((input==1)&&((a29==6)||(a29==7))))&&(a28==1)))&&!(a24==1))))&&(a11==1))&&(a25==1)))&&!(a0==1))){ + a29 = 7; + a0 = 1; + a19 = 5; + a11 = 0; + return 23; + } else if((((((((a19==5)&&(((a14==9)&&(!(a25==1)&&((a22==1)&&(!(a7==1)&&(input==2)))))&&(a24==1)))&&(a0==1))&&(a28==1))&&!(a11==1))&&(a20==1))&&(a29==9))){ + a0 = 0; + a14 = 8; + a20 = 0; + a19 = 2; + a11 = 1; + a29 = 8; + return 24; + } else if(((((((((a20==1)&&(((a25==1)&&((a22==1)&&((input==4)&&(a0==1))))&&(a29==9)))&&(a19==5))&&(a7==1))&&(a24==1))&&(a28==1))&&(a14==9))&&!(a11==1))){ + a29 = 5; + a14 = 8; + a11 = 1; + a19 = 1; + return -1; + } else if((!(a24==1)&&(((a28==1)&&((a22==1)&&((((a20==1)&&((a14==10)&&((a0==1)&&(((((a29==8)&&(a19==2))||((a19==2)&&(a29==9)))||((a29==5)&&(a19==3)))&&(input==3)))))&&(a7==1))&&(a11==1))))&&(a25==1)))){ + a29 = 9; + a20 = 0; + a14 = 8; + a25 = 0; + a7 = 0; + a0 = 0; + a19 = 5; + a11 = 0; + return 24; + } else if(((a19==3)&&((a14==9)&&((a25==1)&&((((a22==1)&&((a20==1)&&((((((a29==7)||((a29==5)||(a29==6)))&&(input==3))&&(a28==1))&&!(a0==1))&&!(a7==1))))&&!(a11==1))&&(a24==1)))))){ + a11 = 1; + a20 = 0; + a29 = 6; + a24 = 0; + a7 = 1; + a19 = 4; + a0 = 1; + return -1; + } else if(((a24==1)&&(((a14==10)&&(!(a25==1)&&((a0==1)&&(!(a7==1)&&(((a19==3)&&(((((a29==7)||(a29==8))&&(input==2))&&(a22==1))&&(a20==1)))&&(a11==1))))))&&(a28==1)))){ + a29 = 5; + a14 = 8; + a0 = 0; + a20 = 0; + return 24; + } else if(((a25==1)&&(((a20==1)&&((a11==1)&&(((a19==2)&&(((a0==1)&&((a24==1)&&(((input==6)&&!(a7==1))&&(a29==9))))&&(a14==9)))&&(a28==1))))&&(a22==1)))){ + a14 = 8; + a29 = 5; + a7 = 1; + a19 = 1; + return -1; + } else if(((a22==1)&&(!(a0==1)&&(!(a24==1)&&((((((((((a29==6)||(a29==7))&&(input==4))&&(a25==1))&&(a14==8))&&!(a11==1))&&!(a20==1))&&(a19==2))&&!(a7==1))&&(a28==1)))))){ + a29 = 7; + a19 = 4; + a24 = 1; + a20 = 1; + return -1; + } else if((((((a24==1)&&(((a11==1)&&((a14==10)&&((a28==1)&&(((a19==3)&&((input==5)&&((a29==8)||(a29==9))))&&(a22==1)))))&&!(a7==1)))&&!(a25==1))&&!(a20==1))&&(a0==1))){ + a19 = 5; + a25 = 1; + a14 = 9; + a29 = 9; + return 23; + } else if(((((a11==1)&&((a0==1)&&((a19==5)&&((((a14==10)&&((a20==1)&&(((input==1)&&(a7==1))&&(a28==1))))&&(a22==1))&&!(a24==1)))))&&(a29==6))&&(a25==1))){ + a14 = 8; + a19 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if(((a19==4)&&((a28==1)&&(!(a11==1)&&(!(a20==1)&&(((!(a25==1)&&((((a14==8)&&((input==4)&&(a7==1)))&&(a24==1))&&(a0==1)))&&(a22==1))&&(a29==8))))))){ + a25 = 1; + a20 = 1; + a11 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((((a19==3)&&(((!(a24==1)&&(((!(a11==1)&&(((((a29==6)||(a29==7))&&(input==2))&&!(a7==1))&&!(a0==1)))&&(a28==1))&&!(a20==1)))&&(a22==1))&&(a14==9)))&&(a25==1))){ + a20 = 1; + a24 = 1; + a7 = 1; + a29 = 9; + return -1; + } else if((((a11==1)&&((a22==1)&&(((((((((((a19==3)&&(a29==8))||((a29==9)&&(a19==3)))||((a29==5)&&(a19==4)))&&(input==3))&&(a28==1))&&(a7==1))&&(a20==1))&&(a25==1))&&!(a24==1))&&!(a0==1))))&&(a14==9))){ + a14 = 8; + a11 = 0; + a29 = 6; + a25 = 0; + a7 = 0; + a19 = 3; + return 21; + } else if((((a14==8)&&(!(a11==1)&&((!(a20==1)&&((a0==1)&&((a22==1)&&(!(a7==1)&&((a28==1)&&((a24==1)&&(((a29==6)||(a29==7))&&(input==2))))))))&&(a19==5))))&&(a25==1))){ + a7 = 1; + a20 = 1; + a29 = 5; + a11 = 1; + a19 = 1; + return -1; + } else if(((!(a25==1)&&((((((a19==5)&&(!(a20==1)&&((a24==1)&&(((input==6)&&(a28==1))&&(a0==1)))))&&(a29==9))&&(a22==1))&&(a14==8))&&(a11==1)))&&(a7==1))){ + a7 = 0; + a11 = 0; + a20 = 1; + a29 = 8; + a19 = 1; + a25 = 1; + return 24; + } else if((((((((((a28==1)&&((a29==6)&&((a25==1)&&((a11==1)&&(input==3)))))&&(a20==1))&&!(a24==1))&&(a19==5))&&(a14==8))&&!(a7==1))&&(a22==1))&&!(a0==1))){ + a24 = 1; + a29 = 5; + a7 = 1; + a19 = 1; + a0 = 1; + return -1; + } else if((!(a7==1)&&(!(a0==1)&&((a14==8)&&(!(a24==1)&&((((a28==1)&&((!(a25==1)&&(((((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))||((a29==5)&&(a19==3)))&&(input==3)))&&(a20==1)))&&!(a11==1))&&(a22==1))))))){ + a25 = 1; + a20 = 0; + a29 = 9; + a19 = 1; + a14 = 9; + a24 = 1; + a7 = 1; + return 21; + } else if((((a25==1)&&(!(a0==1)&&((a22==1)&&((a28==1)&&((!(a7==1)&&((((((a19==2)&&(a29==6))||(((a19==1)&&(a29==9))||((a19==2)&&(a29==5))))&&(input==5))&&!(a20==1))&&!(a24==1)))&&!(a11==1))))))&&(a14==9))){ + a29 = 7; + a14 = 8; + a19 = 4; + a24 = 1; + a11 = 1; + a25 = 0; + return 23; + } else if(((a24==1)&&((a7==1)&&(((a14==8)&&((((((a0==1)&&(!(a11==1)&&(((a29==5)||(a29==6))&&(input==5))))&&(a19==5))&&(a28==1))&&!(a20==1))&&(a22==1)))&&(a25==1))))){ + a19 = 4; + a11 = 1; + a29 = 7; + a14 = 9; + a20 = 1; + return 24; + } else if((((!(a11==1)&&((a24==1)&&((!(a20==1)&&((a22==1)&&((a19==3)&&((a7==1)&&(((input==4)&&(a0==1))&&(a29==6))))))&&(a28==1))))&&!(a25==1))&&(a14==9))){ + a29 = 8; + a11 = 1; + a24 = 0; + a25 = 1; + a7 = 0; + a0 = 0; + a14 = 8; + a19 = 4; + return 21; + } else if(((a7==1)&&(((a28==1)&&(((a25==1)&&((!(a11==1)&&(!(a20==1)&&(((a14==8)&&(((a29==7)||(a29==8))&&(input==4)))&&(a22==1))))&&(a24==1)))&&(a19==1)))&&!(a0==1)))){ + a19 = 2; + a0 = 1; + a25 = 0; + a20 = 1; + a7 = 0; + a29 = 9; + a14 = 9; + return 24; + } else if(((a24==1)&&((!(a7==1)&&((a14==10)&&((a20==1)&&((a22==1)&&((a28==1)&&((a11==1)&&((input==5)&&((((a19==5)&&((a25==1)&&(a29==8)))||(((a29==9)&&(a25==1))&&(a19==5)))||((!(a25==1)&&(a29==5))&&(a19==1))))))))))&&(a0==1)))){ + a7 = 1; + a19 = 1; + a29 = 5; + a14 = 8; + a25 = 1; + return -1; + } else if(((a28==1)&&((!(a11==1)&&((((((!(a20==1)&&(((input==5)&&((a29==8)||(a29==9)))&&(a24==1)))&&(a7==1))&&!(a25==1))&&(a19==3))&&!(a0==1))&&(a22==1)))&&(a14==8)))){ + a19 = 2; + a29 = 6; + a11 = 1; + a7 = 0; + a25 = 1; + return 24; + } else if(((((a24==1)&&((a29==8)&&(!(a25==1)&&((a14==8)&&(((a20==1)&&((((a11==1)&&(input==3))&&(a22==1))&&!(a0==1)))&&(a28==1))))))&&(a19==5))&&(a7==1))){ + a29 = 5; + a25 = 1; + a0 = 1; + a19 = 1; + return -1; + } else if((((a20==1)&&((a7==1)&&((a22==1)&&(((a24==1)&&(!(a11==1)&&((a28==1)&&((input==5)&&((((a29==5)&&!(a25==1))&&(a19==1))||((((a25==1)&&(a29==8))&&(a19==5))||((a19==5)&&((a25==1)&&(a29==9)))))))))&&!(a0==1)))))&&(a14==8))){ + a29 = 7; + a20 = 0; + a19 = 3; + a24 = 0; + a0 = 1; + a25 = 1; + a7 = 0; + return 24; + } else if((((a20==1)&&(((a19==5)&&(((a0==1)&&(!(a7==1)&&(((a22==1)&&((a24==1)&&((input==2)&&((a29==6)||(a29==7)))))&&(a14==8))))&&!(a25==1)))&&(a28==1)))&&!(a11==1))){ + a24 = 0; + a20 = 0; + a7 = 1; + a0 = 0; + a29 = 8; + return 23; + } else if(((a25==1)&&(!(a0==1)&&(((a19==2)&&((((a22==1)&&((a24==1)&&(((a28==1)&&(((a29==7)||(a29==8))&&(input==4)))&&!(a11==1))))&&(a7==1))&&!(a20==1)))&&(a14==9))))){ + a19 = 3; + a11 = 1; + a20 = 1; + a25 = 0; + a0 = 1; + a29 = 7; + return -1; + } else if((!(a0==1)&&(!(a7==1)&&(((((a14==8)&&(!(a25==1)&&(((a19==2)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==3))&&(a24==1)))&&(a28==1))))&&!(a11==1))&&(a22==1))&&!(a20==1))))){ + a11 = 1; + a29 = 7; + a19 = 5; + a25 = 1; + a20 = 1; + a7 = 1; + return 24; + } else if(((a11==1)&&(((a25==1)&&(((a20==1)&&((a19==4)&&(!(a7==1)&&(((((a24==1)&&(input==1))&&(a14==8))&&(a28==1))&&(a0==1)))))&&(a29==7)))&&(a22==1)))){ + a25 = 0; + a29 = 6; + a19 = 5; + return 23; + } else if(((a22==1)&&(!(a7==1)&&((a28==1)&&((((((a0==1)&&(((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))&&(input==6))&&!(a25==1)))&&!(a11==1))&&(a20==1))&&(a24==1))&&(a14==8)))))){ + a29 = 5; + a25 = 1; + a7 = 1; + a11 = 1; + a19 = 1; + return -1; + } else if(((a11==1)&&((a22==1)&&(((a24==1)&&(((a28==1)&&((a14==9)&&(!(a0==1)&&((((((a25==1)&&(a29==8))&&(a19==5))||(((a29==9)&&(a25==1))&&(a19==5)))||((a19==1)&&(!(a25==1)&&(a29==5))))&&(input==5)))))&&!(a7==1)))&&(a20==1))))){ + a25 = 1; + a29 = 8; + a19 = 3; + a14 = 8; + return 21; + } else if((((a14==9)&&(((a28==1)&&(!(a24==1)&&(((((a22==1)&&(((input==4)&&!(a7==1))&&!(a20==1)))&&(a25==1))&&(a29==5))&&!(a0==1))))&&(a11==1)))&&(a19==5))){ + a20 = 1; + a29 = 8; + a14 = 8; + a24 = 1; + a19 = 3; + return 24; + } else if(((a0==1)&&((!(a7==1)&&(((a29==8)&&((a14==8)&&(!(a11==1)&&(((((input==1)&&(a28==1))&&!(a24==1))&&(a22==1))&&!(a25==1)))))&&(a20==1)))&&(a19==1)))){ + a11 = 1; + a29 = 9; + a19 = 4; + a20 = 0; + a25 = 1; + a14 = 9; + return 21; + } else if(((a25==1)&&(!(a7==1)&&(((a19==2)&&((((a0==1)&&((a11==1)&&((!(a20==1)&&(((a29==7)||(a29==8))&&(input==4)))&&(a22==1))))&&(a14==10))&&(a28==1)))&&(a24==1))))){ + a19 = 3; + a29 = 6; + a14 = 9; + a20 = 1; + return 21; + } else if(((a14==8)&&((a28==1)&&(!(a0==1)&&((a7==1)&&(!(a11==1)&&(((a20==1)&&(((a22==1)&&((input==6)&&((((a19==3)&&(a29==8))||((a29==9)&&(a19==3)))||((a29==5)&&(a19==4)))))&&(a24==1)))&&(a25==1)))))))){ + a19 = 1; + a29 = 8; + a11 = 1; + a7 = 0; + a24 = 0; + a25 = 0; + return 23; + } else if((!(a7==1)&&((((!(a24==1)&&((a25==1)&&((a14==9)&&((((input==1)&&((((a19==3)&&(a29==8))||((a19==3)&&(a29==9)))||((a19==4)&&(a29==5))))&&!(a20==1))&&!(a11==1)))))&&(a28==1))&&!(a0==1))&&(a22==1)))){ + a7 = 1; + a0 = 1; + a19 = 3; + a25 = 0; + a29 = 7; + return 24; + } else if((!(a7==1)&&((((a0==1)&&((!(a20==1)&&(((a24==1)&&(((input==3)&&(((a19==3)&&(a29==5))||(((a19==2)&&(a29==8))||((a29==9)&&(a19==2)))))&&(a28==1)))&&(a11==1)))&&(a22==1)))&&(a25==1))&&(a14==9)))){ + a25 = 0; + a11 = 0; + a19 = 5; + a20 = 1; + a29 = 9; + return 24; + } else if(((((((((((a25==1)&&(!(a0==1)&&((input==3)&&((a29==8)||((a29==6)||(a29==7))))))&&(a19==3))&&(a14==9))&&(a28==1))&&(a22==1))&&!(a24==1))&&(a7==1))&&!(a20==1))&&!(a11==1))){ + a20 = 1; + a19 = 1; + a24 = 1; + a14 = 8; + a0 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if((((a0==1)&&((a20==1)&&(((a24==1)&&((a28==1)&&(((a22==1)&&((a19==4)&&((a14==9)&&((input==5)&&((a29==9)||((a29==7)||(a29==8)))))))&&!(a7==1))))&&(a25==1))))&&!(a11==1))){ + a7 = 1; + a11 = 1; + a0 = 0; + a24 = 0; + a29 = 5; + a25 = 0; + a14 = 8; + a19 = 5; + return 24; + } else if(((a28==1)&&(((((((((input==3)&&(((((a25==1)&&(a29==9))&&(a19==5))||((a19==1)&&(!(a25==1)&&(a29==5))))||(((a29==6)&&!(a25==1))&&(a19==1))))&&(a0==1))&&(a24==1))&&(a20==1))&&(a22==1))&&(a7==1))&&(a14==9))&&(a11==1)))){ + a20 = 0; + a29 = 7; + a14 = 8; + a19 = 5; + a25 = 0; + a11 = 0; + a24 = 0; + return 24; + } else if((((((a22==1)&&(((a20==1)&&((!(a7==1)&&((((input==6)&&((a29==7)||((a29==5)||(a29==6))))&&(a14==9))&&(a19==5)))&&!(a11==1)))&&(a25==1)))&&!(a24==1))&&!(a0==1))&&(a28==1))){ + a19 = 3; + a29 = 6; + a20 = 0; + a11 = 1; + a25 = 0; + a14 = 8; + a24 = 1; + return 23; + } else if(((a22==1)&&((a14==8)&&((((a25==1)&&((a11==1)&&(!(a24==1)&&((a28==1)&&(!(a0==1)&&((((a29==5)||(a29==6))&&(input==5))&&!(a20==1)))))))&&!(a7==1))&&(a19==2))))){ + a29 = 6; + a24 = 1; + a14 = 9; + a19 = 4; + return 24; + } else if(((a0==1)&&((a20==1)&&(((a24==1)&&(((((((a11==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==3)))&&(a14==10))&&(a25==1))&&(a22==1))&&(a19==5))&&(a7==1)))&&(a28==1))))){ + a25 = 0; + a20 = 0; + a24 = 0; + a19 = 3; + a14 = 8; + a29 = 8; + a11 = 0; + return 23; + } else if((((a25==1)&&(((a28==1)&&((!(a24==1)&&((a11==1)&&(!(a20==1)&&((a22==1)&&((a14==8)&&((a29==9)&&(input==3)))))))&&(a7==1)))&&!(a0==1)))&&(a19==2))){ + a24 = 1; + a29 = 5; + a20 = 1; + a7 = 0; + a19 = 3; + return 23; + } else if((((a7==1)&&((a28==1)&&((((a11==1)&&((a24==1)&&(!(a25==1)&&(((input==6)&&(((a19==2)&&(a29==5))||(((a19==1)&&(a29==8))||((a29==9)&&(a19==1)))))&&!(a0==1)))))&&(a20==1))&&(a14==8))))&&(a22==1))){ + a0 = 1; + a20 = 0; + a29 = 6; + a19 = 5; + a25 = 1; + a24 = 0; + a7 = 0; + a11 = 0; + return -1; + } else if(((a22==1)&&((a0==1)&&(!(a11==1)&&(((((((a19==2)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==4))&&(a20==1)))&&(a28==1))&&(a25==1))&&(a14==8))&&!(a7==1))&&(a24==1)))))){ + a24 = 0; + a29 = 6; + a0 = 0; + a19 = 3; + return 23; + } else if((((((a25==1)&&(((!(a20==1)&&((a14==8)&&(((a11==1)&&((a19==2)&&(input==5)))&&(a7==1))))&&(a28==1))&&!(a24==1)))&&(a22==1))&&!(a0==1))&&(a29==8))){ + a24 = 1; + a14 = 9; + a29 = 7; + return 21; + } else if((((a11==1)&&((((a22==1)&&(((a19==4)&&(!(a24==1)&&((((((a29==7)||(a29==8))||(a29==9))&&(input==4))&&(a14==8))&&!(a20==1))))&&(a0==1)))&&(a28==1))&&!(a7==1)))&&(a25==1))){ + a7 = 1; + a11 = 0; + a29 = 6; + a25 = 0; + return 24; + } else if(((a25==1)&&((a7==1)&&(!(a24==1)&&((!(a0==1)&&(((((a28==1)&&(((input==2)&&((a29==5)||(a29==6)))&&!(a11==1)))&&(a19==5))&&(a14==9))&&(a22==1)))&&(a20==1)))))){ + a29 = 9; + a14 = 8; + a11 = 1; + a24 = 1; + a19 = 1; + return 21; + } else if(((a19==4)&&(!(a20==1)&&(((((a28==1)&&(!(a0==1)&&((a24==1)&&((!(a25==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==5)))&&(a7==1)))))&&(a11==1))&&(a22==1))&&(a14==8))))){ + a20 = 1; + a25 = 1; + a29 = 8; + a19 = 5; + return 24; + } else if((((((a11==1)&&(((((((a29==7)&&((a25==1)&&(input==3)))&&(a20==1))&&(a7==1))&&(a14==8))&&(a28==1))&&(a24==1)))&&!(a0==1))&&(a19==5))&&(a22==1))){ + a24 = 0; + a29 = 6; + a19 = 1; + a20 = 0; + a11 = 0; + a0 = 1; + a7 = 0; + return -1; + } else if((((a14==9)&&((((a11==1)&&((((a24==1)&&(((a20==1)&&(((a29==7)||(a29==8))&&(input==5)))&&(a28==1)))&&(a22==1))&&(a19==2)))&&!(a0==1))&&!(a25==1)))&&(a7==1))){ + a0 = 1; + a19 = 1; + a29 = 5; + a25 = 1; + a14 = 8; + return -1; + } else if(((a28==1)&&(!(a20==1)&&((((a0==1)&&((!(a11==1)&&(((a19==5)&&((a22==1)&&((input==3)&&(a29==6))))&&(a25==1)))&&!(a24==1)))&&(a7==1))&&(a14==8))))){ + a7 = 0; + a29 = 9; + a25 = 0; + a19 = 3; + return 23; + } else if((((((a14==8)&&(!(a7==1)&&(((a11==1)&&(((((input==3)&&(((a29==7)||(a29==8))||(a29==9)))&&(a28==1))&&(a22==1))&&(a25==1)))&&(a19==2))))&&!(a20==1))&&!(a24==1))&&!(a0==1))){ + a20 = 1; + a29 = 6; + a24 = 1; + a19 = 3; + a25 = 0; + return 23; + } else if(((((a14==8)&&((a28==1)&&(!(a11==1)&&((((((a25==1)&&(!(a24==1)&&((a20==1)&&(a7==1))))&&(a29==5))&&(a19==1))||((((!(a25==1)&&((!(a20==1)&&!(a7==1))&&(a24==1)))&&(a29==8))&&(a19==5))||(((!(a25==1)&&((!(a20==1)&&!(a7==1))&&(a24==1)))&&(a29==9))&&(a19==5))))&&(input==1)))))&&!(a0==1))&&(a22==1))){ + a24 = 1; + a20 = 1; + a29 = 8; + a19 = 3; + a25 = 0; + a7 = 0; + return 24; + } else if((((a28==1)&&((a7==1)&&(((!(a25==1)&&(((a24==1)&&((!(a0==1)&&((input==5)&&((a29==6)||(a29==7))))&&(a14==9)))&&(a19==4)))&&(a11==1))&&(a20==1))))&&(a22==1))){ + a19 = 5; + a29 = 6; + a25 = 1; + return -1; + } else if(((((((a11==1)&&((a25==1)&&(!(a7==1)&&((a0==1)&&((a28==1)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==5))&&(a20==1)))))))&&(a22==1))&&(a24==1))&&(a14==9))&&(a19==1))){ + a19 = 5; + a29 = 8; + a7 = 1; + return -1; + } else if(((!(a11==1)&&(((a0==1)&&(!(a7==1)&&(((((a22==1)&&(((input==3)&&(a29==9))&&(a14==8)))&&(a19==4))&&(a25==1))&&(a24==1))))&&(a28==1)))&&!(a20==1))){ + a19 = 1; + a20 = 1; + a11 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if((!(a25==1)&&(!(a11==1)&&((((a7==1)&&((a19==4)&&((a28==1)&&((!(a20==1)&&(((input==6)&&((a29==8)||(a29==9)))&&(a14==8)))&&!(a24==1)))))&&(a22==1))&&!(a0==1))))){ + a29 = 5; + a0 = 1; + a24 = 1; + a25 = 1; + a11 = 1; + a20 = 1; + a19 = 1; + return -1; + } else if((((a28==1)&&((!(a25==1)&&(!(a24==1)&&((a14==8)&&(!(a7==1)&&(((((input==1)&&((a29==8)||((a29==6)||(a29==7))))&&(a11==1))&&(a19==4))&&(a20==1))))))&&(a22==1)))&&(a0==1))){ + a0 = 0; + a19 = 5; + a25 = 1; + a24 = 1; + a29 = 6; + a20 = 0; + return 23; + } else if((!(a25==1)&&((a28==1)&&((a11==1)&&(!(a7==1)&&((a0==1)&&(((((a19==4)&&(!(a24==1)&&((input==6)&&((a29==8)||((a29==6)||(a29==7))))))&&!(a20==1))&&(a22==1))&&(a14==9)))))))){ + a25 = 1; + a11 = 0; + a14 = 8; + a19 = 3; + a0 = 0; + a29 = 8; + return 21; + } else if((((!(a25==1)&&(!(a24==1)&&((a22==1)&&(((a28==1)&&((!(a7==1)&&((((a29==5)&&(a19==2))||(((a19==1)&&(a29==8))||((a29==9)&&(a19==1))))&&(input==1)))&&!(a20==1)))&&(a14==9)))))&&(a0==1))&&!(a11==1))){ + a24 = 1; + a19 = 2; + a14 = 8; + a7 = 1; + a29 = 5; + a0 = 0; + return 24; + } else if((((a19==4)&&((a11==1)&&((a14==8)&&((((a29==9)&&(((((a22==1)&&(input==3))&&(a7==1))&&(a25==1))&&(a0==1)))&&(a28==1))&&!(a20==1)))))&&(a24==1))){ + a25 = 0; + a24 = 0; + a19 = 2; + a29 = 8; + return 24; + } else if(((a14==9)&&((a24==1)&&((a20==1)&&(((a25==1)&&(((a0==1)&&((a29==6)&&((((a28==1)&&(input==4))&&(a7==1))&&(a19==2))))&&(a11==1)))&&(a22==1)))))){ + a7 = 0; + a11 = 0; + a29 = 8; + a19 = 3; + a24 = 0; + a0 = 0; + return 21; + } else if(((((!(a24==1)&&((a29==8)&&(((a28==1)&&((((a11==1)&&((input==6)&&!(a7==1)))&&(a25==1))&&(a14==8)))&&(a0==1))))&&(a19==3))&&!(a20==1))&&(a22==1))){ + a25 = 0; + a0 = 0; + a20 = 1; + a24 = 1; + return 24; + } else if(((a19==5)&&((a29==7)&&((a28==1)&&((a22==1)&&(((((a0==1)&&(!(a25==1)&&((!(a11==1)&&(input==1))&&(a24==1))))&&!(a7==1))&&(a14==8))&&!(a20==1))))))){ + a24 = 0; + a25 = 1; + a11 = 1; + a7 = 1; + a14 = 9; + a20 = 1; + a29 = 9; + a19 = 1; + return 23; + } else if(((((a28==1)&&(((a24==1)&&((a22==1)&&((((a20==1)&&(((input==4)&&((a29==7)||(a29==8)))&&!(a7==1)))&&(a14==8))&&!(a11==1))))&&!(a25==1)))&&(a0==1))&&(a19==3))){ + a20 = 0; + a24 = 0; + a7 = 1; + a29 = 5; + a0 = 0; + return 24; + } else if(((!(a7==1)&&(!(a24==1)&&((((a20==1)&&((a22==1)&&((a28==1)&&((input==5)&&((((a25==1)&&(a29==9))&&(a19==5))||((a19==1)&&(!(a25==1)&&(a29==5))))))))&&(a14==8))&&(a0==1))))&&!(a11==1))){ + a20 = 0; + a11 = 1; + a29 = 7; + a19 = 2; + a25 = 1; + a14 = 9; + return 21; + } else if((((!(a25==1)&&(((a19==4)&&(((!(a20==1)&&(((((a29==6)||(a29==7))&&(input==4))&&!(a7==1))&&(a22==1)))&&!(a11==1))&&!(a0==1)))&&(a28==1)))&&(a14==9))&&(a24==1))){ + a19 = 1; + a20 = 1; + a29 = 6; + a11 = 1; + return -1; + } else if((!(a20==1)&&(!(a11==1)&&((a25==1)&&(((a28==1)&&((a19==4)&&((!(a7==1)&&((a22==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==6))&&(a14==8))))&&!(a0==1))))&&!(a24==1)))))){ + a29 = 9; + a24 = 1; + a11 = 1; + a7 = 1; + return 23; + } else if(((!(a0==1)&&((((a22==1)&&((a25==1)&&((((((a20==1)&&(input==1))&&(a28==1))&&(a7==1))&&(a11==1))&&(a19==1))))&&(a29==6))&&!(a24==1)))&&(a14==9))){ + a0 = 1; + a24 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if((((!(a0==1)&&((a7==1)&&(((a11==1)&&(((a14==9)&&((a20==1)&&(((input==1)&&(a19==5))&&(a28==1))))&&!(a24==1)))&&(a29==5))))&&(a25==1))&&(a22==1))){ + a24 = 1; + a0 = 1; + a14 = 8; + a19 = 1; + return -1; + } else if(((a19==5)&&(!(a0==1)&&((a22==1)&&((a14==8)&&((a24==1)&&((a25==1)&&((a7==1)&&(((a28==1)&&((((a29==8)||(a29==9))&&(input==6))&&!(a11==1)))&&!(a20==1)))))))))){ + a20 = 1; + a11 = 1; + a29 = 8; + a25 = 0; + return -1; + } else if(((a22==1)&&((!(a24==1)&&(((a11==1)&&((a7==1)&&((((a20==1)&&(((((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))||((a19==3)&&(a29==5)))&&(input==6)))&&(a28==1))&&(a14==8))))&&(a0==1)))&&!(a25==1)))){ + a19 = 1; + a25 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if((((a28==1)&&((a29==6)&&(!(a11==1)&&((!(a20==1)&&(!(a0==1)&&((a22==1)&&(((a25==1)&&((input==3)&&(a14==9)))&&(a19==4)))))&&!(a24==1)))))&&(a7==1))){ + a0 = 1; + a25 = 0; + a19 = 1; + a20 = 1; + a29 = 5; + a24 = 1; + return 21; + } else if(((a7==1)&&((((a14==9)&&(((!(a0==1)&&((a22==1)&&(!(a25==1)&&(((input==4)&&((a29==5)||(a29==6)))&&(a28==1)))))&&(a24==1))&&(a11==1)))&&(a19==1))&&!(a20==1)))){ + a29 = 6; + a14 = 8; + return 24; + } else if(((a22==1)&&((a20==1)&&(!(a24==1)&&((((a19==4)&&((a7==1)&&((!(a11==1)&&((a28==1)&&((input==5)&&(((a29==7)||(a29==8))||(a29==9)))))&&(a14==9))))&&(a0==1))&&!(a25==1)))))){ + a0 = 0; + a14 = 8; + a24 = 1; + a19 = 1; + a20 = 0; + a29 = 6; + return 21; + } else if(((a20==1)&&((a7==1)&&((((((!(a0==1)&&((a28==1)&&(((((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))||((a19==2)&&(a29==6)))&&(input==5))))&&(a25==1))&&!(a11==1))&&(a22==1))&&!(a24==1))&&(a14==8))))){ + a11 = 1; + a29 = 9; + a24 = 1; + a19 = 3; + return 23; + } else if(((a25==1)&&((((a22==1)&&((a14==8)&&((!(a11==1)&&((!(a0==1)&&(((input==1)&&((a29==7)||(a29==8)))&&(a28==1)))&&(a24==1)))&&!(a7==1))))&&(a20==1))&&(a19==3)))){ + a19 = 4; + a7 = 1; + a11 = 1; + a29 = 5; + return 24; + } else if((((a22==1)&&(!(a25==1)&&(((!(a11==1)&&((a20==1)&&((!(a7==1)&&(((((a29==8)&&(a19==1))||((a29==9)&&(a19==1)))||((a29==5)&&(a19==2)))&&(input==5)))&&(a28==1))))&&!(a0==1))&&(a14==9))))&&!(a24==1))){ + a19 = 3; + a14 = 8; + a29 = 9; + a24 = 1; + return -1; + } else if(((a29==6)&&(!(a0==1)&&((((a20==1)&&((((!(a24==1)&&(((input==4)&&(a7==1))&&(a14==9)))&&(a28==1))&&(a19==2))&&(a22==1)))&&!(a25==1))&&(a11==1))))){ + a14 = 8; + a24 = 1; + a19 = 1; + a0 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if((!(a7==1)&&(((a28==1)&&((a22==1)&&((!(a11==1)&&((a14==8)&&(!(a20==1)&&((!(a0==1)&&(((a29==6)||(a29==7))&&(input==5)))&&!(a25==1)))))&&(a24==1))))&&(a19==4)))){ + a25 = 1; + a24 = 0; + a19 = 1; + a7 = 1; + a29 = 8; + return 24; + } else if(((a24==1)&&(((a20==1)&&((a28==1)&&((((!(a7==1)&&((a14==8)&&((input==2)&&(((a19==5)&&(a29==5))||(((a29==8)&&(a19==4))||((a19==4)&&(a29==9)))))))&&(a11==1))&&(a0==1))&&(a22==1))))&&(a25==1)))){ + a7 = 1; + a29 = 5; + a20 = 0; + a19 = 2; + return 21; + } else if(((a28==1)&&(((a22==1)&&((a19==3)&&(((!(a25==1)&&((a11==1)&&(((a14==9)&&(!(a24==1)&&(input==4)))&&!(a7==1))))&&!(a0==1))&&(a29==8))))&&!(a20==1)))){ + a19 = 2; + a7 = 1; + a14 = 8; + a11 = 0; + a29 = 9; + a0 = 1; + return 23; + } else if(((a7==1)&&((a19==5)&&((a14==9)&&(((((!(a0==1)&&((!(a24==1)&&((input==3)&&(a25==1)))&&(a20==1)))&&!(a11==1))&&(a22==1))&&(a29==7))&&(a28==1)))))){ + a20 = 0; + a0 = 1; + a7 = 0; + a29 = 5; + a19 = 2; + a14 = 8; + return 21; + } else if(((a19==1)&&(((a14==9)&&(!(a20==1)&&(((((a22==1)&&((a28==1)&&((a0==1)&&((input==6)&&((a29==9)||((a29==7)||(a29==8)))))))&&!(a24==1))&&(a11==1))&&(a25==1))))&&!(a7==1)))){ + a0 = 0; + a19 = 4; + a14 = 8; + a25 = 0; + a29 = 8; + return -1; + } else if(((a19==5)&&(!(a24==1)&&((a7==1)&&((a14==8)&&(((a0==1)&&(!(a20==1)&&((a22==1)&&((a28==1)&&(!(a25==1)&&((input==1)&&((a29==8)||((a29==6)||(a29==7)))))))))&&(a11==1))))))){ + a29 = 5; + a20 = 1; + a19 = 1; + a24 = 1; + a25 = 1; + return -1; + } else if(((a14==8)&&((a25==1)&&(!(a20==1)&&((a7==1)&&(((((a19==5)&&((a24==1)&&(((a0==1)&&(input==5))&&(a22==1))))&&(a28==1))&&(a29==8))&&(a11==1))))))){ + a24 = 0; + a25 = 0; + a19 = 3; + return 24; + } else if((((a0==1)&&(!(a7==1)&&(((!(a24==1)&&(!(a25==1)&&(((a28==1)&&((a14==8)&&((input==5)&&(((a29==6)||(a29==7))||(a29==8)))))&&(a22==1))))&&!(a11==1))&&!(a20==1))))&&(a19==5))){ + a19 = 3; + a29 = 8; + return -1; + } else if(((((a25==1)&&((a20==1)&&((((a11==1)&&((a28==1)&&((a19==5)&&((((a29==6)||(a29==7))&&(input==3))&&(a14==9)))))&&(a0==1))&&(a24==1))))&&(a7==1))&&(a22==1))){ + a24 = 0; + a29 = 9; + a20 = 0; + a14 = 8; + a25 = 0; + a11 = 0; + return 23; + } else if((((a24==1)&&(!(a25==1)&&(((a22==1)&&((a28==1)&&((((!(a0==1)&&(((a29==8)||(a29==9))&&(input==6)))&&(a11==1))&&(a19==2))&&!(a20==1))))&&!(a7==1))))&&(a14==8))){ + a29 = 5; + a25 = 1; + return -1; + } else if(((a25==1)&&((a7==1)&&((a14==9)&&(((a24==1)&&((a20==1)&&((a28==1)&&((a0==1)&&((((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))||((a29==6)&&(a19==4)))&&(input==2))&&(a22==1))))))&&(a11==1)))))){ + a14 = 8; + a29 = 5; + a19 = 1; + return -1; + } else if(((!(a0==1)&&((a19==5)&&((!(a20==1)&&((((a7==1)&&(((a24==1)&&(((a29==6)||(a29==7))&&(input==2)))&&(a14==8)))&&(a22==1))&&!(a25==1)))&&(a28==1))))&&!(a11==1))){ + a11 = 1; + a7 = 0; + a19 = 2; + a29 = 7; + return 21; + } else if(((a7==1)&&((!(a24==1)&&(((a25==1)&&((((((input==4)&&((((a19==3)&&(a29==8))||((a19==3)&&(a29==9)))||((a19==4)&&(a29==5))))&&(a22==1))&&(a28==1))&&(a11==1))&&(a20==1)))&&(a0==1)))&&(a14==10)))){ + a29 = 9; + a19 = 4; + a20 = 0; + a14 = 9; + a7 = 0; + a11 = 0; + return 21; + } else if(((a28==1)&&((!(a7==1)&&((a19==1)&&((((a11==1)&&((a24==1)&&((a14==9)&&(((input==6)&&(a29==9))&&(a20==1)))))&&(a0==1))&&(a22==1))))&&(a25==1)))){ + a29 = 6; + a7 = 1; + a0 = 0; + a19 = 4; + a11 = 0; + a20 = 0; + a24 = 0; + return 23; + } else if(((a0==1)&&((!(a25==1)&&((a19==4)&&((((a11==1)&&((((((a29==5)||(a29==6))&&(input==6))&&(a28==1))&&(a22==1))&&(a24==1)))&&!(a20==1))&&(a14==9))))&&(a7==1)))){ + a29 = 7; + a11 = 0; + a24 = 0; + a0 = 0; + a7 = 0; + return 24; + } else if((((a0==1)&&((a28==1)&&(!(a24==1)&&((a7==1)&&(((((((a19==5)&&((a25==1)&&(a29==9)))||((!(a25==1)&&(a29==5))&&(a19==1)))&&(input==2))&&!(a20==1))&&!(a11==1))&&(a22==1))))))&&(a14==8))){ + a29 = 5; + a25 = 1; + a24 = 1; + a20 = 1; + a19 = 1; + a11 = 1; + return -1; + } else if((!(a0==1)&&(((a24==1)&&(((a19==1)&&(!(a20==1)&&((a28==1)&&(((a25==1)&&(((input==3)&&((a29==5)||(a29==6)))&&(a14==8)))&&(a22==1)))))&&(a7==1)))&&(a11==1)))){ + a29 = 5; + a19 = 4; + a20 = 1; + a25 = 0; + return 23; + } else if((!(a25==1)&&(((a0==1)&&(((a14==8)&&((a22==1)&&((!(a20==1)&&(((((a29==8)||(a29==9))&&(input==2))&&(a28==1))&&(a11==1)))&&(a19==4))))&&(a7==1)))&&(a24==1)))){ + a29 = 5; + a11 = 0; + a19 = 2; + a20 = 1; + return 24; + } else if((((((a25==1)&&((a11==1)&&(!(a20==1)&&((((((((a29==7)||(a29==8))||(a29==9))&&(input==4))&&(a22==1))&&(a24==1))&&(a0==1))&&(a7==1)))))&&(a28==1))&&(a19==2))&&(a14==8))){ + a29 = 5; + a19 = 1; + a20 = 1; + return -1; + } else if((!(a0==1)&&(((a14==9)&&(((!(a24==1)&&(!(a7==1)&&((((((a29==8)||(a29==9))&&(input==1))&&(a19==4))&&(a20==1))&&(a22==1))))&&(a28==1))&&(a11==1)))&&!(a25==1)))){ + a11 = 0; + a29 = 5; + a14 = 8; + a25 = 1; + a19 = 1; + return -1; + } else if(((a22==1)&&(((!(a20==1)&&((a25==1)&&((((((((a29==8)||(a29==9))&&(input==5))&&(a14==8))&&(a19==1))&&!(a24==1))&&(a11==1))&&!(a0==1))))&&(a28==1))&&(a7==1)))){ + a25 = 0; + a24 = 1; + a14 = 9; + a7 = 0; + a29 = 8; + a19 = 4; + a20 = 1; + return 23; + } else if(((a19==3)&&((((!(a25==1)&&((a20==1)&&((a7==1)&&(((a0==1)&&(((a24==1)&&(input==4))&&(a22==1)))&&(a11==1)))))&&(a28==1))&&(a14==10))&&(a29==7)))){ + a24 = 0; + a14 = 8; + a19 = 5; + a0 = 0; + a29 = 8; + return 21; + } else if(((a14==8)&&((!(a24==1)&&((a19==4)&&((a22==1)&&((a28==1)&&((a20==1)&&(!(a7==1)&&(!(a0==1)&&(((input==6)&&((a29==6)||(a29==7)))&&(a25==1)))))))))&&!(a11==1)))){ + a19 = 3; + a14 = 9; + a25 = 0; + a29 = 9; + a24 = 1; + return 23; + } else if((((a19==3)&&((a14==10)&&((a11==1)&&(((a28==1)&&(((a0==1)&&(((((a29==6)||(a29==7))&&(input==5))&&(a25==1))&&!(a24==1)))&&(a7==1)))&&(a22==1)))))&&(a20==1))){ + a20 = 0; + a14 = 8; + a25 = 0; + a19 = 4; + a29 = 8; + a11 = 0; + return 21; + } else if(((a0==1)&&((a22==1)&&((a7==1)&&((!(a24==1)&&(!(a25==1)&&((((a19==4)&&(((input==1)&&((a29==6)||(a29==7)))&&(a14==8)))&&(a11==1))&&(a28==1))))&&!(a20==1)))))){ + a19 = 3; + a29 = 7; + a11 = 0; + return 23; + } else if((((((((a22==1)&&(((!(a20==1)&&((a7==1)&&(((a29==5)||(a29==6))&&(input==4))))&&!(a11==1))&&(a28==1)))&&(a19==1))&&(a14==8))&&(a24==1))&&(a0==1))&&(a25==1))){ + a0 = 0; + a29 = 7; + a7 = 0; + a24 = 0; + a19 = 2; + return 21; + } else if(((a14==9)&&((a29==6)&&((((!(a0==1)&&((a25==1)&&(((a20==1)&&(((input==6)&&(a7==1))&&(a24==1)))&&(a19==1))))&&!(a11==1))&&(a22==1))&&(a28==1))))){ + a0 = 1; + a14 = 8; + a29 = 5; + a11 = 1; + return -1; + } else if(((a14==8)&&((!(a24==1)&&((a20==1)&&(!(a25==1)&&((a22==1)&&(((a19==1)&&((((input==4)&&((a29==6)||(a29==7)))&&(a28==1))&&!(a11==1)))&&!(a7==1))))))&&(a0==1)))){ + a25 = 1; + a20 = 0; + a19 = 4; + a29 = 9; + return 24; + } else if(((a24==1)&&((a28==1)&&(((a25==1)&&(!(a11==1)&&((a19==1)&&((a0==1)&&(((a14==9)&&(((input==2)&&(((a29==7)||(a29==8))||(a29==9)))&&!(a7==1)))&&(a20==1))))))&&(a22==1))))){ + a29 = 6; + a20 = 0; + a11 = 1; + a0 = 0; + a14 = 8; + a25 = 0; + a7 = 1; + a19 = 4; + return -1; + } else if(((((a11==1)&&((((a14==8)&&((((a24==1)&&((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))&&(input==2)))&&(a28==1))&&(a22==1)))&&(a7==1))&&!(a20==1)))&&!(a0==1))&&(a25==1))){ + a0 = 1; + a14 = 9; + a24 = 0; + a29 = 9; + a19 = 1; + a11 = 0; + return 23; + } else if(((!(a20==1)&&((a7==1)&&((a28==1)&&((!(a25==1)&&((((a0==1)&&((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))&&(input==1)))&&(a22==1))&&(a14==9)))&&!(a11==1)))))&&(a24==1))){ + a29 = 7; + a19 = 3; + a24 = 0; + a14 = 8; + return 23; + } else if(((a20==1)&&(((((a28==1)&&(((((a19==5)&&((a14==9)&&((input==2)&&((a29==5)||(a29==6)))))&&!(a0==1))&&(a7==1))&&!(a25==1)))&&!(a24==1))&&(a22==1))&&!(a11==1)))){ + a29 = 5; + a14 = 8; + return -1; + } else if((((((a22==1)&&((!(a11==1)&&((a7==1)&&((a28==1)&&(((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))&&(input==4))&&!(a20==1)))))&&(a14==8)))&&!(a25==1))&&(a24==1))&&!(a0==1))){ + a29 = 9; + a19 = 3; + a24 = 0; + a7 = 0; + a25 = 1; + return 24; + } else if(((a14==9)&&((a7==1)&&(!(a11==1)&&((a28==1)&&(!(a24==1)&&(!(a20==1)&&(((((((a29==8)||((a29==6)||(a29==7)))&&(input==6))&&(a19==4))&&(a22==1))&&!(a0==1))&&!(a25==1))))))))){ + a7 = 0; + a24 = 1; + a29 = 9; + a19 = 5; + a14 = 8; + return -1; + } else if(((a7==1)&&((a29==5)&&((a14==9)&&((!(a20==1)&&((a11==1)&&(((a24==1)&&((a22==1)&&(((input==1)&&(a25==1))&&(a0==1))))&&(a28==1))))&&(a19==3)))))){ + a25 = 0; + a24 = 0; + a7 = 0; + a11 = 0; + a29 = 6; + a14 = 8; + return 21; + } else if((((((a22==1)&&((a0==1)&&((((((((a29==7)||(a29==8))&&(input==6))&&(a25==1))&&!(a20==1))&&(a11==1))&&(a14==9))&&(a28==1))))&&(a19==4))&&(a7==1))&&(a24==1))){ + a19 = 5; + a29 = 8; + a24 = 0; + a7 = 0; + a0 = 0; + a11 = 0; + return 24; + } else if((((!(a7==1)&&(((!(a20==1)&&((((a19==5)&&(((input==2)&&(a11==1))&&(a14==9)))&&(a22==1))&&!(a24==1)))&&(a0==1))&&(a29==6)))&&(a25==1))&&(a28==1))){ + a20 = 1; + a24 = 1; + a19 = 1; + a7 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if((((!(a25==1)&&(!(a0==1)&&((((((((input==5)&&(a20==1))&&(a11==1))&&(a19==2))&&(a14==9))&&(a29==5))&&!(a24==1))&&(a7==1))))&&(a22==1))&&(a28==1))){ + a25 = 1; + a0 = 1; + a14 = 8; + a19 = 1; + a24 = 1; + return -1; + } else if(((a25==1)&&(((((a14==8)&&(((((a22==1)&&((input==2)&&(((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))))&&(a7==1))&&(a0==1))&&!(a20==1)))&&(a11==1))&&(a28==1))&&!(a24==1)))){ + a0 = 0; + a29 = 8; + a19 = 2; + return 23; + } else if(((a22==1)&&(((a0==1)&&(((!(a11==1)&&(((((((a29==8)||(a29==9))&&(input==1))&&!(a24==1))&&!(a7==1))&&!(a25==1))&&(a28==1)))&&(a14==9))&&(a19==5)))&&(a20==1)))){ + a14 = 8; + a7 = 1; + a20 = 0; + a29 = 7; + a0 = 0; + return 23; + } else if((((((a20==1)&&((a0==1)&&((((a28==1)&&((!(a7==1)&&((input==3)&&(((a29==5)||(a29==6))||(a29==7))))&&(a14==8)))&&(a22==1))&&(a24==1))))&&(a11==1))&&(a19==2))&&!(a25==1))){ + a19 = 3; + a25 = 1; + a20 = 0; + a29 = 7; + return 24; + } else if(((((((((a28==1)&&((((a22==1)&&((input==3)&&(((a29==7)||(a29==8))||(a29==9))))&&(a19==4))&&(a14==9)))&&(a24==1))&&(a25==1))&&(a20==1))&&(a11==1))&&(a7==1))&&!(a0==1))){ + a14 = 8; + a20 = 0; + a19 = 2; + a29 = 6; + a11 = 0; + a24 = 0; + a25 = 0; + return 21; + } else if(((a14==9)&&(!(a24==1)&&((((((a7==1)&&(((((((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))||((a19==2)&&(a29==6)))&&(input==3))&&(a25==1))&&(a0==1)))&&(a22==1))&&!(a20==1))&&(a28==1))&&(a11==1))))){ + a0 = 0; + a25 = 0; + a20 = 1; + a19 = 5; + a14 = 8; + a11 = 0; + a29 = 5; + return -1; + } else if(((a14==9)&&((a25==1)&&((a0==1)&&(((a24==1)&&(!(a11==1)&&(!(a20==1)&&((!(a7==1)&&(((input==3)&&((a29==8)||(a29==9)))&&(a28==1)))&&(a22==1)))))&&(a19==1)))))){ + a20 = 1; + a29 = 6; + a19 = 3; + return -1; + } else if(((a22==1)&&((a14==9)&&((a28==1)&&((!(a7==1)&&(((a24==1)&&(((input==2)&&((((a29==5)&&!(a25==1))&&(a19==1))||((((a25==1)&&(a29==8))&&(a19==5))||(((a29==9)&&(a25==1))&&(a19==5)))))&&!(a20==1)))&&!(a11==1)))&&(a0==1)))))){ + a25 = 0; + a20 = 1; + a0 = 0; + a11 = 1; + a19 = 5; + a14 = 8; + a29 = 6; + return 23; + } else if(((a11==1)&&(((a19==2)&&((!(a24==1)&&((a28==1)&&((a0==1)&&((((a7==1)&&((a20==1)&&(input==4)))&&(a14==10))&&!(a25==1)))))&&(a22==1)))&&(a29==8)))){ + a11 = 0; + a7 = 0; + a24 = 1; + a14 = 8; + a19 = 3; + a0 = 0; + return 24; + } else if((((a24==1)&&((a25==1)&&((a11==1)&&((((!(a0==1)&&((((((a29==8)&&(a19==3))||((a29==9)&&(a19==3)))||((a19==4)&&(a29==5)))&&(input==1))&&!(a7==1)))&&(a28==1))&&(a22==1))&&!(a20==1)))))&&(a14==9))){ + a20 = 1; + a14 = 8; + a0 = 1; + a29 = 5; + a19 = 1; + a7 = 1; + return -1; + } else if(((a14==8)&&(!(a20==1)&&((a22==1)&&((a11==1)&&(((a28==1)&&((a0==1)&&((a24==1)&&((((a19==5)&&((a25==1)&&(a29==9)))||(((a29==5)&&!(a25==1))&&(a19==1)))&&(input==3)))))&&!(a7==1))))))){ + a25 = 0; + a19 = 2; + a29 = 8; + a11 = 0; + return 24; + } else if(((a19==4)&&((a7==1)&&((a0==1)&&((a14==9)&&(!(a25==1)&&((!(a11==1)&&(!(a20==1)&&(((a22==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==4)))&&(a28==1))))&&(a24==1)))))))){ + a11 = 1; + a19 = 1; + a14 = 8; + a25 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if(((((a22==1)&&((a19==2)&&((((((((a28==1)&&(input==6))&&(a25==1))&&!(a0==1))&&!(a24==1))&&(a14==9))&&(a20==1))&&(a29==8))))&&!(a7==1))&&(a11==1))){ + a14 = 8; + a25 = 0; + a29 = 6; + a7 = 1; + a20 = 0; + a24 = 1; + a19 = 4; + return 23; + } else if(((a22==1)&&((a19==1)&&((((a28==1)&&(((((((input==6)&&((a29==8)||((a29==6)||(a29==7))))&&(a14==8))&&!(a25==1))&&(a7==1))&&!(a24==1))&&!(a11==1)))&&(a20==1))&&!(a0==1))))){ + a29 = 5; + a25 = 1; + a11 = 1; + a24 = 1; + a0 = 1; + return -1; + } else if((((a24==1)&&(!(a7==1)&&((((a14==8)&&((a28==1)&&(!(a11==1)&&((a22==1)&&((a19==5)&&((input==6)&&((a29==5)||(a29==6))))))))&&!(a0==1))&&!(a25==1))))&&!(a20==1))){ + a7 = 1; + a25 = 1; + a11 = 1; + a29 = 6; + a19 = 3; + return 21; + } else if(((((((a20==1)&&(((!(a25==1)&&(((a19==5)&&((input==4)&&!(a11==1)))&&!(a0==1)))&&(a29==7))&&!(a7==1)))&&(a14==9))&&(a22==1))&&!(a24==1))&&(a28==1))){ + a25 = 1; + a19 = 4; + a7 = 1; + a0 = 1; + a29 = 8; + a20 = 0; + a11 = 1; + return 24; + } else if(((a22==1)&&(((a24==1)&&(((a7==1)&&((a20==1)&&((((((input==5)&&((a29==7)||(a29==8)))&&(a19==2))&&(a25==1))&&(a28==1))&&(a14==9))))&&!(a11==1)))&&!(a0==1)))){ + a11 = 1; + a7 = 0; + a14 = 8; + a19 = 3; + a29 = 8; + return 21; + } else if((((((a22==1)&&((((((a20==1)&&(!(a7==1)&&(((a29==5)||(a29==6))&&(input==5))))&&!(a24==1))&&(a28==1))&&!(a25==1))&&!(a11==1)))&&(a19==5))&&(a14==9))&&!(a0==1))){ + a25 = 1; + a29 = 6; + a14 = 8; + a19 = 3; + a24 = 1; + return 24; + } else if(((a20==1)&&(((a0==1)&&(((a14==10)&&((((a22==1)&&(((input==5)&&(((a29==5)&&(a19==2))||(((a29==8)&&(a19==1))||((a29==9)&&(a19==1)))))&&(a28==1)))&&(a25==1))&&(a24==1)))&&(a11==1)))&&!(a7==1)))){ + a14 = 9; + a7 = 1; + a11 = 0; + a24 = 0; + a19 = 5; + a29 = 5; + a25 = 0; + return -1; + } else if((((a25==1)&&((a19==3)&&((((a24==1)&&((!(a11==1)&&(!(a7==1)&&((!(a20==1)&&(input==5))&&(a22==1))))&&(a29==8)))&&(a14==8))&&(a0==1))))&&(a28==1))){ + a14 = 9; + a19 = 4; + a7 = 1; + a11 = 1; + return 24; + } else if((((a22==1)&&((a28==1)&&((a25==1)&&((((a11==1)&&(((((input==6)&&((a29==7)||(a29==8)))&&(a14==10))&&(a7==1))&&(a24==1)))&&(a20==1))&&(a0==1)))))&&(a19==4))){ + a29 = 7; + a25 = 0; + a0 = 0; + a24 = 0; + a14 = 8; + return 21; + } else if((((((a28==1)&&((a19==3)&&((a0==1)&&(((a7==1)&&((!(a20==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==2)))&&(a22==1)))&&(a14==8)))))&&(a24==1))&&!(a11==1))&&(a25==1))){ + a19 = 1; + a29 = 5; + a11 = 1; + a20 = 1; + return -1; + } else if((((!(a25==1)&&((a20==1)&&((a0==1)&&((a28==1)&&((a14==9)&&(!(a24==1)&&((a11==1)&&((((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))&&(input==5)))))))))&&(a22==1))&&!(a7==1))){ + a19 = 5; + a14 = 8; + a24 = 1; + a0 = 0; + a29 = 9; + return 24; + } else if(((a14==8)&&(!(a25==1)&&(((((a28==1)&&((((!(a24==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==3)))&&!(a11==1))&&!(a20==1))&&!(a7==1)))&&(a22==1))&&(a19==4))&&(a0==1))))){ + a0 = 0; + a19 = 5; + a11 = 1; + a29 = 9; + a24 = 1; + a25 = 1; + return 23; + } else if(((a14==9)&&(((a11==1)&&((a7==1)&&((!(a25==1)&&(((!(a24==1)&&((input==3)&&((((a19==1)&&(a29==8))||((a29==9)&&(a19==1)))||((a29==5)&&(a19==2)))))&&(a28==1))&&(a22==1)))&&!(a20==1))))&&(a0==1)))){ + a29 = 5; + a14 = 8; + a25 = 1; + a24 = 1; + a19 = 1; + a20 = 1; + return -1; + } else if((((a14==9)&&((!(a20==1)&&((!(a7==1)&&(((a0==1)&&(!(a25==1)&&((input==4)&&(((a29==5)&&(a19==4))||(((a19==3)&&(a29==8))||((a19==3)&&(a29==9)))))))&&!(a24==1)))&&(a11==1)))&&(a28==1)))&&(a22==1))){ + a19 = 5; + a14 = 8; + a7 = 1; + a20 = 1; + a29 = 9; + a0 = 0; + a24 = 1; + return 21; + } else if((((a22==1)&&((((a24==1)&&(!(a0==1)&&((a7==1)&&((((((a29==5)||(a29==6))&&(input==1))&&(a25==1))&&!(a20==1))&&(a28==1)))))&&(a19==1))&&(a14==9)))&&(a11==1))){ + a19 = 2; + a29 = 8; + a24 = 0; + a14 = 8; + a25 = 0; + return 23; + } else if((!(a11==1)&&(((a0==1)&&(!(a25==1)&&((a24==1)&&((a28==1)&&((((((input==1)&&((a29==6)||(a29==7)))&&(a19==1))&&(a14==8))&&(a22==1))&&(a20==1))))))&&(a7==1)))){ + a0 = 0; + a19 = 3; + a29 = 7; + a7 = 0; + a20 = 0; + return 24; + } else if(((a20==1)&&(((((a25==1)&&((!(a11==1)&&(!(a0==1)&&((((a22==1)&&(input==5))&&(a19==2))&&(a7==1))))&&(a14==9)))&&!(a24==1))&&(a28==1))&&(a29==9)))){ + a0 = 1; + a14 = 8; + a20 = 0; + a19 = 3; + a29 = 7; + a25 = 0; + return 24; + } else if(((a20==1)&&(((a24==1)&&((!(a7==1)&&(((((a22==1)&&(((a29==6)&&(input==3))&&(a19==4)))&&!(a11==1))&&(a14==8))&&!(a25==1)))&&(a0==1)))&&(a28==1)))){ + a19 = 1; + a7 = 1; + a29 = 5; + a11 = 1; + a25 = 1; + return -1; + } else if((!(a25==1)&&((((a29==9)&&((a20==1)&&(!(a0==1)&&((a7==1)&&((a14==8)&&((((a28==1)&&(input==1))&&(a24==1))&&(a22==1)))))))&&(a11==1))&&(a19==3)))){ + a11 = 0; + a24 = 0; + a0 = 1; + a20 = 0; + a29 = 6; + return -1; + } else if((((a22==1)&&((!(a0==1)&&((((a19==2)&&(!(a11==1)&&((((input==6)&&(a25==1))&&(a24==1))&&(a29==8))))&&(a28==1))&&!(a7==1)))&&(a14==8)))&&(a20==1))){ + a25 = 0; + a0 = 1; + a20 = 0; + a7 = 1; + a24 = 0; + a19 = 4; + a29 = 5; + return -1; + } else if((((a28==1)&&(((((a0==1)&&((!(a25==1)&&((((input==4)&&((a29==5)||(a29==6)))&&(a14==9))&&(a22==1)))&&(a7==1)))&&(a19==3))&&(a20==1))&&!(a24==1)))&&(a11==1))){ + a19 = 4; + a7 = 0; + a25 = 1; + a20 = 0; + a29 = 8; + a11 = 0; + a14 = 8; + return 21; + } else if((!(a20==1)&&(((a22==1)&&(!(a11==1)&&(((((((input==4)&&(((a29==6)&&(a19==2))||(((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))))&&(a14==9))&&(a7==1))&&!(a25==1))&&!(a0==1))&&(a28==1))))&&(a24==1)))){ + a24 = 0; + a29 = 7; + a0 = 1; + a7 = 0; + a11 = 1; + a19 = 3; + return 24; + } else if(((!(a0==1)&&(!(a20==1)&&((a14==8)&&(!(a25==1)&&((((a22==1)&&((!(a11==1)&&((input==5)&&(a19==2)))&&(a24==1)))&&!(a7==1))&&(a28==1))))))&&(a29==9))){ + a29 = 5; + a11 = 1; + a19 = 5; + a20 = 1; + return 21; + } else if(((!(a11==1)&&(!(a0==1)&&(!(a25==1)&&(((a19==4)&&(!(a24==1)&&(!(a20==1)&&((((input==3)&&((a29==8)||((a29==6)||(a29==7))))&&(a7==1))&&(a28==1)))))&&(a22==1)))))&&(a14==9))){ + a14 = 8; + a29 = 7; + a0 = 1; + a7 = 0; + return 23; + } else if((!(a20==1)&&(((((!(a7==1)&&(((a25==1)&&(((((a29==7)||((a29==5)||(a29==6)))&&(input==2))&&(a0==1))&&(a28==1)))&&(a24==1)))&&(a22==1))&&!(a11==1))&&(a14==9))&&(a19==3)))){ + a14 = 8; + a19 = 4; + a20 = 1; + a0 = 0; + a29 = 8; + a11 = 1; + return 24; + } else if((((((!(a7==1)&&(((a14==9)&&(!(a20==1)&&(((((a25==1)&&(a29==9))&&(a19==5))||(((a29==5)&&!(a25==1))&&(a19==1)))&&(input==4))))&&(a24==1)))&&(a11==1))&&(a28==1))&&(a22==1))&&(a0==1))){ + a19 = 3; + a7 = 1; + a14 = 10; + a29 = 8; + a25 = 0; + a20 = 1; + return 23; + } else if((((((a11==1)&&(((((a19==2)&&((a14==9)&&(((a28==1)&&(input==3))&&!(a7==1))))&&(a22==1))&&(a0==1))&&(a24==1)))&&(a29==6))&&!(a25==1))&&(a20==1))){ + a29 = 8; + a0 = 0; + a11 = 0; + a19 = 3; + a20 = 0; + a24 = 0; + a7 = 1; + return 24; + } else if(((a19==5)&&((((a14==8)&&((!(a24==1)&&(((a11==1)&&(((a20==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==1)))&&!(a7==1)))&&(a22==1)))&&(a25==1)))&&(a0==1))&&(a28==1)))){ + a7 = 1; + a29 = 9; + a0 = 0; + a19 = 3; + return 24; + } else if((((a0==1)&&((a24==1)&&((a19==1)&&((!(a11==1)&&((!(a25==1)&&((a22==1)&&(((a7==1)&&(input==4))&&(a28==1))))&&(a14==9)))&&!(a20==1)))))&&(a29==8))){ + a25 = 1; + a24 = 0; + a29 = 5; + a19 = 3; + return 21; + } else if((((a24==1)&&(!(a20==1)&&(((((a22==1)&&(((a19==4)&&(!(a7==1)&&(((a29==6)||(a29==7))&&(input==3))))&&(a25==1)))&&(a28==1))&&(a14==9))&&(a11==1))))&&(a0==1))){ + a29 = 6; + a14 = 8; + a19 = 2; + a25 = 0; + a0 = 0; + return 23; + } else if(((a14==8)&&(!(a24==1)&&((a7==1)&&((((((a28==1)&&(((input==6)&&(((a19==1)&&(a29==9))||((a19==2)&&(a29==5))))&&(a22==1)))&&!(a25==1))&&(a0==1))&&!(a20==1))&&!(a11==1)))))){ + a7 = 0; + a19 = 4; + a14 = 9; + a20 = 1; + a29 = 7; + a24 = 1; + return 21; + } else if(((!(a11==1)&&((a24==1)&&((((((a25==1)&&((!(a7==1)&&(((a29==6)||(a29==7))&&(input==4)))&&(a20==1)))&&(a28==1))&&(a14==8))&&!(a0==1))&&(a19==1))))&&(a22==1))){ + a29 = 8; + a19 = 5; + a24 = 0; + a7 = 1; + a11 = 1; + a14 = 9; + a25 = 0; + return 23; + } else if((!(a20==1)&&(((a0==1)&&(!(a25==1)&&((((((((input==3)&&(a14==9))&&(a22==1))&&!(a7==1))&&(a11==1))&&(a19==4))&&(a28==1))&&(a24==1))))&&(a29==9)))){ + a14 = 8; + a11 = 0; + a24 = 0; + a20 = 1; + a19 = 5; + a0 = 0; + return 23; + } else if((!(a0==1)&&(!(a20==1)&&(((!(a11==1)&&((a14==9)&&(((((input==1)&&(((a29==6)&&(a19==2))||(((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))))&&(a25==1))&&(a28==1))&&(a22==1))))&&!(a7==1))&&!(a24==1))))){ + a29 = 7; + a19 = 3; + a14 = 8; + a0 = 1; + return 23; + } else if((((a0==1)&&(((((!(a11==1)&&((!(a7==1)&&((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))&&(input==6)))&&(a28==1)))&&!(a25==1))&&(a20==1))&&(a14==9))&&(a22==1)))&&!(a24==1))){ + a24 = 1; + a19 = 1; + a7 = 1; + a29 = 5; + a14 = 8; + a25 = 1; + a11 = 1; + return -1; + } else if((!(a0==1)&&((((a20==1)&&((!(a25==1)&&(((a19==4)&&((((input==4)&&((a29==7)||(a29==8)))&&(a22==1))&&!(a24==1)))&&(a28==1)))&&(a7==1)))&&(a14==9))&&(a11==1)))){ + a14 = 8; + a19 = 2; + a11 = 0; + a29 = 7; + a20 = 0; + return -1; + } else if((((((((a28==1)&&((((a29==9)&&((a25==1)&&(!(a24==1)&&(input==1))))&&(a19==4))&&(a11==1)))&&(a22==1))&&(a14==8))&&(a20==1))&&!(a7==1))&&(a0==1))){ + a7 = 1; + a19 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if(((!(a25==1)&&(!(a24==1)&&((a19==4)&&((((a7==1)&&(((a0==1)&&(((input==3)&&(((a29==6)||(a29==7))||(a29==8)))&&(a28==1)))&&(a14==9)))&&!(a20==1))&&!(a11==1)))))&&(a22==1))){ + a14 = 8; + a7 = 0; + a29 = 7; + return 23; + } else if(((((a19==5)&&((((a7==1)&&((a0==1)&&(!(a24==1)&&(((a22==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==3)))&&!(a11==1)))))&&!(a25==1))&&(a20==1)))&&(a28==1))&&(a14==9))){ + a19 = 4; + a11 = 1; + a20 = 0; + a14 = 8; + a0 = 0; + a29 = 5; + a24 = 1; + return 21; + } else if((((a14==8)&&((a28==1)&&((a20==1)&&((!(a24==1)&&(((a19==4)&&((!(a7==1)&&((a25==1)&&(input==3)))&&(a0==1)))&&(a22==1)))&&(a29==8)))))&&(a11==1))){ + a29 = 5; + a19 = 1; + a7 = 1; + a24 = 1; + return -1; + } else if((((!(a7==1)&&((a28==1)&&(((((a19==3)&&((a24==1)&&(((input==3)&&!(a20==1))&&(a14==9))))&&(a22==1))&&(a29==6))&&(a11==1))))&&(a0==1))&&(a25==1))){ + a11 = 0; + a14 = 8; + a19 = 2; + a25 = 0; + a24 = 0; + return -1; + } else if(((a25==1)&&(((a0==1)&&(((a22==1)&&((a28==1)&&(!(a11==1)&&(((((input==4)&&(a20==1))&&(a7==1))&&(a24==1))&&(a19==3)))))&&(a14==9)))&&(a29==9)))){ + a11 = 1; + a29 = 6; + a20 = 0; + a24 = 0; + a19 = 1; + return -1; + } else if((((((a29==8)&&((!(a20==1)&&((a7==1)&&(((a24==1)&&(((a14==8)&&(input==2))&&!(a0==1)))&&(a25==1))))&&(a19==3)))&&(a22==1))&&(a11==1))&&(a28==1))){ + a24 = 0; + a0 = 1; + a11 = 0; + a25 = 0; + a29 = 9; + return -1; + } else if((((((((a28==1)&&((((((input==2)&&((a29==5)||(a29==6)))&&(a11==1))&&(a24==1))&&(a22==1))&&(a14==9)))&&(a19==4))&&(a20==1))&&!(a25==1))&&!(a0==1))&&!(a7==1))){ + a19 = 1; + a14 = 8; + a25 = 1; + a7 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if(((a25==1)&&(((a14==9)&&(((a19==5)&&((a24==1)&&(((a20==1)&&((a22==1)&&(!(a7==1)&&(((a29==7)||(a29==8))&&(input==6)))))&&(a0==1))))&&(a28==1)))&&(a11==1)))){ + a14 = 8; + a29 = 5; + a7 = 1; + a19 = 1; + return -1; + } else if(((a28==1)&&((a14==8)&&((a7==1)&&(((((a19==2)&&((a29==9)&&(!(a20==1)&&(((a24==1)&&(input==2))&&(a11==1)))))&&!(a25==1))&&(a0==1))&&(a22==1)))))){ + a29 = 5; + a25 = 1; + a19 = 1; + a20 = 1; + return -1; + } else if((!(a7==1)&&((a24==1)&&((((a14==9)&&(!(a25==1)&&((((((input==1)&&((a29==8)||(a29==9)))&&!(a0==1))&&(a19==3))&&(a28==1))&&(a22==1))))&&!(a20==1))&&!(a11==1))))){ + a20 = 1; + a14 = 8; + a0 = 1; + a29 = 5; + a7 = 1; + a11 = 1; + a19 = 1; + a25 = 1; + return -1; + } else if(((!(a25==1)&&((!(a7==1)&&(!(a0==1)&&(((a24==1)&&((a19==3)&&((a28==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==5))&&(a20==1)))))&&(a11==1))))&&(a14==9)))&&(a22==1))){ + a19 = 4; + a25 = 1; + a29 = 8; + a0 = 1; + a20 = 0; + return -1; + } else if(((!(a20==1)&&((a28==1)&&(((((a29==8)&&(!(a24==1)&&((a25==1)&&((a7==1)&&((a19==3)&&(input==1))))))&&(a14==8))&&!(a0==1))&&!(a11==1))))&&(a22==1))){ + a19 = 4; + a25 = 0; + a14 = 9; + a24 = 1; + a29 = 7; + return 23; + } else if(((a24==1)&&(((a28==1)&&((a19==1)&&((((a22==1)&&(((!(a11==1)&&((input==3)&&!(a7==1)))&&(a14==9))&&(a20==1)))&&!(a0==1))&&(a29==8))))&&(a25==1)))){ + a29 = 9; + a20 = 0; + a14 = 8; + a0 = 1; + a24 = 0; + a25 = 0; + return 23; + } return calculate_output21(input); + } + + int calculate_output21(int input) { + if(((a22==1)&&((a14==10)&&(!(a7==1)&&(((((!(a20==1)&&((a24==1)&&((a0==1)&&((input==1)&&((a29==6)||(a29==7))))))&&(a19==1))&&!(a25==1))&&(a28==1))&&(a11==1)))))){ + a24 = 0; + a0 = 0; + a11 = 0; + a19 = 4; + a14 = 9; + a29 = 7; + return -1; + } else if((((a19==2)&&((a11==1)&&((((a28==1)&&((((((input==4)&&(((a29==5)||(a29==6))||(a29==7)))&&!(a24==1))&&(a14==8))&&!(a20==1))&&(a0==1)))&&!(a25==1))&&(a7==1))))&&(a22==1))){ + a19 = 4; + a24 = 1; + a25 = 1; + a20 = 1; + a0 = 0; + a29 = 5; + return 24; + } else if((((((a22==1)&&((a24==1)&&(((((a25==1)&&(((input==3)&&((a29==8)||((a29==6)||(a29==7))))&&(a14==9)))&&(a20==1))&&!(a11==1))&&(a19==1))))&&(a7==1))&&(a28==1))&&(a0==1))){ + a14 = 8; + a7 = 0; + a19 = 4; + a24 = 0; + a0 = 0; + a29 = 5; + a11 = 1; + a20 = 0; + return -1; + } else if(((((a0==1)&&(((a14==8)&&((!(a7==1)&&((a24==1)&&(((a20==1)&&((input==6)&&(((a29==7)||(a29==8))||(a29==9))))&&!(a11==1))))&&(a22==1)))&&(a19==3)))&&(a25==1))&&(a28==1))){ + a24 = 0; + a19 = 1; + a29 = 5; + a0 = 0; + a25 = 0; + return 24; + } else if((((a7==1)&&((!(a24==1)&&((((a20==1)&&((a25==1)&&((((input==3)&&((a29==5)||(a29==6)))&&(a14==9))&&!(a11==1))))&&(a28==1))&&(a22==1)))&&(a19==5)))&&!(a0==1))){ + a29 = 7; + a19 = 3; + a0 = 1; + a24 = 1; + a11 = 1; + a25 = 0; + a20 = 0; + return 23; + } else if((!(a11==1)&&((!(a25==1)&&(((((a22==1)&&((a19==2)&&((a14==9)&&((((a29==8)||(a29==9))&&(input==1))&&!(a20==1)))))&&!(a0==1))&&(a24==1))&&!(a7==1)))&&(a28==1)))){ + a20 = 1; + a0 = 1; + a19 = 1; + a29 = 9; + return 21; + } else if(((((!(a0==1)&&(!(a11==1)&&((a14==8)&&((a28==1)&&(((a25==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==2))&&(a22==1)))&&(a19==5))))))&&(a20==1))&&!(a24==1))&&(a7==1))){ + a29 = 5; + a11 = 1; + a24 = 1; + a0 = 1; + a19 = 1; + return -1; + } else if(((a25==1)&&(((a19==3)&&(((a20==1)&&((a29==6)&&(((a14==9)&&((((input==5)&&(a7==1))&&(a11==1))&&(a22==1)))&&!(a0==1))))&&(a28==1)))&&(a24==1)))){ + a0 = 1; + a29 = 5; + a19 = 1; + a14 = 8; + return -1; + } else if((((a19==4)&&((((a25==1)&&(((a22==1)&&(((a11==1)&&(!(a0==1)&&(((a29==5)||(a29==6))&&(input==3))))&&(a28==1)))&&(a7==1)))&&!(a20==1))&&(a14==9)))&&!(a24==1))){ + a14 = 8; + a29 = 5; + a20 = 1; + a19 = 1; + a24 = 1; + a0 = 1; + return -1; + } else if(((((!(a7==1)&&(!(a20==1)&&(((a25==1)&&((a11==1)&&((((((a19==4)&&(a29==8))||((a29==9)&&(a19==4)))||((a29==5)&&(a19==5)))&&(input==1))&&(a14==9))))&&(a24==1))))&&(a28==1))&&(a0==1))&&(a22==1))){ + a20 = 1; + a25 = 0; + a19 = 2; + a14 = 10; + a7 = 1; + a29 = 8; + return 21; + } else if(((((a19==1)&&((a24==1)&&((a7==1)&&((((a28==1)&&((a14==9)&&((a25==1)&&((input==3)&&((a29==9)||((a29==7)||(a29==8)))))))&&(a11==1))&&!(a20==1)))))&&(a22==1))&&!(a0==1))){ + a29 = 5; + a0 = 1; + a20 = 1; + a14 = 8; + return -1; + } else if((((a0==1)&&(!(a24==1)&&(((a19==2)&&((a28==1)&&(!(a20==1)&&(!(a11==1)&&(((a29==7)&&((input==1)&&(a14==9)))&&!(a25==1))))))&&(a7==1))))&&(a22==1))){ + a24 = 1; + a19 = 4; + a29 = 8; + a7 = 0; + a25 = 1; + return 24; + } else if((!(a7==1)&&(((((a24==1)&&(!(a11==1)&&(((a22==1)&&(((((a29==8)||(a29==9))&&(input==3))&&(a0==1))&&(a14==8)))&&(a20==1))))&&(a28==1))&&(a25==1))&&(a19==1)))){ + a7 = 1; + a29 = 5; + a11 = 1; + return -1; + } else if(((!(a24==1)&&(((!(a25==1)&&((a14==8)&&(((a22==1)&&((((input==3)&&(a0==1))&&(a7==1))&&(a19==3)))&&(a28==1))))&&!(a20==1))&&!(a11==1)))&&(a29==7))){ + return 23; + } else if(((((a20==1)&&((!(a11==1)&&(((a7==1)&&(!(a24==1)&&((a25==1)&&((a14==8)&&((input==5)&&(((a29==6)||(a29==7))||(a29==8)))))))&&!(a0==1)))&&(a28==1)))&&(a22==1))&&(a19==1))){ + a7 = 0; + a25 = 0; + a24 = 1; + a19 = 2; + a29 = 5; + a11 = 1; + return -1; + } else if((((a14==8)&&(!(a25==1)&&((a29==7)&&(((a19==3)&&((((a20==1)&&((a28==1)&&((input==5)&&!(a24==1))))&&(a11==1))&&(a0==1)))&&(a22==1)))))&&!(a7==1))){ + a29 = 9; + a25 = 1; + a0 = 0; + a19 = 1; + return 24; + } else if(((((((a0==1)&&((!(a20==1)&&(((a28==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==3))&&(a19==2)))&&(a7==1)))&&(a14==8)))&&(a24==1))&&(a22==1))&&(a11==1))&&(a25==1))){ + a29 = 5; + a7 = 0; + a24 = 0; + a25 = 0; + a20 = 1; + return 24; + } else if((((((a0==1)&&((!(a24==1)&&(((((input==5)&&(((a29==9)&&(a19==1))||((a29==5)&&(a19==2))))&&!(a25==1))&&(a7==1))&&(a22==1)))&&(a11==1)))&&(a20==1))&&(a14==9))&&(a28==1))){ + a0 = 0; + a14 = 8; + a29 = 7; + a25 = 1; + a19 = 2; + return -1; + } else if((((((((a0==1)&&((((((input==4)&&(((a29==7)||(a29==8))||(a29==9)))&&(a20==1))&&!(a11==1))&&(a24==1))&&(a28==1)))&&!(a7==1))&&(a14==8))&&(a25==1))&&(a19==4))&&(a22==1))){ + a29 = 7; + a11 = 1; + a20 = 0; + a0 = 0; + a19 = 1; + a25 = 0; + return 23; + } else if((!(a11==1)&&(!(a7==1)&&((a28==1)&&(((a0==1)&&((((a25==1)&&((((input==4)&&((a29==8)||(a29==9)))&&(a22==1))&&(a20==1)))&&(a14==9))&&(a19==1)))&&!(a24==1)))))){ + a7 = 1; + a11 = 1; + a14 = 8; + a29 = 5; + a24 = 1; + return -1; + } else if((!(a20==1)&&(((a25==1)&&((a14==8)&&((!(a11==1)&&((a7==1)&&((a0==1)&&((a19==3)&&((((a29==8)||(a29==9))&&(input==5))&&(a28==1))))))&&(a22==1))))&&(a24==1)))){ + a25 = 0; + a29 = 6; + a7 = 0; + a24 = 0; + a0 = 0; + return 23; + } else if((((a19==2)&&((a0==1)&&((((!(a20==1)&&(((a22==1)&&(((input==5)&&((a29==5)||(a29==6)))&&(a28==1)))&&(a25==1)))&&(a14==8))&&(a24==1))&&(a11==1))))&&!(a7==1))){ + a11 = 0; + a20 = 1; + a29 = 8; + a25 = 0; + a19 = 3; + return 24; + } else if((((a0==1)&&((a28==1)&&((a22==1)&&((((a11==1)&&((!(a20==1)&&((((a29==7)||(a29==8))&&(input==2))&&!(a25==1)))&&(a14==9)))&&(a19==2))&&(a24==1)))))&&!(a7==1))){ + a29 = 5; + a7 = 1; + a20 = 1; + a14 = 8; + a19 = 1; + a25 = 1; + return -1; + } else if(((((((!(a11==1)&&((!(a7==1)&&((a24==1)&&(((((a19==4)&&(a29==8))||((a29==9)&&(a19==4)))||((a29==5)&&(a19==5)))&&(input==6))))&&(a28==1)))&&(a14==8))&&(a22==1))&&(a20==1))&&!(a0==1))&&!(a25==1))){ + a14 = 9; + a29 = 6; + a19 = 1; + a11 = 1; + a24 = 0; + a7 = 1; + a25 = 1; + a20 = 0; + return 24; + } else if(((((((((a20==1)&&((((a19==1)&&((!(a7==1)&&(a25==1))&&(a29==6)))||((((a29==9)&&(!(a25==1)&&(a7==1)))&&(a19==5))||((((a25==1)&&!(a7==1))&&(a29==5))&&(a19==1))))&&(input==2)))&&(a14==9))&&(a22==1))&&(a11==1))&&!(a0==1))&&!(a24==1))&&(a28==1))){ + a19 = 1; + a25 = 1; + a7 = 1; + a29 = 5; + a0 = 1; + a14 = 8; + a24 = 1; + return -1; + } else if((((a19==1)&&((a20==1)&&(((!(a11==1)&&(!(a25==1)&&((a28==1)&&((((input==4)&&((a29==5)||(a29==6)))&&!(a7==1))&&(a14==9)))))&&(a22==1))&&(a0==1))))&&!(a24==1))){ + a29 = 8; + a20 = 0; + a19 = 4; + a0 = 0; + a14 = 8; + a24 = 1; + return -1; + } else if((((a0==1)&&(((!(a25==1)&&((a14==9)&&((a7==1)&&(!(a24==1)&&(!(a20==1)&&((((a19==2)&&(a29==6))||(((a19==1)&&(a29==9))||((a29==5)&&(a19==2))))&&(input==1)))))))&&(a22==1))&&(a28==1)))&&!(a11==1))){ + a24 = 1; + a29 = 5; + a19 = 2; + return 21; + } else if((!(a0==1)&&((a28==1)&&((a11==1)&&((((a7==1)&&((((a24==1)&&(!(a20==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==4))))&&(a22==1))&&(a14==8)))&&(a19==4))&&(a25==1)))))){ + a24 = 0; + a11 = 0; + a7 = 0; + a19 = 5; + a14 = 9; + a29 = 8; + a25 = 0; + a0 = 1; + a20 = 1; + return 24; + } else if(((a22==1)&&((!(a0==1)&&((a28==1)&&(!(a20==1)&&((a14==8)&&(((((input==1)&&(((a19==3)&&(a29==6))||(((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))))&&!(a7==1))&&!(a25==1))&&!(a24==1))))))&&(a11==1)))){ + a25 = 1; + a20 = 1; + a0 = 1; + a7 = 1; + a29 = 5; + a19 = 1; + a24 = 1; + return -1; + } else if(((a24==1)&&((!(a25==1)&&((((((a11==1)&&(((a29==5)&&(!(a0==1)&&(input==1)))&&(a28==1)))&&(a14==9))&&(a22==1))&&(a19==4))&&(a7==1)))&&(a20==1)))){ + a14 = 8; + a20 = 0; + a24 = 0; + a19 = 5; + return 24; + } else if(((((!(a7==1)&&((a28==1)&&(((((((input==2)&&(a24==1))&&!(a11==1))&&(a29==6))&&(a14==9))&&!(a25==1))&&(a19==4))))&&!(a0==1))&&(a20==1))&&(a22==1))){ + a24 = 0; + a7 = 1; + a19 = 1; + a20 = 0; + a11 = 1; + a14 = 8; + return -1; + } else if(((a28==1)&&(!(a11==1)&&(((a22==1)&&((a19==5)&&((a14==9)&&(!(a25==1)&&((((((a29==7)||(a29==8))&&(input==5))&&!(a24==1))&&!(a0==1))&&(a20==1))))))&&(a7==1))))){ + a7 = 0; + a24 = 1; + a20 = 0; + a0 = 1; + a29 = 9; + a19 = 3; + a11 = 1; + a25 = 1; + return 24; + } else if((!(a25==1)&&((a19==3)&&(((a29==6)&&((((a28==1)&&(((((input==1)&&(a24==1))&&(a22==1))&&!(a20==1))&&(a0==1)))&&!(a7==1))&&(a14==9)))&&(a11==1))))){ + a7 = 1; + a29 = 5; + a20 = 1; + a19 = 1; + a25 = 1; + a14 = 8; + return -1; + } else if(((a19==3)&&((a20==1)&&(((a29==5)&&((((!(a7==1)&&((a22==1)&&(((input==1)&&(a0==1))&&(a24==1))))&&(a14==9))&&(a28==1))&&(a11==1)))&&(a25==1))))){ + a0 = 0; + a20 = 0; + a19 = 5; + a24 = 0; + a29 = 9; + a7 = 1; + a11 = 0; + return 23; + } else if(((a29==7)&&((a14==9)&&((((((a20==1)&&((a19==2)&&((a22==1)&&(!(a11==1)&&((input==3)&&(a0==1))))))&&!(a7==1))&&!(a25==1))&&!(a24==1))&&(a28==1))))){ + a20 = 0; + a24 = 1; + a25 = 1; + a0 = 0; + a29 = 9; + a14 = 8; + return 21; + } else if(((((((a28==1)&&((!(a7==1)&&(((a25==1)&&((((a19==4)&&(a29==5))||(((a19==3)&&(a29==8))||((a19==3)&&(a29==9))))&&(input==3)))&&(a22==1)))&&(a0==1)))&&(a11==1))&&(a24==1))&&!(a20==1))&&(a14==9))){ + a20 = 1; + a25 = 0; + a7 = 1; + a19 = 1; + a29 = 9; + a14 = 10; + return 21; + } else if((!(a25==1)&&((!(a0==1)&&((((a7==1)&&((a11==1)&&(((a22==1)&&(((input==6)&&(a14==8))&&(a19==5)))&&(a28==1))))&&(a24==1))&&(a20==1)))&&(a29==8)))){ + a29 = 5; + return -1; + } else if((((a22==1)&&((a14==8)&&((((!(a20==1)&&((a29==8)&&(((a25==1)&&((input==2)&&(a28==1)))&&(a11==1))))&&(a0==1))&&(a24==1))&&!(a7==1))))&&(a19==5))){ + a11 = 0; + return 24; + } else if(((a14==8)&&((!(a11==1)&&(((a20==1)&&((((((a29==9)&&((input==1)&&(a28==1)))&&!(a24==1))&&(a22==1))&&(a19==3))&&!(a7==1)))&&(a25==1)))&&!(a0==1)))){ + a25 = 0; + a29 = 6; + a19 = 1; + a24 = 1; + a14 = 9; + return 23; + } else if(((a14==9)&&(!(a20==1)&&((a22==1)&&(((((!(a24==1)&&(((a19==2)&&((input==2)&&((a29==6)||(a29==7))))&&!(a25==1)))&&(a28==1))&&!(a7==1))&&(a11==1))&&!(a0==1)))))){ + a0 = 1; + a25 = 1; + a11 = 0; + a19 = 5; + a24 = 1; + a7 = 1; + a29 = 9; + a20 = 1; + return 24; + } else if((((((!(a0==1)&&(((a22==1)&&(!(a11==1)&&(!(a20==1)&&(!(a24==1)&&((input==1)&&((a29==6)||(a29==7)))))))&&(a25==1)))&&(a19==3))&&(a14==8))&&(a28==1))&&!(a7==1))){ + a19 = 5; + a14 = 9; + a29 = 7; + a24 = 1; + a25 = 0; + return 23; + } else if((!(a7==1)&&(((!(a0==1)&&(((a28==1)&&(!(a25==1)&&((a14==9)&&((a29==7)&&(((a19==5)&&(input==1))&&(a24==1))))))&&(a22==1)))&&(a11==1))&&!(a20==1)))){ + a24 = 0; + a19 = 3; + a20 = 1; + a14 = 8; + return 23; + } else if((((!(a20==1)&&(((!(a24==1)&&(!(a25==1)&&((((((a29==6)||(a29==7))&&(input==5))&&(a14==9))&&!(a7==1))&&(a0==1))))&&(a19==3))&&(a11==1)))&&(a22==1))&&(a28==1))){ + a29 = 8; + a25 = 1; + a19 = 4; + return 23; + } else if(((a22==1)&&((a24==1)&&((((((((((input==2)&&(((a29==7)||(a29==8))||(a29==9)))&&(a19==5))&&(a11==1))&&(a28==1))&&(a14==9))&&!(a0==1))&&!(a7==1))&&(a20==1))&&!(a25==1))))){ + a14 = 8; + a19 = 3; + a29 = 6; + a7 = 1; + a20 = 0; + return 21; + } else if(((((!(a7==1)&&(!(a25==1)&&(!(a24==1)&&((a28==1)&&((((a19==4)&&((input==1)&&!(a20==1)))&&(a29==7))&&!(a11==1))))))&&!(a0==1))&&(a14==9))&&(a22==1))){ + a19 = 5; + a11 = 1; + a14 = 8; + a24 = 1; + a29 = 8; + a20 = 1; + return 21; + } else if(((a7==1)&&((!(a11==1)&&(((a28==1)&&((a0==1)&&((a22==1)&&((a24==1)&&((a14==8)&&((((a29==6)&&(a19==2))||(((a29==9)&&(a19==1))||((a29==5)&&(a19==2))))&&(input==4)))))))&&(a25==1)))&&!(a20==1)))){ + a29 = 6; + a7 = 0; + a0 = 0; + a19 = 4; + a24 = 0; + return 23; + } else if(((!(a20==1)&&(!(a0==1)&&((a25==1)&&((a22==1)&&((a14==8)&&(((((((a29==5)||(a29==6))&&(input==1))&&(a28==1))&&(a19==2))&&(a24==1))&&!(a11==1)))))))&&(a7==1))){ + a24 = 0; + a11 = 1; + a29 = 6; + a14 = 9; + a19 = 4; + return 24; + } else if((!(a7==1)&&(!(a0==1)&&((a22==1)&&((a11==1)&&((a28==1)&&((!(a24==1)&&((a20==1)&&(((((a29==6)||(a29==7))&&(input==1))&&(a25==1))&&(a19==2))))&&(a14==9)))))))){ + a14 = 8; + a19 = 1; + a20 = 0; + a29 = 6; + a11 = 0; + a0 = 1; + a25 = 0; + return 21; + } else if(((((a11==1)&&((a24==1)&&(!(a7==1)&&(!(a20==1)&&((a14==8)&&((a28==1)&&((a0==1)&&((((a29==5)||(a29==6))&&(input==1))&&(a22==1)))))))))&&(a19==4))&&!(a25==1))){ + a7 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if((!(a25==1)&&(((((!(a0==1)&&((a22==1)&&(((a19==5)&&((a28==1)&&((a7==1)&&(input==5))))&&(a20==1))))&&(a14==9))&&(a29==9))&&!(a11==1))&&(a24==1)))){ + a0 = 1; + a19 = 2; + a29 = 7; + a20 = 0; + return 24; + } else if(((a20==1)&&((a22==1)&&((a14==9)&&(((a0==1)&&(!(a24==1)&&((a28==1)&&((a7==1)&&(((a25==1)&&((input==2)&&((a29==9)||((a29==7)||(a29==8)))))&&(a11==1))))))&&(a19==4)))))){ + a14 = 8; + a29 = 8; + a24 = 1; + a20 = 0; + a7 = 0; + a0 = 0; + return 21; + } else if(((((!(a7==1)&&(((((((a24==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==4)))&&!(a0==1))&&(a19==2))&&(a14==9))&&(a28==1))&&(a11==1)))&&(a22==1))&&(a25==1))&&!(a20==1))){ + a25 = 0; + a29 = 9; + a0 = 1; + a24 = 0; + a14 = 8; + a7 = 1; + a19 = 5; + a11 = 0; + return 24; + } else if(((a19==1)&&(((a24==1)&&(!(a25==1)&&((a22==1)&&(((((a28==1)&&((a14==9)&&((input==4)&&((a29==6)||(a29==7)))))&&(a11==1))&&(a0==1))&&!(a20==1)))))&&(a7==1)))){ + a7 = 0; + a29 = 9; + a11 = 0; + a0 = 0; + a24 = 0; + return 21; + } else if((((a25==1)&&((a14==9)&&((a28==1)&&(!(a7==1)&&((a19==1)&&(!(a20==1)&&(!(a0==1)&&((a24==1)&&((a22==1)&&((input==3)&&((a29==5)||(a29==6))))))))))))&&(a11==1))){ + a25 = 0; + a19 = 5; + a29 = 5; + a11 = 0; + a0 = 1; + a24 = 0; + return -1; + } else if(((a24==1)&&((((a14==9)&&((a7==1)&&(((a0==1)&&(((a19==1)&&((a28==1)&&((a29==9)&&(input==3))))&&(a22==1)))&&!(a11==1))))&&!(a25==1))&&!(a20==1)))){ + a29 = 5; + a11 = 1; + a14 = 8; + a25 = 1; + a20 = 1; + return -1; + } else if((((a24==1)&&(((((((((a25==1)&&((input==6)&&((a29==5)||(a29==6))))&&(a0==1))&&(a14==9))&&(a7==1))&&(a28==1))&&(a22==1))&&(a11==1))&&!(a20==1)))&&(a19==4))){ + a25 = 0; + a20 = 1; + a29 = 8; + return 24; + } else if(((a28==1)&&(((a19==2)&&(((a11==1)&&((!(a20==1)&&((!(a0==1)&&((((a29==7)||(a29==8))&&(input==2))&&!(a7==1)))&&(a22==1)))&&!(a25==1)))&&!(a24==1)))&&(a14==8)))){ + a24 = 1; + a25 = 1; + a29 = 5; + a0 = 1; + a7 = 1; + a19 = 1; + a20 = 1; + return -1; + } else if(((!(a11==1)&&((a24==1)&&(((a7==1)&&((a28==1)&&(((((input==5)&&((((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))||((a29==6)&&(a19==2))))&&!(a25==1))&&(a14==8))&&(a0==1))))&&!(a20==1))))&&(a22==1))){ + a20 = 1; + a25 = 1; + a19 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if((((a28==1)&&((!(a0==1)&&((a14==8)&&(((a22==1)&&((((a19==5)&&((a29==9)&&((a7==1)&&!(a25==1))))||(((a29==5)&&(!(a7==1)&&(a25==1)))&&(a19==1)))&&(input==5)))&&!(a11==1))))&&(a24==1)))&&!(a20==1))){ + a24 = 0; + a0 = 1; + a29 = 6; + a7 = 0; + a19 = 1; + a25 = 0; + return 23; + } else if(((a29==9)&&((a28==1)&&((a22==1)&&((a14==9)&&((a20==1)&&(((((((input==4)&&!(a24==1))&&!(a7==1))&&(a11==1))&&(a19==2))&&!(a0==1))&&!(a25==1)))))))){ + a0 = 1; + a7 = 1; + a20 = 0; + a11 = 0; + a29 = 8; + a14 = 8; + return 21; + } else if(((a19==4)&&((a28==1)&&(((a25==1)&&((((a0==1)&&(((a22==1)&&((a7==1)&&((input==1)&&((a29==9)||((a29==7)||(a29==8))))))&&!(a24==1)))&&(a20==1))&&(a11==1)))&&(a14==9))))){ + a24 = 1; + a7 = 0; + a25 = 0; + a29 = 8; + a14 = 10; + return 24; + } else if(((!(a11==1)&&((a0==1)&&(((a24==1)&&((!(a20==1)&&((a28==1)&&((input==1)&&(((!(a25==1)&&(a29==5))&&(a19==1))||(((a19==5)&&((a29==8)&&(a25==1)))||((a19==5)&&((a25==1)&&(a29==9))))))))&&!(a7==1)))&&(a14==9))))&&(a22==1))){ + a24 = 0; + a29 = 8; + a25 = 1; + a0 = 0; + a7 = 1; + a19 = 4; + a14 = 8; + a11 = 1; + return 23; + } else if((((((((a22==1)&&((!(a20==1)&&((((input==5)&&((a29==9)||((a29==7)||(a29==8))))&&(a28==1))&&!(a25==1)))&&(a11==1)))&&(a0==1))&&(a7==1))&&(a24==1))&&(a19==1))&&(a14==8))){ + a7 = 0; + a19 = 4; + a24 = 0; + a25 = 1; + a29 = 6; + return 21; + } else if(((((a25==1)&&((a0==1)&&(((a14==9)&&(((!(a11==1)&&((input==6)&&((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))||((a19==5)&&(a29==6)))))&&!(a20==1))&&(a22==1)))&&(a28==1))))&&(a7==1))&&!(a24==1))){ + a29 = 7; + a7 = 0; + a20 = 1; + a24 = 1; + a11 = 1; + a25 = 0; + a19 = 2; + return 21; + } else if(((a0==1)&&((((((a20==1)&&(((((input==2)&&((((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))||((a29==6)&&(a19==5))))&&(a11==1))&&(a14==9))&&(a22==1)))&&(a24==1))&&(a28==1))&&!(a25==1))&&(a7==1)))){ + a11 = 0; + a29 = 7; + a19 = 3; + a25 = 1; + return 21; + } else if(((a29==7)&&(((a25==1)&&(((((!(a20==1)&&(((!(a7==1)&&(input==6))&&!(a0==1))&&(a28==1)))&&(a19==1))&&!(a11==1))&&(a22==1))&&(a14==9)))&&(a24==1)))){ + a20 = 1; + a29 = 5; + a7 = 1; + a0 = 1; + a14 = 8; + a11 = 1; + return -1; + } else if((((a28==1)&&(!(a0==1)&&((((a7==1)&&((!(a20==1)&&((a19==4)&&(((input==2)&&((a29==8)||(a29==9)))&&(a22==1))))&&(a14==8)))&&!(a24==1))&&(a11==1))))&&!(a25==1))){ + a29 = 9; + a24 = 1; + a19 = 5; + a14 = 9; + return 24; + } else if((!(a25==1)&&(((((a20==1)&&(((((a0==1)&&((a19==4)&&((input==1)&&((a29==7)||(a29==8)))))&&(a24==1))&&(a11==1))&&(a28==1)))&&(a14==8))&&!(a7==1))&&(a22==1)))){ + a29 = 7; + a24 = 0; + a25 = 1; + a7 = 1; + return 24; + } else if(((a25==1)&&((a24==1)&&((!(a20==1)&&((!(a0==1)&&((a14==8)&&((!(a11==1)&&(((a19==2)&&(input==2))&&(a22==1)))&&(a29==7))))&&(a7==1)))&&(a28==1))))){ + a29 = 6; + a20 = 1; + a19 = 1; + a7 = 0; + return -1; + } else if(((a28==1)&&(((a19==5)&&(((!(a25==1)&&(!(a0==1)&&((a22==1)&&((a24==1)&&(!(a11==1)&&(((a29==6)||(a29==7))&&(input==5)))))))&&(a14==9))&&!(a7==1)))&&(a20==1)))){ + a29 = 5; + a19 = 3; + a25 = 1; + a7 = 1; + a0 = 1; + a11 = 1; + return -1; + } else if(((a25==1)&&((!(a24==1)&&((a7==1)&&((a14==9)&&((a19==4)&&(!(a11==1)&&((((a22==1)&&((input==1)&&((a29==9)||((a29==7)||(a29==8)))))&&(a20==1))&&(a28==1)))))))&&(a0==1)))){ + a19 = 2; + a29 = 8; + a20 = 0; + a25 = 0; + a24 = 1; + return 21; + } else if((((a24==1)&&((a7==1)&&((((((((a11==1)&&(((a29==8)||(a29==9))&&(input==2)))&&(a28==1))&&(a25==1))&&(a14==9))&&(a20==1))&&(a22==1))&&(a19==2))))&&(a0==1))){ + a19 = 4; + a11 = 0; + a7 = 0; + a0 = 0; + a29 = 6; + a24 = 0; + return 23; + } else if((((a7==1)&&(!(a20==1)&&((a11==1)&&((!(a24==1)&&(((a0==1)&&((a28==1)&&((((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))&&(input==2))))&&!(a25==1)))&&(a22==1)))))&&(a14==9))){ + a29 = 7; + a24 = 1; + a19 = 4; + a25 = 1; + a0 = 0; + a14 = 8; + return 24; + } else if((!(a20==1)&&(!(a7==1)&&((a0==1)&&((((a11==1)&&((a22==1)&&(!(a24==1)&&((((input==6)&&(((a29==7)||(a29==8))||(a29==9)))&&(a25==1))&&(a28==1)))))&&(a19==4))&&(a14==8)))))){ + a7 = 1; + a29 = 7; + a19 = 2; + a0 = 0; + a24 = 1; + return 24; + } else if((((!(a7==1)&&((a20==1)&&((!(a11==1)&&(!(a0==1)&&((!(a24==1)&&((a28==1)&&((input==1)&&((a29==6)||(a29==7)))))&&!(a25==1))))&&(a19==2))))&&(a14==8))&&(a22==1))){ + a20 = 0; + a7 = 1; + a14 = 9; + a29 = 6; + a19 = 1; + a24 = 1; + a25 = 1; + return 23; + } else if((((a28==1)&&(((((a20==1)&&(((a14==10)&&(((a7==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==6)))&&(a0==1)))&&(a19==3)))&&(a24==1))&&(a22==1))&&(a25==1)))&&(a11==1))){ + a7 = 0; + a19 = 5; + a29 = 8; + a0 = 0; + a24 = 0; + a11 = 0; + a14 = 8; + return 24; + } else if(((((a25==1)&&((a22==1)&&((a20==1)&&(((!(a7==1)&&((a28==1)&&((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))&&(input==1))))&&(a11==1))&&(a0==1)))))&&(a24==1))&&(a14==10))){ + a29 = 8; + a14 = 9; + a19 = 3; + a24 = 0; + a20 = 0; + a0 = 0; + return -1; + } else if(((!(a24==1)&&((a22==1)&&(!(a11==1)&&((a14==8)&&(((a20==1)&&((a28==1)&&((a7==1)&&((((a19==5)&&(a29==6))||(((a19==4)&&(a29==9))||((a29==5)&&(a19==5))))&&(input==4)))))&&(a0==1))))))&&(a25==1))){ + a20 = 0; + a29 = 9; + a19 = 3; + a7 = 0; + a25 = 0; + return 23; + } else if((((a29==6)&&((((((((((input==3)&&(a28==1))&&(a19==1))&&(a20==1))&&!(a0==1))&&(a7==1))&&(a24==1))&&(a14==9))&&(a25==1))&&!(a11==1)))&&(a22==1))){ + a29 = 5; + a19 = 5; + a11 = 1; + return -1; + } else if(((a22==1)&&((a0==1)&&((((!(a24==1)&&((a11==1)&&((a14==8)&&(!(a25==1)&&(((((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))||((a29==6)&&(a19==5)))&&(input==1))))))&&(a28==1))&&!(a7==1))&&(a20==1))))){ + a25 = 1; + a0 = 0; + a29 = 7; + a19 = 5; + return 23; + } else if(((a22==1)&&(!(a24==1)&&(((a28==1)&&((a19==5)&&((a0==1)&&(((a11==1)&&((a14==8)&&((a29==7)&&(!(a7==1)&&(input==2)))))&&(a20==1)))))&&!(a25==1))))){ + a19 = 4; + a0 = 0; + a29 = 5; + a7 = 1; + a24 = 1; + return 23; + } else if(((a14==9)&&((a11==1)&&((a28==1)&&((((a19==1)&&((!(a25==1)&&(!(a7==1)&&((a22==1)&&((input==6)&&!(a0==1)))))&&(a20==1)))&&(a24==1))&&(a29==9)))))){ + a7 = 1; + a20 = 0; + a19 = 5; + a11 = 0; + a0 = 1; + return 23; + } else if(((a28==1)&&((a14==8)&&((a20==1)&&((((a19==4)&&(((a25==1)&&((((((a29==5)||(a29==6))||(a29==7))&&(input==6))&&(a22==1))&&!(a11==1)))&&!(a24==1)))&&!(a0==1))&&(a7==1)))))){ + a24 = 1; + a7 = 0; + a19 = 5; + a29 = 9; + a20 = 0; + return 23; + } else if((!(a20==1)&&(((a14==8)&&((a19==2)&&((((a0==1)&&(!(a7==1)&&((((input==4)&&((a29==6)||(a29==7)))&&(a11==1))&&(a28==1))))&&!(a25==1))&&(a24==1))))&&(a22==1)))){ + a29 = 5; + a7 = 1; + a25 = 1; + a19 = 1; + a20 = 1; + return -1; + } else if((((a0==1)&&(!(a11==1)&&((a19==1)&&(((a28==1)&&((((((a14==8)&&(input==6))&&(a25==1))&&(a20==1))&&!(a7==1))&&(a29==7)))&&(a22==1)))))&&(a24==1))){ + a0 = 0; + a29 = 6; + a24 = 0; + return 24; + } else if(((((a14==8)&&((a22==1)&&((((a19==1)&&((a29==5)&&((((!(a11==1)&&(a20==1))&&(a7==1))&&(a24==1))&&(a25==1))))||(((a19==5)&&((((!(a7==1)&&(!(a20==1)&&(a11==1)))&&!(a24==1))&&!(a25==1))&&(a29==8)))||(((!(a25==1)&&(((!(a20==1)&&(a11==1))&&!(a7==1))&&!(a24==1)))&&(a29==9))&&(a19==5))))&&(input==3))))&&!(a0==1))&&(a28==1))){ + a29 = 5; + a25 = 1; + a20 = 1; + a19 = 1; + a11 = 1; + a7 = 1; + a24 = 1; + a0 = 1; + return -1; + } else if(((((a11==1)&&((((((a22==1)&&((a19==2)&&((((a29==6)||(a29==7))&&(input==1))&&(a25==1))))&&(a14==8))&&(a7==1))&&(a28==1))&&(a20==1)))&&!(a0==1))&&!(a24==1))){ + a25 = 0; + a20 = 0; + a7 = 0; + a0 = 1; + a14 = 9; + a19 = 5; + a29 = 5; + a11 = 0; + return 24; + } else if(((a14==9)&&((a19==2)&&(((a0==1)&&((a25==1)&&((((((a28==1)&&((input==2)&&((a29==7)||((a29==5)||(a29==6)))))&&(a22==1))&&!(a24==1))&&(a7==1))&&!(a11==1))))&&!(a20==1))))){ + a14 = 8; + a11 = 1; + a7 = 0; + a0 = 0; + a29 = 8; + a25 = 0; + a24 = 1; + return 24; + } else if((((a0==1)&&(((a14==8)&&((a28==1)&&(((!(a20==1)&&(!(a25==1)&&((((a29==6)||(a29==7))&&(input==3))&&(a19==1))))&&!(a7==1))&&!(a24==1))))&&!(a11==1)))&&(a22==1))){ + a25 = 1; + a29 = 9; + a11 = 1; + a0 = 0; + a7 = 1; + a19 = 4; + a24 = 1; + return 21; + } else if(((a19==3)&&((a7==1)&&((a28==1)&&((a24==1)&&((((a11==1)&&(((((input==4)&&((a29==5)||(a29==6)))&&(a0==1))&&(a14==9))&&(a22==1)))&&(a25==1))&&(a20==1))))))){ + a19 = 2; + a20 = 0; + a29 = 9; + a11 = 0; + a14 = 8; + a7 = 0; + a25 = 0; + a24 = 0; + return 24; + } else if(((a19==2)&&((a22==1)&&((((!(a20==1)&&((a25==1)&&(((a24==1)&&((((a29==5)||(a29==6))&&(input==6))&&(a28==1)))&&(a11==1))))&&(a0==1))&&(a14==8))&&!(a7==1))))){ + a20 = 1; + a19 = 3; + a25 = 0; + a11 = 0; + a29 = 6; + return 21; + } else if(((a14==9)&&((((!(a20==1)&&((a29==8)&&(((((a0==1)&&((input==1)&&!(a11==1)))&&(a19==2))&&!(a24==1))&&(a28==1))))&&(a25==1))&&(a22==1))&&(a7==1)))){ + a7 = 0; + a14 = 8; + a20 = 1; + a29 = 5; + a0 = 0; + a19 = 4; + return 21; + } else if(((((((((a11==1)&&((((((a29==5)&&(a19==3))||(((a29==8)&&(a19==2))||((a19==2)&&(a29==9))))&&(input==1))&&!(a25==1))&&(a7==1)))&&(a20==1))&&(a0==1))&&(a28==1))&&(a14==8))&&(a22==1))&&!(a24==1))){ + a19 = 3; + a29 = 9; + a0 = 0; + a24 = 1; + return 24; + } else if(((((!(a24==1)&&((a20==1)&&((!(a7==1)&&(((a22==1)&&((input==1)&&(((a29==5)&&(a19==3))||(((a29==8)&&(a19==2))||((a29==9)&&(a19==2))))))&&(a25==1)))&&(a28==1))))&&(a14==8))&&(a11==1))&&(a0==1))){ + a0 = 0; + a20 = 0; + a29 = 5; + a24 = 1; + a19 = 3; + return 23; + } else if(((a28==1)&&(((((a25==1)&&((a0==1)&&((a7==1)&&((((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))&&(input==4))&&!(a24==1))&&(a22==1)))))&&!(a11==1))&&(a14==8))&&!(a20==1)))){ + a14 = 9; + a24 = 1; + a20 = 1; + a7 = 0; + a19 = 4; + a29 = 9; + return 24; + } else if(((((a19==5)&&((a29==8)&&((a0==1)&&(((a14==8)&&((!(a7==1)&&(((input==2)&&!(a20==1))&&(a24==1)))&&(a22==1)))&&!(a11==1)))))&&(a25==1))&&(a28==1))){ + a20 = 1; + a7 = 1; + a19 = 1; + a29 = 5; + a11 = 1; + return -1; + } else if(((((((((a14==9)&&((((a11==1)&&((input==5)&&((a29==6)||(a29==7))))&&(a28==1))&&!(a7==1)))&&(a19==5))&&(a22==1))&&!(a24==1))&&!(a25==1))&&(a0==1))&&!(a20==1))){ + a29 = 5; + a25 = 1; + a20 = 1; + a7 = 1; + a19 = 1; + a14 = 8; + a24 = 1; + return -1; + } else if(((((a14==9)&&((((a22==1)&&(!(a7==1)&&((a29==8)&&(!(a11==1)&&(!(a24==1)&&((a19==3)&&(input==2)))))))&&!(a25==1))&&(a28==1)))&&!(a0==1))&&!(a20==1))){ + a11 = 1; + a25 = 1; + a29 = 5; + a0 = 1; + a19 = 1; + a20 = 1; + a14 = 8; + a24 = 1; + a7 = 1; + return -1; + } else if(((a28==1)&&(((((a22==1)&&((a11==1)&&(((a14==9)&&((a24==1)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==3))&&(a0==1))))&&(a19==2))))&&(a25==1))&&(a7==1))&&!(a20==1)))){ + a20 = 1; + a29 = 5; + a19 = 1; + a14 = 8; + return -1; + } else if((((((((a22==1)&&((!(a7==1)&&((a25==1)&&(((input==5)&&(a28==1))&&(a0==1))))&&(a29==9)))&&!(a20==1))&&!(a11==1))&&(a19==5))&&!(a24==1))&&(a14==9))){ + a20 = 1; + a29 = 8; + a19 = 4; + a24 = 1; + return -1; + } else if((!(a11==1)&&(!(a24==1)&&(((a20==1)&&((a19==2)&&(((a14==9)&&((a25==1)&&((((input==3)&&((a29==5)||(a29==6)))&&!(a7==1))&&(a28==1))))&&(a0==1))))&&(a22==1))))){ + a14 = 8; + a19 = 1; + a24 = 1; + a11 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if(((!(a11==1)&&((((a0==1)&&(((a29==7)&&((a28==1)&&((a14==9)&&(((a24==1)&&(input==5))&&(a20==1)))))&&(a19==2)))&&(a25==1))&&(a7==1)))&&(a22==1))){ + a25 = 0; + a20 = 0; + a19 = 4; + a29 = 9; + return 24; + } else if(((((!(a11==1)&&(!(a24==1)&&(((((a19==4)&&(!(a25==1)&&((input==6)&&(((a29==6)||(a29==7))||(a29==8)))))&&(a28==1))&&(a14==8))&&(a7==1))))&&!(a0==1))&&(a20==1))&&(a22==1))){ + a24 = 1; + a29 = 6; + a14 = 9; + a19 = 5; + return 23; + } else if((((a22==1)&&((a14==8)&&(!(a24==1)&&((a28==1)&&((!(a25==1)&&((!(a20==1)&&((a0==1)&&((input==4)&&((a29==5)||(a29==6)))))&&(a11==1)))&&(a19==1))))))&&(a7==1))){ + a0 = 0; + a19 = 3; + a29 = 5; + a7 = 0; + a25 = 1; + return 24; + } else if(((a22==1)&&((a14==9)&&(!(a0==1)&&(((((((a25==1)&&((a19==1)&&(((a29==7)||(a29==8))&&(input==5))))&&!(a7==1))&&!(a24==1))&&(a11==1))&&(a20==1))&&(a28==1)))))){ + a0 = 1; + a7 = 1; + a14 = 8; + a29 = 5; + a24 = 1; + return -1; + } else if(((((a25==1)&&((!(a24==1)&&(((!(a20==1)&&((((a7==1)&&(input==4))&&(a28==1))&&(a29==9)))&&(a14==9))&&(a22==1)))&&(a19==3)))&&!(a0==1))&&(a11==1))){ + a29 = 8; + a19 = 1; + a14 = 8; + a20 = 1; + return -1; + } else if(((a28==1)&&((!(a7==1)&&((a14==9)&&(((a19==4)&&((a24==1)&&(((!(a0==1)&&((input==4)&&(a20==1)))&&(a29==6))&&!(a11==1))))&&(a22==1))))&&!(a25==1)))){ + a25 = 1; + a14 = 8; + a24 = 0; + a20 = 0; + a29 = 8; + a19 = 5; + return 23; + } else if(((a0==1)&&((a19==5)&&((a24==1)&&((((a14==8)&&((!(a20==1)&&((a22==1)&&(((input==3)&&((a29==8)||(a29==9)))&&(a7==1))))&&!(a11==1)))&&!(a25==1))&&(a28==1)))))){ + a7 = 0; + a19 = 4; + a25 = 1; + a20 = 1; + a11 = 1; + a29 = 5; + return 23; + } else if(((a22==1)&&((a19==4)&&((((a24==1)&&((a0==1)&&(((a20==1)&&((a14==9)&&((a25==1)&&((input==1)&&(((a29==6)||(a29==7))||(a29==8))))))&&(a28==1))))&&!(a7==1))&&(a11==1))))){ + a24 = 0; + a11 = 0; + a20 = 0; + a29 = 7; + a19 = 5; + a14 = 8; + return 23; + } else if(((((!(a20==1)&&((a14==9)&&((a19==4)&&((((((input==1)&&((a29==7)||(a29==8)))&&(a11==1))&&!(a7==1))&&!(a0==1))&&!(a25==1)))))&&(a28==1))&&!(a24==1))&&(a22==1))){ + a19 = 1; + a0 = 1; + a20 = 1; + a7 = 1; + a25 = 1; + a29 = 5; + a24 = 1; + a14 = 8; + return -1; + } else if(((((((a29==6)&&((a14==9)&&(((a19==3)&&((((a22==1)&&(input==3))&&(a7==1))&&!(a20==1)))&&!(a11==1))))&&!(a25==1))&&(a24==1))&&(a28==1))&&(a0==1))){ + a7 = 0; + a19 = 5; + a0 = 0; + a29 = 5; + a14 = 8; + return 24; + } else if(((a14==8)&&((a19==1)&&((a11==1)&&(((a20==1)&&(((a28==1)&&(((a7==1)&&(((a25==1)&&(input==1))&&(a29==7)))&&(a0==1)))&&!(a24==1)))&&(a22==1)))))){ + a11 = 0; + a20 = 0; + a29 = 6; + return 23; + } else if((((a19==5)&&((((((a22==1)&&((a28==1)&&((a11==1)&&(!(a24==1)&&((input==6)&&(((a29==5)||(a29==6))||(a29==7)))))))&&(a20==1))&&!(a25==1))&&(a14==9))&&(a7==1)))&&(a0==1))){ + a19 = 1; + a29 = 5; + a24 = 1; + a14 = 8; + a25 = 1; + return -1; + } else if((!(a7==1)&&(((((((a14==9)&&(((input==3)&&(((!(a25==1)&&(a29==5))&&(a19==1))||(((a19==5)&&((a29==8)&&(a25==1)))||((a19==5)&&((a29==9)&&(a25==1))))))&&!(a20==1)))&&(a22==1))&&!(a11==1))&&(a0==1))&&(a24==1))&&(a28==1)))){ + a14 = 8; + a19 = 1; + a20 = 1; + a7 = 1; + a25 = 1; + a29 = 5; + a11 = 1; + return -1; + } else if((((!(a25==1)&&((a0==1)&&(((!(a7==1)&&((a20==1)&&((a14==9)&&((a11==1)&&((input==2)&&(((a29==6)||(a29==7))||(a29==8)))))))&&!(a24==1))&&(a22==1))))&&(a28==1))&&(a19==5))){ + a20 = 0; + a29 = 8; + a14 = 10; + a25 = 1; + a24 = 1; + a19 = 3; + return 23; + } else if(((a20==1)&&(((((a28==1)&&(!(a7==1)&&((a11==1)&&((a19==5)&&((!(a24==1)&&((input==6)&&((a29==8)||((a29==6)||(a29==7)))))&&!(a25==1))))))&&(a14==9))&&(a22==1))&&(a0==1)))){ + a20 = 0; + a25 = 1; + a29 = 6; + a19 = 3; + a24 = 1; + a7 = 1; + return 21; + } else if((((a20==1)&&((((((a14==8)&&((a25==1)&&((!(a7==1)&&((input==6)&&(a0==1)))&&(a28==1))))&&(a24==1))&&(a11==1))&&(a19==5))&&(a22==1)))&&(a29==9))){ + a7 = 1; + a20 = 0; + a29 = 8; + return 21; + } else if((((((((((a19==1)&&(!(a20==1)&&((((a29==6)||(a29==7))&&(input==6))&&!(a25==1))))&&(a0==1))&&!(a24==1))&&!(a7==1))&&(a14==8))&&(a11==1))&&(a22==1))&&(a28==1))){ + a29 = 5; + a25 = 1; + a24 = 1; + a0 = 0; + a19 = 3; + a20 = 1; + a11 = 0; + return 21; + } else if(((a11==1)&&((a14==9)&&(!(a25==1)&&(!(a20==1)&&(((a24==1)&&((((a7==1)&&((((a19==5)&&(a29==5))||(((a29==8)&&(a19==4))||((a29==9)&&(a19==4))))&&(input==6)))&&(a28==1))&&(a22==1)))&&!(a0==1))))))){ + a25 = 1; + a0 = 1; + a11 = 0; + a19 = 4; + a29 = 8; + a7 = 0; + a14 = 8; + a24 = 0; + return 24; + } else if(((a25==1)&&(((a7==1)&&((((((((a19==2)&&((input==5)&&((a29==5)||(a29==6))))&&(a14==9))&&(a24==1))&&(a20==1))&&!(a11==1))&&(a22==1))&&!(a0==1)))&&(a28==1)))){ + a14 = 8; + a19 = 1; + a11 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if((!(a20==1)&&(((((a25==1)&&((((!(a24==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==2))&&!(a7==1)))&&(a22==1))&&(a11==1))&&(a14==9)))&&(a19==4))&&!(a0==1))&&(a28==1)))){ + a7 = 1; + a29 = 6; + a25 = 0; + a19 = 5; + return -1; + } else if((((((a29==7)&&((a28==1)&&((((!(a0==1)&&((a14==8)&&(!(a25==1)&&(input==3))))&&!(a24==1))&&!(a20==1))&&(a19==5))))&&(a7==1))&&!(a11==1))&&(a22==1))){ + return 23; + } else if(((a24==1)&&((a14==9)&&(((!(a20==1)&&(!(a11==1)&&(((a7==1)&&((a25==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==3))&&(a28==1))))&&(a19==5))))&&(a0==1))&&(a22==1))))){ + a14 = 8; + a20 = 1; + a11 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((((((a19==4)&&(((a14==9)&&((a7==1)&&((a28==1)&&((!(a24==1)&&(((a29==8)||(a29==9))&&(input==6)))&&(a20==1)))))&&!(a25==1)))&&(a22==1))&&(a0==1))&&(a11==1))){ + a0 = 0; + a7 = 0; + a24 = 1; + a29 = 9; + a11 = 0; + a14 = 8; + return -1; + } else if(((a14==9)&&(((a25==1)&&((a28==1)&&(((a29==8)&&((((((input==3)&&!(a7==1))&&(a0==1))&&(a19==1))&&(a11==1))&&(a20==1)))&&(a22==1))))&&(a24==1)))){ + a14 = 8; + a29 = 5; + a7 = 1; + return -1; + } else if((((a20==1)&&(!(a11==1)&&((a25==1)&&(((a24==1)&&((((!(a0==1)&&((input==6)&&((a29==6)||(a29==7))))&&(a22==1))&&(a14==8))&&(a28==1)))&&(a19==1)))))&&!(a7==1))){ + a25 = 0; + a29 = 6; + a19 = 5; + a24 = 0; + a11 = 1; + a14 = 9; + a7 = 1; + return 24; + } else if(((a28==1)&&(!(a7==1)&&(((((a25==1)&&((((a22==1)&&((input==6)&&(((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))))&&!(a24==1))&&(a20==1)))&&(a11==1))&&!(a0==1))&&(a14==9))))){ + a29 = 7; + a24 = 1; + a14 = 8; + a19 = 2; + a7 = 1; + a20 = 0; + return 21; + } else if((!(a20==1)&&((a19==4)&&(!(a7==1)&&(((a28==1)&&((a14==8)&&((!(a24==1)&&((a22==1)&&((a0==1)&&((input==2)&&(((a29==5)||(a29==6))||(a29==7))))))&&!(a25==1))))&&!(a11==1)))))){ + a7 = 1; + a19 = 2; + a29 = 9; + return -1; + } else if(((a20==1)&&(((!(a24==1)&&((a22==1)&&(!(a11==1)&&(((((((a29==6)||(a29==7))&&(input==6))&&(a0==1))&&(a7==1))&&(a19==3))&&!(a25==1)))))&&(a28==1))&&(a14==9)))){ + a0 = 0; + a14 = 8; + a20 = 0; + a25 = 1; + a24 = 1; + a29 = 8; + return -1; + } else if((((!(a24==1)&&(((((a0==1)&&((((a28==1)&&((a20==1)&&(input==3)))&&(a29==5))&&!(a11==1)))&&(a19==3))&&(a7==1))&&(a22==1)))&&!(a25==1))&&(a14==9))){ + a11 = 1; + a0 = 0; + a14 = 8; + a19 = 2; + a25 = 1; + return -1; + } else if(((a20==1)&&(!(a25==1)&&(((a28==1)&&(((a14==8)&&((((a19==1)&&(!(a0==1)&&((input==6)&&(((a29==5)||(a29==6))||(a29==7)))))&&(a22==1))&&!(a24==1)))&&(a11==1)))&&(a7==1))))){ + a14 = 9; + a25 = 1; + a24 = 1; + a29 = 9; + a19 = 2; + return 24; + } else if((((a19==5)&&((a11==1)&&(((a7==1)&&(((((a22==1)&&((a25==1)&&((a28==1)&&(input==5))))&&!(a24==1))&&(a14==9))&&(a0==1)))&&!(a20==1))))&&(a29==7))){ + a14 = 10; + a19 = 1; + a29 = 8; + a20 = 1; + return 21; + } else if(((((((!(a0==1)&&((a11==1)&&((((a25==1)&&(!(a7==1)&&(input==5)))&&!(a20==1))&&(a29==7))))&&(a28==1))&&(a14==8))&&(a22==1))&&(a19==5))&&(a24==1))){ + a20 = 1; + a7 = 1; + a29 = 5; + a19 = 1; + a0 = 1; + return -1; + } else if((((a14==8)&&(!(a7==1)&&((a20==1)&&(((((((a19==1)&&((a29==8)&&(input==3)))&&(a22==1))&&(a28==1))&&(a0==1))&&!(a24==1))&&!(a25==1)))))&&!(a11==1))){ + a20 = 0; + a29 = 6; + a19 = 5; + a25 = 1; + a11 = 1; + a14 = 9; + return 21; + } else if((!(a25==1)&&((a24==1)&&(((((a22==1)&&((((((input==6)&&((a29==9)||((a29==7)||(a29==8))))&&(a14==9))&&!(a0==1))&&(a11==1))&&!(a7==1)))&&(a19==3))&&!(a20==1))&&(a28==1))))){ + a0 = 1; + a14 = 8; + a7 = 1; + a24 = 0; + a11 = 0; + a19 = 4; + a29 = 9; + return 21; + } else if(((a22==1)&&((a19==4)&&((((a20==1)&&((((a14==9)&&((((input==3)&&((a29==9)||((a29==7)||(a29==8))))&&!(a25==1))&&!(a11==1)))&&(a28==1))&&(a0==1)))&&(a7==1))&&!(a24==1))))){ + a29 = 7; + a7 = 0; + a19 = 3; + a14 = 8; + a20 = 0; + return 21; + } else if(((a19==4)&&((!(a20==1)&&(((a7==1)&&((a14==8)&&((a11==1)&&((a22==1)&&((a29==8)&&((a25==1)&&((a0==1)&&(input==2))))))))&&(a24==1)))&&(a28==1)))){ + a29 = 7; + a19 = 5; + a24 = 0; + return 24; + } else if((((a28==1)&&((a19==2)&&(!(a0==1)&&((a25==1)&&((!(a11==1)&&(!(a20==1)&&((a24==1)&&((((a29==6)||(a29==7))&&(input==5))&&(a22==1)))))&&!(a7==1))))))&&(a14==8))){ + a24 = 0; + a19 = 4; + a11 = 1; + a29 = 9; + a14 = 9; + return 21; + } else if((((a24==1)&&(!(a20==1)&&(((a28==1)&&((a7==1)&&((((((input==1)&&(a22==1))&&(a29==6))&&(a11==1))&&(a0==1))&&(a14==9))))&&(a19==5))))&&!(a25==1))){ + a7 = 0; + a11 = 0; + a29 = 9; + a0 = 0; + a24 = 0; + return 24; + } else if(((!(a0==1)&&(((a14==9)&&((!(a20==1)&&(((a28==1)&&((a22==1)&&(((input==6)&&((a29==7)||(a29==8)))&&(a7==1))))&&!(a25==1)))&&(a19==3)))&&(a24==1)))&&!(a11==1))){ + a29 = 5; + a7 = 0; + a11 = 1; + a0 = 1; + a25 = 1; + return 23; + } else if(((((a14==10)&&((a11==1)&&((a0==1)&&((a29==5)&&((a20==1)&&((a7==1)&&((((input==6)&&(a19==4))&&(a24==1))&&(a25==1))))))))&&(a28==1))&&(a22==1))){ + a25 = 0; + a0 = 0; + a20 = 0; + a29 = 7; + a19 = 3; + a11 = 0; + a14 = 8; + return 24; + } else if(((a28==1)&&((a19==1)&&(((a25==1)&&((((!(a11==1)&&(((a7==1)&&((input==3)&&(((a29==6)||(a29==7))||(a29==8))))&&!(a0==1)))&&(a14==9))&&(a22==1))&&(a20==1)))&&!(a24==1))))){ + a0 = 1; + a7 = 0; + a19 = 3; + a29 = 8; + a20 = 0; + return 23; + } else if(((a22==1)&&(((((a19==3)&&((a24==1)&&((((a11==1)&&(((a25==1)&&(input==4))&&(a29==5)))&&(a20==1))&&(a14==9))))&&!(a7==1))&&(a0==1))&&(a28==1)))){ + a19 = 1; + a14 = 8; + a7 = 1; + return -1; + } else if(((((a0==1)&&((a24==1)&&((a20==1)&&((a22==1)&&(((!(a7==1)&&((a28==1)&&(((a29==7)||(a29==8))&&(input==3))))&&(a14==10))&&(a19==2))))))&&!(a25==1))&&(a11==1))){ + a0 = 0; + a29 = 7; + a20 = 0; + a14 = 8; + return 21; + } else if(((a19==1)&&(!(a7==1)&&((a22==1)&&(!(a20==1)&&((a28==1)&&((a11==1)&&((((a14==9)&&(!(a25==1)&&((input==1)&&((a29==7)||((a29==5)||(a29==6))))))&&(a24==1))&&!(a0==1))))))))){ + a11 = 0; + a14 = 8; + a24 = 0; + a7 = 1; + a29 = 8; + return -1; + } else if((!(a0==1)&&((((a25==1)&&(!(a11==1)&&((a14==8)&&((!(a7==1)&&(!(a20==1)&&(!(a24==1)&&((input==1)&&((a29==8)||(a29==9))))))&&(a22==1)))))&&(a19==2))&&(a28==1)))){ + a25 = 0; + a19 = 4; + a14 = 9; + a29 = 9; + a24 = 1; + return 21; + } else if((((a24==1)&&((a22==1)&&(((!(a0==1)&&(((((((a29==5)||(a29==6))&&(input==6))&&!(a25==1))&&(a19==5))&&(a14==8))&&(a20==1)))&&(a11==1))&&!(a7==1))))&&(a28==1))){ + a29 = 9; + a25 = 1; + return -1; + } else if((!(a25==1)&&(((a14==8)&&(((a28==1)&&((((((((a29==6)&&(a19==5))||(((a19==4)&&(a29==9))||((a19==5)&&(a29==5))))&&(input==2))&&(a0==1))&&!(a20==1))&&!(a11==1))&&(a22==1)))&&(a7==1)))&&!(a24==1)))){ + a24 = 1; + a14 = 9; + a19 = 1; + a29 = 8; + return 21; + } else if(((a28==1)&&((((!(a11==1)&&((a19==4)&&((a24==1)&&((a0==1)&&(!(a20==1)&&(!(a25==1)&&(((a29==5)||(a29==6))&&(input==5))))))))&&!(a7==1))&&(a14==9))&&(a22==1)))){ + a14 = 8; + a19 = 1; + a0 = 0; + a29 = 9; + a24 = 0; + return 23; + } else if(((((((a22==1)&&((a14==10)&&(((a29==6)&&((a0==1)&&((a7==1)&&((input==6)&&(a24==1)))))&&(a28==1))))&&(a11==1))&&(a20==1))&&(a25==1))&&(a19==4))){ + a29 = 5; + a24 = 0; + a11 = 0; + a14 = 8; + a25 = 0; + a20 = 0; + return 24; + } else if((((a20==1)&&((a0==1)&&((((a11==1)&&((((a24==1)&&((input==2)&&(((a29==6)&&(a19==3))||(((a29==9)&&(a19==2))||((a29==5)&&(a19==3))))))&&(a28==1))&&(a14==10)))&&!(a25==1))&&!(a7==1))))&&(a22==1))){ + a19 = 1; + a29 = 9; + return -1; + } else if((((a0==1)&&(((a19==3)&&((a14==9)&&(!(a20==1)&&((a22==1)&&((((((a29==8)||(a29==9))&&(input==3))&&(a11==1))&&!(a25==1))&&(a28==1))))))&&(a24==1)))&&(a7==1))){ + a19 = 5; + a29 = 5; + a14 = 8; + a0 = 0; + a7 = 0; + return 21; + } else if((!(a0==1)&&((a29==8)&&((((((a11==1)&&((a25==1)&&((a22==1)&&((a24==1)&&((a28==1)&&(input==5))))))&&(a7==1))&&(a19==3))&&(a20==1))&&(a14==9))))){ + a7 = 0; + a19 = 2; + a0 = 1; + a25 = 0; + a29 = 7; + return 21; + } else if((((a14==9)&&(!(a11==1)&&((a22==1)&&((((a0==1)&&((((input==4)&&((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))||((a19==5)&&(a29==6))))&&(a20==1))&&!(a24==1)))&&!(a25==1))&&(a28==1)))))&&!(a7==1))){ + a7 = 1; + a14 = 8; + a24 = 1; + a20 = 0; + a29 = 6; + a11 = 1; + a19 = 2; + a0 = 0; + return 24; + } else if(((((a28==1)&&((a24==1)&&(((!(a7==1)&&(((a11==1)&&((a19==3)&&((input==5)&&(((a29==7)||(a29==8))||(a29==9)))))&&(a0==1)))&&(a22==1))&&(a14==8))))&&!(a25==1))&&!(a20==1))){ + a19 = 5; + a7 = 1; + a11 = 0; + a24 = 0; + a29 = 9; + a20 = 1; + return 23; + } else if(((a19==5)&&(((a25==1)&&((!(a7==1)&&(((a24==1)&&(((a22==1)&&(((input==6)&&(((a29==5)||(a29==6))||(a29==7)))&&(a20==1)))&&!(a11==1)))&&(a14==9)))&&(a0==1)))&&(a28==1)))){ + a0 = 0; + a29 = 8; + a14 = 8; + a19 = 3; + a25 = 0; + a11 = 1; + a20 = 0; + return 24; + } else if((((((a7==1)&&((!(a11==1)&&((a14==8)&&(!(a0==1)&&(((((a29==9)&&(a19==4))||((a29==5)&&(a19==5)))&&(input==1))&&!(a24==1)))))&&(a20==1)))&&(a22==1))&&(a28==1))&&!(a25==1))){ + a11 = 1; + a14 = 9; + a0 = 1; + a29 = 9; + a19 = 5; + a24 = 1; + return 23; + } else if(((a28==1)&&(((a20==1)&&(!(a25==1)&&(!(a7==1)&&(!(a0==1)&&((a19==2)&&((a22==1)&&(!(a24==1)&&((a14==9)&&((input==1)&&((a29==7)||(a29==8)))))))))))&&(a11==1)))){ + a20 = 0; + a0 = 1; + a7 = 1; + a11 = 0; + a25 = 1; + a29 = 8; + return -1; + } else if(((((a19==2)&&(!(a7==1)&&(!(a24==1)&&((((((a25==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==4)))&&(a28==1))&&(a22==1))&&!(a0==1))&&(a11==1)))))&&(a14==8))&&!(a20==1))){ + a24 = 1; + a19 = 5; + a20 = 1; + a29 = 9; + return 24; + } else if((((a29==7)&&(((a28==1)&&(((((((a14==9)&&((a11==1)&&(input==3)))&&!(a20==1))&&(a19==4))&&!(a7==1))&&!(a25==1))&&(a24==1)))&&!(a0==1)))&&(a22==1))){ + a7 = 1; + a14 = 8; + a0 = 1; + a29 = 5; + a25 = 1; + a20 = 1; + a19 = 1; + return -1; + } else if((((a7==1)&&((((((!(a11==1)&&(((a22==1)&&((input==4)&&((a29==7)||((a29==5)||(a29==6)))))&&(a20==1)))&&!(a24==1))&&(a19==2))&&(a14==8))&&(a28==1))&&!(a25==1)))&&(a0==1))){ + a25 = 1; + a11 = 1; + a19 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if((!(a25==1)&&(((a24==1)&&(!(a20==1)&&(((a19==4)&&((((a0==1)&&((a7==1)&&((input==1)&&(a29==9))))&&(a28==1))&&(a22==1)))&&(a14==8))))&&!(a11==1)))){ + a25 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + a11 = 1; + return -1; + } else if((((((((a7==1)&&(!(a20==1)&&(((((input==4)&&(a24==1))&&(a14==9))&&(a29==5))&&(a22==1))))&&(a28==1))&&(a11==1))&&(a19==1))&&!(a25==1))&&(a0==1))){ + a29 = 8; + a24 = 0; + a0 = 0; + a7 = 0; + a11 = 0; + return 24; + } else if((((a11==1)&&(((((a25==1)&&(((!(a24==1)&&(!(a20==1)&&((a7==1)&&(input==3))))&&!(a0==1))&&(a29==9)))&&(a14==9))&&(a28==1))&&(a22==1)))&&(a19==1))){ + a0 = 1; + a19 = 5; + a24 = 1; + a20 = 1; + a29 = 7; + return -1; + } else if(((((a22==1)&&(((!(a7==1)&&(((a28==1)&&(((a19==4)&&((input==6)&&((a29==5)||(a29==6))))&&!(a20==1)))&&!(a25==1)))&&(a14==9))&&(a11==1)))&&(a24==1))&&!(a0==1))){ + a29 = 7; + a19 = 5; + a7 = 1; + a14 = 8; + return -1; + } else if(((((a24==1)&&(((!(a11==1)&&((a25==1)&&((a0==1)&&(!(a20==1)&&((((a29==7)||(a29==8))&&(input==4))&&(a7==1))))))&&(a28==1))&&(a19==3)))&&(a22==1))&&(a14==9))){ + a0 = 0; + a14 = 8; + a25 = 0; + a29 = 6; + a11 = 1; + a7 = 0; + return 23; + } else if((((((((a19==4)&&((((!(a20==1)&&((input==6)&&((a29==9)||((a29==7)||(a29==8)))))&&!(a7==1))&&(a28==1))&&(a0==1)))&&(a14==10))&&(a24==1))&&(a11==1))&&(a22==1))&&(a25==1))){ + a29 = 6; + a7 = 1; + a20 = 1; + a0 = 0; + a14 = 8; + return 23; + } else if(((a24==1)&&(((a11==1)&&(((((a28==1)&&((a7==1)&&(!(a20==1)&&(((input==6)&&(((a29==7)||(a29==8))||(a29==9)))&&!(a0==1)))))&&(a25==1))&&(a19==1))&&(a22==1)))&&(a14==8)))){ + a11 = 0; + a7 = 0; + a24 = 0; + a25 = 0; + a29 = 6; + a19 = 5; + a0 = 1; + return -1; + } else if((!(a25==1)&&((a11==1)&&(((!(a20==1)&&(!(a24==1)&&((((a22==1)&&((input==4)&&(((a29==5)&&(a19==2))||(((a29==8)&&(a19==1))||((a19==1)&&(a29==9))))))&&(a0==1))&&(a14==8))))&&!(a7==1))&&(a28==1))))){ + a20 = 1; + a29 = 6; + a25 = 1; + a24 = 1; + a19 = 5; + a0 = 0; + a11 = 0; + return 23; + } else if((((a20==1)&&((a11==1)&&(((a7==1)&&(((a19==4)&&(((a24==1)&&((((a29==6)||(a29==7))&&(input==5))&&(a28==1)))&&(a22==1)))&&(a0==1)))&&(a14==9))))&&!(a25==1))){ + a24 = 0; + a7 = 0; + a11 = 0; + a29 = 9; + a20 = 0; + a14 = 8; + a0 = 0; + a19 = 1; + return 21; + } else if(((a7==1)&&((a19==3)&&((a29==6)&&((!(a24==1)&&((a20==1)&&((a28==1)&&((!(a11==1)&&(!(a25==1)&&((input==2)&&(a22==1))))&&!(a0==1)))))&&(a14==9)))))){ + a29 = 5; + a19 = 4; + a11 = 1; + a24 = 1; + a14 = 8; + return 21; + } else if(((a25==1)&&((a19==3)&&(((a22==1)&&(!(a0==1)&&((a20==1)&&((((((input==3)&&((a29==5)||(a29==6)))&&!(a24==1))&&(a7==1))&&(a14==8))&&(a11==1)))))&&(a28==1))))){ + a29 = 8; + a19 = 5; + a24 = 1; + return 24; + } else if((((!(a25==1)&&((a20==1)&&(((a19==4)&&((a14==9)&&((!(a11==1)&&(!(a0==1)&&(((a29==6)||(a29==7))&&(input==2))))&&(a28==1))))&&!(a24==1))))&&!(a7==1))&&(a22==1))){ + a29 = 9; + a24 = 1; + a19 = 2; + a11 = 1; + return -1; + } else if(((a20==1)&&((a14==9)&&(!(a7==1)&&((a25==1)&&((a19==4)&&(!(a24==1)&&(((a28==1)&&(((a0==1)&&((input==4)&&!(a11==1)))&&(a29==6)))&&(a22==1))))))))){ + a20 = 0; + a24 = 1; + a11 = 1; + a14 = 8; + a0 = 0; + a19 = 3; + a25 = 0; + return 21; + } else if((((a24==1)&&((!(a25==1)&&(((a14==9)&&((a0==1)&&((a28==1)&&(!(a20==1)&&((((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))&&(input==4))))))&&(a22==1)))&&(a7==1)))&&!(a11==1))){ + a24 = 0; + a11 = 1; + a19 = 4; + a29 = 5; + return 23; + } else if(((a28==1)&&((((a22==1)&&((a20==1)&&(((((((((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))||((a19==5)&&(a29==6)))&&(input==5))&&(a24==1))&&!(a11==1))&&!(a25==1))&&(a7==1))))&&(a0==1))&&(a14==8)))){ + a24 = 0; + a29 = 9; + a0 = 0; + a19 = 3; + return 24; + } else if(((a19==2)&&((a14==9)&&((a11==1)&&((((a7==1)&&((a25==1)&&(((a0==1)&&((a20==1)&&((a28==1)&&(input==1))))&&(a22==1))))&&(a29==7))&&(a24==1)))))){ + a24 = 0; + a11 = 0; + a19 = 3; + a7 = 0; + a29 = 9; + a0 = 0; + return 24; + } else if(((a29==6)&&(!(a0==1)&&((((a19==3)&&(((a24==1)&&(((a28==1)&&((a20==1)&&((input==6)&&!(a7==1))))&&(a11==1)))&&(a25==1)))&&(a22==1))&&(a14==9))))){ + a14 = 8; + a25 = 0; + a19 = 5; + a29 = 8; + return 23; + } else if(((a19==2)&&((a7==1)&&(((!(a20==1)&&(!(a25==1)&&((((a14==8)&&((a0==1)&&((a29==9)&&(input==1))))&&(a28==1))&&!(a24==1))))&&(a22==1))&&!(a11==1))))){ + a20 = 1; + a19 = 3; + a25 = 1; + a11 = 1; + a29 = 5; + return 21; + } else if(((((a14==9)&&((!(a20==1)&&((a22==1)&&((((a0==1)&&(((input==5)&&(((a29==6)||(a29==7))||(a29==8)))&&(a7==1)))&&!(a25==1))&&(a28==1))))&&(a19==3)))&&!(a24==1))&&(a11==1))){ + a25 = 1; + a14 = 8; + a19 = 1; + a20 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if((((a22==1)&&(((a28==1)&&(!(a11==1)&&(!(a24==1)&&((((((a25==1)&&((a7==1)&&!(a20==1)))&&(a29==5))&&(a19==1))||(((a19==5)&&((a29==8)&&(((a20==1)&&!(a7==1))&&!(a25==1))))||(((a29==9)&&((!(a7==1)&&(a20==1))&&!(a25==1)))&&(a19==5))))&&(input==4)))))&&(a14==8)))&&!(a0==1))){ + a11 = 1; + a29 = 8; + a7 = 1; + a19 = 3; + a25 = 0; + a20 = 0; + a24 = 1; + return 24; + } else if(((a22==1)&&(!(a0==1)&&((a20==1)&&(((!(a24==1)&&(((((((a19==2)&&(a29==6))||(((a19==1)&&(a29==9))||((a29==5)&&(a19==2))))&&(input==4))&&(a14==9))&&(a7==1))&&!(a11==1)))&&(a25==1))&&(a28==1)))))){ + a19 = 3; + a24 = 1; + a11 = 1; + a29 = 6; + a7 = 0; + a14 = 8; + return 23; + } else if((((a0==1)&&(((!(a25==1)&&((a19==3)&&((a24==1)&&((a14==10)&&((a22==1)&&((((a29==8)||(a29==9))&&(input==4))&&(a11==1)))))))&&(a28==1))&&!(a20==1)))&&!(a7==1))){ + a20 = 1; + a24 = 0; + a0 = 0; + a29 = 5; + a19 = 4; + a25 = 1; + a14 = 8; + a7 = 1; + return 24; + } else if((((!(a11==1)&&(((a20==1)&&(((a22==1)&&(((a19==2)&&((a28==1)&&((input==3)&&((a29==6)||(a29==7)))))&&!(a0==1)))&&!(a7==1)))&&(a14==8)))&&!(a25==1))&&!(a24==1))){ + a11 = 1; + a7 = 1; + a25 = 1; + a0 = 1; + a19 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if((((a22==1)&&(!(a0==1)&&((a24==1)&&((a20==1)&&((a28==1)&&((((a11==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==2))&&(a19==5)))&&(a14==8))&&!(a25==1)))))))&&!(a7==1))){ + a7 = 1; + a29 = 7; + a19 = 4; + return 21; + } else if(((a22==1)&&((((((((!(a11==1)&&((((a29==8)||(a29==9))&&(input==4))&&(a20==1)))&&(a24==1))&&(a28==1))&&!(a0==1))&&(a7==1))&&(a25==1))&&(a19==4))&&(a14==8)))){ + a24 = 0; + a14 = 9; + a11 = 1; + a29 = 9; + return 21; + } else if(((a28==1)&&((a29==8)&&((!(a7==1)&&((a14==9)&&((a22==1)&&(!(a20==1)&&((a19==1)&&((!(a25==1)&&(!(a24==1)&&(input==3)))&&!(a0==1)))))))&&!(a11==1))))){ + a24 = 1; + a7 = 1; + a25 = 1; + a29 = 5; + a14 = 8; + a20 = 1; + a0 = 1; + a11 = 1; + return -1; + } else if((((((!(a24==1)&&((a28==1)&&(((!(a20==1)&&((a29==5)&&(!(a25==1)&&(input==3))))&&(a0==1))&&(a22==1))))&&(a11==1))&&(a14==9))&&(a19==1))&&!(a7==1))){ + a24 = 1; + a14 = 8; + a20 = 1; + a7 = 1; + a25 = 1; + return -1; + } else if((((a7==1)&&(((a22==1)&&((a25==1)&&(((a14==9)&&((((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))&&(input==1))&&!(a11==1))&&(a20==1)))&&!(a24==1))))&&!(a0==1)))&&(a28==1))){ + a29 = 9; + a0 = 1; + a7 = 0; + a20 = 0; + a11 = 1; + a24 = 1; + a19 = 4; + return 23; + } else if(((a28==1)&&(((a7==1)&&((a25==1)&&((a14==8)&&(!(a20==1)&&(((a24==1)&&((((input==2)&&((a29==9)||((a29==7)||(a29==8))))&&(a19==5))&&(a0==1)))&&!(a11==1))))))&&(a22==1)))){ + a19 = 1; + a29 = 5; + a11 = 1; + a20 = 1; + return -1; + } else if((((((((a7==1)&&(((a28==1)&&((((input==5)&&(a19==3))&&(a25==1))&&(a0==1)))&&!(a11==1)))&&(a20==1))&&(a22==1))&&(a14==9))&&!(a24==1))&&(a29==5))){ + a14 = 8; + a19 = 1; + a24 = 1; + a11 = 1; + return -1; + } else if((((a14==8)&&((!(a7==1)&&((a24==1)&&((a22==1)&&(!(a0==1)&&((a28==1)&&((a25==1)&&((((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))&&(input==1))))))))&&!(a11==1)))&&(a20==1))){ + a14 = 9; + a29 = 8; + a11 = 1; + a19 = 2; + a24 = 0; + return 21; + } else if((!(a11==1)&&(((a22==1)&&(!(a24==1)&&((a28==1)&&(!(a20==1)&&(((a19==1)&&((a7==1)&&(((input==6)&&((a29==6)||(a29==7)))&&!(a0==1))))&&(a14==9))))))&&!(a25==1)))){ + a20 = 1; + a19 = 3; + a29 = 6; + a24 = 1; + a25 = 1; + return -1; + } else if(((((!(a20==1)&&((((a25==1)&&(!(a7==1)&&(!(a11==1)&&((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))&&(input==6)))))&&(a28==1))&&(a24==1)))&&(a14==9))&&(a0==1))&&(a22==1))){ + a0 = 0; + a14 = 8; + a7 = 1; + a19 = 2; + a29 = 5; + a11 = 1; + return -1; + } else if((!(a11==1)&&(((a14==9)&&(!(a25==1)&&(((a28==1)&&(!(a0==1)&&(((!(a7==1)&&((input==5)&&(((a29==7)||(a29==8))||(a29==9))))&&!(a20==1))&&(a19==1))))&&(a24==1))))&&(a22==1)))){ + a11 = 1; + a0 = 1; + a29 = 5; + a20 = 1; + a25 = 1; + a7 = 1; + a14 = 8; + return -1; + } else if(((a14==8)&&(((a22==1)&&((!(a24==1)&&((!(a7==1)&&((((input==3)&&(((a19==5)&&(a29==5))||(((a19==4)&&(a29==8))||((a19==4)&&(a29==9)))))&&(a0==1))&&(a11==1)))&&!(a25==1)))&&!(a20==1)))&&(a28==1)))){ + a19 = 4; + a11 = 0; + a7 = 1; + a29 = 5; + return 21; + } else if((((!(a24==1)&&(!(a25==1)&&((((a14==10)&&((a19==1)&&((((input==2)&&(a0==1))&&(a20==1))&&(a7==1))))&&(a28==1))&&(a22==1))))&&(a11==1))&&(a29==8))){ + a11 = 0; + a29 = 6; + a19 = 4; + a14 = 9; + return -1; + } else if((((a25==1)&&((((a20==1)&&((a14==9)&&(((a28==1)&&((!(a0==1)&&(((a29==6)||(a29==7))&&(input==6)))&&(a19==4)))&&(a7==1))))&&!(a11==1))&&(a22==1)))&&(a24==1))){ + a0 = 1; + a11 = 1; + a29 = 5; + a20 = 0; + return 24; + } else if(((((a7==1)&&(!(a20==1)&&(((a25==1)&&(((((input==3)&&(((a19==5)&&(a29==5))||(((a19==4)&&(a29==8))||((a19==4)&&(a29==9)))))&&(a11==1))&&(a0==1))&&(a22==1)))&&!(a24==1))))&&(a14==8))&&(a28==1))){ + a19 = 1; + a29 = 5; + a24 = 1; + a20 = 1; + return -1; + } else if(((((((a20==1)&&((a19==2)&&((a25==1)&&(((!(a11==1)&&((input==3)&&(a28==1)))&&(a22==1))&&(a29==6)))))&&(a14==8))&&!(a24==1))&&(a0==1))&&!(a7==1))){ + a19 = 5; + a20 = 0; + a29 = 8; + return 21; + } else if(((!(a25==1)&&((a0==1)&&((((a24==1)&&((a11==1)&&((a29==8)&&(((!(a7==1)&&(input==1))&&(a22==1))&&(a14==10)))))&&(a19==1))&&(a20==1))))&&(a28==1))){ + a19 = 4; + a24 = 0; + a11 = 0; + a20 = 0; + a7 = 1; + a29 = 5; + a14 = 8; + return 24; + } else if((((a19==4)&&((!(a24==1)&&((!(a11==1)&&((a7==1)&&((a20==1)&&(((a28==1)&&((input==5)&&((a29==5)||(a29==6))))&&(a22==1)))))&&(a25==1)))&&(a14==9)))&&(a0==1))){ + a14 = 8; + a19 = 1; + a29 = 5; + a11 = 1; + a24 = 1; + return -1; + } else if(((((a14==9)&&(((!(a25==1)&&(((a22==1)&&(((((a29==8)||(a29==9))&&(input==1))&&(a24==1))&&!(a20==1)))&&(a11==1)))&&(a28==1))&&(a7==1)))&&(a0==1))&&(a19==1))){ + a20 = 1; + a29 = 6; + a7 = 0; + a0 = 0; + a14 = 8; + a19 = 5; + return 21; + } else if((((a25==1)&&((((a14==8)&&((a7==1)&&((!(a11==1)&&((a0==1)&&((((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))&&(input==2))))&&(a24==1))))&&(a22==1))&&(a28==1)))&&(a20==1))){ + a7 = 0; + a0 = 0; + a20 = 0; + a19 = 2; + a29 = 8; + return 23; + } else if((!(a7==1)&&((((a11==1)&&(!(a0==1)&&(((a19==4)&&(((((input==5)&&((a29==7)||(a29==8)))&&(a25==1))&&!(a24==1))&&(a28==1)))&&(a14==9))))&&(a22==1))&&(a20==1)))){ + a29 = 9; + a0 = 1; + a19 = 3; + return 23; + } else if(((a0==1)&&(((((((a11==1)&&(((((input==1)&&(a25==1))&&(a14==8))&&(a22==1))&&!(a20==1)))&&(a24==1))&&!(a7==1))&&(a28==1))&&(a19==5))&&(a29==8)))){ + a11 = 0; + a29 = 6; + a19 = 2; + a25 = 0; + return 24; + } else if((!(a0==1)&&(((((a7==1)&&(((((a29==9)&&(!(a24==1)&&((input==1)&&!(a11==1))))&&(a19==4))&&(a28==1))&&(a14==9)))&&!(a20==1))&&(a22==1))&&!(a25==1)))){ + a11 = 1; + a29 = 5; + a0 = 1; + a20 = 1; + a19 = 1; + a14 = 8; + a24 = 1; + a25 = 1; + return -1; + } else if(((!(a24==1)&&((a28==1)&&(!(a11==1)&&(((a14==9)&&((((((((a29==6)||(a29==7))||(a29==8))&&(input==4))&&!(a25==1))&&!(a7==1))&&!(a0==1))&&(a20==1)))&&(a19==2)))))&&(a22==1))){ + a0 = 1; + a14 = 8; + a29 = 5; + a24 = 1; + a19 = 1; + a7 = 1; + a11 = 1; + a25 = 1; + return -1; + } else if((((a19==1)&&(((a0==1)&&((a24==1)&&((a25==1)&&((a11==1)&&((!(a20==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==3))&&(a14==10)))&&(a28==1))))))&&(a22==1)))&&!(a7==1))){ + a19 = 4; + a29 = 5; + a20 = 1; + a14 = 9; + a24 = 0; + a7 = 1; + return 24; + } else if((((((((a22==1)&&(((a11==1)&&(((input==6)&&(((a29==5)&&(a19==3))||(((a19==2)&&(a29==8))||((a29==9)&&(a19==2)))))&&!(a0==1)))&&!(a25==1)))&&(a24==1))&&(a28==1))&&(a14==8))&&!(a20==1))&&(a7==1))){ + a19 = 1; + a25 = 1; + a20 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if(((((a14==9)&&((a28==1)&&((a20==1)&&((!(a0==1)&&((a24==1)&&(((a22==1)&&(((a29==6)||(a29==7))&&(input==6)))&&!(a11==1))))&&!(a7==1)))))&&(a19==5))&&(a25==1))){ + a29 = 6; + a20 = 0; + a25 = 0; + a19 = 3; + a14 = 8; + a11 = 1; + return 24; + } else if(((a0==1)&&((a19==1)&&((a22==1)&&((a25==1)&&(((((a28==1)&&(!(a24==1)&&(((input==3)&&(((a29==7)||(a29==8))||(a29==9)))&&(a11==1))))&&(a14==9))&&(a20==1))&&!(a7==1))))))){ + a7 = 1; + a24 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if((((a28==1)&&((a20==1)&&(((a7==1)&&(((a14==8)&&(((a0==1)&&((a19==4)&&((input==5)&&((a29==8)||((a29==6)||(a29==7))))))&&!(a11==1)))&&!(a24==1)))&&(a22==1))))&&!(a25==1))){ + a7 = 0; + a29 = 9; + a14 = 9; + a11 = 1; + return 23; + } else if(((a29==8)&&(((a22==1)&&(((a11==1)&&((((a7==1)&&(((a28==1)&&((input==4)&&(a20==1)))&&(a14==8)))&&(a24==1))&&!(a0==1)))&&!(a25==1)))&&(a19==3)))){ + a24 = 0; + a11 = 0; + a29 = 7; + a25 = 1; + a14 = 9; + a0 = 1; + return 24; + } else if((((a11==1)&&(((((((a7==1)&&(((a20==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==3)))&&!(a0==1)))&&(a14==9))&&!(a24==1))&&!(a25==1))&&(a19==3))&&(a22==1)))&&(a28==1))){ + a14 = 8; + a25 = 1; + a29 = 5; + a0 = 1; + a24 = 1; + a19 = 1; + return -1; + } else if(((a0==1)&&((((a22==1)&&(((a28==1)&&(!(a20==1)&&(!(a25==1)&&(!(a11==1)&&((a19==2)&&((a7==1)&&(input==1)))))))&&(a24==1)))&&(a29==5))&&(a14==9)))){ + a20 = 1; + a25 = 1; + a19 = 1; + a11 = 1; + a14 = 8; + return -1; + } else if(((!(a11==1)&&((((!(a24==1)&&((a25==1)&&((a22==1)&&(!(a0==1)&&((a19==4)&&((input==4)&&((a29==6)||(a29==7))))))))&&(a28==1))&&(a14==8))&&!(a20==1)))&&(a7==1))){ + a19 = 1; + a11 = 1; + a0 = 1; + a7 = 0; + a20 = 1; + a29 = 5; + a14 = 9; + return 23; + } else if(((a19==5)&&((((a24==1)&&((a14==9)&&((a22==1)&&(!(a7==1)&&(((((input==6)&&((a29==6)||(a29==7)))&&!(a0==1))&&!(a11==1))&&(a20==1))))))&&(a28==1))&&!(a25==1)))){ + a29 = 7; + a24 = 0; + a20 = 0; + a0 = 1; + a14 = 8; + a25 = 1; + a19 = 4; + return 24; + } else if(((!(a7==1)&&(!(a11==1)&&(((a24==1)&&((a22==1)&&((a29==9)&&((a25==1)&&(((a14==9)&&((input==6)&&(a28==1)))&&(a20==1))))))&&(a19==4))))&&!(a0==1))){ + a14 = 8; + a19 = 1; + a0 = 1; + a11 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if((((a11==1)&&((a29==8)&&(((a20==1)&&(((a24==1)&&((a14==10)&&((a19==3)&&(((a7==1)&&(input==5))&&(a0==1)))))&&(a25==1)))&&(a28==1))))&&(a22==1))){ + a14 = 8; + a19 = 1; + a29 = 9; + a25 = 0; + a0 = 0; + a24 = 0; + a11 = 0; + a7 = 0; + return 24; + } return calculate_output22(input); + } + + int calculate_output22(int input) { + if(((a28==1)&&(!(a24==1)&&((a14==8)&&((a0==1)&&((a22==1)&&((a11==1)&&(!(a7==1)&&(!(a25==1)&&((a20==1)&&((input==5)&&(((a29==6)&&(a19==3))||(((a29==9)&&(a19==2))||((a29==5)&&(a19==3))))))))))))))){ + a29 = 7; + a25 = 1; + a19 = 3; + a20 = 0; + a11 = 0; + return 24; + } else if(((a0==1)&&(!(a20==1)&&(((a14==8)&&(((a19==3)&&((a11==1)&&(!(a24==1)&&(((((a29==7)||((a29==5)||(a29==6)))&&(input==6))&&!(a7==1))&&(a28==1)))))&&!(a25==1)))&&(a22==1))))){ + a7 = 1; + a29 = 9; + a11 = 0; + a19 = 2; + return 23; + } else if(((((a22==1)&&((!(a11==1)&&(((!(a0==1)&&(((a14==8)&&((((a29==5)||(a29==6))||(a29==7))&&(input==4)))&&!(a24==1)))&&(a20==1))&&(a25==1)))&&!(a7==1)))&&(a28==1))&&(a19==5))){ + a25 = 0; + a14 = 9; + a24 = 1; + a29 = 8; + a19 = 4; + return 23; + } else if((((a22==1)&&((a14==8)&&((input==6)&&(((a19==5)&&((a29==9)&&(!(a25==1)&&(!(a24==1)&&((((a0==1)&&!(a11==1))&&!(a20==1))&&!(a7==1))))))||(((a29==5)&&(((a24==1)&&(((a20==1)&&((a11==1)&&!(a0==1)))&&(a7==1)))&&(a25==1)))&&(a19==1))))))&&(a28==1))){ + a25 = 0; + a11 = 1; + a24 = 1; + a20 = 0; + a19 = 3; + a0 = 0; + a7 = 1; + a29 = 9; + return 24; + } else if(((((!(a24==1)&&((a28==1)&&((!(a11==1)&&((((a19==5)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==3)))&&(a0==1))&&(a14==9)))&&(a22==1))))&&!(a7==1))&&!(a20==1))&&!(a25==1))){ + a19 = 3; + a14 = 8; + a24 = 1; + a0 = 0; + a7 = 1; + a11 = 1; + a29 = 9; + return -1; + } else if(((a19==1)&&(((a22==1)&&((a14==9)&&(((a0==1)&&((!(a25==1)&&((((input==6)&&(((a29==6)||(a29==7))||(a29==8)))&&(a24==1))&&!(a11==1)))&&(a7==1)))&&(a20==1))))&&(a28==1)))){ + a25 = 1; + a29 = 5; + a11 = 1; + a14 = 8; + return -1; + } else if((((a14==9)&&(((a11==1)&&((((a24==1)&&((((((a29==7)||(a29==8))&&(input==3))&&(a20==1))&&!(a7==1))&&(a22==1)))&&(a28==1))&&(a25==1)))&&(a19==5)))&&(a0==1))){ + a0 = 0; + a7 = 1; + a29 = 6; + a19 = 1; + a25 = 0; + a20 = 0; + a24 = 0; + a11 = 0; + return 23; + } else if((((a20==1)&&((a24==1)&&(((a11==1)&&(!(a0==1)&&((!(a7==1)&&((((((a29==8)&&(a25==1))&&(a19==5))||(((a25==1)&&(a29==9))&&(a19==5)))||((a19==1)&&((a29==5)&&!(a25==1))))&&(input==1)))&&(a14==9))))&&(a28==1))))&&(a22==1))){ + a19 = 5; + a11 = 0; + a20 = 0; + a14 = 8; + a29 = 5; + a25 = 1; + return -1; + } else if(((((((!(a0==1)&&((a7==1)&&((a14==9)&&((((input==6)&&(a22==1))&&(a24==1))&&(a29==9)))))&&(a25==1))&&!(a11==1))&&(a19==1))&&(a28==1))&&(a20==1))){ + a14 = 8; + a0 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if((((((a25==1)&&(((a19==5)&&(((((a29==6)&&((input==3)&&(a0==1)))&&(a14==9))&&(a28==1))&&(a22==1)))&&(a11==1)))&&!(a24==1))&&!(a20==1))&&!(a7==1))){ + a14 = 8; + a24 = 1; + a7 = 1; + a20 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((((((((!(a25==1)&&((a22==1)&&((input==6)&&(((a29==9)&&(a19==3))||((a19==4)&&(a29==5))))))&&(a28==1))&&(a20==1))&&!(a7==1))&&!(a11==1))&&!(a0==1))&&!(a24==1))&&(a14==9))){ + a0 = 1; + a29 = 7; + a20 = 0; + a14 = 8; + a19 = 2; + return 23; + } else if(((a28==1)&&((((!(a20==1)&&(((a19==1)&&(!(a24==1)&&((a29==5)&&(((a25==1)&&(input==1))&&(a22==1)))))&&!(a7==1)))&&!(a11==1))&&!(a0==1))&&(a14==8)))){ + a20 = 1; + a11 = 1; + a24 = 1; + a0 = 1; + a7 = 1; + return -1; + } else if((!(a24==1)&&((a14==9)&&(!(a11==1)&&((a22==1)&&((a19==5)&&(!(a25==1)&&((((!(a20==1)&&((input==2)&&((a29==8)||((a29==6)||(a29==7)))))&&!(a7==1))&&(a0==1))&&(a28==1))))))))){ + a20 = 1; + a14 = 8; + a11 = 1; + a0 = 0; + a24 = 1; + a25 = 1; + a19 = 3; + a29 = 6; + return 23; + } else if(((a28==1)&&((!(a20==1)&&(((a0==1)&&(((((((input==6)&&((a29==6)||(a29==7)))&&(a25==1))&&(a7==1))&&(a19==5))&&!(a24==1))&&(a14==8)))&&(a11==1)))&&(a22==1)))){ + a29 = 5; + a0 = 0; + a25 = 0; + return 23; + } else if((!(a7==1)&&((((((a19==3)&&(!(a20==1)&&((((((a29==8)||(a29==9))&&(input==4))&&(a11==1))&&(a22==1))&&(a28==1))))&&!(a25==1))&&(a0==1))&&!(a24==1))&&(a14==8)))){ + a29 = 5; + a25 = 1; + a7 = 1; + a20 = 1; + a19 = 1; + a24 = 1; + return -1; + } else if((!(a0==1)&&(((a25==1)&&((!(a7==1)&&((((a22==1)&&((a11==1)&&(((input==2)&&((a29==6)||(a29==7)))&&!(a20==1))))&&(a28==1))&&(a19==4)))&&(a24==1)))&&(a14==9)))){ + a24 = 0; + a19 = 1; + a0 = 1; + a29 = 8; + return 23; + } else if(((((a19==2)&&((!(a7==1)&&((a24==1)&&((a22==1)&&((((((a29==8)||(a29==9))&&(input==2))&&(a28==1))&&!(a11==1))&&(a25==1)))))&&(a14==8)))&&!(a20==1))&&(a0==1))){ + a7 = 1; + a29 = 8; + a20 = 1; + a11 = 1; + a0 = 0; + a19 = 3; + return 24; + } else if(((((a7==1)&&(((a28==1)&&((((a14==9)&&(((((a29==7)||(a29==8))&&(input==1))&&(a25==1))&&!(a0==1)))&&!(a20==1))&&!(a24==1)))&&(a19==5)))&&!(a11==1))&&(a22==1))){ + a24 = 1; + a20 = 1; + a29 = 7; + return -1; + } else if(((a25==1)&&(((!(a7==1)&&(((!(a20==1)&&((a11==1)&&((((((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))||((a19==3)&&(a29==6)))&&(input==5))&&!(a0==1))))&&(a14==9))&&!(a24==1)))&&(a28==1))&&(a22==1)))){ + a19 = 1; + a24 = 1; + a7 = 1; + a14 = 8; + a0 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if(((a29==8)&&(!(a7==1)&&((a19==1)&&((((a24==1)&&((a28==1)&&(!(a11==1)&&(((a14==9)&&(!(a0==1)&&(input==6)))&&(a20==1)))))&&(a25==1))&&(a22==1)))))){ + a0 = 1; + a25 = 0; + a29 = 9; + a7 = 1; + a19 = 5; + return -1; + } else if((((((!(a7==1)&&(((a29==5)&&(((a22==1)&&((a19==4)&&(!(a24==1)&&(input==1))))&&!(a11==1)))&&(a28==1)))&&!(a0==1))&&(a14==9))&&(a20==1))&&(a25==1))){ + a24 = 1; + a0 = 1; + a14 = 8; + a11 = 1; + a7 = 1; + a19 = 1; + return -1; + } else if((((((!(a20==1)&&(!(a0==1)&&((a7==1)&&((((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))&&(input==5))&&(a28==1))&&(a14==8)))))&&!(a25==1))&&(a22==1))&&(a24==1))&&(a11==1))){ + a29 = 5; + a20 = 1; + a19 = 1; + a0 = 1; + a25 = 1; + return -1; + } else if((!(a11==1)&&((a19==2)&&((((a28==1)&&(!(a20==1)&&(((((a7==1)&&(!(a24==1)&&(input==5)))&&(a22==1))&&(a14==9))&&(a29==8))))&&(a25==1))&&(a0==1))))){ + a29 = 9; + a24 = 1; + a20 = 1; + a25 = 0; + a7 = 0; + return 23; + } else if((!(a20==1)&&((a14==8)&&(((a22==1)&&((((((((input==3)&&((a29==8)||(a29==9)))&&(a19==3))&&(a28==1))&&(a0==1))&&!(a25==1))&&(a11==1))&&!(a24==1)))&&!(a7==1))))){ + a11 = 0; + a19 = 4; + a29 = 7; + a20 = 1; + a24 = 1; + a0 = 0; + return 24; + } else if(((a14==8)&&(!(a25==1)&&((a20==1)&&((a0==1)&&(((a22==1)&&((a7==1)&&((a19==4)&&((a28==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==2))&&!(a24==1))))))&&!(a11==1))))))){ + a7 = 0; + a29 = 9; + a14 = 9; + a19 = 3; + a11 = 1; + return 21; + } else if(((a7==1)&&(((a20==1)&&((a22==1)&&(!(a25==1)&&((a11==1)&&(((((((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))&&(input==6))&&(a28==1))&&(a24==1))&&(a14==9))))))&&(a0==1)))){ + a11 = 0; + a20 = 0; + a24 = 0; + a25 = 1; + a29 = 5; + a0 = 0; + a19 = 1; + return 23; + } else if(((a19==3)&&((a0==1)&&(((a20==1)&&(((((((a24==1)&&(((a29==6)||(a29==7))&&(input==4)))&&!(a25==1))&&(a14==8))&&(a7==1))&&(a28==1))&&!(a11==1)))&&(a22==1))))){ + a11 = 1; + a29 = 6; + a0 = 0; + a25 = 1; + return 23; + } else if((((a11==1)&&((a0==1)&&(((a14==9)&&((((a7==1)&&((((input==1)&&((a29==8)||((a29==6)||(a29==7))))&&(a19==2))&&(a22==1)))&&(a28==1))&&(a25==1)))&&(a20==1))))&&!(a24==1))){ + a20 = 0; + a24 = 1; + a0 = 0; + a25 = 0; + a19 = 4; + a14 = 8; + a29 = 8; + a7 = 0; + return 24; + } else if(((((a22==1)&&(((((a28==1)&&((a20==1)&&((a11==1)&&((((a19==5)&&(a29==5))||(((a19==4)&&(a29==8))||((a19==4)&&(a29==9))))&&(input==4)))))&&(a25==1))&&(a0==1))&&(a24==1)))&&!(a7==1))&&(a14==8))){ + a29 = 5; + a20 = 0; + a7 = 1; + a19 = 3; + return 21; + } else if((((a24==1)&&(((a22==1)&&((a0==1)&&(((a14==9)&&((a20==1)&&(((((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))&&(input==4))&&(a7==1))))&&(a25==1))))&&(a11==1)))&&(a28==1))){ + a25 = 0; + a20 = 0; + a19 = 1; + a14 = 8; + a29 = 7; + a0 = 0; + return 23; + } else if(((((a0==1)&&((a24==1)&&(((a20==1)&&(((a19==2)&&((!(a11==1)&&(((a29==5)||(a29==6))&&(input==2)))&&(a14==9)))&&(a25==1)))&&(a28==1))))&&!(a7==1))&&(a22==1))){ + a19 = 3; + a11 = 1; + a0 = 0; + a14 = 8; + a20 = 0; + a29 = 9; + return 21; + } else if(((a19==5)&&((a14==9)&&(((a0==1)&&((a22==1)&&(!(a7==1)&&((a28==1)&&((a20==1)&&((!(a24==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==6)))&&!(a11==1)))))))&&(a25==1))))){ + a7 = 1; + a25 = 0; + a19 = 3; + a29 = 7; + return -1; + } else if(((a7==1)&&((a28==1)&&((a14==8)&&((((((((((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))&&(input==2))&&(a20==1))&&(a22==1))&&(a25==1))&&(a11==1))&&!(a24==1))&&!(a0==1)))))){ + a11 = 0; + a25 = 0; + a29 = 9; + a19 = 4; + a7 = 0; + a20 = 0; + a0 = 1; + a14 = 9; + return 21; + } else if(((((a0==1)&&((((a19==4)&&(((a7==1)&&((a14==9)&&((a22==1)&&((input==2)&&((a29==7)||(a29==8))))))&&(a11==1)))&&!(a20==1))&&!(a25==1)))&&(a28==1))&&!(a24==1))){ + a29 = 5; + a24 = 1; + a20 = 1; + a19 = 1; + a14 = 8; + a25 = 1; + return -1; + } else if((((a20==1)&&((((((a24==1)&&((a28==1)&&(((((a29==8)||(a29==9))&&(input==1))&&!(a11==1))&&(a14==9))))&&(a22==1))&&(a0==1))&&!(a25==1))&&(a19==3)))&&(a7==1))){ + a14 = 8; + a0 = 0; + a7 = 0; + a24 = 0; + a29 = 8; + return -1; + } else if(((((!(a24==1)&&((a22==1)&&((a28==1)&&(!(a11==1)&&(((!(a7==1)&&(((a29==8)||(a29==9))&&(input==1)))&&!(a20==1))&&(a14==8))))))&&(a19==3))&&(a0==1))&&!(a25==1))){ + a19 = 1; + a29 = 7; + a25 = 1; + return -1; + } else if(((a24==1)&&((a0==1)&&(!(a7==1)&&(((((a14==8)&&((a25==1)&&((((((a29==7)||(a29==8))||(a29==9))&&(input==6))&&(a28==1))&&(a11==1))))&&(a22==1))&&(a19==1))&&!(a20==1)))))){ + a25 = 0; + a11 = 0; + a20 = 1; + a29 = 7; + return 23; + } else if((((a29==9)&&((a19==3)&&((((a14==9)&&(!(a20==1)&&(((a22==1)&&(((a28==1)&&(input==4))&&!(a11==1)))&&(a24==1))))&&(a25==1))&&(a7==1))))&&(a0==1))){ + a20 = 1; + a11 = 1; + a19 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if(((a11==1)&&(((a14==8)&&((((a24==1)&&(((a28==1)&&((((a0==1)&&(input==6))&&(a19==5))&&!(a25==1)))&&(a29==8)))&&!(a20==1))&&(a22==1)))&&!(a7==1)))){ + a24 = 0; + a19 = 2; + a29 = 6; + a11 = 0; + a20 = 1; + return 23; + } else if((((((a19==3)&&((((a11==1)&&(((!(a24==1)&&((input==5)&&(((a29==5)||(a29==6))||(a29==7))))&&!(a7==1))&&(a22==1)))&&!(a20==1))&&(a28==1)))&&(a14==8))&&!(a25==1))&&(a0==1))){ + a24 = 1; + a29 = 6; + a0 = 0; + a20 = 1; + a11 = 0; + return 23; + } else if(((a7==1)&&(!(a24==1)&&(!(a25==1)&&(((a19==3)&&((a22==1)&&((((((((a29==7)||(a29==8))||(a29==9))&&(input==2))&&(a14==9))&&!(a11==1))&&!(a0==1))&&(a28==1))))&&(a20==1)))))){ + a29 = 7; + a19 = 5; + a11 = 1; + a20 = 0; + return -1; + } else if((!(a20==1)&&((a29==6)&&((((a25==1)&&((!(a24==1)&&((a0==1)&&((a22==1)&&(((a14==9)&&(input==1))&&(a11==1)))))&&!(a7==1)))&&(a28==1))&&(a19==1))))){ + a25 = 0; + a0 = 0; + a7 = 1; + a29 = 5; + a24 = 1; + a11 = 0; + a19 = 3; + a20 = 1; + a14 = 8; + return 24; + } else if(((a28==1)&&((a7==1)&&((((a22==1)&&((!(a20==1)&&((a0==1)&&(((input==6)&&((((a29==8)&&(a19==3))||((a19==3)&&(a29==9)))||((a19==4)&&(a29==5))))&&(a14==8))))&&!(a25==1)))&&!(a24==1))&&(a11==1))))){ + a19 = 1; + a24 = 1; + a20 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if(((((((a14==8)&&(((a11==1)&&(!(a20==1)&&((((input==4)&&!(a24==1))&&(a28==1))&&(a29==6))))&&(a7==1)))&&(a22==1))&&!(a25==1))&&(a19==1))&&!(a0==1))){ + a29 = 8; + a14 = 9; + a24 = 1; + a19 = 2; + return 24; + } else if(((a29==7)&&(((a14==8)&&(((a19==3)&&((a20==1)&&(!(a11==1)&&((a7==1)&&(((!(a24==1)&&(input==6))&&(a28==1))&&(a22==1))))))&&!(a25==1)))&&(a0==1)))){ + a24 = 1; + a25 = 1; + a19 = 5; + a29 = 8; + a20 = 0; + a11 = 1; + a0 = 0; + return 23; + } else if(((a14==8)&&((((((((!(a25==1)&&(!(a24==1)&&((!(a20==1)&&(a11==1))&&!(a7==1))))&&(a29==9))&&(a19==5))||((a19==1)&&(((a25==1)&&((a24==1)&&((a7==1)&&(!(a11==1)&&(a20==1)))))&&(a29==5))))&&(input==3))&&(a28==1))&&(a0==1))&&(a22==1)))){ + a24 = 1; + a0 = 0; + a29 = 8; + a25 = 1; + a20 = 1; + a11 = 1; + a7 = 1; + a19 = 3; + return 23; + } else if(((a28==1)&&(((a24==1)&&(((a20==1)&&((a14==8)&&((a7==1)&&(((a22==1)&&(!(a0==1)&&((input==2)&&((a29==6)||(a29==7)))))&&(a25==1)))))&&(a19==4)))&&!(a11==1)))){ + a0 = 1; + a11 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if((((((!(a25==1)&&((a11==1)&&(!(a7==1)&&(((a28==1)&&((a29==7)&&((input==4)&&(a19==2))))&&(a14==8)))))&&(a20==1))&&!(a0==1))&&(a22==1))&&(a24==1))){ + a19 = 5; + a29 = 9; + return 23; + } else if(((a22==1)&&(((a7==1)&&(!(a11==1)&&((a19==2)&&((a20==1)&&(!(a25==1)&&(((((input==2)&&((a29==6)||(a29==7)))&&(a14==9))&&(a24==1))&&(a28==1)))))))&&(a0==1)))){ + a11 = 1; + a19 = 1; + a14 = 8; + a25 = 1; + a29 = 5; + return -1; + } else if((((a24==1)&&((a20==1)&&(((((a14==9)&&((((input==5)&&(((a19==2)&&(a29==9))||((a19==3)&&(a29==5))))&&(a11==1))&&(a7==1)))&&(a28==1))&&(a22==1))&&!(a0==1))))&&!(a25==1))){ + a14 = 8; + a29 = 5; + a25 = 1; + a19 = 1; + a0 = 1; + return -1; + } else if((((a19==1)&&(!(a0==1)&&(((((a24==1)&&((a29==6)&&((!(a20==1)&&((input==1)&&(a25==1)))&&(a22==1))))&&(a28==1))&&!(a11==1))&&(a7==1))))&&(a14==9))){ + a29 = 5; + a7 = 0; + a14 = 8; + a24 = 0; + a0 = 1; + return 24; + } else if(((a28==1)&&((((((!(a25==1)&&(!(a24==1)&&(((((a29==6)&&(a19==2))||(((a19==1)&&(a29==9))||((a29==5)&&(a19==2))))&&(input==6))&&(a22==1))))&&!(a20==1))&&(a14==9))&&!(a11==1))&&!(a7==1))&&!(a0==1)))){ + a25 = 1; + a11 = 1; + a29 = 8; + a24 = 1; + a19 = 2; + a0 = 1; + return 23; + } else if((((a14==9)&&(((!(a7==1)&&((a24==1)&&(((a19==1)&&((a28==1)&&((a22==1)&&((input==6)&&((a29==8)||((a29==6)||(a29==7)))))))&&(a20==1))))&&(a25==1))&&(a11==1)))&&!(a0==1))){ + a19 = 2; + a0 = 1; + a29 = 8; + a24 = 0; + return -1; + } else if(((!(a11==1)&&(!(a0==1)&&((a14==9)&&((((a28==1)&&((((a20==1)&&((input==4)&&((a29==7)||((a29==5)||(a29==6)))))&&(a25==1))&&!(a24==1)))&&!(a7==1))&&(a19==3)))))&&(a22==1))){ + a24 = 1; + a14 = 8; + a29 = 5; + a20 = 0; + a11 = 1; + return 24; + } else if((!(a24==1)&&((a22==1)&&((!(a25==1)&&(!(a11==1)&&((a19==4)&&((a28==1)&&((!(a20==1)&&(((a7==1)&&(input==6))&&(a14==9)))&&(a29==9))))))&&!(a0==1))))){ + a11 = 1; + a24 = 1; + a14 = 8; + a25 = 1; + a0 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a20==1)&&((a19==2)&&(((a22==1)&&(((a28==1)&&((a24==1)&&(((a11==1)&&(((input==4)&&((a29==6)||(a29==7)))&&(a0==1)))&&!(a25==1))))&&(a14==10)))&&(a7==1))))){ + a14 = 8; + a0 = 0; + a29 = 5; + a7 = 0; + return 24; + } else if(((((a11==1)&&((((((((a28==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==4)))&&!(a7==1))&&(a14==9))&&!(a0==1))&&(a24==1))&&(a22==1))&&(a25==1)))&&(a19==1))&&!(a20==1))){ + a14 = 8; + a24 = 0; + a25 = 0; + a29 = 8; + return 23; + } else if(((!(a11==1)&&(((a19==4)&&((a22==1)&&(!(a7==1)&&(!(a25==1)&&((a28==1)&&(((((a29==6)||(a29==7))&&(input==3))&&!(a20==1))&&(a24==1)))))))&&!(a0==1)))&&(a14==9))){ + a19 = 3; + a25 = 1; + a0 = 1; + a29 = 5; + a20 = 1; + a7 = 1; + return 21; + } else if((!(a11==1)&&((!(a25==1)&&((((a22==1)&&((a19==5)&&(((((input==5)&&((a29==8)||(a29==9)))&&(a14==9))&&(a20==1))&&!(a7==1))))&&!(a24==1))&&(a28==1)))&&(a0==1)))){ + a0 = 0; + a24 = 1; + a29 = 8; + a11 = 1; + a19 = 3; + a25 = 1; + a20 = 0; + a14 = 8; + return 21; + } else if(((a28==1)&&(((((!(a24==1)&&(((!(a7==1)&&(((input==4)&&(a29==9))&&(a0==1)))&&(a20==1))&&(a14==9)))&&(a25==1))&&(a11==1))&&(a22==1))&&(a19==3)))){ + a24 = 1; + a11 = 0; + a29 = 5; + return 21; + } else if((((((a25==1)&&(!(a7==1)&&(((((((input==4)&&(a11==1))&&(a22==1))&&!(a24==1))&&(a14==8))&&(a28==1))&&(a29==6))))&&(a19==4))&&(a20==1))&&(a0==1))){ + a24 = 1; + a19 = 5; + a29 = 8; + a0 = 0; + a25 = 0; + a20 = 0; + return 24; + } else if(((a14==8)&&((a28==1)&&((((a7==1)&&((a0==1)&&((a25==1)&&((a19==5)&&((a22==1)&&((((a29==7)||(a29==8))&&(input==2))&&!(a24==1)))))))&&!(a20==1))&&!(a11==1))))){ + a24 = 1; + a29 = 5; + a11 = 1; + a20 = 1; + a19 = 1; + return -1; + } else if(((!(a0==1)&&((a22==1)&&((a25==1)&&((a14==8)&&(((((a7==1)&&((input==5)&&(((a19==4)&&(a29==5))||(((a19==3)&&(a29==8))||((a29==9)&&(a19==3))))))&&(a28==1))&&(a20==1))&&!(a11==1))))))&&(a24==1))){ + a20 = 0; + a29 = 9; + a24 = 0; + a19 = 4; + a11 = 1; + return 24; + } else if(((a19==5)&&((((!(a7==1)&&((((!(a20==1)&&(((a11==1)&&(input==2))&&(a14==8)))&&(a22==1))&&(a29==6))&&(a0==1)))&&(a28==1))&&(a25==1))&&(a24==1)))){ + a11 = 0; + a29 = 5; + a19 = 3; + return 23; + } else if(((a28==1)&&(((((((((a24==1)&&(!(a11==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==1))))&&(a25==1))&&(a14==9))&&(a22==1))&&(a19==1))&&!(a7==1))&&(a20==1))&&(a0==1)))){ + a14 = 8; + a20 = 0; + a11 = 1; + a0 = 0; + a29 = 7; + return 24; + } else if(((a24==1)&&((((((!(a0==1)&&(((a14==8)&&(!(a11==1)&&((input==4)&&((a29==7)||(a29==8)))))&&!(a25==1)))&&(a19==3))&&(a20==1))&&(a28==1))&&(a22==1))&&!(a7==1)))){ + a19 = 5; + a14 = 9; + a11 = 1; + a29 = 9; + a24 = 0; + return 24; + } else if((!(a25==1)&&((a20==1)&&(!(a0==1)&&(((a19==2)&&(!(a24==1)&&(((a22==1)&&((a14==9)&&(!(a11==1)&&((a28==1)&&(input==6)))))&&(a29==9))))&&!(a7==1)))))){ + a25 = 1; + a7 = 1; + a19 = 5; + a29 = 7; + a24 = 1; + return -1; + } else if(((a22==1)&&(!(a20==1)&&((!(a11==1)&&((((a25==1)&&((((input==6)&&(((a29==9)&&(a19==4))||((a29==5)&&(a19==5))))&&!(a0==1))&&(a14==9)))&&(a24==1))&&!(a7==1)))&&(a28==1))))){ + a19 = 1; + a0 = 1; + a29 = 5; + a7 = 1; + a14 = 8; + a11 = 1; + a20 = 1; + return -1; + } else if((!(a11==1)&&(((((((((a22==1)&&(((a28==1)&&(input==5))&&!(a24==1)))&&(a0==1))&&(a14==9))&&!(a25==1))&&(a7==1))&&(a29==7))&&!(a20==1))&&(a19==2)))){ + a11 = 1; + a24 = 1; + a19 = 5; + a29 = 8; + a20 = 1; + return -1; + } else if((((a22==1)&&(((a25==1)&&((!(a20==1)&&((a14==9)&&((((a19==1)&&((input==3)&&!(a0==1)))&&(a29==8))&&(a11==1))))&&(a28==1)))&&(a7==1)))&&!(a24==1))){ + a25 = 0; + a11 = 0; + a20 = 1; + a14 = 8; + a29 = 5; + return 24; + } else if((!(a20==1)&&((((a0==1)&&(!(a25==1)&&((a14==10)&&(((a28==1)&&((a22==1)&&(((input==1)&&((a29==7)||(a29==8)))&&(a11==1))))&&(a19==5)))))&&!(a7==1))&&(a24==1)))){ + a25 = 1; + a29 = 6; + a14 = 9; + a7 = 1; + a19 = 4; + return 24; + } else if(((a0==1)&&((a28==1)&&((a7==1)&&((a22==1)&&((a20==1)&&((a14==9)&&((((input==2)&&((((a19==5)&&((a29==8)&&(a25==1)))||(((a25==1)&&(a29==9))&&(a19==5)))||((a19==1)&&((a29==5)&&!(a25==1)))))&&!(a24==1))&&(a11==1))))))))){ + a25 = 0; + a0 = 0; + a24 = 1; + a19 = 5; + a7 = 0; + a29 = 6; + a14 = 8; + return -1; + } else if((((a24==1)&&(((!(a20==1)&&(((((((a29==9)&&(!(a25==1)&&(a7==1)))&&(a19==5))||(((!(a7==1)&&(a25==1))&&(a29==5))&&(a19==1)))&&(input==4))&&(a22==1))&&!(a11==1)))&&(a14==9))&&(a28==1)))&&!(a0==1))){ + a19 = 1; + a25 = 1; + a14 = 8; + a7 = 1; + a20 = 1; + a29 = 5; + a0 = 1; + a11 = 1; + return -1; + } else if(((a11==1)&&((a24==1)&&(((((a14==10)&&((a19==2)&&((a28==1)&&((((input==3)&&(((a29==6)||(a29==7))||(a29==8)))&&(a20==1))&&(a25==1)))))&&(a22==1))&&!(a7==1))&&(a0==1))))){ + a29 = 5; + a14 = 8; + a7 = 1; + a19 = 1; + return -1; + } else if(((a29==6)&&((!(a20==1)&&(((a28==1)&&(!(a25==1)&&((a22==1)&&((!(a7==1)&&(((input==1)&&(a14==9))&&(a24==1)))&&(a19==1)))))&&(a11==1)))&&(a0==1)))){ + a25 = 1; + a14 = 8; + a29 = 5; + a7 = 1; + a20 = 1; + return -1; + } else if(((a22==1)&&((a7==1)&&(((((((a0==1)&&(((a14==9)&&(((a29==8)||(a29==9))&&(input==3)))&&(a19==4)))&&!(a25==1))&&(a28==1))&&!(a24==1))&&(a11==1))&&(a20==1))))){ + a29 = 7; + a0 = 0; + a14 = 8; + a19 = 3; + a25 = 1; + return -1; + } else if((!(a7==1)&&(((a19==1)&&(((a14==9)&&((a22==1)&&((a29==9)&&(!(a24==1)&&((a20==1)&&(((a28==1)&&(input==1))&&!(a11==1)))))))&&(a25==1)))&&!(a0==1)))){ + a29 = 5; + a11 = 1; + a24 = 1; + a7 = 1; + a14 = 8; + a0 = 1; + return -1; + } else if((((a22==1)&&(!(a11==1)&&((a28==1)&&((a20==1)&&(!(a0==1)&&(!(a25==1)&&((a14==8)&&(((input==5)&&((((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))||((a19==2)&&(a29==6))))&&!(a24==1)))))))))&&(a7==1))){ + a25 = 1; + a19 = 2; + a29 = 9; + return -1; + } else if(((((!(a11==1)&&(((a19==5)&&((a20==1)&&(((a0==1)&&((a29==7)&&((input==1)&&!(a7==1))))&&(a25==1))))&&(a22==1)))&&(a14==8))&&(a28==1))&&(a24==1))){ + a25 = 0; + a20 = 0; + a19 = 2; + a29 = 8; + a0 = 0; + a11 = 1; + return 24; + } else if(((a0==1)&&(((a19==5)&&((a28==1)&&((((!(a20==1)&&(((a14==9)&&(((a29==8)||(a29==9))&&(input==2)))&&(a7==1)))&&!(a25==1))&&(a22==1))&&(a24==1))))&&(a11==1)))){ + a25 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if((((a24==1)&&((a11==1)&&(((((a0==1)&&(((((input==4)&&((a29==7)||(a29==8)))&&(a7==1))&&(a14==9))&&(a19==1)))&&(a20==1))&&(a28==1))&&!(a25==1))))&&(a22==1))){ + a0 = 0; + a11 = 0; + a29 = 5; + a19 = 4; + a24 = 0; + a7 = 0; + return 21; + } else if(((a22==1)&&(!(a0==1)&&((a28==1)&&(((!(a25==1)&&((a11==1)&&((((input==6)&&(((a19==4)&&(a29==5))||(((a19==3)&&(a29==8))||((a29==9)&&(a19==3)))))&&!(a20==1))&&(a7==1))))&&(a24==1))&&(a14==9)))))){ + a24 = 0; + a29 = 6; + a25 = 1; + a19 = 3; + a14 = 8; + return 21; + } else if((((a28==1)&&((a22==1)&&((a7==1)&&((a14==8)&&(!(a25==1)&&(((!(a11==1)&&((a20==1)&&((input==6)&&((a29==7)||(a29==8)))))&&(a19==5))&&!(a24==1)))))))&&(a0==1))){ + a11 = 1; + a20 = 0; + a24 = 1; + a0 = 0; + a19 = 2; + a29 = 7; + return 23; + } else if(((a25==1)&&(!(a0==1)&&(((((a22==1)&&(((((input==3)&&((((a29==8)&&(a19==2))||((a19==2)&&(a29==9)))||((a29==5)&&(a19==3))))&&(a24==1))&&!(a20==1))&&(a7==1)))&&(a28==1))&&(a14==8))&&!(a11==1))))){ + a19 = 5; + a25 = 0; + a29 = 7; + return 24; + } else if(((!(a7==1)&&(((((a20==1)&&((a0==1)&&((a14==8)&&((a22==1)&&((((a29==6)||(a29==7))&&(input==1))&&!(a25==1))))))&&!(a11==1))&&(a19==5))&&(a24==1)))&&(a28==1))){ + a7 = 1; + a19 = 1; + a25 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if(((((a11==1)&&(((a28==1)&&(!(a20==1)&&(((a19==5)&&(((a22==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==5)))&&(a7==1)))&&(a14==10))))&&(a24==1)))&&(a25==1))&&(a0==1))){ + a11 = 0; + a20 = 1; + a14 = 9; + a19 = 3; + a7 = 0; + a24 = 0; + a29 = 5; + return -1; + } else if((((((a7==1)&&(((a28==1)&&(((a25==1)&&((a19==4)&&(!(a0==1)&&((a14==9)&&(input==3)))))&&!(a20==1)))&&(a22==1)))&&!(a24==1))&&(a29==5))&&!(a11==1))){ + a11 = 1; + a20 = 1; + a19 = 1; + a14 = 8; + a24 = 1; + a0 = 1; + return -1; + } else if((((a14==8)&&((a24==1)&&((a22==1)&&(!(a20==1)&&((a7==1)&&(!(a25==1)&&((((a11==1)&&((input==6)&&((a29==7)||((a29==5)||(a29==6)))))&&(a28==1))&&(a19==3))))))))&&(a0==1))){ + a19 = 5; + a29 = 7; + a7 = 0; + a24 = 0; + return 21; + } else if(((!(a25==1)&&((a19==4)&&((a24==1)&&(((((a28==1)&&(((((a29==9)||((a29==7)||(a29==8)))&&(input==3))&&(a7==1))&&(a0==1)))&&(a14==9))&&!(a11==1))&&(a20==1)))))&&(a22==1))){ + a24 = 0; + a19 = 1; + a29 = 9; + a25 = 1; + return 23; + } else if((!(a25==1)&&((((a7==1)&&(((a19==3)&&(((a24==1)&&(((a28==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==1)))&&!(a20==1)))&&(a11==1)))&&!(a0==1)))&&(a14==8))&&(a22==1)))){ + a25 = 1; + a29 = 9; + a20 = 1; + a19 = 5; + return 21; + } else if(((a19==2)&&((a14==9)&&((a29==7)&&((a28==1)&&((((a25==1)&&(((a22==1)&&((a24==1)&&((input==2)&&(a0==1))))&&(a11==1)))&&(a20==1))&&(a7==1))))))){ + a20 = 0; + a19 = 1; + a14 = 8; + a25 = 0; + a0 = 0; + a29 = 9; + return 24; + } else if(((a19==1)&&(!(a7==1)&&((a28==1)&&((((a24==1)&&((a22==1)&&(((!(a0==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==2)))&&(a14==9))&&!(a25==1))))&&!(a11==1))&&!(a20==1)))))){ + a29 = 9; + a19 = 4; + a14 = 8; + a24 = 0; + a7 = 1; + return -1; + } else if((((((!(a0==1)&&(((((((a19==5)&&(input==1))&&!(a24==1))&&(a22==1))&&!(a25==1))&&(a7==1))&&(a29==5)))&&(a14==8))&&(a11==1))&&(a28==1))&&!(a20==1))){ + a29 = 8; + a25 = 1; + a19 = 2; + return -1; + } else if((!(a24==1)&&(((a7==1)&&(((((a22==1)&&((((input==1)&&(((a19==4)&&(a29==6))||(((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))))&&(a25==1))&&(a0==1)))&&(a20==1))&&!(a11==1))&&(a14==8)))&&(a28==1)))){ + a11 = 1; + a14 = 9; + a25 = 0; + a19 = 3; + a29 = 8; + return 23; + } else if(((a28==1)&&(((a0==1)&&((a25==1)&&((a7==1)&&((!(a11==1)&&(((a20==1)&&((((a29==6)||(a29==7))&&(input==1))&&!(a24==1)))&&(a14==9)))&&(a19==5)))))&&(a22==1)))){ + a11 = 1; + a14 = 8; + a24 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((((a22==1)&&(((!(a11==1)&&((!(a7==1)&&(((input==6)&&(((a19==5)&&(a29==5))||(((a19==4)&&(a29==8))||((a29==9)&&(a19==4)))))&&!(a0==1)))&&(a28==1)))&&(a20==1))&&(a25==1)))&&(a14==8))&&(a24==1))){ + a0 = 1; + a7 = 1; + a29 = 5; + a19 = 1; + a11 = 1; + return -1; + } else if((((!(a11==1)&&((a22==1)&&((a14==8)&&((a28==1)&&(!(a0==1)&&(!(a7==1)&&((a24==1)&&(((((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))||((a29==6)&&(a19==3)))&&(input==3)))))))))&&(a25==1))&&!(a20==1))){ + a29 = 5; + a19 = 5; + a7 = 1; + a11 = 1; + return -1; + } else if((!(a11==1)&&(((a28==1)&&(((((a14==8)&&((!(a25==1)&&((a20==1)&&(((a29==6)||(a29==7))&&(input==4))))&&(a22==1)))&&!(a0==1))&&!(a24==1))&&(a7==1)))&&(a19==3)))){ + a7 = 0; + a20 = 0; + a29 = 5; + a24 = 1; + a19 = 2; + a25 = 1; + return -1; + } else if((!(a24==1)&&((a11==1)&&(((((a0==1)&&((!(a25==1)&&((!(a20==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==1)))&&(a14==8)))&&(a19==3)))&&(a22==1))&&(a28==1))&&!(a7==1))))){ + a11 = 0; + a19 = 2; + a29 = 6; + a0 = 0; + a24 = 1; + a20 = 1; + return 21; + } else if(((a22==1)&&((a14==10)&&((a28==1)&&(((a24==1)&&((a11==1)&&(((((((a29==9)||((a29==7)||(a29==8)))&&(input==1))&&(a7==1))&&(a19==5))&&(a20==1))&&(a0==1))))&&!(a25==1)))))){ + a25 = 1; + a29 = 5; + a19 = 3; + a14 = 9; + return 21; + } else if(((((a0==1)&&((a14==8)&&((a29==6)&&((a24==1)&&((((((input==4)&&(a25==1))&&(a22==1))&&!(a11==1))&&(a20==1))&&(a28==1))))))&&(a7==1))&&(a19==5))){ + a0 = 0; + a25 = 0; + a11 = 1; + return 24; + } else if(((a14==8)&&(((((a11==1)&&((a28==1)&&(!(a7==1)&&(!(a20==1)&&(!(a0==1)&&((((a29==8)||(a29==9))&&(input==3))&&!(a24==1)))))))&&(a19==3))&&(a25==1))&&(a22==1)))){ + a19 = 5; + a29 = 8; + a24 = 1; + a14 = 9; + return 24; + } else if((((a19==5)&&((!(a20==1)&&((((a0==1)&&((a29==5)&&((a22==1)&&(((input==3)&&(a25==1))&&!(a7==1)))))&&!(a11==1))&&(a28==1)))&&(a14==8)))&&(a24==1))){ + a19 = 1; + a11 = 1; + a20 = 1; + a7 = 1; + return -1; + } else if(((a14==8)&&(!(a20==1)&&((a28==1)&&(((a7==1)&&((((((((a29==6)&&(a19==2))||(((a19==1)&&(a29==9))||((a29==5)&&(a19==2))))&&(input==2))&&!(a24==1))&&(a25==1))&&!(a11==1))&&(a0==1)))&&(a22==1)))))){ + a24 = 1; + a20 = 1; + a29 = 7; + a19 = 5; + a14 = 9; + return 24; + } else if(((((!(a7==1)&&((((!(a24==1)&&(((input==6)&&(((a29==9)&&(a19==3))||((a29==5)&&(a19==4))))&&(a14==9)))&&(a11==1))&&(a22==1))&&!(a20==1)))&&(a28==1))&&(a25==1))&&!(a0==1))){ + a24 = 1; + a29 = 7; + a14 = 8; + a19 = 3; + a11 = 0; + a7 = 1; + return 24; + } else if((((((a0==1)&&(((((((a22==1)&&((input==6)&&(a19==1)))&&(a29==9))&&(a11==1))&&(a20==1))&&(a24==1))&&(a14==9)))&&(a7==1))&&(a25==1))&&(a28==1))){ + a25 = 0; + a20 = 0; + a19 = 4; + a29 = 5; + a14 = 8; + a11 = 0; + a24 = 0; + return 23; + } else if(((a22==1)&&(((a20==1)&&((a25==1)&&((((a19==2)&&(!(a0==1)&&(((a28==1)&&(((a29==6)||(a29==7))&&(input==3)))&&(a24==1))))&&!(a7==1))&&!(a11==1))))&&(a14==8)))){ + a29 = 5; + a19 = 4; + a7 = 1; + a25 = 0; + a11 = 1; + return -1; + } else if((((a24==1)&&((((a19==1)&&((a0==1)&&((a14==9)&&((a7==1)&&(!(a11==1)&&(((input==6)&&(((a29==6)||(a29==7))||(a29==8)))&&(a28==1)))))))&&(a22==1))&&(a20==1)))&&(a25==1))){ + a20 = 0; + a19 = 5; + a29 = 8; + a24 = 0; + a14 = 8; + a7 = 0; + return 24; + } else if(((a0==1)&&((a7==1)&&(!(a11==1)&&(!(a24==1)&&(((a28==1)&&((a14==9)&&(!(a20==1)&&((input==1)&&(((!(a25==1)&&(a29==5))&&(a19==1))||((((a25==1)&&(a29==8))&&(a19==5))||((a19==5)&&((a29==9)&&(a25==1)))))))))&&(a22==1))))))){ + a25 = 0; + a29 = 9; + a14 = 8; + a19 = 5; + return 23; + } else if(((a7==1)&&((a28==1)&&((a19==4)&&(((a14==8)&&((a11==1)&&(((a29==6)&&((!(a20==1)&&(!(a0==1)&&(input==5)))&&!(a24==1)))&&(a22==1))))&&!(a25==1)))))){ + a19 = 5; + a24 = 1; + a29 = 7; + a14 = 9; + return 21; + } else if((((((!(a20==1)&&(!(a0==1)&&(((a11==1)&&(((((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))&&(input==4))&&(a14==8)))&&(a7==1))))&&(a24==1))&&(a28==1))&&(a25==1))&&(a22==1))){ + a0 = 1; + a20 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((a19==4)&&((!(a24==1)&&((((a28==1)&&((((a0==1)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==6))&&!(a7==1)))&&(a11==1))&&(a22==1)))&&(a25==1))&&(a14==9)))&&!(a20==1)))){ + a25 = 0; + a14 = 8; + a29 = 9; + a20 = 1; + a0 = 0; + a19 = 3; + return 21; + } else if(((!(a20==1)&&((a25==1)&&((!(a0==1)&&((((a22==1)&&((((((a29==7)||(a29==8))||(a29==9))&&(input==3))&&(a11==1))&&(a7==1)))&&(a24==1))&&(a14==8)))&&(a19==1))))&&(a28==1))){ + a25 = 0; + a29 = 8; + a19 = 5; + return 21; + } else if((!(a11==1)&&((a24==1)&&((a19==4)&&((a20==1)&&(((a22==1)&&((((((a14==9)&&(input==2))&&!(a7==1))&&!(a25==1))&&!(a0==1))&&(a28==1)))&&(a29==9))))))){ + a25 = 1; + a19 = 1; + a7 = 1; + a0 = 1; + a29 = 5; + a14 = 8; + a11 = 1; + return -1; + } else if((((a0==1)&&((a28==1)&&(!(a20==1)&&(((!(a7==1)&&(((a22==1)&&((((a29==6)||(a29==7))&&(input==3))&&!(a11==1)))&&(a14==8)))&&(a24==1))&&(a19==5)))))&&(a25==1))){ + a25 = 0; + a7 = 1; + a29 = 6; + a19 = 4; + a11 = 1; + a0 = 0; + return 24; + } else if(((a19==4)&&((a0==1)&&((a25==1)&&((a14==9)&&((a28==1)&&(!(a11==1)&&(!(a20==1)&&(!(a24==1)&&((a7==1)&&((a22==1)&&((input==2)&&((a29==7)||(a29==8)))))))))))))){ + a14 = 8; + a11 = 1; + a29 = 8; + a19 = 5; + a7 = 0; + a24 = 1; + a0 = 0; + return 24; + } else if(((a14==10)&&(((((a22==1)&&(((((a25==1)&&(((input==2)&&((a29==6)||(a29==7)))&&(a0==1)))&&(a7==1))&&(a20==1))&&(a28==1)))&&!(a24==1))&&(a19==3))&&(a11==1)))){ + a24 = 1; + a29 = 6; + a19 = 4; + a0 = 0; + a20 = 0; + a14 = 8; + return 21; + } else if(((!(a11==1)&&((!(a7==1)&&((((a22==1)&&(((((a20==1)&&(input==5))&&(a25==1))&&(a28==1))&&(a29==9)))&&(a19==3))&&(a14==9)))&&!(a0==1)))&&!(a24==1))){ + a7 = 1; + a25 = 0; + a29 = 6; + a20 = 0; + a14 = 8; + a24 = 1; + a11 = 1; + return 21; + } else if(((a24==1)&&(((a29==5)&&(((a22==1)&&((((((a20==1)&&((a19==1)&&(input==3)))&&!(a0==1))&&!(a11==1))&&(a14==9))&&(a7==1)))&&(a25==1)))&&(a28==1)))){ + a0 = 1; + a14 = 8; + a11 = 1; + return -1; + } else if((((a22==1)&&(((a28==1)&&(((a0==1)&&((a14==9)&&((a7==1)&&((input==6)&&(((((a29==9)&&(a25==1))&&(a19==5))||((!(a25==1)&&(a29==5))&&(a19==1)))||((a19==1)&&((a29==6)&&!(a25==1))))))))&&!(a24==1)))&&!(a11==1)))&&(a20==1))){ + a20 = 0; + a29 = 8; + a19 = 2; + a14 = 8; + a25 = 0; + return 24; + } else if(((a20==1)&&((a19==3)&&((a7==1)&&((a28==1)&&(((a0==1)&&((!(a11==1)&&((a25==1)&&((a22==1)&&((input==3)&&(((a29==6)||(a29==7))||(a29==8))))))&&!(a24==1)))&&(a14==8))))))){ + a19 = 1; + a24 = 1; + a29 = 5; + a11 = 1; + return -1; + } else if(((a25==1)&&((a24==1)&&((a14==10)&&((a11==1)&&((a0==1)&&((a20==1)&&((!(a7==1)&&((((((a29==8)&&(a19==1))||((a29==9)&&(a19==1)))||((a29==5)&&(a19==2)))&&(input==2))&&(a22==1)))&&(a28==1))))))))){ + a25 = 0; + a29 = 7; + a20 = 0; + a11 = 0; + a0 = 0; + a19 = 4; + a14 = 8; + return 24; + } else if((((((a14==8)&&((a11==1)&&((((((input==6)&&(((a29==5)&&(a19==5))||(((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))))&&(a0==1))&&(a7==1))&&!(a25==1))&&!(a20==1))))&&(a28==1))&&(a22==1))&&!(a24==1))){ + a7 = 0; + a20 = 1; + a29 = 5; + a19 = 1; + a25 = 1; + a24 = 1; + a0 = 0; + return 23; + } else if(((((a20==1)&&((a7==1)&&(((!(a25==1)&&(((!(a0==1)&&((a22==1)&&(input==3)))&&(a11==1))&&(a28==1)))&&(a24==1))&&(a19==1))))&&(a14==8))&&(a29==7))){ + a25 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if(((a11==1)&&((a19==1)&&((a28==1)&&((a20==1)&&(((a14==10)&&((a22==1)&&(((a24==1)&&((((a29==5)||(a29==6))&&(input==4))&&(a7==1)))&&(a0==1))))&&(a25==1))))))){ + a14 = 8; + a29 = 6; + a25 = 0; + a20 = 0; + a0 = 0; + a19 = 5; + return 24; + } else if((((a19==4)&&(((((a14==8)&&(((a7==1)&&(((a24==1)&&(((a29==6)||(a29==7))&&(input==1)))&&(a22==1)))&&(a28==1)))&&!(a0==1))&&(a20==1))&&!(a11==1)))&&(a25==1))){ + a14 = 9; + a24 = 0; + a11 = 1; + a29 = 8; + return 21; + } else if((!(a0==1)&&((a20==1)&&((a7==1)&&(((!(a24==1)&&((((a28==1)&&(((input==3)&&((a29==8)||((a29==6)||(a29==7))))&&(a19==1)))&&!(a25==1))&&!(a11==1)))&&(a22==1))&&(a14==8)))))){ + a14 = 9; + a25 = 1; + a20 = 0; + a0 = 1; + a29 = 9; + return 24; + } else if((((!(a11==1)&&((a19==1)&&(!(a20==1)&&((!(a25==1)&&(((a14==9)&&((a22==1)&&((a24==1)&&(input==2))))&&(a28==1)))&&(a7==1)))))&&(a29==9))&&(a0==1))){ + a0 = 0; + a19 = 4; + a14 = 8; + a11 = 1; + a29 = 5; + a25 = 1; + a20 = 1; + return 23; + } else if((((a20==1)&&((a19==3)&&((a24==1)&&((((a0==1)&&((a28==1)&&(((((a29==7)||(a29==8))&&(input==5))&&(a22==1))&&(a25==1))))&&(a14==8))&&!(a11==1)))))&&(a7==1))){ + a19 = 1; + a29 = 6; + a0 = 0; + a7 = 0; + a20 = 0; + return 23; + } else if((((a0==1)&&(((((!(a11==1)&&((a14==8)&&(!(a25==1)&&((((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))&&(input==6)))))&&(a7==1))&&!(a24==1))&&!(a20==1))&&(a28==1)))&&(a22==1))){ + a19 = 1; + a25 = 1; + a24 = 1; + a20 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if(((((((a28==1)&&((!(a11==1)&&(!(a0==1)&&(((input==4)&&((((a19==4)&&(a29==8))||((a29==9)&&(a19==4)))||((a19==5)&&(a29==5))))&&!(a20==1))))&&(a14==9)))&&(a25==1))&&(a22==1))&&!(a24==1))&&!(a7==1))){ + a11 = 1; + a25 = 0; + a24 = 1; + a7 = 1; + a0 = 1; + a29 = 5; + a19 = 2; + return 21; + } else if(((((((a11==1)&&((((a7==1)&&((((input==4)&&(((a29==5)||(a29==6))||(a29==7)))&&(a19==5))&&(a28==1)))&&!(a25==1))&&(a22==1)))&&!(a24==1))&&(a20==1))&&(a14==9))&&(a0==1))){ + a14 = 8; + a0 = 0; + a25 = 1; + a11 = 0; + a7 = 0; + a24 = 1; + a19 = 1; + a29 = 8; + return -1; + } else if((!(a0==1)&&((a20==1)&&(((a28==1)&&(!(a25==1)&&((a19==1)&&(((a14==9)&&((!(a11==1)&&((input==3)&&((a29==7)||(a29==8))))&&(a22==1)))&&(a24==1)))))&&(a7==1))))){ + a14 = 8; + a29 = 8; + a11 = 1; + a25 = 1; + a20 = 0; + a19 = 2; + return 24; + } else if(((a22==1)&&((a24==1)&&(((!(a20==1)&&((((((((a29==7)||((a29==5)||(a29==6)))&&(input==1))&&(a14==9))&&(a19==2))&&(a28==1))&&(a0==1))&&(a11==1)))&&!(a25==1))&&(a7==1))))){ + a11 = 0; + a25 = 1; + a24 = 0; + a29 = 5; + a0 = 0; + a19 = 3; + a7 = 0; + a14 = 8; + return -1; + } else if(((!(a24==1)&&((a19==4)&&(((a20==1)&&((a22==1)&&(((a7==1)&&((a28==1)&&(((input==3)&&!(a25==1))&&(a29==6))))&&(a14==9))))&&(a11==1))))&&!(a0==1))){ + a0 = 1; + a14 = 8; + a24 = 1; + a25 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a14==9)&&(((a11==1)&&(((a28==1)&&((a20==1)&&(!(a25==1)&&(((a0==1)&&((input==6)&&(((a29==6)&&(a19==5))||(((a19==4)&&(a29==9))||((a29==5)&&(a19==5))))))&&(a7==1)))))&&(a24==1)))&&(a22==1)))){ + a14 = 8; + a20 = 0; + a19 = 3; + a0 = 0; + a29 = 9; + return 24; + } else if(((a24==1)&&((a14==8)&&(!(a11==1)&&((a0==1)&&((a28==1)&&((((a25==1)&&((!(a20==1)&&((a22==1)&&(input==5)))&&(a29==5)))&&(a19==1))&&!(a7==1)))))))){ + a11 = 1; + a20 = 1; + a7 = 1; + return -1; + } else if(((a22==1)&&((!(a11==1)&&(!(a24==1)&&((a20==1)&&(!(a0==1)&&(((a28==1)&&(((input==3)&&(((a29==6)&&(a19==5))||(((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))))&&(a7==1)))&&(a25==1))))))&&(a14==8)))){ + a20 = 0; + a7 = 0; + a19 = 5; + a29 = 5; + a0 = 1; + return 21; + } else if(((a24==1)&&((a19==3)&&(!(a0==1)&&(((a11==1)&&(((a22==1)&&((a25==1)&&((!(a20==1)&&(((a29==6)||(a29==7))&&(input==6)))&&(a28==1))))&&(a14==9)))&&!(a7==1)))))){ + a24 = 0; + a29 = 7; + a19 = 5; + a14 = 8; + a11 = 0; + a0 = 1; + return 24; + } else if((!(a20==1)&&(((!(a0==1)&&(((((!(a11==1)&&(((input==4)&&((a29==5)||(a29==6)))&&!(a7==1)))&&(a19==4))&&(a14==8))&&(a25==1))&&(a28==1)))&&(a22==1))&&(a24==1)))){ + a19 = 3; + a7 = 1; + a0 = 1; + a11 = 1; + a14 = 9; + a29 = 5; + a20 = 1; + return 21; + } else if((((((a22==1)&&(((!(a0==1)&&((a14==8)&&((a19==5)&&((a28==1)&&((input==2)&&(a29==5))))))&&!(a7==1))&&!(a11==1)))&&!(a24==1))&&(a25==1))&&!(a20==1))){ + a0 = 1; + a24 = 1; + a20 = 1; + a19 = 1; + a7 = 1; + a11 = 1; + return -1; + } else if(((a11==1)&&((a22==1)&&((!(a7==1)&&((((a14==8)&&((((((a29==5)||(a29==6))&&(input==1))&&!(a20==1))&&(a28==1))&&(a19==1)))&&(a24==1))&&!(a25==1)))&&!(a0==1))))){ + a24 = 0; + a0 = 1; + a29 = 6; + a11 = 0; + return -1; + } else if((((((!(a20==1)&&(((a29==6)&&(!(a7==1)&&(((a14==8)&&((input==2)&&(a24==1)))&&!(a11==1))))&&(a0==1)))&&!(a25==1))&&(a19==5))&&(a22==1))&&(a28==1))){ + a11 = 1; + a19 = 1; + a24 = 0; + a14 = 9; + a7 = 1; + a20 = 1; + a25 = 1; + return 21; + } else if(((a0==1)&&((a24==1)&&((a19==4)&&(((a14==10)&&((((a25==1)&&(!(a7==1)&&(((input==3)&&(a29==6))&&(a11==1))))&&(a28==1))&&(a22==1)))&&!(a20==1)))))){ + a25 = 0; + a19 = 5; + a14 = 9; + a7 = 1; + return -1; + } else if(((a29==8)&&(!(a0==1)&&((a28==1)&&((a24==1)&&((a11==1)&&((a14==9)&&(!(a20==1)&&((!(a7==1)&&((a22==1)&&((input==3)&&(a19==5))))&&(a25==1)))))))))){ + a25 = 0; + a24 = 0; + a29 = 6; + a14 = 8; + a19 = 2; + a0 = 1; + a11 = 0; + return 23; + } else if((!(a7==1)&&((a28==1)&&(((a25==1)&&(((((a11==1)&&((a19==3)&&((a20==1)&&((a24==1)&&(input==3)))))&&!(a0==1))&&(a22==1))&&(a29==6)))&&(a14==8))))){ + a7 = 1; + a19 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if((!(a11==1)&&(((a28==1)&&((a14==9)&&((((((a19==2)&&((a22==1)&&(!(a7==1)&&(input==3))))&&!(a25==1))&&!(a20==1))&&(a29==5))&&(a24==1))))&&(a0==1)))){ + a29 = 9; + a19 = 5; + a11 = 1; + a7 = 1; + a24 = 0; + return 23; + } else if((!(a20==1)&&((a22==1)&&((a19==4)&&((!(a7==1)&&(!(a0==1)&&(((a14==9)&&(((a24==1)&&(((a29==5)||(a29==6))&&(input==5)))&&(a11==1)))&&!(a25==1))))&&(a28==1)))))){ + a20 = 1; + a29 = 6; + a24 = 0; + a0 = 1; + a19 = 1; + return -1; + } else if(((((a7==1)&&(((a0==1)&&(!(a20==1)&&(((a24==1)&&(((((a29==5)||(a29==6))&&(input==3))&&(a28==1))&&(a25==1)))&&(a19==1))))&&(a22==1)))&&(a11==1))&&(a14==10))){ + a20 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((a29==9)&&(((((a22==1)&&(((((((input==1)&&(a14==10))&&(a11==1))&&(a28==1))&&(a24==1))&&!(a25==1))&&(a7==1)))&&(a0==1))&&(a19==4))&&!(a20==1)))){ + a0 = 0; + a11 = 0; + a24 = 0; + a19 = 2; + a14 = 8; + a25 = 1; + return 24; + } else if(((!(a20==1)&&(((((((a7==1)&&((((input==5)&&(a28==1))&&!(a24==1))&&(a14==8)))&&(a19==5))&&(a29==7))&&(a25==1))&&(a22==1))&&!(a0==1)))&&!(a11==1))){ + a29 = 5; + a11 = 1; + a19 = 1; + a20 = 1; + a0 = 1; + a24 = 1; + return -1; + } else if(((a19==3)&&(((((a28==1)&&((a25==1)&&((a14==8)&&((!(a11==1)&&((((a29==6)||(a29==7))&&(input==2))&&!(a7==1)))&&!(a20==1)))))&&!(a24==1))&&(a22==1))&&!(a0==1)))){ + a25 = 0; + a20 = 1; + a14 = 9; + a29 = 8; + a0 = 1; + a19 = 1; + return 24; + } else if(((((((((a19==5)&&((!(a24==1)&&((a7==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==1))))&&(a0==1)))&&(a11==1))&&(a22==1))&&(a20==1))&&(a28==1))&&(a25==1))&&(a14==10))){ + a19 = 1; + a24 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if((((((((((a11==1)&&(((input==1)&&(((a19==4)&&(a29==6))||(((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))))&&(a14==9)))&&(a0==1))&&(a7==1))&&(a22==1))&&(a25==1))&&(a20==1))&&(a24==1))&&(a28==1))){ + a0 = 0; + a7 = 0; + a19 = 1; + a29 = 5; + a14 = 8; + return 24; + } else if(((a14==8)&&((((a24==1)&&((a0==1)&&((a22==1)&&(((a28==1)&&((a19==3)&&((a11==1)&&((input==4)&&((a29==8)||((a29==6)||(a29==7)))))))&&!(a25==1)))))&&(a20==1))&&!(a7==1)))){ + a29 = 5; + a19 = 5; + a20 = 0; + return 23; + } else if(((((((a28==1)&&((a7==1)&&((((((input==1)&&(a22==1))&&(a14==8))&&(a19==3))&&!(a25==1))&&!(a11==1))))&&!(a24==1))&&!(a0==1))&&(a29==6))&&!(a20==1))){ + a25 = 1; + a19 = 1; + a11 = 1; + a29 = 5; + a20 = 1; + a0 = 1; + a24 = 1; + return -1; + } else if((((((a22==1)&&(((a24==1)&&((((a25==1)&&((a19==2)&&((input==3)&&((a29==7)||(a29==8)))))&&!(a0==1))&&(a14==9)))&&!(a11==1)))&&!(a20==1))&&(a28==1))&&(a7==1))){ + a20 = 1; + a0 = 1; + a14 = 8; + a19 = 1; + a29 = 5; + a11 = 1; + return -1; + } else if((((a20==1)&&((a25==1)&&((a28==1)&&(!(a24==1)&&((a14==8)&&((a11==1)&&((((((a29==6)&&(a19==2))||(((a19==1)&&(a29==9))||((a29==5)&&(a19==2))))&&(input==2))&&(a22==1))&&!(a7==1))))))))&&(a0==1))){ + a19 = 5; + a25 = 0; + a20 = 0; + a29 = 5; + a7 = 1; + a0 = 0; + a24 = 1; + return 21; + } else if((((!(a20==1)&&((!(a24==1)&&((a28==1)&&(((a11==1)&&(((a22==1)&&((input==4)&&((a29==8)||((a29==6)||(a29==7)))))&&!(a25==1)))&&!(a7==1))))&&(a0==1)))&&(a19==1))&&(a14==9))){ + a14 = 8; + a19 = 5; + a0 = 0; + a24 = 1; + a11 = 0; + a29 = 6; + a20 = 1; + return 23; + } else if(((a14==9)&&((((((a25==1)&&((!(a24==1)&&(!(a7==1)&&((((a19==3)&&(a29==6))||(((a19==2)&&(a29==9))||((a29==5)&&(a19==3))))&&(input==6))))&&!(a0==1)))&&(a22==1))&&!(a20==1))&&(a28==1))&&(a11==1)))){ + a11 = 0; + a14 = 8; + a24 = 1; + a7 = 1; + a29 = 6; + a19 = 2; + return -1; + } else if(((((a14==8)&&(!(a11==1)&&((a0==1)&&((a22==1)&&(!(a20==1)&&(!(a25==1)&&((a29==7)&&(((a24==1)&&(input==3))&&(a28==1)))))))))&&(a19==2))&&(a7==1))){ + a20 = 1; + a14 = 9; + a11 = 1; + a29 = 9; + a19 = 3; + return 21; + } else if(((((!(a20==1)&&(((!(a25==1)&&((a14==9)&&((((((a29==6)||(a29==7))||(a29==8))&&(input==4))&&(a0==1))&&(a22==1))))&&(a19==4))&&!(a24==1)))&&(a11==1))&&!(a7==1))&&(a28==1))){ + a14 = 8; + a0 = 0; + a19 = 2; + a7 = 1; + a29 = 7; + a20 = 1; + a25 = 1; + return 23; + } else if((((!(a20==1)&&(((a7==1)&&(((a0==1)&&((a28==1)&&(((input==1)&&(((a29==5)&&(a19==5))||(((a19==4)&&(a29==8))||((a29==9)&&(a19==4)))))&&!(a24==1))))&&(a14==8)))&&(a22==1)))&&(a11==1))&&(a25==1))){ + a19 = 4; + a0 = 0; + a25 = 0; + a29 = 9; + return 24; + } else if(((a7==1)&&((a14==10)&&(((a19==4)&&((((!(a20==1)&&((a0==1)&&(((input==4)&&(((a29==5)||(a29==6))||(a29==7)))&&(a28==1))))&&(a11==1))&&(a24==1))&&(a25==1)))&&(a22==1))))){ + a24 = 0; + a11 = 0; + a29 = 9; + a19 = 1; + a25 = 0; + a7 = 0; + a14 = 8; + return 21; + } else if(((!(a20==1)&&(!(a25==1)&&((((((a24==1)&&(!(a7==1)&&(((input==6)&&(((a29==6)||(a29==7))||(a29==8)))&&(a22==1))))&&(a11==1))&&(a19==2))&&!(a0==1))&&(a14==9))))&&(a28==1))){ + a19 = 4; + a25 = 1; + a14 = 8; + a29 = 5; + return 21; + } else if(((a24==1)&&((((a20==1)&&((a22==1)&&((!(a25==1)&&((((a7==1)&&((input==4)&&((a29==7)||(a29==8))))&&(a11==1))&&!(a0==1)))&&(a28==1))))&&(a14==8))&&(a19==4)))){ + a29 = 8; + a24 = 0; + a14 = 9; + a0 = 1; + a11 = 0; + a19 = 5; + a25 = 1; + return 24; + } else if(((a7==1)&&((a29==8)&&(!(a25==1)&&(((((a19==1)&&((!(a24==1)&&((a14==9)&&((input==1)&&!(a0==1))))&&!(a20==1)))&&(a28==1))&&!(a11==1))&&(a22==1)))))){ + a14 = 8; + a29 = 5; + a24 = 1; + a0 = 1; + a25 = 1; + a11 = 1; + a20 = 1; + return -1; + } else if((((!(a0==1)&&((a25==1)&&(((a22==1)&&(((((((a29==7)||(a29==8))&&(input==1))&&!(a7==1))&&(a20==1))&&(a28==1))&&(a11==1)))&&(a14==9))))&&!(a24==1))&&(a19==1))){ + a19 = 2; + a14 = 8; + a29 = 6; + return -1; + } else if((!(a7==1)&&((((((a11==1)&&((a28==1)&&((a14==10)&&(((input==6)&&(((a29==9)&&(a19==3))||((a19==4)&&(a29==5))))&&(a22==1)))))&&(a25==1))&&(a0==1))&&!(a20==1))&&(a24==1)))){ + a14 = 8; + a29 = 5; + a25 = 0; + a19 = 1; + a11 = 0; + a0 = 0; + return 21; + } else if(((a19==5)&&((!(a11==1)&&(((((a20==1)&&((a29==5)&&(((a24==1)&&((input==2)&&(a22==1)))&&(a28==1))))&&!(a25==1))&&!(a7==1))&&(a14==9)))&&!(a0==1)))){ + a20 = 0; + a29 = 6; + a0 = 1; + a7 = 1; + a11 = 1; + return 23; + } else if((((((((!(a11==1)&&((((a19==1)&&((a28==1)&&(input==2)))&&(a20==1))&&(a25==1)))&&!(a7==1))&&!(a24==1))&&!(a0==1))&&(a22==1))&&(a14==9))&&(a29==9))){ + a14 = 8; + a24 = 1; + a0 = 1; + a29 = 5; + a11 = 1; + a7 = 1; + return -1; + } else if(((a29==9)&&((((a20==1)&&((((a28==1)&&(((a22==1)&&((!(a0==1)&&(input==5))&&!(a25==1)))&&(a11==1)))&&!(a24==1))&&(a19==2)))&&!(a7==1))&&(a14==9)))){ + a0 = 1; + a14 = 8; + a7 = 1; + a29 = 5; + a24 = 1; + a25 = 1; + a19 = 1; + return -1; + } else if(((a22==1)&&((a0==1)&&(((a11==1)&&((a25==1)&&((a28==1)&&((((((input==1)&&((a29==5)||(a29==6)))&&!(a20==1))&&!(a7==1))&&(a19==1))&&(a24==1)))))&&(a14==9))))){ + a0 = 0; + a19 = 3; + a20 = 1; + a29 = 6; + a14 = 8; + return 23; + } else if((((a25==1)&&((((a11==1)&&((a22==1)&&((a19==3)&&((a29==5)&&(((a20==1)&&((input==6)&&!(a7==1)))&&(a0==1))))))&&(a24==1))&&(a28==1)))&&(a14==9))){ + a11 = 0; + a0 = 0; + a19 = 4; + a25 = 0; + a29 = 6; + a20 = 0; + a14 = 8; + return 23; + } else if(((a19==1)&&((a22==1)&&(((!(a0==1)&&((!(a25==1)&&((a28==1)&&((a7==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==1))&&!(a11==1)))))&&!(a20==1)))&&!(a24==1))&&(a14==8))))){ + a0 = 1; + a11 = 1; + a24 = 1; + a20 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if(((a20==1)&&(((a14==9)&&((a22==1)&&(!(a24==1)&&((((a25==1)&&((a28==1)&&(!(a11==1)&&(((a29==8)||(a29==9))&&(input==5)))))&&(a7==1))&&(a0==1)))))&&(a19==2)))){ + a0 = 0; + a14 = 8; + a29 = 6; + a19 = 1; + a25 = 0; + a20 = 0; + return 21; + } else if(((a28==1)&&((a20==1)&&(((a14==9)&&((a19==3)&&((!(a11==1)&&(((((input==6)&&((a29==6)||(a29==7)))&&(a22==1))&&!(a24==1))&&(a7==1)))&&(a0==1))))&&(a25==1))))){ + a29 = 7; + a7 = 0; + a25 = 0; + a20 = 0; + a14 = 8; + a19 = 4; + return 23; + } else if((((a29==5)&&((a25==1)&&(!(a20==1)&&(!(a7==1)&&((!(a24==1)&&((((a14==9)&&((a22==1)&&(input==5)))&&(a19==3))&&(a28==1)))&&!(a0==1))))))&&!(a11==1))){ + a14 = 8; + a29 = 8; + a19 = 5; + a24 = 1; + a11 = 1; + return 23; + } else if((((((((!(a11==1)&&((((((a29==8)||((a29==6)||(a29==7)))&&(input==5))&&(a20==1))&&(a7==1))&&(a14==9)))&&(a25==1))&&(a19==3))&&(a22==1))&&(a24==1))&&(a28==1))&&!(a0==1))){ + a25 = 0; + a29 = 8; + a19 = 1; + a14 = 8; + a11 = 1; + return 24; + } else if((((a20==1)&&(!(a0==1)&&(!(a7==1)&&(((((a11==1)&&(((a28==1)&&(((a29==8)||(a29==9))&&(input==4)))&&(a22==1)))&&!(a25==1))&&(a14==9))&&(a19==4)))))&&!(a24==1))){ + a14 = 8; + a11 = 0; + a25 = 1; + a20 = 0; + a29 = 9; + a19 = 1; + a7 = 1; + return 21; + } else if(((((!(a0==1)&&(((((a28==1)&&(((a22==1)&&(((a29==7)||(a29==8))&&(input==2)))&&(a24==1)))&&!(a25==1))&&(a7==1))&&(a11==1)))&&(a20==1))&&(a14==8))&&(a19==4))){ + a24 = 0; + a0 = 1; + a19 = 5; + a14 = 9; + a29 = 6; + a25 = 1; + a11 = 0; + return 23; + } else if((((!(a7==1)&&((((!(a24==1)&&((((((a29==7)||(a29==8))&&(input==5))&&(a22==1))&&(a19==5))&&(a25==1)))&&(a0==1))&&(a11==1))&&(a28==1)))&&!(a20==1))&&(a14==8))){ + a24 = 1; + a19 = 2; + a20 = 1; + a11 = 0; + a29 = 6; + a0 = 0; + return 23; + } else if(((a19==4)&&((((a29==9)&&(!(a25==1)&&((!(a0==1)&&((a22==1)&&((a7==1)&&(!(a11==1)&&((input==4)&&(a28==1))))))&&(a14==9))))&&(a20==1))&&(a24==1)))){ + a19 = 5; + a29 = 6; + a14 = 8; + a20 = 0; + return 21; + } else if((((a7==1)&&((((a11==1)&&((a25==1)&&((((a14==8)&&(!(a20==1)&&(((a29==7)||(a29==8))&&(input==2))))&&(a28==1))&&(a22==1))))&&(a19==3))&&!(a24==1)))&&(a0==1))){ + a24 = 1; + a29 = 5; + a20 = 1; + a19 = 1; + return -1; + } else if((((a24==1)&&(!(a20==1)&&(((a14==8)&&((a19==1)&&(!(a0==1)&&(((((input==3)&&(a28==1))&&(a11==1))&&(a29==9))&&(a22==1)))))&&!(a25==1))))&&!(a7==1))){ + a7 = 1; + a29 = 5; + a19 = 4; + return 21; + } else if(((a11==1)&&((a24==1)&&((a14==8)&&((!(a0==1)&&(((a7==1)&&(((((a19==1)&&(!(a25==1)&&(a29==6)))||(((a19==5)&&((a25==1)&&(a29==9)))||((!(a25==1)&&(a29==5))&&(a19==1))))&&(input==1))&&!(a20==1)))&&(a22==1)))&&(a28==1)))))){ + a19 = 2; + a29 = 5; + a7 = 0; + a25 = 0; + a20 = 1; + return 21; + } else if((!(a25==1)&&((a22==1)&&((a19==1)&&(!(a24==1)&&((((((a28==1)&&((((a29==5)||(a29==6))&&(input==4))&&!(a11==1)))&&!(a0==1))&&(a7==1))&&(a20==1))&&(a14==9))))))){ + a11 = 1; + a25 = 1; + a14 = 8; + a24 = 1; + a29 = 5; + a7 = 0; + a19 = 3; + a20 = 0; + return 21; + } else if(((a29==7)&&(((((a25==1)&&((a20==1)&&((((!(a0==1)&&((a19==1)&&(input==1)))&&!(a11==1))&&(a22==1))&&!(a24==1))))&&(a14==9))&&!(a7==1))&&(a28==1)))){ + a19 = 3; + a11 = 1; + a24 = 1; + a25 = 0; + a14 = 8; + return 24; + } else if((!(a0==1)&&((!(a25==1)&&((((a28==1)&&((a14==9)&&(((a11==1)&&((((a29==8)||(a29==9))&&(input==2))&&(a22==1)))&&!(a7==1))))&&(a19==2))&&!(a24==1)))&&!(a20==1)))){ + a7 = 1; + a11 = 0; + a25 = 1; + a24 = 1; + a29 = 5; + a19 = 5; + a14 = 8; + return -1; + } else if((!(a20==1)&&((a7==1)&&(!(a24==1)&&(((((a22==1)&&((a28==1)&&((a19==5)&&((!(a25==1)&&(input==2))&&!(a11==1)))))&&(a29==5))&&!(a0==1))&&(a14==9)))))){ + a29 = 7; + a20 = 1; + a14 = 8; + a11 = 1; + a25 = 1; + a24 = 1; + a7 = 0; + return 24; + } else if(((((a28==1)&&((!(a11==1)&&(((a25==1)&&((a19==5)&&((a24==1)&&(!(a0==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==6))))))&&(a14==9)))&&!(a20==1)))&&(a22==1))&&!(a7==1))){ + a25 = 0; + a14 = 8; + a20 = 1; + a29 = 7; + return -1; + } else if((((a19==3)&&((((a0==1)&&((a28==1)&&((a25==1)&&((!(a24==1)&&((((a29==6)||(a29==7))&&(input==4))&&!(a11==1)))&&(a20==1)))))&&(a22==1))&&(a14==9)))&&(a7==1))){ + a11 = 1; + a14 = 8; + a19 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if(((((a0==1)&&(((a28==1)&&(!(a24==1)&&((((((a25==1)&&(input==6))&&(a19==5))&&(a29==6))&&!(a7==1))&&!(a20==1))))&&(a14==9)))&&(a22==1))&&(a11==1))){ + a7 = 1; + a19 = 4; + a11 = 0; + a14 = 8; + a25 = 0; + a0 = 0; + a20 = 1; + a29 = 9; + return -1; + } else if(((((a22==1)&&(((a20==1)&&((a7==1)&&(!(a0==1)&&((a25==1)&&((a28==1)&&((input==6)&&(((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))))))))&&!(a24==1)))&&(a11==1))&&(a14==8))){ + a25 = 0; + a0 = 1; + a29 = 9; + a20 = 0; + a24 = 1; + a11 = 0; + a14 = 9; + a7 = 0; + a19 = 5; + return 23; + } else if((!(a0==1)&&(((a28==1)&&((a14==9)&&((a20==1)&&(((a19==2)&&(!(a24==1)&&((((input==3)&&(((a29==6)||(a29==7))||(a29==8)))&&!(a7==1))&&(a22==1))))&&!(a25==1)))))&&!(a11==1)))){ + a0 = 1; + a25 = 1; + a29 = 7; + a20 = 0; + a7 = 1; + return -1; + } else if(((((((((a24==1)&&((a19==2)&&(((a28==1)&&((input==2)&&(a29==7)))&&(a7==1))))&&(a25==1))&&!(a0==1))&&(a14==9))&&(a22==1))&&!(a20==1))&&(a11==1))){ + a0 = 1; + a29 = 5; + a19 = 1; + a14 = 8; + a20 = 1; + return -1; + } else if(((a20==1)&&((a0==1)&&((a14==8)&&((a22==1)&&((a29==5)&&(((a19==2)&&((a11==1)&&((a28==1)&&(!(a25==1)&&((input==3)&&!(a24==1))))))&&!(a7==1)))))))){ + a24 = 1; + a25 = 1; + a7 = 1; + a19 = 1; + return -1; + } else if((((a24==1)&&((a7==1)&&((((a14==8)&&((a25==1)&&((a0==1)&&(((input==4)&&(((a29==9)&&(a19==4))||((a19==5)&&(a29==5))))&&!(a11==1)))))&&(a22==1))&&(a20==1))))&&(a28==1))){ + a29 = 9; + a0 = 0; + a19 = 1; + a11 = 1; + return 23; + } else if(((((a20==1)&&((a14==8)&&((((!(a11==1)&&((a24==1)&&((a22==1)&&((input==3)&&((a29==9)||((a29==7)||(a29==8)))))))&&(a28==1))&&!(a7==1))&&!(a25==1))))&&(a0==1))&&(a19==2))){ + a20 = 0; + a11 = 1; + a29 = 5; + a0 = 0; + a19 = 3; + return 23; + } else if(((a25==1)&&(((a24==1)&&(!(a11==1)&&((((a14==9)&&(((a20==1)&&(!(a0==1)&&((input==4)&&(a7==1))))&&(a22==1)))&&(a29==7))&&(a19==5))))&&(a28==1)))){ + a25 = 0; + a7 = 0; + a14 = 8; + a11 = 1; + return 24; + } else if((((!(a0==1)&&((!(a24==1)&&(((a14==9)&&(((a20==1)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==6))&&(a19==3)))&&!(a7==1)))&&(a11==1)))&&(a28==1)))&&(a25==1))&&(a22==1))){ + a29 = 6; + a24 = 1; + a14 = 8; + a19 = 1; + return 24; + } else if(((a11==1)&&((a22==1)&&((a0==1)&&((a28==1)&&((a24==1)&&((a25==1)&&((a7==1)&&(!(a20==1)&&(((((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))&&(input==6))&&(a14==10))))))))))){ + a19 = 3; + a7 = 0; + a0 = 0; + a14 = 8; + a25 = 0; + a29 = 6; + return 24; + } else if((((a29==9)&&((a22==1)&&(((((!(a0==1)&&((((a19==3)&&(input==4))&&(a28==1))&&(a24==1)))&&(a20==1))&&(a14==8))&&!(a7==1))&&!(a25==1))))&&!(a11==1))){ + a29 = 5; + a0 = 1; + a25 = 1; + a19 = 1; + a11 = 1; + a7 = 1; + return -1; + } else if(((((a28==1)&&(((a14==8)&&(((a25==1)&&((!(a0==1)&&(((((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))||((a19==2)&&(a29==6)))&&(input==4)))&&!(a24==1)))&&(a20==1)))&&(a22==1)))&&!(a11==1))&&(a7==1))){ + a29 = 7; + a19 = 5; + a14 = 9; + a24 = 1; + return 24; + } else if((((((a0==1)&&(((a24==1)&&(((!(a25==1)&&((input==3)&&(((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))))&&(a22==1))&&(a28==1)))&&(a11==1)))&&(a20==1))&&(a14==9))&&!(a7==1))){ + a0 = 0; + a14 = 8; + a20 = 0; + a29 = 6; + a19 = 3; + return 24; + } else if((((a28==1)&&(((a29==9)&&((((a22==1)&&(((a20==1)&&((a24==1)&&((a14==9)&&(input==5))))&&(a25==1)))&&!(a0==1))&&(a11==1)))&&(a7==1)))&&(a19==5))){ + a14 = 8; + a0 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a22==1)&&((!(a7==1)&&((((a14==9)&&((a24==1)&&((a19==2)&&(((a0==1)&&((input==1)&&((a29==8)||(a29==9))))&&(a28==1)))))&&(a25==1))&&!(a11==1)))&&!(a20==1)))){ + a7 = 1; + a14 = 8; + a11 = 1; + a19 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if(((a19==2)&&((a7==1)&&((((((((a14==8)&&((a22==1)&&(((a29==8)||(a29==9))&&(input==2))))&&(a28==1))&&(a25==1))&&(a11==1))&&!(a20==1))&&(a24==1))&&!(a0==1))))){ + a14 = 9; + a0 = 1; + a29 = 8; + a20 = 1; + a25 = 0; + a19 = 3; + a24 = 0; + a7 = 0; + a11 = 0; + return 24; + } else if((!(a7==1)&&((a22==1)&&(((a29==8)&&((a14==8)&&(((((a25==1)&&(((a24==1)&&(input==5))&&(a19==4)))&&(a28==1))&&(a0==1))&&!(a11==1))))&&!(a20==1))))){ + a19 = 3; + a29 = 6; + a0 = 0; + a11 = 1; + return 24; + } else if(((a7==1)&&((a14==8)&&((a28==1)&&(((a22==1)&&((a19==3)&&(((((a25==1)&&((input==4)&&((a29==6)||(a29==7))))&&!(a24==1))&&(a0==1))&&(a11==1))))&&(a20==1)))))){ + a11 = 0; + a25 = 0; + a19 = 5; + a29 = 5; + a20 = 0; + return 23; + } else if(((a22==1)&&(((a24==1)&&((((a28==1)&&((a11==1)&&((a19==3)&&((a7==1)&&(((input==5)&&(a29==9))&&(a20==1))))))&&(a25==1))&&(a0==1)))&&(a14==10)))){ + a29 = 7; + a19 = 2; + a14 = 8; + a25 = 0; + a7 = 0; + a0 = 0; + return 24; + } else if((((((((((((a14==8)&&((input==1)&&(a11==1)))&&(a22==1))&&(a7==1))&&(a24==1))&&!(a20==1))&&!(a25==1))&&(a28==1))&&(a29==5))&&(a19==5))&&(a0==1))){ + a20 = 1; + a19 = 1; + a25 = 1; + return -1; + } else if((((((!(a0==1)&&((a7==1)&&((a20==1)&&((a28==1)&&((((input==3)&&((a29==8)||(a29==9)))&&(a19==5))&&(a14==8))))))&&(a22==1))&&!(a25==1))&&!(a24==1))&&!(a11==1))){ + a24 = 1; + a29 = 8; + a19 = 2; + return 23; + } else if((((a11==1)&&((a28==1)&&((!(a0==1)&&((input==2)&&(((a19==1)&&(((!(a24==1)&&((a7==1)&&(a20==1)))&&(a25==1))&&(a29==6)))||((((a29==9)&&(!(a25==1)&&((a24==1)&&(!(a20==1)&&!(a7==1)))))&&(a19==5))||((a19==1)&&((a29==5)&&((a25==1)&&(!(a24==1)&&((a20==1)&&(a7==1))))))))))&&(a14==8))))&&(a22==1))){ + a0 = 1; + a29 = 5; + a25 = 1; + a7 = 1; + a19 = 1; + a24 = 1; + a20 = 1; + return -1; + } else if((!(a0==1)&&((a7==1)&&((!(a11==1)&&((a25==1)&&((a19==4)&&((a28==1)&&((!(a24==1)&&(!(a20==1)&&(((a29==6)||(a29==7))&&(input==6))))&&(a14==8))))))&&(a22==1))))){ + a24 = 1; + a11 = 1; + a25 = 0; + a29 = 9; + a20 = 1; + a19 = 1; + return 21; + } else if((((a24==1)&&((((a22==1)&&((((a28==1)&&((!(a20==1)&&((input==4)&&(a19==5)))&&(a0==1)))&&(a11==1))&&(a14==8)))&&!(a7==1))&&(a25==1)))&&(a29==8))){ + a19 = 1; + a29 = 7; + a25 = 0; + a11 = 0; + return 23; + } else if((((((a28==1)&&((a14==9)&&(!(a0==1)&&((!(a20==1)&&((a24==1)&&((((a29==8)||(a29==9))&&(input==4))&&(a19==4))))&&!(a7==1)))))&&(a25==1))&&(a22==1))&&(a11==1))){ + a14 = 8; + a11 = 0; + a29 = 7; + a20 = 1; + a7 = 1; + a19 = 3; + return -1; + } else if(((a7==1)&&(!(a20==1)&&((((a11==1)&&(((a29==9)&&(((!(a24==1)&&((input==5)&&(a28==1)))&&(a14==8))&&(a25==1)))&&(a19==2)))&&!(a0==1))&&(a22==1))))){ + a24 = 1; + a14 = 9; + a29 = 8; + return 23; + } else if(((a28==1)&&((a24==1)&&((a14==9)&&((a11==1)&&(((a20==1)&&((((a7==1)&&(!(a0==1)&&((input==6)&&((a29==9)||((a29==7)||(a29==8))))))&&(a25==1))&&(a19==4)))&&(a22==1))))))){ + a0 = 1; + a7 = 0; + a24 = 0; + a14 = 8; + a19 = 2; + a20 = 0; + a11 = 0; + a29 = 6; + return 24; + } else if((!(a11==1)&&(((a20==1)&&(!(a25==1)&&(((((a29==8)&&(((a0==1)&&((a22==1)&&(input==2)))&&(a7==1)))&&(a14==8))&&(a24==1))&&(a28==1))))&&(a19==3)))){ + a24 = 0; + a19 = 1; + a0 = 0; + a29 = 6; + return 21; + } return calculate_output23(input); + } + + int calculate_output23(int input) { + if(((((a11==1)&&((a19==2)&&((a14==10)&&(((a25==1)&&(((a28==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==5))&&(a20==1)))&&(a24==1)))&&!(a7==1)))))&&(a22==1))&&(a0==1))){ + a19 = 1; + a14 = 8; + a29 = 5; + a7 = 1; + return -1; + } else if(((((a11==1)&&(!(a24==1)&&((((a22==1)&&((a20==1)&&((a28==1)&&(((input==6)&&(((a29==6)||(a29==7))||(a29==8)))&&(a19==1)))))&&(a0==1))&&!(a25==1))))&&(a14==9))&&(a7==1))){ + a24 = 1; + a14 = 8; + a29 = 5; + a25 = 1; + return -1; + } else if((((((!(a0==1)&&((((((a28==1)&&((input==6)&&(a24==1)))&&(a14==9))&&(a29==9))&&(a22==1))&&(a19==5)))&&(a11==1))&&(a7==1))&&!(a20==1))&&(a25==1))){ + a19 = 4; + a14 = 8; + a25 = 0; + a29 = 5; + a20 = 1; + return 23; + } else if(((a22==1)&&(!(a7==1)&&((((((((a14==9)&&(((input==1)&&!(a11==1))&&!(a24==1)))&&!(a0==1))&&(a28==1))&&(a19==2))&&(a29==7))&&(a25==1))&&!(a20==1))))){ + a19 = 1; + a7 = 1; + a20 = 1; + a29 = 9; + a24 = 1; + a0 = 1; + return -1; + } else if(((a14==9)&&(((a11==1)&&((((((a19==3)&&(((a29==5)&&((a25==1)&&(input==1)))&&(a28==1)))&&!(a0==1))&&(a22==1))&&(a20==1))&&!(a7==1)))&&(a24==1)))){ + a14 = 8; + a29 = 8; + a25 = 0; + a19 = 4; + a7 = 1; + return 23; + } else if(((!(a25==1)&&(!(a0==1)&&(!(a24==1)&&(((a22==1)&&((a7==1)&&((a14==8)&&((a19==2)&&((((a29==7)||(a29==8))&&(input==2))&&(a20==1))))))&&!(a11==1)))))&&(a28==1))){ + a24 = 1; + a19 = 4; + a14 = 9; + a29 = 6; + return 23; + } else if((!(a0==1)&&(((a20==1)&&((a14==8)&&((!(a11==1)&&(!(a7==1)&&(((((input==5)&&((a29==6)||(a29==7)))&&!(a25==1))&&(a28==1))&&(a22==1))))&&(a19==2))))&&!(a24==1)))){ + a19 = 1; + a0 = 1; + a20 = 0; + a29 = 6; + return 23; + } else if((((((((!(a7==1)&&(((((((a29==6)||(a29==7))||(a29==8))&&(input==2))&&!(a11==1))&&!(a0==1))&&(a19==3)))&&(a22==1))&&(a20==1))&&!(a25==1))&&(a28==1))&&!(a24==1))&&(a14==9))){ + a19 = 1; + a11 = 1; + a14 = 8; + a24 = 1; + a25 = 1; + a7 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if(((a28==1)&&((a7==1)&&(!(a0==1)&&((a11==1)&&(!(a24==1)&&(((a25==1)&&(((a20==1)&&((a14==8)&&((input==5)&&((a29==8)||(a29==9)))))&&(a19==2)))&&(a22==1)))))))){ + a19 = 5; + a7 = 0; + a24 = 1; + a29 = 5; + a20 = 0; + a25 = 0; + return 23; + } else if(((((a22==1)&&((((a11==1)&&((!(a0==1)&&(!(a24==1)&&((((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))&&(input==1))))&&(a20==1)))&&(a14==8))&&(a7==1)))&&(a25==1))&&(a28==1))){ + a0 = 1; + a29 = 5; + a19 = 1; + a24 = 1; + return -1; + } else if(((((a25==1)&&((a29==8)&&((a7==1)&&(((a28==1)&&((!(a20==1)&&(((input==6)&&!(a24==1))&&(a22==1)))&&(a0==1)))&&(a19==2)))))&&(a14==9))&&!(a11==1))){ + a20 = 1; + a19 = 5; + a29 = 7; + return 24; + } else if((!(a7==1)&&(!(a20==1)&&((a0==1)&&((a29==8)&&((a11==1)&&(((((!(a24==1)&&(!(a25==1)&&(input==4)))&&(a14==8))&&(a28==1))&&(a19==5))&&(a22==1)))))))){ + a11 = 0; + a29 = 7; + a19 = 3; + a7 = 1; + return 21; + } else if((((a25==1)&&((a11==1)&&(!(a7==1)&&((!(a0==1)&&(!(a24==1)&&(((a28==1)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==1))&&(a19==4)))&&(a14==8))))&&!(a20==1)))))&&(a22==1))){ + a19 = 3; + a11 = 0; + a29 = 8; + a20 = 1; + a25 = 0; + a7 = 1; + return 21; + } else if(((((a24==1)&&((a22==1)&&(!(a25==1)&&(!(a20==1)&&(((a19==1)&&((a7==1)&&(((input==1)&&!(a11==1))&&(a28==1))))&&(a0==1))))))&&(a29==5))&&(a14==8))){ + a19 = 3; + a29 = 8; + a24 = 0; + return 21; + } else if(((a22==1)&&((!(a7==1)&&(!(a20==1)&&((a0==1)&&(!(a11==1)&&((((a14==9)&&((input==2)&&(((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))))&&(a24==1))&&!(a25==1))))))&&(a28==1)))){ + a7 = 1; + a20 = 1; + a11 = 1; + a0 = 0; + a19 = 4; + a29 = 6; + a14 = 8; + return 21; + } else if((((((((a22==1)&&((((!(a7==1)&&((a24==1)&&(input==1)))&&(a19==2))&&(a28==1))&&(a25==1)))&&!(a20==1))&&!(a0==1))&&(a14==9))&&!(a11==1))&&(a29==6))){ + a29 = 8; + a25 = 0; + a11 = 1; + a19 = 4; + a14 = 8; + return 23; + } else if(((((a29==7)&&((((((((a14==8)&&((a22==1)&&(input==4)))&&(a19==5))&&!(a0==1))&&!(a7==1))&&(a20==1))&&(a28==1))&&(a24==1)))&&(a25==1))&&!(a11==1))){ + a11 = 1; + a14 = 9; + a0 = 1; + a20 = 0; + a19 = 1; + a7 = 1; + return 23; + } else if(((!(a11==1)&&((((((((!(a25==1)&&((input==1)&&(a19==3)))&&!(a24==1))&&!(a20==1))&&(a29==5))&&(a22==1))&&(a14==8))&&!(a0==1))&&(a28==1)))&&!(a7==1))){ + a0 = 1; + a7 = 1; + a25 = 1; + a11 = 1; + a20 = 1; + a24 = 1; + a19 = 1; + return -1; + } else if((!(a11==1)&&((((a19==3)&&((a24==1)&&(((a0==1)&&((((a20==1)&&(((a29==7)||(a29==8))&&(input==5)))&&(a14==9))&&(a28==1)))&&!(a25==1))))&&(a22==1))&&!(a7==1)))){ + a11 = 1; + a29 = 5; + a14 = 8; + a7 = 1; + a0 = 0; + a19 = 1; + return 24; + } else if((!(a11==1)&&((a7==1)&&(((a25==1)&&((a28==1)&&(((!(a24==1)&&(((a22==1)&&((input==4)&&((a29==7)||(a29==8))))&&(a19==4)))&&(a14==9))&&!(a20==1))))&&(a0==1))))){ + a20 = 1; + a29 = 5; + a24 = 1; + a11 = 1; + a19 = 1; + a14 = 8; + return -1; + } else if((!(a0==1)&&((((a24==1)&&(((a14==8)&&(((a22==1)&&(((a7==1)&&(((a29==5)||(a29==6))&&(input==5)))&&!(a11==1)))&&(a19==2)))&&!(a20==1)))&&(a28==1))&&(a25==1)))){ + a19 = 3; + a29 = 9; + a11 = 1; + a14 = 9; + a24 = 0; + return 24; + } else if((((a28==1)&&((((a14==9)&&(((a24==1)&&(!(a20==1)&&(((((a29==9)&&(a19==4))||((a29==5)&&(a19==5)))&&(input==3))&&!(a11==1))))&&!(a0==1)))&&(a22==1))&&(a7==1)))&&!(a25==1))){ + a14 = 8; + a11 = 1; + a7 = 0; + a29 = 5; + a25 = 1; + a19 = 3; + a20 = 1; + return -1; + } else if(((a22==1)&&((a28==1)&&((a0==1)&&((a19==2)&&(((!(a7==1)&&((a20==1)&&((a14==8)&&(!(a25==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==2))))))&&(a24==1))&&!(a11==1))))))){ + a20 = 0; + a29 = 6; + a7 = 1; + a24 = 0; + a19 = 5; + return 21; + } else if((((((a14==9)&&(((a0==1)&&(((((a22==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==5)))&&(a19==1))&&(a20==1))&&!(a24==1)))&&(a7==1)))&&!(a25==1))&&!(a11==1))&&(a28==1))){ + a20 = 0; + a0 = 0; + a24 = 1; + a29 = 9; + a11 = 1; + a14 = 8; + a19 = 3; + return 23; + } else if(((a20==1)&&((((a28==1)&&((a19==2)&&(((!(a0==1)&&((!(a25==1)&&((input==2)&&!(a7==1)))&&(a14==8)))&&(a11==1))&&(a24==1))))&&(a29==7))&&(a22==1)))){ + a20 = 0; + a19 = 4; + return 24; + } else if(((a14==8)&&((a7==1)&&(((a24==1)&&((a25==1)&&(((a19==2)&&((!(a0==1)&&((((a29==5)||(a29==6))&&(input==6))&&!(a11==1)))&&(a22==1)))&&!(a20==1))))&&(a28==1))))){ + a29 = 8; + a24 = 0; + a19 = 4; + a14 = 9; + a11 = 1; + return 24; + } else if(((((a14==8)&&(((a22==1)&&(((a19==5)&&(((a7==1)&&((a28==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==1))))&&!(a25==1)))&&(a20==1)))&&!(a11==1)))&&(a0==1))&&(a24==1))){ + a25 = 1; + a29 = 5; + a19 = 1; + a11 = 1; + return -1; + } else if(((a25==1)&&(((a19==1)&&(((a0==1)&&((((a29==6)&&((a20==1)&&(!(a11==1)&&((a7==1)&&(input==4)))))&&(a24==1))&&(a14==8)))&&(a28==1)))&&(a22==1)))){ + a25 = 0; + a0 = 0; + a29 = 8; + a20 = 0; + return 23; + } else if((((((((a20==1)&&((a14==9)&&((a19==3)&&((a0==1)&&((a29==7)&&((input==3)&&(a28==1)))))))&&(a22==1))&&(a25==1))&&(a24==1))&&(a11==1))&&(a7==1))){ + a29 = 5; + a14 = 8; + a19 = 1; + return -1; + } else if(((a19==2)&&(((((a28==1)&&((((a7==1)&&((a14==9)&&(((input==5)&&((a29==6)||(a29==7)))&&(a24==1))))&&(a11==1))&&(a20==1)))&&(a22==1))&&!(a0==1))&&(a25==1)))){ + a14 = 8; + a29 = 9; + a25 = 0; + a19 = 5; + return 24; + } else if(((a28==1)&&((a7==1)&&((!(a11==1)&&((((a19==4)&&(!(a25==1)&&(!(a24==1)&&((a14==8)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==6))))))&&(a22==1))&&(a0==1)))&&(a20==1))))){ + a24 = 1; + a29 = 9; + a11 = 1; + a0 = 0; + a19 = 5; + return 23; + } else if(((a20==1)&&(((a14==9)&&(((a28==1)&&((((((a19==3)&&(((a29==5)||(a29==6))&&(input==6)))&&(a24==1))&&(a11==1))&&(a0==1))&&!(a25==1)))&&(a22==1)))&&(a7==1)))){ + a29 = 7; + a19 = 1; + a0 = 0; + a7 = 0; + a14 = 8; + a20 = 0; + return 23; + } else if(((a14==9)&&(!(a0==1)&&(!(a24==1)&&(((((((((a19==5)&&((a29==9)&&(!(a25==1)&&(a7==1))))||(((a29==5)&&((a25==1)&&!(a7==1)))&&(a19==1)))||(((!(a7==1)&&(a25==1))&&(a29==6))&&(a19==1)))&&(input==1))&&(a28==1))&&(a22==1))&&(a20==1))&&(a11==1)))))){ + a24 = 1; + a7 = 1; + a25 = 1; + a19 = 3; + a29 = 5; + a0 = 1; + a11 = 0; + return -1; + } else if((((((a28==1)&&((((!(a20==1)&&((!(a25==1)&&(((a29==6)||(a29==7))&&(input==6)))&&(a19==3)))&&!(a7==1))&&(a0==1))&&!(a11==1)))&&(a14==8))&&(a22==1))&&(a24==1))){ + a19 = 2; + a11 = 1; + a14 = 9; + a29 = 5; + return 21; + } else if(((a22==1)&&(((!(a7==1)&&(((((((input==3)&&(((a29==6)&&(a19==5))||(((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))))&&(a28==1))&&(a0==1))&&!(a24==1))&&(a20==1))&&!(a11==1)))&&(a14==9))&&(a25==1)))){ + a29 = 8; + a14 = 8; + a20 = 0; + a19 = 5; + return 24; + } else if((!(a7==1)&&((a28==1)&&(((a22==1)&&((((a14==10)&&(((a24==1)&&((((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))&&(input==4)))&&!(a20==1)))&&(a11==1))&&(a0==1)))&&(a25==1))))){ + a14 = 9; + a19 = 3; + a7 = 1; + a11 = 0; + a25 = 0; + a29 = 8; + a0 = 0; + return -1; + } else if(((a7==1)&&((((a25==1)&&((a11==1)&&((((a22==1)&&((a14==9)&&((((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))&&(input==6))))&&(a28==1))&&(a20==1))))&&(a24==1))&&(a0==1)))){ + a19 = 5; + a24 = 0; + a14 = 8; + a0 = 0; + a20 = 0; + a29 = 8; + return 23; + } else if(((a7==1)&&(((a22==1)&&((a19==3)&&(!(a11==1)&&(!(a24==1)&&(((a25==1)&&(((a14==9)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==4)))&&(a28==1)))&&(a20==1))))))&&!(a0==1)))){ + a20 = 0; + a14 = 8; + a7 = 0; + a0 = 1; + a29 = 6; + return -1; + } else if((((a14==8)&&((!(a20==1)&&((a19==3)&&((a28==1)&&(((a0==1)&&(((a25==1)&&((input==6)&&!(a11==1)))&&!(a7==1)))&&(a24==1)))))&&(a22==1)))&&(a29==8))){ + a29 = 5; + a11 = 1; + a20 = 1; + a19 = 1; + a7 = 1; + return -1; + } else if(((a14==8)&&((((((a0==1)&&((!(a25==1)&&((a20==1)&&(!(a24==1)&&((input==4)&&(a11==1)))))&&(a29==7)))&&(a22==1))&&(a19==5))&&(a28==1))&&!(a7==1)))){ + a29 = 5; + a19 = 2; + a0 = 0; + return 23; + } else if(((a14==9)&&((((a22==1)&&(((a11==1)&&((a25==1)&&((((((a29==8)||((a29==6)||(a29==7)))&&(input==2))&&!(a20==1))&&(a0==1))&&!(a7==1))))&&(a28==1)))&&(a24==1))&&(a19==5)))){ + a14 = 8; + a25 = 0; + a29 = 8; + a19 = 3; + a0 = 0; + return 23; + } else if((((((!(a25==1)&&((((!(a24==1)&&(!(a11==1)&&((a28==1)&&(input==4))))&&(a22==1))&&(a14==8))&&!(a20==1)))&&(a29==9))&&(a19==2))&&(a7==1))&&(a0==1))){ + a7 = 0; + a24 = 1; + a29 = 5; + a25 = 1; + a0 = 0; + a11 = 1; + return 24; + } else if(((a14==10)&&((a22==1)&&(((((a0==1)&&((a29==5)&&(((a28==1)&&((a19==5)&&((a11==1)&&(input==5))))&&(a24==1))))&&!(a20==1))&&!(a25==1))&&!(a7==1))))){ + a25 = 1; + a0 = 0; + a14 = 8; + a11 = 0; + a29 = 8; + a20 = 1; + a19 = 2; + return 24; + } else if(((!(a11==1)&&((((a20==1)&&((a19==5)&&(((a0==1)&&((a22==1)&&(((input==2)&&((a29==7)||(a29==8)))&&!(a24==1))))&&(a25==1))))&&!(a7==1))&&(a14==8)))&&(a28==1))){ + a19 = 1; + a24 = 1; + a7 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if((((a25==1)&&((!(a11==1)&&((a22==1)&&(((((!(a20==1)&&((input==4)&&((a29==8)||(a29==9))))&&(a19==1))&&(a24==1))&&(a14==9))&&!(a7==1))))&&(a28==1)))&&!(a0==1))){ + a14 = 8; + a0 = 1; + a29 = 5; + a20 = 1; + a11 = 1; + a7 = 1; + return -1; + } else if(((a14==8)&&(((a20==1)&&(((!(a0==1)&&((a28==1)&&((((((a7==1)&&!(a25==1))&&(a29==9))&&(a19==5))||(((a29==5)&&((a25==1)&&!(a7==1)))&&(a19==1)))&&(input==1))))&&!(a11==1))&&(a24==1)))&&(a22==1)))){ + a7 = 1; + a19 = 4; + a14 = 9; + a24 = 0; + a25 = 0; + a29 = 7; + a11 = 1; + return 24; + } else if((((!(a24==1)&&(((((a14==8)&&((a7==1)&&((a29==6)&&((a11==1)&&((input==6)&&(a28==1))))))&&(a22==1))&&!(a20==1))&&!(a25==1)))&&(a19==3))&&(a0==1))){ + a24 = 1; + a25 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a14==8)&&(!(a25==1)&&(((((a22==1)&&((a20==1)&&((((a19==4)&&((input==2)&&!(a0==1)))&&(a28==1))&&(a29==5))))&&(a24==1))&&(a7==1))&&(a11==1))))){ + a0 = 1; + a25 = 1; + a19 = 1; + return -1; + } else if(((a25==1)&&((((a14==9)&&((a19==2)&&(((a0==1)&&(!(a11==1)&&((((input==6)&&((a29==5)||(a29==6)))&&(a28==1))&&(a24==1))))&&(a20==1))))&&(a22==1))&&!(a7==1)))){ + a14 = 8; + a0 = 0; + a25 = 0; + a24 = 0; + a7 = 1; + a29 = 5; + a11 = 1; + a20 = 0; + return 21; + } else if((!(a11==1)&&((!(a0==1)&&(!(a20==1)&&(!(a24==1)&&((((a28==1)&&(((((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))&&(input==3))&&(a7==1)))&&(a14==8))&&(a25==1)))))&&(a22==1)))){ + a11 = 1; + a24 = 1; + a19 = 3; + a29 = 7; + return 23; + } else if((!(a24==1)&&(((((((a25==1)&&((a7==1)&&((a14==9)&&((((a19==3)&&(a29==5))||(((a19==2)&&(a29==8))||((a19==2)&&(a29==9))))&&(input==4)))))&&!(a0==1))&&(a28==1))&&!(a20==1))&&(a22==1))&&(a11==1)))){ + a0 = 1; + a11 = 0; + a19 = 4; + a25 = 0; + a29 = 9; + return 23; + } else if(((a29==5)&&(((a14==9)&&(!(a11==1)&&((a24==1)&&((a19==1)&&(!(a25==1)&&((((a7==1)&&((a0==1)&&(input==6)))&&(a22==1))&&(a20==1)))))))&&(a28==1)))){ + a0 = 0; + a29 = 8; + a19 = 5; + a14 = 8; + return -1; + } else if((((a0==1)&&((a14==8)&&(((a20==1)&&(!(a11==1)&&(((a24==1)&&(((((a29==5)||(a29==6))&&(input==6))&&(a19==1))&&(a22==1)))&&(a28==1))))&&(a25==1))))&&!(a7==1))){ + a19 = 5; + a24 = 0; + a20 = 0; + a29 = 8; + return 23; + } else if(((a14==9)&&(((a0==1)&&(!(a11==1)&&(((((a19==4)&&((((input==3)&&!(a7==1))&&(a22==1))&&(a25==1)))&&(a24==1))&&(a28==1))&&(a29==7))))&&!(a20==1)))){ + a14 = 8; + a19 = 3; + a24 = 0; + return 23; + } else if((((a24==1)&&((((((a22==1)&&(!(a11==1)&&((a25==1)&&((a14==8)&&((input==2)&&(a20==1))))))&&(a28==1))&&(a19==2))&&(a29==7))&&!(a0==1)))&&(a7==1))){ + a25 = 0; + a29 = 5; + a19 = 5; + a11 = 1; + return 24; + } else if(((a22==1)&&(((((a20==1)&&((!(a7==1)&&((a25==1)&&((a19==3)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==4))&&(a24==1)))))&&(a0==1)))&&!(a11==1))&&(a14==8))&&(a28==1)))){ + a25 = 0; + a24 = 0; + a19 = 4; + a29 = 5; + a20 = 0; + return 23; + } else if(((!(a0==1)&&((a24==1)&&((!(a11==1)&&((a7==1)&&(((((a19==2)&&(!(a25==1)&&(input==5)))&&(a28==1))&&(a22==1))&&(a14==9))))&&!(a20==1))))&&(a29==7))){ + a7 = 0; + a19 = 3; + a11 = 1; + a29 = 8; + a24 = 0; + return -1; + } else if((!(a24==1)&&(((a22==1)&&((a19==3)&&((a11==1)&&(((a29==9)&&((a14==9)&&((a0==1)&&((a28==1)&&(!(a20==1)&&(input==6))))))&&!(a7==1)))))&&(a25==1)))){ + a14 = 8; + a25 = 0; + a0 = 0; + a29 = 7; + a20 = 1; + a24 = 1; + a19 = 5; + return 21; + } else if((((a0==1)&&(!(a11==1)&&(((((((((((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))||((a19==3)&&(a29==5)))&&(input==3))&&!(a25==1))&&(a7==1))&&!(a24==1))&&(a22==1))&&(a28==1))&&(a14==9))))&&!(a20==1))){ + a20 = 1; + a19 = 5; + a29 = 5; + return 24; + } else if(((a22==1)&&((!(a11==1)&&(!(a20==1)&&((a28==1)&&((((a19==3)&&((((input==4)&&((a29==9)||((a29==7)||(a29==8))))&&!(a7==1))&&(a14==8)))&&!(a25==1))&&!(a0==1)))))&&!(a24==1)))){ + a19 = 5; + a7 = 1; + a25 = 1; + a29 = 6; + return 24; + } else if((((a19==4)&&((a22==1)&&((((((!(a25==1)&&((a28==1)&&(!(a20==1)&&(input==4))))&&(a14==9))&&(a24==1))&&(a29==5))&&!(a7==1))&&(a11==1))))&&(a0==1))){ + a20 = 1; + a0 = 0; + a29 = 9; + a14 = 8; + a7 = 1; + return 24; + } else if((((a14==9)&&(((a24==1)&&((a7==1)&&(((a0==1)&&((((input==3)&&(((a29==9)&&(a19==4))||((a29==5)&&(a19==5))))&&(a20==1))&&(a22==1)))&&(a28==1))))&&(a25==1)))&&(a11==1))){ + a14 = 8; + a19 = 4; + a29 = 9; + a7 = 0; + a0 = 0; + return 23; + } else if((((!(a24==1)&&((((a19==4)&&((a29==8)&&((a28==1)&&((a25==1)&&(!(a7==1)&&((a0==1)&&(input==2)))))))&&!(a20==1))&&(a11==1)))&&(a14==9))&&(a22==1))){ + a14 = 8; + a20 = 1; + a11 = 0; + a29 = 5; + a19 = 3; + a0 = 0; + return -1; + } else if(((a22==1)&&(!(a24==1)&&((a0==1)&&(!(a11==1)&&((a14==8)&&(((a28==1)&&((a25==1)&&(!(a7==1)&&((a20==1)&&((input==5)&&((a29==9)||((a29==7)||(a29==8))))))))&&(a19==2)))))))){ + a11 = 1; + a7 = 1; + a20 = 0; + a19 = 5; + a29 = 5; + a14 = 9; + return 23; + } else if(((a7==1)&&(((((((a20==1)&&(!(a25==1)&&((((input==1)&&(a28==1))&&(a29==9))&&(a11==1))))&&(a19==2))&&(a0==1))&&(a24==1))&&(a14==9))&&(a22==1)))){ + a19 = 3; + a20 = 0; + a7 = 0; + a14 = 8; + a24 = 0; + a11 = 0; + return 23; + } else if(((a29==9)&&((a22==1)&&(((a25==1)&&((a0==1)&&(((a24==1)&&((a19==4)&&(((a14==8)&&((a11==1)&&(input==2)))&&(a28==1))))&&!(a20==1))))&&(a7==1))))){ + a24 = 0; + a29 = 7; + a19 = 2; + a25 = 0; + return 21; + } else if((!(a7==1)&&((((a11==1)&&((!(a20==1)&&((!(a25==1)&&((a22==1)&&((((a29==5)||(a29==6))&&(input==5))&&(a28==1))))&&!(a0==1)))&&(a14==9)))&&(a19==4))&&!(a24==1)))){ + a0 = 1; + a19 = 3; + a7 = 1; + a29 = 5; + a20 = 1; + a11 = 0; + return -1; + } else if(((a0==1)&&((a28==1)&&(((!(a20==1)&&(!(a11==1)&&(((((((a19==5)&&(a29==6))||(((a29==9)&&(a19==4))||((a19==5)&&(a29==5))))&&(input==2))&&(a25==1))&&!(a24==1))&&(a22==1))))&&(a14==9))&&(a7==1))))){ + a7 = 0; + a19 = 4; + a25 = 0; + a24 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if((((((a14==9)&&(((((a29==5)&&((a24==1)&&((a7==1)&&((input==2)&&(a22==1)))))&&(a0==1))&&(a28==1))&&(a19==3)))&&(a11==1))&&!(a20==1))&&(a25==1))){ + a14 = 8; + a20 = 1; + a19 = 1; + return -1; + } else if((((!(a24==1)&&(!(a7==1)&&((((a14==8)&&((((input==6)&&(((a29==9)&&(a19==2))||((a19==3)&&(a29==5))))&&(a20==1))&&(a22==1)))&&(a28==1))&&!(a25==1))))&&!(a11==1))&&(a0==1))){ + a14 = 9; + a19 = 3; + a29 = 9; + a20 = 0; + a11 = 1; + return 24; + } else if(((((a14==9)&&(!(a0==1)&&((a28==1)&&(!(a20==1)&&((a25==1)&&(((!(a24==1)&&((input==4)&&((a29==5)||(a29==6))))&&(a7==1))&&(a22==1)))))))&&(a19==4))&&(a11==1))){ + a14 = 8; + a0 = 1; + a11 = 0; + a29 = 8; + a7 = 0; + a19 = 3; + return 23; + } else if((((a14==8)&&((a22==1)&&(!(a11==1)&&(((a28==1)&&((((((input==5)&&(a19==2))&&(a25==1))&&(a24==1))&&(a20==1))&&(a7==1)))&&(a29==7)))))&&!(a0==1))){ + a11 = 1; + a24 = 0; + a14 = 9; + a19 = 1; + return 24; + } else if((((((!(a7==1)&&(((a24==1)&&((!(a0==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==4))&&(a20==1)))&&(a14==9)))&&!(a25==1)))&&(a11==1))&&(a28==1))&&(a22==1))&&(a19==5))){ + a29 = 7; + a19 = 2; + a14 = 8; + a24 = 0; + a11 = 0; + return 24; + } else if(((!(a0==1)&&(((a11==1)&&((((((a14==9)&&((((a29==5)&&(a19==3))||(((a19==2)&&(a29==8))||((a29==9)&&(a19==2))))&&(input==6)))&&(a20==1))&&(a7==1))&&(a28==1))&&!(a24==1)))&&(a25==1)))&&(a22==1))){ + a25 = 0; + a29 = 7; + a7 = 0; + a14 = 8; + a20 = 0; + a0 = 1; + a19 = 1; + a11 = 0; + return 24; + } else if(((a20==1)&&((!(a7==1)&&((a14==9)&&(((a28==1)&&((!(a25==1)&&(!(a11==1)&&(!(a0==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==1)))))&&!(a24==1)))&&(a19==3))))&&(a22==1)))){ + a0 = 1; + a7 = 1; + a25 = 1; + a29 = 5; + a14 = 8; + a11 = 1; + a24 = 1; + a19 = 1; + return -1; + } else if((!(a25==1)&&(((a28==1)&&((((a0==1)&&((((((a7==1)&&(input==1))&&!(a20==1))&&(a19==5))&&(a22==1))&&(a11==1)))&&(a29==7))&&(a24==1)))&&(a14==9)))){ + a20 = 1; + a19 = 2; + a25 = 1; + a29 = 5; + a14 = 10; + return 24; + } else if((((a22==1)&&(((a28==1)&&((a14==8)&&((a25==1)&&((!(a7==1)&&((a20==1)&&(((input==6)&&((a29==7)||(a29==8)))&&!(a24==1))))&&(a19==3)))))&&(a11==1)))&&(a0==1))){ + a24 = 1; + a7 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a22==1)&&((((a24==1)&&((a7==1)&&((!(a0==1)&&((a28==1)&&((a20==1)&&((((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))&&(input==3)))))&&(a14==9))))&&(a25==1))&&!(a11==1)))){ + a29 = 7; + a24 = 0; + a19 = 4; + a11 = 1; + a0 = 1; + a7 = 0; + return 23; + } else if(((a0==1)&&((a28==1)&&((((((((((a7==1)&&(input==2))&&!(a11==1))&&(a14==8))&&!(a20==1))&&(a29==7))&&!(a25==1))&&(a22==1))&&(a24==1))&&(a19==2))))){ + a11 = 1; + a19 = 1; + a25 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if(((a0==1)&&((a22==1)&&(((a7==1)&&(((a14==9)&&(((a25==1)&&((((input==5)&&((a29==8)||(a29==9)))&&(a24==1))&&!(a11==1)))&&(a28==1)))&&(a20==1)))&&(a19==2))))){ + a25 = 0; + a19 = 1; + a29 = 7; + a20 = 0; + a14 = 8; + a11 = 1; + a0 = 0; + return 21; + } else if(((a14==8)&&(((a22==1)&&((!(a24==1)&&(((!(a11==1)&&((!(a7==1)&&(((a29==6)||(a29==7))&&(input==6)))&&(a20==1)))&&!(a25==1))&&(a19==3)))&&(a0==1)))&&(a28==1)))){ + a14 = 9; + a19 = 4; + a20 = 0; + a29 = 8; + a11 = 1; + return 24; + } else if(((((((a28==1)&&((!(a0==1)&&((a7==1)&&(!(a20==1)&&(((input==2)&&(a22==1))&&!(a25==1)))))&&(a29==5)))&&!(a24==1))&&(a11==1))&&(a14==9))&&(a19==4))){ + a29 = 8; + a24 = 1; + a19 = 5; + a14 = 8; + a7 = 0; + return 24; + } else if((((a14==8)&&((a22==1)&&((a7==1)&&(((a20==1)&&(((a24==1)&&((a25==1)&&(((input==6)&&(((a29==6)||(a29==7))||(a29==8)))&&(a28==1))))&&(a19==4)))&&(a11==1)))))&&!(a0==1))){ + a20 = 0; + a25 = 0; + a7 = 0; + a29 = 5; + return 24; + } else if(((((((a29==7)&&((a0==1)&&((((!(a20==1)&&((a19==4)&&(input==2)))&&(a14==8))&&(a28==1))&&!(a7==1))))&&!(a11==1))&&!(a25==1))&&(a22==1))&&(a24==1))){ + a29 = 9; + a0 = 0; + a25 = 1; + a11 = 1; + return 24; + } else if(((a14==8)&&((a11==1)&&((a7==1)&&((a25==1)&&((a0==1)&&((a28==1)&&(((a24==1)&&((((input==4)&&(((a29==5)||(a29==6))||(a29==7)))&&(a19==3))&&(a22==1)))&&!(a20==1))))))))){ + a20 = 1; + a7 = 0; + a25 = 0; + a29 = 7; + a24 = 0; + return 23; + } else if(((((a28==1)&&((a11==1)&&((a22==1)&&((a20==1)&&(((((((a29==6)&&(a19==5))||(((a19==4)&&(a29==9))||((a19==5)&&(a29==5))))&&(input==3))&&!(a24==1))&&!(a7==1))&&(a14==8))))))&&(a0==1))&&!(a25==1))){ + a29 = 6; + a0 = 0; + a24 = 1; + a20 = 0; + a19 = 3; + return 23; + } else if((((a25==1)&&(!(a7==1)&&((((((((a14==8)&&((a20==1)&&(input==1)))&&(a29==5))&&(a22==1))&&(a28==1))&&!(a11==1))&&!(a24==1))&&(a0==1))))&&(a19==2))){ + a29 = 9; + a0 = 0; + a11 = 1; + a20 = 0; + a24 = 1; + a25 = 0; + a19 = 3; + return 24; + } else if(((a20==1)&&(((a25==1)&&((a19==2)&&((((((((input==2)&&(a22==1))&&(a29==6))&&(a7==1))&&!(a11==1))&&(a14==9))&&(a24==1))&&(a0==1))))&&(a28==1)))){ + a20 = 0; + a11 = 1; + a14 = 8; + a0 = 0; + a19 = 4; + a29 = 5; + a7 = 0; + return 24; + } else if(((a24==1)&&((((((a19==1)&&((!(a0==1)&&((a14==8)&&((a29==7)&&((a28==1)&&(input==1)))))&&(a22==1)))&&(a11==1))&&(a7==1))&&!(a25==1))&&(a20==1)))){ + a0 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if((((((a22==1)&&(!(a20==1)&&(((a25==1)&&(((a29==8)&&(((input==4)&&!(a11==1))&&(a24==1)))&&(a14==8)))&&(a19==5))))&&!(a0==1))&&!(a7==1))&&(a28==1))){ + a7 = 1; + a29 = 9; + a24 = 0; + a20 = 1; + a19 = 4; + return 21; + } else if(((((!(a20==1)&&(((a19==2)&&((((((input==3)&&(((a29==5)||(a29==6))||(a29==7)))&&!(a0==1))&&(a11==1))&&!(a25==1))&&(a28==1)))&&(a14==8)))&&(a24==1))&&(a22==1))&&(a7==1))){ + a7 = 0; + a25 = 1; + a29 = 5; + a19 = 5; + return 21; + } else if((((!(a11==1)&&(((a19==1)&&(((!(a24==1)&&((((((a29==6)||(a29==7))||(a29==8))&&(input==4))&&(a28==1))&&(a14==9)))&&(a22==1))&&(a25==1)))&&(a7==1)))&&!(a0==1))&&(a20==1))){ + a19 = 2; + a25 = 0; + a11 = 1; + a14 = 8; + a29 = 8; + a24 = 1; + return -1; + } else if((((a19==1)&&(((!(a25==1)&&(((a0==1)&&(((a22==1)&&(((input==2)&&((a29==6)||(a29==7)))&&(a24==1)))&&(a11==1)))&&!(a20==1)))&&(a14==9))&&(a7==1)))&&(a28==1))){ + a7 = 0; + a29 = 8; + a19 = 2; + a11 = 0; + a24 = 0; + a0 = 0; + return 23; + } else if(((!(a11==1)&&((a25==1)&&((a19==2)&&(!(a24==1)&&(!(a0==1)&&(((a20==1)&&((((((a29==7)||(a29==8))||(a29==9))&&(input==5))&&(a22==1))&&(a14==9)))&&!(a7==1)))))))&&(a28==1))){ + a19 = 3; + a11 = 1; + a20 = 0; + a14 = 8; + a29 = 7; + a7 = 1; + a25 = 0; + return -1; + } else if(((!(a11==1)&&(((a28==1)&&(((a0==1)&&((a7==1)&&(((a25==1)&&((((a29==7)||(a29==8))&&(input==4))&&(a22==1)))&&(a14==8))))&&(a24==1)))&&(a19==3)))&&(a20==1))){ + a19 = 1; + a29 = 5; + a11 = 1; + return -1; + } else if(((a22==1)&&((a24==1)&&((a20==1)&&(!(a7==1)&&((a19==2)&&((a14==9)&&((a28==1)&&(((!(a11==1)&&((input==3)&&((a29==9)||((a29==7)||(a29==8)))))&&(a25==1))&&!(a0==1)))))))))){ + a19 = 1; + a29 = 7; + a7 = 1; + return -1; + } else if(((a25==1)&&(((a22==1)&&((((((a0==1)&&(((input==5)&&(((a29==9)&&(a19==1))||((a19==2)&&(a29==5))))&&(a7==1)))&&!(a24==1))&&(a11==1))&&!(a20==1))&&(a14==8)))&&(a28==1)))){ + a29 = 5; + a19 = 1; + a24 = 1; + a20 = 1; + return -1; + } else if(((!(a25==1)&&(!(a24==1)&&((a22==1)&&((a20==1)&&(((a14==9)&&(((((input==5)&&(a28==1))&&(a7==1))&&(a29==5))&&!(a0==1)))&&!(a11==1))))))&&(a19==3))){ + a24 = 1; + a29 = 9; + a11 = 1; + a14 = 8; + a25 = 1; + a19 = 1; + return 23; + } else if(((((a28==1)&&(((a11==1)&&((a14==9)&&(!(a0==1)&&((a22==1)&&((a24==1)&&((a20==1)&&((input==6)&&(a7==1))))))))&&(a29==8)))&&(a25==1))&&(a19==2))){ + a24 = 0; + a19 = 1; + a29 = 5; + a0 = 1; + a20 = 0; + return 24; + } else if(((a22==1)&&((a20==1)&&(((a14==9)&&((a24==1)&&((((!(a11==1)&&(((((a29==8)&&(a19==3))||((a19==3)&&(a29==9)))||((a19==4)&&(a29==5)))&&(input==4)))&&(a28==1))&&!(a7==1))&&!(a0==1))))&&(a25==1))))){ + a0 = 1; + a29 = 5; + a19 = 1; + a11 = 1; + a7 = 1; + a14 = 8; + return -1; + } else if((!(a25==1)&&((!(a20==1)&&((a29==7)&&(((((!(a7==1)&&(((a24==1)&&(input==6))&&(a22==1)))&&(a14==8))&&(a28==1))&&(a11==1))&&(a19==2))))&&!(a0==1)))){ + a29 = 9; + a7 = 1; + return -1; + } else if(((!(a0==1)&&(((((a11==1)&&(((a22==1)&&((((input==4)&&(a7==1))&&!(a20==1))&&(a28==1)))&&(a25==1)))&&(a29==5))&&(a14==9))&&(a24==1)))&&(a19==2))){ + a14 = 8; + a19 = 1; + a20 = 1; + a0 = 1; + return -1; + } else if((((a11==1)&&((((a22==1)&&((a28==1)&&(((a24==1)&&(((((a29==8)||((a29==6)||(a29==7)))&&(input==5))&&(a25==1))&&!(a20==1)))&&(a0==1))))&&(a14==9))&&(a19==5)))&&!(a7==1))){ + a20 = 1; + a19 = 1; + a29 = 5; + a7 = 1; + a14 = 8; + return -1; + } else if(((!(a20==1)&&(!(a11==1)&&(!(a7==1)&&((((a22==1)&&(((input==4)&&((((a19==5)&&((a29==8)&&(a25==1)))||(((a29==9)&&(a25==1))&&(a19==5)))||((!(a25==1)&&(a29==5))&&(a19==1))))&&(a28==1)))&&(a14==9))&&(a0==1)))))&&(a24==1))){ + a19 = 3; + a25 = 0; + a29 = 6; + a7 = 1; + return -1; + } else if((((a24==1)&&((!(a25==1)&&((a20==1)&&(((!(a7==1)&&((a11==1)&&(((((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))||((a29==6)&&(a19==4)))&&(input==2))))&&(a22==1))&&(a14==8))))&&!(a0==1)))&&(a28==1))){ + a25 = 1; + a29 = 5; + a0 = 1; + a19 = 1; + a7 = 1; + return -1; + } else if(((a19==1)&&(((a28==1)&&(((a20==1)&&((a22==1)&&(((a0==1)&&((a7==1)&&(((input==4)&&((a29==8)||(a29==9)))&&!(a11==1))))&&(a25==1))))&&!(a24==1)))&&(a14==9)))){ + a0 = 0; + a20 = 0; + a11 = 1; + a19 = 5; + a25 = 0; + a14 = 8; + a29 = 5; + return 24; + } else if((((((a11==1)&&((a28==1)&&(!(a0==1)&&(((((((a29==8)||((a29==6)||(a29==7)))&&(input==3))&&(a22==1))&&!(a24==1))&&(a14==9))&&(a19==5)))))&&!(a7==1))&&(a25==1))&&(a20==1))){ + a14 = 8; + a19 = 2; + a20 = 0; + a25 = 0; + a29 = 6; + a7 = 1; + return -1; + } else if(((((a22==1)&&(((a28==1)&&((a19==2)&&(!(a24==1)&&(((a0==1)&&(((a29==7)&&(input==6))&&(a14==9)))&&(a7==1)))))&&!(a20==1)))&&!(a11==1))&&!(a25==1))){ + a0 = 0; + a11 = 1; + a19 = 3; + a29 = 9; + a20 = 1; + a14 = 8; + a25 = 1; + return 23; + } else if((((a19==4)&&((a22==1)&&((a20==1)&&(!(a24==1)&&(!(a11==1)&&((((!(a25==1)&&((input==1)&&(a29==9)))&&(a0==1))&&(a7==1))&&(a14==8)))))))&&(a28==1))){ + a20 = 0; + a29 = 7; + a7 = 0; + return 21; + } else if(((a22==1)&&(((!(a11==1)&&(((!(a24==1)&&((a0==1)&&((((a19==5)&&((a25==1)&&(a29==9)))||((!(a25==1)&&(a29==5))&&(a19==1)))&&(input==6))))&&!(a20==1))&&(a14==8)))&&(a28==1))&&!(a7==1)))){ + a19 = 5; + a24 = 1; + a11 = 1; + a25 = 1; + a0 = 0; + a29 = 9; + a20 = 1; + return 23; + } else if(((!(a24==1)&&((a0==1)&&((a14==8)&&((a19==5)&&(((a20==1)&&(((a22==1)&&(((input==6)&&((a29==7)||((a29==5)||(a29==6))))&&(a11==1)))&&(a25==1)))&&(a28==1))))))&&(a7==1))){ + a25 = 0; + a7 = 0; + a20 = 0; + a19 = 4; + a29 = 7; + a11 = 0; + return 21; + } else if((((a19==3)&&(((!(a11==1)&&((!(a25==1)&&((a22==1)&&((a7==1)&&(!(a24==1)&&(((a29==6)||(a29==7))&&(input==1))))))&&(a28==1)))&&(a14==9))&&(a0==1)))&&(a20==1))){ + a19 = 1; + a11 = 1; + a24 = 1; + a14 = 8; + a25 = 1; + a29 = 5; + return -1; + } else if(((!(a11==1)&&(!(a20==1)&&((a29==9)&&((a19==5)&&(((((a28==1)&&(((input==1)&&!(a25==1))&&(a14==9)))&&!(a7==1))&&(a0==1))&&(a22==1))))))&&!(a24==1))){ + a24 = 1; + a7 = 1; + a25 = 1; + a29 = 7; + a11 = 1; + a0 = 0; + a20 = 1; + a19 = 4; + a14 = 8; + return 24; + } else if((((a24==1)&&((((a28==1)&&(((((a29==9)&&(((input==3)&&(a7==1))&&(a14==10)))&&(a25==1))&&(a19==5))&&!(a20==1)))&&(a0==1))&&(a22==1)))&&(a11==1))){ + a19 = 1; + a29 = 5; + a20 = 1; + a14 = 8; + return -1; + } else if(((!(a7==1)&&((a14==9)&&(((a22==1)&&((a0==1)&&((a28==1)&&((a19==5)&&(!(a24==1)&&(((a25==1)&&(input==1))&&!(a20==1)))))))&&(a11==1))))&&(a29==7))){ + a24 = 1; + a29 = 5; + a7 = 1; + a14 = 8; + a20 = 1; + a19 = 1; + return -1; + } else if(((!(a0==1)&&((a28==1)&&(((a22==1)&&(!(a11==1)&&(((a7==1)&&((a20==1)&&((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))&&(input==5))))&&(a14==8))))&&!(a25==1))))&&!(a24==1))){ + a29 = 5; + a19 = 1; + a11 = 1; + a25 = 1; + a0 = 1; + a24 = 1; + return -1; + } else if((!(a20==1)&&(((!(a24==1)&&((((((a28==1)&&(((a11==1)&&(input==5))&&(a14==9)))&&(a29==8))&&(a25==1))&&!(a7==1))&&(a19==4)))&&(a0==1))&&(a22==1)))){ + a24 = 1; + a20 = 1; + a7 = 1; + a29 = 5; + a14 = 8; + a19 = 1; + return -1; + } else if((!(a11==1)&&((a0==1)&&((a14==8)&&((!(a7==1)&&((a28==1)&&(!(a24==1)&&((a22==1)&&(!(a20==1)&&((a19==5)&&((input==3)&&((a29==7)||(a29==8)))))))))&&(a25==1)))))){ + a7 = 1; + a24 = 1; + a20 = 1; + a29 = 5; + a19 = 1; + a11 = 1; + return -1; + } else if(((((a7==1)&&((a28==1)&&(((!(a25==1)&&((a20==1)&&((a14==8)&&(((a11==1)&&(input==6))&&!(a0==1)))))&&(a19==3))&&(a29==7))))&&(a24==1))&&(a22==1))){ + a29 = 5; + a0 = 1; + a25 = 1; + a19 = 1; + return -1; + } else if(((a24==1)&&((a19==2)&&((((a11==1)&&((a28==1)&&(((a20==1)&&((a7==1)&&((a22==1)&&((input==2)&&((a29==6)||(a29==7))))))&&!(a0==1))))&&(a14==9))&&(a25==1))))){ + a7 = 0; + a19 = 5; + a14 = 8; + a20 = 0; + a29 = 7; + return 21; + } else if((((!(a20==1)&&((a25==1)&&(((a11==1)&&((a19==4)&&((a14==8)&&((a24==1)&&((a22==1)&&(((a29==6)||(a29==7))&&(input==4)))))))&&!(a7==1))))&&(a28==1))&&!(a0==1))){ + a11 = 0; + a25 = 0; + a29 = 7; + a24 = 0; + a19 = 3; + a0 = 1; + return -1; + } else if(((a19==4)&&(((((((a0==1)&&(((a24==1)&&((((a29==7)||(a29==8))&&(input==5))&&(a7==1)))&&(a20==1)))&&(a14==8))&&(a28==1))&&(a22==1))&&(a25==1))&&!(a11==1)))){ + a29 = 7; + a19 = 2; + a20 = 0; + a0 = 0; + a7 = 0; + return 24; + } else if((!(a20==1)&&(!(a25==1)&&((!(a11==1)&&(((((((((a29==5)&&(a19==3))||(((a29==8)&&(a19==2))||((a29==9)&&(a19==2))))&&(input==3))&&(a22==1))&&(a24==1))&&!(a7==1))&&(a28==1))&&(a14==9)))&&(a0==1))))){ + a19 = 1; + a14 = 8; + a29 = 5; + a25 = 1; + a11 = 1; + a0 = 0; + return 23; + } else if(((a19==1)&&((((!(a0==1)&&(((a25==1)&&((a7==1)&&((a14==9)&&(((a20==1)&&(input==5))&&!(a11==1)))))&&(a24==1)))&&(a29==6))&&(a22==1))&&(a28==1)))){ + a14 = 8; + a20 = 0; + a29 = 7; + a19 = 3; + a25 = 0; + a7 = 0; + a11 = 1; + return 23; + } else if((((((a14==9)&&((a28==1)&&(!(a0==1)&&(((((a29==5)&&((a25==1)&&(input==2)))&&(a7==1))&&(a19==4))&&!(a20==1)))))&&(a22==1))&&!(a11==1))&&!(a24==1))){ + a0 = 1; + a20 = 1; + a24 = 1; + a11 = 1; + a14 = 8; + a19 = 1; + return -1; + } else if(((a28==1)&&((((!(a20==1)&&((((!(a7==1)&&((input==6)&&((((a29==8)&&(a19==2))||((a29==9)&&(a19==2)))||((a29==5)&&(a19==3)))))&&(a0==1))&&!(a25==1))&&(a14==9)))&&!(a11==1))&&(a24==1))&&(a22==1)))){ + a20 = 1; + a29 = 8; + a19 = 1; + a11 = 1; + a7 = 1; + return 23; + } else if(((a19==1)&&((a22==1)&&((((((a28==1)&&(!(a24==1)&&((a25==1)&&(((a11==1)&&(input==1))&&(a29==9)))))&&(a0==1))&&(a7==1))&&(a20==1))&&(a14==10))))){ + a19 = 3; + a20 = 0; + a29 = 8; + a25 = 0; + a11 = 0; + a14 = 8; + return 21; + } else if((!(a24==1)&&((a19==4)&&(!(a20==1)&&((a22==1)&&(!(a11==1)&&((a29==5)&&((a0==1)&&((((a28==1)&&(!(a25==1)&&(input==5)))&&(a14==9))&&!(a7==1)))))))))){ + a19 = 1; + a7 = 1; + a14 = 8; + a0 = 0; + a29 = 8; + a24 = 1; + return -1; + } else if(((((!(a11==1)&&(((a29==9)&&((a20==1)&&(((((a24==1)&&(input==2))&&(a0==1))&&(a22==1))&&(a25==1))))&&(a14==9)))&&(a7==1))&&(a28==1))&&(a19==5))){ + a14 = 8; + a7 = 0; + a19 = 3; + a29 = 6; + a20 = 0; + a11 = 1; + a0 = 0; + return 21; + } else if((!(a7==1)&&((a19==4)&&(!(a24==1)&&(((a14==9)&&(((a28==1)&&(((a22==1)&&(((input==5)&&((a29==8)||(a29==9)))&&(a20==1)))&&!(a11==1)))&&!(a0==1)))&&!(a25==1)))))){ + a29 = 5; + a11 = 1; + a25 = 1; + a14 = 8; + a24 = 1; + a19 = 1; + a7 = 1; + a0 = 1; + return -1; + } else if((!(a20==1)&&(!(a0==1)&&(!(a25==1)&&((a28==1)&&((((a14==9)&&(((!(a7==1)&&((input==6)&&(a29==7)))&&(a11==1))&&(a19==5)))&&(a22==1))&&(a24==1))))))){ + a24 = 0; + a0 = 1; + a19 = 4; + return -1; + } else if(((a28==1)&&(((a14==8)&&(((((a22==1)&&(((a0==1)&&(!(a25==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==3))))&&(a11==1)))&&!(a7==1))&&(a20==1))&&(a19==3)))&&(a24==1)))){ + a29 = 8; + a19 = 5; + a20 = 0; + return 21; + } else if(((a24==1)&&(((a14==8)&&((((((a28==1)&&((a7==1)&&((((a29==8)||(a29==9))&&(input==6))&&!(a20==1))))&&(a22==1))&&(a19==3))&&!(a0==1))&&!(a11==1)))&&!(a25==1)))){ + a7 = 0; + a0 = 1; + a11 = 1; + a29 = 5; + a20 = 1; + return 21; + } else if((((((((((((a14==8)&&((((a29==5)||(a29==6))||(a29==7))&&(input==2)))&&(a22==1))&&!(a7==1))&&!(a25==1))&&(a19==5))&&(a11==1))&&!(a24==1))&&(a28==1))&&!(a20==1))&&!(a0==1))){ + a29 = 8; + a14 = 9; + a19 = 4; + a24 = 1; + return 23; + } else if((((a25==1)&&((a7==1)&&((a28==1)&&(((!(a20==1)&&(((a24==1)&&((input==3)&&((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))||((a19==4)&&(a29==6)))))&&(a14==8)))&&(a22==1))&&!(a0==1)))))&&!(a11==1))){ + a25 = 0; + a19 = 4; + a29 = 8; + a11 = 1; + a20 = 1; + a24 = 0; + a7 = 0; + return -1; + } else if(((a28==1)&&(((((((!(a11==1)&&((((input==5)&&((a29==7)||(a29==8)))&&(a19==4))&&(a0==1)))&&(a22==1))&&(a14==8))&&!(a20==1))&&(a25==1))&&(a7==1))&&!(a24==1)))){ + a25 = 0; + a19 = 2; + a7 = 0; + a29 = 8; + return 21; + } else if((((a11==1)&&(!(a24==1)&&((a0==1)&&(((a25==1)&&(((a28==1)&&((a29==6)&&((a7==1)&&((a14==9)&&(input==3)))))&&(a19==1)))&&(a22==1)))))&&!(a20==1))){ + a24 = 1; + a19 = 2; + a25 = 0; + a14 = 8; + a0 = 0; + a20 = 1; + return 21; + } else if(((!(a11==1)&&((!(a7==1)&&(!(a25==1)&&(!(a20==1)&&(((a24==1)&&((a22==1)&&((a0==1)&&((input==6)&&((a29==6)||(a29==7))))))&&(a28==1)))))&&(a14==9)))&&(a19==2))){ + a19 = 1; + a7 = 1; + a0 = 0; + a14 = 8; + a29 = 8; + return 21; + } else if((!(a24==1)&&((a28==1)&&((a11==1)&&((a14==8)&&(((a20==1)&&(((a22==1)&&((((((a19==1)&&(a29==8))||((a29==9)&&(a19==1)))||((a19==2)&&(a29==5)))&&(input==4))&&(a7==1)))&&!(a25==1)))&&(a0==1))))))){ + a0 = 0; + a29 = 8; + a19 = 4; + a25 = 1; + a24 = 1; + return 23; + } else if(((((a11==1)&&((a22==1)&&(((a0==1)&&(!(a24==1)&&((a28==1)&&((a20==1)&&((a7==1)&&((a14==10)&&(input==2)))))))&&(a29==8))))&&(a19==1))&&(a25==1))){ + a0 = 0; + a14 = 8; + a24 = 1; + a29 = 6; + a19 = 2; + return 23; + } else if((((a29==8)&&(((!(a20==1)&&(!(a24==1)&&((((a22==1)&&((a7==1)&&((a14==9)&&(input==3))))&&!(a0==1))&&(a19==1))))&&!(a25==1))&&!(a11==1)))&&(a28==1))){ + a0 = 1; + a11 = 1; + a29 = 5; + a20 = 1; + a25 = 1; + return 23; + } else if(((!(a0==1)&&((a7==1)&&(((a14==9)&&(((!(a11==1)&&(((((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))&&(input==5))&&(a22==1)))&&!(a25==1))&&!(a20==1)))&&!(a24==1))))&&(a28==1))){ + a29 = 8; + a20 = 1; + a7 = 0; + a25 = 1; + a19 = 3; + return -1; + } else if(((!(a20==1)&&((!(a7==1)&&((!(a11==1)&&(((a24==1)&&(((((a29==6)&&!(a25==1))&&(a19==1))||((((a25==1)&&(a29==9))&&(a19==5))||((a19==1)&&(!(a25==1)&&(a29==5)))))&&(input==3)))&&(a22==1)))&&!(a0==1)))&&(a14==8)))&&(a28==1))){ + a25 = 0; + a19 = 3; + a7 = 1; + a11 = 1; + a20 = 1; + a29 = 6; + return 23; + } else if(((a28==1)&&((a14==8)&&((a19==3)&&(!(a20==1)&&(((a22==1)&&(!(a24==1)&&((a0==1)&&((a25==1)&&(((input==1)&&((a29==7)||(a29==8)))&&(a7==1))))))&&(a11==1))))))){ + a29 = 6; + a0 = 0; + a24 = 1; + a7 = 0; + return 24; + } else if((((a7==1)&&((((a28==1)&&((a11==1)&&(((!(a20==1)&&(!(a0==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==3))))&&(a22==1))&&(a14==9))))&&!(a24==1))&&!(a25==1)))&&(a19==2))){ + a14 = 8; + a29 = 5; + a11 = 0; + a0 = 1; + a19 = 4; + return 24; + } else if(((((a22==1)&&((a28==1)&&((a29==6)&&((a20==1)&&((a14==9)&&(((a0==1)&&(((input==3)&&(a11==1))&&(a25==1)))&&!(a7==1)))))))&&(a19==1))&&!(a24==1))){ + a11 = 0; + a0 = 0; + a19 = 3; + a14 = 8; + a25 = 0; + a29 = 9; + return -1; + } else if(((((!(a25==1)&&(((a28==1)&&((a22==1)&&((a11==1)&&(((a20==1)&&((a19==4)&&(input==2)))&&!(a24==1)))))&&(a0==1)))&&(a29==6))&&(a7==1))&&(a14==8))){ + a0 = 0; + a24 = 1; + a7 = 0; + a29 = 7; + a19 = 2; + a25 = 1; + return 21; + } else if((((a19==4)&&((a0==1)&&((((a29==8)&&(((!(a20==1)&&((!(a11==1)&&(input==6))&&(a22==1)))&&(a14==8))&&(a28==1)))&&!(a25==1))&&(a7==1))))&&(a24==1))){ + a25 = 1; + a20 = 1; + a11 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((!(a20==1)&&((a11==1)&&(((((!(a7==1)&&((a19==4)&&((((input==2)&&!(a0==1))&&(a14==8))&&(a28==1))))&&(a29==5))&&!(a25==1))&&(a22==1))&&(a24==1))))){ + a19 = 1; + a20 = 1; + a25 = 1; + return 24; + } else if((!(a11==1)&&((((((a24==1)&&((!(a0==1)&&((a25==1)&&((input==2)&&((((a29==8)&&(a19==3))||((a29==9)&&(a19==3)))||((a19==4)&&(a29==5))))))&&(a20==1)))&&(a14==8))&&(a22==1))&&(a28==1))&&(a7==1)))){ + a29 = 6; + a14 = 9; + a24 = 0; + a19 = 3; + a11 = 1; + return 21; + } else if(((!(a24==1)&&((!(a7==1)&&(((a22==1)&&(!(a11==1)&&(((a0==1)&&((a25==1)&&(((a29==7)||(a29==8))&&(input==4))))&&(a28==1))))&&!(a20==1)))&&(a14==8)))&&(a19==5))){ + a19 = 1; + a29 = 9; + a14 = 9; + a24 = 1; + return 24; + } else if(((a22==1)&&(((a14==9)&&((a19==5)&&((!(a7==1)&&(!(a20==1)&&((!(a11==1)&&(((input==2)&&((a29==6)||(a29==7)))&&(a28==1)))&&!(a24==1))))&&(a25==1))))&&!(a0==1)))){ + a29 = 5; + a11 = 1; + a24 = 1; + a19 = 2; + a14 = 8; + return 23; + } else if((!(a7==1)&&((!(a24==1)&&(((((a11==1)&&((((((a19==3)&&(a29==5))||(((a29==8)&&(a19==2))||((a19==2)&&(a29==9))))&&(input==2))&&!(a20==1))&&(a22==1)))&&(a14==9))&&!(a25==1))&&(a0==1)))&&(a28==1)))){ + a20 = 1; + a29 = 9; + a19 = 5; + return -1; + } else if(((((((!(a20==1)&&((a25==1)&&((!(a0==1)&&((a14==8)&&((input==6)&&(a11==1))))&&(a24==1))))&&(a28==1))&&!(a7==1))&&(a29==6))&&(a19==5))&&(a22==1))){ + a7 = 1; + a29 = 5; + a19 = 1; + a0 = 1; + a20 = 1; + return -1; + } else if(((a0==1)&&((a14==9)&&(((a22==1)&&((!(a20==1)&&(((a11==1)&&((a19==3)&&(((input==3)&&(((a29==6)||(a29==7))||(a29==8)))&&(a7==1))))&&!(a25==1)))&&!(a24==1)))&&(a28==1))))){ + a29 = 5; + a25 = 1; + a20 = 1; + a19 = 1; + a24 = 1; + a14 = 8; + return -1; + } else if(((((a0==1)&&((a11==1)&&(((a25==1)&&(((((a7==1)&&((input==3)&&((a29==7)||(a29==8))))&&(a22==1))&&(a14==9))&&(a28==1)))&&(a24==1))))&&(a19==4))&&!(a20==1))){ + a19 = 1; + a29 = 5; + a20 = 1; + a14 = 8; + return -1; + } else if(((((a20==1)&&((((!(a11==1)&&(!(a25==1)&&(!(a24==1)&&((input==5)&&((((a29==8)&&(a19==2))||((a29==9)&&(a19==2)))||((a29==5)&&(a19==3)))))))&&(a14==9))&&(a0==1))&&(a22==1)))&&(a28==1))&&!(a7==1))){ + a19 = 1; + a11 = 1; + a29 = 7; + a24 = 1; + a7 = 1; + a0 = 0; + a14 = 8; + return 23; + } else if((((!(a0==1)&&((!(a20==1)&&(((((a14==8)&&((((a29==6)||(a29==7))&&(input==2))&&(a25==1)))&&!(a24==1))&&(a11==1))&&(a19==5)))&&(a7==1)))&&(a28==1))&&(a22==1))){ + a19 = 1; + a24 = 1; + a25 = 0; + a29 = 6; + a14 = 9; + return 24; + } else if(((((a29==7)&&((((a28==1)&&(!(a25==1)&&(!(a7==1)&&((((a22==1)&&(input==6))&&(a20==1))&&(a11==1)))))&&!(a0==1))&&(a14==8)))&&(a24==1))&&(a19==2))){ + a29 = 8; + a19 = 5; + a7 = 1; + return -1; + } else if((!(a11==1)&&((a22==1)&&((a20==1)&&((a19==1)&&(!(a0==1)&&(!(a7==1)&&((a14==8)&&(((a28==1)&&(!(a24==1)&&((input==6)&&(a29==5))))&&(a25==1)))))))))){ + a29 = 9; + a25 = 0; + a24 = 1; + a20 = 0; + a11 = 1; + a19 = 4; + return -1; + } else if(((a0==1)&&((a28==1)&&((a14==8)&&((!(a20==1)&&(!(a24==1)&&(((a19==2)&&((a22==1)&&((((a29==8)||(a29==9))&&(input==2))&&!(a11==1))))&&!(a25==1))))&&!(a7==1)))))){ + a29 = 8; + a7 = 1; + return -1; + } else if(((a28==1)&&((((a14==9)&&((a25==1)&&(!(a0==1)&&(((a11==1)&&((a24==1)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==1))&&(a19==1))))&&!(a7==1)))))&&(a22==1))&&(a20==1)))){ + a7 = 1; + a0 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if((!(a0==1)&&((!(a7==1)&&(((((((!(a25==1)&&(((a29==5)||(a29==6))&&(input==2)))&&(a14==8))&&(a28==1))&&(a24==1))&&!(a20==1))&&(a22==1))&&(a11==1)))&&(a19==2)))){ + a7 = 1; + a29 = 6; + return 24; + } else if(((a20==1)&&((a28==1)&&(((!(a25==1)&&((a7==1)&&((a22==1)&&(((a0==1)&&((a19==2)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==6))))&&(a14==8)))))&&!(a11==1))&&!(a24==1))))){ + a19 = 1; + a24 = 1; + a11 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if(((((a14==8)&&(((a22==1)&&(((a19==5)&&((!(a11==1)&&(((input==6)&&((a29==6)||(a29==7)))&&!(a0==1)))&&(a7==1)))&&!(a20==1)))&&!(a25==1)))&&(a24==1))&&(a28==1))){ + a0 = 1; + a24 = 0; + a29 = 7; + a7 = 0; + a19 = 1; + return -1; + } else if((!(a0==1)&&((((!(a20==1)&&((((a11==1)&&((a14==9)&&((a22==1)&&((input==2)&&((a29==9)||((a29==7)||(a29==8)))))))&&(a28==1))&&!(a7==1)))&&(a19==1))&&(a25==1))&&(a24==1)))){ + a29 = 9; + a20 = 1; + a14 = 8; + return 23; + } else if(((a28==1)&&((a20==1)&&((a14==10)&&((a11==1)&&(!(a25==1)&&((((a19==4)&&(((a7==1)&&((input==3)&&(((a29==6)||(a29==7))||(a29==8))))&&(a24==1)))&&(a0==1))&&(a22==1)))))))){ + a20 = 0; + a19 = 1; + a29 = 8; + a14 = 9; + a11 = 0; + return 21; + } else if(((a22==1)&&(((a19==1)&&(((a11==1)&&((!(a20==1)&&(!(a25==1)&&(!(a0==1)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==6))&&(a28==1)))))&&!(a24==1)))&&!(a7==1)))&&(a14==9)))){ + a7 = 1; + a25 = 1; + a0 = 1; + a29 = 7; + a19 = 2; + return -1; + } else if((((a14==8)&&(((a28==1)&&((a7==1)&&((a20==1)&&(!(a0==1)&&(((a19==2)&&(!(a25==1)&&(((a29==8)||(a29==9))&&(input==5))))&&(a22==1))))))&&!(a11==1)))&&(a24==1))){ + a20 = 0; + a7 = 0; + a25 = 1; + a11 = 1; + a29 = 5; + a19 = 4; + return -1; + } else if((!(a0==1)&&((!(a7==1)&&((a14==9)&&(((((a29==5)&&((((input==5)&&(a28==1))&&(a11==1))&&(a19==2)))&&!(a25==1))&&(a24==1))&&!(a20==1))))&&(a22==1)))){ + a29 = 6; + a7 = 1; + a24 = 0; + a0 = 1; + return 23; + } else if(((a24==1)&&((a22==1)&&(((!(a11==1)&&((a7==1)&&(((a25==1)&&((a28==1)&&((input==1)&&(((a19==4)&&(a29==6))||(((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))))))&&!(a0==1))))&&!(a20==1))&&(a14==8))))){ + a19 = 1; + a29 = 5; + a0 = 1; + a11 = 1; + a20 = 1; + return -1; + } else if((((a7==1)&&(((!(a20==1)&&(((a11==1)&&((a24==1)&&((a22==1)&&((input==3)&&(((a29==6)&&(a19==3))||(((a29==9)&&(a19==2))||((a29==5)&&(a19==3))))))))&&(a28==1)))&&(a14==10))&&!(a25==1)))&&(a0==1))){ + a25 = 1; + a29 = 8; + a24 = 0; + a19 = 4; + a14 = 9; + return 23; + } else if(((((!(a24==1)&&((((a25==1)&&((!(a7==1)&&((a19==5)&&((input==5)&&((a29==8)||((a29==6)||(a29==7))))))&&!(a0==1)))&&(a28==1))&&(a14==9)))&&(a22==1))&&(a20==1))&&(a11==1))){ + a14 = 8; + a19 = 1; + a7 = 1; + a29 = 5; + a0 = 1; + a24 = 1; + return -1; + } else if(((((((((a14==8)&&(((a7==1)&&(((input==6)&&!(a25==1))&&(a22==1)))&&(a29==8)))&&!(a11==1))&&!(a0==1))&&(a20==1))&&(a28==1))&&(a24==1))&&(a19==5))){ + a7 = 0; + a11 = 1; + a20 = 0; + a25 = 1; + a29 = 7; + return 24; + } else if((!(a7==1)&&(((a19==1)&&(((!(a0==1)&&((a24==1)&&(((a29==9)&&(((input==4)&&(a14==8))&&!(a11==1)))&&(a22==1))))&&(a28==1))&&!(a20==1)))&&(a25==1)))){ + a0 = 1; + a14 = 9; + a25 = 0; + return 24; + } else if(((a11==1)&&((a29==7)&&((((((((a0==1)&&((a14==8)&&(!(a20==1)&&(input==1))))&&(a25==1))&&(a24==1))&&(a28==1))&&!(a7==1))&&(a19==3))&&(a22==1))))){ + a7 = 1; + a11 = 0; + a29 = 9; + a19 = 4; + return 21; + } else if(((a19==3)&&(((a29==9)&&((a22==1)&&(((a28==1)&&((a11==1)&&(!(a25==1)&&(((a20==1)&&(!(a7==1)&&(input==4)))&&(a0==1)))))&&(a14==8))))&&(a24==1)))){ + a25 = 1; + a24 = 0; + a7 = 1; + a29 = 6; + a19 = 1; + return 23; + } else if((((a28==1)&&(((a29==7)&&((a20==1)&&(((a0==1)&&((a19==3)&&((((input==3)&&!(a7==1))&&(a22==1))&&!(a11==1))))&&(a25==1))))&&(a24==1)))&&(a14==9))){ + a11 = 1; + a25 = 0; + a19 = 1; + a14 = 8; + a0 = 0; + return 24; + } else if((!(a11==1)&&((!(a24==1)&&((a19==3)&&(((a14==8)&&((a28==1)&&(((a22==1)&&((a25==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==5))))&&(a7==1))))&&!(a0==1))))&&!(a20==1)))){ + a29 = 8; + a19 = 1; + a7 = 0; + a0 = 1; + return 21; + } else if(((a11==1)&&(!(a20==1)&&((((a14==9)&&(((((a25==1)&&((a0==1)&&((input==2)&&((a29==7)||(a29==8)))))&&(a19==4))&&(a22==1))&&(a28==1)))&&(a7==1))&&(a24==1))))){ + a19 = 3; + a29 = 8; + a20 = 1; + a25 = 0; + return 21; + } else if(((a14==9)&&((a0==1)&&((a20==1)&&((a25==1)&&((a11==1)&&((a29==7)&&(((a22==1)&&((a7==1)&&(((a19==5)&&(input==1))&&!(a24==1))))&&(a28==1))))))))){ + a24 = 1; + a14 = 10; + a7 = 0; + a25 = 0; + a29 = 5; + return 23; + } else if(((((a22==1)&&((a11==1)&&(!(a0==1)&&((!(a7==1)&&(((a14==8)&&(((input==6)&&(((a29==7)||(a29==8))||(a29==9)))&&(a24==1)))&&!(a20==1)))&&(a28==1)))))&&(a19==3))&&!(a25==1))){ + a0 = 1; + a24 = 0; + a29 = 6; + a14 = 9; + a11 = 0; + a25 = 1; + return 23; + } else if((!(a20==1)&&(!(a24==1)&&((((!(a7==1)&&((a28==1)&&((a14==8)&&(((a22==1)&&((input==5)&&((a29==5)||(a29==6))))&&(a25==1)))))&&(a19==3))&&(a0==1))&&!(a11==1))))){ + a29 = 6; + a7 = 1; + a25 = 0; + return -1; + } else if((((((a22==1)&&(((((!(a0==1)&&(((input==5)&&(a19==3))&&(a25==1)))&&(a14==9))&&!(a7==1))&&(a28==1))&&(a29==5)))&&(a24==1))&&!(a20==1))&&!(a11==1))){ + a14 = 8; + a11 = 1; + a19 = 1; + return 23; + } else if((((a11==1)&&((a24==1)&&((!(a20==1)&&((a19==3)&&(((a22==1)&&((((input==2)&&((a29==6)||(a29==7)))&&(a7==1))&&(a28==1)))&&(a25==1))))&&(a0==1))))&&(a14==10))){ + a7 = 0; + a14 = 9; + a24 = 0; + a29 = 5; + a20 = 1; + a19 = 2; + return -1; + } else if(((((a22==1)&&((!(a24==1)&&((a28==1)&&(!(a20==1)&&((a0==1)&&(!(a7==1)&&(!(a11==1)&&((input==4)&&((a29==8)||(a29==9)))))))))&&(a14==9)))&&(a19==4))&&!(a25==1))){ + a11 = 1; + a14 = 8; + a0 = 0; + a19 = 2; + a20 = 1; + a24 = 1; + a7 = 1; + a29 = 6; + a25 = 1; + return 24; + } else if((((((a7==1)&&(((a28==1)&&(!(a25==1)&&(((((a14==8)&&(input==4))&&!(a11==1))&&(a20==1))&&(a22==1))))&&(a24==1)))&&(a29==5))&&(a0==1))&&(a19==2))){ + a24 = 0; + a29 = 9; + a25 = 1; + a19 = 1; + a0 = 0; + return 24; + } else if(((!(a7==1)&&(((a22==1)&&(((a28==1)&&((((((input==5)&&((a29==6)||(a29==7)))&&!(a11==1))&&(a19==1))&&(a24==1))&&(a20==1)))&&(a0==1)))&&(a14==9)))&&!(a25==1))){ + a11 = 1; + a0 = 0; + a7 = 1; + a19 = 5; + a29 = 6; + a25 = 1; + a14 = 8; + return 23; + } else if((((!(a25==1)&&((a20==1)&&((((a22==1)&&(!(a0==1)&&((a11==1)&&((a14==8)&&((input==4)&&((a29==7)||((a29==5)||(a29==6))))))))&&!(a24==1))&&(a7==1))))&&(a19==4))&&(a28==1))){ + a29 = 6; + a7 = 0; + a25 = 1; + a19 = 5; + a24 = 1; + return 21; + } else if(((a24==1)&&((!(a20==1)&&(!(a11==1)&&((a14==8)&&((!(a0==1)&&(((a7==1)&&((((a29==5)&&(a19==3))||(((a29==8)&&(a19==2))||((a29==9)&&(a19==2))))&&(input==2)))&&(a25==1)))&&(a22==1)))))&&(a28==1)))){ + a11 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if((((a24==1)&&(((((a29==9)&&((a22==1)&&((a7==1)&&((a28==1)&&(((input==4)&&(a0==1))&&(a19==1))))))&&(a14==9))&&(a20==1))&&!(a11==1)))&&(a25==1))){ + a29 = 5; + a14 = 8; + a11 = 1; + return -1; + } else if(((a25==1)&&(!(a7==1)&&(((((a14==8)&&((((a24==1)&&(((((a29==8)&&(a19==3))||((a19==3)&&(a29==9)))||((a29==5)&&(a19==4)))&&(input==6)))&&(a28==1))&&(a0==1)))&&(a22==1))&&(a11==1))&&(a20==1))))){ + a19 = 2; + a29 = 7; + a25 = 0; + return 21; + } else if((!(a7==1)&&(!(a24==1)&&((a22==1)&&(((((a11==1)&&((!(a0==1)&&((((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))&&(input==1)))&&(a14==9)))&&(a20==1))&&(a28==1))&&(a25==1)))))){ + a7 = 1; + a11 = 0; + a0 = 1; + a19 = 1; + a24 = 1; + a25 = 0; + a29 = 8; + return -1; + } else if(((a20==1)&&((!(a7==1)&&((a28==1)&&((a22==1)&&(((a24==1)&&(((a19==3)&&((a14==9)&&((input==2)&&((a29==5)||(a29==6)))))&&!(a25==1)))&&!(a0==1)))))&&!(a11==1)))){ + a7 = 1; + a11 = 1; + a25 = 1; + a0 = 1; + a29 = 9; + a19 = 4; + return 23; + } else if(((a11==1)&&(((a24==1)&&((a14==10)&&((a25==1)&&(((a19==2)&&(!(a20==1)&&((((input==3)&&((a29==7)||(a29==8)))&&!(a7==1))&&(a0==1))))&&(a22==1)))))&&(a28==1)))){ + a29 = 6; + a0 = 0; + a20 = 1; + a11 = 0; + a14 = 9; + a25 = 0; + a24 = 0; + a19 = 5; + return -1; + } else if(((a22==1)&&(!(a20==1)&&(!(a25==1)&&((a29==7)&&((a19==5)&&((!(a0==1)&&((a24==1)&&((a28==1)&&(((input==6)&&!(a11==1))&&(a14==8)))))&&!(a7==1)))))))){ + a25 = 1; + a29 = 5; + a7 = 1; + a19 = 1; + a0 = 1; + a20 = 1; + a11 = 1; + return -1; + } else if(((a20==1)&&((!(a7==1)&&(!(a24==1)&&(!(a25==1)&&((((a14==9)&&((a19==3)&&(((input==2)&&(((a29==7)||(a29==8))||(a29==9)))&&(a28==1))))&&!(a0==1))&&(a22==1)))))&&(a11==1)))){ + a14 = 8; + a25 = 1; + a24 = 1; + a29 = 5; + return 23; + } else if((!(a25==1)&&((a22==1)&&((((a20==1)&&(!(a11==1)&&((a19==5)&&(!(a7==1)&&((a24==1)&&((!(a0==1)&&(input==5))&&(a28==1)))))))&&(a14==9))&&(a29==5))))){ + a20 = 0; + a0 = 1; + a14 = 8; + a19 = 3; + a24 = 0; + a29 = 8; + a7 = 1; + return 21; + } else if(((!(a25==1)&&((a7==1)&&((((a28==1)&&((((((input==6)&&(a29==9))&&(a19==4))&&(a24==1))&&(a22==1))&&(a20==1)))&&(a11==1))&&(a14==8))))&&!(a0==1))){ + a7 = 0; + a19 = 1; + a25 = 1; + a29 = 7; + return 23; + } else if(((((a7==1)&&((a19==3)&&(((a28==1)&&((a24==1)&&((a14==8)&&((((input==3)&&(a29==7))&&(a22==1))&&!(a0==1)))))&&!(a11==1))))&&(a25==1))&&!(a20==1))){ + a29 = 9; + a11 = 1; + a14 = 9; + a19 = 1; + a25 = 0; + a24 = 0; + return 23; + } else if(((((a11==1)&&(((a14==9)&&((a28==1)&&((((a24==1)&&((input==2)&&(((a29==5)&&(a19==5))||(((a19==4)&&(a29==8))||((a29==9)&&(a19==4))))))&&(a20==1))&&!(a25==1))))&&(a22==1)))&&!(a0==1))&&(a7==1))){ + a19 = 5; + a11 = 0; + a14 = 8; + a29 = 7; + a7 = 0; + a25 = 1; + return -1; + } else if((((a20==1)&&((((a22==1)&&((a28==1)&&((!(a25==1)&&((a24==1)&&((input==1)&&((((a19==3)&&(a29==8))||((a29==9)&&(a19==3)))||((a19==4)&&(a29==5))))))&&(a7==1))))&&(a14==8))&&!(a0==1)))&&!(a11==1))){ + a0 = 1; + a24 = 0; + a29 = 7; + a19 = 3; + a14 = 9; + return 24; + } else if((!(a11==1)&&((a24==1)&&((!(a25==1)&&((a22==1)&&((a19==2)&&((a28==1)&&(!(a7==1)&&(!(a20==1)&&(((input==4)&&((a29==8)||(a29==9)))&&(a14==9))))))))&&!(a0==1))))){ + a25 = 1; + a0 = 1; + a14 = 8; + a19 = 1; + a7 = 1; + a20 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if((((a11==1)&&(!(a0==1)&&(((((((a25==1)&&(((a20==1)&&(input==4))&&(a22==1)))&&(a28==1))&&(a7==1))&&(a29==9))&&(a14==9))&&!(a24==1))))&&(a19==1))){ + a24 = 1; + a0 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((a24==1)&&(!(a20==1)&&((((!(a25==1)&&(((a14==8)&&((a22==1)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==6))&&(a19==2))))&&(a28==1)))&&!(a0==1))&&!(a11==1))&&(a7==1))))){ + a25 = 1; + a19 = 1; + a29 = 5; + a20 = 1; + a11 = 1; + a0 = 1; + return -1; + } else if((((a29==8)&&((a22==1)&&((a14==8)&&(!(a20==1)&&(((a28==1)&&(!(a11==1)&&(((a7==1)&&((input==4)&&(a19==1)))&&(a24==1))))&&!(a25==1))))))&&!(a0==1))){ + a11 = 1; + a25 = 1; + a29 = 5; + a20 = 1; + a0 = 1; + return -1; + } else if((((a20==1)&&(((!(a11==1)&&(((a14==8)&&((a24==1)&&((((input==2)&&((a29==5)||(a29==6)))&&(a7==1))&&(a25==1))))&&(a28==1)))&&(a22==1))&&(a0==1)))&&(a19==2))){ + a29 = 5; + a19 = 1; + a11 = 1; + return -1; + } else if((!(a24==1)&&((a20==1)&&((((a0==1)&&((a22==1)&&((a7==1)&&((((a19==5)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==6)))&&(a11==1))&&(a25==1)))))&&(a28==1))&&(a14==10))))){ + a20 = 0; + a25 = 0; + a14 = 9; + a29 = 9; + a24 = 1; + return 21; + } else if(((a11==1)&&(((a22==1)&&((a19==5)&&(!(a7==1)&&(!(a20==1)&&((a28==1)&&(((!(a25==1)&&((input==6)&&(a29==8)))&&(a14==8))&&(a0==1)))))))&&!(a24==1)))){ + a25 = 1; + a24 = 1; + a29 = 7; + a0 = 0; + a7 = 1; + return 21; + } else if((((a19==3)&&(!(a0==1)&&(!(a24==1)&&((!(a25==1)&&((((((input==2)&&((a29==5)||(a29==6)))&&!(a7==1))&&(a14==9))&&(a22==1))&&(a28==1)))&&!(a20==1)))))&&(a11==1))){ + a19 = 1; + a14 = 8; + a7 = 1; + a0 = 1; + a24 = 1; + a20 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if(((!(a20==1)&&(((((a19==5)&&((a14==8)&&((a22==1)&&((a7==1)&&(((input==1)&&((a29==8)||(a29==9)))&&(a28==1))))))&&!(a25==1))&&(a0==1))&&(a24==1)))&&!(a11==1))){ + a20 = 1; + a25 = 1; + a19 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if(((a19==2)&&((a7==1)&&((a28==1)&&((!(a25==1)&&(((a11==1)&&((((a29==8)&&((input==1)&&!(a24==1)))&&(a14==10))&&(a22==1)))&&(a0==1)))&&(a20==1)))))){ + a25 = 1; + a24 = 1; + a14 = 8; + a29 = 5; + a19 = 1; + return -1; + } else if(((!(a0==1)&&((a19==3)&&(((a20==1)&&(((a28==1)&&((!(a7==1)&&((a14==8)&&((input==4)&&(((a29==6)||(a29==7))||(a29==8)))))&&(a22==1)))&&(a25==1)))&&!(a24==1))))&&!(a11==1))){ + a24 = 1; + a25 = 0; + a19 = 1; + a14 = 9; + a29 = 5; + return 23; + } else if((((a29==6)&&((a28==1)&&(((a11==1)&&((((((a25==1)&&((input==1)&&!(a20==1)))&&(a22==1))&&!(a7==1))&&(a14==9))&&(a19==3)))&&(a0==1))))&&(a24==1))){ + a14 = 8; + a11 = 0; + a19 = 1; + a0 = 0; + a24 = 0; + a29 = 5; + return -1; + } else if(((a29==5)&&((a20==1)&&((((a28==1)&&(!(a25==1)&&((!(a24==1)&&((a0==1)&&(((input==5)&&(a22==1))&&(a11==1))))&&!(a7==1))))&&(a19==5))&&(a14==9))))){ + a24 = 1; + a19 = 1; + a14 = 8; + a25 = 1; + a7 = 1; + return -1; + } else if(((a22==1)&&((a7==1)&&(((((a24==1)&&((a20==1)&&(((input==6)&&(((a19==1)&&((a29==5)&&!(a25==1)))||(((a19==5)&&((a29==8)&&(a25==1)))||((a19==5)&&((a29==9)&&(a25==1))))))&&(a14==8))))&&(a28==1))&&!(a0==1))&&!(a11==1))))){ + a0 = 1; + a19 = 1; + a29 = 5; + a25 = 1; + a11 = 1; + return -1; + } else if((((a7==1)&&(((a0==1)&&((((a11==1)&&(((a25==1)&&((a22==1)&&(((a29==5)||(a29==6))&&(input==4))))&&!(a24==1)))&&(a19==5))&&(a20==1)))&&(a28==1)))&&(a14==9))){ + a24 = 1; + a25 = 0; + a20 = 0; + a29 = 9; + return 21; + } else if(((a7==1)&&((((a22==1)&&((a24==1)&&((a0==1)&&(((a11==1)&&((input==4)&&(((a19==5)&&((a29==9)&&(a25==1)))||((!(a25==1)&&(a29==5))&&(a19==1)))))&&(a20==1)))))&&(a28==1))&&(a14==10)))){ + a19 = 1; + a25 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if((((a24==1)&&((a11==1)&&((a29==7)&&(!(a25==1)&&((a28==1)&&((a0==1)&&(((a14==8)&&(((input==6)&&(a19==4))&&(a7==1)))&&!(a20==1))))))))&&(a22==1))){ + a25 = 1; + a29 = 5; + a19 = 1; + a20 = 1; + return -1; + } else if(((a14==9)&&((a28==1)&&(((((a19==3)&&(((a24==1)&&((!(a0==1)&&((input==3)&&(((a29==5)||(a29==6))||(a29==7))))&&(a22==1)))&&!(a20==1)))&&!(a11==1))&&!(a25==1))&&!(a7==1))))){ + a11 = 1; + a29 = 5; + a14 = 8; + return 21; + } return calculate_output24(input); + } + + int calculate_output24(int input) { + if(((!(a24==1)&&(((a19==3)&&((a22==1)&&((a25==1)&&((a28==1)&&(((a14==9)&&((a7==1)&&((input==5)&&((a29==6)||(a29==7)))))&&(a20==1))))))&&!(a0==1)))&&(a11==1))){ + a14 = 8; + a29 = 7; + a20 = 0; + a24 = 1; + a7 = 0; + a19 = 2; + a25 = 0; + return 21; + } else if(((!(a11==1)&&((a25==1)&&((a0==1)&&((a22==1)&&(((((a19==1)&&((((a29==7)||(a29==8))&&(input==6))&&(a28==1)))&&(a24==1))&&(a14==8))&&(a7==1))))))&&!(a20==1))){ + a0 = 0; + a24 = 0; + a19 = 3; + a29 = 9; + a7 = 0; + return 23; + } else if(((a28==1)&&(((a19==5)&&((!(a0==1)&&(!(a20==1)&&(!(a11==1)&&((((((a29==6)||(a29==7))&&(input==3))&&(a25==1))&&(a7==1))&&(a14==9)))))&&(a22==1)))&&(a24==1)))){ + a29 = 9; + a7 = 0; + a11 = 1; + a14 = 8; + a25 = 0; + a19 = 1; + a20 = 1; + return 24; + } else if(((((a0==1)&&((a14==10)&&((a7==1)&&(((a11==1)&&((a19==1)&&(!(a25==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==2))&&(a22==1)))))&&(a28==1)))))&&!(a20==1))&&(a24==1))){ + a14 = 8; + a0 = 0; + a11 = 0; + a20 = 1; + a29 = 7; + a25 = 1; + a19 = 4; + a24 = 0; + a7 = 0; + return 21; + } else if(((a29==6)&&((((((a14==9)&&((((a0==1)&&((!(a11==1)&&(input==2))&&(a28==1)))&&(a7==1))&&(a25==1)))&&(a24==1))&&(a22==1))&&(a19==2))&&!(a20==1)))){ + a20 = 1; + a29 = 5; + a11 = 1; + a19 = 5; + a24 = 0; + return -1; + } else if((((((a20==1)&&(((a11==1)&&((!(a7==1)&&(((a22==1)&&(((a29==5)||(a29==6))&&(input==1)))&&(a14==8)))&&(a24==1)))&&!(a0==1)))&&(a19==5))&&(a28==1))&&!(a25==1))){ + a14 = 9; + a0 = 1; + a24 = 0; + a11 = 0; + a29 = 7; + a25 = 1; + return 24; + } else if(((((a19==4)&&(((a24==1)&&((((a29==6)&&((((a14==8)&&(input==5))&&(a11==1))&&(a22==1)))&&(a7==1))&&(a28==1)))&&!(a0==1)))&&!(a25==1))&&(a20==1))){ + a0 = 1; + a29 = 9; + a7 = 0; + return -1; + } else if(((a0==1)&&(((((!(a11==1)&&((a19==5)&&(((!(a20==1)&&((a24==1)&&(input==1)))&&(a22==1))&&(a29==5))))&&(a14==8))&&!(a7==1))&&(a25==1))&&(a28==1)))){ + a0 = 0; + a29 = 6; + a20 = 1; + a11 = 1; + a19 = 2; + return 21; + } else if(((a14==8)&&(!(a24==1)&&((a19==5)&&(((((((a28==1)&&(((input==1)&&(((a29==6)||(a29==7))||(a29==8)))&&(a22==1)))&&!(a25==1))&&!(a11==1))&&(a0==1))&&!(a20==1))&&!(a7==1)))))){ + a29 = 9; + a11 = 1; + a19 = 4; + a0 = 0; + a24 = 1; + return 23; + } else if(((((((a14==10)&&((a28==1)&&(!(a7==1)&&((a29==6)&&((a11==1)&&((a22==1)&&((a19==4)&&(input==5))))))))&&(a25==1))&&(a0==1))&&(a20==1))&&(a24==1))){ + a14 = 8; + a29 = 5; + a19 = 1; + a7 = 1; + return -1; + } else if((((a19==1)&&((a22==1)&&(((((a14==8)&&((((a0==1)&&(((a29==8)||(a29==9))&&(input==1)))&&(a7==1))&&(a28==1)))&&(a11==1))&&(a20==1))&&(a25==1))))&&!(a24==1))){ + a11 = 0; + a20 = 0; + a29 = 9; + return 21; + } else if(((a28==1)&&((((a22==1)&&((((a29==8)&&(((((a19==2)&&(input==3))&&!(a20==1))&&(a14==8))&&(a11==1)))&&(a7==1))&&!(a24==1)))&&(a25==1))&&!(a0==1)))){ + a24 = 1; + a29 = 6; + a14 = 9; + return 21; + } else if((((!(a20==1)&&((a28==1)&&((a22==1)&&(!(a11==1)&&(((a0==1)&&((a19==1)&&(((input==3)&&((a29==5)||(a29==6)))&&(a7==1))))&&(a24==1))))))&&(a25==1))&&(a14==8))){ + a7 = 0; + a0 = 0; + a29 = 6; + a11 = 1; + a19 = 2; + return 24; + } else if(((!(a0==1)&&((a14==9)&&((a28==1)&&(!(a20==1)&&(!(a7==1)&&(((a11==1)&&(!(a24==1)&&(!(a25==1)&&((input==4)&&((a29==7)||(a29==8))))))&&(a22==1)))))))&&(a19==4))){ + a29 = 5; + a14 = 8; + a25 = 1; + a0 = 1; + a20 = 1; + a7 = 1; + a19 = 1; + a24 = 1; + return -1; + } else if(((!(a11==1)&&(!(a24==1)&&(((a22==1)&&((!(a20==1)&&(((((a19==5)&&((a29==9)&&(a25==1)))||((a19==1)&&(!(a25==1)&&(a29==5))))&&(input==4))&&(a0==1)))&&!(a7==1)))&&(a14==8))))&&(a28==1))){ + a19 = 1; + a7 = 1; + a24 = 1; + a0 = 0; + a25 = 0; + a20 = 1; + a11 = 1; + a29 = 9; + return 23; + } else if(((((((a20==1)&&(((a14==9)&&(((a22==1)&&((((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))&&(input==5)))&&!(a24==1)))&&(a0==1)))&&(a7==1))&&!(a25==1))&&(a28==1))&&!(a11==1))){ + a19 = 1; + a7 = 0; + a11 = 1; + a29 = 9; + a20 = 0; + return 21; + } else if(((a20==1)&&(!(a25==1)&&((a7==1)&&(!(a0==1)&&((a19==3)&&((a24==1)&&(((((a11==1)&&((input==2)&&((a29==8)||(a29==9))))&&(a22==1))&&(a28==1))&&(a14==9))))))))){ + a19 = 4; + a29 = 8; + a11 = 0; + a20 = 0; + a7 = 0; + a14 = 8; + return -1; + } else if((((((((((((((a29==6)||(a29==7))&&(input==2))&&(a28==1))&&(a7==1))&&(a0==1))&&(a25==1))&&(a19==5))&&!(a20==1))&&(a22==1))&&(a14==8))&&(a11==1))&&!(a24==1))){ + a24 = 1; + a20 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if((!(a7==1)&&(!(a11==1)&&((((a19==3)&&(((!(a25==1)&&((a24==1)&&((a28==1)&&(((a29==5)||(a29==6))&&(input==5)))))&&(a14==8))&&(a22==1)))&&(a0==1))&&(a20==1))))){ + a29 = 6; + a20 = 0; + a7 = 1; + a0 = 0; + a19 = 2; + a24 = 0; + return 23; + } else if((!(a11==1)&&((a7==1)&&(((((!(a24==1)&&(((input==4)&&((((a19==5)&&((a25==1)&&(a29==9)))||(((a29==5)&&!(a25==1))&&(a19==1)))||(((a29==6)&&!(a25==1))&&(a19==1))))&&(a14==8)))&&(a28==1))&&(a20==1))&&(a0==1))&&(a22==1))))){ + a11 = 1; + a14 = 9; + a7 = 0; + a19 = 2; + a29 = 5; + a25 = 1; + return 24; + } else if((((a29==7)&&((a28==1)&&(((a11==1)&&((a7==1)&&(((!(a24==1)&&((a19==2)&&((input==5)&&(a0==1))))&&(a22==1))&&(a14==9))))&&(a25==1))))&&!(a20==1))){ + a20 = 1; + a0 = 0; + a29 = 5; + a19 = 3; + a14 = 8; + a7 = 0; + a24 = 1; + return 23; + } else if(((a25==1)&&(((((((a14==8)&&((((((a29==7)||((a29==5)||(a29==6)))&&(input==4))&&(a22==1))&&(a11==1))&&(a7==1)))&&(a19==4))&&(a28==1))&&!(a24==1))&&!(a20==1))&&!(a0==1)))){ + a29 = 8; + a19 = 5; + a14 = 9; + a24 = 1; + return 21; + } else if(((a29==9)&&(((((a28==1)&&(!(a0==1)&&(((a19==1)&&((((input==3)&&(a11==1))&&(a22==1))&&(a24==1)))&&!(a25==1))))&&!(a7==1))&&(a14==9))&&(a20==1)))){ + a0 = 1; + a14 = 8; + a7 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if((!(a7==1)&&((a0==1)&&(((a28==1)&&((a24==1)&&(((((((input==3)&&((a29==7)||(a29==8)))&&(a19==3))&&(a14==10))&&(a11==1))&&(a22==1))&&!(a25==1))))&&(a20==1))))){ + a19 = 2; + a14 = 8; + a7 = 1; + a0 = 0; + a29 = 8; + return 21; + } else if(((!(a25==1)&&((((!(a7==1)&&((((((input==6)&&((a29==8)||(a29==9)))&&(a28==1))&&!(a24==1))&&(a19==2))&&!(a11==1)))&&(a22==1))&&!(a20==1))&&(a14==9)))&&!(a0==1))){ + a25 = 1; + a29 = 5; + a7 = 1; + a14 = 8; + a24 = 1; + a0 = 1; + a20 = 1; + a19 = 1; + a11 = 1; + return -1; + } else if(((a0==1)&&(!(a25==1)&&((a11==1)&&((a14==9)&&(((((a22==1)&&(((a28==1)&&(!(a24==1)&&(input==1)))&&(a29==5)))&&!(a7==1))&&(a19==5))&&(a20==1))))))){ + a25 = 1; + a19 = 4; + a0 = 0; + a7 = 1; + a14 = 8; + a29 = 7; + return 21; + } else if(((a22==1)&&(!(a7==1)&&(((!(a11==1)&&(((a14==9)&&((a0==1)&&(!(a25==1)&&((input==1)&&(((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))))))&&(a24==1)))&&(a28==1))&&(a20==1))))){ + a25 = 1; + a19 = 1; + a11 = 1; + a14 = 8; + a29 = 5; + a7 = 1; + return -1; + } else if(((a11==1)&&(((a20==1)&&((a28==1)&&(((a19==5)&&((a24==1)&&((a14==10)&&((a0==1)&&(((input==5)&&((a29==9)||((a29==7)||(a29==8))))&&(a22==1))))))&&(a7==1))))&&!(a25==1)))){ + a14 = 8; + a24 = 0; + a11 = 0; + a20 = 0; + a7 = 0; + a29 = 5; + a25 = 1; + return 23; + } else if((((((a20==1)&&((!(a11==1)&&(!(a7==1)&&(((a25==1)&&(((a29==7)&&(input==6))&&(a22==1)))&&!(a0==1))))&&(a14==8)))&&(a28==1))&&(a24==1))&&(a19==5))){ + a7 = 1; + a25 = 0; + a24 = 0; + a0 = 1; + a20 = 0; + a29 = 9; + a19 = 2; + return 21; + } else if(((a24==1)&&((a19==3)&&(((a11==1)&&(((a22==1)&&(((a28==1)&&((a25==1)&&(((input==4)&&((a29==8)||(a29==9)))&&!(a0==1))))&&!(a7==1)))&&!(a20==1)))&&(a14==8))))){ + a19 = 4; + a11 = 0; + a29 = 8; + a0 = 1; + a24 = 0; + return -1; + } else if(((a19==1)&&((((a28==1)&&(((a29==6)&&((a14==8)&&((a22==1)&&((((input==1)&&!(a7==1))&&!(a24==1))&&(a0==1)))))&&(a11==1)))&&(a20==1))&&(a25==1)))){ + a24 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if((!(a24==1)&&(!(a20==1)&&((a25==1)&&(((!(a11==1)&&((((((input==6)&&((a29==8)||((a29==6)||(a29==7))))&&(a22==1))&&(a0==1))&&!(a7==1))&&(a28==1)))&&(a14==9))&&(a19==4)))))){ + a7 = 1; + a24 = 1; + a29 = 5; + a11 = 1; + a20 = 1; + a19 = 1; + a14 = 8; + return -1; + } else if((((((a22==1)&&(!(a7==1)&&((a19==1)&&((a14==8)&&((((a29==8)&&((input==4)&&(a28==1)))&&(a25==1))&&(a20==1))))))&&!(a0==1))&&!(a11==1))&&(a24==1))){ + a29 = 7; + a24 = 0; + a11 = 1; + a14 = 9; + return 24; + } else if(((((a11==1)&&(((a22==1)&&((a14==8)&&(((((a7==1)&&((input==6)&&((a29==5)||(a29==6))))&&!(a0==1))&&!(a25==1))&&(a20==1))))&&(a28==1)))&&(a19==5))&&!(a24==1))){ + a24 = 1; + a19 = 2; + a25 = 1; + a7 = 0; + a29 = 8; + return 23; + } else if(((a11==1)&&((a14==9)&&((a28==1)&&((a22==1)&&(((((a24==1)&&(((a20==1)&&((input==1)&&!(a7==1)))&&!(a25==1)))&&(a29==8))&&(a19==1))&&(a0==1))))))){ + a25 = 1; + a0 = 0; + a29 = 9; + a19 = 5; + a14 = 8; + return 23; + } else if(((!(a20==1)&&((a19==2)&&(((a22==1)&&(((a28==1)&&((!(a25==1)&&(!(a11==1)&&(!(a24==1)&&(input==4))))&&!(a7==1)))&&!(a0==1)))&&(a14==9))))&&(a29==7))){ + a0 = 1; + a29 = 8; + a25 = 1; + a19 = 3; + a14 = 8; + return 24; + } else if((!(a24==1)&&(!(a20==1)&&(((a11==1)&&((a25==1)&&((((a14==9)&&((a28==1)&&((a19==5)&&(((a29==8)||(a29==9))&&(input==1)))))&&(a0==1))&&(a22==1))))&&!(a7==1))))){ + a29 = 5; + a0 = 0; + a14 = 8; + a7 = 1; + a20 = 1; + a19 = 2; + return 23; + } else if(((!(a24==1)&&((a20==1)&&(((a19==3)&&((a28==1)&&((((a7==1)&&(((input==1)&&!(a25==1))&&(a0==1)))&&(a11==1))&&(a29==8))))&&(a22==1))))&&(a14==9))){ + a25 = 1; + a24 = 1; + a19 = 2; + a29 = 7; + return -1; + } else if((!(a20==1)&&((a28==1)&&((((((((a24==1)&&(((input==6)&&((a29==6)||(a29==7)))&&!(a0==1)))&&(a19==4))&&!(a11==1))&&(a14==9))&&(a22==1))&&!(a25==1))&&!(a7==1))))){ + a7 = 1; + a19 = 5; + a20 = 1; + a29 = 5; + a14 = 8; + a25 = 1; + a11 = 1; + return 24; + } else if((((((a19==2)&&(((((a25==1)&&(((a0==1)&&((input==6)&&((a29==8)||(a29==9))))&&(a7==1)))&&(a28==1))&&(a24==1))&&(a14==9)))&&(a22==1))&&(a20==1))&&!(a11==1))){ + a7 = 0; + a14 = 8; + a19 = 4; + a25 = 0; + a11 = 1; + a20 = 0; + a0 = 0; + a29 = 9; + return 24; + } else if(((((((((!(a7==1)&&(((a28==1)&&((a20==1)&&(input==6)))&&(a22==1)))&&(a11==1))&&(a24==1))&&(a29==9))&&!(a0==1))&&(a14==8))&&(a25==1))&&(a19==4))){ + a19 = 5; + a14 = 9; + a29 = 5; + a25 = 0; + a11 = 0; + a0 = 1; + a24 = 0; + a7 = 1; + return 24; + } else if((((a14==9)&&((a28==1)&&(((((!(a7==1)&&((!(a20==1)&&(((a29==7)||(a29==8))&&(input==4)))&&(a24==1)))&&(a22==1))&&!(a11==1))&&(a19==4))&&!(a25==1))))&&(a0==1))){ + a7 = 1; + a11 = 1; + a29 = 8; + return -1; + } else if(((a25==1)&&((((a14==8)&&((((((a28==1)&&((((a29==5)||(a29==6))&&(input==4))&&!(a0==1)))&&(a22==1))&&(a19==2))&&(a20==1))&&!(a24==1)))&&!(a7==1))&&(a11==1)))){ + a25 = 0; + a24 = 1; + a7 = 1; + a29 = 5; + a19 = 5; + a14 = 9; + return 24; + } else if((((a22==1)&&(!(a20==1)&&(!(a11==1)&&((((((((((a29==9)&&(a25==1))&&(a19==5))||(((a29==5)&&!(a25==1))&&(a19==1)))||((!(a25==1)&&(a29==6))&&(a19==1)))&&(input==1))&&(a14==8))&&!(a7==1))&&(a28==1))&&(a24==1)))))&&(a0==1))){ + a19 = 2; + a14 = 9; + a11 = 1; + a25 = 1; + a29 = 5; + return 21; + } else if(((a14==9)&&((a28==1)&&(!(a0==1)&&((a22==1)&&((!(a7==1)&&(!(a24==1)&&(((a20==1)&&((a19==3)&&((input==1)&&((a29==8)||((a29==6)||(a29==7))))))&&(a25==1))))&&(a11==1))))))){ + a24 = 1; + a7 = 1; + a0 = 1; + a29 = 6; + return 23; + } else if((!(a20==1)&&(((a28==1)&&((a22==1)&&((((a14==9)&&(((a29==7)&&(((a19==3)&&(input==3))&&!(a7==1)))&&(a0==1)))&&(a25==1))&&(a11==1))))&&(a24==1)))){ + a20 = 1; + a19 = 1; + a14 = 8; + a29 = 5; + a7 = 1; + return -1; + } else if(((a29==5)&&((a11==1)&&((((a22==1)&&((a19==4)&&(((!(a25==1)&&((a7==1)&&((a28==1)&&(input==1))))&&!(a0==1))&&!(a24==1))))&&(a14==9))&&(a20==1))))){ + a24 = 1; + a19 = 1; + a14 = 8; + a29 = 7; + a7 = 0; + return -1; + } else if((((((a11==1)&&(!(a25==1)&&((a0==1)&&((a7==1)&&((a28==1)&&(((a19==3)&&(((a29==5)||(a29==6))&&(input==2)))&&(a20==1)))))))&&(a14==9))&&!(a24==1))&&(a22==1))){ + a7 = 0; + a14 = 8; + a0 = 0; + a25 = 1; + a24 = 1; + a19 = 5; + a29 = 7; + return 23; + } else if((((a22==1)&&(!(a11==1)&&(!(a0==1)&&((((a28==1)&&((((input==3)&&(((a29==6)&&(a19==2))||(((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))))&&(a25==1))&&!(a20==1)))&&(a14==8))&&!(a24==1)))))&&(a7==1))){ + a29 = 5; + a11 = 1; + a19 = 1; + a20 = 1; + a0 = 1; + a24 = 1; + return -1; + } else if(((a0==1)&&(((a14==8)&&(!(a7==1)&&((a20==1)&&((a25==1)&&((((a28==1)&&((input==6)&&(((a29==5)&&(a19==3))||(((a19==2)&&(a29==8))||((a19==2)&&(a29==9))))))&&(a22==1))&&!(a24==1))))))&&(a11==1)))){ + a20 = 0; + a29 = 9; + a0 = 0; + a24 = 1; + a19 = 2; + return 24; + } else if((((a14==8)&&((((((((((input==6)&&((a29==5)||(a29==6)))&&!(a24==1))&&(a11==1))&&!(a0==1))&&!(a20==1))&&(a22==1))&&(a28==1))&&!(a7==1))&&(a25==1)))&&(a19==5))){ + a19 = 1; + a29 = 8; + a14 = 9; + a24 = 1; + a25 = 0; + return 24; + } else if(((a14==8)&&(((((a29==9)&&(((((a7==1)&&((a25==1)&&((a24==1)&&(input==5))))&&(a19==5))&&(a28==1))&&(a20==1)))&&!(a11==1))&&(a22==1))&&(a0==1)))){ + a29 = 5; + a19 = 1; + a11 = 1; + return -1; + } else if(((a14==10)&&((a7==1)&&(((a0==1)&&((((!(a20==1)&&(((a19==1)&&((input==2)&&(a28==1)))&&!(a25==1)))&&(a11==1))&&(a24==1))&&(a22==1)))&&(a29==5))))){ + a29 = 9; + a19 = 2; + a14 = 9; + a20 = 1; + return 21; + } else if((((((a14==8)&&((((a19==5)&&((a29==9)&&(!(a25==1)&&(!(a24==1)&&((!(a20==1)&&(a11==1))&&!(a7==1))))))||((a19==1)&&(((a25==1)&&(((a7==1)&&((a20==1)&&!(a11==1)))&&(a24==1)))&&(a29==5))))&&(input==6)))&&(a28==1))&&(a0==1))&&(a22==1))){ + a25 = 0; + a11 = 0; + a7 = 0; + a29 = 7; + a20 = 0; + a19 = 3; + a24 = 0; + return 21; + } else if((((!(a0==1)&&(((a28==1)&&((a25==1)&&((a7==1)&&((((((a29==8)||((a29==6)||(a29==7)))&&(input==1))&&(a24==1))&&(a14==8))&&(a22==1)))))&&(a11==1)))&&!(a20==1))&&(a19==4))){ + a25 = 0; + a19 = 2; + a29 = 7; + a7 = 0; + a20 = 1; + return -1; + } else if(((a7==1)&&((a22==1)&&((!(a0==1)&&(((a28==1)&&((a14==9)&&(((((((a19==4)&&(a29==8))||((a29==9)&&(a19==4)))||((a29==5)&&(a19==5)))&&(input==6))&&(a11==1))&&!(a20==1))))&&!(a24==1)))&&!(a25==1))))){ + a19 = 5; + a25 = 1; + a29 = 9; + a0 = 1; + return 21; + } else if((((a22==1)&&((a25==1)&&((a14==9)&&((!(a24==1)&&(((a0==1)&&((a28==1)&&((((a29==6)||(a29==7))&&(input==6))&&(a20==1))))&&(a19==2)))&&!(a7==1)))))&&(a11==1))){ + a7 = 1; + a14 = 10; + a20 = 0; + a29 = 5; + a24 = 1; + a19 = 1; + a25 = 0; + return 23; + } else if(((a28==1)&&((!(a24==1)&&((((((a22==1)&&((a11==1)&&(((input==5)&&((a29==7)||((a29==5)||(a29==6))))&&(a14==9))))&&(a0==1))&&!(a25==1))&&!(a20==1))&&!(a7==1)))&&(a19==2)))){ + a20 = 1; + a7 = 1; + a29 = 8; + a19 = 5; + return -1; + } else if(((a22==1)&&((a19==4)&&(((a20==1)&&((a24==1)&&(((a11==1)&&(((((input==2)&&(a29==5))&&(a0==1))&&(a14==10))&&(a28==1)))&&(a7==1))))&&(a25==1))))){ + a20 = 0; + a7 = 0; + a14 = 8; + a24 = 0; + a11 = 0; + a19 = 5; + a25 = 0; + return 23; + } else if(((a14==8)&&(((a24==1)&&((!(a0==1)&&((a20==1)&&((((a11==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==6))&&!(a7==1)))&&(a19==4))&&(a22==1))))&&!(a25==1)))&&(a28==1)))){ + a0 = 1; + a19 = 1; + a25 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if(((a7==1)&&(!(a24==1)&&((((a28==1)&&((a22==1)&&((a19==4)&&(!(a11==1)&&((a14==9)&&(!(a0==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==5))))))))&&!(a25==1))&&(a20==1))))){ + a14 = 8; + a11 = 1; + a25 = 1; + a29 = 7; + a24 = 1; + a19 = 5; + return 24; + } else if(((a7==1)&&(!(a0==1)&&((a20==1)&&((a14==9)&&((((a22==1)&&(((((a19==5)&&(input==4))&&(a28==1))&&!(a11==1))&&(a29==5)))&&(a24==1))&&!(a25==1))))))){ + a0 = 1; + a11 = 1; + a19 = 1; + a14 = 8; + a25 = 1; + return -1; + } else if((!(a20==1)&&(!(a0==1)&&((a28==1)&&((((a24==1)&&(((input==6)&&((((a29==9)&&((a7==1)&&!(a25==1)))&&(a19==5))||((a19==1)&&(((a25==1)&&!(a7==1))&&(a29==5)))))&&(a14==8)))&&!(a11==1))&&(a22==1)))))){ + a19 = 3; + a25 = 1; + a7 = 0; + a11 = 1; + a14 = 9; + a29 = 6; + a24 = 0; + return 24; + } else if(((a19==3)&&(((((a28==1)&&((a14==8)&&((a29==6)&&((a20==1)&&((a0==1)&&((a22==1)&&((a24==1)&&(input==1))))))))&&(a11==1))&&(a25==1))&&!(a7==1)))){ + a29 = 5; + a7 = 1; + a19 = 1; + return -1; + } else if(((!(a24==1)&&(((a22==1)&&((((((a28==1)&&(((input==3)&&((a29==8)||((a29==6)||(a29==7))))&&(a7==1)))&&(a11==1))&&(a25==1))&&(a20==1))&&(a19==4)))&&(a14==10)))&&(a0==1))){ + a19 = 1; + a29 = 5; + a14 = 8; + a24 = 1; + return -1; + } else if((((a14==8)&&(!(a25==1)&&(((a20==1)&&(((a24==1)&&(((((((a29==8)&&(a19==4))||((a19==4)&&(a29==9)))||((a29==5)&&(a19==5)))&&(input==4))&&!(a11==1))&&!(a0==1)))&&!(a7==1)))&&(a28==1))))&&(a22==1))){ + a29 = 9; + a14 = 9; + a7 = 1; + a25 = 1; + a20 = 0; + a11 = 1; + a19 = 1; + a24 = 0; + return 24; + } else if((!(a0==1)&&((((!(a7==1)&&(!(a25==1)&&(((((a29==7)&&((input==5)&&(a28==1)))&&!(a20==1))&&(a24==1))&&(a19==5))))&&!(a11==1))&&(a14==8))&&(a22==1)))){ + a29 = 5; + a19 = 1; + a0 = 1; + a20 = 1; + a7 = 1; + a25 = 1; + a11 = 1; + return -1; + } else if(((a28==1)&&(((a25==1)&&(!(a24==1)&&((((!(a7==1)&&((a14==9)&&(((((a19==2)&&(a29==8))||((a29==9)&&(a19==2)))||((a19==3)&&(a29==5)))&&(input==4))))&&(a22==1))&&!(a20==1))&&(a0==1))))&&(a11==1)))){ + a19 = 5; + a25 = 0; + a0 = 0; + a29 = 8; + a14 = 8; + a20 = 1; + a24 = 1; + a11 = 0; + return 24; + } else if(((((((((a22==1)&&(((a20==1)&&(!(a24==1)&&((input==5)&&(((a29==6)||(a29==7))||(a29==8)))))&&(a14==10)))&&(a28==1))&&(a11==1))&&(a25==1))&&(a7==1))&&(a19==4))&&(a0==1))){ + a11 = 0; + a29 = 6; + a14 = 8; + a20 = 0; + a19 = 5; + a7 = 0; + return 23; + } else if((((!(a20==1)&&((((a7==1)&&((a29==6)&&(((a19==1)&&(((input==3)&&(a14==10))&&(a11==1)))&&(a24==1))))&&!(a25==1))&&(a28==1)))&&(a22==1))&&(a0==1))){ + a29 = 5; + a24 = 0; + a14 = 9; + a20 = 1; + a25 = 1; + a11 = 0; + a19 = 3; + return 23; + } else if((!(a11==1)&&(((a29==5)&&((a7==1)&&((a24==1)&&(((a25==1)&&(((a28==1)&&((a19==2)&&((a20==1)&&(input==5))))&&(a14==9)))&&(a0==1)))))&&(a22==1)))){ + a14 = 8; + a29 = 6; + a7 = 0; + a20 = 0; + a11 = 1; + a24 = 0; + a0 = 0; + return -1; + } else if(((a19==2)&&((a0==1)&&((((a7==1)&&(((((((((a29==6)||(a29==7))||(a29==8))&&(input==3))&&!(a11==1))&&(a22==1))&&(a28==1))&&(a14==9))&&(a24==1)))&&!(a20==1))&&!(a25==1))))){ + a20 = 1; + a11 = 1; + a25 = 1; + a29 = 5; + a14 = 8; + a19 = 1; + return -1; + } else if((!(a20==1)&&(((a14==8)&&((((a7==1)&&((((a29==6)&&((a22==1)&&((a25==1)&&(input==2))))&&(a24==1))&&(a0==1)))&&(a28==1))&&!(a11==1)))&&(a19==4)))){ + a11 = 1; + a19 = 1; + a20 = 1; + a14 = 9; + a29 = 8; + return 24; + } else if(((a28==1)&&(((((((a20==1)&&(!(a24==1)&&(!(a7==1)&&(((input==2)&&((a29==7)||((a29==5)||(a29==6))))&&(a0==1)))))&&(a19==4))&&(a11==1))&&(a22==1))&&(a25==1))&&(a14==9)))){ + a24 = 1; + a19 = 5; + a14 = 10; + a25 = 0; + a7 = 1; + a20 = 0; + a29 = 7; + return 21; + } else if((((a28==1)&&((a24==1)&&((((a19==4)&&((a11==1)&&((a25==1)&&((((input==2)&&((a29==9)||((a29==7)||(a29==8))))&&(a7==1))&&(a20==1)))))&&(a22==1))&&!(a0==1))))&&(a14==9))){ + a19 = 1; + a29 = 5; + a0 = 1; + a25 = 0; + a11 = 0; + return -1; + } else if(((a19==5)&&(!(a7==1)&&(((a28==1)&&(((((!(a0==1)&&(((input==1)&&(a25==1))&&(a20==1)))&&(a29==5))&&!(a11==1))&&(a24==1))&&(a14==9)))&&(a22==1))))){ + a11 = 1; + a19 = 3; + a20 = 0; + a29 = 8; + a7 = 1; + return -1; + } else if(((((a28==1)&&((a22==1)&&(!(a25==1)&&(!(a7==1)&&(!(a20==1)&&((a19==1)&&(((a24==1)&&((input==3)&&((a29==9)||((a29==7)||(a29==8)))))&&!(a11==1))))))))&&!(a0==1))&&(a14==9))){ + a11 = 1; + a29 = 8; + a19 = 3; + a14 = 8; + a20 = 1; + a25 = 1; + return 24; + } else if(((((a25==1)&&(((a14==8)&&((a11==1)&&((((a28==1)&&((input==6)&&((((a29==8)&&(a19==2))||((a19==2)&&(a29==9)))||((a29==5)&&(a19==3)))))&&(a20==1))&&!(a0==1))))&&(a24==1)))&&(a22==1))&&(a7==1))){ + a19 = 1; + a29 = 6; + a7 = 0; + a25 = 0; + return 24; + } else if(((a14==9)&&((a7==1)&&((a19==3)&&((a24==1)&&(((a11==1)&&((a25==1)&&((((a20==1)&&(((a29==5)||(a29==6))&&(input==5)))&&(a22==1))&&(a0==1))))&&(a28==1))))))){ + a24 = 0; + a19 = 4; + a11 = 0; + a29 = 6; + a25 = 0; + return 24; + } else if(((((!(a24==1)&&(((a22==1)&&(((((a28==1)&&((a14==9)&&(input==5)))&&(a11==1))&&(a25==1))&&(a19==1)))&&(a29==6)))&&(a0==1))&&!(a20==1))&&!(a7==1))){ + a0 = 0; + a24 = 1; + a29 = 9; + a14 = 8; + a7 = 1; + return 23; + } else if(((a19==5)&&((!(a20==1)&&(((((a22==1)&&(((!(a0==1)&&((input==6)&&!(a25==1)))&&!(a11==1))&&!(a24==1)))&&(a14==8))&&(a29==8))&&(a28==1)))&&!(a7==1)))){ + a19 = 4; + a7 = 1; + a29 = 6; + a14 = 9; + a20 = 1; + return 23; + } else if(((a14==8)&&((a20==1)&&(((a25==1)&&(((a29==7)&&((a0==1)&&(((a22==1)&&(((a7==1)&&(input==6))&&(a28==1)))&&!(a24==1))))&&(a19==2)))&&!(a11==1))))){ + a11 = 1; + a24 = 1; + a19 = 5; + a7 = 0; + a0 = 0; + a20 = 0; + return 24; + } else if(((a25==1)&&((a22==1)&&((((a28==1)&&(((!(a0==1)&&((a14==9)&&(((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))||((a19==3)&&(a29==6)))&&(input==3))))&&!(a20==1))&&!(a7==1)))&&!(a24==1))&&(a11==1))))){ + a24 = 1; + a19 = 3; + a29 = 9; + return -1; + } else if(((((!(a0==1)&&(!(a11==1)&&((a14==8)&&((a19==2)&&((a20==1)&&((a7==1)&&((a28==1)&&(((a29==8)||(a29==9))&&(input==3)))))))))&&!(a25==1))&&(a24==1))&&(a22==1))){ + a19 = 4; + a25 = 1; + a29 = 7; + a11 = 1; + return 21; + } else if(((((!(a20==1)&&(((a19==4)&&(!(a24==1)&&((a14==9)&&((a22==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==4))&&(a11==1))))))&&(a28==1)))&&(a25==1))&&!(a7==1))&&!(a0==1))){ + a0 = 1; + a29 = 9; + a24 = 1; + a19 = 2; + return -1; + } else if((((!(a7==1)&&(((a28==1)&&(!(a24==1)&&(((a22==1)&&((((input==3)&&((a29==8)||(a29==9)))&&(a14==8))&&(a11==1)))&&(a25==1))))&&(a19==1)))&&!(a0==1))&&(a20==1))){ + a24 = 1; + a25 = 0; + a7 = 1; + a19 = 4; + a29 = 5; + a14 = 9; + return 23; + } else if(((a24==1)&&((a22==1)&&(((!(a0==1)&&((a28==1)&&(!(a25==1)&&((((a19==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==6)))&&(a11==1))&&(a14==8)))))&&!(a20==1))&&(a7==1))))){ + a29 = 5; + a0 = 1; + a11 = 0; + a24 = 0; + a7 = 0; + a19 = 3; + return -1; + } else if((((((a19==5)&&((((!(a7==1)&&(!(a0==1)&&((!(a20==1)&&(input==6))&&(a28==1))))&&!(a24==1))&&(a25==1))&&(a29==9)))&&(a14==9))&&(a22==1))&&!(a11==1))){ + a0 = 1; + a19 = 2; + a11 = 1; + a29 = 8; + a25 = 0; + a24 = 1; + return -1; + } else if(((a22==1)&&(((a0==1)&&(!(a7==1)&&(((a24==1)&&(((((((a29==6)||(a29==7))&&(input==3))&&(a28==1))&&(a14==8))&&(a19==3))&&!(a11==1)))&&!(a25==1))))&&!(a20==1)))){ + a25 = 1; + a11 = 1; + a7 = 1; + a29 = 5; + a19 = 5; + a0 = 0; + return 23; + } else if((!(a7==1)&&(!(a0==1)&&((!(a25==1)&&((((a14==8)&&((a19==3)&&(((a22==1)&&((input==6)&&((a29==7)||(a29==8))))&&(a28==1))))&&!(a11==1))&&(a20==1)))&&(a24==1))))){ + a29 = 6; + a11 = 1; + a20 = 0; + a7 = 1; + a25 = 1; + return -1; + } else if((((a24==1)&&(((!(a11==1)&&(((a28==1)&&((a0==1)&&((a22==1)&&((input==3)&&(((a29==6)&&(a19==2))||(((a19==1)&&(a29==9))||((a19==2)&&(a29==5))))))))&&(a25==1)))&&(a14==8))&&(a7==1)))&&!(a20==1))){ + a20 = 1; + a11 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((((a11==1)&&((a20==1)&&((a14==8)&&((a22==1)&&((!(a7==1)&&(!(a0==1)&&(!(a25==1)&&(((a29==7)&&(input==5))&&(a19==4)))))&&(a28==1))))))&&!(a24==1))){ + a11 = 0; + a0 = 1; + a20 = 0; + a29 = 5; + return 24; + } else if(((!(a24==1)&&((a0==1)&&(((a28==1)&&(((a7==1)&&((a22==1)&&(((a19==5)&&(((a29==5)||(a29==6))&&(input==5)))&&(a14==9))))&&(a25==1)))&&(a11==1))))&&(a20==1))){ + a19 = 2; + a14 = 8; + a25 = 0; + a29 = 7; + a0 = 0; + a11 = 0; + a7 = 0; + a24 = 1; + return 23; + } else if(((a28==1)&&(!(a20==1)&&(((a24==1)&&((a11==1)&&(!(a25==1)&&(!(a0==1)&&(((a14==9)&&((input==4)&&((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))||((a19==3)&&(a29==6)))))&&(a22==1))))))&&!(a7==1))))){ + a20 = 1; + a14 = 8; + a0 = 1; + a7 = 1; + a29 = 5; + a19 = 1; + a25 = 1; + return -1; + } else if(((!(a25==1)&&(!(a7==1)&&((a11==1)&&((a19==1)&&(((a28==1)&&(((a24==1)&&(((input==1)&&(((a29==6)||(a29==7))||(a29==8)))&&(a14==8)))&&(a22==1)))&&!(a20==1))))))&&(a0==1))){ + a11 = 0; + a29 = 7; + a19 = 4; + return 23; + } else if((((((a20==1)&&((((a19==1)&&((((a24==1)&&(((a29==6)||(a29==7))&&(input==5)))&&!(a25==1))&&(a7==1)))&&!(a11==1))&&(a22==1)))&&(a28==1))&&(a14==8))&&(a0==1))){ + a11 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if((((((a24==1)&&(((a28==1)&&(((a14==8)&&(!(a11==1)&&(!(a7==1)&&((input==2)&&((a29==7)||((a29==5)||(a29==6)))))))&&(a20==1)))&&!(a25==1)))&&(a22==1))&&!(a0==1))&&(a19==4))){ + a7 = 1; + a29 = 8; + a19 = 2; + a14 = 9; + a11 = 1; + a0 = 1; + return 24; + } else if(((a11==1)&&((a22==1)&&((((((((((((a29==5)||(a29==6))||(a29==7))&&(input==3))&&!(a25==1))&&(a14==9))&&(a19==4))&&(a20==1))&&!(a24==1))&&(a28==1))&&!(a7==1))&&!(a0==1))))){ + a19 = 2; + a11 = 0; + a29 = 8; + a24 = 1; + a25 = 1; + a14 = 8; + return 24; + } else if(((a14==9)&&(((a19==5)&&(((((a22==1)&&(!(a20==1)&&(((a11==1)&&(((a29==8)||(a29==9))&&(input==1)))&&(a0==1))))&&!(a25==1))&&(a7==1))&&(a24==1)))&&(a28==1)))){ + a19 = 2; + a14 = 10; + a29 = 9; + a20 = 1; + a25 = 1; + return 23; + } else if(((((((a24==1)&&(((((a14==10)&&(((input==5)&&((a29==8)||(a29==9)))&&(a19==4)))&&(a22==1))&&!(a7==1))&&(a11==1)))&&(a25==1))&&(a28==1))&&(a20==1))&&(a0==1))){ + a7 = 1; + a11 = 0; + a24 = 0; + a29 = 8; + a14 = 9; + a20 = 0; + a19 = 3; + return -1; + } else if(((a22==1)&&((a20==1)&&((a28==1)&&((((a29==8)&&((a19==5)&&((((a25==1)&&((a11==1)&&(input==1)))&&(a0==1))&&(a14==9))))&&(a7==1))&&(a24==1)))))){ + a29 = 9; + a7 = 0; + a11 = 0; + a0 = 0; + a19 = 2; + a25 = 0; + a24 = 0; + return 23; + } else if(((((((((a0==1)&&(((a14==9)&&((a28==1)&&(((a29==7)||(a29==8))&&(input==6))))&&!(a25==1)))&&(a7==1))&&!(a24==1))&&(a11==1))&&(a19==4))&&(a22==1))&&!(a20==1))){ + a19 = 1; + a14 = 10; + a20 = 1; + a29 = 7; + return 21; + } else if((((a19==1)&&(!(a7==1)&&(((a28==1)&&((a14==9)&&((((!(a11==1)&&(((a29==8)||(a29==9))&&(input==5)))&&(a0==1))&&(a24==1))&&(a22==1))))&&(a25==1))))&&!(a20==1))){ + a29 = 8; + a7 = 1; + a11 = 1; + a19 = 4; + return 21; + } else if(((a24==1)&&((a14==8)&&(!(a20==1)&&(((a25==1)&&((a22==1)&&((a28==1)&&((a7==1)&&((!(a11==1)&&(((a29==8)||(a29==9))&&(input==1)))&&!(a0==1))))))&&(a19==5)))))){ + a11 = 1; + a7 = 0; + a29 = 8; + a20 = 1; + a19 = 2; + return 23; + } else if((!(a24==1)&&((((a0==1)&&((a14==8)&&((a28==1)&&((a25==1)&&((((a20==1)&&((input==3)&&(a22==1)))&&!(a7==1))&&(a19==2))))))&&!(a11==1))&&(a29==5)))){ + a19 = 3; + a29 = 6; + a7 = 1; + a14 = 9; + a20 = 0; + a11 = 1; + return 24; + } else if(((((((((a29==9)&&((a24==1)&&((((input==4)&&(a22==1))&&(a14==9))&&(a19==2))))&&(a25==1))&&(a28==1))&&(a11==1))&&!(a7==1))&&!(a0==1))&&(a20==1))){ + a25 = 0; + a29 = 5; + a19 = 4; + a11 = 0; + a0 = 1; + return -1; + } else if(((a29==9)&&((((a11==1)&&((((a25==1)&&(((a22==1)&&(((input==3)&&(a24==1))&&(a28==1)))&&(a14==9)))&&!(a7==1))&&(a19==5)))&&(a20==1))&&(a0==1)))){ + a24 = 0; + a29 = 8; + return 23; + } else if(((((((a25==1)&&((a14==8)&&(((a28==1)&&(((a0==1)&&(((a29==7)||(a29==8))&&(input==1)))&&(a22==1)))&&(a19==5))))&&!(a7==1))&&!(a24==1))&&!(a20==1))&&!(a11==1))){ + a7 = 1; + a29 = 9; + a19 = 2; + a25 = 0; + return -1; + } else if((((!(a0==1)&&(!(a25==1)&&((a24==1)&&(((!(a11==1)&&((a14==9)&&((((a29==5)||(a29==6))&&(input==5))&&(a20==1))))&&(a19==3))&&(a28==1)))))&&!(a7==1))&&(a22==1))){ + a24 = 0; + a29 = 6; + a11 = 1; + a19 = 5; + a20 = 0; + a25 = 1; + return -1; + } else if(((((a19==2)&&((a25==1)&&(!(a11==1)&&((a22==1)&&(((a14==9)&&(!(a24==1)&&((a28==1)&&((input==2)&&((a29==8)||(a29==9))))))&&!(a20==1))))))&&!(a7==1))&&!(a0==1))){ + a0 = 1; + a14 = 8; + a7 = 1; + a11 = 1; + a29 = 5; + a24 = 1; + a19 = 1; + a20 = 1; + return -1; + } else if((!(a24==1)&&(((a19==4)&&(!(a7==1)&&((((a11==1)&&(((a22==1)&&((a20==1)&&((input==2)&&((a29==8)||(a29==9)))))&&(a25==1)))&&(a14==9))&&(a0==1))))&&(a28==1)))){ + a19 = 1; + a14 = 8; + a7 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if(((((((a28==1)&&(!(a0==1)&&(((a14==8)&&((a11==1)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==4))&&(a24==1))))&&(a20==1))))&&(a7==1))&&(a25==1))&&(a22==1))&&(a19==4))){ + a0 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a19==5)&&(((a29==5)&&((a28==1)&&((((a14==9)&&(((((input==2)&&!(a24==1))&&(a7==1))&&(a20==1))&&(a22==1)))&&(a25==1))&&(a11==1))))&&!(a0==1)))){ + a19 = 1; + a24 = 1; + a14 = 8; + a0 = 1; + return -1; + } else if(((a14==8)&&((a20==1)&&(((a7==1)&&(!(a24==1)&&(((a22==1)&&(((a28==1)&&((input==4)&&(((a29==6)&&(a19==5))||(((a29==9)&&(a19==4))||((a19==5)&&(a29==5))))))&&(a0==1)))&&(a11==1))))&&!(a25==1))))){ + a0 = 0; + a7 = 0; + a24 = 1; + a19 = 5; + a29 = 7; + a25 = 1; + return 24; + } else if(((a11==1)&&((a0==1)&&((a7==1)&&((((a19==5)&&(((((a28==1)&&((input==4)&&(a14==9)))&&(a25==1))&&(a29==8))&&!(a20==1)))&&(a22==1))&&!(a24==1)))))){ + a19 = 1; + a29 = 9; + a14 = 10; + a20 = 1; + return 23; + } else if((((a11==1)&&((a28==1)&&(!(a0==1)&&(((a22==1)&&(!(a20==1)&&((a14==8)&&((input==3)&&((((a19==5)&&((a25==1)&&(a29==9)))||((!(a25==1)&&(a29==5))&&(a19==1)))||(((a29==6)&&!(a25==1))&&(a19==1)))))))&&(a7==1)))))&&(a24==1))){ + a19 = 1; + a25 = 1; + a0 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if((((a19==4)&&((a11==1)&&((!(a24==1)&&(((a22==1)&&((a14==9)&&((((input==2)&&((a29==7)||(a29==8)))&&(a25==1))&&(a28==1))))&&!(a0==1)))&&(a20==1))))&&!(a7==1))){ + a19 = 1; + a20 = 0; + a24 = 1; + a29 = 6; + a14 = 8; + a11 = 0; + return -1; + } else if(((a0==1)&&((((a14==8)&&((((a20==1)&&((a28==1)&&(!(a7==1)&&(((input==3)&&((a29==6)||(a29==7)))&&(a22==1)))))&&(a19==4))&&!(a24==1)))&&!(a11==1))&&!(a25==1)))){ + a29 = 5; + a25 = 1; + a7 = 1; + a11 = 1; + a19 = 1; + a24 = 1; + return -1; + } else if(((a29==8)&&((a19==1)&&(((((a28==1)&&(!(a11==1)&&((!(a24==1)&&(((a22==1)&&(input==4))&&!(a0==1)))&&(a20==1))))&&!(a7==1))&&(a25==1))&&(a14==8))))){ + a19 = 3; + a0 = 1; + a29 = 9; + a20 = 0; + a25 = 0; + return 23; + } else if(((((a11==1)&&((((a14==8)&&(((!(a7==1)&&((((a29==8)||(a29==9))&&(input==2))&&(a22==1)))&&(a0==1))&&(a19==1)))&&!(a25==1))&&(a20==1)))&&(a28==1))&&!(a24==1))){ + a19 = 2; + a7 = 1; + a29 = 6; + a0 = 0; + return 24; + } else if((((a25==1)&&(!(a0==1)&&((a29==9)&&((a7==1)&&(((a14==8)&&((a22==1)&&(((a24==1)&&((input==2)&&!(a20==1)))&&(a28==1))))&&(a19==1))))))&&!(a11==1))){ + a29 = 8; + a11 = 1; + a14 = 9; + a0 = 1; + a25 = 0; + a20 = 1; + a7 = 0; + return 21; + } else if((!(a25==1)&&(((a22==1)&&((a14==8)&&(((a7==1)&&(!(a24==1)&&((a28==1)&&((a0==1)&&((((a29==5)&&(a19==2))||(((a19==1)&&(a29==8))||((a29==9)&&(a19==1))))&&(input==5))))))&&(a11==1))))&&(a20==1)))){ + a29 = 9; + a19 = 4; + a24 = 1; + a0 = 0; + a25 = 1; + return 23; + } else if(((a22==1)&&((a7==1)&&(!(a20==1)&&((!(a25==1)&&((((a28==1)&&(((a11==1)&&((input==4)&&(((a29==5)||(a29==6))||(a29==7))))&&(a0==1)))&&!(a24==1))&&(a19==1)))&&(a14==9)))))){ + a25 = 1; + a29 = 6; + a19 = 2; + a20 = 1; + a14 = 10; + return 23; + } else if((!(a7==1)&&((a0==1)&&(!(a20==1)&&(((a14==8)&&((a11==1)&&((a19==5)&&((((a25==1)&&((input==1)&&((a29==5)||(a29==6))))&&(a22==1))&&!(a24==1)))))&&(a28==1)))))){ + a29 = 5; + a24 = 1; + a7 = 1; + a19 = 1; + a20 = 1; + return -1; + } else if(((a28==1)&&(((((((((a19==1)&&(((input==4)&&((a29==6)||(a29==7)))&&(a22==1)))&&(a11==1))&&!(a24==1))&&(a25==1))&&(a0==1))&&(a20==1))&&(a7==1))&&(a14==9)))){ + a14 = 8; + a24 = 1; + a29 = 5; + return -1; + } else if(((a22==1)&&(!(a0==1)&&(((a14==9)&&(!(a25==1)&&((!(a7==1)&&((a20==1)&&(((((a19==2)&&(a29==6))||(((a29==9)&&(a19==1))||((a19==2)&&(a29==5))))&&(input==5))&&!(a24==1))))&&(a11==1))))&&(a28==1))))){ + a29 = 6; + a19 = 1; + a0 = 1; + return -1; + } else if((((a0==1)&&((a25==1)&&(((!(a7==1)&&((a24==1)&&(((a14==8)&&((((a29==5)||(a29==6))&&(input==2))&&(a19==5)))&&(a22==1))))&&(a28==1))&&!(a11==1))))&&(a20==1))){ + a19 = 1; + a29 = 5; + a7 = 1; + a11 = 1; + return -1; + } else if((((a20==1)&&(((a14==9)&&((!(a24==1)&&((((((input==4)&&(((a29==5)||(a29==6))||(a29==7)))&&(a11==1))&&(a19==5))&&(a25==1))&&(a28==1)))&&(a22==1)))&&(a0==1)))&&!(a7==1))){ + a11 = 0; + a25 = 0; + a20 = 0; + a19 = 2; + a14 = 8; + a24 = 1; + a29 = 9; + a0 = 0; + return 21; + } else if((((((a7==1)&&((a14==9)&&((a24==1)&&((!(a0==1)&&((((((a19==4)&&(a29==8))||((a19==4)&&(a29==9)))||((a19==5)&&(a29==5)))&&(input==3))&&(a22==1)))&&!(a11==1)))))&&(a28==1))&&(a25==1))&&(a20==1))){ + a14 = 8; + a7 = 0; + a19 = 4; + a11 = 1; + a29 = 7; + return 24; + } else if(((((a28==1)&&((!(a25==1)&&((((!(a11==1)&&(((input==2)&&((a29==6)||(a29==7)))&&(a20==1)))&&!(a24==1))&&!(a0==1))&&(a22==1)))&&(a19==3)))&&(a7==1))&&(a14==8))){ + a24 = 1; + a25 = 1; + a11 = 1; + a29 = 5; + a0 = 1; + a19 = 1; + return -1; + } else if(((a14==9)&&(((((a11==1)&&((a24==1)&&(!(a0==1)&&(((a22==1)&&((a28==1)&&((input==5)&&((a29==5)||(a29==6)))))&&(a19==1)))))&&!(a20==1))&&(a7==1))&&(a25==1)))){ + a0 = 1; + a19 = 5; + a25 = 0; + a29 = 9; + a11 = 0; + return 23; + } else if((((a29==8)&&(!(a11==1)&&(((((((a14==8)&&(!(a0==1)&&((a28==1)&&(input==6))))&&!(a20==1))&&(a25==1))&&(a22==1))&&!(a7==1))&&(a19==5))))&&(a24==1))){ + a25 = 0; + a29 = 6; + a14 = 9; + a11 = 1; + a19 = 4; + a24 = 0; + return 21; + } else if((!(a24==1)&&(((!(a25==1)&&(((a20==1)&&((a28==1)&&((a14==9)&&(!(a11==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==2))&&(a22==1))))))&&(a7==1)))&&(a0==1))&&(a19==1)))){ + a14 = 8; + a25 = 1; + a29 = 7; + a7 = 0; + a19 = 2; + a0 = 0; + return -1; + } else if(((a24==1)&&((a7==1)&&((a14==8)&&((a0==1)&&(((((a20==1)&&((a28==1)&&((((a29==6)||(a29==7))&&(input==2))&&!(a25==1))))&&!(a11==1))&&(a22==1))&&(a19==1))))))){ + a29 = 5; + a25 = 1; + a11 = 1; + return -1; + } else if(((((a22==1)&&((a19==4)&&(((!(a20==1)&&(((((input==4)&&((a29==5)||(a29==6)))&&!(a25==1))&&(a28==1))&&(a14==9)))&&!(a0==1))&&(a24==1))))&&(a11==1))&&!(a7==1))){ + a24 = 0; + a14 = 8; + a11 = 0; + a20 = 1; + a29 = 7; + a19 = 1; + return -1; + } else if((((a29==9)&&((a7==1)&&(((a22==1)&&((!(a0==1)&&(((((input==1)&&(a11==1))&&(a28==1))&&(a19==2))&&(a20==1)))&&(a14==8)))&&!(a25==1))))&&!(a24==1))){ + a29 = 8; + a19 = 1; + a24 = 1; + a20 = 0; + return 24; + } else if((((!(a24==1)&&(((a22==1)&&((!(a25==1)&&((a7==1)&&((((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))||((a19==3)&&(a29==6)))&&(input==6))&&(a14==9))))&&!(a0==1)))&&(a28==1)))&&!(a11==1))&&!(a20==1))){ + a29 = 6; + a14 = 8; + a19 = 5; + a0 = 1; + a7 = 0; + return -1; + } else if(((a28==1)&&((a14==9)&&((a24==1)&&((a0==1)&&((a22==1)&&((a11==1)&&((!(a20==1)&&((input==2)&&((((a25==1)&&(a29==9))&&(a19==5))||(((a29==5)&&!(a25==1))&&(a19==1)))))&&!(a7==1))))))))){ + a19 = 2; + a29 = 9; + a7 = 1; + a11 = 0; + a14 = 8; + a0 = 0; + a25 = 1; + a24 = 0; + return 24; + } else if(((a28==1)&&((a14==8)&&((((((!(a11==1)&&(!(a24==1)&&(!(a7==1)&&((input==3)&&((a29==7)||(a29==8))))))&&(a22==1))&&(a25==1))&&(a20==1))&&(a0==1))&&(a19==5))))){ + a20 = 0; + a14 = 9; + a29 = 6; + a11 = 1; + a19 = 1; + return 23; + } else if(((a20==1)&&(((((((a14==8)&&((a28==1)&&((a19==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==6))&&(a25==1)))))&&(a11==1))&&(a22==1))&&!(a7==1))&&(a24==1))&&!(a0==1)))){ + a19 = 5; + a29 = 5; + a7 = 1; + a25 = 0; + return -1; + } else if((((a14==9)&&((((!(a11==1)&&((a22==1)&&((((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))&&(input==3))&&(a0==1))&&!(a24==1))))&&(a28==1))&&(a20==1))&&!(a25==1)))&&!(a7==1))){ + a20 = 0; + a24 = 1; + a0 = 0; + a29 = 5; + a14 = 8; + a19 = 1; + return 24; + } else if((((((a14==9)&&((!(a0==1)&&(!(a24==1)&&((a22==1)&&(((a20==1)&&(((a29==6)||(a29==7))&&(input==2)))&&(a25==1)))))&&!(a7==1)))&&(a11==1))&&(a28==1))&&(a19==2))){ + a19 = 1; + a14 = 8; + a29 = 5; + a0 = 1; + a7 = 1; + a24 = 1; + return -1; + } else if((((a24==1)&&(((a20==1)&&((a14==9)&&(((((a28==1)&&(((input==5)&&((a29==5)||(a29==6)))&&(a11==1)))&&!(a25==1))&&(a19==2))&&(a22==1))))&&!(a0==1)))&&(a7==1))){ + a11 = 0; + a19 = 4; + a14 = 8; + a29 = 6; + a7 = 0; + a24 = 0; + a25 = 1; + return 21; + } else if((((!(a25==1)&&((!(a24==1)&&((((a7==1)&&(((!(a11==1)&&(input==4))&&(a29==6))&&(a19==4)))&&(a20==1))&&(a28==1)))&&(a14==9)))&&(a0==1))&&(a22==1))){ + a29 = 5; + a11 = 1; + a24 = 1; + a19 = 1; + a25 = 1; + a14 = 8; + return -1; + } else if((((a29==5)&&((a25==1)&&(((a19==2)&&(!(a7==1)&&(((a22==1)&&(((a0==1)&&((a14==9)&&(input==4)))&&(a28==1)))&&!(a24==1))))&&(a11==1))))&&(a20==1))){ + a19 = 3; + a25 = 0; + a7 = 1; + a24 = 1; + return 24; + } else if(((a14==8)&&(!(a0==1)&&(!(a11==1)&&((((a28==1)&&(!(a24==1)&&(!(a20==1)&&((a29==9)&&(!(a25==1)&&((a22==1)&&(input==4)))))))&&(a19==5))&&(a7==1)))))){ + a14 = 9; + a29 = 7; + a20 = 1; + a19 = 2; + a0 = 1; + a25 = 1; + return 21; + } else if((((a7==1)&&(!(a11==1)&&((a14==9)&&((a19==5)&&((a22==1)&&((!(a24==1)&&((!(a0==1)&&(((a29==5)||(a29==6))&&(input==5)))&&(a25==1)))&&(a28==1)))))))&&!(a20==1))){ + a11 = 1; + a24 = 1; + a25 = 0; + a29 = 5; + a19 = 4; + a14 = 8; + return -1; + } else if(((a20==1)&&(((a14==9)&&(!(a0==1)&&(((((a28==1)&&(((((a29==7)||(a29==8))&&(input==5))&&(a24==1))&&(a19==1)))&&!(a11==1))&&(a22==1))&&!(a25==1))))&&(a7==1)))){ + a14 = 8; + a25 = 1; + a11 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if(((a22==1)&&(!(a0==1)&&(!(a25==1)&&((a19==2)&&((((a29==7)&&(!(a7==1)&&(!(a20==1)&&(!(a11==1)&&((input==1)&&!(a24==1))))))&&(a14==9))&&(a28==1))))))){ + a11 = 1; + a19 = 4; + return -1; + } else if(((((a22==1)&&(!(a11==1)&&((((((a29==5)&&((a25==1)&&(!(a24==1)&&((a20==1)&&(a7==1)))))&&(a19==1))||((((a29==8)&&(((a24==1)&&(!(a7==1)&&!(a20==1)))&&!(a25==1)))&&(a19==5))||(((a29==9)&&(((a24==1)&&(!(a20==1)&&!(a7==1)))&&!(a25==1)))&&(a19==5))))&&(input==6))&&(a0==1))))&&(a14==9))&&(a28==1))){ + a19 = 1; + a7 = 1; + a20 = 1; + a11 = 1; + a25 = 1; + a29 = 5; + a14 = 8; + a24 = 1; + return -1; + } else if((((!(a0==1)&&((((a19==1)&&((a14==8)&&((!(a7==1)&&(((input==2)&&((a29==6)||(a29==7)))&&!(a24==1)))&&(a28==1))))&&(a22==1))&&!(a11==1)))&&(a25==1))&&!(a20==1))){ + a7 = 1; + a24 = 1; + a14 = 9; + a19 = 2; + a0 = 1; + a29 = 9; + a20 = 1; + return 23; + } else if(((!(a11==1)&&((!(a20==1)&&(((((input==3)&&(((((a7==1)&&!(a25==1))&&(a29==9))&&(a19==5))||(((!(a7==1)&&(a25==1))&&(a29==5))&&(a19==1))))&&(a14==8))&&!(a0==1))&&(a22==1)))&&(a24==1)))&&(a28==1))){ + a0 = 1; + a29 = 5; + a25 = 1; + a11 = 1; + a20 = 1; + a7 = 1; + a19 = 1; + return -1; + } else if(((!(a20==1)&&(!(a0==1)&&((a22==1)&&((((a11==1)&&((a24==1)&&(((a19==2)&&((((a29==5)||(a29==6))||(a29==7))&&(input==1)))&&(a14==9))))&&!(a7==1))&&(a28==1)))))&&(a25==1))){ + a11 = 0; + a0 = 1; + a19 = 1; + a20 = 1; + a25 = 0; + a7 = 1; + a29 = 5; + return 21; + } else if(((!(a7==1)&&((a22==1)&&((a28==1)&&(!(a20==1)&&((a29==9)&&(!(a24==1)&&(!(a11==1)&&((((a14==9)&&(input==6))&&(a25==1))&&(a0==1)))))))))&&(a19==5))){ + a7 = 1; + a11 = 1; + return 23; + } else if((((a29==8)&&((((a14==8)&&(!(a0==1)&&(((a22==1)&&(!(a7==1)&&(((input==1)&&(a19==3))&&(a25==1))))&&(a28==1))))&&!(a11==1))&&!(a20==1)))&&!(a24==1))){ + a24 = 1; + a11 = 1; + a0 = 1; + a20 = 1; + a7 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((((a19==4)&&((a25==1)&&((a11==1)&&((a14==8)&&(!(a0==1)&&((a28==1)&&((((a24==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==4)))&&(a22==1))&&(a20==1))))))))&&!(a7==1))){ + a29 = 8; + a19 = 5; + a25 = 0; + a0 = 1; + return -1; + } else if(((((!(a24==1)&&(((a14==9)&&(!(a20==1)&&(!(a7==1)&&((!(a11==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==5)))&&(a28==1)))))&&!(a0==1)))&&(a19==3))&&!(a25==1))&&(a22==1))){ + a25 = 1; + a29 = 6; + a24 = 1; + a14 = 8; + a20 = 1; + return -1; + } else if(((a14==10)&&((a28==1)&&((a25==1)&&((a19==1)&&((a20==1)&&((a22==1)&&((a24==1)&&((a11==1)&&(((a0==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==5)))&&!(a7==1))))))))))){ + a29 = 5; + a7 = 1; + a14 = 8; + return -1; + } else if((((((a24==1)&&(((a28==1)&&((((a14==8)&&((((a29==5)||(a29==6))&&(input==5))&&!(a7==1)))&&!(a0==1))&&(a19==5)))&&(a11==1)))&&(a20==1))&&!(a25==1))&&(a22==1))){ + a7 = 1; + a25 = 1; + a19 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if(((a14==9)&&((!(a25==1)&&((a19==2)&&((a20==1)&&((a11==1)&&((((a7==1)&&(((input==6)&&(a24==1))&&(a29==9)))&&(a0==1))&&(a28==1))))))&&(a22==1)))){ + a14 = 8; + a25 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((((a20==1)&&((!(a11==1)&&(!(a0==1)&&((((a7==1)&&((input==2)&&(((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))))&&!(a24==1))&&(a22==1))))&&(a25==1)))&&(a14==9))&&(a28==1))){ + a29 = 5; + a11 = 1; + a19 = 1; + a0 = 1; + a14 = 8; + a24 = 1; + return -1; + } else if(((a14==8)&&(!(a0==1)&&(((((a28==1)&&(!(a25==1)&&(((a11==1)&&((a24==1)&&(((a29==5)||(a29==6))&&(input==4))))&&!(a7==1))))&&!(a20==1))&&(a19==2))&&(a22==1))))){ + a19 = 1; + a29 = 5; + return -1; + } else if((((a19==2)&&((a22==1)&&(!(a25==1)&&(((a28==1)&&(!(a20==1)&&(((((a0==1)&&(input==1))&&!(a11==1))&&!(a7==1))&&(a29==8))))&&(a14==8)))))&&(a24==1))){ + a11 = 1; + a20 = 1; + a7 = 1; + a29 = 7; + a19 = 5; + a0 = 0; + return 21; + } else if((!(a25==1)&&((a11==1)&&(((!(a24==1)&&((a22==1)&&((a19==4)&&(((a7==1)&&(((input==3)&&(((a29==5)||(a29==6))||(a29==7)))&&(a14==8)))&&!(a0==1)))))&&(a28==1))&&(a20==1))))){ + a19 = 1; + a29 = 5; + a0 = 1; + a24 = 1; + a25 = 1; + return -1; + } else if((!(a24==1)&&((a22==1)&&(((a20==1)&&((((a28==1)&&((a14==8)&&(((a0==1)&&((input==1)&&((a29==8)||(a29==9))))&&!(a25==1))))&&!(a7==1))&&(a19==4)))&&!(a11==1))))){ + a29 = 7; + a7 = 1; + a20 = 0; + a11 = 1; + a19 = 1; + a0 = 0; + a24 = 1; + return 21; + } else if(((a14==8)&&((a29==7)&&(((a20==1)&&(((((a7==1)&&((!(a11==1)&&((input==1)&&!(a0==1)))&&(a25==1)))&&(a24==1))&&(a19==2))&&(a28==1)))&&(a22==1))))){ + a29 = 8; + a19 = 4; + a11 = 1; + return 23; + } else if(((((a7==1)&&(((((a29==8)&&(!(a20==1)&&((((input==4)&&!(a11==1))&&!(a24==1))&&(a19==3))))&&(a0==1))&&(a28==1))&&!(a25==1)))&&(a14==8))&&(a22==1))){ + a25 = 1; + a14 = 9; + a29 = 5; + a19 = 4; + a24 = 1; + return 23; + } else if(((a25==1)&&((((((a22==1)&&(!(a11==1)&&(((a24==1)&&((a19==2)&&((input==2)&&((a29==5)||(a29==6)))))&&(a28==1))))&&(a14==9))&&!(a0==1))&&(a7==1))&&(a20==1)))){ + a19 = 3; + a29 = 5; + a0 = 1; + return 21; + } else if(((((a25==1)&&(((a0==1)&&(((a11==1)&&((((input==1)&&(((a19==3)&&(a29==5))||(((a29==8)&&(a19==2))||((a19==2)&&(a29==9)))))&&(a14==9))&&!(a7==1)))&&(a28==1)))&&!(a24==1)))&&!(a20==1))&&(a22==1))){ + a25 = 0; + a19 = 3; + a29 = 7; + a7 = 1; + a11 = 0; + return 24; + } else if((!(a0==1)&&(((a28==1)&&(((((a7==1)&&(((input==3)&&((((a25==1)&&(a29==9))&&(a19==5))||((a19==1)&&((a29==5)&&!(a25==1)))))&&(a24==1)))&&(a14==8))&&(a11==1))&&(a20==1)))&&(a22==1)))){ + a0 = 1; + a11 = 0; + a7 = 0; + a20 = 0; + a29 = 6; + a25 = 0; + a19 = 5; + a14 = 9; + return 21; + } else if((((a22==1)&&((a25==1)&&(!(a11==1)&&((a14==8)&&((((a7==1)&&(!(a20==1)&&((a28==1)&&(((a29==7)||(a29==8))&&(input==5)))))&&(a0==1))&&(a19==2))))))&&(a24==1))){ + a11 = 1; + a29 = 5; + a20 = 1; + a19 = 1; + return -1; + } else if((((((((((!(a7==1)&&(!(a20==1)&&((input==3)&&((a29==6)||(a29==7)))))&&(a22==1))&&!(a11==1))&&(a25==1))&&(a19==5))&&(a28==1))&&(a24==1))&&!(a0==1))&&(a14==8))){ + a14 = 9; + a25 = 0; + a29 = 5; + a11 = 1; + a24 = 0; + a19 = 3; + return 23; + } else if((((((a20==1)&&(((!(a7==1)&&((a0==1)&&((input==1)&&(((!(a25==1)&&(a29==6))&&(a19==1))||(((a19==5)&&((a25==1)&&(a29==9)))||(((a29==5)&&!(a25==1))&&(a19==1)))))))&&(a24==1))&&(a22==1)))&&(a28==1))&&!(a11==1))&&(a14==8))){ + a29 = 5; + a19 = 4; + a7 = 1; + a0 = 0; + a25 = 0; + a11 = 1; + return 21; + } else if(((a14==8)&&(((a28==1)&&((((a20==1)&&((a24==1)&&((((!(a7==1)&&(input==3))&&(a19==2))&&(a25==1))&&!(a0==1))))&&!(a11==1))&&(a22==1)))&&(a29==8)))){ + a7 = 1; + a24 = 0; + a11 = 1; + a25 = 0; + return -1; + } else if((((a11==1)&&((a20==1)&&((!(a0==1)&&((((!(a25==1)&&(((a19==1)&&(input==5))&&(a28==1)))&&(a29==7))&&!(a7==1))&&(a14==8)))&&(a24==1))))&&(a22==1))){ + a7 = 1; + a29 = 5; + a25 = 1; + a0 = 1; + return -1; + } else if(((a14==8)&&((a19==4)&&(((a22==1)&&(((a24==1)&&(((a28==1)&&(!(a7==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==2))&&!(a0==1))))&&(a20==1)))&&(a11==1)))&&(a25==1))))){ + a25 = 0; + a29 = 5; + a7 = 1; + return -1; + } else if((!(a24==1)&&(!(a20==1)&&((!(a25==1)&&((a22==1)&&((a29==5)&&((!(a0==1)&&((a7==1)&&(((input==6)&&(a28==1))&&(a19==4))))&&(a11==1)))))&&(a14==9))))){ + a24 = 1; + a7 = 0; + a29 = 7; + a20 = 1; + return -1; + } else if((!(a20==1)&&(((((((((a7==1)&&((a11==1)&&((input==6)&&((a29==7)||((a29==5)||(a29==6))))))&&(a0==1))&&(a25==1))&&(a19==3))&&(a28==1))&&(a14==8))&&(a24==1))&&(a22==1)))){ + a19 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if(((a14==8)&&((!(a25==1)&&((a24==1)&&((a7==1)&&(!(a20==1)&&(((a28==1)&&((((((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))||((a29==6)&&(a19==4)))&&(input==5))&&(a0==1)))&&!(a11==1))))))&&(a22==1)))){ + a29 = 5; + a25 = 1; + a20 = 1; + a11 = 1; + a19 = 1; + return -1; + } else if(((a14==8)&&((a24==1)&&(!(a20==1)&&(!(a11==1)&&(((!(a25==1)&&((((((a29==6)||(a29==7))&&(input==5))&&(a22==1))&&(a7==1))&&!(a0==1)))&&(a28==1))&&(a19==3))))))){ + a25 = 1; + a11 = 1; + a0 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((((((!(a7==1)&&((((a22==1)&&((((a14==8)&&(input==2))&&!(a0==1))&&(a29==5)))&&(a25==1))&&(a28==1)))&&!(a11==1))&&!(a24==1))&&(a19==3))&&!(a20==1))){ + a29 = 6; + a7 = 1; + a25 = 0; + a20 = 1; + return -1; + } else if(((!(a25==1)&&(((a14==9)&&(((a0==1)&&(!(a24==1)&&((((input==4)&&((((a29==8)&&(a19==3))||((a29==9)&&(a19==3)))||((a29==5)&&(a19==4))))&&(a7==1))&&!(a20==1))))&&(a22==1)))&&(a28==1)))&&!(a11==1))){ + a29 = 5; + a20 = 1; + a25 = 1; + a7 = 0; + a19 = 4; + return 24; + } else if((!(a0==1)&&((((a29==5)&&(((!(a24==1)&&((((a22==1)&&((a28==1)&&(input==5)))&&(a14==8))&&!(a25==1)))&&!(a7==1))&&(a19==3)))&&!(a20==1))&&!(a11==1)))){ + a7 = 1; + a19 = 1; + a20 = 1; + a14 = 9; + return 23; + } else if((((a14==9)&&(!(a11==1)&&((((a25==1)&&(((a20==1)&&(((((a29==5)||(a29==6))&&(input==6))&&!(a24==1))&&!(a7==1)))&&(a28==1)))&&(a0==1))&&(a22==1))))&&(a19==2))){ + a25 = 0; + a0 = 0; + a20 = 0; + a19 = 5; + a29 = 9; + a14 = 8; + return 24; + } else if(((a0==1)&&((a24==1)&&((a29==5)&&((((((a7==1)&&((a25==1)&&(((a19==4)&&(input==4))&&(a14==8))))&&(a28==1))&&(a22==1))&&!(a20==1))&&!(a11==1)))))){ + a7 = 0; + a0 = 0; + a24 = 0; + a25 = 0; + a19 = 5; + return 21; + } else if(((a14==8)&&((a11==1)&&((a22==1)&&((a28==1)&&((!(a25==1)&&((((a24==1)&&(((a7==1)&&(input==4))&&!(a0==1)))&&(a19==4))&&(a29==5)))&&(a20==1))))))){ + a11 = 0; + a24 = 0; + a19 = 3; + a0 = 1; + a29 = 6; + a20 = 0; + return -1; + } else if(((((a22==1)&&((((a24==1)&&((a20==1)&&((a19==5)&&((((input==3)&&((a29==7)||((a29==5)||(a29==6))))&&(a14==9))&&!(a7==1)))))&&(a28==1))&&!(a25==1)))&&(a0==1))&&!(a11==1))){ + a24 = 0; + a0 = 0; + a14 = 8; + a29 = 8; + a7 = 1; + a19 = 1; + return 23; + } else if(((a29==5)&&((((a25==1)&&((a14==10)&&((a7==1)&&(((a20==1)&&((((input==4)&&(a19==2))&&(a0==1))&&!(a24==1)))&&(a22==1)))))&&(a11==1))&&(a28==1)))){ + a19 = 5; + a24 = 1; + a7 = 0; + a14 = 9; + a29 = 8; + a11 = 0; + a25 = 0; + return -1; + } else if(((a22==1)&&(!(a24==1)&&((a28==1)&&(!(a11==1)&&(((a19==4)&&(!(a7==1)&&(((((input==3)&&((a29==5)||(a29==6)))&&(a14==8))&&!(a20==1))&&(a25==1))))&&!(a0==1))))))){ + a11 = 1; + a20 = 1; + a29 = 7; + return 21; + } else if((!(a7==1)&&((a0==1)&&(((a19==3)&&((((((a22==1)&&(((input==6)&&(((a29==6)||(a29==7))||(a29==8)))&&(a24==1)))&&(a28==1))&&(a11==1))&&(a20==1))&&(a14==9)))&&!(a25==1))))){ + a20 = 0; + a19 = 5; + a29 = 8; + a0 = 0; + a14 = 8; + return 21; + } else if(((a11==1)&&((a22==1)&&(((a14==9)&&((((!(a20==1)&&(((input==4)&&((((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))||((a19==3)&&(a29==5))))&&!(a0==1)))&&(a28==1))&&(a25==1))&&!(a7==1)))&&(a24==1))))){ + a29 = 6; + a14 = 8; + a19 = 2; + a20 = 1; + a7 = 1; + a24 = 0; + return -1; + } else if(((((a22==1)&&((!(a7==1)&&((((!(a25==1)&&(((a20==1)&&(input==5))&&!(a11==1)))&&(a29==5))&&(a19==3))&&!(a24==1)))&&(a28==1)))&&(a14==9))&&!(a0==1))){ + a24 = 1; + a14 = 8; + a11 = 1; + a20 = 0; + a19 = 2; + a29 = 6; + return 24; + } else if((((!(a20==1)&&((((!(a11==1)&&((((a22==1)&&(((a29==5)||(a29==6))&&(input==3)))&&(a24==1))&&(a0==1)))&&(a28==1))&&(a25==1))&&(a7==1)))&&(a19==5))&&(a14==9))){ + a7 = 0; + a29 = 6; + a20 = 1; + a14 = 8; + a0 = 0; + a25 = 0; + return -1; + } else if((((a28==1)&&(((((((a19==4)&&((!(a7==1)&&((a29==7)&&(input==5)))&&(a14==8)))&&(a25==1))&&(a11==1))&&(a22==1))&&(a24==1))&&(a0==1)))&&(a20==1))){ + a29 = 5; + a19 = 1; + a7 = 1; + return -1; + } else if((!(a0==1)&&(!(a25==1)&&((((a7==1)&&((((a11==1)&&(((a22==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==1)))&&(a14==9)))&&(a20==1))&&(a28==1)))&&!(a24==1))&&(a19==3))))){ + a14 = 8; + a24 = 1; + a0 = 1; + a19 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if(((((a0==1)&&((a19==4)&&((a28==1)&&(((((!(a24==1)&&((input==3)&&(a20==1)))&&!(a7==1))&&!(a11==1))&&(a29==9))&&(a14==8)))))&&(a25==1))&&(a22==1))){ + a19 = 5; + a24 = 1; + a29 = 8; + a0 = 0; + a20 = 0; + a11 = 1; + return 24; + } else if((((a29==5)&&((a22==1)&&((a11==1)&&((a14==9)&&(((((((input==2)&&!(a24==1))&&(a19==1))&&(a0==1))&&!(a7==1))&&(a28==1))&&!(a25==1))))))&&!(a20==1))){ + a0 = 0; + a19 = 4; + a20 = 1; + a25 = 1; + a29 = 7; + a14 = 8; + a7 = 1; + a24 = 1; + a11 = 0; + return -1; + } else if(((!(a20==1)&&((a28==1)&&(((a22==1)&&(((a0==1)&&(((a24==1)&&((input==5)&&(((a29==6)&&(a19==2))||(((a19==1)&&(a29==9))||((a19==2)&&(a29==5))))))&&(a14==8)))&&(a7==1)))&&!(a11==1))))&&(a25==1))){ + a7 = 0; + a25 = 0; + a29 = 6; + a19 = 3; + a24 = 0; + return 21; + } else if(((((!(a25==1)&&((((((((input==3)&&!(a20==1))&&(a28==1))&&!(a0==1))&&!(a24==1))&&!(a11==1))&&!(a7==1))&&(a19==3)))&&(a22==1))&&(a14==8))&&(a29==5))){ + a29 = 9; + a25 = 1; + a19 = 5; + a14 = 9; + a20 = 1; + a7 = 1; + return 21; + } else if(((((((a28==1)&&((a11==1)&&(((a19==1)&&((a22==1)&&((a0==1)&&((a20==1)&&(input==4)))))&&(a29==8))))&&!(a7==1))&&(a24==1))&&(a14==10))&&!(a25==1))){ + a14 = 8; + a29 = 5; + a7 = 1; + a25 = 1; + return -1; + } else if(((a7==1)&&((a0==1)&&((a22==1)&&((a20==1)&&((a19==2)&&(!(a25==1)&&((a24==1)&&(((a14==9)&&((a28==1)&&(((a29==7)||(a29==8))&&(input==6))))&&(a11==1)))))))))){ + a29 = 5; + a14 = 8; + a19 = 1; + a25 = 1; + return -1; + } else if(((a14==9)&&(((a20==1)&&((((a28==1)&&((((a19==3)&&(((input==1)&&(a11==1))&&!(a7==1)))&&(a22==1))&&!(a0==1)))&&!(a25==1))&&(a24==1)))&&(a29==9)))){ + a14 = 8; + a29 = 5; + a20 = 0; + a25 = 1; + return -1; + } else if((((a0==1)&&((a14==9)&&((!(a24==1)&&(!(a25==1)&&((a20==1)&&(((a22==1)&&((a19==3)&&((input==3)&&((a29==8)||((a29==6)||(a29==7))))))&&!(a7==1)))))&&(a28==1))))&&(a11==1))){ + a7 = 1; + a24 = 1; + a29 = 5; + a25 = 1; + a14 = 8; + a19 = 1; + return -1; + } else if(((((a28==1)&&(!(a11==1)&&((((a20==1)&&((a24==1)&&(((((a29==8)||(a29==9))&&(input==3))&&(a19==5))&&(a25==1))))&&(a22==1))&&(a14==8))))&&!(a7==1))&&!(a0==1))){ + a25 = 0; + a24 = 0; + a11 = 1; + a19 = 4; + a29 = 8; + a7 = 1; + return 24; + } else if((!(a11==1)&&(((a25==1)&&(((((((((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))||((a19==3)&&(a29==6)))&&(input==1))&&(a24==1))&&(a20==1))&&!(a0==1))&&(a22==1))&&!(a7==1))&&(a14==8)))&&(a28==1)))){ + a11 = 1; + a29 = 5; + a19 = 2; + a0 = 1; + a24 = 0; + a14 = 9; + a25 = 0; + return 21; + } else if(((((a25==1)&&(!(a7==1)&&((a14==10)&&((a28==1)&&(!(a20==1)&&((a22==1)&&((a11==1)&&((((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))&&(input==1)))))))))&&(a24==1))&&(a0==1))){ + a29 = 8; + a19 = 1; + a11 = 0; + a7 = 1; + a14 = 9; + a25 = 0; + return 21; + } else if(((a7==1)&&(!(a24==1)&&((a22==1)&&((a28==1)&&((((a14==9)&&((((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))&&(input==6))&&(a20==1))&&(a0==1)))&&(a25==1))&&(a11==1))))))){ + a25 = 0; + a20 = 0; + a24 = 1; + a19 = 4; + a29 = 7; + return -1; + } else if(((a25==1)&&((((a22==1)&&(((!(a20==1)&&(((((a24==1)&&(input==3))&&(a11==1))&&(a19==2))&&(a14==9)))&&(a29==5))&&(a0==1)))&&(a28==1))&&!(a7==1)))){ + a29 = 6; + a14 = 10; + a20 = 1; + a19 = 4; + a7 = 1; + return 23; + } else if(((((a14==9)&&(((!(a20==1)&&(((a28==1)&&((a22==1)&&((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))&&(input==2))))&&(a7==1)))&&!(a0==1))&&!(a25==1)))&&!(a11==1))&&(a24==1))){ + a25 = 1; + a19 = 3; + a11 = 1; + a29 = 7; + a20 = 1; + return -1; + } else if(((a28==1)&&(((a11==1)&&((a24==1)&&(!(a0==1)&&(((a19==4)&&(((((input==4)&&!(a7==1))&&(a22==1))&&(a20==1))&&(a14==8)))&&(a29==9)))))&&(a25==1)))){ + a24 = 0; + a11 = 0; + a0 = 1; + a20 = 0; + a29 = 6; + return -1; + } else if((((a7==1)&&((a28==1)&&(((((((a22==1)&&((((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))&&(input==2)))&&(a20==1))&&(a0==1))&&(a14==9))&&(a25==1))&&!(a24==1))))&&(a11==1))){ + a14 = 8; + a19 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if(((a14==8)&&((!(a20==1)&&(!(a25==1)&&((((a29==9)&&((a11==1)&&((((input==2)&&(a28==1))&&(a24==1))&&(a22==1))))&&(a19==5))&&(a7==1))))&&(a0==1)))){ + a20 = 1; + a19 = 2; + a11 = 0; + a7 = 0; + a25 = 1; + return 23; + } else if(((!(a7==1)&&((a0==1)&&(((((a11==1)&&((a29==7)&&((a19==1)&&((a24==1)&&((a22==1)&&(input==3))))))&&(a20==1))&&(a28==1))&&(a14==10))))&&!(a25==1))){ + a0 = 0; + a14 = 8; + a19 = 5; + a25 = 1; + return 21; + } else if(((!(a24==1)&&((((a7==1)&&((((!(a0==1)&&((a19==1)&&((input==2)&&((a29==8)||((a29==6)||(a29==7))))))&&(a14==8))&&(a22==1))&&(a20==1)))&&!(a11==1))&&(a28==1)))&&!(a25==1))){ + a20 = 0; + a19 = 3; + a24 = 1; + a11 = 1; + a29 = 7; + a14 = 9; + a0 = 1; + return 23; + } else if((((a22==1)&&((((a14==9)&&((((a28==1)&&((((a29==5)&&(input==2))&&!(a11==1))&&(a24==1)))&&(a0==1))&&!(a20==1)))&&!(a7==1))&&!(a25==1)))&&(a19==2))){ + a0 = 0; + a14 = 8; + a19 = 4; + a29 = 7; + a11 = 1; + return 24; + } else if(((a0==1)&&(((((((a20==1)&&((((input==1)&&(((a29==9)&&(a19==1))||((a29==5)&&(a19==2))))&&(a28==1))&&!(a24==1)))&&!(a25==1))&&(a14==9))&&(a7==1))&&(a22==1))&&(a11==1)))){ + a24 = 1; + a20 = 0; + a14 = 8; + a0 = 0; + a25 = 1; + a29 = 9; + a19 = 4; + return 21; + } else if(((((a19==2)&&(((a28==1)&&((a7==1)&&((!(a20==1)&&(((a0==1)&&((input==1)&&((a29==7)||(a29==8))))&&(a14==8)))&&(a11==1))))&&(a22==1)))&&!(a24==1))&&(a25==1))){ + a29 = 6; + a0 = 0; + return 24; + } else if(((a19==2)&&((a0==1)&&(((((a22==1)&&((a24==1)&&(((a28==1)&&((a11==1)&&(((a29==8)||(a29==9))&&(input==2))))&&(a14==10))))&&!(a25==1))&&(a20==1))&&(a7==1))))){ + a7 = 0; + a14 = 8; + a0 = 0; + a19 = 5; + a29 = 8; + return 21; + } else if(((!(a11==1)&&(!(a7==1)&&((a0==1)&&((((a28==1)&&((a22==1)&&(((a19==1)&&(((a29==5)||(a29==6))&&(input==2)))&&(a20==1))))&&(a24==1))&&(a25==1)))))&&(a14==9))){ + a29 = 8; + a20 = 0; + a11 = 1; + a25 = 0; + a19 = 5; + return 23; + } else if(((((a7==1)&&((a22==1)&&((a11==1)&&((a20==1)&&((!(a0==1)&&((a28==1)&&((a25==1)&&((input==1)&&((a29==7)||(a29==8))))))&&(a19==1))))))&&!(a24==1))&&(a14==9))){ + a0 = 1; + a11 = 0; + a29 = 7; + a14 = 8; + a20 = 0; + a19 = 2; + a7 = 0; + return 23; + } return calculate_output25(input); + } + + int calculate_output25(int input) { + if(((a14==9)&&(((a28==1)&&((((a22==1)&&((((a24==1)&&(((input==3)&&(a11==1))&&(a29==7)))&&(a19==5))&&!(a20==1)))&&(a7==1))&&!(a0==1)))&&!(a25==1)))){ + a14 = 8; + a29 = 6; + return 23; + } else if((((!(a7==1)&&(!(a24==1)&&((((a11==1)&&((a22==1)&&((((input==6)&&((a29==5)||(a29==6)))&&!(a20==1))&&(a0==1))))&&(a25==1))&&(a14==8))))&&(a19==2))&&(a28==1))){ + a24 = 1; + a20 = 1; + a29 = 5; + a19 = 1; + a7 = 1; + return -1; + } else if(((!(a24==1)&&(((!(a11==1)&&((a14==8)&&(!(a20==1)&&((a19==2)&&(!(a7==1)&&((((a29==6)||(a29==7))&&(input==2))&&(a22==1)))))))&&(a28==1))&&!(a0==1)))&&!(a25==1))){ + a24 = 1; + a0 = 1; + a11 = 1; + a29 = 5; + a20 = 1; + a19 = 1; + a7 = 1; + a25 = 1; + return -1; + } else if(((!(a0==1)&&((!(a11==1)&&((a22==1)&&(((a28==1)&&(((((a29==9)&&(!(a25==1)&&(a7==1)))&&(a19==5))||((a19==1)&&(((a25==1)&&!(a7==1))&&(a29==5))))&&(input==4)))&&!(a24==1))))&&(a14==9)))&&(a20==1))){ + a25 = 1; + a24 = 1; + a14 = 8; + a19 = 1; + a20 = 0; + a29 = 5; + a7 = 0; + a11 = 1; + return 24; + } else if(((((!(a24==1)&&((((a14==8)&&(((a25==1)&&((input==6)&&((((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))||((a19==2)&&(a29==6)))))&&!(a11==1)))&&(a28==1))&&!(a20==1)))&&(a7==1))&&(a22==1))&&!(a0==1))){ + a14 = 9; + a29 = 8; + a19 = 2; + a25 = 0; + a24 = 1; + return 21; + } else if((!(a20==1)&&((a28==1)&&((((a22==1)&&((a25==1)&&((((a19==1)&&(!(a0==1)&&((a7==1)&&(input==5))))&&(a14==8))&&!(a11==1))))&&(a24==1))&&(a29==9))))){ + a11 = 1; + a29 = 5; + a20 = 1; + a0 = 1; + return -1; + } else if((((!(a25==1)&&((a22==1)&&((a20==1)&&((a11==1)&&((a28==1)&&((a0==1)&&(((input==5)&&(((a29==9)&&(a19==2))||((a29==5)&&(a19==3))))&&!(a7==1))))))))&&(a14==9))&&(a24==1))){ + a25 = 1; + a29 = 7; + a0 = 0; + a19 = 1; + a14 = 8; + return 23; + } else if((((a25==1)&&((!(a24==1)&&(!(a20==1)&&(((((((input==2)&&((a29==5)||(a29==6)))&&!(a11==1))&&(a22==1))&&!(a7==1))&&(a14==8))&&(a28==1))))&&(a19==3)))&&(a0==1))){ + a14 = 9; + a29 = 8; + a24 = 1; + a25 = 0; + a19 = 4; + a7 = 1; + return 21; + } else if(((a11==1)&&(((a14==8)&&(((a7==1)&&((a29==5)&&(((a19==4)&&((a22==1)&&((a28==1)&&(!(a0==1)&&(input==6)))))&&(a24==1))))&&!(a25==1)))&&(a20==1)))){ + a24 = 0; + a25 = 1; + a14 = 9; + a11 = 0; + a0 = 1; + return 21; + } else if(((a22==1)&&((!(a0==1)&&(!(a25==1)&&(((!(a20==1)&&(((a24==1)&&(((a28==1)&&(input==5))&&(a7==1)))&&(a19==1)))&&!(a11==1))&&(a29==8))))&&(a14==8)))){ + a14 = 9; + a11 = 1; + a24 = 0; + a29 = 5; + a19 = 4; + return 24; + } else if((((!(a11==1)&&((a28==1)&&((((input==5)&&((((((!(a7==1)&&(a20==1))&&!(a25==1))&&(a29==9))&&(a19==5))||((a19==1)&&(((!(a20==1)&&(a7==1))&&(a25==1))&&(a29==5))))||((a19==1)&&(((a25==1)&&(!(a20==1)&&(a7==1)))&&(a29==6)))))&&(a14==8))&&!(a0==1))))&&(a24==1))&&(a22==1))){ + a0 = 1; + a25 = 1; + a29 = 6; + a20 = 0; + a24 = 0; + a19 = 2; + a7 = 0; + return -1; + } else if(((a19==3)&&(((((((a7==1)&&((a28==1)&&(((a14==8)&&((input==2)&&!(a24==1)))&&(a22==1))))&&!(a11==1))&&!(a25==1))&&!(a0==1))&&(a29==6))&&!(a20==1)))){ + a24 = 1; + a11 = 1; + a20 = 1; + a29 = 5; + a25 = 1; + a19 = 4; + return 24; + } else if((((a7==1)&&(((((a19==3)&&((a14==9)&&((!(a20==1)&&((a0==1)&&((input==6)&&(a22==1))))&&(a24==1))))&&(a25==1))&&(a29==9))&&(a28==1)))&&!(a11==1))){ + a19 = 5; + a24 = 0; + a11 = 1; + a29 = 8; + return -1; + } else if((((((((!(a11==1)&&(((a22==1)&&((a24==1)&&((input==1)&&(a29==6))))&&(a14==9)))&&(a20==1))&&(a19==4))&&!(a7==1))&&!(a0==1))&&(a28==1))&&!(a25==1))){ + a29 = 9; + a25 = 1; + a11 = 1; + a14 = 8; + return 21; + } else if(((((((((a11==1)&&((a20==1)&&(!(a24==1)&&((a28==1)&&(((a29==5)||(a29==6))&&(input==3))))))&&(a14==8))&&(a25==1))&&(a22==1))&&!(a0==1))&&(a7==1))&&(a19==5))){ + a7 = 0; + a25 = 0; + a0 = 1; + a29 = 9; + a20 = 0; + a11 = 0; + return -1; + } else if(((a19==4)&&(((a11==1)&&(((!(a0==1)&&(((!(a20==1)&&(((a25==1)&&(input==2))&&!(a7==1)))&&(a28==1))&&(a29==5)))&&(a24==1))&&(a14==8)))&&(a22==1)))){ + a11 = 0; + a24 = 0; + a14 = 9; + a19 = 2; + a7 = 1; + a0 = 1; + a29 = 9; + a25 = 0; + return 23; + } else if(((((!(a7==1)&&((a19==2)&&((((((((a29==7)||((a29==5)||(a29==6)))&&(input==4))&&(a14==8))&&(a0==1))&&(a20==1))&&(a22==1))&&!(a25==1))))&&(a28==1))&&(a24==1))&&(a11==1))){ + a25 = 1; + a29 = 9; + a19 = 3; + a20 = 0; + return 23; + } else if(((((((a19==4)&&((a22==1)&&(((((((a29==7)||(a29==8))&&(input==3))&&(a14==9))&&!(a24==1))&&(a0==1))&&(a28==1))))&&(a11==1))&&!(a20==1))&&!(a25==1))&&(a7==1))){ + a19 = 1; + a29 = 8; + a24 = 1; + a20 = 1; + return 24; + } else if(((a22==1)&&((((((((a19==2)&&((a25==1)&&((a28==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==3)))))&&(a0==1))&&!(a20==1))&&!(a11==1))&&(a14==8))&&(a24==1))&&!(a7==1)))){ + a29 = 7; + a11 = 1; + a19 = 1; + a7 = 1; + a14 = 9; + return 21; + } else if(((a20==1)&&((a28==1)&&(!(a11==1)&&(((a19==1)&&(!(a0==1)&&(!(a7==1)&&(!(a25==1)&&(((((a29==6)||(a29==7))&&(input==1))&&(a14==8))&&(a22==1))))))&&!(a24==1)))))){ + a20 = 0; + a29 = 7; + a25 = 1; + a19 = 4; + a0 = 1; + return 23; + } else if(((a0==1)&&(((a19==5)&&((a28==1)&&((a25==1)&&((a7==1)&&(!(a24==1)&&((a22==1)&&((a20==1)&&(!(a11==1)&&(((a29==6)||(a29==7))&&(input==5))))))))))&&(a14==9)))){ + a29 = 6; + a14 = 8; + a20 = 0; + a25 = 0; + a19 = 3; + return 23; + } else if(((a7==1)&&(((a25==1)&&((((a28==1)&&(((a19==5)&&((a20==1)&&(!(a0==1)&&((input==4)&&(((a29==7)||(a29==8))||(a29==9))))))&&(a11==1)))&&!(a24==1))&&(a22==1)))&&(a14==8)))){ + a25 = 0; + a29 = 7; + a0 = 1; + a19 = 3; + a24 = 1; + a7 = 0; + return 23; + } else if((((a7==1)&&(!(a0==1)&&((a28==1)&&((a19==2)&&(((((a14==9)&&((a22==1)&&((input==2)&&((a29==7)||(a29==8)))))&&!(a11==1))&&(a24==1))&&(a20==1))))))&&(a25==1))){ + a0 = 1; + a7 = 0; + a29 = 9; + a24 = 0; + a19 = 5; + a25 = 0; + return -1; + } else if(((a25==1)&&(((a14==9)&&((!(a24==1)&&((a22==1)&&(!(a20==1)&&((a11==1)&&((a28==1)&&(((input==5)&&((a29==7)||(a29==8)))&&(a19==1)))))))&&!(a7==1)))&&!(a0==1)))){ + a29 = 5; + a0 = 1; + a24 = 1; + a20 = 1; + a14 = 8; + a7 = 1; + return -1; + } else if((((a11==1)&&(((a28==1)&&(!(a0==1)&&((!(a24==1)&&(((a22==1)&&(((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))||((a29==6)&&(a19==4)))&&(input==6)))&&(a20==1)))&&(a14==9))))&&!(a7==1)))&&(a25==1))){ + a0 = 1; + a11 = 0; + a25 = 0; + a7 = 1; + a19 = 2; + a29 = 5; + a24 = 1; + return 24; + } else if(((((a14==8)&&((((a0==1)&&((!(a7==1)&&(((((a19==4)&&(a29==5))||(((a29==8)&&(a19==3))||((a19==3)&&(a29==9))))&&(input==3))&&(a11==1)))&&(a22==1)))&&(a28==1))&&(a20==1)))&&(a24==1))&&(a25==1))){ + a29 = 9; + a19 = 1; + a25 = 0; + return 21; + } else if(((!(a11==1)&&((((a14==8)&&((!(a25==1)&&(((a0==1)&&((input==6)&&((((a19==4)&&(a29==8))||((a19==4)&&(a29==9)))||((a19==5)&&(a29==5)))))&&!(a7==1)))&&(a28==1)))&&!(a20==1))&&(a24==1)))&&(a22==1))){ + a14 = 9; + a29 = 8; + a19 = 5; + a11 = 1; + return 24; + } else if(((((a7==1)&&((((!(a11==1)&&(!(a24==1)&&((((input==2)&&((a29==8)||((a29==6)||(a29==7))))&&!(a0==1))&&(a14==9))))&&(a25==1))&&(a28==1))&&(a22==1)))&&!(a20==1))&&(a19==3))){ + a25 = 0; + a29 = 5; + a19 = 4; + a14 = 8; + a0 = 1; + return 24; + } else if(((a7==1)&&(((a22==1)&&((a19==5)&&(!(a11==1)&&((a20==1)&&((!(a0==1)&&((a24==1)&&((a25==1)&&((input==5)&&(((a29==5)||(a29==6))||(a29==7))))))&&(a28==1))))))&&(a14==8)))){ + a11 = 1; + a29 = 5; + a19 = 1; + a0 = 1; + return -1; + } else if((((a19==3)&&(((a24==1)&&(((((!(a11==1)&&((((a29==7)||(a29==8))&&(input==3))&&!(a0==1)))&&(a14==8))&&(a20==1))&&(a22==1))&&!(a7==1)))&&(a28==1)))&&(a25==1))){ + a20 = 0; + a29 = 5; + a19 = 5; + a24 = 0; + return 23; + } else if(((((a22==1)&&(((!(a11==1)&&((a7==1)&&((((a24==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==4)))&&(a19==4))&&!(a0==1))))&&!(a20==1))&&(a25==1)))&&(a28==1))&&(a14==8))){ + a24 = 0; + a11 = 1; + a29 = 8; + a19 = 2; + a14 = 9; + a25 = 0; + return 23; + } else if((((a11==1)&&((a25==1)&&(((a29==7)&&(((a7==1)&&((a24==1)&&(((a14==9)&&((a19==3)&&(input==4)))&&(a28==1))))&&(a22==1)))&&!(a0==1))))&&(a20==1))){ + a7 = 0; + a29 = 6; + a14 = 8; + a19 = 2; + return 24; + } else if(((((a14==8)&&(!(a11==1)&&(!(a24==1)&&(((a28==1)&&(((((input==2)&&(((a29==6)||(a29==7))||(a29==8)))&&!(a20==1))&&(a22==1))&&!(a25==1)))&&!(a7==1)))))&&(a19==5))&&(a0==1))){ + a24 = 1; + a20 = 1; + a19 = 4; + a29 = 7; + a11 = 1; + return -1; + } else if(((((a22==1)&&((((a25==1)&&((!(a20==1)&&(((a0==1)&&((a7==1)&&(input==3)))&&(a24==1)))&&(a11==1)))&&(a28==1))&&(a19==1)))&&(a14==9))&&(a29==6))){ + a7 = 0; + a25 = 0; + a20 = 1; + a14 = 8; + a0 = 0; + return -1; + } else if((((!(a20==1)&&((a22==1)&&((a28==1)&&(((((a14==9)&&((((a29==7)||(a29==8))&&(input==3))&&!(a24==1)))&&(a19==1))&&(a25==1))&&(a11==1)))))&&!(a7==1))&&!(a0==1))){ + a7 = 1; + a29 = 5; + a24 = 1; + a20 = 1; + a14 = 8; + a0 = 1; + return -1; + } else if(((a28==1)&&((((((((((a19==5)&&(((a7==1)&&!(a25==1))&&(a29==9)))||(((a29==5)&&(!(a7==1)&&(a25==1)))&&(a19==1)))&&(input==1))&&(a14==8))&&(a11==1))&&(a22==1))&&(a24==1))&&(a20==1))&&!(a0==1)))){ + a29 = 5; + a19 = 1; + a7 = 1; + a0 = 1; + a25 = 1; + return -1; + } else if(((a28==1)&&(!(a20==1)&&(!(a0==1)&&((a14==9)&&(!(a7==1)&&(((a22==1)&&((((a19==5)&&((input==2)&&((a29==7)||(a29==8))))&&!(a11==1))&&!(a25==1)))&&!(a24==1)))))))){ + a0 = 1; + a25 = 1; + a11 = 1; + a19 = 3; + a20 = 1; + a29 = 9; + return 23; + } else if((((a7==1)&&(((a11==1)&&((a14==10)&&(((a25==1)&&((a0==1)&&(!(a24==1)&&((input==5)&&(((a29==5)&&(a19==4))||(((a29==8)&&(a19==3))||((a29==9)&&(a19==3))))))))&&(a22==1))))&&(a28==1)))&&(a20==1))){ + a20 = 0; + a19 = 5; + a14 = 9; + a29 = 7; + a0 = 0; + return -1; + } else if(((a24==1)&&((a25==1)&&((a0==1)&&((a14==9)&&((((!(a7==1)&&(((a11==1)&&((input==2)&&((a29==5)||(a29==6))))&&!(a20==1)))&&(a19==1))&&(a28==1))&&(a22==1))))))){ + a7 = 1; + a25 = 0; + a11 = 0; + a29 = 5; + a24 = 0; + a19 = 4; + a14 = 8; + return 23; + } else if(((!(a7==1)&&(((((a14==8)&&(((a22==1)&&(((((a29==6)&&(a19==3))||(((a29==9)&&(a19==2))||((a19==3)&&(a29==5))))&&(input==4))&&!(a0==1)))&&!(a25==1)))&&!(a11==1))&&(a20==1))&&(a28==1)))&&(a24==1))){ + a19 = 5; + a11 = 1; + a29 = 8; + a25 = 1; + return 21; + } else if((((a28==1)&&(!(a0==1)&&((((a22==1)&&(!(a20==1)&&((a7==1)&&((a29==8)&&((a25==1)&&((a19==3)&&(input==5)))))))&&(a14==8))&&(a24==1))))&&(a11==1))){ + a29 = 7; + a25 = 0; + a19 = 4; + a0 = 1; + a24 = 0; + a11 = 0; + return -1; + } else if(((a28==1)&&((((((a14==10)&&((a25==1)&&((((((a29==5)||(a29==6))&&(input==5))&&(a0==1))&&(a19==3))&&(a20==1))))&&(a11==1))&&(a22==1))&&(a24==1))&&!(a7==1)))){ + a14 = 8; + a25 = 0; + a29 = 7; + a0 = 0; + return 23; + } else if(((a22==1)&&(!(a7==1)&&((a19==4)&&(((a0==1)&&(!(a24==1)&&((a20==1)&&(((((input==6)&&((a29==7)||(a29==8)))&&!(a11==1))&&(a25==1))&&(a14==9)))))&&(a28==1)))))){ + a7 = 1; + a24 = 1; + a14 = 8; + a29 = 5; + a19 = 1; + a11 = 1; + return -1; + } else if((((!(a0==1)&&((a14==9)&&(((a20==1)&&((a19==5)&&(((((a28==1)&&(input==5))&&(a25==1))&&(a7==1))&&(a22==1))))&&(a29==9))))&&!(a24==1))&&(a11==1))){ + a24 = 1; + a0 = 1; + return -1; + } else if(((a11==1)&&(((a25==1)&&((((!(a0==1)&&((a14==8)&&((a7==1)&&((input==4)&&(((a29==5)&&(a19==5))||(((a29==8)&&(a19==4))||((a29==9)&&(a19==4))))))))&&!(a24==1))&&(a28==1))&&(a22==1)))&&!(a20==1)))){ + a24 = 1; + a0 = 1; + a29 = 5; + a19 = 1; + a20 = 1; + return -1; + } else if((!(a7==1)&&((a24==1)&&((a28==1)&&(((a14==8)&&(!(a11==1)&&(!(a20==1)&&((!(a25==1)&&((((a29==8)||(a29==9))&&(input==2))&&!(a0==1)))&&(a19==4)))))&&(a22==1)))))){ + a19 = 2; + a25 = 1; + a29 = 7; + a20 = 1; + return -1; + } else if((((a19==1)&&((((a14==8)&&((((a24==1)&&((a0==1)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==1))&&(a7==1))))&&(a28==1))&&!(a20==1)))&&!(a25==1))&&(a22==1)))&&!(a11==1))){ + a19 = 5; + a25 = 1; + a0 = 0; + a29 = 5; + a20 = 1; + a11 = 1; + return 21; + } else if(((!(a11==1)&&((a25==1)&&(!(a24==1)&&((a14==9)&&((!(a7==1)&&((!(a20==1)&&((((a19==4)&&(a29==5))||(((a19==3)&&(a29==8))||((a19==3)&&(a29==9))))&&(input==4)))&&(a22==1)))&&(a28==1))))))&&(a0==1))){ + a19 = 3; + a25 = 0; + a29 = 9; + a14 = 8; + return 21; + } else if((!(a25==1)&&((((a11==1)&&(((((((input==4)&&(((a19==3)&&(a29==9))||((a29==5)&&(a19==4))))&&(a14==9))&&(a7==1))&&(a0==1))&&(a24==1))&&(a20==1)))&&(a28==1))&&(a22==1)))){ + a0 = 0; + a20 = 0; + a19 = 3; + a29 = 5; + a14 = 8; + return 23; + } else if(((a0==1)&&(!(a24==1)&&((((a14==8)&&(((!(a25==1)&&((a7==1)&&((input==3)&&(((a29==5)&&(a19==3))||(((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))))))&&(a11==1))&&(a22==1)))&&(a20==1))&&(a28==1))))){ + a29 = 5; + a25 = 1; + a24 = 1; + a19 = 1; + return -1; + } else if((!(a11==1)&&((a22==1)&&((!(a20==1)&&(((!(a0==1)&&((((a7==1)&&((input==6)&&((a29==7)||((a29==5)||(a29==6)))))&&(a25==1))&&(a28==1)))&&(a24==1))&&(a14==9)))&&(a19==4))))){ + a11 = 1; + a29 = 8; + a14 = 8; + a19 = 3; + return 21; + } else if(((a14==9)&&((a28==1)&&(((((a0==1)&&((a20==1)&&(((((input==6)&&!(a11==1))&&(a22==1))&&(a29==5))&&(a24==1))))&&(a7==1))&&(a25==1))&&(a19==4))))){ + a24 = 0; + a0 = 0; + a25 = 0; + a20 = 0; + a29 = 8; + a19 = 3; + a14 = 8; + return 23; + } else if(((a14==8)&&((!(a11==1)&&(((a19==4)&&((((a28==1)&&((!(a0==1)&&((input==5)&&(a7==1)))&&(a22==1)))&&(a25==1))&&!(a24==1)))&&(a29==8)))&&(a20==1)))){ + a25 = 0; + a19 = 2; + a20 = 0; + a29 = 7; + a0 = 1; + a7 = 0; + return 21; + } else if((((a28==1)&&(((a22==1)&&((a14==8)&&(((a7==1)&&((((input==5)&&(((a19==5)&&(a29==5))||(((a19==4)&&(a29==8))||((a29==9)&&(a19==4)))))&&(a0==1))&&!(a24==1)))&&(a25==1))))&&!(a20==1)))&&(a11==1))){ + a7 = 0; + a29 = 6; + a19 = 4; + a11 = 0; + return 24; + } else if(((a25==1)&&((a24==1)&&((a20==1)&&((!(a7==1)&&((a19==3)&&(((((((a29==7)||((a29==5)||(a29==6)))&&(input==4))&&!(a11==1))&&(a14==9))&&(a28==1))&&(a22==1))))&&!(a0==1)))))){ + a19 = 1; + a7 = 1; + a0 = 1; + a29 = 9; + return -1; + } else if((((a14==9)&&((a22==1)&&((a24==1)&&((a7==1)&&((a28==1)&&(((!(a25==1)&&(((input==1)&&(((a29==6)||(a29==7))||(a29==8)))&&(a19==3)))&&(a20==1))&&!(a0==1)))))))&&!(a11==1))){ + a14 = 8; + a19 = 1; + a29 = 5; + a11 = 1; + a0 = 1; + a25 = 1; + return -1; + } else if(((a28==1)&&((a11==1)&&(!(a24==1)&&((a19==1)&&((a14==8)&&(((a0==1)&&((a22==1)&&((a25==1)&&((((a29==7)||(a29==8))&&(input==6))&&!(a20==1)))))&&(a7==1)))))))){ + a24 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if(((a19==4)&&((a22==1)&&(((!(a24==1)&&(((a14==9)&&(((a28==1)&&(((a0==1)&&(input==2))&&(a25==1)))&&!(a20==1)))&&(a11==1)))&&(a7==1))&&(a29==5))))){ + a25 = 0; + a14 = 10; + a24 = 1; + a19 = 3; + a7 = 0; + a29 = 9; + return 24; + } else if((((a28==1)&&(((a11==1)&&(!(a20==1)&&((a22==1)&&(((a25==1)&&((a24==1)&&(((input==4)&&((a29==9)||((a29==7)||(a29==8))))&&!(a0==1))))&&(a7==1)))))&&(a19==1)))&&(a14==9))){ + a14 = 8; + a29 = 5; + a24 = 0; + a19 = 4; + return 23; + } else if((((!(a20==1)&&(((((a14==8)&&(((((!(a25==1)&&(a29==6))&&(a19==1))||((((a29==9)&&(a25==1))&&(a19==5))||((a19==1)&&((a29==5)&&!(a25==1)))))&&(input==4))&&(a0==1)))&&(a11==1))&&(a24==1))&&(a7==1)))&&(a28==1))&&(a22==1))){ + a25 = 1; + a19 = 2; + a7 = 0; + a24 = 0; + a29 = 9; + return 24; + } else if((((a22==1)&&(((a20==1)&&(((a14==8)&&(((((a28==1)&&((input==4)&&((a29==7)||(a29==8))))&&!(a11==1))&&(a7==1))&&!(a25==1)))&&(a0==1)))&&(a19==4)))&&(a24==1))){ + a29 = 5; + a19 = 3; + a24 = 0; + a0 = 0; + return 24; + } else if((((a22==1)&&((((!(a0==1)&&(((a7==1)&&(((a14==8)&&((a29==9)&&(input==2)))&&!(a20==1)))&&(a28==1)))&&(a19==2))&&(a11==1))&&!(a24==1)))&&(a25==1))){ + a24 = 1; + a0 = 1; + a20 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((!(a7==1)&&((a22==1)&&(!(a11==1)&&((a24==1)&&((a14==8)&&(((!(a25==1)&&((input==3)&&(((a29==5)&&(a19==2))||(((a29==8)&&(a19==1))||((a19==1)&&(a29==9))))))&&(a20==1))&&!(a0==1)))))))&&(a28==1))){ + a20 = 0; + a29 = 9; + a7 = 1; + a19 = 5; + a0 = 1; + a24 = 0; + return 24; + } else if((((((a28==1)&&((a14==8)&&(((!(a7==1)&&((a11==1)&&(!(a0==1)&&(((a29==5)||(a29==6))&&(input==2)))))&&!(a25==1))&&!(a24==1))))&&(a19==5))&&(a20==1))&&(a22==1))){ + a14 = 9; + a29 = 6; + a0 = 1; + a19 = 3; + a25 = 1; + return 24; + } else if(((a11==1)&&((a22==1)&&(((((a14==9)&&(((((((a19==4)&&(a29==5))||(((a29==8)&&(a19==3))||((a29==9)&&(a19==3))))&&(input==3))&&(a28==1))&&(a20==1))&&(a25==1)))&&(a24==1))&&(a0==1))&&!(a7==1))))){ + a24 = 0; + a14 = 8; + a0 = 0; + a29 = 7; + a7 = 1; + a19 = 1; + return 21; + } else if((((a11==1)&&((a22==1)&&(((a28==1)&&((a7==1)&&(((a14==9)&&((((!(a25==1)&&(a29==6))&&(a19==1))||((((a25==1)&&(a29==9))&&(a19==5))||(((a29==5)&&!(a25==1))&&(a19==1))))&&(input==1)))&&!(a24==1))))&&!(a0==1))))&&!(a20==1))){ + a14 = 8; + a24 = 1; + a19 = 1; + a20 = 1; + a29 = 6; + a7 = 0; + a11 = 0; + a25 = 1; + return -1; + } else if((!(a0==1)&&((a22==1)&&((((a14==9)&&((a24==1)&&((a7==1)&&((!(a20==1)&&(((input==4)&&(((a29==6)||(a29==7))||(a29==8)))&&!(a25==1)))&&(a19==5)))))&&(a28==1))&&!(a11==1))))){ + a25 = 1; + a20 = 1; + a19 = 1; + a14 = 8; + a0 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if(((a28==1)&&((a0==1)&&(!(a25==1)&&((a19==5)&&((a24==1)&&((a14==8)&&((a22==1)&&(!(a20==1)&&((a7==1)&&(!(a11==1)&&((input==4)&&(((a29==5)||(a29==6))||(a29==7)))))))))))))){ + a11 = 1; + a7 = 0; + a14 = 9; + a19 = 1; + a20 = 1; + a29 = 9; + return 21; + } else if((!(a25==1)&&((a22==1)&&((!(a0==1)&&(!(a7==1)&&(((a28==1)&&((((((a19==5)&&(a29==6))||(((a19==4)&&(a29==9))||((a19==5)&&(a29==5))))&&(input==3))&&(a20==1))&&(a24==1)))&&(a11==1))))&&(a14==9))))){ + a29 = 8; + a19 = 1; + a14 = 8; + a20 = 0; + a7 = 1; + return 21; + } else if(((a28==1)&&((!(a25==1)&&(((((!(a0==1)&&(!(a24==1)&&((((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))&&(input==4))))&&(a14==9))&&!(a7==1))&&!(a20==1))&&(a11==1)))&&(a22==1)))){ + a25 = 1; + a14 = 8; + a24 = 1; + a29 = 8; + a19 = 1; + a7 = 1; + return 24; + } else if(((a19==2)&&(((((a14==8)&&(((((a22==1)&&(!(a20==1)&&((a0==1)&&(input==4))))&&(a24==1))&&(a29==8))&&!(a11==1)))&&!(a25==1))&&(a28==1))&&!(a7==1)))){ + a25 = 1; + a19 = 4; + a11 = 1; + a14 = 9; + a29 = 9; + return 23; + } else if((!(a24==1)&&((a19==2)&&(!(a20==1)&&((a28==1)&&((a0==1)&&(((a22==1)&&(!(a25==1)&&(!(a11==1)&&((a14==9)&&((((a29==6)||(a29==7))||(a29==8))&&(input==6))))))&&!(a7==1)))))))){ + a11 = 1; + a14 = 8; + a29 = 5; + a20 = 1; + a7 = 1; + a25 = 1; + a19 = 1; + a24 = 1; + return -1; + } else if(((a19==3)&&(((a25==1)&&((a7==1)&&((a24==1)&&((a29==9)&&(!(a11==1)&&((((!(a20==1)&&(input==2))&&(a14==9))&&(a0==1))&&(a28==1)))))))&&(a22==1)))){ + a11 = 1; + a24 = 0; + a19 = 5; + a29 = 5; + a25 = 0; + return 24; + } else if((((a11==1)&&(((a19==1)&&((a22==1)&&((((((((a29==6)||(a29==7))&&(input==6))&&(a14==9))&&(a0==1))&&(a7==1))&&(a20==1))&&(a28==1))))&&!(a24==1)))&&(a25==1))){ + a24 = 1; + a29 = 7; + a11 = 0; + a19 = 4; + return 21; + } else if(((a20==1)&&((!(a7==1)&&((!(a25==1)&&(((((a22==1)&&((a14==8)&&(((a29==6)||(a29==7))&&(input==6))))&&!(a11==1))&&(a24==1))&&(a19==5)))&&(a28==1)))&&(a0==1)))){ + a29 = 9; + a20 = 0; + a24 = 0; + a0 = 0; + a7 = 1; + return 21; + } else if((!(a25==1)&&(((a20==1)&&((!(a7==1)&&((a0==1)&&(((a22==1)&&((a28==1)&&((a14==9)&&((a11==1)&&(input==5)))))&&(a24==1))))&&(a29==8)))&&(a19==1)))){ + a19 = 2; + a7 = 1; + a29 = 6; + a0 = 0; + a24 = 0; + a14 = 8; + a25 = 1; + return 24; + } else if((((a0==1)&&((((((((((a14==10)&&(input==1))&&!(a24==1))&&(a7==1))&&(a29==8))&&(a28==1))&&(a20==1))&&(a11==1))&&(a25==1))&&(a22==1)))&&(a19==1))){ + a29 = 7; + a25 = 0; + a11 = 0; + a14 = 9; + a19 = 2; + return -1; + } else if((((a14==8)&&(((!(a7==1)&&((((a22==1)&&((!(a0==1)&&((a28==1)&&(input==1)))&&!(a25==1)))&&(a11==1))&&(a29==5)))&&(a19==5))&&!(a20==1)))&&(a24==1))){ + a29 = 8; + a7 = 1; + a20 = 1; + a19 = 2; + return 23; + } else if(((((a28==1)&&((a0==1)&&(!(a11==1)&&((a29==6)&&(!(a24==1)&&((!(a20==1)&&(!(a7==1)&&((input==4)&&(a25==1))))&&(a19==2)))))))&&(a22==1))&&(a14==8))){ + a7 = 1; + a24 = 1; + a25 = 0; + a19 = 3; + a14 = 9; + return 23; + } else if((((((a28==1)&&((!(a7==1)&&(((a11==1)&&((((a22==1)&&(input==6))&&!(a25==1))&&!(a0==1)))&&(a14==9)))&&(a29==7)))&&!(a20==1))&&(a19==4))&&(a24==1))){ + a29 = 5; + a14 = 8; + return 24; + } else if((((((a28==1)&&(((a19==4)&&((a24==1)&&(((((a29==9)&&(input==3))&&!(a7==1))&&!(a11==1))&&(a14==9))))&&(a22==1)))&&(a20==1))&&!(a0==1))&&!(a25==1))){ + a25 = 1; + a0 = 1; + a14 = 8; + a19 = 1; + a29 = 5; + a7 = 1; + a11 = 1; + return -1; + } else if(((((!(a20==1)&&((a22==1)&&((a19==5)&&(((a14==9)&&(!(a25==1)&&((a28==1)&&((a7==1)&&(input==4)))))&&(a29==6)))))&&!(a0==1))&&(a24==1))&&(a11==1))){ + a0 = 1; + a29 = 9; + a11 = 0; + a7 = 0; + a24 = 0; + return -1; + } else if((((a25==1)&&((!(a7==1)&&((a14==8)&&((((a24==1)&&(!(a11==1)&&((a28==1)&&(((a29==6)||(a29==7))&&(input==2)))))&&!(a0==1))&&(a22==1))))&&!(a20==1)))&&(a19==5))){ + a7 = 1; + a29 = 5; + a0 = 1; + a19 = 1; + a11 = 1; + a20 = 1; + return -1; + } else if((((a14==8)&&((((((a28==1)&&((!(a0==1)&&((input==2)&&(((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))))&&(a22==1)))&&!(a11==1))&&!(a25==1))&&(a20==1))&&(a7==1)))&&!(a24==1))){ + a29 = 9; + a19 = 4; + a0 = 1; + a20 = 0; + return -1; + } else if((((a24==1)&&((a22==1)&&(((a19==4)&&((((a20==1)&&(((a7==1)&&(((a29==7)||(a29==8))&&(input==6)))&&(a14==8)))&&(a11==1))&&!(a25==1)))&&(a28==1))))&&!(a0==1))){ + a24 = 0; + a19 = 3; + a0 = 1; + a11 = 0; + a29 = 8; + a20 = 0; + return -1; + } else if(((a0==1)&&(((a19==5)&&((((((a22==1)&&(((a11==1)&&((input==2)&&((a29==8)||((a29==6)||(a29==7)))))&&!(a20==1)))&&(a14==8))&&(a28==1))&&!(a25==1))&&!(a24==1)))&&(a7==1)))){ + a29 = 6; + a0 = 0; + a24 = 1; + a19 = 2; + a20 = 1; + a7 = 0; + a25 = 1; + return 24; + } else if(((((((a14==9)&&((!(a20==1)&&(!(a7==1)&&(((input==2)&&(((a19==3)&&(a29==5))||(((a19==2)&&(a29==8))||((a29==9)&&(a19==2)))))&&(a0==1))))&&(a22==1)))&&(a24==1))&&!(a25==1))&&!(a11==1))&&(a28==1))){ + a29 = 8; + a19 = 2; + a14 = 8; + a24 = 0; + a0 = 0; + return 23; + } else if((((((a22==1)&&((a24==1)&&(((a25==1)&&((a19==3)&&(((a14==8)&&((input==4)&&(a0==1)))&&!(a20==1))))&&(a29==8))))&&(a28==1))&&(a7==1))&&(a11==1))){ + a29 = 5; + a19 = 1; + a20 = 1; + return -1; + } else if(((a20==1)&&((a22==1)&&(((a28==1)&&((a0==1)&&((a14==9)&&((a11==1)&&((((input==5)&&((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))||((a29==6)&&(a19==4))))&&!(a25==1))&&!(a7==1))))))&&!(a24==1))))){ + a19 = 1; + a24 = 1; + a25 = 1; + a14 = 8; + a7 = 1; + a29 = 5; + return -1; + } else if(((((((((a28==1)&&(((a20==1)&&((a7==1)&&(((a29==6)||(a29==7))&&(input==3))))&&(a0==1)))&&!(a24==1))&&(a19==4))&&(a25==1))&&(a11==1))&&(a22==1))&&(a14==8))){ + a19 = 5; + a29 = 8; + a7 = 0; + a11 = 0; + a20 = 0; + return 23; + } else if(((((a11==1)&&((a22==1)&&((a19==5)&&((!(a0==1)&&((a14==8)&&((a25==1)&&(!(a7==1)&&((input==6)&&((a29==8)||(a29==9)))))))&&(a24==1)))))&&(a28==1))&&!(a20==1))){ + a7 = 1; + a29 = 8; + a0 = 1; + a19 = 1; + return -1; + } else if(((a20==1)&&((a7==1)&&((((a19==2)&&((!(a24==1)&&(!(a25==1)&&(((a0==1)&&((a14==9)&&(input==1)))&&(a28==1))))&&(a11==1)))&&(a29==9))&&(a22==1))))){ + a24 = 1; + a20 = 0; + a0 = 0; + a19 = 5; + a29 = 6; + a14 = 8; + return 21; + } else if((((a24==1)&&((((((a29==6)&&((((!(a11==1)&&(input==2))&&(a22==1))&&!(a0==1))&&(a25==1)))&&!(a7==1))&&(a28==1))&&(a19==2))&&(a14==9)))&&!(a20==1))){ + a24 = 0; + a11 = 1; + a14 = 8; + a29 = 7; + a19 = 4; + return -1; + } else if((((a14==9)&&((a22==1)&&(!(a11==1)&&(!(a0==1)&&((a19==5)&&((a28==1)&&(((a25==1)&&(((input==3)&&((a29==8)||((a29==6)||(a29==7))))&&(a24==1)))&&!(a7==1))))))))&&!(a20==1))){ + a7 = 1; + a19 = 1; + a20 = 1; + a11 = 1; + a14 = 8; + a0 = 1; + a29 = 5; + return -1; + } else if((((((a11==1)&&((a29==6)&&(!(a0==1)&&(!(a25==1)&&(((a19==4)&&((!(a24==1)&&(input==4))&&(a20==1)))&&!(a7==1))))))&&(a14==8))&&(a22==1))&&(a28==1))){ + a19 = 1; + a14 = 9; + a24 = 1; + a29 = 9; + return 24; + } else if((((!(a24==1)&&((a22==1)&&((a29==8)&&(((!(a0==1)&&(((a28==1)&&((a7==1)&&(input==2)))&&(a14==8)))&&(a25==1))&&!(a11==1)))))&&(a19==4))&&(a20==1))){ + a7 = 0; + a19 = 3; + a11 = 1; + a29 = 7; + a20 = 0; + a24 = 1; + return 24; + } else if(((((a11==1)&&((!(a20==1)&&((a14==10)&&(((a22==1)&&((((((a29==5)||(a29==6))||(a29==7))&&(input==5))&&(a19==3))&&!(a7==1)))&&(a0==1))))&&(a24==1)))&&(a25==1))&&(a28==1))){ + a0 = 0; + a14 = 8; + a19 = 2; + a20 = 1; + a29 = 7; + a7 = 1; + return 23; + } else if(((((a14==8)&&((((((((a0==1)&&((input==1)&&((a29==6)||(a29==7))))&&(a19==2))&&(a11==1))&&(a7==1))&&(a28==1))&&(a20==1))&&(a22==1)))&&!(a24==1))&&(a25==1))){ + a29 = 8; + a11 = 0; + a19 = 5; + a20 = 0; + return 23; + } else if(((a19==5)&&((a14==10)&&((a20==1)&&((a28==1)&&((((((a7==1)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==4))&&(a24==1)))&&(a11==1))&&(a25==1))&&(a22==1))&&(a0==1))))))){ + a20 = 0; + a7 = 0; + a29 = 6; + a19 = 2; + a14 = 9; + a0 = 0; + return -1; + } else if(((!(a7==1)&&((((((a14==9)&&((a19==1)&&((a28==1)&&(!(a11==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==4))))))&&!(a24==1))&&(a25==1))&&(a22==1))&&!(a20==1)))&&(a0==1))){ + a7 = 1; + a24 = 1; + a25 = 0; + a19 = 3; + a29 = 8; + return -1; + } else if(((!(a7==1)&&(((a28==1)&&(!(a0==1)&&(!(a20==1)&&(((((a14==9)&&((input==2)&&((a29==8)||((a29==6)||(a29==7)))))&&(a24==1))&&(a25==1))&&!(a11==1)))))&&(a22==1)))&&(a19==3))){ + a29 = 5; + a0 = 1; + a25 = 0; + a20 = 1; + return 24; + } else if((!(a20==1)&&((a11==1)&&((a7==1)&&((a14==9)&&(!(a0==1)&&(!(a24==1)&&((a28==1)&&(((a25==1)&&(((input==3)&&(a22==1))&&(a19==5)))&&(a29==7)))))))))){ + a7 = 0; + a29 = 5; + a24 = 1; + a25 = 0; + a14 = 8; + a20 = 1; + return 23; + } else if(((((!(a20==1)&&((a14==8)&&((a28==1)&&((a11==1)&&((a22==1)&&((a7==1)&&((!(a25==1)&&(input==5))&&(a19==4))))))))&&(a24==1))&&(a0==1))&&(a29==7))){ + a19 = 5; + a20 = 1; + a29 = 6; + a25 = 1; + a11 = 0; + return 21; + } else if((((a28==1)&&((!(a11==1)&&((a24==1)&&(!(a20==1)&&((((input==4)&&((((a29==6)&&!(a25==1))&&(a19==1))||(((a19==5)&&((a29==9)&&(a25==1)))||(((a29==5)&&!(a25==1))&&(a19==1)))))&&(a14==8))&&(a0==1)))))&&(a22==1)))&&!(a7==1))){ + a25 = 1; + a19 = 3; + a29 = 6; + a24 = 0; + return 23; + } else if((!(a25==1)&&((a14==9)&&(((!(a11==1)&&(((a22==1)&&((a20==1)&&((a24==1)&&((a28==1)&&((input==2)&&((a29==8)||((a29==6)||(a29==7))))))))&&(a19==1)))&&!(a0==1))&&!(a7==1))))){ + a19 = 5; + a11 = 1; + a24 = 0; + a7 = 1; + a14 = 8; + a25 = 1; + a29 = 9; + return -1; + } else if((((!(a11==1)&&((a20==1)&&(((a14==8)&&((a19==1)&&(((a22==1)&&(((input==2)&&((a29==6)||(a29==7)))&&!(a25==1)))&&(a0==1))))&&!(a7==1))))&&!(a24==1))&&(a28==1))){ + a11 = 1; + a29 = 5; + a7 = 1; + a24 = 1; + a25 = 1; + return -1; + } else if((((((!(a7==1)&&((((((a14==8)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==1)))&&!(a0==1))&&(a24==1))&&(a28==1))&&(a20==1)))&&!(a11==1))&&!(a25==1))&&(a19==4))&&(a22==1))){ + a20 = 0; + a0 = 1; + a25 = 1; + a29 = 6; + a19 = 5; + a24 = 0; + return 23; + } else if((((a20==1)&&(((a0==1)&&((((a11==1)&&(!(a24==1)&&((((input==5)&&(((a29==6)||(a29==7))||(a29==8)))&&!(a7==1))&&(a19==3))))&&(a25==1))&&(a22==1)))&&(a14==9)))&&(a28==1))){ + a29 = 9; + a0 = 0; + a14 = 8; + a19 = 1; + a7 = 1; + a24 = 1; + return 24; + } else if(((((((a19==4)&&((((a11==1)&&((a14==8)&&((a22==1)&&(((a29==7)||(a29==8))&&(input==1)))))&&!(a0==1))&&(a28==1)))&&!(a20==1))&&!(a25==1))&&!(a7==1))&&!(a24==1))){ + a7 = 1; + a24 = 1; + a0 = 1; + a29 = 5; + a20 = 1; + a25 = 1; + a19 = 1; + return -1; + } else if((((!(a25==1)&&((a29==5)&&(((((((a0==1)&&((a19==3)&&(input==5)))&&(a28==1))&&!(a24==1))&&(a14==9))&&!(a11==1))&&(a22==1))))&&(a20==1))&&(a7==1))){ + a29 = 6; + a7 = 0; + a11 = 1; + a0 = 0; + a14 = 8; + a19 = 1; + a24 = 1; + a20 = 0; + return 24; + } else if(((a29==6)&&((a28==1)&&(((((a14==9)&&((((a24==1)&&((!(a7==1)&&(input==1))&&(a25==1)))&&!(a0==1))&&(a20==1)))&&(a22==1))&&(a11==1))&&(a19==3))))){ + a19 = 2; + a0 = 1; + a24 = 0; + a20 = 0; + a14 = 8; + a11 = 0; + return 24; + } else if((((a22==1)&&((a7==1)&&((a11==1)&&((a28==1)&&(((a24==1)&&((a14==8)&&(((input==1)&&((((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))||((a29==6)&&(a19==5))))&&(a25==1))))&&!(a0==1))))))&&(a20==1))){ + a19 = 1; + a7 = 0; + a29 = 9; + return 23; + } else if(((a7==1)&&((!(a20==1)&&((a11==1)&&(((a14==9)&&((a19==1)&&((((a22==1)&&((a29==9)&&(input==6)))&&(a28==1))&&(a24==1))))&&(a0==1))))&&(a25==1)))){ + a24 = 0; + a29 = 6; + a11 = 0; + a19 = 3; + a7 = 0; + a0 = 0; + return 23; + } else if(((a25==1)&&(((a11==1)&&((a14==8)&&((!(a7==1)&&(!(a0==1)&&((((input==4)&&(((a29==5)&&(a19==5))||(((a29==8)&&(a19==4))||((a19==4)&&(a29==9)))))&&(a28==1))&&(a20==1))))&&(a22==1))))&&!(a24==1)))){ + a7 = 1; + a29 = 8; + a19 = 5; + a20 = 0; + return 24; + } else if((!(a7==1)&&(((a22==1)&&((a14==9)&&((a11==1)&&((!(a24==1)&&((((a25==1)&&((input==1)&&((a29==7)||(a29==8))))&&(a19==2))&&!(a0==1)))&&(a28==1)))))&&!(a20==1)))){ + a25 = 0; + a11 = 0; + a14 = 8; + a29 = 9; + a0 = 1; + a7 = 1; + return 23; + } else if(((a7==1)&&(!(a25==1)&&((((a28==1)&&(!(a20==1)&&(((!(a11==1)&&(((a0==1)&&(input==2))&&(a22==1)))&&(a29==7))&&(a19==3))))&&(a14==8))&&!(a24==1))))){ + a25 = 1; + a29 = 9; + a24 = 1; + a14 = 9; + return 23; + } else if((((a24==1)&&(!(a20==1)&&(((((((input==1)&&((((a29==6)&&!(a25==1))&&(a19==1))||(((a19==5)&&((a25==1)&&(a29==9)))||((a19==1)&&(!(a25==1)&&(a29==5))))))&&(a14==8))&&(a11==1))&&(a28==1))&&(a0==1))&&(a22==1))))&&(a7==1))){ + a19 = 1; + a25 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if((((a28==1)&&((((a0==1)&&(((!(a25==1)&&((a14==8)&&((a19==3)&&(((a29==8)||(a29==9))&&(input==1)))))&&!(a24==1))&&!(a7==1)))&&(a20==1))&&(a22==1)))&&!(a11==1))){ + a14 = 9; + a11 = 1; + a19 = 5; + a29 = 5; + a20 = 0; + return 21; + } else if(((a28==1)&&(((((a25==1)&&(!(a0==1)&&((!(a24==1)&&((a22==1)&&((input==4)&&((((a29==8)&&(a19==2))||((a29==9)&&(a19==2)))||((a29==5)&&(a19==3))))))&&!(a11==1))))&&!(a7==1))&&(a14==8))&&(a20==1)))){ + a24 = 1; + a29 = 5; + a19 = 5; + a11 = 1; + return 24; + } else if((((a14==9)&&((a19==4)&&(((a24==1)&&(!(a20==1)&&(((!(a0==1)&&((((a29==6)||(a29==7))&&(input==2))&&(a11==1)))&&(a25==1))&&(a28==1))))&&(a7==1))))&&(a22==1))){ + a20 = 1; + a19 = 1; + a0 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if((((a0==1)&&(!(a20==1)&&((a19==5)&&((a14==9)&&((a22==1)&&(((a28==1)&&(((a7==1)&&((input==5)&&((a29==8)||(a29==9))))&&(a24==1)))&&(a11==1)))))))&&!(a25==1))){ + a19 = 1; + a29 = 5; + a20 = 1; + a14 = 8; + a25 = 1; + return -1; + } else if(((a7==1)&&((a28==1)&&(!(a0==1)&&(((!(a20==1)&&((a22==1)&&((a25==1)&&((a14==9)&&((input==1)&&(((a19==2)&&(a29==9))||((a19==3)&&(a29==5))))))))&&!(a11==1))&&(a24==1)))))){ + a19 = 2; + a29 = 6; + a20 = 1; + a24 = 0; + a14 = 8; + return 21; + } else if(((((!(a24==1)&&((a14==8)&&(((((a19==4)&&(!(a7==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==6))))&&!(a0==1))&&(a22==1))&&(a11==1))))&&(a28==1))&&(a20==1))&&(a25==1))){ + a29 = 7; + a7 = 1; + a19 = 2; + a20 = 0; + a0 = 1; + a14 = 9; + a24 = 1; + return 24; + } else if((((((((a20==1)&&((a14==10)&&((!(a7==1)&&(((input==4)&&!(a25==1))&&(a22==1)))&&(a19==1))))&&(a28==1))&&(a0==1))&&(a29==6))&&(a24==1))&&(a11==1))){ + a14 = 9; + a25 = 1; + a19 = 4; + a7 = 1; + return 24; + } else if(((a14==9)&&((a24==1)&&((a22==1)&&((((!(a20==1)&&(((a0==1)&&(!(a11==1)&&((input==6)&&((a29==6)||(a29==7)))))&&(a19==2)))&&(a28==1))&&(a25==1))&&!(a7==1)))))){ + a7 = 1; + a29 = 5; + a11 = 1; + a14 = 8; + a20 = 1; + a19 = 1; + return -1; + } else if(((a28==1)&&((!(a24==1)&&((a0==1)&&((!(a25==1)&&((((a7==1)&&(((input==3)&&((a29==6)||(a29==7)))&&(a19==4)))&&(a14==8))&&!(a20==1)))&&(a11==1))))&&(a22==1)))){ + a7 = 0; + a11 = 0; + a19 = 2; + a29 = 5; + return 23; + } else if((!(a20==1)&&((a19==3)&&((a28==1)&&((!(a25==1)&&(!(a24==1)&&((a14==8)&&(((a0==1)&&((((a29==8)||(a29==9))&&(input==5))&&!(a7==1)))&&(a22==1)))))&&(a11==1)))))){ + a20 = 1; + a11 = 0; + a29 = 9; + a24 = 1; + a0 = 0; + return 21; + } else if(((!(a11==1)&&(((((a19==3)&&(((a24==1)&&((a28==1)&&((a22==1)&&((input==4)&&!(a0==1)))))&&(a14==9)))&&!(a7==1))&&!(a25==1))&&(a29==7)))&&(a20==1))){ + a14 = 8; + a19 = 1; + a25 = 1; + a7 = 1; + a11 = 1; + return -1; + } else if((!(a24==1)&&(((a22==1)&&((a25==1)&&((((((((input==6)&&((a29==7)||((a29==5)||(a29==6))))&&!(a11==1))&&(a0==1))&&(a19==3))&&(a28==1))&&(a14==9))&&!(a20==1))))&&!(a7==1)))){ + a29 = 5; + a19 = 1; + a14 = 8; + a11 = 1; + a24 = 1; + a20 = 1; + a7 = 1; + return -1; + } else if(((a24==1)&&(((a25==1)&&((a19==2)&&((a11==1)&&((a14==9)&&((a20==1)&&((a22==1)&&((((input==4)&&((a29==6)||(a29==7)))&&(a7==1))&&(a28==1))))))))&&!(a0==1)))){ + a19 = 3; + a7 = 0; + a25 = 0; + a29 = 8; + a14 = 8; + a20 = 0; + return 21; + } else if((((a11==1)&&(!(a20==1)&&(((a28==1)&&(((a29==5)&&(((a14==8)&&(((a25==1)&&(input==1))&&!(a7==1)))&&(a19==4)))&&!(a0==1)))&&(a22==1))))&&(a24==1))){ + a25 = 0; + a7 = 1; + a29 = 9; + a20 = 1; + return -1; + } else if((((a0==1)&&(((!(a11==1)&&((!(a20==1)&&((!(a24==1)&&(!(a25==1)&&((input==6)&&((a29==6)||(a29==7)))))&&(a19==4)))&&(a28==1)))&&!(a7==1))&&(a22==1)))&&(a14==9))){ + a29 = 5; + a19 = 3; + a11 = 1; + a7 = 1; + return -1; + } else if((((a22==1)&&(!(a20==1)&&((!(a11==1)&&((a14==8)&&(((input==1)&&(((a19==5)&&((a29==9)&&((a7==1)&&!(a25==1))))||((a19==1)&&((a29==5)&&(!(a7==1)&&(a25==1))))))&&!(a0==1))))&&(a24==1))))&&(a28==1))){ + a7 = 1; + a19 = 4; + a25 = 1; + a11 = 1; + a29 = 6; + return 24; + } else if(((a28==1)&&(((a7==1)&&((((a14==9)&&((!(a11==1)&&((!(a25==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==5)))&&!(a20==1)))&&(a19==5)))&&!(a0==1))&&(a22==1)))&&(a24==1)))){ + a14 = 8; + a19 = 4; + a29 = 6; + a24 = 0; + return 23; + } else if((((a28==1)&&((a25==1)&&((((!(a11==1)&&(((a24==1)&&((!(a20==1)&&(input==3))&&(a29==7)))&&(a22==1)))&&!(a7==1))&&(a19==4))&&(a14==9))))&&!(a0==1))){ + a0 = 1; + a19 = 3; + a25 = 0; + a29 = 6; + a11 = 1; + a14 = 8; + a20 = 1; + return 23; + } else if(((a29==6)&&((!(a7==1)&&(((a22==1)&&((a14==8)&&((a11==1)&&(!(a24==1)&&((a20==1)&&(((input==2)&&!(a0==1))&&(a19==1)))))))&&!(a25==1)))&&(a28==1)))){ + a24 = 1; + a19 = 3; + a29 = 9; + a20 = 0; + return -1; + } else if((((((a7==1)&&(!(a24==1)&&(!(a25==1)&&(((((a19==1)&&((input==3)&&(a29==5)))&&(a20==1))&&(a22==1))&&!(a11==1)))))&&(a28==1))&&!(a0==1))&&(a14==8))){ + a7 = 0; + a24 = 1; + return -1; + } else if(((a11==1)&&((((!(a7==1)&&((a0==1)&&((((a14==9)&&((input==4)&&(((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))))&&(a24==1))&&(a22==1))))&&(a28==1))&&!(a20==1))&&!(a25==1)))){ + a25 = 1; + a14 = 8; + a20 = 1; + a7 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((((a19==3)&&((a28==1)&&((!(a11==1)&&((!(a24==1)&&(!(a0==1)&&(((input==6)&&((a29==8)||((a29==6)||(a29==7))))&&(a14==9))))&&!(a25==1)))&&(a22==1))))&&(a20==1))&&!(a7==1))){ + a0 = 1; + a29 = 7; + return -1; + } else if((((!(a0==1)&&(((((!(a7==1)&&((a14==9)&&(((input==4)&&(a28==1))&&(a19==3))))&&(a25==1))&&(a20==1))&&!(a11==1))&&!(a24==1)))&&(a22==1))&&(a29==9))){ + a29 = 7; + a19 = 1; + a7 = 1; + return -1; + } else if((!(a25==1)&&(((a14==9)&&((a7==1)&&(((((a24==1)&&((a19==5)&&((((a29==5)||(a29==6))&&(input==2))&&!(a11==1))))&&(a0==1))&&(a22==1))&&!(a20==1))))&&(a28==1)))){ + a11 = 1; + a0 = 0; + a29 = 5; + a20 = 1; + a14 = 8; + a19 = 4; + return -1; + } else if((!(a20==1)&&((a28==1)&&(!(a11==1)&&(!(a0==1)&&(((((a14==9)&&(((((a29==8)||(a29==9))&&(input==1))&&(a19==4))&&!(a24==1)))&&!(a7==1))&&!(a25==1))&&(a22==1))))))){ + a19 = 1; + a11 = 1; + a0 = 1; + a7 = 1; + a14 = 8; + a25 = 1; + a20 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if(((a11==1)&&((((a20==1)&&(((!(a0==1)&&(!(a25==1)&&((a19==4)&&((a24==1)&&((input==4)&&((a29==9)||((a29==7)||(a29==8))))))))&&(a22==1))&&(a28==1)))&&!(a7==1))&&(a14==8)))){ + a7 = 1; + a19 = 5; + a25 = 1; + a29 = 6; + return -1; + } else if((!(a0==1)&&((a28==1)&&(((((((a19==3)&&((((input==2)&&((a29==8)||((a29==6)||(a29==7))))&&!(a11==1))&&(a22==1)))&&!(a25==1))&&(a7==1))&&(a14==9))&&(a24==1))&&(a20==1))))){ + a14 = 8; + a25 = 1; + a19 = 5; + a29 = 7; + a11 = 1; + return 24; + } else if(((((a19==4)&&(!(a20==1)&&(((a28==1)&&((((((((a29==5)||(a29==6))||(a29==7))&&(input==2))&&!(a11==1))&&(a24==1))&&(a0==1))&&(a22==1)))&&(a14==8))))&&!(a7==1))&&(a25==1))){ + a29 = 8; + a19 = 5; + a24 = 0; + return 24; + } else if((((!(a11==1)&&((a28==1)&&(((a20==1)&&(((a24==1)&&(((a14==8)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==5)))&&(a19==4)))&&(a0==1)))&&(a25==1))))&&!(a7==1))&&(a22==1))){ + a29 = 8; + a11 = 1; + a20 = 0; + a0 = 0; + return 21; + } else if(((a11==1)&&(((((a20==1)&&(((a0==1)&&((((a25==1)&&((input==1)&&(a22==1)))&&(a19==5))&&(a28==1)))&&(a7==1)))&&(a24==1))&&(a14==10))&&(a29==8)))){ + a24 = 0; + a25 = 0; + a14 = 9; + a19 = 3; + a0 = 0; + a20 = 0; + return -1; + } else if(((a22==1)&&(((a14==9)&&(((a29==6)&&((((((a20==1)&&((a28==1)&&(input==2)))&&!(a7==1))&&(a24==1))&&(a0==1))&&(a19==2)))&&(a11==1)))&&!(a25==1)))){ + a11 = 0; + a29 = 9; + a20 = 0; + a24 = 0; + a7 = 1; + a0 = 0; + return 21; + } else if(((a22==1)&&((a24==1)&&((a28==1)&&(!(a25==1)&&(!(a11==1)&&((((((((a19==2)&&(a29==6))||(((a29==9)&&(a19==1))||((a19==2)&&(a29==5))))&&(input==4))&&(a14==9))&&!(a7==1))&&(a20==1))&&!(a0==1)))))))){ + a11 = 1; + a0 = 1; + a19 = 5; + a29 = 5; + a24 = 0; + a25 = 1; + a7 = 1; + return -1; + } else if(((!(a11==1)&&((a20==1)&&(((a14==9)&&(((a19==3)&&(((!(a7==1)&&((input==5)&&(a22==1)))&&!(a24==1))&&(a28==1)))&&(a29==8)))&&(a25==1))))&&!(a0==1))){ + a11 = 1; + a24 = 1; + a0 = 1; + a29 = 5; + a7 = 1; + a14 = 8; + a19 = 1; + return -1; + } else if((!(a24==1)&&((((((a20==1)&&((!(a11==1)&&(((a29==8)&&((input==6)&&(a14==9)))&&(a25==1)))&&(a28==1)))&&(a22==1))&&!(a7==1))&&(a19==1))&&!(a0==1)))){ + a29 = 5; + a7 = 1; + a24 = 1; + a0 = 1; + a14 = 8; + a11 = 1; + return -1; + } else if(((a19==1)&&(((((a20==1)&&(((a22==1)&&((a25==1)&&(!(a0==1)&&(!(a7==1)&&(((a29==6)||(a29==7))&&(input==4))))))&&(a14==8)))&&!(a24==1))&&(a28==1))&&(a11==1)))){ + a14 = 9; + a25 = 0; + a7 = 1; + a24 = 1; + a29 = 7; + a19 = 3; + return 24; + } else if(((a14==9)&&(((a11==1)&&((((a7==1)&&(!(a24==1)&&((a25==1)&&(((a28==1)&&((a19==1)&&(input==4)))&&(a29==8)))))&&!(a20==1))&&!(a0==1)))&&(a22==1)))){ + a14 = 8; + a11 = 0; + a29 = 9; + a24 = 1; + return -1; + } else if(((((a28==1)&&((a25==1)&&((a19==1)&&((((((a7==1)&&((input==3)&&!(a20==1)))&&!(a11==1))&&!(a24==1))&&(a22==1))&&(a29==8)))))&&!(a0==1))&&(a14==8))){ + a20 = 1; + a29 = 5; + a24 = 1; + a11 = 1; + a0 = 1; + return -1; + } else if(((a19==5)&&(!(a25==1)&&(!(a20==1)&&(((((!(a0==1)&&(!(a24==1)&&((a22==1)&&((input==2)&&((a29==6)||(a29==7))))))&&!(a7==1))&&(a14==8))&&(a28==1))&&!(a11==1)))))){ + a29 = 5; + a25 = 1; + a7 = 1; + a19 = 1; + a11 = 1; + a0 = 1; + a20 = 1; + a24 = 1; + return -1; + } else if(((((a22==1)&&((a14==9)&&(!(a7==1)&&((a19==2)&&(((!(a24==1)&&(!(a11==1)&&((input==4)&&((a29==5)||(a29==6)))))&&(a28==1))&&(a25==1))))))&&(a0==1))&&!(a20==1))){ + a24 = 1; + a7 = 1; + a14 = 8; + a20 = 1; + a19 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if((((((a22==1)&&((((((a25==1)&&(((!(a11==1)&&(a20==1))&&(a7==1))&&(a24==1)))&&(a29==5))&&(a19==1))||(((a19==5)&&((a29==8)&&((!(a24==1)&&(!(a7==1)&&((a11==1)&&!(a20==1))))&&!(a25==1))))||(((!(a25==1)&&(!(a24==1)&&(((a11==1)&&!(a20==1))&&!(a7==1))))&&(a29==9))&&(a19==5))))&&(input==2)))&&(a0==1))&&(a28==1))&&(a14==9))){ + a7 = 0; + a24 = 1; + a11 = 1; + a25 = 1; + a20 = 0; + a29 = 9; + a19 = 4; + return -1; + } else if((!(a20==1)&&((!(a0==1)&&((a14==9)&&(!(a11==1)&&((a22==1)&&(!(a24==1)&&(!(a7==1)&&((((input==3)&&((a29==8)||(a29==9)))&&(a28==1))&&!(a25==1))))))))&&(a19==2)))){ + a11 = 1; + a29 = 9; + a24 = 1; + a0 = 1; + a20 = 1; + return -1; + } else if(((a14==8)&&((a25==1)&&((a0==1)&&(!(a11==1)&&(((((a22==1)&&(((((a19==4)&&(a29==6))||(((a19==3)&&(a29==9))||((a19==4)&&(a29==5))))&&(input==2))&&!(a7==1)))&&!(a20==1))&&(a28==1))&&!(a24==1))))))){ + a24 = 1; + a0 = 0; + a11 = 1; + a19 = 4; + a29 = 8; + return 21; + } else if((((a14==8)&&(((a28==1)&&(((!(a11==1)&&((a22==1)&&(((a19==1)&&(((a29==7)||(a29==8))&&(input==6)))&&!(a0==1))))&&(a24==1))&&!(a25==1)))&&!(a20==1)))&&!(a7==1))){ + a29 = 5; + a0 = 1; + a11 = 1; + a25 = 1; + a20 = 1; + a7 = 1; + return -1; + } else if(((a20==1)&&((!(a7==1)&&((((a22==1)&&(!(a25==1)&&(((a28==1)&&(!(a0==1)&&((input==4)&&((a29==5)||(a29==6)))))&&(a11==1))))&&(a14==8))&&(a19==5)))&&!(a24==1)))){ + a19 = 3; + a7 = 1; + a24 = 1; + a29 = 9; + return 24; + } else if(((a22==1)&&(((!(a11==1)&&((a20==1)&&(((a19==4)&&(!(a0==1)&&(((a25==1)&&(((a29==6)||(a29==7))&&(input==5)))&&(a7==1))))&&(a24==1))))&&(a28==1))&&(a14==8)))){ + a20 = 0; + a0 = 1; + a25 = 0; + a29 = 9; + a19 = 2; + a24 = 0; + return 23; + } else if((!(a25==1)&&((a14==8)&&((((((a20==1)&&(!(a11==1)&&((((input==3)&&((a29==7)||(a29==8)))&&(a19==1))&&(a28==1))))&&(a24==1))&&!(a7==1))&&(a0==1))&&(a22==1))))){ + a7 = 1; + a29 = 5; + a11 = 1; + a25 = 1; + return -1; + } else if(((((a20==1)&&(((a28==1)&&((!(a11==1)&&(((a19==1)&&(((a25==1)&&(input==3))&&!(a0==1)))&&(a14==8)))&&(a22==1)))&&!(a7==1)))&&(a24==1))&&(a29==8))){ + a0 = 1; + a29 = 5; + a7 = 1; + a11 = 1; + return -1; + } else if(((((a19==3)&&(!(a20==1)&&(((a7==1)&&((a14==9)&&(!(a25==1)&&(((((a29==7)||(a29==8))&&(input==1))&&!(a24==1))&&(a22==1)))))&&!(a0==1))))&&(a28==1))&&!(a11==1))){ + a20 = 1; + a24 = 1; + a29 = 9; + a14 = 8; + return 23; + } else if(((a22==1)&&(((((((a20==1)&&(((a14==10)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==1))&&(a28==1)))&&(a11==1)))&&(a24==1))&&(a25==1))&&(a19==2))&&(a0==1))&&(a7==1)))){ + a14 = 8; + a20 = 0; + a29 = 9; + a7 = 0; + a24 = 0; + a11 = 0; + a19 = 3; + a25 = 0; + return 21; + } else if(((((a28==1)&&((!(a0==1)&&((a14==9)&&((a20==1)&&(((((input==6)&&!(a25==1))&&!(a11==1))&&(a22==1))&&(a29==6)))))&&(a19==1)))&&(a24==1))&&(a7==1))){ + a29 = 8; + a20 = 0; + a14 = 8; + a19 = 2; + a11 = 1; + return 24; + } else if(((a19==1)&&((a22==1)&&((((a25==1)&&((a28==1)&&((((a20==1)&&(((input==4)&&((a29==6)||(a29==7)))&&(a0==1)))&&!(a24==1))&&!(a11==1))))&&(a14==9))&&(a7==1))))){ + a0 = 0; + a11 = 1; + a19 = 3; + a29 = 6; + a25 = 0; + a14 = 8; + a24 = 1; + return 24; + } else if((!(a25==1)&&((a22==1)&&((a28==1)&&((a11==1)&&(((((((!(a24==1)&&(input==3))&&(a20==1))&&(a7==1))&&(a0==1))&&(a19==3))&&(a29==8))&&(a14==9))))))){ + a25 = 1; + a29 = 5; + a14 = 10; + a20 = 0; + a24 = 1; + return 21; + } else if(((!(a0==1)&&((a25==1)&&(((!(a11==1)&&((a14==8)&&((a19==3)&&((a28==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==6))&&(a22==1))))))&&(a20==1))&&!(a24==1))))&&(a7==1))){ + a11 = 1; + a24 = 1; + a7 = 0; + a19 = 1; + a20 = 0; + a29 = 7; + return 24; + } else if(((a22==1)&&(!(a25==1)&&((a28==1)&&((a29==7)&&((!(a0==1)&&(((a14==9)&&(!(a24==1)&&(((a11==1)&&(input==5))&&!(a7==1))))&&(a19==3)))&&!(a20==1))))))){ + a19 = 1; + a29 = 8; + a20 = 1; + a24 = 1; + a25 = 1; + a7 = 1; + a0 = 1; + return -1; + } else if(((a22==1)&&(!(a11==1)&&(!(a20==1)&&((((a7==1)&&((a14==8)&&((a0==1)&&(((((a29==9)&&(a25==1))&&(a19==5))||((a19==1)&&(!(a25==1)&&(a29==5))))&&(input==4)))))&&!(a24==1))&&(a28==1)))))){ + a14 = 9; + a25 = 0; + a24 = 1; + a7 = 0; + a19 = 3; + a29 = 5; + a20 = 1; + return 21; + } else if(((((!(a7==1)&&(((((((a11==1)&&((a14==8)&&(input==3)))&&!(a0==1))&&(a29==7))&&(a24==1))&&(a19==2))&&(a28==1)))&&(a20==1))&&!(a25==1))&&(a22==1))){ + a29 = 6; + a19 = 3; + a20 = 0; + return 24; + } else if(((!(a20==1)&&(!(a25==1)&&((a28==1)&&((((((a19==1)&&(((input==6)&&(a22==1))&&(a29==8)))&&(a24==1))&&(a7==1))&&!(a0==1))&&!(a11==1)))))&&(a14==8))){ + a24 = 0; + a11 = 1; + a14 = 9; + a19 = 3; + return 23; + } else if(((((a14==9)&&((((a20==1)&&(((a22==1)&&((((a0==1)&&(input==5))&&!(a7==1))&&(a11==1)))&&(a19==2)))&&(a28==1))&&(a29==9)))&&(a24==1))&&(a25==1))){ + a19 = 3; + a24 = 0; + a25 = 0; + a7 = 1; + a29 = 5; + return 23; + } else if(((((a0==1)&&((a28==1)&&(!(a24==1)&&(!(a11==1)&&((((a14==9)&&(((input==2)&&((a29==8)||((a29==6)||(a29==7))))&&!(a25==1)))&&(a19==3))&&!(a20==1))))))&&(a22==1))&&!(a7==1))){ + a0 = 0; + a11 = 1; + a24 = 1; + a14 = 8; + a29 = 7; + a19 = 1; + return 23; + } else if((((((((a0==1)&&((a19==5)&&(((((input==6)&&(((a29==7)||(a29==8))||(a29==9)))&&(a7==1))&&!(a11==1))&&(a20==1))))&&(a14==8))&&(a22==1))&&!(a25==1))&&(a28==1))&&(a24==1))){ + a24 = 0; + a29 = 6; + a0 = 0; + return 21; + } else if((((a24==1)&&((((a7==1)&&(((a0==1)&&(((a11==1)&&((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))&&(input==5)))&&(a14==10)))&&!(a20==1)))&&(a28==1))&&(a22==1)))&&!(a25==1))){ + a29 = 6; + a19 = 3; + a20 = 1; + return -1; + } else if(((a22==1)&&((a14==8)&&(((a28==1)&&((a25==1)&&((((((((a29==7)||(a29==8))&&(input==6))&&(a11==1))&&!(a24==1))&&!(a0==1))&&(a19==2))&&(a20==1))))&&!(a7==1))))){ + a29 = 9; + a14 = 9; + a25 = 0; + a24 = 1; + a19 = 5; + a7 = 1; + return 23; + } else if(((a24==1)&&((!(a11==1)&&((a28==1)&&(!(a25==1)&&((a19==5)&&(((a7==1)&&(((((a29==7)||(a29==8))&&(input==5))&&(a22==1))&&!(a0==1)))&&(a20==1))))))&&(a14==9)))){ + a7 = 0; + a19 = 2; + a0 = 1; + a29 = 6; + a14 = 8; + return 21; + } else if((((a14==9)&&(((((a22==1)&&((a28==1)&&(!(a0==1)&&(((input==4)&&(((a29==6)&&(a19==3))||(((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))))&&(a24==1)))))&&!(a20==1))&&!(a11==1))&&(a7==1)))&&!(a25==1))){ + a14 = 8; + a25 = 1; + a7 = 0; + a29 = 8; + a24 = 0; + a19 = 5; + a0 = 1; + return -1; + } else if((((a25==1)&&(!(a7==1)&&(((a24==1)&&((!(a20==1)&&((((input==6)&&((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))||((a29==6)&&(a19==4))))&&!(a11==1))&&(a22==1)))&&(a14==9)))&&(a28==1))))&&!(a0==1))){ + a20 = 1; + a19 = 2; + a29 = 6; + a7 = 1; + a14 = 8; + a11 = 1; + return 21; + } else if((((a11==1)&&(!(a20==1)&&((a7==1)&&((a14==9)&&(!(a0==1)&&(((((((a29==8)||(a29==9))&&(input==3))&&(a28==1))&&(a19==2))&&(a22==1))&&!(a24==1)))))))&&!(a25==1))){ + a11 = 0; + a19 = 1; + a24 = 1; + a20 = 1; + a29 = 5; + a0 = 1; + return 24; + } else if(((a22==1)&&((a25==1)&&(((((a19==1)&&(((!(a0==1)&&(((input==2)&&((a29==6)||(a29==7)))&&(a14==9)))&&!(a11==1))&&(a28==1)))&&!(a24==1))&&!(a20==1))&&(a7==1))))){ + a14 = 8; + a29 = 7; + a19 = 3; + a25 = 0; + a0 = 1; + return 23; + } else if(((((((a0==1)&&((((((!(a24==1)&&(input==1))&&!(a25==1))&&(a19==2))&&(a28==1))&&(a14==8))&&!(a7==1)))&&(a20==1))&&(a29==7))&&!(a11==1))&&(a22==1))){ + a11 = 1; + a19 = 1; + a24 = 1; + a25 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if((((((((a7==1)&&((((a0==1)&&((((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))&&(input==3)))&&(a20==1))&&(a11==1)))&&(a25==1))&&(a14==10))&&(a22==1))&&(a28==1))&&!(a24==1))){ + a29 = 5; + a24 = 1; + a19 = 3; + a14 = 9; + a11 = 0; + return -1; + } else if(((a22==1)&&((!(a20==1)&&(((a19==5)&&(!(a24==1)&&(((a14==9)&&(((a29==9)&&((input==4)&&(a28==1)))&&!(a7==1)))&&!(a11==1))))&&!(a25==1)))&&(a0==1)))){ + a25 = 1; + a19 = 3; + a7 = 1; + a11 = 1; + return -1; + } else if(((a14==9)&&((!(a0==1)&&(!(a20==1)&&(!(a25==1)&&(!(a7==1)&&((a28==1)&&(((a11==1)&&(((input==5)&&((a29==8)||((a29==6)||(a29==7))))&&(a24==1)))&&(a19==2)))))))&&(a22==1)))){ + a7 = 1; + a19 = 5; + a14 = 8; + a25 = 1; + a29 = 5; + return 21; + } else if(((!(a25==1)&&((a22==1)&&(!(a20==1)&&(!(a0==1)&&(((((((input==4)&&((a29==8)||(a29==9)))&&(a28==1))&&(a11==1))&&!(a24==1))&&(a7==1))&&(a14==8))))))&&(a19==5))){ + a19 = 3; + a25 = 1; + a24 = 1; + a14 = 9; + a29 = 9; + a7 = 0; + return 23; + } else if((((a11==1)&&(((a19==4)&&(((a22==1)&&((a7==1)&&((((((a29==7)||(a29==8))&&(input==4))&&(a25==1))&&(a28==1))&&!(a20==1))))&&!(a0==1)))&&!(a24==1)))&&(a14==9))){ + a14 = 8; + a7 = 0; + a24 = 1; + a29 = 7; + a20 = 1; + a19 = 5; + return 24; + } else if((((((a14==8)&&(!(a11==1)&&((((a19==1)&&(((!(a24==1)&&(input==6))&&(a7==1))&&!(a0==1)))&&(a22==1))&&!(a20==1))))&&!(a25==1))&&(a29==5))&&(a28==1))){ + a29 = 6; + a14 = 9; + a24 = 1; + a7 = 0; + a25 = 1; + return 23; + } else if((((!(a24==1)&&((!(a0==1)&&((a14==9)&&(((((a22==1)&&(((a29==7)||(a29==8))&&(input==4)))&&!(a20==1))&&(a28==1))&&!(a7==1))))&&(a25==1)))&&(a19==1))&&!(a11==1))){ + a0 = 1; + a25 = 0; + a20 = 1; + a11 = 1; + a29 = 5; + return 21; + } else if(((a19==4)&&(((a25==1)&&((a0==1)&&(((!(a20==1)&&(!(a7==1)&&((a24==1)&&((!(a11==1)&&(input==3))&&(a29==6)))))&&(a14==9))&&(a28==1))))&&(a22==1)))){ + a20 = 1; + a11 = 1; + a19 = 5; + a29 = 5; + a24 = 0; + return 21; + } else if(((a0==1)&&((a14==8)&&((a24==1)&&((((a28==1)&&(((((a11==1)&&((a19==1)&&(input==5)))&&!(a7==1))&&(a20==1))&&(a29==9)))&&!(a25==1))&&(a22==1)))))){ + a20 = 0; + a19 = 2; + a29 = 5; + a25 = 1; + return 23; + } else if((!(a7==1)&&(((((a25==1)&&((a11==1)&&(((a20==1)&&((a14==8)&&((((a29==7)||(a29==8))&&(input==6))&&(a22==1))))&&(a24==1))))&&(a19==3))&&(a28==1))&&!(a0==1)))){ + a19 = 1; + a0 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if((((((a14==8)&&((a22==1)&&(((((((input==5)&&((a29==7)||((a29==5)||(a29==6))))&&!(a25==1))&&(a7==1))&&(a11==1))&&!(a20==1))&&(a24==1))))&&(a28==1))&&(a19==2))&&!(a0==1))){ + a20 = 1; + a25 = 1; + a29 = 5; + a0 = 1; + a19 = 1; + return -1; + } else if(((((((a20==1)&&(((a28==1)&&((a25==1)&&((a29==6)&&((a0==1)&&((a22==1)&&(input==3))))))&&(a14==9)))&&(a19==3))&&!(a7==1))&&(a24==1))&&(a11==1))){ + a0 = 0; + a29 = 9; + a14 = 8; + a19 = 4; + return 21; + } else if((((a28==1)&&(!(a24==1)&&((a20==1)&&((a19==5)&&(((a22==1)&&((((a11==1)&&(((a29==5)||(a29==6))&&(input==3)))&&(a14==9))&&(a0==1)))&&(a25==1))))))&&(a7==1))){ + a29 = 7; + a25 = 0; + a0 = 0; + a19 = 1; + a14 = 8; + a24 = 1; + return 23; + } else if(((a14==8)&&(((a28==1)&&(((input==2)&&((((a29==9)&&(((((a11==1)&&!(a20==1))&&!(a7==1))&&!(a24==1))&&!(a25==1)))&&(a19==5))||((a19==1)&&((a29==5)&&((a25==1)&&((a24==1)&&(((a20==1)&&!(a11==1))&&(a7==1))))))))&&(a0==1)))&&(a22==1)))){ + a19 = 4; + a20 = 0; + a29 = 9; + a25 = 1; + a11 = 0; + a0 = 0; + a7 = 1; + a24 = 1; + return 24; + } else if(((((!(a7==1)&&((a25==1)&&((((a11==1)&&((a19==2)&&((a29==5)&&((a0==1)&&(input==1)))))&&(a14==9))&&(a24==1))))&&(a28==1))&&!(a20==1))&&(a22==1))){ + a29 = 6; + a20 = 1; + a25 = 0; + a0 = 0; + a7 = 1; + a19 = 4; + a14 = 8; + return 21; + } else if(((((a22==1)&&((((a20==1)&&(((a14==9)&&((a25==1)&&((input==3)&&(((a19==2)&&(a29==9))||((a19==3)&&(a29==5))))))&&!(a7==1)))&&(a0==1))&&(a28==1)))&&(a11==1))&&!(a24==1))){ + a14 = 10; + a19 = 2; + a20 = 0; + a25 = 0; + a7 = 1; + a24 = 1; + a29 = 9; + return 24; + } else if((!(a25==1)&&((a24==1)&&(((a22==1)&&((((((((input==1)&&((a29==5)||(a29==6)))&&(a28==1))&&(a11==1))&&(a19==3))&&(a14==10))&&(a7==1))&&(a0==1)))&&(a20==1))))){ + a20 = 0; + a0 = 0; + a14 = 8; + a29 = 6; + a19 = 2; + return 24; + } else if(((!(a24==1)&&(!(a7==1)&&(((((a28==1)&&((a22==1)&&(!(a20==1)&&((input==6)&&(((a29==5)&&(a19==5))||(((a19==4)&&(a29==8))||((a19==4)&&(a29==9))))))))&&!(a0==1))&&!(a11==1))&&!(a25==1))))&&(a14==8))){ + a29 = 9; + a11 = 1; + a20 = 1; + a24 = 1; + a19 = 5; + return 21; + } else if((!(a11==1)&&(((((!(a0==1)&&((a14==8)&&((a7==1)&&(((input==1)&&((((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))||((a19==2)&&(a29==6))))&&!(a25==1)))))&&!(a24==1))&&(a28==1))&&(a22==1))&&(a20==1)))){ + a24 = 1; + a14 = 9; + a11 = 1; + a19 = 5; + a20 = 0; + a29 = 8; + a0 = 1; + return 24; + } else if(((a28==1)&&((a11==1)&&(((!(a7==1)&&((a19==2)&&(!(a0==1)&&((((a25==1)&&((input==4)&&((a29==7)||(a29==8))))&&(a22==1))&&!(a24==1)))))&&(a14==9))&&!(a20==1))))){ + a7 = 1; + a0 = 1; + a14 = 8; + a29 = 5; + a19 = 1; + a24 = 1; + a20 = 1; + return -1; + } else if(((a7==1)&&(((!(a24==1)&&((a22==1)&&(((((input==4)&&(((((a29==8)&&(a25==1))&&(a19==5))||((a19==5)&&((a25==1)&&(a29==9))))||((a19==1)&&(!(a25==1)&&(a29==5)))))&&(a14==9))&&(a28==1))&&(a20==1))))&&(a11==1))&&(a0==1)))){ + a25 = 1; + a20 = 0; + a14 = 10; + a24 = 1; + a29 = 5; + a19 = 1; + return 23; + } else if((((((a22==1)&&((a7==1)&&(((a28==1)&&(((a24==1)&&(((input==2)&&((a29==7)||((a29==5)||(a29==6))))&&(a19==3)))&&!(a20==1)))&&(a0==1))))&&!(a25==1))&&(a14==8))&&(a11==1))){ + a24 = 0; + a7 = 0; + a29 = 9; + a19 = 5; + return 23; + } else if((((((!(a24==1)&&((a19==4)&&((((a22==1)&&(((a29==7)&&(input==2))&&!(a25==1)))&&(a14==8))&&!(a20==1))))&&!(a0==1))&&(a28==1))&&(a11==1))&&(a7==1))){ + a19 = 2; + a0 = 1; + a11 = 0; + a29 = 9; + return 21; + } else if(((a25==1)&&(((a28==1)&&(!(a24==1)&&((((a14==10)&&((a7==1)&&((((input==2)&&((a29==9)||((a29==7)||(a29==8))))&&(a22==1))&&(a19==5))))&&(a20==1))&&(a11==1))))&&(a0==1)))){ + a14 = 8; + a24 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if((((a28==1)&&(((a22==1)&&((!(a25==1)&&(((a24==1)&&((a20==1)&&((input==6)&&(((a29==9)&&(a19==3))||((a29==5)&&(a19==4))))))&&(a0==1)))&&(a11==1)))&&!(a7==1)))&&(a14==10))){ + a29 = 9; + a19 = 3; + a14 = 8; + a25 = 1; + return 23; + } else if(((a29==5)&&((a19==1)&&((((a20==1)&&(((!(a11==1)&&(((a14==8)&&((a7==1)&&(input==3)))&&!(a25==1)))&&(a28==1))&&(a24==1)))&&(a0==1))&&(a22==1))))){ + a29 = 9; + a0 = 0; + a19 = 2; + a20 = 0; + a7 = 0; + return 21; + } else if(((((!(a20==1)&&(((a19==1)&&((a14==9)&&(((a29==7)&&(((input==2)&&(a28==1))&&(a22==1)))&&(a24==1))))&&!(a7==1)))&&!(a0==1))&&!(a11==1))&&(a25==1))){ + a19 = 5; + a29 = 5; + a0 = 1; + a7 = 1; + a20 = 1; + return 24; + } else if((((!(a25==1)&&(!(a24==1)&&(((a20==1)&&((a28==1)&&(((a7==1)&&(!(a11==1)&&((input==2)&&(((a29==7)||(a29==8))||(a29==9)))))&&(a19==4))))&&(a22==1))))&&(a14==9))&&!(a0==1))){ + a0 = 1; + a25 = 1; + a11 = 1; + a24 = 1; + a14 = 8; + a19 = 1; + a29 = 5; + return -1; + } else if((!(a24==1)&&((!(a20==1)&&((a22==1)&&(!(a11==1)&&((((((a28==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==2)))&&!(a25==1))&&(a0==1))&&(a14==9))&&(a19==5)))))&&(a7==1)))){ + a24 = 1; + a11 = 1; + a20 = 1; + a25 = 1; + a14 = 8; + a19 = 1; + a29 = 5; + return -1; + } else if((((a19==4)&&(((a0==1)&&((((((a20==1)&&((a29==9)&&((input==4)&&!(a25==1))))&&(a11==1))&&(a24==1))&&(a22==1))&&(a28==1)))&&(a14==10)))&&(a7==1))){ + a29 = 6; + a14 = 8; + a7 = 0; + a0 = 0; + a24 = 0; + a19 = 3; + a25 = 1; + a20 = 0; + return 21; + } else if(((a22==1)&&((a0==1)&&((!(a11==1)&&(((a24==1)&&(!(a20==1)&&((a28==1)&&((a14==9)&&((a25==1)&&(((a29==8)||(a29==9))&&(input==6)))))))&&(a19==2)))&&!(a7==1))))){ + a29 = 5; + a20 = 1; + a19 = 1; + return 23; + } else if(((a25==1)&&((((((a14==9)&&(((a24==1)&&((((input==4)&&(a0==1))&&!(a20==1))&&!(a7==1)))&&(a22==1)))&&(a19==1))&&(a11==1))&&(a28==1))&&(a29==7)))){ + a29 = 8; + a19 = 3; + a7 = 1; + a20 = 1; + a14 = 10; + return 21; + } else if(((((a20==1)&&((a22==1)&&((a24==1)&&((a7==1)&&((a14==8)&&(((((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))||((a19==3)&&(a29==6)))&&(input==2))&&(a28==1))&&(a11==1)))))))&&!(a25==1))&&!(a0==1))){ + a7 = 0; + a19 = 2; + a29 = 6; + a25 = 1; + return 23; + } else if(((((a7==1)&&(((a28==1)&&((a22==1)&&(((a0==1)&&((a20==1)&&((!(a25==1)&&(input==3))&&(a29==9))))&&(a24==1))))&&(a19==4)))&&(a11==1))&&(a14==10))){ + a25 = 1; + a24 = 0; + a14 = 8; + a20 = 0; + a0 = 0; + a7 = 0; + a29 = 7; + a19 = 1; + return -1; + } else if(((!(a25==1)&&((!(a24==1)&&((a22==1)&&(!(a11==1)&&((!(a7==1)&&((a14==9)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==5))&&!(a20==1))))&&(a28==1)))))&&(a0==1)))&&(a19==5))){ + a19 = 1; + a11 = 1; + a29 = 5; + a24 = 1; + a25 = 1; + a14 = 8; + a20 = 1; + a7 = 1; + return -1; + } return calculate_output26(input); + } + + int calculate_output26(int input) { + if(((a7==1)&&((((a24==1)&&(((a0==1)&&(!(a25==1)&&(((!(a20==1)&&((input==1)&&((a29==5)||(a29==6))))&&(a22==1))&&(a11==1))))&&(a28==1)))&&(a14==10))&&(a19==2)))){ + a11 = 0; + a29 = 6; + a0 = 0; + a24 = 0; + a14 = 9; + a25 = 1; + return -1; + } else if(((a11==1)&&(((a28==1)&&((a0==1)&&((((a7==1)&&((!(a25==1)&&((((a29==6)&&(a19==4))||(((a19==3)&&(a29==9))||((a29==5)&&(a19==4))))&&(input==4)))&&(a20==1)))&&!(a24==1))&&(a14==9))))&&(a22==1)))){ + a29 = 6; + a0 = 0; + a7 = 0; + a25 = 1; + a14 = 8; + a19 = 5; + return -1; + } else if(((a11==1)&&(!(a24==1)&&(((a28==1)&&((a19==3)&&(!(a7==1)&&(((a25==1)&&((((((a29==6)||(a29==7))||(a29==8))&&(input==2))&&(a20==1))&&(a14==9)))&&(a22==1)))))&&!(a0==1))))){ + a14 = 8; + a19 = 2; + a24 = 1; + a29 = 5; + a11 = 0; + return 23; + } else if(((!(a7==1)&&(((((((a0==1)&&((a11==1)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==6))&&(a22==1))))&&(a19==4))&&!(a20==1))&&(a14==9))&&!(a25==1))&&(a28==1)))&&(a24==1))){ + a7 = 1; + a29 = 6; + a25 = 1; + a0 = 0; + a19 = 1; + a14 = 8; + a24 = 0; + return -1; + } else if((((a25==1)&&(!(a24==1)&&((a28==1)&&((a19==1)&&(((!(a11==1)&&((a14==8)&&(!(a7==1)&&((input==1)&&((a29==5)||(a29==6))))))&&(a20==1))&&(a0==1))))))&&(a22==1))){ + a11 = 1; + a29 = 5; + a24 = 1; + a7 = 1; + return -1; + } else if((((((((a14==8)&&((a22==1)&&((((input==1)&&((((a19==3)&&(a29==8))||((a29==9)&&(a19==3)))||((a29==5)&&(a19==4))))&&!(a25==1))&&(a11==1))))&&(a0==1))&&!(a20==1))&&!(a24==1))&&(a28==1))&&(a7==1))){ + a20 = 1; + a19 = 2; + a24 = 1; + a29 = 6; + a25 = 1; + a0 = 0; + return 23; + } else if((((((a14==8)&&(!(a20==1)&&((a19==1)&&(!(a0==1)&&((((((a29==6)||(a29==7))&&(input==3))&&(a25==1))&&(a28==1))&&(a22==1))))))&&!(a7==1))&&!(a24==1))&&!(a11==1))){ + a11 = 1; + a0 = 1; + a19 = 4; + a14 = 9; + a29 = 9; + a24 = 1; + a25 = 0; + return 23; + } else if((!(a24==1)&&(((((((a14==8)&&(!(a20==1)&&(((((a25==1)&&(a29==9))&&(a19==5))||((!(a25==1)&&(a29==5))&&(a19==1)))&&(input==2))))&&(a22==1))&&!(a11==1))&&(a0==1))&&(a28==1))&&!(a7==1)))){ + a19 = 1; + a11 = 1; + a29 = 5; + a20 = 1; + a25 = 1; + a24 = 1; + a7 = 1; + return -1; + } else if(((a29==6)&&(((a19==3)&&((a20==1)&&((((a22==1)&&(((a24==1)&&((a28==1)&&((input==2)&&(a14==8))))&&(a25==1)))&&!(a0==1))&&!(a11==1))))&&(a7==1)))){ + a19 = 1; + a0 = 1; + a29 = 5; + a11 = 1; + return -1; + } else if((!(a24==1)&&(!(a25==1)&&(((a19==1)&&((a14==9)&&(!(a20==1)&&(((a0==1)&&((a28==1)&&((a7==1)&&((input==2)&&(((a29==5)||(a29==6))||(a29==7))))))&&(a11==1)))))&&(a22==1))))){ + a24 = 1; + a25 = 1; + a29 = 5; + a20 = 1; + a14 = 8; + return -1; + } else if(((a0==1)&&((a28==1)&&(((a19==4)&&(!(a20==1)&&((a22==1)&&((((((a11==1)&&(input==2))&&(a24==1))&&(a29==7))&&(a7==1))&&(a14==8)))))&&!(a25==1))))){ + a25 = 1; + a19 = 5; + a11 = 0; + a29 = 5; + a20 = 1; + return 24; + } else if(((((a11==1)&&(!(a25==1)&&(!(a7==1)&&((a14==9)&&(!(a24==1)&&(!(a0==1)&&((a28==1)&&(((input==3)&&((a29==5)||(a29==6)))&&(a22==1)))))))))&&!(a20==1))&&(a19==4))){ + a7 = 1; + a14 = 8; + a19 = 2; + a25 = 1; + a29 = 8; + return 21; + } else if(((((((((a24==1)&&(((a29==8)&&((a0==1)&&((input==4)&&(a14==9))))&&!(a20==1)))&&(a28==1))&&(a22==1))&&(a19==4))&&(a11==1))&&!(a25==1))&&(a7==1))){ + a7 = 0; + a11 = 0; + a0 = 0; + a24 = 0; + return 23; + } else if((!(a11==1)&&(((a14==9)&&((((((((((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))&&(input==5))&&(a25==1))&&(a28==1))&&(a24==1))&&(a7==1))&&!(a20==1))&&(a22==1)))&&(a0==1)))){ + a0 = 0; + a25 = 0; + a20 = 1; + a11 = 1; + a14 = 8; + a29 = 7; + a19 = 2; + return 23; + } else if((!(a7==1)&&(((((a24==1)&&(((a19==1)&&(((((input==2)&&((a29==5)||(a29==6)))&&!(a11==1))&&(a22==1))&&(a20==1)))&&(a25==1)))&&(a0==1))&&(a14==8))&&(a28==1)))){ + a19 = 4; + a29 = 5; + a0 = 0; + a7 = 1; + a11 = 1; + return 24; + } else if(((a0==1)&&(((a22==1)&&((((((a20==1)&&(((a11==1)&&(((a29==6)||(a29==7))&&(input==3)))&&(a25==1)))&&!(a24==1))&&(a7==1))&&(a19==2))&&(a28==1)))&&(a14==10)))){ + a29 = 8; + a11 = 0; + a19 = 3; + a14 = 8; + a0 = 0; + a25 = 0; + return -1; + } else if(((a25==1)&&(((a20==1)&&(((a29==8)&&((a24==1)&&((a28==1)&&((a14==8)&&(((a19==5)&&((a7==1)&&(input==3)))&&(a11==1))))))&&!(a0==1)))&&(a22==1)))){ + a20 = 0; + a0 = 1; + a7 = 0; + a29 = 7; + a24 = 0; + a19 = 3; + a11 = 0; + return -1; + } else if((!(a24==1)&&((a22==1)&&((!(a0==1)&&(((a11==1)&&((a28==1)&&((a14==8)&&((a20==1)&&((((a29==5)&&(a19==4))||(((a19==3)&&(a29==8))||((a29==9)&&(a19==3))))&&(input==2))))))&&!(a7==1)))&&!(a25==1))))){ + a19 = 1; + a14 = 9; + a29 = 7; + a24 = 1; + return 24; + } else if((((a0==1)&&((!(a7==1)&&(((a25==1)&&((a28==1)&&(((!(a24==1)&&((input==2)&&((a29==7)||((a29==5)||(a29==6)))))&&(a20==1))&&(a19==1))))&&(a22==1)))&&(a14==9)))&&!(a11==1))){ + a29 = 9; + a11 = 1; + a24 = 1; + a25 = 0; + a19 = 2; + a7 = 1; + return 21; + } else if((!(a20==1)&&(((a11==1)&&(((a0==1)&&((a22==1)&&(((((a28==1)&&((input==2)&&(a19==4)))&&(a24==1))&&!(a7==1))&&!(a25==1))))&&(a14==9)))&&(a29==9)))){ + a20 = 1; + a14 = 8; + a29 = 5; + a19 = 1; + a25 = 1; + a7 = 1; + return -1; + } else if(((a28==1)&&((a22==1)&&(!(a20==1)&&(!(a25==1)&&(((!(a0==1)&&((((((a29==8)||((a29==6)||(a29==7)))&&(input==6))&&(a7==1))&&(a24==1))&&(a11==1)))&&(a19==3))&&(a14==8))))))){ + a29 = 6; + a20 = 1; + a19 = 4; + return -1; + } else if(((a22==1)&&((!(a7==1)&&((a28==1)&&((((a14==9)&&((a24==1)&&(((a29==6)&&(!(a25==1)&&(input==2)))&&(a19==1))))&&(a11==1))&&(a0==1))))&&!(a20==1)))){ + a20 = 1; + a14 = 8; + a7 = 1; + a19 = 4; + a0 = 0; + return 24; + } else if((((a24==1)&&((a28==1)&&(((((a22==1)&&(((((input==2)&&((a29==9)||((a29==7)||(a29==8))))&&!(a0==1))&&(a14==8))&&!(a20==1)))&&!(a25==1))&&(a7==1))&&(a11==1))))&&(a19==5))){ + a11 = 0; + a0 = 1; + a29 = 7; + a19 = 3; + a24 = 0; + return -1; + } else if(((a14==10)&&((!(a20==1)&&((a22==1)&&((((!(a25==1)&&((a24==1)&&((((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))&&(input==1))))&&(a7==1))&&(a28==1))&&(a0==1))))&&(a11==1)))){ + a19 = 5; + a7 = 0; + a29 = 5; + a24 = 0; + a11 = 0; + a14 = 8; + return 21; + } else if(((((a22==1)&&(!(a24==1)&&((a14==9)&&(!(a7==1)&&((a0==1)&&(!(a11==1)&&((a19==3)&&(((input==3)&&(((a29==5)||(a29==6))||(a29==7)))&&(a25==1)))))))))&&!(a20==1))&&(a28==1))){ + a19 = 1; + a20 = 1; + a24 = 1; + a7 = 1; + a29 = 5; + a14 = 8; + a11 = 1; + return -1; + } else if(((a0==1)&&((a29==9)&&((a11==1)&&(!(a25==1)&&(!(a7==1)&&(!(a20==1)&&(((a19==2)&&((a22==1)&&((a28==1)&&((a14==10)&&(input==5)))))&&(a24==1))))))))){ + a29 = 6; + a25 = 1; + a20 = 1; + a14 = 9; + a24 = 0; + a7 = 1; + a19 = 5; + return 23; + } else if(((a14==9)&&((a19==3)&&(((a28==1)&&(!(a20==1)&&((((a29==5)&&(!(a11==1)&&((a25==1)&&(!(a7==1)&&(input==4)))))&&!(a0==1))&&(a22==1))))&&(a24==1))))){ + a20 = 1; + a19 = 1; + a7 = 1; + a14 = 8; + a11 = 1; + a0 = 1; + return -1; + } else if((((!(a7==1)&&((((a28==1)&&(((a22==1)&&((a11==1)&&((a25==1)&&((input==1)&&((a29==5)||(a29==6))))))&&(a20==1)))&&(a19==5))&&(a14==9)))&&!(a0==1))&&(a24==1))){ + a7 = 1; + a14 = 8; + a25 = 0; + a29 = 6; + a11 = 0; + a19 = 1; + return -1; + } else if((!(a11==1)&&((a28==1)&&((a20==1)&&(((((a25==1)&&((a19==3)&&(((((a29==7)||((a29==5)||(a29==6)))&&(input==2))&&!(a24==1))&&(a22==1))))&&(a14==9))&&(a7==1))&&!(a0==1)))))){ + a29 = 6; + a24 = 1; + a14 = 8; + a19 = 4; + a25 = 0; + a11 = 1; + a7 = 0; + return -1; + } else if(((a28==1)&&(!(a0==1)&&(((a20==1)&&((((((a19==2)&&((a14==9)&&((input==2)&&(((a29==7)||(a29==8))||(a29==9)))))&&!(a11==1))&&!(a25==1))&&(a22==1))&&!(a24==1)))&&(a7==1))))){ + a0 = 1; + a19 = 1; + a29 = 5; + a14 = 8; + a25 = 1; + a11 = 1; + a24 = 1; + return -1; + } else if((((((a19==1)&&((a29==7)&&((a24==1)&&((a25==1)&&((((a28==1)&&((input==3)&&(a22==1)))&&!(a7==1))&&(a14==9))))))&&(a11==1))&&!(a20==1))&&(a0==1))){ + a19 = 3; + a0 = 0; + a25 = 0; + a29 = 8; + a11 = 0; + a7 = 1; + a14 = 8; + a20 = 1; + return -1; + } else if(((!(a11==1)&&((a7==1)&&((a29==9)&&((!(a25==1)&&((a28==1)&&(((a19==4)&&(!(a24==1)&&(!(a20==1)&&(input==4))))&&(a22==1))))&&!(a0==1)))))&&(a14==9))){ + a29 = 7; + a11 = 1; + a14 = 8; + return 23; + } else if(((((a11==1)&&(((((((a22==1)&&(!(a24==1)&&((input==6)&&(a19==5))))&&(a14==9))&&(a25==1))&&(a7==1))&&!(a20==1))&&!(a0==1)))&&(a28==1))&&(a29==8))){ + a11 = 0; + a7 = 0; + a25 = 0; + a14 = 8; + a20 = 1; + a29 = 7; + return -1; + } else if(((((((a14==9)&&(((a19==4)&&((a24==1)&&(((a20==1)&&((a7==1)&&(input==1)))&&(a29==5))))&&(a22==1)))&&(a25==1))&&(a0==1))&&!(a11==1))&&(a28==1))){ + a25 = 0; + a24 = 0; + a29 = 8; + a7 = 0; + a19 = 5; + return 23; + } else if(((a14==9)&&(!(a20==1)&&(((a28==1)&&(!(a24==1)&&((a29==8)&&((a22==1)&&((a7==1)&&((a19==1)&&(!(a0==1)&&((input==5)&&!(a11==1)))))))))&&!(a25==1))))){ + a14 = 8; + a11 = 1; + a20 = 1; + a29 = 5; + a24 = 1; + a25 = 1; + a0 = 1; + return -1; + } else if((!(a24==1)&&(((((a25==1)&&((a7==1)&&(((a29==8)&&((a22==1)&&((!(a11==1)&&(input==5))&&!(a0==1))))&&(a28==1))))&&(a19==3))&&(a14==8))&&!(a20==1)))){ + a11 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + a24 = 1; + a0 = 1; + return -1; + } else if(((a22==1)&&(!(a25==1)&&(((a28==1)&&((((((!(a0==1)&&(!(a11==1)&&(input==3)))&&(a24==1))&&(a29==5))&&(a19==4))&&(a14==8))&&!(a20==1)))&&!(a7==1))))){ + a29 = 6; + a14 = 9; + a19 = 3; + a7 = 1; + a25 = 1; + a20 = 1; + return 23; + } else if(((!(a20==1)&&((a24==1)&&((a14==8)&&((a22==1)&&(!(a11==1)&&((a28==1)&&(!(a25==1)&&(((((a29==6)&&(a19==2))||(((a29==9)&&(a19==1))||((a19==2)&&(a29==5))))&&(input==6))&&(a0==1)))))))))&&(a7==1))){ + a19 = 2; + a14 = 9; + a20 = 1; + a29 = 9; + a11 = 1; + return 23; + } else if(((a25==1)&&((a24==1)&&((a7==1)&&((a22==1)&&((!(a11==1)&&((a28==1)&&(((a14==8)&&(((((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))||((a29==6)&&(a19==2)))&&(input==6)))&&(a0==1))))&&!(a20==1))))))){ + a19 = 5; + a0 = 0; + a7 = 0; + a29 = 5; + a24 = 0; + return 21; + } else if((!(a0==1)&&(((a28==1)&&((((a19==3)&&(!(a11==1)&&((a22==1)&&((a14==9)&&(!(a25==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==1)))))))&&!(a7==1))&&!(a20==1)))&&!(a24==1)))){ + a19 = 4; + a29 = 7; + a7 = 1; + a14 = 8; + a20 = 1; + a11 = 1; + return -1; + } else if((!(a20==1)&&(((((((((((input==5)&&(a29==8))&&(a0==1))&&(a22==1))&&(a19==5))&&!(a11==1))&&(a24==1))&&(a28==1))&&!(a7==1))&&(a14==8))&&(a25==1)))){ + a20 = 1; + a11 = 1; + a19 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if(((a22==1)&&((a28==1)&&((((a14==9)&&((((!(a7==1)&&(((input==4)&&((a29==6)||(a29==7)))&&!(a20==1)))&&(a25==1))&&!(a0==1))&&!(a24==1)))&&(a19==5))&&(a11==1))))){ + a29 = 5; + a24 = 1; + a7 = 1; + a14 = 8; + a20 = 1; + a0 = 1; + a19 = 1; + return -1; + } else if(((!(a20==1)&&((((a28==1)&&((a22==1)&&((a19==1)&&((a0==1)&&((((input==1)&&(a14==9))&&(a25==1))&&(a29==6))))))&&(a7==1))&&(a24==1)))&&(a11==1))){ + a29 = 8; + a24 = 0; + return 24; + } else if(((((a19==4)&&(((a22==1)&&((a29==6)&&(((a20==1)&&((!(a25==1)&&((a0==1)&&(input==6)))&&(a7==1)))&&!(a24==1))))&&(a28==1)))&&(a14==8))&&(a11==1))){ + a24 = 1; + a7 = 0; + a25 = 1; + a19 = 3; + a0 = 0; + return 24; + } else if(((a28==1)&&(((((a14==9)&&(((a0==1)&&((((a19==2)&&(((a29==6)||(a29==7))&&(input==1)))&&(a24==1))&&!(a11==1)))&&(a20==1)))&&!(a25==1))&&(a7==1))&&(a22==1)))){ + a25 = 1; + a20 = 0; + a11 = 1; + a7 = 0; + a29 = 5; + a19 = 4; + return 24; + } else if(((!(a25==1)&&((!(a20==1)&&(((((a11==1)&&(((a24==1)&&(((a29==8)||(a29==9))&&(input==4)))&&(a7==1)))&&(a14==9))&&(a19==1))&&(a28==1)))&&(a0==1)))&&(a22==1))){ + a7 = 0; + a29 = 9; + a14 = 8; + a11 = 0; + a24 = 0; + return 21; + } else if((!(a25==1)&&((a7==1)&&((a0==1)&&(((a22==1)&&((a19==1)&&(((a24==1)&&(((a20==1)&&((input==3)&&((a29==6)||(a29==7))))&&!(a11==1)))&&(a14==8))))&&(a28==1)))))){ + a20 = 0; + a19 = 5; + a25 = 1; + a0 = 0; + a7 = 0; + a11 = 1; + a29 = 9; + return 23; + } else if(((a28==1)&&(((a19==1)&&((a20==1)&&((((((a7==1)&&((!(a24==1)&&(input==2))&&(a22==1)))&&!(a0==1))&&(a25==1))&&(a14==9))&&(a29==9))))&&(a11==1)))){ + a11 = 0; + a29 = 5; + a19 = 4; + a20 = 0; + a7 = 0; + a14 = 8; + return 23; + } else if(((a14==10)&&((a29==9)&&((a0==1)&&(!(a25==1)&&((a11==1)&&((a7==1)&&(((a28==1)&&((a22==1)&&(((a20==1)&&(input==1))&&(a19==1))))&&(a24==1))))))))){ + a25 = 1; + a24 = 0; + a14 = 9; + a0 = 0; + a29 = 6; + return -1; + } else if(((((a20==1)&&(!(a11==1)&&((a28==1)&&((!(a24==1)&&((a14==9)&&(!(a7==1)&&((input==4)&&(((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))))))&&(a0==1)))))&&(a22==1))&&!(a25==1))){ + a25 = 1; + a29 = 8; + a20 = 0; + a7 = 1; + a19 = 1; + return 23; + } else if(((((((a11==1)&&((a25==1)&&(((((((a29==7)||(a29==8))&&(input==3))&&(a22==1))&&(a7==1))&&(a14==8))&&(a19==3))))&&!(a20==1))&&!(a24==1))&&(a0==1))&&(a28==1))){ + a25 = 0; + a0 = 0; + a29 = 8; + a19 = 1; + return 24; + } else if(((!(a24==1)&&((!(a0==1)&&(((a19==3)&&((((a14==9)&&(((input==1)&&((a29==7)||((a29==5)||(a29==6))))&&(a25==1)))&&(a22==1))&&!(a11==1)))&&(a20==1)))&&!(a7==1)))&&(a28==1))){ + a29 = 5; + a20 = 0; + a0 = 1; + a25 = 0; + return -1; + } else if(((a25==1)&&(!(a20==1)&&(!(a24==1)&&((a14==9)&&((a0==1)&&(((a19==4)&&(((((((a29==6)||(a29==7))||(a29==8))&&(input==2))&&!(a7==1))&&(a22==1))&&!(a11==1)))&&(a28==1)))))))){ + a19 = 2; + a7 = 1; + a29 = 9; + a14 = 8; + a25 = 0; + return 21; + } else if((!(a11==1)&&((a24==1)&&((((a0==1)&&(((a28==1)&&((!(a25==1)&&((((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))&&(input==6)))&&(a22==1)))&&(a14==8)))&&(a20==1))&&(a7==1))))){ + a25 = 1; + a19 = 4; + a29 = 5; + a0 = 0; + a24 = 0; + return 24; + } else if((((((((a25==1)&&(((((a0==1)&&((a14==10)&&(input==3)))&&(a24==1))&&(a11==1))&&(a22==1)))&&(a29==9))&&(a19==2))&&(a28==1))&&!(a7==1))&&(a20==1))){ + a19 = 5; + a7 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if(((a11==1)&&(((((a19==2)&&(((a14==8)&&(((((input==1)&&!(a20==1))&&(a0==1))&&(a25==1))&&(a22==1)))&&(a28==1)))&&(a24==1))&&(a7==1))&&(a29==6)))){ + a20 = 1; + a24 = 0; + a7 = 0; + a29 = 9; + a19 = 5; + return 24; + } else if((((!(a11==1)&&(((!(a20==1)&&(!(a7==1)&&(((!(a24==1)&&((input==2)&&(((a29==5)||(a29==6))||(a29==7))))&&(a22==1))&&(a19==1))))&&!(a25==1))&&!(a0==1)))&&(a14==9))&&(a28==1))){ + a29 = 7; + a14 = 8; + a7 = 1; + a11 = 1; + a19 = 4; + return -1; + } else if((((a19==2)&&((a0==1)&&(((((((((input==2)&&((a29==8)||((a29==6)||(a29==7))))&&(a25==1))&&(a11==1))&&(a14==10))&&(a7==1))&&(a24==1))&&!(a20==1))&&(a28==1))))&&(a22==1))){ + a0 = 0; + a14 = 8; + a7 = 0; + a19 = 5; + a20 = 1; + a29 = 7; + return 24; + } else if(((((!(a20==1)&&((a7==1)&&((a25==1)&&((((((input==4)&&(((a29==6)||(a29==7))||(a29==8)))&&(a19==3))&&(a0==1))&&(a28==1))&&(a14==9)))))&&(a11==1))&&(a24==1))&&(a22==1))){ + a19 = 1; + a14 = 8; + a29 = 5; + a20 = 1; + return -1; + } else if(((a11==1)&&(((a14==8)&&((a22==1)&&(((((a28==1)&&((a20==1)&&((input==5)&&(((a19==5)&&(a29==5))||(((a19==4)&&(a29==8))||((a19==4)&&(a29==9)))))))&&!(a0==1))&&!(a24==1))&&!(a7==1))))&&(a25==1)))){ + a0 = 1; + a29 = 5; + a19 = 1; + a24 = 1; + a7 = 1; + return -1; + } else if(((((((a14==9)&&((a28==1)&&((!(a7==1)&&((!(a20==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==5)))&&(a22==1)))&&!(a24==1))))&&(a19==1))&&(a25==1))&&(a11==1))&&(a0==1))){ + a25 = 0; + a19 = 5; + a24 = 1; + a14 = 8; + a7 = 1; + a0 = 0; + a29 = 6; + return 23; + } else if((((a14==9)&&(((a22==1)&&(!(a25==1)&&((a7==1)&&((a0==1)&&(((a11==1)&&((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))&&(input==6)))&&(a24==1))))))&&(a28==1)))&&!(a20==1))){ + a19 = 2; + a20 = 1; + a14 = 8; + a0 = 0; + a29 = 7; + a25 = 1; + return 23; + } else if(((a19==1)&&((a22==1)&&(!(a0==1)&&(((a28==1)&&(((((a11==1)&&(!(a25==1)&&((input==6)&&(((a29==5)||(a29==6))||(a29==7)))))&&(a7==1))&&(a14==9))&&(a20==1)))&&(a24==1)))))){ + a25 = 1; + a11 = 0; + a14 = 8; + a29 = 7; + a20 = 0; + a19 = 2; + return -1; + } else if(((a14==9)&&(!(a11==1)&&((!(a20==1)&&(!(a0==1)&&((a7==1)&&(!(a24==1)&&((((((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))&&(input==6))&&(a22==1))&&(a28==1))))))&&!(a25==1))))){ + a0 = 1; + a19 = 5; + a11 = 1; + a29 = 5; + a24 = 1; + a20 = 1; + a14 = 8; + return -1; + } else if(((a25==1)&&(((a11==1)&&((!(a20==1)&&(((((((input==3)&&(a24==1))&&(a7==1))&&(a28==1))&&(a14==9))&&(a29==6))&&(a22==1)))&&!(a0==1)))&&(a19==3)))){ + a7 = 0; + a24 = 0; + a20 = 1; + a29 = 9; + a19 = 2; + a25 = 0; + a11 = 0; + a0 = 1; + return -1; + } else if(((a24==1)&&(!(a7==1)&&((a20==1)&&((a22==1)&&(!(a11==1)&&(((a28==1)&&(((a0==1)&&(!(a25==1)&&(((a29==5)||(a29==6))&&(input==2))))&&(a19==3)))&&(a14==8)))))))){ + a24 = 0; + a20 = 0; + a29 = 7; + a19 = 2; + a7 = 1; + a0 = 0; + return 24; + } else if(((a14==9)&&(((((a7==1)&&(((((((a20==1)&&(input==5))&&(a0==1))&&(a19==2))&&(a29==9))&&(a11==1))&&(a24==1)))&&!(a25==1))&&(a22==1))&&(a28==1)))){ + a19 = 1; + a14 = 8; + a20 = 0; + a0 = 0; + a24 = 0; + a29 = 6; + return -1; + } else if(((a24==1)&&((a20==1)&&((!(a0==1)&&(((a11==1)&&(((((a19==5)&&((a29==9)&&(!(a25==1)&&(a7==1))))||((a19==1)&&((a29==5)&&((a25==1)&&!(a7==1)))))&&(input==6))&&(a22==1)))&&(a14==8)))&&(a28==1))))){ + a7 = 0; + a11 = 0; + a24 = 0; + a25 = 1; + a29 = 6; + a0 = 1; + a19 = 4; + a20 = 0; + return -1; + } else if(((((a22==1)&&(!(a7==1)&&(((((a29==7)&&((((input==3)&&(a11==1))&&(a14==8))&&!(a0==1)))&&(a28==1))&&(a19==1))&&(a20==1))))&&(a24==1))&&!(a25==1))){ + return -1; + } else if((!(a11==1)&&(((((a22==1)&&(((a14==8)&&((a28==1)&&(((input==1)&&((((a19==2)&&(a29==8))||((a29==9)&&(a19==2)))||((a19==3)&&(a29==5))))&&(a20==1))))&&(a25==1)))&&(a7==1))&&!(a0==1))&&(a24==1)))){ + a20 = 0; + a29 = 5; + a7 = 0; + a24 = 0; + a14 = 9; + a0 = 1; + a19 = 5; + a11 = 1; + return 24; + } else if(((a24==1)&&((((a0==1)&&((a11==1)&&((a19==1)&&((a22==1)&&(!(a7==1)&&(((a14==10)&&((input==6)&&((a29==6)||(a29==7))))&&!(a25==1)))))))&&(a28==1))&&!(a20==1)))){ + a29 = 5; + a19 = 5; + a25 = 1; + a14 = 9; + a11 = 0; + a7 = 1; + a20 = 1; + return 21; + } else if((!(a24==1)&&((((!(a7==1)&&((((!(a11==1)&&((((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))&&(input==6)))&&!(a25==1))&&(a14==8))&&!(a0==1)))&&(a22==1))&&!(a20==1))&&(a28==1)))){ + a20 = 1; + a29 = 5; + a19 = 5; + a25 = 1; + a24 = 1; + return -1; + } else if((((a11==1)&&(((a24==1)&&((!(a7==1)&&((a29==5)&&((a19==2)&&((a22==1)&&(((input==4)&&(a28==1))&&(a0==1))))))&&(a14==10)))&&(a20==1)))&&!(a25==1))){ + a19 = 4; + a14 = 9; + a20 = 0; + a0 = 0; + a29 = 7; + return -1; + } else if((!(a7==1)&&((a22==1)&&((a28==1)&&((a0==1)&&((a14==8)&&((a19==2)&&(((a24==1)&&(((a11==1)&&((input==5)&&((a29==7)||(a29==8))))&&!(a20==1)))&&(a25==1))))))))){ + a7 = 1; + a11 = 0; + a19 = 1; + a29 = 6; + return 21; + } else if(((a24==1)&&(!(a0==1)&&(((a7==1)&&((a29==6)&&(((a14==9)&&((a28==1)&&((((input==1)&&(a20==1))&&(a11==1))&&(a22==1))))&&(a19==5))))&&!(a25==1))))){ + a19 = 2; + a7 = 0; + a24 = 0; + a0 = 1; + a29 = 9; + a11 = 0; + a25 = 1; + return -1; + } else if(((((!(a25==1)&&(((a28==1)&&(!(a11==1)&&(((a0==1)&&((((a29==8)||(a29==9))&&(input==5))&&(a7==1)))&&(a20==1))))&&(a22==1)))&&(a24==1))&&(a19==5))&&(a14==9))){ + a25 = 1; + a11 = 1; + a14 = 8; + a0 = 0; + a7 = 0; + a20 = 0; + a29 = 7; + return 24; + } else if((((((a24==1)&&(((!(a11==1)&&((a29==7)&&(!(a0==1)&&((a19==5)&&((input==6)&&(a7==1))))))&&(a14==9))&&(a20==1)))&&(a22==1))&&(a25==1))&&(a28==1))){ + a11 = 1; + a0 = 1; + a19 = 4; + a25 = 0; + a29 = 9; + a24 = 0; + return 24; + } else if(((((!(a7==1)&&((a28==1)&&(((a22==1)&&((a29==6)&&(!(a0==1)&&(((input==1)&&(a24==1))&&(a25==1)))))&&!(a11==1))))&&(a19==2))&&(a14==9))&&(a20==1))){ + a19 = 5; + a11 = 1; + a14 = 8; + a20 = 0; + a7 = 1; + return 21; + } else if(((a20==1)&&((a22==1)&&((a0==1)&&(((((a29==8)&&(((((a14==8)&&(input==4))&&(a24==1))&&(a28==1))&&(a11==1)))&&(a19==1))&&!(a7==1))&&!(a25==1)))))){ + a29 = 5; + a7 = 1; + a25 = 1; + return -1; + } else if(((((a29==7)&&(!(a0==1)&&((((((a14==9)&&(((a7==1)&&(input==2))&&(a24==1)))&&(a22==1))&&!(a20==1))&&(a11==1))&&!(a25==1))))&&(a28==1))&&(a19==4))){ + a11 = 0; + a25 = 1; + a24 = 0; + a14 = 8; + a29 = 8; + a7 = 0; + a20 = 1; + a19 = 2; + return -1; + } else if((!(a11==1)&&(((a25==1)&&((a22==1)&&(!(a20==1)&&((a7==1)&&((a14==9)&&(((a28==1)&&((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))&&(input==4)))&&!(a0==1)))))))&&(a24==1)))){ + a19 = 3; + a11 = 1; + a14 = 8; + a25 = 0; + a20 = 1; + a7 = 0; + a29 = 7; + return 21; + } else if((!(a20==1)&&((((a19==5)&&((((!(a0==1)&&(((a14==8)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==6)))&&(a24==1)))&&(a25==1))&&(a7==1))&&(a22==1)))&&(a28==1))&&!(a11==1)))){ + a29 = 5; + a14 = 9; + a24 = 0; + a11 = 1; + a25 = 0; + a19 = 3; + return 23; + } else if(((a28==1)&&((((a7==1)&&((((!(a20==1)&&(((((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))&&(input==2))&&(a22==1)))&&(a0==1))&&!(a24==1))&&!(a11==1)))&&(a14==8))&&(a25==1)))){ + a20 = 1; + a14 = 9; + a24 = 1; + a19 = 4; + a29 = 6; + a7 = 0; + return 23; + } else if(((((((((!(a25==1)&&((!(a0==1)&&((input==4)&&(a19==1)))&&(a24==1)))&&(a11==1))&&(a22==1))&&(a14==8))&&(a28==1))&&(a29==7))&&!(a7==1))&&(a20==1))){ + a24 = 0; + a25 = 1; + a19 = 2; + a11 = 0; + a14 = 9; + a0 = 1; + return 23; + } else if(((a28==1)&&(((a7==1)&&(((a20==1)&&((a14==10)&&(((a24==1)&&((((input==2)&&((a29==8)||(a29==9)))&&(a22==1))&&(a11==1)))&&!(a25==1))))&&(a19==3)))&&(a0==1)))){ + a24 = 0; + a20 = 0; + a29 = 9; + a11 = 0; + a14 = 8; + a19 = 2; + return 24; + } else if((((!(a25==1)&&((a7==1)&&(!(a0==1)&&((((a22==1)&&(!(a20==1)&&(((a11==1)&&(input==6))&&(a29==6))))&&(a19==4))&&!(a24==1)))))&&(a14==8))&&(a28==1))){ + a19 = 1; + a20 = 1; + a29 = 5; + a24 = 1; + return 24; + } else if((((a7==1)&&((a25==1)&&((a19==3)&&(!(a24==1)&&((a20==1)&&(((a14==10)&&(((((a29==6)||(a29==7))&&(input==1))&&(a22==1))&&(a11==1)))&&(a0==1)))))))&&(a28==1))){ + a14 = 9; + a19 = 4; + a29 = 5; + a24 = 1; + return -1; + } else if((((!(a20==1)&&((((a25==1)&&((a22==1)&&((a11==1)&&((a28==1)&&((((a29==5)||(a29==6))&&(input==4))&&!(a24==1))))))&&!(a7==1))&&(a14==8)))&&!(a0==1))&&(a19==2))){ + a7 = 1; + a24 = 1; + a25 = 0; + a29 = 5; + a20 = 1; + return 24; + } else if((((((a19==2)&&((a28==1)&&((a14==9)&&(!(a0==1)&&((a24==1)&&(((a22==1)&&((input==6)&&((a29==7)||(a29==8))))&&(a20==1)))))))&&(a7==1))&&!(a25==1))&&(a11==1))){ + a0 = 1; + a25 = 1; + a19 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if((!(a11==1)&&((a28==1)&&((((a22==1)&&(((a0==1)&&((a25==1)&&(((((a29==9)||((a29==7)||(a29==8)))&&(input==4))&&(a19==2))&&!(a7==1))))&&(a14==9)))&&!(a24==1))&&!(a20==1))))){ + a29 = 9; + a19 = 4; + a25 = 0; + a7 = 1; + return 23; + } else if(((a11==1)&&((a28==1)&&((a25==1)&&((a29==6)&&(!(a24==1)&&((((!(a20==1)&&(((a14==9)&&(input==5))&&(a7==1)))&&(a0==1))&&(a22==1))&&(a19==1)))))))){ + a29 = 5; + a24 = 1; + a14 = 8; + a20 = 1; + return -1; + } else if((!(a0==1)&&(((a22==1)&&((((a14==8)&&((a29==9)&&((((!(a7==1)&&(input==2))&&(a24==1))&&(a28==1))&&(a25==1))))&&!(a11==1))&&!(a20==1)))&&(a19==1)))){ + a19 = 4; + a29 = 5; + a11 = 1; + a24 = 0; + a14 = 9; + return 23; + } else if((!(a7==1)&&((a24==1)&&(((a14==8)&&(((((((a28==1)&&((a19==5)&&(input==4)))&&(a29==7))&&!(a11==1))&&(a22==1))&&(a0==1))&&!(a25==1)))&&!(a20==1))))){ + a0 = 0; + a11 = 1; + a7 = 1; + a19 = 3; + return 23; + } else if(((a19==4)&&(((a28==1)&&((a14==9)&&((a22==1)&&(!(a24==1)&&((a11==1)&&((a20==1)&&(((a25==1)&&(((a29==8)||(a29==9))&&(input==1)))&&(a0==1))))))))&&!(a7==1)))){ + a7 = 1; + a19 = 1; + a24 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((((a19==3)&&((((a22==1)&&((a29==9)&&(!(a20==1)&&((a14==9)&&(!(a24==1)&&((a28==1)&&(input==2)))))))&&!(a0==1))&&(a25==1)))&&(a7==1))&&!(a11==1))){ + a0 = 1; + a20 = 1; + a29 = 6; + a19 = 4; + a11 = 1; + return -1; + } else if(((((a7==1)&&(((a14==9)&&((((!(a25==1)&&((((a29==8)||(a29==9))&&(input==6))&&!(a0==1)))&&(a11==1))&&(a19==3))&&(a20==1)))&&!(a24==1)))&&(a28==1))&&(a22==1))){ + a24 = 1; + a20 = 0; + a14 = 8; + a7 = 0; + a29 = 6; + return 23; + } else if((!(a25==1)&&(((a11==1)&&(!(a7==1)&&(((a28==1)&&(((a14==9)&&(((((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))&&(input==4))&&!(a24==1)))&&(a22==1)))&&(a0==1))))&&(a20==1)))){ + a20 = 0; + a24 = 1; + a19 = 3; + a7 = 1; + a29 = 9; + return -1; + } else if(((a20==1)&&(!(a25==1)&&(!(a0==1)&&(((!(a24==1)&&(((((a7==1)&&((a14==8)&&(input==5)))&&(a29==5))&&!(a11==1))&&(a28==1)))&&(a22==1))&&(a19==1)))))){ + a7 = 0; + a24 = 1; + a29 = 6; + a19 = 4; + return 24; + } else if((((a22==1)&&(!(a7==1)&&((((a14==9)&&(((((!(a24==1)&&(input==2))&&(a25==1))&&(a19==3))&&(a0==1))&&!(a11==1)))&&(a28==1))&&(a29==5))))&&(a20==1))){ + a24 = 1; + a7 = 1; + a14 = 8; + a11 = 1; + a19 = 1; + return -1; + } else if((!(a11==1)&&((((((a14==9)&&((a28==1)&&((a22==1)&&(!(a24==1)&&((a25==1)&&((input==6)&&!(a0==1)))))))&&!(a20==1))&&(a19==3))&&(a29==9))&&(a7==1)))){ + a29 = 7; + a19 = 4; + a11 = 1; + a7 = 0; + a14 = 8; + a25 = 0; + return 23; + } else if(((((a22==1)&&(((a25==1)&&(((a14==9)&&(!(a11==1)&&((a20==1)&&(!(a24==1)&&((a0==1)&&(input==1))))))&&(a28==1)))&&(a7==1)))&&(a29==9))&&(a19==3))){ + a25 = 0; + a14 = 8; + a0 = 0; + a11 = 1; + a20 = 0; + a24 = 1; + a29 = 7; + return 23; + } else if(((((a24==1)&&(((a25==1)&&((a0==1)&&((a22==1)&&(((a7==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==3))&&!(a11==1)))&&(a14==9)))))&&(a19==3)))&&(a28==1))&&(a20==1))){ + a11 = 1; + a14 = 8; + a19 = 1; + a29 = 5; + return -1; + } else if((!(a0==1)&&((((a29==5)&&(((!(a11==1)&&((((a24==1)&&((input==5)&&!(a20==1)))&&(a19==4))&&(a14==8)))&&(a22==1))&&(a28==1)))&&!(a7==1))&&!(a25==1)))){ + a11 = 1; + a29 = 7; + a7 = 1; + a19 = 5; + return -1; + } else if(((a28==1)&&((a25==1)&&(((a22==1)&&(!(a20==1)&&(((a7==1)&&((a24==1)&&((a11==1)&&((input==1)&&(((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))))))&&(a14==8))))&&!(a0==1))))){ + a0 = 1; + a19 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if((!(a24==1)&&(!(a0==1)&&((!(a11==1)&&((((a19==5)&&(!(a25==1)&&((a28==1)&&((((a29==5)||(a29==6))&&(input==4))&&!(a20==1)))))&&(a22==1))&&(a14==8)))&&(a7==1))))){ + a14 = 9; + a29 = 7; + a19 = 1; + a24 = 1; + a7 = 0; + return 21; + } else if((((a28==1)&&((a7==1)&&((!(a11==1)&&((a29==9)&&((a22==1)&&(((a19==1)&&(((a25==1)&&(input==1))&&(a14==9)))&&(a0==1)))))&&(a24==1))))&&(a20==1))){ + a29 = 7; + a20 = 0; + a19 = 2; + a11 = 1; + a25 = 0; + return -1; + } else if(((a28==1)&&(((((a20==1)&&((a11==1)&&(!(a25==1)&&((a14==9)&&(((((a29==9)||((a29==7)||(a29==8)))&&(input==3))&&(a19==5))&&(a24==1))))))&&(a7==1))&&!(a0==1))&&(a22==1)))){ + a24 = 0; + a7 = 0; + a20 = 0; + a14 = 8; + a19 = 2; + a29 = 7; + return -1; + } else if((((a19==1)&&((a11==1)&&((a28==1)&&(!(a7==1)&&(((a14==8)&&((!(a24==1)&&((((a29==8)||(a29==9))&&(input==4))&&(a22==1)))&&!(a0==1)))&&(a25==1))))))&&(a20==1))){ + a19 = 3; + a20 = 0; + a29 = 5; + a25 = 0; + a24 = 1; + return 23; + } else if(((a7==1)&&((a11==1)&&(((((a19==4)&&(((a14==8)&&((a24==1)&&(!(a25==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==6)))))&&(a28==1)))&&!(a0==1))&&!(a20==1))&&(a22==1))))){ + a29 = 5; + a19 = 1; + a25 = 1; + a20 = 1; + a0 = 1; + return -1; + } else if(((a20==1)&&(((((((!(a25==1)&&(((((a29==6)||(a29==7))&&(input==4))&&(a14==8))&&(a28==1)))&&!(a0==1))&&!(a24==1))&&(a22==1))&&(a19==5))&&!(a11==1))&&(a7==1)))){ + a19 = 1; + a24 = 1; + a14 = 9; + a25 = 1; + a29 = 6; + a7 = 0; + return 23; + } else if(((a20==1)&&(!(a0==1)&&(((a28==1)&&((a19==2)&&((!(a24==1)&&((((!(a7==1)&&(input==2))&&(a22==1))&&(a14==9))&&(a29==8)))&&(a25==1))))&&(a11==1))))){ + a19 = 4; + a20 = 0; + a29 = 9; + a25 = 0; + a14 = 8; + return 21; + } else if((((a29==6)&&((a0==1)&&((a19==4)&&(((((!(a20==1)&&(!(a24==1)&&((input==4)&&(a28==1))))&&(a14==8))&&!(a7==1))&&(a11==1))&&(a25==1)))))&&(a22==1))){ + a19 = 1; + a24 = 1; + a29 = 5; + a20 = 1; + a7 = 1; + return -1; + } else if(((a28==1)&&((a24==1)&&((a11==1)&&((((((!(a0==1)&&((a22==1)&&((input==1)&&((a29==5)||(a29==6)))))&&!(a25==1))&&(a19==4))&&!(a7==1))&&(a14==9))&&!(a20==1)))))){ + a0 = 1; + a19 = 1; + a29 = 9; + a25 = 1; + return 24; + } else if((!(a20==1)&&(((((a7==1)&&((a28==1)&&(((a14==9)&&(!(a25==1)&&((a22==1)&&((input==5)&&(((a29==6)||(a29==7))||(a29==8))))))&&!(a11==1))))&&(a19==1))&&(a0==1))&&!(a24==1)))){ + a24 = 1; + a11 = 1; + a29 = 7; + a20 = 1; + a19 = 3; + a14 = 8; + a0 = 0; + return 24; + } else if(((a28==1)&&((!(a7==1)&&((((((a0==1)&&((a14==9)&&((input==3)&&(((a19==4)&&(a29==5))||(((a29==8)&&(a19==3))||((a29==9)&&(a19==3)))))))&&(a22==1))&&!(a11==1))&&(a20==1))&&(a24==1)))&&(a25==1)))){ + a11 = 1; + a19 = 1; + a29 = 5; + return 21; + } else if(((a20==1)&&((a28==1)&&((!(a24==1)&&((((a19==3)&&((((a0==1)&&(!(a25==1)&&(input==4)))&&(a14==9))&&(a29==7)))&&(a11==1))&&(a22==1)))&&(a7==1))))){ + a25 = 1; + a14 = 10; + a29 = 5; + a24 = 1; + a19 = 2; + a20 = 0; + return 23; + } else if(((!(a20==1)&&(((((a22==1)&&((a19==1)&&((((((a29==9)||((a29==7)||(a29==8)))&&(input==2))&&(a7==1))&&(a11==1))&&!(a25==1))))&&(a24==1))&&!(a0==1))&&(a28==1)))&&(a14==8))){ + a25 = 1; + a29 = 9; + a19 = 3; + a20 = 1; + return 23; + } else if(((a14==9)&&((a22==1)&&((a7==1)&&((a20==1)&&(((!(a24==1)&&((((input==2)&&((((a29==8)&&(a19==1))||((a19==1)&&(a29==9)))||((a29==5)&&(a19==2))))&&(a28==1))&&(a0==1)))&&(a11==1))&&(a25==1))))))){ + a11 = 0; + a29 = 9; + a19 = 4; + a25 = 0; + return 21; + } else if(((a11==1)&&(!(a0==1)&&(!(a20==1)&&((a24==1)&&(!(a7==1)&&((a22==1)&&((a28==1)&&((a25==1)&&((a29==8)&&((a19==5)&&((a14==9)&&(input==1))))))))))))){ + a14 = 8; + a24 = 0; + a25 = 0; + a11 = 0; + return -1; + } else if(((a19==3)&&((a0==1)&&(((a25==1)&&((((((a22==1)&&(!(a24==1)&&((a7==1)&&(input==6))))&&(a20==1))&&(a29==5))&&(a14==9))&&(a28==1)))&&!(a11==1))))){ + a25 = 0; + a11 = 1; + return -1; + } else if((((((a24==1)&&(!(a25==1)&&(!(a11==1)&&((!(a7==1)&&((((input==3)&&(a28==1))&&(a0==1))&&(a14==9)))&&(a22==1)))))&&(a20==1))&&(a29==9))&&(a19==5))){ + a24 = 0; + a29 = 8; + a25 = 1; + a19 = 4; + return 21; + } else if((((((a20==1)&&(((a11==1)&&(((((((a29==7)||((a29==5)||(a29==6)))&&(input==2))&&!(a24==1))&&!(a25==1))&&(a28==1))&&!(a7==1)))&&(a19==4)))&&(a22==1))&&!(a0==1))&&(a14==9))){ + a29 = 8; + a0 = 1; + a7 = 1; + a25 = 1; + a19 = 1; + a11 = 0; + return -1; + } else if(((((a28==1)&&((a22==1)&&((a11==1)&&((((((a29==9)&&(((!(a7==1)&&!(a20==1))&&(a24==1))&&!(a25==1)))&&(a19==5))||((a19==1)&&((a29==5)&&((!(a24==1)&&((a7==1)&&(a20==1)))&&(a25==1)))))||((a19==1)&&(((((a20==1)&&(a7==1))&&!(a24==1))&&(a25==1))&&(a29==6))))&&(input==6)))))&&(a14==8))&&!(a0==1))){ + a24 = 1; + a0 = 1; + a19 = 1; + a25 = 0; + a29 = 8; + a20 = 0; + a7 = 1; + return 24; + } else if((((!(a20==1)&&(((a25==1)&&((((a24==1)&&(((((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))&&(input==3))&&(a28==1)))&&(a7==1))&&!(a11==1)))&&(a14==9)))&&(a0==1))&&(a22==1))){ + a29 = 5; + a24 = 0; + a20 = 1; + a19 = 3; + return 23; + } else if((!(a0==1)&&((a14==9)&&(((!(a24==1)&&((a25==1)&&(((((input==4)&&((((a19==2)&&(a29==8))||((a29==9)&&(a19==2)))||((a19==3)&&(a29==5))))&&(a28==1))&&(a7==1))&&(a22==1))))&&!(a20==1))&&!(a11==1))))){ + a29 = 5; + a0 = 1; + a19 = 5; + a11 = 1; + a7 = 0; + return -1; + } else if((!(a24==1)&&((a22==1)&&((((((a28==1)&&((a19==3)&&((((a29==9)&&(input==3))&&(a20==1))&&(a0==1))))&&!(a11==1))&&(a14==9))&&(a7==1))&&(a25==1))))){ + a29 = 5; + a24 = 1; + a14 = 8; + a11 = 1; + a19 = 1; + return -1; + } else if(((a22==1)&&((a14==8)&&((((input==2)&&((((a19==5)&&((a29==8)&&((!(a24==1)&&(!(a7==1)&&((a11==1)&&!(a20==1))))&&!(a25==1))))||(((((!(a7==1)&&(!(a20==1)&&(a11==1)))&&!(a24==1))&&!(a25==1))&&(a29==9))&&(a19==5)))||(((a29==5)&&((a25==1)&&(((a7==1)&&((a20==1)&&!(a11==1)))&&(a24==1))))&&(a19==1))))&&!(a0==1))&&(a28==1))))){ + a20 = 0; + a25 = 1; + a11 = 1; + a24 = 0; + a19 = 5; + a7 = 1; + a29 = 8; + return -1; + } else if((((((a0==1)&&(!(a7==1)&&(((a25==1)&&((a28==1)&&(((a24==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==4)))&&!(a20==1))))&&(a14==8))))&&(a22==1))&&(a19==2))&&!(a11==1))){ + a24 = 0; + a29 = 6; + return 24; + } else if((((((a29==7)&&((a11==1)&&((a7==1)&&(((a20==1)&&((a25==1)&&(((input==5)&&(a22==1))&&(a19==5))))&&!(a0==1)))))&&(a28==1))&&(a24==1))&&(a14==8))){ + a19 = 3; + a29 = 6; + return -1; + } else if(((a22==1)&&(((a14==9)&&(!(a0==1)&&((!(a25==1)&&((a28==1)&&(((((input==5)&&((a29==7)||(a29==8)))&&!(a24==1))&&!(a11==1))&&(a19==1))))&&(a7==1))))&&(a20==1)))){ + a20 = 0; + a14 = 8; + a19 = 4; + a29 = 9; + return -1; + } else if(((a22==1)&&(!(a0==1)&&((a7==1)&&((a11==1)&&((a28==1)&&(((a14==9)&&((a24==1)&&(((input==5)&&(((a29==5)&&(a19==2))||(((a19==1)&&(a29==8))||((a29==9)&&(a19==1)))))&&(a20==1))))&&(a25==1)))))))){ + a7 = 0; + a0 = 1; + a19 = 1; + a25 = 0; + a11 = 0; + a29 = 8; + return -1; + } else if(((((a28==1)&&(((a0==1)&&((!(a25==1)&&((a24==1)&&((a19==1)&&((a11==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==6))))))&&(a22==1)))&&(a20==1)))&&(a14==10))&&(a7==1))){ + a0 = 0; + a14 = 8; + a20 = 0; + a7 = 0; + a19 = 3; + a29 = 6; + return 24; + } else if(((a0==1)&&((a22==1)&&((a19==1)&&((a28==1)&&(!(a20==1)&&(((a24==1)&&(((((input==4)&&((a29==7)||(a29==8)))&&!(a11==1))&&(a7==1))&&(a14==8)))&&(a25==1)))))))){ + a20 = 1; + a29 = 5; + a11 = 1; + return -1; + } else if(((((a29==5)&&((((a22==1)&&((a7==1)&&((a24==1)&&((a20==1)&&(!(a25==1)&&((input==5)&&!(a11==1)))))))&&(a19==1))&&(a14==9)))&&(a0==1))&&(a28==1))){ + a11 = 1; + a20 = 0; + a7 = 0; + a0 = 0; + a29 = 7; + a25 = 1; + a14 = 8; + a19 = 2; + return 21; + } else if(((!(a24==1)&&((a28==1)&&((a14==9)&&(((((a19==2)&&(((((a29==7)||((a29==5)||(a29==6)))&&(input==3))&&(a0==1))&&!(a20==1)))&&(a25==1))&&(a11==1))&&(a22==1)))))&&!(a7==1))){ + a20 = 1; + a19 = 1; + a24 = 1; + a7 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((a25==1)&&(!(a0==1)&&(((a19==3)&&((((a28==1)&&(!(a11==1)&&(((a7==1)&&((input==5)&&((a29==5)||(a29==6))))&&(a22==1))))&&!(a24==1))&&(a14==8)))&&(a20==1))))){ + a25 = 0; + a7 = 0; + a29 = 5; + a24 = 1; + a19 = 2; + a11 = 1; + return 24; + } else if(((((a14==9)&&(!(a20==1)&&(((!(a0==1)&&((a7==1)&&(!(a11==1)&&((a28==1)&&((input==2)&&(((a29==6)||(a29==7))||(a29==8)))))))&&(a24==1))&&(a22==1))))&&!(a25==1))&&(a19==5))){ + a14 = 8; + a25 = 1; + a0 = 1; + a29 = 5; + a20 = 1; + a11 = 1; + a19 = 1; + return -1; + } else if(((a28==1)&&(((a14==8)&&((a25==1)&&(!(a20==1)&&((!(a7==1)&&((a0==1)&&(((a19==1)&&(((a29==8)||(a29==9))&&(input==3)))&&(a24==1))))&&!(a11==1)))))&&(a22==1)))){ + a29 = 5; + a11 = 1; + a7 = 1; + a14 = 9; + return 24; + } else if((((a0==1)&&(((a14==8)&&((!(a24==1)&&(((a19==4)&&((a22==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==4))&&(a28==1))))&&!(a20==1)))&&(a25==1)))&&!(a7==1)))&&!(a11==1))){ + a19 = 5; + a24 = 1; + a7 = 1; + a25 = 0; + a14 = 9; + a29 = 8; + return 23; + } else if((((a14==10)&&((((a0==1)&&((((a19==4)&&(((a24==1)&&((a11==1)&&(input==1)))&&(a29==7)))&&(a20==1))&&(a22==1)))&&(a28==1))&&!(a7==1)))&&(a25==1))){ + a7 = 1; + a29 = 5; + a19 = 1; + a14 = 8; + return -1; + } else if(((a25==1)&&((((!(a11==1)&&((!(a24==1)&&((((a22==1)&&(((a29==7)||(a29==8))&&(input==5)))&&!(a20==1))&&(a19==5)))&&!(a0==1)))&&(a7==1))&&(a14==9))&&(a28==1)))){ + a14 = 8; + a24 = 1; + a29 = 5; + a11 = 1; + return -1; + } else if((!(a25==1)&&((a7==1)&&(((((a19==5)&&((((a14==9)&&(((input==2)&&((a29==7)||(a29==8)))&&(a11==1)))&&!(a24==1))&&(a28==1)))&&!(a0==1))&&(a20==1))&&(a22==1))))){ + a20 = 0; + a19 = 1; + a29 = 6; + a25 = 1; + a0 = 1; + a24 = 1; + return 21; + } else if(((a28==1)&&((a14==9)&&(((a0==1)&&(!(a7==1)&&((((a19==5)&&((a22==1)&&(!(a25==1)&&(((a29==8)||(a29==9))&&(input==2)))))&&!(a11==1))&&(a20==1))))&&!(a24==1))))){ + a7 = 1; + a19 = 1; + a14 = 8; + a11 = 1; + a25 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if((((a28==1)&&((a19==5)&&(((a25==1)&&(((a24==1)&&(((a14==9)&&(!(a20==1)&&(((a29==8)||(a29==9))&&(input==3))))&&(a7==1)))&&!(a11==1)))&&!(a0==1))))&&(a22==1))){ + a19 = 1; + a29 = 5; + a0 = 1; + a20 = 1; + a11 = 1; + a14 = 8; + return -1; + } else if(((a0==1)&&((((a28==1)&&((!(a24==1)&&((a19==2)&&(((a29==7)&&(((input==3)&&(a25==1))&&!(a11==1)))&&!(a7==1))))&&(a22==1)))&&(a14==8))&&!(a20==1)))){ + a19 = 1; + return -1; + } else if((((((a19==5)&&(((!(a25==1)&&((a7==1)&&(!(a0==1)&&(!(a24==1)&&((input==3)&&((a29==6)||(a29==7)))))))&&(a22==1))&&!(a11==1)))&&!(a20==1))&&(a28==1))&&(a14==9))){ + a29 = 5; + a19 = 1; + a25 = 1; + a0 = 1; + a20 = 1; + a24 = 1; + a11 = 1; + a14 = 8; + return -1; + } else if(((a14==8)&&((a19==3)&&((((a24==1)&&((a11==1)&&(((((((a29==8)||(a29==9))&&(input==3))&&(a28==1))&&!(a0==1))&&(a25==1))&&!(a7==1))))&&(a22==1))&&!(a20==1))))){ + a20 = 1; + a25 = 0; + a29 = 9; + a7 = 1; + return 23; + } else if(((a28==1)&&(((a25==1)&&(((a29==9)&&((a0==1)&&(((((a11==1)&&((input==1)&&!(a20==1)))&&(a24==1))&&(a19==3))&&(a14==8))))&&(a7==1)))&&(a22==1)))){ + a24 = 0; + a29 = 5; + a19 = 2; + return 24; + } else if(((a22==1)&&((((!(a25==1)&&((a24==1)&&((((a28==1)&&((((a29==8)||(a29==9))&&(input==1))&&!(a7==1)))&&(a14==10))&&(a11==1))))&&(a19==3))&&!(a20==1))&&(a0==1)))){ + a24 = 0; + a11 = 0; + a19 = 2; + a29 = 8; + a14 = 8; + a7 = 1; + return 21; + } else if((((((a19==5)&&((!(a25==1)&&(!(a24==1)&&(!(a7==1)&&((!(a11==1)&&((input==4)&&(a28==1)))&&(a22==1)))))&&(a29==9)))&&(a14==8))&&!(a0==1))&&!(a20==1))){ + a14 = 9; + a7 = 1; + a20 = 1; + a29 = 7; + a19 = 4; + return 21; + } else if((((a25==1)&&((a0==1)&&((!(a7==1)&&(((a28==1)&&(((a19==5)&&((a24==1)&&((input==2)&&((a29==8)||((a29==6)||(a29==7))))))&&(a14==8)))&&(a11==1)))&&(a20==1))))&&(a22==1))){ + a7 = 1; + a20 = 0; + a19 = 4; + a29 = 9; + return 21; + } else if(((!(a11==1)&&((((!(a0==1)&&(!(a20==1)&&(((a24==1)&&(((input==5)&&((a29==8)||(a29==9)))&&(a22==1)))&&(a28==1))))&&!(a7==1))&&(a14==8))&&(a19==4)))&&!(a25==1))){ + a19 = 1; + a7 = 1; + a20 = 1; + a11 = 1; + a25 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if(((a14==9)&&((a28==1)&&((((!(a24==1)&&((((a19==5)&&((((a20==1)&&!(a7==1))&&!(a25==1))&&(a29==9)))||((a19==1)&&((a29==5)&&((a25==1)&&((a7==1)&&!(a20==1))))))&&(input==5)))&&(a11==1))&&(a0==1))&&(a22==1))))){ + a7 = 1; + a19 = 1; + a25 = 1; + a20 = 1; + a29 = 5; + a24 = 1; + a14 = 8; + return -1; + } else if((((a7==1)&&((a20==1)&&((a24==1)&&(((((a11==1)&&((a22==1)&&((a19==1)&&((a29==8)&&(input==2)))))&&(a28==1))&&(a0==1))&&(a14==9)))))&&(a25==1))){ + a29 = 5; + a14 = 8; + return -1; + } else if(((((!(a24==1)&&((a7==1)&&((!(a20==1)&&((((input==6)&&((((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))||((a19==5)&&(a29==5))))&&(a28==1))&&(a0==1)))&&(a11==1))))&&(a25==1))&&(a22==1))&&(a14==8))){ + a19 = 5; + a7 = 0; + a25 = 0; + a29 = 7; + a11 = 0; + return 23; + } else if(((a22==1)&&(((a28==1)&&((a19==3)&&(!(a11==1)&&(!(a0==1)&&(((a24==1)&&(((((a29==6)||(a29==7))&&(input==4))&&!(a20==1))&&!(a25==1)))&&(a7==1))))))&&(a14==8)))){ + a11 = 1; + a29 = 5; + a25 = 1; + a7 = 0; + return 24; + } else if((((!(a25==1)&&((a24==1)&&(!(a20==1)&&(!(a0==1)&&((((a19==5)&&((a28==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==6))))&&(a7==1))&&(a22==1))))))&&!(a11==1))&&(a14==9))){ + a11 = 1; + a29 = 9; + a14 = 8; + a20 = 1; + a24 = 0; + return 23; + } else if((((((a0==1)&&((a11==1)&&((a24==1)&&(((a20==1)&&((((input==5)&&((a29==7)||(a29==8)))&&(a28==1))&&!(a7==1)))&&(a14==9)))))&&(a19==5))&&(a25==1))&&(a22==1))){ + a19 = 1; + a7 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((((((!(a11==1)&&(!(a24==1)&&((a22==1)&&(((a25==1)&&((input==3)&&((a29==8)||(a29==9))))&&(a28==1)))))&&(a19==1))&&!(a7==1))&&(a0==1))&&(a14==9))&&(a20==1))){ + a14 = 8; + a29 = 5; + a7 = 1; + a11 = 1; + a24 = 1; + return -1; + } else if(((((a20==1)&&(((((((((input==1)&&(a28==1))&&!(a11==1))&&!(a0==1))&&(a14==9))&&!(a7==1))&&(a22==1))&&(a29==6))&&!(a24==1)))&&(a25==1))&&(a19==1))){ + a24 = 1; + a19 = 5; + a29 = 8; + a7 = 1; + a0 = 1; + return -1; + } else if(((a7==1)&&((!(a25==1)&&(((a22==1)&&(((a11==1)&&((a29==8)&&(((a28==1)&&(!(a20==1)&&(input==6)))&&(a19==3))))&&(a24==1)))&&(a0==1)))&&(a14==8)))){ + a11 = 0; + a25 = 1; + a20 = 1; + a29 = 5; + return 21; + } else if((((a19==5)&&((a0==1)&&(((a11==1)&&((!(a7==1)&&(!(a24==1)&&(((a22==1)&&(((a29==8)||(a29==9))&&(input==4)))&&(a14==9))))&&(a25==1)))&&!(a20==1))))&&(a28==1))){ + a14 = 8; + a29 = 5; + a24 = 1; + a7 = 1; + a19 = 1; + a20 = 1; + return -1; + } else if((((a7==1)&&((a29==5)&&((a25==1)&&((!(a11==1)&&((a28==1)&&((a19==4)&&((a22==1)&&(!(a0==1)&&(!(a20==1)&&(input==6)))))))&&!(a24==1)))))&&(a14==9))){ + a24 = 1; + a0 = 1; + a20 = 1; + a19 = 3; + a7 = 0; + return 23; + } else if((!(a0==1)&&(((((a22==1)&&(!(a25==1)&&(((a14==8)&&((a24==1)&&((input==2)&&(((a19==3)&&(a29==6))||(((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))))))&&(a20==1))))&&!(a11==1))&&(a28==1))&&!(a7==1)))){ + a19 = 3; + a11 = 1; + a0 = 1; + a29 = 6; + a24 = 0; + a20 = 0; + return -1; + } else if((((a25==1)&&((a19==3)&&((((a14==8)&&((a22==1)&&((((a28==1)&&((input==3)&&(((a29==7)||(a29==8))||(a29==9))))&&!(a7==1))&&!(a20==1))))&&!(a0==1))&&!(a11==1))))&&(a24==1))){ + a29 = 9; + a11 = 1; + a20 = 1; + return 21; + } else if((((((a19==1)&&(!(a0==1)&&(!(a20==1)&&((((a11==1)&&((((a29==5)||(a29==6))&&(input==5))&&(a22==1)))&&(a28==1))&&!(a7==1)))))&&(a14==9))&&(a24==1))&&(a25==1))){ + a20 = 1; + a29 = 7; + a7 = 1; + return -1; + } else if((!(a20==1)&&((a28==1)&&((a24==1)&&((((a0==1)&&(((a14==9)&&(((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))&&(input==3))&&!(a25==1)))&&(a22==1)))&&!(a11==1))&&(a7==1)))))){ + a20 = 1; + a25 = 1; + a19 = 5; + a29 = 5; + return 21; + } else if(((a14==9)&&((!(a7==1)&&((a19==1)&&(!(a25==1)&&(((a22==1)&&(!(a0==1)&&((a11==1)&&(((input==2)&&((a29==8)||(a29==9)))&&(a24==1)))))&&(a28==1)))))&&!(a20==1)))){ + a19 = 2; + a20 = 1; + a25 = 1; + a29 = 6; + return -1; + } else if((((((((a20==1)&&((((((a0==1)&&(input==3))&&(a22==1))&&(a29==8))&&(a24==1))&&(a19==5)))&&(a25==1))&&(a7==1))&&(a11==1))&&(a28==1))&&(a14==10))){ + a29 = 5; + a14 = 8; + a25 = 0; + a19 = 4; + return -1; + } else if((!(a7==1)&&((a14==8)&&(!(a0==1)&&((((((a20==1)&&(((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))&&(input==5))&&(a28==1)))&&(a24==1))&&(a22==1))&&(a25==1))&&(a11==1)))))){ + a29 = 5; + a7 = 1; + a19 = 5; + return -1; + } else if(((a22==1)&&(((a25==1)&&((a0==1)&&((a20==1)&&((!(a24==1)&&(!(a7==1)&&((((input==2)&&(a19==2))&&(a28==1))&&(a14==8))))&&!(a11==1)))))&&(a29==6)))){ + a24 = 1; + a19 = 1; + a11 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if(((a28==1)&&(!(a20==1)&&((((a29==5)&&(!(a11==1)&&((a25==1)&&(((a14==9)&&(!(a24==1)&&(!(a0==1)&&(input==1))))&&(a19==3)))))&&!(a7==1))&&(a22==1))))){ + a7 = 1; + a24 = 1; + a14 = 8; + a0 = 1; + a20 = 1; + a11 = 1; + a19 = 1; + return -1; + } else if((!(a25==1)&&(((a19==2)&&(!(a20==1)&&(((((((((a29==8)||((a29==6)||(a29==7)))&&(input==2))&&(a22==1))&&(a28==1))&&(a7==1))&&(a24==1))&&!(a0==1))&&!(a11==1))))&&(a14==8)))){ + a0 = 1; + a14 = 9; + a24 = 0; + a7 = 0; + a29 = 7; + a20 = 1; + return 21; + } else if((!(a7==1)&&(((a22==1)&&(((!(a20==1)&&(((a19==2)&&((a28==1)&&((!(a11==1)&&(input==2))&&(a24==1))))&&(a14==9)))&&(a29==5))&&!(a0==1)))&&(a25==1)))){ + a14 = 8; + a24 = 0; + a19 = 3; + a11 = 1; + a20 = 1; + return 23; + } else if((!(a25==1)&&(((!(a0==1)&&((a22==1)&&((a11==1)&&(!(a24==1)&&((a19==3)&&((((input==1)&&((a29==6)||(a29==7)))&&(a14==8))&&!(a7==1)))))))&&(a28==1))&&(a20==1)))){ + a0 = 1; + a29 = 5; + a19 = 1; + a14 = 9; + return 24; + } else if(((!(a7==1)&&((a14==9)&&((a19==4)&&(((a25==1)&&((((a0==1)&&(((input==3)&&(a28==1))&&!(a20==1)))&&(a29==9))&&!(a24==1)))&&!(a11==1)))))&&(a22==1))){ + a25 = 0; + a29 = 8; + a7 = 1; + a20 = 1; + return 24; + } else if((!(a20==1)&&((a28==1)&&((a22==1)&&(((!(a11==1)&&((((((input==1)&&(a7==1))&&(a19==3))&&(a29==9))&&!(a24==1))&&(a14==9)))&&(a25==1))&&!(a0==1)))))){ + a19 = 2; + return -1; + } else if((!(a0==1)&&((((a20==1)&&(((a19==2)&&(((a29==8)&&(!(a25==1)&&((a14==9)&&((a24==1)&&(input==3)))))&&(a22==1)))&&(a7==1)))&&(a28==1))&&!(a11==1)))){ + a0 = 1; + a11 = 1; + a29 = 7; + a19 = 3; + a24 = 0; + return 24; + } else if(((a28==1)&&(((a20==1)&&(!(a11==1)&&((a29==7)&&(((a7==1)&&(((a24==1)&&((!(a0==1)&&(input==5))&&(a22==1)))&&(a25==1)))&&(a14==9)))))&&(a19==1)))){ + a14 = 8; + a0 = 1; + a29 = 5; + a11 = 1; + return -1; + } else if(((a14==8)&&((((((a11==1)&&((a7==1)&&((!(a20==1)&&((((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))&&(input==6)))&&!(a24==1))))&&(a25==1))&&(a28==1))&&(a22==1))&&(a0==1)))){ + a29 = 5; + a20 = 1; + a24 = 1; + a19 = 1; + return -1; + } else if((((((!(a11==1)&&((((a14==8)&&((a20==1)&&((a7==1)&&(((a29==7)||(a29==8))&&(input==6)))))&&(a24==1))&&(a28==1)))&&(a22==1))&&(a0==1))&&(a25==1))&&(a19==5))){ + a0 = 0; + a25 = 0; + a29 = 6; + a7 = 0; + a11 = 1; + return 21; + } else if(((a0==1)&&((a14==8)&&(((((!(a20==1)&&((a28==1)&&((a11==1)&&(((input==2)&&!(a25==1))&&!(a7==1)))))&&!(a24==1))&&(a22==1))&&(a19==4))&&(a29==7))))){ + a19 = 3; + a7 = 1; + a24 = 1; + a0 = 0; + a29 = 8; + return 21; + } else if((((a19==2)&&((a7==1)&&(!(a20==1)&&((a28==1)&&(!(a25==1)&&((!(a11==1)&&(((((a29==7)||(a29==8))&&(input==4))&&(a14==9))&&!(a0==1)))&&!(a24==1)))))))&&(a22==1))){ + a20 = 1; + a25 = 1; + a24 = 1; + a29 = 9; + a14 = 8; + return -1; + } else if(((a25==1)&&(((((((a19==2)&&(((a0==1)&&((a28==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==4))))&&(a7==1)))&&!(a24==1))&&(a22==1))&&(a14==9))&&(a20==1))&&!(a11==1)))){ + a19 = 4; + a7 = 0; + a20 = 0; + a25 = 0; + a29 = 7; + a24 = 1; + return 21; + } else if((((a14==8)&&((((a25==1)&&(((a24==1)&&(((((input==5)&&((a29==7)||((a29==5)||(a29==6))))&&(a28==1))&&(a11==1))&&(a22==1)))&&(a7==1)))&&(a0==1))&&(a19==4)))&&!(a20==1))){ + a29 = 5; + a20 = 1; + a19 = 1; + return -1; + } else if(((a0==1)&&(((a22==1)&&((a28==1)&&((((a20==1)&&((a11==1)&&((a19==4)&&((a7==1)&&((a29==5)&&(input==1))))))&&(a14==10))&&(a24==1))))&&(a25==1)))){ + a19 = 1; + a0 = 0; + a29 = 9; + a14 = 8; + return 23; + } else if((!(a0==1)&&((((a14==8)&&((a28==1)&&(!(a20==1)&&((((a19==3)&&(((input==5)&&((a29==7)||((a29==5)||(a29==6))))&&(a22==1)))&&(a11==1))&&(a25==1)))))&&!(a7==1))&&!(a24==1)))){ + a24 = 1; + a7 = 1; + a20 = 1; + a29 = 5; + a19 = 1; + a0 = 1; + return -1; + } else if(((a22==1)&&(((a14==8)&&(((a25==1)&&((((!(a24==1)&&(((a7==1)&&(input==1))&&!(a20==1)))&&(a28==1))&&(a11==1))&&(a29==8)))&&(a19==5)))&&(a0==1)))){ + a19 = 1; + a29 = 5; + a24 = 1; + a20 = 1; + return -1; + } else if(((a20==1)&&((a7==1)&&(((a0==1)&&((a28==1)&&(((((a11==1)&&((((a19==3)&&(a29==5))||(((a29==8)&&(a19==2))||((a19==2)&&(a29==9))))&&(input==5)))&&(a25==1))&&!(a24==1))&&(a22==1))))&&(a14==10))))){ + a24 = 1; + a19 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if((((!(a25==1)&&(((!(a24==1)&&(!(a11==1)&&((((a14==9)&&((input==1)&&((a29==5)||(a29==6))))&&!(a0==1))&&(a28==1))))&&(a22==1))&&(a7==1)))&&(a19==2))&&(a20==1))){ + a19 = 3; + a29 = 5; + a0 = 1; + return 23; + } else if(((a25==1)&&((a29==7)&&((a0==1)&&(((((a28==1)&&(((a7==1)&&((a20==1)&&((a14==9)&&(input==3))))&&(a22==1)))&&(a19==5))&&!(a24==1))&&(a11==1)))))){ + a29 = 6; + a7 = 0; + a20 = 0; + return 21; + } else if((!(a0==1)&&(((a19==1)&&(((!(a24==1)&&((a22==1)&&(((((input==5)&&!(a11==1))&&(a14==9))&&(a20==1))&&(a25==1))))&&(a28==1))&&(a29==7)))&&!(a7==1)))){ + a7 = 1; + a20 = 0; + a14 = 8; + a25 = 0; + a0 = 1; + a19 = 4; + return 23; + } else if(((!(a25==1)&&(((a19==5)&&((((((a28==1)&&(!(a11==1)&&((a24==1)&&(input==1))))&&(a22==1))&&(a14==8))&&!(a7==1))&&!(a0==1)))&&!(a20==1)))&&(a29==7))){ + a7 = 1; + a20 = 1; + a29 = 8; + a25 = 1; + a19 = 4; + a14 = 9; + return 24; + } else if((((((((!(a7==1)&&(!(a20==1)&&((((input==1)&&((a29==7)||(a29==8)))&&(a14==8))&&(a22==1))))&&(a0==1))&&(a11==1))&&(a28==1))&&(a25==1))&&(a24==1))&&(a19==2))){ + a25 = 0; + a29 = 9; + a20 = 1; + a11 = 0; + a19 = 5; + return 24; + } else if(((((((!(a24==1)&&((a14==8)&&((a22==1)&&((a0==1)&&((a19==3)&&(((a29==5)||(a29==6))&&(input==3)))))))&&!(a20==1))&&(a7==1))&&(a28==1))&&!(a25==1))&&!(a11==1))){ + a20 = 1; + a0 = 0; + a24 = 1; + a7 = 0; + a11 = 1; + a29 = 6; + a25 = 1; + return 23; + } else if(((((a7==1)&&(((a22==1)&&((((a11==1)&&((((a25==1)&&(input==2))&&(a19==5))&&(a28==1)))&&(a20==1))&&(a14==10)))&&(a0==1)))&&(a29==6))&&!(a24==1))){ + a19 = 1; + a29 = 5; + a14 = 8; + a24 = 1; + return -1; + } else if((((a20==1)&&((((a19==2)&&(((a28==1)&&((a11==1)&&(!(a7==1)&&(((a0==1)&&(input==6))&&(a22==1)))))&&(a25==1)))&&(a14==8))&&!(a24==1)))&&(a29==7))){ + a24 = 1; + a7 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if((((((a28==1)&&(((((((((a29==9)||((a29==7)||(a29==8)))&&(input==5))&&(a22==1))&&(a14==9))&&!(a11==1))&&(a25==1))&&!(a0==1))&&!(a20==1)))&&(a19==3))&&(a7==1))&&(a24==1))){ + a7 = 0; + a19 = 2; + a29 = 8; + a20 = 1; + a14 = 8; + return 24; + } else if(((!(a11==1)&&((!(a24==1)&&(((((((a14==9)&&(!(a20==1)&&(input==3)))&&(a28==1))&&!(a0==1))&&(a19==3))&&(a25==1))&&(a29==9)))&&(a7==1)))&&(a22==1))){ + a0 = 1; + a29 = 5; + a7 = 0; + a19 = 5; + return 24; + } else if(((a14==9)&&((a28==1)&&((a0==1)&&(((input==6)&&(((((((!(a11==1)&&(a20==1))&&(a7==1))&&(a24==1))&&(a25==1))&&(a29==5))&&(a19==1))||(((((!(a24==1)&&((!(a20==1)&&(a11==1))&&!(a7==1)))&&!(a25==1))&&(a29==8))&&(a19==5))||(((!(a25==1)&&(!(a24==1)&&(!(a7==1)&&((a11==1)&&!(a20==1)))))&&(a29==9))&&(a19==5)))))&&(a22==1)))))){ + a11 = 0; + a29 = 9; + a24 = 1; + a20 = 1; + a25 = 0; + a19 = 5; + a7 = 1; + return 23; + } else if((((((((a24==1)&&(((!(a25==1)&&((((a29==7)||(a29==8))&&(input==2))&&!(a11==1)))&&(a7==1))&&(a19==1)))&&!(a20==1))&&(a22==1))&&(a14==9))&&(a28==1))&&!(a0==1))){ + a29 = 5; + a20 = 1; + a19 = 5; + a11 = 1; + a7 = 0; + a25 = 1; + return -1; + } else if(((a0==1)&&((((a29==6)&&((((a14==8)&&((a7==1)&&((((input==5)&&!(a11==1))&&(a24==1))&&(a19==5))))&&(a20==1))&&(a28==1)))&&(a22==1))&&(a25==1)))){ + a7 = 0; + a29 = 9; + a0 = 0; + a20 = 0; + a19 = 3; + return 21; + } else if(((a19==2)&&(!(a25==1)&&((!(a7==1)&&(((a0==1)&&(((a20==1)&&((a14==8)&&((((a29==8)||(a29==9))&&(input==4))&&(a22==1))))&&(a11==1)))&&(a24==1)))&&(a28==1))))){ + a29 = 7; + a25 = 1; + a19 = 5; + a20 = 0; + return 21; + } else if(((a14==9)&&(((a22==1)&&(((!(a7==1)&&(((a28==1)&&(!(a0==1)&&(((input==4)&&(((a29==7)||(a29==8))||(a29==9)))&&(a24==1))))&&(a25==1)))&&(a19==2))&&!(a11==1)))&&!(a20==1)))){ + a29 = 6; + a11 = 1; + a20 = 1; + a7 = 1; + a19 = 5; + return -1; + } else if((((a14==9)&&((a20==1)&&((a0==1)&&(((!(a24==1)&&((a7==1)&&((input==1)&&(((((a25==1)&&(a29==8))&&(a19==5))||((a19==5)&&((a25==1)&&(a29==9))))||((!(a25==1)&&(a29==5))&&(a19==1))))))&&(a28==1))&&(a11==1)))))&&(a22==1))){ + a20 = 0; + a25 = 1; + a0 = 0; + a19 = 3; + a14 = 8; + a29 = 8; + a24 = 1; + return 21; + } else if((((a0==1)&&((((a25==1)&&((a20==1)&&((a22==1)&&((a24==1)&&((a19==5)&&((a14==10)&&((((a29==5)||(a29==6))||(a29==7))&&(input==2))))))))&&(a11==1))&&!(a7==1)))&&(a28==1))){ + a14 = 9; + a0 = 0; + a20 = 0; + a29 = 5; + a19 = 4; + a25 = 0; + a7 = 1; + a11 = 0; + return -1; + } else if((((a11==1)&&((a22==1)&&((((a7==1)&&((a29==9)&&((a20==1)&&((!(a24==1)&&((input==5)&&(a28==1)))&&(a19==4)))))&&(a14==9))&&(a25==1))))&&!(a0==1))){ + a24 = 1; + a0 = 1; + a14 = 8; + a19 = 1; + a29 = 5; + return -1; + } else if((((a11==1)&&(((a25==1)&&((a19==5)&&(((a7==1)&&((a28==1)&&((((a14==9)&&(input==6))&&!(a0==1))&&(a22==1))))&&(a29==7))))&&!(a24==1)))&&!(a20==1))){ + a29 = 5; + a19 = 4; + a25 = 0; + a24 = 1; + a14 = 8; + a0 = 1; + return 24; + } else if((((!(a24==1)&&((a14==9)&&(!(a7==1)&&((a22==1)&&((!(a11==1)&&((a29==8)&&(((input==3)&&(a20==1))&&(a28==1))))&&!(a0==1))))))&&(a19==1))&&(a25==1))){ + a0 = 1; + a11 = 1; + a7 = 1; + a24 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if((!(a11==1)&&(((a14==9)&&(((a20==1)&&((a0==1)&&(((!(a25==1)&&((a7==1)&&((a28==1)&&(input==2))))&&(a29==8))&&(a19==3))))&&(a22==1)))&&!(a24==1)))){ + a29 = 9; + a19 = 4; + a25 = 1; + a20 = 0; + a7 = 0; + a11 = 1; + return 23; + } else if(((((a24==1)&&((a11==1)&&((a22==1)&&((a0==1)&&(((a28==1)&&((a7==1)&&((input==3)&&((((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))||((a29==6)&&(a19==5))))))&&(a14==9))))))&&(a20==1))&&!(a25==1))){ + a0 = 0; + a29 = 7; + a14 = 8; + a11 = 0; + a19 = 2; + a20 = 0; + a24 = 0; + a7 = 0; + return -1; + } else if((((((a25==1)&&((((!(a20==1)&&((!(a24==1)&&((a14==9)&&(input==1)))&&(a28==1)))&&(a0==1))&&(a29==9))&&(a19==3)))&&(a22==1))&&!(a7==1))&&(a11==1))){ + a19 = 5; + a29 = 7; + a20 = 1; + a7 = 1; + return -1; + } else if((((a0==1)&&((a7==1)&&((a11==1)&&((a14==10)&&((a22==1)&&((((((input==1)&&(((a29==5)||(a29==6))||(a29==7)))&&!(a25==1))&&(a19==1))&&(a20==1))&&(a28==1)))))))&&!(a24==1))){ + a25 = 1; + a19 = 4; + a7 = 0; + a29 = 8; + a24 = 1; + return -1; + } else if((((a28==1)&&(!(a25==1)&&((((a14==9)&&(((((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))&&(input==4))&&(a20==1))&&(a24==1))&&(a0==1)))&&(a22==1))&&(a11==1))))&&!(a7==1))){ + a20 = 0; + a19 = 4; + a0 = 0; + a7 = 1; + a24 = 0; + a11 = 0; + a29 = 9; + return 23; + } else if(((a14==9)&&((a7==1)&&(((a20==1)&&(((a22==1)&&(((a28==1)&&(((((a29==8)||(a29==9))&&(input==4))&&(a0==1))&&!(a11==1)))&&(a19==5)))&&!(a25==1)))&&!(a24==1))))){ + a29 = 6; + a7 = 0; + a19 = 3; + a14 = 8; + a20 = 0; + return 24; + } else if(((a19==4)&&(!(a11==1)&&((((a28==1)&&((((a0==1)&&((((input==6)&&((a29==5)||(a29==6)))&&!(a24==1))&&(a20==1)))&&(a25==1))&&(a22==1)))&&(a14==9))&&(a7==1))))){ + a11 = 1; + a19 = 1; + a14 = 8; + a24 = 1; + a29 = 5; + return -1; + } else if((((((a20==1)&&((a7==1)&&(((a19==3)&&(!(a25==1)&&(((a11==1)&&(((a29==8)||(a29==9))&&(input==5)))&&!(a24==1))))&&(a22==1))))&&(a14==9))&&!(a0==1))&&(a28==1))){ + a24 = 1; + a25 = 1; + a29 = 9; + return -1; + } else if((((!(a11==1)&&(((a14==9)&&(((a20==1)&&((((((a29==7)||((a29==5)||(a29==6)))&&(input==3))&&!(a7==1))&&(a25==1))&&(a28==1)))&&(a22==1)))&&!(a0==1)))&&(a19==3))&&!(a24==1))){ + a29 = 6; + a7 = 1; + a11 = 1; + a14 = 8; + a25 = 0; + a20 = 0; + a19 = 4; + return -1; + } else if((((a0==1)&&((a7==1)&&((((((a20==1)&&((((input==5)&&((a29==7)||(a29==8)))&&(a28==1))&&(a19==5)))&&!(a24==1))&&(a22==1))&&(a14==8))&&!(a25==1))))&&!(a11==1))){ + a29 = 8; + a19 = 1; + a11 = 1; + a25 = 1; + a20 = 0; + a14 = 9; + return 24; + } else if(((!(a20==1)&&((((!(a11==1)&&(((a28==1)&&((((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))||((a29==6)&&(a19==4)))&&(input==6))&&!(a25==1)))&&(a7==1)))&&(a14==8))&&(a24==1))&&(a22==1)))&&(a0==1))){ + a19 = 3; + a24 = 0; + a29 = 9; + return 21; + } return calculate_output27(input); + } + + int calculate_output27(int input) { + if(((a11==1)&&(((a0==1)&&(((!(a7==1)&&((((a24==1)&&((input==6)&&((((a29==8)&&(a19==1))||((a19==1)&&(a29==9)))||((a29==5)&&(a19==2)))))&&(a14==10))&&(a20==1)))&&(a22==1))&&(a25==1)))&&(a28==1)))){ + a14 = 8; + a7 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((a28==1)&&((a19==5)&&(((a25==1)&&(((a24==1)&&(((!(a0==1)&&(((input==6)&&((a29==5)||(a29==6)))&&(a22==1)))&&!(a7==1))&&(a20==1)))&&(a11==1)))&&(a14==9))))){ + a29 = 5; + a0 = 1; + a20 = 0; + a19 = 1; + return -1; + } else if(((a25==1)&&(!(a7==1)&&((((((((a28==1)&&((input==5)&&(((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))))&&(a22==1))&&(a20==1))&&(a11==1))&&(a14==9))&&!(a24==1))&&!(a0==1))))){ + a20 = 0; + a11 = 0; + a0 = 1; + a24 = 1; + a19 = 2; + a7 = 1; + a29 = 5; + return 23; + } else if(((a25==1)&&((((((a14==8)&&((a11==1)&&(((a0==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==2))&&!(a20==1)))&&!(a24==1))))&&(a19==1))&&(a22==1))&&!(a7==1))&&(a28==1)))){ + a24 = 1; + a29 = 7; + a0 = 0; + return 21; + } else if((!(a0==1)&&((((a22==1)&&(!(a24==1)&&(((((!(a11==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==4)))&&(a14==9))&&(a19==3))&&(a28==1))&&!(a7==1))))&&(a20==1))&&!(a25==1)))){ + a19 = 1; + a24 = 1; + a29 = 5; + a11 = 1; + a0 = 1; + a7 = 1; + a25 = 1; + a14 = 8; + return -1; + } else if((!(a20==1)&&(((a22==1)&&((!(a7==1)&&((((a19==2)&&(((a11==1)&&((input==6)&&((a29==6)||(a29==7))))&&(a14==9)))&&(a25==1))&&(a28==1)))&&(a24==1)))&&(a0==1)))){ + a29 = 8; + a7 = 1; + a20 = 1; + a14 = 10; + a19 = 4; + return 21; + } else if(((a7==1)&&((a19==1)&&((((!(a11==1)&&(((a20==1)&&((a22==1)&&((a0==1)&&(!(a24==1)&&(input==2)))))&&(a29==9)))&&(a14==8))&&(a28==1))&&!(a25==1))))){ + a11 = 1; + a29 = 8; + a19 = 3; + a25 = 1; + a14 = 9; + a7 = 0; + return 23; + } else if(((a14==9)&&(((((((((((input==4)&&((a29==9)||((a29==7)||(a29==8))))&&!(a11==1))&&(a25==1))&&!(a0==1))&&!(a24==1))&&(a28==1))&&(a19==2))&&(a20==1))&&(a22==1))&&!(a7==1)))){ + a29 = 9; + a19 = 5; + a20 = 0; + a0 = 1; + return -1; + } else if(((a0==1)&&(((!(a24==1)&&(((((!(a20==1)&&((input==2)&&((((a19==2)&&(a29==8))||((a29==9)&&(a19==2)))||((a29==5)&&(a19==3)))))&&(a25==1))&&(a22==1))&&(a14==9))&&(a11==1)))&&!(a7==1))&&(a28==1)))){ + a29 = 8; + a19 = 2; + a7 = 1; + return 24; + } else if(((!(a11==1)&&((a28==1)&&((((((a24==1)&&((a22==1)&&((input==5)&&(((a19==1)&&(a29==9))||((a19==2)&&(a29==5))))))&&!(a0==1))&&!(a25==1))&&(a7==1))&&(a20==1))))&&(a14==9))){ + a14 = 8; + a25 = 1; + a24 = 0; + a7 = 0; + a29 = 7; + a19 = 2; + return -1; + } else if(((!(a25==1)&&((a22==1)&&((((!(a11==1)&&(((a28==1)&&((a20==1)&&(((a29==7)||(a29==8))&&(input==2))))&&(a0==1)))&&(a14==9))&&(a19==4))&&!(a7==1))))&&(a24==1))){ + a11 = 1; + a25 = 1; + a24 = 0; + a29 = 8; + a19 = 3; + return 23; + } else if((!(a0==1)&&(!(a24==1)&&(((((a22==1)&&((((((a28==1)&&(input==5))&&(a11==1))&&(a29==8))&&(a14==9))&&(a19==3)))&&!(a25==1))&&!(a20==1))&&!(a7==1))))){ + a29 = 9; + a0 = 1; + a7 = 1; + a19 = 1; + return 24; + } else if((((a24==1)&&((a22==1)&&((a11==1)&&(((((a20==1)&&((a14==8)&&((input==1)&&(((a29==5)&&(a19==2))||(((a29==8)&&(a19==1))||((a29==9)&&(a19==1)))))))&&!(a0==1))&&!(a25==1))&&(a28==1)))))&&(a7==1))){ + a29 = 7; + a19 = 4; + a7 = 0; + a0 = 1; + a25 = 1; + return -1; + } else if(((a19==4)&&(((a25==1)&&((((a22==1)&&(((a11==1)&&((((input==4)&&(a24==1))&&(a29==9))&&(a0==1)))&&(a7==1)))&&(a28==1))&&!(a20==1)))&&(a14==8)))){ + a19 = 1; + a29 = 5; + a25 = 0; + a24 = 0; + return 23; + } else if(((((a22==1)&&((a25==1)&&((a20==1)&&((!(a7==1)&&((a0==1)&&((a14==9)&&(((input==1)&&!(a11==1))&&(a28==1)))))&&(a29==7)))))&&(a24==1))&&(a19==3))){ + a25 = 0; + a29 = 9; + a20 = 0; + a7 = 1; + a24 = 0; + a14 = 8; + a19 = 2; + return 21; + } else if((((a22==1)&&(((a14==10)&&((((a0==1)&&((a11==1)&&((((input==6)&&((a29==7)||(a29==8)))&&!(a7==1))&&(a19==5))))&&(a28==1))&&(a24==1)))&&!(a25==1)))&&!(a20==1))){ + a25 = 1; + a29 = 8; + a14 = 8; + a0 = 0; + return 24; + } else if(((a20==1)&&((((a14==9)&&(!(a7==1)&&((((a22==1)&&(!(a24==1)&&(((input==4)&&((a29==6)||(a29==7)))&&(a19==3))))&&!(a11==1))&&(a0==1))))&&(a25==1))&&(a28==1)))){ + a24 = 1; + a29 = 7; + a20 = 0; + return -1; + } else if((!(a24==1)&&(((a22==1)&&(((((a19==3)&&(!(a25==1)&&(((a28==1)&&((input==6)&&!(a11==1)))&&(a14==9))))&&(a20==1))&&!(a0==1))&&(a29==5)))&&(a7==1)))){ + a11 = 1; + a7 = 0; + a29 = 9; + a19 = 1; + a14 = 8; + return 24; + } else if(((a14==9)&&(((((a28==1)&&(((((a19==5)&&((a29==9)&&((!(a7==1)&&(a20==1))&&!(a25==1))))||((a19==1)&&(((a25==1)&&(!(a20==1)&&(a7==1)))&&(a29==5))))&&(input==4))&&(a22==1)))&&!(a24==1))&&(a11==1))&&(a0==1)))){ + a29 = 5; + a7 = 1; + a25 = 1; + a20 = 1; + a24 = 1; + a19 = 1; + a14 = 8; + return -1; + } else if((!(a11==1)&&((a0==1)&&((a25==1)&&((a22==1)&&(((((a28==1)&&((a7==1)&&((((a29==6)&&(a19==3))||(((a29==9)&&(a19==2))||((a29==5)&&(a19==3))))&&(input==1))))&&(a20==1))&&(a14==8))&&(a24==1))))))){ + a7 = 0; + a29 = 6; + a24 = 0; + a19 = 5; + a20 = 0; + return 23; + } else if((((a14==8)&&((a28==1)&&((((a7==1)&&(((a29==7)&&(!(a11==1)&&((a0==1)&&((a22==1)&&(input==1)))))&&(a24==1)))&&!(a20==1))&&(a19==4))))&&!(a25==1))){ + a11 = 1; + a19 = 1; + a20 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if((!(a24==1)&&((((((a25==1)&&((a19==1)&&((a14==8)&&((a0==1)&&(!(a7==1)&&((input==6)&&(((a29==7)||(a29==8))||(a29==9))))))))&&(a11==1))&&(a22==1))&&(a28==1))&&!(a20==1)))){ + a7 = 1; + a20 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if(((a24==1)&&((a22==1)&&((a28==1)&&(!(a20==1)&&(!(a7==1)&&((((((a19==4)&&((((a29==7)||(a29==8))||(a29==9))&&(input==3)))&&!(a0==1))&&!(a11==1))&&(a14==8))&&(a25==1)))))))){ + a19 = 1; + a7 = 1; + a25 = 0; + a11 = 1; + a29 = 8; + a0 = 1; + return 24; + } else if(((((a28==1)&&((a25==1)&&((a7==1)&&(!(a11==1)&&(((a0==1)&&((a19==4)&&(((input==5)&&((a29==5)||(a29==6)))&&(a14==8))))&&!(a24==1))))))&&!(a20==1))&&(a22==1))){ + a20 = 1; + a14 = 9; + a19 = 2; + a7 = 0; + a24 = 1; + a29 = 5; + return 24; + } else if((!(a24==1)&&(((a11==1)&&(((a0==1)&&((a28==1)&&(((((a22==1)&&(((a29==6)||(a29==7))&&(input==2)))&&!(a20==1))&&(a19==1))&&!(a7==1))))&&!(a25==1)))&&(a14==8)))){ + a25 = 1; + a0 = 0; + a24 = 1; + a19 = 3; + a7 = 1; + a29 = 8; + return 21; + } else if(((((((((((!(a20==1)&&((input==2)&&!(a24==1)))&&(a25==1))&&(a29==8))&&(a28==1))&&!(a7==1))&&(a19==3))&&(a22==1))&&!(a0==1))&&(a14==8))&&!(a11==1))){ + a7 = 1; + a20 = 1; + a14 = 9; + a29 = 9; + a19 = 2; + return 23; + } else if(((a28==1)&&((a22==1)&&((a29==9)&&((((a11==1)&&(((!(a25==1)&&(((a14==9)&&(input==4))&&(a19==4)))&&!(a0==1))&&!(a24==1)))&&(a20==1))&&(a7==1)))))){ + a0 = 1; + a29 = 5; + a14 = 8; + a20 = 0; + a11 = 0; + return 21; + } else if((!(a0==1)&&((a28==1)&&((a7==1)&&((((a19==1)&&((a11==1)&&((!(a24==1)&&(!(a25==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==4))))&&!(a20==1))))&&(a14==8))&&(a22==1)))))){ + a29 = 9; + a19 = 3; + a24 = 1; + a7 = 0; + a20 = 1; + return 24; + } else if((((!(a20==1)&&((((((((input==1)&&((((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))||((a19==2)&&(a29==6))))&&!(a25==1))&&!(a11==1))&&(a22==1))&&(a24==1))&&(a0==1))&&(a7==1)))&&(a14==8))&&(a28==1))){ + a7 = 0; + a20 = 1; + a11 = 1; + a29 = 6; + a25 = 1; + a19 = 5; + a0 = 0; + return 24; + } else if(((a24==1)&&((a19==5)&&(((a14==9)&&((a28==1)&&(!(a7==1)&&(!(a20==1)&&(((a25==1)&&(!(a0==1)&&((input==1)&&((a29==8)||((a29==6)||(a29==7))))))&&(a22==1))))))&&!(a11==1))))){ + a19 = 1; + a29 = 5; + a0 = 1; + a11 = 1; + a20 = 1; + a14 = 8; + a7 = 1; + return -1; + } else if(((a14==8)&&(((a22==1)&&(!(a24==1)&&(((((((!(a25==1)&&(input==4))&&(a7==1))&&!(a20==1))&&(a29==7))&&(a11==1))&&(a19==3))&&(a28==1))))&&(a0==1)))){ + a25 = 1; + a24 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a22==1)&&((((a19==2)&&((a28==1)&&((((a11==1)&&((a14==8)&&(((input==3)&&((a29==7)||(a29==8)))&&!(a20==1))))&&(a24==1))&&(a25==1))))&&!(a7==1))&&(a0==1)))){ + a25 = 0; + a11 = 0; + a29 = 6; + a20 = 1; + a19 = 5; + return 24; + } else if((((a29==7)&&((a19==2)&&(!(a24==1)&&((a0==1)&&((a20==1)&&((((((input==1)&&(a14==9))&&!(a7==1))&&!(a25==1))&&(a28==1))&&!(a11==1)))))))&&(a22==1))){ + a29 = 5; + a14 = 8; + a24 = 1; + a25 = 1; + a19 = 1; + a7 = 1; + a11 = 1; + return -1; + } else if(((((!(a7==1)&&((((a28==1)&&((a11==1)&&(((((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))&&(input==5))&&(a22==1))))&&!(a25==1))&&(a20==1)))&&(a24==1))&&(a0==1))&&(a14==9))){ + a7 = 1; + a25 = 1; + a19 = 1; + a14 = 8; + a0 = 0; + a29 = 5; + return 23; + } else if(((((((a29==8)&&(((a22==1)&&(!(a24==1)&&(((!(a0==1)&&(input==4))&&(a19==3))&&!(a25==1))))&&(a14==9)))&&!(a7==1))&&(a28==1))&&!(a11==1))&&!(a20==1))){ + a0 = 1; + a24 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((a22==1)&&((((((!(a0==1)&&((a29==5)&&((((input==5)&&!(a25==1))&&!(a20==1))&&(a24==1))))&&(a19==2))&&(a28==1))&&(a14==8))&&(a7==1))&&!(a11==1)))){ + a7 = 0; + a25 = 1; + a0 = 1; + a14 = 9; + a11 = 1; + a19 = 4; + a20 = 1; + return 23; + } else if((((((((a29==9)&&((a25==1)&&(((a24==1)&&(!(a11==1)&&((input==4)&&(a19==1))))&&(a20==1))))&&(a22==1))&&(a0==1))&&(a28==1))&&(a7==1))&&(a14==8))){ + a7 = 0; + a0 = 0; + a11 = 1; + a20 = 0; + a29 = 6; + return 23; + } else if(((((a28==1)&&((a20==1)&&((a22==1)&&((a25==1)&&((a19==5)&&(((a14==9)&&(!(a7==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==5))))&&!(a0==1)))))))&&!(a24==1))&&!(a11==1))){ + a29 = 8; + a14 = 8; + a24 = 1; + a20 = 0; + a19 = 2; + a11 = 1; + return 24; + } else if((((!(a25==1)&&(((((((a0==1)&&(((input==3)&&((a29==8)||((a29==6)||(a29==7))))&&!(a11==1)))&&(a24==1))&&(a28==1))&&(a20==1))&&(a22==1))&&!(a7==1)))&&(a19==2))&&(a14==9))){ + a14 = 8; + a0 = 0; + a11 = 1; + a29 = 9; + a19 = 3; + return 24; + } else if((!(a25==1)&&(((((a0==1)&&(!(a7==1)&&((a22==1)&&(((((((a29==8)&&(a19==3))||((a19==3)&&(a29==9)))||((a29==5)&&(a19==4)))&&(input==2))&&!(a20==1))&&(a11==1)))))&&(a28==1))&&!(a24==1))&&(a14==9)))){ + a11 = 0; + a19 = 3; + a7 = 1; + a29 = 6; + a0 = 0; + a14 = 8; + return -1; + } else if((!(a7==1)&&((a22==1)&&(((a11==1)&&(((a19==5)&&((((((input==5)&&((a29==8)||(a29==9)))&&(a25==1))&&(a14==9))&&!(a20==1))&&(a0==1)))&&(a28==1)))&&!(a24==1))))){ + a19 = 1; + a24 = 1; + a29 = 5; + a7 = 1; + a20 = 1; + a14 = 8; + return -1; + } else if(((((a28==1)&&(!(a7==1)&&(((a22==1)&&((a11==1)&&((a25==1)&&((a14==10)&&((a20==1)&&((input==1)&&((a29==8)||((a29==6)||(a29==7)))))))))&&(a24==1))))&&(a19==2))&&(a0==1))){ + a14 = 9; + a7 = 1; + a29 = 6; + a0 = 0; + a25 = 0; + return -1; + } else if(((((((a19==4)&&(((((a11==1)&&(!(a20==1)&&((a24==1)&&(input==2))))&&(a22==1))&&(a28==1))&&(a0==1)))&&(a14==10))&&(a25==1))&&(a29==6))&&!(a7==1))){ + a25 = 0; + a14 = 9; + a29 = 9; + a11 = 0; + return 24; + } else if((!(a24==1)&&((((((((a20==1)&&((input==3)&&(((!(a25==1)&&(a29==5))&&(a19==1))||(((a19==5)&&((a25==1)&&(a29==8)))||(((a25==1)&&(a29==9))&&(a19==5))))))&&(a11==1))&&(a28==1))&&(a7==1))&&(a14==8))&&(a22==1))&&(a0==1)))){ + a29 = 5; + a24 = 1; + a19 = 1; + a25 = 1; + return -1; + } else if(((a28==1)&&(!(a20==1)&&((a29==6)&&((((((a25==1)&&((((a22==1)&&(input==4))&&(a19==1))&&!(a11==1)))&&(a24==1))&&!(a7==1))&&!(a0==1))&&(a14==9)))))){ + a11 = 1; + a24 = 0; + a29 = 8; + a0 = 1; + a20 = 1; + a19 = 2; + return -1; + } else if((!(a25==1)&&(((a20==1)&&((a29==5)&&((((a24==1)&&(((((input==5)&&(a19==4))&&(a22==1))&&(a28==1))&&(a7==1)))&&!(a0==1))&&(a11==1))))&&(a14==9)))){ + a14 = 8; + a0 = 1; + a25 = 1; + a19 = 1; + return -1; + } else if(((a22==1)&&(!(a7==1)&&((a14==10)&&((a24==1)&&(!(a20==1)&&(((a0==1)&&(((a25==1)&&((a19==2)&&(((a29==7)||(a29==8))&&(input==6))))&&(a11==1)))&&(a28==1)))))))){ + a14 = 8; + a25 = 0; + a19 = 4; + a7 = 1; + a29 = 6; + a0 = 0; + return 23; + } else if((((a11==1)&&(!(a20==1)&&((a7==1)&&((!(a0==1)&&((a19==3)&&((a22==1)&&((a14==9)&&((((a29==8)||(a29==9))&&(input==6))&&!(a25==1))))))&&!(a24==1)))))&&(a28==1))){ + a24 = 1; + a0 = 1; + a14 = 8; + a19 = 4; + a25 = 1; + a7 = 0; + a29 = 5; + a20 = 1; + return 23; + } else if(((a14==9)&&((!(a24==1)&&(!(a7==1)&&((!(a20==1)&&(((a19==2)&&(!(a0==1)&&((a28==1)&&(((a29==8)||(a29==9))&&(input==1)))))&&!(a11==1)))&&(a22==1))))&&(a25==1)))){ + a19 = 1; + a20 = 1; + a29 = 5; + a0 = 1; + a14 = 8; + a11 = 1; + a24 = 1; + a7 = 1; + return -1; + } else if((((((((a24==1)&&(((a14==8)&&((a25==1)&&(!(a11==1)&&((input==2)&&((a29==8)||(a29==9))))))&&(a28==1)))&&(a19==5))&&!(a0==1))&&(a22==1))&&(a20==1))&&!(a7==1))){ + a0 = 1; + a19 = 1; + a7 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if(((((!(a7==1)&&(((((((a14==8)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==6)))&&(a0==1))&&(a19==5))&&(a22==1))&&(a25==1))&&(a28==1)))&&(a20==1))&&!(a24==1))&&(a11==1))){ + a29 = 8; + a0 = 0; + a20 = 0; + a25 = 0; + a7 = 1; + a24 = 1; + a19 = 1; + return 24; + } else if(((((a28==1)&&((a0==1)&&((a7==1)&&(((a20==1)&&((a19==4)&&((a29==6)&&((a22==1)&&(!(a11==1)&&(input==2))))))&&(a24==1)))))&&(a14==8))&&(a25==1))){ + a19 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if(((((a14==10)&&(((!(a25==1)&&((a11==1)&&(!(a7==1)&&(((a0==1)&&((a19==2)&&(input==2)))&&!(a20==1)))))&&(a28==1))&&(a24==1)))&&(a22==1))&&(a29==9))){ + a7 = 1; + a19 = 4; + a29 = 7; + a25 = 1; + a14 = 8; + a0 = 0; + return -1; + } else if(((!(a25==1)&&((a19==2)&&(((((a28==1)&&((a14==10)&&((a22==1)&&(((input==6)&&((a29==7)||(a29==8)))&&(a0==1)))))&&(a7==1))&&(a11==1))&&(a24==1))))&&!(a20==1))){ + a29 = 6; + a0 = 0; + a14 = 8; + a7 = 0; + a20 = 1; + return -1; + } else if(((a22==1)&&((a19==3)&&((!(a24==1)&&(!(a7==1)&&((!(a20==1)&&(((a29==5)&&((!(a0==1)&&(input==3))&&!(a11==1)))&&(a28==1)))&&(a25==1))))&&(a14==8))))){ + a7 = 1; + a20 = 1; + a0 = 1; + a24 = 1; + a11 = 1; + a19 = 1; + return -1; + } else if((((a19==1)&&((((a0==1)&&((((((a29==7)&&((input==4)&&(a28==1)))&&!(a7==1))&&(a20==1))&&(a14==10))&&(a22==1)))&&(a24==1))&&!(a25==1)))&&(a11==1))){ + a19 = 5; + a20 = 0; + a14 = 8; + a29 = 5; + a7 = 1; + a11 = 0; + a25 = 1; + a0 = 0; + return 23; + } else if((((a29==7)&&(((a7==1)&&((((((a28==1)&&((a11==1)&&((input==6)&&(a24==1))))&&(a22==1))&&!(a20==1))&&!(a0==1))&&(a19==4)))&&(a14==9)))&&!(a25==1))){ + a0 = 1; + a29 = 5; + a19 = 3; + a7 = 0; + a11 = 0; + a25 = 1; + return -1; + } else if((((((a24==1)&&((a28==1)&&(((((((input==5)&&!(a7==1))&&(a19==2))&&(a0==1))&&(a25==1))&&!(a11==1))&&(a29==5))))&&(a22==1))&&!(a20==1))&&(a14==9))){ + a25 = 0; + a11 = 1; + a7 = 1; + a0 = 0; + a19 = 3; + a14 = 8; + return 23; + } else if((((!(a7==1)&&((((a14==8)&&(((a19==5)&&((((input==1)&&((a29==8)||(a29==9)))&&!(a25==1))&&(a0==1)))&&(a28==1)))&&(a11==1))&&!(a24==1)))&&(a20==1))&&(a22==1))){ + a19 = 1; + a25 = 1; + a24 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if((!(a24==1)&&((!(a25==1)&&(((a28==1)&&(((a0==1)&&((a22==1)&&(!(a11==1)&&((a14==9)&&((((a29==7)||(a29==8))||(a29==9))&&(input==2))))))&&!(a7==1)))&&(a19==1)))&&(a20==1)))){ + a25 = 1; + a7 = 1; + a24 = 1; + a29 = 5; + a14 = 8; + a11 = 1; + return -1; + } else if((((a28==1)&&((a7==1)&&(((((((((input==2)&&(((a29==5)||(a29==6))||(a29==7)))&&(a25==1))&&(a14==9))&&(a22==1))&&!(a11==1))&&!(a20==1))&&!(a0==1))&&(a19==4))))&&(a24==1))){ + a19 = 5; + a20 = 1; + a29 = 7; + a14 = 8; + return 24; + } else if(((a20==1)&&((a24==1)&&(((a28==1)&&((((((!(a25==1)&&((input==6)&&((a29==6)||(a29==7))))&&(a14==9))&&!(a11==1))&&(a0==1))&&(a19==2))&&(a22==1)))&&(a7==1))))){ + a20 = 0; + a0 = 0; + a7 = 0; + a14 = 8; + a19 = 4; + a29 = 7; + a24 = 0; + a11 = 1; + return 23; + } else if(((!(a0==1)&&((((a22==1)&&(((a25==1)&&((a11==1)&&(((((a29==6)&&(a19==4))||(((a19==3)&&(a29==9))||((a19==4)&&(a29==5))))&&(input==6))&&(a7==1))))&&!(a24==1)))&&(a28==1))&&(a14==8)))&&(a20==1))){ + a29 = 9; + a25 = 0; + a24 = 1; + a19 = 1; + a20 = 0; + return 23; + } else if((((((a19==1)&&((a28==1)&&(((a14==8)&&(!(a24==1)&&(!(a11==1)&&(!(a25==1)&&((input==3)&&(a29==5))))))&&(a22==1))))&&!(a0==1))&&!(a20==1))&&(a7==1))){ + a29 = 7; + a24 = 1; + a20 = 1; + a19 = 2; + return -1; + } else if(((a11==1)&&(((((a0==1)&&((a22==1)&&(((a28==1)&&(((((a29==6)&&(a19==2))||(((a29==9)&&(a19==1))||((a29==5)&&(a19==2))))&&(input==5))&&!(a25==1)))&&(a14==9))))&&(a24==1))&&(a7==1))&&(a20==1)))){ + a14 = 8; + a19 = 5; + a0 = 0; + a29 = 6; + a25 = 1; + return 21; + } else if((((((!(a0==1)&&(((((!(a7==1)&&(((a29==7)||(a29==8))&&(input==2)))&&(a11==1))&&(a14==8))&&(a24==1))&&(a19==2)))&&(a20==1))&&(a28==1))&&(a22==1))&&(a25==1))){ + a24 = 0; + a25 = 0; + a19 = 3; + a14 = 9; + a29 = 8; + a11 = 0; + a7 = 1; + a0 = 1; + return 21; + } else if(((a22==1)&&(((a19==2)&&(((a20==1)&&((a11==1)&&((!(a25==1)&&(((a14==9)&&((((a29==7)||(a29==8))||(a29==9))&&(input==4)))&&!(a0==1)))&&(a7==1))))&&(a28==1)))&&!(a24==1)))){ + a19 = 4; + a29 = 5; + a24 = 1; + return -1; + } else if(((a11==1)&&(!(a24==1)&&(((((a28==1)&&(!(a25==1)&&((a19==2)&&((a20==1)&&(!(a7==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==6)))))))&&(a22==1))&&(a0==1))&&(a14==8))))){ + a19 = 5; + a11 = 0; + a25 = 1; + a29 = 5; + a20 = 0; + return 24; + } else if(((a14==9)&&(!(a24==1)&&((((!(a7==1)&&(((((((a29==7)||(a29==8))&&(input==3))&&!(a25==1))&&(a22==1))&&!(a11==1))&&!(a20==1)))&&!(a0==1))&&(a28==1))&&(a19==5))))){ + a11 = 1; + a19 = 1; + a14 = 8; + a29 = 7; + return -1; + } else if(((((a19==3)&&((((((a24==1)&&(!(a0==1)&&(((a22==1)&&(input==5))&&(a11==1))))&&(a28==1))&&(a14==8))&&!(a20==1))&&!(a25==1)))&&!(a7==1))&&(a29==6))){ + a0 = 1; + a19 = 1; + a7 = 1; + a29 = 5; + a20 = 1; + a25 = 1; + return -1; + } else if(((!(a25==1)&&(((a24==1)&&(((a0==1)&&(((a7==1)&&(((a28==1)&&((input==4)&&((a29==5)||(a29==6))))&&(a14==9)))&&!(a11==1)))&&!(a20==1)))&&(a19==5)))&&(a22==1))){ + a11 = 1; + a7 = 0; + a14 = 8; + a29 = 6; + a19 = 3; + a20 = 1; + a0 = 0; + return 24; + } else if(((a7==1)&&((((a14==8)&&((a29==6)&&(!(a20==1)&&(((!(a0==1)&&(((a28==1)&&(input==6))&&(a19==5)))&&!(a25==1))&&(a11==1)))))&&!(a24==1))&&(a22==1)))){ + a25 = 1; + a19 = 2; + a24 = 1; + a7 = 0; + return 21; + } else if(((((!(a7==1)&&((a19==4)&&((a14==8)&&((!(a0==1)&&(!(a20==1)&&((a22==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==6)))))&&(a28==1)))))&&!(a25==1))&&!(a24==1))&&!(a11==1))){ + a20 = 1; + a29 = 5; + a24 = 1; + a11 = 1; + a25 = 1; + a19 = 1; + a7 = 1; + return -1; + } else if((((((a0==1)&&(((a7==1)&&(!(a25==1)&&(((a22==1)&&((((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))&&(input==3)))&&!(a20==1))))&&(a11==1)))&&(a14==9))&&(a28==1))&&!(a24==1))){ + a20 = 1; + a14 = 8; + a29 = 7; + a11 = 0; + a0 = 0; + a19 = 1; + a25 = 1; + return 24; + } else if(((a20==1)&&((((a11==1)&&(!(a25==1)&&(((((((input==4)&&(a19==3))&&(a29==9))&&(a7==1))&&!(a0==1))&&(a24==1))&&(a22==1))))&&(a14==8))&&(a28==1)))){ + a29 = 6; + a25 = 1; + a7 = 0; + return 24; + } else if((((a7==1)&&((a24==1)&&((a14==8)&&((a0==1)&&((a29==5)&&(((a22==1)&&(((!(a11==1)&&(input==2))&&(a19==2))&&(a28==1)))&&(a20==1)))))))&&!(a25==1))){ + a7 = 0; + a29 = 6; + a11 = 1; + a25 = 1; + a0 = 0; + a19 = 5; + return 23; + } else if((!(a11==1)&&(((!(a0==1)&&(!(a24==1)&&(((a14==9)&&((((a19==5)&&(((a7==1)&&!(a25==1))&&(a29==9)))||((a19==1)&&((!(a7==1)&&(a25==1))&&(a29==5))))&&(input==2)))&&(a20==1))))&&(a28==1))&&(a22==1)))){ + a19 = 1; + a24 = 1; + a14 = 8; + a0 = 1; + a11 = 1; + a7 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if((((((a14==8)&&((a22==1)&&(((a20==1)&&(!(a24==1)&&(((input==2)&&((((a19==1)&&(a29==8))||((a19==1)&&(a29==9)))||((a29==5)&&(a19==2))))&&(a7==1))))&&!(a25==1))))&&(a11==1))&&(a28==1))&&(a0==1))){ + a24 = 1; + a29 = 5; + a25 = 1; + a19 = 1; + return -1; + } else if((((a14==8)&&(((((a7==1)&&(!(a25==1)&&(((((input==2)&&(a24==1))&&(a29==8))&&!(a0==1))&&(a28==1))))&&!(a11==1))&&(a22==1))&&(a20==1)))&&(a19==5))){ + a11 = 1; + a29 = 5; + a24 = 0; + a19 = 1; + a20 = 0; + return -1; + } else if(((!(a25==1)&&(!(a11==1)&&((((a19==1)&&((((((input==5)&&(((a29==5)||(a29==6))||(a29==7)))&&(a22==1))&&!(a7==1))&&!(a20==1))&&!(a24==1)))&&(a14==9))&&!(a0==1))))&&(a28==1))){ + a0 = 1; + a14 = 8; + a7 = 1; + a19 = 5; + a29 = 7; + return 24; + } else if(((a0==1)&&((a25==1)&&(((((((a19==1)&&(((a28==1)&&((a11==1)&&(input==1)))&&(a29==8)))&&(a24==1))&&(a14==9))&&!(a7==1))&&(a20==1))&&(a22==1))))){ + a14 = 8; + a7 = 1; + a29 = 5; + return -1; + } else if((((a14==8)&&(!(a24==1)&&(((((a25==1)&&((a20==1)&&(((a19==5)&&(((a29==7)||(a29==8))&&(input==4)))&&(a28==1))))&&(a22==1))&&!(a7==1))&&!(a11==1))))&&(a0==1))){ + a20 = 0; + a7 = 1; + a25 = 0; + a11 = 1; + a19 = 1; + a24 = 1; + a0 = 0; + a29 = 8; + return 21; + } else if(((a7==1)&&(((((a19==5)&&((((((a25==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==6)))&&!(a0==1))&&(a28==1))&&(a22==1))&&(a24==1)))&&(a20==1))&&!(a11==1))&&(a14==8)))){ + a29 = 6; + a20 = 0; + a11 = 1; + a25 = 0; + a19 = 4; + return 23; + } else if(((((a28==1)&&((!(a24==1)&&((a14==8)&&(!(a25==1)&&(((((((a29==9)&&(a19==4))||((a29==5)&&(a19==5)))||((a29==6)&&(a19==5)))&&(input==6))&&(a7==1))&&(a11==1)))))&&(a22==1)))&&(a20==1))&&(a0==1))){ + a29 = 5; + a0 = 0; + a19 = 5; + a25 = 1; + a24 = 1; + a7 = 0; + return 24; + } else if(((a28==1)&&((a22==1)&&((a25==1)&&((((a11==1)&&((((a0==1)&&((((a29==5)&&(a19==2))||(((a29==8)&&(a19==1))||((a19==1)&&(a29==9))))&&(input==3)))&&(a14==10))&&(a24==1)))&&!(a7==1))&&(a20==1)))))){ + a19 = 4; + a0 = 0; + a29 = 5; + a14 = 9; + a20 = 0; + return -1; + } else if(((a14==9)&&((a29==9)&&((((((a28==1)&&((a20==1)&&(((a19==1)&&((input==3)&&(a22==1)))&&!(a24==1))))&&!(a0==1))&&!(a25==1))&&(a7==1))&&!(a11==1))))){ + a0 = 1; + a11 = 1; + a24 = 1; + a29 = 8; + a20 = 0; + return 21; + } else if(((!(a11==1)&&((!(a24==1)&&(((a14==9)&&((a7==1)&&((!(a0==1)&&((a28==1)&&((input==2)&&((a29==7)||(a29==8)))))&&!(a20==1))))&&(a22==1)))&&!(a25==1)))&&(a19==2))){ + a24 = 1; + a11 = 1; + a25 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((a11==1)&&((a7==1)&&((a25==1)&&((a22==1)&&(((!(a24==1)&&((a14==9)&&(((((a29==6)||(a29==7))&&(input==6))&&!(a0==1))&&(a19==3))))&&(a20==1))&&(a28==1))))))){ + a19 = 5; + a29 = 8; + a14 = 8; + a7 = 0; + a24 = 1; + return 21; + } else if(((a11==1)&&((a14==9)&&(!(a0==1)&&((a28==1)&&(((a22==1)&&((!(a7==1)&&((input==5)&&(((a19==5)&&((a25==1)&&(a29==9)))||((!(a25==1)&&(a29==5))&&(a19==1)))))&&!(a24==1)))&&(a20==1))))))){ + a19 = 4; + a7 = 1; + a29 = 9; + a0 = 1; + a25 = 1; + return -1; + } else if(((((a19==5)&&((a14==8)&&(((a22==1)&&(!(a25==1)&&((a24==1)&&(!(a20==1)&&((a0==1)&&(!(a7==1)&&(input==6)))))))&&!(a11==1))))&&(a28==1))&&(a29==7))){ + a29 = 8; + a19 = 2; + a0 = 0; + a11 = 1; + a25 = 1; + return 23; + } else if(((a22==1)&&((a19==3)&&(((a0==1)&&(((((a25==1)&&(((!(a7==1)&&(input==6))&&(a28==1))&&(a24==1)))&&(a29==9))&&!(a11==1))&&!(a20==1)))&&(a14==8))))){ + a19 = 1; + a25 = 0; + a29 = 7; + a11 = 1; + a14 = 9; + a7 = 1; + return 24; + } else if(((a11==1)&&((a0==1)&&((a22==1)&&((((!(a7==1)&&((((((a29==9)&&(a25==1))&&(a19==5))||((a19==1)&&(!(a25==1)&&(a29==5))))&&(input==1))&&!(a24==1)))&&(a28==1))&&(a14==8))&&!(a20==1)))))){ + a25 = 1; + a29 = 9; + a0 = 0; + a20 = 1; + a24 = 1; + a19 = 4; + return 23; + } else if((((a24==1)&&((a28==1)&&((!(a11==1)&&((a22==1)&&((a7==1)&&((a0==1)&&(((input==6)&&(((a19==1)&&(a29==9))||((a19==2)&&(a29==5))))&&(a25==1))))))&&!(a20==1))))&&(a14==9))){ + a11 = 1; + a24 = 0; + a25 = 0; + a29 = 6; + a19 = 5; + return -1; + } else if(((!(a24==1)&&((a14==9)&&((((a0==1)&&((a11==1)&&(((!(a25==1)&&((input==4)&&((a29==8)||(a29==9))))&&(a19==4))&&(a28==1))))&&(a22==1))&&(a7==1))))&&(a20==1))){ + a29 = 5; + a7 = 0; + a19 = 1; + return 21; + } else if(((((a19==4)&&((a14==9)&&((a29==8)&&(!(a7==1)&&((a22==1)&&(((!(a20==1)&&((a0==1)&&(input==6)))&&!(a11==1))&&(a24==1)))))))&&(a28==1))&&(a25==1))){ + a0 = 0; + a19 = 1; + a20 = 1; + a29 = 9; + a14 = 8; + return 23; + } else if((!(a0==1)&&((a22==1)&&((a28==1)&&((a24==1)&&((a25==1)&&(((a19==5)&&((a20==1)&&((a14==8)&&(((input==6)&&((a29==8)||((a29==6)||(a29==7))))&&(a11==1)))))&&!(a7==1)))))))){ + a11 = 0; + a29 = 6; + a24 = 0; + a14 = 9; + a0 = 1; + a19 = 1; + return 21; + } else if((((a0==1)&&((a14==8)&&(((a28==1)&&((a22==1)&&(!(a20==1)&&(((((a11==1)&&(input==1))&&!(a24==1))&&(a19==4))&&!(a25==1)))))&&!(a7==1))))&&(a29==6))){ + a19 = 1; + a11 = 0; + a29 = 8; + return 21; + } else if((((((a20==1)&&(((a19==5)&&(!(a24==1)&&((a28==1)&&(((a25==1)&&((input==2)&&(((a29==5)||(a29==6))||(a29==7))))&&(a14==8)))))&&(a0==1)))&&(a7==1))&&(a11==1))&&(a22==1))){ + a29 = 8; + a11 = 0; + a7 = 0; + a20 = 0; + a19 = 3; + a25 = 0; + return 24; + } else if(((!(a24==1)&&((a22==1)&&((a14==8)&&((a20==1)&&((a28==1)&&((!(a11==1)&&(!(a0==1)&&((input==5)&&((((a19==3)&&(a29==8))||((a29==9)&&(a19==3)))||((a29==5)&&(a19==4))))))&&!(a25==1)))))))&&(a7==1))){ + a29 = 5; + a25 = 1; + a11 = 1; + a19 = 1; + a0 = 1; + a24 = 1; + return -1; + } else if((((a0==1)&&(!(a11==1)&&((a22==1)&&((a20==1)&&((a7==1)&&(!(a24==1)&&(((a14==8)&&((input==3)&&(((a29==6)&&(a19==4))||(((a29==9)&&(a19==3))||((a19==4)&&(a29==5))))))&&(a25==1))))))))&&(a28==1))){ + a19 = 5; + a11 = 1; + a0 = 0; + a24 = 1; + a7 = 0; + a29 = 9; + a25 = 0; + return 23; + } else if(((a28==1)&&((((a22==1)&&((a25==1)&&((a24==1)&&((a20==1)&&(((!(a7==1)&&((input==2)&&(((a29==6)||(a29==7))||(a29==8))))&&(a11==1))&&(a19==5))))))&&!(a0==1))&&(a14==8)))){ + a11 = 0; + a0 = 1; + a7 = 1; + a25 = 0; + a24 = 0; + a14 = 9; + a29 = 8; + return 24; + } else if(((((a14==8)&&((((a11==1)&&((input==2)&&(((a19==1)&&(((!(a20==1)&&(a7==1))&&(a25==1))&&(a29==5)))||((((((a20==1)&&!(a7==1))&&!(a25==1))&&(a29==8))&&(a19==5))||((a19==5)&&((a29==9)&&((!(a7==1)&&(a20==1))&&!(a25==1))))))))&&!(a0==1))&&!(a24==1)))&&(a28==1))&&(a22==1))){ + a20 = 1; + a19 = 5; + a29 = 6; + a25 = 0; + a24 = 1; + a7 = 1; + return 21; + } else if(((a14==8)&&((!(a11==1)&&(((((a28==1)&&(((a22==1)&&((((a19==5)&&(a29==6))||(((a19==4)&&(a29==9))||((a19==5)&&(a29==5))))&&(input==4)))&&!(a20==1)))&&(a25==1))&&(a7==1))&&!(a24==1)))&&!(a0==1)))){ + a19 = 5; + a11 = 1; + a25 = 0; + a29 = 7; + return 23; + } else if(((a25==1)&&((a0==1)&&(!(a7==1)&&((a11==1)&&((a22==1)&&(((a19==1)&&((!(a20==1)&&((a28==1)&&(((a29==8)||(a29==9))&&(input==1))))&&(a14==9)))&&(a24==1)))))))){ + a7 = 1; + a14 = 8; + a19 = 3; + a24 = 0; + a11 = 0; + a25 = 0; + a29 = 7; + return 23; + } else if(((((((a22==1)&&((a14==9)&&(((((((a29==8)||((a29==6)||(a29==7)))&&(input==1))&&(a19==5))&&!(a24==1))&&(a0==1))&&(a20==1))))&&(a11==1))&&(a28==1))&&!(a25==1))&&!(a7==1))){ + a25 = 1; + a14 = 8; + a19 = 1; + a24 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if((!(a11==1)&&((a28==1)&&(((a14==8)&&((((!(a0==1)&&((a24==1)&&((((a29==6)||(a29==7))&&(input==3))&&(a19==5))))&&(a22==1))&&(a7==1))&&!(a20==1)))&&!(a25==1))))){ + a11 = 1; + a25 = 1; + a0 = 1; + a14 = 9; + a19 = 4; + a24 = 0; + a7 = 0; + a29 = 6; + return 21; + } else if((((a22==1)&&(((a0==1)&&((a14==9)&&((a28==1)&&(!(a24==1)&&((((((a29==6)&&(a19==2))||(((a29==9)&&(a19==1))||((a19==2)&&(a29==5))))&&(input==5))&&!(a11==1))&&(a7==1))))))&&!(a25==1)))&&!(a20==1))){ + a29 = 7; + a11 = 1; + a19 = 1; + a24 = 1; + return 23; + } else if((((a22==1)&&((a7==1)&&(((((a0==1)&&(!(a24==1)&&((a19==1)&&((a20==1)&&((a14==8)&&(input==1))))))&&(a25==1))&&!(a11==1))&&(a29==6))))&&(a28==1))){ + a11 = 1; + a24 = 1; + a29 = 9; + a19 = 3; + a0 = 0; + return 23; + } else if((((((((a19==3)&&((a20==1)&&((!(a24==1)&&(((input==2)&&(a7==1))&&!(a25==1)))&&(a14==9))))&&(a29==5))&&!(a11==1))&&!(a0==1))&&(a22==1))&&(a28==1))){ + a20 = 0; + a29 = 8; + a0 = 1; + a24 = 1; + a7 = 0; + a25 = 1; + return -1; + } else if((!(a25==1)&&(((((((a22==1)&&((a24==1)&&((a14==9)&&((input==3)&&(((a19==3)&&(a29==5))||(((a29==8)&&(a19==2))||((a29==9)&&(a19==2))))))))&&(a20==1))&&(a7==1))&&(a0==1))&&!(a11==1))&&(a28==1)))){ + a19 = 4; + a11 = 1; + a29 = 5; + a14 = 8; + a20 = 0; + a0 = 0; + return 24; + } else if((!(a24==1)&&(!(a11==1)&&(((a28==1)&&(!(a25==1)&&((((a19==2)&&(((a20==1)&&((input==2)&&(a22==1)))&&(a0==1)))&&(a14==9))&&(a29==7))))&&!(a7==1))))){ + a29 = 9; + a7 = 1; + a11 = 1; + a19 = 3; + a25 = 1; + return -1; + } else if(((a20==1)&&((a7==1)&&(!(a25==1)&&((a14==8)&&((a11==1)&&((((a22==1)&&(((input==6)&&(((a19==3)&&(a29==6))||(((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))))&&(a28==1)))&&!(a0==1))&&(a24==1)))))))){ + a19 = 5; + a7 = 0; + a11 = 0; + a24 = 0; + a20 = 0; + a29 = 9; + a0 = 1; + return -1; + } else if((((a7==1)&&(((a19==3)&&((((a22==1)&&((a14==9)&&((a0==1)&&((a24==1)&&((input==1)&&((a29==8)||(a29==9)))))))&&(a28==1))&&!(a20==1)))&&!(a25==1)))&&(a11==1))){ + a19 = 1; + a14 = 8; + a25 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if(((!(a25==1)&&((a0==1)&&((!(a11==1)&&(!(a24==1)&&((a22==1)&&((((a14==9)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==4)))&&(a20==1))&&(a28==1)))))&&(a19==2))))&&(a7==1))){ + a14 = 8; + a24 = 1; + a0 = 0; + a29 = 8; + a25 = 1; + a11 = 1; + a7 = 0; + a19 = 3; + return -1; + } else if((((a14==9)&&((a25==1)&&(!(a11==1)&&((((!(a20==1)&&(((input==2)&&((((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))||((a19==2)&&(a29==6))))&&(a28==1)))&&(a22==1))&&!(a7==1))&&!(a24==1)))))&&!(a0==1))){ + a19 = 3; + a14 = 8; + a25 = 0; + a7 = 1; + a29 = 9; + a20 = 1; + a24 = 1; + a11 = 1; + return 23; + } else if(((((!(a11==1)&&((a19==1)&&((a24==1)&&((a25==1)&&(((!(a0==1)&&((input==3)&&((a29==8)||((a29==6)||(a29==7)))))&&(a22==1))&&(a28==1))))))&&(a14==8))&&(a7==1))&&(a20==1))){ + a20 = 0; + a25 = 0; + a29 = 7; + a7 = 0; + a19 = 5; + a11 = 1; + a14 = 9; + return 24; + } else if(((((a28==1)&&((!(a25==1)&&((a20==1)&&(((a7==1)&&((((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))||((a19==3)&&(a29==6)))&&(input==3))&&(a24==1)))&&!(a0==1))))&&(a11==1)))&&(a14==8))&&(a22==1))){ + a20 = 0; + a19 = 2; + a29 = 6; + a7 = 0; + return 24; + } else if(((((a14==9)&&((a7==1)&&((a24==1)&&(((a29==6)&&((a19==5)&&(!(a20==1)&&(((a0==1)&&(input==5))&&(a11==1)))))&&!(a25==1)))))&&(a22==1))&&(a28==1))){ + a25 = 1; + a19 = 3; + a14 = 8; + a29 = 5; + a0 = 0; + a7 = 0; + return 21; + } else if((((((!(a0==1)&&(((a28==1)&&(!(a25==1)&&(!(a24==1)&&((!(a20==1)&&(input==1))&&!(a7==1)))))&&(a19==3)))&&(a29==7))&&(a11==1))&&(a22==1))&&(a14==9))){ + a11 = 0; + a14 = 8; + a25 = 1; + a19 = 2; + return -1; + } else if(((a19==4)&&((((a14==9)&&((a20==1)&&((a11==1)&&(!(a24==1)&&(((!(a0==1)&&(((a29==7)||(a29==8))&&(input==1)))&&(a7==1))&&(a22==1))))))&&(a28==1))&&!(a25==1)))){ + a14 = 8; + a24 = 1; + a19 = 1; + a0 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if(((a7==1)&&(!(a20==1)&&(!(a11==1)&&((!(a24==1)&&((a22==1)&&((a19==2)&&((a14==8)&&((a25==1)&&(((input==3)&&(((a29==7)||(a29==8))||(a29==9)))&&(a0==1)))))))&&(a28==1)))))){ + a25 = 0; + a19 = 1; + a14 = 9; + a29 = 6; + a20 = 1; + a24 = 1; + return 24; + } else if((!(a25==1)&&(((!(a11==1)&&(!(a20==1)&&(!(a24==1)&&((a22==1)&&((a0==1)&&(((((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))&&(input==5))&&(a14==9)))))))&&!(a7==1))&&(a28==1)))){ + a29 = 7; + a14 = 8; + a24 = 1; + a0 = 0; + a11 = 1; + a19 = 2; + return 24; + } else if(((!(a25==1)&&(((a22==1)&&(((((a19==1)&&((a11==1)&&(((input==5)&&(((a29==7)||(a29==8))||(a29==9)))&&!(a24==1))))&&(a7==1))&&(a14==8))&&(a28==1)))&&(a0==1)))&&!(a20==1))){ + a29 = 5; + a25 = 1; + a24 = 1; + a20 = 1; + return -1; + } else if((((!(a0==1)&&((a19==3)&&(((a14==9)&&((((((a24==1)&&(input==3))&&!(a7==1))&&(a22==1))&&(a29==6))&&(a20==1)))&&(a25==1))))&&(a28==1))&&(a11==1))){ + a14 = 8; + a25 = 0; + a11 = 0; + a29 = 9; + return -1; + } else if(((((a11==1)&&((a7==1)&&(((a22==1)&&(((!(a25==1)&&(((input==5)&&((a29==8)||(a29==9)))&&(a24==1)))&&(a14==9))&&(a28==1)))&&(a19==3))))&&(a20==1))&&!(a0==1))){ + a19 = 1; + a14 = 8; + a29 = 5; + return 21; + } else if((((a14==8)&&((a0==1)&&(((a25==1)&&(!(a11==1)&&((a19==3)&&((a7==1)&&(!(a20==1)&&(((input==1)&&((a29==7)||((a29==5)||(a29==6))))&&(a22==1)))))))&&!(a24==1))))&&(a28==1))){ + a24 = 1; + a29 = 9; + a11 = 1; + a0 = 0; + a19 = 2; + a7 = 0; + return 24; + } else if(((!(a24==1)&&((a28==1)&&(((!(a25==1)&&(((a20==1)&&((a7==1)&&((a14==9)&&((input==6)&&!(a11==1)))))&&!(a0==1)))&&(a29==9))&&(a19==1))))&&(a22==1))){ + a0 = 1; + a25 = 1; + a19 = 4; + a24 = 1; + a29 = 6; + a11 = 1; + return 23; + } else if((!(a7==1)&&(((a19==3)&&((a0==1)&&((a25==1)&&(((a22==1)&&((a11==1)&&((((a14==9)&&(input==2))&&(a29==6))&&!(a20==1))))&&(a28==1)))))&&(a24==1)))){ + a19 = 5; + a14 = 10; + a20 = 1; + a29 = 8; + a7 = 1; + return 23; + } else if((((a14==8)&&((((input==4)&&(((a19==5)&&((((((a11==1)&&!(a20==1))&&!(a7==1))&&!(a24==1))&&!(a25==1))&&(a29==9)))||((a19==1)&&((((a24==1)&&((!(a11==1)&&(a20==1))&&(a7==1)))&&(a25==1))&&(a29==5)))))&&(a22==1))&&(a0==1)))&&(a28==1))){ + a20 = 0; + a0 = 0; + a29 = 6; + a7 = 0; + a25 = 0; + a11 = 1; + a24 = 1; + a19 = 1; + return 21; + } else if(((((a19==1)&&((((((((((a29==6)||(a29==7))&&(input==2))&&(a11==1))&&!(a0==1))&&(a20==1))&&(a14==8))&&(a28==1))&&(a22==1))&&(a25==1)))&&!(a24==1))&&!(a7==1))){ + a29 = 6; + a20 = 0; + a19 = 5; + a24 = 1; + a7 = 1; + a25 = 0; + return 21; + } else if((((a28==1)&&((((a0==1)&&((a22==1)&&(((((((a19==5)&&((a25==1)&&(a29==9)))||((a19==1)&&((a29==5)&&!(a25==1))))||((a19==1)&&((a29==6)&&!(a25==1))))&&(input==5))&&(a20==1))&&(a14==9))))&&!(a11==1))&&!(a24==1)))&&(a7==1))){ + a0 = 0; + a14 = 8; + a24 = 1; + a29 = 7; + a19 = 5; + a25 = 1; + return -1; + } else if((!(a24==1)&&((a7==1)&&(!(a20==1)&&((a19==5)&&(!(a25==1)&&((((a0==1)&&((a11==1)&&((((a29==6)||(a29==7))&&(input==6))&&(a14==9))))&&(a28==1))&&(a22==1)))))))){ + a14 = 8; + a0 = 0; + a24 = 1; + a19 = 1; + a29 = 8; + return 23; + } else if(((((((((a29==7)&&((((a25==1)&&((input==6)&&!(a0==1)))&&(a11==1))&&(a20==1)))&&(a14==8))&&(a24==1))&&(a19==5))&&(a22==1))&&(a28==1))&&(a7==1))){ + a24 = 0; + a19 = 3; + a0 = 1; + a29 = 5; + a11 = 0; + a20 = 0; + a7 = 0; + return -1; + } else if(((a28==1)&&((((a24==1)&&((a19==2)&&(((!(a20==1)&&((((input==2)&&((a29==8)||(a29==9)))&&(a14==9))&&(a22==1)))&&!(a7==1))&&!(a11==1))))&&(a25==1))&&(a0==1)))){ + a14 = 8; + a29 = 7; + a19 = 1; + a11 = 1; + a0 = 0; + return 21; + } else if((((!(a7==1)&&((a14==8)&&((!(a25==1)&&((!(a20==1)&&(!(a24==1)&&(((input==2)&&(((a29==6)||(a29==7))||(a29==8)))&&(a22==1))))&&!(a0==1)))&&(a28==1))))&&!(a11==1))&&(a19==1))){ + a29 = 5; + a24 = 1; + a20 = 1; + a25 = 1; + a7 = 1; + a11 = 1; + a0 = 1; + return -1; + } else if((((a28==1)&&(!(a0==1)&&((a24==1)&&(((a7==1)&&((!(a25==1)&&(((a19==5)&&((input==4)&&(a11==1)))&&(a22==1)))&&(a20==1)))&&(a29==6)))))&&(a14==9))){ + a11 = 0; + a20 = 0; + a24 = 0; + a25 = 1; + a14 = 8; + return 24; + } else if(((!(a25==1)&&(!(a0==1)&&(!(a24==1)&&(!(a7==1)&&(!(a20==1)&&(((a22==1)&&((((((a29==5)||(a29==6))||(a29==7))&&(input==3))&&(a14==8))&&(a19==5)))&&(a11==1)))))))&&(a28==1))){ + a14 = 9; + a24 = 1; + a19 = 4; + a29 = 7; + return 21; + } else if(((a28==1)&&((a7==1)&&((a19==3)&&(!(a25==1)&&((!(a24==1)&&((a22==1)&&(((a20==1)&&(((input==5)&&(a14==8))&&(a29==7)))&&(a0==1))))&&!(a11==1))))))){ + a11 = 1; + a14 = 9; + a29 = 5; + a7 = 0; + return 23; + } else if(((!(a25==1)&&(((((a22==1)&&(((a7==1)&&(((((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))&&(input==4))&&(a11==1)))&&(a28==1)))&&!(a24==1))&&(a14==9))&&!(a20==1)))&&(a0==1))){ + a24 = 1; + a0 = 0; + a14 = 8; + a19 = 5; + a29 = 7; + return 21; + } else if((((((((((a24==1)&&((a22==1)&&((!(a0==1)&&(input==6))&&(a11==1))))&&(a19==4))&&(a25==1))&&(a29==5))&&(a28==1))&&!(a7==1))&&(a14==8))&&!(a20==1))){ + a7 = 1; + a11 = 0; + a24 = 0; + a0 = 1; + a19 = 2; + a25 = 0; + a29 = 9; + return -1; + } else if(((a28==1)&&(!(a11==1)&&((((!(a25==1)&&((a7==1)&&(((a19==1)&&(!(a20==1)&&((input==2)&&(a22==1))))&&(a29==9))))&&!(a0==1))&&(a24==1))&&(a14==8))))){ + a29 = 5; + a19 = 3; + a11 = 1; + return 24; + } else if(((a14==8)&&(((a11==1)&&(!(a20==1)&&((a28==1)&&((((((input==1)&&(((a29==5)&&(a19==5))||(((a19==4)&&(a29==8))||((a19==4)&&(a29==9)))))&&(a25==1))&&!(a0==1))&&!(a7==1))&&(a24==1)))))&&(a22==1)))){ + a25 = 0; + a19 = 5; + a29 = 8; + return 21; + } else if(((a24==1)&&((((a19==1)&&((((a28==1)&&(!(a7==1)&&((a11==1)&&((a14==9)&&((input==6)&&((a29==5)||(a29==6)))))))&&!(a20==1))&&(a25==1)))&&!(a0==1))&&(a22==1)))){ + a20 = 1; + a0 = 1; + a7 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((a25==1)&&((a14==9)&&(((a22==1)&&((a28==1)&&((a19==1)&&(!(a11==1)&&((a20==1)&&(((a7==1)&&(!(a0==1)&&(input==1)))&&(a29==5)))))))&&(a24==1))))){ + a19 = 2; + a24 = 0; + a25 = 0; + a20 = 0; + a14 = 8; + a7 = 0; + a11 = 1; + a29 = 7; + return -1; + } else if((!(a20==1)&&((a0==1)&&((((a7==1)&&((((((((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))&&(input==4))&&(a24==1))&&(a25==1))&&(a11==1))&&(a14==10)))&&(a28==1))&&(a22==1))))){ + a14 = 9; + a25 = 0; + a19 = 4; + a24 = 0; + a29 = 8; + return 23; + } else if((!(a24==1)&&(!(a7==1)&&((a25==1)&&((((a0==1)&&((((a22==1)&&((a14==9)&&((input==2)&&(a19==5))))&&(a28==1))&&(a29==8)))&&!(a11==1))&&!(a20==1)))))){ + a14 = 8; + a24 = 1; + a11 = 1; + a29 = 5; + a19 = 1; + a7 = 1; + a20 = 1; + return -1; + } else if((((((((input==6)&&(((a19==1)&&(((a25==1)&&(((a7==1)&&(a20==1))&&!(a24==1)))&&(a29==6)))||(((a19==5)&&((((!(a20==1)&&!(a7==1))&&(a24==1))&&!(a25==1))&&(a29==9)))||(((a29==5)&&((a25==1)&&(!(a24==1)&&((a7==1)&&(a20==1)))))&&(a19==1)))))&&(a0==1))&&(a14==8))&&(a28==1))&&(a11==1))&&(a22==1))){ + a25 = 0; + a11 = 0; + a7 = 0; + a20 = 1; + a19 = 4; + a24 = 0; + a29 = 8; + return 21; + } else if(((!(a0==1)&&((a11==1)&&(((a7==1)&&(((a19==5)&&((((a24==1)&&((a29==9)&&(input==6)))&&(a28==1))&&!(a20==1)))&&(a14==9)))&&!(a25==1))))&&(a22==1))){ + a20 = 1; + a19 = 3; + a14 = 8; + a11 = 0; + return 23; + } else if((!(a24==1)&&((a28==1)&&((!(a25==1)&&((a7==1)&&(((a11==1)&&((a14==9)&&(((input==1)&&(((a19==2)&&(a29==5))||(((a19==1)&&(a29==8))||((a19==1)&&(a29==9)))))&&(a0==1))))&&!(a20==1))))&&(a22==1))))){ + a29 = 5; + a20 = 1; + a14 = 8; + a19 = 1; + a24 = 1; + a25 = 1; + return -1; + } else if((((a24==1)&&((((a25==1)&&((!(a7==1)&&(((a22==1)&&(!(a20==1)&&((input==1)&&(((a29==5)||(a29==6))||(a29==7)))))&&(a11==1)))&&(a28==1)))&&(a0==1))&&(a14==10)))&&(a19==3))){ + a20 = 1; + a19 = 1; + a29 = 6; + return -1; + } else if((((((a14==8)&&(!(a7==1)&&((a0==1)&&(((((a28==1)&&((a22==1)&&(input==6)))&&(a29==7))&&!(a11==1))&&!(a20==1)))))&&!(a25==1))&&(a24==1))&&(a19==4))){ + a7 = 1; + a0 = 0; + a11 = 1; + a19 = 2; + a29 = 6; + return 24; + } else if(((((a20==1)&&(!(a7==1)&&(((a14==8)&&(((((input==2)&&((((a29==8)&&(a19==4))||((a19==4)&&(a29==9)))||((a19==5)&&(a29==5))))&&(a24==1))&&(a28==1))&&(a22==1)))&&!(a0==1))))&&(a25==1))&&!(a11==1))){ + a0 = 1; + a19 = 4; + a24 = 0; + a29 = 8; + a20 = 0; + return 24; + } else if(((a22==1)&&(!(a25==1)&&((a7==1)&&(((a11==1)&&((!(a24==1)&&((a14==9)&&(((((a29==6)||(a29==7))&&(input==5))&&(a28==1))&&!(a0==1))))&&!(a20==1)))&&(a19==4)))))){ + a29 = 5; + a19 = 1; + a14 = 8; + a24 = 1; + a20 = 1; + a25 = 1; + a0 = 1; + return -1; + } else if((((a19==2)&&(!(a25==1)&&(((a11==1)&&((a24==1)&&(!(a7==1)&&((((a20==1)&&((a29==6)&&(input==3)))&&(a0==1))&&(a22==1)))))&&(a14==10))))&&(a28==1))){ + a7 = 1; + a25 = 1; + a14 = 8; + a19 = 1; + a29 = 5; + return -1; + } else if(((a14==8)&&(((((!(a11==1)&&(!(a24==1)&&((((((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))&&(input==1))&&(a28==1))&&(a22==1))))&&!(a25==1))&&!(a20==1))&&(a7==1))&&(a0==1)))){ + a14 = 9; + a7 = 0; + a29 = 6; + a20 = 1; + a19 = 4; + a24 = 1; + return 21; + } else if((((a7==1)&&((a25==1)&&(((a14==8)&&(!(a11==1)&&((a28==1)&&((a0==1)&&(((!(a24==1)&&(input==1))&&(a29==6))&&!(a20==1))))))&&(a22==1))))&&(a19==5))){ + a20 = 1; + a29 = 9; + a7 = 0; + a14 = 9; + a24 = 1; + return 24; + } else if(((a19==2)&&((((a14==9)&&(((a7==1)&&((a20==1)&&((((!(a25==1)&&(input==2))&&(a11==1))&&(a0==1))&&(a22==1))))&&!(a24==1)))&&(a28==1))&&(a29==9)))){ + a29 = 5; + a19 = 1; + a25 = 1; + a24 = 1; + a14 = 8; + return -1; + } else if((!(a0==1)&&((!(a25==1)&&((a28==1)&&((!(a24==1)&&(((((input==2)&&(((a19==4)&&(a29==5))||(((a19==3)&&(a29==8))||((a19==3)&&(a29==9)))))&&(a22==1))&&(a14==8))&&(a20==1)))&&(a7==1))))&&!(a11==1)))){ + a14 = 9; + a19 = 5; + a24 = 1; + a29 = 5; + return 23; + } else if(((!(a24==1)&&(((!(a0==1)&&((a25==1)&&(((((((a29==8)||((a29==6)||(a29==7)))&&(input==5))&&!(a11==1))&&(a14==9))&&(a19==3))&&!(a20==1))))&&(a28==1))&&(a7==1)))&&(a22==1))){ + a11 = 1; + a24 = 1; + a0 = 1; + a19 = 1; + a29 = 5; + a14 = 8; + a20 = 1; + return -1; + } else if(((((a22==1)&&((a19==3)&&((((a14==9)&&((a11==1)&&((a29==7)&&(((a24==1)&&(input==6))&&(a0==1)))))&&(a25==1))&&(a20==1))))&&(a7==1))&&(a28==1))){ + a0 = 0; + a14 = 8; + a29 = 6; + a11 = 0; + a20 = 0; + a19 = 1; + a7 = 0; + return -1; + } else if((((((a7==1)&&(((a19==4)&&(((a28==1)&&((a14==8)&&(!(a11==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==5)))))&&!(a20==1)))&&(a24==1)))&&(a22==1))&&(a25==1))&&!(a0==1))){ + a20 = 1; + a25 = 0; + a24 = 0; + a14 = 9; + a0 = 1; + a29 = 6; + return 23; + } else if(((!(a20==1)&&(!(a0==1)&&(!(a24==1)&&((a7==1)&&(((a22==1)&&(!(a25==1)&&(((input==1)&&((((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))||((a29==5)&&(a19==3))))&&(a14==8))))&&(a11==1))))))&&(a28==1))){ + a19 = 4; + a29 = 6; + a14 = 9; + a24 = 1; + return 21; + } else if((((((a28==1)&&((a19==1)&&((a14==9)&&(((a25==1)&&((((input==3)&&((a29==7)||(a29==8)))&&(a24==1))&&!(a20==1)))&&(a22==1)))))&&(a7==1))&&(a0==1))&&!(a11==1))){ + a14 = 8; + a29 = 9; + a24 = 0; + a0 = 0; + a25 = 0; + return 24; + } else if(((!(a25==1)&&((a22==1)&&((((a28==1)&&(((!(a0==1)&&((input==2)&&(((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))))&&(a7==1))&&!(a11==1)))&&(a14==9))&&!(a20==1))))&&!(a24==1))){ + a25 = 1; + a14 = 8; + a11 = 1; + a29 = 7; + a7 = 0; + a19 = 3; + return -1; + } else if(((a7==1)&&((((a22==1)&&(((((a14==9)&&((((input==3)&&(a0==1))&&(a28==1))&&!(a25==1)))&&!(a11==1))&&(a19==2))&&(a29==5)))&&(a24==1))&&!(a20==1)))){ + a11 = 1; + a29 = 8; + a25 = 1; + return 24; + } else if(((((((a28==1)&&((a20==1)&&(!(a0==1)&&(!(a7==1)&&((((input==2)&&(((a29==5)||(a29==6))||(a29==7)))&&(a19==5))&&!(a25==1))))))&&(a22==1))&&!(a24==1))&&(a14==8))&&!(a11==1))){ + a29 = 7; + a11 = 1; + a24 = 1; + a0 = 1; + a19 = 3; + return 23; + } else if((((a14==8)&&((a22==1)&&(((((a28==1)&&(((a25==1)&&((input==5)&&(((a19==4)&&(a29==6))||(((a29==9)&&(a19==3))||((a29==5)&&(a19==4))))))&&!(a0==1)))&&!(a11==1))&&(a7==1))&&(a24==1))))&&!(a20==1))){ + a19 = 5; + a24 = 0; + a7 = 0; + a29 = 8; + return 21; + } else if(((a19==5)&&(((((!(a0==1)&&((a29==6)&&(!(a20==1)&&((((a14==8)&&(input==5))&&!(a25==1))&&(a28==1)))))&&(a7==1))&&!(a24==1))&&(a22==1))&&(a11==1)))){ + a25 = 1; + a29 = 8; + a20 = 1; + a24 = 1; + return 24; + } else if(((!(a25==1)&&((a24==1)&&(((a20==1)&&((((((input==2)&&(((a29==9)&&(a19==2))||((a29==5)&&(a19==3))))&&(a7==1))&&(a28==1))&&!(a11==1))&&(a14==8)))&&(a0==1))))&&(a22==1))){ + a29 = 5; + a11 = 1; + a19 = 1; + a25 = 1; + return -1; + } else if(((!(a11==1)&&((a28==1)&&(((((a24==1)&&(!(a20==1)&&(!(a0==1)&&(((a29==5)&&(input==5))&&!(a7==1)))))&&(a19==5))&&(a14==8))&&(a25==1))))&&(a22==1))){ + a7 = 1; + a0 = 1; + a11 = 1; + a19 = 1; + a20 = 1; + return -1; + } else if((!(a7==1)&&(!(a0==1)&&((a28==1)&&((((((a20==1)&&((a14==9)&&((input==5)&&(((a19==4)&&(a29==5))||(((a19==3)&&(a29==8))||((a29==9)&&(a19==3)))))))&&(a22==1))&&!(a11==1))&&!(a25==1))&&(a24==1)))))){ + a7 = 1; + a0 = 1; + a19 = 1; + a29 = 5; + return 24; + } else if(((((!(a0==1)&&((a11==1)&&((a20==1)&&((!(a25==1)&&((a28==1)&&((((a29==8)||(a29==9))&&(input==2))&&!(a24==1))))&&(a19==4)))))&&!(a7==1))&&(a14==8))&&(a22==1))){ + a14 = 9; + a24 = 1; + a29 = 6; + a19 = 3; + return 24; + } else if(((a20==1)&&(!(a0==1)&&(((a28==1)&&((a25==1)&&((a19==2)&&((((a29==5)&&(((input==1)&&(a22==1))&&(a7==1)))&&(a11==1))&&(a14==9)))))&&!(a24==1))))){ + a7 = 0; + a19 = 5; + a25 = 0; + a20 = 0; + a0 = 1; + return 24; + } else if((((a7==1)&&((((a19==1)&&(((a14==9)&&((!(a25==1)&&((a28==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==1))))&&(a11==1)))&&(a22==1)))&&(a0==1))&&!(a24==1)))&&(a20==1))){ + a7 = 0; + a29 = 5; + a20 = 0; + a0 = 0; + a24 = 1; + a14 = 8; + a19 = 2; + return 23; + } else if(((a24==1)&&(!(a11==1)&&((a7==1)&&(!(a20==1)&&((a19==2)&&((a28==1)&&((a29==5)&&((a14==8)&&(((!(a25==1)&&(input==1))&&!(a0==1))&&(a22==1))))))))))){ + a11 = 1; + a0 = 1; + a29 = 9; + a19 = 1; + a14 = 9; + return 21; + } else if(((!(a11==1)&&(!(a20==1)&&(((!(a7==1)&&((((a22==1)&&((input==1)&&(((a19==4)&&(a29==6))||(((a29==9)&&(a19==3))||((a19==4)&&(a29==5))))))&&(a24==1))&&!(a0==1)))&&(a28==1))&&(a25==1))))&&(a14==9))){ + a11 = 1; + a7 = 1; + a14 = 8; + a20 = 1; + a19 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if((((a25==1)&&(!(a7==1)&&((a14==8)&&(((a11==1)&&((!(a24==1)&&((a28==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==3))&&!(a0==1))))&&!(a20==1)))&&(a19==1)))))&&(a22==1))){ + a0 = 1; + a7 = 1; + a20 = 1; + a14 = 9; + a29 = 8; + a24 = 1; + a11 = 0; + return 24; + } else if((((a28==1)&&((a7==1)&&((((((!(a20==1)&&(((input==5)&&(a0==1))&&!(a11==1)))&&!(a24==1))&&(a25==1))&&(a29==6))&&(a19==5))&&(a22==1))))&&(a14==8))){ + a29 = 5; + a19 = 1; + a24 = 1; + a11 = 1; + a20 = 1; + return -1; + } else if((!(a7==1)&&(((((((((!(a11==1)&&((input==3)&&((a29==6)||(a29==7))))&&!(a0==1))&&!(a20==1))&&!(a24==1))&&!(a25==1))&&(a22==1))&&(a14==8))&&(a19==5))&&(a28==1)))){ + a29 = 5; + a25 = 1; + a20 = 1; + a24 = 1; + a11 = 1; + a19 = 1; + a0 = 1; + a7 = 1; + return -1; + } else if(((a14==8)&&(((((a22==1)&&(((a11==1)&&(!(a0==1)&&(((((a25==1)&&(a29==9))&&(a19==5))||((a19==1)&&((a29==5)&&!(a25==1))))&&(input==3))))&&!(a24==1)))&&(a28==1))&&!(a7==1))&&(a20==1)))){ + a24 = 1; + a7 = 1; + a29 = 5; + a0 = 1; + a19 = 1; + a25 = 1; + return -1; + } else if(((a14==8)&&((((((!(a20==1)&&(!(a0==1)&&(((input==5)&&((((a19==3)&&(a29==8))||((a19==3)&&(a29==9)))||((a29==5)&&(a19==4))))&&(a7==1))))&&(a28==1))&&!(a24==1))&&(a11==1))&&!(a25==1))&&(a22==1)))){ + a19 = 2; + a29 = 8; + a20 = 1; + a25 = 1; + return 23; + } else if((((!(a20==1)&&((a19==5)&&((((((((a7==1)&&(input==2))&&!(a0==1))&&(a29==8))&&!(a24==1))&&!(a11==1))&&!(a25==1))&&(a28==1))))&&(a22==1))&&(a14==8))){ + a7 = 0; + a20 = 1; + a24 = 1; + a11 = 1; + a29 = 6; + return 23; + } else if(((a22==1)&&(((a24==1)&&((a28==1)&&((((a0==1)&&(!(a7==1)&&((((input==4)&&((a29==7)||(a29==8)))&&(a19==1))&&!(a25==1))))&&(a20==1))&&(a14==8))))&&!(a11==1)))){ + a7 = 1; + a25 = 1; + a19 = 3; + a29 = 7; + a20 = 0; + a0 = 0; + a24 = 0; + return 23; + } else if((((a29==8)&&((((a22==1)&&((!(a24==1)&&((a28==1)&&((a14==8)&&((a19==2)&&((input==1)&&(a7==1))))))&&!(a0==1)))&&(a11==1))&&!(a25==1)))&&(a20==1))){ + a14 = 9; + a24 = 1; + a29 = 6; + a19 = 4; + a25 = 1; + return 21; + } else if(((a19==5)&&(((((!(a7==1)&&((!(a24==1)&&(!(a0==1)&&(((input==6)&&(((a29==7)||(a29==8))||(a29==9)))&&(a11==1))))&&(a28==1)))&&(a20==1))&&!(a25==1))&&(a22==1))&&(a14==9)))){ + a0 = 1; + a19 = 3; + a29 = 7; + a25 = 1; + return -1; + } else if(((!(a25==1)&&(!(a20==1)&&(((a28==1)&&((!(a24==1)&&(((a14==9)&&(((input==6)&&((a29==6)||(a29==7)))&&!(a0==1)))&&(a22==1)))&&(a19==5)))&&!(a7==1))))&&(a11==1))){ + a24 = 1; + a14 = 8; + a19 = 1; + a29 = 6; + a7 = 1; + return 23; + } else if(((a11==1)&&(((a14==8)&&((((((((((a29==9)&&((a7==1)&&!(a25==1)))&&(a19==5))||(((!(a7==1)&&(a25==1))&&(a29==5))&&(a19==1)))||((a19==1)&&((a29==6)&&((a25==1)&&!(a7==1)))))&&(input==6))&&(a0==1))&&!(a24==1))&&(a22==1))&&(a28==1)))&&!(a20==1)))){ + a20 = 1; + a25 = 1; + a19 = 5; + a24 = 1; + a7 = 0; + a0 = 0; + a29 = 8; + return 23; + } else if((!(a11==1)&&((a22==1)&&(((a20==1)&&((a24==1)&&(((((((((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))||((a29==6)&&(a19==5)))&&(input==2))&&(a0==1))&&(a14==8))&&(a28==1))&&(a7==1))))&&!(a25==1))))){ + a7 = 0; + a24 = 0; + a29 = 9; + a25 = 1; + a19 = 1; + a20 = 0; + return 24; + } else if((((a25==1)&&((a20==1)&&((((a22==1)&&(((a0==1)&&((a28==1)&&((((a29==6)||(a29==7))&&(input==6))&&(a7==1))))&&!(a24==1)))&&(a19==4))&&(a11==1))))&&(a14==8))){ + a29 = 8; + a7 = 0; + a19 = 3; + a20 = 0; + a11 = 0; + return 23; + } else if(((!(a20==1)&&((a14==10)&&((a25==1)&&((((a7==1)&&(((a24==1)&&((a11==1)&&((a0==1)&&(input==6))))&&(a22==1)))&&(a28==1))&&(a29==9)))))&&(a19==5))){ + a29 = 7; + a14 = 9; + a19 = 2; + a20 = 1; + return 23; + } else if(((a28==1)&&(((!(a20==1)&&((a19==2)&&((a14==9)&&(!(a25==1)&&((a22==1)&&(((((a29==5)||(a29==6))&&(input==2))&&(a24==1))&&(a0==1)))))))&&!(a7==1))&&(a11==1)))){ + a25 = 1; + a0 = 0; + a29 = 6; + a14 = 8; + return 23; + } else if((!(a24==1)&&((a7==1)&&(((!(a11==1)&&(!(a25==1)&&((((!(a20==1)&&((input==5)&&((a29==7)||(a29==8))))&&(a28==1))&&!(a0==1))&&(a22==1))))&&(a14==9))&&(a19==3))))){ + a29 = 5; + a24 = 1; + a14 = 8; + a11 = 1; + a25 = 1; + return 23; + } else if((((a14==9)&&((a22==1)&&((((a24==1)&&((a11==1)&&((a28==1)&&(!(a20==1)&&((((a19==5)&&(a29==6))||(((a29==9)&&(a19==4))||((a19==5)&&(a29==5))))&&(input==1))))))&&!(a0==1))&&!(a7==1))))&&!(a25==1))){ + a0 = 1; + a25 = 1; + a14 = 8; + a19 = 1; + a29 = 5; + a7 = 1; + a20 = 1; + return -1; + } else if(((a14==8)&&((!(a25==1)&&(((((a0==1)&&(!(a24==1)&&(((a29==7)&&((input==4)&&!(a11==1)))&&(a7==1))))&&(a22==1))&&(a28==1))&&(a19==3)))&&!(a20==1)))){ + a24 = 1; + a14 = 9; + a25 = 1; + return 21; + } else if(((a29==8)&&((((a7==1)&&(!(a25==1)&&((a19==3)&&((a11==1)&&(((((a22==1)&&(input==1))&&(a14==8))&&(a0==1))&&!(a20==1))))))&&(a28==1))&&(a24==1)))){ + a19 = 1; + a25 = 1; + a11 = 0; + a20 = 1; + return 21; + } else if(((!(a7==1)&&(!(a0==1)&&(((((!(a11==1)&&((!(a20==1)&&((input==3)&&(a22==1)))&&(a29==7)))&&!(a24==1))&&(a19==2))&&!(a25==1))&&(a14==9))))&&(a28==1))){ + a25 = 1; + a29 = 5; + a14 = 8; + a7 = 1; + a11 = 1; + a20 = 1; + a0 = 1; + a24 = 1; + a19 = 1; + return -1; + } else if(((((a24==1)&&((a14==8)&&((a28==1)&&((a19==3)&&((a7==1)&&((!(a20==1)&&(((input==1)&&(a22==1))&&(a25==1)))&&(a11==1)))))))&&(a29==8))&&(a0==1))){ + a20 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a7==1)&&(((!(a0==1)&&((((((a19==2)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==5))&&!(a11==1)))&&(a14==8))&&!(a20==1))&&(a22==1))&&!(a24==1)))&&(a25==1))&&(a28==1)))){ + a7 = 0; + a25 = 0; + a29 = 7; + a11 = 1; + a24 = 1; + a20 = 1; + a0 = 1; + a19 = 3; + return 23; + } else if((((a0==1)&&((((a14==8)&&((a7==1)&&((!(a25==1)&&((((input==4)&&((a29==8)||((a29==6)||(a29==7))))&&!(a11==1))&&(a24==1)))&&!(a20==1))))&&(a22==1))&&(a19==3)))&&(a28==1))){ + a14 = 9; + a25 = 1; + a19 = 1; + a20 = 1; + a7 = 0; + a29 = 9; + a11 = 1; + return 23; + } else if((!(a7==1)&&((a20==1)&&((!(a25==1)&&(((a24==1)&&(((a0==1)&&(((input==3)&&(((a19==3)&&(a29==9))||((a29==5)&&(a19==4))))&&(a14==9)))&&!(a11==1)))&&(a28==1)))&&(a22==1))))){ + a7 = 1; + a11 = 1; + a19 = 1; + a29 = 5; + a25 = 1; + a14 = 8; + return -1; + } else if((!(a11==1)&&(!(a7==1)&&((((a14==9)&&((((((input==4)&&((((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))||((a19==2)&&(a29==6))))&&(a25==1))&&!(a20==1))&&!(a24==1))&&(a22==1)))&&!(a0==1))&&(a28==1))))){ + a19 = 4; + a11 = 1; + a29 = 8; + return -1; + } else if(((a14==9)&&(((a22==1)&&(((a0==1)&&((a20==1)&&((!(a25==1)&&(!(a11==1)&&(((((a29==8)&&(a19==2))||((a19==2)&&(a29==9)))||((a19==3)&&(a29==5)))&&(input==6))))&&(a24==1))))&&(a28==1)))&&(a7==1)))){ + a19 = 1; + a29 = 7; + a7 = 0; + a14 = 8; + a0 = 0; + return 24; + } else if(((!(a11==1)&&(!(a25==1)&&((a20==1)&&(((((a22==1)&&(((a14==9)&&(((a29==5)||(a29==6))&&(input==6)))&&(a19==3)))&&!(a0==1))&&(a28==1))&&(a24==1)))))&&!(a7==1))){ + a24 = 0; + a14 = 8; + a29 = 5; + a0 = 1; + a20 = 0; + return 23; + } else if(((a22==1)&&((a14==8)&&((((!(a25==1)&&((!(a0==1)&&(((input==5)&&((((a19==4)&&(a29==8))||((a29==9)&&(a19==4)))||((a19==5)&&(a29==5))))&&!(a20==1)))&&(a24==1)))&&(a7==1))&&!(a11==1))&&(a28==1))))){ + a19 = 4; + a29 = 8; + a11 = 1; + a25 = 1; + return -1; + } else if((((a24==1)&&((a20==1)&&((a19==5)&&(((a14==8)&&(((a7==1)&&((a22==1)&&(((a28==1)&&(input==6))&&(a0==1))))&&(a29==9)))&&(a25==1)))))&&!(a11==1))){ + a0 = 0; + a25 = 0; + a19 = 1; + a20 = 0; + a7 = 0; + a29 = 8; + return 23; + } else if(((a0==1)&&(((((((!(a11==1)&&(((((a29==6)||(a29==7))&&(input==1))&&(a14==8))&&(a24==1)))&&!(a7==1))&&(a19==3))&&(a28==1))&&!(a25==1))&&(a22==1))&&!(a20==1)))){ + a29 = 9; + a19 = 5; + a11 = 1; + a0 = 0; + a20 = 1; + return 21; + } else if(((((a25==1)&&(!(a11==1)&&(((a28==1)&&((((a14==8)&&((input==4)&&(((a19==2)&&(a29==5))||(((a19==1)&&(a29==8))||((a29==9)&&(a19==1))))))&&!(a7==1))&&(a0==1)))&&!(a20==1))))&&!(a24==1))&&(a22==1))){ + a29 = 7; + a25 = 0; + a19 = 3; + return 21; + } else if((((a28==1)&&((((((a29==7)&&(!(a0==1)&&((a19==5)&&(((input==3)&&!(a7==1))&&!(a11==1)))))&&(a22==1))&&(a24==1))&&(a25==1))&&(a14==8)))&&(a20==1))){ + a19 = 2; + a11 = 1; + a20 = 0; + a29 = 5; + return 23; + } else if((!(a24==1)&&(((((a19==4)&&((((((((a29==9)||((a29==7)||(a29==8)))&&(input==1))&&(a22==1))&&(a11==1))&&(a14==8))&&(a25==1))&&(a7==1)))&&(a28==1))&&(a20==1))&&!(a0==1)))){ + a19 = 5; + a11 = 0; + a20 = 0; + a0 = 1; + a25 = 0; + a29 = 6; + return -1; + } else if(((a28==1)&&((((a0==1)&&((a20==1)&&(!(a24==1)&&((a22==1)&&((a25==1)&&((a11==1)&&((a19==2)&&((input==2)&&((a29==6)||(a29==7))))))))))&&(a14==10))&&(a7==1)))){ + a20 = 0; + a11 = 0; + a29 = 9; + a24 = 1; + a14 = 9; + a7 = 0; + return 23; + } else if(((a28==1)&&((!(a24==1)&&((!(a11==1)&&((((((input==3)&&((((a19==1)&&(a29==8))||((a19==1)&&(a29==9)))||((a19==2)&&(a29==5))))&&(a20==1))&&(a14==8))&&!(a7==1))&&!(a25==1)))&&!(a0==1)))&&(a22==1)))){ + a24 = 1; + a7 = 1; + a20 = 0; + a19 = 4; + a29 = 5; + a11 = 1; + return 24; + } else if((((((a22==1)&&((a29==7)&&(!(a25==1)&&((((((a28==1)&&(input==2))&&!(a24==1))&&(a11==1))&&(a19==3))&&!(a20==1)))))&&(a14==9))&&(a7==1))&&!(a0==1))){ + a29 = 8; + a11 = 0; + a0 = 1; + a19 = 5; + a20 = 1; + a7 = 0; + return 21; + } else if((((a22==1)&&((a24==1)&&((!(a11==1)&&((a19==5)&&((a28==1)&&(!(a20==1)&&((a14==8)&&(!(a25==1)&&(((a29==5)||(a29==6))&&(input==3))))))))&&!(a7==1))))&&!(a0==1))){ + a25 = 1; + a7 = 1; + a19 = 1; + a11 = 1; + a29 = 5; + a0 = 1; + a20 = 1; + return -1; + } else if((((a11==1)&&((((a20==1)&&(((!(a7==1)&&((((input==3)&&(((a29==5)||(a29==6))||(a29==7)))&&(a28==1))&&(a25==1)))&&(a0==1))&&(a24==1)))&&(a19==5))&&(a22==1)))&&(a14==10))){ + a29 = 9; + a19 = 2; + a7 = 1; + a25 = 0; + a14 = 9; + return 21; + } else if((!(a11==1)&&(!(a20==1)&&((a28==1)&&((a7==1)&&((((a25==1)&&(!(a24==1)&&(((input==3)&&((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))||((a29==6)&&(a19==3))))&&(a14==9))))&&(a0==1))&&(a22==1))))))){ + a19 = 3; + a14 = 8; + a0 = 0; + a7 = 0; + a29 = 9; + return 24; + } else if(((a28==1)&&(((a29==9)&&(!(a7==1)&&((((((a14==8)&&((a19==3)&&((a22==1)&&(input==3))))&&!(a25==1))&&!(a0==1))&&!(a24==1))&&(a20==1))))&&!(a11==1)))){ + a25 = 1; + a20 = 0; + a24 = 1; + a19 = 5; + a11 = 1; + a29 = 7; + return 24; + } else if(((((((a7==1)&&(((!(a11==1)&&((((input==2)&&(((a29==7)||(a29==8))||(a29==9)))&&(a28==1))&&!(a25==1)))&&(a19==4))&&(a0==1)))&&!(a24==1))&&(a22==1))&&(a14==9))&&(a20==1))){ + a11 = 1; + a24 = 1; + a29 = 5; + a19 = 5; + a14 = 8; + a0 = 0; + return 21; + } else if((((((((a28==1)&&(!(a24==1)&&(((a20==1)&&((a7==1)&&((a22==1)&&(input==5))))&&(a11==1))))&&(a29==9))&&(a19==2))&&!(a25==1))&&(a0==1))&&(a14==9))){ + a24 = 1; + a14 = 8; + a25 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a19==4)&&(((a22==1)&&((a24==1)&&(((((a28==1)&&((!(a7==1)&&((input==5)&&((a29==8)||(a29==9))))&&(a11==1)))&&(a14==10))&&(a0==1))&&!(a20==1))))&&!(a25==1)))){ + a19 = 5; + a7 = 1; + a14 = 8; + a29 = 6; + a0 = 0; + return 23; + } else if((((a14==9)&&((a28==1)&&(((a22==1)&&(((a20==1)&&((!(a7==1)&&((input==4)&&(((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))))&&!(a11==1)))&&(a24==1)))&&!(a25==1))))&&(a0==1))){ + a25 = 1; + a14 = 8; + a29 = 5; + a7 = 1; + a0 = 0; + a19 = 2; + a11 = 1; + return 23; + } return calculate_output28(input); + } + + int calculate_output28(int input) { + if(((!(a20==1)&&((((a0==1)&&((((a24==1)&&(((a25==1)&&(((a29==7)||(a29==8))&&(input==5)))&&(a7==1)))&&(a14==9))&&(a19==4)))&&(a28==1))&&(a11==1)))&&(a22==1))){ + a20 = 1; + a29 = 7; + a7 = 0; + a19 = 3; + return 21; + } else if((!(a11==1)&&((((a19==1)&&((a14==8)&&((!(a24==1)&&(((((input==5)&&((a29==6)||(a29==7)))&&!(a0==1))&&(a28==1))&&(a20==1)))&&(a22==1))))&&!(a25==1))&&!(a7==1)))){ + a7 = 1; + a29 = 5; + a11 = 1; + a0 = 1; + a25 = 1; + a24 = 1; + return -1; + } else if((((a20==1)&&((((a22==1)&&((((((a29==6)&&((input==5)&&(a28==1)))&&(a25==1))&&(a24==1))&&(a11==1))&&!(a7==1)))&&(a14==8))&&(a19==4)))&&(a0==1))){ + a7 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((a24==1)&&(!(a7==1)&&(((!(a0==1)&&(((a14==9)&&((a22==1)&&((((input==1)&&(a29==5))&&(a11==1))&&!(a25==1))))&&(a19==2)))&&!(a20==1))&&(a28==1))))){ + a11 = 0; + a0 = 1; + a24 = 0; + return 23; + } else if(((!(a20==1)&&(((a28==1)&&((((((((((a19==4)&&(a29==8))||((a29==9)&&(a19==4)))||((a19==5)&&(a29==5)))&&(input==2))&&(a22==1))&&(a14==8))&&(a0==1))&&!(a25==1))&&(a24==1)))&&!(a7==1)))&&!(a11==1))){ + a7 = 1; + a0 = 0; + a19 = 5; + a11 = 1; + a29 = 8; + a25 = 1; + return 21; + } else if(((((a11==1)&&(!(a7==1)&&((a25==1)&&((a24==1)&&((a28==1)&&((a14==8)&&(!(a20==1)&&((input==2)&&(((a29==5)&&(a19==5))||(((a29==8)&&(a19==4))||((a19==4)&&(a29==9))))))))))))&&(a0==1))&&(a22==1))){ + a29 = 8; + a25 = 0; + a7 = 1; + a11 = 0; + a19 = 4; + return 23; + } else if((!(a11==1)&&((((!(a25==1)&&((a28==1)&&((a0==1)&&((((a22==1)&&(((a29==7)||(a29==8))&&(input==1)))&&(a19==5))&&(a7==1)))))&&(a14==8))&&(a20==1))&&!(a24==1)))){ + a11 = 1; + a24 = 1; + a29 = 7; + a0 = 0; + a7 = 0; + a19 = 2; + return 24; + } else if(((a14==9)&&((a28==1)&&(((((a20==1)&&((!(a7==1)&&((a22==1)&&((((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))&&(input==2))))&&!(a0==1)))&&!(a24==1))&&(a11==1))&&(a25==1))))){ + a29 = 5; + a19 = 1; + a25 = 0; + a0 = 1; + return 21; + } else if(((a28==1)&&((a24==1)&&(!(a11==1)&&(!(a0==1)&&((((!(a7==1)&&((a19==3)&&((((a29==8)||(a29==9))&&(input==6))&&!(a20==1))))&&(a22==1))&&!(a25==1))&&(a14==9))))))){ + a7 = 1; + a20 = 1; + a25 = 1; + a11 = 1; + a14 = 8; + a29 = 5; + a19 = 1; + a0 = 1; + return -1; + } else if((((a14==8)&&((a7==1)&&((((a22==1)&&((a11==1)&&((!(a0==1)&&((((a29==8)||(a29==9))&&(input==3))&&!(a20==1)))&&(a25==1))))&&!(a24==1))&&(a28==1))))&&(a19==1))){ + a19 = 5; + a20 = 1; + a7 = 0; + a25 = 0; + a24 = 1; + a29 = 6; + a14 = 9; + return 24; + } else if((((a0==1)&&((a14==8)&&(((a28==1)&&(!(a25==1)&&(((a20==1)&&(((a22==1)&&((input==2)&&((a29==9)||((a29==7)||(a29==8)))))&&!(a7==1)))&&(a11==1))))&&(a24==1))))&&(a19==5))){ + a29 = 8; + a24 = 0; + a7 = 1; + return 21; + } else if((((a28==1)&&((a24==1)&&(!(a7==1)&&(!(a25==1)&&((a22==1)&&((a14==8)&&(((!(a20==1)&&(((a29==5)||(a29==6))&&(input==6)))&&(a19==2))&&(a11==1))))))))&&!(a0==1))){ + a25 = 1; + a0 = 1; + a7 = 1; + a29 = 5; + a19 = 1; + a20 = 1; + return -1; + } else if(((((a29==9)&&(!(a24==1)&&((a28==1)&&(!(a0==1)&&(((a11==1)&&((((a7==1)&&(input==2))&&(a22==1))&&(a19==1)))&&!(a20==1))))))&&(a25==1))&&(a14==9))){ + a0 = 1; + a11 = 0; + a19 = 4; + a29 = 6; + return -1; + } else if((((((((a28==1)&&(((a0==1)&&(((a29==6)&&((a14==9)&&(input==1)))&&!(a24==1)))&&!(a25==1)))&&(a11==1))&&(a7==1))&&(a22==1))&&!(a20==1))&&(a19==4))){ + a20 = 1; + a25 = 1; + a29 = 5; + a14 = 8; + a19 = 1; + a24 = 1; + return -1; + } else if((((a24==1)&&(((a22==1)&&(!(a11==1)&&((a20==1)&&(((((a14==9)&&((input==5)&&((a29==7)||((a29==5)||(a29==6)))))&&!(a0==1))&&!(a7==1))&&(a28==1)))))&&(a19==3)))&&(a25==1))){ + a0 = 1; + a29 = 5; + a7 = 1; + a19 = 1; + a11 = 1; + a14 = 8; + return -1; + } else if(((((a11==1)&&((a19==1)&&((a20==1)&&(((a0==1)&&(!(a24==1)&&((a22==1)&&((a14==10)&&((input==4)&&(((a29==5)||(a29==6))||(a29==7)))))))&&(a7==1)))))&&!(a25==1))&&(a28==1))){ + a29 = 7; + a14 = 9; + a24 = 1; + a20 = 0; + a11 = 0; + return -1; + } else if(((a22==1)&&(((((((a0==1)&&((a11==1)&&(((a19==3)&&(!(a7==1)&&(input==6)))&&(a28==1))))&&(a24==1))&&!(a25==1))&&(a14==9))&&(a29==6))&&!(a20==1)))){ + a14 = 8; + a24 = 0; + a19 = 5; + a29 = 9; + a25 = 1; + a0 = 0; + a11 = 0; + return -1; + } else if((((a22==1)&&(!(a25==1)&&((a0==1)&&(((a14==10)&&((a20==1)&&(!(a7==1)&&(((a19==2)&&((input==5)&&(a28==1)))&&(a24==1)))))&&(a29==5)))))&&(a11==1))){ + a14 = 9; + a11 = 0; + a20 = 0; + a24 = 0; + a29 = 6; + a7 = 1; + return 23; + } else if((!(a24==1)&&(((a25==1)&&((a22==1)&&((((a11==1)&&((a28==1)&&((a0==1)&&((a20==1)&&((input==4)&&((a29==7)||(a29==8)))))))&&(a19==3))&&!(a7==1))))&&(a14==8)))){ + a24 = 1; + a19 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if(((a24==1)&&(((((a14==9)&&((a7==1)&&((!(a0==1)&&((a28==1)&&((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))&&(input==3))))&&!(a20==1))))&&(a11==1))&&(a25==1))&&(a22==1)))){ + a19 = 5; + a7 = 0; + a14 = 8; + a29 = 5; + a20 = 1; + a25 = 0; + a24 = 0; + return -1; + } else if((((a0==1)&&((a28==1)&&((((a22==1)&&(((!(a25==1)&&((input==3)&&((((a29==8)&&(a19==3))||((a29==9)&&(a19==3)))||((a29==5)&&(a19==4)))))&&(a14==9))&&!(a20==1)))&&(a11==1))&&!(a7==1))))&&!(a24==1))){ + a25 = 1; + a11 = 0; + a19 = 2; + a29 = 9; + return 24; + } else if(((((a0==1)&&(!(a11==1)&&((a7==1)&&(((a28==1)&&(((a29==7)&&((a25==1)&&((input==2)&&(a19==5))))&&!(a20==1)))&&(a22==1)))))&&(a14==9))&&!(a24==1))){ + a20 = 1; + a24 = 1; + a19 = 1; + a29 = 5; + a11 = 1; + a14 = 8; + return -1; + } else if(((a28==1)&&(((a22==1)&&(!(a20==1)&&(!(a7==1)&&((a25==1)&&((a19==5)&&(((a14==8)&&((a0==1)&&((input==6)&&((a29==7)||(a29==8)))))&&!(a11==1)))))))&&!(a24==1)))){ + a24 = 1; + a19 = 1; + a7 = 1; + a29 = 5; + a11 = 1; + a20 = 1; + return -1; + } else if((((((a20==1)&&(((a11==1)&&(((a28==1)&&((((input==5)&&(a22==1))&&(a19==2))&&(a7==1)))&&(a0==1)))&&(a14==9)))&&(a29==7))&&(a24==1))&&(a25==1))){ + a11 = 0; + a20 = 0; + a0 = 0; + a14 = 8; + a19 = 5; + a29 = 8; + a7 = 0; + return -1; + } else if(((a20==1)&&((((a14==9)&&((((a22==1)&&((((a7==1)&&(((a29==7)||(a29==8))&&(input==5)))&&(a0==1))&&(a11==1)))&&(a28==1))&&(a19==4)))&&(a25==1))&&(a24==1)))){ + a29 = 5; + a0 = 0; + a19 = 1; + a14 = 8; + a25 = 0; + return 23; + } else if((((a14==9)&&((((((a22==1)&&(((((input==6)&&((a29==6)||(a29==7)))&&!(a20==1))&&(a11==1))&&!(a25==1)))&&(a0==1))&&!(a7==1))&&(a28==1))&&(a19==3)))&&!(a24==1))){ + a19 = 1; + a7 = 1; + a24 = 1; + a25 = 1; + a14 = 8; + a29 = 5; + a20 = 1; + return -1; + } else if((((a20==1)&&(!(a25==1)&&(((a22==1)&&(((!(a7==1)&&(!(a24==1)&&((input==1)&&(((a29==6)&&(a19==5))||(((a29==9)&&(a19==4))||((a29==5)&&(a19==5)))))))&&!(a11==1))&&(a14==9)))&&(a28==1))))&&(a0==1))){ + a29 = 9; + a7 = 1; + a19 = 5; + return -1; + } else if(((a25==1)&&(((!(a7==1)&&((a0==1)&&(((a14==8)&&(((!(a11==1)&&((input==2)&&((a29==9)||((a29==7)||(a29==8)))))&&(a22==1))&&(a19==2)))&&(a20==1))))&&!(a24==1))&&(a28==1)))){ + a24 = 1; + a19 = 3; + a11 = 1; + a25 = 0; + a29 = 6; + return 23; + } else if((((a14==8)&&((a29==5)&&((((a19==5)&&(((a28==1)&&(!(a24==1)&&(((a0==1)&&(input==5))&&!(a25==1))))&&!(a11==1)))&&(a22==1))&&!(a7==1))))&&(a20==1))){ + a19 = 2; + a25 = 1; + a7 = 1; + a29 = 7; + a24 = 1; + a14 = 9; + return 23; + } else if(((a28==1)&&((a14==8)&&((a19==1)&&(!(a11==1)&&(!(a7==1)&&((!(a24==1)&&(!(a25==1)&&(!(a0==1)&&((((a29==6)||(a29==7))&&(input==2))&&(a20==1)))))&&(a22==1)))))))){ + a7 = 1; + a29 = 5; + a25 = 1; + a24 = 1; + a0 = 1; + a11 = 1; + return -1; + } else if(((a14==8)&&((!(a0==1)&&((a22==1)&&((a28==1)&&(!(a25==1)&&(((!(a24==1)&&((a20==1)&&((input==6)&&((a29==9)||((a29==7)||(a29==8))))))&&(a19==1))&&!(a7==1))))))&&(a11==1)))){ + a24 = 1; + a25 = 1; + a29 = 6; + a7 = 1; + a19 = 5; + return 23; + } else if((((a11==1)&&(((((a24==1)&&((a25==1)&&(!(a20==1)&&(!(a7==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==3))&&(a0==1))))))&&(a14==9))&&(a22==1))&&(a19==5)))&&(a28==1))){ + a29 = 5; + a19 = 1; + a20 = 1; + a7 = 1; + a14 = 8; + return -1; + } else if((((!(a0==1)&&((a22==1)&&((!(a7==1)&&((!(a20==1)&&(((a28==1)&&((a14==9)&&(input==5)))&&!(a11==1)))&&(a19==5)))&&(a29==9))))&&!(a24==1))&&(a25==1))){ + a19 = 1; + a0 = 1; + a20 = 1; + a24 = 1; + a29 = 5; + return 23; + } else if(((a11==1)&&(((!(a0==1)&&((((a22==1)&&(((a14==8)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==1))&&!(a24==1)))&&(a19==3)))&&(a28==1))&&(a20==1)))&&!(a25==1))&&(a7==1)))){ + a20 = 0; + a29 = 7; + a7 = 0; + a19 = 4; + a25 = 1; + a24 = 1; + return 21; + } else if(((a14==8)&&(((a19==5)&&((((a28==1)&&((a11==1)&&(!(a7==1)&&((((input==6)&&((a29==7)||((a29==5)||(a29==6))))&&(a24==1))&&(a0==1)))))&&(a22==1))&&!(a20==1)))&&!(a25==1)))){ + a25 = 1; + a7 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a28==1)&&((((a7==1)&&(!(a11==1)&&((((a20==1)&&((!(a24==1)&&((input==1)&&(((a29==6)||(a29==7))||(a29==8))))&&!(a25==1)))&&(a14==8))&&!(a0==1))))&&(a19==1))&&(a22==1)))){ + a0 = 1; + a20 = 0; + a19 = 3; + a29 = 9; + return 24; + } else if(((a28==1)&&((a24==1)&&(((a19==2)&&((a0==1)&&((a14==9)&&((!(a11==1)&&(!(a7==1)&&(((input==5)&&((a29==6)||(a29==7)))&&(a25==1))))&&!(a20==1)))))&&(a22==1))))){ + a0 = 0; + a25 = 0; + a19 = 3; + a14 = 8; + a24 = 0; + a11 = 1; + a7 = 1; + a29 = 7; + a20 = 1; + return 24; + } else if(((a14==8)&&(!(a24==1)&&(((!(a25==1)&&(((a20==1)&&(((((((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))||((a19==3)&&(a29==5)))&&(input==4))&&(a22==1))&&(a0==1)))&&(a28==1)))&&!(a11==1))&&(a7==1))))){ + a11 = 1; + a20 = 0; + a24 = 1; + a19 = 5; + a29 = 5; + a0 = 0; + return 24; + } else if((((((a20==1)&&((a22==1)&&((a28==1)&&(!(a24==1)&&(((((input==5)&&(a0==1))&&(a14==8))&&(a29==9))&&!(a25==1))))))&&(a7==1))&&(a19==4))&&!(a11==1))){ + a29 = 8; + a11 = 1; + a19 = 5; + a7 = 0; + a14 = 9; + return 21; + } else if((((a29==9)&&((((a22==1)&&((((a19==3)&&(!(a24==1)&&(((input==3)&&!(a20==1))&&(a7==1))))&&(a11==1))&&(a14==9)))&&(a25==1))&&(a28==1)))&&!(a0==1))){ + a19 = 5; + a11 = 0; + a29 = 5; + a25 = 0; + a0 = 1; + return 24; + } else if(((a19==5)&&(((!(a7==1)&&((a14==9)&&((a11==1)&&(((((a28==1)&&(((a29==6)||(a29==7))&&(input==6)))&&(a24==1))&&(a0==1))&&!(a25==1)))))&&(a22==1))&&!(a20==1)))){ + a11 = 0; + a0 = 0; + a14 = 8; + a29 = 7; + a20 = 1; + a25 = 1; + return -1; + } else if((!(a25==1)&&(((((((a22==1)&&((((a19==2)&&(((a29==6)||(a29==7))&&(input==6)))&&(a28==1))&&(a14==8)))&&(a7==1))&&(a11==1))&&(a20==1))&&!(a24==1))&&(a0==1)))){ + a29 = 9; + a0 = 0; + a24 = 1; + a19 = 1; + return 23; + } else if((((((a14==8)&&((a25==1)&&((a22==1)&&(!(a11==1)&&((((a28==1)&&(((a29==6)||(a29==7))&&(input==2)))&&!(a0==1))&&(a19==1))))))&&!(a24==1))&&(a7==1))&&!(a20==1))){ + a29 = 5; + a24 = 1; + a0 = 1; + a11 = 1; + a20 = 1; + return -1; + } else if(((a25==1)&&((a0==1)&&(((a20==1)&&((a14==9)&&((((a28==1)&&(!(a24==1)&&((a22==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==1)))))&&!(a7==1))&&(a19==5))))&&(a11==1))))){ + a29 = 7; + a14 = 8; + a11 = 0; + a20 = 0; + return 23; + } else if(((a22==1)&&((((a0==1)&&(!(a20==1)&&((a28==1)&&((((a25==1)&&((a7==1)&&((input==4)&&((a29==7)||(a29==8)))))&&!(a11==1))&&(a14==9)))))&&!(a24==1))&&(a19==3)))){ + a29 = 5; + a24 = 1; + a11 = 1; + return -1; + } else if(((((a28==1)&&((a25==1)&&((a7==1)&&((!(a24==1)&&((a20==1)&&((a19==5)&&((a0==1)&&((a22==1)&&(input==3))))))&&(a29==8)))))&&!(a11==1))&&(a14==9))){ + a24 = 1; + a29 = 6; + a19 = 1; + a20 = 0; + return -1; + } else if(((a0==1)&&((a19==4)&&(((a11==1)&&(((((a29==7)&&((!(a20==1)&&((a14==9)&&(input==2)))&&!(a25==1)))&&(a7==1))&&(a22==1))&&(a24==1)))&&(a28==1))))){ + a25 = 1; + a14 = 8; + a29 = 5; + a20 = 1; + a19 = 1; + return -1; + } else if((((a28==1)&&(((a20==1)&&((((a11==1)&&(!(a25==1)&&(((a22==1)&&((input==6)&&((a29==8)||(a29==9))))&&(a7==1))))&&(a14==10))&&(a24==1)))&&(a19==2)))&&(a0==1))){ + a0 = 0; + a24 = 0; + a7 = 0; + a14 = 8; + a25 = 1; + a11 = 0; + a29 = 8; + a20 = 0; + a19 = 3; + return -1; + } else if(((a25==1)&&((a11==1)&&((a20==1)&&(!(a0==1)&&(((a28==1)&&(!(a24==1)&&(((a7==1)&&((a22==1)&&((input==5)&&((a29==5)||(a29==6)))))&&(a14==8))))&&(a19==3))))))){ + a24 = 1; + a14 = 9; + a19 = 1; + a29 = 5; + return 24; + } else if((!(a24==1)&&((a22==1)&&((((a25==1)&&((a19==3)&&(((a7==1)&&((a28==1)&&(((input==1)&&((a29==8)||((a29==6)||(a29==7))))&&!(a11==1))))&&!(a20==1))))&&(a14==9))&&!(a0==1))))){ + a29 = 8; + a24 = 1; + a20 = 1; + a11 = 1; + a0 = 1; + a25 = 0; + a19 = 4; + return 24; + } else if(((a20==1)&&((a14==9)&&((a29==6)&&((a28==1)&&(!(a25==1)&&((((a11==1)&&(((!(a0==1)&&(input==5))&&(a22==1))&&(a24==1)))&&(a7==1))&&(a19==5)))))))){ + a7 = 0; + a29 = 8; + a19 = 1; + a11 = 0; + a24 = 0; + a14 = 8; + return 24; + } else if(((a20==1)&&(!(a7==1)&&((((((((a11==1)&&(((input==4)&&(((a29==5)||(a29==6))||(a29==7)))&&(a24==1)))&&(a28==1))&&(a22==1))&&(a0==1))&&(a14==10))&&(a19==5))&&(a25==1))))){ + a14 = 8; + a19 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if(((a28==1)&&((!(a11==1)&&(((!(a0==1)&&((((a25==1)&&((a19==5)&&(((a29==8)||(a29==9))&&(input==4))))&&(a7==1))&&(a22==1)))&&(a14==9))&&!(a24==1)))&&(a20==1)))){ + a29 = 7; + a20 = 0; + a0 = 1; + a19 = 3; + a14 = 8; + a25 = 0; + return 21; + } else if(((a7==1)&&(((a19==4)&&(((a28==1)&&((a0==1)&&((((((input==2)&&((a29==5)||(a29==6)))&&(a14==8))&&!(a20==1))&&(a22==1))&&!(a11==1))))&&(a25==1)))&&!(a24==1)))){ + a14 = 9; + a29 = 5; + a20 = 1; + a7 = 0; + a24 = 1; + a19 = 1; + return 24; + } else if((!(a7==1)&&((a14==9)&&(((a19==4)&&((!(a0==1)&&((a28==1)&&((((a24==1)&&((input==6)&&(a25==1)))&&!(a20==1))&&!(a11==1))))&&(a22==1)))&&(a29==8))))){ + a14 = 8; + a7 = 1; + a0 = 1; + a11 = 1; + a29 = 5; + a19 = 1; + a20 = 1; + return -1; + } else if((!(a24==1)&&((((a19==5)&&((a7==1)&&((((a28==1)&&((a0==1)&&((a14==8)&&((input==5)&&(((a29==7)||(a29==8))||(a29==9))))))&&(a11==1))&&!(a25==1))))&&(a22==1))&&(a20==1)))){ + a19 = 3; + a0 = 0; + a7 = 0; + a29 = 5; + a24 = 1; + return 21; + } else if((((a24==1)&&((a7==1)&&((!(a20==1)&&((((a28==1)&&(((input==5)&&(((a19==3)&&(a29==9))||((a29==5)&&(a19==4))))&&(a25==1)))&&(a22==1))&&(a11==1)))&&!(a0==1))))&&(a14==8))){ + a20 = 1; + a29 = 5; + a19 = 1; + a0 = 1; + return -1; + } else if((((!(a25==1)&&((((a22==1)&&((a28==1)&&((a14==8)&&(!(a0==1)&&(!(a7==1)&&((input==3)&&(((a29==5)||(a29==6))||(a29==7))))))))&&(a19==4))&&!(a24==1)))&&!(a20==1))&&!(a11==1))){ + a24 = 1; + a29 = 7; + a7 = 1; + a25 = 1; + a19 = 1; + a11 = 1; + return 21; + } else if(((!(a20==1)&&((a19==4)&&((a11==1)&&((a28==1)&&(((((a14==8)&&(!(a7==1)&&((input==4)&&((a29==6)||(a29==7)))))&&!(a25==1))&&!(a0==1))&&(a24==1))))))&&(a22==1))){ + a19 = 3; + a29 = 5; + a7 = 1; + return -1; + } else if((((a0==1)&&((!(a7==1)&&(((a22==1)&&((a28==1)&&((a25==1)&&(!(a24==1)&&(!(a20==1)&&((input==3)&&((a29==6)||(a29==7))))))))&&(a11==1)))&&(a14==8)))&&(a19==3))){ + a7 = 1; + a24 = 1; + a20 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((((a11==1)&&(!(a24==1)&&((a14==8)&&((a22==1)&&((a0==1)&&((((((a29==7)||(a29==8))&&(input==3))&&!(a20==1))&&(a7==1))&&(a19==1)))))))&&(a25==1))&&(a28==1))){ + a0 = 0; + a25 = 0; + a7 = 0; + a20 = 1; + a19 = 5; + a29 = 5; + return 23; + } else if((((a14==9)&&((a25==1)&&(((a0==1)&&((a7==1)&&((a28==1)&&((!(a11==1)&&((a19==1)&&(((a29==5)||(a29==6))&&(input==3))))&&(a22==1)))))&&(a24==1))))&&!(a20==1))){ + a14 = 8; + a11 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if((((((!(a7==1)&&(!(a0==1)&&((((a22==1)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==5))&&(a25==1)))&&(a11==1))&&(a24==1))))&&(a20==1))&&(a14==8))&&(a19==4))&&(a28==1))){ + a19 = 5; + a29 = 9; + a7 = 1; + return 23; + } else if(((a22==1)&&((a28==1)&&(!(a7==1)&&(((((((!(a0==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==4)))&&(a14==8))&&!(a25==1))&&(a19==1))&&(a20==1))&&(a24==1))&&!(a11==1)))))){ + a19 = 4; + a24 = 0; + a29 = 6; + a11 = 1; + a14 = 9; + return 23; + } else if(((a25==1)&&((a11==1)&&((a24==1)&&(((a22==1)&&(((!(a0==1)&&(((a19==5)&&((a14==9)&&(input==3)))&&(a29==7)))&&(a28==1))&&(a20==1)))&&!(a7==1)))))){ + a24 = 0; + a14 = 8; + a7 = 1; + a19 = 1; + a25 = 0; + a11 = 0; + a20 = 0; + a29 = 9; + return -1; + } else if(((((((a14==8)&&((a19==3)&&(!(a11==1)&&(!(a0==1)&&(!(a20==1)&&((a7==1)&&((input==6)&&(a25==1))))))))&&(a22==1))&&(a28==1))&&(a29==6))&&(a24==1))){ + a19 = 5; + a20 = 1; + a11 = 1; + a29 = 8; + return 24; + } else if(((((a19==3)&&((a22==1)&&(((((a20==1)&&(!(a25==1)&&(((input==5)&&(((a29==6)||(a29==7))||(a29==8)))&&(a0==1))))&&(a24==1))&&(a28==1))&&!(a7==1))))&&(a11==1))&&(a14==9))){ + a19 = 4; + a24 = 0; + a29 = 6; + a0 = 0; + a11 = 0; + a7 = 1; + a20 = 0; + return 21; + } else if(((a22==1)&&((a0==1)&&((a14==8)&&(((a19==3)&&(((((((input==6)&&((a29==8)||(a29==9)))&&!(a24==1))&&(a28==1))&&!(a25==1))&&!(a11==1))&&!(a7==1)))&&!(a20==1)))))){ + a25 = 1; + a24 = 1; + a11 = 1; + a29 = 6; + a19 = 4; + a20 = 1; + return -1; + } else if(((!(a7==1)&&((a19==2)&&(((a24==1)&&((((((a0==1)&&((a28==1)&&(input==2)))&&(a22==1))&&(a20==1))&&(a14==9))&&(a25==1)))&&(a29==8))))&&(a11==1))){ + a29 = 6; + a24 = 0; + a0 = 0; + a11 = 0; + a14 = 8; + a19 = 1; + a25 = 0; + a20 = 0; + a7 = 1; + return -1; + } else if(((a20==1)&&(((a14==9)&&(((((a0==1)&&((((a29==9)&&((a28==1)&&(input==6)))&&(a24==1))&&!(a25==1)))&&(a19==4))&&!(a7==1))&&!(a11==1)))&&(a22==1)))){ + a29 = 5; + a11 = 1; + a19 = 2; + a7 = 1; + a25 = 1; + return 24; + } else if((!(a25==1)&&((((!(a7==1)&&((a24==1)&&((a14==9)&&((((a20==1)&&(!(a0==1)&&(input==6)))&&(a22==1))&&!(a11==1)))))&&(a29==6))&&(a19==4))&&(a28==1)))){ + a7 = 1; + a29 = 7; + a24 = 0; + a19 = 2; + a0 = 1; + a20 = 0; + a25 = 1; + return -1; + } else if((((a7==1)&&((((a19==2)&&((a25==1)&&((a0==1)&&((a11==1)&&((a20==1)&&(((input==6)&&(a28==1))&&(a24==1)))))))&&(a14==9))&&(a22==1)))&&(a29==6))){ + a14 = 8; + a25 = 0; + a11 = 0; + a24 = 0; + a19 = 3; + a29 = 5; + a20 = 0; + return 24; + } else if((((!(a0==1)&&(((((((((input==4)&&((a29==8)||(a29==9)))&&(a25==1))&&(a19==5))&&!(a20==1))&&(a11==1))&&(a14==9))&&(a28==1))&&(a22==1)))&&!(a7==1))&&!(a24==1))){ + a24 = 1; + a19 = 3; + a25 = 0; + a14 = 8; + a29 = 8; + a7 = 1; + return 21; + } else if((((a7==1)&&((!(a0==1)&&((a20==1)&&((((a28==1)&&((a19==4)&&((((a29==6)||(a29==7))&&(input==5))&&(a14==9))))&&(a25==1))&&!(a11==1))))&&(a22==1)))&&(a24==1))){ + a20 = 0; + a14 = 8; + a19 = 1; + a29 = 7; + a7 = 0; + a24 = 0; + a0 = 1; + a25 = 0; + return 24; + } else if(((a14==9)&&(!(a25==1)&&(!(a24==1)&&((a22==1)&&((a7==1)&&((((a0==1)&&(((((a29==8)||((a29==6)||(a29==7)))&&(input==4))&&(a11==1))&&!(a20==1)))&&(a28==1))&&(a19==3)))))))){ + a29 = 8; + a20 = 1; + a25 = 1; + a14 = 10; + return 23; + } else if((!(a7==1)&&(((a22==1)&&((!(a0==1)&&(((((input==6)&&(((!(a25==1)&&(a29==5))&&(a19==1))||(((a19==5)&&((a29==8)&&(a25==1)))||((a19==5)&&((a29==9)&&(a25==1))))))&&!(a20==1))&&(a28==1))&&(a11==1)))&&(a14==8)))&&!(a24==1)))){ + a25 = 1; + a7 = 1; + a0 = 1; + a24 = 1; + a29 = 5; + a19 = 1; + a20 = 1; + return -1; + } else if((((a25==1)&&((a22==1)&&(((a19==4)&&((a24==1)&&((a28==1)&&(!(a20==1)&&((a14==8)&&((a0==1)&&(!(a11==1)&&(input==4))))))))&&!(a7==1))))&&(a29==8))){ + a7 = 1; + a29 = 6; + a25 = 0; + a14 = 9; + a11 = 1; + return 23; + } else if(((a14==8)&&(!(a7==1)&&(((((a20==1)&&(!(a11==1)&&((!(a24==1)&&(((input==4)&&(a22==1))&&(a28==1)))&&(a0==1))))&&(a29==7))&&(a19==2))&&!(a25==1))))){ + a29 = 8; + a7 = 1; + a20 = 0; + return 21; + } else if(((((a0==1)&&((a28==1)&&(!(a20==1)&&((a14==9)&&((a25==1)&&((a24==1)&&(!(a11==1)&&((((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))&&(input==2)))))))))&&(a22==1))&&(a7==1))){ + a14 = 8; + a20 = 1; + a29 = 8; + a11 = 1; + a24 = 0; + a0 = 0; + a25 = 0; + a19 = 5; + return 23; + } else if(((((((input==3)&&((((a29==5)&&(((a24==1)&&(((a20==1)&&!(a11==1))&&(a7==1)))&&(a25==1)))&&(a19==1))||(((a19==5)&&(((((!(a20==1)&&(a11==1))&&!(a7==1))&&!(a24==1))&&!(a25==1))&&(a29==8)))||(((a29==9)&&((!(a24==1)&&(!(a7==1)&&(!(a20==1)&&(a11==1))))&&!(a25==1)))&&(a19==5)))))&&(a22==1))&&(a0==1))&&(a28==1))&&(a14==9))){ + a19 = 3; + a7 = 0; + a25 = 1; + a14 = 8; + a29 = 8; + a24 = 0; + a11 = 0; + a20 = 0; + return 23; + } else if(((a28==1)&&(((((a22==1)&&((!(a0==1)&&((((((a29==5)||(a29==6))&&(input==6))&&(a24==1))&&!(a20==1))&&(a14==9)))&&(a25==1)))&&(a19==5))&&!(a7==1))&&(a11==1)))){ + a19 = 1; + a0 = 1; + a24 = 0; + a29 = 8; + a7 = 1; + return 24; + } else if(((a14==9)&&((((((((a20==1)&&(!(a25==1)&&((a28==1)&&((input==4)&&((a29==7)||((a29==5)||(a29==6)))))))&&!(a7==1))&&(a11==1))&&!(a24==1))&&(a22==1))&&!(a0==1))&&(a19==4)))){ + a29 = 8; + a14 = 8; + a25 = 1; + a19 = 5; + a0 = 1; + a11 = 0; + a20 = 0; + return 24; + } else if(((a14==9)&&((!(a24==1)&&((((a7==1)&&((a19==1)&&((a11==1)&&((!(a0==1)&&(!(a25==1)&&(input==3)))&&(a29==8)))))&&(a22==1))&&(a28==1)))&&(a20==1)))){ + a24 = 1; + a14 = 8; + a19 = 5; + return 24; + } else if((((!(a11==1)&&((((!(a0==1)&&((a20==1)&&(((a22==1)&&((input==4)&&((a29==9)||((a29==7)||(a29==8)))))&&!(a24==1))))&&(a7==1))&&(a19==5))&&(a25==1)))&&(a28==1))&&(a14==8))){ + a11 = 1; + a0 = 1; + a14 = 9; + a20 = 0; + a24 = 1; + a29 = 8; + a25 = 0; + a19 = 4; + return 23; + } else if((((((((a28==1)&&(!(a20==1)&&((a19==3)&&((((input==4)&&(a25==1))&&(a22==1))&&!(a0==1)))))&&!(a24==1))&&(a14==9))&&(a11==1))&&!(a7==1))&&(a29==7))){ + a19 = 1; + a20 = 1; + a24 = 1; + a29 = 5; + a14 = 8; + a0 = 1; + a7 = 1; + return -1; + } else if(((a11==1)&&(!(a7==1)&&((a14==10)&&((a28==1)&&(((((a24==1)&&(((a19==5)&&(((a29==7)||(a29==8))&&(input==3)))&&!(a25==1)))&&(a0==1))&&!(a20==1))&&(a22==1))))))){ + a7 = 1; + a14 = 8; + a25 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((((((a19==1)&&(!(a0==1)&&((a22==1)&&((a28==1)&&((a14==8)&&(((((a29==6)||(a29==7))&&(input==6))&&(a25==1))&&!(a20==1)))))))&&!(a11==1))&&(a7==1))&&!(a24==1))){ + a19 = 4; + a7 = 0; + a24 = 1; + a11 = 1; + a29 = 6; + a25 = 0; + return -1; + } else if(((a20==1)&&((a14==9)&&(!(a24==1)&&((a28==1)&&(!(a11==1)&&((a22==1)&&(((input==5)&&((((a29==9)&&((a7==1)&&!(a25==1)))&&(a19==5))||((a19==1)&&((a29==5)&&((a25==1)&&!(a7==1))))))&&!(a0==1))))))))){ + a25 = 1; + a7 = 1; + a14 = 8; + a11 = 1; + a29 = 5; + a0 = 1; + a24 = 1; + a19 = 1; + return -1; + } else if(((a20==1)&&((a19==3)&&((a0==1)&&((a28==1)&&(((a11==1)&&(((a14==9)&&((((input==4)&&(((a29==6)||(a29==7))||(a29==8)))&&(a22==1))&&!(a25==1)))&&(a24==1)))&&!(a7==1))))))){ + a19 = 1; + a24 = 0; + a25 = 1; + a20 = 0; + a29 = 6; + return 23; + } else if(((((!(a25==1)&&((((!(a0==1)&&(((a28==1)&&((a24==1)&&(input==3)))&&!(a20==1)))&&(a29==7))&&(a7==1))&&(a19==2)))&&!(a11==1))&&(a22==1))&&(a14==9))){ + a19 = 1; + a29 = 5; + a20 = 1; + a11 = 1; + a0 = 1; + a25 = 1; + a14 = 8; + return -1; + } else if((!(a7==1)&&((!(a24==1)&&((!(a25==1)&&((a22==1)&&((a28==1)&&(((a14==9)&&(((input==2)&&(a11==1))&&(a20==1)))&&(a29==5)))))&&(a19==5)))&&(a0==1)))){ + a19 = 4; + a7 = 1; + a14 = 8; + a25 = 1; + a0 = 0; + a24 = 1; + return 23; + } else if(((a28==1)&&((((((a19==3)&&(((((a11==1)&&(((a29==8)||(a29==9))&&(input==5)))&&(a24==1))&&(a7==1))&&!(a20==1)))&&(a0==1))&&(a14==9))&&(a22==1))&&!(a25==1)))){ + a29 = 5; + a19 = 4; + a20 = 1; + return -1; + } else if((((((((!(a24==1)&&((!(a25==1)&&((input==5)&&((((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))||((a29==6)&&(a19==2)))))&&(a14==8)))&&(a28==1))&&(a0==1))&&!(a11==1))&&(a22==1))&&(a20==1))&&!(a7==1))){ + a25 = 1; + a29 = 8; + a14 = 9; + a20 = 0; + a19 = 5; + a11 = 1; + return 23; + } else if(((a20==1)&&((a14==9)&&(!(a7==1)&&(!(a11==1)&&((!(a25==1)&&(!(a24==1)&&((a0==1)&&((((((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))||((a29==6)&&(a19==5)))&&(input==3))&&(a22==1)))))&&(a28==1))))))){ + a29 = 9; + a25 = 1; + a24 = 1; + a11 = 1; + a19 = 1; + a14 = 8; + a0 = 0; + return 24; + } else if(((((!(a0==1)&&(((a20==1)&&(((((((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))&&(input==4))&&(a22==1))&&(a25==1))&&(a14==9)))&&!(a11==1)))&&(a7==1))&&(a28==1))&&!(a24==1))){ + a25 = 0; + a19 = 3; + a29 = 9; + a14 = 8; + return 21; + } else if((!(a7==1)&&((a24==1)&&((((a20==1)&&(((a28==1)&&((a14==10)&&(((((a19==5)&&((a29==8)&&(a25==1)))||((a19==5)&&((a25==1)&&(a29==9))))||((a19==1)&&((a29==5)&&!(a25==1))))&&(input==2))))&&(a22==1)))&&(a0==1))&&(a11==1))))){ + a25 = 0; + a24 = 0; + a14 = 8; + a0 = 0; + a7 = 1; + a19 = 4; + a29 = 5; + return 21; + } else if((!(a7==1)&&((a22==1)&&((a19==5)&&((((((a28==1)&&((a24==1)&&(!(a20==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==6)))))&&(a25==1))&&(a11==1))&&(a14==10))&&(a0==1)))))){ + a19 = 1; + a20 = 1; + a0 = 0; + a14 = 8; + a29 = 6; + return -1; + } else if(((((a22==1)&&((((a28==1)&&(((((a0==1)&&(((a29==5)||(a29==6))&&(input==3)))&&(a25==1))&&!(a11==1))&&(a14==8)))&&(a19==3))&&!(a24==1)))&&!(a20==1))&&!(a7==1))){ + a11 = 1; + a19 = 4; + a29 = 6; + a25 = 0; + a24 = 1; + a20 = 1; + return -1; + } else if(((((((a22==1)&&((((a19==1)&&(((((a29==5)||(a29==6))&&(input==6))&&(a7==1))&&(a0==1)))&&!(a24==1))&&(a14==8)))&&(a11==1))&&(a28==1))&&!(a25==1))&&!(a20==1))){ + a29 = 8; + a19 = 4; + a24 = 1; + a0 = 0; + a7 = 0; + return 24; + } else if((((a0==1)&&((a7==1)&&((!(a20==1)&&(((a28==1)&&(((a19==5)&&(((input==1)&&(a22==1))&&(a25==1)))&&(a11==1)))&&!(a24==1)))&&(a29==8))))&&(a14==9))){ + a25 = 0; + a24 = 1; + a29 = 7; + a20 = 1; + a7 = 0; + return -1; + } else if(((a25==1)&&(((a19==4)&&((!(a11==1)&&((a0==1)&&((a7==1)&&((a20==1)&&((a24==1)&&((a22==1)&&((input==3)&&((a29==6)||(a29==7)))))))))&&(a28==1)))&&(a14==9)))){ + a11 = 1; + a7 = 0; + a25 = 0; + a20 = 0; + a24 = 0; + a29 = 9; + return -1; + } else if(((((a22==1)&&(((((!(a20==1)&&((a19==2)&&((a0==1)&&(((a29==5)||(a29==6))&&(input==1)))))&&(a25==1))&&!(a24==1))&&!(a7==1))&&(a14==9)))&&(a28==1))&&!(a11==1))){ + a14 = 8; + a20 = 1; + a29 = 5; + a19 = 1; + a24 = 1; + a7 = 1; + a11 = 1; + return -1; + } else if(((a28==1)&&((((!(a7==1)&&(!(a25==1)&&((a19==3)&&((!(a20==1)&&(((input==4)&&(a11==1))&&(a22==1)))&&(a24==1)))))&&(a29==6))&&(a14==8))&&!(a0==1)))){ + a19 = 2; + return -1; + } else if((((((((a28==1)&&(((!(a25==1)&&(!(a11==1)&&((input==4)&&((a29==6)||(a29==7)))))&&(a20==1))&&!(a7==1)))&&(a14==8))&&(a19==2))&&!(a24==1))&&(a22==1))&&!(a0==1))){ + a19 = 1; + a11 = 1; + a24 = 1; + a29 = 8; + a7 = 1; + return 24; + } else if(((((a28==1)&&((((a14==8)&&((((a22==1)&&(((((a19==4)&&(a29==8))||((a19==4)&&(a29==9)))||((a19==5)&&(a29==5)))&&(input==2)))&&!(a25==1))&&(a0==1)))&&!(a11==1))&&!(a7==1)))&&!(a24==1))&&!(a20==1))){ + a19 = 3; + a29 = 6; + a25 = 1; + return -1; + } else if(((a0==1)&&((((!(a7==1)&&(!(a20==1)&&((!(a25==1)&&(!(a11==1)&&(((a22==1)&&(input==6))&&(a28==1))))&&(a29==5))))&&!(a24==1))&&(a19==5))&&(a14==9)))){ + a25 = 1; + a14 = 8; + a11 = 1; + a0 = 0; + a29 = 6; + a20 = 1; + a24 = 1; + return 23; + } else if((((a14==8)&&(!(a11==1)&&((a7==1)&&((a22==1)&&((a25==1)&&(!(a0==1)&&((((a28==1)&&((input==4)&&(((a29==5)||(a29==6))||(a29==7))))&&(a24==1))&&(a19==5))))))))&&(a20==1))){ + a11 = 1; + a19 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if(((a25==1)&&(!(a24==1)&&((!(a20==1)&&((a14==9)&&((a28==1)&&((((((input==4)&&((a29==7)||((a29==5)||(a29==6))))&&!(a11==1))&&(a22==1))&&(a19==1))&&(a7==1)))))&&(a0==1))))){ + a25 = 0; + a29 = 5; + a19 = 5; + a20 = 1; + return 24; + } else if(((((a22==1)&&(((a25==1)&&(((a24==1)&&((a0==1)&&(((((a29==7)||((a29==5)||(a29==6)))&&(input==3))&&(a28==1))&&(a19==1))))&&(a20==1)))&&(a11==1)))&&!(a7==1))&&(a14==9))){ + a14 = 8; + a7 = 1; + a29 = 5; + return -1; + } else if(((a0==1)&&((a22==1)&&((a28==1)&&(((a19==4)&&((a29==6)&&(((a20==1)&&(!(a7==1)&&(!(a25==1)&&((input==2)&&(a24==1)))))&&!(a11==1))))&&(a14==9)))))){ + a20 = 0; + a25 = 1; + a11 = 1; + a0 = 0; + a19 = 5; + a29 = 7; + a14 = 8; + return -1; + } else if((((a19==1)&&((((((((a25==1)&&(((input==1)&&((a29==8)||(a29==9)))&&(a22==1)))&&!(a20==1))&&!(a11==1))&&!(a7==1))&&!(a0==1))&&(a14==9))&&(a28==1)))&&(a24==1))){ + a29 = 5; + a0 = 1; + a19 = 2; + a7 = 1; + return 21; + } else if((((((a14==9)&&((!(a24==1)&&((((a22==1)&&(((input==3)&&(a29==8))&&(a0==1)))&&(a25==1))&&(a20==1)))&&(a28==1)))&&(a19==3))&&!(a11==1))&&(a7==1))){ + a25 = 0; + a11 = 1; + a19 = 4; + return 21; + } else if(((a7==1)&&((((a19==3)&&(((((a29==8)&&(!(a25==1)&&(((a24==1)&&(input==4))&&(a20==1))))&&(a22==1))&&(a11==1))&&(a0==1)))&&(a28==1))&&(a14==9)))){ + a7 = 0; + a20 = 0; + a29 = 9; + a24 = 0; + return 24; + } else if(((((((((a11==1)&&(!(a24==1)&&((a25==1)&&((a22==1)&&(((a29==7)||(a29==8))&&(input==2))))))&&(a28==1))&&(a20==1))&&!(a7==1))&&(a19==1))&&!(a0==1))&&(a14==9))){ + a29 = 6; + a25 = 0; + a24 = 1; + a19 = 4; + a14 = 8; + a7 = 1; + a11 = 0; + return 24; + } else if(((a20==1)&&((((a28==1)&&(!(a24==1)&&(((!(a11==1)&&((a19==5)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==3))&&(a0==1))))&&!(a25==1))&&!(a7==1))))&&(a14==8))&&(a22==1)))){ + a7 = 1; + a14 = 9; + a24 = 1; + a29 = 8; + a25 = 1; + a19 = 3; + return 21; + } else if((!(a7==1)&&(((((a24==1)&&((!(a25==1)&&(((((input==3)&&((a29==8)||(a29==9)))&&(a22==1))&&(a19==2))&&(a14==9)))&&(a20==1)))&&!(a11==1))&&!(a0==1))&&(a28==1)))){ + a11 = 1; + a29 = 6; + a20 = 0; + a24 = 0; + a19 = 1; + return -1; + } else if(((a24==1)&&(((a0==1)&&(((a28==1)&&(!(a11==1)&&(((a7==1)&&((a19==4)&&(!(a20==1)&&((input==2)&&(a29==8)))))&&(a22==1))))&&(a14==8)))&&!(a25==1)))){ + a11 = 1; + a7 = 0; + a25 = 1; + a14 = 9; + a20 = 1; + return 24; + } else if((!(a11==1)&&((a25==1)&&((((a24==1)&&(((((((input==1)&&!(a0==1))&&(a7==1))&&(a29==6))&&!(a20==1))&&(a14==9))&&(a22==1)))&&(a19==3))&&(a28==1))))){ + a25 = 0; + a29 = 8; + a24 = 0; + a14 = 8; + a20 = 1; + return -1; + } else if(((a14==9)&&((a11==1)&&((((a22==1)&&((a28==1)&&(!(a0==1)&&((a7==1)&&((((a29==9)&&(input==4))&&(a25==1))&&(a20==1))))))&&(a19==4))&&!(a24==1))))){ + a19 = 2; + a14 = 8; + a20 = 0; + a7 = 0; + a29 = 5; + return -1; + } else if((!(a20==1)&&((((a22==1)&&(((((a14==9)&&(((((a25==1)&&(a29==9))&&(a19==5))||((a19==1)&&(!(a25==1)&&(a29==5))))&&(input==3)))&&!(a7==1))&&(a24==1))&&(a0==1)))&&(a11==1))&&(a28==1)))){ + a29 = 8; + a0 = 0; + a24 = 0; + a20 = 1; + a25 = 0; + a19 = 1; + a14 = 8; + a11 = 0; + return -1; + } else if((!(a0==1)&&((a14==9)&&((a24==1)&&(((a7==1)&&((a22==1)&&(!(a11==1)&&((a25==1)&&((a28==1)&&((input==5)&&(((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))))))))&&(a20==1)))))){ + a0 = 1; + a19 = 1; + a7 = 0; + a29 = 8; + a25 = 0; + a14 = 8; + a24 = 0; + a20 = 0; + return 21; + } else if((!(a0==1)&&((((a28==1)&&((a19==3)&&(!(a7==1)&&(((a20==1)&&(!(a24==1)&&(((input==5)&&((a29==7)||((a29==5)||(a29==6))))&&(a22==1))))&&!(a11==1)))))&&(a14==9))&&(a25==1)))){ + a25 = 0; + a19 = 5; + a29 = 8; + a0 = 1; + return 24; + } else if(((((((!(a24==1)&&(((((input==1)&&((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))||((a19==4)&&(a29==6))))&&!(a20==1))&&!(a0==1))&&!(a7==1)))&&(a14==8))&&(a11==1))&&!(a25==1))&&(a22==1))&&(a28==1))){ + a14 = 9; + a25 = 1; + a19 = 3; + a29 = 5; + a7 = 1; + a11 = 0; + a0 = 1; + return 23; + } else if(((a28==1)&&((((a22==1)&&(((a11==1)&&(((a19==3)&&((a24==1)&&(!(a0==1)&&((input==3)&&((a29==6)||(a29==7))))))&&!(a7==1)))&&!(a20==1)))&&(a14==8))&&(a25==1)))){ + a20 = 1; + a29 = 8; + return -1; + } else if((((((!(a11==1)&&((a19==1)&&(((((a14==8)&&((input==5)&&!(a0==1)))&&(a25==1))&&!(a24==1))&&(a28==1))))&&(a29==5))&&(a20==1))&&(a22==1))&&!(a7==1))){ + a11 = 1; + a24 = 1; + a7 = 1; + a0 = 1; + return -1; + } else if(((((a14==10)&&((a0==1)&&((a22==1)&&(((a11==1)&&(((a24==1)&&(!(a7==1)&&(((a29==7)||(a29==8))&&(input==6))))&&(a28==1)))&&(a19==3)))))&&(a20==1))&&!(a25==1))){ + a20 = 0; + a29 = 6; + a14 = 9; + a19 = 1; + a24 = 0; + a25 = 1; + return 23; + } else if((((a24==1)&&((!(a20==1)&&((a7==1)&&((a14==9)&&((((a19==3)&&((a22==1)&&((input==5)&&((a29==7)||((a29==5)||(a29==6))))))&&(a0==1))&&(a11==1)))))&&(a28==1)))&&!(a25==1))){ + a25 = 1; + a20 = 1; + a24 = 0; + a29 = 6; + a19 = 4; + return 24; + } else if(((a22==1)&&(((a24==1)&&((a20==1)&&(!(a7==1)&&((((a28==1)&&(((a19==2)&&((input==2)&&((a29==8)||((a29==6)||(a29==7)))))&&(a14==8)))&&!(a0==1))&&!(a11==1)))))&&!(a25==1)))){ + a25 = 1; + a7 = 1; + a29 = 5; + a11 = 1; + return 23; + } else if((((a28==1)&&((((((a29==6)&&((!(a7==1)&&(((input==6)&&!(a11==1))&&(a0==1)))&&(a14==9)))&&(a22==1))&&!(a20==1))&&(a19==4))&&(a25==1)))&&(a24==1))){ + a20 = 1; + a11 = 1; + a14 = 8; + a25 = 0; + a19 = 2; + a24 = 0; + a7 = 1; + a0 = 0; + return 21; + } else if((((a0==1)&&(((a19==5)&&((a14==8)&&((a20==1)&&((((a29==8)&&((a22==1)&&((input==1)&&!(a11==1))))&&!(a7==1))&&(a25==1)))))&&(a24==1)))&&(a28==1))){ + a24 = 0; + a19 = 4; + a0 = 0; + a25 = 0; + a29 = 9; + return 23; + } else if(((((a14==8)&&((!(a24==1)&&((a0==1)&&((a25==1)&&(((a19==1)&&((((a29==7)||(a29==8))&&(input==5))&&(a7==1)))&&!(a11==1)))))&&(a22==1)))&&(a28==1))&&!(a20==1))){ + a11 = 1; + a24 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if(((((!(a25==1)&&(((a14==8)&&(((((((a19==4)&&(a29==6))||(((a19==3)&&(a29==9))||((a19==4)&&(a29==5))))&&(input==4))&&(a22==1))&&!(a20==1))&&(a7==1)))&&(a28==1)))&&(a0==1))&&(a24==1))&&!(a11==1))){ + a19 = 1; + a25 = 1; + a11 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if(((a25==1)&&((a28==1)&&((a14==9)&&(((!(a7==1)&&(((a19==3)&&((a0==1)&&(((input==5)&&!(a11==1))&&(a29==8))))&&(a22==1)))&&(a20==1))&&!(a24==1)))))){ + a11 = 1; + a25 = 0; + a29 = 7; + a14 = 8; + a20 = 0; + a19 = 2; + a0 = 0; + a24 = 1; + return -1; + } else if(((a25==1)&&(!(a11==1)&&((a28==1)&&((a29==8)&&((a19==5)&&(!(a20==1)&&((a22==1)&&(!(a24==1)&&(!(a0==1)&&((!(a7==1)&&(input==5))&&(a14==9)))))))))))){ + a7 = 1; + a19 = 1; + a14 = 8; + a11 = 1; + a29 = 5; + a24 = 1; + a0 = 1; + a20 = 1; + return -1; + } else if((((a14==8)&&((a22==1)&&((((a0==1)&&(!(a25==1)&&((((((a29==7)||((a29==5)||(a29==6)))&&(input==3))&&!(a20==1))&&!(a11==1))&&!(a7==1))))&&!(a24==1))&&(a19==2))))&&(a28==1))){ + a25 = 1; + a29 = 5; + a19 = 4; + return -1; + } else if((((a29==5)&&((!(a7==1)&&(((((a28==1)&&((((a19==5)&&(input==4))&&(a25==1))&&(a14==8)))&&(a0==1))&&(a24==1))&&(a22==1)))&&!(a20==1)))&&!(a11==1))){ + a19 = 1; + a11 = 1; + a7 = 1; + a20 = 1; + return -1; + } else if((((a11==1)&&(!(a7==1)&&(((a19==2)&&(((a22==1)&&((((a24==1)&&((input==5)&&(((a29==5)||(a29==6))||(a29==7))))&&(a28==1))&&(a0==1)))&&(a20==1)))&&!(a25==1))))&&(a14==8))){ + a25 = 1; + a20 = 0; + a19 = 4; + a29 = 8; + return 23; + } else if((((!(a25==1)&&(((((!(a24==1)&&((((input==3)&&(((a29==7)||(a29==8))||(a29==9)))&&!(a20==1))&&(a0==1)))&&(a11==1))&&(a22==1))&&(a14==8))&&(a19==1)))&&(a28==1))&&(a7==1))){ + a29 = 9; + a7 = 0; + a25 = 1; + a0 = 0; + a19 = 4; + return 23; + } else if((!(a24==1)&&((a11==1)&&((a28==1)&&((a7==1)&&((!(a25==1)&&((a22==1)&&((!(a20==1)&&((a14==9)&&(((a29==6)||(a29==7))&&(input==6))))&&!(a0==1))))&&(a19==4))))))){ + a19 = 2; + a20 = 1; + a14 = 8; + a29 = 6; + return 21; + } else if(((a24==1)&&(!(a20==1)&&((((((a11==1)&&((a19==5)&&(!(a7==1)&&(((input==3)&&(a14==9))&&(a22==1)))))&&(a0==1))&&(a28==1))&&(a29==5))&&!(a25==1))))){ + a14 = 8; + a7 = 1; + a11 = 0; + a19 = 4; + a29 = 8; + a20 = 1; + a0 = 0; + return -1; + } else if(((a14==8)&&((a22==1)&&(((a19==4)&&((!(a24==1)&&(((a0==1)&&((a7==1)&&((((a29==8)||(a29==9))&&(input==1))&&(a25==1))))&&(a11==1)))&&(a20==1)))&&(a28==1))))){ + a19 = 1; + a25 = 0; + a11 = 0; + a20 = 0; + a29 = 8; + a7 = 0; + return 21; + } else if((!(a0==1)&&((((a28==1)&&(((a7==1)&&((a14==8)&&((((input==5)&&(((a19==1)&&(a29==9))||((a19==2)&&(a29==5))))&&(a22==1))&&(a25==1))))&&(a20==1)))&&!(a24==1))&&(a11==1)))){ + a19 = 1; + a29 = 6; + a24 = 1; + return 21; + } else if((((a11==1)&&(((a29==9)&&(!(a20==1)&&((a25==1)&&((a0==1)&&((a19==5)&&((a24==1)&&((a14==10)&&((input==4)&&(a22==1)))))))))&&(a28==1)))&&(a7==1))){ + a20 = 1; + a14 = 8; + a29 = 5; + a19 = 1; + return -1; + } else if((((a20==1)&&(((a28==1)&&(!(a11==1)&&((a22==1)&&(((((a7==1)&&((input==1)&&(a19==3)))&&!(a0==1))&&(a29==7))&&(a24==1)))))&&(a14==8)))&&(a25==1))){ + a0 = 1; + a20 = 0; + a29 = 6; + a25 = 0; + a24 = 0; + return 21; + } else if(((a0==1)&&((a11==1)&&(((a24==1)&&(!(a20==1)&&((a14==9)&&(((((((a29==9)&&(a25==1))&&(a19==5))||((a19==1)&&(!(a25==1)&&(a29==5))))&&(input==6))&&(a22==1))&&(a28==1)))))&&!(a7==1))))){ + a25 = 1; + a29 = 5; + a19 = 1; + a20 = 1; + a14 = 8; + a7 = 1; + return -1; + } else if((((a28==1)&&(((a14==8)&&((((((a24==1)&&(!(a20==1)&&((input==3)&&(((a29==5)||(a29==6))||(a29==7)))))&&(a25==1))&&(a7==1))&&(a11==1))&&(a22==1)))&&(a19==2)))&&!(a0==1))){ + a29 = 7; + return -1; + } else if(((a14==8)&&(((a22==1)&&(!(a0==1)&&((((a19==5)&&((a20==1)&&(((a24==1)&&((a7==1)&&(input==5)))&&(a29==8))))&&!(a25==1))&&!(a11==1))))&&(a28==1)))){ + a19 = 1; + a11 = 1; + a0 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if(((!(a20==1)&&((a22==1)&&((a7==1)&&((a24==1)&&(!(a11==1)&&(((a14==8)&&((a28==1)&&((a0==1)&&(((a29==7)||(a29==8))&&(input==6)))))&&(a19==2)))))))&&(a25==1))){ + a7 = 0; + a24 = 0; + a0 = 0; + a29 = 8; + a19 = 5; + return 21; + } else if(((a22==1)&&(((a14==9)&&((a19==2)&&((((a0==1)&&((a25==1)&&(((a24==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==2)))&&!(a7==1))))&&(a20==1))&&!(a11==1))))&&(a28==1)))){ + a11 = 1; + a29 = 7; + a19 = 4; + a20 = 0; + a14 = 8; + a0 = 0; + a25 = 0; + return 24; + } else if(((!(a7==1)&&(((!(a11==1)&&((((a14==9)&&((((((a19==4)&&(a29==8))||((a29==9)&&(a19==4)))||((a29==5)&&(a19==5)))&&(input==6))&&(a25==1)))&&(a22==1))&&(a28==1)))&&!(a20==1))&&!(a24==1)))&&!(a0==1))){ + a24 = 1; + a25 = 0; + a29 = 7; + a7 = 1; + a19 = 4; + a20 = 1; + return -1; + } else if(((a7==1)&&((((((a22==1)&&((a24==1)&&(((((((a29==7)||(a29==8))||(a29==9))&&(input==3))&&!(a25==1))&&(a11==1))&&!(a20==1))))&&(a14==8))&&!(a0==1))&&(a28==1))&&(a19==5)))){ + a29 = 9; + a25 = 1; + a0 = 1; + a7 = 0; + a24 = 0; + a20 = 1; + a19 = 1; + return -1; + } else if((((a22==1)&&(((a25==1)&&((((a19==1)&&((a28==1)&&(!(a0==1)&&(((input==5)&&((a29==6)||(a29==7)))&&!(a11==1)))))&&!(a24==1))&&!(a20==1)))&&(a14==8)))&&(a7==1))){ + a29 = 6; + a20 = 1; + a11 = 1; + a24 = 1; + return 23; + } else if(((a25==1)&&((((((((((((a29==6)||(a29==7))&&(input==3))&&(a11==1))&&(a14==9))&&(a0==1))&&(a20==1))&&(a19==2))&&(a28==1))&&(a22==1))&&!(a24==1))&&!(a7==1)))){ + a25 = 0; + a7 = 1; + a24 = 1; + a19 = 1; + a14 = 10; + a20 = 0; + a29 = 6; + return 24; + } else if((((((a19==4)&&((!(a25==1)&&(!(a24==1)&&((a14==8)&&(((a20==1)&&(((a29==8)||(a29==9))&&(input==6)))&&!(a11==1)))))&&(a28==1)))&&!(a7==1))&&(a22==1))&&(a0==1))){ + a7 = 1; + a29 = 6; + a19 = 2; + a25 = 1; + a14 = 9; + a24 = 1; + return 21; + } else if((!(a25==1)&&((a20==1)&&((a22==1)&&((!(a0==1)&&(((((a24==1)&&(((input==5)&&((a29==9)||((a29==7)||(a29==8))))&&(a19==1)))&&(a14==8))&&(a28==1))&&(a7==1)))&&!(a11==1)))))){ + a29 = 8; + a24 = 0; + a14 = 9; + a11 = 1; + return 23; + } else if(((a11==1)&&(((((!(a7==1)&&((a0==1)&&(((!(a25==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==5)))&&(a19==1))&&(a24==1))))&&!(a20==1))&&(a14==9))&&(a28==1))&&(a22==1)))){ + a29 = 5; + a25 = 1; + a7 = 1; + a14 = 8; + a20 = 1; + return -1; + } else if(((!(a0==1)&&(((a20==1)&&((a19==4)&&((a22==1)&&((a28==1)&&(((a14==9)&&(((input==5)&&(((a29==6)||(a29==7))||(a29==8)))&&!(a7==1)))&&(a24==1))))))&&(a25==1)))&&!(a11==1))){ + a14 = 8; + a7 = 1; + a11 = 1; + a19 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if(((a24==1)&&((a22==1)&&(!(a11==1)&&(((a0==1)&&((a19==3)&&((((!(a20==1)&&((input==6)&&(((a29==5)||(a29==6))||(a29==7))))&&(a14==9))&&(a25==1))&&(a28==1))))&&!(a7==1)))))){ + a19 = 2; + a29 = 6; + a14 = 8; + a0 = 0; + a24 = 0; + a25 = 0; + return 24; + } else if(((((!(a11==1)&&((((((input==4)&&(((a19==5)&&((a25==1)&&(a29==9)))||(((a29==5)&&!(a25==1))&&(a19==1))))&&(a22==1))&&(a0==1))&&(a20==1))&&!(a7==1)))&&(a28==1))&&(a14==8))&&!(a24==1))){ + a7 = 1; + a11 = 1; + a0 = 0; + a24 = 1; + a19 = 5; + a25 = 1; + a29 = 5; + return 23; + } else if((((a20==1)&&((((((a14==8)&&(((a22==1)&&(!(a7==1)&&((input==5)&&(a11==1))))&&(a19==4)))&&(a29==9))&&(a25==1))&&(a24==1))&&!(a0==1)))&&(a28==1))){ + a7 = 1; + a19 = 5; + return 21; + } else if(((a28==1)&&((((!(a24==1)&&(!(a7==1)&&((a22==1)&&((!(a11==1)&&((a25==1)&&((a29==8)&&(input==1))))&&(a19==3)))))&&(a20==1))&&(a14==9))&&(a0==1)))){ + a14 = 8; + a0 = 0; + a29 = 9; + a11 = 1; + a24 = 1; + a19 = 4; + a20 = 0; + return 21; + } else if((((a24==1)&&(((((a28==1)&&((((((input==6)&&(a0==1))&&(a22==1))&&(a25==1))&&(a29==6))&&!(a20==1)))&&(a11==1))&&(a19==3))&&(a14==9)))&&!(a7==1))){ + a25 = 0; + a29 = 5; + a20 = 1; + a7 = 1; + a24 = 0; + a19 = 1; + a0 = 0; + a14 = 8; + return 23; + } else if((((a22==1)&&((a7==1)&&(((a28==1)&&(((a29==8)&&(((a0==1)&&(!(a24==1)&&((input==5)&&(a25==1))))&&(a11==1)))&&(a14==10)))&&(a20==1))))&&(a19==1))){ + a14 = 8; + a29 = 5; + a24 = 1; + return -1; + } else if(((a24==1)&&(!(a11==1)&&(((a0==1)&&(!(a25==1)&&((a20==1)&&((a22==1)&&((((input==4)&&(((a19==2)&&(a29==9))||((a19==3)&&(a29==5))))&&(a7==1))&&(a28==1))))))&&(a14==8))))){ + a29 = 5; + a24 = 0; + a25 = 1; + a0 = 0; + a19 = 5; + return 24; + } else if((!(a24==1)&&((a14==9)&&((a19==2)&&((a25==1)&&((a22==1)&&(!(a7==1)&&(!(a0==1)&&(((a28==1)&&(((input==6)&&((a29==5)||(a29==6)))&&(a20==1)))&&!(a11==1)))))))))){ + a7 = 1; + a14 = 8; + a11 = 1; + a29 = 5; + a24 = 1; + a19 = 1; + a0 = 1; + return -1; + } else if(((a24==1)&&(((a22==1)&&(((((a29==9)&&((a14==8)&&(!(a20==1)&&(((input==1)&&!(a11==1))&&!(a7==1)))))&&(a0==1))&&(a25==1))&&(a19==3)))&&(a28==1)))){ + a11 = 1; + a19 = 1; + a14 = 9; + a25 = 0; + a29 = 5; + a7 = 1; + return 23; + } else if(((((a0==1)&&((a28==1)&&(((((a11==1)&&(((input==3)&&(((a29==9)&&(a19==3))||((a19==4)&&(a29==5))))&&(a22==1)))&&!(a7==1))&&!(a20==1))&&(a24==1))))&&(a25==1))&&(a14==10))){ + a19 = 5; + a25 = 0; + a14 = 9; + a29 = 9; + a24 = 0; + return 21; + } else if((((((!(a7==1)&&((a0==1)&&((((!(a11==1)&&((input==6)&&((a29==7)||((a29==5)||(a29==6)))))&&(a28==1))&&!(a20==1))&&(a22==1))))&&(a19==2))&&!(a25==1))&&(a14==8))&&!(a24==1))){ + a29 = 5; + a19 = 1; + a24 = 1; + a25 = 1; + a20 = 1; + a7 = 1; + a11 = 1; + return -1; + } else if(((((a0==1)&&(!(a11==1)&&((a22==1)&&(((a7==1)&&((a19==4)&&(((a14==8)&&(((a29==7)||(a29==8))&&(input==3)))&&(a20==1))))&&(a28==1)))))&&!(a24==1))&&(a25==1))){ + a14 = 9; + a25 = 0; + a11 = 1; + a29 = 7; + return 23; + } else if((((a7==1)&&((((a28==1)&&((a14==9)&&((a22==1)&&((a20==1)&&((((input==1)&&((a29==5)||(a29==6)))&&!(a0==1))&&!(a25==1))))))&&(a11==1))&&!(a24==1)))&&(a19==5))){ + a20 = 0; + a29 = 9; + a0 = 1; + a19 = 2; + a24 = 1; + return 23; + } else if(((a14==8)&&(((a28==1)&&((a24==1)&&(((a11==1)&&((a20==1)&&(((((((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))||((a29==6)&&(a19==2)))&&(input==4))&&!(a25==1))&&!(a0==1))))&&!(a7==1))))&&(a22==1)))){ + a25 = 1; + a0 = 1; + a19 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if((!(a0==1)&&((a28==1)&&(!(a24==1)&&((!(a7==1)&&(!(a25==1)&&((a19==2)&&((((a20==1)&&((input==6)&&((a29==7)||(a29==8))))&&(a14==9))&&(a22==1)))))&&(a11==1)))))){ + a11 = 0; + a7 = 1; + a29 = 8; + a24 = 1; + a14 = 8; + return -1; + } else if(((((a14==8)&&((a22==1)&&(((((a11==1)&&(((input==4)&&(((a29==9)&&(a19==3))||((a19==4)&&(a29==5))))&&(a25==1)))&&!(a7==1))&&!(a0==1))&&(a28==1))))&&(a24==1))&&(a20==1))){ + a14 = 9; + a19 = 4; + a24 = 0; + a25 = 0; + a29 = 6; + a11 = 0; + a0 = 1; + a7 = 1; + return 23; + } else if(((!(a25==1)&&((((a28==1)&&(!(a11==1)&&(!(a7==1)&&((a20==1)&&(((a24==1)&&((a22==1)&&(input==6)))&&!(a0==1))))))&&(a14==9))&&(a29==7)))&&(a19==2))){ + a25 = 1; + a19 = 5; + a7 = 1; + a11 = 1; + a14 = 8; + return -1; + } else if(((a14==8)&&((((((!(a20==1)&&((a0==1)&&(((a11==1)&&((a22==1)&&(input==3)))&&(a25==1))))&&(a28==1))&&(a7==1))&&(a19==3))&&(a24==1))&&(a29==9)))){ + a19 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if(((a19==5)&&(!(a7==1)&&(((a14==8)&&((a28==1)&&((((a25==1)&&(((!(a24==1)&&(input==5))&&!(a0==1))&&(a11==1)))&&(a29==7))&&(a22==1))))&&!(a20==1))))){ + a19 = 1; + a7 = 1; + a20 = 1; + a0 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if((((a25==1)&&(((((a22==1)&&(!(a11==1)&&(!(a24==1)&&(((input==5)&&((((a19==3)&&(a29==8))||((a19==3)&&(a29==9)))||((a29==5)&&(a19==4))))&&(a0==1)))))&&(a14==9))&&!(a7==1))&&(a28==1)))&&!(a20==1))){ + a11 = 1; + a0 = 0; + a19 = 5; + a29 = 8; + a7 = 1; + a25 = 0; + a14 = 8; + return 24; + } else if(((a22==1)&&((!(a0==1)&&((a19==4)&&((a24==1)&&((a28==1)&&((((!(a20==1)&&((input==5)&&((a29==8)||(a29==9))))&&!(a7==1))&&(a14==8))&&(a11==1))))))&&!(a25==1)))){ + a24 = 0; + a11 = 0; + a19 = 2; + a7 = 1; + a0 = 1; + a29 = 9; + return -1; + } else if(((a25==1)&&((!(a11==1)&&((a22==1)&&((a14==8)&&((!(a7==1)&&((!(a24==1)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==3))&&(a0==1)))&&(a28==1)))&&(a20==1)))))&&(a19==4)))){ + a7 = 1; + a11 = 1; + a25 = 0; + a29 = 8; + a14 = 9; + a19 = 2; + a20 = 0; + return 24; + } else if(((a28==1)&&((((((a25==1)&&((a0==1)&&((a22==1)&&((a19==4)&&(!(a24==1)&&((input==1)&&(((a29==6)||(a29==7))||(a29==8))))))))&&(a14==10))&&(a11==1))&&(a20==1))&&(a7==1)))){ + a14 = 9; + a20 = 0; + a29 = 5; + a24 = 1; + return -1; + } else if(((((((a28==1)&&((a11==1)&&((((a19==5)&&((a24==1)&&(!(a25==1)&&(input==4))))&&(a29==8))&&(a22==1))))&&(a7==1))&&(a14==8))&&!(a0==1))&&(a20==1))){ + a25 = 1; + a19 = 1; + a29 = 9; + return -1; + } else if(((a22==1)&&((!(a20==1)&&((a19==5)&&(((a28==1)&&(((((((a29==6)||(a29==7))&&(input==1))&&(a25==1))&&(a24==1))&&!(a0==1))&&(a7==1)))&&(a14==9))))&&!(a11==1)))){ + a24 = 0; + a11 = 1; + a14 = 8; + a20 = 1; + a29 = 6; + return 21; + } else if(((a22==1)&&(((a29==9)&&(((a24==1)&&(((((!(a25==1)&&((a19==3)&&(input==6)))&&(a28==1))&&(a14==8))&&!(a0==1))&&!(a7==1)))&&(a20==1)))&&!(a11==1)))){ + a19 = 4; + a20 = 0; + a29 = 8; + a24 = 0; + a0 = 1; + return 24; + } else if((((!(a0==1)&&(!(a7==1)&&((a20==1)&&((a25==1)&&((((a28==1)&&((((a29==5)&&(a19==5))||(((a19==4)&&(a29==8))||((a29==9)&&(a19==4))))&&(input==4)))&&(a14==8))&&(a24==1))))))&&(a22==1))&&!(a11==1))){ + a0 = 1; + a19 = 1; + a29 = 5; + a11 = 1; + a7 = 1; + return -1; + } else if(((((((((a7==1)&&((a0==1)&&(((a24==1)&&((input==3)&&((a29==8)||(a29==9))))&&(a28==1))))&&!(a25==1))&&(a22==1))&&!(a20==1))&&(a19==5))&&(a11==1))&&(a14==9))){ + a24 = 0; + a11 = 0; + a29 = 5; + a14 = 8; + a7 = 0; + a19 = 2; + a25 = 1; + return 24; + } else if(((((a20==1)&&(((a7==1)&&(((a25==1)&&((a19==1)&&((((input==4)&&((a29==7)||((a29==5)||(a29==6))))&&(a11==1))&&(a24==1))))&&(a22==1)))&&(a28==1)))&&(a14==9))&&(a0==1))){ + a0 = 0; + a11 = 0; + a29 = 6; + a24 = 0; + a7 = 0; + return 24; + } else if(((a24==1)&&(((a11==1)&&(((((a22==1)&&(((((a19==1)&&((a29==6)&&!(a25==1)))||(((a19==5)&&((a29==9)&&(a25==1)))||(((a29==5)&&!(a25==1))&&(a19==1))))&&(input==5))&&(a7==1)))&&!(a20==1))&&(a14==8))&&(a28==1)))&&(a0==1)))){ + a19 = 1; + a25 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if(((a19==2)&&((((((a14==9)&&(!(a0==1)&&(((((input==4)&&((a29==6)||(a29==7)))&&(a24==1))&&!(a11==1))&&(a22==1))))&&(a28==1))&&(a7==1))&&!(a25==1))&&(a20==1)))){ + a14 = 8; + a19 = 5; + a20 = 0; + a24 = 0; + a0 = 1; + a29 = 5; + return 21; + } else if(((a20==1)&&(!(a25==1)&&((a7==1)&&((a22==1)&&((!(a11==1)&&(((((input==4)&&(((a29==5)&&(a19==4))||(((a29==8)&&(a19==3))||((a19==3)&&(a29==9)))))&&!(a0==1))&&(a28==1))&&(a14==8)))&&(a24==1))))))){ + a20 = 0; + a19 = 5; + a29 = 7; + a7 = 0; + a24 = 0; + return 23; + } else if((((a14==9)&&(!(a24==1)&&((a22==1)&&((a7==1)&&((a0==1)&&((a25==1)&&((a28==1)&&(!(a11==1)&&((input==5)&&((((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))||((a29==6)&&(a19==5))))))))))))&&!(a20==1))){ + a14 = 8; + a0 = 0; + a29 = 7; + a24 = 1; + a11 = 1; + a7 = 0; + a19 = 2; + return 21; + } else if((!(a11==1)&&((((a0==1)&&((((((((input==1)&&(((a29==6)||(a29==7))||(a29==8)))&&(a22==1))&&(a28==1))&&!(a24==1))&&(a7==1))&&(a19==3))&&(a14==8)))&&(a25==1))&&(a20==1)))){ + a0 = 0; + a20 = 0; + a24 = 1; + a11 = 1; + a29 = 7; + a7 = 0; + a19 = 4; + return 21; + } else if((((((((a0==1)&&(((((((a29==5)&&(a19==3))||(((a19==2)&&(a29==8))||((a29==9)&&(a19==2))))&&(input==6))&&!(a25==1))&&(a28==1))&&!(a11==1)))&&(a14==9))&&(a22==1))&&!(a20==1))&&(a7==1))&&!(a24==1))){ + a0 = 0; + a29 = 5; + a11 = 1; + a7 = 0; + a24 = 1; + a19 = 3; + a14 = 8; + return 24; + } else if((((a11==1)&&((a14==8)&&(!(a0==1)&&((a20==1)&&((((a24==1)&&(((a28==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==6)))&&(a7==1)))&&(a19==5))&&(a22==1))))))&&!(a25==1))){ + a20 = 0; + a19 = 3; + a29 = 7; + a11 = 0; + a0 = 1; + a24 = 0; + return -1; + } else if(((!(a0==1)&&((a14==9)&&(((a11==1)&&((a20==1)&&(((!(a7==1)&&((a28==1)&&((input==6)&&((a29==5)||(a29==6)))))&&(a24==1))&&(a19==4))))&&(a25==1))))&&(a22==1))){ + a19 = 1; + a14 = 8; + a29 = 7; + return 24; + } else if((((a7==1)&&((a14==9)&&((a19==3)&&((!(a0==1)&&((((!(a20==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==3)))&&(a22==1))&&(a25==1))&&(a24==1)))&&!(a11==1)))))&&(a28==1))){ + a29 = 5; + a14 = 8; + a19 = 2; + a7 = 0; + return -1; + } else if((((((!(a24==1)&&((!(a7==1)&&(!(a11==1)&&((a20==1)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==1))&&(a25==1)))))&&(a0==1)))&&(a28==1))&&(a14==8))&&(a19==4))&&(a22==1))){ + a25 = 0; + a24 = 1; + a29 = 7; + a19 = 5; + a20 = 0; + a0 = 0; + a11 = 1; + return 21; + } else if((((a22==1)&&((a29==7)&&(!(a7==1)&&((a24==1)&&((((!(a25==1)&&(((input==4)&&(a28==1))&&!(a20==1)))&&(a14==8))&&(a19==4))&&(a0==1))))))&&!(a11==1))){ + a14 = 9; + a11 = 1; + a29 = 9; + return 21; + } else if(((a22==1)&&((a14==10)&&((a25==1)&&((a11==1)&&(((a20==1)&&((a0==1)&&((a24==1)&&((a19==1)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==6))&&!(a7==1))))))&&(a28==1))))))){ + a14 = 8; + a29 = 5; + a7 = 1; + return -1; + } else if((((a0==1)&&((a14==8)&&(!(a7==1)&&(!(a20==1)&&((a28==1)&&(((((a24==1)&&((input==6)&&((a29==5)||(a29==6))))&&(a25==1))&&(a22==1))&&(a11==1)))))))&&(a19==1))){ + a29 = 6; + a20 = 1; + a11 = 0; + a19 = 4; + return 21; + } else if((((a11==1)&&((a14==8)&&((((((a24==1)&&((a7==1)&&((a22==1)&&((input==5)&&((a29==5)||(a29==6))))))&&!(a0==1))&&(a20==1))&&(a25==1))&&(a19==2))))&&(a28==1))){ + a20 = 0; + a7 = 0; + a19 = 5; + a29 = 8; + a11 = 0; + a14 = 9; + a0 = 1; + return 21; + } else if((!(a24==1)&&(((((a14==9)&&((((a0==1)&&((a22==1)&&(!(a7==1)&&((a19==5)&&(input==4)))))&&(a25==1))&&!(a20==1)))&&(a29==8))&&(a28==1))&&!(a11==1)))){ + a7 = 1; + a29 = 5; + a19 = 1; + a14 = 8; + a20 = 1; + a11 = 1; + a24 = 1; + return -1; + } else if(((a28==1)&&((a14==8)&&(!(a0==1)&&(!(a24==1)&&(((a11==1)&&(((!(a7==1)&&((input==6)&&((((a29==8)&&(a19==3))||((a19==3)&&(a29==9)))||((a29==5)&&(a19==4)))))&&(a22==1))&&!(a25==1)))&&(a20==1))))))){ + a0 = 1; + a19 = 1; + a25 = 1; + a29 = 5; + a24 = 1; + a7 = 1; + return -1; + } else if(((((((((a0==1)&&(((a22==1)&&(!(a25==1)&&(!(a24==1)&&(input==4))))&&!(a11==1)))&&(a20==1))&&(a29==8))&&(a19==1))&&(a14==8))&&(a28==1))&&!(a7==1))){ + a7 = 1; + a29 = 5; + a24 = 1; + a11 = 1; + a25 = 1; + return -1; + } else if(((((a28==1)&&((((a20==1)&&((a7==1)&&(!(a25==1)&&(((a14==9)&&((((a29==7)||(a29==8))||(a29==9))&&(input==1)))&&!(a24==1)))))&&(a22==1))&&!(a11==1)))&&(a0==1))&&(a19==4))){ + a29 = 7; + a7 = 0; + a14 = 8; + a19 = 3; + a25 = 1; + a20 = 0; + return 23; + } else if(((a0==1)&&((((a22==1)&&((!(a20==1)&&((((a14==8)&&(((((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))||((a19==5)&&(a29==5)))&&(input==2)))&&!(a25==1))&&(a28==1)))&&!(a24==1)))&&(a11==1))&&(a7==1)))){ + a11 = 0; + a19 = 4; + a29 = 6; + a20 = 1; + a24 = 1; + a25 = 1; + a0 = 0; + return 23; + } else if(((a28==1)&&((((a22==1)&&((a29==7)&&((a19==4)&&(!(a20==1)&&((((!(a7==1)&&(input==4))&&!(a25==1))&&(a24==1))&&(a0==1))))))&&(a11==1))&&(a14==8)))){ + a25 = 1; + a29 = 8; + a20 = 1; + a24 = 0; + a19 = 2; + a11 = 0; + return 23; + } else if(((a24==1)&&(((a19==1)&&((a25==1)&&(!(a7==1)&&(((a11==1)&&((a29==5)&&(!(a0==1)&&(((a22==1)&&(input==4))&&(a20==1)))))&&(a14==9)))))&&(a28==1)))){ + a20 = 0; + a29 = 6; + a24 = 0; + a0 = 1; + return 21; + } else if((((a19==2)&&((((a20==1)&&((((!(a11==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==3))&&(a22==1)))&&(a7==1))&&(a14==8))&&!(a24==1)))&&!(a0==1))&&(a25==1)))&&(a28==1))){ + a24 = 1; + a14 = 9; + a29 = 9; + a0 = 1; + a19 = 5; + return 21; + } else if((((a24==1)&&((a22==1)&&(((a28==1)&&(((a11==1)&&((((((a29==6)&&(a19==5))||(((a29==9)&&(a19==4))||((a19==5)&&(a29==5))))&&(input==5))&&(a20==1))&&!(a25==1)))&&!(a7==1)))&&(a0==1))))&&(a14==9))){ + a14 = 8; + a0 = 0; + a7 = 1; + a29 = 5; + a19 = 5; + return 24; + } else if((!(a25==1)&&((((a14==9)&&(((((((((a29==7)||((a29==5)||(a29==6)))&&(input==4))&&!(a0==1))&&(a22==1))&&(a28==1))&&(a20==1))&&(a7==1))&&!(a24==1)))&&(a11==1))&&(a19==3)))){ + a25 = 1; + a14 = 8; + a0 = 1; + a24 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a14==9)&&((((((a7==1)&&(((a0==1)&&((((input==1)&&((a29==8)||(a29==9)))&&(a19==5))&&(a28==1)))&&(a24==1)))&&!(a11==1))&&!(a25==1))&&(a22==1))&&(a20==1)))){ + a29 = 8; + a11 = 1; + a19 = 2; + return 23; + } else if(((a24==1)&&(((a14==9)&&(!(a25==1)&&((a19==2)&&((a22==1)&&(((((((a29==8)||(a29==9))&&(input==3))&&!(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))))))&&!(a7==1)))){ + a19 = 5; + a14 = 8; + a24 = 0; + a20 = 0; + a29 = 9; + a11 = 0; + a0 = 1; + return -1; + } else if((!(a7==1)&&(((a25==1)&&((a20==1)&&((a0==1)&&((a22==1)&&((a14==8)&&((a11==1)&&((((a29==7)&&(input==2))&&(a28==1))&&(a19==4))))))))&&(a24==1)))){ + a19 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if((!(a20==1)&&((((a14==9)&&(!(a24==1)&&((a22==1)&&(((a25==1)&&(!(a11==1)&&(!(a0==1)&&(((a29==6)||(a29==7))&&(input==4)))))&&!(a7==1)))))&&(a19==5))&&(a28==1)))){ + a0 = 1; + a25 = 0; + a29 = 7; + a20 = 1; + return -1; + } else if(((a0==1)&&((((a28==1)&&(!(a7==1)&&(((((a29==8)&&((!(a11==1)&&(input==5))&&(a19==5)))&&(a14==8))&&(a20==1))&&(a22==1))))&&(a24==1))&&(a25==1)))){ + a24 = 0; + a29 = 7; + a0 = 0; + a25 = 0; + return 21; + } else if((((a14==10)&&(((a28==1)&&(((((a0==1)&&((a22==1)&&((((a29==6)||(a29==7))&&(input==4))&&(a11==1))))&&(a7==1))&&(a20==1))&&!(a24==1)))&&(a19==2)))&&!(a25==1))){ + a14 = 9; + a29 = 6; + a19 = 4; + return -1; + } else if((((((a22==1)&&((((!(a7==1)&&((a0==1)&&(!(a20==1)&&((input==2)&&((a29==8)||(a29==9))))))&&!(a25==1))&&(a14==10))&&(a19==3)))&&(a11==1))&&(a24==1))&&(a28==1))){ + a7 = 1; + a0 = 0; + a29 = 8; + a14 = 8; + a25 = 1; + return 24; + } else if(((((a14==8)&&(((!(a0==1)&&((a7==1)&&((a22==1)&&((((input==3)&&((a29==8)||(a29==9)))&&!(a25==1))&&!(a11==1)))))&&(a28==1))&&!(a20==1)))&&!(a24==1))&&(a19==2))){ + a24 = 1; + a20 = 1; + a29 = 8; + a7 = 0; + a19 = 5; + return 21; + } else if((!(a11==1)&&((((((a22==1)&&((input==3)&&((((a19==5)&&((a29==9)&&(!(a25==1)&&((a20==1)&&!(a7==1)))))||(((a29==5)&&((!(a20==1)&&(a7==1))&&(a25==1)))&&(a19==1)))||((a19==1)&&(((a25==1)&&((a7==1)&&!(a20==1)))&&(a29==6))))))&&!(a0==1))&&(a28==1))&&(a24==1))&&(a14==8)))){ + a25 = 1; + a7 = 1; + a29 = 5; + a19 = 3; + a11 = 1; + a14 = 9; + a24 = 0; + a20 = 0; + return 24; + } else if((((a25==1)&&((!(a20==1)&&((a19==4)&&(!(a0==1)&&((a14==9)&&((a24==1)&&((a28==1)&&(((input==1)&&((a29==8)||(a29==9)))&&!(a7==1))))))))&&(a22==1)))&&(a11==1))){ + a29 = 5; + a20 = 1; + a19 = 1; + a0 = 1; + a14 = 8; + a7 = 1; + return -1; + } return calculate_output29(input); + } + + int calculate_output29(int input) { + if(((a14==9)&&(((a11==1)&&((a19==2)&&(((a20==1)&&(((!(a25==1)&&(((input==5)&&((a29==7)||(a29==8)))&&(a28==1)))&&(a24==1))&&!(a7==1)))&&(a22==1))))&&(a0==1)))){ + a20 = 0; + a19 = 5; + a11 = 0; + a14 = 8; + a0 = 0; + a25 = 1; + a29 = 9; + a24 = 0; + return -1; + } else if(((a25==1)&&((((!(a20==1)&&((((((a28==1)&&(!(a11==1)&&(input==1)))&&(a29==9))&&(a19==3))&&!(a24==1))&&(a14==8)))&&!(a7==1))&&!(a0==1))&&(a22==1)))){ + a19 = 4; + a29 = 6; + a0 = 1; + a25 = 0; + return 24; + } else if(((((a0==1)&&(((a24==1)&&((a14==8)&&((((a25==1)&&((a29==9)&&(!(a11==1)&&(input==6))))&&(a19==1))&&(a22==1))))&&(a7==1)))&&(a20==1))&&(a28==1))){ + a19 = 2; + a0 = 0; + a25 = 0; + a20 = 0; + return 23; + } else if((((a7==1)&&((((((a22==1)&&((!(a0==1)&&((a25==1)&&(((a29==7)||(a29==8))&&(input==3))))&&(a14==9)))&&!(a11==1))&&!(a24==1))&&(a19==5))&&(a28==1)))&&!(a20==1))){ + a24 = 1; + a25 = 0; + a14 = 8; + a19 = 1; + a7 = 0; + a20 = 1; + a29 = 5; + a11 = 1; + return 24; + } else if((!(a11==1)&&((a20==1)&&((((!(a24==1)&&((((a0==1)&&((((a29==8)||(a29==9))&&(input==6))&&(a28==1)))&&(a14==9))&&(a22==1)))&&!(a25==1))&&(a19==5))&&(a7==1))))){ + a20 = 0; + a29 = 7; + return 24; + } else if(((!(a11==1)&&(((a0==1)&&(((a24==1)&&((((a28==1)&&((((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))&&(input==2)))&&(a14==9))&&!(a25==1)))&&(a22==1)))&&(a7==1)))&&(a20==1))){ + a14 = 8; + a0 = 0; + a19 = 2; + a11 = 1; + a29 = 9; + a20 = 0; + return 21; + } else if(((((((!(a11==1)&&((((a22==1)&&((input==5)&&((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))||((a19==4)&&(a29==6)))))&&!(a0==1))&&!(a25==1)))&&!(a20==1))&&(a24==1))&&(a7==1))&&(a14==9))&&(a28==1))){ + a0 = 1; + a29 = 5; + a25 = 1; + a20 = 1; + a11 = 1; + a19 = 1; + a14 = 8; + return -1; + } else if(((a29==5)&&(((((a11==1)&&((((((!(a0==1)&&(input==3))&&(a14==9))&&!(a7==1))&&(a19==2))&&(a28==1))&&(a22==1)))&&!(a25==1))&&!(a20==1))&&(a24==1)))){ + a0 = 1; + a19 = 4; + a11 = 0; + a7 = 1; + a24 = 0; + return 21; + } else if(((a14==8)&&((!(a24==1)&&((!(a11==1)&&((a20==1)&&((!(a25==1)&&(((input==5)&&(((a29==5)&&(a19==2))||(((a19==1)&&(a29==8))||((a19==1)&&(a29==9)))))&&!(a0==1)))&&!(a7==1))))&&(a28==1)))&&(a22==1)))){ + a29 = 6; + a0 = 1; + a25 = 1; + a20 = 0; + a19 = 1; + return 24; + } else if((!(a11==1)&&((((((!(a20==1)&&(!(a7==1)&&(((a28==1)&&(((a29==8)||(a29==9))&&(input==5)))&&(a14==9))))&&(a19==2))&&(a22==1))&&(a24==1))&&(a25==1))&&(a0==1)))){ + a14 = 8; + a7 = 1; + a19 = 1; + a29 = 5; + a20 = 1; + a11 = 1; + return -1; + } else if(((a7==1)&&(((!(a25==1)&&((a14==9)&&(((a28==1)&&((a0==1)&&((((input==1)&&((a29==8)||(a29==9)))&&!(a24==1))&&!(a20==1))))&&!(a11==1))))&&(a22==1))&&(a19==5)))){ + a19 = 2; + a29 = 5; + a24 = 1; + a7 = 0; + return 21; + } else if(((!(a25==1)&&((a29==7)&&((!(a11==1)&&((a22==1)&&(((a7==1)&&(((a14==8)&&((input==1)&&!(a24==1)))&&!(a20==1)))&&(a28==1))))&&(a19==2))))&&!(a0==1))){ + a20 = 1; + a29 = 5; + a19 = 1; + a11 = 1; + a25 = 1; + a24 = 1; + a0 = 1; + return -1; + } else if((((a24==1)&&(((a7==1)&&(((a28==1)&&(((a14==9)&&((!(a0==1)&&(((a29==8)||(a29==9))&&(input==1)))&&!(a20==1)))&&(a22==1)))&&(a25==1)))&&!(a11==1)))&&(a19==5))){ + a7 = 0; + a29 = 6; + a0 = 1; + a19 = 3; + a24 = 0; + a14 = 8; + a25 = 0; + return 24; + } else if(((!(a0==1)&&((!(a25==1)&&((((!(a20==1)&&((((input==5)&&!(a11==1))&&!(a24==1))&&(a14==9)))&&(a28==1))&&(a7==1))&&(a22==1)))&&(a19==1)))&&(a29==5))){ + a29 = 8; + a11 = 1; + a7 = 0; + a20 = 1; + a14 = 8; + a24 = 1; + a19 = 5; + return 24; + } else if(((a14==9)&&(!(a11==1)&&((((a22==1)&&((a28==1)&&((a7==1)&&(!(a25==1)&&(((((a29==8)||((a29==6)||(a29==7)))&&(input==1))&&(a19==1))&&(a0==1))))))&&(a24==1))&&(a20==1))))){ + a19 = 5; + a0 = 0; + a29 = 8; + a7 = 0; + a20 = 0; + a14 = 8; + a25 = 1; + return 21; + } else if((!(a0==1)&&(((a20==1)&&((a14==9)&&(((!(a7==1)&&((a11==1)&&((input==3)&&(((a19==5)&&((a25==1)&&(a29==9)))||((!(a25==1)&&(a29==5))&&(a19==1))))))&&(a22==1))&&(a28==1))))&&!(a24==1)))){ + a29 = 5; + a25 = 1; + a24 = 1; + a20 = 0; + a19 = 1; + a0 = 1; + return -1; + } else if((((((!(a25==1)&&((((a14==10)&&((a7==1)&&((((a29==5)||(a29==6))&&(input==3))&&(a19==2))))&&(a22==1))&&(a24==1)))&&(a11==1))&&(a0==1))&&(a28==1))&&!(a20==1))){ + a20 = 1; + a0 = 0; + a14 = 8; + a25 = 1; + a11 = 0; + a29 = 5; + a24 = 0; + return -1; + } else if(((a28==1)&&(((((a22==1)&&((a11==1)&&((a0==1)&&((a14==9)&&((a24==1)&&((((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))&&(input==3)))))))&&!(a7==1))&&(a20==1))&&!(a25==1)))){ + a19 = 1; + a29 = 9; + a0 = 0; + a24 = 0; + a11 = 0; + a14 = 8; + a25 = 1; + return -1; + } else if((((a28==1)&&(((a22==1)&&(((a11==1)&&(((a0==1)&&((input==2)&&((((a19==5)&&((a25==1)&&(a29==8)))||((a19==5)&&((a29==9)&&(a25==1))))||((!(a25==1)&&(a29==5))&&(a19==1)))))&&!(a24==1)))&&(a7==1)))&&(a20==1)))&&(a14==8))){ + a29 = 9; + a25 = 0; + a19 = 5; + a11 = 0; + a7 = 0; + a20 = 0; + return 23; + } else if((((a11==1)&&((a22==1)&&((a20==1)&&((a28==1)&&((((input==3)&&(((a19==1)&&((a29==6)&&(!(a7==1)&&(a25==1))))||((((a29==9)&&(!(a25==1)&&(a7==1)))&&(a19==5))||(((a29==5)&&(!(a7==1)&&(a25==1)))&&(a19==1)))))&&(a14==9))&&!(a0==1))))))&&!(a24==1))){ + a19 = 4; + a7 = 1; + a11 = 0; + a29 = 9; + a0 = 1; + a25 = 0; + return 23; + } else if(((a7==1)&&(((a11==1)&&((a19==2)&&(!(a25==1)&&((a0==1)&&(!(a24==1)&&((!(a20==1)&&((a28==1)&&((input==3)&&((a29==6)||(a29==7)))))&&(a14==9)))))))&&(a22==1)))){ + a29 = 7; + a14 = 8; + a11 = 0; + a7 = 0; + a19 = 3; + a25 = 1; + return 24; + } else if((((a14==9)&&(((a0==1)&&((a11==1)&&((((a28==1)&&(!(a24==1)&&((input==4)&&(((a29==9)&&(a19==4))||((a19==5)&&(a29==5))))))&&(a7==1))&&!(a20==1))))&&!(a25==1)))&&(a22==1))){ + a19 = 1; + a29 = 9; + return 23; + } else if(((((a25==1)&&(!(a11==1)&&(!(a20==1)&&((a22==1)&&((((a19==1)&&((((a29==7)||(a29==8))&&(input==4))&&(a14==9)))&&(a0==1))&&(a7==1))))))&&(a28==1))&&(a24==1))){ + a0 = 0; + a24 = 0; + a25 = 0; + a14 = 8; + a11 = 1; + a29 = 6; + return -1; + } else if(((!(a7==1)&&((a20==1)&&((a22==1)&&(((((a14==8)&&((a25==1)&&(((input==1)&&(((a29==5)||(a29==6))||(a29==7)))&&(a28==1))))&&!(a11==1))&&(a0==1))&&(a19==3)))))&&!(a24==1))){ + a7 = 1; + a19 = 1; + a20 = 0; + a29 = 7; + a11 = 1; + a14 = 9; + a25 = 0; + return 21; + } else if(((a28==1)&&((a22==1)&&(((((!(a7==1)&&((((input==2)&&(((a19==3)&&(a29==6))||(((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))))&&!(a20==1))&&(a24==1)))&&(a0==1))&&(a11==1))&&(a14==8))&&(a25==1))))){ + a29 = 8; + a11 = 0; + a19 = 2; + a7 = 1; + return 21; + } else if(((a28==1)&&((a7==1)&&(((a22==1)&&((a14==8)&&(((!(a24==1)&&(((input==1)&&(((a19==1)&&(a29==9))||((a29==5)&&(a19==2))))&&!(a20==1)))&&(a0==1))&&(a25==1))))&&(a11==1))))){ + a29 = 6; + a7 = 0; + a0 = 0; + a19 = 5; + a24 = 1; + return 21; + } else if(((((a24==1)&&((!(a11==1)&&(((a28==1)&&((a14==9)&&((((a20==1)&&(input==4))&&(a22==1))&&(a29==6))))&&(a7==1)))&&(a19==5)))&&!(a25==1))&&!(a0==1))){ + a19 = 1; + a14 = 8; + a11 = 1; + a25 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if((((!(a0==1)&&((a11==1)&&((a20==1)&&((a19==4)&&((a22==1)&&((a28==1)&&(((a24==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==6)))&&(a14==8))))))))&&!(a7==1))&&(a25==1))){ + a19 = 1; + a7 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if(((((a28==1)&&((a14==9)&&((a22==1)&&((((((input==5)&&((((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))||((a29==5)&&(a19==3))))&&!(a25==1))&&(a0==1))&&(a11==1))&&!(a20==1)))))&&!(a24==1))&&!(a7==1))){ + a20 = 1; + a14 = 8; + a19 = 3; + a24 = 1; + a29 = 7; + a0 = 0; + a7 = 1; + return 23; + } else if((((a22==1)&&((a14==9)&&((a28==1)&&((a7==1)&&((((a0==1)&&(((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))&&(input==6))&&!(a25==1)))&&(a24==1))&&!(a20==1))))))&&!(a11==1))){ + a25 = 1; + a20 = 1; + a29 = 5; + a11 = 1; + a19 = 1; + a14 = 8; + return -1; + } else if(((a25==1)&&(((a28==1)&&(!(a20==1)&&((a14==8)&&(((((a0==1)&&(!(a7==1)&&((input==6)&&((a29==8)||(a29==9)))))&&(a24==1))&&(a22==1))&&!(a11==1)))))&&(a19==2)))){ + a19 = 1; + a29 = 9; + a7 = 1; + a11 = 1; + a14 = 9; + return 21; + } else if(((a20==1)&&(((!(a11==1)&&((a28==1)&&((a7==1)&&(!(a0==1)&&((((input==6)&&((((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))||((a29==6)&&(a19==2))))&&(a22==1))&&!(a25==1))))))&&(a14==8))&&!(a24==1)))){ + a29 = 5; + a11 = 1; + a24 = 1; + a20 = 0; + a19 = 5; + a7 = 0; + return 21; + } else if((!(a11==1)&&(!(a7==1)&&((a22==1)&&(!(a25==1)&&((a24==1)&&((((a28==1)&&(((input==6)&&(((a29==9)&&(a19==1))||((a29==5)&&(a19==2))))&&(a14==8)))&&!(a0==1))&&!(a20==1)))))))){ + a7 = 1; + a24 = 0; + a29 = 9; + a20 = 1; + a11 = 1; + a19 = 3; + return -1; + } else if(((a22==1)&&((a11==1)&&(((a25==1)&&(!(a20==1)&&((a19==1)&&(((((a7==1)&&((input==2)&&((a29==7)||(a29==8))))&&(a28==1))&&(a0==1))&&(a24==1)))))&&(a14==9))))){ + a0 = 0; + a29 = 6; + a24 = 0; + a20 = 1; + a14 = 8; + return 23; + } else if(((a20==1)&&((a28==1)&&(((((a0==1)&&(((!(a25==1)&&((input==1)&&(((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))))&&(a14==8))&&!(a11==1)))&&(a22==1))&&!(a7==1))&&(a24==1))))){ + a7 = 1; + a20 = 0; + a0 = 0; + a24 = 0; + a19 = 5; + a29 = 7; + return 23; + } else if(((a22==1)&&(((((((a28==1)&&(!(a7==1)&&(((((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))&&(input==5))&&(a24==1))))&&(a11==1))&&(a14==10))&&(a20==1))&&(a0==1))&&!(a25==1)))){ + a19 = 1; + a29 = 5; + a7 = 1; + a14 = 8; + a25 = 1; + return -1; + } else if((!(a24==1)&&((a28==1)&&(!(a11==1)&&((a0==1)&&(((a14==9)&&((((input==6)&&(((a19==1)&&((a29==5)&&!(a25==1)))||(((a19==5)&&((a25==1)&&(a29==8)))||(((a25==1)&&(a29==9))&&(a19==5)))))&&(a7==1))&&!(a20==1)))&&(a22==1))))))){ + a19 = 4; + a29 = 6; + a25 = 1; + a7 = 0; + return 23; + } else if((!(a20==1)&&((((a22==1)&&((a11==1)&&(((((a7==1)&&((input==6)&&((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))||((a19==5)&&(a29==6)))))&&(a0==1))&&(a14==9))&&(a28==1))))&&(a25==1))&&!(a24==1)))){ + a0 = 0; + a14 = 8; + a25 = 0; + a29 = 6; + a11 = 0; + a19 = 1; + a24 = 1; + return -1; + } else if((((a19==2)&&((a28==1)&&((a7==1)&&(((a24==1)&&(!(a11==1)&&(((a29==5)&&((a14==8)&&((input==1)&&(a22==1))))&&(a0==1))))&&(a20==1)))))&&!(a25==1))){ + a25 = 1; + a7 = 0; + a19 = 4; + a0 = 0; + a11 = 1; + return 21; + } else if(((a24==1)&&(((a19==1)&&(((((a20==1)&&((a28==1)&&((a22==1)&&(((input==2)&&(a11==1))&&(a7==1)))))&&(a14==8))&&!(a0==1))&&(a29==7)))&&!(a25==1)))){ + a11 = 0; + a20 = 0; + a24 = 0; + a0 = 1; + a29 = 6; + a19 = 4; + return -1; + } else if(((((((((a22==1)&&(((((a19==3)&&(input==4))&&!(a24==1))&&(a28==1))&&(a0==1)))&&(a29==6))&&(a20==1))&&(a11==1))&&(a14==8))&&!(a7==1))&&(a25==1))){ + a19 = 5; + a0 = 0; + a20 = 0; + a24 = 1; + return 24; + } else if((!(a25==1)&&((a14==9)&&(((a19==1)&&(!(a7==1)&&(((((a24==1)&&((a28==1)&&((input==4)&&((a29==9)||((a29==7)||(a29==8))))))&&!(a20==1))&&!(a0==1))&&(a22==1))))&&!(a11==1))))){ + a20 = 1; + a25 = 1; + a29 = 5; + a11 = 1; + a14 = 8; + a0 = 1; + a7 = 1; + return -1; + } else if((((a19==1)&&(!(a24==1)&&(((!(a7==1)&&(!(a25==1)&&((a0==1)&&((a22==1)&&(((input==5)&&(((a29==7)||(a29==8))||(a29==9)))&&(a28==1))))))&&(a20==1))&&(a14==9))))&&!(a11==1))){ + a7 = 1; + a19 = 3; + a25 = 1; + a29 = 8; + a11 = 1; + a24 = 1; + a0 = 0; + a14 = 8; + return 21; + } else if(((a14==9)&&((((!(a20==1)&&((!(a7==1)&&(((a0==1)&&((a22==1)&&((input==1)&&!(a11==1))))&&!(a25==1)))&&(a28==1)))&&(a24==1))&&(a29==6))&&(a19==1)))){ + a24 = 0; + a25 = 1; + a11 = 1; + a20 = 1; + a7 = 1; + a29 = 5; + return 23; + } else if(((((((a29==5)&&(((((a28==1)&&(((a14==10)&&(input==1))&&(a7==1)))&&(a11==1))&&(a24==1))&&(a0==1)))&&!(a25==1))&&(a19==4))&&(a22==1))&&(a20==1))){ + a0 = 0; + a14 = 8; + a24 = 0; + a29 = 7; + a25 = 1; + a7 = 0; + a11 = 0; + return -1; + } else if(((!(a20==1)&&((((a19==5)&&((a29==7)&&(((((a0==1)&&((input==1)&&!(a25==1)))&&(a7==1))&&(a24==1))&&!(a11==1))))&&(a14==9))&&(a28==1)))&&(a22==1))){ + a20 = 1; + a7 = 0; + a11 = 1; + a0 = 0; + a14 = 8; + a24 = 0; + a25 = 1; + return -1; + } else if((!(a11==1)&&((a14==8)&&((a25==1)&&(((a22==1)&&((((!(a0==1)&&(((((a19==2)&&(a29==8))||((a29==9)&&(a19==2)))||((a29==5)&&(a19==3)))&&(input==5)))&&!(a7==1))&&!(a24==1))&&(a28==1)))&&(a20==1)))))){ + a14 = 9; + a19 = 5; + a24 = 1; + a29 = 6; + return 23; + } else if(((a24==1)&&(((a29==9)&&((((a22==1)&&((a0==1)&&(((a11==1)&&((a28==1)&&((a19==3)&&(input==2))))&&(a14==9))))&&!(a20==1))&&(a25==1)))&&(a7==1)))){ + a0 = 0; + a19 = 4; + a7 = 0; + a11 = 0; + a24 = 0; + a29 = 6; + return 21; + } else if(((a0==1)&&(((a14==8)&&((!(a20==1)&&((a22==1)&&(((a19==5)&&(!(a25==1)&&((a28==1)&&((input==3)&&(((a29==7)||(a29==8))||(a29==9))))))&&!(a24==1))))&&(a7==1)))&&!(a11==1)))){ + a20 = 1; + a29 = 5; + a7 = 0; + a11 = 1; + a19 = 4; + a24 = 1; + return -1; + } else if((!(a7==1)&&((a11==1)&&((a28==1)&&((a20==1)&&((((a25==1)&&((((((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))&&(input==2))&&(a24==1))&&(a0==1)))&&(a22==1))&&(a14==10))))))){ + a20 = 0; + a14 = 9; + a19 = 4; + a29 = 5; + return 24; + } else if(((((a22==1)&&((((a0==1)&&(!(a24==1)&&((a28==1)&&((((input==2)&&((a29==7)||((a29==5)||(a29==6))))&&(a14==9))&&!(a11==1)))))&&!(a7==1))&&(a19==3)))&&!(a20==1))&&(a25==1))){ + a25 = 0; + a11 = 1; + a29 = 7; + a19 = 4; + a7 = 1; + return 23; + } else if((!(a20==1)&&((!(a11==1)&&((a29==7)&&((((!(a24==1)&&((a25==1)&&((a7==1)&&((input==1)&&!(a0==1)))))&&(a19==5))&&(a14==8))&&(a22==1))))&&(a28==1)))){ + a29 = 5; + a20 = 1; + a0 = 1; + a19 = 1; + a11 = 1; + a24 = 1; + return -1; + } else if((!(a0==1)&&(((a22==1)&&(((a29==8)&&((((a19==3)&&((a14==9)&&(!(a7==1)&&((a11==1)&&(input==5)))))&&(a28==1))&&(a25==1)))&&!(a24==1)))&&!(a20==1)))){ + a20 = 1; + a0 = 1; + a25 = 0; + a7 = 1; + return 23; + } else if((((a28==1)&&(((a20==1)&&((a25==1)&&((((a22==1)&&(((a24==1)&&(((a29==5)||(a29==6))&&(input==6)))&&(a14==9)))&&!(a0==1))&&(a7==1))))&&(a19==2)))&&!(a11==1))){ + a19 = 4; + a14 = 8; + a29 = 9; + a20 = 0; + a7 = 0; + a11 = 1; + return 21; + } else if(((a7==1)&&(!(a20==1)&&((((a14==8)&&(((a28==1)&&((a22==1)&&(((a24==1)&&((a19==1)&&(input==3)))&&!(a11==1))))&&!(a25==1)))&&!(a0==1))&&(a29==9))))){ + a29 = 6; + a19 = 4; + a24 = 0; + a11 = 1; + a14 = 9; + return 21; + } else if(((a24==1)&&((a25==1)&&(((a29==6)&&(((a14==8)&&((!(a11==1)&&(((a28==1)&&((a19==1)&&(input==5)))&&(a22==1)))&&(a20==1)))&&(a7==1)))&&(a0==1))))){ + a7 = 0; + a19 = 3; + a20 = 0; + a25 = 0; + a29 = 9; + a24 = 0; + return 23; + } else if(((a24==1)&&((((a28==1)&&(!(a20==1)&&((a19==4)&&(((((((a29==5)||(a29==6))&&(input==2))&&(a11==1))&&(a0==1))&&(a22==1))&&(a14==9)))))&&(a7==1))&&(a25==1)))){ + a29 = 6; + a19 = 5; + a7 = 0; + a24 = 0; + a11 = 0; + a0 = 0; + return 23; + } else if(((a14==8)&&(((((a0==1)&&((!(a7==1)&&((a20==1)&&(((((a19==3)&&(a29==6))||(((a29==9)&&(a19==2))||((a19==3)&&(a29==5))))&&(input==4))&&(a22==1))))&&(a25==1)))&&(a28==1))&&!(a11==1))&&(a24==1)))){ + a11 = 1; + a7 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((((a19==4)&&((a25==1)&&((a0==1)&&(((a28==1)&&((!(a7==1)&&((a11==1)&&((input==6)&&(a22==1))))&&(a14==8)))&&(a29==7)))))&&(a24==1))&&(a20==1))){ + a19 = 1; + a7 = 1; + a20 = 0; + return 21; + } else if((!(a20==1)&&((!(a0==1)&&(((a11==1)&&((a19==2)&&((a28==1)&&(((((input==1)&&((a29==6)||(a29==7)))&&(a22==1))&&(a25==1))&&!(a24==1)))))&&(a14==9)))&&(a7==1)))){ + a11 = 0; + a19 = 3; + a29 = 7; + a14 = 8; + return -1; + } else if((!(a20==1)&&((a22==1)&&((((a11==1)&&((((a25==1)&&(!(a7==1)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==4))&&(a14==10))))&&(a19==3))&&(a0==1)))&&(a28==1))&&(a24==1))))){ + a14 = 8; + a29 = 5; + a19 = 1; + a7 = 1; + a20 = 1; + return -1; + } else if(((a11==1)&&((((a0==1)&&(((((a25==1)&&(((((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))&&(input==2))&&(a22==1)))&&(a28==1))&&(a14==8))&&!(a7==1)))&&!(a20==1))&&!(a24==1)))){ + a24 = 1; + a11 = 0; + a7 = 1; + a25 = 0; + a29 = 7; + a20 = 1; + a19 = 5; + a0 = 0; + return 23; + } else if(((!(a20==1)&&(((a19==2)&&((((((((a28==1)&&(input==6))&&(a25==1))&&(a29==5))&&(a7==1))&&(a22==1))&&(a11==1))&&(a14==8)))&&(a0==1)))&&(a24==1))){ + a19 = 1; + a20 = 1; + return -1; + } else if(((a22==1)&&((((((a20==1)&&((a14==8)&&((a19==5)&&(((((a29==8)||((a29==6)||(a29==7)))&&(input==5))&&(a0==1))&&(a11==1)))))&&(a28==1))&&(a24==1))&&!(a7==1))&&(a25==1)))){ + a20 = 0; + a29 = 5; + a7 = 1; + return 23; + } else if((((a11==1)&&(((a22==1)&&(((input==2)&&((((a19==5)&&((a29==8)&&(!(a25==1)&&((a24==1)&&(!(a7==1)&&!(a20==1))))))||((a19==5)&&((((!(a20==1)&&!(a7==1))&&(a24==1))&&!(a25==1))&&(a29==9))))||((a19==1)&&(((a25==1)&&(!(a24==1)&&((a7==1)&&(a20==1))))&&(a29==5)))))&&(a0==1)))&&(a14==9)))&&(a28==1))){ + a14 = 10; + a20 = 1; + a29 = 6; + a7 = 0; + a25 = 0; + a19 = 1; + a24 = 1; + return 21; + } else if(((((a0==1)&&(((a14==9)&&((a19==4)&&(!(a20==1)&&((a22==1)&&((!(a25==1)&&((input==1)&&((a29==5)||(a29==6))))&&(a28==1))))))&&!(a7==1)))&&!(a11==1))&&(a24==1))){ + a7 = 1; + a14 = 8; + a19 = 1; + a0 = 0; + a11 = 1; + a29 = 8; + return 24; + } else if(((a25==1)&&(((((a22==1)&&(!(a24==1)&&((a19==4)&&(!(a7==1)&&(!(a20==1)&&(((input==6)&&(((a29==7)||(a29==8))||(a29==9)))&&(a28==1)))))))&&(a14==9))&&(a11==1))&&!(a0==1)))){ + a19 = 5; + a7 = 1; + a29 = 8; + a24 = 1; + a14 = 8; + a20 = 1; + return 21; + } else if((((!(a20==1)&&((a29==6)&&(((a28==1)&&((a19==1)&&((!(a7==1)&&(!(a11==1)&&((input==3)&&!(a0==1))))&&(a22==1))))&&(a14==9))))&&(a25==1))&&(a24==1))){ + a14 = 8; + a19 = 5; + a0 = 1; + a29 = 7; + a24 = 0; + return 24; + } else if(((((!(a24==1)&&(!(a7==1)&&(!(a25==1)&&(((a19==5)&&(((a11==1)&&((input==1)&&(a28==1)))&&!(a20==1)))&&(a14==9)))))&&(a29==5))&&(a0==1))&&(a22==1))){ + a11 = 0; + a14 = 8; + a29 = 9; + a19 = 1; + a25 = 1; + return 23; + } else if(((!(a20==1)&&((((!(a7==1)&&(((!(a0==1)&&(!(a25==1)&&((input==4)&&(a22==1))))&&(a19==2))&&(a29==5)))&&(a28==1))&&(a24==1))&&(a14==9)))&&(a11==1))){ + a0 = 1; + a25 = 1; + a20 = 1; + a19 = 1; + a14 = 8; + a7 = 1; + return -1; + } else if((!(a7==1)&&((((((a24==1)&&((a14==9)&&((a0==1)&&(((a22==1)&&((input==1)&&((a29==6)||(a29==7))))&&(a28==1)))))&&(a19==5))&&(a11==1))&&!(a20==1))&&!(a25==1)))){ + a14 = 8; + a0 = 0; + a19 = 2; + a11 = 0; + a29 = 6; + a25 = 1; + a7 = 1; + return -1; + } else if((((a14==9)&&(((a22==1)&&((!(a25==1)&&((((a28==1)&&((input==3)&&(((a29==5)&&(a19==4))||(((a19==3)&&(a29==8))||((a29==9)&&(a19==3))))))&&(a24==1))&&!(a11==1)))&&!(a0==1)))&&(a20==1)))&&!(a7==1))){ + a7 = 1; + a0 = 1; + a14 = 8; + a29 = 8; + a11 = 1; + a19 = 3; + return -1; + } else if(((a0==1)&&(((((a20==1)&&((a22==1)&&(!(a25==1)&&(((a24==1)&&((((a29==7)||(a29==8))&&(input==2))&&!(a7==1)))&&(a19==2)))))&&(a14==10))&&(a28==1))&&(a11==1)))){ + a25 = 1; + a7 = 1; + a29 = 5; + a19 = 1; + a14 = 8; + return -1; + } else if(((!(a0==1)&&(((((!(a20==1)&&(((!(a7==1)&&((input==2)&&!(a25==1)))&&!(a24==1))&&(a29==8)))&&(a28==1))&&(a14==9))&&(a11==1))&&(a22==1)))&&(a19==3))){ + a19 = 1; + a0 = 1; + a29 = 5; + a24 = 1; + a20 = 1; + a14 = 8; + a25 = 1; + a7 = 1; + return -1; + } else if(((a22==1)&&((a14==9)&&((a29==5)&&((a28==1)&&(((a7==1)&&((a0==1)&&((a19==2)&&((((a20==1)&&(input==4))&&(a25==1))&&(a24==1)))))&&!(a11==1))))))){ + a20 = 0; + a11 = 1; + a29 = 8; + a19 = 1; + a7 = 0; + return -1; + } else if(((a28==1)&&(((((a7==1)&&(!(a25==1)&&((a11==1)&&(((a24==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==6))&&(a14==8)))&&(a22==1)))))&&(a19==1))&&!(a20==1))&&(a0==1)))){ + a25 = 1; + a24 = 0; + a7 = 0; + a19 = 3; + a29 = 6; + return 21; + } else if((((((!(a0==1)&&((a29==7)&&(!(a24==1)&&((a25==1)&&((!(a11==1)&&(!(a7==1)&&(input==3)))&&(a20==1))))))&&(a19==2))&&(a14==8))&&(a22==1))&&(a28==1))){ + a14 = 9; + a19 = 5; + a24 = 1; + a29 = 5; + return 24; + } else if((((!(a20==1)&&((((a28==1)&&((!(a25==1)&&((a19==5)&&(!(a0==1)&&((input==5)&&!(a7==1)))))&&!(a24==1)))&&(a14==8))&&(a29==8)))&&(a22==1))&&!(a11==1))){ + a29 = 5; + a25 = 1; + a19 = 4; + a24 = 1; + a11 = 1; + return 24; + } else if(((a22==1)&&((a24==1)&&((a28==1)&&((a19==4)&&((a11==1)&&(!(a20==1)&&(((a14==10)&&((a0==1)&&(!(a7==1)&&((input==1)&&((a29==7)||((a29==5)||(a29==6)))))))&&!(a25==1))))))))){ + a7 = 1; + a0 = 0; + a14 = 9; + a19 = 3; + a29 = 7; + a24 = 0; + a11 = 0; + return -1; + } else if((!(a7==1)&&((a24==1)&&(((((a14==10)&&((a28==1)&&((((a19==5)&&((((a29==7)||(a29==8))||(a29==9))&&(input==1)))&&(a20==1))&&!(a25==1))))&&(a11==1))&&(a0==1))&&(a22==1))))){ + a25 = 1; + a29 = 5; + a14 = 8; + a7 = 1; + a19 = 1; + return -1; + } else if(((a19==2)&&(!(a24==1)&&(!(a7==1)&&((a22==1)&&((!(a25==1)&&(!(a0==1)&&(!(a20==1)&&((a11==1)&&((a28==1)&&(((a29==8)||(a29==9))&&(input==1)))))))&&(a14==9))))))){ + a0 = 1; + a19 = 1; + a29 = 6; + a7 = 1; + a20 = 1; + return -1; + } else if(((a29==5)&&((a24==1)&&(((a28==1)&&((((a22==1)&&(((!(a25==1)&&((input==6)&&(a19==5)))&&(a14==8))&&!(a20==1)))&&(a11==1))&&(a7==1)))&&(a0==1))))){ + a11 = 0; + a20 = 1; + a19 = 3; + a29 = 8; + return 24; + } else if(((a20==1)&&(((a24==1)&&((!(a7==1)&&((a14==9)&&((!(a0==1)&&(((!(a25==1)&&(input==5))&&(a29==5))&&(a11==1)))&&(a19==3))))&&(a28==1)))&&(a22==1)))){ + a7 = 1; + a29 = 6; + a14 = 8; + a19 = 5; + return 24; + } else if((((a24==1)&&((a29==7)&&(((a28==1)&&((((!(a20==1)&&(((input==3)&&!(a11==1))&&(a7==1)))&&(a22==1))&&!(a0==1))&&(a14==8)))&&(a25==1))))&&(a19==2))){ + a11 = 1; + a19 = 5; + a14 = 9; + a24 = 0; + return 23; + } else if((!(a24==1)&&((a22==1)&&((a25==1)&&((!(a0==1)&&(((a11==1)&&((a19==5)&&(((a28==1)&&((input==1)&&((a29==5)||(a29==6))))&&(a20==1))))&&(a7==1)))&&(a14==8)))))){ + a19 = 2; + a29 = 7; + a24 = 1; + a14 = 9; + return 24; + } else if((((((a28==1)&&(!(a25==1)&&((a24==1)&&(((((((a29==5)&&(a19==2))||(((a19==1)&&(a29==8))||((a29==9)&&(a19==1))))&&(input==4))&&(a11==1))&&(a7==1))&&(a22==1)))))&&(a20==1))&&!(a0==1))&&(a14==8))){ + a11 = 0; + a24 = 0; + a7 = 0; + a0 = 1; + a25 = 1; + a29 = 5; + a20 = 0; + a19 = 2; + return 21; + } else if((((a14==9)&&((a22==1)&&((!(a24==1)&&(((a19==1)&&((((a29==8)&&((input==1)&&(a28==1)))&&!(a11==1))&&!(a0==1)))&&!(a7==1)))&&(a20==1))))&&(a25==1))){ + a25 = 0; + a20 = 0; + a24 = 1; + a19 = 2; + a11 = 1; + a14 = 8; + return 21; + } else if((((a22==1)&&(((((a11==1)&&(((((((a29==5)||(a29==6))&&(input==3))&&!(a25==1))&&(a28==1))&&(a20==1))&&!(a24==1)))&&(a14==8))&&(a19==5))&&!(a0==1)))&&(a7==1))){ + a14 = 9; + a19 = 4; + a25 = 1; + a29 = 5; + a0 = 1; + return 23; + } else if((((a28==1)&&(((a14==8)&&((((!(a25==1)&&(!(a11==1)&&(!(a24==1)&&((input==1)&&(a0==1)))))&&(a29==8))&&(a20==1))&&(a22==1)))&&!(a7==1)))&&(a19==2))){ + a20 = 0; + a14 = 9; + a19 = 1; + a11 = 1; + a29 = 6; + return 23; + } else if(((((!(a25==1)&&((a24==1)&&((!(a20==1)&&((((a7==1)&&(((a29==8)||(a29==9))&&(input==4)))&&!(a0==1))&&(a14==8)))&&(a28==1))))&&!(a11==1))&&(a19==3))&&(a22==1))){ + a24 = 0; + a29 = 6; + a25 = 1; + a14 = 9; + a7 = 0; + a20 = 1; + a0 = 1; + return 23; + } else if((((a29==5)&&(!(a11==1)&&(!(a7==1)&&(((a24==1)&&((a22==1)&&((a20==1)&&((((input==5)&&(a19==2))&&(a0==1))&&!(a25==1)))))&&(a14==8)))))&&(a28==1))){ + a20 = 0; + a11 = 1; + a29 = 7; + a25 = 1; + a0 = 0; + a19 = 5; + a7 = 1; + return 23; + } else if((!(a7==1)&&(((a22==1)&&((a24==1)&&((a14==8)&&((!(a20==1)&&((a11==1)&&((a28==1)&&((((a29==6)||(a29==7))&&(input==6))&&(a19==4)))))&&(a25==1)))))&&!(a0==1)))){ + a24 = 0; + a25 = 0; + a19 = 3; + a0 = 1; + a29 = 7; + a11 = 0; + return 21; + } else if(((a7==1)&&((a19==2)&&((a14==9)&&((a11==1)&&(((a28==1)&&((a20==1)&&((a22==1)&&(!(a0==1)&&((a24==1)&&(((a29==5)||(a29==6))&&(input==4)))))))&&!(a25==1))))))){ + a25 = 1; + a20 = 0; + a29 = 9; + a11 = 0; + a7 = 0; + a19 = 3; + a24 = 0; + a0 = 1; + return -1; + } else if(((a22==1)&&((a24==1)&&((a29==5)&&(((((a20==1)&&((a0==1)&&((((input==1)&&(a11==1))&&(a14==8))&&!(a25==1))))&&(a28==1))&&(a19==3))&&!(a7==1)))))){ + a29 = 6; + a20 = 0; + a19 = 2; + return 23; + } else if(((a19==2)&&((a20==1)&&((a7==1)&&((a28==1)&&((a22==1)&&(((!(a0==1)&&((a25==1)&&(((input==2)&&((a29==6)||(a29==7)))&&(a14==9))))&&!(a24==1))&&(a11==1)))))))){ + a19 = 5; + a7 = 0; + a29 = 6; + a14 = 8; + a11 = 0; + a0 = 1; + a20 = 0; + return -1; + } else if((((((!(a25==1)&&(((a11==1)&&(((a14==8)&&((input==1)&&(((a29==5)&&(a19==2))||(((a19==1)&&(a29==8))||((a29==9)&&(a19==1))))))&&!(a0==1)))&&(a22==1)))&&(a28==1))&&(a7==1))&&(a20==1))&&!(a24==1))){ + a25 = 1; + a19 = 3; + a24 = 1; + a29 = 6; + return 23; + } else if((((a0==1)&&(((((((((input==4)&&(((a29==9)&&(a19==1))||((a29==5)&&(a19==2))))&&(a24==1))&&(a7==1))&&!(a25==1))&&(a22==1))&&(a28==1))&&!(a11==1))&&(a14==9)))&&(a20==1))){ + a29 = 9; + a11 = 1; + a14 = 8; + a24 = 0; + a19 = 1; + a0 = 0; + a20 = 0; + return 21; + } else if(((((a29==6)&&((a19==4)&&(((a20==1)&&(!(a24==1)&&((a28==1)&&((a14==8)&&(((input==6)&&!(a0==1))&&(a11==1))))))&&(a22==1))))&&!(a7==1))&&!(a25==1))){ + a29 = 9; + a19 = 2; + a24 = 1; + a14 = 9; + return 24; + } else if((!(a20==1)&&((a7==1)&&(!(a25==1)&&((a0==1)&&(((a11==1)&&((a19==2)&&((((((a29==5)||(a29==6))&&(input==5))&&(a24==1))&&(a28==1))&&(a22==1))))&&(a14==10))))))){ + a19 = 5; + a14 = 8; + a20 = 1; + a29 = 8; + a25 = 1; + a0 = 0; + a7 = 0; + return 21; + } else if((!(a0==1)&&((a25==1)&&(!(a24==1)&&((((((a14==9)&&((((input==2)&&(((a29==7)||(a29==8))||(a29==9)))&&(a19==2))&&(a20==1)))&&!(a11==1))&&!(a7==1))&&(a28==1))&&(a22==1)))))){ + a29 = 6; + a19 = 4; + a20 = 0; + a14 = 8; + return 23; + } else if(((a22==1)&&((a19==3)&&(((a14==9)&&((a20==1)&&(((a7==1)&&((a28==1)&&(!(a24==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==6))&&(a11==1)))))&&(a25==1))))&&(a0==1))))){ + a7 = 0; + a29 = 9; + a20 = 0; + a24 = 1; + a19 = 1; + return 24; + } else if(((a24==1)&&((((a20==1)&&(!(a11==1)&&(((a22==1)&&(((a25==1)&&(((input==3)&&((a29==6)||(a29==7)))&&(a7==1)))&&(a14==9)))&&!(a0==1))))&&(a28==1))&&(a19==4)))){ + a11 = 1; + a7 = 0; + a19 = 2; + a29 = 5; + return -1; + } else if(((((!(a24==1)&&(((a22==1)&&(((!(a0==1)&&(((input==2)&&(a14==9))&&(a28==1)))&&!(a11==1))&&(a20==1)))&&!(a7==1)))&&(a25==1))&&(a29==9))&&(a19==3))){ + a0 = 1; + a25 = 0; + a7 = 1; + a19 = 2; + a29 = 6; + return 23; + } else if((((!(a24==1)&&((!(a20==1)&&((a14==8)&&((a28==1)&&(((((input==1)&&((a29==9)||((a29==7)||(a29==8))))&&(a0==1))&&(a22==1))&&(a19==4)))))&&!(a11==1)))&&(a25==1))&&!(a7==1))){ + a29 = 7; + a19 = 1; + a25 = 0; + return 23; + } else if(((a7==1)&&((((((((((a0==1)&&((input==1)&&((a29==8)||(a29==9))))&&!(a11==1))&&(a25==1))&&(a24==1))&&(a14==9))&&(a19==2))&&(a22==1))&&(a20==1))&&(a28==1)))){ + a29 = 6; + a19 = 5; + a20 = 0; + return 23; + } else if(((a0==1)&&((a22==1)&&((((a19==1)&&(!(a24==1)&&((a14==8)&&((a28==1)&&((!(a11==1)&&((input==1)&&(((a29==7)||(a29==8))||(a29==9))))&&(a20==1))))))&&(a25==1))&&!(a7==1))))){ + a29 = 8; + a20 = 0; + a11 = 1; + a0 = 0; + a24 = 1; + return 24; + } else if(((a19==5)&&(((!(a0==1)&&(((a7==1)&&((!(a25==1)&&((((a29==6)&&(input==6))&&!(a11==1))&&(a22==1)))&&(a28==1)))&&(a24==1)))&&(a20==1))&&(a14==9)))){ + a29 = 7; + a25 = 1; + a19 = 4; + a14 = 8; + return 24; + } else if(((!(a11==1)&&(!(a25==1)&&((a19==4)&&((a28==1)&&((((((a24==1)&&((input==5)&&!(a7==1)))&&(a14==8))&&(a0==1))&&!(a20==1))&&(a29==7))))))&&(a22==1))){ + a11 = 1; + a14 = 9; + a29 = 5; + return 23; + } else if(((a11==1)&&(!(a7==1)&&((a22==1)&&(((((a0==1)&&((a14==9)&&(((((a29==9)||((a29==7)||(a29==8)))&&(input==5))&&(a20==1))&&!(a24==1))))&&(a19==1))&&(a28==1))&&(a25==1)))))){ + a24 = 1; + a0 = 0; + a14 = 8; + a19 = 2; + a29 = 9; + return 23; + } else if(((a25==1)&&(!(a7==1)&&((a28==1)&&((a29==6)&&(((a11==1)&&(!(a24==1)&&(((a20==1)&&((a19==1)&&((a14==9)&&(input==5))))&&(a22==1))))&&(a0==1))))))){ + a25 = 0; + a19 = 3; + a7 = 1; + a29 = 7; + return -1; + } else if(((a28==1)&&((a14==9)&&((a19==5)&&(((((a22==1)&&((!(a24==1)&&((a11==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==6))))&&(a20==1)))&&(a7==1))&&!(a0==1))&&(a25==1)))))){ + a14 = 8; + a19 = 2; + a25 = 0; + a20 = 0; + a29 = 5; + a7 = 0; + a24 = 1; + return 21; + } else if((((a28==1)&&(((a24==1)&&((!(a11==1)&&((a19==5)&&((a22==1)&&(((((a29==8)||((a29==6)||(a29==7)))&&(input==6))&&!(a20==1))&&!(a0==1)))))&&(a14==9)))&&!(a7==1)))&&!(a25==1))){ + a14 = 8; + a29 = 7; + a7 = 1; + a11 = 1; + a25 = 1; + a19 = 4; + a20 = 1; + return 23; + } else if((((a22==1)&&(((a11==1)&&(((a25==1)&&(((a29==6)&&((a19==1)&&((!(a24==1)&&(input==1))&&!(a20==1))))&&(a14==9)))&&!(a7==1)))&&!(a0==1)))&&(a28==1))){ + a11 = 0; + a14 = 8; + a19 = 3; + a7 = 1; + a29 = 5; + a0 = 1; + a25 = 0; + return -1; + } else if(((a14==9)&&(((((a0==1)&&((((((input==4)&&(((a29==9)&&(a19==3))||((a29==5)&&(a19==4))))&&(a25==1))&&!(a24==1))&&(a28==1))&&(a22==1)))&&(a20==1))&&!(a11==1))&&!(a7==1)))){ + a25 = 0; + a7 = 1; + a11 = 1; + a19 = 3; + a29 = 5; + a0 = 0; + a14 = 8; + return 23; + } else if(((((a11==1)&&(!(a25==1)&&(((a0==1)&&((((a24==1)&&(((input==2)&&((a29==6)||(a29==7)))&&(a19==5)))&&(a14==9))&&(a28==1)))&&(a22==1))))&&!(a7==1))&&!(a20==1))){ + a19 = 4; + a29 = 6; + a14 = 8; + a0 = 0; + a25 = 1; + return -1; + } else if(((a25==1)&&((a20==1)&&((a19==5)&&((a24==1)&&(((a0==1)&&((a22==1)&&(((((input==5)&&((a29==7)||((a29==5)||(a29==6))))&&!(a11==1))&&(a28==1))&&(a14==9))))&&!(a7==1))))))){ + a25 = 0; + a7 = 1; + a19 = 3; + a29 = 8; + a24 = 0; + a11 = 1; + return 23; + } else if(((a20==1)&&(((!(a0==1)&&((a14==9)&&((a25==1)&&(((((a28==1)&&(((a29==5)||(a29==6))&&(input==1)))&&(a19==4))&&(a24==1))&&(a22==1)))))&&(a11==1))&&!(a7==1)))){ + a14 = 8; + a29 = 7; + a20 = 0; + a19 = 5; + return 24; + } else if(((a14==9)&&(!(a0==1)&&(((((a24==1)&&((!(a11==1)&&(!(a20==1)&&((a19==4)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==5)))))&&(a25==1)))&&(a7==1))&&(a22==1))&&(a28==1))))){ + a11 = 1; + a19 = 1; + a0 = 1; + a25 = 0; + a24 = 0; + a7 = 0; + a29 = 5; + return -1; + } else if(((((a14==8)&&((a0==1)&&((a22==1)&&((a29==7)&&(!(a25==1)&&((a28==1)&&((a19==2)&&((!(a20==1)&&(input==4))&&(a7==1)))))))))&&!(a11==1))&&(a24==1))){ + a29 = 8; + a14 = 9; + a11 = 1; + a20 = 1; + a19 = 3; + return 24; + } else if((((!(a0==1)&&(((a14==9)&&((a28==1)&&(((a19==2)&&((((input==5)&&(((a29==5)||(a29==6))||(a29==7)))&&(a11==1))&&!(a20==1)))&&!(a25==1))))&&(a22==1)))&&(a7==1))&&!(a24==1))){ + a29 = 6; + a24 = 1; + a14 = 8; + a19 = 5; + return 21; + } else if((((!(a20==1)&&(((a24==1)&&((a14==8)&&(((a22==1)&&((a11==1)&&((a25==1)&&((input==6)&&((a29==8)||(a29==9))))))&&(a7==1))))&&(a19==2)))&&(a28==1))&&!(a0==1))){ + a20 = 1; + a19 = 4; + a14 = 9; + a0 = 1; + a7 = 0; + a29 = 6; + a11 = 0; + a24 = 0; + a25 = 0; + return 21; + } else if((((a19==3)&&((((a11==1)&&((a25==1)&&(((a0==1)&&((a7==1)&&(((input==2)&&((a29==5)||(a29==6)))&&(a20==1))))&&(a24==1))))&&(a14==9))&&(a22==1)))&&(a28==1))){ + a19 = 1; + a24 = 0; + a29 = 6; + a20 = 0; + a7 = 0; + return 23; + } else if((((a7==1)&&((a25==1)&&(((a22==1)&&((a28==1)&&((!(a0==1)&&((a14==9)&&((((a19==3)&&(a29==5))||(((a19==2)&&(a29==8))||((a19==2)&&(a29==9))))&&(input==3))))&&(a11==1))))&&!(a20==1))))&&!(a24==1))){ + a7 = 0; + a20 = 1; + a19 = 5; + a29 = 8; + a0 = 1; + return 21; + } else if(((a11==1)&&((((a19==5)&&((a20==1)&&((((a28==1)&&((a22==1)&&(((input==4)&&((a29==9)||((a29==7)||(a29==8))))&&!(a7==1))))&&(a0==1))&&(a14==8))))&&!(a25==1))&&(a24==1)))){ + a29 = 7; + a7 = 1; + a19 = 4; + a24 = 0; + return 24; + } else if((((a14==9)&&((a19==4)&&((a7==1)&&((a0==1)&&(((((!(a20==1)&&((input==6)&&((a29==8)||((a29==6)||(a29==7)))))&&(a22==1))&&(a28==1))&&(a24==1))&&!(a11==1))))))&&!(a25==1))){ + a11 = 1; + a19 = 2; + a25 = 1; + a24 = 0; + a29 = 7; + return 21; + } else if(((a20==1)&&(((a7==1)&&(!(a11==1)&&((((a24==1)&&((a14==9)&&((a28==1)&&((((a29==7)||(a29==8))&&(input==1))&&(a22==1)))))&&!(a25==1))&&!(a0==1))))&&(a19==5)))){ + a14 = 8; + a24 = 0; + a19 = 4; + a29 = 9; + return -1; + } else if(((a0==1)&&(!(a7==1)&&(!(a24==1)&&((a11==1)&&(((!(a25==1)&&((a14==8)&&((a28==1)&&((input==3)&&((((a19==1)&&(a29==8))||((a19==1)&&(a29==9)))||((a19==2)&&(a29==5)))))))&&!(a20==1))&&(a22==1))))))){ + a24 = 1; + a29 = 5; + a20 = 1; + a7 = 1; + a25 = 1; + a19 = 1; + return -1; + } else if(((!(a24==1)&&((((a11==1)&&((a25==1)&&((a14==8)&&((((input==4)&&(((a19==5)&&(a29==5))||(((a29==8)&&(a19==4))||((a19==4)&&(a29==9)))))&&(a28==1))&&!(a20==1)))))&&(a22==1))&&(a7==1)))&&(a0==1))){ + a29 = 7; + a19 = 4; + a0 = 0; + a25 = 0; + return 23; + } else if((((a11==1)&&(((a0==1)&&(((a22==1)&&(((a7==1)&&((a19==1)&&((a14==9)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==2)))))&&(a20==1)))&&!(a25==1)))&&!(a24==1)))&&(a28==1))){ + a29 = 6; + a7 = 0; + a25 = 1; + a14 = 8; + a19 = 5; + a0 = 0; + return 24; + } else if(((((((a24==1)&&((a11==1)&&((a14==9)&&((((((a19==5)&&((a25==1)&&(a29==9)))||(((a29==5)&&!(a25==1))&&(a19==1)))||((a19==1)&&(!(a25==1)&&(a29==6))))&&(input==2))&&(a7==1)))))&&(a0==1))&&(a20==1))&&(a28==1))&&(a22==1))){ + a25 = 0; + a0 = 0; + a24 = 0; + a11 = 0; + a19 = 3; + a7 = 0; + a29 = 5; + return 24; + } else if(((!(a11==1)&&((!(a24==1)&&(!(a25==1)&&((a14==8)&&((a7==1)&&((a22==1)&&(((a0==1)&&((input==4)&&(((a29==6)||(a29==7))||(a29==8))))&&(a20==1)))))))&&(a28==1)))&&(a19==4))){ + a7 = 0; + a25 = 1; + a19 = 2; + a20 = 0; + a29 = 6; + return 24; + } else if((((((a7==1)&&((((((a0==1)&&((a19==4)&&(((a29==6)||(a29==7))&&(input==4))))&&!(a25==1))&&(a22==1))&&(a11==1))&&(a14==8)))&&!(a24==1))&&(a28==1))&&!(a20==1))){ + a24 = 1; + a20 = 1; + a25 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a22==1)&&((((a24==1)&&((((!(a11==1)&&((!(a7==1)&&((input==2)&&(((a29==6)||(a29==7))||(a29==8))))&&(a20==1)))&&(a14==8))&&!(a0==1))&&(a19==5)))&&(a28==1))&&!(a25==1)))){ + a29 = 5; + a11 = 1; + a20 = 0; + return 21; + } else if(((a29==9)&&((a7==1)&&(!(a20==1)&&((a19==5)&&((a22==1)&&(((a11==1)&&((a14==9)&&((a25==1)&&((a0==1)&&((input==3)&&!(a24==1))))))&&(a28==1)))))))){ + a20 = 1; + a29 = 5; + a19 = 2; + a14 = 10; + return 23; + } else if((((a14==9)&&(((a0==1)&&(((a20==1)&&(!(a11==1)&&(((a28==1)&&((((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))&&(input==5)))&&!(a25==1))))&&!(a7==1)))&&!(a24==1)))&&(a22==1))){ + a19 = 1; + a29 = 8; + a24 = 1; + a7 = 1; + a20 = 0; + return 21; + } else if(((a7==1)&&((a28==1)&&((a20==1)&&((a22==1)&&((a14==10)&&((a19==1)&&((a0==1)&&(((a25==1)&&((a24==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==1))))&&(a11==1)))))))))){ + a19 = 2; + a20 = 0; + a14 = 9; + a0 = 0; + a29 = 6; + return -1; + } else if(((((((a24==1)&&((((a11==1)&&((a0==1)&&(((input==4)&&(a28==1))&&!(a25==1))))&&(a19==5))&&(a22==1)))&&(a7==1))&&!(a20==1))&&(a29==6))&&(a14==9))){ + a29 = 7; + a7 = 0; + a19 = 1; + a25 = 1; + return 23; + } else if((!(a0==1)&&((a22==1)&&((a20==1)&&(((a25==1)&&((((a19==1)&&((a28==1)&&(((input==3)&&(a7==1))&&(a24==1))))&&(a11==1))&&(a14==8)))&&(a29==9)))))){ + a25 = 0; + a20 = 0; + a7 = 0; + a29 = 7; + return 21; + } else if((((a25==1)&&((((((a7==1)&&(((a29==8)&&(!(a0==1)&&((input==5)&&(a19==5))))&&(a28==1)))&&(a14==9))&&(a22==1))&&(a11==1))&&!(a20==1)))&&!(a24==1))){ + a19 = 1; + a14 = 8; + a29 = 5; + a0 = 1; + a24 = 1; + a20 = 1; + return -1; + } else if(((((a22==1)&&(!(a24==1)&&(!(a25==1)&&(((a28==1)&&((!(a7==1)&&((input==1)&&((((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))||((a29==5)&&(a19==5)))))&&!(a11==1)))&&(a0==1)))))&&(a14==8))&&!(a20==1))){ + a29 = 5; + a11 = 1; + a25 = 1; + a20 = 1; + a24 = 1; + a7 = 1; + a19 = 1; + return -1; + } else if(((a25==1)&&((a29==6)&&((a19==4)&&(!(a20==1)&&((((((((input==6)&&!(a7==1))&&!(a24==1))&&(a11==1))&&(a0==1))&&(a22==1))&&(a14==8))&&(a28==1))))))){ + a7 = 1; + a24 = 1; + a19 = 2; + a0 = 0; + return 21; + } else if((((((a25==1)&&((((a20==1)&&((!(a0==1)&&((((a29==7)||(a29==8))&&(input==4))&&(a19==1)))&&(a14==9)))&&(a7==1))&&(a28==1)))&&(a22==1))&&(a11==1))&&!(a24==1))){ + a24 = 1; + a14 = 8; + a11 = 0; + a7 = 0; + a19 = 5; + a20 = 0; + a29 = 8; + return -1; + } else if((((((((a25==1)&&(((((!(a11==1)&&(input==5))&&(a24==1))&&(a19==4))&&(a22==1))&&(a28==1)))&&!(a0==1))&&(a14==9))&&!(a20==1))&&(a29==7))&&!(a7==1))){ + a7 = 1; + a0 = 1; + a20 = 1; + a29 = 5; + a14 = 8; + a11 = 1; + a19 = 1; + return -1; + } else if((!(a24==1)&&(((!(a11==1)&&((a7==1)&&((a0==1)&&((a28==1)&&((a20==1)&&(((((a19==5)&&((a25==1)&&(a29==9)))||((a19==1)&&(!(a25==1)&&(a29==5))))||((a19==1)&&((a29==6)&&!(a25==1))))&&(input==2)))))))&&(a14==9))&&(a22==1)))){ + a25 = 1; + a29 = 8; + a24 = 1; + a7 = 0; + a19 = 2; + a20 = 0; + return 21; + } else if(((a22==1)&&((a24==1)&&(((a20==1)&&((a25==1)&&(((((((a11==1)&&(input==1))&&(a0==1))&&(a14==8))&&(a29==9))&&(a19==5))&&!(a7==1))))&&(a28==1))))){ + a7 = 1; + a20 = 0; + a19 = 1; + a25 = 0; + return 24; + } else if(((a29==9)&&((a28==1)&&((a19==3)&&(((a14==8)&&((((a24==1)&&(((a0==1)&&((input==3)&&(a22==1)))&&(a20==1)))&&!(a7==1))&&(a11==1)))&&!(a25==1)))))){ + a29 = 5; + a7 = 1; + a25 = 1; + a19 = 2; + a24 = 0; + return 24; + } else if((((a24==1)&&((a7==1)&&(((a20==1)&&((a14==8)&&(((a28==1)&&((((input==5)&&!(a0==1))&&(a11==1))&&(a22==1)))&&(a19==3))))&&(a29==9))))&&!(a25==1))){ + a11 = 0; + a24 = 0; + a25 = 1; + a14 = 9; + a0 = 1; + return 23; + } else if(((((a25==1)&&(((a28==1)&&((((((input==6)&&(((a19==5)&&(a29==5))||(((a19==4)&&(a29==8))||((a19==4)&&(a29==9)))))&&(a22==1))&&(a0==1))&&!(a7==1))&&!(a20==1)))&&(a14==9)))&&(a24==1))&&(a11==1))){ + a14 = 8; + a24 = 0; + a19 = 3; + a11 = 0; + a29 = 9; + a25 = 0; + return 21; + } else if((((a20==1)&&((!(a7==1)&&(!(a24==1)&&(((((a22==1)&&(!(a0==1)&&((input==5)&&(a28==1))))&&(a14==8))&&(a25==1))&&(a11==1))))&&(a29==6)))&&(a19==5))){ + a19 = 3; + a11 = 0; + a0 = 1; + a25 = 0; + a20 = 0; + a29 = 8; + return 21; + } else if((((a14==8)&&((((!(a24==1)&&((a7==1)&&(((a11==1)&&(((input==5)&&(a19==1))&&!(a20==1)))&&!(a0==1))))&&(a29==6))&&(a22==1))&&!(a25==1)))&&(a28==1))){ + a24 = 1; + a25 = 1; + a29 = 9; + a20 = 1; + return 23; + } else if((!(a25==1)&&(((a28==1)&&((a22==1)&&(((a20==1)&&(((a11==1)&&(!(a7==1)&&((a19==2)&&((((a29==5)||(a29==6))||(a29==7))&&(input==3)))))&&!(a0==1)))&&(a24==1))))&&(a14==9)))){ + a29 = 5; + a24 = 0; + a19 = 3; + a0 = 1; + a11 = 0; + a25 = 1; + a7 = 1; + return 24; + } else if(((a14==8)&&((a28==1)&&((a22==1)&&(!(a24==1)&&(((((((((a29==9)&&(!(a25==1)&&(a7==1)))&&(a19==5))||(((a29==5)&&((a25==1)&&!(a7==1)))&&(a19==1)))||(((a29==6)&&((a25==1)&&!(a7==1)))&&(a19==1)))&&(input==3))&&(a0==1))&&!(a20==1))&&(a11==1))))))){ + a11 = 0; + a7 = 1; + a20 = 1; + a25 = 1; + a29 = 9; + a19 = 4; + a0 = 0; + a24 = 1; + return 24; + } else if((((a14==9)&&((a29==7)&&((((!(a7==1)&&(((a19==2)&&(!(a25==1)&&((a20==1)&&(input==5))))&&(a22==1)))&&(a24==1))&&!(a11==1))&&!(a0==1))))&&(a28==1))){ + a14 = 8; + a29 = 5; + a19 = 1; + a11 = 1; + a25 = 1; + a7 = 1; + a0 = 1; + return -1; + } else if(((!(a0==1)&&(((a14==8)&&((((((a28==1)&&(!(a20==1)&&(((a29==6)||(a29==7))&&(input==5))))&&(a22==1))&&(a7==1))&&(a19==5))&&!(a11==1)))&&(a24==1)))&&!(a25==1))){ + a25 = 1; + a20 = 1; + a29 = 8; + return 23; + } else if(((!(a25==1)&&((((a14==9)&&(((a7==1)&&((a19==2)&&((a28==1)&&((a22==1)&&((input==3)&&((a29==8)||(a29==9)))))))&&!(a20==1)))&&(a11==1))&&(a0==1)))&&!(a24==1))){ + a14 = 8; + a25 = 1; + a0 = 0; + a20 = 1; + a7 = 0; + a24 = 1; + a29 = 6; + return 24; + } else if((!(a0==1)&&((((a11==1)&&((a28==1)&&((a25==1)&&((a19==3)&&((((a24==1)&&(((a29==8)||(a29==9))&&(input==6)))&&!(a20==1))&&(a14==8))))))&&(a22==1))&&!(a7==1)))){ + a7 = 1; + a29 = 8; + return -1; + } else if((((((((a7==1)&&((a20==1)&&((a14==9)&&((a25==1)&&((a22==1)&&((input==3)&&(a28==1)))))))&&(a24==1))&&(a0==1))&&(a29==9))&&!(a11==1))&&(a19==3))){ + a29 = 6; + a11 = 1; + a0 = 0; + a19 = 1; + a20 = 0; + a25 = 0; + a14 = 8; + return 24; + } else if(((((a25==1)&&(!(a7==1)&&((a14==9)&&((a20==1)&&((a22==1)&&(!(a11==1)&&((a24==1)&&((((a19==4)&&(a29==5))||(((a29==8)&&(a19==3))||((a19==3)&&(a29==9))))&&(input==4)))))))))&&(a28==1))&&(a0==1))){ + a25 = 0; + a24 = 0; + a19 = 4; + a29 = 9; + a11 = 1; + a14 = 8; + a0 = 0; + return 24; + } else if(((a29==8)&&((!(a25==1)&&((a22==1)&&(!(a24==1)&&((((a28==1)&&((((a14==9)&&(input==5))&&!(a7==1))&&!(a0==1)))&&!(a11==1))&&(a19==1)))))&&!(a20==1)))){ + a19 = 3; + a7 = 1; + a20 = 1; + a0 = 1; + a11 = 1; + return 23; + } else if((((a19==1)&&((((a14==8)&&((((a28==1)&&(((a24==1)&&((input==1)&&(a25==1)))&&(a22==1)))&&(a29==6))&&!(a11==1)))&&!(a7==1))&&!(a20==1)))&&!(a0==1))){ + a7 = 1; + a11 = 1; + a0 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if(((((a7==1)&&(!(a20==1)&&((!(a11==1)&&((((a29==7)&&(((input==4)&&!(a24==1))&&!(a25==1)))&&(a19==3))&&(a28==1)))&&(a0==1))))&&(a14==9))&&(a22==1))){ + a19 = 5; + a14 = 8; + a29 = 9; + return 24; + } else if((!(a11==1)&&(((((!(a20==1)&&((a28==1)&&(!(a24==1)&&(((a14==8)&&((input==1)&&!(a25==1)))&&!(a7==1)))))&&!(a0==1))&&(a22==1))&&(a19==5))&&(a29==8)))){ + a25 = 1; + a0 = 1; + return 24; + } else if((!(a0==1)&&((!(a20==1)&&((((((!(a25==1)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==2))&&!(a24==1)))&&(a14==9))&&(a11==1))&&(a28==1))&&!(a7==1))&&(a22==1)))&&(a19==1)))){ + a0 = 1; + a20 = 1; + a24 = 1; + a25 = 1; + a14 = 8; + a29 = 5; + a7 = 1; + return -1; + } else if(((((a0==1)&&(!(a20==1)&&(!(a24==1)&&(((((((a19==5)&&((a29==9)&&((a7==1)&&!(a25==1))))||((a19==1)&&((a29==5)&&(!(a7==1)&&(a25==1)))))||(((!(a7==1)&&(a25==1))&&(a29==6))&&(a19==1)))&&(input==4))&&(a11==1))&&(a22==1)))))&&(a28==1))&&(a14==8))){ + a7 = 1; + a25 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if(((a0==1)&&(((!(a24==1)&&((a22==1)&&((((((a25==1)&&((input==4)&&((a29==7)||((a29==5)||(a29==6)))))&&(a20==1))&&(a28==1))&&!(a7==1))&&(a19==5))))&&(a14==8))&&(a11==1)))){ + a24 = 1; + a19 = 3; + a29 = 9; + a7 = 1; + a0 = 0; + return 23; + } else if(((!(a7==1)&&((!(a25==1)&&(((a24==1)&&(!(a20==1)&&((!(a11==1)&&(((input==5)&&((a29==9)||((a29==7)||(a29==8))))&&(a14==9)))&&(a0==1))))&&(a22==1)))&&(a19==1)))&&(a28==1))){ + a25 = 1; + a11 = 1; + a7 = 1; + a29 = 5; + a20 = 1; + a14 = 8; + return -1; + } else if(((!(a7==1)&&((((a19==4)&&(((a25==1)&&((a14==8)&&((!(a0==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==6)))&&(a28==1))))&&(a11==1)))&&!(a20==1))&&!(a24==1)))&&(a22==1))){ + a20 = 1; + a29 = 5; + a0 = 1; + a19 = 1; + a7 = 1; + a24 = 1; + return -1; + } else if(((a24==1)&&((a14==10)&&((a7==1)&&((((a22==1)&&((a11==1)&&((((((a29==6)||(a29==7))&&(input==2))&&(a0==1))&&(a28==1))&&(a19==2))))&&!(a25==1))&&(a20==1)))))){ + a29 = 7; + a25 = 1; + a14 = 9; + a20 = 0; + a19 = 3; + return 24; + } else if(((a14==8)&&((a7==1)&&((a11==1)&&(((!(a25==1)&&((a19==3)&&((!(a24==1)&&(((input==6)&&((a29==8)||(a29==9)))&&(a28==1)))&&(a20==1))))&&!(a0==1))&&(a22==1)))))){ + a24 = 1; + a19 = 1; + a29 = 5; + a0 = 1; + a25 = 1; + return -1; + } else if((((a0==1)&&(((a14==10)&&(((a20==1)&&((((a28==1)&&((a24==1)&&(((a29==8)||(a29==9))&&(input==3))))&&(a19==3))&&(a7==1)))&&!(a25==1)))&&(a11==1)))&&(a22==1))){ + a0 = 0; + a19 = 2; + a14 = 8; + a29 = 8; + a7 = 0; + a24 = 0; + a25 = 1; + a11 = 0; + return 21; + } else if(((!(a24==1)&&(!(a11==1)&&(((((input==1)&&((((a29==5)&&((a25==1)&&(!(a20==1)&&(a7==1))))&&(a19==1))||(((a19==5)&&((a29==8)&&(!(a25==1)&&((a20==1)&&!(a7==1)))))||((a19==5)&&((a29==9)&&(!(a25==1)&&(!(a7==1)&&(a20==1))))))))&&(a22==1))&&!(a0==1))&&(a28==1))))&&(a14==8))){ + a29 = 5; + a24 = 1; + a20 = 0; + a25 = 1; + a19 = 2; + a7 = 1; + return 23; + } else if((((a20==1)&&((!(a0==1)&&(!(a25==1)&&(((a22==1)&&(!(a11==1)&&(((a29==6)&&((input==3)&&(a14==9)))&&(a19==5))))&&(a28==1))))&&(a24==1)))&&(a7==1))){ + a14 = 8; + a19 = 1; + a11 = 1; + a0 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if(((a0==1)&&(((a25==1)&&((a19==5)&&((a28==1)&&((a11==1)&&(!(a20==1)&&(!(a24==1)&&(((a14==8)&&(((a29==7)||(a29==8))&&(input==3)))&&!(a7==1))))))))&&(a22==1)))){ + a24 = 1; + a29 = 5; + a25 = 0; + a0 = 0; + a20 = 1; + a19 = 3; + a7 = 1; + return 21; + } else if(((((a11==1)&&(((a0==1)&&((((a7==1)&&((!(a20==1)&&((a14==8)&&(input==4)))&&(a19==2)))&&(a29==5))&&(a25==1)))&&(a24==1)))&&(a22==1))&&(a28==1))){ + a7 = 0; + a20 = 1; + a24 = 0; + a29 = 9; + a19 = 4; + return 24; + } else if(((a25==1)&&((a7==1)&&((a0==1)&&(((a19==3)&&(!(a24==1)&&(((((a11==1)&&((input==5)&&((a29==7)||(a29==8))))&&(a22==1))&&(a14==8))&&!(a20==1))))&&(a28==1)))))){ + a25 = 0; + a0 = 0; + a19 = 1; + a29 = 6; + return 23; + } else if((!(a0==1)&&(!(a24==1)&&(((!(a20==1)&&((a11==1)&&((((a22==1)&&(((a28==1)&&(input==6))&&(a25==1)))&&(a14==9))&&(a19==3))))&&(a29==8))&&!(a7==1))))){ + a14 = 8; + a29 = 6; + a11 = 0; + a24 = 1; + a20 = 1; + a25 = 0; + a19 = 2; + return 24; + } else if(((a0==1)&&((((a19==5)&&((a7==1)&&(!(a11==1)&&((((((input==2)&&((a29==7)||(a29==8)))&&(a20==1))&&(a14==8))&&(a22==1))&&(a28==1)))))&&(a25==1))&&!(a24==1)))){ + a24 = 1; + a0 = 0; + a7 = 0; + a29 = 8; + a11 = 1; + return 24; + } else if(((a11==1)&&(((((((a14==9)&&(!(a20==1)&&((a0==1)&&(((((a19==2)&&(a29==8))||((a29==9)&&(a19==2)))||((a29==5)&&(a19==3)))&&(input==2)))))&&(a22==1))&&(a25==1))&&!(a24==1))&&(a7==1))&&(a28==1)))){ + a25 = 0; + a0 = 0; + a14 = 8; + a24 = 1; + a19 = 3; + a29 = 5; + return 24; + } else if((!(a0==1)&&(((a19==4)&&(((((a24==1)&&(((!(a25==1)&&((input==5)&&(a22==1)))&&(a7==1))&&(a29==6)))&&!(a20==1))&&(a14==9))&&(a11==1)))&&(a28==1)))){ + a7 = 0; + a19 = 3; + a20 = 1; + a14 = 8; + a25 = 1; + return 24; + } else if(((a25==1)&&((!(a20==1)&&((((((a29==5)&&((a11==1)&&(((input==1)&&(a22==1))&&(a7==1))))&&(a19==2))&&(a24==1))&&!(a0==1))&&(a14==9)))&&(a28==1)))){ + a29 = 7; + a20 = 1; + a14 = 8; + return 23; + } else if(((a29==9)&&(((a25==1)&&((((a11==1)&&((((a0==1)&&((a20==1)&&((a28==1)&&(input==1))))&&(a22==1))&&(a19==3)))&&!(a24==1))&&(a14==9)))&&(a7==1)))){ + a24 = 1; + a19 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if((!(a7==1)&&(((a28==1)&&((a0==1)&&(!(a11==1)&&(((a25==1)&&(((!(a24==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==4)))&&(a22==1))&&(a14==9)))&&(a20==1)))))&&(a19==5)))){ + a7 = 1; + a11 = 1; + a24 = 1; + a14 = 8; + a19 = 1; + a29 = 5; + return -1; + } else if(((a22==1)&&((a11==1)&&(((a29==7)&&((a20==1)&&(!(a25==1)&&((((a28==1)&&(((input==4)&&(a24==1))&&(a7==1)))&&(a14==8))&&(a19==3)))))&&!(a0==1))))){ + a25 = 1; + a19 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if((((a19==2)&&(((((((((a28==1)&&((input==5)&&((a29==9)||((a29==7)||(a29==8)))))&&!(a20==1))&&(a25==1))&&(a14==9))&&!(a11==1))&&!(a24==1))&&!(a7==1))&&(a22==1)))&&(a0==1))){ + a19 = 3; + a24 = 1; + a20 = 1; + a25 = 0; + a7 = 1; + a29 = 7; + a11 = 1; + return 21; + } else if((!(a24==1)&&((((((!(a7==1)&&((a22==1)&&((a14==9)&&(((((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))||((a19==2)&&(a29==6)))&&(input==6)))))&&(a25==1))&&!(a20==1))&&!(a0==1))&&(a28==1))&&!(a11==1)))){ + a19 = 1; + a14 = 8; + a20 = 1; + a24 = 1; + a29 = 6; + a7 = 1; + a25 = 0; + return -1; + } else if((!(a24==1)&&((a0==1)&&((a22==1)&&(((a20==1)&&((a28==1)&&((a7==1)&&(((input==1)&&((((a29==6)&&!(a25==1))&&(a19==1))||((((a25==1)&&(a29==9))&&(a19==5))||((a19==1)&&(!(a25==1)&&(a29==5))))))&&!(a11==1)))))&&(a14==9)))))){ + a20 = 0; + a25 = 1; + a29 = 8; + a19 = 5; + a7 = 0; + a14 = 8; + return 23; + } else if(((a14==8)&&(((a22==1)&&(((((a11==1)&&((((input==2)&&(((a29==9)&&(a19==3))||((a19==4)&&(a29==5))))&&(a24==1))&&(a20==1)))&&!(a0==1))&&!(a7==1))&&(a25==1)))&&(a28==1)))){ + a19 = 1; + a29 = 5; + a7 = 1; + a0 = 1; + return -1; + } else if((((a22==1)&&(((a0==1)&&((a29==6)&&(((a25==1)&&((((a24==1)&&((a19==3)&&(input==1)))&&(a14==9))&&(a28==1)))&&!(a7==1))))&&(a20==1)))&&(a11==1))){ + a7 = 1; + a14 = 8; + a19 = 2; + a29 = 7; + a0 = 0; + return 23; + } else if(((((a19==5)&&((a25==1)&&((((a14==8)&&(!(a0==1)&&((!(a20==1)&&((input==1)&&((a29==6)||(a29==7))))&&(a22==1))))&&(a28==1))&&!(a7==1))))&&!(a11==1))&&(a24==1))){ + a19 = 3; + a25 = 0; + a11 = 1; + a14 = 9; + a29 = 8; + a24 = 0; + return 24; + } else if(((a11==1)&&(!(a20==1)&&(!(a25==1)&&(((a22==1)&&(!(a7==1)&&(!(a24==1)&&((((a14==8)&&((input==4)&&((a29==6)||(a29==7))))&&(a28==1))&&!(a0==1)))))&&(a19==1)))))){ + a24 = 1; + a20 = 1; + a0 = 1; + a14 = 9; + a29 = 7; + a11 = 0; + a19 = 5; + return 23; + } else if(((a22==1)&&((a14==9)&&((a28==1)&&((a24==1)&&((a11==1)&&(((a0==1)&&((a20==1)&&(!(a7==1)&&(!(a25==1)&&((input==6)&&((a29==8)||((a29==6)||(a29==7))))))))&&(a19==4)))))))){ + a29 = 6; + a24 = 0; + a0 = 0; + a19 = 3; + a14 = 8; + a7 = 1; + a11 = 0; + a25 = 1; + return 21; + } else if((((a19==5)&&((a28==1)&&(!(a24==1)&&(((((!(a25==1)&&(!(a7==1)&&((input==4)&&!(a11==1))))&&!(a20==1))&&(a29==9))&&!(a0==1))&&(a14==9)))))&&(a22==1))){ + a29 = 8; + a11 = 1; + a0 = 1; + a24 = 1; + a19 = 2; + return 24; + } else if(((a25==1)&&(((a19==1)&&(!(a7==1)&&(((a14==9)&&((a24==1)&&((((((a29==5)||(a29==6))&&(input==4))&&(a0==1))&&(a20==1))&&(a28==1))))&&!(a11==1))))&&(a22==1)))){ + a24 = 0; + a20 = 0; + a29 = 6; + a11 = 1; + return -1; + } else if(((((a20==1)&&((a22==1)&&(((a19==2)&&((a7==1)&&(((a14==9)&&(((input==3)&&((a29==7)||(a29==8)))&&(a28==1)))&&!(a0==1))))&&!(a24==1))))&&(a25==1))&&!(a11==1))){ + a29 = 8; + a7 = 0; + a25 = 0; + a19 = 4; + a14 = 8; + return -1; + } else if(((a25==1)&&((a11==1)&&((((((a7==1)&&((a14==10)&&((a0==1)&&((a24==1)&&((input==1)&&((a29==5)||(a29==6)))))))&&(a28==1))&&(a22==1))&&(a20==1))&&(a19==1))))){ + a25 = 0; + a0 = 0; + a14 = 8; + a19 = 3; + a29 = 9; + a7 = 0; + return 24; + } else if((!(a11==1)&&(((a25==1)&&((((!(a0==1)&&((a14==8)&&((a20==1)&&((input==4)&&(((a29==5)&&(a19==4))||(((a19==3)&&(a29==8))||((a19==3)&&(a29==9))))))))&&(a28==1))&&(a22==1))&&(a7==1)))&&(a24==1)))){ + a29 = 8; + a7 = 0; + a20 = 0; + a25 = 0; + a19 = 5; + a11 = 1; + return 24; + } else if((!(a25==1)&&(((a28==1)&&(((a14==8)&&(((((((input==2)&&(a22==1))&&(a19==2))&&!(a0==1))&&(a29==7))&&!(a20==1))&&(a24==1)))&&!(a7==1)))&&(a11==1)))){ + a19 = 1; + a29 = 5; + a0 = 1; + a7 = 1; + a20 = 1; + a25 = 1; + return -1; + } else if((((((a0==1)&&((a25==1)&&(((((!(a7==1)&&((input==5)&&((a29==5)||(a29==6))))&&(a14==9))&&!(a24==1))&&(a20==1))&&!(a11==1))))&&(a28==1))&&(a22==1))&&(a19==2))){ + a29 = 9; + a24 = 1; + a19 = 3; + a20 = 0; + a7 = 1; + return 24; + } else if((((!(a0==1)&&(((((((a25==1)&&(((input==4)&&(((a29==5)||(a29==6))||(a29==7)))&&(a28==1)))&&(a22==1))&&!(a24==1))&&(a19==3))&&(a14==8))&&(a7==1)))&&!(a11==1))&&!(a20==1))){ + a14 = 9; + a29 = 9; + a19 = 2; + a24 = 1; + a25 = 0; + return 21; + } else if((((a28==1)&&(((!(a20==1)&&((a25==1)&&((((a19==4)&&(!(a11==1)&&((a24==1)&&(input==2))))&&!(a0==1))&&(a22==1))))&&(a29==7))&&!(a7==1)))&&(a14==9))){ + a7 = 1; + a20 = 1; + a19 = 1; + a0 = 1; + a11 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if(((a0==1)&&(((!(a11==1)&&((a14==9)&&(((((a19==1)&&((a22==1)&&((input==1)&&((a29==8)||(a29==9)))))&&!(a24==1))&&!(a7==1))&&(a25==1))))&&(a20==1))&&(a28==1)))){ + a11 = 1; + a7 = 1; + a14 = 8; + a29 = 5; + a24 = 1; + return -1; + } else if(((!(a11==1)&&(((a7==1)&&(((a14==9)&&((((a0==1)&&((input==5)&&(((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))))&&(a24==1))&&(a28==1)))&&!(a20==1)))&&(a22==1)))&&!(a25==1))){ + a20 = 1; + a14 = 8; + a25 = 1; + a29 = 5; + a11 = 1; + a19 = 1; + return -1; + } else if(((((a24==1)&&((((a22==1)&&(!(a20==1)&&((a14==8)&&(((a28==1)&&((input==5)&&((a29==5)||(a29==6))))&&(a7==1)))))&&(a0==1))&&(a19==1)))&&(a25==1))&&!(a11==1))){ + a7 = 0; + a24 = 0; + a19 = 2; + a0 = 0; + a29 = 9; + return 23; + } else if((!(a24==1)&&(((((((a28==1)&&((input==3)&&(((((a25==1)&&!(a7==1))&&(a29==5))&&(a19==1))||(((a19==5)&&((!(a25==1)&&(a7==1))&&(a29==8)))||((a19==5)&&(((a7==1)&&!(a25==1))&&(a29==9)))))))&&!(a20==1))&&(a11==1))&&!(a0==1))&&(a14==9))&&(a22==1)))){ + a19 = 2; + a14 = 8; + a11 = 0; + a0 = 1; + a29 = 6; + a25 = 1; + a7 = 0; + return 21; + } else if((!(a0==1)&&((a19==1)&&(!(a25==1)&&((a7==1)&&(((a14==9)&&(((a22==1)&&((a11==1)&&((a28==1)&&(((a29==5)||(a29==6))&&(input==6)))))&&(a24==1)))&&!(a20==1))))))){ + a25 = 1; + a29 = 5; + a0 = 1; + a14 = 8; + a20 = 1; + return -1; + } else if(((((a14==9)&&((((a28==1)&&(!(a20==1)&&(((input==2)&&(((a19==1)&&((a29==6)&&!(a25==1)))||(((a19==5)&&((a25==1)&&(a29==9)))||((!(a25==1)&&(a29==5))&&(a19==1)))))&&!(a0==1))))&&!(a24==1))&&(a7==1)))&&(a11==1))&&(a22==1))){ + a14 = 8; + a24 = 1; + a19 = 3; + a7 = 0; + a29 = 6; + a25 = 0; + return 23; + } else if((((((a20==1)&&(((a25==1)&&(!(a24==1)&&(!(a11==1)&&(((a19==3)&&((input==5)&&(((a29==6)||(a29==7))||(a29==8))))&&(a7==1)))))&&(a14==8)))&&(a22==1))&&(a28==1))&&(a0==1))){ + a14 = 9; + a29 = 6; + a11 = 1; + a19 = 2; + a25 = 0; + return 23; + } else if(((((a22==1)&&((a24==1)&&(((a20==1)&&(((a0==1)&&((a29==5)&&((a19==3)&&((input==2)&&(a25==1)))))&&(a28==1)))&&!(a7==1))))&&(a11==1))&&(a14==9))){ + a0 = 0; + a25 = 0; + a24 = 0; + a29 = 7; + a14 = 8; + a19 = 4; + return -1; + } else if((((a20==1)&&(((a14==8)&&((a7==1)&&((((((((a19==3)&&(a29==6))||(((a29==9)&&(a19==2))||((a29==5)&&(a19==3))))&&(input==4))&&(a24==1))&&(a22==1))&&(a11==1))&&(a28==1))))&&!(a25==1)))&&!(a0==1))){ + a19 = 2; + a20 = 0; + a24 = 0; + a11 = 0; + a25 = 1; + a29 = 7; + a0 = 1; + a7 = 0; + return -1; + } else if(((((a22==1)&&((a24==1)&&(((!(a0==1)&&((a25==1)&&((a28==1)&&((a19==5)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==4))))))&&(a11==1))&&!(a20==1))))&&(a14==8))&&(a7==1))){ + a29 = 6; + a11 = 0; + a0 = 1; + a19 = 2; + a14 = 9; + a24 = 0; + return 23; + } else if(((((a14==9)&&(((a28==1)&&((a25==1)&&(((((input==6)&&((((a19==4)&&(a29==8))||((a29==9)&&(a19==4)))||((a19==5)&&(a29==5))))&&(a7==1))&&!(a0==1))&&!(a11==1))))&&(a24==1)))&&!(a20==1))&&(a22==1))){ + a24 = 0; + a19 = 5; + a0 = 1; + a29 = 9; + a11 = 1; + return 21; + } else if(((a29==9)&&((a20==1)&&(((((a24==1)&&(!(a0==1)&&(((!(a25==1)&&((input==3)&&(a14==8)))&&(a28==1))&&(a22==1))))&&!(a7==1))&&!(a11==1))&&(a19==3))))){ + a0 = 1; + a11 = 1; + a19 = 1; + a7 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if((((((a22==1)&&((a0==1)&&(!(a25==1)&&(((a14==9)&&((a24==1)&&((((a29==7)||(a29==8))&&(input==2))&&(a19==1))))&&(a20==1)))))&&(a11==1))&&(a28==1))&&(a7==1))){ + a25 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if((((a22==1)&&(!(a20==1)&&(!(a0==1)&&(((!(a24==1)&&((((a19==5)&&(!(a11==1)&&(input==1)))&&(a28==1))&&!(a7==1)))&&(a25==1))&&(a14==8)))))&&(a29==8))){ + a24 = 1; + a29 = 9; + a7 = 1; + a20 = 1; + a11 = 1; + a19 = 4; + a25 = 0; + return -1; + } else if(((((a14==9)&&((!(a25==1)&&(((!(a20==1)&&((((((a29==8)&&(a19==1))||((a29==9)&&(a19==1)))||((a29==5)&&(a19==2)))&&(input==2))&&(a0==1)))&&(a22==1))&&!(a24==1)))&&!(a11==1)))&&!(a7==1))&&(a28==1))){ + a14 = 8; + a19 = 3; + a24 = 1; + a25 = 1; + a11 = 1; + a0 = 0; + a29 = 6; + return 24; + } else if((((a22==1)&&((a19==4)&&((((!(a11==1)&&((!(a0==1)&&((a28==1)&&((input==4)&&((a29==9)||((a29==7)||(a29==8))))))&&!(a7==1)))&&!(a24==1))&&(a25==1))&&(a14==8))))&&!(a20==1))){ + a0 = 1; + a20 = 1; + a29 = 5; + a24 = 1; + a19 = 1; + a7 = 1; + a11 = 1; + return -1; + } else if(((a14==9)&&((a28==1)&&(((((a24==1)&&((a22==1)&&((a0==1)&&((a20==1)&&((((a29==5)&&(a19==4))||(((a29==8)&&(a19==3))||((a29==9)&&(a19==3))))&&(input==6))))))&&(a25==1))&&!(a7==1))&&!(a11==1))))){ + a29 = 7; + a7 = 1; + a20 = 0; + a0 = 0; + a19 = 2; + a14 = 8; + return -1; + } else if((!(a0==1)&&(((a19==4)&&((a7==1)&&((a14==9)&&((a28==1)&&(((a24==1)&&(((a22==1)&&((input==3)&&((a29==5)||(a29==6))))&&(a25==1)))&&(a11==1))))))&&(a20==1)))){ + a19 = 3; + a7 = 0; + a20 = 0; + a29 = 5; + a14 = 8; + return 21; + } else if(((((!(a24==1)&&(((a22==1)&&(((a28==1)&&(!(a25==1)&&((a14==9)&&((input==3)&&((a29==5)||(a29==6))))))&&(a20==1)))&&!(a0==1)))&&(a7==1))&&(a11==1))&&(a19==5))){ + a20 = 0; + a11 = 0; + a25 = 1; + a19 = 4; + a29 = 6; + a0 = 1; + a7 = 0; + return -1; + } else if(((((a20==1)&&((((a0==1)&&(((a24==1)&&((a11==1)&&(((input==3)&&((a29==5)||(a29==6)))&&(a14==10))))&&!(a25==1)))&&(a22==1))&&(a19==5)))&&(a7==1))&&(a28==1))){ + a29 = 9; + a19 = 1; + a7 = 0; + a14 = 8; + a24 = 0; + a0 = 0; + return 23; + } return calculate_output30(input); + } + + int calculate_output30(int input) { + if(((a7==1)&&((a0==1)&&(((((a11==1)&&((a22==1)&&((a19==4)&&((a28==1)&&((a24==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==1)))))))&&(a25==1))&&!(a20==1))&&(a14==8))))){ + a29 = 9; + a19 = 2; + a24 = 0; + return 21; + } else if((!(a20==1)&&(((a7==1)&&(!(a0==1)&&(((!(a25==1)&&((((a14==9)&&((input==3)&&((a29==6)||(a29==7))))&&(a28==1))&&(a19==1)))&&!(a24==1))&&(a22==1))))&&!(a11==1)))){ + a0 = 1; + a7 = 0; + a29 = 8; + a14 = 8; + return 21; + } else if((!(a0==1)&&(((a22==1)&&((a28==1)&&((a14==8)&&((((((((a29==6)||(a29==7))&&(input==5))&&!(a25==1))&&(a19==1))&&!(a7==1))&&!(a20==1))&&(a11==1)))))&&!(a24==1)))){ + a20 = 1; + a29 = 5; + a0 = 1; + a25 = 1; + a24 = 1; + a19 = 4; + return 23; + } else if((((((((((a28==1)&&((((input==5)&&(a7==1))&&(a25==1))&&(a11==1)))&&!(a24==1))&&(a19==3))&&(a14==9))&&(a29==9))&&(a22==1))&&(a0==1))&&(a20==1))){ + a29 = 5; + a24 = 1; + a14 = 8; + a19 = 1; + return -1; + } else if(((a22==1)&&(((((a14==8)&&((a24==1)&&((a28==1)&&(((((a0==1)&&(input==2))&&(a25==1))&&(a19==4))&&!(a20==1)))))&&(a29==9))&&!(a7==1))&&!(a11==1)))){ + a7 = 1; + a25 = 0; + a11 = 1; + a14 = 9; + a29 = 8; + return 23; + } else if(((a11==1)&&((((a28==1)&&(!(a25==1)&&(!(a24==1)&&((a22==1)&&((((a19==5)&&((input==5)&&((a29==5)||(a29==6))))&&!(a7==1))&&(a14==9))))))&&(a20==1))&&!(a0==1)))){ + a20 = 0; + a14 = 8; + a19 = 4; + a29 = 9; + return 24; + } else if((!(a11==1)&&((((((((a28==1)&&((a20==1)&&((((a29==5)||(a29==6))&&(input==1))&&(a7==1))))&&(a24==1))&&(a14==9))&&(a22==1))&&(a19==4))&&(a0==1))&&!(a25==1)))){ + a14 = 8; + a0 = 0; + a20 = 0; + a29 = 5; + return 24; + } else if((((a25==1)&&((a0==1)&&((a19==2)&&((a22==1)&&((a28==1)&&((a11==1)&&(((((input==2)&&(((a29==5)||(a29==6))||(a29==7)))&&(a24==1))&&(a20==1))&&(a14==10))))))))&&(a7==1))){ + a20 = 0; + a7 = 0; + a0 = 0; + a14 = 8; + a29 = 7; + a25 = 0; + return 21; + } else if(((a20==1)&&((((a14==8)&&((a19==2)&&(((((a22==1)&&(((a7==1)&&(input==4))&&(a29==7)))&&(a28==1))&&!(a24==1))&&(a0==1))))&&(a25==1))&&!(a11==1)))){ + a20 = 0; + a19 = 4; + a7 = 0; + a11 = 1; + a24 = 1; + a29 = 6; + a0 = 0; + return 24; + } else if(((a7==1)&&(((((a22==1)&&((a28==1)&&((a0==1)&&(!(a24==1)&&((a25==1)&&(((input==1)&&((a29==6)||(a29==7)))&&(a20==1)))))))&&(a14==10))&&(a19==1))&&(a11==1)))){ + a20 = 0; + a14 = 9; + a19 = 3; + a29 = 6; + return 24; + } else if(((((((a22==1)&&(!(a7==1)&&(((!(a0==1)&&((input==6)&&(((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))))&&!(a11==1))&&(a14==9))))&&(a24==1))&&(a20==1))&&(a25==1))&&(a28==1))){ + a20 = 0; + a29 = 9; + a11 = 1; + a24 = 0; + a19 = 4; + return -1; + } else if(((((((((((a22==1)&&((input==4)&&(((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))))&&(a7==1))&&(a14==10))&&(a28==1))&&!(a20==1))&&(a11==1))&&!(a25==1))&&(a0==1))&&(a24==1))){ + a14 = 9; + a20 = 1; + a29 = 5; + a19 = 3; + a25 = 1; + a11 = 0; + a7 = 0; + return 21; + } else if(((a24==1)&&(((a28==1)&&(!(a25==1)&&((a14==8)&&((a0==1)&&(((a19==4)&&(((!(a20==1)&&(input==2))&&(a29==6))&&(a22==1)))&&!(a11==1))))))&&!(a7==1)))){ + a11 = 1; + a19 = 3; + a14 = 9; + return 21; + } else if(((a28==1)&&((((a29==6)&&((a0==1)&&((((a24==1)&&((!(a7==1)&&(!(a11==1)&&(input==5)))&&(a20==1)))&&(a22==1))&&(a14==8))))&&!(a25==1))&&(a19==4)))){ + a29 = 8; + a20 = 0; + a19 = 3; + a0 = 0; + a7 = 1; + a24 = 0; + return 21; + } else if(((a22==1)&&(((a14==9)&&((a11==1)&&((!(a24==1)&&((a25==1)&&(!(a7==1)&&((!(a20==1)&&((input==4)&&((a29==9)||((a29==7)||(a29==8)))))&&(a0==1)))))&&(a28==1))))&&(a19==1)))){ + a0 = 0; + a29 = 5; + a24 = 1; + a14 = 8; + a25 = 0; + a19 = 2; + return -1; + } else if((((a14==9)&&((!(a24==1)&&(!(a11==1)&&((!(a25==1)&&((a0==1)&&(((a28==1)&&((input==4)&&((a29==5)||(a29==6))))&&(a22==1))))&&(a19==2))))&&(a7==1)))&&(a20==1))){ + a20 = 0; + a29 = 6; + a11 = 1; + a19 = 5; + a25 = 1; + a7 = 0; + return -1; + } else if(((!(a20==1)&&((a14==8)&&((a19==4)&&((a24==1)&&((((a28==1)&&(((a29==5)&&((input==3)&&(a7==1)))&&(a25==1)))&&(a0==1))&&!(a11==1))))))&&(a22==1))){ + a29 = 8; + a7 = 0; + a19 = 5; + a0 = 0; + a25 = 0; + a24 = 0; + return 24; + } else if(((!(a24==1)&&(((!(a20==1)&&((((!(a7==1)&&((((a29==8)||(a29==9))&&(input==2))&&(a28==1)))&&!(a25==1))&&!(a11==1))&&(a22==1)))&&(a19==4))&&(a14==9)))&&!(a0==1))){ + a7 = 1; + a20 = 1; + a19 = 3; + a0 = 1; + a29 = 6; + a11 = 1; + a24 = 1; + return 24; + } else if(((a14==9)&&((!(a25==1)&&((((a28==1)&&(((a22==1)&&(((((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))&&(input==4))&&!(a20==1)))&&(a0==1)))&&(a24==1))&&!(a7==1)))&&!(a11==1)))){ + a20 = 1; + a11 = 1; + a19 = 1; + a7 = 1; + a25 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if((((!(a0==1)&&((a28==1)&&((a19==1)&&(!(a25==1)&&((((((input==5)&&((a29==5)||(a29==6)))&&(a24==1))&&(a20==1))&&!(a7==1))&&(a14==8))))))&&(a11==1))&&(a22==1))){ + a19 = 5; + a0 = 1; + a29 = 7; + return -1; + } else if(((!(a25==1)&&((((a11==1)&&((((a0==1)&&(((((a29==7)||(a29==8))&&(input==1))&&(a22==1))&&(a24==1)))&&(a19==1))&&(a28==1)))&&(a20==1))&&(a14==9)))&&(a7==1))){ + a25 = 1; + a29 = 7; + a14 = 8; + a0 = 0; + a19 = 4; + return 24; + } else if((((a24==1)&&((a0==1)&&((((!(a25==1)&&((a14==9)&&(((input==1)&&(((a29==6)&&(a19==5))||(((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))))&&(a22==1))))&&!(a7==1))&&(a20==1))&&(a11==1))))&&(a28==1))){ + a14 = 8; + a25 = 1; + a7 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((((a28==1)&&(((!(a7==1)&&(((a14==9)&&(!(a24==1)&&(!(a0==1)&&((input==6)&&(a25==1)))))&&(a22==1)))&&(a29==7))&&(a20==1)))&&!(a11==1))&&(a19==1))){ + a24 = 1; + a7 = 1; + a0 = 1; + return 24; + } else if(((a14==8)&&((a28==1)&&(((!(a11==1)&&(((!(a24==1)&&(!(a7==1)&&(((((a19==4)&&(a29==8))||((a29==9)&&(a19==4)))||((a19==5)&&(a29==5)))&&(input==5))))&&!(a20==1))&&!(a25==1)))&&!(a0==1))&&(a22==1))))){ + a24 = 1; + a25 = 1; + a19 = 3; + a11 = 1; + a29 = 7; + return -1; + } else if((!(a0==1)&&(((((((a19==5)&&(((!(a7==1)&&(((a29==5)||(a29==6))&&(input==2)))&&(a28==1))&&(a14==9)))&&(a20==1))&&(a22==1))&&(a11==1))&&!(a24==1))&&!(a25==1)))){ + a19 = 3; + a25 = 1; + a20 = 0; + a14 = 8; + a29 = 6; + a24 = 1; + return 23; + } else if(((a14==8)&&((((a25==1)&&((a0==1)&&((a24==1)&&(((((input==1)&&((((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))||((a19==2)&&(a29==6))))&&!(a11==1))&&(a7==1))&&(a28==1)))))&&(a22==1))&&!(a20==1)))){ + a19 = 1; + a11 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if(((((a11==1)&&((a24==1)&&((a22==1)&&(((a14==8)&&((((((a29==8)||(a29==9))&&(input==4))&&!(a7==1))&&!(a25==1))&&(a0==1)))&&(a19==4)))))&&!(a20==1))&&(a28==1))){ + a25 = 1; + a7 = 1; + a20 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((!(a11==1)&&((((a29==8)&&((a22==1)&&((a19==4)&&(!(a0==1)&&((((a20==1)&&(input==3))&&!(a24==1))&&(a7==1))))))&&(a14==8))&&(a28==1)))&&(a25==1))){ + a25 = 0; + a20 = 0; + a11 = 1; + a29 = 7; + a19 = 3; + return -1; + } else if(((a19==1)&&(((a28==1)&&((a11==1)&&(((((((a22==1)&&((a0==1)&&(input==6)))&&(a7==1))&&!(a24==1))&&(a29==8))&&!(a25==1))&&(a14==10))))&&(a20==1)))){ + a29 = 5; + a24 = 1; + a25 = 1; + a14 = 8; + return -1; + } else if(((a11==1)&&(((a22==1)&&((a14==9)&&((((a28==1)&&((a7==1)&&(!(a24==1)&&((a25==1)&&((input==2)&&(a29==9))))))&&(a19==5))&&!(a0==1))))&&(a20==1)))){ + a19 = 3; + a29 = 6; + return -1; + } else if((((a29==8)&&((a20==1)&&(!(a0==1)&&(((a7==1)&&((((a22==1)&&(((input==6)&&(a28==1))&&(a14==8)))&&(a19==5))&&(a24==1)))&&(a25==1)))))&&(a11==1))){ + a29 = 5; + a19 = 1; + a0 = 1; + return -1; + } else if((((!(a25==1)&&(!(a7==1)&&((a28==1)&&(!(a11==1)&&((a14==9)&&(((((((a29==5)||(a29==6))||(a29==7))&&(input==6))&&(a22==1))&&!(a24==1))&&!(a0==1)))))))&&(a19==1))&&!(a20==1))){ + a29 = 5; + a0 = 1; + a11 = 1; + a24 = 1; + a19 = 3; + a25 = 1; + a20 = 1; + return -1; + } else if((((a20==1)&&(((!(a7==1)&&((((a28==1)&&((input==2)&&(((a19==5)&&((a25==1)&&(a29==9)))||((!(a25==1)&&(a29==5))&&(a19==1)))))&&(a22==1))&&(a14==8)))&&!(a0==1))&&(a11==1)))&&!(a24==1))){ + a29 = 6; + a24 = 1; + a14 = 9; + a25 = 1; + a19 = 3; + return 24; + } else if((((a22==1)&&(((((a24==1)&&((((((input==5)&&(((a29==7)||(a29==8))||(a29==9)))&&!(a11==1))&&(a20==1))&&(a14==8))&&(a28==1)))&&!(a7==1))&&(a19==3))&&(a0==1)))&&(a25==1))){ + a29 = 7; + a20 = 0; + a24 = 0; + return 24; + } else if(((a20==1)&&((a0==1)&&(((a28==1)&&((a14==9)&&((a24==1)&&(((a7==1)&&(((a25==1)&&(((a29==6)||(a29==7))&&(input==6)))&&(a19==5)))&&(a22==1)))))&&(a11==1))))){ + a29 = 5; + a14 = 8; + a19 = 1; + return -1; + } else if((((a25==1)&&(((((((((a22==1)&&((input==1)&&((a29==5)||(a29==6))))&&!(a11==1))&&(a19==2))&&(a0==1))&&(a14==8))&&(a28==1))&&(a7==1))&&(a20==1)))&&(a24==1))){ + a20 = 0; + a19 = 3; + a25 = 0; + a29 = 9; + a0 = 0; + return 24; + } else if((((a19==5)&&(!(a0==1)&&((!(a11==1)&&((a28==1)&&(!(a25==1)&&((a22==1)&&((!(a7==1)&&(((a29==7)||(a29==8))&&(input==5)))&&!(a24==1))))))&&(a14==9))))&&!(a20==1))){ + a11 = 1; + a29 = 7; + a0 = 1; + a25 = 1; + a19 = 3; + a7 = 1; + a20 = 1; + return -1; + } else if(((a24==1)&&(((a29==9)&&((a14==8)&&((a0==1)&&((((a19==4)&&(!(a20==1)&&(((input==3)&&(a22==1))&&(a25==1))))&&(a7==1))&&!(a11==1)))))&&(a28==1)))){ + a0 = 0; + a7 = 0; + a29 = 6; + a19 = 1; + a11 = 1; + return 24; + } else if(((a22==1)&&((a19==3)&&((((((!(a7==1)&&(((a14==8)&&((input==2)&&!(a0==1)))&&!(a20==1)))&&(a24==1))&&(a28==1))&&(a11==1))&&(a29==6))&&!(a25==1))))){ + a25 = 1; + a29 = 5; + a7 = 1; + a19 = 1; + a0 = 1; + a20 = 1; + return -1; + } else if(((a28==1)&&((a14==9)&&((a19==5)&&((a29==9)&&((a25==1)&&((!(a11==1)&&(!(a24==1)&&((((input==1)&&!(a20==1))&&!(a7==1))&&(a0==1))))&&(a22==1)))))))){ + a20 = 1; + a29 = 8; + a11 = 1; + a19 = 2; + return 21; + } else if((((a20==1)&&((!(a25==1)&&(((((((a7==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==2)))&&(a14==8))&&!(a11==1))&&(a22==1))&&(a24==1))&&!(a0==1)))&&(a28==1)))&&(a19==4))){ + a19 = 3; + a29 = 9; + a25 = 1; + a11 = 1; + return 23; + } else if(((!(a7==1)&&(((((a11==1)&&((((a25==1)&&(!(a0==1)&&((input==6)&&((a29==6)||(a29==7)))))&&(a28==1))&&(a19==1)))&&(a22==1))&&(a14==8))&&!(a24==1)))&&(a20==1))){ + a29 = 5; + a7 = 1; + a0 = 1; + a24 = 1; + return -1; + } else if((!(a25==1)&&(!(a11==1)&&(!(a24==1)&&((a7==1)&&((a14==9)&&(!(a20==1)&&((((a22==1)&&((input==2)&&(((a19==3)&&(a29==6))||(((a29==9)&&(a19==2))||((a29==5)&&(a19==3))))))&&!(a0==1))&&(a28==1))))))))){ + a14 = 8; + a29 = 5; + a24 = 1; + a19 = 1; + a20 = 1; + a11 = 1; + a0 = 1; + a25 = 1; + return -1; + } else if(((((a0==1)&&((!(a20==1)&&(((a14==8)&&((((((a29==6)||(a29==7))&&(input==1))&&!(a24==1))&&!(a11==1))&&(a28==1)))&&(a22==1)))&&(a19==2)))&&(a7==1))&&!(a25==1))){ + a20 = 1; + a29 = 8; + a14 = 9; + a24 = 1; + a7 = 0; + a19 = 5; + return 24; + } else if(((((((a14==9)&&(((((((input==5)&&!(a11==1))&&(a28==1))&&(a29==7))&&(a22==1))&&(a24==1))&&(a19==4)))&&(a20==1))&&!(a25==1))&&!(a0==1))&&(a7==1))){ + a0 = 1; + a24 = 0; + a19 = 3; + return 21; + } else if(((((((a0==1)&&((a11==1)&&(((a24==1)&&(((a22==1)&&(((a29==6)||(a29==7))&&(input==3)))&&!(a20==1)))&&(a28==1))))&&(a14==9))&&(a19==2))&&(a25==1))&&!(a7==1))){ + a25 = 0; + a29 = 5; + a24 = 0; + a19 = 4; + a14 = 8; + a11 = 0; + return 24; + } else if(((((((a28==1)&&(!(a7==1)&&(((((a22==1)&&((input==5)&&((a29==8)||((a29==6)||(a29==7)))))&&!(a11==1))&&(a14==8))&&(a25==1))))&&(a20==1))&&(a19==3))&&!(a0==1))&&!(a24==1))){ + a0 = 1; + a29 = 9; + a20 = 0; + a19 = 2; + a25 = 0; + return 23; + } else if(((!(a20==1)&&((a7==1)&&((((a22==1)&&((((((a19==1)&&(!(a25==1)&&(a29==5)))||((((a25==1)&&(a29==8))&&(a19==5))||(((a29==9)&&(a25==1))&&(a19==5))))&&(input==5))&&!(a11==1))&&(a0==1)))&&(a14==9))&&!(a24==1))))&&(a28==1))){ + a25 = 1; + a24 = 1; + a20 = 1; + a19 = 1; + a14 = 8; + a29 = 5; + a11 = 1; + return -1; + } else if((((((((a25==1)&&((((a22==1)&&(!(a24==1)&&((input==1)&&((a29==5)||(a29==6)))))&&!(a7==1))&&(a14==8)))&&!(a0==1))&&(a20==1))&&(a11==1))&&(a19==2))&&(a28==1))){ + a19 = 4; + a29 = 9; + a0 = 1; + a11 = 0; + a20 = 0; + return 21; + } else if((((((a7==1)&&(!(a11==1)&&((((a14==8)&&((a28==1)&&(((((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))||((a29==6)&&(a19==5)))&&(input==6))))&&!(a25==1))&&!(a24==1))))&&!(a20==1))&&(a22==1))&&(a0==1))){ + a29 = 8; + a20 = 1; + a19 = 3; + a0 = 0; + a24 = 1; + a7 = 0; + a11 = 1; + return 23; + } else if(((a14==9)&&(((!(a24==1)&&(!(a0==1)&&((a7==1)&&((a28==1)&&(((a22==1)&&((a25==1)&&((input==4)&&(((a29==6)||(a29==7))||(a29==8)))))&&(a11==1))))))&&(a19==5))&&(a20==1)))){ + a0 = 1; + a7 = 0; + a11 = 0; + a19 = 2; + a25 = 0; + a29 = 7; + return 23; + } else if(((a28==1)&&((a22==1)&&((a0==1)&&((a24==1)&&(((a7==1)&&((!(a20==1)&&((!(a11==1)&&((input==4)&&((a29==7)||(a29==8))))&&(a19==2)))&&(a25==1)))&&(a14==9))))))){ + a11 = 1; + a7 = 0; + a29 = 7; + a19 = 5; + return 23; + } else if(((((((a0==1)&&((a22==1)&&((!(a20==1)&&(((a25==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==2)))&&!(a24==1)))&&(a14==8))))&&!(a11==1))&&(a19==1))&&!(a7==1))&&(a28==1))){ + a0 = 0; + a25 = 0; + a11 = 1; + a24 = 1; + a29 = 7; + a7 = 1; + a19 = 3; + return 23; + } else if((!(a25==1)&&((a22==1)&&((a28==1)&&((((!(a0==1)&&((a19==3)&&(((a14==9)&&((input==4)&&((a29==8)||(a29==9))))&&(a7==1))))&&(a20==1))&&(a11==1))&&!(a24==1)))))){ + a19 = 1; + a14 = 8; + a7 = 0; + a29 = 7; + a24 = 1; + return 21; + } else if((((((((((((input==4)&&(((a29==9)&&(a19==3))||((a29==5)&&(a19==4))))&&!(a7==1))&&(a28==1))&&!(a24==1))&&(a20==1))&&!(a0==1))&&(a14==9))&&(a22==1))&&!(a11==1))&&!(a25==1))){ + a24 = 1; + a11 = 1; + a19 = 1; + a14 = 8; + a25 = 1; + a0 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if(((((a29==9)&&(((((((((input==6)&&!(a25==1))&&!(a20==1))&&(a0==1))&&(a14==9))&&!(a7==1))&&(a24==1))&&(a22==1))&&(a19==4)))&&(a28==1))&&(a11==1))){ + a19 = 1; + a25 = 1; + a7 = 1; + a20 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((((((a25==1)&&((!(a20==1)&&((a28==1)&&((a7==1)&&(!(a11==1)&&((input==2)&&!(a0==1))))))&&!(a24==1)))&&(a19==5))&&(a29==7))&&(a22==1))&&(a14==8))){ + a29 = 8; + a19 = 1; + a7 = 0; + a0 = 1; + return 24; + } else if((((a24==1)&&((a22==1)&&((a25==1)&&((!(a20==1)&&((!(a7==1)&&(!(a11==1)&&((a0==1)&&((input==1)&&((a29==7)||((a29==5)||(a29==6)))))))&&(a19==3)))&&(a14==8)))))&&(a28==1))){ + a0 = 0; + a19 = 4; + a29 = 8; + a25 = 0; + a11 = 1; + return 24; + } else if((((a25==1)&&((a14==9)&&(((a19==5)&&((a24==1)&&((!(a7==1)&&((((input==1)&&((a29==7)||(a29==8)))&&(a28==1))&&(a11==1)))&&(a0==1))))&&(a20==1))))&&(a22==1))){ + a20 = 0; + a14 = 8; + a29 = 5; + a19 = 3; + a0 = 0; + return 23; + } else if(((a0==1)&&(((a24==1)&&(((a14==8)&&(!(a11==1)&&(((((a25==1)&&((input==2)&&((a29==8)||(a29==9))))&&(a19==3))&&!(a20==1))&&(a22==1))))&&(a28==1)))&&(a7==1)))){ + a19 = 4; + a7 = 0; + a0 = 0; + a11 = 1; + a29 = 7; + a25 = 0; + return 24; + } else if((((a11==1)&&((a7==1)&&(((a24==1)&&((a25==1)&&(((a22==1)&&(((a28==1)&&(!(a20==1)&&(input==3)))&&(a14==9)))&&!(a0==1))))&&(a19==2))))&&(a29==5))){ + a0 = 1; + a19 = 4; + a7 = 0; + a11 = 0; + a29 = 6; + return 24; + } else if(((a19==4)&&((((a20==1)&&((((a14==9)&&(((a25==1)&&(!(a0==1)&&((input==1)&&((a29==6)||(a29==7)))))&&!(a11==1)))&&!(a24==1))&&(a22==1)))&&(a7==1))&&(a28==1)))){ + a29 = 5; + a0 = 1; + a24 = 1; + a14 = 8; + a19 = 1; + a11 = 1; + return -1; + } else if((!(a20==1)&&(!(a11==1)&&(!(a24==1)&&(((a14==9)&&(((a28==1)&&((a22==1)&&((!(a25==1)&&((input==6)&&((a29==8)||((a29==6)||(a29==7)))))&&(a19==1))))&&(a0==1)))&&(a7==1)))))){ + a20 = 1; + a25 = 1; + a7 = 0; + a19 = 2; + a29 = 6; + return 21; + } else if(((a7==1)&&((a14==9)&&((!(a0==1)&&((!(a20==1)&&((((((input==6)&&((a29==8)||(a29==9)))&&!(a11==1))&&(a25==1))&&(a28==1))&&(a22==1)))&&(a19==1)))&&!(a24==1))))){ + a29 = 5; + a0 = 1; + a20 = 1; + a14 = 8; + a24 = 1; + a11 = 1; + return -1; + } else if((((((((a20==1)&&(((a7==1)&&((a19==5)&&((a22==1)&&(((a29==8)||(a29==9))&&(input==3)))))&&(a14==9)))&&!(a25==1))&&(a0==1))&&!(a24==1))&&(a28==1))&&!(a11==1))){ + a14 = 8; + a0 = 0; + a29 = 9; + a19 = 2; + a20 = 0; + a11 = 1; + return -1; + } else if(((!(a20==1)&&((((a14==8)&&(((a11==1)&&((((a28==1)&&(((a29==6)||(a29==7))&&(input==5)))&&(a22==1))&&(a24==1)))&&!(a0==1)))&&!(a7==1))&&(a19==4)))&&!(a25==1))){ + a29 = 9; + a25 = 1; + a20 = 1; + return -1; + } else if(((a28==1)&&((a14==9)&&((!(a20==1)&&((a22==1)&&(((a0==1)&&(((a19==4)&&(!(a25==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==5))))&&(a24==1)))&&(a7==1))))&&!(a11==1))))){ + a7 = 0; + a29 = 5; + a19 = 2; + a24 = 0; + a25 = 1; + return 21; + } else if(((a20==1)&&(((a7==1)&&((a28==1)&&((!(a25==1)&&(!(a0==1)&&((a22==1)&&(((a29==9)&&((a24==1)&&(input==3)))&&(a19==5)))))&&(a14==9))))&&!(a11==1)))){ + a14 = 8; + a19 = 3; + a11 = 1; + a29 = 8; + a20 = 0; + return 21; + } else if((((a19==2)&&(((a20==1)&&((((((a28==1)&&(((a22==1)&&(input==6))&&(a24==1)))&&(a0==1))&&(a11==1))&&!(a7==1))&&(a29==8)))&&(a25==1)))&&(a14==9))){ + a29 = 6; + a19 = 5; + a7 = 1; + a24 = 0; + a20 = 0; + a11 = 0; + a0 = 0; + return 24; + } else if((((a28==1)&&(!(a24==1)&&(((a7==1)&&((!(a20==1)&&((a29==6)&&(!(a11==1)&&((a19==5)&&((a22==1)&&(input==4))))))&&(a25==1)))&&(a14==8))))&&(a0==1))){ + a20 = 1; + a19 = 1; + a24 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if((!(a20==1)&&((a22==1)&&(((a19==2)&&((a11==1)&&((((a0==1)&&((a14==8)&&((a28==1)&&(!(a24==1)&&(input==6)))))&&(a29==6))&&(a25==1))))&&(a7==1))))){ + a29 = 5; + a11 = 0; + a7 = 0; + return 24; + } else if((!(a25==1)&&(((a19==4)&&((a28==1)&&((((a14==8)&&((a0==1)&&((a22==1)&&((a20==1)&&((input==4)&&((a29==8)||(a29==9)))))))&&!(a24==1))&&!(a11==1))))&&!(a7==1)))){ + a25 = 1; + a19 = 2; + a7 = 1; + a29 = 5; + a14 = 9; + a24 = 1; + return 24; + } else if(((((a24==1)&&((a22==1)&&(((a0==1)&&(((!(a20==1)&&((a11==1)&&((input==1)&&(((a29==5)||(a29==6))||(a29==7)))))&&(a14==8))&&(a19==2)))&&!(a25==1))))&&(a7==1))&&(a28==1))){ + a19 = 1; + a7 = 0; + a24 = 0; + a29 = 8; + return 23; + } else if(((a20==1)&&((a19==3)&&(((a28==1)&&((a22==1)&&(!(a11==1)&&((!(a24==1)&&((!(a0==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==5)))&&(a14==8)))&&(a25==1)))))&&(a7==1))))){ + a29 = 6; + a24 = 1; + a25 = 0; + a14 = 9; + a19 = 2; + return 21; + } else if((!(a25==1)&&((a7==1)&&(!(a20==1)&&((((a29==9)&&(((((a28==1)&&((a22==1)&&(input==2)))&&(a19==4))&&!(a11==1))&&(a0==1)))&&(a14==9))&&(a24==1)))))){ + a29 = 6; + a0 = 0; + a19 = 5; + a24 = 0; + a25 = 1; + a14 = 8; + return -1; + } else if(((a22==1)&&((a7==1)&&(!(a0==1)&&(((((a19==3)&&((((a28==1)&&((input==2)&&(((a29==7)||(a29==8))||(a29==9))))&&(a20==1))&&!(a24==1)))&&(a25==1))&&(a14==8))&&!(a11==1)))))){ + a25 = 0; + a29 = 5; + a19 = 2; + a24 = 1; + a14 = 9; + return 21; + } else if((!(a0==1)&&(((a11==1)&&(((a25==1)&&((a28==1)&&((a7==1)&&((((input==6)&&(((a29==5)&&(a19==4))||(((a29==8)&&(a19==3))||((a19==3)&&(a29==9)))))&&(a14==9))&&(a22==1)))))&&(a20==1)))&&!(a24==1)))){ + a25 = 0; + a11 = 0; + a7 = 0; + a20 = 0; + a14 = 8; + a29 = 8; + a19 = 3; + a0 = 1; + return 23; + } else if((((!(a11==1)&&((a22==1)&&((a7==1)&&((((a14==9)&&(((a0==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==2)))&&!(a25==1)))&&(a24==1))&&(a28==1)))))&&!(a20==1))&&(a19==4))){ + a29 = 7; + a25 = 1; + a19 = 3; + return -1; + } else if(((((((a24==1)&&((a25==1)&&(((a28==1)&&((a14==8)&&(((input==4)&&(((a29==7)||(a29==8))||(a29==9)))&&(a7==1))))&&(a11==1))))&&!(a20==1))&&(a0==1))&&(a19==1))&&(a22==1))){ + a19 = 3; + a20 = 1; + a29 = 7; + a24 = 0; + a7 = 0; + return 21; + } else if(((a28==1)&&((a22==1)&&(((((a11==1)&&((((((a29==8)&&(!(a25==1)&&((a20==1)&&!(a7==1))))&&(a19==5))||(((a29==9)&&(((a20==1)&&!(a7==1))&&!(a25==1)))&&(a19==5)))||((((a25==1)&&((a7==1)&&!(a20==1)))&&(a29==5))&&(a19==1)))&&(input==1)))&&!(a24==1))&&!(a0==1))&&(a14==8))))){ + a0 = 1; + a7 = 1; + a29 = 5; + a25 = 1; + a19 = 1; + a24 = 1; + a20 = 1; + return -1; + } else if((((((((a0==1)&&(((((!(a25==1)&&(input==6))&&(a7==1))&&!(a24==1))&&(a28==1))&&(a22==1)))&&(a29==8))&&(a19==3))&&(a20==1))&&(a14==9))&&(a11==1))){ + a20 = 0; + a25 = 1; + a7 = 0; + a24 = 1; + a19 = 5; + a0 = 0; + a14 = 8; + a29 = 6; + return -1; + } else if((!(a25==1)&&((a11==1)&&((a14==9)&&((a29==5)&&(((((((a28==1)&&((a24==1)&&(input==4)))&&(a7==1))&&!(a0==1))&&(a20==1))&&(a22==1))&&(a19==4))))))){ + a29 = 9; + a20 = 0; + a24 = 0; + a14 = 8; + a19 = 3; + a7 = 0; + return -1; + } else if((!(a0==1)&&((!(a20==1)&&((a14==9)&&(((a22==1)&&((((((input==4)&&(a11==1))&&(a7==1))&&(a19==2))&&(a25==1))&&(a28==1)))&&(a24==1))))&&(a29==7)))){ + a11 = 0; + a24 = 0; + a0 = 1; + a19 = 4; + a20 = 1; + return 21; + } else if(((((!(a11==1)&&((a14==9)&&(!(a24==1)&&(((a28==1)&&(!(a0==1)&&((((a29==5)||(a29==6))&&(input==6))&&(a19==5))))&&(a22==1)))))&&(a25==1))&&(a20==1))&&(a7==1))){ + a14 = 8; + a20 = 0; + a7 = 0; + a11 = 1; + a19 = 4; + a29 = 8; + return 21; + } else if((!(a20==1)&&((a0==1)&&((((((a19==1)&&((a28==1)&&((a29==5)&&(!(a7==1)&&(!(a11==1)&&(input==3))))))&&(a22==1))&&(a25==1))&&(a14==8))&&(a24==1))))){ + a19 = 4; + a11 = 1; + a20 = 1; + a25 = 0; + a14 = 9; + return 23; + } else if(((a22==1)&&((a14==8)&&((a28==1)&&((!(a24==1)&&(!(a20==1)&&(!(a7==1)&&(((((a19==5)&&((a25==1)&&(a29==9)))||((a19==1)&&(!(a25==1)&&(a29==5))))&&(input==3))&&!(a11==1)))))&&!(a0==1)))))){ + a24 = 1; + a11 = 1; + a19 = 1; + a29 = 7; + a25 = 0; + return -1; + } else if(((a24==1)&&(((a7==1)&&(((a0==1)&&(((a28==1)&&(((a22==1)&&(((input==1)&&((a29==6)||(a29==7)))&&!(a11==1)))&&!(a25==1)))&&(a20==1)))&&(a19==3)))&&(a14==9)))){ + a7 = 0; + a19 = 1; + a11 = 1; + a0 = 0; + a24 = 0; + a29 = 9; + a14 = 8; + return -1; + } else if((((!(a24==1)&&((a0==1)&&((a11==1)&&(((a20==1)&&(((a25==1)&&((a14==9)&&((((a29==7)||(a29==8))||(a29==9))&&(input==4))))&&(a19==1)))&&(a22==1)))))&&(a28==1))&&!(a7==1))){ + a20 = 0; + a11 = 0; + a14 = 8; + a29 = 5; + a19 = 5; + a0 = 0; + return -1; + } else if((((((a14==9)&&(((a22==1)&&(!(a20==1)&&((!(a24==1)&&(((input==3)&&!(a11==1))&&(a19==5)))&&!(a25==1))))&&(a29==9)))&&(a28==1))&&!(a0==1))&&!(a7==1))){ + a25 = 1; + a24 = 1; + a20 = 1; + a0 = 1; + a11 = 1; + a29 = 5; + a19 = 3; + return 21; + } else if(((((a28==1)&&((a29==6)&&((((((a11==1)&&(((a20==1)&&(input==5))&&(a24==1)))&&(a22==1))&&(a25==1))&&(a19==3))&&(a14==9))))&&!(a7==1))&&!(a0==1))){ + a29 = 9; + a14 = 8; + a25 = 0; + a19 = 5; + return 23; + } else if((!(a11==1)&&((a14==8)&&(!(a24==1)&&((((a19==2)&&(((a28==1)&&((a22==1)&&((((a29==8)||(a29==9))&&(input==5))&&!(a7==1))))&&!(a25==1)))&&(a0==1))&&!(a20==1)))))){ + a25 = 1; + a7 = 1; + a19 = 1; + a24 = 1; + a29 = 5; + a20 = 1; + a11 = 1; + return -1; + } else if((((a22==1)&&(!(a25==1)&&(((a29==7)&&(!(a11==1)&&((a19==3)&&(((!(a7==1)&&((input==3)&&(a28==1)))&&(a14==9))&&(a24==1)))))&&(a20==1))))&&!(a0==1))){ + a19 = 2; + a0 = 1; + a24 = 0; + return 23; + } else if(((((((a7==1)&&(!(a0==1)&&((a14==9)&&((a28==1)&&(((((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))&&(input==1))&&!(a11==1))))))&&!(a25==1))&&(a22==1))&&(a20==1))&&(a24==1))){ + a29 = 9; + a11 = 1; + a0 = 1; + a19 = 5; + a25 = 1; + a7 = 0; + return -1; + } else if(((!(a20==1)&&((!(a24==1)&&((((((((input==6)&&((a29==7)||(a29==8)))&&(a0==1))&&(a7==1))&&(a19==4))&&(a14==8))&&(a22==1))&&(a28==1)))&&!(a11==1)))&&(a25==1))){ + a7 = 0; + a29 = 7; + a0 = 0; + a11 = 1; + a24 = 1; + return 21; + } else if(((a0==1)&&((a11==1)&&(((((a22==1)&&((a20==1)&&((a25==1)&&(((((a19==3)&&(a29==5))||(((a29==8)&&(a19==2))||((a29==9)&&(a19==2))))&&(input==2))&&(a14==8)))))&&(a7==1))&&!(a24==1))&&(a28==1))))){ + a24 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((a11==1)&&((((a14==10)&&((((a19==5)&&((a29==5)&&((a24==1)&&((a0==1)&&((input==1)&&!(a7==1))))))&&(a22==1))&&!(a20==1)))&&(a28==1))&&!(a25==1)))){ + a25 = 1; + a14 = 8; + a29 = 8; + a0 = 0; + return 23; + } else if((!(a24==1)&&(((a19==3)&&(((((a20==1)&&(!(a0==1)&&(((a22==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==2)))&&(a11==1))))&&(a28==1))&&(a7==1))&&(a14==8)))&&!(a25==1)))){ + a19 = 1; + a25 = 1; + a0 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if((!(a0==1)&&(((((a14==8)&&((a19==3)&&((a11==1)&&(((a28==1)&&(((input==6)&&((a29==7)||(a29==8)))&&(a20==1)))&&(a25==1)))))&&(a7==1))&&!(a24==1))&&(a22==1)))){ + a19 = 1; + a0 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if(((a14==10)&&((a0==1)&&((a24==1)&&(((((!(a7==1)&&(((a19==3)&&((input==5)&&((a29==7)||(a29==8))))&&(a20==1)))&&(a28==1))&&(a11==1))&&!(a25==1))&&(a22==1)))))){ + a19 = 1; + a29 = 5; + a14 = 8; + a7 = 1; + a25 = 1; + return -1; + } else if(((a22==1)&&(((((a28==1)&&((a14==9)&&(((((((a29==6)||(a29==7))&&(input==1))&&(a0==1))&&(a24==1))&&(a7==1))&&(a11==1))))&&!(a25==1))&&(a20==1))&&(a19==4)))){ + a14 = 8; + a29 = 5; + a25 = 1; + a19 = 1; + return -1; + } else if(((((a22==1)&&((((a19==4)&&((!(a7==1)&&((a14==8)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==2))&&!(a20==1))))&&(a28==1)))&&!(a11==1))&&(a25==1)))&&!(a0==1))&&!(a24==1))){ + a7 = 1; + a29 = 5; + a11 = 1; + a0 = 1; + a19 = 1; + a20 = 1; + a24 = 1; + return -1; + } else if(((a14==8)&&((a24==1)&&(!(a11==1)&&(((a22==1)&&((a28==1)&&(((!(a20==1)&&((a19==5)&&((input==3)&&(a29==5))))&&!(a7==1))&&(a25==1))))&&!(a0==1)))))){ + a11 = 1; + a29 = 6; + return 24; + } else if(((a14==8)&&(((a28==1)&&((a24==1)&&(((((!(a25==1)&&(((input==4)&&((a29==5)||(a29==6)))&&(a22==1)))&&(a11==1))&&!(a7==1))&&!(a20==1))&&(a19==4))))&&(a0==1)))){ + a29 = 5; + a20 = 1; + a25 = 1; + a7 = 1; + a19 = 1; + return -1; + } else if((!(a24==1)&&((a14==8)&&((((((((((((a29==9)&&(a19==4))||((a29==5)&&(a19==5)))||((a19==5)&&(a29==6)))&&(input==2))&&(a0==1))&&(a7==1))&&(a28==1))&&(a20==1))&&(a22==1))&&!(a25==1))&&(a11==1))))){ + a24 = 1; + a19 = 1; + a29 = 8; + a0 = 0; + a7 = 0; + return 21; + } else if(((a11==1)&&((a22==1)&&(((a24==1)&&((((a25==1)&&(!(a0==1)&&((a29==5)&&((a14==9)&&(!(a20==1)&&(input==5))))))&&(a7==1))&&(a28==1)))&&(a19==2))))){ + a29 = 8; + a7 = 0; + a19 = 3; + a14 = 8; + return 23; + } else if(((a24==1)&&(((!(a0==1)&&((((a28==1)&&(!(a25==1)&&(((a14==9)&&(((a29==5)||(a29==6))&&(input==3)))&&(a22==1))))&&(a11==1))&&(a19==2)))&&(a7==1))&&(a20==1)))){ + a11 = 0; + a25 = 1; + a0 = 1; + a29 = 9; + a20 = 0; + a7 = 0; + return 23; + } else if((!(a0==1)&&((a28==1)&&(((a22==1)&&((((a19==2)&&(((((input==3)&&((a29==6)||(a29==7)))&&!(a24==1))&&(a25==1))&&(a20==1)))&&(a7==1))&&(a11==1)))&&(a14==9))))){ + a19 = 3; + a24 = 1; + a11 = 0; + a29 = 9; + a25 = 0; + a20 = 0; + a0 = 1; + return -1; + } else if(((((((a24==1)&&((a25==1)&&(!(a20==1)&&((a14==8)&&((a19==4)&&(!(a7==1)&&((input==5)&&((a29==6)||(a29==7)))))))))&&(a22==1))&&(a11==1))&&(a28==1))&&(a0==1))){ + a20 = 1; + a19 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if(((((a22==1)&&(((a19==5)&&((((!(a20==1)&&(((input==6)&&((a29==7)||((a29==5)||(a29==6))))&&(a0==1)))&&(a28==1))&&(a11==1))&&!(a25==1)))&&(a7==1)))&&(a14==10))&&(a24==1))){ + a7 = 0; + a0 = 0; + a20 = 1; + a29 = 6; + a14 = 9; + return -1; + } else if(((a28==1)&&((((((a7==1)&&((((a20==1)&&((input==3)&&(((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))))&&(a22==1))&&!(a0==1)))&&(a14==9))&&(a25==1))&&!(a11==1))&&(a24==1)))){ + a11 = 1; + a7 = 0; + a29 = 5; + a25 = 0; + a19 = 2; + return -1; + } else if((((a19==1)&&((!(a0==1)&&((((a28==1)&&((((a14==8)&&((((a29==7)||(a29==8))||(a29==9))&&(input==1)))&&(a22==1))&&(a24==1)))&&(a7==1))&&(a11==1)))&&!(a20==1)))&&(a25==1))){ + a11 = 0; + a0 = 1; + a25 = 0; + a29 = 8; + a24 = 0; + a19 = 3; + return -1; + } else if((((a28==1)&&((((a14==9)&&(((((input==2)&&((((a19==5)&&((a29==8)&&(a25==1)))||(((a29==9)&&(a25==1))&&(a19==5)))||((a19==1)&&(!(a25==1)&&(a29==5)))))&&(a20==1))&&!(a7==1))&&(a0==1)))&&!(a11==1))&&(a24==1)))&&(a22==1))){ + a29 = 5; + a19 = 1; + a14 = 8; + a11 = 1; + a25 = 1; + a7 = 1; + return -1; + } else if(((a28==1)&&((((a22==1)&&((a14==9)&&(((a0==1)&&((!(a25==1)&&((input==1)&&(((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))))&&!(a7==1)))&&(a20==1))))&&(a24==1))&&(a11==1)))){ + a25 = 1; + a19 = 1; + a0 = 0; + a7 = 1; + a29 = 9; + a14 = 8; + return 23; + } else if((((a20==1)&&(!(a7==1)&&((a25==1)&&((a28==1)&&((a14==8)&&(((a19==3)&&(((a22==1)&&(((a29==7)||(a29==8))&&(input==4)))&&(a24==1)))&&!(a0==1)))))))&&!(a11==1))){ + a29 = 5; + a7 = 1; + a19 = 1; + a11 = 1; + a0 = 1; + return -1; + } else if((((a11==1)&&(((a28==1)&&(((a0==1)&&(((a22==1)&&(((a25==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==3)))&&(a20==1)))&&(a14==9)))&&(a19==4)))&&!(a24==1)))&&!(a7==1))){ + a25 = 0; + a14 = 10; + a29 = 9; + a24 = 1; + a20 = 0; + a7 = 1; + return 21; + } else if(((a22==1)&&((a28==1)&&(!(a7==1)&&((a0==1)&&((!(a25==1)&&((((a19==4)&&(((input==2)&&(a14==8))&&!(a11==1)))&&(a29==5))&&(a20==1)))&&!(a24==1))))))){ + a19 = 2; + a20 = 0; + a29 = 8; + a7 = 1; + return 21; + } else if(((a14==9)&&((!(a25==1)&&(((a19==4)&&(((a7==1)&&((a24==1)&&((a11==1)&&((a20==1)&&(((a29==6)||(a29==7))&&(input==4))))))&&(a28==1)))&&(a22==1)))&&!(a0==1)))){ + a29 = 5; + a19 = 1; + a0 = 1; + a14 = 8; + a25 = 1; + return -1; + } else if(((!(a11==1)&&(((a22==1)&&(((a14==9)&&(((a19==1)&&((a28==1)&&(!(a25==1)&&((input==5)&&!(a0==1)))))&&(a29==6)))&&(a24==1)))&&(a20==1)))&&(a7==1))){ + a24 = 0; + a11 = 1; + a7 = 0; + a19 = 5; + a25 = 1; + a20 = 0; + a29 = 7; + a0 = 1; + return -1; + } else if(((a29==6)&&(!(a25==1)&&((a20==1)&&(((a22==1)&&((a28==1)&&((a11==1)&&((a19==2)&&(((a0==1)&&((input==2)&&!(a7==1)))&&(a14==10))))))&&(a24==1)))))){ + a0 = 0; + a14 = 8; + a19 = 1; + a29 = 8; + return 24; + } else if(((a19==5)&&((a22==1)&&(((a7==1)&&(((a0==1)&&((a28==1)&&(!(a11==1)&&((a14==9)&&((((a29==8)||(a29==9))&&(input==6))&&!(a24==1))))))&&!(a20==1)))&&!(a25==1))))){ + a14 = 8; + a19 = 3; + a25 = 1; + a29 = 7; + a20 = 1; + a24 = 1; + a0 = 0; + return 21; + } else if(((((a20==1)&&(((a19==2)&&((a14==9)&&(!(a11==1)&&(!(a7==1)&&((!(a25==1)&&(!(a0==1)&&(input==5)))&&!(a24==1))))))&&(a28==1)))&&(a22==1))&&(a29==9))){ + a20 = 0; + a29 = 5; + a0 = 1; + a14 = 8; + return 21; + } else if(((a22==1)&&(!(a24==1)&&((((a14==8)&&(((!(a7==1)&&(!(a25==1)&&((input==3)&&(((a29==6)&&(a19==4))||(((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))))))&&(a28==1))&&!(a20==1)))&&!(a0==1))&&(a11==1))))){ + a29 = 5; + a19 = 4; + a24 = 1; + a25 = 1; + return 24; + } else if((((a14==10)&&((((a0==1)&&((((a22==1)&&((((input==1)&&((a29==5)||(a29==6)))&&(a11==1))&&(a7==1)))&&(a20==1))&&(a19==5)))&&!(a25==1))&&(a24==1)))&&(a28==1))){ + a7 = 0; + a25 = 1; + a14 = 8; + a19 = 3; + a0 = 0; + a29 = 6; + return 24; + } else if(((a28==1)&&(!(a24==1)&&((a14==9)&&((a19==5)&&((a22==1)&&(((!(a7==1)&&(!(a20==1)&&(!(a25==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==1)))))&&!(a11==1))&&(a0==1)))))))){ + a25 = 1; + a20 = 1; + a29 = 8; + return -1; + } else if((((((a29==5)&&((!(a11==1)&&(((a19==3)&&((!(a7==1)&&((input==1)&&!(a24==1)))&&(a14==8)))&&!(a20==1)))&&(a28==1)))&&(a22==1))&&!(a0==1))&&(a25==1))){ + a25 = 0; + a11 = 1; + a24 = 1; + a7 = 1; + return 23; + } else if((((((a22==1)&&(((a25==1)&&(!(a0==1)&&((((a7==1)&&(((a29==5)||(a29==6))&&(input==6)))&&(a20==1))&&!(a24==1))))&&(a19==3)))&&(a28==1))&&(a11==1))&&(a14==8))){ + a29 = 5; + a0 = 1; + a19 = 1; + a24 = 1; + return -1; + } else if(((a20==1)&&(((((((a22==1)&&((a25==1)&&((a19==4)&&((a29==6)&&((a11==1)&&(input==3))))))&&(a0==1))&&!(a7==1))&&(a14==10))&&(a24==1))&&(a28==1)))){ + a14 = 9; + a11 = 0; + a19 = 3; + a7 = 1; + return 24; + } else if(((a19==3)&&((!(a24==1)&&((((a14==8)&&((a25==1)&&((((((a29==8)||(a29==9))&&(input==6))&&!(a7==1))&&!(a20==1))&&(a28==1))))&&!(a0==1))&&(a22==1)))&&(a11==1)))){ + a19 = 1; + a29 = 5; + a24 = 1; + a20 = 1; + a7 = 1; + a0 = 1; + return -1; + } else if(((a28==1)&&((a19==1)&&((a24==1)&&((((a0==1)&&((!(a7==1)&&((a11==1)&&((a29==8)&&((a20==1)&&(input==3)))))&&!(a25==1)))&&(a14==9))&&(a22==1)))))){ + a29 = 5; + a14 = 8; + a25 = 1; + a7 = 1; + return -1; + } else if((!(a0==1)&&(((((a19==1)&&((a14==8)&&(((((a20==1)&&((input==6)&&((a29==6)||(a29==7))))&&(a25==1))&&(a22==1))&&!(a24==1))))&&!(a11==1))&&!(a7==1))&&(a28==1)))){ + a19 = 3; + a24 = 1; + a29 = 5; + a14 = 9; + return 21; + } else if((((((a20==1)&&((a7==1)&&((a28==1)&&(((((((a29==7)||((a29==5)||(a29==6)))&&(input==3))&&(a25==1))&&(a0==1))&&(a22==1))&&(a11==1)))))&&(a19==2))&&(a24==1))&&(a14==10))){ + a20 = 0; + a25 = 0; + a14 = 8; + a0 = 0; + a29 = 6; + a7 = 0; + a19 = 1; + return 24; + } else if((((a28==1)&&(!(a0==1)&&(((a22==1)&&((a19==4)&&((!(a20==1)&&(!(a25==1)&&((a14==9)&&((input==4)&&(((a29==6)||(a29==7))||(a29==8))))))&&!(a11==1))))&&!(a24==1))))&&(a7==1))){ + a25 = 1; + a24 = 1; + a7 = 0; + a20 = 1; + a14 = 8; + a29 = 8; + a19 = 5; + a11 = 1; + return 24; + } else if(((!(a11==1)&&((a25==1)&&(((a22==1)&&(((a19==2)&&(!(a24==1)&&((a7==1)&&((a28==1)&&((input==5)&&((a29==9)||((a29==7)||(a29==8))))))))&&(a14==8)))&&(a0==1))))&&!(a20==1))){ + a24 = 1; + a25 = 0; + a29 = 5; + a14 = 9; + a20 = 1; + return 23; + } else if(((a20==1)&&(((a28==1)&&((!(a0==1)&&(((a24==1)&&(((a22==1)&&(!(a11==1)&&((input==4)&&(((a29==7)||(a29==8))||(a29==9)))))&&!(a25==1)))&&(a19==4)))&&(a7==1)))&&(a14==8)))){ + a29 = 5; + a11 = 1; + a19 = 1; + a0 = 1; + a25 = 1; + return -1; + } else if(((a28==1)&&(((((a19==5)&&((a22==1)&&(((a25==1)&&((((a29==7)&&(input==3))&&!(a24==1))&&!(a20==1)))&&(a14==9))))&&(a0==1))&&(a7==1))&&(a11==1)))){ + a24 = 1; + a20 = 1; + a14 = 8; + a29 = 5; + a19 = 1; + return -1; + } else if((!(a20==1)&&((((a11==1)&&((a14==9)&&((((((a19==1)&&((a7==1)&&(input==1)))&&(a22==1))&&!(a0==1))&&(a28==1))&&!(a24==1))))&&(a29==8))&&(a25==1)))){ + a29 = 7; + a25 = 0; + a11 = 0; + a0 = 1; + a20 = 1; + a7 = 0; + return 24; + } else if(((((((a22==1)&&((((a11==1)&&(!(a7==1)&&((((a29==5)&&(a19==4))||(((a19==3)&&(a29==8))||((a19==3)&&(a29==9))))&&(input==4))))&&(a28==1))&&(a14==9)))&&(a0==1))&&(a25==1))&&(a24==1))&&(a20==1))){ + a19 = 5; + a29 = 5; + a25 = 0; + a11 = 0; + a0 = 0; + a7 = 1; + a24 = 0; + a14 = 8; + return -1; + } else if(((a25==1)&&((a0==1)&&(((a11==1)&&((a28==1)&&(((!(a20==1)&&(!(a24==1)&&((a14==9)&&((input==3)&&(a22==1)))))&&(a29==6))&&(a7==1))))&&(a19==3))))){ + a7 = 0; + a14 = 8; + a25 = 0; + a11 = 0; + return -1; + } else if((((!(a11==1)&&((((a22==1)&&((!(a7==1)&&((a24==1)&&((((a19==5)&&(a29==5))||(((a19==4)&&(a29==8))||((a19==4)&&(a29==9))))&&(input==3))))&&!(a25==1)))&&(a20==1))&&(a14==8)))&&(a28==1))&&!(a0==1))){ + a29 = 8; + a25 = 1; + a19 = 5; + return -1; + } else if(((!(a11==1)&&(((a19==5)&&(((((a24==1)&&(((a14==9)&&(((a29==6)||(a29==7))&&(input==5)))&&!(a7==1)))&&!(a0==1))&&(a25==1))&&(a22==1)))&&(a28==1)))&&(a20==1))){ + a11 = 1; + a14 = 8; + a29 = 9; + return 23; + } else if(((((a11==1)&&((a19==2)&&((a14==8)&&((!(a20==1)&&((a22==1)&&(((a7==1)&&((a0==1)&&(input==5)))&&(a24==1))))&&!(a25==1)))))&&(a29==9))&&(a28==1))){ + a19 = 4; + a24 = 0; + a29 = 7; + a7 = 0; + return 21; + } else if(((a22==1)&&(((a14==9)&&(((a28==1)&&((!(a24==1)&&(((((input==5)&&(((a29==6)||(a29==7))||(a29==8)))&&!(a11==1))&&(a19==1))&&(a7==1)))&&(a20==1)))&&!(a0==1)))&&(a25==1)))){ + a24 = 1; + a29 = 6; + a20 = 0; + a11 = 1; + a19 = 3; + return -1; + } else if((((a22==1)&&((a19==3)&&(((a24==1)&&(((((((input==3)&&((a29==7)||(a29==8)))&&(a7==1))&&(a25==1))&&(a20==1))&&(a0==1))&&(a14==8)))&&(a28==1))))&&!(a11==1))){ + a19 = 1; + a20 = 0; + a7 = 0; + a0 = 0; + a29 = 8; + return 24; + } else if((((a19==4)&&(((a14==9)&&((a28==1)&&((!(a20==1)&&((a22==1)&&(((((a29==8)||(a29==9))&&(input==6))&&!(a25==1))&&!(a24==1))))&&!(a0==1))))&&!(a11==1)))&&!(a7==1))){ + a29 = 5; + a14 = 8; + a25 = 1; + a11 = 1; + a24 = 1; + a19 = 1; + a0 = 1; + a20 = 1; + a7 = 1; + return -1; + } else if(((a11==1)&&(((a22==1)&&((a19==4)&&((((((a28==1)&&((a20==1)&&((input==6)&&(((a29==7)||(a29==8))||(a29==9)))))&&!(a0==1))&&(a24==1))&&(a25==1))&&!(a7==1))))&&(a14==9)))){ + a14 = 8; + a29 = 9; + return 23; + } else if(((a19==3)&&(((a0==1)&&(((a14==8)&&((!(a11==1)&&((a28==1)&&((a22==1)&&((((a29==5)||(a29==6))&&(input==1))&&!(a24==1)))))&&!(a7==1)))&&!(a25==1)))&&!(a20==1)))){ + a19 = 1; + a7 = 1; + a29 = 5; + a20 = 1; + a25 = 1; + a24 = 1; + a11 = 1; + return -1; + } else if(((((a22==1)&&((a24==1)&&((a0==1)&&((a19==4)&&((a20==1)&&(((!(a11==1)&&((input==2)&&((a29==7)||(a29==8))))&&(a14==8))&&(a7==1)))))))&&(a28==1))&&!(a25==1))){ + a25 = 1; + a11 = 1; + a29 = 8; + a19 = 5; + a0 = 0; + return 24; + } else if((!(a11==1)&&((a19==5)&&(((a28==1)&&(((a14==8)&&((((a20==1)&&(((input==4)&&((a29==7)||(a29==8)))&&(a25==1)))&&(a24==1))&&(a22==1)))&&(a7==1)))&&(a0==1))))){ + a29 = 5; + a20 = 0; + a7 = 0; + a0 = 0; + return 23; + } else if(((a22==1)&&((a28==1)&&((!(a11==1)&&((a29==7)&&((!(a25==1)&&((((a14==8)&&(!(a0==1)&&(input==1)))&&!(a24==1))&&!(a20==1)))&&(a19==5))))&&(a7==1))))){ + a20 = 1; + a7 = 0; + a24 = 1; + a11 = 1; + a19 = 1; + return 23; + } else if((!(a20==1)&&(((a11==1)&&((a28==1)&&((a7==1)&&(!(a24==1)&&((a14==8)&&((a25==1)&&(((input==6)&&((((a19==4)&&(a29==8))||((a29==9)&&(a19==4)))||((a29==5)&&(a19==5))))&&(a22==1))))))))&&!(a0==1)))){ + a29 = 9; + a24 = 1; + a19 = 5; + return 23; + } else if(((((((!(a24==1)&&(!(a25==1)&&((a22==1)&&(!(a20==1)&&(((((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))||((a29==5)&&(a19==3)))&&(input==4))))))&&(a7==1))&&(a28==1))&&(a14==8))&&(a11==1))&&!(a0==1))){ + a29 = 7; + a24 = 1; + a19 = 4; + a14 = 9; + return 24; + } else if(((a28==1)&&((a22==1)&&((((((a19==1)&&((a20==1)&&((a14==9)&&(!(a24==1)&&((input==1)&&(a29==5))))))&&!(a7==1))&&(a25==1))&&(a11==1))&&(a0==1))))){ + a24 = 1; + a20 = 0; + a0 = 0; + a19 = 4; + a7 = 1; + a14 = 8; + a25 = 0; + return 21; + } else if(((a7==1)&&(!(a24==1)&&(!(a0==1)&&(!(a11==1)&&(((a19==3)&&(((a22==1)&&((!(a25==1)&&((input==5)&&((a29==6)||(a29==7))))&&(a14==8)))&&(a28==1)))&&(a20==1))))))){ + a24 = 1; + a19 = 1; + a0 = 1; + a25 = 1; + a29 = 5; + a11 = 1; + return -1; + } else if((((((a22==1)&&((a25==1)&&((a19==3)&&(!(a11==1)&&(((((input==1)&&((a29==8)||(a29==9)))&&(a28==1))&&!(a20==1))&&(a7==1))))))&&(a14==8))&&!(a24==1))&&(a0==1))){ + a14 = 9; + a19 = 4; + a29 = 9; + a20 = 1; + a25 = 0; + a24 = 1; + return 21; + } else if(((a19==3)&&(((a28==1)&&((((a0==1)&&((a20==1)&&(((a7==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==2))&&(a22==1)))&&(a14==8))))&&!(a11==1))&&(a25==1)))&&!(a24==1)))){ + a24 = 1; + a7 = 0; + a11 = 1; + a20 = 0; + a19 = 5; + a29 = 6; + a0 = 0; + return 24; + } else if(((((a11==1)&&(!(a20==1)&&(!(a7==1)&&((a22==1)&&((((((((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))||((a29==6)&&(a19==3)))&&(input==5))&&!(a25==1))&&(a28==1))&&(a24==1))))))&&!(a0==1))&&(a14==9))){ + a14 = 8; + a29 = 7; + a19 = 1; + return -1; + } else if((((((((a24==1)&&((a14==8)&&(((((input==2)&&(a7==1))&&!(a0==1))&&(a22==1))&&(a29==6))))&&(a20==1))&&(a28==1))&&!(a25==1))&&(a19==4))&&!(a11==1))){ + a25 = 1; + a7 = 0; + a19 = 5; + a11 = 1; + return -1; + } else if(((((a7==1)&&(((!(a11==1)&&((a19==3)&&((a22==1)&&((!(a24==1)&&((input==2)&&(((a29==5)||(a29==6))||(a29==7))))&&(a28==1)))))&&(a25==1))&&(a14==8)))&&(a0==1))&&!(a20==1))){ + a25 = 0; + a14 = 9; + a20 = 1; + a24 = 1; + a29 = 9; + return 21; + } else if(((a22==1)&&(((!(a20==1)&&(!(a24==1)&&(((a19==1)&&((a29==9)&&((a0==1)&&(((a28==1)&&(input==4))&&!(a25==1)))))&&(a11==1))))&&(a14==9))&&!(a7==1)))){ + a24 = 1; + a19 = 3; + a14 = 8; + a0 = 0; + a7 = 1; + a29 = 8; + a25 = 1; + return 24; + } else if(((a29==5)&&((((((a22==1)&&((a28==1)&&((((!(a11==1)&&(input==6))&&(a25==1))&&!(a24==1))&&(a20==1))))&&!(a7==1))&&(a19==2))&&(a14==8))&&(a0==1)))){ + a7 = 1; + a19 = 1; + a11 = 1; + a24 = 1; + return -1; + } else if(((a22==1)&&((a28==1)&&(((a19==5)&&((a24==1)&&(((((((input==5)&&!(a11==1))&&(a20==1))&&(a7==1))&&(a14==9))&&(a0==1))&&(a29==5))))&&(a25==1))))){ + a0 = 0; + a29 = 7; + a25 = 0; + a11 = 1; + a19 = 2; + a14 = 8; + a24 = 0; + return 23; + } else if(((a14==8)&&(((a7==1)&&((((a22==1)&&(((a28==1)&&((a0==1)&&((!(a11==1)&&(input==1))&&!(a24==1))))&&!(a20==1)))&&(a19==2))&&(a29==8)))&&!(a25==1)))){ + a20 = 1; + a19 = 4; + a29 = 6; + a24 = 1; + a7 = 0; + a11 = 1; + return -1; + } else if(((!(a25==1)&&((a29==9)&&((!(a0==1)&&(((a22==1)&&(!(a24==1)&&((((a20==1)&&(input==5))&&(a14==9))&&(a28==1))))&&(a19==1)))&&(a11==1))))&&(a7==1))){ + a29 = 5; + a24 = 1; + a25 = 1; + a14 = 8; + a0 = 1; + return -1; + } else if((!(a20==1)&&(((a22==1)&&((a14==8)&&(((!(a7==1)&&(((((input==5)&&((a29==7)||((a29==5)||(a29==6))))&&!(a11==1))&&(a19==2))&&!(a24==1)))&&!(a25==1))&&(a28==1))))&&(a0==1)))){ + a25 = 1; + a29 = 5; + a24 = 1; + a19 = 1; + a20 = 1; + a7 = 1; + a11 = 1; + return -1; + } else if(((a11==1)&&(!(a7==1)&&(((a22==1)&&((a29==7)&&((((a19==3)&&((a14==9)&&(((a25==1)&&(input==5))&&(a24==1))))&&!(a20==1))&&(a0==1))))&&(a28==1))))){ + a7 = 1; + a20 = 1; + a19 = 1; + a25 = 0; + a29 = 8; + a14 = 10; + return 24; + } else if(((!(a25==1)&&(!(a7==1)&&(((a14==8)&&((a20==1)&&((a11==1)&&((((a28==1)&&((input==3)&&((a29==6)||(a29==7))))&&!(a24==1))&&!(a0==1)))))&&(a22==1))))&&(a19==3))){ + a20 = 0; + a11 = 0; + a19 = 5; + a25 = 1; + a29 = 6; + return 21; + } else if(((a11==1)&&(((a0==1)&&(!(a7==1)&&((a14==8)&&((a20==1)&&(((a28==1)&&((a22==1)&&((!(a25==1)&&(input==2))&&(a19==1))))&&(a24==1))))))&&(a29==9)))){ + a20 = 0; + a25 = 1; + a29 = 6; + return 21; + } else if(((!(a0==1)&&((a11==1)&&(((a14==9)&&(((a19==5)&&((((((a29==8)||(a29==9))&&(input==5))&&(a25==1))&&!(a20==1))&&!(a7==1)))&&(a28==1)))&&!(a24==1))))&&(a22==1))){ + a14 = 8; + a29 = 5; + a0 = 1; + a7 = 1; + a24 = 1; + a20 = 1; + a19 = 1; + return -1; + } else if((((a20==1)&&((a11==1)&&((a22==1)&&(((a19==1)&&((((((input==1)&&((a29==8)||(a29==9)))&&!(a25==1))&&(a28==1))&&(a0==1))&&!(a7==1)))&&!(a24==1)))))&&(a14==8))){ + a11 = 0; + a29 = 7; + a25 = 1; + a20 = 0; + a19 = 5; + return 23; + } else if(((((a14==10)&&(((((a28==1)&&(((a11==1)&&((a29==8)&&((input==5)&&(a19==3))))&&(a0==1)))&&(a22==1))&&(a24==1))&&(a25==1)))&&!(a7==1))&&!(a20==1))){ + a7 = 1; + a29 = 5; + a19 = 1; + a20 = 1; + a14 = 8; + return -1; + } else if((((a19==5)&&((a7==1)&&((!(a25==1)&&(((a28==1)&&((!(a24==1)&&((a14==8)&&(((a29==8)||(a29==9))&&(input==6))))&&(a22==1)))&&(a11==1)))&&!(a0==1))))&&!(a20==1))){ + a29 = 7; + a19 = 3; + a11 = 0; + return 24; + } else if((((a29==6)&&(((a22==1)&&(((((((a19==1)&&(!(a7==1)&&(input==4)))&&(a14==9))&&(a11==1))&&(a28==1))&&(a24==1))&&(a0==1)))&&!(a25==1)))&&!(a20==1))){ + a14 = 8; + a25 = 1; + a29 = 5; + a7 = 1; + a20 = 1; + return -1; + } else if(((a28==1)&&(!(a24==1)&&((a22==1)&&((a25==1)&&((((a0==1)&&(((!(a20==1)&&(((a29==5)||(a29==6))&&(input==4)))&&!(a11==1))&&(a14==8)))&&!(a7==1))&&(a19==3))))))){ + a19 = 4; + a25 = 0; + a14 = 9; + a24 = 1; + a29 = 9; + a7 = 1; + return 24; + } else if(((a22==1)&&(((!(a0==1)&&(!(a24==1)&&(((a14==8)&&(((a28==1)&&(((input==4)&&((a29==8)||((a29==6)||(a29==7))))&&!(a25==1)))&&(a19==4)))&&!(a11==1))))&&(a20==1))&&(a7==1)))){ + a24 = 1; + a11 = 1; + a29 = 8; + a19 = 5; + return 24; + } else if((!(a7==1)&&(((a19==2)&&((a28==1)&&((a25==1)&&((a14==9)&&(!(a20==1)&&((a29==5)&&((((a24==1)&&(input==1))&&(a0==1))&&(a22==1))))))))&&!(a11==1)))){ + a0 = 0; + a19 = 3; + a24 = 0; + a7 = 1; + a25 = 0; + a29 = 6; + a14 = 8; + return -1; + } else if((((((!(a20==1)&&((a14==9)&&(!(a0==1)&&(((!(a24==1)&&((a11==1)&&(input==5)))&&(a29==7))&&(a28==1)))))&&(a19==3))&&!(a25==1))&&(a22==1))&&(a7==1))){ + a0 = 1; + a19 = 1; + a29 = 6; + a7 = 0; + a24 = 1; + return -1; + } else if(((!(a25==1)&&((a7==1)&&(((a28==1)&&((((a19==4)&&((a14==8)&&(!(a11==1)&&((input==4)&&(a29==7)))))&&(a22==1))&&(a0==1)))&&(a24==1))))&&!(a20==1))){ + a11 = 1; + a19 = 1; + a20 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if((!(a24==1)&&(!(a11==1)&&((a20==1)&&(!(a0==1)&&(((a7==1)&&((a22==1)&&((a28==1)&&((((((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))||((a29==6)&&(a19==2)))&&(input==6))&&(a25==1)))))&&(a14==8))))))){ + a19 = 1; + a7 = 0; + a20 = 0; + a25 = 0; + a11 = 1; + a29 = 6; + return 24; + } else if(((a7==1)&&(((a28==1)&&(((a19==3)&&((((a14==9)&&((a20==1)&&(((input==3)&&((a29==6)||(a29==7)))&&!(a24==1))))&&!(a25==1))&&(a22==1)))&&!(a11==1)))&&(a0==1)))){ + a20 = 0; + a7 = 0; + a29 = 7; + a19 = 1; + a14 = 8; + return 21; + } else if(((a22==1)&&((a14==8)&&(((a24==1)&&(((((((a19==1)&&((input==6)&&(a25==1)))&&(a28==1))&&(a7==1))&&!(a0==1))&&!(a20==1))&&(a29==9)))&&!(a11==1))))){ + a11 = 1; + a7 = 0; + a19 = 5; + return 23; + } else if(((a24==1)&&(((!(a20==1)&&(((((a22==1)&&((input==2)&&((((a19==5)&&((a25==1)&&(a29==9)))||((!(a25==1)&&(a29==5))&&(a19==1)))||((a19==1)&&(!(a25==1)&&(a29==6))))))&&(a28==1))&&(a7==1))&&(a0==1)))&&(a14==8))&&(a11==1)))){ + a19 = 1; + a7 = 0; + a29 = 6; + a25 = 1; + a24 = 0; + return 21; + } else if((((a22==1)&&((((a14==9)&&((a7==1)&&((((a28==1)&&((input==3)&&(((a19==2)&&(a29==5))||(((a29==8)&&(a19==1))||((a29==9)&&(a19==1))))))&&!(a24==1))&&(a25==1))))&&(a0==1))&&(a20==1)))&&(a11==1))){ + a29 = 5; + a24 = 1; + a14 = 8; + a25 = 0; + a20 = 0; + a0 = 0; + a19 = 3; + return -1; + } else if((((!(a25==1)&&(!(a0==1)&&(((a14==8)&&(!(a24==1)&&((a11==1)&&((!(a7==1)&&(((a29==7)||(a29==8))&&(input==3)))&&(a28==1)))))&&(a22==1))))&&(a19==4))&&!(a20==1))){ + a0 = 1; + a11 = 0; + a19 = 1; + a14 = 9; + a29 = 8; + return 24; + } else if((((!(a24==1)&&((a14==9)&&((a7==1)&&((a25==1)&&((!(a20==1)&&((a29==7)&&(((input==6)&&(a28==1))&&(a19==2))))&&(a0==1))))))&&(a22==1))&&(a11==1))){ + a14 = 10; + a24 = 1; + a25 = 0; + a7 = 0; + a29 = 8; + a19 = 1; + return 21; + } else if((((a22==1)&&((a25==1)&&((a7==1)&&((((a29==9)&&((((!(a20==1)&&(input==1))&&(a19==5))&&(a14==8))&&!(a24==1)))&&(a11==1))&&(a28==1)))))&&(a0==1))){ + a24 = 1; + a29 = 5; + a19 = 1; + a20 = 1; + return -1; + } else if((!(a0==1)&&((a28==1)&&(!(a11==1)&&((((a20==1)&&(((((a19==5)&&((a29==9)&&((a7==1)&&!(a25==1))))||((a19==1)&&((!(a7==1)&&(a25==1))&&(a29==5))))&&(input==4))&&(a22==1)))&&(a24==1))&&(a14==8)))))){ + a19 = 4; + a25 = 0; + a14 = 9; + a11 = 1; + a24 = 0; + a29 = 9; + a7 = 1; + return 21; + } else if(((a24==1)&&((a22==1)&&((a14==8)&&((a7==1)&&(!(a20==1)&&(((((a25==1)&&(((input==3)&&(a11==1))&&(a0==1)))&&(a19==3))&&(a28==1))&&(a29==8)))))))){ + a7 = 0; + a29 = 7; + a24 = 0; + a25 = 0; + a20 = 1; + a19 = 5; + return 24; + } else if(((a14==9)&&(((a22==1)&&((a11==1)&&(((((a28==1)&&((a20==1)&&(((input==4)&&((a29==6)||(a29==7)))&&(a24==1))))&&!(a25==1))&&(a0==1))&&(a7==1))))&&(a19==4)))){ + a24 = 0; + a20 = 0; + a11 = 0; + a19 = 1; + a25 = 1; + a29 = 8; + a0 = 0; + return 23; + } else if((((a25==1)&&((a0==1)&&(((a7==1)&&(((((a14==10)&&(((input==4)&&(((a29==7)||(a29==8))||(a29==9)))&&!(a24==1)))&&(a20==1))&&(a22==1))&&(a11==1)))&&(a28==1))))&&(a19==5))){ + a29 = 5; + a24 = 1; + a14 = 8; + a19 = 1; + return -1; + } else if(((a25==1)&&(((a24==1)&&((a14==8)&&((((!(a7==1)&&((a22==1)&&(((((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))||((a29==6)&&(a19==4)))&&(input==2))))&&!(a0==1))&&(a20==1))&&!(a11==1))))&&(a28==1)))){ + a19 = 1; + a29 = 5; + a0 = 1; + a7 = 1; + a11 = 1; + return -1; + } else if(((a14==9)&&(((a24==1)&&((!(a7==1)&&((a22==1)&&(((((a19==1)&&((input==1)&&(((a29==6)||(a29==7))||(a29==8))))&&!(a0==1))&&(a28==1))&&!(a11==1))))&&!(a25==1)))&&(a20==1)))){ + a29 = 9; + a0 = 1; + a19 = 5; + return 24; + } else if(((((a29==5)&&((a25==1)&&((((!(a11==1)&&((a28==1)&&(((a7==1)&&(input==1))&&(a22==1))))&&(a24==1))&&(a19==3))&&(a20==1))))&&(a0==1))&&(a14==9))){ + a29 = 7; + a25 = 0; + a14 = 8; + a7 = 0; + a11 = 1; + return 23; + } else if(((((!(a20==1)&&(!(a24==1)&&(((a22==1)&&(((a11==1)&&(((input==3)&&((a29==7)||(a29==8)))&&(a28==1)))&&!(a7==1)))&&(a19==4))))&&(a14==9))&&!(a0==1))&&!(a25==1))){ + a11 = 0; + a0 = 1; + a20 = 1; + a29 = 5; + a7 = 1; + a19 = 2; + return 21; + } else if(((((a7==1)&&(((a28==1)&&(!(a25==1)&&(((a24==1)&&(((a14==10)&&((input==3)&&(((a29==7)||(a29==8))||(a29==9))))&&(a22==1)))&&(a19==1))))&&(a11==1)))&&(a0==1))&&!(a20==1))){ + a29 = 5; + a14 = 8; + a20 = 1; + a25 = 1; + return -1; + } else if((((((a22==1)&&(((a7==1)&&(!(a24==1)&&((a19==3)&&((a28==1)&&(!(a25==1)&&(((a29==8)||(a29==9))&&(input==5)))))))&&(a14==9)))&&(a11==1))&&!(a0==1))&&!(a20==1))){ + a7 = 0; + a19 = 2; + a20 = 1; + a14 = 8; + a24 = 1; + a29 = 5; + a25 = 1; + return 24; + } else if((((a14==9)&&(((a11==1)&&(((a0==1)&&((!(a25==1)&&(!(a7==1)&&(!(a24==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==3)))))&&(a20==1)))&&(a28==1)))&&(a22==1)))&&(a19==5))){ + a29 = 5; + a14 = 10; + a19 = 4; + a20 = 0; + a24 = 1; + a25 = 1; + return 21; + } else if(((a22==1)&&((a11==1)&&(((a0==1)&&(((((a14==9)&&((a25==1)&&(((input==2)&&(a28==1))&&!(a20==1))))&&(a7==1))&&(a19==3))&&!(a24==1)))&&(a29==6))))){ + a29 = 5; + a19 = 1; + a24 = 1; + a20 = 1; + a14 = 8; + return -1; + } else if((!(a0==1)&&(((((((a22==1)&&((a25==1)&&((a14==9)&&((((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))&&(input==4)))))&&(a11==1))&&!(a24==1))&&(a20==1))&&!(a7==1))&&(a28==1)))){ + a29 = 6; + a14 = 8; + a7 = 1; + a24 = 1; + a25 = 0; + a19 = 3; + a0 = 1; + return -1; + } else if(((a22==1)&&(((a20==1)&&((a28==1)&&((a14==8)&&(!(a25==1)&&((((a19==5)&&((a11==1)&&((input==3)&&!(a0==1))))&&!(a24==1))&&(a29==7))))))&&!(a7==1)))){ + a24 = 1; + a29 = 9; + a25 = 1; + a20 = 0; + return 23; + } else if(((((!(a0==1)&&((((((!(a11==1)&&(((a29==5)||(a29==6))&&(input==3)))&&(a14==8))&&(a28==1))&&(a25==1))&&(a24==1))&&!(a20==1)))&&(a19==4))&&(a22==1))&&!(a7==1))){ + a11 = 1; + a7 = 1; + a29 = 8; + a19 = 5; + a20 = 1; + return 23; + } else if((((((((a28==1)&&((a29==6)&&((a19==1)&&(((!(a0==1)&&(input==4))&&(a7==1))&&(a25==1)))))&&!(a11==1))&&(a24==1))&&(a22==1))&&!(a20==1))&&(a14==9))){ + a25 = 0; + a14 = 8; + a20 = 1; + a29 = 9; + a19 = 5; + a24 = 0; + return -1; + } else if(((((a14==8)&&((a28==1)&&((!(a11==1)&&((((((input==1)&&(a7==1))&&(a24==1))&&!(a25==1))&&(a20==1))&&(a22==1)))&&(a0==1))))&&(a29==5))&&(a19==1))){ + a0 = 0; + a29 = 6; + a7 = 0; + a19 = 2; + a20 = 0; + return 23; + } else if(((a14==9)&&((((((a28==1)&&((((!(a20==1)&&((input==1)&&((a29==5)||(a29==6))))&&(a22==1))&&!(a25==1))&&!(a0==1)))&&(a19==4))&&!(a7==1))&&(a11==1))&&!(a24==1)))){ + a24 = 1; + a19 = 5; + a25 = 1; + a14 = 8; + a29 = 6; + a11 = 0; + a7 = 1; + return 24; + } else if((((!(a24==1)&&((a0==1)&&(((a7==1)&&((a28==1)&&((a19==4)&&((a25==1)&&((a14==9)&&((input==4)&&(((a29==7)||(a29==8))||(a29==9))))))))&&(a20==1))))&&(a22==1))&&!(a11==1))){ + a25 = 0; + a19 = 2; + a7 = 0; + a0 = 0; + a24 = 1; + a14 = 8; + a11 = 1; + a29 = 8; + return -1; + } else if(((a11==1)&&((a28==1)&&((a20==1)&&((a22==1)&&(((!(a25==1)&&(((a14==9)&&((input==6)&&(((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))))&&!(a0==1)))&&(a24==1))&&(a7==1))))))){ + a11 = 0; + a7 = 0; + a20 = 0; + a24 = 0; + a25 = 1; + a14 = 8; + a0 = 1; + a19 = 1; + a29 = 6; + return 21; + } else if(((a25==1)&&((a7==1)&&(!(a11==1)&&((a19==3)&&((a29==8)&&(((!(a24==1)&&((a14==9)&&(((a20==1)&&(input==5))&&!(a0==1))))&&(a22==1))&&(a28==1)))))))){ + a11 = 1; + a25 = 0; + a20 = 0; + a29 = 7; + a7 = 0; + return -1; + } else if((!(a25==1)&&((((a7==1)&&((((a14==9)&&(!(a20==1)&&((((((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))||((a29==6)&&(a19==2)))&&(input==4))&&(a0==1))))&&(a22==1))&&!(a11==1)))&&!(a24==1))&&(a28==1)))){ + a11 = 1; + a29 = 5; + a19 = 1; + a24 = 1; + a14 = 8; + a25 = 1; + a20 = 1; + return -1; + } else if(((((a0==1)&&((a24==1)&&((a14==8)&&((!(a25==1)&&(!(a20==1)&&((a22==1)&&((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))&&(input==5)))))&&!(a7==1)))))&&(a28==1))&&!(a11==1))){ + a11 = 1; + a29 = 9; + a20 = 1; + a0 = 0; + a19 = 5; + return 21; + } else if(((((a28==1)&&(((((a20==1)&&(((a11==1)&&((a22==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==2))))&&!(a0==1)))&&(a19==4))&&(a14==8))&&(a25==1)))&&!(a24==1))&&(a7==1))){ + a19 = 3; + a24 = 1; + a29 = 7; + return 23; + } else if(((a28==1)&&((((a19==1)&&(((((a11==1)&&((((input==1)&&((a29==7)||(a29==8)))&&!(a20==1))&&(a24==1)))&&(a22==1))&&(a14==9))&&(a25==1)))&&(a7==1))&&(a0==1)))){ + a19 = 2; + a24 = 0; + a29 = 6; + a0 = 0; + a11 = 0; + a7 = 0; + return 24; + } else if(((((a0==1)&&(((a25==1)&&(((a19==2)&&((a7==1)&&(!(a20==1)&&((a14==8)&&(((a29==7)||(a29==8))&&(input==5))))))&&(a11==1)))&&(a22==1)))&&!(a24==1))&&(a28==1))){ + a7 = 0; + a11 = 0; + a29 = 6; + a19 = 5; + return 21; + } else if(((a25==1)&&((((a22==1)&&((a11==1)&&((a14==9)&&((!(a0==1)&&(!(a20==1)&&(((input==1)&&((a29==7)||((a29==5)||(a29==6))))&&(a28==1))))&&(a19==1)))))&&!(a24==1))&&(a7==1)))){ + a25 = 0; + a11 = 0; + a29 = 8; + a14 = 8; + a20 = 1; + return -1; + } else if((((a7==1)&&((a28==1)&&((((a22==1)&&((a14==9)&&(((a20==1)&&((input==5)&&(((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))))&&(a24==1))))&&(a11==1))&&(a0==1))))&&(a25==1))){ + a14 = 8; + a19 = 1; + a29 = 5; + return -1; + } else if(((a20==1)&&(((((((((a28==1)&&(((((a29==9)&&(a19==4))||((a29==5)&&(a19==5)))||((a29==6)&&(a19==5)))&&(input==5)))&&!(a7==1))&&(a0==1))&&!(a24==1))&&!(a25==1))&&!(a11==1))&&(a22==1))&&(a14==9)))){ + a29 = 6; + a7 = 1; + a20 = 0; + a19 = 1; + a25 = 1; + a11 = 1; + return 24; + } else if(((a7==1)&&((!(a20==1)&&(((((a22==1)&&((a0==1)&&(((a28==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==4)))&&!(a11==1))))&&(a19==5))&&(a14==8))&&!(a25==1)))&&!(a24==1)))){ + a29 = 6; + a19 = 4; + return -1; + } else if((((a28==1)&&((!(a11==1)&&(!(a7==1)&&((a14==8)&&((((a19==2)&&((((a29==8)||(a29==9))&&(input==4))&&(a25==1)))&&!(a20==1))&&(a22==1)))))&&(a0==1)))&&(a24==1))){ + a24 = 0; + a29 = 8; + a19 = 3; + return 21; + } else if(((a28==1)&&((a11==1)&&((!(a0==1)&&(!(a24==1)&&(!(a7==1)&&((a25==1)&&((a14==8)&&((a20==1)&&(((((a19==4)&&(a29==8))||((a19==4)&&(a29==9)))||((a19==5)&&(a29==5)))&&(input==1))))))))&&(a22==1))))){ + a19 = 2; + a29 = 7; + a24 = 1; + a14 = 9; + return 21; + } else if(((a14==8)&&(((!(a25==1)&&(((a7==1)&&((a24==1)&&((a20==1)&&((!(a11==1)&&(((a29==8)||(a29==9))&&(input==6)))&&(a28==1)))))&&(a0==1)))&&(a19==1))&&(a22==1)))){ + a19 = 4; + a20 = 0; + a7 = 0; + a0 = 0; + a29 = 9; + return 24; + } else if((((a0==1)&&((a25==1)&&((a14==10)&&(((a11==1)&&(((((a22==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==3)))&&(a19==5))&&(a7==1))&&(a28==1)))&&!(a20==1)))))&&(a24==1))){ + a24 = 0; + a25 = 0; + a11 = 0; + a14 = 8; + a29 = 8; + return 24; + } else if(((a7==1)&&((((a22==1)&&(((!(a25==1)&&(((a20==1)&&((((a29==6)||(a29==7))&&(input==1))&&(a0==1)))&&(a28==1)))&&(a11==1))&&(a14==8)))&&(a19==1))&&!(a24==1)))){ + a29 = 6; + a24 = 1; + a19 = 2; + a0 = 0; + a25 = 1; + return 24; + } return calculate_output31(input); + } + + int calculate_output31(int input) { + if((!(a20==1)&&(((((a7==1)&&(((((((input==6)&&(a0==1))&&(a22==1))&&(a11==1))&&(a28==1))&&(a14==10))&&!(a25==1)))&&(a24==1))&&(a29==6))&&(a19==1)))){ + a14 = 8; + a29 = 5; + a25 = 1; + a20 = 1; + return -1; + } else if((!(a24==1)&&((a7==1)&&(!(a25==1)&&(((a20==1)&&((a22==1)&&((((((input==4)&&(a28==1))&&(a0==1))&&(a29==7))&&(a14==9))&&(a11==1))))&&(a19==4)))))){ + a14 = 8; + a29 = 6; + a7 = 0; + a19 = 5; + a24 = 1; + a25 = 1; + a0 = 0; + a20 = 0; + return 23; + } else if(((((((((((((input==1)&&!(a11==1))&&!(a7==1))&&(a0==1))&&!(a25==1))&&(a24==1))&&(a29==6))&&(a28==1))&&!(a20==1))&&(a19==4))&&(a14==8))&&(a22==1))){ + a24 = 0; + a19 = 2; + a29 = 7; + return 21; + } else if((((a19==1)&&(((a28==1)&&((a22==1)&&((!(a24==1)&&((a7==1)&&(((a25==1)&&((input==3)&&((a29==5)||(a29==6))))&&!(a20==1))))&&(a11==1))))&&(a0==1)))&&(a14==8))){ + a7 = 0; + a19 = 4; + a29 = 6; + a25 = 0; + a0 = 0; + a20 = 1; + return 24; + } else if(((((((!(a20==1)&&((a14==8)&&(((a11==1)&&((((a29==5)||(a29==6))&&(input==2))&&!(a25==1)))&&(a24==1))))&&!(a7==1))&&(a0==1))&&(a22==1))&&(a19==4))&&(a28==1))){ + a29 = 6; + a25 = 1; + a11 = 0; + a24 = 0; + a19 = 1; + a20 = 1; + return 24; + } else if(((((a28==1)&&((a19==4)&&((a14==9)&&((a22==1)&&((a29==9)&&((a7==1)&&((!(a24==1)&&((input==5)&&(a0==1)))&&!(a25==1))))))))&&!(a11==1))&&!(a20==1))){ + a11 = 1; + a29 = 8; + a24 = 1; + a14 = 8; + a19 = 1; + return 24; + } else if((((((a29==6)&&((!(a7==1)&&((a14==8)&&((a0==1)&&(((a28==1)&&(!(a24==1)&&(input==1)))&&(a19==2)))))&&!(a11==1)))&&(a25==1))&&(a20==1))&&(a22==1))){ + a14 = 9; + a7 = 1; + a20 = 0; + a29 = 5; + a19 = 4; + a11 = 1; + return 23; + } else if((((((a28==1)&&(((a22==1)&&(!(a25==1)&&(((a0==1)&&((a19==1)&&((input==5)&&((a29==8)||((a29==6)||(a29==7))))))&&!(a20==1))))&&(a7==1)))&&(a24==1))&&!(a11==1))&&(a14==8))){ + a25 = 1; + a29 = 5; + a11 = 1; + a20 = 1; + return -1; + } else if(((!(a0==1)&&(!(a20==1)&&((a22==1)&&((a25==1)&&((!(a7==1)&&((((a14==9)&&((input==1)&&((a29==6)||(a29==7))))&&!(a24==1))&&!(a11==1)))&&(a28==1))))))&&(a19==3))){ + a24 = 1; + a14 = 8; + a29 = 7; + a19 = 5; + a11 = 1; + return 24; + } else if(((a7==1)&&(((a22==1)&&((a19==3)&&((a28==1)&&(((a14==9)&&(((a0==1)&&(((input==3)&&(a11==1))&&(a20==1)))&&(a25==1)))&&(a29==9)))))&&!(a24==1)))){ + a29 = 6; + a14 = 8; + a24 = 1; + a0 = 0; + a20 = 0; + a7 = 0; + return 24; + } else if((((((((((!(a0==1)&&((input==6)&&(((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))))&&(a20==1))&&(a24==1))&&(a22==1))&&!(a11==1))&&(a14==9))&&(a7==1))&&(a28==1))&&!(a25==1))){ + a29 = 6; + a20 = 0; + a14 = 8; + a19 = 4; + a0 = 1; + a7 = 0; + a24 = 0; + return -1; + } else if((((a20==1)&&((a14==9)&&(((a7==1)&&((a28==1)&&((a22==1)&&(!(a11==1)&&(((a25==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==6)))&&!(a0==1))))))&&(a19==3))))&&!(a24==1))){ + a20 = 0; + a25 = 0; + a0 = 1; + a19 = 4; + a29 = 9; + return -1; + } else if(((a20==1)&&(!(a25==1)&&(((a0==1)&&(((((a28==1)&&(((input==1)&&((((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))||((a19==5)&&(a29==6))))&&!(a7==1)))&&(a24==1))&&(a11==1))&&(a22==1)))&&(a14==8))))){ + a29 = 8; + a24 = 0; + a19 = 3; + a7 = 1; + return 24; + } else if(((((((a14==10)&&((a11==1)&&(((a29==9)&&(((a25==1)&&((a28==1)&&(input==4)))&&(a20==1)))&&(a19==1))))&&(a0==1))&&(a22==1))&&!(a24==1))&&(a7==1))){ + a25 = 0; + a24 = 1; + a7 = 0; + a0 = 0; + a14 = 8; + a20 = 0; + a11 = 0; + a19 = 4; + return -1; + } else if(((a14==8)&&(((!(a7==1)&&(((!(a24==1)&&((((a22==1)&&((input==1)&&((a29==9)||((a29==7)||(a29==8)))))&&(a25==1))&&!(a20==1)))&&(a19==2))&&!(a0==1)))&&(a28==1))&&(a11==1)))){ + a0 = 1; + a29 = 5; + a19 = 1; + a20 = 1; + a7 = 1; + a24 = 1; + return -1; + } else if((((a19==2)&&((((a25==1)&&((((a24==1)&&(((((a29==8)||(a29==9))&&(input==2))&&!(a20==1))&&(a22==1)))&&(a28==1))&&(a11==1)))&&(a7==1))&&(a0==1)))&&(a14==9))){ + a19 = 1; + a20 = 1; + a25 = 0; + a0 = 0; + a14 = 8; + a29 = 7; + return 23; + } else if(((a28==1)&&(((((((!(a0==1)&&(!(a20==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==5))&&(a7==1))))&&(a14==8))&&(a11==1))&&(a22==1))&&(a25==1))&&(a24==1))&&(a19==5)))){ + a0 = 1; + a19 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if((!(a0==1)&&(((a19==1)&&((!(a11==1)&&(((a24==1)&&((((a22==1)&&((a28==1)&&(input==1)))&&(a7==1))&&!(a20==1)))&&(a29==9)))&&(a14==8)))&&!(a25==1)))){ + a19 = 2; + a29 = 8; + a11 = 1; + a20 = 1; + return 24; + } else if(((a11==1)&&((((a22==1)&&((a24==1)&&((((a7==1)&&((a14==8)&&(((input==1)&&((a29==5)||(a29==6)))&&!(a25==1))))&&(a28==1))&&!(a0==1))))&&!(a20==1))&&(a19==5)))){ + a25 = 1; + a29 = 5; + a19 = 1; + a20 = 1; + a0 = 1; + return -1; + } else if(((a0==1)&&((((a14==9)&&((a7==1)&&(!(a20==1)&&(((a28==1)&&((a29==7)&&((!(a24==1)&&(input==4))&&!(a11==1))))&&(a22==1)))))&&(a19==2))&&!(a25==1)))){ + a25 = 1; + a20 = 1; + a29 = 8; + a19 = 5; + return -1; + } else if((!(a24==1)&&(!(a11==1)&&(((((((!(a20==1)&&(!(a25==1)&&((input==4)&&(a19==1))))&&(a14==8))&&(a29==6))&&(a28==1))&&!(a0==1))&&(a7==1))&&(a22==1))))){ + a7 = 0; + a29 = 7; + a14 = 9; + a24 = 1; + a25 = 1; + return 21; + } else if((((a28==1)&&(!(a25==1)&&((a19==2)&&(!(a7==1)&&(((a0==1)&&(((a14==8)&&((a29==8)&&((input==3)&&(a22==1))))&&!(a20==1)))&&!(a11==1))))))&&(a24==1))){ + a25 = 1; + a11 = 1; + a7 = 1; + a19 = 4; + a20 = 1; + a0 = 0; + a29 = 5; + return 23; + } else if(((a14==9)&&((!(a7==1)&&((((((a11==1)&&((((input==1)&&((a29==9)||((a29==7)||(a29==8))))&&!(a24==1))&&(a28==1)))&&!(a25==1))&&(a20==1))&&(a22==1))&&!(a0==1)))&&(a19==3)))){ + a29 = 5; + a25 = 1; + a7 = 1; + a24 = 1; + a19 = 1; + a0 = 1; + a14 = 8; + return -1; + } else if((((a19==2)&&((((!(a20==1)&&((a11==1)&&((((((a29==8)||(a29==9))&&(input==5))&&(a7==1))&&!(a25==1))&&(a0==1))))&&(a22==1))&&(a28==1))&&!(a24==1)))&&(a14==9))){ + a25 = 1; + a19 = 1; + a24 = 1; + a29 = 9; + return -1; + } else if(((a28==1)&&((((a19==1)&&((a14==9)&&(!(a24==1)&&(((!(a25==1)&&(((input==1)&&(((a29==5)||(a29==6))||(a29==7)))&&!(a0==1)))&&!(a7==1))&&!(a20==1)))))&&!(a11==1))&&(a22==1)))){ + a24 = 1; + a14 = 8; + a20 = 1; + a29 = 9; + a11 = 1; + a25 = 1; + return 24; + } else if((!(a24==1)&&((a28==1)&&((((a0==1)&&(!(a11==1)&&(((a20==1)&&((((((a29==8)&&(a19==3))||((a29==9)&&(a19==3)))||((a19==4)&&(a29==5)))&&(input==4))&&(a22==1)))&&(a14==8))))&&!(a7==1))&&(a25==1))))){ + a11 = 1; + a0 = 0; + a29 = 5; + a19 = 3; + a24 = 1; + a20 = 0; + return 21; + } else if((!(a20==1)&&(!(a0==1)&&((a24==1)&&((a11==1)&&((a22==1)&&((a14==9)&&((((((input==4)&&(a28==1))&&(a7==1))&&(a25==1))&&(a29==6))&&(a19==2))))))))){ + a14 = 8; + a0 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a19==4)&&((((a14==8)&&((a20==1)&&(((((((input==1)&&(((a29==5)||(a29==6))||(a29==7)))&&(a25==1))&&(a7==1))&&(a22==1))&&!(a11==1))&&(a28==1))))&&!(a0==1))&&!(a24==1)))){ + a24 = 1; + a11 = 1; + a0 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a20==1)&&(((!(a0==1)&&(((a19==5)&&((a7==1)&&(!(a25==1)&&((((input==1)&&(a22==1))&&(a24==1))&&(a14==9)))))&&!(a11==1)))&&(a29==6))&&(a28==1)))){ + a29 = 7; + a20 = 0; + a19 = 2; + a14 = 8; + a7 = 0; + a11 = 1; + return -1; + } else if(((a7==1)&&(!(a20==1)&&((a19==1)&&((a25==1)&&(!(a24==1)&&(((a14==8)&&((a11==1)&&(!(a0==1)&&((a22==1)&&((input==1)&&((a29==8)||(a29==9)))))))&&(a28==1)))))))){ + a7 = 0; + a29 = 5; + a11 = 0; + return 24; + } else if(((!(a0==1)&&((a19==2)&&((a28==1)&&(((a11==1)&&((((a14==8)&&((a25==1)&&((input==4)&&((a29==6)||(a29==7)))))&&(a22==1))&&!(a7==1)))&&!(a20==1)))))&&(a24==1))){ + a20 = 1; + a0 = 1; + a7 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((a22==1)&&((a20==1)&&((!(a24==1)&&((a14==8)&&((a25==1)&&(!(a7==1)&&((a28==1)&&((a0==1)&&((a19==5)&&((input==6)&&((a29==7)||(a29==8))))))))))&&!(a11==1))))){ + a29 = 6; + a24 = 1; + a25 = 0; + a11 = 1; + a19 = 4; + a20 = 0; + a0 = 0; + return 24; + } else if(((a11==1)&&(((a28==1)&&(!(a0==1)&&(((a22==1)&&((a24==1)&&(!(a20==1)&&((a14==9)&&((a19==2)&&(((a29==8)||(a29==9))&&(input==4)))))))&&!(a25==1))))&&(a7==1)))){ + a29 = 8; + a14 = 8; + return 24; + } else if(((a22==1)&&((((((((a28==1)&&((a19==2)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==3))&&!(a24==1))))&&(a11==1))&&!(a20==1))&&(a14==8))&&!(a7==1))&&(a0==1))&&!(a25==1)))){ + a29 = 7; + a20 = 1; + a24 = 1; + a0 = 0; + a19 = 4; + a7 = 1; + return 21; + } else if((((a28==1)&&((!(a0==1)&&((!(a20==1)&&((!(a24==1)&&((((input==3)&&(a14==9))&&(a22==1))&&(a11==1)))&&(a19==5)))&&(a7==1)))&&(a29==8)))&&(a25==1))){ + a29 = 9; + a20 = 1; + a19 = 3; + a14 = 8; + a24 = 1; + return -1; + } else if(((a28==1)&&(((!(a24==1)&&((a19==1)&&(!(a11==1)&&(!(a25==1)&&((!(a0==1)&&((a14==9)&&(((a29==7)||(a29==8))&&(input==2))))&&(a7==1))))))&&(a20==1))&&(a22==1)))){ + a20 = 0; + a29 = 6; + a14 = 8; + a25 = 1; + return 23; + } else if((!(a11==1)&&(((((a24==1)&&((a28==1)&&(((((a19==1)&&(((a29==5)||(a29==6))&&(input==3)))&&(a14==8))&&(a0==1))&&(a20==1))))&&!(a7==1))&&(a25==1))&&(a22==1)))){ + a29 = 9; + a11 = 1; + a20 = 0; + a0 = 0; + a19 = 5; + return 23; + } else if((((a14==9)&&((a25==1)&&((a22==1)&&(!(a11==1)&&(!(a7==1)&&((((a28==1)&&((input==1)&&(((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))))&&(a24==1))&&!(a0==1)))))))&&(a20==1))){ + a0 = 1; + a7 = 1; + a19 = 4; + a29 = 5; + a11 = 1; + a20 = 0; + return 24; + } else if(((((a19==4)&&((((a11==1)&&((a0==1)&&((a28==1)&&((a14==8)&&((a25==1)&&((input==2)&&(a20==1)))))))&&(a29==7))&&(a22==1)))&&!(a7==1))&&!(a24==1))){ + a11 = 0; + a19 = 1; + a29 = 5; + a20 = 0; + return 24; + } else if((((a22==1)&&((a20==1)&&((a11==1)&&((a19==4)&&((a28==1)&&(((a25==1)&&((((input==5)&&(a7==1))&&(a0==1))&&(a24==1)))&&(a29==9)))))))&&(a14==10))){ + a25 = 0; + a20 = 0; + a29 = 8; + a14 = 9; + return -1; + } else if(((a28==1)&&((((a7==1)&&((((a19==4)&&((((a14==8)&&((input==4)&&(a22==1)))&&(a20==1))&&!(a0==1)))&&!(a24==1))&&(a25==1)))&&!(a11==1))&&(a29==8)))){ + a24 = 1; + a25 = 0; + a7 = 0; + a29 = 9; + a11 = 1; + return -1; + } else if(((!(a24==1)&&(((a22==1)&&((a20==1)&&((((a19==4)&&(((a28==1)&&((input==3)&&((a29==7)||(a29==8))))&&(a7==1)))&&(a11==1))&&!(a25==1))))&&(a0==1)))&&(a14==8))){ + a19 = 1; + a24 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if((!(a20==1)&&(((a22==1)&&((a28==1)&&(((!(a7==1)&&((a25==1)&&(((((a29==5)&&(a19==2))||(((a19==1)&&(a29==8))||((a29==9)&&(a19==1))))&&(input==1))&&(a0==1))))&&!(a11==1))&&(a14==8))))&&!(a24==1)))){ + a29 = 7; + a25 = 0; + a19 = 3; + a7 = 1; + return -1; + } else if(((a11==1)&&((a14==9)&&((a24==1)&&((a22==1)&&((a7==1)&&(((!(a0==1)&&((((input==2)&&(a28==1))&&!(a20==1))&&!(a25==1)))&&(a29==6))&&(a19==5)))))))){ + a14 = 8; + a24 = 0; + a11 = 0; + a25 = 1; + return 24; + } else if(((a29==9)&&((a28==1)&&(!(a25==1)&&(((a24==1)&&((((a14==10)&&(((!(a20==1)&&(input==6))&&(a0==1))&&(a11==1)))&&(a19==4))&&(a7==1)))&&(a22==1)))))){ + a0 = 0; + a24 = 0; + a20 = 1; + a11 = 0; + a14 = 9; + return -1; + } else if(((!(a11==1)&&((!(a20==1)&&(((a14==8)&&(((((((a25==1)&&(a29==9))&&(a19==5))||((a19==1)&&(!(a25==1)&&(a29==5))))&&(input==3))&&(a28==1))&&(a0==1)))&&(a7==1)))&&(a22==1)))&&!(a24==1))){ + a19 = 1; + a11 = 1; + a25 = 1; + a24 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if(((a22==1)&&((a19==1)&&((a14==8)&&(((!(a24==1)&&((a20==1)&&(((a28==1)&&(((input==5)&&(a29==7))&&(a0==1)))&&(a25==1))))&&(a11==1))&&(a7==1)))))){ + a11 = 0; + a29 = 6; + a19 = 5; + a7 = 0; + a25 = 0; + return 21; + } else if((((a28==1)&&((!(a20==1)&&((!(a11==1)&&((a7==1)&&((a25==1)&&((((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))||((a19==3)&&(a29==6)))&&(input==4))&&(a22==1)))))&&(a14==9)))&&(a0==1)))&&!(a24==1))){ + a19 = 3; + a29 = 7; + a20 = 1; + a7 = 0; + a24 = 1; + return 23; + } else if((!(a20==1)&&(((((((((a7==1)&&(((input==4)&&((a29==7)||((a29==5)||(a29==6))))&&(a14==8)))&&(a28==1))&&(a22==1))&&(a11==1))&&(a25==1))&&!(a0==1))&&(a19==3))&&(a24==1)))){ + a29 = 5; + a19 = 2; + a20 = 1; + a25 = 0; + return 24; + } else if(((a24==1)&&(((a14==8)&&(((a28==1)&&((a11==1)&&((!(a25==1)&&((((a22==1)&&(input==4))&&(a19==4))&&(a29==6)))&&(a20==1))))&&!(a0==1)))&&(a7==1)))){ + a14 = 9; + a11 = 0; + a25 = 1; + a24 = 0; + a29 = 8; + a0 = 1; + return 21; + } else if(((!(a7==1)&&(!(a20==1)&&(((((a14==9)&&((a28==1)&&((((input==3)&&((a29==8)||(a29==9)))&&(a22==1))&&!(a24==1))))&&(a19==5))&&(a25==1))&&!(a0==1))))&&(a11==1))){ + a7 = 1; + a19 = 1; + a14 = 8; + a24 = 1; + a29 = 5; + a20 = 1; + a0 = 1; + return -1; + } else if((!(a7==1)&&(!(a11==1)&&(!(a20==1)&&(!(a0==1)&&((((a25==1)&&((((a24==1)&&((input==3)&&(a29==9)))&&(a28==1))&&(a14==8)))&&(a22==1))&&(a19==1))))))){ + a20 = 1; + a19 = 3; + a25 = 0; + a0 = 1; + a14 = 9; + return 21; + } else if((((a11==1)&&(!(a20==1)&&((!(a7==1)&&(((a19==5)&&((((a14==8)&&((a29==6)&&(input==4)))&&!(a0==1))&&(a24==1)))&&(a25==1)))&&(a28==1))))&&(a22==1))){ + a29 = 5; + a25 = 0; + a20 = 1; + a19 = 3; + a7 = 1; + return -1; + } else if((!(a11==1)&&((!(a20==1)&&(((!(a24==1)&&((a22==1)&&(!(a7==1)&&(!(a0==1)&&((input==4)&&(((a19==4)&&(a29==6))||(((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))))))))&&(a14==9))&&(a28==1)))&&!(a25==1)))){ + a0 = 1; + a11 = 1; + a19 = 4; + a29 = 8; + a7 = 1; + return -1; + } else if(((((((((a19==1)&&((a28==1)&&((!(a0==1)&&((input==1)&&((a29==7)||(a29==8))))&&(a14==8))))&&(a25==1))&&(a7==1))&&!(a20==1))&&(a22==1))&&(a24==1))&&!(a11==1))){ + a11 = 1; + a14 = 9; + a24 = 0; + a19 = 3; + a29 = 8; + return 21; + } else if((((a28==1)&&((a24==1)&&(((a0==1)&&(!(a25==1)&&((((a14==10)&&((a19==2)&&((((a29==6)||(a29==7))||(a29==8))&&(input==5))))&&(a11==1))&&!(a20==1))))&&(a22==1))))&&!(a7==1))){ + a29 = 9; + a19 = 3; + a14 = 8; + a20 = 1; + a0 = 0; + return 21; + } else if((!(a0==1)&&((a24==1)&&((a11==1)&&(((a28==1)&&((((a22==1)&&((((input==6)&&((a29==5)||(a29==6)))&&!(a7==1))&&(a19==1)))&&!(a25==1))&&(a14==8)))&&!(a20==1)))))){ + a25 = 1; + a0 = 1; + a29 = 5; + a7 = 1; + a20 = 1; + return -1; + } else if(((a22==1)&&(((a19==2)&&((a11==1)&&((((a28==1)&&((a14==8)&&(!(a20==1)&&((a24==1)&&(((a29==5)||(a29==6))&&(input==1))))))&&!(a7==1))&&!(a0==1))))&&!(a25==1)))){ + a29 = 8; + a25 = 1; + return -1; + } else if((((a25==1)&&((a28==1)&&(!(a7==1)&&((a29==5)&&(!(a11==1)&&((((a14==8)&&((a22==1)&&((input==2)&&(a20==1))))&&(a24==1))&&(a0==1)))))))&&(a19==4))){ + a11 = 1; + a0 = 0; + a20 = 0; + return 21; + } else if((((((a24==1)&&(((a25==1)&&(!(a0==1)&&(((!(a20==1)&&(((a29==5)||(a29==6))&&(input==2)))&&(a14==8))&&(a22==1))))&&(a19==1)))&&(a11==1))&&(a7==1))&&(a28==1))){ + a29 = 5; + a0 = 1; + a20 = 1; + return -1; + } else if(((((((((((((((a29==9)&&(a19==4))||((a29==5)&&(a19==5)))||((a29==6)&&(a19==5)))&&(input==4))&&(a11==1))&&(a20==1))&&!(a25==1))&&!(a7==1))&&(a28==1))&&(a0==1))&&(a24==1))&&(a22==1))&&(a14==8))){ + a24 = 0; + a19 = 2; + a29 = 6; + a7 = 1; + return 21; + } else if(((a19==2)&&(((a20==1)&&(((a11==1)&&(((a0==1)&&(((a14==9)&&((((a29==6)||(a29==7))&&(input==4))&&(a28==1)))&&!(a7==1)))&&(a22==1)))&&(a25==1)))&&!(a24==1)))){ + a29 = 5; + a7 = 1; + a14 = 8; + a19 = 1; + a24 = 1; + return -1; + } else if(((((a28==1)&&((((a24==1)&&(!(a7==1)&&((a11==1)&&((((((a29==5)||(a29==6))||(a29==7))&&(input==1))&&!(a25==1))&&(a19==1)))))&&(a0==1))&&(a14==9)))&&(a22==1))&&(a20==1))){ + a20 = 0; + a19 = 2; + a11 = 0; + a0 = 0; + a24 = 0; + a7 = 1; + a29 = 6; + return 24; + } else if((!(a7==1)&&((((a28==1)&&((((a19==2)&&((((a14==9)&&((input==5)&&(a11==1)))&&!(a0==1))&&(a25==1)))&&(a29==8))&&(a20==1)))&&!(a24==1))&&(a22==1)))){ + a14 = 8; + a24 = 1; + a29 = 7; + a19 = 5; + a25 = 0; + a20 = 0; + return -1; + } else if(((a22==1)&&(((a7==1)&&((a28==1)&&(((a25==1)&&((((((input==4)&&(a29==8))&&(a19==3))&&(a20==1))&&!(a0==1))&&(a24==1)))&&(a14==9))))&&(a11==1)))){ + a19 = 2; + a29 = 9; + a11 = 0; + a0 = 1; + a7 = 0; + a20 = 0; + return 23; + } else if((!(a11==1)&&(((!(a24==1)&&((a0==1)&&(((a22==1)&&((((((a19==5)&&((a25==1)&&(a29==9)))||((!(a25==1)&&(a29==5))&&(a19==1)))||(((a29==6)&&!(a25==1))&&(a19==1)))&&(input==5))&&(a14==8)))&&(a28==1))))&&(a7==1))&&(a20==1)))){ + a11 = 1; + a7 = 0; + a25 = 1; + a19 = 1; + a29 = 6; + a14 = 9; + return 24; + } else if((((a14==9)&&(((a22==1)&&(!(a7==1)&&((a25==1)&&(((a11==1)&&((((input==6)&&(a24==1))&&(a28==1))&&!(a0==1)))&&!(a20==1)))))&&(a29==9)))&&(a19==5))){ + a19 = 4; + a29 = 7; + return -1; + } else if((!(a11==1)&&(!(a0==1)&&(((a22==1)&&((a28==1)&&(((((!(a24==1)&&((input==2)&&(a7==1)))&&(a14==9))&&!(a20==1))&&(a19==4))&&(a29==9))))&&!(a25==1))))){ + a20 = 1; + a19 = 1; + a0 = 1; + a14 = 8; + a11 = 1; + a25 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if((((a11==1)&&((((a28==1)&&((a14==9)&&(((((input==5)&&(((a29==5)&&(a19==4))||(((a19==3)&&(a29==8))||((a19==3)&&(a29==9)))))&&(a22==1))&&(a25==1))&&!(a7==1))))&&!(a20==1))&&(a24==1)))&&(a0==1))){ + a24 = 0; + a14 = 8; + a11 = 0; + a29 = 8; + a19 = 3; + return 24; + } else if(((a22==1)&&(((((!(a24==1)&&((a7==1)&&((a19==1)&&((!(a11==1)&&(((a29==8)||(a29==9))&&(input==4)))&&!(a0==1)))))&&(a25==1))&&(a28==1))&&!(a20==1))&&(a14==9)))){ + a11 = 1; + a20 = 1; + a14 = 8; + a24 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if(((a20==1)&&((((a28==1)&&(((a24==1)&&((((a14==8)&&((input==5)&&((((a19==3)&&(a29==8))||((a19==3)&&(a29==9)))||((a19==4)&&(a29==5)))))&&(a25==1))&&(a0==1)))&&!(a7==1)))&&(a22==1))&&(a11==1)))){ + a25 = 0; + a19 = 3; + a29 = 5; + return 24; + } else if((!(a24==1)&&((((a22==1)&&(((a28==1)&&((((((a19==1)&&((a29==5)&&!(a25==1)))||((((a29==8)&&(a25==1))&&(a19==5))||(((a25==1)&&(a29==9))&&(a19==5))))&&(input==4))&&(a14==8))&&(a7==1)))&&!(a20==1)))&&!(a0==1))&&(a11==1)))){ + a24 = 1; + a29 = 5; + a25 = 1; + a0 = 1; + a20 = 1; + a19 = 1; + return -1; + } else if((!(a7==1)&&((!(a20==1)&&(!(a25==1)&&((((a11==1)&&((a28==1)&&((a22==1)&&((input==3)&&(((a29==5)&&(a19==3))||(((a29==8)&&(a19==2))||((a29==9)&&(a19==2))))))))&&(a0==1))&&!(a24==1))))&&(a14==9)))){ + a0 = 0; + a19 = 4; + a11 = 0; + a29 = 7; + a14 = 8; + return 21; + } else if((((a25==1)&&(((((((((((a29==6)&&(a19==5))||(((a29==9)&&(a19==4))||((a29==5)&&(a19==5))))&&(input==2))&&(a7==1))&&(a14==9))&&(a24==1))&&(a22==1))&&(a28==1))&&(a11==1))&&!(a20==1)))&&(a0==1))){ + a0 = 0; + a24 = 0; + a19 = 5; + a11 = 0; + a7 = 0; + a29 = 9; + return 21; + } else if((((((!(a0==1)&&((((a28==1)&&((input==3)&&(((((a29==9)&&(a25==1))&&(a19==5))||((a19==1)&&(!(a25==1)&&(a29==5))))||((a19==1)&&((a29==6)&&!(a25==1))))))&&!(a20==1))&&(a22==1)))&&(a7==1))&&(a14==9))&&(a11==1))&&!(a24==1))){ + a24 = 1; + a7 = 0; + a20 = 1; + a14 = 8; + a19 = 2; + a25 = 1; + a29 = 6; + return 23; + } else if((!(a0==1)&&(((a24==1)&&((((a7==1)&&(!(a20==1)&&((a19==5)&&(((a22==1)&&((input==5)&&((a29==5)||(a29==6))))&&(a28==1)))))&&!(a25==1))&&(a11==1)))&&(a14==8)))){ + a29 = 5; + a20 = 1; + a25 = 1; + a0 = 1; + a19 = 1; + return -1; + } else if(((((a28==1)&&(((!(a20==1)&&((((a25==1)&&((a19==2)&&((input==1)&&((a29==9)||((a29==7)||(a29==8))))))&&(a14==8))&&(a22==1)))&&!(a24==1))&&!(a11==1)))&&(a7==1))&&(a0==1))){ + a29 = 6; + a19 = 4; + a24 = 1; + a11 = 1; + a0 = 0; + return 23; + } else if(((((a22==1)&&(((a14==8)&&((a19==1)&&(!(a0==1)&&(((a11==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==1))&&!(a25==1)))&&!(a20==1)))))&&(a7==1)))&&(a28==1))&&!(a24==1))){ + a29 = 7; + a19 = 3; + a11 = 0; + a0 = 1; + return -1; + } else if(((a11==1)&&((!(a0==1)&&((a24==1)&&((((a19==5)&&((((a28==1)&&((a7==1)&&(input==5)))&&(a22==1))&&(a25==1)))&&(a29==8))&&(a14==8))))&&(a20==1)))){ + a14 = 9; + a20 = 0; + a7 = 0; + a29 = 5; + a0 = 1; + a11 = 0; + a25 = 0; + return 24; + } else if((((((((((((a19==2)&&((input==4)&&((a29==5)||(a29==6))))&&(a14==9))&&(a11==1))&&(a0==1))&&(a24==1))&&(a22==1))&&!(a7==1))&&!(a25==1))&&!(a20==1))&&(a28==1))){ + a14 = 10; + a7 = 1; + a20 = 1; + a29 = 5; + a19 = 5; + return 24; + } else if((((a28==1)&&(((a19==1)&&((a7==1)&&(((((a0==1)&&((a22==1)&&((input==5)&&((a29==9)||((a29==7)||(a29==8))))))&&!(a20==1))&&(a14==10))&&(a24==1))))&&!(a25==1)))&&(a11==1))){ + a14 = 8; + a20 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if((!(a7==1)&&((a20==1)&&(((((a25==1)&&((a24==1)&&((!(a11==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==6))&&(a28==1)))&&(a0==1))))&&(a14==9))&&(a22==1))&&(a19==2))))){ + a25 = 0; + a0 = 0; + a11 = 1; + a19 = 4; + a14 = 8; + a7 = 1; + a20 = 0; + a29 = 6; + return 23; + } else if(((((!(a11==1)&&(((a14==9)&&((!(a7==1)&&((a20==1)&&((a0==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==4)))))&&!(a24==1)))&&(a22==1)))&&(a28==1))&&(a19==1))&&!(a25==1))){ + a29 = 9; + a0 = 0; + a11 = 1; + a14 = 8; + a24 = 1; + a20 = 0; + a19 = 3; + return 23; + } else if((((a0==1)&&((a28==1)&&(((!(a24==1)&&(!(a7==1)&&((a19==1)&&((((input==5)&&((a29==5)||(a29==6)))&&(a22==1))&&(a14==8)))))&&!(a11==1))&&(a20==1))))&&(a25==1))){ + a29 = 7; + a7 = 1; + a19 = 2; + a14 = 9; + a11 = 1; + a20 = 0; + return 24; + } else if(((((a28==1)&&((((a25==1)&&((a20==1)&&(((a19==3)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==3))&&!(a11==1)))&&!(a0==1))))&&!(a24==1))&&(a7==1)))&&(a14==9))&&(a22==1))){ + a29 = 8; + a20 = 0; + a25 = 0; + a24 = 1; + a19 = 4; + a14 = 8; + a7 = 0; + a11 = 1; + return 24; + } else if((!(a25==1)&&(((a7==1)&&(((a19==5)&&((a29==8)&&((!(a11==1)&&((a14==9)&&(!(a24==1)&&(!(a20==1)&&(input==4)))))&&!(a0==1))))&&(a22==1)))&&(a28==1)))){ + a14 = 8; + a29 = 7; + a19 = 4; + a11 = 1; + return 23; + } else if((((a24==1)&&((a25==1)&&(((((!(a20==1)&&(((((a29==6)||(a29==7))&&(input==1))&&(a28==1))&&(a11==1)))&&(a19==4))&&!(a0==1))&&!(a7==1))&&(a22==1))))&&(a14==9))){ + a20 = 1; + a0 = 1; + a7 = 1; + a29 = 5; + a14 = 8; + a19 = 1; + return -1; + } else if(((((a19==2)&&((a24==1)&&(((a7==1)&&((((((input==4)&&((a29==8)||(a29==9)))&&(a25==1))&&(a11==1))&&(a28==1))&&(a14==9)))&&(a20==1))))&&(a22==1))&&(a0==1))){ + a14 = 8; + a19 = 1; + a29 = 5; + return -1; + } else if(((a28==1)&&(((a25==1)&&(!(a11==1)&&((a22==1)&&((((((a0==1)&&((input==5)&&(((a29==5)||(a29==6))||(a29==7))))&&(a19==3))&&(a14==8))&&(a7==1))&&!(a20==1)))))&&!(a24==1)))){ + a20 = 1; + a19 = 2; + a24 = 1; + a14 = 9; + a29 = 7; + a25 = 0; + return 23; + } else if((((a14==9)&&(!(a24==1)&&((((((a0==1)&&((a7==1)&&((a19==4)&&((input==5)&&(a25==1)))))&&(a29==5))&&(a28==1))&&!(a20==1))&&(a22==1))))&&(a11==1))){ + a29 = 8; + a25 = 0; + a14 = 10; + a7 = 0; + a24 = 1; + return 23; + } else if((((((((a14==8)&&((a29==6)&&((a22==1)&&(((!(a0==1)&&(input==3))&&(a20==1))&&(a19==5)))))&&!(a7==1))&&(a28==1))&&(a24==1))&&!(a11==1))&&(a25==1))){ + a29 = 5; + a0 = 1; + a11 = 1; + a19 = 1; + a7 = 1; + return -1; + } else if(((((a14==8)&&((a7==1)&&((a28==1)&&(!(a24==1)&&((((a22==1)&&((input==1)&&(((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))))&&!(a20==1))&&(a25==1))))))&&(a11==1))&&(a0==1))){ + a19 = 3; + a0 = 0; + a24 = 1; + a29 = 8; + return 24; + } else if(((((!(a20==1)&&((((a22==1)&&(((a28==1)&&((a14==9)&&((input==4)&&((a29==8)||((a29==6)||(a29==7))))))&&!(a7==1)))&&!(a11==1))&&(a19==3)))&&(a0==1))&&(a24==1))&&!(a25==1))){ + a11 = 1; + a14 = 8; + a25 = 1; + a7 = 1; + a29 = 5; + a20 = 1; + a19 = 1; + return -1; + } else if(((!(a7==1)&&(((!(a25==1)&&(((!(a24==1)&&((a28==1)&&((a22==1)&&(((a29==6)||(a29==7))&&(input==3)))))&&!(a0==1))&&!(a20==1)))&&(a19==2))&&!(a11==1)))&&(a14==8))){ + a20 = 1; + a14 = 9; + a19 = 5; + a25 = 1; + a7 = 1; + a29 = 6; + return 23; + } else if((!(a11==1)&&(((a28==1)&&(((a14==9)&&((input==3)&&(((a19==1)&&(((!(a24==1)&&((a20==1)&&(a7==1)))&&(a25==1))&&(a29==5)))||((((!(a25==1)&&((a24==1)&&(!(a7==1)&&!(a20==1))))&&(a29==8))&&(a19==5))||(((a29==9)&&(!(a25==1)&&((!(a20==1)&&!(a7==1))&&(a24==1))))&&(a19==5))))))&&(a0==1)))&&(a22==1)))){ + a25 = 0; + a24 = 1; + a20 = 0; + a7 = 1; + a29 = 9; + a19 = 1; + return 23; + } else if((((a14==9)&&(!(a11==1)&&(((((((((((a29==8)&&(a19==2))||((a29==9)&&(a19==2)))||((a19==3)&&(a29==5)))&&(input==3))&&!(a0==1))&&(a28==1))&&(a22==1))&&!(a20==1))&&(a7==1))&&(a25==1))))&&!(a24==1))){ + a0 = 1; + a11 = 1; + a25 = 0; + a19 = 1; + a24 = 1; + a29 = 7; + return 23; + } else if(((!(a24==1)&&((a19==5)&&((a11==1)&&((a20==1)&&(!(a0==1)&&((a28==1)&&(!(a7==1)&&((a22==1)&&(((a29==7)&&(input==2))&&!(a25==1))))))))))&&(a14==8))){ + a19 = 1; + a29 = 5; + a7 = 1; + a25 = 1; + a24 = 1; + a0 = 1; + return -1; + } else if(((a19==3)&&(((((((a0==1)&&((((((a29==7)||(a29==8))&&(input==3))&&!(a20==1))&&(a24==1))&&(a28==1)))&&(a22==1))&&!(a11==1))&&(a7==1))&&(a14==9))&&!(a25==1)))){ + a7 = 0; + a20 = 1; + a11 = 1; + a0 = 0; + a29 = 6; + a14 = 8; + return 23; + } else if(((a14==9)&&((a19==2)&&((a25==1)&&(((a0==1)&&((((a20==1)&&((a22==1)&&((a7==1)&&((input==5)&&(((a29==6)||(a29==7))||(a29==8))))))&&(a28==1))&&!(a24==1)))&&(a11==1)))))){ + a29 = 7; + a0 = 0; + a24 = 1; + a14 = 8; + a19 = 4; + return 23; + } else if(((!(a0==1)&&((a28==1)&&(((a14==9)&&(((!(a24==1)&&(((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))&&(input==5))&&!(a7==1)))&&(a20==1))&&(a11==1)))&&(a22==1))))&&(a25==1))){ + a0 = 1; + a20 = 0; + a19 = 1; + a29 = 6; + return -1; + } else if((((((a29==8)&&((!(a25==1)&&((((((a24==1)&&(input==1))&&(a0==1))&&(a20==1))&&!(a7==1))&&(a19==5)))&&!(a11==1)))&&(a22==1))&&(a28==1))&&(a14==9))){ + a7 = 1; + a29 = 9; + a11 = 1; + a25 = 1; + a19 = 1; + a0 = 0; + a14 = 8; + return 24; + } else if((((a28==1)&&((a19==3)&&((!(a20==1)&&(((a11==1)&&(!(a25==1)&&((((input==1)&&((a29==5)||(a29==6)))&&(a22==1))&&!(a24==1))))&&(a7==1)))&&(a14==9))))&&!(a0==1))){ + a29 = 5; + a7 = 0; + a25 = 1; + a0 = 1; + a14 = 8; + a19 = 2; + a11 = 0; + return 23; + } else if(((a25==1)&&((a22==1)&&(((a19==4)&&((!(a11==1)&&((a14==9)&&((!(a0==1)&&((a20==1)&&(((a29==8)||(a29==9))&&(input==5))))&&!(a24==1))))&&(a28==1)))&&!(a7==1))))){ + a11 = 1; + a14 = 8; + a20 = 0; + a24 = 1; + a29 = 6; + return 24; + } else if((!(a20==1)&&((a14==8)&&((a7==1)&&(((!(a11==1)&&(((a28==1)&&((((input==4)&&((a29==7)||(a29==8)))&&!(a24==1))&&(a25==1)))&&(a22==1)))&&(a19==1))&&(a0==1)))))){ + a29 = 8; + a7 = 0; + return 24; + } else if(((a28==1)&&(((!(a25==1)&&(((a22==1)&&((a19==3)&&((((((a29==9)||((a29==7)||(a29==8)))&&(input==4))&&(a14==8))&&!(a0==1))&&(a24==1))))&&!(a11==1)))&&!(a20==1))&&!(a7==1)))){ + a20 = 1; + a25 = 1; + a29 = 5; + a11 = 1; + return 23; + } else if((((!(a11==1)&&(((a24==1)&&(((a7==1)&&((((a25==1)&&((a28==1)&&(input==3)))&&(a19==3))&&!(a0==1)))&&(a14==9)))&&(a22==1)))&&(a29==6))&&!(a20==1))){ + a14 = 8; + return 23; + } else if((((((a22==1)&&(!(a11==1)&&(((a28==1)&&(!(a0==1)&&((a19==3)&&((a7==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==3))))))&&!(a25==1))))&&(a14==9))&&(a20==1))&&!(a24==1))){ + a29 = 7; + a14 = 8; + a19 = 1; + a7 = 0; + a20 = 0; + a0 = 1; + return 24; + } else if((((!(a7==1)&&((a19==1)&&((a11==1)&&((((((a20==1)&&((a28==1)&&(input==2)))&&!(a25==1))&&(a0==1))&&(a14==10))&&(a22==1)))))&&(a24==1))&&(a29==6))){ + a29 = 5; + a7 = 1; + a11 = 0; + a0 = 0; + a14 = 9; + a25 = 1; + return -1; + } else if(((a28==1)&&(((a19==4)&&(((a24==1)&&((a14==8)&&((a7==1)&&((a0==1)&&(((a25==1)&&((input==1)&&!(a20==1)))&&!(a11==1))))))&&(a29==6)))&&(a22==1)))){ + a11 = 1; + a20 = 1; + a19 = 1; + a14 = 9; + return 23; + } else if(((((a0==1)&&((((((a28==1)&&(((((a29==7)||(a29==8))&&(input==5))&&(a20==1))&&(a25==1)))&&(a22==1))&&!(a24==1))&&(a19==1))&&(a11==1)))&&(a14==8))&&!(a7==1))){ + a0 = 0; + a25 = 0; + a20 = 0; + a29 = 8; + a19 = 2; + a24 = 1; + a7 = 1; + return 21; + } else if((!(a11==1)&&((a14==9)&&((a22==1)&&((a28==1)&&((a25==1)&&(((!(a20==1)&&((((((a19==4)&&(a29==8))||((a29==9)&&(a19==4)))||((a29==5)&&(a19==5)))&&(input==4))&&(a7==1)))&&(a24==1))&&!(a0==1)))))))){ + a0 = 1; + a29 = 7; + a7 = 0; + a19 = 4; + a24 = 0; + a11 = 1; + return -1; + } else if((!(a11==1)&&((!(a25==1)&&((a28==1)&&((a19==2)&&((a0==1)&&(((!(a20==1)&&((a14==8)&&((((a29==5)||(a29==6))||(a29==7))&&(input==4))))&&!(a7==1))&&(a24==1))))))&&(a22==1)))){ + a11 = 1; + a0 = 0; + a7 = 1; + a20 = 1; + a29 = 7; + a19 = 1; + return 23; + } else if(((!(a7==1)&&((a25==1)&&((!(a24==1)&&(((!(a11==1)&&((a22==1)&&((a0==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==3)))))&&(a28==1))&&(a19==5)))&&(a14==9))))&&!(a20==1))){ + a29 = 5; + a11 = 1; + a7 = 1; + a14 = 8; + a20 = 1; + a19 = 1; + a24 = 1; + return -1; + } else if(((a22==1)&&((((a19==4)&&((((((a29==5)&&((a20==1)&&((input==5)&&(a14==8))))&&(a28==1))&&!(a25==1))&&(a7==1))&&!(a0==1)))&&(a24==1))&&(a11==1)))){ + a24 = 0; + a0 = 1; + a20 = 0; + a11 = 0; + a29 = 9; + a19 = 2; + return -1; + } else if((((a22==1)&&(((a14==9)&&((!(a20==1)&&(((a19==4)&&(!(a24==1)&&((((a29==8)||(a29==9))&&(input==4))&&!(a25==1))))&&(a28==1)))&&!(a0==1)))&&!(a7==1)))&&!(a11==1))){ + a0 = 1; + a11 = 1; + a25 = 1; + a29 = 9; + a20 = 1; + a19 = 5; + return -1; + } else if((!(a24==1)&&(!(a20==1)&&(((a19==2)&&((a11==1)&&((((a22==1)&&(!(a0==1)&&(((input==1)&&(((a29==5)||(a29==6))||(a29==7)))&&(a14==8))))&&!(a25==1))&&(a28==1))))&&(a7==1))))){ + a7 = 0; + a29 = 6; + a0 = 1; + a11 = 0; + return 21; + } else if(((a14==9)&&((a22==1)&&((((!(a7==1)&&((a28==1)&&(!(a25==1)&&((a0==1)&&((input==5)&&((((a29==8)&&(a19==2))||((a29==9)&&(a19==2)))||((a19==3)&&(a29==5))))))))&&(a24==1))&&!(a11==1))&&!(a20==1))))){ + a19 = 2; + a7 = 1; + a25 = 1; + a20 = 1; + a29 = 9; + return -1; + } else if((((a19==2)&&(!(a20==1)&&((a14==8)&&((a7==1)&&(!(a11==1)&&((a0==1)&&(!(a25==1)&&(((a22==1)&&(((a29==6)||(a29==7))&&(input==3)))&&(a28==1)))))))))&&!(a24==1))){ + a0 = 0; + a19 = 5; + a24 = 1; + a7 = 0; + a11 = 1; + a29 = 7; + a20 = 1; + return 23; + } else if((!(a0==1)&&((!(a20==1)&&((a14==9)&&(((a22==1)&&((((a28==1)&&((a24==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==3))))&&(a19==5))&&!(a25==1)))&&(a7==1))))&&!(a11==1)))){ + a25 = 1; + a24 = 0; + a11 = 1; + a19 = 1; + a29 = 6; + return -1; + } else if(((a14==9)&&(((a19==2)&&((!(a11==1)&&(((!(a0==1)&&((!(a24==1)&&((input==6)&&!(a7==1)))&&!(a20==1)))&&(a28==1))&&(a22==1)))&&(a29==7)))&&(a25==1)))){ + a0 = 1; + a29 = 5; + a7 = 1; + a19 = 1; + a20 = 1; + a14 = 8; + a11 = 1; + a24 = 1; + return -1; + } else if(((a25==1)&&(!(a7==1)&&(((a28==1)&&((!(a0==1)&&((a14==9)&&(!(a11==1)&&(((input==2)&&(((a29==6)&&(a19==4))||(((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))))&&(a24==1)))))&&(a22==1)))&&!(a20==1))))){ + a20 = 1; + a19 = 1; + a14 = 8; + a0 = 1; + a7 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if((((a0==1)&&((a19==3)&&(!(a24==1)&&(((a28==1)&&((a29==6)&&(((a7==1)&&(!(a11==1)&&((input==2)&&(a20==1))))&&!(a25==1))))&&(a22==1)))))&&(a14==8))){ + a0 = 0; + a24 = 1; + a29 = 5; + a11 = 1; + return 21; + } else if((((((((a22==1)&&((a19==1)&&(((((a24==1)&&(input==2))&&(a11==1))&&(a29==8))&&!(a0==1))))&&(a20==1))&&!(a25==1))&&(a14==8))&&!(a7==1))&&(a28==1))){ + a25 = 1; + a7 = 1; + a19 = 5; + return -1; + } else if(((((a7==1)&&((a22==1)&&(!(a0==1)&&(((a29==9)&&((((a14==8)&&((input==6)&&(a11==1)))&&(a19==2))&&!(a24==1)))&&(a20==1)))))&&!(a25==1))&&(a28==1))){ + a25 = 1; + a24 = 1; + a19 = 4; + a29 = 8; + a14 = 9; + return 21; + } else if((((a28==1)&&(!(a11==1)&&(((a0==1)&&(((((a20==1)&&((input==2)&&(((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))))&&(a7==1))&&(a22==1))&&(a14==9)))&&!(a25==1))))&&!(a24==1))){ + a29 = 8; + a24 = 1; + a25 = 1; + a19 = 1; + a11 = 1; + return 23; + } else if((((a25==1)&&(((a19==2)&&(((!(a24==1)&&(((((input==6)&&((a29==5)||(a29==6)))&&(a7==1))&&(a0==1))&&(a20==1)))&&(a14==8))&&(a28==1)))&&!(a11==1)))&&(a22==1))){ + a11 = 1; + a29 = 5; + a24 = 1; + a19 = 1; + return -1; + } else if(((a22==1)&&(((a19==4)&&((a29==9)&&((!(a11==1)&&(!(a20==1)&&((a7==1)&&((a14==8)&&(((a0==1)&&(input==3))&&!(a25==1))))))&&(a28==1))))&&(a24==1)))){ + a19 = 5; + a20 = 1; + a14 = 9; + a25 = 1; + a29 = 8; + a11 = 1; + a7 = 0; + return 24; + } else if(((((a14==8)&&(((((a28==1)&&(((((input==2)&&((a29==7)||(a29==8)))&&(a19==3))&&(a24==1))&&!(a0==1)))&&(a20==1))&&!(a11==1))&&(a25==1)))&&!(a7==1))&&(a22==1))){ + a14 = 9; + a19 = 4; + a11 = 1; + a29 = 6; + a24 = 0; + return 24; + } else if((((a19==1)&&((((((a28==1)&&(((a20==1)&&(((input==5)&&!(a0==1))&&(a11==1)))&&(a14==8)))&&(a22==1))&&!(a25==1))&&!(a24==1))&&!(a7==1)))&&(a29==6))){ + a19 = 5; + a11 = 0; + a20 = 0; + a25 = 1; + a7 = 1; + a24 = 1; + a29 = 9; + return 24; + } else if(((a29==6)&&((a28==1)&&((((((!(a7==1)&&((a25==1)&&(((a22==1)&&(input==6))&&(a20==1))))&&!(a24==1))&&(a19==5))&&!(a0==1))&&(a14==8))&&(a11==1))))){ + a20 = 0; + a19 = 2; + a7 = 1; + a25 = 0; + a11 = 0; + a0 = 1; + a29 = 9; + return 23; + } else if(((((a14==9)&&(((((a19==4)&&(((a28==1)&&(((input==3)&&!(a24==1))&&(a29==8)))&&(a11==1)))&&(a0==1))&&(a7==1))&&(a22==1)))&&!(a20==1))&&(a25==1))){ + a14 = 8; + a0 = 0; + a19 = 1; + a29 = 9; + a7 = 0; + a25 = 0; + return -1; + } else if(((a28==1)&&((((a29==8)&&((a22==1)&&((!(a7==1)&&(!(a20==1)&&((((input==4)&&(a25==1))&&!(a11==1))&&!(a0==1))))&&!(a24==1))))&&(a19==3))&&(a14==8)))){ + a14 = 9; + a20 = 1; + a7 = 1; + a29 = 7; + return 21; + } else if(((a20==1)&&((((a28==1)&&(!(a0==1)&&((a22==1)&&(!(a7==1)&&((a14==8)&&((input==1)&&((((a19==5)&&((a25==1)&&(a29==8)))||((a19==5)&&((a29==9)&&(a25==1))))||((a19==1)&&(!(a25==1)&&(a29==5))))))))))&&!(a24==1))&&!(a11==1)))){ + a25 = 1; + a29 = 6; + a19 = 2; + return -1; + } else if(((!(a7==1)&&((a0==1)&&((((a22==1)&&(((a19==5)&&(((a24==1)&&((input==6)&&(a28==1)))&&(a20==1)))&&(a11==1)))&&(a29==9))&&(a25==1))))&&(a14==9))){ + a19 = 2; + a0 = 0; + a29 = 6; + a11 = 0; + a14 = 8; + a7 = 1; + a25 = 0; + return -1; + } else if((!(a20==1)&&((a28==1)&&(!(a25==1)&&(!(a7==1)&&((a14==9)&&((a24==1)&&(((a22==1)&&(((input==1)&&(((a29==9)&&(a19==4))||((a29==5)&&(a19==5))))&&!(a11==1)))&&(a0==1))))))))){ + a20 = 1; + a0 = 0; + a14 = 8; + a25 = 1; + a7 = 1; + a19 = 4; + a29 = 9; + a11 = 1; + return 21; + } else if(((a24==1)&&((!(a7==1)&&(((a0==1)&&((((a14==10)&&((a25==1)&&(((((a19==1)&&(a29==8))||((a29==9)&&(a19==1)))||((a19==2)&&(a29==5)))&&(input==1))))&&(a28==1))&&(a11==1)))&&(a22==1)))&&(a20==1)))){ + a19 = 1; + a7 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if((((a28==1)&&(!(a24==1)&&(((a19==3)&&(((((!(a0==1)&&((a29==9)&&(input==2)))&&!(a7==1))&&!(a11==1))&&(a25==1))&&!(a20==1)))&&(a14==8))))&&(a22==1))){ + a20 = 1; + a29 = 8; + a14 = 9; + a7 = 1; + return 23; + } else if(((a24==1)&&(((!(a0==1)&&((a29==6)&&((a28==1)&&((a22==1)&&(((a7==1)&&(((input==1)&&!(a25==1))&&!(a20==1)))&&(a19==4))))))&&(a14==9))&&(a11==1)))){ + a19 = 1; + a25 = 1; + a14 = 8; + a20 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if((!(a7==1)&&((a20==1)&&(!(a0==1)&&((a11==1)&&((a28==1)&&((a24==1)&&(((((a19==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==2)))&&(a14==8))&&(a25==1))&&(a22==1))))))))){ + a29 = 5; + return -1; + } else if((((a24==1)&&((a0==1)&&(((a28==1)&&((((a25==1)&&(((a14==8)&&(!(a20==1)&&(input==6)))&&!(a11==1)))&&(a29==5))&&!(a7==1)))&&(a19==5))))&&(a22==1))){ + a11 = 1; + a7 = 1; + a20 = 1; + a19 = 1; + return -1; + } else if(((((((a7==1)&&(((a0==1)&&((a20==1)&&((a24==1)&&(((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))||((a19==4)&&(a29==6)))&&(input==6)))))&&(a22==1)))&&(a28==1))&&(a14==8))&&!(a11==1))&&!(a25==1))){ + a25 = 1; + a11 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if((((a19==5)&&(((a29==7)&&((a14==8)&&((!(a20==1)&&((a28==1)&&((a25==1)&&(((a11==1)&&(input==4))&&(a0==1)))))&&(a22==1))))&&(a24==1)))&&!(a7==1))){ + a11 = 0; + a29 = 8; + a19 = 4; + return 24; + } else if(((a29==5)&&(((((((a0==1)&&((!(a11==1)&&((!(a7==1)&&(input==2))&&(a22==1)))&&(a25==1)))&&(a14==8))&&(a24==1))&&(a28==1))&&!(a20==1))&&(a19==5)))){ + a7 = 1; + a14 = 9; + a11 = 1; + a25 = 0; + return 21; + } else if(((a22==1)&&(((((((((a29==5)&&(((a28==1)&&(input==5))&&!(a24==1)))&&(a0==1))&&(a19==5))&&(a11==1))&&(a14==9))&&!(a25==1))&&!(a20==1))&&!(a7==1)))){ + a25 = 1; + a24 = 1; + a19 = 1; + a20 = 1; + a14 = 8; + a7 = 1; + return -1; + } else if(((a28==1)&&((!(a24==1)&&((a19==5)&&(((((((a14==8)&&((input==5)&&((a29==6)||(a29==7))))&&!(a0==1))&&!(a20==1))&&(a7==1))&&(a22==1))&&(a11==1))))&&(a25==1)))){ + a29 = 8; + a19 = 3; + a20 = 1; + a7 = 0; + a24 = 1; + a25 = 0; + return 23; + } else if(((a25==1)&&((a24==1)&&((a20==1)&&(((a22==1)&&((a19==2)&&((a29==6)&&(!(a0==1)&&(!(a7==1)&&((a14==9)&&((a28==1)&&(input==5))))))))&&!(a11==1)))))){ + a7 = 1; + a14 = 8; + a25 = 0; + a19 = 4; + a20 = 0; + a24 = 0; + a11 = 1; + return 21; + } else if(((a0==1)&&(((a25==1)&&(!(a7==1)&&((a20==1)&&((((a22==1)&&(((a14==9)&&((input==5)&&((a29==7)||((a29==5)||(a29==6)))))&&(a28==1)))&&(a11==1))&&(a19==5)))))&&!(a24==1)))){ + a29 = 6; + a14 = 8; + a20 = 0; + a19 = 3; + a11 = 0; + return 23; + } else if((((a14==8)&&(!(a25==1)&&((a28==1)&&(((((a0==1)&&(((input==1)&&(((a19==2)&&(a29==9))||((a19==3)&&(a29==5))))&&(a7==1)))&&!(a11==1))&&(a24==1))&&(a22==1)))))&&(a20==1))){ + a11 = 1; + a29 = 5; + a19 = 1; + a25 = 1; + return -1; + } else if(((a22==1)&&((a0==1)&&((((a29==6)&&((a28==1)&&((((!(a7==1)&&((input==5)&&!(a25==1)))&&(a11==1))&&!(a20==1))&&!(a24==1))))&&(a14==8))&&(a19==2))))){ + a24 = 1; + a0 = 0; + a25 = 1; + a20 = 1; + a11 = 0; + a19 = 5; + a29 = 9; + return 23; + } else if((!(a7==1)&&(!(a11==1)&&(((a24==1)&&((((((a22==1)&&((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))&&(input==5)))&&!(a25==1))&&(a0==1))&&(a28==1))&&(a14==8)))&&(a20==1))))){ + a11 = 1; + a19 = 1; + a7 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if((((a7==1)&&(((((a22==1)&&(((a28==1)&&(((((a29==8)||((a29==6)||(a29==7)))&&(input==1))&&(a19==1))&&(a24==1)))&&!(a11==1)))&&(a25==1))&&(a20==1))&&(a14==9)))&&(a0==1))){ + a7 = 0; + a25 = 0; + a0 = 0; + a11 = 1; + a20 = 0; + a19 = 4; + a14 = 8; + a29 = 9; + return -1; + } else if(((a28==1)&&(((a22==1)&&(!(a7==1)&&(!(a20==1)&&(((a19==5)&&(((((input==2)&&((a29==7)||((a29==5)||(a29==6))))&&(a0==1))&&(a14==8))&&(a11==1)))&&(a24==1)))))&&!(a25==1)))){ + a20 = 1; + a24 = 0; + a19 = 1; + a11 = 0; + a29 = 6; + return 23; + } else if((((a28==1)&&((!(a24==1)&&(((a22==1)&&((a14==8)&&((input==5)&&(((a19==1)&&((!(a7==1)&&(a25==1))&&(a29==6)))||(((((a7==1)&&!(a25==1))&&(a29==9))&&(a19==5))||((a19==1)&&(((a25==1)&&!(a7==1))&&(a29==5))))))))&&(a11==1)))&&(a0==1)))&&!(a20==1))){ + a29 = 5; + a19 = 1; + a20 = 1; + a7 = 1; + a25 = 1; + a24 = 1; + return -1; + } else if(((a28==1)&&((((a22==1)&&((a19==4)&&(!(a20==1)&&(((((((a29==8)||(a29==9))&&(input==6))&&!(a25==1))&&!(a0==1))&&(a11==1))&&!(a24==1)))))&&(a7==1))&&(a14==8)))){ + a14 = 9; + a25 = 1; + a24 = 1; + a19 = 1; + a7 = 0; + a29 = 6; + return 24; + } else if(((a25==1)&&((a11==1)&&((((a22==1)&&(!(a20==1)&&((!(a24==1)&&((((input==5)&&((a29==9)||((a29==7)||(a29==8))))&&(a19==4))&&(a28==1)))&&!(a0==1))))&&(a14==9))&&!(a7==1))))){ + a7 = 1; + a0 = 1; + a20 = 1; + a14 = 8; + a29 = 5; + a24 = 1; + a19 = 1; + return -1; + } else if((((((!(a24==1)&&((a14==9)&&(!(a7==1)&&((a11==1)&&(((((a19==5)&&((a29==8)&&(a25==1)))||((a19==5)&&((a25==1)&&(a29==9))))||((a19==1)&&((a29==5)&&!(a25==1))))&&(input==1))))))&&(a28==1))&&(a20==1))&&(a22==1))&&(a0==1))){ + a25 = 1; + a14 = 8; + a20 = 0; + a19 = 5; + a0 = 0; + a29 = 6; + return 24; + } else if((((a24==1)&&((a19==1)&&((((a28==1)&&((a22==1)&&((!(a0==1)&&((a7==1)&&((a14==9)&&(input==4))))&&!(a11==1))))&&(a25==1))&&(a29==9))))&&(a20==1))){ + a14 = 8; + a29 = 5; + a11 = 1; + a0 = 1; + return -1; + } else if((((a20==1)&&((a14==8)&&((a29==8)&&(((((a28==1)&&((!(a0==1)&&((input==1)&&(a22==1)))&&!(a11==1)))&&(a19==1))&&(a24==1))&&(a25==1)))))&&!(a7==1))){ + a29 = 5; + a11 = 1; + a14 = 9; + a24 = 0; + a19 = 2; + return 23; + } else if(((a28==1)&&(!(a25==1)&&(((a7==1)&&((a19==2)&&(!(a24==1)&&((a0==1)&&((a11==1)&&((a14==8)&&(!(a20==1)&&((input==5)&&(((a29==5)||(a29==6))||(a29==7))))))))))&&(a22==1))))){ + a25 = 1; + a7 = 0; + a19 = 5; + a29 = 7; + a0 = 0; + return 24; + } else if(((a22==1)&&((((a7==1)&&(!(a24==1)&&((a14==9)&&((a20==1)&&(((((input==5)&&(a28==1))&&(a25==1))&&(a19==5))&&(a29==7))))))&&(a0==1))&&(a11==1)))){ + a20 = 0; + a29 = 5; + a24 = 1; + a19 = 3; + return 21; + } else if(((a19==3)&&((a22==1)&&(!(a7==1)&&((((a24==1)&&(((a20==1)&&(!(a25==1)&&(((input==5)&&((a29==7)||(a29==8)))&&(a14==8))))&&(a0==1)))&&(a28==1))&&!(a11==1)))))){ + a19 = 2; + a7 = 1; + a20 = 0; + a29 = 9; + a24 = 0; + a0 = 0; + return 21; + } else if((((a11==1)&&((a28==1)&&((a14==8)&&((a7==1)&&((a0==1)&&(!(a20==1)&&(((a19==1)&&((((a29==5)||(a29==6))&&(input==6))&&(a25==1)))&&(a24==1))))))))&&(a22==1))){ + a20 = 1; + a29 = 5; + return -1; + } else if(((a11==1)&&(!(a0==1)&&(!(a7==1)&&(((a28==1)&&((a19==3)&&((!(a24==1)&&(((a20==1)&&((input==6)&&((a29==5)||(a29==6))))&&(a22==1)))&&(a14==9))))&&!(a25==1)))))){ + a29 = 5; + a14 = 8; + a24 = 1; + a7 = 1; + return -1; + } else if((((a14==9)&&(((a28==1)&&((a7==1)&&((a0==1)&&((!(a25==1)&&(((a22==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==4)))&&(a24==1)))&&!(a11==1)))))&&!(a20==1)))&&(a19==1))){ + a20 = 1; + a14 = 8; + a11 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if((!(a24==1)&&((((a19==5)&&(((a29==5)&&(!(a7==1)&&((((a0==1)&&(!(a25==1)&&(input==5)))&&(a14==9))&&!(a11==1))))&&(a28==1)))&&!(a20==1))&&(a22==1)))){ + a19 = 4; + a29 = 9; + a24 = 1; + return 24; + } else if((((a19==3)&&((a14==9)&&((a7==1)&&((a25==1)&&((a22==1)&&((((((input==6)&&((a29==7)||(a29==8)))&&(a24==1))&&!(a0==1))&&(a11==1))&&(a28==1)))))))&&!(a20==1))){ + a14 = 8; + a29 = 5; + a0 = 1; + a25 = 0; + a24 = 0; + a11 = 0; + a19 = 4; + return 23; + } else if((!(a24==1)&&(((a11==1)&&((a20==1)&&(!(a0==1)&&((a22==1)&&(((!(a7==1)&&(((input==2)&&(a29==6))&&(a28==1)))&&!(a25==1))&&(a14==8))))))&&(a19==4)))){ + a24 = 1; + a7 = 1; + a29 = 9; + return -1; + } else if((((((a7==1)&&((a22==1)&&(((a28==1)&&((a20==1)&&(!(a24==1)&&(!(a25==1)&&((input==1)&&((a29==7)||((a29==5)||(a29==6))))))))&&(a11==1))))&&(a19==4))&&(a14==8))&&!(a0==1))){ + a29 = 5; + a24 = 1; + a19 = 1; + a0 = 1; + a25 = 1; + return -1; + } else if((!(a20==1)&&(((((a22==1)&&(((a19==2)&&((((a25==1)&&((input==3)&&((a29==7)||((a29==5)||(a29==6)))))&&!(a24==1))&&(a11==1)))&&(a7==1)))&&(a28==1))&&(a14==8))&&!(a0==1)))){ + a29 = 8; + a25 = 0; + a19 = 5; + a24 = 1; + a20 = 1; + a14 = 9; + a7 = 0; + return 21; + } else if((((a28==1)&&((a24==1)&&((a25==1)&&(((!(a20==1)&&((!(a7==1)&&((input==3)&&(((a29==5)&&(a19==4))||(((a29==8)&&(a19==3))||((a19==3)&&(a29==9))))))&&(a0==1)))&&(a14==9))&&!(a11==1)))))&&(a22==1))){ + a0 = 0; + a20 = 1; + a25 = 0; + a24 = 0; + a14 = 8; + a19 = 1; + a29 = 6; + a11 = 1; + return -1; + } else if(((a19==5)&&(((((a24==1)&&((!(a0==1)&&(((a29==5)&&((a28==1)&&(!(a20==1)&&(input==2))))&&(a25==1)))&&!(a11==1)))&&(a22==1))&&(a14==8))&&!(a7==1)))){ + a29 = 8; + a19 = 2; + a7 = 1; + return -1; + } else if((((a0==1)&&(((a20==1)&&((((a22==1)&&(!(a11==1)&&(((((a25==1)&&(a29==9))&&(a19==5))||(((a29==5)&&!(a25==1))&&(a19==1)))&&(input==6))))&&!(a7==1))&&(a28==1)))&&!(a24==1)))&&(a14==8))){ + a25 = 1; + a19 = 2; + a0 = 0; + a29 = 9; + a11 = 1; + a24 = 1; + a20 = 0; + a7 = 1; + return 24; + } else if(((a25==1)&&((a14==9)&&(((a7==1)&&((((((a29==6)&&(((input==6)&&!(a20==1))&&(a19==4)))&&(a28==1))&&!(a0==1))&&!(a11==1))&&(a22==1)))&&!(a24==1))))){ + a29 = 9; + a11 = 1; + a20 = 1; + a14 = 8; + a25 = 0; + return 21; + } else if(((!(a25==1)&&(((a29==7)&&(!(a20==1)&&((((a24==1)&&((a14==9)&&((a28==1)&&((a0==1)&&(input==6)))))&&(a7==1))&&(a22==1))))&&(a11==1)))&&(a19==4))){ + a29 = 6; + a14 = 8; + a19 = 1; + a24 = 0; + a11 = 0; + a7 = 0; + return 21; + } else if((((a19==4)&&((a0==1)&&(((a7==1)&&(((((a29==6)&&((a14==8)&&((a22==1)&&(input==6))))&&(a28==1))&&(a20==1))&&(a24==1)))&&(a25==1))))&&!(a11==1))){ + a19 = 1; + a29 = 5; + a11 = 1; + return -1; + } else if(((a25==1)&&(((!(a0==1)&&((a7==1)&&(((((a14==8)&&((a28==1)&&((input==5)&&(a29==6))))&&(a22==1))&&(a24==1))&&!(a20==1))))&&(a19==3))&&!(a11==1)))){ + a29 = 8; + a24 = 0; + a11 = 1; + a14 = 9; + a19 = 5; + return 21; + } else if(((a25==1)&&((!(a0==1)&&((((a20==1)&&((a14==9)&&(((a28==1)&&(((input==4)&&((a29==8)||((a29==6)||(a29==7))))&&!(a11==1)))&&(a24==1))))&&(a19==4))&&!(a7==1)))&&(a22==1)))){ + a7 = 1; + a24 = 0; + a29 = 7; + a0 = 1; + a25 = 0; + a19 = 1; + return 24; + } else if(((((((a25==1)&&(((a28==1)&&(((((input==2)&&!(a7==1))&&(a19==5))&&!(a0==1))&&!(a20==1)))&&(a22==1)))&&(a29==7))&&(a11==1))&&(a14==8))&&(a24==1))){ + a29 = 9; + a14 = 9; + a0 = 1; + a19 = 3; + a11 = 0; + a25 = 0; + a7 = 1; + a24 = 0; + return 23; + } else if((!(a25==1)&&(((a29==6)&&((a22==1)&&((a28==1)&&((a7==1)&&((!(a11==1)&&((!(a0==1)&&((input==4)&&(a20==1)))&&(a24==1)))&&(a19==4))))))&&(a14==8)))){ + a20 = 0; + a24 = 0; + a19 = 3; + a29 = 5; + return 23; + } else if((((a28==1)&&((a14==8)&&(!(a7==1)&&((a22==1)&&(((!(a0==1)&&((a29==5)&&(((a25==1)&&(input==5))&&(a20==1))))&&!(a24==1))&&(a19==1))))))&&(a11==1))){ + a24 = 1; + a0 = 1; + a7 = 1; + return -1; + } else if((((a28==1)&&(((a11==1)&&((a7==1)&&(!(a25==1)&&((a29==6)&&((((a19==1)&&(!(a20==1)&&(input==6)))&&!(a24==1))&&(a14==8))))))&&!(a0==1)))&&(a22==1))){ + a0 = 1; + a24 = 1; + a20 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if((!(a24==1)&&(((a20==1)&&((a0==1)&&((a14==8)&&(!(a25==1)&&((a28==1)&&(((a22==1)&&((input==4)&&(((a29==5)&&(a19==3))||(((a19==2)&&(a29==8))||((a29==9)&&(a19==2))))))&&(a11==1)))))))&&(a7==1)))){ + a0 = 0; + a29 = 8; + a19 = 3; + a24 = 1; + return 21; + } else if((((a7==1)&&((a28==1)&&((((((a14==9)&&((((input==4)&&(a11==1))&&(a19==2))&&(a25==1)))&&(a29==5))&&(a22==1))&&(a24==1))&&(a0==1))))&&(a20==1))){ + a0 = 0; + a7 = 0; + a24 = 0; + a29 = 7; + a11 = 0; + return 23; + } else if((((a28==1)&&((a24==1)&&(((a22==1)&&((a11==1)&&((!(a7==1)&&((((a19==1)&&(!(a25==1)&&(a29==5)))||((((a29==8)&&(a25==1))&&(a19==5))||(((a29==9)&&(a25==1))&&(a19==5))))&&(input==1)))&&!(a20==1))))&&(a0==1))))&&(a14==10))){ + a19 = 5; + a25 = 1; + a11 = 0; + a20 = 1; + a29 = 7; + a0 = 0; + a14 = 8; + return -1; + } else if(((((a25==1)&&((((a14==8)&&(!(a24==1)&&((((a28==1)&&(((a29==5)||(a29==6))&&(input==6)))&&!(a0==1))&&(a22==1))))&&(a20==1))&&(a11==1)))&&(a19==2))&&!(a7==1))){ + a7 = 1; + a29 = 5; + a24 = 1; + a0 = 1; + a19 = 1; + return -1; + } else if(((!(a25==1)&&((a14==8)&&((a28==1)&&(!(a20==1)&&((((((a11==1)&&((input==6)&&((a29==6)||(a29==7))))&&(a0==1))&&(a19==5))&&!(a24==1))&&(a22==1))))))&&!(a7==1))){ + a0 = 0; + a20 = 1; + a19 = 1; + a29 = 8; + a24 = 1; + return 24; + } else if((((a7==1)&&(((a28==1)&&(((a25==1)&&((a24==1)&&((a22==1)&&((a11==1)&&((a20==1)&&((input==1)&&(((a29==6)||(a29==7))||(a29==8))))))))&&!(a0==1)))&&(a14==8)))&&(a19==3))){ + a29 = 7; + a7 = 0; + a19 = 2; + a0 = 1; + a20 = 0; + a11 = 0; + a24 = 0; + return -1; + } else if((((a11==1)&&(!(a7==1)&&(((((((a25==1)&&((a24==1)&&((a29==6)&&(input==1))))&&(a20==1))&&!(a0==1))&&(a14==8))&&(a19==2))&&(a22==1))))&&(a28==1))){ + a25 = 0; + a7 = 1; + a29 = 7; + a19 = 1; + return -1; + } else if((((a7==1)&&((a19==5)&&((a28==1)&&((((a14==8)&&(!(a0==1)&&(!(a24==1)&&((a11==1)&&((input==4)&&((a29==9)||((a29==7)||(a29==8))))))))&&!(a25==1))&&(a22==1)))))&&(a20==1))){ + a19 = 4; + a7 = 0; + a29 = 5; + a24 = 1; + a20 = 0; + return -1; + } else if(((a29==5)&&(((((((a22==1)&&((((!(a11==1)&&(input==2))&&!(a0==1))&&!(a25==1))&&!(a20==1)))&&(a28==1))&&(a24==1))&&(a7==1))&&(a19==2))&&(a14==8)))){ + a29 = 7; + a11 = 1; + a19 = 3; + a20 = 1; + return 23; + } else if(((a28==1)&&((((((((a14==8)&&((a25==1)&&(!(a20==1)&&((input==6)&&((a29==9)||((a29==7)||(a29==8)))))))&&(a19==4))&&!(a0==1))&&(a24==1))&&(a22==1))&&(a7==1))&&!(a11==1)))){ + a29 = 7; + a19 = 2; + a24 = 0; + a0 = 1; + a7 = 0; + a25 = 0; + return -1; + } else if((((a28==1)&&((a14==10)&&(((a19==5)&&((a20==1)&&((a24==1)&&(((a11==1)&&(((input==4)&&(((a29==7)||(a29==8))||(a29==9)))&&!(a25==1)))&&(a0==1)))))&&(a22==1))))&&!(a7==1))){ + a19 = 1; + a29 = 8; + a20 = 0; + a0 = 0; + a24 = 0; + a11 = 0; + a14 = 8; + a7 = 1; + a25 = 1; + return 24; + } else if(((a22==1)&&((a14==8)&&(!(a24==1)&&(!(a25==1)&&((a11==1)&&((a7==1)&&(!(a20==1)&&((a28==1)&&((a0==1)&&((((a29==5)&&(a19==5))||(((a19==4)&&(a29==8))||((a29==9)&&(a19==4))))&&(input==1)))))))))))){ + a25 = 1; + a19 = 3; + a29 = 6; + a0 = 0; + a20 = 1; + a11 = 0; + a24 = 1; + return 21; + } else if(((a14==9)&&(!(a11==1)&&((a19==5)&&((a0==1)&&(!(a7==1)&&(!(a25==1)&&(((a28==1)&&((a24==1)&&(((a22==1)&&(input==6))&&(a20==1))))&&(a29==9))))))))){ + a11 = 1; + return 24; + } else if(((a7==1)&&(((a28==1)&&(!(a24==1)&&(!(a11==1)&&((a19==1)&&(!(a20==1)&&((a14==8)&&((a22==1)&&((a29==6)&&(!(a0==1)&&(input==6))))))))))&&!(a25==1)))){ + a11 = 1; + a24 = 1; + a20 = 1; + a29 = 8; + a19 = 4; + return 23; + } else if((((a28==1)&&((((((a19==5)&&(((a22==1)&&((((a29==8)||(a29==9))&&(input==1))&&!(a20==1)))&&(a11==1)))&&!(a0==1))&&(a25==1))&&(a24==1))&&(a14==8)))&&!(a7==1))){ + a19 = 1; + a7 = 1; + a0 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if(((((((a25==1)&&((((((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))&&(input==2))&&!(a0==1))&&(a14==9))&&!(a7==1))&&(a22==1)))&&(a28==1))&&!(a24==1))&&(a11==1))&&!(a20==1))){ + a7 = 1; + a25 = 0; + a29 = 7; + a19 = 4; + a0 = 1; + a24 = 1; + return -1; + } else if(((((a19==4)&&((((a7==1)&&((a14==9)&&((!(a24==1)&&((a28==1)&&((input==6)&&((a29==7)||(a29==8)))))&&!(a20==1))))&&(a22==1))&&!(a0==1)))&&(a11==1))&&(a25==1))){ + a24 = 1; + a25 = 0; + a29 = 9; + a19 = 2; + a0 = 1; + a20 = 1; + return 23; + } else if(((a22==1)&&((a11==1)&&((a0==1)&&(((a19==4)&&((a24==1)&&(((a20==1)&&(!(a7==1)&&((a14==8)&&((a25==1)&&(input==3)))))&&(a28==1))))&&(a29==7)))))){ + a29 = 6; + a19 = 1; + a20 = 0; + a7 = 1; + return 24; + } else if(((a7==1)&&((a25==1)&&(!(a11==1)&&((a0==1)&&(((((((((a29==7)||(a29==8))&&(input==1))&&(a14==8))&&(a24==1))&&(a20==1))&&(a22==1))&&(a19==5))&&(a28==1))))))){ + a0 = 0; + a19 = 4; + a7 = 0; + a29 = 9; + a20 = 0; + return 23; + } else if((!(a11==1)&&(!(a25==1)&&(!(a7==1)&&((a28==1)&&(!(a20==1)&&((((a19==4)&&(((a22==1)&&(((a29==8)||(a29==9))&&(input==3)))&&(a24==1)))&&(a14==8))&&!(a0==1)))))))){ + a19 = 3; + a20 = 1; + a25 = 1; + a7 = 1; + a29 = 9; + a14 = 9; + return 23; + } else if(((a25==1)&&((a20==1)&&(!(a0==1)&&(!(a7==1)&&(((((a28==1)&&(((a22==1)&&((input==5)&&((a29==7)||(a29==8))))&&!(a24==1)))&&(a11==1))&&(a14==8))&&(a19==2))))))){ + a24 = 1; + a29 = 9; + a7 = 1; + a20 = 0; + a19 = 5; + return 21; + } else if((!(a24==1)&&(((((((a19==3)&&((a28==1)&&((a22==1)&&((a14==9)&&((input==3)&&((a29==7)||((a29==5)||(a29==6))))))))&&!(a7==1))&&!(a0==1))&&!(a25==1))&&!(a11==1))&&!(a20==1)))){ + a25 = 1; + a0 = 1; + a24 = 1; + a11 = 1; + a7 = 1; + a14 = 8; + a29 = 8; + return 24; + } else if(((((a19==5)&&((a28==1)&&((((!(a11==1)&&(!(a25==1)&&((a14==8)&&((input==5)&&((a29==6)||(a29==7))))))&&!(a24==1))&&!(a0==1))&&(a22==1))))&&(a20==1))&&(a7==1))){ + a11 = 1; + a7 = 0; + a25 = 1; + a19 = 4; + a29 = 9; + a24 = 1; + return 23; + } else if(((a11==1)&&(((a24==1)&&((((((a0==1)&&((((input==2)&&(((a29==7)||(a29==8))||(a29==9)))&&!(a20==1))&&(a19==1)))&&!(a7==1))&&(a22==1))&&!(a25==1))&&(a28==1)))&&(a14==9)))){ + a7 = 1; + a14 = 8; + a29 = 5; + a25 = 1; + a20 = 1; + return -1; + } else if(((a19==3)&&(!(a20==1)&&((a11==1)&&((a14==10)&&(((a0==1)&&(((a28==1)&&(((((a29==6)||(a29==7))&&(input==5))&&(a7==1))&&(a24==1)))&&(a25==1)))&&(a22==1))))))){ + a14 = 9; + a19 = 1; + a29 = 7; + return -1; + } else if(((a28==1)&&(((a0==1)&&((((a14==10)&&(((a19==4)&&(((a20==1)&&((input==2)&&((a29==7)||(a29==8))))&&(a11==1)))&&(a24==1)))&&(a25==1))&&(a22==1)))&&(a7==1)))){ + a19 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if((((((a28==1)&&((a22==1)&&(!(a20==1)&&(!(a25==1)&&((((((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))&&(input==2))&&(a24==1))&&(a14==8))))))&&!(a11==1))&&(a0==1))&&!(a7==1))){ + a14 = 9; + a29 = 9; + a19 = 1; + a11 = 1; + return 23; + } else if((((((a11==1)&&((((!(a24==1)&&(((input==1)&&(((a19==4)&&(a29==5))||(((a19==3)&&(a29==8))||((a19==3)&&(a29==9)))))&&(a25==1)))&&(a28==1))&&(a0==1))&&(a7==1)))&&(a14==10))&&(a22==1))&&(a20==1))){ + a11 = 0; + a20 = 0; + a14 = 9; + a19 = 4; + a7 = 0; + a25 = 0; + a29 = 5; + return -1; + } else if(((((!(a0==1)&&((a20==1)&&((!(a24==1)&&(!(a7==1)&&((!(a11==1)&&(((a29==6)||(a29==7))&&(input==4)))&&(a14==9))))&&!(a25==1))))&&(a19==4))&&(a28==1))&&(a22==1))){ + a29 = 7; + a14 = 8; + a19 = 2; + return 24; + } else if(((((a11==1)&&((a19==5)&&((a24==1)&&(((a7==1)&&(((a22==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==4))&&!(a0==1)))&&(a14==8)))&&!(a20==1)))))&&(a28==1))&&!(a25==1))){ + a25 = 1; + a19 = 3; + a20 = 1; + a29 = 8; + return 24; + } else if(((a14==8)&&((a25==1)&&(!(a20==1)&&((a19==2)&&((!(a24==1)&&(!(a11==1)&&((a22==1)&&((a28==1)&&(!(a7==1)&&((input==3)&&((a29==8)||(a29==9))))))))&&(a0==1))))))){ + a24 = 1; + a19 = 1; + a7 = 1; + a29 = 5; + a20 = 1; + a11 = 1; + return -1; + } else if(((a14==10)&&((a29==6)&&((((((a20==1)&&((a22==1)&&((((a19==1)&&(input==5))&&(a0==1))&&(a24==1))))&&!(a7==1))&&(a28==1))&&!(a25==1))&&(a11==1))))){ + a11 = 0; + a14 = 9; + a29 = 8; + a25 = 1; + a19 = 5; + a7 = 1; + a0 = 0; + return -1; + } else if(((a19==3)&&((!(a25==1)&&(((a22==1)&&((!(a7==1)&&(!(a0==1)&&(((a11==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==6)))&&(a14==9))))&&(a20==1)))&&(a28==1)))&&(a24==1)))){ + a29 = 7; + return 24; + } else if(((((((((a19==3)&&((a11==1)&&(!(a7==1)&&((a24==1)&&(((a29==7)||(a29==8))&&(input==3))))))&&(a14==8))&&(a25==1))&&(a22==1))&&(a28==1))&&!(a0==1))&&(a20==1))){ + a29 = 6; + return -1; + } else if(((((((a20==1)&&(((!(a7==1)&&((((input==6)&&(a14==9))&&!(a25==1))&&(a24==1)))&&(a29==7))&&(a28==1)))&&(a11==1))&&(a0==1))&&(a19==5))&&(a22==1))){ + a0 = 0; + a7 = 1; + a29 = 8; + a24 = 0; + a20 = 0; + a11 = 0; + return 24; + } else if((((((!(a20==1)&&((a7==1)&&((((((((a19==2)&&(a29==8))||((a29==9)&&(a19==2)))||((a29==5)&&(a19==3)))&&(input==5))&&(a14==9))&&(a24==1))&&(a25==1))))&&(a11==1))&&!(a0==1))&&(a28==1))&&(a22==1))){ + a19 = 5; + a7 = 0; + a25 = 0; + a14 = 8; + a29 = 5; + return 24; + } else if((((a22==1)&&(!(a24==1)&&(!(a0==1)&&((((!(a11==1)&&(((((a29==5)||(a29==6))&&(input==2))&&!(a25==1))&&!(a20==1)))&&(a14==9))&&(a19==5))&&(a28==1)))))&&!(a7==1))){ + a19 = 4; + a14 = 8; + a29 = 7; + a7 = 1; + a11 = 1; + return -1; + } else if(((((a29==9)&&(!(a20==1)&&((((((((input==5)&&!(a0==1))&&(a19==3))&&(a22==1))&&(a28==1))&&(a14==9))&&(a25==1))&&(a11==1))))&&(a7==1))&&!(a24==1))){ + a0 = 1; + a29 = 5; + a7 = 0; + a20 = 1; + a24 = 1; + a11 = 0; + return -1; + } else if(((!(a7==1)&&(((!(a11==1)&&((a20==1)&&((a24==1)&&((a14==8)&&((input==6)&&(((a19==1)&&((a29==6)&&!(a25==1)))||(((a19==5)&&((a25==1)&&(a29==9)))||((a19==1)&&((a29==5)&&!(a25==1))))))))))&&(a0==1))&&(a28==1)))&&(a22==1))){ + a25 = 1; + a11 = 1; + a29 = 5; + a19 = 1; + a7 = 1; + return -1; + } return calculate_output32(input); + } + + int calculate_output32(int input) { + if(((((a14==9)&&((a29==7)&&(!(a11==1)&&(((((((a7==1)&&(input==4))&&(a19==5))&&(a25==1))&&!(a24==1))&&(a22==1))&&(a20==1)))))&&(a28==1))&&!(a0==1))){ + a19 = 1; + a24 = 1; + a0 = 1; + a11 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if(((a28==1)&&(!(a7==1)&&(((a24==1)&&((a11==1)&&((a22==1)&&((a14==8)&&((!(a20==1)&&((a19==1)&&((input==3)&&(((a29==7)||(a29==8))||(a29==9)))))&&(a0==1))))))&&(a25==1))))){ + a20 = 1; + a25 = 0; + a11 = 0; + a29 = 6; + return 23; + } else if(((!(a24==1)&&((a20==1)&&((a19==4)&&(!(a25==1)&&(!(a0==1)&&(((((((a29==6)||(a29==7))&&(input==6))&&(a22==1))&&(a14==9))&&!(a11==1))&&!(a7==1)))))))&&(a28==1))){ + a11 = 1; + a19 = 1; + a29 = 5; + a25 = 1; + a7 = 1; + a0 = 1; + a14 = 8; + a24 = 1; + return -1; + } else if(((((a28==1)&&((((a24==1)&&((a0==1)&&(((((a25==1)&&(input==2))&&(a14==9))&&(a7==1))&&(a11==1))))&&(a29==6))&&!(a20==1)))&&(a22==1))&&(a19==1))){ + a29 = 5; + a20 = 1; + a14 = 8; + return -1; + } else if(((a28==1)&&(((a14==9)&&(((a19==1)&&((!(a24==1)&&(!(a11==1)&&((a20==1)&&((((a29==6)||(a29==7))&&(input==3))&&!(a7==1)))))&&(a22==1)))&&!(a0==1)))&&!(a25==1)))){ + a25 = 1; + a24 = 1; + a14 = 8; + a7 = 1; + a29 = 5; + a11 = 1; + a0 = 1; + return -1; + } else if(((a14==8)&&((a25==1)&&((a11==1)&&(((a22==1)&&(((!(a24==1)&&((((((a29==5)||(a29==6))||(a29==7))&&(input==3))&&!(a20==1))&&(a28==1)))&&!(a0==1))&&(a19==4)))&&!(a7==1)))))){ + a19 = 1; + a24 = 1; + a7 = 1; + a20 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if(((a24==1)&&(((((((((((a20==1)&&(input==2))&&(a19==2))&&(a0==1))&&(a28==1))&&(a14==9))&&(a22==1))&&(a7==1))&&(a29==9))&&(a11==1))&&!(a25==1)))){ + a0 = 0; + a20 = 0; + a19 = 3; + a29 = 5; + a25 = 1; + a7 = 0; + a14 = 8; + return -1; + } else if(((a29==6)&&((((!(a7==1)&&((a24==1)&&(!(a20==1)&&(((a22==1)&&(((input==3)&&!(a0==1))&&(a11==1)))&&(a25==1)))))&&(a14==8))&&(a19==5))&&(a28==1)))){ + a11 = 0; + a29 = 9; + a0 = 1; + a24 = 0; + a25 = 0; + return -1; + } else if(((((a0==1)&&(((a29==5)&&((a14==8)&&(!(a7==1)&&(((a22==1)&&(((input==6)&&(a24==1))&&(a25==1)))&&(a20==1)))))&&!(a11==1)))&&(a19==4))&&(a28==1))){ + a19 = 1; + a7 = 1; + a11 = 1; + return -1; + } else if(((a19==4)&&((((a11==1)&&((a0==1)&&(((((((input==5)&&(((a29==6)||(a29==7))||(a29==8)))&&(a22==1))&&!(a25==1))&&(a14==9))&&(a24==1))&&!(a7==1))))&&(a28==1))&&(a20==1)))){ + a19 = 1; + a14 = 8; + a29 = 5; + a25 = 1; + a7 = 1; + return -1; + } else if((((a0==1)&&(((a20==1)&&((!(a11==1)&&(!(a25==1)&&((a24==1)&&(((input==6)&&((((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))||((a19==5)&&(a29==6))))&&(a22==1)))))&&(a14==8)))&&(a28==1)))&&(a7==1))){ + a0 = 0; + a29 = 5; + a24 = 0; + a19 = 5; + return 21; + } else if((((((a20==1)&&((a11==1)&&((((((a19==5)&&((input==2)&&((a29==5)||(a29==6))))&&(a22==1))&&(a24==1))&&!(a25==1))&&(a7==1))))&&(a0==1))&&(a28==1))&&(a14==10))){ + a11 = 0; + a25 = 1; + a7 = 0; + a19 = 3; + a14 = 9; + a24 = 0; + a29 = 8; + a0 = 0; + return -1; + } else if(((!(a25==1)&&(((a24==1)&&(((a28==1)&&((((a19==5)&&(!(a0==1)&&((a22==1)&&(input==5))))&&(a14==9))&&(a11==1)))&&(a29==7)))&&(a7==1)))&&!(a20==1))){ + a11 = 0; + a29 = 5; + a0 = 1; + a19 = 1; + a20 = 1; + a24 = 0; + a25 = 1; + return 24; + } else if(((((!(a0==1)&&((a19==3)&&(((a7==1)&&((((!(a20==1)&&(input==2))&&(a29==6))&&(a28==1))&&(a11==1)))&&(a24==1))))&&(a22==1))&&(a14==9))&&(a25==1))){ + a29 = 7; + a24 = 0; + a11 = 0; + a19 = 4; + a0 = 1; + return -1; + } else if(((a7==1)&&((a11==1)&&(!(a20==1)&&((((!(a0==1)&&((a22==1)&&((a25==1)&&((a14==9)&&((((a29==6)||(a29==7))||(a29==8))&&(input==4))))))&&(a28==1))&&!(a24==1))&&(a19==3)))))){ + a29 = 5; + a24 = 1; + a0 = 1; + a20 = 1; + a19 = 1; + a14 = 8; + return -1; + } else if(((a25==1)&&(!(a20==1)&&(((a24==1)&&(((a28==1)&&((((!(a7==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==4)))&&(a0==1))&&(a19==3))&&(a14==8)))&&!(a11==1)))&&(a22==1))))){ + a14 = 9; + a11 = 1; + a7 = 1; + a29 = 5; + return 24; + } else if(((a25==1)&&(((((a19==1)&&((a24==1)&&((((a7==1)&&((((a29==5)||(a29==6))&&(input==5))&&(a14==8)))&&!(a20==1))&&(a11==1))))&&(a28==1))&&!(a0==1))&&(a22==1)))){ + a29 = 5; + a20 = 1; + a0 = 1; + return -1; + } else if(((((a0==1)&&((a28==1)&&(!(a11==1)&&((a25==1)&&((a24==1)&&(!(a7==1)&&((a14==9)&&((a19==3)&&(((a29==5)||(a29==6))&&(input==5))))))))))&&(a22==1))&&(a20==1))){ + a29 = 5; + a11 = 1; + a19 = 1; + a7 = 1; + a14 = 8; + return -1; + } else if(((a20==1)&&((((((a7==1)&&((a14==9)&&((a29==9)&&(((a11==1)&&((a22==1)&&(input==5)))&&(a28==1)))))&&(a25==1))&&!(a0==1))&&(a24==1))&&(a19==3)))){ + a19 = 5; + a14 = 8; + a7 = 0; + a29 = 8; + a20 = 0; + a11 = 0; + return 21; + } else if(((a11==1)&&((((a22==1)&&(!(a0==1)&&((!(a20==1)&&((a24==1)&&(!(a7==1)&&((((a29==8)||(a29==9))&&(input==3))&&(a25==1)))))&&(a19==4))))&&(a14==9))&&(a28==1)))){ + a29 = 8; + a7 = 1; + a14 = 8; + a19 = 2; + return 24; + } else if(((((!(a11==1)&&((a0==1)&&((a7==1)&&((!(a25==1)&&((((((a29==6)||(a29==7))||(a29==8))&&(input==2))&&(a14==9))&&(a19==2)))&&(a22==1)))))&&(a28==1))&&!(a20==1))&&(a24==1))){ + a19 = 1; + a11 = 1; + a25 = 1; + a29 = 5; + a14 = 8; + a20 = 1; + return -1; + } else if((((((a14==8)&&((a19==2)&&(!(a11==1)&&((a25==1)&&((a28==1)&&(((a20==1)&&((input==6)&&(((a29==6)||(a29==7))||(a29==8))))&&(a24==1)))))))&&!(a7==1))&&(a22==1))&&(a0==1))){ + a0 = 0; + a19 = 3; + a29 = 9; + a24 = 0; + return 23; + } else if((((a7==1)&&((a24==1)&&(((!(a11==1)&&(((a20==1)&&((((input==3)&&((a29==5)||(a29==6)))&&(a14==9))&&!(a25==1)))&&(a0==1)))&&(a28==1))&&(a22==1))))&&(a19==4))){ + a24 = 0; + a0 = 0; + a29 = 6; + a14 = 8; + return -1; + } else if((!(a25==1)&&(((a20==1)&&((a24==1)&&((a28==1)&&(!(a11==1)&&((((!(a7==1)&&(((a29==7)||(a29==8))&&(input==1)))&&(a19==3))&&(a22==1))&&!(a0==1))))))&&(a14==8)))){ + a19 = 1; + a29 = 5; + a25 = 1; + a7 = 1; + a0 = 1; + a11 = 1; + return -1; + } else if(((a28==1)&&(!(a20==1)&&(((a19==5)&&((!(a11==1)&&((a22==1)&&((a0==1)&&(((((a29==9)||((a29==7)||(a29==8)))&&(input==6))&&(a14==8))&&(a7==1)))))&&(a25==1)))&&(a24==1))))){ + a0 = 0; + a20 = 1; + a29 = 8; + a11 = 1; + return 24; + } else if(((a25==1)&&((((!(a7==1)&&((a19==5)&&(((a22==1)&&(((a14==8)&&(!(a24==1)&&(input==3)))&&(a11==1)))&&!(a20==1))))&&!(a0==1))&&(a28==1))&&(a29==7)))){ + a29 = 8; + a25 = 0; + a24 = 1; + a7 = 1; + a20 = 1; + return -1; + } else if(((((a20==1)&&((a28==1)&&(((a19==5)&&(!(a25==1)&&(((a24==1)&&((((a29==7)||(a29==8))&&(input==4))&&!(a11==1)))&&(a14==9))))&&(a22==1))))&&!(a0==1))&&(a7==1))){ + a25 = 1; + a14 = 8; + a29 = 5; + a0 = 1; + a19 = 1; + a11 = 1; + return -1; + } else if((((a28==1)&&((a29==5)&&((a24==1)&&(((a19==5)&&(!(a11==1)&&((!(a25==1)&&(((input==6)&&(a20==1))&&(a14==9)))&&(a7==1))))&&(a22==1)))))&&!(a0==1))){ + a11 = 1; + a0 = 1; + a7 = 0; + a29 = 7; + return 21; + } else if(((!(a25==1)&&(!(a7==1)&&((a14==9)&&((a11==1)&&(((a29==9)&&((a22==1)&&((a28==1)&&(((input==3)&&!(a24==1))&&(a0==1)))))&&(a19==1))))))&&!(a20==1))){ + a0 = 0; + a19 = 3; + a29 = 7; + a20 = 1; + a7 = 1; + a24 = 1; + a14 = 8; + return 21; + } else if(((a0==1)&&(!(a20==1)&&((a11==1)&&(((((((a29==8)&&(((a28==1)&&(input==5))&&(a19==4)))&&(a24==1))&&(a22==1))&&(a14==10))&&(a25==1))&&(a7==1)))))){ + a11 = 0; + a14 = 9; + a20 = 1; + return 21; + } else if((((a20==1)&&((a14==9)&&((a19==5)&&(!(a0==1)&&(!(a24==1)&&((a29==5)&&((a28==1)&&(((a22==1)&&((a7==1)&&(input==3)))&&(a25==1)))))))))&&(a11==1))){ + a14 = 8; + a11 = 0; + a7 = 0; + a25 = 0; + a19 = 4; + a29 = 8; + return 21; + } else if(((a11==1)&&(!(a25==1)&&((a19==3)&&((a24==1)&&(((a14==9)&&((a0==1)&&((a20==1)&&((a7==1)&&((a22==1)&&((input==1)&&((a29==5)||(a29==6))))))))&&(a28==1))))))){ + a0 = 0; + a29 = 5; + a7 = 0; + a25 = 1; + a19 = 2; + a20 = 0; + a14 = 8; + return 23; + } else if(((a20==1)&&((a11==1)&&((a14==10)&&(((a28==1)&&((!(a25==1)&&((a19==3)&&((a7==1)&&(((input==5)&&((a29==5)||(a29==6)))&&(a22==1)))))&&(a0==1)))&&(a24==1)))))){ + a14 = 8; + a25 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((a28==1)&&(((a22==1)&&((((a25==1)&&((((a24==1)&&((a11==1)&&((a19==1)&&(input==1))))&&(a0==1))&&(a29==9)))&&!(a7==1))&&(a20==1)))&&(a14==9)))){ + a14 = 8; + a7 = 1; + a29 = 5; + return -1; + } else if(((((a25==1)&&((((a11==1)&&((a28==1)&&(((((input==1)&&((a29==9)||((a29==7)||(a29==8))))&&!(a24==1))&&(a20==1))&&!(a0==1))))&&(a19==5))&&(a14==8)))&&(a22==1))&&(a7==1))){ + a19 = 4; + a24 = 1; + a25 = 0; + a29 = 7; + return 23; + } else if((((a11==1)&&(((a25==1)&&((a28==1)&&((!(a20==1)&&((a0==1)&&((((((a19==2)&&(a29==8))||((a29==9)&&(a19==2)))||((a29==5)&&(a19==3)))&&(input==3))&&!(a24==1))))&&(a7==1))))&&(a22==1)))&&(a14==9))){ + a24 = 1; + a29 = 5; + a19 = 1; + a14 = 8; + a20 = 1; + return -1; + } else if(((a14==9)&&(!(a0==1)&&((a28==1)&&((a11==1)&&((a22==1)&&((input==6)&&((((a19==5)&&((((!(a7==1)&&!(a20==1))&&(a24==1))&&!(a25==1))&&(a29==8)))||(((!(a25==1)&&((a24==1)&&(!(a20==1)&&!(a7==1))))&&(a29==9))&&(a19==5)))||((((a25==1)&&(!(a24==1)&&((a20==1)&&(a7==1))))&&(a29==5))&&(a19==1)))))))))){ + a20 = 1; + a24 = 1; + a14 = 8; + a19 = 1; + a29 = 5; + a0 = 1; + a25 = 1; + a7 = 1; + return -1; + } else if(((a19==2)&&((a0==1)&&(((a7==1)&&(((a11==1)&&((a28==1)&&(((a24==1)&&(((input==5)&&((a29==8)||(a29==9)))&&!(a25==1)))&&(a22==1))))&&(a14==10)))&&(a20==1))))){ + a0 = 0; + a14 = 8; + a7 = 0; + a24 = 0; + a29 = 5; + return -1; + } else if(((!(a11==1)&&(!(a20==1)&&((a14==9)&&(((((((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))&&(input==1))&&!(a25==1))&&(a7==1))&&(a28==1))&&(a0==1))&&(a24==1)))))&&(a22==1))){ + a20 = 1; + a25 = 1; + a14 = 8; + a29 = 5; + a11 = 1; + a19 = 1; + return -1; + } else if((((!(a24==1)&&(((a14==9)&&(((a29==6)&&((!(a20==1)&&(((input==6)&&(a11==1))&&!(a7==1)))&&(a25==1)))&&(a22==1)))&&(a19==1)))&&(a0==1))&&(a28==1))){ + a24 = 1; + a14 = 8; + a0 = 0; + a19 = 2; + a29 = 7; + return 23; + } else if(((a0==1)&&(((((a25==1)&&((a24==1)&&((a14==9)&&(!(a11==1)&&((a19==5)&&((a7==1)&&(((a29==5)||(a29==6))&&(input==6))))))))&&(a28==1))&&(a22==1))&&!(a20==1)))){ + a11 = 1; + a25 = 0; + a29 = 5; + a24 = 0; + a19 = 2; + a20 = 1; + return 23; + } else if(((!(a7==1)&&((((a28==1)&&(((a0==1)&&((a14==9)&&(((a29==8)&&((a25==1)&&(input==6)))&&(a22==1))))&&!(a11==1)))&&(a19==5))&&!(a24==1)))&&!(a20==1))){ + a14 = 8; + a25 = 0; + a24 = 1; + a0 = 0; + a29 = 7; + return -1; + } else if((!(a11==1)&&((a20==1)&&((((a22==1)&&(((a0==1)&&((((((a29==8)||(a29==9))&&(input==3))&&(a28==1))&&(a19==1))&&(a25==1)))&&!(a24==1)))&&(a14==9))&&(a7==1))))){ + a14 = 8; + a11 = 1; + a29 = 7; + a0 = 0; + a25 = 0; + a19 = 3; + a24 = 1; + a7 = 0; + return 24; + } else if(((a24==1)&&((((a29==7)&&((a22==1)&&(!(a11==1)&&(!(a25==1)&&((a19==5)&&((((a28==1)&&(input==5))&&(a0==1))&&!(a7==1)))))))&&!(a20==1))&&(a14==8)))){ + a29 = 5; + a19 = 1; + a11 = 1; + a20 = 1; + a7 = 1; + a25 = 1; + return -1; + } else if(((((!(a7==1)&&(!(a0==1)&&((((a14==8)&&((a19==5)&&((a28==1)&&((input==5)&&((a29==6)||(a29==7))))))&&!(a20==1))&&!(a11==1))))&&!(a25==1))&&!(a24==1))&&(a22==1))){ + a14 = 9; + a7 = 1; + a19 = 4; + a20 = 1; + a29 = 5; + return 24; + } else if(((a14==9)&&(((((!(a20==1)&&((a29==9)&&(!(a25==1)&&((a28==1)&&(((a19==5)&&(input==6))&&!(a24==1))))))&&!(a0==1))&&!(a11==1))&&(a22==1))&&!(a7==1)))){ + a29 = 7; + a11 = 1; + return -1; + } else if(((((a25==1)&&((a28==1)&&(((a14==10)&&((a11==1)&&(!(a20==1)&&(((a19==4)&&((input==5)&&(((a29==5)||(a29==6))||(a29==7))))&&(a24==1)))))&&(a22==1))))&&(a7==1))&&(a0==1))){ + a19 = 3; + a20 = 1; + a14 = 8; + a29 = 7; + return -1; + } else if((((a14==8)&&((a22==1)&&(!(a20==1)&&(!(a0==1)&&(((((a24==1)&&((a7==1)&&((input==2)&&(((a29==5)||(a29==6))||(a29==7)))))&&(a28==1))&&!(a25==1))&&!(a11==1))))))&&(a19==1))){ + a7 = 0; + a0 = 1; + a20 = 1; + a29 = 5; + a11 = 1; + return 21; + } else if((((!(a11==1)&&((a20==1)&&((!(a7==1)&&((a14==8)&&((a0==1)&&(((((a29==6)&&(a19==2))||(((a19==1)&&(a29==9))||((a19==2)&&(a29==5))))&&(input==4))&&(a28==1)))))&&!(a24==1))))&&(a22==1))&&!(a25==1))){ + a25 = 1; + a24 = 1; + a7 = 1; + a19 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if((!(a25==1)&&(((((a28==1)&&(((!(a0==1)&&((((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))||((a19==4)&&(a29==6)))&&(input==1))&&!(a11==1)))&&(a22==1))&&!(a7==1)))&&!(a24==1))&&(a14==9))&&!(a20==1)))){ + a0 = 1; + a7 = 1; + a19 = 1; + a11 = 1; + a20 = 1; + a24 = 1; + a14 = 8; + a29 = 5; + a25 = 1; + return -1; + } else if(((((a14==8)&&((((a22==1)&&(!(a7==1)&&(!(a11==1)&&((((a19==5)&&((a25==1)&&(a29==9)))||(((a29==5)&&!(a25==1))&&(a19==1)))&&(input==3)))))&&!(a24==1))&&(a28==1)))&&(a0==1))&&(a20==1))){ + a11 = 1; + a14 = 9; + a19 = 3; + a29 = 8; + a25 = 1; + a20 = 0; + return 21; + } else if((((((((((((a25==1)&&((input==2)&&((a29==5)||(a29==6))))&&(a19==1))&&(a0==1))&&(a7==1))&&(a28==1))&&(a24==1))&&(a22==1))&&(a11==1))&&!(a20==1))&&(a14==10))){ + a14 = 8; + a20 = 1; + a0 = 0; + a29 = 9; + return 21; + } else if((((a14==9)&&((a22==1)&&((a28==1)&&((((a0==1)&&(((a19==3)&&((a7==1)&&(((a29==6)||(a29==7))&&(input==6))))&&(a24==1)))&&!(a11==1))&&!(a25==1)))))&&(a20==1))){ + a24 = 0; + a29 = 9; + a14 = 8; + a25 = 1; + a7 = 0; + a19 = 1; + a20 = 0; + return 21; + } else if(((a14==8)&&((a22==1)&&(!(a24==1)&&(!(a25==1)&&((((((a0==1)&&((((a29==8)||(a29==9))&&(input==6))&&!(a20==1)))&&(a19==3))&&(a28==1))&&!(a7==1))&&(a11==1))))))){ + a25 = 1; + a19 = 1; + a20 = 1; + a7 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if((!(a0==1)&&((a11==1)&&((a7==1)&&((a14==9)&&(((a22==1)&&(((((input==1)&&(((a29==5)&&(a19==5))||(((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))))&&!(a25==1))&&(a24==1))&&(a28==1)))&&(a20==1))))))){ + a25 = 1; + a14 = 8; + a19 = 1; + a29 = 8; + return 21; + } else if((!(a11==1)&&((!(a0==1)&&((((((((a25==1)&&((input==6)&&((a29==6)||(a29==7))))&&!(a20==1))&&!(a7==1))&&(a28==1))&&(a19==5))&&(a22==1))&&(a14==9)))&&!(a24==1)))){ + a11 = 1; + a0 = 1; + a29 = 6; + a24 = 1; + a20 = 1; + a7 = 1; + a19 = 2; + return -1; + } else if((((a14==9)&&(((a25==1)&&((a29==6)&&(((!(a20==1)&&((a19==3)&&(((input==4)&&(a7==1))&&(a24==1))))&&(a11==1))&&!(a0==1))))&&(a28==1)))&&(a22==1))){ + a29 = 8; + a0 = 1; + a7 = 0; + a19 = 2; + return 23; + } else if(((!(a25==1)&&((((a20==1)&&(!(a0==1)&&((a24==1)&&((a11==1)&&((a7==1)&&(((input==5)&&((a29==7)||(a29==8)))&&(a14==8)))))))&&(a28==1))&&(a22==1)))&&(a19==4))){ + a19 = 1; + a20 = 0; + a29 = 8; + a7 = 0; + return 23; + } else if((!(a20==1)&&((a24==1)&&(((a14==8)&&(!(a0==1)&&(((((a22==1)&&(!(a25==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==2))))&&(a28==1))&&(a11==1))&&(a19==2))))&&(a7==1))))){ + a19 = 1; + a29 = 9; + a25 = 1; + return -1; + } else if(((a29==9)&&((((((a11==1)&&(!(a7==1)&&((!(a0==1)&&(((a22==1)&&(input==4))&&(a14==9)))&&(a24==1))))&&(a19==3))&&!(a25==1))&&(a28==1))&&(a20==1)))){ + a14 = 8; + a7 = 1; + a25 = 1; + a19 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if((((a28==1)&&((a7==1)&&(((a29==9)&&(!(a24==1)&&((((((a20==1)&&(input==4))&&!(a11==1))&&!(a0==1))&&(a19==1))&&(a22==1))))&&!(a25==1))))&&(a14==9))){ + a25 = 1; + a29 = 5; + a0 = 1; + a14 = 8; + a11 = 1; + a24 = 1; + return -1; + } else if(((((a19==3)&&(!(a20==1)&&((a25==1)&&((!(a24==1)&&((a22==1)&&((((input==2)&&(((a29==5)||(a29==6))||(a29==7)))&&(a28==1))&&(a14==8))))&&(a11==1)))))&&!(a0==1))&&!(a7==1))){ + a14 = 9; + a29 = 8; + a24 = 1; + a19 = 4; + return 24; + } else if((((a28==1)&&(((((a29==8)&&(((a7==1)&&((a14==8)&&((a0==1)&&((input==1)&&(a19==3)))))&&!(a25==1)))&&!(a11==1))&&(a20==1))&&(a24==1)))&&(a22==1))){ + a19 = 1; + a29 = 5; + a25 = 1; + a11 = 1; + return -1; + } else if(((a14==8)&&((((a19==5)&&(((!(a0==1)&&((a11==1)&&((a24==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==6))&&!(a20==1)))))&&!(a25==1))&&(a22==1)))&&(a28==1))&&(a7==1)))){ + a29 = 5; + a24 = 0; + a19 = 1; + a11 = 0; + a0 = 1; + a14 = 9; + return 23; + } else if(((a19==3)&&((a29==7)&&((a28==1)&&(((!(a24==1)&&(((((a22==1)&&((input==2)&&(a20==1)))&&(a11==1))&&(a0==1))&&(a14==8)))&&!(a7==1))&&!(a25==1)))))){ + a19 = 5; + a29 = 5; + a0 = 0; + a7 = 1; + return 24; + } else if((!(a20==1)&&(((a0==1)&&(((a19==4)&&(!(a24==1)&&(((a28==1)&&(((a11==1)&&((input==5)&&((a29==6)||(a29==7))))&&(a14==8)))&&(a25==1))))&&(a7==1)))&&(a22==1)))){ + a29 = 5; + a19 = 5; + a7 = 0; + a11 = 0; + a25 = 0; + return 24; + } else if(((a22==1)&&(((((a25==1)&&((((a0==1)&&((((input==2)&&((a29==7)||(a29==8)))&&(a19==5))&&(a14==9)))&&!(a7==1))&&(a28==1)))&&(a20==1))&&(a11==1))&&(a24==1)))){ + a29 = 6; + a7 = 1; + a24 = 0; + a19 = 3; + return 21; + } else if((!(a0==1)&&((a28==1)&&((a22==1)&&((a7==1)&&((!(a25==1)&&((!(a24==1)&&(!(a20==1)&&(((a19==4)&&(input==3))&&(a14==9))))&&(a29==9)))&&!(a11==1))))))){ + a24 = 1; + a29 = 7; + a20 = 1; + a7 = 0; + a14 = 8; + a11 = 1; + a19 = 2; + return 24; + } else if((((!(a20==1)&&(((!(a24==1)&&(!(a7==1)&&((a25==1)&&(!(a0==1)&&((((a19==2)&&(a29==6))||(((a29==9)&&(a19==1))||((a19==2)&&(a29==5))))&&(input==2))))))&&(a14==9))&&(a11==1)))&&(a28==1))&&(a22==1))){ + a20 = 1; + a14 = 8; + a0 = 1; + a24 = 1; + a19 = 2; + a7 = 1; + a29 = 6; + return -1; + } else if(((((a19==5)&&((((a28==1)&&((!(a11==1)&&(!(a20==1)&&(!(a25==1)&&(((a29==8)||(a29==9))&&(input==2)))))&&(a0==1)))&&(a7==1))&&(a22==1)))&&(a14==9))&&(a24==1))){ + a25 = 1; + a29 = 5; + a24 = 0; + a19 = 2; + a0 = 0; + a14 = 8; + return 21; + } else if(((a19==1)&&((a22==1)&&((((a24==1)&&((a0==1)&&((((a25==1)&&((a28==1)&&((a7==1)&&(input==4))))&&(a11==1))&&!(a20==1))))&&(a29==6))&&(a14==9))))){ + a20 = 1; + a14 = 8; + a0 = 0; + a19 = 3; + a29 = 5; + a25 = 0; + return 24; + } else if(((a28==1)&&(((!(a11==1)&&(((a19==3)&&((((a22==1)&&((a7==1)&&((input==6)&&((a29==8)||((a29==6)||(a29==7))))))&&(a0==1))&&(a24==1)))&&(a14==9)))&&(a25==1))&&(a20==1)))){ + a11 = 1; + a0 = 0; + a19 = 1; + a29 = 6; + a14 = 8; + return 24; + } else if((((a14==9)&&((((a20==1)&&(!(a7==1)&&((a11==1)&&((a28==1)&&(((((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))&&(input==3))&&!(a24==1))))))&&!(a0==1))&&(a22==1)))&&(a25==1))){ + a29 = 6; + a7 = 1; + a24 = 1; + a14 = 8; + a19 = 4; + a0 = 1; + a25 = 0; + return -1; + } else if(((a0==1)&&((((a28==1)&&((((a11==1)&&((((a25==1)&&(((a29==6)||(a29==7))&&(input==5)))&&(a19==1))&&(a20==1)))&&(a7==1))&&!(a24==1)))&&(a22==1))&&(a14==9)))){ + a14 = 8; + a29 = 5; + a24 = 1; + return -1; + } else if(((((a0==1)&&((a19==2)&&((a24==1)&&((a22==1)&&((a20==1)&&((a11==1)&&(((a29==8)&&((input==3)&&(a28==1)))&&(a14==9))))))))&&!(a7==1))&&(a25==1))){ + a0 = 0; + a19 = 1; + a25 = 0; + a14 = 8; + a29 = 9; + a7 = 1; + return 24; + } else if(((!(a25==1)&&(((((a28==1)&&(!(a7==1)&&((a0==1)&&((((input==6)&&(a20==1))&&(a29==5))&&!(a24==1)))))&&(a19==2))&&(a11==1))&&(a22==1)))&&(a14==8))){ + a20 = 0; + a0 = 0; + a25 = 1; + a24 = 1; + a7 = 1; + return 21; + } else if((!(a20==1)&&((((a14==9)&&(!(a7==1)&&((a28==1)&&((((a11==1)&&((a22==1)&&(((a29==6)||(a29==7))&&(input==1))))&&(a24==1))&&(a0==1)))))&&(a25==1))&&(a19==4)))){ + a19 = 2; + a25 = 0; + a7 = 1; + a20 = 1; + a14 = 10; + a29 = 5; + return 23; + } else if(((a7==1)&&(!(a11==1)&&(!(a0==1)&&(!(a25==1)&&((a28==1)&&((a14==9)&&((a24==1)&&((((a19==4)&&((a20==1)&&(input==6)))&&(a29==9))&&(a22==1)))))))))){ + a14 = 8; + a20 = 0; + a29 = 6; + a11 = 1; + return -1; + } else if((((a14==8)&&((a24==1)&&(((a11==1)&&(((((a22==1)&&(((input==2)&&(a0==1))&&(a28==1)))&&(a19==4))&&!(a25==1))&&(a29==7)))&&!(a7==1))))&&!(a20==1))){ + a20 = 1; + a24 = 0; + a25 = 1; + a11 = 0; + a19 = 3; + a29 = 5; + return 23; + } else if((((a25==1)&&((a11==1)&&((a24==1)&&(((a7==1)&&(((a22==1)&&(((a0==1)&&((input==1)&&((a29==7)||((a29==5)||(a29==6)))))&&(a19==3)))&&(a14==8)))&&(a28==1)))))&&!(a20==1))){ + a29 = 8; + a25 = 0; + a7 = 0; + a19 = 4; + a20 = 1; + a24 = 0; + return 21; + } else if((!(a20==1)&&((a28==1)&&(((a22==1)&&(!(a7==1)&&((a14==9)&&(((((input==2)&&(((a19==4)&&(a29==9))||((a29==5)&&(a19==5))))&&!(a25==1))&&(a11==1))&&!(a24==1)))))&&!(a0==1))))){ + a14 = 8; + a29 = 9; + a19 = 5; + a20 = 1; + return -1; + } else if((!(a11==1)&&(((((a19==2)&&((a28==1)&&(!(a24==1)&&(((a14==9)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==1))&&(a0==1)))&&(a22==1)))))&&!(a25==1))&&!(a7==1))&&!(a20==1)))){ + a24 = 1; + a20 = 1; + a29 = 5; + a19 = 1; + a7 = 1; + a25 = 1; + a14 = 8; + a11 = 1; + return -1; + } else if((!(a25==1)&&((a11==1)&&((a0==1)&&((a24==1)&&(((((a14==9)&&((a28==1)&&((input==3)&&((((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))||((a19==2)&&(a29==6))))))&&(a22==1))&&(a7==1))&&(a20==1))))))){ + a19 = 1; + a29 = 7; + a11 = 0; + a24 = 0; + return 24; + } else if((!(a11==1)&&(!(a0==1)&&((!(a25==1)&&(!(a24==1)&&((a28==1)&&((!(a7==1)&&((a19==3)&&((a22==1)&&((input==4)&&(a14==8)))))&&(a20==1)))))&&(a29==6))))){ + a25 = 1; + a19 = 2; + a20 = 0; + a14 = 9; + a29 = 7; + a7 = 1; + a24 = 1; + return 24; + } else if((((a14==9)&&((a25==1)&&((((((a22==1)&&((a7==1)&&(((input==2)&&((a29==9)||((a29==7)||(a29==8))))&&!(a0==1))))&&(a24==1))&&(a19==1))&&!(a20==1))&&(a28==1))))&&!(a11==1))){ + a19 = 5; + a29 = 7; + a24 = 0; + a0 = 1; + return -1; + } else if((!(a11==1)&&((((a22==1)&&(!(a24==1)&&((a28==1)&&(((((a19==5)&&((a29==9)&&((!(a7==1)&&(a20==1))&&!(a25==1))))||(((a29==5)&&((!(a20==1)&&(a7==1))&&(a25==1)))&&(a19==1)))||((a19==1)&&(((a25==1)&&(!(a20==1)&&(a7==1)))&&(a29==6))))&&(input==5)))))&&(a14==8))&&(a0==1)))){ + a19 = 4; + a14 = 9; + a24 = 1; + a29 = 6; + a20 = 1; + a7 = 1; + a25 = 1; + return 24; + } else if(((!(a24==1)&&((a14==8)&&(((((!(a0==1)&&(((input==5)&&((((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))||((a29==6)&&(a19==5))))&&!(a11==1)))&&(a22==1))&&(a20==1))&&(a25==1))&&(a7==1))))&&(a28==1))){ + a24 = 1; + a0 = 1; + a11 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((a11==1)&&((a20==1)&&(((((((a24==1)&&((((input==6)&&(((a29==5)||(a29==6))||(a29==7)))&&(a28==1))&&(a0==1)))&&(a22==1))&&!(a25==1))&&(a19==1))&&!(a7==1))&&(a14==8))))){ + a25 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if((((a20==1)&&((((a11==1)&&((a0==1)&&(((((((a29==7)||(a29==8))&&(input==4))&&(a19==3))&&(a25==1))&&(a14==10))&&(a22==1))))&&!(a7==1))&&(a24==1)))&&(a28==1))){ + a29 = 7; + a14 = 9; + a24 = 0; + return 21; + } else if(((((a0==1)&&((a19==1)&&(((((a20==1)&&((((input==5)&&(a24==1))&&(a28==1))&&(a29==9)))&&!(a25==1))&&(a14==10))&&(a11==1))))&&!(a7==1))&&(a22==1))){ + a29 = 5; + a0 = 0; + a19 = 3; + a14 = 8; + a25 = 1; + return 23; + } else if((((((((a28==1)&&((a22==1)&&(((((input==1)&&((a29==5)||(a29==6)))&&!(a25==1))&&(a24==1))&&(a20==1))))&&(a7==1))&&(a19==2))&&(a11==1))&&!(a0==1))&&(a14==9))){ + a19 = 3; + a14 = 8; + a29 = 5; + a25 = 1; + a7 = 0; + a20 = 0; + return 24; + } else if((((!(a7==1)&&((((!(a24==1)&&((a19==5)&&((a20==1)&&(((input==1)&&((a29==7)||(a29==8)))&&(a28==1)))))&&(a25==1))&&(a14==8))&&!(a0==1)))&&(a11==1))&&(a22==1))){ + a29 = 5; + a24 = 1; + a19 = 3; + a14 = 9; + return 23; + } else if(((a22==1)&&(!(a20==1)&&(((!(a25==1)&&((a29==8)&&((a0==1)&&((a19==2)&&(((a28==1)&&((input==3)&&(a7==1)))&&!(a24==1))))))&&(a14==8))&&(a11==1))))){ + a7 = 0; + a0 = 0; + return 21; + } else if(((!(a11==1)&&(((((!(a25==1)&&(((a22==1)&&((a14==8)&&((input==6)&&((a29==6)||(a29==7)))))&&(a28==1)))&&!(a24==1))&&(a20==1))&&(a19==4))&&(a0==1)))&&!(a7==1))){ + a7 = 1; + a19 = 5; + a25 = 1; + a11 = 1; + a24 = 1; + a0 = 0; + a29 = 7; + return 24; + } else if(((((a0==1)&&(((a28==1)&&((a22==1)&&((a24==1)&&(!(a20==1)&&((a14==10)&&(((input==4)&&(((a29==7)||(a29==8))||(a29==9)))&&(a11==1)))))))&&(a19==4)))&&(a25==1))&&!(a7==1))){ + a14 = 8; + a20 = 1; + a29 = 5; + a19 = 1; + a7 = 1; + return -1; + } else if(((a28==1)&&(((!(a7==1)&&((!(a25==1)&&((a22==1)&&((a19==1)&&(((((a29==9)||((a29==7)||(a29==8)))&&(input==1))&&!(a11==1))&&(a14==9)))))&&(a24==1)))&&(a0==1))&&!(a20==1)))){ + a24 = 0; + a19 = 3; + a7 = 1; + a29 = 5; + a11 = 1; + return 23; + } else if(((((a0==1)&&((((a11==1)&&(((((a29==5)&&(((a7==1)&&!(a20==1))&&(a25==1)))&&(a19==1))||((((a29==8)&&((!(a7==1)&&(a20==1))&&!(a25==1)))&&(a19==5))||((a19==5)&&(((!(a7==1)&&(a20==1))&&!(a25==1))&&(a29==9)))))&&(input==5)))&&(a22==1))&&(a28==1)))&&(a14==9))&&(a24==1))){ + a19 = 3; + a25 = 0; + a29 = 6; + a11 = 0; + a20 = 0; + a7 = 1; + return 24; + } else if(((((a25==1)&&((a24==1)&&(((!(a0==1)&&((a19==3)&&((a28==1)&&(!(a11==1)&&((a14==9)&&(input==2))))))&&(a29==6))&&(a7==1))))&&(a22==1))&&!(a20==1))){ + a19 = 1; + a25 = 0; + a29 = 7; + a14 = 8; + return 21; + } else if((!(a25==1)&&(((a11==1)&&((!(a7==1)&&(((!(a20==1)&&(!(a0==1)&&((input==3)&&(((a29==9)&&(a19==4))||((a19==5)&&(a29==5))))))&&!(a24==1))&&(a14==9)))&&(a28==1)))&&(a22==1)))){ + a7 = 1; + a24 = 1; + a29 = 8; + a19 = 2; + a14 = 8; + a20 = 1; + return -1; + } else if(((a19==3)&&(!(a20==1)&&((a28==1)&&(((a25==1)&&((((a14==9)&&((a22==1)&&((((a29==7)||(a29==8))&&(input==1))&&!(a11==1))))&&(a0==1))&&!(a24==1)))&&(a7==1)))))){ + a0 = 0; + a25 = 0; + a29 = 9; + a14 = 8; + return 21; + } else if((((((a24==1)&&(((a7==1)&&((a0==1)&&((a28==1)&&((a20==1)&&(((input==5)&&((a29==8)||(a29==9)))&&(a19==3))))))&&(a22==1)))&&(a14==10))&&(a11==1))&&!(a25==1))){ + a14 = 8; + a29 = 8; + a20 = 0; + a7 = 0; + a11 = 0; + a24 = 0; + return 23; + } else if((((a19==5)&&(((a11==1)&&((((a28==1)&&((a20==1)&&((a25==1)&&((a14==9)&&(((a29==5)||(a29==6))&&(input==1))))))&&(a7==1))&&(a22==1)))&&(a24==1)))&&!(a0==1))){ + a24 = 0; + a14 = 8; + a20 = 0; + a11 = 0; + a25 = 0; + a29 = 7; + a7 = 0; + a0 = 1; + a19 = 3; + return 21; + } else if((((a22==1)&&((a14==8)&&((a7==1)&&(!(a11==1)&&(((!(a24==1)&&(((((a29==8)||(a29==9))&&(input==2))&&!(a0==1))&&(a28==1)))&&!(a25==1))&&(a19==4))))))&&!(a20==1))){ + a19 = 5; + a7 = 0; + a25 = 1; + a24 = 1; + a29 = 6; + a14 = 9; + return 23; + } else if((!(a24==1)&&((a7==1)&&((a28==1)&&(!(a20==1)&&(!(a25==1)&&((a14==8)&&((!(a11==1)&&(((a22==1)&&((input==5)&&!(a0==1)))&&(a19==1)))&&(a29==6))))))))){ + a29 = 8; + a25 = 1; + a11 = 1; + a24 = 1; + a19 = 2; + a7 = 0; + a20 = 1; + return 23; + } else if((!(a20==1)&&(((!(a0==1)&&((!(a24==1)&&(((a22==1)&&(((a11==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==5)))&&(a19==5)))&&!(a7==1)))&&(a28==1)))&&(a14==8))&&!(a25==1)))){ + a24 = 1; + a29 = 5; + a20 = 1; + a25 = 1; + a0 = 1; + a19 = 1; + a7 = 1; + return -1; + } else if(((a11==1)&&((a22==1)&&((a20==1)&&(((a25==1)&&(((a0==1)&&((a28==1)&&(((a7==1)&&(((a29==6)||(a29==7))&&(input==2)))&&(a14==8))))&&(a19==3)))&&!(a24==1)))))){ + a11 = 0; + a29 = 9; + a20 = 0; + a25 = 0; + return 23; + } else if(((a22==1)&&((a28==1)&&(!(a20==1)&&(((a0==1)&&((a29==6)&&((!(a7==1)&&(((!(a24==1)&&(input==2))&&(a11==1))&&(a19==2)))&&!(a25==1))))&&(a14==8)))))){ + a29 = 7; + a0 = 0; + a19 = 5; + a11 = 0; + a25 = 1; + a24 = 1; + a20 = 1; + return 24; + } else if((((a14==8)&&(!(a25==1)&&((a19==1)&&(((((a28==1)&&(!(a24==1)&&((a22==1)&&((input==6)&&((a29==8)||(a29==9))))))&&(a20==1))&&(a0==1))&&(a11==1)))))&&!(a7==1))){ + a25 = 1; + a7 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if((((((a11==1)&&(((a14==8)&&((a24==1)&&(((a7==1)&&(((input==6)&&((a29==5)||(a29==6)))&&(a20==1)))&&(a28==1))))&&(a19==2)))&&(a25==1))&&(a22==1))&&!(a0==1))){ + a19 = 1; + a7 = 0; + a11 = 0; + a14 = 9; + a0 = 1; + a20 = 0; + a29 = 6; + a25 = 0; + return 21; + } else if((!(a24==1)&&((((((((a11==1)&&(!(a20==1)&&((a28==1)&&((a22==1)&&(input==2)))))&&(a19==4))&&!(a7==1))&&!(a25==1))&&(a0==1))&&(a29==5))&&(a14==8)))){ + a20 = 1; + a19 = 1; + a24 = 1; + a25 = 1; + a7 = 1; + return -1; + } else if((((a24==1)&&((a14==8)&&((a20==1)&&((a22==1)&&((a29==9)&&((a25==1)&&(!(a0==1)&&((a11==1)&&(((input==4)&&(a19==3))&&(a7==1))))))))))&&(a28==1))){ + a29 = 7; + return -1; + } else if(((a22==1)&&((a11==1)&&(((a14==8)&&(!(a7==1)&&(!(a25==1)&&((((a20==1)&&((input==6)&&(((a19==5)&&(a29==6))||(((a29==9)&&(a19==4))||((a19==5)&&(a29==5))))))&&(a24==1))&&(a0==1)))))&&(a28==1))))){ + a29 = 5; + a19 = 1; + a7 = 1; + a25 = 1; + return -1; + } else if(((a24==1)&&((a22==1)&&(((a19==3)&&(((a25==1)&&((((a0==1)&&((a28==1)&&(!(a20==1)&&(input==4))))&&(a29==9))&&(a7==1)))&&(a11==1)))&&(a14==8))))){ + a19 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if(((!(a25==1)&&((a20==1)&&((a22==1)&&(((((((((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))&&(input==4))&&(a24==1))&&(a28==1))&&(a0==1))&&!(a7==1))&&(a14==8)))))&&!(a11==1))){ + a29 = 5; + a19 = 1; + a25 = 1; + a11 = 1; + a7 = 1; + return -1; + } else if(((a28==1)&&(((a25==1)&&(!(a24==1)&&((a22==1)&&(!(a11==1)&&(!(a20==1)&&((((input==4)&&((((a29==8)&&(a19==3))||((a19==3)&&(a29==9)))||((a19==4)&&(a29==5))))&&(a14==9))&&!(a7==1)))))))&&!(a0==1)))){ + a24 = 1; + a14 = 8; + a11 = 1; + a0 = 1; + a19 = 1; + a7 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if(((a20==1)&&((a14==9)&&(!(a7==1)&&(((a29==5)&&(((a28==1)&&((a19==1)&&((((input==3)&&!(a24==1))&&(a0==1))&&(a22==1))))&&(a25==1)))&&(a11==1)))))){ + a11 = 0; + a0 = 0; + a14 = 8; + a20 = 0; + a24 = 1; + a19 = 4; + return -1; + } else if(((((a22==1)&&(!(a20==1)&&((a19==4)&&((a25==1)&&((a0==1)&&((a24==1)&&((((a29==8)&&(input==2))&&(a28==1))&&(a11==1))))))))&&(a7==1))&&(a14==10))){ + a29 = 6; + a14 = 9; + a20 = 1; + a11 = 0; + a19 = 3; + return -1; + } else if((!(a7==1)&&((((a22==1)&&((a28==1)&&((!(a11==1)&&((a0==1)&&((a19==2)&&(!(a25==1)&&((input==4)&&((a29==8)||((a29==6)||(a29==7))))))))&&(a14==9))))&&(a20==1))&&(a24==1)))){ + a14 = 8; + a20 = 0; + a19 = 4; + a0 = 0; + a29 = 9; + a11 = 1; + a24 = 0; + return 24; + } else if(((((((a19==3)&&((a14==8)&&(((a28==1)&&(((a0==1)&&(((a29==8)||(a29==9))&&(input==3)))&&!(a7==1)))&&!(a24==1))))&&(a22==1))&&!(a20==1))&&!(a11==1))&&!(a25==1))){ + a14 = 9; + a25 = 1; + a24 = 1; + a19 = 4; + a29 = 6; + return 23; + } else if(((a11==1)&&((a14==9)&&(!(a0==1)&&((((a7==1)&&((a19==1)&&((a29==7)&&((a24==1)&&(((a22==1)&&(input==4))&&(a28==1))))))&&(a20==1))&&(a25==1)))))){ + a14 = 8; + a29 = 5; + a0 = 1; + return -1; + } else if((!(a7==1)&&(((!(a25==1)&&((a24==1)&&((a19==2)&&(!(a20==1)&&((a28==1)&&((((a14==8)&&(input==2))&&!(a0==1))&&!(a11==1)))))))&&(a22==1))&&(a29==9)))){ + a29 = 5; + a14 = 9; + a20 = 1; + a25 = 1; + a7 = 1; + return 23; + } else if((((a11==1)&&(((a14==8)&&((!(a20==1)&&((a24==1)&&(((a0==1)&&(((input==3)&&(a22==1))&&(a25==1)))&&(a19==2))))&&(a7==1)))&&(a29==6)))&&(a28==1))){ + a20 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if((!(a7==1)&&((a25==1)&&(!(a24==1)&&((a28==1)&&(((a14==9)&&((a11==1)&&((((input==3)&&(((a29==9)&&(a19==2))||((a19==3)&&(a29==5))))&&(a22==1))&&!(a0==1))))&&(a20==1))))))){ + a19 = 1; + a29 = 7; + a14 = 8; + a24 = 1; + return 23; + } else if(((a25==1)&&(((a22==1)&&((((a7==1)&&((a28==1)&&((((input==3)&&((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))||((a29==6)&&(a19==3))))&&(a14==9))&&(a0==1))))&&!(a11==1))&&!(a20==1)))&&(a24==1)))){ + a29 = 9; + a0 = 0; + a14 = 8; + a20 = 1; + a7 = 0; + a19 = 1; + a11 = 1; + return 23; + } else if((((a22==1)&&((a20==1)&&(((a14==8)&&((!(a0==1)&&((((a19==2)&&(((a29==8)||(a29==9))&&(input==6)))&&!(a11==1))&&!(a25==1)))&&(a24==1)))&&(a28==1))))&&(a7==1))){ + a11 = 1; + a29 = 6; + a14 = 9; + a24 = 0; + return 24; + } else if(((a28==1)&&((((((!(a11==1)&&((a14==9)&&((a0==1)&&(((a24==1)&&(input==5))&&(a29==9)))))&&(a19==1))&&(a25==1))&&(a22==1))&&(a20==1))&&(a7==1)))){ + a7 = 0; + a14 = 8; + a25 = 0; + a20 = 0; + a19 = 4; + a24 = 0; + a29 = 7; + a0 = 0; + return 23; + } else if((((((a14==8)&&((a11==1)&&(((a20==1)&&(((((input==1)&&(a22==1))&&(a29==7))&&(a0==1))&&(a19==4)))&&(a28==1))))&&!(a7==1))&&!(a24==1))&&(a25==1))){ + a19 = 1; + a7 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if((!(a24==1)&&(((a20==1)&&((((((a7==1)&&(((a14==9)&&((input==3)&&((a29==5)||(a29==6))))&&!(a25==1)))&&(a28==1))&&!(a11==1))&&(a22==1))&&(a19==1)))&&!(a0==1)))){ + a29 = 7; + a24 = 1; + a11 = 1; + a19 = 5; + a7 = 0; + return -1; + } else if(((a7==1)&&(!(a11==1)&&(((a24==1)&&((!(a20==1)&&((((((a19==3)&&(input==4))&&(a28==1))&&(a14==8))&&(a25==1))&&(a29==6)))&&(a22==1)))&&!(a0==1))))){ + a19 = 1; + a14 = 9; + a25 = 0; + a11 = 1; + a24 = 0; + return 21; + } else if(((a25==1)&&((a14==8)&&((a28==1)&&((a24==1)&&((a19==5)&&(!(a20==1)&&(((((a11==1)&&(((a29==8)||(a29==9))&&(input==3)))&&(a22==1))&&!(a7==1))&&!(a0==1))))))))){ + a7 = 1; + a20 = 1; + a25 = 0; + a29 = 7; + return -1; + } else if(((a7==1)&&(((a22==1)&&(!(a25==1)&&(!(a11==1)&&((a19==5)&&((a29==7)&&(((a28==1)&&((a24==1)&&((a14==9)&&(input==4))))&&!(a20==1)))))))&&(a0==1)))){ + a7 = 0; + a11 = 1; + a20 = 1; + a29 = 5; + a19 = 3; + return 24; + } else if(((((!(a0==1)&&(((((a28==1)&&((((input==4)&&((a29==8)||(a29==9)))&&!(a24==1))&&(a11==1)))&&(a7==1))&&(a14==9))&&(a22==1)))&&(a19==2))&&!(a20==1))&&!(a25==1))){ + a20 = 1; + a7 = 0; + a25 = 1; + a29 = 8; + a11 = 0; + a14 = 8; + a24 = 1; + return 21; + } else if((((a29==6)&&((((a28==1)&&((((a0==1)&&((a11==1)&&((a25==1)&&((input==1)&&!(a20==1)))))&&!(a7==1))&&(a24==1)))&&(a14==8))&&(a22==1)))&&(a19==5))){ + a11 = 0; + a19 = 1; + return 23; + } else if(((a14==8)&&((((((a25==1)&&(((a29==6)&&(((a22==1)&&((input==6)&&!(a20==1)))&&(a28==1)))&&(a19==4)))&&!(a11==1))&&(a24==1))&&(a0==1))&&(a7==1)))){ + a20 = 1; + a19 = 1; + a11 = 1; + a29 = 9; + a14 = 9; + return 24; + } else if(((a25==1)&&(((a28==1)&&(!(a24==1)&&((a22==1)&&((!(a7==1)&&(!(a0==1)&&((a14==9)&&(((input==4)&&((a29==6)||(a29==7)))&&(a19==4)))))&&(a20==1)))))&&!(a11==1)))){ + a14 = 8; + a29 = 5; + a20 = 0; + a19 = 2; + a11 = 1; + a7 = 1; + a25 = 0; + return -1; + } else if(((!(a11==1)&&(((a22==1)&&(!(a24==1)&&((a28==1)&&(!(a25==1)&&((!(a0==1)&&(((((a29==8)&&(a19==1))||((a19==1)&&(a29==9)))||((a29==5)&&(a19==2)))&&(input==4)))&&(a20==1))))))&&!(a7==1)))&&(a14==8))){ + a20 = 0; + a14 = 9; + a24 = 1; + a19 = 1; + a7 = 1; + a25 = 1; + a29 = 5; + return 24; + } else if(((a7==1)&&(!(a20==1)&&(((a25==1)&&((a0==1)&&((a14==8)&&(((((input==4)&&(((a29==9)&&(a19==3))||((a29==5)&&(a19==4))))&&(a22==1))&&(a11==1))&&!(a24==1)))))&&(a28==1))))){ + a19 = 1; + a20 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if(((((a22==1)&&((((!(a24==1)&&(((a25==1)&&((a11==1)&&(((a29==6)||(a29==7))&&(input==3))))&&!(a0==1)))&&(a19==1))&&!(a7==1))&&(a14==8)))&&(a28==1))&&(a20==1))){ + a7 = 1; + a0 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if(((a24==1)&&((((a14==9)&&(((a19==5)&&(((a28==1)&&((!(a7==1)&&((a11==1)&&(input==4)))&&(a20==1)))&&(a0==1)))&&(a29==7)))&&(a22==1))&&!(a25==1)))){ + a19 = 4; + a25 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if(((a24==1)&&((((a14==8)&&((((a28==1)&&((!(a25==1)&&((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))&&(input==2)))&&(a7==1)))&&!(a20==1))&&!(a0==1)))&&(a22==1))&&!(a11==1)))){ + a0 = 1; + a11 = 1; + a20 = 1; + a25 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((((a19==4)&&((a0==1)&&((!(a25==1)&&(((a24==1)&&((((a28==1)&&((input==1)&&!(a11==1)))&&!(a7==1))&&(a29==6)))&&(a14==9)))&&(a20==1))))&&(a22==1))){ + a29 = 9; + a0 = 0; + a19 = 2; + a11 = 1; + a14 = 8; + a7 = 1; + return 21; + } else if(((a14==9)&&(((a7==1)&&((!(a25==1)&&((a24==1)&&((a22==1)&&((a19==3)&&(((a11==1)&&((input==4)&&((a29==8)||(a29==9))))&&!(a20==1))))))&&(a0==1)))&&(a28==1)))){ + a20 = 1; + a19 = 1; + a25 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((a14==9)&&(!(a7==1)&&((a20==1)&&((((a22==1)&&(!(a0==1)&&((((a28==1)&&(((a29==5)||(a29==6))&&(input==1)))&&(a25==1))&&(a19==2))))&&!(a24==1))&&!(a11==1)))))){ + a24 = 1; + a0 = 1; + a19 = 1; + a29 = 5; + a14 = 8; + a7 = 1; + a11 = 1; + return -1; + } else if((((!(a25==1)&&((((!(a0==1)&&((a20==1)&&(!(a24==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==2))&&(a22==1)))))&&(a14==9))&&!(a7==1))&&(a19==5)))&&(a28==1))&&(a11==1))){ + a14 = 8; + a24 = 1; + a7 = 1; + a19 = 3; + a29 = 7; + a20 = 0; + a11 = 0; + a25 = 1; + return 23; + } else if((((a11==1)&&(((a7==1)&&((a28==1)&&((a19==5)&&(((a22==1)&&(!(a0==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==5))&&(a14==9))))&&(a20==1)))))&&!(a25==1)))&&(a24==1))){ + a24 = 0; + a19 = 2; + a0 = 1; + a7 = 0; + a11 = 0; + a29 = 8; + return 21; + } else if(((!(a11==1)&&((a14==9)&&((a28==1)&&((a19==3)&&((a24==1)&&((((a22==1)&&(((input==1)&&(a25==1))&&!(a0==1)))&&(a29==5))&&!(a7==1)))))))&&!(a20==1))){ + a7 = 1; + a25 = 0; + a11 = 1; + a0 = 1; + return 21; + } else if(((a22==1)&&(((a28==1)&&((a24==1)&&((a14==8)&&((a0==1)&&((a19==5)&&((a20==1)&&((((input==1)&&((a29==9)||((a29==7)||(a29==8))))&&(a11==1))&&!(a25==1))))))))&&!(a7==1)))){ + a7 = 1; + a29 = 5; + a24 = 0; + return 24; + } else if((((a28==1)&&((a20==1)&&(((!(a7==1)&&(!(a11==1)&&(!(a0==1)&&((((((a25==1)&&(a29==8))&&(a19==5))||(((a29==9)&&(a25==1))&&(a19==5)))||((a19==1)&&(!(a25==1)&&(a29==5))))&&(input==6)))))&&(a14==8))&&(a22==1))))&&!(a24==1))){ + a29 = 7; + a19 = 4; + a7 = 1; + a25 = 1; + a24 = 1; + a11 = 1; + return 21; + } else if(((((!(a0==1)&&(!(a20==1)&&(!(a7==1)&&(((((input==1)&&((((a29==8)&&(a19==4))||((a19==4)&&(a29==9)))||((a19==5)&&(a29==5))))&&(a24==1))&&(a22==1))&&!(a11==1)))))&&(a14==9))&&!(a25==1))&&(a28==1))){ + a19 = 5; + a25 = 1; + a7 = 1; + a29 = 5; + a0 = 1; + return 23; + } else if(((a7==1)&&(!(a11==1)&&((((a29==7)&&(!(a20==1)&&(((a14==9)&&((a0==1)&&(((input==2)&&(a28==1))&&(a19==3))))&&!(a25==1))))&&!(a24==1))&&(a22==1))))){ + a11 = 1; + a19 = 5; + return -1; + } else if(((a0==1)&&((a22==1)&&((a28==1)&&(((a19==2)&&((((((a7==1)&&((input==4)&&((a29==5)||(a29==6))))&&(a14==10))&&!(a20==1))&&!(a25==1))&&(a11==1)))&&(a24==1)))))){ + a20 = 1; + a14 = 9; + a11 = 0; + a19 = 4; + a29 = 5; + return 23; + } else if((((!(a7==1)&&((a24==1)&&(((((a0==1)&&((((input==5)&&(a22==1))&&(a28==1))&&(a11==1)))&&(a19==3))&&(a25==1))&&(a29==7))))&&(a14==9))&&(a20==1))){ + a14 = 8; + a7 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((((a24==1)&&(((((a0==1)&&((a28==1)&&((a20==1)&&(((a7==1)&&(((a29==7)||(a29==8))&&(input==5)))&&(a14==9)))))&&(a19==1))&&(a22==1))&&!(a25==1)))&&(a11==1))){ + a25 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((((a7==1)&&(!(a11==1)&&((a25==1)&&(!(a24==1)&&(((a29==8)&&((((a22==1)&&(input==4))&&!(a20==1))&&(a28==1)))&&(a19==4))))))&&(a14==8))&&!(a0==1))){ + a0 = 1; + a20 = 1; + a29 = 5; + a11 = 1; + a24 = 1; + a19 = 1; + return -1; + } else if(((((((((a28==1)&&((a0==1)&&(((a25==1)&&((input==2)&&((a29==6)||(a29==7))))&&(a14==8))))&&(a20==1))&&(a19==2))&&(a11==1))&&(a22==1))&&(a7==1))&&!(a24==1))){ + a29 = 6; + a20 = 0; + a19 = 5; + a11 = 0; + return 24; + } else if((!(a11==1)&&((a22==1)&&((a7==1)&&((a14==8)&&(((a24==1)&&(!(a0==1)&&((a28==1)&&(!(a20==1)&&((input==3)&&(((a19==5)&&(a29==5))||(((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))))))))&&!(a25==1))))))){ + a20 = 1; + a19 = 2; + a24 = 0; + a11 = 1; + a29 = 9; + return -1; + } else if(((a19==1)&&(((a24==1)&&((a25==1)&&((a22==1)&&(((((a29==6)&&((a20==1)&&((input==6)&&(a0==1))))&&!(a11==1))&&(a14==8))&&(a28==1)))))&&(a7==1)))){ + a19 = 5; + a0 = 0; + a29 = 8; + a20 = 0; + return 23; + } else if(((a11==1)&&((((((a14==9)&&((a28==1)&&((((((a29==9)||((a29==7)||(a29==8)))&&(input==1))&&!(a7==1))&&(a22==1))&&!(a0==1))))&&(a19==1))&&(a24==1))&&(a25==1))&&!(a20==1)))){ + a14 = 8; + a25 = 0; + a19 = 2; + a29 = 8; + a20 = 1; + return 21; + } else if((!(a0==1)&&((a28==1)&&((((((a22==1)&&((!(a11==1)&&((a14==8)&&((input==3)&&(((a29==5)||(a29==6))||(a29==7)))))&&(a24==1)))&&(a20==1))&&!(a25==1))&&(a19==3))&&(a7==1))))){ + a0 = 1; + a19 = 2; + a11 = 1; + a14 = 9; + a29 = 8; + a25 = 1; + a7 = 0; + return 24; + } else if((((!(a11==1)&&((a28==1)&&((!(a0==1)&&((input==6)&&(((a19==1)&&((a29==5)&&(((a7==1)&&!(a20==1))&&(a25==1))))||((((a29==8)&&((!(a7==1)&&(a20==1))&&!(a25==1)))&&(a19==5))||((a19==5)&&((a29==9)&&(!(a25==1)&&((a20==1)&&!(a7==1)))))))))&&(a24==1))))&&(a14==9))&&(a22==1))){ + a14 = 8; + a29 = 6; + a24 = 0; + a20 = 1; + a11 = 1; + a19 = 5; + a7 = 1; + a25 = 1; + return 21; + } else if(((a0==1)&&((((a28==1)&&((a22==1)&&((((((a19==1)&&((a29==6)&&(!(a7==1)&&(a25==1))))||(((a19==5)&&((a29==9)&&(!(a25==1)&&(a7==1))))||((a19==1)&&((a29==5)&&((a25==1)&&!(a7==1))))))&&(input==1))&&(a11==1))&&(a14==8))))&&!(a20==1))&&!(a24==1)))){ + a20 = 1; + a24 = 1; + a7 = 1; + a29 = 6; + a0 = 0; + a11 = 0; + a25 = 1; + a19 = 5; + return 23; + } else if(((a28==1)&&((a7==1)&&((!(a0==1)&&((((a25==1)&&(!(a24==1)&&((a14==9)&&(((input==4)&&(((a29==6)||(a29==7))||(a29==8)))&&(a22==1)))))&&(a19==3))&&!(a20==1)))&&!(a11==1))))){ + a0 = 1; + a29 = 6; + a7 = 0; + a24 = 1; + a11 = 1; + return -1; + } else if(((a28==1)&&((a19==4)&&((((((a22==1)&&((a11==1)&&((a25==1)&&(((input==1)&&((a29==7)||(a29==8)))&&(a0==1)))))&&(a7==1))&&(a20==1))&&(a24==1))&&(a14==10))))){ + a25 = 0; + a14 = 9; + a29 = 5; + a11 = 0; + return -1; + } else if(((a29==8)&&(((a22==1)&&(!(a24==1)&&(((!(a7==1)&&(((a28==1)&&((a19==3)&&((input==5)&&!(a11==1))))&&!(a20==1)))&&(a14==8))&&(a25==1))))&&!(a0==1)))){ + a24 = 1; + a19 = 5; + a7 = 1; + a11 = 1; + a29 = 5; + a20 = 1; + return 24; + } else if(((a19==5)&&((((a24==1)&&((((a22==1)&&((a28==1)&&(((a0==1)&&((input==3)&&((a29==9)||((a29==7)||(a29==8)))))&&!(a25==1))))&&(a7==1))&&(a11==1)))&&(a20==1))&&(a14==10)))){ + a14 = 8; + a11 = 0; + a24 = 0; + a29 = 9; + a20 = 0; + a7 = 0; + a25 = 1; + a19 = 4; + return 24; + } else if((((a19==5)&&(!(a25==1)&&((a22==1)&&(!(a20==1)&&((a24==1)&&((((!(a7==1)&&((input==2)&&(a14==8)))&&(a28==1))&&(a11==1))&&(a0==1)))))))&&(a29==8))){ + a19 = 3; + a29 = 6; + a11 = 0; + a24 = 0; + a20 = 1; + return 21; + } else if(((a20==1)&&((((a22==1)&&(((!(a0==1)&&((((((a19==4)&&(a29==5))||(((a29==8)&&(a19==3))||((a29==9)&&(a19==3))))&&(input==3))&&(a25==1))&&(a28==1)))&&(a24==1))&&(a7==1)))&&!(a11==1))&&(a14==8)))){ + a24 = 0; + a29 = 5; + a7 = 0; + a20 = 0; + a19 = 3; + a25 = 0; + a0 = 1; + return 23; + } else if((!(a20==1)&&((a24==1)&&(!(a25==1)&&((a22==1)&&((((a7==1)&&(((a28==1)&&((((a29==7)||(a29==8))&&(input==6))&&(a19==4)))&&(a14==9)))&&!(a11==1))&&!(a0==1))))))){ + a19 = 2; + a11 = 1; + a29 = 8; + a24 = 0; + return -1; + } else if(((((((a29==8)&&(!(a25==1)&&(((!(a20==1)&&(((input==3)&&(a7==1))&&!(a24==1)))&&!(a0==1))&&(a14==9))))&&(a19==5))&&!(a11==1))&&(a28==1))&&(a22==1))){ + a19 = 3; + a29 = 5; + a20 = 1; + a0 = 1; + a7 = 0; + a24 = 1; + a11 = 1; + return -1; + } else if((((a20==1)&&(((((a7==1)&&(((a28==1)&&(!(a11==1)&&((input==6)&&(((a19==4)&&(a29==9))||((a29==5)&&(a19==5))))))&&(a14==8)))&&!(a24==1))&&(a22==1))&&!(a0==1)))&&!(a25==1))){ + a7 = 0; + a19 = 5; + a11 = 1; + a20 = 0; + a24 = 1; + a29 = 8; + return 21; + } else if((!(a7==1)&&((a11==1)&&((a19==5)&&((a14==10)&&(((a0==1)&&(((a24==1)&&(!(a25==1)&&((a29==6)&&((input==1)&&(a22==1)))))&&(a28==1)))&&!(a20==1))))))){ + a29 = 9; + a0 = 0; + a19 = 2; + a20 = 1; + a11 = 0; + a14 = 8; + return -1; + } else if(((a11==1)&&(((a14==8)&&(!(a0==1)&&((!(a24==1)&&(((((a7==1)&&(((a29==8)||(a29==9))&&(input==2)))&&(a20==1))&&(a28==1))&&!(a25==1)))&&(a19==4))))&&(a22==1)))){ + a14 = 9; + a29 = 6; + a24 = 1; + a19 = 1; + return 21; + } else if(((a25==1)&&((a11==1)&&(((a28==1)&&(((!(a7==1)&&(((a22==1)&&((a19==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==5))))&&(a24==1)))&&!(a20==1))&&(a14==10)))&&(a0==1))))){ + a29 = 7; + a0 = 0; + a7 = 1; + a14 = 8; + a19 = 4; + a20 = 1; + return 23; + } else if((((((((a14==9)&&((a0==1)&&(((((((a29==8)&&(a19==3))||((a19==3)&&(a29==9)))||((a19==4)&&(a29==5)))&&(input==6))&&!(a20==1))&&(a28==1))))&&(a24==1))&&!(a7==1))&&(a22==1))&&(a25==1))&&!(a11==1))){ + a7 = 1; + a20 = 1; + a14 = 8; + a11 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((((!(a25==1)&&((a0==1)&&(!(a7==1)&&((a22==1)&&((a11==1)&&(!(a24==1)&&((a20==1)&&((a14==9)&&((input==4)&&(((a29==6)||(a29==7))||(a29==8)))))))))))&&(a28==1))&&(a19==5))){ + a24 = 1; + a29 = 9; + a19 = 1; + a20 = 0; + a14 = 8; + a7 = 1; + a0 = 0; + return 23; + } else if((((a25==1)&&(!(a0==1)&&((((((a28==1)&&((a22==1)&&(!(a24==1)&&((input==1)&&((a29==9)||((a29==7)||(a29==8)))))))&&(a19==1))&&!(a20==1))&&(a11==1))&&(a14==8))))&&!(a7==1))){ + a25 = 0; + a7 = 1; + a0 = 1; + a19 = 3; + a29 = 7; + a11 = 0; + return 24; + } else if((((a24==1)&&(((((((((a19==4)&&((a0==1)&&(input==3)))&&(a28==1))&&(a7==1))&&(a11==1))&&(a14==10))&&(a22==1))&&!(a20==1))&&(a25==1)))&&(a29==8))){ + a20 = 1; + a14 = 8; + a29 = 5; + a19 = 1; + return -1; + } else if(((!(a11==1)&&((a14==9)&&(((((a25==1)&&(((a22==1)&&(((input==2)&&(a24==1))&&(a19==1)))&&!(a20==1)))&&!(a0==1))&&(a29==6))&&(a28==1))))&&(a7==1))){ + a20 = 1; + a24 = 0; + a19 = 4; + a25 = 0; + a0 = 1; + return 23; + } else if((((a19==3)&&((a22==1)&&(!(a24==1)&&((!(a25==1)&&(((a14==8)&&((((a20==1)&&(input==3))&&!(a0==1))&&!(a11==1)))&&(a28==1)))&&!(a7==1)))))&&(a29==6))){ + a20 = 0; + a11 = 1; + a19 = 4; + a24 = 1; + return 24; + } else if((((!(a11==1)&&(!(a20==1)&&((a14==8)&&(((a7==1)&&((!(a25==1)&&((a28==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==1))))&&(a19==5)))&&(a24==1)))))&&(a22==1))&&(a0==1))){ + a29 = 9; + a0 = 0; + a25 = 1; + a11 = 1; + a19 = 1; + a20 = 1; + return 21; + } else if(((((a22==1)&&((a28==1)&&(((a14==8)&&((((!(a24==1)&&((input==1)&&((a29==6)||(a29==7))))&&(a11==1))&&!(a25==1))&&!(a20==1)))&&(a19==3))))&&(a7==1))&&!(a0==1))){ + a11 = 0; + a0 = 1; + a29 = 7; + a19 = 5; + return 23; + } else if((((a22==1)&&(((((a29==9)&&((a28==1)&&(((a19==3)&&(((input==2)&&(a25==1))&&(a0==1)))&&!(a24==1))))&&(a14==9))&&(a7==1))&&(a20==1)))&&!(a11==1))){ + a24 = 1; + a20 = 0; + a19 = 2; + a29 = 6; + a11 = 1; + a7 = 0; + return 24; + } else if(((!(a24==1)&&(!(a7==1)&&((a22==1)&&(!(a0==1)&&((a25==1)&&(!(a11==1)&&((!(a20==1)&&((input==1)&&((((a19==1)&&(a29==8))||((a29==9)&&(a19==1)))||((a19==2)&&(a29==5)))))&&(a14==8))))))))&&(a28==1))){ + a29 = 5; + a0 = 1; + a11 = 1; + a24 = 1; + a19 = 1; + a20 = 1; + a7 = 1; + return -1; + } else if((((a25==1)&&(((a20==1)&&((a19==4)&&((a29==5)&&((!(a11==1)&&((a28==1)&&((a14==8)&&((a22==1)&&(input==1)))))&&!(a24==1)))))&&!(a7==1)))&&!(a0==1))){ + a0 = 1; + a19 = 1; + a24 = 1; + a11 = 1; + a7 = 1; + return -1; + } else if(((((a25==1)&&(!(a0==1)&&(((((((a20==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==2)))&&(a22==1))&&!(a24==1))&&(a14==8))&&!(a7==1))&&(a28==1))))&&(a19==3))&&!(a11==1))){ + a29 = 7; + a14 = 9; + a19 = 4; + a24 = 1; + a20 = 0; + a0 = 1; + return 23; + } else if(((a0==1)&&((((((a19==4)&&(((((((a29==5)||(a29==6))&&(input==4))&&(a25==1))&&!(a20==1))&&(a14==8))&&!(a11==1)))&&(a28==1))&&!(a24==1))&&(a7==1))&&(a22==1)))){ + a29 = 8; + a14 = 9; + a19 = 5; + a24 = 1; + a25 = 0; + a20 = 1; + return 21; + } else if(((((((a11==1)&&((a0==1)&&((((a28==1)&&((a19==2)&&((input==6)&&((a29==6)||(a29==7)))))&&!(a20==1))&&!(a7==1))))&&(a22==1))&&(a14==8))&&(a24==1))&&!(a25==1))){ + a29 = 8; + a7 = 1; + a25 = 1; + a11 = 0; + a24 = 0; + a20 = 1; + a19 = 4; + return 23; + } else if(((((a28==1)&&((a19==1)&&((a25==1)&&(((((((input==3)&&(a29==9))&&(a20==1))&&(a22==1))&&(a14==9))&&!(a24==1))&&!(a11==1)))))&&!(a7==1))&&!(a0==1))){ + a25 = 0; + a24 = 1; + a11 = 1; + a19 = 3; + a20 = 0; + a0 = 1; + a29 = 7; + return -1; + } else if(((a28==1)&&((a22==1)&&(((((((a14==8)&&((a11==1)&&((a20==1)&&((input==1)&&(a29==7)))))&&(a0==1))&&!(a24==1))&&!(a7==1))&&(a19==2))&&(a25==1))))){ + a29 = 5; + a19 = 1; + a7 = 1; + a24 = 1; + return -1; + } else if(((a28==1)&&(((!(a25==1)&&((a19==5)&&((((a11==1)&&((a14==8)&&(!(a7==1)&&(((a29==8)||(a29==9))&&(input==6)))))&&(a20==1))&&(a0==1))))&&(a22==1))&&!(a24==1)))){ + a29 = 5; + a24 = 1; + a7 = 1; + a25 = 1; + a19 = 1; + return -1; + } else if((!(a0==1)&&(((a7==1)&&(((((a22==1)&&((((a20==1)&&((a29==7)&&(input==6)))&&(a19==4))&&(a14==9)))&&(a24==1))&&!(a11==1))&&!(a25==1)))&&(a28==1)))){ + a0 = 1; + a19 = 1; + a20 = 0; + return 24; + } else if((!(a11==1)&&((a22==1)&&(((((a19==5)&&(!(a0==1)&&(((((input==4)&&((a29==7)||(a29==8)))&&!(a20==1))&&(a28==1))&&(a14==9))))&&!(a7==1))&&!(a25==1))&&!(a24==1))))){ + a25 = 1; + a0 = 1; + a7 = 1; + a19 = 1; + a20 = 1; + a29 = 5; + a24 = 1; + a14 = 8; + a11 = 1; + return -1; + } else if((!(a25==1)&&(((((a22==1)&&(((((a14==9)&&((((a29==7)||(a29==8))&&(input==2))&&(a24==1)))&&!(a7==1))&&!(a20==1))&&(a0==1)))&&(a19==4))&&!(a11==1))&&(a28==1)))){ + a20 = 1; + a7 = 1; + a14 = 8; + a25 = 1; + a11 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((a20==1)&&(((((!(a24==1)&&((a22==1)&&((a14==9)&&(((((a19==3)&&(a29==5))||(((a19==2)&&(a29==8))||((a19==2)&&(a29==9))))&&(input==2))&&(a25==1)))))&&!(a0==1))&&(a28==1))&&(a7==1))&&(a11==1)))){ + a0 = 1; + a29 = 7; + a19 = 4; + a11 = 0; + a24 = 1; + return -1; + } else if((((a11==1)&&((a14==9)&&((a24==1)&&(!(a0==1)&&((a22==1)&&(((((input==1)&&(((a29==5)&&(a19==4))||(((a29==8)&&(a19==3))||((a29==9)&&(a19==3)))))&&(a28==1))&&!(a20==1))&&(a7==1)))))))&&!(a25==1))){ + a29 = 6; + a14 = 8; + a11 = 0; + a19 = 5; + a20 = 1; + return -1; + } else if((((a20==1)&&((a22==1)&&((a14==8)&&(!(a11==1)&&((a28==1)&&(((((a7==1)&&((input==3)&&((a29==7)||(a29==8))))&&(a0==1))&&(a24==1))&&(a19==5)))))))&&(a25==1))){ + a7 = 0; + a20 = 0; + a29 = 7; + a0 = 0; + return 23; + } else if(((((a11==1)&&((a14==9)&&((a19==2)&&((a20==1)&&((a0==1)&&((((!(a24==1)&&(input==4))&&(a22==1))&&(a7==1))&&!(a25==1)))))))&&(a28==1))&&(a29==9))){ + a19 = 3; + a29 = 5; + return 21; + } else if((((((((a24==1)&&(((a7==1)&&((a11==1)&&((((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))&&(input==2))))&&(a0==1)))&&(a28==1))&&(a14==10))&&(a22==1))&&(a25==1))&&!(a20==1))){ + a7 = 0; + a14 = 9; + a29 = 8; + a19 = 4; + a0 = 0; + return -1; + } else if(((((a0==1)&&((a7==1)&&((a25==1)&&((((a28==1)&&((((input==1)&&(a14==8))&&(a24==1))&&(a29==5)))&&(a22==1))&&!(a20==1)))))&&!(a11==1))&&(a19==4))){ + a29 = 7; + a19 = 5; + a25 = 0; + a0 = 0; + a24 = 0; + a7 = 0; + return 23; + } else if(((a14==9)&&((a19==3)&&((a25==1)&&((a22==1)&&(((a28==1)&&((a20==1)&&((a24==1)&&((!(a7==1)&&((input==3)&&((a29==5)||(a29==6))))&&!(a11==1)))))&&(a0==1))))))){ + a14 = 8; + a29 = 5; + a11 = 1; + a19 = 1; + a7 = 1; + return -1; + } else if(((!(a24==1)&&(!(a11==1)&&(!(a7==1)&&(!(a20==1)&&(((a22==1)&&((((input==2)&&(((a19==4)&&(a29==6))||(((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))))&&!(a0==1))&&(a14==9)))&&(a28==1))))))&&!(a25==1))){ + a7 = 1; + a11 = 1; + a29 = 5; + a20 = 1; + a24 = 1; + a14 = 8; + a25 = 1; + a0 = 1; + a19 = 1; + return -1; + } else if((((a0==1)&&((a14==9)&&(!(a25==1)&&(!(a24==1)&&((!(a20==1)&&((a11==1)&&((a19==2)&&(((input==6)&&(((a29==5)||(a29==6))||(a29==7)))&&(a28==1)))))&&(a22==1))))))&&!(a7==1))){ + a14 = 8; + a24 = 1; + a19 = 1; + a7 = 1; + a25 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if((!(a0==1)&&(!(a20==1)&&(((((a22==1)&&(!(a7==1)&&((a14==8)&&((a24==1)&&((a19==5)&&((input==2)&&((a29==5)||(a29==6))))))))&&!(a25==1))&&!(a11==1))&&(a28==1))))){ + a25 = 1; + a29 = 5; + a19 = 1; + a0 = 1; + a7 = 1; + a11 = 1; + a20 = 1; + return -1; + } else if((((a28==1)&&(!(a25==1)&&(((a19==2)&&((a11==1)&&(((a14==8)&&(!(a7==1)&&(!(a24==1)&&((input==1)&&((a29==5)||(a29==6))))))&&!(a20==1))))&&(a22==1))))&&!(a0==1))){ + a20 = 1; + a24 = 1; + a25 = 1; + a7 = 1; + a19 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if(((a0==1)&&(!(a20==1)&&(!(a25==1)&&(((((a19==2)&&((a29==8)&&((a22==1)&&(((input==3)&&(a7==1))&&(a24==1)))))&&(a11==1))&&(a28==1))&&(a14==8)))))){ + a24 = 0; + a7 = 0; + a29 = 6; + return 21; + } else if((!(a7==1)&&((a28==1)&&((a14==9)&&(!(a0==1)&&(!(a20==1)&&(!(a24==1)&&(((!(a11==1)&&((input==2)&&(((a29==6)&&(a19==2))||(((a29==9)&&(a19==1))||((a29==5)&&(a19==2))))))&&!(a25==1))&&(a22==1))))))))){ + a29 = 5; + a0 = 1; + a20 = 1; + a19 = 1; + a25 = 1; + return -1; + } else if((((((!(a25==1)&&((a11==1)&&(((!(a7==1)&&((a28==1)&&(((a29==5)||(a29==6))&&(input==6))))&&(a0==1))&&!(a20==1))))&&(a14==9))&&(a22==1))&&(a19==2))&&(a24==1))){ + a29 = 5; + a19 = 1; + a20 = 1; + a25 = 1; + a14 = 8; + a7 = 1; + return -1; + } else if(((!(a7==1)&&(((((!(a11==1)&&(((a29==5)&&(((input==1)&&!(a0==1))&&!(a25==1)))&&(a24==1)))&&(a28==1))&&(a22==1))&&(a19==4))&&(a14==9)))&&!(a20==1))){ + a19 = 1; + a7 = 1; + a0 = 1; + a11 = 1; + a14 = 8; + a20 = 1; + a25 = 1; + return -1; + } else if((((!(a24==1)&&((((!(a11==1)&&((((a19==1)&&((input==6)&&((a29==7)||(a29==8))))&&(a22==1))&&(a20==1)))&&(a28==1))&&(a0==1))&&(a7==1)))&&(a14==8))&&!(a25==1))){ + a11 = 1; + a0 = 0; + a25 = 1; + a20 = 0; + a19 = 2; + a29 = 7; + a24 = 1; + return 23; + } else if((((a22==1)&&((a28==1)&&((!(a0==1)&&(!(a11==1)&&((((((((a29==7)||(a29==8))||(a29==9))&&(input==4))&&!(a25==1))&&(a7==1))&&(a19==2))&&(a20==1))))&&(a14==9))))&&!(a24==1))){ + a29 = 5; + a7 = 0; + a11 = 1; + a0 = 1; + a19 = 1; + a20 = 0; + return 21; + } else if(((((a22==1)&&(!(a7==1)&&(!(a0==1)&&(((((a25==1)&&((!(a24==1)&&(input==6))&&!(a11==1)))&&(a20==1))&&(a19==3))&&(a28==1)))))&&(a14==8))&&(a29==9))){ + a7 = 1; + a0 = 1; + a24 = 1; + a11 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((a29==7)&&(((a28==1)&&((a25==1)&&((a20==1)&&((!(a11==1)&&(!(a0==1)&&(!(a7==1)&&(((a22==1)&&(input==1))&&(a19==5)))))&&(a24==1)))))&&(a14==8)))){ + a19 = 1; + a24 = 0; + a29 = 6; + a25 = 0; + a11 = 1; + return -1; + } else if(((a28==1)&&((((a25==1)&&(!(a0==1)&&((((!(a24==1)&&(!(a20==1)&&(((a29==8)||(a29==9))&&(input==1))))&&(a19==3))&&(a14==8))&&(a11==1))))&&(a22==1))&&(a7==1)))){ + a29 = 9; + a19 = 2; + a0 = 1; + a11 = 0; + a25 = 0; + return 23; + } else if(((((a20==1)&&(!(a7==1)&&((a19==5)&&((!(a0==1)&&(((a24==1)&&(((a29==6)&&(input==2))&&(a28==1)))&&(a14==8)))&&(a25==1)))))&&(a22==1))&&!(a11==1))){ + a19 = 1; + a20 = 0; + a7 = 1; + a29 = 9; + a11 = 1; + return 24; + } else if(((((a25==1)&&(((a29==6)&&((a19==3)&&(((a28==1)&&(((a22==1)&&((a20==1)&&(input==6)))&&(a24==1)))&&(a11==1))))&&!(a0==1)))&&(a14==9))&&(a7==1))){ + a29 = 5; + a19 = 1; + a0 = 1; + a14 = 8; + return -1; + } else if((((a29==9)&&((((a14==8)&&((a19==3)&&(!(a25==1)&&((a28==1)&&((a0==1)&&((a20==1)&&((a24==1)&&(input==1))))))))&&!(a7==1))&&(a11==1)))&&(a22==1))){ + a29 = 8; + a25 = 1; + a7 = 1; + a19 = 1; + a24 = 0; + return 21; + } else if((((!(a25==1)&&((!(a7==1)&&(((!(a20==1)&&(((input==1)&&(((a19==4)&&(a29==5))||(((a19==3)&&(a29==8))||((a29==9)&&(a19==3)))))&&(a14==9)))&&(a0==1))&&!(a24==1)))&&(a11==1)))&&(a22==1))&&(a28==1))){ + a25 = 1; + a19 = 4; + a29 = 5; + a11 = 0; + a20 = 1; + a0 = 0; + a14 = 8; + a24 = 1; + return 24; + } else if(((a28==1)&&((((((a22==1)&&((a29==7)&&(!(a25==1)&&((((input==3)&&(a0==1))&&!(a20==1))&&(a11==1)))))&&(a14==8))&&(a19==4))&&(a7==1))&&(a24==1)))){ + a20 = 1; + a11 = 0; + a29 = 8; + a25 = 1; + return 21; + } else if(((a28==1)&&((a0==1)&&((a19==5)&&(((((!(a24==1)&&((((input==5)&&(a22==1))&&(a7==1))&&!(a25==1)))&&(a29==9))&&!(a11==1))&&(a14==8))&&(a20==1)))))){ + a24 = 1; + a25 = 1; + a29 = 5; + a19 = 1; + a11 = 1; + return -1; + } else if((!(a24==1)&&(((a19==5)&&((a28==1)&&(((!(a0==1)&&((a7==1)&&((!(a25==1)&&((input==4)&&(a22==1)))&&!(a20==1))))&&!(a11==1))&&(a14==8))))&&(a29==7)))){ + a24 = 1; + a25 = 1; + a11 = 1; + a19 = 3; + a7 = 0; + a29 = 5; + return 24; + } return calculate_output33(input); + } + + int calculate_output33(int input) { + if(((a14==8)&&(!(a0==1)&&((a24==1)&&((a20==1)&&((a25==1)&&((a22==1)&&(((((input==1)&&(((a19==2)&&(a29==6))||(((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))))&&!(a11==1))&&(a7==1))&&(a28==1))))))))){ + a25 = 0; + a29 = 9; + a20 = 0; + a19 = 3; + a0 = 1; + a24 = 0; + return 21; + } else if((((((a20==1)&&(((a7==1)&&(!(a24==1)&&(((((a19==1)&&((a29==5)&&!(a25==1)))||((((a29==8)&&(a25==1))&&(a19==5))||((a19==5)&&((a29==9)&&(a25==1)))))&&(input==6))&&(a28==1))))&&(a14==8)))&&(a0==1))&&(a11==1))&&(a22==1))){ + a19 = 1; + a25 = 1; + a0 = 0; + a29 = 8; + a24 = 1; + return 24; + } else if((((((a7==1)&&((a14==9)&&((a11==1)&&((((a20==1)&&((((a29==5)||(a29==6))&&(input==6))&&(a28==1)))&&!(a25==1))&&(a22==1)))))&&!(a24==1))&&!(a0==1))&&(a19==5))){ + a20 = 0; + a0 = 1; + a14 = 8; + a11 = 0; + a19 = 4; + a7 = 0; + a29 = 6; + return 23; + } else if((((a19==4)&&(((((((a22==1)&&(!(a11==1)&&(!(a7==1)&&(((a29==5)||(a29==6))&&(input==6)))))&&!(a20==1))&&(a14==9))&&!(a25==1))&&(a28==1))&&(a24==1)))&&(a0==1))){ + a29 = 5; + a7 = 1; + a20 = 1; + a25 = 1; + a14 = 8; + a11 = 1; + a19 = 1; + return -1; + } else if(((a24==1)&&(((((a28==1)&&(((a11==1)&&(((a25==1)&&((input==5)&&(((a19==5)&&(a29==5))||(((a19==4)&&(a29==8))||((a29==9)&&(a19==4))))))&&(a14==9)))&&!(a0==1)))&&(a7==1))&&(a22==1))&&!(a20==1)))){ + a29 = 5; + a25 = 0; + a20 = 1; + a11 = 0; + a14 = 8; + a19 = 1; + return 23; + } else if(((((a14==8)&&((a24==1)&&(((a19==2)&&((!(a25==1)&&((a7==1)&&((a29==9)&&((input==1)&&(a11==1)))))&&(a0==1)))&&(a22==1))))&&!(a20==1))&&(a28==1))){ + a19 = 4; + a29 = 6; + a7 = 0; + a24 = 0; + return 24; + } else if((!(a25==1)&&((((a29==8)&&((a19==2)&&((a28==1)&&(!(a7==1)&&((a20==1)&&((a14==8)&&(((input==3)&&(a22==1))&&!(a11==1))))))))&&!(a24==1))&&(a0==1)))){ + a29 = 7; + a14 = 9; + a20 = 0; + a11 = 1; + return 21; + } else if(((!(a0==1)&&((((a24==1)&&((a14==8)&&(((a19==1)&&((a28==1)&&(!(a20==1)&&(((a29==5)||(a29==6))&&(input==5)))))&&!(a7==1))))&&(a11==1))&&!(a25==1)))&&(a22==1))){ + a29 = 8; + a19 = 5; + a25 = 1; + return 23; + } else if(((!(a20==1)&&((a22==1)&&((a11==1)&&((((a0==1)&&((((input==5)&&(((a19==2)&&(a29==9))||((a19==3)&&(a29==5))))&&(a7==1))&&!(a24==1)))&&(a14==8))&&(a25==1)))))&&(a28==1))){ + a24 = 1; + a29 = 9; + a0 = 0; + a19 = 1; + return 24; + } else if((((a28==1)&&((a19==5)&&((a0==1)&&((!(a11==1)&&((a24==1)&&((a7==1)&&((a14==8)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==5))&&!(a25==1))))))&&!(a20==1)))))&&(a22==1))){ + a25 = 1; + a20 = 1; + a7 = 0; + a11 = 1; + a29 = 9; + a14 = 9; + return 23; + } else if(((a22==1)&&((a28==1)&&((a20==1)&&(!(a11==1)&&(!(a0==1)&&(((a25==1)&&((a14==8)&&((a24==1)&&(!(a7==1)&&(((a29==6)||(a29==7))&&(input==5))))))&&(a19==1)))))))){ + a25 = 0; + a19 = 3; + a11 = 1; + a29 = 7; + return 24; + } else if(((!(a11==1)&&((a28==1)&&(((((((a25==1)&&(((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))||((a29==6)&&(a19==4)))&&(input==1)))&&(a22==1))&&!(a24==1))&&!(a7==1))&&(a0==1))&&!(a20==1))))&&(a14==8))){ + a19 = 4; + a24 = 1; + a11 = 1; + a25 = 0; + a29 = 8; + a20 = 1; + return -1; + } else if((((a14==8)&&((!(a11==1)&&((a22==1)&&((((a0==1)&&(!(a7==1)&&((((a29==5)||(a29==6))&&(input==4))&&!(a20==1))))&&(a19==5))&&(a28==1))))&&(a25==1)))&&!(a24==1))){ + a7 = 1; + a19 = 3; + a25 = 0; + a29 = 8; + return -1; + } else if(((a28==1)&&(((a14==9)&&((a7==1)&&(((((((a25==1)&&((input==6)&&(a19==5)))&&(a24==1))&&(a22==1))&&(a20==1))&&(a29==6))&&!(a11==1))))&&!(a0==1)))){ + a29 = 7; + a14 = 8; + a24 = 0; + a19 = 2; + a11 = 1; + return -1; + } else if((((a22==1)&&(((((a14==8)&&(((a28==1)&&(!(a11==1)&&(!(a20==1)&&((input==3)&&((a29==9)||((a29==7)||(a29==8)))))))&&(a0==1)))&&(a19==1))&&(a24==1))&&!(a7==1)))&&!(a25==1))){ + a25 = 1; + a11 = 1; + a20 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if(((a24==1)&&(((a25==1)&&(((a7==1)&&((a14==8)&&(((a22==1)&&((a0==1)&&(((input==5)&&(((a29==5)||(a29==6))||(a29==7)))&&(a11==1))))&&!(a20==1))))&&(a19==3)))&&(a28==1)))){ + a19 = 4; + a29 = 9; + a20 = 1; + a24 = 0; + a25 = 0; + a7 = 0; + return 21; + } else if(((((a24==1)&&((a19==1)&&((a20==1)&&(((a25==1)&&(!(a11==1)&&(((a7==1)&&((input==5)&&((a29==7)||(a29==8))))&&(a28==1))))&&(a14==8)))))&&(a0==1))&&(a22==1))){ + a24 = 0; + a7 = 0; + a29 = 6; + a20 = 0; + return 23; + } else if(((a11==1)&&(!(a24==1)&&((a28==1)&&((a14==9)&&((a0==1)&&((((((((a29==6)||(a29==7))&&(input==2))&&!(a20==1))&&!(a25==1))&&(a22==1))&&(a19==5))&&(a7==1)))))))){ + a19 = 2; + a25 = 1; + a7 = 0; + a20 = 1; + a14 = 8; + a0 = 0; + a29 = 5; + a24 = 1; + return -1; + } else if((((a25==1)&&(((a7==1)&&(((((a14==9)&&(!(a20==1)&&(((input==4)&&(((a29==5)||(a29==6))||(a29==7)))&&(a28==1))))&&(a0==1))&&(a22==1))&&!(a24==1)))&&!(a11==1)))&&(a19==2))){ + a24 = 1; + a14 = 8; + a19 = 1; + a29 = 5; + a20 = 1; + a11 = 1; + return -1; + } else if((((((a19==5)&&(!(a20==1)&&(((a28==1)&&(((!(a7==1)&&((input==3)&&((a29==7)||(a29==8))))&&!(a25==1))&&(a14==8)))&&(a11==1))))&&!(a0==1))&&(a24==1))&&(a22==1))){ + a0 = 1; + a11 = 0; + a19 = 4; + a24 = 0; + a7 = 1; + a29 = 6; + return 21; + } else if(((a19==3)&&(!(a11==1)&&((((a28==1)&&((a22==1)&&(((a24==1)&&((a7==1)&&(((input==3)&&((a29==8)||(a29==9)))&&!(a25==1))))&&(a14==8))))&&!(a20==1))&&!(a0==1))))){ + a11 = 1; + a7 = 0; + a29 = 7; + a25 = 1; + a19 = 4; + return 23; + } else if((!(a7==1)&&(((a19==1)&&((a28==1)&&(((a25==1)&&((a14==9)&&(!(a0==1)&&((a22==1)&&(!(a24==1)&&((input==3)&&((a29==7)||(a29==8))))))))&&(a11==1))))&&(a20==1)))){ + a7 = 1; + a24 = 1; + a11 = 0; + a20 = 0; + a29 = 8; + a25 = 0; + a14 = 8; + return 21; + } else if(((((((a25==1)&&((((a28==1)&&(!(a20==1)&&((a14==9)&&((a24==1)&&(input==6)))))&&(a7==1))&&(a22==1)))&&(a19==2))&&!(a0==1))&&(a11==1))&&(a29==7))){ + a7 = 0; + a0 = 1; + a29 = 6; + a20 = 1; + a14 = 8; + a19 = 4; + return 23; + } else if(((a19==2)&&((a0==1)&&(((a22==1)&&(!(a11==1)&&((a14==8)&&((a28==1)&&((!(a25==1)&&((a20==1)&&((input==2)&&!(a7==1))))&&(a29==5))))))&&(a24==1))))){ + a20 = 0; + a19 = 4; + a7 = 1; + a25 = 1; + a0 = 0; + a24 = 0; + a29 = 9; + return 21; + } else if((((a14==8)&&((((a0==1)&&(!(a24==1)&&((a20==1)&&(!(a25==1)&&((a28==1)&&(((input==2)&&!(a7==1))&&(a29==5)))))))&&(a11==1))&&(a19==2)))&&(a22==1))){ + a24 = 1; + a29 = 7; + a19 = 4; + a0 = 0; + return 21; + } else if((!(a0==1)&&((((((((((input==4)&&(((a19==4)&&(a29==9))||((a19==5)&&(a29==5))))&&!(a20==1))&&!(a11==1))&&(a14==9))&&(a28==1))&&(a22==1))&&!(a25==1))&&(a7==1))&&(a24==1)))){ + a14 = 8; + a20 = 1; + a29 = 9; + a0 = 1; + a7 = 0; + a19 = 1; + return -1; + } else if((!(a11==1)&&((((a14==8)&&((a22==1)&&((a28==1)&&((a7==1)&&(!(a25==1)&&((a19==3)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==5))&&!(a0==1))))))))&&!(a24==1))&&!(a20==1)))){ + a20 = 1; + a7 = 0; + a25 = 1; + a29 = 9; + a24 = 1; + a19 = 4; + a11 = 1; + return 23; + } else if((((a24==1)&&((a0==1)&&((a29==8)&&((a7==1)&&(!(a20==1)&&((a22==1)&&(((a19==1)&&(((input==3)&&!(a11==1))&&(a14==9)))&&!(a25==1))))))))&&(a28==1))){ + a29 = 7; + a19 = 4; + a14 = 8; + a20 = 1; + a11 = 1; + a7 = 0; + a0 = 0; + return 21; + } else if((((a0==1)&&((a24==1)&&((!(a20==1)&&(((a19==4)&&(!(a11==1)&&((((input==3)&&((a29==5)||(a29==6)))&&(a14==9))&&(a25==1))))&&(a28==1)))&&(a22==1))))&&(a7==1))){ + a19 = 1; + a29 = 6; + a7 = 0; + a11 = 1; + a24 = 0; + return -1; + } else if(((a20==1)&&((a19==3)&&((a22==1)&&(!(a0==1)&&(((a24==1)&&((a14==8)&&((a11==1)&&(((a7==1)&&((input==5)&&!(a25==1)))&&(a28==1)))))&&(a29==8))))))){ + a0 = 1; + a7 = 0; + a20 = 0; + a24 = 0; + a11 = 0; + a25 = 1; + a19 = 4; + return 21; + } else if(((((a22==1)&&((a14==10)&&((((((a19==1)&&(((input==5)&&((a29==5)||(a29==6)))&&(a0==1)))&&(a7==1))&&(a24==1))&&(a28==1))&&(a20==1))))&&(a25==1))&&(a11==1))){ + a14 = 8; + a29 = 5; + return -1; + } else if((((a7==1)&&((!(a0==1)&&(((a29==8)&&((!(a25==1)&&(((!(a24==1)&&(input==2))&&(a20==1))&&(a14==9)))&&(a11==1)))&&(a19==1)))&&(a22==1)))&&(a28==1))){ + a29 = 5; + a0 = 1; + a25 = 1; + a14 = 8; + a24 = 1; + return -1; + } else if(((!(a7==1)&&(!(a20==1)&&((a22==1)&&(((((a25==1)&&((a14==8)&&(((((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))||((a19==3)&&(a29==6)))&&(input==4))))&&(a11==1))&&(a24==1))&&(a0==1)))))&&(a28==1))){ + a7 = 1; + a29 = 6; + a19 = 3; + a11 = 0; + return 24; + } else if((!(a24==1)&&((((a14==8)&&((a25==1)&&((a20==1)&&(((a22==1)&&((((a0==1)&&(input==2))&&(a29==8))&&(a11==1)))&&(a19==4)))))&&(a28==1))&&!(a7==1)))){ + a29 = 7; + a19 = 2; + a7 = 1; + a0 = 0; + return 23; + } else if(((a14==9)&&(((!(a7==1)&&((a0==1)&&((a24==1)&&(((a19==4)&&((a20==1)&&((((a29==7)||(a29==8))&&(input==5))&&!(a11==1))))&&!(a25==1)))))&&(a22==1))&&(a28==1)))){ + a0 = 0; + a20 = 0; + a29 = 8; + a11 = 1; + a7 = 1; + a19 = 3; + a14 = 8; + a25 = 1; + return 24; + } else if(((((a0==1)&&(((((a11==1)&&((!(a24==1)&&((a14==8)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==2))))&&!(a25==1)))&&!(a20==1))&&(a19==1))&&(a28==1)))&&(a7==1))&&(a22==1))){ + a29 = 9; + a24 = 1; + a0 = 0; + a20 = 1; + a19 = 4; + return 24; + } else if(((((((((a22==1)&&((a19==1)&&((a14==9)&&((a11==1)&&((input==6)&&!(a20==1))))))&&!(a0==1))&&(a28==1))&&(a29==8))&&(a25==1))&&!(a24==1))&&(a7==1))){ + a20 = 1; + a14 = 8; + a29 = 9; + a24 = 1; + return 24; + } else if((((a19==1)&&(!(a24==1)&&((((((a7==1)&&(((a22==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==4)))&&(a28==1)))&&(a14==9))&&(a0==1))&&(a20==1))&&(a11==1))))&&!(a25==1))){ + a11 = 0; + a24 = 1; + a29 = 7; + a25 = 1; + return 24; + } else if(((a20==1)&&((a28==1)&&((a22==1)&&(((a14==8)&&(!(a25==1)&&((a19==1)&&((a29==5)&&((((a7==1)&&(input==6))&&(a0==1))&&(a24==1))))))&&!(a11==1)))))){ + a25 = 1; + a11 = 1; + a29 = 9; + a0 = 0; + return 24; + } else if(((a11==1)&&(((!(a20==1)&&(!(a0==1)&&((a25==1)&&((((a19==5)&&(((a24==1)&&(input==1))&&(a28==1)))&&(a7==1))&&(a14==9)))))&&(a22==1))&&(a29==9)))){ + a20 = 1; + a25 = 0; + a29 = 5; + a14 = 8; + a19 = 4; + return 21; + } else if(((a24==1)&&((((!(a20==1)&&((!(a0==1)&&(((a14==9)&&((a19==5)&&((a29==7)&&(input==6))))&&(a22==1)))&&(a11==1)))&&(a28==1))&&(a7==1))&&!(a25==1)))){ + a25 = 1; + a29 = 9; + a14 = 8; + return 24; + } else if((((a28==1)&&((!(a25==1)&&((!(a11==1)&&(((((a29==7)&&((input==2)&&(a7==1)))&&(a20==1))&&(a14==9))&&(a22==1)))&&(a24==1)))&&!(a0==1)))&&(a19==4))){ + a25 = 1; + a0 = 1; + a29 = 5; + a11 = 1; + a19 = 1; + a14 = 8; + return -1; + } else if((!(a25==1)&&(((!(a7==1)&&((a11==1)&&((!(a20==1)&&((a0==1)&&(((input==6)&&(((a29==5)&&(a19==5))||(((a29==8)&&(a19==4))||((a19==4)&&(a29==9)))))&&!(a24==1))))&&(a28==1))))&&(a22==1))&&(a14==8)))){ + a7 = 1; + a29 = 9; + a19 = 5; + a11 = 0; + return 24; + } else if(((((((((a14==10)&&((a25==1)&&(((a11==1)&&(((a29==8)||(a29==9))&&(input==1)))&&(a19==2))))&&(a24==1))&&(a7==1))&&(a28==1))&&(a0==1))&&(a22==1))&&(a20==1))){ + a14 = 8; + a19 = 4; + a29 = 9; + return -1; + } else if((((a11==1)&&((((!(a0==1)&&(((a7==1)&&((a28==1)&&(((((a29==8)&&(a19==2))||((a29==9)&&(a19==2)))||((a29==5)&&(a19==3)))&&(input==1))))&&!(a20==1)))&&(a22==1))&&(a24==1))&&(a14==8)))&&!(a25==1))){ + a11 = 0; + a29 = 8; + a24 = 0; + a0 = 1; + a19 = 3; + return -1; + } else if(((a25==1)&&((((a29==7)&&(((a22==1)&&(((a19==3)&&((a14==9)&&(((input==1)&&!(a0==1))&&(a11==1))))&&(a28==1)))&&!(a24==1)))&&!(a20==1))&&!(a7==1)))){ + a14 = 8; + a19 = 2; + a24 = 1; + a7 = 1; + return 24; + } else if(((((a22==1)&&(!(a20==1)&&((a24==1)&&(!(a11==1)&&(((((a25==1)&&(((a29==7)||(a29==8))&&(input==6)))&&(a7==1))&&(a19==2))&&(a0==1))))))&&(a14==9))&&(a28==1))){ + a14 = 8; + a29 = 8; + a0 = 0; + a24 = 0; + a11 = 1; + return -1; + } else if((((a19==5)&&((a28==1)&&((((a25==1)&&((((((input==3)&&((a29==7)||((a29==5)||(a29==6))))&&(a24==1))&&!(a20==1))&&!(a0==1))&&(a7==1)))&&!(a11==1))&&(a14==8))))&&(a22==1))){ + a20 = 1; + a19 = 2; + a11 = 1; + a7 = 0; + a29 = 6; + return 23; + } else if(((a20==1)&&((a11==1)&&(!(a0==1)&&(((a28==1)&&((a25==1)&&(!(a7==1)&&((a14==9)&&((a22==1)&&((((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))&&(input==6)))))))&&!(a24==1)))))){ + a19 = 3; + a0 = 1; + a29 = 7; + return -1; + } else if(((((!(a7==1)&&((a22==1)&&((!(a0==1)&&((((a29==5)&&((input==6)&&!(a25==1)))&&(a19==2))&&!(a20==1)))&&(a11==1))))&&(a24==1))&&(a14==9))&&(a28==1))){ + a19 = 4; + a24 = 0; + a0 = 1; + a29 = 9; + return -1; + } else if(((!(a11==1)&&((a24==1)&&(!(a7==1)&&((a25==1)&&(((((a28==1)&&((a14==9)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==2))))&&(a19==4))&&(a22==1))&&(a0==1))))))&&(a20==1))){ + a19 = 1; + a29 = 5; + a25 = 0; + a7 = 1; + a0 = 0; + a11 = 1; + a14 = 8; + return 21; + } else if((((a14==9)&&((a22==1)&&(!(a0==1)&&((a19==1)&&((a7==1)&&(((a28==1)&&((a20==1)&&((((a29==5)||(a29==6))&&(input==2))&&(a24==1))))&&(a11==1)))))))&&(a25==1))){ + a11 = 0; + a14 = 8; + a29 = 8; + a24 = 0; + a25 = 0; + a19 = 3; + a20 = 0; + a0 = 1; + return 21; + } else if((!(a7==1)&&((a25==1)&&((!(a24==1)&&((a22==1)&&((a19==2)&&(((a28==1)&&((a20==1)&&((a14==8)&&((input==4)&&((a29==7)||(a29==8))))))&&!(a0==1)))))&&(a11==1))))){ + a29 = 8; + a7 = 1; + a11 = 0; + a25 = 0; + a20 = 0; + a19 = 3; + a0 = 1; + return 21; + } else if(((a20==1)&&((a28==1)&&(((a0==1)&&(!(a11==1)&&((a22==1)&&(((((a19==5)&&((input==1)&&(a7==1)))&&(a24==1))&&(a29==9))&&(a14==8)))))&&(a25==1))))){ + a19 = 1; + a29 = 5; + a11 = 1; + return -1; + } else if(((((a25==1)&&((a20==1)&&(((((((input==4)&&(((a19==4)&&(a29==6))||(((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))))&&(a11==1))&&!(a0==1))&&(a7==1))&&(a22==1))&&(a14==8))))&&!(a24==1))&&(a28==1))){ + a29 = 8; + a19 = 3; + a24 = 1; + a20 = 0; + a25 = 0; + a7 = 0; + return 24; + } else if((((a14==10)&&((a19==1)&&(!(a25==1)&&((a28==1)&&((a7==1)&&((((a11==1)&&((a24==1)&&((input==6)&&(((a29==7)||(a29==8))||(a29==9)))))&&(a22==1))&&!(a20==1)))))))&&(a0==1))){ + a29 = 6; + a14 = 8; + a0 = 0; + return 24; + } else if((((a22==1)&&((((a0==1)&&((!(a11==1)&&(((((input==3)&&((a29==8)||(a29==9)))&&(a19==3))&&(a25==1))&&(a7==1)))&&(a24==1)))&&(a28==1))&&(a14==8)))&&!(a20==1))){ + a29 = 9; + a24 = 0; + a0 = 0; + a25 = 0; + a7 = 0; + return 21; + } else if((!(a7==1)&&(((a28==1)&&(((((a22==1)&&((((((a29==7)||((a29==5)||(a29==6)))&&(input==1))&&(a0==1))&&(a14==8))&&!(a11==1)))&&!(a20==1))&&!(a24==1))&&(a19==4)))&&!(a25==1)))){ + a29 = 7; + return 21; + } else if(((a14==8)&&((a22==1)&&((!(a24==1)&&(!(a20==1)&&((!(a11==1)&&(((a28==1)&&(((a29==9)&&(input==1))&&!(a7==1)))&&(a19==5)))&&!(a0==1))))&&!(a25==1))))){ + a20 = 1; + a29 = 5; + return -1; + } else if(((((((!(a20==1)&&(((a14==8)&&((a29==7)&&(!(a25==1)&&((input==5)&&!(a7==1)))))&&(a19==3)))&&(a0==1))&&!(a11==1))&&(a22==1))&&(a28==1))&&!(a24==1))){ + a24 = 1; + a11 = 1; + a0 = 0; + a19 = 2; + return 21; + } else if(((!(a24==1)&&((a7==1)&&((((((((a29==5)&&((input==1)&&!(a25==1)))&&(a19==4))&&(a14==9))&&!(a11==1))&&(a28==1))&&(a22==1))&&!(a0==1))))&&(a20==1))){ + a14 = 8; + a25 = 1; + a11 = 1; + a0 = 1; + a24 = 1; + a19 = 1; + return -1; + } else if(((a28==1)&&((((!(a20==1)&&((!(a7==1)&&((a24==1)&&((!(a25==1)&&(((a29==8)||(a29==9))&&(input==4)))&&(a14==8))))&&!(a11==1)))&&(a19==4))&&!(a0==1))&&(a22==1)))){ + a7 = 1; + a11 = 1; + a0 = 1; + a29 = 9; + return 21; + } else if((!(a0==1)&&(!(a24==1)&&((a11==1)&&(((!(a25==1)&&(((a22==1)&&((a20==1)&&((input==5)&&(((a19==2)&&(a29==5))||(((a19==1)&&(a29==8))||((a19==1)&&(a29==9)))))))&&(a14==8)))&&(a7==1))&&(a28==1)))))){ + a25 = 1; + a29 = 8; + a24 = 1; + a19 = 4; + return -1; + } else if(((a20==1)&&(!(a24==1)&&((a28==1)&&(!(a25==1)&&(((((!(a7==1)&&((a14==9)&&(((a29==5)||(a29==6))&&(input==4))))&&!(a0==1))&&!(a11==1))&&(a22==1))&&(a19==5))))))){ + a29 = 5; + a19 = 4; + a24 = 1; + a14 = 8; + a11 = 1; + a25 = 1; + return 23; + } else if(((a28==1)&&((a25==1)&&((((a11==1)&&((!(a24==1)&&((!(a0==1)&&(((input==4)&&((a29==6)||(a29==7)))&&(a7==1)))&&(a20==1)))&&(a14==9)))&&(a22==1))&&(a19==2))))){ + a25 = 0; + a7 = 0; + a19 = 5; + a29 = 5; + a0 = 1; + return 24; + } else if((((!(a24==1)&&((a22==1)&&(!(a0==1)&&(((((((input==1)&&((a29==5)||(a29==6)))&&(a20==1))&&!(a25==1))&&!(a7==1))&&(a19==5))&&(a28==1)))))&&(a11==1))&&(a14==8))){ + a20 = 0; + a29 = 6; + a24 = 1; + a19 = 4; + a7 = 1; + return 23; + } else if((((a20==1)&&((!(a11==1)&&(((a0==1)&&(!(a7==1)&&((a22==1)&&((a19==1)&&((a25==1)&&(((a29==8)||(a29==9))&&(input==6)))))))&&(a24==1)))&&(a28==1)))&&(a14==8))){ + a29 = 5; + a7 = 1; + a11 = 1; + return -1; + } else if(((a20==1)&&((a0==1)&&(((!(a25==1)&&((a22==1)&&((((((input==1)&&((a29==7)||(a29==8)))&&(a28==1))&&(a24==1))&&(a11==1))&&!(a7==1))))&&(a19==3))&&(a14==10))))){ + a25 = 1; + a19 = 1; + a14 = 8; + a7 = 1; + a29 = 5; + return -1; + } else if((((a11==1)&&((a22==1)&&((a28==1)&&(((a7==1)&&((!(a24==1)&&(!(a0==1)&&(((input==5)&&((a29==7)||(a29==8)))&&!(a25==1))))&&(a20==1)))&&(a14==9)))))&&(a19==4))){ + a14 = 8; + a0 = 1; + a19 = 1; + a24 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if((!(a25==1)&&((a0==1)&&((a24==1)&&((((((((a14==8)&&((a7==1)&&(input==3)))&&(a19==5))&&(a22==1))&&(a11==1))&&!(a20==1))&&(a29==9))&&(a28==1)))))){ + a19 = 3; + a25 = 1; + a20 = 1; + a7 = 0; + a11 = 0; + return 24; + } else if(((a20==1)&&((((!(a25==1)&&((!(a11==1)&&((a14==8)&&(((input==6)&&((((a29==8)&&(a19==3))||((a19==3)&&(a29==9)))||((a29==5)&&(a19==4))))&&(a7==1))))&&!(a0==1)))&&(a22==1))&&(a24==1))&&(a28==1)))){ + a29 = 9; + a19 = 3; + a14 = 9; + a11 = 1; + a24 = 0; + return 21; + } else if((((a24==1)&&((a28==1)&&((a25==1)&&(!(a7==1)&&(!(a11==1)&&(!(a20==1)&&((((a14==8)&&((input==1)&&((a29==6)||(a29==7))))&&(a19==5))&&(a0==1))))))))&&(a22==1))){ + a29 = 6; + a19 = 3; + a20 = 1; + a0 = 0; + a11 = 1; + return 23; + } else if(((((a28==1)&&((a25==1)&&((!(a7==1)&&(((((input==5)&&(((a19==4)&&(a29==9))||((a19==5)&&(a29==5))))&&!(a11==1))&&(a0==1))&&(a22==1)))&&!(a20==1))))&&(a14==9))&&(a24==1))){ + a11 = 1; + a0 = 0; + a7 = 1; + a29 = 5; + a19 = 2; + a14 = 8; + return 23; + } else if(((a25==1)&&((a29==7)&&((a22==1)&&(!(a7==1)&&(((((a20==1)&&((a14==9)&&((!(a11==1)&&(input==2))&&(a24==1))))&&(a19==3))&&(a28==1))&&(a0==1))))))){ + a7 = 1; + a20 = 0; + a29 = 5; + a11 = 1; + a19 = 4; + a25 = 0; + return 23; + } else if(((a0==1)&&((a22==1)&&((a28==1)&&(((a25==1)&&((((a24==1)&&((((((a29==8)&&(a19==3))||((a19==3)&&(a29==9)))||((a29==5)&&(a19==4)))&&(input==6))&&!(a20==1)))&&(a11==1))&&!(a7==1)))&&(a14==9)))))){ + a19 = 1; + a14 = 8; + a7 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if(((a22==1)&&(((a28==1)&&((a7==1)&&(!(a20==1)&&((a11==1)&&(((a19==3)&&((((input==2)&&((a29==5)||(a29==6)))&&!(a25==1))&&(a14==9)))&&!(a0==1))))))&&!(a24==1)))){ + a7 = 0; + a19 = 4; + a14 = 8; + a20 = 1; + a25 = 1; + a29 = 6; + return 21; + } else if(((((((a28==1)&&((((((input==2)&&(((a29==9)&&(a19==2))||((a19==3)&&(a29==5))))&&(a24==1))&&!(a25==1))&&(a22==1))&&!(a11==1)))&&(a14==9))&&(a0==1))&&!(a20==1))&&(a7==1))){ + a29 = 5; + a25 = 1; + a19 = 1; + a20 = 1; + a11 = 1; + a14 = 8; + return -1; + } else if((((a14==8)&&(((a25==1)&&((!(a24==1)&&(((a7==1)&&((a0==1)&&((input==5)&&((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))||((a29==6)&&(a19==4))))))&&(a28==1)))&&(a22==1)))&&(a20==1)))&&!(a11==1))){ + a29 = 8; + a24 = 1; + a0 = 0; + a11 = 1; + a19 = 5; + return 21; + } else if(((a28==1)&&((a20==1)&&(!(a24==1)&&((a22==1)&&(((a14==10)&&(!(a25==1)&&(((a11==1)&&((input==1)&&(((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))))&&(a0==1))))&&(a7==1))))))){ + a19 = 5; + a25 = 1; + a29 = 6; + a14 = 8; + a0 = 0; + return 21; + } else if((((a19==3)&&((a29==8)&&((((!(a0==1)&&(((a20==1)&&((a11==1)&&((input==2)&&(a28==1))))&&(a7==1)))&&(a22==1))&&!(a25==1))&&(a24==1))))&&(a14==8))){ + a14 = 9; + a24 = 0; + a25 = 1; + a0 = 1; + a11 = 0; + return 21; + } else if(((((a28==1)&&((a14==9)&&(((a11==1)&&(!(a20==1)&&((a19==5)&&((a25==1)&&(((a0==1)&&(input==6))&&!(a24==1))))))&&(a29==7))))&&(a22==1))&&(a7==1))){ + a14 = 8; + a24 = 1; + a20 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((a22==1)&&((a19==5)&&(((((a11==1)&&(((!(a25==1)&&((((a29==7)||(a29==8))&&(input==5))&&(a28==1)))&&!(a20==1))&&(a24==1)))&&(a0==1))&&(a14==10))&&!(a7==1))))){ + a24 = 0; + a11 = 0; + a19 = 3; + a14 = 9; + a29 = 6; + a20 = 1; + a7 = 1; + return -1; + } else if(((a14==9)&&((a25==1)&&(((a7==1)&&(((!(a0==1)&&((((((a29==7)||(a29==8))&&(input==6))&&(a28==1))&&!(a11==1))&&(a22==1)))&&(a20==1))&&(a19==2)))&&!(a24==1))))){ + a29 = 8; + a14 = 8; + a7 = 0; + a24 = 1; + return 21; + } else if((!(a25==1)&&((((a14==9)&&((a7==1)&&((((a22==1)&&((a11==1)&&(!(a24==1)&&((input==2)&&((a29==8)||(a29==9))))))&&!(a20==1))&&!(a0==1))))&&(a19==3))&&(a28==1)))){ + a29 = 7; + a24 = 1; + a25 = 1; + a7 = 0; + a19 = 1; + a0 = 1; + return 23; + } else if(((a22==1)&&((a14==8)&&((a25==1)&&(!(a0==1)&&((a19==3)&&((!(a20==1)&&(((a29==8)&&((a7==1)&&((a24==1)&&(input==6))))&&(a28==1)))&&(a11==1)))))))){ + a19 = 1; + a0 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if((((a0==1)&&((!(a25==1)&&((a22==1)&&((((((a24==1)&&((input==1)&&((a29==9)||((a29==7)||(a29==8)))))&&!(a20==1))&&(a14==8))&&(a19==3))&&(a28==1))))&&!(a7==1)))&&(a11==1))){ + a11 = 0; + a29 = 5; + a7 = 1; + a24 = 0; + a20 = 1; + a19 = 5; + return 21; + } else if(((a29==7)&&(((((a25==1)&&(((!(a0==1)&&((!(a20==1)&&((a14==9)&&(input==5)))&&(a19==3)))&&(a11==1))&&(a28==1)))&&!(a24==1))&&!(a7==1))&&(a22==1)))){ + a29 = 5; + a0 = 1; + a20 = 1; + a19 = 1; + a7 = 1; + a14 = 8; + a24 = 1; + return -1; + } else if((((!(a20==1)&&(!(a11==1)&&((a14==8)&&((a7==1)&&((!(a0==1)&&((((input==2)&&(a28==1))&&(a29==5))&&(a19==1)))&&!(a24==1))))))&&(a22==1))&&!(a25==1))){ + a20 = 1; + a19 = 2; + a29 = 9; + a24 = 1; + a11 = 1; + return -1; + } else if((((a22==1)&&((!(a25==1)&&(((a28==1)&&(((!(a20==1)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==1))&&(a14==9)))&&!(a24==1))&&(a0==1)))&&!(a7==1)))&&(a19==2)))&&(a11==1))){ + a14 = 8; + a0 = 0; + a29 = 7; + a20 = 1; + a11 = 0; + return 24; + } else if(((a28==1)&&((((((a29==9)&&((a24==1)&&(((((a19==5)&&(input==5))&&!(a7==1))&&(a11==1))&&(a25==1))))&&(a22==1))&&!(a0==1))&&(a14==8))&&(a20==1)))){ + a24 = 0; + a11 = 0; + a14 = 9; + a29 = 6; + a19 = 2; + a0 = 1; + return 24; + } else if(((a20==1)&&(!(a0==1)&&((a22==1)&&((a14==8)&&((!(a24==1)&&((a25==1)&&(((a28==1)&&(!(a11==1)&&((input==5)&&(((a29==5)||(a29==6))||(a29==7)))))&&(a19==4))))&&(a7==1))))))){ + a24 = 1; + a7 = 0; + a29 = 5; + a11 = 1; + a19 = 5; + return 24; + } else if(((a24==1)&&((a0==1)&&((((((a14==9)&&(!(a20==1)&&(!(a7==1)&&((((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))&&(input==5)))))&&(a22==1))&&!(a25==1))&&(a28==1))&&(a11==1))))){ + a20 = 1; + a19 = 1; + a14 = 10; + a29 = 7; + a25 = 1; + return 24; + } else if((((a20==1)&&((!(a11==1)&&((a7==1)&&((((!(a0==1)&&((((a29==7)||(a29==8))&&(input==6))&&(a14==9)))&&(a24==1))&&(a28==1))&&(a22==1))))&&(a19==1)))&&!(a25==1))){ + a0 = 1; + a11 = 1; + a25 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if(((a19==1)&&(((((a28==1)&&(!(a0==1)&&((a22==1)&&(!(a11==1)&&((a25==1)&&((((a29==6)||(a29==7))&&(input==4))&&(a14==9)))))))&&!(a20==1))&&(a7==1))&&!(a24==1)))){ + a25 = 0; + a29 = 5; + a19 = 4; + a0 = 1; + a14 = 8; + return 24; + } else if((!(a7==1)&&(!(a20==1)&&((((a22==1)&&((!(a25==1)&&((!(a24==1)&&(((input==5)&&(a28==1))&&(a29==9)))&&(a14==9)))&&(a19==3)))&&(a11==1))&&!(a0==1))))){ + a14 = 8; + a29 = 6; + a7 = 1; + a19 = 2; + a20 = 1; + a25 = 1; + return 21; + } else if(((a22==1)&&((a11==1)&&(((a25==1)&&((a24==1)&&(((a14==8)&&((a19==3)&&((a20==1)&&(!(a7==1)&&((input==6)&&(a28==1))))))&&(a29==6))))&&!(a0==1))))){ + a7 = 1; + a20 = 0; + a29 = 9; + a0 = 1; + a24 = 0; + a25 = 0; + a11 = 0; + a19 = 2; + return -1; + } else if((!(a7==1)&&(!(a25==1)&&((((((a24==1)&&((a22==1)&&((!(a11==1)&&((input==6)&&((a29==5)||(a29==6))))&&(a28==1))))&&(a14==8))&&(a20==1))&&(a0==1))&&(a19==3))))){ + a19 = 1; + a0 = 0; + a24 = 0; + a29 = 8; + a20 = 0; + a7 = 1; + return 23; + } else if((((a7==1)&&((a25==1)&&((((a11==1)&&(((!(a24==1)&&((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))&&(input==6)))&&!(a20==1))&&(a14==8)))&&(a22==1))&&(a28==1))))&&(a0==1))){ + a0 = 0; + a29 = 7; + a25 = 0; + a20 = 1; + a24 = 1; + a19 = 1; + return 24; + } else if((((!(a0==1)&&((a19==1)&&(((a7==1)&&((!(a24==1)&&((((input==6)&&(((a29==5)||(a29==6))||(a29==7)))&&(a14==9))&&(a25==1)))&&(a22==1)))&&(a28==1))))&&(a11==1))&&!(a20==1))){ + a25 = 0; + a24 = 1; + a11 = 0; + a20 = 1; + a19 = 5; + a0 = 1; + a29 = 8; + return 23; + } else if((((a28==1)&&((((a14==9)&&(((((a0==1)&&((input==6)&&((((a19==3)&&(a29==8))||((a19==3)&&(a29==9)))||((a29==5)&&(a19==4)))))&&!(a7==1))&&!(a20==1))&&(a11==1)))&&!(a24==1))&&(a22==1)))&&!(a25==1))){ + a11 = 0; + a19 = 3; + a29 = 7; + a14 = 8; + return -1; + } else if(((((a28==1)&&((a19==1)&&((a25==1)&&(!(a11==1)&&((a7==1)&&((a14==8)&&((a24==1)&&(((input==1)&&((a29==7)||(a29==8)))&&(a0==1)))))))))&&(a22==1))&&(a20==1))){ + a29 = 5; + a11 = 1; + return -1; + } else if(((a22==1)&&((a11==1)&&(!(a24==1)&&((!(a20==1)&&((a0==1)&&(((((a14==9)&&(((a29==7)||(a29==8))&&(input==5)))&&(a28==1))&&!(a25==1))&&(a7==1))))&&(a19==4)))))){ + a25 = 1; + a7 = 0; + a14 = 8; + a19 = 1; + a29 = 9; + a11 = 0; + return 21; + } else if(((((a7==1)&&(((a0==1)&&((((a28==1)&&((a19==4)&&(!(a25==1)&&(!(a24==1)&&(input==2)))))&&!(a11==1))&&(a29==9)))&&(a14==9)))&&(a22==1))&&!(a20==1))){ + a14 = 8; + a20 = 1; + a29 = 5; + a19 = 1; + a25 = 1; + a11 = 1; + a24 = 1; + return -1; + } else if(((a14==9)&&(!(a25==1)&&((a22==1)&&(((a19==5)&&((a28==1)&&(!(a20==1)&&((a29==7)&&(!(a7==1)&&(((input==5)&&(a24==1))&&(a11==1)))))))&&!(a0==1)))))){ + a19 = 1; + a14 = 8; + a7 = 1; + a25 = 1; + a20 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if(((a7==1)&&(((a28==1)&&((((!(a25==1)&&((((input==3)&&(((a29==6)&&(a19==4))||(((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))))&&(a20==1))&&(a14==9)))&&!(a0==1))&&(a22==1))&&!(a11==1)))&&(a24==1)))){ + a29 = 9; + a11 = 1; + a14 = 8; + a25 = 1; + a19 = 5; + return 24; + } else if((((a7==1)&&((!(a25==1)&&(((!(a20==1)&&((a24==1)&&(((((a29==5)&&(a19==3))||(((a19==2)&&(a29==8))||((a29==9)&&(a19==2))))&&(input==2))&&(a28==1))))&&!(a11==1))&&(a14==8)))&&(a0==1)))&&(a22==1))){ + a11 = 1; + a14 = 9; + a19 = 4; + a20 = 1; + a29 = 8; + return 21; + } else if(((a14==9)&&(((((a28==1)&&(((((a19==5)&&((((a29==6)||(a29==7))&&(input==4))&&(a22==1)))&&!(a0==1))&&!(a7==1))&&!(a25==1)))&&(a20==1))&&(a24==1))&&!(a11==1)))){ + a11 = 1; + a0 = 1; + a7 = 1; + a14 = 8; + a19 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if(((a11==1)&&((a24==1)&&(((((a14==9)&&((a28==1)&&(((a7==1)&&((((a29==9)&&(a19==4))||((a29==5)&&(a19==5)))&&(input==2)))&&!(a25==1))))&&(a0==1))&&!(a20==1))&&(a22==1))))){ + a29 = 5; + a19 = 5; + a11 = 0; + a7 = 0; + a0 = 0; + a24 = 0; + return 21; + } else if((((a7==1)&&((((!(a0==1)&&((((((input==3)&&((a29==6)||(a29==7)))&&(a14==9))&&(a11==1))&&(a20==1))&&(a22==1)))&&(a28==1))&&(a25==1))&&(a19==3)))&&!(a24==1))){ + a0 = 1; + a25 = 0; + a11 = 0; + a19 = 4; + a29 = 7; + a20 = 0; + a7 = 0; + return -1; + } else if((((a22==1)&&((a24==1)&&((a0==1)&&((((a14==9)&&((a11==1)&&((((input==4)&&((a29==7)||(a29==8)))&&(a7==1))&&(a20==1))))&&(a28==1))&&(a19==2)))))&&!(a25==1))){ + a14 = 8; + a0 = 0; + a29 = 9; + a19 = 4; + return 21; + } else if(((((((((a24==1)&&(!(a0==1)&&(((((a29==6)&&!(a25==1))&&(a19==1))||(((a19==5)&&((a25==1)&&(a29==9)))||((!(a25==1)&&(a29==5))&&(a19==1))))&&(input==2))))&&!(a7==1))&&!(a11==1))&&(a14==9))&&(a22==1))&&(a28==1))&&!(a20==1))){ + a11 = 1; + a25 = 1; + a7 = 1; + a29 = 5; + a0 = 1; + a19 = 1; + a14 = 8; + a20 = 1; + return -1; + } else if(((a14==8)&&(((((a19==3)&&((a22==1)&&((((a24==1)&&((!(a0==1)&&(input==5))&&(a29==5)))&&(a11==1))&&!(a25==1))))&&(a28==1))&&!(a7==1))&&!(a20==1)))){ + a25 = 1; + a29 = 6; + a20 = 1; + return -1; + } else if(((a28==1)&&(((!(a24==1)&&((a22==1)&&((a7==1)&&(!(a25==1)&&(!(a20==1)&&((!(a11==1)&&((input==5)&&((a29==6)||(a29==7))))&&(a19==5)))))))&&!(a0==1))&&(a14==9)))){ + a20 = 1; + a24 = 1; + a19 = 1; + a29 = 5; + a14 = 8; + a11 = 1; + a25 = 1; + a0 = 1; + return -1; + } else if((((a7==1)&&((((a14==9)&&(!(a25==1)&&((a20==1)&&((!(a11==1)&&(((input==5)&&((a29==5)||(a29==6)))&&(a24==1)))&&(a0==1)))))&&(a22==1))&&(a19==4)))&&(a28==1))){ + a25 = 1; + a11 = 1; + a29 = 5; + a14 = 8; + a19 = 1; + return -1; + } else if((!(a25==1)&&((a29==8)&&(((a20==1)&&((a24==1)&&((a11==1)&&((a7==1)&&((a14==8)&&((((input==6)&&(a19==3))&&(a22==1))&&!(a0==1)))))))&&(a28==1))))){ + a19 = 5; + a20 = 0; + a29 = 6; + return 21; + } else if(((((a0==1)&&(((a22==1)&&(!(a11==1)&&((((a20==1)&&(!(a25==1)&&((input==1)&&((a29==6)||(a29==7)))))&&(a24==1))&&(a19==1))))&&(a14==9)))&&(a28==1))&&!(a7==1))){ + a7 = 1; + a25 = 1; + a11 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if(((((a22==1)&&((a29==6)&&((((((((input==1)&&!(a25==1))&&!(a11==1))&&(a20==1))&&(a24==1))&&(a7==1))&&!(a0==1))&&(a19==1))))&&(a14==9))&&(a28==1))){ + a0 = 1; + a11 = 1; + a14 = 8; + a29 = 5; + a25 = 1; + return -1; + } else if((((a0==1)&&((!(a20==1)&&((((a22==1)&&((a19==3)&&((a29==8)&&(!(a11==1)&&((input==2)&&!(a24==1))))))&&!(a25==1))&&(a14==8)))&&(a7==1)))&&(a28==1))){ + a19 = 2; + a29 = 9; + return -1; + } else if(((((!(a11==1)&&((((a0==1)&&((a22==1)&&((a14==8)&&(!(a25==1)&&((input==3)&&((a29==7)||(a29==8)))))))&&(a20==1))&&!(a24==1)))&&(a19==1))&&(a28==1))&&(a7==1))){ + a25 = 1; + a7 = 0; + a11 = 1; + a29 = 5; + a14 = 9; + a19 = 3; + return 23; + } else if(((a19==2)&&(((a20==1)&&((((a25==1)&&(((a7==1)&&((((input==5)&&((a29==6)||(a29==7)))&&(a14==8))&&!(a24==1)))&&(a0==1)))&&(a22==1))&&(a28==1)))&&(a11==1)))){ + a11 = 0; + a29 = 5; + a25 = 0; + a20 = 0; + return 24; + } else if(((((a28==1)&&((!(a24==1)&&(((!(a11==1)&&(((((a29==8)||(a29==9))&&(input==3))&&(a22==1))&&!(a25==1)))&&!(a7==1))&&(a14==9)))&&(a0==1)))&&(a19==5))&&(a20==1))){ + a29 = 9; + a7 = 1; + a20 = 0; + return 23; + } else if(((a28==1)&&((((a19==4)&&(((((a24==1)&&((((input==1)&&((a29==7)||(a29==8)))&&!(a11==1))&&(a22==1)))&&(a20==1))&&!(a7==1))&&(a0==1)))&&!(a25==1))&&(a14==9)))){ + a29 = 6; + a20 = 0; + a19 = 2; + return 23; + } else if((((a19==4)&&((((a22==1)&&(!(a7==1)&&((((a14==9)&&(((input==5)&&((a29==7)||(a29==8)))&&!(a24==1)))&&(a11==1))&&(a28==1))))&&!(a20==1))&&!(a25==1)))&&!(a0==1))){ + a14 = 8; + a19 = 5; + a29 = 8; + a20 = 1; + a7 = 1; + a24 = 1; + a25 = 1; + return 21; + } else if(((a0==1)&&(((a19==1)&&((a22==1)&&(((a7==1)&&((((a20==1)&&((((a29==8)||(a29==9))&&(input==5))&&!(a24==1)))&&(a25==1))&&!(a11==1)))&&(a14==9))))&&(a28==1)))){ + a25 = 0; + a29 = 7; + a11 = 1; + a19 = 3; + a7 = 0; + return 21; + } else if((((a0==1)&&((a7==1)&&((a11==1)&&(((a25==1)&&((a14==9)&&(((a24==1)&&((input==4)&&((((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))||((a19==4)&&(a29==6)))))&&(a22==1))))&&(a28==1)))))&&(a20==1))){ + a25 = 0; + a14 = 8; + a29 = 6; + a7 = 0; + a0 = 0; + a19 = 5; + return 24; + } else if((((!(a20==1)&&((a11==1)&&(((((((input==4)&&(((a19==1)&&(a29==9))||((a19==2)&&(a29==5))))&&(a7==1))&&(a25==1))&&!(a24==1))&&(a14==8))&&(a0==1))))&&(a28==1))&&(a22==1))){ + a7 = 0; + a0 = 0; + a25 = 0; + a19 = 5; + a29 = 7; + a20 = 1; + return 24; + } else if(((a19==3)&&((a11==1)&&((a14==9)&&((a20==1)&&((a29==9)&&(((a25==1)&&((a22==1)&&(((!(a24==1)&&(input==6))&&(a0==1))&&(a28==1))))&&!(a7==1)))))))){ + a19 = 1; + a14 = 8; + a24 = 1; + a0 = 0; + return 24; + } else if(((a11==1)&&((a19==5)&&((((a29==5)&&((a28==1)&&(((!(a20==1)&&(((a7==1)&&(input==5))&&!(a25==1)))&&!(a0==1))&&!(a24==1))))&&(a22==1))&&(a14==8))))){ + a24 = 1; + a0 = 1; + a29 = 6; + a7 = 0; + a19 = 2; + a25 = 1; + a14 = 9; + return 21; + } else if(((a19==4)&&((((a22==1)&&(!(a24==1)&&(((a0==1)&&((a29==9)&&(((a20==1)&&((input==1)&&(a28==1)))&&(a25==1))))&&!(a11==1))))&&!(a7==1))&&(a14==8)))){ + a11 = 1; + a20 = 0; + a14 = 9; + a25 = 0; + a29 = 5; + a7 = 1; + return 23; + } else if((((a20==1)&&((a22==1)&&((a19==1)&&((a7==1)&&(!(a0==1)&&((!(a11==1)&&(((((a29==8)||((a29==6)||(a29==7)))&&(input==2))&&(a25==1))&&(a28==1)))&&(a14==8)))))))&&(a24==1))){ + a20 = 0; + a29 = 6; + a19 = 5; + a11 = 1; + a7 = 0; + return 23; + } else if((((!(a25==1)&&((!(a7==1)&&((a14==8)&&((a29==6)&&((a22==1)&&(((a20==1)&&((input==2)&&(a0==1)))&&(a24==1))))))&&!(a11==1)))&&(a19==2))&&(a28==1))){ + a11 = 1; + a25 = 1; + a29 = 5; + a7 = 1; + a19 = 1; + return -1; + } else if(((a19==4)&&((((a7==1)&&(((!(a20==1)&&((a25==1)&&(!(a11==1)&&((a0==1)&&(((a29==7)||(a29==8))&&(input==1))))))&&(a28==1))&&(a22==1)))&&(a14==8))&&!(a24==1)))){ + a7 = 0; + a20 = 1; + a24 = 1; + a14 = 9; + a29 = 9; + a19 = 2; + return 23; + } else if((((((((a22==1)&&(((((a0==1)&&((input==3)&&((a29==7)||(a29==8))))&&(a24==1))&&(a20==1))&&(a25==1)))&&(a14==10))&&(a11==1))&&(a7==1))&&(a28==1))&&(a19==4))){ + a29 = 8; + return 21; + } else if((((!(a7==1)&&((a28==1)&&((a14==9)&&(!(a11==1)&&((a22==1)&&(((((a19==1)&&(!(a25==1)&&(a29==5)))||(((a19==5)&&((a29==8)&&(a25==1)))||(((a29==9)&&(a25==1))&&(a19==5))))&&(input==3))&&(a20==1)))))))&&!(a0==1))&&(a24==1))){ + a0 = 1; + a19 = 3; + a25 = 1; + a29 = 8; + return 24; + } else if(((!(a20==1)&&(((a22==1)&&((((!(a24==1)&&((!(a7==1)&&(((a29==6)||(a29==7))&&(input==6)))&&(a11==1)))&&(a19==5))&&(a28==1))&&(a0==1)))&&(a14==9)))&&!(a25==1))){ + a29 = 9; + a0 = 0; + a14 = 8; + a25 = 1; + return 24; + } else if(((a0==1)&&((a14==8)&&(((!(a24==1)&&(((!(a7==1)&&(!(a25==1)&&(((input==5)&&(a20==1))&&(a22==1))))&&(a19==1))&&(a28==1)))&&(a29==8))&&!(a11==1))))){ + a25 = 1; + a11 = 1; + a29 = 5; + a7 = 1; + a24 = 1; + return -1; + } else if(((!(a11==1)&&((a7==1)&&(!(a20==1)&&((!(a25==1)&&((a14==8)&&((((((a29==5)||(a29==6))&&(input==5))&&(a28==1))&&!(a24==1))&&!(a0==1))))&&(a19==5)))))&&(a22==1))){ + a11 = 1; + a29 = 7; + a25 = 1; + a7 = 0; + return -1; + } else if(((((a14==8)&&((a22==1)&&(((a24==1)&&(!(a7==1)&&((((a29==6)&&((a25==1)&&(input==5)))&&(a0==1))&&(a28==1))))&&!(a11==1))))&&(a19==4))&&(a20==1))){ + a20 = 0; + a25 = 0; + a29 = 8; + a7 = 1; + a24 = 0; + a19 = 3; + return 21; + } else if((((a24==1)&&(((a20==1)&&((((a19==4)&&(((((input==6)&&(a29==7))&&(a22==1))&&(a0==1))&&(a11==1)))&&(a14==10))&&(a28==1)))&&!(a7==1)))&&(a25==1))){ + a29 = 5; + a19 = 1; + a7 = 1; + a14 = 8; + return -1; + } else if(((a0==1)&&((a28==1)&&((a24==1)&&(((!(a25==1)&&((a22==1)&&((a19==2)&&(((((a29==6)||(a29==7))&&(input==1))&&(a7==1))&&(a11==1)))))&&(a14==10))&&(a20==1)))))){ + a14 = 9; + a0 = 0; + a19 = 3; + a29 = 5; + return -1; + } else if(((a11==1)&&((a29==9)&&(((a7==1)&&((a19==3)&&(((a28==1)&&(((((a0==1)&&(input==6))&&(a14==9))&&(a24==1))&&(a22==1)))&&!(a20==1))))&&(a25==1))))){ + a29 = 5; + a20 = 1; + a14 = 8; + a19 = 1; + return -1; + } else if((((a19==1)&&((!(a24==1)&&((((((!(a7==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==5)))&&(a25==1))&&(a14==8))&&(a22==1))&&(a28==1))&&(a11==1)))&&!(a20==1)))&&!(a0==1))){ + a19 = 3; + a11 = 0; + a24 = 1; + a7 = 1; + a29 = 6; + return 23; + } else if((!(a11==1)&&((((!(a24==1)&&(((((a19==4)&&(((input==1)&&(((a29==6)||(a29==7))||(a29==8)))&&(a20==1)))&&(a22==1))&&!(a7==1))&&(a28==1)))&&(a0==1))&&(a14==9))&&!(a25==1)))){ + a14 = 8; + a0 = 0; + a19 = 3; + a29 = 5; + a24 = 1; + a11 = 1; + return -1; + } else if((!(a11==1)&&(((a14==9)&&((a24==1)&&((a28==1)&&((((!(a20==1)&&((a19==3)&&((a29==9)&&(input==5))))&&(a7==1))&&(a22==1))&&(a25==1)))))&&(a0==1)))){ + a7 = 0; + a14 = 8; + a29 = 5; + a19 = 4; + a11 = 1; + a0 = 0; + return 23; + } else if(((a25==1)&&(((a24==1)&&((((a20==1)&&(((((((a29==5)||(a29==6))&&(input==4))&&(a14==9))&&(a28==1))&&(a11==1))&&(a7==1)))&&!(a0==1))&&(a22==1)))&&(a19==4)))){ + a24 = 0; + a19 = 5; + a11 = 0; + a25 = 0; + a0 = 1; + a20 = 0; + a14 = 8; + a7 = 0; + a29 = 5; + return -1; + } else if(((((((a0==1)&&(((a29==7)&&(((((a14==9)&&(input==6))&&(a28==1))&&(a19==5))&&!(a24==1)))&&!(a25==1)))&&(a22==1))&&(a20==1))&&!(a7==1))&&!(a11==1))){ + a19 = 1; + a14 = 8; + a24 = 1; + a11 = 1; + a25 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if(((((a14==9)&&(((((!(a24==1)&&((a7==1)&&((input==5)&&((((a19==1)&&(a29==8))||((a19==1)&&(a29==9)))||((a29==5)&&(a19==2))))))&&(a20==1))&&(a0==1))&&(a22==1))&&(a25==1)))&&(a28==1))&&(a11==1))){ + a14 = 8; + a24 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a22==1)&&((a0==1)&&(((!(a24==1)&&((((a20==1)&&(((a14==9)&&((((a29==6)||(a29==7))||(a29==8))&&(input==2)))&&(a25==1)))&&(a11==1))&&(a19==3)))&&(a7==1))&&(a28==1))))){ + a29 = 6; + a7 = 0; + a14 = 10; + a24 = 1; + a25 = 0; + a19 = 2; + return 23; + } else if((((a0==1)&&(!(a24==1)&&(((a20==1)&&(((a22==1)&&(((a28==1)&&((a25==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==2))))&&!(a7==1)))&&(a14==9)))&&(a19==1))))&&(a11==1))){ + a24 = 1; + a14 = 8; + a7 = 1; + a29 = 5; + return -1; + } else if(((a25==1)&&(((((a22==1)&&((a28==1)&&((!(a11==1)&&(((((a29==6)&&(a19==2))||(((a29==9)&&(a19==1))||((a19==2)&&(a29==5))))&&(input==5))&&!(a24==1)))&&!(a0==1))))&&!(a20==1))&&(a14==8))&&(a7==1)))){ + a0 = 1; + a11 = 1; + a24 = 1; + a19 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if((((((a29==5)&&(!(a0==1)&&((a14==9)&&(((!(a7==1)&&((a22==1)&&((a19==5)&&(input==3))))&&!(a20==1))&&(a28==1)))))&&(a11==1))&&(a25==1))&&!(a24==1))){ + a19 = 3; + a7 = 1; + a29 = 6; + a14 = 8; + a20 = 1; + a25 = 0; + return 23; + } else if(((!(a7==1)&&((a29==8)&&((a20==1)&&((((((a28==1)&&(((input==4)&&(a19==2))&&(a11==1)))&&(a14==9))&&(a22==1))&&(a25==1))&&(a24==1)))))&&(a0==1))){ + a7 = 1; + a14 = 8; + a19 = 1; + a29 = 5; + return -1; + } else if(((a11==1)&&(((a24==1)&&((((a29==6)&&((((a25==1)&&((a22==1)&&(!(a7==1)&&(input==5))))&&(a14==8))&&(a28==1)))&&(a20==1))&&(a19==3)))&&!(a0==1)))){ + a0 = 1; + a7 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((!(a0==1)&&((((((a22==1)&&(((a28==1)&&(((input==6)&&(a19==5))&&!(a11==1)))&&!(a20==1)))&&(a24==1))&&(a14==8))&&(a29==5))&&!(a7==1)))&&(a25==1))){ + a19 = 3; + a29 = 7; + a11 = 1; + a25 = 0; + a7 = 1; + a20 = 1; + return 24; + } else if(((((a25==1)&&((a0==1)&&(!(a24==1)&&((a22==1)&&(!(a7==1)&&((((((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))&&(input==6))&&(a14==9))&&(a11==1)))))))&&!(a20==1))&&(a28==1))){ + a7 = 1; + a14 = 8; + a29 = 5; + a19 = 1; + a20 = 1; + a24 = 1; + return -1; + } else if(((a7==1)&&((a28==1)&&((a24==1)&&((a14==9)&&((a19==4)&&((a0==1)&&(((!(a11==1)&&((((a29==8)||(a29==9))&&(input==3))&&(a25==1)))&&(a22==1))&&(a20==1))))))))){ + a25 = 0; + a24 = 0; + a29 = 5; + a7 = 0; + a14 = 8; + a11 = 1; + a19 = 5; + a0 = 0; + return 24; + } else if(((((a22==1)&&((((!(a7==1)&&((a14==8)&&((((a19==1)&&((a29==5)&&!(a25==1)))||((((a25==1)&&(a29==8))&&(a19==5))||((a19==5)&&((a29==9)&&(a25==1)))))&&(input==2))))&&!(a24==1))&&(a28==1))&&(a20==1)))&&!(a11==1))&&!(a0==1))){ + a25 = 1; + a0 = 1; + a11 = 1; + a19 = 1; + a24 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if(((a29==6)&&(((a20==1)&&((((((((a28==1)&&((a22==1)&&(input==6)))&&!(a0==1))&&(a25==1))&&(a14==8))&&(a19==5))&&!(a7==1))&&!(a11==1)))&&(a24==1)))){ + a0 = 1; + a24 = 0; + a20 = 0; + a19 = 3; + a29 = 9; + return 23; + } else if((((!(a24==1)&&(((((!(a20==1)&&(!(a25==1)&&(((((a29==8)&&(a19==3))||((a29==9)&&(a19==3)))||((a19==4)&&(a29==5)))&&(input==1))))&&!(a0==1))&&(a28==1))&&(a22==1))&&(a7==1)))&&(a14==8))&&(a11==1))){ + a29 = 5; + a24 = 1; + a0 = 1; + a19 = 1; + a25 = 1; + a20 = 1; + return -1; + } else if(((((a22==1)&&(((a28==1)&&(!(a25==1)&&(((((a19==5)&&(((a29==8)||(a29==9))&&(input==3)))&&!(a11==1))&&(a24==1))&&(a7==1))))&&(a0==1)))&&!(a20==1))&&(a14==9))){ + a14 = 8; + a11 = 1; + a19 = 1; + a0 = 0; + a29 = 9; + return 24; + } else if((!(a7==1)&&((((!(a0==1)&&((a22==1)&&((((a28==1)&&(!(a24==1)&&((input==5)&&((a29==8)||((a29==6)||(a29==7))))))&&(a19==2))&&!(a11==1))))&&(a20==1))&&!(a25==1))&&(a14==9)))){ + a19 = 1; + a7 = 1; + a29 = 5; + a24 = 1; + a14 = 8; + a11 = 1; + a25 = 1; + a0 = 1; + return -1; + } else if((!(a25==1)&&((a11==1)&&((((a20==1)&&(((((a14==8)&&((a0==1)&&((input==4)&&((a29==7)||((a29==5)||(a29==6))))))&&(a28==1))&&(a22==1))&&(a19==1)))&&(a24==1))&&!(a7==1))))){ + a29 = 5; + a7 = 1; + a25 = 1; + return -1; + } else if((((((a20==1)&&((((a24==1)&&((input==3)&&(((a19==5)&&((a29==9)&&((a7==1)&&!(a25==1))))||((a19==1)&&((a29==5)&&((a25==1)&&!(a7==1)))))))&&(a14==8))&&(a22==1)))&&(a28==1))&&!(a11==1))&&!(a0==1))){ + a29 = 6; + a11 = 1; + a7 = 1; + a25 = 0; + a19 = 4; + a24 = 0; + a14 = 9; + return 24; + } else if(((a29==7)&&(!(a25==1)&&(!(a20==1)&&((!(a11==1)&&(((((a19==2)&&((!(a24==1)&&(input==2))&&(a28==1)))&&(a14==9))&&!(a0==1))&&!(a7==1)))&&(a22==1)))))){ + a11 = 1; + a19 = 1; + a14 = 8; + a20 = 1; + a29 = 5; + a0 = 1; + a24 = 1; + a25 = 1; + a7 = 1; + return -1; + } else if(((((a19==4)&&((!(a25==1)&&((a0==1)&&(((a11==1)&&((a22==1)&&(!(a7==1)&&((input==4)&&((a29==8)||(a29==9))))))&&(a28==1))))&&(a24==1)))&&!(a20==1))&&(a14==10))){ + a29 = 9; + a14 = 8; + a0 = 0; + return 24; + } else if(((a19==3)&&(((a28==1)&&((a7==1)&&((a25==1)&&((a11==1)&&((a14==9)&&(!(a0==1)&&(!(a24==1)&&((a22==1)&&((input==2)&&((a29==6)||(a29==7)))))))))))&&(a20==1)))){ + a14 = 8; + a25 = 0; + a19 = 4; + a7 = 0; + a20 = 0; + a29 = 5; + return -1; + } else if(((a25==1)&&((!(a7==1)&&((a19==2)&&(((a14==8)&&((a28==1)&&((((a22==1)&&((input==1)&&((a29==6)||(a29==7))))&&!(a0==1))&&(a24==1))))&&(a20==1))))&&!(a11==1)))){ + a20 = 0; + a29 = 8; + a0 = 1; + a14 = 9; + a7 = 1; + a25 = 0; + return 24; + } else if((((a28==1)&&(!(a20==1)&&((a11==1)&&(((a22==1)&&((((a7==1)&&((a19==3)&&((input==4)&&((a29==6)||(a29==7)))))&&!(a24==1))&&!(a0==1)))&&(a25==1)))))&&(a14==8))){ + a14 = 9; + a29 = 7; + a24 = 1; + a19 = 4; + return 21; + } else if((((a22==1)&&((a25==1)&&(((!(a20==1)&&((!(a7==1)&&(((((a29==6)||(a29==7))&&(input==1))&&!(a24==1))&&(a0==1)))&&(a19==3)))&&(a14==8))&&(a28==1))))&&(a11==1))){ + a20 = 1; + a19 = 1; + a29 = 5; + a7 = 1; + a24 = 1; + return -1; + } else if(((a24==1)&&((a14==9)&&(!(a25==1)&&(((a7==1)&&(((((a20==1)&&((a19==4)&&((input==6)&&((a29==6)||(a29==7)))))&&(a28==1))&&(a11==1))&&!(a0==1)))&&(a22==1)))))){ + a29 = 9; + a0 = 1; + a19 = 3; + a25 = 1; + return -1; + } else if((!(a7==1)&&((a24==1)&&(((a22==1)&&((!(a20==1)&&(((!(a11==1)&&(((input==6)&&((a29==9)||((a29==7)||(a29==8))))&&(a25==1)))&&!(a0==1))&&(a28==1)))&&(a14==9)))&&(a19==2))))){ + a14 = 8; + a29 = 7; + a19 = 3; + a25 = 0; + a24 = 0; + a11 = 1; + a20 = 1; + return 23; + } else if((((a11==1)&&((!(a0==1)&&((a22==1)&&(((a24==1)&&(!(a25==1)&&(((a29==8)&&((input==6)&&!(a7==1)))&&(a20==1))))&&(a28==1))))&&(a14==8)))&&(a19==1))){ + a25 = 1; + a19 = 3; + return -1; + } else if(((a22==1)&&((a25==1)&&(!(a11==1)&&((a28==1)&&(((((((input==6)&&(((a29==9)&&(a19==1))||((a29==5)&&(a19==2))))&&(a14==8))&&(a20==1))&&!(a7==1))&&(a24==1))&&!(a0==1))))))){ + a29 = 8; + a20 = 0; + a19 = 5; + a11 = 1; + return 23; + } else if(((a19==5)&&(((!(a20==1)&&(!(a7==1)&&((a25==1)&&(((((a28==1)&&(((a29==6)||(a29==7))&&(input==6)))&&(a22==1))&&!(a0==1))&&!(a24==1)))))&&(a14==9))&&(a11==1)))){ + a29 = 7; + a24 = 1; + a14 = 8; + a19 = 4; + a25 = 0; + return 24; + } else if(((((a22==1)&&((a19==1)&&(!(a11==1)&&(((!(a20==1)&&((a14==9)&&((a24==1)&&(((a29==5)||(a29==6))&&(input==5)))))&&(a0==1))&&(a28==1)))))&&(a7==1))&&(a25==1))){ + a14 = 8; + a25 = 0; + a11 = 1; + a29 = 8; + a0 = 0; + return 24; + } else if((!(a7==1)&&((a11==1)&&((a0==1)&&((((a28==1)&&(!(a24==1)&&(!(a25==1)&&((a19==5)&&(((input==3)&&(a22==1))&&!(a20==1))))))&&(a29==8))&&(a14==8)))))){ + a20 = 1; + a19 = 1; + a7 = 1; + a25 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if((((a24==1)&&((a19==2)&&(((a28==1)&&((((!(a20==1)&&((((a29==8)||(a29==9))&&(input==2))&&(a22==1)))&&!(a7==1))&&!(a25==1))&&(a11==1)))&&!(a0==1))))&&(a14==8))){ + a24 = 0; + a11 = 0; + a29 = 7; + a14 = 9; + a25 = 1; + a0 = 1; + return 23; + } else if((!(a0==1)&&(((a11==1)&&(((a14==9)&&(((a25==1)&&(!(a7==1)&&((a28==1)&&((a22==1)&&((input==6)&&!(a20==1))))))&&(a19==3)))&&(a29==7)))&&!(a24==1)))){ + a14 = 8; + a19 = 1; + a24 = 1; + a0 = 1; + a20 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if((!(a24==1)&&((a25==1)&&(((a19==4)&&((a14==8)&&(((a20==1)&&((a22==1)&&((((a11==1)&&(input==4))&&(a28==1))&&(a29==9))))&&!(a7==1))))&&(a0==1))))){ + a19 = 5; + a24 = 1; + a0 = 0; + a29 = 8; + a7 = 1; + return 21; + } else if((!(a11==1)&&((((a14==9)&&(!(a20==1)&&((a25==1)&&((((a28==1)&&((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))&&(input==3)))&&(a24==1))&&!(a0==1)))))&&(a7==1))&&(a22==1)))){ + a0 = 1; + a25 = 0; + a29 = 5; + a19 = 5; + a7 = 0; + a11 = 1; + return 21; + } else if((!(a25==1)&&(((a22==1)&&(((a14==10)&&((a29==5)&&((((a11==1)&&((a24==1)&&((input==2)&&(a20==1))))&&(a28==1))&&(a7==1))))&&(a19==4)))&&(a0==1)))){ + a14 = 8; + a7 = 0; + a19 = 1; + a29 = 7; + a25 = 1; + a0 = 0; + return 23; + } else if(((a22==1)&&((!(a25==1)&&((((a7==1)&&((!(a24==1)&&(((((a29==5)||(a29==6))&&(input==5))&&(a11==1))&&!(a0==1)))&&(a19==3)))&&(a14==9))&&(a28==1)))&&!(a20==1)))){ + a0 = 1; + a25 = 1; + a7 = 0; + a20 = 1; + a29 = 9; + return -1; + } else if((((((a22==1)&&((a24==1)&&((!(a11==1)&&(((a25==1)&&(((input==5)&&!(a7==1))&&(a19==4)))&&(a29==8)))&&!(a0==1))))&&(a28==1))&&!(a20==1))&&(a14==9))){ + a7 = 1; + a0 = 1; + a29 = 6; + a19 = 1; + return -1; + } else if(((a22==1)&&((a20==1)&&((a0==1)&&((a14==8)&&((a19==3)&&(((a29==7)&&(((a11==1)&&(!(a7==1)&&((input==6)&&!(a24==1))))&&(a28==1)))&&!(a25==1)))))))){ + a24 = 1; + a7 = 1; + a19 = 2; + a29 = 9; + a0 = 0; + return 24; + } else if((((!(a24==1)&&((a7==1)&&((a11==1)&&((a20==1)&&((a19==1)&&((a0==1)&&(((a22==1)&&(((a29==6)||(a29==7))&&(input==2)))&&!(a25==1))))))))&&(a14==8))&&(a28==1))){ + a19 = 3; + a24 = 1; + a0 = 0; + a25 = 1; + a29 = 9; + return 23; + } else if(((a7==1)&&((a28==1)&&(!(a20==1)&&((((a25==1)&&((a11==1)&&(((((input==3)&&((a29==9)||((a29==7)||(a29==8))))&&(a14==9))&&(a24==1))&&(a19==5))))&&(a0==1))&&(a22==1)))))){ + a25 = 0; + a7 = 0; + a19 = 4; + a24 = 0; + a11 = 0; + a29 = 6; + a14 = 8; + return 23; + } else if(((a28==1)&&((a22==1)&&(((a20==1)&&((((a14==8)&&((a24==1)&&(((a0==1)&&((a7==1)&&(input==2)))&&(a19==5))))&&(a25==1))&&!(a11==1)))&&(a29==9))))){ + a29 = 6; + a19 = 1; + a0 = 0; + a7 = 0; + a20 = 0; + a25 = 0; + return 23; + } else if(((a20==1)&&((a14==9)&&(!(a11==1)&&(!(a24==1)&&((a22==1)&&(((a7==1)&&((a28==1)&&(!(a0==1)&&(((((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))||((a19==2)&&(a29==6)))&&(input==1)))))&&(a25==1)))))))){ + a24 = 1; + a25 = 0; + a19 = 4; + a20 = 0; + a29 = 5; + a11 = 1; + return -1; + } else if((((a22==1)&&(!(a24==1)&&(!(a20==1)&&((!(a0==1)&&((a19==2)&&(!(a25==1)&&((a11==1)&&((a7==1)&&((input==6)&&((a29==7)||((a29==5)||(a29==6)))))))))&&(a14==8)))))&&(a28==1))){ + a11 = 0; + a24 = 1; + a25 = 1; + a20 = 1; + a7 = 0; + a29 = 8; + return 21; + } else if((((((a24==1)&&((a25==1)&&((((a14==9)&&(((a28==1)&&((a29==6)&&(input==2)))&&(a7==1)))&&(a19==2))&&!(a20==1))))&&(a11==1))&&!(a0==1))&&(a22==1))){ + a7 = 0; + a29 = 8; + a24 = 0; + a19 = 3; + a14 = 8; + a11 = 0; + return 24; + } else if(((a22==1)&&((a0==1)&&((((a28==1)&&((a14==9)&&(!(a7==1)&&(((a11==1)&&((input==3)&&(((a29==6)&&(a19==5))||(((a19==4)&&(a29==9))||((a19==5)&&(a29==5))))))&&(a24==1)))))&&!(a25==1))&&(a20==1))))){ + a29 = 9; + a11 = 0; + a19 = 2; + return 24; + } else if((!(a20==1)&&(((!(a11==1)&&((a25==1)&&((((((a19==5)&&(((a29==8)||(a29==9))&&(input==3)))&&(a22==1))&&(a24==1))&&(a7==1))&&!(a0==1))))&&(a28==1))&&(a14==8)))){ + a11 = 1; + a14 = 9; + a29 = 7; + a19 = 3; + a24 = 0; + a25 = 0; + return 23; + } else if((((a11==1)&&((((a14==9)&&(!(a20==1)&&(!(a0==1)&&((a28==1)&&(((a22==1)&&(((a29==6)||(a29==7))&&(input==2)))&&!(a24==1))))))&&(a25==1))&&(a19==5)))&&!(a7==1))){ + a0 = 1; + a7 = 1; + a14 = 8; + a24 = 1; + a29 = 5; + a20 = 1; + a19 = 1; + return -1; + } else if((!(a0==1)&&((a20==1)&&((((a14==9)&&((!(a11==1)&&(((((input==6)&&(a28==1))&&(a24==1))&&(a22==1))&&!(a25==1)))&&(a19==4)))&&(a29==9))&&!(a7==1))))){ + a0 = 1; + a11 = 1; + a29 = 8; + a7 = 1; + a19 = 1; + return 24; + } else if(((a22==1)&&((a0==1)&&((a19==2)&&((a28==1)&&(!(a11==1)&&((a14==9)&&((((a20==1)&&(((input==3)&&(((a29==7)||(a29==8))||(a29==9)))&&!(a24==1)))&&(a7==1))&&!(a25==1))))))))){ + a24 = 1; + a19 = 1; + a14 = 8; + a29 = 5; + a25 = 1; + a11 = 1; + return -1; + } else if((!(a25==1)&&(((a24==1)&&(!(a11==1)&&(((a22==1)&&((a14==9)&&((((a0==1)&&((input==2)&&((a29==6)||(a29==7))))&&(a28==1))&&(a19==1))))&&(a20==1))))&&!(a7==1)))){ + a29 = 6; + a14 = 8; + a20 = 0; + a24 = 0; + a19 = 4; + return 24; + } else if((((((((((((((!(a20==1)&&(a11==1))&&!(a7==1))&&!(a24==1))&&!(a25==1))&&(a29==8))&&(a19==5))||((a19==5)&&((!(a25==1)&&(!(a24==1)&&(!(a7==1)&&((a11==1)&&!(a20==1)))))&&(a29==9))))||((a19==1)&&((a29==5)&&(((a24==1)&&((!(a11==1)&&(a20==1))&&(a7==1)))&&(a25==1)))))&&(input==5))&&(a22==1))&&(a28==1))&&(a14==8))&&!(a0==1))){ + a25 = 1; + a11 = 1; + a19 = 1; + a7 = 1; + a29 = 5; + a24 = 1; + a20 = 1; + a0 = 1; + return -1; + } else if(((a7==1)&&(((((a14==9)&&(!(a0==1)&&(!(a20==1)&&(!(a25==1)&&((a11==1)&&((((a29==5)||(a29==6))&&(input==2))&&(a19==1)))))))&&(a24==1))&&(a22==1))&&(a28==1)))){ + a11 = 0; + a0 = 1; + a29 = 5; + a24 = 0; + a14 = 8; + a19 = 3; + return 23; + } else if((((a11==1)&&(((a29==5)&&((((a24==1)&&((a20==1)&&((a22==1)&&(((a14==8)&&(input==5))&&(a28==1)))))&&!(a0==1))&&(a7==1)))&&(a19==4)))&&(a25==1))){ + a19 = 1; + a0 = 1; + return -1; + } else if(((!(a7==1)&&(((!(a20==1)&&((((a14==9)&&(!(a25==1)&&(!(a11==1)&&((input==3)&&((a29==6)||(a29==7))))))&&(a28==1))&&(a22==1)))&&(a24==1))&&(a19==5)))&&(a0==1))){ + a14 = 8; + a11 = 1; + a0 = 0; + a20 = 1; + a29 = 7; + a25 = 1; + a7 = 1; + return 24; + } else if((((a0==1)&&(((a29==9)&&(((((a24==1)&&(!(a7==1)&&((a20==1)&&((input==1)&&!(a11==1)))))&&(a28==1))&&(a19==4))&&!(a25==1)))&&(a14==9)))&&(a22==1))){ + a20 = 0; + a0 = 0; + a19 = 5; + a14 = 8; + a29 = 7; + a11 = 1; + a25 = 1; + return -1; + } else if(((a7==1)&&((((((a22==1)&&((((((((a29==5)||(a29==6))||(a29==7))&&(input==5))&&!(a25==1))&&(a0==1))&&(a24==1))&&(a28==1)))&&(a11==1))&&!(a20==1))&&(a19==2))&&(a14==8)))){ + a29 = 6; + a25 = 1; + a24 = 0; + a19 = 5; + a7 = 0; + return 23; + } else if(((!(a20==1)&&(((a22==1)&&((a28==1)&&((a11==1)&&(((!(a25==1)&&((input==3)&&(((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))))&&(a0==1))&&(a14==9)))))&&(a24==1)))&&(a7==1))){ + a25 = 1; + a0 = 0; + a29 = 7; + a7 = 0; + a24 = 0; + a19 = 1; + a14 = 8; + return 21; + } else if(((a0==1)&&(((((a11==1)&&((((!(a7==1)&&((a28==1)&&((input==3)&&(a14==9))))&&(a25==1))&&!(a20==1))&&(a29==7)))&&(a22==1))&&!(a24==1))&&(a19==5)))){ + a29 = 5; + a20 = 1; + a14 = 8; + a19 = 1; + a24 = 1; + a7 = 1; + return -1; + } else if((((((!(a0==1)&&(((a22==1)&&((!(a7==1)&&(((a20==1)&&(input==2))&&(a24==1)))&&(a29==8)))&&(a25==1)))&&!(a11==1))&&(a28==1))&&(a14==8))&&(a19==2))){ + a24 = 0; + a11 = 1; + a29 = 9; + a14 = 9; + return 21; + } else if(((((a22==1)&&((a14==8)&&(!(a7==1)&&(!(a11==1)&&((a20==1)&&((((((a25==1)&&(a29==9))&&(a19==5))||((a19==1)&&(!(a25==1)&&(a29==5))))&&(input==1))&&(a0==1)))))))&&(a28==1))&&!(a24==1))){ + a19 = 1; + a24 = 1; + a0 = 0; + a7 = 1; + a29 = 5; + a25 = 0; + a11 = 1; + return 21; + } else if((((a0==1)&&((((!(a11==1)&&((!(a20==1)&&(((((a29==6)&&(a19==4))||(((a29==9)&&(a19==3))||((a29==5)&&(a19==4))))&&(input==5))&&(a28==1)))&&(a7==1)))&&(a14==9))&&(a25==1))&&!(a24==1)))&&(a22==1))){ + a20 = 1; + a29 = 5; + a11 = 1; + a14 = 8; + a24 = 1; + a19 = 1; + return -1; + } else if(((a0==1)&&(((((((!(a24==1)&&((a28==1)&&((((a29==9)&&(a19==4))||((a29==5)&&(a19==5)))&&(input==1))))&&!(a20==1))&&!(a7==1))&&(a11==1))&&(a14==9))&&(a22==1))&&(a25==1)))){ + a11 = 0; + a19 = 2; + a29 = 9; + a24 = 1; + return 23; + } else if(((!(a25==1)&&((((((!(a0==1)&&((((input==5)&&((a29==8)||((a29==6)||(a29==7))))&&(a28==1))&&(a7==1)))&&!(a11==1))&&(a24==1))&&(a14==8))&&!(a20==1))&&(a22==1)))&&(a19==2))){ + a25 = 1; + a29 = 7; + return -1; + } else if(((a28==1)&&((a22==1)&&((a7==1)&&(((!(a11==1)&&(!(a20==1)&&((((a19==5)&&(((a29==5)||(a29==6))&&(input==1)))&&!(a0==1))&&!(a25==1))))&&!(a24==1))&&(a14==8)))))){ + a29 = 8; + a0 = 1; + a7 = 0; + return 23; + } else if((((a20==1)&&(((a25==1)&&((a14==8)&&(!(a7==1)&&((((a22==1)&&((input==1)&&(((a29==5)&&(a19==5))||(((a19==4)&&(a29==8))||((a19==4)&&(a29==9))))))&&!(a0==1))&&!(a11==1)))))&&(a24==1)))&&(a28==1))){ + a7 = 1; + a24 = 0; + a29 = 5; + a25 = 0; + a19 = 4; + a11 = 1; + return 21; + } else if(((((a7==1)&&(((((a14==10)&&((a22==1)&&(((((a29==5)||(a29==6))&&(input==2))&&(a28==1))&&(a25==1))))&&(a20==1))&&(a19==1))&&(a24==1)))&&(a11==1))&&(a0==1))){ + a29 = 6; + a14 = 9; + a20 = 0; + a7 = 0; + a19 = 4; + a0 = 0; + a25 = 0; + return -1; + } else if(((a20==1)&&((a0==1)&&(((a29==9)&&((a14==9)&&(((((((input==3)&&(a19==2))&&(a22==1))&&!(a7==1))&&(a25==1))&&(a24==1))&&(a28==1))))&&(a11==1))))){ + a14 = 8; + a11 = 0; + a0 = 0; + a29 = 7; + a19 = 4; + return -1; + } else if((((a14==8)&&(!(a20==1)&&(!(a25==1)&&(!(a0==1)&&(!(a11==1)&&((((a19==4)&&((a28==1)&&((input==6)&&((a29==6)||(a29==7)))))&&(a22==1))&&(a24==1)))))))&&!(a7==1))){ + a19 = 2; + a25 = 1; + a11 = 1; + a29 = 8; + return 24; + } else if(((((a7==1)&&((a0==1)&&((a14==9)&&(((((a25==1)&&((a28==1)&&(((a29==7)||(a29==8))&&(input==3))))&&!(a24==1))&&!(a20==1))&&!(a11==1)))))&&(a22==1))&&(a19==3))){ + a11 = 1; + a24 = 1; + a19 = 1; + a20 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((!(a20==1)&&(((a19==1)&&((a7==1)&&((a28==1)&&((a0==1)&&((a14==8)&&(((a11==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==6)))&&(a25==1)))))))&&(a24==1)))&&(a22==1))){ + a29 = 5; + a20 = 1; + a19 = 4; + a24 = 0; + a7 = 0; + return 24; + } else if(((a25==1)&&((((a0==1)&&(((((a22==1)&&(((a7==1)&&(((a29==8)||(a29==9))&&(input==6)))&&(a24==1)))&&!(a11==1))&&(a20==1))&&(a19==4)))&&(a28==1))&&(a14==9)))){ + a14 = 8; + a11 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((!(a20==1)&&(((a24==1)&&(!(a7==1)&&((((a22==1)&&((((input==2)&&(((a29==9)&&(a19==1))||((a19==2)&&(a29==5))))&&(a28==1))&&!(a25==1)))&&(a14==8))&&(a11==1))))&&(a0==1)))){ + a7 = 1; + a19 = 1; + a29 = 5; + a25 = 1; + a20 = 1; + return -1; + } else if((((a14==9)&&(((a11==1)&&((a20==1)&&((a28==1)&&((!(a24==1)&&(!(a7==1)&&((((a19==2)&&(a29==6))||(((a19==1)&&(a29==9))||((a19==2)&&(a29==5))))&&(input==3))))&&!(a0==1)))))&&(a22==1)))&&!(a25==1))){ + a24 = 1; + a7 = 1; + a29 = 9; + a25 = 1; + a14 = 8; + a19 = 1; + return 21; + } else if(((a22==1)&&(((a14==9)&&(((a24==1)&&(!(a11==1)&&((a28==1)&&(((a19==2)&&((a25==1)&&(((a29==5)||(a29==6))&&(input==4))))&&!(a0==1)))))&&!(a20==1)))&&(a7==1)))){ + a29 = 7; + a0 = 1; + a24 = 0; + a14 = 8; + a25 = 0; + a19 = 3; + return 23; + } return calculate_output34(input); + } + + int calculate_output34(int input) { + if(((a0==1)&&((((((((((a19==5)&&((!(a25==1)&&((a20==1)&&!(a7==1)))&&(a29==8)))||((a19==5)&&((a29==9)&&(((a20==1)&&!(a7==1))&&!(a25==1)))))||((a19==1)&&(((a25==1)&&(!(a20==1)&&(a7==1)))&&(a29==5))))&&(input==1))&&(a28==1))&&(a22==1))&&(a24==1))&&(a11==1))&&(a14==9)))){ + a7 = 0; + a25 = 1; + a0 = 0; + a24 = 0; + a20 = 0; + a11 = 0; + a29 = 8; + a19 = 1; + return 23; + } else if(((a24==1)&&((a22==1)&&((a0==1)&&((a28==1)&&((a14==8)&&(!(a11==1)&&(!(a20==1)&&((((a25==1)&&((input==6)&&(((a29==5)||(a29==6))||(a29==7))))&&!(a7==1))&&(a19==2)))))))))){ + a11 = 1; + a19 = 4; + a29 = 6; + a0 = 0; + a25 = 0; + return 24; + } else if(((((a0==1)&&((a29==9)&&((((a19==4)&&((((a28==1)&&((a14==10)&&(input==5)))&&(a7==1))&&(a22==1)))&&(a24==1))&&(a11==1))))&&(a20==1))&&!(a25==1))){ + a24 = 0; + a19 = 1; + a29 = 6; + a7 = 0; + a14 = 8; + a0 = 0; + return -1; + } else if((!(a0==1)&&(((((a24==1)&&(!(a25==1)&&((a14==8)&&((!(a11==1)&&((a28==1)&&((input==3)&&((a29==7)||(a29==8)))))&&!(a7==1)))))&&(a19==3))&&(a22==1))&&(a20==1)))){ + a29 = 7; + a25 = 1; + a7 = 1; + return -1; + } else if(((!(a11==1)&&(((((((((input==5)&&(((a19==3)&&(a29==6))||(((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))))&&!(a7==1))&&(a22==1))&&(a25==1))&&(a24==1))&&!(a0==1))&&!(a20==1))&&(a14==8)))&&(a28==1))){ + a29 = 9; + a19 = 2; + a11 = 1; + a24 = 0; + return -1; + } else if((!(a25==1)&&(!(a0==1)&&((((((((a14==9)&&((((a29==7)||(a29==8))&&(input==5))&&(a19==4)))&&!(a11==1))&&(a7==1))&&(a24==1))&&(a22==1))&&!(a20==1))&&(a28==1))))){ + a0 = 1; + a29 = 9; + a25 = 1; + a19 = 1; + a24 = 0; + return 24; + } else if((((((a28==1)&&(!(a7==1)&&((((((a22==1)&&((input==6)&&((a29==7)||(a29==8))))&&(a19==2))&&(a0==1))&&(a14==10))&&(a11==1))))&&(a24==1))&&(a20==1))&&!(a25==1))){ + a29 = 5; + a0 = 0; + a11 = 0; + a25 = 1; + a20 = 0; + a14 = 8; + a19 = 5; + return 21; + } else if(((a14==8)&&((a11==1)&&(((a7==1)&&(((!(a0==1)&&(((a24==1)&&((a22==1)&&((input==6)&&(a25==1))))&&(a20==1)))&&(a29==5))&&(a28==1)))&&(a19==4))))){ + a20 = 0; + a25 = 0; + a7 = 0; + a19 = 3; + return 21; + } else if(((a22==1)&&((a19==2)&&(!(a11==1)&&(!(a24==1)&&(((a20==1)&&((((a7==1)&&((a14==8)&&(((a29==5)||(a29==6))&&(input==3))))&&(a0==1))&&(a25==1)))&&(a28==1))))))){ + a14 = 9; + a29 = 7; + a11 = 1; + a19 = 5; + return 24; + } else if(((a7==1)&&((a14==8)&&((a24==1)&&((a28==1)&&((!(a20==1)&&((a22==1)&&(!(a11==1)&&(!(a25==1)&&((input==6)&&((((a19==4)&&(a29==8))||((a29==9)&&(a19==4)))||((a29==5)&&(a19==5))))))))&&!(a0==1))))))){ + a25 = 1; + a29 = 5; + a19 = 1; + a20 = 1; + a0 = 1; + a11 = 1; + return -1; + } else if((!(a25==1)&&((a28==1)&&(!(a24==1)&&(!(a11==1)&&(((a19==5)&&((a7==1)&&((((a20==1)&&((input==1)&&((a29==5)||(a29==6))))&&(a0==1))&&(a22==1))))&&(a14==8))))))){ + a29 = 5; + a19 = 1; + a24 = 1; + a11 = 1; + a25 = 1; + return -1; + } else if((!(a0==1)&&(((a11==1)&&((((((((((a29==7)||(a29==8))&&(input==4))&&(a22==1))&&(a20==1))&&(a19==3))&&(a7==1))&&!(a24==1))&&(a14==8))&&(a28==1)))&&(a25==1)))){ + a29 = 6; + a24 = 1; + a25 = 0; + a7 = 0; + a19 = 4; + return -1; + } else if(((a20==1)&&((a29==5)&&((((((((a19==4)&&(!(a24==1)&&((input==1)&&(a0==1))))&&(a28==1))&&!(a25==1))&&(a22==1))&&(a14==8))&&!(a11==1))&&!(a7==1))))){ + a7 = 1; + a19 = 1; + a25 = 1; + a11 = 1; + a24 = 1; + return -1; + } else if((((a19==5)&&((!(a7==1)&&(((a14==9)&&((((((input==3)&&(((a29==7)||(a29==8))||(a29==9)))&&(a22==1))&&!(a24==1))&&(a0==1))&&!(a11==1)))&&(a25==1)))&&(a28==1)))&&(a20==1))){ + a19 = 2; + a20 = 0; + a25 = 0; + a29 = 8; + a14 = 8; + return -1; + } else if(((a11==1)&&((a14==9)&&(((a19==4)&&((a28==1)&&(((!(a7==1)&&((!(a0==1)&&((input==5)&&((a29==5)||(a29==6))))&&(a25==1)))&&(a24==1))&&(a20==1))))&&(a22==1))))){ + a29 = 5; + a19 = 1; + a14 = 8; + a0 = 1; + a7 = 1; + return -1; + } else if((((a20==1)&&(!(a24==1)&&((a0==1)&&(!(a25==1)&&(((((a22==1)&&(((((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))||((a19==4)&&(a29==6)))&&(input==5)))&&(a28==1))&&(a11==1))&&(a7==1))))))&&(a14==9))){ + a29 = 8; + a19 = 3; + a14 = 10; + a24 = 1; + a20 = 0; + a25 = 1; + return 21; + } else if((!(a7==1)&&((a19==3)&&(!(a11==1)&&(!(a20==1)&&(((!(a0==1)&&(((((input==5)&&((a29==6)||(a29==7)))&&(a28==1))&&!(a24==1))&&(a14==9)))&&(a22==1))&&(a25==1))))))){ + a19 = 2; + a0 = 1; + a29 = 6; + a14 = 8; + return 24; + } else if(((a28==1)&&((!(a7==1)&&((!(a24==1)&&(((a22==1)&&(((((input==4)&&((a29==5)||(a29==6)))&&(a25==1))&&(a19==2))&&(a0==1)))&&(a11==1)))&&(a14==8)))&&!(a20==1)))){ + a19 = 1; + a29 = 5; + a7 = 1; + a20 = 1; + a24 = 1; + return -1; + } else if(((a7==1)&&(!(a25==1)&&((!(a11==1)&&((a0==1)&&((!(a20==1)&&(!(a24==1)&&((a19==2)&&((a14==8)&&(((a29==6)||(a29==7))&&(input==2))))))&&(a28==1))))&&(a22==1))))){ + a29 = 8; + a24 = 1; + a0 = 0; + a25 = 1; + a11 = 1; + a19 = 4; + return 24; + } else if(((a22==1)&&((a28==1)&&((a11==1)&&((a0==1)&&((a14==9)&&((input==4)&&(((a19==1)&&(((a25==1)&&(((a7==1)&&(a20==1))&&!(a24==1)))&&(a29==5)))||(((a19==5)&&((a29==8)&&(((!(a20==1)&&!(a7==1))&&(a24==1))&&!(a25==1))))||((a19==5)&&((a29==9)&&(!(a25==1)&&((!(a7==1)&&!(a20==1))&&(a24==1)))))))))))))){ + a0 = 0; + a29 = 7; + a25 = 1; + a19 = 5; + a7 = 0; + a14 = 8; + a20 = 0; + a24 = 1; + return 24; + } else if((((a22==1)&&((a0==1)&&((!(a7==1)&&((!(a20==1)&&((((((a29==9)&&(a19==4))||((a29==5)&&(a19==5)))&&(input==1))&&(a14==9))&&(a25==1)))&&(a28==1)))&&!(a11==1))))&&(a24==1))){ + a19 = 1; + a14 = 8; + a7 = 1; + a20 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if((((a28==1)&&((!(a20==1)&&((a19==3)&&((((a0==1)&&((((input==4)&&((a29==8)||(a29==9)))&&(a25==1))&&(a22==1)))&&(a14==8))&&(a7==1))))&&(a24==1)))&&!(a11==1))){ + a19 = 4; + a0 = 0; + a11 = 1; + a29 = 9; + a20 = 1; + return 24; + } else if(((a11==1)&&((a14==8)&&((a28==1)&&((a19==4)&&((!(a7==1)&&((a24==1)&&((((((a29==6)||(a29==7))&&(input==6))&&(a22==1))&&!(a20==1))&&(a0==1))))&&(a25==1))))))){ + a19 = 2; + a29 = 6; + a7 = 1; + a11 = 0; + a25 = 0; + return 21; + } else if(((!(a24==1)&&((a20==1)&&((a28==1)&&(((a0==1)&&((a25==1)&&((((((a19==5)&&(a29==6))||(((a29==9)&&(a19==4))||((a29==5)&&(a19==5))))&&(input==4))&&!(a7==1))&&(a14==9))))&&!(a11==1)))))&&(a22==1))){ + a0 = 0; + a19 = 1; + a29 = 8; + a14 = 8; + a11 = 1; + a24 = 1; + return 23; + } else if(((!(a20==1)&&(((((a28==1)&&(((((((a29==6)||(a29==7))&&(input==5))&&!(a25==1))&&!(a24==1))&&(a14==8))&&(a22==1)))&&(a11==1))&&!(a7==1))&&(a19==1)))&&(a0==1))){ + a24 = 1; + a19 = 3; + a29 = 7; + a0 = 0; + return 23; + } else if(((a29==8)&&((a14==9)&&(!(a24==1)&&((a25==1)&&(((a19==1)&&((!(a11==1)&&((a28==1)&&((!(a0==1)&&(input==4))&&!(a7==1))))&&(a22==1)))&&(a20==1))))))){ + a29 = 5; + a19 = 5; + a24 = 1; + a14 = 8; + a25 = 0; + return -1; + } else if((!(a0==1)&&(!(a11==1)&&(!(a25==1)&&((((a14==9)&&((a24==1)&&(((a7==1)&&((a20==1)&&(((a29==7)||(a29==8))&&(input==3))))&&(a19==5))))&&(a28==1))&&(a22==1)))))){ + a0 = 1; + a14 = 8; + a29 = 6; + return -1; + } else if((((((((a14==9)&&((((a24==1)&&((a7==1)&&((input==3)&&((a29==5)||(a29==6)))))&&(a28==1))&&!(a20==1)))&&(a19==5))&&!(a11==1))&&(a0==1))&&!(a25==1))&&(a22==1))){ + a29 = 6; + a7 = 0; + a19 = 3; + a11 = 1; + a14 = 8; + a25 = 1; + a0 = 0; + a24 = 0; + return 21; + } else if(((a29==6)&&(((a20==1)&&((a14==8)&&(!(a11==1)&&(((((a19==5)&&((a7==1)&&((input==3)&&(a28==1))))&&(a0==1))&&(a22==1))&&(a24==1)))))&&(a25==1)))){ + a20 = 0; + a7 = 0; + a0 = 0; + a19 = 4; + return 24; + } else if((((((a28==1)&&(!(a25==1)&&((a11==1)&&((((((((a29==7)||(a29==8))||(a29==9))&&(input==2))&&!(a20==1))&&(a14==9))&&(a24==1))&&(a22==1)))))&&!(a7==1))&&!(a0==1))&&(a19==3))){ + a0 = 1; + a24 = 0; + a11 = 0; + a14 = 8; + a29 = 6; + a25 = 1; + a19 = 2; + return 24; + } else if(((((a28==1)&&(!(a24==1)&&((a22==1)&&((!(a20==1)&&((a29==7)&&((((a19==3)&&(input==3))&&(a25==1))&&!(a7==1))))&&(a11==1)))))&&(a14==9))&&!(a0==1))){ + a0 = 1; + a19 = 2; + a7 = 1; + a29 = 9; + a11 = 0; + a25 = 0; + a14 = 8; + return 21; + } else if(((a14==9)&&((a20==1)&&(((a28==1)&&((a11==1)&&(((a7==1)&&(((((input==6)&&((a29==9)||((a29==7)||(a29==8))))&&!(a24==1))&&(a0==1))&&(a25==1)))&&(a19==4))))&&(a22==1))))){ + a14 = 10; + a24 = 1; + a25 = 0; + a29 = 6; + a7 = 0; + return 21; + } else if((((((a25==1)&&((a7==1)&&(((a11==1)&&(!(a0==1)&&((a14==8)&&((input==6)&&(((a19==5)&&(a29==6))||(((a29==9)&&(a19==4))||((a19==5)&&(a29==5))))))))&&(a28==1))))&&(a20==1))&&(a24==1))&&(a22==1))){ + a11 = 0; + a24 = 0; + a29 = 8; + a0 = 1; + a20 = 0; + a7 = 0; + a19 = 4; + return -1; + } else if(((a22==1)&&((!(a24==1)&&(!(a20==1)&&((a25==1)&&((a11==1)&&((a7==1)&&((a14==9)&&(((a28==1)&&((input==6)&&((a29==5)||(a29==6))))&&(a19==4))))))))&&!(a0==1)))){ + a24 = 1; + a19 = 1; + a14 = 8; + a29 = 5; + a20 = 1; + a0 = 1; + return -1; + } else if(((a14==8)&&(((a19==4)&&((a28==1)&&(((a11==1)&&(!(a24==1)&&(!(a7==1)&&(!(a20==1)&&((((a29==7)||(a29==8))&&(input==5))&&!(a25==1))))))&&!(a0==1))))&&(a22==1)))){ + a0 = 1; + a19 = 5; + a11 = 0; + a7 = 1; + a29 = 5; + return 23; + } else if(((a11==1)&&((a28==1)&&((a14==9)&&(((!(a0==1)&&(((((a22==1)&&((input==5)&&(a29==7)))&&!(a20==1))&&(a19==4))&&(a24==1)))&&!(a25==1))&&!(a7==1)))))){ + a7 = 1; + a20 = 1; + a19 = 5; + a25 = 1; + a29 = 9; + a0 = 1; + a11 = 0; + return 21; + } else if(((a7==1)&&(!(a11==1)&&((a28==1)&&((a14==9)&&(((a22==1)&&(((!(a24==1)&&((input==3)&&((((a29==9)&&(a19==4))||((a29==5)&&(a19==5)))||((a19==5)&&(a29==6)))))&&!(a20==1))&&(a25==1)))&&(a0==1))))))){ + a7 = 0; + a24 = 1; + a14 = 8; + a11 = 1; + a19 = 3; + a29 = 7; + a0 = 0; + return -1; + } else if((!(a7==1)&&((a22==1)&&((((a28==1)&&(((a25==1)&&((((a0==1)&&((input==4)&&(a19==5)))&&(a11==1))&&(a24==1)))&&(a20==1)))&&(a29==9))&&(a14==9))))){ + a11 = 0; + a7 = 1; + a14 = 8; + a19 = 4; + a0 = 0; + a24 = 0; + return -1; + } else if((((a25==1)&&((a0==1)&&((a20==1)&&((((a28==1)&&((a11==1)&&(((a22==1)&&((a14==9)&&(input==5)))&&!(a7==1))))&&(a19==2))&&!(a24==1)))))&&(a29==8))){ + a20 = 0; + a19 = 4; + a24 = 1; + return 24; + } else if((((((a20==1)&&(((((!(a24==1)&&(((input==4)&&(a28==1))&&(a22==1)))&&(a11==1))&&(a19==4))&&!(a0==1))&&(a14==9)))&&(a7==1))&&(a29==6))&&!(a25==1))){ + a24 = 1; + a29 = 9; + a11 = 0; + a19 = 3; + a7 = 0; + a14 = 8; + return -1; + } else if(((!(a24==1)&&((a28==1)&&(((!(a0==1)&&((!(a11==1)&&(!(a20==1)&&(((((a19==4)&&(a29==8))||((a29==9)&&(a19==4)))||((a29==5)&&(a19==5)))&&(input==5))))&&(a14==9)))&&(a22==1))&&(a25==1))))&&!(a7==1))){ + a20 = 1; + a29 = 6; + a19 = 4; + a11 = 1; + return -1; + } else if(((a7==1)&&(!(a11==1)&&((a22==1)&&((a0==1)&&((((((((input==6)&&!(a25==1))&&(a14==8))&&(a24==1))&&(a19==1))&&(a28==1))&&!(a20==1))&&(a29==5))))))){ + a14 = 9; + a11 = 1; + a20 = 1; + a29 = 8; + a25 = 1; + a19 = 5; + return 21; + } else if(((a14==10)&&(!(a25==1)&&(((!(a20==1)&&((((a0==1)&&(((((a29==8)||(a29==9))&&(input==4))&&(a11==1))&&(a19==5)))&&(a28==1))&&(a24==1)))&&(a22==1))&&(a7==1))))){ + a19 = 1; + a11 = 0; + a29 = 6; + a14 = 8; + a7 = 0; + a24 = 0; + return 24; + } else if(((a22==1)&&((a19==5)&&(((!(a20==1)&&((!(a25==1)&&((a24==1)&&((((input==6)&&(((a29==5)||(a29==6))||(a29==7)))&&(a14==8))&&(a28==1))))&&!(a11==1)))&&(a0==1))&&(a7==1))))){ + a7 = 0; + a29 = 8; + a0 = 0; + a25 = 1; + a19 = 1; + a11 = 1; + return 23; + } else if(((a28==1)&&(!(a0==1)&&(!(a24==1)&&(((a7==1)&&(!(a20==1)&&((a14==8)&&(!(a11==1)&&((a25==1)&&((input==4)&&(((a29==6)&&(a19==2))||(((a19==1)&&(a29==9))||((a19==2)&&(a29==5))))))))))&&(a22==1)))))){ + a20 = 1; + a19 = 1; + a11 = 1; + a0 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if(((a11==1)&&((a14==9)&&(((!(a0==1)&&(((((a20==1)&&(!(a25==1)&&((input==3)&&((a29==7)||(a29==8)))))&&(a19==2))&&(a28==1))&&!(a24==1)))&&!(a7==1))&&(a22==1))))){ + a7 = 1; + a14 = 8; + a24 = 1; + a19 = 4; + a29 = 7; + a11 = 0; + return -1; + } else if(((a20==1)&&((a7==1)&&((((((!(a11==1)&&(!(a25==1)&&((a22==1)&&((a0==1)&&(input==6)))))&&(a29==8))&&(a28==1))&&(a14==8))&&(a19==3))&&(a24==1))))){ + a0 = 0; + a24 = 0; + a29 = 6; + a19 = 2; + return 23; + } else if((((a24==1)&&(((a28==1)&&(!(a7==1)&&(((a14==10)&&((((a22==1)&&(((a29==7)||(a29==8))&&(input==1)))&&(a20==1))&&!(a25==1)))&&(a0==1))))&&(a19==2)))&&(a11==1))){ + a20 = 0; + a11 = 0; + a7 = 1; + a25 = 1; + a14 = 9; + a29 = 7; + return -1; + } else if(((a28==1)&&((((a0==1)&&(((a11==1)&&((a7==1)&&((a22==1)&&((a20==1)&&((input==4)&&(((a19==4)&&(a29==9))||((a29==5)&&(a19==5))))))))&&(a25==1)))&&(a14==10))&&!(a24==1)))){ + a14 = 8; + a24 = 1; + a0 = 0; + a19 = 5; + a29 = 5; + return 24; + } else if(((a19==1)&&((((!(a0==1)&&((!(a11==1)&&(((a25==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==6))&&(a7==1)))&&(a20==1)))&&!(a24==1)))&&(a22==1))&&(a14==8))&&(a28==1)))){ + a0 = 1; + a29 = 5; + a11 = 1; + a24 = 1; + return -1; + } else if(((!(a0==1)&&((((!(a25==1)&&((a14==8)&&((a28==1)&&((a11==1)&&((((a29==5)&&(a19==3))||(((a29==8)&&(a19==2))||((a29==9)&&(a19==2))))&&(input==6))))))&&!(a7==1))&&(a22==1))&&(a24==1)))&&(a20==1))){ + a19 = 5; + a25 = 1; + a29 = 7; + a7 = 1; + return -1; + } else if(((a11==1)&&(!(a0==1)&&((a28==1)&&((a19==2)&&(((a29==5)&&(((((a7==1)&&(!(a24==1)&&(input==5)))&&(a22==1))&&(a20==1))&&(a25==1)))&&(a14==9))))))){ + a25 = 0; + a19 = 4; + a0 = 1; + a29 = 7; + a11 = 0; + return -1; + } else if(((!(a0==1)&&(((((((a7==1)&&((a22==1)&&((a14==8)&&((input==6)&&(((a29==6)||(a29==7))||(a29==8))))))&&(a25==1))&&(a28==1))&&(a24==1))&&(a11==1))&&!(a20==1)))&&(a19==5))){ + a19 = 1; + a20 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if((!(a24==1)&&(!(a20==1)&&(!(a11==1)&&(((a28==1)&&((!(a0==1)&&((a19==2)&&((a29==7)&&(((a14==9)&&(input==4))&&!(a7==1)))))&&(a22==1)))&&(a25==1)))))){ + a11 = 1; + a19 = 3; + a0 = 1; + a29 = 6; + a24 = 1; + return -1; + } else if((((a28==1)&&(((!(a7==1)&&(((a29==8)&&((a19==1)&&((!(a11==1)&&((input==6)&&!(a0==1)))&&(a20==1))))&&(a25==1)))&&(a22==1))&&(a14==8)))&&!(a24==1))){ + a20 = 0; + a24 = 1; + a29 = 6; + a7 = 1; + return 23; + } else if(((a0==1)&&((a22==1)&&((((a24==1)&&((((a14==9)&&((a25==1)&&((a11==1)&&((input==6)&&((a29==7)||((a29==5)||(a29==6)))))))&&!(a7==1))&&(a28==1)))&&(a20==1))&&(a19==1))))){ + a11 = 0; + a25 = 0; + a19 = 2; + a29 = 5; + return 23; + } else if(((a24==1)&&((((a19==4)&&(((a28==1)&&((!(a0==1)&&(!(a11==1)&&((a20==1)&&((input==1)&&((a29==6)||(a29==7))))))&&(a14==9)))&&(a7==1)))&&(a25==1))&&(a22==1)))){ + a19 = 2; + a25 = 0; + a14 = 8; + a29 = 8; + a11 = 1; + a20 = 0; + a24 = 0; + return 21; + } else if(((!(a0==1)&&((((a22==1)&&((a7==1)&&((a28==1)&&((a14==9)&&(((input==6)&&(((a19==2)&&(a29==9))||((a19==3)&&(a29==5))))&&(a25==1))))))&&(a24==1))&&!(a20==1)))&&!(a11==1))){ + a29 = 5; + a11 = 1; + a7 = 0; + a19 = 3; + a14 = 8; + return 24; + } else if(((a19==4)&&(((!(a0==1)&&((a25==1)&&((a14==8)&&(((a11==1)&&((a28==1)&&(((input==2)&&((a29==6)||(a29==7)))&&(a22==1))))&&(a24==1)))))&&!(a20==1))&&!(a7==1)))){ + a7 = 1; + a29 = 8; + return -1; + } else if(((a22==1)&&((((a19==3)&&((((!(a7==1)&&((((input==4)&&(((a29==5)||(a29==6))||(a29==7)))&&!(a11==1))&&(a14==8)))&&(a0==1))&&(a25==1))&&(a28==1)))&&!(a24==1))&&(a20==1)))){ + a11 = 1; + a24 = 1; + a29 = 5; + a7 = 1; + a19 = 1; + return -1; + } else if(((a14==8)&&((((a0==1)&&((!(a7==1)&&((a20==1)&&((((((a29==8)||(a29==9))&&(input==2))&&(a24==1))&&(a19==1))&&!(a11==1))))&&(a25==1)))&&(a22==1))&&(a28==1)))){ + a19 = 2; + a0 = 0; + a29 = 6; + a24 = 0; + return 23; + } else if(((((a7==1)&&((a28==1)&&((a25==1)&&(((((a0==1)&&(((input==3)&&((a29==8)||(a29==9)))&&(a14==8)))&&!(a24==1))&&(a22==1))&&!(a20==1)))))&&!(a11==1))&&(a19==3))){ + a29 = 6; + a14 = 9; + a19 = 4; + a20 = 1; + a25 = 0; + a24 = 1; + return 23; + } else if(((((((a14==8)&&(!(a0==1)&&(!(a11==1)&&((!(a25==1)&&((a19==3)&&((input==4)&&(a7==1))))&&(a28==1)))))&&(a22==1))&&(a29==6))&&!(a20==1))&&!(a24==1))){ + a29 = 8; + a19 = 4; + a25 = 1; + a14 = 9; + a24 = 1; + a7 = 0; + return 24; + } else if(((((a11==1)&&((!(a0==1)&&(!(a24==1)&&(!(a7==1)&&((a19==1)&&(((a22==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==4)))&&(a14==8))))))&&!(a25==1)))&&(a20==1))&&(a28==1))){ + a24 = 1; + a25 = 1; + a7 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if(((((!(a24==1)&&(((a11==1)&&((a14==9)&&((a19==3)&&((a22==1)&&(((input==6)&&(a29==7))&&!(a25==1))))))&&(a7==1)))&&(a20==1))&&(a0==1))&&(a28==1))){ + a20 = 0; + a24 = 1; + a25 = 1; + a14 = 10; + a19 = 2; + return 23; + } else if(((a11==1)&&((a19==1)&&((!(a24==1)&&((((a7==1)&&((a14==8)&&((((input==1)&&((a29==7)||(a29==8)))&&(a0==1))&&(a25==1))))&&!(a20==1))&&(a28==1)))&&(a22==1))))){ + a24 = 1; + a0 = 0; + a29 = 8; + a7 = 0; + return 23; + } else if(((((!(a24==1)&&(((a14==8)&&(((((a0==1)&&((input==6)&&(a19==4)))&&!(a20==1))&&(a29==6))&&!(a7==1)))&&(a22==1)))&&(a28==1))&&!(a25==1))&&(a11==1))){ + a20 = 1; + a29 = 5; + a19 = 1; + a24 = 1; + a7 = 1; + a25 = 1; + return -1; + } else if(((a11==1)&&((((((a14==8)&&((a29==5)&&((a25==1)&&(!(a7==1)&&((a28==1)&&((a20==1)&&(input==6)))))))&&!(a24==1))&&!(a0==1))&&(a22==1))&&(a19==1)))){ + a19 = 5; + a25 = 0; + a20 = 0; + a0 = 1; + a11 = 0; + return 23; + } else if(((a28==1)&&(((((a7==1)&&((a19==1)&&(((a22==1)&&((((input==4)&&(((a29==7)||(a29==8))||(a29==9)))&&!(a20==1))&&(a11==1)))&&!(a25==1))))&&(a14==8))&&(a0==1))&&!(a24==1)))){ + a25 = 1; + a29 = 7; + a11 = 0; + a7 = 0; + return 21; + } else if((((a22==1)&&(((a24==1)&&((a11==1)&&((a14==8)&&((a19==4)&&(!(a0==1)&&((((input==3)&&(a28==1))&&!(a25==1))&&(a7==1)))))))&&(a29==6)))&&!(a20==1))){ + a19 = 2; + a29 = 7; + return -1; + } else if(((a19==2)&&((a29==6)&&(!(a20==1)&&((((a7==1)&&((a25==1)&&(((a22==1)&&(((a14==9)&&(input==1))&&(a24==1)))&&(a0==1))))&&(a28==1))&&!(a11==1)))))){ + a14 = 8; + a11 = 1; + a19 = 3; + a29 = 8; + return 24; + } else if(((!(a11==1)&&(!(a0==1)&&(!(a25==1)&&(((((a7==1)&&((a19==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==2))&&(a14==8))))&&(a20==1))&&(a24==1))&&(a28==1)))))&&(a22==1))){ + a19 = 2; + a29 = 6; + a25 = 1; + a11 = 1; + a24 = 0; + return -1; + } else if(((a24==1)&&((a11==1)&&((a28==1)&&((a14==9)&&(!(a0==1)&&((a22==1)&&(!(a7==1)&&(!(a20==1)&&((((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))||((a29==6)&&(a19==5)))&&(input==5))&&!(a25==1))))))))))){ + a19 = 4; + a24 = 0; + a29 = 8; + a14 = 8; + return 23; + } else if(((a22==1)&&((((((!(a7==1)&&((!(a20==1)&&((((a29==5)||(a29==6))&&(input==5))&&(a28==1)))&&(a11==1)))&&(a24==1))&&!(a0==1))&&!(a25==1))&&(a14==8))&&(a19==2)))){ + a19 = 5; + a24 = 0; + a7 = 1; + a14 = 9; + a0 = 1; + a11 = 0; + a29 = 8; + return 21; + } else if((!(a24==1)&&((a19==5)&&(((a20==1)&&((!(a25==1)&&((a28==1)&&((a11==1)&&(((a14==9)&&(((a29==8)||(a29==9))&&(input==5)))&&(a0==1)))))&&(a22==1)))&&(a7==1))))){ + a29 = 9; + a19 = 3; + a24 = 1; + a7 = 0; + return -1; + } else if(((a19==5)&&((((!(a25==1)&&((a29==9)&&((a22==1)&&((a28==1)&&((!(a0==1)&&((input==6)&&!(a11==1)))&&(a7==1))))))&&(a20==1))&&(a14==9))&&(a24==1)))){ + a11 = 1; + a29 = 8; + a19 = 4; + a0 = 1; + a24 = 0; + a20 = 0; + return -1; + } else if((((a22==1)&&((a11==1)&&((a14==9)&&((a24==1)&&((!(a20==1)&&((!(a7==1)&&(!(a0==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==4))))&&(a28==1)))&&(a19==2))))))&&!(a25==1))){ + a20 = 1; + a19 = 4; + a29 = 6; + a24 = 0; + a25 = 1; + a14 = 8; + return 21; + } else if(((a14==10)&&(((a28==1)&&((a0==1)&&(((((a22==1)&&(((input==1)&&((((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))||((a29==6)&&(a19==5))))&&(a24==1)))&&!(a7==1))&&(a20==1))&&(a11==1))))&&!(a25==1)))){ + a19 = 1; + a25 = 1; + a14 = 8; + a20 = 0; + a29 = 8; + a0 = 0; + return 21; + } else if(((a7==1)&&(((((a28==1)&&((a14==8)&&(!(a11==1)&&((((a25==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==1)))&&!(a24==1))&&!(a20==1)))))&&(a19==3))&&(a22==1))&&!(a0==1)))){ + a29 = 5; + a20 = 1; + a0 = 1; + a19 = 1; + a24 = 1; + a11 = 1; + return -1; + } else if(((a20==1)&&(!(a7==1)&&((((a14==8)&&((((((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))&&(input==1))&&!(a25==1))&&!(a11==1))&&!(a24==1))&&(a22==1)))&&(a28==1))&&(a0==1))))){ + a11 = 1; + a7 = 1; + a24 = 1; + a19 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if((!(a20==1)&&(!(a0==1)&&(((a24==1)&&((a22==1)&&(((a14==9)&&((a19==3)&&((a11==1)&&((a28==1)&&((input==3)&&(((a29==7)||(a29==8))||(a29==9)))))))&&!(a7==1))))&&!(a25==1))))){ + a20 = 1; + a14 = 8; + a7 = 1; + a19 = 5; + a29 = 5; + return 21; + } else if((!(a0==1)&&((!(a20==1)&&((a14==8)&&((((((((input==6)&&((a29==8)||((a29==6)||(a29==7))))&&!(a25==1))&&!(a11==1))&&(a19==1))&&!(a24==1))&&!(a7==1))&&(a28==1))))&&(a22==1)))){ + a7 = 1; + a29 = 7; + a11 = 1; + a24 = 1; + a0 = 1; + return 24; + } else if(((a29==7)&&(!(a20==1)&&((a19==2)&&(!(a7==1)&&((a22==1)&&((((a25==1)&&(((a28==1)&&((input==2)&&!(a11==1)))&&!(a24==1)))&&(a14==9))&&!(a0==1)))))))){ + a24 = 1; + a20 = 1; + a7 = 1; + a19 = 4; + a0 = 1; + a25 = 0; + a29 = 5; + return 21; + } else if((!(a20==1)&&((a11==1)&&((a19==4)&&((a28==1)&&(((((a24==1)&&((((input==6)&&(a0==1))&&!(a25==1))&&(a14==9)))&&(a22==1))&&(a29==5))&&!(a7==1))))))){ + a20 = 1; + a19 = 1; + a0 = 0; + a29 = 8; + a24 = 0; + a14 = 8; + return -1; + } else if((!(a25==1)&&(((a19==4)&&(((((!(a11==1)&&(!(a0==1)&&(((a22==1)&&(input==3))&&(a7==1))))&&(a24==1))&&(a29==8))&&(a28==1))&&(a20==1)))&&(a14==9)))){ + a19 = 2; + a11 = 1; + a29 = 7; + a24 = 0; + a14 = 8; + return -1; + } else if(((a0==1)&&((a14==9)&&((a22==1)&&(!(a24==1)&&((a20==1)&&(!(a7==1)&&((a11==1)&&(((input==5)&&(((!(a25==1)&&(a29==5))&&(a19==1))||((((a25==1)&&(a29==8))&&(a19==5))||(((a29==9)&&(a25==1))&&(a19==5)))))&&(a28==1)))))))))){ + a25 = 1; + a24 = 1; + a7 = 1; + a19 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if(((a11==1)&&((((a22==1)&&((((!(a0==1)&&((((((a29==6)||(a29==7))||(a29==8))&&(input==5))&&(a19==1))&&(a14==8)))&&(a20==1))&&!(a7==1))&&(a28==1)))&&(a25==1))&&(a24==1)))){ + a11 = 0; + a0 = 1; + a25 = 0; + a7 = 1; + a19 = 4; + a20 = 0; + a24 = 0; + a29 = 5; + return -1; + } else if(((((a25==1)&&(((a22==1)&&((((a0==1)&&((a28==1)&&((input==5)&&((((a29==8)&&(a19==2))||((a19==2)&&(a29==9)))||((a29==5)&&(a19==3))))))&&!(a20==1))&&(a7==1)))&&(a11==1)))&&(a14==9))&&!(a24==1))){ + a14 = 8; + a29 = 9; + a24 = 1; + a25 = 0; + a0 = 0; + a19 = 1; + return 23; + } else if(((a28==1)&&((((!(a25==1)&&(!(a7==1)&&((a0==1)&&(((!(a20==1)&&((input==3)&&((a29==5)||(a29==6))))&&(a14==8))&&(a22==1)))))&&(a11==1))&&(a24==1))&&(a19==4)))){ + a20 = 1; + a29 = 9; + a24 = 0; + a25 = 1; + a19 = 1; + a11 = 0; + return 23; + } else if(((((a28==1)&&((a14==9)&&(((a19==3)&&(((a11==1)&&((a20==1)&&(((input==4)&&(((a29==6)||(a29==7))||(a29==8)))&&!(a7==1))))&&(a22==1)))&&(a25==1))))&&(a0==1))&&!(a24==1))){ + a29 = 7; + a24 = 1; + return -1; + } else if(((a22==1)&&((((a11==1)&&((((((((input==2)&&((a29==9)||((a29==7)||(a29==8))))&&(a28==1))&&(a24==1))&&(a14==8))&&!(a20==1))&&(a7==1))&&!(a0==1)))&&(a25==1))&&(a19==1)))){ + a29 = 8; + return -1; + } else if((!(a24==1)&&((((!(a11==1)&&((a19==5)&&((a29==8)&&(((((a20==1)&&(input==5))&&(a7==1))&&(a22==1))&&(a0==1)))))&&(a25==1))&&(a14==9))&&(a28==1)))){ + a19 = 4; + a24 = 1; + a29 = 5; + return -1; + } else if(((a0==1)&&((a22==1)&&((((!(a24==1)&&((a7==1)&&(((a25==1)&&((a28==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==4))))&&(a19==4))))&&(a11==1))&&(a14==9))&&(a20==1))))){ + a29 = 5; + a7 = 0; + a11 = 0; + a0 = 0; + a25 = 0; + a24 = 1; + a20 = 0; + a14 = 8; + return -1; + } else if(((a19==1)&&(!(a20==1)&&((a7==1)&&((a11==1)&&(((((!(a25==1)&&(((input==1)&&((a29==6)||(a29==7)))&&(a28==1)))&&(a24==1))&&(a0==1))&&(a22==1))&&(a14==9))))))){ + a29 = 7; + a19 = 2; + a24 = 0; + a11 = 0; + a7 = 0; + a0 = 0; + return 21; + } else if(((a22==1)&&((a29==5)&&((((a14==8)&&(!(a11==1)&&((!(a7==1)&&(((a24==1)&&((a19==2)&&(input==2)))&&!(a20==1)))&&(a25==1))))&&!(a0==1))&&(a28==1))))){ + a19 = 4; + a14 = 9; + a11 = 1; + a24 = 0; + a29 = 6; + return 21; + } else if(((a28==1)&&((a0==1)&&((a20==1)&&((a14==8)&&((!(a25==1)&&((a22==1)&&(((((input==4)&&((a29==7)||(a29==8)))&&!(a11==1))&&(a19==4))&&!(a7==1))))&&(a24==1))))))){ + a20 = 0; + a7 = 1; + a24 = 0; + a0 = 0; + a29 = 6; + return 21; + } else if(((a19==3)&&(!(a0==1)&&(((((a28==1)&&((a11==1)&&((a7==1)&&(((a24==1)&&((input==5)&&(((a29==5)||(a29==6))||(a29==7))))&&(a14==9)))))&&!(a25==1))&&(a22==1))&&!(a20==1))))){ + a20 = 1; + a29 = 5; + a19 = 1; + a0 = 1; + a14 = 8; + a25 = 1; + return -1; + } else if((((a14==9)&&(!(a20==1)&&(!(a7==1)&&(!(a0==1)&&(!(a24==1)&&((a28==1)&&((a22==1)&&(!(a25==1)&&((input==4)&&((((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))||((a19==2)&&(a29==6))))))))))))&&!(a11==1))){ + a14 = 8; + a19 = 5; + a20 = 1; + a24 = 1; + a11 = 1; + a29 = 7; + return 23; + } else if((!(a20==1)&&((a19==2)&&((a7==1)&&((a28==1)&&((!(a25==1)&&(!(a0==1)&&((a14==8)&&(!(a24==1)&&((((a29==5)||(a29==6))&&(input==1))&&!(a11==1))))))&&(a22==1))))))){ + a29 = 6; + a11 = 1; + a7 = 0; + return -1; + } else if((!(a7==1)&&((a11==1)&&(((a19==3)&&(((((a22==1)&&((a14==9)&&(((input==5)&&(((a29==6)||(a29==7))||(a29==8)))&&(a25==1))))&&!(a24==1))&&!(a20==1))&&(a0==1)))&&(a28==1))))){ + a29 = 6; + a7 = 1; + a24 = 1; + a14 = 8; + a0 = 0; + a20 = 1; + a11 = 0; + return 24; + } else if(((a19==4)&&((a28==1)&&(((((a20==1)&&((a0==1)&&((!(a11==1)&&(((input==4)&&((a29==5)||(a29==6)))&&(a14==9)))&&(a22==1))))&&(a25==1))&&!(a24==1))&&(a7==1))))){ + a29 = 9; + a19 = 1; + a24 = 1; + a0 = 0; + a11 = 1; + a14 = 8; + return -1; + } else if((((((((((!(a24==1)&&(((a11==1)&&(input==6))&&!(a25==1)))&&(a19==1))&&!(a0==1))&&!(a20==1))&&(a14==9))&&(a28==1))&&(a7==1))&&(a29==7))&&(a22==1))){ + a19 = 2; + a25 = 1; + a0 = 1; + return 24; + } else if(((a14==9)&&(((!(a20==1)&&(((a22==1)&&(((a7==1)&&(!(a24==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==5))&&(a11==1))))&&(a0==1)))&&(a28==1)))&&(a25==1))&&(a19==3)))){ + a11 = 0; + a25 = 0; + a14 = 8; + a29 = 6; + return 21; + } else if(((a14==9)&&((a29==8)&&(((a28==1)&&((a25==1)&&((!(a20==1)&&((a7==1)&&((((input==3)&&(a22==1))&&(a11==1))&&!(a24==1))))&&(a19==5))))&&(a0==1))))){ + a0 = 0; + a19 = 1; + a29 = 7; + a25 = 0; + a24 = 1; + a20 = 1; + a14 = 8; + return -1; + } else if((((((a11==1)&&((a25==1)&&(((!(a24==1)&&(((input==1)&&(((a19==2)&&(a29==6))||(((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))))&&(a22==1)))&&(a14==9))&&(a28==1))))&&!(a0==1))&&!(a7==1))&&!(a20==1))){ + a19 = 3; + a29 = 9; + a14 = 8; + a25 = 0; + a24 = 1; + return 24; + } else if(((a14==9)&&((((!(a20==1)&&(!(a24==1)&&(!(a11==1)&&((((a0==1)&&(((a29==5)||(a29==6))&&(input==6)))&&(a25==1))&&!(a7==1)))))&&(a19==2))&&(a28==1))&&(a22==1)))){ + a0 = 0; + a20 = 1; + a19 = 5; + a14 = 8; + a29 = 6; + a24 = 1; + return -1; + } else if(((!(a20==1)&&((a28==1)&&((!(a25==1)&&(!(a11==1)&&((((((((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))||((a29==6)&&(a19==3)))&&(input==1))&&(a7==1))&&(a24==1))&&(a14==9))))&&!(a0==1))))&&(a22==1))){ + a29 = 5; + a0 = 1; + a14 = 8; + a25 = 1; + a11 = 1; + a20 = 1; + a19 = 1; + return -1; + } else if((((a25==1)&&(((((((((input==6)&&(((a29==6)&&(a19==2))||(((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))))&&(a22==1))&&(a11==1))&&!(a20==1))&&!(a7==1))&&(a28==1))&&!(a24==1))&&!(a0==1)))&&(a14==9))){ + a0 = 1; + a29 = 5; + a25 = 0; + a19 = 1; + return 21; + } else if(((((a0==1)&&((!(a25==1)&&((a20==1)&&(((((a19==4)&&((input==4)&&((a29==6)||(a29==7))))&&(a28==1))&&(a24==1))&&!(a7==1))))&&(a11==1)))&&(a14==10))&&(a22==1))){ + a14 = 8; + a29 = 6; + a7 = 1; + a0 = 0; + a11 = 0; + return -1; + } else if(((a11==1)&&((a22==1)&&((!(a24==1)&&((((a25==1)&&(((a28==1)&&((a7==1)&&((input==1)&&((a29==6)||(a29==7)))))&&(a19==4)))&&(a0==1))&&(a14==8)))&&!(a20==1))))){ + a0 = 0; + a25 = 0; + a19 = 3; + a29 = 7; + return 23; + } else if((!(a11==1)&&(((a28==1)&&(((((((a24==1)&&((((a29==5)&&(a19==4))||(((a19==3)&&(a29==8))||((a29==9)&&(a19==3))))&&(input==3)))&&!(a0==1))&&(a22==1))&&(a20==1))&&(a25==1))&&!(a7==1)))&&(a14==9)))){ + a7 = 1; + a19 = 1; + a29 = 9; + a11 = 1; + a14 = 8; + return 21; + } else if((!(a25==1)&&((((((a24==1)&&((a22==1)&&(((a19==3)&&(((input==3)&&(((a29==6)||(a29==7))||(a29==8)))&&(a20==1)))&&(a14==9))))&&!(a0==1))&&(a7==1))&&(a28==1))&&!(a11==1)))){ + a25 = 1; + a11 = 1; + a29 = 7; + a0 = 1; + a19 = 5; + a24 = 0; + return -1; + } else if((((((a20==1)&&(((((a19==1)&&(((a25==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==5)))&&(a11==1)))&&(a7==1))&&(a14==8))&&(a28==1)))&&(a24==1))&&!(a0==1))&&(a22==1))){ + a19 = 4; + a0 = 1; + a29 = 6; + a7 = 0; + return -1; + } else if(((a0==1)&&(((a7==1)&&((((a19==1)&&((((((input==1)&&(a24==1))&&(a14==8))&&(a25==1))&&(a22==1))&&(a20==1)))&&!(a11==1))&&(a28==1)))&&(a29==9)))){ + a29 = 6; + a0 = 0; + a20 = 0; + a25 = 0; + a19 = 3; + return 23; + } else if(((a19==2)&&(!(a7==1)&&((!(a25==1)&&((a0==1)&&((a29==7)&&((a28==1)&&(!(a11==1)&&((a22==1)&&((a20==1)&&(!(a24==1)&&(input==5)))))))))&&(a14==8))))){ + a29 = 5; + a0 = 0; + a19 = 3; + a20 = 0; + a11 = 1; + a24 = 1; + return 24; + } else if((((a0==1)&&(!(a20==1)&&(((a28==1)&&((!(a7==1)&&((((a14==8)&&((input==3)&&((a29==7)||((a29==5)||(a29==6)))))&&(a19==2))&&!(a11==1)))&&(a24==1)))&&!(a25==1))))&&(a22==1))){ + a19 = 3; + a11 = 1; + a25 = 1; + a29 = 7; + a14 = 9; + return 21; + } else if(((a0==1)&&((((((!(a11==1)&&(((a20==1)&&(((input==2)&&((a29==7)||(a29==8)))&&(a14==8)))&&(a7==1)))&&(a25==1))&&(a19==4))&&(a28==1))&&(a22==1))&&!(a24==1)))){ + a0 = 0; + a25 = 0; + a29 = 8; + a24 = 1; + a11 = 1; + return 23; + } else if(((a19==3)&&((a24==1)&&((a25==1)&&(!(a7==1)&&((a29==5)&&((a28==1)&&((((((a14==9)&&(input==3))&&(a22==1))&&!(a11==1))&&!(a20==1))&&!(a0==1))))))))){ + a29 = 7; + a14 = 8; + a19 = 1; + a7 = 1; + return -1; + } else if(((a7==1)&&((!(a20==1)&&(((a22==1)&&(((a28==1)&&(!(a25==1)&&(((((a19==4)&&(a29==6))||(((a19==3)&&(a29==9))||((a29==5)&&(a19==4))))&&(input==6))&&(a24==1))))&&(a11==1)))&&(a14==8)))&&(a0==1)))){ + a19 = 1; + a25 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if(((a19==1)&&(!(a11==1)&&((a7==1)&&((a14==9)&&((a22==1)&&((!(a0==1)&&((((((a29==7)||(a29==8))&&(input==5))&&!(a25==1))&&(a24==1))&&(a28==1)))&&!(a20==1)))))))){ + a19 = 3; + a0 = 1; + a29 = 6; + a24 = 0; + a14 = 8; + return 21; + } else if(((a24==1)&&(((a7==1)&&((((((((((a29==7)||((a29==5)||(a29==6)))&&(input==5))&&(a22==1))&&(a25==1))&&(a28==1))&&(a19==2))&&(a20==1))&&(a14==10))&&(a11==1)))&&(a0==1)))){ + a24 = 0; + a14 = 8; + a19 = 4; + a11 = 0; + a0 = 0; + a29 = 8; + a20 = 0; + return 24; + } else if((!(a20==1)&&((!(a25==1)&&(((((a7==1)&&((a22==1)&&(((((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))&&(input==5))&&(a28==1))))&&!(a24==1))&&!(a11==1))&&(a14==8)))&&(a0==1)))){ + a20 = 1; + a29 = 5; + a11 = 1; + a24 = 1; + a25 = 1; + a19 = 1; + return -1; + } else if((((((((a14==8)&&((((a7==1)&&((a24==1)&&((input==4)&&(a28==1))))&&(a22==1))&&!(a25==1)))&&(a20==1))&&(a19==1))&&(a11==1))&&!(a0==1))&&(a29==7))){ + a25 = 1; + a19 = 4; + return 24; + } else if(((a11==1)&&(!(a0==1)&&(((((a22==1)&&(((a19==1)&&(!(a7==1)&&(((input==1)&&((a29==5)||(a29==6)))&&(a24==1))))&&!(a20==1)))&&(a28==1))&&(a14==9))&&(a25==1))))){ + a19 = 3; + a29 = 6; + a14 = 8; + return 23; + } else if(((a29==9)&&((a28==1)&&((a20==1)&&((a14==8)&&(!(a11==1)&&((!(a7==1)&&((a19==3)&&((a25==1)&&(!(a0==1)&&((input==5)&&!(a24==1))))))&&(a22==1)))))))){ + a29 = 8; + a19 = 2; + a24 = 1; + return 24; + } else if(((a25==1)&&((((a28==1)&&(!(a0==1)&&(((a7==1)&&((a22==1)&&((a19==3)&&((((a29==7)||(a29==8))&&(input==3))&&(a20==1)))))&&!(a24==1))))&&(a11==1))&&(a14==8)))){ + a25 = 0; + a14 = 9; + a0 = 1; + a29 = 9; + a24 = 1; + a19 = 1; + a20 = 0; + a11 = 0; + return 23; + } else if(((a0==1)&&(((!(a11==1)&&((a22==1)&&((a24==1)&&((((((a14==9)&&(input==1))&&!(a7==1))&&(a20==1))&&(a29==9))&&!(a25==1)))))&&(a19==5))&&(a28==1)))){ + a14 = 8; + a0 = 0; + a29 = 5; + a20 = 0; + a7 = 1; + a19 = 2; + a11 = 1; + return 24; + } else if(((a0==1)&&((a28==1)&&(((a22==1)&&((a14==8)&&((a20==1)&&(!(a25==1)&&(((!(a24==1)&&(((a29==5)||(a29==6))&&(input==3)))&&(a19==5))&&(a7==1))))))&&!(a11==1))))){ + a19 = 1; + a20 = 0; + a25 = 1; + a29 = 6; + a11 = 1; + a14 = 9; + return 23; + } else if(((a20==1)&&(((a14==9)&&(((a24==1)&&(((a7==1)&&((a19==1)&&((a29==8)&&((!(a11==1)&&(input==2))&&(a28==1)))))&&!(a0==1)))&&(a22==1)))&&(a25==1)))){ + a11 = 1; + a14 = 8; + a29 = 5; + a0 = 1; + return -1; + } else if((!(a20==1)&&((((a7==1)&&((a22==1)&&(!(a24==1)&&(((a14==8)&&(((a19==5)&&((input==3)&&((a29==6)||(a29==7))))&&(a11==1)))&&(a0==1)))))&&(a28==1))&&(a25==1)))){ + a25 = 0; + a29 = 7; + a0 = 0; + a24 = 1; + a7 = 0; + a20 = 1; + return 24; + } else if(((!(a0==1)&&((a29==7)&&((a22==1)&&(((((a24==1)&&((a7==1)&&(((a19==2)&&(input==1))&&(a14==9))))&&!(a20==1))&&!(a25==1))&&!(a11==1)))))&&(a28==1))){ + a20 = 1; + a29 = 5; + a0 = 1; + a25 = 1; + a19 = 1; + a11 = 1; + a14 = 8; + return -1; + } else if(((a11==1)&&((a14==10)&&((((a0==1)&&((((a28==1)&&((a25==1)&&((((a29==6)||(a29==7))&&(input==3))&&(a7==1))))&&(a19==1))&&(a22==1)))&&!(a24==1))&&(a20==1))))){ + a29 = 8; + a14 = 8; + a0 = 0; + a24 = 1; + return 24; + } else if((!(a11==1)&&(!(a20==1)&&(((((a7==1)&&((((a22==1)&&((a0==1)&&((input==6)&&(((a29==5)||(a29==6))||(a29==7)))))&&(a25==1))&&(a28==1)))&&(a19==1))&&(a14==9))&&!(a24==1))))){ + a29 = 6; + a11 = 1; + a19 = 5; + a25 = 0; + a24 = 1; + return 23; + } else if(((((!(a0==1)&&((((a14==9)&&((((a19==1)&&((input==1)&&((a29==5)||(a29==6))))&&!(a20==1))&&(a7==1)))&&(a22==1))&&(a11==1)))&&(a24==1))&&(a28==1))&&!(a25==1))){ + a29 = 6; + a25 = 1; + a0 = 1; + a19 = 3; + a7 = 0; + return -1; + } else if(((a28==1)&&(((a14==8)&&((a11==1)&&(((a20==1)&&((((((((a19==3)&&(a29==8))||((a29==9)&&(a19==3)))||((a29==5)&&(a19==4)))&&(input==1))&&(a24==1))&&(a25==1))&&!(a7==1)))&&(a22==1))))&&(a0==1)))){ + a29 = 9; + a19 = 2; + a25 = 0; + return 21; + } else if(((((!(a11==1)&&((a22==1)&&((((a28==1)&&((a0==1)&&(((input==6)&&(a14==9))&&(a20==1))))&&!(a7==1))&&(a29==7))))&&!(a24==1))&&!(a25==1))&&(a19==2))){ + a29 = 5; + a14 = 8; + a7 = 1; + a24 = 1; + a25 = 1; + a11 = 1; + a19 = 1; + return -1; + } else if((!(a11==1)&&((((a14==8)&&(((((!(a24==1)&&((((a29==6)||(a29==7))&&(input==3))&&(a25==1)))&&!(a20==1))&&(a22==1))&&!(a0==1))&&!(a7==1)))&&(a28==1))&&(a19==2)))){ + a29 = 8; + a0 = 1; + a25 = 0; + a19 = 1; + return 21; + } else if(((a14==8)&&(((a20==1)&&(((a25==1)&&((a24==1)&&(((a19==5)&&((a22==1)&&(((input==5)&&((a29==8)||(a29==9)))&&!(a7==1))))&&!(a11==1))))&&!(a0==1)))&&(a28==1)))){ + a7 = 1; + a11 = 1; + a25 = 0; + a19 = 3; + a29 = 9; + return 23; + } else if(((!(a7==1)&&((((a22==1)&&((a14==9)&&((((((input==1)&&!(a20==1))&&!(a0==1))&&(a11==1))&&(a28==1))&&(a19==4))))&&(a25==1))&&(a29==6)))&&!(a24==1))){ + a7 = 1; + a14 = 8; + a24 = 1; + a20 = 1; + a29 = 9; + a25 = 0; + a19 = 5; + return 23; + } else if(((((((a14==9)&&((a7==1)&&((a28==1)&&((a0==1)&&(((((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))&&(input==3))&&!(a25==1))))))&&!(a11==1))&&(a22==1))&&(a24==1))&&(a20==1))){ + a25 = 1; + a19 = 1; + a11 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if(((a20==1)&&((a0==1)&&(((((a29==5)&&((!(a25==1)&&(((a22==1)&&((input==6)&&(a28==1)))&&!(a24==1)))&&(a19==5)))&&!(a11==1))&&!(a7==1))&&(a14==8))))){ + a20 = 0; + a24 = 1; + a11 = 1; + a0 = 0; + a25 = 1; + return 21; + } else if((((((a14==8)&&((a28==1)&&((a22==1)&&((!(a20==1)&&(((((a29==7)||(a29==8))&&(input==3))&&!(a11==1))&&(a25==1)))&&(a19==1)))))&&(a0==1))&&!(a24==1))&&(a7==1))){ + a0 = 0; + a24 = 1; + a11 = 1; + a29 = 6; + a20 = 1; + a19 = 5; + a7 = 0; + a25 = 0; + return 23; + } else if((((a24==1)&&((a28==1)&&((((a25==1)&&((a11==1)&&((((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))&&(input==2))&&(a14==9))&&(a22==1))))&&(a7==1))&&(a20==1))))&&(a0==1))){ + a14 = 8; + a0 = 0; + a29 = 8; + a19 = 2; + a24 = 0; + return -1; + } else if(((((a14==9)&&(!(a0==1)&&(((((((a19==4)&&((input==3)&&(((a29==7)||(a29==8))||(a29==9))))&&!(a7==1))&&(a28==1))&&(a22==1))&&(a11==1))&&(a24==1))))&&(a20==1))&&(a25==1))){ + a7 = 1; + a14 = 8; + a19 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if((((a22==1)&&((a20==1)&&((((((((a28==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==1)))&&(a24==1))&&(a25==1))&&!(a0==1))&&(a14==9))&&!(a7==1))&&(a19==3))))&&(a11==1))){ + a29 = 5; + a19 = 1; + a7 = 1; + a0 = 1; + a14 = 8; + return -1; + } else if(((((a11==1)&&(((a19==1)&&((a0==1)&&((a28==1)&&(((a24==1)&&((a25==1)&&((input==6)&&(a7==1))))&&!(a20==1)))))&&(a22==1)))&&(a14==9))&&(a29==6))){ + a14 = 8; + a20 = 1; + a29 = 5; + return -1; + } else if((!(a7==1)&&((((a19==4)&&((a28==1)&&(((a14==8)&&(!(a24==1)&&(((a22==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==5)))&&!(a25==1))))&&!(a11==1))))&&!(a20==1))&&!(a0==1)))){ + a19 = 5; + a29 = 6; + a11 = 1; + return -1; + } else if(((a22==1)&&((a29==6)&&(((((a28==1)&&((!(a24==1)&&((((a11==1)&&(input==4))&&!(a0==1))&&!(a25==1)))&&!(a20==1)))&&(a19==5))&&(a7==1))&&(a14==8))))){ + a0 = 1; + a11 = 0; + a7 = 0; + a29 = 9; + a19 = 2; + return 23; + } else if(((a11==1)&&((a20==1)&&((a25==1)&&(!(a0==1)&&((((a7==1)&&((a14==8)&&(!(a24==1)&&((a22==1)&&(((a29==7)||(a29==8))&&(input==5))))))&&(a28==1))&&(a19==1))))))){ + a7 = 0; + a14 = 9; + a19 = 4; + a11 = 0; + a20 = 0; + a0 = 1; + a25 = 0; + a29 = 6; + return 24; + } else if((!(a20==1)&&((a11==1)&&(((a14==8)&&(((a0==1)&&(((a22==1)&&((a24==1)&&(((a7==1)&&(input==4))&&(a29==8))))&&(a28==1)))&&!(a25==1)))&&(a19==3))))){ + a29 = 9; + a20 = 1; + a11 = 0; + a19 = 1; + a25 = 1; + return 23; + } else if(((a14==8)&&(((a28==1)&&(((!(a7==1)&&(((a19==3)&&(!(a25==1)&&((((a29==6)||(a29==7))&&(input==3))&&(a20==1))))&&(a0==1)))&&!(a24==1))&&!(a11==1)))&&(a22==1)))){ + a20 = 0; + a29 = 9; + a19 = 5; + return 21; + } else if(((!(a24==1)&&((a22==1)&&((a29==8)&&((!(a20==1)&&(((a7==1)&&(!(a11==1)&&((a14==8)&&((input==6)&&!(a0==1)))))&&(a19==1)))&&(a28==1)))))&&(a25==1))){ + a14 = 9; + a19 = 2; + a29 = 6; + a24 = 1; + a25 = 0; + return 21; + } else if(((a22==1)&&((a29==9)&&((((!(a0==1)&&((a14==9)&&((((a11==1)&&((a25==1)&&(input==4)))&&(a19==5))&&(a24==1))))&&!(a20==1))&&(a7==1))&&(a28==1))))){ + a11 = 0; + a19 = 2; + a0 = 1; + a20 = 1; + a25 = 0; + a29 = 8; + return -1; + } else if(((a11==1)&&(((a14==9)&&(((a28==1)&&(((a0==1)&&((((a24==1)&&(((a29==8)||(a29==9))&&(input==6)))&&(a25==1))&&(a22==1)))&&!(a20==1)))&&(a7==1)))&&(a19==2)))){ + a20 = 1; + a29 = 5; + a14 = 8; + a19 = 1; + return -1; + } else if(((a22==1)&&(((a20==1)&&(((a25==1)&&((((a14==8)&&((a28==1)&&((a19==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==1)))))&&(a11==1))&&(a7==1)))&&(a24==1)))&&!(a0==1)))){ + a20 = 0; + a29 = 8; + a11 = 0; + a19 = 3; + a0 = 1; + a25 = 0; + a24 = 0; + return -1; + } else if(((a0==1)&&((!(a24==1)&&(((((a14==10)&&(((a20==1)&&((((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))&&(input==6)))&&(a25==1)))&&(a11==1))&&(a22==1))&&(a7==1)))&&(a28==1)))){ + a24 = 1; + a11 = 0; + a29 = 5; + a14 = 9; + a19 = 5; + return 24; + } else if((((a19==2)&&((a24==1)&&((a28==1)&&((a11==1)&&(((!(a25==1)&&(!(a20==1)&&(!(a0==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==6)))))&&(a14==8))&&(a22==1))))))&&(a7==1))){ + a29 = 5; + a25 = 1; + return 23; + } else if(((a29==9)&&((((!(a11==1)&&(((a28==1)&&(!(a25==1)&&((!(a0==1)&&((input==5)&&(a19==1)))&&!(a20==1))))&&(a7==1)))&&(a14==8))&&(a24==1))&&(a22==1)))){ + a11 = 1; + a7 = 0; + a29 = 7; + a19 = 2; + return 24; + } else if(((a22==1)&&((((a19==5)&&(!(a0==1)&&(((a25==1)&&(((((((a29==7)||(a29==8))||(a29==9))&&(input==1))&&(a28==1))&&(a14==8))&&!(a11==1)))&&(a7==1))))&&!(a24==1))&&(a20==1)))){ + a14 = 9; + a29 = 8; + a25 = 0; + a19 = 2; + a24 = 1; + return 23; + } else if((!(a25==1)&&(((a7==1)&&(!(a20==1)&&((((a28==1)&&((a19==3)&&(((((a29==7)||(a29==8))&&(input==1))&&(a14==10))&&(a0==1))))&&(a24==1))&&(a11==1))))&&(a22==1)))){ + a25 = 1; + a0 = 0; + a14 = 9; + a29 = 7; + return -1; + } else if((((((a14==9)&&(((((a29==5)&&(((a19==3)&&(!(a25==1)&&(input==2)))&&(a11==1)))&&(a28==1))&&(a24==1))&&(a20==1)))&&(a22==1))&&!(a7==1))&&!(a0==1))){ + a29 = 8; + a19 = 5; + a7 = 1; + a24 = 0; + a14 = 8; + a20 = 0; + return 24; + } else if((!(a25==1)&&(!(a7==1)&&(((a11==1)&&((a24==1)&&((!(a20==1)&&((a14==9)&&(((a28==1)&&((input==3)&&((a29==7)||(a29==8))))&&(a22==1))))&&(a0==1))))&&(a19==2))))){ + a24 = 0; + a19 = 5; + a11 = 0; + a29 = 5; + a25 = 1; + return 24; + } else if((((((((a29==5)&&((a20==1)&&((((a14==9)&&((input==5)&&!(a24==1)))&&!(a7==1))&&(a22==1))))&&(a11==1))&&(a28==1))&&(a19==2))&&(a25==1))&&(a0==1))){ + a29 = 9; + a11 = 0; + a19 = 3; + a20 = 0; + a14 = 8; + return 23; + } else if(((a20==1)&&((((a19==5)&&((((!(a25==1)&&(((((a29==7)||((a29==5)||(a29==6)))&&(input==6))&&!(a11==1))&&(a22==1)))&&(a28==1))&&(a0==1))&&(a24==1)))&&!(a7==1))&&(a14==9)))){ + a24 = 0; + a29 = 6; + a20 = 0; + a19 = 2; + a11 = 1; + return 24; + } else if((((a28==1)&&((((a7==1)&&((!(a0==1)&&((!(a25==1)&&((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))&&(input==3)))&&!(a20==1)))&&(a14==8)))&&(a11==1))&&(a24==1)))&&(a22==1))){ + a24 = 0; + a29 = 5; + a25 = 1; + a19 = 2; + a0 = 1; + a7 = 0; + a11 = 0; + return -1; + } else if(((a7==1)&&((((!(a20==1)&&((((a25==1)&&((((((a29==5)||(a29==6))||(a29==7))&&(input==3))&&(a19==4))&&!(a0==1)))&&(a24==1))&&(a28==1)))&&(a14==9))&&!(a11==1))&&(a22==1)))){ + a11 = 1; + a14 = 8; + a29 = 8; + a24 = 0; + a19 = 2; + return 21; + } else if(((a7==1)&&(!(a24==1)&&(((((a14==9)&&(((a19==5)&&(!(a11==1)&&(!(a0==1)&&(((a29==8)||(a29==9))&&(input==3)))))&&(a28==1)))&&(a22==1))&&(a20==1))&&(a25==1))))){ + a29 = 7; + a7 = 0; + a0 = 1; + a11 = 1; + a20 = 0; + a19 = 1; + return 23; + } else if(((a22==1)&&((!(a0==1)&&((((!(a25==1)&&((a14==9)&&((a28==1)&&(!(a7==1)&&((input==1)&&!(a24==1))))))&&(a19==5))&&!(a11==1))&&(a29==7)))&&(a20==1)))){ + a20 = 0; + a29 = 8; + a0 = 1; + a24 = 1; + return 24; + } else if(((a14==9)&&((a19==4)&&((((((a11==1)&&(!(a25==1)&&((a29==5)&&(!(a0==1)&&((a22==1)&&(input==1))))))&&!(a20==1))&&(a7==1))&&(a28==1))&&!(a24==1))))){ + a7 = 0; + a11 = 0; + a14 = 8; + a19 = 3; + a0 = 1; + a29 = 7; + return 21; + } else if(((!(a0==1)&&((a24==1)&&((a20==1)&&((a19==3)&&(((a22==1)&&(((a28==1)&&((((a29==8)||(a29==9))&&(input==3))&&(a14==9)))&&!(a25==1)))&&(a11==1))))))&&(a7==1))){ + a19 = 5; + a0 = 1; + a24 = 0; + a29 = 6; + a25 = 1; + return 23; + } else if((((a29==6)&&((((a20==1)&&((a11==1)&&(((a22==1)&&(((a19==2)&&((a28==1)&&(input==5)))&&(a14==9)))&&!(a24==1))))&&!(a0==1))&&!(a25==1)))&&(a7==1))){ + a24 = 1; + a19 = 4; + a14 = 8; + a29 = 5; + return 21; + } else if(((a28==1)&&((a19==4)&&((a11==1)&&((!(a20==1)&&((a7==1)&&((a25==1)&&((a0==1)&&((a22==1)&&(((input==4)&&!(a24==1))&&(a29==5)))))))&&(a14==9)))))){ + a24 = 1; + a0 = 0; + a20 = 1; + a14 = 8; + a29 = 9; + return 24; + } else if((!(a11==1)&&((((a14==9)&&(((input==1)&&(((a19==5)&&((!(a25==1)&&((!(a7==1)&&!(a20==1))&&(a24==1)))&&(a29==9)))||((((((a20==1)&&(a7==1))&&!(a24==1))&&(a25==1))&&(a29==5))&&(a19==1))))&&!(a0==1)))&&(a28==1))&&(a22==1)))){ + a25 = 1; + a7 = 1; + a29 = 6; + a20 = 1; + a24 = 1; + a19 = 1; + a14 = 8; + return -1; + } else if((((a19==1)&&(!(a24==1)&&((a28==1)&&(((((a7==1)&&((a25==1)&&(((input==3)&&((a29==7)||(a29==8)))&&(a20==1))))&&(a14==8))&&(a11==1))&&!(a0==1)))))&&(a22==1))){ + a29 = 5; + a11 = 0; + a19 = 4; + a7 = 0; + a25 = 0; + a0 = 1; + a14 = 9; + a20 = 0; + return 23; + } else if(((((((a20==1)&&((a25==1)&&((a7==1)&&(((((a14==9)&&(input==3))&&(a29==9))&&(a22==1))&&!(a11==1)))))&&(a28==1))&&(a0==1))&&(a19==1))&&(a24==1))){ + a14 = 8; + a25 = 0; + a19 = 3; + a24 = 0; + a20 = 0; + return 24; + } else if(((a29==7)&&(((a7==1)&&((((((a28==1)&&(((!(a25==1)&&(input==5))&&(a22==1))&&(a19==2)))&&!(a20==1))&&!(a11==1))&&(a14==8))&&(a24==1)))&&(a0==1)))){ + a19 = 3; + a14 = 9; + a20 = 1; + a11 = 1; + return 21; + } else if((((((a20==1)&&((a24==1)&&((a14==9)&&((a19==4)&&(!(a25==1)&&(((((a29==5)||(a29==6))&&(input==4))&&(a28==1))&&(a11==1)))))))&&(a22==1))&&!(a0==1))&&!(a7==1))){ + a29 = 7; + a0 = 1; + a25 = 1; + return -1; + } else if(((a28==1)&&((((!(a11==1)&&((a20==1)&&((((a22==1)&&(!(a24==1)&&((input==4)&&((a29==7)||(a29==8)))))&&(a7==1))&&!(a0==1))))&&(a25==1))&&(a14==9))&&(a19==2)))){ + a19 = 3; + a11 = 1; + a0 = 1; + a29 = 6; + a25 = 0; + return 23; + } else if((((((((!(a7==1)&&(((a14==8)&&((((a29==5)&&(a19==3))||(((a29==8)&&(a19==2))||((a29==9)&&(a19==2))))&&(input==6)))&&(a25==1)))&&!(a24==1))&&(a28==1))&&(a20==1))&&!(a0==1))&&(a22==1))&&!(a11==1))){ + a7 = 1; + a0 = 1; + a29 = 5; + a24 = 1; + a11 = 1; + a19 = 1; + return -1; + } else if(((((a24==1)&&(((a14==8)&&((a0==1)&&(!(a11==1)&&((a7==1)&&(((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))&&(input==5))&&(a22==1))))))&&(a28==1)))&&(a20==1))&&(a25==1))){ + a11 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((!(a11==1)&&((a29==7)&&(((a19==4)&&((!(a25==1)&&(((((a28==1)&&(input==6))&&(a14==9))&&!(a20==1))&&!(a7==1)))&&(a22==1)))&&!(a0==1))))&&!(a24==1))){ + a0 = 1; + a25 = 1; + a7 = 1; + a29 = 8; + a19 = 1; + return 24; + } else if((((a24==1)&&(!(a7==1)&&((a11==1)&&((a22==1)&&((((a0==1)&&((((((a19==4)&&(a29==8))||((a19==4)&&(a29==9)))||((a19==5)&&(a29==5)))&&(input==1))&&(a28==1)))&&(a14==8))&&(a25==1))))))&&!(a20==1))){ + a29 = 5; + a11 = 0; + a19 = 1; + return 24; + } else if((((!(a25==1)&&(((a28==1)&&(!(a11==1)&&((!(a24==1)&&(((input==4)&&(((a19==5)&&(a29==5))||(((a19==4)&&(a29==8))||((a19==4)&&(a29==9)))))&&!(a20==1)))&&(a22==1))))&&!(a7==1)))&&(a0==1))&&(a14==8))){ + a25 = 1; + a19 = 4; + a29 = 6; + return -1; + } else if(((a29==6)&&(!(a11==1)&&(((((((a22==1)&&((!(a7==1)&&((a14==9)&&(input==5)))&&(a20==1)))&&(a19==4))&&(a0==1))&&(a24==1))&&(a25==1))&&(a28==1))))){ + a11 = 1; + a0 = 0; + a14 = 8; + a19 = 2; + return 24; + } else if((((((((!(a0==1)&&(((a22==1)&&((((a29==6)&&(a19==2))||(((a19==1)&&(a29==9))||((a29==5)&&(a19==2))))&&(input==1)))&&(a14==8)))&&!(a24==1))&&!(a7==1))&&(a25==1))&&(a20==1))&&!(a11==1))&&(a28==1))){ + a29 = 7; + a19 = 4; + a24 = 1; + a14 = 9; + return 21; + } else if(((!(a24==1)&&(!(a11==1)&&((a0==1)&&(!(a7==1)&&((a28==1)&&(((a14==8)&&((a25==1)&&((input==3)&&(((a19==2)&&(a29==5))||(((a29==8)&&(a19==1))||((a19==1)&&(a29==9)))))))&&!(a20==1)))))))&&(a22==1))){ + a29 = 5; + a24 = 1; + a7 = 1; + a11 = 1; + a19 = 1; + a20 = 1; + return -1; + } else if(((a7==1)&&((a25==1)&&((a29==8)&&(((a28==1)&&((!(a11==1)&&((!(a24==1)&&((a22==1)&&((a19==3)&&(input==6))))&&(a0==1)))&&(a20==1)))&&(a14==9)))))){ + a29 = 5; + a19 = 1; + a14 = 8; + a11 = 1; + a24 = 1; + return -1; + } else if(((a28==1)&&((a19==4)&&((!(a25==1)&&(!(a24==1)&&((a29==7)&&((!(a20==1)&&(!(a7==1)&&(((input==5)&&(a14==8))&&(a22==1))))&&(a11==1)))))&&(a0==1))))){ + a19 = 1; + a11 = 0; + a7 = 1; + a25 = 1; + a29 = 9; + a0 = 0; + a24 = 1; + return 21; + } else if(((a11==1)&&(!(a7==1)&&((a25==1)&&(((a22==1)&&((!(a20==1)&&((((input==5)&&(((a29==9)&&(a19==3))||((a29==5)&&(a19==4))))&&(a14==10))&&(a0==1)))&&(a24==1)))&&(a28==1)))))){ + a14 = 8; + a29 = 8; + a19 = 1; + a20 = 1; + a7 = 1; + a0 = 0; + a25 = 0; + return 23; + } else if((((((!(a20==1)&&((((!(a25==1)&&(((a19==4)&&(input==3))&&(a22==1)))&&!(a24==1))&&(a28==1))&&!(a7==1)))&&(a29==7))&&(a14==8))&&(a11==1))&&(a0==1))){ + a0 = 0; + a7 = 1; + a25 = 1; + a20 = 1; + a24 = 1; + return 23; + } else if(((a22==1)&&((a20==1)&&((a28==1)&&((a14==8)&&(!(a7==1)&&((!(a24==1)&&(((input==2)&&((((a25==1)&&(a29==9))&&(a19==5))||((a19==1)&&((a29==5)&&!(a25==1)))))&&!(a11==1)))&&(a0==1)))))))){ + a20 = 0; + a11 = 1; + a19 = 3; + a29 = 5; + a25 = 1; + a14 = 9; + return 23; + } else if(((!(a20==1)&&(((!(a11==1)&&((a14==8)&&(((((((a29==5)||(a29==6))&&(input==3))&&(a19==2))&&!(a0==1))&&(a24==1))&&(a28==1))))&&(a7==1))&&(a25==1)))&&(a22==1))){ + a29 = 5; + a0 = 1; + a11 = 1; + a19 = 1; + a20 = 1; + return -1; + } else if(((a11==1)&&((a20==1)&&((((a25==1)&&((a28==1)&&((!(a0==1)&&((a19==5)&&((a14==8)&&((input==3)&&(((a29==6)||(a29==7))||(a29==8))))))&&(a24==1))))&&!(a7==1))&&(a22==1))))){ + a7 = 1; + a0 = 1; + a24 = 0; + a29 = 7; + a25 = 0; + a20 = 0; + a19 = 4; + a11 = 0; + return -1; + } else if((((a19==5)&&((a28==1)&&(!(a20==1)&&((a11==1)&&(((((((a24==1)&&(input==1))&&(a22==1))&&(a14==9))&&(a29==9))&&(a25==1))&&!(a0==1))))))&&!(a7==1))){ + a0 = 1; + a20 = 1; + a7 = 1; + a19 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if((!(a25==1)&&((a29==5)&&((!(a7==1)&&(!(a20==1)&&((a19==5)&&(((a14==9)&&((a0==1)&&((!(a24==1)&&(input==1))&&!(a11==1))))&&(a22==1)))))&&(a28==1))))){ + a14 = 8; + a7 = 1; + a24 = 1; + a20 = 1; + a0 = 0; + a29 = 7; + a19 = 1; + a11 = 1; + return 21; + } else if(((a24==1)&&(((a14==10)&&((((((((a28==1)&&((a22==1)&&(input==3)))&&!(a25==1))&&(a0==1))&&(a20==1))&&(a11==1))&&(a19==1))&&(a29==6)))&&!(a7==1)))){ + a7 = 1; + a20 = 0; + a11 = 0; + a0 = 0; + a25 = 1; + a14 = 9; + a19 = 2; + return -1; + } else if(((a20==1)&&((a25==1)&&(((((!(a11==1)&&((a28==1)&&((a19==3)&&((a14==9)&&((input==3)&&(a7==1))))))&&(a22==1))&&!(a24==1))&&(a0==1))&&(a29==5))))){ + a11 = 1; + a19 = 1; + a14 = 8; + a24 = 1; + return -1; + } else if((!(a7==1)&&((a14==10)&&(((a24==1)&&((a0==1)&&(((a19==1)&&(!(a25==1)&&((a11==1)&&((a22==1)&&((a28==1)&&(input==2))))))&&(a20==1))))&&(a29==9))))){ + a0 = 0; + a25 = 1; + a20 = 0; + a14 = 8; + a19 = 5; + return 24; + } else if(((a11==1)&&((!(a24==1)&&((((((a19==4)&&(((a22==1)&&((input==2)&&((a29==7)||(a29==8))))&&(a7==1)))&&!(a20==1))&&(a14==9))&&(a28==1))&&!(a0==1)))&&(a25==1)))){ + a24 = 1; + a7 = 0; + a29 = 6; + return -1; + } else if((!(a20==1)&&((((a25==1)&&((a24==1)&&(((a19==1)&&((a0==1)&&((a7==1)&&((((a29==7)||(a29==8))&&(input==5))&&(a14==8)))))&&(a28==1))))&&!(a11==1))&&(a22==1)))){ + a29 = 5; + a20 = 1; + a11 = 1; + return -1; + } else if(((((a19==1)&&((a22==1)&&((a28==1)&&((!(a0==1)&&((a20==1)&&((((input==5)&&((a29==7)||((a29==5)||(a29==6))))&&!(a24==1))&&(a14==9))))&&!(a25==1)))))&&(a11==1))&&(a7==1))){ + a19 = 2; + a0 = 1; + a29 = 9; + a24 = 1; + return -1; + } else if((!(a11==1)&&((((((((a14==9)&&(((((a19==4)&&(a29==6))||(((a29==9)&&(a19==3))||((a29==5)&&(a19==4))))&&(input==2))&&!(a20==1)))&&!(a0==1))&&(a24==1))&&(a28==1))&&(a22==1))&&(a7==1))&&!(a25==1)))){ + a19 = 1; + a29 = 9; + a11 = 1; + a14 = 8; + a20 = 1; + return -1; + } else if(((a22==1)&&(((((a28==1)&&((a0==1)&&(!(a24==1)&&((a20==1)&&((a19==5)&&((a7==1)&&(((a29==5)||(a29==6))&&(input==6))))))))&&(a14==8))&&!(a25==1))&&!(a11==1)))){ + a25 = 1; + a29 = 8; + a19 = 4; + a7 = 0; + a20 = 0; + return 24; + } else if(((a14==10)&&(((((a11==1)&&((a28==1)&&(!(a25==1)&&((a19==4)&&((a0==1)&&(((input==5)&&(((a29==6)||(a29==7))||(a29==8)))&&(a20==1)))))))&&(a24==1))&&(a22==1))&&(a7==1)))){ + a11 = 0; + a19 = 1; + a20 = 0; + a29 = 8; + a14 = 8; + a0 = 0; + return 21; + } else if((((((a20==1)&&(((a24==1)&&((a28==1)&&(!(a0==1)&&((((a14==8)&&(input==3))&&(a25==1))&&(a19==2)))))&&(a22==1)))&&(a7==1))&&(a11==1))&&(a29==7))){ + a0 = 1; + a20 = 0; + a29 = 9; + a24 = 0; + a7 = 0; + a19 = 3; + a11 = 0; + return -1; + } else if((((a22==1)&&((a20==1)&&((!(a7==1)&&(!(a11==1)&&((a29==7)&&(((!(a0==1)&&((input==5)&&(a14==8)))&&(a25==1))&&(a28==1)))))&&(a24==1))))&&(a19==5))){ + a14 = 9; + a29 = 9; + a11 = 1; + a24 = 0; + a25 = 0; + a19 = 2; + return 24; + } else if(((!(a7==1)&&((a28==1)&&((((a14==9)&&((a22==1)&&(((a0==1)&&((input==2)&&(((a29==6)&&(a19==5))||(((a19==4)&&(a29==9))||((a29==5)&&(a19==5))))))&&(a25==1))))&&!(a24==1))&&(a20==1))))&&!(a11==1))){ + a29 = 7; + a7 = 1; + a25 = 0; + a19 = 2; + a20 = 0; + return 21; + } else if(((((!(a24==1)&&((((a20==1)&&(((a14==9)&&(!(a11==1)&&((a25==1)&&(input==3))))&&(a29==9)))&&(a28==1))&&(a7==1)))&&!(a0==1))&&(a19==2))&&(a22==1))){ + a25 = 0; + a11 = 1; + a29 = 6; + a7 = 0; + a0 = 1; + return -1; + } else if(((a11==1)&&((a14==9)&&(!(a24==1)&&((a19==4)&&((((((!(a0==1)&&(((a29==6)||(a29==7))&&(input==2)))&&(a22==1))&&(a28==1))&&!(a25==1))&&(a7==1))&&!(a20==1))))))){ + a24 = 1; + a14 = 8; + a0 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if(((((a11==1)&&(((a22==1)&&(((a7==1)&&(((!(a20==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==6)))&&(a14==10))&&(a19==2)))&&(a28==1)))&&(a0==1)))&&(a24==1))&&(a25==1))){ + a29 = 5; + a11 = 0; + a14 = 9; + a7 = 0; + a25 = 0; + a19 = 3; + a24 = 0; + a20 = 1; + a0 = 0; + return -1; + } else if((((((a19==2)&&(((a0==1)&&(!(a7==1)&&(!(a25==1)&&((a14==8)&&((a28==1)&&((input==1)&&((a29==6)||(a29==7))))))))&&!(a20==1)))&&(a11==1))&&(a22==1))&&(a24==1))){ + a11 = 0; + a29 = 7; + a20 = 1; + a19 = 5; + a7 = 1; + a25 = 1; + a24 = 0; + return 21; + } else if(((((a25==1)&&((a19==2)&&(((((a14==9)&&((a22==1)&&(((a29==5)&&(input==5))&&(a11==1))))&&(a0==1))&&(a7==1))&&(a24==1))))&&(a20==1))&&(a28==1))){ + a14 = 8; + a19 = 1; + return -1; + } else if((!(a7==1)&&((((((!(a0==1)&&((((input==5)&&(((a19==3)&&(a29==6))||(((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))))&&!(a11==1))&&(a25==1)))&&(a20==1))&&(a28==1))&&(a22==1))&&(a24==1))&&(a14==8)))){ + a19 = 3; + a20 = 0; + a0 = 1; + a29 = 6; + a24 = 0; + return 21; + } else if(((a20==1)&&((a11==1)&&((a19==2)&&((a22==1)&&((!(a0==1)&&((a7==1)&&((a14==9)&&((a28==1)&&((a24==1)&&((input==3)&&((a29==7)||(a29==8))))))))&&!(a25==1))))))){ + a11 = 0; + a29 = 7; + a0 = 1; + a24 = 0; + a25 = 1; + a19 = 1; + return 21; + } else if((((a0==1)&&((a19==4)&&(!(a25==1)&&((((a29==6)&&((a14==9)&&(((!(a24==1)&&(input==4))&&(a11==1))&&(a7==1))))&&(a22==1))&&!(a20==1)))))&&(a28==1))){ + a20 = 1; + a19 = 1; + a14 = 8; + a24 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if(((a28==1)&&((a14==9)&&((a11==1)&&((!(a0==1)&&((input==1)&&(((a19==1)&&(((!(a24==1)&&((a20==1)&&(a7==1)))&&(a25==1))&&(a29==5)))||(((a19==5)&&((a29==8)&&(((a24==1)&&(!(a7==1)&&!(a20==1)))&&!(a25==1))))||(((a29==9)&&(((!(a7==1)&&!(a20==1))&&(a24==1))&&!(a25==1)))&&(a19==5))))))&&(a22==1)))))){ + a14 = 8; + a20 = 1; + a19 = 5; + a29 = 6; + a25 = 0; + a7 = 1; + a24 = 1; + return 21; + } else if(((a14==8)&&((!(a0==1)&&((a11==1)&&((!(a25==1)&&((a20==1)&&((a24==1)&&((a22==1)&&((input==3)&&((((a29==8)&&(a19==1))||((a29==9)&&(a19==1)))||((a19==2)&&(a29==5))))))))&&(a7==1))))&&(a28==1)))){ + a14 = 9; + a24 = 0; + a19 = 1; + a0 = 1; + a29 = 8; + a25 = 1; + a11 = 0; + return 21; + } else if((!(a24==1)&&((a22==1)&&((a25==1)&&((a7==1)&&(((a0==1)&&((a19==4)&&(!(a20==1)&&(((((a29==6)||(a29==7))&&(input==6))&&(a14==8))&&(a28==1)))))&&(a11==1))))))){ + a20 = 1; + a19 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if(((a14==9)&&(((a25==1)&&((a22==1)&&((a11==1)&&((a28==1)&&(((a7==1)&&((((((a29==8)&&(a19==1))||((a29==9)&&(a19==1)))||((a19==2)&&(a29==5)))&&(input==1))&&(a20==1)))&&(a24==1))))))&&!(a0==1)))){ + a20 = 0; + a0 = 1; + a19 = 5; + a29 = 8; + a11 = 0; + return -1; + } else if(((!(a24==1)&&((!(a7==1)&&(((!(a25==1)&&((a14==8)&&((((input==6)&&(((a29==6)||(a29==7))||(a29==8)))&&(a22==1))&&!(a11==1))))&&(a0==1))&&(a28==1)))&&(a20==1)))&&(a19==5))){ + a20 = 0; + a19 = 1; + a29 = 6; + return 24; + } return calculate_output35(input); + } + + int calculate_output35(int input) { + if(((((!(a24==1)&&(!(a25==1)&&((((a14==9)&&((((input==2)&&((a29==7)||(a29==8)))&&(a22==1))&&!(a0==1)))&&(a7==1))&&(a19==5))))&&(a20==1))&&(a28==1))&&!(a11==1))){ + a29 = 5; + a25 = 1; + a0 = 1; + a11 = 1; + a19 = 1; + a14 = 8; + a24 = 1; + return -1; + } else if(((((((a0==1)&&(((a22==1)&&((a20==1)&&(!(a25==1)&&((a19==3)&&((input==6)&&(a11==1))))))&&(a28==1)))&&(a29==7))&&(a24==1))&&(a14==10))&&(a7==1))){ + a25 = 1; + a14 = 9; + a29 = 8; + a7 = 0; + a24 = 0; + a19 = 2; + a0 = 0; + a20 = 0; + return -1; + } else if(((a7==1)&&(((!(a25==1)&&((a28==1)&&(((!(a0==1)&&(((a14==9)&&((input==6)&&((a29==7)||((a29==5)||(a29==6)))))&&(a19==1)))&&(a22==1))&&(a11==1))))&&(a20==1))&&!(a24==1)))){ + a14 = 8; + a7 = 0; + a19 = 2; + a25 = 1; + a29 = 7; + return 23; + } else if((!(a20==1)&&(((((((a24==1)&&((a19==5)&&(((a22==1)&&((a28==1)&&(input==2)))&&!(a25==1))))&&(a29==7))&&(a11==1))&&!(a0==1))&&!(a7==1))&&(a14==9)))){ + a19 = 1; + a0 = 1; + a25 = 1; + a7 = 1; + a20 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if((((a0==1)&&((((a7==1)&&((((a28==1)&&(((((a29==8)||(a29==9))&&(input==4))&&!(a20==1))&&!(a11==1)))&&!(a25==1))&&(a22==1)))&&(a24==1))&&(a19==5)))&&(a14==8))){ + a11 = 1; + a7 = 0; + a19 = 3; + a20 = 1; + a29 = 5; + a14 = 9; + return 24; + } else if((((a14==10)&&(((a7==1)&&(((a20==1)&&((a24==1)&&((a28==1)&&((((input==3)&&(a0==1))&&(a29==5))&&(a25==1)))))&&(a22==1)))&&(a19==4)))&&(a11==1))){ + a14 = 8; + a19 = 1; + return -1; + } else if((((a29==7)&&((a0==1)&&((a19==3)&&((a22==1)&&(((a7==1)&&((((a24==1)&&((input==5)&&(a14==10)))&&(a20==1))&&(a28==1)))&&!(a25==1))))))&&(a11==1))){ + a14 = 8; + a7 = 0; + a0 = 0; + a19 = 4; + a29 = 8; + return 23; + } else if(((a22==1)&&(((a28==1)&&(!(a0==1)&&(!(a25==1)&&(((a14==9)&&((a19==4)&&((((input==5)&&((a29==6)||(a29==7)))&&(a20==1))&&!(a11==1))))&&!(a7==1)))))&&!(a24==1)))){ + a14 = 8; + a19 = 1; + a11 = 1; + a24 = 1; + a29 = 5; + a7 = 1; + a0 = 1; + a25 = 1; + return -1; + } else if((((a25==1)&&((a22==1)&&(((((((a19==3)&&((a14==9)&&((input==2)&&((a29==7)||((a29==5)||(a29==6))))))&&!(a7==1))&&(a28==1))&&(a24==1))&&!(a11==1))&&(a20==1))))&&!(a0==1))){ + a7 = 1; + a14 = 8; + a29 = 5; + a19 = 1; + a11 = 1; + a0 = 1; + return -1; + } else if((!(a20==1)&&((((a0==1)&&(!(a11==1)&&((((a25==1)&&((((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))||((a19==4)&&(a29==6)))&&(input==4))&&(a22==1)))&&!(a7==1))&&!(a24==1))))&&(a28==1))&&(a14==8)))){ + a14 = 9; + a7 = 1; + a29 = 7; + a19 = 5; + a24 = 1; + a25 = 0; + return 24; + } else if((((a20==1)&&((a14==10)&&((a0==1)&&(!(a25==1)&&((((a19==2)&&((((input==1)&&((a29==6)||(a29==7)))&&!(a24==1))&&(a22==1)))&&(a11==1))&&(a7==1))))))&&(a28==1))){ + a29 = 8; + a7 = 0; + a25 = 1; + a24 = 1; + a14 = 9; + return 24; + } else if(((a11==1)&&(((((a22==1)&&((a14==8)&&((((((input==4)&&((a29==8)||((a29==6)||(a29==7))))&&(a20==1))&&(a19==2))&&(a7==1))&&!(a25==1))))&&(a28==1))&&(a24==1))&&!(a0==1)))){ + a25 = 1; + a24 = 0; + a11 = 0; + a14 = 9; + a29 = 6; + a0 = 1; + return 24; + } else if(((((a19==1)&&((a25==1)&&((a0==1)&&((a29==6)&&((((((input==2)&&(a11==1))&&(a7==1))&&(a28==1))&&!(a24==1))&&(a22==1))))))&&!(a20==1))&&(a14==9))){ + a7 = 0; + a11 = 0; + a24 = 1; + a14 = 8; + a19 = 5; + a25 = 0; + a0 = 0; + a29 = 9; + a20 = 1; + return -1; + } else if(((a14==8)&&(!(a24==1)&&((a11==1)&&((!(a20==1)&&(((a7==1)&&((((input==5)&&(((a29==5)&&(a19==4))||(((a19==3)&&(a29==8))||((a19==3)&&(a29==9)))))&&(a0==1))&&(a28==1)))&&(a22==1)))&&!(a25==1)))))){ + a0 = 0; + a29 = 5; + a25 = 1; + a19 = 5; + a24 = 1; + return 21; + } else if(((a22==1)&&(((a0==1)&&((a19==5)&&((a24==1)&&((a14==10)&&(((((a28==1)&&((input==1)&&(((a29==5)||(a29==6))||(a29==7))))&&(a11==1))&&!(a25==1))&&(a7==1))))))&&!(a20==1)))){ + a25 = 1; + a19 = 1; + a20 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if((((a14==8)&&((a11==1)&&(((a28==1)&&(((((((input==1)&&((a29==8)||(a29==9)))&&(a7==1))&&!(a25==1))&&!(a24==1))&&(a19==4))&&!(a0==1)))&&(a22==1))))&&(a20==1))){ + a24 = 1; + a14 = 9; + a29 = 9; + a19 = 1; + return 24; + } else if(((a25==1)&&(((((a0==1)&&(((!(a11==1)&&(((a7==1)&&((input==4)&&(((a29==7)||(a29==8))||(a29==9))))&&(a19==1)))&&(a20==1))&&(a14==8)))&&(a22==1))&&!(a24==1))&&(a28==1)))){ + a24 = 1; + a29 = 5; + a11 = 1; + return -1; + } else if(((a24==1)&&((a25==1)&&((((a19==2)&&(((a28==1)&&((a14==8)&&(((a11==1)&&((input==3)&&((a29==6)||(a29==7))))&&(a22==1))))&&!(a20==1)))&&!(a7==1))&&!(a0==1))))){ + a0 = 1; + a29 = 5; + a7 = 1; + a20 = 1; + a19 = 1; + return -1; + } else if(((a14==8)&&((a28==1)&&(((a25==1)&&((((((a20==1)&&((((a29==6)&&(a19==5))||(((a29==9)&&(a19==4))||((a19==5)&&(a29==5))))&&(input==1)))&&!(a0==1))&&!(a11==1))&&(a22==1))&&(a7==1)))&&!(a24==1))))){ + a11 = 1; + a29 = 5; + a0 = 1; + a24 = 1; + a19 = 1; + return -1; + } else if(((a14==9)&&(((a7==1)&&((!(a24==1)&&((a19==1)&&((a28==1)&&(((!(a0==1)&&((input==3)&&((a29==7)||(a29==8))))&&(a20==1))&&(a22==1)))))&&(a11==1)))&&(a25==1)))){ + a20 = 0; + a0 = 1; + a24 = 1; + a7 = 0; + a29 = 6; + return -1; + } else if(((a19==5)&&((((!(a25==1)&&(!(a20==1)&&(((a22==1)&&(((((a29==6)||(a29==7))&&(input==5))&&!(a7==1))&&(a14==8)))&&(a0==1))))&&(a28==1))&&(a11==1))&&!(a24==1)))){ + a29 = 5; + a19 = 4; + a11 = 0; + return 23; + } else if(((a28==1)&&(((((a11==1)&&(((a25==1)&&(!(a0==1)&&((((input==1)&&(a19==5))&&(a22==1))&&(a20==1))))&&(a14==9)))&&!(a24==1))&&(a29==9))&&(a7==1)))){ + a24 = 1; + a0 = 1; + a19 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if(((a11==1)&&((a29==7)&&(((a14==9)&&(((a28==1)&&((a24==1)&&((a0==1)&&((a20==1)&&(((a22==1)&&(input==4))&&(a19==3))))))&&(a7==1)))&&!(a25==1))))){ + a24 = 0; + a11 = 0; + a19 = 5; + a7 = 0; + a0 = 0; + return 23; + } else if(((a22==1)&&(!(a24==1)&&(((a14==9)&&((a28==1)&&((!(a11==1)&&((!(a25==1)&&((((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))&&(input==1)))&&(a20==1)))&&!(a7==1))))&&(a0==1))))){ + a19 = 3; + a14 = 8; + a0 = 0; + a29 = 9; + a24 = 1; + a7 = 1; + return 23; + } else if(((a20==1)&&((a14==8)&&(!(a25==1)&&(!(a24==1)&&((a7==1)&&((a28==1)&&(((a22==1)&&(((input==5)&&((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))||((a29==6)&&(a19==5))))&&(a0==1)))&&(a11==1))))))))){ + a29 = 7; + a7 = 0; + a24 = 1; + a0 = 0; + a19 = 1; + return 23; + } else if(((a19==4)&&((!(a7==1)&&((a25==1)&&(((((a14==9)&&((a0==1)&&(((input==4)&&(((a29==5)||(a29==6))||(a29==7)))&&(a28==1))))&&!(a20==1))&&(a11==1))&&!(a24==1))))&&(a22==1)))){ + a24 = 1; + a7 = 1; + a14 = 8; + a20 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((a19==4)&&((a28==1)&&((((a24==1)&&((((((a29==5)&&((a14==8)&&(input==1)))&&(a20==1))&&!(a0==1))&&(a25==1))&&(a11==1)))&&(a22==1))&&(a7==1))))){ + a19 = 3; + a29 = 7; + a7 = 0; + a25 = 0; + return 24; + } else if((!(a11==1)&&(((!(a7==1)&&((a24==1)&&((a0==1)&&((a19==1)&&((a22==1)&&((!(a25==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==5)))&&(a14==8)))))))&&!(a20==1))&&(a28==1)))){ + a11 = 1; + a7 = 1; + a0 = 0; + a29 = 6; + a19 = 3; + return 23; + } else if((!(a25==1)&&(((!(a24==1)&&(((a19==1)&&((((((input==5)&&((a29==6)||(a29==7)))&&(a20==1))&&(a0==1))&&(a14==8))&&!(a7==1)))&&!(a11==1)))&&(a22==1))&&(a28==1)))){ + a19 = 3; + a20 = 0; + a11 = 1; + a14 = 9; + a25 = 1; + a29 = 9; + return 21; + } else if((((((!(a11==1)&&((((a22==1)&&(((a14==9)&&(((a29==7)||(a29==8))&&(input==3)))&&(a28==1)))&&!(a25==1))&&(a19==4)))&&(a24==1))&&(a7==1))&&!(a0==1))&&!(a20==1))){ + a14 = 8; + a0 = 1; + a29 = 9; + a24 = 0; + a19 = 3; + a25 = 1; + a7 = 0; + return -1; + } else if((!(a25==1)&&(((((a19==5)&&((!(a11==1)&&(!(a7==1)&&(!(a24==1)&&((a14==9)&&((input==5)&&(a29==7))))))&&(a20==1)))&&!(a0==1))&&(a28==1))&&(a22==1)))){ + a25 = 1; + a11 = 1; + a29 = 5; + a19 = 3; + a24 = 1; + a14 = 8; + return 23; + } else if(((a22==1)&&((((a28==1)&&(((a7==1)&&(((a25==1)&&((a0==1)&&(!(a11==1)&&((input==4)&&((a29==7)||(a29==8))))))&&(a14==8)))&&!(a24==1)))&&(a19==4))&&(a20==1)))){ + a20 = 0; + a24 = 1; + a11 = 1; + a0 = 0; + a19 = 5; + a29 = 6; + return 21; + } else if(((a19==2)&&(((a14==9)&&((a28==1)&&(!(a7==1)&&((a25==1)&&(((a11==1)&&(((((a29==7)||((a29==5)||(a29==6)))&&(input==5))&&!(a20==1))&&!(a24==1)))&&(a22==1))))))&&(a0==1)))){ + a29 = 9; + a11 = 0; + a7 = 1; + a20 = 1; + a19 = 5; + a24 = 1; + return 24; + } else if((((a25==1)&&(!(a24==1)&&(!(a0==1)&&(!(a11==1)&&(((a28==1)&&(((a20==1)&&(((((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))||((a29==6)&&(a19==2)))&&(input==3)))&&(a22==1)))&&(a14==8))))))&&(a7==1))){ + a29 = 8; + a19 = 5; + a14 = 9; + a24 = 1; + return 21; + } else if(((((a14==8)&&((((a19==5)&&(((!(a24==1)&&((((a0==1)&&!(a11==1))&&!(a20==1))&&!(a7==1)))&&!(a25==1))&&(a29==9)))||(((((a24==1)&&(((a20==1)&&((a11==1)&&!(a0==1)))&&(a7==1)))&&(a25==1))&&(a29==5))&&(a19==1)))&&(input==5)))&&(a22==1))&&(a28==1))){ + a25 = 1; + a11 = 0; + a29 = 9; + a0 = 1; + a14 = 9; + a7 = 0; + a20 = 0; + a19 = 4; + a24 = 1; + return 24; + } else if((((!(a24==1)&&(((a25==1)&&(((!(a0==1)&&((a19==5)&&((a22==1)&&(((a29==6)||(a29==7))&&(input==5)))))&&!(a20==1))&&(a28==1)))&&!(a7==1)))&&!(a11==1))&&(a14==8))){ + a24 = 1; + a14 = 9; + a0 = 1; + a29 = 7; + a19 = 1; + a25 = 0; + return 21; + } else if(((((a14==8)&&((!(a20==1)&&((a28==1)&&((((a19==2)&&(((input==2)&&((a29==5)||(a29==6)))&&!(a24==1)))&&(a22==1))&&!(a7==1))))&&(a25==1)))&&!(a0==1))&&(a11==1))){ + a7 = 1; + a0 = 1; + a25 = 0; + a11 = 0; + a29 = 9; + return 21; + } else if((((!(a20==1)&&(((a22==1)&&((a24==1)&&((((a28==1)&&(((input==4)&&((a29==5)||(a29==6)))&&(a11==1)))&&(a19==1))&&(a14==8))))&&(a7==1)))&&(a0==1))&&(a25==1))){ + a29 = 5; + a20 = 1; + return -1; + } else if(((((a19==1)&&((a25==1)&&((a11==1)&&(((a20==1)&&(((a22==1)&&(((input==5)&&(a0==1))&&(a28==1)))&&!(a7==1)))&&(a24==1)))))&&(a14==9))&&(a29==8))){ + a20 = 0; + a19 = 4; + a29 = 5; + a11 = 0; + a7 = 1; + a0 = 0; + a24 = 0; + return 21; + } else if(((a14==8)&&(((a11==1)&&((a0==1)&&((a19==1)&&((((((a28==1)&&((input==3)&&(a29==8)))&&!(a7==1))&&!(a25==1))&&(a20==1))&&(a24==1)))))&&(a22==1)))){ + a19 = 4; + a20 = 0; + a29 = 7; + a7 = 1; + return 24; + } else if((!(a20==1)&&((a0==1)&&(((a24==1)&&((((a28==1)&&(((((a29==8)&&(input==5))&&(a19==3))&&(a7==1))&&(a11==1)))&&(a22==1))&&!(a25==1)))&&(a14==8))))){ + a20 = 1; + a19 = 1; + a25 = 1; + a11 = 0; + a29 = 6; + return 24; + } else if(((a20==1)&&(((((a19==3)&&(!(a11==1)&&(((!(a25==1)&&(((input==5)&&(a29==9))&&(a28==1)))&&!(a7==1))&&(a14==8))))&&(a24==1))&&!(a0==1))&&(a22==1)))){ + a24 = 0; + a25 = 1; + a29 = 5; + return 21; + } else if((((((((a14==8)&&(((a19==5)&&((!(a7==1)&&((input==3)&&(a24==1)))&&(a29==7)))&&(a22==1)))&&(a28==1))&&!(a0==1))&&!(a25==1))&&!(a11==1))&&!(a20==1))){ + a11 = 1; + a20 = 1; + return 23; + } else if((((a19==2)&&(!(a24==1)&&(!(a11==1)&&((a22==1)&&(((((a0==1)&&((a28==1)&&(((a29==8)||(a29==9))&&(input==1))))&&(a25==1))&&(a7==1))&&(a20==1))))))&&(a14==9))){ + a29 = 5; + a24 = 1; + a19 = 5; + a11 = 1; + return 24; + } else if((!(a11==1)&&((a22==1)&&((((a19==3)&&(((a28==1)&&(((a25==1)&&((a14==8)&&((input==6)&&((a29==9)||((a29==7)||(a29==8))))))&&!(a20==1)))&&(a24==1)))&&!(a0==1))&&!(a7==1))))){ + a11 = 1; + a19 = 1; + a29 = 5; + a14 = 9; + a24 = 0; + a25 = 0; + return 24; + } else if((!(a7==1)&&((a22==1)&&((((((((((((a29==6)||(a29==7))||(a29==8))&&(input==2))&&(a28==1))&&(a14==8))&&(a20==1))&&(a24==1))&&!(a0==1))&&(a19==3))&&(a11==1))&&!(a25==1))))){ + a29 = 5; + a19 = 2; + a25 = 1; + return -1; + } else if(((!(a7==1)&&(((((((((((a29==6)||(a29==7))&&(input==5))&&(a20==1))&&(a19==3))&&(a11==1))&&!(a25==1))&&!(a24==1))&&!(a0==1))&&(a28==1))&&(a14==8)))&&(a22==1))){ + a24 = 1; + a25 = 1; + a29 = 6; + a19 = 2; + return 23; + } else if((((((((((a20==1)&&((((((a29==7)||(a29==8))||(a29==9))&&(input==6))&&!(a25==1))&&!(a0==1)))&&(a11==1))&&(a14==8))&&(a19==5))&&(a24==1))&&(a28==1))&&(a22==1))&&!(a7==1))){ + a7 = 1; + a29 = 6; + a19 = 2; + a25 = 1; + return -1; + } else if(((a29==9)&&(((((!(a11==1)&&((!(a24==1)&&((((input==6)&&(a14==8))&&!(a7==1))&&(a20==1)))&&(a25==1)))&&(a28==1))&&(a22==1))&&(a0==1))&&(a19==4)))){ + a11 = 1; + a25 = 0; + a20 = 0; + a29 = 8; + a7 = 1; + a24 = 1; + a0 = 0; + a19 = 2; + return 24; + } else if(((a25==1)&&(((((a22==1)&&((a28==1)&&((a24==1)&&((a7==1)&&(((a20==1)&&((input==5)&&(a11==1)))&&(a0==1))))))&&(a29==8))&&(a14==9))&&(a19==1)))){ + a29 = 5; + a7 = 0; + a0 = 0; + a19 = 3; + a14 = 8; + return 24; + } else if((((((!(a11==1)&&((a22==1)&&(!(a24==1)&&((!(a25==1)&&((a29==8)&&((input==1)&&(a7==1))))&&(a14==9)))))&&(a19==3))&&(a0==1))&&(a20==1))&&(a28==1))){ + a11 = 1; + a24 = 1; + a14 = 8; + a25 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((((a11==1)&&((a22==1)&&((!(a25==1)&&((a0==1)&&(((a19==4)&&((a28==1)&&((a24==1)&&(input==3))))&&!(a20==1))))&&(a14==10))))&&(a29==9))&&(a7==1))){ + a14 = 9; + a20 = 1; + a11 = 0; + a19 = 5; + return 23; + } else if(((a25==1)&&((a20==1)&&((a29==5)&&(!(a11==1)&&((((((a28==1)&&(!(a24==1)&&((input==3)&&(a0==1))))&&(a7==1))&&(a22==1))&&(a19==5))&&(a14==9))))))){ + a14 = 8; + a7 = 0; + a11 = 1; + a19 = 3; + a20 = 0; + a0 = 0; + a25 = 0; + a29 = 6; + return 24; + } else if(((((a25==1)&&((a24==1)&&((((a29==5)&&((a0==1)&&(((a14==9)&&((input==5)&&(a11==1)))&&!(a20==1))))&&(a22==1))&&(a28==1))))&&(a19==2))&&!(a7==1))){ + a29 = 9; + a0 = 0; + a7 = 1; + a24 = 0; + a14 = 8; + a19 = 1; + a25 = 0; + return -1; + } else if(((a24==1)&&(((a28==1)&&((!(a11==1)&&((a7==1)&&((a14==9)&&(!(a25==1)&&(((((a29==6)&&(a19==2))||(((a19==1)&&(a29==9))||((a29==5)&&(a19==2))))&&(input==6))&&!(a20==1))))))&&!(a0==1)))&&(a22==1)))){ + a20 = 1; + a14 = 8; + a19 = 3; + a25 = 1; + a29 = 7; + a11 = 1; + a7 = 0; + return 24; + } else if((((((((a11==1)&&(!(a7==1)&&((a20==1)&&((((((a19==3)&&(a29==8))||((a29==9)&&(a19==3)))||((a19==4)&&(a29==5)))&&(input==2))&&(a22==1)))))&&(a28==1))&&(a14==8))&&(a24==1))&&(a25==1))&&(a0==1))){ + a25 = 0; + a19 = 1; + a29 = 5; + return 21; + } else if((((a14==8)&&(!(a7==1)&&(((a25==1)&&(((a28==1)&&((!(a20==1)&&((a24==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==4))))&&!(a0==1)))&&(a19==1)))&&(a22==1))))&&(a11==1))){ + a25 = 0; + a29 = 8; + a0 = 1; + a19 = 3; + a11 = 0; + a24 = 0; + a7 = 1; + return -1; + } else if(((a20==1)&&(((a28==1)&&((a19==3)&&(((a29==6)&&(!(a0==1)&&(!(a24==1)&&((a22==1)&&(((input==4)&&(a14==9))&&!(a11==1))))))&&(a7==1))))&&!(a25==1)))){ + a11 = 1; + a29 = 5; + a24 = 1; + a14 = 8; + a19 = 4; + a25 = 1; + return 24; + } else if(((!(a7==1)&&(((a14==8)&&(((a11==1)&&((((((input==5)&&!(a24==1))&&!(a25==1))&&!(a20==1))&&(a22==1))&&(a19==5)))&&(a28==1)))&&(a0==1)))&&(a29==8))){ + a25 = 1; + a20 = 1; + a29 = 5; + a19 = 1; + a7 = 1; + a24 = 1; + return -1; + } else if(((a0==1)&&((a22==1)&&((a7==1)&&((a28==1)&&(((!(a11==1)&&(!(a25==1)&&(((input==4)&&(((a19==3)&&(a29==9))||((a19==4)&&(a29==5))))&&(a14==8))))&&!(a24==1))&&!(a20==1))))))){ + a19 = 1; + a11 = 1; + a25 = 1; + a20 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if(((((a24==1)&&((a19==5)&&((a22==1)&&(((((a28==1)&&((a7==1)&&(((a29==5)||(a29==6))&&(input==1))))&&!(a20==1))&&(a0==1))&&(a14==9)))))&&!(a11==1))&&!(a25==1))){ + a25 = 1; + a7 = 0; + a24 = 0; + a0 = 0; + a14 = 8; + a29 = 8; + return 23; + } else if(((a14==9)&&((a20==1)&&((!(a24==1)&&(((a0==1)&&((a19==2)&&(((((input==1)&&((a29==5)||(a29==6)))&&!(a11==1))&&!(a7==1))&&(a28==1))))&&(a22==1)))&&(a25==1))))){ + a24 = 1; + a29 = 5; + a14 = 8; + a19 = 1; + a7 = 1; + a11 = 1; + return -1; + } else if((((((((a28==1)&&((((a25==1)&&((((a29==6)||(a29==7))&&(input==2))&&(a19==4)))&&(a14==9))&&(a22==1)))&&!(a7==1))&&!(a20==1))&&!(a11==1))&&!(a24==1))&&!(a0==1))){ + a29 = 9; + a19 = 3; + a25 = 0; + a0 = 1; + a14 = 8; + return -1; + } else if(((!(a0==1)&&((((a14==9)&&((((a19==5)&&((((a20==1)&&(input==1))&&(a29==5))&&(a24==1)))&&!(a7==1))&&(a22==1)))&&!(a25==1))&&(a28==1)))&&!(a11==1))){ + a14 = 8; + a7 = 1; + a25 = 1; + a29 = 9; + a19 = 2; + a20 = 0; + a11 = 1; + return 24; + } else if(((a0==1)&&((((a14==8)&&(((a24==1)&&(!(a7==1)&&(((!(a20==1)&&((input==4)&&(((a29==6)||(a29==7))||(a29==8))))&&(a22==1))&&(a19==1))))&&(a28==1)))&&(a11==1))&&!(a25==1)))){ + a29 = 5; + a7 = 1; + a24 = 0; + a11 = 0; + a25 = 1; + a20 = 1; + return 21; + } else if((((a7==1)&&((a28==1)&&((!(a25==1)&&((a22==1)&&((a24==1)&&(((a19==2)&&(!(a20==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==4))))&&(a0==1)))))&&(a14==9))))&&(a11==1))){ + a19 = 1; + a29 = 5; + return -1; + } else if(((((!(a0==1)&&(((a11==1)&&(((a7==1)&&((((input==5)&&((a29==6)||(a29==7)))&&(a22==1))&&!(a25==1)))&&(a24==1)))&&(a19==3)))&&(a14==9))&&(a20==1))&&(a28==1))){ + a20 = 0; + a11 = 0; + a19 = 5; + a14 = 8; + a29 = 6; + return 24; + } else if(((a28==1)&&((a22==1)&&((!(a25==1)&&(((a14==9)&&((((!(a20==1)&&(((a29==7)||(a29==8))&&(input==6)))&&(a7==1))&&!(a11==1))&&(a19==3)))&&(a0==1)))&&(a24==1))))){ + a25 = 1; + a14 = 8; + a20 = 1; + a19 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if(((a22==1)&&((((a29==9)&&((a14==9)&&((a25==1)&&((((((input==6)&&!(a0==1))&&(a28==1))&&(a7==1))&&!(a11==1))&&!(a24==1)))))&&(a20==1))&&(a19==2)))){ + a25 = 0; + a7 = 0; + a14 = 8; + a29 = 5; + return 24; + } else if(((a0==1)&&((a24==1)&&((((a25==1)&&((a22==1)&&((a7==1)&&((((((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))&&(input==1))&&(a14==9))&&!(a20==1)))))&&!(a11==1))&&(a28==1))))){ + a0 = 0; + a11 = 1; + a7 = 0; + a25 = 0; + a19 = 4; + a29 = 7; + a20 = 1; + a24 = 0; + a14 = 8; + return 24; + } else if((((a22==1)&&((a19==3)&&((a24==1)&&(((a14==9)&&((!(a0==1)&&(!(a20==1)&&(((input==4)&&((a29==7)||(a29==8)))&&(a7==1))))&&(a25==1)))&&(a28==1)))))&&(a11==1))){ + a29 = 5; + a14 = 8; + a0 = 1; + a19 = 1; + a20 = 1; + return -1; + } else if((!(a11==1)&&((a0==1)&&(((a19==1)&&((a22==1)&&((a20==1)&&((a24==1)&&((a25==1)&&((((input==5)&&((a29==8)||((a29==6)||(a29==7))))&&(a14==9))&&(a28==1)))))))&&(a7==1))))){ + a0 = 0; + a19 = 4; + a25 = 0; + a24 = 0; + a14 = 8; + a29 = 5; + a20 = 0; + return -1; + } else if(((a28==1)&&((a22==1)&&((a24==1)&&((a0==1)&&((a29==5)&&((a25==1)&&((!(a11==1)&&((a14==8)&&(((input==4)&&!(a7==1))&&(a19==1))))&&!(a20==1))))))))){ + a25 = 0; + a7 = 1; + a19 = 2; + a29 = 8; + a24 = 0; + return 23; + } else if((!(a20==1)&&(!(a7==1)&&((a29==5)&&(!(a0==1)&&((a28==1)&&(((a22==1)&&((!(a25==1)&&((a14==8)&&((input==5)&&(a11==1))))&&(a24==1)))&&(a19==4)))))))){ + a7 = 1; + a25 = 1; + a29 = 6; + return 21; + } else if(((a22==1)&&((a25==1)&&(((a14==8)&&(((((a7==1)&&(!(a24==1)&&(((input==3)&&(((a29==7)||(a29==8))||(a29==9)))&&(a28==1))))&&(a19==3))&&!(a0==1))&&!(a11==1)))&&(a20==1))))){ + a11 = 1; + a19 = 1; + a0 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if(((!(a0==1)&&((a28==1)&&((a14==9)&&((a7==1)&&((a22==1)&&((!(a20==1)&&((a24==1)&&((a19==1)&&((input==4)&&((a29==5)||(a29==6))))))&&(a11==1)))))))&&(a25==1))){ + a14 = 8; + a19 = 5; + a29 = 9; + a20 = 1; + return 23; + } else if(((((!(a20==1)&&(!(a11==1)&&(((((a22==1)&&(!(a7==1)&&((input==6)&&!(a24==1))))&&(a0==1))&&(a28==1))&&(a29==7))))&&!(a25==1))&&(a19==3))&&(a14==8))){ + a19 = 2; + a24 = 1; + a0 = 0; + a11 = 1; + return 21; + } else if(((((a7==1)&&((((a0==1)&&((a11==1)&&((((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))&&(input==3))&&(a14==9))&&(a22==1))))&&!(a25==1))&&(a24==1)))&&(a20==1))&&(a28==1))){ + a29 = 5; + a19 = 1; + a14 = 8; + a25 = 1; + return -1; + } else if(((((a20==1)&&((((a28==1)&&((a11==1)&&((((a19==1)&&(((a29==6)||(a29==7))&&(input==3)))&&(a7==1))&&(a0==1))))&&(a25==1))&&!(a24==1)))&&(a14==9))&&(a22==1))){ + a24 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if(((a19==4)&&((a7==1)&&((a28==1)&&(((a29==7)&&((!(a11==1)&&(((a24==1)&&(!(a0==1)&&((a22==1)&&(input==4))))&&!(a25==1)))&&(a20==1)))&&(a14==9)))))){ + a14 = 8; + a11 = 1; + a0 = 1; + a19 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if(((a14==8)&&((a19==4)&&(((a11==1)&&((a22==1)&&(((a20==1)&&((!(a0==1)&&(!(a24==1)&&((input==4)&&((a29==7)||((a29==5)||(a29==6))))))&&(a28==1)))&&(a25==1))))&&!(a7==1))))){ + a25 = 0; + a19 = 3; + a24 = 1; + a29 = 7; + a7 = 1; + return 24; + } else if(((a28==1)&&(((((a19==1)&&(!(a20==1)&&((a7==1)&&((a14==8)&&((((input==1)&&((a29==6)||(a29==7)))&&(a25==1))&&(a11==1))))))&&!(a24==1))&&(a22==1))&&!(a0==1)))){ + a20 = 1; + a24 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if((!(a20==1)&&((((!(a24==1)&&(!(a7==1)&&((a14==8)&&(!(a11==1)&&(((((a29==8)||(a29==9))&&(input==1))&&(a19==2))&&(a28==1))))))&&(a0==1))&&(a25==1))&&(a22==1)))){ + a29 = 5; + a24 = 1; + a7 = 1; + a11 = 1; + a19 = 1; + a20 = 1; + return -1; + } else if(((!(a7==1)&&((a14==8)&&(!(a20==1)&&((((a25==1)&&((!(a0==1)&&(((input==1)&&((a29==8)||(a29==9)))&&(a28==1)))&&(a22==1)))&&(a11==1))&&(a19==4)))))&&!(a24==1))){ + a25 = 0; + a11 = 0; + a0 = 1; + a19 = 3; + a29 = 6; + a7 = 1; + return 24; + } else if(((a28==1)&&((a14==8)&&((a24==1)&&((((a19==4)&&((a0==1)&&((a29==6)&&(((a22==1)&&((a20==1)&&(input==3)))&&(a25==1)))))&&!(a11==1))&&!(a7==1)))))){ + a29 = 8; + a0 = 0; + a11 = 1; + a19 = 3; + return 24; + } else if(((!(a20==1)&&((!(a0==1)&&(!(a25==1)&&((((a22==1)&&((((a28==1)&&(input==4))&&(a7==1))&&(a24==1)))&&(a11==1))&&(a29==6))))&&(a19==4)))&&(a14==8))){ + a0 = 1; + a20 = 1; + a25 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a11==1)&&((a25==1)&&((a24==1)&&(((a19==1)&&(((a29==9)&&(((a14==8)&&((a28==1)&&((a20==1)&&(input==1))))&&(a7==1)))&&(a22==1)))&&!(a0==1)))))){ + a7 = 0; + a29 = 6; + a11 = 0; + a24 = 0; + a19 = 5; + a0 = 1; + a20 = 0; + return -1; + } else if((!(a24==1)&&((a19==2)&&((a22==1)&&((((((((((a29==5)||(a29==6))&&(input==5))&&(a14==9))&&!(a11==1))&&(a25==1))&&!(a0==1))&&!(a7==1))&&(a20==1))&&(a28==1)))))){ + a25 = 0; + a20 = 0; + a14 = 8; + a19 = 5; + a29 = 8; + a24 = 1; + a7 = 1; + return 21; + } else if((((!(a25==1)&&((((a22==1)&&((((a28==1)&&((((a29==5)||(a29==6))&&(input==5))&&(a19==5)))&&(a14==9))&&(a11==1)))&&!(a24==1))&&!(a0==1)))&&(a20==1))&&(a7==1))){ + a19 = 4; + a11 = 0; + a29 = 9; + a0 = 1; + return 21; + } else if(((a25==1)&&(!(a0==1)&&((a29==5)&&(!(a24==1)&&((a19==2)&&((((a22==1)&&(((a11==1)&&((a20==1)&&(input==6)))&&(a7==1)))&&(a14==9))&&(a28==1)))))))){ + a19 = 4; + a14 = 8; + a24 = 1; + a29 = 6; + return 24; + } else if(((a22==1)&&((a28==1)&&((((((a14==8)&&(((a11==1)&&((a7==1)&&((input==3)&&(a19==3))))&&!(a20==1)))&&!(a24==1))&&(a0==1))&&(a29==7))&&!(a25==1))))){ + a25 = 1; + a11 = 0; + a19 = 1; + a0 = 0; + a29 = 5; + a24 = 1; + a20 = 1; + return 24; + } else if((!(a0==1)&&((a19==1)&&(((a28==1)&&((a24==1)&&((((!(a25==1)&&((((a29==5)||(a29==6))&&(input==4))&&!(a20==1)))&&(a14==9))&&(a7==1))&&(a22==1))))&&!(a11==1))))){ + a0 = 1; + a29 = 5; + a11 = 1; + a20 = 1; + a14 = 8; + a25 = 1; + return -1; + } else if((((a20==1)&&((((a24==1)&&((a19==2)&&((((a14==8)&&((a22==1)&&((input==2)&&((a29==8)||(a29==9)))))&&(a7==1))&&!(a0==1))))&&!(a25==1))&&!(a11==1)))&&(a28==1))){ + a29 = 5; + a0 = 1; + a25 = 1; + a19 = 1; + a11 = 1; + return -1; + } else if(((!(a25==1)&&(((a22==1)&&((a28==1)&&((((a24==1)&&(!(a20==1)&&((((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))&&(input==6))))&&(a0==1))&&!(a11==1))))&&(a7==1)))&&(a14==9))){ + a25 = 1; + a11 = 1; + a19 = 1; + a20 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if((!(a11==1)&&(((a20==1)&&((a14==8)&&(((a28==1)&&((a22==1)&&((a7==1)&&((!(a24==1)&&(((a29==7)||(a29==8))&&(input==1)))&&(a19==5)))))&&(a0==1))))&&(a25==1)))){ + a19 = 1; + a7 = 0; + a11 = 1; + a29 = 5; + a14 = 9; + return 21; + } else if((!(a7==1)&&(((a25==1)&&((a14==8)&&((a22==1)&&(!(a20==1)&&((a19==4)&&(((((((a29==7)||(a29==8))||(a29==9))&&(input==1))&&(a28==1))&&(a24==1))&&!(a11==1)))))))&&!(a0==1)))){ + a14 = 9; + a19 = 2; + a11 = 1; + a25 = 0; + a29 = 6; + a24 = 0; + return 21; + } else if(((((a7==1)&&((a28==1)&&((a22==1)&&(!(a20==1)&&((((a25==1)&&((((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))&&(input==2)))&&(a14==8))&&(a0==1))))))&&!(a24==1))&&(a11==1))){ + a29 = 7; + a0 = 0; + a24 = 1; + a20 = 1; + a19 = 2; + return 21; + } else if((((!(a20==1)&&(((!(a24==1)&&((a14==9)&&((a11==1)&&((a22==1)&&((((a19==3)&&(a29==5))||(((a29==8)&&(a19==2))||((a29==9)&&(a19==2))))&&(input==1))))))&&!(a7==1))&&!(a25==1)))&&(a28==1))&&(a0==1))){ + a0 = 0; + a24 = 1; + a20 = 1; + a19 = 5; + a29 = 5; + a14 = 8; + return -1; + } else if(((a20==1)&&(!(a24==1)&&(((a22==1)&&((a19==4)&&((a14==8)&&(!(a11==1)&&(((((input==2)&&((a29==8)||(a29==9)))&&(a28==1))&&!(a7==1))&&!(a0==1))))))&&(a25==1))))){ + a11 = 1; + a7 = 1; + a0 = 1; + a24 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((((((a19==1)&&((a0==1)&&((a24==1)&&(((((((a29==5)||(a29==6))||(a29==7))&&(input==4))&&(a28==1))&&(a25==1))&&(a20==1)))))&&(a11==1))&&(a14==9))&&!(a7==1))&&(a22==1))){ + a29 = 5; + a14 = 8; + a7 = 1; + return -1; + } else if((((a20==1)&&((a25==1)&&((((((a24==1)&&((a7==1)&&((a0==1)&&((input==6)&&(((a29==6)||(a29==7))||(a29==8))))))&&(a14==9))&&!(a11==1))&&(a28==1))&&(a19==5))))&&(a22==1))){ + a7 = 0; + a20 = 0; + a29 = 8; + a0 = 0; + a14 = 8; + return -1; + } else if((((a11==1)&&((a7==1)&&(!(a0==1)&&((((a28==1)&&((((a24==1)&&((input==4)&&((a29==8)||((a29==6)||(a29==7)))))&&(a19==5))&&(a14==9)))&&!(a20==1))&&(a22==1)))))&&(a25==1))){ + a7 = 0; + a24 = 0; + a29 = 6; + a11 = 0; + a19 = 3; + a25 = 0; + a14 = 8; + a0 = 1; + return 24; + } else if((!(a24==1)&&((a22==1)&&((a14==9)&&(((a28==1)&&((!(a0==1)&&((a7==1)&&((((input==6)&&((a29==7)||(a29==8)))&&(a19==1))&&(a20==1))))&&!(a25==1)))&&!(a11==1)))))){ + a29 = 9; + a24 = 1; + a0 = 1; + a25 = 1; + a20 = 0; + a19 = 3; + return -1; + } else if((((((a22==1)&&(((a14==9)&&((((input==3)&&(((a19==1)&&((a29==5)&&!(a25==1)))||(((a19==5)&&((a29==8)&&(a25==1)))||((a19==5)&&((a29==9)&&(a25==1))))))&&!(a7==1))&&!(a11==1)))&&(a24==1)))&&(a0==1))&&(a20==1))&&(a28==1))){ + a0 = 0; + a25 = 0; + a14 = 8; + a19 = 3; + a29 = 5; + a11 = 1; + return -1; + } else if(((a20==1)&&(((!(a7==1)&&((a25==1)&&((((a19==2)&&((a24==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==3))&&(a0==1))))&&(a14==9))&&!(a11==1))))&&(a28==1))&&(a22==1)))){ + a25 = 0; + a11 = 1; + a19 = 4; + a14 = 8; + a0 = 0; + a29 = 5; + a7 = 1; + a20 = 0; + return 24; + } else if((((a22==1)&&((a14==9)&&((((!(a0==1)&&((a24==1)&&((((input==5)&&((a29==8)||(a29==9)))&&(a20==1))&&!(a11==1))))&&(a28==1))&&!(a25==1))&&!(a7==1))))&&(a19==2))){ + a0 = 1; + a11 = 1; + a7 = 1; + a14 = 8; + a19 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if((((((a0==1)&&((a29==5)&&(((a28==1)&&(!(a25==1)&&((((input==2)&&(a19==4))&&(a24==1))&&!(a20==1))))&&(a11==1))))&&!(a7==1))&&(a14==9))&&(a22==1))){ + a25 = 1; + a20 = 1; + a14 = 8; + a7 = 1; + a19 = 1; + return -1; + } else if((!(a0==1)&&(!(a24==1)&&(!(a7==1)&&((a28==1)&&(((((a20==1)&&(((((a29==9)||((a29==7)||(a29==8)))&&(input==5))&&!(a25==1))&&(a14==9)))&&(a19==3))&&(a22==1))&&(a11==1))))))){ + a20 = 0; + a11 = 0; + a29 = 6; + a19 = 5; + a7 = 1; + a24 = 1; + a14 = 8; + return 24; + } else if(((((((a24==1)&&((((a22==1)&&((((a29==5)&&(input==3))&&(a14==8))&&(a0==1)))&&!(a25==1))&&(a7==1)))&&(a19==1))&&!(a20==1))&&!(a11==1))&&(a28==1))){ + a11 = 1; + a20 = 1; + a25 = 1; + return -1; + } else if(((a14==9)&&(((a25==1)&&((a11==1)&&(((a19==3)&&((((!(a20==1)&&((input==2)&&((a29==7)||(a29==8))))&&!(a0==1))&&(a28==1))&&(a22==1)))&&(a7==1))))&&(a24==1)))){ + a0 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((!(a25==1)&&(!(a7==1)&&((((a24==1)&&((a22==1)&&((a11==1)&&(((input==1)&&(((a19==3)&&(a29==6))||(((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))))&&(a0==1)))))&&(a20==1))&&(a14==10))))&&(a28==1))){ + a25 = 1; + a20 = 0; + a24 = 0; + a29 = 8; + a19 = 3; + a11 = 0; + a14 = 8; + return 23; + } else if(((a19==4)&&((((!(a11==1)&&(((a7==1)&&(((a22==1)&&(((input==6)&&(a29==8))&&(a25==1)))&&(a14==8)))&&!(a24==1)))&&(a20==1))&&!(a0==1))&&(a28==1)))){ + a25 = 0; + a20 = 0; + a7 = 0; + a29 = 5; + a0 = 1; + return 24; + } else if(((((a11==1)&&(((a14==8)&&((a22==1)&&(!(a24==1)&&((a25==1)&&((((input==1)&&((a29==7)||(a29==8)))&&(a28==1))&&(a0==1))))))&&(a19==1)))&&!(a7==1))&&(a20==1))){ + a7 = 1; + a29 = 5; + a19 = 2; + a25 = 0; + a20 = 0; + a0 = 0; + a24 = 1; + return 21; + } else if(((((a28==1)&&((a14==8)&&((!(a0==1)&&((a22==1)&&((a11==1)&&(!(a24==1)&&(((input==5)&&((a29==8)||(a29==9)))&&!(a20==1))))))&&(a25==1))))&&!(a7==1))&&(a19==3))){ + a24 = 1; + a7 = 1; + a29 = 5; + a19 = 1; + a0 = 1; + a20 = 1; + return -1; + } else if((((a19==3)&&((!(a24==1)&&(((a11==1)&&((!(a20==1)&&(((a28==1)&&(((a29==5)||(a29==6))&&(input==6)))&&(a14==9)))&&(a7==1)))&&!(a25==1)))&&(a22==1)))&&!(a0==1))){ + a25 = 1; + a19 = 1; + a0 = 1; + a7 = 0; + a29 = 5; + return -1; + } else if(((a20==1)&&((a28==1)&&((((a11==1)&&(((((((a25==1)&&(input==6))&&(a22==1))&&(a24==1))&&(a14==9))&&!(a0==1))&&(a29==9)))&&(a19==3))&&(a7==1))))){ + a11 = 0; + a20 = 0; + a7 = 0; + a29 = 5; + a19 = 1; + a0 = 1; + return -1; + } else if((((((a20==1)&&((a19==4)&&((a11==1)&&(((a22==1)&&(((a14==8)&&((((a29==6)||(a29==7))||(a29==8))&&(input==3)))&&!(a24==1)))&&!(a25==1)))))&&!(a7==1))&&(a0==1))&&(a28==1))){ + a25 = 1; + a19 = 3; + a0 = 0; + a29 = 9; + return 21; + } else if((!(a24==1)&&((a28==1)&&((a22==1)&&((a0==1)&&((((a7==1)&&((a19==2)&&(((a11==1)&&((input==6)&&((a29==8)||((a29==6)||(a29==7)))))&&(a20==1))))&&(a14==9))&&!(a25==1))))))){ + a11 = 0; + a14 = 8; + a0 = 0; + a29 = 8; + a7 = 0; + a20 = 0; + return -1; + } else if(((!(a0==1)&&(((a22==1)&&((a29==7)&&(((a28==1)&&((a19==2)&&((a14==8)&&(((a7==1)&&(input==2))&&!(a20==1)))))&&!(a11==1))))&&!(a24==1)))&&!(a25==1))){ + a20 = 1; + a19 = 1; + a11 = 1; + a0 = 1; + a29 = 5; + a24 = 1; + a25 = 1; + return -1; + } else if(((a14==8)&&((((a22==1)&&(((a7==1)&&(((((((a29==8)||(a29==9))&&(input==4))&&(a25==1))&&(a19==2))&&(a28==1))&&!(a20==1)))&&!(a0==1)))&&(a11==1))&&(a24==1)))){ + a24 = 0; + a14 = 9; + a11 = 0; + a20 = 1; + a19 = 3; + a7 = 0; + a25 = 0; + a0 = 1; + a29 = 9; + return 21; + } else if((((a24==1)&&((a28==1)&&((!(a7==1)&&(!(a20==1)&&((a0==1)&&((!(a11==1)&&(((input==3)&&((a29==7)||(a29==8)))&&!(a25==1)))&&(a22==1)))))&&(a19==4))))&&(a14==9))){ + a0 = 0; + a25 = 1; + a19 = 5; + a14 = 8; + a24 = 0; + a11 = 1; + a29 = 6; + return -1; + } else if(((((!(a24==1)&&((!(a11==1)&&((((((a19==5)&&((a29==9)&&(a25==1)))||((a19==1)&&(!(a25==1)&&(a29==5))))&&(input==4))&&(a28==1))&&(a14==8)))&&!(a20==1)))&&!(a7==1))&&(a22==1))&&!(a0==1))){ + a25 = 0; + a19 = 3; + a0 = 1; + a29 = 6; + return 24; + } else if(((a14==8)&&((!(a11==1)&&((a0==1)&&((a22==1)&&((((((((a29==8)||(a29==9))&&(input==5))&&(a28==1))&&(a19==2))&&(a24==1))&&!(a20==1))&&(a25==1)))))&&!(a7==1)))){ + a29 = 6; + a7 = 1; + a14 = 9; + a11 = 1; + return 21; + } else if(((((((a7==1)&&(!(a20==1)&&((a28==1)&&((a0==1)&&(!(a24==1)&&((((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))&&(input==1)))))))&&(a22==1))&&!(a11==1))&&(a25==1))&&(a14==8))){ + a24 = 1; + a11 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((((a20==1)&&((a22==1)&&((a29==6)&&((((a7==1)&&((!(a25==1)&&((a24==1)&&((a28==1)&&(input==3))))&&(a14==8)))&&(a19==4))&&!(a0==1)))))&&(a11==1))){ + a25 = 1; + a29 = 5; + a0 = 1; + a19 = 1; + return -1; + } else if((((a29==5)&&((a28==1)&&((a0==1)&&((a14==8)&&((((a20==1)&&((a11==1)&&(!(a7==1)&&(!(a24==1)&&(input==3)))))&&(a25==1))&&(a19==1))))))&&(a22==1))){ + a7 = 1; + a29 = 9; + a24 = 1; + a20 = 0; + a0 = 0; + return 21; + } else if((!(a25==1)&&((a24==1)&&((a14==9)&&((a28==1)&&(((((a22==1)&&(((!(a20==1)&&(input==4))&&!(a11==1))&&(a29==5)))&&(a19==2))&&(a0==1))&&(a7==1))))))){ + a14 = 8; + a25 = 1; + a29 = 7; + a19 = 3; + a0 = 0; + return 23; + } else if(((a19==1)&&((a24==1)&&(((!(a0==1)&&(!(a25==1)&&((((!(a7==1)&&((input==3)&&((a29==7)||(a29==8))))&&(a22==1))&&(a28==1))&&!(a11==1))))&&!(a20==1))&&(a14==8))))){ + a29 = 8; + a19 = 2; + a0 = 1; + a7 = 1; + a24 = 0; + return 21; + } else if(((a28==1)&&(((a19==5)&&(!(a20==1)&&((a25==1)&&(((((!(a24==1)&&((input==4)&&(a29==7)))&&(a7==1))&&(a22==1))&&(a14==9))&&!(a11==1)))))&&(a0==1)))){ + a0 = 0; + a14 = 8; + a7 = 0; + a19 = 2; + return 21; + } else if(((a14==9)&&((a22==1)&&(!(a24==1)&&((((a7==1)&&((((a19==5)&&(((input==1)&&(a28==1))&&!(a20==1)))&&(a11==1))&&(a29==7)))&&(a0==1))&&(a25==1)))))){ + a25 = 0; + a19 = 4; + a29 = 6; + return 24; + } else if(((a28==1)&&((((((a19==3)&&((((!(a7==1)&&((a14==9)&&(input==4)))&&!(a11==1))&&(a22==1))&&(a29==9)))&&!(a24==1))&&(a0==1))&&!(a20==1))&&!(a25==1)))){ + a25 = 1; + a19 = 1; + a20 = 1; + a7 = 1; + a24 = 1; + a14 = 8; + a29 = 5; + a11 = 1; + return -1; + } else if(((((a20==1)&&(((!(a7==1)&&((a14==10)&&((((input==3)&&(((a29==6)&&(a19==5))||(((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))))&&(a0==1))&&!(a25==1))))&&(a11==1))&&(a22==1)))&&(a28==1))&&(a24==1))){ + a0 = 0; + a14 = 8; + a25 = 1; + a19 = 2; + a29 = 6; + return 23; + } else if(((a11==1)&&(((a14==9)&&((a0==1)&&(!(a7==1)&&(!(a25==1)&&((a20==1)&&((a22==1)&&((a28==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==6))&&!(a24==1)))))))))&&(a19==4)))){ + a14 = 10; + a25 = 1; + a29 = 9; + a19 = 2; + a24 = 1; + a20 = 0; + return 23; + } else if((((a28==1)&&(!(a7==1)&&((a14==8)&&(((((((a20==1)&&((input==5)&&(a25==1)))&&!(a11==1))&&!(a24==1))&&(a19==4))&&(a29==9))&&(a0==1)))))&&(a22==1))){ + a19 = 1; + a29 = 5; + a7 = 1; + a24 = 1; + a11 = 1; + return -1; + } else if(((a22==1)&&(!(a0==1)&&((a19==2)&&((((a11==1)&&((a14==8)&&((a28==1)&&(((a24==1)&&(((a29==7)||(a29==8))&&(input==3)))&&(a20==1)))))&&!(a7==1))&&(a25==1)))))){ + a19 = 3; + a29 = 9; + a7 = 1; + return -1; + } else if((((a28==1)&&(!(a11==1)&&(((!(a20==1)&&((a14==8)&&(((a22==1)&&((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))&&(input==4)))&&(a24==1))))&&!(a7==1))&&(a0==1))))&&!(a25==1))){ + a24 = 0; + a29 = 7; + a19 = 1; + return 23; + } else if((((a14==9)&&((a7==1)&&(((a19==5)&&((a28==1)&&(!(a24==1)&&(((a22==1)&&((a25==1)&&((a11==1)&&(input==6))))&&(a0==1)))))&&(a29==9))))&&!(a20==1))){ + a14 = 8; + a11 = 0; + a25 = 0; + a29 = 6; + return -1; + } else if(((a7==1)&&((((a11==1)&&(!(a0==1)&&((((a22==1)&&(((a14==9)&&((input==1)&&((a29==8)||(a29==9))))&&(a19==2)))&&!(a25==1))&&!(a24==1))))&&(a28==1))&&!(a20==1)))){ + a29 = 8; + a20 = 1; + a19 = 1; + return -1; + } else if((((a0==1)&&(((a28==1)&&((a25==1)&&((!(a20==1)&&(!(a24==1)&&(((input==1)&&((((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))||((a29==6)&&(a19==2))))&&(a7==1))))&&(a11==1))))&&(a22==1)))&&(a14==9))){ + a24 = 1; + a20 = 1; + a29 = 5; + a19 = 1; + a14 = 8; + return -1; + } else if((!(a7==1)&&(((a24==1)&&((a0==1)&&((((a25==1)&&(((((input==5)&&((a29==7)||((a29==5)||(a29==6))))&&!(a11==1))&&(a19==3))&&(a22==1)))&&!(a20==1))&&(a28==1))))&&(a14==8)))){ + a7 = 1; + a20 = 1; + a11 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((!(a24==1)&&(((((a22==1)&&((a28==1)&&(((((input==5)&&((a29==8)||(a29==9)))&&!(a0==1))&&!(a7==1))&&!(a25==1))))&&!(a11==1))&&!(a20==1))&&(a14==9)))&&(a19==4))){ + a0 = 1; + a29 = 5; + a7 = 1; + a14 = 8; + a20 = 1; + a19 = 1; + a11 = 1; + a24 = 1; + a25 = 1; + return -1; + } else if(((a24==1)&&((((((a19==2)&&(((a28==1)&&((a14==9)&&(((input==2)&&(((a29==6)||(a29==7))||(a29==8)))&&!(a20==1))))&&(a11==1)))&&(a22==1))&&!(a25==1))&&!(a0==1))&&!(a7==1)))){ + a29 = 6; + a0 = 1; + a19 = 3; + return -1; + } else if((!(a25==1)&&(((a22==1)&&((a29==7)&&(((a19==2)&&((a14==8)&&(!(a0==1)&&((a20==1)&&(((input==5)&&(a11==1))&&(a24==1))))))&&!(a7==1))))&&(a28==1)))){ + a19 = 1; + a0 = 1; + a25 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if((!(a25==1)&&(!(a7==1)&&(((!(a20==1)&&((((a0==1)&&(!(a24==1)&&((a19==4)&&((input==3)&&((a29==8)||(a29==9))))))&&(a22==1))&&(a28==1)))&&!(a11==1))&&(a14==9))))){ + a29 = 5; + a19 = 1; + a20 = 1; + a7 = 1; + a14 = 8; + a24 = 1; + a11 = 1; + a25 = 1; + return -1; + } else if((((a19==5)&&((!(a0==1)&&((a11==1)&&(((a22==1)&&(((a25==1)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==1))&&(a24==1)))&&(a14==8)))&&(a7==1))))&&(a28==1)))&&!(a20==1))){ + a11 = 0; + a25 = 0; + a29 = 5; + a24 = 0; + a19 = 3; + a0 = 1; + a7 = 0; + return -1; + } else if(((((((a28==1)&&(!(a11==1)&&(!(a20==1)&&(!(a7==1)&&(((a0==1)&&((a14==9)&&(input==5)))&&(a24==1))))))&&(a19==3))&&(a29==9))&&!(a25==1))&&(a22==1))){ + a29 = 5; + a25 = 1; + a7 = 1; + a14 = 8; + a0 = 0; + a19 = 4; + return -1; + } else if((((a0==1)&&((a24==1)&&((a22==1)&&((a28==1)&&((a14==8)&&((a25==1)&&(!(a11==1)&&((a20==1)&&((a19==2)&&((((a29==6)||(a29==7))||(a29==8))&&(input==2)))))))))))&&!(a7==1))){ + a19 = 4; + a24 = 0; + a0 = 0; + a29 = 5; + return 21; + } else if(((a11==1)&&(((a29==5)&&((a22==1)&&((a24==1)&&((a14==9)&&((a19==4)&&(((a20==1)&&(((a28==1)&&(input==3))&&(a7==1)))&&!(a25==1)))))))&&!(a0==1)))){ + a20 = 0; + a29 = 8; + a19 = 1; + a0 = 1; + a25 = 1; + return 23; + } else if(((!(a7==1)&&(((a20==1)&&(((!(a11==1)&&(((a22==1)&&((a28==1)&&((input==4)&&(a29==7))))&&(a25==1)))&&(a24==1))&&!(a0==1)))&&(a19==4)))&&(a14==8))){ + a25 = 0; + a19 = 2; + a14 = 9; + a11 = 1; + a24 = 0; + a29 = 8; + return 24; + } else if((((a7==1)&&(((((((a28==1)&&(((((a29==5)||(a29==6))&&(input==1))&&!(a0==1))&&(a25==1)))&&(a19==4))&&!(a20==1))&&!(a24==1))&&(a11==1))&&(a22==1)))&&(a14==9))){ + a20 = 1; + a14 = 8; + a0 = 1; + a24 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((((a28==1)&&(((a11==1)&&((a19==5)&&(!(a7==1)&&((a24==1)&&((a29==7)&&((!(a20==1)&&((a14==8)&&(input==5)))&&(a25==1)))))))&&(a22==1)))&&(a0==1))){ + a29 = 8; + a19 = 3; + a11 = 0; + return 24; + } else if(((a24==1)&&((a29==6)&&((a19==1)&&(((a22==1)&&(((!(a0==1)&&(((a20==1)&&((input==5)&&(a11==1)))&&(a14==8)))&&(a28==1))&&!(a25==1)))&&(a7==1)))))){ + a20 = 0; + a7 = 0; + a29 = 5; + return 24; + } else if(((((a25==1)&&((a11==1)&&(!(a0==1)&&((a22==1)&&((a14==8)&&((a19==3)&&((((input==2)&&(((a29==6)||(a29==7))||(a29==8)))&&(a24==1))&&(a28==1))))))))&&(a7==1))&&(a20==1))){ + a11 = 0; + a19 = 2; + a25 = 0; + a24 = 0; + a29 = 9; + a20 = 0; + a0 = 1; + return 21; + } else if(((a22==1)&&((a25==1)&&((a28==1)&&(((a19==1)&&((a11==1)&&((a20==1)&&((a24==1)&&((a14==9)&&((a0==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==3))))))))&&(a7==1)))))){ + a11 = 0; + a24 = 0; + a0 = 0; + a7 = 0; + a29 = 5; + return 21; + } else if(((((a24==1)&&(((((a28==1)&&((!(a7==1)&&(((((a19==2)&&(a29==8))||((a29==9)&&(a19==2)))||((a19==3)&&(a29==5)))&&(input==5)))&&(a22==1)))&&(a14==9))&&!(a20==1))&&(a0==1)))&&(a25==1))&&(a11==1))){ + a14 = 8; + a19 = 1; + a29 = 5; + a7 = 1; + a20 = 1; + return -1; + } else if((((a7==1)&&((!(a0==1)&&(((((((a28==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==4)))&&(a25==1))&&(a14==8))&&!(a11==1))&&(a22==1))&&!(a24==1)))&&(a20==1)))&&(a19==1))){ + a25 = 0; + a19 = 4; + a7 = 0; + a29 = 5; + a20 = 0; + a0 = 1; + return -1; + } else if(((((a29==5)&&((a14==8)&&((((a19==4)&&((a22==1)&&((a28==1)&&(((input==3)&&!(a11==1))&&!(a7==1)))))&&(a25==1))&&(a0==1))))&&(a20==1))&&(a24==1))){ + a19 = 1; + a11 = 1; + a7 = 1; + return -1; + } else if((!(a20==1)&&((a0==1)&&(!(a11==1)&&((a22==1)&&((a14==9)&&((!(a7==1)&&((a24==1)&&(!(a25==1)&&((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))&&(input==5)))))&&(a28==1)))))))){ + a29 = 5; + a7 = 1; + a11 = 1; + a25 = 1; + a20 = 1; + a14 = 8; + a19 = 1; + return -1; + } else if((((((a29==9)&&(((a24==1)&&((((a7==1)&&((a14==10)&&((a20==1)&&(input==2))))&&(a0==1))&&(a22==1)))&&(a11==1)))&&!(a25==1))&&(a28==1))&&(a19==1))){ + a29 = 8; + a20 = 0; + a14 = 9; + a19 = 5; + a11 = 0; + a24 = 0; + return 23; + } else if((((((((((a0==1)&&((a19==2)&&(((a22==1)&&(input==2))&&(a14==9))))&&(a11==1))&&!(a7==1))&&(a25==1))&&(a20==1))&&!(a24==1))&&(a28==1))&&(a29==5))){ + a11 = 0; + a29 = 7; + a19 = 4; + a25 = 0; + a14 = 8; + a0 = 0; + a7 = 1; + return -1; + } else if(((((a14==10)&&((a24==1)&&((a28==1)&&(!(a7==1)&&((a0==1)&&(((((input==1)&&((a29==7)||((a29==5)||(a29==6))))&&(a25==1))&&(a22==1))&&(a19==1)))))))&&(a11==1))&&(a20==1))){ + a7 = 1; + a19 = 3; + a14 = 8; + a24 = 0; + a29 = 7; + a0 = 0; + return -1; + } else if((!(a11==1)&&(((a7==1)&&((a28==1)&&((((((a14==9)&&((((a29==7)||(a29==8))&&(input==4))&&(a19==2)))&&(a20==1))&&(a25==1))&&!(a0==1))&&(a24==1))))&&(a22==1)))){ + a19 = 1; + a7 = 0; + a20 = 0; + a11 = 1; + a29 = 8; + a24 = 0; + a0 = 1; + return 23; + } else if((!(a7==1)&&((((a14==8)&&((!(a0==1)&&(!(a25==1)&&(((a29==9)&&(((a20==1)&&(input==6))&&(a19==4)))&&!(a11==1))))&&(a28==1)))&&!(a24==1))&&(a22==1)))){ + a19 = 1; + a25 = 1; + a7 = 1; + a29 = 5; + a24 = 1; + a0 = 1; + a11 = 1; + return -1; + } else if((((a22==1)&&((a28==1)&&((((a24==1)&&((a0==1)&&(((((((a29==8)&&(a19==1))||((a19==1)&&(a29==9)))||((a19==2)&&(a29==5)))&&(input==6))&&!(a25==1))&&(a14==9))))&&!(a7==1))&&!(a11==1))))&&(a20==1))){ + a19 = 3; + a24 = 0; + a29 = 5; + a20 = 0; + a7 = 1; + a14 = 8; + return 24; + } else if((((a19==1)&&((!(a11==1)&&(((!(a7==1)&&((((a0==1)&&((input==6)&&(((a29==7)||(a29==8))||(a29==9))))&&!(a24==1))&&(a28==1)))&&(a20==1))&&!(a25==1)))&&(a14==9)))&&(a22==1))){ + a29 = 6; + a7 = 1; + a24 = 1; + a0 = 0; + a25 = 1; + a14 = 8; + a20 = 0; + a11 = 1; + return 24; + } else if(((a20==1)&&(((a14==8)&&(!(a24==1)&&((a19==2)&&(!(a25==1)&&((a7==1)&&((((((a29==6)||(a29==7))&&(input==5))&&(a11==1))&&(a22==1))&&(a28==1)))))))&&(a0==1)))){ + a29 = 9; + a24 = 1; + a0 = 0; + return 21; + } else if((((!(a24==1)&&((!(a20==1)&&(!(a25==1)&&((a22==1)&&(((a11==1)&&((((a29==6)||(a29==7))&&(input==4))&&!(a7==1)))&&(a19==5)))))&&(a14==9)))&&(a28==1))&&!(a0==1))){ + a7 = 1; + a20 = 1; + a14 = 8; + a19 = 1; + a29 = 5; + a25 = 1; + a0 = 1; + a24 = 1; + return -1; + } else if(((((!(a7==1)&&((a14==9)&&((a22==1)&&((a19==5)&&((a25==1)&&((a11==1)&&((a20==1)&&((input==2)&&(a0==1)))))))))&&(a28==1))&&(a29==9))&&(a24==1))){ + a14 = 8; + a0 = 0; + a19 = 2; + a24 = 0; + return -1; + } else if(((a11==1)&&((a22==1)&&(((a24==1)&&(((((((a14==8)&&((a25==1)&&(input==3)))&&(a29==5))&&!(a7==1))&&(a28==1))&&(a19==4))&&!(a20==1)))&&!(a0==1))))){ + a7 = 1; + a0 = 1; + a19 = 1; + a20 = 1; + return -1; + } else if(((a14==8)&&(((a11==1)&&(!(a20==1)&&((a19==5)&&((((!(a0==1)&&((a25==1)&&(((a29==8)||(a29==9))&&(input==2))))&&(a24==1))&&(a28==1))&&(a22==1)))))&&!(a7==1)))){ + a19 = 1; + a29 = 6; + return 23; + } else if(((a7==1)&&(((a14==10)&&(((a28==1)&&((a11==1)&&(!(a20==1)&&(((a24==1)&&((((a19==3)&&(a29==6))||(((a19==2)&&(a29==9))||((a29==5)&&(a19==3))))&&(input==2)))&&!(a25==1)))))&&(a22==1)))&&(a0==1)))){ + a29 = 5; + a14 = 8; + a20 = 1; + a19 = 1; + a25 = 1; + return -1; + } else if(((!(a11==1)&&(!(a7==1)&&((((a24==1)&&((a25==1)&&(!(a0==1)&&(((input==1)&&(((a29==9)&&(a19==4))||((a19==5)&&(a29==5))))&&!(a20==1)))))&&(a28==1))&&(a22==1))))&&(a14==9))){ + a7 = 1; + a11 = 1; + a14 = 8; + a19 = 5; + a29 = 8; + a20 = 1; + return 21; + } else if((((((a20==1)&&((a0==1)&&(!(a7==1)&&((!(a24==1)&&(((input==1)&&(((a29==5)&&(a19==3))||(((a29==8)&&(a19==2))||((a29==9)&&(a19==2)))))&&!(a25==1)))&&!(a11==1)))))&&(a22==1))&&(a14==9))&&(a28==1))){ + a19 = 1; + a29 = 9; + a24 = 1; + return 24; + } else if(((a25==1)&&((a19==3)&&((!(a20==1)&&((((a28==1)&&((a11==1)&&((a0==1)&&((a29==9)&&((a7==1)&&(input==3))))))&&(a14==9))&&(a22==1)))&&(a24==1))))){ + a20 = 1; + a19 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((a14==9)&&(!(a11==1)&&((a7==1)&&(!(a20==1)&&(((((((a19==2)&&((input==2)&&(a29==8)))&&!(a25==1))&&!(a0==1))&&(a28==1))&&(a22==1))&&(a24==1))))))){ + a24 = 0; + a11 = 1; + a25 = 1; + a29 = 5; + a20 = 1; + a19 = 5; + return -1; + } else if((((((((a14==8)&&(((!(a11==1)&&(!(a25==1)&&((a22==1)&&(input==6))))&&(a19==3))&&(a0==1)))&&!(a24==1))&&(a29==7))&&(a7==1))&&(a28==1))&&!(a20==1))){ + a29 = 5; + a19 = 1; + a20 = 1; + a24 = 1; + a11 = 1; + a25 = 1; + return -1; + } else if(((a28==1)&&((a7==1)&&((((a24==1)&&((a14==8)&&((a20==1)&&((a19==5)&&(!(a25==1)&&(((input==5)&&((a29==7)||((a29==5)||(a29==6))))&&!(a0==1)))))))&&(a22==1))&&!(a11==1))))){ + a19 = 1; + a0 = 1; + a29 = 5; + a11 = 1; + a25 = 1; + return -1; + } else if((!(a11==1)&&(((((a22==1)&&(((a19==4)&&(((((((a29==6)||(a29==7))||(a29==8))&&(input==3))&&!(a24==1))&&!(a7==1))&&!(a0==1)))&&(a28==1)))&&(a14==8))&&(a20==1))&&!(a25==1)))){ + a20 = 0; + a29 = 7; + a0 = 1; + a25 = 1; + return 24; + } else if((((a19==1)&&((a11==1)&&((!(a24==1)&&(!(a7==1)&&(((a14==8)&&(((a0==1)&&(((a29==6)||(a29==7))&&(input==5)))&&!(a25==1)))&&(a22==1))))&&(a20==1))))&&(a28==1))){ + a0 = 0; + a7 = 1; + a29 = 7; + return 21; + } else if(((a14==8)&&((a7==1)&&(!(a25==1)&&((a24==1)&&((a22==1)&&((((((a20==1)&&((input==1)&&((a29==6)||(a29==7))))&&!(a11==1))&&(a19==3))&&(a28==1))&&(a0==1)))))))){ + a20 = 0; + a7 = 0; + a29 = 5; + a24 = 0; + return 24; + } else if(((a0==1)&&((!(a11==1)&&((a29==9)&&((a20==1)&&((a28==1)&&((a25==1)&&((a22==1)&&((((a7==1)&&(input==3))&&(a19==5))&&(a24==1))))))))&&(a14==8)))){ + a0 = 0; + a11 = 1; + a20 = 0; + a29 = 5; + return 23; + } else if(((((a19==4)&&((a28==1)&&((a0==1)&&((a22==1)&&((a25==1)&&(!(a20==1)&&((a7==1)&&(((input==4)&&((a29==6)||(a29==7)))&&(a11==1)))))))))&&(a14==8))&&!(a24==1))){ + a19 = 1; + a20 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if(((((!(a25==1)&&((a7==1)&&(((!(a24==1)&&(((a22==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==1)))&&(a0==1)))&&(a28==1))&&!(a20==1))))&&(a19==1))&&!(a11==1))&&(a14==8))){ + a19 = 3; + a20 = 1; + a11 = 1; + a0 = 0; + a7 = 0; + a29 = 6; + a24 = 1; + return 23; + } else if(((a11==1)&&((a19==4)&&((!(a7==1)&&(((a24==1)&&(!(a20==1)&&(((!(a0==1)&&((input==6)&&(a22==1)))&&(a28==1))&&(a14==9))))&&(a29==8)))&&!(a25==1))))){ + a20 = 1; + a25 = 1; + a7 = 1; + a14 = 8; + a19 = 5; + return 21; + } else if(((!(a25==1)&&(((a11==1)&&(((a28==1)&&((!(a7==1)&&(((input==2)&&((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))||((a29==6)&&(a19==3))))&&(a22==1)))&&!(a24==1)))&&(a0==1)))&&(a14==8)))&&(a20==1))){ + a19 = 1; + a25 = 1; + a29 = 5; + a24 = 1; + a7 = 1; + return -1; + } else if(((a28==1)&&(!(a20==1)&&((a22==1)&&((a7==1)&&((a14==10)&&((((!(a25==1)&&(((input==1)&&(((a29==7)||(a29==8))||(a29==9)))&&(a19==1)))&&(a11==1))&&(a24==1))&&(a0==1)))))))){ + a25 = 1; + a29 = 5; + a14 = 8; + a20 = 1; + return -1; + } else if(((((a24==1)&&((a11==1)&&(((a28==1)&&((a0==1)&&(((a22==1)&&((a19==4)&&((input==6)&&(a7==1))))&&(a29==8))))&&!(a20==1))))&&(a25==1))&&(a14==8))){ + a24 = 0; + a29 = 5; + return 23; + } else if(((!(a25==1)&&((a0==1)&&((a24==1)&&(((a20==1)&&(((((a28==1)&&((input==3)&&(((a29==6)||(a29==7))||(a29==8))))&&(a19==2))&&(a22==1))&&!(a11==1)))&&(a14==8)))))&&(a7==1))){ + a19 = 1; + a29 = 5; + a25 = 1; + a11 = 1; + return -1; + } else if(((a25==1)&&(((a22==1)&&((a14==9)&&(!(a24==1)&&((((((((a29==5)||(a29==6))&&(input==4))&&(a20==1))&&!(a11==1))&&(a7==1))&&(a19==5))&&(a28==1)))))&&!(a0==1)))){ + a29 = 9; + a24 = 1; + a11 = 1; + return -1; + } else if((((a14==9)&&((a24==1)&&(((a28==1)&&(((((((a11==1)&&(input==6))&&(a19==5))&&(a0==1))&&!(a7==1))&&(a22==1))&&(a29==5)))&&!(a25==1))))&&!(a20==1))){ + a7 = 1; + a14 = 8; + a19 = 1; + a20 = 1; + a25 = 1; + return -1; + } else if(((!(a25==1)&&((a29==9)&&(((((((!(a11==1)&&((a14==8)&&(input==1)))&&(a19==2))&&!(a20==1))&&(a28==1))&&(a24==1))&&!(a7==1))&&(a22==1))))&&!(a0==1))){ + a29 = 8; + a7 = 1; + a20 = 1; + a19 = 5; + return -1; + } else if((!(a0==1)&&(!(a11==1)&&((a14==9)&&(!(a20==1)&&((a24==1)&&((a22==1)&&(((a19==4)&&((!(a25==1)&&((a28==1)&&(input==5)))&&!(a7==1)))&&(a29==5))))))))){ + a29 = 7; + a20 = 1; + a19 = 2; + a14 = 8; + a11 = 1; + return -1; + } else if(((a7==1)&&(!(a24==1)&&((a11==1)&&(((a22==1)&&((a25==1)&&((a29==8)&&((a28==1)&&((a14==8)&&(!(a20==1)&&((input==6)&&(a19==2))))))))&&!(a0==1)))))){ + a0 = 1; + a20 = 1; + a24 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((!(a25==1)&&((a22==1)&&(((!(a7==1)&&((!(a0==1)&&((a19==4)&&((((a29==8)||(a29==9))&&(input==3))&&!(a20==1))))&&!(a24==1)))&&(a28==1))&&!(a11==1))))&&(a14==9))){ + a29 = 9; + a20 = 1; + a14 = 8; + a11 = 1; + a19 = 1; + a25 = 1; + a24 = 1; + a7 = 1; + return -1; + } else if(((a22==1)&&(((!(a24==1)&&(((a0==1)&&((!(a20==1)&&((((a19==1)&&(!(a25==1)&&(a29==5)))||(((a19==5)&&((a29==8)&&(a25==1)))||((a19==5)&&((a29==9)&&(a25==1)))))&&(input==2)))&&(a7==1)))&&(a14==9)))&&(a28==1))&&!(a11==1)))){ + a25 = 0; + a19 = 3; + a20 = 1; + a29 = 5; + return 24; + } else if(((a14==9)&&((a7==1)&&((a28==1)&&((!(a0==1)&&(((!(a25==1)&&(((input==6)&&((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))||((a19==4)&&(a29==6))))&&!(a11==1)))&&(a22==1))&&(a20==1)))&&(a24==1)))))){ + a29 = 6; + a11 = 1; + a25 = 1; + a19 = 1; + return -1; + } else if((((a25==1)&&((((a28==1)&&((a0==1)&&((a24==1)&&(((a14==9)&&((((a29==8)||(a29==9))&&(input==5))&&(a11==1)))&&(a19==1)))))&&(a22==1))&&!(a20==1)))&&!(a7==1))){ + a19 = 2; + a11 = 0; + a24 = 0; + a14 = 8; + a29 = 7; + return -1; + } else if((((((((a22==1)&&(((a28==1)&&(((a14==8)&&((((a29==7)||(a29==8))||(a29==9))&&(input==5)))&&(a19==3)))&&(a11==1)))&&(a24==1))&&!(a20==1))&&!(a0==1))&&!(a25==1))&&!(a7==1))){ + a19 = 1; + a25 = 1; + a0 = 1; + a20 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if((!(a25==1)&&((!(a20==1)&&((a7==1)&&(!(a11==1)&&((a19==5)&&(((((a0==1)&&((input==6)&&(((a29==7)||(a29==8))||(a29==9))))&&(a28==1))&&(a22==1))&&!(a24==1))))))&&(a14==8)))){ + a20 = 1; + a19 = 1; + a29 = 5; + a24 = 1; + a11 = 1; + a25 = 1; + return -1; + } else if((!(a0==1)&&((a25==1)&&(((a22==1)&&((!(a7==1)&&(((((a14==9)&&((input==2)&&((a29==8)||(a29==9))))&&(a28==1))&&(a19==1))&&!(a20==1)))&&(a24==1)))&&!(a11==1))))){ + a25 = 0; + a11 = 1; + a20 = 1; + a19 = 5; + a14 = 8; + a7 = 1; + a29 = 8; + return 24; + } else if(((((a14==8)&&(((!(a11==1)&&((((a28==1)&&((input==3)&&(((a19==4)&&(a29==6))||(((a29==9)&&(a19==3))||((a29==5)&&(a19==4))))))&&(a22==1))&&!(a25==1)))&&(a24==1))&&(a0==1)))&&(a7==1))&&!(a20==1))){ + a7 = 0; + a29 = 5; + a24 = 0; + a19 = 2; + return 21; + } else if(((a14==9)&&(!(a0==1)&&((a22==1)&&((!(a20==1)&&((a28==1)&&(((a24==1)&&(((input==5)&&(((a29==5)&&(a19==4))||(((a19==3)&&(a29==8))||((a19==3)&&(a29==9)))))&&!(a25==1)))&&(a11==1))))&&(a7==1)))))){ + a29 = 8; + a7 = 0; + a24 = 0; + a14 = 8; + a19 = 1; + return -1; + } else if((((!(a7==1)&&((!(a11==1)&&(((a28==1)&&((a29==5)&&((a19==4)&&(((input==4)&&(a22==1))&&(a14==8)))))&&!(a0==1)))&&(a20==1)))&&!(a24==1))&&(a25==1))){ + a0 = 1; + a24 = 1; + a19 = 1; + a7 = 1; + a11 = 1; + return -1; + } else if((((a25==1)&&(!(a11==1)&&(((!(a7==1)&&((((((input==3)&&((a29==8)||(a29==9)))&&(a19==2))&&(a14==9))&&(a28==1))&&!(a20==1)))&&(a22==1))&&!(a24==1))))&&!(a0==1))){ + a11 = 1; + a0 = 1; + a24 = 1; + a19 = 1; + a7 = 1; + a29 = 9; + return -1; + } else if((((a19==4)&&(((a20==1)&&(((a25==1)&&((a11==1)&&(((a7==1)&&(((input==6)&&((a29==7)||(a29==8)))&&(a24==1)))&&(a28==1))))&&(a22==1)))&&(a14==9)))&&(a0==1))){ + a11 = 0; + a24 = 0; + a7 = 0; + a29 = 5; + a25 = 0; + a19 = 1; + a0 = 0; + return 23; + } else if((!(a7==1)&&(((!(a11==1)&&(((!(a25==1)&&(((a22==1)&&(((input==5)&&(a28==1))&&(a14==9)))&&(a19==3)))&&(a0==1))&&(a29==9)))&&!(a24==1))&&!(a20==1)))){ + a14 = 8; + a19 = 2; + a7 = 1; + a29 = 5; + a11 = 1; + a24 = 1; + a0 = 0; + a25 = 1; + return 21; + } else if(((a25==1)&&((((a28==1)&&(((a11==1)&&(((((((a29==6)||(a29==7))&&(input==1))&&(a14==8))&&(a7==1))&&!(a24==1))&&!(a20==1)))&&(a22==1)))&&!(a0==1))&&(a19==3)))){ + a29 = 9; + a19 = 4; + a14 = 9; + a24 = 1; + return 24; + } else if(((!(a7==1)&&(!(a0==1)&&((a22==1)&&(((a14==9)&&((a28==1)&&((((a24==1)&&((input==5)&&((a29==8)||(a29==9))))&&(a19==2))&&!(a25==1))))&&(a20==1)))))&&(a11==1))){ + a19 = 1; + a25 = 1; + a29 = 5; + a0 = 1; + a7 = 1; + a14 = 8; + return -1; + } else if((!(a25==1)&&(!(a0==1)&&((a19==5)&&((a22==1)&&((a28==1)&&(!(a20==1)&&((a7==1)&&((!(a24==1)&&(((input==4)&&((a29==6)||(a29==7)))&&(a14==9)))&&(a11==1)))))))))){ + a19 = 1; + a14 = 8; + a29 = 6; + a25 = 1; + return 21; + } else if((((a11==1)&&(!(a0==1)&&(((((input==3)&&(((a19==1)&&(((!(a20==1)&&(a7==1))&&(a25==1))&&(a29==5)))||((((a29==8)&&(((a20==1)&&!(a7==1))&&!(a25==1)))&&(a19==5))||(((!(a25==1)&&((a20==1)&&!(a7==1)))&&(a29==9))&&(a19==5)))))&&(a28==1))&&(a14==8))&&!(a24==1))))&&(a22==1))){ + a25 = 1; + a0 = 1; + a19 = 1; + a24 = 1; + a7 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if(((((a22==1)&&((a11==1)&&((a28==1)&&((((!(a24==1)&&((input==3)&&(((a29==5)&&(a19==5))||(((a29==8)&&(a19==4))||((a19==4)&&(a29==9))))))&&!(a0==1))&&(a25==1))&&(a14==8)))))&&!(a7==1))&&(a20==1))){ + a24 = 1; + a7 = 1; + a29 = 5; + a0 = 1; + a19 = 1; + return -1; + } else if((((a14==9)&&(((((((a22==1)&&(((((a19==5)&&(a29==5))||(((a19==4)&&(a29==8))||((a19==4)&&(a29==9))))&&(input==5))&&(a7==1)))&&(a11==1))&&(a28==1))&&!(a25==1))&&!(a0==1))&&(a20==1)))&&(a24==1))){ + a19 = 1; + a29 = 5; + a25 = 1; + a14 = 8; + a0 = 1; + return -1; + } else if(((!(a24==1)&&((a28==1)&&(((a22==1)&&(!(a20==1)&&(!(a25==1)&&((a7==1)&&(((((a29==7)||((a29==5)||(a29==6)))&&(input==1))&&(a11==1))&&(a0==1))))))&&(a14==9))))&&(a19==1))){ + a29 = 8; + a19 = 3; + a0 = 0; + a25 = 1; + a24 = 1; + a20 = 1; + a14 = 8; + return 24; + } else if((!(a7==1)&&(((((a19==1)&&((((a29==9)&&((a24==1)&&((a22==1)&&((input==3)&&(a11==1)))))&&(a20==1))&&(a0==1)))&&(a28==1))&&!(a25==1))&&(a14==8)))){ + a25 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if((((a19==3)&&(((a20==1)&&((((a25==1)&&((a29==8)&&((a22==1)&&(((a7==1)&&(input==1))&&(a24==1)))))&&(a11==1))&&(a14==9)))&&!(a0==1)))&&(a28==1))){ + a20 = 0; + a29 = 9; + a19 = 2; + a14 = 8; + a25 = 0; + return 21; + } else if((((a24==1)&&((a11==1)&&(((a20==1)&&(((a28==1)&&((a29==8)&&((((a19==1)&&(input==1))&&(a22==1))&&!(a0==1))))&&(a14==8)))&&!(a7==1))))&&!(a25==1))){ + a7 = 1; + a25 = 1; + a29 = 7; + a19 = 4; + return -1; + } else if((((((a11==1)&&(!(a25==1)&&((((a19==3)&&(((!(a24==1)&&(input==2))&&(a22==1))&&(a29==5)))&&(a14==9))&&(a7==1))))&&!(a20==1))&&(a28==1))&&(a0==1))){ + a24 = 1; + a25 = 1; + a19 = 1; + a14 = 8; + a20 = 1; + return -1; + } else if((!(a20==1)&&((a14==8)&&(((a28==1)&&(((((a24==1)&&((a25==1)&&((a11==1)&&((input==2)&&((a29==7)||((a29==5)||(a29==6)))))))&&(a22==1))&&(a7==1))&&(a19==5)))&&(a0==1))))){ + a25 = 0; + a19 = 3; + a24 = 0; + a29 = 7; + return 24; + } else if(((a20==1)&&((a29==6)&&((!(a11==1)&&((((((a19==3)&&(((a25==1)&&(input==6))&&(a7==1)))&&(a22==1))&&(a24==1))&&(a14==8))&&(a28==1)))&&!(a0==1))))){ + a29 = 5; + a0 = 1; + a11 = 1; + a19 = 1; + return -1; + } else if(((a22==1)&&(((!(a25==1)&&((a7==1)&&((!(a20==1)&&((a11==1)&&((a0==1)&&((a28==1)&&(((a29==5)||(a29==6))&&(input==2))))))&&(a19==1))))&&!(a24==1))&&(a14==8)))){ + a19 = 4; + a0 = 0; + a25 = 1; + a24 = 1; + a29 = 9; + a20 = 1; + return 24; + } return calculate_output36(input); + } + + int calculate_output36(int input) { + if(((a20==1)&&(((a19==1)&&(((a28==1)&&((((a29==5)&&((!(a11==1)&&((input==1)&&!(a24==1)))&&(a22==1)))&&(a25==1))&&!(a0==1)))&&(a14==8)))&&!(a7==1)))){ + a7 = 1; + a11 = 1; + a29 = 9; + a25 = 0; + a24 = 1; + a20 = 0; + a0 = 1; + return 24; + } else if(((a28==1)&&(((a19==4)&&((a7==1)&&((((a25==1)&&(((a11==1)&&((a20==1)&&(((a29==5)||(a29==6))&&(input==6))))&&(a0==1)))&&!(a24==1))&&(a22==1))))&&(a14==9)))){ + a0 = 0; + a25 = 0; + a29 = 8; + a24 = 1; + a14 = 8; + a19 = 5; + return 24; + } else if((!(a0==1)&&((((((a7==1)&&((((a14==9)&&(((a11==1)&&(input==1))&&(a29==7)))&&!(a25==1))&&(a22==1)))&&!(a20==1))&&(a28==1))&&(a24==1))&&(a19==4)))){ + a29 = 6; + a19 = 2; + a20 = 1; + a0 = 1; + a24 = 0; + return -1; + } else if((((((!(a11==1)&&(!(a25==1)&&((!(a24==1)&&(((((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))&&(input==5))&&(a28==1)))&&(a14==8))))&&!(a7==1))&&(a20==1))&&(a22==1))&&(a0==1))){ + a19 = 3; + a20 = 0; + a14 = 9; + a11 = 1; + a29 = 7; + return 21; + } else if(((a24==1)&&(!(a11==1)&&((a28==1)&&((a0==1)&&(!(a25==1)&&((a7==1)&&((a22==1)&&((a19==1)&&((a20==1)&&(((input==5)&&((a29==8)||(a29==9)))&&(a14==8)))))))))))){ + a29 = 6; + a7 = 0; + a19 = 5; + a20 = 0; + a0 = 0; + return 21; + } else if(((((!(a24==1)&&((((((!(a20==1)&&((a14==8)&&(input==6)))&&(a22==1))&&(a28==1))&&(a29==7))&&(a19==2))&&!(a0==1)))&&!(a11==1))&&!(a25==1))&&(a7==1))){ + a29 = 5; + a14 = 9; + a25 = 1; + a19 = 4; + a0 = 1; + return 21; + } else if((((((((((a20==1)&&(((((a29==5)&&(a19==3))||(((a29==8)&&(a19==2))||((a19==2)&&(a29==9))))&&(input==1))&&(a22==1)))&&(a28==1))&&!(a7==1))&&!(a11==1))&&!(a0==1))&&(a14==8))&&(a25==1))&&!(a24==1))){ + a24 = 1; + a0 = 1; + a7 = 1; + a11 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a0==1)&&((a25==1)&&((a11==1)&&((a19==2)&&((((a28==1)&&((!(a7==1)&&(((input==6)&&((a29==7)||(a29==8)))&&(a22==1)))&&(a24==1)))&&!(a20==1))&&(a14==8))))))){ + a25 = 0; + a19 = 5; + a29 = 5; + a11 = 0; + a20 = 1; + return 23; + } else if((((a7==1)&&(((!(a20==1)&&(((((a22==1)&&(((input==5)&&((a29==8)||(a29==9)))&&!(a24==1)))&&(a0==1))&&(a14==8))&&(a25==1)))&&(a28==1))&&!(a11==1)))&&(a19==3))){ + a7 = 0; + a29 = 5; + a24 = 1; + a11 = 1; + a0 = 0; + a25 = 0; + a19 = 5; + return 21; + } else if(((a20==1)&&(((a24==1)&&((!(a0==1)&&((((((a22==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==1)))&&(a14==8))&&!(a25==1))&&(a28==1))&&(a11==1)))&&!(a7==1)))&&(a19==3)))){ + a0 = 1; + a11 = 0; + a19 = 5; + a24 = 0; + a29 = 5; + a20 = 0; + return -1; + } else if((!(a25==1)&&(((a20==1)&&(!(a7==1)&&(((((a22==1)&&((a11==1)&&((a14==8)&&(!(a24==1)&&(input==6)))))&&(a28==1))&&(a29==7))&&(a19==5))))&&!(a0==1)))){ + a29 = 9; + a24 = 1; + a14 = 9; + a20 = 0; + a0 = 1; + a11 = 0; + a19 = 3; + return 21; + } else if((!(a11==1)&&(((a22==1)&&((a19==1)&&(!(a20==1)&&(!(a24==1)&&((a25==1)&&((a0==1)&&(((((a29==8)||(a29==9))&&(input==1))&&(a28==1))&&(a7==1))))))))&&(a14==9)))){ + a24 = 1; + a11 = 1; + a14 = 8; + a29 = 5; + a20 = 1; + return -1; + } else if(((((((a28==1)&&(!(a7==1)&&((a22==1)&&(((a20==1)&&((a14==9)&&((input==3)&&((a29==5)||(a29==6)))))&&!(a0==1)))))&&(a24==1))&&(a19==3))&&!(a11==1))&&!(a25==1))){ + a29 = 6; + a24 = 0; + a11 = 1; + a7 = 1; + a25 = 1; + a19 = 4; + a14 = 8; + return 23; + } else if((((a14==8)&&((a24==1)&&(((((a28==1)&&(!(a25==1)&&(((input==1)&&((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))||((a29==6)&&(a19==3))))&&(a20==1))))&&(a22==1))&&!(a0==1))&&(a11==1))))&&(a7==1))){ + a20 = 0; + a0 = 1; + a11 = 0; + a7 = 0; + a29 = 8; + a24 = 0; + a19 = 5; + return 23; + } else if(((a20==1)&&((a14==8)&&((((a28==1)&&(!(a0==1)&&((((input==2)&&((((a29==5)&&!(a25==1))&&(a19==1))||((((a25==1)&&(a29==8))&&(a19==5))||(((a25==1)&&(a29==9))&&(a19==5)))))&&(a24==1))&&!(a11==1))))&&(a7==1))&&(a22==1))))){ + a14 = 9; + a19 = 5; + a11 = 1; + a29 = 7; + a24 = 0; + a25 = 1; + return 23; + } else if(((a22==1)&&(((a28==1)&&((a7==1)&&(((a20==1)&&(!(a0==1)&&(!(a24==1)&&((a14==9)&&(((a29==7)&&(input==5))&&(a25==1))))))&&(a19==5))))&&!(a11==1)))){ + a0 = 1; + a24 = 1; + a11 = 1; + a14 = 8; + a19 = 1; + a29 = 5; + return -1; + } else if((((a20==1)&&(((a22==1)&&((((a14==9)&&(!(a24==1)&&(!(a11==1)&&((a19==2)&&((input==4)&&!(a7==1))))))&&(a25==1))&&(a28==1)))&&(a0==1)))&&(a29==7))){ + a24 = 1; + a11 = 1; + a19 = 1; + a7 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if((!(a24==1)&&(!(a11==1)&&(((!(a20==1)&&((((((a19==1)&&(((a29==6)||(a29==7))&&(input==2)))&&(a22==1))&&(a28==1))&&!(a0==1))&&(a7==1)))&&(a14==9))&&!(a25==1))))){ + a14 = 8; + a11 = 1; + a25 = 1; + a29 = 8; + a7 = 0; + a19 = 5; + a24 = 1; + return 24; + } else if((((a14==9)&&((a28==1)&&(((a7==1)&&((((a22==1)&&((((input==6)&&((a29==7)||(a29==8)))&&!(a0==1))&&(a24==1)))&&(a19==5))&&!(a25==1)))&&(a20==1))))&&!(a11==1))){ + a19 = 3; + a11 = 1; + a29 = 7; + a14 = 8; + return 24; + } else if(((a14==10)&&((a22==1)&&(((((a24==1)&&((((((input==2)&&!(a20==1))&&(a19==4))&&(a28==1))&&(a0==1))&&(a29==9)))&&(a7==1))&&(a11==1))&&(a25==1))))){ + a19 = 1; + a14 = 8; + a29 = 5; + a20 = 1; + return -1; + } else if(((a22==1)&&(((!(a25==1)&&((((!(a11==1)&&((a19==2)&&((((a29==5)||(a29==6))&&(input==2))&&(a0==1))))&&!(a24==1))&&!(a7==1))&&(a28==1)))&&(a20==1))&&(a14==9)))){ + a29 = 6; + a24 = 1; + a14 = 8; + a0 = 0; + return -1; + } else if(((a19==4)&&((a25==1)&&((a7==1)&&((a0==1)&&((((a14==9)&&((a28==1)&&(((((a29==9)||((a29==7)||(a29==8)))&&(input==3))&&!(a24==1))&&(a11==1))))&&(a20==1))&&(a22==1))))))){ + a24 = 1; + a25 = 0; + a29 = 6; + a19 = 1; + a11 = 0; + return 23; + } else if(((((((a24==1)&&(((a22==1)&&((a19==4)&&((a14==9)&&(!(a11==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==5))))))&&!(a20==1)))&&(a7==1))&&(a0==1))&&(a28==1))&&(a25==1))){ + a29 = 6; + a14 = 8; + a19 = 3; + a11 = 1; + a7 = 0; + a25 = 0; + a0 = 0; + return -1; + } else if(((!(a24==1)&&(!(a0==1)&&(((a29==5)&&(((a14==9)&&(((a19==3)&&((a20==1)&&(!(a11==1)&&(input==2))))&&(a28==1)))&&!(a25==1)))&&(a22==1))))&&!(a7==1))){ + a29 = 9; + a19 = 2; + a20 = 0; + a25 = 1; + a24 = 1; + a0 = 1; + return -1; + } else if(((((a19==1)&&(!(a20==1)&&(((a0==1)&&((a14==9)&&((((a24==1)&&((a11==1)&&(input==3)))&&(a7==1))&&(a28==1))))&&(a22==1))))&&(a29==5))&&!(a25==1))){ + a19 = 5; + a11 = 0; + a14 = 8; + a0 = 0; + a29 = 8; + return -1; + } else if(((((!(a25==1)&&((((((a22==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==4))&&(a14==9)))&&(a24==1))&&!(a7==1))&&(a20==1))&&!(a0==1)))&&(a28==1))&&(a11==1))&&(a19==1))){ + a11 = 0; + a20 = 0; + a14 = 8; + a19 = 3; + a29 = 8; + a7 = 1; + return -1; + } else if(((a0==1)&&(!(a25==1)&&((a22==1)&&((((a24==1)&&(!(a20==1)&&((a28==1)&&((((input==3)&&(((a29==5)||(a29==6))||(a29==7)))&&(a19==3))&&(a14==8)))))&&(a7==1))&&(a11==1)))))){ + a7 = 0; + a24 = 0; + a29 = 5; + a19 = 5; + return 21; + } else if(((a24==1)&&((((a22==1)&&((a19==1)&&(!(a7==1)&&((a14==9)&&(((((input==5)&&((a29==9)||((a29==7)||(a29==8))))&&(a11==1))&&(a25==1))&&!(a0==1))))))&&!(a20==1))&&(a28==1)))){ + a20 = 1; + a25 = 0; + a29 = 9; + a24 = 0; + a0 = 1; + return -1; + } else if(((!(a7==1)&&(((a20==1)&&((a14==9)&&((a28==1)&&(((((a25==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==4)))&&(a11==1))&&(a19==4))&&!(a0==1)))))&&(a24==1)))&&(a22==1))){ + a29 = 5; + a19 = 1; + a0 = 1; + a7 = 1; + a14 = 8; + return -1; + } else if((!(a0==1)&&(((a7==1)&&((a28==1)&&((((((a29==7)&&((a19==5)&&((a14==8)&&(input==4))))&&!(a24==1))&&(a25==1))&&!(a11==1))&&(a22==1))))&&!(a20==1)))){ + a0 = 1; + a29 = 9; + a25 = 0; + a19 = 3; + return 21; + } else if(((a20==1)&&(((a11==1)&&(((a7==1)&&((a29==6)&&(((((a24==1)&&(!(a0==1)&&(input==2)))&&(a22==1))&&(a19==3))&&(a25==1))))&&(a28==1)))&&(a14==9)))){ + a14 = 8; + a7 = 0; + a29 = 9; + a24 = 0; + a25 = 0; + return 21; + } else if((!(a25==1)&&((!(a0==1)&&((a14==8)&&((a24==1)&&(((a19==3)&&(!(a11==1)&&((((input==2)&&((a29==5)||(a29==6)))&&(a28==1))&&!(a7==1))))&&(a22==1)))))&&!(a20==1)))){ + a19 = 4; + a11 = 1; + a20 = 1; + a0 = 1; + a24 = 0; + a29 = 8; + a25 = 1; + a14 = 9; + return 24; + } else if(((((((a20==1)&&(((a14==9)&&((a19==4)&&(((a11==1)&&((a28==1)&&(input==5)))&&(a29==5))))&&(a22==1)))&&(a7==1))&&!(a0==1))&&!(a24==1))&&!(a25==1))){ + a14 = 8; + a7 = 0; + a24 = 1; + a19 = 3; + a29 = 6; + return 23; + } else if((((a14==9)&&((!(a7==1)&&(((a22==1)&&(((a28==1)&&((a25==1)&&((((a19==4)&&(a29==5))||(((a29==8)&&(a19==3))||((a29==9)&&(a19==3))))&&(input==1))))&&!(a11==1)))&&(a0==1)))&&(a20==1)))&&(a24==1))){ + a19 = 2; + a20 = 0; + a7 = 1; + a29 = 7; + a11 = 1; + return 24; + } else if(((a24==1)&&((a22==1)&&((((!(a11==1)&&(!(a0==1)&&((!(a20==1)&&((input==2)&&(((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))))&&(a28==1))))&&!(a7==1))&&!(a25==1))&&(a14==8))))){ + a29 = 6; + a24 = 0; + a11 = 1; + a19 = 2; + return 24; + } else if((((a20==1)&&((a22==1)&&((a28==1)&&(((a7==1)&&((!(a25==1)&&((a14==8)&&(((input==6)&&(((a29==7)||(a29==8))||(a29==9)))&&(a19==4))))&&(a24==1)))&&!(a11==1)))))&&!(a0==1))){ + a25 = 1; + a11 = 1; + a29 = 5; + a7 = 0; + a19 = 2; + return 21; + } else if(((((a22==1)&&(!(a0==1)&&((!(a11==1)&&((a28==1)&&((a7==1)&&((a25==1)&&((((a29==6)&&(a19==5))||(((a19==4)&&(a29==9))||((a29==5)&&(a19==5))))&&(input==4))))))&&!(a24==1))))&&(a14==8))&&(a20==1))){ + a29 = 6; + a0 = 1; + a19 = 4; + a20 = 0; + a25 = 0; + return 24; + } else if(((a20==1)&&(((a28==1)&&((a14==9)&&(!(a25==1)&&(((!(a7==1)&&(((input==1)&&(((a29==6)&&(a19==4))||(((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))))&&!(a24==1)))&&(a0==1))&&(a22==1)))))&&(a11==1)))){ + a24 = 1; + a19 = 2; + a25 = 1; + a14 = 10; + a20 = 0; + a29 = 5; + return 21; + } else if((((((((a7==1)&&((a19==4)&&((a29==9)&&((((a0==1)&&(input==5))&&(a28==1))&&(a24==1)))))&&!(a20==1))&&(a22==1))&&(a11==1))&&(a14==10))&&(a25==1))){ + a7 = 0; + a11 = 0; + a24 = 0; + a14 = 8; + a29 = 5; + return -1; + } else if(((a20==1)&&(((a0==1)&&((a24==1)&&(((((((a28==1)&&((input==1)&&((a29==7)||(a29==8))))&&(a19==2))&&(a22==1))&&(a14==8))&&!(a11==1))&&(a7==1))))&&(a25==1)))){ + a11 = 1; + a19 = 5; + a29 = 8; + a0 = 0; + a7 = 0; + return 21; + } else if(((!(a24==1)&&((!(a7==1)&&((a28==1)&&((a0==1)&&(!(a20==1)&&((a14==8)&&(((((a25==1)&&(a29==9))&&(a19==5))||((a19==1)&&(!(a25==1)&&(a29==5))))&&(input==2)))))))&&(a22==1)))&&(a11==1))){ + a29 = 8; + a25 = 1; + a20 = 1; + a24 = 1; + a0 = 0; + a11 = 0; + a19 = 2; + return 21; + } else if(((a20==1)&&(!(a0==1)&&((((!(a24==1)&&((a14==9)&&(((((!(a7==1)&&(a25==1))&&(a29==6))&&(a19==1))||((((!(a25==1)&&(a7==1))&&(a29==9))&&(a19==5))||((a19==1)&&((a29==5)&&((a25==1)&&!(a7==1))))))&&(input==4))))&&(a22==1))&&(a11==1))&&(a28==1))))){ + a0 = 1; + a19 = 2; + a25 = 0; + a7 = 0; + a24 = 1; + a29 = 7; + return 23; + } else if((((((a28==1)&&(!(a0==1)&&(!(a11==1)&&((a25==1)&&((((a19==2)&&((a7==1)&&(input==6)))&&(a22==1))&&(a24==1))))))&&(a29==7))&&(a14==8))&&!(a20==1))){ + a11 = 1; + a29 = 9; + a24 = 0; + a19 = 4; + a14 = 9; + return 23; + } else if((((a7==1)&&(((((a22==1)&&((((a28==1)&&(((a14==8)&&(input==1))&&(a0==1)))&&(a11==1))&&!(a25==1)))&&!(a20==1))&&(a19==5))&&(a24==1)))&&(a29==9))){ + a20 = 1; + a25 = 1; + a19 = 2; + a7 = 0; + a29 = 5; + a11 = 0; + return 21; + } else if(((!(a24==1)&&((a28==1)&&((!(a7==1)&&((a11==1)&&(((a22==1)&&(((((a29==5)&&!(a25==1))&&(a19==1))||((((a25==1)&&(a29==8))&&(a19==5))||(((a29==9)&&(a25==1))&&(a19==5))))&&(input==3)))&&(a20==1))))&&(a14==8))))&&(a0==1))){ + a25 = 1; + a29 = 6; + a0 = 0; + a7 = 1; + a19 = 5; + return 23; + } else if((((a22==1)&&(!(a11==1)&&((!(a0==1)&&((a28==1)&&((input==6)&&((((a19==5)&&((a29==9)&&(!(a25==1)&&(!(a7==1)&&(a20==1)))))||((a19==1)&&((((a7==1)&&!(a20==1))&&(a25==1))&&(a29==5))))||((a19==1)&&((a29==6)&&((a25==1)&&(!(a20==1)&&(a7==1)))))))))&&(a14==8))))&&(a24==1))){ + a29 = 5; + a7 = 1; + a11 = 1; + a19 = 1; + a20 = 1; + a25 = 0; + return 21; + } else if((!(a0==1)&&(((((a28==1)&&((a14==8)&&((a22==1)&&((a25==1)&&(!(a20==1)&&((((a29==6)||(a29==7))&&(input==5))&&!(a24==1)))))))&&(a19==4))&&(a7==1))&&!(a11==1)))){ + a19 = 5; + a29 = 8; + a25 = 0; + a24 = 1; + a14 = 9; + return 21; + } else if((((((((a19==5)&&((a22==1)&&(!(a25==1)&&(!(a20==1)&&((a28==1)&&(!(a0==1)&&(input==1)))))))&&!(a24==1))&&!(a11==1))&&(a7==1))&&(a14==9))&&(a29==8))){ + a11 = 1; + a14 = 8; + a19 = 1; + return 23; + } else if((((a24==1)&&(!(a0==1)&&((((a28==1)&&((((a20==1)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==2))&&(a11==1)))&&(a14==9))&&(a19==1)))&&(a22==1))&&!(a25==1))))&&(a7==1))){ + a24 = 0; + a14 = 8; + a29 = 7; + a20 = 0; + a0 = 1; + a19 = 3; + a11 = 0; + return 24; + } else if((((a29==9)&&((a24==1)&&((((a25==1)&&(!(a11==1)&&(((a14==9)&&(((input==6)&&(a28==1))&&(a22==1)))&&(a0==1))))&&(a20==1))&&(a19==1))))&&(a7==1))){ + a14 = 8; + a11 = 1; + a29 = 5; + return -1; + } else if((!(a0==1)&&((a25==1)&&(((a14==9)&&((a7==1)&&((((((a19==3)&&(!(a11==1)&&(input==2)))&&(a28==1))&&(a22==1))&&(a29==8))&&(a20==1))))&&!(a24==1))))){ + a14 = 8; + a29 = 7; + a19 = 4; + a11 = 1; + a24 = 1; + a25 = 0; + return 23; + } else if(((a0==1)&&((((a22==1)&&((a14==9)&&((a20==1)&&(((a28==1)&&(((a19==2)&&((((a29==6)||(a29==7))||(a29==8))&&(input==3)))&&!(a7==1)))&&!(a24==1)))))&&(a11==1))&&!(a25==1)))){ + a24 = 1; + a14 = 8; + a0 = 0; + a7 = 1; + a19 = 1; + a20 = 0; + a29 = 8; + return 24; + } else if((!(a25==1)&&((!(a7==1)&&(((((a22==1)&&((((a14==9)&&((input==6)&&!(a11==1)))&&(a28==1))&&(a20==1)))&&(a29==7))&&(a24==1))&&(a19==3)))&&!(a0==1)))){ + a29 = 5; + a7 = 1; + a11 = 1; + a0 = 1; + a19 = 1; + a25 = 1; + a14 = 8; + return -1; + } else if((((a28==1)&&(!(a24==1)&&((((((a19==5)&&((a14==8)&&(((input==4)&&!(a0==1))&&!(a20==1))))&&!(a7==1))&&(a22==1))&&(a29==8))&&!(a11==1))))&&!(a25==1))){ + a25 = 1; + a0 = 1; + a19 = 3; + a29 = 7; + return 23; + } else if(((a14==8)&&(((a22==1)&&(!(a7==1)&&(((((a0==1)&&(((a25==1)&&(((a29==8)||(a29==9))&&(input==5)))&&(a28==1)))&&(a20==1))&&(a24==1))&&!(a11==1))))&&(a19==1)))){ + a0 = 0; + a29 = 6; + a11 = 1; + a25 = 0; + a19 = 4; + a20 = 0; + return 24; + } else if(((((a14==9)&&(((a22==1)&&(!(a24==1)&&(((((!(a11==1)&&(input==1))&&(a19==4))&&!(a25==1))&&(a28==1))&&(a29==9))))&&(a7==1)))&&(a0==1))&&!(a20==1))){ + a24 = 1; + a11 = 1; + a19 = 3; + return 21; + } else if(((((a14==9)&&(((a22==1)&&((a25==1)&&((a24==1)&&(((((input==2)&&(a7==1))&&!(a11==1))&&(a29==5))&&(a19==2)))))&&(a0==1)))&&(a20==1))&&(a28==1))){ + a11 = 1; + a0 = 0; + a14 = 8; + a19 = 4; + a25 = 0; + return 23; + } else if(((((a29==9)&&((a19==3)&&(((((a14==8)&&((a22==1)&&((a28==1)&&((input==5)&&(a25==1)))))&&!(a0==1))&&(a20==1))&&(a11==1))))&&(a7==1))&&(a24==1))){ + a0 = 1; + a7 = 0; + a11 = 0; + a14 = 9; + a25 = 0; + a20 = 0; + return 21; + } else if(((a25==1)&&(((a28==1)&&((a29==9)&&((a14==9)&&((a20==1)&&((a19==4)&&(!(a24==1)&&((a11==1)&&(!(a0==1)&&((input==6)&&(a7==1))))))))))&&(a22==1)))){ + a25 = 0; + a19 = 1; + a29 = 5; + a0 = 1; + a7 = 0; + return 21; + } else if(((a7==1)&&((a25==1)&&(((a11==1)&&(((a24==1)&&((a14==8)&&((((a28==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==1)))&&(a19==4))&&!(a0==1))))&&(a22==1)))&&(a20==1))))){ + a7 = 0; + a0 = 1; + a29 = 6; + return 23; + } else if((((a28==1)&&((a7==1)&&((!(a11==1)&&(((!(a0==1)&&((a25==1)&&((((a29==6)||(a29==7))&&(input==4))&&(a20==1))))&&(a14==9))&&(a22==1)))&&(a19==4))))&&!(a24==1))){ + a11 = 1; + a0 = 1; + a29 = 5; + a24 = 1; + a19 = 1; + a14 = 8; + return -1; + } else if(((!(a7==1)&&((((a19==3)&&(!(a20==1)&&((a22==1)&&(((a28==1)&&((((a29==6)||(a29==7))&&(input==5))&&(a0==1)))&&!(a25==1)))))&&(a24==1))&&!(a11==1)))&&(a14==8))){ + a29 = 7; + a24 = 0; + return 24; + } else if((((a22==1)&&(((((a24==1)&&((a25==1)&&(((((a14==8)&&(input==3))&&!(a20==1))&&(a19==3))&&!(a0==1))))&&(a29==8))&&!(a11==1))&&(a7==1)))&&(a28==1))){ + a29 = 6; + a24 = 0; + a25 = 0; + a0 = 1; + a19 = 1; + a7 = 0; + return 23; + } else if((!(a25==1)&&((a22==1)&&(((((a19==3)&&((a29==6)&&(((a14==8)&&(((input==3)&&(a28==1))&&!(a24==1)))&&(a0==1))))&&(a11==1))&&(a7==1))&&!(a20==1))))){ + a0 = 0; + a29 = 9; + a7 = 0; + return 23; + } else if(((a14==9)&&(((((((((((((a29==8)&&(a25==1))&&(a19==5))||((a19==5)&&((a29==9)&&(a25==1))))||((!(a25==1)&&(a29==5))&&(a19==1)))&&(input==2))&&!(a0==1))&&(a7==1))&&(a20==1))&&(a22==1))&&(a28==1))&&!(a11==1))&&(a24==1)))){ + a19 = 5; + a29 = 9; + a25 = 0; + a0 = 1; + a24 = 0; + return 23; + } else if((((!(a24==1)&&((!(a7==1)&&(((a22==1)&&(!(a11==1)&&((((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))||((a19==4)&&(a29==6)))&&(input==3))&&!(a20==1))))&&(a28==1)))&&(a0==1)))&&(a14==8))&&(a25==1))){ + a29 = 6; + a7 = 1; + a24 = 1; + a19 = 5; + a25 = 0; + a14 = 9; + return 24; + } else if((((a22==1)&&((a29==7)&&((a19==4)&&((!(a0==1)&&(((((!(a24==1)&&(input==5))&&!(a20==1))&&(a11==1))&&(a28==1))&&(a7==1)))&&(a14==8)))))&&!(a25==1))){ + a29 = 5; + a11 = 0; + a0 = 1; + a7 = 0; + return 23; + } else if(((a14==8)&&((a0==1)&&(((((a20==1)&&((a22==1)&&((a28==1)&&(((input==2)&&((((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))||((a19==2)&&(a29==6))))&&!(a7==1)))))&&!(a11==1))&&!(a25==1))&&!(a24==1))))){ + a25 = 1; + a29 = 7; + a11 = 1; + a14 = 9; + a20 = 0; + a19 = 5; + return 24; + } else if(((!(a24==1)&&((a20==1)&&(((a29==7)&&(!(a7==1)&&((((a22==1)&&((a14==9)&&((input==5)&&(a0==1))))&&!(a25==1))&&(a28==1))))&&!(a11==1))))&&(a19==5))){ + a14 = 8; + a20 = 0; + a0 = 0; + a19 = 1; + a25 = 1; + a24 = 1; + a29 = 6; + return -1; + } else if((!(a11==1)&&((((a28==1)&&(!(a20==1)&&(((a0==1)&&((a19==5)&&(!(a7==1)&&((((a29==6)||(a29==7))&&(input==6))&&(a24==1)))))&&!(a25==1))))&&(a14==9))&&(a22==1)))){ + a25 = 1; + a20 = 1; + a11 = 1; + a29 = 9; + a19 = 3; + a24 = 0; + return 23; + } else if(((!(a0==1)&&((a28==1)&&(((a22==1)&&(!(a24==1)&&((((!(a11==1)&&((input==6)&&(a19==4)))&&(a25==1))&&!(a7==1))&&(a14==8))))&&(a29==5))))&&(a20==1))){ + a11 = 1; + a24 = 1; + a0 = 1; + a19 = 1; + a7 = 1; + return -1; + } else if(((!(a11==1)&&((((a19==2)&&((a29==7)&&(!(a7==1)&&((a22==1)&&(((a14==8)&&((input==2)&&!(a20==1)))&&(a28==1))))))&&(a0==1))&&(a25==1)))&&!(a24==1))){ + a19 = 3; + a20 = 1; + a0 = 0; + a11 = 1; + a24 = 1; + a29 = 9; + return 24; + } else if((!(a25==1)&&(((((!(a0==1)&&((!(a24==1)&&(!(a20==1)&&((a28==1)&&((input==4)&&((a29==9)||((a29==7)||(a29==8)))))))&&!(a11==1)))&&(a22==1))&&(a7==1))&&(a19==3))&&(a14==8)))){ + a11 = 1; + a19 = 2; + a24 = 1; + a29 = 7; + return 24; + } else if(((a24==1)&&((a14==9)&&((a7==1)&&(!(a25==1)&&((a28==1)&&(((a22==1)&&(((((((a29==5)||(a29==6))||(a29==7))&&(input==6))&&(a19==2))&&(a11==1))&&!(a20==1)))&&(a0==1)))))))){ + a20 = 1; + a29 = 6; + a25 = 1; + a24 = 0; + a0 = 0; + a19 = 1; + a11 = 0; + a14 = 8; + return 24; + } else if((((((a29==5)&&((((a28==1)&&((((a22==1)&&(!(a0==1)&&(input==4)))&&(a7==1))&&(a11==1)))&&!(a20==1))&&!(a24==1)))&&!(a25==1))&&(a14==8))&&(a19==5))){ + a19 = 1; + a20 = 1; + a24 = 1; + a29 = 7; + return 24; + } else if(((a20==1)&&((a19==1)&&(((a29==5)&&(((((a25==1)&&((a11==1)&&((a14==9)&&((input==6)&&!(a7==1)))))&&(a28==1))&&(a22==1))&&!(a0==1)))&&(a24==1))))){ + a14 = 8; + a7 = 1; + a0 = 1; + return -1; + } else if(((a11==1)&&(((a22==1)&&((((a24==1)&&((a0==1)&&((((input==5)&&((((a19==4)&&(a29==8))||((a29==9)&&(a19==4)))||((a19==5)&&(a29==5))))&&(a20==1))&&(a14==8))))&&!(a7==1))&&(a25==1)))&&(a28==1)))){ + a29 = 9; + a20 = 0; + a7 = 1; + a19 = 3; + return 23; + } else if(((a28==1)&&((((a20==1)&&(!(a24==1)&&((a14==8)&&((((a22==1)&&(((((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))||((a29==6)&&(a19==2)))&&(input==5)))&&(a25==1))&&(a11==1)))))&&!(a7==1))&&(a0==1)))){ + a7 = 1; + a20 = 0; + a25 = 0; + a24 = 1; + a19 = 3; + a29 = 8; + a0 = 0; + return 23; + } else if((((((((a19==5)&&(((!(a0==1)&&((((a29==5)||(a29==6))&&(input==3))&&(a14==9)))&&(a22==1))&&!(a7==1)))&&(a20==1))&&(a28==1))&&!(a11==1))&&!(a24==1))&&!(a25==1))){ + a19 = 1; + a7 = 1; + a24 = 1; + a29 = 8; + a11 = 1; + a0 = 1; + return -1; + } else if(((!(a7==1)&&(!(a25==1)&&(!(a20==1)&&((a0==1)&&(((a19==5)&&((((a28==1)&&((input==5)&&(((a29==5)||(a29==6))||(a29==7))))&&(a24==1))&&(a14==8)))&&(a22==1))))))&&(a11==1))){ + a20 = 1; + a7 = 1; + a19 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if(((a19==2)&&((a28==1)&&((!(a25==1)&&(!(a20==1)&&((((a7==1)&&(((a11==1)&&((a29==9)&&(input==4)))&&(a24==1)))&&(a22==1))&&(a0==1))))&&(a14==8))))){ + a29 = 5; + a19 = 4; + a24 = 0; + a7 = 0; + return 23; + } else if((((((((a28==1)&&((a25==1)&&((a14==8)&&(!(a0==1)&&(((input==4)&&((a29==8)||(a29==9)))&&!(a20==1))))))&&(a22==1))&&(a19==2))&&!(a24==1))&&!(a7==1))&&!(a11==1))){ + a20 = 1; + a7 = 1; + a11 = 1; + a29 = 7; + a19 = 3; + return 24; + } else if(((((a22==1)&&((!(a24==1)&&(!(a20==1)&&(((((input==1)&&((((a29==9)&&(a19==4))||((a29==5)&&(a19==5)))||((a29==6)&&(a19==5))))&&(a28==1))&&(a0==1))&&!(a11==1))))&&(a14==8)))&&(a7==1))&&!(a25==1))){ + a25 = 1; + a20 = 1; + a11 = 1; + a7 = 0; + a19 = 4; + a24 = 1; + a29 = 6; + return 23; + } else if((!(a24==1)&&((((a14==9)&&(!(a11==1)&&((a28==1)&&((a19==2)&&((a7==1)&&((!(a0==1)&&(((a29==7)||(a29==8))&&(input==2)))&&(a25==1)))))))&&(a22==1))&&(a20==1)))){ + a14 = 8; + a19 = 1; + a24 = 1; + a0 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if(((a7==1)&&(!(a0==1)&&((a28==1)&&((a20==1)&&((a14==8)&&(!(a24==1)&&((a25==1)&&(((a22==1)&&((((a19==4)&&(a29==6))||(((a29==9)&&(a19==3))||((a29==5)&&(a19==4))))&&(input==3)))&&(a11==1)))))))))){ + a19 = 1; + a25 = 0; + a24 = 1; + a7 = 0; + a11 = 0; + a20 = 0; + a29 = 9; + return 24; + } else if(((a29==7)&&((!(a11==1)&&((((((!(a0==1)&&(!(a7==1)&&((a22==1)&&(input==4))))&&(a14==9))&&(a20==1))&&!(a24==1))&&(a28==1))&&(a25==1)))&&(a19==1)))){ + a20 = 0; + a19 = 3; + a7 = 1; + a25 = 0; + a0 = 1; + a11 = 1; + a29 = 9; + return -1; + } else if(((a25==1)&&(((a7==1)&&(((a11==1)&&(((a20==1)&&(((a19==1)&&((((a29==6)||(a29==7))&&(input==1))&&(a28==1)))&&(a22==1)))&&(a0==1)))&&!(a24==1)))&&(a14==9)))){ + a25 = 0; + a7 = 0; + a29 = 7; + a24 = 1; + a14 = 10; + return 23; + } else if((((a20==1)&&(((a19==4)&&(!(a25==1)&&((a11==1)&&((((a22==1)&&(!(a24==1)&&((input==5)&&(((a29==7)||(a29==8))||(a29==9)))))&&!(a7==1))&&(a28==1)))))&&(a14==9)))&&(a0==1))){ + a19 = 2; + a25 = 1; + a14 = 10; + a20 = 0; + a29 = 7; + a24 = 1; + return 21; + } else if((((((a14==8)&&(((((a25==1)&&(((((a29==9)||((a29==7)||(a29==8)))&&(input==4))&&(a11==1))&&!(a7==1)))&&!(a0==1))&&!(a20==1))&&(a19==1)))&&!(a24==1))&&(a22==1))&&(a28==1))){ + a7 = 1; + a19 = 4; + a25 = 0; + a24 = 1; + a20 = 1; + a29 = 6; + return 24; + } else if(((a0==1)&&(((a24==1)&&((((a19==4)&&((((a22==1)&&(((input==3)&&((a29==8)||((a29==6)||(a29==7))))&&!(a25==1)))&&(a28==1))&&(a20==1)))&&!(a7==1))&&(a14==9)))&&(a11==1)))){ + a29 = 9; + a19 = 3; + a24 = 0; + a14 = 8; + a11 = 0; + a7 = 1; + a20 = 0; + return 23; + } else if((((a28==1)&&(!(a24==1)&&((((((!(a20==1)&&(!(a11==1)&&((input==6)&&((a29==7)||(a29==8)))))&&!(a0==1))&&!(a25==1))&&(a19==5))&&!(a7==1))&&(a14==9))))&&(a22==1))){ + a29 = 8; + a11 = 1; + a7 = 1; + a0 = 1; + return 23; + } else if(((((((a14==8)&&(((a20==1)&&(!(a7==1)&&((a24==1)&&((!(a25==1)&&(input==6))&&(a22==1)))))&&(a28==1)))&&(a19==1))&&(a11==1))&&(a29==7))&&!(a0==1))){ + a7 = 1; + a0 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if(((a22==1)&&((!(a24==1)&&((a14==9)&&((a25==1)&&(((a20==1)&&((a7==1)&&(((((a19==2)&&(a29==5))||(((a19==1)&&(a29==8))||((a19==1)&&(a29==9))))&&(input==4))&&(a0==1))))&&(a11==1)))))&&(a28==1)))){ + a25 = 0; + a19 = 5; + a0 = 0; + a14 = 8; + a11 = 0; + a29 = 8; + a24 = 1; + return -1; + } else if(((a0==1)&&((((!(a11==1)&&(!(a24==1)&&((((!(a7==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==4)))&&(a19==1))&&(a14==8))&&!(a20==1))))&&(a25==1))&&(a22==1))&&(a28==1)))){ + a19 = 2; + a7 = 1; + a25 = 0; + a29 = 8; + return 24; + } else if(((a20==1)&&((a28==1)&&(((a0==1)&&(!(a7==1)&&(((!(a11==1)&&(((a25==1)&&((a22==1)&&(input==5)))&&(a19==5)))&&(a29==6))&&(a14==8))))&&!(a24==1))))){ + a24 = 1; + a7 = 1; + a29 = 5; + a19 = 1; + a11 = 1; + return -1; + } else if(((a22==1)&&((((((a28==1)&&((a20==1)&&(!(a0==1)&&(!(a11==1)&&((a14==9)&&((input==2)&&((a29==8)||(a29==9))))))))&&(a25==1))&&!(a24==1))&&(a7==1))&&(a19==4)))){ + a0 = 1; + a7 = 0; + a29 = 9; + a20 = 0; + a24 = 1; + return -1; + } else if((!(a7==1)&&(!(a20==1)&&((((a24==1)&&(((a14==8)&&((a29==9)&&((a25==1)&&((!(a11==1)&&(input==6))&&(a28==1)))))&&(a19==4)))&&(a22==1))&&(a0==1))))){ + a29 = 5; + a11 = 1; + a19 = 1; + a20 = 1; + a7 = 1; + return -1; + } else if(((((a28==1)&&(((((a22==1)&&((((a0==1)&&((input==3)&&(((a29==7)||(a29==8))||(a29==9))))&&(a25==1))&&!(a7==1)))&&!(a20==1))&&(a14==8))&&(a11==1)))&&(a19==4))&&!(a24==1))){ + a19 = 2; + a20 = 1; + a0 = 0; + a11 = 0; + a24 = 1; + a29 = 5; + return 24; + } else if(((((((((a24==1)&&(!(a20==1)&&(((a28==1)&&((a14==8)&&(input==5)))&&!(a0==1))))&&(a19==2))&&(a29==8))&&!(a11==1))&&!(a7==1))&&(a25==1))&&(a22==1))){ + a7 = 1; + a20 = 1; + a0 = 1; + a19 = 1; + a29 = 5; + a11 = 1; + return -1; + } else if(((a24==1)&&((!(a0==1)&&(!(a7==1)&&((a22==1)&&((a19==2)&&((((a25==1)&&(((input==4)&&((a29==9)||((a29==7)||(a29==8))))&&(a28==1)))&&!(a11==1))&&(a20==1))))))&&(a14==9)))){ + a20 = 0; + a11 = 1; + a29 = 7; + a7 = 1; + a0 = 1; + return 24; + } else if(((((((a11==1)&&(((!(a0==1)&&(((((a19==5)&&((a25==1)&&(a29==9)))||((!(a25==1)&&(a29==5))&&(a19==1)))||((!(a25==1)&&(a29==6))&&(a19==1)))&&(input==5)))&&!(a20==1))&&(a28==1)))&&(a22==1))&&(a7==1))&&(a14==9))&&!(a24==1))){ + a29 = 6; + a24 = 1; + a7 = 0; + a19 = 4; + a25 = 1; + a14 = 8; + return 24; + } else if((((((a11==1)&&((a0==1)&&(((!(a24==1)&&((a20==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==5))&&(a28==1))))&&(a14==9))&&(a7==1))))&&!(a25==1))&&(a22==1))&&(a19==2))){ + a25 = 1; + a19 = 1; + a14 = 8; + a24 = 1; + a29 = 5; + return -1; + } else if(((a0==1)&&((a22==1)&&(!(a7==1)&&((((a28==1)&&((a29==5)&&((a19==4)&&((((input==2)&&!(a24==1))&&!(a20==1))&&(a14==9)))))&&!(a11==1))&&!(a25==1)))))){ + a19 = 2; + a11 = 1; + a20 = 1; + a14 = 8; + a0 = 0; + a7 = 1; + a24 = 1; + a29 = 7; + return 23; + } else if(((((a14==9)&&(((a20==1)&&(((((a19==2)&&(((input==5)&&(a22==1))&&(a25==1)))&&(a0==1))&&(a7==1))&&!(a11==1)))&&(a29==6)))&&(a28==1))&&(a24==1))){ + a19 = 4; + a14 = 8; + a29 = 7; + a7 = 0; + a0 = 0; + return -1; + } else if(((a14==8)&&(!(a11==1)&&((a19==4)&&((!(a25==1)&&(((!(a0==1)&&(!(a24==1)&&((a28==1)&&((input==5)&&((a29==7)||((a29==5)||(a29==6)))))))&&(a7==1))&&!(a20==1)))&&(a22==1)))))){ + a7 = 0; + a25 = 1; + a29 = 5; + a24 = 1; + a11 = 1; + return 24; + } else if(((a29==8)&&((a19==1)&&((a22==1)&&((!(a11==1)&&((((((a14==8)&&((input==3)&&(a25==1)))&&(a28==1))&&!(a24==1))&&!(a7==1))&&(a20==1)))&&!(a0==1)))))){ + a0 = 1; + a29 = 5; + a24 = 1; + a7 = 1; + a11 = 1; + return -1; + } else if(((a24==1)&&((((a28==1)&&(((((a14==10)&&(!(a20==1)&&((a19==5)&&((input==4)&&!(a25==1)))))&&(a0==1))&&(a29==5))&&(a22==1)))&&(a11==1))&&!(a7==1)))){ + a19 = 1; + a7 = 1; + a20 = 1; + a14 = 8; + a25 = 1; + return -1; + } else if((((a28==1)&&((!(a7==1)&&(((a14==10)&&((((a29==6)&&((a0==1)&&((input==6)&&!(a20==1))))&&(a11==1))&&!(a25==1)))&&(a22==1)))&&(a24==1)))&&(a19==5))){ + a29 = 7; + a7 = 1; + a25 = 1; + a19 = 4; + return -1; + } else if((((a20==1)&&((a29==9)&&(!(a24==1)&&(((((a22==1)&&((a7==1)&&(((a0==1)&&(input==4))&&!(a11==1))))&&!(a25==1))&&(a28==1))&&(a19==1)))))&&(a14==8))){ + a19 = 4; + a7 = 0; + a25 = 1; + a11 = 1; + a14 = 9; + a29 = 5; + return 24; + } else if((((a7==1)&&(((((((a19==5)&&(!(a11==1)&&(((a25==1)&&(input==4))&&(a14==8))))&&(a0==1))&&(a22==1))&&(a24==1))&&(a29==9))&&(a20==1)))&&(a28==1))){ + a29 = 5; + a11 = 1; + a19 = 1; + return -1; + } else if(((a19==4)&&((a20==1)&&((a0==1)&&((a22==1)&&((a25==1)&&((((a28==1)&&((((input==5)&&((a29==8)||((a29==6)||(a29==7))))&&!(a11==1))&&(a14==8)))&&!(a24==1))&&!(a7==1)))))))){ + a20 = 0; + a14 = 9; + a7 = 1; + a25 = 0; + a29 = 7; + a19 = 2; + a11 = 1; + return 24; + } else if((((((a19==3)&&((a14==8)&&((a28==1)&&((((((input==5)&&((a29==7)||((a29==5)||(a29==6))))&&!(a11==1))&&(a25==1))&&!(a24==1))&&(a20==1)))))&&(a0==1))&&!(a7==1))&&(a22==1))){ + a29 = 9; + a19 = 2; + a0 = 0; + a20 = 0; + a7 = 1; + a11 = 1; + a24 = 1; + return 24; + } else if((((a19==5)&&((((((((a24==1)&&(!(a7==1)&&((input==4)&&((a29==8)||(a29==9)))))&&(a28==1))&&!(a0==1))&&(a22==1))&&(a14==8))&&(a25==1))&&(a11==1)))&&!(a20==1))){ + a29 = 5; + a20 = 1; + return -1; + } else if((((a29==5)&&(((a0==1)&&((a19==3)&&(((a14==9)&&((!(a7==1)&&((a28==1)&&((a25==1)&&(input==4))))&&!(a11==1)))&&!(a24==1))))&&(a22==1)))&&(a20==1))){ + a19 = 1; + a24 = 1; + a7 = 1; + a29 = 9; + return 23; + } else if(((a19==2)&&((a22==1)&&((a14==8)&&((a24==1)&&((!(a7==1)&&(((a28==1)&&((!(a11==1)&&((input==1)&&(((a29==5)||(a29==6))||(a29==7))))&&(a25==1)))&&!(a20==1)))&&(a0==1))))))){ + a24 = 0; + a19 = 1; + a29 = 9; + return 23; + } else if((((a28==1)&&((a29==9)&&(!(a11==1)&&((((a7==1)&&((a20==1)&&((a19==4)&&(((input==6)&&!(a25==1))&&!(a24==1)))))&&(a0==1))&&(a22==1)))))&&(a14==8))){ + a11 = 1; + a29 = 5; + a25 = 1; + a19 = 1; + a24 = 1; + return -1; + } else if((((a0==1)&&(!(a20==1)&&(((a7==1)&&(((a19==2)&&((a14==8)&&((a22==1)&&((((a29==7)||(a29==8))&&(input==2))&&(a28==1)))))&&(a11==1)))&&!(a24==1))))&&(a25==1))){ + a25 = 0; + a19 = 1; + a29 = 9; + a0 = 0; + a24 = 1; + return 24; + } else if(((a22==1)&&(!(a24==1)&&(((a20==1)&&((((a28==1)&&((a0==1)&&(!(a25==1)&&((a19==2)&&((((a29==6)||(a29==7))||(a29==8))&&(input==6))))))&&(a14==9))&&(a11==1)))&&!(a7==1))))){ + a0 = 0; + a14 = 8; + a24 = 1; + a29 = 7; + a20 = 0; + return 23; + } else if(((a19==5)&&((a0==1)&&(((!(a11==1)&&(((a7==1)&&((!(a25==1)&&((a28==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==4))))&&(a20==1)))&&(a14==8)))&&(a22==1))&&(a24==1))))){ + a20 = 0; + a0 = 0; + a7 = 0; + a19 = 2; + a25 = 1; + a11 = 1; + a29 = 6; + return 21; + } else if((((a14==8)&&(!(a11==1)&&((((a24==1)&&((((a25==1)&&(((((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))||((a19==2)&&(a29==6)))&&(input==2)))&&(a20==1))&&(a28==1)))&&(a7==1))&&(a22==1))))&&!(a0==1))){ + a29 = 9; + a19 = 5; + a11 = 1; + a7 = 0; + a25 = 0; + return 24; + } else if(((((a22==1)&&(((a14==8)&&(!(a20==1)&&(((((a28==1)&&((a0==1)&&(input==1)))&&!(a11==1))&&(a25==1))&&(a7==1))))&&(a24==1)))&&(a19==2))&&(a29==9))){ + a11 = 1; + a29 = 5; + a20 = 1; + a19 = 1; + return -1; + } else if((((((a22==1)&&((a24==1)&&(!(a11==1)&&((!(a0==1)&&((input==2)&&((((a19==5)&&((a25==1)&&(a29==8)))||((a19==5)&&((a25==1)&&(a29==9))))||((a19==1)&&(!(a25==1)&&(a29==5))))))&&(a28==1)))))&&!(a7==1))&&(a20==1))&&(a14==9))){ + a19 = 5; + a7 = 1; + a29 = 5; + a11 = 1; + a25 = 1; + a14 = 8; + return 23; + } else if((((a24==1)&&((!(a25==1)&&((a19==4)&&((a29==7)&&((a14==8)&&((a0==1)&&((a7==1)&&((!(a20==1)&&(input==5))&&!(a11==1))))))))&&(a22==1)))&&(a28==1))){ + a19 = 2; + a29 = 6; + a7 = 0; + a24 = 0; + a25 = 1; + return 21; + } else if(((a7==1)&&(((a28==1)&&((((((((input==2)&&(((a29==9)&&(a19==3))||((a29==5)&&(a19==4))))&&(a0==1))&&(a24==1))&&(a14==9))&&(a20==1))&&!(a25==1))&&(a22==1)))&&(a11==1)))){ + a24 = 0; + a0 = 0; + a19 = 3; + a29 = 8; + a14 = 8; + a20 = 0; + a11 = 0; + return -1; + } else if(((((a19==3)&&((a29==9)&&(((!(a20==1)&&((a28==1)&&(((!(a11==1)&&(input==4))&&(a24==1))&&!(a7==1))))&&(a25==1))&&(a0==1))))&&(a14==8))&&(a22==1))){ + a29 = 5; + a7 = 1; + a20 = 1; + a11 = 1; + a19 = 1; + return -1; + } else if(((!(a7==1)&&((((a14==8)&&(((a0==1)&&(!(a25==1)&&((!(a24==1)&&((input==5)&&(((a29==7)||(a29==8))||(a29==9))))&&(a11==1))))&&!(a20==1)))&&(a28==1))&&(a19==2)))&&(a22==1))){ + a24 = 1; + a25 = 1; + a29 = 5; + a19 = 1; + a7 = 1; + a20 = 1; + return -1; + } else if((!(a25==1)&&(!(a11==1)&&((a24==1)&&((!(a7==1)&&(((a20==1)&&((a14==8)&&(((a19==5)&&((input==6)&&((a29==8)||(a29==9))))&&(a0==1))))&&(a22==1)))&&(a28==1)))))){ + a25 = 1; + a29 = 5; + a0 = 0; + a11 = 1; + return 21; + } else if(((((!(a20==1)&&((a19==3)&&(((a28==1)&&(((!(a25==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==2)))&&(a7==1))&&(a11==1)))&&(a24==1))))&&(a14==9))&&(a22==1))&&(a0==1))){ + a0 = 0; + a7 = 0; + a20 = 1; + a24 = 0; + a14 = 8; + a25 = 1; + a29 = 8; + a19 = 5; + return -1; + } else if(((a7==1)&&((a19==3)&&(((a25==1)&&((a24==1)&&(((((a14==9)&&((a22==1)&&((input==6)&&((a29==7)||(a29==8)))))&&!(a20==1))&&!(a11==1))&&(a0==1))))&&(a28==1))))){ + a14 = 8; + a11 = 1; + a19 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if(((a28==1)&&((((a14==8)&&((a0==1)&&(!(a20==1)&&(!(a24==1)&&(((((a19==5)&&((a29==9)&&(a25==1)))||(((a29==5)&&!(a25==1))&&(a19==1)))&&(input==4))&&(a11==1))))))&&(a22==1))&&!(a7==1)))){ + a0 = 0; + a24 = 1; + a19 = 4; + a20 = 1; + a29 = 9; + a25 = 1; + return 23; + } else if((!(a11==1)&&((a24==1)&&((a20==1)&&(((a0==1)&&(!(a25==1)&&(((a14==9)&&((!(a7==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==1)))&&(a19==2)))&&(a22==1))))&&(a28==1)))))){ + a7 = 1; + a24 = 0; + a20 = 0; + a19 = 3; + a14 = 8; + a29 = 7; + return 24; + } else if((((a28==1)&&(((((a19==4)&&((!(a25==1)&&(((a0==1)&&((input==2)&&((a29==7)||(a29==8))))&&(a14==8)))&&(a20==1)))&&!(a7==1))&&(a11==1))&&(a22==1)))&&(a24==1))){ + a24 = 0; + a29 = 8; + a7 = 1; + a19 = 1; + return 24; + } else if((((a22==1)&&((((!(a24==1)&&(!(a25==1)&&(!(a11==1)&&(((a14==9)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==4)))&&(a28==1)))))&&!(a20==1))&&(a19==1))&&(a0==1)))&&(a7==1))){ + a20 = 1; + a11 = 1; + a29 = 5; + a24 = 1; + a7 = 0; + a25 = 1; + a0 = 0; + a14 = 8; + return 24; + } else if(((a28==1)&&(((a19==2)&&((((((a11==1)&&(((a24==1)&&((input==2)&&((a29==7)||(a29==8))))&&!(a7==1)))&&(a0==1))&&(a22==1))&&(a20==1))&&(a14==9)))&&!(a25==1)))){ + a29 = 9; + a20 = 0; + a7 = 1; + a11 = 0; + a14 = 8; + a24 = 0; + return 23; + } else if(((a14==10)&&(((((a19==2)&&((((a22==1)&&(((a28==1)&&(((a29==5)||(a29==6))&&(input==6)))&&(a24==1)))&&(a25==1))&&!(a20==1)))&&(a0==1))&&(a11==1))&&!(a7==1)))){ + a19 = 1; + a29 = 5; + a7 = 1; + a20 = 1; + a14 = 8; + return -1; + } else if((!(a7==1)&&(!(a20==1)&&(((a19==5)&&(!(a11==1)&&(((((a0==1)&&((a22==1)&&((input==4)&&((a29==6)||(a29==7)))))&&(a24==1))&&(a25==1))&&(a14==9))))&&(a28==1))))){ + a11 = 1; + a14 = 8; + a29 = 5; + a19 = 1; + a7 = 1; + a20 = 1; + return -1; + } else if(((a22==1)&&((a25==1)&&(((((a20==1)&&(((a24==1)&&(((((a19==3)&&(a29==6))||(((a19==2)&&(a29==9))||((a19==3)&&(a29==5))))&&(input==6))&&(a28==1)))&&(a14==8)))&&(a7==1))&&!(a11==1))&&(a0==1))))){ + a0 = 0; + a25 = 0; + a29 = 8; + a19 = 5; + a20 = 0; + return 21; + } else if((((a24==1)&&(((a28==1)&&((!(a25==1)&&(!(a0==1)&&(!(a11==1)&&(((input==5)&&(((a19==2)&&(a29==9))||((a19==3)&&(a29==5))))&&(a14==8)))))&&!(a20==1)))&&(a22==1)))&&(a7==1))){ + a11 = 1; + a24 = 0; + a29 = 7; + a19 = 5; + a7 = 0; + return -1; + } else if((((a28==1)&&(!(a11==1)&&(((a14==9)&&((a24==1)&&((a22==1)&&((a19==1)&&(!(a7==1)&&((a25==1)&&((input==5)&&(((a29==7)||(a29==8))||(a29==9)))))))))&&(a20==1))))&&(a0==1))){ + a29 = 8; + a14 = 8; + a24 = 0; + a19 = 5; + a20 = 0; + return 24; + } else if(((!(a11==1)&&((a14==8)&&(!(a25==1)&&(!(a0==1)&&(((((a28==1)&&((a19==4)&&(!(a7==1)&&(input==2))))&&(a22==1))&&(a29==5))&&(a20==1))))))&&!(a24==1))){ + a19 = 2; + a7 = 1; + a24 = 1; + a11 = 1; + a29 = 8; + return 23; + } else if((((a14==8)&&((a25==1)&&((a22==1)&&((((a11==1)&&(!(a7==1)&&(!(a0==1)&&((a19==4)&&((input==1)&&(a24==1))))))&&(a20==1))&&(a28==1)))))&&(a29==9))){ + a7 = 1; + a0 = 1; + a29 = 8; + a25 = 0; + a11 = 0; + a24 = 0; + a20 = 0; + return -1; + } else if(((a14==9)&&(!(a24==1)&&((a20==1)&&((a7==1)&&((a0==1)&&(((a28==1)&&((((a22==1)&&((input==2)&&(((a29==5)||(a29==6))||(a29==7))))&&!(a11==1))&&(a25==1)))&&(a19==2)))))))){ + a11 = 1; + a14 = 8; + a29 = 5; + a24 = 1; + a19 = 1; + return -1; + } else if((((a19==4)&&(((a28==1)&&((((a14==9)&&((a29==7)&&(((!(a7==1)&&(input==5))&&!(a25==1))&&!(a11==1))))&&!(a0==1))&&!(a20==1)))&&(a22==1)))&&!(a24==1))){ + a14 = 8; + a29 = 8; + a7 = 1; + a11 = 1; + a20 = 1; + a24 = 1; + return 24; + } else if(((!(a11==1)&&(((a7==1)&&((((a14==9)&&((a0==1)&&(!(a25==1)&&((a28==1)&&((a24==1)&&(input==6))))))&&(a22==1))&&(a19==5)))&&(a29==7)))&&!(a20==1))){ + a29 = 9; + a25 = 1; + a19 = 2; + a11 = 1; + return 21; + } else if((((a22==1)&&((!(a24==1)&&(((((((a0==1)&&((input==1)&&(((a29==7)||(a29==8))||(a29==9))))&&(a11==1))&&(a19==4))&&(a28==1))&&!(a7==1))&&(a14==9)))&&(a20==1)))&&!(a25==1))){ + a14 = 10; + a20 = 0; + a29 = 6; + a24 = 1; + a25 = 1; + a19 = 3; + return 23; + } else if((!(a25==1)&&((a22==1)&&((((a14==10)&&(((a24==1)&&((a20==1)&&((a28==1)&&((((a29==6)||(a29==7))&&(input==5))&&(a19==4)))))&&(a0==1)))&&!(a7==1))&&(a11==1))))){ + a25 = 1; + a7 = 1; + a14 = 8; + a29 = 5; + a19 = 1; + return -1; + } else if(((a22==1)&&((a19==5)&&((((((a25==1)&&((a28==1)&&(!(a0==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==1))&&(a14==9)))))&&(a20==1))&&(a11==1))&&!(a7==1))&&!(a24==1))))){ + a14 = 8; + a0 = 1; + a24 = 1; + a29 = 5; + a19 = 1; + a7 = 1; + return -1; + } else if(((a22==1)&&((a28==1)&&(!(a24==1)&&((a25==1)&&((a7==1)&&(((a14==9)&&((a20==1)&&((a19==4)&&(!(a11==1)&&(((a29==6)||(a29==7))&&(input==3))))))&&!(a0==1)))))))){ + a0 = 1; + a29 = 8; + a11 = 1; + a24 = 1; + a19 = 2; + a7 = 0; + return -1; + } else if(((((!(a25==1)&&(((((a0==1)&&((a24==1)&&(((input==2)&&((a29==7)||(a29==8)))&&(a7==1))))&&(a28==1))&&(a22==1))&&!(a11==1)))&&(a14==9))&&(a19==3))&&!(a20==1))){ + a14 = 8; + a29 = 6; + a7 = 0; + a19 = 2; + a0 = 0; + return -1; + } else if((((((a20==1)&&(((a25==1)&&((!(a11==1)&&(((a7==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==2)))&&(a19==1)))&&(a22==1)))&&(a14==9)))&&!(a0==1))&&(a28==1))&&!(a24==1))){ + a29 = 6; + a20 = 0; + a0 = 1; + a19 = 3; + a11 = 1; + a7 = 0; + a25 = 0; + return -1; + } else if((((((a28==1)&&(((!(a24==1)&&((a7==1)&&(!(a20==1)&&(((input==1)&&(a29==6))&&(a11==1)))))&&!(a25==1))&&(a22==1)))&&(a19==4))&&(a14==8))&&!(a0==1))){ + a24 = 1; + a19 = 1; + a29 = 8; + return 23; + } else if((((a22==1)&&((a19==5)&&(((a0==1)&&(((a24==1)&&((((a7==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==4)))&&(a14==9))&&(a20==1)))&&!(a25==1)))&&(a28==1))))&&(a11==1))){ + a7 = 0; + a19 = 4; + a20 = 0; + a14 = 8; + a25 = 1; + a29 = 5; + a0 = 0; + return 24; + } else if((((!(a20==1)&&((a14==8)&&(!(a0==1)&&(!(a25==1)&&((a19==1)&&((a29==6)&&((!(a24==1)&&((input==2)&&(a7==1)))&&(a11==1))))))))&&(a22==1))&&(a28==1))){ + a29 = 5; + a25 = 1; + a0 = 1; + a20 = 1; + a24 = 1; + return -1; + } else if((((!(a20==1)&&((((a14==8)&&(((((a28==1)&&((input==4)&&(((a29==5)||(a29==6))||(a29==7))))&&(a7==1))&&!(a25==1))&&!(a11==1)))&&!(a0==1))&&!(a24==1)))&&(a19==4))&&(a22==1))){ + a24 = 1; + a29 = 8; + a20 = 1; + a7 = 0; + a19 = 2; + a25 = 1; + return 21; + } else if((!(a0==1)&&((((!(a25==1)&&((((a22==1)&&(((((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))&&(input==1))&&!(a11==1)))&&(a7==1))&&(a20==1)))&&(a28==1))&&!(a24==1))&&(a14==8)))){ + a0 = 1; + a20 = 0; + a29 = 9; + a19 = 3; + return 24; + } else if(((a28==1)&&((a29==6)&&((!(a20==1)&&(((a11==1)&&((a0==1)&&((a24==1)&&(!(a7==1)&&(((a14==10)&&(input==6))&&(a25==1))))))&&(a19==4)))&&(a22==1))))){ + a14 = 8; + a0 = 0; + a25 = 0; + a29 = 8; + a19 = 2; + a7 = 1; + a24 = 0; + return 21; + } else if((((a25==1)&&((a19==2)&&((a22==1)&&(!(a11==1)&&((!(a0==1)&&((((a20==1)&&((input==5)&&(((a29==7)||(a29==8))||(a29==9))))&&(a14==8))&&(a7==1)))&&(a28==1))))))&&!(a24==1))){ + a29 = 7; + a0 = 1; + a14 = 9; + a19 = 5; + return 23; + } else if((((a14==8)&&((a22==1)&&((!(a20==1)&&((a24==1)&&((((((input==5)&&((a29==5)||(a29==6)))&&(a28==1))&&(a11==1))&&(a0==1))&&!(a7==1))))&&(a25==1))))&&(a19==1))){ + a20 = 1; + a11 = 0; + a19 = 4; + a29 = 7; + return 23; + } else if((((a22==1)&&((a14==8)&&(!(a0==1)&&((((((a25==1)&&((a19==4)&&((a28==1)&&(input==5))))&&!(a11==1))&&!(a20==1))&&(a7==1))&&(a29==8)))))&&!(a24==1))){ + a19 = 5; + a20 = 1; + a24 = 1; + a29 = 5; + a25 = 0; + return -1; + } else if((((a11==1)&&(((a7==1)&&(((a22==1)&&((a19==3)&&((a0==1)&&((((input==1)&&(a28==1))&&(a25==1))&&!(a20==1)))))&&(a14==8)))&&!(a24==1)))&&(a29==6))){ + a0 = 0; + a19 = 4; + return 21; + } else if(((!(a25==1)&&((a22==1)&&(((a14==8)&&((!(a7==1)&&(((a28==1)&&((input==4)&&((((a19==3)&&(a29==8))||((a29==9)&&(a19==3)))||((a29==5)&&(a19==4)))))&&(a11==1)))&&!(a0==1)))&&(a20==1))))&&!(a24==1))){ + a0 = 1; + a24 = 1; + a7 = 1; + a19 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if(((((!(a11==1)&&(!(a25==1)&&((a19==1)&&((a29==6)&&(((a20==1)&&(((a24==1)&&(input==2))&&(a7==1)))&&(a22==1))))))&&(a14==9))&&!(a0==1))&&(a28==1))){ + a0 = 1; + a19 = 3; + a11 = 1; + a29 = 7; + return 21; + } else if(((((!(a11==1)&&(((a20==1)&&((a7==1)&&(((a22==1)&&((a19==3)&&((a29==7)&&(input==5))))&&(a25==1))))&&(a24==1)))&&(a14==8))&&!(a0==1))&&(a28==1))){ + a11 = 1; + a7 = 0; + a29 = 8; + a25 = 0; + return 21; + } else if(((a24==1)&&(((!(a25==1)&&(!(a20==1)&&((a19==1)&&(((((((a29==6)||(a29==7))&&(input==4))&&(a14==10))&&(a0==1))&&(a28==1))&&(a11==1)))))&&!(a7==1))&&(a22==1)))){ + a29 = 6; + a24 = 0; + a0 = 0; + a25 = 1; + a14 = 8; + a7 = 1; + a20 = 1; + return -1; + } else if(((a14==8)&&((((a19==2)&&(!(a25==1)&&(!(a0==1)&&(((!(a24==1)&&((((a29==8)||(a29==9))&&(input==4))&&(a28==1)))&&(a22==1))&&!(a20==1)))))&&!(a7==1))&&!(a11==1)))){ + a7 = 1; + a25 = 1; + a0 = 1; + a20 = 1; + a19 = 1; + a11 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if(((!(a0==1)&&((a11==1)&&((a29==9)&&((a22==1)&&(!(a24==1)&&((((((input==4)&&(a14==8))&&!(a20==1))&&!(a25==1))&&(a28==1))&&(a19==4)))))))&&!(a7==1))){ + a29 = 6; + a19 = 5; + a7 = 1; + a24 = 1; + a20 = 1; + return 21; + } else if((((((a19==3)&&((((a29==7)&&((a22==1)&&((a14==8)&&((a20==1)&&((input==3)&&(a0==1))))))&&(a24==1))&&(a28==1)))&&(a25==1))&&!(a7==1))&&(a11==1))){ + a7 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((!(a20==1)&&((((((a22==1)&&(((!(a0==1)&&((a28==1)&&(((a29==5)||(a29==6))&&(input==4))))&&(a19==2))&&(a7==1)))&&(a25==1))&&(a24==1))&&!(a11==1))&&(a14==8)))){ + a29 = 5; + a20 = 1; + a19 = 1; + a0 = 1; + a11 = 1; + return -1; + } else if(((a28==1)&&((a24==1)&&((a14==9)&&(((((!(a7==1)&&((((input==3)&&((a29==7)||(a29==8)))&&(a22==1))&&(a11==1)))&&(a19==4))&&(a20==1))&&!(a25==1))&&!(a0==1)))))){ + a7 = 1; + a0 = 1; + a14 = 8; + a25 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if((((((a19==5)&&(((a28==1)&&(!(a7==1)&&(((a22==1)&&(!(a24==1)&&((input==4)&&(a14==9))))&&!(a25==1))))&&(a29==7)))&&(a20==1))&&!(a11==1))&&(a0==1))){ + a7 = 1; + a20 = 0; + a29 = 5; + a19 = 1; + a24 = 1; + a14 = 8; + a11 = 1; + a0 = 0; + return 24; + } else if(((a24==1)&&(((a14==9)&&((a22==1)&&((a29==9)&&((a25==1)&&(!(a11==1)&&((((a7==1)&&((input==5)&&(a19==5)))&&(a20==1))&&(a0==1)))))))&&(a28==1)))){ + a29 = 8; + a14 = 8; + a7 = 0; + a19 = 1; + a24 = 0; + a20 = 0; + return 21; + } else if((((a22==1)&&((a20==1)&&(((a19==3)&&((a25==1)&&(!(a0==1)&&((a7==1)&&(((a28==1)&&((input==1)&&(a11==1)))&&(a14==9))))))&&(a29==7))))&&(a24==1))){ + a14 = 8; + a19 = 5; + a29 = 8; + return 23; + } else if((!(a0==1)&&((a19==3)&&((((a29==6)&&(!(a24==1)&&((a22==1)&&(((a14==9)&&((a20==1)&&((input==1)&&(a28==1))))&&!(a25==1)))))&&(a7==1))&&!(a11==1))))){ + a14 = 8; + a29 = 9; + a11 = 1; + a24 = 1; + return 23; + } else if((!(a0==1)&&(((!(a24==1)&&((a14==9)&&(!(a20==1)&&((a28==1)&&((a7==1)&&(!(a11==1)&&((a19==5)&&((a29==9)&&(input==6)))))))))&&(a22==1))&&(a25==1)))){ + a14 = 8; + a19 = 4; + a25 = 0; + a0 = 1; + return -1; + } else if(((a14==9)&&((a20==1)&&((((a24==1)&&((a25==1)&&((a28==1)&&(((a11==1)&&(!(a0==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==6))))&&!(a7==1)))))&&(a19==2))&&(a22==1))))){ + a29 = 5; + a24 = 0; + a0 = 1; + a11 = 0; + return 24; + } else if(((a14==9)&&(!(a11==1)&&((!(a24==1)&&((a22==1)&&((a28==1)&&(((a7==1)&&(!(a25==1)&&((input==1)&&(((a29==5)&&(a19==4))||(((a29==8)&&(a19==3))||((a19==3)&&(a29==9)))))))&&!(a20==1)))))&&(a0==1))))){ + a0 = 0; + a14 = 8; + a25 = 1; + a19 = 3; + a29 = 8; + a11 = 1; + a24 = 1; + return 24; + } else if(((a28==1)&&((a20==1)&&(((a22==1)&&(((a14==9)&&((a19==2)&&((a11==1)&&(((a24==1)&&(!(a7==1)&&(input==1)))&&!(a25==1)))))&&(a0==1)))&&(a29==6))))){ + a11 = 0; + a0 = 0; + a29 = 8; + a20 = 0; + a7 = 1; + a24 = 0; + return 24; + } else if(((((a14==8)&&(!(a24==1)&&((a19==1)&&((a29==6)&&((((((a28==1)&&(input==1))&&(a11==1))&&!(a25==1))&&(a22==1))&&(a20==1))))))&&!(a7==1))&&!(a0==1))){ + a25 = 1; + a0 = 1; + a7 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if((((a28==1)&&((((a22==1)&&((a7==1)&&(!(a0==1)&&((a11==1)&&((a25==1)&&((((a29==9)&&(a19==4))||((a29==5)&&(a19==5)))&&(input==3)))))))&&(a24==1))&&(a14==8)))&&!(a20==1))){ + a19 = 4; + a25 = 0; + a29 = 9; + a7 = 0; + return 24; + } else if(((a28==1)&&(((!(a20==1)&&((!(a11==1)&&((a25==1)&&((((input==1)&&(((a29==6)&&(a19==4))||(((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))))&&(a22==1))&&(a14==9))))&&(a7==1)))&&!(a24==1))&&(a0==1)))){ + a11 = 1; + a19 = 1; + a0 = 0; + a29 = 9; + a20 = 1; + a24 = 1; + a14 = 8; + return 23; + } else if(((a7==1)&&((a25==1)&&(!(a20==1)&&((((a0==1)&&(((a28==1)&&(((a29==7)&&(!(a11==1)&&(input==3)))&&(a22==1)))&&(a19==5)))&&!(a24==1))&&(a14==9)))))){ + a24 = 1; + a19 = 3; + a14 = 8; + a0 = 0; + return -1; + } else if(((((((a7==1)&&((a28==1)&&((((a20==1)&&((a14==8)&&((a29==8)&&(input==2))))&&!(a0==1))&&(a11==1))))&&(a19==5))&&(a24==1))&&!(a25==1))&&(a22==1))){ + a29 = 5; + a0 = 1; + a19 = 1; + a25 = 1; + return -1; + } else if((((((a7==1)&&(((a24==1)&&((((!(a25==1)&&(((a29==5)||(a29==6))&&(input==6)))&&(a22==1))&&(a28==1))&&(a14==8)))&&(a19==5)))&&!(a0==1))&&!(a20==1))&&(a11==1))){ + a7 = 0; + a20 = 1; + a19 = 2; + a29 = 9; + a25 = 1; + return 21; + } else if(((a14==9)&&((!(a20==1)&&((!(a24==1)&&(((a28==1)&&(!(a25==1)&&((a11==1)&&((a22==1)&&((input==4)&&((a29==8)||(a29==9)))))))&&(a19==2)))&&!(a7==1)))&&!(a0==1)))){ + a24 = 1; + a25 = 1; + a29 = 5; + a19 = 5; + a11 = 0; + a14 = 8; + return 24; + } else if((!(a20==1)&&(!(a7==1)&&((((a28==1)&&(((a25==1)&&((a14==8)&&((((input==3)&&((a29==6)||(a29==7)))&&!(a0==1))&&(a22==1))))&&!(a11==1)))&&(a24==1))&&(a19==2))))){ + a11 = 1; + a20 = 1; + a0 = 1; + a19 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if(((!(a24==1)&&(((a28==1)&&((((a14==9)&&(((((input==5)&&(((a29==7)||(a29==8))||(a29==9)))&&(a22==1))&&(a19==4))&&(a25==1)))&&(a0==1))&&(a7==1)))&&(a11==1)))&&(a20==1))){ + a7 = 0; + a29 = 7; + return 23; + } else if((((a20==1)&&((((((a0==1)&&((a24==1)&&((((((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))||((a29==5)&&(a19==5)))&&(input==3))&&(a14==8))))&&(a28==1))&&(a11==1))&&!(a7==1))&&(a25==1)))&&(a22==1))){ + a7 = 1; + a20 = 0; + a19 = 2; + a29 = 6; + return 21; + } else if((!(a0==1)&&((a29==9)&&((((a11==1)&&((a19==1)&&((a28==1)&&((((!(a25==1)&&(input==2))&&(a24==1))&&(a14==9))&&(a20==1)))))&&!(a7==1))&&(a22==1))))){ + a25 = 1; + a29 = 5; + a19 = 4; + a14 = 8; + a0 = 1; + return 24; + } else if(((a19==2)&&((((a14==10)&&((a0==1)&&((((!(a25==1)&&((a11==1)&&(((a29==7)||(a29==8))&&(input==1))))&&(a28==1))&&(a22==1))&&!(a20==1))))&&(a24==1))&&(a7==1)))){ + a25 = 1; + a7 = 0; + a19 = 5; + a29 = 6; + a14 = 9; + return -1; + } else if((((((a11==1)&&((((a14==9)&&((((a19==2)&&((input==5)&&(a20==1)))&&(a7==1))&&(a22==1)))&&(a0==1))&&(a24==1)))&&(a29==6))&&(a25==1))&&(a28==1))){ + a19 = 1; + a7 = 0; + a29 = 5; + a14 = 8; + a0 = 0; + return 24; + } else if((!(a0==1)&&(((((((a14==8)&&(((!(a7==1)&&((input==3)&&(a29==6)))&&(a24==1))&&(a28==1)))&&(a25==1))&&(a22==1))&&(a19==2))&&(a11==1))&&(a20==1)))){ + a20 = 0; + a25 = 0; + a7 = 1; + a19 = 5; + return 24; + } else if(((!(a0==1)&&((a22==1)&&(!(a7==1)&&(!(a25==1)&&((!(a20==1)&&(((a14==8)&&((((a29==8)||(a29==9))&&(input==6))&&(a24==1)))&&(a11==1)))&&(a19==4))))))&&(a28==1))){ + a29 = 9; + return 24; + } else if(((a22==1)&&((((!(a0==1)&&((!(a25==1)&&(!(a7==1)&&(((input==6)&&((((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))||((a19==2)&&(a29==6))))&&(a11==1))))&&(a24==1)))&&(a20==1))&&(a28==1))&&(a14==8)))){ + a7 = 1; + a29 = 9; + a19 = 4; + return -1; + } else if(((a20==1)&&((a22==1)&&((!(a0==1)&&((!(a25==1)&&((a29==7)&&((((a28==1)&&((input==4)&&(a14==8)))&&(a11==1))&&!(a7==1))))&&!(a24==1)))&&(a19==4))))){ + a29 = 8; + a11 = 0; + a20 = 0; + a19 = 3; + a0 = 1; + a7 = 1; + a14 = 9; + a24 = 1; + return 21; + } else if((((a22==1)&&(((a19==4)&&((a14==9)&&(!(a25==1)&&((a7==1)&&(!(a11==1)&&((!(a0==1)&&((input==4)&&(((a29==7)||(a29==8))||(a29==9))))&&(a28==1)))))))&&!(a24==1)))&&(a20==1))){ + a29 = 9; + a11 = 1; + a14 = 8; + return 21; + } else if(((a0==1)&&(((((a7==1)&&((a28==1)&&(!(a11==1)&&((((((a19==5)&&((a25==1)&&(a29==9)))||(((a29==5)&&!(a25==1))&&(a19==1)))||(((a29==6)&&!(a25==1))&&(a19==1)))&&(input==1))&&(a20==1)))))&&(a22==1))&&!(a24==1))&&(a14==8)))){ + a11 = 1; + a29 = 9; + a0 = 0; + a24 = 1; + a19 = 1; + a25 = 1; + return 21; + } else if(((a7==1)&&((a24==1)&&((a28==1)&&(((a11==1)&&((a22==1)&&((a14==8)&&(((!(a20==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==5)))&&(a19==1))&&!(a0==1)))))&&!(a25==1)))))){ + a25 = 1; + a11 = 0; + a29 = 8; + a14 = 9; + a0 = 1; + a19 = 2; + a24 = 0; + return 24; + } else if(((a11==1)&&(!(a25==1)&&((((a22==1)&&((!(a20==1)&&((a14==9)&&((((input==1)&&((a29==8)||(a29==9)))&&(a7==1))&&(a19==2))))&&!(a0==1)))&&(a28==1))&&(a24==1))))){ + a7 = 0; + a29 = 7; + a14 = 8; + return -1; + } else if(((((((a22==1)&&((!(a20==1)&&((((((a29==8)&&((a7==1)&&!(a25==1)))&&(a19==5))||((a19==5)&&(((a7==1)&&!(a25==1))&&(a29==9))))||(((a29==5)&&(!(a7==1)&&(a25==1)))&&(a19==1)))&&(input==6)))&&!(a24==1)))&&!(a0==1))&&(a14==9))&&(a28==1))&&(a11==1))){ + a25 = 0; + a11 = 0; + a19 = 1; + a24 = 1; + a0 = 1; + a29 = 8; + a7 = 0; + return 24; + } else if((((((((a24==1)&&((((a28==1)&&((((a29==6)||(a29==7))&&(input==2))&&(a22==1)))&&(a20==1))&&(a0==1)))&&(a19==4))&&(a11==1))&&(a7==1))&&(a14==9))&&!(a25==1))){ + a29 = 7; + a11 = 0; + a25 = 1; + a19 = 1; + a24 = 0; + a0 = 0; + a20 = 0; + return 21; + } else if(((a22==1)&&(((((a24==1)&&(((((a11==1)&&(((input==6)&&((a29==6)||(a29==7)))&&(a14==9)))&&(a19==1))&&(a0==1))&&(a7==1)))&&!(a20==1))&&(a28==1))&&!(a25==1)))){ + a14 = 8; + a20 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if((!(a11==1)&&(((((a22==1)&&((!(a20==1)&&((((input==2)&&(((a29==5)&&(a19==4))||(((a29==8)&&(a19==3))||((a19==3)&&(a29==9)))))&&(a24==1))&&(a28==1)))&&(a25==1)))&&!(a7==1))&&(a0==1))&&(a14==9)))){ + a14 = 8; + a7 = 1; + a19 = 1; + a20 = 1; + a29 = 5; + a11 = 1; + return -1; + } else if(((a7==1)&&((((!(a25==1)&&((a0==1)&&(((a14==9)&&((((a19==1)&&(input==6))&&(a22==1))&&!(a20==1)))&&(a29==8))))&&!(a11==1))&&(a24==1))&&(a28==1)))){ + a14 = 8; + a29 = 5; + a7 = 0; + a19 = 2; + a0 = 0; + a24 = 0; + a20 = 1; + return 24; + } else if((((a7==1)&&(!(a24==1)&&((a14==8)&&(((a28==1)&&((((a19==5)&&(!(a25==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==3))))&&(a22==1))&&(a11==1)))&&!(a20==1)))))&&(a0==1))){ + a25 = 1; + a0 = 0; + a20 = 1; + a24 = 1; + a29 = 8; + a19 = 1; + a7 = 0; + return 23; + } else if(((a20==1)&&((a11==1)&&((a7==1)&&(!(a24==1)&&((a22==1)&&(((a19==4)&&((a28==1)&&((a25==1)&&((a0==1)&&((input==2)&&((a29==8)||(a29==9)))))))&&(a14==8)))))))){ + a19 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if(((a22==1)&&((a28==1)&&(!(a25==1)&&(!(a24==1)&&(((a19==4)&&((!(a7==1)&&((a14==8)&&(((input==4)&&(a0==1))&&!(a20==1))))&&(a11==1)))&&(a29==5))))))){ + a25 = 1; + a24 = 1; + a20 = 1; + a19 = 1; + a7 = 1; + return -1; + } else if(((a0==1)&&((a11==1)&&((a25==1)&&(!(a24==1)&&(((!(a20==1)&&((a14==9)&&((a22==1)&&((((a29==6)||(a29==7))&&(input==1))&&(a7==1)))))&&(a19==4))&&(a28==1))))))){ + a14 = 8; + a29 = 5; + a20 = 1; + a19 = 1; + a24 = 1; + return -1; + } else if(((a7==1)&&((!(a25==1)&&((a0==1)&&(((((a28==1)&&((a14==8)&&((((a29==7)||(a29==8))&&(input==4))&&(a22==1))))&&(a20==1))&&(a19==4))&&(a11==1))))&&!(a24==1)))){ + a29 = 9; + a19 = 3; + a25 = 1; + a0 = 0; + a7 = 0; + a24 = 1; + return 24; + } else if(((a24==1)&&(!(a11==1)&&((a28==1)&&(!(a25==1)&&((a0==1)&&(((a14==9)&&((((a22==1)&&((input==6)&&!(a20==1)))&&(a19==1))&&(a29==9)))&&(a7==1)))))))){ + a0 = 0; + a24 = 0; + a20 = 1; + a29 = 7; + a25 = 1; + a14 = 8; + a19 = 3; + a11 = 1; + return 24; + } else if((!(a7==1)&&(((((a28==1)&&((a19==4)&&((a29==6)&&((a0==1)&&((!(a11==1)&&((input==1)&&(a22==1)))&&(a20==1))))))&&(a14==8))&&(a24==1))&&!(a25==1)))){ + a7 = 1; + a19 = 1; + a11 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if(((!(a24==1)&&(((!(a25==1)&&((((a0==1)&&((a28==1)&&((((a29==8)||(a29==9))&&(input==6))&&(a14==8))))&&(a22==1))&&!(a11==1)))&&!(a7==1))&&!(a20==1)))&&(a19==2))){ + a19 = 3; + a29 = 8; + a25 = 1; + return 23; + } else if((((a19==1)&&(((((((a28==1)&&(((a0==1)&&(((a29==8)||(a29==9))&&(input==4)))&&!(a25==1)))&&(a11==1))&&(a22==1))&&!(a24==1))&&!(a7==1))&&(a20==1)))&&(a14==8))){ + a25 = 1; + a24 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if(((a0==1)&&(!(a25==1)&&((((((((((input==3)&&(a22==1))&&!(a7==1))&&(a28==1))&&(a14==8))&&(a29==7))&&!(a24==1))&&(a11==1))&&(a20==1))&&(a19==3))))){ + a7 = 1; + a29 = 9; + a19 = 5; + a0 = 0; + return 21; + } else if((((a22==1)&&((a24==1)&&((!(a11==1)&&(((a19==4)&&(((a25==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==3))&&(a0==1)))&&(a7==1)))&&!(a20==1)))&&(a14==9))))&&(a28==1))){ + a29 = 5; + a19 = 1; + a14 = 8; + a11 = 1; + a20 = 1; + return -1; + } else if(((((a11==1)&&(((((a19==4)&&((a14==10)&&((a29==6)&&(((input==2)&&(a24==1))&&(a22==1)))))&&(a20==1))&&(a0==1))&&(a7==1)))&&(a28==1))&&(a25==1))){ + a20 = 0; + a29 = 7; + a19 = 3; + a14 = 9; + return -1; + } else if((!(a24==1)&&(!(a25==1)&&((a14==9)&&(!(a0==1)&&((a11==1)&&((!(a20==1)&&(((((input==6)&&((a29==7)||(a29==8)))&&(a19==4))&&(a22==1))&&!(a7==1)))&&(a28==1)))))))){ + a7 = 1; + a11 = 0; + a14 = 8; + a29 = 8; + a24 = 1; + return -1; + } else if((((a20==1)&&((a14==9)&&(((a24==1)&&((((!(a0==1)&&((input==1)&&(((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))))&&(a28==1))&&(a22==1))&&(a7==1)))&&!(a11==1))))&&!(a25==1))){ + a29 = 5; + a19 = 1; + a0 = 1; + a11 = 1; + a25 = 1; + a14 = 8; + return -1; + } else if(((!(a11==1)&&(((a22==1)&&(((a28==1)&&((a7==1)&&((a24==1)&&(!(a0==1)&&((input==6)&&(((a29==6)&&(a19==4))||(((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))))))))&&!(a25==1)))&&(a14==9)))&&!(a20==1))){ + a11 = 1; + a0 = 1; + a19 = 3; + a29 = 9; + return -1; + } else if((((a0==1)&&((a22==1)&&((a28==1)&&((!(a20==1)&&(((a14==8)&&(((input==2)&&(((a29==6)&&(a19==4))||(((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))))&&(a24==1)))&&(a7==1)))&&!(a25==1)))))&&(a11==1))){ + a20 = 1; + a29 = 9; + a19 = 3; + a25 = 1; + a11 = 0; + return 23; + } else if(((a22==1)&&((!(a0==1)&&((!(a25==1)&&(((a24==1)&&(!(a11==1)&&(((a28==1)&&(((a29==8)||(a29==9))&&(input==6)))&&!(a7==1))))&&(a19==2)))&&(a14==9)))&&(a20==1)))){ + a19 = 3; + a29 = 5; + a14 = 8; + return -1; + } return calculate_output37(input); + } + + int calculate_output37(int input) { + if(((a11==1)&&(!(a20==1)&&((a7==1)&&((a22==1)&&((((a28==1)&&((a14==8)&&(!(a0==1)&&((((a19==3)&&(a29==5))||(((a29==8)&&(a19==2))||((a19==2)&&(a29==9))))&&(input==4)))))&&(a24==1))&&!(a25==1))))))){ + a29 = 7; + a11 = 0; + a24 = 0; + a19 = 3; + a0 = 1; + a25 = 1; + a14 = 9; + return 21; + } else if(((a11==1)&&(((a22==1)&&((a25==1)&&((a14==8)&&(!(a0==1)&&(((a24==1)&&((a7==1)&&((((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))&&(input==1))))&&!(a20==1))))))&&(a28==1)))){ + a0 = 1; + a11 = 0; + a24 = 0; + a29 = 6; + a19 = 5; + a25 = 0; + return 21; + } else if(((a25==1)&&((a7==1)&&(((!(a11==1)&&(((a19==2)&&((((((a29==8)||(a29==9))&&(input==4))&&(a20==1))&&!(a24==1))&&(a14==9)))&&(a22==1)))&&(a0==1))&&(a28==1))))){ + a24 = 1; + a14 = 8; + a11 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((a29==9)&&((a22==1)&&((!(a0==1)&&((a28==1)&&(!(a20==1)&&(((a19==5)&&((((input==5)&&(a24==1))&&(a7==1))&&(a14==9)))&&(a11==1)))))&&!(a25==1))))){ + a19 = 3; + a0 = 1; + a7 = 0; + a25 = 1; + a20 = 1; + a24 = 0; + return 23; + } else if(((a22==1)&&((a0==1)&&((a28==1)&&(!(a25==1)&&((a11==1)&&(((a24==1)&&(((a14==9)&&((input==4)&&(((a29==6)&&(a19==5))||(((a29==9)&&(a19==4))||((a29==5)&&(a19==5))))))&&(a20==1)))&&!(a7==1)))))))){ + a14 = 8; + a7 = 1; + a29 = 5; + a19 = 1; + a25 = 1; + return -1; + } else if((((!(a25==1)&&((a28==1)&&(((a29==5)&&((!(a0==1)&&((a14==9)&&(((input==2)&&!(a24==1))&&(a22==1))))&&(a20==1)))&&(a19==2))))&&(a11==1))&&(a7==1))){ + a0 = 1; + a29 = 7; + a7 = 0; + a11 = 0; + return -1; + } else if((!(a0==1)&&(!(a7==1)&&(((a28==1)&&(((!(a24==1)&&(((a14==8)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==6))&&(a22==1)))&&(a25==1)))&&!(a20==1))&&(a19==3)))&&(a11==1))))){ + a19 = 5; + a20 = 1; + a29 = 7; + a25 = 0; + a7 = 1; + a24 = 1; + return 23; + } else if(((((a28==1)&&((a24==1)&&((!(a7==1)&&((a14==8)&&(!(a25==1)&&((a19==4)&&(((input==6)&&((a29==7)||(a29==8)))&&(a20==1))))))&&(a22==1))))&&!(a11==1))&&(a0==1))){ + a7 = 1; + a0 = 0; + a11 = 1; + a29 = 8; + return 24; + } else if(((a25==1)&&((a22==1)&&(!(a0==1)&&(((!(a11==1)&&((!(a7==1)&&((a14==8)&&((input==5)&&(((a29==6)&&(a19==4))||(((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))))))&&(a28==1)))&&(a24==1))&&(a20==1)))))){ + a0 = 1; + a7 = 1; + a11 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a22==1)&&((((!(a7==1)&&((a14==9)&&(((((a28==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==1)))&&(a19==4))&&!(a11==1))&&!(a20==1))))&&(a0==1))&&!(a24==1))&&(a25==1)))){ + a19 = 5; + a20 = 1; + a29 = 8; + a7 = 1; + return -1; + } else if((!(a20==1)&&(((a0==1)&&(((((((!(a7==1)&&((input==1)&&(((a29==7)||(a29==8))||(a29==9))))&&(a14==8))&&(a25==1))&&(a11==1))&&!(a24==1))&&(a19==2))&&(a28==1)))&&(a22==1)))){ + a7 = 1; + a24 = 1; + a19 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if((((a7==1)&&(((a25==1)&&(((a22==1)&&((!(a20==1)&&((a24==1)&&((((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))&&(input==4))))&&(a14==9)))&&(a0==1)))&&!(a11==1)))&&(a28==1))){ + a20 = 1; + a11 = 1; + a19 = 5; + a29 = 8; + return 21; + } else if(((!(a11==1)&&(((a24==1)&&((a28==1)&&((a20==1)&&(((((a22==1)&&((a7==1)&&(input==3)))&&(a29==6))&&!(a0==1))&&(a19==5)))))&&(a25==1)))&&(a14==9))){ + a19 = 1; + a11 = 1; + a14 = 8; + a29 = 5; + a0 = 1; + return -1; + } else if((((a28==1)&&((a22==1)&&((((((a14==9)&&(((((a29==6)||(a29==7))&&(input==1))&&(a19==4))&&!(a11==1)))&&!(a0==1))&&!(a20==1))&&(a24==1))&&!(a7==1))))&&!(a25==1))){ + a24 = 0; + a7 = 1; + a11 = 1; + a19 = 5; + a20 = 1; + a29 = 6; + return -1; + } else if((((!(a20==1)&&((((!(a24==1)&&(((a14==9)&&(((a0==1)&&(input==1))&&(a11==1)))&&(a22==1)))&&(a25==1))&&!(a7==1))&&(a28==1)))&&(a29==6))&&(a19==5))){ + a11 = 0; + a19 = 1; + a14 = 8; + a29 = 9; + a25 = 0; + return 21; + } else if(((a19==3)&&(((((((((a20==1)&&((a29==9)&&((input==6)&&!(a7==1))))&&(a22==1))&&(a28==1))&&!(a0==1))&&(a25==1))&&!(a24==1))&&!(a11==1))&&(a14==9)))){ + a14 = 8; + a11 = 1; + a29 = 7; + a20 = 0; + a7 = 1; + a19 = 5; + return 23; + } else if(((a19==2)&&((!(a7==1)&&((!(a11==1)&&(((a22==1)&&((a14==9)&&(!(a20==1)&&(!(a25==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==1))))))&&(a28==1)))&&(a24==1)))&&!(a0==1)))){ + a19 = 5; + a11 = 1; + a20 = 1; + a25 = 1; + a14 = 8; + a29 = 9; + return 24; + } else if(((a24==1)&&((a19==5)&&((!(a0==1)&&(((a22==1)&&((((!(a7==1)&&((a28==1)&&(input==4)))&&(a29==8))&&(a14==9))&&(a11==1)))&&!(a20==1)))&&(a25==1))))){ + a20 = 1; + a19 = 2; + a0 = 1; + a29 = 6; + return -1; + } else if((((a28==1)&&(((((a0==1)&&(!(a24==1)&&(!(a11==1)&&(((a22==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==3)))&&!(a7==1)))))&&!(a20==1))&&(a19==1))&&(a14==9)))&&!(a25==1))){ + a11 = 1; + a20 = 1; + a0 = 0; + a24 = 1; + a29 = 7; + a14 = 8; + return 24; + } else if((((!(a7==1)&&(((((((a14==8)&&(((input==3)&&((a29==6)||(a29==7)))&&!(a11==1)))&&!(a0==1))&&(a19==4))&&(a22==1))&&(a20==1))&&!(a24==1)))&&(a25==1))&&(a28==1))){ + a24 = 1; + a14 = 9; + a25 = 0; + a19 = 3; + a29 = 5; + return 24; + } else if(((a22==1)&&((a19==1)&&((((a0==1)&&(!(a24==1)&&((a11==1)&&(((a7==1)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==6))&&(a14==9)))&&!(a20==1)))))&&!(a25==1))&&(a28==1))))){ + a14 = 8; + a29 = 5; + a24 = 1; + a25 = 1; + a20 = 1; + return -1; + } else if(((((a7==1)&&((!(a0==1)&&(!(a11==1)&&(!(a25==1)&&(((a19==3)&&((((a29==6)||(a29==7))&&(input==3))&&!(a20==1)))&&(a22==1)))))&&(a14==8)))&&(a28==1))&&(a24==1))){ + a20 = 1; + a19 = 1; + a25 = 1; + a0 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if(((((a22==1)&&(((((a14==9)&&(((input==6)&&(((a19==1)&&(!(a25==1)&&(a29==6)))||((((a25==1)&&(a29==9))&&(a19==5))||(((a29==5)&&!(a25==1))&&(a19==1)))))&&(a28==1)))&&!(a0==1))&&(a7==1))&&(a11==1)))&&!(a24==1))&&!(a20==1))){ + a19 = 1; + a25 = 1; + a29 = 9; + return -1; + } else if(((((a25==1)&&(!(a24==1)&&((a19==2)&&((a22==1)&&(((((a28==1)&&((input==5)&&((a29==6)||(a29==7))))&&!(a11==1))&&!(a20==1))&&!(a0==1))))))&&(a14==8))&&!(a7==1))){ + a24 = 1; + a11 = 1; + a19 = 4; + a7 = 1; + a29 = 7; + return 24; + } else if((!(a25==1)&&(((a14==9)&&(!(a0==1)&&((a19==1)&&(((!(a11==1)&&(((((a29==7)||(a29==8))&&(input==6))&&!(a20==1))&&(a22==1)))&&(a28==1))&&(a24==1)))))&&(a7==1)))){ + a29 = 5; + a14 = 8; + a11 = 1; + a20 = 1; + a0 = 1; + a25 = 1; + return -1; + } else if((((((a28==1)&&((((a14==8)&&(!(a25==1)&&(((((a19==4)&&(a29==5))||(((a29==8)&&(a19==3))||((a19==3)&&(a29==9))))&&(input==5))&&(a0==1))))&&!(a7==1))&&!(a11==1)))&&!(a20==1))&&(a24==1))&&(a22==1))){ + a11 = 1; + a0 = 0; + a29 = 7; + a25 = 1; + a19 = 2; + return 23; + } else if((((a0==1)&&((a22==1)&&((a24==1)&&((((((a20==1)&&((((a29==5)&&(a19==2))||(((a19==1)&&(a29==8))||((a29==9)&&(a19==1))))&&(input==2)))&&!(a7==1))&&(a14==9))&&(a28==1))&&!(a25==1)))))&&!(a11==1))){ + a29 = 5; + a19 = 1; + a20 = 0; + a11 = 1; + return 24; + } else if(((((a28==1)&&((a14==8)&&((!(a0==1)&&((a22==1)&&(((!(a25==1)&&(((a29==8)||(a29==9))&&(input==3)))&&!(a7==1))&&(a19==2))))&&!(a20==1))))&&(a11==1))&&(a24==1))){ + a25 = 1; + a7 = 1; + a0 = 1; + a19 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if((((((((!(a11==1)&&(((input==3)&&(((((a25==1)&&(a29==8))&&(a19==5))||((a19==5)&&((a25==1)&&(a29==9))))||(((a29==5)&&!(a25==1))&&(a19==1))))&&!(a0==1)))&&(a20==1))&&(a24==1))&&(a22==1))&&(a14==8))&&(a7==1))&&(a28==1))){ + a29 = 7; + a19 = 1; + a11 = 1; + a25 = 0; + a20 = 0; + a7 = 0; + return 21; + } else if(((!(a25==1)&&(((a22==1)&&((a0==1)&&(((!(a20==1)&&(!(a24==1)&&((((a19==5)&&(a29==5))||(((a29==8)&&(a19==4))||((a29==9)&&(a19==4))))&&(input==4))))&&(a11==1))&&(a28==1))))&&(a7==1)))&&(a14==8))){ + a29 = 6; + a7 = 0; + a19 = 3; + a0 = 0; + a24 = 1; + return 24; + } else if(((((a19==1)&&((a24==1)&&((a22==1)&&((a29==5)&&((a11==1)&&(!(a25==1)&&(((a0==1)&&((input==1)&&(a14==9)))&&!(a20==1))))))))&&(a28==1))&&(a7==1))){ + a0 = 0; + a19 = 3; + a14 = 8; + a11 = 0; + a29 = 8; + a20 = 1; + a24 = 0; + return -1; + } else if(((a29==5)&&((a28==1)&&((a0==1)&&(((((a22==1)&&(!(a20==1)&&((a14==10)&&(!(a7==1)&&((input==2)&&(a19==5))))))&&(a24==1))&&!(a25==1))&&(a11==1)))))){ + a14 = 8; + a25 = 1; + a24 = 0; + a19 = 2; + a11 = 0; + return 21; + } else if(((((a14==8)&&(!(a25==1)&&(((a22==1)&&((!(a7==1)&&(((a24==1)&&((input==2)&&((a29==9)||((a29==7)||(a29==8)))))&&(a19==3)))&&!(a20==1)))&&(a0==1))))&&(a11==1))&&(a28==1))){ + a7 = 1; + a20 = 1; + a24 = 0; + a29 = 7; + a19 = 5; + a11 = 0; + return 24; + } else if(((((!(a20==1)&&(!(a24==1)&&(((!(a7==1)&&(((a19==4)&&(((a29==6)||(a29==7))&&(input==2)))&&(a28==1)))&&!(a11==1))&&(a22==1))))&&(a14==9))&&!(a25==1))&&(a0==1))){ + a14 = 8; + a0 = 0; + a29 = 6; + a19 = 2; + return -1; + } else if(((((a19==3)&&((!(a20==1)&&((a22==1)&&(((a7==1)&&(!(a0==1)&&(((input==3)&&(((a29==6)||(a29==7))||(a29==8)))&&(a11==1))))&&(a28==1))))&&(a14==8)))&&!(a25==1))&&(a24==1))){ + a7 = 0; + a29 = 8; + a20 = 1; + a25 = 1; + a19 = 5; + return -1; + } else if(((!(a7==1)&&(((a11==1)&&((((a25==1)&&((((((a29==5)&&(a19==4))||(((a19==3)&&(a29==8))||((a19==3)&&(a29==9))))&&(input==4))&&(a22==1))&&(a28==1)))&&!(a20==1))&&!(a0==1)))&&(a14==9)))&&(a24==1))){ + a14 = 8; + a7 = 1; + a19 = 2; + a29 = 6; + return 23; + } else if(((!(a0==1)&&(!(a7==1)&&((a28==1)&&(((a14==8)&&((a22==1)&&((((a19==3)&&((input==1)&&((a29==7)||((a29==5)||(a29==6)))))&&!(a24==1))&&(a11==1))))&&(a25==1)))))&&!(a20==1))){ + a14 = 9; + a19 = 5; + a29 = 5; + a24 = 1; + return 24; + } else if(((a28==1)&&(!(a0==1)&&((a25==1)&&((a19==3)&&((a14==9)&&((((a20==1)&&((((input==1)&&((a29==7)||((a29==5)||(a29==6))))&&!(a7==1))&&!(a11==1)))&&(a24==1))&&(a22==1)))))))){ + a11 = 1; + a0 = 1; + a19 = 1; + a29 = 5; + a7 = 1; + a14 = 8; + return -1; + } else if((((a19==5)&&(((a11==1)&&((!(a24==1)&&(((a29==5)&&((((input==5)&&(a20==1))&&(a7==1))&&(a14==9)))&&(a22==1)))&&!(a0==1)))&&(a25==1)))&&(a28==1))){ + a19 = 1; + a24 = 1; + a14 = 8; + a0 = 1; + return -1; + } else if(((a22==1)&&((a25==1)&&((a28==1)&&(((a14==8)&&((((a24==1)&&(((((a29==5)||(a29==6))&&(input==6))&&(a7==1))&&(a19==5)))&&(a0==1))&&!(a20==1)))&&!(a11==1)))))){ + a11 = 1; + a14 = 9; + a29 = 7; + a19 = 3; + a20 = 1; + return 24; + } else if((!(a25==1)&&((((a22==1)&&(!(a7==1)&&(((a11==1)&&((((((a19==2)&&(a29==5))||(((a29==8)&&(a19==1))||((a19==1)&&(a29==9))))&&(input==3))&&(a14==10))&&(a0==1)))&&(a28==1))))&&!(a20==1))&&(a24==1)))){ + a19 = 3; + a14 = 9; + a25 = 1; + a29 = 9; + a7 = 1; + a20 = 1; + a24 = 0; + a11 = 0; + return -1; + } else if(((((a22==1)&&(!(a7==1)&&((a28==1)&&(!(a20==1)&&(((!(a24==1)&&(((input==4)&&((a29==7)||((a29==5)||(a29==6))))&&(a19==1)))&&(a14==9))&&!(a25==1))))))&&!(a0==1))&&(a11==1))){ + a14 = 8; + a24 = 1; + a29 = 9; + a19 = 4; + return 24; + } else if((((!(a24==1)&&((a28==1)&&((a0==1)&&((a14==8)&&((((a19==1)&&(((a25==1)&&((a7==1)&&!(a20==1)))&&(a29==6)))||(((a19==5)&&((a29==9)&&(((a20==1)&&!(a7==1))&&!(a25==1))))||((a19==1)&&((a29==5)&&((!(a20==1)&&(a7==1))&&(a25==1))))))&&(input==4))))))&&!(a11==1))&&(a22==1))){ + a7 = 0; + a29 = 8; + a19 = 3; + a25 = 0; + a0 = 0; + a20 = 1; + a24 = 1; + a11 = 1; + return 21; + } else if((((a29==5)&&((a28==1)&&((a14==9)&&(!(a20==1)&&((a0==1)&&((a25==1)&&((((a11==1)&&((input==6)&&!(a7==1)))&&(a19==2))&&(a22==1))))))))&&(a24==1))){ + a14 = 8; + a11 = 0; + a24 = 0; + a25 = 0; + a7 = 1; + a29 = 6; + a19 = 5; + return 23; + } else if((((((a22==1)&&(!(a11==1)&&(((!(a7==1)&&((a19==2)&&(!(a25==1)&&((input==3)&&(a14==9)))))&&(a20==1))&&(a29==7))))&&!(a0==1))&&(a24==1))&&(a28==1))){ + a19 = 3; + a20 = 0; + a24 = 0; + a14 = 8; + a0 = 1; + a29 = 6; + a7 = 1; + return 24; + } else if(((((!(a24==1)&&((a19==4)&&((a14==8)&&(((!(a25==1)&&((a0==1)&&((input==2)&&((a29==8)||(a29==9)))))&&(a28==1))&&!(a7==1)))))&&(a20==1))&&(a22==1))&&!(a11==1))){ + a11 = 1; + a24 = 1; + a7 = 1; + a25 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a20==1)&&(((a22==1)&&(((!(a7==1)&&(((!(a24==1)&&((a28==1)&&(((a29==7)||(a29==8))&&(input==6))))&&(a19==1))&&(a25==1)))&&(a14==9))&&(a11==1)))&&!(a0==1)))){ + a19 = 4; + a20 = 0; + a0 = 1; + a29 = 6; + a24 = 1; + a11 = 0; + return 24; + } else if((((a20==1)&&(((((a25==1)&&((a11==1)&&((a14==9)&&((a22==1)&&((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))&&(input==4))))))&&(a7==1))&&(a28==1))&&(a24==1)))&&!(a0==1))){ + a24 = 0; + a19 = 4; + a14 = 8; + a29 = 5; + return 24; + } else if((!(a7==1)&&((a29==7)&&(((a28==1)&&((a20==1)&&(((((((a22==1)&&(input==2))&&(a25==1))&&(a14==9))&&!(a11==1))&&!(a24==1))&&!(a0==1))))&&(a19==1))))){ + a19 = 2; + a25 = 0; + a0 = 1; + a24 = 1; + a7 = 1; + a11 = 1; + return 23; + } else if((((a22==1)&&((a20==1)&&((((((a7==1)&&((a25==1)&&((a0==1)&&((input==6)&&((a29==8)||((a29==6)||(a29==7)))))))&&(a14==9))&&(a28==1))&&(a19==2))&&!(a24==1))))&&(a11==1))){ + a11 = 0; + a0 = 0; + a20 = 0; + a25 = 0; + a14 = 8; + a29 = 8; + a19 = 1; + a7 = 0; + return -1; + } else if(((a11==1)&&(!(a25==1)&&((((a14==10)&&((a28==1)&&((a22==1)&&((((((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))&&(input==3))&&!(a24==1))&&(a20==1)))))&&(a7==1))&&(a0==1))))){ + a24 = 1; + a19 = 1; + a25 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if(((a25==1)&&((a0==1)&&(((a7==1)&&((a28==1)&&(!(a24==1)&&(!(a11==1)&&((a14==9)&&((a19==5)&&(((a22==1)&&(input==4))&&(a20==1))))))))&&(a29==8))))){ + a0 = 0; + a29 = 6; + a24 = 1; + a7 = 0; + a20 = 0; + a14 = 8; + a11 = 1; + a19 = 2; + return 21; + } else if(((a25==1)&&(((((((((a20==1)&&(((a22==1)&&(input==2))&&(a14==9)))&&(a29==7))&&(a11==1))&&(a0==1))&&(a24==1))&&!(a7==1))&&(a28==1))&&(a19==3)))){ + a20 = 0; + a24 = 0; + a0 = 0; + a11 = 0; + a14 = 8; + a7 = 1; + a19 = 1; + return 23; + } else if((((a29==8)&&((a24==1)&&((a22==1)&&(!(a7==1)&&((a0==1)&&(((((a19==3)&&((input==3)&&(a28==1)))&&!(a20==1))&&(a25==1))&&(a14==8)))))))&&!(a11==1))){ + a11 = 1; + a14 = 9; + a7 = 1; + a29 = 9; + return 21; + } else if(((a20==1)&&(((a22==1)&&(((a0==1)&&((a14==8)&&((a25==1)&&((a7==1)&&(((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))&&(input==5))&&!(a11==1))))))&&(a24==1)))&&(a28==1)))){ + a19 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if(((((a25==1)&&((a7==1)&&((a24==1)&&((!(a0==1)&&((a22==1)&&((((((a19==4)&&(a29==8))||((a19==4)&&(a29==9)))||((a19==5)&&(a29==5)))&&(input==2))&&(a14==9))))&&!(a11==1)))))&&(a28==1))&&!(a20==1))){ + a11 = 1; + a7 = 0; + a19 = 4; + a0 = 1; + a29 = 9; + a24 = 0; + a20 = 1; + return 23; + } else if(((a11==1)&&((a28==1)&&(!(a7==1)&&(((a22==1)&&((a0==1)&&(!(a24==1)&&((!(a25==1)&&((a20==1)&&((input==2)&&(((a29==6)||(a29==7))||(a29==8)))))&&(a14==8)))))&&(a19==4)))))){ + a11 = 0; + a29 = 8; + a20 = 0; + a19 = 3; + return 21; + } else if(((a19==2)&&(((!(a25==1)&&((!(a7==1)&&((a11==1)&&((a0==1)&&((a28==1)&&((((a29==5)||(a29==6))&&(input==5))&&(a24==1))))))&&(a22==1)))&&(a14==9))&&!(a20==1)))){ + a14 = 8; + a29 = 6; + a25 = 1; + a19 = 5; + return 24; + } else if((((a24==1)&&((a7==1)&&((a20==1)&&((a14==9)&&((a22==1)&&((a0==1)&&((a19==1)&&(!(a25==1)&&(!(a11==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==5)))))))))))&&(a28==1))){ + a14 = 8; + a29 = 5; + a25 = 1; + a11 = 1; + return -1; + } else if(((((!(a20==1)&&((a14==10)&&((a28==1)&&(((a22==1)&&((((input==4)&&((a29==9)||((a29==7)||(a29==8))))&&(a0==1))&&(a24==1)))&&!(a7==1)))))&&(a25==1))&&(a11==1))&&(a19==1))){ + a11 = 0; + a20 = 1; + a7 = 1; + a14 = 9; + a19 = 5; + a29 = 5; + return 21; + } else if(((!(a20==1)&&((a25==1)&&(((a14==9)&&((a28==1)&&((a0==1)&&(!(a11==1)&&((a7==1)&&((a19==5)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==6))))))))&&(a24==1))))&&(a22==1))){ + a11 = 1; + a29 = 5; + a14 = 8; + a19 = 1; + a20 = 1; + return -1; + } else if(((a11==1)&&((a22==1)&&(!(a7==1)&&(((a24==1)&&((a28==1)&&(((a14==9)&&(!(a20==1)&&(!(a25==1)&&((input==1)&&(((a29==7)||(a29==8))||(a29==9))))))&&!(a0==1))))&&(a19==3)))))){ + a20 = 1; + a14 = 8; + a29 = 7; + a25 = 1; + a19 = 5; + a7 = 1; + return 24; + } else if((!(a24==1)&&(((a7==1)&&(((((((a0==1)&&((input==5)&&((((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))||((a19==2)&&(a29==6)))))&&(a14==8))&&(a22==1))&&(a28==1))&&!(a11==1))&&(a25==1)))&&!(a20==1)))){ + a24 = 1; + a0 = 0; + a19 = 1; + a29 = 8; + a11 = 1; + return 24; + } else if(((!(a24==1)&&((a0==1)&&((((a22==1)&&(!(a7==1)&&((((((a29==5)||(a29==6))&&(input==5))&&(a25==1))&&(a19==5))&&(a14==8))))&&(a28==1))&&!(a11==1))))&&!(a20==1))){ + a19 = 3; + a0 = 0; + a20 = 1; + a11 = 1; + a29 = 6; + a24 = 1; + return 24; + } else if((!(a20==1)&&(!(a7==1)&&(((a24==1)&&(!(a0==1)&&(!(a25==1)&&((a22==1)&&(((a11==1)&&(((a29==9)&&(input==2))&&(a19==1)))&&(a14==8))))))&&(a28==1))))){ + a20 = 1; + a29 = 5; + a0 = 1; + a7 = 1; + a25 = 1; + return -1; + } else if((((a14==9)&&(!(a20==1)&&((a0==1)&&((((a22==1)&&((a7==1)&&(((!(a11==1)&&(input==5))&&(a24==1))&&(a28==1))))&&(a29==5))&&(a19==2)))))&&!(a25==1))){ + a19 = 1; + a25 = 1; + a20 = 1; + a11 = 1; + a14 = 8; + return -1; + } else if((!(a24==1)&&(((a28==1)&&(((((a11==1)&&(((a0==1)&&((((a29==6)||(a29==7))&&(input==2))&&(a7==1)))&&(a19==4)))&&(a22==1))&&!(a25==1))&&!(a20==1)))&&(a14==8)))){ + a19 = 2; + a29 = 7; + a25 = 1; + a11 = 0; + a0 = 0; + a24 = 1; + a20 = 1; + return 21; + } else if(((!(a20==1)&&(!(a25==1)&&((a29==5)&&((a24==1)&&(((a14==9)&&(((a28==1)&&(((input==3)&&(a22==1))&&(a19==4)))&&(a11==1)))&&(a0==1))))))&&!(a7==1))){ + a7 = 1; + a29 = 7; + a20 = 1; + a19 = 3; + return 21; + } else if(((a11==1)&&((((a25==1)&&((a28==1)&&(((!(a20==1)&&((a24==1)&&((a19==1)&&((input==5)&&(((a29==7)||(a29==8))||(a29==9))))))&&(a14==8))&&!(a7==1))))&&(a0==1))&&(a22==1)))){ + a11 = 0; + a20 = 1; + a29 = 9; + a25 = 0; + return 23; + } else if(((a25==1)&&(((a22==1)&&((((a14==9)&&(!(a11==1)&&(((((a19==3)&&(input==6))&&(a0==1))&&!(a24==1))&&(a29==8))))&&(a20==1))&&!(a7==1)))&&(a28==1)))){ + a29 = 5; + a7 = 1; + a25 = 0; + a11 = 1; + a0 = 0; + a14 = 8; + a24 = 1; + a19 = 4; + return 23; + } else if((((((!(a7==1)&&((!(a24==1)&&((!(a0==1)&&(((((a19==1)&&(a29==8))||((a19==1)&&(a29==9)))||((a19==2)&&(a29==5)))&&(input==5)))&&(a11==1)))&&(a22==1)))&&!(a20==1))&&(a14==9))&&!(a25==1))&&(a28==1))){ + a25 = 1; + a7 = 1; + a24 = 1; + a19 = 3; + a29 = 5; + return -1; + } else if(((!(a20==1)&&((a28==1)&&((a22==1)&&(((((a29==6)&&(!(a11==1)&&((a19==4)&&((input==4)&&(a14==8)))))&&(a25==1))&&(a24==1))&&(a7==1)))))&&(a0==1))){ + a0 = 0; + a7 = 0; + a29 = 7; + a11 = 1; + a19 = 1; + return 23; + } else if(((a25==1)&&((((((a28==1)&&((((((a29==8)&&(input==2))&&(a0==1))&&(a22==1))&&(a19==4))&&!(a11==1)))&&!(a20==1))&&!(a7==1))&&(a14==9))&&(a24==1)))){ + a14 = 8; + a20 = 1; + a19 = 1; + a29 = 5; + a7 = 1; + a11 = 1; + return -1; + } else if(((a29==6)&&((((((a0==1)&&((((a7==1)&&(((a14==9)&&(input==5))&&(a22==1)))&&(a11==1))&&(a25==1)))&&(a19==1))&&(a24==1))&&(a28==1))&&!(a20==1)))){ + a20 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if((!(a20==1)&&((a0==1)&&((a22==1)&&((!(a7==1)&&(((a14==9)&&((a19==5)&&(((((a29==8)||(a29==9))&&(input==3))&&(a28==1))&&!(a24==1))))&&(a11==1)))&&(a25==1)))))){ + a14 = 8; + a19 = 2; + a25 = 0; + a24 = 1; + a29 = 9; + a7 = 1; + a0 = 0; + return 24; + } else if((((a28==1)&&((a11==1)&&((((a24==1)&&((!(a25==1)&&((a19==4)&&((a29==9)&&((input==2)&&(a22==1)))))&&(a7==1)))&&!(a0==1))&&(a14==8))))&&(a20==1))){ + a11 = 0; + a0 = 1; + a14 = 9; + a24 = 0; + a29 = 5; + a19 = 1; + return 23; + } else if((((a25==1)&&((a24==1)&&(((a22==1)&&(!(a11==1)&&(((a28==1)&&(!(a0==1)&&(((((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))||((a19==5)&&(a29==5)))&&(input==1))))&&(a20==1))))&&(a7==1))))&&(a14==9))){ + a29 = 5; + a0 = 1; + a19 = 2; + return -1; + } else if((!(a0==1)&&(!(a25==1)&&((!(a24==1)&&((a22==1)&&(!(a7==1)&&((a28==1)&&(!(a20==1)&&((a11==1)&&(((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))||((a29==6)&&(a19==3)))&&(input==6))))))))&&(a14==8))))){ + a7 = 1; + a29 = 7; + a20 = 1; + a19 = 4; + a24 = 1; + return 21; + } else if((((a20==1)&&(!(a11==1)&&(((((a22==1)&&((!(a24==1)&&((a19==4)&&(((a29==8)||(a29==9))&&(input==3))))&&(a7==1)))&&(a25==1))&&(a28==1))&&!(a0==1))))&&(a14==9))){ + a14 = 8; + a11 = 1; + a24 = 1; + a29 = 5; + a0 = 1; + a19 = 1; + return -1; + } else if(((((((a24==1)&&((((a29==6)&&((((input==4)&&(a14==9))&&(a19==2))&&!(a20==1)))&&!(a11==1))&&(a0==1)))&&(a22==1))&&(a28==1))&&(a7==1))&&(a25==1))){ + a0 = 0; + a19 = 1; + a29 = 7; + a14 = 8; + return 21; + } else if(((a19==1)&&(((a29==9)&&((!(a7==1)&&(!(a0==1)&&((a22==1)&&(!(a24==1)&&((a14==9)&&((a28==1)&&((input==5)&&(a25==1))))))))&&!(a11==1)))&&(a20==1)))){ + a0 = 1; + a29 = 5; + a11 = 1; + a24 = 1; + a7 = 1; + a14 = 8; + return -1; + } else if(((a14==8)&&(!(a11==1)&&((a19==2)&&((((a24==1)&&((((a28==1)&&(!(a20==1)&&(((a29==8)||(a29==9))&&(input==3))))&&!(a7==1))&&(a25==1)))&&(a22==1))&&(a0==1)))))){ + a29 = 8; + a24 = 0; + a19 = 3; + a25 = 0; + return 21; + } else if((!(a20==1)&&((a24==1)&&((((a22==1)&&((((a19==4)&&((a28==1)&&((a25==1)&&((input==6)&&((a29==8)||(a29==9))))))&&!(a7==1))&&(a14==9)))&&!(a0==1))&&(a11==1))))){ + a14 = 8; + a20 = 1; + a25 = 0; + a29 = 5; + a7 = 1; + a19 = 1; + return 24; + } else if(((a22==1)&&(((a28==1)&&(!(a24==1)&&(!(a0==1)&&((((!(a7==1)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==3))&&(a14==8)))&&!(a11==1))&&(a19==5))&&(a20==1)))))&&(a25==1)))){ + a29 = 5; + a25 = 0; + a24 = 1; + a20 = 0; + a19 = 2; + a11 = 1; + return -1; + } else if((((a11==1)&&((a22==1)&&((a28==1)&&((!(a24==1)&&(((a14==9)&&(!(a20==1)&&((((a19==5)&&(a29==5))||(((a19==4)&&(a29==8))||((a19==4)&&(a29==9))))&&(input==1))))&&!(a25==1)))&&(a7==1)))))&&!(a0==1))){ + a29 = 7; + a25 = 1; + a7 = 0; + a24 = 1; + a14 = 8; + a19 = 5; + return 24; + } else if((!(a11==1)&&((((a14==9)&&(((a24==1)&&(!(a0==1)&&((((input==6)&&((((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))||((a29==5)&&(a19==5))))&&(a22==1))&&(a25==1))))&&(a28==1)))&&(a7==1))&&(a20==1)))){ + a20 = 0; + a11 = 1; + a24 = 0; + a14 = 8; + a29 = 6; + a19 = 5; + return 23; + } else if((!(a25==1)&&((a22==1)&&(((a28==1)&&((a14==8)&&((a20==1)&&((!(a11==1)&&((((input==1)&&((a29==7)||((a29==5)||(a29==6))))&&!(a0==1))&&(a24==1)))&&(a7==1)))))&&(a19==2))))){ + a19 = 1; + a24 = 0; + a14 = 9; + a29 = 9; + a11 = 1; + return 23; + } else if((((a24==1)&&(!(a25==1)&&((a11==1)&&((((a0==1)&&((a20==1)&&((a22==1)&&(((input==3)&&((a29==5)||(a29==6)))&&!(a7==1)))))&&(a19==4))&&(a28==1)))))&&(a14==8))){ + a25 = 1; + a29 = 5; + a7 = 1; + a19 = 1; + return -1; + } else if((((!(a24==1)&&((a14==8)&&((a7==1)&&(((a22==1)&&(((a11==1)&&(!(a25==1)&&(!(a20==1)&&(input==5))))&&(a28==1)))&&(a29==7)))))&&!(a0==1))&&(a19==5))){ + a7 = 0; + a19 = 4; + a29 = 5; + a24 = 1; + return 21; + } else if(((a25==1)&&((!(a20==1)&&(!(a24==1)&&((!(a0==1)&&(((a14==8)&&(((((a29==6)||(a29==7))&&(input==3))&&!(a11==1))&&(a28==1)))&&!(a7==1)))&&(a22==1))))&&(a19==3)))){ + a20 = 1; + a19 = 2; + a29 = 7; + return -1; + } else if(((a11==1)&&(!(a0==1)&&((!(a7==1)&&((a28==1)&&((((a19==1)&&(((a14==8)&&(((a29==5)||(a29==6))&&(input==1)))&&(a20==1)))&&!(a25==1))&&(a24==1))))&&(a22==1))))){ + a19 = 2; + a11 = 0; + a0 = 1; + a20 = 0; + a24 = 0; + a29 = 6; + a25 = 1; + return -1; + } else if(((a11==1)&&(((a14==9)&&((a20==1)&&((a19==2)&&(!(a7==1)&&(((a28==1)&&(!(a24==1)&&((a22==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==1)))))&&!(a25==1))))))&&(a0==1)))){ + a19 = 3; + a25 = 1; + a29 = 9; + a0 = 0; + a14 = 8; + a24 = 1; + return -1; + } else if(((a14==10)&&((a0==1)&&(((a24==1)&&((a19==5)&&((a7==1)&&(!(a20==1)&&(((a28==1)&&((a11==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==6))))&&(a25==1))))))&&(a22==1))))){ + a7 = 0; + a19 = 3; + a29 = 9; + a14 = 9; + return 21; + } else if(((((a14==9)&&((!(a24==1)&&(!(a20==1)&&(((((((a29==5)||(a29==6))&&(input==2))&&!(a7==1))&&(a28==1))&&(a19==1))&&(a22==1))))&&(a25==1)))&&(a0==1))&&!(a11==1))){ + a19 = 3; + a29 = 9; + a20 = 1; + a7 = 1; + return 24; + } else if((((a20==1)&&((((((a19==4)&&(!(a11==1)&&((a25==1)&&((((a29==8)||(a29==9))&&(input==4))&&(a14==8)))))&&(a22==1))&&!(a7==1))&&!(a24==1))&&!(a0==1)))&&(a28==1))){ + a20 = 0; + a25 = 0; + a0 = 1; + a19 = 2; + a14 = 9; + a29 = 8; + return 23; + } else if(((!(a0==1)&&((!(a7==1)&&((((((a14==8)&&(((input==2)&&!(a20==1))&&!(a24==1)))&&!(a25==1))&&!(a11==1))&&(a22==1))&&(a28==1)))&&(a29==9)))&&(a19==5))){ + a24 = 1; + a19 = 3; + a29 = 8; + a11 = 1; + a25 = 1; + a7 = 1; + return 23; + } else if((((a14==9)&&((((a0==1)&&(((a24==1)&&((!(a25==1)&&((((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))&&(input==5)))&&(a11==1)))&&(a20==1)))&&(a7==1))&&(a28==1)))&&(a22==1))){ + a14 = 8; + a19 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if(((a20==1)&&((a25==1)&&((((a22==1)&&((!(a24==1)&&((a28==1)&&(((input==1)&&((((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))||((a29==6)&&(a19==5))))&&!(a7==1))))&&!(a11==1)))&&(a0==1))&&(a14==9))))){ + a19 = 5; + a11 = 1; + a25 = 0; + a29 = 5; + return -1; + } else if(((a19==5)&&((a22==1)&&((a20==1)&&(((!(a0==1)&&((((a14==9)&&(((a28==1)&&(input==3))&&(a29==7)))&&!(a24==1))&&!(a11==1)))&&!(a7==1))&&!(a25==1)))))){ + a25 = 1; + a14 = 8; + a11 = 1; + a19 = 3; + a29 = 6; + a20 = 0; + return 24; + } else if(((((a14==9)&&((a28==1)&&(((a22==1)&&((!(a11==1)&&(!(a20==1)&&((input==3)&&(((a19==2)&&(a29==9))||((a19==3)&&(a29==5))))))&&!(a24==1)))&&!(a25==1))))&&(a0==1))&&!(a7==1))){ + a14 = 8; + a24 = 1; + a11 = 1; + a29 = 5; + a19 = 1; + a25 = 1; + a7 = 1; + a20 = 1; + return -1; + } else if((((a28==1)&&((((((a0==1)&&(((a7==1)&&(((((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))||((a29==6)&&(a19==2)))&&(input==2)))&&(a14==8)))&&(a24==1))&&!(a25==1))&&!(a20==1))&&!(a11==1)))&&(a22==1))){ + a20 = 1; + a11 = 1; + a19 = 3; + a14 = 9; + a29 = 5; + return 21; + } else if(((((a19==1)&&(((((a28==1)&&((((a22==1)&&((input==4)&&((a29==7)||(a29==8))))&&(a7==1))&&!(a0==1)))&&(a20==1))&&!(a25==1))&&(a14==9)))&&!(a11==1))&&(a24==1))){ + a24 = 0; + a14 = 8; + a29 = 7; + a20 = 0; + a25 = 1; + return 23; + } else if((((a24==1)&&((a28==1)&&((a22==1)&&((a19==2)&&((a25==1)&&(!(a7==1)&&(!(a20==1)&&((a11==1)&&(((input==2)&&(a14==10))&&(a29==9))))))))))&&(a0==1))){ + a0 = 0; + a14 = 9; + a20 = 1; + a29 = 5; + a7 = 1; + a25 = 0; + a19 = 5; + return -1; + } else if(((a22==1)&&((a14==8)&&(!(a0==1)&&(((a29==7)&&(((a20==1)&&((!(a11==1)&&(((a28==1)&&(input==2))&&(a19==2)))&&(a25==1)))&&!(a24==1)))&&!(a7==1)))))){ + a24 = 1; + a11 = 1; + a29 = 5; + a7 = 1; + a0 = 1; + a19 = 1; + return -1; + } else if((((((a0==1)&&((!(a7==1)&&(((((a24==1)&&((input==1)&&(a29==8)))&&(a14==10))&&(a22==1))&&(a28==1)))&&!(a25==1)))&&(a20==1))&&(a11==1))&&(a19==4))){ + a29 = 5; + a20 = 0; + a14 = 9; + a7 = 1; + return -1; + } else if(((((a28==1)&&(((a14==9)&&(((a22==1)&&((((a19==4)&&(((a29==5)||(a29==6))&&(input==1)))&&(a0==1))&&!(a20==1)))&&(a11==1)))&&(a24==1)))&&(a7==1))&&!(a25==1))){ + a20 = 1; + a25 = 1; + a14 = 8; + a0 = 0; + a29 = 8; + a19 = 5; + return 23; + } else if((((a25==1)&&(!(a20==1)&&(((a14==9)&&(((!(a7==1)&&(((((a29==6)||(a29==7))&&(input==1))&&(a22==1))&&(a28==1)))&&(a24==1))&&(a0==1)))&&!(a11==1))))&&(a19==2))){ + a29 = 5; + a11 = 1; + a20 = 1; + a14 = 8; + a19 = 1; + a7 = 1; + return -1; + } else if(((a14==8)&&(!(a25==1)&&(((((((a19==2)&&((a0==1)&&((a28==1)&&((a29==8)&&(input==6)))))&&(a22==1))&&(a7==1))&&(a24==1))&&(a11==1))&&!(a20==1))))){ + a7 = 0; + a24 = 0; + return 23; + } else if((!(a7==1)&&(((a25==1)&&((a19==3)&&(((a14==9)&&(((a22==1)&&((!(a20==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==3)))&&(a28==1)))&&(a0==1)))&&(a11==1))))&&!(a24==1)))){ + a7 = 1; + a19 = 2; + a0 = 0; + a29 = 6; + a24 = 1; + a14 = 8; + a20 = 1; + return 21; + } else if((((a14==8)&&((!(a7==1)&&((a19==2)&&((!(a11==1)&&(((a28==1)&&(((input==2)&&((a29==6)||(a29==7)))&&(a22==1)))&&!(a24==1)))&&(a20==1))))&&!(a25==1)))&&!(a0==1))){ + a19 = 1; + a29 = 9; + a20 = 0; + a0 = 1; + return 21; + } else if(((!(a0==1)&&(!(a7==1)&&((((a19==3)&&(((a11==1)&&(!(a25==1)&&(((input==1)&&((a29==8)||((a29==6)||(a29==7))))&&(a14==9))))&&(a20==1)))&&(a22==1))&&(a24==1))))&&(a28==1))){ + a14 = 8; + a24 = 0; + a20 = 0; + a29 = 9; + a7 = 1; + a11 = 0; + return 24; + } else if(((a14==9)&&(!(a7==1)&&((a25==1)&&((a19==2)&&(!(a20==1)&&(!(a11==1)&&((a28==1)&&((((a22==1)&&((input==3)&&((a29==8)||(a29==9))))&&(a0==1))&&(a24==1)))))))))){ + a20 = 1; + a29 = 7; + a11 = 1; + a19 = 5; + a25 = 0; + return -1; + } else if(((a7==1)&&(((((a24==1)&&(((((((a29==7)&&(input==6))&&(a14==8))&&(a22==1))&&(a25==1))&&(a20==1))&&(a19==3)))&&(a28==1))&&!(a0==1))&&!(a11==1)))){ + a7 = 0; + a20 = 0; + a29 = 5; + a11 = 1; + a19 = 4; + return 23; + } else if((((a24==1)&&(!(a7==1)&&(!(a25==1)&&(!(a0==1)&&(((a11==1)&&(((a22==1)&&(((a29==9)&&(input==6))&&(a19==1)))&&(a28==1)))&&(a14==8))))))&&!(a20==1))){ + a0 = 1; + a20 = 1; + a7 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if((((a22==1)&&((a19==2)&&((a0==1)&&((a14==8)&&(!(a7==1)&&(!(a25==1)&&((((a24==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==4)))&&(a28==1))&&(a20==1))))))))&&!(a11==1))){ + a7 = 1; + a0 = 0; + a20 = 0; + a11 = 1; + a19 = 1; + a29 = 8; + return 23; + } else if(((a24==1)&&((((a22==1)&&((a0==1)&&((a20==1)&&((((a7==1)&&(((input==1)&&(a29==6))&&(a19==5)))&&(a28==1))&&!(a11==1)))))&&(a25==1))&&(a14==8)))){ + a20 = 0; + a24 = 0; + a7 = 0; + a19 = 3; + a25 = 0; + a29 = 7; + return 24; + } else if(((a22==1)&&((!(a0==1)&&((a28==1)&&((a24==1)&&((a19==5)&&((!(a25==1)&&(!(a20==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==2))&&(a14==9))))&&!(a11==1))))))&&!(a7==1)))){ + a25 = 1; + a14 = 8; + a29 = 7; + a19 = 4; + return -1; + } else if(((a24==1)&&(((a28==1)&&(((a14==10)&&(((a11==1)&&((a22==1)&&(!(a20==1)&&(!(a7==1)&&((input==3)&&((a29==6)||(a29==7)))))))&&!(a25==1)))&&(a19==1)))&&(a0==1)))){ + a20 = 1; + a11 = 0; + a24 = 0; + a0 = 0; + a14 = 9; + a25 = 1; + a29 = 8; + return -1; + } else if(((!(a25==1)&&((a29==9)&&((a0==1)&&(((a22==1)&&((((!(a11==1)&&((a20==1)&&(input==4)))&&(a14==8))&&(a7==1))&&(a28==1)))&&!(a24==1)))))&&(a19==4))){ + a14 = 9; + a11 = 1; + a7 = 0; + a19 = 5; + return 23; + } else if(((a20==1)&&((a11==1)&&((a28==1)&&(((a0==1)&&(((a22==1)&&((a24==1)&&(((input==6)&&(((a29==9)&&(a19==1))||((a29==5)&&(a19==2))))&&(a14==9))))&&!(a25==1)))&&!(a7==1)))))){ + a19 = 1; + a25 = 1; + a29 = 8; + return -1; + } else if((((((a22==1)&&((!(a0==1)&&(!(a7==1)&&((a28==1)&&((!(a24==1)&&((a14==9)&&(input==2)))&&(a20==1)))))&&(a29==7)))&&!(a11==1))&&!(a25==1))&&(a19==5))){ + a11 = 1; + a7 = 1; + a29 = 9; + a19 = 2; + a0 = 1; + a25 = 1; + return 23; + } else if(((((a22==1)&&((!(a24==1)&&(((a25==1)&&((a0==1)&&(((((a29==8)||(a29==9))&&(input==3))&&(a20==1))&&(a19==4))))&&(a7==1)))&&(a11==1)))&&(a28==1))&&(a14==8))){ + a25 = 0; + a19 = 1; + a11 = 0; + a7 = 0; + a29 = 5; + a20 = 0; + return 21; + } else if((!(a7==1)&&(((a28==1)&&(((a25==1)&&((a14==9)&&((a22==1)&&((a20==1)&&((a11==1)&&(((input==6)&&(a0==1))&&(a29==7)))))))&&(a19==3)))&&(a24==1)))){ + a14 = 8; + a19 = 1; + a11 = 0; + a24 = 0; + a29 = 5; + a7 = 1; + a0 = 0; + a25 = 0; + return 24; + } else if(((((a20==1)&&(((((a29==8)&&((a14==9)&&(((a0==1)&&((input==6)&&(a22==1)))&&(a19==5))))&&(a28==1))&&!(a24==1))&&(a7==1)))&&(a25==1))&&!(a11==1))){ + a7 = 0; + a11 = 1; + a14 = 8; + a25 = 0; + a19 = 1; + a24 = 1; + a0 = 0; + return 24; + } else if(((((!(a11==1)&&(((a24==1)&&((((a7==1)&&(((input==6)&&((a29==6)||(a29==7)))&&(a28==1)))&&(a19==2))&&(a22==1)))&&(a20==1)))&&!(a0==1))&&!(a25==1))&&(a14==9))){ + a24 = 0; + a0 = 1; + a19 = 5; + a29 = 8; + a7 = 0; + a11 = 1; + return -1; + } else if((!(a11==1)&&(!(a25==1)&&((a24==1)&&((a20==1)&&((a28==1)&&((((a14==9)&&(((a29==7)&&((input==1)&&!(a7==1)))&&(a19==2)))&&!(a0==1))&&(a22==1)))))))){ + a14 = 8; + a20 = 0; + a29 = 6; + a11 = 1; + return 23; + } else if(((a20==1)&&(((a14==9)&&(((a25==1)&&((((((input==4)&&((((a19==3)&&(a29==8))||((a19==3)&&(a29==9)))||((a29==5)&&(a19==4))))&&(a22==1))&&!(a24==1))&&(a7==1))&&!(a0==1)))&&(a11==1)))&&(a28==1)))){ + a11 = 0; + a14 = 8; + a19 = 4; + a7 = 0; + a29 = 9; + a0 = 1; + a20 = 0; + return 21; + } else if((((!(a7==1)&&((a29==5)&&((!(a24==1)&&((a0==1)&&((a22==1)&&(!(a11==1)&&(((a25==1)&&(input==3))&&(a19==5))))))&&(a20==1))))&&(a14==8))&&(a28==1))){ + a25 = 0; + a11 = 1; + a19 = 4; + a7 = 1; + a29 = 6; + a20 = 0; + a14 = 9; + return 24; + } else if(((a19==4)&&((a11==1)&&((a7==1)&&(((a20==1)&&(((a22==1)&&(!(a0==1)&&(!(a25==1)&&((a28==1)&&(((a29==8)||(a29==9))&&(input==3))))))&&!(a24==1)))&&(a14==8)))))){ + a24 = 1; + a25 = 1; + a0 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((((a22==1)&&(((a25==1)&&((a29==8)&&((a19==1)&&((a20==1)&&(!(a0==1)&&((a14==8)&&(!(a7==1)&&((input==6)&&(a28==1)))))))))&&(a24==1)))&&!(a11==1))){ + a11 = 1; + a20 = 0; + a7 = 1; + a19 = 5; + a29 = 7; + return 21; + } else if(((((a25==1)&&((a20==1)&&((((a11==1)&&((((a22==1)&&((input==3)&&((a29==7)||(a29==8))))&&(a0==1))&&!(a7==1)))&&(a14==8))&&!(a24==1))))&&(a19==1))&&(a28==1))){ + a0 = 0; + a24 = 1; + a20 = 0; + a29 = 6; + a7 = 1; + a25 = 0; + return 24; + } else if((((a14==10)&&((a22==1)&&(((((a19==2)&&((((a11==1)&&((a0==1)&&(input==1)))&&(a28==1))&&!(a20==1)))&&(a24==1))&&!(a25==1))&&(a29==9))))&&!(a7==1))){ + a0 = 0; + a29 = 7; + a11 = 0; + a24 = 0; + a7 = 1; + a14 = 8; + a20 = 1; + return -1; + } else if(((a24==1)&&((a11==1)&&(!(a0==1)&&(((a22==1)&&((a7==1)&&(((a28==1)&&((a25==1)&&((input==1)&&((((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))||((a19==5)&&(a29==5))))))&&!(a20==1))))&&(a14==9)))))){ + a20 = 1; + a14 = 8; + a19 = 4; + a24 = 0; + a29 = 7; + a25 = 0; + return -1; + } else if(((((!(a0==1)&&((a14==8)&&(!(a24==1)&&(((a19==5)&&(((a25==1)&&(!(a7==1)&&(input==3)))&&!(a11==1)))&&(a28==1)))))&&(a29==5))&&(a22==1))&&!(a20==1))){ + a20 = 1; + a11 = 1; + a24 = 1; + a29 = 9; + a7 = 1; + return 21; + } else if(((a22==1)&&(((a11==1)&&((((!(a25==1)&&(!(a0==1)&&((((input==2)&&((a29==7)||(a29==8)))&&(a28==1))&&(a24==1))))&&(a20==1))&&(a14==9))&&(a7==1)))&&(a19==2)))){ + a7 = 0; + a29 = 8; + a11 = 0; + a19 = 1; + a0 = 1; + return 21; + } else if(((a7==1)&&((a11==1)&&((a28==1)&&(((a20==1)&&((a14==10)&&((a29==6)&&(((a24==1)&&(((input==5)&&(a22==1))&&(a0==1)))&&(a19==4)))))&&(a25==1)))))){ + a14 = 8; + a29 = 5; + a19 = 1; + return -1; + } else if((((a14==8)&&((a20==1)&&(!(a24==1)&&(((a25==1)&&((a28==1)&&(((((((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))||((a29==6)&&(a19==2)))&&(input==2))&&(a22==1))&&!(a0==1))))&&!(a11==1)))))&&!(a7==1))){ + a29 = 5; + a0 = 1; + a11 = 1; + a19 = 1; + a7 = 1; + a24 = 1; + return -1; + } else if(((a25==1)&&(!(a0==1)&&((a28==1)&&(((a14==9)&&(((a11==1)&&(((((input==6)&&(((a29==5)||(a29==6))||(a29==7)))&&(a22==1))&&!(a20==1))&&(a24==1)))&&!(a7==1)))&&(a19==2)))))){ + a29 = 9; + a7 = 1; + a19 = 4; + a0 = 1; + a11 = 0; + return -1; + } else if(((((!(a7==1)&&((!(a25==1)&&(((a24==1)&&(((((a29==6)&&(a19==5))||(((a29==9)&&(a19==4))||((a29==5)&&(a19==5))))&&(input==6))&&(a22==1)))&&!(a0==1)))&&(a14==9)))&&(a11==1))&&(a20==1))&&(a28==1))){ + a25 = 1; + a19 = 3; + a29 = 6; + a11 = 0; + a0 = 1; + return 21; + } else if((((a14==10)&&((((a22==1)&&(((((((a19==2)&&(input==1))&&!(a25==1))&&(a29==5))&&(a0==1))&&(a24==1))&&(a20==1)))&&(a28==1))&&!(a7==1)))&&(a11==1))){ + a24 = 0; + a29 = 6; + a19 = 3; + a20 = 0; + a11 = 0; + a14 = 8; + return 23; + } else if(((((a14==9)&&((a11==1)&&(((a0==1)&&((a29==9)&&(!(a20==1)&&((a19==3)&&((a25==1)&&((input==4)&&(a22==1)))))))&&(a28==1))))&&!(a24==1))&&!(a7==1))){ + a19 = 4; + a0 = 0; + a14 = 8; + a25 = 0; + a29 = 8; + a24 = 1; + return 24; + } else if(((((a29==7)&&(!(a25==1)&&(((a28==1)&&((a22==1)&&(((((a0==1)&&(input==6))&&(a19==4))&&(a14==8))&&!(a20==1))))&&!(a7==1))))&&(a24==1))&&(a11==1))){ + a20 = 1; + a19 = 2; + a29 = 6; + a11 = 0; + a25 = 1; + a24 = 0; + return 24; + } else if(((a22==1)&&(((((a14==9)&&(((a7==1)&&((((((a29==6)||(a29==7))&&(input==4))&&(a20==1))&&!(a11==1))&&(a24==1)))&&(a25==1)))&&(a19==4))&&!(a0==1))&&(a28==1)))){ + a11 = 1; + a29 = 5; + a14 = 8; + return 23; + } else if(((a24==1)&&((a28==1)&&((((a7==1)&&(((a22==1)&&((a14==10)&&(!(a20==1)&&(((input==2)&&((a29==5)||(a29==6)))&&(a19==2)))))&&(a0==1)))&&(a11==1))&&!(a25==1))))){ + a14 = 9; + a19 = 3; + a29 = 6; + a24 = 0; + a11 = 0; + a20 = 1; + return 21; + } else if((!(a0==1)&&((((a19==3)&&(((a25==1)&&((a28==1)&&((a11==1)&&((!(a7==1)&&((input==3)&&((a29==6)||(a29==7))))&&(a24==1)))))&&!(a20==1)))&&(a22==1))&&(a14==9)))){ + a0 = 1; + a7 = 1; + a20 = 1; + a14 = 8; + a29 = 5; + a19 = 1; + return -1; + } else if(((a24==1)&&((a20==1)&&(((a22==1)&&(((a28==1)&&(((a0==1)&&((a14==8)&&((a25==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==1)))))&&(a19==5)))&&(a11==1)))&&!(a7==1))))){ + a19 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if((((!(a20==1)&&((a0==1)&&((a25==1)&&((a19==3)&&((a14==9)&&((a11==1)&&(((a28==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==4)))&&(a22==1))))))))&&!(a24==1))&&!(a7==1))){ + a25 = 0; + a19 = 4; + a7 = 1; + a14 = 8; + a20 = 1; + a29 = 8; + a0 = 0; + return -1; + } else if(((a14==8)&&(((((a11==1)&&((((a25==1)&&((a24==1)&&(((input==4)&&((a29==8)||((a29==6)||(a29==7))))&&!(a0==1))))&&(a7==1))&&(a28==1)))&&(a19==3))&&(a20==1))&&(a22==1)))){ + a0 = 1; + a29 = 7; + a25 = 0; + a24 = 0; + a19 = 1; + return 21; + } else if((!(a24==1)&&((a19==2)&&(((((a20==1)&&(((a7==1)&&(!(a11==1)&&(((input==2)&&((a29==5)||(a29==6)))&&(a25==1))))&&(a28==1)))&&(a0==1))&&(a14==8))&&(a22==1))))){ + a14 = 9; + a29 = 8; + a19 = 4; + a11 = 1; + return 23; + } else if(((a19==5)&&((!(a7==1)&&(((a29==5)&&((a22==1)&&(((!(a0==1)&&(((input==4)&&(a20==1))&&(a24==1)))&&(a28==1))&&!(a25==1))))&&(a14==9)))&&!(a11==1)))){ + a7 = 1; + a14 = 8; + a11 = 1; + a0 = 1; + a25 = 1; + a19 = 1; + return -1; + } else if(((a11==1)&&((!(a0==1)&&(((a19==4)&&(!(a25==1)&&((a22==1)&&(((((a14==8)&&(input==4))&&!(a20==1))&&!(a24==1))&&(a28==1)))))&&(a7==1)))&&(a29==7)))){ + a25 = 1; + a19 = 5; + a24 = 1; + a29 = 8; + return 23; + } else if((!(a25==1)&&((a24==1)&&((a20==1)&&((a19==5)&&((!(a11==1)&&(!(a7==1)&&((a0==1)&&((a22==1)&&(((input==3)&&(a28==1))&&(a14==9))))))&&(a29==8))))))){ + a19 = 1; + a11 = 1; + a7 = 1; + a25 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((a19==5)&&((!(a20==1)&&((a0==1)&&((((a11==1)&&((a22==1)&&(((a24==1)&&(((a29==7)||(a29==8))&&(input==4)))&&(a28==1))))&&(a14==10))&&!(a7==1))))&&!(a25==1)))){ + a19 = 3; + a14 = 8; + a20 = 1; + a29 = 7; + a25 = 1; + return 24; + } else if((!(a24==1)&&((!(a0==1)&&(((((a28==1)&&((!(a11==1)&&(((input==2)&&(a29==7))&&(a19==5)))&&(a22==1)))&&(a14==8))&&!(a20==1))&&(a7==1)))&&!(a25==1)))){ + a19 = 2; + a29 = 8; + a0 = 1; + return 23; + } else if(((((a22==1)&&((a24==1)&&(((!(a20==1)&&(((((input==6)&&((a29==7)||((a29==5)||(a29==6))))&&(a11==1))&&(a0==1))&&(a28==1)))&&(a19==2))&&(a14==8))))&&(a7==1))&&!(a25==1))){ + a19 = 1; + a25 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if(((a20==1)&&(((a28==1)&&((a0==1)&&((!(a25==1)&&((a11==1)&&((((a19==3)&&((input==2)&&(((a29==6)||(a29==7))||(a29==8))))&&(a7==1))&&(a22==1))))&&!(a24==1))))&&(a14==8)))){ + a19 = 4; + a24 = 1; + a29 = 9; + a0 = 0; + return 24; + } else if(((a24==1)&&((!(a0==1)&&((a14==9)&&(((a19==5)&&((a28==1)&&((((a25==1)&&((input==1)&&!(a7==1)))&&(a11==1))&&(a20==1))))&&(a29==7))))&&(a22==1)))){ + a29 = 5; + a19 = 3; + return -1; + } else if((((a25==1)&&((((a22==1)&&((a24==1)&&(((!(a7==1)&&(((input==4)&&(a29==6))&&(a0==1)))&&(a28==1))&&(a14==9))))&&!(a20==1))&&(a19==4)))&&!(a11==1))){ + a20 = 1; + a29 = 9; + a25 = 0; + return 24; + } else if(((((a19==2)&&((!(a7==1)&&(!(a20==1)&&(!(a0==1)&&((a22==1)&&((a11==1)&&((((a29==6)||(a29==7))&&(input==1))&&(a24==1)))))))&&(a14==8)))&&(a25==1))&&(a28==1))){ + a29 = 9; + a19 = 1; + return 23; + } else if((!(a24==1)&&((a28==1)&&(!(a7==1)&&((((a25==1)&&((a0==1)&&((a20==1)&&((a22==1)&&(((input==2)&&((a29==8)||((a29==6)||(a29==7))))&&(a19==3))))))&&(a11==1))&&(a14==9)))))){ + a29 = 7; + a20 = 0; + a7 = 1; + a19 = 1; + a24 = 1; + return -1; + } else if((((((a14==10)&&((a25==1)&&((((a29==9)&&((((input==1)&&(a20==1))&&(a19==4))&&(a28==1)))&&(a22==1))&&(a24==1))))&&(a0==1))&&(a11==1))&&(a7==1))){ + a29 = 8; + a24 = 0; + a7 = 0; + a11 = 0; + a20 = 0; + a14 = 8; + a19 = 5; + return 24; + } else if(((a7==1)&&(!(a25==1)&&(((a22==1)&&((((!(a0==1)&&(((((a29==7)||(a29==8))&&(input==1))&&(a28==1))&&!(a11==1)))&&!(a20==1))&&(a19==2))&&(a14==9)))&&!(a24==1))))){ + a11 = 1; + a14 = 8; + a24 = 1; + a25 = 1; + a20 = 1; + a29 = 5; + return 24; + } else if((!(a24==1)&&(!(a25==1)&&((((!(a7==1)&&((!(a0==1)&&(((a14==8)&&((input==6)&&(a29==7)))&&(a22==1)))&&(a19==4)))&&(a11==1))&&(a28==1))&&(a20==1))))){ + a19 = 2; + a24 = 1; + a7 = 1; + return 24; + } else if(((a28==1)&&((a14==9)&&(((a19==5)&&((a29==9)&&(((a24==1)&&(!(a7==1)&&((((a22==1)&&(input==4))&&!(a25==1))&&(a20==1))))&&!(a11==1))))&&(a0==1))))){ + a19 = 3; + a25 = 1; + a29 = 7; + a7 = 1; + return -1; + } else if(((((((a14==8)&&(!(a25==1)&&((a29==6)&&((a20==1)&&((!(a24==1)&&((input==6)&&(a19==1)))&&(a22==1))))))&&(a11==1))&&!(a0==1))&&(a28==1))&&!(a7==1))){ + a29 = 7; + a19 = 4; + a11 = 0; + a25 = 1; + return 21; + } else if(((a19==3)&&((a7==1)&&(((((!(a11==1)&&((a0==1)&&((((input==1)&&((a29==7)||(a29==8)))&&(a24==1))&&!(a20==1))))&&(a14==9))&&(a28==1))&&(a22==1))&&!(a25==1))))){ + a14 = 8; + a7 = 0; + a25 = 1; + a0 = 0; + a20 = 1; + a29 = 9; + a19 = 1; + return -1; + } else if(((!(a0==1)&&((!(a25==1)&&((((a28==1)&&((a29==7)&&(((!(a20==1)&&(input==5))&&(a24==1))&&(a7==1))))&&(a11==1))&&(a14==9)))&&(a19==4)))&&(a22==1))){ + a24 = 0; + a25 = 1; + a7 = 0; + a14 = 8; + a19 = 5; + return -1; + } else if(((a22==1)&&(((a19==4)&&(((!(a0==1)&&((a25==1)&&((a20==1)&&(!(a24==1)&&((!(a7==1)&&(input==5))&&(a29==5))))))&&(a28==1))&&(a14==8)))&&!(a11==1)))){ + a11 = 1; + a20 = 0; + a24 = 1; + a25 = 0; + a29 = 8; + return 23; + } else if((((((a22==1)&&((!(a24==1)&&((((a19==4)&&((a14==8)&&((a20==1)&&(input==1))))&&(a28==1))&&(a7==1)))&&!(a11==1)))&&!(a0==1))&&(a29==8))&&(a25==1))){ + a19 = 2; + a11 = 1; + a20 = 0; + a29 = 7; + a0 = 1; + a14 = 9; + return 24; + } else if((((a7==1)&&((((!(a24==1)&&((a25==1)&&(((a0==1)&&((!(a20==1)&&(input==1))&&(a28==1)))&&(a19==2))))&&(a22==1))&&(a14==9))&&(a29==7)))&&(a11==1))){ + a11 = 0; + a29 = 6; + a19 = 3; + a25 = 0; + a14 = 8; + return 21; + } else if((!(a7==1)&&(((((a19==2)&&((((a29==7)&&(((!(a25==1)&&(input==5))&&!(a20==1))&&!(a0==1)))&&(a28==1))&&(a11==1)))&&(a22==1))&&(a24==1))&&(a14==8)))){ + a20 = 1; + a29 = 5; + a0 = 1; + a25 = 1; + a19 = 1; + a7 = 1; + return -1; + } else if((((a0==1)&&((a19==2)&&((!(a11==1)&&((a24==1)&&((a20==1)&&(((a28==1)&&(((input==6)&&(a29==6))&&!(a25==1)))&&(a22==1)))))&&!(a7==1))))&&(a14==8))){ + a19 = 1; + a25 = 1; + a7 = 1; + a29 = 5; + a11 = 1; + return -1; + } else if(((a28==1)&&((a25==1)&&(((a20==1)&&((a22==1)&&(!(a11==1)&&((a14==8)&&((a29==9)&&((a7==1)&&((a19==1)&&((input==5)&&(a24==1)))))))))&&(a0==1))))){ + a19 = 5; + a29 = 6; + a7 = 0; + a0 = 0; + a20 = 0; + a11 = 1; + return 21; + } else if(((!(a25==1)&&(!(a24==1)&&(((a28==1)&&((a22==1)&&((!(a0==1)&&((a14==9)&&(!(a20==1)&&((input==5)&&((a29==7)||(a29==8))))))&&(a7==1))))&&(a19==2))))&&!(a11==1))){ + a11 = 1; + a19 = 1; + a0 = 1; + a14 = 8; + a29 = 5; + a24 = 1; + a20 = 1; + a25 = 1; + return -1; + } else if((!(a25==1)&&((a20==1)&&(((((a28==1)&&(!(a7==1)&&((a11==1)&&(((((a29==6)||(a29==7))&&(input==4))&&!(a24==1))&&(a14==8)))))&&(a19==3))&&!(a0==1))&&(a22==1))))){ + a0 = 1; + a25 = 1; + a7 = 1; + a20 = 0; + a29 = 6; + a11 = 0; + a14 = 9; + return 23; + } else if((!(a11==1)&&((((((((a14==9)&&(((a20==1)&&((input==2)&&!(a24==1)))&&(a22==1)))&&(a7==1))&&(a28==1))&&(a29==9))&&(a19==2))&&!(a0==1))&&(a25==1)))){ + a11 = 1; + a0 = 1; + a25 = 0; + a19 = 1; + return 23; + } else if(((a11==1)&&((a22==1)&&((!(a20==1)&&((a19==5)&&(((a0==1)&&(((a24==1)&&((a14==9)&&((input==5)&&!(a25==1))))&&(a28==1)))&&(a29==7))))&&(a7==1))))){ + a29 = 5; + a7 = 0; + a11 = 0; + a19 = 1; + return 24; + } else if((!(a24==1)&&((a22==1)&&(!(a11==1)&&((!(a25==1)&&(((!(a7==1)&&((a14==9)&&((((a29==6)||(a29==7))&&(input==2))&&!(a0==1))))&&(a20==1))&&(a28==1)))&&(a19==1)))))){ + a11 = 1; + a7 = 1; + a0 = 1; + a29 = 7; + a25 = 1; + return -1; + } else if((((a22==1)&&(!(a24==1)&&((a20==1)&&(((a28==1)&&((!(a7==1)&&(!(a11==1)&&((input==2)&&(((a29==5)&&(a19==2))||(((a19==1)&&(a29==8))||((a29==9)&&(a19==1)))))))&&!(a25==1)))&&!(a0==1)))))&&(a14==9))){ + a11 = 1; + a7 = 1; + a14 = 8; + a25 = 1; + a29 = 5; + a19 = 1; + a24 = 1; + a0 = 1; + return -1; + } else if(((a14==9)&&((!(a11==1)&&((!(a0==1)&&(!(a20==1)&&((((a7==1)&&((((a19==2)&&(a29==6))||(((a29==9)&&(a19==1))||((a19==2)&&(a29==5))))&&(input==1)))&&(a22==1))&&(a24==1))))&&(a28==1)))&&!(a25==1)))){ + a29 = 5; + a19 = 1; + a25 = 1; + a11 = 1; + a20 = 1; + a14 = 8; + a0 = 1; + return -1; + } else if(((a28==1)&&(((a14==9)&&(((((((a19==1)&&((a29==5)&&((a25==1)&&(!(a20==1)&&(a7==1)))))||(((a19==5)&&((((a20==1)&&!(a7==1))&&!(a25==1))&&(a29==8)))||(((!(a25==1)&&((a20==1)&&!(a7==1)))&&(a29==9))&&(a19==5))))&&(input==2))&&(a22==1))&&!(a0==1))&&!(a11==1)))&&(a24==1)))){ + a20 = 0; + a19 = 5; + a25 = 0; + a7 = 0; + a24 = 0; + a11 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if((((a25==1)&&(((a20==1)&&((((((a22==1)&&((a28==1)&&((input==6)&&((a29==8)||((a29==6)||(a29==7))))))&&!(a7==1))&&(a19==4))&&(a14==9))&&(a0==1)))&&(a11==1)))&&(a24==1))){ + a19 = 1; + a7 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if(((!(a0==1)&&((a14==9)&&(!(a11==1)&&((a19==3)&&(((a28==1)&&((!(a24==1)&&((((a29==6)||(a29==7))&&(input==3))&&!(a7==1)))&&!(a20==1)))&&(a25==1))))))&&(a22==1))){ + a25 = 0; + a24 = 1; + a29 = 6; + a7 = 1; + a14 = 8; + return 24; + } else if((!(a20==1)&&((!(a24==1)&&((a28==1)&&(((!(a7==1)&&((!(a0==1)&&(((input==2)&&((a29==8)||(a29==9)))&&(a19==2)))&&(a22==1)))&&!(a25==1))&&!(a11==1))))&&(a14==9)))){ + a0 = 1; + a24 = 1; + a20 = 1; + a29 = 8; + a19 = 5; + return 24; + } else if(((a20==1)&&(((a28==1)&&((a22==1)&&(!(a25==1)&&(((a19==5)&&(!(a0==1)&&((a11==1)&&((a7==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==1))))))&&(a14==8)))))&&!(a24==1)))){ + a29 = 6; + a7 = 0; + a0 = 1; + a25 = 1; + a11 = 0; + a20 = 0; + return 21; + } else if(((a14==9)&&((a29==8)&&(((a22==1)&&(!(a24==1)&&((a25==1)&&(((!(a11==1)&&(((a0==1)&&(input==3))&&(a7==1)))&&(a28==1))&&(a19==2)))))&&!(a20==1))))){ + a11 = 1; + a19 = 3; + a29 = 5; + return 23; + } else if(((a28==1)&&((!(a20==1)&&(((((a19==3)&&((!(a7==1)&&((a22==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==4))))&&(a11==1)))&&!(a25==1))&&(a0==1))&&(a24==1)))&&(a14==10)))){ + a19 = 1; + a29 = 7; + a20 = 1; + a14 = 9; + a7 = 1; + a0 = 0; + return -1; + } else if(((((((a19==3)&&(!(a25==1)&&((a20==1)&&((a11==1)&&((a29==9)&&((a28==1)&&((input==3)&&!(a0==1))))))))&&(a22==1))&&(a24==1))&&(a14==8))&&(a7==1))){ + return 24; + } else if(((a14==9)&&((((a28==1)&&((a25==1)&&(!(a7==1)&&(((a22==1)&&(!(a0==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==3))&&!(a11==1))))&&(a20==1)))))&&(a19==4))&&(a24==1)))){ + a14 = 8; + a11 = 1; + a29 = 9; + a25 = 0; + a19 = 2; + return -1; + } else if(((a24==1)&&(!(a0==1)&&((((a25==1)&&(((!(a7==1)&&(((((a29==5)&&(a19==2))||(((a19==1)&&(a29==8))||((a29==9)&&(a19==1))))&&(input==6))&&(a14==8)))&&(a28==1))&&(a11==1)))&&!(a20==1))&&(a22==1))))){ + a14 = 9; + a25 = 0; + a0 = 1; + a24 = 0; + a29 = 7; + a11 = 0; + a7 = 1; + a19 = 1; + return 23; + } else if((((a7==1)&&((a14==9)&&(!(a25==1)&&(!(a0==1)&&(!(a20==1)&&((!(a11==1)&&(((a19==1)&&((input==3)&&((a29==7)||(a29==8))))&&(a22==1)))&&(a28==1)))))))&&(a24==1))){ + a14 = 8; + a29 = 5; + a25 = 1; + a24 = 0; + a19 = 3; + a20 = 1; + return -1; + } else if(((((a14==8)&&((((!(a20==1)&&(!(a7==1)&&((!(a25==1)&&((input==4)&&((a29==7)||(a29==8))))&&(a19==5))))&&!(a0==1))&&(a28==1))&&(a22==1)))&&(a24==1))&&(a11==1))){ + a7 = 1; + a29 = 7; + a24 = 0; + a0 = 1; + a11 = 0; + return 24; + } else if((!(a25==1)&&(((a14==9)&&((((a19==3)&&(((a28==1)&&(((((a29==8)||(a29==9))&&(input==4))&&!(a24==1))&&(a11==1)))&&!(a20==1)))&&(a7==1))&&(a22==1)))&&!(a0==1)))){ + a29 = 9; + a20 = 1; + a25 = 1; + a7 = 0; + a24 = 1; + a19 = 5; + a0 = 1; + return -1; + } else if((((a11==1)&&((((((a25==1)&&((a19==1)&&(((a24==1)&&((input==1)&&(a28==1)))&&(a29==9))))&&!(a20==1))&&(a22==1))&&(a0==1))&&(a14==9)))&&(a7==1))){ + a0 = 0; + a24 = 0; + a19 = 5; + a11 = 0; + a14 = 8; + a29 = 6; + a7 = 0; + return -1; + } else if(((a24==1)&&((((a19==3)&&(((!(a7==1)&&((((a25==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==6)))&&(a14==10))&&(a22==1)))&&(a28==1))&&!(a20==1)))&&(a11==1))&&(a0==1)))){ + a11 = 0; + a14 = 9; + a19 = 4; + a29 = 5; + a25 = 0; + return 21; + } else if((((a22==1)&&(((((((a19==4)&&((a29==5)&&(!(a0==1)&&((input==4)&&!(a20==1)))))&&(a24==1))&&!(a7==1))&&(a14==8))&&!(a25==1))&&!(a11==1)))&&(a28==1))){ + a11 = 1; + a20 = 1; + a29 = 8; + a25 = 1; + a19 = 3; + return 23; + } else if((((a14==8)&&(!(a11==1)&&(((!(a24==1)&&((a29==5)&&((a25==1)&&((a0==1)&&(((input==4)&&(a19==5))&&(a28==1))))))&&!(a7==1))&&(a20==1))))&&(a22==1))){ + a7 = 1; + a19 = 1; + a11 = 1; + a24 = 1; + return -1; + } else if(((a14==9)&&(((a24==1)&&(((a0==1)&&((a20==1)&&((a7==1)&&((!(a25==1)&&((((a29==8)||(a29==9))&&(input==2))&&(a19==3)))&&(a22==1)))))&&!(a11==1)))&&(a28==1)))){ + a7 = 0; + a24 = 0; + a29 = 7; + a19 = 4; + a14 = 8; + a20 = 0; + return 24; + } else if(((!(a25==1)&&(((a19==4)&&((!(a24==1)&&((((a14==8)&&((a20==1)&&((input==1)&&(a29==9))))&&(a22==1))&&!(a0==1)))&&!(a11==1)))&&(a28==1)))&&!(a7==1))){ + a0 = 1; + a19 = 5; + a29 = 8; + a14 = 9; + return 24; + } else if(((a28==1)&&(!(a25==1)&&(!(a11==1)&&(!(a7==1)&&(!(a20==1)&&(((((!(a24==1)&&(((a29==6)||(a29==7))&&(input==5)))&&(a22==1))&&(a14==8))&&(a19==1))&&(a0==1)))))))){ + a25 = 1; + a29 = 6; + return -1; + } else if(((((((a14==9)&&((a11==1)&&((a28==1)&&(!(a24==1)&&(((((a19==5)&&((a25==1)&&(a29==8)))||((a19==5)&&((a25==1)&&(a29==9))))||((a19==1)&&(!(a25==1)&&(a29==5))))&&(input==3))))))&&(a20==1))&&(a0==1))&&(a22==1))&&!(a7==1))){ + a7 = 1; + a14 = 8; + a24 = 1; + a19 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if(((a22==1)&&((!(a20==1)&&((((a28==1)&&((a24==1)&&(((a11==1)&&((a25==1)&&((input==2)&&!(a0==1))))&&!(a7==1))))&&(a19==5))&&(a29==8)))&&(a14==9)))){ + a19 = 1; + a0 = 1; + a29 = 5; + a7 = 1; + a14 = 8; + a20 = 1; + return -1; + } else if((((a19==3)&&((((((a0==1)&&((a25==1)&&(((a22==1)&&((input==2)&&(((a29==6)||(a29==7))||(a29==8))))&&(a24==1))))&&(a11==1))&&!(a20==1))&&(a28==1))&&(a7==1)))&&(a14==9))){ + a14 = 8; + a29 = 8; + a0 = 0; + a20 = 1; + a25 = 0; + a19 = 5; + return -1; + } else if((((a19==3)&&((a0==1)&&((a24==1)&&((a11==1)&&(((((((input==2)&&(((a29==6)||(a29==7))||(a29==8)))&&!(a25==1))&&(a14==8))&&(a20==1))&&(a22==1))&&(a28==1))))))&&!(a7==1))){ + a29 = 7; + a20 = 0; + return 24; + } else if(((!(a20==1)&&(!(a11==1)&&(((a14==8)&&((((((a28==1)&&((input==6)&&!(a0==1)))&&!(a24==1))&&!(a7==1))&&(a22==1))&&(a29==8)))&&(a19==5))))&&(a25==1))){ + a29 = 5; + a20 = 1; + a24 = 1; + a11 = 1; + a19 = 1; + a0 = 1; + a7 = 1; + return -1; + } else if((!(a24==1)&&(((((((((a14==8)&&((!(a20==1)&&(input==2))&&(a28==1)))&&!(a0==1))&&(a22==1))&&(a29==7))&&(a19==5))&&(a7==1))&&(a11==1))&&!(a25==1)))){ + a29 = 6; + a14 = 9; + a0 = 1; + a19 = 2; + return 23; + } else if(((a14==8)&&(!(a25==1)&&((((a7==1)&&((((a19==5)&&(!(a20==1)&&(!(a0==1)&&((input==1)&&(a22==1)))))&&(a28==1))&&(a29==6)))&&(a11==1))&&!(a24==1))))){ + a7 = 0; + a24 = 1; + a25 = 1; + a29 = 8; + return 24; + } else if(((!(a0==1)&&(((a19==5)&&(((a11==1)&&((a7==1)&&((a20==1)&&((((input==5)&&((a29==5)||(a29==6)))&&(a14==8))&&(a28==1)))))&&(a22==1)))&&!(a25==1)))&&!(a24==1))){ + a20 = 0; + a29 = 6; + a19 = 3; + a11 = 0; + return 24; + } else if((((a28==1)&&((a24==1)&&((a22==1)&&((!(a20==1)&&((a14==8)&&((input==2)&&(((a19==5)&&((!(a25==1)&&(a7==1))&&(a29==9)))||((((a25==1)&&!(a7==1))&&(a29==5))&&(a19==1))))))&&!(a11==1)))))&&!(a0==1))){ + a7 = 1; + a25 = 1; + a0 = 1; + a29 = 5; + a19 = 1; + a20 = 1; + a11 = 1; + return -1; + } else if((!(a25==1)&&((a14==8)&&((a19==5)&&(!(a7==1)&&((!(a20==1)&&((a22==1)&&((a28==1)&&(!(a11==1)&&(!(a0==1)&&(((a29==6)||(a29==7))&&(input==6)))))))&&!(a24==1))))))){ + a20 = 1; + a29 = 7; + a7 = 1; + a24 = 1; + a25 = 1; + return -1; + } else if((((((a22==1)&&((((((a14==9)&&((((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))&&(input==4)))&&!(a24==1))&&(a0==1))&&(a28==1))&&(a20==1)))&&!(a25==1))&&(a7==1))&&(a11==1))){ + a25 = 1; + a20 = 0; + a11 = 0; + a29 = 7; + a19 = 5; + return 21; + } else if(((a28==1)&&((((a22==1)&&((a14==8)&&((!(a7==1)&&((!(a24==1)&&((input==6)&&(((a19==4)&&(a29==5))||(((a19==3)&&(a29==8))||((a29==9)&&(a19==3))))))&&(a0==1)))&&!(a11==1))))&&(a25==1))&&(a20==1)))){ + a29 = 5; + a7 = 1; + a24 = 1; + a11 = 1; + a19 = 1; + return -1; + } else if(((a24==1)&&(((((a25==1)&&((((a28==1)&&((!(a7==1)&&((input==1)&&((a29==9)||((a29==7)||(a29==8)))))&&(a0==1)))&&(a19==4))&&(a20==1)))&&(a22==1))&&(a14==8))&&!(a11==1)))){ + a11 = 1; + a29 = 5; + a19 = 1; + a7 = 1; + return -1; + } else if((((a0==1)&&((a22==1)&&((a25==1)&&(!(a7==1)&&(((a20==1)&&((a14==9)&&((a11==1)&&((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))&&(input==6)))))&&(a28==1))))))&&!(a24==1))){ + a14 = 8; + a24 = 1; + a7 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if((((a29==9)&&(((a22==1)&&((a25==1)&&((a11==1)&&(((a14==10)&&(((a28==1)&&((input==6)&&(a24==1)))&&(a0==1)))&&(a20==1)))))&&(a7==1)))&&(a19==3))){ + a19 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((a0==1)&&(((a20==1)&&(!(a25==1)&&((a14==9)&&((!(a7==1)&&((((input==4)&&(((a29==9)&&(a19==2))||((a19==3)&&(a29==5))))&&(a28==1))&&(a11==1)))&&(a22==1)))))&&!(a24==1)))){ + a29 = 5; + a14 = 8; + a24 = 1; + a7 = 1; + a19 = 1; + a25 = 1; + return -1; + } else if(((a0==1)&&((((a28==1)&&((((a20==1)&&(((((input==2)&&(a24==1))&&(a25==1))&&(a22==1))&&(a29==7)))&&(a19==5))&&(a14==8)))&&!(a11==1))&&!(a7==1)))){ + a29 = 6; + a24 = 0; + a25 = 0; + a0 = 0; + a19 = 4; + return 23; + } else if(((!(a24==1)&&((a28==1)&&((((a14==8)&&((((!(a25==1)&&((input==1)&&!(a0==1)))&&!(a11==1))&&(a7==1))&&(a29==6)))&&!(a20==1))&&(a19==1))))&&(a22==1))){ + a14 = 9; + a7 = 0; + a24 = 1; + a25 = 1; + a29 = 9; + return 24; + } else if(((a0==1)&&((!(a7==1)&&(!(a20==1)&&(((a28==1)&&((a19==1)&&(!(a11==1)&&(((a14==9)&&((((a29==5)||(a29==6))||(a29==7))&&(input==5)))&&(a22==1)))))&&!(a24==1))))&&!(a25==1)))){ + a29 = 7; + a14 = 8; + a11 = 1; + a24 = 1; + a0 = 0; + a25 = 1; + a19 = 3; + return 23; + } else if((((((a19==2)&&((a7==1)&&((!(a25==1)&&((a20==1)&&((a22==1)&&(((input==5)&&!(a0==1))&&(a14==9)))))&&(a28==1))))&&!(a11==1))&&(a24==1))&&(a29==8))){ + a20 = 0; + a11 = 1; + a24 = 0; + a19 = 4; + a29 = 7; + a0 = 1; + a25 = 1; + return -1; + } return calculate_output38(input); + } + + int calculate_output38(int input) { + if((((!(a0==1)&&(((((a29==5)&&(((a28==1)&&(((input==1)&&!(a7==1))&&(a22==1)))&&(a14==9)))&&(a19==1))&&(a11==1))&&(a24==1)))&&(a20==1))&&(a25==1))){ + a0 = 1; + a20 = 0; + a19 = 3; + a7 = 1; + a29 = 6; + a25 = 0; + a11 = 0; + return 24; + } else if(((a0==1)&&((a24==1)&&((((((((a25==1)&&((((a29==6)&&(a19==3))||(((a19==2)&&(a29==9))||((a29==5)&&(a19==3))))&&(input==2)))&&(a22==1))&&!(a11==1))&&!(a20==1))&&(a7==1))&&(a28==1))&&(a14==9))))){ + a11 = 1; + a7 = 0; + a19 = 4; + a29 = 7; + return -1; + } else if((((!(a25==1)&&((((a22==1)&&(((a28==1)&&(((a14==8)&&(((a29==5)||(a29==6))&&(input==3)))&&(a20==1)))&&(a24==1)))&&!(a7==1))&&(a11==1)))&&(a19==1))&&!(a0==1))){ + a29 = 7; + a7 = 1; + return -1; + } else if((((a28==1)&&((a19==2)&&((a22==1)&&(!(a25==1)&&((a11==1)&&(((a14==8)&&((!(a20==1)&&(((a29==7)||(a29==8))&&(input==6)))&&!(a7==1)))&&!(a0==1)))))))&&!(a24==1))){ + a25 = 1; + a0 = 1; + a19 = 1; + a7 = 1; + a29 = 5; + a24 = 1; + a20 = 1; + return -1; + } else if(((a14==9)&&((((a19==2)&&(((a11==1)&&(((a22==1)&&(!(a7==1)&&((((a29==7)||(a29==8))&&(input==1))&&(a24==1))))&&(a0==1)))&&(a28==1)))&&!(a25==1))&&!(a20==1)))){ + a19 = 1; + a7 = 1; + a25 = 1; + a14 = 8; + a29 = 5; + a20 = 1; + return -1; + } else if(((a11==1)&&((a28==1)&&((a14==9)&&(((a24==1)&&(!(a0==1)&&((a19==2)&&(!(a7==1)&&(((a22==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==5)))&&(a20==1))))))&&!(a25==1)))))){ + a20 = 0; + a7 = 1; + a29 = 9; + a14 = 8; + return 24; + } else if(((a11==1)&&((((a24==1)&&((a28==1)&&((!(a20==1)&&((a25==1)&&((a19==5)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==4))&&(a7==1)))))&&(a14==9))))&&(a0==1))&&(a22==1)))){ + a29 = 5; + a19 = 1; + a14 = 8; + a20 = 1; + return -1; + } else if((!(a24==1)&&((a14==8)&&(!(a20==1)&&((((a22==1)&&(!(a7==1)&&((((((a29==5)||(a29==6))&&(input==5))&&(a19==4))&&(a25==1))&&!(a11==1))))&&(a28==1))&&!(a0==1)))))){ + a24 = 1; + a0 = 1; + a29 = 5; + a19 = 1; + a11 = 1; + a20 = 1; + a7 = 1; + return -1; + } else if((!(a24==1)&&((a14==9)&&(!(a0==1)&&(((((a22==1)&&(((((a19==5)&&((a29==8)&&(!(a25==1)&&(a7==1))))||(((a29==9)&&(!(a25==1)&&(a7==1)))&&(a19==5)))||((((a25==1)&&!(a7==1))&&(a29==5))&&(a19==1)))&&(input==5)))&&!(a20==1))&&(a28==1))&&(a11==1)))))){ + a20 = 1; + a7 = 1; + a14 = 8; + a29 = 5; + a25 = 1; + a0 = 1; + a24 = 1; + a19 = 1; + return -1; + } else if((!(a11==1)&&((a19==4)&&((((((a25==1)&&((a7==1)&&(((((a29==8)||(a29==9))&&(input==2))&&(a24==1))&&(a28==1))))&&(a14==8))&&!(a0==1))&&(a20==1))&&(a22==1))))){ + a29 = 6; + a19 = 2; + a24 = 0; + a0 = 1; + a14 = 9; + a20 = 0; + return 24; + } else if(((((a24==1)&&((a22==1)&&(!(a11==1)&&((a14==8)&&((((a19==5)&&(!(a20==1)&&((input==5)&&((a29==6)||(a29==7)))))&&(a0==1))&&(a28==1))))))&&!(a7==1))&&(a25==1))){ + a11 = 1; + a25 = 0; + a29 = 9; + a14 = 9; + a7 = 1; + return 24; + } else if(((a24==1)&&(!(a25==1)&&(((a0==1)&&((a22==1)&&((a28==1)&&(!(a7==1)&&(((a14==8)&&(((input==4)&&((a29==7)||((a29==5)||(a29==6))))&&!(a20==1)))&&(a11==1))))))&&(a19==5))))){ + a20 = 1; + a24 = 0; + a11 = 0; + a19 = 1; + a29 = 5; + return 21; + } else if(((!(a0==1)&&((a19==5)&&((((((a28==1)&&(((a25==1)&&(((a29==8)||(a29==9))&&(input==4)))&&!(a7==1)))&&(a22==1))&&!(a11==1))&&(a14==8))&&(a20==1))))&&(a24==1))){ + a29 = 5; + a7 = 1; + a11 = 1; + a0 = 1; + a19 = 1; + return -1; + } else if(((((a14==9)&&(!(a11==1)&&((((input==5)&&((((a29==5)&&(((a7==1)&&!(a20==1))&&(a25==1)))&&(a19==1))||(((((!(a7==1)&&(a20==1))&&!(a25==1))&&(a29==8))&&(a19==5))||(((((a20==1)&&!(a7==1))&&!(a25==1))&&(a29==9))&&(a19==5)))))&&(a28==1))&&!(a24==1))))&&!(a0==1))&&(a22==1))){ + a20 = 1; + a19 = 1; + a7 = 0; + a11 = 1; + a29 = 8; + a14 = 8; + a25 = 0; + a24 = 1; + return 23; + } else if((!(a11==1)&&((a22==1)&&((((a20==1)&&((a28==1)&&(((input==2)&&(((a19==5)&&(((a7==1)&&!(a25==1))&&(a29==9)))||(((!(a7==1)&&(a25==1))&&(a29==5))&&(a19==1))))&&(a24==1))))&&(a14==8))&&!(a0==1))))){ + a29 = 7; + a19 = 4; + a11 = 1; + a7 = 1; + a25 = 0; + return 23; + } else if(((a28==1)&&(!(a20==1)&&(!(a0==1)&&(!(a24==1)&&(((a22==1)&&(!(a7==1)&&((a19==4)&&((a11==1)&&((a14==8)&&(((a29==7)||(a29==8))&&(input==6)))))))&&!(a25==1))))))){ + a0 = 1; + a20 = 1; + a7 = 1; + a29 = 8; + a14 = 9; + a19 = 3; + return 23; + } else if((((a14==9)&&(!(a0==1)&&((a7==1)&&(((((a24==1)&&((((input==3)&&(a25==1))&&(a22==1))&&(a20==1)))&&(a19==3))&&(a29==8))&&(a11==1)))))&&(a28==1))){ + a29 = 5; + a0 = 1; + a19 = 1; + a14 = 8; + return -1; + } else if(((((a19==3)&&((a11==1)&&((((a28==1)&&(!(a0==1)&&(!(a24==1)&&((((a29==5)||(a29==6))&&(input==1))&&(a22==1)))))&&!(a7==1))&&!(a25==1))))&&(a14==9))&&(a20==1))){ + a0 = 1; + a20 = 0; + a24 = 1; + a25 = 1; + a19 = 1; + a7 = 1; + a29 = 7; + a11 = 0; + return -1; + } else if((((!(a7==1)&&(((a19==5)&&((a29==5)&&((!(a20==1)&&((a28==1)&&(((input==6)&&(a22==1))&&(a25==1))))&&!(a0==1))))&&(a11==1)))&&(a14==9))&&!(a24==1))){ + a25 = 0; + a19 = 3; + a24 = 1; + a29 = 9; + a14 = 8; + a20 = 1; + return 24; + } else if(((a24==1)&&((!(a25==1)&&((a28==1)&&((a14==8)&&((!(a11==1)&&((a19==4)&&((((input==4)&&(a0==1))&&(a29==6))&&!(a7==1))))&&(a22==1)))))&&(a20==1)))){ + a0 = 0; + a19 = 3; + a11 = 1; + return 21; + } else if(((a14==8)&&((a11==1)&&(((((input==4)&&(((((((a7==1)&&(a20==1))&&!(a24==1))&&(a25==1))&&(a29==6))&&(a19==1))||(((a19==5)&&((((a24==1)&&(!(a7==1)&&!(a20==1)))&&!(a25==1))&&(a29==9)))||((a19==1)&&((a29==5)&&((a25==1)&&(!(a24==1)&&((a20==1)&&(a7==1)))))))))&&(a22==1))&&!(a0==1))&&(a28==1))))){ + a24 = 1; + a7 = 1; + a25 = 1; + a0 = 1; + a20 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if((!(a7==1)&&((a24==1)&&((a14==9)&&((((((a28==1)&&(((a20==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==5)))&&(a19==5)))&&!(a25==1))&&!(a0==1))&&(a11==1))&&(a22==1)))))){ + a20 = 0; + a25 = 1; + a14 = 8; + a19 = 1; + a29 = 8; + return 23; + } else if((!(a11==1)&&((((a19==2)&&((((a29==9)&&((((!(a24==1)&&(input==5))&&(a28==1))&&!(a25==1))&&(a7==1)))&&!(a20==1))&&(a14==8)))&&(a0==1))&&(a22==1)))){ + a24 = 1; + a14 = 9; + a25 = 1; + a29 = 5; + return 21; + } else if((((((a24==1)&&((a25==1)&&(((!(a0==1)&&((((input==6)&&(a14==9))&&(a28==1))&&(a22==1)))&&(a19==2))&&!(a7==1))))&&(a29==5))&&!(a20==1))&&!(a11==1))){ + a19 = 1; + a14 = 8; + a7 = 1; + a11 = 1; + a0 = 1; + a20 = 1; + return -1; + } else if(((a28==1)&&(!(a25==1)&&((a0==1)&&((a22==1)&&(((!(a20==1)&&((!(a7==1)&&((((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))&&(input==3)))&&!(a11==1)))&&(a14==8))&&(a24==1))))))){ + a14 = 9; + a19 = 1; + a11 = 1; + a29 = 6; + return 21; + } else if((((a24==1)&&(((a22==1)&&((a11==1)&&((((((a28==1)&&((input==5)&&((a29==8)||((a29==6)||(a29==7)))))&&(a19==5))&&!(a7==1))&&(a20==1))&&!(a0==1))))&&(a25==1)))&&(a14==8))){ + a19 = 1; + a0 = 1; + a24 = 0; + a11 = 0; + a14 = 9; + a29 = 9; + return 23; + } else if(((a7==1)&&(((a11==1)&&(((a22==1)&&(((a24==1)&&((a19==3)&&(((a25==1)&&((input==4)&&(a29==9)))&&(a28==1))))&&!(a0==1)))&&(a20==1)))&&(a14==9)))){ + a25 = 0; + a29 = 5; + a24 = 0; + a19 = 2; + a0 = 1; + a7 = 0; + return -1; + } else if((((a28==1)&&((!(a24==1)&&(!(a25==1)&&(!(a7==1)&&((a22==1)&&(!(a11==1)&&(((((a29==5)&&(a19==3))||(((a19==2)&&(a29==8))||((a19==2)&&(a29==9))))&&(input==3))&&(a20==1)))))))&&(a14==9)))&&(a0==1))){ + a19 = 5; + a29 = 8; + return 21; + } else if(((a14==8)&&(!(a24==1)&&((((((a28==1)&&(((!(a25==1)&&((a19==3)&&(input==4)))&&!(a20==1))&&!(a0==1)))&&(a29==6))&&!(a11==1))&&!(a7==1))&&(a22==1))))){ + a29 = 8; + a11 = 1; + a19 = 4; + a24 = 1; + return 24; + } else if(((a7==1)&&((a11==1)&&((!(a20==1)&&(((a28==1)&&(((a0==1)&&((a24==1)&&(((input==2)&&(a29==9))&&(a25==1))))&&(a22==1)))&&(a19==1)))&&(a14==9))))){ + a11 = 0; + a7 = 0; + a20 = 1; + a19 = 3; + a24 = 0; + a29 = 8; + return 24; + } else if(((a28==1)&&((((((a14==9)&&((a19==5)&&((a29==7)&&((a24==1)&&(!(a0==1)&&((input==4)&&!(a20==1)))))))&&(a22==1))&&(a11==1))&&!(a25==1))&&!(a7==1)))){ + a19 = 1; + a25 = 1; + a29 = 6; + a14 = 8; + a11 = 0; + a24 = 0; + a7 = 1; + return 23; + } else if(((a28==1)&&(!(a25==1)&&(((!(a24==1)&&((a0==1)&&((a22==1)&&((a7==1)&&(!(a11==1)&&(((input==1)&&(((a29==7)||(a29==8))||(a29==9)))&&(a19==1)))))))&&(a14==9))&&(a20==1))))){ + a19 = 3; + a25 = 1; + a11 = 1; + a20 = 0; + a7 = 0; + a29 = 6; + return 23; + } else if(((a29==6)&&(((a11==1)&&(!(a7==1)&&((a25==1)&&((a28==1)&&((a19==4)&&((a22==1)&&(!(a24==1)&&(!(a20==1)&&((a14==9)&&(input==4))))))))))&&!(a0==1)))){ + a24 = 1; + a0 = 1; + a7 = 1; + a29 = 9; + a20 = 1; + return 23; + } else if((((a14==8)&&(((!(a25==1)&&((((a22==1)&&((a29==5)&&(!(a20==1)&&((a11==1)&&(input==2)))))&&(a7==1))&&(a28==1)))&&!(a0==1))&&!(a24==1)))&&(a19==5))){ + a29 = 9; + a7 = 0; + a14 = 9; + a25 = 1; + a24 = 1; + a19 = 1; + return 24; + } else if((((a29==9)&&((a11==1)&&((a0==1)&&(((!(a25==1)&&(((((a19==4)&&(input==6))&&(a14==9))&&!(a24==1))&&(a28==1)))&&!(a20==1))&&!(a7==1)))))&&(a22==1))){ + a19 = 1; + a20 = 1; + a11 = 0; + a29 = 6; + a14 = 8; + a0 = 0; + return 21; + } else if(((a22==1)&&(((((a0==1)&&((a7==1)&&((!(a25==1)&&((a28==1)&&((((a29==5)&&(a19==4))||(((a29==8)&&(a19==3))||((a19==3)&&(a29==9))))&&(input==2))))&&(a14==9))))&&!(a11==1))&&!(a24==1))&&!(a20==1)))){ + a19 = 2; + a25 = 1; + a29 = 5; + a20 = 1; + a7 = 0; + return 24; + } else if(((a22==1)&&((((a25==1)&&((a0==1)&&(((a14==9)&&((((((a29==5)||(a29==6))&&(input==5))&&!(a20==1))&&(a19==1))&&!(a7==1)))&&!(a11==1))))&&(a28==1))&&!(a24==1)))){ + a29 = 5; + a25 = 0; + a20 = 1; + a19 = 2; + a24 = 1; + a7 = 1; + return 24; + } else if(((a20==1)&&((a22==1)&&((a29==5)&&((a19==2)&&(((!(a7==1)&&((((a28==1)&&((a0==1)&&(input==5)))&&!(a11==1))&&(a14==8)))&&(a25==1))&&(a24==1))))))){ + a24 = 0; + a0 = 0; + a29 = 7; + return 24; + } else if(((a14==9)&&(((((a22==1)&&((a0==1)&&((a7==1)&&(((a11==1)&&(!(a25==1)&&((input==1)&&((a29==5)||(a29==6)))))&&(a20==1)))))&&!(a24==1))&&(a19==3))&&(a28==1)))){ + a29 = 5; + a25 = 1; + a19 = 5; + return 23; + } else if(((a14==8)&&(!(a0==1)&&(((a28==1)&&((a11==1)&&((a22==1)&&((!(a24==1)&&(((a7==1)&&((input==2)&&((a29==6)||(a29==7))))&&(a19==3)))&&!(a25==1)))))&&!(a20==1))))){ + a25 = 1; + a24 = 1; + a0 = 1; + a19 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if(((a7==1)&&((a25==1)&&((a19==3)&&((a20==1)&&((a28==1)&&((((!(a11==1)&&(((input==4)&&((a29==8)||((a29==6)||(a29==7))))&&(a14==8)))&&!(a24==1))&&(a0==1))&&(a22==1)))))))){ + a29 = 9; + a20 = 0; + a25 = 0; + return 24; + } else if(((!(a20==1)&&((a28==1)&&((((a19==2)&&((a29==5)&&((((a24==1)&&((input==3)&&(a14==8)))&&(a0==1))&&(a25==1))))&&(a11==1))&&(a7==1))))&&(a22==1))){ + a19 = 1; + a20 = 1; + return -1; + } else if(((((a19==1)&&((a0==1)&&((a11==1)&&(((a22==1)&&((((a14==8)&&((a20==1)&&(input==1)))&&(a24==1))&&!(a25==1)))&&(a29==9)))))&&!(a7==1))&&(a28==1))){ + a19 = 2; + a20 = 0; + a29 = 8; + a25 = 1; + return 23; + } else if((((!(a20==1)&&((a29==5)&&((((!(a11==1)&&(!(a25==1)&&((a0==1)&&((a24==1)&&(input==5)))))&&(a22==1))&&(a19==1))&&(a14==8))))&&(a7==1))&&(a28==1))){ + a20 = 1; + a11 = 1; + a14 = 9; + return 24; + } else if(((a25==1)&&(((a29==9)&&((a14==9)&&((a0==1)&&((a19==3)&&(((!(a24==1)&&(!(a11==1)&&((input==4)&&(a22==1))))&&(a20==1))&&(a7==1))))))&&(a28==1)))){ + a14 = 8; + a19 = 2; + a0 = 0; + return -1; + } else if(((a0==1)&&(!(a24==1)&&(!(a25==1)&&(!(a7==1)&&((a14==8)&&((a20==1)&&((((a28==1)&&((((a19==5)&&(a29==6))||(((a19==4)&&(a29==9))||((a29==5)&&(a19==5))))&&(input==2)))&&(a11==1))&&(a22==1))))))))){ + a24 = 1; + a0 = 0; + a19 = 2; + a25 = 1; + a29 = 8; + return 23; + } else if(((a14==9)&&((a0==1)&&(!(a25==1)&&(((a22==1)&&((a11==1)&&((a28==1)&&((((a7==1)&&((input==6)&&(((a29==7)||(a29==8))||(a29==9))))&&(a24==1))&&(a20==1)))))&&(a19==5)))))){ + a0 = 0; + a29 = 5; + a14 = 8; + a20 = 0; + a19 = 1; + a25 = 1; + a7 = 0; + return 23; + } else if(((!(a7==1)&&((a25==1)&&((!(a0==1)&&((a22==1)&&((((a14==8)&&((((a29==8)||(a29==9))&&(input==3))&&!(a20==1)))&&(a19==2))&&!(a11==1))))&&!(a24==1))))&&(a28==1))){ + a19 = 1; + a20 = 1; + a24 = 1; + a29 = 5; + a11 = 1; + a0 = 1; + a7 = 1; + return -1; + } else if((((a14==8)&&(((((((a22==1)&&(!(a11==1)&&(((input==6)&&(a29==6))&&(a28==1))))&&!(a20==1))&&!(a25==1))&&!(a0==1))&&(a7==1))&&(a19==3)))&&!(a24==1))){ + a0 = 1; + a29 = 7; + a19 = 2; + a7 = 0; + return -1; + } else if((((a19==4)&&((a0==1)&&((a25==1)&&((((a20==1)&&(((a11==1)&&((((a29==6)||(a29==7))&&(input==4))&&(a14==8)))&&(a22==1)))&&(a7==1))&&(a28==1)))))&&!(a24==1))){ + a11 = 0; + a20 = 0; + a29 = 5; + a19 = 5; + a7 = 0; + return 21; + } else if(((a28==1)&&((a14==8)&&((a22==1)&&((input==1)&&(((a19==5)&&((a29==9)&&(!(a25==1)&&((!(a7==1)&&(((a0==1)&&!(a11==1))&&!(a20==1)))&&!(a24==1)))))||((((((a7==1)&&((a20==1)&&((a11==1)&&!(a0==1))))&&(a24==1))&&(a25==1))&&(a29==5))&&(a19==1)))))))){ + a20 = 1; + a19 = 5; + a29 = 5; + a25 = 0; + a11 = 1; + a0 = 0; + a24 = 1; + a7 = 0; + return 24; + } else if(((!(a24==1)&&((((a14==9)&&(((((a28==1)&&(((input==5)&&(((a29==6)||(a29==7))||(a29==8)))&&(a20==1)))&&!(a0==1))&&(a11==1))&&!(a7==1)))&&(a22==1))&&!(a25==1)))&&(a19==1))){ + a24 = 1; + a25 = 1; + a7 = 1; + a0 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((a19==2)&&((a28==1)&&((((a7==1)&&(((a0==1)&&((((((a29==7)||((a29==5)||(a29==6)))&&(input==3))&&!(a25==1))&&(a14==8))&&(a22==1)))&&!(a24==1)))&&!(a11==1))&&(a20==1))))){ + a11 = 1; + a24 = 1; + a25 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((((a14==10)&&((((a11==1)&&((a28==1)&&((a20==1)&&((a0==1)&&((((!(a25==1)&&(a29==5))&&(a19==1))||(((a19==5)&&((a25==1)&&(a29==8)))||((a19==5)&&((a25==1)&&(a29==9)))))&&(input==3))))))&&!(a7==1))&&(a22==1)))&&(a24==1))){ + a19 = 3; + a0 = 0; + a24 = 0; + a25 = 0; + a20 = 0; + a29 = 5; + a14 = 9; + return -1; + } else if(((a24==1)&&((a28==1)&&(!(a11==1)&&((a25==1)&&((!(a7==1)&&((a14==8)&&((a20==1)&&(!(a0==1)&&((((a19==4)&&(a29==6))||(((a19==3)&&(a29==9))||((a19==4)&&(a29==5))))&&(input==4))))))&&(a22==1))))))){ + a29 = 8; + a14 = 9; + a19 = 5; + a24 = 0; + a11 = 1; + return 21; + } else if((((a20==1)&&((a7==1)&&((a14==9)&&((!(a24==1)&&(!(a25==1)&&((a29==8)&&((a28==1)&&((a11==1)&&((a22==1)&&(input==4)))))))&&(a0==1)))))&&(a19==3))){ + a20 = 0; + a7 = 0; + a24 = 1; + a29 = 7; + a14 = 8; + a0 = 0; + a19 = 2; + return 24; + } else if(((((a14==8)&&((!(a24==1)&&(((a22==1)&&((!(a11==1)&&(((((a29==8)&&(a19==1))||((a29==9)&&(a19==1)))||((a29==5)&&(a19==2)))&&(input==2)))&&(a28==1)))&&!(a0==1)))&&!(a25==1)))&&(a20==1))&&!(a7==1))){ + a19 = 5; + a29 = 8; + a24 = 1; + a25 = 1; + a11 = 1; + a7 = 1; + return 23; + } else if(((a24==1)&&((!(a20==1)&&(((a14==10)&&(((a19==1)&&((a7==1)&&(((((a29==5)||(a29==6))&&(input==5))&&(a0==1))&&(a22==1))))&&(a11==1)))&&(a25==1)))&&(a28==1)))){ + a29 = 5; + a20 = 1; + a14 = 9; + a19 = 5; + return 21; + } else if((((a14==9)&&(((a28==1)&&(!(a24==1)&&(!(a25==1)&&((((a19==3)&&(((a11==1)&&(input==1))&&(a7==1)))&&(a22==1))&&(a29==7)))))&&(a20==1)))&&(a0==1))){ + a14 = 8; + a20 = 0; + a11 = 0; + a7 = 0; + a19 = 2; + a25 = 1; + return 24; + } else if(((((a20==1)&&(!(a11==1)&&((a28==1)&&(!(a7==1)&&((a24==1)&&((a25==1)&&(!(a0==1)&&((((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))&&(input==2)))))))))&&(a22==1))&&(a14==8))){ + a29 = 5; + a19 = 1; + a11 = 1; + a7 = 1; + a0 = 1; + return -1; + } else if((!(a25==1)&&((a22==1)&&(((((a7==1)&&(!(a24==1)&&((((input==5)&&(((a19==5)&&(a29==5))||(((a19==4)&&(a29==8))||((a19==4)&&(a29==9)))))&&(a28==1))&&(a14==9))))&&!(a20==1))&&(a11==1))&&!(a0==1))))){ + a25 = 1; + a19 = 3; + a14 = 8; + a11 = 0; + a7 = 0; + a0 = 1; + a29 = 8; + return 21; + } else if(((((a14==8)&&(!(a7==1)&&((((!(a11==1)&&(((a22==1)&&(((a29==6)||(a29==7))&&(input==3)))&&(a19==1)))&&(a20==1))&&!(a0==1))&&(a28==1))))&&!(a24==1))&&(a25==1))){ + a29 = 8; + a11 = 1; + a24 = 1; + a20 = 0; + a19 = 2; + return 24; + } else if((!(a24==1)&&((((!(a11==1)&&(((a28==1)&&((a7==1)&&(((((a29==9)||((a29==7)||(a29==8)))&&(input==4))&&!(a20==1))&&(a22==1))))&&!(a0==1)))&&(a25==1))&&(a14==9))&&(a19==4)))){ + a20 = 1; + a19 = 1; + a29 = 7; + a14 = 8; + a11 = 1; + a25 = 0; + return -1; + } else if(((a0==1)&&(((a14==8)&&(!(a25==1)&&(((a22==1)&&((((a20==1)&&(!(a11==1)&&((input==6)&&!(a7==1))))&&(a28==1))&&(a29==5)))&&(a19==2))))&&(a24==1)))){ + a19 = 1; + a11 = 1; + a25 = 1; + a7 = 1; + return -1; + } else if((!(a0==1)&&(!(a20==1)&&(((!(a7==1)&&(((a11==1)&&((a28==1)&&((((input==4)&&((a29==6)||(a29==7)))&&(a19==4))&&(a25==1))))&&(a14==9)))&&(a22==1))&&(a24==1))))){ + a14 = 8; + a29 = 5; + a19 = 1; + a0 = 1; + a7 = 1; + a20 = 1; + return -1; + } else if(((a25==1)&&((a0==1)&&((a24==1)&&(((a22==1)&&((a7==1)&&((a14==8)&&((a28==1)&&((a11==1)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==4))&&(a19==5)))))))&&!(a20==1)))))){ + a24 = 0; + a25 = 0; + a29 = 9; + a19 = 2; + return 21; + } else if((!(a25==1)&&((a24==1)&&((a28==1)&&(((!(a11==1)&&(((a22==1)&&((a19==2)&&(((input==6)&&((a29==8)||((a29==6)||(a29==7))))&&(a0==1))))&&(a7==1)))&&(a14==8))&&(a20==1)))))){ + a19 = 3; + a29 = 7; + a0 = 0; + a24 = 0; + a25 = 1; + return 21; + } else if((((!(a25==1)&&(((a28==1)&&(((a14==9)&&(!(a11==1)&&(!(a7==1)&&(((input==3)&&((a29==8)||((a29==6)||(a29==7))))&&(a22==1)))))&&!(a20==1)))&&!(a0==1)))&&(a24==1))&&(a19==5))){ + a29 = 6; + a0 = 1; + return -1; + } else if(((a28==1)&&(((((((a29==6)&&(((((input==1)&&(a22==1))&&(a14==8))&&!(a20==1))&&(a19==4)))&&(a7==1))&&(a24==1))&&!(a0==1))&&(a11==1))&&!(a25==1)))){ + a11 = 0; + a0 = 1; + a25 = 1; + a14 = 9; + a24 = 0; + a29 = 7; + return 24; + } else if(((!(a0==1)&&((((a19==1)&&(!(a24==1)&&((!(a7==1)&&(!(a11==1)&&(((a29==9)&&(input==4))&&(a28==1))))&&(a25==1))))&&(a20==1))&&(a14==9)))&&(a22==1))){ + a14 = 8; + a29 = 8; + a25 = 0; + a19 = 4; + a7 = 1; + return 24; + } else if(((a24==1)&&((a29==5)&&(((a22==1)&&((((a19==1)&&(((a28==1)&&((a11==1)&&((input==3)&&!(a25==1))))&&(a7==1)))&&(a0==1))&&(a14==10)))&&!(a20==1))))){ + a20 = 1; + a14 = 8; + a25 = 1; + return -1; + } else if(((a0==1)&&((a22==1)&&(((((input==6)&&((((a29==9)&&(((a24==1)&&(!(a20==1)&&!(a7==1)))&&!(a25==1)))&&(a19==5))||(((a29==5)&&((!(a24==1)&&((a20==1)&&(a7==1)))&&(a25==1)))&&(a19==1))))&&(a11==1))&&(a14==10))&&(a28==1))))){ + a24 = 0; + a14 = 8; + a7 = 0; + a25 = 0; + a20 = 0; + a19 = 3; + a11 = 0; + a29 = 6; + return 21; + } else if((!(a24==1)&&((a11==1)&&((((a25==1)&&((a7==1)&&(((!(a0==1)&&((a19==2)&&((input==5)&&((a29==6)||(a29==7)))))&&(a14==8))&&(a22==1))))&&(a28==1))&&(a20==1))))){ + a29 = 5; + a0 = 1; + a24 = 1; + a19 = 1; + return -1; + } else if((((a14==9)&&((((a7==1)&&((!(a25==1)&&((!(a0==1)&&((a19==1)&&((input==5)&&((a29==5)||(a29==6)))))&&!(a11==1)))&&(a28==1)))&&!(a24==1))&&(a20==1)))&&(a22==1))){ + a11 = 1; + a25 = 1; + a29 = 5; + a19 = 3; + return -1; + } else if(((a24==1)&&((a29==7)&&(!(a20==1)&&(((!(a25==1)&&((a14==8)&&((a28==1)&&((((input==2)&&!(a7==1))&&(a22==1))&&(a19==5)))))&&!(a11==1))&&(a0==1)))))){ + a11 = 1; + a0 = 0; + a29 = 5; + a20 = 1; + a19 = 4; + return 24; + } else if(((!(a25==1)&&((a22==1)&&((a14==8)&&((a28==1)&&(!(a24==1)&&(((a19==1)&&(((((a29==6)||(a29==7))&&(input==6))&&(a0==1))&&(a20==1)))&&!(a11==1)))))))&&!(a7==1))){ + a20 = 0; + a25 = 1; + a24 = 1; + a29 = 7; + a11 = 1; + a19 = 5; + a0 = 0; + return 24; + } else if(((a29==5)&&(!(a0==1)&&((((((a22==1)&&((a24==1)&&((a14==9)&&(!(a20==1)&&((a28==1)&&(input==4))))))&&!(a11==1))&&!(a25==1))&&!(a7==1))&&(a19==4))))){ + a25 = 1; + a11 = 1; + a19 = 1; + a20 = 1; + a0 = 1; + a14 = 8; + a7 = 1; + return -1; + } else if(((a28==1)&&((!(a20==1)&&((a24==1)&&((a14==9)&&((((a11==1)&&(((((a29==8)||(a29==9))&&(input==3))&&(a19==2))&&(a7==1)))&&!(a25==1))&&(a22==1)))))&&(a0==1)))){ + a29 = 7; + a0 = 0; + a24 = 0; + a19 = 3; + a7 = 0; + a11 = 0; + return 23; + } else if((((a29==8)&&(((a28==1)&&(((((((a22==1)&&((a19==3)&&(input==6)))&&(a25==1))&&!(a20==1))&&!(a7==1))&&!(a11==1))&&(a14==8)))&&!(a24==1)))&&!(a0==1))){ + a14 = 9; + a20 = 1; + a19 = 2; + a7 = 1; + return 21; + } else if((((a28==1)&&((a29==8)&&((a22==1)&&((a11==1)&&(((a7==1)&&((a25==1)&&((a14==9)&&(((input==3)&&(a0==1))&&(a24==1)))))&&(a20==1))))))&&(a19==1))){ + a0 = 0; + a11 = 0; + a24 = 0; + a7 = 0; + return 21; + } else if(((((!(a0==1)&&(!(a11==1)&&((a7==1)&&((((((input==3)&&(a22==1))&&(a28==1))&&(a29==8))&&!(a24==1))&&!(a20==1)))))&&!(a25==1))&&(a19==5))&&(a14==8))){ + a0 = 1; + a24 = 1; + a25 = 1; + a19 = 1; + a20 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if(((((((a24==1)&&((!(a0==1)&&((a14==8)&&((((input==5)&&(a22==1))&&!(a7==1))&&(a28==1))))&&!(a11==1)))&&(a20==1))&&(a25==1))&&(a19==2))&&(a29==8))){ + a11 = 1; + a14 = 9; + a29 = 5; + a0 = 1; + a7 = 1; + return 23; + } else if((!(a0==1)&&((a7==1)&&(((!(a25==1)&&((a24==1)&&(((((a28==1)&&((input==1)&&((a29==7)||(a29==8))))&&(a22==1))&&!(a20==1))&&!(a11==1))))&&(a14==9))&&(a19==3))))){ + a29 = 6; + a7 = 0; + a0 = 1; + a19 = 1; + return -1; + } else if((((a14==9)&&((a24==1)&&((((a22==1)&&((a28==1)&&((!(a7==1)&&(((input==6)&&(a11==1))&&(a0==1)))&&(a25==1))))&&(a19==1))&&!(a20==1))))&&(a29==7))){ + a14 = 10; + a7 = 1; + a19 = 3; + a20 = 1; + a29 = 9; + return 21; + } else if((((((a28==1)&&(!(a24==1)&&((a25==1)&&(!(a11==1)&&(!(a7==1)&&(((a19==1)&&((input==5)&&(a22==1)))&&!(a0==1)))))))&&(a29==8))&&(a14==8))&&(a20==1))){ + a24 = 1; + a0 = 1; + a11 = 1; + a7 = 1; + a14 = 9; + a19 = 5; + a29 = 7; + a20 = 0; + a25 = 0; + return 21; + } else if(((((a22==1)&&((a24==1)&&((a20==1)&&(((!(a7==1)&&((a11==1)&&(!(a25==1)&&((input==2)&&(a19==3)))))&&(a14==8))&&(a29==9)))))&&(a0==1))&&(a28==1))){ + a7 = 1; + a25 = 1; + a29 = 7; + a24 = 0; + a19 = 1; + return 23; + } else if(((a20==1)&&(!(a24==1)&&((a7==1)&&(((!(a11==1)&&((a22==1)&&((a14==8)&&((a28==1)&&((input==3)&&(((a29==6)&&(a19==5))||(((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))))))))&&(a25==1))&&(a0==1)))))){ + a24 = 1; + a29 = 7; + a20 = 0; + a0 = 0; + a11 = 1; + a19 = 5; + return 24; + } else if((((a0==1)&&((a19==1)&&(((a28==1)&&((a14==9)&&((!(a7==1)&&((a25==1)&&((a29==6)&&((input==3)&&!(a24==1)))))&&(a11==1))))&&!(a20==1))))&&(a22==1))){ + a29 = 9; + a25 = 0; + return 24; + } else if(((a25==1)&&((((a28==1)&&((((a14==8)&&((a22==1)&&(!(a11==1)&&(((a29==5)&&(input==1))&&(a0==1)))))&&!(a7==1))&&(a20==1)))&&!(a24==1))&&(a19==5)))){ + a7 = 1; + a25 = 0; + a29 = 9; + a20 = 0; + a14 = 9; + a11 = 1; + a19 = 4; + return 21; + } else if(((((a7==1)&&((!(a24==1)&&(((a28==1)&&(((((((a29==8)&&(a19==2))||((a29==9)&&(a19==2)))||((a29==5)&&(a19==3)))&&(input==6))&&!(a11==1))&&(a0==1)))&&(a25==1)))&&(a22==1)))&&(a20==1))&&(a14==8))){ + a25 = 0; + a19 = 3; + a24 = 1; + a0 = 0; + a11 = 1; + a20 = 0; + a7 = 0; + a29 = 6; + return 21; + } else if(((a7==1)&&((a28==1)&&((a24==1)&&((a25==1)&&((((a14==9)&&((a22==1)&&((a20==1)&&((a11==1)&&(((a29==6)||(a29==7))&&(input==1))))))&&(a19==5))&&(a0==1))))))){ + a11 = 0; + a24 = 0; + a0 = 0; + a19 = 1; + a25 = 0; + a7 = 0; + a29 = 9; + return 21; + } else if((!(a25==1)&&(!(a11==1)&&((((!(a20==1)&&((a24==1)&&(((((input==5)&&(a0==1))&&(a19==4))&&(a7==1))&&(a22==1))))&&(a28==1))&&(a14==9))&&(a29==9))))){ + a11 = 1; + a24 = 0; + a29 = 7; + a7 = 0; + a0 = 0; + a14 = 8; + return 23; + } else if((!(a11==1)&&((((a20==1)&&((((a7==1)&&(((((a19==3)&&(input==1))&&(a28==1))&&!(a24==1))&&(a14==9)))&&(a22==1))&&(a29==5)))&&!(a25==1))&&(a0==1)))){ + a11 = 1; + a24 = 1; + a29 = 8; + a0 = 0; + a14 = 8; + a19 = 2; + return 21; + } else if((!(a25==1)&&(!(a20==1)&&(((((a22==1)&&((((a24==1)&&((input==5)&&((((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))||((a19==2)&&(a29==6)))))&&(a28==1))&&!(a0==1)))&&(a14==9))&&(a7==1))&&!(a11==1))))){ + a29 = 7; + a20 = 1; + a0 = 1; + a19 = 3; + return -1; + } else if(((a0==1)&&(!(a20==1)&&((a19==4)&&(((a14==9)&&(!(a7==1)&&((!(a25==1)&&((a11==1)&&((a24==1)&&((input==1)&&((a29==8)||((a29==6)||(a29==7)))))))&&(a28==1))))&&(a22==1)))))){ + a14 = 10; + a20 = 1; + a25 = 1; + a29 = 6; + return 24; + } else if(((a19==1)&&(!(a24==1)&&((((a14==9)&&((((a22==1)&&((((input==3)&&(((a29==5)||(a29==6))||(a29==7)))&&!(a25==1))&&(a11==1)))&&(a20==1))&&(a28==1)))&&!(a0==1))&&(a7==1))))){ + a29 = 5; + a25 = 1; + a14 = 8; + a0 = 1; + a24 = 1; + return -1; + } else if(((((a22==1)&&(!(a7==1)&&(!(a20==1)&&(((((a29==8)&&((a28==1)&&((input==1)&&!(a0==1))))&&(a11==1))&&(a24==1))&&(a19==4)))))&&!(a25==1))&&(a14==9))){ + a29 = 9; + a24 = 0; + a14 = 8; + a19 = 5; + a7 = 1; + return 21; + } else if(((a14==8)&&((a19==2)&&((a22==1)&&((!(a24==1)&&((a0==1)&&((((a28==1)&&(((input==2)&&((a29==7)||((a29==5)||(a29==6))))&&(a11==1)))&&(a7==1))&&!(a25==1))))&&!(a20==1)))))){ + a19 = 5; + a25 = 1; + a7 = 0; + a0 = 0; + a29 = 5; + return 23; + } else if((((a20==1)&&((a0==1)&&((((a14==8)&&(((a28==1)&&((a22==1)&&((input==3)&&(((a29==6)&&(a19==3))||(((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))))))&&(a25==1)))&&!(a11==1))&&(a7==1))))&&(a24==1))){ + a0 = 0; + a19 = 1; + a29 = 5; + a20 = 0; + a7 = 0; + return 24; + } else if((!(a24==1)&&((!(a0==1)&&((((a28==1)&&((!(a20==1)&&(!(a7==1)&&((a11==1)&&((input==1)&&(a14==9)))))&&(a25==1)))&&(a19==3))&&(a22==1)))&&(a29==8)))){ + a11 = 0; + a14 = 8; + a24 = 1; + a7 = 1; + a19 = 1; + a29 = 5; + return 23; + } else if((!(a7==1)&&((!(a0==1)&&(!(a11==1)&&((!(a25==1)&&((a24==1)&&(((a14==8)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==5))&&(a19==1)))&&(a22==1))))&&(a20==1))))&&(a28==1)))){ + a11 = 1; + a25 = 1; + a29 = 9; + a19 = 5; + return -1; + } else if((!(a11==1)&&((a19==5)&&(((a25==1)&&(!(a0==1)&&((a22==1)&&(!(a24==1)&&(((a28==1)&&(((input==5)&&((a29==5)||(a29==6)))&&(a7==1)))&&(a14==9))))))&&(a20==1))))){ + a29 = 7; + a19 = 4; + a24 = 1; + a25 = 0; + return -1; + } else if((((a19==1)&&(!(a24==1)&&(((((a20==1)&&((!(a11==1)&&((((a29==6)||(a29==7))&&(input==2))&&(a14==8)))&&(a25==1)))&&!(a0==1))&&(a28==1))&&(a22==1))))&&!(a7==1))){ + a20 = 0; + a29 = 9; + a0 = 1; + return 24; + } else if((!(a24==1)&&(((a20==1)&&((a19==2)&&((a0==1)&&((a25==1)&&((a7==1)&&((a14==8)&&((a11==1)&&((a28==1)&&(((a29==6)||(a29==7))&&(input==4))))))))))&&(a22==1)))){ + a20 = 0; + a29 = 7; + a11 = 0; + a25 = 0; + return 23; + } else if(((a20==1)&&((a0==1)&&(((a14==9)&&(((a22==1)&&((((a7==1)&&(!(a24==1)&&((input==3)&&((a29==8)||((a29==6)||(a29==7))))))&&(a11==1))&&(a25==1)))&&(a28==1)))&&(a19==3))))){ + a24 = 1; + a7 = 0; + a14 = 10; + a29 = 5; + a25 = 0; + return 21; + } else if((((a11==1)&&(((!(a25==1)&&(!(a0==1)&&(((((input==4)&&(((a19==3)&&(a29==9))||((a19==4)&&(a29==5))))&&(a7==1))&&(a28==1))&&!(a20==1))))&&(a14==8))&&(a22==1)))&&(a24==1))){ + a24 = 0; + a25 = 1; + a0 = 1; + a29 = 6; + a19 = 2; + a20 = 1; + a7 = 0; + return 24; + } else if(((!(a25==1)&&((a28==1)&&((((((a14==9)&&(!(a24==1)&&(((a19==4)&&(input==5))&&!(a0==1))))&&(a22==1))&&(a29==6))&&!(a11==1))&&(a7==1))))&&(a20==1))){ + a19 = 1; + a25 = 1; + a0 = 1; + a14 = 8; + a29 = 5; + a11 = 1; + a24 = 1; + return -1; + } else if((((a24==1)&&((a19==2)&&((((((a29==6)&&(((a28==1)&&((input==5)&&(a22==1)))&&(a14==9)))&&!(a7==1))&&(a11==1))&&!(a25==1))&&(a0==1))))&&(a20==1))){ + a14 = 8; + a29 = 7; + a0 = 0; + a19 = 1; + a7 = 1; + return 23; + } else if((!(a25==1)&&((a24==1)&&(((a14==9)&&(!(a0==1)&&((a11==1)&&((a19==4)&&((a7==1)&&((a20==1)&&(((input==2)&&((a29==6)||(a29==7)))&&(a28==1))))))))&&(a22==1))))){ + a14 = 8; + a29 = 6; + return 24; + } else if(((a14==8)&&((!(a11==1)&&(!(a24==1)&&(((a22==1)&&((((!(a0==1)&&(((a29==6)||(a29==7))&&(input==4)))&&(a28==1))&&!(a7==1))&&!(a20==1)))&&(a25==1))))&&(a19==1)))){ + a24 = 1; + a11 = 1; + a0 = 1; + a29 = 5; + a7 = 1; + a20 = 1; + return -1; + } else if((!(a20==1)&&((((!(a11==1)&&((a7==1)&&((a24==1)&&(!(a25==1)&&((a19==1)&&((a28==1)&&((a14==9)&&(input==2))))))))&&(a0==1))&&(a29==8))&&(a22==1)))){ + a25 = 1; + a19 = 4; + a29 = 6; + return 24; + } else if(((a0==1)&&((!(a11==1)&&((((a7==1)&&((a22==1)&&((!(a20==1)&&((((a29==8)||(a29==9))&&(input==1))&&!(a25==1)))&&(a14==9))))&&(a19==5))&&(a24==1)))&&(a28==1)))){ + a0 = 0; + a14 = 8; + a29 = 5; + a20 = 1; + a25 = 1; + return 24; + } else if((!(a11==1)&&((a24==1)&&(!(a7==1)&&((a28==1)&&(((a0==1)&&(((((((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))&&(input==2))&&(a25==1))&&(a14==9))&&(a22==1)))&&!(a20==1))))))){ + a29 = 8; + a24 = 0; + a7 = 1; + a19 = 2; + a11 = 1; + a25 = 0; + a0 = 0; + a14 = 8; + return 23; + } else if((!(a20==1)&&((a28==1)&&(((a19==2)&&((a14==9)&&((a25==1)&&((((((input==5)&&(a29==6))&&(a24==1))&&(a7==1))&&!(a11==1))&&(a22==1)))))&&(a0==1))))){ + a25 = 0; + a20 = 1; + a0 = 0; + a7 = 0; + a14 = 8; + a11 = 1; + a24 = 0; + return 24; + } else if(((a14==9)&&((a28==1)&&(!(a11==1)&&((a25==1)&&(!(a20==1)&&((a7==1)&&((((a0==1)&&((a22==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==5))))&&(a24==1))&&(a19==5))))))))){ + a11 = 1; + a14 = 8; + a0 = 0; + a19 = 2; + a7 = 0; + a29 = 9; + return 24; + } else if((((!(a20==1)&&((a14==9)&&((!(a11==1)&&((a28==1)&&(((!(a0==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==4)))&&(a7==1))&&(a24==1))))&&(a25==1))))&&(a19==1))&&(a22==1))){ + a19 = 3; + a25 = 0; + a14 = 8; + a24 = 0; + a29 = 8; + a20 = 1; + a11 = 1; + return -1; + } else if((!(a24==1)&&(((a7==1)&&(((a19==5)&&((a14==9)&&((a0==1)&&(((a20==1)&&(((input==3)&&((a29==6)||(a29==7)))&&!(a11==1)))&&(a22==1)))))&&(a28==1)))&&(a25==1)))){ + a29 = 8; + a7 = 0; + a19 = 2; + a11 = 1; + a25 = 0; + a24 = 1; + return 23; + } else if(((a22==1)&&(((a20==1)&&(((((a19==5)&&(!(a7==1)&&(!(a25==1)&&(((input==4)&&(a14==8))&&!(a11==1)))))&&(a29==5))&&!(a24==1))&&(a28==1)))&&(a0==1)))){ + a25 = 1; + a19 = 2; + a24 = 1; + a14 = 9; + a7 = 1; + a29 = 8; + return 23; + } else if((((a25==1)&&(((a24==1)&&((a14==9)&&(((a7==1)&&(!(a11==1)&&((a20==1)&&((a19==3)&&((input==6)&&(a28==1))))))&&(a22==1))))&&(a29==9)))&&(a0==1))){ + a14 = 8; + a19 = 1; + a29 = 5; + a11 = 1; + return -1; + } else if(((((a22==1)&&((a28==1)&&((((((!(a24==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==6)))&&(a19==2))&&!(a25==1))&&!(a0==1))&&(a7==1))&&(a14==9))))&&(a11==1))&&!(a20==1))){ + a25 = 1; + a29 = 5; + a19 = 1; + a14 = 8; + a0 = 1; + a24 = 1; + a20 = 1; + return -1; + } else if((!(a24==1)&&((a28==1)&&((a25==1)&&((a0==1)&&(((((a19==4)&&(((((a29==8)||((a29==6)||(a29==7)))&&(input==6))&&(a14==10))&&(a20==1)))&&(a11==1))&&(a7==1))&&(a22==1))))))){ + a29 = 5; + a14 = 8; + a19 = 1; + a24 = 1; + return -1; + } else if(((a24==1)&&(!(a11==1)&&(((a19==1)&&(((a22==1)&&(!(a20==1)&&((a28==1)&&((a7==1)&&(((input==5)&&((a29==7)||(a29==8)))&&(a0==1))))))&&(a14==9)))&&(a25==1))))){ + a14 = 8; + a0 = 0; + a25 = 0; + a29 = 6; + a19 = 5; + return 21; + } else if(((a25==1)&&((a0==1)&&(((a20==1)&&((a19==3)&&((a11==1)&&((a28==1)&&((a22==1)&&((a14==9)&&(((input==4)&&((a29==8)||((a29==6)||(a29==7))))&&(a7==1))))))))&&!(a24==1))))){ + a20 = 0; + a7 = 0; + a29 = 6; + a24 = 1; + a19 = 5; + a0 = 0; + a14 = 8; + return 21; + } else if(((((!(a20==1)&&((a28==1)&&(!(a11==1)&&(((a29==8)&&((a19==2)&&((a22==1)&&((a24==1)&&(input==6)))))&&(a7==1)))))&&(a14==9))&&!(a25==1))&&!(a0==1))){ + a14 = 8; + a29 = 9; + a11 = 1; + a20 = 1; + a19 = 4; + return 21; + } else if(((!(a7==1)&&(!(a11==1)&&(((a29==8)&&(((((a0==1)&&(((a20==1)&&(input==2))&&(a22==1)))&&!(a25==1))&&(a28==1))&&(a24==1)))&&(a19==5))))&&(a14==9))){ + a29 = 5; + a25 = 1; + a19 = 1; + a14 = 8; + a11 = 1; + a7 = 1; + return -1; + } else if((((a25==1)&&(((a19==2)&&((a28==1)&&((a22==1)&&(!(a24==1)&&(!(a0==1)&&((a14==9)&&(((input==6)&&(((a29==7)||(a29==8))||(a29==9)))&&!(a11==1))))))))&&(a20==1)))&&!(a7==1))){ + a11 = 1; + a24 = 1; + a29 = 5; + a19 = 1; + a7 = 1; + a0 = 1; + a14 = 8; + return -1; + } else if((((a29==9)&&((a24==1)&&(((a11==1)&&((a22==1)&&((a28==1)&&(!(a0==1)&&((((a25==1)&&(input==2))&&(a19==2))&&!(a7==1))))))&&(a14==9))))&&(a20==1))){ + a29 = 8; + a24 = 0; + a20 = 0; + a19 = 1; + a14 = 8; + a0 = 1; + a11 = 0; + return 23; + } else if((((a14==10)&&((a28==1)&&((((((((a0==1)&&((input==2)&&((a29==6)||(a29==7))))&&(a7==1))&&(a20==1))&&(a19==1))&&(a11==1))&&(a22==1))&&(a25==1))))&&!(a24==1))){ + a24 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((a22==1)&&((a0==1)&&((a24==1)&&(((a25==1)&&(((a11==1)&&((a19==5)&&(((a28==1)&&((input==2)&&((a29==7)||((a29==5)||(a29==6)))))&&!(a20==1))))&&!(a7==1)))&&(a14==10)))))){ + a29 = 5; + a14 = 8; + a0 = 0; + a11 = 0; + return 21; + } else if((!(a7==1)&&((a28==1)&&((a24==1)&&(!(a11==1)&&((a22==1)&&(((a20==1)&&((!(a25==1)&&(((input==4)&&(a14==9))&&(a19==4)))&&(a29==6)))&&(a0==1)))))))){ + a11 = 1; + a20 = 0; + a29 = 7; + a19 = 2; + return 23; + } else if((((((a28==1)&&((a0==1)&&(!(a20==1)&&(!(a24==1)&&(((a22==1)&&((a14==8)&&((input==2)&&((a29==8)||(a29==9)))))&&(a25==1))))))&&!(a7==1))&&!(a11==1))&&(a19==2))){ + a19 = 1; + a24 = 1; + a29 = 5; + a11 = 1; + a20 = 1; + a7 = 1; + return -1; + } else if(((((a25==1)&&(!(a7==1)&&(((a11==1)&&((((a24==1)&&((((a29==5)&&(a19==2))||(((a19==1)&&(a29==8))||((a29==9)&&(a19==1))))&&(input==4)))&&(a20==1))&&(a14==10)))&&(a28==1))))&&(a22==1))&&(a0==1))){ + a11 = 0; + a19 = 2; + a29 = 5; + a7 = 1; + a14 = 9; + return 24; + } else if(((a28==1)&&((a25==1)&&(((((((((input==6)&&((((a29==8)&&(a19==2))||((a29==9)&&(a19==2)))||((a29==5)&&(a19==3))))&&(a11==1))&&!(a0==1))&&(a24==1))&&(a7==1))&&(a22==1))&&!(a20==1))&&(a14==9))))){ + a14 = 8; + a25 = 0; + a19 = 5; + a29 = 6; + return 23; + } else if(((a25==1)&&(((a22==1)&&((a11==1)&&(!(a0==1)&&((a14==8)&&((a28==1)&&((!(a24==1)&&(((input==5)&&(((a29==7)||(a29==8))||(a29==9)))&&(a19==5)))&&(a7==1)))))))&&(a20==1)))){ + a0 = 1; + a20 = 0; + a24 = 1; + a25 = 0; + a11 = 0; + a7 = 0; + a29 = 7; + a14 = 9; + a19 = 1; + return 24; + } else if(((a22==1)&&((((((((((a20==1)&&((input==3)&&((a29==5)||(a29==6))))&&(a7==1))&&(a0==1))&&(a19==4))&&!(a24==1))&&(a28==1))&&!(a11==1))&&(a14==9))&&(a25==1)))){ + a29 = 5; + a24 = 1; + a11 = 1; + a19 = 1; + a14 = 8; + return -1; + } else if(((a7==1)&&((((a22==1)&&((a14==9)&&(((((a28==1)&&(((input==3)&&((a29==6)||(a29==7)))&&!(a24==1)))&&(a0==1))&&(a20==1))&&(a25==1))))&&(a19==3))&&!(a11==1)))){ + a24 = 1; + a25 = 0; + a29 = 9; + a19 = 2; + a7 = 0; + a11 = 1; + return -1; + } else if((!(a25==1)&&((a14==9)&&((a0==1)&&(!(a20==1)&&((!(a24==1)&&(((a19==2)&&((!(a7==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==3)))&&!(a11==1)))&&(a22==1)))&&(a28==1))))))){ + a14 = 8; + a20 = 1; + a19 = 1; + a24 = 1; + a29 = 5; + a7 = 1; + a11 = 1; + a25 = 1; + return -1; + } else if((!(a24==1)&&((a25==1)&&((a14==8)&&((((((a22==1)&&(((input==1)&&(((a19==3)&&(a29==9))||((a29==5)&&(a19==4))))&&(a11==1)))&&(a20==1))&&(a0==1))&&!(a7==1))&&(a28==1)))))){ + a7 = 1; + a24 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((a22==1)&&(!(a25==1)&&(((a28==1)&&((a11==1)&&(((a0==1)&&((!(a7==1)&&((((a19==4)&&(a29==6))||(((a29==9)&&(a19==3))||((a19==4)&&(a29==5))))&&(input==4)))&&(a20==1)))&&(a14==9))))&&!(a24==1))))){ + a24 = 1; + a19 = 1; + a14 = 8; + a29 = 5; + a7 = 1; + a25 = 1; + return -1; + } else if(((((((a19==1)&&(!(a11==1)&&((((a14==9)&&(!(a24==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==6))))&&!(a25==1))&&!(a7==1))))&&(a0==1))&&(a28==1))&&!(a20==1))&&(a22==1))){ + a7 = 1; + a14 = 8; + a19 = 4; + a0 = 0; + a29 = 7; + return -1; + } else if((((a20==1)&&((((a14==9)&&((a22==1)&&(((a25==1)&&((((((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))||((a29==6)&&(a19==4)))&&(input==4))&&!(a7==1)))&&!(a0==1))))&&(a11==1))&&(a28==1)))&&!(a24==1))){ + a19 = 4; + a20 = 0; + a25 = 0; + a14 = 8; + a29 = 8; + return 23; + } else if((((((((((a28==1)&&((a24==1)&&((a11==1)&&((input==4)&&((a29==5)||(a29==6))))))&&(a22==1))&&!(a20==1))&&(a19==4))&&(a7==1))&&(a0==1))&&(a14==9))&&(a25==1))){ + a14 = 8; + a0 = 0; + a19 = 1; + a29 = 9; + a20 = 1; + return 21; + } else if((!(a11==1)&&(((a14==8)&&((((a20==1)&&((a25==1)&&((!(a0==1)&&((input==4)&&(((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))))&&(a24==1))))&&!(a7==1))&&(a22==1)))&&(a28==1)))){ + a19 = 1; + a11 = 1; + a29 = 5; + a0 = 1; + a7 = 1; + return -1; + } else if(((a24==1)&&(((a22==1)&&((a11==1)&&(((a19==3)&&(((a25==1)&&((a7==1)&&(((input==6)&&((a29==8)||((a29==6)||(a29==7))))&&!(a20==1))))&&(a0==1)))&&(a14==9))))&&(a28==1)))){ + a25 = 0; + a24 = 0; + a14 = 8; + a0 = 0; + a19 = 2; + a29 = 7; + a11 = 0; + return 21; + } else if((((a11==1)&&(((((a14==9)&&((a28==1)&&((((a0==1)&&((input==5)&&(a22==1)))&&(a19==1))&&!(a20==1))))&&!(a24==1))&&!(a7==1))&&(a29==9)))&&!(a25==1))){ + a29 = 8; + a11 = 0; + a14 = 8; + a0 = 0; + a19 = 3; + return 24; + } else if((!(a0==1)&&(!(a24==1)&&(((((a14==8)&&((!(a11==1)&&((!(a25==1)&&(((a29==6)||(a29==7))&&(input==6)))&&!(a20==1)))&&(a19==2)))&&!(a7==1))&&(a28==1))&&(a22==1))))){ + a29 = 5; + a11 = 1; + a24 = 1; + a19 = 4; + a7 = 1; + a25 = 1; + a20 = 1; + return 24; + } else if(((a25==1)&&((a19==5)&&((((((((((a11==1)&&(input==2))&&!(a7==1))&&(a22==1))&&(a29==5))&&!(a24==1))&&(a28==1))&&(a14==9))&&!(a20==1))&&!(a0==1))))){ + a7 = 1; + a14 = 8; + a20 = 1; + a24 = 1; + a19 = 1; + a0 = 1; + return -1; + } else if(((a28==1)&&((a29==8)&&((a14==10)&&((((a7==1)&&(((a0==1)&&((a25==1)&&(!(a20==1)&&((input==6)&&(a22==1)))))&&(a11==1)))&&(a19==4))&&(a24==1)))))){ + a14 = 8; + a20 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((((a14==8)&&((a11==1)&&(((!(a7==1)&&((((((a29==9)&&(a25==1))&&(a19==5))||((!(a25==1)&&(a29==5))&&(a19==1)))&&(input==6))&&(a22==1)))&&!(a20==1))&&(a0==1))))&&(a28==1))&&!(a24==1))){ + a20 = 1; + a29 = 8; + a0 = 0; + a24 = 1; + a7 = 1; + a25 = 0; + a19 = 2; + return 23; + } else if(((a20==1)&&(((a25==1)&&(!(a11==1)&&((a22==1)&&(((a19==3)&&((a29==8)&&(!(a24==1)&&((a7==1)&&((input==5)&&(a0==1))))))&&(a28==1)))))&&(a14==9)))){ + a24 = 1; + a29 = 7; + a7 = 0; + a20 = 0; + return 23; + } else if(((a22==1)&&((a11==1)&&((((((((((((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))||((a19==2)&&(a29==6)))&&(input==6))&&(a24==1))&&(a14==9))&&(a20==1))&&(a7==1))&&!(a25==1))&&(a28==1))&&(a0==1))))){ + a20 = 0; + a14 = 8; + a19 = 1; + a0 = 0; + a7 = 0; + a25 = 1; + a29 = 5; + return 23; + } else if((!(a20==1)&&(!(a11==1)&&(!(a0==1)&&(((((((((input==1)&&((a29==7)||((a29==5)||(a29==6))))&&(a24==1))&&(a7==1))&&(a14==8))&&(a19==1))&&(a22==1))&&(a28==1))&&!(a25==1)))))){ + a25 = 1; + a11 = 1; + a29 = 8; + a20 = 1; + a0 = 1; + a19 = 5; + a14 = 9; + return 24; + } else if((((!(a0==1)&&((!(a20==1)&&((a14==8)&&(!(a7==1)&&(((a28==1)&&((((a19==5)&&(a29==5))||(((a29==8)&&(a19==4))||((a19==4)&&(a29==9))))&&(input==6)))&&(a24==1)))))&&(a22==1)))&&(a11==1))&&(a25==1))){ + a19 = 3; + a29 = 8; + return -1; + } else if((!(a25==1)&&(((a7==1)&&(((a19==5)&&(((((((input==6)&&(a29==6))&&(a28==1))&&(a14==9))&&(a24==1))&&(a22==1))&&!(a0==1)))&&!(a20==1)))&&(a11==1)))){ + a20 = 1; + a25 = 1; + a0 = 1; + a29 = 9; + a19 = 4; + a7 = 0; + return -1; + } else if(((a7==1)&&(((a11==1)&&(!(a24==1)&&((a29==9)&&((((((a0==1)&&((input==3)&&(a14==8)))&&!(a20==1))&&(a25==1))&&(a28==1))&&(a19==5)))))&&(a22==1)))){ + a0 = 0; + a19 = 2; + a7 = 0; + return 24; + } else if(((a25==1)&&((a20==1)&&(((a14==8)&&((a24==1)&&(!(a11==1)&&((a0==1)&&((a7==1)&&((((a29==6)&&(input==1))&&(a28==1))&&(a19==1)))))))&&(a22==1))))){ + a20 = 0; + a25 = 0; + a0 = 0; + a29 = 7; + return 24; + } else if(((((a28==1)&&((a22==1)&&(((input==4)&&(((((!(a25==1)&&((!(a7==1)&&!(a20==1))&&(a24==1)))&&(a29==8))&&(a19==5))||(((a29==9)&&(!(a25==1)&&((!(a7==1)&&!(a20==1))&&(a24==1))))&&(a19==5)))||((((((a7==1)&&(a20==1))&&!(a24==1))&&(a25==1))&&(a29==5))&&(a19==1))))&&(a14==9))))&&!(a0==1))&&(a11==1))){ + a7 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + a25 = 1; + a14 = 8; + a0 = 1; + a24 = 1; + return -1; + } else if(((a22==1)&&((((a11==1)&&(((a24==1)&&(((((a19==5)&&(((!(a7==1)&&(a20==1))&&!(a25==1))&&(a29==8)))||((a19==5)&&((a29==9)&&(((a20==1)&&!(a7==1))&&!(a25==1)))))||((a19==1)&&((a29==5)&&((a25==1)&&(!(a20==1)&&(a7==1))))))&&(input==3)))&&(a0==1)))&&(a28==1))&&(a14==9)))){ + a14 = 8; + a7 = 1; + a29 = 5; + a20 = 1; + a25 = 1; + a19 = 1; + return -1; + } else if(((((!(a25==1)&&((a0==1)&&(((a11==1)&&((((((a29==7)||((a29==5)||(a29==6)))&&(input==2))&&(a7==1))&&(a28==1))&&(a22==1)))&&(a19==5))))&&!(a20==1))&&(a24==1))&&(a14==10))){ + a29 = 5; + a14 = 8; + a0 = 0; + a19 = 2; + a20 = 1; + return 24; + } else if(((((a24==1)&&(!(a7==1)&&(((a20==1)&&((((((input==5)&&((a29==7)||(a29==8)))&&!(a25==1))&&(a14==9))&&(a28==1))&&(a19==4)))&&(a22==1))))&&!(a11==1))&&!(a0==1))){ + a19 = 5; + a29 = 8; + a14 = 8; + a0 = 1; + a20 = 0; + a24 = 0; + a25 = 1; + return 23; + } else if((!(a7==1)&&((a24==1)&&((a19==4)&&((!(a25==1)&&((a28==1)&&(((((((a29==6)||(a29==7))&&(input==1))&&(a0==1))&&(a22==1))&&(a11==1))&&(a20==1))))&&(a14==10)))))){ + a29 = 5; + a14 = 8; + a25 = 1; + a19 = 1; + a7 = 1; + return -1; + } else if(((a25==1)&&(!(a11==1)&&(((a0==1)&&((a14==9)&&((!(a20==1)&&(!(a7==1)&&((a19==1)&&((a24==1)&&((input==1)&&((a29==7)||((a29==5)||(a29==6))))))))&&(a22==1))))&&(a28==1))))){ + a24 = 0; + a14 = 8; + a29 = 9; + return 21; + } else if(((a28==1)&&(((((((!(a20==1)&&(((((a29==7)||((a29==5)||(a29==6)))&&(input==3))&&(a7==1))&&(a22==1)))&&!(a11==1))&&(a19==5))&&!(a25==1))&&(a0==1))&&!(a24==1))&&(a14==9)))){ + a19 = 2; + a25 = 1; + a29 = 7; + return -1; + } else if((((!(a0==1)&&((a22==1)&&(((a11==1)&&((!(a25==1)&&((!(a7==1)&&((input==3)&&((a29==5)||(a29==6))))&&(a14==9)))&&!(a20==1)))&&(a19==4))))&&(a24==1))&&(a28==1))){ + a14 = 8; + a11 = 0; + a0 = 1; + a29 = 8; + a24 = 0; + a19 = 2; + a7 = 1; + return 21; + } else if(((a14==9)&&(((((a22==1)&&(((((a25==1)&&(!(a7==1)&&((input==5)&&((a29==6)||(a29==7)))))&&!(a0==1))&&(a28==1))&&!(a20==1)))&&!(a11==1))&&!(a24==1))&&(a19==4)))){ + a14 = 8; + a19 = 5; + a29 = 8; + a0 = 1; + return 24; + } else if((!(a20==1)&&(((a7==1)&&(((((a25==1)&&((((input==2)&&((((a19==4)&&(a29==8))||((a19==4)&&(a29==9)))||((a29==5)&&(a19==5))))&&(a0==1))&&(a11==1)))&&(a22==1))&&!(a24==1))&&(a28==1)))&&(a14==8)))){ + a19 = 4; + a25 = 0; + a0 = 0; + a29 = 6; + return 21; + } else if(((!(a24==1)&&(!(a20==1)&&(((((a14==8)&&(((a25==1)&&((((a29==6)&&(a19==2))||(((a19==1)&&(a29==9))||((a29==5)&&(a19==2))))&&(input==3)))&&!(a11==1)))&&(a7==1))&&(a22==1))&&(a0==1))))&&(a28==1))){ + a24 = 1; + a20 = 1; + a14 = 9; + a19 = 5; + a29 = 9; + return 24; + } else if((((a7==1)&&((a11==1)&&(((a14==9)&&(!(a0==1)&&(((a28==1)&&((!(a24==1)&&(((a29==8)||(a29==9))&&(input==1)))&&!(a25==1)))&&(a22==1))))&&(a19==1))))&&!(a20==1))){ + a29 = 5; + a20 = 1; + a24 = 1; + a14 = 8; + a25 = 1; + a0 = 1; + return -1; + } else if(((a28==1)&&((a0==1)&&(((((!(a25==1)&&(((a14==9)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==6))&&(a22==1)))&&!(a20==1)))&&(a19==1))&&!(a7==1))&&(a11==1))&&!(a24==1))))){ + a19 = 3; + a25 = 1; + a11 = 0; + a14 = 8; + a29 = 8; + return 23; + } else if(((a24==1)&&(((((!(a0==1)&&(((((input==3)&&(((a19==1)&&(a29==9))||((a29==5)&&(a19==2))))&&(a14==9))&&(a20==1))&&(a28==1)))&&(a25==1))&&(a22==1))&&!(a7==1))&&(a11==1)))){ + a25 = 0; + a19 = 1; + a14 = 8; + a29 = 8; + return -1; + } else if((((a28==1)&&(((a14==9)&&((a25==1)&&(!(a24==1)&&(!(a0==1)&&((a22==1)&&((a19==2)&&((a20==1)&&(((a29==7)||(a29==8))&&(input==5)))))))))&&!(a11==1)))&&(a7==1))){ + a7 = 0; + a29 = 7; + a11 = 1; + a20 = 0; + a19 = 5; + a0 = 1; + return -1; + } else if(((a0==1)&&((!(a7==1)&&(((!(a25==1)&&(((a14==8)&&(((a22==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==4)))&&(a20==1)))&&(a19==2)))&&(a11==1))&&!(a24==1)))&&(a28==1)))){ + a19 = 3; + a29 = 9; + a0 = 0; + a7 = 1; + return 23; + } else if((((((a0==1)&&(((a14==9)&&((a24==1)&&((a19==2)&&(((a28==1)&&((a25==1)&&(input==6)))&&(a29==7)))))&&(a11==1)))&&(a7==1))&&(a22==1))&&(a20==1))){ + a29 = 5; + a19 = 1; + a14 = 8; + return -1; + } else if(((a29==5)&&((!(a20==1)&&((((a11==1)&&((((((a28==1)&&(input==6))&&(a22==1))&&!(a25==1))&&(a0==1))&&(a24==1)))&&(a14==10))&&(a19==5)))&&!(a7==1)))){ + a14 = 8; + a25 = 1; + a20 = 1; + a19 = 1; + a7 = 1; + return -1; + } else if(((a7==1)&&(!(a11==1)&&(((a19==3)&&((a29==6)&&((a22==1)&&((((((a24==1)&&(input==1))&&!(a0==1))&&(a25==1))&&(a20==1))&&(a28==1)))))&&(a14==8))))){ + a19 = 2; + a14 = 9; + a29 = 7; + a24 = 0; + a11 = 1; + return 23; + } else if((((((a14==8)&&(!(a24==1)&&((a28==1)&&((a22==1)&&(!(a7==1)&&(((input==2)&&(((a19==2)&&(a29==9))||((a19==3)&&(a29==5))))&&(a0==1)))))))&&!(a25==1))&&(a20==1))&&!(a11==1))){ + a14 = 9; + a19 = 2; + a11 = 1; + a20 = 0; + a29 = 9; + return 21; + } else if((((((a7==1)&&((a22==1)&&((a25==1)&&(((a14==8)&&((a24==1)&&(!(a0==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==3)))))&&(a19==4)))))&&(a20==1))&&(a28==1))&&(a11==1))){ + a0 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a19==3)&&((a14==8)&&(((a7==1)&&(((a28==1)&&(((a22==1)&&((a11==1)&&(!(a0==1)&&((input==2)&&((a29==5)||(a29==6))))))&&(a20==1)))&&(a25==1)))&&!(a24==1))))){ + a24 = 1; + a0 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((((a11==1)&&(((((a7==1)&&(((((a28==1)&&((input==1)&&(a22==1)))&&(a0==1))&&(a14==10))&&(a29==9)))&&(a19==4))&&!(a20==1))&&(a24==1)))&&(a25==1))){ + a14 = 8; + a7 = 0; + a29 = 6; + a0 = 0; + a19 = 5; + return -1; + } else if(((!(a7==1)&&((((a0==1)&&(((a28==1)&&((a14==10)&&((!(a20==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==2)))&&!(a25==1))))&&(a19==3)))&&(a24==1))&&(a11==1)))&&(a22==1))){ + a0 = 0; + a7 = 1; + a25 = 1; + a14 = 9; + a11 = 0; + a29 = 7; + a19 = 1; + a24 = 0; + return -1; + } else if((((a24==1)&&(((a22==1)&&((a28==1)&&(!(a7==1)&&((((((a14==9)&&(input==1))&&(a25==1))&&(a0==1))&&(a20==1))&&(a29==8)))))&&(a11==1)))&&(a19==2))){ + a24 = 0; + a20 = 0; + a0 = 0; + a19 = 3; + a29 = 5; + a7 = 1; + a14 = 8; + return -1; + } else if((!(a0==1)&&(((a7==1)&&(((a28==1)&&((a24==1)&&(((a19==5)&&((!(a20==1)&&((input==5)&&(a22==1)))&&(a29==8)))&&!(a11==1))))&&(a14==8)))&&!(a25==1)))){ + a19 = 2; + a25 = 1; + a11 = 1; + a24 = 0; + a14 = 9; + a7 = 0; + return 24; + } else if(((a22==1)&&((((!(a0==1)&&((a7==1)&&((((((((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))||((a19==3)&&(a29==6)))&&(input==4))&&!(a20==1))&&(a28==1))&&!(a25==1))))&&(a14==9))&&!(a11==1))&&!(a24==1)))){ + a19 = 5; + a29 = 5; + a25 = 1; + a7 = 0; + a14 = 8; + return 23; + } else if(((a22==1)&&((a14==9)&&(!(a20==1)&&((((a25==1)&&(((a7==1)&&((((a0==1)&&(input==1))&&(a28==1))&&(a19==3)))&&(a24==1)))&&!(a11==1))&&(a29==9)))))){ + a11 = 1; + a29 = 5; + a20 = 1; + a19 = 1; + a14 = 8; + return -1; + } else if(((((a28==1)&&((a0==1)&&((!(a24==1)&&((a11==1)&&(!(a25==1)&&((a22==1)&&(((input==4)&&((a29==7)||(a29==8)))&&(a7==1))))))&&(a19==4))))&&!(a20==1))&&(a14==9))){ + a14 = 8; + a29 = 5; + a25 = 1; + a20 = 1; + a24 = 1; + a19 = 1; + return -1; + } else if((!(a7==1)&&((!(a0==1)&&(((((a29==7)&&(((((input==3)&&(a24==1))&&(a22==1))&&!(a11==1))&&(a19==4)))&&(a20==1))&&(a14==8))&&(a25==1)))&&(a28==1)))){ + a29 = 6; + a7 = 1; + a19 = 5; + a11 = 1; + return 24; + } else if((!(a25==1)&&(((((a24==1)&&(((((!(a11==1)&&((input==3)&&(((a29==6)||(a29==7))||(a29==8))))&&(a0==1))&&(a14==9))&&!(a20==1))&&(a22==1)))&&(a28==1))&&(a7==1))&&(a19==4)))){ + a29 = 5; + a19 = 1; + a25 = 1; + a14 = 8; + a20 = 1; + a11 = 1; + return -1; + } else if(((a22==1)&&((a7==1)&&((a19==1)&&((a14==9)&&((((a28==1)&&(!(a0==1)&&((((input==6)&&((a29==5)||(a29==6)))&&!(a24==1))&&!(a25==1))))&&(a20==1))&&!(a11==1))))))){ + a19 = 4; + a7 = 0; + a14 = 8; + a29 = 5; + return -1; + } else if(((((a24==1)&&((a19==2)&&((a7==1)&&(!(a20==1)&&((a28==1)&&((((a14==8)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==2)))&&(a0==1))&&(a11==1)))))))&&(a22==1))&&(a25==1))){ + a20 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a28==1)&&((a14==9)&&(((a20==1)&&(!(a7==1)&&((a24==1)&&(!(a11==1)&&((a29==6)&&((((input==5)&&(a19==4))&&!(a0==1))&&!(a25==1)))))))&&(a22==1))))){ + a24 = 0; + a20 = 0; + a29 = 7; + a14 = 8; + a7 = 1; + a0 = 1; + return 23; + } else if(((a24==1)&&((a20==1)&&((a28==1)&&(((a22==1)&&(((a11==1)&&(((((a14==8)&&(input==5))&&(a19==3))&&(a0==1))&&!(a7==1)))&&!(a25==1)))&&(a29==5)))))){ + a20 = 0; + a19 = 2; + a29 = 9; + return 23; + } else if(((a14==8)&&((a28==1)&&((a22==1)&&(!(a7==1)&&(!(a24==1)&&((!(a0==1)&&(((a20==1)&&((input==4)&&(((a29==6)&&(a19==3))||(((a19==2)&&(a29==9))||((a29==5)&&(a19==3))))))&&(a25==1)))&&(a11==1)))))))){ + a19 = 2; + a7 = 1; + a24 = 1; + a29 = 5; + return 24; + } else if((((a20==1)&&(((((a22==1)&&((((a14==9)&&((((a19==4)&&(a29==5))||(((a19==3)&&(a29==8))||((a19==3)&&(a29==9))))&&(input==5)))&&(a25==1))&&(a28==1)))&&(a7==1))&&!(a0==1))&&(a11==1)))&&!(a24==1))){ + a19 = 4; + a11 = 0; + a14 = 8; + a20 = 0; + a29 = 5; + a0 = 1; + a25 = 0; + return 24; + } else if(((!(a0==1)&&((a24==1)&&((a14==8)&&(!(a25==1)&&((a20==1)&&((a7==1)&&(((((((a29==5)||(a29==6))||(a29==7))&&(input==5))&&(a28==1))&&!(a11==1))&&(a19==2))))))))&&(a22==1))){ + a20 = 0; + a29 = 8; + a0 = 1; + a24 = 0; + a7 = 0; + a19 = 3; + return 23; + } else if((((((a25==1)&&(((a28==1)&&((a19==3)&&((!(a11==1)&&((a14==9)&&((input==3)&&!(a20==1))))&&(a22==1))))&&!(a24==1)))&&!(a0==1))&&(a29==5))&&!(a7==1))){ + a7 = 1; + a0 = 1; + a11 = 1; + a19 = 1; + a14 = 8; + a20 = 1; + a24 = 1; + return -1; + } else if(((a11==1)&&((!(a20==1)&&((a29==8)&&((((a22==1)&&((a19==4)&&(!(a7==1)&&((a28==1)&&((input==3)&&(a0==1))))))&&!(a24==1))&&(a14==9))))&&(a25==1)))){ + a19 = 5; + a7 = 1; + a29 = 9; + return -1; + } else if(((((a28==1)&&((a14==9)&&((a0==1)&&((a7==1)&&((((a19==5)&&(((input==6)&&((a29==5)||(a29==6)))&&(a11==1)))&&(a25==1))&&!(a24==1))))))&&(a20==1))&&(a22==1))){ + a20 = 0; + a29 = 6; + a24 = 1; + a19 = 2; + a11 = 0; + a0 = 0; + a14 = 8; + return 21; + } else if(((((a19==4)&&((!(a24==1)&&((((a11==1)&&((((input==6)&&((a29==8)||(a29==9)))&&(a14==8))&&!(a0==1)))&&(a22==1))&&(a7==1)))&&(a20==1)))&&(a28==1))&&!(a25==1))){ + a29 = 5; + a25 = 1; + a0 = 1; + a19 = 1; + a24 = 1; + return -1; + } else if((((((!(a7==1)&&(!(a24==1)&&((((((a22==1)&&(input==3))&&(a19==4))&&(a14==8))&&(a11==1))&&(a29==6))))&&!(a20==1))&&(a28==1))&&!(a25==1))&&(a0==1))){ + a20 = 1; + a24 = 1; + a7 = 1; + a19 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if(((a0==1)&&(!(a20==1)&&((a14==8)&&(((a7==1)&&((!(a25==1)&&((a22==1)&&(!(a24==1)&&((input==3)&&(((a19==4)&&(a29==5))||(((a19==3)&&(a29==8))||((a29==9)&&(a19==3))))))))&&(a11==1)))&&(a28==1)))))){ + a24 = 1; + a19 = 1; + a25 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if((!(a20==1)&&((!(a24==1)&&((a11==1)&&((a0==1)&&(((!(a7==1)&&(((((a29==6)||(a29==7))&&(input==3))&&(a28==1))&&(a22==1)))&&(a14==8))&&(a19==1)))))&&!(a25==1)))){ + a29 = 9; + a20 = 1; + a25 = 1; + a0 = 0; + a19 = 3; + a24 = 1; + a11 = 0; + return 24; + } else if((!(a11==1)&&((a25==1)&&(((a24==1)&&(((a14==9)&&(((((((a29==9)||((a29==7)||(a29==8)))&&(input==1))&&(a28==1))&&!(a7==1))&&(a19==2))&&(a20==1)))&&!(a0==1)))&&(a22==1))))){ + a29 = 8; + a0 = 1; + a19 = 5; + a11 = 1; + return -1; + } else if(((a7==1)&&(((((((((((input==1)&&((a29==8)||(a29==9)))&&(a11==1))&&(a22==1))&&(a28==1))&&(a20==1))&&(a24==1))&&(a0==1))&&(a14==10))&&(a19==2))&&!(a25==1)))){ + a25 = 1; + a14 = 8; + a19 = 1; + a29 = 5; + return -1; + } else if((((a14==9)&&((a25==1)&&((a11==1)&&((((((((input==3)&&(a28==1))&&(a19==3))&&(a22==1))&&(a7==1))&&!(a20==1))&&(a29==5))&&(a0==1)))))&&(a24==1))){ + a24 = 0; + a11 = 0; + a29 = 9; + a0 = 0; + a7 = 0; + return 24; + } else if(((((((a24==1)&&(((a14==9)&&((((((a29==7)||(a29==8))&&(input==1))&&(a25==1))&&(a7==1))&&!(a0==1)))&&(a19==5)))&&(a28==1))&&(a20==1))&&(a22==1))&&(a11==1))){ + a19 = 4; + a11 = 0; + a7 = 0; + a29 = 5; + a14 = 8; + a20 = 0; + return 21; + } else if(((((!(a24==1)&&((((a19==5)&&((((a22==1)&&((a0==1)&&(input==2)))&&(a25==1))&&(a7==1)))&&!(a11==1))&&(a14==9)))&&(a28==1))&&(a20==1))&&(a29==5))){ + a29 = 8; + a25 = 0; + a14 = 8; + a20 = 0; + a19 = 2; + return 21; + } else if((!(a20==1)&&((a28==1)&&(((a19==4)&&(((a0==1)&&(((a11==1)&&((a24==1)&&((a25==1)&&((input==3)&&((a29==7)||((a29==5)||(a29==6)))))))&&(a22==1)))&&(a14==8)))&&(a7==1))))){ + a24 = 0; + a19 = 3; + a29 = 6; + return 23; + } else if(((((!(a7==1)&&((((a20==1)&&(((a11==1)&&((a0==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==5))))&&!(a25==1)))&&(a28==1))&&(a19==1)))&&(a14==9))&&!(a24==1))&&(a22==1))){ + a25 = 1; + a29 = 8; + a14 = 8; + a11 = 0; + a20 = 0; + a19 = 5; + return 24; + } else if(((!(a0==1)&&((((a29==7)&&(((a28==1)&&(!(a20==1)&&(!(a25==1)&&(((input==3)&&(a22==1))&&(a19==2)))))&&!(a24==1)))&&(a7==1))&&!(a11==1)))&&(a14==8))){ + a19 = 3; + a20 = 1; + a11 = 1; + a29 = 6; + a24 = 1; + return -1; + } else if(((a22==1)&&(((a29==8)&&((a28==1)&&((a7==1)&&((((a11==1)&&(!(a24==1)&&((a19==2)&&((a0==1)&&(input==1)))))&&!(a20==1))&&!(a25==1)))))&&(a14==8)))){ + a25 = 1; + a7 = 0; + a0 = 0; + a19 = 5; + return 23; + } else if(((a19==5)&&(((!(a0==1)&&(((!(a11==1)&&(((a14==8)&&(((input==4)&&((a29==8)||(a29==9)))&&(a25==1)))&&(a22==1)))&&(a7==1))&&(a24==1)))&&!(a20==1))&&(a28==1)))){ + a29 = 8; + a0 = 1; + a25 = 0; + a24 = 0; + a19 = 2; + return 24; + } else if(((a14==8)&&(!(a11==1)&&(!(a20==1)&&((a19==3)&&((a28==1)&&((a25==1)&&(((a7==1)&&((a22==1)&&(((input==6)&&((a29==8)||(a29==9)))&&!(a24==1))))&&(a0==1))))))))){ + a19 = 5; + a24 = 1; + a29 = 6; + a14 = 9; + a20 = 1; + a25 = 0; + return 21; + } else if((!(a11==1)&&(((a24==1)&&(!(a20==1)&&(!(a7==1)&&((a14==9)&&((((((((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))||((a29==5)&&(a19==5)))&&(input==5))&&!(a0==1))&&!(a25==1))&&(a28==1))))))&&(a22==1)))){ + a14 = 8; + a0 = 1; + a19 = 1; + a29 = 5; + a11 = 1; + a7 = 1; + a20 = 1; + a25 = 1; + return -1; + } else if((((a24==1)&&(!(a25==1)&&((a20==1)&&((a28==1)&&(((a19==2)&&((a14==8)&&((((input==2)&&((a29==8)||(a29==9)))&&!(a7==1))&&(a22==1))))&&(a11==1))))))&&(a0==1))){ + a29 = 5; + a20 = 0; + return 24; + } else if(((a28==1)&&((a22==1)&&((a19==5)&&(((a0==1)&&((!(a24==1)&&(((a14==8)&&(((input==2)&&((a29==5)||(a29==6)))&&(a11==1)))&&!(a7==1)))&&!(a20==1)))&&(a25==1)))))){ + a20 = 1; + a0 = 0; + a24 = 1; + a19 = 4; + a25 = 0; + a29 = 7; + a7 = 1; + return 23; + } else if((((a22==1)&&(((((!(a11==1)&&((a25==1)&&(((((a29==6)||(a29==7))&&(input==4))&&!(a20==1))&&!(a0==1))))&&(a19==4))&&!(a7==1))&&!(a24==1))&&(a28==1)))&&(a14==9))){ + a14 = 8; + a0 = 1; + a19 = 1; + a24 = 1; + a20 = 1; + a29 = 5; + a11 = 1; + a7 = 1; + return -1; + } else if(((a14==8)&&((a20==1)&&((a7==1)&&(((((a28==1)&&((a0==1)&&((a22==1)&&((input==5)&&(((a29==5)&&(a19==4))||(((a29==8)&&(a19==3))||((a29==9)&&(a19==3))))))))&&!(a25==1))&&!(a24==1))&&!(a11==1)))))){ + a25 = 1; + a24 = 1; + a11 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((((a25==1)&&((!(a0==1)&&((a28==1)&&((((((input==4)&&((a29==8)||(a29==9)))&&!(a7==1))&&!(a24==1))&&(a14==8))&&(a22==1))))&&(a11==1)))&&!(a20==1))&&(a19==4))){ + a24 = 1; + a29 = 9; + a20 = 1; + a7 = 1; + a19 = 3; + return 23; + } else if(((((a28==1)&&(!(a7==1)&&((a22==1)&&(((a14==8)&&((a29==9)&&((a25==1)&&(((a20==1)&&(input==5))&&(a19==4)))))&&!(a24==1)))))&&(a0==1))&&(a11==1))){ + a0 = 0; + a29 = 5; + a7 = 1; + a19 = 3; + return 24; + } else if(((!(a25==1)&&((a29==5)&&(((a24==1)&&((a14==9)&&((!(a7==1)&&((a22==1)&&(!(a20==1)&&((a11==1)&&(input==2)))))&&(a19==5))))&&(a0==1))))&&(a28==1))){ + a24 = 0; + a19 = 3; + a29 = 9; + a14 = 8; + a0 = 0; + return -1; + } return calculate_output39(input); + } + + int calculate_output39(int input) { + if((!(a7==1)&&((a14==8)&&((a19==5)&&((((((!(a24==1)&&((a25==1)&&((input==5)&&((a29==7)||(a29==8)))))&&(a28==1))&&(a11==1))&&(a22==1))&&!(a0==1))&&(a20==1)))))){ + a24 = 1; + a29 = 6; + a19 = 2; + return -1; + } else if(((!(a20==1)&&((!(a24==1)&&(((!(a0==1)&&((!(a11==1)&&((input==1)&&(((a29==6)&&(a19==2))||(((a29==9)&&(a19==1))||((a19==2)&&(a29==5))))))&&!(a25==1)))&&(a22==1))&&(a7==1)))&&(a28==1)))&&(a14==9))){ + a11 = 1; + a29 = 7; + a14 = 8; + a7 = 0; + a25 = 1; + a19 = 2; + a20 = 1; + return 23; + } else if((((a22==1)&&(((a14==9)&&((a28==1)&&(!(a11==1)&&(((a25==1)&&(((((a29==5)||(a29==6))&&(input==3))&&(a20==1))&&(a19==2)))&&!(a24==1)))))&&!(a7==1)))&&!(a0==1))){ + a0 = 1; + a7 = 1; + a29 = 5; + a11 = 1; + a24 = 1; + a19 = 1; + a14 = 8; + return -1; + } else if((!(a0==1)&&((a19==3)&&(((a25==1)&&((!(a20==1)&&(((((a24==1)&&(((a29==7)||(a29==8))&&(input==3)))&&(a11==1))&&(a22==1))&&(a7==1)))&&(a28==1)))&&(a14==9))))){ + a29 = 7; + a24 = 0; + a25 = 0; + a14 = 8; + a19 = 4; + return 23; + } else if(((((((a19==5)&&((!(a7==1)&&(!(a11==1)&&((a28==1)&&(((input==2)&&(a14==8))&&!(a24==1)))))&&!(a20==1)))&&!(a0==1))&&(a22==1))&&!(a25==1))&&(a29==8))){ + a19 = 1; + a25 = 1; + a11 = 1; + a24 = 1; + a29 = 7; + return 23; + } else if((!(a25==1)&&((a14==8)&&(!(a24==1)&&(((!(a7==1)&&(((a0==1)&&(((a22==1)&&(((a29==6)||(a29==7))&&(input==1)))&&!(a11==1)))&&(a28==1)))&&!(a20==1))&&(a19==1)))))){ + a14 = 9; + a19 = 2; + a24 = 1; + a25 = 1; + a29 = 7; + return 24; + } else if(((a0==1)&&((((a7==1)&&(!(a11==1)&&(((a22==1)&&((a29==9)&&((a28==1)&&((a14==8)&&((a24==1)&&(input==2))))))&&(a19==1))))&&(a25==1))&&(a20==1)))){ + a0 = 0; + a19 = 2; + a20 = 0; + a29 = 7; + a25 = 0; + return 21; + } else if(((!(a20==1)&&((!(a25==1)&&(((a11==1)&&((a22==1)&&(((a7==1)&&((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))&&(input==1)))&&(a28==1))))&&(a0==1)))&&(a14==9)))&&(a24==1))){ + a14 = 8; + a25 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((((((((a22==1)&&((a14==8)&&((((((a29==6)&&(a19==2))||(((a29==9)&&(a19==1))||((a29==5)&&(a19==2))))&&(input==1))&&(a0==1))&&(a25==1))))&&(a28==1))&&!(a11==1))&&!(a20==1))&&!(a24==1))&&(a7==1))){ + a29 = 5; + a20 = 1; + a19 = 1; + a11 = 1; + a24 = 1; + return -1; + } else if(((a22==1)&&((a19==5)&&((a25==1)&&((a7==1)&&(!(a20==1)&&((!(a0==1)&&(((((((a29==5)||(a29==6))||(a29==7))&&(input==5))&&(a14==8))&&!(a11==1))&&(a28==1)))&&(a24==1)))))))){ + a20 = 1; + a29 = 8; + a19 = 3; + a25 = 0; + return 21; + } else if((((a25==1)&&(!(a20==1)&&((!(a11==1)&&(((((((a19==4)&&(input==4))&&!(a24==1))&&(a14==9))&&!(a0==1))&&(a22==1))&&(a7==1)))&&(a28==1))))&&(a29==6))){ + a7 = 0; + a11 = 1; + a29 = 5; + a24 = 1; + a25 = 0; + a0 = 1; + return 23; + } else if(((((a14==8)&&(((((a28==1)&&((a22==1)&&(!(a24==1)&&((((a29==8)||(a29==9))&&(input==1))&&(a11==1)))))&&(a7==1))&&!(a25==1))&&!(a0==1)))&&!(a20==1))&&(a19==5))){ + a19 = 4; + a25 = 1; + a24 = 1; + a29 = 6; + return 23; + } else if(((((((!(a20==1)&&(((!(a11==1)&&((((a29==8)||(a29==9))&&(input==3))&&(a28==1)))&&(a14==8))&&(a0==1)))&&(a19==1))&&!(a7==1))&&(a22==1))&&!(a25==1))&&!(a24==1))){ + a29 = 9; + return -1; + } else if(((a28==1)&&(((((a0==1)&&(((((a22==1)&&((a29==8)&&(!(a24==1)&&(input==2))))&&!(a20==1))&&!(a11==1))&&!(a25==1)))&&(a19==2))&&(a7==1))&&(a14==8)))){ + a24 = 1; + a19 = 5; + a7 = 0; + a14 = 9; + a29 = 9; + a20 = 1; + return 24; + } else if(((!(a11==1)&&(((a0==1)&&((a14==9)&&((a22==1)&&((a24==1)&&(((((input==1)&&!(a20==1))&&(a19==4))&&(a25==1))&&(a29==6))))))&&!(a7==1)))&&(a28==1))){ + a20 = 1; + a19 = 1; + a14 = 8; + a7 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if(((a19==4)&&((((((a14==9)&&((a28==1)&&(((a25==1)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==1))&&!(a24==1)))&&(a20==1))))&&(a11==1))&&(a7==1))&&(a22==1))&&!(a0==1)))){ + a14 = 8; + a19 = 1; + a29 = 8; + a11 = 0; + a20 = 0; + a0 = 1; + a7 = 0; + return 24; + } else if((!(a20==1)&&(!(a0==1)&&(((a22==1)&&((a11==1)&&((a25==1)&&((((!(a7==1)&&((input==3)&&((a29==6)||(a29==7))))&&(a28==1))&&(a14==8))&&(a19==4)))))&&(a24==1))))){ + a11 = 0; + a7 = 1; + a14 = 9; + a25 = 0; + a19 = 3; + a0 = 1; + a24 = 0; + a29 = 6; + return 21; + } else if(((a19==5)&&((!(a24==1)&&((a28==1)&&((a22==1)&&((((a11==1)&&((((input==3)&&((a29==7)||(a29==8)))&&(a20==1))&&(a14==9)))&&(a7==1))&&!(a25==1)))))&&!(a0==1)))){ + a24 = 1; + a11 = 0; + a0 = 1; + a29 = 9; + a19 = 3; + return 23; + } else if((((a20==1)&&((!(a25==1)&&((a0==1)&&((((a28==1)&&(((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))&&(input==4))&&(a24==1)))&&!(a7==1))&&(a22==1))))&&(a11==1)))&&(a14==9))){ + a29 = 9; + a0 = 0; + a7 = 1; + a11 = 0; + a24 = 0; + a20 = 0; + a19 = 3; + return 23; + } else if(((a24==1)&&(((a7==1)&&((((a22==1)&&(!(a20==1)&&((a0==1)&&((((a19==5)&&(input==5))&&(a29==7))&&!(a25==1)))))&&!(a11==1))&&(a14==9)))&&(a28==1)))){ + a7 = 0; + a14 = 8; + a11 = 1; + a25 = 1; + a0 = 0; + a29 = 5; + return 21; + } else if(((a28==1)&&((!(a7==1)&&((((a14==9)&&(((((input==2)&&(((a19==1)&&(a29==9))||((a29==5)&&(a19==2))))&&(a25==1))&&!(a24==1))&&!(a0==1)))&&(a11==1))&&(a22==1)))&&(a20==1)))){ + a29 = 7; + a24 = 1; + a7 = 1; + a19 = 2; + a14 = 8; + return 23; + } else if((((a22==1)&&(((!(a25==1)&&((a7==1)&&((a14==9)&&(!(a11==1)&&(((a28==1)&&((input==3)&&((a29==6)||(a29==7))))&&(a19==2))))))&&(a20==1))&&!(a0==1)))&&(a24==1))){ + a19 = 3; + a14 = 8; + a24 = 0; + a29 = 5; + return 24; + } else if(((a0==1)&&((!(a25==1)&&((a11==1)&&((a28==1)&&((a20==1)&&(((a7==1)&&((a19==4)&&(((input==4)&&(((a29==6)||(a29==7))||(a29==8)))&&(a22==1))))&&(a14==10))))))&&(a24==1)))){ + a29 = 7; + a20 = 0; + a24 = 0; + a7 = 0; + a19 = 5; + a14 = 9; + a0 = 0; + return -1; + } else if((((a22==1)&&(!(a20==1)&&((!(a11==1)&&((a19==1)&&(((((a28==1)&&(((a29==7)||(a29==8))&&(input==2)))&&!(a24==1))&&(a7==1))&&(a25==1))))&&(a0==1))))&&(a14==8))){ + a29 = 5; + a20 = 1; + a24 = 1; + a19 = 5; + a14 = 9; + return 24; + } else if((((a28==1)&&((!(a7==1)&&(((a25==1)&&((a24==1)&&((a22==1)&&((((input==2)&&(((a29==6)||(a29==7))||(a29==8)))&&(a11==1))&&(a0==1)))))&&(a14==10)))&&(a19==2)))&&(a20==1))){ + a11 = 0; + a14 = 8; + a20 = 0; + a24 = 0; + a29 = 7; + return 23; + } else if(((a28==1)&&((a24==1)&&(((((((((input==1)&&((((a29==8)&&(a19==3))||((a19==3)&&(a29==9)))||((a19==4)&&(a29==5))))&&!(a0==1))&&!(a7==1))&&(a14==9))&&(a22==1))&&!(a25==1))&&!(a11==1))&&(a20==1))))){ + a7 = 1; + a19 = 3; + a24 = 0; + a29 = 9; + a25 = 1; + a0 = 1; + a20 = 0; + return 21; + } else if(((a20==1)&&((a28==1)&&(((a14==8)&&(((((a0==1)&&((((a22==1)&&(input==3))&&(a24==1))&&!(a7==1)))&&(a25==1))&&(a11==1))&&(a29==6)))&&(a19==3))))){ + a19 = 4; + a29 = 7; + return 21; + } else if(((((a11==1)&&((a22==1)&&(((a19==2)&&((((a28==1)&&((a24==1)&&((input==5)&&((a29==7)||(a29==8)))))&&(a25==1))&&(a14==10)))&&(a0==1))))&&!(a20==1))&&!(a7==1))){ + a11 = 0; + a0 = 0; + a20 = 1; + a25 = 0; + a24 = 0; + a14 = 9; + a29 = 6; + return -1; + } else if(((((a14==9)&&(((a29==5)&&((((((a19==2)&&((input==6)&&(a0==1)))&&(a28==1))&&(a25==1))&&!(a24==1))&&(a11==1)))&&!(a7==1)))&&(a20==1))&&(a22==1))){ + a19 = 5; + a20 = 0; + a7 = 1; + a14 = 10; + a29 = 9; + a24 = 1; + return 24; + } else if((((((a24==1)&&((((a0==1)&&((a14==10)&&((a22==1)&&(((input==2)&&((a29==8)||(a29==9)))&&(a20==1)))))&&!(a7==1))&&(a28==1)))&&(a19==4))&&(a25==1))&&(a11==1))){ + a19 = 1; + a7 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if((((a14==9)&&((a29==9)&&(!(a0==1)&&((((a20==1)&&((((a22==1)&&((a19==1)&&(input==6)))&&(a28==1))&&(a7==1)))&&!(a24==1))&&!(a25==1)))))&&(a11==1))){ + a24 = 1; + a25 = 1; + a29 = 5; + a14 = 8; + a0 = 1; + return -1; + } else if(((((a19==1)&&(((a22==1)&&(((a25==1)&&((a24==1)&&(!(a11==1)&&(((input==4)&&(a14==9))&&(a29==5)))))&&!(a0==1)))&&(a28==1)))&&(a20==1))&&(a7==1))){ + a24 = 0; + a29 = 9; + a20 = 0; + a19 = 4; + a0 = 1; + a25 = 0; + return -1; + } else if((((!(a20==1)&&((((((a25==1)&&((((input==6)&&((a29==8)||(a29==9)))&&!(a7==1))&&(a14==9)))&&!(a11==1))&&!(a0==1))&&(a28==1))&&(a22==1)))&&(a19==1))&&(a24==1))){ + a7 = 1; + a11 = 1; + a0 = 1; + a14 = 8; + a20 = 1; + a29 = 5; + return -1; + } else if((((!(a0==1)&&((a29==7)&&((a22==1)&&((!(a11==1)&&(!(a7==1)&&((((input==6)&&(a19==2))&&(a14==9))&&!(a25==1))))&&!(a24==1)))))&&(a28==1))&&!(a20==1))){ + a11 = 1; + a0 = 1; + a29 = 5; + a7 = 1; + a24 = 1; + a19 = 3; + return -1; + } else if(((((!(a24==1)&&((a20==1)&&(((a28==1)&&(((((input==6)&&!(a0==1))&&(a22==1))&&(a29==6))&&(a11==1)))&&(a7==1))))&&!(a25==1))&&(a14==9))&&(a19==4))){ + a29 = 5; + a25 = 1; + a19 = 1; + a24 = 1; + a0 = 1; + a14 = 8; + return -1; + } else if(((a14==8)&&((((!(a0==1)&&(((a19==5)&&(((((input==3)&&(((a29==7)||(a29==8))||(a29==9)))&&(a22==1))&&(a11==1))&&(a28==1)))&&!(a25==1)))&&(a24==1))&&!(a7==1))&&(a20==1)))){ + a29 = 5; + a11 = 0; + a7 = 1; + a20 = 0; + a0 = 1; + a19 = 4; + a24 = 0; + return -1; + } else if((!(a11==1)&&((a22==1)&&((((!(a25==1)&&(((!(a7==1)&&((a19==1)&&((input==6)&&((a29==8)||(a29==9)))))&&(a28==1))&&!(a20==1)))&&(a0==1))&&(a14==8))&&!(a24==1))))){ + a0 = 0; + a24 = 1; + a25 = 1; + a29 = 8; + a11 = 1; + a19 = 2; + return 23; + } else if((!(a7==1)&&((((a22==1)&&(!(a24==1)&&((a14==8)&&((a0==1)&&((a11==1)&&((a19==2)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==6))&&!(a25==1))))))))&&(a28==1))&&!(a20==1)))){ + a24 = 1; + a7 = 1; + a0 = 0; + a25 = 1; + a29 = 7; + a20 = 1; + return 24; + } else if((((a14==9)&&(((a20==1)&&(!(a0==1)&&(((a11==1)&&(((((a7==1)&&(input==6))&&(a28==1))&&(a25==1))&&(a22==1)))&&(a19==5))))&&(a29==9)))&&!(a24==1))){ + a19 = 4; + a29 = 8; + a0 = 1; + return 21; + } else if(((a19==3)&&((((((((a11==1)&&(!(a24==1)&&((a28==1)&&((input==4)&&(((a29==6)||(a29==7))||(a29==8))))))&&(a20==1))&&(a22==1))&&!(a7==1))&&(a25==1))&&(a14==9))&&!(a0==1)))){ + a25 = 0; + a14 = 8; + a24 = 1; + a19 = 2; + a7 = 1; + a29 = 8; + return 23; + } else if(((!(a24==1)&&((((a28==1)&&((a19==3)&&((((((((a29==6)||(a29==7))||(a29==8))&&(input==1))&&(a22==1))&&(a20==1))&&(a14==8))&&(a7==1))))&&!(a25==1))&&(a0==1)))&&(a11==1))){ + a19 = 4; + a0 = 0; + a29 = 6; + a24 = 1; + return 21; + } else if(((a22==1)&&((((((!(a11==1)&&(((((!(a7==1)&&(a25==1))&&(a29==6))&&(a19==1))||(((a19==5)&&((!(a25==1)&&(a7==1))&&(a29==9)))||((a19==1)&&(((a25==1)&&!(a7==1))&&(a29==5)))))&&(input==2)))&&!(a24==1))&&(a28==1))&&!(a20==1))&&(a14==9))&&!(a0==1)))){ + a20 = 1; + a25 = 1; + a11 = 1; + a7 = 1; + a24 = 1; + a19 = 1; + a14 = 8; + a0 = 1; + a29 = 5; + return -1; + } else if(((a0==1)&&(((a19==5)&&(!(a11==1)&&(!(a24==1)&&(((a14==8)&&((a22==1)&&((a28==1)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==2))&&!(a25==1)))))&&(a20==1)))))&&!(a7==1)))){ + a29 = 5; + a19 = 2; + a20 = 0; + a25 = 1; + return 24; + } else if(((a22==1)&&((a20==1)&&(((!(a7==1)&&((a14==8)&&((a28==1)&&((((a19==3)&&((a25==1)&&(input==1)))&&!(a0==1))&&(a24==1)))))&&(a29==6))&&(a11==1))))){ + a29 = 7; + a19 = 1; + a25 = 0; + return 24; + } else if((((a14==9)&&(!(a20==1)&&(!(a7==1)&&((a22==1)&&((((a19==4)&&(!(a24==1)&&((a0==1)&&((a25==1)&&(input==6)))))&&(a11==1))&&(a28==1))))))&&(a29==8))){ + a14 = 8; + a25 = 0; + a19 = 2; + a11 = 0; + a29 = 9; + return 21; + } else if(((a0==1)&&((!(a24==1)&&((a7==1)&&((a19==4)&&(((((((((a29==6)||(a29==7))||(a29==8))&&(input==5))&&(a14==9))&&!(a11==1))&&(a28==1))&&!(a25==1))&&!(a20==1)))))&&(a22==1)))){ + a0 = 0; + a14 = 8; + a29 = 8; + a19 = 3; + a11 = 1; + a20 = 1; + a7 = 0; + return 23; + } else if((((a22==1)&&(((((a7==1)&&((a14==8)&&(!(a20==1)&&((a11==1)&&(((input==2)&&((a29==7)||((a29==5)||(a29==6))))&&(a24==1))))))&&(a25==1))&&(a19==3))&&(a28==1)))&&(a0==1))){ + a29 = 9; + a25 = 0; + a7 = 0; + a24 = 0; + a20 = 1; + return 21; + } else if(((a7==1)&&((!(a0==1)&&((((a19==3)&&(((a22==1)&&((!(a24==1)&&(!(a11==1)&&(input==4)))&&(a29==8)))&&(a14==9)))&&(a28==1))&&(a20==1)))&&(a25==1)))){ + a11 = 1; + a19 = 1; + a0 = 1; + a25 = 0; + a24 = 1; + return 24; + } else if(((a0==1)&&(((a22==1)&&((((((((a7==1)&&((input==6)&&((a29==8)||(a29==9))))&&(a24==1))&&(a20==1))&&(a19==5))&&(a28==1))&&!(a25==1))&&(a14==9)))&&!(a11==1)))){ + a19 = 1; + a14 = 8; + a11 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if(((a28==1)&&(((a24==1)&&((a20==1)&&(((a22==1)&&((a0==1)&&((a7==1)&&(((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))&&(input==1))&&!(a11==1)))))&&(a25==1))))&&(a14==8)))){ + a19 = 2; + a7 = 0; + a20 = 0; + a0 = 0; + a29 = 5; + return 24; + } else if((((((a22==1)&&((((!(a11==1)&&(((a25==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==3)))&&(a7==1)))&&(a14==8))&&(a28==1))&&!(a0==1)))&&!(a20==1))&&(a24==1))&&(a19==4))){ + a7 = 0; + a29 = 5; + a25 = 0; + a20 = 1; + a19 = 3; + a24 = 0; + a11 = 1; + return 24; + } else if(((a14==8)&&(((a25==1)&&(((!(a20==1)&&((a22==1)&&((a28==1)&&(((((a19==2)&&(a29==5))||(((a29==8)&&(a19==1))||((a19==1)&&(a29==9))))&&(input==3))&&!(a24==1)))))&&!(a11==1))&&!(a0==1)))&&!(a7==1)))){ + a24 = 1; + a29 = 7; + a14 = 9; + a19 = 4; + a25 = 0; + return 21; + } else if(((a25==1)&&((((((((((((a29==8)||(a29==9))&&(input==5))&&!(a24==1))&&(a19==1))&&(a7==1))&&(a28==1))&&(a14==8))&&(a22==1))&&(a11==1))&&(a0==1))&&(a20==1)))){ + a20 = 0; + a11 = 0; + a29 = 7; + a19 = 2; + return 21; + } else if(((a0==1)&&(((a29==5)&&(((a14==9)&&(((a22==1)&&(((((a7==1)&&(input==2))&&(a20==1))&&(a19==1))&&(a28==1)))&&(a24==1)))&&!(a25==1)))&&!(a11==1)))){ + a29 = 9; + a25 = 1; + a11 = 1; + a7 = 0; + return -1; + } else if(((a25==1)&&(!(a20==1)&&((a28==1)&&(((a22==1)&&((a7==1)&&((a0==1)&&((a11==1)&&(((((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))&&(input==1))&&(a24==1))))))&&(a14==10)))))){ + a20 = 1; + a14 = 8; + a19 = 1; + a29 = 5; + return -1; + } else if(((a25==1)&&((a22==1)&&(((a0==1)&&((a29==8)&&(!(a20==1)&&(((!(a7==1)&&(((input==5)&&(a14==9))&&(a28==1)))&&!(a24==1))&&!(a11==1)))))&&(a19==5))))){ + a11 = 1; + a25 = 0; + a29 = 7; + a24 = 1; + a14 = 8; + a0 = 0; + a19 = 4; + return 24; + } else if((((a22==1)&&((a29==9)&&((a25==1)&&(((a0==1)&&((((a7==1)&&((a28==1)&&((a14==10)&&(input==5))))&&(a11==1))&&!(a24==1)))&&(a20==1)))))&&(a19==1))){ + a0 = 0; + a7 = 0; + a19 = 5; + a14 = 8; + return 24; + } else if((!(a24==1)&&((((!(a20==1)&&((a7==1)&&((((a0==1)&&(!(a11==1)&&((input==3)&&(((a29==5)||(a29==6))||(a29==7)))))&&(a25==1))&&(a22==1))))&&(a14==8))&&(a28==1))&&(a19==3)))){ + a19 = 2; + a25 = 0; + a29 = 9; + a24 = 1; + a14 = 9; + a20 = 1; + return 21; + } else if((((a22==1)&&((a25==1)&&((a28==1)&&(((a14==10)&&((a24==1)&&(((a20==1)&&((a11==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==1))))&&(a7==1))))&&(a19==5)))))&&(a0==1))){ + a11 = 0; + a20 = 0; + a29 = 6; + a14 = 9; + a24 = 0; + a19 = 2; + return 21; + } else if((!(a11==1)&&(!(a20==1)&&((((a28==1)&&(!(a0==1)&&(((a25==1)&&((((input==1)&&((a29==5)||(a29==6)))&&(a24==1))&&(a19==2)))&&(a14==9))))&&(a22==1))&&(a7==1))))){ + a14 = 8; + a11 = 1; + a19 = 5; + a20 = 1; + a29 = 9; + return 23; + } else if((((a24==1)&&((a14==9)&&(((((a28==1)&&((a0==1)&&(!(a7==1)&&(((input==5)&&((a29==7)||(a29==8)))&&(a11==1)))))&&(a22==1))&&!(a20==1))&&!(a25==1))))&&(a19==2))){ + a19 = 1; + a7 = 1; + a14 = 8; + a25 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if((((((a20==1)&&(((a25==1)&&(((a19==2)&&((a7==1)&&((a28==1)&&(((a29==5)||(a29==6))&&(input==3)))))&&(a14==8)))&&(a24==1)))&&(a22==1))&&(a0==1))&&!(a11==1))){ + a0 = 0; + a19 = 4; + a25 = 0; + a20 = 0; + a29 = 5; + return 24; + } else if(((a22==1)&&((a7==1)&&(!(a20==1)&&(((((!(a24==1)&&((a14==8)&&((((a29==7)||(a29==8))&&(input==3))&&(a28==1))))&&(a19==2))&&(a0==1))&&(a25==1))&&(a11==1)))))){ + a19 = 1; + a20 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if((!(a11==1)&&((a20==1)&&((a22==1)&&((a25==1)&&((a28==1)&&(!(a24==1)&&((a0==1)&&((a7==1)&&((a14==9)&&(((input==2)&&((a29==8)||(a29==9)))&&(a19==2)))))))))))){ + a25 = 0; + a19 = 3; + a29 = 8; + a11 = 1; + return 23; + } else if(((((((a28==1)&&((a11==1)&&(!(a20==1)&&((a25==1)&&((a19==2)&&(((input==1)&&((a29==7)||(a29==8)))&&!(a7==1)))))))&&(a22==1))&&(a24==1))&&(a0==1))&&(a14==10))){ + a19 = 1; + a29 = 8; + a20 = 1; + a0 = 0; + a11 = 0; + a14 = 9; + return -1; + } else if(((((a20==1)&&((a28==1)&&((a19==3)&&((a7==1)&&(((a11==1)&&(((a14==9)&&((input==1)&&(a29==8)))&&(a24==1)))&&(a25==1))))))&&(a0==1))&&(a22==1))){ + a29 = 5; + a14 = 8; + a19 = 1; + return -1; + } else if((!(a7==1)&&((a20==1)&&((a24==1)&&(!(a0==1)&&(!(a11==1)&&((((a19==5)&&((a29==5)&&((a28==1)&&((input==2)&&(a25==1)))))&&(a22==1))&&(a14==9)))))))){ + a0 = 1; + a19 = 1; + a29 = 9; + a7 = 1; + a20 = 0; + return -1; + } else if(((((((!(a7==1)&&(((a24==1)&&((!(a0==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==6)))&&!(a20==1)))&&!(a11==1)))&&(a19==2))&&!(a25==1))&&(a28==1))&&(a22==1))&&(a14==8))){ + a29 = 7; + a19 = 1; + a20 = 1; + a25 = 1; + a14 = 9; + a7 = 1; + return 24; + } else if(((a25==1)&&(((a11==1)&&((a22==1)&&((a28==1)&&((a24==1)&&((!(a7==1)&&((a19==5)&&(((input==4)&&!(a0==1))&&!(a20==1))))&&(a14==9))))))&&(a29==9)))){ + a20 = 1; + a14 = 8; + a19 = 4; + return 23; + } else if(((!(a25==1)&&((((a22==1)&&((a14==9)&&(((a7==1)&&((!(a24==1)&&((input==2)&&((a29==7)||((a29==5)||(a29==6)))))&&(a11==1)))&&(a20==1))))&&(a19==5))&&(a28==1)))&&(a0==1))){ + a24 = 1; + a29 = 9; + a25 = 1; + a20 = 0; + a19 = 4; + a14 = 10; + return 24; + } else if((!(a25==1)&&(!(a20==1)&&((a14==8)&&((((a19==2)&&((a28==1)&&((a24==1)&&((a22==1)&&((((a29==8)||(a29==9))&&(input==6))&&(a11==1))))))&&(a0==1))&&!(a7==1)))))){ + a20 = 1; + a24 = 0; + a29 = 8; + a11 = 0; + a7 = 1; + a19 = 1; + return 23; + } else if(((a28==1)&&(((a19==5)&&(!(a7==1)&&(!(a20==1)&&(!(a0==1)&&(!(a25==1)&&((!(a24==1)&&(((input==3)&&((a29==8)||(a29==9)))&&(a11==1)))&&(a14==9)))))))&&(a22==1)))){ + a20 = 1; + a7 = 1; + a25 = 1; + a0 = 1; + a29 = 5; + a14 = 8; + a24 = 1; + a19 = 1; + return -1; + } else if(((!(a25==1)&&(!(a24==1)&&(((a0==1)&&(!(a7==1)&&(((a14==8)&&((a11==1)&&((((a29==6)&&(a19==3))||(((a29==9)&&(a19==2))||((a19==3)&&(a29==5))))&&(input==3))))&&(a28==1))))&&(a20==1))))&&(a22==1))){ + a29 = 5; + a24 = 1; + a7 = 1; + a19 = 1; + a25 = 1; + return -1; + } else if((((!(a20==1)&&(!(a7==1)&&(!(a11==1)&&(!(a0==1)&&((a19==3)&&((a22==1)&&((a14==9)&&((((a29==8)||(a29==9))&&(input==4))&&(a28==1)))))))))&&!(a25==1))&&(a24==1))){ + a24 = 0; + a14 = 8; + a29 = 7; + a0 = 1; + return 21; + } else if((!(a7==1)&&((a19==4)&&(!(a25==1)&&((a24==1)&&((((a20==1)&&(((((input==6)&&(a14==9))&&(a28==1))&&(a29==6))&&(a0==1)))&&!(a11==1))&&(a22==1))))))){ + a25 = 1; + a11 = 1; + a29 = 5; + a7 = 1; + a19 = 1; + a14 = 8; + return -1; + } else if((((((!(a0==1)&&(((((!(a24==1)&&(((a29==5)||(a29==6))&&(input==6)))&&!(a11==1))&&(a7==1))&&(a19==5))&&(a14==9)))&&(a22==1))&&(a20==1))&&(a28==1))&&!(a25==1))){ + a11 = 1; + a14 = 8; + a19 = 1; + a25 = 1; + a0 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if(((a29==9)&&(!(a20==1)&&(!(a25==1)&&((a19==4)&&((((!(a0==1)&&((a28==1)&&(((input==2)&&(a22==1))&&!(a7==1))))&&(a11==1))&&!(a24==1))&&(a14==8))))))){ + a20 = 1; + a29 = 6; + a24 = 1; + a25 = 1; + a19 = 2; + a7 = 1; + return 21; + } else if((!(a24==1)&&(!(a25==1)&&((a14==8)&&(((a22==1)&&((a7==1)&&((a29==8)&&(((((input==5)&&(a19==2))&&!(a11==1))&&(a28==1))&&(a0==1)))))&&!(a20==1)))))){ + a29 = 7; + a24 = 1; + a14 = 9; + a25 = 1; + a19 = 1; + return 23; + } else if(((a19==4)&&((a25==1)&&(((!(a11==1)&&((a24==1)&&((a29==8)&&((((!(a0==1)&&(input==2))&&!(a7==1))&&(a28==1))&&(a14==9)))))&&!(a20==1))&&(a22==1))))){ + a29 = 6; + a19 = 2; + a0 = 1; + a25 = 0; + return 21; + } else if((((a0==1)&&((((((a28==1)&&(((a20==1)&&(((((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))||((a29==6)&&(a19==2)))&&(input==3)))&&(a14==8)))&&!(a24==1))&&(a22==1))&&!(a25==1))&&!(a7==1)))&&!(a11==1))){ + a0 = 0; + a11 = 1; + a24 = 1; + a29 = 5; + a7 = 1; + a25 = 1; + a19 = 2; + return 21; + } else if((((a22==1)&&(!(a20==1)&&(!(a11==1)&&((((a19==1)&&((!(a0==1)&&(((input==3)&&(a28==1))&&(a25==1)))&&!(a24==1)))&&(a29==5))&&(a14==8)))))&&!(a7==1))){ + a19 = 3; + a24 = 1; + a20 = 1; + a29 = 8; + a11 = 1; + a25 = 0; + return 23; + } else if(((a28==1)&&(((a20==1)&&((a11==1)&&((a22==1)&&((((((a29==9)&&((input==5)&&!(a24==1)))&&!(a0==1))&&!(a25==1))&&(a14==9))&&(a19==4)))))&&(a7==1)))){ + a25 = 1; + a19 = 2; + a0 = 1; + a11 = 0; + a29 = 6; + return -1; + } else if((((((a24==1)&&((((((a22==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==4))&&(a20==1)))&&(a7==1))&&!(a11==1))&&(a14==8))&&(a25==1)))&&(a19==1))&&!(a0==1))&&(a28==1))){ + a11 = 1; + a0 = 1; + a14 = 9; + a19 = 5; + a7 = 0; + a29 = 7; + a25 = 0; + return 21; + } else if((!(a25==1)&&(!(a11==1)&&(!(a20==1)&&((a22==1)&&((a14==8)&&((((a24==1)&&((a7==1)&&((a0==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==2)))))&&(a28==1))&&(a19==1)))))))){ + a11 = 1; + a14 = 9; + a19 = 2; + a29 = 7; + a20 = 1; + return 23; + } else if(((!(a25==1)&&((a0==1)&&((a28==1)&&((a14==9)&&((a20==1)&&((a22==1)&&(((((((a29==8)&&(a19==2))||((a19==2)&&(a29==9)))||((a29==5)&&(a19==3)))&&(input==1))&&(a7==1))&&!(a11==1))))))))&&(a24==1))){ + a29 = 8; + a19 = 4; + a11 = 1; + return 24; + } else if(((!(a25==1)&&((((a22==1)&&((a14==8)&&((a28==1)&&((((((a29==7)||(a29==8))&&(input==2))&&(a24==1))&&!(a7==1))&&(a19==1)))))&&(a20==1))&&!(a11==1)))&&(a0==1))){ + a7 = 1; + a0 = 0; + a29 = 5; + a20 = 0; + a24 = 0; + a19 = 2; + a25 = 1; + return 23; + } else if(((((a11==1)&&(((((a19==5)&&(!(a25==1)&&((((input==5)&&((a29==8)||((a29==6)||(a29==7))))&&(a0==1))&&(a22==1))))&&(a7==1))&&(a14==8))&&!(a20==1)))&&(a28==1))&&(a24==1))){ + a25 = 1; + a19 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if(((a14==9)&&(((((a28==1)&&(!(a20==1)&&(!(a0==1)&&((!(a11==1)&&(((input==2)&&((a29==9)||((a29==7)||(a29==8))))&&!(a24==1)))&&(a22==1)))))&&(a25==1))&&(a19==4))&&(a7==1)))){ + a19 = 1; + a11 = 1; + a24 = 1; + a29 = 5; + a14 = 8; + a0 = 1; + a20 = 1; + return -1; + } else if(((a19==1)&&(((((a14==8)&&((!(a7==1)&&((a28==1)&&((a11==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==5))&&!(a20==1)))))&&(a22==1)))&&(a0==1))&&!(a25==1))&&(a24==1)))){ + a7 = 1; + a20 = 1; + a24 = 0; + a29 = 6; + a25 = 1; + a11 = 0; + return 21; + } else if((((a22==1)&&(((!(a24==1)&&(!(a20==1)&&((((((a19==5)&&((a25==1)&&(a29==9)))||((a19==1)&&(!(a25==1)&&(a29==5))))&&(input==5))&&!(a11==1))&&!(a7==1))))&&(a14==8))&&(a0==1)))&&(a28==1))){ + a24 = 1; + a19 = 1; + a20 = 1; + a29 = 5; + a11 = 1; + a25 = 1; + a7 = 1; + return -1; + } else if(((a7==1)&&(((a22==1)&&(!(a24==1)&&((a0==1)&&(!(a20==1)&&((a11==1)&&((a28==1)&&(((input==4)&&(((a29==5)&&(a19==4))||(((a29==8)&&(a19==3))||((a29==9)&&(a19==3)))))&&(a14==8))))))))&&!(a25==1)))){ + a0 = 0; + a24 = 1; + a19 = 3; + a29 = 5; + a7 = 0; + a20 = 1; + a25 = 1; + return 23; + } else if(((a28==1)&&(((!(a11==1)&&((a22==1)&&((((a19==1)&&((a14==8)&&((a24==1)&&(((a29==6)||(a29==7))&&(input==6)))))&&(a0==1))&&(a7==1))))&&!(a25==1))&&(a20==1)))){ + a0 = 0; + a7 = 0; + a20 = 0; + a29 = 7; + a19 = 4; + return 24; + } else if((((a0==1)&&((a25==1)&&((a7==1)&&((a24==1)&&((a14==9)&&((a20==1)&&((a19==1)&&(((a22==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==5)))&&(a11==1)))))))))&&(a28==1))){ + a0 = 0; + a29 = 9; + a14 = 8; + a7 = 0; + a19 = 4; + return 21; + } else if((((a22==1)&&(((a14==9)&&(!(a11==1)&&((((!(a20==1)&&(((input==1)&&!(a25==1))&&(a19==1)))&&(a7==1))&&!(a0==1))&&(a28==1))))&&(a29==5)))&&!(a24==1))){ + a29 = 8; + a19 = 3; + a24 = 1; + a11 = 1; + a25 = 1; + a14 = 8; + return 24; + } else if((((a24==1)&&(((a19==3)&&((!(a25==1)&&((((((input==1)&&((a29==8)||((a29==6)||(a29==7))))&&(a0==1))&&(a14==9))&&(a20==1))&&(a11==1)))&&(a22==1)))&&!(a7==1)))&&(a28==1))){ + a29 = 5; + a7 = 1; + a25 = 1; + a14 = 8; + a19 = 1; + return -1; + } else if((!(a25==1)&&(((((!(a20==1)&&(((((a7==1)&&((a19==1)&&(input==2)))&&(a28==1))&&(a24==1))&&(a14==8)))&&(a29==8))&&!(a11==1))&&!(a0==1))&&(a22==1)))){ + a19 = 5; + a20 = 1; + a7 = 0; + a25 = 1; + a11 = 1; + return 23; + } else if((!(a11==1)&&(((((a25==1)&&(!(a7==1)&&(((a19==5)&&((a20==1)&&((a0==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==3)))))&&(a14==9))))&&(a28==1))&&(a22==1))&&(a24==1)))){ + a11 = 1; + a14 = 8; + a29 = 5; + a19 = 1; + a7 = 1; + return -1; + } else if(((a11==1)&&((a22==1)&&((a28==1)&&((a7==1)&&(!(a25==1)&&(((a14==9)&&((a24==1)&&(!(a0==1)&&((a20==1)&&((input==6)&&((a29==5)||(a29==6)))))))&&(a19==2)))))))){ + a29 = 5; + a25 = 1; + a19 = 1; + a0 = 1; + a14 = 8; + return -1; + } else if((!(a0==1)&&((((((!(a25==1)&&((a24==1)&&(!(a20==1)&&(((a22==1)&&(input==5))&&(a14==9)))))&&!(a11==1))&&(a28==1))&&(a19==2))&&(a7==1))&&(a29==8)))){ + a25 = 1; + a7 = 0; + a24 = 0; + a19 = 4; + a20 = 1; + a0 = 1; + a29 = 5; + return 24; + } else if(((a14==9)&&((a19==2)&&(!(a20==1)&&((a11==1)&&((a29==7)&&((((a7==1)&&((a0==1)&&((a22==1)&&((input==4)&&(a25==1)))))&&!(a24==1))&&(a28==1)))))))){ + a14 = 8; + a0 = 0; + a29 = 9; + a24 = 1; + a20 = 1; + a19 = 1; + return 23; + } else if(((((a7==1)&&(((((!(a0==1)&&((((a29==9)&&(input==1))&&(a14==8))&&!(a20==1)))&&!(a24==1))&&(a19==5))&&(a22==1))&&!(a25==1)))&&(a28==1))&&!(a11==1))){ + a20 = 1; + a25 = 1; + a11 = 1; + a24 = 1; + a0 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((a24==1)&&(((((((!(a11==1)&&(((a20==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==4)))&&(a19==2)))&&!(a7==1))&&(a28==1))&&!(a0==1))&&!(a25==1))&&(a14==8))&&(a22==1)))){ + a29 = 8; + a7 = 1; + a25 = 1; + a19 = 1; + a11 = 1; + return 23; + } else if(((((((a22==1)&&(((((a7==1)&&((((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))&&(input==4)))&&(a14==8))&&(a28==1))&&(a20==1)))&&!(a24==1))&&(a0==1))&&(a11==1))&&!(a25==1))){ + a29 = 5; + a24 = 1; + a25 = 1; + a19 = 1; + return -1; + } else if((((a28==1)&&(((a7==1)&&(((a24==1)&&((a11==1)&&((a20==1)&&(!(a25==1)&&((a0==1)&&((input==6)&&((a29==6)||(a29==7))))))))&&(a19==2)))&&(a22==1)))&&(a14==10))){ + a19 = 1; + a29 = 5; + a14 = 8; + a25 = 1; + return -1; + } else if((((a22==1)&&(!(a24==1)&&((a25==1)&&((a29==5)&&(((a0==1)&&(((((input==5)&&!(a7==1))&&(a20==1))&&(a11==1))&&(a19==1)))&&(a28==1))))))&&(a14==9))){ + a24 = 1; + a7 = 1; + a14 = 8; + return -1; + } else if((((((!(a24==1)&&(((!(a20==1)&&((a28==1)&&(!(a25==1)&&((input==5)&&(a29==5)))))&&(a22==1))&&!(a7==1)))&&(a14==9))&&(a19==1))&&(a11==1))&&(a0==1))){ + a14 = 8; + a19 = 4; + a29 = 6; + a0 = 0; + a24 = 1; + a20 = 1; + return -1; + } else if((((a19==5)&&((a14==8)&&((!(a25==1)&&(!(a7==1)&&((a0==1)&&((a20==1)&&(((((a29==6)||(a29==7))&&(input==4))&&(a24==1))&&(a22==1))))))&&!(a11==1))))&&(a28==1))){ + a7 = 1; + a11 = 1; + a29 = 5; + a25 = 1; + a19 = 1; + return -1; + } else if((!(a0==1)&&(((a28==1)&&(((a7==1)&&((a25==1)&&(((((((a19==5)&&(a29==6))||(((a19==4)&&(a29==9))||((a29==5)&&(a19==5))))&&(input==1))&&(a22==1))&&!(a24==1))&&!(a11==1))))&&(a14==8)))&&!(a20==1)))){ + a19 = 4; + a24 = 1; + a29 = 9; + a20 = 1; + a11 = 1; + return 23; + } else if(((a25==1)&&((a14==9)&&(!(a24==1)&&(!(a20==1)&&(((a7==1)&&(((((((a19==5)&&(a29==6))||(((a29==9)&&(a19==4))||((a19==5)&&(a29==5))))&&(input==6))&&(a11==1))&&!(a0==1))&&(a22==1)))&&(a28==1))))))){ + a0 = 1; + a19 = 4; + a20 = 1; + a29 = 5; + a24 = 1; + a11 = 0; + return 23; + } else if(((a7==1)&&((a14==9)&&((a22==1)&&((a28==1)&&(((a0==1)&&((((a20==1)&&(((input==4)&&((a29==8)||((a29==6)||(a29==7))))&&(a11==1)))&&(a19==2))&&!(a24==1)))&&!(a25==1))))))){ + a20 = 0; + a19 = 5; + a29 = 6; + a24 = 1; + return 23; + } else if(((a11==1)&&((((a22==1)&&(((a7==1)&&((((a19==5)&&((a14==9)&&(!(a25==1)&&(input==5))))&&(a29==8))&&(a28==1)))&&!(a0==1)))&&!(a20==1))&&(a24==1)))){ + a29 = 7; + a7 = 0; + a14 = 8; + return 24; + } else if((((a22==1)&&(((!(a20==1)&&((((a14==9)&&((a28==1)&&((!(a7==1)&&(input==4))&&(a29==6))))&&(a24==1))&&(a19==3)))&&(a25==1))&&(a11==1)))&&(a0==1))){ + a7 = 1; + a19 = 2; + a20 = 1; + return -1; + } else if((!(a0==1)&&((a25==1)&&(((a22==1)&&((a29==6)&&(((a28==1)&&((a14==8)&&(((a19==1)&&((a24==1)&&(input==5)))&&!(a7==1))))&&!(a11==1))))&&!(a20==1))))){ + a24 = 0; + a29 = 7; + a14 = 9; + a11 = 1; + a19 = 3; + return 24; + } else if(((a7==1)&&(((((((!(a11==1)&&((a24==1)&&(((input==6)&&((a29==8)||(a29==9)))&&(a22==1))))&&(a0==1))&&!(a25==1))&&(a28==1))&&(a19==5))&&(a14==8))&&!(a20==1)))){ + a11 = 1; + a19 = 2; + a14 = 9; + a20 = 1; + a7 = 0; + a29 = 6; + return 24; + } else if(((((a14==8)&&((a25==1)&&((((((!(a11==1)&&((input==5)&&((a29==9)||((a29==7)||(a29==8)))))&&(a20==1))&&!(a0==1))&&(a28==1))&&(a7==1))&&!(a24==1))))&&(a22==1))&&(a19==5))){ + a29 = 5; + a11 = 1; + a19 = 1; + a24 = 1; + a0 = 1; + return -1; + } else if(((!(a11==1)&&((((!(a0==1)&&(!(a20==1)&&((a14==9)&&((a28==1)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==4))&&(a19==1))))))&&(a22==1))&&!(a7==1))&&!(a25==1)))&&!(a24==1))){ + a14 = 8; + a25 = 1; + a29 = 7; + a20 = 1; + a7 = 1; + a19 = 3; + a24 = 1; + return 21; + } else if((!(a11==1)&&((a14==9)&&((a19==1)&&(!(a20==1)&&(!(a0==1)&&((((((((a29==6)||(a29==7))&&(input==5))&&(a28==1))&&(a22==1))&&(a7==1))&&!(a25==1))&&!(a24==1)))))))){ + a19 = 4; + a7 = 0; + a29 = 8; + a14 = 8; + return -1; + } else if((((a28==1)&&((((((a29==9)&&(((!(a25==1)&&((input==4)&&(a0==1)))&&(a11==1))&&(a19==4)))&&(a14==9))&&(a22==1))&&!(a20==1))&&!(a7==1)))&&(a24==1))){ + a14 = 8; + a20 = 1; + a24 = 0; + a0 = 0; + a7 = 1; + return 21; + } else if(((((a19==4)&&((((a28==1)&&((a14==10)&&((a29==7)&&((a20==1)&&(((a24==1)&&(input==2))&&(a11==1))))))&&(a22==1))&&(a0==1)))&&!(a7==1))&&(a25==1))){ + a20 = 0; + a14 = 9; + a25 = 0; + a19 = 2; + return 23; + } else if((!(a25==1)&&((!(a0==1)&&(((!(a24==1)&&((((!(a11==1)&&((input==6)&&((a29==5)||(a29==6))))&&!(a7==1))&&(a19==5))&&!(a20==1)))&&(a28==1))&&(a22==1)))&&(a14==9)))){ + a19 = 3; + a11 = 1; + a29 = 6; + a24 = 1; + a25 = 1; + a20 = 1; + a0 = 1; + return 21; + } else if(((!(a24==1)&&((a7==1)&&((!(a20==1)&&((!(a11==1)&&(((a0==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==1))&&(a19==4)))&&!(a25==1)))&&(a22==1)))&&(a14==9))))&&(a28==1))){ + a25 = 1; + a11 = 1; + a29 = 5; + a24 = 1; + a19 = 3; + a20 = 1; + a7 = 0; + return 21; + } else if(((a22==1)&&((a11==1)&&(((((((!(a25==1)&&((((a29==5)&&(a19==3))||(((a19==2)&&(a29==8))||((a19==2)&&(a29==9))))&&(input==4)))&&(a0==1))&&!(a7==1))&&!(a20==1))&&(a28==1))&&!(a24==1))&&(a14==9))))){ + a29 = 5; + a11 = 0; + a19 = 4; + a14 = 8; + return 23; + } else if(((a7==1)&&((!(a24==1)&&((((a0==1)&&((a11==1)&&((((!(a25==1)&&(input==3))&&(a20==1))&&(a14==10))&&(a28==1))))&&(a22==1))&&(a29==8)))&&(a19==1)))){ + a20 = 0; + a7 = 0; + a14 = 9; + a29 = 5; + return 21; + } else if((((!(a20==1)&&((!(a7==1)&&((a28==1)&&(((a0==1)&&((input==4)&&(((a19==5)&&((a25==1)&&(a29==9)))||((a19==1)&&(!(a25==1)&&(a29==5))))))&&(a24==1))))&&(a22==1)))&&(a14==8))&&(a11==1))){ + a29 = 6; + a19 = 3; + a25 = 0; + a11 = 0; + return 23; + } else if(((a19==5)&&(!(a20==1)&&(!(a0==1)&&((a11==1)&&(((((a22==1)&&((a28==1)&&((((a29==6)||(a29==7))&&(input==1))&&!(a25==1))))&&!(a24==1))&&!(a7==1))&&(a14==9))))))){ + a19 = 3; + a14 = 8; + a29 = 7; + a11 = 0; + a25 = 1; + a0 = 1; + return 24; + } else if(((a14==9)&&((a28==1)&&((a29==7)&&((!(a7==1)&&((a22==1)&&((!(a11==1)&&(!(a24==1)&&(((input==4)&&(a19==2))&&!(a25==1))))&&(a0==1))))&&(a20==1)))))){ + a24 = 1; + a19 = 1; + a25 = 1; + a29 = 5; + a7 = 1; + a14 = 8; + a11 = 1; + return -1; + } else if(((a14==8)&&((a29==9)&&(!(a11==1)&&(!(a24==1)&&(((a22==1)&&(!(a7==1)&&(((((a28==1)&&(input==6))&&(a19==5))&&!(a20==1))&&!(a25==1))))&&!(a0==1))))))){ + a29 = 5; + a14 = 9; + a20 = 1; + a7 = 1; + return 23; + } else if((((a22==1)&&((a7==1)&&((a19==2)&&(((a29==5)&&(((a14==10)&&(((a25==1)&&(!(a24==1)&&(input==5)))&&(a0==1)))&&(a11==1)))&&(a28==1)))))&&(a20==1))){ + a29 = 8; + a24 = 1; + a19 = 4; + a14 = 8; + a25 = 0; + return -1; + } else if(((!(a24==1)&&(((((((((input==3)&&((((a29==8)&&(a19==2))||((a29==9)&&(a19==2)))||((a19==3)&&(a29==5))))&&!(a25==1))&&(a28==1))&&(a7==1))&&(a14==8))&&!(a11==1))&&(a20==1))&&(a0==1)))&&(a22==1))){ + a25 = 1; + a24 = 1; + a29 = 5; + a11 = 1; + a19 = 1; + return -1; + } else if((!(a11==1)&&((((a14==9)&&((a24==1)&&((a20==1)&&((a28==1)&&(((((((a25==1)&&(a29==8))&&(a19==5))||(((a25==1)&&(a29==9))&&(a19==5)))||((a19==1)&&((a29==5)&&!(a25==1))))&&(input==6))&&(a22==1))))))&&!(a0==1))&&!(a7==1)))){ + a25 = 0; + a14 = 8; + a29 = 5; + a24 = 0; + a20 = 0; + a11 = 1; + a19 = 1; + return -1; + } else if(((a25==1)&&((((a14==8)&&(((a0==1)&&(((a29==8)&&((!(a24==1)&&((a28==1)&&(input==6)))&&(a22==1)))&&!(a20==1)))&&(a19==5)))&&(a11==1))&&(a7==1)))){ + a19 = 1; + a0 = 0; + a7 = 0; + a29 = 6; + return 24; + } else if(((a19==4)&&((a25==1)&&((a14==9)&&(!(a7==1)&&((!(a11==1)&&(((a22==1)&&((a28==1)&&(((input==6)&&!(a20==1))&&(a24==1))))&&!(a0==1)))&&(a29==7))))))){ + a14 = 8; + a0 = 1; + a29 = 9; + a19 = 2; + a7 = 1; + a24 = 0; + a25 = 0; + return 24; + } else if((((a28==1)&&((a20==1)&&((a19==1)&&(!(a0==1)&&((a7==1)&&((a22==1)&&(!(a25==1)&&((((((a29==5)||(a29==6))||(a29==7))&&(input==1))&&!(a24==1))&&(a11==1)))))))))&&(a14==8))){ + a0 = 1; + a29 = 5; + a24 = 1; + a25 = 1; + return -1; + } else if((((a24==1)&&((a28==1)&&(((a7==1)&&(!(a0==1)&&((a14==8)&&(((!(a11==1)&&((input==5)&&(((a29==7)||(a29==8))||(a29==9))))&&(a20==1))&&(a19==4)))))&&(a22==1))))&&!(a25==1))){ + a29 = 5; + a14 = 9; + a11 = 1; + a24 = 0; + return 24; + } else if((((a22==1)&&(!(a20==1)&&((a0==1)&&((a28==1)&&((((!(a24==1)&&((((a19==3)&&(a29==6))||(((a29==9)&&(a19==2))||((a19==3)&&(a29==5))))&&(input==6)))&&(a7==1))&&!(a11==1))&&(a14==9))))))&&(a25==1))){ + a19 = 2; + a14 = 8; + a0 = 0; + a11 = 1; + a29 = 7; + a24 = 1; + a20 = 1; + return 23; + } else if(((a14==8)&&((a24==1)&&((!(a7==1)&&(((a28==1)&&(!(a25==1)&&((a22==1)&&((((input==1)&&!(a11==1))&&(a19==4))&&!(a20==1)))))&&(a0==1)))&&(a29==7))))){ + a11 = 1; + a14 = 9; + return 21; + } else if(((a24==1)&&((!(a20==1)&&(((a11==1)&&((a14==9)&&((a22==1)&&(((((input==3)&&((a29==5)||(a29==6)))&&(a19==4))&&(a7==1))&&(a28==1)))))&&(a0==1)))&&(a25==1)))){ + a20 = 1; + a7 = 0; + a0 = 0; + a29 = 9; + a11 = 0; + a24 = 0; + a14 = 8; + return 21; + } else if((((a0==1)&&(((((a19==2)&&(((!(a7==1)&&(!(a11==1)&&((input==4)&&((a29==8)||(a29==9)))))&&!(a24==1))&&!(a25==1)))&&(a14==8))&&(a28==1))&&(a22==1)))&&!(a20==1))){ + a7 = 1; + a29 = 8; + return -1; + } else if((((a22==1)&&(!(a20==1)&&((((a29==6)&&(!(a11==1)&&((a25==1)&&(!(a7==1)&&(((input==2)&&(a24==1))&&!(a0==1))))))&&(a28==1))&&(a19==1))))&&(a14==9))){ + a7 = 1; + a25 = 0; + a11 = 1; + a24 = 0; + a20 = 1; + a29 = 9; + return -1; + } else if((((a7==1)&&((a28==1)&&(((a19==5)&&((a29==5)&&((a22==1)&&(!(a11==1)&&((((a25==1)&&(input==4))&&(a20==1))&&(a14==9))))))&&(a24==1))))&&(a0==1))){ + a11 = 1; + a14 = 8; + a29 = 7; + a0 = 0; + a25 = 0; + a19 = 3; + return 21; + } else if(((a14==8)&&((a28==1)&&((a7==1)&&((a22==1)&&((a19==3)&&(((a0==1)&&((a24==1)&&((!(a25==1)&&((input==5)&&((a29==6)||(a29==7))))&&!(a11==1))))&&(a20==1)))))))){ + a25 = 1; + a0 = 0; + a24 = 0; + a19 = 5; + a29 = 7; + return 21; + } else if(((!(a0==1)&&(((!(a24==1)&&((!(a11==1)&&(((((((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))||((a29==6)&&(a19==2)))&&(input==3))&&(a22==1))&&(a28==1)))&&(a25==1)))&&(a14==9))&&!(a20==1)))&&!(a7==1))){ + a24 = 1; + a29 = 8; + a7 = 1; + a19 = 1; + a25 = 0; + a0 = 1; + return 21; + } else if(((a22==1)&&((((((a25==1)&&(((a0==1)&&((((input==2)&&((a29==8)||((a29==6)||(a29==7))))&&(a28==1))&&(a19==3)))&&(a24==1)))&&(a7==1))&&(a14==9))&&(a20==1))&&!(a11==1)))){ + a25 = 0; + a29 = 7; + return 24; + } else if(((a22==1)&&(!(a7==1)&&(!(a24==1)&&(!(a25==1)&&((a14==8)&&(!(a11==1)&&((a0==1)&&((a20==1)&&(((input==1)&&(((a29==6)&&(a19==2))||(((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))))&&(a28==1))))))))))){ + a11 = 1; + a7 = 1; + a25 = 1; + a29 = 5; + a19 = 1; + a24 = 1; + return -1; + } else if(((a14==8)&&((a28==1)&&((a22==1)&&(!(a7==1)&&((((!(a24==1)&&((a25==1)&&((input==1)&&(((a19==3)&&(a29==9))||((a19==4)&&(a29==5))))))&&(a0==1))&&!(a20==1))&&(a11==1))))))){ + a0 = 0; + a24 = 1; + a7 = 1; + a19 = 4; + a29 = 9; + return 24; + } else if(((a22==1)&&(((((a14==8)&&(((a11==1)&&((((a25==1)&&((input==6)&&((a29==5)||(a29==6))))&&!(a7==1))&&!(a0==1)))&&(a19==1)))&&!(a20==1))&&!(a24==1))&&(a28==1)))){ + a24 = 1; + a29 = 5; + a7 = 1; + a20 = 1; + a0 = 1; + return -1; + } else if(((!(a20==1)&&(((!(a25==1)&&((a22==1)&&((a24==1)&&(((a11==1)&&((input==2)&&(((a29==6)&&(a19==3))||(((a29==9)&&(a19==2))||((a19==3)&&(a29==5))))))&&(a14==9)))))&&!(a7==1))&&!(a0==1)))&&(a28==1))){ + a14 = 8; + a29 = 8; + a19 = 2; + return -1; + } else if(((a25==1)&&(((((a28==1)&&(((a20==1)&&((a7==1)&&((!(a0==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==2)))&&(a14==8))))&&!(a11==1)))&&!(a24==1))&&(a19==2))&&(a22==1)))){ + a19 = 3; + a29 = 9; + a25 = 0; + a20 = 0; + a0 = 1; + return -1; + } else if(((a28==1)&&(!(a24==1)&&((a7==1)&&(((a0==1)&&(((a22==1)&&(!(a11==1)&&(((input==5)&&((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))||((a29==6)&&(a19==3))))&&(a25==1))))&&!(a20==1)))&&(a14==9)))))){ + a24 = 1; + a25 = 0; + a29 = 9; + a14 = 8; + a19 = 3; + a0 = 0; + return -1; + } else if((((((a0==1)&&((a19==3)&&(((a28==1)&&((a29==9)&&((((input==2)&&!(a25==1))&&!(a7==1))&&!(a24==1))))&&(a14==9))))&&!(a11==1))&&!(a20==1))&&(a22==1))){ + a19 = 1; + a14 = 8; + a7 = 1; + a11 = 1; + a25 = 1; + a24 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if(((!(a25==1)&&(((!(a20==1)&&(((((a14==9)&&((a29==7)&&((a24==1)&&(input==4))))&&(a7==1))&&!(a0==1))&&(a19==2)))&&!(a11==1))&&(a28==1)))&&(a22==1))){ + a29 = 5; + a20 = 1; + a0 = 1; + a19 = 1; + return -1; + } else if(((a7==1)&&((a28==1)&&(!(a20==1)&&((a0==1)&&(((a24==1)&&(((a25==1)&&(!(a11==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==1))&&(a14==9))))&&(a19==4)))&&(a22==1))))))){ + a20 = 1; + a19 = 1; + a11 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if(((!(a20==1)&&((((a19==5)&&((!(a7==1)&&((a22==1)&&((a11==1)&&(((input==4)&&(((a29==5)||(a29==6))||(a29==7)))&&!(a0==1)))))&&(a14==8)))&&(a28==1))&&!(a25==1)))&&!(a24==1))){ + a7 = 1; + a20 = 1; + a29 = 5; + a0 = 1; + a19 = 1; + a24 = 1; + a25 = 1; + return -1; + } else if(((a20==1)&&((a25==1)&&((!(a11==1)&&((a22==1)&&(((a24==1)&&((((input==2)&&(((a19==2)&&(a29==9))||((a29==5)&&(a19==3))))&&(a7==1))&&(a14==9)))&&(a28==1))))&&!(a0==1))))){ + a0 = 1; + a11 = 1; + a25 = 0; + a29 = 9; + a19 = 2; + return 23; + } else if((!(a25==1)&&((!(a0==1)&&((a14==9)&&(((a22==1)&&((a28==1)&&(((((((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))||((a29==6)&&(a19==2)))&&(input==2))&&!(a7==1))&&!(a24==1))))&&(a11==1))))&&(a20==1)))){ + a14 = 8; + a29 = 9; + a25 = 1; + a24 = 1; + a19 = 1; + a7 = 1; + return 21; + } else if((!(a24==1)&&((a20==1)&&(((a19==5)&&(!(a7==1)&&((a28==1)&&((a11==1)&&(!(a0==1)&&(((a29==6)&&((a14==8)&&(input==4)))&&(a22==1)))))))&&(a25==1))))){ + a7 = 1; + a19 = 2; + a24 = 1; + a11 = 0; + a14 = 9; + a0 = 1; + a20 = 0; + return 23; + } else if(((a28==1)&&((a29==5)&&((a24==1)&&((a25==1)&&((((((a19==5)&&(!(a0==1)&&((input==4)&&(a22==1))))&&(a11==1))&&(a20==1))&&!(a7==1))&&(a14==8))))))){ + a0 = 1; + a7 = 1; + a19 = 1; + return -1; + } else if(((((a22==1)&&(((a19==1)&&((a14==9)&&(!(a24==1)&&((((a25==1)&&((input==1)&&((a29==6)||(a29==7))))&&!(a20==1))&&(a7==1)))))&&!(a0==1)))&&!(a11==1))&&(a28==1))){ + a14 = 8; + a29 = 5; + a11 = 1; + a24 = 1; + a0 = 1; + a20 = 1; + return -1; + } else if(((((((((!(a20==1)&&(!(a24==1)&&(((a28==1)&&(input==4))&&(a19==1))))&&!(a25==1))&&!(a11==1))&&(a7==1))&&(a22==1))&&(a14==8))&&!(a0==1))&&(a29==5))){ + a24 = 1; + a19 = 3; + a29 = 8; + a11 = 1; + return 23; + } else if((!(a0==1)&&((((a29==5)&&(!(a7==1)&&((a24==1)&&((a28==1)&&(((((a19==3)&&(input==2))&&(a14==9))&&(a11==1))&&(a22==1))))))&&(a25==1))&&(a20==1)))){ + a14 = 8; + a25 = 0; + a19 = 5; + a20 = 0; + return 21; + } else if(((!(a0==1)&&((a14==8)&&((((a19==5)&&(((!(a25==1)&&((a20==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==1))))&&(a24==1))&&(a28==1)))&&(a7==1))&&!(a11==1))))&&(a22==1))){ + a11 = 1; + a29 = 5; + a19 = 1; + a25 = 1; + a0 = 1; + return -1; + } else if(((((a20==1)&&(((a14==8)&&((((a22==1)&&((((input==5)&&((a29==9)||((a29==7)||(a29==8))))&&(a24==1))&&!(a0==1)))&&!(a7==1))&&!(a25==1)))&&(a19==5)))&&(a11==1))&&(a28==1))){ + a20 = 0; + a19 = 4; + a7 = 1; + a29 = 6; + return 24; + } else if(((a0==1)&&(((a14==9)&&((a28==1)&&((a24==1)&&(!(a25==1)&&(((a29==8)&&((a20==1)&&(((a11==1)&&(input==6))&&(a22==1))))&&!(a7==1))))))&&(a19==1)))){ + a19 = 3; + a11 = 0; + a14 = 8; + a29 = 9; + a20 = 0; + a24 = 0; + return 23; + } else if((!(a0==1)&&(((a11==1)&&(((((((!(a20==1)&&((input==5)&&(a14==8)))&&(a29==5))&&(a25==1))&&(a28==1))&&(a7==1))&&!(a24==1))&&(a19==3)))&&(a22==1)))){ + a19 = 2; + a29 = 8; + a0 = 1; + a11 = 0; + a25 = 0; + return 21; + } else if((((((a0==1)&&(((a24==1)&&(!(a25==1)&&((a14==10)&&((a28==1)&&(((a29==5)&&(input==5))&&(a7==1))))))&&(a19==1)))&&(a22==1))&&(a11==1))&&!(a20==1))){ + a11 = 0; + a19 = 2; + a20 = 1; + a14 = 8; + a29 = 6; + a24 = 0; + a7 = 0; + a0 = 0; + return 24; + } else if((((((!(a11==1)&&((((a28==1)&&((a24==1)&&(!(a20==1)&&(((a29==6)||(a29==7))&&(input==2)))))&&!(a25==1))&&(a14==9)))&&!(a7==1))&&(a22==1))&&(a19==2))&&(a0==1))){ + a7 = 1; + a11 = 1; + a29 = 6; + a19 = 1; + a0 = 0; + a14 = 8; + a24 = 0; + return -1; + } else if(((((((!(a25==1)&&((((a22==1)&&(((input==5)&&((a29==5)||(a29==6)))&&(a28==1)))&&(a19==5))&&(a14==9)))&&!(a0==1))&&!(a11==1))&&!(a20==1))&&!(a7==1))&&!(a24==1))){ + a0 = 1; + a24 = 1; + a11 = 1; + a20 = 1; + a29 = 5; + a14 = 8; + a25 = 1; + a7 = 1; + a19 = 1; + return -1; + } else if((!(a24==1)&&((a19==5)&&((((a28==1)&&(!(a0==1)&&(!(a7==1)&&(((a22==1)&&(((input==1)&&((a29==6)||(a29==7)))&&!(a11==1)))&&!(a25==1)))))&&(a14==8))&&!(a20==1))))){ + a11 = 1; + a24 = 1; + a7 = 1; + a29 = 7; + a25 = 1; + return 23; + } else if((((a0==1)&&(((a22==1)&&((((a19==3)&&((a14==8)&&((a28==1)&&((a7==1)&&((input==4)&&(((a29==6)||(a29==7))||(a29==8)))))))&&!(a25==1))&&(a11==1)))&&(a20==1)))&&!(a24==1))){ + a29 = 5; + a24 = 1; + a19 = 4; + a0 = 0; + return 21; + } else if(((a14==9)&&((!(a0==1)&&((a28==1)&&((a25==1)&&((a11==1)&&(!(a7==1)&&((((a20==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==2)))&&(a19==3))&&(a24==1)))))))&&(a22==1)))){ + a19 = 1; + a0 = 1; + a14 = 8; + a7 = 1; + a29 = 5; + return -1; + } else if((((a11==1)&&((a22==1)&&(!(a24==1)&&((a28==1)&&(((((a25==1)&&(((input==5)&&((a29==5)||(a29==6)))&&!(a0==1)))&&(a7==1))&&(a19==5))&&(a20==1))))))&&(a14==8))){ + a29 = 5; + a19 = 1; + a0 = 1; + a24 = 1; + return -1; + } else if(((a28==1)&&((((a14==9)&&(((((((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))&&(input==4))&&(a0==1))&&(a22==1))&&!(a7==1))&&!(a11==1))&&!(a20==1)))&&!(a24==1))&&!(a25==1)))){ + a29 = 8; + a14 = 8; + a24 = 1; + a7 = 1; + a0 = 0; + a11 = 1; + a19 = 3; + a25 = 1; + return 24; + } else if(((!(a0==1)&&((((a7==1)&&(!(a20==1)&&((a28==1)&&(!(a25==1)&&((a11==1)&&((input==5)&&((((a29==8)&&(a19==4))||((a19==4)&&(a29==9)))||((a29==5)&&(a19==5)))))))))&&(a14==9))&&(a24==1)))&&(a22==1))){ + a29 = 5; + a14 = 8; + a19 = 1; + a20 = 1; + a25 = 1; + a0 = 1; + return -1; + } else if(((a11==1)&&((a19==1)&&(!(a0==1)&&((((a28==1)&&(((a7==1)&&(((a24==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==6)))&&(a22==1)))&&(a20==1)))&&(a25==1))&&(a14==8)))))){ + a25 = 0; + a7 = 0; + a19 = 3; + a24 = 0; + a0 = 1; + a20 = 0; + a29 = 5; + a11 = 0; + return -1; + } else if((!(a0==1)&&((a28==1)&&(((!(a11==1)&&((input==3)&&((((a19==5)&&((!(a25==1)&&((!(a20==1)&&!(a7==1))&&(a24==1)))&&(a29==8)))||(((a29==9)&&(((!(a20==1)&&!(a7==1))&&(a24==1))&&!(a25==1)))&&(a19==5)))||((a19==1)&&(((a25==1)&&(((a7==1)&&(a20==1))&&!(a24==1)))&&(a29==5))))))&&(a14==8))&&(a22==1))))){ + a19 = 1; + a29 = 8; + a0 = 1; + a14 = 9; + a7 = 0; + a24 = 1; + a20 = 1; + a25 = 0; + return 21; + } else if(((a28==1)&&(((a20==1)&&(((a22==1)&&((a11==1)&&((((a25==1)&&(((a0==1)&&(input==2))&&!(a7==1)))&&(a14==9))&&(a29==8))))&&!(a24==1)))&&(a19==2)))){ + a20 = 0; + a14 = 8; + a11 = 0; + a7 = 1; + a19 = 1; + a0 = 0; + a25 = 0; + return 24; + } else if(((a0==1)&&((((a14==10)&&((a11==1)&&(((a20==1)&&((a7==1)&&((input==5)&&(((a19==5)&&((a29==9)&&(a25==1)))||((a19==1)&&(!(a25==1)&&(a29==5)))))))&&(a28==1))))&&(a24==1))&&(a22==1)))){ + a25 = 1; + a29 = 8; + a19 = 3; + a14 = 8; + a0 = 0; + return 21; + } else if((((a28==1)&&(!(a11==1)&&((a14==9)&&((a19==1)&&(!(a0==1)&&(!(a7==1)&&((a22==1)&&(((a25==1)&&((a24==1)&&(input==3)))&&(a29==7)))))))))&&!(a20==1))){ + a11 = 1; + a14 = 8; + a20 = 1; + a7 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if(((a14==9)&&((a25==1)&&(((a19==5)&&((!(a0==1)&&((a11==1)&&((a28==1)&&(!(a24==1)&&(!(a7==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==2)))))))&&(a22==1)))&&(a20==1))))){ + a7 = 1; + a24 = 1; + a19 = 4; + a14 = 8; + a29 = 6; + a25 = 0; + return 21; + } else if(((!(a11==1)&&(((a19==3)&&((a22==1)&&((a20==1)&&(((a0==1)&&((a28==1)&&((a7==1)&&((input==5)&&(a24==1)))))&&(a29==8)))))&&!(a25==1)))&&(a14==8))){ + a0 = 0; + a24 = 0; + a19 = 2; + return 23; + } else if(((a20==1)&&(((((((!(a7==1)&&((a0==1)&&(((input==6)&&!(a24==1))&&(a25==1))))&&(a14==9))&&(a19==1))&&(a22==1))&&(a29==5))&&(a11==1))&&(a28==1)))){ + a14 = 8; + a24 = 1; + a7 = 1; + return -1; + } else if((((a25==1)&&(((a7==1)&&(((((a0==1)&&((a22==1)&&((((a29==8)||(a29==9))&&(input==4))&&(a19==1))))&&(a28==1))&&!(a11==1))&&(a14==9)))&&!(a20==1)))&&!(a24==1))){ + a29 = 6; + a25 = 0; + a7 = 0; + a11 = 1; + a20 = 1; + a19 = 5; + return -1; + } else if(((a28==1)&&((a24==1)&&((a19==2)&&((a20==1)&&(((!(a7==1)&&(((a14==10)&&((a22==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==6))))&&(a11==1)))&&(a0==1))&&(a25==1))))))){ + a14 = 8; + a7 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((((((((a19==4)&&((((a11==1)&&((input==3)&&(a24==1)))&&(a29==5))&&!(a7==1)))&&!(a0==1))&&!(a20==1))&&!(a25==1))&&(a14==8))&&(a22==1))&&(a28==1))){ + a14 = 9; + a0 = 1; + a24 = 0; + a25 = 1; + a11 = 0; + a29 = 9; + return 24; + } else if((((a14==8)&&(!(a20==1)&&(!(a25==1)&&(((a28==1)&&((!(a24==1)&&((a22==1)&&(((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))||((a29==6)&&(a19==4)))&&(input==6))))&&(a11==1)))&&!(a7==1)))))&&!(a0==1))){ + a19 = 4; + a24 = 1; + a29 = 5; + a25 = 1; + a20 = 1; + return 24; + } else if((((a19==2)&&((a24==1)&&(!(a20==1)&&(!(a0==1)&&((((a14==9)&&(!(a7==1)&&((a28==1)&&((input==3)&&((a29==7)||((a29==5)||(a29==6)))))))&&(a25==1))&&(a22==1))))))&&(a11==1))){ + a20 = 1; + a29 = 9; + a14 = 8; + a19 = 3; + a7 = 1; + return 23; + } else if(((((a28==1)&&((a19==5)&&(((((!(a25==1)&&(((input==1)&&(((a29==7)||(a29==8))||(a29==9)))&&(a7==1)))&&(a0==1))&&!(a24==1))&&(a14==8))&&!(a11==1))))&&(a22==1))&&!(a20==1))){ + a29 = 5; + a24 = 1; + a19 = 2; + a14 = 9; + return 24; + } else if(((a29==6)&&(!(a0==1)&&(((!(a11==1)&&((a25==1)&&((a20==1)&&(((((a19==1)&&(input==5))&&(a22==1))&&(a28==1))&&!(a7==1)))))&&!(a24==1))&&(a14==9))))){ + a19 = 3; + a14 = 8; + a29 = 7; + a11 = 1; + a25 = 0; + return -1; + } else if((!(a0==1)&&((((!(a7==1)&&((a14==9)&&((!(a20==1)&&(((input==6)&&((((a19==3)&&(a29==8))||((a29==9)&&(a19==3)))||((a19==4)&&(a29==5))))&&(a28==1)))&&!(a11==1))))&&(a25==1))&&(a22==1))&&!(a24==1)))){ + a29 = 6; + a7 = 1; + a19 = 4; + a0 = 1; + return 24; + } else if((((a22==1)&&(!(a7==1)&&(((!(a0==1)&&((a28==1)&&(((input==2)&&((((a29==9)&&(a25==1))&&(a19==5))||((!(a25==1)&&(a29==5))&&(a19==1))))&&(a11==1))))&&(a20==1))&&(a14==9))))&&!(a24==1))){ + a19 = 3; + a25 = 1; + a29 = 8; + a0 = 1; + return 24; + } else if(((a28==1)&&(!(a0==1)&&((a19==5)&&((a14==9)&&(((!(a25==1)&&(!(a20==1)&&((((input==5)&&((a29==8)||((a29==6)||(a29==7))))&&(a24==1))&&!(a7==1))))&&!(a11==1))&&(a22==1))))))){ + a19 = 1; + a11 = 1; + a20 = 1; + a29 = 6; + a7 = 1; + return -1; + } else if(((((((a22==1)&&((a25==1)&&(((!(a20==1)&&((((a29==6)||(a29==7))&&(input==6))&&(a19==1)))&&(a28==1))&&(a14==8))))&&(a24==1))&&!(a7==1))&&(a0==1))&&!(a11==1))){ + a7 = 1; + a20 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if((!(a11==1)&&(((a28==1)&&(((((a7==1)&&(!(a24==1)&&((!(a0==1)&&(((a29==8)||(a29==9))&&(input==4)))&&(a14==8))))&&!(a20==1))&&(a25==1))&&(a19==5)))&&(a22==1)))){ + a25 = 0; + a29 = 9; + a14 = 9; + a24 = 1; + return 23; + } else if(((a0==1)&&((a28==1)&&((!(a7==1)&&((a20==1)&&((((a24==1)&&((a11==1)&&((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))&&(input==2))))&&(a14==10))&&!(a25==1))))&&(a22==1))))){ + a24 = 0; + a14 = 8; + a29 = 8; + a7 = 1; + a11 = 0; + a20 = 0; + a19 = 2; + return 23; + } else if(((a22==1)&&(!(a11==1)&&((a7==1)&&((a28==1)&&((a14==8)&&(((a19==5)&&(((a24==1)&&((a25==1)&&((input==1)&&((a29==5)||(a29==6)))))&&!(a20==1)))&&(a0==1)))))))){ + a19 = 2; + a24 = 0; + a25 = 0; + a29 = 9; + return 24; + } else if((((a25==1)&&(((a19==1)&&((((a29==6)&&(((a7==1)&&(((input==6)&&(a11==1))&&(a22==1)))&&(a28==1)))&&(a20==1))&&!(a24==1)))&&!(a0==1)))&&(a14==9))){ + a11 = 0; + a0 = 1; + a29 = 9; + a25 = 0; + a20 = 0; + a24 = 1; + a19 = 3; + a7 = 0; + return -1; + } else if(((!(a0==1)&&(((((a22==1)&&(!(a20==1)&&(((!(a7==1)&&((input==6)&&((a29==7)||(a29==8))))&&!(a25==1))&&!(a24==1))))&&(a28==1))&&(a19==3))&&(a14==8)))&&(a11==1))){ + a11 = 0; + a20 = 1; + a29 = 9; + a7 = 1; + a19 = 2; + a25 = 1; + return 21; + } else if(((a25==1)&&((((((a22==1)&&(((((input==4)&&(((a29==9)&&(a19==3))||((a19==4)&&(a29==5))))&&!(a0==1))&&!(a20==1))&&(a7==1)))&&(a11==1))&&(a14==9))&&(a28==1))&&(a24==1)))){ + a19 = 3; + a25 = 0; + a14 = 8; + a29 = 7; + a11 = 0; + a0 = 1; + a7 = 0; + a24 = 0; + return -1; + } else if((((((((((((a14==9)&&((input==2)&&((a29==8)||(a29==9))))&&(a19==5))&&(a20==1))&&(a25==1))&&(a7==1))&&!(a24==1))&&(a22==1))&&(a28==1))&&!(a11==1))&&!(a0==1))){ + a20 = 0; + a19 = 2; + a11 = 1; + a25 = 0; + a24 = 1; + a29 = 7; + a7 = 0; + a14 = 8; + return -1; + } else if(((!(a25==1)&&((a24==1)&&(((!(a20==1)&&((a11==1)&&(((a28==1)&&(((input==2)&&(a14==8))&&(a19==2)))&&(a22==1))))&&(a0==1))&&(a29==8))))&&(a7==1))){ + a24 = 0; + a19 = 3; + a7 = 0; + return 23; + } else if(((((a28==1)&&((a19==4)&&((!(a11==1)&&((((a7==1)&&(((input==3)&&((a29==7)||(a29==8)))&&!(a20==1)))&&(a0==1))&&(a22==1)))&&(a14==8))))&&!(a24==1))&&(a25==1))){ + a19 = 3; + a24 = 1; + a20 = 1; + a7 = 0; + a14 = 9; + a29 = 8; + return 24; + } else if(((((((a14==8)&&((a22==1)&&(!(a7==1)&&(((a19==3)&&(((a28==1)&&(input==6))&&!(a20==1)))&&(a29==5)))))&&!(a11==1))&&(a25==1))&&!(a24==1))&&!(a0==1))){ + a19 = 5; + a25 = 0; + a0 = 1; + return 24; + } else if(((((((a19==5)&&((a28==1)&&(!(a25==1)&&(((a22==1)&&(((a14==8)&&(input==3))&&(a29==7)))&&!(a24==1)))))&&(a0==1))&&!(a7==1))&&(a11==1))&&(a20==1))){ + a0 = 0; + a19 = 1; + return 24; + } else if((!(a11==1)&&((!(a7==1)&&((!(a0==1)&&((a20==1)&&((((a28==1)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==1))&&!(a25==1)))&&(a14==8))&&(a22==1))))&&(a24==1)))&&(a19==1)))){ + a29 = 5; + a25 = 1; + a11 = 1; + a19 = 5; + return 23; + } else if(((!(a24==1)&&((a14==8)&&(((((a20==1)&&(!(a0==1)&&((a19==1)&&((((a29==8)||(a29==9))&&(input==2))&&(a11==1)))))&&(a22==1))&&(a25==1))&&!(a7==1))))&&(a28==1))){ + a24 = 1; + a29 = 5; + a7 = 1; + a19 = 2; + return 23; + } else if((!(a7==1)&&(((!(a20==1)&&((!(a25==1)&&(((a29==5)&&((a22==1)&&((!(a24==1)&&(input==1))&&(a14==8))))&&(a11==1)))&&(a0==1)))&&(a28==1))&&(a19==4)))){ + a29 = 6; + a25 = 1; + a24 = 1; + a19 = 1; + a11 = 0; + a7 = 1; + a0 = 0; + return 24; + } else if(((a24==1)&&(((a28==1)&&((a20==1)&&((((a22==1)&&((a19==1)&&((!(a25==1)&&((input==2)&&((a29==8)||(a29==9))))&&(a0==1))))&&(a7==1))&&!(a11==1))))&&(a14==8)))){ + a20 = 0; + a7 = 0; + a29 = 7; + a19 = 5; + a0 = 0; + return 24; + } else if(((((a22==1)&&(!(a7==1)&&(!(a25==1)&&(!(a20==1)&&((a28==1)&&(((a14==9)&&((input==1)&&((((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))||((a29==6)&&(a19==2)))))&&!(a0==1)))))))&&!(a11==1))&&!(a24==1))){ + a14 = 8; + a29 = 9; + a19 = 1; + return -1; + } else if(((a19==3)&&((a28==1)&&(!(a11==1)&&((!(a0==1)&&((!(a24==1)&&(!(a25==1)&&((a7==1)&&(((input==2)&&(a22==1))&&!(a20==1)))))&&(a14==8)))&&(a29==5)))))){ + a0 = 1; + a19 = 4; + return 24; + } else if((((a19==5)&&((a22==1)&&(((a14==9)&&((a28==1)&&((a0==1)&&((a25==1)&&((a7==1)&&((((a29==6)||(a29==7))&&(input==4))&&!(a24==1)))))))&&!(a11==1))))&&(a20==1))){ + a19 = 1; + a29 = 8; + a14 = 8; + a7 = 0; + a0 = 0; + a11 = 1; + return 21; + } else if(((a0==1)&&((((a29==8)&&((a24==1)&&(((a28==1)&&(((!(a20==1)&&((a19==5)&&(input==3)))&&(a25==1))&&(a11==1)))&&!(a7==1))))&&(a22==1))&&(a14==8)))){ + a29 = 7; + a11 = 0; + return 23; + } else if(((((a7==1)&&((((((!(a0==1)&&((a22==1)&&((input==1)&&((a29==5)||(a29==6)))))&&(a28==1))&&(a19==5))&&(a20==1))&&!(a25==1))&&!(a24==1)))&&(a14==9))&&!(a11==1))){ + a20 = 0; + a19 = 4; + a0 = 1; + a29 = 6; + return -1; + } else if(((((a0==1)&&(!(a25==1)&&((a14==9)&&((a29==6)&&(((a7==1)&&((((a28==1)&&(input==4))&&!(a24==1))&&!(a20==1)))&&!(a11==1))))))&&(a22==1))&&(a19==3))){ + a19 = 1; + a20 = 1; + a25 = 1; + a14 = 8; + a11 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if(((a0==1)&&(!(a25==1)&&(((((a19==4)&&((((((a28==1)&&(input==6))&&!(a24==1))&&!(a7==1))&&!(a20==1))&&(a11==1)))&&(a22==1))&&(a29==5))&&(a14==8))))){ + a29 = 8; + a24 = 1; + a0 = 0; + a20 = 1; + a11 = 0; + a19 = 5; + return 24; + } else if(((a24==1)&&((a14==8)&&((a22==1)&&((a28==1)&&((((!(a20==1)&&(((((a29==5)&&(a19==3))||(((a19==2)&&(a29==8))||((a29==9)&&(a19==2))))&&(input==5))&&!(a25==1)))&&(a7==1))&&!(a0==1))&&(a11==1))))))){ + a29 = 5; + a19 = 3; + a7 = 0; + a25 = 1; + return 24; + } else if(((a14==9)&&(!(a0==1)&&(!(a24==1)&&(((((a22==1)&&(((!(a20==1)&&((input==2)&&(a29==8)))&&(a25==1))&&(a11==1)))&&(a28==1))&&(a19==3))&&!(a7==1)))))){ + a14 = 8; + a19 = 4; + a29 = 6; + a24 = 1; + a20 = 1; + return 24; + } else if((!(a24==1)&&((((a28==1)&&(((((!(a0==1)&&((((a29==6)&&(a19==2))||(((a19==1)&&(a29==9))||((a29==5)&&(a19==2))))&&(input==3)))&&!(a11==1))&&!(a7==1))&&(a20==1))&&(a14==8)))&&(a25==1))&&(a22==1)))){ + a24 = 1; + a19 = 1; + a7 = 1; + a29 = 5; + a11 = 1; + a0 = 1; + return -1; + } else if((!(a24==1)&&(!(a25==1)&&((a22==1)&&((a28==1)&&((a20==1)&&((!(a0==1)&&((a14==8)&&(!(a7==1)&&(!(a11==1)&&(((a29==6)||(a29==7))&&(input==6))))))&&(a19==1)))))))){ + a20 = 0; + a11 = 1; + a29 = 5; + a19 = 4; + a24 = 1; + return 21; + } else if(((((!(a24==1)&&(((a25==1)&&((a14==9)&&((a7==1)&&(!(a20==1)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==4))&&(a22==1))))))&&(a19==2)))&&(a28==1))&&!(a11==1))&&!(a0==1))){ + a14 = 8; + a29 = 8; + a19 = 1; + return 24; + } else if(((((!(a25==1)&&((a14==8)&&(!(a11==1)&&((a0==1)&&((a7==1)&&(((input==1)&&((((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))||((a19==3)&&(a29==5))))&&!(a20==1)))))))&&(a22==1))&&(a24==1))&&(a28==1))){ + a19 = 1; + a25 = 1; + a29 = 5; + a20 = 1; + a11 = 1; + return -1; + } return calculate_output40(input); + } + + int calculate_output40(int input) { + if((!(a24==1)&&(((((!(a25==1)&&(((!(a0==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==6))&&(a7==1)))&&(a14==9))&&(a20==1)))&&(a28==1))&&(a19==4))&&(a22==1))&&!(a11==1)))){ + a14 = 8; + a11 = 1; + a25 = 1; + a0 = 1; + a24 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if((((a19==3)&&(((a29==7)&&((a7==1)&&(!(a20==1)&&((a22==1)&&(!(a25==1)&&((a0==1)&&(((input==2)&&!(a24==1))&&(a28==1))))))))&&(a11==1)))&&(a14==8))){ + a24 = 1; + a29 = 5; + a25 = 1; + a20 = 1; + a19 = 1; + return -1; + } else if((!(a11==1)&&(((a25==1)&&(!(a20==1)&&((a24==1)&&((a0==1)&&((a19==4)&&((a22==1)&&((a7==1)&&(((input==5)&&((a29==5)||(a29==6)))&&(a14==9)))))))))&&(a28==1)))){ + a20 = 1; + a19 = 1; + a29 = 5; + a14 = 8; + a11 = 1; + return -1; + } else if(((a11==1)&&(((a22==1)&&((a29==8)&&(((((!(a7==1)&&((a25==1)&&((a24==1)&&(input==2))))&&(a19==1))&&(a28==1))&&(a0==1))&&(a14==9))))&&(a20==1)))){ + a14 = 8; + a7 = 1; + a11 = 0; + a0 = 0; + a25 = 0; + a19 = 5; + return -1; + } else if(((a19==5)&&((((!(a20==1)&&(!(a24==1)&&(((a22==1)&&((a7==1)&&(((input==4)&&((a29==6)||(a29==7)))&&(a14==8))))&&(a28==1))))&&(a0==1))&&(a25==1))&&(a11==1)))){ + a25 = 0; + a0 = 0; + a29 = 6; + return 21; + } else if((((((a22==1)&&((((a20==1)&&((!(a24==1)&&(((input==3)&&(a28==1))&&(a29==5)))&&!(a11==1)))&&(a19==3))&&(a7==1)))&&!(a25==1))&&(a14==9))&&!(a0==1))){ + a11 = 1; + a19 = 1; + a25 = 1; + a14 = 8; + a24 = 1; + a0 = 1; + return -1; + } else if(((a28==1)&&(((!(a25==1)&&((!(a0==1)&&(((((a14==8)&&((input==1)&&((a29==8)||(a29==9))))&&!(a20==1))&&(a22==1))&&(a19==3)))&&(a7==1)))&&(a24==1))&&!(a11==1)))){ + a24 = 0; + a20 = 1; + a11 = 1; + a29 = 5; + return 24; + } else if((((a20==1)&&((!(a0==1)&&((!(a11==1)&&((a14==9)&&((input==3)&&((((a29==9)&&((a7==1)&&!(a25==1)))&&(a19==5))||((a19==1)&&((a29==5)&&((a25==1)&&!(a7==1))))))))&&!(a24==1)))&&(a28==1)))&&(a22==1))){ + a29 = 7; + a11 = 1; + a19 = 3; + a25 = 1; + a7 = 0; + a20 = 0; + return -1; + } else if((((a7==1)&&((((a19==2)&&((a24==1)&&(((a28==1)&&((!(a11==1)&&(((a29==8)||(a29==9))&&(input==4)))&&(a22==1)))&&!(a25==1))))&&(a14==8))&&(a20==1)))&&!(a0==1))){ + a19 = 5; + a7 = 0; + a11 = 1; + a20 = 0; + a29 = 8; + return -1; + } else if((((a25==1)&&((!(a20==1)&&((a14==8)&&((!(a11==1)&&((!(a24==1)&&((input==5)&&(((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))))&&(a22==1)))&&(a0==1))))&&(a7==1)))&&(a28==1))){ + a20 = 1; + a29 = 6; + a24 = 1; + a19 = 5; + a7 = 0; + a14 = 9; + return 24; + } else if(((a28==1)&&(!(a0==1)&&((a22==1)&&((a11==1)&&((((a25==1)&&((!(a20==1)&&(!(a24==1)&&(((a29==6)||(a29==7))&&(input==3))))&&(a14==9)))&&(a19==2))&&(a7==1))))))){ + a29 = 8; + a14 = 8; + a19 = 5; + a7 = 0; + a11 = 0; + return 24; + } else if(((a28==1)&&(!(a7==1)&&(((a24==1)&&(((((!(a0==1)&&(((input==1)&&((a29==7)||(a29==8)))&&(a11==1)))&&(a20==1))&&(a25==1))&&(a19==3))&&(a14==8)))&&(a22==1))))){ + a29 = 5; + a0 = 1; + a7 = 1; + a19 = 1; + return -1; + } else if((((!(a0==1)&&((!(a7==1)&&((a28==1)&&(!(a25==1)&&((((((a19==2)&&(a29==6))||(((a19==1)&&(a29==9))||((a29==5)&&(a19==2))))&&(input==5))&&(a20==1))&&(a22==1)))))&&(a24==1)))&&(a14==8))&&(a11==1))){ + a0 = 1; + a25 = 1; + a19 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if(((a22==1)&&((((a19==3)&&(((((a25==1)&&((((a11==1)&&(input==2))&&!(a20==1))&&(a29==8)))&&(a14==8))&&(a0==1))&&(a24==1)))&&(a7==1))&&(a28==1)))){ + a24 = 0; + a29 = 5; + a19 = 1; + return 23; + } else if((((a19==3)&&((!(a20==1)&&(((!(a0==1)&&((a25==1)&&(((a29==7)&&((input==6)&&(a14==8)))&&(a22==1))))&&(a28==1))&&(a7==1)))&&!(a11==1)))&&(a24==1))){ + a11 = 1; + a29 = 8; + a25 = 0; + a19 = 1; + return 23; + } else if((!(a25==1)&&(((((a11==1)&&((a24==1)&&(!(a7==1)&&((a20==1)&&((a28==1)&&(((input==6)&&(a22==1))&&(a0==1)))))))&&(a14==8))&&(a19==1))&&(a29==9)))){ + a25 = 1; + a20 = 0; + a29 = 8; + return 21; + } else if(((a25==1)&&(!(a24==1)&&(((a28==1)&&((a11==1)&&(((((((((a19==1)&&(a29==8))||((a19==1)&&(a29==9)))||((a19==2)&&(a29==5)))&&(input==6))&&(a7==1))&&(a0==1))&&(a14==9))&&(a20==1))))&&(a22==1))))){ + a25 = 0; + a19 = 2; + a11 = 0; + a20 = 0; + a14 = 8; + a29 = 8; + return 21; + } else if(((a14==9)&&(!(a0==1)&&(!(a20==1)&&(((a22==1)&&((((((a19==1)&&(((a25==1)&&!(a7==1))&&(a29==5)))||((((a29==8)&&(!(a25==1)&&(a7==1)))&&(a19==5))||(((a29==9)&&((a7==1)&&!(a25==1)))&&(a19==5))))&&(input==4))&&!(a24==1))&&(a11==1)))&&(a28==1)))))){ + a25 = 0; + a19 = 3; + a11 = 0; + a7 = 1; + a29 = 7; + a14 = 8; + return 23; + } else if(((a11==1)&&((a25==1)&&((a28==1)&&((a22==1)&&((!(a0==1)&&((((a24==1)&&((input==6)&&(((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))))&&(a14==8))&&(a20==1)))&&!(a7==1))))))){ + a7 = 1; + a19 = 5; + a29 = 9; + return -1; + } else if(((a11==1)&&((((a25==1)&&(((((((a19==5)&&((a22==1)&&(input==2)))&&!(a24==1))&&(a29==7))&&!(a7==1))&&!(a0==1))&&(a28==1)))&&(a14==8))&&!(a20==1)))){ + a19 = 1; + a7 = 1; + a20 = 1; + a24 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if((((a7==1)&&(!(a11==1)&&(((a20==1)&&(((((((input==6)&&((a29==6)||(a29==7)))&&(a22==1))&&!(a25==1))&&(a19==5))&&(a14==8))&&!(a24==1)))&&!(a0==1))))&&(a28==1))){ + a29 = 5; + a25 = 1; + a20 = 0; + a24 = 1; + a11 = 1; + a7 = 0; + a19 = 4; + return 24; + } else if((((((a7==1)&&((a20==1)&&((((a19==5)&&((((input==4)&&((a29==9)||((a29==7)||(a29==8))))&&(a0==1))&&(a11==1)))&&(a14==10))&&!(a25==1))))&&(a24==1))&&(a22==1))&&(a28==1))){ + a7 = 0; + a0 = 0; + a20 = 0; + a14 = 8; + a19 = 3; + a29 = 6; + return 24; + } else if(((a19==4)&&((!(a24==1)&&((a25==1)&&(!(a7==1)&&((((a22==1)&&((a28==1)&&((a14==8)&&(((a29==5)||(a29==6))&&(input==6)))))&&!(a20==1))&&!(a11==1)))))&&!(a0==1)))){ + a29 = 5; + a24 = 1; + a7 = 1; + a11 = 1; + a20 = 1; + a19 = 1; + a0 = 1; + return -1; + } else if((((((a11==1)&&((a28==1)&&((a0==1)&&(!(a7==1)&&((a19==3)&&(!(a25==1)&&((a14==9)&&((input==3)&&((a29==9)||((a29==7)||(a29==8)))))))))))&&(a22==1))&&!(a20==1))&&(a24==1))){ + a29 = 9; + a14 = 10; + a25 = 1; + a19 = 2; + a20 = 1; + return 24; + } else if(((a19==3)&&((a28==1)&&(!(a20==1)&&(!(a7==1)&&(!(a11==1)&&(((a0==1)&&(((((input==1)&&((a29==7)||((a29==5)||(a29==6))))&&(a24==1))&&(a14==9))&&(a25==1)))&&(a22==1)))))))){ + a29 = 9; + a19 = 2; + a7 = 1; + a14 = 8; + a24 = 0; + a25 = 0; + return 24; + } else if(((!(a7==1)&&(!(a25==1)&&((a19==1)&&((((((a24==1)&&((a20==1)&&((input==1)&&(a22==1))))&&(a14==9))&&(a28==1))&&!(a0==1))&&(a29==9)))))&&(a11==1))){ + a0 = 1; + a7 = 1; + a29 = 8; + a25 = 1; + a14 = 8; + a20 = 0; + a19 = 3; + return 23; + } else if((!(a0==1)&&((a29==9)&&(!(a25==1)&&((((a20==1)&&((a22==1)&&(((a19==2)&&(((input==2)&&!(a7==1))&&!(a24==1)))&&(a11==1))))&&(a14==9))&&(a28==1)))))){ + a19 = 3; + a7 = 1; + a0 = 1; + a29 = 7; + return 24; + } else if(((((((a29==5)&&(!(a20==1)&&((a14==8)&&((a22==1)&&(((a28==1)&&(!(a0==1)&&(input==3)))&&(a24==1))))))&&(a7==1))&&(a19==2))&&!(a11==1))&&!(a25==1))){ + a0 = 1; + a29 = 9; + a24 = 0; + a19 = 3; + a7 = 0; + return 23; + } else if(((a11==1)&&(((a19==2)&&((!(a25==1)&&(((a7==1)&&(!(a0==1)&&((a28==1)&&(((input==5)&&((a29==6)||(a29==7)))&&(a14==8)))))&&(a22==1)))&&(a20==1)))&&!(a24==1)))){ + a29 = 8; + a25 = 1; + a19 = 3; + a24 = 1; + a14 = 9; + return 21; + } else if(((!(a0==1)&&(((a25==1)&&((a24==1)&&(((((a11==1)&&((((a29==5)||(a29==6))&&(input==2))&&(a7==1)))&&(a28==1))&&(a19==4))&&(a14==9))))&&(a22==1)))&&(a20==1))){ + a19 = 5; + a25 = 0; + a14 = 8; + a29 = 5; + a24 = 0; + return 24; + } else if((((((a22==1)&&((((a20==1)&&((a14==8)&&(((a29==8)&&((input==3)&&!(a7==1)))&&!(a11==1))))&&(a25==1))&&(a24==1)))&&(a19==5))&&(a0==1))&&(a28==1))){ + a11 = 1; + a7 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((a24==1)&&((a22==1)&&((!(a11==1)&&(((((((((a29==6)||(a29==7))&&(input==2))&&(a25==1))&&(a28==1))&&(a19==1))&&(a14==8))&&(a0==1))&&!(a7==1)))&&!(a20==1))))){ + a19 = 2; + a29 = 7; + a0 = 0; + a25 = 0; + a11 = 1; + a20 = 1; + return 23; + } else if(((a14==9)&&(((((a24==1)&&((a0==1)&&((a11==1)&&((((((a29==5)||(a29==6))&&(input==3))&&(a19==2))&&!(a25==1))&&!(a20==1)))))&&(a28==1))&&!(a7==1))&&(a22==1)))){ + a7 = 1; + a29 = 5; + a14 = 8; + a19 = 1; + a25 = 1; + a20 = 1; + return -1; + } else if(((a22==1)&&(!(a20==1)&&(((a28==1)&&((((!(a11==1)&&(!(a7==1)&&(((((a29==8)&&(a19==3))||((a19==3)&&(a29==9)))||((a19==4)&&(a29==5)))&&(input==3))))&&!(a25==1))&&(a0==1))&&(a14==8)))&&(a24==1))))){ + a25 = 1; + a19 = 1; + a29 = 5; + a11 = 1; + a7 = 1; + a20 = 1; + return -1; + } else if(((a28==1)&&((a22==1)&&(((((!(a0==1)&&(((a14==9)&&((((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))&&(input==3)))&&!(a25==1)))&&(a20==1))&&!(a11==1))&&(a24==1))&&(a7==1))))){ + a7 = 0; + a19 = 3; + a14 = 8; + a29 = 9; + return 24; + } else if((((((!(a24==1)&&(((a20==1)&&(((a7==1)&&((a14==8)&&((a29==7)&&(input==4))))&&(a0==1)))&&(a11==1)))&&(a22==1))&&(a25==1))&&(a19==1))&&(a28==1))){ + a29 = 5; + a24 = 1; + return -1; + } else if((((a20==1)&&(((((a19==4)&&(((((a24==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==6)))&&(a28==1))&&(a22==1))&&!(a25==1)))&&(a11==1))&&(a7==1))&&(a0==1)))&&(a14==10))){ + a25 = 1; + a20 = 0; + a7 = 0; + a19 = 5; + a0 = 0; + a14 = 8; + a29 = 6; + return -1; + } else if(((a7==1)&&((!(a11==1)&&(((((a28==1)&&(((((a24==1)&&(input==3))&&(a14==8))&&(a25==1))&&(a0==1)))&&(a29==6))&&(a19==4))&&(a20==1)))&&(a22==1)))){ + a11 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if((!(a11==1)&&((((a20==1)&&(((a14==8)&&((a24==1)&&(((a22==1)&&(((input==6)&&((a29==6)||(a29==7)))&&(a28==1)))&&(a19==4))))&&!(a0==1)))&&(a7==1))&&(a25==1)))){ + a29 = 5; + a19 = 1; + a0 = 1; + a11 = 1; + return -1; + } else if((((!(a0==1)&&((a19==3)&&(!(a25==1)&&((!(a20==1)&&((a7==1)&&((a14==9)&&((a24==1)&&((input==3)&&((a29==7)||(a29==8)))))))&&(a22==1)))))&&!(a11==1))&&(a28==1))){ + a20 = 1; + a25 = 1; + a11 = 1; + a14 = 8; + a29 = 6; + return 23; + } else if((!(a11==1)&&(((((a29==6)&&((((a22==1)&&((a20==1)&&(!(a24==1)&&((input==3)&&(a25==1)))))&&(a0==1))&&(a14==9)))&&(a19==4))&&!(a7==1))&&(a28==1)))){ + a20 = 0; + a25 = 0; + a19 = 1; + a29 = 5; + return 24; + } else if(((((a25==1)&&((a11==1)&&(((a0==1)&&(((a19==2)&&((((input==1)&&(a22==1))&&(a14==10))&&(a24==1)))&&(a20==1)))&&(a28==1))))&&(a29==9))&&!(a7==1))){ + a11 = 0; + a20 = 0; + a24 = 0; + a14 = 8; + a19 = 3; + a29 = 6; + a25 = 0; + return -1; + } else if(((a25==1)&&((!(a20==1)&&((((a28==1)&&((a14==8)&&((a22==1)&&(((a0==1)&&((input==5)&&((a29==7)||((a29==5)||(a29==6)))))&&!(a11==1)))))&&(a7==1))&&(a24==1)))&&(a19==3)))){ + a7 = 0; + a19 = 2; + a24 = 0; + a0 = 0; + a29 = 7; + a25 = 0; + return 21; + } else if(((a0==1)&&(!(a7==1)&&(((a11==1)&&((a19==1)&&(((a22==1)&&(((a24==1)&&((a14==8)&&((((a29==5)||(a29==6))||(a29==7))&&(input==1))))&&!(a25==1)))&&(a28==1))))&&(a20==1))))){ + a7 = 1; + a19 = 3; + a29 = 9; + a20 = 0; + return 24; + } else if((!(a11==1)&&((a29==6)&&(((a7==1)&&((a14==9)&&(((a28==1)&&(((a0==1)&&((!(a20==1)&&(input==6))&&(a19==3)))&&!(a25==1)))&&!(a24==1))))&&(a22==1))))){ + a25 = 1; + a7 = 0; + a0 = 0; + a19 = 1; + a24 = 1; + a14 = 8; + a20 = 1; + a29 = 9; + return 24; + } else if((!(a7==1)&&((a24==1)&&((a20==1)&&((a0==1)&&((a11==1)&&(((a25==1)&&((a28==1)&&((a22==1)&&((a14==10)&&((input==5)&&((a29==7)||((a29==5)||(a29==6))))))))&&(a19==5)))))))){ + a14 = 8; + a7 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((a28==1)&&((a20==1)&&(((a11==1)&&((a29==7)&&(((((((a7==1)&&(input==2))&&(a0==1))&&(a25==1))&&(a14==9))&&(a22==1))&&(a19==3))))&&(a24==1))))){ + a29 = 6; + a0 = 0; + a7 = 0; + a11 = 0; + a19 = 5; + a24 = 0; + return 24; + } else if(((a28==1)&&(((((a0==1)&&(!(a25==1)&&((((a22==1)&&(((input==6)&&(a24==1))&&!(a20==1)))&&(a29==7))&&(a7==1))))&&(a11==1))&&(a19==5))&&(a14==9)))){ + a25 = 1; + a29 = 8; + a14 = 10; + a19 = 1; + a20 = 1; + return 23; + } else if((((((!(a11==1)&&(((a0==1)&&((((a22==1)&&((input==6)&&((a29==7)||(a29==8))))&&!(a25==1))&&(a19==4)))&&(a14==8)))&&(a28==1))&&(a7==1))&&(a20==1))&&(a24==1))){ + a29 = 5; + a25 = 1; + a19 = 1; + a11 = 1; + return -1; + } else if(((a19==5)&&((a11==1)&&(!(a25==1)&&((!(a0==1)&&((a7==1)&&((((a20==1)&&((a22==1)&&((a24==1)&&(input==5))))&&(a28==1))&&(a14==8))))&&(a29==8)))))){ + a25 = 1; + a29 = 5; + a19 = 3; + return -1; + } else if(((a14==8)&&(((a28==1)&&(((a29==7)&&((a20==1)&&((a25==1)&&((((a22==1)&&((a24==1)&&(input==4)))&&!(a11==1))&&(a0==1)))))&&!(a7==1)))&&(a19==1)))){ + a11 = 1; + a0 = 0; + a20 = 0; + a29 = 9; + a19 = 2; + a25 = 0; + return 24; + } else if(((((((a19==1)&&(((a28==1)&&(!(a24==1)&&(!(a0==1)&&(((input==4)&&(a7==1))&&(a25==1)))))&&(a20==1)))&&(a22==1))&&(a14==9))&&(a11==1))&&(a29==6))){ + a14 = 8; + a0 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if((((a29==5)&&((a7==1)&&((((a14==10)&&((a19==4)&&((a20==1)&&(((a0==1)&&((input==4)&&(a11==1)))&&(a25==1)))))&&(a28==1))&&(a22==1))))&&(a24==1))){ + a29 = 8; + a19 = 2; + return -1; + } else if((((a14==9)&&(!(a7==1)&&(((a19==5)&&((!(a0==1)&&(((((input==5)&&((a29==6)||(a29==7)))&&(a25==1))&&(a28==1))&&(a11==1)))&&!(a24==1)))&&(a22==1))))&&!(a20==1))){ + a11 = 0; + a19 = 1; + a25 = 0; + a7 = 1; + a29 = 5; + a24 = 1; + a0 = 1; + a20 = 1; + return 24; + } else if(((a20==1)&&((((!(a11==1)&&((a22==1)&&((((((a29==9)&&(!(a25==1)&&(a7==1)))&&(a19==5))||((a19==1)&&(((a25==1)&&!(a7==1))&&(a29==5))))&&(input==5))&&(a24==1))))&&(a14==8))&&!(a0==1))&&(a28==1)))){ + a20 = 0; + a11 = 1; + a24 = 0; + a25 = 0; + a7 = 1; + a19 = 4; + a29 = 5; + return -1; + } else if(((a25==1)&&(!(a0==1)&&((a19==2)&&((a22==1)&&(((a28==1)&&((((a7==1)&&((((a29==7)||(a29==8))&&(input==5))&&!(a11==1)))&&(a14==9))&&(a24==1)))&&!(a20==1))))))){ + a11 = 1; + a20 = 1; + a29 = 5; + a19 = 1; + a0 = 1; + a14 = 8; + return -1; + } else if(((a28==1)&&((a14==8)&&(((a11==1)&&(((!(a25==1)&&(((a19==1)&&(((input==6)&&(a20==1))&&(a24==1)))&&(a22==1)))&&(a29==8))&&!(a7==1)))&&(a0==1))))){ + a7 = 1; + a19 = 4; + a20 = 0; + return 21; + } else if((((((a22==1)&&((a28==1)&&((a14==8)&&((a25==1)&&((!(a24==1)&&((((a29==6)||(a29==7))&&(input==5))&&(a19==1)))&&!(a0==1))))))&&(a20==1))&&(a11==1))&&!(a7==1))){ + a0 = 1; + a7 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if((((!(a25==1)&&((((!(a20==1)&&(((a28==1)&&((input==3)&&(((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))))&&(a14==8)))&&(a22==1))&&(a7==1))&&!(a11==1)))&&(a0==1))&&!(a24==1))){ + a7 = 0; + a11 = 1; + a0 = 0; + a24 = 1; + a19 = 3; + a29 = 8; + return 21; + } else if((!(a20==1)&&(!(a24==1)&&((a0==1)&&(((a28==1)&&(((a22==1)&&((a7==1)&&(((((a29==5)||(a29==6))&&(input==5))&&(a11==1))&&(a19==1))))&&(a14==8)))&&!(a25==1)))))){ + a29 = 7; + a19 = 4; + a0 = 0; + a7 = 0; + a25 = 1; + return 24; + } else if(((a22==1)&&((a7==1)&&((a20==1)&&((((a28==1)&&((((a19==1)&&((a0==1)&&(((a29==8)||(a29==9))&&(input==6))))&&!(a24==1))&&(a11==1)))&&(a25==1))&&(a14==8)))))){ + a24 = 1; + a29 = 5; + return -1; + } else if(((!(a24==1)&&((a19==4)&&((((((((a14==8)&&((((a29==5)||(a29==6))||(a29==7))&&(input==5)))&&(a25==1))&&!(a7==1))&&(a11==1))&&(a28==1))&&(a22==1))&&(a20==1))))&&!(a0==1))){ + a24 = 1; + a14 = 9; + a29 = 9; + a19 = 1; + return 24; + } else if((((!(a11==1)&&((a20==1)&&(((a19==2)&&((a7==1)&&(((!(a0==1)&&(((a29==7)||(a29==8))&&(input==1)))&&(a14==9))&&(a22==1))))&&(a28==1))))&&(a24==1))&&(a25==1))){ + a19 = 3; + a20 = 0; + a14 = 8; + a29 = 6; + return 23; + } else if((!(a25==1)&&((((a19==5)&&(((a24==1)&&((a7==1)&&((a14==9)&&((a20==1)&&((((a29==8)||(a29==9))&&(input==2))&&(a28==1))))))&&!(a11==1)))&&(a0==1))&&(a22==1)))){ + a14 = 8; + a11 = 1; + a29 = 6; + a25 = 1; + a24 = 0; + a0 = 0; + return 21; + } else if(((a14==9)&&(((((a11==1)&&((a0==1)&&((((((((a29==6)||(a29==7))||(a29==8))&&(input==3))&&(a19==2))&&!(a24==1))&&(a22==1))&&(a20==1))))&&(a25==1))&&(a7==1))&&(a28==1)))){ + a24 = 1; + a0 = 0; + a29 = 6; + a20 = 0; + a25 = 0; + a7 = 0; + a14 = 8; + a19 = 1; + return 21; + } else if(((a29==5)&&(((!(a7==1)&&(((a0==1)&&((a22==1)&&((a14==9)&&((((a25==1)&&(input==4))&&(a11==1))&&(a28==1)))))&&(a19==2)))&&!(a20==1))&&(a24==1)))){ + a7 = 1; + a29 = 8; + a24 = 0; + a11 = 0; + a14 = 8; + a19 = 5; + a0 = 0; + return -1; + } else if(((a28==1)&&(((a22==1)&&(((((!(a20==1)&&((a0==1)&&((a24==1)&&(((a29==7)||(a29==8))&&(input==6)))))&&!(a11==1))&&(a14==8))&&(a19==4))&&(a7==1)))&&(a25==1)))){ + a19 = 1; + a11 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if((((a28==1)&&(!(a25==1)&&(!(a11==1)&&((((((a0==1)&&((((a29==6)||(a29==7))&&(input==4))&&(a19==3)))&&(a20==1))&&!(a24==1))&&(a14==9))&&(a7==1)))))&&(a22==1))){ + a14 = 8; + a29 = 5; + a25 = 1; + a19 = 1; + a11 = 1; + a24 = 1; + return -1; + } else if(((a20==1)&&((!(a24==1)&&((((a14==8)&&((((((input==2)&&(a11==1))&&(a19==2))&&(a29==5))&&(a25==1))&&(a22==1)))&&(a0==1))&&(a28==1)))&&(a7==1)))){ + a19 = 5; + a20 = 0; + a11 = 0; + return 23; + } else if(((((a25==1)&&((((((((a11==1)&&((input==2)&&(((a29==6)||(a29==7))||(a29==8))))&&!(a0==1))&&(a19==4))&&(a7==1))&&(a14==8))&&(a24==1))&&(a22==1)))&&!(a20==1))&&(a28==1))){ + a11 = 0; + a25 = 0; + a0 = 1; + a24 = 0; + a19 = 3; + a29 = 6; + return -1; + } else if((((a22==1)&&(((a11==1)&&(((a28==1)&&((((a19==1)&&((a29==5)&&((a25==1)&&((a7==1)&&!(a20==1)))))||(((a19==5)&&((!(a25==1)&&(!(a7==1)&&(a20==1)))&&(a29==8)))||(((!(a25==1)&&(!(a7==1)&&(a20==1)))&&(a29==9))&&(a19==5))))&&(input==4)))&&(a0==1)))&&(a14==9)))&&(a24==1))){ + a7 = 1; + a19 = 1; + a20 = 1; + a14 = 8; + a29 = 5; + a25 = 1; + return -1; + } else if((((((((a11==1)&&(!(a0==1)&&((a28==1)&&((a14==8)&&((a29==6)&&((input==4)&&(a7==1)))))))&&(a19==1))&&(a22==1))&&(a20==1))&&(a24==1))&&!(a25==1))){ + a25 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if(((a7==1)&&((a28==1)&&((a22==1)&&(((a14==9)&&(((a0==1)&&((a20==1)&&((((input==4)&&((a29==6)||(a29==7)))&&(a19==5))&&(a25==1))))&&(a11==1)))&&(a24==1)))))){ + a14 = 8; + a29 = 5; + a19 = 1; + return -1; + } else if(((a28==1)&&((!(a7==1)&&(((a11==1)&&(!(a20==1)&&((a0==1)&&((((((a29==8)||((a29==6)||(a29==7)))&&(input==2))&&(a19==4))&&(a24==1))&&!(a25==1)))))&&(a14==9)))&&(a22==1)))){ + a11 = 0; + a14 = 8; + a24 = 0; + a29 = 6; + a0 = 0; + a19 = 2; + return 21; + } else if((!(a0==1)&&((a28==1)&&(((a20==1)&&(!(a24==1)&&(!(a11==1)&&((((((input==3)&&!(a7==1))&&(a19==4))&&(a29==5))&&(a22==1))&&(a14==8)))))&&(a25==1))))){ + a19 = 2; + a25 = 0; + a24 = 1; + a29 = 7; + a14 = 9; + return 24; + } else if((((a14==8)&&(((a28==1)&&(!(a11==1)&&((a0==1)&&(((a20==1)&&((a29==9)&&(((a7==1)&&(input==6))&&(a22==1))))&&!(a24==1)))))&&(a19==1)))&&!(a25==1))){ + a19 = 5; + a29 = 8; + a7 = 0; + a24 = 1; + a0 = 0; + a25 = 1; + a11 = 1; + return 21; + } else if(((((((((a22==1)&&(!(a24==1)&&((a11==1)&&((a0==1)&&((input==5)&&(((a29==5)||(a29==6))||(a29==7)))))))&&!(a20==1))&&!(a25==1))&&(a14==9))&&(a19==1))&&(a7==1))&&(a28==1))){ + a20 = 1; + a24 = 1; + a19 = 5; + a29 = 6; + a7 = 0; + return 23; + } else if(((a24==1)&&(((a0==1)&&(!(a20==1)&&(((((a28==1)&&(!(a7==1)&&((a14==9)&&((input==4)&&(a11==1)))))&&(a29==7))&&(a19==3))&&(a22==1))))&&(a25==1)))){ + a29 = 9; + a20 = 1; + a0 = 0; + a14 = 8; + a19 = 2; + return 23; + } else if((((((a19==1)&&((a28==1)&&(!(a0==1)&&((a22==1)&&((a7==1)&&(((a11==1)&&(((a29==5)||(a29==6))&&(input==4)))&&(a24==1)))))))&&(a14==9))&&(a20==1))&&(a25==1))){ + a29 = 8; + a0 = 1; + a11 = 0; + a24 = 0; + a19 = 2; + a7 = 0; + return -1; + } else if((!(a11==1)&&((a22==1)&&((a14==8)&&((a25==1)&&((!(a24==1)&&((a19==3)&&(!(a7==1)&&((((input==6)&&(((a29==6)||(a29==7))||(a29==8)))&&!(a0==1))&&(a28==1)))))&&(a20==1))))))){ + a20 = 0; + a0 = 1; + a19 = 2; + a29 = 9; + a7 = 1; + a25 = 0; + return 23; + } else if(((a29==9)&&(((((a28==1)&&((a11==1)&&((a22==1)&&(((a19==1)&&(((a14==9)&&(input==2))&&(a0==1)))&&!(a25==1)))))&&!(a20==1))&&!(a24==1))&&!(a7==1)))){ + a25 = 1; + a7 = 1; + a29 = 5; + a24 = 1; + a14 = 8; + a20 = 1; + return -1; + } else if((((((((a25==1)&&((a7==1)&&(((((input==6)&&((a29==7)||(a29==8)))&&(a14==9))&&(a19==1))&&(a22==1))))&&(a20==1))&&!(a24==1))&&(a11==1))&&!(a0==1))&&(a28==1))){ + a19 = 4; + a0 = 1; + a29 = 8; + return -1; + } else if(((((a22==1)&&((a20==1)&&((((a19==1)&&(((!(a11==1)&&(((a29==5)||(a29==6))&&(input==3)))&&(a25==1))&&(a28==1)))&&(a24==1))&&(a14==9))))&&(a0==1))&&!(a7==1))){ + a11 = 1; + a14 = 8; + a19 = 3; + a24 = 0; + a29 = 8; + a0 = 0; + return 23; + } else if(((a11==1)&&(!(a20==1)&&((a24==1)&&((((a0==1)&&((a28==1)&&((((a14==10)&&((input==1)&&(((a29==7)||(a29==8))||(a29==9))))&&(a25==1))&&(a19==1))))&&!(a7==1))&&(a22==1)))))){ + a29 = 7; + a0 = 0; + a19 = 3; + a20 = 1; + a14 = 8; + return 21; + } else if(((a22==1)&&((((a24==1)&&(!(a0==1)&&((a7==1)&&((a14==9)&&((a28==1)&&((a25==1)&&(((a29==7)&&(input==5))&&(a19==3))))))))&&(a11==1))&&(a20==1)))){ + a25 = 0; + a7 = 0; + a24 = 0; + a11 = 0; + a19 = 4; + a14 = 8; + a29 = 8; + return 21; + } else if(((a22==1)&&((((((a24==1)&&((a28==1)&&(!(a25==1)&&(((((a29==5)||(a29==6))&&(input==4))&&(a19==5))&&(a11==1)))))&&(a0==1))&&(a14==10))&&(a7==1))&&(a20==1)))){ + a25 = 1; + a14 = 8; + a29 = 5; + a19 = 1; + return -1; + } else if((((a22==1)&&(((a14==9)&&((a0==1)&&(((!(a20==1)&&((a7==1)&&((a28==1)&&((a11==1)&&(input==3)))))&&!(a25==1))&&(a29==7))))&&(a24==1)))&&(a19==4))){ + a20 = 1; + a19 = 1; + a14 = 8; + a29 = 8; + a7 = 0; + a0 = 0; + return 23; + } else if(((a22==1)&&(!(a7==1)&&(((((a0==1)&&(((a24==1)&&((!(a25==1)&&((input==1)&&((a29==8)||((a29==6)||(a29==7)))))&&(a28==1)))&&(a14==9)))&&(a19==3))&&!(a11==1))&&!(a20==1))))){ + a0 = 0; + a29 = 6; + a19 = 5; + a11 = 1; + a14 = 8; + a7 = 1; + return 21; + } else if((((a22==1)&&((((a0==1)&&(((((((input==5)&&((a29==8)||((a29==6)||(a29==7))))&&(a25==1))&&(a7==1))&&(a28==1))&&(a14==9))&&(a20==1)))&&(a19==3))&&!(a11==1)))&&(a24==1))){ + a19 = 1; + a14 = 8; + a11 = 1; + a29 = 5; + return -1; + } else if((!(a11==1)&&(((a7==1)&&(!(a20==1)&&(!(a24==1)&&((a14==9)&&(((!(a25==1)&&((((a29==5)&&(a19==3))||(((a29==8)&&(a19==2))||((a29==9)&&(a19==2))))&&(input==2)))&&(a22==1))&&(a28==1))))))&&(a0==1)))){ + a19 = 1; + a29 = 5; + a25 = 1; + a11 = 1; + a24 = 1; + a20 = 1; + a14 = 8; + return -1; + } else if((((a22==1)&&(((a24==1)&&((((((((((a19==3)&&(a29==8))||((a19==3)&&(a29==9)))||((a29==5)&&(a19==4)))&&(input==1))&&(a14==9))&&(a28==1))&&(a25==1))&&!(a0==1))&&!(a7==1)))&&(a20==1)))&&!(a11==1))){ + a11 = 1; + a29 = 8; + a19 = 2; + a14 = 8; + return 23; + } else if((((a11==1)&&((((a19==2)&&((a25==1)&&((((a0==1)&&((a22==1)&&(((a29==7)||(a29==8))&&(input==4))))&&!(a20==1))&&!(a24==1))))&&(a7==1))&&(a14==8)))&&(a28==1))){ + a20 = 1; + a19 = 5; + a0 = 0; + a24 = 1; + a29 = 8; + return 21; + } else if(((a11==1)&&((a22==1)&&(((a7==1)&&((((((((a28==1)&&(input==4))&&(a0==1))&&!(a24==1))&&(a25==1))&&(a14==8))&&!(a20==1))&&(a29==6)))&&(a19==3))))){ + a24 = 1; + a19 = 5; + a0 = 0; + a29 = 7; + return 24; + } else if(((((((a28==1)&&((a22==1)&&(!(a24==1)&&((a14==8)&&((a20==1)&&(((((a29==9)&&(a19==4))||((a29==5)&&(a19==5)))||((a19==5)&&(a29==6)))&&(input==6)))))))&&!(a25==1))&&(a11==1))&&(a0==1))&&!(a7==1))){ + a19 = 5; + a0 = 0; + a29 = 9; + a25 = 1; + return 21; + } else if(((a24==1)&&(((!(a7==1)&&((a11==1)&&(((!(a20==1)&&(((a0==1)&&((a29==8)&&(input==2)))&&(a19==3)))&&(a14==10))&&(a28==1))))&&(a22==1))&&(a25==1)))){ + a20 = 1; + a7 = 1; + a25 = 0; + a29 = 6; + return -1; + } else if(((!(a0==1)&&((a22==1)&&((!(a7==1)&&(((!(a24==1)&&((((((a29==7)||(a29==8))||(a29==9))&&(input==3))&&(a28==1))&&!(a25==1)))&&(a19==3))&&!(a20==1)))&&!(a11==1))))&&(a14==8))){ + a24 = 1; + a0 = 1; + a29 = 5; + a19 = 1; + a25 = 1; + a20 = 1; + a11 = 1; + a7 = 1; + return -1; + } else if((((((((((a14==9)&&(!(a24==1)&&((a0==1)&&((input==4)&&(((a29==5)||(a29==6))||(a29==7))))))&&!(a20==1))&&(a19==5))&&!(a7==1))&&(a25==1))&&!(a11==1))&&(a28==1))&&(a22==1))){ + a14 = 8; + a19 = 3; + a7 = 1; + a0 = 0; + a11 = 1; + a29 = 6; + return 21; + } else if(((a19==4)&&((a22==1)&&((((!(a0==1)&&(((a20==1)&&((((input==5)&&((a29==9)||((a29==7)||(a29==8))))&&(a11==1))&&(a24==1)))&&(a14==9)))&&(a25==1))&&(a28==1))&&(a7==1))))){ + a25 = 0; + a14 = 8; + a29 = 6; + a19 = 5; + a20 = 0; + return 21; + } else if((((!(a7==1)&&((a14==8)&&((a29==7)&&(((a0==1)&&((a20==1)&&((((a19==3)&&(input==4))&&(a22==1))&&(a11==1))))&&(a24==1)))))&&(a25==1))&&(a28==1))){ + a29 = 9; + a19 = 5; + return 21; + } else if((((a7==1)&&((a14==9)&&((a20==1)&&(((a25==1)&&((a19==5)&&(((((a22==1)&&(input==4))&&!(a24==1))&&(a29==7))&&(a28==1))))&&(a11==1)))))&&(a0==1))){ + a19 = 1; + return 21; + } else if((!(a20==1)&&((a14==8)&&((!(a25==1)&&(((a28==1)&&((a22==1)&&((!(a24==1)&&((((a29==8)||(a29==9))&&(input==2))&&(a11==1)))&&(a19==3))))&&(a0==1)))&&!(a7==1))))){ + a20 = 1; + a29 = 5; + a25 = 1; + a24 = 1; + a19 = 1; + a7 = 1; + return -1; + } else if((((((a14==8)&&(!(a24==1)&&(((!(a7==1)&&((input==3)&&(((a19==5)&&((a29==9)&&(a25==1)))||((a19==1)&&((a29==5)&&!(a25==1))))))&&(a22==1))&&(a0==1))))&&(a28==1))&&!(a20==1))&&(a11==1))){ + a25 = 1; + a29 = 6; + a19 = 5; + a11 = 0; + return 23; + } else if((((a14==8)&&(((((a22==1)&&((a20==1)&&(((a7==1)&&(((input==5)&&((a29==8)||((a29==6)||(a29==7))))&&(a28==1)))&&!(a11==1))))&&(a19==4))&&!(a0==1))&&!(a25==1)))&&!(a24==1))){ + a24 = 1; + a25 = 1; + a20 = 0; + a29 = 6; + a19 = 3; + return -1; + } else if((((((a7==1)&&((a28==1)&&((((a25==1)&&(((input==3)&&(((a19==3)&&(a29==9))||((a19==4)&&(a29==5))))&&!(a24==1)))&&(a14==9))&&(a22==1))))&&!(a11==1))&&(a20==1))&&!(a0==1))){ + a25 = 0; + a11 = 1; + a0 = 1; + a7 = 0; + a19 = 3; + a24 = 1; + a29 = 5; + return 24; + } else if(((((a25==1)&&((a7==1)&&((((((a22==1)&&(((input==3)&&((a29==8)||(a29==9)))&&(a28==1)))&&(a20==1))&&!(a0==1))&&(a19==4))&&!(a11==1))))&&(a24==1))&&(a14==8))){ + a11 = 1; + a19 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if((!(a11==1)&&((((((a14==9)&&((a0==1)&&(((input==3)&&(((a19==1)&&(!(a25==1)&&(a29==5)))||((((a25==1)&&(a29==8))&&(a19==5))||((a19==5)&&((a29==9)&&(a25==1))))))&&!(a24==1))))&&(a28==1))&&(a22==1))&&!(a20==1))&&(a7==1)))){ + a0 = 0; + a7 = 0; + a25 = 0; + a29 = 9; + a19 = 3; + a24 = 1; + a14 = 8; + a20 = 1; + return 24; + } else if(((((a28==1)&&(!(a0==1)&&(!(a7==1)&&((a24==1)&&((a14==8)&&(((a22==1)&&((a19==3)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==5))))&&!(a25==1)))))))&&(a20==1))&&(a11==1))){ + a25 = 1; + a29 = 5; + a7 = 1; + a19 = 1; + a0 = 1; + return -1; + } else if(((!(a0==1)&&((a19==5)&&((a22==1)&&((!(a20==1)&&(!(a24==1)&&(((!(a25==1)&&((input==1)&&((a29==5)||(a29==6))))&&!(a7==1))&&(a14==9))))&&(a28==1)))))&&!(a11==1))){ + a25 = 1; + a7 = 1; + a29 = 9; + a20 = 1; + a0 = 1; + return 23; + } else if((!(a20==1)&&((a22==1)&&((a28==1)&&(((a0==1)&&(((a14==8)&&(((a7==1)&&((((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))&&(input==2)))&&!(a25==1)))&&!(a11==1)))&&!(a24==1)))))){ + a24 = 1; + a11 = 1; + a29 = 5; + a19 = 1; + a20 = 1; + a25 = 1; + return -1; + } else if(((a28==1)&&((a25==1)&&(((a24==1)&&((a11==1)&&((a14==9)&&(((a0==1)&&((a22==1)&&((input==2)&&((((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))||((a29==6)&&(a19==5))))))&&(a20==1)))))&&!(a7==1))))){ + a29 = 5; + a24 = 0; + a14 = 8; + a7 = 1; + a19 = 3; + a0 = 0; + return -1; + } else if(((a14==8)&&((((a24==1)&&((a22==1)&&((((!(a7==1)&&((((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))&&(input==1)))&&!(a11==1))&&(a0==1))&&!(a25==1))))&&!(a20==1))&&(a28==1)))){ + a25 = 1; + a11 = 1; + a7 = 1; + a29 = 5; + a20 = 1; + a19 = 1; + return -1; + } else if((((!(a0==1)&&(((!(a25==1)&&((a28==1)&&((a14==9)&&(((a19==1)&&((input==4)&&(((a29==5)||(a29==6))||(a29==7))))&&(a24==1)))))&&!(a7==1))&&(a22==1)))&&(a11==1))&&!(a20==1))){ + a20 = 1; + a11 = 0; + a24 = 0; + a14 = 8; + a29 = 7; + return -1; + } else if(((a24==1)&&((a22==1)&&(((a19==2)&&(!(a25==1)&&((!(a11==1)&&(((a14==9)&&(((a29==5)&&(input==4))&&!(a20==1)))&&(a28==1)))&&(a0==1))))&&!(a7==1))))){ + a7 = 1; + a14 = 8; + a29 = 6; + a24 = 0; + a0 = 0; + return 21; + } else if((((a28==1)&&((!(a7==1)&&((a14==9)&&((a22==1)&&((!(a11==1)&&(!(a24==1)&&((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))&&(input==2))))&&(a0==1)))))&&(a20==1)))&&!(a25==1))){ + a19 = 5; + a11 = 1; + a29 = 6; + a24 = 1; + a20 = 0; + return -1; + } else if(((((a20==1)&&((a14==8)&&((((((input==6)&&(((a19==1)&&((a29==6)&&!(a25==1)))||((((a25==1)&&(a29==9))&&(a19==5))||(((a29==5)&&!(a25==1))&&(a19==1)))))&&!(a11==1))&&!(a24==1))&&(a22==1))&&(a28==1))))&&(a7==1))&&(a0==1))){ + a19 = 1; + a11 = 1; + a7 = 0; + a29 = 9; + a25 = 1; + a14 = 9; + return 24; + } else if((((a28==1)&&(((a25==1)&&(!(a24==1)&&((a0==1)&&(((((a22==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==4)))&&(a19==3))&&!(a11==1))&&!(a20==1)))))&&!(a7==1)))&&(a14==9))){ + a19 = 1; + a24 = 1; + a7 = 1; + a0 = 0; + a11 = 1; + a29 = 7; + a14 = 8; + return 24; + } else if((((!(a20==1)&&(!(a0==1)&&((a22==1)&&((a19==5)&&(!(a24==1)&&((a7==1)&&((a14==8)&&((((a29==5)||(a29==6))&&(input==3))&&(a28==1)))))))))&&!(a25==1))&&!(a11==1))){ + a19 = 1; + a0 = 1; + a20 = 1; + a25 = 1; + a24 = 1; + a29 = 5; + a11 = 1; + return -1; + } else if(((((a28==1)&&(!(a25==1)&&(!(a7==1)&&((a19==4)&&((((((input==1)&&((a29==5)||(a29==6)))&&!(a0==1))&&(a22==1))&&(a24==1))&&(a14==9))))))&&(a11==1))&&(a20==1))){ + a19 = 1; + a14 = 8; + a0 = 1; + a29 = 5; + a25 = 1; + a7 = 1; + return -1; + } else if(((a19==4)&&((a11==1)&&((((((a22==1)&&((a29==7)&&((!(a20==1)&&((input==1)&&(a0==1)))&&(a7==1))))&&(a14==8))&&(a28==1))&&!(a25==1))&&(a24==1))))){ + a20 = 1; + a19 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if((!(a24==1)&&((a25==1)&&(((a11==1)&&(((((a7==1)&&(((input==3)&&(((a29==9)&&(a19==2))||((a29==5)&&(a19==3))))&&(a0==1)))&&!(a20==1))&&(a28==1))&&(a22==1)))&&(a14==8))))){ + a19 = 2; + a29 = 9; + a0 = 0; + return 24; + } else if(((!(a0==1)&&((a11==1)&&(!(a25==1)&&((a14==9)&&(!(a20==1)&&((!(a7==1)&&((a28==1)&&((a24==1)&&((input==4)&&((a29==8)||(a29==9))))))&&(a19==1)))))))&&(a22==1))){ + a0 = 1; + a19 = 3; + a24 = 0; + a11 = 0; + a14 = 8; + a29 = 7; + return 21; + } else if(((a14==9)&&((a20==1)&&(((a22==1)&&(((((((input==2)&&((((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))||((a29==6)&&(a19==2))))&&(a28==1))&&!(a11==1))&&!(a24==1))&&(a7==1))&&!(a0==1)))&&(a25==1))))){ + a29 = 6; + a25 = 0; + a20 = 0; + a19 = 3; + a14 = 8; + a0 = 1; + return 24; + } else if((((a29==6)&&((((!(a0==1)&&((a19==1)&&(!(a20==1)&&((a24==1)&&(((a28==1)&&(input==6))&&!(a7==1))))))&&!(a11==1))&&(a22==1))&&(a14==8)))&&(a25==1))){ + a19 = 5; + a29 = 7; + a7 = 1; + a14 = 9; + a0 = 1; + return 24; + } else if((!(a20==1)&&(((a24==1)&&((((a28==1)&&((!(a7==1)&&(((((a19==5)&&((a29==9)&&(a25==1)))||((a19==1)&&(!(a25==1)&&(a29==5))))||((!(a25==1)&&(a29==6))&&(a19==1)))&&(input==6)))&&!(a11==1)))&&(a14==9))&&!(a0==1)))&&(a22==1)))){ + a14 = 8; + a19 = 5; + a24 = 0; + a29 = 7; + a25 = 1; + a11 = 1; + return -1; + } else if((!(a7==1)&&((((!(a20==1)&&(((!(a25==1)&&((a14==9)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==6))&&!(a11==1))))&&(a22==1))&&(a28==1)))&&(a19==1))&&!(a0==1))&&(a24==1)))){ + a25 = 1; + a20 = 1; + a11 = 1; + a7 = 1; + a14 = 8; + a29 = 5; + a19 = 4; + return 24; + } else if(((a14==8)&&(((((a7==1)&&(((a19==5)&&((!(a0==1)&&((a11==1)&&((input==4)&&((a29==7)||((a29==5)||(a29==6))))))&&!(a25==1)))&&(a24==1)))&&(a28==1))&&(a20==1))&&(a22==1)))){ + a0 = 1; + a19 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if((((((((a11==1)&&((a20==1)&&((!(a25==1)&&((a29==8)&&((a22==1)&&(input==5))))&&!(a7==1))))&&(a14==10))&&(a24==1))&&(a19==4))&&(a28==1))&&(a0==1))){ + a0 = 0; + a7 = 1; + a25 = 1; + a14 = 8; + a29 = 7; + a19 = 2; + return 23; + } else if((!(a25==1)&&((a0==1)&&(!(a7==1)&&(((a14==8)&&(((a22==1)&&((a11==1)&&(!(a20==1)&&(((((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))||((a29==5)&&(a19==5)))&&(input==1)))))&&(a28==1)))&&!(a24==1)))))){ + a29 = 5; + a25 = 1; + a24 = 1; + a19 = 1; + a7 = 1; + a20 = 1; + return -1; + } else if(((a28==1)&&(((((a19==2)&&((((a25==1)&&(((((a29==5)||(a29==6))&&(input==5))&&!(a20==1))&&!(a24==1)))&&!(a7==1))&&(a14==8)))&&(a11==1))&&(a22==1))&&(a0==1)))){ + a0 = 0; + a29 = 5; + a7 = 1; + a25 = 0; + a19 = 1; + a24 = 1; + return 21; + } else if(((a29==8)&&((((a19==3)&&((a24==1)&&(((((a22==1)&&((a20==1)&&((input==1)&&(a28==1))))&&!(a25==1))&&(a0==1))&&(a14==9))))&&(a7==1))&&(a11==1)))){ + a19 = 1; + a11 = 0; + a29 = 9; + a14 = 8; + a0 = 0; + return -1; + } else if(((((a7==1)&&(((((a11==1)&&(((!(a24==1)&&((input==3)&&(((a29==6)||(a29==7))||(a29==8))))&&(a22==1))&&(a19==1)))&&(a28==1))&&!(a25==1))&&(a20==1)))&&(a0==1))&&(a14==9))){ + a25 = 1; + a11 = 0; + a29 = 7; + return 24; + } else if((((((a11==1)&&((a24==1)&&(((!(a7==1)&&(((a19==3)&&(!(a0==1)&&(input==1)))&&(a20==1)))&&(a29==5))&&!(a25==1))))&&(a14==9))&&(a28==1))&&(a22==1))){ + a14 = 8; + a29 = 8; + a24 = 0; + a20 = 0; + return -1; + } else if((!(a0==1)&&((a28==1)&&((a19==1)&&(((a24==1)&&((a25==1)&&((((((a7==1)&&(input==4))&&(a14==9))&&!(a11==1))&&(a20==1))&&(a29==8))))&&(a22==1)))))){ + a19 = 5; + a24 = 0; + a0 = 1; + a14 = 8; + a20 = 0; + a7 = 0; + return 24; + } else if((((a25==1)&&(!(a0==1)&&((((a24==1)&&((a19==4)&&(((!(a7==1)&&((input==6)&&((a29==8)||((a29==6)||(a29==7)))))&&(a20==1))&&(a28==1))))&&(a14==9))&&(a22==1))))&&!(a11==1))){ + a7 = 1; + a19 = 1; + a0 = 1; + a29 = 5; + a14 = 8; + a11 = 1; + return -1; + } else if(((((a0==1)&&((!(a20==1)&&(((!(a25==1)&&(!(a24==1)&&((((a29==6)||(a29==7))&&(input==5))&&(a14==9))))&&(a28==1))&&!(a7==1)))&&(a22==1)))&&!(a11==1))&&(a19==4))){ + a25 = 1; + a29 = 5; + a11 = 1; + a20 = 1; + a7 = 1; + a24 = 1; + return 23; + } else if((((a28==1)&&(((((a22==1)&&((a0==1)&&(!(a20==1)&&((!(a24==1)&&((input==3)&&((a29==6)||(a29==7))))&&!(a7==1)))))&&(a11==1))&&(a19==5))&&!(a25==1)))&&(a14==8))){ + a25 = 1; + a24 = 1; + a0 = 0; + a29 = 8; + a19 = 2; + a7 = 1; + a11 = 0; + return 23; + } else if((((a14==9)&&((a19==5)&&((a25==1)&&((a11==1)&&((a29==5)&&(((!(a24==1)&&((a22==1)&&((input==1)&&!(a0==1))))&&!(a20==1))&&(a28==1)))))))&&!(a7==1))){ + a24 = 1; + a25 = 0; + a7 = 1; + a29 = 8; + a14 = 8; + a20 = 1; + return 24; + } else if(((a14==9)&&(!(a11==1)&&((a7==1)&&(((!(a25==1)&&((!(a24==1)&&((a22==1)&&(((input==5)&&(a19==5))&&!(a0==1))))&&(a29==5)))&&!(a20==1))&&(a28==1)))))){ + a0 = 1; + a11 = 1; + a20 = 1; + a25 = 1; + a19 = 1; + a24 = 1; + a14 = 8; + return -1; + } else if(((a22==1)&&((((a28==1)&&(!(a25==1)&&(((!(a0==1)&&(!(a7==1)&&((a24==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==5)))))&&(a14==9))&&!(a11==1))))&&(a19==2))&&!(a20==1)))){ + a24 = 0; + a14 = 8; + a19 = 5; + a29 = 8; + a25 = 1; + return 23; + } else if(((((a14==9)&&((a28==1)&&(((input==2)&&(((((a29==8)&&(!(a25==1)&&((a24==1)&&(!(a20==1)&&!(a7==1)))))&&(a19==5))||((a19==5)&&((((!(a20==1)&&!(a7==1))&&(a24==1))&&!(a25==1))&&(a29==9))))||(((a29==5)&&((a25==1)&&(!(a24==1)&&((a7==1)&&(a20==1)))))&&(a19==1))))&&(a11==1))))&&(a22==1))&&!(a0==1))){ + a19 = 5; + a24 = 0; + a20 = 1; + a29 = 5; + a11 = 0; + a0 = 1; + a7 = 0; + a25 = 1; + return -1; + } else if((((a19==1)&&(((!(a0==1)&&(!(a20==1)&&((((a11==1)&&((a22==1)&&((input==4)&&((a29==5)||(a29==6)))))&&!(a7==1))&&(a24==1))))&&(a28==1))&&(a14==9)))&&(a25==1))){ + a29 = 5; + a20 = 1; + a7 = 1; + a0 = 1; + a14 = 8; + return -1; + } else if(((a28==1)&&(((a7==1)&&((!(a11==1)&&((a19==5)&&(((a25==1)&&((a20==1)&&(((input==3)&&(a29==9))&&(a14==9))))&&(a24==1))))&&(a22==1)))&&(a0==1)))){ + a19 = 4; + a20 = 0; + a29 = 5; + a25 = 0; + a24 = 0; + a11 = 1; + a7 = 0; + return -1; + } else if(((a28==1)&&((a20==1)&&((a14==8)&&(!(a0==1)&&(((a24==1)&&(((a19==5)&&(!(a11==1)&&((a7==1)&&((input==4)&&((a29==7)||((a29==5)||(a29==6)))))))&&(a22==1)))&&!(a25==1))))))){ + a29 = 5; + a19 = 1; + a11 = 1; + a25 = 1; + a0 = 1; + return -1; + } else if(((a19==3)&&((!(a0==1)&&((a29==7)&&(((a24==1)&&((((a22==1)&&((a14==8)&&((input==5)&&(a7==1))))&&(a28==1))&&(a25==1)))&&!(a11==1))))&&!(a20==1)))){ + a11 = 1; + a14 = 9; + a19 = 1; + a24 = 0; + a25 = 0; + return 24; + } else if((((a22==1)&&(((((((a7==1)&&(((a20==1)&&((input==6)&&((a29==6)||(a29==7))))&&(a19==2)))&&!(a25==1))&&!(a24==1))&&!(a0==1))&&(a28==1))&&(a11==1)))&&(a14==8))){ + a7 = 0; + a20 = 0; + a0 = 1; + a19 = 3; + a11 = 0; + a29 = 7; + return 24; + } else if((((((a25==1)&&((a14==10)&&((a20==1)&&(((a7==1)&&(((a11==1)&&((a22==1)&&(input==5)))&&(a28==1)))&&(a24==1)))))&&(a29==5))&&(a0==1))&&(a19==4))){ + a20 = 0; + a29 = 6; + a25 = 0; + a14 = 8; + a11 = 0; + a24 = 0; + a7 = 0; + return 21; + } else if((!(a7==1)&&(!(a20==1)&&(((a14==9)&&((!(a24==1)&&(((a29==8)&&((a28==1)&&(!(a0==1)&&((a19==5)&&(input==2)))))&&(a25==1)))&&(a22==1)))&&!(a11==1))))){ + a25 = 0; + a14 = 8; + a29 = 6; + return 23; + } else if(((a28==1)&&((a11==1)&&(((((((!(a0==1)&&((a19==2)&&((input==6)&&((a29==8)||(a29==9)))))&&(a22==1))&&!(a7==1))&&!(a24==1))&&!(a20==1))&&(a14==9))&&!(a25==1))))){ + a14 = 8; + a19 = 3; + a7 = 1; + a24 = 1; + a29 = 9; + a20 = 1; + return 23; + } else if(((((((!(a24==1)&&(((((a29==5)&&(((a7==1)&&!(a20==1))&&(a25==1)))&&(a19==1))||(((a19==5)&&((a29==8)&&((!(a7==1)&&(a20==1))&&!(a25==1))))||(((a29==9)&&(!(a25==1)&&(!(a7==1)&&(a20==1))))&&(a19==5))))&&(input==6)))&&!(a0==1))&&(a28==1))&&(a14==9))&&(a22==1))&&!(a11==1))){ + a25 = 1; + a29 = 5; + a7 = 1; + a0 = 1; + a11 = 1; + a20 = 1; + a19 = 1; + a14 = 8; + a24 = 1; + return -1; + } else if((!(a24==1)&&((a22==1)&&((((a7==1)&&(!(a0==1)&&(((a14==9)&&((!(a20==1)&&(((a29==6)||(a29==7))&&(input==1)))&&!(a25==1)))&&!(a11==1))))&&(a19==5))&&(a28==1))))){ + a0 = 1; + a14 = 8; + a25 = 1; + a11 = 1; + a29 = 5; + a19 = 1; + a20 = 1; + a24 = 1; + return -1; + } else if(((((((a28==1)&&((a14==9)&&(!(a24==1)&&((a22==1)&&((((a19==4)&&(input==2))&&(a20==1))&&(a29==5))))))&&(a7==1))&&!(a25==1))&&!(a0==1))&&!(a11==1))){ + a24 = 1; + a20 = 0; + a19 = 1; + a11 = 1; + return -1; + } else if((!(a0==1)&&((a14==9)&&((!(a7==1)&&((a22==1)&&((!(a24==1)&&(((((input==6)&&((a29==5)||(a29==6)))&&(a28==1))&&!(a25==1))&&(a19==5)))&&(a20==1))))&&(a11==1))))){ + a7 = 1; + a24 = 1; + a19 = 2; + a0 = 1; + a29 = 8; + return -1; + } else if((((!(a11==1)&&((a22==1)&&((((((a14==9)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==3))&&(a24==1)))&&!(a20==1))&&(a0==1))&&(a28==1))&&!(a25==1))))&&(a19==3))&&!(a7==1))){ + a20 = 1; + a29 = 8; + a19 = 4; + a11 = 1; + a0 = 0; + a7 = 1; + a14 = 8; + return 23; + } else if(((a20==1)&&(((a0==1)&&(!(a7==1)&&((a25==1)&&((a19==1)&&((a11==1)&&(((a22==1)&&((a14==9)&&((a29==9)&&(input==4))))&&(a28==1)))))))&&(a24==1)))){ + a14 = 8; + a7 = 1; + a29 = 5; + return -1; + } else if((!(a0==1)&&((a11==1)&&(!(a24==1)&&(((a22==1)&&((!(a7==1)&&((a25==1)&&(((((a29==6)&&(a19==3))||(((a29==9)&&(a19==2))||((a19==3)&&(a29==5))))&&(input==6))&&(a28==1))))&&(a20==1)))&&(a14==8)))))){ + a29 = 5; + a19 = 1; + a7 = 1; + a0 = 1; + a24 = 1; + return -1; + } else if(((!(a0==1)&&(!(a20==1)&&((!(a24==1)&&((a14==9)&&((a11==1)&&((a22==1)&&((a7==1)&&((input==4)&&((((a19==4)&&(a29==8))||((a19==4)&&(a29==9)))||((a19==5)&&(a29==5)))))))))&&(a28==1))))&&!(a25==1))){ + a0 = 1; + a11 = 0; + a14 = 8; + a19 = 3; + a29 = 9; + return 23; + } else if((((((a19==2)&&((a11==1)&&(!(a7==1)&&((a28==1)&&(!(a0==1)&&(!(a24==1)&&((((a29==6)||(a29==7))&&(input==3))&&(a22==1))))))))&&!(a20==1))&&!(a25==1))&&(a14==9))){ + a0 = 1; + a7 = 1; + a29 = 5; + a11 = 0; + a19 = 5; + return 23; + } else if(((a22==1)&&((a14==8)&&((((a11==1)&&(((a24==1)&&((((((a29==8)||(a29==9))&&(input==2))&&!(a7==1))&&(a28==1))&&!(a20==1)))&&!(a0==1)))&&(a25==1))&&(a19==3))))){ + a7 = 1; + a25 = 0; + a29 = 7; + a19 = 2; + a0 = 1; + a11 = 0; + a24 = 0; + a14 = 9; + return 21; + } else if((!(a11==1)&&(((a7==1)&&(((a22==1)&&((a25==1)&&(!(a20==1)&&((a14==8)&&(((input==4)&&(((a19==3)&&(a29==9))||((a29==5)&&(a19==4))))&&!(a24==1))))))&&(a28==1)))&&!(a0==1)))){ + a29 = 9; + a19 = 3; + a7 = 0; + a25 = 0; + a24 = 1; + return -1; + } else if(((a22==1)&&(((a11==1)&&((a28==1)&&((((((a24==1)&&((((a29==5)||(a29==6))&&(input==6))&&(a0==1)))&&!(a20==1))&&!(a7==1))&&(a14==8))&&(a19==4))))&&!(a25==1)))){ + a29 = 5; + a7 = 1; + a20 = 1; + a25 = 1; + a19 = 1; + return -1; + } else if(((a20==1)&&((a28==1)&&((a24==1)&&((!(a11==1)&&((a7==1)&&((((input==4)&&((((a29==5)&&!(a25==1))&&(a19==1))||(((a19==5)&&((a25==1)&&(a29==8)))||(((a25==1)&&(a29==9))&&(a19==5)))))&&(a14==8))&&(a22==1))))&&!(a0==1)))))){ + a24 = 0; + a29 = 9; + a19 = 5; + a25 = 1; + a11 = 1; + a14 = 9; + return 24; + } else if(((a19==3)&&((a20==1)&&((a11==1)&&((!(a0==1)&&(((!(a24==1)&&(((a22==1)&&((input==4)&&((a29==8)||(a29==9))))&&(a7==1)))&&!(a25==1))&&(a14==8)))&&(a28==1)))))){ + a7 = 0; + a24 = 1; + a25 = 1; + a0 = 1; + a29 = 8; + return 24; + } else if((!(a24==1)&&(((a14==8)&&(!(a0==1)&&((((a29==8)&&(((a28==1)&&(((input==3)&&(a11==1))&&(a20==1)))&&!(a25==1)))&&(a19==2))&&(a22==1))))&&(a7==1)))){ + a11 = 0; + a25 = 1; + a14 = 9; + a29 = 7; + a24 = 1; + a20 = 0; + a0 = 1; + a19 = 5; + return 23; + } else if((((a11==1)&&(!(a24==1)&&(((!(a20==1)&&((a28==1)&&(((a14==8)&&((a22==1)&&(((a29==6)||(a29==7))&&(input==1))))&&(a19==1))))&&!(a25==1))&&!(a0==1))))&&!(a7==1))){ + a24 = 1; + a7 = 1; + a19 = 2; + a29 = 6; + return 23; + } else if(((!(a11==1)&&(((((!(a25==1)&&((a29==6)&&((((input==3)&&(a20==1))&&(a19==4))&&(a28==1))))&&(a22==1))&&!(a7==1))&&(a14==9))&&(a0==1)))&&(a24==1))){ + a11 = 1; + a14 = 8; + a29 = 5; + a19 = 1; + a7 = 1; + a25 = 1; + return -1; + } else if((!(a11==1)&&((!(a0==1)&&((((!(a25==1)&&(((((a22==1)&&(input==6))&&!(a20==1))&&(a14==9))&&!(a7==1)))&&!(a24==1))&&(a28==1))&&(a29==8)))&&(a19==3)))){ + a19 = 5; + a29 = 7; + a25 = 1; + a0 = 1; + return 24; + } else if(((a22==1)&&((((((a11==1)&&((a28==1)&&((a25==1)&&(((input==1)&&(((a19==4)&&(a29==6))||(((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))))&&!(a7==1)))))&&(a14==9))&&!(a24==1))&&!(a0==1))&&(a20==1)))){ + a7 = 1; + a29 = 5; + a19 = 3; + a0 = 1; + a11 = 0; + a24 = 1; + return 23; + } else if((((a22==1)&&(((a28==1)&&(((a20==1)&&((((a11==1)&&((a19==5)&&((a29==9)&&(input==4))))&&!(a24==1))&&(a14==9)))&&(a25==1)))&&(a7==1)))&&!(a0==1))){ + a0 = 1; + a29 = 5; + a14 = 8; + a19 = 1; + a24 = 1; + return -1; + } else if((!(a20==1)&&(((a28==1)&&((((a14==8)&&(((a25==1)&&((((input==2)&&((a29==7)||(a29==8)))&&!(a11==1))&&(a22==1)))&&(a0==1)))&&(a7==1))&&(a19==4)))&&!(a24==1)))){ + a29 = 5; + a20 = 1; + a19 = 3; + a7 = 0; + a24 = 1; + a14 = 9; + return 23; + } else if((!(a20==1)&&(!(a0==1)&&(((!(a24==1)&&(((a19==5)&&((a22==1)&&((a25==1)&&(((input==5)&&!(a11==1))&&(a28==1)))))&&(a29==5)))&&(a14==8))&&!(a7==1))))){ + a11 = 1; + a20 = 1; + a7 = 1; + a0 = 1; + a19 = 1; + a24 = 1; + return -1; + } else if(((((((a28==1)&&((a7==1)&&(!(a25==1)&&(!(a20==1)&&(((a11==1)&&((input==3)&&((a29==8)||(a29==9))))&&(a0==1))))))&&(a24==1))&&(a14==10))&&(a19==5))&&(a22==1))){ + a29 = 5; + a19 = 1; + a14 = 8; + a25 = 1; + a20 = 1; + return -1; + } else if(((a14==8)&&((((((((((input==1)&&(((a19==3)&&(a29==9))||((a19==4)&&(a29==5))))&&!(a25==1))&&(a22==1))&&!(a11==1))&&(a20==1))&&(a24==1))&&!(a7==1))&&(a28==1))&&(a0==1)))){ + a19 = 5; + a11 = 1; + a29 = 8; + a0 = 0; + a25 = 1; + a20 = 0; + return 21; + } else if(((a22==1)&&((a0==1)&&(((!(a20==1)&&((((a14==9)&&((!(a24==1)&&((input==6)&&((a29==8)||(a29==9))))&&(a19==1)))&&(a25==1))&&!(a11==1)))&&(a7==1))&&(a28==1))))){ + a14 = 8; + a7 = 0; + a29 = 6; + a25 = 0; + a19 = 2; + return 24; + } else if(((a22==1)&&((a7==1)&&((((a14==9)&&(((((((a19==1)&&(input==5))&&(a0==1))&&!(a25==1))&&!(a11==1))&&(a24==1))&&(a28==1)))&&(a29==8))&&!(a20==1))))){ + a7 = 0; + a11 = 1; + a19 = 2; + a25 = 1; + a29 = 5; + return -1; + } else if(((((a14==8)&&(((a0==1)&&(((a24==1)&&(!(a20==1)&&(((a7==1)&&((a25==1)&&(input==6)))&&(a11==1))))&&(a28==1)))&&(a29==6)))&&(a22==1))&&(a19==2))){ + a29 = 7; + a19 = 1; + a7 = 0; + a20 = 1; + a24 = 0; + a25 = 0; + return 23; + } else if((((a24==1)&&((a20==1)&&((!(a0==1)&&((((a28==1)&&((a22==1)&&((a14==8)&&((input==4)&&((a29==9)||((a29==7)||(a29==8)))))))&&!(a25==1))&&!(a7==1)))&&(a11==1))))&&(a19==5))){ + a19 = 1; + a7 = 1; + a25 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if(((a20==1)&&((!(a7==1)&&(((a19==5)&&((!(a11==1)&&(((((a0==1)&&(input==5))&&(a28==1))&&(a29==5))&&(a22==1)))&&(a25==1)))&&(a14==8)))&&!(a24==1)))){ + a20 = 0; + a0 = 0; + a25 = 0; + a19 = 2; + a11 = 1; + a7 = 1; + a29 = 9; + a24 = 1; + return 21; + } else if((((a24==1)&&(((a14==8)&&((a25==1)&&(((a0==1)&&(((!(a11==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==1)))&&!(a7==1))&&(a28==1)))&&(a20==1))))&&(a22==1)))&&(a19==2))){ + a0 = 0; + a19 = 3; + a24 = 0; + a29 = 5; + return 21; + } else if(((((!(a24==1)&&((((a20==1)&&((a28==1)&&((a22==1)&&((input==6)&&((((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))||((a29==6)&&(a19==2)))))))&&!(a0==1))&&(a25==1)))&&(a14==8))&&!(a11==1))&&!(a7==1))){ + a24 = 1; + a19 = 3; + a29 = 8; + a14 = 9; + return 21; + } else if((((a22==1)&&(((((a14==9)&&((((((input==4)&&!(a11==1))&&(a28==1))&&(a20==1))&&(a29==7))&&!(a7==1)))&&(a19==3))&&(a24==1))&&(a25==1)))&&(a0==1))){ + a7 = 1; + a29 = 5; + a14 = 8; + a11 = 1; + a19 = 1; + return -1; + } else if(((a11==1)&&((a7==1)&&((a19==4)&&((a28==1)&&(((a20==1)&&((((((input==2)&&(a22==1))&&(a29==9))&&(a14==9))&&!(a25==1))&&!(a24==1)))&&!(a0==1))))))){ + a0 = 1; + a29 = 8; + a20 = 0; + a19 = 1; + a25 = 1; + return 24; + } else if((((!(a0==1)&&((!(a7==1)&&((a22==1)&&((((((input==3)&&(a14==8))&&!(a20==1))&&(a24==1))&&(a19==5))&&(a11==1))))&&!(a25==1)))&&(a28==1))&&(a29==5))){ + a0 = 1; + a24 = 0; + a29 = 8; + a25 = 1; + a11 = 0; + a14 = 9; + return 24; + } else if(((a19==4)&&((a11==1)&&((a25==1)&&((a7==1)&&((a20==1)&&(((a28==1)&&((a22==1)&&((a14==8)&&((((a29==8)||(a29==9))&&(input==5))&&(a0==1)))))&&!(a24==1)))))))){ + a24 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((((a14==9)&&((((a24==1)&&((((a7==1)&&((a25==1)&&(((input==3)&&(((a29==6)||(a29==7))||(a29==8)))&&(a20==1))))&&!(a11==1))&&!(a0==1)))&&(a19==3))&&(a22==1)))&&(a28==1))){ + a25 = 0; + a29 = 6; + a20 = 0; + a11 = 1; + a14 = 8; + a7 = 0; + return 24; + } else if(((((((a0==1)&&(((((((input==3)&&!(a24==1))&&(a7==1))&&(a22==1))&&(a14==8))&&(a29==6))&&(a25==1)))&&!(a20==1))&&(a11==1))&&(a19==2))&&(a28==1))){ + a29 = 7; + a25 = 0; + a7 = 0; + a20 = 1; + a0 = 0; + a24 = 1; + return 23; + } else if(((((a22==1)&&((a20==1)&&((a7==1)&&(!(a25==1)&&(!(a0==1)&&((((a19==2)&&(((a29==7)||(a29==8))&&(input==3)))&&!(a24==1))&&(a14==8)))))))&&!(a11==1))&&(a28==1))){ + a29 = 7; + a24 = 1; + a19 = 4; + a14 = 9; + return 21; + } else if(((a28==1)&&((a14==8)&&((((a22==1)&&(((!(a7==1)&&(!(a20==1)&&(((input==5)&&((a29==8)||(a29==9)))&&(a19==2))))&&(a0==1))&&(a11==1)))&&(a24==1))&&!(a25==1))))){ + a29 = 9; + a7 = 1; + a20 = 1; + a11 = 0; + a24 = 0; + return 23; + } else if((((((a22==1)&&(((a19==4)&&((((a14==8)&&(!(a25==1)&&((input==4)&&((a29==7)||((a29==5)||(a29==6))))))&&!(a0==1))&&!(a7==1)))&&!(a11==1)))&&(a28==1))&&!(a24==1))&&!(a20==1))){ + a20 = 1; + a29 = 7; + a19 = 3; + a14 = 9; + a7 = 1; + return 21; + } else if((!(a0==1)&&((((!(a7==1)&&(((((a14==8)&&((a24==1)&&(((a29==6)||(a29==7))&&(input==2))))&&(a22==1))&&!(a20==1))&&(a11==1)))&&(a19==4))&&!(a25==1))&&(a28==1)))){ + a19 = 5; + a24 = 0; + a11 = 0; + a25 = 1; + a0 = 1; + a29 = 7; + a14 = 9; + return 24; + } else if((((a20==1)&&((!(a24==1)&&(((((a14==9)&&((a7==1)&&((a28==1)&&((input==2)&&!(a0==1)))))&&!(a11==1))&&!(a25==1))&&(a19==4)))&&(a29==6)))&&(a22==1))){ + a24 = 1; + a19 = 1; + a20 = 0; + a25 = 1; + a29 = 7; + a14 = 8; + a11 = 1; + return -1; + } else if(((a11==1)&&(((!(a0==1)&&(!(a24==1)&&((((((((a19==5)&&(a29==6))||(((a29==9)&&(a19==4))||((a29==5)&&(a19==5))))&&(input==4))&&(a14==9))&&(a25==1))&&!(a20==1))&&(a28==1))))&&(a7==1))&&(a22==1)))){ + a7 = 0; + a11 = 0; + a14 = 8; + a29 = 9; + a0 = 1; + a19 = 1; + return 24; + } else if(((a22==1)&&(((((a28==1)&&((((a19==3)&&(((a11==1)&&(!(a0==1)&&(input==2)))&&!(a25==1)))&&!(a7==1))&&(a14==8)))&&(a24==1))&&!(a20==1))&&(a29==5)))){ + a0 = 1; + a20 = 1; + a19 = 1; + a25 = 1; + a7 = 1; + return -1; + } else if((((a25==1)&&(((a22==1)&&(((a11==1)&&(!(a7==1)&&((((((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))&&(input==2))&&!(a0==1))&&(a20==1))))&&(a24==1)))&&(a14==8)))&&(a28==1))){ + a19 = 5; + a25 = 0; + a29 = 9; + a11 = 0; + a20 = 0; + a0 = 1; + a24 = 0; + return -1; + } else if((((a22==1)&&(((a14==10)&&((((a28==1)&&((!(a20==1)&&(!(a25==1)&&((input==1)&&(((a29==6)||(a29==7))||(a29==8)))))&&(a24==1)))&&(a19==4))&&(a7==1)))&&(a0==1)))&&(a11==1))){ + a20 = 1; + a29 = 5; + a19 = 1; + a25 = 1; + a14 = 8; + return -1; + } else if(((a0==1)&&((a28==1)&&(((a14==10)&&((a19==1)&&((((!(a25==1)&&(((input==2)&&((a29==7)||((a29==5)||(a29==6))))&&(a20==1)))&&(a11==1))&&(a7==1))&&!(a24==1))))&&(a22==1))))){ + a20 = 0; + a24 = 1; + a29 = 6; + return -1; + } else if(((a22==1)&&(!(a7==1)&&((a25==1)&&(((((((a11==1)&&(((input==6)&&((a29==8)||(a29==9)))&&(a20==1)))&&(a28==1))&&(a19==1))&&!(a0==1))&&(a14==8))&&!(a24==1)))))){ + a24 = 1; + a7 = 1; + a25 = 0; + a19 = 2; + a29 = 8; + return 23; + } else if(((((a22==1)&&((((((!(a25==1)&&((((a29==5)||(a29==6))&&(input==5))&&(a7==1)))&&(a19==2))&&(a20==1))&&(a28==1))&&!(a24==1))&&!(a0==1)))&&!(a11==1))&&(a14==9))){ + a7 = 0; + a20 = 0; + a29 = 7; + a24 = 1; + return -1; + } else if(((a22==1)&&((((((((a0==1)&&((a25==1)&&((a7==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==4)))))&&!(a20==1))&&(a24==1))&&(a14==9))&&!(a11==1))&&(a28==1))&&(a19==5)))){ + a11 = 1; + a19 = 1; + a24 = 0; + a29 = 7; + return 23; + } else if(((((a22==1)&&((((!(a11==1)&&((((((a19==5)&&(a29==5))||(((a19==4)&&(a29==8))||((a19==4)&&(a29==9))))&&(input==5))&&(a20==1))&&(a24==1)))&&!(a0==1))&&(a25==1))&&!(a7==1)))&&(a28==1))&&(a14==8))){ + a19 = 5; + a25 = 0; + a29 = 8; + a20 = 0; + a24 = 0; + a0 = 1; + a7 = 1; + return 24; + } else if(((a0==1)&&(((((a11==1)&&((a25==1)&&((a19==2)&&((a28==1)&&((a20==1)&&((a29==5)&&((input==3)&&(a24==1))))))))&&(a14==9))&&(a22==1))&&(a7==1)))){ + a19 = 1; + a14 = 8; + return -1; + } else if((((a25==1)&&((!(a11==1)&&(((((a7==1)&&((!(a0==1)&&((input==5)&&(a29==9)))&&(a28==1)))&&(a20==1))&&(a14==9))&&(a22==1)))&&(a19==1)))&&(a24==1))){ + a29 = 8; + a19 = 5; + a14 = 8; + return 23; + } else if(((a28==1)&&(!(a24==1)&&((!(a7==1)&&(((!(a0==1)&&((a22==1)&&(((a20==1)&&((input==1)&&((a29==9)||((a29==7)||(a29==8)))))&&(a25==1))))&&(a14==8))&&(a11==1)))&&(a19==3))))){ + a29 = 8; + a19 = 1; + a24 = 1; + return 23; + } else if(((((a14==8)&&((a20==1)&&((a11==1)&&((((!(a0==1)&&((a25==1)&&((input==5)&&(a19==1))))&&(a22==1))&&(a7==1))&&(a29==9)))))&&(a24==1))&&(a28==1))){ + a19 = 4; + a0 = 1; + a20 = 0; + a24 = 0; + a11 = 0; + a25 = 0; + return -1; + } else if((((a28==1)&&((a22==1)&&(((a20==1)&&((((((a19==4)&&((input==2)&&((a29==7)||(a29==8))))&&!(a24==1))&&(a14==9))&&!(a0==1))&&!(a25==1)))&&(a7==1))))&&(a11==1))){ + a29 = 5; + a24 = 1; + a25 = 1; + a11 = 0; + a19 = 5; + a0 = 1; + a20 = 0; + return -1; + } else if(((!(a24==1)&&((a0==1)&&((a25==1)&&(((a7==1)&&((((((((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))||((a29==6)&&(a19==3)))&&(input==1))&&(a22==1))&&(a14==9))&&(a28==1)))&&!(a11==1)))))&&!(a20==1))){ + a20 = 1; + a11 = 1; + a19 = 3; + a24 = 1; + a25 = 0; + a29 = 6; + return 21; + } else if(((a11==1)&&(!(a24==1)&&((a22==1)&&((a25==1)&&(((a0==1)&&(((((input==6)&&(((a19==3)&&(a29==5))||(((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))))&&(a28==1))&&(a14==10))&&(a7==1)))&&(a20==1))))))){ + a7 = 0; + a19 = 4; + a29 = 5; + a14 = 9; + a11 = 0; + return 24; + } else if((((((!(a24==1)&&(((!(a7==1)&&((a19==1)&&((a14==8)&&((input==2)&&(a22==1)))))&&(a20==1))&&(a11==1)))&&(a0==1))&&(a29==6))&&(a25==1))&&(a28==1))){ + a7 = 1; + a24 = 1; + a20 = 0; + a19 = 4; + a29 = 7; + a0 = 0; + return 24; + } else if(((a22==1)&&((a28==1)&&((a14==9)&&(!(a20==1)&&((a11==1)&&(((a25==1)&&(!(a0==1)&&((a7==1)&&((input==2)&&(((a19==5)&&(a29==6))||(((a19==4)&&(a29==9))||((a29==5)&&(a19==5))))))))&&!(a24==1)))))))){ + a24 = 1; + a29 = 5; + a20 = 1; + a19 = 1; + a0 = 1; + a14 = 8; + return -1; + } else if((((a19==1)&&(((a28==1)&&((a11==1)&&(((a24==1)&&((a25==1)&&((((input==2)&&((a29==5)||(a29==6)))&&(a22==1))&&!(a0==1))))&&(a14==9))))&&!(a7==1)))&&!(a20==1))){ + a14 = 8; + a7 = 1; + a29 = 5; + a0 = 1; + a20 = 1; + return -1; + } else if(((a20==1)&&(((a14==8)&&((a29==7)&&((a22==1)&&((a25==1)&&((a19==2)&&(!(a11==1)&&(((a0==1)&&((input==1)&&(a7==1)))&&(a28==1))))))))&&!(a24==1)))){ + a24 = 1; + a19 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if(((a19==5)&&((((a7==1)&&((((((((a0==1)&&(input==6))&&(a22==1))&&(a11==1))&&(a24==1))&&(a14==10))&&(a29==8))&&(a25==1)))&&(a28==1))&&!(a20==1)))){ + a20 = 1; + a25 = 0; + a14 = 9; + a24 = 0; + a29 = 9; + a19 = 1; + return 24; + } else if(((a19==5)&&(!(a7==1)&&(!(a24==1)&&(((!(a11==1)&&(((((((a29==5)||(a29==6))&&(input==3))&&!(a25==1))&&!(a0==1))&&(a14==9))&&(a28==1)))&&(a22==1))&&!(a20==1)))))){ + a29 = 7; + a19 = 3; + a14 = 8; + a25 = 1; + return -1; + } else if(((a20==1)&&((a11==1)&&(((((a22==1)&&(((a14==9)&&((a0==1)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==6))&&(a28==1))))&&!(a24==1)))&&(a19==4))&&(a25==1))&&!(a7==1))))){ + a14 = 10; + a24 = 1; + a29 = 6; + a25 = 0; + a7 = 1; + a20 = 0; + return 23; + } else if(((((a22==1)&&((((a0==1)&&(!(a11==1)&&((a20==1)&&((a7==1)&&((!(a24==1)&&(input==5))&&(a29==5))))))&&(a25==1))&&(a28==1)))&&(a19==5))&&(a14==9))){ + a11 = 1; + a24 = 1; + return 21; + } else if(((a20==1)&&((a0==1)&&((((!(a24==1)&&(((a25==1)&&((a19==3)&&((a22==1)&&(((a29==6)||(a29==7))&&(input==5)))))&&(a28==1)))&&(a14==9))&&!(a7==1))&&!(a11==1))))){ + a24 = 1; + a11 = 1; + a19 = 1; + a14 = 8; + a29 = 5; + a7 = 1; + return -1; + } else if((((((((!(a11==1)&&((a24==1)&&(((a28==1)&&((input==4)&&((a29==5)||(a29==6))))&&!(a7==1))))&&(a14==9))&&(a22==1))&&(a19==3))&&(a25==1))&&(a0==1))&&(a20==1))){ + a0 = 0; + a25 = 0; + a11 = 1; + a29 = 6; + a7 = 1; + a14 = 8; + a19 = 5; + a20 = 0; + return 24; + } else if(((((a19==2)&&(((a25==1)&&(!(a20==1)&&((a22==1)&&((a24==1)&&((a7==1)&&(((input==5)&&(((a29==5)||(a29==6))||(a29==7)))&&(a28==1)))))))&&(a14==9)))&&(a0==1))&&(a11==1))){ + a7 = 0; + a14 = 8; + a19 = 5; + a24 = 0; + a11 = 0; + a29 = 5; + return 21; + } else if(((a22==1)&&((a24==1)&&(((a0==1)&&((a20==1)&&((a19==2)&&(((((a28==1)&&(((a29==7)||(a29==8))&&(input==6)))&&(a11==1))&&!(a25==1))&&!(a7==1)))))&&(a14==9))))){ + a7 = 1; + a29 = 7; + a14 = 8; + a0 = 0; + a25 = 1; + return 23; + } else if((!(a24==1)&&((a22==1)&&(((((((((a0==1)&&((input==6)&&((a29==6)||(a29==7))))&&(a28==1))&&(a19==3))&&(a7==1))&&(a25==1))&&(a20==1))&&(a11==1))&&(a14==8))))){ + a19 = 5; + a11 = 0; + a20 = 0; + a29 = 7; + a25 = 0; + return 21; + } else if(((!(a11==1)&&((((a20==1)&&((a14==9)&&((((!(a0==1)&&((input==5)&&(a7==1)))&&(a29==8))&&(a19==1))&&(a28==1))))&&(a25==1))&&(a22==1)))&&(a24==1))){ + a29 = 9; + a19 = 2; + a24 = 0; + a14 = 8; + a7 = 0; + return 21; + } return calculate_output41(input); + } + + int calculate_output41(int input) { + if(((a28==1)&&((((((a22==1)&&((a25==1)&&((a19==3)&&((a0==1)&&((((a29==6)||(a29==7))&&(input==3))&&!(a11==1))))))&&(a20==1))&&!(a24==1))&&(a14==9))&&!(a7==1)))){ + a7 = 1; + a14 = 8; + a24 = 1; + a29 = 5; + a11 = 1; + a19 = 1; + return -1; + } else if(((a29==6)&&((((((a28==1)&&((a0==1)&&((((a22==1)&&((input==3)&&(a11==1)))&&(a24==1))&&!(a7==1))))&&(a19==1))&&(a14==9))&&!(a25==1))&&!(a20==1)))){ + a29 = 8; + a14 = 8; + a20 = 1; + a0 = 0; + a24 = 0; + a11 = 0; + return -1; + } else if((!(a24==1)&&(!(a25==1)&&(((a0==1)&&(((a14==8)&&((a22==1)&&((((((a29==5)&&(a19==2))||(((a29==8)&&(a19==1))||((a19==1)&&(a29==9))))&&(input==6))&&!(a20==1))&&(a28==1))))&&!(a7==1)))&&(a11==1))))){ + a0 = 0; + a20 = 1; + a11 = 0; + a29 = 9; + a19 = 4; + a25 = 1; + a24 = 1; + return 23; + } else if(((((a29==6)&&(((a20==1)&&(((!(a7==1)&&(((a19==3)&&((a14==8)&&(input==5)))&&!(a11==1)))&&!(a0==1))&&!(a24==1)))&&(a28==1)))&&(a22==1))&&!(a25==1))){ + a19 = 2; + a24 = 1; + a11 = 1; + a29 = 7; + a7 = 1; + return 23; + } else if(((((((!(a20==1)&&((((((((a29==5)||(a29==6))||(a29==7))&&(input==5))&&(a14==8))&&!(a0==1))&&!(a25==1))&&!(a11==1)))&&(a7==1))&&(a28==1))&&(a19==4))&&(a24==1))&&(a22==1))){ + a25 = 1; + a0 = 1; + a11 = 1; + a19 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if((((((a7==1)&&(((a14==9)&&(((a11==1)&&((a25==1)&&((input==2)&&((((a29==8)&&(a19==3))||((a29==9)&&(a19==3)))||((a19==4)&&(a29==5))))))&&(a20==1)))&&!(a24==1)))&&(a28==1))&&(a22==1))&&!(a0==1))){ + a14 = 8; + a29 = 9; + a19 = 1; + a24 = 1; + a7 = 0; + return 21; + } else if((((a14==8)&&((a20==1)&&(!(a7==1)&&((((!(a0==1)&&((!(a11==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==6)))&&(a28==1)))&&(a22==1))&&!(a25==1))&&(a24==1)))))&&(a19==4))){ + a19 = 2; + a11 = 1; + a7 = 1; + a20 = 0; + a29 = 9; + return 21; + } else if((((a28==1)&&(!(a7==1)&&((((!(a11==1)&&((a14==9)&&((((input==6)&&((a29==8)||((a29==6)||(a29==7))))&&(a19==3))&&(a24==1))))&&!(a20==1))&&(a22==1))&&(a0==1))))&&!(a25==1))){ + a7 = 1; + a14 = 8; + a20 = 1; + a25 = 1; + a11 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if((((a19==5)&&(((a28==1)&&((a25==1)&&((a24==1)&&((a14==8)&&((a20==1)&&((((input==5)&&!(a7==1))&&(a0==1))&&(a29==9)))))))&&(a11==1)))&&(a22==1))){ + a25 = 0; + a20 = 0; + a7 = 1; + a19 = 2; + return 21; + } else if(((a0==1)&&((a28==1)&&(((((a14==8)&&((a22==1)&&(!(a11==1)&&((((a25==1)&&(input==2))&&!(a20==1))&&!(a7==1)))))&&(a29==6))&&(a19==2))&&!(a24==1))))){ + a14 = 9; + a29 = 7; + a7 = 1; + a24 = 1; + a19 = 3; + a25 = 0; + return 21; + } else if(((((((a28==1)&&((a7==1)&&(((!(a20==1)&&((((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))&&(input==5)))&&(a11==1))&&(a0==1))))&&(a22==1))&&!(a24==1))&&!(a25==1))&&(a14==9))){ + a25 = 1; + a19 = 1; + a14 = 8; + a20 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if((((a14==9)&&((a28==1)&&((((((a7==1)&&((a20==1)&&((input==3)&&(((a29==9)&&(a19==1))||((a29==5)&&(a19==2))))))&&!(a24==1))&&(a0==1))&&(a22==1))&&!(a25==1))))&&(a11==1))){ + a25 = 1; + a29 = 5; + a14 = 8; + a19 = 1; + a24 = 1; + return -1; + } else if((((a0==1)&&((!(a11==1)&&(!(a20==1)&&((!(a25==1)&&(((a7==1)&&((input==1)&&(((a29==6)&&(a19==4))||(((a19==3)&&(a29==9))||((a19==4)&&(a29==5))))))&&(a14==8)))&&(a24==1))))&&(a22==1)))&&(a28==1))){ + a11 = 1; + a19 = 3; + a20 = 1; + a14 = 9; + a29 = 5; + a25 = 1; + a7 = 0; + return 24; + } else if(((a25==1)&&((((a22==1)&&(((((a28==1)&&(!(a7==1)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==4))&&(a14==8))))&&(a19==4))&&!(a0==1))&&!(a20==1)))&&(a11==1))&&!(a24==1)))){ + a0 = 1; + a29 = 9; + a11 = 0; + return -1; + } else if((((a28==1)&&(((!(a0==1)&&(((input==6)&&(((a19==1)&&((a29==5)&&((a25==1)&&((a7==1)&&!(a20==1)))))||(((a19==5)&&(((!(a7==1)&&(a20==1))&&!(a25==1))&&(a29==8)))||((a19==5)&&((!(a25==1)&&(!(a7==1)&&(a20==1)))&&(a29==9))))))&&!(a24==1)))&&(a14==8))&&(a22==1)))&&(a11==1))){ + a29 = 9; + a0 = 1; + a14 = 9; + a25 = 1; + a7 = 0; + a20 = 0; + a19 = 4; + return 21; + } else if((!(a0==1)&&((a24==1)&&(((!(a25==1)&&(((((a19==2)&&(((input==2)&&((a29==7)||((a29==5)||(a29==6))))&&!(a20==1)))&&(a22==1))&&(a7==1))&&(a28==1)))&&(a14==9))&&(a11==1))))){ + a19 = 5; + a14 = 8; + a24 = 0; + a29 = 9; + return 24; + } else if(((a20==1)&&(((((a7==1)&&((((!(a24==1)&&(((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))||((a29==6)&&(a19==4)))&&(input==2)))&&(a22==1))&&(a25==1))&&!(a0==1)))&&(a28==1))&&(a11==1))&&(a14==8)))){ + a24 = 1; + a19 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if(((a29==9)&&((a14==9)&&((a28==1)&&((a11==1)&&((((((a19==1)&&((a7==1)&&((input==2)&&(a20==1))))&&(a25==1))&&(a22==1))&&(a0==1))&&(a24==1))))))){ + a25 = 0; + a24 = 0; + a7 = 0; + a11 = 0; + a29 = 7; + a19 = 5; + return 24; + } else if((((((a22==1)&&((!(a11==1)&&(!(a20==1)&&((!(a7==1)&&((input==5)&&((((a19==1)&&(a29==8))||((a29==9)&&(a19==1)))||((a29==5)&&(a19==2)))))&&(a0==1))))&&(a14==8)))&&(a25==1))&&!(a24==1))&&(a28==1))){ + a20 = 1; + a11 = 1; + a24 = 1; + a29 = 5; + a19 = 4; + a25 = 0; + return -1; + } else if((((a0==1)&&((a22==1)&&((a14==8)&&((a28==1)&&(((((a24==1)&&(((a29==9)&&(input==2))&&(a11==1)))&&(a19==3))&&!(a20==1))&&(a7==1))))))&&(a25==1))){ + a24 = 0; + a29 = 6; + a19 = 2; + return 21; + } else if(((a7==1)&&(((!(a11==1)&&((a14==8)&&(((a20==1)&&((((input==5)&&(((a19==2)&&(a29==9))||((a29==5)&&(a19==3))))&&(a22==1))&&!(a25==1)))&&(a28==1))))&&(a0==1))&&(a24==1)))){ + a0 = 0; + a24 = 0; + a25 = 1; + a19 = 4; + a29 = 8; + return 21; + } else if(((a19==3)&&((a14==9)&&((a24==1)&&((a22==1)&&((a28==1)&&(((((((input==1)&&(((a29==5)||(a29==6))||(a29==7)))&&!(a11==1))&&!(a7==1))&&!(a25==1))&&!(a20==1))&&!(a0==1)))))))){ + a0 = 1; + a7 = 1; + a11 = 1; + a29 = 8; + return 23; + } else if((((a7==1)&&((a25==1)&&(((a20==1)&&((((a14==10)&&((a0==1)&&((((a29==8)||(a29==9))&&(input==2))&&(a19==2))))&&(a24==1))&&(a11==1)))&&(a28==1))))&&(a22==1))){ + a29 = 8; + a7 = 0; + a0 = 0; + a19 = 4; + a25 = 0; + a14 = 8; + return -1; + } else if(((a24==1)&&((!(a11==1)&&(((a25==1)&&((a14==8)&&((!(a0==1)&&((a28==1)&&((input==6)&&((((a29==8)&&(a19==2))||((a19==2)&&(a29==9)))||((a29==5)&&(a19==3))))))&&(a22==1))))&&!(a20==1)))&&(a7==1)))){ + a19 = 1; + a29 = 5; + a0 = 1; + a20 = 1; + a11 = 1; + return -1; + } else if(((((((a14==8)&&((input==5)&&(((((!(a25==1)&&((a24==1)&&(!(a7==1)&&!(a20==1))))&&(a29==9))&&(a19==5))||((a19==1)&&((a29==5)&&((((a7==1)&&(a20==1))&&!(a24==1))&&(a25==1)))))||((a19==1)&&(((a25==1)&&(!(a24==1)&&((a7==1)&&(a20==1))))&&(a29==6))))))&&(a28==1))&&!(a0==1))&&(a22==1))&&(a11==1))){ + a29 = 8; + a0 = 1; + a19 = 3; + a25 = 0; + a20 = 0; + a14 = 9; + a7 = 0; + a24 = 0; + a11 = 0; + return 24; + } else if((!(a11==1)&&((((a25==1)&&((a19==3)&&(((((a20==1)&&((a14==9)&&((input==1)&&((a29==5)||(a29==6)))))&&(a0==1))&&(a22==1))&&!(a7==1))))&&(a24==1))&&(a28==1)))){ + a29 = 9; + a20 = 0; + a11 = 1; + a19 = 2; + return 23; + } else if(((((a22==1)&&((((!(a11==1)&&(((a25==1)&&((input==4)&&(((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))))&&(a14==8)))&&(a28==1))&&(a20==1))&&(a24==1)))&&(a0==1))&&(a7==1))){ + a19 = 1; + a7 = 0; + a29 = 9; + a0 = 0; + a20 = 0; + return 21; + } else if(((a20==1)&&((!(a0==1)&&((((a24==1)&&((a14==9)&&(!(a25==1)&&(!(a11==1)&&((((a29==6)&&(a19==4))||(((a19==3)&&(a29==9))||((a29==5)&&(a19==4))))&&(input==4))))))&&(a7==1))&&(a22==1)))&&(a28==1)))){ + a19 = 2; + a11 = 1; + a29 = 9; + a14 = 8; + return -1; + } else if((!(a25==1)&&(((a29==8)&&((a19==2)&&((((a7==1)&&(((a22==1)&&(!(a0==1)&&((a24==1)&&(input==6))))&&(a28==1)))&&(a14==9))&&(a20==1))))&&!(a11==1)))){ + a29 = 9; + a0 = 1; + a25 = 1; + a11 = 1; + a20 = 0; + return 24; + } else if(((a28==1)&&(((a29==5)&&((a7==1)&&((a0==1)&&(!(a11==1)&&((a25==1)&&((((a20==1)&&((a19==3)&&(input==4)))&&(a24==1))&&(a22==1)))))))&&(a14==9)))){ + a24 = 0; + a19 = 2; + a11 = 1; + a29 = 9; + return 21; + } else if(((a28==1)&&((a11==1)&&((a24==1)&&(((a7==1)&&((((a29==9)&&((a20==1)&&((a14==8)&&((a19==3)&&(input==3)))))&&(a25==1))&&!(a0==1)))&&(a22==1)))))){ + a29 = 7; + a19 = 2; + a11 = 0; + a24 = 0; + a7 = 0; + a0 = 1; + a20 = 0; + return -1; + } else if(((a19==1)&&(((a28==1)&&((a24==1)&&(!(a25==1)&&(((a20==1)&&((a11==1)&&((a0==1)&&((a14==10)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==5))))))&&(a22==1)))))&&(a7==1)))){ + a14 = 9; + a0 = 0; + a11 = 0; + a7 = 0; + a25 = 1; + a29 = 8; + a20 = 0; + return -1; + } else if(((((((!(a0==1)&&((((a19==2)&&(!(a20==1)&&((input==1)&&(((a29==6)||(a29==7))||(a29==8)))))&&(a28==1))&&(a24==1)))&&!(a25==1))&&(a22==1))&&(a14==8))&&(a7==1))&&!(a11==1))){ + a19 = 1; + a29 = 5; + a11 = 1; + a0 = 1; + a20 = 1; + a25 = 1; + return -1; + } else if((!(a25==1)&&((a29==6)&&(((a19==3)&&(((a11==1)&&(((a22==1)&&((!(a20==1)&&((a14==9)&&(input==3)))&&(a0==1)))&&(a24==1)))&&!(a7==1)))&&(a28==1))))){ + a29 = 7; + a19 = 2; + a25 = 1; + a14 = 10; + a20 = 1; + return 24; + } else if((!(a11==1)&&((a19==3)&&(!(a7==1)&&(((!(a24==1)&&((((((input==4)&&(a25==1))&&(a29==5))&&!(a20==1))&&(a28==1))&&(a14==9)))&&!(a0==1))&&(a22==1)))))){ + a14 = 8; + a29 = 8; + a19 = 5; + a11 = 1; + a24 = 1; + return 23; + } else if((((((a24==1)&&((a11==1)&&((((a0==1)&&(((a28==1)&&((a22==1)&&(input==2)))&&(a29==5)))&&(a19==2))&&(a7==1))))&&(a25==1))&&(a14==8))&&!(a20==1))){ + a24 = 0; + a19 = 4; + a7 = 0; + a29 = 7; + a20 = 1; + return 24; + } else if(((a20==1)&&(!(a0==1)&&(((((((a19==1)&&(!(a11==1)&&((a24==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==3)))))&&(a14==9))&&(a22==1))&&(a28==1))&&!(a25==1))&&!(a7==1))))){ + a0 = 1; + a25 = 1; + a19 = 5; + a29 = 6; + a7 = 1; + a24 = 0; + return -1; + } else if((((a14==8)&&((((a25==1)&&((((a20==1)&&((((a29==8)&&(input==4))&&(a7==1))&&(a22==1)))&&(a28==1))&&(a11==1)))&&(a19==5))&&(a24==1)))&&!(a0==1))){ + a29 = 5; + a0 = 1; + a19 = 1; + return -1; + } else if(((a0==1)&&((a22==1)&&((a14==10)&&((a24==1)&&((((a20==1)&&((a11==1)&&((a7==1)&&((((a29==6)||(a29==7))&&(input==5))&&(a28==1)))))&&(a19==2))&&!(a25==1))))))){ + a11 = 0; + a25 = 1; + a29 = 8; + a14 = 9; + a19 = 4; + return -1; + } else if(((((((!(a7==1)&&(((a28==1)&&((((input==5)&&!(a20==1))&&(a25==1))&&(a29==9)))&&!(a11==1)))&&(a22==1))&&(a0==1))&&(a14==8))&&(a19==4))&&(a24==1))){ + a14 = 9; + a7 = 1; + a29 = 7; + a25 = 0; + a11 = 1; + return 21; + } else if((((((((a20==1)&&((((a14==9)&&((a22==1)&&(((a29==7)||(a29==8))&&(input==4))))&&!(a25==1))&&(a24==1)))&&!(a7==1))&&!(a11==1))&&(a0==1))&&(a19==3))&&(a28==1))){ + a0 = 0; + a20 = 0; + a29 = 9; + a7 = 1; + a14 = 8; + return 23; + } else if((((a14==10)&&((((a28==1)&&((a22==1)&&((((a0==1)&&(((input==4)&&(((a29==5)||(a29==6))||(a29==7)))&&(a25==1)))&&(a7==1))&&(a19==5))))&&(a24==1))&&!(a20==1)))&&(a11==1))){ + a25 = 0; + a24 = 0; + a7 = 0; + a19 = 1; + a14 = 8; + a29 = 6; + a11 = 0; + return -1; + } else if((((a28==1)&&((a19==3)&&((((a0==1)&&(!(a7==1)&&(((((input==3)&&((a29==7)||((a29==5)||(a29==6))))&&(a25==1))&&(a14==8))&&!(a24==1))))&&(a20==1))&&(a22==1))))&&!(a11==1))){ + a7 = 1; + a14 = 9; + a19 = 5; + a11 = 1; + a20 = 0; + a29 = 8; + return 21; + } else if(((((a14==9)&&((a7==1)&&((a25==1)&&((((a22==1)&&(!(a0==1)&&((((a19==2)&&(a29==5))||(((a19==1)&&(a29==8))||((a19==1)&&(a29==9))))&&(input==3))))&&(a24==1))&&(a20==1)))))&&(a11==1))&&(a28==1))){ + a29 = 5; + a24 = 0; + a0 = 1; + a20 = 0; + a7 = 0; + a19 = 5; + a11 = 0; + return 24; + } else if(((!(a24==1)&&((a7==1)&&(((a22==1)&&((a28==1)&&(((a11==1)&&((input==4)&&(((((a29==8)&&(a25==1))&&(a19==5))||(((a29==9)&&(a25==1))&&(a19==5)))||((!(a25==1)&&(a29==5))&&(a19==1)))))&&(a20==1))))&&(a14==8))))&&(a0==1))){ + a25 = 1; + a29 = 5; + a24 = 1; + a19 = 1; + return -1; + } else if((((a25==1)&&((a28==1)&&(!(a7==1)&&((a20==1)&&((a22==1)&&((!(a24==1)&&((a19==3)&&(((a29==8)&&(input==2))&&(a0==1))))&&!(a11==1)))))))&&(a14==9))){ + a7 = 1; + a11 = 1; + a24 = 1; + a29 = 7; + a19 = 2; + return 23; + } else if((((a7==1)&&(((a11==1)&&((a0==1)&&(((((a14==9)&&(!(a25==1)&&((input==6)&&((a29==8)||(a29==9)))))&&(a28==1))&&(a19==3))&&(a24==1))))&&!(a20==1)))&&(a22==1))){ + a25 = 1; + a29 = 5; + a20 = 1; + a14 = 8; + a19 = 1; + return -1; + } else if((!(a20==1)&&((a19==4)&&(!(a11==1)&&(((a24==1)&&((((((a28==1)&&((input==2)&&(a0==1)))&&(a22==1))&&!(a25==1))&&(a7==1))&&(a14==8)))&&(a29==7)))))){ + a7 = 0; + a24 = 0; + return 23; + } else if(((((a24==1)&&(((a19==5)&&((a25==1)&&(((((!(a20==1)&&(input==3))&&(a7==1))&&(a0==1))&&(a28==1))&&(a29==8))))&&(a14==8)))&&(a22==1))&&(a11==1))){ + a25 = 0; + a19 = 4; + a24 = 0; + a29 = 6; + return 24; + } else if(((((((((a20==1)&&((!(a25==1)&&(!(a7==1)&&((input==2)&&(a11==1))))&&(a22==1)))&&(a0==1))&&(a28==1))&&(a19==3))&&(a29==5))&&(a24==1))&&(a14==8))){ + a7 = 1; + a25 = 1; + a19 = 1; + return -1; + } else if((!(a20==1)&&(((a24==1)&&(((a25==1)&&((a11==1)&&((a14==10)&&((((a7==1)&&((input==5)&&((a29==8)||(a29==9))))&&(a19==3))&&(a22==1)))))&&(a28==1)))&&(a0==1)))){ + a14 = 8; + a7 = 0; + a0 = 0; + a29 = 5; + return 23; + } else if(((((a7==1)&&(((!(a20==1)&&((a0==1)&&((a14==9)&&(((a25==1)&&((input==6)&&((a29==7)||(a29==8))))&&!(a24==1)))))&&(a22==1))&&!(a11==1)))&&(a28==1))&&(a19==4))){ + a19 = 3; + a7 = 0; + a14 = 8; + a20 = 1; + a0 = 0; + a11 = 1; + a29 = 9; + a25 = 0; + return 21; + } else if(((((!(a11==1)&&(!(a20==1)&&(!(a25==1)&&((!(a0==1)&&((a14==9)&&((input==3)&&((((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))||((a29==6)&&(a19==2))))))&&(a22==1)))))&&(a24==1))&&(a7==1))&&(a28==1))){ + a14 = 8; + a20 = 1; + a11 = 1; + a0 = 1; + a29 = 5; + a19 = 1; + a25 = 1; + return -1; + } else if(((!(a7==1)&&(((a22==1)&&(((!(a25==1)&&((((a28==1)&&((input==2)&&((a29==6)||(a29==7))))&&!(a0==1))&&(a19==4)))&&(a14==9))&&!(a11==1)))&&(a24==1)))&&!(a20==1))){ + a11 = 1; + a7 = 1; + a25 = 1; + a24 = 0; + a19 = 2; + a29 = 5; + return -1; + } else if((((a28==1)&&(((((((a25==1)&&(((((a29==8)||(a29==9))&&(input==1))&&!(a7==1))&&!(a0==1)))&&(a14==8))&&!(a11==1))&&(a22==1))&&(a20==1))&&(a19==4)))&&!(a24==1))){ + a24 = 1; + a19 = 1; + a7 = 1; + a0 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if((!(a24==1)&&(((a28==1)&&((a25==1)&&((((a22==1)&&(((a7==1)&&((a29==8)&&(!(a0==1)&&(input==4))))&&(a14==8)))&&!(a20==1))&&(a19==3))))&&!(a11==1)))){ + a24 = 1; + a29 = 5; + a19 = 4; + a25 = 0; + a14 = 9; + return 23; + } else if(((a22==1)&&((!(a24==1)&&((a25==1)&&((a20==1)&&(((((((((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))||((a29==5)&&(a19==3)))&&(input==4))&&(a7==1))&&(a14==9))&&!(a0==1))&&(a11==1)))))&&(a28==1)))){ + a19 = 1; + a29 = 6; + return -1; + } else if(((a28==1)&&(((a22==1)&&((a20==1)&&((((((((((a29==5)||(a29==6))||(a29==7))&&(input==1))&&(a14==9))&&(a11==1))&&(a19==1))&&(a24==1))&&(a7==1))&&(a0==1))))&&(a25==1)))){ + a11 = 0; + a29 = 7; + a0 = 0; + a7 = 0; + a24 = 0; + return 23; + } else if((!(a7==1)&&((a22==1)&&((a24==1)&&((a25==1)&&(((a28==1)&&(!(a20==1)&&((a14==8)&&((((input==4)&&((a29==5)||(a29==6)))&&(a19==2))&&(a11==1)))))&&(a0==1))))))){ + a29 = 6; + a11 = 0; + a19 = 4; + a20 = 1; + a25 = 0; + return 21; + } else if((((((a11==1)&&((((a19==4)&&(((a24==1)&&(((input==1)&&((a29==7)||(a29==8)))&&(a0==1)))&&(a20==1)))&&(a14==9))&&(a7==1)))&&(a22==1))&&(a28==1))&&(a25==1))){ + a14 = 8; + a19 = 1; + a29 = 5; + return -1; + } else if((!(a0==1)&&(!(a11==1)&&((a25==1)&&((a22==1)&&((a7==1)&&((((a14==9)&&(((a19==1)&&((a28==1)&&(input==1)))&&(a20==1)))&&(a29==7))&&(a24==1)))))))){ + a19 = 5; + a11 = 1; + a24 = 0; + a29 = 5; + a20 = 0; + a25 = 0; + a14 = 8; + return -1; + } else if(((a0==1)&&(((a22==1)&&(((a14==10)&&((((((a19==3)&&(((a29==6)||(a29==7))&&(input==3)))&&(a20==1))&&(a11==1))&&(a7==1))&&(a25==1)))&&(a28==1)))&&!(a24==1)))){ + a20 = 0; + a29 = 5; + a19 = 5; + a7 = 0; + a14 = 9; + return -1; + } else if((((((!(a7==1)&&(!(a25==1)&&(((a11==1)&&(((((a29==7)||(a29==8))&&(input==5))&&(a19==2))&&(a22==1)))&&!(a24==1))))&&(a20==1))&&(a14==9))&&!(a0==1))&&(a28==1))){ + a24 = 1; + a29 = 5; + a14 = 8; + a0 = 1; + a7 = 1; + a25 = 1; + a19 = 1; + return -1; + } else if(((!(a11==1)&&(((((((a14==9)&&((a22==1)&&((a7==1)&&((input==2)&&(a0==1)))))&&(a24==1))&&(a29==7))&&(a28==1))&&(a25==1))&&(a20==1)))&&(a19==2))){ + a20 = 0; + a24 = 0; + a19 = 5; + a7 = 0; + a14 = 8; + return 21; + } else if((((a22==1)&&((a7==1)&&(!(a20==1)&&(((a14==8)&&(!(a24==1)&&((a25==1)&&(((((a29==5)||(a29==6))&&(input==1))&&(a19==1))&&(a11==1)))))&&(a0==1)))))&&(a28==1))){ + a11 = 0; + a29 = 7; + a7 = 0; + a19 = 5; + return 23; + } else if(((((((a28==1)&&((((a29==6)&&((a14==8)&&((a19==3)&&((input==1)&&!(a0==1)))))&&!(a11==1))&&(a22==1)))&&(a24==1))&&(a7==1))&&!(a20==1))&&(a25==1))){ + a20 = 1; + a19 = 1; + a0 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if(((a29==9)&&(((a28==1)&&((((a7==1)&&((a14==8)&&((((a24==1)&&((a22==1)&&(input==3)))&&!(a25==1))&&!(a0==1))))&&(a20==1))&&(a19==4)))&&(a11==1)))){ + a0 = 1; + a20 = 0; + a11 = 0; + a29 = 5; + a24 = 0; + a19 = 3; + return -1; + } else if((((a28==1)&&((a24==1)&&(((!(a25==1)&&((a22==1)&&(((a20==1)&&((input==3)&&((((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))||((a29==6)&&(a19==4)))))&&!(a11==1))))&&(a0==1))&&(a14==8))))&&(a7==1))){ + a19 = 4; + a11 = 1; + a20 = 0; + a7 = 0; + a25 = 1; + a0 = 0; + a29 = 7; + return 24; + } else if((!(a25==1)&&(!(a24==1)&&((((a0==1)&&((a7==1)&&(((a20==1)&&(((input==3)&&((((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))||((a19==5)&&(a29==6))))&&(a14==8)))&&(a22==1))))&&(a11==1))&&(a28==1))))){ + a25 = 1; + a24 = 1; + a19 = 5; + a0 = 0; + a29 = 9; + a7 = 0; + return 23; + } else if((!(a7==1)&&(((((a20==1)&&((((a25==1)&&(!(a11==1)&&((input==2)&&(((a29==6)&&(a19==3))||(((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))))))&&(a0==1))&&(a22==1)))&&(a14==8))&&(a28==1))&&(a24==1)))){ + a29 = 5; + a24 = 0; + a19 = 5; + a0 = 0; + return 21; + } else if((!(a20==1)&&((((!(a0==1)&&(!(a25==1)&&((a7==1)&&(((a19==2)&&((a11==1)&&((input==1)&&(((a29==5)||(a29==6))||(a29==7)))))&&(a24==1)))))&&(a28==1))&&(a14==8))&&(a22==1)))){ + a0 = 1; + a24 = 0; + a14 = 9; + a11 = 0; + a29 = 9; + a25 = 1; + return 24; + } else if((((((a19==1)&&(((a14==10)&&((((a22==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==5))&&(a7==1)))&&(a0==1))&&(a20==1)))&&(a11==1)))&&(a25==1))&&(a24==1))&&(a28==1))){ + a20 = 0; + a19 = 4; + a24 = 0; + a7 = 0; + a14 = 9; + a11 = 0; + a29 = 5; + return 23; + } else if((((((a14==8)&&(((((!(a20==1)&&((a24==1)&&((a11==1)&&(input==6))))&&!(a7==1))&&!(a25==1))&&(a29==6))&&(a22==1)))&&(a19==3))&&(a28==1))&&!(a0==1))){ + a29 = 5; + a20 = 1; + a25 = 1; + a19 = 2; + return -1; + } else if((!(a25==1)&&(!(a7==1)&&((a28==1)&&(((((a29==7)&&((a22==1)&&(((a19==4)&&(!(a20==1)&&(input==3)))&&(a24==1))))&&(a14==8))&&(a0==1))&&(a11==1)))))){ + a7 = 1; + a29 = 5; + a20 = 1; + a19 = 1; + a25 = 1; + return -1; + } else if(((a0==1)&&((a20==1)&&((a28==1)&&(((((a22==1)&&((!(a7==1)&&((input==3)&&(((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))))&&!(a11==1)))&&!(a25==1))&&(a14==8))&&(a24==1)))))){ + a19 = 1; + a7 = 1; + a25 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if(((!(a7==1)&&((a25==1)&&(!(a0==1)&&((a19==1)&&(((a14==9)&&((!(a20==1)&&((a22==1)&&((input==5)&&((a29==7)||(a29==8)))))&&(a28==1)))&&!(a11==1))))))&&!(a24==1))){ + a11 = 1; + a29 = 6; + a0 = 1; + return 23; + } else if(((a7==1)&&((!(a0==1)&&((((a14==9)&&(!(a20==1)&&((((input==4)&&(((a19==5)&&(a29==5))||(((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))))&&!(a25==1))&&(a11==1))))&&(a24==1))&&(a22==1)))&&(a28==1)))){ + a20 = 1; + a25 = 1; + a11 = 0; + a0 = 1; + a19 = 5; + a29 = 9; + return 23; + } else if(((a28==1)&&((((a22==1)&&((a20==1)&&(((a7==1)&&((a14==9)&&((((a0==1)&&(input==2))&&(a25==1))&&(a24==1))))&&(a19==1))))&&(a29==9))&&!(a11==1)))){ + a29 = 5; + a14 = 8; + a11 = 1; + return -1; + } else if(((!(a25==1)&&((a28==1)&&((!(a20==1)&&((a14==9)&&((a22==1)&&((((input==1)&&(((a19==2)&&(a29==9))||((a19==3)&&(a29==5))))&&(a0==1))&&!(a11==1)))))&&!(a24==1))))&&!(a7==1))){ + a0 = 0; + a25 = 1; + a20 = 1; + a19 = 2; + a29 = 7; + a14 = 8; + return 21; + } else if(((a25==1)&&((!(a24==1)&&((a28==1)&&((a11==1)&&(((a7==1)&&(((((input==6)&&(((a29==5)||(a29==6))||(a29==7)))&&(a22==1))&&!(a0==1))&&!(a20==1)))&&(a19==4)))))&&(a14==8)))){ + a19 = 1; + a29 = 8; + a7 = 0; + a20 = 1; + return -1; + } else if((((a22==1)&&((((((a14==9)&&((a25==1)&&((a28==1)&&((a11==1)&&(((a29==5)||(a29==6))&&(input==3))))))&&!(a24==1))&&(a7==1))&&(a0==1))&&(a19==4)))&&(a20==1))){ + a24 = 1; + a14 = 8; + a29 = 5; + a19 = 1; + return -1; + } else if(((a11==1)&&((a19==1)&&((((a14==8)&&((a22==1)&&((a25==1)&&(!(a20==1)&&((((input==3)&&((a29==7)||((a29==5)||(a29==6))))&&!(a7==1))&&!(a0==1))))))&&(a24==1))&&(a28==1))))){ + a29 = 5; + a7 = 1; + a0 = 1; + a20 = 1; + return -1; + } else if((((a14==8)&&(((((a22==1)&&((a7==1)&&((((input==4)&&(((a29==6)&&(a19==4))||(((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))))&&!(a0==1))&&!(a11==1))))&&!(a20==1))&&(a25==1))&&(a28==1)))&&(a24==1))){ + a29 = 6; + a24 = 0; + a19 = 2; + a14 = 9; + a25 = 0; + a11 = 1; + return 24; + } else if((!(a25==1)&&((a29==7)&&(((a19==3)&&((a11==1)&&((a28==1)&&((a20==1)&&((a0==1)&&((a14==9)&&(((input==3)&&(a7==1))&&!(a24==1))))))))&&(a22==1))))){ + a29 = 5; + a20 = 0; + a24 = 1; + a14 = 8; + a0 = 0; + return -1; + } else if((((a0==1)&&((((!(a24==1)&&((a19==2)&&((a20==1)&&((a11==1)&&((a14==10)&&((input==2)&&(a7==1)))))))&&(a22==1))&&!(a25==1))&&(a28==1)))&&(a29==8))){ + a29 = 6; + a20 = 0; + a14 = 9; + a11 = 0; + a19 = 5; + return -1; + } else if((!(a11==1)&&((((a22==1)&&(!(a0==1)&&((!(a7==1)&&((a14==8)&&((input==6)&&(((a19==1)&&((a29==6)&&!(a25==1)))||(((a19==5)&&((a29==9)&&(a25==1)))||((a19==1)&&((a29==5)&&!(a25==1))))))))&&(a28==1))))&&(a24==1))&&!(a20==1)))){ + a20 = 1; + a29 = 8; + a7 = 1; + a19 = 2; + a25 = 0; + return -1; + } else if(((!(a24==1)&&(!(a25==1)&&((a11==1)&&((a14==8)&&(((((a22==1)&&((input==3)&&(((a19==3)&&(a29==5))||(((a29==8)&&(a19==2))||((a19==2)&&(a29==9))))))&&(a28==1))&&(a7==1))&&!(a0==1))))))&&!(a20==1))){ + a24 = 1; + a20 = 1; + a0 = 1; + a25 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((a29==7)&&((!(a0==1)&&(!(a11==1)&&((!(a24==1)&&(((a22==1)&&((((input==6)&&(a28==1))&&(a20==1))&&(a14==8)))&&!(a7==1)))&&(a25==1))))&&(a19==2)))){ + a25 = 0; + a29 = 6; + a24 = 1; + return 24; + } else if((((a20==1)&&(((!(a11==1)&&(((a25==1)&&((a0==1)&&(((((a29==8)||(a29==9))&&(input==3))&&(a24==1))&&(a28==1))))&&(a22==1)))&&(a19==2))&&(a14==9)))&&(a7==1))){ + a14 = 8; + a11 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((a19==3)&&((a28==1)&&(!(a25==1)&&(!(a20==1)&&((a24==1)&&(((a11==1)&&((a22==1)&&((a14==10)&&((a0==1)&&(((a29==8)||(a29==9))&&(input==3))))))&&!(a7==1)))))))){ + a29 = 8; + a7 = 1; + a25 = 1; + a19 = 4; + a14 = 9; + a24 = 0; + return 24; + } else if(((a28==1)&&(((!(a7==1)&&(!(a0==1)&&((((a14==8)&&((a22==1)&&(!(a24==1)&&(((a29==6)||(a29==7))&&(input==3)))))&&(a19==1))&&!(a25==1))))&&(a20==1))&&!(a11==1)))){ + a11 = 1; + a29 = 8; + a24 = 1; + return 21; + } else if(((a28==1)&&(!(a11==1)&&((a7==1)&&(((a20==1)&&((a19==2)&&(!(a24==1)&&((a22==1)&&((((((a29==5)||(a29==6))||(a29==7))&&(input==2))&&(a0==1))&&(a14==8))))))&&!(a25==1)))))){ + a25 = 1; + a11 = 1; + a7 = 0; + a29 = 5; + a19 = 5; + a14 = 9; + return 24; + } else if(((!(a25==1)&&(((((((a22==1)&&(((a0==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==4)))&&!(a20==1)))&&!(a7==1))&&(a28==1))&&!(a11==1))&&(a14==8))&&(a19==5)))&&!(a24==1))){ + a24 = 1; + a11 = 1; + a19 = 3; + a0 = 0; + a29 = 5; + a7 = 1; + a25 = 1; + return 24; + } else if(((((a19==5)&&((a20==1)&&(((((a0==1)&&(!(a25==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==6))&&(a11==1))))&&(a24==1))&&(a14==8))&&(a28==1))))&&!(a7==1))&&(a22==1))){ + a25 = 1; + a29 = 5; + a24 = 0; + a19 = 1; + return 24; + } else if(((a7==1)&&((((((a22==1)&&((a11==1)&&(!(a25==1)&&(((a19==3)&&(((a29==8)||(a29==9))&&(input==1)))&&(a14==10)))))&&(a20==1))&&(a24==1))&&(a0==1))&&(a28==1)))){ + a19 = 1; + a25 = 1; + a20 = 0; + a24 = 0; + a29 = 9; + a11 = 0; + a14 = 8; + a0 = 0; + return -1; + } else if((((a11==1)&&(!(a0==1)&&(((a14==8)&&((a22==1)&&(((a28==1)&&((((input==5)&&((a29==8)||(a29==9)))&&(a25==1))&&(a24==1)))&&(a19==2))))&&(a7==1))))&&!(a20==1))){ + a24 = 0; + a29 = 7; + a25 = 0; + a0 = 1; + a19 = 3; + a11 = 0; + return 24; + } else if((((a11==1)&&((((!(a20==1)&&((a29==9)&&((!(a24==1)&&((!(a7==1)&&(input==2))&&(a0==1)))&&(a22==1))))&&(a14==9))&&(a19==4))&&!(a25==1)))&&(a28==1))){ + a29 = 8; + a20 = 1; + a19 = 5; + a7 = 1; + a0 = 0; + a25 = 1; + a14 = 8; + a24 = 1; + return 23; + } else if(((((a22==1)&&((((a20==1)&&((a25==1)&&((a14==10)&&((a0==1)&&((a29==5)&&((input==1)&&(a7==1)))))))&&(a11==1))&&(a28==1)))&&!(a24==1))&&(a19==2))){ + a14 = 8; + a19 = 3; + a24 = 1; + return -1; + } else if((!(a7==1)&&((a19==2)&&((((a22==1)&&(((a24==1)&&(((((input==2)&&((a29==7)||((a29==5)||(a29==6))))&&(a14==8))&&!(a25==1))&&(a28==1)))&&(a0==1)))&&!(a20==1))&&!(a11==1))))){ + a11 = 1; + a14 = 9; + a19 = 4; + a29 = 6; + a25 = 1; + return 24; + } else if(((a20==1)&&(!(a11==1)&&(((((a25==1)&&((a24==1)&&((a22==1)&&((((input==6)&&((a29==7)||(a29==8)))&&(a19==2))&&(a28==1)))))&&(a7==1))&&!(a0==1))&&(a14==9))))){ + a24 = 0; + a11 = 1; + a29 = 5; + return -1; + } else if((((a20==1)&&(!(a0==1)&&((a14==9)&&(((a28==1)&&((((((input==4)&&((a29==7)||(a29==8)))&&(a22==1))&&(a11==1))&&(a19==2))&&!(a7==1)))&&!(a24==1)))))&&!(a25==1))){ + a29 = 5; + a14 = 8; + a24 = 1; + a0 = 1; + a25 = 1; + a19 = 1; + a7 = 1; + return -1; + } else if((!(a25==1)&&(((a14==8)&&((a24==1)&&(((a7==1)&&((a28==1)&&((!(a20==1)&&((input==3)&&((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))||((a19==4)&&(a29==6)))))&&(a22==1))))&&(a0==1))))&&(a11==1)))){ + a20 = 1; + a19 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if((((a19==1)&&(((a29==6)&&((a11==1)&&(((((a22==1)&&((!(a0==1)&&(input==2))&&!(a20==1)))&&(a14==9))&&(a28==1))&&!(a7==1))))&&(a25==1)))&&!(a24==1))){ + a20 = 1; + a11 = 0; + a24 = 1; + a29 = 8; + a25 = 0; + a0 = 1; + return 24; + } else if((((((((a29==6)&&((!(a0==1)&&((((a20==1)&&(input==2))&&(a19==3))&&(a24==1)))&&!(a7==1)))&&(a14==8))&&(a22==1))&&(a25==1))&&(a28==1))&&(a11==1))){ + a25 = 0; + a7 = 1; + a29 = 5; + a19 = 4; + return -1; + } else if((!(a7==1)&&((a28==1)&&(((a19==3)&&(((((a11==1)&&((((input==1)&&((a29==7)||(a29==8)))&&!(a0==1))&&!(a20==1)))&&!(a24==1))&&(a22==1))&&(a14==8)))&&!(a25==1))))){ + a24 = 1; + a0 = 1; + a29 = 5; + a25 = 1; + a7 = 1; + a19 = 1; + a20 = 1; + return -1; + } else if((((a25==1)&&((a19==1)&&((a11==1)&&(((a28==1)&&(!(a7==1)&&(((!(a0==1)&&((a22==1)&&(input==2)))&&!(a24==1))&&(a20==1))))&&(a14==8)))))&&(a29==5))){ + a19 = 2; + a24 = 1; + a29 = 7; + a25 = 0; + return 23; + } else if(((!(a0==1)&&((!(a7==1)&&(((a22==1)&&((((((((a25==1)&&(a29==8))&&(a19==5))||((a19==5)&&((a25==1)&&(a29==9))))||((a19==1)&&((a29==5)&&!(a25==1))))&&(input==2))&&!(a11==1))&&!(a24==1)))&&(a28==1)))&&(a20==1)))&&(a14==9))){ + a25 = 0; + a11 = 1; + a29 = 5; + a19 = 2; + a24 = 1; + a0 = 1; + return -1; + } else if(((!(a24==1)&&((a11==1)&&((a14==8)&&((a7==1)&&((a28==1)&&(!(a20==1)&&((a22==1)&&((((((a25==1)&&(a29==8))&&(a19==5))||((a19==5)&&((a29==9)&&(a25==1))))||(((a29==5)&&!(a25==1))&&(a19==1)))&&(input==3)))))))))&&!(a0==1))){ + a25 = 1; + a19 = 1; + a29 = 5; + a20 = 1; + a24 = 1; + a0 = 1; + return -1; + } else if(((a28==1)&&(((((!(a25==1)&&(!(a0==1)&&(((a24==1)&&((((a19==5)&&(a29==5))||(((a19==4)&&(a29==8))||((a29==9)&&(a19==4))))&&(input==1)))&&(a11==1))))&&!(a20==1))&&(a7==1))&&(a14==9))&&(a22==1)))){ + a24 = 0; + a19 = 4; + a20 = 1; + a0 = 1; + a29 = 8; + return 24; + } else if((((((a28==1)&&(((a19==5)&&((a25==1)&&(!(a20==1)&&(((((a29==8)||((a29==6)||(a29==7)))&&(input==2))&&!(a0==1))&&(a14==8)))))&&(a11==1)))&&(a22==1))&&(a7==1))&&(a24==1))){ + a7 = 0; + a20 = 1; + a29 = 6; + a19 = 2; + return -1; + } else if(((((a24==1)&&((((a14==8)&&(((a0==1)&&((a28==1)&&(((((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))||((a29==6)&&(a19==5)))&&(input==5))))&&!(a25==1)))&&(a20==1))&&(a22==1)))&&(a11==1))&&!(a7==1))){ + a19 = 1; + a29 = 5; + a25 = 1; + a7 = 1; + return -1; + } else if(((!(a25==1)&&((((((a28==1)&&(((((input==5)&&((a29==7)||((a29==5)||(a29==6))))&&(a0==1))&&!(a11==1))&&(a22==1)))&&(a7==1))&&(a20==1))&&!(a24==1))&&(a14==9)))&&(a19==5))){ + a20 = 0; + a25 = 1; + a19 = 3; + a29 = 9; + a11 = 1; + return 24; + } else if((!(a24==1)&&((a7==1)&&((a22==1)&&((a14==8)&&((a25==1)&&(!(a20==1)&&((a11==1)&&((!(a0==1)&&((input==2)&&((((a29==8)&&(a19==4))||((a19==4)&&(a29==9)))||((a19==5)&&(a29==5)))))&&(a28==1)))))))))){ + a0 = 1; + a29 = 5; + a19 = 1; + a24 = 1; + a20 = 1; + return -1; + } else if(((a14==9)&&(((a28==1)&&((a11==1)&&((((((a7==1)&&((((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))&&(input==1)))&&!(a25==1))&&(a0==1))&&(a22==1))&&(a20==1))))&&(a24==1)))){ + a14 = 8; + a25 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a19==3)&&(((((a25==1)&&(!(a7==1)&&((((a14==10)&&(((input==4)&&((a29==5)||(a29==6)))&&(a20==1)))&&(a28==1))&&(a22==1))))&&(a24==1))&&(a11==1))&&(a0==1)))){ + a25 = 0; + a14 = 8; + a19 = 1; + a0 = 0; + a29 = 8; + return 21; + } else if(((((!(a7==1)&&((a28==1)&&((a14==10)&&(((a0==1)&&((((input==2)&&((a29==7)||(a29==8)))&&!(a20==1))&&(a19==5)))&&!(a25==1)))))&&(a11==1))&&(a22==1))&&(a24==1))){ + a14 = 9; + a29 = 8; + a11 = 0; + a25 = 1; + a19 = 4; + a7 = 1; + return -1; + } else if(((a19==2)&&(((((((a28==1)&&(((a24==1)&&(!(a25==1)&&((input==1)&&(((a29==6)||(a29==7))||(a29==8)))))&&(a20==1)))&&(a22==1))&&!(a0==1))&&(a11==1))&&(a7==1))&&(a14==8)))){ + a25 = 1; + a29 = 5; + a19 = 4; + return -1; + } else if((!(a24==1)&&(!(a0==1)&&((a28==1)&&(!(a20==1)&&((a11==1)&&(!(a7==1)&&(!(a25==1)&&(((a22==1)&&((((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))&&(input==1)))&&(a14==9)))))))))){ + a24 = 1; + a19 = 5; + a29 = 5; + a14 = 8; + return 21; + } else if((!(a7==1)&&((a28==1)&&((((a25==1)&&((a14==8)&&((!(a20==1)&&((a22==1)&&((a24==1)&&(((a29==7)||(a29==8))&&(input==5)))))&&!(a11==1))))&&(a19==1))&&!(a0==1))))){ + a0 = 1; + a29 = 5; + a11 = 1; + a7 = 1; + a20 = 1; + return -1; + } else if(((((!(a0==1)&&(((a24==1)&&((((((input==4)&&((a29==8)||(a29==9)))&&!(a25==1))&&(a20==1))&&(a19==1))&&(a28==1)))&&(a22==1)))&&(a11==1))&&(a14==9))&&(a7==1))){ + a0 = 1; + a29 = 5; + a14 = 8; + a25 = 1; + return -1; + } else if(((a19==5)&&(((((a25==1)&&(!(a11==1)&&((a24==1)&&((((a7==1)&&((input==2)&&(a29==5)))&&(a14==9))&&(a20==1)))))&&(a22==1))&&(a0==1))&&(a28==1)))){ + a19 = 3; + a14 = 8; + a29 = 8; + a0 = 0; + return 24; + } else if((((a7==1)&&((a28==1)&&(((((((((a14==8)&&(input==1))&&(a20==1))&&!(a0==1))&&(a29==6))&&(a24==1))&&(a19==1))&&(a11==1))&&(a22==1))))&&!(a25==1))){ + a0 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if(((a20==1)&&(((!(a25==1)&&((a14==8)&&(((!(a11==1)&&(((((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))&&(input==5))&&(a0==1)))&&!(a7==1))&&(a28==1))))&&(a24==1))&&(a22==1)))){ + a19 = 5; + a0 = 0; + a20 = 0; + a29 = 6; + a24 = 0; + a7 = 1; + return 21; + } else if((!(a11==1)&&((a22==1)&&(((a20==1)&&((a7==1)&&(((a19==5)&&((a28==1)&&((a0==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==3))&&(a24==1)))))&&(a14==8))))&&!(a25==1))))){ + a7 = 0; + a0 = 0; + a20 = 0; + a11 = 1; + a29 = 5; + a19 = 2; + return 23; + } else if((!(a25==1)&&((((!(a11==1)&&((!(a0==1)&&(((a22==1)&&(((((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))||((a29==6)&&(a19==2)))&&(input==3)))&&!(a24==1)))&&(a20==1)))&&(a14==8))&&(a7==1))&&(a28==1)))){ + a14 = 9; + a29 = 8; + a19 = 3; + a24 = 1; + return 21; + } else if(((a20==1)&&(!(a24==1)&&(((a19==4)&&((((a28==1)&&(((((input==4)&&((a29==8)||(a29==9)))&&(a7==1))&&(a22==1))&&(a14==8)))&&(a25==1))&&(a0==1)))&&(a11==1))))){ + a29 = 7; + a20 = 0; + a19 = 1; + a25 = 0; + a11 = 0; + a7 = 0; + return 21; + } else if(((a22==1)&&(((a14==9)&&((a25==1)&&((a19==4)&&(((a28==1)&&((a11==1)&&((!(a20==1)&&((input==5)&&((a29==6)||(a29==7))))&&(a0==1))))&&(a7==1)))))&&!(a24==1)))){ + a7 = 0; + a25 = 0; + a29 = 5; + a14 = 10; + a24 = 1; + a19 = 5; + return 24; + } else if((!(a0==1)&&((a22==1)&&(((a7==1)&&(((!(a11==1)&&((!(a25==1)&&((a28==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==6))))&&!(a20==1)))&&(a19==4))&&!(a24==1)))&&(a14==8))))){ + a7 = 0; + a0 = 1; + a25 = 1; + a29 = 5; + return 24; + } else if((((((((a20==1)&&((((((input==5)&&(a19==3))&&(a14==9))&&(a25==1))&&(a28==1))&&(a24==1)))&&(a29==7))&&(a11==1))&&(a0==1))&&(a7==1))&&(a22==1))){ + a14 = 8; + a19 = 1; + a29 = 5; + return -1; + } else if((!(a20==1)&&((a14==8)&&(((a11==1)&&((!(a24==1)&&(!(a25==1)&&((!(a7==1)&&(((input==1)&&((a29==8)||(a29==9)))&&(a28==1)))&&(a19==3))))&&(a22==1)))&&(a0==1))))){ + a19 = 4; + a29 = 8; + a11 = 0; + a24 = 1; + a0 = 0; + a20 = 1; + return 24; + } else if(((a0==1)&&(((!(a25==1)&&((a19==5)&&((a20==1)&&(!(a24==1)&&(((a22==1)&&((a11==1)&&(((a29==8)||(a29==9))&&(input==4))))&&(a14==8))))))&&!(a7==1))&&(a28==1)))){ + a0 = 0; + a19 = 3; + a29 = 6; + return 24; + } else if(((((a7==1)&&((a25==1)&&((a28==1)&&((a11==1)&&((a14==9)&&((a19==2)&&((((input==1)&&((a29==8)||(a29==9)))&&(a0==1))&&(a24==1))))))))&&!(a20==1))&&(a22==1))){ + a19 = 4; + a29 = 5; + return 24; + } else if(((a11==1)&&(((a19==4)&&((!(a25==1)&&((a28==1)&&(((a20==1)&&((((a14==9)&&(input==3))&&(a29==8))&&(a22==1)))&&(a7==1))))&&(a24==1)))&&(a0==1)))){ + a14 = 8; + a24 = 0; + a19 = 5; + a29 = 7; + a11 = 0; + a25 = 1; + a0 = 0; + a7 = 0; + return -1; + } else if(((!(a11==1)&&((((!(a25==1)&&((a20==1)&&((((a24==1)&&((input==1)&&((a29==7)||(a29==8))))&&(a14==9))&&(a28==1))))&&(a19==3))&&(a22==1))&&(a0==1)))&&!(a7==1))){ + a11 = 1; + a0 = 0; + a29 = 8; + a25 = 1; + a20 = 0; + a14 = 8; + a19 = 1; + return 21; + } else if(((a28==1)&&(((a11==1)&&((((((((a25==1)&&(((a29==5)||(a29==6))&&(input==4)))&&(a19==1))&&!(a7==1))&&(a22==1))&&!(a20==1))&&!(a0==1))&&(a14==8)))&&!(a24==1)))){ + a29 = 5; + a0 = 1; + a20 = 1; + a24 = 1; + a7 = 1; + return -1; + } else if(((a22==1)&&((a24==1)&&((a28==1)&&((((a14==9)&&((a25==1)&&((a11==1)&&(((input==2)&&((((a29==8)&&(a19==1))||((a19==1)&&(a29==9)))||((a29==5)&&(a19==2))))&&(a7==1)))))&&!(a0==1))&&(a20==1)))))){ + a19 = 5; + a14 = 8; + a29 = 6; + a25 = 0; + a20 = 0; + return 24; + } else if((((((a22==1)&&(((a29==7)&&(((a28==1)&&(!(a11==1)&&(((a14==8)&&(input==6))&&(a19==5))))&&(a7==1)))&&!(a20==1)))&&!(a0==1))&&!(a24==1))&&(a25==1))){ + a24 = 1; + a19 = 1; + a29 = 9; + a20 = 1; + a11 = 1; + return 23; + } else if((!(a11==1)&&((a7==1)&&(((a19==1)&&(((!(a20==1)&&((a29==5)&&((((a14==9)&&(input==3))&&!(a25==1))&&!(a0==1))))&&(a28==1))&&!(a24==1)))&&(a22==1))))){ + a24 = 1; + a20 = 1; + a19 = 5; + a29 = 7; + a14 = 8; + a25 = 1; + a7 = 0; + return -1; + } else if(((a14==9)&&((a24==1)&&((a7==1)&&((a11==1)&&((a20==1)&&((((((a29==7)&&((a22==1)&&(input==2)))&&(a19==3))&&(a0==1))&&(a28==1))&&!(a25==1)))))))){ + a29 = 5; + a0 = 0; + a19 = 5; + a14 = 8; + return 21; + } else if((!(a25==1)&&(!(a24==1)&&((a0==1)&&((!(a7==1)&&((a14==9)&&((((a19==4)&&(!(a11==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==4))))&&(a20==1))&&(a28==1))))&&(a22==1)))))){ + a29 = 9; + a24 = 1; + a19 = 3; + a25 = 1; + a11 = 1; + a20 = 0; + return 21; + } else if(((a0==1)&&(((a24==1)&&((a11==1)&&((((((input==3)&&(((a19==1)&&(!(a25==1)&&(a29==5)))||((((a29==8)&&(a25==1))&&(a19==5))||(((a25==1)&&(a29==9))&&(a19==5)))))&&!(a20==1))&&!(a7==1))&&(a22==1))&&(a14==10))))&&(a28==1)))){ + a11 = 0; + a7 = 1; + a24 = 0; + a29 = 6; + a20 = 1; + a25 = 1; + a19 = 5; + a14 = 9; + return -1; + } else if((!(a24==1)&&((!(a20==1)&&((((a11==1)&&((a14==9)&&(((a29==7)&&(((input==1)&&!(a0==1))&&!(a25==1)))&&(a19==3))))&&(a22==1))&&(a28==1)))&&(a7==1)))){ + a19 = 2; + a7 = 0; + a29 = 9; + a24 = 1; + a25 = 1; + a20 = 1; + return -1; + } else if(((((((a22==1)&&((((((input==4)&&(((a29==6)&&(a19==2))||(((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))))&&(a14==9))&&(a11==1))&&(a0==1))&&(a20==1)))&&!(a25==1))&&(a28==1))&&(a7==1))&&(a24==1))){ + a14 = 8; + a19 = 5; + a29 = 7; + a0 = 0; + return 21; + } else if(((a19==5)&&(((((a28==1)&&((a14==9)&&((a7==1)&&((a11==1)&&(((a24==1)&&(((a29==7)||(a29==8))&&(input==5)))&&(a20==1))))))&&(a22==1))&&(a25==1))&&!(a0==1)))){ + a29 = 5; + a0 = 1; + a14 = 8; + a19 = 1; + return -1; + } else if((((a19==5)&&((a22==1)&&((!(a24==1)&&(((a0==1)&&((((((a29==9)||((a29==7)||(a29==8)))&&(input==2))&&(a11==1))&&(a20==1))&&(a28==1)))&&(a7==1)))&&(a14==8))))&&!(a25==1))){ + a0 = 0; + a29 = 8; + a7 = 0; + a24 = 1; + a19 = 4; + return 24; + } else if((((a0==1)&&(((a11==1)&&((a22==1)&&(((a7==1)&&((!(a25==1)&&((((a29==6)||(a29==7))&&(input==1))&&(a20==1)))&&!(a24==1)))&&(a19==2))))&&(a14==8)))&&(a28==1))){ + a29 = 6; + a19 = 1; + a24 = 1; + a0 = 0; + return 23; + } else if((((a7==1)&&((((a19==2)&&(!(a11==1)&&((((!(a24==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==3)))&&(a28==1))&&!(a25==1))&&(a14==9))))&&!(a0==1))&&(a20==1)))&&(a22==1))){ + a11 = 1; + a25 = 1; + a19 = 1; + a14 = 8; + a24 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if((!(a11==1)&&(((((((!(a20==1)&&(!(a7==1)&&(((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))||((a29==6)&&(a19==4)))&&(input==6))))&&!(a25==1))&&!(a24==1))&&!(a0==1))&&(a14==9))&&(a22==1))&&(a28==1)))){ + a11 = 1; + a24 = 1; + a14 = 8; + a7 = 1; + a20 = 1; + a29 = 5; + a19 = 5; + return 24; + } else if((!(a20==1)&&((a28==1)&&(((((((a19==4)&&(((((a29==8)||(a29==9))&&(input==2))&&(a22==1))&&(a24==1)))&&!(a25==1))&&(a11==1))&&(a14==8))&&!(a7==1))&&(a0==1))))){ + a20 = 1; + a29 = 5; + a19 = 5; + a25 = 1; + a11 = 0; + a24 = 0; + return 24; + } else if((((a20==1)&&((((a14==8)&&((a19==1)&&((a11==1)&&((a25==1)&&((a29==5)&&(!(a24==1)&&((a0==1)&&(input==2))))))))&&(a28==1))&&!(a7==1)))&&(a22==1))){ + a20 = 0; + a0 = 0; + a7 = 1; + a24 = 1; + return 23; + } else if(((a24==1)&&((((!(a0==1)&&((!(a20==1)&&(((a28==1)&&((a19==4)&&((input==1)&&((a29==9)||((a29==7)||(a29==8))))))&&(a14==8)))&&(a11==1)))&&(a7==1))&&!(a25==1))&&(a22==1)))){ + a0 = 1; + a25 = 1; + a29 = 5; + a19 = 1; + a20 = 1; + return -1; + } else if((((a19==4)&&(((a29==9)&&(!(a7==1)&&(((a28==1)&&(((a0==1)&&(((input==4)&&!(a11==1))&&(a20==1)))&&(a24==1)))&&(a14==9))))&&(a22==1)))&&!(a25==1))){ + a29 = 7; + a14 = 8; + a0 = 0; + a19 = 2; + a24 = 0; + a20 = 0; + return 24; + } else if((((!(a24==1)&&(!(a11==1)&&(((a28==1)&&(((a19==4)&&(((a14==9)&&(((a29==7)||(a29==8))&&(input==4)))&&(a0==1)))&&(a22==1)))&&!(a7==1))))&&(a20==1))&&(a25==1))){ + a29 = 5; + a11 = 1; + a24 = 1; + a19 = 1; + a14 = 8; + a7 = 1; + return -1; + } else if(((!(a0==1)&&((a19==4)&&((a28==1)&&(((((((a22==1)&&(!(a7==1)&&(input==5)))&&(a29==7))&&(a24==1))&&(a14==8))&&!(a11==1))&&(a25==1)))))&&(a20==1))){ + a14 = 9; + a29 = 8; + a25 = 0; + a24 = 0; + a11 = 1; + a19 = 1; + return 21; + } else if((((a24==1)&&((a22==1)&&((((a28==1)&&((((a11==1)&&((((a29==8)||(a29==9))&&(input==1))&&!(a25==1)))&&(a19==4))&&!(a7==1)))&&!(a20==1))&&(a14==10))))&&(a0==1))){ + a0 = 0; + a7 = 1; + a19 = 3; + a20 = 1; + a14 = 8; + a29 = 7; + return 24; + } else if(((a19==1)&&(!(a20==1)&&(((!(a25==1)&&(((a28==1)&&((a22==1)&&(!(a24==1)&&((a0==1)&&((input==1)&&((a29==8)||(a29==9)))))))&&!(a11==1)))&&!(a7==1))&&(a14==8))))){ + a25 = 1; + a29 = 8; + return -1; + } else if((((a14==8)&&(((a22==1)&&((((input==1)&&((((((a7==1)&&!(a20==1))&&(a25==1))&&(a29==6))&&(a19==1))||(((((!(a7==1)&&(a20==1))&&!(a25==1))&&(a29==9))&&(a19==5))||(((a29==5)&&((a25==1)&&((a7==1)&&!(a20==1))))&&(a19==1)))))&&!(a0==1))&&(a28==1)))&&!(a11==1)))&&(a24==1))){ + a25 = 1; + a11 = 1; + a7 = 1; + a20 = 1; + a19 = 3; + a29 = 9; + return 23; + } else if(((a28==1)&&(((a14==8)&&((a20==1)&&((a19==2)&&(!(a0==1)&&((((((input==6)&&(((a29==5)||(a29==6))||(a29==7)))&&!(a25==1))&&(a7==1))&&!(a11==1))&&(a24==1))))))&&(a22==1)))){ + a29 = 5; + a24 = 0; + a11 = 1; + a14 = 9; + return 23; + } else if((((a20==1)&&((a0==1)&&((a24==1)&&((a14==9)&&(((!(a11==1)&&((a28==1)&&(((input==1)&&(a22==1))&&(a19==2))))&&(a25==1))&&(a7==1))))))&&(a29==6))){ + a11 = 1; + a14 = 8; + a19 = 1; + a29 = 5; + return -1; + } else if((!(a7==1)&&((a19==1)&&(((!(a24==1)&&((!(a11==1)&&(((a28==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==1))&&(a20==1)))&&!(a25==1)))&&(a0==1)))&&(a22==1))&&(a14==9))))){ + a29 = 9; + a0 = 0; + a14 = 8; + a19 = 4; + a25 = 1; + return 23; + } else if(((!(a11==1)&&((a24==1)&&((!(a0==1)&&((a7==1)&&((((a19==5)&&(((input==1)&&((a29==6)||(a29==7)))&&!(a20==1)))&&(a22==1))&&!(a25==1))))&&(a14==8))))&&(a28==1))){ + a19 = 1; + a25 = 1; + a29 = 8; + a24 = 0; + a7 = 0; + a14 = 9; + a11 = 1; + return 24; + } else if(((a22==1)&&((a19==4)&&(!(a24==1)&&((((!(a7==1)&&((a11==1)&&(!(a0==1)&&((a28==1)&&(((a29==8)||(a29==9))&&(input==6))))))&&(a14==9))&&!(a25==1))&&(a20==1)))))){ + a19 = 5; + a24 = 1; + a14 = 8; + a29 = 7; + return 23; + } else if(((a29==6)&&((a19==1)&&((a14==9)&&(!(a24==1)&&(((((a25==1)&&(!(a0==1)&&(((input==4)&&(a20==1))&&(a22==1))))&&!(a11==1))&&(a28==1))&&!(a7==1))))))){ + a20 = 0; + a19 = 5; + a7 = 1; + a14 = 8; + return 24; + } else if(((a19==1)&&(((!(a0==1)&&(((a14==9)&&((((a20==1)&&(((input==3)&&(a22==1))&&!(a24==1)))&&(a28==1))&&(a11==1)))&&!(a25==1)))&&(a7==1))&&(a29==9)))){ + a25 = 1; + a24 = 1; + a29 = 5; + a14 = 8; + a0 = 1; + return -1; + } else if((((a7==1)&&((!(a25==1)&&(!(a0==1)&&((a11==1)&&((a19==1)&&((a14==9)&&((a20==1)&&((((a29==8)||(a29==9))&&(input==5))&&(a22==1))))))))&&(a24==1)))&&(a28==1))){ + a25 = 1; + a29 = 7; + a0 = 1; + a19 = 3; + a24 = 0; + a7 = 0; + return 23; + } else if((!(a11==1)&&((a7==1)&&(((a28==1)&&((((a0==1)&&(!(a20==1)&&((a22==1)&&((((a29==5)||(a29==6))&&(input==1))&&(a24==1)))))&&(a25==1))&&(a14==9)))&&(a19==5))))){ + a20 = 1; + a11 = 1; + a14 = 8; + a29 = 5; + a19 = 1; + return -1; + } else if((!(a20==1)&&((a11==1)&&((a14==9)&&((a29==9)&&((a19==3)&&((((((a22==1)&&(!(a24==1)&&(input==3)))&&(a25==1))&&(a28==1))&&(a0==1))&&!(a7==1)))))))){ + a24 = 1; + a25 = 0; + a19 = 2; + a7 = 1; + a20 = 1; + return 23; + } else if(((((((!(a11==1)&&((!(a7==1)&&((a22==1)&&(((a28==1)&&(input==6))&&!(a20==1))))&&(a14==9)))&&!(a25==1))&&(a29==5))&&(a19==2))&&(a0==1))&&(a24==1))){ + a0 = 0; + a14 = 8; + a19 = 1; + return 21; + } else if(((!(a7==1)&&((a20==1)&&(((a11==1)&&(((a22==1)&&(((a19==2)&&((a0==1)&&((input==2)&&(((a29==6)||(a29==7))||(a29==8)))))&&(a28==1)))&&!(a25==1)))&&(a14==9))))&&!(a24==1))){ + a24 = 1; + a14 = 8; + a0 = 0; + a7 = 1; + a25 = 1; + a20 = 0; + a29 = 8; + a19 = 5; + return 23; + } else if(((a28==1)&&((a7==1)&&(((((((((a0==1)&&((a14==8)&&(input==1)))&&(a19==3))&&(a22==1))&&!(a24==1))&&(a20==1))&&(a29==6))&&!(a25==1))&&!(a11==1))))){ + a19 = 1; + a24 = 1; + a11 = 1; + a0 = 0; + a20 = 0; + return 24; + } else if(((a0==1)&&(((a25==1)&&((a28==1)&&(((a22==1)&&(((((input==2)&&(((a29==5)&&(a19==4))||(((a19==3)&&(a29==8))||((a19==3)&&(a29==9)))))&&!(a24==1))&&!(a7==1))&&!(a20==1)))&&!(a11==1))))&&(a14==9)))){ + a7 = 1; + a14 = 8; + a29 = 5; + a0 = 0; + a19 = 4; + a20 = 1; + return 23; + } else if(((a20==1)&&((a11==1)&&(!(a7==1)&&((a29==8)&&(((((a22==1)&&(((a28==1)&&((input==4)&&(a14==8)))&&(a19==4)))&&!(a24==1))&&(a0==1))&&(a25==1))))))){ + a7 = 1; + a19 = 3; + a11 = 0; + a20 = 0; + a29 = 7; + a25 = 0; + return 23; + } else if((((a19==4)&&(!(a7==1)&&(((a0==1)&&((!(a25==1)&&((a11==1)&&(!(a20==1)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==1))&&(a14==9)))))&&!(a24==1)))&&(a22==1))))&&(a28==1))){ + a19 = 1; + a14 = 8; + a25 = 1; + a24 = 1; + a0 = 0; + a29 = 7; + return 23; + } else if(((((!(a7==1)&&((!(a24==1)&&(((a11==1)&&((((!(a25==1)&&(a29==5))&&(a19==1))||((((a29==8)&&(a25==1))&&(a19==5))||((a19==5)&&((a29==9)&&(a25==1)))))&&(input==4)))&&(a0==1)))&&(a22==1)))&&(a14==8))&&(a20==1))&&(a28==1))){ + a29 = 9; + a20 = 0; + a24 = 1; + a19 = 2; + a0 = 0; + a25 = 0; + return 21; + } else if((!(a0==1)&&((((a14==9)&&(!(a20==1)&&((a24==1)&&(!(a25==1)&&((a7==1)&&(((a11==1)&&((input==3)&&((a29==7)||((a29==5)||(a29==6)))))&&(a19==3)))))))&&(a28==1))&&(a22==1)))){ + a0 = 1; + a14 = 8; + a25 = 1; + a29 = 5; + a19 = 1; + a20 = 1; + return -1; + } else if((!(a24==1)&&((((a29==5)&&((a19==4)&&(((a20==1)&&((((a7==1)&&((input==4)&&(a14==9)))&&(a22==1))&&!(a25==1)))&&(a28==1))))&&!(a11==1))&&!(a0==1)))){ + a20 = 0; + a19 = 2; + a11 = 1; + a25 = 1; + a29 = 8; + a24 = 1; + return -1; + } else if(((((((a11==1)&&((!(a0==1)&&((((((a29==7)||((a29==5)||(a29==6)))&&(input==5))&&(a19==2))&&(a28==1))&&(a14==8)))&&(a7==1)))&&(a25==1))&&(a22==1))&&(a24==1))&&!(a20==1))){ + a29 = 5; + a20 = 1; + a19 = 4; + return -1; + } else if(((a19==1)&&(((((a20==1)&&(((((a7==1)&&(!(a25==1)&&((input==2)&&((a29==8)||((a29==6)||(a29==7))))))&&(a14==9))&&(a0==1))&&(a22==1)))&&!(a11==1))&&(a24==1))&&(a28==1)))){ + a14 = 8; + a19 = 4; + a20 = 0; + a24 = 0; + a29 = 8; + return 21; + } else if(((a22==1)&&(((!(a25==1)&&(((a19==4)&&((((a20==1)&&(!(a11==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==5))))&&!(a0==1))&&!(a7==1)))&&(a24==1)))&&(a14==8))&&(a28==1)))){ + a0 = 1; + a29 = 9; + a24 = 0; + a11 = 1; + a14 = 9; + a19 = 3; + return 24; + } else if((!(a24==1)&&((((a28==1)&&((a14==9)&&(((!(a11==1)&&((!(a25==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==5)))&&(a22==1)))&&(a20==1))&&(a19==2))))&&!(a0==1))&&(a7==1)))){ + a29 = 7; + a19 = 3; + a24 = 1; + a14 = 8; + a20 = 0; + return 23; + } else if((!(a0==1)&&(!(a25==1)&&((a14==8)&&((a11==1)&&((a19==5)&&((a7==1)&&(((a29==5)&&((((input==3)&&(a28==1))&&!(a20==1))&&(a22==1)))&&!(a24==1))))))))){ + a25 = 1; + a7 = 0; + a19 = 4; + a0 = 1; + a29 = 9; + a11 = 0; + return 24; + } else if((((a7==1)&&(!(a24==1)&&(!(a0==1)&&((a22==1)&&(((a25==1)&&((a11==1)&&((((a14==9)&&(input==2))&&(a28==1))&&(a20==1))))&&(a19==1))))))&&(a29==6))){ + a29 = 5; + a24 = 1; + a14 = 8; + a0 = 1; + return -1; + } else if(((a7==1)&&(((a19==3)&&(((a28==1)&&(((!(a24==1)&&((a14==8)&&((a20==1)&&((input==4)&&(((a29==7)||(a29==8))||(a29==9))))))&&(a22==1))&&(a25==1)))&&!(a0==1)))&&!(a11==1)))){ + a11 = 1; + a0 = 1; + a29 = 5; + a19 = 1; + a24 = 1; + return -1; + } else if(((((!(a7==1)&&((a0==1)&&((a28==1)&&((((((input==5)&&(a14==8))&&(a22==1))&&(a24==1))&&(a29==9))&&(a19==3)))))&&(a25==1))&&!(a11==1))&&!(a20==1))){ + a14 = 9; + a11 = 1; + a7 = 1; + a19 = 5; + return 21; + } else if(((a29==8)&&((a0==1)&&((a25==1)&&(((a19==5)&&((a28==1)&&((a22==1)&&(((((a14==8)&&(input==4))&&(a7==1))&&!(a20==1))&&!(a24==1)))))&&(a11==1)))))){ + a20 = 1; + a29 = 5; + a24 = 1; + a19 = 1; + return -1; + } else if((((a14==10)&&((((a0==1)&&((!(a7==1)&&((a20==1)&&(((input==6)&&((((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))||((a29==6)&&(a19==3))))&&(a24==1))))&&(a28==1)))&&(a22==1))&&!(a25==1)))&&(a11==1))){ + a29 = 9; + a25 = 1; + a14 = 9; + a20 = 0; + a19 = 3; + a7 = 1; + a24 = 0; + return 24; + } else if(((((((((a11==1)&&(((a19==2)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==2))&&(a0==1)))&&(a14==10)))&&!(a25==1))&&!(a20==1))&&(a24==1))&&(a22==1))&&(a28==1))&&!(a7==1))){ + a29 = 9; + a7 = 1; + a14 = 8; + a25 = 1; + a19 = 4; + a0 = 0; + return 21; + } else if(((((!(a24==1)&&((((((((input==2)&&(((a29==6)||(a29==7))||(a29==8)))&&(a14==9))&&(a28==1))&&!(a11==1))&&(a0==1))&&!(a20==1))&&!(a7==1)))&&(a19==2))&&(a22==1))&&!(a25==1))){ + a11 = 1; + a14 = 8; + a7 = 1; + a19 = 3; + a29 = 5; + a0 = 0; + return 23; + } else if((!(a7==1)&&((((a14==10)&&((((a19==4)&&((!(a25==1)&&((a24==1)&&((input==6)&&((a29==8)||(a29==9)))))&&(a28==1)))&&(a22==1))&&(a11==1)))&&!(a20==1))&&(a0==1)))){ + a25 = 1; + a19 = 5; + a24 = 0; + a20 = 1; + a14 = 9; + a29 = 9; + return -1; + } else if((((a14==9)&&((a20==1)&&((a22==1)&&((a28==1)&&((a29==9)&&(!(a7==1)&&((((!(a0==1)&&(input==6))&&!(a24==1))&&(a11==1))&&!(a25==1))))))))&&(a19==2))){ + a14 = 8; + a7 = 1; + return 24; + } else if((((a22==1)&&(((((input==5)&&(((((((!(a7==1)&&!(a20==1))&&(a24==1))&&!(a25==1))&&(a29==8))&&(a19==5))||((a19==5)&&((a29==9)&&(((a24==1)&&(!(a20==1)&&!(a7==1)))&&!(a25==1)))))||(((a29==5)&&((((a20==1)&&(a7==1))&&!(a24==1))&&(a25==1)))&&(a19==1))))&&(a0==1))&&(a14==8))&&(a28==1)))&&!(a11==1))){ + a24 = 0; + a11 = 1; + a14 = 9; + a29 = 5; + a7 = 1; + a20 = 1; + a25 = 1; + a19 = 3; + return 24; + } else if(((!(a7==1)&&((a20==1)&&(!(a0==1)&&(!(a11==1)&&(((!(a25==1)&&((a28==1)&&((input==2)&&((((a19==2)&&(a29==8))||((a29==9)&&(a19==2)))||((a19==3)&&(a29==5))))))&&(a14==8))&&(a22==1))))))&&!(a24==1))){ + a24 = 1; + a29 = 7; + a11 = 1; + a19 = 4; + return 21; + } else if(((a19==4)&&(((a7==1)&&(!(a25==1)&&((a24==1)&&(((a28==1)&&(((((a0==1)&&(input==6))&&(a20==1))&&(a29==8))&&(a11==1)))&&(a14==9)))))&&(a22==1)))){ + a11 = 0; + a19 = 2; + a0 = 0; + a25 = 1; + a20 = 0; + a29 = 6; + a24 = 0; + return 23; + } else if(((a20==1)&&((((((((((((a29==5)&&(a19==3))||(((a29==8)&&(a19==2))||((a29==9)&&(a19==2))))&&(input==1))&&!(a11==1))&&!(a24==1))&&!(a25==1))&&(a28==1))&&(a14==8))&&(a7==1))&&(a0==1))&&(a22==1)))){ + a11 = 1; + a24 = 1; + a29 = 5; + a25 = 1; + a19 = 1; + return -1; + } else if((((a14==8)&&(((!(a24==1)&&(((((a28==1)&&((((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))&&(input==4)))&&(a22==1))&&!(a25==1))&&(a0==1)))&&!(a7==1))&&(a20==1)))&&!(a11==1))){ + a29 = 5; + a25 = 1; + a11 = 1; + a19 = 1; + a7 = 1; + a24 = 1; + return -1; + } else if((!(a25==1)&&(((!(a11==1)&&(((a20==1)&&(((a24==1)&&(((((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))&&(input==1))&&(a14==9)))&&(a7==1)))&&(a0==1)))&&(a22==1))&&(a28==1)))){ + a14 = 8; + a25 = 1; + a11 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if((((a14==9)&&((a0==1)&&((a29==5)&&((a24==1)&&((a22==1)&&(((a7==1)&&((a28==1)&&(((a25==1)&&(input==5))&&!(a20==1))))&&(a11==1)))))))&&(a19==3))){ + a24 = 0; + a29 = 8; + a19 = 1; + a7 = 0; + return 23; + } else if(((a22==1)&&((a28==1)&&(((a20==1)&&((((!(a25==1)&&((a0==1)&&((((a29==6)&&(a19==5))||(((a29==9)&&(a19==4))||((a29==5)&&(a19==5))))&&(input==2))))&&!(a24==1))&&!(a7==1))&&!(a11==1)))&&(a14==9))))){ + a0 = 0; + a29 = 8; + a19 = 2; + a20 = 0; + a25 = 1; + a14 = 8; + return 21; + } else if((!(a20==1)&&((a22==1)&&((((((a14==9)&&((((((a29==5)&&(a19==5))||(((a29==8)&&(a19==4))||((a19==4)&&(a29==9))))&&(input==4))&&!(a11==1))&&(a24==1)))&&!(a7==1))&&!(a25==1))&&!(a0==1))&&(a28==1))))){ + a20 = 1; + a29 = 8; + a19 = 3; + a14 = 8; + a25 = 1; + a11 = 1; + a7 = 1; + return -1; + } else if(((!(a25==1)&&((a28==1)&&(((a7==1)&&(!(a0==1)&&((a22==1)&&(!(a20==1)&&(!(a11==1)&&((((a19==2)&&(a29==6))||(((a19==1)&&(a29==9))||((a19==2)&&(a29==5))))&&(input==5)))))))&&(a14==9))))&&!(a24==1))){ + a11 = 1; + a20 = 1; + a0 = 1; + a24 = 1; + a19 = 1; + a7 = 0; + a29 = 8; + a25 = 1; + return -1; + } else if(((a28==1)&&(((((((a14==9)&&(!(a25==1)&&(!(a20==1)&&((input==1)&&(((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))))))&&!(a0==1))&&(a22==1))&&(a7==1))&&(a24==1))&&!(a11==1)))){ + a0 = 1; + a24 = 0; + a11 = 1; + a19 = 2; + a29 = 6; + return 23; + } else if((((((a28==1)&&(!(a24==1)&&((a20==1)&&((((a0==1)&&((a19==1)&&((input==6)&&((a29==8)||(a29==9)))))&&(a22==1))&&(a25==1)))))&&!(a11==1))&&(a14==9))&&!(a7==1))){ + a11 = 1; + a29 = 5; + return 23; + } else if((((((a28==1)&&((a25==1)&&((a0==1)&&(((a22==1)&&((((input==4)&&(a14==9))&&(a7==1))&&(a24==1)))&&(a11==1)))))&&!(a20==1))&&(a29==9))&&(a19==3))){ + a19 = 5; + a20 = 1; + a11 = 0; + return 23; + } else if((((a0==1)&&(((!(a24==1)&&((((!(a11==1)&&((((a29==6)&&(a19==4))||(((a29==9)&&(a19==3))||((a29==5)&&(a19==4))))&&(input==6)))&&!(a20==1))&&(a25==1))&&(a22==1)))&&(a14==9))&&(a28==1)))&&(a7==1))){ + a29 = 5; + a19 = 1; + a24 = 1; + a14 = 8; + a20 = 1; + a11 = 1; + return -1; + } else if((((!(a0==1)&&(((((a11==1)&&((a14==9)&&(((((a29==8)||((a29==6)||(a29==7)))&&(input==4))&&!(a7==1))&&(a19==5))))&&(a22==1))&&(a28==1))&&(a20==1)))&&(a25==1))&&!(a24==1))){ + a7 = 1; + a11 = 0; + a0 = 1; + a20 = 0; + a19 = 3; + a29 = 5; + return 21; + } else if((!(a20==1)&&(((((a14==9)&&(((a28==1)&&(!(a25==1)&&((a22==1)&&(!(a24==1)&&((input==4)&&((a29==6)||(a29==7)))))))&&(a19==1)))&&!(a0==1))&&(a7==1))&&!(a11==1)))){ + a20 = 1; + a14 = 8; + a29 = 5; + return 24; + } else if((((((a24==1)&&((a0==1)&&(((a14==9)&&((a29==9)&&(!(a20==1)&&((a28==1)&&((input==3)&&(a7==1))))))&&(a22==1))))&&!(a25==1))&&!(a11==1))&&(a19==4))){ + a0 = 0; + a19 = 2; + a7 = 0; + a29 = 6; + a14 = 8; + a24 = 0; + return 21; + } else if((((a19==1)&&(!(a20==1)&&(((a0==1)&&((a22==1)&&(!(a7==1)&&(!(a25==1)&&((a24==1)&&(((input==3)&&((a29==8)||((a29==6)||(a29==7))))&&(a28==1)))))))&&(a14==8))))&&(a11==1))){ + a11 = 0; + a29 = 9; + a19 = 4; + return 21; + } else if((((((!(a24==1)&&((a22==1)&&((a20==1)&&((!(a7==1)&&(!(a11==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==6))))&&(a28==1)))))&&(a0==1))&&(a14==8))&&(a25==1))&&(a19==3))){ + a14 = 9; + a29 = 9; + a19 = 5; + a11 = 1; + a20 = 0; + a7 = 1; + return 24; + } else if((((a14==8)&&((((a19==1)&&(!(a20==1)&&((a11==1)&&((a28==1)&&((((input==6)&&(((a29==7)||(a29==8))||(a29==9)))&&(a7==1))&&(a22==1))))))&&(a0==1))&&!(a24==1)))&&!(a25==1))){ + a24 = 1; + a0 = 0; + a29 = 9; + a20 = 1; + return 21; + } else if(((a19==3)&&(((((a22==1)&&(((a0==1)&&(((a29==6)&&(((a7==1)&&(input==3))&&(a14==8)))&&(a11==1)))&&(a25==1)))&&!(a20==1))&&(a28==1))&&!(a24==1)))){ + a0 = 0; + a29 = 7; + return 24; + } else if(((a14==8)&&(((a0==1)&&(!(a7==1)&&((a19==2)&&((a22==1)&&((a25==1)&&((a29==6)&&(!(a24==1)&&((!(a11==1)&&(input==5))&&!(a20==1)))))))))&&(a28==1)))){ + a19 = 4; + a11 = 1; + a24 = 1; + a20 = 1; + a25 = 0; + return -1; + } else if((((!(a25==1)&&((((a14==9)&&((a22==1)&&((((a7==1)&&(((a29==7)||(a29==8))&&(input==1)))&&(a24==1))&&(a19==4))))&&(a28==1))&&!(a11==1)))&&!(a20==1))&&!(a0==1))){ + a0 = 1; + a19 = 3; + a11 = 1; + a20 = 1; + a29 = 6; + return 21; + } else if(((!(a25==1)&&((a7==1)&&((a0==1)&&(((a28==1)&&((a19==5)&&((a22==1)&&(((a20==1)&&(((a29==5)||(a29==6))&&(input==2)))&&!(a24==1)))))&&!(a11==1)))))&&(a14==8))){ + a25 = 1; + a19 = 1; + a29 = 5; + a11 = 1; + a24 = 1; + return -1; + } else if(((!(a25==1)&&((!(a7==1)&&((a28==1)&&((((a14==9)&&((a22==1)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==4))&&(a0==1))))&&(a20==1))&&(a19==3))))&&!(a24==1)))&&!(a11==1))){ + a25 = 1; + a20 = 0; + a29 = 9; + a19 = 4; + return 21; + } else if(((((a24==1)&&((((((!(a0==1)&&((a28==1)&&((a19==5)&&(input==3))))&&!(a20==1))&&!(a7==1))&&(a22==1))&&(a14==8))&&!(a25==1)))&&(a11==1))&&(a29==6))){ + a29 = 5; + a24 = 0; + a14 = 9; + a19 = 1; + a0 = 1; + a11 = 0; + return 23; + } else if(((((!(a24==1)&&((a28==1)&&(((((a14==9)&&(((input==4)&&!(a7==1))&&(a11==1)))&&(a0==1))&&!(a25==1))&&(a29==5))))&&(a20==1))&&(a22==1))&&(a19==5))){ + a24 = 1; + a7 = 1; + a20 = 0; + a19 = 1; + return -1; + } else if(((a14==9)&&((a28==1)&&(!(a0==1)&&((a20==1)&&((((((a19==5)&&((a24==1)&&((input==2)&&(a29==7))))&&!(a11==1))&&(a25==1))&&(a7==1))&&(a22==1))))))){ + a19 = 1; + a29 = 9; + return -1; + } else if((!(a24==1)&&((a19==5)&&(((a28==1)&&((!(a0==1)&&(((a22==1)&&(((a29==6)&&((input==2)&&(a25==1)))&&(a14==8)))&&(a11==1)))&&!(a7==1)))&&(a20==1))))){ + a0 = 1; + a24 = 1; + a29 = 5; + a7 = 1; + a19 = 1; + return -1; + } else if((!(a24==1)&&((((a28==1)&&((a22==1)&&((!(a20==1)&&((a29==8)&&(((a14==8)&&(!(a25==1)&&(input==3)))&&!(a11==1))))&&(a19==3))))&&(a7==1))&&(a0==1)))){ + a19 = 1; + a11 = 1; + a24 = 1; + a25 = 1; + a29 = 5; + a20 = 1; + return -1; + } return calculate_output42(input); + } + + int calculate_output42(int input) { + if((!(a20==1)&&(!(a25==1)&&((((a24==1)&&((a0==1)&&((((!(a7==1)&&((input==3)&&!(a11==1)))&&(a28==1))&&(a19==4))&&(a22==1))))&&(a14==8))&&(a29==7))))){ + a11 = 1; + a29 = 5; + a7 = 1; + a19 = 1; + a25 = 1; + a20 = 1; + return -1; + } else if(((!(a7==1)&&((a14==9)&&(((a28==1)&&((((a24==1)&&((a25==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==4))&&!(a20==1))))&&!(a0==1))&&!(a11==1)))&&(a22==1))))&&(a19==3))){ + a11 = 1; + a7 = 1; + a14 = 8; + a20 = 1; + a29 = 9; + return 23; + } else if(((a24==1)&&((((!(a7==1)&&((((a28==1)&&((!(a20==1)&&((input==4)&&((a29==5)||(a29==6))))&&(a0==1)))&&!(a25==1))&&(a19==4)))&&(a14==9))&&(a22==1))&&!(a11==1)))){ + a7 = 1; + a29 = 6; + a0 = 0; + a14 = 8; + a11 = 1; + a19 = 2; + return 24; + } else if(((!(a0==1)&&(((a28==1)&&((a14==9)&&((!(a25==1)&&((a11==1)&&((((input==1)&&((a29==5)||(a29==6)))&&!(a24==1))&&!(a7==1))))&&(a19==3))))&&(a22==1)))&&!(a20==1))){ + a14 = 8; + a29 = 7; + a25 = 1; + a7 = 1; + return 24; + } else if((((a20==1)&&((!(a25==1)&&(((((((input==3)&&((((a29==8)&&(a19==3))||((a29==9)&&(a19==3)))||((a19==4)&&(a29==5))))&&(a7==1))&&(a0==1))&&!(a24==1))&&(a14==8))&&(a28==1)))&&!(a11==1)))&&(a22==1))){ + a0 = 0; + a24 = 1; + a29 = 7; + a11 = 1; + a19 = 1; + return 23; + } else if((!(a7==1)&&(((!(a24==1)&&(!(a20==1)&&((!(a25==1)&&(((a22==1)&&((((a29==8)||(a29==9))&&(input==2))&&!(a11==1)))&&(a28==1)))&&(a0==1))))&&(a14==8))&&(a19==1)))){ + a29 = 9; + a11 = 1; + a7 = 1; + a19 = 4; + a20 = 1; + a25 = 1; + return -1; + } else if((((a14==10)&&(!(a7==1)&&((a28==1)&&(((a20==1)&&(((a0==1)&&(((((a19==3)&&(a29==6))||(((a29==9)&&(a19==2))||((a29==5)&&(a19==3))))&&(input==4))&&!(a25==1)))&&(a11==1)))&&(a24==1)))))&&(a22==1))){ + a7 = 1; + a14 = 8; + a19 = 4; + a0 = 0; + a29 = 9; + a25 = 1; + return 24; + } else if((!(a11==1)&&(!(a20==1)&&(((a28==1)&&(((((a0==1)&&((!(a7==1)&&((a19==4)&&(input==2)))&&(a25==1)))&&(a14==9))&&(a29==9))&&!(a24==1)))&&(a22==1))))){ + a7 = 1; + a24 = 1; + a14 = 8; + a20 = 1; + a19 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if(((a28==1)&&(!(a0==1)&&((((a14==8)&&(!(a20==1)&&(((((((a29==6)||(a29==7))&&(input==5))&&(a22==1))&&!(a24==1))&&(a25==1))&&(a7==1))))&&(a19==1))&&(a11==1))))){ + a14 = 9; + a24 = 1; + a20 = 1; + a19 = 4; + a7 = 0; + a29 = 6; + a25 = 0; + return 23; + } else if(((a28==1)&&(!(a7==1)&&(!(a0==1)&&(!(a25==1)&&((!(a20==1)&&((a11==1)&&((a22==1)&&((a19==1)&&((((a29==5)||(a29==6))&&(input==4))&&(a14==8))))))&&(a24==1))))))){ + a20 = 1; + a29 = 8; + return -1; + } else if((((a19==2)&&(!(a20==1)&&(!(a7==1)&&((!(a11==1)&&(((a0==1)&&(!(a24==1)&&((a14==8)&&((input==1)&&(a25==1)))))&&(a28==1)))&&(a29==7)))))&&(a22==1))){ + a29 = 9; + a19 = 3; + a7 = 1; + a11 = 1; + a20 = 1; + return -1; + } else if(((((((!(a0==1)&&(((a22==1)&&(!(a24==1)&&((a25==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==4)))))&&(a19==5)))&&!(a7==1))&&(a20==1))&&(a14==9))&&(a28==1))&&!(a11==1))){ + a14 = 8; + a20 = 0; + a11 = 1; + a19 = 1; + a7 = 1; + a29 = 7; + return 21; + } else if(((!(a0==1)&&((!(a25==1)&&(((a28==1)&&(((((input==5)&&(((a19==1)&&(a29==9))||((a19==2)&&(a29==5))))&&(a14==8))&&!(a20==1))&&(a24==1)))&&!(a7==1)))&&(a22==1)))&&!(a11==1))){ + a11 = 1; + a29 = 9; + a25 = 1; + a19 = 2; + a7 = 1; + return 24; + } else if((((a14==10)&&((((((a0==1)&&((((a25==1)&&(((a29==8)||(a29==9))&&(input==1)))&&(a24==1))&&!(a7==1)))&&(a28==1))&&(a11==1))&&(a22==1))&&(a19==4)))&&(a20==1))){ + a19 = 1; + a14 = 8; + a7 = 1; + a29 = 5; + return -1; + } else if(((((a24==1)&&(((((a0==1)&&((((((a29==8)||(a29==9))&&(input==3))&&(a28==1))&&!(a25==1))&&(a19==4)))&&(a14==10))&&(a22==1))&&(a11==1)))&&!(a7==1))&&!(a20==1))){ + a19 = 1; + a14 = 8; + a25 = 1; + a20 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if(((((((a22==1)&&((a24==1)&&(((a28==1)&&(((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))&&(input==6))&&!(a20==1)))&&(a14==9))))&&(a7==1))&&!(a0==1))&&(a25==1))&&(a11==1))){ + a20 = 1; + a14 = 8; + a29 = 5; + a0 = 1; + a19 = 1; + return -1; + } else if(((((((!(a20==1)&&((a22==1)&&(((a14==9)&&(((input==3)&&((a29==6)||(a29==7)))&&(a7==1)))&&!(a25==1))))&&!(a24==1))&&(a19==4))&&(a11==1))&&(a28==1))&&!(a0==1))){ + a29 = 7; + a25 = 1; + a20 = 1; + a19 = 1; + return -1; + } else if((((((!(a0==1)&&(((a22==1)&&((((a14==8)&&((a24==1)&&(input==1)))&&(a20==1))&&(a25==1)))&&(a28==1)))&&!(a11==1))&&(a29==8))&&!(a7==1))&&(a19==2))){ + a20 = 0; + a19 = 5; + a11 = 1; + a7 = 1; + a29 = 5; + return 21; + } else if(((((!(a11==1)&&((a22==1)&&(((!(a24==1)&&((((input==1)&&!(a7==1))&&!(a0==1))&&(a19==5)))&&(a28==1))&&(a29==8))))&&(a25==1))&&(a14==9))&&!(a20==1))){ + a29 = 5; + a7 = 1; + a14 = 8; + a11 = 1; + a24 = 1; + a0 = 1; + a19 = 1; + a20 = 1; + return -1; + } else if(((a11==1)&&(!(a24==1)&&((a25==1)&&(((((((a7==1)&&((input==2)&&((((a29==8)&&(a19==2))||((a19==2)&&(a29==9)))||((a29==5)&&(a19==3)))))&&(a22==1))&&(a28==1))&&(a20==1))&&(a14==10))&&(a0==1)))))){ + a0 = 0; + a24 = 1; + a14 = 8; + a29 = 6; + a19 = 5; + return 23; + } else if(((((a24==1)&&(((!(a11==1)&&((a19==4)&&((!(a7==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==3))&&(a0==1)))&&(a25==1))))&&(a14==9))&&(a28==1)))&&(a20==1))&&(a22==1))){ + a0 = 0; + a14 = 8; + a19 = 3; + a7 = 1; + a11 = 1; + a24 = 0; + a29 = 7; + a25 = 0; + return 23; + } else if(((a22==1)&&(!(a0==1)&&((((((a19==5)&&((((a25==1)&&((input==4)&&((a29==7)||(a29==8))))&&!(a20==1))&&!(a24==1)))&&(a7==1))&&!(a11==1))&&(a14==9))&&(a28==1))))){ + a29 = 7; + a20 = 1; + a11 = 1; + a14 = 8; + a25 = 0; + return -1; + } else if((((((a28==1)&&((a19==4)&&((a22==1)&&((a24==1)&&((a29==8)&&((((input==3)&&(a7==1))&&(a14==9))&&(a0==1)))))))&&!(a25==1))&&!(a20==1))&&(a11==1))){ + a20 = 1; + a0 = 0; + a25 = 1; + a29 = 6; + a14 = 8; + a19 = 5; + return 23; + } else if(((a0==1)&&((a22==1)&&((((!(a24==1)&&(((a11==1)&&((a19==2)&&((a28==1)&&((input==4)&&((a29==6)||(a29==7))))))&&(a14==9)))&&!(a25==1))&&!(a20==1))&&(a7==1))))){ + a20 = 1; + a25 = 1; + a29 = 9; + a14 = 10; + return 24; + } else if((((a11==1)&&((((a7==1)&&((a19==1)&&((a0==1)&&((a22==1)&&(!(a25==1)&&((a24==1)&&((input==5)&&((a29==6)||(a29==7)))))))))&&(a28==1))&&(a14==9)))&&!(a20==1))){ + a0 = 0; + a19 = 4; + a14 = 8; + a24 = 0; + a29 = 9; + a20 = 1; + return 21; + } else if(((((!(a24==1)&&((((a28==1)&&((a19==2)&&((a11==1)&&((a14==9)&&((input==1)&&(a22==1))))))&&(a20==1))&&!(a0==1)))&&(a7==1))&&(a29==6))&&!(a25==1))){ + a29 = 5; + a25 = 1; + a24 = 1; + a0 = 1; + a14 = 8; + a19 = 1; + return -1; + } else if(((a11==1)&&(((a28==1)&&(((a19==5)&&((a14==9)&&(!(a0==1)&&((a7==1)&&((!(a24==1)&&(!(a20==1)&&(input==1)))&&(a22==1))))))&&(a25==1)))&&(a29==7)))){ + a24 = 1; + a19 = 1; + a20 = 1; + a0 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if((!(a25==1)&&(((!(a0==1)&&((a19==1)&&((!(a20==1)&&((((a24==1)&&((input==4)&&(((a29==7)||(a29==8))||(a29==9))))&&(a14==9))&&(a22==1)))&&(a11==1))))&&(a7==1))&&(a28==1)))){ + a25 = 1; + a7 = 0; + a0 = 1; + a29 = 8; + return 24; + } else if((!(a24==1)&&((((((((a28==1)&&((a22==1)&&((a0==1)&&((input==6)&&(a20==1)))))&&(a19==4))&&(a29==8))&&(a25==1))&&!(a7==1))&&(a14==8))&&(a11==1)))){ + a7 = 1; + a19 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if(((a0==1)&&(!(a7==1)&&((a19==5)&&(((a22==1)&&(!(a20==1)&&((((a24==1)&&((!(a11==1)&&(input==3))&&(a28==1)))&&(a14==8))&&(a25==1))))&&(a29==8)))))){ + a14 = 9; + a11 = 1; + a19 = 1; + return 21; + } else if(((a19==3)&&((!(a24==1)&&((a14==9)&&((a7==1)&&(!(a11==1)&&((a25==1)&&(((a0==1)&&((a20==1)&&((a22==1)&&(input==1))))&&(a28==1)))))))&&(a29==5)))){ + a14 = 8; + a24 = 1; + a19 = 1; + a11 = 1; + return -1; + } else if((((((a0==1)&&((((((a22==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==2))&&(a19==4)))&&(a7==1))&&!(a25==1))&&(a11==1))&&(a14==10)))&&(a20==1))&&(a24==1))&&(a28==1))){ + a14 = 8; + a19 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if(((a7==1)&&(((((((!(a11==1)&&((a19==1)&&((a28==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==5)))))&&(a22==1))&&(a25==1))&&!(a0==1))&&(a20==1))&&(a24==1))&&(a14==8)))){ + a20 = 0; + a19 = 4; + a29 = 6; + a7 = 0; + a24 = 0; + return 21; + } else if((((a22==1)&&((((a0==1)&&(((((a7==1)&&(((input==4)&&((a29==8)||((a29==6)||(a29==7))))&&(a11==1)))&&(a14==10))&&(a20==1))&&(a24==1)))&&(a28==1))&&!(a25==1)))&&(a19==1))){ + a25 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if((((((a24==1)&&((a28==1)&&((a19==5)&&(((((((a29==9)||((a29==7)||(a29==8)))&&(input==6))&&(a11==1))&&(a22==1))&&(a14==10))&&(a20==1)))))&&(a0==1))&&!(a7==1))&&!(a25==1))){ + a11 = 0; + a14 = 9; + a24 = 0; + a29 = 7; + return 24; + } else if((!(a7==1)&&(((!(a11==1)&&((a28==1)&&(((a0==1)&&((a22==1)&&((a14==9)&&((input==6)&&(((a29==5)&&(a19==4))||(((a29==8)&&(a19==3))||((a29==9)&&(a19==3))))))))&&!(a20==1))))&&(a25==1))&&!(a24==1)))){ + a20 = 1; + a0 = 0; + a29 = 8; + a19 = 1; + a14 = 8; + return -1; + } else if(((a14==8)&&((a22==1)&&(!(a0==1)&&(((((((((input==2)&&((a29==6)||(a29==7)))&&(a28==1))&&(a11==1))&&(a19==3))&&(a7==1))&&!(a24==1))&&!(a20==1))&&(a25==1)))))){ + a24 = 1; + a20 = 1; + a29 = 8; + a19 = 4; + a25 = 0; + return 23; + } else if(((!(a25==1)&&(((a14==8)&&((a11==1)&&((a19==4)&&((a22==1)&&((a28==1)&&((a24==1)&&((((a29==8)||(a29==9))&&(input==5))&&!(a20==1))))))))&&!(a7==1)))&&(a0==1))){ + a19 = 5; + a24 = 0; + a11 = 0; + a20 = 1; + a29 = 6; + a25 = 1; + return 21; + } else if((((a28==1)&&(!(a25==1)&&(!(a7==1)&&(((!(a24==1)&&(!(a0==1)&&((a14==8)&&(!(a11==1)&&(!(a20==1)&&(input==6))))))&&(a29==6))&&(a19==3)))))&&(a22==1))){ + a7 = 1; + a19 = 2; + a14 = 9; + a29 = 8; + a20 = 1; + return 21; + } else if(((a22==1)&&((a28==1)&&((a11==1)&&((((((((input==3)&&(((a29==5)&&(a19==2))||(((a19==1)&&(a29==8))||((a19==1)&&(a29==9)))))&&!(a20==1))&&!(a0==1))&&(a24==1))&&(a25==1))&&!(a7==1))&&(a14==8)))))){ + a29 = 7; + a25 = 0; + a20 = 1; + a19 = 1; + return -1; + } else if((!(a20==1)&&((((a28==1)&&((a29==5)&&((((a25==1)&&((((input==6)&&(a19==3))&&!(a0==1))&&!(a24==1)))&&(a14==9))&&!(a7==1))))&&(a22==1))&&!(a11==1)))){ + a14 = 8; + a20 = 1; + a11 = 1; + a24 = 1; + a0 = 1; + a7 = 1; + a19 = 1; + return -1; + } else if((((((((a14==8)&&((a0==1)&&((((a22==1)&&((input==5)&&!(a20==1)))&&!(a11==1))&&(a29==8))))&&!(a24==1))&&(a28==1))&&!(a25==1))&&(a7==1))&&(a19==3))){ + a24 = 1; + a29 = 6; + a14 = 9; + a25 = 1; + a19 = 5; + return 24; + } else if((!(a25==1)&&(((a20==1)&&(!(a0==1)&&(((a14==8)&&((((a29==7)&&((a28==1)&&(!(a7==1)&&(input==4))))&&(a19==5))&&(a22==1)))&&!(a24==1))))&&(a11==1)))){ + a24 = 1; + a14 = 9; + a19 = 3; + a29 = 9; + return 21; + } else if((!(a0==1)&&((((a7==1)&&((a24==1)&&((a22==1)&&((a25==1)&&((((input==1)&&(((a19==2)&&(a29==9))||((a29==5)&&(a19==3))))&&(a14==9))&&(a20==1))))))&&!(a11==1))&&(a28==1)))){ + a25 = 0; + a20 = 0; + a24 = 0; + a19 = 5; + a14 = 8; + a11 = 1; + a29 = 7; + return 24; + } else if(((a28==1)&&((a24==1)&&(!(a20==1)&&(!(a7==1)&&((((a25==1)&&(((a19==2)&&(((input==4)&&((a29==8)||(a29==9)))&&!(a11==1)))&&(a14==9)))&&(a0==1))&&(a22==1))))))){ + a29 = 7; + a24 = 0; + a14 = 8; + a19 = 3; + a25 = 0; + return 21; + } else if((((a0==1)&&(!(a20==1)&&(!(a25==1)&&(!(a24==1)&&((a7==1)&&((a28==1)&&((a11==1)&&((a14==9)&&((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))&&(input==6))))))))))&&(a22==1))){ + a19 = 1; + a29 = 8; + a20 = 1; + a14 = 10; + return 21; + } else if(((((((((!(a11==1)&&((a19==4)&&((a28==1)&&((input==2)&&(((a29==6)||(a29==7))||(a29==8))))))&&!(a24==1))&&(a22==1))&&(a20==1))&&!(a7==1))&&(a14==8))&&!(a0==1))&&!(a25==1))){ + a24 = 1; + a7 = 1; + a0 = 1; + a19 = 1; + a25 = 1; + a29 = 5; + a11 = 1; + return -1; + } else if((!(a25==1)&&(((((((((a11==1)&&(((input==5)&&((a29==8)||(a29==9)))&&(a28==1)))&&(a24==1))&&(a19==5))&&!(a20==1))&&(a7==1))&&(a22==1))&&(a14==10))&&(a0==1)))){ + a14 = 9; + a25 = 1; + a29 = 6; + a24 = 0; + a7 = 0; + return -1; + } else if(((a28==1)&&((a24==1)&&(!(a7==1)&&((a19==3)&&((a20==1)&&(((((a22==1)&&((a0==1)&&((a25==1)&&(input==5))))&&(a29==6))&&(a11==1))&&(a14==8)))))))){ + a19 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if(((((a19==2)&&((a0==1)&&(!(a7==1)&&((a14==8)&&((!(a11==1)&&(!(a25==1)&&((a24==1)&&((input==1)&&((a29==9)||((a29==7)||(a29==8)))))))&&(a20==1))))))&&(a22==1))&&(a28==1))){ + a11 = 1; + a19 = 1; + a29 = 7; + a0 = 0; + return 21; + } else if((!(a7==1)&&(!(a11==1)&&(((a14==9)&&((a22==1)&&((!(a24==1)&&((a20==1)&&((a25==1)&&((a28==1)&&((input==2)&&(((a29==5)||(a29==6))||(a29==7)))))))&&(a19==5))))&&!(a0==1))))){ + a11 = 1; + a29 = 5; + a24 = 1; + a7 = 1; + a19 = 1; + a0 = 1; + a14 = 8; + return -1; + } else if((!(a7==1)&&((!(a0==1)&&((a20==1)&&((((((a22==1)&&(((input==2)&&((a29==8)||((a29==6)||(a29==7))))&&(a19==3)))&&(a11==1))&&(a14==9))&&!(a25==1))&&(a24==1))))&&(a28==1)))){ + a29 = 7; + a19 = 5; + a11 = 0; + a20 = 0; + a7 = 1; + a0 = 1; + return -1; + } else if((!(a24==1)&&((a25==1)&&(!(a0==1)&&((a20==1)&&((a22==1)&&(((a14==8)&&((((a19==2)&&(((a29==8)||(a29==9))&&(input==6)))&&(a7==1))&&(a11==1)))&&(a28==1)))))))){ + a11 = 0; + a29 = 9; + a0 = 1; + a20 = 0; + a19 = 3; + a25 = 0; + return 23; + } else if(((a25==1)&&((a28==1)&&((((a14==8)&&((a19==4)&&((((a24==1)&&(!(a7==1)&&(((a29==6)||(a29==7))&&(input==5))))&&!(a0==1))&&(a22==1))))&&!(a20==1))&&(a11==1))))){ + a19 = 1; + a20 = 1; + a0 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if(((a28==1)&&((((a22==1)&&(((((a7==1)&&(((((a29==5)||(a29==6))&&(input==2))&&!(a25==1))&&!(a20==1)))&&(a14==8))&&!(a0==1))&&(a11==1)))&&(a24==1))&&(a19==5)))){ + a0 = 1; + a29 = 9; + a24 = 0; + a19 = 3; + a11 = 0; + return -1; + } else if((((!(a20==1)&&(((((a14==8)&&((((a28==1)&&((input==5)&&(((a29==7)||(a29==8))||(a29==9))))&&(a25==1))&&(a22==1)))&&(a24==1))&&(a7==1))&&(a11==1)))&&(a0==1))&&(a19==2))){ + a20 = 1; + a7 = 0; + a29 = 9; + a25 = 0; + a24 = 0; + return 21; + } else if((((((a0==1)&&((a14==8)&&(!(a11==1)&&((((a25==1)&&((((a29==5)||(a29==6))&&(input==4))&&!(a24==1)))&&(a22==1))&&(a20==1)))))&&(a28==1))&&(a19==1))&&!(a7==1))){ + a19 = 5; + a29 = 7; + a20 = 0; + a25 = 0; + return 23; + } else if((((!(a11==1)&&(((((a28==1)&&((!(a7==1)&&(((input==4)&&(((a29==6)||(a29==7))||(a29==8)))&&(a0==1)))&&!(a24==1)))&&!(a25==1))&&(a19==3))&&!(a20==1)))&&(a22==1))&&(a14==9))){ + a0 = 0; + a25 = 1; + a29 = 9; + a14 = 8; + a24 = 1; + a20 = 1; + a19 = 4; + a11 = 1; + return 21; + } else if((((((((a20==1)&&(!(a7==1)&&(((!(a24==1)&&(((a29==5)||(a29==6))&&(input==4)))&&(a14==9))&&!(a25==1))))&&(a22==1))&&(a28==1))&&(a0==1))&&(a19==2))&&!(a11==1))){ + a29 = 7; + a7 = 1; + a19 = 3; + a11 = 1; + return 24; + } else if(((!(a24==1)&&(((a22==1)&&((!(a0==1)&&((a11==1)&&((!(a7==1)&&((a14==8)&&((input==2)&&((a29==6)||(a29==7)))))&&(a19==1))))&&!(a20==1)))&&!(a25==1)))&&(a28==1))){ + a24 = 1; + a20 = 1; + a29 = 5; + return 21; + } else if(((a24==1)&&(((((a22==1)&&(!(a11==1)&&(!(a7==1)&&(((((((a25==1)&&(a29==9))&&(a19==5))||(((a29==5)&&!(a25==1))&&(a19==1)))||((!(a25==1)&&(a29==6))&&(a19==1)))&&(input==1))&&!(a0==1)))))&&(a28==1))&&(a14==9))&&!(a20==1)))){ + a19 = 4; + a25 = 0; + a14 = 8; + a11 = 1; + a29 = 6; + a7 = 1; + return -1; + } else if((!(a7==1)&&((a22==1)&&((a25==1)&&(((!(a11==1)&&((a28==1)&&(!(a0==1)&&(!(a24==1)&&((input==2)&&((((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))||((a29==5)&&(a19==3))))))))&&(a20==1))&&(a14==8)))))){ + a29 = 8; + a11 = 1; + a24 = 1; + a7 = 1; + a19 = 3; + return 24; + } else if((!(a0==1)&&((!(a20==1)&&(!(a25==1)&&((a14==9)&&((a22==1)&&(((!(a11==1)&&(((((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))||((a19==3)&&(a29==6)))&&(input==3)))&&(a28==1))&&(a7==1))))))&&(a24==1)))){ + a14 = 8; + a29 = 7; + a11 = 1; + a19 = 5; + a20 = 1; + return 23; + } else if((!(a11==1)&&((a7==1)&&((a22==1)&&((a19==5)&&(((a24==1)&&((a25==1)&&((a28==1)&&((a14==8)&&((a0==1)&&((input==4)&&(((a29==7)||(a29==8))||(a29==9))))))))&&!(a20==1))))))){ + a29 = 6; + a0 = 0; + a11 = 1; + a19 = 2; + return 21; + } else if(((a14==8)&&((a11==1)&&((!(a20==1)&&((((!(a7==1)&&((!(a25==1)&&(((a29==7)||(a29==8))&&(input==4)))&&!(a24==1)))&&(a19==4))&&(a28==1))&&!(a0==1)))&&(a22==1))))){ + a29 = 5; + a14 = 9; + a24 = 1; + return 23; + } else if((!(a0==1)&&(((a28==1)&&((a25==1)&&((!(a11==1)&&(((a19==2)&&((a22==1)&&(((input==4)&&(a24==1))&&(a29==6))))&&(a14==9)))&&!(a7==1))))&&!(a20==1)))){ + a19 = 3; + a24 = 0; + a25 = 0; + a11 = 1; + a14 = 8; + a29 = 5; + a7 = 1; + return 21; + } else if((!(a11==1)&&(!(a25==1)&&((!(a0==1)&&(((a19==4)&&(((a28==1)&&((((input==3)&&((a29==6)||(a29==7)))&&(a24==1))&&(a22==1)))&&(a14==8)))&&!(a20==1)))&&!(a7==1))))){ + a29 = 9; + a11 = 1; + a25 = 1; + a19 = 1; + return 23; + } else if((((a0==1)&&(((a14==8)&&(((!(a20==1)&&((a28==1)&&(((((a29==5)||(a29==6))&&(input==3))&&(a22==1))&&(a25==1))))&&(a11==1))&&!(a7==1)))&&(a19==1)))&&(a24==1))){ + a20 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if(((a20==1)&&(!(a0==1)&&((((a19==2)&&((a11==1)&&((((a28==1)&&((a22==1)&&((input==4)&&((a29==7)||((a29==5)||(a29==6))))))&&(a14==8))&&!(a25==1))))&&!(a24==1))&&!(a7==1))))){ + a19 = 1; + a29 = 5; + a7 = 1; + a24 = 1; + a25 = 1; + a0 = 1; + return -1; + } else if(((a19==4)&&((a14==9)&&((a7==1)&&((((((a11==1)&&(!(a0==1)&&((a20==1)&&((input==1)&&(((a29==7)||(a29==8))||(a29==9))))))&&(a22==1))&&(a28==1))&&(a24==1))&&(a25==1)))))){ + a19 = 3; + a25 = 0; + a29 = 5; + a14 = 8; + return 24; + } else if(((!(a0==1)&&(((!(a25==1)&&(((a14==8)&&(((a19==1)&&(!(a24==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==5))))&&(a28==1)))&&(a11==1)))&&(a7==1))&&(a22==1)))&&!(a20==1))){ + a7 = 0; + a0 = 1; + a29 = 8; + a11 = 0; + a19 = 3; + return -1; + } else if(((a29==8)&&(!(a24==1)&&(((a19==4)&&((!(a7==1)&&((((((input==1)&&(a22==1))&&(a28==1))&&(a25==1))&&(a0==1))&&(a20==1)))&&(a11==1)))&&(a14==8))))){ + a7 = 1; + a19 = 2; + a0 = 0; + return 21; + } else if(((a11==1)&&(((a14==10)&&((((a0==1)&&(((((((a29==7)||(a29==8))&&(input==3))&&(a19==3))&&(a25==1))&&!(a7==1))&&(a28==1)))&&(a20==1))&&(a22==1)))&&(a24==1)))){ + a11 = 0; + a29 = 7; + a20 = 0; + a24 = 0; + a14 = 9; + a7 = 1; + return -1; + } else if(((!(a11==1)&&(((!(a20==1)&&((a7==1)&&((((((input==6)&&(a14==8))&&(a0==1))&&(a22==1))&&(a19==4))&&(a28==1))))&&(a29==7))&&!(a25==1)))&&(a24==1))){ + a25 = 1; + a20 = 1; + a11 = 1; + a19 = 3; + a29 = 6; + a14 = 9; + a7 = 0; + return 23; + } else if(((((a19==4)&&(!(a25==1)&&((((!(a11==1)&&((((input==5)&&((a29==8)||((a29==6)||(a29==7))))&&!(a0==1))&&(a20==1)))&&(a28==1))&&(a22==1))&&(a14==8))))&&!(a24==1))&&!(a7==1))){ + a29 = 8; + a25 = 1; + a20 = 0; + a24 = 1; + a19 = 5; + return 24; + } else if((((a24==1)&&(!(a20==1)&&((a22==1)&&(((!(a7==1)&&(((!(a25==1)&&(((a29==7)||(a29==8))&&(input==5)))&&(a28==1))&&(a19==4)))&&!(a11==1))&&(a14==9)))))&&(a0==1))){ + a19 = 1; + a11 = 1; + a25 = 1; + a29 = 5; + a14 = 8; + a7 = 1; + a20 = 1; + return -1; + } else if((!(a25==1)&&(((a19==2)&&((a14==9)&&((((a24==1)&&((a22==1)&&((!(a7==1)&&(((a29==8)||(a29==9))&&(input==2)))&&!(a0==1))))&&(a11==1))&&(a28==1))))&&(a20==1)))){ + a29 = 5; + a0 = 1; + a24 = 0; + return 21; + } else if(((a29==9)&&((a22==1)&&((a20==1)&&((((a19==1)&&((((((input==6)&&(a0==1))&&(a11==1))&&(a24==1))&&!(a7==1))&&(a28==1)))&&(a14==10))&&!(a25==1)))))){ + a29 = 7; + a20 = 0; + a14 = 8; + a11 = 0; + a0 = 0; + return -1; + } else if(((((((a22==1)&&(((a28==1)&&(((input==2)&&(((a19==1)&&((a29==6)&&!(a25==1)))||(((a19==5)&&((a25==1)&&(a29==9)))||((a19==1)&&((a29==5)&&!(a25==1))))))&&(a24==1)))&&(a14==8)))&&!(a20==1))&&!(a7==1))&&!(a0==1))&&!(a11==1))){ + a11 = 1; + a29 = 8; + a7 = 1; + a25 = 1; + a0 = 1; + a19 = 3; + return 24; + } else if(((a0==1)&&(!(a20==1)&&((a29==8)&&(((((((((input==6)&&(a22==1))&&(a11==1))&&!(a24==1))&&(a14==9))&&(a7==1))&&(a25==1))&&(a19==5))&&(a28==1)))))){ + a0 = 0; + a25 = 0; + a29 = 6; + a14 = 8; + return 21; + } else if((((a0==1)&&(!(a20==1)&&(((a14==8)&&((a19==3)&&((((((a25==1)&&(input==1))&&(a24==1))&&!(a7==1))&&(a28==1))&&(a22==1))))&&(a29==8))))&&!(a11==1))){ + a29 = 6; + a7 = 1; + a14 = 9; + a11 = 1; + a19 = 4; + return 21; + } else if(((a28==1)&&((a22==1)&&(!(a20==1)&&(!(a0==1)&&((a29==6)&&((((((a25==1)&&((a24==1)&&(input==4)))&&!(a11==1))&&(a19==1))&&!(a7==1))&&(a14==8)))))))){ + a24 = 0; + a0 = 1; + a19 = 2; + return 23; + } else if((((a28==1)&&((a14==8)&&(!(a20==1)&&((((a0==1)&&((((input==2)&&(((a19==2)&&(a29==5))||(((a29==8)&&(a19==1))||((a29==9)&&(a19==1)))))&&!(a7==1))&&(a11==1)))&&!(a24==1))&&!(a25==1)))))&&(a22==1))){ + a24 = 1; + a19 = 1; + a25 = 1; + a7 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if(((((a28==1)&&((((((a29==6)&&((((input==4)&&!(a24==1))&&(a25==1))&&!(a0==1)))&&!(a20==1))&&(a22==1))&&(a19==1))&&(a14==9)))&&(a11==1))&&!(a7==1))){ + a20 = 1; + a0 = 1; + a7 = 1; + a14 = 8; + a29 = 5; + a24 = 1; + return -1; + } else if(((a19==5)&&((a22==1)&&(((((a7==1)&&((a20==1)&&(((a25==1)&&(((input==6)&&(((a29==5)||(a29==6))||(a29==7)))&&(a24==1)))&&(a28==1))))&&(a14==10))&&(a11==1))&&(a0==1))))){ + a19 = 2; + a29 = 6; + a14 = 9; + a20 = 0; + a7 = 0; + return 24; + } else if((((a19==2)&&((a22==1)&&(!(a7==1)&&((a11==1)&&(((a28==1)&&(((!(a24==1)&&((input==5)&&((a29==7)||(a29==8))))&&!(a0==1))&&(a25==1)))&&!(a20==1))))))&&(a14==9))){ + a19 = 3; + a25 = 0; + a0 = 1; + a29 = 6; + return -1; + } else if(((a14==8)&&((!(a7==1)&&((((a0==1)&&(((a20==1)&&(!(a25==1)&&(!(a11==1)&&((input==3)&&(a22==1)))))&&(a29==5)))&&(a19==5))&&(a28==1)))&&!(a24==1)))){ + a7 = 1; + a19 = 2; + a29 = 7; + a0 = 0; + a24 = 1; + a11 = 1; + return 24; + } else if((((a14==9)&&((!(a11==1)&&(((((a19==5)&&((a29==9)&&(!(a25==1)&&((!(a20==1)&&!(a7==1))&&(a24==1)))))||((a19==1)&&(((a25==1)&&(((a7==1)&&(a20==1))&&!(a24==1)))&&(a29==5))))&&(input==3))&&(a28==1)))&&!(a0==1)))&&(a22==1))){ + a24 = 1; + a7 = 1; + a19 = 1; + a29 = 5; + a11 = 1; + a0 = 1; + a14 = 8; + a25 = 1; + a20 = 1; + return -1; + } else if(((!(a20==1)&&((!(a0==1)&&(!(a11==1)&&(((((a24==1)&&((input==1)&&(((a19==3)&&(a29==5))||(((a29==8)&&(a19==2))||((a29==9)&&(a19==2))))))&&(a25==1))&&(a22==1))&&(a28==1))))&&(a7==1)))&&(a14==8))){ + a29 = 9; + a0 = 1; + a19 = 2; + a25 = 0; + a24 = 0; + return 21; + } else if(((a29==8)&&((((a22==1)&&(((a7==1)&&(((a0==1)&&((((a19==5)&&(input==2))&&!(a20==1))&&(a28==1)))&&(a14==10)))&&(a25==1)))&&(a24==1))&&(a11==1)))){ + a14 = 8; + a29 = 5; + a19 = 1; + a20 = 1; + return -1; + } else if(((((a7==1)&&(!(a11==1)&&(((a20==1)&&(!(a0==1)&&(!(a25==1)&&(((((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))&&(input==4))&&!(a24==1)))))&&(a14==8))))&&(a22==1))&&(a28==1))){ + a25 = 1; + a24 = 1; + a0 = 1; + a11 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if((((((a25==1)&&((a28==1)&&(((a22==1)&&(((((((a29==8)&&(a19==2))||((a29==9)&&(a19==2)))||((a29==5)&&(a19==3)))&&(input==6))&&(a11==1))&&!(a20==1)))&&(a14==9))))&&(a24==1))&&!(a0==1))&&!(a7==1))){ + a19 = 1; + a14 = 8; + a0 = 1; + a20 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if(((a11==1)&&((a14==8)&&((!(a0==1)&&((a28==1)&&((a25==1)&&(((a19==1)&&((a22==1)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==1))&&(a24==1))))&&(a20==1)))))&&!(a7==1))))){ + a25 = 0; + a11 = 0; + a29 = 6; + a20 = 0; + a0 = 1; + a24 = 0; + return 21; + } else if((!(a25==1)&&((((a28==1)&&(((((!(a24==1)&&((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))&&(input==2)))&&(a0==1))&&(a22==1))&&(a11==1))&&(a14==9)))&&(a20==1))&&!(a7==1)))){ + a24 = 1; + a25 = 1; + a19 = 1; + a7 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((a28==1)&&((((a0==1)&&(((a19==1)&&(((!(a24==1)&&((a25==1)&&((input==4)&&(((a29==7)||(a29==8))||(a29==9)))))&&!(a7==1))&&(a20==1)))&&!(a11==1)))&&(a22==1))&&(a14==8)))){ + a11 = 1; + a7 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if(((a24==1)&&(!(a7==1)&&(((a28==1)&&((!(a25==1)&&(((((a11==1)&&(((a29==5)||(a29==6))&&(input==1)))&&(a19==4))&&(a0==1))&&(a20==1)))&&(a22==1)))&&(a14==8))))){ + a7 = 1; + a29 = 5; + a19 = 1; + a25 = 1; + return -1; + } else if(((a20==1)&&(((a19==2)&&(!(a24==1)&&((a22==1)&&((((((((a29==8)||(a29==9))&&(input==4))&&!(a7==1))&&(a25==1))&&(a0==1))&&!(a11==1))&&(a28==1)))))&&(a14==9)))){ + a0 = 0; + a11 = 1; + a24 = 1; + a29 = 6; + a14 = 8; + a7 = 1; + a19 = 5; + return -1; + } else if(((a14==9)&&(((a28==1)&&(!(a25==1)&&(((a22==1)&&(!(a20==1)&&(((((input==6)&&!(a24==1))&&!(a0==1))&&!(a11==1))&&(a19==1))))&&(a7==1))))&&(a29==5)))){ + a20 = 1; + a14 = 8; + a25 = 1; + a29 = 6; + return 24; + } else if(((((((!(a0==1)&&((a28==1)&&((a7==1)&&((a19==4)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==3))&&!(a24==1))))))&&(a25==1))&&(a22==1))&&(a11==1))&&(a14==8))&&!(a20==1))){ + a19 = 3; + a29 = 5; + return -1; + } else if(((((a24==1)&&(!(a20==1)&&((a14==8)&&(((a29==5)&&((a0==1)&&(((a25==1)&&((input==1)&&(a11==1)))&&(a28==1))))&&(a19==2)))))&&(a22==1))&&(a7==1))){ + a19 = 4; + a7 = 0; + a20 = 1; + a29 = 8; + a24 = 0; + return 24; + } else if(((((((a14==8)&&((a20==1)&&(((((input==4)&&((((a29==8)&&(a19==2))||((a29==9)&&(a19==2)))||((a19==3)&&(a29==5))))&&!(a24==1))&&(a0==1))&&(a7==1))))&&(a25==1))&&!(a11==1))&&(a22==1))&&(a28==1))){ + a19 = 1; + a11 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if(((((((!(a24==1)&&(((a22==1)&&((!(a20==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==6)))&&(a19==1)))&&!(a7==1)))&&(a28==1))&&(a25==1))&&!(a11==1))&&(a0==1))&&(a14==8))){ + a20 = 1; + a29 = 6; + a11 = 1; + a19 = 4; + a24 = 1; + return 23; + } else if(((a19==3)&&(!(a24==1)&&((a28==1)&&((!(a0==1)&&(((a20==1)&&((a11==1)&&((!(a25==1)&&((input==4)&&(((a29==7)||(a29==8))||(a29==9))))&&!(a7==1))))&&(a22==1)))&&(a14==9)))))){ + a7 = 1; + a24 = 1; + a29 = 9; + a19 = 4; + a14 = 8; + return 24; + } else if(((a22==1)&&((((a14==8)&&((a0==1)&&(!(a20==1)&&(!(a11==1)&&((a28==1)&&(((input==5)&&(((a29==6)&&(a19==4))||(((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))))&&(a25==1)))))))&&!(a7==1))&&!(a24==1)))){ + a24 = 1; + a7 = 1; + a29 = 5; + a19 = 1; + a11 = 1; + a20 = 1; + return -1; + } else if(((a25==1)&&(((a29==8)&&((((a22==1)&&(((!(a24==1)&&(((input==5)&&(a14==8))&&!(a7==1)))&&!(a20==1))&&(a28==1)))&&(a19==3))&&(a0==1)))&&(a11==1)))){ + a11 = 0; + a29 = 5; + a19 = 5; + a7 = 1; + a25 = 0; + return 24; + } else if(((a11==1)&&((a22==1)&&((a0==1)&&(((((!(a20==1)&&((((a19==5)&&((a25==1)&&(a29==9)))||((a19==1)&&((a29==5)&&!(a25==1))))&&(input==5)))&&(a14==8))&&!(a7==1))&&!(a24==1))&&(a28==1)))))){ + a19 = 1; + a25 = 0; + a24 = 1; + a29 = 7; + a0 = 0; + a20 = 1; + return 24; + } else if(((!(a24==1)&&(((a11==1)&&((((a25==1)&&(!(a7==1)&&((a28==1)&&((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))&&(input==3)))))&&(a14==9))&&(a0==1)))&&!(a20==1)))&&(a22==1))){ + a29 = 8; + a7 = 1; + a19 = 1; + a24 = 1; + return 23; + } else if(((a22==1)&&((((a0==1)&&(((a28==1)&&(!(a24==1)&&(((((input==4)&&((a29==5)||(a29==6)))&&(a7==1))&&!(a11==1))&&(a20==1))))&&(a25==1)))&&(a19==2))&&(a14==8)))){ + a11 = 1; + a24 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((!(a24==1)&&(!(a11==1)&&((a22==1)&&(!(a20==1)&&((!(a0==1)&&(((a14==9)&&((a28==1)&&((((a29==5)&&(a19==3))||(((a19==2)&&(a29==8))||((a19==2)&&(a29==9))))&&(input==2))))&&(a7==1)))&&(a25==1))))))){ + a11 = 1; + a24 = 1; + a25 = 0; + a29 = 9; + a19 = 1; + a14 = 8; + return 21; + } else if((((((a24==1)&&(!(a7==1)&&((a25==1)&&((a22==1)&&((a20==1)&&(!(a0==1)&&((input==5)&&((((a29==8)&&(a19==3))||((a19==3)&&(a29==9)))||((a29==5)&&(a19==4))))))))))&&!(a11==1))&&(a28==1))&&(a14==9))){ + a25 = 0; + a19 = 2; + a29 = 5; + a24 = 0; + a20 = 0; + a14 = 8; + return 23; + } else if(((((((a22==1)&&(((a11==1)&&(((input==6)&&((((a25==1)&&(a29==9))&&(a19==5))||((!(a25==1)&&(a29==5))&&(a19==1))))&&!(a0==1)))&&(a28==1)))&&(a20==1))&&(a14==8))&&(a24==1))&&(a7==1))){ + a19 = 3; + a25 = 0; + a20 = 0; + a29 = 6; + a7 = 0; + return 24; + } else if((((a19==4)&&((((a25==1)&&((a14==9)&&(((a22==1)&&((a20==1)&&(!(a0==1)&&((input==1)&&((a29==9)||((a29==7)||(a29==8)))))))&&(a28==1))))&&!(a7==1))&&(a24==1)))&&(a11==1))){ + a0 = 1; + a29 = 5; + a24 = 0; + return 24; + } else if(((((a19==1)&&((!(a7==1)&&(!(a25==1)&&(!(a24==1)&&((a11==1)&&((a28==1)&&((a14==9)&&((((a29==6)||(a29==7))||(a29==8))&&(input==4))))))))&&(a20==1)))&&(a22==1))&&(a0==1))){ + a29 = 9; + a14 = 8; + a24 = 1; + a19 = 2; + a0 = 0; + a11 = 0; + a20 = 0; + return -1; + } else if(((!(a11==1)&&((((a0==1)&&((a14==9)&&((a22==1)&&((a7==1)&&(((a28==1)&&((input==6)&&((a29==7)||(a29==8))))&&!(a24==1))))))&&(a25==1))&&(a19==3)))&&!(a20==1))){ + a20 = 1; + a19 = 1; + a11 = 1; + a29 = 7; + return 21; + } else if((((((((a22==1)&&(!(a20==1)&&(((a28==1)&&((input==3)&&(((a19==4)&&(a29==6))||(((a29==9)&&(a19==3))||((a29==5)&&(a19==4))))))&&(a25==1))))&&!(a7==1))&&(a24==1))&&!(a11==1))&&(a14==9))&&!(a0==1))){ + a11 = 1; + a14 = 8; + a7 = 1; + a29 = 5; + a19 = 1; + a20 = 1; + a0 = 1; + return -1; + } else if(((a24==1)&&((a19==4)&&((a28==1)&&(((a14==9)&&(!(a0==1)&&(!(a11==1)&&(!(a20==1)&&(((a22==1)&&(((a29==7)||(a29==8))&&(input==4)))&&(a7==1))))))&&!(a25==1)))))){ + a25 = 1; + a24 = 0; + a14 = 8; + a19 = 3; + a7 = 0; + a29 = 5; + a0 = 1; + return 21; + } else if(((((((a28==1)&&(((!(a7==1)&&(!(a24==1)&&((input==5)&&((((a29==8)&&(a19==1))||((a19==1)&&(a29==9)))||((a29==5)&&(a19==2))))))&&(a14==8))&&!(a20==1)))&&!(a25==1))&&(a11==1))&&(a0==1))&&(a22==1))){ + a20 = 1; + a24 = 1; + a25 = 1; + a7 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((((a22==1)&&(((((a20==1)&&(!(a7==1)&&((((a28==1)&&((input==4)&&(((a29==5)||(a29==6))||(a29==7))))&&(a14==9))&&!(a25==1))))&&(a24==1))&&(a19==2))&&(a11==1)))&&!(a0==1))){ + a14 = 8; + a19 = 3; + a29 = 6; + return 24; + } else if(((a24==1)&&((a19==5)&&(((a25==1)&&(((a28==1)&&(((a14==8)&&((a7==1)&&(((input==3)&&((a29==9)||((a29==7)||(a29==8))))&&(a0==1))))&&!(a20==1)))&&(a22==1)))&&!(a11==1))))){ + a20 = 1; + a0 = 0; + a29 = 8; + a19 = 2; + a7 = 0; + a25 = 0; + a11 = 1; + return 21; + } else if(((a7==1)&&(!(a24==1)&&(((a14==8)&&((((a11==1)&&(((a25==1)&&(((((a29==8)&&(a19==3))||((a29==9)&&(a19==3)))||((a29==5)&&(a19==4)))&&(input==6)))&&(a22==1)))&&(a20==1))&&(a28==1)))&&(a0==1))))){ + a20 = 0; + a19 = 2; + a7 = 0; + a11 = 0; + a29 = 7; + return 21; + } else if((!(a24==1)&&((a7==1)&&((((((((a19==5)&&(!(a0==1)&&((input==6)&&(a11==1))))&&(a29==5))&&(a25==1))&&(a20==1))&&(a22==1))&&(a14==9))&&(a28==1))))){ + a7 = 0; + a20 = 0; + a29 = 8; + a14 = 8; + a19 = 4; + a24 = 1; + return 21; + } else if(((a28==1)&&(!(a0==1)&&((!(a24==1)&&((a19==5)&&((((a7==1)&&(((a25==1)&&(((a29==8)||(a29==9))&&(input==5)))&&!(a11==1)))&&!(a20==1))&&(a14==8))))&&(a22==1))))){ + a11 = 1; + a29 = 5; + a24 = 1; + a19 = 1; + a7 = 0; + return 21; + } else if(((((!(a7==1)&&(((!(a11==1)&&(((((input==4)&&(a28==1))&&(a20==1))&&(a0==1))&&!(a24==1)))&&(a19==2))&&(a29==8)))&&(a22==1))&&!(a25==1))&&(a14==8))){ + a29 = 5; + a19 = 4; + a24 = 1; + a11 = 1; + a0 = 0; + a7 = 1; + return 23; + } else if(((a24==1)&&(!(a7==1)&&(((a19==1)&&(((a20==1)&&(((((a28==1)&&((input==6)&&((a29==8)||((a29==6)||(a29==7)))))&&!(a11==1))&&(a22==1))&&!(a25==1)))&&(a14==9)))&&!(a0==1))))){ + a20 = 0; + a14 = 8; + a11 = 1; + a29 = 5; + a19 = 4; + return 24; + } else if(((a20==1)&&((a19==4)&&((a25==1)&&(!(a24==1)&&(((a22==1)&&((((a14==9)&&((((a29==7)||(a29==8))&&(input==1))&&(a11==1)))&&(a28==1))&&!(a0==1)))&&!(a7==1))))))){ + a0 = 1; + a24 = 1; + a29 = 5; + a14 = 8; + a7 = 1; + a19 = 1; + return -1; + } else if(((a28==1)&&(!(a7==1)&&((a14==8)&&((a29==7)&&((((((a0==1)&&(!(a11==1)&&((input==6)&&(a19==2))))&&!(a24==1))&&(a25==1))&&(a22==1))&&!(a20==1))))))){ + a25 = 0; + a7 = 1; + a29 = 9; + return -1; + } else if(((a7==1)&&((a0==1)&&((((((a14==10)&&((a28==1)&&((a24==1)&&(((input==1)&&((a29==8)||(a29==9)))&&!(a20==1)))))&&(a11==1))&&(a25==1))&&(a19==3))&&(a22==1))))){ + a20 = 1; + a14 = 8; + a29 = 7; + a0 = 0; + return 21; + } else if((!(a25==1)&&(((a22==1)&&(((!(a11==1)&&((!(a0==1)&&((((input==3)&&(a19==5))&&(a28==1))&&(a20==1)))&&(a29==8)))&&(a24==1))&&(a7==1)))&&(a14==8)))){ + a11 = 1; + a19 = 1; + a0 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if(((((!(a25==1)&&(!(a7==1)&&((!(a11==1)&&(((a29==5)&&(((input==6)&&(a28==1))&&!(a0==1)))&&(a24==1)))&&!(a20==1))))&&(a14==9))&&(a22==1))&&(a19==4))){ + a0 = 1; + a29 = 7; + a19 = 1; + a7 = 1; + return -1; + } else if((!(a0==1)&&(!(a11==1)&&((((((a25==1)&&(((((input==6)&&((a29==9)||((a29==7)||(a29==8))))&&!(a20==1))&&!(a24==1))&&(a7==1)))&&(a22==1))&&(a14==8))&&(a28==1))&&(a19==2))))){ + a29 = 5; + a0 = 1; + a11 = 1; + a24 = 1; + a20 = 1; + a19 = 1; + return -1; + } else if(((((!(a20==1)&&(((a28==1)&&((a22==1)&&(!(a25==1)&&(((a11==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==3)))&&(a14==8)))))&&!(a24==1)))&&(a19==1))&&!(a0==1))&&(a7==1))){ + a29 = 9; + a0 = 1; + a7 = 0; + a14 = 9; + a19 = 4; + a24 = 1; + return 23; + } else if(((a19==4)&&(((((!(a20==1)&&(!(a0==1)&&((a14==9)&&((a11==1)&&((a28==1)&&(((a29==6)||(a29==7))&&(input==1)))))))&&(a22==1))&&(a25==1))&&(a24==1))&&(a7==1)))){ + a19 = 1; + a0 = 1; + a29 = 5; + a14 = 8; + a20 = 1; + return -1; + } else if((((a0==1)&&((a7==1)&&((((((a24==1)&&((((a28==1)&&(input==1))&&(a19==3))&&(a20==1)))&&(a14==10))&&(a22==1))&&(a29==7))&&!(a25==1))))&&(a11==1))){ + a25 = 1; + a24 = 0; + a19 = 4; + a14 = 8; + a11 = 0; + a0 = 0; + return -1; + } else if(((a14==9)&&(!(a25==1)&&(!(a24==1)&&((((!(a20==1)&&(((a22==1)&&(!(a0==1)&&((input==2)&&((a29==7)||(a29==8)))))&&!(a11==1)))&&(a7==1))&&(a28==1))&&(a19==3)))))){ + a24 = 1; + a11 = 1; + a14 = 8; + a29 = 6; + a7 = 0; + return -1; + } else if(((a11==1)&&(((a20==1)&&(((((a22==1)&&((a25==1)&&((((input==3)&&((a29==8)||((a29==6)||(a29==7))))&&(a7==1))&&!(a24==1))))&&(a28==1))&&(a14==9))&&!(a0==1)))&&(a19==5)))){ + a29 = 5; + a7 = 0; + a14 = 8; + a20 = 0; + a24 = 1; + return 21; + } else if(((((a28==1)&&((a24==1)&&((!(a20==1)&&((a14==9)&&(!(a25==1)&&((((input==3)&&!(a7==1))&&!(a0==1))&&(a19==4)))))&&(a11==1))))&&(a22==1))&&(a29==8))){ + a11 = 0; + a29 = 6; + a19 = 2; + a24 = 0; + a14 = 8; + a7 = 1; + return -1; + } else if(((a22==1)&&((((((a11==1)&&((a14==8)&&((!(a7==1)&&(((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))||((a19==4)&&(a29==6)))&&(input==2)))&&(a28==1))))&&!(a0==1))&&!(a25==1))&&!(a20==1))&&!(a24==1)))){ + a19 = 2; + a11 = 0; + a29 = 9; + a0 = 1; + a7 = 1; + return 23; + } else if(((a22==1)&&((!(a7==1)&&(((a25==1)&&((a14==8)&&((a0==1)&&((a28==1)&&((a20==1)&&(((input==1)&&(((a29==7)||(a29==8))||(a29==9)))&&(a19==2)))))))&&!(a11==1)))&&!(a24==1)))){ + a29 = 7; + a7 = 1; + a14 = 9; + a20 = 0; + a11 = 1; + a19 = 5; + return 21; + } else if(((a28==1)&&((a11==1)&&(!(a0==1)&&((a14==8)&&((((a29==6)&&(!(a20==1)&&((a19==3)&&(((input==1)&&(a24==1))&&!(a7==1)))))&&!(a25==1))&&(a22==1))))))){ + a19 = 2; + a25 = 1; + a7 = 1; + a20 = 1; + return 23; + } else if(((((a7==1)&&(!(a11==1)&&(((a28==1)&&(((!(a20==1)&&((a24==1)&&((input==2)&&(a14==8))))&&(a0==1))&&(a19==4)))&&(a22==1))))&&(a25==1))&&(a29==9))){ + a29 = 7; + a19 = 5; + a20 = 1; + a0 = 0; + a7 = 0; + a11 = 1; + return 24; + } else if(((a7==1)&&((a29==9)&&((((a14==10)&&((a20==1)&&(((a22==1)&&((a28==1)&&((a19==1)&&((input==5)&&(a11==1)))))&&(a0==1))))&&(a24==1))&&!(a25==1))))){ + a14 = 8; + a0 = 0; + a19 = 3; + a25 = 1; + a11 = 0; + a29 = 8; + return -1; + } else if((((a7==1)&&(((((a14==9)&&((a22==1)&&((((a20==1)&&(!(a25==1)&&(input==6)))&&!(a0==1))&&!(a11==1))))&&(a28==1))&&(a19==4))&&!(a24==1)))&&(a29==6))){ + a29 = 7; + a20 = 0; + a7 = 0; + a24 = 1; + a19 = 3; + a11 = 1; + return -1; + } else if(((((!(a20==1)&&((!(a0==1)&&(((a22==1)&&((((input==4)&&!(a24==1))&&!(a7==1))&&(a29==7)))&&!(a11==1)))&&(a19==4)))&&(a14==9))&&!(a25==1))&&(a28==1))){ + a0 = 1; + a7 = 1; + a20 = 1; + a25 = 1; + a29 = 5; + a24 = 1; + a11 = 1; + a19 = 1; + a14 = 8; + return -1; + } else if((!(a24==1)&&(!(a0==1)&&(!(a25==1)&&(!(a20==1)&&((a22==1)&&((a11==1)&&((!(a7==1)&&((a28==1)&&((a14==9)&&((input==6)&&((a29==6)||(a29==7))))))&&(a19==2))))))))){ + a29 = 7; + a7 = 1; + a14 = 8; + a19 = 4; + a20 = 1; + return 21; + } else if(((!(a7==1)&&(!(a0==1)&&(((a25==1)&&((a19==4)&&((a20==1)&&((!(a24==1)&&(((input==1)&&((a29==6)||(a29==7)))&&!(a11==1)))&&(a28==1)))))&&(a22==1))))&&(a14==9))){ + a14 = 8; + a19 = 5; + a20 = 0; + a0 = 1; + a29 = 7; + return 23; + } else if(((a0==1)&&((a24==1)&&((a22==1)&&(((!(a11==1)&&(!(a25==1)&&((a7==1)&&(((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))&&(input==5))&&(a28==1)))))&&!(a20==1))&&(a14==9)))))){ + a14 = 8; + a29 = 5; + a24 = 0; + a25 = 1; + a19 = 4; + a0 = 0; + return -1; + } else if(((a0==1)&&(!(a11==1)&&((a25==1)&&((a20==1)&&(!(a7==1)&&((a14==9)&&((((a19==3)&&(((input==6)&&(a28==1))&&(a22==1)))&&(a29==7))&&(a24==1))))))))){ + a29 = 5; + a7 = 1; + a14 = 8; + a19 = 1; + a11 = 1; + return -1; + } else if(((a29==8)&&((a0==1)&&(((!(a20==1)&&((((a24==1)&&(((a28==1)&&((a22==1)&&(input==1)))&&(a11==1)))&&(a25==1))&&(a7==1)))&&(a14==8))&&(a19==5))))){ + a25 = 0; + a29 = 7; + a24 = 0; + return 24; + } else if(((((((((((((input==4)&&((a29==8)||((a29==6)||(a29==7))))&&(a14==8))&&(a28==1))&&!(a0==1))&&!(a20==1))&&(a22==1))&&!(a11==1))&&!(a24==1))&&(a19==1))&&!(a7==1))&&!(a25==1))){ + a25 = 1; + a29 = 5; + a20 = 1; + a7 = 1; + a0 = 1; + a24 = 1; + a11 = 1; + return -1; + } else if(((a7==1)&&((a22==1)&&((a14==8)&&((a0==1)&&(!(a25==1)&&(!(a11==1)&&((a28==1)&&((((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))&&(input==2))&&!(a24==1))&&!(a20==1)))))))))){ + a19 = 3; + a29 = 6; + return 21; + } else if(((a11==1)&&(((((((a24==1)&&(!(a0==1)&&((a7==1)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==3))&&!(a20==1)))))&&(a28==1))&&(a22==1))&&!(a25==1))&&(a14==9))&&(a19==2)))){ + a24 = 0; + a25 = 1; + a14 = 8; + a19 = 3; + a29 = 5; + return -1; + } else if(((a0==1)&&(((a28==1)&&(((a14==9)&&(((((!(a20==1)&&(!(a24==1)&&(input==4)))&&(a7==1))&&(a22==1))&&(a19==5))&&(a11==1)))&&(a29==9)))&&(a25==1)))){ + a19 = 1; + a20 = 1; + a14 = 8; + a24 = 1; + a29 = 5; + return -1; + } else if(((((((((a28==1)&&((!(a7==1)&&(((input==6)&&!(a20==1))&&!(a24==1)))&&!(a25==1)))&&(a19==2))&&(a11==1))&&(a14==8))&&(a22==1))&&(a0==1))&&(a29==6))){ + a20 = 1; + a24 = 1; + a25 = 1; + a29 = 5; + a19 = 1; + a7 = 1; + return -1; + } else if((((((((a25==1)&&((a22==1)&&(!(a11==1)&&(((a19==3)&&((input==2)&&((a29==5)||(a29==6))))&&!(a24==1)))))&&(a28==1))&&(a7==1))&&!(a0==1))&&(a20==1))&&(a14==8))){ + a20 = 0; + a24 = 1; + a11 = 1; + a25 = 0; + a0 = 1; + a14 = 9; + a29 = 7; + return 21; + } else if(((((!(a11==1)&&((a14==8)&&((a25==1)&&(((!(a7==1)&&((a22==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==2))))&&(a19==2))&&(a28==1)))))&&(a24==1))&&!(a20==1))&&(a0==1))){ + a7 = 1; + a29 = 6; + a14 = 9; + a19 = 1; + a11 = 1; + return 24; + } else if((((!(a25==1)&&(((((a14==8)&&((a22==1)&&(!(a11==1)&&(((((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))||((a19==5)&&(a29==5)))&&(input==4)))))&&!(a24==1))&&!(a0==1))&&!(a7==1)))&&(a28==1))&&!(a20==1))){ + a25 = 1; + a14 = 9; + a19 = 1; + a7 = 1; + a20 = 1; + a0 = 1; + a24 = 1; + a11 = 1; + a29 = 8; + return 21; + } else if(((a28==1)&&(((a14==9)&&(((a29==9)&&((a25==1)&&((a7==1)&&(!(a0==1)&&((!(a11==1)&&((a22==1)&&(input==5)))&&!(a24==1))))))&&(a19==5)))&&!(a20==1)))){ + a29 = 6; + a11 = 1; + a0 = 1; + return -1; + } else if((((a14==9)&&(!(a7==1)&&((a22==1)&&((((((a20==1)&&((((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))&&(input==1)))&&(a0==1))&&(a11==1))&&(a28==1))&&!(a24==1)))))&&!(a25==1))){ + a29 = 8; + a7 = 1; + a11 = 0; + a19 = 3; + return 21; + } else if(((a22==1)&&((!(a7==1)&&((a29==9)&&((a19==1)&&((!(a11==1)&&((a28==1)&&((((input==4)&&(a24==1))&&!(a25==1))&&(a0==1))))&&(a14==8)))))&&(a20==1)))){ + a24 = 0; + a25 = 1; + a7 = 1; + a19 = 4; + a0 = 0; + a20 = 0; + a29 = 8; + return 24; + } else if((((((((a22==1)&&((a25==1)&&((a14==8)&&(((((a29==6)&&(a19==2))||(((a19==1)&&(a29==9))||((a19==2)&&(a29==5))))&&(input==1))&&(a28==1)))))&&!(a0==1))&&(a7==1))&&!(a11==1))&&(a20==1))&&!(a24==1))){ + a11 = 1; + a19 = 4; + a29 = 5; + return 24; + } else if(((a29==6)&&(((a22==1)&&((a19==5)&&((!(a0==1)&&(((a28==1)&&((a25==1)&&(((a14==8)&&(input==2))&&!(a20==1))))&&(a24==1)))&&(a11==1))))&&!(a7==1)))){ + a24 = 0; + a11 = 0; + a25 = 0; + a19 = 3; + a7 = 1; + a0 = 1; + a29 = 9; + return -1; + } else if(((a28==1)&&(((a29==6)&&(!(a24==1)&&((a11==1)&&((((a14==9)&&(((a25==1)&&((input==2)&&!(a7==1)))&&(a0==1)))&&(a19==1))&&(a22==1)))))&&!(a20==1)))){ + a14 = 8; + a19 = 2; + a29 = 7; + a11 = 0; + return -1; + } else if(((a24==1)&&((a0==1)&&((a22==1)&&(!(a20==1)&&(((a19==2)&&((!(a11==1)&&((a28==1)&&((a14==8)&&((a25==1)&&(input==4)))))&&(a7==1)))&&(a29==9))))))){ + a11 = 1; + a20 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if((!(a20==1)&&((a7==1)&&((a19==3)&&((a14==9)&&(!(a0==1)&&((((((a22==1)&&(((a29==8)||(a29==9))&&(input==1)))&&!(a24==1))&&(a11==1))&&(a28==1))&&!(a25==1)))))))){ + a19 = 1; + a0 = 1; + a25 = 1; + a20 = 1; + a7 = 0; + a29 = 5; + return 23; + } else if(((!(a24==1)&&((a14==8)&&((a19==1)&&((a22==1)&&(!(a20==1)&&((a25==1)&&((((((a29==8)||(a29==9))&&(input==4))&&(a28==1))&&(a11==1))&&!(a0==1))))))))&&(a7==1))){ + a19 = 5; + a29 = 6; + a24 = 1; + a25 = 0; + return 23; + } else if((((a11==1)&&(!(a24==1)&&((a0==1)&&((a25==1)&&(!(a20==1)&&(((a14==9)&&((a28==1)&&((input==5)&&((((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))||((a19==5)&&(a29==6))))))&&(a7==1)))))))&&(a22==1))){ + a14 = 8; + a24 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a20==1)&&((a22==1)&&((a14==10)&&((a7==1)&&((((((((input==5)&&((a29==5)||(a29==6)))&&!(a25==1))&&(a0==1))&&(a24==1))&&(a19==5))&&(a28==1))&&(a11==1))))))){ + a14 = 9; + a0 = 0; + a29 = 7; + a19 = 2; + a20 = 0; + a25 = 1; + return -1; + } else if(((!(a7==1)&&((a24==1)&&((a14==8)&&(!(a20==1)&&((((((((a29==5)||(a29==6))&&(input==5))&&!(a11==1))&&!(a0==1))&&(a25==1))&&(a28==1))&&(a22==1))))))&&(a19==4))){ + a7 = 1; + a25 = 0; + a11 = 1; + a20 = 1; + a29 = 5; + return 23; + } else if((((a20==1)&&((((a19==3)&&((a11==1)&&((a25==1)&&((a28==1)&&((a0==1)&&((a24==1)&&((a7==1)&&(input==1))))))))&&(a14==10))&&(a22==1)))&&(a29==9))){ + a29 = 5; + a14 = 8; + a19 = 1; + return -1; + } else if((((!(a24==1)&&((a28==1)&&(((!(a25==1)&&((((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))&&(input==1))&&!(a20==1))&&(a22==1)))&&(a0==1))&&(a7==1))))&&(a14==8))&&(a11==1))){ + a29 = 9; + a19 = 1; + a24 = 1; + a20 = 1; + a0 = 0; + a25 = 1; + return 23; + } else if((((((a29==8)&&((a14==8)&&((!(a7==1)&&(((((a19==5)&&(input==5))&&(a22==1))&&(a28==1))&&(a11==1)))&&(a24==1))))&&(a0==1))&&(a25==1))&&!(a20==1))){ + a19 = 1; + a29 = 5; + a25 = 0; + a11 = 0; + return 23; + } else if(((a22==1)&&((a24==1)&&((a20==1)&&((a25==1)&&((a7==1)&&((((((a11==1)&&((a28==1)&&(input==4)))&&(a14==9))&&(a29==9))&&!(a0==1))&&(a19==5)))))))){ + a29 = 6; + a7 = 0; + a20 = 0; + a19 = 4; + a24 = 0; + a11 = 0; + a14 = 8; + return 21; + } else if((((a0==1)&&((a7==1)&&(((!(a24==1)&&(((((!(a11==1)&&(input==3))&&(a19==2))&&(a22==1))&&!(a25==1))&&(a29==7)))&&!(a20==1))&&(a14==9))))&&(a28==1))){ + a19 = 4; + a29 = 5; + a14 = 8; + return 23; + } else if(((!(a7==1)&&((a19==5)&&((!(a0==1)&&((!(a24==1)&&(((((input==3)&&(a25==1))&&(a28==1))&&(a14==9))&&!(a20==1)))&&!(a11==1)))&&(a22==1))))&&(a29==8))){ + a7 = 1; + a11 = 1; + a19 = 1; + a0 = 1; + a24 = 1; + a14 = 8; + a20 = 1; + a29 = 5; + return -1; + } else if(((((a14==9)&&((a28==1)&&(!(a0==1)&&(!(a11==1)&&(((!(a24==1)&&((a19==2)&&((input==5)&&(a25==1))))&&(a29==7))&&!(a20==1))))))&&!(a7==1))&&(a22==1))){ + a14 = 8; + a29 = 9; + a0 = 1; + a19 = 3; + return 24; + } else if((((!(a11==1)&&((a22==1)&&(((a20==1)&&((((a14==9)&&(((a7==1)&&(input==3))&&(a24==1)))&&(a29==7))&&(a19==1)))&&(a28==1))))&&(a25==1))&&!(a0==1))){ + a20 = 0; + a25 = 0; + a7 = 0; + a29 = 8; + a11 = 1; + a14 = 8; + a19 = 5; + return 23; + } else if(((a7==1)&&(((a25==1)&&(!(a11==1)&&((a14==8)&&((a22==1)&&((!(a0==1)&&(!(a20==1)&&((((a29==6)&&(a19==2))||(((a29==9)&&(a19==1))||((a19==2)&&(a29==5))))&&(input==2))))&&!(a24==1))))))&&(a28==1)))){ + a29 = 8; + a7 = 0; + a20 = 1; + a19 = 3; + return 23; + } else if((!(a7==1)&&((a14==9)&&((a11==1)&&(((!(a20==1)&&((a24==1)&&((((a0==1)&&((input==6)&&((a29==7)||(a29==8))))&&(a22==1))&&!(a25==1))))&&(a19==2))&&(a28==1)))))){ + a20 = 1; + a0 = 0; + a29 = 5; + a19 = 1; + a25 = 1; + a24 = 0; + a14 = 8; + return -1; + } else if(((((((a19==3)&&((((!(a0==1)&&(((input==5)&&((a29==9)||((a29==7)||(a29==8))))&&(a28==1)))&&(a14==9))&&!(a24==1))&&!(a11==1)))&&!(a25==1))&&(a20==1))&&(a7==1))&&(a22==1))){ + a24 = 1; + a14 = 8; + a19 = 4; + a29 = 8; + a11 = 1; + a7 = 0; + a20 = 0; + return 24; + } else if(((a0==1)&&(((((a11==1)&&(((a7==1)&&((a24==1)&&((a22==1)&&(((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))||((a29==6)&&(a19==4)))&&(input==5)))))&&(a14==9)))&&(a28==1))&&(a20==1))&&(a25==1)))){ + a14 = 8; + a25 = 0; + a24 = 0; + a7 = 0; + a29 = 6; + a19 = 3; + a0 = 0; + a11 = 0; + return -1; + } else if((((((a14==9)&&((!(a0==1)&&((((a19==4)&&(!(a11==1)&&((a28==1)&&(input==1))))&&!(a20==1))&&(a25==1)))&&(a29==8)))&&(a22==1))&&!(a7==1))&&(a24==1))){ + a20 = 1; + a29 = 6; + a0 = 1; + a19 = 5; + return -1; + } else if((((a14==8)&&((a24==1)&&(((a11==1)&&(((((a28==1)&&((((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))&&(input==3)))&&!(a7==1))&&(a0==1))&&(a22==1)))&&!(a25==1))))&&!(a20==1))){ + a11 = 0; + a19 = 3; + a20 = 1; + a7 = 1; + a24 = 0; + a25 = 1; + a29 = 5; + return 23; + } else if((((((((((a7==1)&&(((((a29==5)||(a29==6))&&(input==4))&&!(a0==1))&&(a11==1)))&&(a24==1))&&(a20==1))&&(a22==1))&&(a19==2))&&(a14==8))&&(a25==1))&&(a28==1))){ + a19 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if((((a0==1)&&(((a20==1)&&((a22==1)&&(!(a7==1)&&((a11==1)&&((((input==2)&&(((a19==2)&&(a29==9))||((a29==5)&&(a19==3))))&&(a25==1))&&(a28==1))))))&&(a14==9)))&&!(a24==1))){ + a29 = 5; + a7 = 1; + a19 = 1; + a14 = 8; + a24 = 1; + return -1; + } else if(((((a29==8)&&(((((!(a7==1)&&(!(a11==1)&&(!(a20==1)&&((a22==1)&&(input==5)))))&&(a28==1))&&(a14==8))&&(a24==1))&&(a25==1)))&&(a19==5))&&!(a0==1))){ + a0 = 1; + a29 = 9; + a24 = 0; + a19 = 1; + return 24; + } else if((((!(a20==1)&&((a14==9)&&((a25==1)&&(((a29==6)&&(((a0==1)&&(((a22==1)&&(input==6))&&(a24==1)))&&(a28==1)))&&(a7==1)))))&&!(a11==1))&&(a19==2))){ + a19 = 5; + a29 = 7; + a24 = 0; + a14 = 8; + a7 = 0; + return 23; + } else if(((((a0==1)&&((!(a11==1)&&((a7==1)&&((a19==2)&&((a28==1)&&((((input==3)&&(a20==1))&&(a22==1))&&(a24==1))))))&&(a25==1)))&&(a29==6))&&(a14==9))){ + a19 = 1; + a14 = 8; + a11 = 1; + a29 = 5; + return -1; + } else if((((a24==1)&&((a20==1)&&(((!(a25==1)&&((a19==5)&&(((!(a0==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==1)))&&(a22==1))&&(a28==1))))&&(a7==1))&&(a14==9))))&&(a11==1))){ + a7 = 0; + a19 = 2; + a25 = 1; + a14 = 8; + a29 = 7; + a20 = 0; + return 21; + } else if(((a22==1)&&(((a28==1)&&((a20==1)&&((a14==8)&&(!(a0==1)&&((!(a7==1)&&((a11==1)&&((a24==1)&&(((a29==7)||(a29==8))&&(input==5)))))&&(a25==1))))))&&(a19==2)))){ + a25 = 0; + a29 = 8; + a19 = 3; + return 23; + } else if(((!(a11==1)&&((a29==7)&&(((a28==1)&&(((a7==1)&&((a19==2)&&(!(a20==1)&&(((input==1)&&!(a0==1))&&(a25==1)))))&&(a22==1)))&&(a14==8))))&&(a24==1))){ + a11 = 1; + a19 = 1; + a7 = 0; + a29 = 6; + a24 = 0; + a20 = 1; + a25 = 0; + return -1; + } else if((((a25==1)&&((a28==1)&&((!(a0==1)&&((a7==1)&&((a11==1)&&((a24==1)&&((a29==9)&&((a19==5)&&((input==5)&&(a14==9))))))))&&(a22==1))))&&!(a20==1))){ + a19 = 2; + a7 = 0; + a20 = 1; + a24 = 0; + a14 = 8; + a29 = 8; + return 24; + } else if(((a20==1)&&(((a11==1)&&(((a28==1)&&((!(a0==1)&&(!(a24==1)&&((a22==1)&&((a7==1)&&((input==6)&&(((a29==5)||(a29==6))||(a29==7)))))))&&(a19==4)))&&!(a25==1)))&&(a14==8)))){ + a29 = 7; + a14 = 9; + a24 = 1; + a25 = 1; + a19 = 5; + return 24; + } else if((((a24==1)&&(!(a0==1)&&(((a14==8)&&(((!(a20==1)&&(!(a7==1)&&(((input==1)&&(a28==1))&&(a22==1))))&&(a25==1))&&(a19==2)))&&(a29==8))))&&!(a11==1))){ + a0 = 1; + a25 = 0; + a19 = 3; + a24 = 0; + a7 = 1; + return -1; + } else if((((((!(a25==1)&&((a19==3)&&((((((((a29==5)||(a29==6))||(a29==7))&&(input==5))&&!(a20==1))&&(a11==1))&&(a24==1))&&(a22==1))))&&(a28==1))&&(a7==1))&&(a14==8))&&(a0==1))){ + a29 = 8; + a19 = 5; + a24 = 0; + a7 = 0; + return 21; + } else if((((a22==1)&&((a25==1)&&((a24==1)&&(!(a11==1)&&((a0==1)&&(((a29==6)&&((((input==1)&&(a28==1))&&(a14==9))&&(a20==1)))&&!(a7==1)))))))&&(a19==4))){ + a25 = 0; + a11 = 1; + a14 = 8; + a19 = 5; + a29 = 9; + a0 = 0; + return 23; + } else if((!(a7==1)&&(!(a20==1)&&((((a25==1)&&(!(a0==1)&&(((!(a24==1)&&((((a19==2)&&(a29==5))||(((a29==8)&&(a19==1))||((a19==1)&&(a29==9))))&&(input==2)))&&(a22==1))&&(a14==8))))&&!(a11==1))&&(a28==1))))){ + a25 = 0; + a29 = 8; + a24 = 1; + a11 = 1; + a19 = 1; + return -1; + } else if((((!(a7==1)&&(!(a24==1)&&(((a19==4)&&((a11==1)&&((!(a20==1)&&(((a28==1)&&(input==1))&&(a14==8)))&&(a29==7))))&&(a0==1))))&&(a22==1))&&!(a25==1))){ + a24 = 1; + a0 = 0; + a20 = 1; + a29 = 9; + a25 = 1; + return 24; + } else if((((a22==1)&&(((a0==1)&&(((!(a25==1)&&((a28==1)&&((a7==1)&&((a11==1)&&((input==3)&&((a29==8)||((a29==6)||(a29==7))))))))&&(a20==1))&&!(a24==1)))&&(a14==8)))&&(a19==3))){ + a19 = 5; + a29 = 8; + a0 = 0; + a24 = 1; + return 23; + } else if(((((a25==1)&&((((((((input==4)&&(((a29==9)&&(a19==3))||((a29==5)&&(a19==4))))&&(a22==1))&&(a24==1))&&(a14==9))&&(a7==1))&&!(a0==1))&&(a20==1)))&&!(a11==1))&&(a28==1))){ + a19 = 1; + a29 = 6; + a20 = 0; + a25 = 0; + a11 = 1; + a14 = 8; + return 21; + } else if(((a20==1)&&((a28==1)&&(!(a25==1)&&((a11==1)&&(((((!(a24==1)&&((a14==8)&&((input==3)&&((a29==6)||(a29==7)))))&&(a19==2))&&(a7==1))&&(a0==1))&&(a22==1))))))){ + a24 = 1; + a0 = 0; + a29 = 5; + a19 = 1; + return 24; + } else if(((a22==1)&&(((a25==1)&&(((a24==1)&&((a14==8)&&((!(a7==1)&&((a19==4)&&((a11==1)&&((input==3)&&(((a29==6)||(a29==7))||(a29==8))))))&&(a20==1))))&&!(a0==1)))&&(a28==1)))){ + a25 = 0; + a24 = 0; + a11 = 0; + a29 = 8; + a20 = 0; + a7 = 1; + a0 = 1; + return 24; + } else if((((a19==2)&&((a22==1)&&((a28==1)&&((((((a11==1)&&(!(a7==1)&&(((a29==6)||(a29==7))&&(input==4))))&&!(a20==1))&&(a0==1))&&(a24==1))&&(a14==9)))))&&(a25==1))){ + a19 = 1; + a20 = 1; + a7 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if((!(a24==1)&&(!(a7==1)&&(!(a25==1)&&(((!(a11==1)&&((a19==4)&&((a28==1)&&((a22==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==6))&&(a0==1))))))&&(a14==9))&&(a20==1)))))){ + a7 = 1; + a19 = 1; + a11 = 1; + a14 = 8; + a24 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if((!(a20==1)&&(((a0==1)&&(!(a24==1)&&(!(a25==1)&&((a14==8)&&(!(a7==1)&&((a22==1)&&((((input==5)&&((a29==8)||(a29==9)))&&!(a11==1))&&(a19==3))))))))&&(a28==1)))){ + a19 = 5; + a7 = 1; + a29 = 9; + return -1; + } else if((!(a7==1)&&(((a19==4)&&((((a0==1)&&((((a22==1)&&(((a14==8)&&(input==6))&&(a25==1)))&&(a29==6))&&!(a11==1)))&&(a28==1))&&(a24==1)))&&(a20==1)))){ + a7 = 1; + a19 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if((((a28==1)&&((a14==10)&&((a24==1)&&(!(a7==1)&&((a11==1)&&((a22==1)&&((a29==8)&&(((a0==1)&&((a25==1)&&(input==1)))&&!(a20==1)))))))))&&(a19==3))){ + a29 = 5; + a0 = 0; + a14 = 8; + a11 = 0; + return -1; + } else if((!(a0==1)&&((((a19==5)&&((a28==1)&&(((((a20==1)&&(((input==3)&&(((a29==7)||(a29==8))||(a29==9)))&&!(a7==1)))&&!(a25==1))&&(a22==1))&&(a11==1))))&&(a24==1))&&(a14==9)))){ + a24 = 0; + a29 = 9; + a7 = 1; + a14 = 8; + a19 = 3; + a11 = 0; + a20 = 0; + return -1; + } else if(((a22==1)&&((((((a0==1)&&((a29==5)&&(((a28==1)&&(!(a7==1)&&((input==2)&&(a25==1))))&&(a19==2))))&&(a11==1))&&(a24==1))&&(a14==9))&&!(a20==1)))){ + a19 = 1; + a7 = 1; + a14 = 8; + a20 = 1; + return -1; + } else if((((a25==1)&&((a28==1)&&((a19==1)&&(((a0==1)&&(((((a14==8)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==1)))&&(a22==1))&&!(a20==1))&&(a7==1)))&&(a24==1)))))&&(a11==1))){ + a20 = 1; + a24 = 0; + a7 = 0; + a19 = 4; + a29 = 6; + return 23; + } else if(((a14==8)&&((!(a7==1)&&(!(a20==1)&&((((a22==1)&&((a28==1)&&(!(a0==1)&&(!(a11==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==4))))))&&!(a25==1))&&(a19==2))))&&(a24==1)))){ + a7 = 1; + a29 = 5; + a25 = 1; + return 24; + } else if(((a22==1)&&(!(a24==1)&&((!(a0==1)&&(((!(a11==1)&&((a28==1)&&((((a14==8)&&(input==1))&&(a25==1))&&!(a7==1))))&&!(a20==1))&&(a29==5)))&&(a19==5))))){ + a0 = 1; + a7 = 1; + a19 = 1; + a20 = 1; + a24 = 1; + a11 = 1; + return -1; + } else if(((!(a24==1)&&((!(a25==1)&&(((a0==1)&&(!(a20==1)&&(((a22==1)&&((input==5)&&(((a29==6)&&(a19==5))||(((a19==4)&&(a29==9))||((a19==5)&&(a29==5))))))&&(a14==8))))&&!(a11==1)))&&(a7==1)))&&(a28==1))){ + a19 = 4; + a29 = 6; + return -1; + } else if((((!(a11==1)&&(!(a20==1)&&(!(a25==1)&&(!(a24==1)&&((((a19==3)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==2))&&!(a0==1)))&&(a14==8))&&(a28==1))))))&&(a22==1))&&(a7==1))){ + a11 = 1; + a20 = 1; + a24 = 1; + a29 = 9; + return 21; + } else if(((a28==1)&&((a14==8)&&((a22==1)&&(((((a11==1)&&((a0==1)&&((((((a29==8)&&(a19==3))||((a19==3)&&(a29==9)))||((a29==5)&&(a19==4)))&&(input==2))&&(a20==1))))&&!(a7==1))&&!(a24==1))&&!(a25==1)))))){ + a25 = 1; + a19 = 1; + a24 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if(((!(a24==1)&&(((a19==2)&&((((((a11==1)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==5))&&!(a25==1)))&&(a22==1))&&!(a0==1))&&(a20==1))&&(a28==1)))&&!(a7==1)))&&(a14==8))){ + a29 = 6; + a24 = 1; + a19 = 3; + a20 = 0; + return 21; + } else if(((a22==1)&&((a19==3)&&(!(a24==1)&&((((a25==1)&&((a14==8)&&(((!(a20==1)&&((input==1)&&!(a7==1)))&&(a29==5))&&(a0==1))))&&(a11==1))&&(a28==1)))))){ + a20 = 1; + a24 = 1; + a0 = 0; + a29 = 6; + a19 = 5; + return 21; + } else if(((a14==8)&&(((!(a20==1)&&(((a28==1)&&(((a22==1)&&(!(a25==1)&&((((a29==5)||(a29==6))&&(input==3))&&(a11==1))))&&(a0==1)))&&(a19==3)))&&(a24==1))&&!(a7==1)))){ + a11 = 0; + a20 = 1; + a29 = 8; + a7 = 1; + a24 = 0; + return 23; + } else if(((a7==1)&&(((!(a24==1)&&((a20==1)&&(((a14==8)&&((((input==5)&&(((a29==5)&&(a19==4))||(((a19==3)&&(a29==8))||((a29==9)&&(a19==3)))))&&(a22==1))&&(a28==1)))&&(a25==1))))&&(a11==1))&&(a0==1)))){ + a24 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((!(a24==1)&&(((a22==1)&&(!(a20==1)&&((((a19==2)&&((a14==8)&&(!(a11==1)&&(((a29==8)||(a29==9))&&(input==2)))))&&!(a7==1))&&!(a0==1))))&&(a25==1)))&&(a28==1))){ + a29 = 8; + a25 = 0; + a20 = 1; + a24 = 1; + a19 = 5; + return -1; + } else if(((a22==1)&&(!(a24==1)&&(((a19==5)&&((((a7==1)&&((a29==6)&&((((a28==1)&&(input==4))&&(a14==10))&&(a0==1))))&&(a25==1))&&(a20==1)))&&(a11==1))))){ + a29 = 5; + a19 = 1; + a14 = 8; + a24 = 1; + return -1; + } return calculate_output43(input); + } + + int calculate_output43(int input) { + if((((!(a25==1)&&(((a7==1)&&(!(a20==1)&&((((a0==1)&&((a22==1)&&((input==2)&&((a29==9)||((a29==7)||(a29==8))))))&&(a28==1))&&(a11==1))))&&(a24==1)))&&(a19==1))&&(a14==8))){ + a25 = 1; + a7 = 0; + a29 = 5; + a19 = 4; + a24 = 0; + return 21; + } else if(((a19==2)&&((a29==5)&&((a11==1)&&((a28==1)&&((a25==1)&&(!(a0==1)&&((a14==9)&&(!(a24==1)&&((((a7==1)&&(input==4))&&(a22==1))&&!(a20==1))))))))))){ + a19 = 3; + a20 = 1; + a24 = 1; + a29 = 9; + a25 = 0; + a14 = 8; + return 21; + } else if(((a0==1)&&(((a19==2)&&((a7==1)&&(((a14==9)&&((a25==1)&&((a22==1)&&(((a20==1)&&(!(a11==1)&&(input==1)))&&(a28==1)))))&&(a24==1))))&&(a29==5)))){ + a19 = 1; + a14 = 8; + a11 = 1; + return -1; + } else if(((((a11==1)&&((((((((((a20==1)&&(a7==1))&&!(a24==1))&&(a25==1))&&(a29==6))&&(a19==1))||((((a29==9)&&(!(a25==1)&&((!(a20==1)&&!(a7==1))&&(a24==1))))&&(a19==5))||((a19==1)&&(((!(a24==1)&&((a20==1)&&(a7==1)))&&(a25==1))&&(a29==5)))))&&(input==3))&&(a22==1))&&(a28==1)))&&(a0==1))&&(a14==8))){ + a7 = 0; + a24 = 0; + a29 = 7; + a19 = 4; + a20 = 1; + a25 = 0; + a11 = 0; + return 23; + } else if(((a28==1)&&((a14==8)&&((a19==4)&&((a22==1)&&(!(a0==1)&&((!(a24==1)&&((!(a20==1)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==1))&&(a7==1)))&&!(a25==1)))&&!(a11==1)))))))){ + a20 = 1; + a11 = 1; + a0 = 1; + a14 = 9; + a29 = 8; + return 24; + } else if(((((((((a19==5)&&(((!(a20==1)&&((a22==1)&&(input==5)))&&!(a25==1))&&!(a0==1)))&&(a28==1))&&!(a7==1))&&!(a24==1))&&(a29==9))&&!(a11==1))&&(a14==8))){ + a11 = 1; + a29 = 5; + a7 = 1; + a19 = 4; + a0 = 1; + a14 = 9; + return 23; + } else if(((a0==1)&&((a7==1)&&(((a19==2)&&((a11==1)&&((a22==1)&&((a25==1)&&(((a24==1)&&((((a29==8)||(a29==9))&&(input==6))&&(a28==1)))&&(a20==1))))))&&(a14==9))))){ + a11 = 0; + a29 = 5; + a7 = 0; + a19 = 4; + a24 = 0; + a0 = 0; + return 21; + } else if(((!(a20==1)&&((a11==1)&&((a29==7)&&((((a19==4)&&((!(a25==1)&&(((a28==1)&&(input==1))&&(a24==1)))&&(a22==1)))&&(a0==1))&&(a7==1)))))&&(a14==9))){ + a19 = 5; + a7 = 0; + a20 = 1; + return -1; + } else if((((!(a0==1)&&(((a7==1)&&((a20==1)&&(((!(a25==1)&&(((a22==1)&&(input==3))&&(a28==1)))&&(a24==1))&&!(a11==1))))&&(a19==1)))&&(a29==6))&&(a14==9))){ + a24 = 0; + a0 = 1; + a29 = 7; + return 24; + } else if((((!(a20==1)&&(((!(a25==1)&&((!(a7==1)&&((a11==1)&&((a22==1)&&((input==6)&&((a29==8)||(a29==9))))))&&!(a0==1)))&&(a28==1))&&(a19==5)))&&(a14==9))&&!(a24==1))){ + a29 = 9; + a20 = 1; + a24 = 1; + a0 = 1; + a25 = 1; + a19 = 3; + a11 = 0; + return 24; + } else if(((!(a20==1)&&((a19==3)&&(!(a25==1)&&(!(a7==1)&&((a29==6)&&(((a0==1)&&((((input==2)&&(a14==9))&&(a28==1))&&(a22==1)))&&(a24==1)))))))&&(a11==1))){ + a19 = 1; + a29 = 5; + a14 = 8; + a25 = 1; + a20 = 1; + a7 = 1; + return -1; + } else if((!(a11==1)&&(((!(a0==1)&&((((((a29==7)&&((a28==1)&&((input==6)&&!(a24==1))))&&!(a20==1))&&(a19==5))&&(a7==1))&&!(a25==1)))&&(a22==1))&&(a14==8)))){ + a29 = 8; + a20 = 1; + a7 = 0; + a19 = 1; + a24 = 1; + a25 = 1; + return -1; + } else if((((a29==5)&&(((!(a7==1)&&((((a14==8)&&(((a22==1)&&((input==6)&&(a25==1)))&&(a0==1)))&&(a20==1))&&(a19==5)))&&!(a11==1))&&(a28==1)))&&!(a24==1))){ + a11 = 1; + a19 = 1; + a24 = 1; + a7 = 1; + return -1; + } else if(((a0==1)&&(!(a25==1)&&(((((a29==5)&&(((a28==1)&&(((a19==1)&&((a14==10)&&(input==1)))&&(a24==1)))&&(a7==1)))&&(a22==1))&&(a11==1))&&!(a20==1))))){ + a14 = 9; + a29 = 8; + a11 = 0; + return 21; + } else if((((((a19==5)&&(((((((a25==1)&&((input==2)&&(((a29==7)||(a29==8))||(a29==9))))&&(a28==1))&&(a22==1))&&(a14==9))&&(a7==1))&&!(a20==1)))&&(a0==1))&&(a11==1))&&(a24==1))){ + a14 = 8; + a24 = 0; + a11 = 0; + a19 = 4; + a29 = 6; + a25 = 0; + return 24; + } else if(((a24==1)&&((((a14==9)&&((a28==1)&&((((a19==1)&&((a0==1)&&((a22==1)&&(((a29==7)||((a29==5)||(a29==6)))&&(input==5)))))&&(a25==1))&&!(a20==1))))&&!(a7==1))&&!(a11==1)))){ + a25 = 0; + a29 = 8; + a11 = 1; + a7 = 1; + a24 = 0; + return 24; + } else if(((!(a25==1)&&(((a24==1)&&((a22==1)&&(((a14==10)&&((!(a20==1)&&(((input==3)&&((a29==7)||((a29==5)||(a29==6))))&&(a19==5)))&&(a7==1)))&&(a11==1))))&&(a28==1)))&&(a0==1))){ + a29 = 6; + a14 = 8; + a0 = 0; + a11 = 0; + a25 = 1; + return 24; + } else if(((a14==9)&&((a24==1)&&((((((((a20==1)&&(((((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))||((a19==3)&&(a29==5)))&&(input==5)))&&(a22==1))&&(a7==1))&&(a0==1))&&!(a11==1))&&!(a25==1))&&(a28==1))))){ + a14 = 8; + a29 = 5; + a25 = 1; + a19 = 1; + a11 = 1; + return -1; + } else if(((a14==9)&&(!(a0==1)&&((!(a11==1)&&((a7==1)&&((a28==1)&&((a24==1)&&(((((a22==1)&&(input==1))&&(a20==1))&&!(a25==1))&&(a29==5))))))&&(a19==5))))){ + a25 = 1; + a11 = 1; + a14 = 8; + a19 = 1; + a0 = 1; + return -1; + } else if((!(a20==1)&&(!(a7==1)&&((a22==1)&&(((!(a24==1)&&((a25==1)&&(((((input==6)&&((a29==8)||(a29==9)))&&(a14==9))&&!(a11==1))&&!(a0==1))))&&(a19==2))&&(a28==1)))))){ + a11 = 1; + a7 = 1; + a14 = 8; + a29 = 8; + return -1; + } else if((((((a20==1)&&((a11==1)&&(!(a0==1)&&(!(a24==1)&&(((((a29==6)&&((a25==1)&&!(a7==1)))&&(a19==1))||((((a29==9)&&(!(a25==1)&&(a7==1)))&&(a19==5))||(((!(a7==1)&&(a25==1))&&(a29==5))&&(a19==1))))&&(input==5))))))&&(a22==1))&&(a14==9))&&(a28==1))){ + a14 = 8; + a7 = 1; + a0 = 1; + a24 = 1; + a29 = 5; + a25 = 1; + a19 = 1; + return -1; + } else if((!(a7==1)&&(((a22==1)&&((a11==1)&&((a20==1)&&((a14==9)&&((a28==1)&&(((((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))||((a19==5)&&(a29==6)))&&(input==4))&&(a24==1))&&!(a0==1)))))))&&!(a25==1)))){ + a20 = 0; + a19 = 5; + a29 = 8; + a7 = 1; + a14 = 8; + a25 = 1; + a11 = 0; + return 24; + } else if(((!(a24==1)&&((!(a20==1)&&((a14==8)&&(!(a25==1)&&((a22==1)&&(!(a7==1)&&(!(a0==1)&&((((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))&&(input==2))))))))&&!(a11==1)))&&(a28==1))){ + a11 = 1; + a19 = 1; + a25 = 1; + a29 = 7; + a7 = 1; + return -1; + } else if(((a25==1)&&((!(a11==1)&&((((!(a24==1)&&((((((a19==5)&&(a29==6))||(((a29==9)&&(a19==4))||((a29==5)&&(a19==5))))&&(input==5))&&(a0==1))&&(a28==1)))&&(a14==8))&&(a22==1))&&(a20==1)))&&(a7==1)))){ + a25 = 0; + a29 = 6; + a19 = 5; + a11 = 1; + a14 = 9; + return 24; + } else if(((((a22==1)&&(!(a20==1)&&((a7==1)&&((a14==9)&&((a25==1)&&((((a28==1)&&((input==2)&&((a29==9)||((a29==7)||(a29==8)))))&&(a24==1))&&(a19==4)))))))&&(a0==1))&&!(a11==1))){ + a19 = 1; + a24 = 0; + a11 = 1; + a7 = 0; + a29 = 8; + a20 = 1; + a25 = 0; + return -1; + } else if(((((!(a7==1)&&((a19==4)&&(!(a0==1)&&((!(a24==1)&&((!(a25==1)&&((input==2)&&(((a29==5)||(a29==6))||(a29==7))))&&!(a20==1)))&&(a14==8)))))&&(a28==1))&&!(a11==1))&&(a22==1))){ + a25 = 1; + a24 = 1; + a11 = 1; + a29 = 5; + return 23; + } else if(((a14==8)&&(((a28==1)&&(!(a25==1)&&((a22==1)&&((a19==5)&&((a7==1)&&((!(a24==1)&&((!(a20==1)&&(input==1))&&(a29==7)))&&(a11==1)))))))&&!(a0==1)))){ + a25 = 1; + a0 = 1; + a24 = 1; + a29 = 5; + a20 = 1; + a19 = 1; + return -1; + } else if(((a29==7)&&((a20==1)&&((a28==1)&&((a22==1)&&((((((a0==1)&&(!(a7==1)&&((a11==1)&&(input==5))))&&(a25==1))&&(a19==3))&&(a24==1))&&(a14==8))))))){ + a19 = 4; + a29 = 8; + return 21; + } else if((((a22==1)&&(!(a24==1)&&((((a0==1)&&(!(a25==1)&&(((a20==1)&&((a19==2)&&(((a29==5)||(a29==6))&&(input==6))))&&(a28==1))))&&!(a11==1))&&!(a7==1))))&&(a14==9))){ + a7 = 1; + a19 = 1; + a25 = 1; + a29 = 7; + a11 = 1; + a20 = 0; + a24 = 1; + return 24; + } else if((((a20==1)&&((a0==1)&&((a25==1)&&((a7==1)&&((!(a11==1)&&(!(a24==1)&&((a19==1)&&(((input==3)&&(a29==6))&&(a28==1)))))&&(a14==8))))))&&(a22==1))){ + a14 = 9; + a19 = 3; + a11 = 1; + a29 = 8; + return 23; + } else if(((((!(a0==1)&&(((((a19==5)&&(((a7==1)&&((input==2)&&((a29==7)||((a29==5)||(a29==6)))))&&!(a25==1)))&&(a22==1))&&(a14==8))&&(a20==1)))&&(a28==1))&&!(a11==1))&&(a24==1))){ + a7 = 0; + a29 = 6; + a11 = 1; + a19 = 3; + a25 = 1; + return 23; + } else if(((a0==1)&&((((((a22==1)&&((a25==1)&&((a14==9)&&((!(a24==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==2)))&&!(a11==1)))))&&(a19==5))&&!(a7==1))&&(a20==1))&&(a28==1)))){ + a29 = 8; + a14 = 8; + a25 = 0; + a19 = 4; + a7 = 1; + a0 = 0; + a20 = 0; + return -1; + } else if(((a28==1)&&(((a19==3)&&(!(a7==1)&&(((a20==1)&&((a24==1)&&((a0==1)&&((a25==1)&&((a22==1)&&(((a29==7)||(a29==8))&&(input==2)))))))&&(a14==10))))&&(a11==1)))){ + a19 = 2; + a29 = 5; + a20 = 0; + a24 = 0; + a14 = 8; + a11 = 0; + return 23; + } else if((((((!(a7==1)&&((a28==1)&&((a22==1)&&((a20==1)&&((a11==1)&&(((input==6)&&(a14==8))&&(a19==1)))))))&&!(a24==1))&&(a29==6))&&(a25==1))&&(a0==1))){ + a7 = 1; + a24 = 1; + a19 = 4; + a29 = 5; + a20 = 0; + a0 = 0; + return 24; + } else if(((a22==1)&&(!(a20==1)&&(((a14==8)&&((((!(a24==1)&&(((((a19==4)&&(a29==5))||(((a29==8)&&(a19==3))||((a29==9)&&(a19==3))))&&(input==2))&&(a28==1)))&&!(a25==1))&&(a11==1))&&(a0==1)))&&(a7==1))))){ + a19 = 1; + a20 = 1; + a24 = 1; + a25 = 1; + a11 = 0; + a0 = 0; + a29 = 7; + return 24; + } else if(((a0==1)&&(((a14==9)&&(((((((!(a11==1)&&((input==5)&&(((a29==6)||(a29==7))||(a29==8))))&&(a19==2))&&!(a7==1))&&(a28==1))&&!(a20==1))&&(a22==1))&&!(a25==1)))&&!(a24==1)))){ + a29 = 5; + a20 = 1; + a25 = 1; + a19 = 1; + a11 = 1; + return 24; + } else if(((a20==1)&&((((((((a25==1)&&((((a29==6)&&(input==1))&&(a28==1))&&(a14==9)))&&(a22==1))&&!(a24==1))&&!(a7==1))&&(a0==1))&&(a19==4))&&!(a11==1)))){ + a24 = 1; + a19 = 1; + a14 = 8; + a11 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if(((a25==1)&&(((((a28==1)&&((((!(a7==1)&&(((input==1)&&(a20==1))&&(a14==9)))&&!(a11==1))&&(a22==1))&&(a0==1)))&&(a29==7))&&!(a24==1))&&(a19==2)))){ + a20 = 0; + a25 = 0; + a19 = 3; + a29 = 5; + a7 = 1; + a11 = 1; + return -1; + } else if(((((a19==3)&&((a25==1)&&(((((((a28==1)&&(((a29==8)||(a29==9))&&(input==4)))&&(a7==1))&&!(a20==1))&&(a14==8))&&(a22==1))&&!(a24==1))))&&(a11==1))&&!(a0==1))){ + a24 = 1; + a0 = 1; + a29 = 8; + a7 = 0; + a19 = 5; + a25 = 0; + a14 = 9; + a11 = 0; + return 24; + } else if((!(a0==1)&&(((a19==1)&&((a24==1)&&((!(a11==1)&&((a22==1)&&(((a14==8)&&((((a29==7)||(a29==8))&&(input==3))&&!(a7==1)))&&!(a20==1))))&&(a25==1))))&&(a28==1)))){ + a25 = 0; + a19 = 4; + a11 = 1; + a29 = 8; + return 21; + } else if(((a0==1)&&((a22==1)&&((((((((!(a24==1)&&((input==3)&&((a29==9)||((a29==7)||(a29==8)))))&&!(a7==1))&&(a14==8))&&(a25==1))&&!(a11==1))&&!(a20==1))&&(a19==4))&&(a28==1))))){ + a7 = 1; + a25 = 0; + a19 = 2; + a29 = 9; + return -1; + } else if((((a7==1)&&((a24==1)&&((((a14==8)&&(!(a11==1)&&((((a20==1)&&(!(a25==1)&&(input==1)))&&!(a0==1))&&(a19==5))))&&(a22==1))&&(a29==8))))&&(a28==1))){ + a25 = 1; + a19 = 1; + a29 = 9; + a11 = 1; + return 21; + } else if((((a20==1)&&((a0==1)&&((((((((a22==1)&&((input==5)&&((a29==8)||(a29==9))))&&!(a24==1))&&(a7==1))&&(a19==5))&&!(a25==1))&&(a14==9))&&(a28==1))))&&!(a11==1))){ + a11 = 1; + a24 = 1; + a20 = 0; + a29 = 7; + return -1; + } else if(((a22==1)&&(!(a24==1)&&((a0==1)&&((((((a28==1)&&((((input==5)&&(((a29==7)||(a29==8))||(a29==9)))&&(a19==5))&&(a14==8)))&&!(a11==1))&&!(a25==1))&&(a7==1))&&!(a20==1)))))){ + a11 = 1; + a29 = 6; + a19 = 3; + a25 = 1; + a20 = 1; + return -1; + } else if(((!(a25==1)&&((((((a0==1)&&(((((input==6)&&((a29==9)||((a29==7)||(a29==8))))&&(a19==1))&&(a28==1))&&(a24==1)))&&(a14==8))&&!(a20==1))&&!(a11==1))&&!(a7==1)))&&(a22==1))){ + a29 = 5; + a25 = 1; + a20 = 1; + a7 = 1; + a11 = 1; + return -1; + } else if((((a22==1)&&((a0==1)&&((!(a20==1)&&(((a19==1)&&((a14==8)&&(((((a29==9)||((a29==7)||(a29==8)))&&(input==3))&&(a11==1))&&(a24==1))))&&(a28==1)))&&!(a25==1))))&&(a7==1))){ + a24 = 0; + a7 = 0; + a25 = 1; + a19 = 4; + a29 = 9; + return 21; + } else if(((((((a22==1)&&(((a28==1)&&(!(a11==1)&&(((((a29==8)||(a29==9))&&(input==2))&&!(a0==1))&&(a7==1))))&&!(a20==1)))&&!(a24==1))&&(a19==2))&&(a14==8))&&!(a25==1))){ + a7 = 0; + a29 = 8; + a19 = 3; + a14 = 9; + a24 = 1; + a25 = 1; + return 21; + } else if(((a22==1)&&(!(a7==1)&&(((((a14==9)&&(((!(a24==1)&&(((input==3)&&((a29==7)||(a29==8)))&&!(a20==1)))&&(a28==1))&&!(a11==1)))&&(a25==1))&&(a19==1))&&!(a0==1))))){ + a11 = 1; + a29 = 5; + a20 = 1; + a24 = 1; + a14 = 8; + a7 = 1; + return 21; + } else if(((a25==1)&&((a22==1)&&((((a0==1)&&((a14==9)&&((((a7==1)&&((((a29==6)&&(a19==5))||(((a29==9)&&(a19==4))||((a29==5)&&(a19==5))))&&(input==1)))&&(a28==1))&&!(a11==1))))&&!(a24==1))&&!(a20==1))))){ + a7 = 0; + a29 = 8; + a20 = 1; + a11 = 1; + a19 = 3; + return 21; + } else if((((((((((a19==2)&&((a14==8)&&((((a29==8)||(a29==9))&&(input==6))&&!(a0==1))))&&!(a20==1))&&!(a11==1))&&(a28==1))&&(a22==1))&&(a25==1))&&!(a7==1))&&!(a24==1))){ + a11 = 1; + a24 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + a0 = 1; + a7 = 1; + return -1; + } else if((((a14==10)&&((a25==1)&&((((((a22==1)&&(((input==4)&&(((a19==3)&&(a29==9))||((a29==5)&&(a19==4))))&&(a24==1)))&&!(a7==1))&&(a0==1))&&(a28==1))&&(a11==1))))&&(a20==1))){ + a19 = 1; + a7 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if((((a28==1)&&(((((a22==1)&&((!(a11==1)&&(((a25==1)&&(((a29==8)||(a29==9))&&(input==2)))&&(a19==1)))&&(a0==1)))&&(a14==9))&&(a7==1))&&!(a20==1)))&&!(a24==1))){ + a29 = 5; + a14 = 8; + a19 = 4; + a25 = 0; + return 24; + } else if(((((a0==1)&&(((a19==4)&&((a14==8)&&((!(a20==1)&&((a11==1)&&((a22==1)&&(((a29==8)||(a29==9))&&(input==1)))))&&!(a25==1))))&&(a28==1)))&&(a7==1))&&(a24==1))){ + a19 = 5; + a20 = 1; + a29 = 8; + a11 = 0; + a25 = 1; + return 24; + } else if(((a28==1)&&(!(a0==1)&&((((a14==9)&&((a7==1)&&((a19==3)&&((!(a25==1)&&((a22==1)&&((input==3)&&((a29==7)||(a29==8)))))&&!(a11==1)))))&&!(a24==1))&&!(a20==1))))){ + a29 = 8; + a0 = 1; + a20 = 1; + a19 = 1; + a7 = 0; + return -1; + } else if(((a11==1)&&((((a22==1)&&(!(a20==1)&&(((a28==1)&&(((!(a0==1)&&((input==1)&&(a7==1)))&&!(a24==1))&&(a19==2)))&&(a29==9))))&&(a14==8))&&(a25==1)))){ + a0 = 1; + a25 = 0; + a19 = 5; + a29 = 5; + a14 = 9; + a7 = 0; + return 24; + } else if(((a19==2)&&((((a0==1)&&((((a29==5)&&((!(a24==1)&&((a28==1)&&((a22==1)&&(input==3))))&&(a11==1)))&&(a7==1))&&(a14==8)))&&(a25==1))&&(a20==1)))){ + a19 = 1; + a24 = 1; + return -1; + } else if(((!(a24==1)&&((a22==1)&&(!(a25==1)&&((a29==5)&&((a20==1)&&(!(a0==1)&&((a19==3)&&((((a28==1)&&(input==1))&&!(a11==1))&&(a14==9)))))))))&&(a7==1))){ + a29 = 6; + a11 = 1; + a19 = 2; + a14 = 8; + a24 = 1; + return 23; + } else if((!(a11==1)&&((((a28==1)&&((!(a7==1)&&((a25==1)&&((a20==1)&&(((a0==1)&&((input==3)&&((a29==9)||((a29==7)||(a29==8)))))&&(a14==8)))))&&(a22==1)))&&!(a24==1))&&(a19==2)))){ + a0 = 0; + a11 = 1; + a20 = 0; + a29 = 6; + a24 = 1; + a19 = 4; + a25 = 0; + return 24; + } else if((((((!(a7==1)&&(!(a11==1)&&((((!(a20==1)&&((input==4)&&((a29==9)||((a29==7)||(a29==8)))))&&(a0==1))&&(a24==1))&&(a19==1))))&&(a22==1))&&(a14==9))&&(a28==1))&&!(a25==1))){ + a11 = 1; + a20 = 1; + a7 = 1; + a29 = 6; + a19 = 3; + a25 = 1; + return 23; + } else if(((a11==1)&&((a0==1)&&(!(a20==1)&&((a29==6)&&(((a22==1)&&(((((a14==9)&&((a19==3)&&(input==5)))&&(a7==1))&&!(a24==1))&&(a25==1)))&&(a28==1))))))){ + a29 = 5; + a14 = 8; + a24 = 1; + a19 = 1; + a20 = 1; + return -1; + } else if((((a14==10)&&(((a7==1)&&((a28==1)&&((a0==1)&&(!(a20==1)&&((a22==1)&&(((((a29==8)||(a29==9))&&(input==2))&&(a19==5))&&(a24==1)))))))&&(a11==1)))&&!(a25==1))){ + a24 = 0; + a20 = 1; + a14 = 8; + a29 = 8; + a0 = 0; + a25 = 1; + return -1; + } else if(((((a24==1)&&((a19==2)&&((a22==1)&&(((((a14==8)&&(!(a11==1)&&((input==5)&&((a29==8)||((a29==6)||(a29==7))))))&&!(a7==1))&&(a0==1))&&(a25==1)))))&&(a28==1))&&(a20==1))){ + a20 = 0; + a24 = 0; + a25 = 0; + a29 = 9; + a19 = 5; + return 23; + } else if(((a28==1)&&((!(a0==1)&&(!(a25==1)&&(((a19==2)&&((a7==1)&&(((a22==1)&&(!(a20==1)&&(((a29==8)||(a29==9))&&(input==2))))&&!(a24==1))))&&(a11==1))))&&(a14==9)))){ + a11 = 0; + a14 = 8; + a24 = 1; + a7 = 0; + a29 = 8; + a25 = 1; + a20 = 1; + return 21; + } else if((((((a14==8)&&((a28==1)&&((a22==1)&&((a0==1)&&(((input==6)&&(((a19==5)&&((a25==1)&&(a29==9)))||(((a29==5)&&!(a25==1))&&(a19==1))))&&!(a11==1))))))&&!(a24==1))&&!(a20==1))&&(a7==1))){ + a29 = 5; + a11 = 1; + a19 = 5; + a25 = 0; + a0 = 0; + a24 = 1; + return 23; + } else if((((a28==1)&&(((a20==1)&&((a24==1)&&(((a14==8)&&((a0==1)&&(((((a29==7)||(a29==8))&&(input==5))&&!(a11==1))&&(a7==1))))&&(a19==2))))&&(a25==1)))&&(a22==1))){ + a0 = 0; + a29 = 9; + a25 = 0; + a19 = 4; + a20 = 0; + return 21; + } else if(((a24==1)&&(((a11==1)&&((a20==1)&&((!(a0==1)&&((a19==2)&&((a29==9)&&((a28==1)&&(((a25==1)&&(input==3))&&(a14==9))))))&&!(a7==1))))&&(a22==1)))){ + a19 = 1; + a14 = 8; + a0 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if((((((a19==1)&&((a22==1)&&(!(a25==1)&&((a24==1)&&((((a7==1)&&(((a29==5)||(a29==6))&&(input==1)))&&!(a11==1))&&!(a0==1))))))&&!(a20==1))&&(a14==9))&&(a28==1))){ + a29 = 7; + a0 = 1; + a14 = 8; + a19 = 4; + a24 = 0; + return 21; + } else if((!(a0==1)&&((((a28==1)&&(((a11==1)&&((a14==8)&&((a24==1)&&(((((a25==1)&&(a29==9))&&(a19==5))||((a19==1)&&(!(a25==1)&&(a29==5))))&&(input==4)))))&&(a20==1)))&&(a7==1))&&(a22==1)))){ + a19 = 1; + a29 = 9; + a25 = 1; + return -1; + } else if(((a11==1)&&((((a28==1)&&((a7==1)&&((!(a0==1)&&(!(a20==1)&&(((a24==1)&&((input==5)&&(a29==6)))&&(a25==1))))&&(a14==9))))&&(a22==1))&&(a19==2)))){ + a19 = 1; + a0 = 1; + a29 = 5; + a14 = 8; + a20 = 1; + return -1; + } else if(((((a19==4)&&(((a0==1)&&((a22==1)&&(((((a29==6)&&((a14==9)&&(input==6)))&&(a28==1))&&!(a20==1))&&!(a25==1))))&&(a11==1)))&&(a7==1))&&!(a24==1))){ + a25 = 1; + a14 = 10; + a19 = 5; + a29 = 8; + a20 = 1; + return 21; + } else if(((((a19==4)&&((a14==8)&&((!(a7==1)&&((a20==1)&&(!(a11==1)&&((((input==2)&&(((a29==6)||(a29==7))||(a29==8)))&&(a28==1))&&(a0==1)))))&&(a25==1))))&&!(a24==1))&&(a22==1))){ + a25 = 0; + a29 = 8; + a20 = 0; + return 23; + } else if(((a14==9)&&(((a28==1)&&((a11==1)&&(((a25==1)&&(!(a0==1)&&((a22==1)&&(((a29==6)&&((input==3)&&!(a24==1)))&&(a19==1)))))&&(a20==1))))&&(a7==1)))){ + a7 = 0; + a29 = 8; + a14 = 8; + a25 = 0; + return 23; + } else if(((a19==4)&&((a7==1)&&(((((a20==1)&&((!(a11==1)&&((a14==9)&&(((input==3)&&(a22==1))&&(a28==1))))&&(a29==7)))&&!(a25==1))&&(a24==1))&&!(a0==1))))){ + a11 = 1; + a7 = 0; + a14 = 8; + a19 = 2; + return 23; + } else if((!(a11==1)&&(((((((a20==1)&&(((!(a7==1)&&((input==3)&&((a29==9)||((a29==7)||(a29==8)))))&&(a22==1))&&(a25==1)))&&(a0==1))&&(a19==4))&&(a14==8))&&(a28==1))&&(a24==1)))){ + a19 = 1; + a11 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if(((a7==1)&&((a25==1)&&((((a14==10)&&(((a11==1)&&(((a0==1)&&(((input==4)&&((a29==7)||((a29==5)||(a29==6))))&&(a28==1)))&&(a19==2)))&&(a20==1)))&&(a24==1))&&(a22==1))))){ + a14 = 8; + a7 = 0; + a29 = 7; + a0 = 0; + a20 = 0; + a19 = 5; + return -1; + } else if(((a19==4)&&((a0==1)&&(((a22==1)&&((!(a25==1)&&((a28==1)&&((a24==1)&&((((input==5)&&((a29==5)||(a29==6)))&&(a7==1))&&(a11==1)))))&&(a14==9)))&&!(a20==1))))){ + a14 = 8; + a0 = 0; + a20 = 1; + a25 = 1; + a29 = 6; + a19 = 1; + a7 = 0; + return 24; + } else if((((a14==9)&&(((((((a11==1)&&(((input==2)&&(((a29==9)&&(a19==3))||((a29==5)&&(a19==4))))&&(a22==1)))&&(a28==1))&&!(a25==1))&&(a0==1))&&(a20==1))&&!(a7==1)))&&(a24==1))){ + a20 = 0; + a19 = 2; + a0 = 0; + a24 = 0; + a11 = 0; + a14 = 8; + a25 = 1; + a29 = 9; + return -1; + } else if(((a7==1)&&(((((a28==1)&&(!(a0==1)&&((a11==1)&&(!(a24==1)&&((((input==5)&&((a29==8)||(a29==9)))&&(a19==1))&&(a14==9))))))&&!(a25==1))&&!(a20==1))&&(a22==1)))){ + a11 = 0; + a29 = 5; + a20 = 1; + a14 = 8; + return 24; + } else if((((a14==9)&&((!(a20==1)&&(!(a25==1)&&((((a22==1)&&(!(a0==1)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==2))&&!(a7==1))))&&(a19==3))&&!(a11==1))))&&(a28==1)))&&!(a24==1))){ + a29 = 7; + a11 = 1; + a24 = 1; + a19 = 4; + return -1; + } else if(((a28==1)&&((a25==1)&&(!(a11==1)&&((a24==1)&&((a0==1)&&((a19==2)&&(((a22==1)&&(((((a29==7)||(a29==8))&&(input==3))&&(a14==8))&&(a20==1)))&&(a7==1))))))))){ + a11 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((((!(a24==1)&&((!(a0==1)&&(((a28==1)&&(((a19==4)&&((a11==1)&&((input==6)&&((a29==7)||(a29==8)))))&&(a22==1)))&&(a20==1)))&&(a14==9)))&&(a25==1))&&!(a7==1))){ + a29 = 5; + a14 = 8; + a0 = 1; + a19 = 1; + a7 = 1; + a24 = 1; + return -1; + } else if(((a19==4)&&((((a24==1)&&((a22==1)&&((a20==1)&&(((a25==1)&&(((a28==1)&&((input==3)&&!(a0==1)))&&(a29==9)))&&(a14==8)))))&&!(a7==1))&&(a11==1)))){ + a29 = 6; + a19 = 1; + a0 = 1; + a11 = 0; + a24 = 0; + a25 = 0; + a20 = 0; + return -1; + } else if(((((a19==3)&&(!(a0==1)&&((a11==1)&&(((a22==1)&&((a14==9)&&((((input==4)&&(((a29==7)||(a29==8))||(a29==9)))&&!(a7==1))&&!(a25==1))))&&!(a20==1)))))&&(a28==1))&&(a24==1))){ + a25 = 1; + a29 = 9; + a14 = 8; + a20 = 1; + a24 = 0; + return -1; + } else if(((((a28==1)&&((!(a24==1)&&((a7==1)&&(!(a25==1)&&((a0==1)&&((((a19==4)&&(input==1))&&(a14==8))&&(a11==1))))))&&(a22==1)))&&(a20==1))&&(a29==6))){ + a29 = 9; + a7 = 0; + a25 = 1; + a0 = 0; + a19 = 2; + a24 = 1; + return 23; + } else if(((a28==1)&&(((a11==1)&&(((a7==1)&&((((((((a29==8)||(a29==9))&&(input==4))&&(a20==1))&&(a22==1))&&(a14==9))&&(a19==3))&&!(a0==1)))&&!(a25==1)))&&(a24==1)))){ + a19 = 4; + a25 = 1; + a14 = 8; + a7 = 0; + a29 = 8; + return -1; + } else if((((a19==2)&&(((a7==1)&&(((a11==1)&&((((!(a0==1)&&((input==4)&&((a29==7)||(a29==8))))&&(a24==1))&&(a22==1))&&(a20==1)))&&!(a25==1)))&&(a14==9)))&&(a28==1))){ + a29 = 5; + a14 = 8; + a0 = 1; + a25 = 1; + a19 = 1; + return -1; + } else if(((((a28==1)&&((((a0==1)&&((((a14==10)&&((((a29==7)||(a29==8))&&(input==2))&&(a22==1)))&&(a25==1))&&(a24==1)))&&(a11==1))&&!(a20==1)))&&!(a7==1))&&(a19==2))){ + a29 = 5; + a7 = 1; + a20 = 1; + a19 = 1; + a14 = 8; + return -1; + } else if(((a7==1)&&((a25==1)&&((a14==9)&&((((!(a0==1)&&((a22==1)&&((a11==1)&&(((((a19==2)&&(a29==8))||((a29==9)&&(a19==2)))||((a29==5)&&(a19==3)))&&(input==1)))))&&(a20==1))&&(a28==1))&&!(a24==1)))))){ + a29 = 5; + a0 = 1; + a19 = 5; + a11 = 0; + return 21; + } else if(((!(a11==1)&&((a24==1)&&(((a14==9)&&((!(a20==1)&&(!(a7==1)&&((((((a29==8)&&(a19==2))||((a29==9)&&(a19==2)))||((a19==3)&&(a29==5)))&&(input==4))&&(a0==1))))&&!(a25==1)))&&(a28==1))))&&(a22==1))){ + a19 = 2; + a29 = 8; + a20 = 1; + a0 = 0; + a14 = 8; + a25 = 1; + return 24; + } else if((((((a22==1)&&(!(a0==1)&&((a14==8)&&((!(a25==1)&&(!(a7==1)&&(((a29==6)&&(input==4))&&(a11==1))))&&(a24==1)))))&&!(a20==1))&&(a19==5))&&(a28==1))){ + a19 = 1; + a11 = 0; + a24 = 0; + a25 = 1; + a0 = 1; + a29 = 5; + return 23; + } else if(((!(a11==1)&&(((((a19==2)&&(((a0==1)&&((a24==1)&&((a29==5)&&((input==2)&&(a7==1)))))&&(a28==1)))&&!(a25==1))&&(a14==9))&&!(a20==1)))&&(a22==1))){ + a19 = 5; + a29 = 6; + a11 = 1; + a20 = 1; + a7 = 0; + a25 = 1; + a24 = 0; + return 23; + } else if((((a19==1)&&(!(a24==1)&&((a25==1)&&((((a20==1)&&(!(a7==1)&&((a22==1)&&(((input==2)&&((a29==8)||(a29==9)))&&!(a11==1)))))&&(a28==1))&&(a0==1)))))&&(a14==9))){ + a25 = 0; + a7 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if((((a19==5)&&((((a20==1)&&((a22==1)&&(((a25==1)&&((a11==1)&&((a14==9)&&((input==3)&&((a29==5)||(a29==6))))))&&!(a0==1))))&&(a7==1))&&(a24==1)))&&(a28==1))){ + a29 = 5; + a14 = 8; + a0 = 1; + a19 = 1; + return -1; + } else if(((a14==9)&&((a25==1)&&((!(a20==1)&&(((((a19==1)&&((a22==1)&&(((input==3)&&(a28==1))&&(a11==1))))&&!(a24==1))&&(a29==6))&&!(a0==1)))&&!(a7==1))))){ + a24 = 1; + a29 = 8; + a14 = 8; + return 23; + } else if((!(a20==1)&&((((((((a11==1)&&((a25==1)&&((((a29==5)||(a29==6))&&(input==5))&&!(a7==1))))&&(a14==8))&&!(a0==1))&&(a19==5))&&(a28==1))&&(a22==1))&&!(a24==1)))){ + a24 = 1; + a29 = 7; + a25 = 0; + return 21; + } else if(((((a0==1)&&(!(a11==1)&&(((a19==2)&&(((a28==1)&&(((a14==8)&&((input==6)&&((a29==6)||(a29==7))))&&!(a20==1)))&&(a7==1)))&&(a22==1))))&&!(a25==1))&&!(a24==1))){ + a11 = 1; + a20 = 1; + a29 = 5; + a25 = 1; + a24 = 1; + a19 = 1; + return -1; + } else if(((a14==8)&&((a28==1)&&((((a24==1)&&(((a19==4)&&(((!(a20==1)&&((input==4)&&(a11==1)))&&(a0==1))&&(a22==1)))&&(a29==8)))&&(a25==1))&&(a7==1))))){ + a19 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if((!(a20==1)&&((a28==1)&&(((a7==1)&&((a0==1)&&(((!(a11==1)&&(((((a29==5)||(a29==6))&&(input==2))&&(a14==8))&&(a22==1)))&&(a19==5))&&(a24==1))))&&(a25==1))))){ + a29 = 8; + a19 = 3; + a11 = 1; + a14 = 9; + a20 = 1; + return 21; + } else if((!(a20==1)&&((a28==1)&&((a25==1)&&((((((a14==8)&&((((input==5)&&(a11==1))&&(a24==1))&&(a7==1)))&&(a22==1))&&(a0==1))&&(a29==5))&&(a19==2)))))){ + a19 = 1; + a20 = 1; + return -1; + } else if((((a24==1)&&((a19==2)&&((a25==1)&&(!(a7==1)&&(((a11==1)&&(((a28==1)&&((a22==1)&&((input==4)&&((a29==7)||(a29==8)))))&&!(a0==1)))&&(a20==1))))))&&(a14==8))){ + a25 = 0; + a19 = 1; + a7 = 1; + a29 = 5; + return 24; + } else if(((((a29==9)&&(((a22==1)&&(((!(a20==1)&&(((a14==9)&&((a19==3)&&(input==4)))&&!(a7==1)))&&!(a25==1))&&!(a24==1)))&&(a11==1)))&&(a28==1))&&!(a0==1))){ + a24 = 1; + a20 = 1; + a0 = 1; + a7 = 1; + a25 = 1; + a11 = 0; + return -1; + } else if(((((!(a25==1)&&((a11==1)&&(((((a22==1)&&((((a29==6)||(a29==7))&&(input==5))&&(a14==10)))&&(a28==1))&&(a20==1))&&(a0==1))))&&(a7==1))&&(a19==2))&&!(a24==1))){ + a24 = 1; + a7 = 0; + a20 = 0; + a19 = 3; + a29 = 6; + a14 = 8; + a0 = 0; + return 23; + } else if(((((a19==1)&&(!(a25==1)&&(((a0==1)&&(((a22==1)&&((!(a11==1)&&((input==2)&&((a29==8)||((a29==6)||(a29==7)))))&&(a14==9)))&&(a28==1)))&&!(a20==1))))&&(a7==1))&&!(a24==1))){ + a7 = 0; + a19 = 2; + a20 = 1; + a29 = 7; + return 23; + } else if((((a20==1)&&((a19==5)&&((a14==9)&&((((a7==1)&&(((a28==1)&&(((input==6)&&(a11==1))&&(a24==1)))&&(a22==1)))&&(a29==6))&&!(a25==1)))))&&!(a0==1))){ + a24 = 0; + a11 = 0; + a0 = 1; + a19 = 4; + a20 = 0; + return 21; + } else if((((a20==1)&&((((((((((input==6)&&(a7==1))&&!(a25==1))&&(a14==10))&&(a19==4))&&(a11==1))&&(a28==1))&&(a22==1))&&(a0==1))&&(a24==1)))&&(a29==5))){ + a20 = 0; + a29 = 7; + a14 = 8; + a11 = 0; + a0 = 0; + return -1; + } else if(((a0==1)&&(((a28==1)&&((a14==9)&&((!(a20==1)&&(!(a24==1)&&((((a19==3)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==1)))&&(a22==1))&&(a25==1))))&&(a7==1))))&&(a11==1)))){ + a11 = 0; + a19 = 1; + a29 = 7; + a25 = 0; + return 24; + } else if(((((((a28==1)&&((a22==1)&&(!(a7==1)&&(((a14==8)&&(!(a0==1)&&((input==4)&&(a19==3))))&&(a25==1)))))&&!(a11==1))&&!(a20==1))&&!(a24==1))&&(a29==5))){ + a11 = 1; + a7 = 1; + return -1; + } else if(((a11==1)&&(((a7==1)&&(((((!(a20==1)&&(((input==1)&&((((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))||((a29==5)&&(a19==3))))&&(a0==1)))&&(a25==1))&&!(a24==1))&&(a28==1))&&(a22==1)))&&(a14==9)))){ + a19 = 4; + a11 = 0; + a29 = 9; + a14 = 8; + a25 = 0; + a7 = 0; + return 21; + } else if(((a29==6)&&(((((((a19==4)&&(((((input==3)&&!(a11==1))&&(a25==1))&&(a7==1))&&(a14==8)))&&!(a20==1))&&(a0==1))&&(a28==1))&&(a24==1))&&(a22==1)))){ + a0 = 0; + a7 = 0; + a29 = 8; + a25 = 0; + a11 = 1; + return 24; + } else if(((!(a0==1)&&(((a19==2)&&((((a14==9)&&((a28==1)&&(((((a29==7)||(a29==8))&&(input==2))&&(a11==1))&&(a22==1))))&&!(a24==1))&&!(a7==1)))&&(a20==1)))&&!(a25==1))){ + a25 = 1; + a29 = 5; + a19 = 1; + a14 = 8; + a24 = 1; + a0 = 1; + a7 = 1; + return -1; + } else if(((!(a11==1)&&(((!(a24==1)&&(((a20==1)&&(!(a25==1)&&((a28==1)&&((((a29==6)||(a29==7))&&(input==3))&&(a22==1)))))&&!(a0==1)))&&(a7==1))&&(a14==8)))&&(a19==5))){ + a29 = 5; + a19 = 1; + a24 = 1; + a0 = 1; + a25 = 1; + a11 = 1; + return -1; + } else if(((a22==1)&&((a14==8)&&((!(a11==1)&&(!(a20==1)&&(((((a25==1)&&(((input==4)&&((a29==7)||(a29==8)))&&(a19==2)))&&(a7==1))&&(a28==1))&&(a0==1))))&&(a24==1))))){ + a29 = 8; + a24 = 0; + a25 = 0; + a7 = 0; + a19 = 1; + return 21; + } else if((((((a19==3)&&(((!(a7==1)&&(!(a24==1)&&((!(a20==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==6)))&&!(a11==1))))&&(a22==1))&&(a0==1)))&&(a28==1))&&(a14==9))&&!(a25==1))){ + a11 = 1; + a7 = 1; + a20 = 1; + a29 = 7; + return -1; + } else if(((a19==5)&&((a28==1)&&((((((a22==1)&&(((a11==1)&&((a14==8)&&((input==4)&&(a29==9))))&&(a25==1)))&&(a24==1))&&!(a0==1))&&(a20==1))&&!(a7==1))))){ + a25 = 0; + a24 = 0; + a29 = 6; + a20 = 0; + a19 = 3; + a0 = 1; + a11 = 0; + return -1; + } else if(((!(a24==1)&&(((a22==1)&&(((((((((a29==5)||(a29==6))&&(input==2))&&(a28==1))&&(a25==1))&&(a19==2))&&(a14==9))&&!(a11==1))&&!(a20==1)))&&(a0==1)))&&!(a7==1))){ + a29 = 6; + a25 = 0; + a19 = 3; + a7 = 1; + a14 = 8; + return 23; + } else if(((a28==1)&&(!(a11==1)&&(((((a22==1)&&(((((a24==1)&&((a7==1)&&(input==6)))&&(a14==9))&&(a25==1))&&(a29==6)))&&!(a20==1))&&!(a0==1))&&(a19==1))))){ + a19 = 2; + a20 = 1; + a7 = 0; + return -1; + } else if((((a19==5)&&(((a7==1)&&(((a20==1)&&(((a14==9)&&((a22==1)&&(!(a24==1)&&(((a29==5)||(a29==6))&&(input==5)))))&&!(a11==1)))&&!(a25==1)))&&(a28==1)))&&!(a0==1))){ + a11 = 1; + a0 = 1; + a29 = 8; + a7 = 0; + a20 = 0; + return 21; + } else if((((a14==8)&&(!(a20==1)&&((!(a24==1)&&(((a22==1)&&((a28==1)&&((a7==1)&&((((a29==6)||(a29==7))&&(input==1))&&(a0==1)))))&&(a25==1)))&&(a11==1))))&&(a19==5))){ + a29 = 7; + a0 = 0; + a25 = 0; + return 21; + } else if(((a14==8)&&(((((a22==1)&&(!(a25==1)&&((!(a20==1)&&((!(a0==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==3)))&&(a19==1)))&&!(a7==1))))&&!(a24==1))&&(a28==1))&&!(a11==1)))){ + a19 = 4; + a11 = 1; + a7 = 1; + a29 = 9; + return -1; + } else if((((!(a7==1)&&((a24==1)&&(((!(a20==1)&&(!(a0==1)&&(((a22==1)&&(((a29==7)||(a29==8))&&(input==1)))&&(a19==1))))&&(a28==1))&&!(a11==1))))&&!(a25==1))&&(a14==8))){ + a25 = 1; + a20 = 1; + a7 = 1; + a11 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if((((a25==1)&&((!(a7==1)&&((a22==1)&&((a14==9)&&((((((input==2)&&((a29==7)||(a29==8)))&&!(a24==1))&&(a19==1))&&(a11==1))&&(a28==1)))))&&!(a0==1)))&&!(a20==1))){ + a19 = 2; + a0 = 1; + a24 = 1; + a20 = 1; + a29 = 8; + return 24; + } else if((((a22==1)&&(!(a7==1)&&((((a19==4)&&(((a14==8)&&(!(a24==1)&&(((input==3)&&(a0==1))&&(a25==1))))&&(a11==1)))&&(a29==9))&&(a20==1))))&&(a28==1))){ + a7 = 1; + a19 = 3; + a0 = 0; + a29 = 7; + return 23; + } else if((((((a22==1)&&(((!(a25==1)&&(((!(a0==1)&&(((a29==8)||(a29==9))&&(input==1)))&&!(a20==1))&&!(a24==1)))&&!(a7==1))&&!(a11==1)))&&(a19==2))&&(a14==9))&&(a28==1))){ + a11 = 1; + a0 = 1; + a25 = 1; + a7 = 1; + a14 = 8; + a20 = 1; + a29 = 5; + a24 = 1; + a19 = 1; + return -1; + } else if(((!(a24==1)&&((((a11==1)&&(((!(a7==1)&&(((input==3)&&(((a19==3)&&(a29==9))||((a19==4)&&(a29==5))))&&(a25==1)))&&(a28==1))&&(a0==1)))&&(a22==1))&&!(a20==1)))&&(a14==8))){ + a20 = 1; + a0 = 0; + a19 = 2; + a29 = 6; + a25 = 0; + a24 = 1; + return 23; + } else if((((((!(a20==1)&&((a28==1)&&((a11==1)&&(((a19==3)&&(!(a7==1)&&(((a29==6)||(a29==7))&&(input==2))))&&(a25==1)))))&&(a24==1))&&(a22==1))&&(a14==8))&&!(a0==1))){ + a11 = 0; + a24 = 0; + a29 = 6; + a19 = 5; + a0 = 1; + return -1; + } else if(((((a7==1)&&(((a19==2)&&((a20==1)&&(!(a25==1)&&(((a28==1)&&(!(a0==1)&&(((a29==6)||(a29==7))&&(input==4))))&&!(a24==1)))))&&(a11==1)))&&(a22==1))&&(a14==8))){ + a19 = 5; + a25 = 1; + a29 = 8; + a24 = 1; + return 24; + } else if(((((a28==1)&&(!(a24==1)&&(!(a0==1)&&((a14==9)&&((a11==1)&&((a25==1)&&((a22==1)&&(!(a20==1)&&((input==2)&&((a29==8)||((a29==6)||(a29==7))))))))))))&&(a19==3))&&(a7==1))){ + a20 = 1; + a19 = 5; + a29 = 7; + a25 = 0; + a0 = 1; + return -1; + } else if(((!(a11==1)&&((a0==1)&&((!(a24==1)&&(((a25==1)&&((a7==1)&&((((((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))||((a29==5)&&(a19==3)))&&(input==5))&&(a20==1))))&&(a14==8)))&&(a22==1))))&&(a28==1))){ + a7 = 0; + a19 = 5; + a20 = 0; + a29 = 7; + return 23; + } else if((((((((!(a24==1)&&((a28==1)&&((((((a29==6)||(a29==7))||(a29==8))&&(input==2))&&(a22==1))&&(a19==4))))&&(a14==9))&&!(a25==1))&&!(a0==1))&&!(a20==1))&&!(a11==1))&&(a7==1))){ + a20 = 1; + a7 = 0; + a29 = 5; + a0 = 1; + return -1; + } else if(((a0==1)&&(((a22==1)&&((((!(a7==1)&&((a19==1)&&((!(a11==1)&&((input==1)&&((a29==7)||((a29==5)||(a29==6)))))&&(a25==1))))&&(a28==1))&&!(a24==1))&&(a20==1)))&&(a14==9)))){ + a29 = 5; + a11 = 1; + a14 = 8; + a7 = 1; + a24 = 1; + return -1; + } else if((((a14==9)&&(!(a11==1)&&((a7==1)&&(!(a20==1)&&(((a19==5)&&(((a25==1)&&(((input==4)&&((a29==8)||(a29==9)))&&(a28==1)))&&!(a0==1)))&&(a24==1))))))&&(a22==1))){ + a0 = 1; + a29 = 5; + a11 = 1; + a20 = 1; + a14 = 8; + a19 = 1; + return -1; + } else if((((a0==1)&&((a19==2)&&((((a14==8)&&((!(a7==1)&&((a25==1)&&(((input==1)&&((a29==8)||(a29==9)))&&(a28==1))))&&!(a20==1)))&&(a22==1))&&!(a11==1))))&&(a24==1))){ + a29 = 7; + a19 = 5; + a24 = 0; + return 23; + } else if(((a14==9)&&((a24==1)&&(!(a0==1)&&(((((((((((a19==4)&&(a29==8))||((a19==4)&&(a29==9)))||((a19==5)&&(a29==5)))&&(input==6))&&(a7==1))&&(a11==1))&&(a28==1))&&(a25==1))&&(a22==1))&&!(a20==1)))))){ + a19 = 2; + a20 = 1; + a29 = 5; + a14 = 8; + return 21; + } else if((!(a25==1)&&((a29==8)&&((a28==1)&&(!(a20==1)&&(!(a11==1)&&((!(a24==1)&&((a19==5)&&((((a22==1)&&(input==2))&&!(a0==1))&&(a14==9))))&&(a7==1)))))))){ + a19 = 2; + a29 = 7; + a0 = 1; + a7 = 0; + a24 = 1; + return 23; + } else if(((a11==1)&&((((((!(a20==1)&&((a22==1)&&(((!(a24==1)&&(input==2))&&(a7==1))&&(a29==9))))&&(a28==1))&&(a0==1))&&(a25==1))&&(a14==9))&&(a19==5)))){ + a29 = 5; + a20 = 1; + a24 = 1; + a19 = 1; + a14 = 8; + return -1; + } else if(((a22==1)&&((a0==1)&&(((((((((((a29==7)||((a29==5)||(a29==6)))&&(input==3))&&(a7==1))&&(a14==9))&&!(a20==1))&&!(a24==1))&&(a11==1))&&(a19==1))&&!(a25==1))&&(a28==1))))){ + a0 = 0; + a19 = 2; + a14 = 8; + a29 = 6; + a24 = 1; + a25 = 1; + return 23; + } else if(((a22==1)&&(!(a20==1)&&(!(a25==1)&&((a28==1)&&((a11==1)&&((a14==8)&&(((a19==2)&&((!(a24==1)&&((a7==1)&&(input==6)))&&(a29==8)))&&(a0==1))))))))){ + a29 = 7; + a7 = 0; + a24 = 1; + a19 = 3; + a20 = 1; + a25 = 1; + return 24; + } else if((((a19==2)&&((a28==1)&&(((a14==9)&&(!(a0==1)&&((a22==1)&&(!(a24==1)&&((!(a20==1)&&((input==3)&&((a29==7)||(a29==8))))&&(a11==1))))))&&(a25==1))))&&!(a7==1))){ + a14 = 8; + a20 = 1; + a29 = 7; + return 23; + } else if(((a22==1)&&((a11==1)&&(!(a0==1)&&(((!(a24==1)&&((((a20==1)&&((a25==1)&&((input==3)&&((a29==8)||(a29==9)))))&&(a28==1))&&(a19==2)))&&(a7==1))&&(a14==8)))))){ + a11 = 0; + a25 = 0; + a29 = 8; + a0 = 1; + a20 = 0; + a19 = 4; + return 24; + } else if((!(a24==1)&&((a25==1)&&((a22==1)&&(((a11==1)&&((((a28==1)&&((a19==4)&&((a7==1)&&((input==6)&&((a29==8)||(a29==9))))))&&(a0==1))&&(a20==1)))&&(a14==8)))))){ + a25 = 0; + a20 = 0; + a29 = 6; + a11 = 0; + a7 = 0; + a19 = 2; + return 21; + } else if(((((a14==8)&&((a22==1)&&(((a20==1)&&(!(a11==1)&&((!(a24==1)&&((a28==1)&&((input==4)&&(a7==1))))&&(a19==3))))&&(a29==7))))&&!(a25==1))&&(a0==1))){ + a20 = 0; + return 23; + } else if(((a19==2)&&((a11==1)&&(((a28==1)&&((a0==1)&&((a29==9)&&(((a25==1)&&((((input==4)&&(a22==1))&&!(a7==1))&&(a14==10)))&&(a24==1)))))&&(a20==1))))){ + a14 = 9; + a24 = 0; + a11 = 0; + a0 = 0; + a19 = 3; + return -1; + } else if((((!(a24==1)&&(((a22==1)&&((a11==1)&&(!(a20==1)&&(((((a19==5)&&(input==6))&&(a14==9))&&(a0==1))&&(a25==1)))))&&!(a7==1)))&&(a28==1))&&(a29==7))){ + a0 = 0; + a25 = 0; + a29 = 5; + a7 = 1; + a19 = 3; + a14 = 8; + a24 = 1; + return 21; + } else if(((a22==1)&&((a0==1)&&((a28==1)&&(((a11==1)&&(!(a24==1)&&(!(a20==1)&&(((a19==2)&&(!(a7==1)&&((a14==8)&&(input==1))))&&!(a25==1)))))&&(a29==6)))))){ + a11 = 0; + a19 = 1; + a29 = 7; + a24 = 1; + a0 = 0; + a20 = 1; + return 23; + } else if(((a20==1)&&((((!(a7==1)&&(((a0==1)&&(((a25==1)&&(!(a11==1)&&(((a29==5)||(a29==6))&&(input==3))))&&(a14==8)))&&(a19==5)))&&(a24==1))&&(a28==1))&&(a22==1)))){ + a7 = 1; + a0 = 0; + a20 = 0; + a29 = 8; + a11 = 1; + a19 = 3; + return 23; + } else if(((a19==2)&&((a24==1)&&(!(a11==1)&&(((a22==1)&&(!(a7==1)&&((a28==1)&&((a20==1)&&((a14==8)&&(((input==4)&&((a29==6)||(a29==7)))&&!(a0==1)))))))&&(a25==1)))))){ + a11 = 1; + a29 = 5; + return 23; + } else if(((a28==1)&&((((a24==1)&&(((a19==4)&&((a25==1)&&(((!(a11==1)&&(((a29==7)||(a29==8))&&(input==2)))&&(a14==8))&&(a7==1))))&&(a0==1)))&&!(a20==1))&&(a22==1)))){ + a29 = 5; + a14 = 9; + a19 = 2; + a11 = 1; + a20 = 1; + return 24; + } else if(((((((a28==1)&&(!(a25==1)&&((a14==9)&&(((a19==1)&&((a20==1)&&((input==2)&&((a29==8)||((a29==6)||(a29==7))))))&&(a0==1)))))&&!(a7==1))&&!(a24==1))&&(a22==1))&&(a11==1))){ + a0 = 0; + a19 = 4; + a29 = 5; + a24 = 1; + a14 = 8; + return 24; + } else if(((a11==1)&&((a24==1)&&(((a14==10)&&((!(a7==1)&&(((a25==1)&&((a22==1)&&((a19==5)&&((input==3)&&(((a29==5)||(a29==6))||(a29==7))))))&&(a0==1)))&&(a28==1)))&&!(a20==1))))){ + a29 = 5; + return -1; + } else if(((a0==1)&&((!(a24==1)&&(!(a25==1)&&(((((a14==8)&&((a28==1)&&((input==2)&&((((a29==8)&&(a19==3))||((a29==9)&&(a19==3)))||((a19==4)&&(a29==5))))))&&(a20==1))&&!(a11==1))&&(a22==1))))&&(a7==1)))){ + a25 = 1; + a11 = 1; + a19 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if(((a14==8)&&((a28==1)&&(!(a7==1)&&((((((a20==1)&&((a25==1)&&((a19==1)&&((input==2)&&(((a29==7)||(a29==8))||(a29==9))))))&&(a0==1))&&(a22==1))&&!(a24==1))&&!(a11==1)))))){ + a20 = 0; + a0 = 0; + a11 = 1; + a19 = 4; + a24 = 1; + a29 = 5; + return 24; + } else if(((a24==1)&&(((((a19==2)&&((((a22==1)&&((a29==7)&&((a7==1)&&((input==5)&&(a11==1)))))&&!(a0==1))&&(a25==1)))&&(a20==1))&&(a28==1))&&(a14==8)))){ + a7 = 0; + a29 = 6; + a24 = 0; + a11 = 0; + a20 = 0; + a0 = 1; + return -1; + } else if(((!(a0==1)&&((((a28==1)&&((a19==4)&&((!(a7==1)&&(!(a25==1)&&((!(a24==1)&&(input==5))&&(a20==1))))&&(a22==1))))&&(a29==9))&&(a14==8)))&&!(a11==1))){ + a19 = 5; + a25 = 1; + a20 = 0; + a29 = 5; + a24 = 1; + a7 = 1; + a14 = 9; + return 24; + } else if((((((a22==1)&&(((!(a24==1)&&(!(a11==1)&&(!(a25==1)&&((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))&&(input==1)))))&&(a0==1))&&(a28==1)))&&(a14==8))&&!(a20==1))&&(a7==1))){ + a24 = 1; + a29 = 5; + a19 = 4; + a11 = 1; + a7 = 0; + a20 = 1; + return 23; + } else if((!(a0==1)&&(!(a7==1)&&((a29==8)&&((((((((a28==1)&&((input==1)&&(a14==9)))&&(a25==1))&&(a11==1))&&(a20==1))&&(a22==1))&&!(a24==1))&&(a19==2)))))){ + a19 = 1; + a14 = 8; + a0 = 1; + a20 = 0; + a25 = 0; + a11 = 0; + return 21; + } else if((!(a25==1)&&((((((a20==1)&&((a22==1)&&(((a19==5)&&(!(a11==1)&&((input==1)&&((a29==7)||(a29==8)))))&&!(a24==1))))&&(a28==1))&&!(a0==1))&&(a14==9))&&(a7==1)))){ + a11 = 1; + a24 = 1; + a14 = 8; + a29 = 5; + a19 = 1; + a25 = 1; + a0 = 1; + return -1; + } else if((((a11==1)&&(!(a0==1)&&((!(a7==1)&&((((a14==8)&&((a25==1)&&((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))&&(input==4))))&&(a20==1))&&(a24==1)))&&(a28==1))))&&(a22==1))){ + a29 = 5; + a19 = 1; + a0 = 1; + a7 = 1; + return -1; + } else if(((((a22==1)&&((((((((((a29==8)||(a29==9))&&(input==5))&&!(a7==1))&&(a20==1))&&!(a11==1))&&(a19==2))&&(a28==1))&&(a25==1))&&!(a24==1)))&&(a0==1))&&(a14==9))){ + a0 = 0; + a25 = 0; + a11 = 1; + a14 = 8; + a7 = 1; + a19 = 3; + a29 = 8; + return -1; + } else if((!(a0==1)&&((a28==1)&&(((((((((((a19==2)&&(a29==6))||(((a29==9)&&(a19==1))||((a19==2)&&(a29==5))))&&(input==3))&&(a22==1))&&(a14==8))&&(a11==1))&&(a24==1))&&(a20==1))&&!(a25==1))&&!(a7==1))))){ + a29 = 9; + a25 = 1; + a19 = 5; + return -1; + } else if(((a29==6)&&(((a22==1)&&(((!(a0==1)&&(!(a25==1)&&((a24==1)&&((((a28==1)&&(input==5))&&(a20==1))&&(a7==1)))))&&(a14==8))&&!(a11==1)))&&(a19==1)))){ + a7 = 0; + a25 = 1; + a29 = 7; + return 24; + } else if(((((a22==1)&&((a7==1)&&((((((a28==1)&&(!(a24==1)&&((input==5)&&(a19==2))))&&(a14==8))&&!(a25==1))&&(a11==1))&&(a20==1))))&&!(a0==1))&&(a29==8))){ + a19 = 4; + a7 = 0; + a20 = 0; + a24 = 1; + return 24; + } else if(((a24==1)&&((a7==1)&&((((a28==1)&&(!(a20==1)&&((a25==1)&&(((a22==1)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==3))&&!(a0==1)))&&(a11==1)))))&&(a19==4))&&(a14==8))))){ + a19 = 2; + a20 = 1; + a29 = 5; + return -1; + } else if((((((a19==3)&&((a29==9)&&((((a22==1)&&((a14==9)&&(((input==2)&&(a0==1))&&(a11==1))))&&(a7==1))&&(a25==1))))&&(a20==1))&&(a28==1))&&!(a24==1))){ + a20 = 0; + a11 = 0; + a14 = 8; + a29 = 8; + a7 = 0; + a19 = 5; + a0 = 0; + return -1; + } else if(((a0==1)&&((a7==1)&&(((a14==8)&&(((a22==1)&&((a24==1)&&(!(a25==1)&&((a19==2)&&((a11==1)&&((input==4)&&(a29==8)))))))&&!(a20==1)))&&(a28==1))))){ + a29 = 5; + a19 = 1; + a25 = 1; + a20 = 1; + return -1; + } else if(((!(a0==1)&&((a24==1)&&((a19==5)&&(!(a11==1)&&((a28==1)&&(((a14==8)&&(!(a7==1)&&((a22==1)&&(((a29==6)||(a29==7))&&(input==6)))))&&(a25==1)))))))&&!(a20==1))){ + a20 = 1; + a0 = 1; + a19 = 1; + a11 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if(((a19==1)&&(((a20==1)&&((((a22==1)&&((a25==1)&&(((((input==4)&&(((a29==6)||(a29==7))||(a29==8)))&&(a24==1))&&(a0==1))&&(a28==1))))&&(a14==9))&&(a7==1)))&&!(a11==1)))){ + a20 = 0; + a14 = 8; + a24 = 0; + a29 = 5; + a7 = 0; + a19 = 2; + return 24; + } else if(((((a14==9)&&(((((a29==8)&&(((((input==4)&&!(a0==1))&&!(a11==1))&&(a19==4))&&(a22==1)))&&(a25==1))&&!(a20==1))&&(a28==1)))&&!(a7==1))&&(a24==1))){ + a19 = 1; + a29 = 5; + a11 = 1; + a7 = 1; + a14 = 8; + a20 = 1; + a0 = 1; + return -1; + } else if((!(a25==1)&&((!(a7==1)&&((a28==1)&&(!(a20==1)&&((a19==4)&&((a14==9)&&(!(a24==1)&&(((((a29==5)||(a29==6))&&(input==6))&&!(a0==1))&&(a11==1))))))))&&(a22==1)))){ + a29 = 6; + a11 = 0; + a14 = 8; + a25 = 1; + return 23; + } else if(((a24==1)&&((a22==1)&&(((((a28==1)&&((((a19==4)&&(((input==2)&&((a29==8)||((a29==6)||(a29==7))))&&(a11==1)))&&!(a25==1))&&!(a20==1)))&&(a7==1))&&(a14==10))&&(a0==1))))){ + a11 = 0; + a20 = 1; + a19 = 2; + a0 = 0; + a14 = 9; + a25 = 1; + a29 = 5; + return -1; + } else if(((a7==1)&&((a22==1)&&((a28==1)&&((((((a24==1)&&(((a11==1)&&((a14==8)&&(input==6)))&&!(a0==1)))&&(a19==4))&&!(a25==1))&&!(a20==1))&&(a29==6)))))){ + a24 = 0; + a11 = 0; + a0 = 1; + a29 = 9; + a25 = 1; + a7 = 0; + return 24; + } else if(((a22==1)&&((((((a0==1)&&(((((((a29==8)||((a29==6)||(a29==7)))&&(input==6))&&!(a24==1))&&(a28==1))&&!(a7==1))&&(a11==1)))&&(a14==9))&&(a19==1))&&!(a25==1))&&(a20==1)))){ + a7 = 1; + a19 = 3; + a29 = 5; + a0 = 0; + a20 = 0; + a14 = 8; + return -1; + } else if(((!(a24==1)&&(!(a0==1)&&(((!(a11==1)&&((((a19==1)&&((a20==1)&&(((a29==5)||(a29==6))&&(input==2))))&&(a28==1))&&(a14==9)))&&(a7==1))&&!(a25==1))))&&(a22==1))){ + a19 = 3; + a24 = 1; + a14 = 8; + a11 = 1; + a29 = 7; + return 24; + } else if((((a25==1)&&((((a24==1)&&((a28==1)&&(!(a20==1)&&(!(a0==1)&&(((input==2)&&(((a29==9)&&(a19==3))||((a29==5)&&(a19==4))))&&(a7==1))))))&&(a22==1))&&(a11==1)))&&(a14==9))){ + a14 = 8; + a20 = 1; + a19 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if(((a28==1)&&(!(a25==1)&&((a29==7)&&((a0==1)&&((((((((input==5)&&(a22==1))&&!(a24==1))&&(a14==9))&&!(a11==1))&&(a19==3))&&!(a20==1))&&(a7==1))))))){ + a19 = 1; + a0 = 0; + a20 = 1; + a7 = 0; + a14 = 8; + a24 = 1; + return 24; + } else if(((a14==8)&&((a22==1)&&(((a19==3)&&(((((a28==1)&&(((((a29==5)||(a29==6))&&(input==1))&&!(a11==1))&&!(a7==1)))&&(a0==1))&&(a20==1))&&(a24==1)))&&!(a25==1))))){ + a29 = 9; + a7 = 1; + a11 = 1; + a0 = 0; + return 23; + } else if(((!(a0==1)&&(!(a11==1)&&((((a28==1)&&((a24==1)&&((a20==1)&&((a14==9)&&((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))&&(input==4))))))&&(a7==1))&&(a25==1))))&&(a22==1))){ + a19 = 3; + a29 = 9; + a14 = 8; + a25 = 0; + return 23; + } else if(((a11==1)&&((((a14==9)&&(((!(a20==1)&&((((a19==1)&&((!(a7==1)&&(a25==1))&&(a29==5)))||(((((a7==1)&&!(a25==1))&&(a29==8))&&(a19==5))||((a19==5)&&((a29==9)&&((a7==1)&&!(a25==1))))))&&(input==2)))&&(a22==1))&&(a28==1)))&&!(a24==1))&&!(a0==1)))){ + a20 = 1; + a14 = 8; + a29 = 6; + a19 = 1; + a11 = 0; + a7 = 1; + a25 = 0; + a24 = 1; + return 24; + } else if(((((a7==1)&&((((!(a25==1)&&((a29==5)&&(!(a0==1)&&(((input==2)&&(a20==1))&&(a19==5)))))&&(a24==1))&&(a14==9))&&!(a11==1)))&&(a22==1))&&(a28==1))){ + a19 = 1; + a14 = 8; + a24 = 0; + a20 = 0; + a29 = 6; + return 24; + } else if((!(a20==1)&&(!(a11==1)&&((a22==1)&&((!(a24==1)&&((a28==1)&&((a14==9)&&((((a19==1)&&(((a25==1)&&!(a7==1))&&(a29==6)))||(((a19==5)&&(((a7==1)&&!(a25==1))&&(a29==9)))||(((a29==5)&&(!(a7==1)&&(a25==1)))&&(a19==1))))&&(input==3)))))&&!(a0==1)))))){ + a19 = 1; + a7 = 1; + a24 = 1; + a25 = 1; + a29 = 6; + return -1; + } else if((!(a11==1)&&((((a24==1)&&(((a28==1)&&((a14==9)&&((a25==1)&&((((((a19==3)&&(a29==8))||((a29==9)&&(a19==3)))||((a29==5)&&(a19==4)))&&(input==1))&&!(a20==1)))))&&!(a7==1)))&&(a22==1))&&(a0==1)))){ + a25 = 0; + a14 = 8; + a24 = 0; + a29 = 9; + a19 = 4; + return 23; + } else if(((((a19==5)&&(!(a7==1)&&((((((a0==1)&&((a22==1)&&((input==3)&&((a29==8)||(a29==9)))))&&(a28==1))&&(a24==1))&&(a14==8))&&!(a11==1))))&&(a20==1))&&!(a25==1))){ + a7 = 1; + a29 = 5; + a11 = 1; + a19 = 1; + a25 = 1; + return -1; + } else if(((!(a20==1)&&((a24==1)&&((((a14==8)&&(((a11==1)&&((a22==1)&&((((a29==5)&&(a19==3))||(((a29==8)&&(a19==2))||((a19==2)&&(a29==9))))&&(input==2))))&&!(a25==1)))&&!(a0==1))&&(a28==1))))&&(a7==1))){ + a29 = 5; + a20 = 1; + a25 = 1; + a0 = 1; + a19 = 1; + return -1; + } else if((((((a28==1)&&(((a14==8)&&((a22==1)&&((((((a29==6)&&(a19==4))||(((a19==3)&&(a29==9))||((a29==5)&&(a19==4))))&&(input==2))&&(a7==1))&&!(a25==1))))&&(a0==1)))&&(a24==1))&&!(a11==1))&&(a20==1))){ + a29 = 8; + a19 = 2; + a11 = 1; + a0 = 0; + a20 = 0; + a7 = 0; + return 23; + } else if(((a0==1)&&((!(a20==1)&&(((a7==1)&&((a25==1)&&((a19==4)&&((a24==1)&&((a11==1)&&((a14==8)&&((input==4)&&((a29==7)||((a29==5)||(a29==6))))))))))&&(a28==1)))&&(a22==1)))){ + a20 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((a28==1)&&((!(a0==1)&&(!(a11==1)&&((a22==1)&&(((!(a7==1)&&((((input==3)&&((a29==6)||(a29==7)))&&(a24==1))&&(a25==1)))&&(a14==8))&&(a20==1)))))&&(a19==1)))){ + a11 = 1; + a20 = 0; + a25 = 0; + a29 = 7; + a19 = 2; + return 21; + } else if(((a14==9)&&((a22==1)&&(!(a24==1)&&(((a28==1)&&((!(a20==1)&&(!(a25==1)&&((a19==1)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==2))&&(a0==1)))))&&!(a11==1)))&&!(a7==1)))))){ + a24 = 1; + a7 = 1; + a29 = 5; + a20 = 1; + a14 = 8; + a25 = 1; + a11 = 1; + return -1; + } else if(((a11==1)&&((a28==1)&&(((a24==1)&&((!(a7==1)&&(!(a25==1)&&((a0==1)&&(((((a19==1)&&(a29==9))||((a29==5)&&(a19==2)))&&(input==6))&&!(a20==1)))))&&(a14==8)))&&(a22==1))))){ + a7 = 1; + a29 = 6; + a20 = 1; + a19 = 3; + a24 = 0; + a11 = 0; + a25 = 1; + return 23; + } else if((!(a20==1)&&((((a14==9)&&(!(a7==1)&&(!(a24==1)&&((a0==1)&&(((a29==5)&&(((input==6)&&(a22==1))&&(a19==4)))&&!(a11==1))))))&&(a28==1))&&!(a25==1)))){ + a7 = 1; + a25 = 1; + a11 = 1; + a19 = 1; + a14 = 8; + a24 = 1; + a20 = 1; + return -1; + } else if(((a0==1)&&(((a22==1)&&(((!(a20==1)&&(((((((a19==5)&&((a29==8)&&(a25==1)))||((a19==5)&&((a25==1)&&(a29==9))))||((a19==1)&&(!(a25==1)&&(a29==5))))&&(input==6))&&!(a11==1))&&(a28==1)))&&(a24==1))&&!(a7==1)))&&(a14==9)))){ + a20 = 1; + a7 = 1; + a11 = 1; + a19 = 1; + a14 = 8; + a29 = 5; + a25 = 1; + return -1; + } else if((((!(a24==1)&&(((((a19==5)&&((a28==1)&&(!(a20==1)&&((a14==9)&&(((a29==5)||(a29==6))&&(input==2))))))&&(a25==1))&&!(a0==1))&&(a22==1)))&&(a7==1))&&!(a11==1))){ + a7 = 0; + a19 = 2; + a20 = 1; + a24 = 1; + a14 = 8; + a29 = 6; + a11 = 1; + return 23; + } else if(((a7==1)&&(((a25==1)&&((a22==1)&&((a19==3)&&(!(a24==1)&&((((a0==1)&&((a28==1)&&((input==2)&&(((a29==7)||(a29==8))||(a29==9)))))&&(a14==9))&&!(a20==1))))))&&(a11==1)))){ + a11 = 0; + a29 = 9; + a19 = 4; + a7 = 0; + a14 = 8; + return 21; + } else if(((a28==1)&&((a29==6)&&((a25==1)&&((a14==10)&&((a20==1)&&((a0==1)&&((a24==1)&&((a7==1)&&(((a22==1)&&((input==4)&&(a11==1)))&&(a19==4))))))))))){ + a0 = 0; + a14 = 8; + a29 = 9; + a19 = 3; + return 23; + } else if((((!(a24==1)&&((a19==1)&&((a14==8)&&(((((a22==1)&&(((input==2)&&((a29==9)||((a29==7)||(a29==8))))&&(a7==1)))&&!(a20==1))&&!(a11==1))&&(a28==1)))))&&!(a25==1))&&!(a0==1))){ + a11 = 1; + a25 = 1; + a24 = 1; + a19 = 4; + a29 = 6; + return 21; + } else if(((a28==1)&&(((a20==1)&&((a14==8)&&(!(a7==1)&&(((a0==1)&&((((a19==2)&&((input==6)&&((a29==7)||((a29==5)||(a29==6)))))&&(a22==1))&&(a11==1)))&&!(a25==1)))))&&(a24==1)))){ + a25 = 1; + a7 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((a14==9)&&(((a24==1)&&(((((a0==1)&&((a22==1)&&(((a25==1)&&((input==2)&&(((a29==5)||(a29==6))||(a29==7))))&&!(a11==1))))&&!(a7==1))&&(a28==1))&&(a19==5)))&&(a20==1)))){ + a19 = 1; + a11 = 1; + a29 = 5; + a7 = 1; + a14 = 8; + return -1; + } else if(((a14==8)&&(((!(a25==1)&&((a28==1)&&(((a7==1)&&((((((a19==4)&&(a29==5))||(((a29==8)&&(a19==3))||((a19==3)&&(a29==9))))&&(input==6))&&!(a24==1))&&(a0==1)))&&(a20==1))))&&(a22==1))&&!(a11==1)))){ + a24 = 1; + a29 = 7; + a11 = 1; + a0 = 0; + a20 = 0; + a19 = 1; + return 24; + } else if((((!(a24==1)&&((a22==1)&&((a25==1)&&((((a14==8)&&(((input==1)&&(((a19==3)&&(a29==9))||((a19==4)&&(a29==5))))&&(a28==1)))&&(a11==1))&&!(a20==1)))))&&(a0==1))&&(a7==1))){ + a0 = 0; + a25 = 0; + a19 = 2; + a29 = 5; + return 23; + } else if((((a19==5)&&(((a28==1)&&((((!(a11==1)&&((a25==1)&&(((input==4)&&((a29==5)||(a29==6)))&&(a0==1))))&&(a14==9))&&!(a20==1))&&(a7==1)))&&(a24==1)))&&(a22==1))){ + a11 = 1; + a29 = 5; + a14 = 8; + a0 = 0; + a20 = 1; + a19 = 4; + return 23; + } else if((((a25==1)&&(((a28==1)&&((a11==1)&&(((((a14==9)&&(((input==1)&&(a19==3))&&(a29==6)))&&!(a24==1))&&!(a20==1))&&(a22==1))))&&(a7==1)))&&(a0==1))){ + a24 = 1; + a14 = 10; + a29 = 5; + a25 = 0; + a7 = 0; + return 24; + } else if((((a7==1)&&((!(a0==1)&&((!(a20==1)&&(!(a11==1)&&((a24==1)&&((a19==5)&&((((a29==8)||(a29==9))&&(input==6))&&(a28==1))))))&&(a25==1)))&&(a22==1)))&&(a14==9))){ + a11 = 1; + a19 = 1; + a14 = 8; + a0 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if((((((a20==1)&&(((a0==1)&&((a24==1)&&((a28==1)&&(((((a19==4)&&(a29==5))||(((a29==8)&&(a19==3))||((a29==9)&&(a19==3))))&&(input==5))&&(a14==9)))))&&(a11==1)))&&(a22==1))&&(a25==1))&&!(a7==1))){ + a29 = 6; + a24 = 0; + a25 = 0; + a19 = 4; + a14 = 8; + a0 = 0; + return 23; + } else if((((a7==1)&&((a11==1)&&(((((a28==1)&&((!(a0==1)&&(!(a25==1)&&(((a29==8)||(a29==9))&&(input==2))))&&(a19==2)))&&(a24==1))&&(a14==9))&&(a22==1))))&&!(a20==1))){ + a29 = 6; + a0 = 1; + a7 = 0; + return -1; + } else if(((((a22==1)&&((a28==1)&&(((!(a25==1)&&(!(a24==1)&&((a19==2)&&(!(a20==1)&&((input==5)&&((a29==8)||(a29==9)))))))&&(a11==1))&&(a7==1))))&&!(a0==1))&&(a14==9))){ + a20 = 1; + a19 = 1; + a24 = 1; + a14 = 8; + a29 = 5; + a0 = 1; + a25 = 1; + return -1; + } else if((!(a24==1)&&(!(a7==1)&&((!(a11==1)&&((a22==1)&&(!(a25==1)&&((!(a0==1)&&(((input==2)&&(((a19==5)&&(a29==5))||(((a19==4)&&(a29==8))||((a19==4)&&(a29==9)))))&&(a28==1)))&&!(a20==1)))))&&(a14==8))))){ + a29 = 5; + a25 = 1; + a7 = 1; + a24 = 1; + a19 = 1; + a0 = 1; + a20 = 1; + a11 = 1; + return -1; + } else if((!(a20==1)&&((((!(a0==1)&&(!(a24==1)&&((a28==1)&&((a19==4)&&((a14==9)&&(((input==2)&&((a29==7)||(a29==8)))&&(a11==1)))))))&&!(a25==1))&&!(a7==1))&&(a22==1)))){ + a14 = 8; + a20 = 1; + a0 = 1; + a29 = 5; + a7 = 1; + a25 = 1; + a19 = 1; + a24 = 1; + return -1; + } else if((!(a24==1)&&((a22==1)&&((!(a7==1)&&(((a29==7)&&((a0==1)&&(((a25==1)&&(((a20==1)&&(input==6))&&(a19==4)))&&(a14==8))))&&(a11==1)))&&(a28==1))))){ + a7 = 1; + a29 = 5; + a19 = 1; + a24 = 1; + return -1; + } else if((((a11==1)&&((!(a24==1)&&(((((((a14==9)&&(!(a7==1)&&(input==3)))&&(a28==1))&&(a22==1))&&(a19==3))&&!(a20==1))&&(a29==8)))&&!(a0==1)))&&(a25==1))){ + a29 = 9; + a14 = 8; + a25 = 0; + a19 = 5; + a7 = 1; + return 24; + } else if(((a28==1)&&(((a22==1)&&((!(a11==1)&&((((a24==1)&&((a14==9)&&(((((a19==3)&&(a29==8))||((a19==3)&&(a29==9)))||((a29==5)&&(a19==4)))&&(input==4))))&&!(a20==1))&&(a25==1)))&&!(a7==1)))&&(a0==1)))){ + a14 = 8; + a19 = 3; + a29 = 7; + a24 = 0; + return 23; + } else if((((a25==1)&&((a7==1)&&((a14==8)&&(((a20==1)&&((a28==1)&&(((!(a11==1)&&(((a29==7)||(a29==8))&&(input==4)))&&(a0==1))&&(a22==1))))&&(a19==4)))))&&(a24==1))){ + a11 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((((a22==1)&&((a28==1)&&(((((a0==1)&&(((((input==4)&&(a19==1))&&(a11==1))&&(a7==1))&&(a14==9)))&&!(a20==1))&&(a24==1))&&(a29==9))))&&(a25==1))){ + a7 = 0; + a0 = 0; + a11 = 0; + a24 = 0; + a19 = 3; + a29 = 5; + return 21; + } else if(((a20==1)&&((a7==1)&&(((((((a29==8)&&(((a14==9)&&((a19==3)&&(input==3)))&&(a24==1)))&&!(a25==1))&&(a0==1))&&(a28==1))&&(a11==1))&&(a22==1))))){ + a25 = 1; + a29 = 7; + a14 = 8; + a0 = 0; + a19 = 5; + a20 = 0; + a24 = 0; + a7 = 0; + a11 = 0; + return -1; + } else if(((a28==1)&&((a24==1)&&((a20==1)&&(!(a25==1)&&(!(a7==1)&&((((((((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))&&(input==4))&&(a14==10))&&(a0==1))&&(a11==1))&&(a22==1)))))))){ + a29 = 9; + a20 = 0; + a19 = 1; + a0 = 0; + a14 = 8; + a24 = 0; + return -1; + } else if((!(a11==1)&&((a14==9)&&(((a19==5)&&(!(a20==1)&&((a28==1)&&(!(a24==1)&&(!(a7==1)&&((a22==1)&&(((input==2)&&(a25==1))&&(a29==9))))))))&&(a0==1))))){ + a20 = 1; + a19 = 4; + a0 = 0; + a14 = 8; + a29 = 7; + a24 = 1; + return 23; + } else if(((a22==1)&&((a7==1)&&((a11==1)&&((((((a14==9)&&((a25==1)&&((a19==3)&&((input==1)&&!(a20==1)))))&&(a29==9))&&(a0==1))&&(a28==1))&&(a24==1)))))){ + a29 = 8; + a24 = 0; + a11 = 0; + a0 = 0; + a7 = 0; + a19 = 4; + return 24; + } else if((((a19==5)&&((a28==1)&&((((a29==9)&&(((a14==9)&&((a25==1)&&(((a0==1)&&(input==3))&&!(a24==1))))&&(a22==1)))&&!(a20==1))&&!(a11==1))))&&!(a7==1))){ + a0 = 0; + a24 = 1; + a11 = 1; + a14 = 8; + a20 = 1; + a7 = 1; + return 21; + } else if(((a20==1)&&(((a22==1)&&(!(a11==1)&&(!(a7==1)&&(((a24==1)&&(((a0==1)&&((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))&&(input==4)))&&!(a25==1)))&&(a14==8)))))&&(a28==1)))){ + a7 = 1; + a19 = 5; + a0 = 0; + a11 = 1; + a29 = 8; + return 24; + } else if(((((a25==1)&&(((a0==1)&&((a14==8)&&(((a28==1)&&((a11==1)&&(((input==6)&&((a29==5)||(a29==6)))&&!(a24==1))))&&(a22==1))))&&!(a7==1)))&&(a19==5))&&!(a20==1))){ + a7 = 1; + a29 = 5; + a19 = 1; + a24 = 1; + a20 = 1; + return -1; + } else if((((((a14==8)&&(((a7==1)&&(!(a25==1)&&(((a11==1)&&((a24==1)&&((input==3)&&((a29==7)||((a29==5)||(a29==6))))))&&(a20==1))))&&(a22==1)))&&(a19==5))&&(a28==1))&&!(a0==1))){ + a25 = 1; + a29 = 5; + a19 = 1; + a0 = 1; + return -1; + } else if(((a28==1)&&((((a24==1)&&(((((a22==1)&&((!(a0==1)&&((a7==1)&&(input==3)))&&(a19==5)))&&(a20==1))&&(a14==9))&&!(a25==1)))&&!(a11==1))&&(a29==5)))){ + a14 = 8; + a25 = 1; + a20 = 0; + a7 = 0; + a19 = 4; + a11 = 1; + return 21; + } else if(((((a25==1)&&(!(a7==1)&&(!(a20==1)&&((a22==1)&&((a28==1)&&((a14==8)&&((!(a0==1)&&(((a29==8)||(a29==9))&&(input==5)))&&(a19==5))))))))&&(a11==1))&&(a24==1))){ + a25 = 0; + a29 = 6; + a7 = 1; + return -1; + } return calculate_output44(input); + } + + int calculate_output44(int input) { + if(((((a28==1)&&((a22==1)&&(((a19==2)&&((a29==8)&&((!(a20==1)&&(((input==2)&&!(a25==1))&&(a0==1)))&&!(a11==1))))&&!(a7==1))))&&(a24==1))&&(a14==8))){ + a11 = 1; + a14 = 9; + a19 = 5; + a29 = 7; + a25 = 1; + return 24; + } else if((((((a22==1)&&(((!(a0==1)&&(((a14==9)&&(((a19==4)&&(input==1))&&(a7==1)))&&!(a25==1)))&&(a29==6))&&(a28==1)))&&(a11==1))&&!(a24==1))&&(a20==1))){ + a19 = 5; + a7 = 0; + a25 = 1; + a14 = 8; + a29 = 7; + a24 = 1; + return 21; + } else if(((a7==1)&&((a25==1)&&(((a22==1)&&((a19==3)&&(!(a20==1)&&((a24==1)&&((((a11==1)&&((input==6)&&(a28==1)))&&!(a0==1))&&(a29==6))))))&&(a14==9))))){ + a20 = 1; + a14 = 8; + a0 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((a22==1)&&((a19==4)&&(!(a25==1)&&((a20==1)&&(((a7==1)&&(((((a24==1)&&((input==5)&&((a29==7)||(a29==8))))&&(a0==1))&&(a14==8))&&(a28==1)))&&!(a11==1))))))){ + a25 = 1; + a20 = 0; + a7 = 0; + a29 = 7; + a24 = 0; + a19 = 3; + return 23; + } else if((!(a7==1)&&(((a19==2)&&((((a22==1)&&((a28==1)&&((a11==1)&&((a25==1)&&(((input==1)&&((a29==5)||(a29==6)))&&(a0==1))))))&&(a24==1))&&(a14==10)))&&!(a20==1)))){ + a29 = 7; + a14 = 8; + a0 = 0; + a25 = 0; + a19 = 1; + return 21; + } else if(((a20==1)&&(((!(a25==1)&&(((a28==1)&&((a11==1)&&((a19==3)&&((a24==1)&&(((input==2)&&((a29==5)||(a29==6)))&&(a14==10))))))&&(a7==1)))&&(a22==1))&&(a0==1)))){ + a25 = 1; + a14 = 8; + a29 = 5; + a19 = 1; + return -1; + } else if(((a29==5)&&(((a28==1)&&((a20==1)&&((a11==1)&&((((a25==1)&&((a19==2)&&((!(a7==1)&&(input==3))&&(a0==1))))&&(a22==1))&&(a14==9)))))&&!(a24==1)))){ + a20 = 0; + a25 = 0; + a7 = 1; + a24 = 1; + a29 = 8; + return -1; + } else if(((((a24==1)&&((a20==1)&&((((!(a11==1)&&((a28==1)&&((((a19==2)&&(a29==6))||(((a19==1)&&(a29==9))||((a29==5)&&(a19==2))))&&(input==3))))&&(a14==9))&&!(a25==1))&&(a22==1))))&&!(a7==1))&&!(a0==1))){ + a25 = 1; + a11 = 1; + a7 = 1; + a14 = 8; + a19 = 1; + a29 = 9; + return 23; + } else if(((((a14==8)&&((a28==1)&&((!(a20==1)&&((a24==1)&&((a7==1)&&(((((a29==9)&&(a19==4))||((a29==5)&&(a19==5)))&&(input==6))&&(a11==1)))))&&!(a0==1))))&&(a25==1))&&(a22==1))){ + a19 = 1; + a0 = 1; + a14 = 9; + a24 = 0; + a11 = 0; + a29 = 5; + return 21; + } else if((((a7==1)&&((a24==1)&&((a28==1)&&((a19==2)&&((((a29==7)&&((a22==1)&&(((a0==1)&&(input==6))&&(a14==8))))&&!(a20==1))&&!(a11==1))))))&&!(a25==1))){ + a29 = 5; + a19 = 1; + a20 = 1; + a25 = 1; + a11 = 1; + return -1; + } else if(((((a19==2)&&((((!(a20==1)&&((a28==1)&&(!(a0==1)&&(((input==3)&&!(a24==1))&&(a25==1)))))&&(a22==1))&&(a29==5))&&(a14==9)))&&(a11==1))&&(a7==1))){ + a14 = 8; + a29 = 8; + a20 = 1; + return -1; + } else if(((a14==8)&&(!(a11==1)&&((((!(a20==1)&&((a7==1)&&((a22==1)&&(!(a0==1)&&((a19==2)&&((input==3)&&((a29==9)||((a29==7)||(a29==8)))))))))&&(a25==1))&&!(a24==1))&&(a28==1))))){ + a20 = 1; + a11 = 1; + a29 = 9; + a24 = 1; + a19 = 1; + return 21; + } else if((((((a0==1)&&((!(a20==1)&&(!(a7==1)&&(((a11==1)&&((a19==3)&&((input==4)&&(a25==1))))&&(a28==1))))&&(a22==1)))&&(a24==1))&&(a29==7))&&(a14==8))){ + a7 = 1; + a11 = 0; + a29 = 5; + a19 = 4; + return 23; + } else if(((((a0==1)&&(!(a24==1)&&(((!(a20==1)&&((((((a29==6)||(a29==7))&&(input==4))&&(a19==3))&&!(a7==1))&&!(a25==1)))&&(a22==1))&&(a11==1))))&&(a28==1))&&(a14==9))){ + a7 = 1; + a14 = 8; + a29 = 9; + a19 = 2; + a11 = 0; + return 24; + } else if((!(a0==1)&&(((a20==1)&&((!(a11==1)&&(((((((input==5)&&!(a25==1))&&(a7==1))&&(a28==1))&&(a14==9))&&(a22==1))&&(a24==1)))&&(a29==6)))&&(a19==5)))){ + a25 = 1; + a0 = 1; + a19 = 3; + a7 = 0; + return 23; + } else if((((a19==4)&&(((a11==1)&&((((a25==1)&&(((!(a7==1)&&((a28==1)&&(input==3)))&&(a29==6))&&(a14==8)))&&(a20==1))&&(a0==1)))&&(a24==1)))&&(a22==1))){ + a25 = 0; + a29 = 9; + a19 = 3; + return 23; + } else if(((((a14==10)&&((a28==1)&&((a24==1)&&((a22==1)&&((a0==1)&&(!(a20==1)&&((((a19==1)&&(!(a25==1)&&(a29==5)))||(((a19==5)&&((a25==1)&&(a29==8)))||(((a29==9)&&(a25==1))&&(a19==5))))&&(input==5))))))))&&(a11==1))&&!(a7==1))){ + a20 = 1; + a29 = 8; + a14 = 9; + a25 = 1; + a11 = 0; + a19 = 3; + return 24; + } else if(((((((a28==1)&&((a22==1)&&((((a19==2)&&(((input==2)&&(((a29==7)||(a29==8))||(a29==9)))&&(a20==1)))&&(a11==1))&&!(a0==1))))&&!(a24==1))&&!(a25==1))&&(a7==1))&&(a14==9))){ + a25 = 1; + a29 = 5; + a19 = 3; + a14 = 8; + a0 = 1; + a7 = 0; + a20 = 0; + a11 = 0; + return -1; + } else if(((a14==9)&&(!(a7==1)&&(!(a11==1)&&(((!(a20==1)&&((a28==1)&&(!(a24==1)&&((((input==3)&&((a29==8)||((a29==6)||(a29==7))))&&(a22==1))&&!(a25==1)))))&&(a19==3))&&(a0==1)))))){ + a20 = 1; + a29 = 5; + a11 = 1; + a24 = 1; + return -1; + } else if(((a25==1)&&((((((a19==2)&&((a28==1)&&(!(a20==1)&&((((((a29==7)||(a29==8))||(a29==9))&&(input==2))&&!(a24==1))&&(a22==1)))))&&(a14==9))&&!(a11==1))&&!(a7==1))&&(a0==1)))){ + a29 = 6; + a19 = 4; + a24 = 1; + return -1; + } else if((((a19==3)&&((((a28==1)&&(((a0==1)&&((((a24==1)&&(!(a11==1)&&(input==3)))&&(a25==1))&&!(a20==1)))&&(a22==1)))&&(a29==9))&&!(a7==1)))&&(a14==8))){ + a19 = 1; + a25 = 0; + a7 = 1; + a14 = 9; + a11 = 1; + return 23; + } else if((!(a11==1)&&((a29==6)&&((((a28==1)&&((a19==5)&&((((a7==1)&&(((a14==9)&&(input==4))&&(a22==1)))&&(a20==1))&&(a24==1))))&&(a25==1))&&!(a0==1))))){ + a29 = 9; + a19 = 3; + a14 = 8; + a11 = 1; + return 23; + } else if((!(a20==1)&&(!(a0==1)&&((((((a19==2)&&((((a28==1)&&(((a29==8)||(a29==9))&&(input==5)))&&(a24==1))&&(a22==1)))&&(a14==9))&&(a11==1))&&(a7==1))&&!(a25==1))))){ + a7 = 0; + a19 = 4; + a0 = 1; + a24 = 0; + a25 = 1; + a29 = 8; + return -1; + } else if((((a11==1)&&((a28==1)&&((a20==1)&&((a22==1)&&(((a7==1)&&((!(a24==1)&&((a0==1)&&((input==3)&&((a29==6)||(a29==7)))))&&!(a25==1)))&&(a14==8))))))&&(a19==1))){ + a24 = 1; + a29 = 8; + a19 = 2; + a25 = 1; + a0 = 0; + return 24; + } else if(((a28==1)&&(((((!(a0==1)&&(((a14==9)&&((!(a25==1)&&((input==3)&&((a29==8)||(a29==9))))&&(a11==1)))&&(a7==1)))&&(a19==2))&&!(a20==1))&&(a24==1))&&(a22==1)))){ + a7 = 0; + a24 = 0; + a29 = 8; + a14 = 8; + a19 = 4; + return -1; + } else if(((((((a19==4)&&((((a20==1)&&(((((a29==7)||(a29==8))&&(input==6))&&!(a0==1))&&!(a24==1)))&&(a14==9))&&(a7==1)))&&!(a25==1))&&(a22==1))&&(a28==1))&&(a11==1))){ + a29 = 7; + a20 = 0; + a19 = 3; + a24 = 1; + a14 = 8; + return 21; + } else if(((a14==9)&&(((a0==1)&&(((a25==1)&&((a20==1)&&((a7==1)&&(!(a24==1)&&(((((a29==8)||((a29==6)||(a29==7)))&&(input==5))&&(a11==1))&&(a22==1))))))&&(a28==1)))&&(a19==3)))){ + a14 = 8; + a20 = 0; + a24 = 1; + a29 = 6; + a7 = 0; + a0 = 0; + a25 = 0; + return 24; + } else if(((a14==9)&&(((((a28==1)&&(((a7==1)&&(((((((a25==1)&&(a29==9))&&(a19==5))||((!(a25==1)&&(a29==5))&&(a19==1)))||(((a29==6)&&!(a25==1))&&(a19==1)))&&(input==4))&&!(a20==1)))&&!(a0==1)))&&(a11==1))&&(a22==1))&&!(a24==1)))){ + a25 = 1; + a24 = 1; + a19 = 2; + a29 = 7; + a7 = 0; + a14 = 8; + return 21; + } else if((((a14==9)&&((a19==4)&&((a24==1)&&((((a25==1)&&(((a0==1)&&((a7==1)&&((input==5)&&((a29==6)||(a29==7)))))&&(a28==1)))&&(a22==1))&&!(a11==1)))))&&(a20==1))){ + a11 = 1; + a7 = 0; + a29 = 5; + a19 = 3; + return -1; + } else if(((!(a0==1)&&(!(a7==1)&&(!(a20==1)&&(((a28==1)&&((a14==8)&&(((a19==4)&&(!(a25==1)&&((a24==1)&&(input==1))))&&(a22==1))))&&(a29==5)))))&&(a11==1))){ + a7 = 1; + a19 = 1; + return -1; + } else if((!(a20==1)&&(((a14==8)&&(((a28==1)&&((((((!(a11==1)&&(input==4))&&!(a0==1))&&!(a7==1))&&!(a24==1))&&(a29==5))&&(a19==1)))&&(a22==1)))&&(a25==1)))){ + a25 = 0; + a14 = 9; + a19 = 3; + a24 = 1; + a29 = 8; + return 24; + } else if((((!(a7==1)&&((((a19==3)&&(((((a20==1)&&((a14==8)&&(input==3)))&&(a11==1))&&(a29==6))&&(a22==1)))&&(a28==1))&&!(a24==1)))&&(a0==1))&&(a25==1))){ + a19 = 5; + a24 = 1; + a0 = 0; + a20 = 0; + a29 = 7; + return 24; + } else if(((((!(a11==1)&&((((a22==1)&&((a19==2)&&((a29==7)&&((a28==1)&&((a20==1)&&(input==3))))))&&(a0==1))&&(a14==8)))&&(a7==1))&&(a25==1))&&!(a24==1))){ + a19 = 1; + a11 = 1; + a14 = 9; + a25 = 0; + a29 = 6; + return 24; + } else if((((((((a28==1)&&((a19==5)&&(((a22==1)&&(((input==1)&&!(a11==1))&&(a0==1)))&&!(a24==1))))&&(a14==8))&&(a7==1))&&(a20==1))&&!(a25==1))&&(a29==9))){ + a20 = 0; + a29 = 7; + a19 = 2; + a0 = 0; + a11 = 1; + a7 = 0; + a24 = 1; + return 23; + } else if(((a28==1)&&(((a14==9)&&((!(a11==1)&&(((!(a7==1)&&(!(a24==1)&&(((a20==1)&&(input==6))&&(a25==1))))&&(a22==1))&&(a0==1)))&&(a19==2)))&&(a29==7)))){ + a19 = 3; + a29 = 6; + a11 = 1; + a14 = 8; + a0 = 0; + return 23; + } else if(((((a19==2)&&(((((a7==1)&&(!(a25==1)&&((a11==1)&&((a0==1)&&((input==2)&&((a29==6)||(a29==7)))))))&&(a22==1))&&!(a24==1))&&!(a20==1)))&&(a28==1))&&(a14==9))){ + a29 = 5; + a14 = 8; + a7 = 0; + a19 = 4; + a0 = 0; + a25 = 1; + a24 = 1; + return 21; + } else if((!(a25==1)&&(((!(a24==1)&&(((a0==1)&&(((((input==5)&&(((a19==5)&&(a29==6))||(((a29==9)&&(a19==4))||((a29==5)&&(a19==5)))))&&(a14==8))&&!(a7==1))&&(a28==1)))&&(a20==1)))&&(a11==1))&&(a22==1)))){ + a7 = 1; + a24 = 1; + a20 = 0; + a19 = 1; + a29 = 5; + a0 = 0; + return 24; + } else if(((a14==9)&&((((a24==1)&&((((a29==5)&&((a25==1)&&((a19==2)&&((!(a20==1)&&(input==3))&&!(a0==1)))))&&(a22==1))&&!(a7==1)))&&(a28==1))&&!(a11==1)))){ + a20 = 1; + a19 = 4; + a0 = 1; + a7 = 1; + return 24; + } else if(((a28==1)&&((a7==1)&&((a14==8)&&(((a25==1)&&(((a20==1)&&(((a0==1)&&((((a19==3)&&(a29==5))||(((a19==2)&&(a29==8))||((a29==9)&&(a19==2))))&&(input==3)))&&!(a11==1)))&&!(a24==1)))&&(a22==1)))))){ + a24 = 1; + a11 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if(((((a25==1)&&((((((a22==1)&&((a19==3)&&(((a29==5)&&(input==5))&&(a14==8))))&&!(a20==1))&&(a28==1))&&(a11==1))&&!(a24==1)))&&!(a7==1))&&(a0==1))){ + a19 = 2; + a0 = 0; + a29 = 6; + a24 = 1; + return 23; + } else if(((a14==8)&&(!(a24==1)&&(!(a25==1)&&(!(a20==1)&&(((a19==5)&&(((((a22==1)&&((input==3)&&(((a29==6)||(a29==7))||(a29==8))))&&!(a11==1))&&(a28==1))&&!(a7==1)))&&(a0==1))))))){ + a7 = 1; + a29 = 9; + a19 = 2; + return -1; + } else if((((a22==1)&&((a28==1)&&((a14==8)&&(!(a7==1)&&((a19==1)&&((((!(a0==1)&&((input==1)&&(a25==1)))&&(a24==1))&&!(a20==1))&&(a29==9)))))))&&!(a11==1))){ + a24 = 0; + a14 = 9; + a19 = 3; + a11 = 1; + a29 = 8; + return 24; + } else if((!(a24==1)&&((a7==1)&&(((a19==1)&&(((!(a11==1)&&((((((a29==6)||(a29==7))&&(input==3))&&(a22==1))&&(a25==1))&&(a28==1)))&&!(a0==1))&&(a14==8)))&&!(a20==1))))){ + a19 = 5; + a24 = 1; + a29 = 7; + return 23; + } else if((((((a29==6)&&(!(a7==1)&&((a28==1)&&(((a0==1)&&((!(a20==1)&&((input==3)&&!(a11==1)))&&(a24==1)))&&(a14==8)))))&&(a19==5))&&(a22==1))&&!(a25==1))){ + a20 = 1; + a25 = 1; + a11 = 1; + a29 = 5; + a19 = 1; + a7 = 1; + return -1; + } else if(((a22==1)&&(!(a25==1)&&((a19==3)&&((!(a7==1)&&((a28==1)&&((((((a29==9)&&(input==3))&&!(a20==1))&&(a11==1))&&!(a0==1))&&(a14==9))))&&!(a24==1)))))){ + a25 = 1; + a0 = 1; + a7 = 1; + a29 = 5; + a24 = 1; + a19 = 1; + a20 = 1; + a14 = 8; + return -1; + } else if(((a7==1)&&((a11==1)&&(((a19==5)&&(((a22==1)&&((a25==1)&&(!(a24==1)&&((((((a29==6)||(a29==7))||(a29==8))&&(input==2))&&!(a0==1))&&(a14==9)))))&&(a20==1)))&&(a28==1))))){ + a14 = 8; + a24 = 1; + a29 = 9; + return -1; + } else if(((a19==1)&&(!(a11==1)&&((((a14==9)&&((((a28==1)&&((a22==1)&&((a25==1)&&((input==6)&&((a29==9)||((a29==7)||(a29==8)))))))&&(a20==1))&&(a0==1)))&&!(a7==1))&&(a24==1))))){ + a20 = 0; + a29 = 9; + a24 = 0; + return 21; + } else if((((((a7==1)&&(!(a20==1)&&((a25==1)&&(((a28==1)&&(!(a0==1)&&((a22==1)&&((a29==8)&&(input==2)))))&&!(a24==1)))))&&(a19==4))&&(a14==8))&&!(a11==1))){ + a7 = 0; + a29 = 6; + a11 = 1; + a24 = 1; + a19 = 2; + return 21; + } else if(((a11==1)&&((a20==1)&&((!(a25==1)&&((((((((input==3)&&(a29==7))&&(a0==1))&&!(a24==1))&&(a14==9))&&(a22==1))&&(a7==1))&&(a28==1)))&&(a19==4))))){ + a20 = 0; + a14 = 8; + a7 = 0; + a25 = 1; + a19 = 1; + a29 = 8; + a11 = 0; + return 21; + } else if((!(a11==1)&&((a14==8)&&(!(a7==1)&&((a22==1)&&((a25==1)&&((a0==1)&&((!(a20==1)&&(((a19==5)&&((input==4)&&((a29==6)||(a29==7))))&&(a24==1)))&&(a28==1))))))))){ + a0 = 0; + a19 = 2; + a29 = 7; + a11 = 1; + a25 = 0; + return 24; + } else if(((a20==1)&&((a7==1)&&(!(a0==1)&&((((((((a14==9)&&((input==2)&&!(a25==1)))&&(a19==1))&&(a29==9))&&!(a11==1))&&!(a24==1))&&(a28==1))&&(a22==1)))))){ + a25 = 1; + a29 = 5; + a11 = 1; + a19 = 4; + a0 = 1; + a24 = 1; + return -1; + } else if(((((a7==1)&&((!(a11==1)&&((a19==1)&&((a0==1)&&(((a28==1)&&((a14==8)&&((input==4)&&((a29==7)||(a29==8)))))&&!(a24==1)))))&&(a22==1)))&&(a20==1))&&!(a25==1))){ + a29 = 5; + a24 = 1; + a7 = 0; + a11 = 1; + a19 = 3; + return 21; + } else if((((a22==1)&&((a14==8)&&(!(a25==1)&&((a28==1)&&(((a7==1)&&((a19==4)&&((!(a24==1)&&((input==1)&&((a29==7)||(a29==8))))&&(a20==1))))&&(a0==1))))))&&(a11==1))){ + a19 = 1; + a24 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if((!(a20==1)&&((((!(a7==1)&&(((((((input==2)&&((a29==7)||((a29==5)||(a29==6))))&&(a24==1))&&(a28==1))&&!(a0==1))&&(a19==2))&&(a11==1)))&&(a22==1))&&(a25==1))&&(a14==9)))){ + a11 = 0; + a24 = 0; + a14 = 8; + a20 = 1; + a29 = 8; + a19 = 3; + return 23; + } else if(((a11==1)&&((a14==9)&&(((((((!(a20==1)&&(((a7==1)&&(input==2))&&(a25==1)))&&(a19==2))&&(a22==1))&&(a29==5))&&!(a0==1))&&(a24==1))&&(a28==1))))){ + a14 = 8; + a7 = 0; + a29 = 8; + return 21; + } else if(((a24==1)&&(((a25==1)&&((a0==1)&&((a22==1)&&((!(a20==1)&&((a19==2)&&(((((a29==9)||((a29==7)||(a29==8)))&&(input==6))&&(a11==1))&&(a28==1))))&&(a7==1)))))&&(a14==8)))){ + a25 = 0; + a20 = 1; + a19 = 1; + a7 = 0; + a24 = 0; + a29 = 8; + return 21; + } else if(((a22==1)&&(((((a14==9)&&((!(a24==1)&&((a29==7)&&(((a0==1)&&((input==3)&&(a20==1)))&&(a25==1))))&&!(a11==1)))&&(a28==1))&&(a19==2))&&!(a7==1)))){ + a11 = 1; + a24 = 1; + a7 = 1; + a19 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if(((a0==1)&&(((a14==9)&&(((((((((a29==8)&&(input==2))&&(a7==1))&&(a25==1))&&(a28==1))&&(a19==5))&&(a11==1))&&(a22==1))&&(a20==1)))&&(a24==1)))){ + a14 = 8; + a29 = 5; + a19 = 1; + return -1; + } else if(((a24==1)&&((((a11==1)&&((a22==1)&&(!(a20==1)&&((a19==2)&&((a14==9)&&((((input==1)&&((a29==8)||(a29==9)))&&!(a25==1))&&(a7==1)))))))&&(a28==1))&&(a0==1)))){ + a14 = 8; + a7 = 0; + a29 = 5; + a0 = 0; + return 21; + } else if(((a28==1)&&((a11==1)&&(((a0==1)&&(((a22==1)&&((!(a24==1)&&((((input==3)&&(a19==1))&&(a29==7))&&(a14==8)))&&(a7==1)))&&(a20==1)))&&(a25==1))))){ + a11 = 0; + a7 = 0; + a29 = 5; + a25 = 0; + a19 = 5; + return 21; + } else if(((a24==1)&&((((a22==1)&&(!(a7==1)&&((((!(a20==1)&&((((a29==6)||(a29==7))&&(input==6))&&!(a11==1)))&&(a28==1))&&(a25==1))&&(a14==8))))&&(a19==5))&&(a0==1)))){ + a25 = 0; + a7 = 1; + a14 = 9; + a29 = 7; + a11 = 1; + return 23; + } else if((!(a7==1)&&((a28==1)&&((a20==1)&&((a25==1)&&(!(a24==1)&&(((((a19==2)&&((((a29==5)||(a29==6))&&(input==3))&&(a14==8)))&&(a22==1))&&(a11==1))&&!(a0==1)))))))){ + a14 = 9; + a29 = 6; + a25 = 0; + a19 = 4; + a7 = 1; + a24 = 1; + return 23; + } else if((((a28==1)&&((a14==9)&&((a20==1)&&((a7==1)&&(!(a25==1)&&(!(a0==1)&&((a24==1)&&(((input==1)&&(((a29==9)&&(a19==2))||((a29==5)&&(a19==3))))&&(a22==1)))))))))&&(a11==1))){ + a25 = 1; + a19 = 1; + a0 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((a19==4)&&(((a14==8)&&((a11==1)&&(((a28==1)&&(((a24==1)&&(((a25==1)&&((input==1)&&(a22==1)))&&(a0==1)))&&(a29==8)))&&!(a20==1))))&&(a7==1)))){ + a24 = 0; + return 23; + } else if(((a7==1)&&((a28==1)&&(((((a22==1)&&((a11==1)&&(!(a20==1)&&((a14==8)&&(((input==1)&&((a29==7)||((a29==5)||(a29==6))))&&(a25==1))))))&&!(a0==1))&&(a19==3))&&(a24==1))))){ + a20 = 1; + a7 = 0; + a19 = 1; + a25 = 0; + a29 = 5; + return -1; + } else if((!(a7==1)&&((a14==8)&&(!(a25==1)&&(!(a20==1)&&(((a28==1)&&((a0==1)&&((a11==1)&&(!(a24==1)&&((((a29==5)&&(a19==5))||(((a29==8)&&(a19==4))||((a19==4)&&(a29==9))))&&(input==4))))))&&(a22==1))))))){ + a11 = 0; + a19 = 3; + a7 = 1; + a29 = 8; + return 21; + } else if(((((((a25==1)&&(((a7==1)&&(((a14==9)&&((a24==1)&&((a19==5)&&(input==1))))&&(a29==7)))&&(a22==1)))&&!(a11==1))&&(a20==1))&&(a28==1))&&!(a0==1))){ + a7 = 0; + a0 = 1; + a29 = 8; + a19 = 3; + return 24; + } else if(((((((!(a11==1)&&((a29==5)&&((a20==1)&&(!(a25==1)&&((a24==1)&&((input==3)&&(a0==1)))))))&&(a28==1))&&(a7==1))&&(a22==1))&&(a19==1))&&(a14==9))){ + a20 = 0; + a29 = 9; + a11 = 1; + a19 = 5; + return -1; + } else if((((a14==8)&&((a11==1)&&((((((a28==1)&&(!(a7==1)&&(((input==5)&&((a29==8)||(a29==9)))&&(a19==1))))&&(a22==1))&&!(a24==1))&&(a20==1))&&!(a0==1))))&&(a25==1))){ + a29 = 5; + a24 = 1; + a0 = 1; + a7 = 1; + return -1; + } else if(((a22==1)&&((((((((a24==1)&&((input==2)&&((((a25==1)&&(a29==9))&&(a19==5))||((a19==1)&&((a29==5)&&!(a25==1))))))&&(a11==1))&&!(a20==1))&&(a28==1))&&!(a7==1))&&(a14==8))&&(a0==1)))){ + a19 = 1; + a25 = 1; + a7 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if((!(a25==1)&&((((a24==1)&&(!(a11==1)&&((((((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))&&(input==6))&&(a28==1))&&(a0==1))&&(a22==1))&&!(a7==1))))&&(a14==9))&&(a20==1)))){ + a20 = 0; + a7 = 1; + a29 = 8; + a19 = 2; + a14 = 8; + a24 = 0; + return 23; + } else if(((a19==4)&&((!(a11==1)&&(((((a22==1)&&((a7==1)&&((a25==1)&&((a28==1)&&(((a29==5)||(a29==6))&&(input==4))))))&&(a0==1))&&(a14==9))&&!(a20==1)))&&(a24==1)))){ + a29 = 9; + a19 = 2; + a11 = 1; + return 24; + } else if(((((a14==9)&&(((a28==1)&&((a22==1)&&((((((input==4)&&(a19==5))&&(a11==1))&&!(a0==1))&&!(a24==1))&&(a25==1))))&&!(a20==1)))&&(a7==1))&&(a29==8))){ + a0 = 1; + a29 = 5; + a14 = 8; + a19 = 1; + a20 = 1; + a24 = 1; + return -1; + } else if((!(a0==1)&&(!(a25==1)&&((a28==1)&&((a29==5)&&((a22==1)&&((((((a14==8)&&((input==3)&&!(a11==1)))&&!(a24==1))&&!(a20==1))&&(a19==3))&&(a7==1)))))))){ + a25 = 1; + a11 = 1; + a24 = 1; + a20 = 1; + a0 = 1; + a19 = 1; + return -1; + } else if(((((a20==1)&&((((!(a25==1)&&((((((a29==7)||(a29==8))&&(input==2))&&(a19==3))&&!(a7==1))&&(a14==8)))&&!(a0==1))&&(a22==1))&&(a24==1)))&&!(a11==1))&&(a28==1))){ + a0 = 1; + a29 = 5; + a25 = 1; + a19 = 4; + a14 = 9; + a7 = 1; + return 23; + } else if(((a28==1)&&((!(a25==1)&&(((((a24==1)&&((!(a11==1)&&((input==6)&&(((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))))&&(a0==1)))&&(a14==9))&&(a20==1))&&(a22==1)))&&(a7==1)))){ + a20 = 0; + a19 = 1; + a25 = 1; + a29 = 5; + return 23; + } else if((((a29==8)&&((a19==4)&&(((((a22==1)&&(((a14==8)&&(!(a0==1)&&((input==3)&&(a25==1))))&&!(a20==1)))&&!(a24==1))&&!(a11==1))&&(a28==1))))&&(a7==1))){ + a11 = 1; + a29 = 6; + a19 = 1; + a25 = 0; + return -1; + } else if((((a22==1)&&((a29==8)&&(((a14==8)&&((!(a20==1)&&(!(a0==1)&&(((a19==5)&&((input==3)&&!(a24==1)))&&(a28==1))))&&(a25==1)))&&!(a11==1))))&&!(a7==1))){ + a29 = 6; + a20 = 1; + a24 = 1; + a7 = 1; + a19 = 4; + a25 = 0; + return 24; + } else if((!(a24==1)&&((!(a11==1)&&((a22==1)&&((((((a20==1)&&((a0==1)&&((input==2)&&((a29==6)||(a29==7)))))&&!(a25==1))&&(a19==3))&&!(a7==1))&&(a14==8))))&&(a28==1)))){ + a25 = 1; + a11 = 1; + a29 = 5; + a19 = 1; + a7 = 1; + a24 = 1; + return -1; + } else if((((a25==1)&&((a29==5)&&((((a19==4)&&((a22==1)&&(((a14==8)&&(((input==6)&&(a24==1))&&(a28==1)))&&(a0==1))))&&(a7==1))&&!(a20==1))))&&!(a11==1))){ + a29 = 9; + a0 = 0; + a20 = 1; + a11 = 1; + return 24; + } else if(((a7==1)&&(((((!(a20==1)&&(((a19==2)&&((((input==6)&&(a24==1))&&(a29==5))&&(a22==1)))&&!(a11==1)))&&(a28==1))&&!(a0==1))&&!(a25==1))&&(a14==8)))){ + a14 = 9; + a24 = 0; + a29 = 9; + a19 = 4; + a11 = 1; + return 21; + } else if(((a28==1)&&(((a7==1)&&((!(a11==1)&&(((a20==1)&&(((a25==1)&&(((((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))||((a19==3)&&(a29==6)))&&(input==5)))&&(a24==1)))&&(a22==1)))&&(a0==1)))&&(a14==8)))){ + a11 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((((a20==1)&&((a0==1)&&((a14==9)&&(((a28==1)&&((a22==1)&&((((input==3)&&(((a29==7)||(a29==8))||(a29==9)))&&!(a25==1))&&!(a24==1))))&&(a7==1)))))&&!(a11==1))&&(a19==1))){ + a25 = 1; + a14 = 8; + a11 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if((!(a20==1)&&((((a7==1)&&((!(a11==1)&&((a0==1)&&((a25==1)&&((a28==1)&&((((a29==7)||(a29==8))&&(input==3))&&(a22==1))))))&&(a14==8)))&&(a19==2))&&(a24==1)))){ + a7 = 0; + a24 = 0; + a0 = 0; + a19 = 5; + a29 = 9; + return 21; + } else if((((a28==1)&&(((((a19==4)&&((a24==1)&&((!(a25==1)&&((!(a11==1)&&(input==5))&&!(a0==1)))&&(a29==8))))&&(a20==1))&&(a7==1))&&(a22==1)))&&(a14==9))){ + a11 = 1; + a0 = 1; + a25 = 1; + a19 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((a20==1)&&(!(a7==1)&&((a0==1)&&((((a19==5)&&((((a28==1)&&(((input==6)&&!(a25==1))&&(a24==1)))&&(a22==1))&&!(a11==1)))&&(a14==9))&&(a29==8)))))){ + a14 = 8; + a20 = 0; + a25 = 1; + a0 = 0; + a29 = 6; + a19 = 4; + a24 = 0; + return 24; + } else if(((!(a24==1)&&((!(a0==1)&&((!(a20==1)&&(!(a7==1)&&((a22==1)&&(((a25==1)&&((input==4)&&!(a11==1)))&&(a14==8)))))&&(a19==5)))&&(a28==1)))&&(a29==5))){ + a24 = 1; + a29 = 6; + a11 = 1; + a19 = 2; + a20 = 1; + return 23; + } else if(((a22==1)&&(((a28==1)&&((((a0==1)&&(!(a7==1)&&((a24==1)&&((((a19==1)&&((a29==5)&&!(a25==1)))||(((a19==5)&&((a25==1)&&(a29==8)))||((a19==5)&&((a29==9)&&(a25==1)))))&&(input==4)))))&&!(a20==1))&&(a11==1)))&&(a14==10)))){ + a14 = 9; + a19 = 5; + a25 = 0; + a29 = 5; + a24 = 0; + return 24; + } else if(((((((!(a24==1)&&((((a19==5)&&(((input==5)&&((a29==5)||(a29==6)))&&(a0==1)))&&(a11==1))&&(a22==1)))&&!(a7==1))&&(a14==8))&&!(a20==1))&&(a25==1))&&(a28==1))){ + a19 = 3; + a24 = 1; + a29 = 8; + a0 = 0; + return 23; + } else if((((a25==1)&&((((a14==8)&&(((((a28==1)&&(!(a20==1)&&(((a29==6)||(a29==7))&&(input==3))))&&(a0==1))&&(a19==4))&&(a22==1)))&&(a24==1))&&(a11==1)))&&!(a7==1))){ + a11 = 0; + a25 = 0; + a29 = 6; + a7 = 1; + return 24; + } else if(((a28==1)&&(((a24==1)&&((a7==1)&&((a14==8)&&((!(a11==1)&&((!(a20==1)&&(((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))||((a19==4)&&(a29==6)))&&(input==2)))&&(a22==1)))&&!(a25==1)))))&&(a0==1)))){ + a25 = 1; + a20 = 1; + a14 = 9; + a29 = 9; + a11 = 1; + a19 = 2; + a7 = 0; + return 24; + } else if((((((a11==1)&&((!(a20==1)&&((((a25==1)&&((a28==1)&&(((a29==8)||(a29==9))&&(input==1))))&&(a22==1))&&(a14==8)))&&!(a0==1)))&&!(a24==1))&&!(a7==1))&&(a19==3))){ + a24 = 1; + a20 = 1; + a29 = 6; + a19 = 5; + return 21; + } else if((((a0==1)&&((!(a11==1)&&(!(a24==1)&&((a7==1)&&((a19==5)&&(!(a20==1)&&((a28==1)&&((a14==8)&&((((a29==7)||(a29==8))||(a29==9))&&(input==2)))))))))&&!(a25==1)))&&(a22==1))){ + a24 = 1; + a29 = 9; + a19 = 1; + a14 = 9; + return 23; + } else if(((a19==5)&&((((!(a25==1)&&((a29==7)&&(((a20==1)&&(!(a11==1)&&((a28==1)&&((a22==1)&&(input==2)))))&&(a0==1))))&&(a14==9))&&!(a24==1))&&!(a7==1)))){ + a24 = 1; + a11 = 1; + a14 = 8; + a29 = 5; + a7 = 1; + a19 = 1; + a25 = 1; + return -1; + } else if(((!(a25==1)&&((a11==1)&&(((a28==1)&&((((a7==1)&&(!(a24==1)&&((input==5)&&(((a29==5)&&(a19==5))||(((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))))))&&(a22==1))&&(a14==8)))&&!(a20==1))))&&(a0==1))){ + a19 = 4; + a0 = 0; + a25 = 1; + a11 = 0; + a20 = 1; + a29 = 5; + a24 = 1; + return 24; + } else if(((!(a0==1)&&(((a7==1)&&((((!(a11==1)&&((((((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))||((a19==3)&&(a29==5)))&&(input==3))&&(a22==1)))&&(a20==1))&&(a25==1))&&(a24==1)))&&(a28==1)))&&(a14==8))){ + a7 = 0; + a19 = 3; + a29 = 5; + a20 = 0; + a11 = 1; + return -1; + } else if((!(a7==1)&&((a14==8)&&(!(a0==1)&&((a19==4)&&(((!(a11==1)&&(!(a24==1)&&(((a25==1)&&(((a29==6)||(a29==7))&&(input==4)))&&(a28==1))))&&(a20==1))&&(a22==1))))))){ + a24 = 1; + a19 = 3; + a25 = 0; + a29 = 7; + a14 = 9; + return 24; + } else if(((a28==1)&&((((a7==1)&&((((a14==8)&&((a0==1)&&(((input==1)&&(((a29==9)&&(a19==4))||((a19==5)&&(a29==5))))&&(a20==1))))&&(a22==1))&&(a24==1)))&&!(a11==1))&&(a25==1)))){ + a19 = 1; + a29 = 5; + a11 = 1; + return -1; + } else if(((a11==1)&&((!(a7==1)&&(!(a20==1)&&((a19==1)&&(!(a24==1)&&(!(a25==1)&&((!(a0==1)&&(((input==3)&&((a29==6)||(a29==7)))&&(a14==8)))&&(a28==1)))))))&&(a22==1)))){ + a29 = 9; + a0 = 1; + a11 = 0; + a19 = 3; + return 23; + } else if((((a19==1)&&(((a25==1)&&((a22==1)&&(((!(a7==1)&&((!(a11==1)&&(!(a0==1)&&(input==1)))&&(a29==6)))&&(a14==9))&&(a28==1))))&&!(a20==1)))&&(a24==1))){ + a20 = 1; + a14 = 8; + a11 = 1; + a29 = 9; + return 23; + } else if((((a0==1)&&((!(a24==1)&&(!(a25==1)&&((a11==1)&&(((!(a20==1)&&((a14==9)&&((input==6)&&!(a7==1))))&&(a29==5))&&(a28==1)))))&&(a19==5)))&&(a22==1))){ + a19 = 2; + a24 = 1; + a11 = 0; + return 24; + } else if(((a14==9)&&((((a25==1)&&((a11==1)&&(((a19==1)&&((!(a24==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==3))&&(a22==1)))&&!(a20==1)))&&(a28==1))))&&!(a7==1))&&(a0==1)))){ + a14 = 8; + a29 = 5; + a20 = 1; + a24 = 1; + a7 = 1; + return -1; + } else if(((((a22==1)&&((((a19==5)&&(((a7==1)&&((((input==5)&&!(a20==1))&&!(a25==1))&&(a29==5)))&&(a28==1)))&&(a24==1))&&(a11==1)))&&(a0==1))&&(a14==8))){ + a20 = 1; + a11 = 0; + a29 = 8; + a19 = 2; + return 24; + } else if(((a22==1)&&(((!(a20==1)&&(!(a0==1)&&((a28==1)&&(!(a11==1)&&((((input==1)&&(((a19==1)&&(a29==9))||((a29==5)&&(a19==2))))&&!(a7==1))&&!(a25==1))))))&&(a14==8))&&(a24==1)))){ + a0 = 1; + a19 = 4; + a24 = 0; + a25 = 1; + a29 = 5; + a14 = 9; + a20 = 1; + a11 = 1; + return 21; + } else if((!(a25==1)&&(((a14==8)&&((a22==1)&&((a24==1)&&((((!(a11==1)&&(!(a0==1)&&((input==2)&&((a29==6)||(a29==7)))))&&(a19==3))&&!(a20==1))&&(a28==1)))))&&(a7==1)))){ + a29 = 8; + a7 = 0; + a11 = 1; + a25 = 1; + a19 = 1; + return 23; + } else if((((a22==1)&&((a25==1)&&((a14==8)&&((((((a24==1)&&((a28==1)&&((input==4)&&(a19==2))))&&(a29==7))&&!(a11==1))&&(a7==1))&&!(a0==1)))))&&!(a20==1))){ + a11 = 1; + a29 = 5; + a19 = 1; + a20 = 1; + a0 = 1; + return -1; + } else if((((a22==1)&&((a25==1)&&(((a19==4)&&((a14==9)&&((a11==1)&&(!(a20==1)&&((((input==4)&&(a29==8))&&!(a7==1))&&(a0==1))))))&&(a28==1))))&&!(a24==1))){ + a20 = 1; + a29 = 5; + a7 = 1; + a14 = 8; + a19 = 1; + a24 = 1; + return -1; + } else if(((!(a11==1)&&((a20==1)&&((a25==1)&&(!(a7==1)&&(!(a0==1)&&(((a19==1)&&((a14==9)&&(((input==3)&&((a29==7)||((a29==5)||(a29==6))))&&(a22==1))))&&(a24==1)))))))&&(a28==1))){ + a0 = 1; + a29 = 5; + a7 = 1; + a14 = 8; + a11 = 1; + return -1; + } else if((!(a0==1)&&((((((a28==1)&&(((((((a29==8)||((a29==6)||(a29==7)))&&(input==5))&&(a22==1))&&(a25==1))&&!(a24==1))&&(a19==5)))&&(a14==9))&&(a20==1))&&(a11==1))&&(a7==1)))){ + a29 = 5; + a24 = 1; + a19 = 4; + a14 = 8; + a25 = 0; + a7 = 0; + a20 = 0; + return -1; + } else if(((!(a7==1)&&((!(a25==1)&&((a29==7)&&((a19==2)&&((a14==8)&&(((a28==1)&&(((a22==1)&&(input==6))&&(a20==1)))&&!(a24==1))))))&&(a0==1)))&&!(a11==1))){ + a20 = 0; + a29 = 5; + return 24; + } else if((((a7==1)&&(((a28==1)&&(((a29==7)&&((a11==1)&&((((a0==1)&&((a24==1)&&(input==5)))&&(a20==1))&&(a14==9))))&&(a22==1)))&&!(a25==1)))&&(a19==3))){ + a29 = 8; + a0 = 0; + a25 = 1; + a24 = 0; + a7 = 0; + a19 = 2; + a14 = 8; + return 23; + } else if((((((a22==1)&&((!(a24==1)&&((a28==1)&&(!(a20==1)&&(((a11==1)&&((input==5)&&(((a29==5)||(a29==6))||(a29==7))))&&(a25==1)))))&&(a7==1)))&&(a14==8))&&!(a0==1))&&(a19==4))){ + a14 = 9; + a24 = 1; + a19 = 5; + a29 = 9; + return 21; + } else if(((((a22==1)&&((a24==1)&&(((!(a0==1)&&((a11==1)&&((a28==1)&&(((((a19==4)&&(a29==8))||((a19==4)&&(a29==9)))||((a29==5)&&(a19==5)))&&(input==4)))))&&(a14==9))&&!(a25==1))))&&(a20==1))&&(a7==1))){ + a14 = 8; + a25 = 1; + a29 = 5; + a0 = 1; + a19 = 1; + return -1; + } else if(((a0==1)&&((a19==2)&&((!(a11==1)&&((a7==1)&&((a22==1)&&((a25==1)&&((a14==9)&&(((a24==1)&&(((a29==8)||(a29==9))&&(input==2)))&&(a20==1)))))))&&(a28==1))))){ + a29 = 9; + a0 = 0; + a11 = 1; + a14 = 8; + return -1; + } else if((((((a24==1)&&((a14==9)&&(((((!(a25==1)&&((input==2)&&((a29==8)||(a29==9))))&&!(a20==1))&&(a28==1))&&(a11==1))&&(a7==1))))&&(a19==1))&&(a22==1))&&(a0==1))){ + a25 = 1; + a29 = 5; + a14 = 8; + a20 = 1; + return -1; + } else if(((a19==5)&&(((a22==1)&&((a24==1)&&((a0==1)&&(!(a25==1)&&(((a28==1)&&(!(a20==1)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==1))&&(a11==1))))&&(a14==8))))))&&!(a7==1)))){ + a20 = 1; + a29 = 8; + a11 = 0; + a24 = 0; + a25 = 1; + return 23; + } else if(((((((((((a22==1)&&((((a29==5)&&(a19==5))||(((a19==4)&&(a29==8))||((a19==4)&&(a29==9))))&&(input==6)))&&(a11==1))&&(a25==1))&&(a28==1))&&(a24==1))&&(a0==1))&&(a14==8))&&!(a20==1))&&!(a7==1))){ + a7 = 1; + a11 = 0; + a25 = 0; + a29 = 8; + a19 = 5; + return 23; + } else if((((!(a20==1)&&(!(a24==1)&&(((((!(a0==1)&&((a28==1)&&(((a29==6)||(a29==7))&&(input==2))))&&(a22==1))&&(a7==1))&&(a11==1))&&(a14==9))))&&!(a25==1))&&(a19==5))){ + a20 = 1; + a0 = 1; + a25 = 1; + a29 = 5; + a14 = 8; + a24 = 1; + a19 = 1; + return -1; + } else if(((a20==1)&&((a28==1)&&((a25==1)&&(!(a0==1)&&((a11==1)&&(((((((a19==4)&&(input==4))&&(a24==1))&&(a7==1))&&(a22==1))&&(a29==5))&&(a14==8)))))))){ + a29 = 8; + a7 = 0; + a25 = 0; + a11 = 0; + a20 = 0; + a19 = 1; + a24 = 0; + a0 = 1; + return -1; + } else if((((a28==1)&&((a19==1)&&((((((((a7==1)&&((input==4)&&(((a29==6)||(a29==7))||(a29==8))))&&!(a24==1))&&!(a25==1))&&(a20==1))&&!(a11==1))&&!(a0==1))&&(a14==8))))&&(a22==1))){ + a29 = 5; + a19 = 3; + a24 = 1; + a14 = 9; + return 23; + } else if(((a7==1)&&(!(a25==1)&&((((a19==2)&&(((a11==1)&&(((a20==1)&&((a22==1)&&((input==4)&&!(a24==1))))&&(a29==5)))&&(a14==9)))&&(a28==1))&&!(a0==1))))){ + a19 = 4; + a29 = 7; + a0 = 1; + a20 = 0; + return 23; + } else if(((a0==1)&&(((a22==1)&&(((((((a20==1)&&((input==4)&&(((a29==6)&&(a19==4))||(((a19==3)&&(a29==9))||((a29==5)&&(a19==4))))))&&(a25==1))&&(a14==8))&&!(a24==1))&&(a7==1))&&!(a11==1)))&&(a28==1)))){ + a19 = 3; + a29 = 5; + a14 = 9; + a11 = 1; + a25 = 0; + return 24; + } else if(((a28==1)&&((a14==9)&&(!(a11==1)&&((a0==1)&&((a20==1)&&((((!(a7==1)&&(((((a19==3)&&(a29==8))||((a19==3)&&(a29==9)))||((a29==5)&&(a19==4)))&&(input==2)))&&(a24==1))&&(a22==1))&&(a25==1)))))))){ + a11 = 1; + a19 = 1; + a14 = 8; + a29 = 5; + a7 = 1; + return -1; + } else if(((a11==1)&&(!(a25==1)&&(((((a0==1)&&((a29==7)&&((((a14==8)&&((input==1)&&(a19==4)))&&(a24==1))&&!(a7==1))))&&!(a20==1))&&(a22==1))&&(a28==1))))){ + a29 = 8; + a25 = 1; + a11 = 0; + a20 = 1; + a19 = 3; + a24 = 0; + return 23; + } else if(((((((a22==1)&&(((a28==1)&&(((a19==3)&&(((input==1)&&(((a29==7)||(a29==8))||(a29==9)))&&(a14==9)))&&!(a25==1)))&&!(a24==1)))&&!(a11==1))&&!(a0==1))&&(a20==1))&&(a7==1))){ + a24 = 1; + a20 = 0; + a11 = 1; + a0 = 1; + a25 = 1; + a7 = 0; + a29 = 7; + return 24; + } else if(((!(a7==1)&&((((a14==8)&&(!(a11==1)&&(!(a20==1)&&((((a22==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==2)))&&!(a24==1))&&(a25==1)))))&&(a0==1))&&(a28==1)))&&(a19==4))){ + a29 = 7; + return -1; + } else if((!(a7==1)&&((a14==8)&&(!(a25==1)&&((((((((a0==1)&&((input==6)&&(a24==1)))&&!(a11==1))&&(a29==9))&&(a28==1))&&(a19==1))&&(a20==1))&&(a22==1)))))){ + a25 = 1; + a24 = 0; + a20 = 0; + a0 = 0; + a19 = 4; + a29 = 5; + a7 = 1; + return 23; + } else if(((a22==1)&&((a28==1)&&((a24==1)&&((!(a20==1)&&((a11==1)&&((a0==1)&&(!(a7==1)&&(((((a19==4)&&(a29==5))||(((a29==8)&&(a19==3))||((a29==9)&&(a19==3))))&&(input==6))&&(a25==1))))))&&(a14==8)))))){ + a19 = 1; + a7 = 1; + a25 = 0; + a11 = 0; + a29 = 7; + return 21; + } else if(((((a19==3)&&((a29==6)&&((a14==8)&&((a7==1)&&((!(a24==1)&&((((input==5)&&!(a25==1))&&!(a0==1))&&(a28==1)))&&!(a11==1))))))&&!(a20==1))&&(a22==1))){ + a24 = 1; + a7 = 0; + a11 = 1; + return 24; + } else if((((((((a0==1)&&(!(a7==1)&&((a19==1)&&((a14==9)&&((((a29==5)||(a29==6))&&(input==5))&&!(a11==1))))))&&(a24==1))&&(a22==1))&&(a20==1))&&(a25==1))&&(a28==1))){ + a14 = 8; + a19 = 4; + a0 = 0; + a11 = 1; + a20 = 0; + a25 = 0; + a29 = 6; + return 23; + } else if((((a28==1)&&((a14==8)&&((((((a22==1)&&(!(a25==1)&&(((a29==6)&&(input==4))&&!(a0==1))))&&(a11==1))&&(a19==4))&&!(a24==1))&&(a7==1))))&&!(a20==1))){ + a7 = 0; + a11 = 0; + a25 = 1; + a0 = 1; + a29 = 9; + a19 = 1; + return 24; + } else if((((a24==1)&&(!(a20==1)&&((a7==1)&&((((((((input==3)&&(a28==1))&&(a0==1))&&(a19==3))&&!(a11==1))&&(a14==9))&&(a22==1))&&(a25==1)))))&&(a29==9))){ + a29 = 5; + a11 = 1; + a20 = 1; + a14 = 8; + a19 = 1; + return -1; + } else if((((a24==1)&&((a14==8)&&(!(a0==1)&&((a20==1)&&((a22==1)&&((a11==1)&&(((a25==1)&&(((((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))||((a29==5)&&(a19==3)))&&(input==2)))&&(a7==1))))))))&&(a28==1))){ + a20 = 0; + a24 = 0; + a0 = 1; + a29 = 7; + a19 = 2; + a11 = 0; + a7 = 0; + return -1; + } else if(((a7==1)&&(!(a24==1)&&((a22==1)&&((a25==1)&&(((a0==1)&&((a20==1)&&((!(a11==1)&&((a28==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==6))))&&(a14==8))))&&(a19==3))))))){ + a7 = 0; + a0 = 0; + a24 = 1; + a25 = 0; + a19 = 2; + a11 = 1; + a29 = 5; + a20 = 0; + return 21; + } else if(((a7==1)&&((a28==1)&&((a22==1)&&(!(a20==1)&&((a24==1)&&((!(a25==1)&&(((a0==1)&&((((a29==8)||(a29==9))&&(input==4))&&(a14==8)))&&(a11==1)))&&(a19==4)))))))){ + a20 = 1; + a19 = 5; + a25 = 1; + a11 = 0; + a29 = 9; + return 24; + } else if((((a22==1)&&((a14==9)&&((((a11==1)&&(!(a25==1)&&((!(a20==1)&&((a19==3)&&(!(a24==1)&&(input==4))))&&(a28==1))))&&(a29==5))&&(a7==1))))&&(a0==1))){ + a20 = 1; + a29 = 9; + a7 = 0; + a19 = 2; + return 21; + } else if(((a19==4)&&((!(a7==1)&&(((((((((input==1)&&((a29==8)||(a29==9)))&&!(a0==1))&&(a22==1))&&!(a11==1))&&(a14==9))&&(a20==1))&&!(a24==1))&&(a28==1)))&&!(a25==1)))){ + a19 = 2; + a14 = 8; + a25 = 1; + a11 = 1; + a29 = 8; + a24 = 1; + return -1; + } else if(((a28==1)&&(!(a25==1)&&(((((a7==1)&&((a19==4)&&((a0==1)&&((a24==1)&&(!(a20==1)&&((a14==9)&&(input==1)))))))&&!(a11==1))&&(a29==9))&&(a22==1))))){ + a7 = 0; + a11 = 1; + a19 = 1; + a29 = 8; + a24 = 0; + a0 = 0; + a14 = 8; + a20 = 1; + return 23; + } else if((((a28==1)&&((a24==1)&&((!(a20==1)&&((a29==7)&&((a19==3)&&((a25==1)&&(!(a7==1)&&((a0==1)&&((a11==1)&&(input==2))))))))&&(a14==9))))&&(a22==1))){ + a0 = 0; + a7 = 1; + a19 = 2; + a25 = 0; + a29 = 8; + a14 = 8; + return -1; + } else if((((((!(a11==1)&&((a14==9)&&(!(a20==1)&&((((a19==5)&&((a29==9)&&(!(a25==1)&&(a7==1))))||((a19==1)&&((!(a7==1)&&(a25==1))&&(a29==5))))&&(input==1)))))&&(a22==1))&&(a28==1))&&(a24==1))&&!(a0==1))){ + a29 = 5; + a0 = 1; + a20 = 1; + a25 = 1; + a19 = 1; + a7 = 1; + a14 = 8; + a11 = 1; + return -1; + } else if(((a28==1)&&((!(a20==1)&&(!(a11==1)&&((a14==8)&&(!(a0==1)&&((a24==1)&&((input==4)&&((((!(a25==1)&&(a7==1))&&(a29==9))&&(a19==5))||((a19==1)&&((a29==5)&&(!(a7==1)&&(a25==1)))))))))))&&(a22==1)))){ + a0 = 1; + a20 = 1; + a7 = 1; + a25 = 1; + a19 = 1; + a29 = 5; + a11 = 1; + return -1; + } else if(((a22==1)&&((a14==8)&&(((!(a7==1)&&((!(a0==1)&&(((a28==1)&&((a25==1)&&((input==4)&&(a29==5))))&&(a19==1)))&&!(a24==1)))&&(a20==1))&&!(a11==1))))){ + a0 = 1; + a7 = 1; + a14 = 9; + a19 = 4; + a11 = 1; + a29 = 7; + return 21; + } else if((((a20==1)&&(!(a24==1)&&((a22==1)&&(!(a0==1)&&((((a14==8)&&((a28==1)&&(((((a19==1)&&(a29==9))||((a19==2)&&(a29==5)))||((a19==2)&&(a29==6)))&&(input==4))))&&!(a25==1))&&!(a11==1))))))&&(a7==1))){ + a29 = 8; + a25 = 1; + a7 = 0; + a0 = 1; + a20 = 0; + a19 = 1; + return 24; + } else if((!(a11==1)&&(((a22==1)&&(((a14==8)&&((a24==1)&&(!(a20==1)&&((((a0==1)&&((input==6)&&((a29==7)||((a29==5)||(a29==6)))))&&(a7==1))&&(a19==3)))))&&(a28==1)))&&(a25==1)))){ + a29 = 9; + a0 = 0; + a24 = 0; + a25 = 0; + a19 = 2; + a7 = 0; + return 23; + } else if(((a24==1)&&((a7==1)&&((!(a20==1)&&((a28==1)&&(!(a0==1)&&(!(a11==1)&&((a25==1)&&(((a22==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==2)))&&(a19==3)))))))&&(a14==9))))){ + a7 = 0; + a20 = 1; + a24 = 0; + a0 = 1; + a29 = 8; + return -1; + } else if((((a28==1)&&((a7==1)&&((!(a24==1)&&(!(a0==1)&&(((a14==9)&&(((a11==1)&&((input==5)&&(a29==5)))&&(a25==1)))&&!(a20==1))))&&(a19==2))))&&(a22==1))){ + a14 = 8; + a19 = 3; + a7 = 0; + a29 = 6; + a24 = 1; + a25 = 0; + return 23; + } else if(((a28==1)&&(((a19==3)&&(((a29==9)&&(!(a7==1)&&(((a25==1)&&((a20==1)&&(!(a0==1)&&((input==3)&&!(a24==1)))))&&(a14==8))))&&!(a11==1)))&&(a22==1)))){ + a0 = 1; + a14 = 9; + a11 = 1; + a7 = 1; + a29 = 5; + a19 = 4; + a24 = 1; + return 23; + } else if((((a20==1)&&((a22==1)&&((((!(a0==1)&&((((((a29==9)||((a29==7)||(a29==8)))&&(input==6))&&(a19==5))&&(a28==1))&&!(a25==1)))&&(a14==9))&&(a11==1))&&!(a7==1))))&&(a24==1))){ + a19 = 2; + a11 = 0; + a14 = 8; + a25 = 1; + a29 = 5; + return -1; + } else if((!(a11==1)&&(((((!(a25==1)&&(!(a20==1)&&((a0==1)&&(((((a29==6)||(a29==7))&&(input==5))&&(a19==5))&&(a28==1)))))&&(a22==1))&&(a14==9))&&(a24==1))&&!(a7==1)))){ + a29 = 9; + a25 = 1; + a7 = 1; + a19 = 1; + return 21; + } else if(((a14==8)&&((((!(a11==1)&&(!(a24==1)&&(((a29==8)&&((!(a7==1)&&((a19==3)&&(input==3)))&&!(a0==1)))&&(a28==1))))&&!(a20==1))&&(a25==1))&&(a22==1)))){ + a7 = 1; + a29 = 6; + a19 = 2; + a20 = 1; + a14 = 9; + return 21; + } else if((!(a11==1)&&(((a19==1)&&(!(a0==1)&&(!(a20==1)&&((((a14==8)&&((a7==1)&&(((input==4)&&((a29==9)||((a29==7)||(a29==8))))&&(a28==1))))&&!(a25==1))&&(a22==1)))))&&!(a24==1)))){ + a29 = 5; + a19 = 2; + a24 = 1; + a14 = 9; + a7 = 0; + a25 = 1; + return 23; + } else if((((a25==1)&&(!(a11==1)&&((a22==1)&&(((a28==1)&&(((a20==1)&&((a19==2)&&(!(a0==1)&&((input==3)&&((a29==7)||(a29==8))))))&&(a7==1)))&&(a14==9)))))&&(a24==1))){ + a19 = 5; + a14 = 8; + a20 = 0; + a7 = 0; + a24 = 0; + a29 = 9; + return -1; + } else if(((a22==1)&&((a14==8)&&(((a20==1)&&(((!(a0==1)&&((a24==1)&&(((((a25==1)&&(a29==9))&&(a19==5))||((a19==1)&&(!(a25==1)&&(a29==5))))&&(input==2))))&&(a11==1))&&(a7==1)))&&(a28==1))))){ + a29 = 5; + a25 = 1; + a0 = 1; + a19 = 1; + return -1; + } else if(((a7==1)&&(((a14==9)&&(((((((a28==1)&&(((input==5)&&(((a29==5)||(a29==6))||(a29==7)))&&(a22==1)))&&(a19==2))&&(a25==1))&&(a0==1))&&!(a24==1))&&!(a11==1)))&&(a20==1)))){ + a11 = 1; + a25 = 0; + a29 = 6; + a19 = 5; + a20 = 0; + a24 = 1; + return 21; + } else if(((!(a7==1)&&((a20==1)&&((a14==8)&&(((a19==2)&&((a29==6)&&((a25==1)&&((a28==1)&&((!(a0==1)&&(input==5))&&(a24==1))))))&&(a11==1)))))&&(a22==1))){ + a20 = 0; + a7 = 1; + a25 = 0; + a19 = 1; + return 23; + } else if((((a24==1)&&((a0==1)&&((a25==1)&&(((a28==1)&&(((a29==8)&&(((!(a7==1)&&(input==6))&&(a19==1))&&(a22==1)))&&(a11==1)))&&(a14==9)))))&&(a20==1))){ + a29 = 5; + a7 = 1; + a19 = 4; + a11 = 0; + a20 = 0; + a25 = 0; + a24 = 0; + return 21; + } else if((!(a11==1)&&((a0==1)&&((a14==9)&&((a7==1)&&(!(a20==1)&&((((a19==1)&&((((((a29==5)||(a29==6))||(a29==7))&&(input==2))&&!(a25==1))&&(a22==1)))&&(a28==1))&&(a24==1)))))))){ + a29 = 5; + return 24; + } else if((((a28==1)&&(((((a19==5)&&((a29==9)&&(!(a25==1)&&((!(a7==1)&&(((a0==1)&&!(a11==1))&&!(a20==1)))&&!(a24==1)))))||((a19==1)&&((a29==5)&&((((a7==1)&&(((a11==1)&&!(a0==1))&&(a20==1)))&&(a24==1))&&(a25==1)))))&&(input==4))&&(a22==1)))&&(a14==8))){ + a7 = 0; + a11 = 0; + a24 = 0; + a29 = 9; + a0 = 1; + a20 = 0; + a19 = 1; + a25 = 1; + return -1; + } else if((((a11==1)&&(!(a20==1)&&((a22==1)&&((((a0==1)&&((!(a24==1)&&(((a28==1)&&(input==4))&&(a14==9)))&&(a25==1)))&&(a19==5))&&!(a7==1)))))&&(a29==7))){ + a7 = 1; + a14 = 8; + a29 = 5; + a20 = 1; + a19 = 1; + a24 = 1; + return -1; + } else if(((a0==1)&&(((a14==8)&&((a29==5)&&(!(a20==1)&&((a11==1)&&(!(a24==1)&&(!(a7==1)&&((a28==1)&&((a19==4)&&((input==5)&&(a22==1))))))))))&&!(a25==1)))){ + a24 = 1; + a19 = 1; + a7 = 1; + a25 = 1; + a20 = 1; + return -1; + } else if(((a14==9)&&((a20==1)&&(((a28==1)&&(((a22==1)&&((a0==1)&&((((input==2)&&(((a19==2)&&(a29==6))||(((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))))&&(a11==1))&&(a7==1))))&&(a24==1)))&&!(a25==1))))){ + a29 = 8; + a14 = 8; + a7 = 0; + a0 = 0; + a19 = 3; + a20 = 0; + return 21; + } else if((!(a24==1)&&(!(a25==1)&&((!(a11==1)&&((!(a0==1)&&((((((((a19==3)&&(a29==8))||((a29==9)&&(a19==3)))||((a19==4)&&(a29==5)))&&(input==1))&&(a20==1))&&(a22==1))&&(a28==1)))&&(a14==8)))&&(a7==1))))){ + a7 = 0; + a24 = 1; + a11 = 1; + a19 = 2; + a25 = 1; + a29 = 6; + return -1; + } else if(((a7==1)&&((a24==1)&&(((a20==1)&&((!(a11==1)&&((a0==1)&&(((a28==1)&&((a14==9)&&((a19==4)&&(input==5))))&&(a25==1))))&&(a22==1)))&&(a29==5))))){ + a11 = 1; + a19 = 1; + a14 = 8; + return -1; + } else if(((a22==1)&&(((a25==1)&&((a19==1)&&(!(a0==1)&&((((a11==1)&&((a7==1)&&(((input==2)&&((a29==7)||(a29==8)))&&(a14==8))))&&(a28==1))&&!(a24==1)))))&&(a20==1)))){ + a11 = 0; + a29 = 9; + a0 = 1; + a25 = 0; + a20 = 0; + a19 = 4; + return 23; + } else if(((((((a11==1)&&((a22==1)&&((a14==9)&&((a20==1)&&((((input==5)&&((a29==8)||(a29==9)))&&(a28==1))&&(a25==1))))))&&(a19==2))&&(a0==1))&&(a7==1))&&(a24==1))){ + a14 = 8; + a19 = 1; + a29 = 5; + return -1; + } else if((((a22==1)&&((a24==1)&&(!(a11==1)&&(!(a20==1)&&(((a28==1)&&((((a29==8)&&((a19==2)&&(input==2)))&&!(a7==1))&&!(a0==1)))&&(a14==8))))))&&(a25==1))){ + a29 = 5; + a19 = 4; + a11 = 1; + a20 = 1; + a24 = 0; + a25 = 0; + return -1; + } else if(((a19==1)&&(((((a28==1)&&(((!(a11==1)&&(((((a29==8)||((a29==6)||(a29==7)))&&(input==2))&&(a24==1))&&(a7==1)))&&(a20==1))&&(a0==1)))&&(a22==1))&&(a14==9))&&(a25==1)))){ + a14 = 8; + a7 = 0; + a20 = 0; + a11 = 1; + a0 = 0; + a29 = 8; + a19 = 2; + return 21; + } else if(((((!(a25==1)&&(!(a24==1)&&((a11==1)&&((a0==1)&&((a7==1)&&(((((a29==8)||(a29==9))&&(input==1))&&(a20==1))&&(a28==1)))))))&&(a22==1))&&(a19==4))&&(a14==9))){ + a0 = 0; + a24 = 1; + a14 = 8; + a25 = 1; + a29 = 9; + return 21; + } else if((((((((a14==8)&&(((((a25==1)&&((input==6)&&(a0==1)))&&(a19==5))&&!(a20==1))&&!(a11==1)))&&(a28==1))&&!(a24==1))&&(a7==1))&&(a22==1))&&(a29==6))){ + a0 = 0; + a29 = 5; + a25 = 0; + a19 = 3; + a24 = 1; + a20 = 1; + a11 = 1; + return 21; + } else if(((((a7==1)&&(!(a11==1)&&((!(a20==1)&&((a24==1)&&(((((a14==8)&&(input==1))&&(a29==7))&&(a0==1))&&(a28==1))))&&(a19==2))))&&!(a25==1))&&(a22==1))){ + a20 = 1; + a19 = 1; + a25 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if(((!(a25==1)&&((a14==9)&&((a20==1)&&(((a11==1)&&(!(a0==1)&&((a19==4)&&((a28==1)&&(((input==3)&&((a29==5)||(a29==6)))&&(a24==1))))))&&(a22==1)))))&&!(a7==1))){ + a29 = 5; + return 23; + } else if(((((a25==1)&&((a28==1)&&(((((a24==1)&&(((((a29==8)||((a29==6)||(a29==7)))&&(input==4))&&(a22==1))&&!(a7==1)))&&!(a0==1))&&(a14==9))&&(a19==2))))&&(a20==1))&&(a11==1))){ + a14 = 8; + a19 = 1; + a29 = 5; + return 23; + } else if(((a24==1)&&((a22==1)&&(((a28==1)&&(!(a25==1)&&(((a7==1)&&((((((a29==8)||(a29==9))&&(input==4))&&(a20==1))&&(a0==1))&&!(a11==1)))&&(a19==3))))&&(a14==9))))){ + a7 = 0; + a19 = 1; + a29 = 9; + a11 = 1; + a25 = 1; + return 24; + } else if((!(a0==1)&&((a11==1)&&((((!(a25==1)&&(((a28==1)&&(((!(a7==1)&&(input==4))&&(a29==8))&&(a14==8)))&&(a22==1)))&&(a19==1))&&(a20==1))&&(a24==1))))){ + a11 = 0; + a0 = 1; + a20 = 0; + a24 = 0; + return -1; + } else if((((((a19==3)&&(!(a20==1)&&((a28==1)&&(!(a0==1)&&(((a11==1)&&(!(a24==1)&&((input==2)&&(a29==9))))&&(a22==1))))))&&!(a25==1))&&(a14==9))&&!(a7==1))){ + a11 = 0; + a29 = 6; + a7 = 1; + a14 = 8; + return -1; + } else if(((((a14==10)&&((((a11==1)&&((a28==1)&&(((a7==1)&&((input==2)&&(((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))))&&(a24==1))))&&(a22==1))&&(a25==1)))&&!(a20==1))&&(a0==1))){ + a19 = 4; + a7 = 0; + a29 = 5; + a25 = 0; + a14 = 9; + return 23; + } else if(((a14==9)&&(!(a20==1)&&(((((((((input==1)&&(((a19==3)&&(a29==6))||(((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))))&&!(a25==1))&&(a22==1))&&(a11==1))&&!(a0==1))&&!(a7==1))&&(a28==1))&&(a24==1))))){ + a14 = 8; + a19 = 5; + a29 = 7; + return 21; + } else if(((a20==1)&&(((a19==5)&&((a22==1)&&(!(a11==1)&&(((a24==1)&&((a29==5)&&(((a0==1)&&((a7==1)&&(input==6)))&&(a25==1))))&&(a28==1)))))&&(a14==9)))){ + a19 = 2; + a7 = 0; + a25 = 0; + a0 = 0; + a14 = 8; + a20 = 0; + return 21; + } else if((((a22==1)&&(((a19==5)&&(((!(a7==1)&&(((a28==1)&&((a20==1)&&(((a29==5)||(a29==6))&&(input==1))))&&!(a24==1)))&&(a14==9))&&!(a0==1)))&&!(a25==1)))&&(a11==1))){ + a14 = 8; + a29 = 7; + a25 = 1; + a7 = 1; + a19 = 3; + a24 = 1; + return 21; + } else if(((!(a25==1)&&((((a19==4)&&(!(a0==1)&&(((a22==1)&&(((a20==1)&&((input==2)&&((a29==7)||(a29==8))))&&(a14==9)))&&(a24==1))))&&!(a7==1))&&(a28==1)))&&!(a11==1))){ + a20 = 0; + a29 = 8; + a7 = 1; + a19 = 2; + a11 = 1; + a14 = 8; + return 21; + } else if(((a19==1)&&(!(a11==1)&&(((a14==8)&&(((a0==1)&&(((((((a29==7)||(a29==8))&&(input==4))&&(a7==1))&&(a25==1))&&(a20==1))&&(a28==1)))&&(a22==1)))&&(a24==1))))){ + a11 = 1; + a0 = 0; + a29 = 9; + return 24; + } else if(((a22==1)&&(((a0==1)&&((!(a20==1)&&(((((a14==9)&&((((a19==2)&&(a29==9))||((a19==3)&&(a29==5)))&&(input==3)))&&(a11==1))&&!(a7==1))&&(a28==1)))&&(a24==1)))&&!(a25==1)))){ + a20 = 1; + a29 = 7; + a7 = 1; + a19 = 5; + a14 = 10; + return 23; + } else if((((((a19==3)&&(!(a11==1)&&(!(a25==1)&&(((a20==1)&&((a22==1)&&((a24==1)&&(((a29==6)||(a29==7))&&(input==2)))))&&(a14==8)))))&&(a0==1))&&(a28==1))&&(a7==1))){ + a25 = 1; + a0 = 0; + a20 = 0; + a29 = 8; + a11 = 1; + return 24; + } else if(((a29==9)&&((((a28==1)&&((a19==3)&&((((a14==9)&&(((!(a20==1)&&(input==5))&&(a0==1))&&(a22==1)))&&(a11==1))&&(a25==1))))&&!(a24==1))&&!(a7==1)))){ + a14 = 8; + a11 = 0; + a29 = 5; + a0 = 0; + a19 = 4; + return 23; + } else if((((((((a14==10)&&((a0==1)&&(((a11==1)&&((a25==1)&&((input==6)&&(((a29==7)||(a29==8))||(a29==9)))))&&!(a7==1))))&&(a24==1))&&(a19==1))&&(a22==1))&&!(a20==1))&&(a28==1))){ + a0 = 0; + a29 = 7; + a25 = 0; + a14 = 8; + return 23; + } else if((((a22==1)&&((((a14==9)&&((!(a25==1)&&((((((a29==5)&&(a19==3))||(((a19==2)&&(a29==8))||((a19==2)&&(a29==9))))&&(input==1))&&!(a7==1))&&(a0==1)))&&!(a11==1)))&&(a24==1))&&!(a20==1)))&&(a28==1))){ + a19 = 4; + a7 = 1; + a0 = 0; + a14 = 8; + a11 = 1; + a29 = 6; + return 23; + } else if(((a22==1)&&(((a7==1)&&((a11==1)&&(!(a0==1)&&((!(a25==1)&&((a14==9)&&((a24==1)&&(((a28==1)&&(input==2))&&(a29==5)))))&&(a20==1)))))&&(a19==4)))){ + a19 = 1; + a29 = 7; + a24 = 0; + a0 = 1; + a20 = 0; + a11 = 0; + a25 = 1; + return -1; + } else if(((a14==8)&&(((!(a0==1)&&((a19==3)&&(((((a28==1)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==2))&&(a25==1)))&&(a22==1))&&(a7==1))&&!(a11==1))))&&!(a24==1))&&!(a20==1)))){ + a14 = 9; + a24 = 1; + a25 = 0; + a29 = 7; + return 21; + } else if(((a25==1)&&(!(a7==1)&&(((((a19==3)&&((a14==9)&&((a28==1)&&(!(a11==1)&&(!(a24==1)&&((a22==1)&&(input==4)))))))&&(a20==1))&&(a0==1))&&(a29==8))))){ + a19 = 1; + a29 = 6; + a0 = 0; + a14 = 8; + a20 = 0; + a25 = 0; + return 21; + } else if(((a24==1)&&(((((a19==5)&&((a22==1)&&((((((input==1)&&((a29==6)||(a29==7)))&&(a28==1))&&(a14==9))&&!(a25==1))&&!(a11==1))))&&!(a7==1))&&!(a20==1))&&(a0==1)))){ + a25 = 1; + a7 = 1; + a0 = 0; + a19 = 3; + a29 = 6; + a14 = 8; + a24 = 0; + return 24; + } else if(((a28==1)&&((((a20==1)&&(!(a25==1)&&((a22==1)&&((a0==1)&&((a11==1)&&((a19==5)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==2))&&(a7==1))))))))&&(a14==10))&&(a24==1)))){ + a14 = 8; + a29 = 5; + a25 = 1; + a19 = 1; + return -1; + } else if((((((((a28==1)&&(!(a24==1)&&((((a11==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==3)))&&(a7==1))&&(a0==1))))&&(a19==3))&&(a25==1))&&!(a20==1))&&(a14==9))&&(a22==1))){ + a29 = 5; + a19 = 1; + a14 = 8; + a24 = 1; + a20 = 1; + return -1; + } else if(((((!(a24==1)&&(!(a0==1)&&((!(a11==1)&&(((((a19==3)&&(input==6))&&!(a7==1))&&(a22==1))&&(a29==9)))&&!(a25==1))))&&(a28==1))&&(a14==8))&&(a20==1))){ + a14 = 9; + a25 = 1; + a29 = 5; + a7 = 1; + a24 = 1; + a20 = 0; + return 24; + } else if(((!(a24==1)&&(((((a14==8)&&((!(a7==1)&&((a28==1)&&(((a29==5)&&(input==3))&&!(a25==1))))&&(a19==4)))&&!(a11==1))&&(a20==1))&&!(a0==1)))&&(a22==1))){ + a29 = 7; + a14 = 9; + a7 = 1; + a24 = 1; + a25 = 1; + a20 = 0; + return 24; + } else if(((a20==1)&&((a7==1)&&((a28==1)&&((((((a25==1)&&(((a14==9)&&((input==4)&&(a29==5)))&&(a24==1)))&&(a19==4))&&(a0==1))&&!(a11==1))&&(a22==1)))))){ + a14 = 8; + a19 = 1; + a29 = 7; + a11 = 1; + a25 = 0; + a0 = 0; + return 21; + } else if((((a24==1)&&((a19==4)&&(((a14==9)&&(((a22==1)&&((((((a29==7)||(a29==8))&&(input==6))&&(a11==1))&&(a28==1))&&!(a7==1)))&&!(a25==1)))&&(a20==1))))&&!(a0==1))){ + a0 = 1; + a19 = 2; + a29 = 7; + a7 = 1; + return 24; + } else if(((!(a7==1)&&(((a20==1)&&((a28==1)&&((((((a24==1)&&((a14==9)&&(input==3)))&&(a25==1))&&(a11==1))&&(a22==1))&&(a29==5))))&&(a19==3)))&&!(a0==1))){ + a29 = 8; + a25 = 0; + a11 = 0; + a20 = 0; + a24 = 0; + a0 = 1; + a19 = 5; + return -1; + } else if((((a25==1)&&(((a11==1)&&((((a19==3)&&((a7==1)&&((a0==1)&&(((input==4)&&((a29==6)||(a29==7)))&&(a24==1)))))&&(a14==10))&&(a28==1)))&&(a22==1)))&&!(a20==1))){ + a19 = 1; + a14 = 8; + a20 = 1; + a29 = 5; + return -1; + } else if((((a22==1)&&(((!(a11==1)&&(((a14==9)&&((!(a0==1)&&(((input==6)&&((a29==8)||(a29==9)))&&(a20==1)))&&(a19==4)))&&!(a25==1)))&&(a28==1))&&!(a24==1)))&&!(a7==1))){ + a24 = 1; + a11 = 1; + a25 = 1; + a20 = 0; + a29 = 8; + a19 = 5; + return -1; + } else if(((a22==1)&&((a19==5)&&(((a11==1)&&((!(a25==1)&&((a0==1)&&(!(a24==1)&&(!(a7==1)&&((a14==9)&&(((a29==6)||(a29==7))&&(input==2)))))))&&(a28==1)))&&!(a20==1))))){ + a29 = 7; + a19 = 1; + a11 = 0; + a14 = 8; + a25 = 1; + a0 = 0; + return 23; + } else if(((!(a11==1)&&(((a28==1)&&((a19==2)&&((((!(a0==1)&&((((a29==8)||(a29==9))&&(input==5))&&!(a24==1)))&&(a14==8))&&(a25==1))&&!(a7==1))))&&!(a20==1)))&&(a22==1))){ + a19 = 1; + a29 = 5; + a0 = 1; + a24 = 1; + a11 = 1; + a7 = 1; + a20 = 1; + return -1; + } else if((!(a7==1)&&((((a28==1)&&(((a19==5)&&(!(a20==1)&&((!(a25==1)&&((a22==1)&&(((a29==5)||(a29==6))&&(input==4))))&&!(a11==1))))&&!(a0==1)))&&!(a24==1))&&(a14==9)))){ + a19 = 1; + a0 = 1; + a25 = 1; + a11 = 1; + a7 = 1; + a24 = 1; + a29 = 5; + a14 = 8; + a20 = 1; + return -1; + } else if((((a19==1)&&(((a11==1)&&((a24==1)&&((((((a25==1)&&((input==1)&&((a29==9)||((a29==7)||(a29==8)))))&&!(a20==1))&&(a22==1))&&(a7==1))&&(a14==9))))&&!(a0==1)))&&(a28==1))){ + a14 = 8; + a29 = 9; + a11 = 0; + a24 = 0; + a7 = 0; + a19 = 3; + return 24; + } else if(((((!(a11==1)&&((a24==1)&&(((a28==1)&&(((a22==1)&&((((a29==6)||(a29==7))&&(input==4))&&!(a25==1)))&&(a20==1)))&&!(a7==1))))&&(a0==1))&&(a19==1))&&(a14==9))){ + a25 = 1; + a11 = 1; + a14 = 8; + a7 = 1; + a29 = 5; + return -1; + } else if((!(a11==1)&&((a28==1)&&((a7==1)&&(((a19==5)&&((a29==7)&&((!(a24==1)&&((a22==1)&&((a14==9)&&((input==5)&&(a0==1)))))&&(a25==1))))&&!(a20==1)))))){ + a29 = 5; + a20 = 1; + a19 = 1; + a24 = 1; + a14 = 8; + a11 = 1; + return -1; + } else if(((a28==1)&&(((((a22==1)&&(((((a19==1)&&(((a25==1)&&((a7==1)&&!(a20==1)))&&(a29==5)))||(((a19==5)&&((a29==8)&&((!(a7==1)&&(a20==1))&&!(a25==1))))||(((!(a25==1)&&((a20==1)&&!(a7==1)))&&(a29==9))&&(a19==5))))&&(input==1))&&!(a11==1)))&&!(a0==1))&&!(a24==1))&&(a14==9)))){ + a11 = 1; + a0 = 1; + a14 = 8; + a7 = 1; + a24 = 1; + a19 = 1; + a29 = 5; + a20 = 1; + a25 = 1; + return -1; + } else if((!(a7==1)&&(!(a20==1)&&(!(a25==1)&&((((a22==1)&&(!(a0==1)&&(((a19==1)&&(((input==5)&&(a24==1))&&(a28==1)))&&(a14==8))))&&(a29==9))&&(a11==1)))))){ + a25 = 1; + a0 = 1; + a20 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if(((a20==1)&&((a28==1)&&((((a19==5)&&(!(a11==1)&&((a24==1)&&((((((a29==6)||(a29==7))&&(input==1))&&!(a7==1))&&(a25==1))&&!(a0==1)))))&&(a22==1))&&(a14==9))))){ + a7 = 1; + a25 = 0; + a0 = 1; + a29 = 7; + a11 = 1; + a19 = 3; + return 21; + } else if((((((!(a25==1)&&((a11==1)&&(((a28==1)&&(((a14==8)&&((input==1)&&(a24==1)))&&(a19==3)))&&(a22==1))))&&(a29==5))&&!(a20==1))&&!(a7==1))&&!(a0==1))){ + a25 = 1; + a19 = 4; + a20 = 1; + a7 = 1; + return -1; + } else if((!(a11==1)&&((((((a29==5)&&(((a22==1)&&((((input==3)&&(a20==1))&&(a7==1))&&(a0==1)))&&(a28==1)))&&(a19==4))&&(a24==1))&&(a25==1))&&(a14==9)))){ + a19 = 1; + a20 = 0; + a29 = 8; + a11 = 1; + a7 = 0; + return 24; + } else if((!(a20==1)&&(((a19==1)&&(((a11==1)&&(((a14==10)&&(((((input==2)&&((a29==7)||(a29==8)))&&(a22==1))&&(a28==1))&&(a24==1)))&&(a7==1)))&&(a0==1)))&&(a25==1)))){ + a11 = 0; + a29 = 5; + a7 = 0; + a14 = 9; + a19 = 4; + a20 = 1; + return 23; + } else if((((a22==1)&&((a19==3)&&((a24==1)&&((((a28==1)&&((((a14==8)&&(((a29==8)||(a29==9))&&(input==1)))&&!(a20==1))&&(a25==1)))&&(a7==1))&&(a0==1)))))&&!(a11==1))){ + a11 = 1; + a29 = 9; + a0 = 0; + a20 = 1; + a19 = 5; + a7 = 0; + return 24; + } else if((!(a11==1)&&((a25==1)&&((a14==9)&&((a19==5)&&(((a0==1)&&(((a20==1)&&(!(a24==1)&&(((((a29==7)||(a29==8))||(a29==9))&&(input==5))&&!(a7==1))))&&(a22==1)))&&(a28==1))))))){ + a25 = 0; + a7 = 1; + a14 = 8; + a19 = 4; + a29 = 6; + a0 = 0; + return 21; + } else if(((a19==2)&&((a29==8)&&((a7==1)&&((a14==8)&&((((!(a0==1)&&((a25==1)&&((!(a24==1)&&(input==2))&&(a11==1))))&&(a28==1))&&(a22==1))&&!(a20==1))))))){ + a0 = 1; + a19 = 1; + a29 = 5; + a24 = 1; + a20 = 1; + return -1; + } else if(((a20==1)&&(((a22==1)&&(((a11==1)&&(((((((a25==1)&&(input==5))&&(a29==6))&&(a28==1))&&!(a24==1))&&(a0==1))&&(a7==1)))&&(a19==5)))&&(a14==10)))){ + a14 = 9; + a19 = 3; + a20 = 0; + return 24; + } else if(((((((a22==1)&&((a28==1)&&(!(a24==1)&&(((a11==1)&&((a7==1)&&(((a29==6)||(a29==7))&&(input==6))))&&(a20==1)))))&&(a25==1))&&(a0==1))&&(a19==1))&&(a14==10))){ + a0 = 0; + a14 = 8; + a25 = 0; + a24 = 1; + a29 = 9; + a11 = 0; + a19 = 2; + a7 = 0; + a20 = 0; + return -1; + } else if((!(a20==1)&&((!(a11==1)&&(((a28==1)&&(((!(a7==1)&&((((input==4)&&((a29==8)||(a29==9)))&&(a0==1))&&(a22==1)))&&(a14==8))&&(a25==1)))&&!(a24==1)))&&(a19==2)))){ + a19 = 1; + a29 = 7; + a0 = 0; + a7 = 1; + a11 = 1; + a25 = 0; + a24 = 1; + return 24; + } else if(((a25==1)&&((a19==2)&&((((((a14==9)&&((((((a29==5)||(a29==6))&&(input==5))&&!(a11==1))&&!(a20==1))&&(a22==1)))&&(a28==1))&&(a24==1))&&(a7==1))&&!(a0==1))))){ + a14 = 8; + a25 = 0; + a11 = 1; + a29 = 6; + return 23; + } else if((((a11==1)&&((a28==1)&&(((((a19==5)&&((a22==1)&&((a7==1)&&(!(a25==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==2))))))&&(a20==1))&&(a24==1))&&!(a0==1))))&&(a14==9))){ + a25 = 1; + a19 = 1; + a14 = 8; + a29 = 9; + return 23; + } else if(((a11==1)&&(((!(a25==1)&&((!(a20==1)&&((((a22==1)&&(((a29==6)&&(input==2))&&(a28==1)))&&(a7==1))&&!(a0==1)))&&(a24==1)))&&(a19==4))&&(a14==9)))){ + a19 = 1; + a0 = 1; + a14 = 8; + a20 = 1; + a29 = 5; + a25 = 1; + return -1; + } return calculate_output45(input); + } + + int calculate_output45(int input) { + if(((a22==1)&&((!(a0==1)&&(((((a11==1)&&(!(a7==1)&&((a25==1)&&((a20==1)&&((a29==5)&&(input==3))))))&&(a14==9))&&(a19==1))&&(a24==1)))&&(a28==1)))){ + a29 = 7; + a7 = 1; + a19 = 2; + a24 = 0; + a14 = 8; + return 23; + } else if((((((((a11==1)&&((a22==1)&&(((!(a25==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==1)))&&(a14==9))&&(a28==1))))&&(a19==5))&&!(a7==1))&&!(a0==1))&&(a20==1))&&!(a24==1))){ + a0 = 1; + a20 = 0; + a29 = 6; + a24 = 1; + a19 = 3; + return 23; + } else if((((a22==1)&&((((((a24==1)&&((a11==1)&&((((((a29==6)||(a29==7))||(a29==8))&&(input==3))&&(a20==1))&&!(a7==1))))&&(a19==5))&&(a25==1))&&(a14==8))&&(a28==1)))&&(a0==1))){ + a20 = 0; + a19 = 4; + a7 = 1; + a29 = 5; + return 24; + } else if(((((a14==9)&&((((a19==5)&&(!(a11==1)&&((((((a29==6)||(a29==7))&&(input==2))&&(a22==1))&&(a7==1))&&(a25==1))))&&!(a20==1))&&(a28==1)))&&!(a0==1))&&(a24==1))){ + a29 = 7; + a20 = 1; + a11 = 1; + a14 = 8; + a7 = 0; + a19 = 4; + return 24; + } else if(((a22==1)&&((a7==1)&&((a28==1)&&(((a11==1)&&((a25==1)&&(((((a0==1)&&(((a29==7)||(a29==8))&&(input==3)))&&(a20==1))&&(a19==4))&&(a14==9))))&&(a24==1)))))){ + a19 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if(((a14==8)&&(((a22==1)&&(((a19==2)&&((((a20==1)&&((a29==6)&&(((input==6)&&!(a7==1))&&(a24==1))))&&(a11==1))&&!(a0==1)))&&(a28==1)))&&(a25==1)))){ + a24 = 0; + a20 = 0; + a19 = 4; + a29 = 7; + a11 = 0; + a0 = 1; + a25 = 0; + return -1; + } else if(((a22==1)&&((!(a11==1)&&((a28==1)&&((a7==1)&&((((((!(a24==1)&&(input==3))&&(a14==9))&&!(a25==1))&&(a29==6))&&!(a0==1))&&(a19==4)))))&&(a20==1)))){ + a24 = 1; + a29 = 5; + a0 = 1; + a25 = 1; + a11 = 1; + a19 = 1; + a14 = 8; + return -1; + } else if(((a28==1)&&((a25==1)&&(((a19==3)&&(!(a20==1)&&(!(a0==1)&&((a22==1)&&(!(a11==1)&&((a29==8)&&((a14==8)&&((input==4)&&(a24==1)))))))))&&(a7==1))))){ + a29 = 6; + a11 = 1; + a7 = 0; + return -1; + } else if(((a29==6)&&((a19==4)&&((a25==1)&&((((!(a7==1)&&(((((input==4)&&(a24==1))&&(a14==10))&&(a22==1))&&(a0==1)))&&(a28==1))&&(a11==1))&&(a20==1)))))){ + a29 = 5; + a14 = 8; + a7 = 1; + a19 = 1; + return -1; + } else if((!(a25==1)&&(((a7==1)&&(((a11==1)&&(!(a20==1)&&(((a19==5)&&(!(a24==1)&&((a0==1)&&((input==3)&&((a29==6)||(a29==7))))))&&(a14==9))))&&(a28==1)))&&(a22==1)))){ + a24 = 1; + a19 = 1; + a14 = 8; + a25 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if(((a29==9)&&(!(a20==1)&&((((((a7==1)&&((a28==1)&&((((input==5)&&(a11==1))&&(a24==1))&&(a0==1))))&&(a25==1))&&(a14==10))&&(a19==5))&&(a22==1))))){ + a29 = 5; + a20 = 1; + a14 = 8; + a19 = 1; + return -1; + } else if(((a14==9)&&((a24==1)&&(((a22==1)&&((a19==2)&&((((((a28==1)&&((input==5)&&((a29==6)||(a29==7))))&&(a0==1))&&(a25==1))&&(a11==1))&&!(a20==1))))&&!(a7==1))))){ + a25 = 0; + a14 = 8; + a24 = 0; + a11 = 0; + a29 = 8; + a7 = 1; + return 23; + } else if((!(a0==1)&&((((((a22==1)&&((a20==1)&&(!(a24==1)&&((((a11==1)&&(input==3))&&(a29==5))&&(a19==2)))))&&(a14==9))&&(a7==1))&&(a25==1))&&(a28==1)))){ + a0 = 1; + a19 = 4; + return -1; + } else if((((((a24==1)&&(((((a22==1)&&(((!(a0==1)&&(input==1))&&(a7==1))&&(a14==8)))&&!(a25==1))&&(a29==8))&&(a28==1)))&&!(a11==1))&&(a19==1))&&!(a20==1))){ + a19 = 3; + a20 = 1; + a29 = 7; + a11 = 1; + return -1; + } else if(((a14==9)&&((a28==1)&&((a19==5)&&((a11==1)&&(((((!(a25==1)&&((a7==1)&&(((a29==8)||(a29==9))&&(input==4))))&&(a22==1))&&!(a24==1))&&(a0==1))&&(a20==1))))))){ + a29 = 7; + a0 = 0; + a19 = 3; + a14 = 8; + a24 = 1; + a20 = 0; + return 23; + } else if((((a19==2)&&(((!(a24==1)&&((a14==8)&&((a25==1)&&(((((input==1)&&((a29==8)||(a29==9)))&&(a7==1))&&(a20==1))&&!(a0==1)))))&&(a28==1))&&(a11==1)))&&(a22==1))){ + a14 = 9; + a7 = 0; + a25 = 0; + a19 = 5; + a11 = 0; + a0 = 1; + a20 = 0; + a29 = 8; + return 23; + } else if((!(a25==1)&&((a0==1)&&(!(a20==1)&&((((!(a7==1)&&((a14==10)&&((a28==1)&&((input==5)&&((((a19==1)&&(a29==8))||((a19==1)&&(a29==9)))||((a29==5)&&(a19==2)))))))&&(a11==1))&&(a24==1))&&(a22==1)))))){ + a29 = 6; + a24 = 0; + a11 = 0; + a14 = 8; + a19 = 1; + return 24; + } else if((((a28==1)&&((((a19==2)&&((a14==9)&&((a0==1)&&((a22==1)&&(!(a7==1)&&((a25==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==5))))))))&&!(a11==1))&&(a20==1)))&&(a24==1))){ + a11 = 1; + a7 = 1; + a14 = 8; + a29 = 5; + a19 = 1; + return -1; + } else if(((a11==1)&&((a20==1)&&((!(a24==1)&&((a19==4)&&(((a14==9)&&(!(a25==1)&&(!(a7==1)&&((((a29==8)||(a29==9))&&(input==5))&&!(a0==1)))))&&(a22==1))))&&(a28==1))))){ + a29 = 5; + a14 = 8; + a24 = 1; + a19 = 1; + a0 = 1; + a25 = 1; + a7 = 1; + return -1; + } else if(((((a28==1)&&((a22==1)&&((a24==1)&&((a7==1)&&(((((((a29==6)||(a29==7))&&(input==6))&&(a0==1))&&(a20==1))&&(a19==4))&&!(a25==1))))))&&(a11==1))&&(a14==9))){ + a14 = 8; + a29 = 5; + a25 = 1; + a19 = 1; + return -1; + } else if((((a22==1)&&((((a28==1)&&(!(a11==1)&&((a29==7)&&((a0==1)&&((((a19==3)&&(input==4))&&!(a24==1))&&!(a7==1))))))&&(a14==8))&&!(a25==1)))&&!(a20==1))){ + a19 = 4; + a25 = 1; + a24 = 1; + a14 = 9; + a29 = 5; + return 21; + } else if(((((a19==1)&&(((a28==1)&&((((a22==1)&&(!(a25==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==3))&&(a14==8))))&&!(a0==1))&&(a20==1)))&&!(a24==1)))&&!(a7==1))&&(a11==1))){ + a29 = 8; + a24 = 1; + a20 = 0; + a19 = 4; + a25 = 1; + return 21; + } else if(((a28==1)&&((a25==1)&&(((a11==1)&&((((a22==1)&&(!(a7==1)&&(!(a20==1)&&(((input==6)&&(a14==8))&&(a29==5)))))&&(a0==1))&&!(a24==1)))&&(a19==3))))){ + a0 = 0; + a25 = 0; + a24 = 1; + a29 = 6; + return 23; + } else if((!(a24==1)&&(((((!(a25==1)&&((a7==1)&&((a20==1)&&((a11==1)&&((a22==1)&&((input==4)&&(a14==9)))))))&&(a28==1))&&!(a0==1))&&(a29==8))&&(a19==1)))){ + a29 = 5; + a25 = 1; + a14 = 8; + a0 = 1; + a24 = 1; + return -1; + } else if((((!(a24==1)&&(((a22==1)&&(((a11==1)&&((a19==3)&&((!(a7==1)&&((input==4)&&((a29==8)||((a29==6)||(a29==7)))))&&(a14==9))))&&!(a25==1)))&&(a28==1)))&&(a0==1))&&(a20==1))){ + a25 = 1; + a19 = 4; + a20 = 0; + a29 = 8; + return 23; + } else if(((((a7==1)&&((((!(a25==1)&&((((a28==1)&&((input==4)&&((a29==5)||(a29==6))))&&(a24==1))&&(a14==10)))&&(a19==3))&&(a0==1))&&(a22==1)))&&(a11==1))&&(a20==1))){ + a29 = 5; + a19 = 1; + a25 = 1; + a14 = 8; + return -1; + } else if((((a7==1)&&((a22==1)&&(((a0==1)&&(!(a25==1)&&((a14==10)&&((a28==1)&&(((((a29==7)||((a29==5)||(a29==6)))&&(input==5))&&(a20==1))&&(a19==1))))))&&!(a24==1))))&&(a11==1))){ + a20 = 0; + a29 = 5; + a0 = 0; + a25 = 1; + a14 = 9; + return -1; + } else if(((a14==8)&&((((a29==7)&&(((((((a25==1)&&((a22==1)&&(input==5)))&&(a0==1))&&(a19==4))&&!(a24==1))&&(a28==1))&&(a20==1)))&&!(a7==1))&&(a11==1)))){ + a0 = 0; + a7 = 1; + a29 = 5; + a19 = 2; + return 23; + } else if(((!(a11==1)&&(((a7==1)&&((a14==8)&&((((!(a25==1)&&((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))&&(input==6)))&&(a24==1))&&(a28==1))&&!(a20==1))))&&!(a0==1)))&&(a22==1))){ + a19 = 1; + a0 = 1; + a25 = 1; + a29 = 5; + a20 = 1; + a11 = 1; + return -1; + } else if(((a0==1)&&((!(a11==1)&&((a14==9)&&(((!(a7==1)&&(((a24==1)&&((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))&&(input==3)))&&(a28==1)))&&!(a25==1))&&!(a20==1))))&&(a22==1)))){ + a11 = 1; + a0 = 0; + a29 = 6; + a25 = 1; + a14 = 8; + a19 = 3; + return 24; + } else if((!(a7==1)&&(((!(a11==1)&&(((a20==1)&&(((a22==1)&&(((((a19==2)&&(a29==5))||(((a19==1)&&(a29==8))||((a19==1)&&(a29==9))))&&(input==4))&&!(a0==1)))&&(a28==1)))&&!(a24==1)))&&(a14==9))&&!(a25==1)))){ + a11 = 1; + a14 = 8; + a19 = 1; + a29 = 5; + a24 = 1; + a0 = 1; + a7 = 1; + a25 = 1; + return -1; + } else if(((a25==1)&&(((((a22==1)&&(((a14==9)&&((a28==1)&&((a11==1)&&((!(a7==1)&&(input==5))&&!(a20==1)))))&&(a0==1)))&&(a19==5))&&!(a24==1))&&(a29==7)))){ + a20 = 1; + a14 = 8; + a19 = 1; + a7 = 1; + a0 = 0; + a24 = 1; + a29 = 5; + return 23; + } else if(((a22==1)&&(((((((a14==8)&&(((input==1)&&(((a19==5)&&((a25==1)&&(a29==9)))||((a19==1)&&(!(a25==1)&&(a29==5)))))&&!(a7==1)))&&!(a24==1))&&!(a0==1))&&!(a11==1))&&!(a20==1))&&(a28==1)))){ + a29 = 6; + a19 = 4; + a7 = 1; + a25 = 1; + return 21; + } else if(((a14==9)&&((((((a24==1)&&((a28==1)&&((a7==1)&&(!(a11==1)&&((((a29==9)&&(a19==2))||((a29==5)&&(a19==3)))&&(input==5))))))&&(a25==1))&&!(a0==1))&&(a22==1))&&!(a20==1)))){ + a14 = 8; + a19 = 2; + a29 = 6; + a7 = 0; + a11 = 1; + a20 = 1; + return 23; + } else if(((a28==1)&&(((a25==1)&&((a24==1)&&((((a11==1)&&((a22==1)&&((a7==1)&&((((a29==9)&&(a19==1))||((a29==5)&&(a19==2)))&&(input==3)))))&&(a14==10))&&(a0==1))))&&!(a20==1)))){ + a29 = 8; + a14 = 8; + a7 = 0; + a0 = 0; + a19 = 1; + return 23; + } else if(((a22==1)&&(!(a20==1)&&((a7==1)&&(!(a0==1)&&(!(a11==1)&&((a28==1)&&(((a14==9)&&((a24==1)&&(!(a25==1)&&((input==2)&&((a29==7)||(a29==8))))))&&(a19==4))))))))){ + a25 = 1; + a29 = 7; + a14 = 8; + a19 = 3; + return 24; + } else if((((a19==4)&&(((a25==1)&&((((a29==9)&&((!(a20==1)&&((a28==1)&&((input==6)&&(a14==9))))&&!(a24==1)))&&(a0==1))&&!(a7==1)))&&(a22==1)))&&!(a11==1))){ + a7 = 1; + a14 = 8; + a24 = 1; + a19 = 1; + a29 = 5; + a20 = 1; + a11 = 1; + return -1; + } else if((!(a24==1)&&((a28==1)&&((a25==1)&&(((((((a14==8)&&((input==6)&&(((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))))&&(a22==1))&&(a11==1))&&(a0==1))&&(a20==1))&&!(a7==1)))))){ + a29 = 5; + a24 = 1; + a19 = 1; + a7 = 1; + return -1; + } else if((!(a7==1)&&((a28==1)&&((a0==1)&&(((a14==9)&&(((!(a20==1)&&((input==5)&&(((((a29==8)&&(a25==1))&&(a19==5))||(((a25==1)&&(a29==9))&&(a19==5)))||((a19==1)&&((a29==5)&&!(a25==1))))))&&(a22==1))&&!(a11==1)))&&(a24==1)))))){ + a14 = 8; + a19 = 1; + a20 = 1; + a29 = 5; + a7 = 1; + a25 = 1; + a11 = 1; + return -1; + } else if(((a19==3)&&((a11==1)&&(((a20==1)&&((((a14==9)&&(!(a7==1)&&((a28==1)&&(((input==3)&&(a29==5))&&(a24==1)))))&&(a22==1))&&(a25==1)))&&(a0==1))))){ + a7 = 1; + a14 = 8; + a19 = 1; + return -1; + } else if((!(a24==1)&&((a22==1)&&(((!(a0==1)&&((!(a25==1)&&((!(a20==1)&&(!(a7==1)&&((input==1)&&(a14==9))))&&(a19==3)))&&(a11==1)))&&(a29==9))&&(a28==1))))){ + a7 = 1; + a0 = 1; + a19 = 1; + a20 = 1; + a14 = 8; + a24 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if(((((!(a24==1)&&((((a14==9)&&(((a0==1)&&((a19==1)&&((input==5)&&(((a29==6)||(a29==7))||(a29==8)))))&&(a22==1)))&&!(a20==1))&&(a28==1)))&&!(a25==1))&&(a11==1))&&!(a7==1))){ + a24 = 1; + a29 = 6; + a0 = 0; + a14 = 8; + a19 = 5; + a7 = 1; + return 24; + } else if((((((a14==8)&&((a0==1)&&((((a20==1)&&((a28==1)&&((((a29==8)||(a29==9))&&(input==5))&&!(a7==1))))&&(a22==1))&&(a19==5))))&&(a24==1))&&!(a25==1))&&!(a11==1))){ + a19 = 1; + a25 = 1; + a29 = 5; + a7 = 1; + a11 = 1; + return -1; + } else if((((a22==1)&&(!(a0==1)&&((((a25==1)&&((a11==1)&&(!(a20==1)&&((a19==2)&&(((input==1)&&((a29==8)||(a29==9)))&&!(a7==1))))))&&(a14==8))&&(a28==1))))&&(a24==1))){ + a0 = 1; + a20 = 1; + a24 = 0; + a29 = 8; + return -1; + } else if(((a0==1)&&((a29==5)&&(((a24==1)&&((((a20==1)&&((a14==10)&&((a19==4)&&(((input==3)&&(a11==1))&&(a7==1)))))&&!(a25==1))&&(a28==1)))&&(a22==1))))){ + a11 = 0; + a19 = 5; + a14 = 9; + a7 = 0; + a29 = 7; + a25 = 1; + a20 = 0; + a0 = 0; + a24 = 0; + return -1; + } else if(((((a24==1)&&((a28==1)&&((a19==3)&&(!(a25==1)&&(((a22==1)&&(((a0==1)&&((input==5)&&((a29==7)||(a29==8))))&&(a7==1)))&&(a14==9))))))&&!(a11==1))&&!(a20==1))){ + a14 = 8; + a29 = 5; + a11 = 1; + a25 = 1; + a19 = 1; + a20 = 1; + return -1; + } else if(((a19==4)&&(((a20==1)&&((a25==1)&&(!(a7==1)&&(!(a11==1)&&((a28==1)&&(((a24==1)&&(((input==6)&&((a29==9)||((a29==7)||(a29==8))))&&(a22==1)))&&(a0==1)))))))&&(a14==9)))){ + a14 = 8; + a7 = 1; + a29 = 6; + a0 = 0; + return 23; + } else if((((a11==1)&&((((a19==4)&&((!(a25==1)&&(!(a7==1)&&((a29==9)&&(!(a20==1)&&((input==1)&&(a14==9))))))&&(a0==1)))&&(a22==1))&&(a24==1)))&&(a28==1))){ + a7 = 1; + a19 = 2; + a0 = 0; + a14 = 8; + return 24; + } else if((((a11==1)&&((a19==5)&&(!(a25==1)&&(((a24==1)&&(((a28==1)&&(!(a7==1)&&(((input==2)&&(((a29==7)||(a29==8))||(a29==9)))&&(a20==1))))&&(a0==1)))&&(a14==10)))))&&(a22==1))){ + a25 = 1; + a20 = 0; + a7 = 1; + a29 = 5; + a0 = 0; + a14 = 9; + a19 = 1; + return -1; + } else if((!(a11==1)&&(((a20==1)&&((a22==1)&&((a24==1)&&((a14==8)&&((a0==1)&&((((((a19==5)&&((a25==1)&&(a29==9)))||(((a29==5)&&!(a25==1))&&(a19==1)))||((a19==1)&&(!(a25==1)&&(a29==6))))&&(input==3))&&(a28==1)))))))&&!(a7==1)))){ + a7 = 1; + a0 = 0; + a20 = 0; + a25 = 1; + a19 = 1; + a24 = 0; + a29 = 7; + return 24; + } else if((!(a0==1)&&(!(a11==1)&&((((((a19==4)&&(((a24==1)&&(((a29==9)&&(input==3))&&(a20==1)))&&(a14==9)))&&(a25==1))&&(a28==1))&&!(a7==1))&&(a22==1))))){ + a25 = 0; + a0 = 1; + a29 = 7; + a24 = 0; + a19 = 2; + return 23; + } else if(((a25==1)&&((!(a7==1)&&(((a28==1)&&((a19==4)&&((((a24==1)&&((a14==9)&&((input==2)&&(((a29==7)||(a29==8))||(a29==9)))))&&(a11==1))&&(a22==1))))&&!(a0==1)))&&(a20==1)))){ + a20 = 0; + a7 = 1; + a24 = 0; + a11 = 0; + a14 = 8; + a19 = 3; + a29 = 7; + return 24; + } else if(((!(a25==1)&&((a14==8)&&((a22==1)&&((!(a20==1)&&((a19==5)&&((a11==1)&&((a28==1)&&(!(a24==1)&&(((a29==8)||(a29==9))&&(input==2)))))))&&(a7==1)))))&&!(a0==1))){ + a20 = 1; + a29 = 9; + a7 = 0; + a19 = 3; + a25 = 1; + return -1; + } else if(((a20==1)&&((a22==1)&&(!(a24==1)&&((a19==3)&&(!(a25==1)&&((a14==8)&&((a7==1)&&(!(a11==1)&&((a0==1)&&((a29==6)&&((a28==1)&&(input==3))))))))))))){ + a25 = 1; + a19 = 1; + a11 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if(((a14==9)&&(((a0==1)&&((((a7==1)&&(((a25==1)&&(!(a24==1)&&((input==3)&&(((a19==4)&&(a29==6))||(((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))))))&&(a22==1)))&&!(a20==1))&&(a28==1)))&&!(a11==1)))){ + a19 = 4; + a29 = 9; + return 24; + } else if(((a0==1)&&((!(a20==1)&&((a22==1)&&(((a19==1)&&((a28==1)&&(!(a25==1)&&((a7==1)&&((a11==1)&&((input==2)&&(a29==5)))))))&&(a14==9))))&&(a24==1)))){ + a14 = 8; + a11 = 0; + a19 = 4; + a24 = 0; + return -1; + } else if(((a7==1)&&((!(a20==1)&&(((a22==1)&&(((a25==1)&&((a14==8)&&(!(a24==1)&&((input==5)&&(((a19==3)&&(a29==9))||((a29==5)&&(a19==4)))))))&&(a28==1)))&&!(a11==1)))&&!(a0==1)))){ + a19 = 3; + a25 = 0; + a29 = 5; + a11 = 1; + a24 = 1; + return 24; + } else if(((a28==1)&&(!(a24==1)&&((((a29==5)&&(!(a0==1)&&(!(a25==1)&&(((a22==1)&&((a14==9)&&((a11==1)&&(input==4))))&&(a7==1)))))&&(a19==4))&&!(a20==1))))){ + a0 = 1; + a20 = 1; + a19 = 2; + a7 = 0; + a29 = 7; + a11 = 0; + return 23; + } else if((((((((a7==1)&&((a24==1)&&((((a19==4)&&((input==3)&&(((a29==6)||(a29==7))||(a29==8))))&&!(a25==1))&&(a0==1))))&&!(a20==1))&&(a22==1))&&(a14==10))&&(a28==1))&&(a11==1))){ + a11 = 0; + a14 = 8; + a24 = 0; + a0 = 0; + a29 = 7; + a19 = 5; + return 23; + } else if(((a14==8)&&(((((a11==1)&&(((a22==1)&&((a24==1)&&((a28==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==3))&&(a0==1)))))&&(a19==1)))&&!(a20==1))&&(a7==1))&&(a25==1)))){ + a7 = 0; + a29 = 8; + a19 = 2; + a20 = 1; + a24 = 0; + return 24; + } else if((((a24==1)&&((a11==1)&&((a22==1)&&((a28==1)&&(!(a0==1)&&(((a14==9)&&((((((a19==1)&&(a29==8))||((a29==9)&&(a19==1)))||((a19==2)&&(a29==5)))&&(input==4))&&(a7==1)))&&(a20==1)))))))&&(a25==1))){ + a24 = 0; + a7 = 0; + a20 = 0; + a19 = 5; + a0 = 1; + a29 = 5; + return -1; + } else if(((a28==1)&&((a25==1)&&(((((a0==1)&&((a14==8)&&((a19==2)&&(!(a7==1)&&((a11==1)&&((input==3)&&((a29==5)||(a29==6))))))))&&!(a20==1))&&(a22==1))&&!(a24==1))))){ + a19 = 1; + a24 = 1; + a7 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if(((((a14==8)&&((((a22==1)&&((((((input==1)&&((a29==5)||(a29==6)))&&(a19==2))&&!(a0==1))&&(a11==1))&&(a25==1)))&&!(a7==1))&&(a28==1)))&&!(a24==1))&&!(a20==1))){ + a20 = 1; + a29 = 5; + a0 = 1; + a7 = 1; + a24 = 1; + a19 = 1; + return -1; + } else if((!(a7==1)&&((a24==1)&&(!(a20==1)&&(((a28==1)&&(((!(a25==1)&&((((input==4)&&(((a29==7)||(a29==8))||(a29==9)))&&(a19==3))&&(a14==9)))&&(a22==1))&&(a0==1)))&&(a11==1)))))){ + a29 = 5; + a14 = 8; + a7 = 1; + a20 = 1; + a19 = 1; + a25 = 1; + return -1; + } else if(((a22==1)&&((((((a11==1)&&((!(a25==1)&&((a7==1)&&((a19==5)&&((input==2)&&!(a20==1)))))&&!(a0==1)))&&(a28==1))&&(a24==1))&&(a29==7))&&(a14==9)))){ + a29 = 6; + a14 = 8; + a7 = 0; + a19 = 1; + a11 = 0; + return 24; + } else if(((!(a7==1)&&(((a24==1)&&(((a22==1)&&((((a14==8)&&((!(a0==1)&&(input==6))&&(a28==1)))&&!(a11==1))&&(a25==1)))&&!(a20==1)))&&(a29==8)))&&(a19==2))){ + a0 = 1; + a7 = 1; + a19 = 1; + a20 = 1; + a11 = 1; + a29 = 5; + return -1; + } else if((((!(a0==1)&&((a28==1)&&((a19==5)&&((a20==1)&&(!(a24==1)&&(!(a11==1)&&(((a22==1)&&(((a29==8)||(a29==9))&&(input==4)))&&!(a25==1))))))))&&(a7==1))&&(a14==8))){ + a29 = 5; + a25 = 1; + a20 = 0; + a19 = 4; + return 21; + } else if(((a19==4)&&((a7==1)&&(((a22==1)&&(!(a24==1)&&(((a11==1)&&((a28==1)&&((!(a0==1)&&((a20==1)&&(input==4)))&&(a14==9))))&&(a29==5))))&&!(a25==1))))){ + a19 = 1; + a24 = 1; + a25 = 1; + a14 = 8; + a0 = 1; + return -1; + } else if((!(a25==1)&&(((a19==4)&&(((a28==1)&&((a22==1)&&((!(a11==1)&&((a0==1)&&(((input==2)&&(a14==8))&&(a29==6))))&&!(a7==1))))&&(a20==1)))&&(a24==1)))){ + a19 = 3; + a24 = 0; + a7 = 1; + a20 = 0; + return 24; + } else if((!(a20==1)&&((a0==1)&&((a22==1)&&((a28==1)&&(!(a11==1)&&((a24==1)&&(!(a7==1)&&(!(a25==1)&&((((((a19==4)&&(a29==8))||((a19==4)&&(a29==9)))||((a19==5)&&(a29==5)))&&(input==3))&&(a14==8))))))))))){ + a11 = 1; + a29 = 6; + a19 = 5; + a14 = 9; + return 23; + } else if((((((a28==1)&&(((a19==2)&&(!(a25==1)&&((((a14==9)&&(((a29==6)||(a29==7))&&(input==1)))&&(a24==1))&&(a20==1))))&&(a7==1)))&&!(a0==1))&&(a22==1))&&!(a11==1))){ + a14 = 8; + a19 = 3; + a25 = 1; + a29 = 8; + return -1; + } else if(((((a29==5)&&(((!(a20==1)&&((a0==1)&&((a11==1)&&((((input==5)&&!(a24==1))&&(a19==3))&&(a14==9)))))&&!(a25==1))&&(a28==1)))&&(a22==1))&&(a7==1))){ + a20 = 1; + a14 = 8; + a19 = 1; + a25 = 1; + a24 = 1; + return -1; + } else if((((a22==1)&&(!(a20==1)&&(((a24==1)&&((a14==9)&&(((!(a0==1)&&((input==2)&&((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))||((a19==5)&&(a29==6)))))&&!(a25==1))&&!(a7==1))))&&(a28==1))))&&(a11==1))){ + a19 = 5; + a20 = 1; + a29 = 6; + a14 = 8; + a25 = 1; + a24 = 0; + return 24; + } else if(((a28==1)&&(!(a11==1)&&((a24==1)&&((((a7==1)&&((a25==1)&&(((((input==1)&&((a29==7)||(a29==8)))&&(a14==9))&&(a0==1))&&!(a20==1))))&&(a19==1))&&(a22==1)))))){ + a29 = 8; + a20 = 1; + a19 = 3; + return 24; + } else if(((a29==6)&&(((a14==10)&&((a28==1)&&((a11==1)&&((!(a24==1)&&((a0==1)&&((a25==1)&&(((a20==1)&&(input==6))&&(a22==1)))))&&(a7==1)))))&&(a19==5)))){ + a0 = 0; + a25 = 0; + a20 = 0; + a19 = 1; + a24 = 1; + a14 = 8; + a29 = 9; + return 23; + } else if(((a14==8)&&(((!(a24==1)&&((a29==7)&&((!(a7==1)&&(!(a20==1)&&((((a22==1)&&(input==4))&&!(a0==1))&&(a11==1))))&&(a19==5))))&&(a28==1))&&(a25==1)))){ + a25 = 0; + a7 = 1; + a29 = 6; + a24 = 1; + a19 = 3; + return 21; + } else if(((a28==1)&&((a14==8)&&((!(a20==1)&&((a24==1)&&((a7==1)&&((((a19==1)&&(!(a25==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==3))))&&!(a0==1))&&(a11==1)))))&&(a22==1))))){ + a19 = 2; + a29 = 9; + a20 = 1; + return -1; + } else if(((a28==1)&&((a19==2)&&(!(a24==1)&&(!(a0==1)&&((((a7==1)&&((((a22==1)&&((input==2)&&(a11==1)))&&(a29==6))&&(a14==9)))&&!(a25==1))&&(a20==1))))))){ + a7 = 0; + a0 = 1; + a25 = 1; + a29 = 5; + a11 = 0; + return 21; + } else if((((a29==7)&&(((a24==1)&&(((a19==4)&&((a28==1)&&(!(a0==1)&&((a7==1)&&(((input==4)&&(a11==1))&&(a22==1))))))&&!(a20==1)))&&!(a25==1)))&&(a14==9))){ + a25 = 1; + a24 = 0; + a20 = 1; + a11 = 0; + a14 = 8; + return 24; + } else if(((a11==1)&&(((((a28==1)&&(((a7==1)&&(!(a0==1)&&((a22==1)&&(!(a20==1)&&((input==6)&&((a29==5)||(a29==6)))))))&&(a14==8)))&&(a25==1))&&(a24==1))&&(a19==1)))){ + a0 = 1; + a29 = 5; + a14 = 9; + a25 = 0; + a20 = 1; + a24 = 0; + a11 = 0; + a7 = 0; + return 23; + } else if((((((!(a0==1)&&((((((a29==9)&&((input==3)&&(a14==8)))&&(a24==1))&&(a19==2))&&(a28==1))&&!(a11==1)))&&!(a7==1))&&!(a25==1))&&(a22==1))&&!(a20==1))){ + a24 = 0; + a7 = 1; + a0 = 1; + a29 = 8; + a19 = 3; + return -1; + } else if((((((a0==1)&&((((a24==1)&&((a28==1)&&((((((a29==7)||(a29==8))||(a29==9))&&(input==1))&&(a7==1))&&(a22==1))))&&(a14==9))&&!(a11==1)))&&(a19==5))&&!(a20==1))&&(a25==1))){ + a29 = 5; + a14 = 8; + a11 = 1; + a19 = 1; + a20 = 1; + return -1; + } else if((((((a28==1)&&((a22==1)&&((a29==7)&&(((((a14==8)&&(!(a0==1)&&(input==6)))&&(a24==1))&&!(a11==1))&&(a25==1)))))&&(a20==1))&&(a19==2))&&(a7==1))){ + a19 = 1; + a11 = 1; + a20 = 0; + a29 = 8; + a25 = 0; + a7 = 0; + return 23; + } else if(((((((a7==1)&&((a22==1)&&((a11==1)&&((a0==1)&&(((input==1)&&((((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))||((a29==6)&&(a19==5))))&&(a28==1))))))&&(a20==1))&&(a24==1))&&(a14==9))&&!(a25==1))){ + a19 = 5; + a24 = 0; + a20 = 0; + a14 = 8; + a0 = 0; + a11 = 0; + a25 = 1; + a29 = 6; + return -1; + } else if(((a19==2)&&(!(a20==1)&&((a14==8)&&(((!(a0==1)&&((a7==1)&&((a22==1)&&((!(a24==1)&&((input==2)&&((a29==7)||((a29==5)||(a29==6)))))&&!(a25==1)))))&&(a28==1))&&(a11==1)))))){ + a0 = 1; + a24 = 1; + a29 = 5; + a20 = 1; + a19 = 1; + a25 = 1; + return -1; + } else if(((a7==1)&&(!(a20==1)&&(((a14==9)&&((a24==1)&&((((a0==1)&&((a25==1)&&((input==4)&&((((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))||((a19==3)&&(a29==6))))))&&(a28==1))&&!(a11==1))))&&(a22==1))))){ + a29 = 5; + a19 = 1; + a14 = 8; + a11 = 1; + a20 = 1; + return -1; + } else if(((a14==9)&&((((a11==1)&&((a19==2)&&(((a20==1)&&(((a29==8)&&(((input==3)&&!(a0==1))&&!(a7==1)))&&!(a24==1)))&&(a22==1))))&&(a25==1))&&(a28==1)))){ + a25 = 0; + a11 = 0; + a20 = 0; + a0 = 1; + a29 = 6; + return 23; + } else if(((a29==7)&&(((!(a7==1)&&((((((a25==1)&&((a24==1)&&((a0==1)&&(input==6))))&&!(a20==1))&&(a11==1))&&(a22==1))&&(a28==1)))&&(a19==5))&&(a14==8)))){ + a19 = 4; + a11 = 0; + return 23; + } else if(((a11==1)&&((((((a14==8)&&((a7==1)&&(!(a24==1)&&(((((a29==7)||(a29==8))&&(input==5))&&!(a20==1))&&(a0==1)))))&&(a25==1))&&(a22==1))&&(a19==1))&&(a28==1)))){ + a0 = 0; + a24 = 1; + a19 = 4; + a20 = 1; + a29 = 5; + return 24; + } else if(((a0==1)&&((((a19==1)&&((a22==1)&&(((a20==1)&&(((a28==1)&&(((input==5)&&((a29==6)||(a29==7)))&&(a11==1)))&&(a14==8)))&&(a7==1))))&&!(a24==1))&&!(a25==1)))){ + a25 = 1; + a0 = 0; + a24 = 1; + a29 = 7; + a19 = 3; + return 23; + } else if(((((((a22==1)&&(((a28==1)&&(!(a7==1)&&(!(a11==1)&&((((a29==6)||(a29==7))&&(input==2))&&(a19==5)))))&&(a0==1)))&&(a25==1))&&(a14==9))&&!(a20==1))&&(a24==1))){ + a29 = 9; + a0 = 0; + a14 = 8; + return 21; + } else if((!(a0==1)&&(((!(a7==1)&&((a14==8)&&(!(a25==1)&&((a19==5)&&((a28==1)&&(((((a29==7)||((a29==5)||(a29==6)))&&(input==1))&&(a22==1))&&!(a20==1)))))))&&!(a24==1))&&(a11==1)))){ + a24 = 1; + a25 = 1; + a29 = 8; + return 23; + } else if((((((a11==1)&&(((((a24==1)&&((((input==1)&&(a19==2))&&(a29==9))&&!(a0==1)))&&(a22==1))&&(a25==1))&&(a20==1)))&&!(a7==1))&&(a28==1))&&(a14==9))){ + a7 = 1; + a0 = 1; + a14 = 8; + a19 = 1; + a29 = 5; + return -1; + } else if((!(a20==1)&&((a14==8)&&((a0==1)&&(((((a19==2)&&((a28==1)&&(((a22==1)&&((input==3)&&((a29==8)||(a29==9))))&&!(a25==1))))&&!(a7==1))&&(a11==1))&&(a24==1)))))){ + a7 = 1; + a24 = 0; + a29 = 9; + a11 = 0; + a20 = 1; + a19 = 1; + return 21; + } else if((((a14==9)&&((a24==1)&&((a22==1)&&((((a19==4)&&((a28==1)&&((a7==1)&&(!(a25==1)&&(!(a20==1)&&(input==2))))))&&(a0==1))&&(a11==1)))))&&(a29==8))){ + a0 = 0; + a7 = 0; + a25 = 1; + a14 = 8; + a29 = 5; + a19 = 1; + return -1; + } else if(((((a28==1)&&(((!(a0==1)&&((a29==7)&&(((a11==1)&&(((a24==1)&&(input==5))&&(a19==3)))&&(a22==1))))&&!(a25==1))&&(a20==1)))&&(a14==8))&&(a7==1))){ + a29 = 5; + a19 = 5; + a20 = 0; + return 24; + } else if((!(a20==1)&&((a28==1)&&(!(a7==1)&&((a14==9)&&((a24==1)&&((a0==1)&&((a25==1)&&((a11==1)&&((a22==1)&&((((a19==5)&&(a29==5))||(((a29==8)&&(a19==4))||((a29==9)&&(a19==4))))&&(input==2)))))))))))){ + a19 = 1; + a7 = 1; + a29 = 5; + a14 = 8; + a20 = 1; + return -1; + } else if((((a14==8)&&((((!(a11==1)&&(((a24==1)&&((((input==5)&&((a29==6)||(a29==7)))&&!(a0==1))&&(a22==1)))&&(a28==1)))&&!(a20==1))&&!(a7==1))&&(a19==5)))&&(a25==1))){ + a29 = 5; + a0 = 1; + a20 = 1; + a19 = 1; + a11 = 1; + a7 = 1; + return -1; + } else if(((a28==1)&&(((((((a19==1)&&(!(a7==1)&&((((a0==1)&&(input==2))&&!(a24==1))&&(a25==1))))&&(a29==5))&&(a11==1))&&(a14==9))&&(a20==1))&&(a22==1)))){ + a29 = 7; + a7 = 1; + a19 = 5; + a14 = 10; + a20 = 0; + a24 = 1; + return 21; + } else if(((((a14==9)&&((((a28==1)&&((!(a25==1)&&(!(a7==1)&&((a22==1)&&((input==1)&&((a29==6)||(a29==7))))))&&!(a11==1)))&&!(a0==1))&&!(a24==1)))&&(a19==4))&&(a20==1))){ + a19 = 3; + a25 = 1; + a29 = 7; + a20 = 0; + a11 = 1; + return -1; + } else if(((a22==1)&&(((a11==1)&&((((a28==1)&&((a0==1)&&((!(a20==1)&&((a19==4)&&((input==2)&&!(a7==1))))&&(a29==6))))&&!(a25==1))&&(a14==8)))&&!(a24==1)))){ + a7 = 1; + a19 = 1; + a20 = 1; + a25 = 1; + a24 = 1; + a29 = 5; + return -1; + } else if(((!(a25==1)&&((((!(a0==1)&&(((a14==9)&&(!(a11==1)&&((a7==1)&&((input==3)&&!(a20==1)))))&&(a22==1)))&&(a28==1))&&(a29==5))&&(a19==5)))&&!(a24==1))){ + a0 = 1; + a20 = 1; + a11 = 1; + a19 = 1; + a25 = 1; + a24 = 1; + a14 = 8; + return -1; + } else if((((a22==1)&&(((((a11==1)&&((a14==8)&&((a29==6)&&((a0==1)&&(((input==5)&&(a19==4))&&(a28==1))))))&&!(a24==1))&&!(a20==1))&&(a25==1)))&&!(a7==1))){ + a29 = 5; + a11 = 0; + a19 = 2; + return 24; + } else if(((a22==1)&&(!(a7==1)&&(((!(a20==1)&&(!(a24==1)&&((a28==1)&&(((a25==1)&&(((input==6)&&((a29==6)||(a29==7)))&&!(a0==1)))&&(a19==3)))))&&(a14==9))&&!(a11==1))))){ + a24 = 1; + a14 = 8; + a29 = 8; + a19 = 4; + a11 = 1; + return 21; + } else if(((a28==1)&&((!(a11==1)&&(!(a25==1)&&((((a14==8)&&((a24==1)&&((a0==1)&&((((a29==5)&&(a19==4))||(((a19==3)&&(a29==8))||((a19==3)&&(a29==9))))&&(input==2)))))&&!(a20==1))&&(a22==1))))&&!(a7==1)))){ + a20 = 1; + a7 = 1; + a19 = 1; + a29 = 5; + a25 = 1; + a11 = 1; + return -1; + } else if((!(a20==1)&&(((a19==3)&&(!(a25==1)&&((a7==1)&&(((a22==1)&&((a11==1)&&(((a14==9)&&(((a29==5)||(a29==6))&&(input==3)))&&(a28==1))))&&!(a0==1)))))&&!(a24==1)))){ + a19 = 5; + a29 = 9; + a20 = 1; + a11 = 0; + a25 = 1; + a24 = 1; + a0 = 1; + return -1; + } else if(((!(a20==1)&&(((((((a28==1)&&((a19==1)&&(((input==2)&&((a29==9)||((a29==7)||(a29==8))))&&(a25==1))))&&(a0==1))&&(a11==1))&&!(a7==1))&&(a22==1))&&(a24==1)))&&(a14==10))){ + a24 = 0; + a29 = 5; + a14 = 9; + a19 = 5; + a7 = 1; + a0 = 0; + return -1; + } else if((((a24==1)&&((((a14==8)&&((a22==1)&&(!(a20==1)&&((a0==1)&&((a29==8)&&((a25==1)&&((a28==1)&&(input==1))))))))&&!(a7==1))&&!(a11==1)))&&(a19==4))){ + a7 = 1; + a25 = 0; + a29 = 9; + a19 = 2; + a24 = 0; + return 21; + } else if((!(a7==1)&&((a14==9)&&((a28==1)&&((a24==1)&&((((a11==1)&&(!(a25==1)&&(((a0==1)&&((input==6)&&((a29==9)||((a29==7)||(a29==8)))))&&(a22==1))))&&!(a20==1))&&(a19==1))))))){ + a19 = 2; + a7 = 1; + a29 = 5; + return 21; + } else if(((a14==9)&&((a28==1)&&((!(a24==1)&&(!(a25==1)&&((a22==1)&&(!(a7==1)&&((a19==1)&&(!(a11==1)&&(((a29==8)&&(input==2))&&!(a0==1))))))))&&!(a20==1))))){ + a29 = 6; + a19 = 5; + a14 = 8; + return 23; + } else if((((!(a0==1)&&(((((a19==2)&&(!(a11==1)&&(((((a29==6)||(a29==7))&&(input==1))&&!(a7==1))&&!(a20==1))))&&(a28==1))&&(a25==1))&&!(a24==1)))&&(a14==8))&&(a22==1))){ + a25 = 0; + a20 = 1; + a29 = 9; + a7 = 1; + a19 = 4; + return -1; + } else if((((a11==1)&&((((a29==7)&&(((((a14==9)&&(((input==3)&&(a22==1))&&(a28==1)))&&(a7==1))&&(a19==3))&&(a20==1)))&&(a0==1))&&!(a25==1)))&&(a24==1))){ + a25 = 1; + a20 = 0; + a19 = 5; + a29 = 9; + a14 = 8; + a0 = 0; + return 21; + } else if((((a22==1)&&((((((a0==1)&&((a28==1)&&(((((a29==6)||(a29==7))&&(input==1))&&(a20==1))&&(a19==2))))&&(a11==1))&&(a25==1))&&(a7==1))&&!(a24==1)))&&(a14==10))){ + a19 = 1; + a24 = 1; + a29 = 5; + a14 = 8; + return -1; + } else if((((a7==1)&&((a22==1)&&(((a25==1)&&(((((a14==10)&&((a28==1)&&((input==5)&&((a29==6)||(a29==7)))))&&(a19==2))&&(a11==1))&&(a0==1)))&&(a20==1))))&&!(a24==1))){ + a25 = 0; + a29 = 5; + a19 = 3; + a20 = 0; + a0 = 0; + a24 = 1; + a14 = 8; + return 24; + } else if((((((a0==1)&&(!(a25==1)&&(((a28==1)&&((a22==1)&&((a11==1)&&((input==4)&&((((a29==9)&&(a19==4))||((a19==5)&&(a29==5)))||((a29==6)&&(a19==5)))))))&&(a7==1))))&&(a14==9))&&(a24==1))&&(a20==1))){ + a19 = 1; + a11 = 0; + a29 = 6; + a20 = 0; + a14 = 8; + a25 = 1; + a24 = 0; + a7 = 0; + return 21; + } else if((((a0==1)&&(!(a24==1)&&((((a14==8)&&(!(a7==1)&&((((((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))&&(input==4))&&(a20==1))&&(a11==1))))&&(a22==1))&&(a28==1))))&&(a25==1))){ + a19 = 3; + a25 = 0; + a20 = 0; + a24 = 1; + a29 = 6; + a0 = 0; + return 21; + } else if(((((a11==1)&&((a0==1)&&((((a24==1)&&((a20==1)&&((a7==1)&&(((input==2)&&((a29==7)||(a29==8)))&&(a14==9)))))&&(a19==4))&&(a25==1))))&&(a28==1))&&(a22==1))){ + a25 = 0; + a29 = 6; + a24 = 0; + a11 = 0; + a7 = 0; + a0 = 0; + a19 = 1; + return 21; + } else if((!(a25==1)&&(((((((a11==1)&&(!(a24==1)&&((((input==5)&&(a19==4))&&(a0==1))&&(a22==1))))&&(a28==1))&&(a14==9))&&(a20==1))&&(a7==1))&&(a29==7)))){ + a19 = 1; + a24 = 1; + a29 = 5; + a14 = 8; + a25 = 1; + return -1; + } else if((((a19==2)&&((!(a20==1)&&((((a7==1)&&(((((((a29==5)||(a29==6))||(a29==7))&&(input==3))&&(a28==1))&&(a14==8))&&!(a25==1)))&&(a22==1))&&(a11==1)))&&(a0==1)))&&(a24==1))){ + a29 = 7; + a7 = 0; + a19 = 1; + a24 = 0; + return 21; + } else if(((((a11==1)&&((((((((a19==1)&&((input==1)&&((a29==9)||((a29==7)||(a29==8)))))&&(a22==1))&&(a14==9))&&(a28==1))&&(a25==1))&&!(a24==1))&&!(a7==1)))&&!(a20==1))&&(a0==1))){ + a0 = 0; + a14 = 8; + a19 = 5; + a29 = 7; + return -1; + } else if(((a20==1)&&((a11==1)&&((a7==1)&&(((a14==8)&&((a28==1)&&(!(a25==1)&&(((a24==1)&&(!(a0==1)&&((input==2)&&(a29==9))))&&(a19==3)))))&&(a22==1)))))){ + a29 = 7; + a19 = 4; + return 24; + } else if(((a11==1)&&((a22==1)&&((a14==9)&&(!(a25==1)&&(!(a24==1)&&((a29==6)&&(((((a20==1)&&((a19==2)&&(input==3)))&&!(a0==1))&&(a7==1))&&(a28==1))))))))){ + a20 = 0; + a29 = 5; + a19 = 5; + a14 = 8; + a24 = 1; + return 24; + } else if((((a24==1)&&((a14==9)&&(((a7==1)&&(((((a25==1)&&((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))&&(input==1)))&&!(a20==1))&&!(a0==1))&&(a22==1)))&&(a11==1))))&&(a28==1))){ + a0 = 1; + a19 = 4; + a29 = 8; + a24 = 0; + return 24; + } else if(((a14==8)&&((a28==1)&&(((a7==1)&&(((((a0==1)&&((!(a11==1)&&((a24==1)&&(input==1)))&&(a25==1)))&&(a19==4))&&(a20==1))&&(a22==1)))&&(a29==6))))){ + a20 = 0; + a11 = 1; + a19 = 1; + a29 = 8; + a0 = 0; + return 23; + } else if((((((((a22==1)&&((a28==1)&&((!(a25==1)&&((input==2)&&(((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))))&&(a0==1))))&&(a14==8))&&(a20==1))&&!(a7==1))&&!(a11==1))&&(a24==1))){ + a19 = 5; + a25 = 1; + a11 = 1; + a29 = 8; + a7 = 1; + a0 = 0; + return 24; + } else if(((a22==1)&&((!(a7==1)&&(((a0==1)&&((a19==5)&&((a20==1)&&((a28==1)&&(((a25==1)&&(!(a24==1)&&(input==6)))&&(a29==6))))))&&!(a11==1)))&&(a14==8)))){ + a29 = 5; + a20 = 0; + return 23; + } else if((((((a11==1)&&((a20==1)&&(((a19==5)&&(!(a0==1)&&((a14==8)&&(!(a25==1)&&((input==6)&&(((a29==7)||(a29==8))||(a29==9)))))))&&!(a24==1))))&&(a22==1))&&(a7==1))&&(a28==1))){ + a0 = 1; + a20 = 0; + a7 = 0; + a29 = 5; + a11 = 0; + return 21; + } else if(((!(a24==1)&&((((((a22==1)&&((a11==1)&&(!(a0==1)&&((((a29==7)||(a29==8))&&(input==4))&&(a28==1)))))&&!(a7==1))&&!(a20==1))&&(a14==8))&&!(a25==1)))&&(a19==3))){ + a24 = 1; + a19 = 2; + a14 = 9; + a29 = 9; + return 23; + } else if((((!(a0==1)&&(((a22==1)&&((a11==1)&&((a29==9)&&((((a28==1)&&((a20==1)&&(input==6)))&&(a19==2))&&(a14==9)))))&&!(a7==1)))&&(a24==1))&&(a25==1))){ + a24 = 0; + a14 = 8; + a25 = 0; + a29 = 8; + a7 = 1; + a0 = 1; + a20 = 0; + a11 = 0; + return 21; + } else if((((!(a11==1)&&(((((a24==1)&&((a7==1)&&(!(a20==1)&&((a28==1)&&((input==6)&&((a29==5)||(a29==6)))))))&&(a0==1))&&(a14==9))&&(a19==4)))&&(a22==1))&&(a25==1))){ + a11 = 1; + a14 = 8; + a24 = 0; + a0 = 0; + a19 = 1; + a7 = 0; + a25 = 0; + a29 = 7; + a20 = 1; + return 24; + } else if(((!(a20==1)&&((a29==9)&&(((a11==1)&&(((a19==1)&&((a25==1)&&(((a24==1)&&((a14==9)&&(input==5)))&&(a7==1))))&&(a28==1)))&&(a22==1))))&&(a0==1))){ + a29 = 7; + a19 = 3; + a0 = 0; + a14 = 8; + a11 = 0; + return 21; + } else if(((((!(a24==1)&&((a22==1)&&((a14==8)&&((((input==5)&&(((a19==1)&&((a29==5)&&!(a25==1)))||((((a25==1)&&(a29==8))&&(a19==5))||(((a25==1)&&(a29==9))&&(a19==5)))))&&!(a7==1))&&(a20==1)))))&&(a28==1))&&(a0==1))&&(a11==1))){ + a29 = 5; + a25 = 1; + a7 = 1; + a20 = 0; + a24 = 1; + a0 = 0; + a19 = 3; + return 21; + } else if(((a29==6)&&((a19==1)&&((a11==1)&&(((((((a22==1)&&(!(a20==1)&&((a28==1)&&(input==5))))&&(a24==1))&&!(a25==1))&&(a14==10))&&(a7==1))&&(a0==1)))))){ + a24 = 0; + a19 = 3; + a25 = 1; + a11 = 0; + a7 = 0; + a14 = 9; + a20 = 1; + return 23; + } else if((!(a25==1)&&((a28==1)&&((a14==9)&&(((((((a22==1)&&((a19==2)&&((input==1)&&(((a29==6)||(a29==7))||(a29==8)))))&&(a0==1))&&(a24==1))&&!(a20==1))&&(a7==1))&&!(a11==1)))))){ + a19 = 5; + a29 = 5; + a25 = 1; + return 24; + } else if(((((a22==1)&&(((a0==1)&&(((a11==1)&&((a29==6)&&((a20==1)&&((a14==10)&&((a19==2)&&(input==6))))))&&!(a7==1)))&&(a24==1)))&&!(a25==1))&&(a28==1))){ + a20 = 0; + a14 = 9; + a19 = 5; + a25 = 1; + a24 = 0; + return 21; + } else if((!(a20==1)&&((a25==1)&&((a28==1)&&(((a22==1)&&(((a19==1)&&((a7==1)&&((((input==3)&&(((a29==7)||(a29==8))||(a29==9)))&&(a14==9))&&!(a11==1))))&&!(a0==1)))&&(a24==1)))))){ + a29 = 5; + a19 = 5; + a24 = 0; + a11 = 1; + a7 = 0; + return -1; + } else if(((a19==3)&&((a24==1)&&((a11==1)&&(((((a7==1)&&(((a22==1)&&(((a28==1)&&(input==5))&&(a0==1)))&&(a29==8)))&&(a20==1))&&(a14==9))&&!(a25==1)))))){ + a0 = 0; + a14 = 8; + a20 = 0; + a24 = 0; + a11 = 0; + a19 = 1; + a25 = 1; + return 24; + } else if((((a19==2)&&(((!(a24==1)&&(!(a7==1)&&(((a25==1)&&((a20==1)&&(((input==4)&&((a29==5)||(a29==6)))&&(a14==9))))&&!(a0==1))))&&!(a11==1))&&(a28==1)))&&(a22==1))){ + a29 = 9; + a20 = 0; + a24 = 1; + a19 = 1; + a14 = 8; + a25 = 0; + return 24; + } else if(((!(a24==1)&&(((((a14==8)&&(((a28==1)&&(!(a7==1)&&(((input==6)&&((a29==8)||(a29==9)))&&!(a11==1))))&&(a25==1)))&&(a20==1))&&!(a0==1))&&(a22==1)))&&(a19==4))){ + a25 = 0; + a19 = 2; + a29 = 7; + a24 = 1; + a11 = 1; + a20 = 0; + return 23; + } else if((!(a7==1)&&((!(a25==1)&&((a22==1)&&((((!(a0==1)&&(((((a29==8)||((a29==6)||(a29==7)))&&(input==5))&&!(a11==1))&&(a19==1)))&&(a24==1))&&(a28==1))&&(a20==1))))&&(a14==9)))){ + a14 = 8; + a29 = 9; + a11 = 1; + a7 = 1; + a19 = 2; + return -1; + } else if(((((a28==1)&&((!(a20==1)&&((a7==1)&&((((a14==8)&&(((input==5)&&((a29==6)||(a29==7)))&&!(a24==1)))&&!(a25==1))&&!(a11==1))))&&(a19==2)))&&(a0==1))&&(a22==1))){ + a24 = 1; + a14 = 9; + a20 = 1; + a7 = 0; + a19 = 5; + a29 = 7; + return 24; + } else if(((((a14==8)&&((((a22==1)&&(!(a7==1)&&((!(a20==1)&&(!(a11==1)&&((a19==5)&&(input==3))))&&(a28==1))))&&!(a0==1))&&!(a24==1)))&&(a29==9))&&!(a25==1))){ + a24 = 1; + a7 = 1; + a25 = 1; + a29 = 8; + a20 = 1; + a11 = 1; + return 23; + } else if(((!(a20==1)&&(((a28==1)&&((a0==1)&&((a11==1)&&(((input==2)&&((((a29==5)&&(!(a7==1)&&(a25==1)))&&(a19==1))||(((a19==5)&&((!(a25==1)&&(a7==1))&&(a29==8)))||((a19==5)&&(((a7==1)&&!(a25==1))&&(a29==9))))))&&(a14==9)))))&&!(a24==1)))&&(a22==1))){ + a29 = 7; + a14 = 10; + a7 = 1; + a19 = 2; + a20 = 1; + a25 = 0; + return 21; + } else if((((a22==1)&&((a24==1)&&((!(a11==1)&&(!(a7==1)&&(((((!(a20==1)&&(input==6))&&(a29==6))&&(a14==8))&&(a28==1))&&(a19==4))))&&(a0==1))))&&!(a25==1))){ + a19 = 3; + a0 = 0; + a11 = 1; + a29 = 5; + a25 = 1; + return 23; + } else if(((((a25==1)&&((a24==1)&&((a0==1)&&((a14==9)&&((a7==1)&&(((a28==1)&&((a11==1)&&((input==5)&&((a29==6)||(a29==7)))))&&(a22==1)))))))&&(a20==1))&&(a19==5))){ + a14 = 8; + a29 = 5; + a19 = 1; + return -1; + } else if(((((!(a11==1)&&(!(a24==1)&&(((a14==9)&&(((a0==1)&&(((input==3)&&((a29==7)||((a29==5)||(a29==6))))&&(a22==1)))&&!(a7==1)))&&(a20==1))))&&(a19==1))&&(a25==1))&&(a28==1))){ + a24 = 1; + a7 = 1; + a29 = 5; + a11 = 1; + a14 = 8; + return -1; + } else if(((((a19==5)&&((a28==1)&&(((a0==1)&&((((((input==6)&&(a7==1))&&(a25==1))&&(a22==1))&&!(a24==1))&&(a11==1)))&&(a14==9))))&&(a20==1))&&(a29==7))){ + a25 = 0; + a19 = 2; + a0 = 0; + a29 = 8; + a24 = 1; + a14 = 8; + return 24; + } else if((((((a14==9)&&(((a22==1)&&((a25==1)&&(!(a11==1)&&((((input==3)&&((a29==7)||(a29==8)))&&(a7==1))&&!(a24==1)))))&&(a28==1)))&&(a19==4))&&(a0==1))&&!(a20==1))){ + a19 = 1; + a20 = 1; + a29 = 5; + a11 = 1; + a24 = 1; + a14 = 8; + return -1; + } else if(((!(a25==1)&&(!(a24==1)&&((a14==8)&&((((((a28==1)&&((((a19==2)&&(a29==6))||(((a19==1)&&(a29==9))||((a29==5)&&(a19==2))))&&(input==2)))&&(a20==1))&&!(a0==1))&&(a7==1))&&(a22==1)))))&&!(a11==1))){ + a29 = 5; + a0 = 1; + a25 = 1; + a19 = 1; + a24 = 1; + a11 = 1; + return -1; + } else if(((((a29==6)&&((a28==1)&&((!(a25==1)&&((a11==1)&&((a14==9)&&((a7==1)&&(!(a20==1)&&((a0==1)&&(input==5)))))))&&(a19==4))))&&(a22==1))&&!(a24==1))){ + a24 = 1; + a0 = 0; + a14 = 8; + a7 = 0; + a29 = 8; + a19 = 1; + return 24; + } else if(((((!(a11==1)&&(((a24==1)&&(!(a25==1)&&(!(a0==1)&&((a14==9)&&((a20==1)&&(((a29==5)||(a29==6))&&(input==4)))))))&&(a28==1)))&&(a22==1))&&!(a7==1))&&(a19==3))){ + a29 = 5; + a11 = 1; + a19 = 5; + a20 = 0; + a14 = 8; + return 24; + } else if((((((a19==3)&&((!(a24==1)&&((!(a11==1)&&((a14==8)&&(((input==3)&&!(a20==1))&&!(a25==1))))&&!(a7==1)))&&(a29==7)))&&(a28==1))&&(a0==1))&&(a22==1))){ + a19 = 2; + a29 = 9; + return -1; + } else if(((!(a20==1)&&(!(a11==1)&&(((a25==1)&&((!(a24==1)&&((a19==3)&&(((a0==1)&&((input==4)&&((a29==8)||(a29==9))))&&(a14==8))))&&(a28==1)))&&(a22==1))))&&(a7==1))){ + a19 = 2; + a24 = 1; + a0 = 0; + a20 = 1; + a11 = 1; + a29 = 7; + return 23; + } else if((((a11==1)&&((((a28==1)&&(((((((input==5)&&((a29==9)||((a29==7)||(a29==8))))&&!(a0==1))&&(a20==1))&&(a14==9))&&(a22==1))&&(a19==4)))&&!(a7==1))&&(a24==1)))&&(a25==1))){ + a19 = 2; + a0 = 1; + a7 = 1; + a11 = 0; + a25 = 0; + a20 = 0; + a29 = 5; + return -1; + } else if(((a19==5)&&((a14==8)&&(!(a25==1)&&(((a0==1)&&(((a28==1)&&((((!(a20==1)&&(input==4))&&(a29==8))&&(a24==1))&&(a22==1)))&&!(a7==1)))&&(a11==1)))))){ + a20 = 1; + a11 = 0; + a24 = 0; + a29 = 7; + a19 = 2; + return 24; + } else if(((((!(a20==1)&&((a0==1)&&((a14==9)&&((((((input==1)&&(a11==1))&&(a22==1))&&!(a7==1))&&(a19==4))&&!(a24==1)))))&&(a28==1))&&(a25==1))&&(a29==8))){ + a20 = 1; + a14 = 8; + a29 = 5; + a7 = 1; + a24 = 1; + a19 = 1; + return -1; + } else if(((a14==8)&&(((((a28==1)&&((a20==1)&&((a7==1)&&((((input==2)&&(((a19==4)&&(a29==5))||(((a29==8)&&(a19==3))||((a29==9)&&(a19==3)))))&&(a22==1))&&!(a25==1)))))&&(a24==1))&&!(a11==1))&&!(a0==1)))){ + a20 = 0; + a11 = 1; + a19 = 3; + a29 = 5; + a7 = 0; + return 21; + } else if((((((((((a14==9)&&((a29==9)&&(((a25==1)&&(input==2))&&(a11==1))))&&(a19==1))&&(a24==1))&&(a0==1))&&!(a7==1))&&(a20==1))&&(a28==1))&&(a22==1))){ + a14 = 8; + a11 = 0; + a29 = 7; + a20 = 0; + a19 = 3; + a24 = 0; + return -1; + } else if((((((a25==1)&&(!(a0==1)&&((a14==9)&&(!(a11==1)&&((a28==1)&&(((a22==1)&&(((a29==6)||(a29==7))&&(input==4)))&&!(a7==1)))))))&&(a19==3))&&!(a24==1))&&!(a20==1))){ + a25 = 0; + a19 = 5; + a7 = 1; + a29 = 5; + a11 = 1; + a20 = 1; + return -1; + } else if(((a29==8)&&((((a28==1)&&((a22==1)&&((((a0==1)&&((!(a11==1)&&((a19==5)&&(input==2)))&&(a25==1)))&&(a20==1))&&!(a7==1))))&&(a24==1))&&(a14==8)))){ + a0 = 0; + a19 = 3; + a11 = 1; + a29 = 6; + a7 = 1; + return 21; + } else if((!(a20==1)&&(((a19==2)&&((!(a11==1)&&(((((a24==1)&&((a25==1)&&(((a29==7)||(a29==8))&&(input==5))))&&(a0==1))&&(a14==9))&&(a28==1)))&&(a22==1)))&&(a7==1)))){ + a29 = 5; + a19 = 1; + a14 = 8; + a20 = 1; + a11 = 1; + return -1; + } else if(((a14==9)&&(!(a11==1)&&(((a20==1)&&(((a24==1)&&(((((((a19==5)&&((a25==1)&&(a29==8)))||((a19==5)&&((a25==1)&&(a29==9))))||(((a29==5)&&!(a25==1))&&(a19==1)))&&(input==5))&&(a28==1))&&(a22==1)))&&!(a7==1)))&&(a0==1))))){ + a24 = 0; + a29 = 9; + a14 = 8; + a20 = 0; + a19 = 5; + a25 = 0; + return -1; + } else if((!(a7==1)&&(((a11==1)&&(((a14==9)&&(!(a24==1)&&((((input==6)&&(((((a25==1)&&(a29==8))&&(a19==5))||(((a29==9)&&(a25==1))&&(a19==5)))||((a19==1)&&((a29==5)&&!(a25==1)))))&&(a22==1))&&(a20==1))))&&(a28==1)))&&(a0==1)))){ + a29 = 5; + a25 = 1; + a19 = 1; + a24 = 1; + a7 = 1; + a14 = 8; + return -1; + } else if((!(a24==1)&&((a11==1)&&((((!(a20==1)&&(((a22==1)&&((a14==9)&&(((input==2)&&((a29==6)||(a29==7)))&&(a28==1))))&&(a7==1)))&&!(a0==1))&&(a19==2))&&(a25==1))))){ + a29 = 7; + a0 = 1; + a24 = 1; + a11 = 0; + a19 = 5; + return 24; + } else if((!(a20==1)&&((((a22==1)&&((((!(a7==1)&&(((a14==9)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==5)))&&(a28==1)))&&(a0==1))&&!(a24==1))&&!(a11==1)))&&(a25==1))&&(a19==4)))){ + a19 = 1; + a7 = 1; + a14 = 8; + a11 = 1; + a29 = 5; + a24 = 1; + a20 = 1; + return -1; + } else if((((a11==1)&&((a14==9)&&((a20==1)&&((a0==1)&&(((a28==1)&&((a7==1)&&(!(a25==1)&&(!(a24==1)&&((a29==7)&&(input==5))))))&&(a22==1))))))&&(a19==3))){ + a29 = 5; + a20 = 0; + a24 = 1; + a19 = 1; + a7 = 0; + a14 = 8; + a0 = 0; + return 24; + } else if(((((!(a7==1)&&(!(a11==1)&&((((((((a29==6)||(a29==7))&&(input==2))&&(a14==9))&&(a20==1))&&(a25==1))&&(a22==1))&&!(a24==1))))&&(a28==1))&&(a0==1))&&(a19==3))){ + a29 = 5; + a24 = 1; + a19 = 1; + a7 = 1; + a11 = 1; + a14 = 8; + return -1; + } else if(((((a28==1)&&((a22==1)&&((a19==4)&&((((a29==9)&&((((input==1)&&(a14==9))&&!(a0==1))&&(a20==1)))&&(a24==1))&&!(a11==1)))))&&!(a7==1))&&(a25==1))){ + a14 = 8; + a19 = 1; + a29 = 5; + a11 = 1; + a0 = 1; + a7 = 1; + return -1; + } else if((((a14==8)&&((!(a24==1)&&(!(a25==1)&&((((!(a11==1)&&((a20==1)&&((input==4)&&((a29==8)||(a29==9)))))&&(a22==1))&&(a28==1))&&(a19==3))))&&(a0==1)))&&!(a7==1))){ + a14 = 9; + a29 = 9; + a19 = 4; + a11 = 1; + a20 = 0; + return 24; + } else if((!(a7==1)&&((a19==5)&&((a22==1)&&((a24==1)&&((!(a0==1)&&(((((a28==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==6)))&&(a20==1))&&!(a11==1))&&(a14==8)))&&!(a25==1))))))){ + a25 = 1; + a19 = 2; + a11 = 1; + a7 = 1; + a29 = 7; + a20 = 0; + a14 = 9; + a24 = 0; + return 24; + } else if(((a20==1)&&(((a28==1)&&((a11==1)&&(((a19==3)&&((a14==9)&&(!(a24==1)&&(((a22==1)&&((input==5)&&((a29==5)||(a29==6))))&&!(a0==1)))))&&!(a25==1))))&&!(a7==1)))){ + a24 = 1; + a7 = 1; + a0 = 1; + a29 = 5; + a25 = 1; + a14 = 8; + a19 = 1; + return -1; + } else if(((((a25==1)&&((a24==1)&&((((((((((a29==5)||(a29==6))||(a29==7))&&(input==1))&&(a28==1))&&(a22==1))&&(a14==10))&&(a19==5))&&(a7==1))&&(a0==1))))&&!(a20==1))&&(a11==1))){ + a20 = 1; + a14 = 8; + a25 = 0; + a24 = 0; + a19 = 1; + a0 = 0; + a29 = 6; + return -1; + } else if(((a19==5)&&(!(a25==1)&&((!(a20==1)&&((((a28==1)&&(((((input==4)&&((a29==5)||(a29==6)))&&(a24==1))&&(a11==1))&&(a7==1)))&&!(a0==1))&&(a14==8)))&&(a22==1))))){ + a29 = 7; + a24 = 0; + a0 = 1; + a25 = 1; + a11 = 0; + a14 = 9; + return 24; + } else if((!(a24==1)&&((((a25==1)&&(!(a0==1)&&((a19==1)&&(!(a20==1)&&((a7==1)&&((((a14==9)&&(input==5))&&(a11==1))&&(a28==1)))))))&&(a29==9))&&(a22==1)))){ + a19 = 3; + a0 = 1; + a29 = 8; + a14 = 8; + a11 = 0; + a25 = 0; + return 21; + } else if((((((a14==9)&&(!(a11==1)&&((a22==1)&&(((((input==4)&&(((a29==9)&&(a19==3))||((a19==4)&&(a29==5))))&&(a7==1))&&!(a24==1))&&!(a20==1)))))&&(a28==1))&&!(a25==1))&&!(a0==1))){ + a20 = 1; + a25 = 1; + a24 = 1; + a29 = 6; + a14 = 8; + a0 = 1; + a11 = 1; + a19 = 5; + return -1; + } else if((((a19==1)&&((((((!(a7==1)&&((!(a20==1)&&(((a29==6)||(a29==7))&&(input==4)))&&!(a24==1)))&&(a14==8))&&!(a25==1))&&(a0==1))&&!(a11==1))&&(a28==1)))&&(a22==1))){ + a20 = 1; + a11 = 1; + a19 = 4; + a29 = 8; + a24 = 1; + return 24; + } else if((!(a7==1)&&((a28==1)&&((((!(a20==1)&&(((a22==1)&&((((((a29==5)||(a29==6))||(a29==7))&&(input==3))&&(a24==1))&&(a25==1)))&&(a0==1)))&&(a19==1))&&!(a11==1))&&(a14==9))))){ + a14 = 8; + a29 = 6; + a20 = 1; + a0 = 0; + a19 = 2; + return -1; + } else if(((!(a25==1)&&(!(a20==1)&&((((!(a11==1)&&(!(a7==1)&&((((input==2)&&((a29==8)||(a29==9)))&&(a0==1))&&(a28==1))))&&(a22==1))&&(a14==9))&&!(a24==1))))&&(a19==4))){ + a24 = 1; + a29 = 8; + a7 = 1; + a19 = 1; + return 21; + } else if((((!(a20==1)&&((a7==1)&&((a24==1)&&((a19==2)&&(((a11==1)&&(((a22==1)&&(((a29==8)||(a29==9))&&(input==1)))&&(a25==1)))&&(a14==8))))))&&(a28==1))&&!(a0==1))){ + a19 = 5; + a7 = 0; + a25 = 0; + a29 = 6; + a20 = 1; + return -1; + } else if((((a14==9)&&((a0==1)&&((!(a24==1)&&(!(a25==1)&&(((a22==1)&&(!(a20==1)&&(((((a29==8)&&(a19==3))||((a29==9)&&(a19==3)))||((a29==5)&&(a19==4)))&&(input==6))))&&(a28==1))))&&(a7==1))))&&!(a11==1))){ + a19 = 2; + a7 = 0; + a24 = 1; + a29 = 7; + return 23; + } else if(((a22==1)&&(((a28==1)&&(!(a7==1)&&(((!(a20==1)&&(((!(a0==1)&&((input==2)&&((a29==8)||(a29==9))))&&(a14==8))&&!(a24==1)))&&(a19==3))&&(a11==1))))&&(a25==1)))){ + a14 = 9; + a24 = 1; + a19 = 5; + a29 = 7; + return 24; + } else if((((a29==7)&&((a19==5)&&((a24==1)&&((((a28==1)&&((a14==9)&&(!(a20==1)&&((a11==1)&&((input==1)&&(a22==1))))))&&!(a25==1))&&!(a0==1)))))&&(a7==1))){ + a19 = 1; + a29 = 9; + a7 = 0; + a14 = 8; + a25 = 1; + return 24; + } else if((((a20==1)&&((!(a7==1)&&(((a29==8)&&((((((input==4)&&(a25==1))&&(a0==1))&&(a19==5))&&(a22==1))&&(a28==1)))&&(a14==8)))&&(a24==1)))&&!(a11==1))){ + a19 = 2; + a7 = 1; + a11 = 1; + a0 = 0; + a29 = 7; + return 23; + } else if((((a7==1)&&((a24==1)&&((a28==1)&&((a0==1)&&(((((a22==1)&&((a11==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==3))))&&(a20==1))&&!(a25==1))&&(a14==10))))))&&(a19==1))){ + a7 = 0; + a19 = 5; + a11 = 0; + a24 = 0; + a29 = 8; + a14 = 9; + return -1; + } else if(((a11==1)&&((((a20==1)&&((a14==10)&&(((a25==1)&&(((((input==5)&&((a29==7)||(a29==8)))&&(a28==1))&&(a24==1))&&(a0==1)))&&(a22==1))))&&(a19==3))&&!(a7==1)))){ + a29 = 9; + a24 = 0; + a7 = 1; + a11 = 0; + a0 = 0; + a19 = 5; + a14 = 9; + return -1; + } else if((!(a0==1)&&(((a24==1)&&((a19==5)&&(!(a7==1)&&((a14==8)&&((((!(a20==1)&&((input==4)&&(a25==1)))&&(a22==1))&&!(a11==1))&&(a28==1))))))&&(a29==5)))){ + a7 = 1; + a0 = 1; + a20 = 1; + a19 = 1; + a11 = 1; + return -1; + } else if(((a11==1)&&(!(a0==1)&&((a14==9)&&(((((a22==1)&&((a19==3)&&(!(a25==1)&&((((a29==5)||(a29==6))&&(input==4))&&(a28==1)))))&&(a7==1))&&!(a20==1))&&!(a24==1)))))){ + a24 = 1; + a0 = 1; + a19 = 2; + a29 = 7; + a20 = 1; + return 24; + } else if((((a25==1)&&((a28==1)&&((a19==4)&&((!(a24==1)&&((a20==1)&&(((a14==9)&&((((a29==8)||(a29==9))&&(input==5))&&!(a11==1)))&&(a22==1))))&&!(a0==1)))))&&(a7==1))){ + a11 = 1; + a14 = 8; + a29 = 8; + a7 = 0; + a24 = 1; + a19 = 2; + a20 = 0; + return 24; + } else if(((a19==3)&&((a28==1)&&(((!(a20==1)&&(((!(a7==1)&&((a14==8)&&((a22==1)&&((a0==1)&&(input==3)))))&&(a11==1))&&(a29==5)))&&(a25==1))&&!(a24==1))))){ + a25 = 0; + a7 = 1; + a11 = 0; + a0 = 0; + a24 = 1; + a29 = 8; + a20 = 1; + a19 = 2; + return 21; + } else if((((((a19==1)&&(((((a22==1)&&((a25==1)&&((((a29==5)||(a29==6))&&(input==6))&&(a0==1))))&&(a28==1))&&(a14==8))&&(a11==1)))&&!(a20==1))&&(a7==1))&&!(a24==1))){ + a20 = 1; + a0 = 0; + a29 = 9; + a24 = 1; + a7 = 0; + return 24; + } else if((!(a11==1)&&(((a22==1)&&(!(a20==1)&&((a14==8)&&((a28==1)&&(((((a19==5)&&(((a29==5)||(a29==6))&&(input==3)))&&(a0==1))&&(a25==1))&&!(a24==1))))))&&!(a7==1)))){ + a7 = 1; + a11 = 1; + a29 = 5; + a19 = 1; + a24 = 1; + a20 = 1; + return -1; + } else if(((a0==1)&&((a19==3)&&((a20==1)&&((a22==1)&&((a28==1)&&(((a11==1)&&(((a14==8)&&(!(a25==1)&&((input==6)&&((a29==8)||((a29==6)||(a29==7))))))&&!(a24==1)))&&(a7==1)))))))){ + a0 = 0; + a19 = 4; + a29 = 7; + a24 = 1; + return 23; + } else if((!(a25==1)&&((a19==5)&&(!(a20==1)&&(((a7==1)&&((a14==8)&&(!(a24==1)&&(((a28==1)&&(((a11==1)&&(input==3))&&(a29==6)))&&!(a0==1)))))&&(a22==1)))))){ + a29 = 5; + a19 = 2; + a7 = 0; + a14 = 9; + a25 = 1; + a24 = 1; + return 23; + } else if(((!(a24==1)&&(!(a11==1)&&((a22==1)&&((a19==3)&&(((a28==1)&&(!(a7==1)&&(!(a25==1)&&((a14==8)&&((input==2)&&((a29==8)||(a29==9)))))))&&(a0==1))))))&&!(a20==1))){ + a29 = 5; + a19 = 4; + a7 = 1; + return -1; + } else if((((a22==1)&&((a14==8)&&((!(a7==1)&&((((a28==1)&&((a24==1)&&(((((a29==8)&&(a19==1))||((a29==9)&&(a19==1)))||((a19==2)&&(a29==5)))&&(input==2))))&&(a25==1))&&!(a20==1)))&&(a11==1))))&&!(a0==1))){ + a29 = 7; + a25 = 0; + a20 = 1; + a19 = 1; + return -1; + } else if(((!(a24==1)&&((a20==1)&&(((a22==1)&&((((((a14==8)&&((((a29==5)||(a29==6))||(a29==7))&&(input==2)))&&!(a0==1))&&(a7==1))&&(a28==1))&&(a11==1)))&&(a19==4))))&&!(a25==1))){ + a24 = 1; + a19 = 5; + a25 = 1; + a14 = 9; + a29 = 9; + return 23; + } else if(((a0==1)&&((a19==2)&&(((a22==1)&&((((a25==1)&&(((((input==4)&&((a29==7)||((a29==5)||(a29==6))))&&(a14==9))&&!(a24==1))&&!(a20==1)))&&(a11==1))&&!(a7==1)))&&(a28==1))))){ + a25 = 0; + a20 = 1; + a19 = 3; + a0 = 0; + a14 = 8; + a29 = 6; + return 23; + } else if(((a11==1)&&((a7==1)&&(((((!(a0==1)&&(((a14==9)&&(((((a19==4)&&(a29==8))||((a29==9)&&(a19==4)))||((a29==5)&&(a19==5)))&&(input==2)))&&(a22==1)))&&(a28==1))&&(a25==1))&&!(a20==1))&&(a24==1))))){ + a19 = 5; + a25 = 0; + a29 = 5; + a14 = 8; + return 24; + } else if((((((a0==1)&&((a28==1)&&((a20==1)&&(((a24==1)&&((!(a25==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==6)))&&(a19==3)))&&(a22==1)))))&&!(a7==1))&&(a11==1))&&(a14==8))){ + a19 = 4; + a20 = 0; + a29 = 7; + return 21; + } else if((!(a25==1)&&((a24==1)&&(((a11==1)&&(((a7==1)&&((a22==1)&&((a0==1)&&((a29==9)&&(!(a20==1)&&((a28==1)&&(input==4)))))))&&(a14==10)))&&(a19==4))))){ + a24 = 0; + a20 = 1; + a0 = 0; + a29 = 5; + a14 = 8; + a19 = 1; + return -1; + } else if(((a22==1)&&(((a11==1)&&((((a19==1)&&((a14==10)&&((a28==1)&&(((a29==8)&&((input==4)&&(a7==1)))&&(a25==1)))))&&(a20==1))&&!(a24==1)))&&(a0==1)))){ + a29 = 7; + a14 = 8; + a11 = 0; + a19 = 4; + a25 = 0; + a20 = 0; + return 21; + } else if((((a11==1)&&((((((a28==1)&&((((a25==1)&&((input==4)&&((a29==8)||((a29==6)||(a29==7)))))&&(a14==9))&&!(a0==1)))&&(a24==1))&&(a20==1))&&!(a7==1))&&(a22==1)))&&(a19==1))){ + a29 = 5; + a14 = 8; + a7 = 1; + a0 = 1; + return -1; + } else if(((!(a11==1)&&((a25==1)&&((a14==9)&&((((a0==1)&&(!(a24==1)&&(((a22==1)&&((input==1)&&((a29==7)||(a29==8))))&&(a7==1))))&&!(a20==1))&&(a28==1)))))&&(a19==4))){ + a11 = 1; + a19 = 1; + a24 = 1; + a14 = 8; + a20 = 1; + a29 = 5; + return -1; + } else if(((a28==1)&&(((a0==1)&&(((a24==1)&&((a14==8)&&(((a22==1)&&((((((a29==5)||(a29==6))||(a29==7))&&(input==5))&&(a25==1))&&(a19==5)))&&(a11==1))))&&!(a20==1)))&&(a7==1)))){ + a29 = 6; + a19 = 3; + a25 = 0; + a24 = 0; + return 23; + } else if(((((!(a7==1)&&(((a20==1)&&(((a24==1)&&((a22==1)&&(((a29==9)&&(input==1))&&(a28==1))))&&(a19==3)))&&!(a25==1)))&&(a14==8))&&!(a11==1))&&!(a0==1))){ + a25 = 1; + a20 = 0; + a11 = 1; + a19 = 5; + return 24; + } else if((!(a25==1)&&(((a11==1)&&((a28==1)&&((a22==1)&&(!(a20==1)&&((a14==8)&&(((a19==4)&&((a29==7)&&(!(a0==1)&&(input==3))))&&(a7==1)))))))&&!(a24==1)))){ + a11 = 0; + a0 = 1; + a25 = 1; + a29 = 9; + a7 = 0; + return 23; + } else if((!(a7==1)&&((a24==1)&&((a0==1)&&((!(a25==1)&&(!(a11==1)&&((((((((a29==7)||(a29==8))||(a29==9))&&(input==6))&&!(a20==1))&&(a19==1))&&(a22==1))&&(a14==9))))&&(a28==1)))))){ + a0 = 0; + a11 = 1; + a29 = 5; + a19 = 3; + a14 = 8; + a7 = 1; + return 24; + } else if(((a22==1)&&(!(a0==1)&&(!(a24==1)&&((a14==9)&&((!(a11==1)&&(((input==1)&&((((a29==9)&&((a7==1)&&!(a25==1)))&&(a19==5))||((((a25==1)&&!(a7==1))&&(a29==5))&&(a19==1))))&&(a28==1)))&&(a20==1))))))){ + a25 = 1; + a14 = 8; + a19 = 5; + a29 = 8; + a24 = 1; + a11 = 1; + a7 = 1; + return -1; + } else if((((a24==1)&&((((a25==1)&&((a22==1)&&((((((a20==1)&&(input==4))&&(a11==1))&&(a29==8))&&(a28==1))&&(a7==1))))&&(a19==5))&&(a14==9)))&&(a0==1))){ + a19 = 4; + a0 = 0; + a7 = 0; + a14 = 8; + a20 = 0; + return 21; + } else if(((a19==3)&&((((a28==1)&&((((a22==1)&&((a14==9)&&(((a7==1)&&((input==4)&&(((a29==5)||(a29==6))||(a29==7))))&&!(a25==1))))&&(a24==1))&&!(a20==1)))&&!(a0==1))&&(a11==1)))){ + a29 = 6; + a20 = 1; + a19 = 2; + return -1; + } else if((((a28==1)&&((!(a20==1)&&((a14==9)&&(((a22==1)&&(((a0==1)&&((input==1)&&((((a19==3)&&(a29==8))||((a19==3)&&(a29==9)))||((a29==5)&&(a19==4)))))&&(a25==1)))&&(a24==1))))&&(a11==1)))&&!(a7==1))){ + a29 = 5; + a20 = 1; + a14 = 8; + a19 = 1; + a7 = 1; + return -1; + } else if((((a29==5)&&(((!(a7==1)&&(((a20==1)&&(((!(a11==1)&&((input==4)&&!(a25==1)))&&(a19==4))&&!(a24==1)))&&(a28==1)))&&(a22==1))&&!(a0==1)))&&(a14==8))){ + a20 = 0; + a14 = 9; + a7 = 1; + a24 = 1; + a25 = 1; + a29 = 8; + a19 = 3; + return 24; + } else if((((a19==1)&&((a20==1)&&(!(a24==1)&&(!(a25==1)&&(((!(a0==1)&&((a22==1)&&((((a29==5)||(a29==6))&&(input==1))&&(a14==9))))&&(a7==1))&&(a28==1))))))&&!(a11==1))){ + a24 = 1; + a29 = 7; + a7 = 0; + a25 = 1; + a11 = 1; + a19 = 5; + a14 = 8; + a20 = 0; + return 24; + } else if(((a22==1)&&(((a7==1)&&(((((a14==8)&&((((((a29==9)&&(a19==4))||((a29==5)&&(a19==5)))&&(input==4))&&!(a25==1))&&(a28==1)))&&!(a24==1))&&(a20==1))&&!(a0==1)))&&!(a11==1)))){ + a24 = 1; + a19 = 5; + a29 = 8; + a14 = 9; + return 21; + } else if(((a28==1)&&(!(a25==1)&&(((((a22==1)&&((((a0==1)&&(!(a20==1)&&(((a29==8)||(a29==9))&&(input==3))))&&!(a24==1))&&(a19==2)))&&!(a7==1))&&!(a11==1))&&(a14==8))))){ + a19 = 3; + a25 = 1; + a14 = 9; + a24 = 1; + a29 = 6; + return 24; + } else if(((a22==1)&&(((!(a25==1)&&(((((a20==1)&&((!(a24==1)&&(((a29==6)||(a29==7))&&(input==2)))&&!(a11==1)))&&(a0==1))&&!(a7==1))&&(a19==4)))&&(a14==8))&&(a28==1)))){ + a11 = 1; + a25 = 1; + a7 = 1; + a24 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((!(a24==1)&&((!(a20==1)&&(((((a19==1)&&((((((a29==5)||(a29==6))||(a29==7))&&(input==1))&&!(a7==1))&&(a22==1)))&&(a28==1))&&(a11==1))&&!(a25==1)))&&(a14==9)))&&!(a0==1))){ + a19 = 4; + a25 = 1; + a29 = 8; + a0 = 1; + a20 = 1; + a11 = 0; + return 23; + } else if(((a22==1)&&((a19==2)&&((((a28==1)&&(!(a0==1)&&(((a14==8)&&((((input==2)&&(((a29==7)||(a29==8))||(a29==9)))&&!(a20==1))&&(a7==1)))&&(a25==1))))&&!(a24==1))&&!(a11==1))))){ + a11 = 1; + a0 = 1; + a25 = 0; + a19 = 1; + a7 = 0; + a24 = 1; + a20 = 1; + a29 = 9; + return -1; + } else if(((a24==1)&&(((a14==9)&&((a28==1)&&(((((a11==1)&&(!(a7==1)&&((a29==9)&&((a22==1)&&(input==5)))))&&(a20==1))&&!(a25==1))&&(a19==3))))&&!(a0==1)))){ + a14 = 8; + a29 = 8; + a7 = 1; + a19 = 2; + return 23; + } else if((((a14==8)&&(((a19==3)&&(((!(a24==1)&&(!(a11==1)&&(!(a25==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==3))&&(a22==1)))))&&(a28==1))&&!(a20==1)))&&(a7==1)))&&!(a0==1))){ + a19 = 4; + a14 = 9; + a29 = 9; + a24 = 1; + a7 = 0; + a25 = 1; + return 24; + } return calculate_output46(input); + } + + int calculate_output46(int input) { + if(((a28==1)&&((!(a0==1)&&(((a14==9)&&(((a20==1)&&(((((a22==1)&&(input==4))&&(a19==2))&&(a24==1))&&(a7==1)))&&!(a11==1)))&&!(a25==1)))&&(a29==8)))){ + a29 = 6; + a19 = 1; + a7 = 0; + a11 = 1; + a20 = 0; + a14 = 8; + return 24; + } else if(((((((a14==9)&&((a19==5)&&((((!(a20==1)&&((input==3)&&(a29==8)))&&(a28==1))&&(a22==1))&&!(a24==1))))&&!(a7==1))&&!(a11==1))&&(a25==1))&&(a0==1))){ + a19 = 2; + a24 = 1; + a7 = 1; + a29 = 6; + return 24; + } else if(((!(a24==1)&&((a22==1)&&((a14==9)&&((a28==1)&&(!(a20==1)&&((a11==1)&&(!(a7==1)&&((((input==5)&&((a29==6)||(a29==7)))&&!(a0==1))&&(a19==2)))))))))&&!(a25==1))){ + a19 = 3; + a25 = 1; + a29 = 7; + a11 = 0; + a0 = 1; + return -1; + } else if((!(a11==1)&&(((a19==3)&&((((a22==1)&&(((((a7==1)&&((input==2)&&((a29==7)||(a29==8))))&&(a28==1))&&(a0==1))&&(a25==1)))&&!(a24==1))&&!(a20==1)))&&(a14==9)))){ + a19 = 1; + a11 = 1; + a14 = 8; + a20 = 1; + a29 = 5; + a24 = 1; + return -1; + } else if((((((((a22==1)&&(!(a25==1)&&((a7==1)&&((a19==3)&&((!(a0==1)&&(input==3))&&!(a24==1))))))&&(a29==7))&&(a11==1))&&(a28==1))&&(a14==9))&&!(a20==1))){ + a7 = 0; + a29 = 6; + a14 = 8; + a20 = 1; + return -1; + } else if(((((a14==9)&&(((a28==1)&&((((((a29==8)&&(((a24==1)&&(!(a7==1)&&!(a20==1)))&&!(a25==1)))&&(a19==5))||((a19==5)&&((a29==9)&&(((!(a20==1)&&!(a7==1))&&(a24==1))&&!(a25==1)))))||((((((a20==1)&&(a7==1))&&!(a24==1))&&(a25==1))&&(a29==5))&&(a19==1)))&&(input==6)))&&(a11==1)))&&(a0==1))&&(a22==1))){ + a25 = 0; + a24 = 1; + a7 = 1; + a19 = 4; + a11 = 0; + a20 = 1; + a29 = 5; + return 24; + } else if((((a20==1)&&(((a19==2)&&((a0==1)&&((a7==1)&&(((a29==9)&&((((a14==9)&&(input==4))&&(a11==1))&&!(a25==1)))&&(a24==1)))))&&(a28==1)))&&(a22==1))){ + a0 = 0; + a7 = 0; + a11 = 0; + a19 = 4; + a29 = 7; + a24 = 0; + return 24; + } else if((((a25==1)&&((a19==2)&&((((a20==1)&&(((a22==1)&&(((a29==7)&&((input==3)&&(a24==1)))&&(a28==1)))&&(a14==8)))&&(a7==1))&&!(a11==1))))&&!(a0==1))){ + a29 = 5; + a11 = 1; + a0 = 1; + a19 = 1; + return -1; + } else if((!(a0==1)&&(((a11==1)&&(!(a20==1)&&((a14==9)&&((a22==1)&&((a28==1)&&((a25==1)&&(((input==5)&&((((a29==9)&&(a19==4))||((a29==5)&&(a19==5)))||((a29==6)&&(a19==5))))&&(a7==1))))))))&&!(a24==1)))){ + a24 = 1; + a19 = 3; + a14 = 8; + a29 = 6; + a20 = 1; + a25 = 0; + return 21; + } else if(((a19==2)&&(!(a24==1)&&(((a20==1)&&((a22==1)&&(((a11==1)&&((a7==1)&&(((((a29==6)||(a29==7))&&(input==2))&&!(a25==1))&&(a14==8))))&&!(a0==1))))&&(a28==1))))){ + a25 = 1; + a24 = 1; + a0 = 1; + a14 = 9; + a19 = 3; + a11 = 0; + a7 = 0; + a29 = 5; + return 23; + } else if(((((a0==1)&&((a14==8)&&((((((!(a7==1)&&((input==3)&&((a29==7)||(a29==8))))&&(a24==1))&&(a20==1))&&(a22==1))&&!(a11==1))&&!(a25==1))))&&(a28==1))&&(a19==4))){ + a7 = 1; + a29 = 5; + a11 = 1; + a19 = 1; + a25 = 1; + return -1; + } else if(((!(a7==1)&&(!(a20==1)&&(((a11==1)&&((a24==1)&&((a0==1)&&((a28==1)&&((((a19==5)&&((a29==9)&&(a25==1)))||((a19==1)&&(!(a25==1)&&(a29==5))))&&(input==1))))))&&(a22==1))))&&(a14==8))){ + a29 = 6; + a19 = 4; + a11 = 0; + a25 = 0; + return 24; + } else if((((a11==1)&&((a22==1)&&(!(a7==1)&&((a29==6)&&((a0==1)&&((((!(a20==1)&&((a24==1)&&(input==6)))&&(a19==1))&&!(a25==1))&&(a28==1)))))))&&(a14==9))){ + a0 = 0; + a24 = 0; + a14 = 8; + a7 = 1; + a29 = 8; + return -1; + } else if((((a14==8)&&((a25==1)&&((a28==1)&&((a24==1)&&((a19==1)&&((a22==1)&&(((((((a29==6)||(a29==7))||(a29==8))&&(input==4))&&!(a0==1))&&(a20==1))&&(a7==1))))))))&&(a11==1))){ + a0 = 1; + a20 = 0; + a14 = 9; + a29 = 7; + a7 = 0; + a19 = 5; + a11 = 0; + return 24; + } else if(((a25==1)&&((!(a20==1)&&((a22==1)&&(((a24==1)&&((((a19==3)&&(((input==1)&&(a14==8))&&!(a0==1)))&&!(a11==1))&&(a28==1)))&&(a7==1))))&&(a29==7)))){ + a11 = 1; + a7 = 0; + a19 = 5; + return 21; + } else if((((((((a22==1)&&((a14==9)&&(((a7==1)&&((((a29==8)||(a29==9))&&(input==1))&&(a19==5)))&&(a20==1))))&&(a28==1))&&!(a11==1))&&(a0==1))&&!(a24==1))&&!(a25==1))){ + a19 = 3; + a20 = 0; + a0 = 0; + a24 = 1; + a14 = 8; + a25 = 1; + a29 = 7; + return 24; + } else if(((a25==1)&&((a19==2)&&((a0==1)&&(((((((a28==1)&&(((a24==1)&&(input==1))&&(a20==1)))&&(a22==1))&&(a14==9))&&(a7==1))&&(a11==1))&&(a29==6)))))){ + a0 = 0; + a19 = 3; + a7 = 0; + a24 = 0; + a11 = 0; + return 21; + } else if((!(a25==1)&&(((((a22==1)&&((a14==8)&&((((((a29==6)&&(input==4))&&(a0==1))&&!(a7==1))&&(a20==1))&&(a28==1))))&&!(a11==1))&&(a24==1))&&(a19==2)))){ + a24 = 0; + a29 = 5; + a19 = 3; + a20 = 0; + return 24; + } else if(((a20==1)&&(((a22==1)&&((a29==9)&&((a14==9)&&(!(a11==1)&&(((a28==1)&&((a19==3)&&(((a0==1)&&(input==2))&&(a7==1))))&&(a25==1))))))&&(a24==1)))){ + a0 = 0; + a14 = 8; + a11 = 1; + a20 = 0; + a29 = 6; + return 24; + } else if(((!(a25==1)&&((a28==1)&&(((!(a24==1)&&((a19==1)&&((((a7==1)&&((a14==8)&&(input==3)))&&(a20==1))&&(a29==9))))&&!(a11==1))&&(a22==1))))&&(a0==1))){ + a24 = 1; + a25 = 1; + a29 = 5; + a11 = 1; + return -1; + } else if(((((a11==1)&&((a19==5)&&((((a20==1)&&(((a25==1)&&(!(a24==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==1))))&&(a0==1)))&&(a14==8))&&(a28==1))))&&(a7==1))&&(a22==1))){ + a19 = 4; + a29 = 8; + a20 = 0; + a11 = 0; + a7 = 0; + a25 = 0; + return 23; + } else if((((a19==2)&&((a28==1)&&((!(a7==1)&&(((!(a20==1)&&((a22==1)&&((((a29==5)||(a29==6))&&(input==6))&&!(a24==1))))&&(a14==8))&&!(a25==1)))&&!(a0==1))))&&(a11==1))){ + a7 = 1; + a29 = 6; + a11 = 0; + return 23; + } else if(((a14==9)&&(!(a0==1)&&((!(a20==1)&&(((a22==1)&&((((((input==5)&&((a29==5)||(a29==6)))&&(a19==1))&&(a11==1))&&!(a25==1))&&(a24==1)))&&(a7==1)))&&(a28==1))))){ + a0 = 1; + a25 = 1; + a14 = 8; + a20 = 1; + a29 = 5; + return -1; + } else if((!(a20==1)&&((a19==2)&&((a28==1)&&((a14==9)&&(((a0==1)&&((a24==1)&&(!(a11==1)&&(((a25==1)&&(((a29==7)||(a29==8))&&(input==3)))&&(a7==1)))))&&(a22==1))))))){ + a11 = 1; + a0 = 0; + a29 = 8; + a24 = 0; + a20 = 1; + a25 = 0; + a14 = 8; + return -1; + } else if(((a28==1)&&(((a19==2)&&(((a22==1)&&(((a14==8)&&(((a11==1)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==3))&&(a20==1)))&&!(a7==1)))&&!(a24==1)))&&!(a25==1)))&&(a0==1)))){ + a29 = 5; + a7 = 1; + a19 = 3; + a0 = 0; + return 23; + } else if((((!(a20==1)&&((!(a0==1)&&((a22==1)&&((((((a19==5)&&((!(a25==1)&&(a7==1))&&(a29==9)))||((a19==1)&&((a29==5)&&((a25==1)&&!(a7==1)))))||(((a29==6)&&(!(a7==1)&&(a25==1)))&&(a19==1)))&&(input==4))&&!(a11==1))))&&(a14==9)))&&(a28==1))&&!(a24==1))){ + a19 = 5; + a11 = 1; + a29 = 8; + a14 = 8; + a25 = 1; + a7 = 0; + a24 = 1; + return -1; + } else if((((!(a7==1)&&(((a20==1)&&((((((((a19==2)&&(a29==9))||((a29==5)&&(a19==3)))&&(input==3))&&(a25==1))&&(a24==1))&&(a14==8))&&(a22==1)))&&(a28==1)))&&(a11==1))&&!(a0==1))){ + a19 = 1; + a7 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if((((((((a11==1)&&((((a7==1)&&((input==4)&&(((a29==6)&&(a19==5))||(((a19==4)&&(a29==9))||((a29==5)&&(a19==5))))))&&!(a24==1))&&(a28==1)))&&!(a20==1))&&(a22==1))&&(a0==1))&&(a14==9))&&(a25==1))){ + a29 = 6; + a20 = 1; + a19 = 1; + a14 = 10; + return 24; + } else if((!(a25==1)&&(((a28==1)&&((a7==1)&&(((((a22==1)&&(!(a20==1)&&((input==1)&&(((a29==6)&&(a19==3))||(((a29==9)&&(a19==2))||((a19==3)&&(a29==5)))))))&&!(a24==1))&&!(a11==1))&&(a14==9))))&&!(a0==1)))){ + a0 = 1; + a29 = 6; + a24 = 1; + a7 = 0; + a19 = 1; + return -1; + } else if((!(a11==1)&&(!(a25==1)&&(!(a0==1)&&(!(a24==1)&&((a22==1)&&(!(a20==1)&&((((((((a19==3)&&(a29==9))||((a19==4)&&(a29==5)))||((a19==4)&&(a29==6)))&&(input==3))&&!(a7==1))&&(a14==9))&&(a28==1))))))))){ + a11 = 1; + a19 = 3; + a0 = 1; + a7 = 1; + a20 = 1; + a29 = 5; + return 21; + } else if(((a29==6)&&((a28==1)&&(!(a24==1)&&(((a25==1)&&((((a22==1)&&(((!(a7==1)&&(input==2))&&(a11==1))&&(a20==1)))&&(a0==1))&&(a14==8)))&&(a19==4)))))){ + a24 = 1; + a0 = 0; + a20 = 0; + a29 = 8; + a25 = 0; + return 24; + } else if(((a14==8)&&((a28==1)&&(((!(a24==1)&&(((!(a20==1)&&((a19==4)&&((((a29==6)||(a29==7))&&(input==6))&&(a7==1))))&&(a11==1))&&(a0==1)))&&!(a25==1))&&(a22==1))))){ + a24 = 1; + a0 = 0; + a11 = 0; + a20 = 1; + a29 = 9; + a19 = 1; + a25 = 1; + return 24; + } else if(((((!(a24==1)&&(((a11==1)&&(!(a25==1)&&((a0==1)&&(((input==2)&&(((a19==3)&&(a29==5))||(((a19==2)&&(a29==8))||((a19==2)&&(a29==9)))))&&(a20==1)))))&&(a14==8)))&&(a28==1))&&(a22==1))&&(a7==1))){ + a24 = 1; + a19 = 3; + a29 = 7; + a0 = 0; + return 24; + } else if(((a19==3)&&(((a7==1)&&((a28==1)&&((((a11==1)&&((a25==1)&&((((input==4)&&(((a29==5)||(a29==6))||(a29==7)))&&(a0==1))&&(a22==1))))&&(a24==1))&&(a14==10))))&&(a20==1)))){ + a11 = 0; + a25 = 0; + a29 = 9; + a19 = 1; + a7 = 0; + a14 = 9; + a20 = 0; + return 24; + } else if(((a24==1)&&((a11==1)&&(((a14==8)&&((a0==1)&&(!(a7==1)&&((a22==1)&&(((((input==6)&&(a29==7))&&(a25==1))&&(a19==3))&&(a20==1))))))&&(a28==1))))){ + a7 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if(((a28==1)&&((a7==1)&&((a0==1)&&((((((a19==2)&&(((((a29==6)||(a29==7))&&(input==3))&&(a20==1))&&!(a25==1)))&&(a11==1))&&(a22==1))&&(a24==1))&&(a14==10)))))){ + a29 = 5; + a14 = 8; + a25 = 1; + a19 = 1; + return -1; + } else if((!(a25==1)&&(((a14==8)&&((((a22==1)&&(((a7==1)&&(!(a11==1)&&(!(a0==1)&&((input==3)&&((a29==8)||((a29==6)||(a29==7)))))))&&(a24==1)))&&(a19==2))&&!(a20==1)))&&(a28==1)))){ + a19 = 1; + a11 = 1; + a29 = 5; + a25 = 1; + a20 = 1; + a0 = 1; + return -1; + } else if(((a28==1)&&(((((!(a24==1)&&((a22==1)&&(((a19==5)&&(((input==1)&&(a29==8))&&(a14==9)))&&!(a20==1))))&&(a0==1))&&!(a11==1))&&!(a7==1))&&(a25==1)))){ + a14 = 8; + a24 = 1; + a29 = 9; + a19 = 1; + a0 = 0; + a11 = 1; + return 23; + } else if((!(a0==1)&&((a28==1)&&((a19==2)&&(((a25==1)&&(((((a20==1)&&((((a29==7)||(a29==8))&&(input==1))&&(a14==8)))&&!(a7==1))&&(a24==1))&&(a11==1)))&&(a22==1)))))){ + a7 = 1; + a19 = 1; + a29 = 5; + a0 = 1; + return -1; + } else if((!(a7==1)&&(((!(a11==1)&&(((a14==8)&&(((a28==1)&&(((((a29==6)||(a29==7))&&(input==5))&&(a19==2))&&!(a20==1)))&&!(a25==1)))&&!(a0==1)))&&(a22==1))&&!(a24==1)))){ + a7 = 1; + a11 = 1; + a25 = 1; + a29 = 5; + a19 = 1; + a20 = 1; + a24 = 1; + a0 = 1; + return -1; + } else if((((a11==1)&&((((a24==1)&&((a25==1)&&(!(a7==1)&&((!(a0==1)&&((((a29==7)||(a29==8))&&(input==2))&&(a14==8)))&&(a28==1)))))&&(a20==1))&&(a19==3)))&&(a22==1))){ + a7 = 1; + a0 = 1; + a29 = 5; + a19 = 1; + return -1; + } else if((((a19==3)&&(((a14==9)&&(((a7==1)&&((((a28==1)&&((a25==1)&&(((a29==7)||(a29==8))&&(input==5))))&&(a24==1))&&(a22==1)))&&(a0==1)))&&!(a20==1)))&&!(a11==1))){ + a24 = 0; + a14 = 8; + a29 = 8; + a25 = 0; + return -1; + } else if(((a7==1)&&((((a20==1)&&(((a14==9)&&((((a28==1)&&((input==6)&&((((a29==9)&&(a19==1))||((a19==2)&&(a29==5)))||((a29==6)&&(a19==2)))))&&(a25==1))&&!(a0==1)))&&!(a11==1)))&&!(a24==1))&&(a22==1)))){ + a29 = 6; + a19 = 4; + a14 = 8; + return 24; + } else if(((((((((a11==1)&&(((((input==1)&&((a29==8)||(a29==9)))&&(a24==1))&&(a22==1))&&!(a7==1)))&&!(a25==1))&&(a28==1))&&(a19==2))&&(a14==8))&&(a20==1))&&(a0==1))){ + a29 = 5; + a19 = 1; + a20 = 0; + return 24; + } else if((!(a25==1)&&(((a22==1)&&((a19==2)&&((((a14==10)&&((a24==1)&&((((a11==1)&&(input==2))&&(a0==1))&&(a28==1))))&&!(a7==1))&&(a20==1))))&&(a29==5)))){ + a7 = 1; + a25 = 1; + a11 = 0; + a19 = 5; + a14 = 9; + return 21; + } else if((((!(a24==1)&&(!(a0==1)&&((a22==1)&&(((a7==1)&&((a19==5)&&(((a20==1)&&((input==4)&&((a29==5)||(a29==6))))&&(a28==1))))&&!(a25==1)))))&&(a11==1))&&(a14==8))){ + a29 = 5; + a19 = 3; + a24 = 1; + return 21; + } else if(((a14==8)&&((a28==1)&&((a7==1)&&(((a22==1)&&(((a19==3)&&((a24==1)&&((a0==1)&&((((a29==7)||(a29==8))&&(input==2))&&(a25==1)))))&&(a20==1)))&&!(a11==1)))))){ + a29 = 5; + a11 = 1; + a19 = 1; + return -1; + } else if((((a20==1)&&(((a28==1)&&((a25==1)&&(((a14==9)&&(((a7==1)&&((a24==1)&&((a22==1)&&(input==4))))&&(a19==2)))&&(a29==7))))&&(a0==1)))&&(a11==1))){ + a11 = 0; + a19 = 1; + a20 = 0; + a7 = 0; + a14 = 8; + a0 = 0; + return -1; + } else if(((a14==9)&&(((a22==1)&&((((((a25==1)&&(((!(a11==1)&&(input==6))&&!(a0==1))&&(a28==1)))&&(a24==1))&&!(a7==1))&&(a29==6))&&!(a20==1)))&&(a19==1)))){ + a19 = 4; + a7 = 1; + a20 = 1; + a29 = 5; + a25 = 0; + a14 = 8; + return 21; + } else if((((a20==1)&&((a11==1)&&(((a0==1)&&((a14==10)&&(((a22==1)&&(((a7==1)&&((((a29==6)||(a29==7))||(a29==8))&&(input==1)))&&(a28==1)))&&!(a25==1))))&&(a19==1))))&&(a24==1))){ + a29 = 5; + a25 = 1; + a14 = 8; + return -1; + } else if((!(a0==1)&&(((((((a25==1)&&((((a20==1)&&((input==4)&&((a29==7)||(a29==8))))&&(a28==1))&&(a14==8)))&&(a19==3))&&(a11==1))&&!(a7==1))&&(a22==1))&&(a24==1)))){ + a19 = 4; + a11 = 0; + a7 = 1; + a0 = 1; + a25 = 0; + a20 = 0; + a24 = 0; + a29 = 6; + return -1; + } else if((((a25==1)&&((((!(a0==1)&&(!(a20==1)&&(!(a11==1)&&((a24==1)&&((((a29==6)||(a29==7))&&(input==5))&&(a28==1))))))&&(a22==1))&&(a14==9))&&(a19==5)))&&(a7==1))){ + a7 = 0; + a0 = 1; + a24 = 0; + a25 = 0; + a29 = 9; + a19 = 2; + return 24; + } else if(((a22==1)&&((!(a7==1)&&((a14==9)&&(((a25==1)&&((a28==1)&&(!(a24==1)&&(((a19==5)&&(!(a0==1)&&(input==4)))&&!(a11==1)))))&&(a29==8))))&&!(a20==1)))){ + a0 = 1; + a11 = 1; + a19 = 4; + a29 = 9; + a20 = 1; + return -1; + } else if(((a28==1)&&(((a7==1)&&(((a11==1)&&((((a0==1)&&(((input==2)&&((((a29==9)&&(a19==3))||((a19==4)&&(a29==5)))||((a29==6)&&(a19==4))))&&(a20==1)))&&(a14==9))&&!(a25==1)))&&(a22==1)))&&!(a24==1)))){ + a24 = 1; + a14 = 8; + a25 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((((a24==1)&&((!(a25==1)&&(((a14==9)&&((a28==1)&&(((a22==1)&&(((input==2)&&((a29==5)||(a29==6)))&&!(a11==1)))&&!(a20==1))))&&(a7==1)))&&(a19==1)))&&!(a0==1))){ + a14 = 8; + a29 = 6; + a11 = 1; + a20 = 1; + a19 = 3; + return -1; + } else if(((((a28==1)&&((a11==1)&&(((a14==9)&&((a25==1)&&((a24==1)&&(((a0==1)&&((input==5)&&(a20==1)))&&(a29==8)))))&&!(a7==1))))&&(a19==2))&&(a22==1))){ + a11 = 0; + a14 = 8; + a0 = 0; + a19 = 1; + a29 = 7; + return -1; + } else if((((a14==8)&&((((((!(a7==1)&&((a25==1)&&((a11==1)&&(((a29==5)||(a29==6))&&(input==2)))))&&!(a24==1))&&!(a0==1))&&(a22==1))&&(a28==1))&&!(a20==1)))&&(a19==5))){ + a7 = 1; + a0 = 1; + a24 = 1; + a19 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if((((a22==1)&&((a0==1)&&((a25==1)&&((((a14==10)&&((a24==1)&&((((input==5)&&(a20==1))&&!(a7==1))&&(a11==1))))&&(a28==1))&&(a29==7)))))&&(a19==4))){ + a14 = 8; + a20 = 0; + a0 = 0; + a29 = 5; + a25 = 0; + a11 = 0; + a19 = 2; + return 21; + } else if(((a20==1)&&((a7==1)&&((a24==1)&&(!(a0==1)&&(((((a28==1)&&((a22==1)&&((a14==8)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==2)))))&&(a19==1))&&(a25==1))&&(a11==1))))))){ + a29 = 5; + a0 = 1; + return -1; + } else if((!(a24==1)&&((((a11==1)&&(!(a25==1)&&((a22==1)&&((a28==1)&&((a7==1)&&((a20==1)&&(((input==2)&&((a29==8)||(a29==9)))&&(a19==4))))))))&&(a14==9))&&(a0==1)))){ + a25 = 1; + a24 = 1; + a20 = 0; + a14 = 10; + a29 = 8; + return 21; + } else if(((a11==1)&&(!(a24==1)&&((a19==1)&&(((a25==1)&&(((a22==1)&&((a7==1)&&((a14==9)&&((a28==1)&&((input==4)&&(((a29==5)||(a29==6))||(a29==7)))))))&&!(a20==1)))&&!(a0==1)))))){ + a25 = 0; + a29 = 6; + a24 = 1; + a19 = 3; + a14 = 8; + a7 = 0; + return 21; + } else if((((!(a11==1)&&((a28==1)&&(((((a19==5)&&((a29==9)&&(!(a25==1)&&((a24==1)&&(!(a20==1)&&!(a7==1))))))||(((a29==5)&&((!(a24==1)&&((a20==1)&&(a7==1)))&&(a25==1)))&&(a19==1)))&&(input==4))&&(a22==1))))&&(a14==9))&&!(a0==1))){ + a25 = 1; + a24 = 1; + a7 = 0; + a20 = 1; + a29 = 6; + a19 = 4; + return -1; + } else if(((((a22==1)&&(((a11==1)&&(((((a29==5)&&((!(a24==1)&&((a7==1)&&(a20==1)))&&(a25==1)))&&(a19==1))||((((!(a25==1)&&((!(a7==1)&&!(a20==1))&&(a24==1)))&&(a29==8))&&(a19==5))||(((((!(a20==1)&&!(a7==1))&&(a24==1))&&!(a25==1))&&(a29==9))&&(a19==5))))&&(input==3)))&&(a28==1)))&&(a0==1))&&(a14==9))){ + a25 = 1; + a14 = 10; + a24 = 1; + a29 = 5; + a20 = 1; + a19 = 5; + a7 = 0; + return 21; + } else if(((a24==1)&&((!(a25==1)&&((a22==1)&&(!(a11==1)&&((a28==1)&&(((a14==8)&&(!(a20==1)&&(((input==2)&&(((a29==5)||(a29==6))||(a29==7)))&&(a7==1))))&&(a19==5))))))&&(a0==1)))){ + a20 = 1; + a19 = 1; + a14 = 9; + a11 = 1; + a7 = 0; + a29 = 8; + return 24; + } else if(((a7==1)&&((a14==9)&&((a0==1)&&(!(a25==1)&&((a19==5)&&((a29==7)&&(!(a20==1)&&(((a28==1)&&(((a22==1)&&(input==2))&&(a11==1)))&&(a24==1)))))))))){ + a25 = 1; + a14 = 8; + a19 = 1; + a24 = 0; + a7 = 0; + a11 = 0; + a29 = 6; + return 24; + } else if(((((!(a25==1)&&((!(a24==1)&&(((((a22==1)&&((input==2)&&((a29==8)||(a29==9))))&&(a7==1))&&(a20==1))&&!(a0==1)))&&!(a11==1)))&&(a28==1))&&(a19==5))&&(a14==8))){ + a29 = 6; + a7 = 0; + a0 = 1; + a25 = 1; + a20 = 0; + return 21; + } else if((((((a28==1)&&((a0==1)&&(((a29==6)&&(((a7==1)&&(((a24==1)&&(input==5))&&!(a11==1)))&&(a22==1)))&&(a20==1))))&&(a14==8))&&(a25==1))&&(a19==4))){ + a25 = 0; + a11 = 1; + a20 = 0; + a0 = 0; + return 23; + } else if((!(a25==1)&&((!(a11==1)&&((((a24==1)&&(!(a7==1)&&(((((input==4)&&((a29==5)||(a29==6)))&&(a14==8))&&!(a20==1))&&(a28==1))))&&(a19==3))&&!(a0==1)))&&(a22==1)))){ + a11 = 1; + a20 = 1; + a0 = 1; + a25 = 1; + a19 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if((((a28==1)&&(!(a7==1)&&((!(a20==1)&&(((a19==5)&&(!(a0==1)&&(((a22==1)&&(((a29==6)||(a29==7))&&(input==1)))&&(a14==9))))&&(a25==1)))&&!(a11==1))))&&!(a24==1))){ + a19 = 4; + a29 = 7; + a20 = 1; + return -1; + } else if((((a20==1)&&((a22==1)&&(!(a11==1)&&((a28==1)&&(!(a0==1)&&((!(a24==1)&&((!(a25==1)&&((input==6)&&((a29==9)||((a29==7)||(a29==8)))))&&(a14==9)))&&(a19==2)))))))&&(a7==1))){ + a25 = 1; + a19 = 1; + a14 = 8; + a24 = 1; + a11 = 1; + a7 = 0; + a29 = 9; + return 24; + } else if((!(a25==1)&&(!(a11==1)&&(((!(a7==1)&&((a0==1)&&((((a28==1)&&((a19==1)&&(((a29==6)||(a29==7))&&(input==3))))&&(a22==1))&&(a20==1))))&&(a14==9))&&(a24==1))))){ + a11 = 1; + a25 = 1; + a7 = 1; + a29 = 6; + a19 = 5; + a24 = 0; + return 21; + } else if((((((a22==1)&&(!(a25==1)&&((a28==1)&&((!(a0==1)&&((((input==3)&&(((a29==7)||(a29==8))||(a29==9)))&&(a14==9))&&(a7==1)))&&!(a24==1)))))&&(a19==2))&&(a20==1))&&(a11==1))){ + a14 = 8; + a29 = 9; + a11 = 0; + a7 = 0; + a25 = 1; + return -1; + } else if(((a28==1)&&(!(a11==1)&&((a14==9)&&(((a22==1)&&((input==5)&&(((a19==5)&&((a29==9)&&(!(a25==1)&&((a24==1)&&(!(a20==1)&&!(a7==1))))))||((a19==1)&&((a29==5)&&((a25==1)&&(!(a24==1)&&((a20==1)&&(a7==1)))))))))&&!(a0==1)))))){ + a24 = 1; + a20 = 1; + a7 = 0; + a0 = 1; + a25 = 0; + a29 = 9; + a19 = 4; + return -1; + } else if((((a14==8)&&((((a7==1)&&((a28==1)&&(((a25==1)&&(!(a11==1)&&((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))&&(input==3))))&&(a24==1))))&&(a20==1))&&(a0==1)))&&(a22==1))){ + a29 = 7; + a20 = 0; + a11 = 1; + a7 = 0; + a0 = 0; + a19 = 1; + return 23; + } else if(((!(a25==1)&&(((a24==1)&&((a22==1)&&(!(a20==1)&&((a28==1)&&((a11==1)&&((a0==1)&&(((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))||((a19==4)&&(a29==6)))&&(input==1))))))))&&(a14==8)))&&(a7==1))){ + a19 = 1; + a29 = 5; + a25 = 1; + a20 = 1; + return -1; + } else if((((a19==3)&&(((a7==1)&&(((a28==1)&&((a11==1)&&((((((a29==7)||(a29==8))&&(input==3))&&(a22==1))&&(a0==1))&&!(a25==1))))&&(a14==10)))&&!(a20==1)))&&(a24==1))){ + a14 = 9; + a29 = 5; + a24 = 0; + a19 = 5; + return 24; + } else if(((((a7==1)&&((a28==1)&&(((a22==1)&&((a11==1)&&(((((input==6)&&((a29==6)||(a29==7)))&&(a20==1))&&(a0==1))&&!(a24==1))))&&(a19==1))))&&!(a25==1))&&(a14==8))){ + a29 = 9; + a25 = 1; + a0 = 0; + a24 = 1; + return 24; + } else if((((((a11==1)&&((((a28==1)&&(!(a24==1)&&((!(a20==1)&&((input==2)&&(((a29==5)||(a29==6))||(a29==7))))&&(a14==8))))&&!(a25==1))&&(a19==3)))&&(a22==1))&&!(a7==1))&&(a0==1))){ + a11 = 0; + a20 = 1; + a24 = 1; + a0 = 0; + a29 = 7; + return 21; + } else if((!(a7==1)&&(!(a25==1)&&(((a20==1)&&((!(a11==1)&&((a28==1)&&((a14==8)&&((a0==1)&&(((input==5)&&((a29==7)||(a29==8)))&&(a22==1))))))&&(a19==1)))&&(a24==1))))){ + a19 = 2; + a20 = 0; + a25 = 1; + a24 = 0; + a0 = 0; + a7 = 1; + a29 = 7; + return 24; + } else if(((a22==1)&&((!(a25==1)&&((a7==1)&&((a14==9)&&(!(a24==1)&&((a11==1)&&((((a20==1)&&(((a29==7)||(a29==8))&&(input==5)))&&(a28==1))&&!(a0==1)))))))&&(a19==5)))){ + a29 = 8; + a24 = 1; + a7 = 0; + a14 = 8; + return 21; + } else if(((((((((a7==1)&&((!(a11==1)&&(((((a29==5)||(a29==6))||(a29==7))&&(input==1))&&!(a25==1)))&&!(a20==1)))&&(a24==1))&&(a14==9))&&(a22==1))&&(a19==1))&&(a28==1))&&(a0==1))){ + a20 = 1; + a25 = 1; + a29 = 7; + a14 = 8; + a11 = 1; + a19 = 3; + a7 = 0; + return 24; + } else if(((a0==1)&&(((a28==1)&&((!(a20==1)&&((a14==8)&&((a19==4)&&(!(a11==1)&&((a25==1)&&(((input==1)&&(a24==1))&&(a29==9)))))))&&!(a7==1)))&&(a22==1)))){ + a19 = 1; + a11 = 1; + a7 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if(((a19==2)&&(((!(a11==1)&&((a0==1)&&(!(a24==1)&&((a28==1)&&(((((input==4)&&!(a20==1))&&(a29==7))&&(a25==1))&&(a22==1))))))&&!(a7==1))&&(a14==8)))){ + a24 = 1; + a29 = 8; + a7 = 1; + a19 = 1; + a0 = 0; + a11 = 1; + return 21; + } else if((((a25==1)&&((a7==1)&&((a14==9)&&((a0==1)&&(!(a11==1)&&(((a22==1)&&(((((a29==8)||(a29==9))&&(input==1))&&(a20==1))&&(a24==1)))&&(a19==4)))))))&&(a28==1))){ + a7 = 0; + a24 = 0; + a20 = 0; + a29 = 9; + a25 = 0; + a14 = 8; + a0 = 0; + return 21; + } else if(((!(a7==1)&&((((a28==1)&&((a14==9)&&((((a19==3)&&(((a22==1)&&(input==1))&&(a11==1)))&&(a0==1))&&(a20==1))))&&(a29==7))&&(a24==1)))&&(a25==1))){ + a14 = 8; + a19 = 1; + a29 = 5; + a7 = 1; + return -1; + } else if(((!(a0==1)&&((((((((!(a7==1)&&((input==4)&&((a29==8)||((a29==6)||(a29==7)))))&&(a28==1))&&(a22==1))&&(a14==9))&&!(a20==1))&&(a25==1))&&(a24==1))&&!(a11==1)))&&(a19==5))){ + a25 = 0; + a11 = 1; + a29 = 9; + a20 = 1; + a0 = 1; + return -1; + } else if(((a20==1)&&((a22==1)&&((((((a14==8)&&((!(a25==1)&&((a7==1)&&((input==3)&&((a29==6)||(a29==7)))))&&(a19==3)))&&(a28==1))&&!(a11==1))&&!(a24==1))&&!(a0==1))))){ + a25 = 1; + a11 = 1; + a0 = 1; + a24 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((((a14==8)&&((a28==1)&&((a24==1)&&(!(a11==1)&&((((a20==1)&&(((((a19==3)&&(a29==6))||(((a19==2)&&(a29==9))||((a19==3)&&(a29==5))))&&(input==6))&&(a22==1)))&&!(a0==1))&&!(a25==1))))))&&!(a7==1))){ + a29 = 8; + a19 = 1; + a20 = 0; + return 21; + } else if((!(a25==1)&&((((!(a24==1)&&((a22==1)&&((((a14==8)&&((((a29==8)||((a29==6)||(a29==7)))&&(input==5))&&!(a11==1)))&&(a28==1))&&(a19==4))))&&(a7==1))&&(a0==1))&&!(a20==1)))){ + a20 = 1; + a24 = 1; + a0 = 0; + a29 = 7; + a11 = 1; + a19 = 3; + return 23; + } else if(((a14==9)&&((!(a24==1)&&((a19==1)&&(((a28==1)&&((a22==1)&&((((a0==1)&&((((a29==7)||(a29==8))||(a29==9))&&(input==6)))&&!(a20==1))&&(a25==1))))&&!(a7==1))))&&!(a11==1)))){ + a29 = 9; + a19 = 3; + return 23; + } else if(((a14==8)&&(((((a19==1)&&(!(a11==1)&&((a0==1)&&(((a24==1)&&(((input==1)&&((a29==9)||((a29==7)||(a29==8))))&&!(a20==1)))&&(a22==1)))))&&!(a25==1))&&!(a7==1))&&(a28==1)))){ + a25 = 1; + a14 = 9; + a11 = 1; + a29 = 6; + a19 = 3; + return 21; + } else if(((((a0==1)&&(((a22==1)&&(!(a20==1)&&((a14==8)&&((!(a7==1)&&((a24==1)&&((input==1)&&((a29==8)||(a29==9)))))&&!(a25==1)))))&&(a19==2)))&&(a11==1))&&(a28==1))){ + a7 = 1; + a25 = 1; + a20 = 1; + a19 = 1; + a29 = 5; + return -1; + } else if((((a22==1)&&(!(a7==1)&&((a28==1)&&((a11==1)&&((a20==1)&&(((a29==6)&&((((input==4)&&(a19==1))&&(a0==1))&&(a14==9)))&&!(a24==1)))))))&&(a25==1))){ + a29 = 5; + a24 = 1; + a14 = 8; + a7 = 1; + return -1; + } else if((!(a24==1)&&(!(a7==1)&&((a14==9)&&((a22==1)&&(((a25==1)&&(!(a0==1)&&(((a11==1)&&((((a29==6)&&(a19==3))||(((a29==9)&&(a19==2))||((a29==5)&&(a19==3))))&&(input==2)))&&!(a20==1))))&&(a28==1))))))){ + a19 = 4; + a24 = 1; + a25 = 0; + a29 = 9; + a14 = 8; + return 24; + } else if((((((((!(a24==1)&&(((((((a29==6)||(a29==7))||(a29==8))&&(input==3))&&(a22==1))&&(a14==9))&&(a11==1)))&&!(a25==1))&&(a19==1))&&!(a7==1))&&(a28==1))&&!(a0==1))&&(a20==1))){ + a11 = 0; + a25 = 1; + a29 = 8; + a0 = 1; + a24 = 1; + a20 = 0; + a19 = 5; + return 24; + } else if(((a14==8)&&((a11==1)&&(((a22==1)&&(!(a24==1)&&(((!(a20==1)&&((a0==1)&&((a7==1)&&((input==5)&&(((a29==6)||(a29==7))||(a29==8))))))&&(a19==5))&&(a28==1))))&&!(a25==1))))){ + a20 = 1; + a19 = 3; + a24 = 1; + a25 = 1; + a0 = 0; + a29 = 5; + return 23; + } else if((!(a0==1)&&(((a28==1)&&((((a22==1)&&(((a24==1)&&((a14==8)&&((input==3)&&((((a29==8)&&(a19==4))||((a29==9)&&(a19==4)))||((a29==5)&&(a19==5))))))&&(a11==1)))&&!(a7==1))&&!(a20==1)))&&(a25==1)))){ + a7 = 1; + a20 = 1; + a19 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if((((!(a11==1)&&(((!(a0==1)&&(!(a24==1)&&(!(a7==1)&&((a22==1)&&(((input==4)&&((a29==8)||(a29==9)))&&(a14==9))))))&&(a28==1))&&(a25==1)))&&(a19==2))&&!(a20==1))){ + a29 = 5; + a14 = 8; + a0 = 1; + a11 = 1; + a24 = 1; + a20 = 1; + a19 = 1; + a7 = 1; + return -1; + } else if((!(a24==1)&&((((a0==1)&&((!(a7==1)&&((!(a20==1)&&(!(a11==1)&&((((a29==5)||(a29==6))&&(input==5))&&!(a25==1))))&&(a19==3)))&&(a28==1)))&&(a22==1))&&(a14==8)))){ + a25 = 1; + a29 = 6; + a20 = 1; + a19 = 4; + a24 = 1; + a11 = 1; + return -1; + } else if(((a14==10)&&((((((a19==1)&&((a7==1)&&((a11==1)&&((((input==3)&&((a29==9)||((a29==7)||(a29==8))))&&(a20==1))&&(a24==1)))))&&(a22==1))&&(a28==1))&&(a25==1))&&(a0==1)))){ + a14 = 8; + a29 = 5; + return -1; + } else if(((((a0==1)&&((a19==3)&&((!(a7==1)&&(!(a20==1)&&((a24==1)&&((a11==1)&&(((a29==7)&&(input==2))&&(a22==1))))))&&(a14==8))))&&(a25==1))&&(a28==1))){ + a11 = 0; + a29 = 8; + a7 = 1; + a19 = 4; + return 23; + } else if(((a11==1)&&((((a28==1)&&((a25==1)&&(((a19==4)&&(!(a7==1)&&(((a22==1)&&((a29==6)&&(input==1)))&&(a20==1))))&&(a14==8))))&&(a0==1))&&(a24==1)))){ + a25 = 0; + a29 = 7; + return 24; + } else if(((a28==1)&&((a20==1)&&((a14==9)&&(((a24==1)&&((a22==1)&&((!(a11==1)&&(((input==6)&&((((a19==3)&&(a29==8))||((a19==3)&&(a29==9)))||((a19==4)&&(a29==5))))&&!(a25==1)))&&!(a0==1))))&&!(a7==1)))))){ + a25 = 1; + a7 = 1; + a11 = 1; + a0 = 1; + a29 = 6; + a19 = 4; + a14 = 8; + return -1; + } else if((!(a25==1)&&((((a11==1)&&(((a19==4)&&((((a22==1)&&((a28==1)&&(((a29==9)||((a29==7)||(a29==8)))&&(input==4))))&&!(a0==1))&&(a14==8)))&&!(a20==1)))&&(a24==1))&&(a7==1)))){ + a29 = 5; + a0 = 1; + a20 = 1; + a25 = 1; + a19 = 1; + return -1; + } else if((((!(a25==1)&&((!(a24==1)&&((a19==2)&&((a20==1)&&((a14==8)&&(!(a7==1)&&(((input==4)&&(a28==1))&&(a0==1)))))))&&(a22==1)))&&(a29==5))&&(a11==1))){ + a29 = 8; + a0 = 0; + a7 = 1; + return 21; + } else if((((!(a24==1)&&(!(a0==1)&&(((a7==1)&&((a14==9)&&((((((a29==9)||((a29==7)||(a29==8)))&&(input==4))&&!(a11==1))&&(a20==1))&&(a19==3))))&&!(a25==1))))&&(a28==1))&&(a22==1))){ + a20 = 0; + a19 = 4; + a0 = 1; + a29 = 9; + return 23; + } else if(((a28==1)&&((a25==1)&&((a14==8)&&((a7==1)&&((((a22==1)&&((a11==1)&&(((a20==1)&&((input==4)&&((a29==7)||((a29==5)||(a29==6)))))&&(a19==5))))&&(a0==1))&&!(a24==1))))))){ + a29 = 7; + a11 = 0; + a7 = 0; + a20 = 0; + a25 = 0; + a19 = 3; + return 21; + } else if(((((a22==1)&&(((a14==10)&&(((((a20==1)&&(!(a24==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==3))))&&(a0==1))&&(a28==1))&&(a11==1)))&&(a7==1)))&&!(a25==1))&&(a19==1))){ + a14 = 8; + a29 = 5; + a24 = 1; + a25 = 1; + return -1; + } else if(((((a22==1)&&((a25==1)&&(((a28==1)&&(!(a0==1)&&(((a7==1)&&(!(a20==1)&&((((a29==5)||(a29==6))||(a29==7))&&(input==5))))&&!(a24==1))))&&(a19==1))))&&(a11==1))&&(a14==9))){ + a0 = 1; + a19 = 2; + a24 = 1; + a11 = 0; + a25 = 0; + a7 = 0; + a29 = 5; + return 21; + } else if(((a11==1)&&((a29==7)&&((a22==1)&&((a25==1)&&((((a28==1)&&((a19==2)&&((!(a20==1)&&((a7==1)&&(input==5)))&&(a14==9))))&&(a24==1))&&!(a0==1))))))){ + a29 = 5; + a19 = 1; + a14 = 8; + a0 = 1; + a20 = 1; + return -1; + } else if((!(a11==1)&&(((((a0==1)&&((a22==1)&&(((((a20==1)&&((input==4)&&(a28==1)))&&(a29==7))&&(a24==1))&&(a14==9))))&&(a7==1))&&(a25==1))&&(a19==2)))){ + a14 = 8; + a29 = 5; + a19 = 1; + a11 = 1; + return -1; + } else if(((a24==1)&&((a28==1)&&(((!(a20==1)&&((a14==9)&&((((a25==1)&&(((input==2)&&(a11==1))&&(a7==1)))&&(a19==5))&&!(a0==1))))&&(a22==1))&&(a29==9))))){ + a29 = 8; + a7 = 0; + a19 = 2; + a24 = 0; + a25 = 0; + a0 = 1; + return -1; + } else if((((a19==3)&&((((!(a20==1)&&(((a28==1)&&((((input==4)&&(((a29==5)||(a29==6))||(a29==7)))&&(a14==8))&&(a22==1)))&&(a11==1)))&&!(a7==1))&&!(a25==1))&&(a0==1)))&&!(a24==1))){ + a20 = 1; + a29 = 9; + a19 = 4; + a25 = 1; + a0 = 0; + a24 = 1; + return 21; + } else if((!(a0==1)&&(((a29==7)&&((a28==1)&&((a25==1)&&((a20==1)&&((((((input==3)&&(a22==1))&&(a19==1))&&(a14==9))&&(a11==1))&&(a24==1))))))&&(a7==1)))){ + a7 = 0; + a29 = 9; + a19 = 2; + a20 = 0; + a11 = 0; + a14 = 8; + a25 = 0; + return 21; + } else if((!(a11==1)&&(!(a7==1)&&((a28==1)&&(((((((((a0==1)&&(input==2))&&(a22==1))&&!(a20==1))&&(a14==9))&&(a19==5))&&!(a24==1))&&(a29==9))&&!(a25==1)))))){ + a19 = 2; + a25 = 1; + a11 = 1; + a20 = 1; + a29 = 5; + return -1; + } else if(((a11==1)&&(((((((a7==1)&&((a19==1)&&(!(a24==1)&&((((a29==6)||(a29==7))&&(input==2))&&(a14==9)))))&&(a20==1))&&(a28==1))&&(a25==1))&&(a22==1))&&(a0==1)))){ + a20 = 0; + a14 = 8; + a29 = 5; + a24 = 1; + a19 = 5; + a0 = 0; + return 21; + } else if(((a22==1)&&((((a20==1)&&(((a28==1)&&((((a25==1)&&(((input==6)&&((a29==6)||(a29==7)))&&(a19==1)))&&(a7==1))&&!(a11==1)))&&!(a24==1)))&&(a0==1))&&(a14==9)))){ + a29 = 5; + a19 = 4; + a25 = 0; + a14 = 8; + a24 = 1; + a0 = 0; + return 24; + } else if(((!(a0==1)&&((((a25==1)&&(((((((a28==1)&&(input==5))&&(a24==1))&&(a29==6))&&!(a11==1))&&(a14==8))&&(a19==5)))&&(a22==1))&&!(a7==1)))&&(a20==1))){ + a0 = 1; + a19 = 1; + a11 = 1; + a7 = 1; + a29 = 5; + return -1; + } else if(((a28==1)&&((a19==4)&&(!(a20==1)&&((a0==1)&&((a25==1)&&((a22==1)&&((a24==1)&&((a14==8)&&((((input==4)&&(((a29==5)||(a29==6))||(a29==7)))&&!(a7==1))&&!(a11==1))))))))))){ + a11 = 1; + a19 = 2; + a25 = 0; + a14 = 9; + a29 = 9; + a7 = 1; + return 24; + } else if((!(a20==1)&&(((a28==1)&&(((((a7==1)&&((!(a0==1)&&(!(a24==1)&&((input==3)&&((a29==8)||(a29==9)))))&&!(a25==1)))&&(a19==4))&&(a14==8))&&(a22==1)))&&(a11==1)))){ + a24 = 1; + a29 = 9; + a25 = 1; + a19 = 3; + a20 = 1; + return -1; + } else if((((!(a20==1)&&(((a29==6)&&((!(a7==1)&&((((a28==1)&&((input==4)&&(a11==1)))&&!(a24==1))&&(a19==1)))&&(a25==1)))&&(a0==1)))&&(a22==1))&&(a14==9))){ + a11 = 0; + a0 = 0; + a24 = 1; + a14 = 8; + return -1; + } else if(((a14==8)&&(((a20==1)&&(!(a7==1)&&(((!(a25==1)&&(((a0==1)&&(((((a29==6)||(a29==7))||(a29==8))&&(input==2))&&(a11==1)))&&(a28==1)))&&(a19==2))&&(a22==1))))&&!(a24==1)))){ + a0 = 0; + a7 = 1; + a19 = 4; + a29 = 5; + return 24; + } else if(((a28==1)&&((a20==1)&&((a19==5)&&(((!(a11==1)&&((a24==1)&&((!(a7==1)&&(((input==5)&&((a29==6)||(a29==7)))&&(a22==1)))&&!(a25==1))))&&(a0==1))&&(a14==8)))))){ + a29 = 5; + a11 = 1; + a7 = 1; + a19 = 1; + a25 = 1; + return -1; + } else if((((!(a24==1)&&((a22==1)&&(!(a0==1)&&((((!(a11==1)&&((((a29==7)||((a29==5)||(a29==6)))&&(input==5))&&(a25==1)))&&(a19==2))&&(a28==1))&&!(a20==1)))))&&(a7==1))&&(a14==9))){ + a19 = 1; + a29 = 7; + a24 = 1; + a11 = 1; + a14 = 8; + a20 = 1; + return 21; + } else if(((a0==1)&&(!(a7==1)&&(((a24==1)&&((a28==1)&&((a11==1)&&(((((((a29==5)&&(a19==4))||(((a29==8)&&(a19==3))||((a29==9)&&(a19==3))))&&(input==2))&&(a25==1))&&(a14==9))&&!(a20==1)))))&&(a22==1))))){ + a29 = 9; + a11 = 0; + a7 = 1; + a25 = 0; + a20 = 1; + a19 = 5; + a24 = 0; + return 23; + } else if(((a22==1)&&((a28==1)&&((a0==1)&&(((((a7==1)&&(((((((a19==4)&&(a29==9))||((a19==5)&&(a29==5)))||((a19==5)&&(a29==6)))&&(input==1))&&(a25==1))&&!(a20==1)))&&(a14==9))&&(a24==1))&&(a11==1)))))){ + a14 = 8; + a19 = 1; + a29 = 5; + a20 = 1; + return -1; + } else if(((((a22==1)&&((a19==2)&&((!(a11==1)&&((((a0==1)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==1))&&(a28==1)))&&!(a7==1))&&(a25==1)))&&(a14==9))))&&(a20==1))&&(a24==1))){ + a29 = 5; + a11 = 1; + a19 = 3; + return -1; + } else if((!(a0==1)&&((!(a7==1)&&((a22==1)&&((((a28==1)&&((((a19==5)&&((((a29==5)||(a29==6))||(a29==7))&&(input==6)))&&(a20==1))&&!(a11==1)))&&!(a24==1))&&(a14==8))))&&(a25==1)))){ + a19 = 1; + a0 = 1; + a24 = 1; + a7 = 1; + a29 = 5; + a11 = 1; + return -1; + } else if(((!(a7==1)&&((a19==2)&&((((((a28==1)&&((!(a20==1)&&((input==6)&&((a29==8)||(a29==9))))&&!(a25==1)))&&(a22==1))&&!(a0==1))&&!(a11==1))&&(a14==9))))&&(a24==1))){ + a29 = 7; + return -1; + } else if((((a25==1)&&((((a22==1)&&(((a19==3)&&((((((a29==8)||((a29==6)||(a29==7)))&&(input==6))&&(a28==1))&&!(a7==1))&&!(a11==1)))&&(a24==1)))&&!(a0==1))&&!(a20==1)))&&(a14==9))){ + a20 = 1; + a29 = 5; + a11 = 1; + a7 = 1; + a0 = 1; + a14 = 8; + a19 = 1; + return -1; + } else if(((a29==7)&&((((a22==1)&&((a19==4)&&((a11==1)&&((((a25==1)&&((a24==1)&&((a0==1)&&(input==4))))&&(a28==1))&&(a14==10)))))&&!(a7==1))&&(a20==1)))){ + a19 = 5; + a14 = 9; + a29 = 8; + a11 = 0; + return -1; + } else if(((a29==5)&&((((a25==1)&&(!(a7==1)&&((((!(a0==1)&&((!(a20==1)&&(input==1))&&!(a11==1)))&&(a24==1))&&(a28==1))&&(a19==5))))&&(a22==1))&&(a14==8)))){ + a29 = 8; + a24 = 0; + a25 = 0; + a19 = 3; + a0 = 1; + a7 = 1; + return 21; + } else if(((a28==1)&&(!(a11==1)&&((!(a7==1)&&((!(a25==1)&&((((a19==2)&&((a20==1)&&(((a29==8)||(a29==9))&&(input==1))))&&(a22==1))&&(a24==1)))&&(a14==9)))&&!(a0==1))))){ + a11 = 1; + a19 = 4; + a14 = 8; + a7 = 1; + a29 = 9; + return -1; + } else if((((a14==8)&&(!(a11==1)&&((a22==1)&&((((a7==1)&&(((((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))||((a29==6)&&(a19==5)))&&(input==1))&&(a0==1))&&(a24==1)))&&(a28==1))&&!(a25==1)))))&&(a20==1))){ + a19 = 3; + a0 = 0; + a29 = 6; + a24 = 0; + return 23; + } else if(((a22==1)&&((a19==5)&&(!(a11==1)&&((a7==1)&&((a28==1)&&((a0==1)&&((((a29==9)&&((a14==8)&&((input==2)&&!(a24==1))))&&(a20==1))&&!(a25==1))))))))){ + a7 = 0; + a20 = 0; + a24 = 1; + a0 = 0; + a29 = 8; + a11 = 1; + return 23; + } else if(((((((a24==1)&&((a28==1)&&(((((((a29==7)||(a29==8))&&(input==6))&&(a19==2))&&!(a11==1))&&(a7==1))&&!(a20==1))))&&(a25==1))&&(a22==1))&&!(a0==1))&&(a14==9))){ + a11 = 1; + a14 = 8; + a20 = 1; + a29 = 7; + return 21; + } else if((!(a20==1)&&((a14==9)&&((a28==1)&&(((((a19==1)&&((!(a11==1)&&((((a29==7)||(a29==8))&&(input==4))&&(a7==1)))&&(a22==1)))&&(a24==1))&&!(a0==1))&&!(a25==1)))))){ + a11 = 1; + a14 = 8; + a29 = 5; + a20 = 1; + a25 = 1; + a0 = 1; + return -1; + } else if(((a19==5)&&((!(a25==1)&&((a14==8)&&(((a0==1)&&(((a7==1)&&(((((a29==7)||(a29==8))&&(input==2))&&!(a24==1))&&!(a11==1)))&&(a20==1)))&&(a22==1))))&&(a28==1)))){ + a19 = 1; + a24 = 1; + a11 = 1; + a29 = 5; + a25 = 1; + return -1; + } else if(((a24==1)&&((a11==1)&&((((a14==8)&&(((!(a25==1)&&((!(a0==1)&&((input==1)&&(a20==1)))&&(a29==8)))&&(a19==3))&&(a22==1)))&&(a28==1))&&(a7==1))))){ + a19 = 4; + a29 = 9; + a20 = 0; + a25 = 1; + a7 = 0; + return 21; + } else if(((a24==1)&&(((((a19==5)&&((a14==9)&&((a0==1)&&((((a28==1)&&(((a29==8)||(a29==9))&&(input==4)))&&(a20==1))&&!(a25==1)))))&&!(a11==1))&&(a7==1))&&(a22==1)))){ + a0 = 0; + a29 = 5; + a7 = 0; + a14 = 8; + a20 = 0; + a24 = 0; + a25 = 1; + return 23; + } else if((!(a20==1)&&((a22==1)&&((((a25==1)&&((a14==9)&&(!(a24==1)&&((a11==1)&&(!(a7==1)&&((a19==1)&&(((a29==7)||(a29==8))&&(input==6))))))))&&!(a0==1))&&(a28==1))))){ + a20 = 1; + a0 = 1; + a25 = 0; + a29 = 9; + a19 = 3; + a11 = 0; + a24 = 1; + return 21; + } else if(((!(a0==1)&&((a28==1)&&((a24==1)&&((a14==8)&&((a7==1)&&(!(a11==1)&&((((input==5)&&(((a29==5)&&(a19==3))||(((a29==8)&&(a19==2))||((a19==2)&&(a29==9)))))&&(a22==1))&&(a20==1))))))))&&(a25==1))){ + a11 = 1; + a14 = 9; + a29 = 5; + a24 = 0; + a19 = 2; + return 23; + } else if((((!(a11==1)&&((((((a0==1)&&(((!(a24==1)&&(input==1))&&(a29==7))&&(a20==1)))&&(a22==1))&&!(a25==1))&&(a14==8))&&(a28==1)))&&(a19==3))&&(a7==1))){ + a11 = 1; + a14 = 9; + a19 = 2; + a7 = 0; + a29 = 8; + return 24; + } else if(((((!(a7==1)&&((a28==1)&&(!(a25==1)&&(((((((a19==2)&&(a29==5))||(((a19==1)&&(a29==8))||((a19==1)&&(a29==9))))&&(input==3))&&(a14==9))&&(a22==1))&&!(a0==1)))))&&!(a24==1))&&!(a20==1))&&(a11==1))){ + a14 = 8; + a11 = 0; + a29 = 7; + a19 = 5; + a0 = 1; + return 21; + } else if(((a20==1)&&(((a28==1)&&(!(a7==1)&&((((a22==1)&&((a24==1)&&((a0==1)&&((a25==1)&&((input==6)&&(a14==9))))))&&(a19==4))&&!(a11==1))))&&(a29==6)))){ + a14 = 8; + a24 = 0; + a29 = 9; + a25 = 0; + a20 = 0; + a19 = 1; + return 21; + } else if((((!(a7==1)&&((((a14==8)&&(((a28==1)&&((((input==5)&&((a29==8)||((a29==6)||(a29==7))))&&(a11==1))&&(a0==1)))&&(a19==3)))&&!(a25==1))&&(a22==1)))&&(a24==1))&&(a20==1))){ + a19 = 4; + a29 = 9; + a20 = 0; + return 21; + } else if(((!(a0==1)&&(!(a24==1)&&((a28==1)&&((a22==1)&&(((!(a11==1)&&((((((a29==5)||(a29==6))||(a29==7))&&(input==1))&&(a25==1))&&(a20==1)))&&(a19==5))&&(a14==9))))))&&!(a7==1))){ + a19 = 1; + a14 = 8; + a7 = 1; + a11 = 1; + a29 = 5; + a24 = 1; + a0 = 1; + return -1; + } else if(((a14==9)&&((a22==1)&&((a25==1)&&(!(a7==1)&&(!(a20==1)&&((((a24==1)&&(((((a29==6)||(a29==7))&&(input==3))&&(a0==1))&&!(a11==1)))&&(a28==1))&&(a19==5)))))))){ + a25 = 0; + a11 = 1; + a29 = 7; + a19 = 4; + a7 = 1; + return 21; + } else if((((a22==1)&&((a28==1)&&((!(a11==1)&&((!(a20==1)&&(!(a7==1)&&((a0==1)&&((a19==1)&&((input==2)&&(((a29==7)||(a29==8))||(a29==9)))))))&&!(a24==1)))&&(a14==9))))&&(a25==1))){ + a29 = 5; + a14 = 8; + a20 = 1; + a24 = 1; + a7 = 1; + a11 = 1; + return -1; + } else if(((!(a0==1)&&((a29==9)&&((a28==1)&&(((a25==1)&&(((a22==1)&&((!(a7==1)&&((a14==9)&&(input==5)))&&(a19==2)))&&(a24==1)))&&(a20==1)))))&&(a11==1))){ + a0 = 1; + return -1; + } else if(((((a0==1)&&(!(a7==1)&&((((a28==1)&&((a22==1)&&((a19==4)&&(((input==5)&&((a29==8)||((a29==6)||(a29==7))))&&!(a25==1)))))&&(a14==8))&&(a11==1))))&&!(a24==1))&&(a20==1))){ + a20 = 0; + a29 = 9; + a11 = 0; + a7 = 1; + return 21; + } else if((((a0==1)&&(((a14==8)&&((a25==1)&&(!(a24==1)&&(((((input==4)&&(((a29==9)&&(a19==3))||((a19==4)&&(a29==5))))&&!(a7==1))&&(a11==1))&&!(a20==1)))))&&(a28==1)))&&(a22==1))){ + a29 = 5; + a19 = 4; + a0 = 0; + a24 = 1; + return 23; + } else if(((a14==9)&&(((!(a20==1)&&(!(a25==1)&&((a22==1)&&(((a11==1)&&(!(a24==1)&&((input==2)&&((((a19==1)&&(a29==8))||((a29==9)&&(a19==1)))||((a29==5)&&(a19==2))))))&&(a28==1)))))&&!(a0==1))&&!(a7==1)))){ + a19 = 5; + a20 = 1; + a29 = 8; + a24 = 1; + a25 = 1; + a14 = 8; + return 21; + } else if(((((a22==1)&&((((a14==9)&&(((a11==1)&&(!(a25==1)&&((a28==1)&&((input==2)&&!(a0==1)))))&&!(a24==1)))&&(a29==5))&&(a20==1)))&&(a7==1))&&(a19==4))){ + a19 = 1; + a29 = 6; + a24 = 1; + a0 = 1; + a20 = 0; + a7 = 0; + a25 = 1; + return -1; + } else if((!(a25==1)&&((((((a7==1)&&(((a11==1)&&(((((a29==9)&&(a19==3))||((a29==5)&&(a19==4)))&&(input==2))&&(a0==1)))&&!(a20==1)))&&(a28==1))&&(a14==9))&&(a22==1))&&!(a24==1)))){ + a25 = 1; + a14 = 8; + a29 = 5; + a20 = 1; + a24 = 1; + a19 = 1; + return -1; + } else if(((a24==1)&&((a28==1)&&(((((((a20==1)&&((input==5)&&((((a19==5)&&((a25==1)&&(a29==8)))||((a19==5)&&((a29==9)&&(a25==1))))||((a19==1)&&(!(a25==1)&&(a29==5))))))&&!(a7==1))&&!(a11==1))&&(a22==1))&&(a14==9))&&!(a0==1))))){ + a11 = 1; + a7 = 1; + a29 = 5; + a14 = 8; + a19 = 1; + a0 = 1; + a25 = 1; + return -1; + } else if((((((a20==1)&&((((a29==6)&&((!(a11==1)&&(((a14==9)&&(input==3))&&!(a7==1)))&&(a25==1)))&&(a24==1))&&(a19==2)))&&!(a0==1))&&(a28==1))&&(a22==1))){ + a29 = 7; + a11 = 1; + a14 = 8; + a20 = 0; + return 21; + } else if((((a28==1)&&((a14==9)&&(!(a24==1)&&(((a0==1)&&((a19==1)&&((((a22==1)&&(((a29==8)||((a29==6)||(a29==7)))&&(input==1)))&&!(a11==1))&&!(a20==1))))&&(a7==1)))))&&!(a25==1))){ + a0 = 0; + a14 = 8; + a19 = 5; + a29 = 7; + a20 = 1; + a11 = 1; + a24 = 1; + return 21; + } else if(((a24==1)&&((a25==1)&&((((a19==5)&&(!(a11==1)&&((a28==1)&&((a22==1)&&((((input==3)&&((a29==7)||((a29==5)||(a29==6))))&&!(a0==1))&&(a7==1))))))&&(a14==8))&&(a20==1))))){ + a29 = 5; + a11 = 1; + a14 = 9; + a24 = 0; + return 21; + } else if(((a7==1)&&((a14==10)&&(((a20==1)&&((a19==3)&&((((((((a29==5)||(a29==6))&&(input==3))&&(a22==1))&&!(a25==1))&&(a24==1))&&(a11==1))&&(a28==1))))&&(a0==1))))){ + a19 = 1; + a24 = 0; + a25 = 1; + a11 = 0; + a29 = 7; + a14 = 9; + return 21; + } else if((((!(a25==1)&&((a0==1)&&((a7==1)&&((a19==4)&&((a24==1)&&((a28==1)&&((((input==4)&&((a29==5)||(a29==6)))&&!(a20==1))&&(a22==1))))))))&&(a14==9))&&(a11==1))){ + a19 = 5; + a7 = 0; + a29 = 5; + return 21; + } else if(((((a24==1)&&((a14==8)&&(((a28==1)&&(!(a7==1)&&((((a22==1)&&(!(a25==1)&&(input==3)))&&(a19==4))&&(a0==1))))&&(a29==6))))&&!(a20==1))&&!(a11==1))){ + a11 = 1; + a25 = 1; + a19 = 5; + a0 = 0; + a29 = 9; + return 23; + } else if(((a7==1)&&((a22==1)&&((((a20==1)&&((a14==9)&&(((!(a25==1)&&((((a29==5)||(a29==6))&&(input==4))&&(a24==1)))&&(a0==1))&&(a11==1))))&&(a28==1))&&(a19==3))))){ + a29 = 7; + a7 = 0; + return 21; + } else if((((a19==3)&&(((a11==1)&&(!(a25==1)&&((a14==9)&&((a20==1)&&(((a0==1)&&((a28==1)&&((input==6)&&((a29==8)||((a29==6)||(a29==7))))))&&(a22==1))))))&&!(a7==1)))&&!(a24==1))){ + a25 = 1; + a19 = 1; + a7 = 1; + a14 = 8; + a29 = 5; + a24 = 1; + return -1; + } else if(((a22==1)&&((a0==1)&&(((a14==8)&&((a28==1)&&(!(a25==1)&&(((!(a20==1)&&((((a29==8)||(a29==9))&&(input==6))&&(a19==4)))&&(a11==1))&&(a24==1)))))&&(a7==1))))){ + a20 = 1; + a19 = 1; + a29 = 5; + a11 = 0; + return 21; + } else if(((a29==7)&&((a28==1)&&((a14==9)&&((((a0==1)&&((a20==1)&&(((!(a24==1)&&((input==2)&&(a11==1)))&&(a7==1))&&(a22==1))))&&(a19==4))&&!(a25==1)))))){ + a11 = 0; + a14 = 8; + a19 = 5; + a0 = 0; + a24 = 1; + return -1; + } else if(((a28==1)&&((a7==1)&&((((((((a0==1)&&(((a19==1)&&(input==3))&&(a11==1)))&&(a22==1))&&(a20==1))&&(a29==9))&&(a14==10))&&(a25==1))&&!(a24==1))))){ + a24 = 1; + a14 = 8; + a29 = 5; + return -1; + } else if(((((a24==1)&&((a19==1)&&(!(a25==1)&&((a7==1)&&(!(a11==1)&&((a28==1)&&(!(a0==1)&&(((a14==8)&&(input==6))&&(a20==1)))))))))&&(a29==6))&&(a22==1))){ + a19 = 4; + a25 = 1; + a29 = 5; + a11 = 1; + return 21; + } else if((((((a28==1)&&(((a14==10)&&((a24==1)&&(((a0==1)&&((a22==1)&&((input==4)&&(a25==1))))&&(a29==9))))&&!(a7==1)))&&!(a20==1))&&(a19==2))&&(a11==1))){ + a20 = 1; + a7 = 1; + a14 = 8; + a29 = 5; + a19 = 1; + return -1; + } else if((!(a11==1)&&((a7==1)&&(((((((!(a20==1)&&(((((a19==4)&&(a29==9))||((a29==5)&&(a19==5)))||((a19==5)&&(a29==6)))&&(input==5)))&&(a28==1))&&!(a24==1))&&(a14==8))&&(a25==1))&&(a22==1))&&!(a0==1))))){ + a19 = 4; + a20 = 1; + a29 = 9; + a11 = 1; + a24 = 1; + a25 = 0; + return 21; + } else if(((((a14==8)&&(!(a20==1)&&((((a11==1)&&(!(a24==1)&&((a22==1)&&((((a29==8)||(a29==9))&&(input==4))&&(a7==1)))))&&!(a0==1))&&!(a25==1))))&&(a19==4))&&(a28==1))){ + a19 = 1; + a24 = 1; + a29 = 5; + a20 = 1; + a0 = 1; + a25 = 1; + return -1; + } else if(((!(a0==1)&&((a14==8)&&((a24==1)&&(!(a11==1)&&((a7==1)&&(((((a19==5)&&((input==1)&&(((a29==5)||(a29==6))||(a29==7))))&&(a22==1))&&(a20==1))&&(a25==1)))))))&&(a28==1))){ + a25 = 0; + a19 = 2; + a7 = 0; + a29 = 7; + a11 = 1; + a20 = 0; + return 24; + } else if((((!(a11==1)&&((((a22==1)&&(((a7==1)&&(((a24==1)&&((a19==5)&&(input==2)))&&(a29==8)))&&(a14==8)))&&!(a0==1))&&!(a25==1)))&&!(a20==1))&&(a28==1))){ + a11 = 1; + a19 = 1; + a0 = 1; + a20 = 1; + a25 = 1; + a29 = 5; + return -1; + } else if((((a14==9)&&((a19==4)&&(!(a7==1)&&((a24==1)&&((a28==1)&&(!(a11==1)&&(((a25==1)&&(((input==1)&&((a29==8)||((a29==6)||(a29==7))))&&!(a0==1)))&&(a22==1))))))))&&(a20==1))){ + a14 = 8; + a19 = 1; + a7 = 1; + a11 = 1; + a0 = 1; + a29 = 5; + return -1; + } else if(((a0==1)&&((a14==9)&&(((a19==1)&&((((a11==1)&&((a22==1)&&((a24==1)&&(!(a7==1)&&((input==3)&&((a29==8)||(a29==9)))))))&&(a28==1))&&(a25==1)))&&!(a20==1))))){ + a29 = 5; + a14 = 10; + a20 = 1; + a7 = 1; + a19 = 4; + return 23; + } else if(((a22==1)&&(!(a25==1)&&(((a19==4)&&(((a11==1)&&((a14==8)&&((!(a7==1)&&((a0==1)&&((input==6)&&((a29==7)||(a29==8)))))&&(a24==1))))&&(a20==1)))&&(a28==1))))){ + a7 = 1; + a24 = 0; + a19 = 1; + a29 = 5; + return 21; + } else if((((((a14==10)&&((((a0==1)&&(((a19==5)&&((((a29==9)||((a29==7)||(a29==8)))&&(input==5))&&(a20==1)))&&(a11==1)))&&(a22==1))&&(a25==1)))&&(a7==1))&&(a28==1))&&!(a24==1))){ + a29 = 7; + a14 = 9; + return -1; + } else if(((a28==1)&&(((((a7==1)&&((a11==1)&&((a20==1)&&((a14==8)&&((a19==4)&&(!(a25==1)&&(((a29==7)||(a29==8))&&(input==1))))))))&&(a22==1))&&!(a0==1))&&(a24==1)))){ + a29 = 7; + a19 = 2; + a25 = 1; + return 23; + } else if(((a7==1)&&(((((((!(a20==1)&&(((a22==1)&&(((a29==8)||(a29==9))&&(input==5)))&&(a14==9)))&&(a0==1))&&(a11==1))&&(a19==2))&&(a24==1))&&(a25==1))&&(a28==1)))){ + a25 = 0; + a14 = 8; + a0 = 0; + a20 = 1; + a24 = 0; + a11 = 0; + a19 = 5; + a29 = 7; + return -1; + } else if((((a28==1)&&((a11==1)&&(!(a0==1)&&(!(a20==1)&&(((a25==1)&&((((a7==1)&&((input==1)&&(a22==1)))&&(a19==5))&&(a29==8)))&&(a14==9))))))&&!(a24==1))){ + a14 = 8; + a19 = 1; + a29 = 5; + a7 = 0; + a24 = 1; + return 23; + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&!(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==9))&&(a19==2))){ + error_58: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&!(a25==1))&&(a29==8))&&(a19==5))){ + error_47: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==6))&&(a19==2))){ + error_5: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&!(a25==1))&&(a29==9))&&(a19==5))){ + error_48: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==5))&&(a19==5))){ + error_19: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&!(a25==1))&&(a29==5))&&(a19==4))){ + error_39: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&!(a25==1))&&(a29==7))&&(a19==3))){ + error_36: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&!(a25==1))&&(a29==6))&&(a19==4))){ + error_40: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&!(a25==1))&&(a29==6))&&(a19==3))){ + error_35: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&!(a25==1))&&(a29==7))&&(a19==2))){ + error_31: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==5))&&(a19==3))){ + error_9: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&!(a25==1))&&(a29==8))&&(a19==4))){ + error_42: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==8))&&(a19==2))){ + error_7: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==5))&&(a19==1))){ + globalError: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==7))&&(a19==3))){ + error_11: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==6))&&(a19==5))){ + error_20: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&!(a25==1))&&(a29==5))&&(a19==5))){ + error_44: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&!(a25==1))&&(a29==7))&&(a19==5))){ + error_46: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==9))&&(a19==4))){ + error_18: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==7))&&(a19==2))){ + error_6: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==9))&&(a19==5))){ + error_23: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&!(a25==1))&&(a29==6))&&(a19==2))){ + error_30: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==9))&&(a19==1))){ + error_3: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&!(a25==1))&&(a29==8))&&(a19==3))){ + error_37: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==6))&&(a19==4))){ + error_15: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==7))&&(a19==1))){ + error_1: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&!(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==5))&&(a19==1))){ + error_49: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&!(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==8))&&(a19==2))){ + error_57: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&!(a25==1))&&(a29==9))&&(a19==2))){ + error_33: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&!(a25==1))&&(a29==8))&&(a19==1))){ + error_27: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==8))&&(a19==4))){ + error_17: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==9))&&(a19==2))){ + error_8: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==7))&&(a19==5))){ + error_21: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&!(a25==1))&&(a29==7))&&(a19==4))){ + error_41: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&!(a25==1))&&(a29==5))&&(a19==3))){ + error_34: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==6))&&(a19==3))){ + error_10: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&!(a25==1))&&(a29==8))&&(a19==2))){ + error_32: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==5))&&(a19==2))){ + error_4: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&!(a25==1))&&(a29==6))&&(a19==5))){ + error_45: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&!(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==6))&&(a19==2))){ + error_55: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==9))&&(a19==3))){ + error_13: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&!(a25==1))&&(a29==9))&&(a19==1))){ + error_28: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&!(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==7))&&(a19==2))){ + error_56: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==8))&&(a19==3))){ + error_12: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&!(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==7))&&(a19==1))){ + error_51: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==5))&&(a19==4))){ + error_14: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&!(a25==1))&&(a29==9))&&(a19==4))){ + error_43: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&!(a25==1))&&(a29==9))&&(a19==3))){ + error_38: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&!(a25==1))&&(a29==5))&&(a19==2))){ + error_29: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==8))&&(a19==5))){ + error_22: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&!(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==5))&&(a19==2))){ + error_54: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==7))&&(a19==4))){ + error_16: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&!(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==6))&&(a19==1))){ + error_50: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&!(a25==1))&&(a29==7))&&(a19==1))){ + error_26: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&!(a25==1))&&(a29==6))&&(a19==1))){ + error_25: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&!(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==5))&&(a19==3))){ + error_59: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==6))&&(a19==1))){ + error_0: __VERIFIER_error(); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&!(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==8))&&(a19==1))){ + error_52: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&!(a25==1))&&(a29==5))&&(a19==1))){ + error_24: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==8))&&(a19==1))){ + error_2: exit(0); + } + if((((((((((((a14==8)&&(a0==1))&&(a11==1))&&(a28==1))&&(a20==1))&&!(a7==1))&&(a22==1))&&(a24==1))&&(a25==1))&&(a29==9))&&(a19==1))){ + error_53: exit(0); + } + return -2; + } + +int main() +{ + // default output + int output = -1; + + // main i/o-loop + while(1) + { + // read input + int input; + input = __VERIFIER_nondet_int(); + if ((input != 1) && (input != 2) && (input != 3) && (input != 4) && (input != 5) && (input != 6)) return -2; + + // operate eca engine + output = calculate_output(input); + + } +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem08_label00_true-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem08_label00_true-unreach-call.c new file mode 100644 index 000000000..651165649 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem08_label00_true-unreach-call.c @@ -0,0 +1,171498 @@ +extern void __VERIFIER_error(void); +extern int __VERIFIER_nondet_int(void); +extern void exit(int); + + // inputs + int c= 3; + int e= 5; + int a= 1; + int b= 2; + int f= 6; + int d= 4; + + // outputs + int u = 21; + int v = 22; + int w = 23; + int x = 24; + int y = 25; + int z = 26; + + + int a22 = 1; + int a20 = 1; + int a0 = 1; + int a27 = 1; + int a18 = 0; + int a5 = 1; + int a15 = 1; + int a12 = 8; + int a4 = 0; + int a3 = 4; + int a6 = 0; + + int calculate_output2(int input); + int calculate_output3(int input); + int calculate_output4(int input); + int calculate_output5(int input); + int calculate_output6(int input); + int calculate_output7(int input); + int calculate_output8(int input); + int calculate_output9(int input); + int calculate_output10(int input); + int calculate_output11(int input); + int calculate_output12(int input); + int calculate_output13(int input); + int calculate_output14(int input); + int calculate_output15(int input); + int calculate_output16(int input); + int calculate_output17(int input); + int calculate_output18(int input); + int calculate_output19(int input); + int calculate_output20(int input); + int calculate_output21(int input); + int calculate_output22(int input); + int calculate_output23(int input); + int calculate_output24(int input); + int calculate_output25(int input); + int calculate_output26(int input); + int calculate_output27(int input); + int calculate_output28(int input); + int calculate_output29(int input); + int calculate_output30(int input); + int calculate_output31(int input); + int calculate_output32(int input); + int calculate_output33(int input); + int calculate_output34(int input); + int calculate_output35(int input); + int calculate_output36(int input); + int calculate_output37(int input); + int calculate_output38(int input); + int calculate_output39(int input); + int calculate_output40(int input); + int calculate_output41(int input); + int calculate_output42(int input); + int calculate_output43(int input); + int calculate_output44(int input); + int calculate_output45(int input); + int calculate_output46(int input); + int calculate_output47(int input); + int calculate_output48(int input); + int calculate_output49(int input); + int calculate_output50(int input); + int calculate_output51(int input); + int calculate_output52(int input); + int calculate_output53(int input); + int calculate_output54(int input); + int calculate_output55(int input); + int calculate_output56(int input); + int calculate_output57(int input); + int calculate_output58(int input); + int calculate_output59(int input); + int calculate_output60(int input); + int calculate_output61(int input); + int calculate_output62(int input); + int calculate_output63(int input); + int calculate_output64(int input); + int calculate_output65(int input); + int calculate_output66(int input); + int calculate_output67(int input); + int calculate_output68(int input); + int calculate_output69(int input); + int calculate_output70(int input); + int calculate_output71(int input); + int calculate_output72(int input); + int calculate_output73(int input); + int calculate_output74(int input); + int calculate_output75(int input); + int calculate_output76(int input); + int calculate_output77(int input); + int calculate_output78(int input); + int calculate_output79(int input); + int calculate_output80(int input); + int calculate_output81(int input); + int calculate_output82(int input); + + int calculate_output(int input) { + if(((a0==1)&&((((a27==1)&&((a20==1)&&((a6==1)&&(!(a5==1)&&((a12==10)&&((a18==1)&&((a15==1)&&((input==5)&&!(a4==1)))))))))&&(a22==1))&&(a3==5)))){ + a4 = 1; + return -1; + } else if((!(a27==1)&&((!(a6==1)&&((a18==1)&&((a15==1)&&(((a12==10)&&((a3==8)&&(!(a5==1)&&(!(a22==1)&&((input==6)&&(a0==1))))))&&(a20==1)))))&&!(a4==1)))){ + a27 = 1; + a12 = 8; + a5 = 1; + a6 = 1; + a3 = 4; + a22 = 1; + a4 = 1; + return -1; + } else if(((a5==1)&&((a12==11)&&((a0==1)&&(!(a15==1)&&(((((a20==1)&&((input==4)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1))))||((a3==7)&&((a22==1)&&!(a18==1))))))&&(a6==1))&&!(a4==1))&&!(a27==1))))))){ + a15 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + a27 = 1; + a22 = 1; + a4 = 1; + return -1; + } else if(((a20==1)&&(!(a6==1)&&(((!(a4==1)&&(((!(a5==1)&&(((input==2)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a0==1)))&&(a15==1))&&(a3==5)))&&(a12==10))&&!(a27==1))))){ + if((a12==12)){ + a6 = 1; + a18 = 0; + a5 = 1; + a12 = 8; + a3 = 8; + a0 = 1; + a4 = 1; + a22 = 1; + a27 = 1; + }else{ + a0 = 1; + a3 = 7; + a18 = 1; + a12 = 11; + a4 = 1; + a27 = 1; + a5 = 1; + a6 = 1; + a15 = 0; + a22 = 0; + } + return -1; + } else if((!(a4==1)&&((a0==1)&&((((a3==7)&&(!(a5==1)&&((a27==1)&&((a20==1)&&(((input==3)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a6==1))))))&&!(a15==1))&&(a12==11))))){ + a0 = 0; + a22 = 1; + a18 = 1; + return 21; + } else if((((a15==1)&&((a20==1)&&(!(a5==1)&&(((a0==1)&&((a27==1)&&((input==4)&&(((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1)))))||(!(a6==1)&&((!(a18==1)&&(a22==1))&&(a3==4)))))))&&(a12==10)))))&&!(a4==1))){ + a5 = 1; + a4 = 1; + a3 = 4; + a18 = 1; + a6 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if(((a12==8)&&((a0==1)&&((a20==1)&&(!(a4==1)&&((a3==7)&&(((a5==1)&&(!(a27==1)&&(!(a6==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==1)))))&&!(a15==1)))))))){ + a5 = 0; + a4 = 1; + a12 = 11; + a27 = 1; + a22 = 1; + a18 = 1; + a6 = 1; + return -1; + } else if((((!(a4==1)&&((a12==10)&&(!(a27==1)&&((a20==1)&&((((input==2)&&((((a3==6)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==6)))||(((a22==1)&&(a18==1))&&(a3==7))))&&!(a5==1))&&(a15==1))))))&&!(a0==1))&&!(a6==1))){ + a27 = 1; + a5 = 1; + a18 = 0; + a12 = 8; + a3 = 6; + a4 = 1; + a22 = 0; + a0 = 1; + return -1; + } else if(((a20==1)&&(!(a6==1)&&((!(a0==1)&&((((!(a4==1)&&((((a27==1)&&(input==1))&&(a3==6))&&(a18==1)))&&!(a15==1))&&(a5==1))&&(a12==12)))&&!(a22==1))))){ + if((a27==1)){ + a12 = 8; + a4 = 1; + a0 = 1; + a6 = 1; + a3 = 5; + a18 = 0; + a15 = 1; + a22 = 1; + }else{ + a27 = 0; + a3 = 7; + a0 = 1; + a18 = 0; + a12 = 11; + a4 = 1; + } + return 26; + } else if((((a5==1)&&((!(a27==1)&&(((a6==1)&&((!(a15==1)&&((a3==5)&&((((a18==1)||!(a18==1))&&(input==4))&&(a12==9))))&&!(a0==1)))&&(a22==1)))&&(a4==1)))&&(a20==1))){ + if((a5==1)){ + a15 = 1; + a6 = 0; + a12 = 11; + a18 = 1; + a4 = 0; + a3 = 8; + a27 = 1; + }else{ + a18 = 0; + a6 = 0; + a27 = 1; + a3 = 8; + a15 = 1; + a12 = 11; + } + return 21; + } else if((((((a15==1)&&((a12==12)&&(((((input==6)&&(((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7))))&&!(a5==1))&&(a20==1))&&!(a0==1))))&&(a6==1))&&!(a4==1))&&(a27==1))){ + a18 = 1; + a12 = 8; + a3 = 7; + a0 = 1; + a6 = 0; + a4 = 1; + a5 = 1; + a22 = 1; + return 21; + } else if((((a20==1)&&((((!(a0==1)&&((a5==1)&&((input==3)&&(((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1))))))&&(a12==12))&&!(a15==1))&&(a27==1)))&&(a4==1))){ + a0 = 1; + a22 = 1; + a18 = 1; + a6 = 1; + a4 = 0; + a5 = 0; + a12 = 10; + a3 = 6; + return 24; + } else if((!(a6==1)&&(((!(a15==1)&&(((a5==1)&&((((input==4)&&(((a3==5)&&(!(a18==1)&&(a22==1)))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5)))))&&(a20==1))&&(a12==8)))&&!(a27==1)))&&!(a4==1))&&(a0==1)))){ + a3 = 7; + a15 = 1; + a5 = 0; + a27 = 1; + a12 = 10; + a18 = 1; + a22 = 1; + return 21; + } else if((!(a4==1)&&(!(a6==1)&&(!(a15==1)&&((((a20==1)&&(!(a0==1)&&(((input==5)&&(((!(a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6)))))&&(a27==1))))&&(a12==9))&&!(a5==1)))))){ + a0 = 1; + a5 = 1; + a4 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + a15 = 1; + a12 = 8; + a6 = 1; + return -1; + } else if(((!(a27==1)&&((((((!(a15==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&!(a4==1)))&&(a12==9))&&(a3==4))&&(a5==1))&&!(a6==1))&&(a20==1)))&&!(a0==1))){ + a0 = 1; + a3 = 5; + a22 = 1; + a18 = 0; + a4 = 1; + return 26; + } else if((!(a6==1)&&((a20==1)&&((a5==1)&&((((a0==1)&&((a27==1)&&(!(a15==1)&&(!(a18==1)&&(((input==5)&&(a3==6))&&(a12==12))))))&&(a4==1))&&!(a22==1)))))){ + a4 = 0; + a15 = 1; + a27 = 0; + a3 = 7; + return 26; + } else if(((!(a27==1)&&((((a20==1)&&((input==1)&&((((((!(a22==1)&&!(a18==1))&&(a15==1))&&!(a4==1))&&(a3==8))&&!(a6==1))||((a6==1)&&(((!(a15==1)&&((a18==1)&&(a22==1)))&&(a4==1))&&(a3==4))))))&&(a5==1))&&(a12==8)))&&(a0==1))){ + a3 = 7; + a22 = 0; + a12 = 12; + a15 = 0; + a4 = 0; + a6 = 1; + a18 = 0; + a5 = 0; + return 26; + } else if(((((!(a4==1)&&((!(a15==1)&&(((a20==1)&&((a6==1)&&((!(a0==1)&&(input==3))&&(a18==1))))&&!(a27==1)))&&(a12==8)))&&!(a22==1))&&(a5==1))&&(a3==5))){ + a4 = 1; + a0 = 1; + a27 = 1; + a22 = 1; + a15 = 1; + a3 = 6; + return 24; + } else if((!(a18==1)&&((((a20==1)&&(((a27==1)&&((a6==1)&&(!(a15==1)&&((a3==8)&&(((input==4)&&(a5==1))&&(a22==1))))))&&!(a4==1)))&&(a12==9))&&!(a0==1)))){ + if((a20==1)){ + a5 = 0; + a15 = 1; + a4 = 1; + a12 = 10; + a6 = 0; + }else{ + a4 = 1; + a15 = 1; + a6 = 0; + a12 = 8; + a27 = 0; + a3 = 6; + a0 = 1; + } + return 21; + } else if((((((a6==1)&&(!(a0==1)&&((((a4==1)&&((a20==1)&&((input==3)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))))&&(a12==12))&&!(a15==1))))&&!(a5==1))&&(a3==7))&&(a27==1))){ + a5 = 1; + a0 = 1; + a22 = 0; + a4 = 0; + a18 = 1; + a12 = 8; + a3 = 5; + a15 = 1; + return 21; + } else if(((a15==1)&&((a6==1)&&((((((!(a5==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6))&&(a27==1)))&&(a0==1))&&(a4==1))&&(a20==1))&&(a3==5))&&(a12==12))))){ + a4 = 0; + a15 = 0; + a27 = 0; + a22 = 1; + a3 = 8; + a18 = 1; + return 26; + } else if((!(a6==1)&&((a0==1)&&(((a3==4)&&((a12==9)&&(!(a27==1)&&((a15==1)&&((!(a5==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==6)))&&!(a4==1))))))&&(a20==1))))){ + a4 = 1; + a15 = 0; + a3 = 8; + a22 = 0; + a18 = 0; + a5 = 1; + return 26; + } else if(((a12==11)&&((((a3==7)&&(((a27==1)&&(((a20==1)&&((((input==4)&&((a18==1)||!(a18==1)))&&!(a6==1))&&!(a5==1)))&&(a0==1)))&&!(a4==1)))&&(a15==1))&&(a22==1)))){ + a22 = 0; + a3 = 5; + a6 = 1; + a12 = 10; + a15 = 0; + a4 = 1; + a18 = 0; + return -1; + } else if(((a12==9)&&((a27==1)&&((!(a5==1)&&(!(a6==1)&&((a20==1)&&((a15==1)&&(((input==5)&&((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7)))||(((a22==1)&&!(a18==1))&&(a3==7))))&&!(a4==1))))))&&(a0==1))))){ + a3 = 7; + a22 = 1; + a18 = 1; + return 26; + } else if((((((((a3==4)&&((((a15==1)&&(!(a6==1)&&(((a18==1)||!(a18==1))&&(input==1))))&&(a5==1))&&!(a4==1)))&&(a20==1))&&!(a27==1))&&(a0==1))&&(a22==1))&&(a12==12))){ + a27 = 1; + a12 = 8; + a6 = 1; + a18 = 1; + a4 = 1; + return -1; + } else if(((a0==1)&&((!(a6==1)&&(((!(a5==1)&&(((a27==1)&&((input==2)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==6)))))&&(a12==12)))&&!(a15==1))&&(a20==1)))&&(a4==1)))){ + if((a20==1)){ + a22 = 0; + a6 = 1; + a18 = 0; + a3 = 5; + a4 = 0; + a0 = 0; + a12 = 10; + }else{ + a6 = 1; + a3 = 4; + a22 = 1; + a12 = 10; + a18 = 0; + a5 = 1; + } + return 26; + } else if((((a20==1)&&(!(a6==1)&&((((((a5==1)&&((a4==1)&&((a12==10)&&((input==2)&&((a18==1)||!(a18==1))))))&&(a15==1))&&(a22==1))&&(a27==1))&&(a3==4))))&&!(a0==1))){ + if((a20==1)){ + a18 = 1; + a12 = 12; + a4 = 0; + a6 = 1; + a3 = 8; + }else{ + a5 = 0; + a0 = 1; + a3 = 5; + a18 = 0; + a15 = 0; + a4 = 0; + a6 = 1; + } + return 26; + } else if(((!(a15==1)&&(!(a5==1)&&(((((((a12==10)&&(((input==4)&&(a27==1))&&(a4==1)))&&(a22==1))&&!(a18==1))&&(a3==6))&&(a6==1))&&(a20==1))))&&(a0==1))){ + a6 = 0; + a4 = 0; + a18 = 1; + a22 = 0; + a3 = 4; + a27 = 0; + a5 = 1; + return 26; + } else if((((((a4==1)&&(((a27==1)&&((a5==1)&&(((a12==8)&&((input==3)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))))&&(a20==1))))&&(a15==1)))&&!(a6==1))&&!(a0==1))&&(a3==4))){ + a0 = 1; + a6 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if((((((!(a4==1)&&(!(a22==1)&&(!(a6==1)&&((a18==1)&&((((a20==1)&&(input==3))&&(a5==1))&&!(a15==1))))))&&(a27==1))&&(a12==8))&&(a3==5))&&!(a0==1))){ + a6 = 1; + a18 = 0; + a4 = 1; + a12 = 11; + a0 = 1; + a5 = 0; + return -1; + } else if(((((((((((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==2))&&!(a27==1))&&(a4==1))&&!(a15==1))&&(a20==1))&&(a12==9))&&(a5==1))&&(a6==1))&&(a0==1))){ + a0 = 0; + a22 = 0; + a12 = 10; + a18 = 1; + a3 = 4; + a4 = 0; + a6 = 0; + a27 = 1; + return 21; + } else if(((((!(a4==1)&&((((((input==5)&&((((!(a22==1)&&(a18==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))||((a3==7)&&((a22==1)&&(a18==1)))))&&!(a15==1))&&(a5==1))&&(a0==1))&&!(a6==1)))&&(a20==1))&&!(a27==1))&&(a12==8))){ + a27 = 1; + a22 = 0; + a0 = 0; + a18 = 0; + a3 = 8; + a12 = 9; + return 24; + } else if((((a20==1)&&(!(a5==1)&&(((!(a15==1)&&((!(a22==1)&&((((input==2)&&((a18==1)||!(a18==1)))&&!(a6==1))&&(a12==11)))&&(a3==4)))&&(a0==1))&&(a27==1))))&&!(a4==1))){ + a4 = 1; + a5 = 1; + a15 = 1; + a22 = 1; + a12 = 8; + a18 = 1; + a6 = 1; + return -1; + } else if((((a22==1)&&((!(a4==1)&&((a6==1)&&((a27==1)&&((a20==1)&&(((a0==1)&&(((a3==5)&&(input==2))&&(a12==11)))&&!(a18==1))))))&&(a5==1)))&&!(a15==1))){ + a15 = 1; + a27 = 0; + a4 = 1; + a3 = 8; + a6 = 0; + return 26; + } else if(((a0==1)&&(!(a6==1)&&((a5==1)&&(!(a15==1)&&((((a12==11)&&(((input==4)&&(((!(a18==1)&&(a22==1))&&(a3==5))||(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))))&&(a20==1)))&&!(a27==1))&&(a4==1))))))){ + a18 = 1; + a27 = 1; + a3 = 4; + a6 = 1; + a12 = 12; + a22 = 0; + return 26; + } else if(((a15==1)&&(!(a27==1)&&(!(a0==1)&&((a12==11)&&((a20==1)&&(!(a6==1)&&(!(a4==1)&&(!(a5==1)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==5))))))))))){ + if((a3==6)){ + a0 = 1; + a22 = 0; + a4 = 1; + a3 = 6; + a5 = 1; + a27 = 1; + a18 = 0; + a6 = 1; + a12 = 8; + }else{ + a3 = 6; + a18 = 1; + a22 = 0; + a6 = 1; + a15 = 0; + a12 = 10; + } + return 24; + } else if((!(a6==1)&&(((a3==4)&&(((a27==1)&&(((((a15==1)&&(!(a18==1)&&((input==6)&&(a22==1))))&&(a4==1))&&!(a0==1))&&(a20==1)))&&(a12==10)))&&!(a5==1)))){ + a0 = 1; + a12 = 8; + a18 = 1; + a5 = 1; + a6 = 1; + return -1; + } else if((((a6==1)&&(!(a0==1)&&(!(a5==1)&&((((a15==1)&&(((input==5)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5))))&&(a20==1)))&&(a12==12))&&(a27==1)))))&&!(a4==1))){ + a18 = 1; + a6 = 0; + a4 = 1; + a22 = 0; + a5 = 1; + a3 = 6; + a27 = 0; + a12 = 8; + return 24; + } else if(((a20==1)&&((a0==1)&&((a27==1)&&((a18==1)&&(((a12==11)&&((a22==1)&&((((a15==1)&&((a6==1)&&(input==3)))&&(a4==1))&&(a5==1))))&&(a3==6))))))){ + a12 = 10; + a22 = 0; + a6 = 0; + a3 = 5; + return -1; + } else if(((!(a6==1)&&((a20==1)&&(((a4==1)&&((a3==7)&&(!(a27==1)&&(((a0==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&!(a22==1)))&&(a12==11)))))&&(a5==1))))&&(a15==1))){ + a12 = 8; + a18 = 1; + a27 = 1; + a6 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((!(a18==1)&&(((a27==1)&&(((a6==1)&&(((((a3==5)&&(!(a0==1)&&(input==5)))&&(a20==1))&&(a5==1))&&(a22==1)))&&(a12==10)))&&!(a15==1)))&&(a4==1))){ + a4 = 0; + a5 = 0; + a15 = 1; + a27 = 0; + a0 = 1; + a22 = 0; + return -1; + } else if(((a12==9)&&(((!(a15==1)&&(!(a6==1)&&(!(a18==1)&&(((a22==1)&&((a0==1)&&((a20==1)&&((input==1)&&(a4==1)))))&&!(a5==1)))))&&!(a27==1))&&(a3==6)))){ + if((a3==5)){ + a22 = 0; + a15 = 1; + a18 = 1; + a27 = 1; + a4 = 0; + a0 = 0; + a3 = 7; + a12 = 11; + }else{ + a27 = 1; + a12 = 11; + a15 = 1; + } + return 26; + } else if((((a4==1)&&((a5==1)&&(((((a20==1)&&((!(a27==1)&&(!(a22==1)&&(((a18==1)||!(a18==1))&&(input==2))))&&!(a0==1)))&&(a12==10))&&(a6==1))&&(a3==4))))&&!(a15==1))){ + a27 = 1; + a18 = 0; + a12 = 8; + a15 = 1; + a0 = 1; + a22 = 1; + a3 = 5; + a6 = 0; + return -1; + } else if(((a6==1)&&((!(a15==1)&&((a12==8)&&(((((a20==1)&&(!(a4==1)&&(!(a27==1)&&((input==3)&&(a3==4)))))&&!(a0==1))&&(a18==1))&&!(a22==1))))&&(a5==1)))){ + a0 = 1; + a4 = 1; + a15 = 1; + a27 = 1; + a6 = 0; + return 24; + } else if(((a20==1)&&((a12==11)&&(((!(a6==1)&&(((!(a27==1)&&((((input==5)&&(a18==1))&&!(a4==1))&&(a15==1)))&&(a0==1))&&!(a5==1)))&&(a3==8))&&(a22==1))))){ + a12 = 8; + a22 = 0; + return -1; + } else if(((a12==8)&&(((a5==1)&&(!(a6==1)&&((a0==1)&&((a15==1)&&(((((input==1)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a20==1))&&(a27==1))&&!(a4==1))))))&&(a3==5)))){ + a18 = 1; + a3 = 6; + a4 = 1; + a15 = 0; + a22 = 1; + a6 = 1; + return 26; + } else if(((!(a18==1)&&((a20==1)&&((((a4==1)&&(((a12==8)&&((a3==8)&&((!(a0==1)&&(input==2))&&(a5==1))))&&(a15==1)))&&!(a22==1))&&!(a6==1))))&&(a27==1))){ + a12 = 12; + a15 = 0; + a0 = 1; + a3 = 4; + a22 = 1; + return 26; + } else if(((a12==12)&&(((a0==1)&&((a6==1)&&(((a27==1)&&((!(a5==1)&&(((((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==3)))&&(a4==1)))&&(a20==1))))&&(a15==1)))){ + a5 = 1; + a15 = 0; + a22 = 0; + a12 = 11; + a18 = 1; + a3 = 4; + a4 = 0; + return -1; + } else if((((a15==1)&&((a3==5)&&((a0==1)&&((!(a27==1)&&((!(a4==1)&&(!(a5==1)&&((a12==8)&&((input==2)&&(a6==1)))))&&(a18==1)))&&(a22==1)))))&&(a20==1))){ + a12 = 12; + a15 = 0; + a3 = 4; + a18 = 0; + a22 = 0; + a27 = 1; + a5 = 1; + return -1; + } else if((!(a5==1)&&((a20==1)&&(((a6==1)&&(!(a15==1)&&((a12==9)&&((a3==8)&&(!(a4==1)&&((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==2))&&(a0==1)))))))&&!(a27==1))))){ + a4 = 1; + a3 = 5; + a0 = 0; + a12 = 10; + a27 = 1; + a22 = 0; + a15 = 1; + a18 = 0; + return 26; + } else if((((a3==6)&&((a6==1)&&((a18==1)&&((((!(a15==1)&&((a0==1)&&(((input==4)&&!(a22==1))&&(a12==10))))&&(a20==1))&&(a27==1))&&(a4==1)))))&&(a5==1))){ + a18 = 0; + a22 = 1; + a5 = 0; + a12 = 9; + a27 = 0; + a3 = 7; + return 26; + } else if((((a3==4)&&((a15==1)&&(!(a5==1)&&((a4==1)&&(((!(a0==1)&&((((input==1)&&((a18==1)||!(a18==1)))&&(a20==1))&&!(a22==1)))&&!(a6==1))&&!(a27==1))))))&&(a12==11))){ + a0 = 1; + a3 = 6; + a18 = 1; + return 24; + } else if((!(a27==1)&&(((!(a5==1)&&((a12==9)&&(((a20==1)&&((((input==6)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a6==1))&&(a3==6)))&&!(a15==1))))&&!(a4==1))&&!(a0==1)))){ + a6 = 1; + a15 = 1; + a18 = 0; + a12 = 11; + a3 = 7; + a5 = 1; + a27 = 1; + a22 = 1; + return -1; + } else if((!(a22==1)&&(((a12==9)&&((a0==1)&&(((!(a4==1)&&(!(a27==1)&&((((input==1)&&!(a6==1))&&(a20==1))&&(a18==1))))&&!(a5==1))&&!(a15==1))))&&(a3==5)))){ + a12 = 8; + a27 = 1; + a15 = 1; + a4 = 1; + a22 = 1; + a3 = 4; + a6 = 1; + a5 = 1; + return -1; + } else if(((a12==8)&&((a3==8)&&((((((((a20==1)&&((input==3)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))&&(a15==1))&&(a6==1))&&!(a27==1))&&!(a4==1))&&!(a5==1))&&(a0==1))))){ + a22 = 0; + a27 = 1; + a18 = 1; + a12 = 11; + a15 = 0; + a4 = 1; + return 26; + } else if(((a27==1)&&(((!(a15==1)&&(!(a18==1)&&((!(a22==1)&&((!(a4==1)&&(((input==3)&&!(a6==1))&&(a20==1)))&&(a12==11)))&&(a3==5))))&&(a0==1))&&(a5==1)))){ + a12 = 8; + a3 = 4; + a6 = 1; + a4 = 1; + a22 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if(((((!(a4==1)&&((a15==1)&&((a5==1)&&((a3==5)&&(((a12==11)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==3)))&&(a0==1))))))&&!(a6==1))&&(a20==1))&&(a27==1))){ + a22 = 0; + a18 = 0; + a12 = 10; + a15 = 0; + a4 = 1; + a3 = 6; + return 26; + } else if(((a3==8)&&((a20==1)&&((a6==1)&&((a22==1)&&(!(a5==1)&&((((a4==1)&&(!(a0==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a12==11))))&&!(a27==1))&&!(a15==1)))))))){ + a22 = 0; + a27 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + a4 = 0; + return 26; + } else if(((a5==1)&&((((a12==10)&&((a20==1)&&(((((a0==1)&&((a6==1)&&(((a18==1)||!(a18==1))&&(input==5))))&&(a3==8))&&(a4==1))&&(a15==1))))&&!(a22==1))&&(a27==1)))){ + a12 = 8; + a6 = 0; + a18 = 0; + a5 = 0; + a3 = 6; + return 21; + } else if(((a12==11)&&((a4==1)&&(((((a20==1)&&(!(a27==1)&&((a0==1)&&(!(a5==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3))))))&&!(a15==1))&&!(a6==1))&&(a3==6))))){ + a18 = 0; + a27 = 1; + a3 = 7; + a5 = 1; + a22 = 1; + a12 = 10; + return 21; + } else if(((a12==8)&&((((a0==1)&&((a27==1)&&((a22==1)&&((a20==1)&&((((a3==7)&&((input==4)&&((a18==1)||!(a18==1))))&&!(a15==1))&&!(a5==1))))))&&!(a6==1))&&!(a4==1)))){ + a15 = 1; + a18 = 1; + a12 = 11; + a3 = 8; + a4 = 1; + a22 = 0; + return 26; + } else if(((a12==11)&&(((((a20==1)&&((!(a4==1)&&(((!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1))))||(((a6==1)&&(((a18==1)&&!(a22==1))&&(a3==8)))||((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))))&&(input==4)))&&(a15==1)))&&(a27==1))&&(a0==1))&&!(a5==1)))){ + a22 = 1; + a3 = 8; + a4 = 1; + a27 = 0; + a6 = 1; + a18 = 1; + return 21; + } else if(((a0==1)&&((a6==1)&&((a4==1)&&(!(a15==1)&&((((((((a3==7)&&((a18==1)&&(a22==1)))||(((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a22==1)&&!(a18==1)))))&&(input==4))&&(a5==1))&&(a12==8))&&(a27==1))&&(a20==1))))))){ + a22 = 0; + a3 = 4; + a15 = 1; + a4 = 0; + a5 = 0; + a18 = 0; + return 24; + } else if(((((((a0==1)&&(((a15==1)&&(!(a5==1)&&((a20==1)&&((((a18==1)||!(a18==1))&&(input==2))&&!(a4==1)))))&&(a22==1)))&&(a27==1))&&(a6==1))&&(a3==7))&&(a12==12))){ + a27 = 0; + a18 = 1; + a4 = 1; + return 21; + } else if((((!(a18==1)&&(((a6==1)&&(!(a4==1)&&(!(a15==1)&&((a20==1)&&((a5==1)&&(!(a0==1)&&((a27==1)&&(input==1))))))))&&(a22==1)))&&(a12==12))&&(a3==4))){ + a0 = 1; + a3 = 5; + a22 = 0; + a15 = 1; + a4 = 1; + a12 = 8; + return 21; + } else if((!(a0==1)&&(((a4==1)&&((a20==1)&&(!(a5==1)&&(!(a15==1)&&(!(a27==1)&&((((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&!(a6==1))&&(a3==8)))))))&&(a12==10)))){ + a12 = 8; + a3 = 7; + a6 = 1; + a5 = 1; + a15 = 1; + a18 = 1; + a0 = 1; + a27 = 1; + a4 = 0; + a22 = 1; + return 21; + } else if(((((a20==1)&&((!(a15==1)&&((a6==1)&&(!(a5==1)&&((a3==8)&&(!(a0==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a22==1)))))))&&!(a4==1)))&&(a12==9))&&!(a27==1))){ + a3 = 7; + a27 = 1; + a12 = 8; + a0 = 1; + a18 = 0; + a5 = 1; + a15 = 1; + return -1; + } else if((!(a22==1)&&(!(a27==1)&&(((a4==1)&&((a5==1)&&((a0==1)&&(!(a18==1)&&(!(a6==1)&&((((a12==9)&&(input==3))&&(a20==1))&&(a15==1)))))))&&(a3==7))))){ + a27 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + a12 = 10; + return 26; + } else if(((((a5==1)&&((((((a6==1)&&(((input==1)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a4==1)))&&(a27==1))&&(a20==1))&&!(a0==1))&&(a12==9)))&&(a15==1))&&(a3==5))){ + a0 = 1; + a18 = 1; + a22 = 1; + a4 = 0; + a12 = 10; + a3 = 7; + return 26; + } else if((!(a4==1)&&(((a20==1)&&((((a0==1)&&(((((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1))||(((a6==1)&&(((a18==1)&&!(a22==1))&&(a3==8)))||((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))))&&(input==4))&&!(a5==1)))&&(a12==10))&&!(a27==1)))&&(a15==1)))){ + a6 = 0; + a15 = 0; + a4 = 1; + a3 = 6; + a12 = 11; + a22 = 0; + a18 = 1; + a27 = 1; + return 21; + } else if(((a3==6)&&(((((a6==1)&&((a27==1)&&(!(a5==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==5))&&(a0==1))&&(a4==1)))))&&!(a15==1))&&(a12==9))&&(a20==1)))){ + a22 = 1; + a5 = 1; + a3 = 4; + a15 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if((((!(a27==1)&&(((((((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==4))&&!(a6==1))&&(a15==1))&&(a0==1))&&(a12==10))&&(a20==1)))&&(a5==1))&&!(a4==1))){ + a18 = 1; + a3 = 4; + a22 = 0; + a6 = 1; + a15 = 0; + return 21; + } else if(((a4==1)&&((a3==8)&&((!(a22==1)&&((((a12==10)&&((a6==1)&&(!(a0==1)&&((a20==1)&&(((a18==1)||!(a18==1))&&(input==2))))))&&(a27==1))&&!(a15==1)))&&(a5==1))))){ + a0 = 1; + a22 = 1; + a18 = 1; + a15 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((a6==1)&&(((!(a27==1)&&((!(a5==1)&&(((a15==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))||((a3==7)&&((a22==1)&&!(a18==1))))&&(input==3)))&&(a0==1)))&&(a20==1)))&&(a12==10))&&!(a4==1)))){ + a22 = 1; + a3 = 5; + a12 = 11; + a18 = 1; + a5 = 1; + a15 = 0; + return 21; + } else if((!(a4==1)&&((a6==1)&&((((((a12==10)&&((a5==1)&&((input==2)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8)))||((!(a18==1)&&(a22==1))&&(a3==8))))))&&(a20==1))&&!(a27==1))&&!(a15==1))&&(a0==1))))){ + a3 = 6; + a18 = 0; + a22 = 0; + a4 = 1; + a15 = 1; + a27 = 1; + return 21; + } else if((!(a22==1)&&((a4==1)&&((a15==1)&&(!(a18==1)&&((((((a3==7)&&(((input==1)&&!(a5==1))&&(a20==1)))&&!(a6==1))&&(a12==8))&&!(a0==1))&&(a27==1))))))){ + a18 = 1; + a15 = 0; + a12 = 11; + a22 = 1; + a3 = 5; + a0 = 1; + a5 = 1; + return 24; + } else if(((((((a4==1)&&(((a12==8)&&((!(a6==1)&&(!(a27==1)&&(((a18==1)||!(a18==1))&&(input==3))))&&(a22==1)))&&!(a0==1)))&&!(a5==1))&&(a3==7))&&!(a15==1))&&(a20==1))){ + if((a20==1)){ + a18 = 1; + a0 = 1; + a5 = 1; + a27 = 1; + a3 = 6; + a15 = 1; + }else{ + a18 = 1; + a4 = 0; + a27 = 1; + a12 = 10; + a5 = 1; + a15 = 1; + } + return 21; + } else if(((a4==1)&&((a22==1)&&(((a18==1)&&((((a12==9)&&((a3==7)&&(!(a6==1)&&(((input==2)&&(a0==1))&&!(a5==1)))))&&(a15==1))&&(a27==1)))&&(a20==1))))){ + a27 = 0; + a4 = 0; + a5 = 1; + a12 = 8; + a15 = 0; + a3 = 6; + return 26; + } else if(((((!(a22==1)&&(((a3==8)&&(!(a27==1)&&((a5==1)&&((a15==1)&&((a0==1)&&((input==5)&&((a18==1)||!(a18==1))))))))&&(a6==1)))&&!(a4==1))&&(a20==1))&&(a12==8))){ + a5 = 0; + a3 = 7; + a27 = 1; + a22 = 1; + a12 = 12; + a4 = 1; + a18 = 1; + a6 = 0; + return 21; + } else if((((a0==1)&&((((((a20==1)&&(!(a6==1)&&((((a3==6)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5))))&&(input==3))))&&!(a4==1))&&!(a5==1))&&(a12==8))&&!(a27==1)))&&!(a15==1))){ + a5 = 1; + a18 = 1; + a27 = 1; + a15 = 1; + a4 = 1; + a3 = 4; + a6 = 1; + a22 = 1; + return -1; + } else if(((!(a4==1)&&((a5==1)&&(((a20==1)&&(((((input==3)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))||((a3==8)&&(!(a18==1)&&(a22==1)))))&&!(a27==1))&&(a6==1))&&(a15==1)))&&(a12==9))))&&!(a0==1))){ + a0 = 1; + a3 = 8; + a15 = 0; + a4 = 1; + a22 = 1; + a5 = 0; + a12 = 8; + a18 = 0; + return -1; + } else if((((a27==1)&&(((a20==1)&&((((!(a15==1)&&((!(a22==1)&&((input==6)&&!(a0==1)))&&(a4==1)))&&(a3==8))&&!(a18==1))&&(a12==11)))&&(a5==1)))&&(a6==1))){ + a4 = 0; + a18 = 1; + a0 = 1; + a5 = 0; + a3 = 5; + a6 = 0; + a27 = 0; + return 21; + } else if((((a5==1)&&((!(a6==1)&&(!(a27==1)&&(((a15==1)&&((a12==11)&&((input==5)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1))))||((a3==8)&&(!(a18==1)&&(a22==1)))))))&&(a20==1))))&&(a0==1)))&&!(a4==1))){ + a22 = 0; + a18 = 0; + a3 = 7; + a12 = 12; + a27 = 1; + a4 = 1; + return -1; + } else if((!(a18==1)&&(((((a15==1)&&(!(a5==1)&&((a12==11)&&((((a6==1)&&((input==5)&&(a3==7)))&&(a22==1))&&(a0==1)))))&&(a4==1))&&(a20==1))&&(a27==1)))){ + a6 = 0; + a4 = 0; + a12 = 10; + return 21; + } else if((((((((a20==1)&&((a4==1)&&((((((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==6))&&(a12==12))))&&(a15==1))&&!(a0==1))&&!(a27==1))&&(a6==1))&&(a5==1))){ + if((a12==11)){ + a6 = 0; + a18 = 0; + a22 = 1; + a0 = 1; + a3 = 8; + a27 = 1; + a12 = 8; + }else{ + a6 = 0; + a18 = 1; + a12 = 8; + a27 = 1; + a22 = 1; + a3 = 7; + a0 = 1; + } + return -1; + } else if(((a18==1)&&(!(a5==1)&&(((a6==1)&&((((a3==8)&&(!(a0==1)&&(((a27==1)&&((input==3)&&!(a4==1)))&&(a12==10))))&&!(a15==1))&&(a22==1)))&&(a20==1))))){ + a5 = 1; + a4 = 1; + a12 = 8; + a3 = 4; + a15 = 1; + a0 = 1; + return -1; + } else if((((a15==1)&&(!(a5==1)&&((!(a0==1)&&((a12==10)&&(!(a18==1)&&(!(a4==1)&&(((!(a22==1)&&(input==5))&&(a27==1))&&!(a6==1))))))&&(a20==1))))&&(a3==5))){ + a3 = 6; + a22 = 1; + a0 = 1; + a12 = 8; + return 21; + } else if((!(a22==1)&&((((a0==1)&&((a27==1)&&(((a20==1)&&(!(a6==1)&&(!(a4==1)&&((((a18==1)||!(a18==1))&&(input==3))&&(a15==1)))))&&!(a5==1))))&&(a3==5))&&(a12==10)))){ + a12 = 11; + a6 = 1; + a4 = 1; + a22 = 1; + a5 = 1; + a18 = 0; + return 26; + } else if((((a12==11)&&((((((a20==1)&&((a5==1)&&(((((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==1))))&&!(a27==1))&&!(a15==1))&&!(a4==1))&&(a0==1)))&&!(a6==1))){ + a27 = 1; + a3 = 8; + a22 = 0; + a5 = 0; + a18 = 1; + return -1; + } else if((((((a12==11)&&(((!(a6==1)&&((a3==8)&&((!(a15==1)&&((a5==1)&&(!(a18==1)&&!(a22==1))))&&!(a4==1))))||((a6==1)&&((a3==4)&&(((a15==1)&&(((a18==1)&&(a22==1))&&!(a5==1)))&&(a4==1)))))&&(input==1)))&&(a0==1))&&(a27==1))&&(a20==1))){ + a6 = 0; + a5 = 1; + a15 = 1; + a3 = 7; + a22 = 1; + a4 = 0; + a12 = 10; + a18 = 0; + return -1; + } else if(((a12==11)&&((a22==1)&&(!(a4==1)&&((!(a5==1)&&(((a3==7)&&(!(a0==1)&&((a27==1)&&((a18==1)&&((input==1)&&(a15==1))))))&&(a20==1)))&&!(a6==1)))))){ + a3 = 6; + a0 = 1; + a27 = 0; + a6 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if(((a15==1)&&(((a20==1)&&(((a0==1)&&((a5==1)&&(((((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==5))&&!(a27==1))&&(a12==9))&&(a3==8))))&&!(a6==1)))&&(a4==1)))){ + a18 = 0; + a4 = 0; + a27 = 1; + a12 = 11; + a3 = 7; + a22 = 0; + a6 = 1; + return 26; + } else if(((a12==11)&&((a3==6)&&((!(a4==1)&&((((a22==1)&&(!(a5==1)&&(!(a27==1)&&((((a18==1)||!(a18==1))&&(input==5))&&!(a0==1)))))&&!(a6==1))&&(a20==1)))&&(a15==1))))){ + if((a15==1)){ + a18 = 1; + a3 = 7; + a0 = 1; + a5 = 1; + }else{ + a12 = 8; + a22 = 0; + a15 = 0; + a0 = 1; + a6 = 1; + a3 = 8; + a18 = 0; + } + return -1; + } else if((((((a5==1)&&((!(a15==1)&&(!(a4==1)&&((a6==1)&&(((input==4)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&(a20==1)))))&&(a12==10)))&&(a27==1))&&(a0==1))&&(a3==5))){ + a18 = 1; + a22 = 1; + a4 = 1; + a15 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((!(a5==1)&&((!(a27==1)&&((!(a4==1)&&(((a22==1)&&((a20==1)&&((((input==1)&&!(a15==1))&&(a3==6))&&(a0==1))))&&(a12==10)))&&!(a6==1)))&&!(a18==1)))){ + a12 = 11; + a3 = 4; + a4 = 1; + a22 = 0; + a15 = 1; + return 26; + } else if(((a15==1)&&(((((((a20==1)&&((a3==8)&&((((input==2)&&(a18==1))&&(a6==1))&&(a12==12))))&&(a0==1))&&!(a27==1))&&!(a22==1))&&!(a5==1))&&(a4==1)))){ + a27 = 1; + a3 = 4; + a22 = 1; + a5 = 1; + a12 = 8; + return -1; + } else if(((!(a0==1)&&((a12==11)&&(((((a15==1)&&(((!(a27==1)&&((input==4)&&((a18==1)||!(a18==1))))&&(a6==1))&&(a20==1)))&&(a3==6))&&(a4==1))&&(a22==1))))&&!(a5==1))){ + if((a12==10)){ + a3 = 4; + a12 = 8; + a0 = 1; + a18 = 0; + a6 = 0; + a27 = 1; + a22 = 0; + a5 = 1; + }else{ + a0 = 1; + a18 = 0; + a15 = 0; + a6 = 0; + a3 = 7; + a12 = 12; + } + return -1; + } else if((((a12==8)&&((!(a0==1)&&(((input==5)&&((((a3==8)&&(((a15==1)&&(!(a18==1)&&!(a22==1)))&&!(a4==1)))&&!(a6==1))||((a6==1)&&(((a4==1)&&(!(a15==1)&&((a22==1)&&(a18==1))))&&(a3==4)))))&&!(a27==1)))&&(a5==1)))&&(a20==1))){ + a3 = 6; + a12 = 12; + a18 = 0; + a15 = 0; + a27 = 1; + a6 = 0; + a4 = 1; + a22 = 0; + return -1; + } else if(((a3==5)&&((a12==10)&&((a5==1)&&((((a20==1)&&(!(a4==1)&&((a6==1)&&((!(a27==1)&&((input==1)&&(a22==1)))&&!(a0==1)))))&&!(a15==1))&&!(a18==1)))))){ + a22 = 0; + a18 = 1; + a3 = 7; + a5 = 0; + a15 = 1; + return -1; + } else if(((a4==1)&&((a20==1)&&(!(a27==1)&&(((a0==1)&&(((a3==5)&&(((a5==1)&&(((input==5)&&!(a22==1))&&(a15==1)))&&!(a18==1)))&&(a6==1)))&&(a12==8)))))){ + a27 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((!(a15==1)&&((!(a6==1)&&(((a5==1)&&((a4==1)&&((a3==5)&&((a27==1)&&(((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a20==1))))))&&(a0==1)))&&(a12==8)))){ + a6 = 1; + a22 = 1; + a15 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((((a27==1)&&((!(a4==1)&&((a20==1)&&((!(a5==1)&&((input==5)&&(((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1))))))&&!(a6==1))))&&!(a0==1)))&&!(a15==1))&&(a12==12))){ + if((a18==1)){ + a12 = 11; + a18 = 1; + a22 = 1; + a3 = 5; + a27 = 0; + }else{ + a5 = 1; + a3 = 5; + a18 = 1; + a4 = 1; + a15 = 1; + a0 = 1; + a12 = 8; + a22 = 1; + a6 = 1; + } + return 21; + } else if(((a27==1)&&((a5==1)&&((a20==1)&&(((((a15==1)&&((!(a0==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==3)))&&(a12==9)))&&(a3==6))&&(a4==1))&&(a6==1)))))){ + a12 = 12; + a0 = 1; + a4 = 0; + a5 = 0; + a22 = 0; + a3 = 7; + a18 = 1; + return -1; + } else if((((((a3==6)&&(!(a0==1)&&((!(a27==1)&&(((a12==11)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==2)))&&(a15==1)))&&(a5==1))))&&(a20==1))&&(a4==1))&&!(a6==1))){ + a3 = 8; + a18 = 0; + a12 = 8; + a22 = 0; + a0 = 1; + a27 = 1; + a6 = 1; + return -1; + } else if((((a6==1)&&((a3==6)&&((((a15==1)&&(((a0==1)&&((a20==1)&&(((input==6)&&(a5==1))&&!(a18==1))))&&!(a27==1)))&&!(a4==1))&&(a12==11))))&&!(a22==1))){ + a4 = 1; + a27 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if((!(a0==1)&&(!(a27==1)&&(((!(a15==1)&&(((((a6==1)&&((((a22==1)&&!(a18==1))&&!(a4==1))&&(a3==4)))||((!(a6==1)&&(((!(a22==1)&&!(a18==1))&&(a4==1))&&(a3==8)))||(((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1)))&&(a6==1))))&&(input==2))&&(a12==8)))&&(a20==1))&&(a5==1))))){ + if((a18==1)){ + a0 = 1; + a18 = 0; + a4 = 0; + a22 = 0; + a6 = 0; + a3 = 7; + a12 = 9; + }else{ + a6 = 1; + a15 = 1; + a18 = 0; + a22 = 1; + a3 = 4; + a4 = 1; + a0 = 1; + a27 = 1; + } + return 26; + } else if((((((((!(a4==1)&&(((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==5))&&(a5==1)))&&(a27==1))&&(a12==10))&&(a20==1))&&!(a6==1))&&(a15==1))&&(a0==1))){ + a6 = 1; + a18 = 0; + a3 = 4; + a22 = 1; + return -1; + } else if(((a6==1)&&(((!(a27==1)&&((!(a5==1)&&((a20==1)&&(((input==3)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))||((a3==8)&&(!(a18==1)&&(a22==1)))))&&(a0==1))))&&(a12==9)))&&(a4==1))&&(a15==1)))){ + a15 = 0; + a0 = 0; + a3 = 5; + a22 = 0; + a27 = 1; + a18 = 0; + a5 = 1; + a4 = 0; + return 21; + } else if((((!(a27==1)&&((!(a0==1)&&((((a6==1)&&((a3==4)&&((a4==1)&&(!(a15==1)&&((a22==1)&&(a18==1))))))||((((a3==8)&&((((a18==1)&&!(a22==1))&&(a15==1))&&!(a4==1)))&&!(a6==1))||(((((!(a18==1)&&!(a22==1))&&(a15==1))&&!(a4==1))&&(a3==8))&&!(a6==1))))&&(input==4)))&&(a20==1)))&&!(a5==1))&&(a12==11))){ + a6 = 0; + a12 = 8; + a4 = 0; + a22 = 1; + a18 = 1; + a27 = 1; + a15 = 1; + a3 = 6; + return -1; + } else if((((((((!(a0==1)&&((((a20==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a3==5))&&!(a27==1)))&&(a22==1))&&(a5==1))&&(a12==11))&&!(a15==1))&&!(a6==1))&&!(a4==1))){ + a5 = 0; + a22 = 0; + a3 = 8; + a18 = 0; + a6 = 1; + a0 = 1; + a27 = 1; + return 21; + } else if((!(a4==1)&&((a20==1)&&((a15==1)&&(((a12==9)&&((a3==8)&&(((!(a0==1)&&(((input==2)&&!(a27==1))&&(a5==1)))&&(a22==1))&&!(a6==1))))&&!(a18==1)))))){ + a12 = 8; + a27 = 1; + a15 = 0; + a18 = 1; + a3 = 5; + return -1; + } else if(((a20==1)&&(((((a12==10)&&(!(a27==1)&&((input==2)&&((!(a6==1)&&((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1)))))||(((!(a4==1)&&((a18==1)&&(a22==1)))&&(a3==4))&&(a6==1))))))&&(a15==1))&&!(a0==1))&&(a5==1)))){ + a5 = 0; + a15 = 0; + a3 = 6; + a4 = 0; + a22 = 1; + a6 = 1; + a18 = 1; + a0 = 1; + return -1; + } else if(((((!(a5==1)&&((a15==1)&&((a20==1)&&((((a12==12)&&((input==4)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&(a6==1))&&(a4==1)))))&&!(a27==1))&&(a0==1))&&(a3==7))){ + a6 = 0; + a12 = 10; + a18 = 1; + a5 = 1; + a22 = 0; + a3 = 6; + return -1; + } else if(((a0==1)&&(!(a4==1)&&((a12==9)&&(((!(a6==1)&&((a3==7)&&((a20==1)&&((a5==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==2))))))&&(a15==1))&&!(a27==1)))))){ + a22 = 0; + a6 = 1; + a18 = 1; + a4 = 1; + a12 = 12; + a27 = 1; + return 21; + } else if((!(a0==1)&&(!(a15==1)&&(((a4==1)&&(((((a12==11)&&((a3==8)&&(!(a27==1)&&(((a18==1)||!(a18==1))&&(input==3)))))&&(a22==1))&&!(a5==1))&&(a6==1)))&&(a20==1))))){ + if((a20==1)){ + a27 = 1; + a4 = 0; + a5 = 1; + a18 = 0; + a3 = 4; + a12 = 12; + a0 = 1; + }else{ + a12 = 12; + a0 = 1; + a18 = 1; + a5 = 1; + a3 = 7; + } + return -1; + } else if((((((a3==4)&&(((!(a18==1)&&(((a20==1)&&(((input==5)&&(a27==1))&&!(a6==1)))&&(a12==8)))&&(a4==1))&&!(a15==1)))&&(a22==1))&&(a0==1))&&!(a5==1))){ + a6 = 1; + a15 = 1; + a5 = 1; + a18 = 1; + return -1; + } else if((!(a22==1)&&((a20==1)&&(((a6==1)&&((a3==8)&&(((!(a5==1)&&((((a12==9)&&(input==2))&&!(a4==1))&&!(a27==1)))&&!(a15==1))&&!(a18==1))))&&(a0==1))))){ + a12 = 12; + a3 = 6; + return 21; + } else if(((((a5==1)&&(((a12==9)&&(!(a0==1)&&(((((((a4==1)&&(!(a22==1)&&!(a18==1)))&&(a3==8))&&!(a6==1))||(((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1)))&&(a6==1)))||((a6==1)&&((((a22==1)&&!(a18==1))&&!(a4==1))&&(a3==4))))&&(input==1))))&&!(a15==1)))&&(a27==1))&&(a20==1))){ + a3 = 4; + a15 = 1; + a18 = 1; + a0 = 1; + a4 = 1; + a12 = 8; + a6 = 1; + a22 = 1; + return -1; + } else if(((a3==4)&&((!(a27==1)&&((((a12==8)&&(!(a6==1)&&((a15==1)&&((a20==1)&&((input==4)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))))))&&!(a5==1))&&!(a0==1)))&&!(a4==1)))){ + if((a3==7)){ + a5 = 1; + a22 = 0; + a6 = 1; + a3 = 8; + a18 = 0; + a27 = 1; + a0 = 1; + }else{ + a27 = 1; + a5 = 1; + a18 = 1; + a22 = 1; + a6 = 1; + a0 = 1; + } + return -1; + } else if((((!(a18==1)&&((!(a22==1)&&(((a12==11)&&((a15==1)&&(((a3==6)&&((a0==1)&&(input==3)))&&(a20==1))))&&(a27==1)))&&(a4==1)))&&(a6==1))&&!(a5==1))){ + a6 = 0; + a12 = 10; + a3 = 8; + a5 = 1; + a22 = 1; + return -1; + } else if((!(a0==1)&&(((a6==1)&&((!(a4==1)&&((((a15==1)&&((input==4)&&(((a3==8)&&((a22==1)&&!(a18==1)))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1)))))))&&(a20==1))&&!(a5==1)))&&(a12==12)))&&(a27==1)))){ + if((a27==1)){ + a4 = 1; + a0 = 1; + a6 = 0; + a12 = 11; + a22 = 1; + a18 = 1; + a3 = 4; + a27 = 0; + }else{ + a5 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + a18 = 0; + a0 = 1; + } + return -1; + } else if(((((a5==1)&&(!(a27==1)&&(!(a0==1)&&((((a15==1)&&(((((a18==1)||!(a18==1))&&(input==3))&&!(a6==1))&&(a12==8)))&&(a20==1))&&(a22==1)))))&&(a4==1))&&(a3==7))){ + a4 = 0; + a0 = 1; + a6 = 1; + a12 = 12; + a3 = 4; + a18 = 1; + a27 = 1; + a5 = 0; + return 21; + } else if((((a0==1)&&((a6==1)&&((a3==5)&&((!(a27==1)&&(((a5==1)&&(!(a18==1)&&((a12==10)&&((a15==1)&&(input==4)))))&&!(a4==1)))&&!(a22==1)))))&&(a20==1))){ + if((a5==1)){ + a12 = 12; + a3 = 6; + a18 = 1; + a5 = 0; + a15 = 0; + }else{ + a0 = 0; + a12 = 9; + a27 = 1; + a4 = 1; + a3 = 8; + } + return 26; + } else if(((((((a4==1)&&((a18==1)&&((!(a15==1)&&((((a3==5)&&(input==6))&&!(a5==1))&&!(a0==1)))&&(a27==1))))&&(a12==12))&&(a20==1))&&(a6==1))&&!(a22==1))){ + if((a5==1)){ + a22 = 1; + a15 = 1; + a18 = 0; + a3 = 6; + a12 = 8; + a0 = 1; + a5 = 1; + }else{ + a18 = 0; + a12 = 11; + a5 = 1; + a27 = 0; + a22 = 1; + a4 = 0; + } + return -1; + } else if(((a20==1)&&(((a27==1)&&(((a12==12)&&((!(a15==1)&&(!(a5==1)&&((input==6)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5))))))&&(a6==1)))&&!(a4==1)))&&!(a0==1)))){ + if((a15==1)){ + a22 = 1; + a27 = 0; + a5 = 1; + a3 = 7; + a6 = 0; + a18 = 1; + a12 = 11; + a4 = 1; + }else{ + a22 = 1; + a3 = 7; + a0 = 1; + a5 = 1; + a12 = 9; + a6 = 0; + a18 = 0; + } + return -1; + } else if((!(a4==1)&&((a0==1)&&(((!(a6==1)&&(!(a27==1)&&((a3==5)&&((a12==9)&&((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==2))&&(a15==1))))))&&(a20==1))&&!(a5==1))))){ + a3 = 6; + a5 = 1; + a12 = 12; + a22 = 1; + a18 = 0; + a6 = 1; + return 21; + } else if((!(a22==1)&&((((a20==1)&&((a3==5)&&((a15==1)&&((!(a6==1)&&((a18==1)&&(((a12==9)&&(input==2))&&(a5==1))))&&!(a27==1)))))&&(a0==1))&&!(a4==1)))){ + a6 = 1; + a4 = 1; + a15 = 0; + a12 = 10; + a27 = 1; + a0 = 0; + a3 = 7; + a5 = 0; + return 26; + } else if(((a20==1)&&((!(a15==1)&&((((a12==10)&&((a6==1)&&(((input==3)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a18==1)&&(a22==1)))))&&!(a0==1))))&&(a4==1))&&(a5==1)))&&(a27==1)))){ + a4 = 0; + a0 = 1; + a3 = 4; + a12 = 12; + a22 = 0; + a15 = 1; + a18 = 0; + a6 = 0; + return 21; + } else if(((((!(a4==1)&&(!(a22==1)&&((a20==1)&&((((((input==2)&&((a18==1)||!(a18==1)))&&(a5==1))&&(a12==9))&&(a3==8))&&(a27==1)))))&&!(a6==1))&&(a15==1))&&!(a0==1))){ + if((a4==1)){ + a18 = 1; + a12 = 11; + a4 = 1; + a15 = 0; + a5 = 0; + }else{ + a27 = 0; + a22 = 1; + a0 = 1; + a6 = 1; + a3 = 6; + a12 = 11; + a18 = 1; + } + return 26; + } else if(((a12==10)&&(!(a5==1)&&((a20==1)&&((!(a22==1)&&(!(a15==1)&&((!(a6==1)&&(!(a0==1)&&((((a18==1)||!(a18==1))&&(input==2))&&(a4==1))))&&!(a27==1))))&&(a3==4)))))){ + a27 = 1; + a4 = 0; + a3 = 5; + a12 = 12; + a15 = 1; + a18 = 0; + a0 = 1; + a22 = 1; + a6 = 1; + return -1; + } else if(((a4==1)&&((a18==1)&&((a6==1)&&((a12==10)&&((a20==1)&&((!(a22==1)&&(!(a27==1)&&(!(a0==1)&&(((input==1)&&(a15==1))&&(a5==1)))))&&(a3==7)))))))){ + a12 = 8; + a27 = 1; + a6 = 0; + a0 = 1; + a3 = 6; + return -1; + } else if(((a27==1)&&(((((((a12==8)&&(((((input==4)&&((a18==1)||!(a18==1)))&&(a5==1))&&(a6==1))&&(a4==1)))&&(a3==4))&&(a22==1))&&(a20==1))&&!(a15==1))&&!(a0==1)))){ + a12 = 10; + a5 = 0; + a0 = 1; + a18 = 1; + a15 = 1; + a3 = 7; + return 26; + } else if((((a20==1)&&(!(a0==1)&&(((a6==1)&&(!(a15==1)&&(!(a27==1)&&((a3==4)&&(!(a22==1)&&(((a18==1)&&(input==2))&&(a5==1)))))))&&(a12==11))))&&!(a4==1))){ + a12 = 9; + a22 = 1; + a15 = 1; + a0 = 1; + a4 = 1; + a6 = 0; + a3 = 7; + a18 = 0; + return -1; + } else if(((a18==1)&&((a6==1)&&(((a27==1)&&((a3==5)&&((!(a15==1)&&((a20==1)&&(!(a4==1)&&((!(a22==1)&&(input==6))&&(a12==10)))))&&!(a5==1))))&&!(a0==1))))){ + a3 = 8; + a4 = 1; + a5 = 1; + a12 = 12; + return -1; + } else if(((a5==1)&&(!(a6==1)&&((a22==1)&&((a12==10)&&(((a20==1)&&((a3==5)&&((a15==1)&&((a4==1)&&((!(a0==1)&&(input==2))&&!(a27==1))))))&&!(a18==1))))))){ + if((a0==1)){ + a3 = 8; + a12 = 8; + a6 = 1; + }else{ + a12 = 8; + a22 = 0; + a0 = 1; + a18 = 1; + a6 = 1; + a27 = 1; + } + return 21; + } else if(((a4==1)&&((a20==1)&&(((a12==9)&&(((((a0==1)&&(!(a27==1)&&((input==2)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))&&(a5==1))&&(a3==5))&&(a15==1)))&&!(a6==1))))){ + a27 = 1; + a0 = 0; + a15 = 0; + a3 = 6; + a22 = 0; + a6 = 1; + a18 = 1; + return 21; + } else if(((((a5==1)&&(((a4==1)&&(!(a27==1)&&(((input==5)&&((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1))))&&(a20==1))))&&(a12==8)))&&(a0==1))&&(a15==1))){ + a3 = 7; + a22 = 0; + a6 = 1; + a27 = 1; + a12 = 10; + a18 = 1; + return 26; + } else if(((a12==8)&&(((a3==6)&&((!(a15==1)&&(((((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==5))&&(a27==1))&&(a4==1))&&(a20==1))&&(a5==1)))&&!(a6==1)))&&!(a0==1)))){ + a18 = 0; + a22 = 0; + a3 = 8; + a5 = 0; + a0 = 1; + a12 = 10; + return 21; + } else if((!(a15==1)&&(((a12==9)&&((a27==1)&&((a3==8)&&((!(a0==1)&&(((a4==1)&&((a22==1)&&(!(a18==1)&&(input==3))))&&!(a6==1)))&&(a20==1)))))&&!(a5==1)))){ + a12 = 10; + a5 = 1; + a0 = 1; + a18 = 1; + a4 = 0; + a6 = 1; + return 26; + } else if(((!(a4==1)&&(((a12==11)&&((!(a0==1)&&((((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||(!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1)))))&&(input==6))&&!(a5==1)))&&(a15==1)))&&(a27==1)))&&(a20==1))){ + a6 = 1; + a18 = 1; + a0 = 1; + a22 = 1; + a3 = 7; + a5 = 1; + a12 = 12; + return 21; + } else if((((a12==10)&&((((a0==1)&&((a20==1)&&((a4==1)&&((((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6)))||((a3==6)&&(!(a18==1)&&(a22==1))))&&(input==4))&&!(a5==1)))))&&!(a27==1))&&!(a6==1)))&&(a15==1))){ + a4 = 0; + a6 = 1; + a12 = 11; + a3 = 8; + a18 = 1; + a27 = 1; + a22 = 1; + a5 = 1; + a0 = 0; + return 21; + } else if(((a12==9)&&((((!(a0==1)&&(((a3==7)&&((a27==1)&&((a4==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==5)))))&&(a5==1)))&&(a20==1))&&(a15==1))&&!(a6==1)))){ + a12 = 12; + a3 = 8; + a22 = 0; + a15 = 0; + a0 = 1; + a5 = 0; + a18 = 1; + a6 = 1; + return 21; + } else if(((((a3==4)&&(((a5==1)&&((((a0==1)&&(((input==3)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&!(a4==1)))&&(a12==10))&&(a20==1)))&&!(a15==1)))&&!(a6==1))&&!(a27==1))){ + a18 = 0; + a27 = 1; + a22 = 0; + a12 = 11; + return 26; + } else if((((((a15==1)&&((!(a22==1)&&((a5==1)&&((((((a18==1)||!(a18==1))&&(input==5))&&(a6==1))&&(a12==12))&&(a20==1))))&&(a0==1)))&&(a3==7))&&!(a4==1))&&!(a27==1))){ + a12 = 11; + a18 = 0; + a5 = 0; + a15 = 0; + a6 = 0; + return -1; + } else if(((a27==1)&&(!(a15==1)&&((a6==1)&&(!(a0==1)&&((a20==1)&&((!(a5==1)&&((a12==11)&&((input==3)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5))))))&&!(a4==1)))))))){ + a22 = 1; + a15 = 1; + a3 = 4; + a5 = 1; + a12 = 8; + a18 = 1; + a4 = 1; + a0 = 1; + return -1; + } else if((!(a5==1)&&((a27==1)&&((a3==6)&&(!(a22==1)&&((!(a0==1)&&((a15==1)&&((!(a4==1)&&((a12==11)&&((input==3)&&(a18==1))))&&(a20==1))))&&!(a6==1))))))){ + a0 = 1; + a3 = 7; + a6 = 1; + return 26; + } else if(((a20==1)&&(((a22==1)&&(((a18==1)&&(((a3==6)&&((a15==1)&&(!(a4==1)&&(!(a0==1)&&((input==6)&&!(a5==1))))))&&(a27==1)))&&(a6==1)))&&(a12==9)))){ + a0 = 1; + a4 = 1; + a22 = 0; + a15 = 0; + a3 = 7; + a5 = 1; + a12 = 10; + a18 = 0; + return 26; + } else if((!(a27==1)&&(((((a20==1)&&(((a22==1)&&((a6==1)&&(((a12==9)&&(((a18==1)||!(a18==1))&&(input==2)))&&!(a0==1))))&&(a15==1)))&&!(a5==1))&&(a3==5))&&(a4==1)))){ + if((a6==1)){ + a12 = 8; + a5 = 1; + a15 = 0; + a18 = 1; + a0 = 1; + a3 = 7; + }else{ + a18 = 0; + a12 = 11; + a5 = 1; + a15 = 0; + a6 = 0; + a0 = 1; + a3 = 7; + } + return 21; + } else if((!(a6==1)&&((!(a18==1)&&((((a5==1)&&(!(a22==1)&&((((a12==8)&&((a0==1)&&(input==5)))&&(a3==7))&&!(a4==1))))&&(a15==1))&&(a20==1)))&&!(a27==1)))){ + a3 = 5; + a6 = 1; + a27 = 1; + return -1; + } else if((!(a22==1)&&(((((((a5==1)&&((a27==1)&&((((a20==1)&&(input==6))&&(a4==1))&&(a18==1))))&&!(a15==1))&&!(a0==1))&&(a6==1))&&(a12==10))&&(a3==4)))){ + a4 = 0; + a0 = 1; + a5 = 0; + a12 = 9; + a27 = 0; + a3 = 5; + a6 = 0; + return 21; + } else if((!(a27==1)&&(!(a15==1)&&(((((a0==1)&&(((((a20==1)&&((input==2)&&((a18==1)||!(a18==1))))&&!(a4==1))&&(a5==1))&&!(a22==1)))&&!(a6==1))&&(a3==6))&&(a12==12))))){ + a3 = 7; + a18 = 1; + a5 = 0; + a12 = 8; + a27 = 1; + a22 = 1; + a0 = 0; + a15 = 1; + return -1; + } else if((((!(a4==1)&&((a27==1)&&((((a3==5)&&(((a12==12)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==2)))&&(a20==1)))&&!(a0==1))&&(a6==1))))&&!(a5==1))&&!(a15==1))){ + a3 = 8; + a5 = 1; + a12 = 8; + a0 = 1; + a22 = 1; + a18 = 0; + a15 = 1; + return -1; + } else if((((a20==1)&&((a3==5)&&((((a18==1)&&((((!(a6==1)&&((input==3)&&(a27==1)))&&(a12==9))&&!(a22==1))&&!(a15==1)))&&(a4==1))&&(a0==1))))&&(a5==1))){ + a18 = 0; + a6 = 1; + a12 = 10; + a3 = 7; + a15 = 1; + return 21; + } else if(((!(a6==1)&&(!(a27==1)&&(((((!(a5==1)&&((a15==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==2))))&&(a12==12))&&(a20==1))&&(a0==1))&&(a3==8))))&&!(a4==1))){ + a18 = 1; + a22 = 1; + a6 = 1; + a4 = 1; + a5 = 1; + a27 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((a27==1)&&((((a12==10)&&(((a20==1)&&(((a3==7)&&(((input==5)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&!(a4==1)))&&(a5==1)))&&!(a15==1)))&&(a0==1))&&(a6==1)))){ + if((a22==1)){ + a12 = 12; + a22 = 0; + a4 = 1; + a15 = 1; + a0 = 0; + a6 = 0; + a18 = 1; + }else{ + a3 = 5; + a22 = 1; + a18 = 0; + a15 = 1; + } + return -1; + } else if(((a18==1)&&((a22==1)&&(((!(a5==1)&&((((a27==1)&&((a12==8)&&(!(a15==1)&&((a4==1)&&(input==6)))))&&(a0==1))&&(a3==8)))&&(a20==1))&&!(a6==1))))){ + a3 = 7; + a15 = 1; + a12 = 11; + a18 = 0; + a4 = 0; + a22 = 0; + a5 = 1; + return 24; + } else if(((((!(a15==1)&&((!(a4==1)&&((a0==1)&&(((input==6)&&(((a3==8)&&((a22==1)&&!(a18==1)))||(((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))))&&(a20==1))))&&(a27==1)))&&(a12==9))&&(a5==1))&&!(a6==1))){ + a6 = 1; + a12 = 12; + a4 = 1; + a15 = 1; + a18 = 0; + a3 = 5; + a5 = 0; + a22 = 1; + return 26; + } else if((((a12==9)&&((a20==1)&&(((a6==1)&&((a4==1)&&((a27==1)&&(((input==2)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1)))))&&!(a5==1)))))&&(a15==1))))&&!(a0==1))){ + a5 = 1; + a0 = 1; + a22 = 1; + a6 = 0; + a3 = 6; + a15 = 0; + a27 = 0; + a12 = 11; + a18 = 0; + return 21; + } else if((((a4==1)&&((((a20==1)&&((a12==9)&&(!(a5==1)&&(((((a18==1)&&(input==6))&&(a22==1))&&(a6==1))&&!(a27==1)))))&&!(a15==1))&&(a3==6)))&&!(a0==1))){ + if((a4==1)){ + a12 = 12; + a27 = 1; + a15 = 1; + a3 = 7; + }else{ + a5 = 1; + a3 = 5; + a12 = 11; + a22 = 0; + } + return 21; + } else if(((((a3==7)&&(!(a5==1)&&((((a0==1)&&(!(a15==1)&&((a20==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==6)))))&&(a12==12))&&(a6==1))))&&(a4==1))&&!(a27==1))){ + a22 = 0; + a3 = 6; + a12 = 9; + a18 = 1; + a4 = 0; + return -1; + } else if((((a20==1)&&(!(a4==1)&&(!(a0==1)&&((a15==1)&&(!(a5==1)&&((a3==8)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==6))&&(a12==8))&&!(a27==1))))))))&&(a6==1))){ + if((a22==1)){ + a4 = 1; + a3 = 6; + a5 = 1; + a0 = 1; + a18 = 1; + a22 = 1; + a27 = 1; + }else{ + a18 = 1; + a12 = 9; + a3 = 7; + a22 = 1; + a6 = 0; + a15 = 0; + a27 = 1; + } + return 21; + } else if(((a12==12)&&(!(a5==1)&&(((!(a15==1)&&((a6==1)&&((!(a4==1)&&(((input==4)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a27==1)))&&(a3==7))))&&(a0==1))&&(a20==1))))){ + a15 = 1; + a4 = 1; + a12 = 10; + a3 = 6; + a22 = 1; + a18 = 1; + a6 = 0; + a27 = 1; + return -1; + } else if(((((a0==1)&&(!(a22==1)&&(!(a15==1)&&((a4==1)&&(!(a27==1)&&((a3==4)&&(((a5==1)&&((input==2)&&((a18==1)||!(a18==1))))&&(a6==1))))))))&&(a20==1))&&(a12==9))){ + if((a18==1)){ + a3 = 7; + a22 = 1; + a0 = 0; + a27 = 1; + a18 = 0; + a12 = 8; + a4 = 0; + a15 = 1; + }else{ + a3 = 7; + a27 = 1; + a18 = 1; + a6 = 0; + a12 = 10; + a22 = 1; + } + return -1; + } else if(((((!(a15==1)&&((a6==1)&&((a22==1)&&(((a20==1)&&(((a12==10)&&((a3==8)&&(input==2)))&&(a0==1)))&&(a4==1)))))&&!(a18==1))&&!(a5==1))&&!(a27==1))){ + if((a12==11)){ + a0 = 0; + a6 = 0; + a27 = 1; + a4 = 0; + }else{ + a18 = 1; + a4 = 0; + a3 = 6; + a5 = 1; + } + return -1; + } else if(((((a4==1)&&(!(a27==1)&&((a6==1)&&(((!(a15==1)&&((a0==1)&&((a18==1)&&((input==3)&&(a3==4)))))&&(a12==9))&&(a22==1)))))&&!(a5==1))&&(a20==1))){ + a6 = 0; + a22 = 0; + a3 = 8; + a12 = 12; + a5 = 1; + return 21; + } else if(((((a0==1)&&(((a27==1)&&(((a3==4)&&((a12==10)&&(!(a4==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==1)))))&&(a5==1)))&&(a20==1)))&&!(a15==1))&&(a6==1))){ + a15 = 1; + a22 = 0; + a18 = 0; + return -1; + } else if((((a6==1)&&((a5==1)&&((!(a15==1)&&((!(a27==1)&&(((a0==1)&&((input==6)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))))&&(a12==12)))&&(a3==7)))&&!(a4==1))))&&(a20==1))){ + a3 = 4; + a5 = 0; + a18 = 0; + a4 = 1; + a27 = 1; + a22 = 1; + a12 = 11; + a15 = 1; + return 26; + } else if((((a3==7)&&(!(a6==1)&&(((a20==1)&&((a5==1)&&(!(a18==1)&&((a15==1)&&((a22==1)&&((a4==1)&&(!(a0==1)&&(input==2))))))))&&(a12==9))))&&!(a27==1))){ + if((a4==1)){ + a22 = 0; + a0 = 1; + a27 = 1; + a12 = 8; + a3 = 8; + }else{ + a18 = 1; + a0 = 1; + a4 = 0; + a12 = 8; + a27 = 1; + a6 = 1; + } + return -1; + } else if(((!(a0==1)&&(!(a22==1)&&((a6==1)&&(!(a15==1)&&((a12==11)&&((a27==1)&&(((((input==2)&&!(a18==1))&&(a5==1))&&(a4==1))&&(a3==8))))))))&&(a20==1))){ + a4 = 0; + a3 = 7; + a0 = 1; + a22 = 1; + a12 = 12; + a15 = 1; + return 21; + } else if((((a27==1)&&(!(a22==1)&&(((((a3==6)&&((((a4==1)&&((input==4)&&(a12==10)))&&(a0==1))&&!(a18==1)))&&(a20==1))&&!(a6==1))&&(a5==1))))&&(a15==1))){ + a18 = 1; + a22 = 1; + return -1; + } else if(((!(a0==1)&&(((((a3==5)&&((a20==1)&&((a6==1)&&(((((a18==1)||!(a18==1))&&(input==6))&&(a12==8))&&!(a27==1)))))&&!(a22==1))&&!(a5==1))&&(a15==1)))&&(a4==1))){ + a22 = 1; + a5 = 1; + a27 = 1; + a18 = 1; + a0 = 1; + return -1; + } else if((((a12==8)&&((!(a27==1)&&((((a5==1)&&((a20==1)&&((input==3)&&(((a3==7)&&((a22==1)&&(a18==1)))||(((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))))))&&(a6==1))&&!(a15==1)))&&(a4==1)))&&!(a0==1))){ + a0 = 1; + a5 = 0; + a22 = 1; + a18 = 1; + a27 = 1; + a15 = 1; + a3 = 6; + a12 = 9; + return -1; + } else if(((!(a0==1)&&(!(a6==1)&&((a12==9)&&((((a15==1)&&((!(a22==1)&&(((input==1)&&(a18==1))&&!(a4==1)))&&!(a27==1)))&&(a20==1))&&(a5==1)))))&&(a3==7))){ + a0 = 1; + a12 = 8; + a27 = 1; + a18 = 0; + a6 = 1; + return 21; + } else if((((a0==1)&&(!(a4==1)&&((a20==1)&&((!(a27==1)&&((((input==2)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6))))&&(a5==1))&&!(a6==1)))&&!(a15==1)))))&&(a12==10))){ + a27 = 1; + a12 = 12; + a15 = 1; + a22 = 0; + a4 = 1; + a18 = 1; + a6 = 1; + a3 = 5; + return 21; + } else if(((a4==1)&&((!(a27==1)&&((((a6==1)&&((((a5==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5)))&&(a12==12))&&(a15==1)))&&(a20==1))&&(a3==6)))&&(a0==1)))){ + a3 = 4; + a22 = 0; + a18 = 1; + a27 = 1; + a4 = 0; + a12 = 10; + return -1; + } else if(((!(a6==1)&&(((!(a15==1)&&(!(a27==1)&&(((a5==1)&&((input==2)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==5)))))&&(a0==1))))&&(a20==1))&&(a4==1)))&&(a12==8))){ + a22 = 0; + a3 = 5; + a27 = 1; + a18 = 1; + a15 = 1; + a6 = 1; + a12 = 10; + return 26; + } else if(((a12==11)&&(!(a15==1)&&(((a4==1)&&(((a20==1)&&(!(a6==1)&&(!(a0==1)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==3)))))&&!(a27==1)))&&!(a5==1))))){ + if((a15==1)){ + a18 = 0; + a15 = 1; + a6 = 1; + a12 = 8; + a27 = 1; + a3 = 8; + a22 = 1; + a0 = 1; + a5 = 1; + }else{ + a5 = 1; + a12 = 8; + a27 = 1; + a3 = 5; + a15 = 1; + a0 = 1; + a6 = 1; + a18 = 1; + a22 = 1; + a4 = 0; + } + return -1; + } else if((!(a4==1)&&(!(a15==1)&&((((((a0==1)&&((a12==10)&&((input==4)&&((((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5)))||((a3==5)&&((a22==1)&&!(a18==1)))))))&&!(a27==1))&&(a5==1))&&(a20==1))&&!(a6==1))))){ + a5 = 0; + a18 = 0; + a3 = 4; + a22 = 1; + a4 = 1; + return 21; + } else if((((((((a12==12)&&(((a20==1)&&((((input==2)&&((a18==1)||!(a18==1)))&&(a3==5))&&(a22==1)))&&(a5==1)))&&!(a27==1))&&(a15==1))&&!(a4==1))&&(a0==1))&&!(a6==1))){ + a15 = 0; + a18 = 1; + a22 = 0; + a4 = 1; + a3 = 6; + a12 = 10; + return -1; + } else if((!(a5==1)&&(((a27==1)&&((a4==1)&&((a15==1)&&(((((a3==6)&&(((input==1)&&((a18==1)||!(a18==1)))&&!(a0==1)))&&(a6==1))&&(a20==1))&&(a12==12)))))&&!(a22==1)))){ + a18 = 1; + a6 = 0; + a3 = 7; + a12 = 10; + a4 = 0; + a22 = 1; + a15 = 0; + return -1; + } else if((((a12==10)&&((!(a27==1)&&(((a15==1)&&(((a20==1)&&((a18==1)&&(((a5==1)&&(input==6))&&!(a22==1))))&&!(a0==1)))&&(a3==8)))&&(a6==1)))&&(a4==1))){ + a15 = 0; + a0 = 1; + a12 = 9; + a6 = 0; + a3 = 4; + a4 = 0; + a27 = 1; + return -1; + } else if((((a4==1)&&(!(a27==1)&&((a20==1)&&(!(a15==1)&&((((((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))||(((a22==1)&&!(a18==1))&&(a3==5)))&&(input==6))&&(a12==9))&&!(a5==1))&&(a6==1))))))&&(a0==1))){ + a22 = 1; + a18 = 1; + a12 = 10; + a27 = 1; + a3 = 4; + return 21; + } else if(((a12==8)&&(((((((((a3==8)&&(!(a27==1)&&((input==4)&&!(a4==1))))&&(a15==1))&&(a6==1))&&(a20==1))&&(a18==1))&&(a0==1))&&(a22==1))&&(a5==1)))){ + if((a12==9)){ + a15 = 0; + a12 = 10; + a22 = 0; + a27 = 1; + a4 = 1; + a0 = 0; + a18 = 0; + }else{ + a3 = 6; + a6 = 0; + a27 = 1; + a4 = 1; + a15 = 0; + a12 = 11; + } + return -1; + } else if(((a15==1)&&((a20==1)&&(((a0==1)&&((((((!(a22==1)&&((input==2)&&(a3==8)))&&(a18==1))&&(a27==1))&&(a5==1))&&(a12==11))&&(a6==1)))&&!(a4==1))))){ + a3 = 4; + a22 = 1; + a4 = 1; + a12 = 8; + return -1; + } else if((((((a12==9)&&((!(a22==1)&&(((a6==1)&&((a4==1)&&((a20==1)&&(((a18==1)||!(a18==1))&&(input==1)))))&&(a0==1)))&&(a5==1)))&&(a3==8))&&(a15==1))&&!(a27==1))){ + a12 = 8; + a27 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + return -1; + } else if((!(a0==1)&&(((a20==1)&&(((!(a5==1)&&(((input==3)&&((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4)))))&&!(a27==1)))&&(a12==8))&&!(a4==1)))&&(a15==1)))){ + a4 = 1; + a6 = 0; + a5 = 1; + a0 = 1; + a22 = 1; + a27 = 1; + a18 = 1; + a3 = 5; + return 21; + } else if((((a27==1)&&((a5==1)&&((a20==1)&&(!(a15==1)&&(!(a6==1)&&((((a4==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==3)))&&(a12==12))&&!(a0==1)))))))&&(a3==7))){ + if((a18==1)){ + a18 = 0; + a3 = 4; + a22 = 0; + a15 = 1; + a12 = 8; + a0 = 1; + }else{ + a18 = 0; + a3 = 6; + a4 = 0; + a22 = 1; + } + return -1; + } else if(((!(a4==1)&&((a27==1)&&((a15==1)&&((a12==9)&&(((((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==6))&&(a20==1))&&(a5==1))&&(a3==8))&&(a6==1))))))&&(a0==1))){ + a12 = 12; + a18 = 1; + a5 = 0; + a3 = 4; + a22 = 0; + return 26; + } else if(((a0==1)&&((((((!(a6==1)&&(((((!(a5==1)&&(!(a22==1)&&(a18==1)))&&!(a15==1))&&(a12==9))&&!(a4==1))&&(a3==8)))||(!(a6==1)&&((a3==8)&&(!(a4==1)&&((!(a15==1)&&(!(a5==1)&&(!(a22==1)&&!(a18==1))))&&(a12==9))))))||(((a3==4)&&((a4==1)&&((((a5==1)&&((a22==1)&&(a18==1)))&&(a15==1))&&(a12==10))))&&(a6==1)))&&(input==2))&&(a27==1))&&(a20==1)))){ + a5 = 1; + a6 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + a15 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if(((!(a18==1)&&((a27==1)&&((a12==9)&&((!(a22==1)&&(((!(a4==1)&&((a3==5)&&(!(a0==1)&&(input==4))))&&(a6==1))&&!(a15==1)))&&!(a5==1)))))&&(a20==1))){ + a15 = 1; + a22 = 1; + a6 = 0; + a12 = 12; + a0 = 1; + return 24; + } else if((!(a4==1)&&(!(a15==1)&&((a3==5)&&((!(a27==1)&&((!(a22==1)&&(((a12==12)&&((((a18==1)||!(a18==1))&&(input==1))&&(a6==1)))&&(a5==1)))&&(a20==1)))&&(a0==1)))))){ + a12 = 10; + a27 = 1; + a6 = 0; + a4 = 1; + a18 = 0; + return 26; + } else if((!(a27==1)&&(((a0==1)&&((a6==1)&&(!(a5==1)&&((((a4==1)&&((((input==3)&&(a15==1))&&(a18==1))&&(a20==1)))&&(a3==4))&&(a12==12)))))&&!(a22==1)))){ + a18 = 0; + a12 = 9; + a6 = 0; + a15 = 0; + a3 = 5; + return -1; + } else if((!(a5==1)&&(!(a27==1)&&((a4==1)&&((a12==8)&&((a6==1)&&((a20==1)&&((((((!(a18==1)&&(a22==1))&&(a3==5))||(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1)))))&&(input==6))&&(a0==1))&&!(a15==1))))))))){ + a18 = 1; + a15 = 1; + a5 = 1; + a27 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if(((((a3==6)&&((a0==1)&&((((a22==1)&&(((a12==12)&&(((a20==1)&&(input==2))&&(a15==1)))&&(a5==1)))&&!(a27==1))&&(a4==1))))&&(a18==1))&&(a6==1))){ + a12 = 8; + a27 = 1; + a3 = 4; + return -1; + } else if((!(a15==1)&&((a22==1)&&(!(a4==1)&&(((((a12==12)&&(((a0==1)&&(!(a27==1)&&((input==3)&&!(a6==1))))&&!(a18==1)))&&(a20==1))&&(a5==1))&&(a3==5)))))){ + a3 = 7; + a15 = 1; + a6 = 1; + a27 = 1; + a12 = 10; + a22 = 0; + a0 = 0; + return 21; + } else if((!(a27==1)&&((((((((((a6==1)&&((input==2)&&(a20==1)))&&(a4==1))&&(a15==1))&&(a3==4))&&(a5==1))&&(a12==12))&&(a18==1))&&(a22==1))&&(a0==1)))){ + a12 = 10; + a3 = 5; + a22 = 0; + a27 = 1; + return 21; + } else if(((a12==12)&&((a27==1)&&((!(a4==1)&&((((!(a15==1)&&((a3==4)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6))))&&(a0==1))&&(a20==1))&&!(a6==1)))&&!(a5==1))))){ + a6 = 1; + a12 = 10; + a22 = 0; + a15 = 1; + a5 = 1; + a18 = 0; + return -1; + } else if(((!(a4==1)&&((((a0==1)&&(!(a6==1)&&((((input==5)&&(((a3==8)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==7))||((a3==7)&&(!(a22==1)&&!(a18==1))))))&&(a27==1))&&(a5==1))))&&(a15==1))&&(a12==8)))&&(a20==1))){ + if((a5==1)){ + a3 = 8; + a4 = 1; + a18 = 1; + a0 = 0; + a22 = 1; + a12 = 10; + }else{ + a3 = 8; + a22 = 1; + a12 = 9; + a0 = 0; + a15 = 0; + a18 = 0; + } + return 26; + } else if(((a6==1)&&(!(a0==1)&&((a5==1)&&((a20==1)&&(!(a27==1)&&(((!(a15==1)&&((input==1)&&(((a3==5)&&(!(a18==1)&&(a22==1)))||(((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==5))))))&&(a4==1))&&(a12==11)))))))){ + if((a0==1)){ + a18 = 0; + a3 = 5; + a12 = 12; + a0 = 1; + a22 = 1; + a27 = 1; + }else{ + a27 = 1; + a22 = 0; + a15 = 1; + a18 = 1; + a0 = 1; + a12 = 8; + a6 = 0; + a3 = 7; + } + return 21; + } else if((((((a5==1)&&(!(a22==1)&&(!(a0==1)&&(!(a6==1)&&((a27==1)&&((a12==12)&&((a20==1)&&(!(a15==1)&&(input==1)))))))))&&!(a18==1))&&(a4==1))&&(a3==5))){ + a12 = 8; + a3 = 6; + a15 = 1; + a0 = 1; + return 26; + } else if(((!(a27==1)&&((((a12==9)&&(!(a6==1)&&(((((input==3)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a20==1))&&(a3==5))&&!(a4==1))))&&!(a15==1))&&!(a0==1)))&&(a5==1))){ + a27 = 1; + a3 = 8; + a15 = 1; + a22 = 0; + a6 = 1; + a0 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if((!(a4==1)&&((((((((a12==8)&&(((!(a27==1)&&(input==5))&&!(a18==1))&&(a22==1)))&&(a20==1))&&!(a0==1))&&(a3==5))&&(a15==1))&&(a6==1))&&(a5==1)))){ + if((a4==1)){ + a12 = 10; + a15 = 0; + a18 = 1; + a3 = 6; + }else{ + a4 = 1; + a18 = 1; + a22 = 0; + a0 = 1; + a3 = 8; + a12 = 10; + } + return 26; + } else if((((a12==12)&&(!(a15==1)&&((a27==1)&&((a20==1)&&((a5==1)&&((input==5)&&((((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1)))&&!(a6==1))||(((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))&&(a6==1)))))))))&&!(a0==1))){ + a6 = 0; + a22 = 0; + a18 = 0; + a3 = 5; + a4 = 1; + a15 = 1; + a0 = 1; + a12 = 8; + return 21; + } else if((((!(a15==1)&&(((a6==1)&&(((((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==1))&&!(a5==1))&&(a12==9))&&(a3==8))&&(a20==1)))&&!(a4==1)))&&(a27==1))&&!(a0==1))){ + a18 = 0; + a3 = 5; + a15 = 1; + a4 = 1; + a27 = 0; + a22 = 0; + a0 = 1; + return -1; + } else if((((a5==1)&&(((a20==1)&&(!(a0==1)&&((a12==11)&&(!(a6==1)&&((!(a27==1)&&((input==2)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))))&&!(a15==1))))))&&(a4==1)))&&(a3==4))){ + a12 = 8; + a15 = 1; + a22 = 1; + a6 = 1; + a0 = 1; + a27 = 1; + a18 = 1; + a4 = 0; + a3 = 5; + return 26; + } else if(((a27==1)&&((((((a20==1)&&(((a12==12)&&(((((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))||((a3==6)&&((a22==1)&&!(a18==1))))&&(input==4)))&&(a5==1)))&&!(a4==1))&&!(a15==1))&&(a6==1))&&(a0==1)))){ + a4 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + a22 = 1; + a15 = 1; + return -1; + } else if(((((a6==1)&&((a3==7)&&((a12==12)&&(((((!(a22==1)&&((a15==1)&&(input==3)))&&(a4==1))&&(a20==1))&&(a5==1))&&(a27==1)))))&&(a0==1))&&(a18==1))){ + a3 = 4; + a22 = 1; + a12 = 8; + return -1; + } else if(((a6==1)&&(((!(a27==1)&&((a20==1)&&(((a3==4)&&(((a0==1)&&(!(a15==1)&&(((a18==1)||!(a18==1))&&(input==6))))&&(a22==1)))&&(a4==1))))&&(a12==9))&&(a5==1)))){ + a0 = 0; + a6 = 0; + a3 = 5; + a27 = 1; + a18 = 1; + a4 = 0; + a15 = 1; + return -1; + } else if(((((a27==1)&&((((!(a4==1)&&((a15==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2))&&(a0==1))))&&(a3==5))&&(a20==1))&&(a6==1)))&&(a12==11))&&(a5==1))){ + a18 = 1; + a0 = 0; + a3 = 4; + a12 = 8; + a22 = 0; + return 26; + } else if(((((((a15==1)&&((!(a27==1)&&((a12==12)&&(((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==8)))||((a3==8)&&((a22==1)&&!(a18==1))))&&(input==1))))&&(a20==1)))&&(a0==1))&&!(a4==1))&&!(a5==1))&&(a6==1))){ + a18 = 1; + a3 = 4; + a5 = 1; + a27 = 1; + a4 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if(((a12==11)&&((a4==1)&&(((a3==4)&&(((a5==1)&&((a0==1)&&((a20==1)&&((a27==1)&&((input==6)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))))))&&!(a6==1)))&&!(a15==1))))){ + a6 = 1; + a12 = 8; + a3 = 5; + a4 = 0; + a5 = 0; + a18 = 0; + a22 = 1; + return 24; + } else if(((a15==1)&&(!(a6==1)&&((!(a5==1)&&((a12==9)&&((a0==1)&&(((((a4==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a27==1))&&!(a22==1))&&(a3==6)))))&&(a20==1))))){ + a18 = 0; + a5 = 1; + a3 = 7; + a12 = 11; + a6 = 1; + a22 = 1; + return 21; + } else if(((((!(a6==1)&&(((a20==1)&&((((a0==1)&&((input==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))))&&(a5==1))&&(a27==1)))&&(a12==10)))&&(a4==1))&&(a3==5))&&(a15==1))){ + a12 = 8; + a18 = 1; + a22 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if(((a27==1)&&(((((((!(a5==1)&&((input==2)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6)))))&&(a20==1))&&!(a15==1))&&(a6==1))&&!(a0==1))&&(a12==10))&&!(a4==1)))){ + a22 = 0; + a3 = 4; + a0 = 1; + a18 = 1; + a12 = 11; + a5 = 1; + a4 = 1; + a15 = 1; + return 26; + } else if((!(a4==1)&&(((a20==1)&&((a0==1)&&(!(a18==1)&&((((!(a15==1)&&(!(a22==1)&&((a6==1)&&(input==6))))&&(a12==8))&&!(a27==1))&&!(a5==1)))))&&(a3==4)))){ + a27 = 1; + a5 = 1; + a6 = 0; + a15 = 1; + a18 = 1; + a12 = 10; + a4 = 1; + return -1; + } else if((!(a5==1)&&((a20==1)&&((a6==1)&&((!(a27==1)&&(((a18==1)&&((a4==1)&&((a12==9)&&(!(a15==1)&&((a22==1)&&(input==4))))))&&!(a0==1)))&&(a3==8)))))){ + a5 = 1; + a27 = 1; + a12 = 8; + a15 = 1; + a3 = 7; + a6 = 0; + a0 = 1; + return 21; + } else if((!(a22==1)&&(((a4==1)&&((((a20==1)&&(!(a27==1)&&((a12==9)&&((a6==1)&&(!(a0==1)&&((input==3)&&((a18==1)||!(a18==1))))))))&&(a5==1))&&!(a15==1)))&&(a3==4)))){ + if((a20==1)){ + a5 = 0; + a18 = 0; + a3 = 8; + a0 = 1; + a12 = 11; + a27 = 1; + a22 = 1; + }else{ + a27 = 1; + a6 = 0; + a12 = 8; + a15 = 1; + a0 = 1; + a22 = 1; + a18 = 1; + } + return -1; + } else if(((a20==1)&&(((((a22==1)&&((a27==1)&&((((a18==1)&&(((input==2)&&(a15==1))&&(a3==6)))&&(a0==1))&&!(a6==1))))&&!(a4==1))&&(a5==1))&&(a12==9)))){ + a4 = 1; + a5 = 0; + a3 = 8; + a22 = 0; + a12 = 10; + return 26; + } else if((!(a15==1)&&((a20==1)&&(((((a6==1)&&(!(a0==1)&&(!(a4==1)&&(!(a5==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==5))))))&&(a12==10))&&!(a27==1))&&(a3==5))))){ + a27 = 1; + a5 = 1; + a15 = 1; + a22 = 1; + a18 = 0; + a4 = 1; + a3 = 6; + a0 = 1; + a12 = 8; + return -1; + } else if((((((((a0==1)&&(!(a6==1)&&((a12==12)&&(((((a18==1)||!(a18==1))&&(input==1))&&(a22==1))&&(a3==4)))))&&(a5==1))&&!(a15==1))&&(a20==1))&&!(a27==1))&&!(a4==1))){ + a27 = 1; + a6 = 1; + a18 = 1; + a15 = 1; + a4 = 1; + a12 = 8; + return -1; + } return calculate_output2(input); + } + + int calculate_output2(int input) { + if(((a20==1)&&(((((!(a6==1)&&(!(a15==1)&&((((((!(a22==1)&&(a18==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4)))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==2))&&(a0==1))))&&!(a4==1))&&(a5==1))&&(a27==1))&&(a12==9)))){ + a18 = 1; + a15 = 1; + a6 = 1; + a3 = 6; + a22 = 1; + a12 = 10; + a4 = 1; + return 26; + } else if((((a20==1)&&(((!(a4==1)&&(!(a27==1)&&((a6==1)&&(((!(a18==1)&&((input==2)&&(a3==4)))&&(a0==1))&&(a12==9)))))&&(a22==1))&&(a15==1)))&&!(a5==1))){ + a3 = 8; + a4 = 1; + a5 = 1; + a6 = 0; + a12 = 11; + a18 = 1; + return 26; + } else if(((a12==9)&&(!(a27==1)&&(!(a6==1)&&((a15==1)&&((((a0==1)&&(((((a3==6)&&((a22==1)&&!(a18==1)))||(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6))))&&(input==5))&&!(a4==1)))&&(a20==1))&&(a5==1))))))){ + a18 = 0; + a0 = 0; + a3 = 4; + a22 = 1; + a27 = 1; + a12 = 12; + return 26; + } else if((((a5==1)&&((a20==1)&&((!(a4==1)&&((a15==1)&&(((((((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a18==1)&&!(a22==1))))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==1))&&!(a0==1))&&(a6==1))))&&(a27==1))))&&(a12==12))){ + a3 = 4; + a18 = 1; + a4 = 1; + a0 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if(((a4==1)&&(!(a5==1)&&((a3==7)&&((a20==1)&&((!(a18==1)&&((a22==1)&&((a0==1)&&(((a12==9)&&((input==4)&&(a15==1)))&&(a27==1)))))&&!(a6==1))))))){ + a3 = 8; + a4 = 0; + a15 = 0; + return 21; + } else if((((a6==1)&&(!(a0==1)&&((a20==1)&&((((a15==1)&&(((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==2))&&!(a27==1))&&(a5==1)))&&(a4==1))&&(a3==7)))))&&(a12==9))){ + if((a20==1)){ + a18 = 0; + a4 = 0; + a12 = 8; + a27 = 1; + a22 = 1; + a6 = 0; + }else{ + a22 = 1; + a3 = 5; + a6 = 0; + a27 = 1; + a0 = 1; + a18 = 1; + a12 = 8; + } + return -1; + } else if((!(a0==1)&&((((((a15==1)&&((a20==1)&&((((((a22==1)&&!(a18==1))&&(a3==6))||(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1)))))&&(input==4))&&!(a27==1))))&&(a4==1))&&!(a5==1))&&!(a6==1))&&(a12==10)))){ + if((a4==1)){ + a27 = 1; + a5 = 1; + a4 = 0; + a3 = 7; + a18 = 1; + a0 = 1; + a12 = 8; + a22 = 1; + }else{ + a18 = 0; + a5 = 1; + a27 = 1; + a22 = 0; + a0 = 1; + a12 = 8; + a6 = 1; + a3 = 8; + } + return 26; + } else if(((((!(a6==1)&&(((a12==11)&&(((!(a27==1)&&(((input==6)&&(a4==1))&&!(a22==1)))&&(a3==6))&&!(a5==1)))&&(a18==1)))&&(a20==1))&&!(a0==1))&&(a15==1))){ + a12 = 8; + a5 = 1; + a15 = 0; + a18 = 0; + a3 = 5; + a4 = 0; + return -1; + } else if((((a12==8)&&((a20==1)&&(!(a5==1)&&((!(a18==1)&&((a4==1)&&((a22==1)&&((((a0==1)&&(input==4))&&(a15==1))&&!(a6==1)))))&&!(a27==1)))))&&(a3==6))){ + a3 = 7; + a22 = 0; + a27 = 1; + a12 = 12; + a5 = 1; + return 24; + } else if((((a5==1)&&((a4==1)&&((a20==1)&&(!(a0==1)&&(((a15==1)&&(((input==6)&&(((a3==8)&&((a22==1)&&(a18==1)))||(((a3==7)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==7)))))&&!(a27==1)))&&(a12==9))))))&&!(a6==1))){ + a18 = 1; + a4 = 0; + a3 = 8; + a6 = 1; + a27 = 1; + a0 = 1; + a12 = 8; + a22 = 1; + return 24; + } else if(((!(a4==1)&&((a27==1)&&(!(a0==1)&&(((a20==1)&&(((a22==1)&&(!(a18==1)&&(((input==2)&&(a6==1))&&(a5==1))))&&(a15==1)))&&(a12==11)))))&&(a3==5))){ + a0 = 1; + a4 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + return -1; + } else if(((a0==1)&&((a4==1)&&((a12==11)&&((a15==1)&&(!(a6==1)&&(((((a20==1)&&((input==2)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))&&!(a27==1))&&(a3==4))&&!(a5==1)))))))){ + a15 = 0; + a12 = 10; + a18 = 0; + a3 = 5; + a27 = 1; + a22 = 1; + return -1; + } else if(((a27==1)&&(((((a20==1)&&(!(a0==1)&&((((input==2)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1)))))&&(a5==1))&&!(a15==1))))&&!(a4==1))&&(a12==12))&&!(a6==1)))){ + a6 = 1; + a15 = 1; + a0 = 1; + a3 = 6; + a22 = 0; + a12 = 8; + a18 = 1; + a4 = 1; + return 26; + } else if((!(a5==1)&&(!(a4==1)&&(((a12==11)&&(((((((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4))))&&(input==4))&&(a15==1))&&(a20==1))&&!(a27==1)))&&(a0==1))))){ + a5 = 1; + a15 = 0; + a27 = 1; + a3 = 7; + a22 = 0; + a12 = 10; + a18 = 0; + a6 = 1; + a0 = 0; + return -1; + } else if(((a20==1)&&(!(a5==1)&&(!(a4==1)&&(((((a15==1)&&((!(a0==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==4)))&&(a3==5)))&&!(a6==1))&&(a27==1))&&(a12==11)))))){ + a0 = 1; + a5 = 1; + a4 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + a6 = 1; + a22 = 1; + return -1; + } else if((((a20==1)&&(((!(a0==1)&&(!(a27==1)&&((((input==2)&&((((a22==1)&&(a18==1))&&(a3==5))||(((!(a22==1)&&(a18==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4)))))&&!(a6==1))&&(a5==1))))&&!(a4==1))&&(a12==10)))&&(a15==1))){ + if((a20==1)){ + a12 = 8; + a18 = 0; + a3 = 8; + a0 = 1; + a27 = 1; + a4 = 1; + a22 = 1; + }else{ + a3 = 7; + a15 = 0; + a22 = 1; + a5 = 0; + a18 = 0; + a0 = 1; + a12 = 9; + a4 = 1; + } + return 24; + } else if(((!(a27==1)&&(!(a15==1)&&(((a5==1)&&((((a20==1)&&((!(a18==1)&&(!(a6==1)&&(input==1)))&&(a12==10)))&&!(a4==1))&&(a22==1)))&&(a0==1))))&&(a3==8))){ + a27 = 1; + a12 = 12; + a6 = 1; + a4 = 1; + a3 = 4; + a15 = 1; + a5 = 0; + a18 = 1; + return 21; + } else if(((a3==8)&&((a0==1)&&((a15==1)&&((a18==1)&&(!(a6==1)&&(!(a22==1)&&((a4==1)&&(!(a5==1)&&((a12==12)&&(((a20==1)&&(input==6))&&!(a27==1)))))))))))){ + a18 = 0; + a27 = 1; + a5 = 1; + a12 = 11; + a15 = 0; + a3 = 6; + a22 = 1; + return 21; + } else if(((a18==1)&&((a22==1)&&((((a4==1)&&((!(a0==1)&&(!(a27==1)&&((a3==5)&&(!(a15==1)&&(!(a6==1)&&(input==5))))))&&(a5==1)))&&(a20==1))&&(a12==11))))){ + a12 = 8; + a27 = 1; + a6 = 1; + a3 = 6; + return 26; + } else if(((a12==11)&&((!(a27==1)&&(!(a6==1)&&(((((((a20==1)&&(!(a18==1)&&(input==4)))&&!(a0==1))&&(a4==1))&&(a3==5))&&(a15==1))&&(a5==1))))&&(a22==1)))){ + a0 = 1; + a4 = 0; + a12 = 9; + a22 = 0; + return -1; + } else if((((a12==11)&&(!(a15==1)&&((((a4==1)&&(((a5==1)&&(((((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==3)))&&(a0==1)))&&!(a6==1))&&(a20==1))))&&!(a27==1))){ + a18 = 0; + a22 = 1; + a6 = 1; + a3 = 5; + a12 = 8; + return -1; + } else if((((!(a5==1)&&((((a0==1)&&(!(a15==1)&&((a12==10)&&((input==1)&&((((a22==1)&&(a18==1))&&(a3==6))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1)))))))))&&(a20==1))&&(a27==1)))&&(a4==1))&&(a6==1))){ + a18 = 1; + a12 = 8; + a5 = 1; + a15 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((((((a0==1)&&(((a4==1)&&((a18==1)&&((a12==9)&&(((input==4)&&!(a5==1))&&(a6==1)))))&&!(a15==1)))&&(a3==7))&&(a20==1))&&(a27==1))&&!(a22==1))){ + a6 = 0; + a22 = 1; + a4 = 0; + a27 = 0; + a3 = 4; + a18 = 0; + a12 = 8; + return 26; + } else if((!(a0==1)&&(((a12==9)&&((!(a6==1)&&(((a4==1)&&((a15==1)&&(!(a27==1)&&((a3==7)&&(!(a18==1)&&(input==5))))))&&(a5==1)))&&(a22==1)))&&(a20==1)))){ + a12 = 10; + a18 = 1; + a5 = 0; + a3 = 4; + a22 = 0; + return 24; + } else if(((a12==11)&&((a5==1)&&((a20==1)&&((((!(a6==1)&&((((((a22==1)&&!(a18==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a18==1)&&(a22==1)))))&&(input==5))&&!(a15==1)))&&(a4==1))&&(a0==1))&&!(a27==1)))))){ + a12 = 9; + a18 = 0; + a3 = 5; + a6 = 1; + a22 = 1; + a4 = 0; + return -1; + } else if(((a20==1)&&(!(a15==1)&&(((a27==1)&&(((a0==1)&&(((a5==1)&&(!(a4==1)&&((input==1)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))))&&(a3==7)))&&(a12==10)))&&(a6==1))))){ + if((a22==1)){ + a15 = 1; + a12 = 12; + a0 = 0; + a18 = 1; + a6 = 0; + a22 = 0; + a4 = 1; + }else{ + a22 = 0; + a15 = 1; + a3 = 5; + a18 = 1; + } + return -1; + } else if((((a4==1)&&((a27==1)&&((a3==6)&&((((a5==1)&&(((((input==3)&&(a15==1))&&!(a6==1))&&(a20==1))&&(a12==8)))&&!(a18==1))&&!(a0==1)))))&&(a22==1))){ + a18 = 1; + a6 = 1; + a0 = 1; + a15 = 0; + a12 = 10; + a22 = 0; + return 21; + } else if((((a27==1)&&(((a4==1)&&((((a3==7)&&(((a12==11)&&((input==6)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))))&&!(a5==1)))&&(a20==1))&&!(a6==1)))&&!(a15==1)))&&(a0==1))){ + a3 = 4; + a22 = 1; + a27 = 0; + a18 = 0; + return 26; + } else if(((a12==8)&&(((!(a0==1)&&(((a20==1)&&((a15==1)&&((input==4)&&((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))))))&&!(a27==1)))&&!(a4==1))&&!(a5==1)))){ + a6 = 0; + a15 = 0; + a3 = 4; + a22 = 1; + a0 = 1; + a18 = 1; + a12 = 12; + a27 = 1; + return 24; + } else if(((((a20==1)&&((!(a4==1)&&((a6==1)&&((!(a15==1)&&((((a3==7)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1)))))&&(input==1)))&&(a5==1))))&&!(a0==1)))&&(a12==11))&&!(a27==1))){ + if((a4==1)){ + a12 = 8; + a3 = 5; + a0 = 1; + a18 = 0; + a15 = 1; + a22 = 0; + a27 = 1; + }else{ + a18 = 1; + a12 = 8; + a0 = 1; + a4 = 1; + a27 = 1; + a3 = 6; + a22 = 1; + a15 = 1; + } + return -1; + } else if((((!(a4==1)&&(((a22==1)&&((((!(a15==1)&&((((a18==1)||!(a18==1))&&(input==6))&&(a20==1)))&&!(a5==1))&&(a12==9))&&(a3==7)))&&(a6==1)))&&(a27==1))&&!(a0==1))){ + a6 = 0; + a15 = 1; + a22 = 0; + a3 = 5; + a18 = 1; + a12 = 10; + a0 = 1; + a4 = 1; + return 21; + } else if((((a12==11)&&((((((a27==1)&&(((a6==1)&&(((a20==1)&&(input==1))&&(a5==1)))&&(a4==1)))&&!(a22==1))&&(a3==4))&&!(a18==1))&&(a0==1)))&&(a15==1))){ + a18 = 1; + a15 = 0; + a12 = 12; + a5 = 0; + a27 = 0; + a4 = 0; + a6 = 0; + return -1; + } else if(((a3==8)&&((((a15==1)&&((!(a5==1)&&((a20==1)&&(((a0==1)&&((input==5)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a4==1))))&&(a12==12)))&&!(a6==1))&&(a27==1)))){ + a12 = 11; + a22 = 0; + a18 = 1; + a3 = 7; + return 21; + } else if(((a15==1)&&(((a6==1)&&((((a20==1)&&((a12==8)&&((((a3==8)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a27==1))&&(a4==1))))&&(a22==1))&&!(a5==1)))&&(a0==1)))){ + a5 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a0==1)&&((((a20==1)&&((a3==8)&&(((a4==1)&&((((input==6)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a15==1))&&(a12==11)))&&(a6==1))))&&(a27==1))&&(a5==1)))){ + a18 = 1; + a12 = 10; + a15 = 1; + a3 = 6; + a5 = 0; + a22 = 0; + a6 = 0; + return -1; + } else if(((a6==1)&&(((a3==8)&&((a5==1)&&((a27==1)&&((a20==1)&&((((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==6))&&!(a0==1))&&!(a4==1))&&(a12==8))))))&&!(a15==1)))){ + a6 = 0; + a3 = 6; + a0 = 1; + a18 = 1; + a15 = 1; + a22 = 0; + return 21; + } else if((((a0==1)&&((!(a22==1)&&((((((a3==4)&&((a12==8)&&((input==6)&&((a18==1)||!(a18==1)))))&&(a20==1))&&!(a27==1))&&(a15==1))&&(a4==1)))&&(a6==1)))&&(a5==1))){ + if((a12==10)){ + a18 = 0; + a27 = 1; + a6 = 0; + a12 = 9; + a3 = 8; + a0 = 0; + a5 = 0; + }else{ + a3 = 7; + a5 = 0; + a12 = 10; + a4 = 0; + a27 = 1; + a15 = 0; + a18 = 0; + a22 = 1; + } + return 26; + } else if(((a20==1)&&((a6==1)&&(((a3==8)&&(((a12==8)&&((a4==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==4))&&!(a15==1))&&!(a5==1))))&&(a0==1)))&&(a27==1))))){ + a12 = 9; + a6 = 0; + a15 = 1; + a18 = 0; + a0 = 0; + a22 = 1; + return 21; + } else if(((((a12==12)&&(((((a5==1)&&((a27==1)&&(((input==2)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a20==1))))&&(a4==1))&&(a3==4))&&(a6==1)))&&(a15==1))&&!(a0==1))){ + a18 = 1; + a12 = 8; + a0 = 1; + a22 = 1; + return -1; + } else if(((((a6==1)&&((a3==8)&&(((a5==1)&&((a12==8)&&(((((a4==1)&&(input==6))&&(a27==1))&&!(a22==1))&&!(a18==1))))&&!(a15==1))))&&(a0==1))&&(a20==1))){ + if((a12==8)){ + a22 = 1; + a4 = 0; + a0 = 0; + a3 = 4; + a6 = 0; + }else{ + a3 = 7; + a22 = 1; + a5 = 0; + a12 = 9; + a4 = 0; + a0 = 0; + a18 = 1; + } + return 26; + } else if(((a12==11)&&(((((a20==1)&&(((a6==1)&&(((!(a27==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a3==6))&&(a15==1)))&&!(a5==1)))&&(a22==1))&&(a0==1))&&!(a4==1)))){ + a6 = 0; + a27 = 1; + a15 = 0; + a18 = 1; + a3 = 4; + a4 = 1; + a12 = 12; + return -1; + } else if(((a6==1)&&((((((a20==1)&&((a5==1)&&(((a12==8)&&(!(a22==1)&&((a3==8)&&(input==3))))&&!(a15==1))))&&(a0==1))&&(a27==1))&&(a18==1))&&(a4==1)))){ + a15 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((((((((!(a15==1)&&(((a20==1)&&((a18==1)&&(input==4)))&&(a12==9)))&&(a0==1))&&!(a6==1))&&(a4==1))&&(a5==1))&&(a27==1))&&!(a22==1))&&(a3==5))){ + if((a12==9)){ + a4 = 0; + a22 = 1; + a12 = 8; + a5 = 0; + a15 = 1; + a0 = 0; + }else{ + a22 = 1; + a5 = 0; + a18 = 0; + a12 = 12; + a4 = 0; + } + return 24; + } else if(((a15==1)&&(((a12==12)&&((a5==1)&&((!(a4==1)&&((a20==1)&&((a22==1)&&((a6==1)&&(!(a0==1)&&((input==5)&&((a18==1)||!(a18==1))))))))&&(a27==1))))&&(a3==7)))){ + a27 = 0; + a0 = 1; + a3 = 5; + a18 = 1; + a12 = 8; + a15 = 0; + a22 = 0; + return 21; + } else if((!(a0==1)&&((a12==11)&&((a5==1)&&(((a3==6)&&(((a20==1)&&(!(a4==1)&&(!(a6==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==5)))))&&!(a15==1)))&&!(a27==1)))))){ + if((a4==1)){ + a15 = 1; + a27 = 1; + a12 = 8; + a0 = 1; + a18 = 0; + a22 = 1; + a4 = 1; + }else{ + a0 = 1; + a3 = 8; + a12 = 8; + a27 = 1; + a18 = 0; + a15 = 1; + a6 = 1; + a22 = 0; + } + return 26; + } else if((!(a4==1)&&((a12==11)&&(((a3==7)&&((((!(a27==1)&&(!(a6==1)&&(!(a0==1)&&((input==5)&&(a20==1)))))&&(a22==1))&&!(a15==1))&&(a18==1)))&&(a5==1))))){ + if((a15==1)){ + a15 = 1; + a27 = 1; + a18 = 0; + a4 = 1; + a0 = 1; + a5 = 0; + }else{ + a0 = 1; + a22 = 0; + a12 = 8; + a4 = 1; + a27 = 1; + a15 = 1; + a6 = 1; + } + return 26; + } else if(((a5==1)&&((((((((a0==1)&&(((input==2)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&(a3==7)))&&(a20==1))&&!(a15==1))&&(a4==1))&&!(a27==1))&&!(a6==1))&&(a12==12)))){ + a15 = 1; + a22 = 0; + a27 = 1; + a12 = 11; + a5 = 0; + a18 = 0; + return 26; + } else if((((a5==1)&&(!(a27==1)&&(((a18==1)&&((a3==7)&&((a0==1)&&((a20==1)&&((!(a15==1)&&((input==2)&&(a12==8)))&&!(a22==1))))))&&(a4==1))))&&!(a6==1))){ + a6 = 1; + a4 = 0; + a3 = 6; + a5 = 0; + a12 = 11; + a27 = 1; + a18 = 0; + return 26; + } else if((!(a27==1)&&(((!(a15==1)&&(!(a4==1)&&((((((((!(a22==1)&&(a18==1))&&(a3==7))||((a3==7)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==5))&&!(a5==1))&&(a6==1))&&(a20==1))))&&(a12==8))&&(a0==1)))){ + a3 = 4; + a18 = 0; + a22 = 1; + return 26; + } else if(((!(a0==1)&&(((a5==1)&&(((a15==1)&&((!(a4==1)&&((input==2)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))||((a3==6)&&((a22==1)&&!(a18==1))))))&&(a6==1)))&&(a27==1)))&&(a12==11)))&&(a20==1))){ + a18 = 0; + a0 = 1; + a3 = 4; + a12 = 10; + a22 = 1; + a4 = 1; + a15 = 0; + return 26; + } else if(((!(a15==1)&&(((a4==1)&&((!(a0==1)&&((a20==1)&&((a18==1)&&((!(a27==1)&&(!(a22==1)&&(input==6)))&&(a3==8)))))&&(a12==11)))&&!(a6==1)))&&!(a5==1))){ + a12 = 8; + a5 = 1; + a27 = 1; + a15 = 1; + a0 = 1; + return 26; + } else if(((a4==1)&&((a3==7)&&((a5==1)&&((((((a6==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==6))&&!(a15==1)))&&!(a0==1))&&(a12==10))&&(a20==1))&&(a27==1)))))){ + a22 = 0; + a12 = 11; + a15 = 1; + a3 = 6; + a27 = 0; + a18 = 1; + a0 = 1; + return 24; + } else if((((a20==1)&&(((a0==1)&&((((a3==4)&&((a18==1)&&((a4==1)&&((a15==1)&&((a12==9)&&(input==3))))))&&!(a27==1))&&!(a22==1)))&&(a5==1)))&&(a6==1))){ + a3 = 7; + a27 = 1; + a18 = 0; + a12 = 11; + return 21; + } else if(((!(a18==1)&&(((((a6==1)&&((((!(a22==1)&&((input==3)&&!(a15==1)))&&!(a0==1))&&(a3==5))&&(a20==1)))&&!(a5==1))&&!(a4==1))&&(a12==9)))&&(a27==1))){ + a0 = 1; + a6 = 0; + a3 = 6; + a15 = 1; + a12 = 12; + return 24; + } else if((((!(a6==1)&&(((a0==1)&&((!(a22==1)&&((a12==11)&&((a5==1)&&(!(a4==1)&&(((a18==1)||!(a18==1))&&(input==3))))))&&(a15==1)))&&!(a27==1)))&&(a20==1))&&(a3==5))){ + a18 = 0; + a12 = 9; + a4 = 1; + a22 = 1; + a3 = 6; + a15 = 0; + a5 = 0; + return -1; + } else if(((a3==4)&&((a0==1)&&((!(a4==1)&&(((((a5==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==5))&&(a20==1)))&&(a12==11))&&(a6==1))&&!(a27==1)))&&!(a15==1))))){ + a15 = 1; + a27 = 1; + a22 = 1; + a4 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if((!(a15==1)&&((a6==1)&&((a3==7)&&((a20==1)&&(((a12==9)&&((((!(a22==1)&&((input==3)&&(a18==1)))&&(a5==1))&&!(a27==1))&&!(a0==1)))&&(a4==1))))))){ + a12 = 10; + a3 = 6; + a4 = 0; + a0 = 1; + a6 = 0; + return -1; + } else if((((!(a5==1)&&(((a0==1)&&(((!(a15==1)&&(!(a22==1)&&((a20==1)&&((a3==8)&&(input==5)))))&&!(a4==1))&&!(a27==1)))&&!(a6==1)))&&(a12==9))&&!(a18==1))){ + a6 = 1; + a22 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if((((a27==1)&&(((a20==1)&&(((a12==12)&&((((a0==1)&&((input==3)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))&&(a15==1))&&(a4==1)))&&!(a5==1)))&&!(a6==1)))&&(a3==7))){ + if((a0==1)){ + a0 = 0; + a22 = 0; + a5 = 1; + a12 = 9; + a3 = 5; + a6 = 1; + a18 = 0; + a4 = 0; + }else{ + a5 = 1; + a18 = 1; + a15 = 0; + a12 = 10; + a22 = 0; + } + return -1; + } else if(((a3==6)&&((!(a27==1)&&((a4==1)&&((a12==10)&&((a20==1)&&(!(a22==1)&&(!(a15==1)&&((a0==1)&&((a5==1)&&((input==4)&&((a18==1)||!(a18==1)))))))))))&&(a6==1)))){ + a5 = 0; + a27 = 1; + a15 = 1; + a18 = 0; + return 21; + } else if((((a4==1)&&((a27==1)&&((a15==1)&&((a5==1)&&((a3==5)&&(((a12==11)&&(((input==2)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a0==1)))&&(a6==1)))))))&&(a20==1))){ + if((a5==1)){ + a5 = 0; + a18 = 0; + a22 = 1; + }else{ + a3 = 8; + a18 = 1; + a22 = 0; + a12 = 12; + a0 = 1; + a27 = 0; + } + return 21; + } else if(((((((a15==1)&&((a3==4)&&(((!(a27==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==6)))&&(a12==8))&&!(a6==1))))&&(a4==1))&&(a20==1))&&!(a5==1))&&!(a0==1))){ + a22 = 0; + a18 = 1; + a0 = 1; + a27 = 1; + a5 = 1; + a6 = 1; + a4 = 0; + a3 = 6; + return 26; + } else if(((a20==1)&&(!(a0==1)&&((a3==4)&&((!(a15==1)&&((!(a4==1)&&((((input==1)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&!(a6==1))&&!(a27==1)))&&(a12==9)))&&(a5==1)))))){ + a5 = 0; + a22 = 0; + a18 = 1; + a4 = 1; + a12 = 11; + a15 = 1; + a0 = 1; + return 21; + } else if(((a20==1)&&(!(a4==1)&&(!(a6==1)&&((a3==5)&&((!(a15==1)&&(!(a0==1)&&((!(a27==1)&&((a22==1)&&((input==4)&&((a18==1)||!(a18==1)))))&&!(a5==1))))&&(a12==11))))))){ + a27 = 1; + a5 = 1; + a12 = 8; + a6 = 1; + a0 = 1; + a3 = 7; + a18 = 1; + a15 = 1; + return -1; + } else if(((a12==9)&&((a5==1)&&(((a15==1)&&((a20==1)&&((a18==1)&&((a4==1)&&(!(a6==1)&&((((a0==1)&&(input==2))&&(a3==7))&&!(a22==1)))))))&&(a27==1))))){ + a5 = 0; + a4 = 0; + a27 = 0; + a12 = 12; + a6 = 1; + a15 = 0; + a3 = 5; + return 26; + } else if(((a12==11)&&(((a4==1)&&(!(a6==1)&&((!(a5==1)&&(((((input==4)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&(a3==7))&&!(a27==1))&&(a0==1)))&&(a20==1))))&&!(a15==1)))){ + a22 = 1; + a15 = 1; + a5 = 1; + a27 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((a3==5)&&((((!(a4==1)&&((((a6==1)&&((a27==1)&&((input==2)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))))&&!(a0==1))&&(a20==1)))&&!(a15==1))&&(a5==1))&&(a12==12)))){ + if((a15==1)){ + a6 = 0; + a4 = 1; + a22 = 1; + a12 = 10; + a3 = 6; + a18 = 1; + }else{ + a27 = 0; + a12 = 8; + a22 = 1; + a3 = 4; + a15 = 1; + a4 = 1; + a18 = 1; + } + return -1; + } else if(((a15==1)&&(!(a5==1)&&((a20==1)&&(((a3==7)&&((a6==1)&&((((a18==1)&&(((input==6)&&(a12==10))&&!(a0==1)))&&(a22==1))&&!(a27==1))))&&!(a4==1)))))){ + a5 = 1; + a0 = 1; + a18 = 0; + a12 = 8; + a27 = 1; + a4 = 1; + a3 = 5; + return -1; + } else if((((a3==4)&&((a0==1)&&(((!(a5==1)&&((a12==12)&&(((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==2))&&(a20==1))&&!(a15==1))))&&(a27==1))&&!(a6==1))))&&(a4==1))){ + a18 = 0; + a22 = 0; + a3 = 6; + a12 = 11; + a5 = 1; + a15 = 1; + a6 = 1; + return -1; + } else if((!(a5==1)&&((!(a27==1)&&(((!(a0==1)&&(((a22==1)&&(!(a4==1)&&((a20==1)&&((input==1)&&((a18==1)||!(a18==1))))))&&(a3==8)))&&(a12==8))&&!(a6==1)))&&(a15==1)))){ + if((a18==1)){ + a5 = 1; + a15 = 0; + a12 = 12; + a18 = 1; + a0 = 1; + }else{ + a18 = 0; + a15 = 0; + a22 = 0; + a4 = 1; + a3 = 6; + a12 = 10; + a0 = 1; + } + return 21; + } else if(((((a20==1)&&((a4==1)&&((((!(a6==1)&&(((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==6))&&(a12==11)))&&(a3==6))&&!(a0==1))&&(a15==1))))&&!(a27==1))&&(a5==1))){ + a18 = 0; + a6 = 1; + a0 = 1; + a15 = 0; + a4 = 0; + a22 = 1; + a3 = 4; + return 26; + } else if(((a5==1)&&((((a15==1)&&((((a20==1)&&((((!(a18==1)&&(input==3))&&!(a6==1))&&(a3==6))&&!(a4==1)))&&(a12==8))&&(a22==1)))&&!(a27==1))&&!(a0==1)))){ + a22 = 0; + a18 = 1; + a3 = 5; + a12 = 10; + a5 = 0; + a0 = 1; + return 21; + } else if(((!(a4==1)&&(!(a27==1)&&((a15==1)&&(((a0==1)&&((a5==1)&&((a20==1)&&(((input==4)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a3==8)))))&&(a12==10)))))&&(a6==1))){ + if((a6==1)){ + a4 = 1; + a0 = 0; + a3 = 6; + a12 = 8; + a6 = 0; + a18 = 0; + a27 = 1; + a22 = 1; + }else{ + a3 = 4; + a22 = 0; + a4 = 1; + a15 = 0; + a18 = 1; + } + return 21; + } else if((((a12==8)&&(!(a4==1)&&((((((a6==1)&&((a0==1)&&((a5==1)&&((a3==6)&&(input==2)))))&&(a18==1))&&!(a22==1))&&(a20==1))&&(a27==1))))&&!(a15==1))){ + a3 = 4; + a4 = 1; + a12 = 9; + return 26; + } else if((!(a5==1)&&(((a3==4)&&((a20==1)&&((!(a0==1)&&((((((a6==1)&&(input==5))&&!(a18==1))&&!(a22==1))&&!(a27==1))&&(a12==8)))&&(a15==1))))&&(a4==1)))){ + if((a0==1)){ + a22 = 1; + a27 = 1; + a5 = 1; + a3 = 8; + a18 = 1; + a6 = 0; + a15 = 0; + a0 = 1; + }else{ + a0 = 1; + a6 = 0; + a5 = 1; + a27 = 1; + a3 = 7; + } + return 26; + } else if((!(a5==1)&&((!(a6==1)&&(!(a15==1)&&(((a27==1)&&((a20==1)&&((a12==11)&&((input==3)&&(((((a18==1)&&!(a22==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))||(((a22==1)&&(a18==1))&&(a3==7)))))))&&(a0==1))))&&!(a4==1)))){ + a15 = 1; + a22 = 1; + a4 = 1; + a5 = 1; + a18 = 1; + a3 = 5; + return -1; + } else if(((a12==12)&&(!(a27==1)&&((!(a4==1)&&(!(a15==1)&&((a0==1)&&(!(a6==1)&&((a20==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==4))&&(a3==6)))))))&&!(a5==1))))){ + a22 = 0; + a5 = 1; + a4 = 1; + a3 = 7; + a15 = 1; + a18 = 0; + a27 = 1; + return 24; + } else if(((a3==8)&&((!(a15==1)&&(!(a27==1)&&(!(a0==1)&&(((a12==10)&&(((a20==1)&&((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a6==1)))&&!(a5==1)))))&&!(a4==1)))){ + a18 = 0; + a27 = 1; + a15 = 1; + a4 = 1; + a3 = 4; + a12 = 8; + a0 = 1; + a5 = 1; + a22 = 1; + return -1; + } else if(((a3==7)&&(((((((a12==8)&&(((a22==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a20==1)))&&!(a5==1)))&&(a0==1))&&!(a6==1))&&!(a4==1))&&!(a27==1))&&(a15==1)))){ + a5 = 1; + a27 = 1; + a6 = 1; + a3 = 4; + a18 = 1; + a4 = 1; + return -1; + } else if(((a0==1)&&(!(a22==1)&&((((((!(a5==1)&&((a20==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&!(a27==1))))&&!(a15==1))&&(a6==1))&&(a3==7))&&(a12==9))&&!(a4==1))))){ + a4 = 1; + a22 = 1; + a3 = 4; + a5 = 1; + a15 = 1; + a12 = 8; + a27 = 1; + a18 = 1; + return -1; + } else if((((!(a27==1)&&(((a20==1)&&((a12==8)&&((((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==2))&&(a5==1))&&!(a4==1))&&(a3==7))))&&!(a15==1)))&&!(a0==1))&&(a6==1))){ + a4 = 1; + a12 = 11; + a0 = 1; + a3 = 8; + a6 = 0; + a18 = 1; + a22 = 0; + return -1; + } else if(((a6==1)&&(((a5==1)&&((a4==1)&&((a20==1)&&((a12==11)&&(!(a15==1)&&((a27==1)&&((input==5)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))||((a3==6)&&((a18==1)&&(a22==1)))))))))))&&(a0==1)))){ + a18 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + a15 = 1; + return -1; + } else if((((a12==11)&&((a22==1)&&((a6==1)&&((!(a18==1)&&((((((input==6)&&(a3==8))&&(a27==1))&&!(a0==1))&&(a5==1))&&(a20==1)))&&(a15==1)))))&&(a4==1))){ + a12 = 8; + a18 = 1; + a0 = 1; + a3 = 4; + return -1; + } else if((((a5==1)&&(!(a4==1)&&((((((a20==1)&&(((a0==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&!(a15==1)))&&(a6==1))&&(a12==9))&&!(a22==1))&&(a3==4))))&&(a27==1))){ + a18 = 1; + a22 = 1; + a15 = 1; + a4 = 1; + a12 = 8; + return -1; + } else if((((((a4==1)&&((((a20==1)&&(!(a15==1)&&((((a3==8)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7))))&&(input==3))))&&(a27==1))&&(a0==1)))&&(a12==11))&&!(a6==1))&&(a5==1))){ + a3 = 4; + a15 = 1; + a27 = 0; + a22 = 0; + a18 = 1; + return 26; + } else if(((a20==1)&&((!(a27==1)&&(((a3==5)&&((!(a5==1)&&((a12==8)&&(((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==1))&&(a4==1))))&&(a6==1)))&&!(a15==1)))&&!(a0==1)))){ + if((a20==1)){ + a12 = 9; + a15 = 1; + a6 = 0; + a22 = 1; + a18 = 0; + }else{ + a5 = 1; + a0 = 1; + a4 = 0; + a27 = 1; + a3 = 4; + a18 = 1; + a22 = 0; + a15 = 1; + } + return 26; + } else if(((!(a4==1)&&((a3==6)&&((((!(a27==1)&&(((a12==11)&&((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&!(a15==1)))&&(a20==1))&&!(a6==1))&&!(a5==1))))&&!(a0==1))){ + if((a3==5)){ + a3 = 5; + a15 = 1; + a18 = 0; + a4 = 1; + a22 = 1; + a6 = 1; + a0 = 1; + a5 = 1; + a27 = 1; + a12 = 8; + }else{ + a5 = 1; + a15 = 1; + a18 = 0; + a22 = 0; + a12 = 8; + a0 = 1; + a6 = 1; + a27 = 1; + a4 = 1; + a3 = 7; + } + return 26; + } else if((((a6==1)&&((((a12==12)&&(!(a15==1)&&(((a20==1)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==6)))&&(a5==1))))&&(a27==1))&&(a4==1)))&&!(a0==1))){ + a18 = 0; + a3 = 5; + a0 = 1; + a12 = 8; + a22 = 1; + a6 = 0; + return 21; + } else if(((a27==1)&&((!(a4==1)&&((((!(a5==1)&&(!(a18==1)&&((!(a6==1)&&((a0==1)&&(input==3)))&&(a12==10))))&&(a20==1))&&!(a22==1))&&(a15==1)))&&(a3==6)))){ + a3 = 5; + a5 = 1; + a18 = 1; + a6 = 1; + a12 = 11; + return 21; + } else if(((!(a22==1)&&(((a12==9)&&(((((!(a15==1)&&(((input==1)&&(a5==1))&&(a18==1)))&&(a3==4))&&!(a0==1))&&(a6==1))&&(a20==1)))&&!(a27==1)))&&!(a4==1))){ + a12 = 8; + a15 = 1; + a0 = 1; + a27 = 1; + return -1; + } else if((!(a6==1)&&((((!(a5==1)&&((a12==9)&&(!(a4==1)&&(!(a15==1)&&((input==5)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6))))))))&&(a27==1))&&(a0==1))&&(a20==1)))){ + a18 = 1; + a4 = 1; + a3 = 8; + a22 = 0; + a5 = 1; + a27 = 0; + return 21; + } else if((((a6==1)&&(((a4==1)&&((a12==8)&&((a22==1)&&((a20==1)&&((a18==1)&&(!(a0==1)&&((a15==1)&&((input==2)&&(a5==1)))))))))&&!(a27==1)))&&(a3==7))){ + if((a20==1)){ + a5 = 0; + a15 = 0; + a4 = 0; + a0 = 1; + a27 = 1; + a3 = 8; + a12 = 12; + }else{ + a0 = 1; + a12 = 12; + a18 = 0; + a27 = 1; + a3 = 6; + a5 = 0; + } + return -1; + } else if(((a12==11)&&((!(a0==1)&&((a15==1)&&(!(a5==1)&&((!(a27==1)&&(((input==2)&&(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8))))&&!(a6==1)))&&(a4==1)))))&&(a20==1)))){ + a5 = 1; + a27 = 1; + a22 = 1; + a18 = 1; + a3 = 5; + a12 = 8; + a0 = 1; + return -1; + } else if((!(a5==1)&&(((a18==1)&&(((a3==8)&&(!(a15==1)&&(!(a22==1)&&(!(a0==1)&&((a20==1)&&(((input==2)&&!(a27==1))&&!(a6==1)))))))&&(a12==11)))&&(a4==1)))){ + a5 = 1; + a12 = 10; + a15 = 1; + a22 = 1; + a18 = 0; + a0 = 1; + a4 = 0; + a27 = 1; + return -1; + } else if(((a20==1)&&((a3==4)&&(((a0==1)&&((a27==1)&&((a4==1)&&(!(a15==1)&&((a12==10)&&(((input==1)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a6==1)))))))&&!(a5==1))))){ + a5 = 1; + a22 = 0; + a3 = 6; + a27 = 0; + a4 = 0; + a18 = 0; + return 21; + } else if((((((a12==11)&&((a20==1)&&((!(a4==1)&&((a6==1)&&((!(a0==1)&&((input==2)&&(a3==8)))&&(a5==1))))&&!(a27==1))))&&(a15==1))&&!(a18==1))&&!(a22==1))){ + a5 = 0; + a3 = 7; + a4 = 1; + a12 = 8; + a0 = 1; + return -1; + } else if((((a12==11)&&(!(a4==1)&&(!(a18==1)&&(!(a15==1)&&((a0==1)&&(((a22==1)&&((a27==1)&&((a3==6)&&((a5==1)&&(input==5)))))&&(a20==1)))))))&&(a6==1))){ + a3 = 7; + a22 = 0; + a12 = 9; + a0 = 0; + a18 = 1; + return -1; + } else if((((a0==1)&&(((a12==12)&&((input==2)&&((((a3==4)&&(((a15==1)&&(!(a5==1)&&((a22==1)&&!(a18==1))))&&(a4==1)))&&(a6==1))||(((((!(a15==1)&&((a5==1)&&(!(a22==1)&&!(a18==1))))&&!(a4==1))&&(a3==8))&&!(a6==1))||((a6==1)&&((a3==4)&&((a4==1)&&((((a18==1)&&(a22==1))&&!(a5==1))&&(a15==1)))))))))&&(a20==1)))&&!(a27==1))){ + a22 = 1; + a18 = 0; + a15 = 0; + a6 = 1; + a3 = 4; + a4 = 0; + a5 = 1; + return -1; + } else if(((a12==11)&&((a27==1)&&((a20==1)&&(!(a6==1)&&(((((((((a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&((a18==1)&&!(a22==1)))||((a3==7)&&(!(a22==1)&&!(a18==1)))))&&(input==4))&&(a15==1))&&(a0==1))&&!(a5==1))&&(a4==1))))))){ + a22 = 0; + a3 = 5; + a18 = 0; + a12 = 10; + a4 = 0; + return -1; + } else if((((a22==1)&&(!(a15==1)&&(((a6==1)&&((a5==1)&&((a20==1)&&((((a0==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a12==12))&&(a3==4)))))&&(a4==1))))&&(a27==1))){ + a18 = 0; + a0 = 0; + a15 = 1; + a3 = 5; + a5 = 0; + a12 = 9; + a6 = 0; + return -1; + } else if((((a27==1)&&((a4==1)&&((a20==1)&&(!(a5==1)&&((a6==1)&&(((((((!(a22==1)&&(a18==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==5))&&(a0==1))&&(a12==11)))))))&&!(a15==1))){ + if((a18==1)){ + a3 = 8; + a18 = 1; + a12 = 12; + a27 = 0; + a6 = 0; + a22 = 0; + }else{ + a18 = 0; + a27 = 0; + a4 = 0; + a22 = 0; + a3 = 4; + a6 = 0; + a15 = 1; + } + return 21; + } else if(((((a5==1)&&(((a3==4)&&((((a0==1)&&((a20==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&(a12==10))))&&!(a6==1))&&!(a27==1)))&&!(a15==1)))&&(a4==1))&&(a22==1))){ + a5 = 0; + a18 = 0; + a27 = 1; + a3 = 5; + a22 = 0; + return 26; + } else if((((!(a6==1)&&(!(a4==1)&&((a12==8)&&(((!(a0==1)&&(((((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1))))||((!(a18==1)&&(a22==1))&&(a3==6)))&&(input==6)))&&(a5==1))&&(a15==1)))))&&(a20==1))&&(a27==1))){ + a27 = 0; + a3 = 7; + a5 = 0; + a12 = 9; + a15 = 0; + a0 = 1; + a18 = 0; + a22 = 0; + return 26; + } else if(((!(a5==1)&&((((a27==1)&&((a4==1)&&((a22==1)&&((!(a0==1)&&(((a3==6)&&(input==6))&&(a12==12)))&&!(a18==1)))))&&(a15==1))&&(a6==1)))&&(a20==1))){ + if((a27==1)){ + a4 = 0; + a15 = 0; + a12 = 9; + a3 = 8; + }else{ + a3 = 7; + a27 = 0; + a4 = 0; + a22 = 0; + a12 = 11; + a6 = 0; + } + return 26; + } else if(((a3==7)&&(!(a4==1)&&((((a12==9)&&(!(a5==1)&&((!(a0==1)&&((!(a27==1)&&(!(a15==1)&&(input==6)))&&!(a6==1)))&&!(a22==1))))&&!(a18==1))&&(a20==1))))){ + a22 = 1; + a12 = 8; + a0 = 1; + a27 = 1; + a18 = 1; + a4 = 1; + a3 = 6; + a15 = 1; + a5 = 1; + return 26; + } else if((((a15==1)&&((a12==11)&&((((!(a4==1)&&(((input==4)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5))))&&(a5==1)))&&(a20==1))&&(a27==1))&&(a0==1))))&&(a6==1))){ + a12 = 10; + a4 = 1; + a18 = 0; + a5 = 0; + a3 = 5; + a15 = 0; + a22 = 0; + a6 = 0; + a27 = 0; + return 21; + } else if(((a6==1)&&(((a20==1)&&((a12==9)&&((((a27==1)&&((a18==1)&&(((!(a4==1)&&(input==6))&&!(a0==1))&&(a15==1))))&&(a22==1))&&(a3==6))))&&(a5==1)))){ + a15 = 0; + a0 = 1; + a22 = 0; + a18 = 0; + a12 = 12; + a6 = 0; + a4 = 1; + return 24; + } else if((((((((a4==1)&&(!(a15==1)&&(((((input==4)&&((a18==1)||!(a18==1)))&&(a3==7))&&(a20==1))&&!(a27==1))))&&(a5==1))&&(a0==1))&&(a22==1))&&(a12==11))&&!(a6==1))){ + a3 = 5; + a12 = 12; + a27 = 1; + a22 = 0; + a18 = 0; + return -1; + } else if(((!(a5==1)&&(!(a22==1)&&((!(a15==1)&&((!(a4==1)&&(((a27==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a3==4)))&&(a20==1)))&&!(a6==1)))&&(a12==11))))&&(a0==1))){ + a22 = 1; + a6 = 1; + a5 = 1; + a15 = 1; + a18 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if(((((a12==10)&&((a6==1)&&((!(a27==1)&&(!(a15==1)&&((a4==1)&&((input==4)&&((((a3==7)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==7)))||((a3==8)&&((a22==1)&&(a18==1))))))))&&(a0==1))))&&(a20==1))&&!(a5==1))){ + a18 = 0; + a3 = 7; + a12 = 9; + a22 = 1; + return -1; + } else if((((((a0==1)&&((a6==1)&&(!(a27==1)&&(((((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))||((a3==6)&&(!(a18==1)&&(a22==1))))&&(input==5))&&!(a15==1))&&!(a4==1)))))&&!(a5==1))&&(a12==11))&&(a20==1))){ + if((a4==1)){ + a3 = 7; + a6 = 0; + a22 = 0; + a12 = 10; + a4 = 1; + a5 = 1; + a0 = 0; + a18 = 0; + a27 = 1; + }else{ + a22 = 1; + a4 = 1; + a27 = 1; + a15 = 1; + a5 = 1; + a3 = 8; + a18 = 0; + } + return 26; + } else if((!(a5==1)&&((((((((a20==1)&&((a0==1)&&((input==6)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))))&&(a3==4))&&!(a4==1))&&(a12==10))&&(a27==1))&&(a6==1))&&!(a15==1)))){ + a12 = 11; + a3 = 7; + a22 = 1; + a18 = 1; + a6 = 0; + return 26; + } else if((((a12==10)&&(((a0==1)&&(((a3==8)&&((a27==1)&&((!(a6==1)&&((input==1)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))&&!(a15==1))))&&!(a4==1)))&&(a20==1)))&&!(a5==1))){ + a22 = 1; + a6 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if((((!(a15==1)&&(((a3==6)&&(((a6==1)&&(((a4==1)&&((input==6)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a27==1)))&&(a20==1)))&&(a5==1)))&&!(a0==1))&&(a12==11))){ + a22 = 1; + a12 = 10; + a6 = 0; + a3 = 8; + a0 = 1; + a18 = 0; + a4 = 0; + return -1; + } else if((((a22==1)&&((a20==1)&&((a15==1)&&(!(a4==1)&&((a18==1)&&((a6==1)&&((a3==5)&&((a0==1)&&((!(a27==1)&&(input==5))&&(a12==12))))))))))&&!(a5==1))){ + a18 = 0; + a5 = 1; + a4 = 1; + a27 = 1; + a6 = 0; + a12 = 10; + return -1; + } else if((((((input==6)&&(((a6==1)&&((((a12==11)&&(((!(a18==1)&&(a22==1))&&(a5==1))&&(a15==1)))&&(a4==1))&&(a3==4)))||((((!(a4==1)&&(((!(a5==1)&&(!(a22==1)&&!(a18==1)))&&!(a15==1))&&(a12==10)))&&(a3==8))&&!(a6==1))||(((a3==4)&&(((a12==11)&&((a15==1)&&(((a22==1)&&(a18==1))&&(a5==1))))&&(a4==1)))&&(a6==1)))))&&!(a27==1))&&(a0==1))&&(a20==1))){ + a15 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + a27 = 1; + a6 = 1; + a4 = 1; + a22 = 1; + a5 = 1; + return -1; + } else if(((((a27==1)&&(!(a5==1)&&((a6==1)&&((!(a15==1)&&((a0==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==1))&&(a4==1))))&&(a3==7)))))&&(a12==10))&&(a20==1))){ + a5 = 1; + a18 = 1; + a12 = 8; + a15 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if((((a4==1)&&((a5==1)&&((a15==1)&&((((a6==1)&&((a20==1)&&(!(a27==1)&&((input==5)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))&&(a0==1))&&(a3==8)))))&&(a12==8))){ + a18 = 1; + a27 = 1; + a3 = 5; + a15 = 0; + a12 = 11; + a6 = 0; + a4 = 0; + a22 = 0; + return 24; + } else if(((a20==1)&&(!(a5==1)&&((!(a27==1)&&(!(a6==1)&&(((a3==4)&&((((input==1)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&!(a0==1))&&(a12==10)))&&!(a15==1))))&&!(a4==1))))){ + if((a22==1)){ + a3 = 7; + a15 = 1; + a27 = 1; + a6 = 1; + a0 = 1; + a5 = 1; + a22 = 1; + a12 = 8; + a18 = 1; + }else{ + a0 = 1; + a15 = 1; + a22 = 1; + a5 = 1; + a4 = 1; + a27 = 1; + a12 = 8; + a6 = 1; + a3 = 5; + a18 = 0; + } + return -1; + } else if((((((a15==1)&&(((a12==11)&&(!(a6==1)&&((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==6))&&!(a5==1))&&!(a0==1))))&&(a27==1)))&&!(a4==1))&&(a3==4))&&(a20==1))){ + a18 = 0; + a4 = 1; + a15 = 0; + a5 = 1; + a12 = 12; + a3 = 5; + a0 = 1; + a22 = 1; + return 26; + } else if(((((a12==12)&&((a18==1)&&((((((a0==1)&&(((input==1)&&!(a27==1))&&(a3==4)))&&!(a4==1))&&(a15==1))&&!(a5==1))&&(a20==1))))&&!(a6==1))&&!(a22==1))){ + a5 = 1; + a6 = 1; + a12 = 9; + a15 = 0; + a27 = 1; + return 26; + } else if((!(a6==1)&&((a20==1)&&((a15==1)&&((!(a18==1)&&((((((a27==1)&&((input==4)&&(a0==1)))&&(a22==1))&&(a5==1))&&(a3==4))&&!(a4==1)))&&(a12==9)))))){ + a5 = 0; + a4 = 1; + a22 = 0; + a18 = 1; + a6 = 1; + a12 = 11; + return 26; + } else if(((a3==5)&&(!(a5==1)&&((!(a15==1)&&(((!(a4==1)&&((a27==1)&&((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==2))&&(a12==9))))&&!(a6==1))&&!(a0==1)))&&(a20==1))))){ + a5 = 1; + a12 = 8; + a22 = 1; + a4 = 1; + a3 = 4; + a0 = 1; + a18 = 1; + a6 = 1; + a15 = 1; + return -1; + } else if(((a20==1)&&(((a15==1)&&(!(a5==1)&&((a3==7)&&(((a4==1)&&((!(a27==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==4)))&&(a0==1)))&&(a12==9)))))&&!(a6==1)))){ + a15 = 0; + a22 = 0; + a5 = 1; + a18 = 1; + a3 = 8; + return -1; + } else if(((((a12==10)&&(!(a4==1)&&(((a27==1)&&(((a6==1)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==2)))&&(a20==1)))&&(a15==1))))&&(a0==1))&&!(a5==1))){ + a4 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + a18 = 1; + return -1; + } else if(((a5==1)&&((a20==1)&&(((((!(a0==1)&&((a12==9)&&((((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==6))))&&(a15==1))&&!(a6==1))&&!(a27==1))&&(a4==1))))){ + a18 = 0; + a27 = 1; + a22 = 0; + a6 = 1; + a5 = 0; + a0 = 1; + a12 = 11; + a3 = 6; + return 26; + } else if(((a20==1)&&((!(a0==1)&&(!(a15==1)&&((a5==1)&&(!(a6==1)&&((a12==10)&&(!(a27==1)&&((a3==6)&&((input==1)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))))))))&&!(a4==1)))){ + a12 = 8; + a0 = 1; + a22 = 1; + a3 = 8; + a18 = 1; + a15 = 1; + a27 = 1; + a6 = 1; + return 21; + } else if(((a15==1)&&((!(a6==1)&&((((((((((a3==4)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==1))&&(a12==10))&&!(a0==1))&&!(a27==1))&&(a5==1))&&(a20==1)))&&!(a4==1)))){ + a15 = 0; + a4 = 1; + a3 = 4; + a18 = 0; + a22 = 1; + return 21; + } else if(((((((a3==6)&&((a12==8)&&(((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==2))&&!(a5==1))&&!(a4==1))&&!(a27==1))))&&(a0==1))&&(a20==1))&&(a15==1))&&!(a6==1))){ + a27 = 1; + a5 = 1; + a18 = 1; + a3 = 4; + a6 = 1; + a22 = 1; + a4 = 1; + return -1; + } else if(((((a6==1)&&((a15==1)&&((a4==1)&&(((a5==1)&&(!(a0==1)&&((input==3)&&(((a3==5)&&((a22==1)&&!(a18==1)))||(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))))))&&!(a27==1)))))&&(a12==11))&&(a20==1))){ + a27 = 1; + a18 = 0; + a12 = 8; + a22 = 1; + a6 = 0; + a3 = 4; + a0 = 1; + return 24; + } else if(((((a3==7)&&((a27==1)&&(!(a15==1)&&((a20==1)&&((((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==5))&&(a12==12))&&(a5==1))&&(a4==1))))))&&(a0==1))&&(a6==1))){ + a22 = 1; + a3 = 4; + a18 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if(((a0==1)&&(((a22==1)&&((((a27==1)&&((!(a15==1)&&((((a18==1)&&(input==4))&&(a5==1))&&!(a4==1)))&&(a3==4)))&&(a20==1))&&!(a6==1)))&&(a12==12)))){ + a12 = 8; + a15 = 1; + a4 = 1; + a6 = 1; + return -1; + } else if((((a0==1)&&((a12==11)&&(((((a15==1)&&(((input==3)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1)))))&&!(a5==1)))&&!(a27==1))&&(a20==1))&&(a4==1))))&&(a6==1))){ + a22 = 1; + a5 = 1; + a3 = 4; + a18 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if(((a5==1)&&(((a3==6)&&(!(a18==1)&&(!(a6==1)&&(((a0==1)&&((a20==1)&&((((input==3)&&(a12==8))&&(a22==1))&&(a4==1))))&&!(a15==1)))))&&(a27==1)))){ + a4 = 0; + a5 = 0; + a6 = 1; + a18 = 1; + a3 = 7; + return 24; + } else if((((((((((a12==12)&&((a15==1)&&((a4==1)&&((a20==1)&&(input==4)))))&&(a3==6))&&!(a0==1))&&(a27==1))&&(a22==1))&&!(a18==1))&&!(a6==1))&&(a5==1))){ + a6 = 1; + a0 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + return -1; + } else if(((!(a5==1)&&((((a6==1)&&((a20==1)&&(!(a27==1)&&((a3==4)&&(((input==3)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a15==1))))))&&(a12==11))&&(a0==1)))&&!(a4==1))){ + a12 = 8; + a18 = 1; + a22 = 1; + a5 = 1; + return -1; + } else if(((!(a27==1)&&((!(a15==1)&&(!(a0==1)&&(((((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==4))&&!(a6==1))&&!(a4==1))&&!(a5==1))&&(a12==9))))&&(a3==5)))&&(a20==1))){ + if((a27==1)){ + a27 = 1; + a3 = 6; + a12 = 10; + a18 = 1; + a0 = 1; + a22 = 0; + }else{ + a18 = 1; + a22 = 0; + a27 = 1; + a0 = 1; + a5 = 1; + } + return 21; + } else if((((a5==1)&&((((a22==1)&&((((((a18==1)&&(!(a15==1)&&(input==3)))&&(a4==1))&&(a12==8))&&!(a27==1))&&(a20==1)))&&!(a6==1))&&(a3==7)))&&!(a0==1))){ + a22 = 0; + a18 = 0; + a5 = 0; + a12 = 10; + return -1; + } else if(((!(a0==1)&&((a15==1)&&((a27==1)&&((a5==1)&&((a12==10)&&((a4==1)&&(((((a3==6)&&((a22==1)&&!(a18==1)))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a18==1)&&(a22==1)))))&&(input==5))&&(a20==1))))))))&&(a6==1))){ + a0 = 1; + a22 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + return -1; + } else if(((a12==9)&&(((a20==1)&&((a27==1)&&((a5==1)&&(!(a4==1)&&((a0==1)&&((input==5)&&((((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4))))))))))&&(a15==1)))){ + a18 = 1; + a3 = 5; + a22 = 1; + a12 = 12; + a5 = 0; + a6 = 1; + return 26; + } else if((!(a22==1)&&((a3==5)&&(((((a27==1)&&((((a6==1)&&(!(a5==1)&&(((a18==1)||!(a18==1))&&(input==6))))&&(a12==11))&&!(a4==1)))&&!(a0==1))&&(a20==1))&&(a15==1))))){ + a3 = 6; + a18 = 0; + a22 = 1; + a4 = 1; + a6 = 0; + a15 = 0; + return 21; + } else if((((!(a6==1)&&(((!(a4==1)&&((((input==1)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1)))))&&!(a5==1))&&!(a0==1)))&&(a20==1))&&(a12==12)))&&(a27==1))&&!(a15==1))){ + a15 = 1; + a6 = 1; + a5 = 1; + a0 = 1; + a12 = 8; + a22 = 1; + a18 = 0; + a3 = 6; + return -1; + } else if(((a27==1)&&((a3==7)&&((a6==1)&&(((((a20==1)&&(((((input==1)&&!(a22==1))&&(a5==1))&&!(a4==1))&&!(a15==1)))&&(a0==1))&&(a12==11))&&!(a18==1)))))){ + a4 = 1; + a0 = 0; + a12 = 10; + a3 = 8; + a6 = 0; + return -1; + } else if(((a3==7)&&((a20==1)&&(!(a22==1)&&(((a12==8)&&((((!(a5==1)&&((a0==1)&&(((a18==1)||!(a18==1))&&(input==3))))&&!(a4==1))&&(a6==1))&&(a15==1)))&&(a27==1)))))){ + a5 = 1; + a4 = 1; + a15 = 0; + a6 = 0; + a3 = 5; + a18 = 1; + a12 = 10; + return 24; + } else if((((a20==1)&&((a12==11)&&(((((!(a15==1)&&(((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==6))&&(a6==1)))&&(a3==6))&&!(a5==1))&&!(a0==1))&&!(a4==1))))&&!(a27==1))){ + a27 = 1; + a0 = 1; + a12 = 8; + a5 = 1; + a6 = 0; + a15 = 1; + a3 = 7; + a4 = 1; + a18 = 0; + a22 = 1; + return -1; + } else if(((a3==6)&&((((!(a27==1)&&((a12==9)&&(((((input==3)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a5==1))&&!(a6==1))&&(a4==1))))&&(a20==1))&&(a0==1))&&(a15==1)))){ + a4 = 0; + a22 = 1; + a27 = 1; + a18 = 0; + a3 = 8; + a12 = 12; + return 26; + } else if(((a27==1)&&(((a5==1)&&((((((a20==1)&&((a22==1)&&((a12==10)&&((input==1)&&(a6==1)))))&&(a3==8))&&(a4==1))&&(a0==1))&&!(a18==1)))&&(a15==1)))){ + a18 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((a27==1)&&((a12==11)&&((a22==1)&&((((a0==1)&&((((a6==1)&&((a15==1)&&((a3==8)&&(input==5))))&&(a5==1))&&(a4==1)))&&!(a18==1))&&(a20==1)))))){ + a3 = 4; + return -1; + } else if((!(a0==1)&&(((!(a15==1)&&((a20==1)&&((a12==9)&&((((!(a6==1)&&(((a4==1)&&(!(a22==1)&&(a18==1)))&&(a3==8)))||(!(a6==1)&&(((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8))))||(((!(a4==1)&&((a22==1)&&(a18==1)))&&(a3==4))&&(a6==1)))&&(input==6)))))&&!(a27==1))&&!(a5==1)))){ + if((a3==5)){ + a0 = 1; + a4 = 0; + a6 = 0; + a12 = 12; + a3 = 7; + a18 = 0; + a15 = 1; + a22 = 1; + }else{ + a22 = 1; + a12 = 8; + a4 = 1; + a6 = 1; + a3 = 8; + a5 = 1; + a18 = 0; + a27 = 1; + a15 = 1; + a0 = 1; + } + return 21; + } else if(((((a20==1)&&(!(a6==1)&&(!(a5==1)&&(!(a4==1)&&(((((!(a18==1)&&(input==1))&&!(a27==1))&&(a3==4))&&(a15==1))&&(a12==9))))))&&(a22==1))&&!(a0==1))){ + a18 = 1; + a6 = 1; + a27 = 1; + a5 = 1; + a4 = 1; + a3 = 8; + a12 = 8; + a0 = 1; + return 24; + } else if((((((a20==1)&&((a18==1)&&(!(a22==1)&&((a4==1)&&((((a12==10)&&((a3==6)&&(input==3)))&&!(a6==1))&&(a27==1))))))&&!(a5==1))&&(a15==1))&&(a0==1))){ + a22 = 1; + a3 = 4; + a12 = 8; + a6 = 1; + a5 = 1; + return -1; + } else if((((a20==1)&&(!(a0==1)&&((a12==8)&&((((!(a6==1)&&((input==4)&&((((a3==6)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))||(((a22==1)&&(a18==1))&&(a3==7)))))&&(a15==1))&&!(a5==1))&&!(a27==1)))))&&(a4==1))){ + a0 = 1; + a3 = 6; + a18 = 0; + a27 = 1; + a22 = 0; + a12 = 12; + return -1; + } else if((!(a6==1)&&((a27==1)&&(((a15==1)&&(((a3==5)&&((a12==10)&&(!(a0==1)&&((!(a5==1)&&((a22==1)&&(input==6)))&&!(a18==1)))))&&(a20==1)))&&(a4==1))))){ + a12 = 9; + a18 = 1; + a0 = 1; + a3 = 6; + a6 = 1; + return 21; + } else if((((!(a4==1)&&(((((((a15==1)&&((a20==1)&&((a18==1)&&(input==4))))&&!(a5==1))&&(a3==4))&&!(a22==1))&&!(a6==1))&&(a0==1)))&&(a27==1))&&(a12==10))){ + a6 = 1; + a27 = 0; + a15 = 0; + a5 = 1; + a18 = 0; + a3 = 7; + a4 = 1; + return 21; + } else if(((((a12==10)&&(((!(a6==1)&&((!(a5==1)&&((((a3==6)&&((a18==1)&&(a22==1)))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==5))))&&(input==2)))&&!(a27==1)))&&(a0==1))&&(a20==1)))&&!(a4==1))&&!(a15==1))){ + a12 = 8; + a15 = 1; + a6 = 1; + a5 = 1; + a3 = 4; + a4 = 1; + a27 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if((((a20==1)&&(((a3==7)&&(((((a27==1)&&((a15==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==4))))&&(a12==11))&&!(a0==1))&&(a5==1)))&&(a6==1)))&&!(a4==1))){ + a0 = 1; + a4 = 1; + a22 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((((!(a22==1)&&((a5==1)&&((((a12==8)&&(((a27==1)&&(((input==5)&&!(a6==1))&&(a3==4)))&&(a15==1)))&&!(a0==1))&&(a20==1))))&&(a18==1))&&!(a4==1))){ + a22 = 1; + a4 = 1; + a6 = 1; + a0 = 1; + return -1; + } else if(((((!(a22==1)&&(((a20==1)&&(((a0==1)&&((a12==12)&&((!(a18==1)&&(input==4))&&(a6==1))))&&(a3==6)))&&!(a27==1)))&&!(a5==1))&&(a4==1))&&(a15==1))){ + a5 = 1; + a12 = 8; + a27 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + return -1; + } else if((!(a0==1)&&(!(a27==1)&&((a6==1)&&(((a5==1)&&(!(a15==1)&&(((a12==9)&&((input==6)&&(((!(a18==1)&&(a22==1))&&(a3==7))||(((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7))))))&&(a4==1))))&&(a20==1)))))){ + a5 = 0; + a12 = 11; + a27 = 1; + a18 = 0; + a22 = 0; + a3 = 4; + return -1; + } else if(((!(a5==1)&&((!(a4==1)&&(!(a27==1)&&((((a20==1)&&((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==2))&&!(a6==1)))&&(a12==11))&&!(a15==1))))&&(a3==4)))&&!(a0==1))){ + a15 = 1; + a27 = 1; + a12 = 9; + a0 = 1; + a4 = 1; + a18 = 1; + a6 = 1; + a5 = 1; + a22 = 0; + a3 = 7; + return 21; + } else if(((((a5==1)&&(((!(a27==1)&&(((a0==1)&&((((!(a18==1)&&(a22==1))&&(a3==7))||(((!(a18==1)&&!(a22==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7))))&&(input==1)))&&(a15==1)))&&(a12==12))&&(a20==1)))&&!(a6==1))&&(a4==1))){ + a18 = 1; + a6 = 1; + a22 = 1; + a27 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((!(a6==1)&&(((a12==8)&&(((((a27==1)&&((a20==1)&&(!(a0==1)&&(((input==6)&&(a5==1))&&(a15==1)))))&&(a4==1))&&!(a18==1))&&(a22==1)))&&(a3==5)))){ + a27 = 0; + a0 = 1; + a3 = 7; + a15 = 0; + a12 = 9; + a6 = 1; + return 21; + } else if((!(a0==1)&&((a15==1)&&((a6==1)&&((a12==8)&&((!(a27==1)&&((((input==5)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1)))))&&(a4==1))&&(a5==1)))&&(a20==1))))))){ + if((a0==1)){ + a0 = 1; + a22 = 0; + a27 = 1; + a18 = 1; + a3 = 6; + }else{ + a18 = 0; + a3 = 7; + a22 = 0; + a12 = 9; + a5 = 0; + a27 = 1; + } + return -1; + } else if((((((a0==1)&&(((a27==1)&&(((a20==1)&&((input==3)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))))&&(a5==1)))&&(a12==10)))&&(a6==1))&&!(a15==1))&&!(a4==1))){ + a12 = 9; + a18 = 1; + a27 = 0; + a6 = 0; + a3 = 8; + a5 = 0; + a22 = 0; + return 21; + } else if((((((((a0==1)&&(((!(a5==1)&&((a27==1)&&((input==5)&&((a18==1)||!(a18==1)))))&&(a4==1))&&(a20==1)))&&!(a15==1))&&(a3==6))&&(a12==8))&&(a22==1))&&!(a6==1))){ + a3 = 4; + a5 = 1; + a6 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if((!(a5==1)&&(!(a15==1)&&((a20==1)&&(((((a6==1)&&(!(a4==1)&&((((input==3)&&(a12==9))&&(a27==1))&&(a3==6))))&&!(a22==1))&&!(a0==1))&&!(a18==1)))))){ + a5 = 1; + a18 = 1; + a27 = 0; + a3 = 8; + a0 = 1; + return 26; + } else if((((a5==1)&&((a20==1)&&((a12==10)&&((((!(a15==1)&&((input==2)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))))&&!(a4==1))&&!(a0==1))&&!(a6==1)))))&&(a27==1))){ + a22 = 0; + a3 = 7; + a0 = 1; + a6 = 1; + a15 = 1; + a18 = 1; + a5 = 0; + return -1; + } else if(((((a20==1)&&((a27==1)&&((a5==1)&&(!(a4==1)&&(!(a15==1)&&(((a22==1)&&(!(a18==1)&&((input==2)&&(a0==1))))&&(a6==1)))))))&&(a3==8))&&(a12==11))){ + a18 = 1; + a15 = 1; + a4 = 1; + a6 = 0; + a12 = 10; + a3 = 5; + a5 = 0; + a22 = 0; + a0 = 0; + return -1; + } else if(((a12==12)&&(((a20==1)&&(!(a15==1)&&((a27==1)&&((((a6==1)&&(((input==2)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&!(a4==1)))&&!(a5==1))&&(a3==4)))))&&!(a0==1)))){ + a0 = 1; + a4 = 1; + a5 = 1; + a18 = 1; + a12 = 8; + a22 = 1; + a6 = 0; + a15 = 1; + return -1; + } else if(((a20==1)&&((a5==1)&&(((((a6==1)&&(((a12==10)&&(!(a4==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==2))))&&!(a15==1)))&&(a3==7))&&(a0==1))&&(a27==1))))){ + a3 = 6; + a22 = 1; + a5 = 0; + a12 = 9; + a0 = 0; + a18 = 0; + return -1; + } else if((((((((a3==5)&&(((a4==1)&&((a20==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==6))))&&!(a5==1)))&&(a15==1))&&(a6==1))&&(a0==1))&&(a27==1))&&(a12==8))){ + a3 = 4; + a22 = 1; + a18 = 1; + a5 = 1; + return -1; + } else if((((a20==1)&&((a3==6)&&(((!(a15==1)&&((a12==12)&&(((a0==1)&&((input==2)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a4==1))))&&!(a27==1))&&(a5==1))))&&(a6==1))){ + a4 = 1; + a3 = 4; + a27 = 1; + a12 = 8; + a22 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if(((((((a12==8)&&(!(a5==1)&&((a6==1)&&(((input==5)&&((((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1))))||((a3==5)&&((a22==1)&&(a18==1)))))&&(a15==1)))))&&(a0==1))&&(a20==1))&&(a27==1))&&(a4==1))){ + a22 = 0; + a3 = 4; + a12 = 9; + a6 = 0; + a4 = 0; + a18 = 0; + return 24; + } else if(((a6==1)&&(!(a15==1)&&(((a27==1)&&(((((a4==1)&&((a5==1)&&((!(a18==1)&&(input==4))&&!(a22==1))))&&(a12==9))&&(a3==5))&&(a20==1)))&&(a0==1))))){ + a12 = 10; + a4 = 0; + a6 = 0; + a15 = 1; + return 21; + } else if(((a12==8)&&(((!(a6==1)&&((a20==1)&&((((a5==1)&&((((a3==7)&&(!(a18==1)&&(a22==1)))||(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7))))&&(input==5)))&&(a27==1))&&!(a0==1))))&&!(a4==1))&&!(a15==1)))){ + a12 = 12; + a0 = 1; + a5 = 0; + a6 = 1; + a4 = 1; + a15 = 1; + a22 = 1; + a18 = 0; + a3 = 5; + return -1; + } else if(((a3==7)&&((a0==1)&&(((a15==1)&&((a4==1)&&(((a6==1)&&((a5==1)&&((((a22==1)&&(input==5))&&(a20==1))&&!(a27==1))))&&(a12==11))))&&(a18==1))))){ + a12 = 8; + a27 = 1; + a3 = 4; + return -1; + } else if(((a3==5)&&(((a5==1)&&(((!(a15==1)&&(!(a6==1)&&((a0==1)&&(!(a4==1)&&((input==2)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))))))&&(a27==1))&&(a12==8)))&&(a20==1)))){ + a12 = 9; + a22 = 0; + a18 = 0; + return 21; + } else if((!(a4==1)&&((!(a5==1)&&(((a12==9)&&((!(a27==1)&&((a20==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&!(a15==1))))&&!(a6==1)))&&(a3==8)))&&(a0==1)))){ + a15 = 1; + a4 = 1; + a12 = 10; + a3 = 6; + a18 = 0; + a27 = 1; + a22 = 0; + return 21; + } else if(((((a20==1)&&(((a27==1)&&(((a5==1)&&((((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))||((!(a18==1)&&(a22==1))&&(a3==8)))&&(input==6))&&(a0==1)))&&!(a6==1)))&&(a12==11)))&&(a4==1))&&(a15==1))){ + a12 = 8; + a18 = 1; + a22 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if((!(a6==1)&&(((a15==1)&&(!(a4==1)&&((a0==1)&&(!(a5==1)&&(((a20==1)&&((a12==10)&&((a22==1)&&((input==4)&&((a18==1)||!(a18==1))))))&&(a27==1))))))&&(a3==7)))){ + a18 = 1; + a15 = 0; + a4 = 1; + a5 = 1; + return -1; + } else if(((((((((((input==6)&&((((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1))))||((a3==7)&&((a18==1)&&(a22==1)))))&&!(a6==1))&&(a20==1))&&(a15==1))&&(a0==1))&&(a12==8))&&!(a5==1))&&(a4==1))&&!(a27==1))){ + a12 = 12; + a3 = 5; + a18 = 0; + a6 = 1; + a27 = 1; + a22 = 1; + return 26; + } else if((((((a15==1)&&(((a12==9)&&((a20==1)&&((a5==1)&&((input==1)&&(((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1))))))))&&(a0==1)))&&(a4==1))&&!(a6==1))&&!(a27==1))){ + a22 = 1; + a3 = 5; + a4 = 0; + a12 = 8; + a6 = 1; + a18 = 0; + return 24; + } else if((!(a5==1)&&((a20==1)&&((a12==11)&&((((((a6==1)&&((a3==6)&&((a4==1)&&(((a18==1)||!(a18==1))&&(input==3)))))&&(a22==1))&&!(a0==1))&&!(a27==1))&&(a15==1)))))){ + if((a4==1)){ + a0 = 1; + a4 = 0; + a18 = 0; + a15 = 0; + a12 = 12; + a22 = 0; + a27 = 1; + a3 = 8; + }else{ + a27 = 1; + a22 = 0; + a12 = 8; + a18 = 1; + a4 = 0; + a5 = 1; + a0 = 1; + } + return 26; + } else if(((a27==1)&&(!(a5==1)&&((a12==9)&&((a3==5)&&((!(a0==1)&&((a4==1)&&((!(a22==1)&&(((a20==1)&&(input==1))&&(a15==1)))&&(a6==1))))&&!(a18==1))))))){ + a6 = 0; + a0 = 1; + a12 = 10; + a3 = 8; + return 26; + } else if((!(a0==1)&&((a12==8)&&((((input==3)&&(((!(a6==1)&&(((!(a15==1)&&((a5==1)&&((a18==1)&&!(a22==1))))&&!(a4==1))&&(a3==8)))||(!(a6==1)&&((a3==8)&&((!(a15==1)&&((a5==1)&&(!(a18==1)&&!(a22==1))))&&!(a4==1)))))||(((a3==4)&&(((a15==1)&&(!(a5==1)&&((a22==1)&&(a18==1))))&&(a4==1)))&&(a6==1))))&&(a27==1))&&(a20==1))))){ + a15 = 1; + a6 = 1; + a0 = 1; + a4 = 1; + a5 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a0==1)&&(!(a27==1)&&(!(a5==1)&&(((a15==1)&&(((((a12==11)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==2)))&&(a20==1))&&(a6==1))&&(a3==5)))&&!(a4==1)))))){ + a3 = 4; + a27 = 1; + a12 = 8; + a4 = 1; + a22 = 1; + a18 = 1; + a5 = 1; + return -1; + } else if((((((a6==1)&&((((!(a4==1)&&((a3==4)&&((input==2)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))))&&(a5==1))&&(a27==1))&&(a15==1)))&&(a20==1))&&(a12==11))&&(a0==1))){ + a12 = 10; + a15 = 0; + a4 = 1; + a22 = 0; + a6 = 0; + a5 = 0; + a18 = 0; + a27 = 0; + return 21; + } else if(((a0==1)&&((a20==1)&&(((a3==6)&&(((((a12==8)&&((((input==4)&&((a18==1)||!(a18==1)))&&!(a27==1))&&!(a22==1)))&&(a5==1))&&(a4==1))&&(a15==1)))&&(a6==1))))){ + if((a15==1)){ + a6 = 0; + a0 = 0; + a3 = 8; + a12 = 11; + a27 = 1; + a5 = 0; + a18 = 1; + a22 = 1; + }else{ + a18 = 0; + a3 = 5; + a4 = 0; + a27 = 1; + a5 = 0; + a12 = 11; + a22 = 1; + } + return 24; + } else if((((a0==1)&&((a3==5)&&(!(a4==1)&&((((((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==2))&&!(a6==1))&&(a12==12))&&!(a5==1))&&(a15==1))&&(a20==1)))))&&!(a27==1))){ + a12 = 8; + a5 = 1; + a6 = 1; + a3 = 4; + a27 = 1; + a22 = 1; + a18 = 1; + a4 = 1; + return -1; + } else if(((a12==11)&&(!(a5==1)&&((a6==1)&&((((((a15==1)&&((a3==7)&&(((input==1)&&((a18==1)||!(a18==1)))&&!(a22==1))))&&(a27==1))&&!(a4==1))&&(a0==1))&&(a20==1)))))){ + a3 = 5; + a15 = 0; + a12 = 8; + a4 = 1; + a5 = 1; + a6 = 0; + a0 = 0; + a18 = 1; + a22 = 1; + return -1; + } else if(((a12==8)&&(((a5==1)&&((a15==1)&&((a0==1)&&((a20==1)&&((a3==6)&&(!(a4==1)&&(((a6==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a22==1))))))))&&!(a27==1)))){ + a3 = 5; + a4 = 1; + a18 = 0; + a0 = 0; + a12 = 11; + a5 = 0; + a27 = 1; + return 26; + } else if((!(a15==1)&&((!(a6==1)&&((a20==1)&&(!(a4==1)&&((a27==1)&&(((a12==8)&&((input==3)&&((((a3==7)&&(!(a22==1)&&(a18==1)))||((a3==7)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==8)))))&&!(a5==1))))))&&(a0==1)))){ + a18 = 1; + a3 = 4; + a4 = 1; + a5 = 1; + a15 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if((((!(a0==1)&&(((((a27==1)&&((a22==1)&&(((a3==4)&&((input==1)&&((a18==1)||!(a18==1))))&&(a6==1))))&&!(a5==1))&&(a12==9))&&(a20==1)))&&!(a4==1))&&(a15==1))){ + a15 = 0; + a0 = 1; + a3 = 8; + a12 = 11; + a18 = 0; + a4 = 1; + return -1; + } else if((((a20==1)&&(((a5==1)&&((a12==10)&&(!(a6==1)&&((!(a15==1)&&(((((a18==1)||!(a18==1))&&(input==5))&&(a22==1))&&(a3==4)))&&(a4==1)))))&&(a0==1)))&&!(a27==1))){ + if((a0==1)){ + a0 = 0; + a27 = 1; + a12 = 11; + a5 = 0; + a18 = 0; + a6 = 1; + }else{ + a22 = 0; + a3 = 5; + a27 = 1; + a5 = 0; + a4 = 0; + a12 = 11; + a18 = 0; + } + return 21; + } else if((!(a5==1)&&(((!(a27==1)&&((a6==1)&&(!(a4==1)&&((a12==9)&&(((((!(a18==1)&&(a22==1))&&(a3==8))||(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8))))&&(input==4))&&(a0==1))))))&&(a20==1))&&(a15==1)))){ + if((a6==1)){ + a4 = 1; + a22 = 1; + a12 = 11; + a5 = 1; + a6 = 0; + a18 = 1; + a0 = 0; + a27 = 1; + a3 = 8; + }else{ + a5 = 1; + a18 = 1; + a15 = 0; + a27 = 1; + a22 = 1; + a4 = 1; + a12 = 11; + a3 = 8; + } + return 24; + } else if(((a15==1)&&((((!(a0==1)&&(((((((input==3)&&(a3==5))&&!(a5==1))&&!(a27==1))&&!(a22==1))&&!(a4==1))&&(a20==1)))&&!(a18==1))&&(a6==1))&&(a12==11)))){ + if((a18==1)){ + a22 = 1; + a12 = 10; + a3 = 8; + a0 = 1; + }else{ + a0 = 1; + a6 = 0; + a15 = 0; + a27 = 1; + a12 = 12; + a5 = 1; + } + return -1; + } else if((!(a4==1)&&((((a22==1)&&((((a12==8)&&((a20==1)&&((a3==8)&&((a5==1)&&(!(a27==1)&&(input==1))))))&&(a6==1))&&(a0==1)))&&(a18==1))&&!(a15==1)))){ + a15 = 1; + a3 = 4; + a4 = 1; + a27 = 1; + return -1; + } else if((((((((a12==10)&&(((((a5==1)&&((input==5)&&(a3==5)))&&(a0==1))&&(a18==1))&&(a20==1)))&&(a4==1))&&!(a22==1))&&(a27==1))&&!(a6==1))&&!(a15==1))){ + a3 = 4; + a6 = 1; + a12 = 8; + a22 = 1; + a15 = 1; + return -1; + } else if((((!(a15==1)&&(!(a6==1)&&((!(a27==1)&&((!(a4==1)&&(((((a22==1)&&(a18==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1)))))&&(input==4)))&&(a20==1)))&&(a5==1))))&&(a12==12))&&(a0==1))){ + a27 = 1; + a5 = 0; + a12 = 10; + a18 = 1; + a3 = 4; + a22 = 0; + return 26; + } else if(((a4==1)&&(!(a27==1)&&(((a12==9)&&(((a20==1)&&(((((input==5)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a0==1))&&(a3==8))&&(a6==1)))&&(a5==1)))&&!(a15==1))))){ + a18 = 1; + a0 = 1; + a22 = 1; + a12 = 8; + a15 = 1; + a3 = 7; + a4 = 0; + a27 = 1; + return 21; + } else if(((a20==1)&&((a22==1)&&(((a0==1)&&((((((((a4==1)&&(input==2))&&!(a18==1))&&(a3==4))&&(a27==1))&&!(a6==1))&&(a12==9))&&(a5==1)))&&(a15==1))))){ + a22 = 0; + a3 = 6; + a12 = 12; + a18 = 1; + return 21; + } else if((((!(a5==1)&&(((((((((input==5)&&((a18==1)||!(a18==1)))&&!(a27==1))&&!(a0==1))&&(a22==1))&&!(a4==1))&&(a3==8))&&(a15==1))&&(a20==1)))&&(a6==1))&&(a12==10))){ + a18 = 1; + a5 = 1; + a3 = 5; + a27 = 1; + a0 = 1; + a22 = 0; + a12 = 8; + a4 = 1; + return -1; + } else if(((a12==11)&&((a6==1)&&((!(a18==1)&&((a0==1)&&(((((((input==2)&&(a15==1))&&(a4==1))&&(a3==7))&&!(a27==1))&&!(a5==1))&&(a20==1))))&&(a22==1))))){ + a15 = 0; + a6 = 0; + a4 = 0; + a22 = 0; + a18 = 1; + a12 = 9; + return -1; + } else if(((a5==1)&&((a20==1)&&((a18==1)&&(!(a0==1)&&((a4==1)&&((a27==1)&&(((a15==1)&&((((a3==8)&&(input==5))&&(a12==11))&&!(a6==1)))&&!(a22==1))))))))){ + a3 = 6; + a0 = 1; + a12 = 10; + a27 = 0; + a22 = 1; + a4 = 0; + a5 = 0; + return 21; + } else if(((a6==1)&&(((((a27==1)&&((((a0==1)&&((((input==1)&&!(a4==1))&&!(a15==1))&&(a5==1)))&&(a22==1))&&(a18==1)))&&(a3==5))&&(a12==10))&&(a20==1)))){ + a3 = 4; + a18 = 0; + a15 = 1; + return -1; + } else if(((!(a6==1)&&((a27==1)&&(((a20==1)&&(!(a4==1)&&(((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==4))&&(a12==8))&&(a5==1))&&(a3==8))))&&(a15==1))))&&!(a0==1))){ + a0 = 1; + a22 = 1; + a6 = 1; + a3 = 4; + a18 = 1; + a4 = 1; + return -1; + } else if((((a18==1)&&((a3==5)&&((a12==10)&&((!(a4==1)&&((!(a27==1)&&(!(a15==1)&&(((a20==1)&&(input==2))&&!(a5==1))))&&(a22==1)))&&(a6==1)))))&&(a0==1))){ + a27 = 1; + a22 = 0; + a3 = 7; + a18 = 0; + a6 = 0; + return 26; + } else if(((((!(a6==1)&&(((((a20==1)&&(!(a27==1)&&((a12==12)&&(((a18==1)||!(a18==1))&&(input==5)))))&&(a3==8))&&!(a15==1))&&!(a5==1)))&&!(a4==1))&&(a0==1))&&(a22==1))){ + a4 = 1; + a12 = 8; + a18 = 1; + a5 = 1; + a6 = 1; + a3 = 5; + return 26; + } else if(((a4==1)&&((((!(a6==1)&&((a5==1)&&((a12==8)&&((a0==1)&&((input==4)&&(((!(a18==1)&&(a22==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==7)))))))))&&(a20==1))&&!(a15==1))&&!(a27==1)))){ + a6 = 1; + a18 = 1; + a22 = 0; + a3 = 4; + a12 = 9; + a5 = 0; + return 21; + } else if((!(a18==1)&&((!(a4==1)&&(((a15==1)&&(((((((input==1)&&(a3==8))&&(a12==12))&&(a20==1))&&(a6==1))&&!(a27==1))&&!(a5==1)))&&!(a22==1)))&&(a0==1)))){ + a18 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + a27 = 1; + a4 = 1; + a22 = 1; + return -1; + } else if(((((a27==1)&&((a3==5)&&(((a5==1)&&((a22==1)&&(((a18==1)&&((a6==1)&&(!(a4==1)&&(input==5))))&&(a15==1))))&&(a12==10))))&&(a0==1))&&(a20==1))){ + a5 = 0; + a15 = 0; + a6 = 0; + a18 = 0; + a4 = 1; + a12 = 11; + return 24; + } else if(((!(a22==1)&&((((((((a5==1)&&((a3==7)&&((a20==1)&&(input==2))))&&(a0==1))&&(a27==1))&&!(a18==1))&&(a4==1))&&!(a15==1))&&(a12==10)))&&(a6==1))){ + a15 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + return -1; + } else if((!(a4==1)&&((a20==1)&&((!(a27==1)&&(((((a15==1)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==4)))&&!(a6==1))&&!(a0==1))&&!(a5==1)))&&(a12==10))))){ + if((a0==1)){ + a0 = 1; + a5 = 1; + a22 = 0; + a3 = 7; + a12 = 11; + a4 = 1; + a15 = 0; + a18 = 1; + }else{ + a27 = 1; + a3 = 5; + a4 = 1; + a5 = 1; + a0 = 1; + a18 = 0; + a22 = 1; + a12 = 8; + a6 = 1; + } + return 21; + } else if(((a0==1)&&(((a3==7)&&((a12==10)&&((a27==1)&&((!(a6==1)&&((((a4==1)&&((input==1)&&(a5==1)))&&(a20==1))&&!(a15==1)))&&!(a18==1)))))&&(a22==1)))){ + a3 = 4; + a18 = 1; + a6 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if(((a15==1)&&(((a12==11)&&(((a0==1)&&((a4==1)&&(!(a27==1)&&((a6==1)&&((input==3)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a18==1)&&(a22==1)))))))))&&!(a5==1)))&&(a20==1)))){ + a5 = 1; + a18 = 1; + a27 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + return -1; + } else if(((a20==1)&&((((a12==8)&&((a27==1)&&((!(a5==1)&&((a3==8)&&((a4==1)&&((a22==1)&&((input==1)&&((a18==1)||!(a18==1)))))))&&(a0==1))))&&(a15==1))&&(a6==1)))){ + a4 = 0; + a3 = 5; + a12 = 9; + a15 = 0; + a18 = 0; + return 24; + } else if((!(a6==1)&&((((((!(a15==1)&&(((a3==8)&&((a20==1)&&((input==2)&&((a18==1)||!(a18==1)))))&&!(a4==1)))&&!(a5==1))&&(a12==11))&&!(a0==1))&&!(a22==1))&&!(a27==1)))){ + a5 = 1; + a27 = 1; + a15 = 1; + a18 = 0; + a0 = 1; + a12 = 8; + a3 = 5; + a4 = 1; + return 24; + } else if(((a27==1)&&(((!(a0==1)&&(!(a6==1)&&((!(a5==1)&&(((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==6))&&(a4==1)))&&(a12==10))))&&!(a15==1))&&(a20==1)))){ + a0 = 1; + a3 = 8; + a22 = 0; + a15 = 1; + a18 = 1; + return -1; + } else if(((((((((((a15==1)&&((!(a5==1)&&(input==4))&&(a12==12)))&&!(a27==1))&&(a4==1))&&(a6==1))&&(a18==1))&&(a3==4))&&(a20==1))&&(a0==1))&&!(a22==1))){ + a3 = 6; + a22 = 1; + a5 = 1; + a6 = 0; + a12 = 8; + a15 = 0; + return -1; + } else if((((a5==1)&&(!(a27==1)&&((((a6==1)&&((a20==1)&&(((input==6)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1))))||((a3==8)&&((a22==1)&&!(a18==1)))))&&!(a0==1))))&&(a12==8))&&!(a4==1))))&&(a15==1))){ + a12 = 11; + a22 = 0; + a4 = 1; + a3 = 7; + a0 = 1; + a18 = 1; + a6 = 0; + return 21; + } return calculate_output3(input); + } + + int calculate_output3(int input) { + if((!(a4==1)&&((a6==1)&&((((a12==8)&&((a3==4)&&((a22==1)&&((a15==1)&&(((a20==1)&&((input==5)&&!(a27==1)))&&!(a18==1))))))&&(a5==1))&&(a0==1))))){ + a27 = 1; + a3 = 6; + a0 = 0; + a15 = 0; + a12 = 11; + return 21; + } else if((!(a5==1)&&((a6==1)&&(((a12==11)&&((a15==1)&&((a3==5)&&((a4==1)&&(!(a27==1)&&(((!(a0==1)&&(input==2))&&(a18==1))&&(a20==1)))))))&&(a22==1))))){ + a6 = 0; + a27 = 1; + a18 = 0; + a3 = 7; + a15 = 0; + a5 = 1; + a12 = 12; + return 26; + } else if((!(a15==1)&&(!(a5==1)&&((a6==1)&&(!(a4==1)&&(((a20==1)&&(((((a3==7)&&((input==4)&&((a18==1)||!(a18==1))))&&!(a22==1))&&(a27==1))&&!(a0==1)))&&(a12==9))))))){ + a5 = 1; + a12 = 8; + a22 = 1; + a0 = 1; + a3 = 4; + a4 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if(((((a15==1)&&((a4==1)&&(!(a6==1)&&(((a0==1)&&((a12==12)&&((input==1)&&(((a3==8)&&(!(a18==1)&&(a22==1)))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1))))))))&&(a20==1)))))&&(a27==1))&&(a5==1))){ + a22 = 1; + a6 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + return -1; + } else if((((a12==8)&&((a3==4)&&(((((a27==1)&&((a4==1)&&(((!(a5==1)&&(input==2))&&!(a15==1))&&!(a22==1))))&&(a0==1))&&!(a18==1))&&(a20==1))))&&!(a6==1))){ + a5 = 1; + a18 = 1; + a15 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if((((a20==1)&&(((a12==10)&&(((a15==1)&&(((a6==1)&&((input==1)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==6)))))&&(a0==1)))&&(a5==1)))&&(a27==1)))&&(a4==1))){ + if((a15==1)){ + a18 = 0; + a4 = 0; + a22 = 1; + a3 = 4; + a6 = 0; + a0 = 0; + a5 = 0; + }else{ + a22 = 1; + a5 = 0; + a6 = 0; + a12 = 8; + a3 = 6; + a18 = 1; + } + return -1; + } else if((((a0==1)&&((a12==10)&&((!(a6==1)&&(!(a4==1)&&(!(a27==1)&&(!(a15==1)&&(((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a5==1))))))&&(a20==1))))&&(a3==8))){ + if((a12==12)){ + a3 = 4; + a22 = 0; + a18 = 0; + a12 = 12; + a6 = 1; + }else{ + a22 = 1; + a0 = 0; + a15 = 1; + a4 = 1; + a27 = 1; + a18 = 0; + a3 = 7; + } + return 26; + } else if(((((!(a6==1)&&(((!(a0==1)&&((a3==7)&&((a4==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a5==1)))))&&(a15==1))&&(a27==1)))&&(a12==12))&&(a20==1))&&!(a22==1))){ + a3 = 5; + a0 = 1; + a18 = 1; + a12 = 10; + return -1; + } else if((!(a4==1)&&((a20==1)&&((a5==1)&&(!(a0==1)&&((!(a27==1)&&((!(a6==1)&&((a12==8)&&((input==6)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))))&&(a3==7)))&&(a15==1))))))){ + if((a0==1)){ + a4 = 1; + a6 = 1; + a27 = 1; + a22 = 0; + a0 = 1; + a18 = 1; + }else{ + a27 = 1; + a18 = 1; + a6 = 1; + a3 = 8; + a15 = 0; + a22 = 0; + } + return -1; + } else if(((a18==1)&&((a4==1)&&((a20==1)&&((((!(a27==1)&&(((((a5==1)&&(input==4))&&(a3==4))&&(a22==1))&&(a0==1)))&&(a12==12))&&(a15==1))&&(a6==1)))))){ + if((a18==1)){ + a6 = 0; + a3 = 8; + a0 = 0; + a12 = 9; + a27 = 1; + a5 = 0; + a22 = 0; + }else{ + a4 = 0; + a18 = 0; + a27 = 1; + a15 = 0; + a5 = 0; + a12 = 10; + a3 = 7; + } + return 26; + } else if(((a15==1)&&(((!(a4==1)&&((a12==8)&&(((!(a22==1)&&((a6==1)&&(!(a27==1)&&((input==6)&&(a3==7)))))&&!(a0==1))&&(a20==1))))&&(a18==1))&&(a5==1)))){ + if((a20==1)){ + a15 = 0; + a5 = 0; + a3 = 8; + a4 = 1; + a22 = 1; + a12 = 10; + a18 = 0; + }else{ + a18 = 0; + a0 = 1; + a3 = 8; + a5 = 0; + a15 = 0; + a6 = 0; + a12 = 12; + a22 = 1; + a4 = 1; + } + return 21; + } else if((((a15==1)&&((((((a0==1)&&(!(a6==1)&&((!(a27==1)&&(!(a22==1)&&(input==2)))&&!(a18==1))))&&(a3==4))&&(a20==1))&&(a12==8))&&(a4==1)))&&(a5==1))){ + a18 = 1; + a12 = 12; + a27 = 1; + a3 = 5; + a22 = 1; + return 21; + } else if((((((((a18==1)&&(!(a5==1)&&(((a4==1)&&(((a12==8)&&(input==4))&&(a20==1)))&&(a22==1))))&&(a15==1))&&(a3==6))&&!(a0==1))&&!(a27==1))&&(a6==1))){ + a27 = 1; + a0 = 1; + a22 = 0; + a5 = 1; + return -1; + } else if(((a5==1)&&((a20==1)&&(!(a22==1)&&(((((((a18==1)&&(!(a6==1)&&((a12==10)&&(input==5))))&&(a0==1))&&!(a27==1))&&(a3==4))&&(a4==1))&&(a15==1)))))){ + a6 = 1; + a27 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if(((((((a18==1)&&((a4==1)&&(((a3==6)&&((a15==1)&&((a22==1)&&((input==6)&&(a12==11)))))&&(a20==1))))&&!(a6==1))&&!(a5==1))&&(a27==1))&&(a0==1))){ + a5 = 1; + a18 = 0; + a3 = 5; + a12 = 10; + a4 = 0; + a22 = 0; + return 21; + } else if(((a0==1)&&((a6==1)&&((a12==9)&&((a20==1)&&(((a3==5)&&(((((input==4)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a27==1))&&(a5==1))&&!(a15==1)))&&(a4==1))))))){ + a22 = 1; + a15 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + return -1; + } else if((((a15==1)&&(((a12==10)&&(!(a4==1)&&((a20==1)&&((a0==1)&&(((((!(a18==1)&&(a22==1))&&(a3==7))||(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1)))))&&(input==5))&&(a6==1))))))&&(a27==1)))&&!(a5==1))){ + a4 = 1; + a18 = 1; + a22 = 1; + a5 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((((a0==1)&&(!(a6==1)&&(((a20==1)&&(!(a5==1)&&((((input==6)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a3==8))&&(a12==10))))&&(a15==1))))&&!(a4==1))&&(a27==1))){ + a5 = 1; + a4 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + a6 = 1; + a18 = 1; + return -1; + } else if(((!(a22==1)&&(((((!(a0==1)&&(((a20==1)&&(((input==5)&&(a18==1))&&!(a15==1)))&&!(a4==1)))&&(a6==1))&&(a12==10))&&(a27==1))&&!(a5==1)))&&(a3==5))){ + a0 = 1; + a4 = 1; + a5 = 1; + a15 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + return -1; + } else if(((((!(a4==1)&&((!(a27==1)&&((a15==1)&&(((((a3==7)&&(!(a18==1)&&(a22==1)))||(((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a18==1)&&(a22==1)))))&&(input==2))&&(a6==1))))&&(a5==1)))&&(a20==1))&&(a0==1))&&(a12==12))){ + if((a18==1)){ + a27 = 1; + a22 = 0; + a3 = 4; + a12 = 8; + a0 = 0; + a15 = 0; + a18 = 0; + }else{ + a27 = 1; + a22 = 0; + a3 = 6; + a5 = 0; + a12 = 11; + a6 = 0; + a18 = 0; + } + return -1; + } else if((!(a0==1)&&(((a27==1)&&(!(a4==1)&&((((((a6==1)&&((input==2)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))&&(a5==1))&&!(a15==1))&&(a12==10))&&(a20==1))))&&(a3==8)))){ + a3 = 6; + a6 = 0; + a15 = 1; + a0 = 1; + a22 = 1; + a18 = 1; + a5 = 0; + return 21; + } else if((!(a0==1)&&((a27==1)&&((a15==1)&&((a4==1)&&((a20==1)&&(!(a6==1)&&(!(a22==1)&&((a5==1)&&((((a18==1)&&(input==3))&&(a3==4))&&(a12==11))))))))))){ + a6 = 1; + a0 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if((((a18==1)&&((a5==1)&&(((a12==9)&&((a22==1)&&((((((input==5)&&!(a6==1))&&(a3==5))&&!(a0==1))&&(a27==1))&&!(a4==1))))&&(a20==1))))&&(a15==1))){ + a3 = 4; + a6 = 1; + a0 = 1; + a4 = 1; + a12 = 8; + return -1; + } else if((((a12==9)&&(((((a4==1)&&((!(a27==1)&&(((a0==1)&&((input==6)&&(a22==1)))&&(a6==1)))&&(a20==1)))&&(a3==5))&&(a15==1))&&(a5==1)))&&(a18==1))){ + a22 = 0; + a12 = 10; + a18 = 0; + a27 = 1; + a0 = 0; + return 21; + } else if(((((a5==1)&&(((!(a0==1)&&((a4==1)&&((a3==7)&&((a12==11)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==5))))))&&(a20==1))&&(a6==1)))&&(a15==1))&&(a27==1))){ + a27 = 0; + a0 = 1; + a18 = 0; + a4 = 0; + a12 = 12; + a22 = 0; + a3 = 6; + return 21; + } else if(((a22==1)&&((a18==1)&&(((!(a27==1)&&((a4==1)&&((a3==7)&&((a0==1)&&((a15==1)&&((a20==1)&&((a12==12)&&(input==6))))))))&&!(a5==1))&&(a6==1))))){ + a5 = 1; + a3 = 8; + a4 = 0; + a15 = 0; + a0 = 0; + a27 = 1; + a12 = 11; + return -1; + } else if(((a18==1)&&(!(a27==1)&&(!(a6==1)&&((a0==1)&&(!(a22==1)&&(((a20==1)&&(((a12==10)&&(((input==5)&&(a5==1))&&(a4==1)))&&(a3==5)))&&!(a15==1)))))))){ + a4 = 0; + a18 = 0; + a27 = 1; + a5 = 0; + return 26; + } else if(((a22==1)&&((a0==1)&&((a15==1)&&(((a3==6)&&((((a4==1)&&(!(a27==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a5==1))))&&(a20==1))&&(a12==8)))&&(a6==1)))))){ + a5 = 0; + a6 = 0; + a18 = 1; + a4 = 0; + a27 = 1; + a12 = 10; + return 21; + } else if(((a5==1)&&((a12==9)&&(((a15==1)&&((a20==1)&&((a4==1)&&((((input==6)&&(((a3==8)&&(!(a18==1)&&(a22==1)))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8)))))&&(a6==1))&&!(a0==1)))))&&(a27==1))))){ + a3 = 6; + a12 = 12; + a15 = 0; + a6 = 0; + a4 = 0; + a0 = 1; + a18 = 0; + a22 = 1; + a27 = 0; + return 26; + } else if((!(a15==1)&&(((a3==7)&&((((((!(a18==1)&&((a4==1)&&((a6==1)&&(input==3))))&&(a12==9))&&(a22==1))&&(a5==1))&&!(a27==1))&&(a20==1)))&&(a0==1)))){ + a22 = 0; + a12 = 12; + a27 = 1; + return 21; + } else if(((a15==1)&&((a4==1)&&((((a20==1)&&((((((input==3)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a27==1))&&(a12==12))&&(a6==1))&&(a3==4)))&&(a0==1))&&!(a5==1))))){ + if((a22==1)){ + a6 = 0; + a5 = 1; + a0 = 0; + a22 = 1; + a12 = 11; + a18 = 0; + a4 = 0; + }else{ + a15 = 0; + a12 = 11; + a22 = 1; + a3 = 5; + a18 = 0; + } + return -1; + } else if(((a15==1)&&(((a6==1)&&(!(a0==1)&&((!(a5==1)&&(((a12==8)&&((a3==6)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==3))))&&(a20==1)))&&(a4==1))))&&(a27==1)))){ + a12 = 10; + a5 = 1; + a18 = 1; + a22 = 1; + a6 = 0; + a3 = 4; + a0 = 1; + return 21; + } else if((((!(a6==1)&&(((((!(a0==1)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==6)))&&!(a27==1))&&(a20==1))&&!(a15==1))&&(a5==1)))&&(a12==8))&&(a4==1))){ + if((a27==1)){ + a5 = 0; + a3 = 7; + a22 = 0; + a15 = 1; + a18 = 1; + a12 = 9; + }else{ + a15 = 1; + a0 = 1; + a27 = 1; + a18 = 0; + a6 = 1; + a22 = 0; + a3 = 6; + } + return 21; + } else if(((a20==1)&&(!(a22==1)&&(!(a5==1)&&(!(a27==1)&&((((a12==11)&&(((!(a15==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a3==8))&&!(a0==1)))&&!(a4==1))&&!(a6==1))))))){ + if((a27==1)){ + a18 = 0; + a22 = 1; + a6 = 1; + a3 = 4; + a27 = 1; + a12 = 9; + a15 = 1; + }else{ + a22 = 1; + a3 = 7; + a12 = 8; + a27 = 1; + a4 = 1; + a15 = 1; + a5 = 1; + a0 = 1; + a18 = 1; + } + return 21; + } else if(((a20==1)&&(!(a0==1)&&(((!(a15==1)&&((a4==1)&&((a12==8)&&(!(a5==1)&&((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==6))&&(a27==1))))))&&!(a6==1))&&(a3==8))))){ + a18 = 1; + a12 = 12; + a5 = 1; + a3 = 6; + a4 = 0; + a22 = 1; + a0 = 1; + return 26; + } else if((((a12==9)&&(((a27==1)&&(((!(a5==1)&&(((input==1)&&((((a18==1)&&(a22==1))&&(a3==8))||((((a18==1)&&!(a22==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7)))))&&!(a6==1)))&&(a20==1))&&!(a0==1)))&&(a4==1)))&&!(a15==1))){ + a6 = 1; + a5 = 1; + a18 = 0; + a12 = 11; + a3 = 5; + a22 = 1; + a15 = 1; + a0 = 1; + return 21; + } else if((!(a27==1)&&((a22==1)&&((a0==1)&&(((a4==1)&&((a3==4)&&(((a5==1)&&((((a12==12)&&(input==5))&&(a20==1))&&(a18==1)))&&(a6==1))))&&(a15==1)))))){ + a27 = 1; + a12 = 8; + return -1; + } else if((((((a12==8)&&(!(a0==1)&&((!(a15==1)&&((((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4))))&&(input==6)))&&(a27==1))))&&(a20==1))&&!(a4==1))&&(a5==1))){ + if((a6==1)){ + a22 = 0; + a6 = 0; + a18 = 0; + a3 = 4; + a5 = 0; + }else{ + a3 = 6; + a27 = 0; + a18 = 0; + a12 = 11; + a4 = 1; + a6 = 1; + a0 = 1; + a22 = 0; + } + return -1; + } else if((((a3==8)&&((!(a6==1)&&((!(a27==1)&&(((a22==1)&&((((input==5)&&((a18==1)||!(a18==1)))&&(a5==1))&&!(a15==1)))&&!(a4==1)))&&!(a0==1)))&&(a20==1)))&&(a12==8))){ + a22 = 0; + a0 = 1; + a15 = 1; + a27 = 1; + a6 = 1; + a3 = 4; + a4 = 1; + a18 = 0; + return 26; + } else if((((!(a4==1)&&((((a5==1)&&(!(a15==1)&&(((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==3))&&!(a0==1))&&(a20==1))))&&(a12==8))&&(a6==1)))&&(a3==8))&&(a27==1))){ + a3 = 7; + a22 = 1; + a15 = 1; + a18 = 0; + a12 = 12; + a0 = 1; + return 26; + } else if((((a20==1)&&((a27==1)&&(!(a5==1)&&((a6==1)&&((a0==1)&&(!(a4==1)&&(!(a15==1)&&((input==5)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))||((a3==6)&&((a22==1)&&!(a18==1))))))))))))&&(a12==11))){ + a12 = 8; + a18 = 1; + a15 = 1; + a3 = 4; + a4 = 1; + a22 = 1; + a5 = 1; + return -1; + } else if((((((a3==5)&&((a6==1)&&((a15==1)&&(!(a27==1)&&((a0==1)&&(((input==6)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a20==1)))))))&&!(a4==1))&&!(a5==1))&&(a12==11))){ + a27 = 1; + a3 = 7; + a6 = 0; + a5 = 1; + a22 = 0; + a12 = 10; + a18 = 0; + return 21; + } else if(((((!(a22==1)&&((a12==11)&&((!(a27==1)&&(((a20==1)&&(((a18==1)&&(input==1))&&(a6==1)))&&!(a4==1)))&&(a0==1))))&&!(a5==1))&&!(a15==1))&&(a3==8))){ + a3 = 7; + a5 = 1; + a27 = 1; + a18 = 0; + a4 = 1; + a15 = 1; + return -1; + } else if((((a5==1)&&((a22==1)&&((((((a15==1)&&(((a4==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a27==1)))&&!(a6==1))&&(a12==11))&&(a20==1))&&(a0==1))))&&(a3==5))){ + a3 = 8; + a15 = 0; + a18 = 1; + a12 = 10; + a4 = 0; + return -1; + } else if((((!(a5==1)&&(((a12==9)&&(((a20==1)&&((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==3))&&(a27==1))&&(a3==6)))&&(a6==1)))&&!(a0==1)))&&(a15==1))&&!(a4==1))){ + a27 = 0; + a5 = 1; + a6 = 0; + a18 = 1; + a22 = 1; + a0 = 1; + a3 = 5; + a12 = 12; + return 21; + } else if(((a3==4)&&((a5==1)&&(!(a15==1)&&(((a27==1)&&((a12==8)&&((a20==1)&&(((a4==1)&&((input==5)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))))&&!(a0==1)))))&&!(a6==1)))))){ + a15 = 1; + a18 = 0; + a22 = 1; + a0 = 1; + a3 = 7; + a12 = 10; + a6 = 1; + return 26; + } else if(((a18==1)&&(((a20==1)&&((a22==1)&&(((((a5==1)&&((((a3==8)&&(input==1))&&(a0==1))&&(a27==1)))&&!(a6==1))&&!(a15==1))&&(a4==1))))&&(a12==10)))){ + a3 = 7; + a12 = 9; + a22 = 0; + a5 = 0; + a4 = 0; + return -1; + } else if(((a4==1)&&(((((((a20==1)&&((a12==11)&&((a3==4)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==6)))))&&!(a6==1))&&!(a27==1))&&!(a5==1))&&(a0==1))&&!(a15==1)))){ + a3 = 8; + a6 = 1; + a12 = 10; + a22 = 0; + a27 = 1; + a18 = 0; + return 26; + } else if((((((a12==11)&&((a3==6)&&(((((((input==6)&&!(a22==1))&&!(a15==1))&&(a0==1))&&(a18==1))&&!(a5==1))&&!(a6==1))))&&(a27==1))&&(a4==1))&&(a20==1))){ + a12 = 10; + a22 = 1; + a18 = 0; + a4 = 0; + a15 = 1; + a3 = 5; + return -1; + } else if((!(a5==1)&&((a3==7)&&((((a20==1)&&((a15==1)&&(!(a4==1)&&((!(a0==1)&&((input==2)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a6==1)))))&&(a12==9))&&(a27==1))))){ + a4 = 1; + a0 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + a22 = 1; + a5 = 1; + a6 = 1; + return -1; + } else if(((a12==8)&&((a20==1)&&((((!(a0==1)&&(!(a5==1)&&(((a15==1)&&((input==3)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))))&&(a6==1))))&&(a27==1))&&!(a4==1))&&(a3==8))))){ + a27 = 0; + a0 = 1; + a3 = 6; + a22 = 0; + a18 = 0; + a4 = 1; + return 26; + } else if((!(a5==1)&&((a20==1)&&(!(a15==1)&&((a6==1)&&((((((input==1)&&(((a3==7)&&((a22==1)&&!(a18==1)))||(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==7)))))&&(a12==9))&&(a0==1))&&!(a27==1))&&!(a4==1))))))){ + a5 = 1; + a27 = 1; + a3 = 4; + a18 = 0; + a22 = 0; + a4 = 1; + a12 = 10; + return 21; + } else if(((a12==12)&&((!(a15==1)&&(((a27==1)&&((((a20==1)&&((input==5)&&((((a3==6)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))||(((a18==1)&&(a22==1))&&(a3==7)))))&&!(a0==1))&&!(a6==1)))&&(a4==1)))&&!(a5==1)))){ + a15 = 1; + a12 = 8; + a0 = 1; + a5 = 1; + a18 = 0; + a22 = 0; + a3 = 4; + return -1; + } else if(((a5==1)&&((!(a4==1)&&(((!(a27==1)&&(!(a22==1)&&((((a0==1)&&((input==1)&&((a18==1)||!(a18==1))))&&!(a15==1))&&(a3==6))))&&(a20==1))&&(a12==12)))&&!(a6==1)))){ + a4 = 1; + a15 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + a27 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if(((a4==1)&&(((a12==8)&&((!(a5==1)&&((!(a27==1)&&((((input==6)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&!(a15==1))&&(a20==1)))&&(a3==8)))&&(a6==1)))&&!(a0==1)))){ + if((a27==1)){ + a18 = 0; + a0 = 1; + a5 = 1; + a22 = 1; + a6 = 0; + a15 = 1; + a27 = 1; + }else{ + a22 = 1; + a6 = 0; + a4 = 0; + a0 = 1; + a15 = 1; + a3 = 5; + a18 = 0; + } + return -1; + } else if(((!(a6==1)&&(!(a0==1)&&(((((a22==1)&&((a20==1)&&((((input==1)&&((a18==1)||!(a18==1)))&&(a5==1))&&(a15==1))))&&!(a4==1))&&(a27==1))&&(a3==4))))&&(a12==12))){ + a0 = 1; + a3 = 6; + a18 = 1; + a22 = 0; + return 21; + } else if(((a15==1)&&((((a5==1)&&((((!(a4==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&!(a6==1)))&&(a12==12))&&(a20==1))&&!(a27==1)))&&(a0==1))&&(a3==8)))){ + a12 = 8; + a15 = 0; + a6 = 1; + a22 = 0; + a0 = 0; + a4 = 1; + a27 = 1; + a18 = 0; + return -1; + } else if(((((((((((a0==1)&&((a18==1)&&(!(a6==1)&&(input==2))))&&!(a15==1))&&(a4==1))&&(a3==7))&&!(a5==1))&&(a20==1))&&(a12==12))&&!(a27==1))&&!(a22==1))){ + a27 = 1; + a12 = 8; + a22 = 1; + a15 = 1; + a3 = 4; + a5 = 1; + a6 = 1; + return -1; + } else if((((a12==12)&&((a6==1)&&((a15==1)&&((a3==6)&&(((a20==1)&&((!(a5==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==1)))&&!(a4==1)))&&!(a0==1))))))&&(a27==1))){ + if((a4==1)){ + a18 = 0; + a22 = 1; + a4 = 1; + a12 = 8; + a0 = 1; + a3 = 7; + a5 = 1; + }else{ + a18 = 1; + a12 = 9; + a22 = 0; + a5 = 1; + a3 = 4; + a0 = 1; + } + return 26; + } else if((((!(a5==1)&&(((a12==8)&&(!(a27==1)&&(!(a6==1)&&(!(a4==1)&&((input==2)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))||((a3==6)&&((a22==1)&&(a18==1)))))))))&&(a20==1)))&&(a15==1))&&(a0==1))){ + if((a27==1)){ + a22 = 0; + a18 = 0; + a3 = 7; + a0 = 0; + a27 = 1; + a5 = 1; + a12 = 12; + a6 = 1; + }else{ + a3 = 5; + a15 = 0; + a6 = 1; + a18 = 1; + a27 = 1; + a22 = 1; + a12 = 10; + } + return 26; + } else if(((((!(a6==1)&&(!(a27==1)&&(((a15==1)&&((a18==1)&&(((!(a5==1)&&(input==1))&&(a22==1))&&(a3==4))))&&(a0==1))))&&(a20==1))&&!(a4==1))&&(a12==9))){ + a5 = 1; + a4 = 1; + a27 = 1; + a12 = 8; + a6 = 1; + return -1; + } else if(((a15==1)&&((!(a4==1)&&((a20==1)&&((((((a6==1)&&(((a0==1)&&(input==6))&&!(a18==1)))&&!(a5==1))&&(a12==8))&&(a22==1))&&!(a27==1))))&&(a3==5)))){ + a5 = 1; + a27 = 1; + a18 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if(((((!(a5==1)&&((!(a0==1)&&(((input==6)&&(((((!(a22==1)&&(a18==1))&&(a3==8))&&(a6==1))||(((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1)))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1))))&&(a27==1)))&&!(a4==1)))&&!(a15==1))&&(a20==1))&&(a12==8))){ + a15 = 1; + a22 = 0; + a3 = 7; + a0 = 1; + a6 = 1; + a18 = 1; + a12 = 10; + a5 = 1; + return -1; + } else if(((a20==1)&&((a27==1)&&((a12==9)&&(!(a4==1)&&((a0==1)&&(!(a5==1)&&(!(a15==1)&&((a6==1)&&((input==6)&&(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8))))))))))))){ + a22 = 1; + a15 = 1; + a4 = 1; + a3 = 4; + a5 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if((((a20==1)&&(!(a27==1)&&(!(a6==1)&&(!(a0==1)&&((a5==1)&&((((input==1)&&(((a3==6)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))))&&!(a15==1))&&(a12==11)))))))&&(a4==1))){ + if((a22==1)){ + a22 = 1; + a12 = 8; + a27 = 1; + a18 = 1; + a0 = 1; + a3 = 5; + a15 = 1; + }else{ + a22 = 0; + a3 = 7; + a12 = 10; + a18 = 1; + a6 = 1; + a5 = 0; + } + return 21; + } else if(((a0==1)&&(((!(a4==1)&&(((a27==1)&&((((((a18==1)&&(input==3))&&(a6==1))&&(a5==1))&&(a22==1))&&!(a15==1)))&&(a20==1)))&&(a12==9))&&(a3==6)))){ + a5 = 0; + a22 = 0; + a3 = 8; + a15 = 1; + a4 = 1; + a18 = 0; + a6 = 0; + a12 = 10; + return 21; + } else if((((((!(a6==1)&&((a3==7)&&((a5==1)&&(((a22==1)&&((a15==1)&&((input==2)&&((a18==1)||!(a18==1)))))&&(a0==1)))))&&(a4==1))&&(a27==1))&&(a20==1))&&(a12==10))){ + a18 = 0; + a6 = 1; + a3 = 5; + a22 = 0; + return -1; + } else if(((a12==12)&&(((a22==1)&&(((a20==1)&&((((a6==1)&&(((((a18==1)||!(a18==1))&&(input==1))&&(a0==1))&&!(a4==1)))&&(a15==1))&&!(a5==1)))&&(a3==7)))&&(a27==1)))){ + if((a5==1)){ + a0 = 0; + a22 = 0; + a18 = 0; + a5 = 1; + a3 = 8; + a6 = 0; + a4 = 1; + a12 = 8; + }else{ + a15 = 0; + a6 = 0; + a3 = 5; + a22 = 0; + a18 = 0; + } + return 26; + } else if(((a0==1)&&((((a5==1)&&((a12==11)&&(((((a20==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==6)))&&!(a15==1))&&(a3==6))&&(a27==1))))&&!(a6==1))&&!(a4==1)))){ + if((a27==1)){ + a0 = 0; + a5 = 0; + a3 = 5; + a6 = 1; + a18 = 1; + a22 = 0; + a12 = 10; + }else{ + a22 = 0; + a27 = 0; + a15 = 1; + a3 = 7; + a18 = 1; + } + return 24; + } else if(((!(a15==1)&&(((((a27==1)&&((a12==9)&&((a4==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a3==8)))))&&(a20==1))&&(a5==1))&&(a6==1)))&&!(a0==1))){ + a12 = 8; + a18 = 1; + a0 = 1; + a3 = 4; + a22 = 1; + a15 = 1; + return -1; + } else if(((a0==1)&&((((a12==10)&&((a22==1)&&((!(a15==1)&&(!(a4==1)&&(((a27==1)&&(!(a18==1)&&(input==6)))&&(a3==4))))&&!(a6==1))))&&(a20==1))&&!(a5==1)))){ + if((a18==1)){ + a5 = 1; + a12 = 8; + a6 = 1; + a15 = 1; + a0 = 0; + a18 = 1; + a3 = 7; + }else{ + a5 = 1; + a18 = 1; + a3 = 7; + a4 = 1; + } + return -1; + } else if((((a27==1)&&(!(a22==1)&&((((!(a18==1)&&(((((a4==1)&&(input==4))&&(a20==1))&&(a0==1))&&(a12==10)))&&(a5==1))&&(a3==4))&&!(a6==1))))&&(a15==1))){ + a3 = 7; + a18 = 1; + a6 = 1; + return -1; + } else if((((a5==1)&&((a15==1)&&(((!(a0==1)&&((a12==9)&&(((input==5)&&(((a3==8)&&(!(a18==1)&&(a22==1)))||(((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))))&&!(a4==1))))&&(a6==1))&&!(a27==1))))&&(a20==1))){ + a27 = 1; + a3 = 7; + a0 = 1; + a18 = 0; + a4 = 1; + a22 = 0; + a12 = 8; + return 26; + } else if((!(a18==1)&&(!(a6==1)&&(((a20==1)&&(((a0==1)&&(((((a15==1)&&((a3==6)&&(input==3)))&&(a12==12))&&(a4==1))&&!(a5==1)))&&!(a22==1)))&&(a27==1))))){ + a12 = 8; + a5 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((!(a27==1)&&(((!(a0==1)&&(((!(a15==1)&&((a5==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2))&&(a6==1))))&&(a20==1))&&(a4==1)))&&(a3==7))&&(a12==8)))){ + if((a12==8)){ + a27 = 1; + a6 = 0; + a3 = 6; + a22 = 1; + a15 = 1; + a0 = 1; + a18 = 1; + }else{ + a15 = 1; + a18 = 0; + a3 = 5; + a22 = 1; + a0 = 1; + a27 = 1; + } + return 21; + } else if(((a27==1)&&((a6==1)&&(!(a0==1)&&(((((a15==1)&&((!(a22==1)&&(((a5==1)&&(input==2))&&!(a18==1)))&&(a20==1)))&&(a3==6))&&(a12==12))&&(a4==1)))))){ + a6 = 0; + a0 = 1; + a4 = 0; + a18 = 1; + a3 = 8; + return 26; + } else if(((a6==1)&&(!(a4==1)&&((a18==1)&&((a3==5)&&((a12==10)&&((!(a27==1)&&(!(a15==1)&&((((input==6)&&!(a5==1))&&(a22==1))&&(a20==1))))&&(a0==1)))))))){ + a3 = 4; + a12 = 8; + a4 = 1; + a15 = 1; + a5 = 1; + a27 = 1; + return -1; + } else if((!(a6==1)&&((((a5==1)&&(!(a4==1)&&(((((input==6)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))||(((a22==1)&&!(a18==1))&&(a3==5))))&&!(a15==1))&&(a0==1))&&!(a27==1))))&&(a20==1))&&(a12==8)))){ + a6 = 1; + a4 = 1; + a3 = 6; + a18 = 1; + a27 = 1; + a22 = 0; + a15 = 1; + a12 = 10; + return 26; + } else if((((((((a12==11)&&(!(a0==1)&&(((!(a6==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a5==1))&&(a4==1))))&&(a3==6))&&!(a15==1))&&(a22==1))&&(a27==1))&&(a20==1))){ + a0 = 1; + a15 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + a6 = 1; + return -1; + } else if((((((((((a20==1)&&(((((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==6)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==6)))&&!(a15==1))&&!(a4==1))&&(a12==12))&&(a27==1))&&(a5==1))&&(a6==1))&&!(a0==1))){ + a3 = 7; + a18 = 1; + a15 = 1; + a0 = 1; + a6 = 0; + a12 = 8; + a27 = 0; + a22 = 0; + a5 = 0; + return -1; + } else if(((a27==1)&&(((a20==1)&&((!(a5==1)&&(((input==5)&&((((a3==8)&&((a4==1)&&(!(a22==1)&&!(a18==1))))&&!(a6==1))||(((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1)))&&(a6==1))))&&(a15==1)))&&(a12==11)))&&(a0==1)))){ + a5 = 1; + a3 = 4; + a12 = 8; + a6 = 1; + a22 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if(((a20==1)&&(((((a4==1)&&((a22==1)&&(!(a18==1)&&(!(a0==1)&&(((a3==8)&&((input==3)&&!(a27==1)))&&!(a5==1))))))&&(a12==11))&&!(a6==1))&&(a15==1)))){ + a12 = 8; + a27 = 1; + a6 = 1; + a3 = 4; + a0 = 1; + a5 = 1; + return 26; + } else if(((!(a5==1)&&((a12==8)&&((!(a18==1)&&((!(a22==1)&&((a20==1)&&(!(a27==1)&&(((input==5)&&(a3==7))&&!(a0==1)))))&&!(a4==1)))&&(a15==1))))&&!(a6==1))){ + a3 = 4; + a0 = 1; + a5 = 1; + a22 = 1; + a18 = 1; + a27 = 1; + return 21; + } else if(((a15==1)&&((!(a18==1)&&((((((a12==12)&&((!(a4==1)&&((input==6)&&!(a0==1)))&&!(a22==1)))&&!(a6==1))&&(a27==1))&&(a5==1))&&(a20==1)))&&(a3==7)))){ + a12 = 11; + a6 = 1; + a0 = 1; + a22 = 1; + a4 = 1; + a3 = 4; + a5 = 0; + return 21; + } else if((((((!(a27==1)&&((a12==8)&&(((a4==1)&&(((a18==1)&&(!(a6==1)&&(input==1)))&&(a20==1)))&&(a3==6))))&&!(a5==1))&&(a22==1))&&(a0==1))&&!(a15==1))){ + a18 = 0; + a4 = 0; + a3 = 8; + a27 = 1; + a12 = 9; + return 21; + } else if(((((((((a4==1)&&((a6==1)&&((a5==1)&&(((input==3)&&(a3==4))&&(a20==1)))))&&(a22==1))&&!(a0==1))&&!(a27==1))&&(a12==11))&&!(a15==1))&&(a18==1))){ + a18 = 0; + a27 = 1; + a6 = 0; + a0 = 1; + a15 = 1; + a12 = 8; + return 24; + } else if(((!(a4==1)&&(((a5==1)&&((!(a0==1)&&((a20==1)&&(!(a6==1)&&((((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==5)))))&&(a12==11)))&&!(a15==1)))&&!(a27==1))){ + a3 = 6; + a6 = 1; + a27 = 1; + a15 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + a4 = 1; + return 26; + } else if(((a3==4)&&(((((a12==10)&&((!(a27==1)&&((a22==1)&&((a20==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&!(a5==1)))))&&(a0==1)))&&!(a4==1))&&!(a6==1))&&!(a15==1)))){ + a3 = 7; + a27 = 1; + a0 = 0; + a22 = 0; + a15 = 1; + a18 = 0; + a5 = 1; + return 26; + } else if(((!(a27==1)&&((a3==7)&&((a6==1)&&((a4==1)&&((a12==9)&&(((a20==1)&&(!(a5==1)&&(((a22==1)&&(input==6))&&(a18==1))))&&(a15==1)))))))&&!(a0==1))){ + if((a3==8)){ + a3 = 5; + a12 = 8; + a6 = 0; + a0 = 1; + a27 = 1; + a5 = 1; + }else{ + a27 = 1; + a4 = 0; + a15 = 0; + a6 = 0; + a3 = 5; + a12 = 8; + a0 = 1; + } + return -1; + } else if(((a15==1)&&((a0==1)&&((((((a5==1)&&(((a3==6)&&((a20==1)&&((input==1)&&!(a4==1))))&&!(a18==1)))&&!(a27==1))&&(a6==1))&&!(a22==1))&&(a12==11))))){ + a22 = 1; + a12 = 8; + a18 = 1; + a27 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((((!(a27==1)&&((a15==1)&&((((a3==6)&&(((a5==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a20==1)))&&!(a22==1))&&(a0==1))))&&!(a6==1))&&(a12==9))&&!(a4==1))){ + a4 = 1; + a18 = 0; + a12 = 12; + a27 = 1; + a3 = 7; + a5 = 0; + return -1; + } else if(((((a5==1)&&(((a20==1)&&((((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2))&&(a12==9))&&!(a4==1))&&!(a27==1))&&(a3==5)))&&!(a15==1)))&&(a6==1))&&!(a0==1))){ + a15 = 1; + a0 = 1; + a27 = 1; + a18 = 1; + a12 = 8; + a22 = 0; + return -1; + } else if((((a6==1)&&(((!(a4==1)&&(((((a15==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==3)))&&(a20==1))&&(a27==1))&&!(a5==1)))&&(a12==8))&&(a0==1)))&&(a3==4))){ + a22 = 1; + a5 = 1; + a18 = 0; + a3 = 7; + a12 = 10; + return 26; + } else if((!(a15==1)&&(!(a0==1)&&(((a12==9)&&(((a4==1)&&(!(a22==1)&&(((a3==7)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a20==1)))&&!(a5==1))))&&(a6==1)))&&(a27==1))))){ + a22 = 1; + a18 = 0; + a4 = 0; + a3 = 8; + a0 = 1; + a6 = 0; + return 21; + } else if(((a27==1)&&(!(a15==1)&&((a20==1)&&((a0==1)&&((((a4==1)&&((a12==11)&&(((((a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a18==1)&&!(a22==1)))))&&(input==6))))&&!(a5==1))&&(a6==1))))))){ + a22 = 1; + a12 = 12; + a15 = 1; + a6 = 0; + a18 = 1; + a3 = 8; + return 21; + } else if((!(a27==1)&&((!(a6==1)&&(!(a4==1)&&(((a0==1)&&((a5==1)&&((((input==4)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&(a3==6))&&(a20==1))))&&(a15==1))))&&(a12==8)))){ + a27 = 1; + a4 = 1; + a6 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + return -1; + } else if(((((a27==1)&&((a3==5)&&(((a12==10)&&((((a22==1)&&(!(a15==1)&&((input==4)&&(a5==1))))&&(a4==1))&&!(a18==1)))&&(a20==1))))&&(a6==1))&&!(a0==1))){ + a15 = 1; + a12 = 12; + a3 = 6; + a0 = 1; + a18 = 1; + a6 = 0; + a22 = 0; + return -1; + } else if(((((a20==1)&&(!(a15==1)&&((a6==1)&&(((a0==1)&&((a4==1)&&((input==4)&&((((a22==1)&&(a18==1))&&(a3==7))||((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1))))))))&&(a12==10)))))&&(a27==1))&&!(a5==1))){ + a22 = 0; + a4 = 0; + a15 = 1; + a3 = 5; + a18 = 1; + a5 = 1; + a6 = 0; + return -1; + } else if(((a3==4)&&(!(a18==1)&&(((a20==1)&&(!(a4==1)&&((((a12==11)&&((((input==5)&&(a6==1))&&!(a5==1))&&!(a27==1)))&&(a0==1))&&(a15==1))))&&!(a22==1))))){ + a12 = 10; + a5 = 1; + a18 = 1; + a3 = 7; + a27 = 1; + return -1; + } else if(((!(a0==1)&&((a12==10)&&((a3==6)&&((a5==1)&&((a4==1)&&(((a20==1)&&((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==1))&&!(a15==1)))&&!(a6==1)))))))&&(a27==1))){ + a22 = 0; + a15 = 1; + a3 = 4; + a18 = 0; + a4 = 0; + a5 = 0; + a0 = 1; + return 21; + } else if(((((!(a27==1)&&((!(a0==1)&&(!(a15==1)&&((a6==1)&&((a4==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&!(a22==1))))))&&(a12==9)))&&(a5==1))&&(a20==1))&&(a3==4))){ + a0 = 1; + a27 = 1; + a15 = 1; + a18 = 0; + a3 = 8; + a6 = 0; + a12 = 8; + return 21; + } else if(((((a3==7)&&(((a5==1)&&((a20==1)&&((a0==1)&&((((input==6)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&!(a15==1))&&!(a6==1)))))&&(a12==12)))&&(a4==1))&&!(a27==1))){ + a6 = 1; + a22 = 1; + a12 = 10; + a5 = 0; + a4 = 0; + a18 = 1; + a3 = 8; + return -1; + } else if(((((a4==1)&&(!(a6==1)&&((((a20==1)&&((a15==1)&&(((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6)))||((a3==6)&&(!(a18==1)&&(a22==1))))&&(input==4))))&&!(a0==1))&&!(a27==1))))&&(a12==11))&&!(a5==1))){ + a18 = 0; + a3 = 5; + a12 = 9; + a5 = 1; + a22 = 0; + return 26; + } else if(((a3==8)&&(!(a27==1)&&((a18==1)&&((a6==1)&&(((((a0==1)&&(!(a22==1)&&(!(a5==1)&&((input==2)&&!(a4==1)))))&&(a20==1))&&!(a15==1))&&(a12==11))))))){ + a27 = 1; + a3 = 4; + a18 = 0; + a15 = 1; + a4 = 1; + a22 = 1; + return -1; + } else if(((a20==1)&&((a4==1)&&(((a12==9)&&((!(a0==1)&&((a27==1)&&(!(a6==1)&&(((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==6))&&(a3==4)))))&&(a5==1)))&&!(a15==1))))){ + a6 = 1; + a12 = 10; + a15 = 1; + a5 = 0; + a22 = 1; + a18 = 0; + a0 = 1; + a4 = 0; + return 26; + } else if((((((!(a0==1)&&(((a27==1)&&(!(a15==1)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==4))))&&!(a5==1)))&&!(a6==1))&&(a12==8))&&(a20==1))&&!(a4==1))){ + a4 = 1; + a22 = 1; + a18 = 1; + a0 = 1; + a5 = 1; + a6 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if((((a6==1)&&((a20==1)&&((a27==1)&&((((a15==1)&&((((a3==6)&&(((a18==1)||!(a18==1))&&(input==1)))&&!(a0==1))&&(a22==1)))&&(a12==8))&&!(a4==1)))))&&(a5==1))){ + a0 = 1; + a5 = 0; + a6 = 0; + a12 = 10; + a3 = 4; + a15 = 0; + a4 = 1; + a18 = 1; + return -1; + } else if((!(a27==1)&&(((a15==1)&&(!(a0==1)&&((a6==1)&&(((a4==1)&&((((((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))||((a3==7)&&(!(a18==1)&&(a22==1))))&&(input==3))&&(a12==10)))&&(a5==1)))))&&(a20==1)))){ + if((a27==1)){ + a12 = 8; + a0 = 1; + a3 = 7; + a18 = 1; + a27 = 1; + a22 = 0; + a4 = 0; + }else{ + a18 = 0; + a0 = 1; + a3 = 5; + a4 = 0; + a27 = 1; + a22 = 0; + a12 = 8; + } + return 24; + } else if((!(a4==1)&&(!(a18==1)&&((a6==1)&&((a0==1)&&((a20==1)&&((a12==8)&&(((a27==1)&&(!(a22==1)&&((a3==6)&&((input==6)&&(a15==1)))))&&!(a5==1))))))))){ + a4 = 1; + a18 = 1; + a5 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((a27==1)&&(!(a22==1)&&(!(a6==1)&&(!(a15==1)&&((((((a18==1)&&((a3==4)&&((input==2)&&(a12==8))))&&(a5==1))&&(a20==1))&&!(a0==1))&&!(a4==1))))))){ + a18 = 0; + a4 = 1; + a22 = 1; + a5 = 0; + a12 = 10; + a3 = 6; + a0 = 1; + a27 = 0; + return 26; + } else if(((a27==1)&&((a3==8)&&((!(a0==1)&&((a5==1)&&((a20==1)&&(!(a4==1)&&(((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==4))&&(a6==1))&&!(a15==1))))))&&(a12==10))))){ + a18 = 0; + a15 = 1; + a4 = 1; + a22 = 1; + a0 = 1; + return -1; + } else if((((((a15==1)&&((a20==1)&&((a12==11)&&((a27==1)&&((input==3)&&((!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4)))||(((((a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8))))))))))&&!(a5==1))&&(a0==1))&&!(a4==1))){ + a27 = 0; + a6 = 1; + a3 = 8; + a4 = 1; + a18 = 0; + a22 = 1; + return 26; + } else if((((!(a0==1)&&(((a12==8)&&((a15==1)&&(!(a22==1)&&(!(a27==1)&&((((input==5)&&((a18==1)||!(a18==1)))&&(a6==1))&&(a4==1))))))&&(a3==8)))&&(a5==1))&&(a20==1))){ + a3 = 4; + a22 = 1; + a15 = 0; + a27 = 1; + a18 = 1; + a12 = 11; + return 21; + } else if(((a27==1)&&((a0==1)&&((((((a20==1)&&(((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4))))&&(input==1)))&&(a12==12))&&!(a15==1))&&(a5==1))&&(a4==1))))){ + a3 = 4; + a22 = 1; + a15 = 1; + a18 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if((((!(a5==1)&&((a20==1)&&((a4==1)&&(((((a15==1)&&((a27==1)&&(((a18==1)||!(a18==1))&&(input==1))))&&(a22==1))&&(a3==8))&&!(a0==1)))))&&(a6==1))&&(a12==9))){ + a0 = 1; + a5 = 1; + a3 = 6; + a6 = 0; + a27 = 0; + a12 = 12; + a15 = 0; + a18 = 0; + a22 = 0; + return 21; + } else if(((a18==1)&&((((a5==1)&&((((a6==1)&&((((a27==1)&&((a20==1)&&(input==3)))&&!(a15==1))&&(a3==6)))&&(a12==8))&&!(a4==1)))&&(a0==1))&&!(a22==1)))){ + a6 = 0; + a18 = 0; + a12 = 9; + a3 = 8; + a15 = 1; + return 21; + } else if(((!(a27==1)&&((a12==10)&&(!(a4==1)&&((!(a5==1)&&((!(a6==1)&&((a15==1)&&((input==1)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))&&(a3==7)))&&!(a0==1)))))&&(a20==1))){ + if((a0==1)){ + a0 = 1; + a6 = 1; + a12 = 12; + a3 = 6; + a22 = 1; + a18 = 1; + }else{ + a0 = 1; + a18 = 0; + a15 = 0; + a27 = 1; + a6 = 1; + a22 = 0; + a3 = 8; + a5 = 1; + } + return 26; + } else if((!(a5==1)&&((a12==10)&&(!(a4==1)&&((a27==1)&&((a20==1)&&(((((((!(a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1)))))&&(input==6))&&(a6==1))&&!(a15==1))&&(a0==1)))))))){ + a27 = 0; + a22 = 1; + a15 = 1; + a18 = 0; + a3 = 8; + a4 = 1; + return 21; + } else if((((a3==4)&&((!(a0==1)&&(!(a27==1)&&(!(a4==1)&&((a15==1)&&((a18==1)&&(((a20==1)&&((a22==1)&&(input==4)))&&!(a6==1)))))))&&(a5==1)))&&(a12==8))){ + a4 = 1; + a22 = 0; + a3 = 5; + a0 = 1; + a27 = 1; + return 21; + } else if(((((((((((a22==1)&&(((input==1)&&(a20==1))&&(a18==1)))&&(a15==1))&&(a4==1))&&(a27==1))&&(a0==1))&&(a3==8))&&(a6==1))&&(a12==12))&&!(a5==1))){ + a3 = 4; + a5 = 1; + a12 = 8; + return -1; + } else if(((((!(a15==1)&&((a20==1)&&(((!(a22==1)&&((a12==10)&&((a27==1)&&((a4==1)&&(input==6)))))&&(a6==1))&&!(a18==1))))&&!(a5==1))&&!(a0==1))&&(a3==8))){ + a5 = 1; + a0 = 1; + a12 = 9; + a27 = 0; + a6 = 0; + a22 = 1; + a3 = 6; + return -1; + } else if(((a12==10)&&(((((!(a15==1)&&((a27==1)&&(!(a0==1)&&((((a3==6)&&((a22==1)&&(a18==1)))||(((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a18==1)&&!(a22==1)))))&&(input==1)))))&&(a6==1))&&(a4==1))&&(a20==1))&&(a5==1)))){ + a15 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + a0 = 1; + return -1; + } else if((!(a15==1)&&(!(a22==1)&&((((!(a0==1)&&(((a20==1)&&(((((a18==1)||!(a18==1))&&(input==3))&&(a3==7))&&!(a5==1)))&&(a12==9)))&&(a4==1))&&(a6==1))&&(a27==1))))){ + a4 = 0; + a5 = 1; + a6 = 0; + a22 = 1; + a0 = 1; + a12 = 11; + a15 = 1; + a3 = 4; + a18 = 1; + a27 = 0; + return -1; + } else if(((!(a0==1)&&((a12==12)&&((a15==1)&&((((((((a4==1)&&(!(a22==1)&&!(a18==1)))&&(a3==8))&&!(a6==1))||((a6==1)&&((((a22==1)&&(a18==1))&&!(a4==1))&&(a3==4))))&&(input==3))&&(a5==1))&&(a27==1)))))&&(a20==1))){ + a22 = 1; + a18 = 1; + a3 = 4; + a0 = 1; + a6 = 0; + a4 = 1; + a12 = 10; + return 21; + } else if((((((a27==1)&&(!(a4==1)&&((a22==1)&&((a18==1)&&((a12==12)&&(((a5==1)&&((a0==1)&&(input==5)))&&(a20==1)))))))&&!(a15==1))&&(a6==1))&&(a3==4))){ + a4 = 1; + a22 = 0; + a15 = 1; + a18 = 0; + a3 = 7; + return 21; + } else if((!(a4==1)&&((((a12==9)&&(((!(a15==1)&&(((a20==1)&&((input==1)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))))&&(a27==1)))&&!(a6==1))&&!(a0==1)))&&!(a5==1))&&(a3==5)))){ + a18 = 0; + a4 = 1; + a12 = 8; + a0 = 1; + a22 = 0; + a5 = 1; + return 26; + } else if(((!(a6==1)&&((!(a22==1)&&(((a0==1)&&(((a3==4)&&(!(a27==1)&&((a5==1)&&((a12==8)&&(input==5)))))&&!(a18==1)))&&(a4==1)))&&(a20==1)))&&(a15==1))){ + a4 = 0; + a27 = 1; + a12 = 10; + a6 = 1; + return 26; + } else if(((a0==1)&&((((!(a5==1)&&((a20==1)&&((a15==1)&&((input==3)&&((((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1))||(((a6==1)&&((a3==8)&&((a18==1)&&!(a22==1))))||(((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))))))))&&(a12==12))&&(a27==1))&&!(a4==1)))){ + a6 = 0; + a3 = 5; + a12 = 8; + a18 = 0; + a22 = 1; + a27 = 0; + a5 = 1; + a4 = 1; + return 26; + } else if(((a4==1)&&(((((((a18==1)&&((((a5==1)&&(!(a6==1)&&(input==4)))&&(a22==1))&&!(a15==1)))&&(a12==8))&&(a20==1))&&!(a0==1))&&(a27==1))&&(a3==5)))){ + a12 = 10; + a6 = 1; + a15 = 1; + a0 = 1; + a18 = 0; + a3 = 7; + return -1; + } else if(((!(a27==1)&&((((((((!(a6==1)&&(((!(a22==1)&&(a18==1))&&(a4==1))&&(a3==8)))||(((a3==8)&&((a4==1)&&(!(a22==1)&&!(a18==1))))&&!(a6==1)))||(((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))&&(a6==1)))&&(input==6))&&(a12==11))&&!(a5==1))&&!(a0==1))&&(a15==1)))&&(a20==1))){ + if((a4==1)){ + a4 = 0; + a5 = 1; + a27 = 1; + a6 = 1; + a12 = 8; + a22 = 1; + a0 = 1; + a18 = 0; + a3 = 8; + }else{ + a12 = 8; + a4 = 0; + a5 = 1; + a6 = 1; + a3 = 5; + a18 = 1; + a22 = 0; + } + return 21; + } else if(((a15==1)&&(((((a12==8)&&(((((a0==1)&&((a3==4)&&((input==2)&&((a18==1)||!(a18==1)))))&&(a4==1))&&!(a6==1))&&(a20==1)))&&!(a27==1))&&!(a22==1))&&!(a5==1)))){ + a27 = 1; + a6 = 1; + a18 = 1; + a5 = 1; + a22 = 1; + return -1; + } else if((((!(a0==1)&&((!(a27==1)&&((!(a6==1)&&((a5==1)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==6))))&&(a12==9)))&&!(a4==1)))&&!(a15==1))&&(a20==1))){ + if((a12==11)){ + a22 = 1; + a27 = 1; + a6 = 1; + a12 = 8; + a18 = 0; + a5 = 0; + a3 = 7; + }else{ + a18 = 0; + a12 = 8; + a3 = 5; + a15 = 1; + a27 = 1; + a22 = 1; + a4 = 1; + a0 = 1; + } + return 26; + } else if(((a27==1)&&(((((a20==1)&&(!(a0==1)&&(((((a12==9)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a6==1))&&!(a5==1))&&!(a15==1))))&&!(a22==1))&&(a4==1))&&(a3==7)))){ + a15 = 1; + a3 = 5; + a27 = 0; + a5 = 1; + a18 = 1; + a4 = 0; + a0 = 1; + return -1; + } else if((((a12==8)&&(((a0==1)&&((a5==1)&&(!(a6==1)&&(!(a15==1)&&((((a4==1)&&((input==3)&&!(a18==1)))&&(a20==1))&&(a27==1))))))&&!(a22==1)))&&(a3==7))){ + a15 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + a6 = 1; + return -1; + } else if(((a4==1)&&(!(a5==1)&&((a15==1)&&((a12==12)&&(((!(a22==1)&&((a20==1)&&((((input==2)&&((a18==1)||!(a18==1)))&&!(a0==1))&&(a27==1))))&&(a6==1))&&(a3==8))))))){ + a12 = 8; + a5 = 1; + a18 = 1; + a3 = 5; + a6 = 0; + a22 = 1; + a0 = 1; + return -1; + } else if(((((a0==1)&&((a3==6)&&((!(a18==1)&&((a22==1)&&(((a4==1)&&((!(a27==1)&&(input==5))&&(a12==8)))&&!(a15==1))))&&(a20==1))))&&(a5==1))&&(a6==1))){ + a27 = 1; + a12 = 11; + a22 = 0; + a4 = 0; + a18 = 1; + return 21; + } else if(((a27==1)&&(((a20==1)&&(((((a15==1)&&(((a6==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==1)))&&(a4==1)))&&(a0==1))&&(a3==5))&&!(a5==1)))&&(a12==9)))){ + a4 = 0; + a18 = 1; + a22 = 0; + a6 = 0; + a15 = 0; + a12 = 11; + a3 = 4; + return 21; + } else if(((a15==1)&&((a4==1)&&((a12==8)&&(((((a3==6)&&((a18==1)&&(((a6==1)&&(!(a0==1)&&(input==2)))&&(a22==1))))&&(a5==1))&&(a20==1))&&!(a27==1)))))){ + a0 = 1; + a27 = 1; + a22 = 0; + a4 = 0; + a3 = 7; + return 21; + } else if((!(a4==1)&&((((a27==1)&&((!(a18==1)&&((a20==1)&&((((a3==6)&&((input==5)&&!(a5==1)))&&(a22==1))&&(a15==1))))&&!(a0==1)))&&!(a6==1))&&(a12==8)))){ + a0 = 1; + a18 = 1; + a27 = 0; + a4 = 1; + a6 = 1; + return 21; + } else if((((a0==1)&&((a12==8)&&((a20==1)&&((a3==6)&&(((!(a5==1)&&(!(a4==1)&&((input==3)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&!(a27==1))&&!(a15==1))))))&&!(a6==1))){ + a18 = 0; + a6 = 1; + a27 = 1; + a12 = 11; + a3 = 8; + a22 = 1; + return 21; + } else if((((((a20==1)&&(!(a27==1)&&((((a6==1)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==2)))&&!(a0==1))&&(a12==9))))&&!(a15==1))&&!(a4==1))&&(a5==1))){ + if((a4==1)){ + a15 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + a4 = 1; + a22 = 1; + a27 = 1; + a0 = 1; + }else{ + a27 = 1; + a18 = 0; + a3 = 6; + a22 = 0; + a12 = 10; + a0 = 1; + } + return 21; + } else if(((a20==1)&&((a5==1)&&(!(a27==1)&&((((!(a0==1)&&(!(a6==1)&&((a3==5)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==6)))))&&(a15==1))&&!(a4==1))&&(a12==9)))))){ + a6 = 1; + a12 = 8; + a27 = 1; + a18 = 0; + a3 = 6; + a0 = 1; + a22 = 0; + return -1; + } else if(((a5==1)&&(((a6==1)&&(((a27==1)&&(((a15==1)&&(((a3==6)&&((input==1)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))&&(a4==1)))&&(a12==8)))&&!(a0==1)))&&(a20==1)))){ + a3 = 5; + a6 = 0; + a18 = 1; + a22 = 0; + a4 = 0; + a0 = 1; + a12 = 11; + return 26; + } else if(((!(a4==1)&&((((a3==4)&&((!(a0==1)&&((((a12==8)&&((a5==1)&&(input==4)))&&!(a27==1))&&(a20==1)))&&(a18==1)))&&!(a15==1))&&(a6==1)))&&!(a22==1))){ + a12 = 10; + a6 = 0; + a5 = 0; + a22 = 1; + a4 = 1; + a27 = 1; + a3 = 5; + return 24; + } else if((!(a27==1)&&(((((((a12==9)&&(((input==1)&&((((a3==7)&&(!(a22==1)&&(a18==1)))||((a3==7)&&(!(a22==1)&&!(a18==1))))||((a3==8)&&((a18==1)&&(a22==1)))))&&!(a6==1)))&&(a5==1))&&(a20==1))&&(a15==1))&&!(a0==1))&&(a4==1)))){ + a27 = 1; + a3 = 6; + a22 = 1; + a18 = 0; + a0 = 1; + a12 = 8; + return 21; + } else if(((a20==1)&&(((a12==9)&&(!(a5==1)&&(((a4==1)&&((a6==1)&&(((input==5)&&((((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==6)))||((a3==7)&&((a18==1)&&(a22==1)))))&&!(a15==1))))&&!(a27==1))))&&(a0==1)))){ + a22 = 1; + a5 = 1; + a12 = 12; + a3 = 4; + a18 = 0; + a6 = 0; + return 21; + } else if(((((a18==1)&&(((a22==1)&&(((a4==1)&&(((!(a5==1)&&((input==3)&&!(a27==1)))&&(a12==9))&&(a6==1)))&&(a3==7)))&&!(a0==1)))&&(a15==1))&&(a20==1))){ + if((a20==1)){ + a0 = 1; + a5 = 1; + a12 = 8; + a4 = 0; + a22 = 0; + a27 = 1; + }else{ + a12 = 8; + a22 = 0; + a3 = 6; + a27 = 1; + a5 = 1; + a4 = 0; + a0 = 1; + a18 = 0; + } + return -1; + } else if((!(a5==1)&&((a27==1)&&((a3==6)&&((a6==1)&&((!(a4==1)&&(((a20==1)&&(((input==2)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&(a0==1)))&&(a12==11)))&&(a15==1))))))){ + a22 = 0; + a18 = 0; + a12 = 10; + a0 = 0; + a15 = 0; + a3 = 4; + return 26; + } else if((((a20==1)&&((a0==1)&&((((a12==9)&&((((((a3==5)&&((a18==1)&&(a22==1)))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a18==1)&&!(a22==1)))))&&(input==3))&&(a6==1))&&!(a15==1)))&&!(a5==1))&&(a27==1))))&&!(a4==1))){ + a5 = 1; + a27 = 0; + a22 = 0; + a15 = 1; + a3 = 4; + a18 = 0; + return 24; + } else if((((((a15==1)&&(!(a27==1)&&(!(a6==1)&&(!(a0==1)&&((a20==1)&&((((a3==7)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1)))))&&(input==4)))))))&&!(a5==1))&&!(a4==1))&&(a12==10))){ + if((a15==1)){ + a3 = 6; + a22 = 0; + a5 = 1; + a0 = 1; + a27 = 1; + a4 = 1; + a12 = 8; + a18 = 0; + a6 = 1; + }else{ + a5 = 1; + a15 = 0; + a4 = 1; + a18 = 0; + a3 = 4; + a22 = 1; + a12 = 8; + } + return 21; + } else if(((((((((!(a5==1)&&(((((a18==1)||!(a18==1))&&(input==3))&&!(a6==1))&&(a0==1)))&&!(a4==1))&&!(a15==1))&&(a22==1))&&(a20==1))&&(a3==5))&&(a27==1))&&(a12==8))){ + a12 = 11; + a18 = 1; + a6 = 1; + a4 = 1; + a15 = 1; + return 24; + } else if((((a12==9)&&((a5==1)&&(((((((((input==4)&&(a0==1))&&(a18==1))&&(a20==1))&&!(a6==1))&&(a3==6))&&!(a4==1))&&!(a15==1))&&!(a27==1))))&&(a22==1))){ + a6 = 1; + a12 = 8; + a3 = 5; + a15 = 1; + a5 = 0; + return 21; + } else if(((a0==1)&&((a6==1)&&((((((a15==1)&&((a12==9)&&((input==1)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))||((a3==8)&&((a22==1)&&!(a18==1)))))))&&(a20==1))&&!(a27==1))&&!(a5==1))&&(a4==1))))){ + a22 = 1; + a12 = 11; + a18 = 0; + a3 = 5; + a15 = 0; + a27 = 1; + return 21; + } else if(((a0==1)&&((a22==1)&&((((((((!(a15==1)&&((a3==7)&&(input==3)))&&!(a4==1))&&(a18==1))&&(a20==1))&&!(a5==1))&&(a12==12))&&(a27==1))&&!(a6==1))))){ + a15 = 1; + a12 = 8; + a4 = 1; + a3 = 4; + a5 = 1; + a6 = 1; + return -1; + } else if(((!(a15==1)&&(((((a12==9)&&((a3==8)&&((!(a27==1)&&((input==2)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))))&&(a20==1))))&&(a0==1))&&(a4==1))&&!(a5==1)))&&(a6==1))){ + a12 = 11; + a22 = 0; + a0 = 0; + a4 = 0; + a27 = 1; + a18 = 0; + return 26; + } else if(((a5==1)&&((!(a4==1)&&((a20==1)&&((a12==11)&&((((a0==1)&&(((input==3)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a6==1)))&&(a15==1))&&(a3==4)))))&&(a27==1)))){ + a12 = 10; + a5 = 0; + a22 = 0; + a18 = 1; + return -1; + } else if(((a20==1)&&(((a6==1)&&(((a4==1)&&((!(a27==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==5))&&(a12==11))&&(a3==5)))&&!(a0==1)))&&(a15==1)))&&!(a5==1)))){ + if((a22==1)){ + a18 = 1; + a12 = 8; + a3 = 4; + a0 = 1; + a27 = 1; + a5 = 1; + a22 = 1; + a4 = 0; + }else{ + a3 = 8; + a12 = 8; + a22 = 0; + a5 = 1; + a27 = 1; + a4 = 0; + a0 = 1; + a18 = 1; + } + return 26; + } else if(((((a20==1)&&((!(a5==1)&&((((!(a0==1)&&(((input==6)&&(a15==1))&&(a12==12)))&&(a3==5))&&(a4==1))&&(a27==1)))&&!(a6==1)))&&!(a18==1))&&!(a22==1))){ + if((a22==1)){ + a5 = 1; + a0 = 1; + a22 = 1; + a6 = 1; + a3 = 4; + a12 = 8; + }else{ + a0 = 1; + a12 = 8; + a6 = 1; + a22 = 1; + a3 = 6; + a5 = 1; + a18 = 1; + } + return 26; + } else if(((a27==1)&&(!(a15==1)&&((a4==1)&&((((a12==12)&&((((((((a18==1)&&!(a22==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4)))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==5))&&(a20==1))&&!(a5==1)))&&(a0==1))&&(a6==1)))))){ + a12 = 11; + a4 = 0; + a22 = 0; + a5 = 1; + a27 = 0; + a15 = 1; + a18 = 0; + a3 = 8; + return 24; + } else if(((!(a6==1)&&((a27==1)&&((a12==12)&&(!(a0==1)&&((a20==1)&&((((input==5)&&(((a3==6)&&((a22==1)&&!(a18==1)))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6)))))&&!(a5==1))&&!(a15==1)))))))&&(a4==1))){ + a22 = 0; + a15 = 1; + a3 = 5; + a12 = 8; + a5 = 1; + a18 = 0; + a0 = 1; + return 21; + } else if(((a12==12)&&(((a15==1)&&(!(a6==1)&&(((((a22==1)&&((a0==1)&&(!(a5==1)&&((input==3)&&((a18==1)||!(a18==1))))))&&!(a27==1))&&!(a4==1))&&(a20==1))))&&(a3==4)))){ + a18 = 0; + a27 = 1; + a3 = 5; + a15 = 0; + a12 = 9; + return 26; + } else if((((((!(a0==1)&&((a6==1)&&(((a27==1)&&((!(a4==1)&&((a3==7)&&(input==5)))&&(a5==1)))&&(a15==1))))&&!(a22==1))&&(a20==1))&&!(a18==1))&&(a12==11))){ + a18 = 1; + a3 = 8; + a0 = 1; + a15 = 0; + a22 = 1; + a12 = 12; + a5 = 0; + a4 = 1; + return 26; + } else if((!(a22==1)&&((((((!(a5==1)&&(!(a18==1)&&((a6==1)&&(!(a4==1)&&((input==1)&&(a12==10))))))&&(a3==5))&&(a15==1))&&!(a0==1))&&(a27==1))&&(a20==1)))){ + a22 = 1; + a15 = 0; + a0 = 1; + a3 = 8; + a18 = 1; + a4 = 1; + return -1; + } else if((!(a22==1)&&(!(a4==1)&&((a0==1)&&((((a18==1)&&(((a27==1)&&((a20==1)&&((a6==1)&&((a15==1)&&(input==5)))))&&(a3==4)))&&!(a5==1))&&(a12==12)))))){ + a5 = 1; + a15 = 0; + a6 = 0; + a3 = 5; + a22 = 1; + a12 = 11; + return 21; + } else if(((a6==1)&&(((a0==1)&&((a3==8)&&(((a5==1)&&((a12==8)&&((a27==1)&&(((a18==1)&&(!(a22==1)&&(input==4)))&&(a4==1)))))&&(a20==1))))&&!(a15==1)))){ + a6 = 0; + a5 = 0; + a4 = 0; + a15 = 1; + a3 = 5; + return 21; + } else if(((a22==1)&&(((((((!(a15==1)&&(((((a18==1)||!(a18==1))&&(input==6))&&(a6==1))&&(a27==1)))&&(a12==9))&&(a5==1))&&(a3==6))&&(a4==1))&&(a20==1))&&(a0==1)))){ + a12 = 10; + a5 = 0; + a15 = 1; + a22 = 0; + a18 = 1; + return 26; + } else if((!(a27==1)&&(!(a15==1)&&((((((a0==1)&&((a6==1)&&((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==5))&&(a4==1))))&&(a20==1))&&(a3==4))&&!(a5==1))&&(a12==12))))){ + a12 = 8; + a15 = 1; + a27 = 1; + a18 = 1; + a22 = 1; + a5 = 1; + return -1; + } else if(((((!(a4==1)&&(((a12==8)&&((a0==1)&&(((a20==1)&&((input==3)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))&&!(a5==1))))&&!(a27==1)))&&!(a6==1))&&(a15==1))&&(a3==4))){ + a22 = 1; + a6 = 1; + a5 = 1; + a18 = 1; + a27 = 1; + a4 = 1; + return -1; + } else if(((a15==1)&&(!(a5==1)&&((a27==1)&&(!(a0==1)&&(((a12==8)&&(!(a6==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==4))&&(a4==1))))&&(a20==1))))))){ + a18 = 0; + a0 = 1; + a15 = 0; + a22 = 1; + a3 = 6; + a5 = 1; + a12 = 11; + return -1; + } else if(((a4==1)&&(((!(a6==1)&&(!(a27==1)&&(((((input==2)&&(((a3==5)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4)))))&&(a0==1))&&(a12==12))&&(a20==1))))&&!(a5==1))&&(a15==1)))){ + a5 = 1; + a22 = 0; + a4 = 0; + a12 = 10; + a18 = 1; + a3 = 7; + a27 = 1; + return -1; + } else if(((!(a0==1)&&(!(a6==1)&&((a22==1)&&((a12==10)&&((a5==1)&&((a20==1)&&(((a3==4)&&((((a18==1)||!(a18==1))&&(input==3))&&!(a27==1)))&&!(a4==1))))))))&&(a15==1))){ + a4 = 1; + a12 = 12; + a27 = 1; + a18 = 1; + a15 = 0; + a22 = 0; + return 26; + } else if(((!(a5==1)&&(((((!(a15==1)&&(!(a0==1)&&(((((a22==1)&&!(a18==1))&&(a3==7))||(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7))))&&(input==1))))&&(a12==10))&&!(a6==1))&&!(a27==1))&&(a20==1)))&&(a4==1))){ + a15 = 1; + a27 = 1; + a3 = 7; + a12 = 8; + a22 = 1; + a5 = 1; + a18 = 0; + return 21; + } else if((((a3==5)&&((a20==1)&&(!(a15==1)&&(((!(a6==1)&&((a12==11)&&((a4==1)&&((((a18==1)||!(a18==1))&&(input==6))&&(a27==1)))))&&!(a5==1))&&!(a0==1)))))&&(a22==1))){ + a15 = 1; + a18 = 1; + a12 = 8; + a0 = 1; + a3 = 4; + a5 = 1; + a6 = 1; + return -1; + } else if((((a27==1)&&((((((a15==1)&&(!(a0==1)&&((input==5)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6))))))&&(a20==1))&&!(a6==1))&&(a4==1))&&(a12==8)))&&!(a5==1))){ + a22 = 1; + a3 = 7; + a18 = 0; + a0 = 1; + a12 = 11; + return 21; + } else if(((!(a22==1)&&((!(a18==1)&&(!(a15==1)&&(((((a20==1)&&(((input==5)&&(a3==6))&&!(a5==1)))&&(a27==1))&&(a4==1))&&(a12==8))))&&!(a0==1)))&&(a6==1))){ + a12 = 10; + a3 = 5; + a4 = 0; + a27 = 0; + a15 = 1; + a0 = 1; + return -1; + } else if((((((a20==1)&&((((a27==1)&&(!(a18==1)&&((a3==6)&&(((a22==1)&&(input==5))&&(a12==12)))))&&!(a4==1))&&(a5==1)))&&!(a15==1))&&!(a6==1))&&!(a0==1))){ + if((a20==1)){ + a22 = 0; + a3 = 4; + a0 = 1; + a15 = 1; + a6 = 1; + a12 = 8; + }else{ + a12 = 11; + a22 = 0; + a27 = 0; + a4 = 1; + } + return 24; + } else if((!(a0==1)&&((a20==1)&&(((!(a5==1)&&((a12==9)&&((((a4==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==5)))&&!(a15==1))&&(a3==5))))&&(a6==1))&&!(a27==1))))){ + a22 = 0; + a4 = 0; + a12 = 8; + a18 = 0; + a27 = 1; + a3 = 7; + return -1; + } else if(((a12==12)&&(!(a15==1)&&(!(a5==1)&&((((a3==6)&&((a4==1)&&(((!(a18==1)&&((input==1)&&(a20==1)))&&!(a27==1))&&(a22==1))))&&(a0==1))&&(a6==1)))))){ + a4 = 0; + a5 = 1; + a27 = 1; + a3 = 4; + a18 = 1; + a6 = 0; + return 21; + } else if((!(a6==1)&&(((((a20==1)&&((a0==1)&&(((a27==1)&&((input==4)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8)))||(((a22==1)&&!(a18==1))&&(a3==8)))))&&(a4==1))))&&(a12==11))&&(a15==1))&&(a5==1)))){ + a3 = 4; + a18 = 1; + a6 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if((!(a15==1)&&(!(a22==1)&&(((a3==7)&&(!(a6==1)&&(!(a5==1)&&((a12==9)&&(((a20==1)&&((((a18==1)||!(a18==1))&&(input==2))&&(a27==1)))&&(a4==1))))))&&(a0==1))))){ + a3 = 5; + a18 = 0; + a5 = 1; + a22 = 1; + a15 = 1; + a0 = 0; + return 26; + } else if(((((a27==1)&&((a0==1)&&((((a5==1)&&((a20==1)&&((input==4)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5))))))&&(a12==11))&&!(a15==1))))&&(a6==1))&&(a4==1))){ + a15 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + return -1; + } else if(((a3==5)&&((a6==1)&&(!(a0==1)&&((a20==1)&&(!(a5==1)&&(((a12==8)&&(!(a15==1)&&((a4==1)&&((input==2)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))))))&&!(a27==1)))))))){ + a3 = 8; + a4 = 0; + a22 = 0; + a18 = 0; + a12 = 10; + return 26; + } else if(((!(a5==1)&&((a27==1)&&((a15==1)&&((a12==8)&&((a20==1)&&(!(a4==1)&&(((a3==5)&&((input==2)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a0==1))))))))&&!(a6==1))){ + if((a15==1)){ + a12 = 9; + a18 = 1; + a4 = 1; + a6 = 1; + a22 = 0; + }else{ + a3 = 4; + a5 = 1; + a22 = 1; + a18 = 1; + a12 = 11; + } + return 26; + } else if(((a12==12)&&(((a0==1)&&(!(a15==1)&&((a20==1)&&((a4==1)&&(((input==4)&&(((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1))||((((!(a22==1)&&(a18==1))&&(a3==8))&&(a6==1))||(((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1)))))&&!(a5==1))))))&&!(a27==1)))){ + a4 = 0; + a15 = 1; + a22 = 0; + a6 = 1; + a12 = 9; + a3 = 5; + a18 = 0; + return 21; + } else if(((a5==1)&&((a3==8)&&((a27==1)&&(((((a18==1)&&((a20==1)&&(((a0==1)&&((input==4)&&!(a15==1)))&&(a12==9))))&&!(a4==1))&&(a6==1))&&!(a22==1)))))){ + if((a12==8)){ + a3 = 6; + a12 = 10; + a18 = 0; + a0 = 0; + a15 = 1; + }else{ + a22 = 1; + a3 = 5; + a15 = 1; + a12 = 8; + a27 = 0; + } + return 26; + } else if((((a5==1)&&((a4==1)&&((a20==1)&&(!(a6==1)&&(((((input==5)&&((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==5)))||((a3==5)&&(!(a18==1)&&(a22==1)))))&&!(a15==1))&&!(a0==1))&&(a12==9))))))&&!(a27==1))){ + a0 = 1; + a15 = 1; + a3 = 8; + a27 = 1; + a6 = 1; + a12 = 8; + a18 = 1; + a22 = 0; + return 21; + } else if(((!(a5==1)&&((((a3==7)&&((!(a0==1)&&((a15==1)&&((((input==6)&&(a12==12))&&(a27==1))&&(a18==1))))&&(a6==1)))&&(a20==1))&&!(a4==1)))&&!(a22==1))){ + a6 = 0; + a3 = 6; + a12 = 10; + a27 = 0; + return 26; + } else if((((a27==1)&&((a5==1)&&(!(a4==1)&&(((a12==12)&&(!(a0==1)&&((a20==1)&&((input==1)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))))))&&(a6==1)))))&&!(a15==1))){ + if((a12==10)){ + a12 = 8; + a0 = 1; + a4 = 1; + a6 = 0; + a18 = 0; + a3 = 6; + a22 = 1; + a15 = 1; + }else{ + a0 = 1; + a3 = 5; + a12 = 8; + a15 = 1; + a22 = 1; + a18 = 1; + } + return -1; + } else if((!(a0==1)&&(!(a27==1)&&(((a3==5)&&((a4==1)&&((a12==8)&&((!(a15==1)&&(((input==6)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a6==1)))&&(a20==1)))))&&!(a5==1))))){ + if((a18==1)){ + a3 = 8; + a15 = 1; + a18 = 1; + a0 = 1; + a5 = 1; + a22 = 0; + a6 = 1; + a27 = 1; + }else{ + a6 = 1; + a3 = 4; + a22 = 0; + a12 = 11; + a0 = 1; + a18 = 0; + } + return 21; + } else if((!(a4==1)&&(!(a22==1)&&(((((a18==1)&&((((a0==1)&&((!(a27==1)&&(input==4))&&!(a5==1)))&&(a6==1))&&!(a15==1)))&&(a20==1))&&(a3==8))&&(a12==12))))){ + a18 = 0; + a5 = 1; + a4 = 1; + a6 = 0; + a3 = 6; + return 21; + } else if(((a15==1)&&((a5==1)&&((((!(a27==1)&&(((a20==1)&&((input==3)&&((((!(a22==1)&&(a18==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))||(((a22==1)&&(a18==1))&&(a3==7)))))&&(a4==1)))&&(a12==9))&&(a6==1))&&!(a0==1))))){ + a12 = 8; + a18 = 0; + a3 = 8; + a22 = 1; + a4 = 0; + return -1; + } else if((((a27==1)&&((a12==8)&&((((((a20==1)&&(!(a15==1)&&(((input==4)&&!(a4==1))&&(a0==1))))&&(a5==1))&&!(a6==1))&&(a22==1))&&(a3==4))))&&(a18==1))){ + a6 = 1; + a4 = 1; + a15 = 1; + return -1; + } else if((((a4==1)&&((a20==1)&&(!(a15==1)&&(!(a5==1)&&((((((((a18==1)||!(a18==1))&&(input==1))&&(a27==1))&&(a12==8))&&(a6==1))&&!(a22==1))&&(a3==4))))))&&(a0==1))){ + a0 = 0; + a4 = 0; + a18 = 0; + a6 = 0; + a12 = 10; + return 21; + } else if((((a5==1)&&(!(a15==1)&&((((a12==8)&&(!(a27==1)&&((a4==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a6==1)))))&&(a3==4))&&(a20==1))))&&(a0==1))){ + a3 = 5; + a18 = 0; + a22 = 1; + a15 = 1; + a12 = 10; + a6 = 0; + a27 = 1; + a5 = 0; + return 21; + } else if((((a3==6)&&((((((a18==1)&&((a5==1)&&((!(a15==1)&&((a20==1)&&(input==4)))&&!(a27==1))))&&!(a6==1))&&!(a0==1))&&(a4==1))&&(a12==11)))&&!(a22==1))){ + if((a3==7)){ + a22 = 1; + a12 = 8; + a4 = 0; + a6 = 1; + a0 = 1; + a18 = 0; + a15 = 1; + a27 = 1; + a3 = 4; + }else{ + a27 = 1; + a4 = 0; + a3 = 8; + a0 = 1; + a18 = 0; + a12 = 9; + a15 = 1; + a22 = 1; + a6 = 1; + } + return -1; + } else if((((a12==9)&&((a20==1)&&(!(a18==1)&&(((a3==5)&&((((a22==1)&&((a15==1)&&((a6==1)&&(input==6))))&&(a27==1))&&(a0==1)))&&!(a5==1)))))&&!(a4==1))){ + a5 = 1; + a12 = 10; + a15 = 0; + a6 = 0; + a22 = 0; + a18 = 1; + a3 = 4; + return 26; + } else if((((a5==1)&&((a20==1)&&((a12==12)&&((a27==1)&&((!(a0==1)&&((input==6)&&(((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))||((((!(a22==1)&&(a18==1))&&(a3==8))&&(a6==1))||((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))))))&&(a4==1))))))&&(a15==1))){ + a5 = 0; + a0 = 1; + a22 = 0; + a6 = 1; + a4 = 0; + a3 = 8; + a18 = 0; + a12 = 10; + return 21; + } else if(((!(a6==1)&&(!(a15==1)&&(!(a5==1)&&((a0==1)&&(((((((a22==1)&&(input==5))&&!(a27==1))&&(a12==9))&&(a3==7))&&(a20==1))&&(a4==1))))))&&!(a18==1))){ + if((a27==1)){ + a12 = 10; + a27 = 1; + a5 = 1; + a6 = 1; + a18 = 1; + a0 = 0; + a3 = 4; + }else{ + a3 = 8; + a15 = 1; + a22 = 0; + a18 = 1; + a12 = 10; + } + return 26; + } else if(((((!(a15==1)&&((a6==1)&&((a20==1)&&(!(a18==1)&&(((((input==4)&&!(a5==1))&&!(a0==1))&&(a3==5))&&(a4==1))))))&&!(a27==1))&&(a12==8))&&!(a22==1))){ + a5 = 1; + a18 = 1; + a0 = 1; + a3 = 7; + a27 = 1; + a22 = 1; + a15 = 1; + return -1; + } else if(((!(a6==1)&&((a15==1)&&(((a12==10)&&((!(a5==1)&&((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==4))&&(a3==7))&&(a0==1)))&&(a20==1)))&&(a4==1))))&&(a27==1))){ + if((a4==1)){ + a5 = 1; + a3 = 5; + a22 = 0; + a12 = 9; + a0 = 0; + a18 = 0; + a6 = 1; + a4 = 0; + }else{ + a5 = 1; + a18 = 1; + a22 = 0; + a15 = 0; + } + return -1; + } else if((((a6==1)&&((!(a4==1)&&((a12==8)&&(((a0==1)&&(((a3==4)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==4)))&&!(a5==1)))&&(a27==1))))&&(a15==1)))&&(a20==1))){ + a5 = 1; + a22 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if((((a27==1)&&((!(a5==1)&&((((((input==1)&&((((a18==1)&&(a22==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))))&&!(a0==1))&&!(a6==1))&&(a20==1))&&(a15==1)))&&(a12==11)))&&(a4==1))){ + a6 = 1; + a18 = 0; + a22 = 1; + a4 = 0; + a3 = 7; + a0 = 1; + a15 = 0; + a12 = 10; + return 26; + } else if((!(a27==1)&&((((((a15==1)&&((((a20==1)&&((input==2)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&(a3==4))&&!(a6==1)))&&(a12==9))&&!(a5==1))&&(a0==1))&&!(a4==1)))){ + if((a12==11)){ + a3 = 7; + a15 = 0; + a6 = 1; + a12 = 8; + a27 = 1; + a0 = 0; + a18 = 0; + a22 = 0; + }else{ + a4 = 1; + a12 = 8; + a18 = 1; + a6 = 1; + a3 = 8; + a22 = 0; + } + return 26; + } else if(((a27==1)&&(((a15==1)&&(((a6==1)&&((a4==1)&&((a12==12)&&((((((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a18==1)&&!(a22==1))))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==2))&&(a20==1)))))&&!(a5==1)))&&!(a0==1)))){ + a3 = 8; + a12 = 11; + a6 = 0; + a18 = 0; + a22 = 1; + a15 = 0; + a5 = 1; + a0 = 1; + return 24; + } else if((((a4==1)&&(((((a27==1)&&(!(a6==1)&&(((a3==7)&&(((input==3)&&(a15==1))&&(a22==1)))&&(a20==1))))&&!(a18==1))&&(a12==9))&&!(a5==1)))&&!(a0==1))){ + a0 = 1; + a6 = 1; + a4 = 0; + a3 = 8; + a12 = 10; + return -1; + } else if(((((a20==1)&&(((!(a5==1)&&(((a12==12)&&((input==4)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))))&&!(a4==1)))&&!(a15==1))&&(a27==1)))&&(a6==1))&&(a0==1))){ + a3 = 4; + a12 = 8; + a15 = 1; + a22 = 1; + a5 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if(((((!(a5==1)&&(!(a27==1)&&((a6==1)&&((!(a15==1)&&((a3==5)&&(!(a22==1)&&((input==5)&&!(a18==1)))))&&(a20==1)))))&&!(a4==1))&&!(a0==1))&&(a12==10))){ + if((a4==1)){ + a27 = 1; + a12 = 9; + a3 = 7; + a18 = 1; + a0 = 1; + a5 = 1; + a6 = 0; + }else{ + a12 = 9; + a6 = 0; + a27 = 1; + a3 = 8; + a22 = 1; + a18 = 1; + a4 = 1; + } + return 26; + } else if((((a15==1)&&((((((a0==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a12==9))&&(a4==1)))&&!(a5==1))&&!(a27==1))&&!(a6==1))&&(a3==4)))&&(a20==1))){ + a18 = 1; + a27 = 1; + a12 = 8; + a5 = 1; + a22 = 1; + a6 = 1; + return -1; + } else if((!(a6==1)&&((a5==1)&&(!(a18==1)&&(!(a15==1)&&((((!(a0==1)&&((a3==4)&&(!(a27==1)&&((a4==1)&&(input==6)))))&&(a20==1))&&(a12==8))&&(a22==1))))))){ + a22 = 0; + a3 = 5; + a12 = 12; + a27 = 1; + a5 = 0; + return -1; + } else if((!(a6==1)&&(((a3==6)&&(((a12==12)&&((a5==1)&&((a20==1)&&((a27==1)&&(((input==6)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&!(a4==1))))))&&(a15==1)))&&(a0==1)))){ + a18 = 1; + a22 = 0; + a4 = 1; + a6 = 1; + return 21; + } else if((!(a22==1)&&((a4==1)&&((!(a6==1)&&(!(a15==1)&&((a12==10)&&(((a0==1)&&((a20==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a27==1))))&&(a5==1)))))&&(a3==7))))){ + a3 = 4; + a22 = 1; + a15 = 1; + a12 = 8; + a6 = 1; + a18 = 1; + return -1; + } else if((((a20==1)&&((a5==1)&&((a27==1)&&(!(a4==1)&&((a12==11)&&((a0==1)&&(((a3==7)&&((a22==1)&&(((a18==1)||!(a18==1))&&(input==1))))&&(a15==1))))))))&&!(a6==1))){ + a18 = 0; + a6 = 1; + a27 = 0; + a5 = 0; + a22 = 0; + a3 = 8; + a15 = 0; + a12 = 10; + return 24; + } else if((((a3==6)&&((((a5==1)&&(((((a22==1)&&((a12==10)&&((input==6)&&!(a15==1))))&&(a18==1))&&!(a0==1))&&(a4==1)))&&(a27==1))&&!(a6==1)))&&(a20==1))){ + a6 = 1; + a0 = 1; + a3 = 4; + a4 = 0; + a12 = 8; + a5 = 0; + a18 = 0; + return 24; + } else if((!(a27==1)&&((((((a12==9)&&((!(a0==1)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==4)))&&!(a5==1)))&&(a4==1))&&!(a6==1))&&(a15==1))&&(a20==1)))){ + if((a27==1)){ + a4 = 0; + a27 = 1; + a18 = 1; + a22 = 1; + a12 = 11; + a6 = 1; + a0 = 1; + a3 = 7; + }else{ + a18 = 0; + a12 = 8; + a27 = 1; + a22 = 1; + a6 = 1; + a0 = 1; + a3 = 7; + a5 = 1; + } + return 21; + } else if((((a12==11)&&(((((((!(a4==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==2)))&&(a3==7))&&!(a27==1))&&(a6==1))&&(a20==1))&&(a0==1))&&!(a15==1)))&&!(a5==1))){ + a3 = 6; + a18 = 1; + a4 = 1; + a22 = 1; + a12 = 9; + a5 = 1; + a15 = 1; + return -1; + } else if((((a3==4)&&((a12==9)&&((a15==1)&&(!(a5==1)&&((a18==1)&&(!(a27==1)&&(((((input==4)&&(a22==1))&&!(a0==1))&&!(a6==1))&&(a20==1))))))))&&!(a4==1))){ + a0 = 1; + a5 = 1; + a27 = 1; + a4 = 1; + a12 = 8; + return 24; + } else if(((a15==1)&&(((((a5==1)&&((a0==1)&&((a12==12)&&((a20==1)&&((((a3==6)&&((a22==1)&&!(a18==1)))||(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6))))&&(input==5))))))&&(a6==1))&&(a27==1))&&(a4==1)))){ + a18 = 1; + a22 = 1; + a6 = 0; + a4 = 0; + a3 = 8; + a12 = 11; + return -1; + } else if(((((((a20==1)&&(((!(a0==1)&&(((a3==5)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a27==1)))&&!(a15==1))&&!(a4==1)))&&(a5==1))&&!(a6==1))&&(a12==8))&&(a22==1))){ + a22 = 0; + a15 = 1; + a0 = 1; + a5 = 0; + a12 = 11; + a6 = 1; + a3 = 6; + a18 = 1; + a4 = 1; + return 21; + } else if((((!(a15==1)&&((a20==1)&&((((a5==1)&&((a12==12)&&(((((a3==4)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==5))))&&(a27==1))&&(a6==1))))&&!(a0==1))&&(a4==1))){ + a5 = 0; + a3 = 6; + a18 = 1; + a12 = 11; + a22 = 0; + a0 = 1; + a6 = 0; + return 21; + } else if(((((!(a27==1)&&(((a12==10)&&((input==1)&&(((a6==1)&&((a3==4)&&(!(a4==1)&&(!(a18==1)&&(a22==1)))))||((!(a6==1)&&((a3==8)&&((!(a22==1)&&!(a18==1))&&(a4==1))))||(((a3==4)&&(!(a4==1)&&((a22==1)&&(a18==1))))&&(a6==1))))))&&!(a5==1)))&&(a0==1))&&(a20==1))&&(a15==1))){ + a5 = 1; + a22 = 0; + a3 = 7; + a6 = 0; + a4 = 1; + a15 = 0; + a18 = 0; + return 26; + } return calculate_output4(input); + } + + int calculate_output4(int input) { + if((!(a6==1)&&(!(a27==1)&&((((((((a3==5)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==4)))&&(a20==1))&&(a15==1))&&!(a4==1))&&!(a5==1))&&(a0==1))&&(a12==11))))){ + if((a18==1)){ + a12 = 12; + a22 = 0; + a6 = 1; + a18 = 0; + a27 = 1; + a0 = 0; + a3 = 7; + a5 = 1; + }else{ + a18 = 0; + a12 = 10; + a22 = 0; + a3 = 4; + a15 = 0; + a6 = 1; + a27 = 1; + } + return 21; + } else if(((((a20==1)&&((!(a5==1)&&(!(a15==1)&&(!(a27==1)&&((!(a18==1)&&(((input==6)&&(a22==1))&&(a3==5)))&&(a6==1)))))&&(a0==1)))&&(a12==12))&&(a4==1))){ + a27 = 1; + a18 = 1; + a5 = 1; + a3 = 4; + a12 = 8; + a15 = 1; + return -1; + } else if((((a6==1)&&((a20==1)&&(!(a15==1)&&((a4==1)&&((a0==1)&&((a12==12)&&(((a27==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==6)))&&(a3==6))))))))&&!(a5==1))){ + a15 = 1; + a22 = 0; + a18 = 1; + return 21; + } else if(((((a3==8)&&(((((!(a15==1)&&(!(a6==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==3))))&&(a4==1))&&(a12==10))&&(a0==1))&&(a27==1)))&&!(a5==1))&&(a20==1))){ + a15 = 1; + a6 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + a5 = 1; + a22 = 1; + return -1; + } else if(((a12==10)&&((((((!(a4==1)&&((a15==1)&&(((((a22==1)&&(a18==1))&&(a3==5))||(((a3==4)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==4))))&&(input==1))))&&(a5==1))&&(a20==1))&&(a0==1))&&!(a6==1))&&(a27==1)))){ + a6 = 1; + a18 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if((!(a18==1)&&((a27==1)&&(((!(a5==1)&&((a22==1)&&((a4==1)&&((((a3==6)&&((input==3)&&(a0==1)))&&!(a6==1))&&(a12==12)))))&&(a20==1))&&(a15==1))))){ + if((a3==7)){ + a5 = 1; + a12 = 11; + a3 = 5; + a22 = 0; + a0 = 0; + a6 = 1; + }else{ + a4 = 0; + a18 = 1; + a5 = 1; + a3 = 8; + a12 = 11; + a6 = 1; + } + return 26; + } else if((((a27==1)&&((a3==4)&&(!(a15==1)&&((a20==1)&&((a12==12)&&(!(a4==1)&&(((a5==1)&&((input==4)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))&&!(a0==1))))))))&&!(a6==1))){ + a12 = 8; + a18 = 1; + a3 = 8; + a22 = 1; + a0 = 1; + a15 = 1; + a4 = 1; + return -1; + } else if((((a0==1)&&((((a5==1)&&(((input==5)&&((!(a6==1)&&(((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8)))||(((!(a4==1)&&((a22==1)&&(a18==1)))&&(a3==4))&&(a6==1))))&&(a20==1)))&&!(a15==1))&&(a12==10)))&&!(a27==1))){ + a12 = 12; + a3 = 8; + a27 = 1; + a15 = 1; + a22 = 0; + a0 = 0; + a4 = 1; + a6 = 0; + a18 = 1; + return 21; + } else if(((a0==1)&&((a4==1)&&((((a15==1)&&(!(a27==1)&&(((((input==1)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&(a12==9))&&(a3==6))&&(a20==1))))&&(a6==1))&&!(a5==1))))){ + a6 = 0; + a27 = 1; + a12 = 12; + a18 = 0; + a5 = 1; + a22 = 1; + a15 = 0; + return 24; + } else if((!(a5==1)&&(((((a3==5)&&((!(a15==1)&&((((input==2)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&(a12==11))&&(a6==1)))&&!(a0==1)))&&(a20==1))&&!(a27==1))&&(a4==1)))){ + if((a6==1)){ + a3 = 8; + a27 = 1; + a0 = 1; + a4 = 0; + a15 = 1; + a5 = 1; + a22 = 1; + a18 = 0; + a12 = 8; + }else{ + a18 = 1; + a0 = 1; + a5 = 1; + a27 = 1; + a6 = 0; + a15 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + } + return 21; + } else if((!(a27==1)&&((((a12==8)&&((a3==8)&&(!(a6==1)&&(!(a22==1)&&((a0==1)&&(((((a18==1)||!(a18==1))&&(input==6))&&(a15==1))&&(a5==1)))))))&&(a20==1))&&(a4==1)))){ + a3 = 4; + a22 = 1; + a6 = 1; + a27 = 1; + a18 = 1; + return -1; + } else if((((((((a6==1)&&(!(a15==1)&&(!(a0==1)&&(!(a4==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a20==1))))))&&(a12==10))&&(a3==4))&&!(a5==1))&&(a27==1))&&(a22==1))){ + if((a4==1)){ + a18 = 0; + a3 = 6; + a22 = 0; + a6 = 0; + }else{ + a0 = 1; + a4 = 1; + a3 = 6; + a5 = 1; + a18 = 0; + a6 = 0; + } + return 26; + } else if(((a15==1)&&(!(a27==1)&&(((a20==1)&&((a12==11)&&((a6==1)&&((a4==1)&&(((input==6)&&(((a3==8)&&((a22==1)&&(a18==1)))||(((a3==7)&&((a18==1)&&!(a22==1)))||((a3==7)&&(!(a18==1)&&!(a22==1))))))&&!(a5==1))))))&&(a0==1))))){ + a27 = 1; + a18 = 1; + a4 = 0; + a22 = 1; + a3 = 5; + a5 = 1; + a12 = 10; + return -1; + } else if((((a27==1)&&((a12==10)&&(!(a5==1)&&((a0==1)&&((a3==7)&&((a22==1)&&(!(a6==1)&&(((((a18==1)||!(a18==1))&&(input==5))&&(a20==1))&&!(a4==1)))))))))&&(a15==1))){ + if((a22==1)){ + a12 = 9; + a0 = 0; + a5 = 1; + a18 = 0; + a6 = 1; + a3 = 4; + }else{ + a5 = 1; + a3 = 4; + a18 = 0; + a15 = 0; + a27 = 0; + a6 = 1; + } + return 21; + } else if((!(a4==1)&&((((a15==1)&&((a0==1)&&(((a20==1)&&((a5==1)&&((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==1))))&&(a12==11))))&&(a27==1))&&(a6==1)))){ + a3 = 4; + a18 = 1; + a4 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if((!(a18==1)&&(!(a5==1)&&(((((!(a6==1)&&(((a15==1)&&(((input==6)&&(a20==1))&&(a22==1)))&&(a3==5)))&&!(a4==1))&&!(a27==1))&&(a12==8))&&(a0==1))))){ + a27 = 1; + a18 = 1; + a0 = 0; + a12 = 11; + a5 = 1; + a15 = 0; + a4 = 1; + return -1; + } else if(((((((a20==1)&&((((a4==1)&&(((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6)))||((!(a18==1)&&(a22==1))&&(a3==6)))&&(input==5)))&&!(a15==1))&&(a12==10)))&&(a27==1))&&(a0==1))&&(a5==1))&&!(a6==1))){ + a6 = 1; + a12 = 9; + a4 = 0; + a5 = 0; + a27 = 0; + a3 = 4; + a18 = 0; + a22 = 0; + return 21; + } else if(((a12==8)&&((!(a27==1)&&((((a20==1)&&((a22==1)&&((((!(a0==1)&&(input==4))&&(a15==1))&&(a5==1))&&(a18==1))))&&(a3==6))&&(a4==1)))&&(a6==1)))){ + a12 = 10; + a18 = 0; + a3 = 5; + return -1; + } else if(((!(a15==1)&&(((a0==1)&&((a5==1)&&(!(a4==1)&&(!(a27==1)&&(((input==4)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8)))||((a3==8)&&((a22==1)&&!(a18==1)))))&&(a12==10))))))&&(a20==1)))&&(a6==1))){ + a15 = 1; + a27 = 1; + a12 = 8; + a4 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + return -1; + } else if((!(a4==1)&&(!(a15==1)&&(((a12==8)&&((a20==1)&&((a0==1)&&((!(a5==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==4))&&(a6==1)))&&(a3==6)))))&&(a27==1))))){ + a3 = 4; + a15 = 1; + a18 = 1; + a4 = 1; + a5 = 1; + a22 = 1; + return -1; + } else if((((((a12==11)&&((((((a3==7)&&(!(a4==1)&&((input==1)&&((a18==1)||!(a18==1)))))&&!(a0==1))&&!(a6==1))&&(a5==1))&&!(a27==1)))&&(a15==1))&&!(a22==1))&&(a20==1))){ + a6 = 1; + a15 = 0; + a3 = 5; + a18 = 1; + a27 = 1; + a5 = 0; + return 21; + } else if(((a0==1)&&(!(a4==1)&&(((a3==5)&&(((a20==1)&&(!(a27==1)&&(((((input==6)&&((a18==1)||!(a18==1)))&&(a6==1))&&(a5==1))&&(a12==9))))&&(a15==1)))&&!(a22==1))))){ + a27 = 1; + a4 = 1; + a12 = 8; + a22 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((!(a15==1)&&((a4==1)&&((a12==11)&&(((!(a0==1)&&(((a20==1)&&((input==3)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1))))||((a3==7)&&(!(a18==1)&&(a22==1))))))&&(a6==1)))&&(a5==1))&&!(a27==1)))))){ + if((a20==1)){ + a27 = 1; + a3 = 7; + a6 = 0; + a22 = 1; + a12 = 8; + a18 = 0; + a15 = 1; + a0 = 1; + }else{ + a3 = 8; + a18 = 1; + a4 = 0; + a22 = 0; + a27 = 1; + a12 = 9; + a0 = 1; + } + return -1; + } else if((((a5==1)&&((((a20==1)&&(((!(a15==1)&&((input==3)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))))&&(a0==1))&&(a12==11)))&&(a6==1))&&(a27==1)))&&(a4==1))){ + a22 = 1; + a15 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((!(a6==1)&&((((!(a4==1)&&((a20==1)&&(((a3==5)&&((input==6)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))&&(a5==1))))&&(a12==10))&&!(a15==1))&&(a27==1)))&&(a0==1))){ + a12 = 8; + a3 = 4; + a6 = 1; + a4 = 1; + a22 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if(((a0==1)&&((a6==1)&&(((!(a15==1)&&(((((input==4)&&(((a3==8)&&((a22==1)&&!(a18==1)))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8)))))&&(a20==1))&&!(a5==1))&&(a4==1)))&&(a12==11))&&(a27==1))))){ + if((a20==1)){ + a22 = 1; + a18 = 1; + a3 = 6; + a6 = 0; + a0 = 0; + a5 = 1; + a12 = 8; + a15 = 1; + }else{ + a18 = 0; + a22 = 1; + a6 = 0; + a5 = 1; + a3 = 4; + } + return 21; + } else if(((!(a6==1)&&((a20==1)&&((!(a5==1)&&(((((a27==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2)))&&!(a15==1))&&(a3==7))&&!(a4==1)))&&(a12==8))))&&!(a0==1))){ + a0 = 1; + a5 = 1; + a22 = 0; + a18 = 1; + a6 = 1; + a12 = 12; + return 26; + } else if(((a3==5)&&(!(a0==1)&&((a12==10)&&((a6==1)&&((a27==1)&&((a4==1)&&(((!(a5==1)&&((input==5)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))))&&(a20==1))&&(a15==1))))))))){ + a5 = 1; + a12 = 8; + a22 = 1; + a0 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((a3==4)&&((a20==1)&&(!(a5==1)&&((a15==1)&&((a12==12)&&((a27==1)&&(((((input==6)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a0==1))&&(a6==1))&&!(a4==1))))))))){ + if((a22==1)){ + a22 = 0; + a4 = 1; + a3 = 5; + a0 = 1; + a12 = 8; + a18 = 1; + a5 = 1; + }else{ + a22 = 1; + a0 = 1; + a3 = 5; + a6 = 0; + a12 = 8; + a18 = 1; + a5 = 1; + a4 = 1; + } + return -1; + } else if(((a3==7)&&(((a12==9)&&((a20==1)&&(((!(a4==1)&&((!(a5==1)&&(((input==2)&&!(a6==1))&&!(a22==1)))&&!(a0==1)))&&!(a27==1))&&!(a18==1))))&&!(a15==1)))){ + if((a12==12)){ + a3 = 8; + a5 = 1; + a15 = 1; + a4 = 1; + a27 = 1; + a12 = 8; + a18 = 1; + }else{ + a6 = 1; + a27 = 1; + a4 = 1; + a12 = 11; + a22 = 1; + a3 = 4; + a0 = 1; + } + return -1; + } else if((!(a4==1)&&((a15==1)&&(!(a6==1)&&((a0==1)&&(!(a27==1)&&(((a12==12)&&((a20==1)&&((input==5)&&(((a3==6)&&((a22==1)&&!(a18==1)))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6)))))))&&(a5==1)))))))){ + a3 = 8; + a12 = 9; + a15 = 0; + a4 = 1; + a22 = 0; + a18 = 1; + return -1; + } else if((((a12==12)&&(!(a22==1)&&((a5==1)&&((a0==1)&&(!(a4==1)&&(((a3==7)&&(!(a27==1)&&(!(a6==1)&&((input==1)&&((a18==1)||!(a18==1))))))&&(a20==1)))))))&&!(a15==1))){ + a18 = 0; + a3 = 8; + a12 = 8; + a6 = 1; + a15 = 1; + return -1; + } else if(((a0==1)&&((a20==1)&&((a4==1)&&((a5==1)&&(!(a6==1)&&((((a15==1)&&((a27==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==5))))&&(a12==10))&&(a3==4)))))))){ + a12 = 8; + a22 = 1; + a18 = 1; + a6 = 1; + return -1; + } else if((((a12==12)&&((a5==1)&&(((!(a22==1)&&((a4==1)&&((((a20==1)&&((a18==1)&&(input==5)))&&(a3==4))&&(a6==1))))&&(a27==1))&&(a0==1))))&&!(a15==1))){ + a4 = 0; + a6 = 0; + a12 = 11; + a15 = 1; + a0 = 0; + a22 = 1; + a3 = 8; + return -1; + } else if(((!(a27==1)&&((a5==1)&&(((a12==10)&&(!(a4==1)&&(((a6==1)&&(!(a18==1)&&((a15==1)&&((input==2)&&(a3==8)))))&&!(a0==1))))&&(a20==1))))&&!(a22==1))){ + a12 = 8; + a3 = 7; + a0 = 1; + a4 = 1; + a27 = 1; + return -1; + } else if(((a12==11)&&((((a5==1)&&(!(a27==1)&&(!(a15==1)&&((((!(a6==1)&&((a3==8)&&(((a18==1)&&!(a22==1))&&(a4==1))))||((((!(a22==1)&&!(a18==1))&&(a4==1))&&(a3==8))&&!(a6==1)))||((a6==1)&&((((a18==1)&&(a22==1))&&!(a4==1))&&(a3==4))))&&(input==5)))))&&(a20==1))&&(a0==1)))){ + a4 = 1; + a27 = 1; + a15 = 1; + a18 = 1; + a6 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + return -1; + } else if(((a6==1)&&(((((a20==1)&&((((!(a5==1)&&((a0==1)&&(!(a18==1)&&(input==1))))&&(a27==1))&&!(a22==1))&&(a12==11)))&&(a3==8))&&(a15==1))&&(a4==1)))){ + a6 = 0; + a12 = 10; + a0 = 0; + return -1; + } else if((((((a5==1)&&((((a3==4)&&((a20==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&!(a6==1))))&&!(a0==1))&&!(a27==1)))&&(a15==1))&&(a12==10))&&(a4==1))){ + a18 = 0; + a22 = 1; + a27 = 1; + a3 = 6; + a12 = 8; + a0 = 1; + a6 = 1; + return 24; + } else if((!(a5==1)&&((a6==1)&&((a3==8)&&((a27==1)&&((a12==12)&&(!(a22==1)&&((a20==1)&&(((((input==3)&&!(a0==1))&&!(a4==1))&&!(a18==1))&&!(a15==1)))))))))){ + if((a0==1)){ + a0 = 1; + a6 = 0; + a12 = 11; + a3 = 6; + a5 = 1; + a22 = 1; + }else{ + a0 = 1; + a4 = 1; + a5 = 1; + a6 = 0; + a3 = 6; + a12 = 8; + a15 = 1; + } + return -1; + } else if(((((!(a27==1)&&((a12==8)&&((a20==1)&&(!(a5==1)&&(!(a15==1)&&(((((a18==1)||!(a18==1))&&(input==3))&&(a3==7))&&(a22==1)))))))&&(a6==1))&&(a0==1))&&!(a4==1))){ + a5 = 1; + a12 = 12; + a3 = 6; + a6 = 0; + a4 = 1; + a18 = 1; + a22 = 0; + a15 = 1; + a27 = 1; + return 26; + } else if(((!(a0==1)&&((a6==1)&&((a27==1)&&((((((a15==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==6)))&&(a12==11))&&(a3==4))&&(a5==1))&&(a20==1)))))&&!(a4==1))){ + a5 = 0; + a18 = 1; + a3 = 8; + a22 = 0; + a12 = 10; + a0 = 1; + a6 = 0; + a15 = 0; + a4 = 1; + return 21; + } else if((((a12==10)&&(((((!(a5==1)&&((a6==1)&&(((input==3)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&!(a27==1))))&&(a0==1))&&(a3==6))&&(a15==1))&&(a4==1)))&&(a20==1))){ + a3 = 8; + a4 = 0; + a18 = 1; + a12 = 11; + a22 = 0; + return 21; + } else if(((!(a6==1)&&((((a20==1)&&((a12==11)&&((((input==4)&&(((a3==6)&&((a22==1)&&!(a18==1)))||(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))))&&!(a15==1))&&!(a4==1))))&&(a5==1))&&!(a27==1)))&&(a0==1))){ + a12 = 9; + a4 = 1; + a5 = 0; + a18 = 1; + a3 = 4; + a22 = 0; + return -1; + } else if((((!(a4==1)&&((a12==8)&&((!(a15==1)&&((((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==6))&&(a20==1))&&(a6==1)))&&!(a0==1))))&&!(a27==1))&&(a5==1))){ + if((a3==6)){ + a15 = 1; + a3 = 5; + a4 = 1; + a22 = 0; + a18 = 1; + a27 = 1; + a0 = 1; + }else{ + a18 = 1; + a12 = 11; + a0 = 1; + a22 = 1; + a15 = 1; + a4 = 1; + a5 = 0; + a3 = 6; + } + return 21; + } else if(((((a22==1)&&(((a3==8)&&((((!(a6==1)&&(((a20==1)&&(input==6))&&(a5==1)))&&(a18==1))&&!(a4==1))&&!(a15==1)))&&(a27==1)))&&(a12==12))&&(a0==1))){ + a6 = 1; + a3 = 4; + a15 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if(((a20==1)&&(((a12==8)&&((a18==1)&&(((!(a4==1)&&(((((input==2)&&!(a0==1))&&!(a27==1))&&(a6==1))&&!(a22==1)))&&(a15==1))&&(a5==1))))&&(a3==6)))){ + a0 = 1; + a18 = 0; + a27 = 1; + return 26; + } else if(((a4==1)&&((((a5==1)&&(((((!(a0==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==4)))&&(a20==1))&&!(a27==1))&&(a3==5))&&(a12==8)))&&(a6==1))&&(a15==1)))){ + if((a12==8)){ + a18 = 1; + a22 = 1; + a27 = 1; + a15 = 0; + a12 = 10; + a3 = 8; + }else{ + a12 = 10; + a5 = 0; + a18 = 0; + a3 = 8; + a4 = 0; + a22 = 1; + a6 = 0; + } + return 26; + } else if(((((!(a4==1)&&(!(a5==1)&&(((!(a27==1)&&(!(a15==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==5))))&&!(a6==1))&&(a3==5))))&&!(a0==1))&&(a20==1))&&(a12==9))){ + a5 = 1; + a4 = 1; + a27 = 1; + a18 = 1; + a22 = 0; + a15 = 1; + a0 = 1; + a12 = 8; + return 26; + } else if(((a20==1)&&((a12==9)&&(((((((a15==1)&&(((input==4)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&!(a5==1)))&&!(a0==1))&&(a6==1))&&(a4==1))&&(a27==1))&&(a3==7))))){ + a18 = 0; + a6 = 0; + a12 = 10; + a22 = 1; + a4 = 0; + a0 = 1; + return -1; + } else if(((((a20==1)&&(((a3==4)&&(!(a15==1)&&((((a0==1)&&((((a18==1)||!(a18==1))&&(input==4))&&!(a27==1)))&&!(a4==1))&&(a12==9))))&&!(a22==1)))&&(a6==1))&&!(a5==1))){ + a12 = 8; + a3 = 6; + a4 = 1; + a18 = 0; + a5 = 1; + return 26; + } else if((((((a12==12)&&(!(a6==1)&&(((!(a18==1)&&(((a4==1)&&((input==3)&&(a5==1)))&&!(a0==1)))&&(a20==1))&&(a27==1))))&&!(a22==1))&&!(a15==1))&&(a3==7))){ + a0 = 1; + a15 = 1; + a12 = 8; + a3 = 5; + a22 = 1; + a6 = 1; + a18 = 1; + a4 = 0; + return -1; + } else if(((((a27==1)&&(((a15==1)&&(!(a5==1)&&(((input==5)&&(((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1))))&&(a0==1))))&&(a4==1)))&&(a20==1))&&(a12==12))){ + a3 = 6; + a6 = 1; + a22 = 0; + a18 = 0; + a27 = 0; + return 26; + } else if((((a22==1)&&(((a6==1)&&((a3==8)&&((a12==10)&&(((a15==1)&&(((!(a4==1)&&(input==4))&&(a20==1))&&!(a18==1)))&&(a5==1)))))&&!(a0==1)))&&!(a27==1))){ + a27 = 1; + a12 = 11; + a3 = 4; + a18 = 1; + return 21; + } else if((((a3==6)&&(((((((((!(a27==1)&&(input==3))&&(a20==1))&&(a0==1))&&(a22==1))&&(a12==11))&&!(a18==1))&&!(a6==1))&&!(a15==1))&&!(a5==1)))&&!(a4==1))){ + a12 = 8; + a18 = 1; + a4 = 1; + a15 = 1; + a5 = 1; + a6 = 1; + a3 = 4; + a27 = 1; + return -1; + } else if((((!(a4==1)&&((!(a0==1)&&(((a27==1)&&((((a3==8)&&(!(a5==1)&&(input==5)))&&(a20==1))&&!(a18==1)))&&!(a22==1)))&&!(a15==1)))&&(a12==9))&&(a6==1))){ + a4 = 1; + a5 = 1; + a12 = 11; + a22 = 1; + a6 = 0; + a3 = 4; + a0 = 1; + return 24; + } else if(((a6==1)&&((a20==1)&&((a12==8)&&(((a4==1)&&((((a27==1)&&(((((a18==1)||!(a18==1))&&(input==3))&&(a22==1))&&(a15==1)))&&(a3==5))&&!(a5==1)))&&!(a0==1)))))){ + a0 = 1; + a18 = 1; + a5 = 1; + a3 = 4; + return -1; + } else if((!(a5==1)&&((!(a15==1)&&((a20==1)&&(!(a0==1)&&(!(a27==1)&&((a12==8)&&((input==4)&&(((((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1)))||(!(a6==1)&&((a3==4)&&((a22==1)&&!(a18==1)))))))))))&&(a4==1)))){ + a3 = 7; + a0 = 1; + a5 = 1; + a15 = 1; + a27 = 1; + a6 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((!(a6==1)&&(!(a15==1)&&(((a27==1)&&((!(a22==1)&&((a20==1)&&((((a3==8)&&(input==3))&&(a18==1))&&(a0==1))))&&(a5==1)))&&(a12==10))))&&!(a4==1))){ + a6 = 1; + a22 = 1; + return -1; + } else if((((!(a27==1)&&(!(a5==1)&&((a4==1)&&((((((input==2)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a0==1))&&(a6==1))&&(a15==1))&&(a3==5)))))&&(a12==9))&&(a20==1))){ + a5 = 1; + a22 = 1; + a27 = 1; + a18 = 0; + a12 = 12; + a3 = 8; + return 21; + } else if((((a6==1)&&((((!(a15==1)&&((a12==11)&&((a0==1)&&((input==5)&&(((a3==7)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1)))))))))&&!(a5==1))&&!(a4==1))&&(a27==1)))&&(a20==1))){ + a15 = 1; + a5 = 1; + a4 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if((((!(a4==1)&&(((a27==1)&&(!(a15==1)&&((a20==1)&&(!(a22==1)&&(((a12==10)&&((input==6)&&!(a0==1)))&&!(a18==1))))))&&(a6==1)))&&(a5==1))&&(a3==5))){ + a15 = 1; + a0 = 1; + a3 = 4; + a27 = 0; + a12 = 8; + return -1; + } else if((!(a4==1)&&(((a20==1)&&((a22==1)&&(!(a5==1)&&((a12==9)&&((a6==1)&&(((a3==5)&&(((input==6)&&((a18==1)||!(a18==1)))&&!(a0==1)))&&!(a15==1)))))))&&!(a27==1)))){ + a6 = 0; + a5 = 1; + a12 = 11; + a18 = 1; + a0 = 1; + a4 = 1; + a3 = 7; + return 26; + } else if(((a20==1)&&((!(a27==1)&&(!(a15==1)&&(((a3==8)&&((a5==1)&&((a0==1)&&(((input==3)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&(a12==9)))))&&(a4==1))))&&(a6==1)))){ + a18 = 0; + a12 = 12; + a3 = 7; + a27 = 1; + a22 = 0; + a4 = 0; + return 21; + } else if(((a18==1)&&(((a5==1)&&((a4==1)&&((a20==1)&&(((((((a15==1)&&(input==2))&&!(a22==1))&&(a0==1))&&(a12==8))&&!(a6==1))&&!(a27==1)))))&&(a3==6)))){ + a5 = 0; + a12 = 11; + a15 = 0; + a3 = 5; + a18 = 0; + a6 = 1; + a27 = 1; + return 21; + } else if((!(a6==1)&&(((a0==1)&&(((a22==1)&&(((a3==8)&&((!(a15==1)&&(((input==1)&&(a5==1))&&(a18==1)))&&(a20==1)))&&!(a27==1)))&&!(a4==1)))&&(a12==8)))){ + a3 = 7; + a15 = 1; + a5 = 0; + a22 = 0; + a4 = 1; + a18 = 0; + return 26; + } else if(((((!(a18==1)&&((((a12==8)&&(!(a0==1)&&((((a3==4)&&(input==3))&&!(a27==1))&&!(a15==1))))&&!(a4==1))&&!(a6==1)))&&(a20==1))&&(a22==1))&&(a5==1))){ + if((a12==12)){ + a0 = 1; + a4 = 1; + a18 = 1; + a27 = 1; + a22 = 0; + a15 = 1; + a3 = 6; + }else{ + a27 = 1; + a3 = 7; + a18 = 1; + a6 = 1; + a0 = 1; + a4 = 1; + a15 = 1; + } + return -1; + } else if((((((a27==1)&&(!(a0==1)&&((((a5==1)&&((input==5)&&((((a22==1)&&(a18==1))&&(a3==7))||(((!(a22==1)&&(a18==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6))))))&&(a20==1))&&!(a15==1))))&&(a12==10))&&!(a4==1))&&!(a6==1))){ + a15 = 1; + a18 = 1; + a12 = 8; + a0 = 1; + a6 = 1; + a22 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if((!(a6==1)&&((((((a5==1)&&((a3==4)&&((a20==1)&&((((input==5)&&!(a27==1))&&(a12==12))&&(a0==1)))))&&!(a22==1))&&!(a4==1))&&(a15==1))&&(a18==1)))){ + a6 = 1; + a12 = 8; + a22 = 1; + a4 = 1; + a27 = 1; + return -1; + } else if(((((!(a18==1)&&((((a12==10)&&((a22==1)&&((a3==7)&&(((a27==1)&&(input==3))&&(a20==1)))))&&!(a5==1))&&(a4==1)))&&(a6==1))&&(a0==1))&&(a15==1))){ + a4 = 0; + a22 = 0; + a12 = 8; + a18 = 1; + a5 = 1; + a6 = 0; + a3 = 6; + return 21; + } else if((((a27==1)&&((((!(a15==1)&&((!(a6==1)&&((((a20==1)&&(input==3))&&(a3==8))&&(a22==1)))&&(a12==10)))&&!(a4==1))&&(a0==1))&&(a18==1)))&&(a5==1))){ + a15 = 1; + a5 = 0; + a3 = 6; + a4 = 1; + return 21; + } else if(((a4==1)&&((!(a0==1)&&(!(a15==1)&&((a12==10)&&((a6==1)&&(!(a27==1)&&((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==1))&&!(a5==1))&&(a20==1)))))))&&(a3==4)))){ + a5 = 1; + a6 = 0; + a12 = 9; + a18 = 0; + a22 = 1; + a27 = 1; + return 26; + } else if((!(a27==1)&&((a0==1)&&(!(a5==1)&&((a6==1)&&((!(a4==1)&&(((a18==1)&&(((a12==12)&&((a15==1)&&(input==3)))&&(a22==1)))&&(a3==5)))&&(a20==1))))))){ + a4 = 1; + a3 = 4; + a12 = 8; + a27 = 1; + a5 = 1; + return -1; + } else if(((((a5==1)&&((a27==1)&&(!(a18==1)&&(((a22==1)&&(!(a15==1)&&(((a0==1)&&((input==4)&&(a12==11)))&&!(a4==1))))&&(a20==1)))))&&(a3==5))&&(a6==1))){ + a3 = 6; + a4 = 1; + a18 = 1; + return -1; + } else if((!(a0==1)&&((a20==1)&&((a12==10)&&(((((a3==6)&&((((input==2)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a15==1))&&(a4==1)))&&!(a5==1))&&!(a6==1))&&!(a27==1)))))){ + a6 = 1; + a4 = 0; + a3 = 7; + a22 = 1; + a12 = 8; + a5 = 1; + a18 = 0; + a15 = 1; + a0 = 1; + a27 = 1; + return -1; + } else if((!(a22==1)&&(((a20==1)&&((((a3==6)&&(!(a4==1)&&((((a18==1)&&((input==6)&&(a15==1)))&&!(a27==1))&&(a12==11))))&&(a0==1))&&(a6==1)))&&(a5==1)))){ + a3 = 8; + a18 = 0; + a27 = 1; + a15 = 0; + a4 = 1; + a12 = 10; + a6 = 0; + return 21; + } else if((!(a6==1)&&(((((((a5==1)&&((((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a3==5))&&(a12==11)))&&!(a0==1))&&(a20==1))&&(a27==1))&&!(a15==1))&&!(a4==1)))){ + a4 = 1; + a22 = 1; + a12 = 8; + a15 = 1; + a0 = 1; + a18 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if(((((a12==9)&&((a6==1)&&((((((input==3)&&((((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a22==1)&&!(a18==1))))||((a3==6)&&((a18==1)&&(a22==1)))))&&!(a4==1))&&(a27==1))&&(a20==1))&&(a0==1))))&&(a5==1))&&(a15==1))){ + a5 = 0; + a12 = 12; + a4 = 1; + a3 = 4; + a18 = 0; + a22 = 0; + return 26; + } else if((((!(a0==1)&&(((a6==1)&&(((a3==5)&&(((((input==4)&&(a5==1))&&(a18==1))&&(a20==1))&&(a27==1)))&&(a12==11)))&&!(a22==1)))&&(a15==1))&&!(a4==1))){ + a0 = 1; + a12 = 9; + a15 = 0; + a27 = 0; + a6 = 0; + a3 = 7; + a18 = 0; + a4 = 1; + return 21; + } else if((((a27==1)&&((a3==5)&&((a5==1)&&((!(a22==1)&&((a4==1)&&((a20==1)&&((!(a0==1)&&((input==5)&&!(a18==1)))&&!(a15==1)))))&&!(a6==1)))))&&(a12==12))){ + if((a20==1)){ + a0 = 1; + a12 = 8; + a4 = 0; + a22 = 1; + a15 = 1; + a6 = 1; + a3 = 7; + }else{ + a3 = 6; + a0 = 1; + a15 = 1; + a22 = 1; + a12 = 11; + a6 = 1; + } + return -1; + } else if((!(a0==1)&&(((a3==8)&&((((((a15==1)&&(((input==2)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a6==1)))&&(a4==1))&&(a12==9))&&(a20==1))&&!(a27==1)))&&(a5==1)))){ + a0 = 1; + a18 = 0; + a22 = 1; + a12 = 8; + a27 = 1; + a3 = 5; + return -1; + } else if(((a27==1)&&((!(a0==1)&&((a20==1)&&((a4==1)&&((a3==6)&&((!(a15==1)&&(!(a5==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==3))))&&(a12==9))))))&&!(a6==1)))){ + a22 = 1; + a18 = 1; + a12 = 8; + a15 = 1; + a5 = 1; + a6 = 1; + a3 = 4; + a0 = 1; + return -1; + } else if((((a6==1)&&(((a12==9)&&((a3==6)&&(!(a15==1)&&((a27==1)&&((!(a5==1)&&(((input==4)&&!(a4==1))&&(a20==1)))&&!(a0==1))))))&&!(a18==1)))&&!(a22==1))){ + a4 = 1; + a18 = 1; + a15 = 1; + a0 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + a22 = 1; + return -1; + } else if((((a4==1)&&((a20==1)&&((a12==12)&&(!(a27==1)&&((((input==6)&&((!(a6==1)&&((!(a18==1)&&(a22==1))&&(a3==4)))||((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4))))))&&(a15==1))&&!(a5==1))))))&&(a0==1))){ + a12 = 8; + a6 = 1; + a3 = 4; + a27 = 1; + a22 = 1; + a18 = 1; + a5 = 1; + return -1; + } else if((!(a6==1)&&(((a5==1)&&((((a3==7)&&((((a27==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==2)))&&!(a15==1))&&(a4==1)))&&(a20==1))&&(a12==12)))&&!(a0==1)))){ + if((a20==1)){ + a22 = 1; + a6 = 1; + a18 = 0; + a15 = 1; + a0 = 1; + a12 = 8; + }else{ + a5 = 0; + a12 = 8; + a18 = 0; + a22 = 0; + a15 = 1; + } + return 26; + } else if((!(a27==1)&&((a12==8)&&((((a6==1)&&(((!(a5==1)&&(((input==1)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&!(a0==1)))&&(a3==8))&&(a15==1)))&&(a20==1))&&!(a4==1))))){ + a22 = 0; + a12 = 9; + a4 = 1; + a3 = 7; + a15 = 0; + a18 = 0; + a27 = 1; + return 24; + } else if(((((a15==1)&&((((a20==1)&&((((((a3==8)&&(input==2))&&(a12==12))&&(a22==1))&&!(a0==1))&&!(a5==1)))&&(a6==1))&&(a18==1)))&&(a27==1))&&(a4==1))){ + a0 = 1; + a18 = 0; + a4 = 0; + a15 = 0; + a6 = 0; + a3 = 4; + a5 = 1; + a12 = 10; + a27 = 0; + return 24; + } else if((((((a20==1)&&((!(a15==1)&&((((input==1)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))||(((a22==1)&&(a18==1))&&(a3==6))))&&(a0==1))&&(a5==1)))&&(a4==1)))&&(a12==11))&&(a6==1))&&!(a27==1))){ + a5 = 0; + a3 = 8; + a22 = 1; + a27 = 1; + a12 = 10; + a18 = 1; + return 21; + } else if(((a0==1)&&((((a20==1)&&((a6==1)&&((a12==9)&&((((input==5)&&((((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==6)))||(((a18==1)&&(a22==1))&&(a3==7))))&&!(a5==1))&&(a15==1)))))&&(a4==1))&&(a27==1)))){ + a18 = 0; + a12 = 8; + a5 = 1; + a3 = 8; + a22 = 0; + a15 = 0; + a27 = 0; + return 24; + } else if(((((a6==1)&&(((!(a22==1)&&((a4==1)&&((((a20==1)&&((input==6)&&!(a15==1)))&&(a0==1))&&(a3==4))))&&(a27==1))&&(a5==1)))&&(a12==12))&&(a18==1))){ + a18 = 0; + a12 = 11; + a5 = 0; + a3 = 7; + return 21; + } else if((((a22==1)&&(((((a4==1)&&((a20==1)&&((((a15==1)&&((input==6)&&(a5==1)))&&(a3==5))&&!(a27==1))))&&(a12==10))&&!(a18==1))&&(a0==1)))&&(a6==1))){ + a6 = 0; + a22 = 0; + a3 = 6; + a5 = 0; + a15 = 0; + a12 = 8; + return 26; + } else if((((a4==1)&&((!(a6==1)&&((a20==1)&&((a27==1)&&((((((a12==9)&&(input==6))&&(a0==1))&&(a18==1))&&(a15==1))&&(a5==1)))))&&(a3==8)))&&!(a22==1))){ + a18 = 0; + a15 = 0; + a22 = 1; + a12 = 12; + return 26; + } else if((!(a22==1)&&(((((!(a6==1)&&(!(a4==1)&&((a20==1)&&((a18==1)&&((a12==8)&&((input==3)&&(a3==4)))))))&&(a5==1))&&!(a15==1))&&!(a0==1))&&(a27==1)))){ + a15 = 1; + a22 = 1; + a4 = 1; + a5 = 0; + a27 = 0; + a18 = 0; + a3 = 6; + a0 = 1; + return -1; + } else if(((((((((((input==2)&&((((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==5))))&&(a12==12))&&!(a5==1))&&(a20==1))&&(a4==1))&&!(a15==1))&&(a27==1))&&(a0==1))&&(a6==1))){ + a5 = 1; + a15 = 1; + a22 = 1; + a18 = 1; + a27 = 0; + a3 = 7; + return 26; + } else if(((((a12==12)&&(!(a4==1)&&(((((a5==1)&&((a3==7)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==5))))&&(a27==1))&&(a15==1))&&!(a6==1))))&&(a20==1))&&(a0==1))){ + a3 = 4; + a18 = 1; + a22 = 1; + a6 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if(((a0==1)&&(((a12==10)&&((a4==1)&&((a15==1)&&(!(a27==1)&&(((!(a6==1)&&((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a3==6))&&(a20==1))))))&&(a5==1)))){ + a27 = 1; + a3 = 5; + a18 = 1; + a4 = 0; + a22 = 1; + a6 = 1; + a5 = 0; + return 26; + } else if((((!(a5==1)&&((a20==1)&&((a3==6)&&(((a6==1)&&((a22==1)&&((!(a18==1)&&((input==2)&&!(a27==1)))&&!(a4==1))))&&(a0==1)))))&&(a12==9))&&(a15==1))){ + if((a6==1)){ + a3 = 4; + a27 = 1; + a0 = 0; + a18 = 1; + a5 = 1; + a12 = 11; + }else{ + a15 = 0; + a5 = 1; + a12 = 12; + a18 = 1; + } + return 26; + } else if(((a5==1)&&(((a0==1)&&((a15==1)&&(((((((input==3)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a3==7))&&(a12==11))&&(a27==1))&&(a4==1))&&(a20==1))))&&!(a6==1)))){ + a5 = 0; + a27 = 0; + a18 = 0; + a15 = 0; + a12 = 10; + a22 = 1; + a6 = 1; + a3 = 8; + return 21; + } else if((((((a18==1)&&(((((!(a6==1)&&((a12==8)&&((a0==1)&&(input==3))))&&!(a4==1))&&(a3==4))&&(a5==1))&&(a22==1)))&&(a27==1))&&(a20==1))&&!(a15==1))){ + a15 = 1; + a4 = 1; + a6 = 1; + return -1; + } else if(((a20==1)&&((!(a18==1)&&(((!(a6==1)&&((a4==1)&&(((a15==1)&&((a27==1)&&((a5==1)&&(input==5))))&&!(a0==1))))&&(a3==7))&&(a12==11)))&&!(a22==1)))){ + a0 = 1; + a18 = 1; + a4 = 0; + a12 = 8; + a27 = 0; + return -1; + } else if(((a20==1)&&(!(a4==1)&&(!(a6==1)&&((a27==1)&&((a0==1)&&((a15==1)&&(!(a22==1)&&(((a12==11)&&(!(a5==1)&&((input==4)&&((a18==1)||!(a18==1)))))&&(a3==5)))))))))){ + a0 = 0; + a22 = 1; + a6 = 1; + a18 = 1; + return 21; + } else if((((a12==8)&&((a0==1)&&(!(a4==1)&&(!(a15==1)&&(!(a6==1)&&((!(a5==1)&&(((input==3)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a27==1)))&&(a3==4)))))))&&(a20==1))){ + a5 = 1; + a22 = 1; + a6 = 1; + a15 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if((((a12==12)&&((((input==1)&&((((a3==4)&&(((a15==1)&&(((a22==1)&&(a18==1))&&!(a5==1)))&&(a4==1)))&&(a6==1))||((!(a6==1)&&((a3==8)&&(!(a4==1)&&(!(a15==1)&&((a5==1)&&((a18==1)&&!(a22==1)))))))||(!(a6==1)&&((a3==8)&&(!(a4==1)&&(!(a15==1)&&((!(a18==1)&&!(a22==1))&&(a5==1)))))))))&&(a20==1))&&!(a0==1)))&&(a27==1))){ + if((a3==6)){ + a5 = 0; + a15 = 0; + a22 = 1; + a3 = 5; + a0 = 1; + a4 = 0; + a6 = 1; + a18 = 0; + }else{ + a15 = 1; + a3 = 8; + a5 = 1; + a4 = 0; + a22 = 0; + a6 = 1; + a18 = 0; + a0 = 1; + a12 = 8; + } + return 21; + } else if((!(a0==1)&&((((a15==1)&&((a3==6)&&(((a4==1)&&((a12==11)&&(((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==3))&&(a27==1))))&&!(a6==1))))&&(a20==1))&&(a5==1)))){ + a22 = 0; + a5 = 0; + a6 = 1; + a18 = 1; + a12 = 10; + a0 = 1; + a4 = 0; + return 21; + } else if((!(a0==1)&&(((!(a5==1)&&((!(a27==1)&&(!(a4==1)&&(((((input==5)&&((a18==1)||!(a18==1)))&&(a20==1))&&!(a15==1))&&(a3==8))))&&(a12==9)))&&(a22==1))&&(a6==1)))){ + if((a4==1)){ + a22 = 0; + a0 = 1; + a27 = 1; + a18 = 1; + a3 = 6; + }else{ + a15 = 1; + a5 = 1; + a18 = 0; + a22 = 0; + a12 = 8; + a27 = 1; + a0 = 1; + } + return 21; + } else if(((a12==11)&&(((((a0==1)&&(((((((input==6)&&((a18==1)||!(a18==1)))&&(a4==1))&&(a27==1))&&(a3==7))&&(a20==1))&&!(a5==1)))&&!(a6==1))&&(a22==1))&&(a15==1)))){ + a22 = 0; + a18 = 0; + a5 = 1; + a12 = 12; + return 21; + } else if(((a12==9)&&(((a6==1)&&(!(a4==1)&&((a15==1)&&((!(a5==1)&&((((((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==1))&&(a20==1)))&&!(a0==1)))))&&(a27==1)))){ + a12 = 10; + a5 = 1; + a3 = 7; + a18 = 1; + a0 = 1; + a27 = 0; + a15 = 0; + a22 = 0; + return 21; + } else if((((!(a5==1)&&(((!(a18==1)&&(((a12==8)&&((a4==1)&&(((input==1)&&(a3==4))&&(a20==1))))&&(a27==1)))&&(a0==1))&&(a22==1)))&&(a6==1))&&!(a15==1))){ + a4 = 0; + a22 = 0; + a12 = 10; + a15 = 1; + return 26; + } else if(((a12==10)&&((((!(a27==1)&&((((a20==1)&&(((a0==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a22==1)))&&(a3==5))&&!(a15==1)))&&(a5==1))&&(a4==1))&&(a6==1)))){ + a27 = 1; + a3 = 4; + a12 = 8; + a15 = 1; + a18 = 1; + return -1; + } else if((((((a15==1)&&((a22==1)&&((!(a0==1)&&(((a3==4)&&(!(a27==1)&&((a20==1)&&(input==2))))&&!(a4==1)))&&!(a5==1))))&&(a18==1))&&(a6==1))&&(a12==10))){ + a27 = 1; + a5 = 1; + a12 = 8; + a0 = 1; + return 21; + } else if((((((((((a0==1)&&(((((a22==1)&&(a18==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==6))))&&(input==4)))&&!(a15==1))&&!(a4==1))&&(a20==1))&&(a12==9))&&(a6==1))&&(a27==1))&&!(a5==1))){ + a18 = 0; + a27 = 0; + a22 = 1; + a3 = 8; + a15 = 1; + a5 = 1; + return 26; + } else if(((!(a18==1)&&((a5==1)&&((((((a20==1)&&((!(a15==1)&&((a22==1)&&(input==6)))&&(a0==1)))&&(a27==1))&&(a12==8))&&(a3==5))&&(a6==1))))&&(a4==1))){ + a18 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if((((a5==1)&&((a12==10)&&((a4==1)&&(((a22==1)&&(((a27==1)&&((((input==2)&&((a18==1)||!(a18==1)))&&!(a0==1))&&!(a6==1)))&&(a15==1)))&&(a20==1)))))&&(a3==6))){ + a18 = 1; + a3 = 8; + a5 = 0; + a6 = 1; + a27 = 0; + a0 = 1; + return -1; + } else if((((a20==1)&&(((a15==1)&&((a6==1)&&(((((((input==3)&&((a18==1)||!(a18==1)))&&!(a5==1))&&!(a22==1))&&(a0==1))&&(a12==10))&&(a3==4))))&&!(a27==1)))&&!(a4==1))){ + a12 = 11; + a22 = 1; + a4 = 1; + a18 = 1; + a5 = 1; + a6 = 0; + return 21; + } else if((((((((a27==1)&&(!(a5==1)&&((a20==1)&&((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==3))&&(a12==10)))))&&!(a15==1))&&(a0==1))&&(a3==6))&&!(a6==1))&&(a4==1))){ + a18 = 0; + a22 = 1; + return 26; + } else if((!(a6==1)&&((((a12==11)&&(!(a15==1)&&((a0==1)&&((((a20==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a3==7)))&&!(a4==1))&&(a5==1)))))&&!(a22==1))&&(a27==1)))){ + a18 = 0; + a3 = 4; + a5 = 0; + a4 = 1; + return 26; + } else if((((!(a4==1)&&((a20==1)&&((((((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==1))&&(a12==8))&&!(a27==1))&&(a0==1))&&(a5==1))))&&!(a15==1))&&(a6==1))){ + a22 = 1; + a4 = 1; + a3 = 4; + a27 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if(((a22==1)&&(((!(a4==1)&&((a18==1)&&(((a20==1)&&((a12==10)&&((a27==1)&&(((input==1)&&!(a5==1))&&(a3==7)))))&&!(a6==1))))&&!(a0==1))&&!(a15==1)))){ + if((a20==1)){ + a6 = 1; + a12 = 11; + a5 = 1; + a3 = 8; + }else{ + a15 = 1; + a5 = 1; + a0 = 1; + a27 = 0; + a6 = 1; + } + return 21; + } else if((!(a6==1)&&(((!(a15==1)&&(((a3==4)&&((a4==1)&&((a20==1)&&((a27==1)&&((input==3)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))))))&&(a12==11)))&&(a0==1))&&!(a5==1)))){ + a12 = 10; + a3 = 5; + a18 = 0; + a15 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if(((a27==1)&&((((a5==1)&&((((a15==1)&&((a20==1)&&((((a3==6)&&((a22==1)&&!(a18==1)))||(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1)))))&&(input==1))))&&(a0==1))&&!(a6==1)))&&!(a4==1))&&(a12==10)))){ + a18 = 0; + a22 = 0; + a3 = 5; + return -1; + } else if((!(a5==1)&&(((!(a0==1)&&(!(a4==1)&&(!(a6==1)&&((((a12==11)&&((((a18==1)||!(a18==1))&&(input==1))&&!(a15==1)))&&!(a27==1))&&(a22==1)))))&&(a20==1))&&(a3==8)))){ + a0 = 1; + a18 = 0; + a12 = 8; + a4 = 1; + a5 = 1; + a27 = 1; + a6 = 1; + a15 = 1; + return 21; + } else if(((a20==1)&&(!(a4==1)&&(!(a27==1)&&(!(a0==1)&&((a15==1)&&(((((((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==1))&&(a6==1))&&!(a5==1))&&(a12==10)))))))){ + if((a5==1)){ + a3 = 7; + a4 = 1; + a22 = 0; + a0 = 1; + a12 = 8; + a27 = 1; + a5 = 1; + a18 = 0; + }else{ + a4 = 1; + a18 = 0; + a27 = 1; + a5 = 1; + a12 = 8; + a22 = 1; + a3 = 5; + a0 = 1; + } + return -1; + } else if((!(a27==1)&&((a20==1)&&(((((!(a6==1)&&((((((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a18==1)&&(a22==1))))||((a3==7)&&(!(a18==1)&&(a22==1))))&&(input==3))&&(a0==1)))&&(a12==8))&&(a4==1))&&(a5==1))&&!(a15==1))))){ + a27 = 1; + a22 = 0; + a5 = 0; + a12 = 10; + a15 = 1; + a3 = 8; + a18 = 0; + return 21; + } else if((((((!(a6==1)&&((((((((a22==1)&&(a18==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==5))))&&(input==2))&&(a0==1))&&!(a15==1))&&!(a27==1)))&&(a12==12))&&!(a4==1))&&!(a5==1))&&(a20==1))){ + a12 = 8; + a27 = 1; + a3 = 4; + a5 = 1; + a18 = 1; + a15 = 1; + a6 = 1; + a4 = 1; + a22 = 1; + return -1; + } else if(((a5==1)&&((((a12==10)&&(((a15==1)&&(!(a27==1)&&(!(a6==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==4))&&!(a0==1)))))&&!(a4==1)))&&(a3==5))&&(a20==1)))){ + a18 = 0; + a22 = 1; + a5 = 0; + a12 = 9; + a4 = 1; + return -1; + } else if((((a12==9)&&(((!(a0==1)&&((!(a5==1)&&(((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==5))&&(a20==1)))&&!(a6==1)))&&(a27==1))&&!(a4==1)))&&(a15==1))){ + a3 = 6; + a4 = 1; + a18 = 1; + a22 = 1; + a0 = 1; + a5 = 1; + a6 = 1; + a12 = 11; + return 21; + } else if(((a5==1)&&((!(a22==1)&&(((a6==1)&&(!(a18==1)&&(((a3==7)&&(!(a0==1)&&(!(a4==1)&&((input==5)&&!(a27==1)))))&&(a12==9))))&&!(a15==1)))&&(a20==1)))){ + a15 = 1; + a12 = 8; + a4 = 1; + a0 = 1; + a3 = 4; + a6 = 0; + a27 = 1; + return 24; + } else if((!(a0==1)&&((a4==1)&&((a3==8)&&(((a20==1)&&(((((a27==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==6)))&&(a12==9))&&(a5==1))&&!(a6==1)))&&!(a15==1)))))){ + a12 = 11; + a15 = 1; + a22 = 0; + a6 = 1; + a0 = 1; + a3 = 4; + a18 = 1; + return 21; + } else if(((!(a0==1)&&(((a18==1)&&(!(a5==1)&&(((((((a22==1)&&(input==1))&&!(a6==1))&&!(a15==1))&&(a3==6))&&!(a27==1))&&(a12==11))))&&(a20==1)))&&!(a4==1))){ + a4 = 1; + a27 = 1; + a15 = 1; + a12 = 8; + a6 = 1; + a3 = 5; + a18 = 0; + a5 = 1; + a0 = 1; + return -1; + } else if(((!(a15==1)&&(((a22==1)&&((!(a0==1)&&(((a6==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&(a4==1))&&(a3==6)))&&(a20==1)))&&(a12==11)))&&!(a5==1)))&&(a27==1))){ + a0 = 1; + a5 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if((((a4==1)&&((a5==1)&&((a12==8)&&((a6==1)&&(((((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==3))&&!(a0==1))&&(a27==1))&&(a20==1))))))&&(a15==1))){ + a5 = 0; + a3 = 4; + a12 = 10; + a22 = 0; + a18 = 0; + return -1; + } else if(((a3==6)&&(((((a0==1)&&((!(a5==1)&&((a4==1)&&(!(a6==1)&&((a18==1)&&((input==6)&&(a12==8))))))&&(a20==1)))&&!(a27==1))&&(a22==1))&&!(a15==1)))){ + a12 = 10; + a4 = 0; + a5 = 1; + a15 = 1; + a27 = 1; + a6 = 1; + a18 = 0; + return 24; + } else if((((a3==5)&&(((a6==1)&&(((a4==1)&&((a0==1)&&(((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==1))&&!(a15==1))&&(a12==12))))&&(a27==1)))&&!(a5==1)))&&(a20==1))){ + a12 = 8; + a18 = 1; + a22 = 1; + a3 = 4; + a15 = 1; + a5 = 1; + return -1; + } else if((((a3==7)&&(((((!(a0==1)&&((a20==1)&&(!(a18==1)&&(((input==5)&&(a5==1))&&!(a6==1)))))&&!(a4==1))&&(a12==10))&&(a27==1))&&(a15==1)))&&!(a22==1))){ + a5 = 0; + a4 = 1; + a15 = 0; + a0 = 1; + a12 = 11; + a3 = 4; + return 21; + } else if((((a12==12)&&((!(a6==1)&&((((a4==1)&&((a5==1)&&((((input==4)&&(a3==6))&&(a0==1))&&(a20==1))))&&!(a18==1))&&(a22==1)))&&!(a27==1)))&&!(a15==1))){ + a18 = 1; + a3 = 8; + a6 = 1; + a12 = 9; + return -1; + } else if(((a3==6)&&((a12==8)&&(((a15==1)&&((a0==1)&&(!(a6==1)&&((!(a5==1)&&(!(a4==1)&&((input==6)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))))&&!(a27==1)))))&&(a20==1))))){ + a4 = 1; + a18 = 0; + a22 = 0; + a27 = 1; + a12 = 12; + a5 = 1; + a3 = 7; + return 26; + } else if((((a20==1)&&((a4==1)&&(((a15==1)&&(((((((a6==1)&&((a3==8)&&(!(a22==1)&&(a18==1))))||((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8))))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4))))&&(input==6))&&(a0==1))&&(a12==11)))&&(a5==1))))&&(a27==1))){ + a22 = 1; + a18 = 1; + a3 = 4; + a6 = 1; + a12 = 8; + return -1; + } else if(((!(a0==1)&&(((a4==1)&&((a12==8)&&((a5==1)&&((a20==1)&&(((input==4)&&((((a22==1)&&!(a18==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a22==1)&&(a18==1))))))&&(a15==1))))))&&!(a6==1)))&&(a27==1))){ + a0 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + a12 = 11; + return 26; + } else if(((((((a15==1)&&((((a6==1)&&((((input==3)&&((a18==1)||!(a18==1)))&&(a3==6))&&!(a27==1)))&&(a0==1))&&(a4==1)))&&!(a22==1))&&(a20==1))&&(a5==1))&&(a12==9))){ + a12 = 10; + a22 = 1; + a18 = 1; + a3 = 8; + a5 = 0; + return 26; + } else if(((((a12==10)&&(!(a0==1)&&((((((((!(a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6))))&&(input==2))&&!(a6==1))&&!(a5==1))&&!(a15==1))&&(a20==1))))&&!(a27==1))&&!(a4==1))){ + a15 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a6 = 1; + a0 = 1; + a5 = 1; + a22 = 0; + a27 = 1; + return -1; + } else if((((a12==12)&&((!(a4==1)&&(((a20==1)&&((a0==1)&&(((input==6)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1)))))&&(a6==1))))&&!(a5==1)))&&(a27==1)))&&(a15==1))){ + a4 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + a5 = 1; + a18 = 1; + return -1; + } else if((!(a0==1)&&((!(a27==1)&&((((a12==8)&&(((a3==8)&&(!(a4==1)&&((input==1)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))))&&(a20==1)))&&(a15==1))&&(a5==1)))&&!(a6==1)))){ + a15 = 0; + a18 = 1; + a12 = 10; + a6 = 1; + a22 = 0; + return -1; + } else if(((!(a5==1)&&((a4==1)&&((a12==11)&&((!(a15==1)&&((a20==1)&&((input==5)&&((!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4)))||(((a6==1)&&((a3==8)&&((a18==1)&&!(a22==1))))||(((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1)))))))&&!(a27==1)))))&&!(a0==1))){ + a0 = 1; + a18 = 0; + a6 = 1; + a22 = 0; + a12 = 12; + a3 = 6; + return -1; + } else if(((a4==1)&&((a5==1)&&((((a15==1)&&(((a6==1)&&(!(a27==1)&&(((input==4)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&(a0==1))))&&(a20==1)))&&(a12==12))&&(a3==5))))){ + a3 = 6; + a0 = 0; + a18 = 0; + a22 = 0; + a27 = 1; + a6 = 0; + return -1; + } else if((!(a22==1)&&(((!(a6==1)&&((!(a0==1)&&((a18==1)&&((!(a15==1)&&(((a3==6)&&(input==3))&&(a20==1)))&&(a12==10))))&&!(a27==1)))&&!(a4==1))&&!(a5==1)))){ + a18 = 0; + a27 = 1; + a3 = 5; + a15 = 1; + return -1; + } else if((((((!(a4==1)&&(!(a6==1)&&((a12==9)&&((a5==1)&&(!(a27==1)&&((input==5)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))))))&&(a20==1))&&(a0==1))&&!(a15==1))&&(a3==5))){ + a22 = 0; + a12 = 12; + a6 = 1; + a27 = 1; + a18 = 1; + return 21; + } else if((((a5==1)&&((a0==1)&&(!(a6==1)&&((((!(a15==1)&&((input==2)&&(((a3==7)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6))))))&&(a27==1))&&(a4==1))&&(a20==1)))))&&(a12==8))){ + a18 = 0; + a22 = 0; + a4 = 0; + a5 = 0; + a3 = 4; + return 21; + } else if(((a12==11)&&(((a5==1)&&(((a0==1)&&((!(a15==1)&&((a3==5)&&((a20==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==3)))))&&!(a6==1)))&&!(a4==1)))&&!(a27==1)))){ + a4 = 1; + a18 = 0; + a22 = 0; + a12 = 10; + a3 = 4; + a27 = 1; + return 24; + } else if(((((a12==11)&&((a20==1)&&(!(a6==1)&&((!(a15==1)&&(!(a22==1)&&(((a3==7)&&((input==6)&&((a18==1)||!(a18==1))))&&(a0==1))))&&(a27==1)))))&&(a5==1))&&!(a4==1))){ + if((a4==1)){ + a18 = 1; + a0 = 0; + a4 = 1; + a3 = 6; + }else{ + a4 = 1; + a27 = 0; + a6 = 1; + a18 = 0; + a3 = 6; + } + return 21; + } else if((!(a6==1)&&((a3==8)&&(!(a4==1)&&((a5==1)&&(((a27==1)&&((((a0==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==3)))&&(a15==1))&&(a20==1)))&&(a12==11))))))){ + a18 = 0; + a15 = 0; + a4 = 1; + a12 = 10; + a22 = 1; + return -1; + } else if((((a20==1)&&(!(a0==1)&&((a4==1)&&((a5==1)&&((a3==6)&&((!(a6==1)&&((a12==8)&&(((input==3)&&((a18==1)||!(a18==1)))&&!(a15==1))))&&!(a27==1)))))))&&!(a22==1))){ + a0 = 1; + a3 = 4; + a15 = 1; + a6 = 1; + a27 = 1; + a18 = 0; + return 21; + } else if((!(a0==1)&&((((a15==1)&&((((((input==6)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a18==1)&&(a22==1)))))&&!(a4==1))&&(a20==1))&&!(a27==1))&&(a12==8)))&&!(a6==1))&&(a5==1)))){ + a27 = 1; + a18 = 1; + a6 = 1; + a22 = 0; + a3 = 8; + a0 = 1; + return 21; + } else if(((a12==8)&&(((a20==1)&&(!(a6==1)&&(((!(a27==1)&&((a18==1)&&(!(a4==1)&&((a5==1)&&((input==3)&&(a22==1))))))&&!(a0==1))&&(a15==1))))&&(a3==4)))){ + a6 = 1; + a15 = 0; + a12 = 9; + a0 = 1; + a5 = 0; + a18 = 0; + return -1; + } else if(((!(a0==1)&&(!(a18==1)&&(((a22==1)&&(((((!(a15==1)&&((input==5)&&(a27==1)))&&(a4==1))&&(a3==4))&&(a12==10))&&(a20==1)))&&!(a5==1))))&&(a6==1))){ + a18 = 1; + a27 = 0; + a3 = 7; + a22 = 0; + a4 = 0; + a0 = 1; + a15 = 1; + a6 = 0; + return 21; + } else if(((((((!(a4==1)&&(((a20==1)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==5))&&(a12==9)))&&(a5==1)))&&!(a0==1))&&(a3==7))&&!(a27==1))&&!(a15==1))&&!(a6==1))){ + a18 = 1; + a6 = 1; + a15 = 1; + a0 = 1; + a12 = 8; + a22 = 1; + a4 = 1; + a27 = 1; + return -1; + } else if(((((a5==1)&&((!(a22==1)&&(!(a15==1)&&((a0==1)&&((a12==11)&&((a20==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a3==6)))))))&&(a27==1)))&&(a6==1))&&!(a4==1))){ + a3 = 4; + a12 = 8; + a22 = 1; + a15 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if((!(a5==1)&&(!(a4==1)&&((!(a27==1)&&(!(a22==1)&&((a20==1)&&((((a12==9)&&((((a18==1)||!(a18==1))&&(input==6))&&(a6==1)))&&!(a15==1))&&!(a0==1)))))&&(a3==8))))){ + a15 = 1; + a18 = 0; + a0 = 1; + a12 = 8; + a27 = 1; + a5 = 1; + a3 = 7; + return 21; + } else if((((a4==1)&&((a12==9)&&((a27==1)&&(((!(a5==1)&&(((((a3==7)&&(input==2))&&(a18==1))&&(a20==1))&&(a6==1)))&&(a15==1))&&!(a22==1)))))&&(a0==1))){ + a5 = 1; + a6 = 0; + a18 = 0; + a12 = 11; + a22 = 1; + return 21; + } else if(((a20==1)&&(((a0==1)&&((a3==7)&&(!(a6==1)&&((!(a27==1)&&((((a22==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a15==1))&&(a5==1)))&&(a12==11)))))&&(a4==1)))){ + a18 = 0; + a3 = 6; + a22 = 0; + a27 = 1; + a12 = 10; + a5 = 0; + a0 = 0; + return 26; + } else if(((a0==1)&&((((a15==1)&&(((a12==8)&&((a20==1)&&(((a6==1)&&((((a18==1)||!(a18==1))&&(input==6))&&(a3==6)))&&(a5==1))))&&!(a27==1)))&&(a4==1))&&(a22==1)))){ + a3 = 4; + a18 = 1; + a27 = 1; + return -1; + } else if(((a20==1)&&(!(a5==1)&&(((!(a27==1)&&((((a12==9)&&(((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a0==1)))&&(a4==1))&&(a3==4)))&&(a15==1))&&!(a6==1))))){ + a12 = 10; + a22 = 1; + a18 = 0; + a3 = 6; + a6 = 1; + return 21; + } else if((!(a6==1)&&((a27==1)&&(!(a15==1)&&((a0==1)&&((!(a22==1)&&((a20==1)&&((a12==10)&&(!(a4==1)&&(((a3==5)&&(input==6))&&!(a5==1))))))&&!(a18==1))))))){ + a18 = 1; + a6 = 1; + a3 = 6; + return -1; + } else if(((a20==1)&&(!(a0==1)&&(!(a4==1)&&((a3==4)&&(((((a27==1)&&(!(a15==1)&&((input==2)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))))&&(a12==10))&&(a5==1))&&(a6==1))))))){ + a12 = 12; + a4 = 1; + a22 = 1; + a18 = 0; + a3 = 5; + a0 = 1; + a15 = 1; + return 21; + } else if((((((a22==1)&&(!(a4==1)&&(!(a5==1)&&(!(a27==1)&&(((a18==1)&&((a20==1)&&((a15==1)&&(input==2))))&&(a3==4))))))&&!(a6==1))&&!(a0==1))&&(a12==9))){ + a12 = 8; + a27 = 1; + a0 = 1; + a5 = 1; + a18 = 0; + a6 = 1; + return -1; + } else if(((((a5==1)&&((!(a6==1)&&((a27==1)&&((((input==6)&&((((a22==1)&&(a18==1))&&(a3==7))||(((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1))))))&&(a0==1))&&(a12==10))))&&(a20==1)))&&(a15==1))&&!(a4==1))){ + a4 = 1; + a3 = 4; + a6 = 1; + a22 = 0; + a18 = 1; + return -1; + } else if(((a20==1)&&((a12==8)&&((a27==1)&&((a15==1)&&(((!(a4==1)&&(!(a0==1)&&((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==2))))&&!(a5==1))&&!(a6==1))))))){ + a18 = 1; + a12 = 12; + a4 = 1; + a15 = 0; + a22 = 0; + a0 = 1; + a3 = 7; + return -1; + } else if((!(a0==1)&&((a20==1)&&((((!(a27==1)&&((a3==6)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2))&&(a15==1))&&(a4==1))))&&(a6==1))&&!(a5==1))&&(a12==8))))){ + a3 = 5; + a4 = 0; + a12 = 9; + a18 = 1; + a27 = 1; + a5 = 1; + a22 = 1; + return -1; + } else if((((a5==1)&&((a27==1)&&(((a20==1)&&(((a12==12)&&((((input==6)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&(a3==8))&&!(a15==1)))&&(a6==1)))&&(a0==1))))&&(a4==1))){ + a27 = 0; + a22 = 1; + a5 = 0; + a3 = 5; + a4 = 0; + a18 = 0; + return 24; + } else if(((!(a6==1)&&(!(a0==1)&&(((a3==8)&&((a15==1)&&((((a20==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&!(a22==1)))&&(a5==1))&&(a12==11))))&&!(a27==1))))&&!(a4==1))){ + if((a4==1)){ + a27 = 1; + a12 = 8; + a18 = 1; + a6 = 1; + a0 = 1; + }else{ + a18 = 0; + a0 = 1; + a3 = 5; + a22 = 1; + a4 = 1; + a6 = 1; + a27 = 1; + a12 = 8; + } + return -1; + } else if(((a6==1)&&(!(a5==1)&&((((a4==1)&&((a12==9)&&((a27==1)&&(((input==5)&&((((a22==1)&&!(a18==1))&&(a3==5))||(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))))&&(a20==1)))))&&(a15==1))&&!(a0==1))))){ + a5 = 1; + a0 = 1; + a22 = 1; + a12 = 10; + a3 = 5; + a18 = 1; + a6 = 0; + return -1; + } else if(((!(a22==1)&&((a4==1)&&((a12==9)&&((!(a0==1)&&((!(a5==1)&&((!(a6==1)&&((input==4)&&((a18==1)||!(a18==1))))&&(a15==1)))&&(a3==6)))&&(a20==1)))))&&!(a27==1))){ + if((a27==1)){ + a6 = 1; + a27 = 1; + a15 = 0; + a0 = 1; + a18 = 1; + }else{ + a0 = 1; + a6 = 1; + a18 = 1; + a5 = 1; + a12 = 8; + a27 = 1; + } + return 24; + } else if(((a0==1)&&((a4==1)&&((a15==1)&&((a22==1)&&((a27==1)&&(((!(a6==1)&&(!(a18==1)&&(!(a5==1)&&((input==2)&&(a3==6)))))&&(a12==12))&&(a20==1)))))))){ + a6 = 1; + a15 = 0; + a3 = 5; + a22 = 0; + a18 = 1; + a4 = 0; + a5 = 1; + return 21; + } else if(((a0==1)&&((a22==1)&&(((((!(a27==1)&&((a3==6)&&(!(a5==1)&&((a15==1)&&((input==1)&&!(a4==1))))))&&(a18==1))&&!(a6==1))&&(a20==1))&&(a12==12))))){ + a12 = 8; + a3 = 4; + a4 = 1; + a5 = 1; + a6 = 1; + a27 = 1; + return -1; + } else if(((a12==11)&&(!(a6==1)&&(((((a27==1)&&((a20==1)&&(!(a22==1)&&((a4==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a0==1))))))&&!(a5==1))&&(a3==5))&&(a15==1))))){ + a4 = 0; + a27 = 0; + a3 = 7; + a15 = 0; + a5 = 1; + a18 = 1; + a6 = 1; + return 21; + } else if(((a20==1)&&(((((a15==1)&&(((!(a5==1)&&((input==2)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5)))))&&!(a27==1))&&(a6==1)))&&(a0==1))&&(a12==11))&&(a4==1)))){ + a22 = 1; + a18 = 1; + a3 = 8; + a12 = 12; + a5 = 1; + a27 = 1; + a6 = 0; + a0 = 0; + return -1; + } else if(((a20==1)&&((a4==1)&&(((a12==11)&&(((a6==1)&&((((((a3==6)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1)))))&&(input==1))&&(a0==1))&&(a5==1)))&&!(a27==1)))&&(a15==1))))){ + a22 = 1; + a12 = 8; + a27 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((((a20==1)&&(((((a15==1)&&((((a0==1)&&(!(a22==1)&&(((a18==1)||!(a18==1))&&(input==6))))&&(a12==11))&&!(a5==1)))&&!(a6==1))&&(a27==1))&&(a3==7)))&&!(a4==1))){ + a6 = 1; + a18 = 0; + a27 = 0; + a3 = 4; + return 26; + } else if((!(a5==1)&&(!(a27==1)&&(((((a3==4)&&((a6==1)&&((a4==1)&&(((a12==10)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a0==1)))))&&(a22==1))&&!(a15==1))&&(a20==1))))){ + a3 = 7; + a22 = 0; + a18 = 0; + a27 = 1; + a15 = 1; + a4 = 0; + return 21; + } else if(((a20==1)&&((a5==1)&&((a12==11)&&((((a27==1)&&(((((input==6)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a6==1))&&(a15==1))&&(a4==1)))&&!(a0==1))&&(a3==5)))))){ + a22 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a0 = 1; + return -1; + } else if(((a20==1)&&((!(a5==1)&&(((a0==1)&&((((input==4)&&((((((a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1)))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4)))))&&!(a15==1))&&(a12==10)))&&!(a4==1)))&&(a27==1)))){ + a18 = 0; + a3 = 8; + a12 = 11; + a22 = 1; + a6 = 1; + return 21; + } else if((((a12==10)&&((((((((!(a6==1)&&((a3==4)&&((a22==1)&&!(a18==1))))||(((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4)))))&&(input==4))&&(a15==1))&&!(a27==1))&&(a5==1))&&(a4==1))&&(a0==1)))&&(a20==1))){ + a18 = 1; + a6 = 1; + a27 = 1; + a3 = 4; + a22 = 0; + a12 = 12; + a5 = 0; + return 26; + } else if(((((a20==1)&&((((a0==1)&&((a3==8)&&((!(a27==1)&&((((a18==1)||!(a18==1))&&(input==2))&&(a22==1)))&&(a12==12))))&&(a6==1))&&!(a5==1)))&&(a15==1))&&(a4==1))){ + a3 = 7; + a18 = 0; + a5 = 1; + a15 = 0; + a6 = 0; + a27 = 1; + return 26; + } else if(((!(a4==1)&&(((((a15==1)&&((((((a3==8)&&((a22==1)&&(a18==1)))||(((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==7))))&&(input==2))&&(a27==1))&&!(a5==1)))&&(a12==9))&&(a0==1))&&!(a6==1)))&&(a20==1))){ + a4 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + a18 = 1; + a22 = 1; + a6 = 1; + return -1; + } else if(((!(a15==1)&&((!(a5==1)&&((!(a0==1)&&((a6==1)&&(((((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==5))&&(a20==1))))&&(a4==1)))&&(a27==1)))&&(a12==12))){ + a3 = 5; + a18 = 1; + a22 = 1; + a12 = 9; + a5 = 1; + a27 = 0; + a4 = 0; + return 26; + } else if(((a6==1)&&((!(a22==1)&&((!(a4==1)&&(((!(a15==1)&&((a3==8)&&((a5==1)&&(((a18==1)||!(a18==1))&&(input==1)))))&&(a20==1))&&(a27==1)))&&(a0==1)))&&(a12==12)))){ + a4 = 1; + a18 = 1; + a12 = 10; + return -1; + } else if(((((a27==1)&&((!(a0==1)&&((a12==8)&&((!(a15==1)&&((input==5)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))))&&!(a6==1))))&&!(a5==1)))&&(a20==1))&&!(a4==1))){ + a6 = 1; + a27 = 0; + a18 = 0; + a22 = 1; + a15 = 1; + a0 = 1; + a5 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((((a22==1)&&((a5==1)&&((a20==1)&&(((a3==8)&&(((((a12==9)&&(input==5))&&(a18==1))&&!(a4==1))&&(a0==1)))&&(a6==1)))))&&(a15==1))&&!(a27==1))){ + a15 = 0; + a27 = 1; + a3 = 4; + a22 = 0; + a12 = 12; + return 21; + } else if(((a3==5)&&(((((((a5==1)&&((a20==1)&&((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==3))&&(a12==10))))&&(a27==1))&&(a0==1))&&(a15==1))&&(a4==1))&&!(a6==1)))){ + a6 = 1; + a3 = 7; + a18 = 1; + a22 = 1; + a5 = 0; + return 26; + } else if((!(a18==1)&&((!(a0==1)&&((a12==11)&&(!(a27==1)&&((a20==1)&&(((a3==7)&&(!(a6==1)&&((!(a22==1)&&(input==6))&&!(a5==1))))&&!(a4==1))))))&&!(a15==1)))){ + a0 = 1; + a15 = 1; + a27 = 1; + a12 = 8; + a4 = 1; + a6 = 1; + a5 = 1; + a3 = 8; + return 26; + } else if(((a20==1)&&((a15==1)&&((a0==1)&&((a3==7)&&((((a12==8)&&(!(a5==1)&&((!(a27==1)&&(!(a22==1)&&(input==4)))&&!(a6==1))))&&!(a18==1))&&(a4==1))))))){ + a27 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + a5 = 1; + a6 = 1; + return -1; + } else if((((a4==1)&&(!(a6==1)&&(((!(a27==1)&&(!(a5==1)&&(((!(a18==1)&&((a20==1)&&(input==6)))&&(a12==12))&&(a22==1))))&&(a15==1))&&(a0==1))))&&(a3==8))){ + a22 = 0; + a4 = 0; + a3 = 7; + a6 = 1; + a15 = 0; + a5 = 1; + a27 = 1; + return 21; + } else if(((((a12==8)&&(((a18==1)&&((a5==1)&&((a20==1)&&((a3==5)&&(((a4==1)&&((a27==1)&&(input==1)))&&!(a15==1))))))&&!(a0==1)))&&!(a6==1))&&(a22==1))){ + a12 = 10; + a3 = 4; + a0 = 1; + a27 = 0; + a5 = 0; + a4 = 0; + a18 = 0; + a22 = 0; + return 26; + } else if((((((a12==8)&&((a0==1)&&((a3==4)&&((a6==1)&&((!(a27==1)&&((input==3)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a4==1))))))&&(a15==1))&&!(a5==1))&&(a20==1))){ + a12 = 10; + a18 = 0; + a3 = 6; + a4 = 1; + a5 = 1; + a22 = 1; + return 21; + } else if(((!(a27==1)&&((a4==1)&&((((a12==11)&&((((((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||(!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1)))))||(!(a6==1)&&((!(a18==1)&&(a22==1))&&(a3==4))))&&(input==4))&&!(a5==1)))&&(a15==1))&&(a20==1))))&&!(a0==1))){ + a6 = 1; + a5 = 1; + a18 = 0; + a12 = 10; + a22 = 0; + a27 = 1; + a3 = 6; + a0 = 1; + return 26; + } else if(((a15==1)&&(((((!(a18==1)&&((!(a27==1)&&((a0==1)&&(((a20==1)&&(input==5))&&(a3==4))))&&(a12==9)))&&!(a4==1))&&(a22==1))&&(a5==1))&&(a6==1)))){ + a18 = 1; + a12 = 11; + a0 = 0; + a27 = 1; + a3 = 6; + a15 = 0; + return 21; + } else if(((!(a27==1)&&((a5==1)&&((a0==1)&&((((((!(a22==1)&&((input==2)&&!(a15==1)))&&(a6==1))&&(a18==1))&&(a3==6))&&(a4==1))&&(a12==12)))))&&(a20==1))){ + a27 = 1; + a6 = 0; + a22 = 1; + a4 = 0; + a3 = 8; + a12 = 11; + return 21; + } else if(((a0==1)&&(!(a15==1)&&(((a6==1)&&((a3==6)&&((a12==9)&&(((a4==1)&&(((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a5==1)))&&(a20==1)))))&&!(a27==1))))){ + a15 = 1; + a3 = 7; + a22 = 1; + a18 = 0; + a4 = 0; + return -1; + } else if((((((a3==4)&&(!(a15==1)&&((a27==1)&&(!(a4==1)&&((a12==8)&&((a20==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==2))))))))&&!(a6==1))&&(a0==1))&&!(a5==1))){ + a5 = 1; + a18 = 1; + a12 = 11; + a3 = 8; + a22 = 0; + return 26; + } else if((!(a22==1)&&(((a12==8)&&((!(a0==1)&&((a6==1)&&(((a5==1)&&(((a20==1)&&((a27==1)&&(input==1)))&&(a18==1)))&&(a3==8))))&&(a15==1)))&&!(a4==1)))){ + a3 = 6; + a12 = 11; + a0 = 1; + a18 = 0; + a15 = 0; + return 26; + } else if((((((a27==1)&&((a3==4)&&((a12==8)&&((a4==1)&&(!(a6==1)&&((a20==1)&&((input==6)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))))))))&&(a5==1))&&!(a0==1))&&(a15==1))){ + a0 = 1; + a22 = 1; + a6 = 1; + a18 = 1; + return -1; + } else if(((a4==1)&&((a0==1)&&((a12==12)&&((!(a5==1)&&((!(a27==1)&&((a20==1)&&((a3==7)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==3)))))&&(a15==1)))&&(a6==1)))))){ + a6 = 0; + a27 = 1; + a12 = 11; + a22 = 0; + a4 = 0; + a15 = 0; + a3 = 8; + a5 = 1; + a18 = 1; + return 21; + } else if(((((a20==1)&&((a6==1)&&(!(a15==1)&&((a4==1)&&((((input==1)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1)))))&&!(a27==1))&&(a12==10))))))&&(a0==1))&&!(a5==1))){ + a27 = 1; + a3 = 4; + a22 = 1; + a15 = 1; + a5 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if((!(a5==1)&&((a12==9)&&((a20==1)&&((a3==7)&&(!(a0==1)&&((a6==1)&&((!(a27==1)&&(((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==5))&&!(a15==1)))&&(a4==1))))))))){ + if((a6==1)){ + a18 = 0; + a5 = 1; + a3 = 4; + a0 = 1; + a12 = 8; + a22 = 1; + a27 = 1; + a15 = 1; + }else{ + a3 = 4; + a12 = 8; + a5 = 1; + a22 = 1; + a0 = 1; + a27 = 1; + a15 = 1; + a6 = 0; + a18 = 1; + } + return -1; + } else if((((a20==1)&&((a0==1)&&(!(a5==1)&&((a12==12)&&((input==6)&&(((!(a6==1)&&((a3==8)&&(!(a4==1)&&((!(a22==1)&&!(a18==1))&&(a15==1)))))||(((a3==4)&&((!(a15==1)&&((a18==1)&&(a22==1)))&&(a4==1)))&&(a6==1)))||((a6==1)&&(((a4==1)&&((!(a18==1)&&(a22==1))&&!(a15==1)))&&(a3==4)))))))))&&(a27==1))){ + a3 = 8; + a22 = 0; + a18 = 1; + a15 = 0; + a6 = 1; + a4 = 1; + return 26; + } else if(((!(a5==1)&&(((((a22==1)&&((!(a6==1)&&(((a27==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a4==1)))&&(a3==4)))&&(a15==1))&&(a12==12))&&(a20==1)))&&!(a0==1))){ + a0 = 1; + a3 = 8; + a27 = 0; + a18 = 0; + return -1; + } else if(((a20==1)&&((a0==1)&&((((!(a27==1)&&(((((a3==5)&&((a15==1)&&(input==3)))&&!(a18==1))&&!(a22==1))&&(a4==1)))&&(a12==8))&&(a6==1))&&(a5==1))))){ + a22 = 1; + a27 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a5==1)&&(((((((a20==1)&&((a22==1)&&((((input==5)&&((a18==1)||!(a18==1)))&&!(a6==1))&&!(a4==1))))&&(a3==4))&&(a15==1))&&(a27==1))&&(a12==10))&&(a0==1)))){ + a18 = 1; + a12 = 8; + a6 = 1; + a4 = 1; + return -1; + } else if(((a4==1)&&((a15==1)&&((a0==1)&&(((((a20==1)&&((input==4)&&((((a6==1)&&((a3==8)&&(!(a22==1)&&(a18==1))))||((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8))))||(!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1)))))))&&(a27==1))&&(a12==11))&&(a5==1)))))){ + a22 = 1; + a3 = 4; + a18 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if(((((((((((((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4))))||(((!(a18==1)&&(a22==1))&&(a3==4))&&!(a6==1)))&&(input==6))&&(a0==1))&&!(a5==1))&&(a4==1))&&(a20==1))&&(a15==1))&&(a12==9))&&(a27==1))){ + a22 = 0; + a12 = 10; + a6 = 1; + a3 = 4; + a18 = 0; + a4 = 0; + return 26; + } else if((((((!(a4==1)&&((a15==1)&&((((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==6))&&!(a27==1))&&(a12==8))))&&!(a5==1))&&(a20==1))&&!(a6==1))&&(a0==1))){ + a27 = 1; + a12 = 11; + a6 = 1; + a18 = 0; + a22 = 1; + a4 = 1; + a5 = 1; + a3 = 6; + a15 = 0; + return 26; + } else if((((((((a18==1)&&(!(a22==1)&&(((a15==1)&&(((input==3)&&!(a6==1))&&!(a0==1)))&&!(a5==1))))&&(a27==1))&&(a20==1))&&(a4==1))&&(a12==11))&&(a3==4))){ + a12 = 10; + a3 = 6; + a4 = 0; + a0 = 1; + a22 = 1; + return 21; + } else if(((a15==1)&&(((a3==5)&&(((a5==1)&&(((a22==1)&&(!(a4==1)&&(((a12==11)&&((a20==1)&&(input==6)))&&(a6==1))))&&!(a18==1)))&&(a0==1)))&&!(a27==1)))){ + a4 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a27 = 1; + return -1; + } else if(((((a20==1)&&(!(a4==1)&&((a27==1)&&(((((input==4)&&(((a3==6)&&((a22==1)&&(a18==1)))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a18==1)&&!(a22==1))))))&&(a12==11))&&!(a5==1))&&!(a0==1)))))&&(a6==1))&&!(a15==1))){ + a3 = 4; + a18 = 1; + a6 = 0; + a12 = 10; + a22 = 0; + a5 = 1; + a27 = 0; + a0 = 1; + return 21; + } else if(((((a12==9)&&((((!(a5==1)&&((a0==1)&&((input==5)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==7))))))&&!(a27==1))&&!(a4==1))&&(a6==1)))&&!(a15==1))&&(a20==1))){ + a5 = 1; + a15 = 1; + a18 = 1; + a22 = 1; + a4 = 1; + a12 = 8; + a3 = 4; + a27 = 1; + return -1; + } else if((((!(a4==1)&&(((a15==1)&&(((a6==1)&&((((input==2)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&!(a5==1))&&(a3==4)))&&!(a0==1)))&&!(a27==1)))&&(a20==1))&&(a12==11))){ + if((a18==1)){ + a4 = 1; + a6 = 0; + a22 = 0; + a3 = 6; + a18 = 1; + }else{ + a27 = 1; + a22 = 0; + a18 = 0; + a12 = 9; + a5 = 1; + a3 = 6; + } + return -1; + } else if((!(a6==1)&&((a12==8)&&((!(a0==1)&&((a27==1)&&((((a20==1)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==1)))&&!(a4==1))&&(a5==1))))&&(a15==1))))){ + a15 = 0; + a3 = 8; + a18 = 1; + a6 = 1; + a22 = 1; + a0 = 1; + a12 = 11; + return 21; + } else if(((a3==6)&&((a12==11)&&(((a6==1)&&((!(a27==1)&&((a5==1)&&((!(a0==1)&&((input==2)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a15==1))))&&!(a4==1)))&&(a20==1))))){ + a15 = 0; + a12 = 10; + a22 = 0; + a3 = 7; + a18 = 0; + return 26; + } else if((((((a3==7)&&((!(a6==1)&&((a5==1)&&((a12==9)&&((((a20==1)&&(input==2))&&(a15==1))&&!(a27==1)))))&&(a4==1)))&&!(a22==1))&&!(a18==1))&&(a0==1))){ + a4 = 0; + a5 = 0; + a18 = 1; + a22 = 1; + a12 = 10; + a3 = 8; + return 26; + } else if(((a6==1)&&(!(a27==1)&&((a20==1)&&(!(a0==1)&&(((a4==1)&&((a15==1)&&((a5==1)&&((input==6)&&(((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1))))))))&&(a12==8))))))){ + a3 = 7; + a0 = 1; + a18 = 1; + a12 = 10; + a22 = 1; + a27 = 1; + a15 = 0; + return 26; + } else if(((a12==11)&&(((!(a5==1)&&((a0==1)&&(!(a22==1)&&((!(a18==1)&&((a20==1)&&(!(a15==1)&&((input==3)&&(a6==1)))))&&(a3==8)))))&&!(a4==1))&&!(a27==1)))){ + a3 = 7; + a18 = 1; + a27 = 1; + a5 = 1; + a12 = 12; + a22 = 1; + return 21; + } else if(((!(a4==1)&&((a20==1)&&(((((a6==1)&&(!(a5==1)&&((input==5)&&((((!(a22==1)&&(a18==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))||((a3==7)&&((a22==1)&&(a18==1)))))))&&(a12==9))&&!(a27==1))&&(a0==1))))&&(a15==1))){ + a6 = 0; + a4 = 1; + a12 = 11; + a18 = 1; + a3 = 6; + a22 = 1; + a27 = 1; + return 24; + } return calculate_output5(input); + } + + int calculate_output5(int input) { + if(((!(a5==1)&&((a22==1)&&((a0==1)&&((a12==12)&&((a6==1)&&((a3==8)&&((a15==1)&&(((((a18==1)||!(a18==1))&&(input==5))&&!(a4==1))&&(a27==1)))))))))&&(a20==1))){ + a18 = 1; + a5 = 1; + a4 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((!(a6==1)&&(((a4==1)&&(((a12==11)&&(((!(a18==1)&&((a20==1)&&((a3==8)&&(!(a15==1)&&(input==6)))))&&!(a0==1))&&(a27==1)))&&(a5==1)))&&(a22==1)))){ + a22 = 0; + a4 = 0; + a12 = 10; + a0 = 1; + a18 = 1; + return -1; + } else if(((a4==1)&&(((a5==1)&&(((a12==12)&&(((((input==5)&&((((a18==1)&&(a22==1))&&(a3==6))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))))&&(a15==1))&&(a20==1))&&!(a0==1)))&&(a27==1)))&&(a6==1)))){ + a22 = 0; + a3 = 6; + a0 = 1; + a12 = 11; + a18 = 1; + a4 = 0; + return 21; + } else if(((a18==1)&&((((a5==1)&&((((((a3==5)&&(((input==4)&&(a0==1))&&!(a4==1)))&&(a22==1))&&(a6==1))&&(a20==1))&&(a27==1)))&&!(a15==1))&&(a12==9)))){ + a4 = 1; + a3 = 4; + a15 = 1; + a12 = 8; + return -1; + } else if((((!(a22==1)&&((a3==5)&&(((a20==1)&&((a15==1)&&((((a5==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a4==1))&&(a12==11))))&&(a6==1))))&&(a0==1))&&(a27==1))){ + a12 = 8; + a18 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((((a0==1)&&(((((a15==1)&&(!(a5==1)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==6))))&&!(a27==1))&&!(a6==1))&&(a20==1)))&&(a4==1))&&(a12==9))){ + a3 = 4; + a18 = 1; + a6 = 1; + a27 = 1; + a5 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if((((a20==1)&&((a4==1)&&(((!(a6==1)&&(((a18==1)&&((!(a0==1)&&((input==4)&&!(a22==1)))&&!(a15==1)))&&!(a27==1)))&&(a12==11))&&(a5==1))))&&(a3==8))){ + a12 = 8; + a22 = 1; + a6 = 1; + a27 = 1; + a0 = 1; + a15 = 1; + return 26; + } else if(((a5==1)&&(((a6==1)&&(!(a15==1)&&(((a12==11)&&(!(a27==1)&&((a4==1)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==5)))))&&!(a0==1))))&&(a20==1)))){ + if((a0==1)){ + a18 = 1; + a12 = 8; + a22 = 1; + a3 = 6; + a27 = 1; + a0 = 1; + a4 = 0; + a15 = 1; + }else{ + a0 = 1; + a4 = 0; + a12 = 8; + a18 = 1; + a3 = 8; + a22 = 0; + a27 = 1; + a15 = 1; + } + return -1; + } else if((((a0==1)&&((a6==1)&&((a12==12)&&((((a5==1)&&((a20==1)&&((input==2)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1)))))))&&!(a4==1))&&(a15==1)))))&&(a27==1))){ + a12 = 9; + a3 = 5; + a22 = 0; + a0 = 0; + a18 = 0; + return -1; + } else if(((a27==1)&&(!(a0==1)&&(((a12==9)&&((a22==1)&&((a18==1)&&(((a4==1)&&((((a20==1)&&(input==3))&&(a3==6))&&(a6==1)))&&(a5==1)))))&&!(a15==1))))){ + a6 = 0; + a0 = 1; + a3 = 5; + a12 = 11; + a22 = 0; + return 21; + } else if((!(a27==1)&&((a3==7)&&((a6==1)&&((a0==1)&&((a5==1)&&((a20==1)&&(!(a22==1)&&((((a18==1)&&((a12==9)&&(input==5)))&&(a4==1))&&(a15==1)))))))))){ + a3 = 4; + a12 = 8; + a27 = 1; + a22 = 1; + return -1; + } else if(((a20==1)&&(!(a5==1)&&(!(a15==1)&&(!(a22==1)&&((a3==4)&&(!(a0==1)&&((a6==1)&&(((a27==1)&&((a12==8)&&(((a18==1)||!(a18==1))&&(input==5))))&&!(a4==1)))))))))){ + a18 = 1; + a15 = 1; + a22 = 1; + a0 = 1; + a5 = 1; + a4 = 1; + return -1; + } else if(((!(a0==1)&&(((a20==1)&&((((a22==1)&&((!(a6==1)&&((a18==1)&&((a4==1)&&(input==5))))&&(a15==1)))&&(a3==7))&&!(a27==1)))&&(a5==1)))&&(a12==10))){ + if((a18==1)){ + a0 = 1; + a4 = 0; + a12 = 9; + a27 = 1; + a3 = 6; + a5 = 0; + a18 = 0; + }else{ + a3 = 5; + a6 = 1; + a22 = 0; + a12 = 8; + a0 = 1; + } + return -1; + } else if((!(a22==1)&&((a20==1)&&(((a3==5)&&(!(a5==1)&&((!(a0==1)&&(((!(a6==1)&&((input==4)&&((a18==1)||!(a18==1))))&&(a12==8))&&(a4==1)))&&(a27==1))))&&!(a15==1))))){ + a18 = 0; + a3 = 7; + a0 = 1; + a12 = 12; + a5 = 1; + a6 = 1; + return 24; + } else if((!(a0==1)&&(((a12==8)&&(((a15==1)&&((a5==1)&&((a4==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&!(a6==1))&&(a20==1)))))&&!(a27==1)))&&(a3==6)))){ + a4 = 0; + a3 = 8; + a27 = 1; + a18 = 0; + a22 = 1; + a0 = 1; + a6 = 1; + return 21; + } else if(((!(a6==1)&&(((a20==1)&&((a12==10)&&((a5==1)&&((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a3==8))&&(a4==1))&&!(a15==1)))))&&(a0==1)))&&!(a27==1))){ + a22 = 1; + a6 = 1; + a27 = 1; + a15 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((((!(a15==1)&&(((((((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6)))||((a3==6)&&(!(a18==1)&&(a22==1))))&&(input==2))&&(a20==1))&&!(a0==1))&&!(a27==1))&&(a12==9)))&&(a5==1))&&!(a4==1))&&(a6==1))){ + if((a22==1)){ + a15 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + a0 = 1; + a6 = 0; + a27 = 1; + }else{ + a12 = 11; + a0 = 1; + a18 = 1; + a3 = 8; + a22 = 1; + a5 = 0; + a6 = 0; + a27 = 1; + a15 = 1; + } + return 21; + } else if(((((a20==1)&&(!(a18==1)&&(((((a4==1)&&((a0==1)&&(((a3==8)&&(input==2))&&(a12==11))))&&(a27==1))&&(a5==1))&&(a6==1))))&&(a15==1))&&(a22==1))){ + a12 = 10; + a15 = 0; + a22 = 0; + a5 = 0; + a3 = 6; + a18 = 1; + return -1; + } else if(((a12==8)&&((a3==7)&&((a20==1)&&((a27==1)&&((!(a5==1)&&(((a6==1)&&((a4==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==5))))&&!(a0==1)))&&(a15==1))))))){ + a5 = 1; + a18 = 0; + a4 = 0; + a3 = 5; + a0 = 1; + a22 = 1; + a27 = 0; + a15 = 0; + a12 = 10; + return 21; + } else if(((((a0==1)&&((!(a6==1)&&((a27==1)&&((((((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==1))&&(a4==1))&&(a12==11))))&&(a20==1)))&&(a5==1))&&!(a15==1))){ + a12 = 8; + a3 = 7; + a18 = 1; + a0 = 0; + a22 = 0; + a4 = 0; + a5 = 0; + a15 = 1; + return -1; + } else if((!(a22==1)&&((a27==1)&&(!(a6==1)&&(!(a0==1)&&(!(a4==1)&&(((((a15==1)&&((!(a18==1)&&(input==4))&&(a12==8)))&&!(a5==1))&&(a20==1))&&(a3==7)))))))){ + a3 = 4; + a4 = 1; + a6 = 1; + a0 = 1; + a12 = 11; + a27 = 0; + a22 = 1; + return 26; + } else if(((a12==8)&&(((a20==1)&&((a6==1)&&(!(a0==1)&&(!(a4==1)&&((a27==1)&&(!(a5==1)&&((input==4)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7))))))))))&&!(a15==1)))){ + a18 = 1; + a27 = 0; + a15 = 1; + a6 = 0; + a22 = 0; + a0 = 1; + a3 = 6; + a5 = 1; + return 26; + } else if((!(a27==1)&&(((a15==1)&&((((a0==1)&&((((a12==10)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==1)))&&(a20==1))&&(a5==1)))&&(a6==1))&&(a3==7)))&&(a4==1)))){ + a4 = 0; + a6 = 0; + a15 = 0; + a5 = 0; + a3 = 5; + a18 = 0; + a27 = 1; + a22 = 0; + return -1; + } else if(((((!(a15==1)&&(((!(a0==1)&&((a27==1)&&((input==6)&&((((a18==1)&&(a22==1))&&(a3==7))||(((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a22==1)&&!(a18==1))))))))&&(a6==1))&&!(a4==1)))&&!(a5==1))&&(a12==10))&&(a20==1))){ + a15 = 1; + a6 = 0; + a3 = 8; + a0 = 1; + a18 = 0; + a22 = 0; + a4 = 1; + return 26; + } else if(((a3==5)&&((a4==1)&&((((a0==1)&&((a27==1)&&(((a5==1)&&(((a12==9)&&(!(a22==1)&&(input==5)))&&(a20==1)))&&!(a15==1))))&&!(a6==1))&&(a18==1))))){ + if((a6==1)){ + a15 = 1; + a0 = 0; + a18 = 0; + a3 = 8; + a12 = 8; + }else{ + a4 = 0; + a18 = 0; + a5 = 0; + a12 = 12; + } + return 24; + } else if((((!(a27==1)&&(((a15==1)&&((a0==1)&&((input==1)&&(((!(a6==1)&&((a3==8)&&((a4==1)&&((a18==1)&&!(a22==1)))))||(!(a6==1)&&(((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8))))||((a6==1)&&((((a22==1)&&(a18==1))&&!(a4==1))&&(a3==4)))))))&&(a20==1)))&&(a12==11))&&!(a5==1))){ + a12 = 10; + a27 = 1; + a0 = 0; + a4 = 0; + a18 = 1; + a22 = 1; + a6 = 0; + a3 = 8; + return -1; + } else if(((!(a0==1)&&(((((a3==6)&&((a20==1)&&(!(a27==1)&&((a22==1)&&(((a4==1)&&(input==3))&&!(a15==1))))))&&(a5==1))&&(a6==1))&&!(a18==1)))&&(a12==9))){ + a15 = 1; + a3 = 4; + a22 = 0; + a0 = 1; + a12 = 8; + a27 = 1; + return -1; + } else if(((((a5==1)&&((((a27==1)&&(((a12==12)&&(((((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))||(((a22==1)&&!(a18==1))&&(a3==7)))&&(input==3)))&&!(a6==1)))&&!(a15==1))&&!(a0==1)))&&!(a4==1))&&(a20==1))){ + a3 = 4; + a6 = 1; + a0 = 1; + a18 = 1; + a12 = 8; + a15 = 1; + a22 = 1; + return 26; + } else if((!(a0==1)&&((a20==1)&&((((a4==1)&&((a5==1)&&(!(a15==1)&&((a12==9)&&((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==5))&&(a27==1))))))&&!(a6==1))&&(a3==6))))){ + a6 = 1; + a4 = 0; + a12 = 11; + a22 = 1; + a18 = 1; + return 21; + } else if(((!(a6==1)&&((((a0==1)&&((a20==1)&&((a18==1)&&((a12==12)&&(((a4==1)&&((a5==1)&&(input==5)))&&!(a22==1))))))&&!(a27==1))&&(a3==8)))&&!(a15==1))){ + a18 = 0; + a5 = 0; + a15 = 1; + a27 = 1; + a3 = 6; + a12 = 10; + return -1; + } else if((((((a0==1)&&((a12==9)&&((((((a3==8)&&(!(a18==1)&&(input==6)))&&(a27==1))&&(a4==1))&&(a20==1))&&(a5==1))))&&(a15==1))&&!(a6==1))&&(a22==1))){ + a15 = 0; + a3 = 7; + a6 = 1; + a12 = 12; + return 24; + } else if(((((a0==1)&&(!(a22==1)&&((a12==12)&&((a3==7)&&((a5==1)&&((a15==1)&&(((a27==1)&&(!(a6==1)&&(input==2)))&&(a4==1))))))))&&(a20==1))&&(a18==1))){ + a22 = 1; + a4 = 0; + a6 = 1; + a0 = 0; + a12 = 11; + a3 = 8; + return -1; + } else if((!(a27==1)&&((a5==1)&&((((a12==9)&&((!(a0==1)&&((a4==1)&&((input==6)&&((((a22==1)&&(a18==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==4)))))))&&(a20==1)))&&(a15==1))&&!(a6==1))))){ + if((a6==1)){ + a27 = 1; + a6 = 1; + a0 = 1; + a22 = 1; + a3 = 6; + a12 = 8; + a18 = 0; + }else{ + a5 = 0; + a18 = 0; + a3 = 5; + a22 = 0; + } + return 21; + } else if((!(a15==1)&&((a4==1)&&(((a22==1)&&(((a0==1)&&(!(a27==1)&&(((a12==11)&&(!(a6==1)&&((input==4)&&((a18==1)||!(a18==1)))))&&(a3==8))))&&(a20==1)))&&(a5==1))))){ + a6 = 1; + a3 = 7; + a5 = 0; + a27 = 1; + a15 = 1; + a4 = 0; + a18 = 0; + return 24; + } else if((!(a15==1)&&((((!(a27==1)&&(!(a5==1)&&((((((!(a18==1)&&(a22==1))&&(a3==7))||(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7))))&&(input==3))&&(a12==11))&&!(a0==1))))&&(a6==1))&&(a20==1))&&!(a4==1)))){ + a27 = 1; + a0 = 1; + a5 = 1; + a18 = 1; + a22 = 0; + a15 = 1; + a4 = 1; + a12 = 8; + a3 = 6; + return -1; + } else if((!(a4==1)&&((a22==1)&&(((a3==4)&&(((((a5==1)&&(((a20==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a12==11)))&&(a0==1))&&(a6==1))&&(a15==1)))&&!(a27==1))))){ + a0 = 0; + a3 = 5; + a4 = 1; + a27 = 1; + a18 = 0; + a15 = 0; + a5 = 0; + a6 = 0; + return -1; + } else if(((!(a0==1)&&((a4==1)&&((a12==8)&&((((a20==1)&&((a5==1)&&((input==1)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7))))))&&(a27==1))&&(a15==1)))))&&(a6==1))){ + a12 = 10; + a3 = 4; + a18 = 0; + a4 = 0; + a5 = 0; + a0 = 1; + a22 = 0; + return 26; + } else if((!(a0==1)&&((((a5==1)&&(((!(a4==1)&&((a12==10)&&((a15==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==3)))))&&(a27==1))&&!(a6==1)))&&(a3==8))&&(a20==1)))){ + a0 = 1; + a12 = 8; + a22 = 1; + a4 = 1; + a6 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a12==12)&&(((a3==7)&&((((a22==1)&&(!(a5==1)&&(((((input==3)&&!(a27==1))&&(a18==1))&&(a15==1))&&!(a4==1))))&&!(a6==1))&&(a0==1)))&&(a20==1)))){ + a6 = 1; + a18 = 0; + a12 = 8; + a22 = 0; + a4 = 1; + a27 = 1; + a5 = 1; + a3 = 6; + a15 = 0; + return -1; + } else if(((a15==1)&&(((a22==1)&&(!(a0==1)&&(((a18==1)&&((a5==1)&&((a20==1)&&(!(a27==1)&&(((input==6)&&(a3==6))&&!(a4==1))))))&&(a12==9))))&&(a6==1)))){ + if((a12==9)){ + a27 = 1; + a0 = 1; + a3 = 4; + a12 = 8; + a4 = 1; + }else{ + a12 = 8; + a27 = 1; + a0 = 1; + a18 = 0; + a22 = 0; + } + return -1; + } else if(((a15==1)&&((a12==8)&&((a0==1)&&(!(a6==1)&&((a27==1)&&(!(a5==1)&&((a20==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==1))&&!(a4==1)))))))))){ + a15 = 0; + a22 = 1; + a3 = 8; + a5 = 1; + a18 = 1; + a12 = 10; + return 21; + } else if((!(a22==1)&&(((a3==6)&&(((!(a6==1)&&((((((input==2)&&((a18==1)||!(a18==1)))&&!(a0==1))&&(a5==1))&&(a20==1))&&!(a15==1)))&&(a4==1))&&(a12==11)))&&(a27==1)))){ + a3 = 4; + a6 = 1; + a0 = 1; + a22 = 1; + a18 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if((!(a5==1)&&(!(a6==1)&&((a20==1)&&(!(a15==1)&&((a0==1)&&((a4==1)&&(((a3==8)&&(!(a27==1)&&((a12==9)&&(((a18==1)||!(a18==1))&&(input==1)))))&&!(a22==1))))))))){ + a6 = 1; + a18 = 0; + a12 = 10; + a3 = 5; + a27 = 1; + a22 = 1; + return 26; + } else if(((((((a4==1)&&(((a20==1)&&((!(a6==1)&&((a3==4)&&(((a18==1)||!(a18==1))&&(input==2))))&&(a12==12)))&&(a0==1)))&&(a5==1))&&!(a15==1))&&!(a27==1))&&(a22==1))){ + a22 = 0; + a6 = 1; + a5 = 0; + a18 = 1; + a12 = 9; + a3 = 6; + return -1; + } else if(((a20==1)&&((((((((a0==1)&&(((((a18==1)&&(a22==1))&&(a3==8))||((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a18==1)&&!(a22==1)))))&&(input==4)))&&(a6==1))&&(a15==1))&&(a4==1))&&(a12==10))&&!(a5==1))&&!(a27==1)))){ + a27 = 1; + a12 = 8; + a22 = 0; + a18 = 1; + a0 = 0; + a3 = 7; + a5 = 1; + a6 = 0; + a15 = 0; + return 26; + } else if((((a20==1)&&((a0==1)&&((((a6==1)&&(!(a5==1)&&((((((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==6)))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==3))&&(a12==9))))&&!(a27==1))&&(a4==1))))&&!(a15==1))){ + a27 = 1; + a3 = 5; + a22 = 1; + a18 = 0; + a5 = 1; + a12 = 12; + a15 = 1; + return 26; + } else if((((a20==1)&&((((a12==12)&&(!(a5==1)&&((a0==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==4))&&(a4==1)))))&&!(a27==1))&&!(a15==1)))&&!(a6==1))){ + a27 = 1; + a22 = 1; + a12 = 11; + a3 = 5; + a18 = 1; + return 24; + } else if(((a12==11)&&((a3==4)&&((((a22==1)&&((((a4==1)&&((a5==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&!(a15==1))))&&(a0==1))&&!(a27==1)))&&!(a6==1))&&(a20==1))))){ + a12 = 10; + a3 = 7; + a18 = 0; + a27 = 1; + return -1; + } else if((!(a18==1)&&((a4==1)&&((a20==1)&&((((!(a5==1)&&(((!(a22==1)&&((input==2)&&(a0==1)))&&(a3==6))&&(a12==11)))&&(a15==1))&&!(a27==1))&&!(a6==1)))))){ + a22 = 1; + a27 = 1; + a15 = 0; + a18 = 1; + a5 = 1; + a4 = 0; + a12 = 12; + return 26; + } else if((((a27==1)&&((a20==1)&&((((a0==1)&&((input==6)&&(((((a3==8)&&((!(a22==1)&&!(a18==1))&&(a4==1)))&&!(a6==1))||((a6==1)&&((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))))||((a6==1)&&((a3==4)&&(!(a4==1)&&(!(a18==1)&&(a22==1))))))))&&(a12==9))&&(a5==1))))&&!(a15==1))){ + a15 = 1; + a5 = 0; + a3 = 6; + a4 = 1; + a18 = 0; + a6 = 1; + a12 = 12; + a22 = 0; + return 21; + } else if((((!(a6==1)&&((((a4==1)&&(!(a15==1)&&(!(a5==1)&&((((input==2)&&((a18==1)||!(a18==1)))&&(a3==5))&&!(a27==1)))))&&(a22==1))&&(a12==11)))&&(a20==1))&&!(a0==1))){ + if((a18==1)){ + a22 = 0; + a18 = 1; + a27 = 1; + a3 = 8; + a5 = 1; + }else{ + a18 = 0; + a5 = 1; + a22 = 0; + a6 = 1; + a12 = 10; + a0 = 1; + a3 = 4; + } + return -1; + } else if(((a20==1)&&(((a27==1)&&(!(a4==1)&&(!(a5==1)&&(!(a6==1)&&(!(a15==1)&&(!(a0==1)&&((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==1))&&(a3==5))))))))&&(a12==10)))){ + a18 = 1; + a4 = 1; + a3 = 7; + a27 = 0; + a22 = 0; + a5 = 1; + a0 = 1; + return 26; + } else if(((a15==1)&&((a27==1)&&((a6==1)&&((((a20==1)&&((a4==1)&&(!(a0==1)&&((input==1)&&((((a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==4))))))))&&(a5==1))&&(a12==9)))))){ + a27 = 0; + a5 = 0; + a22 = 0; + a3 = 4; + a18 = 0; + a0 = 1; + a6 = 0; + return 26; + } else if(((((a22==1)&&((a20==1)&&(((((a6==1)&&(!(a4==1)&&(!(a5==1)&&(((a18==1)||!(a18==1))&&(input==3)))))&&(a12==10))&&!(a0==1))&&!(a27==1))))&&(a3==8))&&(a15==1))){ + if((a22==1)){ + a18 = 0; + a3 = 5; + a22 = 0; + a0 = 1; + a12 = 8; + a5 = 1; + a27 = 1; + }else{ + a0 = 1; + a18 = 1; + a3 = 5; + a22 = 0; + a5 = 1; + a15 = 0; + } + return -1; + } else if(((a3==5)&&(!(a6==1)&&(((!(a5==1)&&(((a20==1)&&(((a4==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a12==12)))&&(a22==1)))&&!(a0==1)))&&(a27==1))&&(a15==1))))){ + a15 = 0; + a0 = 1; + a27 = 0; + a6 = 1; + a3 = 4; + a12 = 9; + a18 = 1; + a22 = 0; + return -1; + } else if((((a12==8)&&(!(a27==1)&&((((((!(a0==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==2)))&&(a20==1))&&(a6==1))&&(a3==6))&&!(a5==1))&&(a15==1))))&&!(a4==1))){ + a4 = 1; + a5 = 1; + a18 = 0; + a0 = 1; + a27 = 1; + a6 = 0; + a3 = 5; + a22 = 1; + return -1; + } else if((!(a5==1)&&(((a20==1)&&((((a4==1)&&((a22==1)&&(((((input==1)&&((a18==1)||!(a18==1)))&&!(a0==1))&&(a3==4))&&!(a15==1))))&&(a12==9))&&!(a27==1)))&&!(a6==1)))){ + a3 = 7; + a12 = 8; + a18 = 1; + a27 = 1; + a4 = 0; + a0 = 1; + return 26; + } else if((((a6==1)&&(!(a5==1)&&(((a12==9)&&((((((a0==1)&&((a22==1)&&(input==4)))&&(a20==1))&&(a15==1))&&!(a4==1))&&(a3==6)))&&!(a18==1))))&&!(a27==1))){ + a27 = 1; + a5 = 1; + a12 = 8; + a3 = 4; + a4 = 1; + a18 = 1; + return -1; + } else if((!(a4==1)&&((!(a15==1)&&((!(a6==1)&&((((a5==1)&&((a3==6)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==5))))&&!(a0==1))&&(a12==10)))&&(a20==1)))&&!(a27==1)))){ + a18 = 1; + a22 = 0; + a6 = 1; + a15 = 1; + a27 = 1; + a0 = 1; + a12 = 8; + return 24; + } else if(((a0==1)&&(((((a5==1)&&((a12==8)&&((((((a3==7)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1)))))&&(input==1))&&(a20==1))&&(a27==1))))&&(a4==1))&&!(a6==1))&&!(a15==1)))){ + a3 = 4; + a18 = 1; + a22 = 1; + a15 = 1; + a6 = 1; + return -1; + } else if(((((a4==1)&&((!(a15==1)&&((a27==1)&&((((((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==4))&&(a20==1))&&(a12==10))))&&!(a0==1)))&&!(a6==1))&&!(a5==1))){ + a3 = 8; + a18 = 0; + a4 = 0; + a5 = 1; + a15 = 1; + a0 = 1; + a22 = 0; + a12 = 11; + return 21; + } else if(((a3==5)&&(((a12==10)&&((a27==1)&&(!(a15==1)&&(!(a5==1)&&((a20==1)&&((a22==1)&&((((input==3)&&!(a0==1))&&(a6==1))&&(a4==1))))))))&&(a18==1)))){ + a0 = 1; + a15 = 1; + a12 = 8; + a3 = 4; + a5 = 1; + return -1; + } else if(((a0==1)&&(((!(a15==1)&&((a12==9)&&(((a4==1)&&((a20==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==5))&&(a3==4))))&&(a6==1))))&&!(a5==1))&&(a27==1)))){ + a22 = 1; + a18 = 1; + a5 = 1; + a12 = 12; + a6 = 0; + return 21; + } else if((!(a15==1)&&(((((!(a4==1)&&((a20==1)&&(((a12==11)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==6)))&&(a5==1))))&&!(a27==1))&&!(a0==1))&&(a3==8))&&!(a6==1)))){ + a18 = 1; + a15 = 1; + a3 = 6; + a4 = 1; + a27 = 1; + a0 = 1; + a22 = 1; + a12 = 8; + return 21; + } else if((!(a5==1)&&(((((!(a15==1)&&((a20==1)&&(((a4==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==3)))&&(a12==8))))&&(a3==6))&&!(a27==1))&&!(a6==1))&&(a0==1)))){ + a3 = 4; + a22 = 0; + a15 = 1; + a12 = 11; + a18 = 0; + a4 = 0; + return 26; + } else if(((a0==1)&&((a3==8)&&(((a6==1)&&((a5==1)&&(((((a22==1)&&(((a18==1)&&(input==5))&&(a20==1)))&&(a4==1))&&(a27==1))&&(a12==10))))&&(a15==1))))){ + a3 = 4; + a12 = 8; + return -1; + } else if((((a0==1)&&(!(a22==1)&&((a6==1)&&((a3==6)&&(((a15==1)&&(((a4==1)&&((!(a27==1)&&(input==2))&&(a12==12)))&&!(a18==1)))&&(a20==1))))))&&!(a5==1))){ + a12 = 10; + a18 = 1; + a6 = 0; + a5 = 1; + a22 = 1; + a15 = 0; + a3 = 8; + return -1; + } else if((((((a27==1)&&(!(a6==1)&&((a15==1)&&((a20==1)&&(!(a4==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))||(((a22==1)&&!(a18==1))&&(a3==5)))&&(input==3)))))))&&(a0==1))&&(a12==12))&&!(a5==1))){ + a4 = 1; + a12 = 11; + a6 = 1; + a18 = 1; + a22 = 1; + a3 = 7; + return 24; + } else if(((!(a4==1)&&(!(a6==1)&&((((a12==9)&&(((a15==1)&&((a3==4)&&((a5==1)&&((input==1)&&!(a18==1)))))&&(a27==1)))&&(a20==1))&&(a22==1))))&&(a0==1))){ + a3 = 6; + a6 = 1; + a18 = 1; + a22 = 0; + a12 = 12; + a5 = 0; + return 24; + } else if(((((((((!(a0==1)&&((((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==1)))&&(a27==1))&&(a5==1))&&(a4==1))&&(a12==11))&&!(a6==1))&&(a20==1))&&(a15==1))){ + a6 = 1; + a3 = 4; + a0 = 1; + a18 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if((((a20==1)&&((a3==5)&&((a12==10)&&((((a6==1)&&((((input==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&!(a27==1))&&!(a5==1)))&&!(a15==1))&&(a0==1)))))&&(a4==1))){ + a15 = 1; + a4 = 0; + a27 = 1; + a18 = 0; + a22 = 0; + a3 = 4; + return 21; + } else if(((!(a22==1)&&(((((a20==1)&&((((a3==8)&&(((a12==11)&&(input==1))&&!(a6==1)))&&!(a27==1))&&!(a4==1)))&&!(a15==1))&&(a0==1))&&!(a5==1)))&&!(a18==1))){ + a15 = 1; + a22 = 1; + a4 = 1; + a3 = 4; + a18 = 1; + a27 = 1; + a5 = 1; + a12 = 8; + a6 = 1; + return -1; + } else if((!(a15==1)&&(!(a6==1)&&((a12==11)&&((a5==1)&&((a20==1)&&((!(a27==1)&&(((a0==1)&&((((a18==1)||!(a18==1))&&(input==6))&&(a4==1)))&&!(a22==1)))&&(a3==7)))))))){ + a18 = 0; + a12 = 10; + a5 = 0; + a3 = 5; + a6 = 1; + a4 = 0; + return -1; + } else if(((a15==1)&&(((a6==1)&&(((a20==1)&&((a12==10)&&((((a3==7)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==4)))&&(a4==1))&&!(a27==1))))&&(a5==1)))&&(a0==1)))){ + a27 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + return -1; + } else if(((!(a4==1)&&((a27==1)&&((((a3==6)&&(((a6==1)&&((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==4))&&(a20==1)))&&(a5==1)))&&(a12==10))&&(a15==1))))&&(a0==1))){ + a18 = 1; + a22 = 1; + a0 = 0; + a12 = 9; + return 26; + } else if((((a5==1)&&((a18==1)&&((!(a15==1)&&((((a20==1)&&(((a0==1)&&(!(a4==1)&&(input==3)))&&(a6==1)))&&(a27==1))&&(a12==9)))&&(a3==8))))&&!(a22==1))){ + a3 = 4; + a12 = 8; + a22 = 1; + a4 = 1; + a15 = 1; + return -1; + } else if(((a15==1)&&((a12==8)&&((a0==1)&&((!(a27==1)&&(((a4==1)&&(((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==4))&&(a20==1))&&(a5==1)))&&(a6==1)))&&(a3==7)))))){ + a27 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((((a0==1)&&(!(a5==1)&&((((a12==11)&&(((!(a6==1)&&(((a4==1)&&(!(a22==1)&&!(a18==1)))&&(a3==8)))||((a6==1)&&((!(a4==1)&&((a22==1)&&(a18==1)))&&(a3==4))))&&(input==2)))&&(a15==1))&&(a20==1))))&&(a27==1))){ + a15 = 0; + a18 = 1; + a4 = 0; + a3 = 8; + a6 = 0; + a22 = 0; + return 26; + } else if((!(a4==1)&&(((!(a5==1)&&(!(a15==1)&&(!(a6==1)&&(((a12==10)&&((((input==2)&&(a20==1))&&!(a27==1))&&!(a22==1)))&&(a3==4)))))&&!(a0==1))&&!(a18==1)))){ + if((a18==1)){ + a3 = 7; + a18 = 1; + a15 = 1; + a5 = 1; + a12 = 9; + }else{ + a27 = 1; + a3 = 6; + a6 = 1; + a15 = 1; + } + return -1; + } else if(((a27==1)&&((((((a0==1)&&((a12==12)&&(((input==5)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1)))))&&!(a5==1))))&&!(a4==1))&&(a6==1))&&(a15==1))&&(a20==1)))){ + a3 = 8; + a4 = 1; + a22 = 0; + a12 = 11; + a27 = 0; + a18 = 0; + return 24; + } else if((((a3==6)&&(!(a15==1)&&((((!(a4==1)&&((a6==1)&&(((!(a5==1)&&(input==4))&&(a22==1))&&!(a0==1))))&&(a20==1))&&(a18==1))&&!(a27==1))))&&(a12==8))){ + if((a4==1)){ + a3 = 4; + a27 = 1; + a18 = 0; + a12 = 11; + a5 = 1; + }else{ + a27 = 1; + a6 = 0; + a0 = 1; + a15 = 1; + a12 = 9; + a18 = 0; + } + return 26; + } else if(((a0==1)&&(((((a20==1)&&((!(a27==1)&&((((a5==1)&&((input==3)&&!(a22==1)))&&(a3==8))&&(a12==9)))&&(a6==1)))&&(a15==1))&&!(a4==1))&&(a18==1)))){ + a12 = 10; + a27 = 1; + a3 = 4; + return 21; + } else if((!(a0==1)&&(!(a22==1)&&((a3==8)&&((!(a5==1)&&((a6==1)&&((!(a4==1)&&((((input==5)&&((a18==1)||!(a18==1)))&&(a20==1))&&!(a15==1)))&&!(a27==1))))&&(a12==11)))))){ + a3 = 6; + a12 = 8; + a18 = 1; + a22 = 1; + a0 = 1; + a4 = 1; + a15 = 1; + a27 = 1; + return 21; + } else if((!(a15==1)&&((!(a4==1)&&((a0==1)&&(!(a22==1)&&((((a5==1)&&(((((a18==1)||!(a18==1))&&(input==3))&&(a27==1))&&(a6==1)))&&(a3==6))&&(a20==1)))))&&(a12==11)))){ + a3 = 4; + a18 = 0; + a6 = 0; + a22 = 1; + return 21; + } else if(((!(a0==1)&&((((input==4)&&(((((a3==8)&&(!(a4==1)&&((((a18==1)&&!(a22==1))&&(a5==1))&&!(a15==1))))&&!(a6==1))||(!(a6==1)&&((!(a4==1)&&(!(a15==1)&&((!(a22==1)&&!(a18==1))&&(a5==1))))&&(a3==8))))||((a6==1)&&((((!(a5==1)&&((a18==1)&&(a22==1)))&&(a15==1))&&(a4==1))&&(a3==4)))))&&(a27==1))&&(a12==8)))&&(a20==1))){ + a3 = 4; + a5 = 1; + a4 = 0; + a0 = 1; + a22 = 1; + a15 = 1; + a18 = 0; + a6 = 1; + a12 = 12; + return 24; + } else if((((!(a5==1)&&(((a3==8)&&(((!(a15==1)&&((((a22==1)&&(input==1))&&(a6==1))&&(a20==1)))&&!(a0==1))&&!(a18==1)))&&!(a4==1)))&&(a27==1))&&(a12==8))){ + a22 = 0; + a27 = 0; + a12 = 11; + a5 = 1; + a0 = 1; + return 21; + } else if(((a6==1)&&((a3==5)&&((a15==1)&&((a12==11)&&(((!(a4==1)&&((a0==1)&&((a20==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==1)))))&&!(a5==1))&&!(a27==1))))))){ + a6 = 0; + a3 = 4; + a5 = 1; + a22 = 0; + a18 = 1; + return -1; + } else if(((a5==1)&&(((a20==1)&&(!(a27==1)&&(!(a6==1)&&((a3==7)&&(((a4==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2))&&(a12==10)))&&!(a15==1))))))&&!(a0==1)))){ + a27 = 1; + a12 = 8; + a3 = 5; + a0 = 1; + a18 = 0; + a6 = 1; + a22 = 1; + a15 = 1; + return 21; + } else if((!(a15==1)&&((!(a27==1)&&((a5==1)&&((a4==1)&&((a20==1)&&((a6==1)&&((a12==9)&&((a3==8)&&((input==5)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))))))))&&(a0==1)))){ + if((a5==1)){ + a6 = 0; + a27 = 1; + a22 = 0; + a12 = 12; + a3 = 5; + a18 = 0; + a0 = 0; + a15 = 1; + }else{ + a12 = 11; + a3 = 6; + a22 = 0; + a4 = 0; + a18 = 1; + } + return 21; + } else if((((((((!(a15==1)&&(!(a22==1)&&(!(a5==1)&&((((a18==1)||!(a18==1))&&(input==4))&&!(a4==1)))))&&(a3==5))&&(a20==1))&&(a27==1))&&(a0==1))&&(a12==8))&&(a6==1))){ + a18 = 0; + a12 = 11; + a4 = 1; + a3 = 6; + a22 = 1; + a5 = 1; + a6 = 0; + return 24; + } else if((((((a20==1)&&(!(a15==1)&&(!(a6==1)&&((a5==1)&&((a12==8)&&(!(a4==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==1))))))))&&(a3==8))&&(a0==1))&&(a27==1))){ + if((a27==1)){ + a22 = 1; + a18 = 0; + a3 = 4; + a4 = 1; + a12 = 10; + a15 = 1; + a0 = 0; + a6 = 1; + a5 = 0; + }else{ + a15 = 1; + a12 = 9; + a22 = 1; + a5 = 0; + a18 = 0; + a4 = 1; + } + return 26; + } else if(((a0==1)&&((!(a5==1)&&((a20==1)&&((a3==4)&&((((!(a15==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==5)))&&(a27==1))&&(a6==1))&&(a12==10)))))&&!(a4==1)))){ + a5 = 1; + a12 = 8; + a18 = 1; + a0 = 0; + a22 = 0; + a15 = 1; + return 26; + } else if(((!(a15==1)&&(!(a22==1)&&((!(a6==1)&&(!(a4==1)&&(((!(a5==1)&&((a0==1)&&((input==6)&&(a20==1))))&&(a12==11))&&(a3==8))))&&(a27==1))))&&(a18==1))){ + a18 = 0; + a12 = 10; + a22 = 1; + a4 = 1; + a6 = 1; + a3 = 6; + return -1; + } else if(((a12==9)&&((a20==1)&&(!(a27==1)&&((a22==1)&&((a4==1)&&((a3==4)&&(((a15==1)&&(((!(a0==1)&&(input==5))&&(a6==1))&&!(a5==1)))&&(a18==1))))))))){ + a27 = 1; + a0 = 1; + a5 = 1; + a3 = 6; + a12 = 8; + return -1; + } else if((((((a12==10)&&((!(a15==1)&&((a20==1)&&(((((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1))||(((a6==1)&&((!(a22==1)&&(a18==1))&&(a3==8)))||(((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))))&&(input==3))))&&!(a5==1)))&&!(a0==1))&&(a4==1))&&!(a27==1))){ + a27 = 1; + a22 = 0; + a12 = 8; + a0 = 1; + a6 = 1; + a4 = 0; + a18 = 0; + a3 = 8; + a15 = 1; + a5 = 1; + return -1; + } else if((!(a27==1)&&(((a3==8)&&((a4==1)&&((a20==1)&&((((!(a5==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==1)))&&(a15==1))&&(a0==1))&&(a12==10)))))&&(a6==1)))){ + a18 = 1; + a12 = 11; + a6 = 0; + a15 = 0; + a22 = 1; + return 21; + } else if((!(a0==1)&&((a12==8)&&(((!(a27==1)&&((((((a4==1)&&(!(a15==1)&&((a22==1)&&(a18==1))))&&(a3==4))&&(a6==1))||((!(a6==1)&&((a3==8)&&(!(a4==1)&&((a15==1)&&(!(a22==1)&&(a18==1))))))||(!(a6==1)&&((((!(a22==1)&&!(a18==1))&&(a15==1))&&!(a4==1))&&(a3==8)))))&&(input==5)))&&(a20==1))&&!(a5==1))))){ + if((a4==1)){ + a22 = 0; + a6 = 1; + a4 = 1; + a18 = 0; + a15 = 1; + a27 = 1; + a0 = 1; + a5 = 1; + a3 = 5; + }else{ + a0 = 1; + a3 = 4; + a5 = 1; + a18 = 0; + a27 = 1; + a15 = 1; + a22 = 0; + a6 = 1; + a4 = 0; + } + return 26; + } else if(((a5==1)&&((((!(a27==1)&&((a3==8)&&((((a0==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==6)))&&!(a15==1))&&(a6==1))))&&(a20==1))&&(a4==1))&&(a12==10)))){ + if((a27==1)){ + a15 = 1; + a3 = 4; + a22 = 0; + a27 = 1; + a12 = 8; + a0 = 0; + a18 = 1; + a6 = 0; + }else{ + a12 = 8; + a3 = 6; + a4 = 0; + a22 = 0; + a18 = 1; + } + return 21; + } else if(((((((a12==10)&&(((a3==5)&&((((!(a27==1)&&(input==2))&&(a5==1))&&(a4==1))&&(a15==1)))&&!(a22==1)))&&!(a18==1))&&(a20==1))&&!(a6==1))&&(a0==1))){ + a15 = 0; + a3 = 4; + a12 = 12; + a4 = 0; + return 26; + } else if(((a15==1)&&((a0==1)&&((((a3==7)&&(((((a6==1)&&(!(a4==1)&&((input==6)&&((a18==1)||!(a18==1)))))&&(a20==1))&&!(a5==1))&&(a22==1)))&&(a12==8))&&(a27==1))))){ + a18 = 1; + a15 = 0; + a5 = 1; + a12 = 10; + a4 = 1; + return 26; + } else if(((((((a5==1)&&((a12==10)&&((((((a3==7)&&((a22==1)&&!(a18==1)))||(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1)))))&&(input==6))&&(a20==1))&&(a15==1))))&&!(a27==1))&&(a6==1))&&(a4==1))&&!(a0==1))){ + if((a18==1)){ + a22 = 0; + a27 = 1; + a12 = 8; + a3 = 7; + a18 = 1; + a0 = 1; + }else{ + a18 = 1; + a12 = 11; + a3 = 5; + a5 = 0; + a22 = 1; + a27 = 1; + } + return 26; + } else if(((!(a15==1)&&(((a20==1)&&(((a0==1)&&((a12==11)&&((a6==1)&&((input==5)&&(((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a22==1)&&(a18==1))))))))&&(a5==1)))&&(a4==1)))&&(a27==1))){ + a5 = 0; + a22 = 0; + a3 = 8; + a15 = 1; + a18 = 0; + a4 = 0; + a6 = 0; + return 24; + } else if(((a27==1)&&((!(a5==1)&&(!(a4==1)&&(((a15==1)&&((a12==9)&&((((input==1)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&!(a6==1))&&!(a0==1))))&&(a20==1))))&&(a3==8)))){ + a15 = 0; + a4 = 1; + a18 = 0; + a3 = 6; + a5 = 1; + a12 = 12; + a22 = 0; + a0 = 1; + return 26; + } else if(((((a6==1)&&((((!(a0==1)&&(((input==5)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6))))&&(a4==1)))&&!(a5==1))&&(a12==12))&&(a27==1)))&&!(a15==1))&&(a20==1))){ + if((a12==9)){ + a12 = 9; + a18 = 0; + a0 = 1; + a22 = 0; + a3 = 4; + a6 = 0; + a27 = 0; + }else{ + a18 = 1; + a3 = 5; + a4 = 0; + a22 = 0; + } + return -1; + } else if(((a0==1)&&(((((a6==1)&&((a3==8)&&((a27==1)&&((a18==1)&&(((a12==11)&&((a20==1)&&(input==1)))&&(a5==1))))))&&!(a4==1))&&!(a22==1))&&(a15==1)))){ + a3 = 4; + a12 = 8; + a4 = 1; + a22 = 1; + return -1; + } else if(((((((!(a0==1)&&((((((input==3)&&(a22==1))&&!(a4==1))&&(a12==10))&&!(a6==1))&&(a5==1)))&&(a20==1))&&(a27==1))&&!(a15==1))&&!(a18==1))&&(a3==7))){ + a0 = 1; + a3 = 6; + a27 = 0; + a5 = 0; + a4 = 1; + a12 = 9; + return -1; + } else if(((a5==1)&&((((a12==9)&&(!(a15==1)&&(((((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==1))&&!(a0==1))&&!(a6==1))&&!(a4==1))&&(a20==1))))&&(a3==8))&&!(a27==1)))){ + if((a4==1)){ + a0 = 1; + a4 = 1; + a5 = 0; + a18 = 0; + a3 = 5; + a22 = 0; + a12 = 8; + }else{ + a12 = 10; + a27 = 1; + a5 = 0; + a18 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + } + return 26; + } else if((!(a18==1)&&((a3==7)&&((a6==1)&&(!(a15==1)&&((a0==1)&&(((a12==11)&&(((!(a22==1)&&((input==2)&&!(a4==1)))&&(a5==1))&&!(a27==1)))&&(a20==1)))))))){ + a22 = 1; + a3 = 5; + a6 = 0; + a27 = 1; + a5 = 0; + return -1; + } else if((((((a12==11)&&(!(a5==1)&&((a6==1)&&((a0==1)&&(((input==5)&&((((a18==1)&&(a22==1))&&(a3==8))||(((!(a22==1)&&(a18==1))&&(a3==7))||((a3==7)&&(!(a18==1)&&!(a22==1))))))&&(a4==1))))))&&(a15==1))&&!(a27==1))&&(a20==1))){ + a3 = 7; + a18 = 0; + a4 = 0; + a27 = 1; + a12 = 10; + a5 = 1; + a22 = 0; + return 26; + } else if(((a12==10)&&(!(a0==1)&&(!(a4==1)&&((a3==7)&&((a20==1)&&((a27==1)&&((((((input==4)&&((a18==1)||!(a18==1)))&&!(a6==1))&&!(a22==1))&&!(a15==1))&&(a5==1))))))))){ + a5 = 0; + a22 = 1; + a6 = 1; + a15 = 1; + a18 = 0; + a0 = 1; + a12 = 11; + return 24; + } else if((((a12==10)&&(((a20==1)&&(((!(a5==1)&&((a4==1)&&(((((a18==1)||!(a18==1))&&(input==1))&&(a27==1))&&(a15==1))))&&!(a0==1))&&(a3==8)))&&!(a22==1)))&&!(a6==1))){ + a18 = 0; + return 26; + } else if(((a20==1)&&((!(a6==1)&&(!(a4==1)&&((a3==5)&&(!(a5==1)&&((a27==1)&&((((a0==1)&&(!(a22==1)&&(input==1)))&&(a12==12))&&!(a15==1)))))))&&!(a18==1)))){ + a15 = 1; + a18 = 1; + a22 = 1; + a3 = 4; + a5 = 1; + a12 = 8; + a6 = 1; + a4 = 1; + return -1; + } else if((!(a4==1)&&((!(a6==1)&&((a15==1)&&(((((a5==1)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==2)))&&!(a27==1))&&(a12==8))&&(a0==1))))&&(a20==1)))){ + a27 = 1; + a3 = 4; + a12 = 10; + a6 = 1; + a22 = 1; + a18 = 0; + return 26; + } else if(((a15==1)&&((a12==9)&&((!(a6==1)&&(((a5==1)&&(((a22==1)&&(!(a18==1)&&((a27==1)&&((a20==1)&&(input==5)))))&&(a0==1)))&&(a4==1)))&&(a3==4))))){ + a6 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if((((a5==1)&&((a4==1)&&(((!(a27==1)&&((a0==1)&&((((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1)))&&(input==5))))&&!(a15==1))&&(a20==1))))&&(a12==8))){ + a3 = 4; + a6 = 1; + a27 = 1; + a15 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((((a4==1)&&(!(a6==1)&&((a15==1)&&(((a3==4)&&((a20==1)&&(((a0==1)&&((input==6)&&((a18==1)||!(a18==1))))&&!(a27==1))))&&(a22==1)))))&&(a5==1))&&(a12==11))){ + a6 = 1; + a3 = 5; + a12 = 10; + a22 = 0; + a18 = 1; + a27 = 1; + return 21; + } else if((!(a0==1)&&((!(a4==1)&&((a20==1)&&((a3==4)&&((!(a27==1)&&((a18==1)&&(((a22==1)&&((input==2)&&(a12==8)))&&(a6==1))))&&(a15==1)))))&&(a5==1)))){ + a5 = 0; + a3 = 8; + a22 = 0; + a27 = 1; + a15 = 0; + a0 = 1; + a12 = 10; + return -1; + } else if(((a27==1)&&((a20==1)&&((((a4==1)&&((a15==1)&&((((input==4)&&(((a3==6)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))))&&(a5==1))&&(a12==8))))&&!(a6==1))&&!(a0==1))))){ + a3 = 7; + a0 = 1; + a6 = 1; + a12 = 11; + a22 = 1; + a15 = 0; + a18 = 1; + return -1; + } else if((!(a27==1)&&(((a0==1)&&((a22==1)&&(((!(a18==1)&&((a20==1)&&((a3==4)&&(!(a4==1)&&((a6==1)&&(input==6))))))&&(a12==8))&&(a15==1))))&&(a5==1)))){ + a27 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if(((a22==1)&&(!(a5==1)&&((a15==1)&&((((((a3==4)&&((((a20==1)&&(input==3))&&(a4==1))&&(a12==11)))&&(a0==1))&&!(a18==1))&&(a27==1))&&(a6==1)))))){ + a5 = 1; + a27 = 0; + a6 = 0; + a18 = 1; + a15 = 0; + return 21; + } else if(((a6==1)&&(!(a0==1)&&(!(a5==1)&&((a3==6)&&((a20==1)&&(!(a15==1)&&(!(a4==1)&&(((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==1))&&!(a27==1))&&(a12==8)))))))))){ + a15 = 1; + a22 = 0; + a12 = 9; + a3 = 8; + a18 = 1; + a0 = 1; + a4 = 1; + return -1; + } else if(((a18==1)&&((((!(a4==1)&&((((((a12==12)&&((input==3)&&(a3==8)))&&(a20==1))&&!(a5==1))&&(a15==1))&&(a27==1)))&&!(a6==1))&&!(a22==1))&&!(a0==1)))){ + a0 = 1; + a3 = 6; + a12 = 11; + return 21; + } else if(((((!(a22==1)&&(((a27==1)&&(!(a6==1)&&(((a20==1)&&(((input==1)&&!(a4==1))&&(a0==1)))&&(a5==1))))&&(a3==8)))&&(a18==1))&&!(a15==1))&&(a12==10))){ + a15 = 1; + a6 = 1; + a4 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((((a6==1)&&((!(a0==1)&&(((a12==8)&&((a3==8)&&((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==2))&&(a27==1))))&&!(a5==1)))&&(a15==1)))&&(a20==1))&&!(a4==1))){ + a0 = 1; + a22 = 0; + a27 = 0; + a15 = 0; + a18 = 0; + a6 = 0; + a3 = 7; + return 26; + } else if(((!(a4==1)&&((!(a0==1)&&((((((a22==1)&&(((a5==1)&&(input==4))&&!(a18==1)))&&!(a15==1))&&!(a6==1))&&(a12==8))&&(a20==1)))&&(a3==4)))&&!(a27==1))){ + a15 = 1; + a4 = 1; + a18 = 1; + a27 = 1; + a6 = 1; + a0 = 1; + return -1; + } else if(((a0==1)&&((a5==1)&&(((((a4==1)&&((!(a15==1)&&((a12==10)&&((a20==1)&&((input==1)&&((a18==1)||!(a18==1))))))&&(a27==1)))&&(a6==1))&&(a3==4))&&!(a22==1))))){ + a6 = 0; + a3 = 8; + a27 = 0; + a15 = 1; + a5 = 0; + a18 = 1; + a12 = 9; + a4 = 0; + return 21; + } else if(((((a6==1)&&((((a4==1)&&((a27==1)&&(((((input==2)&&((a18==1)||!(a18==1)))&&(a3==5))&&(a5==1))&&(a20==1))))&&!(a0==1))&&(a12==12)))&&(a22==1))&&(a15==1))){ + a0 = 1; + a18 = 1; + a6 = 0; + a12 = 11; + a3 = 4; + a4 = 0; + return 21; + } else if((((a18==1)&&((a12==10)&&((((a20==1)&&((a3==6)&&((a15==1)&&(!(a27==1)&&((!(a6==1)&&(input==6))&&(a0==1))))))&&(a5==1))&&(a4==1))))&&(a22==1))){ + a6 = 1; + a27 = 1; + a4 = 0; + a15 = 0; + a3 = 7; + a12 = 12; + a22 = 0; + return 26; + } else if((((a4==1)&&((a27==1)&&((a0==1)&&((a12==11)&&(((a20==1)&&(((a3==8)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==4)))&&(a15==1)))&&!(a5==1))))))&&!(a6==1))){ + a12 = 10; + a22 = 0; + a5 = 1; + a6 = 1; + a18 = 1; + a15 = 0; + return -1; + } else if(((a12==10)&&(!(a15==1)&&(((a22==1)&&((((a20==1)&&(((((input==3)&&((a18==1)||!(a18==1)))&&!(a6==1))&&(a27==1))&&!(a5==1)))&&!(a4==1))&&(a0==1)))&&(a3==7))))){ + a18 = 0; + a15 = 1; + return -1; + } else if(((((!(a4==1)&&(!(a15==1)&&((a22==1)&&((((((a3==4)&&(input==4))&&(a12==11))&&!(a0==1))&&!(a18==1))&&(a5==1)))))&&(a6==1))&&(a20==1))&&!(a27==1))){ + if((a0==1)){ + a4 = 1; + a3 = 6; + a18 = 1; + a12 = 8; + a27 = 1; + a15 = 1; + a22 = 0; + a0 = 1; + }else{ + a12 = 10; + a27 = 1; + a18 = 1; + a5 = 0; + a6 = 0; + a3 = 5; + } + return 21; + } else if(((a0==1)&&(((((a5==1)&&((a20==1)&&((a4==1)&&((((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6)))||(((a22==1)&&!(a18==1))&&(a3==6)))&&(input==3))&&(a27==1)))))&&!(a6==1))&&(a15==1))&&(a12==12)))){ + a12 = 8; + a3 = 4; + a18 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if(((a4==1)&&(!(a5==1)&&((a3==8)&&((((!(a6==1)&&(((a20==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==3)))&&!(a0==1)))&&(a12==12))&&(a27==1))&&(a15==1)))))){ + a12 = 8; + a27 = 0; + a22 = 0; + a6 = 1; + a18 = 1; + a0 = 1; + return 21; + } else if(((a27==1)&&(!(a0==1)&&((((a12==12)&&(((input==2)&&((((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1))))&&!(a6==1))||(((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))&&(a6==1))))&&(a5==1)))&&(a15==1))&&(a20==1))))){ + a3 = 4; + a4 = 1; + a12 = 8; + a0 = 1; + a18 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if((((a6==1)&&((a12==9)&&((!(a22==1)&&(!(a27==1)&&(!(a15==1)&&(((a20==1)&&((((a18==1)||!(a18==1))&&(input==5))&&!(a4==1)))&&(a0==1)))))&&(a3==8))))&&(a5==1))){ + a18 = 1; + a15 = 1; + a4 = 1; + return -1; + } else if((((!(a0==1)&&((a3==5)&&(((((a12==9)&&((a27==1)&&(((input==2)&&(a20==1))&&!(a18==1))))&&!(a22==1))&&(a6==1))&&!(a15==1))))&&!(a4==1))&&!(a5==1))){ + a15 = 1; + a0 = 1; + a3 = 8; + a6 = 0; + a18 = 1; + a22 = 1; + a12 = 10; + a4 = 1; + return 26; + } else if(((((a5==1)&&((((!(a6==1)&&((a0==1)&&(!(a27==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==2)))))&&(a15==1))&&(a4==1))&&(a12==9)))&&(a20==1))&&(a3==6))){ + a27 = 1; + a22 = 1; + a6 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + return -1; + } else if((!(a4==1)&&(((a3==7)&&(((a27==1)&&((((((input==3)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a15==1))&&(a20==1))&&(a12==10))&&(a6==1)))&&!(a5==1)))&&!(a0==1)))){ + a5 = 1; + a3 = 4; + a15 = 1; + a18 = 1; + a22 = 1; + a0 = 1; + a6 = 0; + return 26; + } else if((!(a5==1)&&((a4==1)&&(!(a6==1)&&(((a20==1)&&((!(a0==1)&&(((input==6)&&(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1)))))&&(a27==1)))&&(a15==1)))&&(a12==9)))))){ + a3 = 4; + a18 = 0; + a22 = 0; + a0 = 1; + a5 = 1; + a12 = 10; + return -1; + } else if((!(a27==1)&&(((a0==1)&&((!(a6==1)&&(!(a4==1)&&(((a5==1)&&((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==4))&&(a20==1)))&&(a3==5))))&&!(a15==1)))&&(a12==9)))){ + a3 = 7; + a5 = 0; + a22 = 0; + a12 = 10; + a18 = 1; + return 21; + } else if(((!(a15==1)&&((a0==1)&&(!(a4==1)&&((a12==9)&&(!(a6==1)&&(((((input==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a3==5))&&(a27==1))&&(a5==1)))))))&&(a20==1))){ + a4 = 1; + a6 = 1; + a12 = 8; + a22 = 1; + a15 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((((a12==11)&&(!(a4==1)&&((!(a5==1)&&(((a20==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&!(a6==1))&&!(a27==1)))&&!(a22==1)))&&(a3==6))))&&!(a0==1))&&(a15==1))){ + a5 = 1; + a3 = 4; + a27 = 1; + a22 = 1; + a6 = 1; + a12 = 12; + a0 = 1; + a18 = 1; + return 26; + } else if(((((a20==1)&&(((!(a27==1)&&(((a15==1)&&((((input==4)&&((a18==1)||!(a18==1)))&&(a12==10))&&(a0==1)))&&(a5==1)))&&!(a4==1))&&(a22==1)))&&(a3==6))&&!(a6==1))){ + a27 = 1; + a0 = 0; + a4 = 1; + a18 = 0; + return 21; + } else if((!(a5==1)&&(!(a22==1)&&((((a3==8)&&((a12==9)&&((((a6==1)&&((a18==1)&&((input==1)&&(a20==1))))&&!(a0==1))&&(a15==1))))&&(a27==1))&&(a4==1))))){ + a15 = 0; + a18 = 0; + a0 = 1; + a12 = 11; + a3 = 7; + return 21; + } else if(((((a20==1)&&((a3==6)&&(!(a5==1)&&(((!(a15==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==5))&&!(a4==1)))&&!(a27==1))&&!(a0==1)))))&&!(a6==1))&&(a12==11))){ + a15 = 1; + a27 = 1; + a18 = 0; + a0 = 1; + a5 = 1; + a22 = 1; + a12 = 8; + a6 = 1; + return 21; + } else if(((a12==8)&&((!(a27==1)&&(((a3==5)&&(((((!(a6==1)&&((input==4)&&!(a0==1)))&&!(a18==1))&&!(a15==1))&&(a5==1))&&(a20==1)))&&(a4==1)))&&(a22==1)))){ + a0 = 1; + a12 = 9; + a6 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if(((a12==10)&&(((a5==1)&&((((a20==1)&&(((a3==5)&&(!(a22==1)&&((a27==1)&&(!(a0==1)&&(input==2)))))&&!(a18==1)))&&!(a15==1))&&!(a4==1)))&&(a6==1)))){ + if((a12==9)){ + a4 = 1; + a12 = 11; + a3 = 6; + }else{ + a0 = 1; + a12 = 9; + a3 = 7; + a5 = 0; + a27 = 0; + } + return 26; + } else if(((a6==1)&&((!(a5==1)&&(((a0==1)&&((a20==1)&&((a3==4)&&((a4==1)&&(((((a18==1)||!(a18==1))&&(input==6))&&(a12==8))&&(a15==1))))))&&!(a27==1)))&&(a22==1)))){ + a3 = 8; + a4 = 0; + a18 = 1; + a12 = 11; + a6 = 0; + a27 = 1; + a0 = 0; + a5 = 1; + return -1; + } else if(((a15==1)&&(!(a0==1)&&((((a27==1)&&(!(a5==1)&&((a12==9)&&(((a3==4)&&(((input==5)&&(a22==1))&&(a18==1)))&&(a20==1)))))&&!(a6==1))&&(a4==1))))){ + a18 = 0; + a0 = 1; + a15 = 0; + a22 = 0; + a5 = 1; + a3 = 8; + return 24; + } else if((!(a6==1)&&((a4==1)&&((!(a15==1)&&(((a27==1)&&(!(a5==1)&&(((input==2)&&(((!(a18==1)&&(a22==1))&&(a3==6))||(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))))&&!(a0==1))))&&(a20==1)))&&(a12==12))))){ + a4 = 0; + a22 = 1; + a0 = 1; + a5 = 1; + a6 = 1; + a18 = 0; + a3 = 8; + a15 = 1; + a27 = 0; + return 26; + } else if(((a15==1)&&((!(a27==1)&&((a20==1)&&((!(a6==1)&&((a12==9)&&(((((input==2)&&(a3==6))&&!(a5==1))&&!(a0==1))&&!(a4==1))))&&!(a22==1))))&&(a18==1)))){ + a5 = 1; + a22 = 1; + a4 = 1; + a27 = 1; + a6 = 1; + a12 = 11; + return 21; + } else if(((a20==1)&&((a12==10)&&(((!(a5==1)&&((a27==1)&&((a4==1)&&(((a15==1)&&(!(a6==1)&&((input==4)&&!(a18==1))))&&(a3==6)))))&&(a22==1))&&(a0==1))))){ + a5 = 1; + a22 = 0; + a4 = 0; + a27 = 0; + a3 = 5; + return 26; + } else if(((a5==1)&&((((((!(a4==1)&&((a12==10)&&((((a3==8)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7))))&&(input==3))))&&!(a6==1))&&!(a15==1))&&!(a27==1))&&!(a0==1))&&(a20==1)))){ + if((a22==1)){ + a22 = 1; + a6 = 1; + a4 = 1; + a3 = 7; + a18 = 0; + a12 = 8; + a0 = 1; + a15 = 1; + a27 = 1; + }else{ + a22 = 0; + a15 = 1; + a3 = 5; + a27 = 1; + a4 = 1; + a0 = 1; + a18 = 1; + a12 = 8; + } + return 21; + } else if((((a20==1)&&(!(a22==1)&&((a27==1)&&(((a0==1)&&(((a3==4)&&(((a5==1)&&((a6==1)&&(input==5)))&&(a12==9)))&&(a15==1)))&&(a4==1)))))&&(a18==1))){ + a5 = 0; + a12 = 11; + a15 = 0; + return 21; + } else if(((a20==1)&&((a3==7)&&((((a5==1)&&(!(a22==1)&&(((!(a0==1)&&((!(a4==1)&&(input==4))&&(a6==1)))&&(a12==8))&&(a15==1))))&&!(a27==1))&&(a18==1))))){ + if((a6==1)){ + a27 = 1; + a0 = 1; + a4 = 1; + a3 = 8; + a6 = 0; + a22 = 1; + }else{ + a4 = 1; + a0 = 1; + a6 = 0; + a27 = 1; + a22 = 1; + } + return 21; + } else if(((((((a22==1)&&((a5==1)&&((a27==1)&&((a20==1)&&((a12==11)&&(!(a15==1)&&((input==2)&&(a6==1))))))))&&(a18==1))&&(a4==1))&&(a0==1))&&(a3==8))){ + a3 = 6; + a18 = 0; + a12 = 10; + return -1; + } else if(((((a15==1)&&((!(a27==1)&&(((((a5==1)&&((input==2)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))&&(a4==1))&&!(a6==1))&&(a3==4)))&&(a20==1)))&&(a0==1))&&(a12==9))){ + a6 = 1; + a22 = 0; + a12 = 10; + a15 = 0; + a18 = 0; + a4 = 0; + return 21; + } else if(((((a3==4)&&((a27==1)&&((a20==1)&&(((a15==1)&&((a12==10)&&(((input==6)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&!(a6==1))))&&(a0==1)))))&&(a4==1))&&(a5==1))){ + a12 = 8; + a15 = 0; + a6 = 1; + a3 = 6; + a22 = 0; + a18 = 1; + return 26; + } else if((((a12==9)&&((a4==1)&&((a3==7)&&(!(a15==1)&&(!(a6==1)&&((a20==1)&&(((a5==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==1)))&&!(a0==1))))))))&&!(a27==1))){ + if((a15==1)){ + a18 = 1; + a12 = 11; + a0 = 1; + a5 = 0; + a6 = 1; + a27 = 1; + a22 = 0; + }else{ + a27 = 1; + a18 = 1; + a3 = 8; + a15 = 1; + a22 = 1; + a0 = 1; + a12 = 8; + } + return 26; + } else if(((a3==7)&&(!(a15==1)&&((a20==1)&&(((a22==1)&&(((((((input==4)&&!(a0==1))&&(a5==1))&&(a12==8))&&!(a6==1))&&(a4==1))&&(a27==1)))&&(a18==1)))))){ + a3 = 8; + a18 = 0; + a0 = 1; + a12 = 10; + a6 = 1; + a15 = 1; + return -1; + } else if(((!(a6==1)&&((!(a0==1)&&(((a15==1)&&((!(a27==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))||((a3==6)&&((a22==1)&&!(a18==1))))&&(input==3)))&&(a4==1)))&&(a20==1)))&&(a12==11)))&&!(a5==1))){ + if((a12==12)){ + a18 = 1; + a6 = 1; + a3 = 7; + a22 = 1; + a27 = 1; + a0 = 1; + a12 = 8; + a15 = 0; + }else{ + a12 = 10; + a4 = 0; + a3 = 4; + a18 = 1; + a15 = 0; + a22 = 0; + a0 = 1; + a6 = 1; + } + return -1; + } else if(((!(a5==1)&&((a20==1)&&((((!(a6==1)&&((!(a15==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==6)))&&(a3==6)))&&(a27==1))&&(a4==1))&&(a0==1))))&&(a12==12))){ + if((a0==1)){ + a15 = 1; + a12 = 11; + a22 = 0; + a0 = 0; + a18 = 0; + a3 = 8; + a4 = 0; + }else{ + a6 = 1; + a22 = 1; + a4 = 0; + a15 = 1; + a18 = 0; + a27 = 0; + a3 = 4; + a12 = 9; + } + return 21; + } else if((!(a0==1)&&(!(a4==1)&&(((a5==1)&&((a20==1)&&(((((input==5)&&(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1)))))&&(a12==9))&&(a6==1))&&(a27==1))))&&!(a15==1))))){ + a4 = 1; + a3 = 8; + a12 = 10; + a0 = 1; + a22 = 0; + a18 = 1; + return 26; + } else if((!(a18==1)&&((a22==1)&&((((!(a4==1)&&((a20==1)&&(((a15==1)&&(((a0==1)&&(input==6))&&(a12==11)))&&!(a5==1))))&&(a6==1))&&(a27==1))&&(a3==4))))){ + a5 = 1; + a18 = 1; + a4 = 1; + a12 = 8; + return -1; + } else if((!(a5==1)&&(((a12==9)&&((((a20==1)&&((input==5)&&(((a6==1)&&((((a18==1)&&(a22==1))&&!(a4==1))&&(a3==4)))||((!(a6==1)&&(((a4==1)&&((a18==1)&&!(a22==1)))&&(a3==8)))||(!(a6==1)&&((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1)))))))))&&(a27==1))&&!(a15==1)))&&!(a0==1)))){ + a4 = 1; + a0 = 1; + a6 = 1; + a18 = 1; + a22 = 1; + a3 = 7; + return 26; + } else if(((a15==1)&&((((a20==1)&&(((((a27==1)&&((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==2))&&!(a6==1)))&&(a12==11))&&!(a4==1))&&!(a5==1)))&&!(a0==1))&&(a3==4)))){ + a0 = 1; + a12 = 12; + a22 = 0; + a18 = 1; + a3 = 7; + return 26; + } else if(((((!(a18==1)&&((((a6==1)&&((!(a15==1)&&(!(a0==1)&&(!(a27==1)&&(input==2))))&&(a3==6)))&&!(a5==1))&&(a12==9)))&&(a20==1))&&(a22==1))&&!(a4==1))){ + a0 = 1; + a18 = 1; + a27 = 1; + a15 = 1; + a3 = 8; + a5 = 1; + a4 = 1; + a22 = 0; + a12 = 8; + return 21; + } else if((((((a6==1)&&((a15==1)&&(!(a27==1)&&(((a3==6)&&((a12==12)&&(((input==6)&&!(a22==1))&&!(a5==1))))&&(a0==1)))))&&!(a18==1))&&(a20==1))&&(a4==1))){ + a22 = 1; + a12 = 8; + a5 = 1; + a18 = 1; + a3 = 4; + a27 = 1; + return -1; + } else if((((a0==1)&&(((((a12==8)&&((a5==1)&&((a4==1)&&(!(a15==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a6==1))))))&&(a27==1))&&(a20==1))&&(a22==1)))&&(a3==6))){ + a22 = 0; + a4 = 0; + a18 = 0; + a12 = 10; + a0 = 0; + a3 = 8; + return 26; + } else if(((a5==1)&&((a15==1)&&((!(a0==1)&&(((((!(a22==1)&&(((input==4)&&(a3==8))&&(a4==1)))&&!(a6==1))&&(a27==1))&&(a12==8))&&(a20==1)))&&!(a18==1))))){ + a0 = 1; + a22 = 1; + a12 = 11; + a18 = 1; + a27 = 0; + a3 = 6; + a4 = 0; + return 26; + } else if((!(a27==1)&&(((((a12==11)&&((a22==1)&&(((((!(a6==1)&&(input==4))&&(a15==1))&&(a4==1))&&(a18==1))&&!(a5==1))))&&(a0==1))&&(a3==6))&&(a20==1)))){ + a27 = 1; + a5 = 1; + a22 = 0; + a15 = 0; + a3 = 8; + a4 = 0; + return -1; + } else if((!(a15==1)&&((a22==1)&&((a3==6)&&(((((!(a4==1)&&((!(a18==1)&&(!(a0==1)&&(input==6)))&&(a20==1)))&&!(a5==1))&&(a6==1))&&(a12==9))&&(a27==1)))))){ + a0 = 1; + a15 = 1; + a4 = 1; + a12 = 10; + a5 = 1; + return -1; + } else if((((a5==1)&&(!(a27==1)&&(((a4==1)&&((a3==5)&&(((a12==11)&&(((input==6)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a6==1)))&&!(a15==1))))&&(a20==1))))&&!(a0==1))){ + if((a4==1)){ + a5 = 0; + a4 = 0; + a12 = 9; + a22 = 1; + a15 = 1; + a18 = 0; + a27 = 1; + }else{ + a22 = 0; + a0 = 1; + a18 = 1; + a6 = 1; + a27 = 1; + a3 = 8; + a12 = 8; + a15 = 1; + } + return -1; + } else if((((a20==1)&&(((((a22==1)&&((a0==1)&&(((a6==1)&&((a12==8)&&((input==6)&&((a18==1)||!(a18==1)))))&&(a27==1))))&&(a4==1))&&!(a15==1))&&(a3==5)))&&!(a5==1))){ + if((a12==8)){ + a4 = 0; + a5 = 1; + a12 = 11; + a0 = 0; + a18 = 1; + a22 = 0; + }else{ + a0 = 0; + a18 = 1; + a3 = 4; + a12 = 11; + a15 = 1; + } + return 21; + } else if((!(a18==1)&&((a5==1)&&(!(a15==1)&&(!(a22==1)&&(((((a0==1)&&(((a27==1)&&((input==4)&&(a4==1)))&&(a20==1)))&&(a12==12))&&(a3==8))&&!(a6==1))))))){ + a18 = 1; + a22 = 1; + a3 = 4; + a5 = 0; + a15 = 1; + a12 = 11; + return -1; + } else if((!(a4==1)&&(((a6==1)&&((a5==1)&&(((a12==10)&&(!(a0==1)&&((a27==1)&&((input==2)&&(((!(a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a22==1)&&(a18==1)))))))))&&(a15==1))))&&(a20==1)))){ + a4 = 1; + a18 = 1; + a22 = 1; + a12 = 8; + a0 = 1; + a3 = 4; + return -1; + } else if(((a3==6)&&((a20==1)&&((!(a15==1)&&((a12==9)&&(!(a27==1)&&(((((input==2)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&!(a4==1))&&!(a5==1))&&!(a6==1)))))&&(a0==1))))){ + a3 = 8; + a18 = 0; + a27 = 1; + a5 = 1; + a6 = 1; + a4 = 1; + a12 = 11; + a22 = 0; + a15 = 1; + return 21; + } else if((!(a18==1)&&(((a3==4)&&((((a22==1)&&((!(a0==1)&&(((a15==1)&&((a4==1)&&(input==6)))&&(a6==1)))&&!(a27==1)))&&!(a5==1))&&(a20==1)))&&(a12==9)))){ + a12 = 8; + a3 = 5; + a5 = 1; + a27 = 1; + a22 = 0; + a0 = 1; + return 24; + } else if(((((((((a0==1)&&((a6==1)&&((a12==8)&&((input==2)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))&&(a3==6))&&(a20==1))&&!(a15==1))&&!(a5==1))&&!(a27==1))&&(a4==1))){ + a3 = 8; + a27 = 1; + a18 = 0; + a22 = 1; + a5 = 1; + a15 = 1; + a0 = 0; + a12 = 12; + return 26; + } else if(((!(a4==1)&&(((a0==1)&&(((a6==1)&&(((a5==1)&&((((input==4)&&!(a27==1))&&(a12==9))&&(a22==1)))&&(a3==6)))&&(a15==1)))&&(a20==1)))&&!(a18==1))){ + a18 = 1; + a5 = 0; + a12 = 10; + a4 = 1; + a27 = 1; + a3 = 8; + a15 = 0; + return 21; + } else if((((a6==1)&&((a5==1)&&((a12==11)&&(!(a4==1)&&((a3==5)&&((a15==1)&&(!(a27==1)&&(!(a22==1)&&((a0==1)&&(((a18==1)||!(a18==1))&&(input==3)))))))))))&&(a20==1))){ + a12 = 9; + a22 = 1; + a5 = 0; + a18 = 0; + return -1; + } else if(((a5==1)&&(((a15==1)&&(!(a0==1)&&(((a6==1)&&((a27==1)&&((((((a18==1)||!(a18==1))&&(input==6))&&!(a4==1))&&(a20==1))&&(a12==8))))&&(a3==5))))&&!(a22==1)))){ + a5 = 0; + a12 = 10; + a3 = 7; + a0 = 1; + a18 = 1; + a4 = 1; + a6 = 0; + return -1; + } else if(((a12==11)&&(((!(a0==1)&&(((!(a6==1)&&((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==2))&&!(a5==1))&&!(a15==1)))&&(a3==7))&&(a27==1)))&&!(a4==1))&&(a20==1)))){ + a3 = 4; + a5 = 1; + a22 = 0; + a15 = 1; + a18 = 0; + a0 = 1; + return -1; + } else if(((a27==1)&&(!(a0==1)&&(((a20==1)&&(((!(a5==1)&&((a3==7)&&((!(a4==1)&&(!(a6==1)&&(input==5)))&&(a12==12))))&&(a22==1))&&!(a15==1)))&&(a18==1))))){ + if((a15==1)){ + a12 = 11; + a22 = 0; + a0 = 1; + a27 = 0; + a3 = 8; + a6 = 1; + }else{ + a5 = 1; + a3 = 5; + a12 = 8; + a18 = 0; + a4 = 1; + a15 = 1; + a0 = 1; + } + return 21; + } else if(((a12==9)&&(((a3==5)&&(!(a27==1)&&((a20==1)&&((a4==1)&&((((a6==1)&&((a5==1)&&(((a18==1)||!(a18==1))&&(input==6))))&&!(a15==1))&&(a22==1))))))&&(a0==1)))){ + a18 = 1; + a27 = 1; + a15 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((((!(a5==1)&&(((!(a27==1)&&((input==1)&&((((((a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1)))))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4))))))&&(a12==10))&&(a4==1)))&&(a0==1))&&!(a15==1))&&(a20==1))){ + a27 = 1; + a22 = 1; + a12 = 8; + a5 = 1; + a15 = 1; + a18 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if((!(a0==1)&&(((a20==1)&&((a15==1)&&((a12==8)&&((a22==1)&&(((a3==6)&&((((a5==1)&&(input==1))&&!(a4==1))&&!(a27==1)))&&!(a6==1))))))&&!(a18==1)))){ + a0 = 1; + a4 = 1; + a3 = 5; + a27 = 1; + return 21; + } else if((((a4==1)&&((a3==7)&&((((a20==1)&&(!(a5==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==5))&&!(a0==1))&&(a12==8))))&&!(a6==1))&&(a15==1))))&&!(a27==1))){ + if((a4==1)){ + a0 = 1; + a22 = 1; + a27 = 1; + a3 = 5; + a18 = 0; + a6 = 1; + a12 = 10; + }else{ + a22 = 1; + a3 = 4; + a18 = 0; + a5 = 1; + a27 = 1; + a0 = 1; + } + return 26; + } else if((((a12==10)&&(((a3==8)&&(((a0==1)&&((a27==1)&&((((((a18==1)||!(a18==1))&&(input==3))&&(a6==1))&&!(a15==1))&&(a20==1))))&&(a4==1)))&&!(a22==1)))&&(a5==1))){ + a18 = 0; + a12 = 8; + a3 = 5; + a15 = 1; + a6 = 0; + a4 = 0; + return 24; + } else if(((!(a15==1)&&(((((a5==1)&&((((a4==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&(a22==1)))&&(a6==1))&&(a0==1)))&&(a20==1))&&!(a27==1))&&(a12==10)))&&(a3==6))){ + a6 = 0; + a15 = 1; + a27 = 1; + a3 = 5; + a18 = 0; + a12 = 12; + a5 = 0; + return -1; + } else if((!(a27==1)&&(((a3==5)&&((a15==1)&&(((a4==1)&&((a6==1)&&(((a20==1)&&(!(a5==1)&&(((a18==1)||!(a18==1))&&(input==1))))&&!(a0==1))))&&(a12==10))))&&!(a22==1)))){ + a5 = 1; + a12 = 8; + a0 = 1; + a6 = 0; + a18 = 0; + a22 = 1; + a27 = 1; + a3 = 7; + return 21; + } else if(((a12==12)&&((a0==1)&&(!(a15==1)&&((a3==7)&&((a20==1)&&((a5==1)&&((((a27==1)&&((input==2)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&(a4==1))&&(a6==1))))))))){ + a15 = 1; + a18 = 1; + a3 = 4; + a27 = 0; + a6 = 0; + a22 = 0; + a4 = 0; + return 21; + } else if((!(a5==1)&&((a20==1)&&(((((a22==1)&&((((a0==1)&&((a27==1)&&(((a18==1)||!(a18==1))&&(input==4))))&&!(a6==1))&&(a12==10)))&&(a3==7))&&!(a4==1))&&!(a15==1))))){ + a4 = 1; + a3 = 5; + a18 = 0; + a5 = 1; + a6 = 1; + return -1; + } else if((((a3==4)&&((a15==1)&&((a0==1)&&((a4==1)&&(((a20==1)&&(!(a6==1)&&((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==1))&&(a5==1))))&&(a27==1))))))&&(a12==10))){ + a6 = 1; + a22 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if((((a27==1)&&(((a20==1)&&(!(a15==1)&&((!(a6==1)&&(((a3==5)&&(((input==4)&&(a12==8))&&(a22==1)))&&!(a18==1)))&&(a0==1))))&&!(a5==1)))&&(a4==1))){ + if((a18==1)){ + a15 = 1; + a12 = 11; + a5 = 1; + a18 = 1; + a22 = 0; + a3 = 7; + a0 = 0; + a4 = 0; + }else{ + a15 = 1; + a5 = 1; + a18 = 1; + a12 = 11; + a3 = 7; + } + return 26; + } else if((((a5==1)&&(((a6==1)&&((a12==9)&&((((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==6))&&(a4==1))&&(a20==1))&&(a3==5))&&!(a27==1))))&&(a0==1)))&&(a15==1))){ + a18 = 0; + a27 = 1; + a12 = 12; + a22 = 1; + a3 = 4; + a6 = 0; + a15 = 0; + return 26; + } else if((!(a0==1)&&((a3==8)&&(!(a6==1)&&(((((((a12==10)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==5)))&&(a15==1))&&(a4==1))&&(a20==1))&&(a5==1))&&!(a27==1)))))){ + a22 = 1; + a18 = 1; + a4 = 0; + a0 = 1; + a12 = 8; + a27 = 1; + a6 = 1; + return -1; + } else if(((a20==1)&&((a12==9)&&(!(a22==1)&&((!(a5==1)&&(((((((input==6)&&((a18==1)||!(a18==1)))&&!(a4==1))&&(a3==8))&&!(a27==1))&&(a0==1))&&(a6==1)))&&(a15==1)))))){ + a3 = 4; + a18 = 1; + a12 = 8; + a22 = 1; + a4 = 1; + a5 = 1; + a27 = 1; + return -1; + } else if(((a4==1)&&(((a6==1)&&(((a0==1)&&((a20==1)&&((a12==8)&&(!(a5==1)&&((input==3)&&((((a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==5)))))))))&&!(a27==1)))&&!(a15==1)))){ + a18 = 0; + a5 = 1; + a3 = 8; + a4 = 0; + a22 = 1; + a12 = 9; + return 21; + } else if(((a12==8)&&((a22==1)&&(!(a0==1)&&((a5==1)&&((((!(a27==1)&&((((input==4)&&((a18==1)||!(a18==1)))&&(a3==7))&&(a20==1)))&&(a15==1))&&(a4==1))&&!(a6==1))))))){ + a0 = 1; + a3 = 6; + a12 = 9; + a18 = 1; + return -1; + } else if((((a20==1)&&((a0==1)&&((a3==7)&&((((((a15==1)&&((input==2)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))))&&(a5==1))&&!(a27==1))&&(a4==1))&&(a6==1)))))&&(a12==11))){ + a18 = 1; + a3 = 8; + a27 = 1; + a22 = 1; + return 21; + } else if((((a3==8)&&((a22==1)&&((!(a0==1)&&((((a4==1)&&((((input==1)&&(a20==1))&&!(a5==1))&&(a12==12)))&&(a27==1))&&!(a18==1)))&&!(a15==1))))&&!(a6==1))){ + a15 = 1; + a22 = 0; + a4 = 0; + a5 = 1; + a6 = 1; + a3 = 5; + return 21; + } else if((((a18==1)&&(((a0==1)&&(((a12==12)&&(!(a27==1)&&((a3==8)&&((a15==1)&&((a5==1)&&((a20==1)&&(input==5)))))))&&(a22==1)))&&!(a4==1)))&&(a6==1))){ + a22 = 0; + a12 = 11; + a27 = 1; + a6 = 0; + a15 = 0; + a4 = 1; + a5 = 0; + a3 = 5; + return 24; + } else if((!(a5==1)&&((((a3==8)&&((a6==1)&&(!(a0==1)&&((a20==1)&&((((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a12==8))&&(a4==1))))))&&!(a27==1))&&!(a15==1)))){ + a5 = 1; + a4 = 0; + a22 = 0; + a15 = 1; + a3 = 6; + a0 = 1; + a27 = 1; + a18 = 1; + return 21; + } else if(((a27==1)&&((a3==6)&&((!(a5==1)&&((a0==1)&&(((a20==1)&&(!(a15==1)&&(((input==3)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a4==1))))&&(a12==8))))&&!(a6==1))))){ + a15 = 1; + a6 = 1; + a22 = 0; + a18 = 0; + a12 = 11; + a4 = 1; + a3 = 8; + return 21; + } else if((((a3==8)&&(((a27==1)&&(!(a15==1)&&((((a20==1)&&(!(a4==1)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==6))))&&(a6==1))&&(a12==12))))&&!(a0==1)))&&!(a5==1))){ + if((a15==1)){ + a0 = 1; + a18 = 0; + a22 = 1; + a15 = 1; + a6 = 0; + a12 = 8; + a3 = 6; + }else{ + a3 = 4; + a27 = 0; + a18 = 0; + a6 = 0; + a22 = 1; + a12 = 9; + } + return -1; + } else if((((a6==1)&&(!(a22==1)&&(!(a4==1)&&(((((((!(a27==1)&&(input==1))&&(a18==1))&&(a12==12))&&(a20==1))&&!(a5==1))&&(a15==1))&&(a3==5)))))&&(a0==1))){ + a12 = 9; + a18 = 0; + a4 = 1; + a22 = 1; + a3 = 8; + return -1; + } else if(((((a0==1)&&((a12==11)&&((a5==1)&&(!(a27==1)&&(!(a6==1)&&(((((input==4)&&((a18==1)||!(a18==1)))&&(a15==1))&&(a22==1))&&(a3==4)))))))&&(a20==1))&&(a4==1))){ + a6 = 1; + a3 = 6; + a4 = 0; + a12 = 10; + a5 = 0; + a22 = 0; + a18 = 0; + a15 = 0; + return 21; + } else if(((a12==11)&&(!(a4==1)&&((!(a27==1)&&(!(a6==1)&&((((a20==1)&&(((input==2)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&(a3==5)))&&!(a5==1))&&(a15==1))))&&!(a0==1))))){ + a4 = 1; + a22 = 1; + a15 = 0; + a18 = 1; + a3 = 6; + a12 = 9; + return 21; + } else if(((a0==1)&&((((a3==5)&&((a5==1)&&(((a4==1)&&(!(a27==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1))&&!(a15==1))))&&(a12==8))))&&(a20==1))&&(a6==1)))){ + a22 = 0; + a0 = 0; + a5 = 0; + a15 = 1; + a4 = 0; + a18 = 0; + a3 = 7; + a27 = 1; + return 26; + } else if(((((a15==1)&&(!(a0==1)&&(!(a6==1)&&((a27==1)&&((a4==1)&&(((input==3)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))||((a3==6)&&((a22==1)&&!(a18==1)))))&&!(a5==1)))))))&&(a12==10))&&(a20==1))){ + a18 = 1; + a0 = 1; + a4 = 0; + a3 = 4; + a22 = 0; + a6 = 1; + a5 = 1; + return -1; + } else if((((a3==5)&&((a12==9)&&(((a4==1)&&(((a5==1)&&(!(a6==1)&&(!(a0==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2)))))&&(a20==1)))&&!(a15==1))))&&(a27==1))){ + a15 = 1; + a3 = 8; + a18 = 1; + a0 = 1; + a22 = 0; + a12 = 11; + return 26; + } else if(((a27==1)&&((!(a6==1)&&(!(a0==1)&&(((a5==1)&&((a4==1)&&((a3==6)&&((a12==12)&&((input==6)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))))))&&!(a15==1))))&&(a20==1)))){ + a15 = 1; + a6 = 1; + a12 = 8; + a0 = 1; + a3 = 4; + a4 = 0; + a22 = 1; + a18 = 0; + return -1; + } else if(((a0==1)&&((a6==1)&&(((!(a5==1)&&((a3==8)&&((a4==1)&&((a15==1)&&((a20==1)&&(!(a27==1)&&((input==4)&&((a18==1)||!(a18==1)))))))))&&(a12==12))&&(a22==1))))){ + a18 = 1; + a27 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + return -1; + } else if((((!(a6==1)&&((!(a27==1)&&(!(a22==1)&&(((a3==7)&&((!(a5==1)&&((input==4)&&!(a4==1)))&&!(a15==1)))&&(a12==8))))&&!(a18==1)))&&(a20==1))&&(a0==1))){ + a27 = 1; + a3 = 4; + a5 = 1; + a18 = 1; + a4 = 1; + a6 = 1; + a15 = 1; + a22 = 1; + return -1; + } else if(((((a12==11)&&((a6==1)&&((a5==1)&&(!(a4==1)&&((a15==1)&&((((input==5)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&!(a0==1))&&(a27==1)))))))&&(a3==7))&&(a20==1))){ + a3 = 5; + a5 = 0; + a4 = 1; + a12 = 10; + a0 = 1; + a18 = 0; + a22 = 1; + return 26; + } else if((!(a4==1)&&((((((a15==1)&&(!(a0==1)&&(((a27==1)&&((input==3)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a12==10))))&&(a20==1))&&(a6==1))&&(a5==1))&&(a3==4)))){ + a0 = 1; + a5 = 0; + a22 = 0; + a3 = 8; + a18 = 1; + return -1; + } else if(((a4==1)&&((a27==1)&&((((a3==4)&&((a15==1)&&(((a20==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==2))&&!(a5==1)))&&(a0==1))))&&(a12==9))&&(a6==1))))){ + a12 = 8; + a18 = 1; + a15 = 0; + a3 = 5; + a22 = 1; + a27 = 0; + a5 = 1; + return 26; + } else if((!(a0==1)&&((a15==1)&&(((a20==1)&&((a5==1)&&(((((((!(a18==1)&&!(a22==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==5))&&(a27==1))&&(a12==11))&&(a4==1))))&&(a6==1))))){ + a18 = 1; + a3 = 4; + a22 = 1; + a0 = 1; + a12 = 8; + return -1; + } else if(((a4==1)&&(!(a0==1)&&((a12==10)&&((a20==1)&&((a18==1)&&((!(a6==1)&&((!(a15==1)&&((a27==1)&&((input==6)&&!(a5==1))))&&!(a22==1)))&&(a3==4)))))))){ + a0 = 1; + a4 = 0; + a5 = 1; + a6 = 1; + a15 = 1; + return 26; + } return calculate_output6(input); + } + + int calculate_output6(int input) { + if(((((a22==1)&&(((((a20==1)&&((((!(a5==1)&&(input==4))&&(a12==11))&&(a4==1))&&(a3==6)))&&(a27==1))&&!(a6==1))&&(a18==1)))&&(a15==1))&&(a0==1))){ + a5 = 1; + a12 = 12; + a18 = 0; + a6 = 1; + return 24; + } else if(((a20==1)&&((((a15==1)&&((a27==1)&&((((((((a18==1)&&(a22==1))&&(a3==5))||(((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1)))))&&(input==4))&&(a0==1))&&!(a4==1))&&(a12==11))))&&(a6==1))&&!(a5==1)))){ + a3 = 7; + a18 = 1; + a4 = 1; + a22 = 1; + a12 = 10; + a6 = 0; + return -1; + } else if(((a12==8)&&((((a15==1)&&((a4==1)&&(((!(a6==1)&&(!(a5==1)&&((a0==1)&&((input==6)&&((a18==1)||!(a18==1))))))&&!(a27==1))&&(a20==1))))&&(a3==4))&&(a22==1)))){ + a3 = 6; + a27 = 1; + a18 = 0; + a12 = 12; + a5 = 1; + a22 = 0; + a15 = 0; + return 24; + } else if(((a0==1)&&((!(a5==1)&&(((a4==1)&&((((input==2)&&((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1))))&&(a20==1))&&(a15==1)))&&(a12==12)))&&(a27==1)))){ + a3 = 6; + a6 = 1; + a27 = 0; + a22 = 0; + a18 = 1; + return 26; + } else if(((a20==1)&&(((a5==1)&&((!(a4==1)&&(((a3==4)&&(((!(a15==1)&&((a22==1)&&(input==6)))&&(a18==1))&&(a27==1)))&&(a6==1)))&&(a12==12)))&&(a0==1)))){ + a15 = 1; + a3 = 6; + a6 = 0; + a22 = 0; + a5 = 0; + a12 = 11; + return -1; + } else if((((a20==1)&&((!(a0==1)&&((a4==1)&&((a15==1)&&(!(a6==1)&&((a12==12)&&((a3==8)&&((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))))))&&(a5==1)))&&(a27==1))){ + a12 = 11; + a0 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + return 26; + } else if(((a12==12)&&((((a4==1)&&(((((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a6==1))&&(a15==1))&&(a5==1))&&(a20==1))&&(a3==4)))&&!(a0==1))&&(a27==1)))){ + a18 = 1; + a22 = 1; + a12 = 8; + a0 = 1; + return -1; + } else if(((a20==1)&&(((!(a5==1)&&(((a15==1)&&((a27==1)&&(!(a0==1)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==2)))))&&(a12==11)))&&(a6==1))&&(a4==1)))){ + a18 = 0; + a3 = 5; + a6 = 0; + a4 = 0; + a5 = 1; + a0 = 1; + a12 = 10; + a22 = 1; + return 26; + } else if(((a27==1)&&(((((a3==8)&&(((a12==10)&&(((a0==1)&&((a4==1)&&((a22==1)&&(input==3))))&&(a20==1)))&&(a5==1)))&&(a6==1))&&!(a18==1))&&(a15==1)))){ + a22 = 0; + a3 = 7; + return -1; + } else if(((a12==8)&&(((((a15==1)&&((!(a0==1)&&((a22==1)&&((((a18==1)&&(input==2))&&!(a4==1))&&!(a27==1))))&&(a5==1)))&&(a3==4))&&(a20==1))&&!(a6==1)))){ + if((a18==1)){ + a3 = 7; + a18 = 0; + a0 = 1; + a6 = 1; + a27 = 1; + }else{ + a3 = 5; + a4 = 1; + a27 = 1; + a22 = 0; + a0 = 1; + } + return 21; + } else if((!(a27==1)&&((a12==11)&&((a18==1)&&(((!(a4==1)&&((((a15==1)&&(((input==6)&&(a22==1))&&(a20==1)))&&(a0==1))&&(a3==8)))&&!(a6==1))&&!(a5==1)))))){ + a18 = 0; + a6 = 1; + return -1; + } else if((((((a20==1)&&((a12==11)&&((a27==1)&&((a22==1)&&((a3==7)&&((!(a4==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&!(a6==1)))))))&&(a0==1))&&(a15==1))&&!(a5==1))){ + a18 = 1; + a12 = 10; + a3 = 5; + return 21; + } else if((((((!(a4==1)&&(((a3==8)&&((!(a6==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a12==11)))&&(a5==1)))&&!(a0==1)))&&!(a22==1))&&!(a27==1))&&(a15==1))&&(a20==1))){ + a12 = 8; + a15 = 0; + a18 = 0; + a4 = 1; + a3 = 7; + return 26; + } else if(((((((!(a27==1)&&((a15==1)&&((a12==10)&&((input==4)&&((((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))||(((a22==1)&&(a18==1))&&(a3==5)))))))&&!(a0==1))&&!(a6==1))&&(a5==1))&&!(a4==1))&&(a20==1))){ + a12 = 8; + a18 = 1; + a27 = 1; + a0 = 1; + a4 = 1; + a3 = 4; + a22 = 0; + return -1; + } else if(((a20==1)&&(!(a15==1)&&(((a12==10)&&(((a6==1)&&((((((input==6)&&!(a18==1))&&!(a27==1))&&!(a4==1))&&!(a0==1))&&(a3==5)))&&(a5==1)))&&(a22==1))))){ + a27 = 1; + a6 = 0; + a3 = 4; + a12 = 9; + a5 = 0; + return -1; + } else if((((a22==1)&&(!(a5==1)&&((a3==4)&&(((a12==10)&&((((a4==1)&&((a27==1)&&(((a18==1)||!(a18==1))&&(input==3))))&&!(a0==1))&&(a20==1)))&&!(a6==1)))))&&!(a15==1))){ + a5 = 1; + a6 = 1; + a18 = 1; + a15 = 1; + a22 = 0; + a0 = 1; + return 21; + } else if((!(a27==1)&&(((!(a15==1)&&(((!(a4==1)&&(((input==3)&&(((a3==8)&&(!(a18==1)&&(a22==1)))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1))))))&&(a5==1)))&&(a12==12))&&(a20==1)))&&(a6==1))&&(a0==1)))){ + a12 = 8; + a15 = 1; + a4 = 1; + a27 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((!(a5==1)&&((a6==1)&&(((a18==1)&&((a4==1)&&(!(a27==1)&&((a20==1)&&((a22==1)&&((a12==8)&&((a3==6)&&(input==4))))))))&&(a15==1))))&&(a0==1))){ + a3 = 4; + a15 = 0; + a5 = 1; + a12 = 9; + return 26; + } else if((((a27==1)&&(!(a6==1)&&(!(a15==1)&&(!(a5==1)&&(((a20==1)&&(((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==4))&&(a12==10)))&&!(a0==1))))))&&(a4==1))){ + a22 = 1; + a5 = 1; + a4 = 0; + a18 = 0; + a3 = 8; + a0 = 1; + return -1; + } else if(((((a4==1)&&((a5==1)&&((a27==1)&&(((!(a0==1)&&((input==2)&&((((!(a22==1)&&(a18==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4)))||((a3==5)&&((a18==1)&&(a22==1))))))&&!(a15==1))&&(a20==1)))))&&!(a6==1))&&(a12==10))){ + a22 = 1; + a0 = 1; + a15 = 1; + a18 = 1; + a6 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((!(a6==1)&&(!(a27==1)&&((a12==11)&&(!(a4==1)&&(((a20==1)&&(((input==3)&&(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1)))))&&!(a15==1)))&&(a5==1))))))&&(a0==1))){ + if((a6==1)){ + a22 = 0; + a18 = 0; + a6 = 1; + a4 = 1; + a27 = 1; + a0 = 0; + a12 = 10; + a3 = 6; + a5 = 0; + }else{ + a18 = 0; + a3 = 5; + a27 = 1; + a15 = 1; + a22 = 0; + a6 = 1; + } + return -1; + } else if(((((a6==1)&&((((((!(a15==1)&&((a0==1)&&((a3==6)&&(input==4))))&&(a27==1))&&!(a22==1))&&(a5==1))&&(a12==8))&&!(a4==1)))&&(a20==1))&&(a18==1))){ + a3 = 8; + a15 = 1; + a6 = 0; + a12 = 9; + return 24; + } else if(((a5==1)&&((a4==1)&&(!(a15==1)&&((a22==1)&&(((a6==1)&&((!(a27==1)&&((a12==10)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a20==1))))&&(a3==5)))&&(a0==1))))))){ + a12 = 8; + a18 = 1; + a15 = 1; + a27 = 1; + a3 = 4; + return -1; + } else if(((a5==1)&&((a0==1)&&(((a12==10)&&((a6==1)&&(((a15==1)&&(((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==5))&&(a3==5))&&!(a4==1)))&&(a20==1))))&&(a27==1))))){ + a12 = 11; + a22 = 1; + a6 = 0; + a15 = 0; + a18 = 0; + a3 = 8; + return 26; + } else if((((!(a15==1)&&(((((a20==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==2))&&!(a27==1)))&&(a12==8))&&!(a0==1))&&(a5==1)))&&!(a4==1))&&(a6==1))){ + a15 = 1; + a18 = 0; + a12 = 11; + a3 = 4; + a22 = 0; + return 21; + } else if((!(a4==1)&&(((a3==4)&&((a20==1)&&((a12==10)&&(((((((input==2)&&!(a18==1))&&(a0==1))&&!(a6==1))&&!(a5==1))&&(a22==1))&&!(a15==1)))))&&(a27==1)))){ + a3 = 7; + a15 = 1; + a6 = 1; + a0 = 0; + a12 = 8; + return -1; + } else if(((!(a15==1)&&(((a0==1)&&(((a20==1)&&(!(a5==1)&&(((input==6)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==7))))&&(a6==1))))&&!(a4==1)))&&!(a27==1)))&&(a12==12))){ + a18 = 0; + a3 = 5; + a12 = 10; + a5 = 1; + a4 = 1; + a27 = 1; + a15 = 1; + a22 = 0; + return 26; + } else if((((a0==1)&&((a5==1)&&((a4==1)&&((a12==9)&&(((!(a6==1)&&((input==4)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))||((a3==7)&&(!(a18==1)&&(a22==1))))))&&(a27==1))&&(a20==1))))))&&(a15==1))){ + a3 = 4; + a6 = 1; + a18 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if(((((a0==1)&&((a20==1)&&((a12==8)&&(!(a22==1)&&((((!(a6==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&!(a15==1))&&(a4==1))&&(a3==5))))))&&!(a5==1))&&(a27==1))){ + a18 = 0; + a3 = 8; + a5 = 1; + a12 = 11; + a15 = 1; + return 21; + } else if(((!(a27==1)&&((((((!(a15==1)&&((a4==1)&&((!(a5==1)&&(input==4))&&(a6==1))))&&(a20==1))&&(a22==1))&&(a3==8))&&(a12==10))&&!(a18==1)))&&(a0==1))){ + a6 = 0; + a22 = 0; + a4 = 0; + a18 = 1; + a3 = 4; + a5 = 1; + return 21; + } else if(((!(a0==1)&&(((((!(a18==1)&&((!(a4==1)&&(((input==2)&&(a5==1))&&(a6==1)))&&(a15==1)))&&!(a22==1))&&(a3==4))&&!(a27==1))&&(a20==1)))&&(a12==11))){ + if((a20==1)){ + a4 = 1; + a5 = 0; + a15 = 0; + a3 = 5; + a12 = 8; + }else{ + a5 = 0; + a4 = 1; + a27 = 1; + a22 = 1; + } + return 26; + } else if(((!(a6==1)&&(((a27==1)&&((!(a22==1)&&((a3==7)&&((a12==11)&&((((a15==1)&&(input==2))&&!(a0==1))&&(a4==1)))))&&!(a18==1)))&&(a20==1)))&&(a5==1))){ + a12 = 10; + a0 = 1; + a3 = 8; + a27 = 0; + a5 = 0; + a6 = 1; + return -1; + } else if(((a15==1)&&((((a20==1)&&((a27==1)&&(((a3==4)&&((((((a18==1)||!(a18==1))&&(input==4))&&!(a6==1))&&(a4==1))&&(a5==1)))&&!(a0==1))))&&(a12==9))&&(a22==1)))){ + a6 = 1; + a3 = 6; + a0 = 1; + a27 = 0; + a18 = 1; + a15 = 0; + a12 = 11; + a4 = 0; + return 24; + } else if(((!(a15==1)&&((a3==7)&&(!(a5==1)&&((a6==1)&&(((a12==8)&&((a18==1)&&((!(a27==1)&&((input==5)&&(a20==1)))&&(a22==1))))&&!(a4==1))))))&&!(a0==1))){ + if((a4==1)){ + a5 = 1; + a27 = 1; + a0 = 1; + a15 = 1; + a4 = 1; + a3 = 5; + }else{ + a12 = 10; + a6 = 0; + a5 = 1; + a22 = 0; + a3 = 6; + } + return -1; + } else if(((a3==5)&&((a0==1)&&((a20==1)&&((!(a15==1)&&(!(a27==1)&&(!(a6==1)&&(((a12==12)&&((!(a5==1)&&(input==6))&&!(a18==1)))&&(a22==1)))))&&!(a4==1)))))){ + a22 = 0; + a27 = 1; + a3 = 7; + a5 = 1; + a18 = 1; + a6 = 1; + return 26; + } else if(((a15==1)&&((a12==11)&&(!(a4==1)&&(((a27==1)&&(((a20==1)&&((((((!(a22==1)&&(a18==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==6))&&!(a5==1)))&&!(a0==1)))&&(a6==1)))))){ + a18 = 1; + a0 = 1; + a5 = 1; + a4 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + return -1; + } else if(((((((!(a15==1)&&(!(a4==1)&&(((input==4)&&(((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1)))))&&(a0==1))))&&(a12==9))&&(a5==1))&&!(a6==1))&&(a20==1))&&!(a27==1))){ + a3 = 8; + a22 = 0; + a6 = 1; + a12 = 12; + a18 = 0; + a27 = 1; + return -1; + } else if((((((a27==1)&&(!(a6==1)&&((a5==1)&&(((a3==4)&&((!(a4==1)&&((input==3)&&(a18==1)))&&(a0==1)))&&(a20==1)))))&&(a22==1))&&!(a15==1))&&(a12==12))){ + a15 = 1; + a12 = 11; + a0 = 0; + a18 = 0; + a6 = 1; + a3 = 6; + a5 = 0; + return 21; + } else if(((a27==1)&&((((a18==1)&&((((a20==1)&&((a12==12)&&(((a6==1)&&((input==5)&&(a22==1)))&&!(a5==1))))&&(a3==7))&&(a15==1)))&&!(a0==1))&&(a4==1)))){ + a0 = 1; + a12 = 10; + a4 = 0; + a15 = 0; + a27 = 0; + a6 = 0; + a3 = 4; + return 26; + } else if(((a12==10)&&((!(a5==1)&&((((a20==1)&&(!(a6==1)&&((a4==1)&&((input==4)&&(((a3==8)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7))))))))&&(a0==1))&&(a27==1)))&&!(a15==1)))){ + a18 = 0; + a22 = 1; + a3 = 4; + return -1; + } else if(((a20==1)&&((a27==1)&&((a4==1)&&((a3==8)&&((a15==1)&&((a12==10)&&((((a5==1)&&((input==2)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))&&(a6==1))&&!(a0==1))))))))){ + a18 = 1; + a0 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + return -1; + } else if(((a3==4)&&(((a20==1)&&((a15==1)&&((a12==11)&&((((!(a6==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4)))&&!(a4==1))&&(a27==1))&&(a5==1)))))&&(a0==1)))){ + a22 = 1; + a18 = 1; + a4 = 1; + a12 = 8; + a6 = 1; + return -1; + } else if(((((a12==9)&&((((a15==1)&&((((input==3)&&(((a3==5)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))))&&(a20==1))&&!(a27==1)))&&!(a0==1))&&(a5==1)))&&(a6==1))&&!(a4==1))){ + if((a22==1)){ + a6 = 0; + a3 = 8; + a18 = 1; + a0 = 1; + a27 = 1; + a22 = 1; + a4 = 1; + a12 = 8; + }else{ + a0 = 1; + a18 = 0; + a12 = 8; + a22 = 0; + a3 = 4; + a27 = 1; + } + return 26; + } else if(((a4==1)&&((a12==9)&&(((!(a15==1)&&(((a20==1)&&(((input==6)&&((((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==4)))||((a3==5)&&((a18==1)&&(a22==1)))))&&!(a0==1)))&&(a27==1)))&&(a6==1))&&(a5==1))))){ + a0 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if(((a6==1)&&(((!(a0==1)&&((a12==11)&&((a15==1)&&((a4==1)&&((a20==1)&&((input==3)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1))))))))))&&!(a5==1))&&!(a27==1)))){ + a3 = 7; + a5 = 1; + a22 = 0; + a27 = 1; + a12 = 9; + a6 = 0; + a18 = 0; + a0 = 1; + return 21; + } else if((((a5==1)&&(((((a3==7)&&((a12==8)&&((a22==1)&&((!(a0==1)&&(!(a15==1)&&(input==5)))&&!(a6==1)))))&&(a20==1))&&(a4==1))&&(a18==1)))&&!(a27==1))){ + if((a22==1)){ + a15 = 1; + a12 = 11; + a3 = 6; + a6 = 1; + a27 = 1; + a5 = 0; + }else{ + a12 = 9; + a15 = 1; + a27 = 1; + a4 = 0; + } + return -1; + } else if(((a20==1)&&(!(a6==1)&&(((((!(a27==1)&&((a3==7)&&((a12==11)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==4)))))&&!(a4==1))&&(a15==1))&&(a0==1))&&(a5==1))))){ + a12 = 8; + a4 = 1; + a22 = 1; + a3 = 4; + a27 = 1; + a6 = 1; + a18 = 1; + return -1; + } else if(((((a15==1)&&((a27==1)&&((!(a5==1)&&((!(a22==1)&&((a20==1)&&((!(a18==1)&&(input==5))&&(a3==6))))&&!(a0==1)))&&!(a6==1))))&&!(a4==1))&&(a12==12))){ + if((a15==1)){ + a27 = 0; + a3 = 5; + a12 = 8; + a0 = 1; + }else{ + a6 = 1; + a12 = 8; + a5 = 1; + a22 = 1; + a27 = 0; + a3 = 5; + } + return 21; + } else if((((a20==1)&&((a4==1)&&(!(a27==1)&&((a15==1)&&((a12==8)&&(((a6==1)&&((a3==8)&&(!(a22==1)&&(((a18==1)||!(a18==1))&&(input==2)))))&&!(a5==1)))))))&&(a0==1))){ + a4 = 0; + a12 = 12; + a6 = 0; + a22 = 1; + a5 = 1; + a18 = 1; + a27 = 1; + a3 = 6; + return 26; + } else if((((!(a5==1)&&((a6==1)&&(!(a0==1)&&(((a15==1)&&((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==4))&&(a27==1))&&(a20==1)))&&!(a4==1)))))&&(a12==12))&&(a3==5))){ + a22 = 1; + a0 = 1; + a18 = 0; + a27 = 0; + a3 = 8; + a6 = 0; + a12 = 11; + return -1; + } else if((((a3==4)&&(((!(a0==1)&&((!(a5==1)&&((!(a27==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==4)))&&(a6==1)))&&(a12==8)))&&(a4==1))&&(a15==1)))&&(a20==1))){ + if((a15==1)){ + a18 = 1; + a0 = 1; + a27 = 1; + a4 = 0; + a3 = 5; + a15 = 0; + a22 = 0; + a5 = 1; + }else{ + a3 = 5; + a5 = 1; + a22 = 1; + a0 = 1; + a18 = 1; + a27 = 1; + } + return 26; + } else if((((a0==1)&&((((((!(a5==1)&&((a20==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==4))))&&(a27==1))&&!(a4==1))&&(a3==8))&&!(a15==1))&&(a12==9)))&&(a6==1))){ + a3 = 6; + a27 = 0; + a22 = 0; + a15 = 1; + a6 = 0; + a5 = 1; + a18 = 0; + return 26; + } else if((((((a15==1)&&(!(a4==1)&&((a3==4)&&((a6==1)&&((a0==1)&&(!(a27==1)&&((a20==1)&&((input==2)&&!(a5==1)))))))))&&!(a22==1))&&(a12==11))&&!(a18==1))){ + if((a12==8)){ + a5 = 1; + a6 = 0; + a3 = 7; + a0 = 0; + a15 = 0; + a27 = 1; + a18 = 1; + }else{ + a6 = 0; + a3 = 8; + a27 = 1; + a18 = 1; + a22 = 1; + } + return -1; + } else if((((a12==9)&&((a3==7)&&((a18==1)&&(!(a0==1)&&((a4==1)&&(!(a5==1)&&(!(a27==1)&&((((a20==1)&&(input==1))&&(a15==1))&&(a6==1)))))))))&&(a22==1))){ + a15 = 0; + a18 = 0; + a3 = 8; + a27 = 1; + return -1; + } else if((!(a6==1)&&(((a0==1)&&((a15==1)&&((a20==1)&&((a4==1)&&((a5==1)&&(((input==2)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6)))||((!(a18==1)&&(a22==1))&&(a3==6))))&&(a27==1)))))))&&(a12==12)))){ + a3 = 4; + a12 = 8; + a22 = 1; + a6 = 1; + a18 = 1; + return -1; + } else if(((a22==1)&&((!(a4==1)&&(!(a6==1)&&(!(a27==1)&&((a20==1)&&(((((a12==8)&&((a3==8)&&(input==5)))&&(a18==1))&&(a5==1))&&(a0==1))))))&&!(a15==1)))){ + a15 = 1; + a4 = 1; + a6 = 1; + a3 = 4; + a27 = 1; + return -1; + } else if((!(a18==1)&&((((a20==1)&&((!(a5==1)&&(((((a0==1)&&(!(a27==1)&&(input==6)))&&(a3==7))&&(a12==12))&&(a4==1)))&&(a22==1)))&&!(a6==1))&&!(a15==1)))){ + a18 = 1; + a22 = 0; + a3 = 5; + a6 = 1; + a12 = 10; + return 21; + } else if(((a0==1)&&(!(a15==1)&&((a27==1)&&(!(a4==1)&&((a20==1)&&(!(a6==1)&&((((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==5))&&(a12==11))&&(a5==1))&&(a3==5))))))))){ + a18 = 1; + a12 = 8; + a22 = 1; + a3 = 7; + a15 = 1; + return -1; + } else if(((a15==1)&&((((a4==1)&&(((a0==1)&&(((((input==2)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a12==10))&&(a27==1))&&(a3==5)))&&!(a5==1)))&&!(a6==1))&&(a20==1)))){ + a22 = 0; + a18 = 0; + return 21; + } else if((((a20==1)&&(!(a6==1)&&((((a15==1)&&(((a12==8)&&((input==6)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))))&&(a4==1)))&&!(a0==1))&&(a5==1))))&&!(a27==1))){ + if((a6==1)){ + a27 = 1; + a3 = 5; + a6 = 1; + a22 = 0; + a0 = 1; + a18 = 1; + }else{ + a22 = 0; + a18 = 1; + a4 = 0; + a27 = 1; + a3 = 4; + a12 = 9; + a0 = 1; + a6 = 1; + } + return -1; + } else if(((a3==4)&&(!(a5==1)&&((a18==1)&&((((!(a22==1)&&((a0==1)&&(((a20==1)&&((input==3)&&(a15==1)))&&(a6==1))))&&(a12==10))&&(a4==1))&&(a27==1)))))){ + a18 = 0; + a12 = 11; + a22 = 1; + return 21; + } else if(((a3==6)&&(((((a4==1)&&((((a5==1)&&(!(a6==1)&&((input==2)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))&&(a27==1))&&!(a0==1)))&&!(a15==1))&&(a12==9))&&(a20==1)))){ + a12 = 10; + a27 = 0; + a18 = 1; + a22 = 1; + a6 = 1; + a4 = 0; + a5 = 0; + a0 = 1; + a3 = 8; + return 26; + } else if((((a4==1)&&((a0==1)&&((a3==5)&&((((!(a6==1)&&(!(a5==1)&&((a15==1)&&(!(a22==1)&&(input==1)))))&&!(a27==1))&&(a20==1))&&(a18==1)))))&&(a12==11))){ + a6 = 1; + a22 = 1; + a15 = 0; + a18 = 0; + a3 = 6; + a12 = 10; + a27 = 1; + return 21; + } else if((!(a22==1)&&((a15==1)&&(((((a20==1)&&((a27==1)&&((!(a0==1)&&(!(a18==1)&&((a3==8)&&(input==2))))&&(a4==1))))&&!(a5==1))&&(a12==9))&&(a6==1))))){ + a12 = 12; + a22 = 1; + a6 = 0; + a15 = 0; + a5 = 1; + a4 = 0; + a18 = 1; + a0 = 1; + a3 = 4; + return 21; + } else if((((a6==1)&&((!(a15==1)&&((!(a0==1)&&((a3==6)&&((a18==1)&&(((a4==1)&&(!(a22==1)&&(input==5)))&&(a20==1)))))&&(a5==1)))&&(a12==11)))&&(a27==1))){ + a22 = 1; + a12 = 8; + a3 = 4; + a0 = 1; + a15 = 1; + return -1; + } else if(((((a18==1)&&(!(a27==1)&&((a5==1)&&((!(a15==1)&&((a3==8)&&((a0==1)&&((!(a6==1)&&(input==4))&&(a12==12)))))&&(a20==1)))))&&!(a4==1))&&!(a22==1))){ + a6 = 1; + a3 = 7; + a12 = 10; + a15 = 1; + a5 = 0; + a18 = 0; + a27 = 1; + a4 = 1; + return 26; + } else if((((!(a15==1)&&(!(a4==1)&&((a12==11)&&(!(a6==1)&&((!(a0==1)&&((input==5)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))))&&!(a27==1))))))&&(a20==1))&&(a5==1))){ + a12 = 10; + a18 = 1; + a15 = 1; + a22 = 1; + a0 = 1; + a3 = 6; + a6 = 1; + return 26; + } else if(((a6==1)&&((a20==1)&&(((a12==10)&&((!(a0==1)&&(((!(a5==1)&&((input==6)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&(a3==5))&&(a27==1)))&&!(a15==1)))&&(a4==1))))){ + a15 = 1; + a6 = 0; + a18 = 0; + a22 = 1; + a3 = 4; + a0 = 1; + return 26; + } else if(((a27==1)&&(!(a15==1)&&((((((a12==10)&&(!(a5==1)&&((a6==1)&&((input==1)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))))))&&(a0==1))&&(a3==4))&&!(a4==1))&&(a20==1))))){ + a12 = 12; + a22 = 0; + a18 = 0; + a6 = 0; + a5 = 1; + a3 = 8; + return 21; + } else if(((((a5==1)&&((((a20==1)&&(((a0==1)&&(((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==7)))||((!(a18==1)&&(a22==1))&&(a3==7)))&&(input==4)))&&(a15==1)))&&(a4==1))&&!(a27==1)))&&!(a6==1))&&(a12==10))){ + a27 = 1; + a3 = 4; + a15 = 0; + a18 = 0; + a4 = 0; + a0 = 0; + a22 = 1; + a12 = 9; + a5 = 0; + return 21; + } else if((((a22==1)&&((!(a15==1)&&(!(a27==1)&&((((a3==6)&&((((a20==1)&&(input==5))&&(a4==1))&&!(a18==1)))&&(a5==1))&&(a12==9))))&&!(a0==1)))&&(a6==1))){ + a4 = 0; + a27 = 1; + a22 = 0; + a12 = 11; + a3 = 5; + return -1; + } else if(((a6==1)&&(((a12==11)&&(((a3==4)&&(!(a5==1)&&((a0==1)&&((((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&!(a4==1))&&(a20==1)))))&&!(a27==1)))&&(a15==1)))){ + a22 = 0; + a4 = 1; + a12 = 10; + a5 = 1; + a27 = 1; + a18 = 0; + a6 = 0; + return 26; + } else if((!(a15==1)&&((a18==1)&&((a3==5)&&((a20==1)&&(!(a27==1)&&(((((a12==8)&&((a5==1)&&(!(a4==1)&&(input==1))))&&(a6==1))&&!(a22==1))&&!(a0==1)))))))){ + a15 = 1; + a27 = 1; + a3 = 4; + a6 = 0; + a12 = 10; + return 21; + } else if((((a27==1)&&(((!(a5==1)&&((((a22==1)&&((a20==1)&&(!(a15==1)&&((a0==1)&&(input==5)))))&&(a3==4))&&!(a18==1)))&&!(a6==1))&&(a12==10)))&&!(a4==1))){ + a22 = 0; + a15 = 1; + a3 = 5; + a6 = 1; + a27 = 0; + return 21; + } else if((((a0==1)&&(((a6==1)&&(!(a4==1)&&(!(a27==1)&&((a3==8)&&(((a12==11)&&((a15==1)&&((input==3)&&(a20==1))))&&(a5==1))))))&&!(a22==1)))&&(a18==1))){ + a5 = 0; + a12 = 8; + a3 = 7; + return -1; + } else if(((!(a27==1)&&((a20==1)&&((a5==1)&&(((!(a6==1)&&(((input==4)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7))))&&!(a0==1)))&&!(a15==1))&&!(a4==1)))))&&(a12==8))){ + a4 = 1; + a18 = 0; + a22 = 1; + a3 = 5; + return 21; + } else if((!(a22==1)&&((a18==1)&&(!(a4==1)&&(((!(a5==1)&&((!(a6==1)&&(!(a15==1)&&(((input==6)&&(a20==1))&&(a12==10))))&&!(a27==1)))&&!(a0==1))&&(a3==6)))))){ + a22 = 1; + a27 = 1; + a4 = 1; + a5 = 1; + a12 = 11; + a3 = 5; + return 26; + } else if(((a12==10)&&((((((!(a5==1)&&(((a27==1)&&(((a0==1)&&(input==6))&&(a20==1)))&&!(a6==1)))&&!(a18==1))&&(a3==8))&&(a15==1))&&(a4==1))&&!(a22==1)))){ + if((a15==1)){ + a12 = 11; + a0 = 0; + a3 = 6; + a22 = 1; + a15 = 0; + }else{ + a6 = 1; + a4 = 0; + a3 = 7; + a22 = 1; + } + return 21; + } else if(((a6==1)&&((a20==1)&&(((a5==1)&&((a12==11)&&(((!(a15==1)&&((input==5)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))))&&!(a0==1))&&!(a4==1))))&&!(a27==1))))){ + a4 = 1; + a6 = 0; + a0 = 1; + a3 = 4; + a22 = 0; + a18 = 1; + a12 = 10; + return -1; + } else if((((((a6==1)&&((a15==1)&&((((((a20==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&!(a0==1))&&!(a4==1))&&(a5==1))&&(a27==1))))&&(a3==6))&&(a12==11))&&!(a22==1))){ + if((a18==1)){ + a15 = 0; + a22 = 1; + a3 = 8; + a5 = 0; + a18 = 0; + }else{ + a5 = 0; + a12 = 8; + a6 = 0; + a0 = 1; + a18 = 0; + a15 = 0; + a27 = 0; + } + return 21; + } else if((!(a27==1)&&((a12==11)&&((a20==1)&&((a6==1)&&(((((a3==4)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&!(a5==1)))&&(a4==1))&&(a0==1))&&(a15==1))))))){ + a27 = 1; + a18 = 1; + a12 = 8; + a5 = 1; + a22 = 1; + return -1; + } else if((!(a6==1)&&((a3==5)&&(!(a15==1)&&((a4==1)&&((((a20==1)&&((a12==10)&&(!(a27==1)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==1)))))&&!(a5==1))&&!(a0==1))))))){ + a12 = 8; + a27 = 1; + a5 = 1; + a6 = 1; + a18 = 1; + a22 = 1; + a15 = 1; + a4 = 0; + a3 = 6; + a0 = 1; + return 26; + } else if(((a20==1)&&(!(a27==1)&&(((!(a6==1)&&((a0==1)&&((a15==1)&&((((((!(a22==1)&&(a18==1))&&(a3==7))||((a3==7)&&(!(a18==1)&&!(a22==1))))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==2))&&(a5==1)))))&&(a12==12))&&(a4==1))))){ + a4 = 0; + a22 = 1; + a12 = 10; + a6 = 1; + a18 = 1; + a3 = 6; + return -1; + } else if((((((((a12==11)&&(!(a5==1)&&(((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==2))&&(a15==1))&&(a20==1))))&&(a27==1))&&(a0==1))&&(a3==6))&&!(a4==1))&&!(a6==1))){ + a5 = 1; + a18 = 1; + a22 = 1; + a4 = 1; + a6 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((a27==1)&&((((a12==10)&&((((a6==1)&&(!(a4==1)&&((input==5)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a22==1)&&(a18==1))))||(((a22==1)&&!(a18==1))&&(a3==8))))))&&(a5==1))&&(a20==1)))&&(a0==1))&&(a15==1)))){ + a12 = 8; + a3 = 4; + a22 = 1; + a18 = 1; + a4 = 1; + return -1; + } else if((!(a22==1)&&((!(a5==1)&&((((!(a18==1)&&((a6==1)&&(!(a4==1)&&(!(a0==1)&&((a20==1)&&(input==6))))))&&(a3==6))&&!(a15==1))&&(a12==9)))&&(a27==1)))){ + a18 = 1; + a3 = 4; + a12 = 8; + a15 = 1; + a5 = 1; + a4 = 1; + a0 = 1; + a22 = 1; + return -1; + } else if(((a20==1)&&((a5==1)&&(!(a4==1)&&(!(a0==1)&&((((!(a22==1)&&((a3==6)&&(((input==4)&&((a18==1)||!(a18==1)))&&!(a27==1))))&&!(a6==1))&&!(a15==1))&&(a12==9))))))){ + a3 = 4; + a18 = 0; + return -1; + } else if(((((((!(a15==1)&&(((((input==1)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a6==1))&&!(a5==1))&&(a3==8)))&&(a27==1))&&(a12==8))&&(a20==1))&&(a4==1))&&(a0==1))){ + a15 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + a5 = 1; + a6 = 1; + return -1; + } else if((((((!(a0==1)&&(((((input==4)&&(((a3==8)&&((a22==1)&&(a18==1)))||(((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==7)))))&&(a5==1))&&(a12==10))&&(a15==1)))&&(a20==1))&&!(a27==1))&&(a6==1))&&!(a4==1))){ + a0 = 1; + a3 = 8; + a27 = 1; + a12 = 8; + a22 = 1; + a4 = 1; + a18 = 0; + return -1; + } else if(((a20==1)&&(((a0==1)&&((a12==12)&&(((a5==1)&&((((a27==1)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==6)))&&!(a4==1))&&(a3==7)))&&(a6==1))))&&!(a15==1)))){ + a6 = 0; + a18 = 1; + a27 = 0; + a22 = 1; + a4 = 1; + return 21; + } else if(((a18==1)&&(((((a20==1)&&(!(a27==1)&&((!(a6==1)&&((a5==1)&&(((input==5)&&!(a0==1))&&(a3==6))))&&!(a15==1))))&&!(a22==1))&&!(a4==1))&&(a12==8)))){ + a3 = 5; + a18 = 0; + a12 = 10; + a22 = 1; + a6 = 1; + return -1; + } else if(((((a20==1)&&(!(a0==1)&&((((a6==1)&&(!(a18==1)&&((!(a5==1)&&((input==4)&&(a27==1)))&&!(a15==1))))&&(a3==6))&&(a4==1))))&&(a12==8))&&!(a22==1))){ + a3 = 4; + a6 = 0; + a12 = 10; + a0 = 1; + a15 = 1; + return -1; + } else if((((a3==5)&&((a22==1)&&((((a27==1)&&(!(a4==1)&&(!(a5==1)&&(((a0==1)&&((a12==8)&&(input==2)))&&(a20==1)))))&&(a6==1))&&!(a18==1))))&&(a15==1))){ + a18 = 1; + a22 = 0; + a5 = 1; + a12 = 10; + a6 = 0; + return 26; + } else if(((a12==10)&&((a22==1)&&((a18==1)&&(((a4==1)&&((a20==1)&&((((a5==1)&&(((a3==8)&&(input==6))&&!(a15==1)))&&(a0==1))&&!(a6==1))))&&(a27==1)))))){ + a18 = 0; + a3 = 5; + a5 = 0; + a4 = 0; + a0 = 0; + a12 = 9; + a15 = 1; + return 21; + } else if(((!(a6==1)&&(((((((a3==4)&&((a20==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==4))))&&(a12==8))&&(a5==1))&&(a15==1))&&(a4==1))&&!(a0==1)))&&!(a27==1))){ + a0 = 1; + a6 = 1; + a22 = 0; + a18 = 1; + a27 = 1; + a3 = 7; + return -1; + } else if((((a3==4)&&(((((!(a15==1)&&(!(a0==1)&&((a20==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==5)))))&&(a4==1))&&(a12==8))&&!(a27==1))&&(a6==1)))&&(a5==1))){ + a5 = 0; + a18 = 0; + a22 = 1; + a6 = 0; + a12 = 9; + return 24; + } else if(((a0==1)&&(!(a4==1)&&((a20==1)&&(((((a3==7)&&((((a15==1)&&(!(a5==1)&&(input==2)))&&!(a27==1))&&!(a6==1)))&&!(a18==1))&&(a22==1))&&(a12==12)))))){ + a27 = 1; + a22 = 0; + a5 = 1; + a3 = 8; + a18 = 1; + a12 = 10; + return 26; + } else if(((a6==1)&&(((!(a27==1)&&((a12==12)&&(((a20==1)&&(((input==3)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))||((a3==8)&&((a22==1)&&!(a18==1)))))&&!(a5==1)))&&(a0==1))))&&!(a4==1))&&(a15==1)))){ + a22 = 1; + a5 = 1; + a27 = 1; + a18 = 1; + a3 = 4; + a4 = 1; + a12 = 8; + return -1; + } else if(((((((!(a0==1)&&((a5==1)&&((((((a22==1)&&!(a18==1))&&(a3==7))||(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7))))&&(input==2))&&(a12==11))))&&(a6==1))&&!(a27==1))&&(a15==1))&&(a20==1))&&!(a4==1))){ + a4 = 1; + a3 = 6; + a6 = 0; + a22 = 0; + a27 = 1; + a18 = 1; + a0 = 1; + a12 = 8; + return -1; + } else if(((a5==1)&&((!(a27==1)&&((a12==8)&&((!(a0==1)&&((a4==1)&&((input==5)&&(((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4)))))))&&!(a15==1))))&&(a20==1)))){ + if((a15==1)){ + a4 = 0; + a6 = 1; + a22 = 0; + a0 = 1; + a15 = 1; + a27 = 1; + a3 = 4; + a18 = 0; + }else{ + a27 = 1; + a3 = 6; + a18 = 0; + a0 = 1; + a4 = 0; + a15 = 1; + a22 = 0; + a6 = 1; + } + return -1; + } else if((!(a4==1)&&(((a15==1)&&((a12==9)&&((((a6==1)&&(((input==6)&&(((a3==8)&&((a22==1)&&!(a18==1)))||(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))))&&!(a27==1)))&&(a5==1))&&!(a0==1))))&&(a20==1)))){ + a12 = 8; + a27 = 1; + a18 = 0; + a3 = 5; + a0 = 1; + a22 = 1; + return 24; + } else if(((a6==1)&&(((a27==1)&&(((((a20==1)&&(!(a4==1)&&((input==5)&&(((a3==6)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))))))&&!(a15==1))&&(a12==8))&&!(a5==1)))&&!(a0==1)))){ + a15 = 1; + a5 = 1; + a0 = 1; + a18 = 0; + a3 = 5; + a22 = 0; + return -1; + } else if(((a20==1)&&((a4==1)&&(((((a3==5)&&(!(a0==1)&&(!(a5==1)&&((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==4))&&!(a15==1)))))&&(a12==11))&&(a6==1))&&!(a27==1))))){ + a18 = 0; + a3 = 6; + a22 = 1; + a6 = 0; + a15 = 1; + a12 = 8; + a0 = 1; + a5 = 1; + a27 = 1; + return 26; + } else if((((a6==1)&&((a5==1)&&(!(a27==1)&&(((((((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))||((a3==8)&&((a22==1)&&!(a18==1))))&&(input==1))&&(a15==1))&&!(a4==1))&&(a20==1))&&(a0==1)))))&&(a12==11))){ + a5 = 0; + a27 = 1; + a12 = 12; + a18 = 0; + a3 = 5; + a22 = 0; + a4 = 1; + return 26; + } else if((((a12==9)&&((((a27==1)&&((((!(a15==1)&&((a0==1)&&(((a18==1)||!(a18==1))&&(input==2))))&&(a3==8))&&(a20==1))&&!(a22==1)))&&(a6==1))&&!(a5==1)))&&(a4==1))){ + a18 = 0; + a12 = 10; + a6 = 0; + a0 = 0; + a4 = 0; + a3 = 4; + return 21; + } else if((!(a0==1)&&((a22==1)&&((a5==1)&&(!(a6==1)&&((a3==8)&&((a15==1)&&((((a27==1)&&(!(a4==1)&&(((a18==1)||!(a18==1))&&(input==5))))&&(a20==1))&&(a12==9))))))))){ + a4 = 1; + a6 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + a0 = 1; + return -1; + } else if(((((!(a5==1)&&((a20==1)&&(!(a22==1)&&((a4==1)&&((((a6==1)&&(!(a0==1)&&(input==1)))&&(a12==11))&&(a3==5))))))&&(a27==1))&&(a15==1))&&(a18==1))){ + a3 = 6; + a12 = 12; + a18 = 0; + a4 = 0; + a0 = 1; + a15 = 0; + return -1; + } else if(((!(a15==1)&&((!(a5==1)&&((a4==1)&&(((a3==6)&&(((a6==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5)))&&(a12==8)))&&(a20==1))))&&!(a0==1)))&&(a27==1))){ + if((a6==1)){ + a22 = 1; + a15 = 1; + a3 = 7; + a12 = 11; + a5 = 1; + a4 = 0; + a18 = 0; + a6 = 0; + }else{ + a18 = 1; + a12 = 11; + a15 = 1; + a5 = 1; + a0 = 1; + a3 = 7; + a6 = 0; + a22 = 1; + } + return 26; + } else if(((a20==1)&&((((((a12==9)&&(!(a4==1)&&(!(a6==1)&&(!(a0==1)&&((input==2)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))))&&!(a5==1))&&(a3==6))&&(a15==1))&&(a27==1)))){ + a22 = 0; + a3 = 4; + a15 = 0; + a12 = 10; + a18 = 0; + a5 = 1; + a0 = 1; + a6 = 1; + a27 = 0; + return 21; + } else if(((((((((!(a0==1)&&((((a4==1)&&(input==2))&&(a15==1))&&(a20==1)))&&(a12==12))&&(a6==1))&&(a22==1))&&(a3==4))&&(a5==1))&&(a18==1))&&!(a27==1))){ + if((a20==1)){ + a15 = 0; + a12 = 8; + a3 = 7; + a22 = 0; + a5 = 0; + }else{ + a4 = 0; + a0 = 1; + a27 = 1; + a18 = 0; + a22 = 0; + a3 = 7; + } + return -1; + } else if(((a20==1)&&((((!(a27==1)&&((a12==11)&&((a5==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==2))&&(a4==1)))))&&(a6==1))&&!(a15==1))&&!(a0==1)))){ + a3 = 6; + a27 = 1; + a6 = 0; + a5 = 0; + a22 = 1; + a0 = 1; + a12 = 8; + a18 = 0; + return 26; + } else if(((a12==11)&&(!(a27==1)&&((((a5==1)&&(((a20==1)&&((((!(a18==1)&&(input==5))&&(a3==7))&&(a0==1))&&!(a4==1)))&&!(a22==1)))&&!(a15==1))&&(a6==1))))){ + if((a3==4)){ + a5 = 0; + a27 = 1; + a0 = 0; + a3 = 6; + }else{ + a12 = 10; + a6 = 0; + a15 = 1; + a4 = 1; + a3 = 8; + a22 = 1; + a27 = 1; + a18 = 1; + } + return 24; + } else if(((a3==4)&&((a20==1)&&(!(a15==1)&&((a12==11)&&((a5==1)&&(((((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==2))&&!(a6==1))&&!(a4==1))&&!(a0==1))&&(a27==1)))))))){ + a22 = 0; + a0 = 1; + a18 = 1; + a6 = 1; + a4 = 1; + a15 = 1; + a3 = 5; + a12 = 10; + return -1; + } else if(((a27==1)&&((a12==12)&&(((((!(a4==1)&&((a20==1)&&(((a22==1)&&(!(a15==1)&&(input==4)))&&!(a0==1))))&&(a18==1))&&(a3==6))&&(a6==1))&&!(a5==1))))){ + a4 = 1; + a15 = 1; + a0 = 1; + a12 = 8; + a3 = 8; + a5 = 1; + return -1; + } else if(((a27==1)&&((((((((input==3)&&((!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1))))||(((a6==1)&&(((a18==1)&&!(a22==1))&&(a3==8)))||((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1)))))))&&(a12==10))&&(a4==1))&&(a0==1))&&(a20==1))&&(a15==1))&&!(a5==1)))){ + a18 = 0; + a6 = 1; + a22 = 1; + a4 = 0; + a3 = 7; + a5 = 1; + a12 = 12; + return 26; + } else if((((a5==1)&&(!(a6==1)&&(((((((input==4)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))||((!(a18==1)&&(a22==1))&&(a3==6))))&&(a4==1))&&!(a15==1))&&(a27==1))&&(a20==1))&&(a0==1))))&&(a12==10))){ + a22 = 1; + a5 = 0; + a3 = 4; + a18 = 1; + a6 = 1; + return 26; + } else if((((a4==1)&&((a12==8)&&(((((a15==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))||(!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1)))))&&(input==4)))&&(a5==1))&&(a0==1))&&(a20==1))))&&!(a27==1))){ + a12 = 9; + a6 = 1; + a5 = 0; + a18 = 0; + a27 = 1; + a3 = 4; + a0 = 0; + a22 = 1; + return 26; + } else if(((a12==11)&&((!(a22==1)&&((((a4==1)&&((a20==1)&&(((((input==5)&&!(a27==1))&&(a5==1))&&!(a18==1))&&!(a0==1))))&&(a15==1))&&!(a6==1)))&&(a3==8)))){ + if((a22==1)){ + a27 = 1; + a12 = 10; + a4 = 0; + a18 = 1; + }else{ + a0 = 1; + a12 = 8; + a27 = 1; + a22 = 1; + a4 = 0; + a3 = 4; + a15 = 0; + } + return -1; + } else if((((a6==1)&&(((!(a5==1)&&(((a12==12)&&(((((input==2)&&(a0==1))&&!(a27==1))&&(a15==1))&&(a4==1)))&&(a3==7)))&&(a18==1))&&(a20==1)))&&(a22==1))){ + a6 = 0; + a12 = 11; + a5 = 1; + a18 = 0; + a27 = 1; + a3 = 6; + return 21; + } else if((!(a0==1)&&(((a20==1)&&(((((((a12==9)&&((a15==1)&&((a5==1)&&((a22==1)&&!(a18==1)))))&&(a4==1))&&(a3==4))&&(a6==1))||((!(a6==1)&&((!(a4==1)&&((((!(a22==1)&&!(a18==1))&&!(a5==1))&&!(a15==1))&&(a12==8)))&&(a3==8)))||((a6==1)&&((a3==4)&&(((a12==9)&&(((a5==1)&&((a18==1)&&(a22==1)))&&(a15==1)))&&(a4==1))))))&&(input==1)))&&!(a27==1)))){ + a22 = 0; + a12 = 10; + a18 = 1; + a15 = 1; + a4 = 1; + a3 = 4; + a5 = 1; + a6 = 0; + a0 = 1; + return 26; + } else if((((a5==1)&&(!(a22==1)&&((a27==1)&&(((a0==1)&&((!(a15==1)&&((a12==8)&&(((input==3)&&((a18==1)||!(a18==1)))&&!(a4==1))))&&(a6==1)))&&(a20==1)))))&&(a3==4))){ + if((a5==1)){ + a0 = 0; + a6 = 0; + a18 = 1; + a5 = 0; + a3 = 7; + }else{ + a22 = 1; + a12 = 9; + a18 = 0; + a15 = 1; + } + return 26; + } else if(((a20==1)&&(((!(a27==1)&&(!(a4==1)&&(((((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==1))&&(a3==5))&&(a12==10))&&!(a0==1))&&(a6==1))))&&(a15==1))&&(a5==1)))){ + a22 = 1; + a18 = 0; + a0 = 1; + a27 = 1; + a3 = 6; + a12 = 8; + return 26; + } else if(((!(a0==1)&&(((a12==10)&&((((((a3==5)&&((a6==1)&&((a20==1)&&(input==3))))&&!(a27==1))&&!(a15==1))&&(a22==1))&&(a5==1)))&&!(a18==1)))&&(a4==1))){ + a3 = 4; + a12 = 12; + a18 = 1; + a27 = 1; + a22 = 0; + return 21; + } else if(((!(a15==1)&&(!(a4==1)&&((a3==6)&&(!(a22==1)&&(((a20==1)&&(((!(a6==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a27==1))&&!(a5==1)))&&(a0==1))))))&&(a12==12))){ + a18 = 1; + a5 = 1; + a22 = 1; + a3 = 7; + a6 = 1; + return -1; + } else if((((a4==1)&&((((a3==6)&&((a12==11)&&((((a15==1)&&((input==2)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&(a20==1))&&!(a5==1))))&&(a0==1))&&!(a6==1)))&&(a27==1))){ + a22 = 1; + a4 = 0; + a3 = 5; + a27 = 0; + a18 = 1; + a15 = 0; + a5 = 1; + return 21; + } else if(((a5==1)&&((!(a6==1)&&((((a27==1)&&((!(a18==1)&&((a20==1)&&(!(a22==1)&&((a12==10)&&(input==2)))))&&(a15==1)))&&!(a4==1))&&(a3==7)))&&!(a0==1)))){ + a22 = 1; + a3 = 4; + a4 = 1; + a12 = 8; + a0 = 1; + a6 = 1; + a18 = 1; + return -1; + } else if(((((a12==11)&&((!(a27==1)&&((a0==1)&&(((!(a5==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5)))&&!(a6==1))&&!(a15==1))))&&(a20==1)))&&(a4==1))&&(a3==6))){ + a3 = 5; + a18 = 0; + a22 = 1; + a15 = 1; + a12 = 12; + a27 = 1; + a6 = 1; + return -1; + } else if((!(a5==1)&&(((((!(a0==1)&&(((a20==1)&&((input==2)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a22==1)&&(a18==1))))))&&(a27==1)))&&(a15==1))&&(a12==9))&&(a4==1))&&!(a6==1)))){ + a4 = 0; + a15 = 0; + a12 = 10; + a22 = 1; + a27 = 0; + a0 = 1; + a3 = 4; + a18 = 0; + return 26; + } else if((((!(a27==1)&&((((a0==1)&&(!(a4==1)&&(((a12==11)&&((((a18==1)||!(a18==1))&&(input==6))&&(a3==4)))&&(a22==1))))&&!(a15==1))&&(a20==1)))&&!(a5==1))&&!(a6==1))){ + a4 = 1; + a12 = 8; + a5 = 1; + a27 = 1; + a15 = 1; + a18 = 1; + a6 = 1; + return -1; + } else if(((a12==11)&&((a18==1)&&(!(a4==1)&&((a6==1)&&(((!(a22==1)&&(((a0==1)&&((a15==1)&&(!(a27==1)&&(input==1))))&&(a20==1)))&&(a3==6))&&(a5==1))))))){ + a4 = 1; + a22 = 1; + a27 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((a12==10)&&((a27==1)&&((!(a5==1)&&(!(a0==1)&&(((a20==1)&&((a3==5)&&(!(a4==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==4)))))&&!(a15==1))))&&!(a6==1))))){ + a0 = 1; + a12 = 11; + a18 = 0; + a15 = 1; + a3 = 4; + a5 = 1; + a22 = 0; + return 26; + } else if((!(a5==1)&&(((a4==1)&&((a15==1)&&(((((((((a18==1)&&(a22==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1)))))&&(input==3))&&(a6==1))&&(a12==10))&&(a27==1))&&(a0==1))))&&(a20==1)))){ + a22 = 0; + a6 = 0; + a18 = 0; + a5 = 1; + a3 = 8; + a27 = 0; + return 21; + } else if((((((a12==12)&&((a0==1)&&((a4==1)&&(((((((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==3))&&(a5==1))&&!(a15==1)))))&&!(a6==1))&&(a20==1))&&!(a27==1))){ + a22 = 1; + a15 = 1; + a3 = 6; + a12 = 11; + a18 = 0; + return -1; + } else if((((!(a15==1)&&(!(a27==1)&&((!(a0==1)&&(((a20==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2))&&!(a6==1)))&&(a12==10)))&&(a5==1))))&&(a3==4))&&!(a4==1))){ + a6 = 1; + a18 = 1; + a22 = 1; + a15 = 1; + a0 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if((((a27==1)&&((((((!(a5==1)&&(((!(a18==1)&&(input==4))&&(a22==1))&&(a20==1)))&&(a3==6))&&(a12==12))&&(a6==1))&&!(a15==1))&&!(a0==1)))&&!(a4==1))){ + a27 = 0; + a0 = 1; + a6 = 0; + a4 = 1; + a12 = 8; + a18 = 1; + a5 = 1; + a3 = 7; + return -1; + } else if(((a20==1)&&((((a3==6)&&(((!(a15==1)&&(((a18==1)&&(((input==5)&&(a27==1))&&(a12==10)))&&!(a22==1)))&&!(a4==1))&&(a5==1)))&&!(a0==1))&&(a6==1)))){ + a12 = 9; + a27 = 0; + a5 = 0; + a22 = 1; + a3 = 8; + a0 = 1; + return 26; + } else if((((a0==1)&&(!(a4==1)&&((a27==1)&&(!(a6==1)&&((a20==1)&&((a15==1)&&((a5==1)&&((input==2)&&((((a18==1)&&(a22==1))&&(a3==8))||((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a18==1)&&!(a22==1)))))))))))))&&(a12==8))){ + a18 = 1; + a15 = 0; + a3 = 5; + a6 = 1; + a22 = 1; + return 21; + } else if((!(a5==1)&&(((a27==1)&&((!(a18==1)&&(!(a15==1)&&((a0==1)&&((a12==8)&&(((a3==4)&&((input==6)&&!(a6==1)))&&(a20==1))))))&&(a4==1)))&&!(a22==1)))){ + a3 = 7; + a6 = 1; + a12 = 11; + a15 = 1; + a5 = 1; + return 26; + } else if((!(a15==1)&&((a0==1)&&((a6==1)&&((a12==11)&&(!(a27==1)&&(((a3==5)&&((a4==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&!(a5==1))))&&(a20==1)))))))){ + a18 = 1; + a12 = 10; + a22 = 0; + a27 = 1; + a15 = 1; + a5 = 1; + return 26; + } else if((((((a4==1)&&((a3==6)&&(!(a15==1)&&(((a20==1)&&((a12==8)&&((input==1)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))&&!(a5==1)))))&&!(a6==1))&&!(a0==1))&&!(a27==1))){ + if((a12==8)){ + a27 = 1; + a18 = 1; + a15 = 1; + a22 = 1; + a4 = 0; + a12 = 12; + a3 = 4; + }else{ + a5 = 1; + a27 = 1; + a0 = 1; + a4 = 0; + a6 = 1; + a22 = 0; + a15 = 1; + a18 = 0; + a3 = 4; + } + return 26; + } else if((((((!(a15==1)&&(((input==2)&&(((!(a6==1)&&((a3==8)&&(((a18==1)&&!(a22==1))&&(a4==1))))||(!(a6==1)&&((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1))))))||((a6==1)&&((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1))))))&&!(a27==1)))&&(a0==1))&&(a5==1))&&(a20==1))&&(a12==11))){ + a3 = 6; + a6 = 0; + a22 = 1; + a18 = 0; + a4 = 0; + a27 = 1; + a12 = 12; + return 26; + } else if((!(a5==1)&&(((a15==1)&&(((((a27==1)&&(((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==2))&&(a12==10))&&(a4==1)))&&(a20==1))&&(a6==1))&&!(a0==1)))&&(a3==6)))){ + a18 = 0; + a3 = 4; + a12 = 8; + a0 = 1; + a22 = 1; + a15 = 0; + return 21; + } else if((!(a4==1)&&((!(a5==1)&&((a12==8)&&((((a20==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==6))&&(a0==1))&&!(a6==1)))&&(a3==5))&&(a15==1))))&&(a27==1)))){ + a22 = 1; + a5 = 1; + a3 = 7; + a15 = 0; + a12 = 10; + a18 = 0; + return 21; + } else if(((a20==1)&&(((((a4==1)&&((a27==1)&&(!(a6==1)&&(!(a0==1)&&((a5==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3)))))))&&!(a15==1))&&(a12==8))&&(a3==8)))){ + if((a3==4)){ + a6 = 1; + a18 = 0; + a15 = 1; + a22 = 0; + a5 = 0; + a12 = 9; + }else{ + a18 = 0; + a22 = 0; + a15 = 1; + a5 = 0; + a0 = 1; + a27 = 0; + } + return -1; + } else if((((a3==6)&&((a4==1)&&(((((a18==1)&&((a20==1)&&((a27==1)&&((a0==1)&&((input==4)&&(a5==1))))))&&!(a6==1))&&!(a15==1))&&(a22==1))))&&(a12==8))){ + a6 = 1; + a3 = 5; + a18 = 0; + a4 = 0; + a5 = 0; + return 24; + } else if((((((a3==5)&&((!(a27==1)&&((a4==1)&&(((a0==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==5)))&&(a12==8))))&&(a6==1)))&&(a20==1))&&!(a5==1))&&(a15==1))){ + a27 = 1; + a22 = 1; + a6 = 0; + a18 = 0; + a5 = 1; + return -1; + } else if((((a27==1)&&((a22==1)&&(((a20==1)&&((a5==1)&&(!(a15==1)&&(((!(a0==1)&&((input==5)&&!(a6==1)))&&(a3==6))&&(a4==1)))))&&(a12==10))))&&(a18==1))){ + if((a5==1)){ + a3 = 5; + a18 = 0; + a5 = 0; + a22 = 0; + }else{ + a3 = 8; + a0 = 1; + a5 = 0; + a12 = 8; + } + return 21; + } else if((!(a15==1)&&((a27==1)&&(!(a5==1)&&(((((a6==1)&&((a20==1)&&((input==5)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5)))||(((a18==1)&&(a22==1))&&(a3==6))))))&&(a12==8))&&(a4==1))&&!(a0==1)))))){ + a18 = 0; + a5 = 1; + a12 = 9; + a3 = 7; + a22 = 0; + a0 = 1; + a6 = 0; + return 24; + } else if((!(a0==1)&&((((!(a27==1)&&(((!(a4==1)&&((input==2)&&(((a3==6)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1)))))))&&(a20==1))&&(a5==1)))&&!(a15==1))&&(a12==10))&&(a6==1)))){ + if((a20==1)){ + a12 = 8; + a3 = 7; + a15 = 1; + a4 = 1; + a27 = 1; + a6 = 0; + a0 = 1; + a18 = 1; + a22 = 1; + }else{ + a22 = 1; + a3 = 8; + a18 = 1; + a0 = 1; + a27 = 1; + a15 = 1; + a12 = 8; + } + return -1; + } else if((((!(a6==1)&&((!(a15==1)&&((!(a4==1)&&((a0==1)&&((input==2)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1)))))))&&(a12==11)))&&!(a27==1)))&&!(a5==1))&&(a20==1))){ + a22 = 1; + a6 = 1; + a3 = 4; + a4 = 1; + a18 = 1; + a5 = 1; + a12 = 8; + a15 = 1; + a27 = 1; + return -1; + } else if((((a18==1)&&(((!(a6==1)&&((a27==1)&&((((a3==4)&&((!(a4==1)&&(input==6))&&(a12==11)))&&(a22==1))&&(a5==1))))&&(a20==1))&&!(a0==1)))&&(a15==1))){ + a12 = 8; + a0 = 1; + a6 = 1; + a4 = 1; + return -1; + } else if((((a20==1)&&(!(a15==1)&&(!(a6==1)&&(!(a5==1)&&(((((input==5)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1))))||((a3==7)&&((a22==1)&&!(a18==1)))))&&(a27==1))&&(a0==1))&&(a12==9))))))&&!(a4==1))){ + a22 = 1; + a27 = 0; + a5 = 1; + a6 = 1; + a18 = 0; + a3 = 6; + return 26; + } else if((!(a4==1)&&(((a12==10)&&(((!(a0==1)&&(!(a15==1)&&(((input==5)&&(((a3==6)&&((a22==1)&&(a18==1)))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==5)))))&&(a6==1))))&&(a20==1))&&(a5==1)))&&!(a27==1)))){ + a15 = 1; + a18 = 1; + a27 = 1; + a0 = 1; + a12 = 8; + a22 = 1; + a3 = 8; + a4 = 1; + return -1; + } else if((!(a0==1)&&(((a20==1)&&((((!(a5==1)&&(((!(a4==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a3==4))&&(a27==1)))&&(a6==1))&&(a12==10))&&(a22==1)))&&!(a15==1)))){ + a0 = 1; + a18 = 1; + a6 = 0; + a12 = 11; + a27 = 0; + return -1; + } else if(((!(a4==1)&&(((a20==1)&&((!(a6==1)&&(((a3==8)&&(!(a5==1)&&((input==5)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))))&&(a27==1)))&&!(a15==1)))&&(a12==12)))&&(a0==1))){ + a0 = 0; + a18 = 1; + a3 = 5; + a12 = 8; + a22 = 0; + return 21; + } else if(((((a20==1)&&((a0==1)&&((!(a27==1)&&(!(a5==1)&&((a6==1)&&((((a3==7)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6))))&&(input==3)))))&&(a12==11))))&&(a15==1))&&!(a4==1))){ + a3 = 4; + a18 = 1; + a12 = 8; + a27 = 1; + a4 = 1; + a22 = 1; + a5 = 1; + return -1; + } else if(((a20==1)&&((a12==10)&&(!(a27==1)&&((a0==1)&&(!(a5==1)&&(!(a15==1)&&((input==3)&&(((!(a6==1)&&(((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8)))||(((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))&&(a6==1)))||((a6==1)&&((a3==4)&&(((a22==1)&&!(a18==1))&&!(a4==1))))))))))))){ + a27 = 1; + a4 = 0; + a15 = 1; + a6 = 1; + a22 = 0; + a18 = 0; + a12 = 11; + a3 = 4; + return -1; + } else if(((a12==11)&&((!(a4==1)&&(!(a0==1)&&(!(a15==1)&&(((((a20==1)&&((input==4)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a27==1))&&(a5==1))&&(a3==7)))))&&!(a6==1)))){ + a22 = 1; + a0 = 1; + a18 = 0; + a3 = 4; + a12 = 10; + a4 = 1; + a6 = 1; + return 24; + } else if(((a12==9)&&((a3==8)&&(((a22==1)&&(((((!(a5==1)&&(!(a27==1)&&(((a18==1)||!(a18==1))&&(input==3))))&&!(a15==1))&&(a6==1))&&!(a4==1))&&!(a0==1)))&&(a20==1))))){ + if((a22==1)){ + a0 = 1; + a18 = 1; + a12 = 8; + a27 = 1; + a6 = 0; + }else{ + a6 = 0; + a27 = 1; + a15 = 1; + a3 = 6; + a18 = 0; + a0 = 1; + a12 = 8; + } + return 24; + } else if(((a5==1)&&((((a12==9)&&(!(a15==1)&&(((((a20==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==4)))&&(a4==1))&&(a27==1))&&!(a6==1))))&&(a3==6))&&!(a0==1)))){ + a3 = 4; + a18 = 1; + a12 = 8; + a22 = 1; + a0 = 1; + a15 = 1; + a6 = 1; + return -1; + } else if(((((((a3==8)&&((a5==1)&&((a20==1)&&((a0==1)&&((((input==4)&&((a18==1)||!(a18==1)))&&!(a27==1))&&(a15==1))))))&&(a12==8))&&(a4==1))&&!(a22==1))&&!(a6==1))){ + a3 = 4; + a27 = 1; + a22 = 1; + a6 = 1; + a18 = 1; + return -1; + } else if((((!(a18==1)&&(!(a15==1)&&(((a20==1)&&((a12==12)&&((((a3==7)&&((input==1)&&!(a6==1)))&&!(a22==1))&&(a4==1))))&&(a5==1))))&&!(a0==1))&&(a27==1))){ + if((a27==1)){ + a3 = 4; + a18 = 1; + a22 = 1; + a0 = 1; + a5 = 0; + a12 = 10; + }else{ + a3 = 8; + a18 = 1; + a5 = 0; + a22 = 1; + a12 = 9; + } + return 24; + } else if((!(a0==1)&&(((!(a6==1)&&((a3==8)&&((((((input==1)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&(a12==12))&&(a4==1))&&!(a5==1))&&(a27==1))))&&(a20==1))&&(a15==1)))){ + a0 = 1; + a18 = 0; + a5 = 1; + a3 = 4; + a6 = 1; + a12 = 8; + a22 = 0; + a4 = 0; + return 26; + } else if((!(a22==1)&&(((((!(a5==1)&&(((a27==1)&&((a3==7)&&((a12==10)&&(((a18==1)||!(a18==1))&&(input==1)))))&&!(a4==1)))&&(a0==1))&&!(a15==1))&&!(a6==1))&&(a20==1)))){ + if((a5==1)){ + a18 = 1; + a5 = 1; + a3 = 8; + a4 = 1; + a15 = 1; + a0 = 0; + a22 = 1; + a12 = 12; + }else{ + a3 = 6; + a15 = 1; + a18 = 0; + a27 = 0; + } + return 21; + } else if(((a6==1)&&((((((a0==1)&&(((a4==1)&&((input==5)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))))&&!(a15==1)))&&(a20==1))&&!(a27==1))&&!(a5==1))&&(a12==12)))){ + a6 = 0; + a22 = 0; + a27 = 1; + a18 = 0; + a12 = 10; + a3 = 4; + return -1; + } else if((!(a22==1)&&((a6==1)&&(((a0==1)&&(((a3==8)&&((!(a5==1)&&((a4==1)&&(((a15==1)&&(input==1))&&(a12==9))))&&!(a27==1)))&&(a20==1)))&&(a18==1))))){ + a27 = 1; + a3 = 5; + a12 = 10; + a0 = 0; + a6 = 0; + return 26; + } else if(((a27==1)&&(((a0==1)&&(((input==5)&&((((a3==8)&&((((!(a22==1)&&!(a18==1))&&(a5==1))&&!(a15==1))&&!(a4==1)))&&!(a6==1))||((a6==1)&&((((a15==1)&&(((a18==1)&&(a22==1))&&!(a5==1)))&&(a4==1))&&(a3==4)))))&&(a20==1)))&&(a12==12)))){ + a22 = 0; + a15 = 0; + a18 = 1; + a6 = 0; + a5 = 0; + a12 = 10; + a3 = 5; + a4 = 0; + return -1; + } else if(((((((a4==1)&&((a27==1)&&(((!(a18==1)&&((!(a0==1)&&(input==5))&&!(a22==1)))&&(a20==1))&&(a15==1))))&&(a12==9))&&(a3==5))&&(a5==1))&&!(a6==1))){ + a18 = 1; + a0 = 1; + a3 = 8; + a27 = 0; + return 26; + } else if(((a20==1)&&(((a3==5)&&(!(a4==1)&&((a12==9)&&(((!(a5==1)&&(!(a18==1)&&((a27==1)&&(!(a15==1)&&(input==2)))))&&(a0==1))&&(a6==1)))))&&(a22==1)))){ + if((a20==1)){ + a4 = 1; + a0 = 0; + a3 = 7; + a5 = 1; + a18 = 1; + }else{ + a15 = 1; + a27 = 0; + a5 = 1; + } + return 21; + } else if(((a4==1)&&(!(a0==1)&&((a22==1)&&(((a15==1)&&((a20==1)&&(!(a5==1)&&(!(a27==1)&&((a18==1)&&(((input==5)&&(a12==11))&&(a6==1)))))))&&(a3==5)))))){ + a0 = 1; + a3 = 4; + a15 = 0; + a12 = 12; + a22 = 0; + a27 = 1; + return 21; + } else if((!(a6==1)&&(((((a3==6)&&((a20==1)&&(((a0==1)&&(((a4==1)&&((input==2)&&(a22==1)))&&!(a27==1)))&&(a12==8))))&&!(a5==1))&&(a15==1))&&!(a18==1)))){ + a12 = 10; + a5 = 1; + a3 = 4; + a15 = 0; + a6 = 1; + a27 = 1; + return 26; + } else if(((a27==1)&&((a22==1)&&((!(a4==1)&&((a0==1)&&((a20==1)&&((a12==9)&&((((a3==5)&&((input==4)&&!(a6==1)))&&!(a5==1))&&!(a15==1))))))&&!(a18==1))))){ + a15 = 1; + a3 = 4; + a6 = 1; + a12 = 8; + a5 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if(((a27==1)&&((((a5==1)&&((!(a6==1)&&((((input==6)&&((((a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a18==1)&&!(a22==1))))))&&(a20==1))&&(a12==10)))&&!(a4==1)))&&(a15==1))&&(a0==1)))){ + if((a3==6)){ + a4 = 1; + a22 = 1; + a0 = 0; + a3 = 7; + a15 = 0; + a18 = 1; + a12 = 8; + }else{ + a12 = 11; + a0 = 0; + a22 = 0; + a18 = 1; + a6 = 1; + a15 = 0; + a3 = 7; + } + return -1; + } else if(((a5==1)&&(((((a15==1)&&(!(a4==1)&&(((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==6))&&(a12==11))&&!(a0==1))&&!(a6==1))))&&!(a27==1))&&(a3==4))&&(a20==1)))){ + a15 = 0; + a0 = 1; + a22 = 1; + a4 = 1; + a18 = 1; + return 26; + } else if((!(a6==1)&&((a20==1)&&(!(a0==1)&&((((a27==1)&&((a15==1)&&(((a3==4)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==6)))&&!(a4==1))))&&!(a5==1))&&(a12==12)))))){ + a6 = 1; + a12 = 8; + a0 = 1; + a22 = 0; + a3 = 8; + a18 = 1; + a5 = 1; + return -1; + } else if(((a20==1)&&(((((a4==1)&&((a18==1)&&(!(a27==1)&&(!(a22==1)&&((a15==1)&&((!(a6==1)&&(input==1))&&(a3==7)))))))&&(a12==8))&&(a0==1))&&(a5==1)))){ + a4 = 0; + a12 = 9; + a6 = 1; + a3 = 8; + return 24; + } else if((((a3==8)&&(((!(a4==1)&&(!(a22==1)&&(!(a15==1)&&(((((input==4)&&((a18==1)||!(a18==1)))&&(a6==1))&&(a12==12))&&(a20==1)))))&&(a5==1))&&!(a27==1)))&&(a0==1))){ + a3 = 5; + a12 = 11; + a22 = 1; + a18 = 0; + a0 = 0; + a4 = 1; + a27 = 1; + return -1; + } else if((((!(a15==1)&&((a5==1)&&((!(a6==1)&&(((a20==1)&&((((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==2)))&&!(a27==1)))&&!(a4==1))))&&(a12==10))&&!(a0==1))){ + if((a20==1)){ + a18 = 0; + a4 = 1; + a22 = 1; + a6 = 1; + a12 = 9; + a3 = 4; + }else{ + a6 = 1; + a27 = 1; + a12 = 8; + a15 = 1; + a3 = 7; + a0 = 1; + a22 = 0; + a18 = 1; + } + return 21; + } else if((!(a0==1)&&((!(a27==1)&&((a12==8)&&((a15==1)&&((a22==1)&&((a4==1)&&((a5==1)&&(!(a18==1)&&((a6==1)&&((input==5)&&(a20==1))))))))))&&(a3==8)))){ + a3 = 7; + a0 = 1; + a27 = 1; + a4 = 0; + a22 = 0; + return 26; + } else if(((!(a4==1)&&((((((!(a27==1)&&(((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6)))||((a3==6)&&((a22==1)&&!(a18==1))))&&(input==3)))&&(a15==1))&&!(a5==1))&&!(a6==1))&&(a12==9))&&(a20==1)))&&(a0==1))){ + a4 = 1; + a3 = 6; + a22 = 1; + a5 = 1; + a18 = 0; + a6 = 1; + return 21; + } else if(((a27==1)&&(((((a22==1)&&(((a12==12)&&(!(a4==1)&&(((a15==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&!(a6==1))))&&(a3==7)))&&!(a0==1))&&(a5==1))&&(a20==1)))){ + a18 = 1; + a0 = 1; + a3 = 4; + a6 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if(((a5==1)&&((a12==9)&&((a15==1)&&(!(a4==1)&&((((!(a27==1)&&((input==3)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))||((a3==6)&&((a22==1)&&!(a18==1))))))&&!(a6==1))&&(a0==1))&&(a20==1))))))){ + a27 = 1; + a3 = 7; + a22 = 0; + a5 = 0; + a18 = 1; + a15 = 0; + return 24; + } else if(((a20==1)&&(((a5==1)&&(((a6==1)&&((a12==10)&&(((((((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==5)))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==5))&&!(a0==1))&&(a15==1))))&&(a4==1)))&&!(a27==1)))){ + if((a20==1)){ + a27 = 1; + a4 = 0; + a3 = 7; + a0 = 1; + a18 = 0; + a12 = 8; + a22 = 0; + }else{ + a27 = 1; + a18 = 0; + a3 = 8; + a0 = 1; + a12 = 8; + a22 = 1; + } + return -1; + } else if(((a15==1)&&((a6==1)&&(((((((((input==3)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a4==1))&&(a20==1))&&!(a5==1))&&(a0==1))&&(a12==10))&&(a27==1))&&(a3==5))))){ + a22 = 1; + a3 = 4; + a18 = 1; + a5 = 1; + a4 = 1; + a27 = 0; + a15 = 0; + return 26; + } else if(((((a3==4)&&((a15==1)&&((a12==11)&&((((a22==1)&&((a27==1)&&((a0==1)&&(!(a18==1)&&(input==4)))))&&(a6==1))&&!(a5==1)))))&&(a4==1))&&(a20==1))){ + a6 = 0; + a5 = 1; + a3 = 6; + a12 = 10; + return -1; + } else if(((a27==1)&&((a3==6)&&((((!(a5==1)&&(((a4==1)&&(!(a6==1)&&((input==3)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))))&&(a20==1)))&&(a15==1))&&(a12==11))&&(a0==1))))){ + a6 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + a5 = 1; + a18 = 1; + return -1; + } else if(((a22==1)&&(!(a0==1)&&((a12==11)&&(((((!(a18==1)&&((!(a15==1)&&(!(a27==1)&&(input==2)))&&(a3==4)))&&(a20==1))&&(a5==1))&&!(a4==1))&&(a6==1)))))){ + a18 = 1; + a3 = 6; + a15 = 1; + a27 = 1; + a12 = 8; + return 26; + } else if(((((a5==1)&&(((a15==1)&&((((input==5)&&((((((a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1)))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))))&&(a20==1))&&!(a0==1)))&&(a4==1)))&&(a12==9))&&!(a27==1))){ + a6 = 1; + a22 = 1; + a12 = 10; + a0 = 1; + a18 = 0; + a3 = 5; + return 21; + } else if(((a0==1)&&(((((((!(a6==1)&&((a3==8)&&(!(a4==1)&&((!(a22==1)&&!(a18==1))&&(a15==1)))))||(((a3==4)&&((((a18==1)&&(a22==1))&&!(a15==1))&&(a4==1)))&&(a6==1)))&&(input==6))&&!(a5==1))&&(a27==1))&&(a12==10))&&(a20==1)))){ + a12 = 11; + a22 = 0; + a15 = 1; + a6 = 0; + a5 = 1; + a3 = 6; + a4 = 0; + a18 = 1; + return 21; + } else if((!(a0==1)&&((!(a4==1)&&((a6==1)&&(!(a5==1)&&((a20==1)&&((a22==1)&&((a15==1)&&((a27==1)&&((((a18==1)||!(a18==1))&&(input==2))&&(a3==8)))))))))&&(a12==11)))){ + a18 = 0; + a0 = 1; + a15 = 0; + a4 = 1; + a5 = 1; + a12 = 10; + a3 = 6; + a6 = 0; + return 26; + } else if(((((a6==1)&&((a5==1)&&((!(a22==1)&&((a12==8)&&(!(a27==1)&&((!(a4==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a15==1)))))&&(a20==1))))&&(a3==8))&&!(a0==1))){ + a15 = 0; + a27 = 1; + a18 = 0; + a6 = 0; + a0 = 1; + return 26; + } else if(((!(a0==1)&&((a27==1)&&(!(a15==1)&&((((a5==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==5))&&(a12==10)))&&!(a4==1))&&(a20==1)))))&&!(a6==1))){ + a5 = 0; + a6 = 1; + a18 = 0; + a3 = 7; + a22 = 1; + a4 = 1; + a12 = 11; + a0 = 1; + a15 = 1; + return -1; + } else if((!(a4==1)&&((((a12==8)&&((!(a27==1)&&((a0==1)&&(((a3==4)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==4)))&&(a6==1))))&&(a20==1)))&&(a5==1))&&!(a15==1)))){ + a4 = 1; + a18 = 1; + a22 = 1; + a27 = 1; + a15 = 1; + return -1; + } else if((((((a20==1)&&((a18==1)&&(!(a5==1)&&(((!(a6==1)&&(((a12==11)&&(input==3))&&(a3==8)))&&!(a15==1))&&(a22==1)))))&&(a4==1))&&(a0==1))&&!(a27==1))){ + a6 = 1; + a12 = 10; + a22 = 0; + a3 = 7; + a27 = 1; + a4 = 0; + return 21; + } else if(((!(a27==1)&&((a6==1)&&(((a20==1)&&((a4==1)&&((a5==1)&&((a12==10)&&((input==2)&&(((a3==6)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))))))))&&(a15==1))))&&!(a0==1))){ + a12 = 9; + a27 = 1; + a22 = 1; + a0 = 1; + a18 = 0; + a3 = 6; + a6 = 0; + return -1; + } else if(((a12==9)&&((a0==1)&&((a20==1)&&(!(a4==1)&&(((a6==1)&&(!(a15==1)&&(((input==2)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))||((a3==6)&&((a18==1)&&(a22==1)))))&&(a5==1))))&&!(a27==1))))))){ + a12 = 8; + a22 = 1; + a27 = 1; + a3 = 4; + a15 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if((((a12==8)&&((a6==1)&&((!(a15==1)&&((!(a4==1)&&((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==6))&&!(a0==1))&&(a3==4)))&&(a20==1)))&&!(a27==1))))&&!(a5==1))){ + if((a22==1)){ + a5 = 1; + a6 = 0; + a3 = 6; + a22 = 0; + a27 = 1; + a18 = 1; + a0 = 1; + a15 = 1; + a4 = 1; + }else{ + a15 = 1; + a3 = 5; + a12 = 12; + a18 = 0; + a5 = 1; + a27 = 1; + a22 = 0; + } + return -1; + } else if(((a5==1)&&((a12==12)&&((a6==1)&&(((((((input==3)&&(((a3==6)&&((a22==1)&&!(a18==1)))||(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))))&&!(a15==1))&&!(a4==1))&&(a20==1))&&!(a0==1))&&(a27==1)))))){ + a12 = 9; + a18 = 0; + a15 = 1; + a22 = 0; + a0 = 1; + a4 = 1; + a3 = 6; + return -1; + } else if(((a12==12)&&((a27==1)&&(!(a4==1)&&((a15==1)&&((a20==1)&&((a3==7)&&(((a22==1)&&((!(a6==1)&&((input==2)&&((a18==1)||!(a18==1))))&&!(a0==1)))&&(a5==1))))))))){ + a18 = 1; + a0 = 1; + a15 = 0; + a12 = 10; + a3 = 8; + return -1; + } else if(((((a3==8)&&((a5==1)&&(((!(a27==1)&&(((a0==1)&&(((a15==1)&&(input==6))&&!(a4==1)))&&(a18==1)))&&(a6==1))&&(a20==1))))&&(a12==9))&&(a22==1))){ + if((a5==1)){ + a12 = 11; + a6 = 0; + a27 = 1; + a4 = 1; + a3 = 4; + a0 = 0; + }else{ + a27 = 1; + a4 = 1; + a18 = 0; + a12 = 10; + a5 = 0; + } + return -1; + } else if((!(a5==1)&&((!(a0==1)&&(((((a12==12)&&((!(a6==1)&&((input==5)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))))&&(a27==1)))&&!(a15==1))&&(a3==6))&&!(a4==1)))&&(a20==1)))){ + a18 = 1; + a15 = 1; + a4 = 1; + a22 = 1; + a3 = 7; + a5 = 1; + a6 = 1; + a0 = 1; + a12 = 8; + return 21; + } else if((((!(a5==1)&&(((((a20==1)&&((((!(a22==1)&&(input==4))&&!(a4==1))&&(a15==1))&&(a3==5)))&&(a0==1))&&!(a27==1))&&!(a18==1)))&&(a12==10))&&!(a6==1))){ + a12 = 11; + a3 = 8; + a27 = 1; + a18 = 1; + a15 = 0; + a6 = 1; + a22 = 1; + return 26; + } else if(((((a12==12)&&((a15==1)&&((((a0==1)&&((!(a27==1)&&(((input==6)&&!(a22==1))&&(a18==1)))&&(a5==1)))&&!(a4==1))&&(a3==6))))&&!(a6==1))&&(a20==1))){ + a3 = 4; + a6 = 1; + a27 = 1; + a22 = 1; + a5 = 0; + a4 = 1; + return 26; + } else if((((((!(a22==1)&&((a0==1)&&((((!(a6==1)&&((input==1)&&(a3==8)))&&(a15==1))&&(a20==1))&&(a4==1))))&&!(a18==1))&&!(a5==1))&&(a12==8))&&(a27==1))){ + if((a6==1)){ + a12 = 11; + a4 = 0; + a0 = 0; + a15 = 0; + a22 = 1; + a3 = 6; + a6 = 1; + }else{ + a5 = 1; + a12 = 10; + a22 = 1; + a18 = 1; + } + return 24; + } else if(((a3==7)&&((!(a6==1)&&((((a20==1)&&(!(a5==1)&&((a0==1)&&((!(a22==1)&&((input==5)&&((a18==1)||!(a18==1))))&&!(a27==1)))))&&(a12==12))&&!(a15==1)))&&!(a4==1)))){ + a27 = 1; + a12 = 11; + a18 = 1; + a4 = 1; + a3 = 5; + a22 = 1; + return 24; + } else if(((a0==1)&&(!(a5==1)&&(((!(a22==1)&&(!(a6==1)&&((a18==1)&&((a20==1)&&(((a12==10)&&((input==5)&&!(a27==1)))&&(a15==1))))))&&(a3==8))&&!(a4==1))))){ + a6 = 1; + a18 = 0; + a12 = 9; + a4 = 1; + a27 = 1; + a0 = 0; + return -1; + } else if(((a12==9)&&((!(a0==1)&&((((a20==1)&&(((!(a15==1)&&((a5==1)&&((input==4)&&((a18==1)||!(a18==1)))))&&!(a6==1))&&(a22==1)))&&(a27==1))&&!(a4==1)))&&(a3==5)))){ + a6 = 1; + a4 = 1; + a3 = 8; + a0 = 1; + a5 = 0; + a12 = 10; + a18 = 1; + return -1; + } else if((((a12==10)&&(!(a27==1)&&(((a22==1)&&((!(a6==1)&&(((a5==1)&&(!(a0==1)&&((input==4)&&!(a18==1))))&&!(a4==1)))&&(a20==1)))&&!(a15==1))))&&(a3==7))){ + a4 = 1; + a15 = 1; + a0 = 1; + a3 = 5; + a27 = 1; + a12 = 8; + a6 = 1; + a18 = 1; + return 21; + } else if((((a15==1)&&(((a3==4)&&(!(a4==1)&&((a5==1)&&((!(a6==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2))&&!(a27==1)))&&(a12==9)))))&&(a20==1)))&&(a0==1))){ + a12 = 10; + a4 = 1; + a22 = 1; + a27 = 1; + a18 = 1; + a15 = 0; + return 26; + } else if(((a3==7)&&((a15==1)&&((((!(a4==1)&&(((((input==6)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&!(a0==1))&&(a12==12))&&!(a6==1)))&&(a27==1))&&(a20==1))&&!(a5==1))))){ + if((a18==1)){ + a6 = 1; + a12 = 11; + a15 = 0; + a18 = 1; + a22 = 1; + a3 = 4; + a0 = 1; + a27 = 0; + a4 = 1; + }else{ + a6 = 1; + a22 = 1; + a0 = 1; + a4 = 1; + a12 = 8; + a18 = 1; + a3 = 8; + a5 = 1; + } + return 26; + } else if(((a6==1)&&((a3==6)&&(((a27==1)&&(((a4==1)&&((a20==1)&&(((a12==9)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==4)))&&(a15==1))))&&!(a0==1)))&&!(a5==1))))){ + a3 = 4; + a12 = 8; + a18 = 1; + a5 = 1; + a22 = 1; + a0 = 1; + return -1; + } else if(((!(a6==1)&&((a3==4)&&((((((a12==8)&&((!(a27==1)&&((input==5)&&!(a0==1)))&&(a5==1)))&&(a20==1))&&(a4==1))&&(a22==1))&&!(a15==1))))&&!(a18==1))){ + a5 = 0; + a12 = 9; + a6 = 1; + a3 = 6; + a15 = 1; + return -1; + } else if((!(a6==1)&&(((((a0==1)&&((a4==1)&&((a20==1)&&((a27==1)&&((((a3==5)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4))))&&(input==6))))))&&!(a5==1))&&(a12==10))&&(a15==1)))){ + if((a12==10)){ + a18 = 1; + a4 = 0; + a0 = 0; + a5 = 1; + a3 = 7; + a22 = 1; + a12 = 9; + a6 = 1; + }else{ + a22 = 0; + a18 = 0; + a0 = 0; + a3 = 5; + a4 = 0; + } + return 21; + } else if((((a5==1)&&((a15==1)&&((((a12==8)&&((!(a6==1)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==2)))&&!(a0==1)))&&!(a27==1))&&(a20==1))))&&!(a4==1))){ + a18 = 0; + a27 = 1; + a3 = 6; + a0 = 1; + a4 = 1; + a22 = 1; + a6 = 1; + return 21; + } else if(((a6==1)&&(!(a15==1)&&(!(a18==1)&&(!(a4==1)&&((a12==11)&&((((((a5==1)&&((input==6)&&(a22==1)))&&(a3==8))&&(a0==1))&&(a27==1))&&(a20==1)))))))){ + a6 = 0; + a22 = 0; + a5 = 0; + a15 = 1; + a4 = 1; + a3 = 6; + a12 = 10; + return 21; + } else if(((a3==7)&&(!(a5==1)&&((a0==1)&&((((!(a18==1)&&((a20==1)&&((a12==12)&&(!(a27==1)&&((a15==1)&&(input==6))))))&&(a4==1))&&!(a22==1))&&!(a6==1)))))){ + a12 = 11; + a3 = 8; + a5 = 1; + return -1; + } else if((!(a15==1)&&((((((((((input==5)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&!(a5==1))&&(a4==1))&&!(a6==1))&&(a3==5))&&!(a0==1))&&(a12==10))&&(a27==1))&&(a20==1)))){ + a18 = 1; + a12 = 8; + a15 = 1; + a5 = 1; + a0 = 1; + a3 = 4; + a6 = 1; + a22 = 1; + return -1; + } else if(((!(a0==1)&&((((a20==1)&&((a15==1)&&((((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==4))&&(a6==1))&&(a4==1))&&!(a27==1))))&&(a3==6))&&(a12==8)))&&(a5==1))){ + a18 = 1; + a12 = 9; + a27 = 1; + a3 = 8; + a4 = 0; + a0 = 1; + a22 = 0; + return -1; + } else if(((!(a18==1)&&(!(a4==1)&&(((a27==1)&&((((a3==5)&&((((a5==1)&&(input==5))&&(a22==1))&&(a0==1)))&&(a6==1))&&!(a15==1)))&&(a20==1))))&&(a12==11))){ + a3 = 6; + a22 = 0; + a18 = 1; + a6 = 0; + a4 = 1; + return -1; + } else if(((!(a27==1)&&(!(a15==1)&&((((!(a5==1)&&((input==5)&&((((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1)))||(((a3==4)&&(!(a18==1)&&(a22==1)))&&!(a6==1)))))&&(a12==8))&&(a4==1))&&(a20==1))))&&!(a0==1))){ + if((a22==1)){ + a18 = 0; + a12 = 11; + a3 = 4; + a4 = 0; + a22 = 0; + a6 = 1; + a5 = 1; + }else{ + a6 = 0; + a0 = 1; + a5 = 1; + a3 = 7; + a18 = 1; + a4 = 0; + a22 = 1; + a27 = 1; + } + return -1; + } return calculate_output7(input); + } + + int calculate_output7(int input) { + if((((a12==8)&&(!(a4==1)&&(!(a22==1)&&(!(a15==1)&&((a6==1)&&(((a0==1)&&(!(a5==1)&&((a27==1)&&(((a18==1)||!(a18==1))&&(input==2)))))&&(a20==1)))))))&&(a3==5))){ + a5 = 1; + a4 = 1; + a18 = 1; + a12 = 11; + a6 = 0; + return 26; + } else if((((a5==1)&&(((((!(a15==1)&&(((((input==4)&&((a18==1)||!(a18==1)))&&!(a6==1))&&(a0==1))&&(a22==1)))&&(a3==5))&&(a4==1))&&(a27==1))&&(a20==1)))&&(a12==9))){ + a18 = 1; + a22 = 0; + a4 = 0; + a12 = 11; + return 24; + } else if(((a4==1)&&((!(a6==1)&&(((a27==1)&&(!(a5==1)&&((((input==1)&&(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8))))&&(a15==1))&&(a20==1))))&&!(a0==1)))&&(a12==9)))){ + a18 = 0; + a22 = 1; + a3 = 6; + a12 = 12; + a0 = 1; + return 21; + } else if((((a12==12)&&((a3==5)&&((((((((input==4)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&(a4==1))&&(a15==1))&&(a0==1))&&!(a5==1))&&!(a27==1))&&!(a6==1))))&&(a20==1))){ + a22 = 1; + a6 = 1; + a5 = 1; + a3 = 6; + a12 = 10; + a18 = 0; + return -1; + } else if(((a5==1)&&((a20==1)&&((((((!(a0==1)&&((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==3))&&(a12==10)))&&(a4==1))&&!(a6==1))&&(a3==6))&&!(a15==1))&&(a27==1))))){ + a18 = 0; + a5 = 0; + a22 = 0; + a4 = 0; + a6 = 1; + a15 = 1; + a3 = 5; + a12 = 11; + return 21; + } else if((((a0==1)&&((a12==8)&&(!(a4==1)&&((a22==1)&&(!(a5==1)&&((a15==1)&&((((a27==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a6==1))&&(a3==7))))))))&&(a20==1))){ + a4 = 1; + a18 = 1; + a5 = 1; + a3 = 4; + return -1; + } else if(((a20==1)&&(!(a27==1)&&((((a5==1)&&(((a12==8)&&((input==1)&&((((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4))))))&&(a0==1)))&&(a4==1))&&(a15==1))))){ + a3 = 7; + a4 = 0; + a12 = 10; + a22 = 1; + a27 = 1; + a18 = 1; + a6 = 1; + return -1; + } else if((((((!(a6==1)&&((((((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a5==1))&&!(a0==1))&&(a3==5))&&!(a4==1)))&&(a12==10))&&(a20==1))&&(a27==1))&&!(a15==1))){ + a22 = 0; + a0 = 1; + a15 = 1; + a18 = 1; + a3 = 6; + return 21; + } else if((!(a15==1)&&(((a12==11)&&(!(a27==1)&&((a3==8)&&((((!(a6==1)&&((a20==1)&&(((a18==1)||!(a18==1))&&(input==3))))&&!(a0==1))&&!(a5==1))&&(a4==1)))))&&(a22==1)))){ + a3 = 7; + a18 = 0; + a27 = 1; + a0 = 1; + a15 = 1; + a12 = 10; + a22 = 0; + return 26; + } else if(((a20==1)&&((a4==1)&&((!(a0==1)&&(!(a15==1)&&(!(a5==1)&&((a12==9)&&((((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))||((((!(a22==1)&&(a18==1))&&(a3==8))&&(a6==1))||((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))))&&(input==1))))))&&(a27==1))))){ + if((a3==4)){ + a12 = 10; + a18 = 0; + a5 = 1; + a3 = 4; + a22 = 1; + a6 = 0; + }else{ + a27 = 0; + a6 = 1; + a0 = 1; + a3 = 8; + a12 = 8; + a22 = 0; + a18 = 0; + } + return 24; + } else if((!(a22==1)&&((((a27==1)&&(((((!(a18==1)&&(((input==2)&&(a4==1))&&!(a0==1)))&&(a3==6))&&(a12==8))&&(a20==1))&&(a6==1)))&&!(a15==1))&&!(a5==1)))){ + a15 = 1; + a4 = 0; + a3 = 5; + a12 = 9; + return 21; + } else if((((!(a0==1)&&((!(a6==1)&&(!(a4==1)&&((!(a15==1)&&((a12==9)&&((((a18==1)||!(a18==1))&&(input==1))&&!(a5==1))))&&(a27==1))))&&(a20==1)))&&!(a22==1))&&(a3==6))){ + a5 = 1; + a0 = 1; + a6 = 1; + a18 = 1; + a15 = 1; + return 24; + } else if(((!(a15==1)&&((a5==1)&&((a27==1)&&(((!(a0==1)&&(((((input==4)&&!(a6==1))&&(a12==8))&&!(a18==1))&&(a3==4)))&&(a22==1))&&(a20==1)))))&&!(a4==1))){ + a18 = 1; + a5 = 0; + a4 = 1; + a3 = 6; + a0 = 1; + a15 = 1; + a12 = 10; + return 26; + } else if((((!(a27==1)&&((((a3==4)&&(!(a4==1)&&((((a5==1)&&((input==4)&&((a18==1)||!(a18==1))))&&!(a6==1))&&(a12==11))))&&(a20==1))&&(a15==1)))&&(a0==1))&&!(a22==1))){ + a3 = 7; + a15 = 0; + a27 = 1; + a22 = 1; + a12 = 12; + a18 = 1; + return 26; + } else if(((!(a18==1)&&((a27==1)&&((a0==1)&&(((a4==1)&&((((a20==1)&&(((input==4)&&!(a5==1))&&(a22==1)))&&(a12==9))&&!(a6==1)))&&(a15==1)))))&&(a3==8))){ + a6 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + a5 = 1; + return -1; + } else if(((((a27==1)&&(((!(a5==1)&&(!(a15==1)&&(((a4==1)&&((((a18==1)||!(a18==1))&&(input==2))&&(a3==4)))&&(a12==10))))&&!(a6==1))&&!(a0==1)))&&(a20==1))&&(a22==1))){ + a18 = 1; + a4 = 0; + a12 = 11; + a3 = 8; + a5 = 1; + a22 = 0; + a0 = 1; + return 21; + } else if(((a27==1)&&((a12==11)&&((((!(a4==1)&&((a15==1)&&((a20==1)&&((!(a5==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a3==8)))))&&!(a22==1))&&!(a6==1))&&!(a0==1))))){ + a5 = 1; + a15 = 0; + a0 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a12==11)&&((((((a3==8)&&((a27==1)&&(((!(a6==1)&&((input==2)&&((a18==1)||!(a18==1))))&&(a5==1))&&(a4==1))))&&!(a0==1))&&(a22==1))&&(a20==1))&&(a15==1)))){ + a3 = 6; + a6 = 1; + a12 = 10; + a15 = 0; + a0 = 1; + a18 = 0; + return -1; + } else if(((a0==1)&&(((a15==1)&&((!(a5==1)&&((a4==1)&&(((a12==9)&&((input==5)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))))&&(a20==1))))&&(a6==1)))&&!(a27==1)))){ + a22 = 0; + a5 = 1; + a12 = 12; + a3 = 8; + a18 = 0; + a6 = 0; + return 26; + } else if((!(a5==1)&&(!(a15==1)&&((((((a3==4)&&(((a12==11)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==4)))&&!(a6==1)))&&(a20==1))&&!(a27==1))&&(a4==1))&&(a0==1))))){ + if((a5==1)){ + a0 = 0; + a3 = 8; + a27 = 1; + a22 = 0; + a18 = 0; + a15 = 1; + a12 = 8; + }else{ + a27 = 1; + a22 = 1; + a18 = 0; + a3 = 7; + } + return 26; + } else if((((((((((!(a27==1)&&((input==3)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))&&(a12==9))&&(a3==5))&&(a0==1))&&!(a5==1))&&!(a15==1))&&(a20==1))&&!(a6==1))&&(a4==1))){ + a22 = 1; + a12 = 8; + a6 = 1; + a15 = 1; + a18 = 1; + a3 = 4; + a5 = 1; + a27 = 1; + return -1; + } else if((((a12==8)&&((a27==1)&&((((((a0==1)&&((input==1)&&(((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==5)))))&&(a20==1))&&(a15==1))&&!(a5==1))&&!(a4==1))))&&!(a6==1))){ + a3 = 5; + a18 = 0; + a5 = 1; + a12 = 12; + a22 = 0; + a0 = 0; + return 26; + } else if((!(a27==1)&&(((a0==1)&&((a12==12)&&((a4==1)&&(!(a6==1)&&((a20==1)&&(!(a15==1)&&((input==2)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))||((a3==8)&&(!(a18==1)&&(a22==1)))))))))))&&!(a5==1)))){ + a22 = 0; + a3 = 7; + a15 = 1; + a6 = 1; + a12 = 10; + a18 = 1; + return -1; + } else if(((!(a27==1)&&(!(a5==1)&&(!(a4==1)&&((((a3==5)&&((a6==1)&&(((input==3)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&(a15==1))))&&(a20==1))&&(a12==10)))))&&(a0==1))){ + a5 = 1; + a18 = 1; + a12 = 8; + a4 = 1; + a22 = 1; + a27 = 1; + a3 = 4; + return -1; + } else if((((((((a0==1)&&(((((a20==1)&&((a22==1)&&(input==4)))&&(a4==1))&&(a15==1))&&(a6==1)))&&!(a18==1))&&(a12==10))&&(a3==5))&&(a5==1))&&!(a27==1))){ + a3 = 8; + a6 = 0; + return 21; + } else if((((a15==1)&&(((a27==1)&&((a4==1)&&((((a20==1)&&(((a3==6)&&((input==5)&&((a18==1)||!(a18==1))))&&!(a0==1)))&&!(a5==1))&&(a12==12))))&&(a6==1)))&&!(a22==1))){ + if((a3==6)){ + a22 = 1; + a0 = 1; + a6 = 0; + a12 = 8; + a4 = 0; + a18 = 1; + a3 = 4; + a5 = 1; + }else{ + a18 = 0; + a0 = 1; + a4 = 0; + a15 = 0; + a27 = 0; + a5 = 1; + } + return -1; + } else if(((((((((((input==6)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8))))&&(a20==1))&&(a27==1))&&(a4==1))&&!(a0==1))&&(a12==9))&&!(a6==1))&&(a15==1))&&!(a5==1))){ + a18 = 0; + a22 = 0; + a0 = 1; + a5 = 1; + a4 = 0; + a12 = 11; + a3 = 5; + a15 = 0; + return 24; + } else if(((((a6==1)&&((a12==11)&&((a4==1)&&(!(a27==1)&&((((a22==1)&&((a20==1)&&((input==2)&&((a18==1)||!(a18==1)))))&&(a3==7))&&(a5==1))))))&&(a15==1))&&!(a0==1))){ + a6 = 0; + a18 = 0; + a12 = 8; + a27 = 1; + a3 = 5; + a0 = 1; + return -1; + } else if(((a6==1)&&((!(a0==1)&&((((a18==1)&&(!(a5==1)&&(((a12==11)&&(((a22==1)&&(input==3))&&!(a27==1)))&&(a15==1))))&&(a3==5))&&(a20==1)))&&(a4==1)))){ + a27 = 1; + a5 = 1; + a3 = 8; + a0 = 1; + a6 = 0; + a22 = 0; + a12 = 8; + return -1; + } else if(((a15==1)&&(((!(a22==1)&&((a3==6)&&((!(a6==1)&&((((((a18==1)||!(a18==1))&&(input==3))&&(a20==1))&&(a27==1))&&(a4==1)))&&(a12==12))))&&(a0==1))&&(a5==1)))){ + a3 = 4; + a22 = 1; + a18 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if(((a4==1)&&(((!(a27==1)&&((!(a6==1)&&(((((((a18==1)&&(a22==1))&&(a3==7))||(((!(a22==1)&&(a18==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6))))&&(input==2))&&(a20==1))&&!(a5==1)))&&!(a15==1)))&&(a12==10))&&(a0==1)))){ + a18 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + a27 = 1; + a6 = 1; + a15 = 1; + a5 = 1; + return -1; + } else if(((a20==1)&&((a27==1)&&((a5==1)&&((a0==1)&&((a12==10)&&(!(a6==1)&&((a4==1)&&(((((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==5))&&!(a15==1)))))))))){ + a22 = 0; + a3 = 8; + a12 = 12; + a18 = 1; + a6 = 1; + return 21; + } else if((!(a5==1)&&((((((a20==1)&&(((input==1)&&((((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1)))||(((a3==4)&&((a22==1)&&!(a18==1)))&&!(a6==1))))&&!(a27==1)))&&!(a15==1))&&(a12==8))&&(a4==1))&&!(a0==1)))){ + if((a4==1)){ + a3 = 6; + a18 = 0; + a0 = 1; + a15 = 1; + a22 = 1; + a6 = 1; + a27 = 1; + a5 = 1; + }else{ + a12 = 10; + a15 = 1; + a18 = 0; + a6 = 1; + a3 = 4; + a22 = 1; + a4 = 0; + } + return -1; + } else if((!(a5==1)&&((a4==1)&&(((a12==8)&&((((!(a27==1)&&(((((a18==1)&&(a22==1))&&(a3==7))||((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1)))))&&(input==5)))&&(a15==1))&&!(a6==1))&&!(a0==1)))&&(a20==1))))){ + a18 = 0; + a22 = 1; + a3 = 4; + a27 = 1; + a5 = 1; + a0 = 1; + a6 = 1; + return 26; + } else if((!(a27==1)&&((((a5==1)&&((((a20==1)&&(((a3==5)&&((((a18==1)||!(a18==1))&&(input==6))&&!(a22==1)))&&!(a15==1)))&&!(a0==1))&&(a12==10)))&&(a6==1))&&(a4==1)))){ + a15 = 1; + a12 = 8; + a18 = 0; + a27 = 1; + a4 = 0; + a0 = 1; + return -1; + } else if(((((((a0==1)&&(((a20==1)&&((a12==9)&&(((((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a22==1)&&!(a18==1))))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==4))))&&!(a15==1)))&&(a5==1))&&(a4==1))&&(a6==1))&&(a27==1))){ + a3 = 4; + a15 = 1; + a22 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((a3==5)&&((a20==1)&&(((a4==1)&&((a0==1)&&(((!(a6==1)&&((a12==9)&&((input==2)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))))&&!(a5==1))&&!(a27==1))))&&(a15==1))))){ + a15 = 0; + a27 = 1; + a3 = 6; + a22 = 1; + a5 = 1; + a4 = 0; + a18 = 1; + a12 = 12; + return 26; + } else if((((!(a27==1)&&((a22==1)&&((a12==11)&&((!(a15==1)&&(!(a5==1)&&((a6==1)&&(!(a0==1)&&(((a18==1)||!(a18==1))&&(input==3))))))&&(a20==1)))))&&(a3==6))&&(a4==1))){ + if((a12==9)){ + a0 = 1; + a12 = 12; + a3 = 5; + a6 = 0; + a4 = 0; + a18 = 0; + }else{ + a18 = 1; + a5 = 1; + a3 = 5; + a12 = 8; + a15 = 1; + a0 = 1; + a27 = 1; + } + return -1; + } else if(((!(a15==1)&&((a0==1)&&((a18==1)&&((a22==1)&&((a3==8)&&((a4==1)&&((a20==1)&&((a27==1)&&((!(a6==1)&&(input==5))&&(a5==1))))))))))&&(a12==10))){ + a22 = 0; + a12 = 9; + a3 = 7; + a4 = 0; + a5 = 0; + return -1; + } else if((!(a22==1)&&(((a5==1)&&(((a20==1)&&((a27==1)&&((((a12==11)&&(((input==4)&&(a6==1))&&(a3==8)))&&!(a4==1))&&!(a0==1))))&&!(a18==1)))&&!(a15==1)))){ + a15 = 1; + a18 = 1; + a3 = 4; + a0 = 1; + a22 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if((!(a6==1)&&((!(a27==1)&&(((!(a15==1)&&(((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==6))&&(a12==8))&&!(a4==1))&&(a5==1)))&&(a3==5))&&(a20==1)))&&!(a0==1)))){ + a6 = 1; + a18 = 0; + a3 = 4; + a27 = 1; + a15 = 1; + a0 = 1; + a22 = 0; + return 26; + } else if((((((a6==1)&&((a22==1)&&(!(a0==1)&&(((a15==1)&&(((a27==1)&&((input==4)&&!(a18==1)))&&(a12==11)))&&!(a5==1)))))&&(a20==1))&&!(a4==1))&&(a3==5))){ + a5 = 1; + a4 = 1; + a12 = 8; + a0 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((((((a12==12)&&(!(a0==1)&&(!(a22==1)&&(((a3==6)&&((a27==1)&&((a20==1)&&(input==3))))&&!(a6==1)))))&&!(a15==1))&&(a5==1))&&(a4==1))&&!(a18==1))){ + a6 = 1; + a0 = 1; + a4 = 0; + a3 = 4; + a18 = 1; + a15 = 1; + a12 = 8; + return 21; + } else if(((!(a5==1)&&((a20==1)&&(((((((a4==1)&&((input==1)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))))&&!(a15==1))&&(a3==5))&&!(a27==1))&&!(a0==1))&&(a6==1))))&&(a12==11))){ + a0 = 1; + a12 = 8; + a4 = 0; + a3 = 4; + a18 = 1; + a5 = 1; + a22 = 0; + a27 = 1; + a15 = 1; + return -1; + } else if(((((((a6==1)&&((a20==1)&&((((input==6)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6))))&&!(a27==1))&&(a12==8))))&&(a0==1))&&(a5==1))&&(a4==1))&&!(a15==1))){ + a6 = 0; + a4 = 0; + a12 = 12; + a27 = 1; + a22 = 1; + a3 = 6; + a18 = 0; + a5 = 0; + return -1; + } else if(((a18==1)&&(!(a6==1)&&((a5==1)&&((((a3==6)&&((a15==1)&&((((a12==9)&&(!(a27==1)&&(input==5)))&&(a20==1))&&(a22==1))))&&(a0==1))&&(a4==1)))))){ + a3 = 5; + a22 = 0; + a12 = 11; + a18 = 0; + a5 = 0; + return 26; + } else if(((a0==1)&&(((a3==7)&&(((!(a27==1)&&(((a20==1)&&(((input==6)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a12==10)))&&!(a4==1)))&&!(a6==1))&&(a5==1)))&&!(a15==1)))){ + a6 = 1; + a12 = 8; + a3 = 4; + a4 = 1; + a22 = 1; + a27 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if((((a4==1)&&((((a6==1)&&(((a27==1)&&((a15==1)&&((input==5)&&(((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1))))||((a3==6)&&((a18==1)&&(a22==1)))))))&&!(a0==1)))&&(a12==8))&&(a20==1)))&&!(a5==1))){ + a0 = 1; + a12 = 12; + a27 = 0; + a3 = 5; + a18 = 0; + a22 = 0; + return 26; + } else if(((a12==10)&&((!(a0==1)&&((a20==1)&&((!(a15==1)&&((a27==1)&&((a4==1)&&((((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1))))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==2)))))&&(a6==1))))&&(a5==1)))){ + a18 = 1; + a12 = 11; + a3 = 6; + a22 = 0; + a15 = 1; + a0 = 1; + a6 = 0; + return 21; + } else if((!(a4==1)&&(((!(a27==1)&&((!(a0==1)&&((!(a6==1)&&((a3==8)&&((input==2)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))))&&(a20==1)))&&(a12==9)))&&!(a15==1))&&!(a5==1)))){ + if((a22==1)){ + a27 = 1; + a22 = 0; + a12 = 10; + a18 = 1; + a3 = 5; + a15 = 1; + }else{ + a0 = 1; + a22 = 0; + a18 = 1; + a15 = 1; + a27 = 1; + a4 = 1; + a5 = 1; + a12 = 8; + } + return -1; + } else if((!(a0==1)&&((a12==8)&&(((!(a15==1)&&(((a20==1)&&(!(a18==1)&&(((a22==1)&&((input==5)&&!(a4==1)))&&!(a27==1))))&&(a5==1)))&&!(a6==1))&&(a3==6))))){ + a27 = 1; + a12 = 11; + a3 = 5; + a6 = 1; + a0 = 1; + return 21; + } else if((((a4==1)&&((((a20==1)&&(((a27==1)&&((a12==8)&&((input==4)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1)))))))&&!(a5==1)))&&!(a15==1))&&(a6==1)))&&!(a0==1))){ + a12 = 9; + a3 = 7; + a15 = 1; + a18 = 1; + a22 = 1; + a6 = 0; + return -1; + } else if(((a3==6)&&((a27==1)&&(!(a5==1)&&((a6==1)&&((a20==1)&&(!(a4==1)&&((((a12==8)&&((input==3)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a15==1))&&!(a0==1))))))))){ + a0 = 1; + a22 = 0; + a4 = 1; + a27 = 0; + a3 = 5; + a6 = 0; + a12 = 11; + a18 = 0; + return 21; + } else if(((a3==4)&&(((a0==1)&&((a20==1)&&(!(a5==1)&&((a4==1)&&(!(a15==1)&&((((a12==8)&&((a22==1)&&(input==3)))&&!(a27==1))&&(a6==1)))))))&&(a18==1)))){ + a15 = 1; + a3 = 7; + a22 = 0; + a5 = 1; + a12 = 11; + return 21; + } else if(((a5==1)&&(!(a15==1)&&(((a3==8)&&(((((((a27==1)&&((input==5)&&(a20==1)))&&(a0==1))&&!(a6==1))&&(a4==1))&&(a12==11))&&!(a18==1)))&&!(a22==1))))){ + a12 = 10; + return -1; + } else if((!(a5==1)&&(((a15==1)&&((a20==1)&&((a0==1)&&((!(a6==1)&&((((!(a18==1)&&(input==3))&&(a27==1))&&(a12==9))&&!(a4==1)))&&(a3==6)))))&&(a22==1)))){ + a5 = 1; + a12 = 12; + a15 = 0; + a3 = 5; + return 26; + } else if((((((((a20==1)&&(!(a27==1)&&(((input==1)&&(((!(a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==8)))))&&(a4==1))))&&(a5==1))&&(a12==12))&&!(a15==1))&&!(a6==1))&&(a0==1))){ + a22 = 1; + a15 = 1; + a18 = 1; + a3 = 4; + a27 = 1; + a12 = 8; + a6 = 1; + return -1; + } else if(((a5==1)&&((a27==1)&&((!(a18==1)&&(((a3==7)&&((a6==1)&&(!(a4==1)&&((a20==1)&&(((input==5)&&!(a15==1))&&(a0==1))))))&&(a12==11)))&&!(a22==1))))){ + a3 = 6; + a15 = 1; + a27 = 0; + return 24; + } else if(((a12==10)&&(!(a5==1)&&(((a20==1)&&(((!(a0==1)&&(((a22==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a6==1)))&&!(a27==1)))&&!(a15==1))&&(a3==5)))&&(a4==1))))){ + if((a6==1)){ + a12 = 9; + a18 = 0; + a22 = 0; + a4 = 0; + a0 = 1; + a5 = 1; + a3 = 6; + a27 = 1; + }else{ + a27 = 1; + a12 = 8; + a3 = 6; + a15 = 1; + a5 = 1; + a18 = 1; + a0 = 1; + } + return 21; + } else if(((((((((((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==4))&&(a5==1))&&(a20==1))&&(a12==9))&&!(a15==1))&&!(a0==1))&&(a6==1))&&!(a27==1))&&!(a4==1))){ + a12 = 8; + a4 = 1; + a5 = 0; + a0 = 1; + a18 = 1; + a22 = 0; + a3 = 8; + return -1; + } else if(((!(a15==1)&&((a12==10)&&((a3==4)&&((a5==1)&&(((a0==1)&&((!(a27==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&!(a4==1)))&&!(a22==1)))&&(a20==1))))))&&(a6==1))){ + a4 = 1; + a22 = 1; + a15 = 1; + a12 = 8; + a18 = 1; + a27 = 1; + return -1; + } else if(((a27==1)&&(((((a4==1)&&(((((input==6)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))||((!(a18==1)&&(a22==1))&&(a3==5))))&&(a0==1))&&(a12==8))&&!(a6==1)))&&(a15==1))&&!(a5==1))&&(a20==1)))){ + a18 = 0; + a22 = 0; + a4 = 0; + a3 = 4; + a15 = 0; + a12 = 9; + return 21; + } else if((!(a6==1)&&(!(a27==1)&&(((a0==1)&&(!(a15==1)&&((a3==7)&&(((a4==1)&&(((input==3)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a12==10)))&&(a20==1)))))&&!(a5==1))))){ + a3 = 6; + a18 = 0; + a15 = 1; + a4 = 0; + a0 = 0; + a12 = 11; + a22 = 0; + a27 = 1; + a6 = 1; + return 21; + } else if((((((((!(a5==1)&&(!(a22==1)&&((a12==12)&&((a20==1)&&((input==5)&&(a27==1))))))&&(a0==1))&&!(a15==1))&&(a6==1))&&(a4==1))&&(a3==8))&&!(a18==1))){ + a18 = 1; + a3 = 4; + a5 = 1; + a22 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if((((((a12==11)&&(!(a0==1)&&(((a20==1)&&(!(a5==1)&&((input==2)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))||((a3==6)&&((a22==1)&&!(a18==1)))))))&&(a15==1))))&&!(a6==1))&&(a27==1))&&!(a4==1))){ + a4 = 1; + a6 = 1; + a0 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + a5 = 1; + return -1; + } else if(((((a6==1)&&(((((a4==1)&&(((a5==1)&&((a12==8)&&(((a18==1)||!(a18==1))&&(input==6))))&&(a0==1)))&&(a3==5))&&(a15==1))&&(a22==1)))&&(a20==1))&&!(a27==1))){ + if((a27==1)){ + a15 = 0; + a18 = 1; + a4 = 0; + a0 = 0; + a12 = 10; + a3 = 8; + a27 = 1; + a5 = 0; + }else{ + a4 = 0; + a12 = 11; + a15 = 0; + a6 = 0; + a18 = 1; + a5 = 0; + a27 = 1; + a3 = 4; + } + return 26; + } else if(((a6==1)&&(((((a3==8)&&(((a5==1)&&(((((input==3)&&(a20==1))&&(a12==10))&&!(a15==1))&&!(a18==1)))&&!(a4==1)))&&(a22==1))&&(a0==1))&&(a27==1)))){ + return -1; + } else if((((a15==1)&&((((a0==1)&&((!(a6==1)&&((a22==1)&&((a12==12)&&(((input==1)&&((a18==1)||!(a18==1)))&&!(a5==1)))))&&(a27==1)))&&(a3==5))&&(a4==1)))&&(a20==1))){ + a3 = 4; + a18 = 1; + a12 = 8; + a5 = 1; + a6 = 1; + return -1; + } else if(((((a27==1)&&(!(a6==1)&&((a15==1)&&((a5==1)&&((a0==1)&&((a12==11)&&(!(a4==1)&&((input==2)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))))))))&&(a3==5))&&(a20==1))){ + a12 = 10; + a4 = 1; + a3 = 7; + a22 = 0; + a18 = 1; + a5 = 0; + return -1; + } else if(((a6==1)&&(((a18==1)&&((((((a27==1)&&((((input==6)&&!(a0==1))&&(a4==1))&&(a5==1)))&&(a3==8))&&(a15==1))&&(a20==1))&&(a22==1)))&&(a12==10)))){ + a3 = 6; + a18 = 0; + a0 = 1; + a15 = 0; + a22 = 0; + return 24; + } else if(((a12==9)&&(((((!(a0==1)&&(!(a5==1)&&((a15==1)&&(((a4==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a3==6)))))&&!(a27==1))&&!(a22==1))&&(a20==1))&&!(a6==1)))){ + a5 = 1; + a6 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + a27 = 1; + return 21; + } else if((((!(a5==1)&&((a15==1)&&(!(a27==1)&&((a12==10)&&(((a20==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&(a0==1))&&(a3==6)))&&!(a6==1))))))&&!(a22==1))&&!(a4==1))){ + a18 = 1; + a15 = 0; + a27 = 1; + a6 = 1; + a12 = 11; + return 26; + } else if(((a20==1)&&((((!(a15==1)&&((a5==1)&&(!(a22==1)&&((((a0==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a3==6))&&(a12==10)))))&&(a6==1))&&!(a27==1))&&(a4==1)))){ + a3 = 4; + a6 = 0; + a5 = 0; + a18 = 1; + a4 = 0; + a27 = 1; + return -1; + } else if(((a15==1)&&((((((a20==1)&&((input==1)&&(((((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8))&&!(a6==1))||(((!(a4==1)&&((a18==1)&&(a22==1)))&&(a3==4))&&(a6==1)))))&&(a12==12))&&(a0==1))&&!(a5==1))&&!(a27==1)))){ + a18 = 0; + a12 = 11; + a15 = 0; + a27 = 1; + a22 = 1; + a3 = 4; + a5 = 1; + a6 = 0; + a4 = 0; + return -1; + } else if(((a27==1)&&(((a5==1)&&(((a12==10)&&(!(a4==1)&&((((a3==7)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==4)))&&(a20==1))&&!(a6==1))))&&!(a0==1)))&&(a15==1)))){ + a18 = 1; + a0 = 1; + a12 = 9; + a4 = 1; + a3 = 5; + a22 = 1; + a27 = 0; + return 21; + } else if(((a12==9)&&((a20==1)&&(!(a5==1)&&(((!(a15==1)&&(((a3==6)&&((a4==1)&&((input==2)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))&&!(a27==1)))&&!(a0==1))&&(a6==1)))))){ + a27 = 1; + a0 = 1; + a12 = 11; + a18 = 0; + a4 = 0; + a5 = 1; + a22 = 1; + a3 = 8; + return 21; + } else if((((a18==1)&&((a6==1)&&((a5==1)&&(!(a27==1)&&((a22==1)&&(((((a20==1)&&((input==3)&&(a12==8)))&&!(a4==1))&&(a3==4))&&(a0==1)))))))&&(a15==1))){ + a3 = 7; + a12 = 11; + a5 = 0; + return 21; + } else if((((((a15==1)&&(((a0==1)&&((((input==6)&&(((!(a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8)))))&&(a4==1))&&(a20==1)))&&!(a27==1)))&&(a12==8))&&(a5==1))&&!(a6==1))){ + a12 = 12; + a6 = 1; + a3 = 8; + a5 = 0; + a18 = 1; + a22 = 0; + return 26; + } else if((!(a4==1)&&((!(a6==1)&&((a15==1)&&((a5==1)&&(((a12==8)&&(((input==6)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1)))))&&!(a0==1)))&&(a20==1)))))&&(a27==1)))){ + if((a12==11)){ + a6 = 1; + a22 = 0; + a3 = 6; + a18 = 1; + a12 = 10; + }else{ + a18 = 1; + a22 = 1; + a6 = 1; + a3 = 5; + a27 = 0; + a0 = 1; + } + return -1; + } else if((!(a6==1)&&((a12==8)&&(!(a18==1)&&(!(a15==1)&&(((a20==1)&&((((((a0==1)&&(input==5))&&(a4==1))&&!(a27==1))&&(a5==1))&&(a3==7)))&&!(a22==1))))))){ + a3 = 5; + a4 = 0; + a27 = 1; + a5 = 0; + a6 = 1; + a15 = 1; + a18 = 1; + a12 = 12; + return -1; + } else if((!(a0==1)&&(((a15==1)&&(((a5==1)&&((a4==1)&&(((a12==10)&&((input==1)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))||((a3==5)&&(!(a18==1)&&(a22==1))))))&&(a27==1))))&&(a20==1)))&&(a6==1)))){ + a12 = 8; + a0 = 1; + a18 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if(((!(a15==1)&&(((((a3==7)&&(!(a27==1)&&(!(a4==1)&&(((a20==1)&&((a18==1)&&(input==3)))&&!(a0==1)))))&&!(a22==1))&&!(a6==1))&&(a12==10)))&&!(a5==1))){ + a0 = 1; + a15 = 1; + a12 = 8; + a5 = 1; + a4 = 1; + a27 = 1; + a22 = 1; + a3 = 8; + return 21; + } else if(((!(a4==1)&&(((a3==5)&&((a20==1)&&(!(a0==1)&&((a15==1)&&(((a27==1)&&((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a12==8))))))&&!(a6==1)))&&!(a5==1))){ + a22 = 0; + a4 = 1; + a18 = 0; + a0 = 1; + a15 = 0; + a12 = 10; + return 21; + } else if(((a15==1)&&(((((((a12==10)&&((((input==3)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&(a20==1))&&(a4==1)))&&(a3==7))&&(a27==1))&&(a5==1))&&(a0==1))&&(a6==1)))){ + a3 = 6; + a12 = 8; + a15 = 0; + a18 = 1; + a22 = 1; + return 26; + } else if((((a27==1)&&((a5==1)&&((a3==5)&&((a20==1)&&(((a12==10)&&((!(a4==1)&&((input==3)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a6==1)))&&!(a0==1))))))&&(a15==1))){ + a18 = 1; + a5 = 0; + a0 = 1; + a4 = 1; + a22 = 1; + a27 = 0; + a6 = 1; + a3 = 8; + return 21; + } else if((((a4==1)&&(((a20==1)&&((a12==8)&&((a27==1)&&((a5==1)&&(((input==1)&&(((((a18==1)&&!(a22==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))||(((a22==1)&&(a18==1))&&(a3==6))))&&(a15==1))))))&&!(a6==1)))&&!(a0==1))){ + a22 = 1; + a6 = 1; + a3 = 4; + a0 = 1; + a18 = 1; + return -1; + } else if((((a20==1)&&(!(a15==1)&&((((((!(a6==1)&&(((a4==1)&&(input==2))&&(a12==9)))&&!(a27==1))&&!(a18==1))&&(a3==5))&&(a22==1))&&(a5==1))))&&(a0==1))){ + a3 = 7; + a15 = 1; + a18 = 1; + a27 = 1; + a4 = 0; + a12 = 10; + return 21; + } else if((((!(a27==1)&&(!(a4==1)&&((!(a5==1)&&((a12==11)&&(((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==3))&&(a20==1))&&(a0==1))))&&(a3==7))))&&(a6==1))&&(a15==1))){ + a27 = 1; + a5 = 1; + a12 = 12; + a6 = 0; + a22 = 1; + a18 = 1; + a3 = 8; + a15 = 0; + return -1; + } else if(((a0==1)&&(!(a6==1)&&(((a3==8)&&((!(a15==1)&&((a12==10)&&((!(a5==1)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==2)))&&(a27==1))))&&(a20==1)))&&!(a4==1))))){ + a3 = 5; + a4 = 1; + a18 = 0; + a22 = 0; + return -1; + } else if(((a12==8)&&(!(a27==1)&&((!(a15==1)&&(((a6==1)&&((a20==1)&&(((!(a4==1)&&((input==1)&&!(a22==1)))&&!(a5==1))&&!(a18==1))))&&(a3==8)))&&(a0==1))))){ + a3 = 5; + a6 = 0; + a18 = 1; + a12 = 11; + return 21; + } else if((((a20==1)&&((((a0==1)&&((a4==1)&&((a15==1)&&(((input==2)&&(((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8))))&&!(a5==1)))))&&(a27==1))&&(a12==11)))&&(a6==1))){ + a5 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((!(a22==1)&&((a15==1)&&((((((a4==1)&&((a20==1)&&((a5==1)&&(!(a27==1)&&(input==6)))))&&(a0==1))&&(a6==1))&&(a3==7))&&!(a18==1))))&&(a12==9))){ + a4 = 0; + a22 = 1; + a6 = 0; + a15 = 0; + a5 = 0; + a3 = 6; + a12 = 8; + return -1; + } else if(((a3==7)&&((a15==1)&&((((a12==11)&&((a20==1)&&((a22==1)&&(!(a27==1)&&((a0==1)&&(!(a5==1)&&(((a18==1)||!(a18==1))&&(input==3))))))))&&(a4==1))&&!(a6==1))))){ + a4 = 0; + a18 = 1; + a27 = 1; + a3 = 5; + a12 = 10; + return 21; + } else if(((a5==1)&&(((a4==1)&&(!(a6==1)&&((!(a15==1)&&(((((((a3==7)&&(!(a22==1)&&(a18==1)))||((a3==7)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==4))&&(a12==8))&&!(a0==1)))&&(a20==1))))&&(a27==1)))){ + if((a4==1)){ + a6 = 1; + a18 = 0; + a3 = 5; + a22 = 1; + a15 = 1; + a12 = 12; + }else{ + a22 = 0; + a18 = 1; + a4 = 0; + a12 = 11; + a3 = 8; + } + return 26; + } else if((!(a18==1)&&((a5==1)&&(((a15==1)&&((((a3==8)&&((!(a27==1)&&((a20==1)&&(!(a22==1)&&(input==6))))&&(a12==12)))&&!(a4==1))&&(a0==1)))&&!(a6==1))))){ + a4 = 1; + a27 = 1; + a12 = 10; + a22 = 1; + a3 = 4; + return 21; + } else if((!(a15==1)&&(((a0==1)&&((!(a4==1)&&(((a12==11)&&(!(a5==1)&&(((((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==5))))&&(a20==1)))&&(a27==1)))&&!(a6==1)))){ + a22 = 1; + a18 = 1; + a6 = 1; + a3 = 4; + a12 = 8; + a15 = 1; + a5 = 1; + a4 = 1; + return -1; + } else if(((((a3==7)&&((a27==1)&&(!(a15==1)&&((((a20==1)&&(!(a6==1)&&(!(a0==1)&&((input==6)&&(a12==12)))))&&(a22==1))&&!(a5==1)))))&&!(a4==1))&&(a18==1))){ + a12 = 9; + a18 = 0; + a5 = 1; + a6 = 1; + a15 = 1; + a3 = 4; + return 26; + } else if(((a27==1)&&(!(a0==1)&&((((((a20==1)&&(((input==5)&&(((a3==6)&&((a22==1)&&!(a18==1)))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1))))))&&(a5==1)))&&!(a6==1))&&!(a4==1))&&(a12==10))&&!(a15==1))))){ + a18 = 1; + a22 = 1; + a0 = 1; + a5 = 0; + a12 = 11; + a3 = 5; + return 26; + } else if((!(a27==1)&&(!(a5==1)&&((a0==1)&&((((a3==7)&&((a12==8)&&(((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==4))&&(a15==1))&&!(a4==1))))&&(a20==1))&&(a6==1)))))){ + a6 = 0; + a18 = 0; + a3 = 5; + a12 = 12; + a22 = 0; + a27 = 1; + return 21; + } else if(((a12==8)&&(((!(a15==1)&&(!(a27==1)&&(!(a5==1)&&(((!(a6==1)&&((a3==8)&&((!(a22==1)&&!(a18==1))&&(a4==1))))||((a6==1)&&((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1))))))&&(input==2)))))&&(a20==1))&&!(a0==1)))){ + a4 = 0; + a5 = 1; + a3 = 7; + a6 = 1; + a0 = 1; + a22 = 0; + a27 = 1; + a18 = 0; + a15 = 1; + return -1; + } else if(((a5==1)&&((((((((a12==12)&&((a6==1)&&((input==3)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))))&&!(a4==1))&&!(a27==1))&&(a3==8))&&(a0==1))&&(a15==1))&&(a20==1)))){ + a22 = 0; + a3 = 7; + a6 = 0; + a4 = 1; + a27 = 1; + a18 = 0; + return 26; + } else if((((a12==9)&&((((((input==6)&&((((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1)))&&!(a6==1))||((a6==1)&&((!(a4==1)&&((a22==1)&&(a18==1)))&&(a3==4)))))&&(a5==1))&&(a27==1))&&(a15==1))&&(a20==1)))&&(a0==1))){ + a6 = 1; + a4 = 0; + a15 = 0; + a18 = 1; + a12 = 12; + a22 = 0; + a3 = 5; + return 21; + } else if((((((a22==1)&&(!(a4==1)&&(((((((input==1)&&!(a18==1))&&(a12==11))&&!(a27==1))&&!(a6==1))&&(a15==1))&&(a20==1))))&&(a3==8))&&!(a5==1))&&!(a0==1))){ + if((a22==1)){ + a12 = 10; + a4 = 1; + a5 = 1; + a3 = 7; + }else{ + a6 = 1; + a12 = 8; + a18 = 1; + a3 = 7; + a27 = 1; + a0 = 1; + a5 = 1; + a4 = 1; + } + return 21; + } else if(((!(a27==1)&&((a4==1)&&((((!(a22==1)&&(((a18==1)&&(((input==5)&&(a3==8))&&(a20==1)))&&(a6==1)))&&(a12==8))&&(a5==1))&&!(a0==1))))&&!(a15==1))){ + a3 = 6; + a12 = 10; + a0 = 1; + a6 = 0; + a15 = 1; + return 21; + } else if(((((!(a27==1)&&((((a12==11)&&(((!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4)))||(((a6==1)&&((a3==8)&&(!(a22==1)&&(a18==1))))||((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))))&&(input==6)))&&!(a0==1))&&!(a5==1)))&&(a20==1))&&(a4==1))&&!(a15==1))){ + a0 = 1; + a3 = 6; + a12 = 8; + a5 = 1; + a27 = 1; + a6 = 1; + a4 = 0; + a15 = 1; + a18 = 1; + a22 = 0; + return 21; + } else if(((!(a18==1)&&(!(a22==1)&&(((((!(a27==1)&&(!(a6==1)&&(((input==5)&&(a0==1))&&(a5==1))))&&(a15==1))&&(a12==12))&&!(a4==1))&&(a20==1))))&&(a3==8))){ + a15 = 0; + a18 = 1; + a5 = 0; + a27 = 1; + a22 = 1; + a6 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if((((a20==1)&&((!(a4==1)&&(!(a27==1)&&(((a5==1)&&((!(a6==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4)))&&(a3==5)))&&!(a0==1))))&&!(a15==1)))&&(a12==8))){ + a0 = 1; + a18 = 0; + a6 = 1; + a15 = 1; + a27 = 1; + a22 = 1; + return 24; + } else if(((a15==1)&&(((((a12==10)&&((((!(a27==1)&&((a4==1)&&(((a18==1)||!(a18==1))&&(input==6))))&&(a6==1))&&!(a22==1))&&(a20==1)))&&(a3==5))&&!(a5==1))&&!(a0==1)))){ + a12 = 9; + a18 = 1; + a4 = 0; + a6 = 0; + return 26; + } else if(((a15==1)&&((a12==11)&&((a6==1)&&((((((a4==1)&&((input==4)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5)))))&&(a20==1))&&(a27==1))&&!(a0==1))&&(a5==1)))))){ + a27 = 0; + a3 = 6; + a0 = 1; + a18 = 0; + a4 = 0; + a12 = 12; + a22 = 0; + return 26; + } else if((((a22==1)&&(((a5==1)&&(!(a4==1)&&(((a12==10)&&((a3==8)&&(((a27==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a20==1))))&&!(a0==1))))&&!(a6==1)))&&!(a15==1))){ + a3 = 4; + a12 = 8; + a15 = 1; + a0 = 1; + a18 = 1; + a6 = 1; + a4 = 1; + return -1; + } else if((((a6==1)&&(((!(a4==1)&&(((((input==2)&&(((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1))))||((a3==7)&&((a22==1)&&(a18==1)))))&&!(a0==1))&&(a12==10))&&!(a27==1)))&&!(a5==1))&&(a20==1)))&&!(a15==1))){ + if((a18==1)){ + a18 = 1; + a22 = 0; + a27 = 1; + a4 = 1; + a3 = 7; + a6 = 0; + a0 = 1; + a5 = 1; + }else{ + a6 = 0; + a5 = 1; + a3 = 4; + a18 = 0; + a22 = 1; + a4 = 1; + a15 = 1; + a12 = 11; + } + return 21; + } else if((!(a27==1)&&(((((!(a15==1)&&(!(a6==1)&&((a20==1)&&((a5==1)&&(!(a0==1)&&((a18==1)&&(input==2)))))))&&(a3==5))&&(a12==11))&&(a4==1))&&(a22==1)))){ + a3 = 7; + a4 = 0; + a12 = 9; + a18 = 0; + a27 = 1; + a6 = 1; + return -1; + } else if(((!(a27==1)&&((((a20==1)&&((a15==1)&&(((a3==4)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==5))&&(a4==1)))&&!(a0==1))))&&(a12==10))&&!(a6==1)))&&!(a5==1))){ + if((a15==1)){ + a27 = 1; + a0 = 1; + a6 = 1; + a18 = 0; + a22 = 0; + a5 = 1; + a4 = 0; + a3 = 5; + a12 = 8; + }else{ + a12 = 8; + a0 = 1; + a6 = 1; + a18 = 0; + a22 = 0; + a5 = 1; + a27 = 1; + } + return 26; + } else if(((((((!(a27==1)&&((!(a5==1)&&((a12==9)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==2))))&&(a3==8)))&&!(a0==1))&&!(a4==1))&&(a20==1))&&(a15==1))&&(a6==1))){ + a22 = 1; + a12 = 12; + a4 = 1; + a3 = 4; + a5 = 1; + a15 = 0; + a27 = 1; + a18 = 0; + return -1; + } else if(((a3==7)&&(!(a0==1)&&((((!(a6==1)&&(!(a18==1)&&((a27==1)&&(((!(a15==1)&&(input==3))&&(a4==1))&&(a20==1)))))&&(a12==10))&&!(a22==1))&&(a5==1))))){ + a3 = 6; + a0 = 1; + a5 = 0; + a15 = 1; + a18 = 1; + return -1; + } else if((((a12==9)&&((a20==1)&&((a0==1)&&(((!(a15==1)&&((!(a27==1)&&((input==4)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))))&&(a4==1)))&&!(a5==1))&&!(a6==1)))))&&(a3==4))){ + a3 = 6; + a12 = 8; + a15 = 1; + a6 = 1; + a27 = 1; + a18 = 1; + a5 = 1; + a22 = 1; + return -1; + } else if(((a15==1)&&((a27==1)&&((a20==1)&&(!(a5==1)&&(((a12==10)&&(!(a0==1)&&((((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1)))))&&(input==2))))&&(a4==1))))))){ + a22 = 1; + a5 = 1; + a3 = 4; + a18 = 1; + a6 = 1; + a12 = 8; + a0 = 1; + return -1; + } else if(((((a6==1)&&(((a20==1)&&((!(a0==1)&&(((a4==1)&&((input==6)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))))&&(a27==1)))&&(a15==1)))&&(a3==4)))&&!(a5==1))&&(a12==10))){ + a22 = 0; + a18 = 1; + a27 = 0; + a12 = 8; + a0 = 1; + return 26; + } else if(((((a0==1)&&((((!(a27==1)&&((a6==1)&&((((!(a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a22==1)&&(a18==1)))))&&(input==2))))&&(a12==11))&&!(a4==1))&&!(a15==1)))&&(a20==1))&&!(a5==1))){ + a22 = 1; + a15 = 1; + a5 = 1; + a4 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + a27 = 1; + return -1; + } else if((((a5==1)&&(((a15==1)&&((((a3==8)&&((a0==1)&&((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==3))&&(a20==1))))&&(a12==9))&&!(a27==1)))&&(a4==1)))&&!(a6==1))){ + a22 = 1; + a18 = 1; + a6 = 1; + a27 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if((!(a4==1)&&((a27==1)&&((a12==9)&&(((((a20==1)&&((a5==1)&&(((((a3==5)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==5)))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==1))))&&(a6==1))&&(a15==1))&&(a0==1)))))){ + a22 = 0; + a5 = 0; + a3 = 5; + a18 = 1; + a4 = 1; + a12 = 12; + return 21; + } else if(((!(a15==1)&&(((a3==8)&&((a20==1)&&((((a12==11)&&(((input==6)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&(a0==1)))&&!(a5==1))&&!(a27==1))))&&!(a4==1)))&&!(a6==1))){ + if((a20==1)){ + a22 = 0; + a27 = 1; + a4 = 1; + a12 = 10; + a3 = 7; + a0 = 0; + a6 = 1; + a18 = 1; + }else{ + a12 = 12; + a22 = 1; + a5 = 1; + a27 = 1; + a3 = 7; + a18 = 0; + } + return 21; + } else if(((a15==1)&&((a20==1)&&((!(a4==1)&&((((a27==1)&&(((a5==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1)))&&(a12==10)))&&(a0==1))&&!(a6==1)))&&(a3==5))))){ + a6 = 1; + a22 = 1; + a18 = 0; + a3 = 4; + return -1; + } else if((((a3==7)&&((!(a5==1)&&((((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5))&&!(a0==1))&&(a6==1))&&!(a27==1))&&(a20==1))&&!(a4==1)))&&!(a15==1)))&&(a12==10))){ + if((a4==1)){ + a15 = 1; + a18 = 0; + a0 = 1; + a27 = 1; + a22 = 0; + a3 = 5; + a5 = 1; + a4 = 1; + a12 = 8; + }else{ + a18 = 0; + a3 = 6; + a12 = 8; + a5 = 1; + a22 = 0; + a6 = 0; + a27 = 1; + a4 = 1; + a15 = 1; + a0 = 1; + } + return -1; + } else if((!(a6==1)&&((a22==1)&&((((a20==1)&&(((!(a0==1)&&(((a4==1)&&((input==4)&&(a15==1)))&&(a27==1)))&&(a5==1))&&!(a18==1)))&&(a3==7))&&(a12==12))))){ + a18 = 1; + a6 = 1; + a0 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if((((((a5==1)&&((a20==1)&&((a3==8)&&(((a15==1)&&(!(a0==1)&&((a12==8)&&((input==3)&&!(a22==1)))))&&(a27==1)))))&&!(a18==1))&&!(a6==1))&&(a4==1))){ + a18 = 1; + a6 = 1; + a3 = 4; + a22 = 1; + a0 = 1; + return -1; + } else if(((a12==10)&&(((((((((a3==8)&&(!(a4==1)&&(!(a15==1)&&((!(a22==1)&&!(a18==1))&&(a5==1)))))&&!(a6==1))||((a6==1)&&(((a4==1)&&((!(a5==1)&&((a18==1)&&(a22==1)))&&(a15==1)))&&(a3==4))))||((((a4==1)&&((!(a5==1)&&(!(a18==1)&&(a22==1)))&&(a15==1)))&&(a3==4))&&(a6==1)))&&(input==4))&&(a20==1))&&(a27==1))&&(a0==1)))){ + a5 = 1; + a3 = 4; + a18 = 1; + a4 = 1; + a22 = 0; + a15 = 0; + a6 = 0; + return -1; + } else if(((a22==1)&&((a3==6)&&(!(a5==1)&&(!(a4==1)&&(((((a20==1)&&(!(a6==1)&&((a12==12)&&(((a18==1)||!(a18==1))&&(input==5)))))&&!(a15==1))&&(a27==1))&&(a0==1))))))){ + a15 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a4 = 1; + a5 = 1; + a6 = 1; + return -1; + } else if((((a20==1)&&((a12==9)&&((((a15==1)&&(((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a27==1))&&!(a0==1))&&(a4==1)))&&!(a6==1))&&(a5==1))))&&(a3==5))){ + a18 = 1; + a6 = 1; + a0 = 1; + a12 = 10; + a22 = 1; + a15 = 0; + a3 = 6; + return 21; + } else if((((!(a15==1)&&((a3==4)&&(((!(a5==1)&&((a20==1)&&(!(a0==1)&&((a4==1)&&(((a18==1)||!(a18==1))&&(input==5))))))&&!(a22==1))&&(a6==1))))&&(a12==11))&&!(a27==1))){ + if((a6==1)){ + a18 = 1; + a4 = 0; + a12 = 8; + a0 = 1; + a27 = 1; + a22 = 1; + a6 = 0; + a15 = 1; + a5 = 1; + }else{ + a3 = 6; + a4 = 0; + a22 = 1; + a0 = 1; + a6 = 0; + a27 = 1; + a12 = 9; + a15 = 1; + a18 = 0; + } + return 26; + } else if(((a4==1)&&((a27==1)&&(((a12==9)&&(!(a5==1)&&((((((input==4)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&(a20==1))&&(a15==1))&&(a3==5))&&!(a0==1))))&&!(a6==1))))){ + a18 = 0; + a0 = 1; + a3 = 4; + a4 = 0; + a22 = 1; + a12 = 11; + return -1; + } else if((!(a18==1)&&((((((!(a6==1)&&((a20==1)&&((a12==9)&&(((input==2)&&!(a27==1))&&!(a5==1)))))&&(a22==1))&&(a4==1))&&(a0==1))&&!(a15==1))&&(a3==6)))){ + a22 = 0; + a15 = 1; + a27 = 1; + a12 = 11; + a3 = 7; + a6 = 1; + a5 = 1; + return 26; + } else if((((a5==1)&&((((a20==1)&&((((a22==1)&&((!(a6==1)&&((input==5)&&!(a18==1)))&&(a12==9)))&&(a15==1))&&!(a4==1)))&&(a3==5))&&(a27==1)))&&!(a0==1))){ + a5 = 0; + a3 = 6; + a6 = 1; + a15 = 0; + a4 = 1; + a18 = 1; + a12 = 11; + a0 = 1; + return -1; + } else if(((!(a22==1)&&((a12==12)&&(!(a4==1)&&((a6==1)&&((a27==1)&&(((((((a18==1)||!(a18==1))&&(input==5))&&(a20==1))&&(a3==6))&&!(a5==1))&&(a0==1)))))))&&!(a15==1))){ + a5 = 1; + a12 = 8; + a4 = 1; + a22 = 1; + a15 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a6==1)&&((((a18==1)&&((a22==1)&&((a5==1)&&((((a4==1)&&(((input==5)&&(a0==1))&&(a3==8)))&&(a20==1))&&(a27==1)))))&&!(a15==1))&&(a12==11)))){ + a18 = 0; + a3 = 7; + a15 = 1; + a12 = 10; + return -1; + } else if((((a20==1)&&(((a12==10)&&(((((a4==1)&&((input==4)&&(((a3==5)&&((a22==1)&&(a18==1)))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==4))))))&&!(a6==1))&&(a27==1))&&!(a0==1)))&&(a5==1)))&&!(a15==1))){ + a15 = 1; + a12 = 8; + a6 = 1; + a22 = 1; + a0 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((a3==8)&&((((a20==1)&&(((a22==1)&&(((!(a5==1)&&((a15==1)&&(((a18==1)||!(a18==1))&&(input==2))))&&!(a27==1))&&(a0==1)))&&(a12==8)))&&(a6==1))&&(a4==1)))){ + a27 = 1; + a3 = 4; + a5 = 1; + a18 = 1; + return -1; + } else if(((a5==1)&&((a6==1)&&((a12==9)&&(((!(a27==1)&&((!(a0==1)&&(!(a15==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4))))&&(a3==5)))&&!(a4==1))&&(a20==1)))))){ + a18 = 1; + a15 = 1; + a4 = 1; + a22 = 1; + a12 = 8; + a0 = 1; + a27 = 1; + return 26; + } else if((((a0==1)&&((a22==1)&&((((a4==1)&&((a15==1)&&(((a12==9)&&((a5==1)&&(((a18==1)||!(a18==1))&&(input==5))))&&(a6==1))))&&(a20==1))&&(a3==7))))&&(a27==1))){ + a12 = 11; + a3 = 8; + a4 = 0; + a22 = 0; + a18 = 1; + a15 = 0; + a5 = 0; + return 21; + } else if((!(a4==1)&&(((a27==1)&&(((!(a15==1)&&((a0==1)&&(((((input==2)&&!(a22==1))&&!(a18==1))&&!(a5==1))&&(a3==4))))&&(a20==1))&&(a12==10)))&&!(a6==1)))){ + a15 = 1; + a6 = 1; + a3 = 5; + return -1; + } else if((!(a0==1)&&((a5==1)&&((!(a27==1)&&((((a15==1)&&((((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a12==10))&&!(a6==1)))&&(a3==7))&&(a20==1)))&&!(a4==1))))){ + if((a20==1)){ + a4 = 1; + a3 = 8; + a0 = 1; + a18 = 0; + a27 = 1; + a15 = 0; + a22 = 0; + }else{ + a0 = 1; + a18 = 1; + a6 = 1; + a12 = 8; + a22 = 1; + a27 = 1; + } + return -1; + } else if(((((!(a27==1)&&(((a12==11)&&(!(a15==1)&&((a5==1)&&((a3==8)&&(((input==4)&&((a18==1)||!(a18==1)))&&!(a6==1))))))&&(a20==1)))&&(a4==1))&&(a22==1))&&!(a0==1))){ + if((a0==1)){ + a27 = 1; + a12 = 9; + a6 = 1; + a15 = 1; + a18 = 1; + a3 = 7; + a4 = 0; + }else{ + a15 = 1; + a6 = 1; + a18 = 1; + a3 = 7; + a12 = 9; + a5 = 0; + } + return 24; + } else if((!(a4==1)&&((a6==1)&&((a20==1)&&((((a0==1)&&(((((((a3==7)&&((a18==1)&&!(a22==1)))||((a3==7)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==1))&&!(a27==1))&&!(a15==1)))&&(a12==8))&&!(a5==1)))))){ + a5 = 1; + a15 = 1; + a4 = 1; + a3 = 4; + a22 = 1; + a27 = 1; + a18 = 1; + return -1; + } else if(((((((a12==9)&&((a22==1)&&((a0==1)&&(!(a18==1)&&(((!(a27==1)&&(input==4))&&!(a4==1))&&(a20==1))))))&&(a3==4))&&(a6==1))&&!(a5==1))&&!(a15==1))){ + a22 = 0; + a5 = 1; + a3 = 7; + a4 = 1; + a0 = 0; + a6 = 0; + a27 = 1; + return -1; + } else if((((a0==1)&&((((a6==1)&&(!(a27==1)&&((((!(a5==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a4==1))&&(a3==4))&&(a12==10))))&&(a22==1))&&!(a15==1)))&&(a20==1))){ + a27 = 1; + a18 = 0; + a0 = 0; + a3 = 8; + a22 = 0; + a5 = 1; + return 21; + } else if((!(a15==1)&&(((((a20==1)&&(((a0==1)&&(((((a3==6)&&((a22==1)&&(a18==1)))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==5))))&&(input==5))&&(a12==12)))&&(a4==1)))&&(a6==1))&&!(a27==1))&&!(a5==1)))){ + a22 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + a15 = 1; + a27 = 1; + a5 = 1; + return -1; + } else if(((a12==9)&&(((((a27==1)&&((a6==1)&&(((a20==1)&&((a3==8)&&(((input==4)&&((a18==1)||!(a18==1)))&&(a4==1))))&&!(a15==1))))&&!(a22==1))&&(a0==1))&&!(a5==1)))){ + a15 = 1; + a22 = 1; + a0 = 0; + a6 = 0; + a18 = 0; + return 26; + } else if((((((a20==1)&&((!(a15==1)&&((a12==12)&&((input==3)&&(((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1))))))))&&!(a5==1)))&&!(a4==1))&&!(a27==1))&&(a0==1))){ + a12 = 8; + a4 = 1; + a0 = 0; + a27 = 1; + a6 = 1; + a18 = 1; + a22 = 1; + a3 = 7; + return -1; + } else if((!(a5==1)&&((a12==9)&&((((a3==4)&&(((((a6==1)&&((a20==1)&&((input==2)&&((a18==1)||!(a18==1)))))&&!(a27==1))&&(a0==1))&&(a4==1)))&&(a22==1))&&(a15==1))))){ + a6 = 0; + a18 = 1; + a15 = 0; + a12 = 8; + a4 = 0; + a3 = 6; + return 21; + } else if(((a0==1)&&((a12==9)&&((a4==1)&&((((((((a27==1)&&((input==2)&&(a20==1)))&&!(a22==1))&&!(a15==1))&&(a5==1))&&(a3==5))&&!(a18==1))&&(a6==1)))))){ + a18 = 1; + a5 = 0; + a12 = 12; + a6 = 0; + a3 = 7; + return 21; + } else if(((a18==1)&&((((!(a6==1)&&(((a20==1)&&(!(a0==1)&&(!(a22==1)&&(((a12==11)&&(input==4))&&(a15==1)))))&&(a27==1)))&&(a5==1))&&(a3==7))&&(a4==1)))){ + a6 = 1; + a0 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + return -1; + } else if((((a27==1)&&(((a20==1)&&(((a12==12)&&((a3==5)&&((a6==1)&&((a0==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==2))))))&&!(a15==1)))&&(a4==1)))&&!(a5==1))){ + a22 = 1; + a3 = 8; + a4 = 0; + a18 = 0; + a27 = 0; + return 21; + } else if((((!(a5==1)&&((a4==1)&&(((!(a22==1)&&((((a27==1)&&((a0==1)&&(input==3)))&&(a20==1))&&!(a18==1)))&&(a12==12))&&!(a15==1))))&&(a6==1))&&(a3==8))){ + a12 = 11; + a6 = 0; + a18 = 1; + a15 = 1; + a5 = 1; + a27 = 0; + a3 = 4; + return 24; + } else if(((a5==1)&&(!(a0==1)&&(((a27==1)&&(((a12==10)&&((((((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8))&&!(a6==1))||((a6==1)&&((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))))&&(input==1)))&&(a20==1)))&&(a15==1))))){ + a4 = 0; + a27 = 0; + a0 = 1; + a3 = 7; + a22 = 1; + a6 = 1; + a18 = 0; + return 21; + } else if((((a27==1)&&((a22==1)&&((a6==1)&&((a20==1)&&(((!(a0==1)&&(!(a4==1)&&(((a18==1)&&(input==4))&&(a3==8))))&&(a12==10))&&!(a15==1))))))&&!(a5==1))){ + a22 = 0; + a12 = 12; + a5 = 1; + a18 = 0; + a15 = 1; + a3 = 7; + return -1; + } else if(((a22==1)&&((!(a27==1)&&(((a3==8)&&((a20==1)&&((a4==1)&&((!(a5==1)&&((a15==1)&&((input==1)&&((a18==1)||!(a18==1)))))&&(a12==8)))))&&(a6==1)))&&(a0==1)))){ + a4 = 0; + a15 = 0; + a27 = 1; + a12 = 12; + a5 = 1; + a22 = 0; + a3 = 6; + a18 = 0; + return -1; + } else if((((!(a22==1)&&(((a6==1)&&(!(a4==1)&&(((a12==8)&&((((input==2)&&((a18==1)||!(a18==1)))&&(a27==1))&&(a20==1)))&&!(a5==1))))&&(a3==7)))&&(a0==1))&&(a15==1))){ + a3 = 4; + a15 = 0; + a18 = 1; + a6 = 0; + a5 = 1; + a4 = 1; + a12 = 10; + return 26; + } else if((!(a22==1)&&(!(a15==1)&&(((((((a6==1)&&((a12==10)&&((a20==1)&&(((a18==1)||!(a18==1))&&(input==1)))))&&(a0==1))&&!(a4==1))&&!(a27==1))&&!(a5==1))&&(a3==4))))){ + a15 = 1; + a12 = 8; + a22 = 1; + a3 = 6; + a5 = 1; + a18 = 1; + a6 = 0; + return 21; + } else if(((a12==12)&&((!(a0==1)&&(!(a22==1)&&(((a18==1)&&((a5==1)&&(((a15==1)&&(((input==2)&&!(a6==1))&&(a4==1)))&&(a27==1))))&&(a3==6))))&&(a20==1)))){ + a22 = 1; + a12 = 9; + a4 = 0; + a0 = 1; + a3 = 7; + a27 = 0; + return -1; + } else if(((((!(a6==1)&&(!(a15==1)&&((((a12==8)&&((!(a5==1)&&((input==4)&&!(a4==1)))&&(a27==1)))&&(a22==1))&&(a3==4))))&&(a20==1))&&!(a0==1))&&!(a18==1))){ + a15 = 1; + a12 = 10; + a4 = 1; + a3 = 6; + a5 = 1; + a6 = 1; + return 21; + } else if((!(a5==1)&&(((a15==1)&&((!(a27==1)&&((a20==1)&&((((!(a6==1)&&((a3==4)&&(!(a18==1)&&(a22==1))))||(((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1))))&&(input==5))&&(a12==11))))&&!(a0==1)))&&!(a4==1)))){ + if((a3==5)){ + a22 = 0; + a27 = 1; + a4 = 1; + a5 = 1; + a18 = 1; + a12 = 8; + a0 = 1; + a6 = 0; + a3 = 6; + }else{ + a27 = 1; + a3 = 4; + a4 = 1; + a12 = 8; + a6 = 0; + a18 = 1; + a0 = 1; + a22 = 0; + a5 = 1; + } + return -1; + } else if(((!(a6==1)&&((((!(a4==1)&&((!(a0==1)&&((a20==1)&&(((input==1)&&!(a22==1))&&(a3==5))))&&(a12==12)))&&!(a5==1))&&!(a15==1))&&!(a18==1)))&&(a27==1))){ + a18 = 1; + a0 = 1; + a4 = 1; + a15 = 1; + a22 = 1; + a12 = 10; + a3 = 7; + a6 = 1; + return -1; + } else if((((a20==1)&&(((!(a27==1)&&((a5==1)&&((a15==1)&&(((a4==1)&&((input==5)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))))&&(a12==9)))))&&(a6==1))&&!(a0==1)))&&(a3==7))){ + a12 = 8; + a18 = 0; + a0 = 1; + a27 = 1; + a22 = 1; + return -1; + } else if((((a20==1)&&(!(a27==1)&&(!(a22==1)&&((a4==1)&&(!(a6==1)&&((a3==4)&&(!(a15==1)&&((a5==1)&&((a18==1)&&((input==6)&&(a0==1)))))))))))&&(a12==11))){ + a0 = 0; + a3 = 6; + a12 = 10; + a27 = 1; + a6 = 1; + a15 = 1; + return 26; + } else if(((((a3==7)&&(((a27==1)&&(((a0==1)&&((!(a15==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==1)))&&!(a5==1)))&&(a20==1)))&&!(a4==1)))&&(a12==11))&&(a6==1))){ + a12 = 10; + a18 = 0; + a3 = 4; + a4 = 1; + a15 = 1; + a22 = 0; + a6 = 0; + return -1; + } else if((!(a27==1)&&((((a0==1)&&(((a12==9)&&((a3==7)&&((a4==1)&&((a20==1)&&((input==6)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))))))&&!(a6==1)))&&(a5==1))&&!(a15==1)))){ + a3 = 6; + a27 = 1; + a22 = 0; + a5 = 0; + a18 = 0; + a12 = 10; + return 21; + } else if((((!(a6==1)&&(((a15==1)&&(((a0==1)&&(((((a22==1)&&(input==1))&&(a20==1))&&(a5==1))&&!(a18==1)))&&(a27==1)))&&(a3==4)))&&(a12==9))&&(a4==1))){ + a12 = 8; + a6 = 1; + a18 = 1; + return -1; + } else if(((((a22==1)&&(((!(a27==1)&&((a12==11)&&(!(a0==1)&&((((input==6)&&((a18==1)||!(a18==1)))&&!(a4==1))&&!(a6==1)))))&&(a15==1))&&(a3==6)))&&(a20==1))&&!(a5==1))){ + if((a12==9)){ + a4 = 1; + a3 = 5; + a27 = 1; + a6 = 1; + a5 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + a22 = 0; + }else{ + a3 = 4; + a12 = 8; + a22 = 0; + a18 = 0; + a0 = 1; + a27 = 1; + a4 = 1; + a5 = 1; + } + return 21; + } else if(((!(a15==1)&&((((((((input==5)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1))))||((a3==7)&&((a22==1)&&!(a18==1)))))&&(a4==1))&&(a6==1))&&(a0==1))&&(a12==12))&&!(a5==1))&&(a27==1)))&&(a20==1))){ + a3 = 4; + a22 = 0; + a18 = 0; + a4 = 0; + a27 = 0; + a5 = 1; + return 26; + } else if((((!(a0==1)&&((a15==1)&&(!(a4==1)&&(((a27==1)&&((((input==1)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&!(a6==1))&&!(a5==1)))&&(a20==1)))))&&(a12==10))&&(a3==7))){ + a22 = 0; + a12 = 11; + a5 = 1; + a4 = 1; + a18 = 1; + a3 = 8; + return 26; + } else if(((((a0==1)&&((!(a5==1)&&((!(a6==1)&&(((a4==1)&&((input==3)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&(a3==7)))&&(a12==8)))&&!(a15==1)))&&(a27==1))&&(a20==1))){ + a5 = 1; + a3 = 6; + a4 = 0; + a15 = 1; + a22 = 0; + a18 = 1; + a12 = 11; + return 26; + } else if(((((a12==8)&&((a20==1)&&(!(a27==1)&&(!(a15==1)&&((a3==7)&&((((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==4))&&(a4==1))&&!(a0==1)))))))&&!(a5==1))&&(a6==1))){ + a27 = 1; + a3 = 6; + a4 = 0; + a12 = 11; + a22 = 1; + a18 = 0; + return 21; + } else if((((((a27==1)&&((a12==10)&&((a0==1)&&((((!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4)))||(((a6==1)&&((a3==8)&&((a18==1)&&!(a22==1))))||((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))))&&(input==4))&&(a4==1)))))&&(a20==1))&&(a15==1))&&!(a5==1))){ + if((a0==1)){ + a0 = 0; + a3 = 6; + a22 = 1; + a6 = 1; + a12 = 11; + a18 = 0; + }else{ + a18 = 0; + a6 = 1; + a12 = 11; + a4 = 0; + a15 = 0; + a3 = 4; + a22 = 0; + } + return 21; + } else if((((a27==1)&&(!(a4==1)&&((a3==6)&&((a12==9)&&((a6==1)&&(!(a5==1)&&((((a15==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a22==1))&&(a0==1))))))))&&(a20==1))){ + a3 = 5; + a4 = 1; + a12 = 11; + a18 = 0; + a22 = 0; + return 21; + } else if(((a12==12)&&(((!(a5==1)&&(((a0==1)&&((a3==6)&&((((input==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&(a20==1))&&!(a6==1))))&&!(a15==1)))&&(a27==1))&&(a4==1)))){ + a15 = 1; + a3 = 5; + a12 = 11; + a18 = 0; + a22 = 1; + a6 = 1; + return 21; + } else if((!(a0==1)&&(((a27==1)&&(((((((input==2)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8))))&&!(a6==1))&&!(a15==1))&&(a12==9))&&(a20==1))&&(a4==1)))&&(a5==1)))){ + a18 = 1; + a22 = 1; + a6 = 1; + a15 = 1; + a3 = 4; + a12 = 8; + a0 = 1; + return -1; + } else if(((a20==1)&&(((a12==9)&&(!(a6==1)&&(((a27==1)&&(((a5==1)&&((input==5)&&((((a22==1)&&!(a18==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7))))))&&(a15==1)))&&(a4==1))))&&(a0==1)))){ + a3 = 4; + a6 = 1; + a18 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if(((!(a5==1)&&((a27==1)&&(((a12==8)&&((((a3==8)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==3))&&(a4==1)))&&(a20==1))&&(a6==1)))&&!(a15==1))))&&(a0==1))){ + if((a12==12)){ + a6 = 0; + a4 = 0; + a12 = 12; + a5 = 1; + a15 = 1; + a0 = 0; + a3 = 7; + a22 = 0; + a18 = 1; + }else{ + a4 = 0; + a18 = 1; + a3 = 4; + a22 = 1; + a12 = 10; + } + return 26; + } else if(((a6==1)&&(((a27==1)&&((!(a15==1)&&((a3==8)&&(((a12==11)&&((a5==1)&&((input==1)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))))&&!(a4==1))))&&!(a0==1)))&&(a20==1)))){ + a3 = 5; + a12 = 10; + a5 = 0; + a27 = 0; + a22 = 1; + a15 = 1; + a18 = 0; + a0 = 1; + return 26; + } else if((((a12==11)&&(((!(a6==1)&&((!(a0==1)&&((a4==1)&&((!(a15==1)&&((input==5)&&((a18==1)||!(a18==1))))&&!(a22==1))))&&(a3==5)))&&!(a5==1))&&(a20==1)))&&!(a27==1))){ + a3 = 8; + a18 = 1; + a15 = 1; + a5 = 1; + a4 = 0; + return -1; + } else if(((a3==7)&&(!(a27==1)&&((a22==1)&&((a4==1)&&(!(a0==1)&&((a15==1)&&(!(a5==1)&&((a20==1)&&((((input==4)&&((a18==1)||!(a18==1)))&&!(a6==1))&&(a12==10))))))))))){ + a12 = 8; + a0 = 1; + a6 = 1; + a18 = 1; + a22 = 0; + a27 = 1; + a5 = 1; + a3 = 8; + return 21; + } else if((((!(a6==1)&&((((a3==8)&&((((a12==12)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==6)))&&(a4==1))&&(a27==1)))&&!(a0==1))&&!(a5==1)))&&(a15==1))&&(a20==1))){ + a4 = 0; + a3 = 7; + a18 = 1; + a22 = 0; + a12 = 8; + a15 = 0; + return -1; + } else if(((!(a0==1)&&((!(a27==1)&&(!(a15==1)&&(((input==5)&&(((!(a6==1)&&(((a4==1)&&(!(a22==1)&&!(a18==1)))&&(a3==8)))||(((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))&&(a6==1)))||(((a3==4)&&(!(a4==1)&&(!(a18==1)&&(a22==1))))&&(a6==1))))&&(a20==1))))&&(a12==10)))&&!(a5==1))){ + if((a18==1)){ + a6 = 1; + a3 = 8; + a18 = 1; + a15 = 1; + a4 = 0; + a22 = 1; + }else{ + a4 = 1; + a18 = 1; + a5 = 1; + a6 = 0; + a22 = 1; + a3 = 4; + a12 = 8; + } + return 26; + } else if((!(a0==1)&&(!(a6==1)&&(!(a4==1)&&((((a12==12)&&(((a22==1)&&(!(a18==1)&&(((input==6)&&(a3==5))&&!(a15==1))))&&(a20==1)))&&!(a5==1))&&(a27==1)))))){ + if((a22==1)){ + a12 = 11; + a15 = 1; + a4 = 1; + a5 = 1; + a3 = 8; + a18 = 1; + a0 = 1; + }else{ + a12 = 8; + a6 = 1; + a5 = 1; + a15 = 1; + a0 = 1; + } + return 26; + } else if((!(a4==1)&&(((a12==9)&&(!(a22==1)&&((a15==1)&&(((a0==1)&&(((a3==8)&&((((a18==1)||!(a18==1))&&(input==6))&&!(a6==1)))&&!(a27==1)))&&!(a5==1)))))&&(a20==1)))){ + a6 = 1; + a15 = 0; + a27 = 1; + a3 = 4; + a4 = 1; + a5 = 1; + a12 = 10; + a18 = 1; + return 26; + } else if(((a3==5)&&(((((a0==1)&&((a12==9)&&((a27==1)&&(((a6==1)&&((a20==1)&&((input==2)&&!(a5==1))))&&!(a4==1)))))&&!(a18==1))&&(a15==1))&&(a22==1)))){ + a6 = 0; + a15 = 0; + a22 = 0; + a12 = 11; + a5 = 1; + a3 = 4; + return 26; + } else if(((!(a4==1)&&(((((a12==9)&&(((a5==1)&&((((a3==5)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4))))&&(input==4)))&&(a0==1)))&&!(a6==1))&&(a20==1))&&(a27==1)))&&!(a15==1))){ + a18 = 1; + a22 = 1; + a4 = 1; + a3 = 8; + a12 = 10; + a5 = 0; + a6 = 1; + return 21; + } else if(((((((a4==1)&&(((a0==1)&&((a12==9)&&(((((a18==1)||!(a18==1))&&(input==5))&&!(a27==1))&&(a6==1))))&&(a22==1)))&&(a20==1))&&(a3==5))&&!(a15==1))&&(a5==1))){ + a12 = 12; + a27 = 1; + a18 = 0; + a3 = 8; + return 26; + } else if(((a27==1)&&(((a5==1)&&((((a15==1)&&((a12==11)&&(((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==5))&&(a20==1))))&&(a0==1))&&(a6==1)))&&(a4==1)))){ + a12 = 8; + a22 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((a4==1)&&((a15==1)&&(((a6==1)&&(!(a27==1)&&((a3==7)&&(!(a5==1)&&(((a0==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==2)))&&(a12==12))))))&&(a20==1))))){ + if((a15==1)){ + a0 = 0; + a18 = 0; + a3 = 6; + a22 = 1; + a12 = 11; + a27 = 1; + }else{ + a3 = 4; + a15 = 0; + a18 = 0; + a12 = 11; + a22 = 0; + a4 = 0; + a27 = 1; + } + return 21; + } else if(((a12==10)&&(((!(a27==1)&&((a15==1)&&((a6==1)&&((((a20==1)&&((input==1)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))&&(a0==1))&&(a5==1)))))&&(a4==1))&&(a3==8)))){ + a15 = 0; + a18 = 1; + a22 = 0; + a12 = 12; + a3 = 6; + return 21; + } else if((((a6==1)&&(((a12==9)&&(!(a4==1)&&((!(a5==1)&&(((input==1)&&((((a22==1)&&(a18==1))&&(a3==5))||(((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1))))))&&!(a27==1)))&&(a15==1))))&&(a20==1)))&&(a0==1))){ + a5 = 1; + a27 = 1; + a3 = 4; + a22 = 0; + a18 = 0; + a12 = 10; + return -1; + } else if(((a15==1)&&(!(a6==1)&&((a20==1)&&(!(a5==1)&&(((a0==1)&&(!(a4==1)&&(((input==5)&&(((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==5))))&&(a12==8))))&&(a27==1))))))){ + a15 = 0; + a12 = 10; + a3 = 8; + a6 = 1; + a18 = 0; + a5 = 1; + a22 = 1; + return 21; + } else if((((((!(a5==1)&&((a3==8)&&(!(a15==1)&&((((a22==1)&&((input==4)&&((a18==1)||!(a18==1))))&&!(a27==1))&&!(a6==1)))))&&(a20==1))&&(a4==1))&&(a12==11))&&!(a0==1))){ + a12 = 8; + a4 = 0; + a3 = 7; + a27 = 1; + a18 = 0; + return -1; + } else if((((a20==1)&&((a4==1)&&((a27==1)&&((((a0==1)&&((a6==1)&&(!(a22==1)&&((a12==8)&&(((a18==1)||!(a18==1))&&(input==4))))))&&(a3==4))&&!(a15==1)))))&&!(a5==1))){ + if((a15==1)){ + a3 = 6; + a6 = 0; + a22 = 1; + a0 = 0; + a18 = 0; + a12 = 11; + }else{ + a15 = 1; + a4 = 0; + a18 = 0; + a3 = 7; + a12 = 10; + a22 = 1; + } + return 26; + } else if(((a3==8)&&((((a20==1)&&((!(a6==1)&&((((a12==12)&&(((input==4)&&((a18==1)||!(a18==1)))&&!(a15==1)))&&(a0==1))&&!(a5==1)))&&!(a4==1)))&&!(a27==1))&&(a22==1)))){ + a3 = 6; + a22 = 0; + a18 = 0; + a15 = 1; + a27 = 1; + a5 = 1; + a12 = 10; + a4 = 1; + return 21; + } else if((((((!(a27==1)&&(((a5==1)&&(((a3==5)&&((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a0==1)))&&(a6==1)))&&!(a4==1))&&(a15==1))&&(a20==1))&&(a12==8))){ + a27 = 1; + a18 = 1; + a3 = 4; + a4 = 1; + a22 = 1; + return -1; + } else if(((!(a15==1)&&(((a20==1)&&(((a12==12)&&(((a5==1)&&((a27==1)&&(((a22==1)&&(input==6))&&(a3==6))))&&(a18==1)))&&!(a4==1)))&&!(a6==1)))&&(a0==1))){ + a12 = 8; + a4 = 1; + a15 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if((!(a6==1)&&((a12==12)&&(!(a27==1)&&(!(a15==1)&&(!(a5==1)&&((((a0==1)&&((((!(a18==1)&&(a22==1))&&(a3==8))||(((!(a18==1)&&!(a22==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8))))&&(input==4)))&&(a4==1))&&(a20==1)))))))){ + a6 = 1; + a18 = 1; + a5 = 1; + a3 = 7; + a27 = 1; + a4 = 0; + a22 = 1; + return 26; + } else if(((!(a22==1)&&((((a27==1)&&((((a20==1)&&((a5==1)&&((((a18==1)||!(a18==1))&&(input==3))&&(a15==1))))&&(a12==9))&&!(a6==1)))&&(a3==7))&&!(a4==1)))&&(a0==1))){ + a4 = 1; + a18 = 0; + a12 = 12; + return 26; + } else if(((!(a6==1)&&((a20==1)&&(((a22==1)&&(!(a0==1)&&(((a12==12)&&((a27==1)&&((!(a15==1)&&(input==5))&&!(a18==1))))&&!(a5==1))))&&(a3==5))))&&!(a4==1))){ + a4 = 1; + a18 = 1; + a5 = 1; + a15 = 1; + a22 = 0; + a12 = 10; + return -1; + } else if(((a27==1)&&((((a12==10)&&((((input==1)&&((((((a18==1)&&(a22==1))&&!(a4==1))&&(a3==4))&&(a6==1))||(((((a4==1)&&((a18==1)&&!(a22==1)))&&(a3==8))&&!(a6==1))||(!(a6==1)&&((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1)))))))&&!(a15==1))&&(a20==1)))&&(a0==1))&&(a5==1)))){ + a22 = 0; + a12 = 9; + a27 = 0; + a18 = 1; + a4 = 0; + a3 = 4; + a6 = 0; + a5 = 0; + return 26; + } else if(((a3==5)&&((a20==1)&&((((((a5==1)&&(((a6==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&!(a15==1)))&&(a4==1)))&&!(a27==1))&&!(a0==1))&&(a12==10))&&!(a22==1))))){ + a27 = 1; + a22 = 1; + a0 = 1; + a18 = 0; + a4 = 0; + a12 = 11; + return 24; + } else if((((a12==11)&&((a3==8)&&(((a4==1)&&((!(a6==1)&&(((a0==1)&&(!(a27==1)&&((input==1)&&!(a5==1))))&&(a20==1)))&&!(a15==1)))&&(a18==1))))&&(a22==1))){ + a18 = 0; + a3 = 5; + a22 = 0; + a12 = 10; + a5 = 1; + return -1; + } else if(((a0==1)&&((a12==12)&&((!(a5==1)&&((a3==4)&&(((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2))&&(a20==1))&&(a4==1))&&!(a15==1))&&!(a6==1))))&&!(a27==1))))){ + a5 = 1; + a6 = 1; + a0 = 0; + a18 = 0; + a27 = 1; + a12 = 8; + a3 = 8; + a22 = 0; + return 26; + } else if((((!(a18==1)&&(!(a4==1)&&((a12==9)&&((a5==1)&&(!(a22==1)&&(!(a6==1)&&(!(a0==1)&&(((a3==6)&&(input==2))&&(a20==1)))))))))&&(a27==1))&&!(a15==1))){ + a4 = 1; + a3 = 5; + a18 = 1; + a5 = 0; + a0 = 1; + a15 = 1; + a22 = 1; + a12 = 10; + return 21; + } else if(((a5==1)&&((!(a0==1)&&(((a3==4)&&(((((a22==1)&&((a4==1)&&((input==4)&&(a20==1))))&&!(a6==1))&&!(a15==1))&&!(a27==1)))&&(a12==10)))&&(a18==1)))){ + a27 = 1; + a15 = 1; + a12 = 8; + a4 = 0; + a6 = 1; + a0 = 1; + return -1; + } else if(((a0==1)&&((((!(a5==1)&&(((a15==1)&&((((((a18==1)||!(a18==1))&&(input==5))&&(a6==1))&&!(a22==1))&&(a27==1)))&&(a12==9)))&&!(a4==1))&&(a3==5))&&(a20==1)))){ + if((a22==1)){ + a4 = 1; + a12 = 12; + a3 = 7; + a0 = 0; + a18 = 0; + a22 = 1; + a5 = 1; + a15 = 0; + }else{ + a22 = 1; + a18 = 0; + a27 = 0; + a4 = 1; + a3 = 7; + a6 = 0; + a12 = 8; + } + return 21; + } else if(((!(a5==1)&&(((a4==1)&&(((a6==1)&&((a12==8)&&((a15==1)&&((input==3)&&((((a3==7)&&(!(a22==1)&&(a18==1)))||((a3==7)&&(!(a22==1)&&!(a18==1))))||((a3==8)&&((a22==1)&&(a18==1))))))))&&(a20==1)))&&!(a27==1)))&&!(a0==1))){ + if((a15==1)){ + a0 = 1; + a22 = 1; + a3 = 8; + a18 = 1; + a5 = 1; + a4 = 0; + a27 = 1; + }else{ + a27 = 1; + a22 = 0; + a3 = 8; + a0 = 1; + a6 = 0; + a5 = 1; + a18 = 1; + } + return 21; + } else if(((a15==1)&&((a3==5)&&(((((a20==1)&&(((((input==1)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a4==1))&&(a5==1))&&!(a0==1)))&&(a6==1))&&(a27==1))&&(a12==9))))){ + a4 = 1; + a3 = 6; + a12 = 10; + a18 = 0; + a0 = 1; + a6 = 0; + a22 = 1; + return -1; + } else if(((a20==1)&&((((a4==1)&&((((a3==6)&&((((!(a6==1)&&(input==5))&&!(a15==1))&&(a12==11))&&(a22==1)))&&!(a18==1))&&!(a0==1)))&&(a27==1))&&!(a5==1)))){ + a0 = 1; + a5 = 1; + a3 = 4; + a6 = 1; + a12 = 8; + a18 = 1; + a15 = 1; + return -1; + } else if(((!(a22==1)&&(!(a4==1)&&((a6==1)&&((a15==1)&&((a3==7)&&(((!(a5==1)&&(((input==5)&&(a20==1))&&(a12==10)))&&(a18==1))&&(a0==1)))))))&&(a27==1))){ + a3 = 8; + a5 = 1; + a6 = 0; + a15 = 0; + a22 = 1; + return -1; + } else if(((a6==1)&&((!(a15==1)&&(((((a0==1)&&(!(a5==1)&&(((((a22==1)&&(a18==1))&&(a3==6))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1)))))&&(input==4))))&&(a12==8))&&!(a27==1))&&!(a4==1)))&&(a20==1)))){ + a6 = 0; + a3 = 4; + a18 = 0; + a22 = 0; + a4 = 1; + a12 = 12; + a27 = 1; + a15 = 1; + return 26; + } else if(((a12==10)&&((((a27==1)&&((!(a6==1)&&((a20==1)&&(!(a4==1)&&((a3==4)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a5==1))))))&&(a15==1)))&&!(a0==1))&&(a22==1)))){ + a18 = 1; + a22 = 0; + a0 = 1; + a5 = 0; + a15 = 0; + a3 = 7; + return -1; + } else if(((((a20==1)&&((!(a15==1)&&(!(a0==1)&&(((a5==1)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==6)))&&!(a6==1))))&&!(a4==1)))&&(a12==10))&&!(a27==1))){ + a12 = 12; + a27 = 1; + a0 = 1; + a6 = 1; + a3 = 6; + a18 = 1; + a22 = 0; + a5 = 0; + return -1; + } else if(((a15==1)&&(((a12==11)&&(!(a5==1)&&((((((((a6==1)&&((a3==8)&&(!(a22==1)&&(a18==1))))||((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8))))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1)))))&&(input==5))&&!(a4==1))&&(a0==1))&&(a27==1))))&&(a20==1)))){ + a3 = 4; + a4 = 1; + a18 = 1; + a27 = 0; + a6 = 0; + a22 = 1; + return 26; + } else if(((!(a6==1)&&((a15==1)&&(!(a18==1)&&(((a12==11)&&(((a20==1)&&((((a0==1)&&(input==1))&&!(a4==1))&&(a27==1)))&&!(a5==1)))&&(a22==1)))))&&(a3==8))){ + if((a22==1)){ + a3 = 6; + a15 = 0; + a12 = 12; + a4 = 1; + a27 = 0; + }else{ + a3 = 7; + a0 = 0; + a18 = 1; + } + return 24; + } else if((!(a27==1)&&((((a15==1)&&(!(a4==1)&&(((((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==2))&&(a5==1))&&(a12==11))&&!(a0==1))&&!(a6==1))))&&(a20==1))&&(a3==5)))){ + a3 = 7; + a18 = 1; + a27 = 1; + a6 = 1; + a12 = 8; + a22 = 1; + a0 = 1; + return -1; + } else if((((a3==4)&&(((!(a0==1)&&((((((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==1))&&(a4==1))&&(a20==1))&&(a12==9))&&(a27==1)))&&(a6==1))&&(a15==1)))&&!(a5==1))){ + a3 = 5; + a18 = 0; + a0 = 1; + a6 = 0; + a15 = 0; + a4 = 0; + a22 = 0; + a5 = 1; + a12 = 11; + return 24; + } else if((((((a3==8)&&(!(a4==1)&&((a5==1)&&((a20==1)&&(((((input==1)&&!(a15==1))&&(a27==1))&&(a12==11))&&(a6==1))))))&&(a22==1))&&(a18==1))&&(a0==1))){ + a3 = 7; + a27 = 0; + a15 = 1; + a18 = 0; + return 21; + } return calculate_output8(input); + } + + int calculate_output8(int input) { + if(((((a12==11)&&((((((a6==1)&&((((a3==8)&&((a18==1)&&(a22==1)))||(((a3==7)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==7))))&&(input==2)))&&(a4==1))&&(a15==1))&&!(a27==1))&&(a20==1)))&&(a0==1))&&!(a5==1))){ + if((a22==1)){ + a12 = 10; + a22 = 1; + a18 = 1; + a0 = 0; + a3 = 7; + a27 = 1; + a4 = 0; + }else{ + a0 = 0; + a18 = 0; + a3 = 5; + a5 = 1; + a27 = 1; + a22 = 0; + a12 = 8; + } + return -1; + } else if(((a27==1)&&(((a4==1)&&(((((((a20==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==1)))&&(a6==1))&&(a3==7))&&(a15==1))&&!(a0==1))&&(a5==1)))&&(a12==11)))){ + a0 = 1; + a4 = 0; + a12 = 12; + a3 = 6; + a15 = 0; + a22 = 0; + a18 = 0; + return -1; + } else if(((a27==1)&&(!(a15==1)&&((!(a6==1)&&((a12==11)&&(!(a0==1)&&(!(a5==1)&&((((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6)))||(((a22==1)&&!(a18==1))&&(a3==6)))&&(input==5))&&!(a4==1))))))&&(a20==1))))){ + a18 = 0; + a0 = 1; + a22 = 1; + a5 = 1; + a3 = 8; + return 26; + } else if(((!(a5==1)&&((((!(a6==1)&&((!(a15==1)&&((input==4)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||((a3==6)&&((a22==1)&&(a18==1))))))&&(a27==1)))&&(a20==1))&&(a0==1))&&(a12==12)))&&(a4==1))){ + a12 = 8; + a18 = 0; + a3 = 7; + a5 = 1; + a15 = 1; + a22 = 0; + return -1; + } else if(((a12==8)&&((a5==1)&&((!(a0==1)&&((((((!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4)))||(((a6==1)&&((!(a22==1)&&(a18==1))&&(a3==8)))||((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))))&&(input==3))&&(a4==1))&&!(a15==1))&&(a20==1)))&&(a27==1))))){ + a12 = 10; + a6 = 0; + a15 = 1; + a18 = 0; + a3 = 5; + a22 = 0; + a0 = 1; + a5 = 0; + a27 = 0; + return 21; + } else if(((a12==10)&&(!(a5==1)&&((!(a27==1)&&(!(a15==1)&&((!(a6==1)&&(((input==5)&&(((a3==5)&&((a18==1)&&(a22==1)))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))))&&!(a4==1)))&&(a0==1))))&&(a20==1))))){ + a4 = 1; + a18 = 1; + a6 = 1; + a27 = 1; + a12 = 8; + a15 = 1; + a22 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if(((a20==1)&&(((a15==1)&&((a3==6)&&((a12==11)&&(((a0==1)&&(!(a6==1)&&(((a27==1)&&((input==2)&&!(a22==1)))&&!(a4==1))))&&!(a18==1)))))&&!(a5==1)))){ + a3 = 4; + a12 = 10; + a6 = 1; + return 21; + } else if(((a5==1)&&((a4==1)&&(!(a27==1)&&((a0==1)&&((a12==12)&&(((a6==1)&&(!(a15==1)&&((input==3)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1)))))))&&(a20==1)))))))){ + a12 = 11; + a22 = 1; + a4 = 0; + a6 = 0; + a18 = 0; + a3 = 5; + return -1; + } else if(((!(a4==1)&&(!(a15==1)&&((a12==12)&&((!(a6==1)&&((((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==3))&&(a3==6))&&(a20==1))&&!(a5==1)))&&(a0==1)))))&&!(a27==1))){ + a27 = 1; + a3 = 4; + a5 = 1; + a15 = 1; + a12 = 8; + a6 = 1; + a18 = 1; + a22 = 1; + a4 = 1; + return -1; + } else if(((a12==11)&&((((a20==1)&&(((!(a0==1)&&(!(a27==1)&&(((((a18==1)||!(a18==1))&&(input==1))&&(a3==8))&&!(a4==1))))&&(a15==1))&&!(a22==1)))&&(a5==1))&&!(a6==1)))){ + if((a20==1)){ + a5 = 0; + a18 = 0; + a3 = 6; + a6 = 1; + a22 = 1; + }else{ + a3 = 7; + a18 = 0; + a22 = 1; + a6 = 1; + a12 = 8; + a0 = 1; + } + return 21; + } else if((((!(a6==1)&&(!(a22==1)&&((a5==1)&&(((((a15==1)&&(((a12==8)&&(input==6))&&(a20==1)))&&(a3==7))&&!(a18==1))&&!(a27==1)))))&&!(a4==1))&&(a0==1))){ + a4 = 1; + a6 = 1; + a18 = 1; + a27 = 1; + return -1; + } else if(((((a12==12)&&(((((a4==1)&&((a15==1)&&((a3==7)&&((((a18==1)||!(a18==1))&&(input==5))&&!(a6==1)))))&&(a22==1))&&(a5==1))&&(a0==1)))&&(a27==1))&&(a20==1))){ + a18 = 0; + a0 = 0; + a15 = 0; + a3 = 5; + a5 = 0; + a12 = 11; + return -1; + } else if(((((a22==1)&&(((a3==4)&&((a6==1)&&(!(a27==1)&&(!(a0==1)&&((a15==1)&&(!(a18==1)&&((a20==1)&&(input==3))))))))&&(a12==8)))&&(a5==1))&&!(a4==1))){ + a3 = 8; + a0 = 1; + a18 = 1; + a27 = 1; + return -1; + } else if(((a4==1)&&((a27==1)&&(((((a22==1)&&((((a20==1)&&(((input==6)&&!(a5==1))&&(a0==1)))&&(a12==12))&&(a18==1)))&&(a15==1))&&(a6==1))&&(a3==8))))){ + a3 = 4; + a5 = 1; + a12 = 8; + return -1; + } else if(((((((a20==1)&&(((!(a6==1)&&(((input==5)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a3==6)))&&!(a0==1))&&(a5==1)))&&(a27==1))&&(a15==1))&&(a12==11))&&(a4==1))){ + a12 = 10; + a5 = 0; + a3 = 8; + a0 = 1; + a15 = 0; + a18 = 1; + a22 = 1; + return 21; + } else if(((((a20==1)&&((a0==1)&&(!(a4==1)&&((!(a22==1)&&(((((input==5)&&((a18==1)||!(a18==1)))&&(a5==1))&&(a27==1))&&(a3==6)))&&(a12==11)))))&&(a15==1))&&!(a6==1))){ + a15 = 0; + a3 = 8; + a4 = 1; + a18 = 0; + a5 = 0; + return 21; + } else if((!(a27==1)&&(!(a15==1)&&((a12==10)&&((((a0==1)&&((((a5==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1)))&&(a20==1))&&!(a4==1)))&&!(a6==1))&&(a3==7)))))){ + a18 = 0; + a12 = 8; + a22 = 0; + a3 = 8; + a15 = 1; + return -1; + } else if((!(a5==1)&&((a3==6)&&((a6==1)&&((a12==11)&&(!(a27==1)&&(!(a4==1)&&((a0==1)&&(!(a22==1)&&(((((a18==1)||!(a18==1))&&(input==3))&&(a20==1))&&!(a15==1))))))))))){ + a22 = 1; + a4 = 1; + a5 = 1; + a27 = 1; + a3 = 4; + a15 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if((((!(a27==1)&&(((a15==1)&&((a3==7)&&(((a0==1)&&((a20==1)&&(((input==3)&&!(a5==1))&&(a4==1))))&&!(a22==1))))&&(a12==8)))&&!(a6==1))&&!(a18==1))){ + a4 = 0; + a12 = 11; + a3 = 8; + a27 = 1; + return -1; + } else if(((((a12==10)&&(((a3==5)&&((a27==1)&&((!(a4==1)&&((a15==1)&&((input==3)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))))&&!(a5==1))))&&!(a0==1)))&&(a20==1))&&(a6==1))){ + a22 = 0; + a15 = 0; + a18 = 0; + a0 = 1; + return -1; + } else if((((!(a4==1)&&((a20==1)&&((((a27==1)&&(((input==6)&&(((a3==7)&&(!(a18==1)&&(a22==1)))||(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1))))))&&!(a6==1)))&&(a15==1))&&(a0==1))))&&(a12==9))&&!(a5==1))){ + a22 = 0; + a15 = 0; + a3 = 7; + a6 = 1; + a18 = 0; + a12 = 12; + a5 = 1; + return 21; + } else if(((a0==1)&&(((a20==1)&&(((((a3==4)&&((a4==1)&&((((a5==1)&&((a18==1)&&(a22==1)))&&(a15==1))&&(a12==9))))&&(a6==1))||((((a3==8)&&(((a12==8)&&(!(a15==1)&&(!(a5==1)&&((a18==1)&&!(a22==1)))))&&!(a4==1)))&&!(a6==1))||(!(a6==1)&&((!(a4==1)&&((((!(a18==1)&&!(a22==1))&&!(a5==1))&&!(a15==1))&&(a12==8)))&&(a3==8)))))&&(input==1)))&&(a27==1)))){ + a5 = 0; + a22 = 1; + a15 = 1; + a18 = 1; + a6 = 0; + a12 = 11; + a4 = 0; + a3 = 7; + return 21; + } else if((!(a15==1)&&(((a6==1)&&((((((a0==1)&&((a4==1)&&((((a18==1)||!(a18==1))&&(input==3))&&(a5==1))))&&!(a27==1))&&!(a22==1))&&(a20==1))&&(a3==6)))&&(a12==10)))){ + a18 = 1; + a15 = 1; + a12 = 8; + a22 = 1; + a27 = 1; + a3 = 4; + return -1; + } else if((!(a27==1)&&((!(a15==1)&&((((a20==1)&&(!(a5==1)&&((a3==5)&&(!(a4==1)&&((input==2)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))))&&!(a0==1))&&(a6==1)))&&(a12==11)))){ + a22 = 1; + a5 = 1; + a12 = 8; + a3 = 8; + a0 = 1; + a27 = 1; + a15 = 1; + a4 = 1; + a18 = 0; + return -1; + } else if((!(a4==1)&&((a15==1)&&(((a27==1)&&(((a6==1)&&(((((a12==9)&&(((a18==1)||!(a18==1))&&(input==3)))&&!(a0==1))&&(a22==1))&&(a3==4)))&&!(a5==1)))&&(a20==1))))){ + a3 = 6; + a22 = 0; + a18 = 1; + a4 = 1; + a0 = 1; + a12 = 11; + return 21; + } else if(((!(a6==1)&&((((a0==1)&&((((a3==7)&&((a20==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==2))))&&!(a27==1))&&!(a4==1)))&&(a12==8))&&(a5==1)))&&!(a15==1))){ + a22 = 1; + a18 = 1; + a6 = 1; + a3 = 4; + a12 = 12; + return 21; + } else if((!(a6==1)&&((((!(a4==1)&&((((a20==1)&&((input==2)&&((((a22==1)&&!(a18==1))&&(a3==8))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1)))))))&&!(a5==1))&&(a12==11)))&&(a27==1))&&(a15==1))&&!(a0==1)))){ + a0 = 1; + a5 = 1; + a3 = 6; + a22 = 0; + a4 = 1; + a12 = 10; + a18 = 0; + return 21; + } else if((!(a4==1)&&((a3==6)&&(!(a22==1)&&((a0==1)&&((a15==1)&&(((a5==1)&&((a27==1)&&((a20==1)&&(!(a6==1)&&(((a18==1)||!(a18==1))&&(input==1))))))&&(a12==11)))))))){ + a18 = 0; + a22 = 1; + a12 = 12; + a3 = 7; + a15 = 0; + a27 = 0; + a5 = 0; + return -1; + } else if((!(a15==1)&&((((a20==1)&&(((!(a6==1)&&((a12==9)&&(((input==1)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a3==8))))&&!(a27==1))&&(a0==1)))&&!(a4==1))&&!(a5==1)))){ + if((a18==1)){ + a12 = 10; + a3 = 5; + a5 = 1; + a22 = 0; + a18 = 1; + a0 = 0; + a27 = 1; + }else{ + a22 = 0; + a27 = 1; + a12 = 11; + a3 = 7; + a18 = 1; + } + return -1; + } else if((((a12==12)&&((!(a15==1)&&(((((!(a6==1)&&(((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8)))||((a6==1)&&((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))))&&(input==1))&&!(a0==1))&&(a20==1)))&&(a5==1)))&&(a27==1))){ + a12 = 8; + a15 = 1; + a4 = 1; + a6 = 1; + a22 = 1; + a18 = 0; + a0 = 1; + a3 = 8; + return 26; + } else if((!(a6==1)&&(!(a15==1)&&(((((a22==1)&&((a4==1)&&((a20==1)&&(!(a5==1)&&(((a18==1)&&(input==2))&&(a12==9))))))&&(a3==5))&&!(a27==1))&&!(a0==1))))){ + a5 = 1; + a27 = 1; + a12 = 8; + a18 = 0; + a22 = 0; + a15 = 1; + a3 = 8; + return 21; + } else if((!(a6==1)&&(!(a27==1)&&(((a5==1)&&(((!(a18==1)&&(((a3==6)&&(!(a4==1)&&((a22==1)&&(input==2))))&&(a20==1)))&&(a0==1))&&(a12==12)))&&!(a15==1))))){ + a3 = 8; + a18 = 1; + a22 = 0; + a12 = 9; + a5 = 0; + return -1; + } else if((((((a12==9)&&((!(a27==1)&&(!(a6==1)&&(((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==5))&&!(a5==1))&&(a20==1))))&&(a15==1)))&&(a0==1))&&(a3==5))&&(a4==1))){ + a5 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + a18 = 1; + a6 = 1; + a27 = 1; + return -1; + } else if((((!(a18==1)&&((!(a22==1)&&(((a3==4)&&(((a5==1)&&(((input==1)&&(a12==12))&&(a0==1)))&&(a20==1)))&&(a15==1)))&&!(a27==1)))&&!(a6==1))&&!(a4==1))){ + a12 = 9; + a4 = 1; + a3 = 5; + return -1; + } else if((!(a22==1)&&((a0==1)&&((((!(a4==1)&&(((((!(a27==1)&&(input==6))&&(a20==1))&&!(a18==1))&&!(a5==1))&&!(a6==1)))&&(a15==1))&&(a12==10))&&(a3==5))))){ + a12 = 8; + a6 = 1; + a5 = 1; + a4 = 1; + a27 = 1; + return -1; + } else if(((((((a12==9)&&((a22==1)&&(!(a6==1)&&(((((a3==5)&&(input==4))&&(a15==1))&&(a5==1))&&(a27==1)))))&&!(a0==1))&&(a20==1))&&!(a4==1))&&(a18==1))){ + a5 = 0; + a3 = 6; + a4 = 1; + a0 = 1; + a12 = 12; + a18 = 0; + return 21; + } else if(((a3==6)&&((a15==1)&&((a12==10)&&(!(a4==1)&&((((a6==1)&&((!(a27==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&!(a22==1)))&&(a0==1)))&&(a5==1))&&(a20==1))))))){ + a3 = 5; + a27 = 1; + a18 = 0; + a15 = 0; + a4 = 1; + return 21; + } else if(((!(a6==1)&&(!(a4==1)&&((a5==1)&&((((a12==12)&&((a15==1)&&(((input==5)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a0==1))))&&(a20==1))&&(a3==6)))))&&(a27==1))){ + a6 = 1; + a3 = 4; + a18 = 1; + a4 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if((((a22==1)&&(((((a12==10)&&((a20==1)&&(((a3==4)&&((a27==1)&&((input==6)&&((a18==1)||!(a18==1)))))&&!(a6==1))))&&(a5==1))&&!(a0==1))&&(a15==1)))&&!(a4==1))){ + a0 = 1; + a18 = 1; + a4 = 1; + a3 = 5; + a15 = 0; + a5 = 0; + return 21; + } else if(((!(a27==1)&&((a6==1)&&(!(a22==1)&&((((a12==12)&&((a20==1)&&((((input==2)&&((a18==1)||!(a18==1)))&&!(a15==1))&&(a4==1))))&&!(a5==1))&&(a0==1)))))&&(a3==6))){ + a18 = 1; + a12 = 8; + a27 = 1; + a3 = 4; + a5 = 1; + a15 = 1; + a22 = 1; + return -1; + } else if(((a3==6)&&(!(a4==1)&&(!(a6==1)&&(((((a5==1)&&((a22==1)&&(((((a18==1)||!(a18==1))&&(input==6))&&(a20==1))&&!(a0==1))))&&(a15==1))&&(a27==1))&&(a12==11)))))){ + a18 = 1; + a6 = 1; + a3 = 4; + a0 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if((((a20==1)&&(((!(a0==1)&&(((a4==1)&&((a3==6)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==2))&&(a27==1))))&&(a12==8)))&&(a5==1))&&!(a15==1)))&&(a6==1))){ + a15 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + a0 = 1; + return -1; + } else if((((a4==1)&&(!(a15==1)&&((a18==1)&&(((!(a5==1)&&((a27==1)&&(((a0==1)&&((a20==1)&&(input==5)))&&(a3==8))))&&(a6==1))&&(a12==8)))))&&(a22==1))){ + a15 = 1; + a5 = 1; + a3 = 4; + return -1; + } else if((!(a6==1)&&((a27==1)&&(!(a22==1)&&(!(a4==1)&&(((a3==8)&&(((a18==1)&&((((a0==1)&&(input==2))&&!(a15==1))&&(a12==11)))&&(a20==1)))&&!(a5==1))))))){ + a6 = 1; + a4 = 1; + a5 = 1; + a15 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + return -1; + } else if((((a20==1)&&(!(a27==1)&&(((a5==1)&&(((((((a3==4)&&(!(a18==1)&&(a22==1)))&&!(a6==1))||((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1))))&&(input==4))&&(a0==1))&&!(a4==1)))&&(a15==1))))&&(a12==11))){ + a27 = 1; + a5 = 0; + a18 = 0; + a22 = 1; + a3 = 6; + a6 = 0; + a4 = 1; + a12 = 12; + return 21; + } else if(((a12==11)&&((((a3==8)&&(!(a15==1)&&(((!(a4==1)&&(((((a18==1)||!(a18==1))&&(input==6))&&!(a27==1))&&(a20==1)))&&!(a0==1))&&(a6==1))))&&!(a22==1))&&!(a5==1)))){ + if((a15==1)){ + a18 = 0; + a4 = 1; + a22 = 1; + a12 = 9; + a15 = 1; + a3 = 6; + }else{ + a4 = 1; + a6 = 0; + a12 = 8; + a22 = 1; + a5 = 1; + a18 = 0; + } + return -1; + } else if(((!(a27==1)&&(((!(a5==1)&&((a20==1)&&((a12==8)&&((!(a22==1)&&((a3==8)&&((input==6)&&(a0==1))))&&!(a18==1)))))&&!(a4==1))&&(a6==1)))&&!(a15==1))){ + a12 = 10; + a3 = 7; + a27 = 1; + return 26; + } else if(((((!(a4==1)&&(((a6==1)&&((a5==1)&&((a27==1)&&(((a3==6)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a12==8)))))&&(a20==1)))&&!(a0==1))&&(a15==1))&&(a22==1))){ + a27 = 0; + a6 = 0; + a18 = 0; + a3 = 7; + a4 = 1; + a12 = 9; + a15 = 0; + a0 = 1; + return 21; + } else if(((a0==1)&&(!(a27==1)&&((a3==7)&&((((a6==1)&&((a20==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==1))&&!(a5==1))&&(a12==9))))&&(a15==1))&&!(a4==1)))))){ + a27 = 1; + a4 = 1; + a22 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if((((a20==1)&&(((a27==1)&&((a6==1)&&(((a3==7)&&((((a4==1)&&((a22==1)&&(input==4)))&&(a18==1))&&(a5==1)))&&(a12==10))))&&(a0==1)))&&(a15==1))){ + a12 = 8; + a3 = 6; + a15 = 0; + a18 = 0; + return -1; + } else if(((((a15==1)&&(((a6==1)&&((a27==1)&&(((a12==10)&&((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==2))&&(a0==1)))&&!(a4==1))))&&(a5==1)))&&(a3==5))&&(a20==1))){ + a3 = 4; + a18 = 1; + a12 = 8; + a4 = 1; + a22 = 1; + return -1; + } else if((!(a15==1)&&(!(a22==1)&&(((((a18==1)&&((a5==1)&&(((a4==1)&&(((input==1)&&(a27==1))&&(a3==7)))&&(a6==1))))&&!(a0==1))&&(a12==11))&&(a20==1))))){ + a12 = 10; + a6 = 0; + a18 = 0; + a3 = 8; + a0 = 1; + a15 = 1; + a4 = 0; + return -1; + } else if((((a4==1)&&((a27==1)&&((a20==1)&&(!(a22==1)&&((a0==1)&&((a12==8)&&((!(a15==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a3==5)))&&(a5==1))))))))&&(a6==1))){ + a5 = 0; + a6 = 0; + a15 = 1; + a18 = 0; + a3 = 4; + a22 = 1; + return 21; + } else if((((!(a5==1)&&(!(a15==1)&&(((a12==11)&&((((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==1))&&(a20==1))&&!(a6==1)))&&!(a4==1))))&&(a27==1))&&(a0==1))){ + a22 = 0; + a4 = 1; + a3 = 6; + a18 = 0; + a6 = 1; + a12 = 10; + return -1; + } else if((!(a4==1)&&((a20==1)&&((a3==4)&&(((a6==1)&&(((a15==1)&&(((!(a5==1)&&((input==4)&&(a18==1)))&&(a27==1))&&!(a22==1)))&&(a0==1)))&&(a12==9)))))){ + a22 = 1; + a4 = 1; + a5 = 1; + a12 = 8; + return -1; + } else if(((!(a15==1)&&(!(a0==1)&&(((a12==12)&&((a27==1)&&((a22==1)&&((a3==4)&&((((input==6)&&((a18==1)||!(a18==1)))&&(a20==1))&&!(a5==1))))))&&!(a6==1))))&&!(a4==1))){ + a27 = 0; + a4 = 1; + a0 = 1; + a3 = 5; + a18 = 1; + a5 = 1; + return -1; + } else if(((a12==8)&&(((a3==4)&&(((((a4==1)&&((a15==1)&&(((input==6)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a5==1))))&&!(a0==1))&&!(a27==1))&&!(a6==1)))&&(a20==1)))){ + a18 = 0; + a12 = 12; + a5 = 0; + a22 = 1; + a6 = 1; + a3 = 8; + a0 = 1; + return 21; + } else if((((a20==1)&&((((a27==1)&&((a3==7)&&((!(a15==1)&&((a6==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==1))))&&(a4==1))))&&(a5==1))&&(a12==9)))&&!(a0==1))){ + a6 = 0; + a12 = 11; + a5 = 0; + a3 = 4; + a22 = 1; + a18 = 0; + a15 = 1; + a4 = 0; + a0 = 1; + return -1; + } else if((((((((a6==1)&&((a3==4)&&(!(a22==1)&&((a15==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a20==1))))))&&(a5==1))&&!(a0==1))&&(a12==9))&&(a4==1))&&!(a27==1))){ + a6 = 0; + a15 = 0; + a4 = 0; + a18 = 0; + a12 = 11; + a3 = 8; + return -1; + } else if((!(a6==1)&&(!(a27==1)&&((!(a15==1)&&((a3==7)&&((!(a5==1)&&((a12==9)&&(!(a0==1)&&(((input==3)&&(a18==1))&&!(a4==1)))))&&(a20==1))))&&!(a22==1))))){ + if((a15==1)){ + a6 = 1; + a12 = 11; + a3 = 4; + a4 = 1; + a27 = 1; + a18 = 0; + a5 = 1; + }else{ + a15 = 1; + a5 = 1; + a12 = 8; + a4 = 1; + a0 = 1; + a6 = 1; + a27 = 1; + a3 = 6; + a22 = 1; + } + return -1; + } else if((((a0==1)&&((a6==1)&&((a27==1)&&((a20==1)&&(!(a15==1)&&(!(a22==1)&&((a12==9)&&(!(a5==1)&&((a3==5)&&((input==4)&&((a18==1)||!(a18==1))))))))))))&&!(a4==1))){ + a18 = 1; + a22 = 1; + a3 = 6; + a5 = 1; + a15 = 1; + a27 = 0; + return 26; + } else if(((a12==9)&&((a3==8)&&((!(a18==1)&&((!(a4==1)&&(((a20==1)&&(!(a27==1)&&((a15==1)&&((a22==1)&&(input==1)))))&&(a5==1)))&&(a0==1)))&&(a6==1))))){ + if((a12==11)){ + a3 = 6; + a0 = 0; + a15 = 0; + a27 = 1; + a22 = 0; + }else{ + a3 = 4; + a4 = 1; + a5 = 0; + a12 = 8; + } + return 21; + } else if((((a5==1)&&(((a6==1)&&((((a3==7)&&(!(a0==1)&&((!(a4==1)&&((input==3)&&((a18==1)||!(a18==1))))&&!(a15==1))))&&!(a27==1))&&(a20==1)))&&!(a22==1)))&&(a12==10))){ + a0 = 1; + a12 = 8; + a15 = 1; + a18 = 1; + a27 = 1; + a22 = 1; + return 24; + } else if(((a20==1)&&((a4==1)&&((a27==1)&&(((!(a0==1)&&(!(a15==1)&&(((a3==4)&&((input==5)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))&&(a5==1))))&&!(a6==1))&&(a12==9)))))){ + a0 = 1; + a12 = 11; + a4 = 0; + a18 = 0; + a6 = 1; + a3 = 6; + a22 = 0; + return 21; + } else if(((((((a6==1)&&(((a3==6)&&(((!(a27==1)&&((input==1)&&(a0==1)))&&!(a5==1))&&(a4==1)))&&(a12==11)))&&!(a15==1))&&!(a18==1))&&(a20==1))&&!(a22==1))){ + a18 = 1; + a12 = 12; + a15 = 1; + a3 = 5; + a27 = 1; + return 26; + } else if((((!(a4==1)&&((((a18==1)&&(((a12==10)&&((a6==1)&&((a3==4)&&((input==6)&&(a15==1)))))&&!(a27==1)))&&(a5==1))&&(a22==1)))&&(a20==1))&&(a0==1))){ + a5 = 0; + a18 = 0; + a3 = 7; + return 21; + } else if((((a5==1)&&((((((a15==1)&&((((a6==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a0==1))&&(a12==9)))&&!(a27==1))&&(a3==6))&&!(a22==1))&&(a4==1)))&&(a20==1))){ + a3 = 5; + a6 = 0; + a12 = 12; + a18 = 1; + a27 = 1; + a22 = 1; + return 26; + } else if((((a12==11)&&((((!(a5==1)&&((((a20==1)&&(!(a27==1)&&((input==5)&&(a4==1))))&&(a3==8))&&!(a6==1)))&&(a18==1))&&(a22==1))&&!(a15==1)))&&(a0==1))){ + a5 = 1; + a3 = 7; + a12 = 10; + a18 = 0; + return -1; + } else if(((a20==1)&&((!(a5==1)&&((a22==1)&&((a27==1)&&((a6==1)&&((a3==4)&&((!(a4==1)&&((a15==1)&&((input==5)&&!(a18==1))))&&(a0==1)))))))&&(a12==11)))){ + a0 = 0; + a4 = 1; + a22 = 0; + a12 = 9; + a15 = 0; + a5 = 1; + a3 = 7; + return 26; + } else if((!(a27==1)&&(!(a6==1)&&((((((!(a5==1)&&((a3==4)&&((input==2)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))))&&(a12==8))&&(a0==1))&&!(a4==1))&&(a15==1))&&(a20==1))))){ + a22 = 0; + a3 = 6; + a12 = 10; + a15 = 0; + a5 = 1; + a18 = 1; + return 21; + } else if(((!(a27==1)&&(!(a0==1)&&((a15==1)&&((a3==6)&&(((a12==8)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&!(a5==1))&&(a4==1)))&&(a20==1))))))&&(a6==1))){ + a0 = 1; + a12 = 10; + a18 = 1; + a22 = 1; + a5 = 1; + a4 = 0; + a3 = 7; + return 21; + } else if(((a18==1)&&(((a22==1)&&((a20==1)&&((((!(a6==1)&&(((a12==9)&&((a3==5)&&(input==3)))&&!(a15==1)))&&!(a0==1))&&!(a5==1))&&!(a27==1))))&&(a4==1)))){ + a18 = 0; + a27 = 1; + a5 = 1; + a12 = 11; + a3 = 4; + a6 = 1; + return -1; + } else if(((a12==12)&&(((a20==1)&&(((((a6==1)&&(((((a3==6)&&((a22==1)&&!(a18==1)))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1)))))&&(input==2))&&(a4==1)))&&(a27==1))&&(a5==1))&&(a0==1)))&&!(a15==1)))){ + a4 = 0; + a3 = 8; + a22 = 1; + a18 = 1; + a6 = 0; + a12 = 10; + return 21; + } else if(((!(a27==1)&&((((!(a15==1)&&((!(a0==1)&&(((((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==1)))&&(a20==1)))&&(a12==8))&&!(a6==1))&&!(a5==1)))&&!(a4==1))){ + a0 = 1; + a18 = 0; + a3 = 7; + a22 = 0; + a4 = 1; + a12 = 10; + a27 = 1; + return 24; + } else if((((((a27==1)&&(!(a4==1)&&(!(a22==1)&&(!(a5==1)&&((a20==1)&&(((a3==7)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a15==1)))))))&&(a12==8))&&(a6==1))&&!(a0==1))){ + a22 = 1; + a6 = 0; + a12 = 11; + a18 = 0; + a3 = 5; + a5 = 1; + a4 = 1; + a0 = 1; + return -1; + } else if((!(a4==1)&&(((a12==12)&&(((((!(a5==1)&&((a27==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2))))&&(a0==1))&&!(a6==1))&&(a20==1))&&(a3==4)))&&!(a15==1)))){ + a3 = 5; + a22 = 0; + a4 = 1; + a18 = 1; + a5 = 1; + a15 = 1; + return -1; + } else if((!(a15==1)&&((((((((a6==1)&&((a3==5)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==4))))&&(a20==1))&&!(a0==1))&&(a12==12))&&(a27==1))&&!(a4==1))&&!(a5==1)))){ + a22 = 0; + a12 = 11; + a18 = 1; + a5 = 1; + a6 = 0; + a4 = 1; + return -1; + } else if(((!(a18==1)&&((a5==1)&&(((((a0==1)&&((!(a27==1)&&(((input==2)&&!(a4==1))&&!(a15==1)))&&(a20==1)))&&(a6==1))&&(a3==8))&&(a22==1))))&&(a12==8))){ + a18 = 1; + a15 = 1; + a27 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if(((((a3==5)&&(((a12==9)&&(((a20==1)&&((((a15==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a5==1))&&(a4==1)))&&(a6==1)))&&(a27==1)))&&(a0==1))&&!(a22==1))){ + a12 = 11; + a15 = 0; + a5 = 0; + a18 = 1; + a3 = 8; + a22 = 1; + return 21; + } else if(((((a20==1)&&(((a3==8)&&(((a15==1)&&(((((input==1)&&((a18==1)||!(a18==1)))&&(a22==1))&&!(a0==1))&&(a4==1)))&&(a5==1)))&&(a12==10)))&&!(a6==1))&&(a27==1))){ + a0 = 1; + a3 = 4; + a18 = 0; + a12 = 9; + return 21; + } else if(((a20==1)&&((((a27==1)&&((((((((a0==1)&&(input==4))&&!(a22==1))&&!(a18==1))&&!(a15==1))&&(a5==1))&&!(a6==1))&&(a3==6)))&&(a12==12))&&(a4==1)))){ + return 26; + } else if((((a20==1)&&(((((a4==1)&&((a12==8)&&(!(a27==1)&&((a3==4)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==6))))))&&(a5==1))&&!(a15==1))&&(a6==1)))&&!(a0==1))){ + a12 = 9; + a3 = 5; + a6 = 0; + a18 = 0; + a5 = 0; + a27 = 1; + a22 = 1; + return -1; + } else if(((a20==1)&&(((a12==10)&&((!(a5==1)&&(((((input==5)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1)))))&&!(a6==1))&&!(a0==1))&&!(a27==1)))&&(a15==1)))&&!(a4==1)))){ + a0 = 1; + a5 = 1; + a18 = 1; + a6 = 1; + a12 = 12; + a22 = 1; + a3 = 8; + return 26; + } else if(((((!(a4==1)&&(((a20==1)&&(!(a15==1)&&(((input==4)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))||((a3==5)&&((a22==1)&&!(a18==1)))))&&!(a0==1))))&&(a12==8)))&&!(a27==1))&&(a5==1))&&(a6==1))){ + a3 = 5; + a27 = 1; + a22 = 1; + a4 = 1; + a0 = 1; + a15 = 1; + a18 = 1; + a6 = 0; + return -1; + } else if(((!(a5==1)&&(!(a27==1)&&(!(a4==1)&&((a12==9)&&((a20==1)&&((((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==3))&&(a6==1))&&!(a15==1)))))))&&(a0==1))){ + a4 = 1; + a12 = 8; + a5 = 1; + a18 = 1; + a3 = 4; + a15 = 1; + a22 = 1; + a27 = 1; + return -1; + } else if(((a0==1)&&((!(a6==1)&&((a15==1)&&((a12==10)&&((!(a5==1)&&(!(a27==1)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==5))))&&(a20==1)))))&&!(a4==1)))){ + a3 = 6; + a22 = 0; + a15 = 0; + a6 = 1; + a12 = 9; + a18 = 0; + return 26; + } else if((((a4==1)&&(!(a6==1)&&(((a12==10)&&(!(a27==1)&&(((!(a15==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==3)))&&(a0==1))&&!(a5==1))))&&(a20==1))))&&(a3==4))){ + a3 = 8; + a18 = 0; + a27 = 1; + a22 = 1; + a5 = 1; + a6 = 1; + a4 = 0; + return -1; + } else if((((!(a6==1)&&(((!(a4==1)&&(!(a15==1)&&(((((input==3)&&(a22==1))&&!(a0==1))&&!(a5==1))&&(a20==1))))&&!(a27==1))&&(a12==8)))&&(a3==7))&&!(a18==1))){ + a15 = 1; + a27 = 1; + a12 = 12; + a4 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if(((a20==1)&&((a3==6)&&(!(a4==1)&&((((a5==1)&&((a6==1)&&(!(a18==1)&&(!(a22==1)&&(((a27==1)&&(input==5))&&(a15==1))))))&&!(a0==1))&&(a12==12)))))){ + a27 = 0; + a18 = 1; + a0 = 1; + a12 = 11; + return 21; + } else if(((a3==6)&&(!(a22==1)&&((a12==8)&&(((a15==1)&&(((!(a4==1)&&((((input==5)&&((a18==1)||!(a18==1)))&&!(a5==1))&&!(a6==1)))&&(a27==1))&&(a20==1)))&&(a0==1)))))){ + if((a12==8)){ + a22 = 1; + a12 = 11; + a5 = 1; + a0 = 0; + a3 = 4; + a4 = 1; + a18 = 1; + }else{ + a18 = 1; + a6 = 1; + a12 = 10; + a3 = 8; + a4 = 1; + a22 = 1; + } + return 21; + } else if((!(a5==1)&&((a12==11)&&((!(a0==1)&&((((a22==1)&&((a20==1)&&((a6==1)&&((((a18==1)||!(a18==1))&&(input==6))&&!(a4==1)))))&&(a3==8))&&(a15==1)))&&!(a27==1))))){ + a18 = 0; + a15 = 0; + a6 = 0; + a27 = 1; + a12 = 12; + a22 = 0; + a5 = 1; + a0 = 1; + return -1; + } else if(((((a27==1)&&(!(a4==1)&&(!(a0==1)&&(!(a5==1)&&((a3==7)&&(((a12==9)&&((!(a18==1)&&(input==6))&&!(a6==1)))&&!(a22==1)))))))&&(a20==1))&&(a15==1))){ + a15 = 0; + a27 = 0; + a22 = 1; + a12 = 10; + a3 = 8; + a18 = 1; + a0 = 1; + a5 = 1; + return -1; + } else if((!(a27==1)&&(!(a5==1)&&((a20==1)&&(!(a4==1)&&((((((((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1))||(((((a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))))&&(input==3))&&!(a0==1))&&(a12==8))&&!(a15==1))))))){ + a4 = 1; + a6 = 0; + a3 = 5; + a0 = 1; + a5 = 1; + a22 = 0; + a27 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if((((a4==1)&&((a18==1)&&(((a27==1)&&(((a0==1)&&((a12==11)&&((a20==1)&&(((input==3)&&!(a22==1))&&!(a15==1)))))&&(a6==1)))&&(a3==7))))&&!(a5==1))){ + a18 = 0; + a22 = 1; + a15 = 1; + a4 = 0; + a3 = 4; + a12 = 9; + a0 = 0; + return 24; + } else if(((((a18==1)&&((a3==8)&&((a22==1)&&((((a0==1)&&(((a5==1)&&((a12==8)&&(input==5)))&&(a20==1)))&&(a6==1))&&!(a27==1)))))&&!(a15==1))&&!(a4==1))){ + a15 = 1; + a27 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if(((a20==1)&&((!(a27==1)&&((a15==1)&&((a12==12)&&((((a6==1)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==5)))&&(a4==1))&&!(a5==1)))))&&(a0==1)))){ + a22 = 0; + a6 = 0; + a4 = 0; + a15 = 0; + a18 = 0; + a12 = 11; + a5 = 1; + a27 = 1; + a3 = 4; + return 26; + } else if((((a5==1)&&(!(a0==1)&&((((((!(a6==1)&&(((!(a22==1)&&!(a18==1))&&(a4==1))&&(a3==8)))||(((!(a4==1)&&((a18==1)&&(a22==1)))&&(a3==4))&&(a6==1)))&&(input==2))&&!(a27==1))&&!(a15==1))&&(a20==1))))&&(a12==11))){ + a18 = 1; + a6 = 1; + a0 = 1; + a27 = 1; + a15 = 1; + a4 = 0; + a12 = 8; + a22 = 0; + a3 = 5; + return 24; + } else if(((((a3==5)&&(((((a22==1)&&((a20==1)&&(((a12==10)&&((input==6)&&!(a15==1)))&&(a4==1))))&&!(a27==1))&&!(a0==1))&&(a5==1)))&&(a6==1))&&(a18==1))){ + if((a15==1)){ + a12 = 8; + a6 = 0; + a0 = 1; + a3 = 8; + a18 = 0; + a27 = 1; + a15 = 1; + }else{ + a22 = 0; + a0 = 1; + a4 = 0; + a12 = 9; + } + return -1; + } else if(((a6==1)&&(!(a0==1)&&(!(a5==1)&&((a27==1)&&(((a4==1)&&(((a3==4)&&((a12==12)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5))))&&(a20==1)))&&(a15==1))))))){ + if((a6==1)){ + a5 = 1; + a22 = 1; + a12 = 8; + a18 = 0; + a0 = 1; + a3 = 6; + }else{ + a3 = 6; + a22 = 0; + a12 = 8; + a0 = 1; + a5 = 1; + a4 = 0; + a18 = 1; + } + return 24; + } else if((!(a22==1)&&(!(a5==1)&&(!(a27==1)&&((((a20==1)&&((!(a6==1)&&(((a3==5)&&(!(a18==1)&&(input==4)))&&(a0==1)))&&(a4==1)))&&(a12==11))&&(a15==1)))))){ + a6 = 1; + a15 = 0; + a12 = 12; + return 21; + } else if(((a0==1)&&(((a5==1)&&((((((a3==7)&&(((a4==1)&&(!(a6==1)&&(input==5)))&&(a15==1)))&&!(a22==1))&&(a27==1))&&(a20==1))&&(a12==9)))&&(a18==1)))){ + a18 = 0; + a4 = 0; + a12 = 12; + a22 = 1; + return 24; + } else if((!(a6==1)&&((!(a0==1)&&((!(a5==1)&&((a4==1)&&((a12==9)&&((a20==1)&&(((((a22==1)&&(a18==1))&&(a3==5))||((((a18==1)&&!(a22==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4))))&&(input==2))))))&&(a15==1)))&&!(a27==1)))){ + a22 = 0; + a3 = 6; + a18 = 0; + a6 = 1; + a4 = 0; + a5 = 1; + a12 = 8; + a0 = 1; + a27 = 1; + return 26; + } else if((((a12==12)&&((a0==1)&&((a15==1)&&(((a3==5)&&(!(a4==1)&&((a6==1)&&(((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==3))&&(a20==1)))))&&!(a27==1)))))&&(a5==1))){ + a4 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + a27 = 1; + a18 = 1; + return -1; + } else if((!(a6==1)&&(!(a5==1)&&((((((a27==1)&&((((((!(a18==1)&&!(a22==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))||(((a22==1)&&!(a18==1))&&(a3==7)))&&(input==3))&&(a20==1)))&&!(a4==1))&&!(a15==1))&&(a12==9))&&(a0==1))))){ + a22 = 1; + a3 = 4; + a15 = 1; + a12 = 8; + a6 = 1; + a5 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if((((a12==9)&&((a20==1)&&((((a15==1)&&((a4==1)&&(!(a6==1)&&((a3==4)&&((input==1)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))))))&&(a5==1))&&(a0==1))))&&!(a27==1))){ + a18 = 0; + a15 = 0; + a27 = 1; + a3 = 6; + a12 = 12; + a22 = 0; + return -1; + } else if((((!(a27==1)&&((((((a18==1)&&((a20==1)&&((!(a5==1)&&(input==2))&&(a6==1))))&&(a22==1))&&(a3==4))&&!(a4==1))&&!(a15==1)))&&(a12==9))&&(a0==1))){ + a22 = 0; + a18 = 0; + a12 = 10; + a27 = 1; + a6 = 0; + a3 = 5; + return 21; + } else if(((((a5==1)&&((!(a6==1)&&((a4==1)&&((a0==1)&&(((a3==7)&&((a12==12)&&((input==5)&&(a27==1))))&&(a20==1)))))&&(a18==1)))&&(a15==1))&&!(a22==1))){ + a22 = 1; + a6 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((((!(a5==1)&&(!(a6==1)&&((a20==1)&&(!(a27==1)&&((a15==1)&&((input==3)&&(((a3==8)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1)))))))))))&&(a0==1))&&!(a4==1))&&(a12==9))){ + a3 = 4; + a5 = 1; + a6 = 1; + a4 = 1; + a18 = 1; + a22 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if((((a12==10)&&((a3==5)&&((a20==1)&&((a27==1)&&(!(a4==1)&&(((a6==1)&&(((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==6))&&!(a0==1)))&&(a5==1)))))))&&!(a15==1))){ + a22 = 1; + a15 = 1; + a27 = 0; + a18 = 1; + a5 = 0; + a12 = 8; + a6 = 0; + a0 = 1; + return 26; + } else if(((a27==1)&&(((a5==1)&&(((((a0==1)&&(((((a3==5)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1)))))&&(input==3))&&!(a4==1)))&&!(a15==1))&&(a12==11))&&(a6==1)))&&(a20==1)))){ + a12 = 10; + a4 = 1; + a22 = 1; + a18 = 1; + a3 = 8; + return -1; + } else if((!(a15==1)&&(((((a20==1)&&((a12==10)&&(((a3==8)&&((!(a18==1)&&(!(a27==1)&&(input==6)))&&!(a4==1)))&&(a6==1))))&&!(a22==1))&&!(a5==1))&&!(a0==1)))){ + a3 = 5; + a6 = 0; + a12 = 12; + a0 = 1; + a18 = 1; + a22 = 1; + a4 = 1; + return -1; + } else if(((((a4==1)&&((((a20==1)&&((a12==12)&&(((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==1))&&(a6==1))))&&(a27==1))&&!(a5==1)))&&(a0==1))&&(a15==1))){ + a3 = 4; + a18 = 1; + a12 = 8; + a5 = 1; + a22 = 1; + return -1; + } else if(((((a18==1)&&(!(a27==1)&&(((a20==1)&&(((a6==1)&&(((a3==4)&&((input==2)&&!(a4==1)))&&!(a22==1)))&&!(a15==1)))&&!(a0==1))))&&(a12==8))&&(a5==1))){ + if((a6==1)){ + a27 = 1; + a15 = 1; + a3 = 7; + a0 = 1; + }else{ + a22 = 1; + a27 = 1; + a5 = 0; + a18 = 0; + a3 = 7; + a12 = 11; + } + return 21; + } else if(((!(a0==1)&&((a3==5)&&((!(a5==1)&&(!(a15==1)&&(!(a4==1)&&(((a20==1)&&((input==5)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))&&!(a6==1)))))&&(a27==1))))&&(a12==9))){ + a4 = 1; + a6 = 1; + a18 = 1; + a0 = 1; + a22 = 1; + a12 = 10; + return -1; + } else if(((a27==1)&&((a3==5)&&((((a5==1)&&((((a18==1)&&(((a22==1)&&((input==2)&&(a12==11)))&&(a20==1)))&&!(a0==1))&&!(a6==1)))&&!(a4==1))&&(a15==1))))){ + a6 = 1; + a0 = 1; + a4 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((((a22==1)&&((!(a18==1)&&((a6==1)&&((((a20==1)&&(((a4==1)&&(!(a15==1)&&(input==2)))&&(a3==7)))&&!(a0==1))&&(a12==12))))&&(a5==1)))&&(a27==1))){ + a15 = 1; + a12 = 8; + a0 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a6==1)&&(!(a22==1)&&((a20==1)&&((((a12==9)&&(((!(a0==1)&&(((input==4)&&(a3==8))&&!(a27==1)))&&!(a15==1))&&!(a18==1)))&&(a4==1))&&!(a5==1)))))){ + if((a20==1)){ + a0 = 1; + a12 = 12; + a18 = 1; + a3 = 7; + }else{ + a4 = 0; + a18 = 1; + a3 = 5; + a5 = 1; + a22 = 1; + a12 = 12; + a6 = 0; + a27 = 1; + } + return 21; + } else if(((a12==8)&&(((((((((input==4)&&(((a3==5)&&((a22==1)&&(a18==1)))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a22==1)&&!(a18==1))))))&&(a5==1))&&!(a4==1))&&(a20==1))&&!(a27==1))&&!(a0==1))&&(a6==1))&&(a15==1)))){ + a3 = 8; + a0 = 1; + a27 = 1; + a15 = 0; + a18 = 1; + a22 = 0; + a12 = 10; + return 26; + } else if((((a6==1)&&((((a27==1)&&(((a0==1)&&(!(a4==1)&&((input==4)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6))))))&&(a12==11)))&&(a5==1))&&!(a15==1)))&&(a20==1))){ + if((a4==1)){ + a3 = 7; + a22 = 1; + a4 = 1; + a6 = 0; + a18 = 1; + a12 = 9; + a0 = 0; + a5 = 0; + a15 = 1; + }else{ + a6 = 0; + a15 = 1; + a3 = 7; + a18 = 1; + a22 = 1; + } + return -1; + } else if((((a20==1)&&(((((((a4==1)&&(!(a15==1)&&((input==3)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))))&&(a6==1))&&!(a27==1))&&(a3==5))&&!(a0==1))&&(a12==9)))&&!(a5==1))){ + a22 = 1; + a18 = 0; + a15 = 1; + a0 = 1; + a6 = 0; + a12 = 11; + a5 = 1; + a4 = 0; + a3 = 7; + return 26; + } else if(((a6==1)&&((((!(a5==1)&&(((((a3==6)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==2)))&&(a12==10))&&(a0==1))&&(a20==1)))&&(a4==1))&&!(a27==1))&&(a15==1)))){ + a27 = 1; + a5 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + return -1; + } else if((((a18==1)&&((a27==1)&&(((a6==1)&&(((((((a3==8)&&(input==4))&&(a0==1))&&(a15==1))&&(a22==1))&&(a20==1))&&!(a5==1)))&&(a4==1))))&&(a12==12))){ + a22 = 0; + a18 = 0; + a6 = 0; + a12 = 10; + a0 = 0; + a15 = 0; + a5 = 1; + return 21; + } else if((!(a22==1)&&((!(a18==1)&&(((((a3==7)&&(!(a15==1)&&(!(a27==1)&&(((input==2)&&(a4==1))&&!(a5==1)))))&&(a0==1))&&(a20==1))&&(a12==11)))&&!(a6==1)))){ + a0 = 0; + a27 = 1; + a4 = 0; + a15 = 1; + a3 = 5; + a12 = 9; + a6 = 1; + return 21; + } else if(((((!(a27==1)&&((a0==1)&&((!(a4==1)&&((((a20==1)&&((input==5)&&!(a22==1)))&&(a3==5))&&!(a6==1)))&&(a18==1))))&&!(a15==1))&&!(a5==1))&&(a12==9))){ + a27 = 1; + a15 = 1; + a4 = 1; + a3 = 8; + a0 = 0; + a18 = 0; + return 26; + } else if((((a20==1)&&((a0==1)&&(!(a4==1)&&(((!(a5==1)&&((((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==3))&&!(a6==1))&&(a3==6)))&&(a12==11))&&(a27==1)))))&&(a15==1))){ + a0 = 0; + a3 = 4; + a12 = 8; + a22 = 1; + a18 = 1; + a5 = 1; + a15 = 0; + return 26; + } else if(((a15==1)&&((a3==4)&&((a6==1)&&(((a22==1)&&(((((((input==6)&&(a20==1))&&(a4==1))&&(a12==9))&&(a0==1))&&!(a18==1))&&(a5==1)))&&(a27==1)))))){ + a18 = 1; + a12 = 8; + return -1; + } else if((((a15==1)&&((a20==1)&&((a5==1)&&((a27==1)&&(((input==6)&&((((((a18==1)&&(a22==1))&&!(a4==1))&&(a3==4))&&(a6==1))||((((((a18==1)&&!(a22==1))&&(a4==1))&&(a3==8))&&!(a6==1))||(((a3==8)&&((a4==1)&&(!(a22==1)&&!(a18==1))))&&!(a6==1)))))&&(a0==1))))))&&(a12==10))){ + a22 = 0; + a12 = 9; + a3 = 5; + a4 = 1; + a5 = 0; + a18 = 1; + a27 = 0; + a6 = 0; + return 26; + } else if((((a15==1)&&((!(a5==1)&&(!(a4==1)&&(!(a18==1)&&((a6==1)&&(((((a12==10)&&(input==5))&&(a20==1))&&!(a0==1))&&(a22==1))))))&&!(a27==1)))&&(a3==5))){ + a27 = 1; + a0 = 1; + a18 = 1; + a12 = 9; + return -1; + } else if(((a4==1)&&((a15==1)&&((!(a6==1)&&((!(a0==1)&&(((a5==1)&&((input==2)&&(((a3==5)&&((a18==1)&&(a22==1)))||(((a3==4)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==4))))))&&(a20==1)))&&(a12==11)))&&!(a27==1))))){ + a6 = 1; + a22 = 1; + a12 = 8; + a27 = 1; + a4 = 0; + a18 = 1; + a0 = 1; + a3 = 4; + return -1; + } else if(((a6==1)&&((a4==1)&&(!(a27==1)&&(((!(a0==1)&&((a12==8)&&(((!(a5==1)&&((a22==1)&&(input==6)))&&(a15==1))&&(a20==1))))&&(a18==1))&&(a3==5)))))){ + a3 = 8; + a12 = 10; + a4 = 0; + a15 = 0; + a22 = 0; + a27 = 1; + a18 = 0; + a6 = 0; + return 24; + } else if((((!(a0==1)&&((a12==8)&&((((input==6)&&((((((!(a22==1)&&!(a18==1))&&(a4==1))&&(a3==8))&&!(a6==1))||(((!(a4==1)&&((a22==1)&&(a18==1)))&&(a3==4))&&(a6==1)))||((a6==1)&&((a3==4)&&(!(a4==1)&&((a22==1)&&!(a18==1)))))))&&(a5==1))&&!(a27==1))))&&(a20==1))&&!(a15==1))){ + a6 = 1; + a27 = 1; + a18 = 1; + a3 = 6; + a15 = 1; + a4 = 1; + a22 = 0; + a0 = 1; + return 24; + } else if(((((a3==8)&&(((a20==1)&&((((a27==1)&&((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==2))&&(a4==1)))&&!(a0==1))&&!(a6==1)))&&(a12==12)))&&!(a5==1))&&(a15==1))){ + if((a4==1)){ + a3 = 7; + a5 = 1; + a22 = 0; + a18 = 1; + a4 = 0; + a12 = 8; + }else{ + a22 = 0; + a3 = 4; + a5 = 1; + a18 = 0; + a12 = 8; + a0 = 1; + } + return 21; + } else if(((((a3==4)&&((!(a6==1)&&((a22==1)&&((a4==1)&&(!(a27==1)&&((((input==6)&&((a18==1)||!(a18==1)))&&(a12==9))&&(a20==1))))))&&(a5==1)))&&!(a15==1))&&(a0==1))){ + a27 = 1; + a18 = 0; + a12 = 11; + a3 = 6; + a6 = 1; + return 24; + } else if((!(a5==1)&&((a20==1)&&(((a22==1)&&((a12==11)&&((a4==1)&&(((a15==1)&&((((input==1)&&((a18==1)||!(a18==1)))&&(a3==6))&&!(a27==1)))&&(a6==1)))))&&!(a0==1))))){ + if((a0==1)){ + a18 = 0; + a27 = 1; + a22 = 0; + a4 = 0; + a0 = 1; + a3 = 7; + }else{ + a6 = 0; + a0 = 1; + a12 = 10; + a3 = 7; + a22 = 0; + a15 = 0; + a18 = 0; + a5 = 1; + a4 = 0; + } + return -1; + } else if((((!(a18==1)&&(((a15==1)&&(!(a0==1)&&((((a3==5)&&(!(a5==1)&&((input==2)&&(a22==1))))&&(a4==1))&&!(a6==1))))&&!(a27==1)))&&(a20==1))&&(a12==9))){ + a0 = 1; + a27 = 1; + a6 = 1; + a4 = 0; + a12 = 12; + a3 = 8; + return -1; + } else if((((a4==1)&&((a12==11)&&((((a0==1)&&(!(a22==1)&&((!(a6==1)&&((a18==1)&&((a3==6)&&(input==4))))&&(a27==1))))&&!(a15==1))&&(a20==1))))&&!(a5==1))){ + a3 = 8; + a18 = 0; + a5 = 1; + a12 = 10; + return -1; + } else if(((!(a22==1)&&(!(a18==1)&&((a0==1)&&(((!(a5==1)&&((!(a6==1)&&((a20==1)&&((input==5)&&(a12==12))))&&(a4==1)))&&(a3==8))&&!(a15==1)))))&&!(a27==1))){ + a18 = 1; + a12 = 11; + a22 = 1; + a6 = 1; + a4 = 0; + a15 = 1; + return -1; + } else if(((((a20==1)&&((((a0==1)&&(!(a5==1)&&(((a3==5)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1)))&&!(a6==1))))&&!(a15==1))&&!(a4==1)))&&(a12==11))&&(a27==1))){ + a6 = 1; + a18 = 0; + a3 = 6; + a22 = 0; + a27 = 0; + return 21; + } else if((((a0==1)&&((a12==9)&&(((((a15==1)&&(!(a5==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))||((!(a18==1)&&(a22==1))&&(a3==8)))&&(input==1))))&&!(a27==1))&&(a20==1))&&(a4==1))))&&!(a6==1))){ + a12 = 12; + a4 = 0; + a22 = 1; + a27 = 1; + a18 = 1; + a3 = 7; + return -1; + } else if(((a20==1)&&(((a22==1)&&(!(a4==1)&&(!(a18==1)&&(((!(a6==1)&&((!(a5==1)&&((input==1)&&(a27==1)))&&(a12==10)))&&!(a15==1))&&(a3==8)))))&&!(a0==1)))){ + a3 = 4; + a12 = 8; + a4 = 1; + a6 = 1; + a18 = 1; + a15 = 1; + a0 = 1; + a5 = 1; + return -1; + } else if((!(a0==1)&&((!(a6==1)&&((a20==1)&&((((!(a15==1)&&((((input==4)&&((a18==1)||!(a18==1)))&&(a12==9))&&(a4==1)))&&(a3==5))&&(a27==1))&&!(a5==1))))&&(a22==1)))){ + a12 = 10; + a6 = 1; + a4 = 0; + a27 = 0; + a22 = 0; + a0 = 1; + a15 = 1; + a3 = 7; + a18 = 1; + a5 = 1; + return -1; + } else if((((a12==9)&&((a5==1)&&(!(a6==1)&&((a4==1)&&(((a15==1)&&(((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==1))&&!(a0==1)))&&!(a27==1))))))&&(a20==1))){ + if((a27==1)){ + a5 = 0; + a18 = 0; + a22 = 1; + a4 = 0; + a3 = 7; + a12 = 8; + }else{ + a15 = 0; + a27 = 1; + a3 = 8; + a12 = 10; + a18 = 0; + a5 = 0; + a4 = 0; + a22 = 0; + } + return 21; + } else if((!(a5==1)&&((((((a22==1)&&(((((a12==11)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a15==1))&&(a20==1))&&!(a27==1)))&&(a3==5))&&(a0==1))&&!(a6==1))&&(a4==1)))){ + if((a3==5)){ + a15 = 0; + a5 = 1; + a0 = 0; + a12 = 12; + a3 = 8; + a6 = 1; + a18 = 1; + a27 = 1; + }else{ + a3 = 4; + a15 = 0; + a18 = 0; + a22 = 0; + a12 = 10; + } + return -1; + } else if(((a27==1)&&(!(a15==1)&&((a3==7)&&(((a12==12)&&(!(a4==1)&&((a6==1)&&(((a20==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5)))&&(a5==1)))))&&!(a0==1)))))){ + a22 = 0; + a3 = 6; + a4 = 1; + a18 = 1; + a15 = 1; + a0 = 1; + a12 = 8; + return -1; + } else if(((a6==1)&&(((a12==10)&&(!(a0==1)&&(((a3==7)&&((a5==1)&&((((input==3)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a27==1))&&(a20==1))))&&(a4==1))))&&!(a15==1)))){ + a22 = 1; + a0 = 1; + a15 = 1; + a18 = 1; + a12 = 12; + return 26; + } else if(((a0==1)&&((a27==1)&&((a20==1)&&(!(a6==1)&&((a4==1)&&(((!(a22==1)&&(((a15==1)&&((a18==1)&&(input==2)))&&(a12==9)))&&(a5==1))&&(a3==8)))))))){ + a22 = 1; + a15 = 0; + a3 = 7; + a12 = 12; + return 21; + } else if(((a5==1)&&((a27==1)&&((((a6==1)&&((a12==8)&&(!(a4==1)&&(((a0==1)&&(((a20==1)&&(input==6))&&(a3==8)))&&!(a22==1)))))&&!(a18==1))&&!(a15==1))))){ + a18 = 1; + a22 = 1; + a3 = 4; + a15 = 1; + a4 = 1; + return -1; + } else if(((((!(a18==1)&&(((!(a0==1)&&((!(a27==1)&&(!(a22==1)&&((input==2)&&!(a5==1))))&&(a6==1)))&&(a3==4))&&(a4==1)))&&(a15==1))&&(a12==8))&&(a20==1))){ + if((a4==1)){ + a0 = 1; + a18 = 1; + a4 = 0; + a6 = 0; + a5 = 1; + a15 = 0; + a12 = 11; + a3 = 8; + a27 = 1; + }else{ + a6 = 0; + a27 = 1; + a5 = 1; + a22 = 1; + a0 = 1; + a12 = 12; + a15 = 0; + a4 = 0; + } + return -1; + } else if(((a12==11)&&((a3==8)&&((!(a0==1)&&(!(a6==1)&&(((a5==1)&&((((((a18==1)||!(a18==1))&&(input==2))&&!(a22==1))&&!(a4==1))&&(a20==1)))&&!(a27==1))))&&(a15==1))))){ + a12 = 8; + a18 = 0; + a3 = 4; + a27 = 1; + a4 = 1; + a0 = 1; + return 21; + } else if(((a12==12)&&(!(a0==1)&&(((a15==1)&&(((a27==1)&&((((input==2)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a22==1)&&(a18==1)))))&&(a20==1))&&!(a5==1)))&&!(a6==1)))&&(a4==1))))){ + if((a18==1)){ + a3 = 7; + a22 = 0; + a12 = 8; + a18 = 1; + a5 = 1; + a0 = 1; + }else{ + a18 = 0; + a6 = 1; + a22 = 1; + a0 = 1; + a3 = 6; + a15 = 0; + a5 = 1; + } + return -1; + } else if((!(a6==1)&&((a5==1)&&((a4==1)&&((a20==1)&&(!(a18==1)&&(!(a22==1)&&(((a0==1)&&(!(a15==1)&&(((input==4)&&(a12==11))&&(a27==1))))&&(a3==8))))))))){ + a15 = 1; + a6 = 1; + return 26; + } else if((((((a20==1)&&(!(a4==1)&&((!(a15==1)&&((a6==1)&&((input==1)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1)))))))&&(a5==1))))&&(a12==8))&&!(a27==1))&&!(a0==1))){ + a18 = 1; + a4 = 1; + a3 = 6; + a12 = 12; + a0 = 1; + a22 = 1; + return 21; + } else if((((a12==9)&&((a18==1)&&((((a20==1)&&((!(a4==1)&&(!(a27==1)&&(((input==2)&&(a6==1))&&!(a0==1))))&&(a3==6)))&&(a22==1))&&(a5==1))))&&(a15==1))){ + a22 = 0; + a0 = 1; + a3 = 5; + a4 = 1; + a12 = 10; + a15 = 0; + return -1; + } else if(((!(a0==1)&&(((a12==11)&&((!(a27==1)&&(((((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))||((!(a18==1)&&(a22==1))&&(a3==8)))&&(input==4))&&!(a15==1))&&(a5==1)))&&!(a4==1)))&&(a20==1)))&&(a6==1))){ + a0 = 1; + a27 = 1; + a3 = 5; + a18 = 1; + a22 = 0; + a15 = 1; + a12 = 8; + return 26; + } else if((!(a0==1)&&(((a3==4)&&((a4==1)&&(!(a15==1)&&(((((a20==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==6)))&&(a6==1))&&!(a27==1))&&(a5==1)))))&&(a12==11)))){ + a3 = 7; + a18 = 0; + a4 = 0; + a5 = 0; + a6 = 0; + a12 = 10; + a15 = 1; + a22 = 1; + return 21; + } else if(((a27==1)&&(((a4==1)&&(!(a0==1)&&((a20==1)&&((((((input==2)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&(a3==5))&&(a5==1))&&!(a15==1))&&(a12==9)))))&&(a6==1)))){ + a5 = 0; + a18 = 0; + a3 = 6; + a4 = 0; + a12 = 10; + a0 = 1; + a27 = 0; + a22 = 0; + a15 = 1; + return 26; + } else if((!(a15==1)&&((((a12==11)&&((a27==1)&&((a20==1)&&((a6==1)&&(((a3==4)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==1)))&&!(a5==1))))))&&(a4==1))&&(a0==1)))){ + a15 = 1; + a3 = 5; + a18 = 0; + a6 = 0; + a5 = 1; + a22 = 1; + return -1; + } else if(((a0==1)&&((a3==7)&&(((!(a6==1)&&((a27==1)&&(!(a4==1)&&(((a12==9)&&((a18==1)&&((input==1)&&!(a22==1))))&&(a5==1)))))&&!(a15==1))&&(a20==1))))){ + a18 = 0; + a12 = 11; + a3 = 4; + a15 = 1; + return 26; + } else if(((((((((((!(a0==1)&&((a12==8)&&(input==6)))&&!(a5==1))&&!(a18==1))&&(a20==1))&&(a27==1))&&!(a22==1))&&!(a6==1))&&(a3==7))&&(a4==1))&&(a15==1))){ + a6 = 1; + a0 = 1; + a22 = 1; + a5 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((((((a0==1)&&(((a12==10)&&((!(a15==1)&&((input==3)&&(((a3==7)&&(!(a18==1)&&(a22==1)))||(((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a18==1)&&(a22==1)))))))&&(a4==1)))&&(a27==1)))&&(a20==1))&&!(a6==1))&&!(a5==1))){ + a15 = 1; + a6 = 1; + a3 = 5; + a27 = 0; + a22 = 0; + a18 = 1; + return 21; + } else if(((a12==12)&&(((((!(a6==1)&&((!(a0==1)&&(((input==4)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&(a20==1)))&&(a15==1)))&&!(a5==1))&&(a3==7))&&(a27==1))&&!(a4==1)))){ + a12 = 10; + a4 = 1; + a3 = 6; + a18 = 0; + a6 = 1; + a22 = 1; + a15 = 0; + return 21; + } else if((((a12==10)&&(!(a27==1)&&(((a5==1)&&(!(a15==1)&&(((((a3==8)&&((a4==1)&&(!(a22==1)&&!(a18==1))))&&!(a6==1))||(((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1))))&&(a6==1)))&&(input==3))))&&(a20==1))))&&(a0==1))){ + a27 = 1; + a22 = 1; + a6 = 0; + a15 = 1; + a18 = 0; + a4 = 0; + a3 = 5; + return 21; + } else if((!(a6==1)&&(((!(a27==1)&&((a3==7)&&((a0==1)&&(((((a4==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a5==1))&&(a20==1))&&(a15==1)))))&&(a12==8))&&(a22==1)))){ + a27 = 1; + a5 = 0; + a0 = 0; + a18 = 0; + a15 = 0; + a4 = 0; + a3 = 6; + return -1; + } else if(((a27==1)&&((a3==6)&&((((a0==1)&&(((a20==1)&&(((!(a4==1)&&((input==2)&&!(a6==1)))&&!(a5==1))&&(a15==1)))&&(a22==1)))&&(a12==9))&&!(a18==1))))){ + if((a12==9)){ + a0 = 0; + a12 = 11; + a5 = 1; + a6 = 1; + a3 = 8; + a18 = 1; + }else{ + a12 = 10; + a3 = 5; + a6 = 1; + } + return 21; + } else if(((a12==9)&&((!(a6==1)&&((((!(a15==1)&&((a0==1)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==6))))&&(a27==1))&&!(a5==1))&&(a20==1)))&&(a4==1)))){ + a12 = 12; + a5 = 1; + a15 = 1; + a3 = 7; + a4 = 0; + a6 = 1; + a22 = 1; + a18 = 0; + return 21; + } else if((!(a4==1)&&((a0==1)&&((((((a12==10)&&((a27==1)&&((input==6)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1))))||((a3==8)&&((a22==1)&&!(a18==1)))))))&&!(a5==1))&&(a6==1))&&(a20==1))&&!(a15==1))))){ + a4 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + a5 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if(((a3==6)&&((a15==1)&&((((a12==10)&&(((!(a27==1)&&(((input==4)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a5==1)))&&(a6==1))&&(a20==1)))&&(a4==1))&&!(a0==1))))){ + a18 = 1; + a22 = 0; + a0 = 1; + a12 = 12; + a4 = 0; + return 21; + } else if(((a3==4)&&(!(a22==1)&&(((a18==1)&&(((a20==1)&&((!(a6==1)&&(!(a0==1)&&((a27==1)&&(!(a5==1)&&(input==4)))))&&(a4==1)))&&(a12==11)))&&(a15==1))))){ + a6 = 1; + a5 = 1; + a12 = 8; + a22 = 1; + a0 = 1; + return -1; + } else if(((((!(a5==1)&&((a12==8)&&(!(a18==1)&&(!(a0==1)&&((a3==7)&&((a20==1)&&(!(a6==1)&&(!(a27==1)&&(input==6)))))))))&&!(a4==1))&&!(a15==1))&&(a22==1))){ + a3 = 4; + a0 = 1; + a4 = 1; + a18 = 1; + a5 = 1; + a22 = 0; + a15 = 1; + a27 = 1; + return 21; + } else if(((((a3==7)&&(!(a0==1)&&((a12==8)&&(!(a27==1)&&((a4==1)&&((a6==1)&&((a5==1)&&(((input==3)&&!(a18==1))&&(a15==1)))))))))&&(a22==1))&&(a20==1))){ + a0 = 1; + a22 = 0; + a3 = 5; + a6 = 0; + a18 = 1; + a27 = 1; + return 26; + } else if(((((a15==1)&&((a0==1)&&((a18==1)&&((a20==1)&&(((a4==1)&&((((a5==1)&&(input==4))&&(a12==9))&&(a3==5)))&&!(a27==1))))))&&(a6==1))&&(a22==1))){ + a15 = 0; + a5 = 0; + a18 = 0; + a6 = 0; + a3 = 8; + a22 = 0; + a12 = 12; + return 26; + } else if((((a27==1)&&(((a12==12)&&(((a20==1)&&(((((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))||((!(a18==1)&&(a22==1))&&(a3==5)))&&(input==3))&&!(a5==1))&&(a6==1)))&&(a15==1)))&&(a4==1)))&&!(a0==1))){ + a0 = 1; + a22 = 1; + a12 = 8; + a5 = 1; + a3 = 4; + a18 = 1; + return 21; + } else if(((((a3==5)&&((((a15==1)&&((((a12==8)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==3)))&&(a20==1))&&(a5==1)))&&!(a27==1))&&!(a4==1)))&&(a6==1))&&(a0==1))){ + a27 = 1; + a4 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((a6==1)&&(((a27==1)&&(((!(a5==1)&&((a20==1)&&(!(a0==1)&&((input==1)&&(((a3==6)&&((a18==1)&&(a22==1)))||(((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a18==1)&&!(a22==1)))))))))&&!(a4==1))&&!(a15==1)))&&(a12==8)))){ + a4 = 1; + a5 = 1; + a15 = 1; + a22 = 1; + a0 = 1; + a18 = 1; + a3 = 5; + a27 = 0; + return 26; + } else if((((a3==5)&&((((!(a22==1)&&((a18==1)&&((a20==1)&&(((a12==9)&&((a4==1)&&(input==5)))&&!(a15==1)))))&&!(a5==1))&&(a6==1))&&!(a27==1)))&&(a0==1))){ + a6 = 0; + a22 = 1; + a18 = 0; + a27 = 1; + a5 = 1; + a4 = 0; + a3 = 8; + a12 = 11; + return 26; + } else if((!(a27==1)&&(((a0==1)&&(((a20==1)&&((a12==10)&&((((input==3)&&((((a3==4)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==4)))||((a3==5)&&((a22==1)&&(a18==1)))))&&!(a5==1))&&!(a4==1))))&&!(a15==1)))&&!(a6==1)))){ + a5 = 1; + a12 = 8; + a22 = 1; + a27 = 1; + a6 = 1; + a4 = 1; + a15 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a15==1)&&(!(a0==1)&&(!(a27==1)&&((!(a22==1)&&(((((a4==1)&&(!(a5==1)&&(((a18==1)||!(a18==1))&&(input==3))))&&(a20==1))&&(a12==10))&&(a3==6)))&&!(a6==1)))))){ + a27 = 1; + a12 = 8; + a5 = 1; + a4 = 0; + a0 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a6 = 1; + return 26; + } else if((((a20==1)&&(((!(a6==1)&&(!(a27==1)&&(((a4==1)&&((input==4)&&(((a3==5)&&((a22==1)&&(a18==1)))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==4))))))&&!(a5==1))))&&!(a15==1))&&(a0==1)))&&(a12==8))){ + a12 = 12; + a18 = 0; + a3 = 6; + a5 = 1; + a22 = 0; + return 21; + } else if((((a12==10)&&(!(a22==1)&&((a15==1)&&((a4==1)&&(!(a18==1)&&(!(a0==1)&&((a3==4)&&((a6==1)&&(((input==3)&&!(a5==1))&&(a27==1))))))))))&&(a20==1))){ + a0 = 1; + a5 = 1; + a15 = 0; + a3 = 5; + a12 = 12; + return 26; + } else if((!(a6==1)&&(((!(a22==1)&&(((a20==1)&&((a12==12)&&((((((a18==1)||!(a18==1))&&(input==1))&&(a3==7))&&!(a0==1))&&(a27==1))))&&(a5==1)))&&(a4==1))&&(a15==1)))){ + a18 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + a6 = 1; + a0 = 1; + return -1; + } else if((((a6==1)&&(!(a4==1)&&(!(a27==1)&&((a12==12)&&((((a20==1)&&(((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7)))||((a3==7)&&(!(a18==1)&&(a22==1))))&&(input==5)))&&(a5==1))&&(a0==1))))))&&(a15==1))){ + a3 = 4; + a18 = 1; + a27 = 1; + a12 = 10; + a22 = 0; + return 24; + } else if((((a15==1)&&(((a18==1)&&(!(a22==1)&&(((a27==1)&&((a12==9)&&(!(a0==1)&&(((a20==1)&&(input==2))&&!(a6==1)))))&&(a3==7))))&&(a4==1)))&&!(a5==1))){ + a3 = 6; + a0 = 1; + a6 = 1; + a5 = 1; + a22 = 1; + a12 = 10; + return -1; + } else if((((!(a15==1)&&((!(a5==1)&&((a0==1)&&(((a22==1)&&((!(a27==1)&&((input==5)&&!(a18==1)))&&(a4==1)))&&(a12==10))))&&(a3==6)))&&!(a6==1))&&(a20==1))){ + if((a6==1)){ + a3 = 5; + a27 = 1; + a15 = 1; + a12 = 9; + a22 = 0; + a4 = 0; + a0 = 0; + a6 = 1; + }else{ + a18 = 1; + a3 = 4; + a4 = 0; + a5 = 1; + a12 = 12; + a27 = 1; + a22 = 0; + a15 = 1; + } + return 26; + } else if(((a15==1)&&(!(a0==1)&&((!(a6==1)&&(((a5==1)&&(((a20==1)&&((((a3==5)&&((a22==1)&&(a18==1)))||(((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a22==1)&&!(a18==1)))))&&(input==6)))&&(a27==1)))&&(a12==9)))&&(a4==1))))){ + a27 = 0; + a22 = 0; + a3 = 8; + a12 = 11; + a18 = 0; + a0 = 1; + return -1; + } else if((!(a5==1)&&((a4==1)&&((a27==1)&&(((a3==5)&&(((a18==1)&&(((a20==1)&&(((input==5)&&(a12==9))&&!(a0==1)))&&!(a22==1)))&&(a15==1)))&&(a6==1)))))){ + a22 = 1; + a5 = 1; + a3 = 4; + a0 = 1; + a12 = 8; + return -1; + } else if((!(a27==1)&&((a12==10)&&((((a5==1)&&(!(a0==1)&&((a4==1)&&(((a6==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2)))&&(a20==1)))))&&(a15==1))&&(a3==6))))){ + if((a20==1)){ + a3 = 8; + a0 = 1; + a12 = 8; + a4 = 0; + a18 = 1; + a22 = 0; + a27 = 1; + }else{ + a22 = 0; + a5 = 0; + a18 = 1; + a6 = 0; + a4 = 0; + a0 = 1; + a3 = 4; + a12 = 12; + } + return -1; + } else if(((!(a5==1)&&(!(a6==1)&&(((!(a15==1)&&((((a12==9)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==6)))&&(a3==8))&&(a20==1)))&&!(a27==1))&&!(a0==1))))&&!(a4==1))){ + a5 = 1; + a4 = 1; + a3 = 6; + a6 = 1; + a12 = 10; + a22 = 0; + a15 = 1; + a18 = 1; + return -1; + } else if((((a3==5)&&(((a20==1)&&((((a12==10)&&(((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==1))&&(a27==1))&&(a6==1)))&&(a15==1))&&!(a0==1)))&&!(a5==1)))&&!(a4==1))){ + a3 = 4; + a0 = 1; + a12 = 8; + a22 = 1; + a5 = 1; + a18 = 1; + a4 = 1; + return -1; + } else if(((!(a6==1)&&(!(a5==1)&&((a4==1)&&((a22==1)&&((a12==11)&&((((a18==1)&&(((input==6)&&(a3==8))&&(a27==1)))&&(a20==1))&&!(a0==1)))))))&&!(a15==1))){ + a6 = 1; + a15 = 1; + a5 = 1; + a0 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((((a6==1)&&((a20==1)&&(((((a18==1)&&((((input==5)&&(a0==1))&&(a22==1))&&!(a27==1)))&&(a12==10))&&(a4==1))&&!(a5==1))))&&(a15==1))&&(a3==6))){ + a4 = 0; + a27 = 1; + a22 = 0; + a3 = 7; + return 26; + } else if((!(a5==1)&&((!(a27==1)&&((a3==4)&&((((!(a4==1)&&(!(a6==1)&&((input==2)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))))&&(a0==1))&&(a20==1))&&!(a15==1))))&&(a12==8)))){ + a12 = 11; + a22 = 1; + a5 = 1; + a3 = 6; + a15 = 1; + a18 = 0; + a6 = 1; + return 21; + } else if((((((a12==8)&&((((a20==1)&&(((((a3==5)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1)))))&&(input==6))&&!(a6==1)))&&!(a15==1))&&(a4==1)))&&(a0==1))&&(a27==1))&&(a5==1))){ + a22 = 1; + a4 = 0; + a12 = 9; + a0 = 0; + a18 = 0; + a3 = 4; + return 26; + } else if(((a0==1)&&(((a4==1)&&(((!(a27==1)&&((((input==6)&&(((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1)))))&&(a20==1))&&(a6==1)))&&!(a15==1))&&(a5==1)))&&(a12==10)))){ + a6 = 0; + a3 = 5; + a22 = 0; + a12 = 9; + a18 = 1; + a4 = 0; + a15 = 1; + return 21; + } else if((!(a4==1)&&(((a6==1)&&((a20==1)&&(((a12==9)&&(!(a5==1)&&(((input==5)&&((((a22==1)&&(a18==1))&&(a3==7))||(((a3==6)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))))&&(a0==1))))&&(a27==1))))&&!(a15==1)))){ + if((a22==1)){ + a3 = 8; + a0 = 0; + a6 = 0; + a18 = 1; + a12 = 11; + a15 = 1; + a22 = 1; + }else{ + a22 = 1; + a15 = 1; + a6 = 0; + a12 = 8; + a5 = 1; + a18 = 1; + a3 = 6; + a4 = 1; + a0 = 0; + } + return 26; + } else if((((a12==12)&&(((a22==1)&&((a20==1)&&((((a3==8)&&((((input==3)&&((a18==1)||!(a18==1)))&&(a0==1))&&(a5==1)))&&(a6==1))&&!(a4==1))))&&(a15==1)))&&(a27==1))){ + a12 = 8; + a3 = 4; + a4 = 1; + a18 = 1; + return -1; + } else if((!(a6==1)&&(((a12==9)&&((a3==8)&&((a22==1)&&(((((a18==1)&&(((a4==1)&&(input==6))&&(a15==1)))&&(a20==1))&&(a27==1))&&(a0==1)))))&&(a5==1)))){ + a22 = 0; + a3 = 5; + a15 = 0; + a12 = 12; + a6 = 1; + return 24; + } else if((!(a27==1)&&(!(a4==1)&&((a3==7)&&(((a5==1)&&(!(a6==1)&&(((((input==3)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&(a12==9))&&(a20==1))&&(a0==1))))&&!(a15==1)))))){ + a12 = 8; + a27 = 1; + a15 = 1; + a18 = 1; + a22 = 1; + a6 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if((((((a3==7)&&((!(a27==1)&&((((a0==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==3)))&&(a15==1))&&(a20==1)))&&(a12==11)))&&(a5==1))&&(a6==1))&&!(a4==1))){ + a15 = 0; + a3 = 4; + a12 = 9; + a22 = 1; + a18 = 1; + a5 = 0; + return -1; + } else if(((a20==1)&&((((a0==1)&&((((a15==1)&&((input==2)&&(((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))||(((((a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))))))&&(a12==11))&&(a27==1)))&&!(a4==1))&&!(a5==1)))){ + a3 = 7; + a27 = 0; + a4 = 1; + a6 = 1; + a18 = 1; + a22 = 1; + return 26; + } else if(((((a12==11)&&((a5==1)&&(((a0==1)&&((a15==1)&&(((((a3==8)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8))))&&(input==5))&&!(a4==1))))&&(a20==1))))&&!(a27==1))&&(a6==1))){ + if((a15==1)){ + a5 = 0; + a4 = 1; + a27 = 1; + a0 = 0; + a18 = 1; + a15 = 0; + a3 = 8; + a6 = 0; + a22 = 1; + }else{ + a5 = 0; + a15 = 0; + a22 = 0; + a3 = 6; + a12 = 10; + a18 = 0; + a4 = 1; + } + return -1; + } else if(((!(a6==1)&&(!(a15==1)&&(((((a3==8)&&(!(a22==1)&&((((input==4)&&(a20==1))&&!(a4==1))&&(a12==11))))&&(a27==1))&&(a18==1))&&(a0==1))))&&!(a5==1))){ + a3 = 4; + a22 = 1; + a12 = 8; + a15 = 1; + a4 = 1; + a6 = 1; + a5 = 1; + return -1; + } else if((!(a5==1)&&(((a12==8)&&((a20==1)&&((a27==1)&&((input==6)&&((((!(a4==1)&&((a15==1)&&(!(a22==1)&&!(a18==1))))&&(a3==8))&&!(a6==1))||((((!(a15==1)&&((a18==1)&&(a22==1)))&&(a4==1))&&(a3==4))&&(a6==1)))))))&&!(a0==1)))){ + a0 = 1; + a4 = 1; + a12 = 12; + a22 = 0; + a15 = 1; + a18 = 0; + a3 = 6; + a6 = 1; + a5 = 1; + return -1; + } else if((((a20==1)&&((((!(a15==1)&&(!(a0==1)&&(((a5==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==5)))&&!(a4==1))))&&(a27==1))&&(a3==8))&&(a6==1)))&&(a12==8))){ + a4 = 1; + a12 = 11; + a3 = 5; + a18 = 1; + a6 = 0; + a22 = 0; + return -1; + } else if(((((((((a27==1)&&(((((input==2)&&((a18==1)||!(a18==1)))&&(a4==1))&&(a12==9))&&!(a6==1)))&&!(a22==1))&&!(a5==1))&&(a15==1))&&(a0==1))&&(a3==6))&&(a20==1))){ + a22 = 1; + a12 = 10; + a3 = 7; + a5 = 1; + a15 = 0; + a4 = 0; + a18 = 0; + return 26; + } else if(((!(a22==1)&&(((a12==9)&&((a20==1)&&(((a0==1)&&(!(a5==1)&&((a3==7)&&(((input==1)&&((a18==1)||!(a18==1)))&&!(a6==1)))))&&!(a27==1))))&&(a4==1)))&&!(a15==1))){ + a22 = 1; + a15 = 1; + a6 = 1; + a27 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + return -1; + } else if((((a3==6)&&(!(a22==1)&&((((a15==1)&&(!(a5==1)&&((a12==8)&&(((a20==1)&&((input==4)&&!(a27==1)))&&(a6==1)))))&&(a0==1))&&(a18==1))))&&(a4==1))){ + a15 = 0; + a12 = 11; + a5 = 1; + a22 = 1; + a4 = 0; + return 24; + } else if((((((a12==10)&&((!(a6==1)&&(((a5==1)&&(((input==2)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a15==1)))&&(a0==1)))&&(a3==7)))&&(a20==1))&&!(a4==1))&&(a27==1))){ + a22 = 0; + a18 = 0; + a6 = 1; + return -1; + } else if(((a0==1)&&(!(a5==1)&&((a3==5)&&(((a15==1)&&((a20==1)&&((!(a4==1)&&(((a6==1)&&(!(a27==1)&&(input==3)))&&(a18==1)))&&(a12==8))))&&(a22==1)))))){ + if((a5==1)){ + a27 = 1; + a0 = 0; + a15 = 0; + a18 = 0; + a3 = 8; + a6 = 0; + }else{ + a12 = 10; + a27 = 1; + a3 = 6; + a22 = 0; + a15 = 0; + a5 = 1; + a4 = 1; + } + return 21; + } else if((((a20==1)&&(((a15==1)&&((((a5==1)&&(((!(a27==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a3==8))&&(a12==9)))&&!(a22==1))&&(a4==1)))&&(a0==1)))&&(a6==1))){ + a27 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if((((a15==1)&&((a12==9)&&((a6==1)&&((a20==1)&&(((((a5==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2)))&&(a0==1))&&(a3==7))&&!(a27==1))))))&&!(a4==1))){ + a12 = 12; + a4 = 1; + a22 = 1; + a18 = 1; + a3 = 8; + return 26; + } else if((((a18==1)&&((a12==10)&&(((a3==7)&&((!(a22==1)&&(((!(a0==1)&&((input==4)&&!(a27==1)))&&!(a4==1))&&!(a6==1)))&&(a20==1)))&&!(a15==1))))&&!(a5==1))){ + a5 = 1; + a4 = 1; + a22 = 1; + a6 = 1; + a27 = 1; + a3 = 6; + a12 = 12; + a18 = 0; + return -1; + } else if(((((a18==1)&&(((a22==1)&&((((((a12==12)&&((input==3)&&(a0==1)))&&(a5==1))&&!(a4==1))&&(a20==1))&&!(a15==1)))&&(a6==1)))&&(a27==1))&&(a3==4))){ + a5 = 0; + a15 = 1; + a6 = 0; + a12 = 10; + a22 = 0; + a4 = 1; + a3 = 7; + return -1; + } else if(((((((a20==1)&&(!(a5==1)&&((((!(a22==1)&&((input==2)&&((a18==1)||!(a18==1))))&&!(a4==1))&&(a12==9))&&(a0==1))))&&(a6==1))&&!(a27==1))&&!(a15==1))&&(a3==4))){ + a6 = 0; + a3 = 6; + a27 = 1; + a12 = 10; + a18 = 1; + return 26; + } else if((((a5==1)&&((((a22==1)&&((a18==1)&&((((!(a4==1)&&((a15==1)&&(input==2)))&&(a20==1))&&(a3==5))&&(a27==1))))&&(a0==1))&&(a12==9)))&&(a6==1))){ + a12 = 12; + a15 = 0; + a18 = 0; + a3 = 4; + a6 = 0; + return 26; + } else if(((a27==1)&&((a3==6)&&((((!(a15==1)&&((a22==1)&&((((a20==1)&&((input==4)&&((a18==1)||!(a18==1))))&&(a5==1))&&!(a4==1))))&&(a12==11))&&!(a0==1))&&(a6==1))))){ + a22 = 0; + a15 = 1; + a0 = 1; + a18 = 0; + a6 = 0; + a3 = 7; + return 21; + } else if((!(a0==1)&&((a3==4)&&((((!(a27==1)&&((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a20==1))&&(a4==1))&&(a12==8)))&&(a15==1))&&(a6==1))&&!(a5==1))))){ + if((a15==1)){ + a12 = 9; + a22 = 0; + a18 = 1; + a3 = 5; + }else{ + a3 = 7; + a18 = 0; + a22 = 0; + a27 = 1; + a0 = 1; + a5 = 1; + } + return 21; + } else if(((a20==1)&&(((((!(a5==1)&&((((a4==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==4)))&&(a15==1))&&(a12==10)))&&!(a6==1))&&(a27==1))&&(a0==1))&&(a3==5)))){ + a3 = 6; + a22 = 0; + a6 = 1; + a18 = 1; + return -1; + } else if((((a20==1)&&(((((!(a22==1)&&(((a3==8)&&((!(a18==1)&&(input==6))&&(a12==8)))&&!(a15==1)))&&!(a6==1))&&(a4==1))&&!(a0==1))&&(a5==1)))&&(a27==1))){ + if((a5==1)){ + a12 = 10; + a5 = 0; + a3 = 7; + a18 = 1; + }else{ + a5 = 0; + a27 = 0; + a6 = 1; + a4 = 0; + a0 = 1; + a22 = 1; + a18 = 1; + a3 = 5; + } + return -1; + } else if(((!(a4==1)&&(!(a6==1)&&((((a15==1)&&((a0==1)&&((a20==1)&&((a3==8)&&((input==3)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))))&&!(a5==1))&&!(a27==1))))&&(a12==12))){ + a22 = 0; + a27 = 1; + a3 = 4; + a18 = 1; + a12 = 10; + return -1; + } else if((((a20==1)&&((a27==1)&&(((((!(a6==1)&&((((!(a22==1)&&!(a18==1))&&(a15==1))&&!(a4==1))&&(a3==8)))||((a6==1)&&((a3==4)&&((a4==1)&&(((a18==1)&&(a22==1))&&!(a15==1))))))&&(input==4))&&!(a5==1))&&(a12==10))))&&(a0==1))){ + a5 = 1; + a6 = 1; + a15 = 1; + a4 = 1; + a18 = 0; + a3 = 4; + a22 = 1; + return -1; + } return calculate_output9(input); + } + + int calculate_output9(int input) { + if((((a3==5)&&((a5==1)&&((!(a4==1)&&((a12==12)&&(((a6==1)&&((a20==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==5))))&&!(a0==1))))&&(a27==1))))&&!(a15==1))){ + a3 = 6; + a22 = 1; + a0 = 1; + a15 = 1; + a4 = 1; + a12 = 8; + a18 = 0; + return -1; + } else if(((a5==1)&&(!(a4==1)&&(((a0==1)&&((!(a18==1)&&(((a22==1)&&((a20==1)&&((a12==9)&&(!(a27==1)&&(input==4)))))&&!(a15==1)))&&(a6==1)))&&(a3==6))))){ + a3 = 7; + a12 = 11; + a6 = 0; + a22 = 0; + a18 = 1; + a5 = 0; + return 24; + } else if((((a0==1)&&((a12==9)&&(!(a4==1)&&((!(a15==1)&&((!(a6==1)&&((a22==1)&&((((a18==1)||!(a18==1))&&(input==5))&&(a5==1))))&&(a20==1)))&&(a27==1)))))&&(a3==6))){ + a12 = 8; + a15 = 1; + a3 = 4; + a6 = 1; + a18 = 1; + a4 = 1; + return -1; + } else if((!(a5==1)&&(((a20==1)&&((((!(a15==1)&&(((a3==6)&&((a4==1)&&(((a18==1)||!(a18==1))&&(input==1))))&&(a0==1)))&&(a22==1))&&(a6==1))&&!(a27==1)))&&(a12==10)))){ + a5 = 1; + a18 = 0; + a3 = 7; + return 26; + } else if(((a12==8)&&((a20==1)&&((!(a22==1)&&(((!(a27==1)&&((a18==1)&&((((input==6)&&(a5==1))&&(a4==1))&&!(a15==1))))&&!(a0==1))&&(a6==1)))&&(a3==8))))){ + a5 = 0; + a15 = 1; + a27 = 1; + a12 = 11; + return 21; + } else if(((a5==1)&&(!(a15==1)&&(!(a0==1)&&(((a12==9)&&((a20==1)&&((a22==1)&&((((((a18==1)||!(a18==1))&&(input==1))&&(a4==1))&&(a3==5))&&!(a27==1)))))&&(a6==1)))))){ + a3 = 4; + a0 = 1; + a12 = 8; + a18 = 1; + a15 = 1; + a27 = 1; + a4 = 0; + return -1; + } else if(((a5==1)&&((a12==9)&&(!(a22==1)&&((a3==6)&&(!(a0==1)&&(((!(a27==1)&&(!(a15==1)&&(!(a4==1)&&((input==6)&&((a18==1)||!(a18==1))))))&&(a20==1))&&!(a6==1)))))))){ + a27 = 1; + a12 = 8; + a15 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + a0 = 1; + return -1; + } else if((((a20==1)&&((((a12==9)&&((a22==1)&&(((((!(a6==1)&&(input==3))&&(a3==7))&&(a27==1))&&(a15==1))&&(a5==1))))&&!(a4==1))&&!(a18==1)))&&!(a0==1))){ + a12 = 12; + a0 = 1; + a3 = 5; + a18 = 1; + return 21; + } else if(((a12==8)&&(!(a6==1)&&((a0==1)&&(!(a27==1)&&(((((a20==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==3))&&(a15==1)))&&!(a4==1))&&!(a5==1))&&(a3==6))))))){ + a4 = 1; + a22 = 0; + a18 = 0; + a3 = 7; + return -1; + } else if((((((a27==1)&&((!(a15==1)&&((!(a4==1)&&(((((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==6)))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==3)))&&(a12==8)))&&(a20==1)))&&!(a5==1))&&!(a6==1))&&!(a0==1))){ + a22 = 1; + a3 = 4; + a5 = 1; + a18 = 1; + a15 = 1; + a12 = 12; + a4 = 1; + a6 = 1; + return 26; + } else if(((a5==1)&&((a0==1)&&(((((a27==1)&&((a12==11)&&(((((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1)))&&(input==2))))&&!(a4==1))&&(a20==1))&&!(a15==1))))){ + a3 = 4; + a15 = 1; + a4 = 1; + a18 = 1; + a6 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if((((((a20==1)&&((a12==11)&&(((a27==1)&&((a5==1)&&((((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==6))))&&!(a0==1))))&&!(a4==1))&&!(a15==1))&&!(a6==1))){ + a0 = 1; + a12 = 12; + a15 = 1; + a18 = 0; + a3 = 4; + a22 = 0; + a4 = 1; + return 26; + } else if(((!(a27==1)&&((a15==1)&&(!(a5==1)&&((!(a18==1)&&(!(a0==1)&&(((a20==1)&&(((a6==1)&&(input==6))&&!(a4==1)))&&(a3==6))))&&(a22==1)))))&&(a12==11))){ + a0 = 1; + a12 = 12; + a27 = 1; + a3 = 8; + a15 = 0; + a18 = 1; + a22 = 0; + return -1; + } else if((!(a27==1)&&((a15==1)&&(!(a6==1)&&((a12==12)&&((a0==1)&&(((!(a4==1)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==4)))&&(a5==1))&&(a20==1)))))))){ + a27 = 1; + a18 = 0; + a22 = 0; + a15 = 0; + a12 = 9; + a3 = 8; + a0 = 0; + return -1; + } else if((!(a18==1)&&((a4==1)&&((((((a15==1)&&(((((input==5)&&(a0==1))&&!(a27==1))&&(a6==1))&&(a3==5)))&&(a12==11))&&(a22==1))&&(a20==1))&&(a5==1))))){ + a4 = 0; + a27 = 1; + a22 = 0; + a6 = 0; + a15 = 0; + a18 = 1; + a3 = 6; + a12 = 10; + return 21; + } else if((((a4==1)&&((a12==11)&&(!(a5==1)&&((a20==1)&&(!(a15==1)&&((a22==1)&&((a3==5)&&(!(a6==1)&&((a27==1)&&((input==4)&&((a18==1)||!(a18==1))))))))))))&&!(a0==1))){ + a5 = 1; + a12 = 10; + a0 = 1; + a18 = 0; + a22 = 0; + a15 = 1; + a3 = 4; + return -1; + } else if((!(a5==1)&&((a20==1)&&((((a15==1)&&(((a3==7)&&((!(a6==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==5)))&&(a4==1)))&&(a12==10)))&&!(a27==1))&&(a0==1))))){ + a5 = 1; + a27 = 1; + a6 = 1; + a15 = 0; + a3 = 8; + a18 = 1; + a0 = 0; + a22 = 0; + return -1; + } else if(((((a6==1)&&(!(a0==1)&&(((a12==9)&&(((a15==1)&&((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==2))&&(a3==5)))&&(a20==1)))&&!(a27==1))))&&!(a4==1))&&!(a5==1))){ + if((a15==1)){ + a4 = 1; + a12 = 12; + a18 = 1; + a6 = 0; + a3 = 6; + a22 = 0; + a0 = 1; + a5 = 1; + }else{ + a12 = 8; + a27 = 1; + a22 = 0; + a5 = 1; + a4 = 1; + a0 = 1; + a18 = 1; + } + return 26; + } else if((((a5==1)&&(((a15==1)&&(((a6==1)&&(!(a0==1)&&(((((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==4))&&!(a4==1))))&&!(a27==1)))&&(a20==1)))&&(a12==11))){ + if((a15==1)){ + a3 = 7; + a4 = 1; + a27 = 1; + a22 = 0; + a0 = 1; + a12 = 8; + a18 = 1; + }else{ + a3 = 7; + a6 = 0; + a0 = 1; + a22 = 1; + a12 = 10; + a27 = 1; + a4 = 1; + a18 = 0; + } + return -1; + } else if((!(a4==1)&&((a12==12)&&(!(a6==1)&&((((!(a27==1)&&(((input==5)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5))))&&(a0==1)))&&(a20==1))&&!(a5==1))&&!(a15==1)))))){ + a27 = 1; + a6 = 1; + a4 = 1; + a15 = 1; + a18 = 1; + a5 = 1; + a22 = 0; + a3 = 7; + return 21; + } else if(((((((((!(a5==1)&&((a6==1)&&((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&!(a0==1))&&(a3==6))&&(a27==1))&&!(a4==1))&&(a12==8))&&!(a15==1))&&(a20==1))){ + a12 = 11; + a5 = 1; + a6 = 0; + a22 = 0; + a0 = 1; + a3 = 4; + a18 = 0; + a15 = 1; + return 21; + } else if(((a4==1)&&((a20==1)&&(((a3==6)&&(((((((a27==1)&&((a12==12)&&(input==1)))&&(a5==1))&&!(a22==1))&&(a6==1))&&(a0==1))&&(a15==1)))&&(a18==1))))){ + a6 = 0; + a3 = 7; + a4 = 0; + a12 = 8; + return -1; + } else if((!(a4==1)&&(((a20==1)&&(((a6==1)&&(((a18==1)&&(!(a5==1)&&(!(a22==1)&&((a27==1)&&(!(a0==1)&&(input==2))))))&&(a3==8)))&&(a15==1)))&&(a12==11)))){ + a3 = 5; + a5 = 1; + a18 = 0; + a4 = 1; + a6 = 0; + a22 = 1; + a0 = 1; + return 26; + } else if(((a22==1)&&((((a27==1)&&(((((a6==1)&&((a12==9)&&((a20==1)&&((input==6)&&((a18==1)||!(a18==1))))))&&(a0==1))&&(a15==1))&&(a4==1)))&&(a3==7))&&(a5==1)))){ + a3 = 4; + a15 = 0; + a27 = 0; + a12 = 12; + a18 = 0; + a5 = 0; + return 21; + } else if((!(a0==1)&&(((((a3==4)&&(((a6==1)&&((a5==1)&&((((input==2)&&((a18==1)||!(a18==1)))&&(a4==1))&&(a22==1))))&&(a20==1)))&&(a12==10))&&!(a15==1))&&!(a27==1)))){ + a18 = 1; + a6 = 0; + a4 = 0; + a0 = 1; + a5 = 0; + a27 = 1; + a22 = 0; + return 26; + } else if(((((a5==1)&&((a6==1)&&(((a12==8)&&((a20==1)&&(!(a4==1)&&((input==2)&&((((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5)))||(((a22==1)&&!(a18==1))&&(a3==5)))))))&&!(a0==1))))&&!(a27==1))&&!(a15==1))){ + a18 = 0; + a5 = 0; + a15 = 1; + a4 = 1; + a3 = 7; + a0 = 1; + a12 = 10; + a22 = 0; + return -1; + } else if((!(a15==1)&&(((((a12==8)&&((((!(a4==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==3)))&&(a20==1))&&(a5==1))&&(a3==7)))&&(a6==1))&&(a0==1))&&!(a27==1)))){ + a12 = 10; + a22 = 0; + a4 = 1; + a18 = 1; + a6 = 0; + a5 = 0; + a3 = 4; + return 26; + } else if(((a3==5)&&((a0==1)&&((((a5==1)&&(((a20==1)&&(((a12==10)&&((input==1)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))))&&(a15==1)))&&!(a6==1)))&&(a4==1))&&!(a27==1))))){ + a12 = 12; + a18 = 0; + a15 = 0; + a27 = 1; + a5 = 0; + a3 = 6; + a4 = 0; + a22 = 1; + return 26; + } else if((!(a6==1)&&(!(a4==1)&&((a3==6)&&((a15==1)&&((a20==1)&&(((!(a27==1)&&((a0==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a12==9))))&&(a5==1))&&!(a22==1)))))))){ + a5 = 0; + a6 = 1; + a18 = 0; + a22 = 1; + a3 = 8; + return 24; + } else if(((a3==8)&&((!(a5==1)&&(!(a15==1)&&(((a6==1)&&(((a0==1)&&(((input==2)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a27==1)))&&!(a4==1)))&&(a20==1))))&&(a12==11)))){ + a12 = 10; + a22 = 1; + a4 = 1; + a18 = 0; + a3 = 6; + return -1; + } else if((((a0==1)&&((a12==10)&&(((input==3)&&(((a6==1)&&((((a15==1)&&(((a22==1)&&!(a18==1))&&!(a5==1)))&&(a4==1))&&(a3==4)))||((((a3==8)&&((!(a15==1)&&((a5==1)&&(!(a22==1)&&!(a18==1))))&&!(a4==1)))&&!(a6==1))||((((a4==1)&&((a15==1)&&(!(a5==1)&&((a22==1)&&(a18==1)))))&&(a3==4))&&(a6==1)))))&&(a20==1))))&&(a27==1))){ + a4 = 1; + a15 = 1; + a22 = 1; + a6 = 1; + a3 = 4; + a5 = 1; + a18 = 0; + return 21; + } else if((((((a12==8)&&(((((((a27==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&!(a0==1))&&!(a6==1))&&!(a4==1))&&(a20==1))&&(a3==4)))&&!(a15==1))&&!(a5==1))&&!(a22==1))){ + a0 = 1; + a15 = 1; + a18 = 1; + a12 = 11; + a5 = 1; + a3 = 7; + a6 = 1; + return -1; + } else if(((a20==1)&&((((a4==1)&&((a12==9)&&((((!(a22==1)&&(((a18==1)&&(input==3))&&(a6==1)))&&(a3==8))&&!(a5==1))&&(a15==1))))&&(a0==1))&&!(a27==1)))){ + a12 = 12; + a5 = 1; + a6 = 0; + a3 = 7; + a27 = 1; + return -1; + } else if((!(a27==1)&&(!(a5==1)&&((((a0==1)&&(((a3==7)&&((a4==1)&&(((input==3)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a20==1))))&&!(a6==1)))&&(a12==8))&&(a15==1))))){ + a27 = 1; + a5 = 1; + a18 = 1; + a3 = 4; + a6 = 1; + a22 = 1; + return -1; + } else if((!(a5==1)&&((!(a27==1)&&((a6==1)&&(((a12==11)&&(((((input==2)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a20==1))&&(a15==1))&&(a0==1)))&&(a4==1))))&&(a3==4)))){ + a18 = 1; + a27 = 1; + a5 = 1; + a6 = 0; + a12 = 10; + a3 = 7; + a15 = 0; + a22 = 1; + return -1; + } else if(((((a12==10)&&((a20==1)&&((a3==4)&&((a4==1)&&(!(a15==1)&&(((((input==4)&&(a0==1))&&(a6==1))&&(a5==1))&&(a27==1)))))))&&(a18==1))&&(a22==1))){ + a15 = 1; + a12 = 8; + return -1; + } else if((!(a27==1)&&(!(a4==1)&&((!(a6==1)&&((a5==1)&&((((((input==2)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a20==1))&&(a3==7))&&!(a0==1))&&(a12==8))))&&(a15==1))))){ + if((a6==1)){ + a27 = 1; + a22 = 0; + a4 = 1; + a6 = 1; + a0 = 1; + a18 = 1; + }else{ + a3 = 6; + a4 = 1; + a0 = 1; + a22 = 1; + a5 = 0; + a18 = 0; + } + return -1; + } else if(((a12==9)&&(((((a20==1)&&((a27==1)&&((((a5==1)&&((input==4)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))&&(a0==1))&&(a4==1))))&&!(a6==1))&&(a3==5))&&(a15==1)))){ + a22 = 1; + a18 = 1; + a12 = 8; + a6 = 1; + a3 = 4; + return -1; + } else if(((a6==1)&&(!(a4==1)&&(((a0==1)&&((a3==4)&&((a20==1)&&(((a18==1)&&((a12==8)&&(!(a27==1)&&((a5==1)&&(input==1)))))&&(a22==1)))))&&(a15==1))))){ + a27 = 1; + a4 = 1; + return -1; + } else if(((a12==10)&&((a15==1)&&(!(a27==1)&&((!(a5==1)&&(((((a0==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==4)))&&(a20==1))&&(a6==1))&&(a3==5)))&&(a4==1)))))){ + a18 = 0; + a12 = 11; + a22 = 1; + a3 = 4; + a27 = 1; + return -1; + } else if((!(a18==1)&&((a4==1)&&(((a12==11)&&((!(a27==1)&&(!(a5==1)&&(((a15==1)&&((!(a22==1)&&(input==3))&&(a20==1)))&&(a0==1))))&&(a3==6)))&&!(a6==1))))){ + a27 = 1; + a5 = 1; + a6 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + return -1; + } else if(((!(a6==1)&&(((((a5==1)&&((((input==1)&&((((a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a18==1)&&!(a22==1))))))&&(a0==1))&&(a20==1)))&&!(a15==1))&&!(a27==1))&&(a12==12)))&&(a4==1))){ + a27 = 1; + a22 = 1; + a6 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + a15 = 1; + return -1; + } else if(((a3==6)&&((!(a4==1)&&((a12==11)&&((((!(a27==1)&&(!(a0==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==2))))&&!(a15==1))&&(a20==1))&&!(a5==1))))&&(a6==1)))){ + if((a20==1)){ + a18 = 0; + a3 = 4; + a6 = 0; + a27 = 1; + a12 = 10; + a5 = 1; + a22 = 1; + a4 = 1; + }else{ + a18 = 1; + a4 = 1; + a15 = 1; + a12 = 8; + a22 = 1; + a27 = 1; + a5 = 1; + a3 = 5; + a0 = 1; + } + return 21; + } else if(((!(a5==1)&&((a20==1)&&(!(a4==1)&&((a3==7)&&(((a12==12)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&!(a15==1))&&(a6==1)))&&!(a27==1))))))&&(a0==1))){ + a3 = 5; + a4 = 1; + a18 = 0; + a12 = 10; + a22 = 1; + a15 = 1; + a27 = 1; + a0 = 0; + return -1; + } else if((!(a22==1)&&((((a12==11)&&((((a6==1)&&((!(a0==1)&&((a3==7)&&((a5==1)&&(input==2))))&&!(a4==1)))&&(a18==1))&&(a20==1)))&&!(a27==1))&&(a15==1)))){ + a0 = 1; + a27 = 1; + a12 = 8; + a3 = 5; + a4 = 1; + return 21; + } else if((((a4==1)&&((((((a12==11)&&((((input==5)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a15==1))&&(a3==6)))&&(a5==1))&&(a20==1))&&!(a0==1))&&(a6==1)))&&!(a27==1))){ + if((a6==1)){ + a27 = 1; + a3 = 4; + a12 = 9; + a6 = 0; + a15 = 0; + a5 = 0; + a22 = 0; + a0 = 1; + a18 = 1; + }else{ + a0 = 1; + a27 = 1; + a22 = 1; + a6 = 0; + a12 = 8; + a18 = 0; + a3 = 7; + } + return 21; + } else if(((a3==7)&&((a15==1)&&(!(a6==1)&&((a22==1)&&(((((a4==1)&&(((a12==11)&&((input==4)&&((a18==1)||!(a18==1))))&&!(a27==1)))&&(a0==1))&&(a20==1))&&(a5==1))))))){ + a15 = 0; + a18 = 0; + a22 = 0; + a4 = 0; + return 26; + } else if((((a27==1)&&((a3==6)&&(((((a5==1)&&((a4==1)&&((((input==1)&&!(a18==1))&&!(a6==1))&&!(a0==1))))&&(a12==12))&&(a15==1))&&(a20==1))))&&(a22==1))){ + a0 = 1; + a12 = 10; + a5 = 0; + a4 = 0; + a22 = 0; + a18 = 1; + a3 = 4; + return 26; + } else if(((((a3==7)&&((a12==9)&&(((a0==1)&&((((a15==1)&&(((a4==1)&&(input==2))&&(a20==1)))&&!(a22==1))&&(a6==1)))&&!(a18==1))))&&(a5==1))&&!(a27==1))){ + a12 = 11; + a4 = 0; + a22 = 1; + a18 = 1; + a3 = 6; + a27 = 1; + return -1; + } else if(((((((((((((!(a22==1)&&!(a18==1))&&(a4==1))&&(a3==8))&&!(a6==1))||((a6==1)&&((((a22==1)&&(a18==1))&&!(a4==1))&&(a3==4))))&&(input==4))&&(a12==9))&&!(a0==1))&&(a5==1))&&!(a27==1))&&(a15==1))&&(a20==1))){ + a18 = 0; + a6 = 0; + a22 = 1; + a3 = 7; + a4 = 1; + return -1; + } else if(((((a0==1)&&((((((input==2)&&((((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1))||(((a6==1)&&(((a18==1)&&!(a22==1))&&(a3==8)))||((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8))))))&&(a12==10))&&(a4==1))&&!(a5==1))&&(a20==1)))&&(a27==1))&&(a15==1))){ + a18 = 1; + a3 = 6; + a5 = 1; + a22 = 0; + a4 = 0; + a15 = 0; + a6 = 0; + return -1; + } else if((((a0==1)&&(((((a3==6)&&((((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==3))&&(a12==12))&&!(a4==1))&&(a20==1)))&&(a27==1))&&!(a6==1))&&(a15==1)))&&(a5==1))){ + a3 = 5; + a12 = 11; + a22 = 1; + a18 = 0; + a5 = 0; + a4 = 1; + return 21; + } else if((!(a15==1)&&(!(a4==1)&&((a5==1)&&(!(a6==1)&&(((a12==11)&&(!(a0==1)&&((a20==1)&&(((input==4)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&!(a27==1)))))&&(a3==6))))))){ + a4 = 1; + a22 = 0; + a15 = 1; + a3 = 8; + a18 = 1; + a27 = 1; + a12 = 9; + a6 = 1; + a0 = 1; + return 21; + } else if(((a20==1)&&((a12==12)&&(((a4==1)&&((!(a0==1)&&(!(a15==1)&&((((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1)))&&(input==3))))&&(a27==1)))&&!(a5==1))))){ + if((a27==1)){ + a4 = 0; + a18 = 0; + a6 = 1; + a22 = 1; + a0 = 1; + a3 = 4; + a27 = 0; + }else{ + a18 = 0; + a3 = 6; + a6 = 1; + a22 = 0; + a12 = 10; + a4 = 0; + } + return -1; + } else if((!(a6==1)&&(((((a0==1)&&((a4==1)&&(!(a22==1)&&((!(a5==1)&&(((input==4)&&(a3==8))&&!(a18==1)))&&(a12==8)))))&&(a27==1))&&(a20==1))&&(a15==1)))){ + if((a20==1)){ + a0 = 0; + a22 = 1; + a15 = 0; + a6 = 1; + }else{ + a12 = 10; + a5 = 1; + } + return 24; + } else if((!(a4==1)&&((!(a5==1)&&((((((a15==1)&&(((input==5)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&(a27==1)))&&(a20==1))&&(a3==6))&&(a6==1))&&(a0==1)))&&(a12==11)))){ + a3 = 7; + a18 = 1; + a22 = 1; + a6 = 0; + a4 = 1; + return 21; + } else if((((!(a27==1)&&((!(a0==1)&&(((((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==4))&&(a12==11))&&(a3==5))&&(a6==1))&&!(a4==1)))&&(a5==1)))&&(a15==1))&&(a20==1))){ + if((a12==11)){ + a27 = 1; + a22 = 0; + a0 = 1; + a4 = 1; + a3 = 6; + a18 = 0; + a6 = 0; + }else{ + a18 = 1; + a6 = 0; + a4 = 1; + a12 = 8; + a3 = 6; + a22 = 0; + a27 = 1; + a0 = 1; + } + return -1; + } else if(((a12==11)&&((!(a15==1)&&(((a0==1)&&(!(a6==1)&&((((input==2)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1)))))&&(a20==1))&&!(a4==1))))&&!(a5==1)))&&(a27==1)))){ + a18 = 1; + a22 = 1; + a3 = 4; + a27 = 0; + return 21; + } else if(((!(a18==1)&&(!(a5==1)&&((a0==1)&&((!(a4==1)&&(((a15==1)&&(((a12==12)&&((input==3)&&(a3==4)))&&(a27==1)))&&(a22==1)))&&(a6==1)))))&&(a20==1))){ + a3 = 7; + a12 = 11; + a22 = 0; + a4 = 1; + a18 = 1; + a15 = 0; + return -1; + } else if((((a0==1)&&((a4==1)&&(((a15==1)&&(((a20==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==2))&&(a12==9)))&&!(a27==1)))&&(a5==1))))&&!(a6==1))){ + a12 = 11; + a5 = 0; + a27 = 1; + a18 = 0; + a15 = 0; + a4 = 0; + a3 = 5; + a22 = 1; + return 21; + } else if(((!(a27==1)&&(((((a5==1)&&((a6==1)&&((a15==1)&&((!(a18==1)&&((input==6)&&(a20==1)))&&!(a4==1)))))&&!(a0==1))&&(a12==8))&&(a3==4)))&&(a22==1))){ + a22 = 0; + a4 = 1; + a27 = 1; + a0 = 1; + a18 = 1; + return 26; + } else if((((!(a6==1)&&(((a27==1)&&((((!(a15==1)&&(((a3==4)&&(input==5))&&!(a22==1)))&&(a20==1))&&!(a5==1))&&(a0==1)))&&(a12==10)))&&(a18==1))&&!(a4==1))){ + a22 = 1; + a4 = 1; + a5 = 1; + a3 = 6; + a6 = 1; + a15 = 1; + a12 = 11; + return 21; + } else if(((a22==1)&&((a20==1)&&((((a4==1)&&((((((!(a27==1)&&(input==2))&&(a12==8))&&(a6==1))&&(a18==1))&&(a0==1))&&!(a15==1)))&&(a3==8))&&!(a5==1))))){ + a6 = 0; + a27 = 1; + a22 = 0; + a3 = 7; + a0 = 0; + a18 = 0; + a5 = 1; + a12 = 10; + return 26; + } else if(((a20==1)&&((!(a4==1)&&(((((((a27==1)&&((a6==1)&&((input==1)&&((a18==1)||!(a18==1)))))&&(a12==10))&&(a22==1))&&(a3==6))&&(a5==1))&&(a0==1)))&&!(a15==1)))){ + a0 = 0; + a5 = 0; + a18 = 1; + a4 = 1; + a3 = 5; + a15 = 1; + a22 = 0; + return -1; + } else if(((a22==1)&&(((a12==10)&&((((a20==1)&&(((a15==1)&&((((input==4)&&(a0==1))&&!(a5==1))&&(a3==6)))&&(a27==1)))&&!(a6==1))&&(a18==1)))&&(a4==1)))){ + if((a3==4)){ + a5 = 1; + a4 = 0; + a0 = 0; + a12 = 9; + a22 = 0; + a3 = 4; + }else{ + a18 = 0; + a6 = 1; + a12 = 8; + a0 = 0; + a4 = 0; + } + return 26; + } else if(((a22==1)&&((a5==1)&&((((a20==1)&&((a15==1)&&(((((a6==1)&&((a0==1)&&(input==4)))&&(a12==11))&&!(a4==1))&&(a3==7))))&&!(a27==1))&&(a18==1))))){ + a4 = 1; + a27 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((!(a0==1)&&(((!(a4==1)&&((a20==1)&&((a12==12)&&(((a5==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==4)))&&(a3==5)))))&&(a15==1))&&(a27==1)))&&(a6==1))){ + a12 = 10; + a27 = 0; + a18 = 1; + a6 = 0; + a22 = 1; + a15 = 0; + a0 = 1; + return -1; + } else if((!(a5==1)&&(((!(a22==1)&&(((((a20==1)&&((a3==8)&&((a12==8)&&(((a18==1)||!(a18==1))&&(input==6)))))&&(a6==1))&&(a15==1))&&(a4==1)))&&(a0==1))&&(a27==1)))){ + a18 = 1; + a15 = 0; + a4 = 0; + a12 = 9; + a3 = 7; + a22 = 1; + return 24; + } else if(((!(a0==1)&&((a4==1)&&((a15==1)&&(((!(a27==1)&&((a5==1)&&((input==3)&&(((a3==6)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5)))))))&&(a12==10))&&!(a6==1)))))&&(a20==1))){ + a22 = 0; + a12 = 9; + a18 = 0; + a4 = 0; + a3 = 5; + return 26; + } else if((((a5==1)&&((((((a12==9)&&((((input==5)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&(a4==1))&&(a20==1)))&&(a15==1))&&!(a0==1))&&!(a6==1))&&(a27==1)))&&(a3==6))){ + a12 = 11; + a3 = 8; + a15 = 0; + a0 = 1; + a4 = 0; + a18 = 1; + a22 = 1; + a27 = 0; + a6 = 1; + return 21; + } else if(((a4==1)&&(((!(a15==1)&&((a12==8)&&((!(a27==1)&&(((((a3==7)&&((a18==1)&&(a22==1)))||(((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a18==1)&&!(a22==1)))))&&(input==4))&&(a20==1)))&&!(a0==1))))&&(a5==1))&&(a6==1)))){ + a18 = 0; + a3 = 8; + a15 = 1; + a27 = 1; + a22 = 0; + a0 = 1; + return 21; + } else if((((a12==8)&&((((a20==1)&&((!(a4==1)&&(!(a0==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))||((a3==7)&&(!(a18==1)&&(a22==1))))&&(input==4))))&&(a5==1)))&&(a27==1))&&!(a15==1)))&&!(a6==1))){ + a0 = 1; + a18 = 1; + a22 = 1; + a3 = 7; + a6 = 1; + a12 = 12; + return 26; + } else if((!(a4==1)&&((!(a15==1)&&((((((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==1))&&(a6==1))&&(a5==1))&&(a20==1))&&!(a27==1))&&(a3==4))&&(a12==8)))&&(a0==1)))){ + a18 = 0; + a27 = 1; + a4 = 1; + a12 = 11; + a5 = 0; + a22 = 1; + a15 = 1; + return 26; + } else if((!(a4==1)&&(!(a5==1)&&(((a6==1)&&((a12==11)&&(((a20==1)&&((a3==8)&&(!(a27==1)&&((input==3)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))))&&(a0==1))))&&(a15==1))))){ + a18 = 1; + a5 = 1; + a3 = 6; + a15 = 0; + a4 = 1; + a12 = 10; + a22 = 0; + return -1; + } else if(((((a12==11)&&(((a20==1)&&((a3==4)&&((!(a22==1)&&(((a0==1)&&((input==6)&&!(a4==1)))&&(a27==1)))&&!(a18==1))))&&!(a15==1)))&&!(a5==1))&&(a6==1))){ + if((a3==7)){ + a4 = 1; + a12 = 8; + a3 = 6; + a0 = 0; + }else{ + a27 = 0; + a4 = 1; + a3 = 7; + a6 = 0; + } + return 26; + } else if((!(a0==1)&&((a20==1)&&((a27==1)&&(((((((!(a15==1)&&((!(a18==1)&&!(a22==1))&&!(a5==1)))&&(a12==9))&&!(a4==1))&&(a3==8))&&!(a6==1))||((a6==1)&&((a3==4)&&((a4==1)&&(((((a18==1)&&(a22==1))&&(a5==1))&&(a15==1))&&(a12==10))))))&&(input==1)))))){ + a0 = 1; + a22 = 1; + a3 = 4; + a4 = 1; + a18 = 1; + a15 = 1; + a12 = 8; + a6 = 1; + a5 = 1; + return -1; + } else if(((a20==1)&&(((!(a6==1)&&((a12==12)&&((a4==1)&&((a22==1)&&(!(a15==1)&&((a27==1)&&(((input==1)&&!(a5==1))&&(a3==4))))))))&&(a0==1))&&(a18==1)))){ + a12 = 10; + a6 = 1; + a15 = 1; + a5 = 1; + a22 = 0; + a4 = 0; + a3 = 7; + return -1; + } else if((((a4==1)&&(!(a0==1)&&((a15==1)&&((a18==1)&&((a20==1)&&(!(a5==1)&&((a27==1)&&(!(a6==1)&&(((a22==1)&&(input==1))&&(a3==5))))))))))&&(a12==8))){ + a3 = 4; + a6 = 1; + a0 = 1; + a5 = 1; + return -1; + } else if(((((a5==1)&&((((input==3)&&((((a3==4)&&((((a18==1)&&(a22==1))&&!(a15==1))&&(a4==1)))&&(a6==1))||((((a3==8)&&(!(a4==1)&&((a15==1)&&((a18==1)&&!(a22==1)))))&&!(a6==1))||(((a3==8)&&(((!(a22==1)&&!(a18==1))&&(a15==1))&&!(a4==1)))&&!(a6==1)))))&&(a0==1))&&(a20==1)))&&(a12==11))&&!(a27==1))){ + a4 = 1; + a6 = 0; + a5 = 0; + a0 = 0; + a27 = 1; + a18 = 1; + a12 = 9; + a22 = 1; + a3 = 7; + a15 = 1; + return 21; + } else if(((!(a5==1)&&(((((((((((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1)))||((((a22==1)&&!(a18==1))&&(a3==4))&&!(a6==1)))&&(input==6))&&!(a27==1))&&(a12==9))&&(a4==1))&&(a15==1))&&(a20==1)))&&!(a0==1))){ + a22 = 0; + a4 = 0; + a27 = 1; + a0 = 1; + a12 = 8; + a6 = 1; + a3 = 5; + a5 = 1; + a18 = 0; + return 26; + } else if((!(a4==1)&&((((a3==8)&&(((a20==1)&&(((!(a0==1)&&(((input==2)&&!(a6==1))&&!(a18==1)))&&!(a5==1))&&!(a27==1)))&&!(a22==1)))&&(a12==10))&&(a15==1)))){ + a3 = 4; + a12 = 11; + return 24; + } else if((((a27==1)&&((!(a15==1)&&((a6==1)&&(!(a22==1)&&(!(a0==1)&&(((a18==1)&&(((a4==1)&&(input==5))&&(a12==8)))&&(a20==1))))))&&(a5==1)))&&(a3==4))){ + a5 = 0; + a22 = 1; + a15 = 1; + a12 = 12; + a18 = 0; + a3 = 6; + a0 = 1; + return 26; + } else if(((a20==1)&&(!(a15==1)&&((a5==1)&&((a6==1)&&((a12==11)&&((!(a0==1)&&((((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a3==6))&&!(a27==1)))&&(a4==1)))))))){ + a18 = 0; + a27 = 1; + a0 = 1; + a15 = 1; + a12 = 8; + a3 = 5; + a22 = 0; + return 26; + } else if(((((((((!(a4==1)&&(((a0==1)&&((a20==1)&&(input==1)))&&(a3==6)))&&(a5==1))&&!(a18==1))&&(a12==9))&&(a22==1))&&!(a27==1))&&!(a15==1))&&(a6==1))){ + a3 = 4; + a15 = 1; + a12 = 8; + return 26; + } else if((((!(a15==1)&&((((a6==1)&&((((input==4)&&(((a3==8)&&((a22==1)&&!(a18==1)))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a22==1)&&(a18==1))))))&&(a5==1))&&(a20==1)))&&!(a4==1))&&(a12==12)))&&(a0==1))&&!(a27==1))){ + a22 = 1; + a27 = 1; + a3 = 4; + a4 = 1; + a15 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if(((!(a15==1)&&((a12==9)&&(((a5==1)&&((((a22==1)&&((a0==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a20==1))))&&(a27==1))&&!(a6==1)))&&!(a4==1))))&&(a3==6))){ + a3 = 4; + a15 = 1; + a18 = 1; + a4 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if((((!(a27==1)&&(((((a6==1)&&((a20==1)&&(((a22==1)&&((input==1)&&((a18==1)||!(a18==1))))&&!(a15==1))))&&(a12==10))&&(a3==4))&&(a4==1)))&&(a0==1))&&!(a5==1))){ + a5 = 1; + a15 = 1; + a27 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if(((((a4==1)&&((a0==1)&&((a27==1)&&((((a12==12)&&((input==2)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))||((a3==8)&&((a22==1)&&!(a18==1))))))&&(a5==1))&&(a20==1)))))&&!(a6==1))&&(a15==1))){ + a27 = 0; + a3 = 4; + a18 = 0; + a22 = 1; + return 21; + } else if(((a20==1)&&(((!(a4==1)&&((a27==1)&&((!(a18==1)&&(!(a22==1)&&((((input==2)&&(a0==1))&&(a15==1))&&(a6==1))))&&(a12==10))))&&(a3==4))&&(a5==1)))){ + a18 = 1; + a22 = 1; + a4 = 1; + a12 = 8; + return -1; + } else if((((a22==1)&&((a3==6)&&(((((a4==1)&&(((!(a27==1)&&((input==2)&&(a5==1)))&&!(a0==1))&&(a12==9)))&&(a20==1))&&(a6==1))&&!(a18==1))))&&(a15==1))){ + a22 = 0; + a27 = 1; + a0 = 1; + a12 = 8; + a6 = 0; + return 26; + } else if((!(a6==1)&&((a3==6)&&(((((!(a4==1)&&((a5==1)&&((((input==5)&&(a27==1))&&(a18==1))&&!(a0==1))))&&(a22==1))&&(a20==1))&&(a12==12))&&(a15==1))))){ + a22 = 0; + a0 = 1; + a18 = 0; + a6 = 1; + a3 = 7; + return 21; + } else if(((((a27==1)&&(((a12==11)&&(((((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==4))&&(a3==4))&&!(a15==1))&&(a5==1))&&!(a6==1)))&&(a20==1)))&&!(a0==1))&&!(a4==1))){ + a4 = 1; + a15 = 1; + a22 = 0; + a12 = 10; + a18 = 0; + a0 = 1; + a3 = 5; + return -1; + } else if((!(a15==1)&&(((((a27==1)&&(((a3==6)&&(((((input==1)&&((a18==1)||!(a18==1)))&&(a12==8))&&!(a6==1))&&(a20==1)))&&(a0==1)))&&!(a5==1))&&(a4==1))&&(a22==1)))){ + a15 = 1; + a5 = 1; + a6 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((a3==8)&&((!(a15==1)&&((a6==1)&&(((a0==1)&&((((a20==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&!(a4==1)))&&!(a22==1))&&(a12==9)))&&(a5==1))))&&!(a27==1)))){ + if((a5==1)){ + a18 = 0; + a12 = 12; + a22 = 1; + a5 = 0; + }else{ + a3 = 5; + a27 = 1; + a4 = 1; + a18 = 1; + a12 = 10; + } + return 21; + } else if(((!(a5==1)&&((a20==1)&&((((a15==1)&&(((a12==8)&&(((input==3)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a0==1)))&&!(a6==1)))&&(a27==1))&&(a3==7))))&&!(a4==1))){ + a3 = 4; + a4 = 1; + a0 = 1; + a5 = 1; + a6 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if((((a20==1)&&(((((a15==1)&&((a0==1)&&((a27==1)&&((a4==1)&&(((a3==5)&&(input==2))&&(a12==12))))))&&(a22==1))&&(a18==1))&&(a6==1)))&&!(a5==1))){ + a5 = 1; + a4 = 0; + a22 = 0; + a6 = 0; + a15 = 0; + a27 = 0; + a3 = 6; + return 26; + } else if(((a20==1)&&((a3==8)&&((a5==1)&&((a12==8)&&(((a6==1)&&((!(a27==1)&&((a0==1)&&((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&!(a15==1)))&&(a4==1))))))){ + a5 = 0; + a4 = 0; + a22 = 1; + a18 = 1; + a3 = 4; + return 26; + } else if(((!(a27==1)&&(((a0==1)&&((((!(a5==1)&&((a18==1)&&(((a22==1)&&(input==5))&&(a6==1))))&&!(a15==1))&&(a20==1))&&(a12==11)))&&(a4==1)))&&(a3==7))){ + a4 = 0; + a27 = 1; + a3 = 8; + a15 = 1; + a0 = 0; + a5 = 1; + a12 = 12; + a6 = 0; + a22 = 0; + return 21; + } else if(((a20==1)&&(!(a6==1)&&((!(a4==1)&&((((!(a0==1)&&(!(a18==1)&&(((input==1)&&(a12==10))&&(a27==1))))&&(a3==7))&&(a15==1))&&!(a22==1)))&&(a5==1))))){ + a6 = 1; + a15 = 0; + a22 = 1; + a27 = 0; + a0 = 1; + a18 = 1; + return 21; + } else if((((((a15==1)&&(((a3==5)&&(((a20==1)&&(!(a6==1)&&((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&(a5==1)))&&!(a4==1)))&&(a27==1))&&!(a0==1))&&(a12==8))){ + a0 = 1; + a3 = 4; + a18 = 0; + a12 = 10; + a5 = 0; + a22 = 0; + return 21; + } else if(((!(a22==1)&&(((((a27==1)&&((((a12==12)&&(!(a0==1)&&((a3==7)&&(input==2))))&&!(a6==1))&&(a15==1)))&&(a5==1))&&(a18==1))&&(a20==1)))&&!(a4==1))){ + a12 = 8; + a6 = 1; + a0 = 1; + a4 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if((!(a5==1)&&((a6==1)&&(((a27==1)&&(((a4==1)&&(((!(a0==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==3)))&&(a12==8))&&(a20==1)))&&!(a15==1)))&&(a3==8))))){ + a22 = 0; + a18 = 1; + a0 = 1; + a6 = 0; + a4 = 0; + a15 = 1; + a3 = 5; + a5 = 1; + return -1; + } else if(((a27==1)&&(((a0==1)&&(((a20==1)&&(((input==4)&&((((a3==4)&&(((a22==1)&&!(a18==1))&&!(a4==1)))&&(a6==1))||((((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1)))&&!(a6==1))||((a6==1)&&((!(a4==1)&&((a22==1)&&(a18==1)))&&(a3==4))))))&&(a12==9)))&&!(a5==1)))&&!(a15==1)))){ + if((a18==1)){ + a0 = 0; + a12 = 8; + a5 = 1; + a15 = 1; + a22 = 1; + a3 = 5; + a18 = 1; + a6 = 0; + a4 = 0; + }else{ + a0 = 0; + a4 = 0; + a6 = 0; + a15 = 1; + a18 = 1; + a22 = 1; + a12 = 8; + a3 = 8; + } + return 26; + } else if(((a20==1)&&((a27==1)&&(!(a15==1)&&(!(a0==1)&&((a5==1)&&((((!(a6==1)&&(((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8)))||(((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))&&(a6==1)))&&(input==3))&&(a12==12)))))))){ + a15 = 1; + a0 = 1; + a12 = 8; + a3 = 6; + a22 = 0; + a4 = 1; + a18 = 0; + a6 = 0; + return 21; + } else if((!(a5==1)&&((a20==1)&&((((a12==8)&&(((((a3==6)&&((input==2)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))))&&!(a6==1))&&(a0==1))&&!(a27==1)))&&(a4==1))&&!(a15==1))))){ + a4 = 0; + a18 = 0; + a6 = 1; + a12 = 11; + a3 = 8; + a22 = 1; + a27 = 1; + a5 = 1; + return 21; + } else if(((a0==1)&&((((a12==8)&&(((a22==1)&&(((a4==1)&&(((a27==1)&&((input==5)&&(a6==1)))&&!(a18==1)))&&(a20==1)))&&!(a15==1)))&&(a5==1))&&(a3==5)))){ + a18 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if((((((((!(a0==1)&&((((input==1)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a4==1))&&(a12==8)))&&(a27==1))&&(a6==1))&&!(a5==1))&&(a15==1))&&(a3==7))&&(a20==1))){ + a5 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + a0 = 1; + return -1; + } else if(((a20==1)&&(!(a4==1)&&((a12==8)&&((!(a0==1)&&((((a6==1)&&((input==6)&&((((a22==1)&&(a18==1))&&(a3==6))||(((a3==5)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==5))))))&&!(a15==1))&&(a27==1)))&&!(a5==1)))))){ + a5 = 1; + a4 = 1; + a18 = 1; + a0 = 1; + a22 = 0; + a3 = 7; + a15 = 1; + return -1; + } else if(((a12==11)&&(!(a4==1)&&((a20==1)&&(!(a15==1)&&((a6==1)&&(((a3==5)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==4))&&!(a0==1))&&!(a27==1)))&&(a5==1)))))))){ + a3 = 7; + a27 = 1; + a22 = 1; + a18 = 0; + a4 = 1; + a12 = 8; + a0 = 1; + a15 = 1; + return -1; + } else if((!(a15==1)&&(((a22==1)&&((a3==8)&&(((!(a4==1)&&((a20==1)&&((a0==1)&&((a5==1)&&((a12==8)&&(input==5))))))&&!(a27==1))&&(a6==1))))&&!(a18==1)))){ + a4 = 1; + a3 = 6; + a27 = 1; + a12 = 10; + a5 = 0; + return -1; + } else if(((a20==1)&&(((a3==4)&&(!(a27==1)&&(((a6==1)&&(((a12==10)&&((((input==3)&&(a15==1))&&!(a0==1))&&(a4==1)))&&(a18==1)))&&!(a5==1))))&&!(a22==1)))){ + if((a22==1)){ + a18 = 0; + a12 = 12; + a5 = 1; + a22 = 1; + }else{ + a3 = 6; + a27 = 1; + a22 = 1; + a5 = 1; + a0 = 1; + a4 = 0; + a12 = 8; + a18 = 0; + } + return -1; + } else if(((((a27==1)&&(!(a4==1)&&(((a3==8)&&((a15==1)&&((a5==1)&&((a12==11)&&((((a18==1)||!(a18==1))&&(input==5))&&!(a0==1))))))&&!(a6==1))))&&(a20==1))&&(a22==1))){ + a22 = 0; + a6 = 1; + a3 = 7; + a0 = 1; + a18 = 1; + a4 = 1; + a15 = 0; + return -1; + } else if((!(a22==1)&&((!(a4==1)&&((a18==1)&&(((a3==7)&&(((a15==1)&&((a6==1)&&(((input==6)&&(a0==1))&&(a12==10))))&&(a27==1)))&&!(a5==1))))&&(a20==1)))){ + a5 = 1; + a22 = 1; + a4 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if((!(a22==1)&&((a20==1)&&(((((a12==11)&&(!(a0==1)&&(!(a6==1)&&((a3==8)&&((((a18==1)||!(a18==1))&&(input==4))&&!(a15==1))))))&&(a4==1))&&(a5==1))&&(a27==1))))){ + a18 = 1; + a6 = 1; + a12 = 8; + a0 = 1; + a3 = 4; + a22 = 1; + a15 = 1; + return -1; + } else if(((((a20==1)&&(((((a12==12)&&((!(a15==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1)))&&(a3==5)))&&(a4==1))&&(a5==1))&&!(a0==1)))&&(a27==1))&&!(a6==1))){ + if((a27==1)){ + a0 = 1; + a6 = 1; + a18 = 1; + a15 = 1; + a3 = 8; + a22 = 1; + a12 = 8; + }else{ + a15 = 1; + a0 = 1; + a22 = 0; + a27 = 0; + a3 = 6; + a18 = 1; + a5 = 0; + a4 = 0; + a12 = 9; + } + return 21; + } else if((((a15==1)&&(((a27==1)&&(((!(a22==1)&&((((((a18==1)||!(a18==1))&&(input==1))&&(a4==1))&&(a5==1))&&(a3==8)))&&(a20==1))&&(a12==12)))&&(a6==1)))&&(a0==1))){ + a18 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + return -1; + } else if((!(a15==1)&&((a6==1)&&(((((a20==1)&&((((input==6)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a18==1)&&(a22==1)))))&&!(a4==1))&&!(a5==1)))&&(a0==1))&&!(a27==1))&&(a12==9))))){ + if((a12==11)){ + a3 = 8; + a6 = 0; + a18 = 0; + a22 = 0; + a12 = 12; + }else{ + a18 = 0; + a3 = 8; + a12 = 12; + a5 = 1; + a22 = 1; + } + return 26; + } else if(((((!(a5==1)&&(((((a0==1)&&((((!(a18==1)&&(a22==1))&&(a3==8))||(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8))))&&(input==6)))&&(a12==9))&&(a4==1))&&(a20==1)))&&!(a15==1))&&(a27==1))&&(a6==1))){ + a18 = 1; + a12 = 12; + a27 = 0; + a22 = 0; + a4 = 0; + a3 = 7; + return 21; + } else if(((a0==1)&&(!(a18==1)&&((a12==9)&&(!(a4==1)&&((((a27==1)&&((!(a5==1)&&(((a22==1)&&(input==4))&&(a20==1)))&&(a15==1)))&&(a3==6))&&!(a6==1))))))){ + a4 = 1; + a27 = 0; + a12 = 8; + a15 = 0; + a22 = 0; + a6 = 1; + a18 = 1; + return 26; + } else if((!(a27==1)&&(((a6==1)&&(((a12==9)&&((!(a15==1)&&(((input==1)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7))))&&(a4==1)))&&(a0==1)))&&(a20==1)))&&(a5==1)))){ + a22 = 1; + a27 = 1; + a3 = 4; + a6 = 0; + a12 = 12; + a18 = 1; + return -1; + } else if((((((a0==1)&&((a5==1)&&((((a6==1)&&((input==6)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))))&&!(a15==1))&&!(a4==1))))&&(a20==1))&&(a12==11))&&!(a27==1))){ + a12 = 8; + a22 = 1; + a4 = 1; + a18 = 1; + a27 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if(((a12==8)&&(!(a22==1)&&((a3==7)&&((!(a6==1)&&((!(a15==1)&&(((((input==4)&&(a5==1))&&!(a18==1))&&(a20==1))&&(a0==1)))&&(a4==1)))&&(a27==1)))))){ + a3 = 4; + a18 = 1; + a15 = 1; + a22 = 1; + a6 = 1; + return -1; + } else if(((a15==1)&&((((!(a22==1)&&(((((a3==8)&&((a20==1)&&((input==5)&&(a18==1))))&&(a6==1))&&(a4==1))&&(a12==11)))&&!(a27==1))&&!(a0==1))&&!(a5==1)))){ + a18 = 0; + a22 = 1; + a4 = 0; + a6 = 0; + a12 = 12; + a0 = 1; + a3 = 5; + a15 = 0; + return 21; + } else if((!(a18==1)&&((((((!(a0==1)&&((!(a4==1)&&(((input==1)&&!(a22==1))&&(a5==1)))&&!(a6==1)))&&(a20==1))&&(a27==1))&&(a3==5))&&(a12==12))&&(a15==1)))){ + a18 = 1; + a22 = 1; + a12 = 8; + a3 = 6; + a0 = 1; + return 21; + } else if(((a12==8)&&(((!(a5==1)&&((!(a0==1)&&((a15==1)&&((!(a27==1)&&((a4==1)&&((input==3)&&(a20==1))))&&!(a6==1))))&&(a3==5)))&&(a22==1))&&(a18==1)))){ + a18 = 0; + a3 = 4; + a4 = 0; + a12 = 10; + return -1; + } else if((!(a15==1)&&(((((a12==9)&&((a20==1)&&(((((input==3)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a0==1))&&(a27==1))&&(a3==4))))&&!(a6==1))&&!(a4==1))&&!(a5==1)))){ + if((a18==1)){ + a3 = 8; + a4 = 1; + a12 = 12; + a27 = 0; + a18 = 1; + a15 = 1; + a22 = 0; + }else{ + a3 = 6; + a6 = 1; + a27 = 0; + a22 = 0; + a4 = 1; + a18 = 0; + a5 = 1; + } + return 24; + } else if(((!(a15==1)&&((((((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==3))&&(a12==9))&&(a5==1))&&(a3==8))&&(a20==1))&&(a6==1))&&!(a4==1))&&!(a27==1)))&&!(a0==1))){ + if((a12==12)){ + a27 = 1; + a4 = 1; + a6 = 0; + a18 = 1; + a12 = 12; + a3 = 6; + a22 = 1; + }else{ + a0 = 1; + a12 = 8; + a15 = 1; + a27 = 1; + a18 = 1; + a22 = 1; + } + return 21; + } else if((((((!(a6==1)&&(((a12==9)&&((a0==1)&&((input==3)&&(((!(a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))))))&&!(a5==1)))&&(a20==1))&&!(a4==1))&&(a27==1))&&!(a15==1))){ + a6 = 1; + a5 = 1; + a27 = 0; + a22 = 0; + a3 = 7; + a18 = 1; + return 26; + } else if((((a15==1)&&(((!(a5==1)&&(((a4==1)&&(!(a27==1)&&(!(a22==1)&&((a20==1)&&((input==3)&&!(a0==1))))))&&(a12==11)))&&!(a18==1))&&(a3==5)))&&(a6==1))){ + a27 = 1; + a15 = 0; + a3 = 7; + a18 = 1; + a0 = 1; + a12 = 9; + return -1; + } else if(((((a3==8)&&((!(a4==1)&&(((!(a0==1)&&((a22==1)&&((a18==1)&&((a27==1)&&(input==2)))))&&(a20==1))&&(a15==1)))&&(a12==10)))&&!(a5==1))&&!(a6==1))){ + a0 = 1; + a12 = 12; + a5 = 1; + a15 = 0; + a3 = 4; + return 21; + } else if(((a3==7)&&(((!(a4==1)&&(((a6==1)&&(((a15==1)&&(((input==1)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&(a27==1)))&&(a20==1)))&&!(a0==1)))&&(a12==9))&&!(a5==1)))){ + a0 = 1; + a18 = 1; + a5 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if((((!(a5==1)&&(((a27==1)&&((((a12==9)&&((((a3==8)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7))))&&(input==2)))&&!(a15==1))&&(a4==1)))&&!(a0==1)))&&(a20==1))&&!(a6==1))){ + a18 = 1; + a5 = 1; + a0 = 1; + a3 = 4; + a22 = 0; + a12 = 11; + a15 = 1; + a6 = 1; + return 21; + } else if((((a12==11)&&((a22==1)&&((!(a5==1)&&(((((((a4==1)&&(input==4))&&(a20==1))&&(a18==1))&&(a15==1))&&!(a0==1))&&(a27==1)))&&(a6==1))))&&(a3==4))){ + a5 = 1; + a12 = 8; + a0 = 1; + return -1; + } else if(((!(a5==1)&&((a18==1)&&(((a12==12)&&(((a22==1)&&(((((input==2)&&!(a27==1))&&(a6==1))&&(a4==1))&&!(a15==1)))&&(a0==1)))&&(a3==8))))&&(a20==1))){ + a0 = 0; + a3 = 5; + a18 = 0; + a12 = 9; + a27 = 1; + a15 = 1; + a4 = 0; + return 21; + } else if(((((((a4==1)&&((a12==10)&&((a27==1)&&(((a20==1)&&((!(a6==1)&&(input==5))&&(a3==6)))&&(a15==1)))))&&(a18==1))&&(a0==1))&&(a22==1))&&!(a5==1))){ + a22 = 0; + a0 = 0; + a3 = 5; + return -1; + } else if((!(a22==1)&&(((a12==11)&&(!(a18==1)&&((!(a0==1)&&((((!(a27==1)&&((input==5)&&(a15==1)))&&(a20==1))&&(a3==8))&&(a6==1)))&&!(a4==1))))&&(a5==1)))){ + a18 = 1; + a3 = 7; + a12 = 12; + a27 = 1; + a6 = 0; + a4 = 1; + a5 = 0; + return 24; + } else if(((a27==1)&&((a6==1)&&(((a4==1)&&((a15==1)&&((a0==1)&&(((a20==1)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==5)))&&(a12==11)))))&&!(a5==1))))){ + a4 = 0; + a18 = 0; + a3 = 6; + a12 = 10; + a5 = 1; + a22 = 1; + return -1; + } else if(((a20==1)&&(!(a4==1)&&((a12==11)&&(((a3==4)&&(!(a27==1)&&(!(a0==1)&&((!(a6==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==6)))&&!(a15==1)))))&&!(a5==1)))))){ + if((a0==1)){ + a0 = 1; + a5 = 1; + a6 = 1; + a15 = 1; + a12 = 9; + a3 = 5; + a22 = 1; + a18 = 0; + }else{ + a0 = 1; + a15 = 1; + a18 = 0; + a22 = 0; + a27 = 1; + a3 = 6; + a5 = 1; + a12 = 8; + a4 = 1; + } + return 26; + } else if((((((a6==1)&&(((!(a0==1)&&((a12==9)&&(!(a4==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==2)))))&&(a27==1))&&(a3==6)))&&(a20==1))&&!(a15==1))&&(a5==1))){ + a0 = 1; + a12 = 8; + a22 = 1; + a15 = 1; + a3 = 4; + a18 = 1; + a4 = 1; + return -1; + } else if(((a3==7)&&((a18==1)&&((a22==1)&&(((a27==1)&&((a5==1)&&((!(a15==1)&&(((a12==8)&&((input==6)&&!(a6==1)))&&(a4==1)))&&(a20==1))))&&!(a0==1)))))){ + a0 = 1; + a6 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if(((((a12==10)&&(!(a6==1)&&(((((a20==1)&&(!(a15==1)&&((a3==8)&&((a18==1)&&(input==5)))))&&(a5==1))&&(a22==1))&&(a0==1))))&&(a4==1))&&!(a27==1))){ + a27 = 1; + a12 = 8; + a3 = 4; + a15 = 1; + a6 = 1; + return -1; + } else if(((a6==1)&&(((a15==1)&&((!(a5==1)&&((a3==5)&&((((((input==6)&&(a0==1))&&(a22==1))&&(a18==1))&&!(a4==1))&&(a12==11))))&&!(a27==1)))&&(a20==1)))){ + a22 = 0; + a3 = 4; + a6 = 0; + a15 = 0; + a5 = 1; + a4 = 1; + a12 = 10; + return -1; + } else if(((((a0==1)&&(((!(a4==1)&&(((a20==1)&&((((input==4)&&((a18==1)||!(a18==1)))&&(a15==1))&&(a12==10)))&&(a5==1)))&&(a22==1))&&(a3==4)))&&!(a6==1))&&(a27==1))){ + a15 = 0; + a6 = 1; + a12 = 8; + a18 = 0; + a22 = 0; + a3 = 6; + a4 = 1; + return 26; + } else if(((a20==1)&&(((((((((input==2)&&((((a3==4)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==4)))||((a3==5)&&((a18==1)&&(a22==1)))))&&(a5==1))&&!(a6==1))&&!(a0==1))&&(a15==1))&&(a12==12))&&(a27==1))&&!(a4==1)))){ + a5 = 0; + a0 = 1; + a18 = 0; + a22 = 0; + a12 = 10; + a27 = 0; + a6 = 1; + a3 = 7; + a15 = 0; + return 26; + } else if((!(a18==1)&&(((!(a5==1)&&((a3==8)&&((((((a0==1)&&((input==6)&&!(a15==1)))&&!(a27==1))&&(a12==9))&&!(a4==1))&&(a6==1))))&&!(a22==1))&&(a20==1)))){ + a5 = 1; + a27 = 1; + a4 = 1; + a12 = 8; + a15 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((((a0==1)&&(((((a6==1)&&(!(a15==1)&&((a12==9)&&((a3==5)&&((a5==1)&&((a27==1)&&(input==6)))))))&&(a4==1))&&(a20==1))&&!(a18==1)))&&!(a22==1))){ + a12 = 8; + a22 = 1; + a15 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a20==1)&&(((!(a4==1)&&((((((input==3)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))||((a3==6)&&((a22==1)&&!(a18==1)))))&&!(a6==1))&&(a0==1))&&(a5==1))&&(a27==1)))&&(a15==1))&&(a12==10)))){ + a18 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + a6 = 1; + a4 = 1; + return -1; + } else if((((a27==1)&&((a20==1)&&(((a6==1)&&(!(a4==1)&&(!(a15==1)&&((a5==1)&&(((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6)))||((a3==6)&&(!(a18==1)&&(a22==1))))&&(input==3))))))&&(a0==1))))&&(a12==12))){ + a22 = 1; + a12 = 8; + a3 = 4; + a15 = 1; + a18 = 1; + a4 = 1; + return -1; + } else if(((a0==1)&&(((!(a15==1)&&((a20==1)&&(((input==6)&&((((a3==4)&&(!(a4==1)&&(!(a18==1)&&(a22==1))))&&(a6==1))||(((((a4==1)&&(!(a22==1)&&!(a18==1)))&&(a3==8))&&!(a6==1))||(((a3==4)&&(!(a4==1)&&((a22==1)&&(a18==1))))&&(a6==1)))))&&!(a27==1))))&&(a5==1))&&(a12==12)))){ + a6 = 0; + a5 = 0; + a27 = 1; + a3 = 8; + a4 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((((((((!(a5==1)&&((input==2)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))))&&(a15==1))&&(a0==1))&&(a4==1))&&(a27==1))&&(a12==12))&&(a6==1))&&(a20==1))){ + a15 = 0; + a3 = 4; + a27 = 0; + a22 = 0; + a18 = 1; + return -1; + } else if((!(a5==1)&&((!(a6==1)&&((a20==1)&&(!(a4==1)&&((((a12==10)&&(!(a27==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==2))))&&(a15==1))&&(a0==1)))))&&(a3==4)))){ + a12 = 8; + a6 = 1; + a22 = 1; + a4 = 1; + a18 = 1; + a5 = 1; + a27 = 1; + return -1; + } else if((!(a0==1)&&(((a5==1)&&((a3==4)&&(!(a6==1)&&(!(a4==1)&&((a12==11)&&((a20==1)&&((a15==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5)))))))))&&(a27==1)))){ + a15 = 0; + a22 = 1; + a18 = 0; + a12 = 10; + a5 = 0; + a0 = 1; + return -1; + } else if((!(a15==1)&&((a6==1)&&((a27==1)&&((a20==1)&&(((a12==9)&&(((!(a4==1)&&((input==2)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a5==1))&&(a3==5)))&&!(a0==1))))))){ + a15 = 1; + a22 = 1; + a18 = 1; + a4 = 1; + a12 = 8; + a0 = 1; + a3 = 4; + return -1; + } else if((((((((((a12==10)&&((((input==3)&&((a18==1)||!(a18==1)))&&(a0==1))&&!(a5==1)))&&(a22==1))&&(a27==1))&&!(a4==1))&&!(a15==1))&&(a3==7))&&(a6==1))&&(a20==1))){ + a15 = 1; + a3 = 6; + a4 = 1; + a22 = 0; + a18 = 1; + a12 = 11; + a0 = 0; + a5 = 1; + return 21; + } else if(((((((((a27==1)&&((((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4))))&&(input==1)))&&(a12==12))&&!(a5==1))&&(a4==1))&&(a20==1))&&(a0==1))&&(a15==1))){ + a22 = 1; + a3 = 4; + a5 = 1; + a12 = 8; + a6 = 1; + a18 = 1; + return -1; + } else if(((a5==1)&&(((((a6==1)&&(((((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==1))&&(a20==1))&&(a12==12))&&(a4==1)))&&!(a0==1))&&(a27==1))&&!(a15==1)))){ + a27 = 0; + a5 = 0; + a3 = 6; + a6 = 0; + a4 = 0; + a22 = 0; + a15 = 1; + a12 = 10; + a18 = 0; + a0 = 1; + return 21; + } else if(((((!(a22==1)&&(((((a20==1)&&((!(a15==1)&&((input==1)&&(a6==1)))&&(a0==1)))&&(a12==12))&&!(a4==1))&&(a18==1)))&&!(a27==1))&&(a3==8))&&!(a5==1))){ + a3 = 6; + a18 = 0; + a12 = 11; + return 26; + } else if((((((a27==1)&&(((((a0==1)&&((a5==1)&&((((a18==1)||!(a18==1))&&(input==2))&&!(a4==1))))&&(a20==1))&&(a22==1))&&(a15==1)))&&(a12==12))&&(a3==8))&&(a6==1))){ + a4 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((((a3==5)&&((a27==1)&&((a20==1)&&((a6==1)&&(!(a4==1)&&((((input==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&!(a5==1))&&!(a15==1)))))))&&!(a0==1))&&(a12==12))){ + if((a15==1)){ + a12 = 8; + a18 = 1; + a15 = 1; + a22 = 0; + a5 = 1; + a0 = 1; + }else{ + a18 = 0; + a12 = 9; + a3 = 7; + a0 = 1; + a22 = 0; + a5 = 1; + a15 = 1; + a27 = 0; + } + return -1; + } else if(((((a20==1)&&(!(a6==1)&&((a0==1)&&((a5==1)&&(!(a27==1)&&((((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6)))||(((a22==1)&&!(a18==1))&&(a3==6)))&&(input==4))&&(a12==8)))))))&&(a15==1))&&(a4==1))){ + a27 = 1; + a15 = 0; + a22 = 0; + a12 = 11; + a18 = 0; + a3 = 8; + return -1; + } else if(((a20==1)&&(!(a0==1)&&((((a4==1)&&(((a27==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==3))&&(a12==9)))&&!(a15==1)))&&(a5==1))&&!(a6==1))))){ + a18 = 0; + a22 = 0; + a12 = 11; + a5 = 0; + a3 = 6; + a0 = 1; + return -1; + } else if(((((a4==1)&&(((a20==1)&&(!(a6==1)&&((a3==7)&&(((a15==1)&&((input==1)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))))&&(a12==9)))))&&!(a27==1)))&&(a0==1))&&(a5==1))){ + if((a0==1)){ + a27 = 1; + a22 = 1; + a15 = 0; + a0 = 0; + a12 = 10; + a3 = 4; + a18 = 0; + }else{ + a18 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + a5 = 0; + a15 = 0; + } + return -1; + } else if((((a27==1)&&((a0==1)&&((((a6==1)&&(!(a5==1)&&((a12==8)&&((((input==1)&&((a18==1)||!(a18==1)))&&!(a4==1))&&!(a22==1)))))&&(a15==1))&&(a20==1))))&&(a3==7))){ + a3 = 5; + a6 = 0; + a5 = 1; + a18 = 0; + a22 = 1; + a12 = 10; + a4 = 1; + a15 = 0; + return 21; + } else if(((a12==9)&&(((!(a5==1)&&(((a20==1)&&(((((((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a22==1)&&(a18==1))))||((a3==5)&&((a22==1)&&!(a18==1))))&&(input==4))&&(a6==1))&&!(a15==1)))&&!(a27==1)))&&(a4==1))&&(a0==1)))){ + a22 = 1; + a15 = 1; + a5 = 1; + a18 = 1; + a27 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if((((!(a6==1)&&(!(a0==1)&&((a12==10)&&(((a4==1)&&((a20==1)&&((input==4)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7))))))&&!(a27==1)))))&&(a5==1))&&!(a15==1))){ + if((a15==1)){ + a12 = 8; + a0 = 1; + a3 = 5; + a27 = 1; + a18 = 0; + a22 = 0; + a15 = 1; + }else{ + a6 = 1; + a0 = 1; + a22 = 1; + a15 = 1; + a12 = 8; + a4 = 0; + a3 = 6; + a18 = 0; + a27 = 1; + } + return -1; + } else if((((a6==1)&&(!(a0==1)&&(!(a22==1)&&((((a20==1)&&(((((a5==1)&&(input==2))&&(a4==1))&&(a18==1))&&(a27==1)))&&(a3==5))&&(a12==8)))))&&!(a15==1))){ + a3 = 8; + a0 = 1; + a12 = 10; + a6 = 0; + a22 = 1; + a18 = 0; + a4 = 0; + return 26; + } else if(((a0==1)&&(!(a27==1)&&(!(a6==1)&&(!(a22==1)&&((((a3==8)&&(!(a15==1)&&((!(a5==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a4==1))))&&(a20==1))&&(a12==9))))))){ + a6 = 1; + a3 = 4; + a5 = 1; + a18 = 1; + a27 = 1; + a12 = 8; + a15 = 1; + a22 = 1; + return -1; + } else if(((((a3==8)&&(((a5==1)&&(((a15==1)&&((a6==1)&&((((input==1)&&((a18==1)||!(a18==1)))&&!(a27==1))&&(a12==8))))&&(a0==1)))&&(a20==1)))&&!(a22==1))&&!(a4==1))){ + if((a5==1)){ + a15 = 0; + a3 = 4; + a5 = 0; + a12 = 12; + a6 = 0; + a22 = 1; + a18 = 0; + }else{ + a5 = 0; + a0 = 0; + a18 = 0; + a27 = 1; + a15 = 0; + a3 = 6; + } + return 26; + } else if((((a12==9)&&((((a6==1)&&((a15==1)&&(((!(a5==1)&&((a4==1)&&(!(a0==1)&&(input==5))))&&(a20==1))&&(a3==8))))&&!(a22==1))&&(a18==1)))&&(a27==1))){ + a5 = 1; + a12 = 8; + a0 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((a4==1)&&((a20==1)&&(((a6==1)&&((((a12==9)&&((a3==6)&&((a15==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==2)))))&&(a0==1))&&(a27==1)))&&(a5==1))))){ + a15 = 0; + a6 = 0; + a18 = 1; + a12 = 11; + a5 = 0; + a22 = 0; + return 26; + } else if(((a20==1)&&(((((!(a4==1)&&((a12==9)&&((a27==1)&&((input==3)&&((((!(a22==1)&&(a18==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4)))||(((a22==1)&&(a18==1))&&(a3==5)))))))&&(a5==1))&&!(a0==1))&&(a6==1))&&!(a15==1)))){ + a3 = 7; + a22 = 1; + a12 = 10; + a4 = 1; + a6 = 0; + a18 = 0; + a0 = 1; + return 21; + } else if((!(a6==1)&&(((a27==1)&&(((a3==4)&&((((a12==11)&&((((input==3)&&(a20==1))&&(a5==1))&&!(a4==1)))&&!(a18==1))&&!(a22==1)))&&!(a0==1)))&&(a15==1)))){ + a22 = 1; + a5 = 0; + a0 = 1; + a6 = 1; + a12 = 12; + a3 = 5; + return 24; + } else if(((a15==1)&&(!(a5==1)&&((((((((!(a27==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&!(a0==1))&&(a12==11))&&(a20==1))&&!(a22==1))&&(a3==6))&&!(a4==1))&&!(a6==1))))){ + a5 = 1; + a4 = 1; + a12 = 8; + a18 = 0; + a0 = 1; + a27 = 1; + a3 = 5; + a22 = 1; + return 21; + } else if(((a27==1)&&(!(a15==1)&&(((a12==10)&&(((((a3==8)&&(((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&!(a5==1)))&&(a4==1))&&(a20==1))&&!(a6==1)))&&!(a0==1))))){ + a0 = 1; + a22 = 1; + a18 = 1; + a6 = 1; + a12 = 8; + a15 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if(((a15==1)&&(((!(a6==1)&&((((a4==1)&&((a0==1)&&((a12==11)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==2)))))&&(a3==4))&&(a20==1)))&&(a27==1))&&(a5==1)))){ + a18 = 1; + a4 = 0; + a15 = 0; + a5 = 0; + a12 = 10; + a3 = 5; + a22 = 0; + return -1; + } else if(((a12==10)&&((((a15==1)&&(!(a4==1)&&(!(a0==1)&&((a5==1)&&(!(a6==1)&&((input==2)&&((((a3==4)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))||(((a22==1)&&(a18==1))&&(a3==5)))))))))&&(a20==1))&&(a27==1)))){ + a3 = 4; + a18 = 1; + a12 = 8; + a22 = 1; + a4 = 1; + a6 = 1; + a0 = 1; + return -1; + } else if(((a3==6)&&((!(a6==1)&&((((a20==1)&&(!(a15==1)&&(((a27==1)&&((a12==11)&&((input==3)&&((a18==1)||!(a18==1)))))&&(a22==1))))&&!(a0==1))&&(a4==1)))&&(a5==1)))){ + a12 = 10; + a0 = 1; + a3 = 4; + a15 = 1; + a22 = 0; + a18 = 0; + return 26; + } else if(((((((!(a6==1)&&(!(a4==1)&&((!(a0==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a12==9)))&&(a15==1))))&&!(a22==1))&&(a27==1))&&(a20==1))&&(a5==1))&&(a3==8))){ + a0 = 1; + a3 = 6; + a12 = 10; + a18 = 0; + a22 = 1; + return -1; + } else if(((((a0==1)&&((a12==11)&&(!(a27==1)&&((a3==7)&&(((a20==1)&&(!(a4==1)&&((input==5)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))))&&!(a6==1))))))&&(a15==1))&&!(a5==1))){ + if((a27==1)){ + a22 = 0; + a3 = 8; + a4 = 1; + a18 = 0; + a0 = 0; + a27 = 1; + }else{ + a4 = 1; + a6 = 1; + a27 = 1; + a15 = 0; + a18 = 1; + a22 = 1; + a3 = 5; + } + return 26; + } else if((((a0==1)&&((a12==10)&&(((((!(a4==1)&&(((input==3)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a15==1)))&&(a3==8))&&!(a5==1))&&!(a6==1))&&!(a27==1))))&&(a20==1))){ + a6 = 1; + a27 = 1; + a4 = 1; + a5 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + a15 = 1; + a18 = 1; + return -1; + } else if((!(a15==1)&&((((((((input==4)&&((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4)))))&&!(a5==1))&&!(a0==1))&&(a20==1))&&(a4==1))&&(a27==1))&&(a12==12)))){ + a15 = 1; + a0 = 1; + a18 = 0; + a22 = 0; + a3 = 7; + a12 = 8; + a6 = 1; + a5 = 1; + return 26; + } else if(((a0==1)&&((((((a3==5)&&(!(a4==1)&&((a5==1)&&(((a20==1)&&(!(a18==1)&&(input==5)))&&(a22==1)))))&&(a15==1))&&(a12==9))&&(a6==1))&&!(a27==1)))){ + a5 = 0; + a15 = 0; + a27 = 1; + a12 = 10; + a22 = 0; + return -1; + } else if((((a3==5)&&(!(a4==1)&&((((a0==1)&&((a5==1)&&((a27==1)&&(((input==5)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&(a20==1)))))&&!(a15==1))&&(a12==8))))&&!(a6==1))){ + a22 = 1; + a3 = 4; + a18 = 1; + a15 = 1; + a6 = 1; + a4 = 1; + return -1; + } else if((!(a15==1)&&((a20==1)&&(!(a6==1)&&((((((a3==8)&&(((input==4)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&(a12==8)))&&!(a4==1))&&(a27==1))&&(a5==1))&&(a0==1)))))){ + a4 = 1; + a3 = 7; + a15 = 1; + a5 = 0; + a22 = 0; + a12 = 9; + a18 = 1; + return 26; + } else if(((a4==1)&&((a3==5)&&((a27==1)&&((a20==1)&&((a5==1)&&((a12==11)&&((((a15==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a0==1)))&&!(a22==1))&&(a6==1))))))))){ + if((a12==11)){ + a6 = 0; + a3 = 4; + a15 = 0; + a18 = 1; + a0 = 0; + a4 = 0; + }else{ + a12 = 10; + a6 = 0; + a3 = 7; + a18 = 0; + } + return -1; + } else if((!(a4==1)&&(((a0==1)&&(!(a5==1)&&(((a6==1)&&(((a20==1)&&((input==3)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))||((a3==6)&&((a22==1)&&!(a18==1))))))&&(a12==11)))&&(a27==1))))&&!(a15==1)))){ + if((a15==1)){ + a12 = 10; + a0 = 0; + a4 = 1; + a22 = 0; + a18 = 1; + a3 = 6; + }else{ + a15 = 1; + a22 = 0; + a18 = 0; + a3 = 5; + a5 = 1; + } + return -1; + } else if(((a0==1)&&((a6==1)&&(!(a27==1)&&((((!(a4==1)&&((a20==1)&&((a3==4)&&((a15==1)&&(((a18==1)||!(a18==1))&&(input==5))))))&&(a12==8))&&(a5==1))&&!(a22==1)))))){ + a18 = 0; + a12 = 12; + a6 = 0; + a3 = 6; + return 24; + } else if((!(a22==1)&&((((a20==1)&&((a12==9)&&(((a0==1)&&(!(a15==1)&&((a27==1)&&(((input==1)&&!(a18==1))&&(a6==1)))))&&(a3==8))))&&!(a4==1))&&!(a5==1)))){ + a5 = 1; + a12 = 12; + a4 = 1; + return 24; + } else if(((((a22==1)&&((((((!(a27==1)&&(!(a6==1)&&((input==2)&&((a18==1)||!(a18==1)))))&&!(a5==1))&&(a15==1))&&!(a0==1))&&(a3==7))&&(a12==10)))&&(a20==1))&&(a4==1))){ + a22 = 0; + a15 = 0; + a27 = 1; + a12 = 8; + a18 = 0; + a6 = 1; + return 24; + } else if(((a20==1)&&((((((((a15==1)&&((a5==1)&&(((input==4)&&!(a4==1))&&!(a6==1))))&&(a18==1))&&(a0==1))&&!(a22==1))&&!(a27==1))&&(a3==4))&&(a12==10)))){ + a3 = 6; + a12 = 8; + a22 = 1; + a18 = 0; + a27 = 1; + return 26; + } else if(((a12==9)&&((a20==1)&&(!(a5==1)&&(((a15==1)&&((a0==1)&&(((a6==1)&&((input==3)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5)))))&&(a4==1))))&&!(a27==1)))))){ + a4 = 0; + a3 = 8; + a22 = 1; + a6 = 0; + a27 = 1; + a0 = 0; + a18 = 1; + return 24; + } else if(((((((a27==1)&&(((((input==2)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1)))))&&(a6==1))&&!(a15==1))&&(a4==1)))&&(a12==8))&&!(a5==1))&&!(a0==1))&&(a20==1))){ + a6 = 0; + a18 = 1; + a3 = 8; + a12 = 11; + a22 = 0; + return 26; + } else if(((!(a5==1)&&((((((a20==1)&&((a15==1)&&(!(a6==1)&&((a27==1)&&(!(a22==1)&&(input==6))))))&&!(a0==1))&&(a12==8))&&!(a4==1))&&(a3==7)))&&!(a18==1))){ + a18 = 1; + a3 = 4; + a22 = 1; + a6 = 1; + a5 = 1; + a4 = 1; + a0 = 1; + return -1; + } else if((!(a27==1)&&(!(a5==1)&&((!(a6==1)&&(!(a22==1)&&((!(a4==1)&&(((a15==1)&&(((a3==5)&&(input==6))&&(a0==1)))&&(a20==1)))&&!(a18==1))))&&(a12==12))))){ + a3 = 7; + a6 = 1; + a18 = 1; + a5 = 1; + a27 = 1; + a12 = 10; + return -1; + } else if((((a18==1)&&((((((((a12==11)&&(((input==2)&&(a27==1))&&(a3==6)))&&!(a22==1))&&!(a4==1))&&!(a5==1))&&(a15==1))&&!(a6==1))&&!(a0==1)))&&(a20==1))){ + a22 = 1; + a6 = 1; + a0 = 1; + a18 = 0; + a3 = 8; + return 26; + } else if((((a3==7)&&(((a22==1)&&((((a12==8)&&((((a15==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&!(a27==1))&&!(a5==1)))&&(a20==1))&&!(a4==1)))&&!(a0==1)))&&(a6==1))){ + a3 = 8; + a18 = 0; + a27 = 1; + a4 = 1; + a5 = 1; + a0 = 1; + a6 = 0; + return 24; + } else if((((a12==9)&&(!(a5==1)&&(((a0==1)&&(!(a15==1)&&(((a27==1)&&((input==5)&&((((a22==1)&&!(a18==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1)))))))&&(a4==1))))&&(a6==1))))&&(a20==1))){ + a6 = 0; + a15 = 1; + a3 = 5; + a18 = 1; + a4 = 0; + a22 = 1; + a12 = 12; + a5 = 1; + return 21; + } else if((((a0==1)&&(((((!(a5==1)&&((a6==1)&&((a3==5)&&((input==3)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))))))&&(a4==1))&&(a27==1))&&!(a15==1))&&(a12==12)))&&(a20==1))){ + a12 = 10; + a15 = 1; + a18 = 1; + a3 = 7; + a22 = 0; + a5 = 1; + return 21; + } else if(((!(a27==1)&&((a20==1)&&((a3==8)&&((a12==8)&&(((a5==1)&&((a6==1)&&(!(a4==1)&&(!(a0==1)&&((a22==1)&&(input==5))))))&&!(a15==1))))))&&!(a18==1))){ + if((a18==1)){ + a27 = 1; + a22 = 0; + a6 = 0; + a0 = 1; + a15 = 1; + a3 = 4; + a4 = 1; + }else{ + a18 = 1; + a12 = 11; + a3 = 6; + a6 = 0; + } + return 24; + } else if((((((!(a15==1)&&(!(a4==1)&&((!(a27==1)&&((((a3==5)&&(input==3))&&(a20==1))&&!(a22==1)))&&!(a5==1))))&&!(a18==1))&&!(a0==1))&&(a6==1))&&(a12==10))){ + a5 = 1; + a27 = 1; + a4 = 1; + a0 = 1; + a15 = 1; + a3 = 8; + a12 = 8; + return 24; + } else if((!(a5==1)&&(!(a22==1)&&(((!(a27==1)&&((a12==11)&&((!(a18==1)&&((((a15==1)&&(input==3))&&(a6==1))&&(a0==1)))&&(a20==1))))&&!(a4==1))&&(a3==4))))){ + a5 = 1; + a15 = 0; + a3 = 7; + a27 = 1; + a12 = 12; + return -1; + } else if(((a3==8)&&((a18==1)&&((((((a20==1)&&((!(a5==1)&&((a12==10)&&(!(a27==1)&&(input==4))))&&!(a22==1)))&&!(a4==1))&&!(a6==1))&&(a0==1))&&(a15==1))))){ + if((a22==1)){ + a22 = 1; + a27 = 1; + a4 = 1; + a0 = 0; + a15 = 0; + }else{ + a5 = 1; + a12 = 9; + a15 = 0; + a4 = 1; + a27 = 1; + a3 = 4; + a0 = 0; + } + return -1; + } else if(((!(a4==1)&&(((a3==6)&&((!(a6==1)&&((a5==1)&&((!(a22==1)&&((a12==9)&&((input==1)&&((a18==1)||!(a18==1)))))&&!(a0==1))))&&!(a15==1)))&&(a20==1)))&&!(a27==1))){ + if((a6==1)){ + a5 = 0; + a6 = 1; + a15 = 1; + a3 = 8; + a18 = 1; + a12 = 8; + a27 = 1; + }else{ + a18 = 1; + a6 = 1; + a27 = 1; + a12 = 8; + a0 = 1; + a15 = 1; + } + return 21; + } else if(((a15==1)&&((a20==1)&&(((a27==1)&&((!(a0==1)&&((a12==10)&&(((a18==1)&&(((input==6)&&(a6==1))&&!(a4==1)))&&!(a22==1))))&&(a3==5)))&&(a5==1))))){ + a3 = 4; + a12 = 8; + a22 = 1; + a4 = 1; + a0 = 1; + return -1; + } else if((!(a5==1)&&(((a6==1)&&((((a27==1)&&((((a12==12)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==4)))&&(a4==1))&&(a20==1)))&&(a0==1))&&(a3==4)))&&(a15==1)))){ + a18 = 1; + a12 = 10; + a15 = 0; + a6 = 0; + a22 = 0; + a3 = 6; + a5 = 1; + return 26; + } else if(((a20==1)&&((a5==1)&&(!(a0==1)&&((a22==1)&&((!(a18==1)&&(!(a27==1)&&((a3==6)&&(!(a15==1)&&((a12==8)&&((a4==1)&&(input==5)))))))&&!(a6==1))))))){ + a3 = 5; + a0 = 1; + a12 = 12; + return 24; + } else if(((a20==1)&&((!(a27==1)&&((a0==1)&&(((a15==1)&&((((a6==1)&&((!(a4==1)&&((a22==1)&&(a18==1)))&&(a3==4)))||((!(a6==1)&&(((a4==1)&&((a18==1)&&!(a22==1)))&&(a3==8)))||(((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1)))&&!(a6==1))))&&(input==5)))&&!(a5==1))))&&(a12==9)))){ + a12 = 12; + a27 = 1; + a18 = 0; + a4 = 0; + a6 = 0; + a22 = 1; + a5 = 1; + a3 = 4; + return -1; + } else if((((((!(a15==1)&&((((a3==5)&&((a5==1)&&((a27==1)&&((a12==12)&&(input==1)))))&&(a20==1))&&!(a6==1)))&&!(a18==1))&&!(a22==1))&&(a4==1))&&(a0==1))){ + a22 = 1; + a15 = 1; + a4 = 0; + a6 = 1; + a3 = 7; + a12 = 11; + a5 = 0; + return 24; + } else if(((((a15==1)&&((a3==5)&&(((!(a27==1)&&(((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==2))&&!(a5==1))&&(a20==1)))&&!(a6==1))&&!(a4==1))))&&!(a0==1))&&(a12==8))){ + a18 = 0; + a4 = 1; + a22 = 0; + a3 = 4; + a27 = 1; + return -1; + } else if((((a5==1)&&(((a4==1)&&((!(a6==1)&&((a20==1)&&((a3==7)&&((a27==1)&&((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))))&&(a12==8)))&&(a0==1)))&&!(a15==1))){ + a5 = 0; + a18 = 1; + a0 = 0; + a12 = 11; + a15 = 1; + a4 = 0; + a3 = 6; + a22 = 0; + return 26; + } else if((((!(a15==1)&&((((((!(a27==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==2)))&&(a3==8))&&!(a4==1))&&(a0==1))&&(a5==1))&&(a20==1)))&&(a6==1))&&(a12==11))){ + a22 = 1; + a18 = 1; + a5 = 0; + a3 = 7; + a12 = 10; + a27 = 1; + return 26; + } else if((!(a15==1)&&(((!(a0==1)&&((a3==4)&&((a12==12)&&((((((a18==1)&&(input==2))&&!(a6==1))&&!(a22==1))&&!(a5==1))&&(a20==1)))))&&(a27==1))&&!(a4==1)))){ + if((a12==8)){ + a15 = 1; + a6 = 1; + a5 = 1; + a12 = 11; + a22 = 1; + a3 = 8; + a18 = 0; + a4 = 1; + a27 = 0; + }else{ + a4 = 1; + a22 = 1; + a5 = 1; + a0 = 1; + a12 = 8; + a15 = 1; + a3 = 5; + } + return -1; + } else if(((a3==5)&&((a22==1)&&(((a15==1)&&(!(a6==1)&&((((a27==1)&&((a0==1)&&((a4==1)&&((input==1)&&((a18==1)||!(a18==1))))))&&(a20==1))&&(a5==1))))&&(a12==11))))){ + a22 = 0; + a15 = 0; + a3 = 8; + a18 = 0; + return 21; + } else if(((a20==1)&&((((((!(a5==1)&&(((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==4))&&(a3==7))&&!(a6==1)))&&(a12==9))&&(a0==1))&&!(a4==1))&&!(a27==1))&&(a15==1)))){ + a4 = 1; + a27 = 1; + a22 = 0; + a3 = 4; + a18 = 0; + a15 = 0; + a12 = 11; + return -1; + } else if((((!(a6==1)&&(!(a27==1)&&((a20==1)&&(!(a5==1)&&(((!(a0==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==5)))&&(a3==4))&&!(a15==1))))))&&(a12==11))&&!(a4==1))){ + a27 = 1; + a12 = 8; + a18 = 1; + a4 = 1; + a0 = 1; + a5 = 1; + a22 = 0; + a15 = 1; + return 26; + } else if((((a15==1)&&((((a27==1)&&(!(a22==1)&&(!(a5==1)&&(!(a6==1)&&((a0==1)&&(!(a18==1)&&((a3==8)&&(input==3))))))))&&(a4==1))&&(a20==1)))&&(a12==10))){ + a12 = 12; + a3 = 5; + a4 = 0; + a6 = 1; + a27 = 0; + a18 = 1; + return 26; + } else if(((a20==1)&&((!(a27==1)&&((((a12==8)&&(((!(a6==1)&&((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1)))))||(((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))&&(a6==1)))&&(input==3)))&&!(a15==1))&&!(a0==1)))&&!(a5==1)))){ + if((a27==1)){ + a18 = 0; + a3 = 4; + a5 = 1; + a12 = 12; + a27 = 1; + a6 = 1; + a4 = 1; + a22 = 0; + }else{ + a0 = 1; + a18 = 1; + a27 = 1; + a22 = 1; + a4 = 1; + a5 = 1; + a6 = 1; + a3 = 8; + a15 = 1; + } + return 26; + } else if(((a20==1)&&((!(a5==1)&&((a6==1)&&((((((input==3)&&(((!(a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))))&&(a0==1))&&(a4==1))&&(a12==9))&&(a27==1))))&&!(a15==1)))){ + a12 = 8; + a6 = 0; + a4 = 0; + a18 = 0; + a3 = 5; + a22 = 0; + a27 = 0; + return 26; + } else if((((((a3==8)&&(((!(a18==1)&&((!(a22==1)&&((!(a27==1)&&(input==2))&&!(a4==1)))&&(a20==1)))&&(a6==1))&&!(a0==1)))&&!(a15==1))&&(a12==10))&&!(a5==1))){ + if((a18==1)){ + a5 = 1; + a4 = 1; + a0 = 1; + a12 = 8; + a15 = 1; + a27 = 1; + a18 = 1; + }else{ + a22 = 1; + a3 = 7; + a27 = 1; + a5 = 1; + a12 = 8; + a18 = 1; + a0 = 1; + a15 = 1; + } + return -1; + } else if(((a20==1)&&((((((a18==1)&&((((((input==5)&&!(a15==1))&&(a3==7))&&(a5==1))&&(a4==1))&&(a12==9)))&&(a0==1))&&!(a6==1))&&!(a22==1))&&(a27==1)))){ + a15 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + return -1; + } return calculate_output10(input); + } + + int calculate_output10(int input) { + if((((a20==1)&&((!(a15==1)&&(((a27==1)&&((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6))&&(a3==7))&&!(a6==1))&&(a4==1)))&&(a5==1)))&&(a0==1)))&&(a12==8))){ + a3 = 5; + a5 = 0; + a18 = 1; + a22 = 0; + a4 = 0; + return 26; + } else if((!(a18==1)&&((a22==1)&&((a3==4)&&(((((a4==1)&&((a5==1)&&(!(a6==1)&&(((input==6)&&!(a27==1))&&(a20==1)))))&&(a0==1))&&(a12==8))&&(a15==1)))))){ + a27 = 1; + a3 = 5; + a6 = 1; + a5 = 0; + a22 = 0; + a12 = 11; + a4 = 0; + return 24; + } else if(((a6==1)&&(!(a4==1)&&(!(a27==1)&&((!(a0==1)&&((a12==11)&&((a20==1)&&(!(a5==1)&&((input==2)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5))))))))&&!(a15==1)))))){ + if((a3==8)){ + a22 = 0; + a0 = 1; + a3 = 7; + a15 = 1; + a18 = 1; + a12 = 8; + a5 = 1; + }else{ + a4 = 1; + a5 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + a6 = 0; + a27 = 1; + a15 = 1; + a18 = 1; + a0 = 1; + } + return 21; + } else if((((a0==1)&&((!(a22==1)&&((a15==1)&&((a3==5)&&(((a12==11)&&(((a5==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a20==1)))&&!(a6==1)))))&&!(a4==1)))&&!(a27==1))){ + a5 = 0; + a22 = 1; + a27 = 1; + a12 = 12; + a4 = 1; + a18 = 0; + a3 = 6; + return 21; + } else if(((a18==1)&&(((a12==9)&&(((a20==1)&&((!(a0==1)&&((a22==1)&&((a4==1)&&((a3==8)&&(!(a5==1)&&(input==6))))))&&(a15==1)))&&!(a6==1)))&&!(a27==1)))){ + a3 = 7; + a22 = 0; + a15 = 0; + a0 = 1; + return 21; + } else if(((a27==1)&&((((a15==1)&&((((!(a6==1)&&((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==2))&&(a0==1)))&&(a3==4))&&(a20==1))&&!(a4==1)))&&!(a5==1))&&(a12==8)))){ + a22 = 1; + a5 = 1; + a18 = 1; + a4 = 1; + a6 = 1; + return -1; + } else if(((a20==1)&&(((((a4==1)&&((a12==8)&&((((((a6==1)&&((a3==8)&&((a18==1)&&!(a22==1))))||((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8))))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1)))))&&(input==6))&&(a5==1))))&&!(a15==1))&&(a27==1))&&!(a0==1)))){ + a12 = 10; + a18 = 1; + a5 = 0; + a3 = 6; + a6 = 0; + a15 = 1; + a0 = 1; + a22 = 0; + return -1; + } else if((((a27==1)&&((a20==1)&&(!(a0==1)&&((!(a15==1)&&((a6==1)&&(((((((a18==1)&&!(a22==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7)))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==3))&&(a5==1))))&&(a12==12)))))&&(a4==1))){ + a15 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + a0 = 1; + a18 = 1; + return -1; + } else if((((a12==8)&&((a3==4)&&(!(a5==1)&&(!(a6==1)&&(!(a22==1)&&((!(a15==1)&&((((input==5)&&(a18==1))&&(a27==1))&&(a4==1)))&&(a20==1)))))))&&(a0==1))){ + a5 = 1; + a18 = 0; + a3 = 5; + a6 = 1; + a15 = 1; + a12 = 11; + return 21; + } else if((!(a0==1)&&(!(a6==1)&&(!(a22==1)&&((!(a15==1)&&((a12==9)&&((!(a5==1)&&(((a20==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&!(a27==1)))&&(a3==4))))&&(a4==1)))))){ + a18 = 1; + a12 = 11; + a6 = 1; + a4 = 0; + return 21; + } else if(((((!(a15==1)&&(!(a22==1)&&(((((((input==6)&&((a18==1)||!(a18==1)))&&!(a0==1))&&!(a27==1))&&(a20==1))&&!(a4==1))&&!(a6==1))))&&!(a5==1))&&(a3==8))&&(a12==11))){ + if((a18==1)){ + a22 = 1; + a5 = 1; + a3 = 5; + a18 = 1; + a4 = 1; + a0 = 1; + a6 = 1; + a27 = 1; + a15 = 1; + a12 = 8; + }else{ + a3 = 4; + a27 = 1; + a12 = 12; + a0 = 1; + a18 = 0; + a5 = 1; + } + return 21; + } else if(((a5==1)&&(!(a15==1)&&(!(a0==1)&&((!(a6==1)&&(((a12==10)&&(((((a3==6)&&(!(a18==1)&&(a22==1)))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6))))&&(input==4))&&(a20==1)))&&(a4==1)))&&!(a27==1)))))){ + a0 = 1; + a15 = 1; + a3 = 8; + a27 = 1; + a6 = 1; + a18 = 1; + a22 = 1; + a12 = 8; + return 21; + } else if(((!(a5==1)&&((a20==1)&&((a4==1)&&(((((a12==8)&&((input==4)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a18==1)&&(a22==1))))||((!(a18==1)&&(a22==1))&&(a3==6)))))&&(a15==1))&&!(a6==1))&&(a0==1)))))&&(a27==1))){ + a3 = 4; + a22 = 0; + a5 = 1; + a18 = 0; + a6 = 1; + a12 = 10; + return 26; + } else if(((a20==1)&&(!(a4==1)&&((a6==1)&&(!(a5==1)&&(!(a22==1)&&(((a0==1)&&((a27==1)&&((a12==9)&&((a3==8)&&((input==5)&&!(a18==1))))))&&!(a15==1)))))))){ + a3 = 4; + a15 = 1; + a4 = 1; + a12 = 8; + a18 = 1; + a5 = 1; + a22 = 1; + return -1; + } else if(((!(a4==1)&&((((a20==1)&&((((a27==1)&&((((input==4)&&((a18==1)||!(a18==1)))&&(a5==1))&&(a3==7)))&&!(a15==1))&&(a0==1)))&&(a12==8))&&(a6==1)))&&!(a22==1))){ + a4 = 1; + a18 = 1; + a3 = 8; + a12 = 9; + return 26; + } else if((!(a15==1)&&((a27==1)&&((a4==1)&&(((!(a6==1)&&((a0==1)&&(((input==5)&&((((a22==1)&&(a18==1))&&(a3==8))||(((a3==7)&&((a18==1)&&!(a22==1)))||((a3==7)&&(!(a22==1)&&!(a18==1))))))&&!(a5==1))))&&(a20==1))&&(a12==12)))))){ + a6 = 1; + a3 = 4; + a12 = 8; + a15 = 1; + a5 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((((a5==1)&&((a3==8)&&((a27==1)&&(((a12==10)&&(!(a22==1)&&(((((a18==1)||!(a18==1))&&(input==4))&&!(a4==1))&&(a0==1))))&&(a15==1)))))&&(a6==1))&&(a20==1))){ + a12 = 8; + a4 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + return -1; + } else if((!(a4==1)&&((!(a22==1)&&(((((a18==1)&&(((((input==3)&&(a15==1))&&(a6==1))&&(a0==1))&&(a5==1)))&&(a20==1))&&(a12==10))&&(a3==7)))&&(a27==1)))){ + a12 = 8; + a22 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if((!(a6==1)&&(((a15==1)&&(((((a3==4)&&(((a4==1)&&(((a27==1)&&(input==5))&&(a0==1)))&&(a5==1)))&&(a20==1))&&!(a18==1))&&!(a22==1)))&&(a12==10)))){ + a18 = 1; + a3 = 7; + a6 = 1; + return -1; + } else if(((a12==10)&&((a3==6)&&(!(a4==1)&&((((a15==1)&&((a20==1)&&(!(a6==1)&&((a5==1)&&((((a18==1)||!(a18==1))&&(input==3))&&(a0==1))))))&&(a22==1))&&!(a27==1)))))){ + a3 = 4; + a12 = 8; + a4 = 1; + a18 = 1; + a6 = 1; + a27 = 1; + return -1; + } else if((((a22==1)&&(!(a6==1)&&((((a27==1)&&((a20==1)&&((((((a18==1)||!(a18==1))&&(input==4))&&(a3==5))&&(a4==1))&&!(a5==1))))&&(a12==8))&&!(a0==1))))&&!(a15==1))){ + a15 = 1; + a22 = 0; + a4 = 0; + a18 = 1; + a0 = 1; + return 21; + } else if((((a3==6)&&(!(a22==1)&&((!(a6==1)&&(((a4==1)&&(!(a0==1)&&(((a5==1)&&((a12==8)&&(input==4)))&&!(a18==1))))&&(a15==1)))&&!(a27==1))))&&(a20==1))){ + if((a27==1)){ + a3 = 4; + a0 = 1; + a4 = 0; + a6 = 1; + a27 = 1; + }else{ + a27 = 1; + a4 = 0; + a0 = 1; + a3 = 5; + a6 = 1; + } + return 21; + } else if((!(a5==1)&&(((a20==1)&&((!(a0==1)&&((!(a27==1)&&(!(a15==1)&&(((((a18==1)||!(a18==1))&&(input==4))&&(a3==6))&&!(a6==1))))&&(a12==8)))&&(a22==1)))&&!(a4==1)))){ + if((a3==6)){ + a18 = 1; + a0 = 1; + a12 = 12; + a5 = 1; + a6 = 1; + a27 = 1; + a15 = 1; + a3 = 7; + a4 = 1; + }else{ + a15 = 1; + a27 = 1; + a3 = 8; + a0 = 1; + a4 = 1; + a5 = 1; + a18 = 0; + } + return -1; + } else if(((((a15==1)&&(((!(a18==1)&&((a12==10)&&((a3==5)&&((((a5==1)&&(input==3))&&!(a22==1))&&!(a4==1)))))&&!(a27==1))&&(a20==1)))&&(a6==1))&&(a0==1))){ + a3 = 6; + a15 = 0; + a12 = 12; + a5 = 0; + a22 = 1; + a18 = 1; + return 21; + } else if((((((a5==1)&&((a18==1)&&((a4==1)&&(((a27==1)&&((a22==1)&&(((input==4)&&(a3==8))&&(a0==1))))&&!(a6==1)))))&&!(a15==1))&&(a12==10))&&(a20==1))){ + a12 = 9; + a3 = 7; + a5 = 0; + a4 = 0; + a22 = 0; + return -1; + } else if((!(a0==1)&&((a12==10)&&(((a20==1)&&((a27==1)&&((!(a5==1)&&(!(a6==1)&&((input==6)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))||((a3==6)&&(!(a18==1)&&(a22==1)))))))&&(a15==1))))&&(a4==1))))){ + a3 = 6; + a4 = 0; + a0 = 1; + a12 = 11; + a15 = 0; + a22 = 1; + a5 = 1; + a18 = 1; + return 24; + } else if((!(a15==1)&&(((a4==1)&&(((a3==8)&&((!(a27==1)&&(((a6==1)&&((input==4)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&(a12==9)))&&(a5==1)))&&(a20==1)))&&!(a0==1)))){ + a12 = 8; + a15 = 1; + a27 = 1; + a22 = 0; + a3 = 6; + a0 = 1; + a6 = 0; + a18 = 1; + return -1; + } else if(((a12==11)&&((((((a15==1)&&(((((a20==1)&&((input==3)&&!(a0==1)))&&(a27==1))&&!(a18==1))&&(a5==1)))&&(a3==5))&&(a22==1))&&!(a4==1))&&(a6==1)))){ + a0 = 1; + a18 = 1; + a12 = 8; + a4 = 1; + a3 = 4; + return -1; + } else if((((!(a4==1)&&((a6==1)&&((a0==1)&&((a5==1)&&((a20==1)&&(!(a15==1)&&(((input==6)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a12==8))))))))&&!(a27==1))&&(a3==4))){ + a18 = 1; + a27 = 1; + a22 = 1; + a15 = 1; + a4 = 1; + return -1; + } else if(((a5==1)&&((a20==1)&&((!(a15==1)&&((a3==7)&&((!(a4==1)&&(!(a0==1)&&(((a6==1)&&((a18==1)&&(input==2)))&&(a12==9))))&&!(a22==1))))&&(a27==1))))){ + a4 = 1; + a3 = 4; + a15 = 1; + a5 = 0; + a0 = 1; + a6 = 0; + a27 = 0; + return 21; + } else if(((((a4==1)&&((a3==6)&&((a20==1)&&((a0==1)&&((((a5==1)&&((((a18==1)||!(a18==1))&&(input==3))&&!(a6==1)))&&!(a22==1))&&(a12==12))))))&&!(a27==1))&&!(a15==1))){ + if((a18==1)){ + a18 = 1; + a0 = 0; + a12 = 10; + a3 = 7; + a5 = 0; + a6 = 1; + a27 = 1; + }else{ + a4 = 0; + a3 = 7; + a18 = 1; + a27 = 1; + } + return -1; + } else if((((a20==1)&&(((a12==8)&&(!(a15==1)&&((a4==1)&&(((a3==7)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6))&&(a6==1)))&&!(a27==1)))))&&!(a5==1)))&&(a0==1))){ + a18 = 1; + a3 = 8; + a12 = 9; + a22 = 1; + return 26; + } else if((!(a4==1)&&((a27==1)&&(!(a5==1)&&(!(a15==1)&&((a20==1)&&(!(a0==1)&&((a12==11)&&((input==3)&&((((a3==4)&&(!(a18==1)&&(a22==1)))&&!(a6==1))||(((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1))))))))))))){ + a18 = 0; + a6 = 0; + a22 = 1; + a4 = 1; + a12 = 10; + a0 = 1; + a3 = 7; + a5 = 1; + return 21; + } else if((((a6==1)&&((((!(a22==1)&&((((((input==5)&&(a5==1))&&!(a27==1))&&(a3==4))&&(a4==1))&&!(a18==1)))&&!(a15==1))&&(a20==1))&&(a0==1)))&&(a12==12))){ + a18 = 1; + a27 = 1; + a15 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if(((a4==1)&&((a3==6)&&(!(a5==1)&&(((a6==1)&&((((a27==1)&&((a15==1)&&(((input==2)&&(a22==1))&&!(a0==1))))&&(a18==1))&&(a12==9)))&&(a20==1)))))){ + a12 = 11; + a3 = 8; + a4 = 0; + a0 = 1; + return -1; + } else if(((((((a6==1)&&(((((a12==10)&&(((a27==1)&&(input==4))&&(a20==1)))&&!(a22==1))&&!(a5==1))&&(a0==1)))&&(a18==1))&&(a4==1))&&(a3==4))&&(a15==1))){ + a12 = 8; + a22 = 1; + a5 = 1; + return -1; + } else if(((a20==1)&&((a0==1)&&((a12==12)&&((((a27==1)&&((!(a6==1)&&((a15==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==6))))&&(a3==7)))&&!(a5==1))&&(a4==1)))))){ + a22 = 1; + a3 = 6; + a18 = 1; + a27 = 0; + return 26; + } else if(((a5==1)&&((a20==1)&&(((a3==6)&&(((((((((a18==1)||!(a18==1))&&(input==2))&&!(a15==1))&&!(a22==1))&&!(a0==1))&&(a6==1))&&(a12==8))&&!(a27==1)))&&!(a4==1))))){ + a6 = 0; + a4 = 1; + a0 = 1; + a15 = 1; + a22 = 1; + a18 = 0; + a27 = 1; + return 24; + } else if(((a3==8)&&((a12==10)&&((a20==1)&&((!(a15==1)&&((a0==1)&&(((a5==1)&&((a22==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a6==1))))&&(a27==1))))&&(a4==1)))))){ + a18 = 1; + a15 = 1; + a0 = 0; + return 24; + } else if((!(a4==1)&&(!(a5==1)&&(((a6==1)&&((a20==1)&&((a3==4)&&(!(a0==1)&&((!(a18==1)&&(((input==2)&&!(a15==1))&&(a22==1)))&&(a12==8))))))&&(a27==1))))){ + a0 = 1; + a15 = 1; + a3 = 6; + a12 = 11; + a5 = 1; + return 21; + } else if(((a4==1)&&(!(a15==1)&&((a27==1)&&((a3==5)&&((a6==1)&&(((((a12==12)&&(!(a22==1)&&((a18==1)&&(input==5))))&&!(a0==1))&&(a20==1))&&!(a5==1)))))))){ + if((a6==1)){ + a3 = 8; + a0 = 1; + a15 = 1; + a12 = 8; + a6 = 0; + a18 = 0; + a5 = 1; + }else{ + a15 = 1; + a12 = 8; + a4 = 0; + a5 = 1; + a3 = 6; + a0 = 1; + } + return -1; + } else if((!(a0==1)&&(((a12==12)&&((a5==1)&&((((!(a22==1)&&((((input==5)&&(a3==7))&&(a4==1))&&!(a18==1)))&&!(a15==1))&&(a20==1))&&!(a6==1))))&&(a27==1)))){ + a15 = 1; + a0 = 1; + a18 = 1; + a12 = 8; + return 26; + } else if(((a0==1)&&((a27==1)&&(((!(a15==1)&&(!(a4==1)&&(((a12==10)&&((((a3==6)&&((a22==1)&&(a18==1)))||(((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a18==1)&&!(a22==1)))))&&(input==5)))&&(a6==1))))&&!(a5==1))&&(a20==1))))){ + a3 = 8; + a6 = 0; + a15 = 1; + a22 = 0; + a18 = 1; + return -1; + } else if((!(a27==1)&&((((((!(a6==1)&&((a3==8)&&(((!(a15==1)&&(((a18==1)&&!(a22==1))&&!(a5==1)))&&(a12==10))&&!(a4==1))))||(!(a6==1)&&((a3==8)&&((((!(a5==1)&&(!(a22==1)&&!(a18==1)))&&!(a15==1))&&(a12==10))&&!(a4==1)))))||((a6==1)&&(((((((a22==1)&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==11))&&(a4==1))&&(a3==4))))&&(input==3))&&(a20==1))&&!(a0==1)))){ + a4 = 0; + a0 = 1; + a22 = 1; + a3 = 6; + a5 = 1; + a18 = 0; + a12 = 8; + a6 = 1; + a27 = 1; + a15 = 1; + return 21; + } else if(((a27==1)&&((a12==9)&&((((!(a22==1)&&((((((input==5)&&(a18==1))&&(a6==1))&&(a15==1))&&(a3==4))&&(a0==1)))&&(a20==1))&&!(a4==1))&&!(a5==1))))){ + if((a20==1)){ + a15 = 0; + a5 = 1; + a6 = 0; + a0 = 0; + a3 = 8; + a12 = 8; + }else{ + a6 = 0; + a12 = 8; + a27 = 0; + a4 = 1; + a18 = 0; + a22 = 1; + } + return 24; + } else if(((!(a4==1)&&((((a6==1)&&((!(a15==1)&&((a5==1)&&(((((a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==4))))&&(input==1))))&&(a27==1)))&&(a20==1))&&(a12==11)))&&!(a0==1))){ + a22 = 1; + a18 = 1; + a15 = 1; + a3 = 6; + a0 = 1; + a6 = 0; + return 21; + } else if((!(a22==1)&&(((a4==1)&&(((a20==1)&&(((!(a0==1)&&((a12==9)&&((a6==1)&&((input==1)&&!(a18==1)))))&&!(a15==1))&&!(a5==1)))&&!(a27==1)))&&(a3==7)))){ + if((a4==1)){ + a0 = 1; + a12 = 8; + a27 = 1; + a15 = 1; + a3 = 8; + a5 = 1; + a18 = 1; + }else{ + a18 = 1; + a27 = 1; + a12 = 10; + a3 = 4; + a22 = 1; + a0 = 1; + } + return -1; + } else if(((((a20==1)&&((((!(a15==1)&&((a12==9)&&((((input==3)&&!(a27==1))&&!(a18==1))&&!(a5==1))))&&!(a6==1))&&!(a0==1))&&!(a22==1)))&&(a4==1))&&(a3==7))){ + if((a6==1)){ + a5 = 1; + a0 = 1; + a3 = 4; + a27 = 1; + }else{ + a27 = 1; + a0 = 1; + a12 = 8; + a22 = 1; + a5 = 1; + a15 = 1; + a18 = 1; + } + return -1; + } else if((((a3==6)&&(!(a27==1)&&(!(a22==1)&&((!(a4==1)&&((a20==1)&&(((a12==10)&&((((a18==1)||!(a18==1))&&(input==5))&&(a0==1)))&&!(a6==1))))&&!(a5==1)))))&&!(a15==1))){ + a4 = 1; + a5 = 1; + a12 = 12; + a18 = 1; + a3 = 4; + a22 = 1; + a27 = 1; + return -1; + } else if((!(a0==1)&&((a12==9)&&(((!(a5==1)&&(((!(a15==1)&&(((input==6)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&(a6==1)))&&!(a4==1))&&(a27==1)))&&(a3==5))&&(a20==1))))){ + a0 = 1; + a12 = 10; + a6 = 0; + a3 = 4; + a5 = 1; + a22 = 1; + a18 = 0; + a15 = 1; + return 24; + } else if((!(a6==1)&&((a15==1)&&((a12==11)&&(((a4==1)&&((a3==6)&&((a5==1)&&((a27==1)&&(!(a0==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==1)))))))&&(a20==1)))))){ + a0 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + a6 = 1; + return -1; + } else if((!(a27==1)&&((a20==1)&&((((((a0==1)&&(((((input==5)&&(a15==1))&&!(a4==1))&&!(a18==1))&&(a12==9)))&&!(a22==1))&&(a5==1))&&(a3==7))&&(a6==1))))){ + a18 = 1; + a22 = 1; + a27 = 1; + a12 = 11; + a5 = 0; + a4 = 1; + return 21; + } else if(((!(a4==1)&&((((((a0==1)&&(((input==2)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==6))))&&!(a15==1)))&&!(a6==1))&&(a12==8))&&!(a5==1))&&!(a27==1)))&&(a20==1))){ + a18 = 0; + a6 = 1; + a3 = 6; + a5 = 1; + a22 = 1; + return -1; + } else if((((a3==6)&&(!(a27==1)&&((a0==1)&&(((a12==10)&&(!(a22==1)&&(((!(a15==1)&&((input==3)&&((a18==1)||!(a18==1))))&&!(a6==1))&&!(a4==1))))&&(a20==1)))))&&!(a5==1))){ + a6 = 1; + a5 = 1; + a12 = 8; + a4 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + a27 = 1; + a15 = 1; + return -1; + } else if((((a12==11)&&((!(a18==1)&&(((((((!(a4==1)&&(input==5))&&(a5==1))&&(a27==1))&&(a3==4))&&(a20==1))&&(a0==1))&&!(a6==1)))&&(a22==1)))&&!(a15==1))){ + a4 = 1; + a15 = 1; + a18 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if(((((a12==12)&&(((a6==1)&&(((((!(a5==1)&&((input==2)&&(a0==1)))&&(a22==1))&&!(a4==1))&&(a27==1))&&(a15==1)))&&(a3==4)))&&(a20==1))&&!(a18==1))){ + a12 = 8; + a5 = 1; + a18 = 1; + a4 = 1; + return -1; + } else if(((a6==1)&&((a20==1)&&(!(a15==1)&&(((!(a4==1)&&(((((input==2)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&(a27==1))&&(a12==11))&&(a3==5)))&&!(a0==1))&&(a5==1)))))){ + a18 = 1; + a15 = 1; + a3 = 4; + a4 = 1; + a22 = 1; + a0 = 1; + a12 = 8; + return -1; + } else if((((a4==1)&&(((!(a27==1)&&(((((a6==1)&&(((a20==1)&&(input==6))&&!(a0==1)))&&(a12==11))&&(a22==1))&&!(a15==1)))&&(a3==4))&&!(a18==1)))&&!(a5==1))){ + a6 = 0; + a12 = 12; + a3 = 6; + a18 = 1; + a0 = 1; + return 26; + } else if((((!(a0==1)&&(!(a4==1)&&((!(a15==1)&&(((a20==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==4))&&(a12==8)))&&!(a5==1)))&&(a3==6))))&&(a6==1))&&(a27==1))){ + a12 = 10; + a22 = 0; + a18 = 0; + a0 = 1; + a6 = 0; + a15 = 1; + a4 = 1; + a3 = 4; + a5 = 1; + a27 = 0; + return 21; + } else if(((((a0==1)&&((a5==1)&&(!(a22==1)&&((a20==1)&&((a12==11)&&(!(a27==1)&&(((a15==1)&&((input==5)&&(a3==6)))&&!(a18==1))))))))&&(a4==1))&&(a6==1))){ + a27 = 1; + a18 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + return -1; + } else if(((a20==1)&&(!(a15==1)&&(((a12==9)&&((!(a0==1)&&((((((a3==7)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6))))&&(input==2))&&!(a4==1))&&(a6==1)))&&(a5==1)))&&!(a27==1))))){ + a18 = 0; + a22 = 1; + a12 = 11; + a3 = 5; + a27 = 1; + a15 = 1; + a0 = 1; + return 24; + } else if(((a3==7)&&((a5==1)&&((!(a15==1)&&(!(a22==1)&&(!(a6==1)&&(!(a18==1)&&(((((input==6)&&!(a0==1))&&!(a27==1))&&(a20==1))&&(a12==10))))))&&(a4==1))))){ + a5 = 0; + a27 = 1; + a18 = 1; + a12 = 9; + a0 = 1; + a22 = 1; + return 21; + } else if(((((((a20==1)&&(!(a27==1)&&((a6==1)&&(((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==1))&&(a12==10))&&(a3==4)))))&&(a5==1))&&!(a4==1))&&!(a0==1))&&(a15==1))){ + a12 = 8; + a0 = 1; + a18 = 1; + a22 = 0; + a27 = 1; + a3 = 6; + return 21; + } else if((((((a20==1)&&(((!(a27==1)&&(((((!(a18==1)&&(a22==1))&&(a3==7))||(((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a18==1)&&(a22==1)))))&&(input==4))&&!(a15==1)))&&(a12==9))&&(a4==1)))&&(a6==1))&&!(a0==1))&&(a5==1))){ + if((a6==1)){ + a18 = 1; + a22 = 0; + a12 = 11; + a0 = 1; + a15 = 1; + a3 = 6; + }else{ + a3 = 6; + a22 = 0; + a18 = 1; + a0 = 1; + a6 = 0; + a12 = 10; + } + return 26; + } else if(((a0==1)&&((a6==1)&&((((((a12==8)&&(((((a3==6)&&((a22==1)&&!(a18==1)))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6))))&&(input==6))&&!(a4==1)))&&(a5==1))&&(a20==1))&&!(a15==1))&&(a27==1))))){ + a18 = 1; + a15 = 1; + a12 = 9; + a3 = 6; + a22 = 0; + a6 = 0; + return 24; + } else if(((((a27==1)&&((a4==1)&&(!(a0==1)&&(!(a18==1)&&((a3==4)&&(((a5==1)&&(((a6==1)&&(input==3))&&(a15==1)))&&(a12==10)))))))&&(a20==1))&&(a22==1))){ + a0 = 1; + a22 = 0; + a3 = 6; + a6 = 0; + return -1; + } else if(((((a27==1)&&(((a15==1)&&((a3==5)&&((a6==1)&&(((a20==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1)))&&!(a4==1)))))&&!(a5==1)))&&(a0==1))&&(a12==10))){ + a22 = 0; + a18 = 1; + a5 = 1; + return -1; + } else if((!(a5==1)&&((a0==1)&&(!(a27==1)&&((a4==1)&&((a12==12)&&(!(a6==1)&&((a15==1)&&((a20==1)&&((input==1)&&((((!(a22==1)&&(a18==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6)))||(((a22==1)&&(a18==1))&&(a3==7))))))))))))){ + a22 = 1; + a0 = 0; + a12 = 8; + a3 = 4; + a27 = 1; + a18 = 0; + a4 = 0; + a15 = 0; + return -1; + } else if(((a3==6)&&((a20==1)&&(!(a22==1)&&(((!(a15==1)&&(!(a27==1)&&(((a12==9)&&(((input==6)&&!(a18==1))&&!(a6==1)))&&(a5==1))))&&!(a0==1))&&(a4==1)))))){ + a12 = 8; + a27 = 1; + a22 = 1; + a15 = 1; + a3 = 5; + a18 = 1; + return 26; + } else if(((!(a0==1)&&(((a22==1)&&((((a20==1)&&(!(a18==1)&&(((a15==1)&&((a4==1)&&(input==2)))&&(a3==5))))&&(a12==8))&&(a5==1)))&&!(a6==1)))&&(a27==1))){ + a22 = 0; + a4 = 0; + a12 = 9; + a27 = 0; + a18 = 1; + a0 = 1; + return 21; + } else if((!(a5==1)&&(((a12==11)&&((a27==1)&&((a4==1)&&((!(a6==1)&&(((input==4)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5)))||(((a22==1)&&(a18==1))&&(a3==6))))&&!(a15==1)))&&!(a0==1)))))&&(a20==1)))){ + a5 = 1; + a22 = 1; + a6 = 1; + a12 = 12; + a18 = 1; + a15 = 1; + a0 = 1; + a4 = 0; + a3 = 6; + return 26; + } else if(((((((!(a6==1)&&((((a4==1)&&((a15==1)&&((input==6)&&((a18==1)||!(a18==1)))))&&!(a22==1))&&(a0==1)))&&(a5==1))&&(a20==1))&&(a12==11))&&(a3==7))&&!(a27==1))){ + a18 = 1; + a3 = 5; + a27 = 1; + a12 = 12; + a15 = 0; + return -1; + } else if((((((((a20==1)&&((a18==1)&&((((!(a6==1)&&(input==4))&&!(a5==1))&&!(a27==1))&&(a3==5))))&&(a12==9))&&!(a4==1))&&!(a15==1))&&!(a22==1))&&(a0==1))){ + if((a4==1)){ + a18 = 0; + a6 = 1; + a12 = 12; + a22 = 1; + a3 = 8; + }else{ + a4 = 1; + a12 = 10; + a6 = 1; + a27 = 1; + a5 = 1; + } + return 21; + } else if((((((a5==1)&&(!(a4==1)&&(((((((!(a18==1)&&(a22==1))&&(a3==6))||(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6))))&&(input==4))&&(a20==1))&&!(a0==1))&&!(a6==1))))&&(a15==1))&&(a12==10))&&!(a27==1))){ + a27 = 1; + a12 = 9; + a6 = 1; + a5 = 0; + a18 = 0; + a3 = 8; + a22 = 0; + a4 = 1; + a0 = 1; + return 21; + } else if((!(a27==1)&&((!(a0==1)&&(!(a18==1)&&((a12==11)&&((!(a15==1)&&((!(a5==1)&&(((input==5)&&(a6==1))&&(a3==4)))&&(a22==1)))&&(a20==1)))))&&(a4==1)))){ + a18 = 1; + a27 = 1; + a6 = 0; + a3 = 8; + return 26; + } else if((((((a0==1)&&(((a20==1)&&(((((((a3==7)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==7)))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==2))&&!(a5==1))&&(a27==1)))&&!(a6==1)))&&(a12==12))&&(a4==1))&&!(a15==1))){ + a3 = 4; + a6 = 1; + a18 = 1; + a5 = 1; + a22 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if((((!(a6==1)&&((((a5==1)&&((!(a0==1)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==1)))&&(a12==10)))&&!(a4==1))&&!(a15==1)))&&(a27==1))&&(a20==1))){ + a3 = 5; + a4 = 1; + a0 = 1; + a18 = 1; + a27 = 0; + a22 = 1; + a5 = 0; + a12 = 8; + return -1; + } else if((((!(a6==1)&&((a12==12)&&((!(a0==1)&&((a20==1)&&((a3==6)&&(!(a5==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==2))))))&&(a15==1))))&&(a27==1))&&!(a4==1))){ + a22 = 1; + a15 = 0; + a6 = 1; + a5 = 1; + a18 = 0; + a12 = 8; + return 24; + } else if((((a5==1)&&((!(a0==1)&&((a12==11)&&((a20==1)&&((a15==1)&&(((input==6)&&((((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))||((a3==7)&&((a22==1)&&!(a18==1)))))&&!(a4==1))))))&&!(a27==1)))&&(a6==1))){ + a18 = 0; + a3 = 6; + a4 = 1; + a15 = 0; + a0 = 1; + a12 = 9; + a22 = 1; + return 26; + } else if((((((!(a4==1)&&(!(a6==1)&&((((a22==1)&&((a3==7)&&((input==5)&&((a18==1)||!(a18==1)))))&&!(a15==1))&&(a20==1))))&&!(a5==1))&&!(a27==1))&&(a12==10))&&(a0==1))){ + a18 = 0; + a3 = 6; + a27 = 1; + a12 = 12; + a15 = 1; + return -1; + } else if(((a0==1)&&(!(a6==1)&&(!(a4==1)&&((((a3==4)&&((a15==1)&&(((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==2))&&!(a5==1))&&!(a27==1))))&&(a20==1))&&(a12==11)))))){ + a18 = 1; + a15 = 0; + a22 = 1; + a6 = 1; + a27 = 1; + a4 = 1; + a3 = 5; + return 26; + } else if((!(a15==1)&&(!(a4==1)&&(!(a6==1)&&((a3==5)&&((a12==10)&&((a22==1)&&((a0==1)&&((!(a5==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a27==1)))&&(a20==1)))))))))){ + a3 = 8; + a18 = 1; + a5 = 1; + a6 = 1; + return -1; + } else if((!(a27==1)&&((a20==1)&&((((a4==1)&&((a0==1)&&((((a12==11)&&((input==2)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&(a5==1))&&(a15==1))))&&!(a6==1))&&(a3==8))))){ + a15 = 0; + a12 = 12; + a22 = 0; + a27 = 1; + a3 = 6; + a6 = 1; + a5 = 0; + a18 = 0; + return 21; + } else if(((!(a15==1)&&(((((a3==7)&&((a12==12)&&(!(a4==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&(a27==1))&&!(a5==1)))))&&(a20==1))&&!(a0==1))&&(a22==1)))&&(a6==1))){ + a18 = 1; + a12 = 9; + a3 = 8; + a22 = 0; + a6 = 0; + return 21; + } else if((!(a6==1)&&(!(a15==1)&&((a20==1)&&(((((a0==1)&&((a12==8)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==6))&&!(a5==1))))&&(a27==1))&&(a4==1))&&(a3==7)))))){ + a18 = 0; + a22 = 0; + a12 = 11; + a5 = 1; + a15 = 1; + a4 = 0; + a3 = 4; + return 26; + } else if((((((((a15==1)&&(((a3==4)&&((a4==1)&&((a12==10)&&((input==4)&&(a22==1)))))&&(a6==1)))&&!(a18==1))&&!(a0==1))&&(a20==1))&&!(a27==1))&&(a5==1))){ + if((a22==1)){ + a12 = 8; + a27 = 1; + a0 = 1; + a3 = 7; + }else{ + a12 = 12; + a3 = 8; + a5 = 0; + a27 = 1; + a4 = 0; + a6 = 0; + a18 = 1; + a22 = 0; + } + return 24; + } else if(((a22==1)&&((!(a5==1)&&((a15==1)&&((a12==10)&&(((((a20==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&!(a6==1)))&&(a3==8))&&(a0==1))&&!(a4==1)))))&&!(a27==1)))){ + a18 = 1; + a22 = 0; + a15 = 0; + a6 = 1; + a12 = 9; + a3 = 5; + return 26; + } else if(((!(a0==1)&&(!(a15==1)&&(!(a4==1)&&((((a5==1)&&(!(a6==1)&&((input==1)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6))))))&&(a27==1))&&(a12==8)))))&&(a20==1))){ + a15 = 1; + a3 = 6; + a18 = 0; + a5 = 0; + a4 = 1; + a22 = 1; + a0 = 1; + a12 = 10; + return 26; + } else if((((a0==1)&&((a27==1)&&(!(a5==1)&&((a20==1)&&(((!(a15==1)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==6)))&&(a12==12))&&!(a4==1))))))&&(a6==1))){ + a4 = 1; + a18 = 0; + a22 = 0; + a5 = 1; + a12 = 10; + a3 = 8; + a15 = 1; + return -1; + } else if(((a3==4)&&((a22==1)&&(!(a6==1)&&(((a0==1)&&((a4==1)&&(!(a5==1)&&((a15==1)&&((((input==1)&&(a18==1))&&(a12==10))&&(a20==1))))))&&!(a27==1)))))){ + a5 = 1; + a22 = 0; + a3 = 5; + a6 = 1; + a12 = 11; + a27 = 1; + a18 = 0; + a4 = 0; + return 21; + } else if((((((a4==1)&&(((a5==1)&&(((a0==1)&&((input==5)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))||((!(a18==1)&&(a22==1))&&(a3==5)))))&&!(a6==1)))&&(a20==1)))&&(a12==8))&&!(a27==1))&&!(a15==1))){ + a12 = 11; + a5 = 0; + a15 = 1; + a22 = 0; + a6 = 1; + a3 = 7; + a18 = 0; + a27 = 1; + return 21; + } else if((((a20==1)&&((a0==1)&&((((a12==8)&&(!(a22==1)&&((((a6==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a27==1))&&(a3==7))))&&!(a4==1))&&(a5==1))))&&!(a15==1))){ + a4 = 1; + a3 = 8; + a12 = 9; + a22 = 1; + a18 = 1; + return 21; + } else if(((((a4==1)&&(((a12==8)&&((!(a27==1)&&(((input==5)&&(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1)))))&&(a20==1)))&&(a5==1)))&&!(a15==1)))&&(a6==1))&&(a0==1))){ + a22 = 1; + a15 = 1; + a4 = 0; + a12 = 12; + a18 = 1; + a6 = 0; + a3 = 7; + a5 = 0; + return 24; + } else if(((a20==1)&&((a0==1)&&(!(a4==1)&&((!(a27==1)&&((a6==1)&&((a15==1)&&((a3==8)&&(((a5==1)&&(!(a22==1)&&(input==6)))&&(a18==1))))))&&(a12==9)))))){ + a12 = 11; + a3 = 7; + a5 = 0; + a18 = 0; + a4 = 1; + return 24; + } else if(((a4==1)&&(((a12==8)&&((a3==8)&&(!(a0==1)&&((a5==1)&&((a20==1)&&((!(a6==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2)))&&!(a15==1)))))))&&(a27==1)))){ + a18 = 0; + a5 = 0; + a22 = 1; + a12 = 10; + a3 = 6; + a0 = 1; + a4 = 0; + a6 = 1; + return 26; + } else if(((a4==1)&&((((a12==11)&&((((a22==1)&&((((a15==1)&&((a5==1)&&(input==4)))&&(a3==8))&&!(a18==1)))&&(a0==1))&&(a20==1)))&&(a27==1))&&(a6==1)))){ + if((a6==1)){ + a18 = 1; + a15 = 0; + a3 = 4; + a0 = 0; + a4 = 0; + }else{ + a12 = 10; + a3 = 4; + a15 = 0; + a27 = 0; + a18 = 1; + a22 = 0; + a5 = 0; + } + return 21; + } else if(((!(a0==1)&&((((a5==1)&&((((((!(a4==1)&&((a18==1)&&(a22==1)))&&(a3==4))&&(a6==1))||((!(a6==1)&&(((a4==1)&&(!(a22==1)&&(a18==1)))&&(a3==8)))||((((!(a22==1)&&!(a18==1))&&(a4==1))&&(a3==8))&&!(a6==1))))&&(input==2))&&(a20==1)))&&(a12==10))&&(a27==1)))&&!(a15==1))){ + a27 = 0; + a22 = 1; + a5 = 0; + a18 = 0; + a3 = 5; + a0 = 1; + a4 = 0; + a6 = 0; + return 26; + } else if((((a27==1)&&((((((a0==1)&&(!(a6==1)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==3))))&&(a20==1))&&!(a15==1))&&(a4==1))&&(a5==1)))&&(a12==11))){ + a18 = 1; + a3 = 5; + a22 = 0; + a6 = 1; + a12 = 12; + return 26; + } else if(((((((!(a0==1)&&(!(a15==1)&&(!(a6==1)&&((input==4)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))))))&&!(a27==1))&&(a20==1))&&!(a4==1))&&(a12==9))&&(a5==1))){ + a18 = 1; + a22 = 1; + a3 = 5; + a5 = 0; + a4 = 1; + a12 = 10; + a15 = 1; + a0 = 1; + a6 = 1; + return 21; + } else if(((a12==11)&&(!(a4==1)&&(((!(a18==1)&&((a6==1)&&(!(a5==1)&&(((a20==1)&&(((a0==1)&&(input==4))&&(a22==1)))&&(a27==1)))))&&(a3==5))&&(a15==1))))){ + a5 = 1; + a12 = 10; + a3 = 7; + a22 = 0; + a18 = 1; + return -1; + } else if((((((a4==1)&&((a6==1)&&((a15==1)&&((!(a18==1)&&(((a22==1)&&(!(a0==1)&&(input==2)))&&(a20==1)))&&!(a5==1)))))&&(a12==11))&&(a27==1))&&(a3==4))){ + a5 = 1; + a12 = 8; + a0 = 1; + a18 = 1; + return -1; + } else if((((((((((((!(a27==1)&&(input==5))&&(a0==1))&&(a4==1))&&!(a22==1))&&(a12==9))&&(a3==4))&&(a15==1))&&(a5==1))&&(a20==1))&&(a6==1))&&!(a18==1))){ + if((a22==1)){ + a12 = 8; + a3 = 8; + a0 = 0; + a5 = 0; + a6 = 0; + a18 = 1; + a27 = 1; + }else{ + a27 = 1; + a12 = 11; + a6 = 0; + } + return -1; + } else if(((a18==1)&&(((a0==1)&&((a4==1)&&(((((a20==1)&&((a15==1)&&(((input==1)&&(a3==7))&&(a22==1))))&&(a5==1))&&(a12==11))&&(a27==1))))&&!(a6==1)))){ + a3 = 4; + a12 = 8; + a6 = 1; + return -1; + } else if(((!(a6==1)&&(((((a12==10)&&((a22==1)&&((!(a4==1)&&(!(a15==1)&&(((a18==1)||!(a18==1))&&(input==4))))&&(a20==1))))&&(a27==1))&&(a0==1))&&!(a5==1)))&&(a3==6))){ + a4 = 1; + a3 = 4; + a6 = 1; + a5 = 1; + a12 = 8; + a15 = 1; + a18 = 1; + return -1; + } else if((!(a6==1)&&(((!(a0==1)&&(!(a15==1)&&((((a12==9)&&(((input==5)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&(a5==1)))&&(a27==1))&&(a3==7))))&&(a4==1))&&(a20==1)))){ + a6 = 1; + a4 = 0; + a15 = 1; + a12 = 10; + a18 = 0; + a0 = 1; + a22 = 1; + return 26; + } else if((((a4==1)&&((a3==7)&&(((((((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==1))&&(a20==1))&&(a27==1))&&(a15==1))&&(a5==1))&&(a0==1))&&(a12==10))))&&(a6==1))){ + a18 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + return -1; + } else if((((a12==10)&&(((((((((((a18==1)||!(a18==1))&&(input==2))&&(a20==1))&&(a0==1))&&!(a6==1))&&!(a15==1))&&(a3==6))&&!(a4==1))&&(a22==1))&&(a27==1)))&&!(a5==1))){ + a15 = 1; + a3 = 7; + a22 = 0; + a0 = 0; + a5 = 1; + a18 = 1; + a12 = 12; + a6 = 1; + return -1; + } else if(((a12==11)&&((a3==8)&&((a20==1)&&(!(a6==1)&&(!(a15==1)&&((a4==1)&&((((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==3))&&!(a5==1))&&!(a27==1))&&(a0==1))))))))){ + a5 = 1; + a15 = 1; + a18 = 1; + a22 = 1; + a12 = 8; + a6 = 1; + a27 = 1; + a3 = 4; + return -1; + } else if(((a4==1)&&((a27==1)&&((a12==12)&&(((a0==1)&&(!(a18==1)&&(((a22==1)&&(!(a5==1)&&((a15==1)&&((a20==1)&&(input==2)))))&&(a6==1))))&&(a3==7)))))){ + a6 = 0; + a18 = 1; + a5 = 1; + a4 = 0; + a15 = 0; + a3 = 4; + return 21; + } else if((!(a5==1)&&(((a3==8)&&((a4==1)&&(!(a0==1)&&((a12==10)&&((!(a15==1)&&(!(a6==1)&&((input==3)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&!(a27==1))))))&&(a20==1)))){ + a27 = 1; + a5 = 1; + a12 = 9; + a4 = 0; + a18 = 0; + a22 = 1; + a6 = 1; + a3 = 4; + return 21; + } else if((!(a27==1)&&(((((a6==1)&&((a0==1)&&(((a12==9)&&((a20==1)&&((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&!(a5==1))))&&!(a15==1))&&(a3==4))&&(a4==1)))){ + a22 = 0; + a3 = 7; + a15 = 1; + a18 = 0; + a5 = 1; + return -1; + } else if((!(a0==1)&&((a5==1)&&((((a12==12)&&(((a3==4)&&(((((input==3)&&((a18==1)||!(a18==1)))&&!(a15==1))&&(a6==1))&&!(a4==1)))&&(a20==1)))&&(a27==1))&&!(a22==1))))){ + a4 = 1; + a3 = 5; + a22 = 1; + a0 = 1; + a18 = 0; + a15 = 1; + a12 = 8; + return -1; + } else if((((!(a0==1)&&(((((a12==10)&&((!(a5==1)&&((input==3)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&(a20==1)))&&(a27==1))&&(a6==1))&&(a3==7)))&&(a15==1))&&(a4==1))){ + a3 = 5; + a27 = 0; + a6 = 0; + a12 = 12; + a0 = 1; + a4 = 0; + a5 = 1; + a18 = 0; + a22 = 1; + return 21; + } else if(((a5==1)&&(!(a22==1)&&((((a27==1)&&((a3==6)&&((a12==11)&&((((a0==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&!(a15==1))&&!(a4==1)))))&&(a20==1))&&(a6==1))))){ + if((a12==8)){ + a3 = 7; + a12 = 8; + a4 = 1; + a5 = 0; + a22 = 1; + a18 = 0; + a0 = 0; + }else{ + a4 = 1; + a18 = 0; + a15 = 1; + } + return -1; + } else if(((((a3==7)&&((((a15==1)&&(!(a27==1)&&((a12==10)&&(!(a4==1)&&((input==6)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))))&&!(a5==1))&&(a20==1)))&&!(a0==1))&&!(a6==1))){ + a22 = 1; + a5 = 1; + a27 = 1; + a12 = 8; + a18 = 0; + a3 = 8; + a15 = 0; + return -1; + } else if((((((a12==9)&&((((a4==1)&&(!(a0==1)&&((a3==4)&&(!(a27==1)&&((input==4)&&((a18==1)||!(a18==1)))))))&&(a6==1))&&!(a22==1)))&&(a15==1))&&(a20==1))&&!(a5==1))){ + if((a6==1)){ + a27 = 1; + a22 = 1; + a12 = 10; + a18 = 0; + a15 = 0; + a3 = 6; + a6 = 0; + }else{ + a27 = 1; + a0 = 1; + a22 = 1; + a4 = 0; + a5 = 1; + a3 = 6; + a18 = 1; + a15 = 0; + } + return -1; + } else if(((((((a20==1)&&(((a12==10)&&(!(a4==1)&&(!(a15==1)&&(!(a6==1)&&(((a18==1)||!(a18==1))&&(input==5))))))&&(a3==6)))&&!(a5==1))&&(a22==1))&&(a0==1))&&(a27==1))){ + a4 = 1; + a18 = 0; + a15 = 1; + a6 = 1; + a12 = 8; + a5 = 1; + a0 = 0; + return 26; + } else if(((((a12==10)&&((a3==6)&&((!(a6==1)&&((a15==1)&&(((!(a0==1)&&((input==1)&&((a18==1)||!(a18==1))))&&!(a4==1))&&(a20==1))))&&!(a27==1))))&&(a22==1))&&!(a5==1))){ + a12 = 8; + a18 = 0; + a5 = 1; + a27 = 1; + a15 = 0; + return 24; + } else if(((a22==1)&&((a5==1)&&(((((a3==4)&&(((((((a18==1)||!(a18==1))&&(input==2))&&(a12==9))&&(a4==1))&&(a15==1))&&(a6==1)))&&(a27==1))&&!(a0==1))&&(a20==1))))){ + a5 = 0; + a4 = 0; + a3 = 7; + a18 = 0; + a15 = 0; + a0 = 1; + a12 = 10; + return 26; + } else if((!(a5==1)&&(((a4==1)&&((a27==1)&&((((a0==1)&&((a15==1)&&((((a3==6)&&((a22==1)&&(a18==1)))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a22==1)&&!(a18==1)))))&&(input==6))))&&(a20==1))&&!(a6==1))))&&(a12==12)))){ + if((a6==1)){ + a12 = 10; + a18 = 1; + a0 = 0; + a3 = 7; + a22 = 0; + }else{ + a3 = 8; + a6 = 1; + a4 = 0; + a12 = 11; + a22 = 0; + a15 = 0; + a5 = 1; + a18 = 1; + } + return 26; + } else if((!(a5==1)&&(((((a27==1)&&(((((input==6)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1)))))&&(a15==1))&&(a12==8))&&(a20==1)))&&(a0==1))&&(a4==1))&&(a6==1)))){ + a22 = 1; + a18 = 1; + a5 = 1; + a3 = 4; + return -1; + } else if(((a3==5)&&((a15==1)&&(((a12==10)&&(((!(a6==1)&&(!(a0==1)&&(((input==3)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&!(a4==1))))&&(a5==1))&&!(a27==1)))&&(a20==1))))){ + a27 = 1; + a6 = 1; + a3 = 6; + a22 = 0; + a12 = 8; + a0 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if((((a6==1)&&(!(a27==1)&&((a12==8)&&((a3==6)&&((((((a22==1)&&((a0==1)&&(input==5)))&&!(a4==1))&&!(a15==1))&&(a20==1))&&!(a18==1))))))&&!(a5==1))){ + a12 = 10; + a5 = 1; + a15 = 1; + a27 = 1; + a18 = 1; + return 21; + } else if((((((a20==1)&&((a15==1)&&((a5==1)&&(!(a4==1)&&(!(a6==1)&&((a27==1)&&(((input==2)&&(a0==1))&&(a22==1))))))))&&(a12==12))&&(a3==6))&&(a18==1))){ + a0 = 0; + a12 = 10; + a15 = 0; + a3 = 5; + return 26; + } else if((((a5==1)&&((!(a27==1)&&(((((a22==1)&&(((a15==1)&&((a12==11)&&(input==4)))&&(a0==1)))&&(a3==7))&&(a18==1))&&(a4==1)))&&(a20==1)))&&(a6==1))){ + a18 = 0; + a6 = 0; + a3 = 5; + a4 = 0; + a15 = 0; + return 21; + } else if((((a6==1)&&((!(a22==1)&&(!(a4==1)&&((a15==1)&&(!(a27==1)&&((((a5==1)&&((input==2)&&(a12==9)))&&(a18==1))&&(a20==1))))))&&(a3==4)))&&!(a0==1))){ + a5 = 0; + a3 = 8; + a6 = 0; + a15 = 0; + a0 = 1; + return 21; + } else if((((a0==1)&&((a3==7)&&((!(a27==1)&&((a12==8)&&(((a5==1)&&(((input==6)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a20==1)))&&!(a4==1))))&&(a15==1))))&&!(a6==1))){ + if((a20==1)){ + a6 = 1; + a22 = 0; + a3 = 4; + a0 = 0; + a18 = 0; + a27 = 1; + a15 = 0; + }else{ + a18 = 0; + a3 = 6; + a12 = 11; + a22 = 0; + a5 = 0; + a27 = 1; + } + return 21; + } else if(((((((a3==4)&&((a20==1)&&((a6==1)&&(((a12==9)&&(((input==6)&&!(a22==1))&&(a27==1)))&&(a15==1)))))&&(a5==1))&&(a18==1))&&(a4==1))&&(a0==1))){ + a22 = 1; + a12 = 8; + return -1; + } else if((((a20==1)&&(((a5==1)&&((((a27==1)&&((a0==1)&&((a12==10)&&((a3==4)&&((input==4)&&(a6==1))))))&&(a22==1))&&(a4==1)))&&!(a15==1)))&&!(a18==1))){ + a3 = 8; + a6 = 0; + a22 = 0; + a4 = 0; + a0 = 0; + a12 = 8; + a15 = 1; + a18 = 1; + return 21; + } else if(((((((a12==8)&&((!(a0==1)&&((a15==1)&&(((((a18==1)&&(a22==1))&&(a3==7))||((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1)))))&&(input==6))))&&!(a6==1)))&&(a20==1))&&(a5==1))&&(a27==1))&&(a4==1))){ + a3 = 5; + a22 = 1; + a18 = 1; + a5 = 0; + return 26; + } else if((!(a5==1)&&((((a20==1)&&(!(a0==1)&&((a3==7)&&(((a12==10)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2))&&(a27==1)))&&!(a15==1)))))&&!(a6==1))&&!(a4==1)))){ + a4 = 1; + a6 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + a18 = 1; + a0 = 1; + a15 = 1; + a22 = 1; + return -1; + } else if(((((!(a0==1)&&(((a6==1)&&((a3==4)&&((a20==1)&&((((input==1)&&(a4==1))&&(a18==1))&&(a22==1)))))&&(a27==1)))&&!(a5==1))&&(a12==11))&&(a15==1))){ + a15 = 0; + a12 = 10; + a27 = 0; + a0 = 1; + a3 = 7; + a5 = 1; + return 26; + } else if(((a15==1)&&((!(a22==1)&&(((((a6==1)&&((a5==1)&&(((((a18==1)||!(a18==1))&&(input==4))&&!(a0==1))&&(a20==1))))&&(a27==1))&&(a3==5))&&!(a4==1)))&&(a12==8)))){ + a18 = 1; + a12 = 11; + a5 = 0; + a15 = 0; + a3 = 4; + a27 = 0; + a0 = 1; + return 26; + } else if(((!(a15==1)&&((((a3==6)&&((!(a6==1)&&(!(a27==1)&&(((!(a22==1)&&(input==6))&&!(a4==1))&&!(a18==1))))&&(a20==1)))&&(a12==11))&&!(a0==1)))&&(a5==1))){ + if((a22==1)){ + a3 = 4; + a15 = 1; + a18 = 1; + a4 = 1; + a6 = 1; + a12 = 9; + a22 = 1; + a5 = 0; + }else{ + a12 = 12; + a18 = 1; + a0 = 1; + a3 = 8; + a15 = 1; + a6 = 1; + a22 = 1; + } + return 21; + } else if(((a5==1)&&((a12==8)&&((a3==8)&&(((((a6==1)&&(((a27==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&(a4==1)))&&(a0==1)))&&(a20==1))&&(a22==1))&&!(a15==1)))))){ + a18 = 0; + a15 = 1; + a4 = 0; + a22 = 0; + a5 = 0; + return 21; + } else if((((a5==1)&&((a12==8)&&((((a3==6)&&((a20==1)&&((!(a18==1)&&(!(a6==1)&&((input==4)&&(a15==1))))&&!(a0==1))))&&(a27==1))&&(a22==1))))&&(a4==1))){ + a4 = 0; + a22 = 0; + a3 = 5; + a18 = 1; + a6 = 1; + return 26; + } else if(((a3==8)&&(!(a4==1)&&((!(a27==1)&&((((a20==1)&&(((a22==1)&&((((a18==1)||!(a18==1))&&(input==1))&&!(a6==1)))&&!(a15==1)))&&(a0==1))&&(a12==12)))&&!(a5==1))))){ + a6 = 1; + a12 = 8; + a18 = 1; + a4 = 1; + a27 = 1; + a5 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if(((!(a22==1)&&((((a20==1)&&((((a12==8)&&((((input==6)&&((a18==1)||!(a18==1)))&&!(a15==1))&&(a5==1)))&&(a4==1))&&(a0==1)))&&!(a6==1))&&!(a27==1)))&&(a3==5))){ + a15 = 1; + a3 = 4; + a22 = 1; + a27 = 1; + a6 = 1; + a18 = 1; + return -1; + } else if((((((((!(a0==1)&&(!(a5==1)&&((input==5)&&((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==5)))||((a3==5)&&((a22==1)&&!(a18==1)))))))&&(a6==1))&&!(a4==1))&&(a20==1))&&(a12==10))&&!(a15==1))&&(a27==1))){ + a22 = 1; + a0 = 1; + a3 = 4; + a12 = 9; + a27 = 0; + a15 = 1; + a5 = 1; + a6 = 0; + a18 = 1; + return -1; + } else if(((a3==7)&&(!(a22==1)&&((a27==1)&&(((((!(a15==1)&&((a20==1)&&(!(a18==1)&&((a12==8)&&(input==5)))))&&!(a6==1))&&(a5==1))&&!(a0==1))&&!(a4==1)))))){ + a15 = 1; + a6 = 1; + a18 = 1; + a0 = 1; + a12 = 10; + return 21; + } else if((((((((!(a4==1)&&((((input==2)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&!(a5==1))&&(a0==1)))&&(a20==1))&&(a15==1))&&(a12==12))&&!(a6==1))&&(a27==1))&&(a3==8))){ + if((a20==1)){ + a3 = 5; + a22 = 0; + a18 = 1; + a15 = 0; + a12 = 10; + a0 = 0; + }else{ + a4 = 1; + a18 = 0; + a12 = 10; + a22 = 0; + a27 = 0; + } + return 21; + } else if(((a0==1)&&((((((!(a4==1)&&((a27==1)&&((a6==1)&&((a22==1)&&((input==3)&&((a18==1)||!(a18==1)))))))&&(a5==1))&&(a15==1))&&(a3==7))&&(a20==1))&&(a12==11)))){ + a12 = 12; + a15 = 0; + a22 = 0; + a18 = 0; + return 26; + } else if((((a20==1)&&((a15==1)&&((((((a27==1)&&(((((a18==1)||!(a18==1))&&(input==4))&&!(a5==1))&&(a0==1)))&&(a6==1))&&(a3==7))&&!(a4==1))&&(a12==8))))&&!(a22==1))){ + a22 = 1; + a15 = 0; + a18 = 0; + a12 = 10; + a3 = 8; + a5 = 1; + a4 = 1; + return 24; + } else if(((a3==4)&&((a5==1)&&(!(a4==1)&&(!(a22==1)&&((!(a15==1)&&((((a0==1)&&((a12==11)&&((a27==1)&&(input==4))))&&!(a6==1))&&(a18==1)))&&(a20==1))))))){ + if((a27==1)){ + a3 = 8; + a4 = 1; + a15 = 1; + a22 = 1; + a12 = 9; + a5 = 0; + a0 = 0; + }else{ + a0 = 0; + a12 = 8; + a3 = 5; + a22 = 1; + a18 = 0; + a4 = 1; + } + return 24; + } else if((!(a4==1)&&(((a20==1)&&((((a0==1)&&(((a3==7)&&(!(a6==1)&&((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&!(a15==1)))&&(a12==10))&&!(a27==1)))&&(a5==1)))){ + a22 = 0; + a3 = 8; + a12 = 12; + a18 = 1; + return 21; + } else if(((((a6==1)&&((!(a5==1)&&(((a20==1)&&(!(a27==1)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==4))))&&(a4==1)))&&(a12==10)))&&(a0==1))&&!(a15==1))){ + a15 = 1; + a27 = 1; + a22 = 0; + a3 = 6; + a6 = 0; + a5 = 1; + a18 = 0; + return 21; + } else if((((a12==9)&&((a27==1)&&((a22==1)&&(!(a5==1)&&((!(a4==1)&&((a20==1)&&((((input==4)&&((a18==1)||!(a18==1)))&&!(a6==1))&&!(a15==1))))&&(a3==4))))))&&!(a0==1))){ + a18 = 1; + a3 = 7; + a22 = 0; + a5 = 1; + a27 = 0; + a12 = 12; + a0 = 1; + a6 = 1; + return 21; + } else if(((a6==1)&&(((((a20==1)&&(((a0==1)&&(((a12==11)&&(!(a4==1)&&((input==5)&&((a18==1)||!(a18==1)))))&&(a3==5)))&&(a5==1)))&&(a15==1))&&!(a27==1))&&!(a22==1)))){ + a27 = 1; + a6 = 0; + a15 = 0; + a3 = 4; + a18 = 1; + a4 = 1; + a5 = 0; + a22 = 1; + return 26; + } else if(((a27==1)&&(((a15==1)&&((!(a18==1)&&(!(a6==1)&&(((a20==1)&&(((a3==8)&&((input==1)&&!(a0==1)))&&(a5==1)))&&(a12==10))))&&!(a22==1)))&&!(a4==1)))){ + a4 = 1; + a12 = 8; + a3 = 4; + a0 = 1; + a6 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((((!(a18==1)&&((((a20==1)&&((!(a6==1)&&(((a22==1)&&(input==6))&&(a4==1)))&&!(a27==1)))&&(a12==11))&&!(a5==1)))&&(a0==1))&&(a3==6))&&(a15==1))){ + a18 = 1; + return -1; + } else if(((a0==1)&&(((a4==1)&&(!(a15==1)&&((a3==8)&&((a20==1)&&((a22==1)&&(((((input==3)&&(a18==1))&&(a6==1))&&(a12==12))&&!(a27==1)))))))&&!(a5==1)))){ + a5 = 1; + a4 = 0; + a27 = 1; + a15 = 1; + a3 = 4; + a6 = 0; + return 26; + } else if((!(a22==1)&&(((a20==1)&&((a6==1)&&(!(a27==1)&&(!(a5==1)&&(!(a4==1)&&(((a3==6)&&(((input==5)&&((a18==1)||!(a18==1)))&&!(a15==1)))&&(a12==9)))))))&&!(a0==1)))){ + a27 = 1; + a12 = 8; + a5 = 1; + a18 = 0; + a15 = 1; + a4 = 1; + a3 = 8; + a0 = 1; + return -1; + } else if(((a0==1)&&((a20==1)&&(!(a27==1)&&((a6==1)&&(!(a15==1)&&((!(a4==1)&&(((a12==9)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==3)))&&(a3==4)))&&(a5==1)))))))){ + a12 = 12; + a18 = 0; + a15 = 1; + a22 = 1; + a3 = 5; + a6 = 0; + return 21; + } else if(((a27==1)&&((a20==1)&&(((a5==1)&&((a12==10)&&(((input==5)&&((((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1))))&&!(a6==1))||((a6==1)&&((a3==4)&&(!(a4==1)&&((a22==1)&&(a18==1)))))))&&(a15==1))))&&!(a0==1))))){ + a18 = 0; + a4 = 1; + a6 = 0; + a3 = 5; + a12 = 11; + a22 = 1; + a15 = 0; + return -1; + } else if(((!(a22==1)&&(((a0==1)&&((!(a4==1)&&((!(a5==1)&&((a6==1)&&(!(a27==1)&&((input==2)&&((a18==1)||!(a18==1))))))&&(a3==8)))&&(a20==1)))&&(a12==9)))&&(a15==1))){ + if((a5==1)){ + a4 = 1; + a5 = 1; + a18 = 0; + a3 = 4; + a6 = 0; + a0 = 0; + a15 = 0; + a27 = 1; + }else{ + a6 = 0; + a3 = 5; + a22 = 1; + a5 = 1; + a18 = 0; + a12 = 11; + } + return 26; + } else if((!(a4==1)&&(((((a20==1)&&(((!(a0==1)&&(!(a22==1)&&((a12==10)&&((input==6)&&((a18==1)||!(a18==1))))))&&(a6==1))&&(a3==4)))&&!(a5==1))&&!(a27==1))&&!(a15==1)))){ + a12 = 11; + a4 = 1; + a5 = 1; + a3 = 8; + a27 = 1; + a18 = 1; + return 21; + } else if(((a22==1)&&((a3==4)&&((a20==1)&&(((a15==1)&&(!(a27==1)&&((a6==1)&&((a0==1)&&((((a12==11)&&(input==1))&&!(a5==1))&&(a4==1))))))&&(a18==1)))))){ + a12 = 10; + a18 = 0; + a4 = 0; + a3 = 5; + a6 = 0; + return -1; + } else if(((a4==1)&&((a3==8)&&(!(a5==1)&&((a22==1)&&(!(a15==1)&&(((a0==1)&&(!(a18==1)&&((((a20==1)&&(input==4))&&(a12==12))&&!(a27==1))))&&(a6==1)))))))){ + a6 = 0; + a22 = 0; + a18 = 1; + a5 = 1; + a12 = 10; + a3 = 4; + a27 = 1; + return -1; + } else if(((a12==12)&&(((a15==1)&&((((a3==6)&&(((!(a0==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5)))&&(a27==1))&&(a20==1)))&&(a5==1))&&(a4==1)))&&(a6==1)))){ + a0 = 1; + a15 = 0; + a6 = 0; + a12 = 11; + a22 = 1; + a3 = 4; + a18 = 1; + return 24; + } else if((((a20==1)&&(((((a12==10)&&(((a5==1)&&(!(a27==1)&&((((a18==1)||!(a18==1))&&(input==2))&&(a6==1))))&&!(a15==1)))&&(a0==1))&&!(a22==1))&&(a4==1)))&&(a3==4))){ + a27 = 1; + a15 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + return -1; + } else if((!(a6==1)&&((a27==1)&&(((a12==9)&&(!(a5==1)&&(((a20==1)&&(!(a0==1)&&((input==3)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==7))))))&&(a15==1))))&&(a4==1))))){ + a6 = 1; + a4 = 0; + a12 = 10; + a5 = 1; + a3 = 4; + a22 = 0; + a0 = 1; + a18 = 0; + return -1; + } else if((!(a27==1)&&((((a12==8)&&((a20==1)&&(!(a6==1)&&((((a15==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==1)))&&(a0==1))&&!(a4==1)))))&&(a5==1))&&(a3==4)))){ + a22 = 0; + a18 = 1; + a5 = 0; + a3 = 5; + a12 = 11; + a15 = 0; + a27 = 1; + return 21; + } else if((!(a18==1)&&((((((a22==1)&&(((a0==1)&&((((input==2)&&(a3==5))&&!(a4==1))&&(a15==1)))&&(a27==1)))&&(a20==1))&&!(a6==1))&&!(a5==1))&&(a12==10)))){ + a4 = 1; + a3 = 4; + a15 = 0; + a22 = 0; + a27 = 0; + a5 = 1; + return 26; + } else if((!(a22==1)&&((((((a12==9)&&((a20==1)&&((a27==1)&&((((a18==1)&&(input==1))&&(a0==1))&&!(a15==1)))))&&(a4==1))&&(a5==1))&&(a3==8))&&!(a6==1)))){ + a15 = 1; + a27 = 0; + a6 = 1; + a12 = 8; + a18 = 0; + a3 = 7; + return 21; + } else if((((a3==6)&&(!(a0==1)&&((!(a6==1)&&(((a12==10)&&(((a5==1)&&((input==6)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))))&&(a15==1)))&&(a20==1)))&&(a4==1))))&&!(a27==1))){ + a27 = 1; + a22 = 1; + a12 = 8; + a3 = 8; + a0 = 1; + a18 = 0; + return -1; + } else if(((((a15==1)&&((a5==1)&&((((((input==6)&&(((((a18==1)&&!(a22==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))||((a3==6)&&((a22==1)&&(a18==1)))))&&(a20==1))&&(a4==1))&&(a0==1))&&(a12==10))))&&(a6==1))&&!(a27==1))){ + a22 = 1; + a15 = 0; + a3 = 8; + a12 = 8; + a18 = 1; + a6 = 0; + a27 = 1; + a0 = 0; + return 21; + } else if(((a12==10)&&((a3==4)&&((a27==1)&&((!(a0==1)&&(((((!(a6==1)&&((input==4)&&((a18==1)||!(a18==1))))&&(a15==1))&&(a5==1))&&(a4==1))&&(a20==1)))&&(a22==1)))))){ + a6 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((a22==1)&&((a27==1)&&(!(a0==1)&&((((a3==5)&&((a15==1)&&((a6==1)&&((a18==1)&&(((a12==11)&&(input==4))&&!(a4==1))))))&&!(a5==1))&&(a20==1)))))){ + a12 = 8; + a3 = 4; + a0 = 1; + a5 = 1; + a4 = 1; + return -1; + } else if(((a5==1)&&(!(a15==1)&&((!(a27==1)&&((a12==11)&&(!(a4==1)&&(((((((!(a22==1)&&(a18==1))&&(a3==8))&&(a6==1))||(((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1)))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1)))&&(input==3))&&!(a0==1)))))&&(a20==1))))){ + a3 = 4; + a6 = 0; + a12 = 8; + a22 = 1; + a18 = 1; + a0 = 1; + a27 = 1; + a15 = 1; + a4 = 1; + return 21; + } else if(((!(a0==1)&&((((a20==1)&&((a3==8)&&(!(a22==1)&&(((a15==1)&&(((input==4)&&(a5==1))&&!(a27==1)))&&(a6==1)))))&&(a18==1))&&(a12==10)))&&(a4==1))){ + a27 = 1; + a12 = 8; + a22 = 1; + a0 = 1; + a4 = 0; + a3 = 5; + a18 = 0; + return 21; + } else if((!(a22==1)&&(!(a6==1)&&((a15==1)&&((a0==1)&&((a4==1)&&(((!(a5==1)&&(((a3==6)&&((a12==11)&&(input==3)))&&(a20==1)))&&(a18==1))&&!(a27==1)))))))){ + a6 = 1; + a3 = 5; + a27 = 1; + a12 = 12; + a22 = 1; + a18 = 0; + return 26; + } else if(((((!(a0==1)&&(!(a4==1)&&(((a15==1)&&(!(a5==1)&&((a27==1)&&((a22==1)&&(((a18==1)||!(a18==1))&&(input==4))))))&&(a12==12))))&&(a3==8))&&!(a6==1))&&(a20==1))){ + a0 = 1; + a22 = 0; + a12 = 8; + a5 = 1; + a3 = 5; + a4 = 1; + a18 = 0; + a6 = 1; + return -1; + } else if(((a12==9)&&((((a27==1)&&((((!(a15==1)&&((input==3)&&(((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))))&&!(a4==1))&&(a20==1))&&(a6==1)))&&!(a0==1))&&(a5==1)))){ + a0 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a22 = 1; + a15 = 1; + a4 = 1; + return -1; + } else if(((a0==1)&&((a20==1)&&(!(a27==1)&&(((a12==8)&&((((a4==1)&&(((a5==1)&&((input==6)&&((a18==1)||!(a18==1))))&&!(a6==1)))&&(a3==5))&&(a15==1)))&&(a22==1)))))){ + a6 = 1; + a3 = 4; + a18 = 1; + a27 = 1; + return -1; + } else if(((a27==1)&&((((((a4==1)&&((a5==1)&&((((a3==6)&&((input==1)&&(a12==10)))&&!(a0==1))&&(a20==1))))&&!(a15==1))&&(a18==1))&&!(a6==1))&&(a22==1)))){ + a18 = 0; + a0 = 1; + a12 = 8; + a22 = 0; + a5 = 0; + return 21; + } else if(((a5==1)&&(!(a15==1)&&(((a0==1)&&(!(a4==1)&&((((((((a3==5)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==5)))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==4))&&!(a27==1))&&(a12==10))&&(a20==1))))&&(a6==1))))){ + a15 = 1; + a6 = 0; + a18 = 0; + a12 = 9; + a3 = 7; + a22 = 0; + a4 = 1; + return 21; + } else if((((a27==1)&&((((!(a4==1)&&(!(a5==1)&&((a12==9)&&((input==6)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))||((a3==8)&&(!(a18==1)&&(a22==1))))))))&&(a15==1))&&(a6==1))&&(a20==1)))&&(a0==1))){ + a3 = 4; + a6 = 0; + a18 = 1; + a22 = 0; + a12 = 11; + return 26; + } else if((!(a0==1)&&((!(a5==1)&&(((((a15==1)&&(((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==4))&&(a27==1))&&(a3==8)))&&(a12==8))&&!(a4==1))&&(a20==1)))&&(a6==1)))){ + a0 = 1; + a6 = 0; + a5 = 1; + a18 = 0; + a12 = 12; + a15 = 0; + a27 = 0; + a22 = 0; + a3 = 6; + return 26; + } else if((((((a4==1)&&((((a15==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==1))&&(a3==7))&&(a6==1)))&&!(a0==1))&&!(a5==1)))&&(a20==1))&&(a12==11))&&!(a27==1))){ + a15 = 0; + a0 = 1; + a6 = 0; + a18 = 1; + a22 = 0; + a12 = 8; + return -1; + } else if(((!(a0==1)&&((a12==9)&&(((((a20==1)&&((!(a15==1)&&((input==4)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&!(a27==1)))&&!(a5==1))&&(a3==5))&&(a4==1))))&&(a6==1))){ + if((a3==4)){ + a6 = 0; + a3 = 7; + a5 = 1; + a12 = 8; + a0 = 1; + a22 = 0; + a27 = 1; + a18 = 1; + a15 = 1; + }else{ + a4 = 0; + a18 = 0; + a22 = 1; + a6 = 0; + a12 = 8; + a5 = 1; + a3 = 4; + } + return 21; + } else if(((!(a27==1)&&((((((!(a4==1)&&((!(a15==1)&&((!(a18==1)&&!(a22==1))&&!(a5==1)))&&(a12==9)))&&(a3==8))&&!(a6==1))||((a6==1)&&(((((((a22==1)&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==10))&&(a4==1))&&(a3==4))))&&(input==5))&&(a20==1)))&&!(a0==1))){ + a15 = 1; + a22 = 1; + a6 = 1; + a4 = 1; + a18 = 1; + a12 = 8; + a5 = 1; + a0 = 1; + a3 = 8; + a27 = 1; + return 26; + } else if((((((a27==1)&&((a3==5)&&(!(a4==1)&&(!(a22==1)&&(((a18==1)&&(((a20==1)&&(input==4))&&(a6==1)))&&(a15==1))))))&&!(a0==1))&&(a5==1))&&(a12==10))){ + a0 = 1; + a6 = 0; + a4 = 1; + a3 = 4; + a27 = 0; + a18 = 0; + return 21; + } else if(((!(a6==1)&&((!(a5==1)&&((a27==1)&&((a20==1)&&((((a15==1)&&(((a3==6)&&(input==2))&&!(a0==1)))&&!(a18==1))&&(a12==8)))))&&!(a4==1)))&&(a22==1))){ + a3 = 5; + a22 = 0; + a6 = 1; + a4 = 1; + a15 = 0; + a0 = 1; + a18 = 1; + a12 = 10; + return -1; + } else if(((!(a18==1)&&((!(a5==1)&&(((a4==1)&&((a12==11)&&(!(a0==1)&&((a6==1)&&((a3==5)&&(!(a22==1)&&(input==6)))))))&&!(a27==1)))&&(a20==1)))&&!(a15==1))){ + if((a4==1)){ + a15 = 1; + a0 = 1; + a22 = 1; + a27 = 1; + a3 = 8; + a12 = 8; + a5 = 1; + a6 = 0; + }else{ + a22 = 1; + a0 = 1; + a27 = 1; + a15 = 1; + a4 = 0; + a6 = 0; + a12 = 10; + } + return 21; + } else if((!(a0==1)&&((a12==9)&&((!(a27==1)&&((!(a6==1)&&((a5==1)&&(!(a22==1)&&((!(a18==1)&&((input==4)&&(a3==6)))&&(a4==1)))))&&(a20==1)))&&!(a15==1))))){ + if((a6==1)){ + a0 = 1; + a3 = 4; + a4 = 0; + a27 = 1; + a18 = 1; + a22 = 1; + a12 = 10; + }else{ + a4 = 0; + a0 = 1; + a18 = 1; + a15 = 1; + a27 = 1; + a3 = 4; + a5 = 0; + } + return -1; + } else if(((((((a12==11)&&(!(a15==1)&&(!(a0==1)&&((((input==6)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&(a20==1))&&(a6==1)))))&&(a3==8))&&(a5==1))&&(a27==1))&&!(a4==1))){ + a22 = 1; + a0 = 1; + a12 = 8; + a4 = 1; + a3 = 4; + a18 = 1; + a15 = 1; + return -1; + } else if(((a6==1)&&((((a15==1)&&((a20==1)&&(((a27==1)&&(((input==1)&&((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6)))||((a3==6)&&(!(a18==1)&&(a22==1)))))&&!(a0==1)))&&(a12==11))))&&(a5==1))&&!(a4==1)))){ + a22 = 1; + a18 = 1; + a4 = 1; + a0 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((!(a15==1)&&((a4==1)&&((a0==1)&&((a12==9)&&(((a20==1)&&((a27==1)&&(((input==3)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&(a3==4))))&&!(a6==1))))))&&!(a5==1))){ + a15 = 1; + a18 = 1; + a12 = 8; + a3 = 7; + a22 = 1; + a6 = 1; + return 21; + } else if(((a4==1)&&(((a3==5)&&((a20==1)&&((a0==1)&&((a12==12)&&((((a22==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a15==1)))&&!(a6==1))&&!(a5==1))))))&&(a27==1)))){ + a12 = 11; + a22 = 0; + a18 = 0; + a5 = 1; + a3 = 8; + return 21; + } else if(((a12==8)&&((a27==1)&&(!(a15==1)&&((!(a5==1)&&((a0==1)&&(!(a4==1)&&(!(a6==1)&&((input==2)&&((((a3==7)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==7)))||(((a18==1)&&(a22==1))&&(a3==8))))))))&&(a20==1)))))){ + if((a27==1)){ + a22 = 0; + a18 = 0; + a5 = 1; + a0 = 0; + a15 = 1; + a3 = 6; + a12 = 12; + }else{ + a6 = 1; + a3 = 5; + a22 = 1; + a12 = 11; + a15 = 1; + a18 = 1; + } + return 21; + } else if(((((((a3==8)&&(!(a6==1)&&((((a20==1)&&((a15==1)&&(((a18==1)||!(a18==1))&&(input==3))))&&(a12==8))&&!(a0==1))))&&(a4==1))&&(a5==1))&&!(a27==1))&&!(a22==1))){ + if((a18==1)){ + a12 = 9; + a22 = 1; + a27 = 1; + a5 = 0; + a18 = 0; + a3 = 4; + a4 = 0; + }else{ + a15 = 0; + a18 = 0; + a4 = 0; + a5 = 0; + } + return 26; + } else if((((((a15==1)&&((((((a20==1)&&(((input==2)&&!(a0==1))&&(a5==1)))&&(a18==1))&&(a12==10))&&!(a22==1))&&!(a27==1)))&&(a6==1))&&(a4==1))&&(a3==7))){ + a15 = 0; + a27 = 1; + a6 = 0; + a5 = 0; + return 24; + } else if((((a20==1)&&(!(a5==1)&&(((a6==1)&&(!(a15==1)&&((a4==1)&&((!(a0==1)&&((input==2)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))))&&(a12==10)))))&&(a3==5))))&&(a27==1))){ + a22 = 0; + a18 = 1; + a5 = 1; + a3 = 4; + a15 = 1; + a0 = 1; + return 26; + } else if(((((a0==1)&&(((((a5==1)&&((((input==1)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&(a12==11))&&(a15==1)))&&(a20==1))&&(a3==4))&&(a6==1)))&&!(a4==1))&&(a27==1))){ + if((a0==1)){ + a3 = 7; + a12 = 8; + a18 = 0; + a15 = 0; + a6 = 0; + a0 = 0; + a22 = 0; + a4 = 1; + }else{ + a15 = 0; + a3 = 6; + a22 = 0; + a0 = 0; + a18 = 0; + a5 = 0; + a12 = 10; + a6 = 0; + } + return 21; + } else if(((!(a0==1)&&(!(a15==1)&&(((!(a5==1)&&(!(a6==1)&&(((a12==9)&&((input==6)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))&&(a3==6))))&&!(a27==1))&&(a20==1))))&&(a4==1))){ + if((a12==9)){ + a27 = 1; + a15 = 1; + a3 = 8; + a18 = 0; + a0 = 1; + a5 = 1; + a12 = 8; + a22 = 0; + }else{ + a0 = 1; + a18 = 1; + a6 = 1; + a15 = 1; + a3 = 7; + a5 = 1; + a12 = 11; + a22 = 1; + } + return 24; + } else if((((a20==1)&&((a27==1)&&((((!(a0==1)&&(((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==4))&&(a12==10)))&&(a15==1))&&(a6==1))&&(a4==1))))&&!(a5==1))){ + a22 = 1; + a4 = 0; + a3 = 5; + a18 = 1; + a12 = 11; + return -1; + } else if(((!(a18==1)&&((a12==12)&&((((a6==1)&&(((a15==1)&&(((a4==1)&&((a27==1)&&(input==4)))&&(a0==1)))&&(a20==1)))&&!(a22==1))&&(a3==4))))&&(a5==1))){ + a12 = 8; + a18 = 1; + a22 = 1; + return -1; + } else if((((a3==4)&&((((((a0==1)&&((a20==1)&&(!(a27==1)&&((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))))&&!(a15==1))&&!(a6==1))&&!(a4==1))&&(a12==8)))&&(a5==1))){ + a15 = 1; + a3 = 6; + a18 = 0; + a12 = 10; + a5 = 0; + a22 = 1; + return 21; + } else if((!(a5==1)&&((((!(a6==1)&&((a0==1)&&(!(a22==1)&&((!(a4==1)&&((a12==10)&&(((a18==1)||!(a18==1))&&(input==2))))&&(a20==1)))))&&(a15==1))&&(a27==1))&&(a3==5)))){ + a12 = 8; + a18 = 1; + a5 = 1; + a22 = 1; + a6 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if(((a0==1)&&((a20==1)&&((((a27==1)&&(((((!(a6==1)&&((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1)))))||((a6==1)&&((((a22==1)&&(a18==1))&&!(a4==1))&&(a3==4))))||((a6==1)&&((!(a4==1)&&((a22==1)&&!(a18==1)))&&(a3==4))))&&(input==1))&&(a5==1)))&&(a12==9))&&!(a15==1))))){ + a12 = 8; + a15 = 1; + a4 = 1; + a3 = 4; + a22 = 1; + a6 = 0; + a18 = 0; + a27 = 0; + return 21; + } else if(((a12==9)&&(!(a6==1)&&((((a0==1)&&((a20==1)&&((!(a5==1)&&(!(a15==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2))))&&(a3==8))))&&(a4==1))&&(a27==1))))){ + a12 = 10; + a18 = 0; + a3 = 4; + a5 = 1; + a15 = 1; + a6 = 1; + a22 = 1; + return 26; + } else if(((a12==11)&&((!(a27==1)&&(((a15==1)&&((a6==1)&&(!(a0==1)&&((a3==5)&&(!(a5==1)&&((input==3)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))))))))&&(a20==1)))&&!(a4==1)))){ + if((a15==1)){ + a6 = 0; + a22 = 1; + a4 = 1; + a0 = 1; + a18 = 0; + a27 = 1; + a5 = 1; + a3 = 7; + a12 = 8; + }else{ + a3 = 6; + a22 = 0; + a18 = 1; + a27 = 1; + } + return 21; + } else if((((a3==4)&&((a12==8)&&((!(a27==1)&&(((!(a0==1)&&(((input==2)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a6==1)))&&(a20==1))&&!(a5==1)))&&(a15==1))))&&(a4==1))){ + a6 = 0; + a22 = 0; + a5 = 1; + a18 = 1; + a3 = 6; + a27 = 1; + a0 = 1; + return 26; + } else if(((!(a15==1)&&(!(a0==1)&&(((a20==1)&&(((((a12==8)&&((input==4)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&!(a6==1))&&(a5==1))&&(a3==6)))&&(a4==1))))&&(a27==1))){ + a3 = 7; + a27 = 0; + a18 = 0; + a0 = 1; + a22 = 0; + a12 = 9; + return -1; + } else if(((a12==12)&&((a15==1)&&(((((!(a4==1)&&((a0==1)&&(((input==6)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a3==5))))&&!(a5==1))&&(a20==1))&&!(a6==1))&&!(a27==1))))){ + a18 = 1; + a15 = 0; + a22 = 0; + a6 = 1; + a3 = 4; + a27 = 1; + return 21; + } else if(((a15==1)&&((!(a18==1)&&((!(a22==1)&&(!(a5==1)&&(!(a27==1)&&(!(a6==1)&&((((a3==7)&&(input==6))&&(a4==1))&&(a0==1))))))&&(a20==1)))&&(a12==8)))){ + if((a6==1)){ + a27 = 1; + a0 = 0; + a12 = 11; + a15 = 0; + a3 = 6; + }else{ + a12 = 12; + a4 = 0; + a5 = 1; + a18 = 1; + a3 = 8; + a22 = 1; + a27 = 1; + a6 = 1; + } + return -1; + } else if(((!(a0==1)&&((!(a22==1)&&(!(a27==1)&&(!(a5==1)&&(((a20==1)&&((a12==10)&&((a15==1)&&(((a18==1)||!(a18==1))&&(input==6)))))&&(a4==1)))))&&(a3==8)))&&(a6==1))){ + a15 = 0; + a0 = 1; + a6 = 0; + a18 = 0; + a27 = 1; + return -1; + } else if(((a4==1)&&(((a0==1)&&(((a3==4)&&((!(a27==1)&&(!(a5==1)&&(!(a6==1)&&((input==5)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))&&(a12==10)))&&!(a15==1)))&&(a20==1)))){ + a15 = 1; + a18 = 1; + a6 = 1; + a5 = 1; + a22 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if(((a0==1)&&((a4==1)&&((a20==1)&&((!(a27==1)&&((a12==11)&&((a15==1)&&((a5==1)&&((input==2)&&(((a3==6)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))))))))&&(a6==1)))))){ + a18 = 1; + a3 = 8; + a12 = 9; + a6 = 0; + a15 = 0; + a22 = 1; + return -1; + } else if(((a20==1)&&((((a12==9)&&((a3==8)&&(((!(a6==1)&&((((input==2)&&(a18==1))&&(a4==1))&&!(a22==1)))&&!(a5==1))&&(a15==1))))&&(a27==1))&&(a0==1)))){ + if((a6==1)){ + a4 = 0; + a22 = 1; + a6 = 1; + a0 = 0; + a12 = 8; + }else{ + a18 = 0; + a27 = 0; + a6 = 1; + a3 = 6; + a12 = 8; + } + return 26; + } else if((!(a6==1)&&(!(a5==1)&&(!(a22==1)&&((a15==1)&&(((a12==9)&&((((((input==6)&&(a18==1))&&!(a0==1))&&(a3==7))&&(a4==1))&&(a27==1)))&&(a20==1))))))){ + a0 = 1; + a12 = 8; + a22 = 1; + a5 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if(((a27==1)&&(!(a15==1)&&(!(a18==1)&&((a4==1)&&(((!(a22==1)&&((a0==1)&&((((a20==1)&&(input==2))&&!(a6==1))&&(a5==1))))&&(a12==11))&&(a3==8))))))){ + a4 = 0; + a6 = 1; + a12 = 10; + a22 = 1; + return -1; + } else if((((((!(a4==1)&&(((a20==1)&&(((input==4)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1)))))&&!(a6==1)))&&(a15==1)))&&(a27==1))&&(a12==8))&&!(a5==1))&&(a0==1))){ + a22 = 1; + a18 = 0; + a12 = 10; + a15 = 0; + a3 = 8; + a5 = 1; + return 26; + } else if((!(a6==1)&&(((!(a5==1)&&((a20==1)&&(!(a15==1)&&(((a27==1)&&(!(a22==1)&&(!(a4==1)&&((input==2)&&((a18==1)||!(a18==1))))))&&(a0==1)))))&&(a12==12))&&(a3==6)))){ + a22 = 1; + a12 = 10; + a15 = 1; + a4 = 1; + a18 = 0; + a3 = 4; + return 26; + } else if(((a4==1)&&((a12==10)&&((!(a0==1)&&(!(a5==1)&&((a20==1)&&((((a6==1)&&((input==6)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))))&&!(a15==1))&&(a27==1)))))&&(a3==7))))){ + a4 = 0; + a12 = 11; + a22 = 0; + a18 = 1; + a3 = 4; + a0 = 1; + return -1; + } else if((!(a6==1)&&(((a3==4)&&(((a4==1)&&(!(a18==1)&&(((!(a0==1)&&(((a5==1)&&(input==6))&&(a20==1)))&&!(a22==1))&&(a12==11))))&&!(a15==1)))&&(a27==1)))){ + a12 = 9; + a27 = 0; + a3 = 6; + a0 = 1; + a15 = 1; + return 26; + } else if(((a22==1)&&((a3==5)&&(((((!(a0==1)&&(((!(a5==1)&&((input==2)&&(a15==1)))&&(a20==1))&&(a12==8)))&&!(a6==1))&&(a18==1))&&(a27==1))&&(a4==1))))){ + a3 = 4; + a0 = 1; + a6 = 1; + a5 = 1; + return -1; + } else if(((a3==8)&&(((!(a15==1)&&(((a20==1)&&((((a27==1)&&(!(a6==1)&&(((a18==1)||!(a18==1))&&(input==4))))&&!(a4==1))&&(a12==9)))&&(a5==1)))&&(a22==1))&&!(a0==1)))){ + a4 = 1; + a22 = 0; + a6 = 1; + a0 = 1; + a15 = 1; + a18 = 1; + return 26; + } else if(((a4==1)&&((a12==8)&&(((a0==1)&&((((a5==1)&&(!(a6==1)&&((input==5)&&(((((a18==1)&&!(a22==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))||(((a22==1)&&(a18==1))&&(a3==7))))))&&(a20==1))&&!(a15==1)))&&(a27==1))))){ + a6 = 1; + a3 = 8; + a5 = 0; + a18 = 0; + a4 = 0; + a22 = 0; + return 21; + } else if(((a20==1)&&(!(a0==1)&&((!(a6==1)&&((a5==1)&&(((a12==12)&&(!(a15==1)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==3))))&&(a4==1))))&&(a27==1))))){ + a18 = 0; + a22 = 0; + a4 = 0; + a3 = 7; + a12 = 10; + return -1; + } return calculate_output11(input); + } + + int calculate_output11(int input) { + if(((!(a5==1)&&(((a27==1)&&((a20==1)&&((((!(a6==1)&&((a3==8)&&(((!(a22==1)&&(a18==1))&&(a15==1))&&!(a4==1))))||(!(a6==1)&&((a3==8)&&(((a15==1)&&(!(a18==1)&&!(a22==1)))&&!(a4==1)))))||(((a3==4)&&((a4==1)&&(((a22==1)&&(a18==1))&&!(a15==1))))&&(a6==1)))&&(input==4))))&&(a12==8)))&&(a0==1))){ + a4 = 1; + a22 = 0; + a3 = 8; + a12 = 10; + a6 = 0; + a15 = 1; + a18 = 0; + return 26; + } else if((((a3==4)&&(((a15==1)&&(((a22==1)&&((!(a4==1)&&((a20==1)&&((a5==1)&&((input==6)&&(a12==10)))))&&(a6==1)))&&!(a18==1)))&&(a27==1)))&&(a0==1))){ + a5 = 0; + a3 = 8; + a4 = 1; + return 26; + } else if(((((a15==1)&&((a20==1)&&(!(a4==1)&&((a12==11)&&(((!(a6==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2)))&&(a27==1))&&(a3==4))))))&&!(a5==1))&&(a0==1))){ + a22 = 1; + a4 = 1; + a18 = 0; + a12 = 10; + return -1; + } else if((((a3==8)&&(((!(a27==1)&&(!(a0==1)&&((a15==1)&&(((a12==9)&&(((a18==1)&&(input==5))&&(a22==1)))&&!(a5==1)))))&&(a4==1))&&!(a6==1)))&&(a20==1))){ + a0 = 1; + a12 = 12; + a6 = 1; + a5 = 1; + a18 = 0; + a3 = 7; + return -1; + } else if(((((a3==8)&&((a27==1)&&((a0==1)&&(!(a6==1)&&((a12==11)&&((a4==1)&&(!(a5==1)&&((input==1)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))))))))&&(a15==1))&&(a20==1))){ + a4 = 0; + a5 = 1; + a22 = 0; + a6 = 1; + a18 = 0; + a12 = 10; + return -1; + } else if(((a12==11)&&(!(a6==1)&&((((((a0==1)&&(((a15==1)&&((a20==1)&&(((a18==1)||!(a18==1))&&(input==4))))&&(a4==1)))&&!(a27==1))&&!(a22==1))&&(a5==1))&&(a3==6))))){ + a18 = 1; + a12 = 12; + return 26; + } else if((!(a15==1)&&(((a27==1)&&((a20==1)&&((((((input==4)&&(((a3==6)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))))&&(a0==1))&&(a5==1))&&(a4==1))&&(a12==10))))&&(a6==1)))){ + a15 = 1; + a3 = 6; + a22 = 1; + a18 = 1; + return -1; + } else if(((((!(a27==1)&&((a3==7)&&(((!(a0==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&(a12==11)))&&(a6==1))&&(a5==1))))&&!(a15==1))&&(a20==1))&&!(a4==1))){ + a5 = 0; + a12 = 8; + a22 = 1; + a18 = 1; + a0 = 1; + a3 = 6; + a6 = 0; + a15 = 1; + return -1; + } else if((!(a0==1)&&((a4==1)&&((a20==1)&&(((a15==1)&&(!(a5==1)&&((a3==6)&&(((a6==1)&&((a18==1)&&((input==6)&&(a22==1))))&&(a27==1)))))&&(a12==9)))))){ + a6 = 0; + a15 = 0; + a12 = 10; + a0 = 1; + a18 = 0; + return 21; + } else if(((((a12==8)&&(!(a27==1)&&(((a20==1)&&((((((input==4)&&((a18==1)||!(a18==1)))&&!(a0==1))&&(a5==1))&&!(a22==1))&&(a3==8)))&&!(a4==1))))&&(a6==1))&&(a15==1))){ + a3 = 6; + a4 = 1; + a27 = 1; + a6 = 0; + a0 = 1; + a18 = 0; + a22 = 1; + return -1; + } else if(((a12==11)&&((((a27==1)&&((!(a15==1)&&(((!(a4==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==2)))&&(a20==1))&&(a5==1)))&&(a3==6)))&&!(a6==1))&&!(a0==1)))){ + a22 = 0; + a4 = 1; + a5 = 0; + a18 = 1; + a12 = 10; + a0 = 1; + a3 = 5; + return -1; + } else if(((a12==12)&&((a4==1)&&((a20==1)&&((((a15==1)&&((!(a6==1)&&((input==4)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1))))))&&(a5==1)))&&!(a0==1))&&(a27==1)))))){ + a18 = 1; + a12 = 10; + a27 = 0; + a3 = 5; + a22 = 0; + a5 = 0; + a0 = 1; + a4 = 0; + return -1; + } else if(((a0==1)&&(((a12==8)&&((a20==1)&&((((!(a5==1)&&((input==3)&&((((a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==5))))))&&(a15==1))&&(a4==1))&&!(a6==1))))&&!(a27==1)))){ + a3 = 6; + a18 = 0; + a22 = 1; + a6 = 1; + a27 = 1; + a12 = 12; + return 26; + } else if(((((a18==1)&&((!(a22==1)&&(((((a20==1)&&(((a3==7)&&(input==2))&&(a0==1)))&&(a5==1))&&(a12==8))&&!(a27==1)))&&(a15==1)))&&!(a6==1))&&(a4==1))){ + a22 = 1; + a4 = 0; + a18 = 0; + return 21; + } else if(((a4==1)&&(((!(a5==1)&&((a15==1)&&(((a27==1)&&((((((a22==1)&&(a18==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a18==1)&&!(a22==1)))))&&(input==2))&&(a12==8)))&&(a6==1))))&&(a0==1))&&(a20==1)))){ + a12 = 9; + a3 = 5; + a18 = 1; + a22 = 0; + a6 = 0; + a4 = 0; + return 21; + } else if((((a27==1)&&((a20==1)&&(!(a4==1)&&((((a12==12)&&(!(a22==1)&&(((a6==1)&&((input==1)&&((a18==1)||!(a18==1))))&&!(a5==1))))&&(a3==6))&&(a0==1)))))&&!(a15==1))){ + a3 = 4; + a12 = 8; + a15 = 1; + a22 = 1; + a4 = 1; + a5 = 1; + a18 = 1; + return -1; + } else if(((((a12==9)&&((((a20==1)&&((((((a3==8)&&((a4==1)&&(!(a22==1)&&(a18==1))))&&!(a6==1))||(!(a6==1)&&(((!(a22==1)&&!(a18==1))&&(a4==1))&&(a3==8))))||((a6==1)&&((!(a4==1)&&((a22==1)&&(a18==1)))&&(a3==4))))&&(input==6)))&&!(a5==1))&&(a15==1)))&&!(a27==1))&&(a0==1))){ + a6 = 1; + a22 = 1; + a3 = 6; + a4 = 1; + a12 = 11; + a18 = 0; + a27 = 1; + return 21; + } else if((((a3==5)&&((a22==1)&&(((a6==1)&&((a4==1)&&((a27==1)&&((a12==8)&&(!(a0==1)&&((((a18==1)||!(a18==1))&&(input==2))&&(a20==1)))))))&&(a15==1))))&&!(a5==1))){ + a0 = 1; + a5 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((a20==1)&&((a6==1)&&((a12==11)&&((!(a0==1)&&((a15==1)&&((!(a5==1)&&((a22==1)&&(((input==3)&&(a18==1))&&(a27==1))))&&(a4==1))))&&(a3==4)))))){ + a5 = 1; + a15 = 0; + a12 = 10; + a6 = 0; + a4 = 0; + a0 = 1; + a3 = 5; + return 21; + } else if(((((!(a27==1)&&(!(a22==1)&&(!(a0==1)&&(((a20==1)&&(((a6==1)&&((a3==5)&&(input==3)))&&!(a4==1)))&&(a12==10)))))&&(a15==1))&&(a5==1))&&!(a18==1))){ + a27 = 1; + a4 = 1; + return -1; + } else if((((!(a4==1)&&(!(a5==1)&&((a12==9)&&((!(a0==1)&&((a3==8)&&((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==6))&&(a15==1))))&&!(a27==1)))))&&(a20==1))&&!(a6==1))){ + a12 = 8; + a18 = 1; + a27 = 1; + a5 = 1; + a3 = 6; + a22 = 1; + a4 = 1; + a0 = 1; + return 21; + } else if((((a12==11)&&(!(a5==1)&&((a3==4)&&(((a0==1)&&((!(a6==1)&&(((input==2)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a4==1)))&&(a20==1)))&&!(a15==1)))))&&(a27==1))){ + a18 = 1; + a6 = 1; + a15 = 1; + a5 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if((!(a0==1)&&(((a5==1)&&((((a3==5)&&((a22==1)&&((a18==1)&&((((input==2)&&(a27==1))&&!(a6==1))&&(a4==1)))))&&(a15==1))&&(a20==1)))&&(a12==8)))){ + a18 = 0; + a0 = 1; + a12 = 12; + a4 = 0; + a15 = 0; + a3 = 4; + return 21; + } else if(((a3==6)&&((((a5==1)&&((((((a22==1)&&((a0==1)&&((input==5)&&!(a4==1))))&&!(a6==1))&&!(a27==1))&&!(a15==1))&&(a20==1)))&&!(a18==1))&&(a12==12)))){ + a22 = 0; + a3 = 4; + a12 = 10; + a6 = 1; + return -1; + } else if((!(a5==1)&&((a20==1)&&(((a12==9)&&(((a4==1)&&((a3==5)&&(((a0==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==4)))&&!(a27==1))))&&(a15==1)))&&!(a6==1))))){ + a18 = 0; + a22 = 0; + a12 = 11; + a27 = 1; + a15 = 0; + return -1; + } else if(((a0==1)&&(((!(a5==1)&&(!(a15==1)&&((a27==1)&&((input==5)&&(((a6==1)&&((!(a4==1)&&((a22==1)&&!(a18==1)))&&(a3==4)))||((!(a6==1)&&((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1))))||(((((a18==1)&&(a22==1))&&!(a4==1))&&(a3==4))&&(a6==1))))))))&&(a20==1))&&(a12==9)))){ + a6 = 1; + a3 = 6; + a12 = 11; + a22 = 0; + a18 = 0; + a4 = 1; + a15 = 1; + return 24; + } else if((!(a6==1)&&((a4==1)&&(!(a27==1)&&(((((a20==1)&&((a12==9)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==4))))&&!(a5==1))&&(a0==1))&&(a15==1)))))){ + if((a15==1)){ + a15 = 0; + a18 = 1; + a3 = 6; + a0 = 0; + a22 = 1; + a4 = 0; + a12 = 8; + a27 = 1; + a5 = 1; + }else{ + a15 = 0; + a3 = 6; + a5 = 1; + a22 = 0; + a12 = 11; + a18 = 1; + } + return 21; + } else if(((a22==1)&&((!(a27==1)&&(((a5==1)&&((a12==8)&&(((a20==1)&&(!(a4==1)&&(!(a15==1)&&((input==6)&&(a3==6)))))&&!(a0==1))))&&!(a6==1)))&&!(a18==1)))){ + a15 = 1; + a3 = 4; + a4 = 1; + a12 = 10; + a5 = 0; + a27 = 1; + a6 = 1; + a18 = 1; + a0 = 1; + return 21; + } else if(((((!(a18==1)&&(((a20==1)&&(((a4==1)&&(((!(a27==1)&&(input==2))&&!(a15==1))&&!(a5==1)))&&(a3==7)))&&(a0==1)))&&!(a22==1))&&(a12==12))&&(a6==1))){ + a3 = 8; + a4 = 0; + a27 = 1; + a12 = 10; + a6 = 0; + a5 = 1; + a22 = 1; + return 26; + } else if(((a12==12)&&(!(a15==1)&&((((a20==1)&&((((a0==1)&&((((((a18==1)&&!(a22==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==6)))&&!(a5==1))&&!(a27==1)))&&(a6==1))&&!(a4==1))))){ + a6 = 0; + a0 = 0; + a4 = 1; + a15 = 1; + a3 = 6; + a12 = 10; + a18 = 0; + a22 = 0; + a27 = 1; + return -1; + } else if((((a12==10)&&((!(a22==1)&&(((((a6==1)&&(((!(a0==1)&&(input==5))&&(a3==7))&&(a18==1)))&&!(a27==1))&&(a15==1))&&(a4==1)))&&(a20==1)))&&(a5==1))){ + a6 = 0; + a12 = 8; + a0 = 1; + a3 = 8; + a4 = 0; + return 26; + } else if((((a3==4)&&((((a5==1)&&((a4==1)&&((((a20==1)&&((!(a0==1)&&(input==1))&&(a15==1)))&&(a18==1))&&(a12==8))))&&(a22==1))&&!(a6==1)))&&!(a27==1))){ + a6 = 1; + a0 = 1; + a3 = 5; + a18 = 0; + a27 = 1; + return -1; + } else if(((a12==8)&&((a27==1)&&(((a20==1)&&((((a5==1)&&((a3==6)&&(((input==6)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a6==1))))&&!(a0==1))&&(a4==1)))&&!(a15==1))))){ + a18 = 1; + a0 = 1; + a3 = 4; + a15 = 1; + a22 = 1; + return -1; + } else if(((!(a27==1)&&((((!(a6==1)&&(!(a4==1)&&(((a12==10)&&((a22==1)&&((input==5)&&((a18==1)||!(a18==1)))))&&(a3==6))))&&(a0==1))&&(a5==1))&&(a20==1)))&&(a15==1))){ + a3 = 4; + a6 = 1; + a18 = 1; + a27 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if(((((a4==1)&&(((a12==10)&&(((a20==1)&&((((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1)))))&&(input==1)))&&!(a0==1)))&&(a15==1)))&&!(a27==1))&&(a5==1))){ + a6 = 0; + a5 = 0; + a18 = 1; + a3 = 6; + a15 = 0; + a0 = 1; + a22 = 0; + return 21; + } else if((((a15==1)&&(((a5==1)&&((((a27==1)&&((((input==5)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&(a20==1))&&(a3==6)))&&(a6==1))&&(a12==9)))&&(a4==1)))&&(a0==1))){ + a5 = 0; + a12 = 11; + a18 = 0; + a3 = 8; + a22 = 0; + a15 = 0; + a6 = 0; + return 21; + } else if(((!(a0==1)&&((((a20==1)&&((((a12==8)&&((a4==1)&&(!(a27==1)&&((input==4)&&((a18==1)||!(a18==1))))))&&!(a22==1))&&(a3==8)))&&(a6==1))&&(a5==1)))&&(a15==1))){ + if((a27==1)){ + a4 = 0; + a22 = 1; + a12 = 10; + a3 = 6; + a18 = 0; + }else{ + a0 = 1; + a22 = 1; + a18 = 0; + a3 = 4; + a27 = 1; + } + return -1; + } else if((!(a5==1)&&(((a15==1)&&((a12==8)&&((a20==1)&&((a0==1)&&(((!(a27==1)&&((input==6)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))&&(a3==4))&&!(a6==1))))))&&!(a4==1)))){ + a3 = 7; + a27 = 1; + a12 = 11; + a22 = 0; + a18 = 0; + return -1; + } else if((!(a5==1)&&((((a3==4)&&(((!(a6==1)&&((a4==1)&&(((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a27==1))))&&(a20==1))&&(a0==1)))&&(a12==12))&&!(a15==1)))){ + a5 = 1; + a3 = 6; + a22 = 0; + a18 = 0; + return 21; + } else if(((a27==1)&&((a18==1)&&((a5==1)&&((a20==1)&&((!(a6==1)&&((a3==5)&&((!(a15==1)&&(((input==3)&&!(a22==1))&&(a12==12)))&&!(a4==1))))&&(a0==1))))))){ + a12 = 8; + a15 = 1; + a22 = 1; + a4 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if(((a12==10)&&((a6==1)&&((((!(a0==1)&&((a3==6)&&((((input==6)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&!(a27==1))&&(a4==1))))&&(a20==1))&&(a5==1))&&!(a15==1))))){ + a18 = 1; + a0 = 1; + a3 = 4; + a12 = 8; + a15 = 1; + a22 = 0; + a27 = 1; + return 21; + } else if(((a0==1)&&(((a12==9)&&(!(a18==1)&&((a20==1)&&((a15==1)&&(((a5==1)&&((!(a22==1)&&((a4==1)&&(input==3)))&&!(a27==1)))&&(a3==4))))))&&(a6==1)))){ + a4 = 0; + a12 = 10; + a3 = 7; + return 21; + } else if(((a12==8)&&(((a6==1)&&(((a27==1)&&(((a22==1)&&((a0==1)&&((a20==1)&&(((input==3)&&!(a18==1))&&!(a4==1)))))&&(a3==7)))&&!(a15==1)))&&(a5==1)))){ + a15 = 1; + a3 = 4; + a18 = 1; + a4 = 1; + return -1; + } else if(((a27==1)&&((((a0==1)&&((a12==8)&&((a20==1)&&((((input==5)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a18==1)&&(a22==1))))||((!(a18==1)&&(a22==1))&&(a3==6))))&&(a4==1))&&!(a5==1)))))&&(a6==1))&&!(a15==1)))){ + a12 = 10; + a6 = 0; + a15 = 1; + a22 = 0; + a4 = 0; + a3 = 6; + a18 = 1; + return 21; + } else if((!(a0==1)&&((a3==5)&&((a20==1)&&((a15==1)&&((((a6==1)&&((((a5==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&!(a27==1))&&!(a4==1)))&&(a12==9))&&!(a22==1))))))){ + a22 = 1; + a4 = 1; + a18 = 0; + a0 = 1; + a12 = 8; + a27 = 1; + a3 = 8; + return 26; + } else if((((a5==1)&&((a12==9)&&((a20==1)&&((!(a27==1)&&((a15==1)&&(((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==3))&&(a6==1))))&&(a0==1)))))&&!(a4==1))){ + a18 = 1; + a22 = 1; + a12 = 12; + a4 = 1; + a3 = 4; + a15 = 0; + a6 = 0; + a27 = 1; + return 26; + } else if(((((!(a0==1)&&((((((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==4))&&(a12==8))&&(a4==1))&&(a27==1))&&(a20==1))&&!(a15==1)))&&!(a6==1))&&!(a5==1))&&(a3==4))){ + a4 = 0; + a22 = 1; + a18 = 0; + a15 = 1; + a12 = 10; + a3 = 5; + return 21; + } else if((((a5==1)&&((!(a4==1)&&((((((input==4)&&((((a22==1)&&(a18==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))))&&!(a0==1))&&(a12==11))&&(a20==1))&&(a6==1)))&&!(a15==1)))&&!(a27==1))){ + a22 = 1; + a12 = 10; + a15 = 1; + a18 = 1; + a0 = 1; + a3 = 4; + return 21; + } else if(((((!(a27==1)&&((a12==10)&&((a4==1)&&((a20==1)&&(!(a15==1)&&((((((a18==1)&&!(a22==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==4)))))))&&(a5==1))&&(a0==1))&&!(a6==1))){ + a12 = 9; + a5 = 0; + a18 = 0; + a22 = 1; + a3 = 7; + a6 = 1; + return -1; + } else if(((a12==9)&&(((a20==1)&&((a5==1)&&((a27==1)&&((((input==1)&&(((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1))))&&(a0==1))&&(a15==1)))))&&(a4==1)))){ + a18 = 1; + a22 = 0; + a6 = 1; + a3 = 8; + a12 = 12; + return 26; + } else if(((a4==1)&&(((a22==1)&&((a5==1)&&(((((a3==4)&&(!(a0==1)&&(((input==3)&&(a15==1))&&!(a18==1))))&&!(a6==1))&&!(a27==1))&&(a20==1))))&&(a12==9)))){ + a4 = 0; + a27 = 1; + a6 = 1; + a18 = 1; + a0 = 1; + a12 = 8; + a3 = 5; + return -1; + } else if(((a27==1)&&((a15==1)&&((((((a20==1)&&(((a12==12)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==4)))&&(a6==1)))&&!(a0==1))&&(a3==7))&&(a4==1))&&(a5==1))))){ + a18 = 1; + a15 = 0; + a22 = 1; + a3 = 4; + a4 = 0; + a6 = 0; + a0 = 1; + a12 = 11; + return 24; + } else if(((a3==6)&&((a0==1)&&(!(a15==1)&&((a20==1)&&(((((!(a4==1)&&((input==3)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a6==1))&&!(a5==1))&&!(a27==1))&&(a12==9))))))){ + a22 = 0; + a12 = 10; + a6 = 0; + a27 = 1; + a3 = 8; + a18 = 1; + a5 = 1; + return 26; + } else if((((a6==1)&&(((((!(a27==1)&&((a12==8)&&((a4==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==6)))))&&!(a15==1))&&!(a0==1))&&(a3==6))&&(a20==1)))&&!(a5==1))){ + a4 = 0; + a5 = 1; + a27 = 1; + a22 = 1; + a18 = 1; + a15 = 1; + a0 = 1; + return -1; + } else if(((a12==11)&&(!(a15==1)&&(!(a6==1)&&(!(a4==1)&&((a3==8)&&((a5==1)&&((a20==1)&&(((a18==1)&&((a27==1)&&((input==4)&&!(a22==1))))&&(a0==1)))))))))){ + a18 = 0; + a3 = 5; + a22 = 1; + a12 = 10; + return -1; + } else if((!(a18==1)&&((a6==1)&&((!(a27==1)&&(((a20==1)&&((a5==1)&&((a15==1)&&((a12==10)&&(((input==5)&&(a3==5))&&!(a0==1))))))&&!(a22==1)))&&!(a4==1))))){ + if((a6==1)){ + a0 = 1; + a12 = 8; + a6 = 0; + a27 = 1; + a22 = 1; + a4 = 1; + a3 = 7; + }else{ + a4 = 1; + a22 = 1; + a3 = 7; + a5 = 0; + a0 = 1; + a12 = 8; + a6 = 0; + } + return 26; + } else if(((a3==7)&&((a4==1)&&((((a20==1)&&((a27==1)&&((a12==10)&&(!(a15==1)&&((a5==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==2)))))))&&(a0==1))&&(a6==1))))){ + a4 = 0; + a3 = 8; + a0 = 0; + a18 = 1; + a12 = 8; + a22 = 1; + return 26; + } else if((((((((a4==1)&&(((a12==10)&&((a22==1)&&(((a15==1)&&(input==5))&&!(a0==1))))&&!(a18==1)))&&(a6==1))&&(a5==1))&&(a20==1))&&(a3==4))&&(a27==1))){ + a22 = 0; + a6 = 0; + a3 = 6; + a0 = 1; + return -1; + } else if(((a0==1)&&((((a6==1)&&((a12==9)&&((a15==1)&&(!(a27==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==5))&&(a3==7))&&(a4==1))))))&&!(a5==1))&&(a20==1)))){ + a3 = 5; + a5 = 1; + a18 = 0; + a15 = 0; + a12 = 10; + a27 = 1; + a22 = 1; + return 21; + } else if((((a12==11)&&(((((a15==1)&&((a5==1)&&(((a6==1)&&((a0==1)&&((a3==6)&&(input==5))))&&!(a18==1))))&&(a20==1))&&!(a22==1))&&!(a4==1)))&&!(a27==1))){ + a27 = 1; + a4 = 1; + a22 = 1; + a18 = 1; + a3 = 7; + a5 = 0; + return 24; + } else if(((a12==9)&&(((a6==1)&&(!(a15==1)&&((a3==6)&&(((a22==1)&&(((a20==1)&&(((input==6)&&!(a18==1))&&(a5==1)))&&!(a27==1)))&&!(a4==1)))))&&(a0==1)))){ + if((a18==1)){ + a18 = 1; + a27 = 1; + a3 = 7; + a22 = 0; + a0 = 0; + }else{ + a22 = 0; + a18 = 1; + a12 = 10; + a27 = 1; + a15 = 1; + a6 = 0; + a3 = 8; + a4 = 1; + } + return 24; + } else if((!(a0==1)&&(!(a4==1)&&((a6==1)&&((a12==12)&&((a27==1)&&((a20==1)&&(((a3==7)&&((a18==1)&&((!(a5==1)&&(input==4))&&(a15==1))))&&!(a22==1))))))))){ + if((a15==1)){ + a0 = 1; + a3 = 6; + a12 = 11; + a22 = 1; + a27 = 0; + a18 = 0; + }else{ + a3 = 6; + a5 = 1; + a22 = 1; + a18 = 0; + a4 = 1; + a15 = 0; + a27 = 0; + a12 = 10; + a0 = 1; + } + return -1; + } else if((!(a0==1)&&(((a5==1)&&((((a3==5)&&(!(a6==1)&&((((!(a4==1)&&(input==5))&&(a22==1))&&(a15==1))&&(a18==1))))&&(a20==1))&&(a12==11)))&&(a27==1)))){ + a12 = 8; + a4 = 1; + a6 = 1; + a3 = 4; + a0 = 1; + return -1; + } else if((((a5==1)&&((a6==1)&&((!(a18==1)&&(!(a0==1)&&((a20==1)&&(!(a4==1)&&((((input==5)&&(a15==1))&&(a27==1))&&(a12==11))))))&&(a3==5))))&&(a22==1))){ + a27 = 0; + a5 = 0; + a12 = 8; + a6 = 0; + a3 = 7; + a0 = 1; + return 26; + } else if(((a3==8)&&((a12==9)&&(!(a0==1)&&((a15==1)&&((a4==1)&&((!(a27==1)&&((!(a22==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a20==1)))&&!(a5==1)))&&!(a6==1)))))))){ + a4 = 0; + a18 = 0; + a27 = 1; + a3 = 7; + a12 = 8; + a6 = 1; + a5 = 1; + a22 = 1; + return -1; + } else if((((a3==6)&&((a5==1)&&((((!(a27==1)&&((a6==1)&&((((input==1)&&((a18==1)||!(a18==1)))&&(a0==1))&&(a20==1))))&&(a22==1))&&!(a15==1))&&(a4==1))))&&(a12==10))){ + a27 = 1; + a15 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((a4==1)&&(((((a27==1)&&((((!(a5==1)&&(((a12==8)&&(input==4))&&(a22==1)))&&!(a15==1))&&!(a18==1))&&(a20==1)))&&(a3==4))&&!(a6==1))&&(a0==1)))){ + a4 = 0; + a12 = 10; + a22 = 0; + a3 = 6; + a18 = 1; + return 26; + } else if(((a0==1)&&((a22==1)&&(((a20==1)&&((((((a12==10)&&(((input==5)&&((a18==1)||!(a18==1)))&&!(a4==1)))&&(a6==1))&&(a3==5))&&!(a15==1))&&(a5==1)))&&!(a27==1))))){ + a27 = 1; + a15 = 1; + a3 = 4; + a4 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if((((a12==8)&&((!(a18==1)&&(((a22==1)&&(!(a4==1)&&(((a3==6)&&(((a27==1)&&(input==2))&&!(a0==1)))&&!(a15==1))))&&(a20==1)))&&(a5==1)))&&(a6==1))){ + a12 = 11; + a0 = 1; + a18 = 1; + a5 = 0; + a3 = 8; + return 26; + } else if(((a27==1)&&(!(a6==1)&&((a20==1)&&((a22==1)&&(!(a18==1)&&(((((a5==1)&&(((input==5)&&!(a15==1))&&(a3==8)))&&(a4==1))&&!(a0==1))&&(a12==11)))))))){ + a3 = 4; + a0 = 1; + a22 = 0; + a15 = 1; + a27 = 0; + return 26; + } else if(((a3==4)&&((a6==1)&&(!(a0==1)&&(((((a20==1)&&(((a12==10)&&(((a5==1)&&(input==6))&&(a15==1)))&&(a27==1)))&&!(a22==1))&&(a18==1))&&(a4==1)))))){ + a4 = 0; + a0 = 1; + a18 = 0; + a5 = 0; + return 26; + } else if(((a20==1)&&((((a12==8)&&((!(a5==1)&&((a27==1)&&(!(a4==1)&&((input==6)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a18==1)&&(a22==1))))))))&&!(a15==1)))&&!(a0==1))&&!(a6==1)))){ + a18 = 0; + a6 = 1; + a5 = 1; + a22 = 1; + a12 = 11; + a0 = 1; + a3 = 6; + a15 = 1; + return 21; + } else if(((((((!(a5==1)&&((a20==1)&&((!(a0==1)&&(!(a18==1)&&((input==5)&&(a15==1))))&&(a12==11))))&&(a6==1))&&!(a22==1))&&!(a4==1))&&!(a27==1))&&(a3==7))){ + if((a27==1)){ + a18 = 1; + a3 = 4; + a0 = 1; + a5 = 1; + a27 = 1; + a12 = 8; + }else{ + a15 = 0; + a18 = 1; + a22 = 1; + a4 = 1; + a27 = 1; + a12 = 12; + a3 = 8; + } + return -1; + } else if((((a0==1)&&((a12==11)&&(((((!(a27==1)&&((!(a22==1)&&((input==6)&&(a6==1)))&&(a18==1)))&&(a3==6))&&!(a4==1))&&!(a15==1))&&(a5==1))))&&(a20==1))){ + a12 = 9; + a3 = 7; + a5 = 0; + a15 = 1; + return -1; + } else if(((((a22==1)&&((!(a4==1)&&((!(a0==1)&&((((((a18==1)||!(a18==1))&&(input==3))&&(a3==6))&&!(a6==1))&&(a12==10)))&&!(a5==1)))&&!(a27==1)))&&(a20==1))&&(a15==1))){ + a18 = 0; + a15 = 0; + a12 = 12; + a4 = 1; + a5 = 1; + a0 = 1; + a3 = 8; + a27 = 1; + a6 = 1; + return -1; + } else if((((!(a5==1)&&((a20==1)&&(!(a27==1)&&((((a0==1)&&((input==3)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6)))))&&(a15==1))&&(a6==1)))))&&(a4==1))&&(a12==12))){ + a15 = 0; + a22 = 1; + a27 = 1; + a6 = 0; + a3 = 4; + a18 = 0; + a5 = 1; + return -1; + } else if(((((a18==1)&&(((((((a20==1)&&(((input==4)&&!(a4==1))&&(a0==1)))&&(a3==8))&&(a12==12))&&(a6==1))&&(a15==1))&&!(a5==1)))&&!(a27==1))&&!(a22==1))){ + a27 = 1; + a15 = 0; + a6 = 0; + a12 = 11; + return 21; + } else if(((a20==1)&&((a15==1)&&((((a4==1)&&((a3==7)&&(!(a27==1)&&((!(a5==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6)))&&(a12==8)))))&&!(a6==1))&&(a0==1))))){ + a18 = 0; + a3 = 5; + a22 = 1; + a15 = 0; + return 26; + } else if((!(a6==1)&&(((!(a0==1)&&((a27==1)&&((((a20==1)&&((((a3==7)&&((a18==1)&&(a22==1)))||(((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a18==1)&&!(a22==1)))))&&(input==3)))&&(a5==1))&&(a12==10))))&&(a4==1))&&(a15==1)))){ + a3 = 4; + a22 = 1; + a0 = 1; + a18 = 1; + return 21; + } else if((((a0==1)&&((a15==1)&&(((!(a5==1)&&(!(a6==1)&&((a20==1)&&(((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8)))||((a3==8)&&((a22==1)&&!(a18==1))))&&(input==3)))))&&!(a27==1))&&(a12==11))))&&(a4==1))){ + a3 = 5; + a4 = 0; + a15 = 0; + a18 = 0; + a27 = 1; + a5 = 1; + a22 = 0; + return 21; + } else if((!(a5==1)&&((((a0==1)&&(((a12==10)&&((a20==1)&&((a3==5)&&(((input==3)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a4==1)))))&&!(a15==1)))&&!(a6==1))&&!(a27==1)))){ + a5 = 1; + a3 = 6; + a15 = 1; + a18 = 0; + a12 = 11; + a27 = 1; + a22 = 0; + return -1; + } else if(((((a20==1)&&(((!(a15==1)&&((a22==1)&&(((a12==9)&&(!(a4==1)&&((input==2)&&((a18==1)||!(a18==1)))))&&(a5==1))))&&(a27==1))&&(a3==8)))&&!(a6==1))&&!(a0==1))){ + a0 = 1; + a18 = 1; + a4 = 1; + a3 = 4; + a15 = 1; + return 26; + } else if(((!(a0==1)&&((a12==11)&&(!(a5==1)&&(!(a15==1)&&((!(a4==1)&&(((((!(a18==1)&&(a22==1))&&(a3==7))||(((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1)))))&&(input==5))&&!(a6==1)))&&!(a27==1))))))&&(a20==1))){ + a18 = 0; + a5 = 1; + a3 = 6; + a27 = 1; + a12 = 9; + a22 = 0; + return -1; + } else if(((((((a5==1)&&((a12==11)&&((a4==1)&&(!(a18==1)&&(((a22==1)&&(!(a15==1)&&(input==6)))&&(a3==6))))))&&(a0==1))&&(a6==1))&&(a27==1))&&(a20==1))){ + a12 = 10; + a3 = 8; + a15 = 1; + a6 = 0; + a18 = 1; + return -1; + } else if(((a27==1)&&(!(a22==1)&&(((a20==1)&&((((!(a15==1)&&((!(a4==1)&&((input==5)&&(a3==5)))&&!(a6==1)))&&(a12==12))&&!(a5==1))&&!(a0==1)))&&!(a18==1))))){ + a4 = 1; + a3 = 4; + a15 = 1; + a22 = 1; + a5 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + return 26; + } else if((((a15==1)&&((a20==1)&&((a0==1)&&((a5==1)&&((((((((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==2))&&!(a6==1))&&!(a4==1))&&!(a27==1))))))&&(a12==11))){ + a15 = 0; + a4 = 1; + a5 = 0; + a18 = 0; + a22 = 1; + a12 = 9; + a27 = 1; + a3 = 8; + a6 = 1; + a0 = 0; + return -1; + } else if(((a12==11)&&((a15==1)&&((a27==1)&&((a20==1)&&((a6==1)&&(!(a4==1)&&((a0==1)&&(((input==6)&&(((a3==5)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4)))))&&!(a5==1)))))))))){ + a12 = 10; + a3 = 7; + a18 = 0; + a22 = 1; + a6 = 0; + a4 = 1; + return -1; + } else if((((a5==1)&&(((a12==8)&&((!(a15==1)&&((a4==1)&&(!(a27==1)&&((a18==1)&&(((a22==1)&&(input==5))&&(a20==1))))))&&!(a0==1)))&&(a6==1)))&&(a3==5))){ + if((a4==1)){ + a15 = 1; + a3 = 7; + a0 = 1; + a6 = 0; + a27 = 1; + }else{ + a22 = 0; + a6 = 0; + a15 = 1; + a3 = 7; + a12 = 9; + } + return 24; + } else if((((a20==1)&&((!(a27==1)&&(((a15==1)&&(!(a22==1)&&((a18==1)&&((a4==1)&&(((a5==1)&&(input==4))&&(a0==1))))))&&(a12==11)))&&!(a6==1)))&&(a3==4))){ + a27 = 1; + a15 = 0; + a3 = 7; + a6 = 1; + a22 = 1; + a5 = 0; + a18 = 0; + return 26; + } else if(((a3==8)&&((a20==1)&&(!(a15==1)&&((((a5==1)&&(!(a4==1)&&((a0==1)&&(!(a22==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a12==9))))))&&(a6==1))&&!(a27==1)))))){ + a18 = 1; + a6 = 0; + a15 = 1; + a27 = 1; + a22 = 1; + a12 = 11; + a3 = 5; + return 21; + } else if(((!(a0==1)&&((a12==9)&&((a3==6)&&((((((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==6))&&(a20==1))&&(a6==1))&&(a4==1))&&!(a27==1))&&!(a15==1)))))&&!(a5==1))){ + a0 = 1; + a18 = 0; + a27 = 1; + a12 = 8; + a3 = 5; + a15 = 1; + a5 = 1; + a22 = 1; + a4 = 0; + return 21; + } else if(((a27==1)&&((a3==6)&&((((a12==10)&&(((((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==6))&&(a4==1))&&!(a5==1))&&(a15==1))&&(a6==1)))&&(a20==1))&&!(a0==1))))){ + a18 = 1; + a6 = 0; + a12 = 8; + a3 = 7; + a22 = 1; + a4 = 0; + a0 = 1; + return 26; + } else if(((!(a6==1)&&((!(a5==1)&&((a22==1)&&(!(a4==1)&&((((a27==1)&&((a12==12)&&(((a18==1)||!(a18==1))&&(input==1))))&&!(a15==1))&&(a20==1)))))&&(a3==4)))&&!(a0==1))){ + a15 = 1; + a12 = 8; + a5 = 1; + a18 = 1; + a0 = 1; + a4 = 1; + return 24; + } else if(((a22==1)&&(((a12==9)&&((a3==6)&&(((a15==1)&&(!(a6==1)&&(((!(a0==1)&&((a4==1)&&(input==1)))&&!(a18==1))&&(a5==1))))&&(a20==1))))&&!(a27==1)))){ + a5 = 0; + a4 = 0; + a3 = 4; + a0 = 1; + a22 = 0; + a18 = 1; + a6 = 1; + return -1; + } else if(((((a6==1)&&(((!(a0==1)&&((a3==6)&&((a15==1)&&(((a27==1)&&((input==5)&&(a4==1)))&&!(a5==1)))))&&!(a18==1))&&(a20==1)))&&(a12==11))&&(a22==1))){ + a5 = 1; + a12 = 8; + a0 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((!(a0==1)&&((a12==9)&&((a15==1)&&((((a27==1)&&(((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==1))&&(a5==1)))&&!(a6==1))&&(a20==1)))))&&!(a4==1))){ + a27 = 0; + a18 = 1; + a0 = 1; + a12 = 8; + a22 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if(((a12==10)&&(!(a4==1)&&(((a15==1)&&((((a0==1)&&((a3==7)&&(!(a6==1)&&(!(a22==1)&&((a20==1)&&(input==6))))))&&!(a18==1))&&!(a5==1)))&&!(a27==1))))){ + a6 = 1; + a5 = 1; + a18 = 1; + a12 = 11; + a4 = 1; + a27 = 1; + return 21; + } else if(((((a12==9)&&(!(a27==1)&&(((!(a6==1)&&(!(a15==1)&&((a20==1)&&((a18==1)&&((input==6)&&(a0==1))))))&&(a5==1))&&(a3==6))))&&(a22==1))&&!(a4==1))){ + a4 = 1; + a3 = 4; + a6 = 1; + a15 = 1; + a12 = 8; + a27 = 1; + return -1; + } else if(((a20==1)&&(!(a5==1)&&((!(a15==1)&&((((!(a18==1)&&(((!(a27==1)&&(input==5))&&(a22==1))&&(a3==7)))&&(a12==8))&&!(a4==1))&&!(a6==1)))&&!(a0==1))))){ + if((a3==5)){ + a3 = 6; + a6 = 1; + a18 = 1; + a4 = 1; + a27 = 1; + a12 = 10; + }else{ + a12 = 10; + a4 = 1; + a3 = 8; + a18 = 1; + } + return -1; + } else if(((a27==1)&&(!(a15==1)&&(!(a5==1)&&((((!(a0==1)&&(((((((a18==1)&&!(a22==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==4))&&(a4==1)))&&(a20==1))&&(a12==9))&&(a6==1)))))){ + a15 = 1; + a0 = 1; + a3 = 8; + a5 = 1; + a4 = 0; + a6 = 0; + a22 = 0; + a18 = 1; + return 24; + } else if((((a12==8)&&((a5==1)&&(!(a27==1)&&((!(a4==1)&&(((!(a6==1)&&((input==5)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a15==1))&&(a3==5)))&&(a20==1)))))&&!(a0==1))){ + a0 = 1; + a18 = 0; + a22 = 1; + a12 = 12; + a27 = 1; + a3 = 4; + return 24; + } else if(((a6==1)&&((a12==8)&&((a5==1)&&((((((a4==1)&&((input==2)&&((((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a22==1)&&!(a18==1))))||((a3==7)&&((a18==1)&&(a22==1))))))&&!(a0==1))&&(a20==1))&&!(a15==1))&&!(a27==1)))))){ + a22 = 1; + a15 = 1; + a12 = 10; + a6 = 0; + a3 = 5; + a5 = 0; + a18 = 0; + a4 = 0; + a0 = 1; + return 26; + } else if(((a12==9)&&((!(a0==1)&&(!(a6==1)&&(((((a3==6)&&((a15==1)&&((input==6)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))))&&!(a4==1))&&!(a27==1))&&(a5==1))))&&(a20==1)))){ + a3 = 7; + a18 = 0; + a12 = 8; + a22 = 1; + a27 = 1; + a6 = 1; + a0 = 1; + return 26; + } else if((!(a0==1)&&((a5==1)&&(((a4==1)&&(!(a6==1)&&((((a12==8)&&((((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==1)))&&(a27==1))&&(a20==1))))&&(a15==1))))){ + a3 = 4; + a22 = 1; + a6 = 1; + a18 = 1; + a0 = 1; + return -1; + } else if(((((((((((!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4)))||(((a6==1)&&((a3==8)&&(!(a22==1)&&(a18==1))))||((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))))&&(input==5))&&(a12==11))&&(a5==1))&&(a20==1))&&!(a27==1))&&!(a4==1))&&!(a15==1))&&!(a0==1))){ + a12 = 9; + a3 = 5; + a0 = 1; + a6 = 1; + a5 = 0; + a18 = 0; + a27 = 1; + a22 = 1; + a4 = 1; + return 21; + } else if(((a3==4)&&(!(a6==1)&&((a12==10)&&(!(a27==1)&&(((a0==1)&&((a5==1)&&((a22==1)&&(((a20==1)&&((input==4)&&((a18==1)||!(a18==1))))&&!(a4==1)))))&&(a15==1))))))){ + a15 = 0; + a27 = 1; + a18 = 1; + a3 = 5; + return 26; + } else if(((a0==1)&&(!(a27==1)&&(!(a4==1)&&((a12==11)&&(!(a6==1)&&(((a3==5)&&((((input==2)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a20==1))&&!(a15==1)))&&(a5==1)))))))){ + if((a5==1)){ + a0 = 0; + a15 = 1; + a22 = 0; + a12 = 9; + a4 = 1; + a18 = 1; + a27 = 1; + }else{ + a15 = 1; + a18 = 1; + a12 = 9; + a22 = 1; + a3 = 6; + a4 = 1; + } + return -1; + } else if(((!(a15==1)&&(((((a6==1)&&((!(a0==1)&&((a12==10)&&((a3==6)&&((input==6)&&(a5==1)))))&&(a4==1)))&&!(a18==1))&&(a20==1))&&(a22==1)))&&(a27==1))){ + a0 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if(((a12==11)&&(((a15==1)&&(!(a27==1)&&(!(a5==1)&&(((((((a3==8)&&((a4==1)&&((a18==1)&&!(a22==1))))&&!(a6==1))||((((!(a22==1)&&!(a18==1))&&(a4==1))&&(a3==8))&&!(a6==1)))||((a6==1)&&((!(a4==1)&&((a22==1)&&(a18==1)))&&(a3==4))))&&(input==4))&&!(a0==1)))))&&(a20==1)))){ + a3 = 5; + a6 = 1; + a4 = 0; + a18 = 1; + a22 = 1; + a15 = 0; + return -1; + } else if(((a6==1)&&((a12==11)&&((a0==1)&&(((a20==1)&&((a5==1)&&((a15==1)&&((a27==1)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==2))))))&&(a4==1)))))){ + a3 = 5; + a4 = 0; + a5 = 0; + a12 = 10; + a18 = 0; + a22 = 0; + return -1; + } else if(((!(a5==1)&&((a6==1)&&((a0==1)&&(((a4==1)&&((a12==8)&&((a20==1)&&((input==5)&&((((a22==1)&&(a18==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1)))))))))&&!(a27==1)))))&&!(a15==1))){ + a3 = 4; + a22 = 1; + a18 = 1; + a27 = 1; + a5 = 1; + a15 = 1; + return -1; + } else if((((((!(a27==1)&&(!(a22==1)&&((a20==1)&&((!(a15==1)&&((a4==1)&&((input==3)&&((a18==1)||!(a18==1)))))&&(a5==1)))))&&(a0==1))&&(a12==11))&&!(a6==1))&&(a3==7))){ + a27 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a6 = 1; + a15 = 1; + a22 = 1; + return -1; + } else if(((((a12==10)&&((((!(a27==1)&&(((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==6))&&(a6==1)))&&(a5==1))&&!(a15==1))&&(a4==1)))&&(a20==1))&&!(a0==1))){ + if((a5==1)){ + a27 = 1; + a22 = 0; + a18 = 1; + a3 = 5; + a12 = 8; + a6 = 0; + a15 = 1; + a0 = 1; + }else{ + a15 = 1; + a12 = 11; + a6 = 0; + a18 = 1; + a3 = 4; + a22 = 1; + a4 = 0; + } + return 21; + } else if(((a27==1)&&(((((a6==1)&&((((((((a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&((a18==1)&&!(a22==1)))||((a3==7)&&(!(a22==1)&&!(a18==1)))))&&(input==1))&&(a5==1))&&!(a0==1))&&!(a15==1)))&&(a20==1))&&(a4==1))&&(a12==12)))){ + a18 = 1; + a6 = 0; + a0 = 1; + a3 = 4; + a4 = 0; + a22 = 1; + return 21; + } else if(((a22==1)&&((((!(a5==1)&&((a0==1)&&((((a3==8)&&((a20==1)&&((a15==1)&&(input==2))))&&(a12==9))&&(a4==1))))&&!(a18==1))&&(a27==1))&&!(a6==1)))){ + a5 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if((((!(a0==1)&&(((a5==1)&&((((((input==2)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&!(a4==1))&&(a27==1))&&(a20==1))&&(a6==1)))&&(a12==8)))&&!(a15==1))&&(a3==8))){ + a0 = 1; + a22 = 0; + a6 = 0; + a12 = 10; + a3 = 6; + a18 = 0; + return -1; + } else if(((a6==1)&&((a12==10)&&(((a4==1)&&((!(a27==1)&&((a5==1)&&((((((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==5))&&(a20==1))))&&(a15==1)))&&(a0==1))))){ + if((a15==1)){ + a12 = 11; + a0 = 0; + a27 = 1; + a3 = 6; + a18 = 1; + a5 = 0; + a22 = 0; + a4 = 0; + }else{ + a5 = 0; + a18 = 0; + a6 = 0; + a12 = 11; + a22 = 1; + a3 = 7; + a27 = 1; + a4 = 0; + } + return -1; + } else if((!(a0==1)&&((!(a4==1)&&((a12==10)&&((a27==1)&&((a3==6)&&((!(a5==1)&&(((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==1))&&!(a6==1)))&&(a15==1))))))&&(a20==1)))){ + a0 = 1; + a22 = 1; + a18 = 1; + a6 = 1; + a5 = 1; + return 21; + } else if((((a18==1)&&(!(a22==1)&&(!(a27==1)&&((a0==1)&&(((a3==6)&&((((a6==1)&&((input==6)&&(a12==9)))&&(a5==1))&&(a15==1)))&&!(a4==1))))))&&(a20==1))){ + a4 = 1; + a12 = 12; + a27 = 1; + return 26; + } else if(((a12==11)&&((a3==6)&&((a0==1)&&((a22==1)&&((a15==1)&&(((a20==1)&&(!(a27==1)&&((((input==2)&&((a18==1)||!(a18==1)))&&(a5==1))&&!(a6==1))))&&!(a4==1)))))))){ + a12 = 8; + a5 = 0; + a22 = 0; + a15 = 0; + a3 = 7; + a18 = 0; + return -1; + } else if(((a27==1)&&((((((((input==6)&&((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1))))))&&!(a15==1))&&!(a0==1))&&(a4==1))&&(a20==1))&&(a12==12))&&!(a5==1)))){ + a6 = 0; + a12 = 10; + a5 = 1; + a3 = 4; + a4 = 0; + a22 = 1; + a18 = 1; + return -1; + } else if((((a4==1)&&(!(a27==1)&&((a0==1)&&(((((((((a18==1)||!(a18==1))&&(input==6))&&(a20==1))&&(a12==9))&&(a15==1))&&(a3==8))&&(a6==1))&&(a5==1)))))&&(a22==1))){ + a12 = 8; + a27 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((((a3==7)&&((a6==1)&&((((((!(a5==1)&&((a15==1)&&((input==2)&&((a18==1)||!(a18==1)))))&&!(a27==1))&&(a20==1))&&(a4==1))&&(a0==1))&&!(a22==1))))&&(a12==8))){ + a3 = 6; + a4 = 0; + a27 = 1; + a12 = 10; + a6 = 0; + a5 = 1; + a18 = 1; + return 26; + } else if(((a20==1)&&(!(a0==1)&&((!(a6==1)&&((a27==1)&&(((a5==1)&&(!(a4==1)&&(!(a18==1)&&(((input==6)&&(a12==10))&&!(a15==1)))))&&!(a22==1))))&&(a3==8))))){ + a22 = 1; + a6 = 1; + a0 = 1; + return -1; + } else if(((((((a20==1)&&(((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a5==1))&&(a4==1))&&(a3==4))&&(a12==9)))&&!(a15==1))&&(a27==1))&&(a6==1))&&(a0==1))){ + a5 = 0; + a6 = 0; + a18 = 0; + a12 = 12; + a22 = 0; + return 26; + } else if(((((((a12==8)&&(((a20==1)&&(((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==2))&&(a27==1))&&(a5==1)))&&(a3==5)))&&(a0==1))&&!(a4==1))&&!(a6==1))&&(a15==1))){ + if((a20==1)){ + a3 = 8; + a22 = 0; + a18 = 0; + a0 = 0; + a6 = 1; + a4 = 1; + }else{ + a3 = 7; + a22 = 0; + a18 = 1; + a15 = 0; + a4 = 1; + a6 = 1; + } + return 21; + } else if(((((a3==4)&&((!(a5==1)&&((a0==1)&&((a20==1)&&(((a12==8)&&((a22==1)&&(((a18==1)||!(a18==1))&&(input==3))))&&(a6==1)))))&&(a4==1)))&&(a15==1))&&!(a27==1))){ + a5 = 1; + a18 = 1; + a27 = 1; + return -1; + } else if((((a3==4)&&((!(a27==1)&&(((a0==1)&&((a15==1)&&(!(a4==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==3))&&(a6==1)))))&&(a5==1)))&&(a12==10)))&&(a20==1))){ + a4 = 1; + a22 = 1; + a5 = 0; + a18 = 0; + a15 = 0; + a27 = 1; + a3 = 5; + return 21; + } else if(((a3==6)&&((!(a18==1)&&((!(a0==1)&&((a27==1)&&((a12==10)&&(!(a4==1)&&(!(a5==1)&&((a20==1)&&(!(a15==1)&&(input==2))))))))&&(a6==1)))&&(a22==1)))){ + a0 = 1; + a15 = 1; + a3 = 8; + a5 = 1; + a6 = 0; + return -1; + } else if(((a15==1)&&((((a20==1)&&((((a0==1)&&(!(a4==1)&&((input==6)&&((((a22==1)&&(a18==1))&&(a3==5))||(((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1))))))))&&!(a6==1))&&(a12==8)))&&(a5==1))&&(a27==1)))){ + a4 = 1; + a18 = 1; + a3 = 4; + a6 = 1; + a22 = 1; + return -1; + } else if(((a0==1)&&(((((a20==1)&&((a5==1)&&((a6==1)&&((((input==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&(a12==12))&&(a3==7)))))&&(a27==1))&&(a4==1))&&!(a15==1)))){ + a15 = 1; + a5 = 0; + a12 = 11; + a18 = 1; + a22 = 0; + return -1; + } else if(((a12==12)&&((a20==1)&&((!(a4==1)&&((((!(a6==1)&&((input==4)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))||(((a22==1)&&!(a18==1))&&(a3==5)))))&&(a0==1))&&(a27==1))&&(a15==1)))&&!(a5==1))))){ + a18 = 0; + a12 = 11; + a3 = 7; + a6 = 1; + a22 = 1; + return 24; + } else if((((!(a15==1)&&((a6==1)&&(((a27==1)&&(((a3==5)&&((a20==1)&&((a18==1)&&((input==4)&&(a0==1)))))&&!(a22==1)))&&(a4==1))))&&(a12==12))&&(a5==1))){ + a3 = 4; + a22 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if(((!(a0==1)&&(!(a5==1)&&(!(a4==1)&&((a12==9)&&((a20==1)&&(((a3==8)&&((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==3))&&(a27==1)))&&!(a15==1)))))))&&(a6==1))){ + a3 = 7; + a12 = 11; + a18 = 0; + a0 = 1; + a5 = 1; + a22 = 1; + a4 = 1; + return 26; + } else if((!(a15==1)&&((!(a0==1)&&(!(a6==1)&&(((((((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))||((a3==5)&&((a22==1)&&!(a18==1))))&&(input==3))&&(a12==10))&&(a5==1))&&!(a4==1))&&!(a27==1))))&&(a20==1)))){ + if((a4==1)){ + a4 = 1; + a12 = 8; + a22 = 1; + a27 = 1; + a18 = 0; + a3 = 5; + a15 = 1; + }else{ + a18 = 0; + a4 = 1; + a12 = 8; + a27 = 1; + a3 = 7; + a15 = 1; + a0 = 1; + a6 = 1; + a22 = 1; + } + return 21; + } else if((!(a4==1)&&((a0==1)&&(((!(a18==1)&&(((a20==1)&&((a5==1)&&(!(a22==1)&&(!(a27==1)&&((input==1)&&(a15==1))))))&&(a3==5)))&&(a6==1))&&(a12==10))))){ + a22 = 1; + a12 = 8; + a3 = 4; + a4 = 1; + return 21; + } else if(((a12==8)&&((!(a15==1)&&(!(a4==1)&&(((!(a6==1)&&((a20==1)&&(!(a22==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&!(a27==1)))))&&(a3==5))&&(a0==1))))&&(a5==1)))){ + a18 = 1; + a22 = 1; + a12 = 11; + a6 = 1; + return 26; + } else if((!(a0==1)&&((a3==6)&&(!(a6==1)&&((a20==1)&&(!(a5==1)&&((a12==8)&&((!(a15==1)&&((a27==1)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==2))))&&(a4==1))))))))){ + a6 = 1; + a5 = 1; + a0 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a15 = 1; + return -1; + } else if(((a12==9)&&((a27==1)&&((a20==1)&&((((((!(a6==1)&&((input==6)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))))&&!(a5==1))&&!(a0==1))&&(a4==1))&&(a3==4))&&(a15==1)))))){ + a4 = 0; + a3 = 6; + a18 = 0; + a15 = 0; + a27 = 0; + a0 = 1; + a22 = 0; + return 26; + } else if((!(a15==1)&&(!(a0==1)&&(((a20==1)&&((a12==9)&&((a3==6)&&((a27==1)&&((((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==3))&&(a5==1))&&!(a4==1))))))&&(a6==1))))){ + a15 = 1; + a6 = 0; + a0 = 1; + a12 = 12; + a22 = 0; + a18 = 0; + a3 = 5; + return 24; + } else if((!(a5==1)&&(((!(a15==1)&&(((a20==1)&&(!(a0==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==6))&&(a27==1))))&&(a12==10)))&&(a4==1))&&!(a6==1)))){ + a3 = 4; + a4 = 0; + a22 = 0; + a15 = 1; + a0 = 1; + a6 = 1; + a18 = 1; + return 26; + } else if((!(a4==1)&&(((a12==12)&&((!(a27==1)&&((((a0==1)&&(((a20==1)&&(!(a6==1)&&(input==5)))&&(a3==6)))&&!(a22==1))&&(a18==1)))&&(a15==1)))&&(a5==1)))){ + a12 = 8; + a27 = 1; + a4 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if((((!(a0==1)&&(((a12==9)&&(((!(a6==1)&&((a3==4)&&((a15==1)&&((input==5)&&((a18==1)||!(a18==1))))))&&(a5==1))&&(a27==1)))&&(a22==1)))&&(a4==1))&&(a20==1))){ + a15 = 0; + a0 = 1; + a18 = 1; + a5 = 0; + a6 = 1; + a3 = 8; + a12 = 12; + a22 = 0; + return -1; + } else if(((a15==1)&&((!(a18==1)&&(((a3==7)&&(((a4==1)&&((a27==1)&&((a20==1)&&(((a12==9)&&(input==5))&&(a0==1)))))&&!(a5==1)))&&(a6==1)))&&!(a22==1)))){ + a3 = 4; + a12 = 8; + a18 = 1; + a5 = 1; + a22 = 1; + return -1; + } else if(((((!(a15==1)&&((a20==1)&&((a3==5)&&(!(a5==1)&&((a12==8)&&(((input==5)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&!(a0==1)))))))&&!(a4==1))&&!(a27==1))&&!(a6==1))){ + a27 = 1; + a12 = 9; + a22 = 0; + a18 = 1; + a5 = 1; + return -1; + } else if((!(a0==1)&&(!(a4==1)&&(!(a15==1)&&((!(a27==1)&&((a12==8)&&((((!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1))))||(((a6==1)&&((!(a22==1)&&(a18==1))&&(a3==8)))||(((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))))&&(input==5))&&!(a5==1))))&&(a20==1)))))){ + if((a27==1)){ + a3 = 4; + a22 = 1; + a0 = 1; + a5 = 1; + a6 = 0; + a15 = 1; + a18 = 0; + a12 = 10; + }else{ + a3 = 7; + a27 = 1; + a5 = 1; + a18 = 0; + a0 = 1; + a15 = 1; + a6 = 1; + a22 = 0; + } + return 26; + } else if(((a6==1)&&((a22==1)&&((a3==7)&&((((((a12==11)&&(((((a18==1)||!(a18==1))&&(input==6))&&(a15==1))&&!(a27==1)))&&(a4==1))&&!(a0==1))&&(a20==1))&&(a5==1)))))){ + a12 = 8; + a0 = 1; + a6 = 0; + a3 = 8; + a27 = 1; + a18 = 1; + return 21; + } else if(((a6==1)&&((((((((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==4))&&(a12==8))&&!(a27==1))&&(a20==1))&&(a3==8))&&!(a5==1))&&!(a0==1))&&(a4==1))&&(a15==1)))){ + a3 = 4; + a22 = 0; + a18 = 1; + a0 = 1; + a5 = 1; + a6 = 0; + a27 = 1; + return -1; + } else if(((a27==1)&&((a4==1)&&((((a6==1)&&((a15==1)&&(((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==6))&&!(a5==1))&&(a12==8))&&(a20==1))))&&(a3==4))&&!(a0==1))))){ + a22 = 1; + a18 = 1; + a5 = 1; + a0 = 1; + return -1; + } else if((((a20==1)&&((a15==1)&&((((((a4==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))||((!(a18==1)&&(a22==1))&&(a3==7)))&&(input==5)))&&!(a0==1))&&!(a27==1))&&(a5==1))&&!(a6==1))))&&(a12==11))){ + a6 = 1; + a27 = 1; + a22 = 1; + a0 = 1; + a3 = 8; + a18 = 0; + a12 = 8; + return 26; + } else if(((a0==1)&&(((!(a27==1)&&(((!(a5==1)&&(((((a3==6)&&((a22==1)&&!(a18==1)))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1)))))&&(input==6))&&(a20==1)))&&(a4==1))&&(a12==10)))&&(a15==1))&&!(a6==1)))){ + a22 = 1; + a5 = 1; + a18 = 1; + a3 = 4; + a27 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if(((a3==5)&&((!(a15==1)&&((a22==1)&&(!(a6==1)&&((((a12==9)&&(((((a18==1)||!(a18==1))&&(input==3))&&!(a0==1))&&(a20==1)))&&(a4==1))&&!(a5==1)))))&&(a27==1)))){ + a18 = 0; + a12 = 10; + a3 = 7; + a4 = 0; + return -1; + } else if((((a4==1)&&((a20==1)&&(((a0==1)&&((a3==7)&&(!(a27==1)&&((((((a18==1)||!(a18==1))&&(input==2))&&(a22==1))&&(a15==1))&&!(a5==1)))))&&(a6==1))))&&(a12==10))){ + a22 = 0; + a6 = 0; + a27 = 1; + a15 = 0; + a3 = 5; + a18 = 1; + a4 = 0; + return 26; + } else if(((a6==1)&&(!(a22==1)&&((((a3==8)&&(((((((input==5)&&(a20==1))&&(a0==1))&&!(a5==1))&&!(a18==1))&&!(a27==1))&&(a12==8)))&&!(a4==1))&&!(a15==1))))){ + a6 = 0; + a12 = 12; + a4 = 1; + a18 = 1; + a15 = 1; + a27 = 1; + a22 = 1; + return 26; + } else if(((((a12==9)&&(!(a6==1)&&(!(a4==1)&&((a0==1)&&(((((((a22==1)&&!(a18==1))&&(a3==8))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8))))&&(input==5))&&(a5==1))&&(a27==1))))))&&!(a15==1))&&(a20==1))){ + a12 = 8; + a3 = 4; + a15 = 1; + a6 = 1; + a22 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if((!(a5==1)&&(((((a4==1)&&(!(a6==1)&&(((((((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==6)))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==5))&&(a15==1))&&!(a27==1))))&&(a0==1))&&(a12==10))&&(a20==1)))){ + a5 = 1; + a6 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a27 = 1; + a22 = 1; + return -1; + } else if((((((!(a22==1)&&((((((a3==7)&&((input==4)&&(a0==1)))&&!(a18==1))&&(a15==1))&&(a20==1))&&(a6==1)))&&(a4==1))&&!(a27==1))&&(a5==1))&&(a12==9))){ + a3 = 6; + a12 = 10; + a6 = 0; + a5 = 0; + a27 = 1; + return 21; + } else if(((a3==7)&&((a27==1)&&((a15==1)&&((((!(a0==1)&&((a5==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&(a4==1))))&&(a20==1))&&!(a6==1))&&(a12==8)))))){ + a3 = 5; + a0 = 1; + a15 = 0; + a6 = 1; + a12 = 10; + a22 = 0; + a18 = 1; + return 21; + } else if(((a4==1)&&((a6==1)&&((a0==1)&&(((a20==1)&&(!(a27==1)&&((((input==2)&&(((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==5))))&&(a12==12))&&(a15==1))))&&!(a5==1)))))){ + a22 = 1; + a4 = 0; + a0 = 0; + a18 = 1; + a12 = 11; + a27 = 1; + a3 = 8; + a5 = 1; + return 21; + } else if(((a15==1)&&((a4==1)&&((!(a0==1)&&((a22==1)&&((a3==5)&&(!(a27==1)&&((a6==1)&&(((a12==9)&&(((a18==1)||!(a18==1))&&(input==4)))&&!(a5==1)))))))&&(a20==1))))){ + a18 = 1; + a15 = 0; + a0 = 1; + a3 = 6; + a27 = 1; + a6 = 0; + a22 = 0; + a12 = 12; + return -1; + } else if((!(a27==1)&&((a0==1)&&((a12==11)&&((a15==1)&&((((((((a3==8)&&(!(a18==1)&&(a22==1)))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1)))))&&(input==6))&&!(a5==1))&&(a4==1))&&(a20==1))&&!(a6==1))))))){ + a4 = 0; + a12 = 10; + a22 = 1; + a3 = 4; + a5 = 1; + a27 = 1; + a18 = 0; + return 24; + } else if((!(a6==1)&&(((a12==8)&&(!(a18==1)&&(!(a0==1)&&(((((!(a15==1)&&((a3==4)&&(input==2)))&&(a20==1))&&!(a22==1))&&(a4==1))&&(a27==1)))))&&!(a5==1)))){ + a5 = 1; + a15 = 1; + a18 = 1; + a6 = 1; + a22 = 1; + a0 = 1; + return -1; + } else if((!(a15==1)&&((a18==1)&&((!(a6==1)&&((a3==6)&&(!(a22==1)&&((a27==1)&&(((((input==4)&&(a0==1))&&(a20==1))&&!(a4==1))&&(a5==1))))))&&(a12==9))))){ + a4 = 1; + a15 = 1; + a18 = 0; + a12 = 10; + a6 = 1; + a5 = 0; + a3 = 7; + return 26; + } else if(((a6==1)&&((a12==11)&&((!(a0==1)&&((a3==8)&&((!(a27==1)&&(!(a5==1)&&((((input==1)&&((a18==1)||!(a18==1)))&&(a4==1))&&!(a15==1))))&&(a20==1))))&&(a22==1))))){ + if((a3==4)){ + a15 = 1; + a22 = 0; + a27 = 1; + a4 = 0; + a5 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + }else{ + a3 = 7; + a5 = 1; + a18 = 0; + a22 = 0; + a15 = 1; + a27 = 1; + a6 = 0; + a12 = 8; + a0 = 1; + } + return 26; + } else if(((a6==1)&&(!(a0==1)&&((((!(a4==1)&&(!(a5==1)&&(((a12==11)&&((input==6)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))))&&(a20==1))))&&(a15==1))&&(a3==7))&&!(a27==1))))){ + if((a4==1)){ + a22 = 0; + a5 = 1; + a0 = 1; + a27 = 1; + a12 = 8; + a3 = 6; + a18 = 0; + a4 = 1; + }else{ + a18 = 1; + a22 = 0; + a4 = 1; + a3 = 4; + a0 = 1; + } + return 21; + } else if((((!(a15==1)&&(((a20==1)&&(!(a4==1)&&((((a3==4)&&((input==4)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))))&&!(a6==1))&&!(a5==1))))&&(a12==8)))&&(a27==1))&&(a0==1))){ + a18 = 0; + a12 = 11; + a22 = 1; + a3 = 8; + a5 = 1; + return 26; + } else if((!(a15==1)&&((a4==1)&&(!(a0==1)&&((a5==1)&&(((a12==8)&&(((input==2)&&((((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4)))))&&!(a27==1)))&&(a20==1))))))){ + a0 = 1; + a6 = 0; + a15 = 1; + a18 = 1; + a12 = 11; + a5 = 0; + a22 = 1; + a3 = 6; + return -1; + } else if(((((a18==1)&&((!(a0==1)&&(((!(a4==1)&&(((!(a15==1)&&(input==5))&&(a20==1))&&(a5==1)))&&!(a22==1))&&(a3==4)))&&(a27==1)))&&!(a6==1))&&(a12==10))){ + a15 = 1; + a6 = 1; + a12 = 8; + a22 = 1; + a0 = 1; + a4 = 1; + return -1; + } else if(((a20==1)&&(((((((a15==1)&&(((((((a18==1)&&!(a22==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4)))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==6))&&!(a6==1)))&&(a12==11))&&!(a0==1))&&(a4==1))&&(a5==1))&&!(a27==1)))){ + a27 = 1; + a22 = 1; + a15 = 0; + a3 = 6; + a0 = 1; + a18 = 1; + a4 = 0; + a12 = 12; + return 26; + } else if((!(a4==1)&&(((a15==1)&&((a12==9)&&((((a6==1)&&(((input==3)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1)))))&&!(a5==1)))&&(a20==1))&&(a27==1))))&&!(a0==1)))){ + a5 = 1; + a18 = 1; + a22 = 1; + a4 = 1; + a12 = 8; + a3 = 4; + a0 = 1; + return -1; + } else if(((!(a5==1)&&(((a20==1)&&(((a15==1)&&((a3==5)&&((((input==2)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a4==1))&&(a27==1))))&&(a0==1)))&&(a12==8)))&&(a6==1))){ + a12 = 9; + a18 = 0; + a4 = 0; + a3 = 6; + a6 = 0; + a22 = 1; + return 21; + } else if(((!(a5==1)&&((((a3==8)&&((a6==1)&&((a0==1)&&((a27==1)&&(((input==1)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a4==1))))))&&(a12==11))&&(a15==1)))&&(a20==1))){ + if((a0==1)){ + a6 = 0; + a22 = 1; + a12 = 9; + a18 = 0; + a4 = 0; + a0 = 0; + }else{ + a6 = 0; + a18 = 0; + a15 = 0; + a4 = 0; + a3 = 6; + a5 = 1; + a22 = 0; + } + return -1; + } else if(((a4==1)&&((((a6==1)&&(((!(a15==1)&&(((((((a18==1)&&!(a22==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5)))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==2))&&(a12==11)))&&(a27==1))&&(a20==1)))&&!(a5==1))&&(a0==1)))){ + a12 = 8; + a18 = 1; + a22 = 1; + a3 = 4; + a15 = 1; + a5 = 1; + return -1; + } else if(((a3==6)&&(((a27==1)&&(!(a6==1)&&((((!(a15==1)&&((a4==1)&&((a12==11)&&(!(a5==1)&&(input==3)))))&&!(a0==1))&&!(a22==1))&&(a20==1))))&&(a18==1)))){ + a15 = 1; + a6 = 1; + a3 = 8; + a12 = 10; + a0 = 1; + a4 = 0; + return -1; + } else if((!(a4==1)&&((a0==1)&&((((a22==1)&&((((a12==12)&&(((a6==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a3==8)))&&!(a15==1))&&(a5==1)))&&(a20==1))&&(a27==1))))){ + a4 = 1; + a18 = 0; + a6 = 0; + a12 = 10; + a15 = 1; + a3 = 4; + return 24; + } else if((!(a4==1)&&((!(a5==1)&&((a12==10)&&((!(a22==1)&&(!(a27==1)&&(((a15==1)&&(!(a18==1)&&((input==2)&&(a20==1))))&&(a0==1))))&&!(a6==1))))&&(a3==5)))){ + a6 = 1; + a3 = 7; + a18 = 1; + a22 = 1; + a12 = 12; + return 26; + } else if(((a5==1)&&((a3==6)&&((a6==1)&&(((((a12==11)&&(((a20==1)&&((input==5)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))))&&!(a4==1)))&&(a27==1))&&(a0==1))&&(a15==1)))))){ + a12 = 8; + a3 = 4; + a18 = 1; + a22 = 1; + a4 = 1; + return -1; + } else if((!(a27==1)&&(((a0==1)&&(((a20==1)&&(((a5==1)&&((((input==3)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&!(a15==1))&&!(a6==1)))&&(a3==6)))&&(a12==9)))&&(a4==1)))){ + a18 = 0; + a22 = 1; + a6 = 1; + a12 = 11; + a4 = 0; + a27 = 1; + return 21; + } else if(((a6==1)&&(((a27==1)&&((a0==1)&&((a5==1)&&((((((a20==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&!(a15==1))&&(a12==8))&&(a4==1))&&(a22==1)))))&&(a3==6)))){ + a15 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((((a5==1)&&((a20==1)&&((!(a15==1)&&(((((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a4==1))&&!(a0==1))&&(a12==9)))&&!(a6==1))))&&(a3==5))&&(a27==1))){ + a15 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + a0 = 1; + a18 = 1; + a6 = 1; + return -1; + } else if((!(a27==1)&&(((a20==1)&&(((a4==1)&&((!(a0==1)&&((((a12==11)&&(((a18==1)||!(a18==1))&&(input==6)))&&!(a15==1))&&!(a6==1)))&&(a3==8)))&&(a22==1)))&&(a5==1)))){ + a15 = 1; + a12 = 12; + a27 = 1; + a4 = 0; + a18 = 1; + a6 = 1; + a5 = 0; + a0 = 1; + return 21; + } else if((((!(a4==1)&&((a5==1)&&((((((((a12==11)&&(input==2))&&!(a6==1))&&(a27==1))&&(a18==1))&&(a3==8))&&!(a15==1))&&(a20==1))))&&(a0==1))&&!(a22==1))){ + a4 = 1; + a3 = 7; + a6 = 1; + a27 = 0; + return 21; + } else if(((a27==1)&&((((a20==1)&&(((a3==5)&&((a0==1)&&(((a15==1)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==1)))&&!(a4==1))))&&(a12==11)))&&(a5==1))&&!(a6==1)))){ + a3 = 8; + a12 = 10; + a18 = 1; + a22 = 1; + return -1; + } else if(((a20==1)&&((((((((((((a22==1)&&(a18==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a22==1)&&!(a18==1)))))&&(input==3))&&(a0==1))&&!(a6==1))&&(a5==1))&&(a12==12))&&!(a4==1))&&!(a27==1))&&!(a15==1)))){ + if((a3==5)){ + a22 = 0; + a27 = 1; + a4 = 1; + a18 = 1; + a3 = 5; + a12 = 11; + a6 = 1; + a0 = 0; + }else{ + a18 = 1; + a4 = 1; + a3 = 4; + a22 = 0; + } + return -1; + } else if((((a20==1)&&(((((a0==1)&&(!(a27==1)&&((!(a4==1)&&((!(a22==1)&&(input==3))&&!(a15==1)))&&(a18==1))))&&!(a5==1))&&(a12==9))&&!(a6==1)))&&(a3==5))){ + a0 = 0; + a27 = 1; + a3 = 7; + a12 = 8; + a4 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if(((a6==1)&&(!(a0==1)&&((a3==8)&&(!(a27==1)&&(((((!(a15==1)&&(!(a5==1)&&(((a18==1)||!(a18==1))&&(input==5))))&&(a12==11))&&(a20==1))&&(a22==1))&&(a4==1))))))){ + a12 = 8; + a3 = 4; + a0 = 1; + a15 = 1; + a27 = 1; + a5 = 1; + a18 = 0; + a4 = 0; + return 26; + } else if(((a3==7)&&(!(a6==1)&&(!(a22==1)&&(((((((a20==1)&&((a5==1)&&((input==1)&&(a18==1))))&&(a12==8))&&!(a27==1))&&(a4==1))&&(a0==1))&&!(a15==1)))))){ + a3 = 8; + a12 = 11; + a22 = 1; + a27 = 1; + a18 = 0; + return 21; + } else if(((a12==12)&&((a20==1)&&((((a0==1)&&(((((((a5==1)&&(input==4))&&(a22==1))&&(a18==1))&&!(a15==1))&&(a27==1))&&!(a4==1)))&&(a3==8))&&!(a6==1))))){ + a12 = 10; + a4 = 1; + a3 = 4; + a15 = 1; + a5 = 0; + a18 = 0; + return 21; + } else if((!(a0==1)&&((!(a4==1)&&((((a22==1)&&(((a3==6)&&((a12==11)&&((a6==1)&&((a20==1)&&(input==4)))))&&!(a18==1)))&&(a15==1))&&!(a5==1)))&&!(a27==1)))){ + if((a22==1)){ + a12 = 8; + a27 = 1; + a18 = 1; + a3 = 8; + a22 = 0; + a5 = 1; + a0 = 1; + }else{ + a12 = 12; + a18 = 1; + a27 = 1; + a15 = 0; + a0 = 1; + a4 = 1; + a5 = 1; + a3 = 5; + } + return 26; + } else if((((((a22==1)&&(((a4==1)&&(((a6==1)&&((a15==1)&&(((a18==1)&&(input==5))&&(a3==8))))&&(a0==1)))&&(a20==1)))&&(a12==8))&&!(a27==1))&&(a5==1))){ + a27 = 1; + a18 = 0; + a15 = 0; + a12 = 11; + a3 = 5; + return 24; + } else if((!(a27==1)&&(!(a4==1)&&((a5==1)&&(((!(a15==1)&&((a6==1)&&((a20==1)&&((!(a22==1)&&((input==6)&&!(a18==1)))&&(a3==7)))))&&(a12==11))&&(a0==1)))))){ + a4 = 1; + a27 = 1; + a12 = 12; + a22 = 1; + a3 = 5; + return 26; + } else if((((a12==8)&&(!(a15==1)&&(!(a4==1)&&(((a3==8)&&((a6==1)&&(((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==6))&&(a20==1))&&(a27==1))))&&(a5==1)))))&&(a0==1))){ + a3 = 6; + a4 = 1; + a18 = 1; + a22 = 1; + a6 = 0; + a12 = 9; + return 26; + } else if(((((a0==1)&&(((a4==1)&&((a5==1)&&(((a27==1)&&((!(a15==1)&&((input==4)&&!(a18==1)))&&!(a22==1)))&&(a6==1))))&&(a20==1)))&&(a3==7))&&(a12==10))){ + a27 = 0; + a5 = 0; + a3 = 4; + a6 = 0; + a12 = 9; + return 21; + } else if((((a5==1)&&((((a20==1)&&(((((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==4))&&(a15==1))&&(a6==1))&&(a4==1)))&&(a12==8))&&!(a0==1)))&&(a27==1))){ + a12 = 10; + a0 = 1; + a22 = 0; + a5 = 0; + a4 = 0; + a3 = 5; + a18 = 0; + return 21; + } else if(((((((((a22==1)&&(!(a0==1)&&(!(a15==1)&&(!(a5==1)&&((input==5)&&!(a4==1))))))&&!(a6==1))&&!(a18==1))&&(a3==6))&&(a12==8))&&(a20==1))&&(a27==1))){ + a18 = 1; + a15 = 1; + a12 = 10; + a3 = 8; + a6 = 1; + a5 = 1; + a4 = 1; + a22 = 0; + a0 = 1; + return -1; + } else if(((a27==1)&&((a4==1)&&((a5==1)&&((!(a0==1)&&((a3==5)&&(((((input==6)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a6==1))&&(a12==9))&&(a20==1))))&&!(a15==1)))))){ + a0 = 1; + a12 = 12; + a18 = 0; + a22 = 1; + return -1; + } else if((((a27==1)&&(((!(a4==1)&&(((((((input==2)&&(a3==4))&&(a12==9))&&!(a5==1))&&!(a6==1))&&(a20==1))&&(a18==1)))&&(a22==1))&&!(a15==1)))&&(a0==1))){ + a15 = 1; + a5 = 1; + a22 = 0; + a27 = 0; + a3 = 8; + return 21; + } else if(((a20==1)&&((a27==1)&&(((((a5==1)&&(((((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))||((a3==6)&&(!(a18==1)&&(a22==1))))&&(input==1))&&(a4==1))&&(a12==10)))&&!(a0==1))&&(a15==1))&&(a6==1))))){ + a22 = 0; + a3 = 5; + a4 = 0; + a6 = 0; + a0 = 1; + a5 = 0; + a18 = 0; + return 21; + } else if((!(a4==1)&&(((a27==1)&&(!(a18==1)&&((a22==1)&&((a3==5)&&(((!(a5==1)&&(((a15==1)&&(input==4))&&(a6==1)))&&(a12==8))&&(a0==1))))))&&(a20==1)))){ + a5 = 1; + a4 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((((a4==1)&&((a27==1)&&(!(a15==1)&&((((((((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==6))&&(a12==10))&&(a0==1))&&!(a5==1))&&(a6==1)))))&&(a20==1))){ + a12 = 11; + a18 = 1; + a3 = 5; + a6 = 0; + a4 = 0; + a22 = 0; + return 21; + } else if(((a4==1)&&((a5==1)&&(!(a15==1)&&(((a27==1)&&((a0==1)&&((((((a3==5)&&(!(a18==1)&&(a22==1)))||(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5))))&&(input==2))&&(a12==12))&&(a6==1))))&&(a20==1)))))){ + a3 = 4; + a4 = 0; + a22 = 0; + a18 = 1; + a12 = 11; + a5 = 0; + return -1; + } else if((((!(a15==1)&&(!(a4==1)&&(((a20==1)&&((a6==1)&&((((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))||(((a22==1)&&!(a18==1))&&(a3==5)))&&(input==4))&&!(a27==1))))&&(a0==1))))&&(a12==12))&&!(a5==1))){ + a12 = 9; + a27 = 1; + a3 = 7; + a6 = 0; + a22 = 0; + a18 = 1; + return -1; + } else if((((!(a4==1)&&(((((a27==1)&&((((a12==8)&&(!(a22==1)&&(input==1)))&&!(a15==1))&&(a18==1)))&&!(a0==1))&&(a3==5))&&(a5==1)))&&!(a6==1))&&(a20==1))){ + a0 = 1; + a4 = 1; + a6 = 1; + a15 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if((((a6==1)&&(((a3==4)&&(!(a5==1)&&((!(a18==1)&&((a0==1)&&((a22==1)&&(((a20==1)&&(input==2))&&!(a15==1)))))&&(a12==9))))&&!(a27==1)))&&!(a4==1))){ + a22 = 0; + a3 = 5; + a5 = 1; + a12 = 8; + return -1; + } else if((((((!(a15==1)&&(!(a6==1)&&(((a20==1)&&(((input==1)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&!(a27==1)))&&(a0==1))))&&(a12==9))&&(a3==6))&&(a4==1))&&(a5==1))){ + a27 = 1; + a12 = 12; + a18 = 1; + a3 = 4; + a22 = 0; + return 26; + } else if(((a15==1)&&((a27==1)&&(((a6==1)&&((!(a0==1)&&((a3==6)&&(!(a5==1)&&((!(a4==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a22==1)))))&&(a20==1)))&&(a12==11))))){ + a22 = 0; + a3 = 8; + a15 = 0; + a0 = 1; + a18 = 0; + return 21; + } else if((((a20==1)&&(((a12==9)&&((a4==1)&&((((((!(a22==1)&&(input==3))&&(a15==1))&&!(a5==1))&&(a18==1))&&!(a0==1))&&(a27==1))))&&(a3==5)))&&(a6==1))){ + if((a27==1)){ + a5 = 1; + a12 = 11; + a3 = 4; + a6 = 0; + a22 = 1; + a4 = 0; + }else{ + a12 = 10; + a15 = 0; + a6 = 0; + a3 = 6; + a0 = 1; + } + return 26; + } else if(((a22==1)&&((a15==1)&&((!(a27==1)&&((!(a18==1)&&((a12==9)&&((!(a0==1)&&(((input==4)&&(a3==8))&&!(a6==1)))&&(a4==1))))&&!(a5==1)))&&(a20==1))))){ + a18 = 1; + a12 = 12; + a5 = 1; + a27 = 1; + a22 = 0; + a0 = 1; + return 26; + } else if((((!(a18==1)&&((a3==7)&&(((((((a20==1)&&((a12==9)&&(input==1)))&&(a4==1))&&!(a22==1))&&!(a6==1))&&(a15==1))&&(a0==1))))&&(a5==1))&&!(a27==1))){ + a12 = 11; + a5 = 0; + a4 = 0; + a3 = 8; + a18 = 1; + a15 = 0; + a27 = 1; + return 26; + } else if(((a12==10)&&(((((a22==1)&&(((((a4==1)&&((!(a15==1)&&(input==4))&&(a20==1)))&&(a0==1))&&(a5==1))&&(a3==8)))&&!(a6==1))&&!(a18==1))&&(a27==1)))){ + a3 = 4; + a15 = 1; + return -1; + } else if(((a3==7)&&((((((a5==1)&&(!(a22==1)&&(!(a18==1)&&(!(a15==1)&&(((input==2)&&(a20==1))&&!(a27==1))))))&&!(a6==1))&&(a12==9))&&(a0==1))&&(a4==1)))){ + a12 = 10; + a6 = 1; + a22 = 1; + a3 = 5; + a27 = 1; + return 26; + } else if(((a0==1)&&(((a20==1)&&((a6==1)&&((a12==8)&&(!(a15==1)&&((((((a5==1)&&(input==3))&&(a27==1))&&(a3==8))&&!(a4==1))&&!(a22==1))))))&&!(a18==1)))){ + a12 = 9; + a18 = 1; + a4 = 1; + a3 = 7; + a6 = 0; + return 21; + } else if((((a15==1)&&(((a6==1)&&(((a0==1)&&((a12==10)&&((a27==1)&&((a4==1)&&(!(a18==1)&&((input==4)&&(a22==1)))))))&&(a3==8)))&&(a20==1)))&&(a5==1))){ + a15 = 0; + a18 = 1; + a3 = 6; + a12 = 8; + return -1; + } else if(((((a20==1)&&((a15==1)&&((a12==8)&&(!(a6==1)&&((!(a27==1)&&((((a3==7)&&((a18==1)&&(a22==1)))||(((a3==6)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==6))))&&(input==5)))&&!(a5==1))))))&&(a0==1))&&(a4==1))){ + a27 = 1; + a3 = 4; + a6 = 1; + a18 = 1; + a12 = 12; + a22 = 1; + return 26; + } else if((!(a0==1)&&(!(a15==1)&&(((a12==10)&&(((a20==1)&&(((((((!(a18==1)&&!(a22==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))||((a3==7)&&((a22==1)&&!(a18==1))))&&(input==5))&&!(a6==1))&&(a4==1)))&&!(a5==1)))&&!(a27==1))))){ + a3 = 7; + a18 = 1; + a22 = 0; + a15 = 1; + a12 = 8; + return -1; + } else if(((((a5==1)&&(!(a6==1)&&((a15==1)&&((a27==1)&&((a0==1)&&((a12==10)&&(((input==4)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a20==1))))))))&&!(a4==1))&&(a3==7))){ + a22 = 0; + a3 = 6; + a18 = 0; + return -1; + } else if(((!(a15==1)&&((!(a6==1)&&((a0==1)&&((a12==9)&&(((a20==1)&&((((a3==5)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4))))&&(input==1)))&&!(a27==1)))))&&(a5==1)))&&!(a4==1))){ + a12 = 8; + a4 = 1; + a6 = 1; + a18 = 1; + a22 = 0; + a3 = 6; + return -1; + } else if(((((!(a0==1)&&((a12==10)&&(!(a22==1)&&((!(a15==1)&&((a3==4)&&(((input==3)&&!(a18==1))&&!(a27==1))))&&!(a4==1)))))&&(a20==1))&&!(a5==1))&&!(a6==1))){ + if((a15==1)){ + a0 = 1; + a15 = 1; + a4 = 1; + a5 = 1; + a27 = 1; + a12 = 8; + }else{ + a0 = 1; + a15 = 1; + a4 = 1; + a22 = 1; + a27 = 1; + a18 = 1; + a6 = 1; + a3 = 7; + a5 = 1; + a12 = 8; + } + return -1; + } else if(((((a20==1)&&((!(a4==1)&&((!(a0==1)&&(!(a6==1)&&((input==1)&&((((a22==1)&&(a18==1))&&(a3==5))||(((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1))))))))&&(a15==1)))&&(a12==9)))&&!(a5==1))&&!(a27==1))){ + if((a27==1)){ + a18 = 0; + a3 = 8; + a6 = 1; + a15 = 0; + a12 = 12; + a27 = 1; + a22 = 1; + }else{ + a3 = 5; + a22 = 0; + a0 = 1; + a12 = 8; + a5 = 1; + a27 = 1; + a18 = 0; + a6 = 1; + } + return 21; + } else if(((!(a0==1)&&((a5==1)&&((!(a4==1)&&((a22==1)&&((a12==11)&&((a3==6)&&(!(a15==1)&&((a27==1)&&(((a18==1)||!(a18==1))&&(input==6))))))))&&(a6==1))))&&(a20==1))){ + a0 = 1; + a18 = 1; + a15 = 1; + a12 = 8; + a4 = 1; + a3 = 4; + return -1; + } return calculate_output12(input); + } + + int calculate_output12(int input) { + if((((a5==1)&&(((((a12==12)&&((a20==1)&&(!(a0==1)&&((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==3))&&!(a15==1)))))&&(a27==1))&&(a3==5))&&!(a4==1)))&&!(a6==1))){ + a27 = 0; + a12 = 10; + a0 = 1; + a5 = 0; + a4 = 1; + a15 = 1; + a3 = 8; + a22 = 0; + a18 = 0; + return -1; + } else if((((!(a0==1)&&(((a5==1)&&((a3==5)&&(!(a27==1)&&(((a12==10)&&((((a18==1)||!(a18==1))&&(input==3))&&!(a15==1)))&&!(a22==1)))))&&(a6==1)))&&(a20==1))&&(a4==1))){ + a22 = 1; + a5 = 0; + a18 = 1; + a27 = 1; + a3 = 8; + a15 = 1; + a12 = 12; + return 26; + } else if(((a0==1)&&(!(a6==1)&&((a5==1)&&(((((a15==1)&&((a20==1)&&(!(a4==1)&&((input==3)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))))&&!(a27==1))&&(a3==6))&&(a12==8)))))){ + a5 = 0; + a15 = 0; + a22 = 1; + a4 = 1; + a18 = 1; + a3 = 8; + a12 = 11; + return 26; + } else if((((a15==1)&&(((a20==1)&&(!(a27==1)&&(((a12==12)&&(((a0==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5)))&&!(a4==1)))&&(a5==1))))&&(a3==6)))&&(a6==1))){ + a27 = 1; + a3 = 7; + a18 = 0; + a22 = 0; + a15 = 0; + a6 = 0; + a5 = 0; + return -1; + } else if((((!(a27==1)&&(!(a15==1)&&(((!(a6==1)&&((a12==11)&&((((input==6)&&(a18==1))&&(a20==1))&&(a5==1))))&&!(a22==1))&&(a4==1))))&&!(a0==1))&&(a3==8))){ + if((a20==1)){ + a27 = 1; + a15 = 1; + a4 = 0; + a5 = 0; + a22 = 1; + a6 = 1; + }else{ + a12 = 8; + a0 = 1; + a15 = 1; + a3 = 5; + } + return -1; + } else if((((((a20==1)&&((((a3==8)&&(((a12==11)&&(((input==5)&&(a5==1))&&(a4==1)))&&(a22==1)))&&!(a6==1))&&!(a27==1)))&&(a15==1))&&(a0==1))&&(a18==1))){ + a4 = 0; + a3 = 7; + a6 = 1; + a12 = 12; + a27 = 1; + return -1; + } else if(((a5==1)&&((!(a4==1)&&(((a27==1)&&(!(a22==1)&&((((a12==12)&&(((a20==1)&&(input==6))&&!(a18==1)))&&!(a0==1))&&(a15==1))))&&!(a6==1)))&&(a3==5)))){ + a18 = 1; + a3 = 7; + a0 = 1; + a15 = 0; + a5 = 0; + a22 = 1; + a6 = 1; + a12 = 10; + return 26; + } else if((((!(a5==1)&&((a0==1)&&((a18==1)&&((a22==1)&&((((a3==5)&&((!(a6==1)&&(input==2))&&!(a15==1)))&&(a12==8))&&(a27==1))))))&&(a20==1))&&(a4==1))){ + if((a3==7)){ + a27 = 0; + a3 = 7; + a12 = 12; + a18 = 0; + }else{ + a0 = 0; + a3 = 8; + a15 = 1; + } + return 26; + } else if((((!(a0==1)&&((a27==1)&&((((a3==8)&&(((a5==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5)))&&(a6==1)))&&(a4==1))&&(a15==1))))&&(a12==8))&&(a20==1))){ + a3 = 4; + a22 = 1; + a18 = 1; + a0 = 1; + return -1; + } else if((((((!(a4==1)&&(((((a12==11)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==6)))&&(a3==8))&&(a20==1))&&!(a15==1)))&&(a6==1))&&(a27==1))&&!(a5==1))&&(a0==1))){ + a3 = 5; + a4 = 1; + a22 = 0; + a12 = 10; + a18 = 1; + return 21; + } else if(((!(a4==1)&&((!(a27==1)&&(!(a5==1)&&((a20==1)&&((a15==1)&&(((((a3==4)&&((a22==1)&&!(a18==1)))&&!(a6==1))||((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4)))))&&(input==3))))))&&!(a0==1)))&&(a12==11))){ + a5 = 1; + a22 = 0; + a0 = 1; + a3 = 4; + a4 = 1; + a18 = 0; + a6 = 0; + a12 = 8; + a27 = 1; + return 21; + } else if(((a22==1)&&(((a4==1)&&(((!(a0==1)&&(!(a5==1)&&(!(a6==1)&&(((!(a27==1)&&(input==1))&&(a20==1))&&!(a18==1)))))&&(a12==9))&&(a15==1)))&&(a3==5)))){ + a5 = 1; + a0 = 1; + a27 = 1; + a6 = 1; + a3 = 8; + a12 = 8; + return 21; + } else if(((a18==1)&&(((a5==1)&&(((((a20==1)&&((a3==5)&&(!(a15==1)&&(((a12==9)&&(input==2))&&(a6==1)))))&&!(a27==1))&&(a0==1))&&!(a4==1)))&&(a22==1)))){ + if((a4==1)){ + a6 = 0; + a0 = 0; + a5 = 0; + a4 = 1; + a18 = 0; + a27 = 1; + }else{ + a5 = 0; + a22 = 0; + a6 = 0; + a4 = 1; + a18 = 0; + a3 = 4; + a12 = 11; + } + return 26; + } else if((((!(a0==1)&&((((a4==1)&&(!(a15==1)&&((a20==1)&&((a12==9)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==2))))))&&!(a6==1))&&(a5==1)))&&(a3==7))&&(a27==1))){ + a6 = 1; + a22 = 1; + a18 = 1; + a0 = 1; + a3 = 5; + a12 = 10; + a5 = 0; + return 26; + } else if(((a20==1)&&(!(a6==1)&&((((a12==11)&&(((a3==5)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5))&&!(a0==1))&&!(a5==1)))&&(a27==1)))&&!(a15==1))&&!(a4==1))))){ + a0 = 1; + a18 = 0; + a12 = 9; + a27 = 0; + a4 = 1; + a5 = 1; + a15 = 1; + a22 = 0; + a3 = 4; + return 21; + } else if((((((a15==1)&&((a22==1)&&((a12==11)&&((a3==7)&&(!(a0==1)&&(((((a18==1)||!(a18==1))&&(input==1))&&(a6==1))&&(a4==1)))))))&&(a5==1))&&!(a27==1))&&(a20==1))){ + a18 = 1; + a12 = 10; + a6 = 0; + a15 = 0; + a27 = 1; + return 26; + } else if((!(a6==1)&&((((a15==1)&&((!(a5==1)&&((!(a27==1)&&((a3==7)&&((a0==1)&&((input==4)&&!(a18==1)))))&&!(a4==1)))&&(a20==1)))&&!(a22==1))&&(a12==10)))){ + a15 = 0; + a18 = 1; + a0 = 0; + a12 = 8; + a27 = 1; + a3 = 5; + return 21; + } else if(((a4==1)&&((!(a15==1)&&(((a6==1)&&(((((a3==6)&&((input==3)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))))&&!(a0==1))&&(a5==1))&&(a27==1)))&&(a20==1)))&&(a12==12)))){ + a12 = 11; + a6 = 0; + a18 = 1; + a0 = 1; + a3 = 5; + a22 = 1; + a15 = 1; + return -1; + } else if((((a12==8)&&((!(a6==1)&&(!(a27==1)&&((!(a5==1)&&(!(a4==1)&&((((a3==7)&&(!(a18==1)&&(a22==1)))||(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1)))))&&(input==5))))&&(a15==1))))&&(a20==1)))&&!(a0==1))){ + if((a15==1)){ + a18 = 1; + a12 = 10; + a22 = 1; + a4 = 1; + a27 = 1; + a5 = 1; + a15 = 0; + a3 = 4; + }else{ + a5 = 1; + a3 = 5; + a0 = 1; + a18 = 0; + a22 = 0; + a4 = 1; + } + return 26; + } else if((((a22==1)&&((a15==1)&&(((((!(a18==1)&&((!(a0==1)&&(!(a6==1)&&(input==5)))&&(a27==1)))&&(a3==4))&&(a20==1))&&(a12==10))&&!(a5==1))))&&!(a4==1))){ + a5 = 1; + a4 = 1; + a0 = 1; + a6 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if((((((((((!(a6==1)&&(((input==6)&&(a4==1))&&!(a5==1)))&&(a22==1))&&(a27==1))&&!(a0==1))&&!(a18==1))&&(a3==7))&&(a12==9))&&(a15==1))&&(a20==1))){ + a6 = 1; + a12 = 8; + a0 = 1; + a5 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((((a12==12)&&((a6==1)&&(((a3==6)&&((!(a4==1)&&(((a20==1)&&((a22==1)&&(((a18==1)||!(a18==1))&&(input==6))))&&!(a5==1)))&&(a27==1)))&&(a0==1))))&&!(a15==1))){ + a18 = 1; + a15 = 1; + a4 = 1; + a3 = 7; + a5 = 1; + return -1; + } else if(((a15==1)&&((a22==1)&&((((a20==1)&&((((((!(a5==1)&&(input==4))&&(a4==1))&&(a18==1))&&(a6==1))&&!(a0==1))&&(a3==5)))&&!(a27==1))&&(a12==11))))){ + a12 = 8; + a4 = 0; + a5 = 1; + a3 = 6; + a27 = 1; + a0 = 1; + a22 = 0; + return 21; + } else if((((((((((a27==1)&&((((input==5)&&(a20==1))&&(a5==1))&&(a12==12)))&&!(a6==1))&&!(a22==1))&&(a3==5))&&!(a4==1))&&!(a0==1))&&(a15==1))&&!(a18==1))){ + a4 = 1; + a3 = 4; + a0 = 1; + a12 = 11; + a22 = 1; + return 21; + } else if((((a3==5)&&((a0==1)&&(((((((a22==1)&&((!(a15==1)&&(input==1))&&(a20==1)))&&!(a18==1))&&(a27==1))&&(a6==1))&&(a5==1))&&(a12==8))))&&!(a4==1))){ + a4 = 1; + a12 = 11; + a15 = 1; + a0 = 0; + a3 = 4; + return 24; + } else if(((a12==9)&&((a27==1)&&(!(a5==1)&&((((a20==1)&&(((((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1)))&&(a6==1))||((((a3==8)&&((a4==1)&&(!(a22==1)&&(a18==1))))&&!(a6==1))||((((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8))&&!(a6==1))))&&(input==1)))&&!(a15==1))&&!(a0==1)))))){ + a3 = 6; + a4 = 1; + a6 = 1; + a22 = 0; + a0 = 1; + a18 = 1; + return 21; + } else if((((a12==9)&&((a5==1)&&((((a15==1)&&(!(a4==1)&&((((input==4)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a20==1))&&!(a0==1))))&&(a3==4))&&!(a6==1))))&&!(a27==1))){ + if((a0==1)){ + a6 = 1; + a27 = 1; + a3 = 5; + a18 = 1; + a0 = 1; + a4 = 1; + a12 = 8; + a22 = 0; + }else{ + a0 = 1; + a4 = 1; + a12 = 8; + a3 = 8; + a22 = 1; + a27 = 1; + a18 = 0; + } + return -1; + } else if((!(a0==1)&&(!(a5==1)&&((!(a6==1)&&((a15==1)&&((((a4==1)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==3)))&&(a27==1))&&(a12==9))))&&(a20==1))))){ + a0 = 1; + a15 = 0; + a18 = 0; + a22 = 1; + a27 = 0; + a3 = 6; + return -1; + } else if(((a12==9)&&(!(a5==1)&&(((((a18==1)&&(((!(a15==1)&&((!(a27==1)&&(input==2))&&(a6==1)))&&(a3==8))&&!(a0==1)))&&(a20==1))&&(a22==1))&&(a4==1))))){ + a18 = 0; + a12 = 11; + a3 = 6; + a6 = 0; + a15 = 1; + a22 = 0; + return 21; + } else if(((((((((a20==1)&&(((!(a6==1)&&((input==1)&&(a15==1)))&&(a12==8))&&!(a22==1)))&&(a3==8))&&!(a18==1))&&!(a5==1))&&!(a0==1))&&(a27==1))&&(a4==1))){ + a0 = 1; + a12 = 11; + a22 = 1; + a4 = 0; + a18 = 1; + a6 = 1; + return -1; + } else if(((a27==1)&&((a12==10)&&(!(a0==1)&&(((a5==1)&&((a3==8)&&(((a20==1)&&(((!(a22==1)&&(input==3))&&!(a18==1))&&!(a15==1)))&&!(a4==1))))&&!(a6==1)))))){ + a22 = 1; + a0 = 1; + a15 = 1; + a3 = 6; + a12 = 8; + return 21; + } else if(((a20==1)&&((((a12==11)&&((a0==1)&&((a3==8)&&(((a18==1)&&((a15==1)&&(((input==3)&&!(a6==1))&&(a22==1))))&&(a4==1)))))&&!(a27==1))&&(a5==1)))){ + a3 = 6; + a5 = 0; + a6 = 1; + a15 = 0; + a4 = 0; + return 26; + } else if(((a15==1)&&((a12==11)&&((((!(a4==1)&&(((input==4)&&((((a3==4)&&(!(a18==1)&&(a22==1)))&&!(a6==1))||(((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1)))))&&(a20==1)))&&!(a27==1))&&!(a0==1))&&!(a5==1))))){ + if((a4==1)){ + a22 = 1; + a0 = 1; + a12 = 8; + a3 = 6; + a4 = 1; + a18 = 1; + a27 = 1; + a6 = 1; + a5 = 1; + }else{ + a22 = 0; + a12 = 8; + a6 = 1; + a27 = 1; + a18 = 0; + a3 = 7; + a5 = 1; + a0 = 1; + } + return -1; + } else if((((!(a15==1)&&((a3==7)&&((!(a27==1)&&(((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a5==1))&&(a6==1))&&!(a0==1)))&&(a12==8))))&&(a20==1))&&(a4==1))){ + a3 = 4; + a15 = 1; + a22 = 1; + a18 = 0; + a4 = 0; + a27 = 1; + a0 = 1; + return -1; + } else if(((a0==1)&&(!(a4==1)&&(!(a6==1)&&((((a20==1)&&(((((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a12==11))&&(a3==4))&&(a15==1)))&&!(a5==1))&&(a27==1)))))){ + a18 = 0; + a27 = 0; + a22 = 1; + a4 = 1; + return 21; + } else if((((a12==11)&&((!(a5==1)&&((a20==1)&&((a0==1)&&((a6==1)&&((!(a15==1)&&((input==5)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))))&&(a4==1))))))&&(a27==1)))&&(a3==4))){ + a18 = 0; + a12 = 12; + a4 = 0; + a27 = 0; + a22 = 1; + return -1; + } else if((!(a6==1)&&((a4==1)&&(((a20==1)&&((!(a0==1)&&((a12==10)&&(((a5==1)&&((input==2)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))))&&(a27==1))))&&!(a15==1)))&&(a3==7))))){ + a15 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + a18 = 1; + a6 = 1; + a0 = 1; + return -1; + } else if((((((a20==1)&&(((a4==1)&&((a12==9)&&((a3==5)&&(((a6==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a15==1)))))&&(a0==1)))&&!(a22==1))&&(a27==1))&&(a5==1))){ + a18 = 1; + a12 = 11; + a6 = 0; + a15 = 0; + a5 = 0; + return 24; + } else if((!(a5==1)&&((a20==1)&&(!(a6==1)&&((a27==1)&&((a15==1)&&((a0==1)&&(!(a4==1)&&((((((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==5)))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==2))&&(a12==9)))))))))){ + a22 = 1; + a12 = 8; + a4 = 1; + a6 = 1; + a3 = 4; + a18 = 1; + a5 = 1; + return -1; + } else if((((((((a12==10)&&((((a20==1)&&(((a5==1)&&(input==5))&&(a3==5)))&&(a18==1))&&!(a22==1)))&&!(a27==1))&&(a0==1))&&!(a15==1))&&!(a4==1))&&!(a6==1))){ + a3 = 4; + a27 = 1; + a6 = 1; + a22 = 1; + a4 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if((((a3==8)&&((((a12==12)&&((((a4==1)&&((a0==1)&&(!(a6==1)&&(!(a27==1)&&(input==3)))))&&(a18==1))&&(a20==1)))&&!(a22==1))&&(a5==1)))&&!(a15==1))){ + a12 = 10; + a6 = 1; + a27 = 1; + a3 = 7; + a22 = 1; + a5 = 0; + return 21; + } else if(((((!(a0==1)&&((a5==1)&&((!(a4==1)&&((((((a22==1)&&!(a18==1))&&(a3==5))||(((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5))))&&(input==2))&&(a12==9)))&&!(a27==1))))&&(a6==1))&&(a15==1))&&(a20==1))){ + a6 = 0; + a3 = 8; + a12 = 10; + a18 = 1; + a4 = 1; + a22 = 1; + return -1; + } else if(((a5==1)&&((a22==1)&&((a12==8)&&((a15==1)&&(!(a27==1)&&(((a20==1)&&(!(a4==1)&&((a3==4)&&((a0==1)&&((input==2)&&(a18==1))))))&&(a6==1)))))))){ + a18 = 0; + a5 = 0; + a15 = 0; + a3 = 8; + a22 = 0; + a6 = 0; + a27 = 1; + a12 = 11; + return 26; + } else if((((a4==1)&&((a27==1)&&((!(a5==1)&&((a6==1)&&((((input==6)&&((((a22==1)&&(a18==1))&&(a3==5))||(((!(a22==1)&&(a18==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4)))))&&!(a15==1))&&(a0==1))))&&(a20==1))))&&(a12==12))){ + a4 = 0; + a22 = 0; + a15 = 1; + a5 = 1; + a3 = 4; + a18 = 0; + return 24; + } else if(((((!(a5==1)&&((!(a0==1)&&((a22==1)&&(((((a3==7)&&(input==6))&&(a27==1))&&(a12==12))&&(a18==1))))&&(a20==1)))&&(a6==1))&&(a4==1))&&(a15==1))){ + a18 = 0; + a12 = 8; + a6 = 0; + a3 = 4; + a5 = 1; + return -1; + } else if(((a27==1)&&((a12==10)&&((((a3==8)&&((((a20==1)&&(!(a0==1)&&((input==6)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&!(a5==1))&&(a6==1)))&&(a15==1))&&!(a4==1))))){ + a3 = 4; + a18 = 1; + a5 = 1; + a0 = 1; + a22 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if((((a12==9)&&(((a3==8)&&(((((!(a0==1)&&(!(a6==1)&&((input==5)&&((a18==1)||!(a18==1)))))&&(a20==1))&&(a4==1))&&!(a22==1))&&!(a5==1)))&&!(a27==1)))&&(a15==1))){ + a27 = 1; + a12 = 8; + a18 = 1; + a3 = 6; + a5 = 1; + a22 = 1; + a0 = 1; + return 21; + } else if(((((a12==12)&&((a0==1)&&(!(a22==1)&&(((((((a20==1)&&(input==5))&&(a3==4))&&!(a6==1))&&(a4==1))&&!(a27==1))&&(a18==1)))))&&(a5==1))&&!(a15==1))){ + a18 = 0; + a12 = 10; + a5 = 0; + a22 = 1; + a3 = 7; + a27 = 1; + return 21; + } else if(((!(a15==1)&&(!(a0==1)&&((((a18==1)&&(((((!(a5==1)&&(input==6))&&(a22==1))&&(a4==1))&&(a20==1))&&(a6==1)))&&(a27==1))&&(a12==10))))&&(a3==4))){ + a0 = 1; + a12 = 8; + a5 = 1; + a15 = 1; + return -1; + } else if((((((a4==1)&&(!(a0==1)&&((((a5==1)&&(!(a15==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==3))))&&(a12==9))&&(a20==1))))&&!(a6==1))&&(a27==1))&&(a3==4))){ + a12 = 12; + a18 = 1; + a15 = 1; + a0 = 1; + a22 = 1; + return 26; + } else if((((a3==4)&&(((a20==1)&&((((((a27==1)&&((input==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))&&!(a15==1))&&!(a5==1))&&(a0==1))&&!(a6==1)))&&!(a4==1)))&&(a12==8))){ + a5 = 1; + a3 = 7; + a12 = 11; + a22 = 0; + a18 = 0; + return 21; + } else if(((((((a12==11)&&((a0==1)&&((a4==1)&&((a20==1)&&(!(a5==1)&&((input==3)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))))))))&&(a3==4))&&(a15==1))&&(a27==1))&&!(a6==1))){ + a6 = 1; + a3 = 5; + a27 = 0; + a15 = 0; + a22 = 0; + a4 = 0; + a18 = 0; + a5 = 1; + return 21; + } else if(((a6==1)&&((a20==1)&&((((a4==1)&&((a15==1)&&(!(a0==1)&&((((((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a22==1)&&!(a18==1))))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==5))&&(a27==1)))))&&(a12==9))&&(a5==1))))){ + if((a20==1)){ + a22 = 1; + a6 = 0; + a18 = 0; + a5 = 0; + a3 = 6; + }else{ + a12 = 12; + a22 = 1; + a4 = 0; + a0 = 1; + a18 = 1; + a3 = 4; + } + return 24; + } else if((((a15==1)&&(!(a6==1)&&((((a3==5)&&((a5==1)&&(((a12==12)&&(((input==2)&&!(a27==1))&&!(a22==1)))&&(a0==1))))&&(a20==1))&&!(a4==1))))&&(a18==1))){ + a4 = 1; + a6 = 1; + a27 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + return -1; + } else if(((((!(a5==1)&&(!(a22==1)&&(((!(a6==1)&&((a20==1)&&(((a12==8)&&(input==1))&&!(a4==1))))&&!(a27==1))&&!(a0==1))))&&(a15==1))&&!(a18==1))&&(a3==7))){ + a0 = 1; + a4 = 1; + a5 = 1; + a27 = 1; + a15 = 0; + a12 = 9; + a18 = 1; + a3 = 6; + a22 = 1; + return -1; + } else if(((!(a22==1)&&(((a20==1)&&((((a3==8)&&(!(a18==1)&&((((input==5)&&(a6==1))&&!(a27==1))&&(a12==9))))&&!(a0==1))&&!(a15==1)))&&(a4==1)))&&!(a5==1))){ + a22 = 1; + a27 = 1; + a3 = 4; + a5 = 1; + a4 = 0; + a12 = 8; + a0 = 1; + a15 = 1; + return 26; + } else if((((a5==1)&&(((!(a15==1)&&(!(a4==1)&&((((!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4)))||((((!(a22==1)&&(a18==1))&&(a3==8))&&(a6==1))||(((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))))&&(input==2))&&(a20==1))))&&!(a27==1))&&(a12==10)))&&(a0==1))){ + a18 = 1; + a27 = 1; + a22 = 0; + a4 = 1; + a6 = 1; + a12 = 11; + a3 = 8; + a0 = 0; + return -1; + } else if(((((a18==1)&&((!(a15==1)&&(((a3==7)&&(!(a6==1)&&((a27==1)&&(((a12==10)&&(input==5))&&(a20==1)))))&&(a0==1)))&&(a4==1)))&&(a5==1))&&(a22==1))){ + a27 = 0; + a12 = 9; + a18 = 0; + a4 = 0; + a5 = 0; + a6 = 1; + return 21; + } else if((!(a6==1)&&((!(a4==1)&&((((((a20==1)&&((a3==6)&&((input==3)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))&&(a12==11))&&!(a15==1))&&(a5==1))&&!(a0==1)))&&(a27==1)))){ + a5 = 0; + a0 = 1; + a22 = 1; + a3 = 8; + a12 = 10; + a18 = 0; + a15 = 1; + a6 = 1; + return -1; + } else if((((a15==1)&&((a6==1)&&((((a27==1)&&(((a5==1)&&((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==5))&&(a3==5)))&&(a12==9)))&&!(a0==1))&&(a20==1))))&&!(a4==1))){ + a15 = 0; + a5 = 0; + a3 = 8; + a18 = 1; + a22 = 0; + a0 = 1; + a27 = 0; + return 26; + } else if((!(a27==1)&&(!(a4==1)&&(((!(a5==1)&&(((((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==1))&&(a12==9))&&(a6==1))&&(a3==4))&&!(a0==1)))&&!(a15==1))&&(a20==1))))){ + a3 = 5; + a15 = 1; + a0 = 1; + a5 = 1; + a12 = 8; + a27 = 1; + a22 = 0; + a18 = 0; + a4 = 1; + return 24; + } else if((((((a3==7)&&((a0==1)&&(((a12==9)&&((a20==1)&&((!(a5==1)&&((a22==1)&&(input==5)))&&(a15==1))))&&(a6==1))))&&!(a18==1))&&(a27==1))&&(a4==1))){ + a18 = 1; + a3 = 5; + a15 = 0; + a6 = 0; + a5 = 1; + a12 = 12; + a22 = 0; + return 21; + } else if(((a12==11)&&(((a4==1)&&((a6==1)&&((((!(a15==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==2))&&(a0==1)))&&(a5==1))&&(a20==1))&&(a27==1))))&&(a3==8)))){ + a0 = 0; + a4 = 0; + a22 = 0; + a6 = 0; + a18 = 0; + a12 = 10; + a3 = 4; + a15 = 1; + return 26; + } else if((((a20==1)&&(((((a4==1)&&(((a27==1)&&((a12==11)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==6))))&&!(a0==1)))&&(a3==7))&&(a15==1))&&(a6==1)))&&(a5==1))){ + a6 = 0; + a4 = 0; + a12 = 12; + a22 = 1; + a18 = 0; + return 24; + } else if((((a0==1)&&((!(a27==1)&&(((a20==1)&&((a12==12)&&(((!(a22==1)&&((a18==1)&&(input==1)))&&(a3==8))&&!(a4==1))))&&(a5==1)))&&!(a6==1)))&&!(a15==1))){ + a4 = 1; + a5 = 0; + a22 = 1; + a27 = 1; + a12 = 10; + a18 = 0; + return -1; + } else if(((a15==1)&&(!(a0==1)&&((a20==1)&&((a27==1)&&(((a4==1)&&((a12==10)&&(((a5==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==1)))&&(a3==8))))&&(a6==1))))))){ + a22 = 1; + a4 = 0; + a12 = 11; + a6 = 0; + a18 = 0; + a3 = 6; + a5 = 0; + return 24; + } else if(((a0==1)&&(!(a22==1)&&(!(a15==1)&&((((a27==1)&&(((a3==4)&&((a20==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a6==1))))&&(a12==12)))&&!(a4==1))&&(a5==1)))))){ + a15 = 1; + a18 = 1; + a4 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if((!(a22==1)&&((a27==1)&&((a12==8)&&((((a20==1)&&((a15==1)&&(((a3==6)&&(((input==6)&&((a18==1)||!(a18==1)))&&!(a5==1)))&&!(a6==1))))&&(a0==1))&&!(a4==1)))))){ + a4 = 1; + a3 = 4; + a18 = 1; + a5 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if(((a20==1)&&((!(a0==1)&&((!(a4==1)&&(((a5==1)&&((((((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1))))||((a3==5)&&((a22==1)&&!(a18==1))))&&(input==1))&&(a12==10)))&&(a6==1)))&&(a27==1)))&&(a15==1)))){ + a12 = 11; + a22 = 0; + a3 = 4; + a18 = 0; + return -1; + } else if(((a15==1)&&((!(a0==1)&&((a27==1)&&((a6==1)&&((a4==1)&&((a5==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==3))&&(a12==12)))))))&&(a20==1)))){ + a15 = 0; + a3 = 7; + a27 = 0; + a4 = 0; + a18 = 0; + a6 = 0; + a22 = 1; + a0 = 1; + return 26; + } else if(((a15==1)&&(!(a5==1)&&((a3==8)&&(((!(a6==1)&&(((a0==1)&&((a20==1)&&((a18==1)&&((input==4)&&!(a4==1)))))&&(a22==1)))&&(a12==12))&&!(a27==1)))))){ + a12 = 8; + a5 = 1; + a27 = 1; + a4 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if(((((a12==10)&&((a6==1)&&(((a5==1)&&((a0==1)&&((a27==1)&&((input==1)&&(((a3==5)&&(!(a18==1)&&(a22==1)))||(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1)))))))))&&(a15==1))))&&(a4==1))&&(a20==1))){ + a12 = 8; + a3 = 4; + a18 = 1; + a22 = 1; + return -1; + } else if(((a20==1)&&((!(a4==1)&&(!(a0==1)&&((a12==8)&&(((a27==1)&&((a5==1)&&((input==4)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1)))))))&&(a6==1)))))&&(a15==1)))){ + a22 = 0; + a4 = 1; + a6 = 0; + a3 = 5; + a5 = 0; + a18 = 1; + a12 = 10; + return 26; + } else if(((a15==1)&&(!(a22==1)&&(((!(a5==1)&&((a27==1)&&(!(a6==1)&&((a0==1)&&(((a4==1)&&((input==6)&&(a3==6)))&&(a20==1))))))&&(a18==1))&&(a12==12))))){ + a12 = 10; + a3 = 8; + a18 = 0; + a4 = 0; + a5 = 1; + return 26; + } else if((!(a6==1)&&(!(a27==1)&&((a5==1)&&((a12==11)&&(!(a4==1)&&((!(a0==1)&&((a20==1)&&((input==3)&&(((((a18==1)&&!(a22==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6)))||(((a18==1)&&(a22==1))&&(a3==7))))))&&(a15==1)))))))){ + if((a22==1)){ + a12 = 9; + a0 = 1; + a18 = 1; + a6 = 1; + a5 = 0; + a4 = 1; + a22 = 0; + a3 = 8; + }else{ + a18 = 0; + a0 = 1; + a22 = 1; + a4 = 1; + a27 = 1; + a12 = 8; + a3 = 8; + } + return -1; + } else if(((a27==1)&&((a3==7)&&(((a15==1)&&(!(a22==1)&&((a5==1)&&(!(a6==1)&&((a12==12)&&((((a4==1)&&(input==6))&&(a18==1))&&(a0==1)))))))&&(a20==1))))){ + a4 = 0; + a15 = 0; + a3 = 5; + a12 = 10; + a6 = 1; + return -1; + } else if(((a22==1)&&((a3==7)&&(((a27==1)&&((a20==1)&&((a12==11)&&(((a6==1)&&((!(a15==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a5==1)))&&!(a0==1)))))&&!(a4==1))))){ + a15 = 1; + a18 = 1; + a6 = 0; + a3 = 8; + a0 = 1; + return 21; + } else if((((a12==9)&&((a20==1)&&(!(a15==1)&&((a27==1)&&((a0==1)&&((a18==1)&&(((!(a5==1)&&((input==5)&&(a4==1)))&&(a3==8))&&(a22==1))))))))&&!(a6==1))){ + a5 = 1; + a27 = 0; + a22 = 0; + a15 = 1; + return 26; + } else if(((a6==1)&&(!(a18==1)&&((!(a22==1)&&((!(a4==1)&&((a20==1)&&(((a12==12)&&(!(a27==1)&&((a3==8)&&(input==4))))&&!(a5==1))))&&(a0==1)))&&(a15==1))))){ + a27 = 1; + a3 = 7; + a12 = 10; + a5 = 1; + a15 = 0; + a18 = 1; + a4 = 1; + return -1; + } else if(((a4==1)&&(((a22==1)&&(((a20==1)&&((a3==7)&&((a12==10)&&((((a15==1)&&((input==3)&&((a18==1)||!(a18==1))))&&!(a5==1))&&!(a6==1)))))&&!(a0==1)))&&!(a27==1)))){ + if((a3==4)){ + a18 = 1; + a4 = 0; + a27 = 1; + a5 = 1; + a3 = 4; + a0 = 1; + a12 = 8; + }else{ + a18 = 1; + a12 = 8; + a5 = 1; + a3 = 8; + a22 = 0; + a27 = 1; + a6 = 1; + a0 = 1; + a4 = 0; + } + return 21; + } else if((((((!(a27==1)&&((!(a6==1)&&(!(a18==1)&&((!(a15==1)&&((input==6)&&(a3==4)))&&!(a0==1))))&&(a4==1)))&&(a12==10))&&!(a22==1))&&(a5==1))&&(a20==1))){ + if((a22==1)){ + a12 = 8; + a0 = 1; + a27 = 1; + a15 = 1; + }else{ + a27 = 1; + a0 = 1; + a22 = 1; + a15 = 1; + a4 = 0; + a6 = 1; + a12 = 8; + } + return 26; + } else if((((!(a18==1)&&(!(a0==1)&&((a22==1)&&((a12==11)&&((!(a6==1)&&((!(a5==1)&&((a4==1)&&(input==6)))&&(a27==1)))&&(a20==1))))))&&(a15==1))&&(a3==8))){ + a18 = 1; + a5 = 1; + a3 = 4; + a12 = 8; + a6 = 1; + a0 = 1; + return -1; + } else if((((a20==1)&&(((!(a4==1)&&((((!(a15==1)&&(!(a5==1)&&((input==4)&&!(a0==1))))&&!(a6==1))&&!(a22==1))&&!(a18==1)))&&(a3==4))&&(a27==1)))&&(a12==10))){ + a18 = 1; + a22 = 1; + a6 = 1; + a0 = 1; + a3 = 5; + a15 = 1; + return -1; + } else if((((a20==1)&&((a3==5)&&((((a4==1)&&((a27==1)&&(((a6==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==4)))&&(a12==12))))&&!(a5==1))&&(a0==1))))&&!(a15==1))){ + if((a0==1)){ + a0 = 0; + a22 = 1; + a18 = 1; + a5 = 1; + a3 = 8; + a12 = 9; + }else{ + a22 = 0; + a4 = 0; + a18 = 0; + a6 = 0; + a3 = 8; + a12 = 9; + a5 = 1; + a27 = 0; + } + return 24; + } else if(((a18==1)&&(((((a0==1)&&((a27==1)&&(((!(a6==1)&&(((input==6)&&!(a15==1))&&(a12==11)))&&!(a22==1))&&(a4==1))))&&(a20==1))&&(a3==8))&&(a5==1)))){ + a3 = 4; + a6 = 1; + a22 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if((((a20==1)&&(!(a27==1)&&((((a22==1)&&(((a12==9)&&((a15==1)&&((!(a4==1)&&(input==3))&&!(a18==1))))&&(a6==1)))&&(a0==1))&&!(a5==1))))&&(a3==6))){ + a3 = 8; + a5 = 1; + a18 = 1; + a22 = 0; + return 24; + } else if(((a5==1)&&((((((a0==1)&&((((input==1)&&(((((a18==1)&&!(a22==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5)))||(((a18==1)&&(a22==1))&&(a3==6))))&&(a20==1))&&(a6==1)))&&(a12==9))&&!(a4==1))&&!(a15==1))&&!(a27==1)))){ + a3 = 4; + a6 = 0; + a4 = 1; + a22 = 0; + a15 = 1; + a27 = 1; + a12 = 10; + a18 = 0; + return 21; + } else if(((((((!(a0==1)&&((a3==6)&&((a20==1)&&((a4==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2))))))&&(a27==1))&&(a12==8))&&(a6==1))&&!(a15==1))&&!(a5==1))){ + a5 = 1; + a3 = 7; + a12 = 10; + a22 = 1; + a6 = 0; + a18 = 0; + a0 = 1; + return 21; + } else if((((a12==9)&&((a3==7)&&((((a22==1)&&((a15==1)&&((((a18==1)&&(!(a5==1)&&(input==2)))&&!(a6==1))&&(a4==1))))&&!(a0==1))&&!(a27==1))))&&(a20==1))){ + a6 = 1; + a12 = 8; + a5 = 1; + a3 = 6; + a27 = 1; + a4 = 0; + a0 = 1; + return 26; + } else if(((((((!(a27==1)&&(!(a4==1)&&((((a20==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a15==1))&&!(a22==1))))&&(a5==1))&&(a0==1))&&(a3==5))&&!(a6==1))&&(a12==10))){ + a6 = 1; + a5 = 0; + a22 = 1; + a27 = 1; + a3 = 6; + a12 = 12; + a4 = 1; + a18 = 1; + return 26; + } else if(((a12==12)&&(((((a6==1)&&(!(a15==1)&&((((((!(a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1)))))&&(input==3))&&(a20==1))&&(a0==1))))&&!(a27==1))&&!(a5==1))&&!(a4==1)))){ + a22 = 0; + a27 = 1; + a4 = 1; + a15 = 1; + a18 = 0; + a3 = 6; + return 24; + } else if((((a4==1)&&((a15==1)&&(((a5==1)&&(!(a0==1)&&((a27==1)&&(((input==6)&&((((a22==1)&&!(a18==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8)))))&&!(a6==1)))))&&(a20==1))))&&(a12==9))){ + a12 = 11; + a18 = 1; + a3 = 5; + a27 = 0; + a22 = 0; + a0 = 1; + return 21; + } else if((((((((a3==5)&&((a4==1)&&((((a20==1)&&((input==4)&&((a18==1)||!(a18==1))))&&(a12==12))&&(a0==1))))&&(a15==1))&&!(a5==1))&&!(a6==1))&&(a27==1))&&(a22==1))){ + a12 = 8; + a6 = 1; + a3 = 4; + a5 = 1; + a18 = 1; + return -1; + } else if(((a12==11)&&((((!(a6==1)&&((a20==1)&&((a4==1)&&((a27==1)&&(((input==2)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&!(a5==1))))))&&(a0==1))&&(a15==1))&&(a3==4)))){ + a15 = 0; + a4 = 0; + a22 = 1; + a3 = 5; + a6 = 1; + a12 = 10; + a5 = 1; + a18 = 0; + return -1; + } else if(((a12==8)&&(((((a6==1)&&((!(a27==1)&&((!(a4==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5)))&&!(a5==1)))&&(a20==1)))&&!(a15==1))&&(a3==7))&&!(a0==1)))){ + a3 = 8; + a12 = 11; + a18 = 1; + a22 = 1; + a27 = 1; + a0 = 1; + return 26; + } else if(((a0==1)&&((a20==1)&&((((a27==1)&&(!(a6==1)&&(((((a12==12)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a3==4))&&!(a4==1))&&(a22==1))))&&(a15==1))&&(a5==1))))){ + a18 = 1; + a4 = 1; + a3 = 8; + a27 = 0; + return 24; + } else if(((a0==1)&&((a20==1)&&((((a12==12)&&((a4==1)&&(!(a27==1)&&(((a5==1)&&((input==5)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&(a3==4)))))&&(a6==1))&&(a15==1))))){ + a6 = 0; + a18 = 0; + a22 = 0; + a15 = 0; + a12 = 10; + a4 = 0; + a3 = 5; + return -1; + } else if(((a3==7)&&(((!(a4==1)&&((a12==11)&&((a6==1)&&(((((!(a0==1)&&(input==1))&&!(a18==1))&&!(a22==1))&&(a5==1))&&(a15==1)))))&&(a20==1))&&!(a27==1)))){ + a3 = 5; + a0 = 1; + a22 = 1; + a6 = 0; + a18 = 1; + a5 = 0; + return -1; + } else if(((!(a0==1)&&((a20==1)&&(((a6==1)&&(!(a4==1)&&((a27==1)&&((a5==1)&&((((a3==6)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5))))&&(input==6))))))&&(a12==8))))&&!(a15==1))){ + a22 = 1; + a12 = 10; + a3 = 4; + a18 = 1; + return -1; + } else if((((a12==8)&&((a0==1)&&(!(a5==1)&&(!(a15==1)&&((a3==6)&&(!(a27==1)&&((a6==1)&&(!(a18==1)&&((a20==1)&&((input==1)&&!(a4==1)))))))))))&&(a22==1))){ + a12 = 10; + a15 = 1; + a22 = 0; + a5 = 1; + a27 = 1; + a3 = 4; + return -1; + } else if((!(a15==1)&&(!(a27==1)&&((a20==1)&&(((a0==1)&&(!(a4==1)&&((a5==1)&&((a12==9)&&(((((a18==1)&&(a22==1))&&(a3==5))||((((a18==1)&&!(a22==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4))))&&(input==4))))))&&!(a6==1)))))){ + if((a20==1)){ + a6 = 1; + a4 = 1; + a22 = 0; + a3 = 8; + a12 = 10; + a0 = 0; + a27 = 1; + a18 = 0; + }else{ + a4 = 1; + a12 = 11; + a18 = 0; + a27 = 1; + a3 = 5; + a22 = 0; + } + return 21; + } else if((((!(a27==1)&&(!(a4==1)&&((((((a3==7)&&(((input==1)&&!(a0==1))&&(a20==1)))&&(a12==8))&&!(a6==1))&&!(a22==1))&&!(a5==1))))&&(a18==1))&&(a15==1))){ + a27 = 1; + a5 = 1; + a6 = 1; + a0 = 1; + return -1; + } else if((((a20==1)&&(!(a0==1)&&(((((a12==9)&&(!(a5==1)&&((input==5)&&((((a18==1)&&(a22==1))&&(a3==8))||((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a18==1)&&!(a22==1))))))))&&!(a6==1))&&!(a15==1))&&(a27==1))))&&(a4==1))){ + a0 = 1; + a22 = 0; + a15 = 1; + a5 = 1; + a6 = 1; + a3 = 5; + a18 = 1; + a12 = 11; + return 21; + } else if(((a15==1)&&((a12==12)&&(((!(a18==1)&&((((!(a22==1)&&(!(a4==1)&&((input==2)&&(a20==1))))&&!(a6==1))&&(a5==1))&&!(a27==1)))&&(a3==4))&&(a0==1))))){ + a4 = 1; + a6 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + a27 = 1; + return -1; + } else if(((a3==6)&&(((((a5==1)&&((a27==1)&&(!(a15==1)&&((!(a22==1)&&(!(a0==1)&&((input==6)&&((a18==1)||!(a18==1)))))&&(a4==1)))))&&(a12==11))&&(a20==1))&&!(a6==1)))){ + a0 = 1; + a3 = 5; + a6 = 1; + a22 = 1; + a12 = 12; + a18 = 1; + a4 = 0; + return -1; + } else if(((a18==1)&&((a27==1)&&((a20==1)&&((a4==1)&&(!(a22==1)&&((a5==1)&&(((a12==9)&&(((a6==1)&&((input==4)&&(a0==1)))&&(a15==1)))&&(a3==4))))))))){ + if((a22==1)){ + a0 = 0; + a6 = 0; + a18 = 0; + a4 = 0; + a12 = 11; + a22 = 1; + }else{ + a12 = 11; + a5 = 0; + a15 = 0; + a18 = 0; + a22 = 1; + a3 = 5; + } + return 26; + } else if(((a15==1)&&(((a18==1)&&(((!(a22==1)&&(((a3==7)&&((((input==1)&&(a27==1))&&!(a4==1))&&!(a5==1)))&&(a12==9)))&&(a0==1))&&(a6==1)))&&(a20==1)))){ + a3 = 4; + a5 = 1; + a22 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if((!(a0==1)&&((((!(a5==1)&&(!(a27==1)&&((!(a4==1)&&(((input==4)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&!(a15==1)))&&(a12==10))))&&!(a6==1))&&(a20==1))&&(a3==5)))){ + a12 = 8; + a22 = 0; + a18 = 1; + a15 = 1; + a3 = 6; + return -1; + } else if(((!(a6==1)&&((a12==8)&&(((a3==7)&&((a0==1)&&((a20==1)&&((((a22==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&!(a27==1))&&(a4==1)))))&&(a15==1))))&&(a5==1))){ + a6 = 1; + a18 = 0; + a3 = 8; + return -1; + } else if(((!(a0==1)&&(((((a12==10)&&((a20==1)&&(!(a4==1)&&((input==1)&&(((!(a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6))))))))&&!(a6==1))&&!(a27==1))&&!(a5==1)))&&!(a15==1))){ + a3 = 5; + a4 = 1; + a18 = 0; + a0 = 1; + a12 = 8; + a15 = 1; + a6 = 1; + a22 = 1; + a27 = 1; + a5 = 1; + return 26; + } else if((((!(a0==1)&&(!(a4==1)&&(!(a27==1)&&((a20==1)&&(((((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))||(!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1)))))&&(input==2))&&(a12==10))))))&&(a5==1))&&!(a15==1))){ + a27 = 1; + a3 = 5; + a22 = 1; + a12 = 8; + a18 = 0; + a6 = 1; + a4 = 1; + a0 = 1; + a15 = 1; + return -1; + } else if(((a20==1)&&((!(a0==1)&&(((!(a15==1)&&(!(a27==1)&&((a12==11)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==3)))))&&(a6==1))&&(a5==1)))&&(a4==1)))){ + a18 = 1; + a22 = 0; + a3 = 5; + a4 = 0; + a6 = 0; + a12 = 9; + a0 = 1; + return 24; + } else if(((a12==9)&&((!(a5==1)&&(!(a4==1)&&(!(a22==1)&&((a0==1)&&(((a15==1)&&(!(a6==1)&&(((a20==1)&&(input==6))&&(a3==4))))&&(a27==1))))))&&!(a18==1)))){ + a6 = 1; + a22 = 1; + a12 = 8; + a18 = 1; + a5 = 1; + a4 = 1; + return -1; + } else if(((a5==1)&&((a12==10)&&((((((((a15==1)&&(((a3==5)&&(input==6))&&(a22==1)))&&(a18==1))&&(a0==1))&&!(a4==1))&&(a6==1))&&(a20==1))&&!(a27==1))))){ + a22 = 0; + a3 = 7; + a18 = 0; + a6 = 0; + a5 = 0; + a27 = 1; + a4 = 1; + a12 = 11; + return 21; + } else if(((!(a4==1)&&(!(a5==1)&&((((a6==1)&&((a27==1)&&((!(a15==1)&&((!(a22==1)&&(input==4))&&(a3==8)))&&!(a18==1))))&&(a12==9))&&(a0==1))))&&(a20==1))){ + a22 = 1; + a6 = 0; + a15 = 1; + a18 = 1; + a27 = 0; + a5 = 1; + return 26; + } else if((!(a22==1)&&((!(a4==1)&&(((a20==1)&&(!(a5==1)&&(((a18==1)&&((((input==2)&&(a27==1))&&(a6==1))&&!(a15==1)))&&(a3==7))))&&(a12==10)))&&(a0==1)))){ + a15 = 1; + a3 = 5; + a0 = 0; + a4 = 1; + return -1; + } else if(((a20==1)&&((a4==1)&&(((a0==1)&&(!(a22==1)&&((a12==9)&&(!(a6==1)&&((!(a5==1)&&(((a18==1)&&(input==4))&&(a3==8)))&&(a15==1))))))&&(a27==1))))){ + a6 = 1; + a18 = 0; + a3 = 6; + a22 = 1; + a12 = 8; + a27 = 0; + return 26; + } else if((((((!(a15==1)&&((a22==1)&&(!(a5==1)&&(!(a4==1)&&(!(a27==1)&&(((input==1)&&!(a6==1))&&(a3==5)))))))&&!(a18==1))&&(a12==10))&&(a0==1))&&(a20==1))){ + a12 = 9; + a22 = 0; + a18 = 1; + a3 = 8; + return 26; + } else if((((!(a5==1)&&(((a12==9)&&((a20==1)&&(!(a27==1)&&((a3==7)&&(!(a15==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==6)))))))&&!(a0==1)))&&(a6==1))&&(a4==1))){ + a12 = 12; + a4 = 0; + a27 = 1; + a22 = 1; + a18 = 1; + a6 = 0; + a3 = 4; + return -1; + } else if(((a27==1)&&((((a20==1)&&(((a4==1)&&(((a3==8)&&((((input==3)&&!(a6==1))&&!(a18==1))&&!(a15==1)))&&(a22==1)))&&(a5==1)))&&(a12==10))&&(a0==1)))){ + a12 = 11; + a4 = 0; + a18 = 1; + a6 = 1; + return 26; + } else if((((a27==1)&&((a20==1)&&((a12==8)&&(((((((input==5)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&(a4==1))&&!(a6==1))&&(a3==8))&&!(a15==1))&&(a5==1)))))&&(a0==1))){ + a12 = 9; + a15 = 1; + a3 = 6; + a6 = 1; + a18 = 0; + a22 = 0; + return 26; + } else if((((((a12==8)&&((((a5==1)&&(((a15==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==3)))&&(a0==1)))&&(a3==7))&&(a20==1)))&&!(a6==1))&&!(a4==1))&&!(a27==1))){ + a27 = 1; + a3 = 6; + a18 = 1; + a22 = 0; + a15 = 0; + return -1; + } else if((((a20==1)&&((a15==1)&&((a12==9)&&(!(a0==1)&&((a27==1)&&(!(a4==1)&&((input==4)&&((((a6==1)&&((a3==8)&&((a18==1)&&!(a22==1))))||(((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1)))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1))))))))))))&&!(a5==1))){ + a0 = 1; + a5 = 1; + a6 = 0; + a4 = 1; + a18 = 1; + a3 = 4; + a15 = 0; + a22 = 0; + a12 = 11; + return -1; + } else if(((a4==1)&&(((a27==1)&&((a22==1)&&(((a20==1)&&((!(a5==1)&&((a3==6)&&(((input==5)&&(a12==11))&&(a6==1))))&&!(a15==1)))&&!(a18==1))))&&(a0==1)))){ + a15 = 1; + a4 = 0; + a27 = 0; + a6 = 0; + return 26; + } else if((((a12==10)&&((a18==1)&&((((a5==1)&&((a20==1)&&(((a27==1)&&((a6==1)&&((a0==1)&&(input==6))))&&(a3==7))))&&!(a22==1))&&!(a4==1))))&&(a15==1))){ + a5 = 0; + a3 = 5; + a12 = 9; + a27 = 0; + return 24; + } else if(((a6==1)&&(((a18==1)&&(!(a0==1)&&(((a15==1)&&(((a22==1)&&((((a3==5)&&(input==2))&&(a20==1))&&(a4==1)))&&!(a27==1)))&&(a5==1))))&&(a12==9)))){ + a0 = 1; + a22 = 0; + a27 = 1; + a12 = 8; + a15 = 0; + a6 = 0; + a3 = 6; + return -1; + } else if((((!(a15==1)&&(((a20==1)&&(((((input==4)&&(((a3==5)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))))&&!(a0==1))&&(a12==11))&&(a27==1)))&&!(a6==1)))&&!(a5==1))&&!(a4==1))){ + a0 = 1; + a12 = 9; + a4 = 1; + a6 = 1; + a3 = 7; + a22 = 1; + a18 = 0; + a15 = 1; + return 26; + } else if((!(a27==1)&&((!(a5==1)&&(((a6==1)&&(((((((a3==6)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1)))))&&(input==2))&&(a12==9))&&(a4==1))&&(a20==1)))&&!(a0==1)))&&(a15==1)))){ + if((a12==11)){ + a5 = 1; + a12 = 8; + a22 = 0; + a18 = 1; + a27 = 1; + a3 = 8; + a0 = 1; + }else{ + a22 = 0; + a12 = 11; + a3 = 8; + a18 = 1; + a6 = 0; + a15 = 0; + } + return -1; + } else if((((a18==1)&&(((a3==6)&&((((((((input==6)&&(a0==1))&&!(a6==1))&&(a12==10))&&!(a27==1))&&(a5==1))&&(a20==1))&&(a15==1)))&&!(a4==1)))&&!(a22==1))){ + if((a4==1)){ + a0 = 0; + a4 = 1; + a6 = 1; + a12 = 12; + a27 = 1; + a3 = 4; + a18 = 0; + }else{ + a6 = 1; + a5 = 0; + a27 = 1; + a15 = 0; + } + return 26; + } else if(((a12==11)&&((!(a15==1)&&(!(a5==1)&&(((!(a6==1)&&((a3==8)&&(((input==4)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&!(a27==1))))&&(a20==1))&&!(a4==1))))&&(a0==1)))){ + a6 = 1; + a27 = 1; + a3 = 4; + a15 = 1; + a18 = 1; + a22 = 1; + a5 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if((((((a18==1)&&((!(a0==1)&&(((!(a27==1)&&((a4==1)&&((input==1)&&(a12==10))))&&(a20==1))&&(a22==1)))&&(a3==8)))&&!(a5==1))&&(a6==1))&&!(a15==1))){ + if((a4==1)){ + a5 = 1; + a22 = 0; + a27 = 1; + a12 = 8; + a15 = 1; + a6 = 0; + a0 = 1; + }else{ + a0 = 1; + a12 = 8; + a6 = 0; + a22 = 0; + a3 = 4; + a15 = 1; + } + return 26; + } else if(((a4==1)&&((a5==1)&&((((a12==11)&&((((((input==1)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&(a27==1))&&(a15==1))&&(a6==1))&&(a3==6)))&&(a20==1))&&!(a0==1))))){ + a0 = 1; + a18 = 1; + a12 = 8; + a22 = 0; + a27 = 0; + a15 = 0; + a3 = 4; + a4 = 0; + return 26; + } else if((((((a0==1)&&(((!(a15==1)&&(((((a20==1)&&(input==5))&&!(a18==1))&&!(a5==1))&&!(a6==1)))&&(a12==12))&&!(a27==1)))&&!(a4==1))&&(a3==5))&&(a22==1))){ + a3 = 7; + a27 = 1; + a18 = 1; + a12 = 11; + a15 = 1; + return 21; + } else if((((a5==1)&&((!(a0==1)&&((a12==9)&&(((input==2)&&((((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1)))&&!(a6==1))||((a6==1)&&((!(a4==1)&&((a18==1)&&(a22==1)))&&(a3==4)))))&&(a20==1))))&&(a15==1)))&&!(a27==1))){ + a27 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + a22 = 0; + a4 = 1; + a3 = 8; + a6 = 1; + return 26; + } else if(((((((((((a12==8)&&(!(a22==1)&&((input==6)&&(a3==7))))&&!(a18==1))&&!(a15==1))&&(a5==1))&&(a4==1))&&(a0==1))&&!(a6==1))&&(a20==1))&&(a27==1))){ + a15 = 1; + a0 = 0; + a18 = 1; + a22 = 1; + return 21; + } else if((!(a22==1)&&(((a20==1)&&((a3==5)&&(((a27==1)&&(((a5==1)&&(((a12==8)&&((input==4)&&((a18==1)||!(a18==1))))&&(a4==1)))&&!(a15==1)))&&(a0==1))))&&(a6==1)))){ + a3 = 8; + a15 = 1; + a18 = 0; + a22 = 1; + a5 = 0; + return 26; + } else if((!(a5==1)&&((!(a15==1)&&(((((a27==1)&&((a4==1)&&(((((!(a22==1)&&(a18==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7)))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==5))))&&(a12==10))&&!(a6==1))&&(a0==1)))&&(a20==1)))){ + a22 = 1; + a6 = 1; + a5 = 1; + a3 = 4; + a15 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if(((!(a27==1)&&(((a3==5)&&((a15==1)&&(!(a0==1)&&((!(a6==1)&&((a12==9)&&((input==2)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))))&&(a20==1)))))&&(a5==1)))&&!(a4==1))){ + a12 = 8; + a6 = 1; + a18 = 0; + a27 = 1; + a3 = 6; + a0 = 1; + a22 = 0; + return 21; + } else if(((((!(a0==1)&&(((((a3==5)&&((((input==6)&&((a18==1)||!(a18==1)))&&(a12==9))&&(a22==1)))&&(a4==1))&&!(a15==1))&&(a20==1)))&&!(a27==1))&&(a6==1))&&(a5==1))){ + if((a0==1)){ + a3 = 8; + a4 = 0; + a0 = 1; + a6 = 0; + a22 = 0; + a18 = 1; + }else{ + a15 = 1; + a6 = 0; + a12 = 8; + a22 = 0; + a27 = 1; + a0 = 1; + a18 = 1; + a3 = 6; + } + return 26; + } else if((((!(a4==1)&&(!(a27==1)&&((a20==1)&&((a3==7)&&(!(a0==1)&&((((a12==8)&&(!(a22==1)&&(input==4)))&&!(a18==1))&&(a15==1)))))))&&!(a5==1))&&!(a6==1))){ + if((a5==1)){ + a0 = 1; + a5 = 1; + a27 = 1; + a3 = 6; + a4 = 1; + }else{ + a18 = 1; + a5 = 1; + a27 = 1; + a0 = 1; + a22 = 1; + a4 = 1; + } + return 21; + } else if((!(a15==1)&&(((a12==12)&&((((((!(a0==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3)))&&!(a5==1))&&(a3==7))&&!(a6==1))&&(a20==1))&&(a27==1)))&&(a4==1)))){ + a22 = 0; + a6 = 1; + a0 = 1; + a5 = 1; + a12 = 8; + a18 = 0; + a3 = 8; + a15 = 1; + return -1; + } else if((!(a22==1)&&((a27==1)&&(((((a20==1)&&((((a12==10)&&(!(a4==1)&&((input==6)&&!(a5==1))))&&(a18==1))&&(a3==5)))&&(a0==1))&&!(a6==1))&&!(a15==1))))){ + a6 = 1; + a15 = 1; + a3 = 6; + return -1; + } else if((((((a3==8)&&((a12==8)&&(((((a4==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==3)))&&(a6==1))&&(a20==1))&&!(a27==1))))&&(a0==1))&&(a5==1))&&!(a15==1))){ + a3 = 4; + a15 = 1; + a18 = 1; + a27 = 1; + a22 = 1; + return -1; + } else if(((a5==1)&&((a22==1)&&((a12==11)&&((a15==1)&&((!(a27==1)&&((a3==8)&&(!(a4==1)&&(!(a0==1)&&((a20==1)&&(!(a6==1)&&(input==4)))))))&&!(a18==1))))))){ + a27 = 1; + a22 = 0; + a18 = 1; + a0 = 1; + a4 = 1; + a6 = 1; + a12 = 8; + a3 = 7; + return -1; + } else if((((a12==8)&&(((a27==1)&&((a15==1)&&((a4==1)&&(((((((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==4))&&(a20==1))&&!(a6==1)))))&&!(a0==1)))&&(a5==1))){ + if((a4==1)){ + a18 = 0; + a3 = 6; + a4 = 0; + a5 = 0; + a15 = 0; + a22 = 1; + }else{ + a0 = 1; + a3 = 6; + a6 = 1; + a12 = 11; + a22 = 0; + a5 = 0; + a15 = 0; + a18 = 0; + } + return 24; + } else if((((a6==1)&&(((a20==1)&&((a27==1)&&(((a3==4)&&((a5==1)&&(((input==2)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a12==12))))&&!(a4==1))))&&(a0==1)))&&(a15==1))){ + a22 = 1; + a3 = 5; + a18 = 1; + a12 = 11; + return -1; + } else if((((!(a4==1)&&(((((a0==1)&&(((((input==2)&&((a18==1)||!(a18==1)))&&(a12==9))&&(a5==1))&&!(a15==1)))&&(a20==1))&&(a6==1))&&!(a22==1)))&&(a3==4))&&(a27==1))){ + a15 = 1; + a12 = 8; + a22 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if((!(a4==1)&&(((((((!(a0==1)&&((a3==8)&&(!(a6==1)&&((input==4)&&((a18==1)||!(a18==1))))))&&(a22==1))&&(a20==1))&&(a27==1))&&(a12==11))&&(a15==1))&&(a5==1)))){ + a3 = 5; + a0 = 1; + a27 = 0; + a18 = 0; + a22 = 0; + return 24; + } else if((((((a6==1)&&(((a3==5)&&((a27==1)&&((a20==1)&&((a4==1)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==1))))))&&!(a0==1)))&&(a15==1))&&!(a5==1))&&(a12==10))){ + a18 = 0; + a0 = 1; + a22 = 1; + a5 = 1; + a3 = 4; + a4 = 0; + return -1; + } else if((((!(a27==1)&&((a6==1)&&((a3==7)&&(!(a0==1)&&((a4==1)&&((a20==1)&&((a5==1)&&((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))))))&&(a12==8))&&!(a15==1))){ + a5 = 0; + a27 = 1; + a18 = 1; + a0 = 1; + a12 = 11; + a3 = 8; + a22 = 1; + return -1; + } else if(((((a6==1)&&(((a12==8)&&((a5==1)&&((a3==8)&&((((a20==1)&&((input==5)&&!(a18==1)))&&!(a4==1))&&(a0==1)))))&&!(a22==1)))&&(a27==1))&&!(a15==1))){ + a12 = 9; + a4 = 1; + a3 = 7; + a6 = 0; + return 24; + } else if((!(a5==1)&&((a6==1)&&(((a4==1)&&((((a12==10)&&(((input==1)&&((((a22==1)&&(a18==1))&&(a3==8))||(((!(a22==1)&&(a18==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7)))))&&(a20==1)))&&!(a27==1))&&(a0==1)))&&(a15==1))))){ + a22 = 1; + a18 = 1; + a3 = 7; + a5 = 1; + a12 = 11; + a6 = 0; + return 21; + } else if(((a4==1)&&(((((a12==9)&&((a20==1)&&(((!(a27==1)&&((a18==1)&&((input==6)&&!(a0==1))))&&(a15==1))&&(a22==1))))&&(a5==1))&&(a3==6))&&!(a6==1)))){ + a3 = 7; + a4 = 0; + a0 = 1; + a6 = 1; + a27 = 1; + a22 = 0; + a12 = 8; + a18 = 0; + return -1; + } else if(((((a22==1)&&(((a4==1)&&(((a0==1)&&(((((input==3)&&((a18==1)||!(a18==1)))&&(a20==1))&&!(a27==1))&&(a5==1)))&&(a12==9)))&&(a6==1)))&&(a15==1))&&(a3==7))){ + a27 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((a3==5)&&(!(a18==1)&&(((a27==1)&&(!(a15==1)&&(((!(a22==1)&&((a5==1)&&(((input==4)&&(a20==1))&&(a12==8))))&&!(a6==1))&&(a4==1))))&&(a0==1))))){ + a5 = 0; + a18 = 1; + a22 = 1; + return 21; + } else if((((a0==1)&&(((a20==1)&&((((((input==1)&&(((((a18==1)&&!(a22==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4)))||((a3==5)&&((a18==1)&&(a22==1)))))&&(a6==1))&&!(a4==1))&&(a5==1))&&!(a15==1)))&&(a12==12)))&&!(a27==1))){ + a12 = 11; + a5 = 0; + a22 = 1; + a27 = 1; + a18 = 0; + a3 = 5; + return 21; + } else if(((a3==4)&&((((a15==1)&&(((!(a22==1)&&(!(a6==1)&&(!(a27==1)&&((a20==1)&&(!(a18==1)&&(input==6))))))&&!(a5==1))&&(a0==1)))&&(a12==9))&&(a4==1)))){ + a12 = 11; + a3 = 7; + a5 = 1; + a15 = 0; + return 21; + } else if(((a0==1)&&(((a3==7)&&((((a5==1)&&((a15==1)&&((!(a4==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a22==1)))&&!(a6==1))))&&(a20==1))&&(a27==1)))&&(a12==9)))){ + a4 = 1; + a15 = 0; + a18 = 1; + a3 = 8; + a12 = 12; + return 24; + } else if((((a12==9)&&((((!(a6==1)&&((a20==1)&&((a4==1)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==1)))))&&(a5==1))&&!(a0==1))&&!(a15==1)))&&(a27==1))){ + a12 = 11; + a22 = 1; + a5 = 0; + a15 = 1; + a3 = 6; + a4 = 0; + a18 = 0; + return -1; + } else if((((a22==1)&&((a3==5)&&((a20==1)&&(((a12==10)&&((a27==1)&&(!(a15==1)&&((((a18==1)&&(input==3))&&!(a0==1))&&!(a5==1)))))&&!(a6==1)))))&&!(a4==1))){ + a12 = 8; + a0 = 1; + a6 = 1; + a3 = 4; + a4 = 1; + a15 = 1; + a5 = 1; + return -1; + } else if(((((!(a5==1)&&((a12==8)&&(!(a0==1)&&((a27==1)&&(((input==2)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1)))))&&!(a4==1))))))&&(a20==1))&&!(a6==1))&&(a15==1))){ + a3 = 4; + a0 = 1; + a18 = 0; + a5 = 1; + a12 = 11; + a15 = 0; + a22 = 0; + return 26; + } else if(((a20==1)&&((((a0==1)&&(((((a6==1)&&((a3==6)&&((((a18==1)||!(a18==1))&&(input==6))&&(a5==1))))&&(a4==1))&&(a12==8))&&!(a22==1)))&&!(a27==1))&&!(a15==1)))){ + a22 = 1; + a27 = 1; + a6 = 0; + a18 = 0; + a12 = 10; + a5 = 0; + a3 = 4; + a15 = 1; + return 26; + } else if(((((a4==1)&&(!(a15==1)&&((((a0==1)&&(((input==4)&&((((a22==1)&&(a18==1))&&(a3==6))||(((!(a22==1)&&(a18==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5)))))&&!(a27==1)))&&(a5==1))&&(a6==1))))&&(a20==1))&&(a12==11))){ + a4 = 0; + a3 = 4; + a22 = 0; + a6 = 0; + a12 = 10; + a18 = 0; + return -1; + } else if(((!(a0==1)&&((a5==1)&&(!(a4==1)&&((((a15==1)&&(((((input==3)&&!(a6==1))&&!(a18==1))&&(a12==10))&&(a3==8)))&&(a27==1))&&!(a22==1)))))&&(a20==1))){ + a3 = 6; + a4 = 1; + a0 = 1; + return -1; + } else if((!(a27==1)&&(!(a5==1)&&(((a12==8)&&(((a20==1)&&(!(a6==1)&&((!(a15==1)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==4)))&&!(a4==1))))&&!(a0==1)))&&(a3==5))))){ + if((a27==1)){ + a18 = 1; + a0 = 1; + a27 = 1; + a15 = 1; + a22 = 0; + a6 = 1; + a5 = 1; + a4 = 1; + a3 = 7; + }else{ + a6 = 1; + a0 = 1; + a3 = 4; + a15 = 1; + a27 = 1; + a22 = 0; + a5 = 1; + a18 = 1; + } + return 26; + } else if(((!(a0==1)&&((a5==1)&&((!(a27==1)&&(!(a6==1)&&((a3==6)&&(((a12==11)&&((input==5)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))&&(a4==1)))))&&(a15==1))))&&(a20==1))){ + if((a5==1)){ + a4 = 0; + a27 = 1; + a3 = 5; + a0 = 1; + a12 = 12; + a22 = 0; + a18 = 0; + a15 = 0; + a5 = 0; + }else{ + a18 = 0; + a0 = 1; + a22 = 1; + a12 = 8; + a3 = 8; + a27 = 1; + } + return -1; + } else if(((a15==1)&&((a5==1)&&((((((a6==1)&&(((a20==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3)))&&!(a27==1)))&&!(a0==1))&&(a3==8))&&(a12==11))&&(a4==1))))){ + a0 = 1; + a12 = 8; + a27 = 1; + a18 = 1; + a4 = 0; + a3 = 5; + a22 = 1; + return -1; + } else if(((a22==1)&&((a5==1)&&(((a18==1)&&(!(a15==1)&&((((a20==1)&&(!(a4==1)&&((a0==1)&&((input==1)&&(a12==9)))))&&(a6==1))&&(a3==5))))&&(a27==1))))){ + a15 = 1; + a4 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((((((a20==1)&&((a27==1)&&(((a4==1)&&(!(a6==1)&&((input==4)&&((((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==5))))))&&(a0==1))))&&!(a5==1))&&(a12==10))&&(a15==1))){ + a3 = 4; + a22 = 1; + a12 = 8; + a6 = 1; + a18 = 1; + a5 = 1; + return -1; + } else if(((a12==10)&&(((a27==1)&&((((((a3==6)&&(!(a5==1)&&((((a18==1)||!(a18==1))&&(input==6))&&!(a15==1))))&&!(a6==1))&&!(a22==1))&&(a0==1))&&!(a4==1)))&&(a20==1)))){ + a18 = 0; + a22 = 1; + a15 = 1; + a27 = 0; + return 21; + } else if(((a27==1)&&(((a0==1)&&((input==4)&&(((a6==1)&&(((a4==1)&&(((((a22==1)&&!(a18==1))&&(a5==1))&&(a15==1))&&(a12==11)))&&(a3==4)))||((((a3==8)&&(((!(a15==1)&&(!(a5==1)&&(!(a18==1)&&!(a22==1))))&&(a12==10))&&!(a4==1)))&&!(a6==1))||(((((a12==11)&&((((a22==1)&&(a18==1))&&(a5==1))&&(a15==1)))&&(a4==1))&&(a3==4))&&(a6==1))))))&&(a20==1)))){ + a12 = 10; + a22 = 0; + a5 = 0; + a3 = 7; + a6 = 0; + a15 = 1; + a27 = 0; + a4 = 0; + a18 = 0; + return 21; + } else if(((a6==1)&&((((((!(a5==1)&&((a12==10)&&((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==3))))&&(a15==1))&&(a27==1))&&(a20==1))&&(a4==1))&&!(a0==1)))){ + a12 = 12; + a22 = 1; + a0 = 1; + a18 = 1; + a5 = 1; + a15 = 0; + a4 = 0; + a6 = 0; + a27 = 0; + a3 = 4; + return 21; + } else if(((a6==1)&&(!(a0==1)&&(!(a5==1)&&((a27==1)&&(((a4==1)&&((a15==1)&&((a20==1)&&((((input==3)&&(a12==11))&&(a3==6))&&(a22==1)))))&&!(a18==1))))))){ + a0 = 1; + a6 = 0; + a15 = 0; + a18 = 1; + a3 = 8; + a27 = 0; + return 26; + } else if(((a4==1)&&(!(a5==1)&&((a27==1)&&((a3==6)&&((a0==1)&&((a20==1)&&(((a6==1)&&(!(a15==1)&&(((input==6)&&!(a22==1))&&(a12==11))))&&(a18==1))))))))){ + a27 = 0; + a6 = 0; + a15 = 1; + a4 = 0; + a3 = 8; + a22 = 1; + return 26; + } else if((((a3==7)&&((a5==1)&&(!(a15==1)&&(((((a6==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a20==1)))&&!(a4==1))&&!(a27==1))&&!(a0==1)))))&&(a12==9))){ + if((a18==1)){ + a18 = 0; + a6 = 0; + a22 = 1; + a0 = 1; + a4 = 1; + a12 = 11; + a3 = 8; + a27 = 1; + }else{ + a27 = 1; + a3 = 8; + a12 = 8; + a4 = 1; + a0 = 1; + a22 = 0; + a6 = 0; + a18 = 1; + a15 = 1; + } + return -1; + } else if(((((!(a0==1)&&(((a4==1)&&(!(a15==1)&&(((a12==12)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==5)))&&(a3==5))))&&(a20==1)))&&(a27==1))&&(a6==1))&&(a5==1))){ + a6 = 0; + a18 = 1; + a15 = 1; + a0 = 1; + a4 = 0; + a22 = 1; + return 24; + } else if((((!(a6==1)&&((a20==1)&&((((!(a0==1)&&(((((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1))))||((a3==6)&&(!(a18==1)&&(a22==1))))&&(input==3)))&&!(a27==1))&&!(a15==1))&&!(a4==1))))&&!(a5==1))&&(a12==10))){ + a3 = 7; + a0 = 1; + a18 = 0; + a22 = 0; + a6 = 1; + a12 = 8; + a15 = 1; + a5 = 1; + return -1; + } else if((((!(a5==1)&&((a3==5)&&((a20==1)&&(!(a0==1)&&((a12==8)&&(!(a15==1)&&(((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==2))&&!(a4==1))))))))&&!(a6==1))&&!(a27==1))){ + if((a3==4)){ + a18 = 1; + a6 = 1; + a5 = 1; + a0 = 1; + a22 = 1; + a15 = 1; + a27 = 1; + }else{ + a3 = 4; + a18 = 1; + a22 = 1; + a0 = 1; + a5 = 1; + a27 = 1; + a4 = 1; + } + return 26; + } else if(((((!(a4==1)&&((a15==1)&&(!(a27==1)&&((((a12==10)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5)))&&(a20==1))&&!(a6==1)))))&&(a3==4))&&(a0==1))&&!(a5==1))){ + a4 = 1; + a22 = 0; + a12 = 12; + a18 = 0; + a3 = 8; + a27 = 1; + return -1; + } else if(((!(a27==1)&&((!(a6==1)&&((a4==1)&&(!(a22==1)&&(((!(a15==1)&&(!(a0==1)&&((a5==1)&&(input==1))))&&(a12==11))&&(a18==1)))))&&(a3==6)))&&(a20==1))){ + a15 = 1; + a6 = 1; + a27 = 1; + a18 = 0; + a12 = 8; + a0 = 1; + return 21; + } else if((((((a20==1)&&(((!(a22==1)&&(!(a27==1)&&((((input==3)&&((a18==1)||!(a18==1)))&&(a12==11))&&(a5==1))))&&(a4==1))&&!(a0==1)))&&(a3==5))&&!(a6==1))&&(a15==1))){ + a0 = 1; + a6 = 1; + a27 = 1; + a12 = 8; + a18 = 0; + a4 = 0; + a3 = 8; + return 26; + } else if((!(a5==1)&&((a20==1)&&(((a4==1)&&((a3==6)&&(!(a6==1)&&((!(a15==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==6))&&(a12==8)))&&!(a27==1)))))&&(a0==1))))){ + a22 = 1; + a15 = 1; + a5 = 1; + a12 = 10; + a27 = 1; + a6 = 1; + a18 = 0; + return -1; + } else if(((a27==1)&&((a22==1)&&(((a3==5)&&((a20==1)&&((((((a4==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&!(a5==1))&&(a0==1))&&!(a15==1))&&(a12==11))))&&!(a6==1))))){ + a3 = 4; + a6 = 1; + a18 = 1; + a15 = 1; + a12 = 8; + a5 = 1; + return -1; + } else if(((((((a20==1)&&((a12==10)&&((((a6==1)&&((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1))))||((((a3==8)&&(((a18==1)&&!(a22==1))&&(a4==1)))&&!(a6==1))||(((a3==8)&&((a4==1)&&(!(a22==1)&&!(a18==1))))&&!(a6==1))))&&(input==4))))&&(a5==1))&&!(a15==1))&&!(a0==1))&&(a27==1))){ + a6 = 0; + a4 = 0; + a18 = 0; + a0 = 1; + a3 = 4; + a22 = 1; + a15 = 1; + return -1; + } else if(((((!(a6==1)&&(((a3==4)&&(((a5==1)&&(!(a27==1)&&((a22==1)&&((input==2)&&((a18==1)||!(a18==1))))))&&(a12==10)))&&(a0==1)))&&(a4==1))&&(a20==1))&&!(a15==1))){ + a22 = 0; + a5 = 0; + a3 = 5; + a6 = 1; + a18 = 1; + a12 = 9; + return 21; + } else if(((a5==1)&&((((!(a22==1)&&(((a12==10)&&((a20==1)&&(((a27==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a3==7))))&&(a4==1)))&&(a0==1))&&(a15==1))&&!(a6==1)))){ + a3 = 6; + a18 = 0; + a22 = 1; + return -1; + } else if(((a20==1)&&(!(a4==1)&&((a3==8)&&(!(a6==1)&&(!(a22==1)&&(((((((input==1)&&((a18==1)||!(a18==1)))&&(a0==1))&&(a15==1))&&(a12==9))&&(a5==1))&&!(a27==1)))))))){ + a3 = 5; + a27 = 1; + a4 = 1; + a18 = 1; + a12 = 11; + a22 = 1; + return 21; + } else if(((a27==1)&&(((a12==12)&&((a20==1)&&((input==2)&&(((((!(a4==1)&&(((a5==1)&&((a18==1)&&!(a22==1)))&&!(a15==1)))&&(a3==8))&&!(a6==1))||(!(a6==1)&&((!(a4==1)&&(!(a15==1)&&((!(a18==1)&&!(a22==1))&&(a5==1))))&&(a3==8))))||((a6==1)&&((a3==4)&&(((a15==1)&&(((a18==1)&&(a22==1))&&!(a5==1)))&&(a4==1))))))))&&!(a0==1)))){ + a22 = 0; + a6 = 0; + a12 = 8; + a15 = 0; + a3 = 6; + a18 = 0; + a4 = 1; + a27 = 0; + a0 = 1; + a5 = 0; + return 21; + } else if(((((a20==1)&&((a15==1)&&(!(a4==1)&&((!(a6==1)&&(((input==3)&&((((!(a22==1)&&(a18==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))||((a3==5)&&((a18==1)&&(a22==1)))))&&(a0==1)))&&(a27==1)))))&&(a12==10))&&(a5==1))){ + a12 = 11; + a22 = 0; + a15 = 0; + a5 = 0; + a3 = 8; + a4 = 1; + a18 = 0; + a6 = 1; + return 26; + } else if((((a12==8)&&((((((!(a6==1)&&(((input==5)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a0==1)))&&!(a27==1))&&!(a15==1))&&(a20==1))&&(a4==1))&&(a3==6)))&&!(a5==1))){ + a4 = 0; + a18 = 1; + a12 = 10; + a5 = 1; + a3 = 8; + a22 = 1; + a27 = 1; + return 26; + } else if((!(a5==1)&&(((((!(a4==1)&&((((a3==6)&&(((input==1)&&(a12==8))&&(a27==1)))&&(a20==1))&&(a15==1)))&&!(a18==1))&&(a6==1))&&!(a22==1))&&(a0==1)))){ + a5 = 1; + a18 = 1; + a4 = 1; + a15 = 0; + a22 = 1; + a12 = 10; + return 26; + } else if(((a0==1)&&((a20==1)&&(!(a27==1)&&(((a3==6)&&((a5==1)&&((a4==1)&&(!(a6==1)&&((a12==8)&&(((input==3)&&((a18==1)||!(a18==1)))&&!(a15==1)))))))&&(a22==1)))))){ + a15 = 1; + a3 = 4; + a6 = 1; + a18 = 1; + a27 = 1; + return -1; + } else if(((a12==10)&&(((a4==1)&&((((a3==6)&&((a18==1)&&((a22==1)&&((((a15==1)&&(input==6))&&(a0==1))&&(a6==1)))))&&!(a27==1))&&!(a5==1)))&&(a20==1)))){ + a3 = 4; + a5 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if((!(a27==1)&&((a0==1)&&((a20==1)&&(((a6==1)&&(!(a15==1)&&(!(a4==1)&&(((input==6)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7))))&&(a12==10)))))&&(a5==1)))))){ + if((a20==1)){ + a0 = 0; + a27 = 1; + a4 = 1; + a22 = 1; + a3 = 6; + a18 = 1; + a12 = 12; + }else{ + a18 = 0; + a22 = 0; + a3 = 6; + a6 = 0; + a5 = 0; + a12 = 11; + a27 = 1; + } + return 26; + } else if((((a27==1)&&((a20==1)&&(!(a18==1)&&((((a5==1)&&(!(a0==1)&&((a6==1)&&((a12==11)&&((a3==5)&&(input==4))))))&&!(a4==1))&&(a15==1)))))&&(a22==1))){ + a15 = 0; + a3 = 8; + a4 = 1; + a0 = 1; + a6 = 0; + return 21; + } else if(((!(a27==1)&&(((!(a18==1)&&(((a20==1)&&(!(a4==1)&&((a22==1)&&((a3==4)&&((a12==9)&&(input==3))))))&&!(a15==1)))&&(a0==1))&&(a6==1)))&&!(a5==1))){ + a5 = 1; + a12 = 8; + a15 = 1; + a18 = 1; + a4 = 1; + a27 = 1; + return -1; + } else if(((a22==1)&&((((!(a15==1)&&((((a3==4)&&((a12==10)&&((!(a27==1)&&(input==4))&&!(a18==1))))&&(a0==1))&&(a20==1)))&&(a5==1))&&(a6==1))&&(a4==1)))){ + a5 = 0; + a3 = 7; + a6 = 0; + a27 = 1; + return 21; + } else if(((a12==11)&&((((((((a6==1)&&(!(a4==1)&&((!(a18==1)&&(input==4))&&!(a15==1))))&&(a20==1))&&(a3==5))&&!(a5==1))&&!(a0==1))&&(a22==1))&&(a27==1)))){ + a6 = 0; + a0 = 1; + a3 = 6; + return 21; + } else if(((((((((a20==1)&&(((a18==1)&&(((a27==1)&&(input==5))&&!(a6==1)))&&(a15==1)))&&(a12==9))&&(a3==8))&&(a0==1))&&(a4==1))&&(a5==1))&&!(a22==1))){ + a3 = 6; + a12 = 12; + a15 = 0; + return 21; + } else if((!(a4==1)&&((a5==1)&&((a3==5)&&(!(a0==1)&&(((a15==1)&&(!(a27==1)&&((a20==1)&&((a12==10)&&((input==1)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))))&&!(a6==1))))))){ + a18 = 0; + a5 = 0; + a15 = 0; + a22 = 0; + a3 = 6; + a4 = 1; + a0 = 1; + return -1; + } else if((((a4==1)&&(!(a18==1)&&((!(a15==1)&&((!(a27==1)&&((a5==1)&&((((input==6)&&(a20==1))&&(a0==1))&&!(a22==1))))&&(a3==7)))&&!(a6==1))))&&(a12==9))){ + a12 = 10; + a22 = 1; + a4 = 0; + a27 = 1; + a3 = 8; + return 21; + } else if((!(a15==1)&&((((a20==1)&&(!(a27==1)&&((a3==6)&&((a4==1)&&((a0==1)&&(!(a18==1)&&(((input==6)&&!(a22==1))&&(a6==1))))))))&&(a5==1))&&(a12==11)))){ + a27 = 1; + a5 = 0; + a22 = 1; + a18 = 1; + a4 = 0; + a12 = 8; + a0 = 0; + a3 = 5; + a6 = 0; + return -1; + } else if((((((a6==1)&&(!(a15==1)&&(!(a0==1)&&(((a12==10)&&(!(a5==1)&&((input==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))))&&(a20==1)))))&&(a4==1))&&(a3==6))&&(a27==1))){ + a22 = 1; + a18 = 1; + a5 = 1; + a15 = 1; + a12 = 8; + a3 = 4; + a0 = 1; + return -1; + } else if((((a12==11)&&(!(a15==1)&&(((a20==1)&&(((a0==1)&&((a5==1)&&(!(a22==1)&&(!(a27==1)&&(((a18==1)||!(a18==1))&&(input==5))))))&&(a4==1)))&&!(a6==1))))&&(a3==7))){ + a18 = 0; + a6 = 1; + a22 = 1; + a27 = 1; + a4 = 0; + return -1; + } else if(((a5==1)&&((a6==1)&&(!(a0==1)&&((!(a22==1)&&((!(a27==1)&&(((a15==1)&&(((a18==1)&&(input==6))&&(a20==1)))&&!(a4==1)))&&(a3==7)))&&(a12==11)))))){ + a12 = 8; + a0 = 1; + a27 = 1; + a18 = 0; + a3 = 5; + return -1; + } else if((((((a20==1)&&((!(a27==1)&&((a5==1)&&((((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1)))&&(input==1))))&&(a12==9)))&&(a15==1))&&!(a4==1))&&(a0==1))){ + a22 = 1; + a5 = 0; + a3 = 8; + a4 = 1; + a0 = 0; + a6 = 1; + a18 = 0; + a27 = 1; + return 26; + } else if((!(a4==1)&&((((a12==9)&&(((((a27==1)&&((((a3==8)&&(input==3))&&!(a15==1))&&!(a22==1)))&&!(a5==1))&&(a20==1))&&(a6==1)))&&!(a0==1))&&!(a18==1)))){ + a18 = 1; + a22 = 1; + a12 = 11; + a4 = 1; + a0 = 1; + a5 = 1; + return 24; + } else if(((a6==1)&&(!(a15==1)&&(((a20==1)&&((!(a27==1)&&((((input==1)&&(((a3==6)&&(!(a18==1)&&(a22==1)))||(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))))&&(a12==9))&&(a4==1)))&&(a0==1)))&&!(a5==1))))){ + a15 = 1; + a12 = 8; + a18 = 1; + a5 = 1; + a27 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if((!(a5==1)&&((((!(a18==1)&&(((a12==12)&&((a0==1)&&(!(a6==1)&&((a20==1)&&(!(a15==1)&&(input==5))))))&&!(a4==1)))&&!(a27==1))&&(a3==4))&&(a22==1)))){ + a6 = 1; + a18 = 1; + a5 = 1; + a15 = 1; + a27 = 1; + a4 = 1; + a12 = 8; + return -1; + } else if(((((a15==1)&&((a27==1)&&(((a12==12)&&(!(a4==1)&&((a5==1)&&(((input==5)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&(a20==1)))))&&!(a6==1))))&&(a3==5))&&(a0==1))){ + a3 = 4; + a18 = 1; + a12 = 10; + a22 = 0; + a6 = 1; + return -1; + } else if((((((((((a20==1)&&((a12==11)&&(((input==3)&&(a22==1))&&!(a5==1))))&&(a4==1))&&!(a0==1))&&(a6==1))&&(a15==1))&&!(a18==1))&&(a3==5))&&(a27==1))){ + a3 = 4; + a6 = 0; + a22 = 0; + a4 = 0; + a5 = 1; + a12 = 12; + a0 = 1; + return 21; + } else if(((!(a5==1)&&((((a27==1)&&((a0==1)&&(((input==6)&&((!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1))))||((((a3==8)&&(!(a22==1)&&(a18==1)))&&(a6==1))||(((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1)))))&&(a20==1))))&&(a15==1))&&(a12==12)))&&!(a4==1))){ + a12 = 8; + a4 = 1; + a22 = 1; + a3 = 4; + a5 = 1; + a18 = 1; + a6 = 1; + return -1; + } else if((((a20==1)&&((((a18==1)&&((!(a27==1)&&((((a15==1)&&((input==2)&&(a5==1)))&&(a22==1))&&(a12==11)))&&(a0==1)))&&!(a6==1))&&(a3==8)))&&(a4==1))){ + a3 = 7; + a6 = 1; + a5 = 0; + a12 = 10; + return -1; + } else if(((((((!(a4==1)&&(!(a5==1)&&((a15==1)&&(((((a22==1)&&!(a18==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6))))&&(input==6)))))&&(a20==1))&&(a0==1))&&(a12==11))&&!(a27==1))&&!(a6==1))){ + a5 = 1; + a18 = 1; + a22 = 0; + a27 = 1; + a4 = 1; + a3 = 8; + return 26; + } else if((((a22==1)&&((((a3==8)&&((a0==1)&&(((a6==1)&&((a5==1)&&((a20==1)&&((input==5)&&((a18==1)||!(a18==1))))))&&(a12==9))))&&!(a27==1))&&(a15==1)))&&(a4==1))){ + if((a5==1)){ + a27 = 1; + a22 = 0; + a12 = 8; + a18 = 0; + a3 = 6; + a4 = 0; + a0 = 0; + }else{ + a6 = 0; + a18 = 0; + a5 = 0; + a3 = 5; + a12 = 12; + } + return 26; + } else if((!(a6==1)&&((a12==11)&&((((a5==1)&&(((a20==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==5))&&(a4==1)))&&(a0==1)))&&!(a15==1))&&(a27==1))))){ + a3 = 7; + a22 = 0; + a18 = 1; + a4 = 0; + a12 = 10; + a15 = 1; + a6 = 1; + return -1; + } else if((!(a6==1)&&((((a12==9)&&(((!(a4==1)&&(((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==4))&&!(a27==1)))&&!(a0==1))&&!(a5==1)))&&(a15==1))&&(a20==1)))){ + a22 = 1; + a4 = 1; + a6 = 1; + a0 = 1; + a5 = 1; + a3 = 8; + a18 = 0; + a12 = 8; + a27 = 1; + return -1; + } else if((((a20==1)&&((a4==1)&&(!(a27==1)&&(((((input==6)&&((((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1)))||(((!(a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))))&&(a12==12))&&(a0==1))&&(a15==1)))))&&(a5==1))){ + a18 = 0; + a27 = 1; + a3 = 7; + a15 = 0; + a4 = 0; + a22 = 1; + a6 = 1; + return 21; + } else if(((a22==1)&&(!(a15==1)&&(!(a4==1)&&(!(a0==1)&&(!(a6==1)&&((a20==1)&&((!(a18==1)&&((((input==4)&&(a27==1))&&!(a5==1))&&(a3==7)))&&(a12==12))))))))){ + a3 = 4; + a22 = 0; + a12 = 10; + a0 = 1; + a6 = 1; + a18 = 1; + return -1; + } else if((((!(a4==1)&&(((!(a5==1)&&(((a15==1)&&((input==6)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))))&&(a20==1)))&&(a12==10))&&!(a6==1)))&&(a0==1))&&!(a27==1))){ + if((a6==1)){ + a18 = 1; + a12 = 12; + a15 = 0; + a22 = 0; + a3 = 5; + }else{ + a3 = 6; + a12 = 9; + a6 = 1; + a15 = 0; + a18 = 1; + a22 = 1; + } + return -1; + } return calculate_output13(input); + } + + int calculate_output13(int input) { + if((!(a27==1)&&(!(a0==1)&&((a5==1)&&((a3==8)&&((a4==1)&&((!(a22==1)&&(!(a15==1)&&((a12==11)&&((!(a18==1)&&(input==6))&&(a20==1)))))&&(a6==1)))))))){ + a18 = 1; + a12 = 8; + a22 = 1; + a15 = 1; + a3 = 6; + return 26; + } else if((((!(a4==1)&&(!(a27==1)&&(((a12==9)&&((a22==1)&&(((a6==1)&&((((a18==1)||!(a18==1))&&(input==3))&&!(a15==1)))&&(a3==5))))&&!(a0==1))))&&!(a5==1))&&(a20==1))){ + if((a27==1)){ + a27 = 1; + a0 = 1; + a5 = 1; + a15 = 1; + a12 = 8; + a18 = 0; + a4 = 1; + a3 = 6; + }else{ + a3 = 7; + a6 = 0; + a18 = 0; + a27 = 1; + a22 = 0; + a12 = 10; + a15 = 1; + } + return -1; + } else if(((((!(a6==1)&&(((a5==1)&&((a4==1)&&(!(a15==1)&&(((((a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==7))))&&(input==5)))))&&(a0==1)))&&(a27==1))&&(a12==11))&&(a20==1))){ + a18 = 1; + a6 = 1; + a15 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((!(a5==1)&&((((a12==12)&&((((((((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1))))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==6))&&(a15==1))&&(a0==1))&&(a6==1)))&&(a4==1))&&(a27==1)))&&(a20==1))){ + a27 = 0; + a3 = 5; + a22 = 1; + a18 = 0; + return 26; + } else if((((a20==1)&&((a6==1)&&((a4==1)&&((((a15==1)&&(((input==6)&&((((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a22==1)&&(a18==1))))||(((a22==1)&&!(a18==1))&&(a3==7))))&&(a0==1)))&&(a5==1))&&(a12==12)))))&&(a27==1))){ + a4 = 0; + a3 = 7; + a6 = 0; + a18 = 0; + a22 = 0; + return 26; + } else if((((a20==1)&&((a18==1)&&((!(a15==1)&&((a3==5)&&((a27==1)&&((!(a4==1)&&(!(a5==1)&&((input==5)&&(a12==11))))&&(a0==1)))))&&!(a6==1))))&&(a22==1))){ + a12 = 8; + a15 = 1; + a4 = 1; + a6 = 1; + a5 = 1; + a3 = 4; + return -1; + } else if((((a20==1)&&((a0==1)&&((a27==1)&&((a12==8)&&((a15==1)&&(!(a6==1)&&(((((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1))))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==5))&&(a4==1))))))))&&!(a5==1))){ + a22 = 0; + a6 = 1; + a18 = 1; + a3 = 8; + a12 = 10; + a5 = 1; + return 21; + } else if(((!(a15==1)&&(((!(a5==1)&&(!(a0==1)&&(!(a27==1)&&(((a22==1)&&((a3==8)&&(((a18==1)||!(a18==1))&&(input==5))))&&(a12==9)))))&&!(a6==1))&&(a4==1)))&&(a20==1))){ + if((a0==1)){ + a15 = 1; + a27 = 1; + a6 = 1; + a0 = 1; + a5 = 1; + a18 = 1; + a12 = 8; + a3 = 5; + a4 = 0; + }else{ + a6 = 1; + a0 = 1; + a5 = 1; + a18 = 1; + a12 = 8; + a15 = 1; + a22 = 0; + a3 = 6; + a27 = 1; + } + return -1; + } else if(((a4==1)&&(!(a0==1)&&((!(a5==1)&&((((a12==8)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5))&&!(a15==1))&&(a6==1)))&&(a3==8))&&(a20==1)))&&!(a27==1))))){ + a27 = 1; + a5 = 1; + a22 = 1; + a3 = 5; + a6 = 0; + a18 = 1; + return 26; + } else if(((!(a4==1)&&((!(a15==1)&&((a5==1)&&((!(a22==1)&&((a3==8)&&((a6==1)&&(((a27==1)&&(input==5))&&(a20==1)))))&&(a18==1))))&&(a12==9)))&&(a0==1))){ + a18 = 0; + a3 = 4; + a12 = 8; + a15 = 1; + a27 = 0; + return 26; + } else if(((((a20==1)&&((a3==8)&&(((((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==6))&&(a6==1))&&(a12==9))&&!(a15==1))&&(a5==1))&&(a0==1))))&&!(a27==1))&&(a4==1))){ + if((a22==1)){ + a22 = 1; + a12 = 11; + a27 = 1; + a18 = 0; + a6 = 0; + a0 = 0; + a15 = 1; + }else{ + a27 = 1; + a22 = 1; + a12 = 11; + a18 = 1; + } + return -1; + } else if(((((((!(a0==1)&&((a12==8)&&((((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1)))&&(input==4))))&&(a15==1))&&!(a5==1))&&(a27==1))&&!(a4==1))&&(a20==1))){ + if((a3==7)){ + a12 = 10; + a22 = 0; + a3 = 7; + a6 = 1; + a18 = 0; + a15 = 0; + }else{ + a6 = 0; + a27 = 0; + a18 = 0; + a22 = 1; + a0 = 1; + a12 = 12; + a4 = 1; + a3 = 4; + } + return 26; + } else if((((a20==1)&&(!(a6==1)&&((((((((a3==6)&&((input==4)&&((a18==1)||!(a18==1))))&&(a27==1))&&(a4==1))&&(a22==1))&&(a5==1))&&!(a0==1))&&(a15==1))))&&(a12==10))){ + a4 = 0; + a12 = 12; + a15 = 0; + a6 = 1; + a3 = 7; + a18 = 1; + a0 = 1; + return 26; + } else if(((((a3==5)&&((((a0==1)&&(!(a6==1)&&(((!(a15==1)&&((a12==12)&&(input==6)))&&(a27==1))&&(a18==1))))&&(a20==1))&&!(a22==1)))&&!(a5==1))&&!(a4==1))){ + a22 = 1; + a15 = 1; + a18 = 0; + a5 = 1; + a12 = 10; + return 21; + } else if((!(a5==1)&&(((!(a4==1)&&((a12==8)&&((a22==1)&&(((a20==1)&&((a3==8)&&(!(a0==1)&&(((a18==1)||!(a18==1))&&(input==3)))))&&!(a6==1)))))&&(a15==1))&&!(a27==1)))){ + if((a15==1)){ + a18 = 1; + a0 = 1; + a6 = 1; + a22 = 0; + a5 = 1; + a3 = 4; + a27 = 1; + }else{ + a12 = 12; + a4 = 1; + a6 = 1; + a22 = 0; + a27 = 1; + a18 = 0; + } + return 26; + } else if(((a3==7)&&(((a15==1)&&((a12==9)&&((!(a6==1)&&(((a4==1)&&((!(a27==1)&&(!(a5==1)&&(input==1)))&&(a18==1)))&&(a20==1)))&&!(a0==1))))&&(a22==1)))){ + a5 = 1; + a27 = 1; + a0 = 1; + a22 = 0; + a18 = 0; + a12 = 8; + return -1; + } else if((((a20==1)&&(!(a0==1)&&((((a12==10)&&((((!(a5==1)&&((a3==6)&&(input==5)))&&!(a4==1))&&(a27==1))&&!(a15==1)))&&!(a6==1))&&!(a22==1))))&&!(a18==1))){ + a6 = 1; + a0 = 1; + a3 = 4; + a27 = 0; + a18 = 1; + a12 = 9; + return 21; + } else if((((((!(a15==1)&&(!(a4==1)&&((a22==1)&&((((!(a27==1)&&(input==3))&&(a3==6))&&!(a6==1))&&(a20==1)))))&&(a5==1))&&!(a18==1))&&(a0==1))&&(a12==12))){ + a6 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a15 = 1; + a27 = 1; + a4 = 1; + return -1; + } else if(((a5==1)&&((((!(a27==1)&&((a4==1)&&((((((input==2)&&(a0==1))&&(a12==10))&&!(a6==1))&&(a22==1))&&(a3==5))))&&!(a18==1))&&(a20==1))&&!(a15==1)))){ + a6 = 1; + a12 = 11; + a5 = 0; + a27 = 1; + a3 = 6; + return 26; + } else if(((!(a5==1)&&((a18==1)&&(((a27==1)&&(((a15==1)&&((a22==1)&&(((a3==7)&&((input==1)&&(a12==8)))&&!(a6==1))))&&(a20==1)))&&!(a0==1))))&&(a4==1))){ + a6 = 1; + a3 = 4; + a0 = 1; + a5 = 1; + return -1; + } else if((((!(a0==1)&&(!(a27==1)&&(((((a20==1)&&((a5==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==3))))&&!(a6==1))&&(a15==1))&&(a12==11))))&&(a4==1))&&(a3==8))){ + a18 = 0; + a5 = 0; + a3 = 6; + a12 = 10; + a22 = 1; + a4 = 0; + return 26; + } else if((((a12==8)&&((((a15==1)&&((a22==1)&&(!(a18==1)&&((((a20==1)&&((input==6)&&!(a4==1)))&&(a5==1))&&!(a0==1)))))&&(a6==1))&&(a3==8)))&&(a27==1))){ + if((a20==1)){ + a22 = 0; + a5 = 0; + a15 = 0; + a3 = 4; + }else{ + a12 = 10; + a27 = 0; + a15 = 0; + a0 = 1; + a3 = 5; + } + return 26; + } else if((((a5==1)&&(((a27==1)&&((((a15==1)&&((a6==1)&&((a3==7)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==3)))))&&!(a0==1))&&!(a4==1)))&&(a12==8)))&&(a20==1))){ + a22 = 1; + a4 = 1; + a0 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a27==1)&&((!(a4==1)&&(!(a6==1)&&(!(a15==1)&&(!(a5==1)&&(((a0==1)&&((input==3)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))||((a3==5)&&((a22==1)&&!(a18==1))))))&&(a12==12))))))&&(a20==1)))){ + a4 = 1; + a18 = 0; + a5 = 1; + a27 = 0; + a22 = 0; + a3 = 6; + a12 = 9; + return 26; + } else if((!(a5==1)&&(!(a27==1)&&(((!(a15==1)&&((((a0==1)&&(((((a22==1)&&!(a18==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8))))&&(input==1)))&&(a12==11))&&!(a4==1)))&&(a20==1))&&(a6==1))))){ + a5 = 1; + a12 = 8; + a15 = 1; + a4 = 1; + a18 = 1; + a3 = 4; + a27 = 1; + a22 = 1; + return -1; + } else if(((!(a0==1)&&(((((!(a4==1)&&(((((input==2)&&((a18==1)||!(a18==1)))&&!(a5==1))&&!(a15==1))&&(a3==6)))&&!(a6==1))&&(a12==9))&&(a20==1))&&!(a22==1)))&&(a27==1))){ + a0 = 1; + a18 = 1; + a15 = 1; + a5 = 1; + a3 = 7; + a6 = 1; + return 21; + } else if(((!(a4==1)&&(((a3==7)&&(!(a22==1)&&((a18==1)&&(!(a0==1)&&(((((a27==1)&&(input==1))&&(a5==1))&&(a20==1))&&!(a6==1))))))&&!(a15==1)))&&(a12==8))){ + a0 = 1; + a15 = 1; + a12 = 9; + a5 = 0; + a6 = 1; + return 21; + } else if(((((a3==6)&&(!(a27==1)&&((a12==12)&&(!(a5==1)&&(((a4==1)&&((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a20==1)))&&!(a15==1))))))&&!(a6==1))&&(a0==1))){ + a22 = 1; + a18 = 1; + a12 = 8; + a15 = 1; + a6 = 1; + return -1; + } else if((((a15==1)&&((a4==1)&&((!(a6==1)&&(((a3==5)&&((a20==1)&&((a12==9)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==6)))))&&(a27==1)))&&(a5==1))))&&!(a0==1))){ + a18 = 1; + a5 = 0; + a22 = 0; + a27 = 0; + a4 = 0; + a15 = 0; + a0 = 1; + return 21; + } else if((!(a6==1)&&((((a3==7)&&(((a27==1)&&(((a0==1)&&(((!(a4==1)&&(input==2))&&(a20==1))&&(a22==1)))&&!(a15==1)))&&(a5==1)))&&(a18==1))&&(a12==10)))){ + a3 = 5; + a4 = 1; + a22 = 0; + a27 = 0; + a15 = 1; + return 21; + } else if(((a3==7)&&((((a4==1)&&(((((a12==10)&&((a18==1)&&((a20==1)&&((input==2)&&(a5==1)))))&&!(a6==1))&&(a27==1))&&(a22==1)))&&!(a15==1))&&(a0==1)))){ + a6 = 1; + a15 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((((a12==10)&&((a6==1)&&(((((a27==1)&&((a20==1)&&((a4==1)&&((a0==1)&&(input==1)))))&&(a22==1))&&!(a5==1))&&(a15==1))))&&!(a18==1))&&(a3==5))){ + a6 = 0; + a5 = 1; + a4 = 0; + a3 = 7; + return -1; + } else if(((a20==1)&&((((a4==1)&&((((((!(a18==1)&&((input==2)&&!(a5==1)))&&(a15==1))&&!(a0==1))&&(a3==7))&&(a12==8))&&!(a6==1)))&&!(a22==1))&&(a27==1)))){ + a3 = 6; + a0 = 1; + a5 = 1; + a12 = 10; + a6 = 1; + return -1; + } else if((((!(a4==1)&&((((((a27==1)&&((input==6)&&(((!(a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1)))))))&&!(a6==1))&&(a5==1))&&(a20==1))&&(a15==1)))&&(a12==10))&&(a0==1))){ + a12 = 12; + a18 = 0; + a6 = 1; + a4 = 1; + a15 = 0; + a3 = 7; + a22 = 0; + return 21; + } else if(((a3==8)&&(((((((!(a4==1)&&((a12==11)&&((input==5)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))))&&(a20==1))&&(a5==1))&&!(a27==1))&&(a6==1))&&!(a15==1))&&(a0==1)))){ + a6 = 0; + a22 = 0; + a27 = 1; + a18 = 1; + a4 = 1; + a15 = 1; + a5 = 0; + a12 = 12; + a3 = 4; + return 21; + } else if((((!(a15==1)&&(!(a5==1)&&(((a4==1)&&(!(a6==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==6))&&!(a0==1))))&&(a12==10))))&&(a27==1))&&(a20==1))){ + a22 = 0; + a12 = 11; + a0 = 1; + a18 = 0; + a5 = 1; + a3 = 7; + a4 = 0; + a15 = 1; + return 24; + } else if(((a12==10)&&((a4==1)&&(((((a5==1)&&(((a20==1)&&((a27==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==3))))&&(a0==1)))&&(a6==1))&&!(a15==1))&&(a3==7))))){ + a18 = 1; + a3 = 8; + a22 = 1; + a12 = 8; + return -1; + } else if(((a22==1)&&((!(a27==1)&&(!(a15==1)&&((a20==1)&&((((!(a18==1)&&(((a6==1)&&(input==3))&&!(a4==1)))&&(a3==5))&&!(a0==1))&&(a12==10)))))&&(a5==1)))){ + if((a4==1)){ + a18 = 1; + a12 = 8; + a15 = 1; + a22 = 0; + a0 = 1; + a27 = 1; + }else{ + a15 = 1; + a27 = 1; + a22 = 0; + a3 = 7; + a12 = 8; + a0 = 1; + } + return 24; + } else if((((a0==1)&&(!(a27==1)&&((a12==9)&&(!(a6==1)&&((!(a15==1)&&(((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==1))&&(a20==1)))&&(a5==1))))))&&!(a4==1))){ + a12 = 8; + a15 = 1; + a22 = 1; + a4 = 1; + a27 = 1; + a3 = 4; + a6 = 1; + a18 = 1; + return -1; + } else if((((a27==1)&&(!(a4==1)&&((a18==1)&&(!(a22==1)&&((a15==1)&&(((a5==1)&&((a3==8)&&((a12==8)&&((a20==1)&&(input==6)))))&&(a6==1)))))))&&!(a0==1))){ + a4 = 1; + a12 = 9; + a5 = 0; + a0 = 1; + a27 = 0; + a3 = 4; + return -1; + } else if((((a5==1)&&((((a20==1)&&((((!(a22==1)&&(!(a15==1)&&((input==3)&&(a6==1))))&&!(a4==1))&&(a0==1))&&(a12==12)))&&!(a27==1))&&!(a18==1)))&&(a3==6))){ + a27 = 1; + a6 = 0; + a12 = 8; + a0 = 0; + a3 = 8; + a4 = 1; + a5 = 0; + a15 = 1; + return 26; + } else if((!(a18==1)&&(!(a27==1)&&((((!(a15==1)&&((!(a4==1)&&(((!(a6==1)&&(input==1))&&(a3==7))&&(a20==1)))&&!(a0==1)))&&!(a5==1))&&!(a22==1))&&(a12==11))))){ + a18 = 1; + a6 = 1; + a12 = 9; + a15 = 1; + a5 = 1; + a27 = 1; + a22 = 1; + return -1; + } else if(((((a3==6)&&(((a18==1)&&((a20==1)&&((((a4==1)&&(((a6==1)&&(input==3))&&(a12==11)))&&!(a22==1))&&(a15==1))))&&!(a27==1)))&&(a0==1))&&(a5==1))){ + a4 = 0; + a12 = 12; + a6 = 0; + a18 = 0; + a27 = 1; + return 21; + } else if((((a12==10)&&(!(a6==1)&&((a0==1)&&((a3==5)&&((!(a15==1)&&(((a20==1)&&((((a18==1)||!(a18==1))&&(input==4))&&!(a5==1)))&&(a27==1)))&&(a22==1))))))&&!(a4==1))){ + a3 = 8; + a6 = 1; + a27 = 0; + a22 = 0; + a18 = 1; + a15 = 1; + return 21; + } else if((((a0==1)&&((a12==8)&&((a5==1)&&(!(a27==1)&&(!(a6==1)&&((!(a4==1)&&((input==4)&&((((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1))))||((a3==7)&&((a22==1)&&(a18==1))))))&&(a20==1)))))))&&!(a15==1))){ + a6 = 1; + a27 = 1; + a12 = 11; + a3 = 7; + a22 = 0; + a18 = 1; + return 21; + } else if(((((a0==1)&&(((a20==1)&&((((((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))||((!(a18==1)&&(a22==1))&&(a3==8)))&&(input==4))&&(a27==1))&&!(a4==1))&&(a5==1)))&&!(a15==1)))&&!(a6==1))&&(a12==9))){ + a18 = 0; + a22 = 0; + a15 = 1; + a27 = 0; + a3 = 4; + a12 = 8; + return 21; + } else if((((a12==8)&&(((a27==1)&&(((a20==1)&&(((a5==1)&&(((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==2))&&(a4==1)))&&!(a15==1)))&&!(a6==1)))&&(a0==1)))&&(a3==8))){ + a18 = 1; + a3 = 4; + a15 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if((!(a4==1)&&((((((a20==1)&&((a12==8)&&(((input==3)&&((((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))||((a3==7)&&((a18==1)&&(a22==1)))))&&!(a27==1))))&&!(a6==1))&&(a5==1))&&!(a0==1))&&(a15==1)))){ + a4 = 1; + a3 = 5; + a22 = 1; + a18 = 0; + a0 = 1; + a27 = 1; + a6 = 1; + return 21; + } else if(((a27==1)&&((a12==9)&&((a0==1)&&((((a4==1)&&(((input==1)&&((((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1))||((((a3==8)&&((a18==1)&&!(a22==1)))&&(a6==1))||(((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1)))))&&(a20==1)))&&(a5==1))&&!(a15==1)))))){ + a3 = 8; + a0 = 0; + a22 = 0; + a18 = 0; + a12 = 8; + a15 = 1; + a6 = 0; + a4 = 0; + a5 = 0; + return 24; + } else if((((((a3==4)&&(((a12==10)&&((a20==1)&&(((((a4==1)&&(input==3))&&!(a5==1))&&!(a18==1))&&(a22==1))))&&(a6==1)))&&(a15==1))&&!(a27==1))&&(a0==1))){ + a12 = 11; + a18 = 1; + a27 = 1; + a4 = 0; + a0 = 0; + return 26; + } else if((((((a0==1)&&(((((((a20==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a22==1))&&!(a4==1))&&!(a27==1))&&!(a15==1))&&(a3==4)))&&(a6==1))&&!(a5==1))&&(a12==11))){ + a27 = 1; + a5 = 1; + a4 = 1; + a12 = 12; + a18 = 0; + a22 = 0; + a0 = 0; + a15 = 1; + return -1; + } else if((!(a5==1)&&(((!(a15==1)&&((a12==11)&&((((a18==1)&&((a27==1)&&(!(a22==1)&&((input==2)&&(a4==1)))))&&(a0==1))&&(a3==6))))&&(a6==1))&&(a20==1)))){ + a4 = 0; + a12 = 12; + a5 = 1; + a18 = 0; + a3 = 4; + return 21; + } else if(((((((((!(a15==1)&&((a20==1)&&(!(a27==1)&&((a5==1)&&(input==5)))))&&(a3==8))&&(a12==11))&&!(a22==1))&&(a4==1))&&!(a6==1))&&!(a0==1))&&(a18==1))){ + if((a6==1)){ + a12 = 8; + a27 = 1; + a22 = 1; + a4 = 0; + }else{ + a22 = 1; + a6 = 1; + a27 = 1; + a0 = 1; + a15 = 1; + a12 = 8; + } + return -1; + } else if((!(a4==1)&&(((((((a20==1)&&((a5==1)&&((a0==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==2)))))&&(a27==1))&&(a12==8))&&(a15==1))&&!(a6==1))&&(a3==8)))){ + a15 = 0; + a6 = 1; + a18 = 0; + a3 = 7; + a22 = 1; + return 26; + } else if((((!(a4==1)&&((a3==6)&&((((a5==1)&&((((input==5)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&!(a27==1))&&(a12==12)))&&(a20==1))&&(a6==1))))&&!(a15==1))&&(a0==1))){ + a4 = 1; + a5 = 0; + a18 = 1; + a22 = 1; + a6 = 0; + a12 = 10; + a27 = 1; + a3 = 7; + return 21; + } else if((!(a5==1)&&((((!(a4==1)&&(((((((a20==1)&&(input==5))&&!(a6==1))&&(a0==1))&&(a12==12))&&!(a15==1))&&!(a22==1)))&&(a27==1))&&(a3==5))&&!(a18==1)))){ + a6 = 1; + a15 = 1; + a12 = 8; + a5 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + a4 = 1; + return -1; + } else if((((a15==1)&&(!(a27==1)&&(((!(a4==1)&&(!(a22==1)&&(((a20==1)&&(((input==3)&&!(a5==1))&&(a12==11)))&&!(a0==1))))&&!(a18==1))&&(a3==7))))&&(a6==1))){ + a22 = 1; + a5 = 1; + a15 = 0; + a0 = 1; + a3 = 4; + a12 = 8; + return 26; + } else if((!(a5==1)&&(((a3==8)&&(((a20==1)&&((((((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a6==1))&&(a27==1))&&(a4==1))&&(a0==1)))&&(a12==12)))&&(a15==1)))){ + a22 = 1; + a27 = 0; + a3 = 6; + a18 = 1; + return 26; + } else if(((a20==1)&&((((a12==9)&&((!(a27==1)&&(((((input==4)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&(a4==1))&&(a6==1))&&!(a5==1)))&&(a3==8)))&&(a15==1))&&!(a0==1)))){ + a3 = 5; + a18 = 0; + a22 = 0; + a6 = 0; + a27 = 1; + return -1; + } else if((((a12==11)&&((((!(a15==1)&&((((input==2)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1)))))&&!(a0==1))&&(a5==1)))&&!(a4==1))&&!(a6==1))&&(a27==1)))&&(a20==1))){ + a18 = 1; + a3 = 6; + a0 = 1; + a22 = 0; + a12 = 10; + a5 = 0; + return 26; + } else if((((a22==1)&&(!(a4==1)&&((!(a6==1)&&((!(a18==1)&&((a3==8)&&((((a15==1)&&(input==5))&&(a20==1))&&(a12==11))))&&!(a0==1)))&&!(a27==1))))&&!(a5==1))){ + a27 = 1; + a6 = 1; + a15 = 0; + a3 = 4; + a12 = 12; + return -1; + } else if((((a4==1)&&(((a20==1)&&(!(a5==1)&&((a3==4)&&(((a27==1)&&((a6==1)&&((input==6)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))))&&(a12==11)))))&&(a0==1)))&&!(a15==1))){ + a15 = 1; + a22 = 1; + a3 = 8; + a27 = 0; + a4 = 0; + a18 = 1; + return 21; + } else if((((!(a4==1)&&((a6==1)&&(!(a0==1)&&((a12==9)&&((((a27==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==6)))&&(a3==5))&&(a20==1))))))&&(a5==1))&&!(a15==1))){ + a4 = 1; + a22 = 1; + a18 = 1; + a3 = 6; + a15 = 1; + a12 = 10; + a6 = 0; + a0 = 1; + a5 = 0; + return 21; + } else if((((a20==1)&&((((a27==1)&&((a12==11)&&((((input==3)&&((((a22==1)&&(a18==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==5)))))&&(a0==1))&&!(a15==1))))&&(a4==1))&&!(a5==1)))&&(a6==1))){ + a22 = 0; + a18 = 0; + a15 = 1; + a3 = 6; + a6 = 0; + a12 = 10; + a5 = 1; + return -1; + } else if(((a4==1)&&(((!(a0==1)&&((a5==1)&&(((a15==1)&&((a20==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==6))&&(a12==11))))&&(a6==1))))&&(a3==8))&&!(a27==1)))){ + if((a20==1)){ + a0 = 1; + a12 = 8; + a4 = 0; + a22 = 1; + a3 = 4; + a27 = 1; + a18 = 0; + }else{ + a6 = 0; + a0 = 1; + a4 = 0; + a3 = 6; + a12 = 9; + a22 = 1; + a18 = 0; + } + return 24; + } else if(((a12==11)&&((!(a15==1)&&(!(a18==1)&&(((((a3==5)&&((!(a5==1)&&((a22==1)&&(input==5)))&&!(a0==1)))&&(a6==1))&&(a20==1))&&(a27==1))))&&!(a4==1)))){ + a3 = 7; + a5 = 1; + a22 = 0; + a6 = 0; + a27 = 0; + a0 = 1; + a12 = 12; + return 21; + } else if((!(a22==1)&&((a5==1)&&((a6==1)&&(!(a15==1)&&(((a27==1)&&((((((input==5)&&((a18==1)||!(a18==1)))&&!(a4==1))&&(a20==1))&&(a0==1))&&(a12==9)))&&(a3==4))))))){ + a4 = 1; + a18 = 0; + a12 = 11; + a3 = 8; + a5 = 0; + return 26; + } else if(((a0==1)&&((a20==1)&&((a5==1)&&((a12==10)&&((a4==1)&&(((a15==1)&&(((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==4))&&(a27==1))&&(a6==1)))&&(a3==7)))))))){ + a22 = 1; + a18 = 1; + return -1; + } else if(((a4==1)&&(!(a15==1)&&((a20==1)&&((a0==1)&&((((a6==1)&&(((a3==7)&&(((input==1)&&(a27==1))&&(a5==1)))&&!(a18==1)))&&(a12==10))&&!(a22==1))))))){ + a3 = 8; + a22 = 1; + a18 = 1; + a4 = 0; + a12 = 11; + return 21; + } else if(((a12==9)&&(((a3==4)&&(((!(a6==1)&&((a20==1)&&((!(a15==1)&&(!(a5==1)&&((input==3)&&((a18==1)||!(a18==1)))))&&!(a4==1))))&&(a22==1))&&!(a0==1)))&&!(a27==1)))){ + a6 = 1; + a3 = 6; + a15 = 1; + a18 = 1; + a5 = 1; + a0 = 1; + a12 = 8; + a27 = 1; + return -1; + } else if(((a20==1)&&(((!(a15==1)&&(!(a27==1)&&((((!(a0==1)&&((input==1)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&!(a5==1))&&(a3==7))&&(a12==10))))&&(a4==1))&&(a6==1)))){ + if((a15==1)){ + a22 = 1; + a5 = 1; + a15 = 1; + a4 = 0; + a3 = 8; + a0 = 1; + a12 = 8; + a27 = 1; + a18 = 1; + }else{ + a15 = 1; + a5 = 1; + a12 = 8; + a22 = 1; + a3 = 5; + a4 = 0; + a0 = 1; + a27 = 1; + a18 = 0; + } + return 26; + } else if(((((a12==12)&&(((a15==1)&&((!(a27==1)&&(!(a4==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))||((!(a18==1)&&(a22==1))&&(a3==8)))&&(input==4))))&&!(a5==1)))&&(a0==1)))&&(a6==1))&&(a20==1))){ + a27 = 1; + a22 = 1; + a12 = 8; + a4 = 1; + a3 = 4; + a18 = 1; + a5 = 1; + return -1; + } else if(((!(a6==1)&&(((a27==1)&&(!(a15==1)&&(((((a5==1)&&((input==2)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&(a20==1))&&(a3==5))&&(a0==1))))&&(a12==9)))&&!(a4==1))){ + if((a22==1)){ + a15 = 1; + a3 = 7; + a12 = 10; + a18 = 0; + a0 = 0; + a22 = 0; + }else{ + a6 = 1; + a4 = 1; + a18 = 1; + a12 = 10; + a5 = 0; + a3 = 4; + a22 = 0; + } + return 21; + } else if((((a20==1)&&(((((a0==1)&&((((a15==1)&&((a22==1)&&((input==1)&&(a6==1))))&&!(a27==1))&&(a5==1)))&&(a12==8))&&!(a18==1))&&!(a4==1)))&&(a3==4))){ + a18 = 1; + a4 = 1; + a27 = 1; + return -1; + } else if(((((!(a4==1)&&((a20==1)&&(!(a0==1)&&((a12==8)&&((input==1)&&(((((a3==8)&&((a18==1)&&!(a22==1)))&&(a6==1))||((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1)))))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1))))))))&&!(a15==1))&&!(a27==1))&&(a5==1))){ + a27 = 1; + a0 = 1; + a6 = 0; + a22 = 0; + a3 = 5; + a18 = 0; + a12 = 12; + return 21; + } else if(((a12==8)&&((a6==1)&&((a20==1)&&((!(a15==1)&&((a4==1)&&(((a0==1)&&(((((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==6)))&&(a5==1))))&&(a27==1)))))){ + a22 = 0; + a15 = 1; + a6 = 0; + a3 = 7; + a18 = 1; + a5 = 0; + return 21; + } else if((((a0==1)&&(((a12==11)&&(((a20==1)&&(((((a4==1)&&(!(a5==1)&&(input==2)))&&!(a6==1))&&!(a22==1))&&(a15==1)))&&(a18==1)))&&(a3==5)))&&!(a27==1))){ + a12 = 8; + a6 = 1; + a27 = 1; + a3 = 4; + a22 = 1; + a5 = 1; + return -1; + } else if((((a15==1)&&((a0==1)&&(!(a4==1)&&(!(a6==1)&&((a27==1)&&(((a3==6)&&((((input==6)&&((a18==1)||!(a18==1)))&&(a5==1))&&!(a22==1)))&&(a20==1)))))))&&(a12==9))){ + a3 = 8; + a5 = 0; + a0 = 0; + a18 = 1; + a15 = 0; + a12 = 10; + return 24; + } else if((!(a27==1)&&((((a20==1)&&(((((a4==1)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==5)))&&!(a5==1))&&(a6==1))&&(a12==10)))&&(a0==1))&&!(a15==1)))){ + a15 = 1; + a27 = 1; + a3 = 4; + a18 = 1; + a5 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if((((a12==8)&&((a20==1)&&(((!(a27==1)&&((a3==7)&&((!(a5==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4)))&&(a6==1))))&&(a0==1))&&(a4==1))))&&!(a15==1))){ + a22 = 1; + a12 = 10; + a3 = 8; + a27 = 1; + a5 = 1; + a18 = 0; + return -1; + } else if(((a3==7)&&((!(a6==1)&&((((!(a0==1)&&(!(a15==1)&&((a20==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==3)))))&&(a12==9))&&(a27==1))&&!(a4==1)))&&(a5==1)))){ + a12 = 11; + a4 = 1; + a18 = 0; + a5 = 0; + a22 = 0; + a0 = 1; + return 21; + } else if((!(a4==1)&&(!(a0==1)&&(((a18==1)&&((a20==1)&&(((a5==1)&&(((!(a15==1)&&((a12==12)&&(input==3)))&&(a27==1))&&!(a22==1)))&&!(a6==1))))&&(a3==6))))){ + if((a4==1)){ + a27 = 0; + a0 = 1; + a5 = 0; + a18 = 0; + a4 = 1; + a15 = 1; + a6 = 1; + a12 = 11; + }else{ + a4 = 1; + a0 = 1; + a12 = 8; + a15 = 1; + a3 = 4; + } + return -1; + } else if((((a4==1)&&(!(a5==1)&&(((a3==5)&&(((a15==1)&&(((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==2))&&!(a27==1))&&(a12==10)))&&(a6==1)))&&(a0==1))))&&(a20==1))){ + a3 = 8; + a18 = 0; + a4 = 0; + a27 = 1; + a22 = 1; + return -1; + } else if((((a22==1)&&((((((a27==1)&&(((a4==1)&&(((a15==1)&&(input==2))&&(a18==1)))&&(a3==7)))&&(a12==10))&&(a5==1))&&(a20==1))&&!(a0==1)))&&(a6==1))){ + a3 = 5; + a4 = 0; + a6 = 0; + a0 = 1; + a12 = 11; + a5 = 0; + a15 = 0; + a22 = 0; + return 21; + } else if((((a20==1)&&((a0==1)&&(!(a15==1)&&((!(a27==1)&&(!(a5==1)&&((((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==8)))||(((a22==1)&&!(a18==1))&&(a3==8)))&&(input==5))&&(a12==11))))&&!(a4==1)))))&&(a6==1))){ + a4 = 1; + a18 = 1; + a3 = 8; + a22 = 1; + a27 = 1; + a12 = 10; + return -1; + } else if((((((((a0==1)&&(((input==5)&&((((a3==4)&&(!(a18==1)&&(a22==1)))&&!(a6==1))||(((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1)))))&&(a4==1)))&&!(a27==1))&&(a20==1))&&(a5==1))&&(a15==1))&&(a12==12))){ + a27 = 1; + a4 = 0; + a18 = 1; + a22 = 1; + a6 = 0; + a3 = 8; + a15 = 0; + a12 = 10; + return -1; + } else if((!(a5==1)&&(((a20==1)&&(((a0==1)&&((!(a27==1)&&((a12==9)&&((input==6)&&((((a3==7)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==7)))||((a3==8)&&((a18==1)&&(a22==1)))))))&&(a6==1)))&&!(a15==1)))&&(a4==1)))){ + a18 = 0; + a5 = 1; + a22 = 0; + a27 = 1; + a12 = 11; + a3 = 5; + return 24; + } else if((((a0==1)&&((a4==1)&&(((!(a27==1)&&((((a12==9)&&(!(a6==1)&&((input==6)&&(a15==1))))&&!(a18==1))&&!(a22==1)))&&(a3==6))&&(a20==1))))&&!(a5==1))){ + a6 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + a5 = 1; + a18 = 1; + a27 = 1; + return -1; + } else if(((a12==10)&&((a4==1)&&(((a20==1)&&((a6==1)&&((a5==1)&&(((a27==1)&&(((((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==4)))&&!(a0==1)))))&&!(a15==1))))){ + a0 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if((!(a18==1)&&(!(a0==1)&&(((!(a15==1)&&(!(a6==1)&&(((((a5==1)&&((a12==8)&&(input==6)))&&!(a4==1))&&(a3==4))&&!(a27==1))))&&(a20==1))&&(a22==1))))){ + if((a15==1)){ + a27 = 1; + a15 = 1; + a18 = 1; + a4 = 1; + a6 = 1; + a0 = 1; + }else{ + a27 = 1; + a0 = 1; + a4 = 1; + a15 = 1; + a3 = 6; + } + return 26; + } else if((((((a20==1)&&((((a12==12)&&(((input==3)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1)))))&&(a0==1)))&&!(a5==1))&&(a27==1)))&&(a15==1))&&(a6==1))&&(a4==1))){ + a4 = 0; + a3 = 7; + a15 = 0; + a5 = 1; + a22 = 0; + a18 = 1; + a6 = 0; + return 21; + } else if((((!(a27==1)&&((a20==1)&&(((input==6)&&((!(a6==1)&&((a3==8)&&(((a15==1)&&(!(a18==1)&&!(a22==1)))&&!(a4==1))))||((a6==1)&&(((a4==1)&&(((a18==1)&&(a22==1))&&!(a15==1)))&&(a3==4)))))&&(a5==1))))&&(a12==10))&&(a0==1))){ + a15 = 0; + a12 = 11; + a27 = 1; + a22 = 0; + a4 = 1; + a3 = 8; + a6 = 0; + a5 = 0; + a18 = 0; + return 21; + } else if((!(a5==1)&&((a6==1)&&((a12==11)&&(((!(a27==1)&&(((a20==1)&&(((input==6)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a3==5)))&&(a4==1)))&&!(a0==1))&&(a15==1)))))){ + a27 = 1; + a18 = 0; + a6 = 0; + a12 = 8; + a0 = 1; + a22 = 0; + a3 = 8; + a5 = 1; + return -1; + } else if(((((((((!(a22==1)&&(((a5==1)&&((a4==1)&&(input==2)))&&!(a27==1)))&&(a0==1))&&(a12==11))&&!(a18==1))&&(a3==6))&&(a20==1))&&!(a15==1))&&(a6==1))){ + a27 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if(((((a6==1)&&((a15==1)&&(((!(a0==1)&&(!(a4==1)&&(((input==5)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a27==1))))&&(a5==1))&&(a20==1))))&&(a3==8))&&(a12==10))){ + a15 = 0; + a3 = 5; + a0 = 1; + a12 = 9; + a18 = 0; + a27 = 0; + a22 = 1; + return -1; + } else if((((a22==1)&&((a3==6)&&(!(a18==1)&&((a20==1)&&((a15==1)&&((a4==1)&&((a0==1)&&(((!(a27==1)&&(input==4))&&(a5==1))&&(a12==11)))))))))&&(a6==1))){ + a12 = 12; + a4 = 0; + a22 = 0; + a27 = 1; + a3 = 8; + a15 = 0; + return 24; + } else if((!(a6==1)&&((a20==1)&&(((((a12==9)&&((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6))&&!(a27==1))&&(a15==1))&&!(a5==1)))&&(a3==5))&&!(a0==1))&&!(a4==1))))){ + a12 = 8; + a22 = 0; + a27 = 1; + a5 = 1; + a3 = 7; + a6 = 1; + a0 = 1; + a18 = 1; + return 26; + } else if((!(a15==1)&&((a5==1)&&((a4==1)&&((a3==7)&&((a20==1)&&(((a12==8)&&((a0==1)&&((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==1))&&!(a27==1))))&&(a6==1)))))))){ + a3 = 8; + a22 = 0; + a27 = 1; + a12 = 11; + a18 = 1; + a4 = 0; + a6 = 0; + return 21; + } else if((((((!(a15==1)&&(((((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==5))&&!(a6==1))&&!(a4==1))&&!(a27==1)))&&(a12==8))&&(a5==1))&&(a20==1))&&!(a0==1))){ + a6 = 1; + a27 = 1; + a18 = 1; + a3 = 6; + a15 = 1; + a0 = 1; + a4 = 1; + a22 = 0; + return 21; + } else if(((!(a4==1)&&((((!(a6==1)&&(((((a27==1)&&((a12==11)&&(input==4)))&&(a20==1))&&(a0==1))&&!(a18==1)))&&!(a22==1))&&!(a15==1))&&(a3==8)))&&!(a5==1))){ + a3 = 6; + a18 = 1; + a12 = 10; + return -1; + } else if(((a5==1)&&(!(a6==1)&&(!(a0==1)&&((((a27==1)&&(!(a15==1)&&(!(a18==1)&&(!(a22==1)&&(!(a4==1)&&((input==2)&&(a3==7)))))))&&(a20==1))&&(a12==8)))))){ + a12 = 12; + a6 = 1; + a0 = 1; + a22 = 1; + return 26; + } else if((!(a5==1)&&((a0==1)&&((a20==1)&&(((a3==5)&&(!(a15==1)&&((a27==1)&&((a4==1)&&(!(a6==1)&&((a12==8)&&(((a18==1)||!(a18==1))&&(input==6))))))))&&!(a22==1)))))){ + if((a22==1)){ + a18 = 1; + a3 = 7; + a4 = 0; + a0 = 0; + a12 = 9; + a6 = 1; + }else{ + a3 = 7; + a18 = 0; + a12 = 11; + a5 = 1; + a15 = 1; + } + return 26; + } else if((((a5==1)&&((((a4==1)&&((!(a22==1)&&(((a12==10)&&(((a20==1)&&(input==2))&&!(a6==1)))&&!(a15==1)))&&(a18==1)))&&(a3==5))&&(a0==1)))&&(a27==1))){ + a6 = 1; + a18 = 0; + a22 = 1; + return -1; + } else if(((!(a22==1)&&(!(a5==1)&&(((a20==1)&&((a12==12)&&((!(a18==1)&&((((a15==1)&&(input==3))&&!(a6==1))&&!(a27==1)))&&(a0==1))))&&(a4==1))))&&(a3==7))){ + a6 = 1; + a5 = 1; + a3 = 6; + a22 = 1; + a12 = 10; + a15 = 0; + a27 = 1; + a18 = 1; + return 21; + } else if((!(a5==1)&&((a12==12)&&(!(a15==1)&&(((a27==1)&&(!(a4==1)&&((((((!(a18==1)&&(a22==1))&&(a3==5))||(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1)))))&&(input==2))&&(a0==1))&&!(a6==1))))&&(a20==1)))))){ + a4 = 1; + a3 = 7; + a22 = 0; + a18 = 0; + return -1; + } else if(((a5==1)&&((a6==1)&&(((a27==1)&&(((a3==6)&&((!(a4==1)&&((a12==10)&&(((input==4)&&((a18==1)||!(a18==1)))&&!(a15==1))))&&(a22==1)))&&(a20==1)))&&!(a0==1))))){ + a15 = 1; + a18 = 0; + a27 = 0; + a12 = 8; + a5 = 0; + a0 = 1; + return -1; + } else if((!(a15==1)&&(((!(a4==1)&&(((((a12==10)&&((a0==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==5))))&&(a20==1))&&!(a27==1))&&!(a5==1)))&&!(a6==1))&&(a3==8)))){ + a6 = 1; + a12 = 12; + a18 = 0; + a3 = 7; + a15 = 1; + a4 = 1; + a22 = 1; + a27 = 1; + a5 = 1; + a0 = 0; + return -1; + } else if((((a0==1)&&((((!(a4==1)&&((a12==12)&&((((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1))||((((a3==8)&&(!(a22==1)&&(a18==1)))&&(a6==1))||((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))))&&(input==1))))&&(a15==1))&&(a20==1))&&!(a5==1)))&&(a27==1))){ + a6 = 1; + a18 = 1; + a12 = 11; + a5 = 1; + a22 = 1; + a3 = 6; + a4 = 1; + return 21; + } else if(((((a5==1)&&(((((((input==1)&&(((a3==5)&&(!(a18==1)&&(a22==1)))||(((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==5)))))&&!(a15==1))&&!(a6==1))&&(a27==1))&&(a0==1))&&(a20==1)))&&(a12==12))&&!(a4==1))){ + a22 = 1; + a18 = 1; + a15 = 1; + a3 = 4; + a6 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if((((!(a15==1)&&(((a4==1)&&((!(a22==1)&&((!(a18==1)&&(((input==4)&&(a5==1))&&!(a27==1)))&&!(a0==1)))&&!(a6==1)))&&(a12==10)))&&(a20==1))&&(a3==7))){ + a15 = 1; + a12 = 8; + a18 = 1; + a27 = 1; + a0 = 1; + return 26; + } else if((!(a4==1)&&((a6==1)&&(((a27==1)&&(!(a5==1)&&((!(a0==1)&&((((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))||((a3==8)&&(!(a18==1)&&(a22==1))))&&(input==5))&&(a15==1)))&&(a20==1))))&&(a12==12))))){ + a22 = 0; + a0 = 1; + a12 = 8; + a3 = 8; + a18 = 1; + a5 = 1; + return -1; + } else if((((!(a22==1)&&(((a5==1)&&((a20==1)&&((a0==1)&&((((a12==11)&&((input==3)&&!(a27==1)))&&!(a15==1))&&!(a6==1)))))&&(a3==6)))&&(a18==1))&&!(a4==1))){ + a15 = 1; + a22 = 1; + a6 = 1; + a12 = 8; + a27 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((((a12==8)&&(!(a15==1)&&((a3==4)&&((a5==1)&&(!(a4==1)&&((a20==1)&&((a0==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a6==1)))))))))&&!(a22==1))&&(a27==1))){ + a4 = 1; + a6 = 0; + a12 = 9; + a3 = 8; + a18 = 0; + a22 = 1; + a15 = 1; + return 24; + } else if(((!(a22==1)&&(((a12==11)&&(!(a0==1)&&((((((a5==1)&&((input==5)&&(a3==4)))&&!(a27==1))&&!(a15==1))&&!(a18==1))&&(a20==1))))&&(a4==1)))&&!(a6==1))){ + a27 = 1; + a18 = 1; + a3 = 7; + a12 = 8; + a22 = 1; + a0 = 1; + a4 = 0; + a15 = 1; + a6 = 1; + return 26; + } else if(((!(a6==1)&&(!(a22==1)&&((!(a18==1)&&(((((((a15==1)&&(input==4))&&(a5==1))&&(a27==1))&&(a0==1))&&(a3==7))&&(a20==1)))&&(a12==11))))&&!(a4==1))){ + a18 = 1; + a22 = 1; + a3 = 4; + a12 = 10; + return -1; + } else if(((a22==1)&&((a12==9)&&((a15==1)&&((!(a5==1)&&((a20==1)&&((((((input==2)&&(a6==1))&&!(a0==1))&&(a18==1))&&!(a4==1))&&(a27==1))))&&(a3==6)))))){ + a0 = 1; + a18 = 0; + a15 = 0; + a3 = 7; + a22 = 0; + a12 = 11; + return 26; + } else if(((a0==1)&&((a12==8)&&((a27==1)&&(!(a15==1)&&((!(a6==1)&&((((!(a22==1)&&((a3==8)&&(input==5)))&&(a4==1))&&(a20==1))&&(a5==1)))&&!(a18==1))))))){ + a3 = 4; + a6 = 1; + a22 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if((!(a27==1)&&((!(a5==1)&&((a0==1)&&(((a4==1)&&(!(a6==1)&&(!(a15==1)&&((a12==10)&&((input==6)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))))&&(a3==4))))&&(a20==1)))){ + a27 = 1; + a5 = 1; + a15 = 1; + a18 = 1; + a22 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if(((((!(a4==1)&&((((!(a6==1)&&((a3==7)&&(!(a18==1)&&((input==5)&&(a15==1)))))&&(a0==1))&&(a22==1))&&(a12==12)))&&!(a27==1))&&!(a5==1))&&(a20==1))){ + a15 = 0; + a22 = 0; + a12 = 11; + a4 = 1; + a3 = 5; + a27 = 1; + return -1; + } else if(((!(a27==1)&&(((a5==1)&&((a6==1)&&((a20==1)&&(!(a0==1)&&(!(a4==1)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==4)))))))&&!(a15==1)))&&(a12==8))){ + a6 = 0; + a4 = 1; + a0 = 1; + a15 = 1; + a22 = 1; + a18 = 0; + a3 = 8; + a27 = 1; + return 26; + } else if((((a12==8)&&((!(a5==1)&&(((a20==1)&&((!(a4==1)&&((input==6)&&(((a3==8)&&(!(a18==1)&&(a22==1)))||(((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1)))))))&&(a6==1)))&&!(a27==1)))&&!(a15==1)))&&!(a0==1))){ + a15 = 1; + a5 = 1; + a18 = 1; + a27 = 1; + a3 = 8; + a22 = 0; + a4 = 1; + a0 = 1; + return 26; + } else if(((((!(a27==1)&&((a12==9)&&((a0==1)&&((((a3==5)&&(((a22==1)&&(input==1))&&(a5==1)))&&(a6==1))&&(a15==1)))))&&!(a18==1))&&!(a4==1))&&(a20==1))){ + a15 = 0; + a5 = 0; + a12 = 10; + a3 = 6; + a4 = 1; + a27 = 1; + return 26; + } else if((!(a5==1)&&((a4==1)&&((a15==1)&&((a12==12)&&(((((input==1)&&(((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1)))||((((a22==1)&&!(a18==1))&&(a3==4))&&!(a6==1))))&&(a20==1))&&(a0==1))&&!(a27==1))))))){ + a18 = 0; + a12 = 11; + a6 = 1; + a22 = 1; + a3 = 8; + a4 = 0; + a5 = 1; + return -1; + } else if((!(a5==1)&&((a20==1)&&(((a27==1)&&(((a3==4)&&(!(a22==1)&&((a4==1)&&((!(a0==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a6==1)))))&&(a12==8)))&&!(a15==1))))){ + a4 = 0; + a5 = 1; + a12 = 11; + a18 = 1; + a6 = 0; + a3 = 8; + return 26; + } else if(((a27==1)&&(!(a0==1)&&(((a18==1)&&((((a6==1)&&(((!(a5==1)&&((input==1)&&(a3==7)))&&!(a22==1))&&!(a4==1)))&&(a12==12))&&(a20==1)))&&(a15==1))))){ + a22 = 1; + a0 = 1; + a12 = 10; + a4 = 1; + return -1; + } else if((((!(a6==1)&&((a5==1)&&(((!(a4==1)&&(!(a15==1)&&((input==6)&&((((a22==1)&&!(a18==1))&&(a3==5))||(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))))))&&(a20==1))&&!(a0==1))))&&(a12==10))&&!(a27==1))){ + a3 = 8; + a15 = 1; + a22 = 1; + a6 = 1; + a12 = 8; + a18 = 0; + a27 = 1; + return -1; + } else if((!(a5==1)&&(((a6==1)&&((((!(a0==1)&&(!(a15==1)&&(((input==5)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a3==4))))&&(a12==10))&&(a4==1))&&!(a27==1)))&&(a20==1)))){ + if((a18==1)){ + a5 = 1; + a15 = 1; + a27 = 1; + a22 = 0; + a0 = 1; + a3 = 8; + a12 = 8; + a18 = 0; + }else{ + a0 = 1; + a4 = 0; + a3 = 8; + a5 = 1; + a15 = 1; + a27 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + } + return 21; + } else if(((a15==1)&&(!(a4==1)&&((a0==1)&&((a22==1)&&((((a18==1)&&(((((input==5)&&!(a5==1))&&(a12==12))&&(a20==1))&&(a3==7)))&&!(a6==1))&&!(a27==1))))))){ + a4 = 1; + a3 = 4; + a27 = 1; + a12 = 8; + a5 = 1; + a6 = 1; + return -1; + } else if(((a4==1)&&((a12==10)&&((a20==1)&&((a5==1)&&(((a27==1)&&(((((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))||((a3==6)&&((a22==1)&&!(a18==1))))&&(input==3))&&!(a0==1))&&(a15==1)))&&(a6==1))))))){ + a3 = 4; + a22 = 1; + a18 = 0; + a0 = 1; + return 21; + } else if(((a6==1)&&((a3==7)&&(((!(a5==1)&&(((a0==1)&&((!(a22==1)&&((a15==1)&&((input==5)&&((a18==1)||!(a18==1)))))&&(a27==1)))&&(a20==1)))&&!(a4==1))&&(a12==12))))){ + a22 = 1; + a4 = 1; + a5 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((((((a0==1)&&((a3==5)&&(((!(a27==1)&&((a15==1)&&(!(a18==1)&&((input==6)&&(a6==1)))))&&(a12==11))&&(a4==1))))&&(a22==1))&&(a20==1))&&(a5==1))){ + a22 = 0; + a27 = 1; + a18 = 1; + a3 = 7; + a4 = 0; + return 21; + } else if(((a4==1)&&((((((a20==1)&&(((a0==1)&&((((a3==6)&&((a22==1)&&!(a18==1)))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6))))&&(input==6)))&&!(a5==1)))&&(a6==1))&&!(a27==1))&&!(a15==1))&&(a12==9)))){ + a22 = 1; + a18 = 1; + a5 = 1; + a15 = 1; + a27 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if((((a6==1)&&((((((a20==1)&&((((input==6)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a5==1))&&(a3==5)))&&!(a15==1))&&!(a4==1))&&(a12==11))&&!(a0==1)))&&!(a27==1))){ + a22 = 1; + a15 = 1; + a0 = 1; + a4 = 1; + a3 = 6; + a6 = 0; + a18 = 0; + return 26; + } else if((((((!(a0==1)&&(((a6==1)&&((((input==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&(a4==1))&&!(a5==1)))&&(a20==1)))&&(a12==12))&&(a27==1))&&!(a15==1))&&(a3==7))){ + a18 = 0; + a27 = 0; + a22 = 1; + a3 = 8; + a0 = 1; + return 24; + } else if((((((a20==1)&&(((((a3==8)&&(((a15==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a12==12)))&&!(a22==1))&&(a5==1))&&(a4==1)))&&!(a6==1))&&(a0==1))&&(a27==1))){ + a3 = 4; + a4 = 0; + a12 = 10; + a18 = 0; + a22 = 1; + return -1; + } else if(((a22==1)&&(!(a0==1)&&((a15==1)&&(!(a4==1)&&(!(a5==1)&&((a12==10)&&(!(a27==1)&&(((a6==1)&&(((input==1)&&(a3==7))&&!(a18==1)))&&(a20==1)))))))))){ + a0 = 1; + a4 = 1; + a5 = 1; + a27 = 1; + a12 = 9; + a22 = 0; + a6 = 0; + return 24; + } else if((((a12==8)&&((a0==1)&&(((a27==1)&&((!(a5==1)&&((a22==1)&&((a4==1)&&((a20==1)&&(((a18==1)||!(a18==1))&&(input==2))))))&&(a3==4)))&&(a6==1))))&&(a15==1))){ + a12 = 9; + a18 = 1; + a3 = 6; + a4 = 0; + a22 = 0; + return 21; + } else if(((((!(a5==1)&&(((((((input==3)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a3==5))&&!(a6==1))&&(a27==1))&&(a0==1))&&(a4==1)))&&(a15==1))&&(a20==1))&&(a12==9))){ + a18 = 1; + a5 = 1; + a15 = 0; + a3 = 8; + a6 = 1; + a12 = 10; + a0 = 0; + a22 = 0; + return 26; + } else if(((!(a22==1)&&(((((a15==1)&&((a12==8)&&((a27==1)&&((a6==1)&&((((a18==1)||!(a18==1))&&(input==6))&&!(a0==1))))))&&(a4==1))&&(a5==1))&&(a20==1)))&&(a3==5))){ + a27 = 0; + a6 = 0; + a3 = 6; + a18 = 1; + a4 = 0; + a0 = 1; + a15 = 0; + a5 = 0; + a12 = 9; + return 26; + } else if(((a27==1)&&(!(a0==1)&&(!(a18==1)&&(((((a4==1)&&((a6==1)&&((((input==2)&&(a20==1))&&!(a22==1))&&(a12==9))))&&(a3==8))&&!(a15==1))&&(a5==1)))))){ + if((a27==1)){ + a12 = 10; + a6 = 0; + a5 = 0; + }else{ + a6 = 0; + a5 = 0; + a0 = 1; + a3 = 7; + a22 = 1; + a12 = 8; + } + return 26; + } else if((!(a5==1)&&((a27==1)&&((a4==1)&&(((a6==1)&&((a15==1)&&((((input==1)&&((((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))||((a3==7)&&((a22==1)&&(a18==1)))))&&(a20==1))&&(a0==1))))&&(a12==12)))))){ + a15 = 0; + a5 = 1; + a18 = 1; + a4 = 0; + a22 = 0; + a3 = 6; + a12 = 11; + a6 = 0; + return -1; + } else if((((a4==1)&&(((a12==8)&&(!(a6==1)&&(((a5==1)&&((((((a3==4)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==4)))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==1))&&!(a27==1)))&&!(a15==1))))&&!(a0==1)))&&(a20==1))){ + a0 = 1; + a3 = 5; + a6 = 1; + a5 = 0; + a12 = 12; + a18 = 1; + a22 = 1; + a27 = 1; + return -1; + } else if((((a0==1)&&((a15==1)&&(((a12==8)&&((((!(a18==1)&&(((a6==1)&&(input==1))&&(a3==5)))&&!(a22==1))&&(a4==1))&&(a20==1)))&&(a5==1))))&&!(a27==1))){ + a18 = 1; + a3 = 4; + a5 = 0; + return 24; + } else if((((a27==1)&&((((a15==1)&&(!(a6==1)&&((((((input==4)&&!(a0==1))&&(a20==1))&&(a18==1))&&(a4==1))&&!(a5==1))))&&(a3==4))&&(a12==9)))&&(a22==1))){ + a6 = 1; + a5 = 1; + a12 = 8; + a0 = 1; + return -1; + } else if(((!(a6==1)&&(!(a27==1)&&(!(a4==1)&&(!(a5==1)&&((a3==7)&&(!(a0==1)&&((!(a22==1)&&((a12==9)&&((input==4)&&!(a15==1))))&&(a20==1))))))))&&!(a18==1))){ + a3 = 8; + a27 = 1; + a15 = 1; + a0 = 1; + a22 = 1; + a12 = 8; + a5 = 1; + a4 = 1; + return -1; + } else if((!(a5==1)&&((((!(a0==1)&&((a12==11)&&((a4==1)&&((((((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a22==1)&&!(a18==1))))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==3))&&(a6==1)))))&&(a15==1))&&(a20==1))&&(a27==1)))){ + a0 = 1; + a5 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((a12==9)&&((((a20==1)&&(!(a15==1)&&(!(a5==1)&&((a3==8)&&(((!(a27==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a4==1))&&(a22==1))))))&&!(a0==1))&&!(a6==1)))){ + if((a20==1)){ + a18 = 1; + a12 = 8; + a6 = 1; + a27 = 1; + a15 = 1; + a5 = 1; + a4 = 0; + a0 = 1; + }else{ + a3 = 6; + a18 = 1; + a5 = 1; + a0 = 1; + a12 = 10; + a15 = 1; + a6 = 1; + } + return 21; + } else if(((!(a22==1)&&((a20==1)&&((a5==1)&&((a15==1)&&(!(a6==1)&&((((a27==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a3==6)))&&(a12==11))&&(a0==1)))))))&&(a4==1))){ + a18 = 0; + a15 = 0; + a22 = 1; + a0 = 0; + a5 = 0; + return -1; + } else if((((a5==1)&&(((a3==6)&&((!(a22==1)&&((((a12==12)&&((a15==1)&&((input==1)&&!(a27==1))))&&!(a6==1))&&(a20==1)))&&!(a18==1)))&&!(a4==1)))&&(a0==1))){ + a15 = 0; + a4 = 1; + a6 = 1; + a18 = 1; + a12 = 9; + a3 = 5; + return -1; + } else if(((a27==1)&&((a5==1)&&((!(a15==1)&&((!(a6==1)&&((a20==1)&&((a18==1)&&(!(a4==1)&&((a3==4)&&((a0==1)&&(input==2)))))))&&!(a22==1)))&&(a12==12))))){ + a4 = 1; + a22 = 1; + a6 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if(((((((((a15==1)&&((((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a6==1))&&(a12==12)))&&(a20==1))&&!(a27==1))&&(a4==1))&&(a0==1))&&(a3==8))&&(a5==1))){ + a18 = 0; + a27 = 1; + a6 = 0; + a22 = 0; + a4 = 0; + a3 = 7; + a15 = 0; + return -1; + } else if(((((a4==1)&&((a20==1)&&(!(a0==1)&&(!(a15==1)&&(((a3==5)&&(((input==5)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a6==1)))&&(a5==1))))))&&(a12==8))&&!(a27==1))){ + a18 = 0; + a4 = 0; + a6 = 0; + a12 = 10; + a22 = 0; + a3 = 6; + return -1; + } else if(((a5==1)&&((a4==1)&&((a22==1)&&((!(a15==1)&&((a6==1)&&(((a3==8)&&((((a27==1)&&(input==5))&&(a18==1))&&!(a0==1)))&&(a12==9))))&&(a20==1)))))){ + a3 = 4; + a0 = 1; + a12 = 8; + a6 = 0; + a27 = 0; + return -1; + } else if(((((((a20==1)&&((((a6==1)&&(((a15==1)&&((input==5)&&(a3==7)))&&(a5==1)))&&!(a4==1))&&(a12==11)))&&(a0==1))&&(a27==1))&&(a18==1))&&!(a22==1))){ + a22 = 1; + a12 = 8; + a4 = 1; + a3 = 4; + return -1; + } else if(((((a15==1)&&((a3==4)&&((a20==1)&&((a4==1)&&(((a12==8)&&(!(a6==1)&&((input==3)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))))&&!(a0==1))))))&&!(a5==1))&&!(a27==1))){ + a0 = 1; + a22 = 0; + a18 = 0; + a4 = 0; + a27 = 1; + a3 = 8; + a5 = 1; + a6 = 1; + return 24; + } else if((((!(a27==1)&&((a12==12)&&((a6==1)&&((((a0==1)&&((a20==1)&&(((a5==1)&&(input==1))&&!(a15==1))))&&(a3==5))&&(a22==1)))))&&!(a18==1))&&!(a4==1))){ + a5 = 0; + a15 = 1; + a4 = 1; + a12 = 9; + a3 = 6; + a22 = 0; + return -1; + } else if((!(a27==1)&&((a20==1)&&(((((((a4==1)&&(((((a18==1)||!(a18==1))&&(input==1))&&(a5==1))&&(a3==6)))&&!(a15==1))&&(a0==1))&&!(a6==1))&&!(a22==1))&&(a12==12))))){ + a4 = 0; + a18 = 1; + a3 = 8; + a12 = 11; + a27 = 1; + return 21; + } else if((!(a27==1)&&(((((((a5==1)&&(((a20==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==4)))&&(a4==1)))&&!(a0==1))&&(a12==8))&&!(a15==1))&&(a3==7))&&!(a6==1)))){ + if((a27==1)){ + a3 = 8; + a6 = 1; + a12 = 10; + a4 = 0; + a27 = 1; + a15 = 1; + a0 = 1; + a22 = 1; + a18 = 0; + }else{ + a22 = 1; + a6 = 1; + a3 = 5; + a0 = 1; + a18 = 1; + a27 = 1; + a15 = 1; + a4 = 0; + } + return -1; + } else if((!(a0==1)&&(!(a6==1)&&(!(a5==1)&&((a12==12)&&((a27==1)&&((a20==1)&&(!(a4==1)&&(((((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==6))&&(a15==1)))))))))){ + a18 = 1; + a22 = 1; + a3 = 8; + a0 = 1; + a4 = 1; + a12 = 10; + return 21; + } else if(((a6==1)&&((a5==1)&&((((((a27==1)&&((a4==1)&&((a22==1)&&(((a3==6)&&(input==6))&&!(a18==1)))))&&!(a15==1))&&(a12==9))&&(a20==1))&&!(a0==1))))){ + a3 = 7; + a18 = 1; + a0 = 1; + a12 = 10; + return 26; + } else if((((a12==9)&&((a27==1)&&((!(a6==1)&&(((a4==1)&&(!(a0==1)&&((a20==1)&&((input==2)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))&&(a5==1)))&&(a3==8))))&&!(a15==1))){ + a6 = 1; + a15 = 1; + a0 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if((((a27==1)&&(((a12==12)&&((a4==1)&&(((a20==1)&&((input==1)&&(((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))||(((a6==1)&&((a3==8)&&((a18==1)&&!(a22==1))))||((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))))))&&(a5==1))))&&!(a0==1)))&&(a15==1))){ + a4 = 0; + a5 = 0; + a0 = 1; + a18 = 1; + a12 = 10; + a6 = 0; + a3 = 4; + a22 = 0; + return 26; + } else if((((a0==1)&&(((!(a15==1)&&(((a12==10)&&((a20==1)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==5))))&&(a6==1)))&&(a5==1))&&(a4==1)))&&!(a27==1))){ + if((a15==1)){ + a12 = 9; + a6 = 0; + a15 = 1; + a22 = 1; + a18 = 0; + a5 = 0; + a3 = 8; + a27 = 1; + a0 = 0; + }else{ + a4 = 0; + a5 = 0; + a18 = 1; + a22 = 1; + a3 = 7; + a27 = 1; + } + return -1; + } else if((!(a0==1)&&((a5==1)&&((!(a15==1)&&((a4==1)&&((a6==1)&&((((input==6)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6))))&&(a20==1))&&(a27==1)))))&&(a12==8))))){ + a3 = 7; + a0 = 1; + a22 = 0; + a18 = 0; + a4 = 0; + a5 = 0; + a12 = 10; + return 26; + } else if((!(a0==1)&&(((!(a15==1)&&((!(a27==1)&&(((a4==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==3))&&(a3==7)))&&(a12==10)))&&(a6==1)))&&!(a5==1))&&(a20==1)))){ + a5 = 1; + a12 = 8; + a3 = 6; + a15 = 1; + a0 = 1; + a27 = 1; + a22 = 1; + a18 = 1; + return 24; + } else if((((a3==6)&&(((!(a4==1)&&((a20==1)&&((a12==11)&&(((!(a22==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a6==1))&&(a27==1)))))&&(a5==1))&&!(a0==1)))&&!(a15==1))){ + a18 = 1; + a15 = 1; + a12 = 8; + a4 = 1; + a0 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if((((a3==6)&&((a12==8)&&((a6==1)&&((((a4==1)&&(!(a0==1)&&(((input==2)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a27==1))))&&(a15==1))&&(a5==1)))))&&(a20==1))){ + if((a5==1)){ + a27 = 1; + a18 = 1; + a22 = 1; + a0 = 1; + }else{ + a3 = 7; + a27 = 1; + a22 = 1; + a6 = 0; + a18 = 1; + a0 = 1; + } + return -1; + } else if((((((((((input==2)&&(((((a22==1)&&!(a18==1))&&(a3==4))&&!(a6==1))||(((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1)))))&&(a20==1))&&!(a27==1))&&(a0==1))&&!(a5==1))&&(a12==12))&&(a15==1))&&(a4==1))){ + a12 = 11; + a6 = 1; + a18 = 1; + a22 = 1; + a3 = 5; + a4 = 0; + return -1; + } else if(((a6==1)&&(((!(a27==1)&&(!(a15==1)&&(!(a5==1)&&(((a12==10)&&(((((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==7)))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==2)))&&(a4==1)))))&&(a20==1))&&(a0==1)))){ + a5 = 1; + a12 = 9; + a3 = 8; + a6 = 0; + a22 = 1; + a18 = 1; + return -1; + } else if(((((((((a27==1)&&((((a12==8)&&((a3==4)&&(input==1)))&&!(a15==1))&&!(a5==1)))&&!(a0==1))&&!(a6==1))&&!(a18==1))&&!(a22==1))&&(a20==1))&&(a4==1))){ + a3 = 7; + a0 = 1; + a22 = 1; + a12 = 12; + a5 = 1; + a4 = 0; + return -1; + } else if((((a15==1)&&(!(a27==1)&&(((a20==1)&&((!(a4==1)&&(!(a0==1)&&((input==4)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1)))))))&&!(a5==1)))&&!(a6==1))))&&(a12==11))){ + if((a20==1)){ + a18 = 0; + a6 = 1; + a5 = 1; + a12 = 8; + a27 = 1; + a0 = 1; + a22 = 0; + a3 = 8; + }else{ + a3 = 4; + a15 = 0; + a22 = 1; + a5 = 1; + a18 = 0; + } + return -1; + } else if((((((((a0==1)&&((((a5==1)&&((!(a18==1)&&(input==5))&&(a4==1)))&&(a20==1))&&(a22==1)))&&!(a6==1))&&(a12==10))&&(a3==7))&&(a27==1))&&!(a15==1))){ + a18 = 1; + a6 = 1; + a22 = 0; + a3 = 4; + return -1; + } else if(((a0==1)&&(((a5==1)&&(((((input==3)&&(((!(a6==1)&&(((a4==1)&&(!(a22==1)&&!(a18==1)))&&(a3==8)))||(((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1))))&&(a6==1)))||(((a3==4)&&(!(a4==1)&&(!(a18==1)&&(a22==1))))&&(a6==1))))&&(a12==9))&&!(a15==1))&&(a20==1)))&&(a27==1)))){ + if((a18==1)){ + a6 = 0; + a3 = 4; + a22 = 1; + a0 = 0; + a12 = 8; + a4 = 1; + a18 = 0; + }else{ + a3 = 4; + a18 = 1; + a15 = 1; + a6 = 0; + a27 = 0; + a12 = 8; + a4 = 1; + a22 = 1; + } + return 24; + } else if(((a18==1)&&(!(a15==1)&&(((a3==4)&&((a12==11)&&((a6==1)&&((a20==1)&&(!(a5==1)&&((a0==1)&&(((a27==1)&&(input==1))&&!(a22==1))))))))&&!(a4==1))))){ + a4 = 1; + a3 = 8; + a22 = 1; + a12 = 12; + a18 = 0; + a27 = 0; + return -1; + } else if((((a15==1)&&((a0==1)&&(((!(a4==1)&&(!(a5==1)&&(((input==5)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1)))))&&(a20==1))))&&(a12==8))&&(a27==1))))&&(a6==1))){ + a3 = 4; + a22 = 1; + a18 = 1; + a5 = 1; + a4 = 1; + return -1; + } else if(((a3==6)&&(!(a27==1)&&((a20==1)&&(((a6==1)&&(!(a18==1)&&((((a12==10)&&(((input==3)&&!(a4==1))&&(a0==1)))&&!(a5==1))&&!(a15==1))))&&!(a22==1)))))){ + a5 = 1; + a4 = 1; + a18 = 1; + a12 = 8; + a15 = 1; + a22 = 1; + a3 = 4; + a27 = 1; + return -1; + } else if((!(a18==1)&&((((a20==1)&&(((a3==5)&&((a5==1)&&((!(a0==1)&&(!(a15==1)&&((input==6)&&(a22==1))))&&(a6==1))))&&!(a27==1)))&&(a4==1))&&(a12==10)))){ + if((a12==12)){ + a4 = 0; + a27 = 1; + a18 = 1; + a0 = 1; + }else{ + a27 = 1; + a18 = 1; + a12 = 8; + a15 = 1; + a0 = 1; + a6 = 0; + a3 = 7; + } + return 24; + } else if((!(a18==1)&&(((a5==1)&&((((a3==8)&&(((a22==1)&&((((input==3)&&!(a0==1))&&!(a6==1))&&(a12==11)))&&!(a15==1)))&&(a4==1))&&(a20==1)))&&(a27==1)))){ + a12 = 10; + a0 = 1; + a18 = 1; + a3 = 4; + a22 = 0; + a6 = 1; + return 26; + } else if((((a15==1)&&(!(a27==1)&&((((a20==1)&&(((((input==5)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&!(a6==1))&&(a5==1))&&!(a0==1)))&&(a3==4))&&(a4==1))))&&(a12==8))){ + a5 = 0; + a0 = 1; + a12 = 10; + a22 = 1; + a27 = 1; + a18 = 0; + return -1; + } else if(((((a4==1)&&(!(a6==1)&&(((a12==11)&&((a5==1)&&((a27==1)&&((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==6))&&(a3==5)))))&&!(a0==1))))&&(a20==1))&&(a15==1))){ + if((a6==1)){ + a15 = 0; + a4 = 0; + a18 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + }else{ + a3 = 4; + a15 = 0; + a27 = 0; + a0 = 1; + a22 = 0; + a12 = 10; + a5 = 0; + a18 = 1; + a6 = 1; + } + return 21; + } else if(((((a12==11)&&(((a3==7)&&((!(a5==1)&&((((input==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&(a4==1))&&!(a27==1)))&&!(a0==1)))&&!(a15==1)))&&(a20==1))&&(a6==1))){ + a27 = 1; + a0 = 1; + a18 = 1; + a5 = 1; + a15 = 1; + a4 = 0; + a22 = 0; + a3 = 6; + a12 = 8; + return 21; + } else if(((a27==1)&&(((a20==1)&&((input==1)&&(((!(a6==1)&&((((!(a15==1)&&(!(a5==1)&&(!(a22==1)&&(a18==1))))&&(a12==9))&&!(a4==1))&&(a3==8)))||(((!(a4==1)&&((a12==9)&&(!(a15==1)&&(!(a5==1)&&(!(a22==1)&&!(a18==1))))))&&(a3==8))&&!(a6==1)))||((a6==1)&&((a3==4)&&(((a12==10)&&(((a5==1)&&((a22==1)&&(a18==1)))&&(a15==1)))&&(a4==1)))))))&&(a0==1)))){ + a18 = 0; + a4 = 0; + a22 = 1; + a15 = 0; + a3 = 4; + a5 = 1; + a6 = 0; + a12 = 9; + a27 = 0; + return 26; + } else if(((!(a22==1)&&((a4==1)&&(!(a18==1)&&((a20==1)&&((!(a0==1)&&((a3==7)&&((((input==1)&&!(a5==1))&&(a15==1))&&(a12==10))))&&!(a6==1))))))&&(a27==1))){ + a0 = 1; + a22 = 1; + a12 = 12; + a3 = 6; + return 21; + } else if((((a0==1)&&(((a12==11)&&(((((a20==1)&&((a27==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a15==1))))&&!(a6==1))&&(a5==1))&&(a3==5)))&&(a22==1)))&&(a4==1))){ + a6 = 1; + a3 = 7; + a18 = 1; + a22 = 0; + return 21; + } else if((((!(a15==1)&&(!(a6==1)&&(((a20==1)&&((a0==1)&&(((a4==1)&&((input==4)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a27==1))))&&(a12==8))))&&(a5==1))&&(a3==4))){ + a6 = 1; + a15 = 1; + a27 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((a5==1)&&((!(a22==1)&&(((((!(a4==1)&&(((a27==1)&&((input==4)&&((a18==1)||!(a18==1))))&&!(a0==1)))&&(a12==9))&&(a3==8))&&(a20==1))&&!(a15==1)))&&(a6==1)))){ + a12 = 10; + a15 = 1; + a18 = 0; + a3 = 4; + a0 = 1; + a5 = 0; + a6 = 0; + return -1; + } else if(((a27==1)&&((a20==1)&&((a12==8)&&((a15==1)&&((((a6==1)&&(!(a4==1)&&((input==2)&&(((!(a18==1)&&(a22==1))&&(a3==5))||(((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))))))&&(a5==1))&&!(a0==1))))))){ + a0 = 1; + a5 = 0; + a22 = 0; + a12 = 11; + a18 = 0; + a15 = 0; + a3 = 6; + return 26; + } else if((((a18==1)&&(!(a27==1)&&(((((a12==9)&&((a22==1)&&(((a20==1)&&((input==2)&&!(a15==1)))&&!(a5==1))))&&(a4==1))&&!(a0==1))&&(a6==1))))&&(a3==6))){ + a12 = 8; + a5 = 1; + a15 = 1; + a0 = 1; + a18 = 0; + a3 = 4; + a22 = 0; + a27 = 1; + a6 = 0; + return -1; + } else if(((a12==10)&&(!(a27==1)&&((a20==1)&&(((!(a15==1)&&((a5==1)&&((a0==1)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==3)))))&&!(a4==1))&&(a6==1)))))){ + a12 = 12; + a22 = 0; + a18 = 1; + a3 = 8; + a5 = 0; + return 21; + } else if(((((((a0==1)&&((a20==1)&&(((((((a22==1)&&!(a18==1))&&(a3==8))||(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1)))))&&(input==1))&&(a12==12))&&!(a15==1))))&&!(a5==1))&&!(a6==1))&&!(a27==1))&&(a4==1))){ + a12 = 8; + a22 = 1; + a6 = 1; + a5 = 1; + a3 = 4; + a18 = 1; + a27 = 1; + a15 = 1; + return -1; + } else if((((a20==1)&&((((a27==1)&&(!(a15==1)&&((!(a5==1)&&((a0==1)&&((a18==1)&&(!(a22==1)&&(input==4)))))&&(a3==7))))&&(a12==10))&&(a6==1)))&&!(a4==1))){ + a3 = 6; + a22 = 1; + a4 = 1; + a15 = 1; + a6 = 0; + return -1; + } else if(((!(a15==1)&&(!(a22==1)&&((a6==1)&&(!(a0==1)&&((a3==5)&&(((a20==1)&&(((((a18==1)||!(a18==1))&&(input==4))&&(a12==11))&&(a27==1)))&&(a5==1)))))))&&(a4==1))){ + a22 = 1; + a15 = 1; + a18 = 0; + a0 = 1; + a3 = 4; + return 26; + } else if(((a5==1)&&((a15==1)&&(((((!(a4==1)&&((a12==10)&&((a3==8)&&(!(a27==1)&&((input==1)&&(a20==1))))))&&!(a18==1))&&!(a0==1))&&(a6==1))&&!(a22==1))))){ + a6 = 0; + a15 = 0; + a22 = 1; + a3 = 7; + return -1; + } else if(((a27==1)&&(!(a6==1)&&(((a20==1)&&((a0==1)&&(!(a4==1)&&((a15==1)&&(((((!(a18==1)&&(a22==1))&&(a3==5))||(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5))))&&(input==4))&&!(a5==1))))))&&(a12==11))))){ + a22 = 1; + a18 = 1; + a5 = 1; + a3 = 4; + a12 = 8; + a6 = 1; + a4 = 1; + return -1; + } else if(((a12==8)&&(!(a5==1)&&(((a0==1)&&((a3==4)&&((((a20==1)&&(((((a18==1)||!(a18==1))&&(input==1))&&(a15==1))&&(a22==1)))&&(a6==1))&&!(a27==1))))&&(a4==1))))){ + a18 = 1; + a27 = 1; + a15 = 0; + a3 = 8; + a12 = 12; + return 24; + } else if(((a12==9)&&((a20==1)&&((a5==1)&&(((a15==1)&&((a3==7)&&(!(a4==1)&&((a6==1)&&((!(a27==1)&&(!(a18==1)&&(input==6)))&&(a0==1))))))&&!(a22==1)))))){ + a27 = 1; + a3 = 8; + a12 = 12; + a15 = 0; + a22 = 1; + a4 = 1; + return 21; + } else if((!(a27==1)&&((a20==1)&&(((a4==1)&&((((((input==1)&&(((a3==6)&&((a22==1)&&(a18==1)))||(((a3==5)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==5)))))&&(a6==1))&&!(a15==1))&&(a0==1))&&(a12==8)))&&!(a5==1))))){ + a3 = 5; + a5 = 1; + a15 = 1; + a18 = 1; + a22 = 1; + a12 = 9; + return 21; + } else if(((a20==1)&&((a0==1)&&((a6==1)&&((((!(a4==1)&&((a15==1)&&((((((a18==1)&&!(a22==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4)))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==3))))&&(a12==11))&&(a27==1))&&!(a5==1)))))){ + a3 = 8; + a18 = 1; + a15 = 0; + a6 = 0; + a22 = 1; + a27 = 0; + a5 = 1; + return 21; + } else if(((a3==5)&&((a12==9)&&(!(a5==1)&&((((a20==1)&&(((a6==1)&&((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==4))&&!(a0==1)))&&(a15==1)))&&!(a4==1))&&!(a27==1)))))){ + a22 = 0; + a27 = 1; + a15 = 0; + a12 = 10; + a18 = 1; + return -1; + } else if(((a20==1)&&((a0==1)&&((a6==1)&&((((a15==1)&&((a27==1)&&((((input==5)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a12==12))&&(a3==6))))&&!(a4==1))&&!(a5==1)))))){ + if((a3==5)){ + a4 = 1; + a18 = 1; + a5 = 1; + a12 = 9; + a3 = 8; + a15 = 0; + a0 = 0; + a22 = 1; + }else{ + a15 = 0; + a18 = 1; + a12 = 9; + a6 = 0; + a27 = 0; + a5 = 1; + a22 = 0; + a3 = 8; + } + return 21; + } else if(((((a15==1)&&((!(a0==1)&&(((a27==1)&&(!(a5==1)&&(((a20==1)&&((input==4)&&(a3==5)))&&(a22==1))))&&(a18==1)))&&(a4==1)))&&!(a6==1))&&(a12==8))){ + a3 = 4; + a5 = 1; + a0 = 1; + a6 = 1; + return -1; + } else if(((((!(a15==1)&&((((input==3)&&(((a6==1)&&((a3==4)&&(!(a4==1)&&((a22==1)&&!(a18==1)))))||((((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1))))&&!(a6==1))||(((((a22==1)&&(a18==1))&&!(a4==1))&&(a3==4))&&(a6==1)))))&&(a12==9))&&!(a5==1)))&&(a27==1))&&(a20==1))&&(a0==1))){ + a18 = 0; + a4 = 0; + a6 = 0; + a22 = 1; + a3 = 5; + a15 = 1; + a12 = 8; + a5 = 1; + return 24; + } else if((!(a0==1)&&(!(a5==1)&&((a6==1)&&((((((a3==4)&&((a12==8)&&((input==2)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))))&&(a20==1))&&(a4==1))&&!(a27==1))&&!(a15==1)))))){ + a3 = 7; + a0 = 1; + a22 = 0; + a18 = 0; + a5 = 1; + a15 = 1; + a27 = 1; + return 26; + } else if(((a12==8)&&(!(a0==1)&&(((a4==1)&&(!(a27==1)&&((a20==1)&&(((a6==1)&&((input==2)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))||((a3==7)&&((a22==1)&&!(a18==1))))))&&!(a5==1)))))&&(a15==1))))){ + if((a15==1)){ + a5 = 1; + a18 = 0; + a3 = 4; + a12 = 12; + a22 = 1; + }else{ + a0 = 1; + a22 = 1; + a3 = 8; + a27 = 1; + a18 = 1; + a5 = 1; + } + return 21; + } else if(((a0==1)&&((a3==4)&&(((!(a15==1)&&(((a27==1)&&(!(a18==1)&&(!(a4==1)&&((a12==10)&&((input==3)&&(a20==1))))))&&!(a5==1)))&&!(a22==1))&&!(a6==1))))){ + a18 = 1; + a3 = 8; + a5 = 1; + return -1; + } else if((((a5==1)&&(((((((a27==1)&&(((((!(a22==1)&&(a18==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5)))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==6)))&&(a12==10))&&!(a15==1))&&(a20==1))&&!(a0==1))&&(a4==1)))&&(a6==1))){ + a12 = 11; + a18 = 1; + a15 = 1; + a22 = 0; + a0 = 1; + a3 = 5; + a6 = 0; + return 21; + } else if(((a20==1)&&(((((!(a4==1)&&(((((a0==1)&&((a22==1)&&(input==4)))&&(a18==1))&&(a12==11))&&!(a5==1)))&&!(a27==1))&&(a3==8))&&!(a6==1))&&(a15==1)))){ + a5 = 1; + a4 = 1; + a27 = 1; + a22 = 0; + a3 = 6; + a18 = 0; + return 21; + } else if(((a12==11)&&(!(a0==1)&&((((((((input==3)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8)))||(((a22==1)&&!(a18==1))&&(a3==8))))&&(a15==1))&&(a20==1))&&(a27==1))&&!(a4==1))&&!(a5==1))&&!(a6==1))))){ + a0 = 1; + a22 = 0; + a3 = 4; + a5 = 1; + a12 = 10; + a18 = 1; + return -1; + } else if(((((a4==1)&&((((((a5==1)&&((a15==1)&&(((input==2)&&(a12==11))&&(a20==1))))&&(a6==1))&&(a0==1))&&!(a18==1))&&(a3==8)))&&!(a22==1))&&!(a27==1))){ + a0 = 0; + a18 = 1; + a15 = 0; + a4 = 0; + a3 = 7; + a22 = 1; + a27 = 1; + a5 = 0; + return -1; + } else if(((a0==1)&&((!(a5==1)&&(((a20==1)&&(((a3==5)&&(!(a6==1)&&(!(a15==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==4)))))&&(a12==9)))&&(a4==1)))&&!(a27==1)))){ + a3 = 6; + a6 = 1; + a4 = 0; + a22 = 0; + a18 = 0; + a5 = 1; + return -1; + } else if(((!(a4==1)&&(((!(a0==1)&&(!(a15==1)&&((a27==1)&&((a20==1)&&((input==1)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1)))))))))&&(a12==8))&&!(a5==1)))&&(a6==1))){ + a15 = 1; + a0 = 1; + a5 = 1; + a4 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + return -1; + } else if(((((!(a18==1)&&((a3==5)&&((((a5==1)&&((((input==3)&&(a4==1))&&(a15==1))&&!(a27==1)))&&(a12==10))&&!(a0==1))))&&(a20==1))&&(a22==1))&&!(a6==1))){ + a3 = 7; + a4 = 0; + a15 = 0; + a27 = 1; + a18 = 1; + a12 = 8; + return 21; + } else if(((((((!(a22==1)&&(((a5==1)&&(!(a4==1)&&(((a0==1)&&(input==3))&&(a6==1))))&&(a12==11)))&&(a18==1))&&!(a27==1))&&(a20==1))&&!(a15==1))&&(a3==7))){ + a15 = 1; + a5 = 0; + a12 = 12; + a4 = 1; + a27 = 1; + a22 = 1; + return 24; + } else if(((a27==1)&&((a20==1)&&(((((a4==1)&&(!(a6==1)&&((a15==1)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==3)))))&&(a12==8))&&!(a5==1))&&!(a0==1))))){ + a12 = 11; + a18 = 0; + a22 = 1; + a3 = 5; + a4 = 0; + a0 = 1; + a6 = 1; + return -1; + } else if(((((a12==12)&&(((a20==1)&&(!(a4==1)&&(!(a15==1)&&((a0==1)&&(((((a22==1)&&(a18==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==4))))&&(input==2))))))&&!(a27==1)))&&(a5==1))&&(a6==1))){ + a4 = 1; + a18 = 1; + a12 = 11; + a3 = 7; + a22 = 1; + a15 = 1; + a27 = 1; + return 26; + } else if((((a6==1)&&(((((a0==1)&&((((a4==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a5==1)))&&(a15==1))&&!(a22==1)))&&!(a27==1))&&(a12==9))&&(a3==8)))&&(a20==1))){ + a12 = 10; + a4 = 0; + a27 = 1; + a6 = 0; + a18 = 1; + return 26; + } else if((!(a27==1)&&(((!(a0==1)&&((a5==1)&&(!(a18==1)&&((a3==4)&&((a20==1)&&((((a15==1)&&(input==4))&&!(a4==1))&&(a12==8)))))))&&(a6==1))&&(a22==1)))){ + if((a3==4)){ + a12 = 10; + a22 = 0; + a3 = 5; + }else{ + a22 = 0; + a27 = 1; + a18 = 1; + a0 = 1; + } + return 21; + } else if((((a27==1)&&((a0==1)&&((((((a6==1)&&((a15==1)&&((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&(a4==1))&&(a12==12))&&(a3==8))&&(a20==1))))&&!(a5==1))){ + a22 = 1; + a18 = 0; + a12 = 10; + a3 = 5; + return -1; + } else if(((((a27==1)&&(!(a15==1)&&((a0==1)&&((a12==11)&&(!(a4==1)&&(((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==1))&&(a5==1))&&(a6==1)))))))&&(a3==7))&&(a20==1))){ + a18 = 1; + a4 = 1; + a22 = 1; + a12 = 10; + a3 = 8; + return 26; + } else if(((((a0==1)&&((a3==7)&&((!(a27==1)&&(((a20==1)&&((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==6))&&(a4==1)))&&(a12==12)))&&(a6==1))))&&!(a15==1))&&(a5==1))){ + a22 = 0; + a6 = 0; + a18 = 0; + a5 = 0; + a12 = 10; + a4 = 0; + a15 = 1; + return -1; + } return calculate_output14(input); + } + + int calculate_output14(int input) { + if((((!(a6==1)&&(!(a4==1)&&(!(a15==1)&&((a3==8)&&(((((input==5)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&(a20==1))&&(a12==8))&&(a0==1))))))&&(a5==1))&&(a27==1))){ + a3 = 7; + a18 = 0; + a4 = 1; + a15 = 1; + a12 = 9; + a22 = 1; + a5 = 0; + return 26; + } else if(((((!(a0==1)&&((!(a15==1)&&((a4==1)&&((!(a22==1)&&((a3==7)&&(!(a5==1)&&(input==5))))&&(a20==1))))&&!(a18==1)))&&!(a27==1))&&(a12==9))&&!(a6==1))){ + a5 = 1; + a18 = 1; + a27 = 1; + a12 = 8; + a3 = 8; + a22 = 1; + return 26; + } else if((!(a5==1)&&(((a15==1)&&(((((((input==1)&&((((a18==1)&&(a22==1))&&(a3==6))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))))&&(a20==1))&&(a6==1))&&(a4==1))&&(a0==1))&&(a12==10)))&&(a27==1)))){ + a12 = 11; + a6 = 0; + a3 = 6; + a5 = 1; + a18 = 0; + a22 = 0; + return 21; + } else if(((a12==9)&&(!(a5==1)&&((a3==8)&&((a4==1)&&((((a20==1)&&((a27==1)&&(!(a0==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==3)))))&&!(a6==1))&&(a15==1))))))){ + a12 = 10; + a3 = 6; + a18 = 0; + a27 = 0; + a22 = 0; + a0 = 1; + return 21; + } else if((!(a27==1)&&(!(a5==1)&&(((a6==1)&&((a12==9)&&((a20==1)&&((((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==3))&&!(a0==1))&&(a15==1))&&(a3==7)))))&&(a4==1))))){ + if((a4==1)){ + a12 = 8; + a18 = 0; + a22 = 1; + a0 = 1; + a4 = 0; + a27 = 1; + a5 = 1; + }else{ + a0 = 1; + a5 = 1; + a22 = 1; + a3 = 4; + a27 = 1; + a12 = 8; + a4 = 0; + a18 = 0; + } + return 21; + } else if(((((a12==10)&&(((a3==7)&&((!(a4==1)&&((!(a6==1)&&((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a15==1)))&&(a5==1)))&&(a20==1)))&&(a0==1))&&(a27==1))){ + if((a18==1)){ + a0 = 0; + a18 = 1; + a22 = 0; + a3 = 8; + }else{ + a18 = 0; + a12 = 12; + a22 = 0; + a6 = 1; + a15 = 0; + a3 = 6; + a4 = 1; + a0 = 0; + } + return 26; + } else if((((a3==8)&&(((!(a6==1)&&((a4==1)&&((a5==1)&&((a0==1)&&((a20==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==4)))))))&&!(a27==1))&&(a12==10)))&&!(a15==1))){ + a12 = 8; + a18 = 1; + a3 = 4; + a27 = 1; + a22 = 1; + a6 = 1; + a15 = 1; + return -1; + } else if(((((((a12==8)&&(!(a0==1)&&((a15==1)&&((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==2))&&(a20==1))&&!(a5==1)))))&&(a4==1))&&(a3==5))&&!(a6==1))&&!(a27==1))){ + a18 = 1; + a0 = 1; + a3 = 4; + a22 = 1; + a27 = 1; + a4 = 0; + a5 = 1; + return -1; + } else if(((!(a4==1)&&(!(a5==1)&&((a20==1)&&(((a12==8)&&(!(a15==1)&&(!(a27==1)&&((input==3)&&((((a3==5)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==5)))||((a3==6)&&((a18==1)&&(a22==1))))))))&&(a6==1)))))&&(a0==1))){ + a27 = 1; + a12 = 12; + a6 = 0; + a4 = 1; + a3 = 4; + a18 = 0; + a15 = 1; + a22 = 1; + return 21; + } else if(((!(a18==1)&&(!(a6==1)&&((a4==1)&&((a12==9)&&((((a0==1)&&((((input==1)&&(a5==1))&&!(a22==1))&&(a27==1)))&&!(a15==1))&&(a20==1))))))&&(a3==7))){ + if((a6==1)){ + a22 = 1; + a0 = 0; + a5 = 0; + a3 = 5; + a12 = 11; + }else{ + a6 = 1; + a15 = 1; + a18 = 1; + a3 = 5; + a5 = 0; + a12 = 11; + } + return 24; + } else if(((((a20==1)&&(((a4==1)&&(((((a3==7)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==3)))&&(a6==1))&&!(a15==1))&&(a5==1)))&&(a12==8)))&&(a0==1))&&(a27==1))){ + a22 = 0; + a5 = 0; + a15 = 1; + a18 = 0; + a4 = 0; + a3 = 5; + return 26; + } else if(((!(a0==1)&&((a27==1)&&((((a3==6)&&((a6==1)&&(((a15==1)&&((a4==1)&&((input==6)&&(a5==1))))&&(a20==1))))&&(a12==9))&&(a22==1))))&&(a18==1))){ + a4 = 0; + a0 = 1; + a3 = 7; + a12 = 11; + a22 = 0; + a5 = 0; + a6 = 0; + return -1; + } else if(((((a20==1)&&((!(a4==1)&&(!(a22==1)&&((a15==1)&&((a0==1)&&((a3==5)&&((a5==1)&&(!(a18==1)&&(input==1))))))))&&(a6==1)))&&!(a27==1))&&(a12==12))){ + a12 = 8; + a4 = 1; + a27 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if((((a0==1)&&(((a22==1)&&((a15==1)&&((((a4==1)&&((a20==1)&&(!(a5==1)&&(((a18==1)||!(a18==1))&&(input==3)))))&&(a12==9))&&(a6==1))))&&(a3==4)))&&!(a27==1))){ + a5 = 1; + a18 = 0; + a15 = 0; + a3 = 5; + a4 = 0; + return 26; + } else if((((((a0==1)&&((!(a6==1)&&(((((((!(a18==1)&&!(a22==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))||(((a22==1)&&!(a18==1))&&(a3==7)))&&(input==2))&&(a12==9))&&!(a5==1)))&&(a20==1)))&&!(a15==1))&&(a27==1))&&(a4==1))){ + a22 = 0; + a6 = 1; + a15 = 1; + a27 = 0; + a5 = 1; + a3 = 8; + a18 = 1; + return 21; + } else if(((((!(a5==1)&&((a12==11)&&((((((((a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==7))))&&(input==5))&&!(a6==1))&&(a20==1))&&(a4==1))))&&(a0==1))&&(a27==1))&&(a15==1))){ + a3 = 4; + a12 = 8; + a22 = 1; + a5 = 1; + a18 = 1; + a6 = 1; + return -1; + } else if(((a0==1)&&(!(a15==1)&&((((a5==1)&&((a12==12)&&(!(a6==1)&&((a3==6)&&((a27==1)&&((input==3)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))))))&&!(a4==1))&&(a20==1))))){ + a22 = 1; + a6 = 1; + a3 = 4; + a12 = 8; + a15 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if((((a20==1)&&((a12==11)&&((((a15==1)&&(((((((a18==1)||!(a18==1))&&(input==4))&&!(a5==1))&&(a3==7))&&!(a6==1))&&(a27==1)))&&!(a22==1))&&(a0==1))))&&!(a4==1))){ + a12 = 9; + a6 = 1; + a18 = 1; + a15 = 0; + a3 = 6; + a0 = 0; + return 26; + } else if((((((a20==1)&&(((a4==1)&&((((!(a6==1)&&((a0==1)&&(input==3)))&&(a5==1))&&!(a22==1))&&(a12==11)))&&!(a27==1)))&&(a15==1))&&(a18==1))&&(a3==4))){ + a18 = 0; + a3 = 8; + a27 = 1; + a5 = 0; + a6 = 1; + return 24; + } else if(((((a20==1)&&(!(a6==1)&&((a27==1)&&((a12==9)&&((a5==1)&&((!(a22==1)&&((((a18==1)||!(a18==1))&&(input==3))&&!(a4==1)))&&!(a15==1)))))))&&(a3==8))&&(a0==1))){ + a3 = 5; + a27 = 0; + a15 = 1; + a22 = 1; + a18 = 0; + a12 = 8; + return 26; + } else if(((a3==5)&&(((a5==1)&&((((((a12==10)&&(((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a27==1)))&&(a0==1))&&!(a4==1))&&(a15==1))&&(a6==1)))&&(a20==1)))){ + a3 = 4; + a12 = 8; + a22 = 1; + a18 = 1; + a27 = 1; + a4 = 1; + return -1; + } else if(((!(a6==1)&&(((!(a5==1)&&((a4==1)&&((((a20==1)&&((!(a15==1)&&(input==1))&&!(a22==1)))&&!(a0==1))&&(a18==1))))&&(a27==1))&&(a12==12)))&&(a3==5))){ + a0 = 1; + a5 = 1; + a15 = 1; + a3 = 7; + a12 = 8; + return 21; + } else if(((((a20==1)&&(((!(a22==1)&&((!(a0==1)&&(!(a5==1)&&((a4==1)&&((a12==9)&&(input==2)))))&&(a3==7)))&&!(a15==1))&&!(a27==1)))&&!(a18==1))&&!(a6==1))){ + a12 = 8; + a4 = 0; + a6 = 1; + a5 = 1; + a15 = 1; + a22 = 1; + a3 = 5; + a27 = 1; + a0 = 1; + return 24; + } else if(((((a20==1)&&(((a15==1)&&((((a12==9)&&((input==4)&&(((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1))))||((a3==6)&&((a22==1)&&(a18==1))))))&&(a4==1))&&!(a27==1)))&&!(a0==1)))&&(a6==1))&&!(a5==1))){ + a3 = 5; + a22 = 0; + a0 = 1; + a12 = 8; + a5 = 1; + a18 = 0; + a27 = 1; + return 24; + } else if(((((((a4==1)&&(((a20==1)&&((((a0==1)&&((input==3)&&!(a27==1)))&&!(a15==1))&&(a6==1)))&&(a18==1)))&&!(a22==1))&&(a3==6))&&(a12==11))&&!(a5==1))){ + a5 = 1; + a12 = 9; + a22 = 1; + return -1; + } else if((!(a5==1)&&((((a12==12)&&((!(a4==1)&&((a20==1)&&(((input==5)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a18==1)&&(a22==1)))))&&(a15==1))))&&(a6==1)))&&(a27==1))&&(a0==1)))){ + a18 = 1; + a22 = 1; + a3 = 7; + a4 = 1; + return 24; + } else if(((a20==1)&&(((!(a0==1)&&(((a27==1)&&(((a12==10)&&((input==1)&&(((a3==8)&&((a22==1)&&(a18==1)))||(((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==7))))))&&!(a5==1)))&&(a6==1)))&&(a15==1))&&!(a4==1)))){ + a5 = 1; + a3 = 4; + a12 = 8; + a0 = 1; + a22 = 1; + a18 = 1; + a4 = 1; + return -1; + } else if(((((a20==1)&&((!(a27==1)&&((!(a5==1)&&(((!(a6==1)&&((a3==4)&&(input==2)))&&!(a15==1))&&(a12==12)))&&!(a4==1)))&&(a0==1)))&&!(a18==1))&&(a22==1))){ + a18 = 1; + a5 = 1; + a22 = 0; + a3 = 6; + a27 = 1; + a4 = 1; + a12 = 10; + a6 = 1; + return -1; + } else if(((a22==1)&&(((a27==1)&&(((a18==1)&&(((a15==1)&&(!(a0==1)&&((a3==5)&&(((input==4)&&!(a6==1))&&!(a4==1)))))&&(a12==11)))&&!(a5==1)))&&(a20==1)))){ + a15 = 0; + a6 = 1; + a27 = 0; + a12 = 12; + a0 = 1; + a18 = 0; + a5 = 1; + a22 = 0; + a3 = 6; + return 21; + } else if(((((((a15==1)&&((a12==8)&&(((a20==1)&&((input==5)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))))&&(a0==1))))&&!(a5==1))&&(a27==1))&&!(a6==1))&&!(a4==1))){ + a18 = 1; + a5 = 1; + a22 = 0; + a15 = 0; + a12 = 10; + a3 = 8; + return 26; + } else if((((a12==12)&&((((a3==4)&&(((a0==1)&&((!(a27==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==2)))&&!(a15==1)))&&(a20==1)))&&(a6==1))&&(a4==1)))&&!(a5==1))){ + a4 = 0; + a5 = 1; + a12 = 10; + a27 = 1; + a6 = 0; + a3 = 8; + a22 = 1; + a18 = 0; + a15 = 1; + return -1; + } else if(((a5==1)&&((a3==5)&&(((a18==1)&&((((a27==1)&&(!(a0==1)&&(((a15==1)&&((input==5)&&(a20==1)))&&(a6==1))))&&!(a4==1))&&!(a22==1)))&&(a12==10))))){ + a0 = 1; + a3 = 6; + a5 = 0; + a22 = 1; + a6 = 0; + return 21; + } else if(((a22==1)&&((a20==1)&&((((((a18==1)&&((a3==6)&&(((a5==1)&&((a4==1)&&(input==2)))&&!(a27==1))))&&(a12==9))&&!(a6==1))&&(a15==1))&&!(a0==1))))){ + if((a6==1)){ + a27 = 1; + a6 = 1; + a0 = 1; + a3 = 5; + }else{ + a12 = 10; + a4 = 0; + a3 = 8; + a5 = 0; + } + return -1; + } else if(((!(a5==1)&&((a12==8)&&(!(a4==1)&&(!(a27==1)&&(!(a0==1)&&(!(a6==1)&&(((input==4)&&((((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==7))))&&(a20==1))))))))&&!(a15==1))){ + a12 = 10; + a18 = 1; + a3 = 8; + a22 = 1; + a15 = 1; + a4 = 1; + a5 = 1; + a27 = 1; + return 21; + } else if((((!(a0==1)&&((a12==10)&&((a15==1)&&((a20==1)&&((!(a6==1)&&((a5==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==1))))&&(a4==1))))))&&(a3==5))&&(a27==1))){ + a6 = 1; + a18 = 1; + a3 = 4; + a0 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if(((((a3==4)&&(((!(a0==1)&&(((a4==1)&&(((input==5)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&(a15==1)))&&(a20==1)))&&(a27==1))&&!(a5==1)))&&!(a6==1))&&(a12==9))){ + a5 = 1; + a18 = 1; + a12 = 8; + a0 = 1; + a22 = 1; + a6 = 1; + return -1; + } else if((((((a12==9)&&((a20==1)&&((a18==1)&&(((a5==1)&&(!(a27==1)&&((a6==1)&&((a3==8)&&(input==2)))))&&(a0==1)))))&&!(a22==1))&&!(a4==1))&&(a15==1))){ + a15 = 0; + a22 = 1; + a18 = 0; + a6 = 0; + a3 = 7; + a12 = 10; + a27 = 1; + a4 = 1; + return 21; + } else if((!(a5==1)&&(((a4==1)&&((a0==1)&&(((a20==1)&&((((input==5)&&((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7)))||((a3==7)&&(!(a18==1)&&(a22==1)))))&&(a27==1))&&!(a15==1)))&&(a6==1))))&&(a12==11)))){ + a3 = 8; + a22 = 0; + a5 = 1; + a15 = 1; + a18 = 1; + a12 = 10; + return -1; + } else if(((((((a4==1)&&((!(a15==1)&&((a22==1)&&((((input==2)&&((a18==1)||!(a18==1)))&&!(a6==1))&&(a12==9))))&&(a20==1)))&&(a27==1))&&!(a0==1))&&(a3==5))&&!(a5==1))){ + a6 = 1; + a12 = 8; + a3 = 4; + a0 = 1; + a15 = 1; + a18 = 1; + a5 = 1; + return -1; + } else if(((a12==11)&&((a6==1)&&((a0==1)&&((a15==1)&&((!(a5==1)&&(((a27==1)&&((input==5)&&(((a3==5)&&((a22==1)&&(a18==1)))||(((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a18==1)&&!(a22==1)))))))&&(a4==1)))&&(a20==1))))))){ + a22 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + return -1; + } else if(((((a3==5)&&((a27==1)&&(!(a4==1)&&(((a12==10)&&(!(a18==1)&&(((a6==1)&&((input==3)&&(a20==1)))&&!(a0==1))))&&!(a15==1)))))&&!(a22==1))&&(a5==1))){ + a15 = 1; + a0 = 1; + a3 = 6; + a6 = 0; + a22 = 1; + return 24; + } else if(((((((a12==10)&&(!(a27==1)&&(((((a3==4)&&(((a22==1)&&!(a18==1))&&!(a4==1)))&&(a6==1))||((!(a6==1)&&(((!(a22==1)&&!(a18==1))&&(a4==1))&&(a3==8)))||((a6==1)&&((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1))))))&&(input==2))))&&(a15==1))&&(a20==1))&&(a0==1))&&!(a5==1))){ + a27 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a15 = 0; + a4 = 1; + a6 = 1; + return 26; + } else if(((a6==1)&&(!(a5==1)&&(((a12==10)&&((((a4==1)&&((a15==1)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==2))))&&(a27==1))&&(a20==1)))&&!(a0==1))))){ + a15 = 0; + a22 = 0; + a18 = 0; + a12 = 12; + a6 = 0; + a0 = 1; + a5 = 1; + a3 = 8; + return -1; + } else if((((a20==1)&&((a5==1)&&((a27==1)&&((((input==5)&&((((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1))))&&(a6==1))||((((a3==8)&&((a4==1)&&(!(a22==1)&&(a18==1))))&&!(a6==1))||((((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8))&&!(a6==1)))))&&(a12==10))&&!(a0==1)))))&&!(a15==1))){ + a4 = 1; + a3 = 8; + a18 = 0; + a22 = 1; + a0 = 1; + a6 = 0; + return -1; + } else if(((a0==1)&&((a5==1)&&((((a6==1)&&((((a15==1)&&(((input==1)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a3==6)))&&(a20==1))&&(a27==1)))&&(a4==1))&&(a12==11))))){ + a4 = 0; + a18 = 0; + a22 = 0; + a15 = 0; + return 21; + } else if((((a12==10)&&((a4==1)&&(((a5==1)&&((a20==1)&&(!(a6==1)&&(((input==6)&&((((a3==4)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))||(((a22==1)&&(a18==1))&&(a3==5))))&&!(a0==1)))))&&(a15==1))))&&(a27==1))){ + a5 = 0; + a15 = 0; + a18 = 1; + a6 = 1; + a0 = 1; + a22 = 0; + a3 = 4; + a27 = 0; + a12 = 8; + return 21; + } else if((!(a27==1)&&((((a0==1)&&((a3==7)&&((a20==1)&&(((a12==9)&&(((input==5)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&!(a15==1)))&&!(a4==1)))))&&(a6==1))&&(a5==1)))){ + a3 = 8; + a5 = 0; + a6 = 0; + a4 = 1; + a22 = 1; + a15 = 1; + a18 = 0; + return 21; + } else if((((a6==1)&&((a3==4)&&(((!(a18==1)&&((a0==1)&&((a4==1)&&((a22==1)&&(((input==4)&&!(a5==1))&&(a15==1))))))&&(a20==1))&&!(a27==1))))&&(a12==10))){ + a12 = 9; + a5 = 1; + return -1; + } else if(((!(a4==1)&&((a15==1)&&(!(a6==1)&&((((a5==1)&&(((input==4)&&((((a18==1)&&(a22==1))&&(a3==7))||((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1))))))&&(a12==10)))&&(a20==1))&&(a0==1)))))&&(a27==1))){ + if((a15==1)){ + a5 = 0; + a4 = 1; + a3 = 4; + a12 = 8; + a18 = 0; + a0 = 0; + a22 = 1; + }else{ + a15 = 0; + a18 = 0; + a22 = 0; + a3 = 4; + } + return 26; + } else if(((a4==1)&&((!(a5==1)&&((a27==1)&&(!(a15==1)&&((a12==9)&&((((((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1))||(((((a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))))&&(input==4))&&!(a0==1))))))&&(a20==1)))){ + a0 = 1; + a3 = 5; + a18 = 1; + a6 = 0; + a22 = 1; + a27 = 0; + return 26; + } else if((!(a5==1)&&(!(a15==1)&&((a20==1)&&((a12==10)&&((a3==7)&&((!(a4==1)&&((!(a0==1)&&((!(a18==1)&&(input==6))&&(a27==1)))&&!(a22==1)))&&(a6==1)))))))){ + a12 = 8; + a5 = 1; + a0 = 1; + a22 = 1; + a4 = 1; + a3 = 4; + a18 = 1; + a15 = 1; + return -1; + } else if(((a22==1)&&((((!(a18==1)&&(((((((a3==7)&&(input==2))&&(a12==12))&&!(a6==1))&&(a5==1))&&(a27==1))&&(a20==1)))&&(a15==1))&&!(a0==1))&&(a4==1)))){ + a3 = 8; + a12 = 11; + a15 = 0; + a18 = 1; + a6 = 1; + a5 = 0; + a4 = 0; + a0 = 1; + return 26; + } else if((((a27==1)&&((a12==11)&&((((((input==3)&&((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4)))))&&(a5==1))&&!(a15==1))&&(a20==1))&&!(a4==1))))&&(a0==1))){ + a6 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + return -1; + } else if((!(a15==1)&&((a12==8)&&((a0==1)&&(((a20==1)&&(!(a27==1)&&(((a5==1)&&((input==5)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))||(((a22==1)&&!(a18==1))&&(a3==5)))))&&!(a4==1))))&&(a6==1)))))){ + a18 = 1; + a27 = 1; + a4 = 1; + a22 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if(((a27==1)&&((a5==1)&&((a12==11)&&(!(a15==1)&&((a4==1)&&((((((input==5)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&(a3==4))&&!(a6==1))&&!(a0==1))&&(a20==1)))))))){ + a15 = 1; + a4 = 0; + a0 = 1; + a12 = 10; + a6 = 1; + a22 = 1; + a18 = 0; + return -1; + } else if((((((((((a12==9)&&((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==5))&&(a3==5)))&&!(a6==1))&&!(a27==1))&&(a20==1))&&(a15==1))&&(a5==1))&&!(a0==1))&&!(a4==1))){ + if((a0==1)){ + a18 = 0; + a5 = 0; + a4 = 1; + a0 = 1; + a3 = 7; + a22 = 1; + }else{ + a0 = 1; + a12 = 8; + a18 = 0; + a4 = 1; + a27 = 1; + a22 = 0; + a3 = 4; + } + return -1; + } else if(((((((a15==1)&&((((((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))||(!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1)))))&&(input==4))&&!(a5==1))&&(a4==1)))&&(a12==9))&&(a20==1))&&(a0==1))&&!(a27==1))){ + a3 = 6; + a22 = 1; + a5 = 1; + a12 = 12; + a27 = 1; + a6 = 1; + a18 = 0; + return 24; + } else if(((((a4==1)&&(!(a15==1)&&((!(a0==1)&&(!(a22==1)&&(((!(a18==1)&&((input==3)&&(a6==1)))&&!(a27==1))&&(a3==8))))&&(a5==1))))&&(a20==1))&&(a12==11))){ + if((a22==1)){ + a4 = 0; + a18 = 1; + a12 = 8; + a27 = 1; + a0 = 1; + a15 = 1; + }else{ + a0 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a15 = 1; + a27 = 1; + } + return -1; + } else if(((((((!(a5==1)&&(((a6==1)&&(!(a15==1)&&((input==6)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))))&&(a27==1)))&&(a12==10))&&(a3==8))&&(a0==1))&&(a20==1))&&(a4==1))){ + a5 = 1; + a18 = 1; + a22 = 0; + a6 = 0; + return -1; + } else if((((a27==1)&&((a0==1)&&(((((!(a5==1)&&((a20==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==3))))&&(a3==8))&&!(a6==1))&&!(a15==1))&&!(a4==1))))&&(a12==10))){ + a18 = 0; + a22 = 1; + a15 = 1; + a6 = 1; + a3 = 7; + a0 = 0; + a12 = 8; + return -1; + } else if(((a3==7)&&(((a4==1)&&((a27==1)&&(((((a12==11)&&((a20==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==4))))&&!(a5==1))&&(a6==1))&&!(a0==1))))&&(a15==1)))){ + a12 = 8; + a3 = 4; + a5 = 1; + a18 = 1; + a0 = 1; + a22 = 1; + return -1; + } else if((!(a27==1)&&(!(a15==1)&&(((((a5==1)&&((a20==1)&&(!(a4==1)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==4)))))&&(a0==1))&&!(a6==1))&&(a12==10))))){ + if((a5==1)){ + a3 = 8; + a18 = 0; + a5 = 0; + a22 = 1; + a6 = 1; + a12 = 12; + }else{ + a3 = 5; + a27 = 1; + a22 = 0; + a4 = 1; + a6 = 1; + a18 = 1; + } + return 21; + } else if((!(a27==1)&&(!(a4==1)&&(((!(a0==1)&&((a12==11)&&((a5==1)&&(((input==5)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))||(((a22==1)&&!(a18==1))&&(a3==7))))&&(a6==1)))))&&(a15==1))&&(a20==1))))){ + if((a15==1)){ + a5 = 0; + a15 = 0; + a0 = 1; + a6 = 0; + a22 = 0; + a4 = 1; + a12 = 9; + a18 = 0; + a3 = 5; + }else{ + a18 = 0; + a15 = 0; + a22 = 0; + a0 = 1; + a3 = 7; + } + return -1; + } else if((((a15==1)&&(((a20==1)&&((a4==1)&&((a6==1)&&((((a3==6)&&(((input==5)&&(a0==1))&&(a5==1)))&&(a22==1))&&!(a27==1)))))&&(a12==11)))&&!(a18==1))){ + a0 = 0; + a27 = 1; + a5 = 0; + a22 = 0; + a4 = 0; + a3 = 7; + a6 = 0; + a18 = 1; + return 21; + } else if(((!(a0==1)&&(((a12==11)&&(((!(a6==1)&&((!(a4==1)&&(!(a15==1)&&((a5==1)&&(!(a22==1)&&!(a18==1)))))&&(a3==8)))||((((a4==1)&&((a15==1)&&(((a18==1)&&(a22==1))&&!(a5==1))))&&(a3==4))&&(a6==1)))&&(input==2)))&&!(a27==1)))&&(a20==1))){ + a5 = 1; + a27 = 1; + a22 = 0; + a3 = 7; + a0 = 1; + a4 = 1; + a12 = 8; + a15 = 1; + a18 = 1; + a6 = 1; + return -1; + } else if((((a15==1)&&((a12==11)&&((a20==1)&&((!(a5==1)&&(((a3==7)&&(!(a0==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==1))))&&!(a4==1)))&&(a6==1)))))&&(a27==1))){ + a18 = 0; + a12 = 10; + a22 = 1; + a0 = 1; + a4 = 1; + a3 = 4; + a15 = 0; + a5 = 1; + return 26; + } else if((((a0==1)&&(((!(a27==1)&&((a20==1)&&(!(a6==1)&&(((((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==6))&&(a12==9)))))&&(a4==1))&&(a5==1)))&&(a15==1))){ + a5 = 0; + a22 = 1; + a27 = 1; + a3 = 7; + a12 = 8; + a0 = 0; + a18 = 0; + return -1; + } else if(((a0==1)&&((a20==1)&&(((!(a5==1)&&(((((((a3==5)&&((a22==1)&&!(a18==1)))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1)))))&&(input==5))&&(a15==1))&&(a27==1))&&!(a6==1)))&&(a12==12))&&!(a4==1))))){ + a5 = 1; + a3 = 8; + a18 = 0; + a22 = 1; + a4 = 1; + return 21; + } else if(((((a12==11)&&((((a5==1)&&((((((input==5)&&(a20==1))&&(a4==1))&&!(a0==1))&&!(a22==1))&&(a27==1)))&&(a18==1))&&!(a6==1)))&&(a3==4))&&(a15==1))){ + a0 = 1; + a22 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if(((!(a5==1)&&(!(a0==1)&&((a12==10)&&(((((((!(a4==1)&&(!(a18==1)&&(a22==1)))&&(a3==4))&&(a6==1))||(((((a4==1)&&(!(a22==1)&&!(a18==1)))&&(a3==8))&&!(a6==1))||((a6==1)&&((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1)))))))&&(input==1))&&!(a15==1))&&!(a27==1)))))&&(a20==1))){ + a5 = 1; + a12 = 8; + a18 = 0; + a0 = 1; + a3 = 4; + a4 = 0; + a22 = 0; + a6 = 1; + a15 = 1; + a27 = 1; + return -1; + } else if(((((((!(a4==1)&&(!(a0==1)&&(((!(a22==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a15==1))&&(a27==1))))&&!(a5==1))&&(a12==11))&&(a20==1))&&!(a6==1))&&(a3==8))){ + a15 = 0; + a0 = 1; + a3 = 6; + a18 = 0; + a4 = 1; + a12 = 12; + a5 = 1; + return 24; + } else if((((((a12==8)&&(((a20==1)&&((!(a4==1)&&((((input==3)&&((a18==1)||!(a18==1)))&&!(a22==1))&&!(a15==1)))&&!(a6==1)))&&(a3==6)))&&(a0==1))&&(a5==1))&&(a27==1))){ + a3 = 8; + a22 = 1; + a12 = 9; + a18 = 1; + return 21; + } else if((((a6==1)&&((((a3==7)&&(!(a5==1)&&((((!(a22==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a12==8))&&(a27==1))&&(a20==1))))&&!(a0==1))&&(a15==1)))&&!(a4==1))){ + a3 = 8; + a12 = 12; + a5 = 1; + a6 = 0; + a0 = 1; + a18 = 1; + return 26; + } else if((((!(a5==1)&&(((a3==7)&&((!(a0==1)&&((!(a15==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==4)))&&(a20==1)))&&(a6==1)))&&(a27==1)))&&(a12==12))&&(a4==1))){ + a18 = 1; + a12 = 9; + a5 = 1; + a27 = 0; + a22 = 0; + a15 = 1; + a0 = 1; + return 21; + } else if(((a22==1)&&(!(a4==1)&&((((a5==1)&&(!(a27==1)&&(((((a3==5)&&((a0==1)&&(input==3)))&&(a12==9))&&(a18==1))&&(a20==1))))&&!(a15==1))&&(a6==1))))){ + a3 = 7; + a27 = 1; + a18 = 0; + a22 = 0; + a12 = 12; + return 26; + } else if(((a5==1)&&(((a20==1)&&(((((a4==1)&&((a0==1)&&(((input==2)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a3==8))))&&!(a15==1))&&(a12==10))&&!(a27==1)))&&(a6==1)))){ + a27 = 1; + a22 = 1; + a15 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + return -1; + } else if(((a15==1)&&((a18==1)&&(!(a4==1)&&(!(a6==1)&&(!(a22==1)&&((a0==1)&&(((a20==1)&&((a12==9)&&(((input==3)&&!(a27==1))&&(a5==1))))&&(a3==5))))))))){ + a6 = 1; + a5 = 0; + a12 = 11; + a22 = 1; + a4 = 1; + a27 = 1; + a15 = 0; + return 26; + } else if(((a0==1)&&((a15==1)&&((((((a12==12)&&((a22==1)&&((a20==1)&&((((a18==1)||!(a18==1))&&(input==6))&&!(a5==1)))))&&!(a27==1))&&(a4==1))&&(a3==6))&&!(a6==1))))){ + a6 = 1; + a12 = 8; + a27 = 1; + a18 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if(((!(a0==1)&&((a27==1)&&(!(a6==1)&&((((!(a4==1)&&(((a3==4)&&((input==2)&&(a20==1)))&&(a18==1)))&&(a12==10))&&!(a22==1))&&(a5==1)))))&&!(a15==1))){ + a22 = 1; + a0 = 1; + a15 = 1; + a6 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if(((!(a6==1)&&(!(a0==1)&&(!(a22==1)&&((a18==1)&&((((a15==1)&&((((a27==1)&&(input==1))&&!(a5==1))&&(a20==1)))&&(a3==4))&&(a4==1))))))&&(a12==10))){ + a4 = 0; + a6 = 1; + a27 = 0; + a5 = 1; + a12 = 9; + a0 = 1; + a22 = 1; + return 21; + } else if((!(a5==1)&&((((a27==1)&&((a12==12)&&(!(a6==1)&&((((input==5)&&((((a22==1)&&(a18==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==5)))))&&(a20==1))&&(a4==1)))))&&(a0==1))&&(a15==1)))){ + a5 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a22 = 1; + a6 = 1; + return -1; + } else if(((a12==10)&&((a5==1)&&((!(a15==1)&&((a0==1)&&(((a3==4)&&((((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a20==1))&&!(a6==1)))&&!(a27==1))))&&!(a4==1))))){ + a12 = 8; + a6 = 1; + a3 = 5; + a22 = 1; + a18 = 0; + return 26; + } else if(((a5==1)&&((((a12==8)&&((a20==1)&&((a6==1)&&((a15==1)&&(!(a27==1)&&((input==4)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5)))))))))&&(a4==1))&&!(a0==1)))){ + a22 = 1; + a27 = 1; + a3 = 6; + a18 = 1; + a0 = 1; + return -1; + } else if((((!(a18==1)&&((((a20==1)&&((a3==5)&&(((a4==1)&&((a0==1)&&(!(a22==1)&&(input==1))))&&(a12==11))))&&!(a15==1))&&!(a27==1)))&&(a6==1))&&!(a5==1))){ + if((a20==1)){ + a0 = 0; + a27 = 1; + a15 = 1; + a12 = 9; + a5 = 1; + a3 = 6; + a18 = 1; + a4 = 0; + }else{ + a3 = 6; + a27 = 1; + a6 = 0; + } + return -1; + } else if(((a20==1)&&(((!(a4==1)&&(((a12==9)&&((a0==1)&&(!(a5==1)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==6)))))&&!(a6==1)))&&!(a15==1))&&!(a27==1)))){ + a22 = 1; + a12 = 11; + a18 = 1; + a6 = 1; + a15 = 1; + a3 = 5; + return 26; + } else if(((a15==1)&&((a20==1)&&((((!(a4==1)&&(((a3==8)&&((((input==6)&&(a18==1))&&(a12==11))&&(a6==1)))&&!(a22==1)))&&(a27==1))&&!(a0==1))&&!(a5==1))))){ + a12 = 8; + a6 = 0; + a0 = 1; + a3 = 4; + a5 = 1; + return 24; + } else if((((a6==1)&&(((((a20==1)&&(!(a27==1)&&(!(a5==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a15==1)))))&&(a12==8))&&!(a0==1))&&!(a4==1)))&&(a3==5))){ + a3 = 8; + a27 = 1; + a18 = 0; + a0 = 1; + a12 = 11; + a22 = 1; + a4 = 1; + return -1; + } else if((!(a18==1)&&(!(a6==1)&&((a12==8)&&((a4==1)&&((a15==1)&&(!(a27==1)&&((a20==1)&&((((a3==6)&&((input==2)&&!(a0==1)))&&(a5==1))&&!(a22==1)))))))))){ + a3 = 7; + a4 = 0; + a22 = 1; + a27 = 1; + a6 = 1; + a0 = 1; + return -1; + } else if((!(a6==1)&&((!(a4==1)&&((a12==11)&&(((((a3==7)&&(!(a5==1)&&((input==1)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&!(a15==1))&&(a0==1))&&(a27==1))))&&(a20==1)))){ + a5 = 1; + a12 = 8; + a15 = 1; + a6 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + a4 = 1; + return -1; + } else if((!(a5==1)&&(!(a15==1)&&(((((a4==1)&&((a27==1)&&((!(a0==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==1)))&&(a3==8))))&&(a12==8))&&(a6==1))&&(a20==1))))){ + a0 = 1; + a15 = 1; + a22 = 0; + a6 = 0; + a27 = 0; + a12 = 9; + a18 = 0; + a3 = 4; + return 26; + } else if(((((((a20==1)&&((((((a3==5)&&((input==5)&&((a18==1)||!(a18==1))))&&(a12==8))&&(a6==1))&&(a15==1))&&(a4==1)))&&!(a27==1))&&!(a0==1))&&!(a5==1))&&!(a22==1))){ + if((a12==11)){ + a5 = 1; + a3 = 8; + a0 = 1; + a27 = 1; + a22 = 1; + a18 = 1; + }else{ + a27 = 1; + a4 = 0; + a5 = 1; + a0 = 1; + a3 = 4; + a18 = 0; + } + return -1; + } else if((!(a5==1)&&((a6==1)&&((a20==1)&&(!(a4==1)&&((a0==1)&&((((a12==12)&&((input==4)&&(((a3==6)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5))))))&&!(a15==1))&&!(a27==1)))))))){ + a18 = 0; + a3 = 6; + a5 = 1; + a22 = 1; + a15 = 1; + return 26; + } else if((((a27==1)&&(!(a18==1)&&(((!(a5==1)&&((!(a22==1)&&(((a4==1)&&(!(a6==1)&&(input==5)))&&(a20==1)))&&(a15==1)))&&(a12==10))&&(a3==8))))&&(a0==1))){ + a18 = 1; + a6 = 1; + a3 = 5; + a4 = 0; + a5 = 1; + return -1; + } else if((!(a22==1)&&((!(a5==1)&&(!(a27==1)&&(((a15==1)&&(!(a6==1)&&(((((input==1)&&!(a4==1))&&(a0==1))&&!(a18==1))&&(a12==12))))&&(a20==1))))&&(a3==4)))){ + if((a15==1)){ + a4 = 1; + a27 = 1; + a3 = 6; + a0 = 0; + a5 = 1; + a6 = 1; + a22 = 1; + a15 = 0; + a12 = 10; + }else{ + a3 = 7; + a12 = 11; + a22 = 1; + a18 = 1; + a27 = 1; + a15 = 0; + a5 = 1; + } + return 24; + } else if(((((a4==1)&&((a6==1)&&(((((((!(a18==1)&&(input==5))&&!(a15==1))&&(a0==1))&&!(a5==1))&&(a12==9))&&(a3==7))&&(a20==1))))&&!(a27==1))&&(a22==1))){ + a27 = 1; + a3 = 4; + a22 = 0; + a5 = 1; + a4 = 0; + a12 = 12; + a18 = 1; + return -1; + } else if((((a4==1)&&(!(a5==1)&&(((((a20==1)&&((a15==1)&&(((((a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&((a18==1)&&!(a22==1)))||((a3==7)&&(!(a22==1)&&!(a18==1)))))&&(input==4))))&&(a6==1))&&(a0==1))&&(a12==11))))&&!(a27==1))){ + a22 = 1; + a18 = 0; + a0 = 0; + a6 = 0; + a3 = 6; + a12 = 9; + a27 = 1; + return 24; + } else if((!(a0==1)&&(((a6==1)&&((a20==1)&&(((a27==1)&&((!(a4==1)&&(((input==2)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&(a12==10)))&&(a3==6)))&&!(a5==1))))&&(a15==1)))){ + a18 = 0; + a22 = 1; + a4 = 1; + a3 = 5; + a0 = 1; + a15 = 0; + return -1; + } else if((((a5==1)&&((a0==1)&&((!(a4==1)&&(((a3==8)&&((a20==1)&&(((input==5)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&!(a27==1))))&&(a12==9)))&&!(a6==1))))&&!(a15==1))){ + a4 = 1; + a12 = 8; + a22 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((!(a0==1)&&(((((((a15==1)&&((((!(a5==1)&&(input==6))&&(a18==1))&&(a4==1))&&!(a6==1)))&&(a12==11))&&(a3==4))&&!(a22==1))&&(a27==1))&&(a20==1)))){ + a0 = 1; + a3 = 6; + a12 = 10; + a18 = 0; + return 21; + } else if(((((((a5==1)&&((a12==10)&&((a15==1)&&(((a20==1)&&((a18==1)&&(!(a27==1)&&(input==1))))&&!(a22==1)))))&&!(a4==1))&&!(a0==1))&&(a3==8))&&(a6==1))){ + a15 = 0; + a12 = 11; + a22 = 1; + a0 = 1; + a5 = 0; + a27 = 1; + a3 = 5; + return 24; + } else if((!(a5==1)&&(((a4==1)&&((a20==1)&&(!(a15==1)&&((a12==12)&&(((a0==1)&&(((((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a22==1)&&!(a18==1))))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==5)))&&!(a6==1))))))&&(a27==1)))){ + a3 = 5; + a22 = 1; + a18 = 0; + a15 = 1; + a4 = 0; + a5 = 1; + return 21; + } else if(((a5==1)&&((a12==8)&&(!(a0==1)&&((((input==4)&&((((!(a4==1)&&((a15==1)&&(!(a18==1)&&!(a22==1))))&&(a3==8))&&!(a6==1))||((((((a18==1)&&(a22==1))&&!(a15==1))&&(a4==1))&&(a3==4))&&(a6==1))))&&!(a27==1))&&(a20==1)))))){ + a4 = 1; + a22 = 1; + a3 = 8; + a18 = 0; + a15 = 1; + a6 = 1; + a5 = 0; + a12 = 10; + return -1; + } else if((((((a15==1)&&((a4==1)&&(!(a6==1)&&(!(a5==1)&&((a12==12)&&((input==1)&&((((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a18==1)&&!(a22==1))))||((a3==6)&&((a18==1)&&(a22==1))))))))))&&(a0==1))&&(a27==1))&&(a20==1))){ + a5 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + a6 = 1; + a18 = 1; + return -1; + } else if((((a5==1)&&((!(a0==1)&&((a12==8)&&(!(a6==1)&&(!(a27==1)&&(((((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==1))&&!(a4==1))))))&&(a15==1)))&&(a20==1))){ + if((a4==1)){ + a22 = 0; + a5 = 0; + a15 = 0; + a3 = 4; + a27 = 1; + a18 = 1; + a6 = 1; + a0 = 1; + a12 = 12; + }else{ + a6 = 1; + a27 = 1; + a0 = 1; + a3 = 5; + a22 = 0; + a18 = 0; + } + return -1; + } else if((!(a22==1)&&((((((a6==1)&&((!(a5==1)&&((a15==1)&&((a12==11)&&((input==4)&&((a18==1)||!(a18==1))))))&&!(a0==1)))&&!(a4==1))&&!(a27==1))&&(a3==6))&&(a20==1)))){ + a12 = 9; + a15 = 0; + a3 = 5; + a18 = 0; + a4 = 1; + a27 = 1; + return 21; + } else if(((a20==1)&&((a3==8)&&(!(a4==1)&&(((((a5==1)&&((a15==1)&&(!(a27==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==5)))))&&(a12==8))&&!(a6==1))&&!(a0==1)))))){ + a18 = 0; + a0 = 1; + a22 = 1; + a3 = 4; + a27 = 1; + a6 = 1; + return -1; + } else if((!(a15==1)&&((a0==1)&&((a12==11)&&(!(a4==1)&&((a20==1)&&(!(a5==1)&&(!(a6==1)&&((((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))||((a3==6)&&(!(a18==1)&&(a22==1))))&&(input==5))&&(a27==1)))))))))){ + if((a6==1)){ + a22 = 0; + a6 = 1; + a15 = 1; + a12 = 8; + a5 = 1; + a3 = 5; + a18 = 0; + a0 = 0; + }else{ + a18 = 1; + a22 = 0; + a3 = 4; + } + return -1; + } else if(((!(a22==1)&&(!(a6==1)&&(((a4==1)&&(!(a15==1)&&((((!(a27==1)&&((input==1)&&(a3==8)))&&(a5==1))&&(a12==9))&&(a20==1))))&&(a0==1))))&&(a18==1))){ + a12 = 8; + a6 = 1; + a22 = 1; + a27 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if((((a15==1)&&((((a20==1)&&((a3==5)&&(!(a4==1)&&((a0==1)&&((!(a6==1)&&((input==6)&&((a18==1)||!(a18==1))))&&!(a27==1))))))&&(a5==1))&&(a22==1)))&&(a12==11))){ + a18 = 1; + a27 = 1; + a5 = 0; + a12 = 10; + a4 = 1; + a6 = 1; + a15 = 0; + return 26; + } else if(((((a20==1)&&((a0==1)&&((a12==9)&&(!(a27==1)&&((!(a5==1)&&((input==4)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))||((!(a18==1)&&(a22==1))&&(a3==6)))))&&!(a6==1))))))&&(a15==1))&&!(a4==1))){ + a3 = 4; + a6 = 1; + a4 = 1; + a5 = 1; + a12 = 8; + a18 = 0; + a15 = 0; + a22 = 1; + return 26; + } else if((((a4==1)&&((!(a22==1)&&(((a18==1)&&((a5==1)&&(((a20==1)&&((a27==1)&&((a15==1)&&(input==5))))&&(a6==1))))&&(a12==11)))&&!(a0==1)))&&(a3==4))){ + a4 = 0; + a18 = 0; + a15 = 0; + a12 = 9; + a3 = 7; + a5 = 0; + a6 = 0; + a0 = 1; + return 21; + } else if((((a3==4)&&((a20==1)&&(((!(a15==1)&&((a12==9)&&((((input==6)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&!(a27==1))&&!(a6==1))))&&!(a5==1))&&(a4==1))))&&(a0==1))){ + a6 = 1; + a18 = 1; + a5 = 1; + a22 = 1; + a15 = 1; + a3 = 8; + a27 = 1; + a12 = 8; + return -1; + } else if((((((a15==1)&&((a27==1)&&(!(a5==1)&&((((a3==4)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5)))&&!(a4==1))&&(a12==12)))))&&(a6==1))&&(a20==1))&&!(a0==1))){ + a6 = 0; + a22 = 1; + a4 = 1; + a5 = 1; + a12 = 8; + a3 = 8; + a18 = 0; + a0 = 1; + return -1; + } else if(((!(a5==1)&&((((a20==1)&&((a3==8)&&(!(a6==1)&&(((((input==6)&&((a18==1)||!(a18==1)))&&(a22==1))&&(a15==1))&&(a12==12)))))&&!(a4==1))&&(a27==1)))&&!(a0==1))){ + if((a27==1)){ + a4 = 1; + a12 = 9; + a6 = 1; + a0 = 1; + a3 = 7; + a18 = 0; + a22 = 0; + a5 = 1; + }else{ + a15 = 0; + a22 = 0; + a12 = 11; + a6 = 1; + a18 = 0; + } + return -1; + } else if(((a0==1)&&((a3==7)&&(!(a5==1)&&((a12==8)&&((a27==1)&&(((((a20==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==6)))&&!(a4==1))&&(a15==1))&&!(a6==1)))))))){ + a18 = 1; + a12 = 10; + a3 = 5; + a22 = 0; + a4 = 1; + return 21; + } else if(((a20==1)&&((((a6==1)&&(((a12==9)&&((((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==6))&&!(a5==1))&&(a15==1)))&&(a0==1)))&&!(a4==1))&&(a27==1)))){ + a6 = 0; + a12 = 8; + a22 = 1; + a27 = 0; + a4 = 1; + a18 = 1; + a3 = 6; + return 21; + } else if((((a12==10)&&(((a22==1)&&((a0==1)&&(!(a15==1)&&(((!(a27==1)&&(!(a5==1)&&((a6==1)&&(input==3))))&&(a3==7))&&(a4==1)))))&&!(a18==1)))&&(a20==1))){ + a5 = 1; + a3 = 4; + a12 = 8; + a27 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if(((a5==1)&&(((((a3==8)&&((((a12==10)&&(!(a4==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==6))))&&!(a15==1))&&(a20==1)))&&!(a27==1))&&!(a0==1))&&(a6==1)))){ + if((a0==1)){ + a15 = 1; + a6 = 0; + a12 = 8; + a4 = 1; + a22 = 1; + a27 = 1; + a0 = 1; + a18 = 1; + }else{ + a3 = 7; + a27 = 1; + a18 = 1; + a12 = 9; + a0 = 1; + a6 = 0; + a5 = 0; + a22 = 0; + } + return -1; + } else if((((((((a6==1)&&(!(a0==1)&&((a15==1)&&(((((a18==1)&&(a22==1))&&(a3==8))||(((!(a22==1)&&(a18==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7))))&&(input==5)))))&&(a5==1))&&!(a27==1))&&!(a4==1))&&(a12==10))&&(a20==1))){ + a22 = 0; + a18 = 0; + a12 = 8; + a0 = 1; + a3 = 8; + a27 = 1; + return -1; + } else if((!(a4==1)&&(((((a5==1)&&((a27==1)&&((((a12==12)&&(((input==3)&&!(a0==1))&&(a6==1)))&&(a20==1))&&!(a15==1))))&&(a3==4))&&!(a18==1))&&(a22==1)))){ + a18 = 1; + a15 = 1; + a5 = 0; + a12 = 9; + a22 = 0; + a0 = 1; + a3 = 6; + return 21; + } else if((((((((a0==1)&&((((a4==1)&&((!(a15==1)&&(input==2))&&!(a27==1)))&&(a12==8))&&!(a22==1)))&&(a3==7))&&!(a6==1))&&(a20==1))&&(a5==1))&&!(a18==1))){ + a27 = 1; + a22 = 1; + a6 = 1; + a18 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if((!(a15==1)&&((((a3==4)&&((((a12==12)&&(((a6==1)&&((a0==1)&&((input==6)&&((a18==1)||!(a18==1)))))&&(a5==1)))&&(a27==1))&&!(a4==1)))&&!(a22==1))&&(a20==1)))){ + a18 = 1; + a5 = 0; + a22 = 1; + a12 = 11; + a6 = 0; + a3 = 5; + return -1; + } else if(((a6==1)&&(((a12==10)&&((!(a15==1)&&(!(a5==1)&&((a0==1)&&(((a20==1)&&((input==1)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a27==1)))))&&!(a4==1)))&&(a3==6)))){ + a12 = 12; + a22 = 0; + a6 = 0; + a27 = 1; + a5 = 1; + a3 = 4; + a18 = 0; + a15 = 1; + return 26; + } else if((((a27==1)&&(((a5==1)&&(!(a4==1)&&(((((input==5)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1)))))&&(a6==1))&&(a20==1))&&(a12==12))))&&(a15==1)))&&(a0==1))){ + a12 = 8; + a3 = 4; + a22 = 1; + a18 = 1; + a4 = 1; + return -1; + } else if((((!(a0==1)&&((((a20==1)&&(!(a5==1)&&((a6==1)&&(((((a18==1)||!(a18==1))&&(input==5))&&!(a22==1))&&(a27==1)))))&&(a12==8))&&(a15==1)))&&!(a4==1))&&(a3==7))){ + a4 = 1; + a0 = 1; + a3 = 4; + a12 = 11; + a18 = 0; + a5 = 1; + return -1; + } else if(((a20==1)&&(((!(a5==1)&&((a4==1)&&((!(a27==1)&&((a0==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))||((a3==5)&&((a22==1)&&!(a18==1))))&&(input==4))))&&(a12==11))))&&!(a6==1))&&!(a15==1)))){ + a12 = 10; + a4 = 0; + a22 = 1; + a6 = 1; + a18 = 1; + a3 = 8; + a15 = 1; + a5 = 1; + return -1; + } else if(((a15==1)&&(!(a22==1)&&(((a18==1)&&((((((((input==3)&&(a3==8))&&!(a0==1))&&(a4==1))&&!(a5==1))&&(a6==1))&&(a12==11))&&(a20==1)))&&!(a27==1))))){ + if((a12==10)){ + a12 = 8; + a22 = 1; + a15 = 0; + a4 = 0; + a5 = 1; + a27 = 1; + a18 = 0; + }else{ + a5 = 1; + a4 = 0; + } + return -1; + } else if((!(a27==1)&&((a22==1)&&((a5==1)&&(((a15==1)&&((a18==1)&&((a12==8)&&((a20==1)&&(!(a4==1)&&(((input==4)&&(a6==1))&&(a3==5)))))))&&(a0==1)))))){ + a12 = 10; + a18 = 0; + a27 = 1; + a3 = 8; + return 21; + } else if((!(a0==1)&&(((((!(a6==1)&&(!(a22==1)&&((a18==1)&&((a12==11)&&(((input==2)&&(a4==1))&&(a3==8))))))&&(a27==1))&&(a5==1))&&(a15==1))&&(a20==1)))){ + a27 = 0; + a4 = 0; + a12 = 8; + a0 = 1; + return 21; + } else if((((a3==7)&&((!(a27==1)&&((((a22==1)&&((a20==1)&&(!(a6==1)&&((a4==1)&&(!(a15==1)&&(input==1))))))&&(a0==1))&&!(a18==1)))&&(a5==1)))&&(a12==10))){ + if((a22==1)){ + a15 = 1; + a27 = 1; + a6 = 1; + a3 = 6; + a0 = 0; + }else{ + a3 = 8; + a27 = 1; + a4 = 0; + a22 = 0; + } + return 21; + } else if(((a15==1)&&(((!(a6==1)&&(((a5==1)&&((a0==1)&&(((((a3==8)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7))))&&(input==3))&&(a27==1))))&&!(a4==1)))&&(a12==8))&&(a20==1)))){ + a5 = 0; + a22 = 1; + a0 = 0; + a18 = 1; + a12 = 9; + a15 = 0; + a3 = 7; + return 24; + } else if((((a20==1)&&((((a0==1)&&((a27==1)&&(((a3==4)&&(((((a18==1)||!(a18==1))&&(input==4))&&!(a5==1))&&(a22==1)))&&(a4==1))))&&!(a15==1))&&!(a6==1)))&&(a12==10))){ + a18 = 1; + a22 = 0; + a6 = 1; + a3 = 6; + a5 = 1; + return -1; + } else if(((((a20==1)&&((a27==1)&&((a22==1)&&(!(a0==1)&&(((a12==11)&&((!(a5==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a15==1)))&&(a6==1))))))&&(a3==6))&&!(a4==1))){ + a0 = 1; + a18 = 1; + a5 = 1; + a12 = 8; + a3 = 4; + a4 = 1; + return -1; + } else if(((!(a4==1)&&(((!(a18==1)&&((a12==8)&&(!(a0==1)&&((a20==1)&&((a6==1)&&((!(a15==1)&&(input==6))&&!(a27==1)))))))&&!(a22==1))&&(a5==1)))&&(a3==5))){ + if((a6==1)){ + a3 = 4; + a6 = 0; + a15 = 1; + a4 = 1; + a18 = 1; + a0 = 1; + }else{ + a15 = 1; + a3 = 7; + a27 = 1; + a5 = 0; + a6 = 0; + } + return -1; + } else if(((a20==1)&&(((a5==1)&&((a6==1)&&((((((input==1)&&((((a22==1)&&!(a18==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1))))))&&(a0==1))&&!(a4==1))&&(a12==10))&&(a27==1))))&&(a15==1)))){ + a18 = 1; + a3 = 6; + a12 = 9; + a27 = 0; + a5 = 0; + a22 = 1; + return 24; + } else if(((((!(a4==1)&&((!(a18==1)&&(!(a15==1)&&(!(a5==1)&&((!(a0==1)&&((input==6)&&(a22==1)))&&!(a27==1)))))&&(a20==1)))&&(a12==11))&&(a6==1))&&(a3==8))){ + a5 = 1; + a4 = 1; + a27 = 1; + a15 = 1; + a6 = 0; + a0 = 1; + a12 = 8; + return -1; + } else if((!(a22==1)&&((a5==1)&&(((((((!(a15==1)&&((a4==1)&&((a18==1)&&(input==1))))&&(a0==1))&&(a20==1))&&!(a6==1))&&(a3==6))&&(a12==10))&&(a27==1))))){ + a15 = 1; + return -1; + } else if((((!(a0==1)&&((a4==1)&&((a6==1)&&(((a12==12)&&(!(a15==1)&&((((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==2))))&&(a5==1)))))&&(a20==1))&&(a27==1))){ + a0 = 1; + a5 = 0; + a12 = 10; + a22 = 0; + a18 = 1; + a6 = 0; + a3 = 5; + return -1; + } else if(((a5==1)&&((a27==1)&&((a20==1)&&((((((input==2)&&((((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1)))||(!(a6==1)&&((a3==4)&&((a22==1)&&!(a18==1))))))&&!(a15==1))&&(a12==9))&&!(a4==1))&&(a0==1)))))){ + if((a4==1)){ + a12 = 8; + a6 = 0; + a18 = 0; + a15 = 1; + a5 = 0; + a3 = 8; + a22 = 0; + a4 = 1; + a0 = 0; + }else{ + a6 = 0; + a5 = 0; + a4 = 1; + a18 = 0; + a3 = 7; + a22 = 0; + a12 = 11; + } + return 21; + } else if((((((a6==1)&&(((((a0==1)&&(((input==2)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&!(a4==1)))&&(a27==1))&&(a5==1))&&(a15==1)))&&(a12==9))&&(a3==4))&&(a20==1))){ + a22 = 1; + a12 = 12; + a15 = 0; + a3 = 7; + a18 = 0; + return 26; + } else if((!(a6==1)&&((a20==1)&&(((((a3==6)&&(((((input==6)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a5==1))&&(a4==1))&&!(a0==1)))&&!(a15==1))&&(a12==11))&&!(a27==1))))){ + if((a5==1)){ + a27 = 1; + a18 = 1; + a4 = 0; + a6 = 1; + a12 = 10; + a3 = 7; + a5 = 1; + a0 = 1; + a22 = 0; + }else{ + a18 = 1; + a4 = 0; + a22 = 0; + a27 = 1; + a6 = 1; + a3 = 5; + } + return -1; + } else if(((!(a4==1)&&(((a3==7)&&((!(a5==1)&&(!(a6==1)&&((a27==1)&&(((input==3)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&(a0==1)))))&&!(a15==1)))&&(a20==1)))&&(a12==12))){ + a0 = 0; + a18 = 0; + a6 = 1; + a12 = 9; + a22 = 0; + return 26; + } else if((!(a15==1)&&((a4==1)&&(!(a27==1)&&(((a12==10)&&(((((input==2)&&(((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8))))&&(a0==1))&&(a5==1))&&(a20==1)))&&(a6==1)))))){ + if((a6==1)){ + a22 = 0; + a18 = 1; + a3 = 6; + a0 = 0; + a6 = 0; + a27 = 1; + a5 = 0; + }else{ + a27 = 1; + a3 = 6; + a0 = 0; + a12 = 11; + a22 = 0; + a15 = 1; + a4 = 0; + a18 = 1; + } + return -1; + } else if(((a20==1)&&((((a4==1)&&((a6==1)&&(((a27==1)&&((!(a15==1)&&((a22==1)&&((input==2)&&((a18==1)||!(a18==1)))))&&!(a0==1)))&&(a12==10))))&&(a5==1))&&(a3==4)))){ + a18 = 1; + a0 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if((!(a5==1)&&((a20==1)&&((((a0==1)&&(!(a15==1)&&((input==5)&&((((((a22==1)&&!(a18==1))&&!(a4==1))&&(a3==4))&&(a6==1))||((((a3==8)&&((!(a22==1)&&!(a18==1))&&(a4==1)))&&!(a6==1))||((a6==1)&&((a3==4)&&(!(a4==1)&&((a22==1)&&(a18==1))))))))))&&(a27==1))&&(a12==11))))){ + a4 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + a6 = 1; + a12 = 8; + a15 = 1; + a5 = 1; + return -1; + } else if((((a20==1)&&((a4==1)&&((a15==1)&&((!(a6==1)&&((((((!(a18==1)&&(a22==1))&&(a3==5))||(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1)))))&&(input==3))&&!(a0==1))&&(a27==1)))&&!(a5==1)))))&&(a12==11))){ + a0 = 1; + a3 = 6; + a4 = 0; + a22 = 1; + a6 = 1; + a18 = 1; + return 24; + } else if((!(a15==1)&&(((a20==1)&&((!(a4==1)&&(((a22==1)&&(((a5==1)&&(((input==3)&&(a0==1))&&(a12==10)))&&(a18==1)))&&(a3==7)))&&!(a6==1)))&&(a27==1)))){ + a3 = 6; + a4 = 1; + a15 = 1; + a18 = 0; + a22 = 0; + return -1; + } else if(((a0==1)&&(((a12==9)&&((!(a27==1)&&((a5==1)&&((input==2)&&((!(a6==1)&&((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1)))))||((a6==1)&&((!(a4==1)&&((a18==1)&&(a22==1)))&&(a3==4)))))))&&(a20==1)))&&(a15==1)))){ + if((a18==1)){ + a15 = 0; + a4 = 0; + a6 = 1; + a27 = 1; + a22 = 0; + a18 = 0; + a3 = 6; + a12 = 10; + a0 = 0; + }else{ + a18 = 0; + a3 = 7; + a15 = 0; + a6 = 1; + a4 = 1; + a12 = 11; + a0 = 0; + a22 = 1; + a27 = 1; + } + return 26; + } else if((!(a27==1)&&(!(a6==1)&&((a4==1)&&(!(a15==1)&&(((a20==1)&&((a0==1)&&((a18==1)&&(((a12==10)&&(!(a22==1)&&(input==4)))&&(a5==1)))))&&(a3==5))))))){ + a27 = 1; + a15 = 1; + a22 = 1; + a6 = 1; + a3 = 6; + return 21; + } else if((((a3==4)&&((a12==9)&&((!(a5==1)&&(((!(a22==1)&&((((input==3)&&((a18==1)||!(a18==1)))&&!(a4==1))&&(a27==1)))&&!(a0==1))&&!(a15==1)))&&!(a6==1))))&&(a20==1))){ + a4 = 1; + a12 = 10; + a18 = 0; + a0 = 1; + a22 = 1; + return 21; + } else if(((((a18==1)&&((!(a22==1)&&((a3==6)&&((a27==1)&&(((a20==1)&&(((a12==9)&&(input==2))&&!(a4==1)))&&!(a5==1)))))&&!(a15==1)))&&(a6==1))&&!(a0==1))){ + a22 = 1; + a5 = 1; + a3 = 4; + a0 = 1; + a15 = 1; + a12 = 11; + return 21; + } else if(((a20==1)&&((a4==1)&&(((a6==1)&&((a0==1)&&((a5==1)&&((!(a27==1)&&(((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==1))&&(a15==1)))&&(a12==11)))))&&(a3==8))))){ + a4 = 0; + a22 = 0; + a3 = 6; + a6 = 0; + a12 = 12; + a27 = 1; + a18 = 0; + return 21; + } else if(((((a5==1)&&((((!(a15==1)&&((a20==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))||((a3==7)&&(!(a18==1)&&(a22==1))))&&(input==6))))&&(a27==1))&&(a12==8))&&!(a4==1)))&&!(a6==1))&&!(a0==1))){ + a22 = 1; + a3 = 4; + a4 = 1; + a18 = 1; + a0 = 1; + a15 = 1; + a6 = 1; + return -1; + } else if(((a5==1)&&((!(a6==1)&&((((!(a0==1)&&((a12==11)&&((a3==7)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2)))))&&(a20==1))&&!(a15==1))&&!(a27==1)))&&!(a4==1)))){ + if((a3==4)){ + a5 = 0; + a3 = 6; + a18 = 1; + a12 = 9; + a6 = 1; + a22 = 1; + a4 = 1; + }else{ + a18 = 0; + a6 = 1; + a22 = 1; + a4 = 1; + a3 = 8; + a27 = 1; + a12 = 10; + } + return 26; + } else if((((a20==1)&&((((a12==11)&&((!(a5==1)&&((!(a4==1)&&((input==4)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))))&&(a27==1)))&&(a15==1)))&&!(a6==1))&&(a3==6)))&&(a0==1))){ + a6 = 1; + a5 = 1; + a12 = 8; + a4 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((((((((((a22==1)&&((((input==3)&&(a20==1))&&!(a18==1))&&!(a27==1)))&&!(a5==1))&&(a6==1))&&(a3==8))&&(a4==1))&&(a15==1))&&(a12==11))&&!(a0==1))){ + a6 = 0; + a0 = 1; + a27 = 1; + a12 = 8; + a3 = 4; + a5 = 1; + return 21; + } else if(((((!(a27==1)&&((a6==1)&&((a0==1)&&((a4==1)&&(((input==3)&&((((a3==7)&&((a18==1)&&!(a22==1)))||((a3==7)&&(!(a18==1)&&!(a22==1))))||((a3==8)&&((a22==1)&&(a18==1)))))&&(a20==1))))))&&!(a15==1))&&(a12==11))&&(a5==1))){ + a3 = 4; + a27 = 1; + a22 = 1; + a15 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((a5==1)&&((a12==9)&&((a3==6)&&(!(a22==1)&&((a15==1)&&(((!(a6==1)&&(!(a27==1)&&(((input==6)&&!(a0==1))&&(a18==1))))&&(a20==1))&&(a4==1)))))))){ + a18 = 0; + a0 = 1; + a27 = 1; + a22 = 1; + a12 = 8; + a6 = 1; + a3 = 8; + return 26; + } else if((((((a20==1)&&(!(a27==1)&&((a18==1)&&(!(a6==1)&&((((a3==4)&&((a15==1)&&(input==1)))&&(a12==10))&&(a4==1))))))&&!(a0==1))&&(a22==1))&&!(a5==1))){ + a22 = 0; + a0 = 1; + a18 = 0; + a3 = 5; + a12 = 8; + a6 = 1; + a5 = 1; + a27 = 1; + return 21; + } else if(((!(a0==1)&&((a27==1)&&((a15==1)&&(((a6==1)&&((!(a4==1)&&((input==6)&&(((a3==8)&&(!(a18==1)&&(a22==1)))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1)))))))&&(a20==1)))&&(a12==12)))))&&!(a5==1))){ + if((a3==8)){ + a3 = 8; + a15 = 0; + a12 = 9; + a0 = 1; + a22 = 1; + a18 = 1; + a6 = 0; + }else{ + a22 = 1; + a4 = 1; + a12 = 10; + a0 = 1; + a18 = 0; + a27 = 0; + a3 = 6; + } + return -1; + } else if(((a20==1)&&(((a27==1)&&((((a6==1)&&(!(a15==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==5))&&(a3==6))&&!(a4==1))))&&(a0==1))&&(a12==8)))&&!(a5==1)))){ + a18 = 1; + a3 = 5; + a22 = 0; + a12 = 11; + a5 = 1; + return 21; + } else if((((a27==1)&&(!(a15==1)&&(((((a22==1)&&(((a5==1)&&((a12==12)&&((a0==1)&&(input==6))))&&(a4==1)))&&(a20==1))&&!(a18==1))&&!(a6==1))))&&(a3==4))){ + a12 = 10; + a4 = 0; + a3 = 5; + a18 = 1; + a22 = 0; + return -1; + } else if(((!(a0==1)&&(((!(a4==1)&&((a12==9)&&((a27==1)&&((input==2)&&(((((a3==8)&&(!(a22==1)&&(a18==1)))&&(a6==1))||((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1)))))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4))))))))&&(a20==1))&&!(a5==1)))&&(a15==1))){ + a0 = 1; + a3 = 5; + a18 = 1; + a12 = 11; + a5 = 1; + a6 = 0; + a22 = 0; + return 26; + } else if(((a20==1)&&(((a27==1)&&((a12==11)&&(!(a18==1)&&(((a0==1)&&((a5==1)&&(((!(a22==1)&&(input==2))&&(a3==5))&&!(a6==1))))&&!(a4==1)))))&&!(a15==1)))){ + a15 = 1; + a0 = 0; + a3 = 7; + a5 = 0; + a12 = 9; + return 26; + } else if((((!(a5==1)&&(!(a15==1)&&((a20==1)&&((!(a4==1)&&(((input==4)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8)))||(((a22==1)&&!(a18==1))&&(a3==8))))&&(a6==1)))&&!(a0==1)))))&&(a12==8))&&!(a27==1))){ + a5 = 1; + a3 = 8; + a27 = 1; + a0 = 1; + a18 = 1; + a22 = 1; + a15 = 1; + return -1; + } else if((!(a6==1)&&(!(a0==1)&&(((((a12==10)&&((a27==1)&&(!(a4==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==6))&&(a15==1)))))&&(a20==1))&&(a3==8))&&!(a5==1))))){ + a4 = 1; + a12 = 8; + a3 = 4; + a0 = 1; + a5 = 1; + a6 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((a3==5)&&((((a20==1)&&(!(a22==1)&&(((!(a4==1)&&(((a15==1)&&(!(a18==1)&&(input==3)))&&(a12==10)))&&(a27==1))&&!(a0==1))))&&(a6==1))&&!(a5==1)))){ + a3 = 8; + a0 = 1; + a18 = 1; + return -1; + } else if(((a20==1)&&(((a4==1)&&((a0==1)&&((!(a15==1)&&((!(a27==1)&&((!(a18==1)&&((a3==6)&&(input==3)))&&(a12==12)))&&!(a5==1)))&&(a22==1))))&&(a6==1)))){ + a12 = 8; + a3 = 4; + a5 = 1; + a27 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if((((((((!(a5==1)&&(((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1)))&&(input==5)))&&!(a4==1))&&(a20==1))&&(a27==1))&&(a12==12))&&!(a15==1))&&(a0==1))){ + if((a12==10)){ + a0 = 0; + a12 = 10; + a6 = 1; + a15 = 1; + a3 = 7; + a18 = 1; + a5 = 1; + a4 = 1; + a22 = 1; + }else{ + a6 = 0; + a5 = 1; + a4 = 1; + a12 = 9; + a18 = 0; + a27 = 0; + a3 = 4; + a22 = 0; + a15 = 1; + } + return 21; + } else if((((a12==10)&&((a27==1)&&(((a22==1)&&((a20==1)&&((((a18==1)&&((!(a4==1)&&(input==1))&&!(a0==1)))&&!(a6==1))&&!(a5==1))))&&(a3==5))))&&!(a15==1))){ + a22 = 0; + a0 = 1; + a6 = 1; + a3 = 7; + return 26; + } else if(((a0==1)&&((a12==9)&&((((!(a22==1)&&((a4==1)&&((((a6==1)&&((input==1)&&(a5==1)))&&(a3==4))&&(a18==1))))&&!(a27==1))&&(a15==1))&&(a20==1))))){ + a15 = 0; + a5 = 0; + a4 = 0; + a3 = 7; + a22 = 1; + a12 = 8; + a6 = 0; + a18 = 0; + return 21; + } else if(((a27==1)&&(!(a0==1)&&(((a12==8)&&((((a3==8)&&(((a6==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6)))&&(a4==1)))&&(a15==1))&&(a20==1)))&&!(a5==1))))){ + if((a3==6)){ + a15 = 0; + a5 = 1; + a22 = 0; + a6 = 0; + a18 = 0; + a3 = 5; + a12 = 10; + }else{ + a18 = 0; + a3 = 5; + a5 = 1; + a22 = 0; + a0 = 1; + a15 = 0; + a27 = 0; + a12 = 9; + a4 = 0; + } + return 24; + } else if(((a3==7)&&((a0==1)&&((((a4==1)&&((a12==11)&&(!(a27==1)&&((a20==1)&&((a6==1)&&((input==6)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))))))&&!(a15==1))&&!(a5==1))))){ + a22 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + a18 = 1; + a15 = 1; + a27 = 1; + return -1; + } else if(((a3==5)&&((!(a6==1)&&(((a4==1)&&(((a27==1)&&((((a18==1)&&(!(a5==1)&&(input==6)))&&(a15==1))&&(a12==10)))&&!(a0==1)))&&!(a22==1)))&&(a20==1)))){ + a15 = 0; + a18 = 0; + a3 = 6; + a0 = 1; + return 21; + } else if((!(a15==1)&&(!(a27==1)&&((a4==1)&&((!(a6==1)&&((a20==1)&&(((a12==10)&&(!(a18==1)&&((a3==4)&&((a22==1)&&(input==6)))))&&(a5==1))))&&!(a0==1)))))){ + if((a20==1)){ + a18 = 1; + a12 = 8; + a0 = 1; + a15 = 1; + a22 = 0; + a27 = 1; + a3 = 5; + }else{ + a3 = 5; + a6 = 1; + a0 = 1; + a4 = 0; + a27 = 1; + a12 = 8; + a15 = 1; + a18 = 1; + } + return -1; + } else if(((a22==1)&&(!(a4==1)&&((a12==9)&&((a27==1)&&((((a5==1)&&(!(a18==1)&&((a3==6)&&(((input==3)&&(a6==1))&&(a15==1)))))&&(a20==1))&&(a0==1))))))){ + a18 = 1; + a22 = 0; + a4 = 1; + a5 = 0; + a12 = 12; + return 21; + } else if((((!(a6==1)&&(((((!(a0==1)&&((a12==11)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==5))))&&(a20==1))&&!(a15==1))&&!(a4==1))&&(a3==4)))&&(a27==1))&&(a5==1))){ + a0 = 1; + a3 = 6; + a15 = 1; + a12 = 10; + a4 = 1; + a22 = 0; + a18 = 1; + return -1; + } else if(((((a12==12)&&(((((a18==1)&&((a27==1)&&((((a3==5)&&(input==5))&&(a5==1))&&(a0==1))))&&(a20==1))&&!(a4==1))&&!(a22==1)))&&!(a6==1))&&!(a15==1))){ + a12 = 10; + a15 = 1; + return 21; + } else if(((a20==1)&&(((a3==4)&&((((!(a27==1)&&(!(a0==1)&&((((a15==1)&&(input==6))&&!(a4==1))&&!(a5==1))))&&!(a22==1))&&(a6==1))&&!(a18==1)))&&(a12==9)))){ + a3 = 7; + a22 = 1; + a12 = 8; + return 21; + } else if((((((a3==5)&&(((!(a22==1)&&((a5==1)&&(!(a15==1)&&(((input==1)&&(a6==1))&&(a20==1)))))&&!(a0==1))&&(a18==1)))&&(a27==1))&&(a4==1))&&(a12==8))){ + a18 = 0; + a12 = 10; + a22 = 1; + a3 = 4; + a0 = 1; + return 21; + } else if((((a0==1)&&((((a6==1)&&((!(a5==1)&&(!(a4==1)&&((a12==11)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==4)))))&&(a3==4)))&&(a20==1))&&(a15==1)))&&!(a27==1))){ + a15 = 0; + a3 = 6; + a12 = 8; + a22 = 1; + a18 = 0; + return -1; + } else if(((((a4==1)&&(!(a0==1)&&(((a12==9)&&(((a15==1)&&((a27==1)&&((input==6)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))))&&(a5==1)))&&!(a6==1))))&&(a20==1))&&(a3==7))){ + a18 = 0; + a0 = 1; + a22 = 1; + a3 = 8; + a15 = 0; + a12 = 11; + return 21; + } else if((!(a15==1)&&((a4==1)&&((a20==1)&&((a6==1)&&(((((a3==6)&&(((a0==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a12==9)))&&(a22==1))&&(a27==1))&&(a5==1))))))){ + a22 = 0; + a5 = 0; + a12 = 10; + a18 = 1; + a6 = 0; + a4 = 0; + return 26; + } else if((!(a4==1)&&((a12==12)&&((a6==1)&&((a20==1)&&((a15==1)&&(((((a3==8)&&((a27==1)&&((input==5)&&((a18==1)||!(a18==1)))))&&(a5==1))&&!(a22==1))&&(a0==1)))))))){ + a22 = 1; + a3 = 5; + a4 = 1; + a12 = 11; + a18 = 0; + a15 = 0; + return 21; + } else if(((a15==1)&&((((((!(a4==1)&&(((((input==6)&&!(a22==1))&&(a20==1))&&(a5==1))&&!(a0==1)))&&(a6==1))&&(a3==7))&&(a12==11))&&!(a27==1))&&!(a18==1)))){ + if((a0==1)){ + a27 = 1; + a22 = 1; + a0 = 1; + a6 = 0; + a4 = 1; + a18 = 1; + a12 = 8; + a3 = 6; + }else{ + a12 = 8; + a0 = 1; + a27 = 1; + a18 = 1; + a4 = 1; + a6 = 0; + } + return -1; + } else if((!(a6==1)&&((((a0==1)&&(!(a5==1)&&((a3==5)&&((a4==1)&&((a20==1)&&((a12==10)&&((input==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))))))))&&(a27==1))&&(a15==1)))){ + a6 = 1; + a18 = 1; + a4 = 0; + a3 = 7; + a27 = 0; + a22 = 0; + a5 = 1; + return 26; + } else if((((a20==1)&&(((((a3==5)&&(!(a15==1)&&(((!(a27==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a4==1))&&!(a22==1))))&&(a12==8))&&(a5==1))&&!(a6==1)))&&(a0==1))){ + a6 = 1; + a18 = 0; + a12 = 11; + a15 = 1; + a27 = 1; + a5 = 0; + a3 = 7; + return 21; + } else if((((((!(a0==1)&&((a12==10)&&((a20==1)&&(!(a22==1)&&(((a3==8)&&((input==5)&&((a18==1)||!(a18==1))))&&(a27==1))))))&&!(a15==1))&&(a6==1))&&(a5==1))&&(a4==1))){ + a0 = 1; + a12 = 11; + a18 = 0; + a15 = 1; + a3 = 5; + a4 = 0; + a6 = 0; + a22 = 1; + return -1; + } else if(((a3==5)&&((((!(a0==1)&&(!(a6==1)&&((a12==10)&&((a20==1)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==1))&&!(a5==1))))))&&!(a4==1))&&!(a27==1))&&(a15==1)))){ + if((a12==12)){ + a4 = 1; + a3 = 4; + a22 = 0; + a6 = 1; + a27 = 1; + a12 = 8; + a18 = 0; + a5 = 1; + a0 = 1; + }else{ + a22 = 0; + a5 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + a3 = 6; + a27 = 1; + a4 = 1; + } + return -1; + } else if((((a5==1)&&((((a6==1)&&((!(a0==1)&&((a15==1)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==4))&&(a20==1))))&&!(a4==1)))&&(a3==5))&&(a12==9)))&&(a27==1))){ + a18 = 1; + a4 = 1; + a12 = 8; + a0 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if((((((a6==1)&&((((a12==8)&&((a20==1)&&((a27==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==3)))))&&(a5==1))&&(a3==6)))&&(a15==1))&&(a4==1))&&!(a0==1))){ + if((a15==1)){ + a15 = 0; + a18 = 0; + a3 = 8; + a4 = 0; + a22 = 0; + a12 = 11; + a6 = 0; + }else{ + a15 = 0; + a3 = 5; + a22 = 1; + a0 = 1; + a12 = 10; + a18 = 0; + a27 = 0; + a6 = 0; + } + return -1; + } else if(((a20==1)&&(((!(a4==1)&&(!(a27==1)&&((a0==1)&&(!(a5==1)&&(!(a18==1)&&((((input==2)&&(a22==1))&&(a12==8))&&(a3==6)))))))&&(a6==1))&&!(a15==1)))){ + a3 = 4; + a4 = 1; + a22 = 0; + a12 = 10; + a27 = 1; + a6 = 0; + return -1; + } else if(((a0==1)&&(!(a27==1)&&(((a4==1)&&((a20==1)&&((((((((a22==1)&&(a18==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a22==1)&&!(a18==1)))))&&(input==2))&&!(a6==1))&&(a15==1))&&!(a5==1))))&&(a12==10))))){ + if((a18==1)){ + a4 = 0; + a18 = 0; + a22 = 1; + a6 = 1; + a15 = 0; + a3 = 8; + a12 = 12; + }else{ + a3 = 5; + a6 = 1; + a27 = 1; + a15 = 0; + a5 = 1; + a18 = 1; + a22 = 0; + } + return 21; + } else if(((!(a6==1)&&((((a12==9)&&(!(a18==1)&&(!(a5==1)&&((a4==1)&&((a22==1)&&(!(a27==1)&&((input==6)&&(a3==7))))))))&&(a20==1))&&(a15==1)))&&!(a0==1))){ + a4 = 0; + a5 = 1; + a18 = 1; + a27 = 1; + a12 = 8; + a3 = 8; + a0 = 1; + a6 = 1; + return 21; + } else if(((a12==11)&&(((a18==1)&&(!(a15==1)&&(!(a0==1)&&((a4==1)&&(((((a3==4)&&((input==1)&&(a20==1)))&&(a5==1))&&(a6==1))&&!(a27==1))))))&&(a22==1)))){ + if((a27==1)){ + a12 = 10; + a15 = 1; + a3 = 8; + a22 = 0; + }else{ + a27 = 1; + a6 = 0; + a22 = 0; + a12 = 8; + a18 = 0; + a0 = 1; + a15 = 1; + } + return -1; + } else if(((!(a27==1)&&((((a12==10)&&((a3==7)&&((a4==1)&&(!(a0==1)&&(((input==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&!(a6==1))))))&&(a5==1))&&(a20==1)))&&(a15==1))){ + a0 = 1; + a15 = 0; + a3 = 8; + a6 = 1; + a22 = 1; + a18 = 1; + a12 = 12; + return 21; + } else if(((a20==1)&&(((a15==1)&&((a27==1)&&((!(a0==1)&&(!(a6==1)&&(!(a4==1)&&((a5==1)&&((input==5)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))))))&&(a3==7))))&&(a12==10)))){ + a18 = 0; + a12 = 9; + a27 = 0; + a0 = 1; + a3 = 4; + a22 = 1; + a4 = 1; + return 21; + } else if(((((((!(a22==1)&&(!(a18==1)&&(((a12==9)&&(!(a4==1)&&(!(a15==1)&&(input==5))))&&(a20==1))))&&!(a6==1))&&(a3==6))&&(a27==1))&&!(a0==1))&&(a5==1))){ + a3 = 4; + a12 = 8; + a15 = 1; + a0 = 1; + a6 = 1; + a18 = 1; + a22 = 1; + a4 = 1; + return -1; + } else if(((a5==1)&&(((((a4==1)&&(((a15==1)&&(((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==4))&&(a20==1))&&(a12==8)))&&!(a0==1)))&&(a3==4))&&(a27==1))&&!(a6==1)))){ + a12 = 12; + a22 = 1; + a27 = 0; + a4 = 0; + a15 = 0; + a18 = 1; + a0 = 1; + a3 = 6; + return 26; + } else if(((a12==9)&&((((a15==1)&&(((!(a27==1)&&((a5==1)&&((((a3==5)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4))))&&(input==5))))&&(a20==1))&&(a4==1)))&&!(a6==1))&&!(a0==1)))){ + a6 = 1; + a12 = 8; + a18 = 0; + a15 = 0; + a3 = 6; + a5 = 0; + a22 = 0; + return 21; + } else if((((((a6==1)&&(((a20==1)&&(!(a5==1)&&((((a27==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a4==1))&&!(a15==1))))&&(a3==5)))&&(a12==9))&&(a22==1))&&(a0==1))){ + a18 = 1; + a3 = 4; + a5 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if(((a4==1)&&(((((a12==8)&&((a0==1)&&((a20==1)&&(((a15==1)&&((input==5)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))))&&!(a27==1)))))&&(a3==7))&&(a6==1))&&(a5==1)))){ + a3 = 4; + a12 = 12; + a5 = 0; + a15 = 0; + a6 = 0; + a27 = 1; + a22 = 1; + a18 = 1; + return 21; + } else if((((a4==1)&&(!(a5==1)&&(((a20==1)&&(((!(a27==1)&&(!(a0==1)&&((input==5)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&!(a15==1))&&(a12==10)))&&(a3==8))))&&!(a6==1))){ + a4 = 0; + a27 = 1; + a6 = 1; + a12 = 8; + a5 = 1; + a22 = 0; + a0 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if(((((((a20==1)&&(!(a5==1)&&(!(a15==1)&&((a12==11)&&((input==6)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7))))))))&&!(a27==1))&&(a6==1))&&!(a0==1))&&(a4==1))){ + if((a27==1)){ + a22 = 0; + a3 = 6; + a15 = 1; + a0 = 1; + a18 = 1; + a6 = 0; + a12 = 8; + a27 = 1; + a5 = 1; + }else{ + a3 = 5; + a6 = 0; + a12 = 10; + a18 = 1; + a27 = 1; + a5 = 1; + a22 = 1; + } + return 21; + } else if((((a15==1)&&((a27==1)&&(!(a6==1)&&(((a4==1)&&((((a3==8)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==4)))&&(a20==1))&&(a12==12)))&&!(a0==1)))))&&!(a5==1))){ + a0 = 1; + a18 = 1; + a3 = 6; + a12 = 8; + a4 = 0; + a5 = 1; + a6 = 1; + a22 = 1; + return 24; + } else if(((a0==1)&&((((((((a3==8)&&(!(a4==1)&&((((!(a22==1)&&!(a18==1))&&!(a5==1))&&!(a15==1))&&(a12==10))))&&!(a6==1))||((a6==1)&&(((((a15==1)&&(((a22==1)&&(a18==1))&&(a5==1)))&&(a12==11))&&(a4==1))&&(a3==4))))||((((a4==1)&&((((a5==1)&&(!(a18==1)&&(a22==1)))&&(a15==1))&&(a12==11)))&&(a3==4))&&(a6==1)))&&(input==4))&&!(a27==1))&&(a20==1)))){ + a22 = 0; + a4 = 1; + a27 = 1; + a6 = 0; + a3 = 8; + a12 = 8; + a0 = 0; + a5 = 1; + a15 = 0; + a18 = 0; + return 24; + } else if((((a0==1)&&(((((a12==9)&&((a4==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==6))&&(a3==4))&&(a20==1))))&&!(a5==1))&&(a15==1))&&!(a6==1)))&&!(a27==1))){ + a27 = 1; + a22 = 1; + a18 = 1; + a15 = 0; + a12 = 10; + a3 = 5; + return 21; + } else if((!(a15==1)&&((a12==10)&&((((a5==1)&&((a4==1)&&(((a27==1)&&((input==3)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a18==1)&&(a22==1))))))&&(a20==1))))&&(a0==1))&&!(a6==1))))){ + a18 = 1; + a3 = 5; + a22 = 1; + a15 = 1; + return -1; + } else if(((a3==6)&&((a22==1)&&((!(a5==1)&&((!(a15==1)&&(((((!(a27==1)&&(input==6))&&(a18==1))&&!(a4==1))&&(a12==11))&&!(a6==1)))&&(a20==1)))&&!(a0==1))))){ + a12 = 12; + a22 = 0; + a27 = 1; + a6 = 1; + a3 = 4; + return 26; + } else if((((a12==8)&&(((a27==1)&&((((a20==1)&&((a0==1)&&(((((!(a22==1)&&(a18==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==1))))&&!(a5==1))&&!(a15==1)))&&(a4==1)))&&(a6==1))){ + a22 = 0; + a18 = 0; + a12 = 10; + a0 = 0; + a4 = 0; + a5 = 1; + a6 = 0; + a3 = 7; + a15 = 1; + return 21; + } else if(((a6==1)&&((a4==1)&&((((((a15==1)&&(((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==6))&&(a12==10))&&(a0==1)))&&(a20==1))&&(a5==1))&&(a27==1))&&(a3==7))))){ + a3 = 4; + a12 = 8; + a18 = 1; + a22 = 1; + return -1; + } else if((((!(a5==1)&&(((a4==1)&&(((a12==10)&&(((input==1)&&((((a22==1)&&!(a18==1))&&(a3==7))||(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))))&&!(a15==1)))&&(a20==1)))&&(a0==1)))&&!(a6==1))&&(a27==1))){ + a5 = 1; + a22 = 0; + a3 = 6; + a18 = 0; + return -1; + } else if(((a15==1)&&(((((!(a27==1)&&(((((a12==8)&&((input==5)&&!(a6==1)))&&(a22==1))&&!(a0==1))&&(a18==1)))&&!(a5==1))&&(a4==1))&&(a20==1))&&(a3==5)))){ + a27 = 1; + a15 = 0; + a3 = 8; + a5 = 1; + a6 = 1; + a0 = 1; + a18 = 0; + a4 = 0; + return 24; + } else if(((((a0==1)&&(((a12==12)&&(((a4==1)&&((a5==1)&&((a20==1)&&((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))&&(a15==1)))&&(a3==8)))&&!(a27==1))&&(a6==1))){ + a22 = 1; + a18 = 1; + a4 = 0; + a12 = 9; + a6 = 0; + a3 = 4; + return -1; + } else if((((!(a4==1)&&((a6==1)&&(((((a27==1)&&(((((a18==1)&&(a22==1))&&(a3==5))||(((!(a22==1)&&(a18==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4))))&&(input==1)))&&(a12==11))&&(a20==1))&&(a0==1))))&&(a5==1))&&!(a15==1))){ + a3 = 8; + a22 = 0; + a4 = 1; + a12 = 10; + a18 = 0; + return -1; + } else if((((a22==1)&&((((((!(a18==1)&&((((input==4)&&(a0==1))&&(a20==1))&&(a27==1)))&&(a4==1))&&(a12==12))&&(a15==1))&&(a3==7))&&!(a5==1)))&&(a6==1))){ + a12 = 10; + a22 = 0; + a15 = 0; + a3 = 4; + a6 = 0; + a5 = 1; + return -1; + } else if(((((((a4==1)&&((a20==1)&&(!(a5==1)&&(((a3==8)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==6)))&&!(a15==1)))))&&(a27==1))&&!(a0==1))&&(a6==1))&&(a12==8))){ + a15 = 1; + a6 = 0; + a22 = 1; + a3 = 5; + a0 = 1; + a18 = 0; + a12 = 9; + a27 = 0; + return 26; + } else if(((((((((a12==12)&&((a5==1)&&(!(a15==1)&&(!(a22==1)&&((input==5)&&!(a27==1))))))&&(a3==6))&&(a20==1))&&(a4==1))&&(a0==1))&&!(a18==1))&&(a6==1))){ + a4 = 0; + a12 = 8; + a15 = 1; + a22 = 1; + a3 = 7; + return -1; + } else if((!(a6==1)&&(!(a15==1)&&(!(a27==1)&&((!(a4==1)&&((a20==1)&&((a12==10)&&(((input==4)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))||(((a22==1)&&!(a18==1))&&(a3==6))))&&!(a5==1)))))&&!(a0==1)))))){ + a5 = 1; + a4 = 1; + a22 = 1; + a27 = 1; + a18 = 0; + a12 = 8; + a3 = 5; + a0 = 1; + a15 = 1; + return -1; + } else if((!(a5==1)&&(((((((!(a22==1)&&((((input==4)&&((a18==1)||!(a18==1)))&&(a4==1))&&!(a15==1)))&&!(a0==1))&&(a6==1))&&(a27==1))&&(a20==1))&&(a3==4))&&(a12==12)))){ + a4 = 0; + a6 = 0; + a3 = 7; + a27 = 0; + a15 = 1; + a12 = 8; + a18 = 1; + a5 = 1; + return -1; + } return calculate_output15(input); + } + + int calculate_output15(int input) { + if((!(a0==1)&&(!(a22==1)&&(!(a6==1)&&(((((!(a4==1)&&((a20==1)&&((a3==6)&&((input==6)&&!(a5==1)))))&&(a27==1))&&!(a18==1))&&!(a15==1))&&(a12==10)))))){ + a6 = 1; + a0 = 1; + a15 = 1; + a5 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + a22 = 1; + a4 = 1; + return -1; + } else if(((((!(a15==1)&&(!(a4==1)&&(((a12==11)&&((a20==1)&&((input==2)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))||(((a22==1)&&!(a18==1))&&(a3==8))))))&&!(a0==1))))&&(a27==1))&&!(a6==1))&&(a5==1))){ + a22 = 1; + a18 = 1; + a0 = 1; + a3 = 4; + a5 = 0; + return -1; + } else if(((a5==1)&&((a12==8)&&(((a15==1)&&(((a20==1)&&(!(a27==1)&&(!(a6==1)&&((a4==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==2))))))&&!(a0==1)))&&(a3==4))))){ + a6 = 1; + a18 = 0; + a27 = 1; + a3 = 6; + a0 = 1; + a22 = 0; + return -1; + } else if((!(a6==1)&&((a22==1)&&((a15==1)&&((((a3==8)&&(!(a5==1)&&((a18==1)&&((a20==1)&&((a12==11)&&((input==6)&&!(a4==1)))))))&&(a0==1))&&(a27==1)))))){ + a4 = 1; + a12 = 8; + a3 = 4; + a6 = 1; + a5 = 1; + return -1; + } else if(((((((!(a0==1)&&(!(a5==1)&&(((a20==1)&&((input==3)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))))&&!(a6==1))))&&(a3==4))&&(a4==1))&&!(a15==1))&&(a27==1))&&(a12==8))){ + a5 = 1; + a15 = 1; + a18 = 1; + a22 = 1; + a6 = 1; + a0 = 1; + return -1; + } else if((!(a0==1)&&((a20==1)&&(((a12==11)&&(((!(a6==1)&&((!(a4==1)&&(((a5==1)&&(!(a18==1)&&!(a22==1)))&&!(a15==1)))&&(a3==8)))||((a6==1)&&(((a4==1)&&((a15==1)&&(((a22==1)&&(a18==1))&&!(a5==1))))&&(a3==4))))&&(input==3)))&&!(a27==1))))){ + if((a5==1)){ + a4 = 0; + a18 = 0; + a15 = 1; + a5 = 0; + a22 = 1; + a6 = 0; + a3 = 6; + }else{ + a15 = 1; + a18 = 1; + a6 = 0; + a3 = 6; + a22 = 0; + a4 = 1; + a5 = 0; + } + return 21; + } else if((!(a0==1)&&((a5==1)&&((a4==1)&&(!(a6==1)&&(((a12==11)&&((((a27==1)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==6)))&&(a3==6))&&(a15==1)))&&(a20==1))))))){ + a18 = 0; + a22 = 1; + a0 = 1; + a12 = 10; + a6 = 1; + return -1; + } else if(((((!(a15==1)&&(((a20==1)&&(((((((a22==1)&&!(a18==1))&&(a3==8))||(((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1)))))&&(input==6))&&(a12==11))&&!(a27==1)))&&!(a4==1)))&&(a6==1))&&!(a5==1))&&(a0==1))){ + if((a4==1)){ + a27 = 1; + a22 = 0; + a5 = 1; + a12 = 9; + a0 = 0; + a3 = 6; + a15 = 1; + a6 = 0; + a18 = 1; + }else{ + a3 = 7; + a15 = 1; + a22 = 0; + a5 = 1; + a12 = 12; + a0 = 0; + a27 = 1; + a6 = 0; + a18 = 0; + } + return -1; + } else if((!(a22==1)&&((a12==9)&&((((a18==1)&&((((((a3==5)&&((input==4)&&!(a27==1)))&&!(a4==1))&&!(a6==1))&&(a15==1))&&(a20==1)))&&(a5==1))&&(a0==1))))){ + a12 = 8; + a15 = 0; + a4 = 1; + a3 = 8; + return -1; + } else if(((!(a5==1)&&((a0==1)&&(((a20==1)&&((a4==1)&&(!(a15==1)&&(((input==2)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))||((!(a18==1)&&(a22==1))&&(a3==8))))&&(a12==8)))))&&!(a27==1))))&&!(a6==1))){ + if((a12==10)){ + a22 = 0; + a4 = 0; + a3 = 5; + a27 = 1; + a0 = 0; + a18 = 1; + }else{ + a3 = 5; + a5 = 1; + a12 = 12; + a18 = 0; + a22 = 1; + a27 = 1; + a4 = 0; + a6 = 1; + } + return 26; + } else if((!(a15==1)&&((((!(a6==1)&&((a3==5)&&((a12==10)&&((a27==1)&&(((input==6)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&(a20==1))))))&&(a4==1))&&!(a0==1))&&(a5==1)))){ + a22 = 1; + a0 = 1; + a12 = 8; + a3 = 4; + a6 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if(((a22==1)&&((a6==1)&&((a12==9)&&((a20==1)&&(!(a0==1)&&((a3==8)&&((a5==1)&&((!(a27==1)&&((a15==1)&&(((a18==1)||!(a18==1))&&(input==3))))&&(a4==1)))))))))){ + if((a15==1)){ + a27 = 1; + a3 = 5; + a12 = 10; + a5 = 0; + a22 = 0; + a18 = 0; + }else{ + a5 = 0; + a12 = 12; + a18 = 0; + a6 = 0; + a0 = 1; + } + return 21; + } else if((!(a0==1)&&((a4==1)&&(!(a18==1)&&(!(a15==1)&&((!(a5==1)&&((a12==10)&&((a20==1)&&(!(a6==1)&&((!(a27==1)&&(input==5))&&(a22==1))))))&&(a3==4))))))){ + a6 = 1; + a3 = 5; + a4 = 0; + a0 = 1; + a15 = 1; + a27 = 1; + a12 = 8; + a5 = 1; + return 21; + } else if((!(a15==1)&&(((a3==5)&&((((((a20==1)&&((((input==2)&&((a18==1)||!(a18==1)))&&!(a27==1))&&(a4==1)))&&(a22==1))&&(a12==11))&&(a5==1))&&(a0==1)))&&(a6==1)))){ + a18 = 1; + a27 = 1; + a3 = 4; + a12 = 8; + a15 = 1; + return -1; + } else if(((a6==1)&&(((a0==1)&&(!(a15==1)&&((a27==1)&&(((((((a3==6)&&(!(a18==1)&&(a22==1)))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a18==1)&&(a22==1)))))&&(input==5))&&(a12==10))&&(a20==1))&&(a4==1)))))&&(a5==1)))){ + a18 = 1; + a15 = 1; + a6 = 0; + a5 = 0; + a12 = 12; + a22 = 1; + a3 = 7; + return 21; + } else if((((!(a0==1)&&((a3==5)&&((!(a18==1)&&((a22==1)&&((a4==1)&&((!(a5==1)&&((input==1)&&(a15==1)))&&(a12==11)))))&&(a27==1))))&&(a6==1))&&(a20==1))){ + a0 = 1; + a5 = 1; + a6 = 0; + a3 = 7; + a4 = 0; + a12 = 12; + a22 = 0; + a15 = 0; + return -1; + } else if((!(a4==1)&&(((!(a15==1)&&((((a0==1)&&(!(a22==1)&&(((a6==1)&&((input==2)&&((a18==1)||!(a18==1))))&&(a12==12))))&&(a20==1))&&(a3==6)))&&!(a5==1))&&(a27==1)))){ + a12 = 10; + a22 = 1; + a27 = 0; + a15 = 1; + a18 = 1; + return 21; + } else if((!(a18==1)&&((a4==1)&&((((((!(a22==1)&&((a20==1)&&(((input==5)&&!(a5==1))&&!(a6==1))))&&(a0==1))&&(a12==11))&&(a3==5))&&(a15==1))&&!(a27==1))))){ + a3 = 4; + a4 = 0; + a12 = 10; + a22 = 1; + return -1; + } else if(((a12==12)&&((!(a0==1)&&(((a4==1)&&(((!(a15==1)&&((a3==7)&&((input==6)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))))&&(a6==1))&&!(a5==1)))&&(a27==1)))&&(a20==1)))){ + a18 = 1; + a5 = 1; + a12 = 8; + a15 = 1; + a0 = 1; + a6 = 0; + a22 = 0; + return -1; + } else if(((a3==8)&&((a27==1)&&((!(a5==1)&&(((a4==1)&&((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6))&&(a6==1))&&!(a15==1))&&(a20==1)))&&(a0==1)))&&(a12==8))))){ + a4 = 0; + a18 = 0; + a12 = 12; + a22 = 0; + a5 = 1; + a0 = 0; + a3 = 7; + a15 = 1; + return 26; + } else if(((!(a27==1)&&((a4==1)&&((a0==1)&&(((((!(a6==1)&&((a12==12)&&(((a18==1)||!(a18==1))&&(input==1))))&&(a3==4))&&!(a15==1))&&(a22==1))&&(a20==1)))))&&(a5==1))){ + a22 = 0; + a5 = 0; + a15 = 1; + a27 = 1; + a18 = 1; + a3 = 6; + return -1; + } else if((((!(a6==1)&&(((((((a3==7)&&((((a18==1)||!(a18==1))&&(input==1))&&!(a0==1)))&&!(a22==1))&&(a12==11))&&!(a27==1))&&(a20==1))&&(a5==1)))&&(a15==1))&&(a4==1))){ + a6 = 1; + a3 = 8; + a18 = 1; + a27 = 1; + a12 = 8; + a22 = 1; + a0 = 1; + return -1; + } else if(((((a20==1)&&(((((a27==1)&&((a0==1)&&((a12==9)&&((!(a6==1)&&(input==1))&&(a18==1)))))&&(a5==1))&&!(a22==1))&&(a3==5)))&&(a4==1))&&!(a15==1))){ + if((a5==1)){ + a12 = 11; + a18 = 0; + a3 = 6; + a0 = 0; + a5 = 0; + }else{ + a3 = 8; + a6 = 1; + a12 = 12; + a22 = 1; + a18 = 0; + a15 = 1; + a4 = 0; + } + return 26; + } else if(((((((((a4==1)&&(!(a15==1)&&((a3==8)&&(!(a6==1)&&((a0==1)&&(input==4))))))&&(a12==11))&&(a5==1))&&(a20==1))&&!(a22==1))&&(a27==1))&&(a18==1))){ + a18 = 0; + a6 = 1; + a4 = 0; + return 26; + } else if(((a20==1)&&((!(a0==1)&&((!(a4==1)&&((((a15==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))||((a3==7)&&((a22==1)&&!(a18==1))))&&(input==6)))&&!(a5==1))&&(a6==1)))&&(a12==8)))&&(a27==1)))){ + a6 = 0; + a18 = 1; + a15 = 0; + a3 = 8; + a12 = 10; + a5 = 1; + a0 = 1; + a22 = 0; + return -1; + } else if(((a27==1)&&(((((!(a4==1)&&(!(a6==1)&&((!(a15==1)&&((a5==1)&&((input==6)&&((a18==1)||!(a18==1)))))&&!(a0==1))))&&(a12==12))&&(a20==1))&&(a3==7))&&!(a22==1)))){ + a18 = 1; + a0 = 1; + a15 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + return 26; + } else if((((!(a0==1)&&((a20==1)&&(((a12==9)&&((a3==6)&&(((a15==1)&&((input==3)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a5==1))))&&(a4==1))))&&!(a6==1))&&(a27==1))){ + a18 = 1; + a4 = 0; + a22 = 1; + a5 = 1; + a12 = 10; + a3 = 5; + a6 = 1; + return 21; + } else if(((!(a15==1)&&((a20==1)&&((!(a5==1)&&(!(a0==1)&&((a6==1)&&((((a4==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a27==1))&&(a22==1)))))&&(a12==11))))&&(a3==6))){ + a0 = 1; + a15 = 1; + a18 = 1; + a3 = 4; + a5 = 1; + a12 = 8; + return -1; + } else if((((a6==1)&&((!(a4==1)&&((a3==5)&&(((a5==1)&&(((((input==2)&&(a20==1))&&(a15==1))&&!(a0==1))&&(a12==8)))&&!(a27==1))))&&(a22==1)))&&!(a18==1))){ + a0 = 1; + a15 = 0; + a5 = 0; + a6 = 0; + a12 = 10; + a3 = 6; + return 26; + } else if((!(a6==1)&&((((((((a20==1)&&(!(a4==1)&&(((input==4)&&!(a18==1))&&!(a0==1))))&&(a15==1))&&(a3==4))&&(a5==1))&&(a12==9))&&(a27==1))&&!(a22==1)))){ + a5 = 0; + a0 = 1; + a12 = 11; + a18 = 1; + a6 = 1; + a22 = 1; + a4 = 1; + a3 = 6; + return -1; + } else if((!(a5==1)&&((a0==1)&&(((a3==8)&&((((a12==12)&&((a22==1)&&((!(a6==1)&&((input==3)&&(a15==1)))&&!(a27==1))))&&(a4==1))&&!(a18==1)))&&(a20==1))))){ + a4 = 0; + a5 = 1; + a27 = 1; + a6 = 1; + a15 = 0; + return 21; + } else if(((!(a0==1)&&((((a6==1)&&((a3==7)&&((a15==1)&&(((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a12==11))&&(a5==1)))))&&!(a4==1))&&(a27==1)))&&(a20==1))){ + a6 = 0; + a0 = 1; + a18 = 0; + a22 = 0; + a3 = 5; + a5 = 0; + a12 = 10; + a15 = 0; + return -1; + } else if((((((a12==9)&&(!(a0==1)&&((a20==1)&&(((a27==1)&&(!(a22==1)&&(!(a5==1)&&((input==1)&&!(a6==1)))))&&!(a4==1)))))&&(a3==7))&&!(a18==1))&&(a15==1))){ + a5 = 1; + a3 = 8; + a12 = 11; + a15 = 0; + a0 = 1; + return 26; + } else if((!(a4==1)&&((a12==9)&&(!(a15==1)&&(((a20==1)&&((!(a6==1)&&(((a5==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1)))&&!(a0==1)))&&!(a27==1)))&&(a3==5)))))){ + if((a5==1)){ + a4 = 1; + a18 = 1; + a15 = 1; + a0 = 1; + a22 = 0; + a3 = 6; + a12 = 8; + a27 = 1; + a6 = 1; + }else{ + a6 = 1; + a27 = 1; + a4 = 1; + a18 = 1; + a22 = 1; + a15 = 1; + a12 = 8; + a3 = 7; + a0 = 1; + } + return -1; + } else if(((a12==8)&&((a4==1)&&(((!(a6==1)&&(((((!(a15==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a22==1))&&(a27==1))&&(a20==1))&&!(a0==1)))&&(a3==5))&&!(a5==1))))){ + a0 = 1; + a6 = 1; + a5 = 1; + a15 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a0==1)&&((a3==8)&&((a20==1)&&(((a6==1)&&(!(a15==1)&&(((!(a18==1)&&((a27==1)&&((input==1)&&(a12==8))))&&(a5==1))&&!(a22==1))))&&(a4==1)))))){ + a5 = 0; + a15 = 1; + a4 = 0; + a6 = 0; + a18 = 1; + return 21; + } else if(((a5==1)&&((((((((a12==11)&&((a22==1)&&(!(a15==1)&&((input==4)&&!(a4==1)))))&&(a3==4))&&!(a0==1))&&(a20==1))&&(a6==1))&&!(a18==1))&&(a27==1)))){ + a5 = 0; + a4 = 1; + a18 = 1; + a22 = 0; + a3 = 7; + a0 = 1; + return 24; + } else if(((a5==1)&&((((a6==1)&&((((a3==4)&&(((((input==6)&&(a22==1))&&!(a0==1))&&!(a15==1))&&(a20==1)))&&!(a27==1))&&(a4==1)))&&(a18==1))&&(a12==11)))){ + if((a22==1)){ + a27 = 1; + a22 = 0; + a0 = 1; + a15 = 1; + a12 = 8; + a18 = 0; + a3 = 7; + }else{ + a12 = 8; + a4 = 0; + a15 = 1; + a3 = 8; + a27 = 1; + a0 = 1; + } + return 21; + } else if(((!(a4==1)&&(!(a6==1)&&(((((((a20==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==1)))&&!(a15==1))&&(a3==5))&&(a5==1))&&!(a0==1))&&(a12==12))))&&(a27==1))){ + a0 = 1; + a15 = 1; + a22 = 0; + a18 = 0; + a12 = 8; + a6 = 1; + return 21; + } else if((((a12==10)&&(!(a15==1)&&((((((!(a27==1)&&((a4==1)&&(((a18==1)||!(a18==1))&&(input==6))))&&!(a22==1))&&(a6==1))&&!(a0==1))&&(a20==1))&&(a3==5))))&&!(a5==1))){ + a6 = 0; + a15 = 1; + a12 = 8; + a22 = 1; + a27 = 1; + a18 = 0; + return 21; + } else if((!(a18==1)&&(((((a12==8)&&(((a0==1)&&(((a20==1)&&(!(a4==1)&&((input==5)&&(a3==8))))&&!(a6==1)))&&!(a15==1)))&&(a5==1))&&!(a22==1))&&(a27==1)))){ + a12 = 9; + a22 = 1; + a6 = 1; + a3 = 5; + a15 = 1; + a18 = 1; + a5 = 0; + return 24; + } else if(((!(a5==1)&&(!(a4==1)&&((a3==7)&&((a12==9)&&((a0==1)&&(((!(a22==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a6==1)))&&!(a27==1))&&(a20==1)))))))&&!(a15==1))){ + a15 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + a4 = 1; + a27 = 1; + a22 = 1; + a5 = 1; + return -1; + } else if(((((a27==1)&&(!(a6==1)&&(((a3==6)&&(!(a22==1)&&(((a0==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&!(a4==1)))&&(a20==1))))&&(a12==10))))&&!(a15==1))&&!(a5==1))){ + a18 = 0; + a3 = 5; + a22 = 1; + a4 = 1; + a6 = 1; + return -1; + } else if(((((!(a4==1)&&(!(a22==1)&&((((a0==1)&&((((input==4)&&!(a27==1))&&(a12==10))&&!(a15==1)))&&(a20==1))&&(a5==1))))&&(a3==7))&&!(a18==1))&&!(a6==1))){ + a15 = 1; + a27 = 1; + a12 = 12; + a4 = 1; + a22 = 1; + a5 = 0; + return -1; + } else if((((a20==1)&&((a5==1)&&((a4==1)&&((a6==1)&&((((a0==1)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==6)))&&(a12==8))&&!(a27==1))))))&&!(a15==1))){ + a18 = 1; + a6 = 0; + a4 = 0; + a12 = 9; + a22 = 0; + a3 = 5; + return 21; + } else if(((a15==1)&&(((a20==1)&&((!(a22==1)&&(((a12==10)&&((a5==1)&&((((input==5)&&(a27==1))&&(a3==5))&&(a18==1))))&&(a6==1)))&&(a4==1)))&&!(a0==1)))){ + a0 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + return -1; + } else if(((a12==8)&&(((a6==1)&&((a15==1)&&((!(a4==1)&&((!(a5==1)&&((a3==7)&&((input==6)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))&&(a0==1)))&&(a20==1))))&&!(a27==1)))){ + a18 = 1; + a27 = 1; + a22 = 1; + a5 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((((input==5)&&(((a6==1)&&((((((!(a18==1)&&((a22==1)&&!(a27==1)))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==4)))||((!(a6==1)&&((a3==8)&&(((((!(a18==1)&&(!(a22==1)&&(a27==1)))&&!(a5==1))&&!(a15==1))&&(a12==12))&&!(a4==1))))||((a6==1)&&(((((a15==1)&&((a5==1)&&(((a22==1)&&!(a27==1))&&(a18==1))))&&(a12==8))&&(a4==1))&&(a3==4))))))&&(a0==1))&&(a20==1))){ + a12 = 8; + a15 = 1; + a22 = 0; + a0 = 0; + a6 = 1; + a5 = 1; + a3 = 5; + a4 = 0; + a18 = 1; + a27 = 1; + return -1; + } else if(((a5==1)&&((((a20==1)&&((((a12==10)&&(((a6==1)&&((a4==1)&&(((a18==1)||!(a18==1))&&(input==5))))&&(a3==4)))&&(a22==1))&&!(a0==1)))&&!(a27==1))&&!(a15==1)))){ + a18 = 0; + a4 = 0; + a27 = 1; + return -1; + } else if(((((((a20==1)&&((a12==12)&&((((((!(a22==1)&&!(a18==1))&&(a4==1))&&(a3==8))&&!(a6==1))||(((((a18==1)&&(a22==1))&&!(a4==1))&&(a3==4))&&(a6==1)))&&(input==4))))&&(a27==1))&&(a0==1))&&(a15==1))&&!(a5==1))){ + a27 = 0; + a22 = 0; + a18 = 0; + a3 = 8; + a15 = 0; + a6 = 0; + a12 = 11; + a4 = 0; + return 26; + } else if(((a12==8)&&(!(a27==1)&&((a20==1)&&(!(a0==1)&&((input==6)&&(((a6==1)&&((((a15==1)&&(!(a5==1)&&((a22==1)&&(a18==1))))&&(a4==1))&&(a3==4)))||((((!(a4==1)&&(!(a15==1)&&((!(a22==1)&&(a18==1))&&(a5==1))))&&(a3==8))&&!(a6==1))||(((!(a4==1)&&(!(a15==1)&&((a5==1)&&(!(a18==1)&&!(a22==1)))))&&(a3==8))&&!(a6==1)))))))))){ + a3 = 8; + a0 = 1; + a18 = 1; + a27 = 1; + a4 = 1; + a15 = 1; + a22 = 1; + a5 = 1; + a6 = 1; + return -1; + } else if(((!(a0==1)&&((!(a22==1)&&((a15==1)&&((a27==1)&&((((!(a4==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a5==1))&&(a20==1))&&(a6==1)))))&&(a3==8)))&&(a12==9))){ + a3 = 4; + a22 = 1; + a18 = 1; + a4 = 1; + a0 = 1; + a12 = 8; + return -1; + } else if(((!(a27==1)&&((((a12==10)&&((((a0==1)&&((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==3))&&(a3==7)))&&(a20==1))&&!(a6==1)))&&!(a5==1))&&(a15==1)))&&!(a4==1))){ + a12 = 8; + a18 = 1; + a22 = 1; + a5 = 1; + a3 = 5; + a4 = 1; + return 21; + } else if((((a5==1)&&((((!(a4==1)&&((((input==2)&&(((a3==5)&&((a22==1)&&(a18==1)))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==4)))))&&!(a0==1))&&(a6==1)))&&(a20==1))&&!(a15==1))&&(a27==1)))&&(a12==11))){ + if((a4==1)){ + a15 = 1; + a4 = 1; + a22 = 0; + a18 = 1; + a6 = 0; + a5 = 0; + a3 = 4; + }else{ + a18 = 1; + a0 = 1; + a15 = 1; + a6 = 0; + a4 = 1; + a27 = 0; + a22 = 0; + a5 = 0; + a12 = 10; + a3 = 5; + } + return 26; + } else if(((a20==1)&&(((((a27==1)&&(((a18==1)&&((((a12==9)&&((input==6)&&(a3==8)))&&(a22==1))&&(a6==1)))&&!(a15==1)))&&!(a0==1))&&(a4==1))&&(a5==1)))){ + if((a15==1)){ + a12 = 10; + a15 = 1; + }else{ + a3 = 5; + a6 = 0; + a27 = 0; + a5 = 0; + a0 = 1; + } + return 26; + } else if(((a12==12)&&((a4==1)&&(((((a15==1)&&(((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==6))&&(a0==1))&&(a5==1))&&(a20==1)))&&!(a6==1))&&!(a27==1))&&(a3==8))))){ + if((a5==1)){ + a3 = 6; + a15 = 0; + a18 = 0; + a27 = 1; + a12 = 9; + a0 = 0; + a5 = 0; + a22 = 0; + }else{ + a6 = 1; + a22 = 0; + a18 = 0; + a12 = 11; + a27 = 1; + a4 = 0; + } + return -1; + } else if((((((!(a6==1)&&((a27==1)&&((((((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==3))&&(a20==1))&&(a12==12))))&&!(a0==1))&&!(a15==1))&&!(a4==1))&&(a5==1))){ + a0 = 1; + a15 = 1; + a6 = 1; + a22 = 1; + a3 = 5; + a12 = 8; + a18 = 0; + a4 = 1; + return -1; + } else if(((a3==7)&&((!(a4==1)&&(!(a15==1)&&(((!(a27==1)&&(((a12==8)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==3)))&&(a5==1)))&&(a0==1))&&!(a6==1))))&&(a20==1)))){ + a12 = 11; + a6 = 1; + a18 = 0; + a22 = 0; + return 26; + } else if(((a20==1)&&(((a6==1)&&((a12==9)&&(((((a4==1)&&((input==2)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a18==1)&&(a22==1))))))&&!(a5==1))&&(a0==1))&&!(a27==1))))&&(a15==1)))){ + a27 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + a5 = 1; + a22 = 1; + return -1; + } else if((((!(a5==1)&&((a18==1)&&(((a0==1)&&(((!(a22==1)&&(((input==1)&&!(a4==1))&&(a15==1)))&&(a20==1))&&(a12==12)))&&(a3==8))))&&!(a27==1))&&(a6==1))){ + a12 = 11; + a3 = 7; + a15 = 0; + a27 = 1; + a6 = 0; + a18 = 0; + return 21; + } else if(((((a6==1)&&(!(a22==1)&&((((a12==8)&&((a5==1)&&((a27==1)&&(!(a18==1)&&((a20==1)&&(input==2))))))&&(a3==8))&&!(a15==1))))&&!(a4==1))&&(a0==1))){ + a22 = 1; + a4 = 1; + a15 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((!(a5==1)&&((((a4==1)&&((((((a12==12)&&((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a27==1))&&(a0==1))&&(a20==1))&&(a3==8)))&&(a6==1))&&(a15==1)))){ + a12 = 8; + a3 = 4; + a18 = 1; + a22 = 1; + a5 = 1; + return -1; + } else if(((a27==1)&&(((a20==1)&&((!(a5==1)&&(!(a6==1)&&(!(a0==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==1))&&!(a4==1)))))&&(a15==1)))&&(a12==12)))){ + a4 = 1; + a3 = 8; + a12 = 9; + a22 = 0; + a18 = 1; + a27 = 0; + return -1; + } else if(((a5==1)&&((a22==1)&&(((a6==1)&&((((a4==1)&&((((a27==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a12==8))&&(a3==8)))&&(a20==1))&&(a0==1)))&&!(a15==1))))){ + a15 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((!(a22==1)&&(!(a5==1)&&((a20==1)&&(((a27==1)&&(((a12==9)&&(((a4==1)&&(((input==6)&&(a18==1))&&(a6==1)))&&!(a0==1)))&&(a15==1)))&&(a3==8)))))){ + a12 = 11; + a15 = 0; + a0 = 1; + return 21; + } else if(((!(a6==1)&&((!(a5==1)&&((a3==6)&&(((!(a27==1)&&(((a20==1)&&(!(a15==1)&&(input==3)))&&(a22==1)))&&!(a4==1))&&(a12==11))))&&!(a0==1)))&&(a18==1))){ + if((a20==1)){ + a6 = 1; + a3 = 7; + a0 = 1; + a12 = 10; + a27 = 1; + }else{ + a0 = 1; + a27 = 1; + a4 = 1; + a6 = 1; + a15 = 1; + a5 = 1; + a22 = 0; + a12 = 8; + } + return -1; + } else if((((a12==10)&&(((!(a27==1)&&((!(a6==1)&&(((((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==1))&&(a5==1)))&&!(a4==1)))&&(a20==1))&&(a0==1)))&&!(a15==1))){ + a27 = 1; + a15 = 1; + a6 = 1; + a18 = 0; + a0 = 0; + a22 = 0; + a3 = 7; + return -1; + } else if((!(a4==1)&&((((((a0==1)&&(((!(a15==1)&&((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a3==6))&&(a12==10)))&&(a20==1))&&!(a27==1))&&(a5==1))&&!(a6==1)))){ + if((a5==1)){ + a3 = 8; + a5 = 0; + a12 = 12; + a6 = 1; + a18 = 1; + a22 = 0; + }else{ + a5 = 0; + a12 = 8; + a3 = 4; + a4 = 1; + a22 = 0; + a18 = 1; + } + return 21; + } else if(((a3==8)&&((a27==1)&&((((a4==1)&&((((((!(a6==1)&&(input==5))&&(a12==12))&&!(a15==1))&&!(a5==1))&&!(a0==1))&&(a20==1)))&&(a22==1))&&!(a18==1))))){ + a5 = 1; + a3 = 5; + a18 = 1; + a12 = 8; + return -1; + } else if((((a3==8)&&((((a6==1)&&((a20==1)&&((a0==1)&&((!(a5==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&!(a22==1)))&&(a4==1)))))&&!(a15==1))&&(a12==9)))&&(a27==1))){ + if((a0==1)){ + a12 = 11; + a22 = 1; + a0 = 0; + a18 = 0; + a4 = 0; + }else{ + a27 = 0; + a4 = 0; + a6 = 0; + a18 = 0; + a12 = 8; + a3 = 6; + } + return 26; + } else if(((!(a27==1)&&(!(a5==1)&&(((a20==1)&&(((((a6==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a3==6)))&&(a12==12))&&(a4==1))&&!(a22==1)))&&!(a15==1))))&&(a0==1))){ + a3 = 4; + a18 = 1; + a12 = 8; + a22 = 1; + a27 = 1; + a15 = 1; + a5 = 1; + return -1; + } else if((!(a0==1)&&((a12==12)&&(((((a5==1)&&((a27==1)&&(((a4==1)&&((a3==6)&&((a15==1)&&(input==5))))&&!(a22==1))))&&(a20==1))&&!(a6==1))&&(a18==1))))){ + a3 = 8; + a4 = 0; + a0 = 1; + a12 = 11; + a18 = 0; + return -1; + } else if((((a0==1)&&(((((a12==8)&&(((a3==5)&&(((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==3))&&(a27==1)))&&(a20==1)))&&(a5==1))&&!(a15==1))&&!(a4==1)))&&!(a6==1))){ + a22 = 1; + a4 = 1; + a6 = 1; + a15 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((!(a6==1)&&(!(a0==1)&&(((a4==1)&&(!(a15==1)&&(((a12==11)&&(((!(a27==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a3==8))&&(a20==1)))&&(a22==1))))&&!(a5==1))))){ + if((a12==8)){ + a12 = 12; + a27 = 1; + a3 = 4; + a18 = 1; + a0 = 1; + a15 = 1; + }else{ + a3 = 4; + a15 = 1; + a18 = 1; + a27 = 1; + a0 = 1; + a12 = 8; + a5 = 1; + a6 = 1; + a4 = 0; + } + return -1; + } else if(((((!(a15==1)&&(((a0==1)&&((a12==8)&&((input==6)&&((((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1))))))&&!(a27==1)))&&(a20==1))&&(a5==1))&&(a4==1))){ + a15 = 1; + a6 = 1; + a18 = 1; + a27 = 1; + a22 = 1; + a3 = 7; + a12 = 10; + return -1; + } else if(((a20==1)&&(((a0==1)&&((a18==1)&&((((((a5==1)&&(((a27==1)&&(input==2))&&(a12==12)))&&(a22==1))&&!(a15==1))&&!(a4==1))&&!(a6==1))))&&(a3==8)))){ + a6 = 1; + a15 = 1; + a4 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((((a15==1)&&((a20==1)&&((a12==10)&&((a4==1)&&(((!(a27==1)&&((input==5)&&(((a3==8)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7))))))&&(a5==1))&&!(a6==1))))))&&(a0==1))){ + a3 = 6; + a22 = 0; + a6 = 1; + a18 = 1; + a4 = 0; + a12 = 11; + return 21; + } else if((((a22==1)&&(((a15==1)&&(((a3==7)&&((a12==11)&&(((a6==1)&&(((a18==1)&&(input==3))&&(a20==1)))&&(a27==1))))&&(a4==1)))&&(a0==1)))&&!(a5==1))){ + a3 = 5; + a6 = 0; + a0 = 0; + a15 = 0; + a5 = 1; + a12 = 8; + return 24; + } else if(((a18==1)&&((((((a0==1)&&((a3==5)&&((a15==1)&&((a27==1)&&((a5==1)&&((a6==1)&&(input==6)))))))&&!(a4==1))&&(a22==1))&&(a12==9))&&(a20==1)))){ + a3 = 4; + a6 = 0; + a12 = 12; + a15 = 0; + return 26; + } else if(((((a20==1)&&(((a12==10)&&(((((input==1)&&(((!(a18==1)&&!(a22==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8))))&&!(a5==1))&&!(a6==1))&&!(a15==1)))&&(a4==1)))&&(a27==1))&&!(a0==1))){ + if((a4==1)){ + a12 = 12; + a22 = 0; + a15 = 1; + a3 = 8; + a18 = 0; + a4 = 0; + a5 = 1; + }else{ + a5 = 1; + a4 = 0; + a0 = 1; + a15 = 1; + a18 = 1; + a22 = 1; + a3 = 7; + } + return 21; + } else if(((a15==1)&&(((a20==1)&&(((a12==10)&&(!(a27==1)&&((a4==1)&&(((((a3==5)&&((a18==1)&&(a22==1)))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==4))))&&(input==2))&&(a0==1)))))&&(a6==1)))&&!(a5==1)))){ + a22 = 1; + a15 = 0; + a4 = 0; + a3 = 7; + a27 = 1; + a18 = 0; + return -1; + } else if(((((!(a5==1)&&(((a3==6)&&(((a27==1)&&((a20==1)&&(((input==1)&&(a0==1))&&(a4==1))))&&(a6==1)))&&(a12==11)))&&(a15==1))&&!(a18==1))&&!(a22==1))){ + a22 = 1; + a4 = 0; + a5 = 1; + a3 = 8; + return -1; + } else if(((a5==1)&&(((((((!(a4==1)&&(!(a0==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==5))))&&(a15==1))&&(a20==1))&&(a12==11))&&(a6==1))&&(a3==8))&&!(a27==1)))){ + if((a3==7)){ + a5 = 0; + a22 = 0; + a3 = 4; + a18 = 1; + a15 = 0; + a27 = 1; + a12 = 10; + }else{ + a0 = 1; + a12 = 8; + a3 = 5; + a22 = 1; + a4 = 1; + a27 = 1; + a18 = 1; + } + return -1; + } else if(((((a0==1)&&((((a15==1)&&((((a12==10)&&((a3==4)&&((a18==1)&&(input==4))))&&!(a6==1))&&!(a27==1)))&&(a4==1))&&(a20==1)))&&!(a5==1))&&(a22==1))){ + a27 = 1; + a6 = 1; + a12 = 8; + a5 = 1; + return -1; + } else if((((a3==5)&&((a20==1)&&((((((a12==9)&&(((input==3)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&!(a0==1)))&&!(a5==1))&&(a15==1))&&(a27==1))&&(a4==1))))&&!(a6==1))){ + a12 = 10; + a3 = 7; + a4 = 0; + a5 = 1; + a0 = 1; + a18 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if(((a27==1)&&((a5==1)&&(((a0==1)&&((a6==1)&&((((((a12==12)&&((input==3)&&((a18==1)||!(a18==1))))&&(a3==7))&&!(a22==1))&&!(a4==1))&&(a15==1))))&&(a20==1))))){ + if((a12==9)){ + a6 = 0; + a18 = 1; + a12 = 9; + a15 = 0; + a0 = 0; + a3 = 8; + }else{ + a15 = 0; + a18 = 1; + a22 = 1; + a4 = 1; + a12 = 11; + } + return -1; + } else if(((!(a0==1)&&((a22==1)&&((((a15==1)&&(!(a5==1)&&((a20==1)&&((a4==1)&&((a18==1)&&((input==5)&&(a3==7)))))))&&(a27==1))&&!(a6==1))))&&(a12==8))){ + if((a12==12)){ + a12 = 10; + a4 = 0; + a3 = 5; + a15 = 0; + a22 = 0; + a5 = 1; + }else{ + a12 = 11; + a0 = 1; + a15 = 0; + a22 = 0; + a4 = 0; + } + return 21; + } else if((!(a5==1)&&((a15==1)&&((a12==8)&&((a3==5)&&((a20==1)&&((!(a27==1)&&(!(a0==1)&&((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==4))&&!(a4==1))))&&!(a6==1)))))))){ + a5 = 1; + a4 = 1; + a3 = 6; + a12 = 10; + a22 = 0; + a15 = 0; + a0 = 1; + a6 = 1; + a18 = 0; + return -1; + } else if((!(a27==1)&&(((a0==1)&&((a3==4)&&(((a6==1)&&((((a15==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2)))&&!(a5==1))&&!(a4==1)))&&(a12==8))))&&(a20==1)))){ + a4 = 1; + a5 = 1; + a27 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if((((a20==1)&&(((((a12==12)&&(!(a4==1)&&((a15==1)&&(!(a6==1)&&((input==3)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))))&&(a0==1))&&(a3==4))&&!(a5==1)))&&(a27==1))){ + a4 = 1; + a18 = 1; + a22 = 1; + a6 = 1; + a5 = 1; + a12 = 8; + return -1; + } else if((!(a15==1)&&((a12==8)&&(((!(a5==1)&&(!(a4==1)&&((a6==1)&&((a27==1)&&((input==4)&&(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1)))))))))&&(a20==1))&&!(a0==1))))){ + a18 = 1; + a15 = 1; + a3 = 6; + a22 = 1; + a12 = 10; + a6 = 0; + a0 = 1; + return 21; + } else if((((!(a6==1)&&((((!(a22==1)&&(((((a3==7)&&(input==5))&&!(a15==1))&&(a4==1))&&!(a27==1)))&&(a0==1))&&(a12==11))&&!(a5==1)))&&!(a18==1))&&(a20==1))){ + a15 = 1; + a12 = 10; + a3 = 5; + a4 = 0; + a6 = 1; + return -1; + } else if(((((a12==11)&&(((((!(a0==1)&&((a6==1)&&((a27==1)&&((a20==1)&&(input==2)))))&&!(a22==1))&&(a3==5))&&!(a4==1))&&(a18==1)))&&(a15==1))&&(a5==1))){ + a0 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + a4 = 1; + return -1; + } else if(((a0==1)&&(!(a5==1)&&(!(a27==1)&&((a20==1)&&(!(a4==1)&&(((((input==4)&&(((a3==6)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))))&&!(a6==1))&&!(a15==1))&&(a12==12)))))))){ + a22 = 1; + a12 = 10; + a18 = 1; + a3 = 6; + a15 = 1; + return 26; + } else if((!(a27==1)&&((((a18==1)&&((!(a6==1)&&(!(a15==1)&&(((a20==1)&&(((a5==1)&&(input==4))&&!(a22==1)))&&(a3==6))))&&(a12==10)))&&(a0==1))&&(a4==1)))){ + if((a0==1)){ + a5 = 0; + a27 = 1; + a0 = 0; + a12 = 11; + a4 = 0; + a15 = 1; + a6 = 1; + }else{ + a12 = 11; + a5 = 0; + a4 = 0; + a15 = 1; + a22 = 1; + a3 = 7; + a27 = 1; + } + return 21; + } else if(((a20==1)&&(!(a4==1)&&((a0==1)&&(!(a15==1)&&((((((((a27==1)&&(input==5))&&(a12==8))&&(a22==1))&&(a18==1))&&(a6==1))&&(a5==1))&&(a3==5))))))){ + a15 = 1; + a12 = 9; + return 21; + } else if(((a6==1)&&((((((((a12==12)&&(((a15==1)&&(!(a18==1)&&(input==4)))&&(a20==1)))&&(a3==6))&&(a4==1))&&(a5==1))&&(a0==1))&&!(a27==1))&&!(a22==1)))){ + if((a18==1)){ + a5 = 0; + a0 = 0; + a4 = 0; + a27 = 1; + a6 = 0; + a12 = 9; + a18 = 1; + }else{ + a12 = 9; + a3 = 4; + a22 = 1; + a6 = 0; + } + return -1; + } else if(((((a12==12)&&((!(a15==1)&&(((a20==1)&&((((((a22==1)&&(a18==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a18==1)&&!(a22==1)))))&&(input==4))&&!(a5==1)))&&!(a6==1)))&&!(a0==1)))&&(a27==1))&&(a4==1))){ + a5 = 1; + a15 = 1; + a6 = 1; + a12 = 8; + a22 = 1; + a0 = 1; + a18 = 0; + a3 = 6; + return -1; + } else if(((a15==1)&&((!(a27==1)&&((a0==1)&&((a4==1)&&((((a20==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==3))&&(a3==8)))&&(a12==11))&&!(a6==1)))))&&(a5==1)))){ + a27 = 1; + a22 = 1; + a12 = 10; + a18 = 1; + a15 = 0; + a3 = 7; + a4 = 0; + return -1; + } else if(((a3==6)&&((a12==12)&&((!(a15==1)&&(((a6==1)&&((a20==1)&&((!(a4==1)&&((input==6)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&!(a27==1))))&&(a0==1)))&&!(a5==1))))){ + a5 = 1; + a12 = 8; + a18 = 1; + a22 = 0; + a15 = 1; + a27 = 1; + return -1; + } else if(((!(a6==1)&&((!(a27==1)&&((a20==1)&&((a4==1)&&(((a12==9)&&((a3==7)&&((!(a0==1)&&(input==5))&&(a15==1))))&&(a22==1)))))&&(a18==1)))&&!(a5==1))){ + a27 = 1; + a0 = 1; + a3 = 6; + a12 = 8; + a6 = 1; + a5 = 1; + a4 = 0; + a18 = 0; + return 21; + } else if((((a6==1)&&(((a15==1)&&((!(a4==1)&&((a3==5)&&((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==6))&&(a5==1))&&(a27==1))))&&(a0==1)))&&(a20==1)))&&(a12==10))){ + a18 = 0; + a6 = 0; + a22 = 1; + a4 = 1; + return -1; + } else if(((a15==1)&&(((a4==1)&&((a3==4)&&(((a22==1)&&(((((a6==1)&&((input==3)&&(a27==1)))&&!(a5==1))&&!(a18==1))&&(a12==11)))&&!(a0==1))))&&(a20==1)))){ + a0 = 1; + a15 = 0; + a27 = 0; + a4 = 0; + a3 = 6; + a5 = 1; + a6 = 0; + a18 = 1; + a22 = 0; + return 21; + } else if((((a0==1)&&((a27==1)&&((a20==1)&&((!(a6==1)&&((a4==1)&&((((((a22==1)&&(a18==1))&&(a3==8))||(((a3==7)&&((a18==1)&&!(a22==1)))||((a3==7)&&(!(a18==1)&&!(a22==1)))))&&(input==4))&&(a12==11))))&&(a5==1)))))&&!(a15==1))){ + a3 = 8; + a22 = 1; + a18 = 0; + return 26; + } else if(((a20==1)&&(!(a5==1)&&((a3==8)&&(((a12==9)&&(((!(a27==1)&&(!(a0==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==5))))&&(a15==1))&&!(a4==1)))&&(a6==1)))))){ + if((a0==1)){ + a4 = 1; + a18 = 0; + a22 = 0; + a5 = 1; + a0 = 1; + a12 = 8; + a27 = 1; + a3 = 4; + }else{ + a22 = 1; + a3 = 6; + a18 = 1; + a0 = 1; + a12 = 11; + a4 = 1; + } + return -1; + } else if(((a3==4)&&((a20==1)&&(((((!(a4==1)&&((((a22==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a6==1))&&(a15==1)))&&!(a0==1))&&!(a5==1))&&(a12==9))&&(a27==1))))){ + a12 = 12; + a0 = 1; + a5 = 1; + a22 = 0; + a3 = 7; + a18 = 0; + a6 = 0; + return 26; + } else if((((a15==1)&&((a20==1)&&((!(a5==1)&&((a4==1)&&((((a12==9)&&((input==6)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))&&(a6==1))&&(a3==8))))&&(a27==1))))&&(a0==1))){ + a22 = 0; + a6 = 0; + a12 = 8; + a18 = 1; + a3 = 7; + a15 = 0; + a27 = 0; + a5 = 1; + return 24; + } else if((!(a22==1)&&(((a18==1)&&(((a0==1)&&((!(a4==1)&&((((!(a15==1)&&(input==3))&&(a12==10))&&(a3==5))&&(a6==1)))&&!(a27==1)))&&!(a5==1)))&&(a20==1)))){ + a4 = 1; + a6 = 0; + a5 = 1; + a15 = 1; + a12 = 9; + return 21; + } else if(((((a20==1)&&(((a15==1)&&(((((a27==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&!(a4==1)))&&(a6==1))&&(a3==8))&&!(a5==1)))&&!(a0==1)))&&(a12==12))&&!(a22==1))){ + a4 = 1; + a18 = 0; + a12 = 10; + a22 = 1; + a5 = 1; + a27 = 0; + return -1; + } else if((!(a0==1)&&((a27==1)&&(!(a5==1)&&(((a3==8)&&((!(a15==1)&&(!(a4==1)&&(((input==4)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&(a12==11))))&&(a20==1)))&&!(a6==1)))))){ + a4 = 1; + a15 = 1; + a5 = 1; + a22 = 1; + a12 = 8; + a6 = 1; + a3 = 4; + a0 = 1; + a18 = 1; + return -1; + } else if((((a6==1)&&((a4==1)&&((a20==1)&&(((a12==9)&&(((a0==1)&&((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==1))&&(a15==1)))&&!(a27==1)))&&(a5==1)))))&&(a3==5))){ + a3 = 6; + a6 = 0; + a12 = 12; + a22 = 0; + a18 = 0; + a15 = 0; + return 21; + } else if((((((a0==1)&&(!(a6==1)&&(((a12==12)&&(((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==2))&&!(a5==1)))&&!(a27==1))))&&(a4==1))&&(a20==1))&&!(a15==1))){ + a3 = 4; + a22 = 0; + a27 = 1; + a12 = 11; + a18 = 0; + return 26; + } else if((!(a27==1)&&((a4==1)&&(((((!(a15==1)&&((a12==8)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==4))))&&(a6==1))&&(a0==1))&&(a5==1))&&(a20==1))))){ + a15 = 1; + a3 = 4; + a27 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((a15==1)&&((((a20==1)&&(((((a12==12)&&((((input==3)&&((a18==1)||!(a18==1)))&&!(a4==1))&&(a27==1)))&&(a5==1))&&(a22==1))&&(a3==8)))&&!(a0==1))&&!(a6==1)))){ + a12 = 8; + a18 = 1; + a3 = 7; + a5 = 0; + a0 = 1; + a27 = 0; + a22 = 0; + return 26; + } else if((!(a5==1)&&((!(a27==1)&&(!(a6==1)&&((a0==1)&&((((a4==1)&&((input==5)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))))&&(a20==1))&&(a12==12)))))&&!(a15==1)))){ + a12 = 8; + a3 = 4; + a5 = 1; + a15 = 1; + a22 = 1; + a6 = 1; + a27 = 1; + a18 = 1; + return -1; + } else if(((a3==4)&&((((a6==1)&&((a20==1)&&((a27==1)&&((a22==1)&&(((a5==1)&&(!(a15==1)&&((input==1)&&((a18==1)||!(a18==1)))))&&!(a0==1))))))&&(a12==10))&&(a4==1)))){ + a0 = 1; + a3 = 5; + a12 = 12; + a22 = 0; + a18 = 0; + a6 = 0; + a4 = 0; + return -1; + } else if((((a4==1)&&((a27==1)&&((!(a5==1)&&((a20==1)&&(!(a18==1)&&(((a15==1)&&(((input==1)&&(a12==12))&&!(a6==1)))&&(a3==6)))))&&!(a22==1))))&&(a0==1))){ + a6 = 1; + a18 = 1; + a3 = 4; + a5 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if(((((!(a6==1)&&((((a20==1)&&(!(a0==1)&&((a12==8)&&(!(a27==1)&&((a22==1)&&(input==6))))))&&(a5==1))&&(a3==4)))&&(a18==1))&&(a4==1))&&(a15==1))){ + if((a12==10)){ + a12 = 11; + a22 = 0; + a3 = 7; + a6 = 1; + a27 = 1; + a15 = 0; + }else{ + a22 = 0; + a6 = 1; + a4 = 0; + a12 = 12; + a0 = 1; + } + return -1; + } else if(((a3==6)&&((a0==1)&&(!(a4==1)&&((a5==1)&&((((((a15==1)&&((input==5)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))))&&(a27==1))&&(a20==1))&&!(a6==1))&&(a12==8))))))){ + if((a5==1)){ + a0 = 0; + a22 = 0; + a12 = 10; + a5 = 0; + a3 = 5; + a18 = 0; + }else{ + a6 = 1; + a22 = 1; + a18 = 1; + a3 = 7; + a0 = 0; + a12 = 9; + } + return 21; + } else if((((!(a27==1)&&((a0==1)&&(((!(a5==1)&&((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==1))&&(a20==1))&&!(a6==1)))&&(a4==1))&&(a12==12))))&&(a15==1))&&(a3==5))){ + a22 = 1; + a5 = 1; + a12 = 8; + a6 = 1; + a27 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a0==1)&&((a15==1)&&(((a22==1)&&(((a3==5)&&(((a18==1)&&(!(a6==1)&&((a5==1)&&((input==3)&&(a12==10)))))&&(a4==1)))&&(a27==1)))&&(a20==1))))){ + a6 = 1; + a18 = 0; + a22 = 0; + a12 = 8; + a15 = 0; + a3 = 6; + return -1; + } else if((((a12==12)&&((a15==1)&&((!(a27==1)&&((a20==1)&&((input==2)&&((((!(a4==1)&&((a22==1)&&!(a18==1)))&&(a3==4))&&(a6==1))||((!(a6==1)&&((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1))))||(((((a22==1)&&(a18==1))&&!(a4==1))&&(a3==4))&&(a6==1)))))))&&(a0==1))))&&(a5==1))){ + a3 = 5; + a15 = 0; + a18 = 0; + a27 = 1; + a22 = 1; + a4 = 0; + a6 = 1; + a12 = 10; + a5 = 0; + a0 = 0; + return -1; + } else if(((a3==7)&&((a20==1)&&(!(a15==1)&&((((a27==1)&&((a0==1)&&((a12==12)&&(((((a18==1)||!(a18==1))&&(input==5))&&(a4==1))&&(a22==1)))))&&!(a5==1))&&!(a6==1)))))){ + a3 = 4; + a6 = 1; + a5 = 1; + a15 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if(((a20==1)&&(!(a15==1)&&((a27==1)&&((a0==1)&&((a6==1)&&(!(a5==1)&&((((input==3)&&(((a3==7)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))))&&(a12==11))&&(a4==1))))))))){ + a6 = 0; + a18 = 1; + a3 = 8; + a4 = 0; + a27 = 0; + a22 = 0; + a15 = 1; + return 26; + } else if(((a4==1)&&((a12==9)&&(((a27==1)&&((a20==1)&&(!(a15==1)&&(((a6==1)&&(((((!(a22==1)&&(a18==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==5)))&&!(a0==1)))))&&(a5==1))))){ + a3 = 6; + a0 = 1; + a27 = 0; + a5 = 0; + a12 = 12; + a22 = 0; + a15 = 1; + a18 = 0; + return 26; + } else if(((a3==6)&&((!(a6==1)&&((a0==1)&&((a27==1)&&(!(a15==1)&&(((a20==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==4))&&(a12==12)))&&!(a5==1))))))&&(a4==1)))){ + a22 = 0; + a6 = 1; + a3 = 7; + a12 = 11; + a18 = 1; + a15 = 1; + return 26; + } else if((!(a6==1)&&(!(a0==1)&&((a20==1)&&((!(a4==1)&&((a15==1)&&((a12==11)&&(!(a27==1)&&((input==2)&&((((a18==1)&&(a22==1))&&(a3==7))||(((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1))))))))))&&(a5==1)))))){ + a27 = 1; + a0 = 1; + a4 = 1; + a22 = 1; + a3 = 8; + a12 = 8; + a18 = 1; + return 21; + } else if((!(a6==1)&&((((((a3==6)&&((a15==1)&&((a12==11)&&((!(a22==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a4==1)))))&&(a0==1))&&!(a27==1))&&(a20==1))&&(a5==1)))){ + a15 = 0; + a18 = 1; + a3 = 7; + a0 = 0; + a27 = 1; + a22 = 1; + a12 = 9; + return 24; + } else if(((((a0==1)&&(!(a15==1)&&((!(a6==1)&&((!(a18==1)&&((a5==1)&&((a3==5)&&((a12==8)&&(input==1)))))&&(a20==1)))&&!(a22==1))))&&(a4==1))&&(a27==1))){ + if((a3==4)){ + a6 = 1; + a12 = 10; + a0 = 0; + }else{ + a5 = 0; + a0 = 0; + a6 = 1; + a12 = 10; + a3 = 7; + } + return 26; + } else if(((a6==1)&&((a12==10)&&((((a20==1)&&(((a0==1)&&(((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==1))&&(a15==1)))&&(a27==1)))&&!(a5==1))&&!(a4==1))))){ + a22 = 0; + a3 = 7; + a18 = 1; + a4 = 1; + a12 = 11; + a5 = 1; + return 26; + } else if((((((a4==1)&&((!(a0==1)&&((a22==1)&&((a5==1)&&((((input==3)&&((a18==1)||!(a18==1)))&&(a20==1))&&(a12==8)))))&&!(a15==1)))&&(a6==1))&&(a3==6))&&!(a27==1))){ + if((a4==1)){ + a22 = 0; + a15 = 1; + a12 = 11; + a4 = 0; + a18 = 1; + }else{ + a27 = 1; + a6 = 0; + a18 = 1; + a5 = 0; + a15 = 1; + a0 = 1; + a3 = 5; + a22 = 0; + a12 = 10; + } + return -1; + } else if(((a18==1)&&((!(a6==1)&&((a12==12)&&(!(a22==1)&&((a20==1)&&(((a0==1)&&((a4==1)&&(!(a5==1)&&(!(a27==1)&&(input==1)))))&&(a3==7))))))&&!(a15==1)))){ + a15 = 1; + a3 = 4; + a18 = 0; + a27 = 1; + a5 = 1; + a12 = 10; + return 21; + } else if((((a20==1)&&((a3==5)&&((a12==11)&&((((!(a22==1)&&((!(a27==1)&&((input==5)&&(a5==1)))&&(a18==1)))&&(a6==1))&&!(a15==1))&&!(a0==1)))))&&(a4==1))){ + a22 = 1; + a3 = 6; + a15 = 1; + a0 = 1; + a6 = 0; + a4 = 0; + a12 = 12; + return 26; + } else if(((a0==1)&&(!(a6==1)&&(((a15==1)&&((a4==1)&&((!(a5==1)&&(((input==3)&&((((a3==7)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==7)))||(((a22==1)&&(a18==1))&&(a3==8))))&&(a12==11)))&&(a20==1))))&&(a27==1))))){ + a6 = 1; + a5 = 1; + a18 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((!(a0==1)&&((((((a22==1)&&((a27==1)&&(!(a4==1)&&((a20==1)&&((!(a6==1)&&(input==4))&&(a5==1))))))&&(a12==9))&&!(a15==1))&&(a18==1))&&(a3==4)))){ + a4 = 1; + a15 = 1; + a0 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if(((!(a27==1)&&(((a5==1)&&((a12==8)&&(((!(a0==1)&&((((a20==1)&&(input==5))&&(a18==1))&&(a15==1)))&&(a6==1))&&!(a22==1))))&&!(a4==1)))&&(a3==7))){ + if((a27==1)){ + a18 = 0; + a15 = 0; + a3 = 5; + a4 = 1; + a27 = 1; + a12 = 11; + a22 = 1; + }else{ + a3 = 8; + a0 = 1; + a6 = 0; + a27 = 1; + a4 = 1; + } + return 21; + } else if((((a27==1)&&(!(a4==1)&&(((((((input==1)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1))))||((!(a18==1)&&(a22==1))&&(a3==6))))&&(a5==1))&&(a12==10))&&!(a0==1))&&(a6==1))&&(a15==1))))&&(a20==1))){ + a3 = 8; + a15 = 0; + a4 = 1; + a22 = 0; + a18 = 1; + return 21; + } else if((((a15==1)&&(((a20==1)&&((a0==1)&&(((input==2)&&((!(a6==1)&&((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1))))||(((!(a4==1)&&((a18==1)&&(a22==1)))&&(a3==4))&&(a6==1))))&&(a12==8))))&&!(a27==1)))&&!(a5==1))){ + a27 = 1; + a6 = 0; + a18 = 1; + a12 = 12; + a15 = 0; + a4 = 0; + a3 = 4; + a5 = 1; + a22 = 1; + return 21; + } else if((((a6==1)&&(((((a0==1)&&((a3==6)&&(!(a15==1)&&(((!(a27==1)&&(input==1))&&(a20==1))&&!(a22==1)))))&&!(a5==1))&&(a4==1))&&(a12==11)))&&(a18==1))){ + a27 = 1; + a15 = 1; + a12 = 10; + a4 = 0; + a5 = 1; + a18 = 0; + a22 = 1; + return 21; + } else if(((((a3==5)&&((a27==1)&&((a12==12)&&(!(a6==1)&&((((((input==1)&&!(a4==1))&&!(a22==1))&&!(a15==1))&&(a20==1))&&(a18==1))))))&&!(a0==1))&&!(a5==1))){ + a0 = 1; + a4 = 1; + a18 = 0; + a3 = 4; + a12 = 10; + a22 = 1; + a27 = 0; + a6 = 1; + return 24; + } else if((((((!(a5==1)&&((((a4==1)&&((input==3)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))))&&(a6==1))&&!(a0==1)))&&!(a15==1))&&(a20==1))&&(a27==1))&&(a12==12))){ + a15 = 1; + a5 = 1; + a3 = 8; + a6 = 0; + a12 = 8; + a18 = 0; + a0 = 1; + a22 = 0; + return 21; + } else if((!(a18==1)&&(((((((a12==10)&&(((!(a5==1)&&((input==2)&&(a20==1)))&&!(a15==1))&&(a22==1)))&&(a4==1))&&!(a6==1))&&(a0==1))&&!(a27==1))&&(a3==6)))){ + a6 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a27 = 1; + a15 = 1; + a5 = 1; + return -1; + } else if((!(a4==1)&&((a0==1)&&((a20==1)&&(((a12==12)&&(((a27==1)&&(((((a18==1)&&(input==1))&&(a22==1))&&(a3==7))&&!(a5==1)))&&!(a6==1)))&&!(a15==1)))))){ + if((a27==1)){ + a3 = 8; + a27 = 0; + a6 = 1; + }else{ + a3 = 4; + a15 = 1; + a4 = 1; + a5 = 1; + a6 = 1; + } + return 26; + } else if(((!(a27==1)&&((a20==1)&&(((!(a4==1)&&((a0==1)&&(((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==3))&&(a15==1))))&&(a12==10))&&(a5==1))))&&!(a6==1))){ + if((a12==12)){ + a3 = 8; + a15 = 0; + a5 = 0; + a18 = 1; + a12 = 12; + a22 = 1; + }else{ + a22 = 0; + a5 = 0; + a6 = 1; + a3 = 4; + a18 = 0; + a4 = 1; + a15 = 0; + } + return 26; + } else if((((((a3==6)&&((a15==1)&&(!(a0==1)&&((a12==12)&&((a6==1)&&(((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==5))&&!(a5==1)))))))&&!(a4==1))&&(a27==1))&&(a20==1))){ + a27 = 0; + a5 = 1; + a18 = 1; + a22 = 0; + a0 = 1; + a4 = 1; + return 26; + } else if((((a4==1)&&(!(a22==1)&&((a20==1)&&(((((!(a5==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a3==8)))&&!(a27==1))&&(a15==1))&&(a0==1))&&(a6==1)))))&&(a12==8))){ + a18 = 1; + a4 = 0; + a22 = 1; + a3 = 6; + a6 = 0; + a27 = 1; + a12 = 10; + return 21; + } else if((!(a6==1)&&((a18==1)&&(!(a27==1)&&(((a5==1)&&((!(a0==1)&&(((a3==5)&&(((input==4)&&!(a22==1))&&!(a15==1)))&&(a4==1)))&&(a20==1)))&&(a12==8)))))){ + a18 = 0; + a12 = 10; + a4 = 0; + a22 = 1; + return -1; + } else if(((a12==9)&&(((a20==1)&&((a5==1)&&((a3==5)&&(!(a6==1)&&((a4==1)&&(!(a22==1)&&(((a27==1)&&((a15==1)&&(input==6)))&&!(a0==1))))))))&&!(a18==1)))){ + a27 = 0; + a0 = 1; + a18 = 1; + a3 = 6; + return 26; + } else if(((a0==1)&&((((a4==1)&&(((a20==1)&&((a6==1)&&((a3==8)&&((!(a5==1)&&(!(a27==1)&&(input==6)))&&!(a15==1)))))&&(a12==11)))&&(a22==1))&&(a18==1)))){ + a3 = 4; + a12 = 8; + a15 = 1; + a5 = 1; + a27 = 1; + return -1; + } else if(((a5==1)&&((a0==1)&&((((((a4==1)&&(((a20==1)&&(!(a15==1)&&(((a18==1)||!(a18==1))&&(input==4))))&&(a6==1)))&&!(a22==1))&&!(a27==1))&&(a12==9))&&(a3==5))))){ + a12 = 8; + a18 = 1; + a3 = 4; + a6 = 0; + a22 = 1; + a15 = 1; + return 21; + } else if(((a27==1)&&((((a12==8)&&(!(a6==1)&&(!(a4==1)&&(!(a15==1)&&(((a3==6)&&(!(a22==1)&&((input==2)&&((a18==1)||!(a18==1)))))&&(a20==1))))))&&(a5==1))&&(a0==1)))){ + a3 = 7; + a18 = 1; + a12 = 9; + return 26; + } else if(((((((a20==1)&&((!(a15==1)&&(!(a27==1)&&((input==6)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5))))))&&(a12==10)))&&(a4==1))&&!(a5==1))&&(a0==1))&&!(a6==1))){ + a3 = 6; + a5 = 1; + a18 = 0; + a22 = 0; + a27 = 1; + return 26; + } else if((((a27==1)&&((a3==7)&&((((a6==1)&&(((a20==1)&&(((input==5)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&!(a4==1)))&&(a5==1)))&&(a0==1))&&(a12==9))))&&(a15==1))){ + a4 = 1; + a12 = 8; + a22 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a0==1)&&(((!(a15==1)&&((((a3==8)&&((a12==8)&&(((a22==1)&&((input==5)&&(a18==1)))&&(a6==1))))&&(a20==1))&&!(a27==1)))&&!(a5==1))&&(a4==1)))){ + a15 = 1; + a12 = 11; + a27 = 1; + a22 = 0; + a18 = 0; + return 24; + } else if((((!(a27==1)&&(!(a22==1)&&(((((((a20==1)&&((input==5)&&!(a6==1)))&&(a3==7))&&!(a5==1))&&(a0==1))&&(a18==1))&&(a12==12))))&&!(a15==1))&&(a4==1))){ + a12 = 9; + a15 = 1; + a22 = 1; + a18 = 0; + a5 = 1; + return -1; + } else if((!(a27==1)&&((a12==8)&&((!(a4==1)&&((a5==1)&&(!(a6==1)&&(!(a15==1)&&(((input==2)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a22==1)&&(a18==1)))))&&(a20==1))))))&&!(a0==1))))){ + a4 = 1; + a3 = 5; + a18 = 0; + a6 = 1; + a22 = 0; + return -1; + } else if(((a12==12)&&(((a0==1)&&((((((a20==1)&&(((input==5)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&!(a27==1)))&&(a5==1))&&(a4==1))&&!(a6==1))&&(a3==8)))&&(a15==1)))){ + a27 = 1; + a22 = 0; + a6 = 1; + a3 = 6; + a0 = 0; + a12 = 10; + a18 = 1; + return 26; + } else if((((a5==1)&&(!(a0==1)&&((a27==1)&&((!(a4==1)&&((((((input==1)&&!(a18==1))&&(a12==9))&&(a3==4))&&!(a6==1))&&(a15==1)))&&(a20==1)))))&&!(a22==1))){ + a18 = 1; + a3 = 8; + a5 = 0; + return -1; + } else if((((a27==1)&&((a0==1)&&(!(a5==1)&&((a12==9)&&((!(a6==1)&&((a20==1)&&((((!(a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1)))))&&(input==4))))&&!(a15==1))))))&&!(a4==1))){ + a22 = 1; + a12 = 8; + a4 = 1; + a18 = 1; + a15 = 1; + a5 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if(((a20==1)&&(((!(a6==1)&&(((a5==1)&&((((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==3))&&!(a0==1))&&!(a15==1)))&&(a27==1)))&&(a12==9))&&(a4==1)))){ + a12 = 10; + a18 = 0; + a22 = 1; + a0 = 1; + a3 = 5; + return 24; + } else if((((a3==5)&&(((!(a15==1)&&((a5==1)&&((a12==10)&&((a22==1)&&((a27==1)&&(((a4==1)&&(input==2))&&!(a18==1)))))))&&(a6==1))&&(a0==1)))&&(a20==1))){ + a27 = 0; + a12 = 9; + a5 = 0; + a18 = 1; + return 26; + } else if(((!(a27==1)&&((a3==8)&&(((a15==1)&&(((a4==1)&&((a20==1)&&(((input==3)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&(a12==10))))&&!(a5==1)))&&!(a6==1))))&&(a0==1))){ + a18 = 1; + a22 = 1; + a6 = 1; + a3 = 6; + return -1; + } else if(((a20==1)&&((a22==1)&&((((a3==6)&&(((a6==1)&&((((a12==9)&&((a27==1)&&(input==5)))&&!(a0==1))&&!(a4==1)))&&(a18==1)))&&(a15==1))&&!(a5==1))))){ + a4 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + a0 = 1; + return -1; + } else if(((!(a0==1)&&((((!(a4==1)&&(((a5==1)&&((((a20==1)&&(input==6))&&(a3==4))&&!(a15==1)))&&(a6==1)))&&(a27==1))&&!(a18==1))&&(a12==8)))&&!(a22==1))){ + a3 = 6; + a4 = 1; + a0 = 1; + a12 = 11; + a6 = 0; + a5 = 0; + a18 = 1; + a15 = 1; + a27 = 0; + return 21; + } else if(((!(a15==1)&&((((a3==6)&&(!(a5==1)&&(((!(a27==1)&&((input==2)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a20==1))&&(a12==9))))&&(a6==1))&&!(a4==1)))&&(a0==1))){ + a3 = 4; + a12 = 12; + a27 = 1; + a18 = 1; + a22 = 0; + a5 = 1; + return 21; + } else if((((a4==1)&&((a12==8)&&((a20==1)&&(!(a15==1)&&(((a0==1)&&(((input==1)&&((((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==5))))&&!(a5==1)))&&!(a6==1))))))&&!(a27==1))){ + a6 = 1; + a4 = 0; + a12 = 11; + a18 = 0; + a3 = 6; + a22 = 0; + return 26; + } else if(((a3==6)&&((a12==9)&&(!(a5==1)&&((((((a4==1)&&((a20==1)&&((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&!(a0==1))&&!(a6==1))&&(a15==1))&&(a27==1)))))){ + a22 = 1; + a0 = 1; + a18 = 1; + a5 = 1; + a6 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if((((a12==11)&&((!(a22==1)&&(!(a5==1)&&(((a3==6)&&((!(a27==1)&&((a6==1)&&((input==3)&&((a18==1)||!(a18==1)))))&&!(a0==1)))&&(a15==1))))&&(a4==1)))&&(a20==1))){ + if((a5==1)){ + a3 = 7; + a0 = 1; + a27 = 1; + a18 = 0; + a5 = 1; + a12 = 8; + }else{ + a18 = 0; + a22 = 1; + a4 = 0; + a15 = 0; + a12 = 8; + a27 = 1; + a3 = 5; + } + return -1; + } else if(((!(a0==1)&&(!(a5==1)&&(((a3==4)&&((a12==9)&&((a22==1)&&((((a6==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&!(a15==1))&&(a20==1)))))&&(a4==1))))&&!(a27==1))){ + if((a22==1)){ + a3 = 8; + a27 = 1; + a18 = 0; + a4 = 0; + a12 = 12; + a15 = 1; + }else{ + a12 = 8; + a0 = 1; + a22 = 0; + a5 = 1; + a27 = 1; + a3 = 8; + a15 = 1; + a18 = 0; + } + return 26; + } else if(((a0==1)&&(!(a15==1)&&(((a12==9)&&(((a18==1)&&((a4==1)&&((((a5==1)&&((input==2)&&(a20==1)))&&(a27==1))&&(a3==7))))&&!(a22==1)))&&!(a6==1))))){ + a15 = 1; + a12 = 12; + a5 = 0; + a3 = 6; + return 21; + } else if(((a0==1)&&((a15==1)&&((a20==1)&&(((!(a4==1)&&(((a6==1)&&((input==5)&&((((a22==1)&&!(a18==1))&&(a3==6))||(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1)))))))&&(a27==1)))&&(a12==12))&&(a5==1)))))){ + a5 = 0; + a12 = 9; + a18 = 0; + a6 = 0; + a15 = 0; + a3 = 8; + a22 = 1; + return -1; + } else if((!(a6==1)&&((((a27==1)&&((a3==6)&&(!(a4==1)&&((((a12==12)&&(!(a0==1)&&((a5==1)&&(input==5))))&&(a18==1))&&(a20==1)))))&&!(a15==1))&&!(a22==1)))){ + if((a27==1)){ + a22 = 1; + a5 = 0; + a4 = 1; + a27 = 0; + a15 = 1; + a3 = 8; + a0 = 1; + a12 = 11; + }else{ + a6 = 1; + a3 = 5; + a12 = 8; + a18 = 0; + a22 = 1; + a0 = 1; + a15 = 1; + } + return 24; + } else if(((a5==1)&&(!(a0==1)&&((a12==10)&&((((!(a18==1)&&(!(a6==1)&&((a20==1)&&(!(a27==1)&&((input==5)&&(a3==5))))))&&(a4==1))&&(a22==1))&&(a15==1)))))){ + a22 = 0; + a12 = 11; + a5 = 0; + a6 = 1; + a27 = 1; + return -1; + } else if((!(a15==1)&&((a0==1)&&((a6==1)&&(((a27==1)&&((a12==11)&&(((((((a3==6)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==4))&&!(a5==1))&&!(a4==1))))&&(a20==1)))))){ + a12 = 8; + a3 = 4; + a15 = 1; + a4 = 1; + a22 = 1; + a18 = 1; + a5 = 1; + return -1; + } else if(((a22==1)&&((a27==1)&&((a5==1)&&((a12==11)&&(((((a18==1)&&((a3==4)&&((a20==1)&&((input==5)&&!(a0==1)))))&&!(a6==1))&&!(a4==1))&&(a15==1))))))){ + a12 = 8; + a0 = 1; + a6 = 1; + a4 = 1; + return -1; + } else if(((a6==1)&&((a12==8)&&(((!(a0==1)&&((!(a5==1)&&(!(a15==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==5))&&(a20==1))))&&(a3==4)))&&!(a4==1))&&!(a27==1))))){ + a4 = 1; + a5 = 1; + a22 = 1; + a27 = 1; + a18 = 1; + a6 = 0; + a0 = 1; + a15 = 1; + return -1; + } else if((!(a27==1)&&(!(a6==1)&&((a12==11)&&(((a3==7)&&((((!(a15==1)&&(((input==6)&&(a5==1))&&(a18==1)))&&(a20==1))&&(a22==1))&&!(a0==1)))&&!(a4==1)))))){ + a6 = 1; + a18 = 0; + a3 = 4; + a5 = 0; + a0 = 1; + a12 = 10; + return -1; + } else if(((a20==1)&&(((a5==1)&&(!(a27==1)&&((a15==1)&&(!(a0==1)&&((a12==8)&&((a3==5)&&((a4==1)&&((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))))))&&!(a6==1)))){ + a22 = 0; + a0 = 1; + a27 = 1; + a18 = 0; + return 24; + } else if(((a12==10)&&((((((a4==1)&&((a20==1)&&(((a5==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==4)))&&!(a27==1))))&&(a15==1))&&(a0==1))&&(a3==5))&&!(a6==1)))){ + a6 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if(((a20==1)&&((((!(a15==1)&&(!(a0==1)&&(!(a27==1)&&((a5==1)&&((input==6)&&((((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==5))))))))&&(a4==1))&&(a6==1))&&(a12==11)))){ + a0 = 1; + a3 = 6; + a6 = 0; + a12 = 12; + a18 = 1; + a5 = 0; + a22 = 0; + return 24; + } else if(((!(a4==1)&&((((a6==1)&&((a0==1)&&(((a27==1)&&((a12==11)&&((input==6)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&(a20==1))))&&(a15==1))&&(a3==5)))&&(a5==1))){ + a22 = 1; + a15 = 0; + a3 = 8; + a6 = 0; + a12 = 10; + a18 = 1; + return -1; + } else if(((((((((((a27==1)&&((a20==1)&&((input==5)&&!(a18==1))))&&!(a4==1))&&!(a15==1))&&(a3==7))&&(a6==1))&&(a22==1))&&(a12==9))&&!(a0==1))&&(a5==1))){ + a27 = 0; + a15 = 1; + a5 = 0; + a12 = 10; + a6 = 0; + a0 = 1; + return 21; + } else if(((a15==1)&&((!(a5==1)&&(((a20==1)&&((a12==8)&&(!(a6==1)&&((((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==8)))||((!(a18==1)&&(a22==1))&&(a3==8)))&&(input==4))&&(a27==1)))))&&!(a4==1)))&&(a0==1)))){ + a12 = 10; + a3 = 6; + a18 = 0; + a4 = 1; + a22 = 1; + return 21; + } else if(((!(a4==1)&&(((a20==1)&&(((a0==1)&&((((input==1)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))||(((a22==1)&&(a18==1))&&(a3==6))))&&!(a5==1))&&(a12==9)))&&(a15==1)))&&(a27==1)))&&!(a6==1))){ + a4 = 1; + a18 = 0; + a27 = 0; + a3 = 4; + a15 = 0; + a12 = 8; + a6 = 1; + a22 = 1; + return 26; + } else if(((!(a0==1)&&(((a3==7)&&((!(a5==1)&&(!(a15==1)&&(((a12==8)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==3)))&&!(a6==1))))&&(a20==1)))&&!(a4==1)))&&(a27==1))){ + a22 = 0; + a12 = 12; + a5 = 1; + a6 = 1; + a18 = 0; + a0 = 1; + return 24; + } else if(((a22==1)&&((!(a6==1)&&((((a3==8)&&(((a27==1)&&((a4==1)&&((((a18==1)||!(a18==1))&&(input==2))&&(a12==10))))&&!(a0==1)))&&(a5==1))&&(a20==1)))&&(a15==1)))){ + a3 = 4; + a0 = 1; + a18 = 1; + a12 = 9; + return 26; + } else if((((((((a20==1)&&((a4==1)&&((a12==8)&&(((((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==1)))))&&!(a6==1))&&(a27==1))&&(a0==1))&&!(a15==1))&&(a5==1))){ + a6 = 1; + a3 = 6; + a22 = 1; + a18 = 1; + a5 = 0; + return 26; + } else if((((a20==1)&&(!(a0==1)&&((a12==11)&&(((!(a6==1)&&((a3==8)&&(!(a4==1)&&(((a5==1)&&(!(a18==1)&&!(a22==1)))&&!(a15==1)))))||((a6==1)&&((((a15==1)&&(!(a5==1)&&((a18==1)&&(a22==1))))&&(a4==1))&&(a3==4))))&&(input==4)))))&&!(a27==1))){ + a15 = 0; + a18 = 0; + a3 = 7; + a4 = 0; + a5 = 0; + a22 = 1; + a12 = 8; + a6 = 0; + return -1; + } else if((((((a20==1)&&((((((a6==1)&&((a15==1)&&(((a18==1)||!(a18==1))&&(input==3))))&&(a27==1))&&(a3==8))&&(a12==12))&&!(a0==1)))&&!(a22==1))&&(a4==1))&&!(a5==1))){ + a3 = 5; + a0 = 1; + a5 = 1; + a22 = 1; + a18 = 0; + a4 = 0; + a12 = 8; + return -1; + } else if(((a27==1)&&(((a4==1)&&(((((a20==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5))&&!(a5==1))&&(a15==1)))&&(a6==1))&&(a0==1))&&(a12==11)))&&(a3==5)))){ + if((a18==1)){ + a0 = 0; + a3 = 6; + a18 = 0; + a6 = 0; + a4 = 0; + a22 = 1; + }else{ + a15 = 0; + a18 = 0; + a4 = 0; + a22 = 0; + a5 = 1; + a3 = 7; + } + return -1; + } else if(((((a18==1)&&(!(a4==1)&&(((!(a22==1)&&(((a20==1)&&(((input==1)&&(a0==1))&&(a12==11)))&&!(a15==1)))&&!(a6==1))&&(a3==8))))&&!(a5==1))&&(a27==1))){ + if((a15==1)){ + a0 = 0; + a3 = 4; + a22 = 1; + a12 = 9; + }else{ + a5 = 1; + a18 = 0; + a3 = 5; + a12 = 12; + } + return 21; + } else if(((a0==1)&&((a5==1)&&((a3==5)&&(!(a4==1)&&(((a20==1)&&(((((input==2)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&!(a27==1))&&(a12==10))&&(a15==1)))&&(a6==1))))))){ + a12 = 12; + a3 = 7; + a18 = 0; + a22 = 0; + a4 = 1; + a27 = 1; + return 26; + } else if((((a3==6)&&((((a22==1)&&(((a5==1)&&(((!(a15==1)&&((a4==1)&&(input==3)))&&(a20==1))&&(a12==11)))&&(a6==1)))&&!(a18==1))&&(a27==1)))&&(a0==1))){ + return -1; + } else if(((!(a27==1)&&(((a4==1)&&((!(a0==1)&&((((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1)))&&(input==6))&&(a5==1)))&&(a12==8)))&&!(a15==1)))&&(a20==1))){ + a27 = 1; + a18 = 1; + a6 = 0; + a15 = 1; + a0 = 1; + a3 = 6; + a22 = 1; + return 24; + } else if(((((a27==1)&&(((a3==8)&&((((a6==1)&&(((((a18==1)||!(a18==1))&&(input==4))&&!(a15==1))&&(a0==1)))&&(a20==1))&&(a22==1)))&&(a12==10)))&&(a4==1))&&(a5==1))){ + a18 = 1; + a0 = 0; + a3 = 7; + a6 = 0; + a12 = 8; + return -1; + } else if((((a12==12)&&(((((a0==1)&&(((a4==1)&&((a3==4)&&((input==6)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))))&&!(a5==1)))&&(a15==1))&&(a6==1))&&(a20==1)))&&(a27==1))){ + a12 = 10; + a6 = 0; + a3 = 6; + a22 = 1; + a18 = 0; + return -1; + } else if((!(a4==1)&&((a12==9)&&((a20==1)&&(((((!(a5==1)&&((((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a22==1)&&!(a18==1))))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==5)))&&!(a27==1))&&(a15==1))&&(a6==1))&&!(a0==1)))))){ + a5 = 1; + a3 = 8; + a22 = 1; + a27 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + return 21; + } else if(((a6==1)&&(!(a0==1)&&((!(a5==1)&&(((a20==1)&&((!(a15==1)&&(((((a22==1)&&!(a18==1))&&(a3==8))||(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8))))&&(input==5)))&&(a12==8)))&&!(a27==1)))&&!(a4==1))))){ + a12 = 9; + a22 = 0; + a0 = 1; + a4 = 1; + a6 = 0; + a18 = 1; + a3 = 8; + a5 = 1; + return -1; + } else if((!(a5==1)&&(!(a0==1)&&(((((((((((a15==1)&&(!(a22==1)&&!(a18==1)))&&!(a4==1))&&(a3==8))&&!(a6==1))||((a6==1)&&(((!(a15==1)&&((a18==1)&&(a22==1)))&&(a4==1))&&(a3==4))))||(((a3==4)&&((a4==1)&&(!(a15==1)&&(!(a18==1)&&(a22==1)))))&&(a6==1)))&&(input==1))&&(a27==1))&&(a20==1))&&(a12==9))))){ + a3 = 4; + a12 = 11; + a18 = 0; + a15 = 1; + a22 = 1; + a4 = 1; + a6 = 0; + a0 = 1; + return -1; + } else if((((a20==1)&&((((input==5)&&(((((!(a4==1)&&(!(a15==1)&&(((a18==1)&&!(a22==1))&&(a5==1))))&&(a3==8))&&!(a6==1))||(!(a6==1)&&((a3==8)&&((((!(a18==1)&&!(a22==1))&&(a5==1))&&!(a15==1))&&!(a4==1)))))||((((a4==1)&&((!(a5==1)&&((a18==1)&&(a22==1)))&&(a15==1)))&&(a3==4))&&(a6==1))))&&(a12==8))&&!(a0==1)))&&!(a27==1))){ + a4 = 1; + a18 = 1; + a5 = 1; + a3 = 7; + a6 = 0; + a12 = 11; + a15 = 1; + a22 = 1; + return 21; + } else if(((a4==1)&&(!(a18==1)&&((a3==8)&&((a15==1)&&((a20==1)&&((a22==1)&&(((a12==11)&&(!(a27==1)&&(((input==6)&&!(a5==1))&&!(a6==1))))&&!(a0==1))))))))){ + if((a6==1)){ + a27 = 1; + a12 = 8; + a0 = 1; + a3 = 6; + a4 = 0; + a6 = 1; + a22 = 0; + a5 = 1; + a18 = 1; + }else{ + a22 = 0; + a15 = 0; + a5 = 1; + a3 = 6; + } + return 21; + } else if((((a0==1)&&((a20==1)&&((((input==2)&&((!(a6==1)&&((a3==8)&&(!(a4==1)&&((!(a22==1)&&!(a18==1))&&(a15==1)))))||(((a3==4)&&((((a18==1)&&(a22==1))&&!(a15==1))&&(a4==1)))&&(a6==1))))&&(a27==1))&&(a12==9))))&&(a5==1))){ + a18 = 1; + a3 = 6; + a15 = 1; + a6 = 0; + a12 = 11; + a4 = 0; + a22 = 1; + return 21; + } else if((((a5==1)&&((!(a4==1)&&((((a3==5)&&((!(a27==1)&&((a15==1)&&((input==6)&&((a18==1)||!(a18==1)))))&&(a22==1)))&&(a12==12))&&(a0==1)))&&(a20==1)))&&!(a6==1))){ + a22 = 0; + a4 = 1; + a18 = 1; + a12 = 9; + return -1; + } else if((((!(a5==1)&&((a27==1)&&(((((((((a22==1)&&!(a18==1))&&(a3==7))||(((!(a18==1)&&!(a22==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7))))&&(input==6))&&(a4==1))&&(a12==12))&&(a6==1))&&(a20==1))))&&(a0==1))&&!(a15==1))){ + a18 = 1; + a5 = 1; + a12 = 11; + a22 = 1; + a4 = 0; + a6 = 0; + a3 = 8; + return 26; + } else if((((a22==1)&&((!(a0==1)&&(!(a4==1)&&(!(a27==1)&&((!(a5==1)&&((a12==11)&&((((a18==1)||!(a18==1))&&(input==1))&&(a20==1))))&&(a3==6)))))&&!(a6==1)))&&(a15==1))){ + if((a12==12)){ + a12 = 8; + a3 = 8; + a6 = 1; + a0 = 1; + a5 = 1; + a18 = 1; + a27 = 1; + }else{ + a0 = 1; + a4 = 1; + a18 = 1; + a5 = 1; + a12 = 8; + a22 = 0; + a3 = 5; + a6 = 1; + a27 = 1; + } + return -1; + } else if(((a3==6)&&((!(a15==1)&&(((a4==1)&&((!(a22==1)&&(((((input==3)&&((a18==1)||!(a18==1)))&&(a27==1))&&(a20==1))&&(a12==11)))&&!(a0==1)))&&!(a6==1)))&&(a5==1)))){ + a6 = 1; + a5 = 0; + a3 = 4; + a0 = 1; + a18 = 1; + return -1; + } else if(((!(a5==1)&&(((a6==1)&&(!(a0==1)&&(((((a3==5)&&(((input==4)&&((a18==1)||!(a18==1)))&&(a12==10)))&&(a15==1))&&!(a22==1))&&(a4==1))))&&(a20==1)))&&!(a27==1))){ + if((a6==1)){ + a18 = 1; + a15 = 0; + a12 = 9; + a4 = 0; + a3 = 4; + a6 = 0; + a22 = 1; + a27 = 1; + }else{ + a3 = 7; + a18 = 0; + a4 = 0; + a27 = 1; + } + return -1; + } else if(((!(a15==1)&&((a3==6)&&(((a27==1)&&((a4==1)&&(!(a6==1)&&((((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a5==1))&&(a20==1)))))&&(a12==9))))&&(a0==1))){ + a6 = 1; + a22 = 1; + a15 = 1; + a12 = 8; + a3 = 4; + a5 = 1; + a18 = 1; + return -1; + } else if((((a12==12)&&((a0==1)&&((!(a6==1)&&((a5==1)&&((((((a3==6)&&((a22==1)&&!(a18==1)))||(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6))))&&(input==4))&&(a27==1))&&(a20==1))))&&(a4==1))))&&(a15==1))){ + a22 = 1; + a18 = 0; + a0 = 0; + a12 = 11; + a4 = 0; + a3 = 8; + return 21; + } else if((((!(a0==1)&&((a22==1)&&((!(a18==1)&&((a6==1)&&((!(a27==1)&&(((a3==4)&&(input==4))&&(a15==1)))&&!(a5==1))))&&(a12==9))))&&(a20==1))&&!(a4==1))){ + a4 = 1; + a22 = 0; + a15 = 0; + a12 = 11; + a0 = 1; + a3 = 7; + return -1; + } else if((((a6==1)&&((((!(a5==1)&&(!(a0==1)&&(((input==4)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))||((a3==5)&&((a22==1)&&!(a18==1)))))&&(a20==1))))&&(a27==1))&&(a12==12))&&(a4==1)))&&(a15==1))){ + a18 = 1; + a12 = 8; + a6 = 0; + a22 = 0; + a5 = 1; + a0 = 1; + a3 = 5; + return 21; + } else if((((a4==1)&&((a12==8)&&((!(a0==1)&&(((((a20==1)&&((input==2)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a15==1))&&!(a27==1))&&(a5==1)))&&(a3==4))))&&(a6==1))){ + a18 = 1; + a12 = 10; + a5 = 0; + a6 = 0; + a22 = 0; + a3 = 8; + a27 = 1; + a0 = 1; + a15 = 0; + a4 = 0; + return -1; + } else if((!(a5==1)&&((((a3==5)&&(!(a27==1)&&((a15==1)&&((a4==1)&&(((a20==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==1)))&&(a0==1))))))&&(a12==11))&&(a6==1)))){ + a27 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if((!(a15==1)&&((a20==1)&&((a0==1)&&(((a12==8)&&((((a3==4)&&(!(a4==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==3))))&&!(a6==1))&&(a5==1)))&&(a27==1)))))){ + if((a27==1)){ + a15 = 1; + a0 = 0; + a6 = 1; + a4 = 1; + a22 = 0; + a18 = 0; + a12 = 9; + a3 = 5; + }else{ + a18 = 1; + a22 = 0; + a4 = 1; + a0 = 0; + a3 = 7; + a12 = 11; + } + return 26; + } else if(((a12==9)&&(!(a15==1)&&(((a0==1)&&(!(a27==1)&&((((!(a5==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a6==1)))&&!(a4==1))&&(a3==4))&&!(a22==1))))&&(a20==1))))){ + a15 = 1; + a5 = 1; + a22 = 1; + a27 = 1; + a12 = 8; + a4 = 1; + a18 = 1; + return -1; + } else if(((!(a6==1)&&(((a15==1)&&((a12==12)&&((a20==1)&&(((a0==1)&&(((input==6)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&!(a27==1)))&&!(a5==1)))))&&(a3==8)))&&!(a4==1))){ + if((a4==1)){ + a27 = 1; + a18 = 0; + a4 = 1; + a12 = 9; + a0 = 0; + a22 = 0; + a3 = 4; + }else{ + a12 = 10; + a3 = 6; + a15 = 0; + a6 = 1; + a5 = 1; + a18 = 1; + a22 = 1; + a27 = 1; + } + return -1; + } else if((!(a27==1)&&((a20==1)&&(((a12==10)&&((((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5))&&(a4==1))&&(a6==1))&&(a15==1))&&(a3==6))&&(a5==1)))&&!(a0==1))))){ + if((a22==1)){ + a5 = 0; + a18 = 1; + a6 = 0; + a27 = 1; + a15 = 0; + a22 = 1; + a4 = 0; + a3 = 5; + }else{ + a18 = 0; + a6 = 0; + a3 = 4; + a15 = 0; + a22 = 0; + a12 = 11; + } + return 21; + } else if(((a12==11)&&((((a0==1)&&(!(a22==1)&&(((((!(a4==1)&&((a3==4)&&(input==1)))&&(a20==1))&&!(a15==1))&&(a27==1))&&(a5==1))))&&(a18==1))&&!(a6==1)))){ + a0 = 0; + a6 = 1; + a5 = 0; + a3 = 6; + a18 = 0; + return -1; + } else if(((a3==8)&&((!(a5==1)&&(((!(a0==1)&&((((a6==1)&&((((a18==1)||!(a18==1))&&(input==6))&&!(a22==1)))&&(a12==12))&&(a4==1)))&&(a20==1))&&(a27==1)))&&(a15==1)))){ + a18 = 1; + a12 = 9; + a22 = 1; + a3 = 4; + a4 = 0; + return 26; + } else if(((a5==1)&&((((a6==1)&&((a27==1)&&((a12==10)&&(((!(a0==1)&&((input==2)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))))&&(a15==1))&&!(a4==1)))))&&(a20==1))&&(a3==8)))){ + a6 = 0; + a18 = 0; + a22 = 1; + a0 = 1; + return 26; + } return calculate_output16(input); + } + + int calculate_output16(int input) { + if(((((a0==1)&&((a20==1)&&((((!(a27==1)&&(((((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==7)))&&(input==3)))&&!(a6==1))&&(a15==1))&&(a5==1))))&&(a12==12))&&(a4==1))){ + a6 = 1; + a27 = 1; + a22 = 1; + a15 = 0; + a0 = 0; + a12 = 8; + a3 = 4; + a5 = 0; + a18 = 1; + return -1; + } else if(((a20==1)&&((!(a15==1)&&((a5==1)&&((((!(a0==1)&&((input==6)&&(((a3==8)&&((a22==1)&&!(a18==1)))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8))))))&&!(a27==1))&&(a4==1))&&(a6==1))))&&(a12==8)))){ + a3 = 5; + a12 = 11; + a15 = 1; + a18 = 1; + a22 = 1; + a27 = 1; + return -1; + } else if(((a4==1)&&((a12==10)&&((a3==8)&&((a15==1)&&(((((((input==3)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&!(a27==1))&&(a20==1))&&!(a5==1))&&!(a6==1))&&!(a0==1))))))){ + if((a22==1)){ + a5 = 1; + a4 = 0; + a27 = 1; + a3 = 7; + a0 = 1; + a22 = 0; + a18 = 1; + a12 = 8; + a6 = 1; + }else{ + a0 = 1; + a27 = 1; + a12 = 8; + a5 = 1; + a6 = 1; + a18 = 1; + a22 = 0; + a3 = 6; + } + return 21; + } else if(((a12==11)&&(((!(a4==1)&&(((a6==1)&&((((a20==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==6)))&&(a3==4))&&!(a27==1)))&&!(a15==1)))&&(a0==1))&&(a5==1)))){ + a15 = 1; + a22 = 1; + a3 = 8; + a27 = 1; + a18 = 0; + return 26; + } else if((((a20==1)&&(((a5==1)&&(!(a27==1)&&(((a12==10)&&(((!(a22==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a6==1))&&!(a15==1)))&&(a3==4))))&&(a4==1)))&&(a0==1))){ + a27 = 1; + a12 = 11; + a3 = 8; + a18 = 0; + a22 = 1; + a4 = 0; + return 21; + } else if(((a3==8)&&((a6==1)&&((a22==1)&&((((((a27==1)&&(((a5==1)&&((input==4)&&(a20==1)))&&!(a0==1)))&&(a15==1))&&(a4==1))&&(a18==1))&&(a12==11)))))){ + a27 = 0; + a0 = 1; + a3 = 5; + a12 = 8; + a15 = 0; + a4 = 0; + return 26; + } else if(((a18==1)&&((((a4==1)&&(((a20==1)&&((a0==1)&&(((a12==10)&&(!(a22==1)&&(!(a15==1)&&(input==1))))&&!(a6==1))))&&!(a27==1)))&&(a3==6))&&(a5==1)))){ + a27 = 1; + a4 = 0; + a3 = 7; + a18 = 0; + a12 = 11; + a5 = 0; + a6 = 1; + a22 = 1; + return 21; + } else if(((((a3==8)&&((!(a0==1)&&(((a20==1)&&(((a5==1)&&((!(a18==1)&&(input==2))&&(a27==1)))&&!(a4==1)))&&(a22==1)))&&!(a15==1)))&&(a6==1))&&(a12==9))){ + a15 = 1; + a0 = 1; + a12 = 11; + a3 = 6; + a18 = 1; + return 26; + } else if(((!(a0==1)&&((a3==6)&&((a12==9)&&(!(a18==1)&&((a20==1)&&(!(a22==1)&&(((((input==6)&&(a27==1))&&(a5==1))&&(a15==1))&&!(a6==1))))))))&&(a4==1))){ + if((a4==1)){ + a18 = 1; + a12 = 11; + a15 = 0; + }else{ + a0 = 1; + a27 = 0; + a15 = 0; + a6 = 1; + a12 = 11; + } + return -1; + } else if(((((((!(a6==1)&&(!(a5==1)&&(((input==6)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5))))&&(a12==9))))&&(a4==1))&&!(a15==1))&&(a0==1))&&(a20==1))&&(a27==1))){ + a5 = 1; + a18 = 1; + a15 = 1; + a3 = 4; + a22 = 0; + a6 = 1; + a27 = 0; + return 26; + } else if((!(a15==1)&&(!(a6==1)&&((a5==1)&&((!(a27==1)&&((a3==4)&&(((a4==1)&&((a12==12)&&((a22==1)&&((input==6)&&((a18==1)||!(a18==1))))))&&(a0==1))))&&(a20==1)))))){ + a6 = 1; + a15 = 1; + a18 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if(((((a0==1)&&((a12==10)&&(!(a15==1)&&(((a27==1)&&(((a3==5)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==5)))&&!(a6==1)))&&(a20==1)))))&&!(a4==1))&&(a5==1))){ + a18 = 1; + a22 = 0; + a3 = 7; + a15 = 1; + return -1; + } else if(((a4==1)&&((a20==1)&&(((!(a5==1)&&((((((((a22==1)&&(a18==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5))))&&(input==2))&&!(a15==1))&&(a0==1))&&!(a6==1)))&&(a12==11))&&!(a27==1))))){ + a22 = 1; + a6 = 1; + a27 = 1; + a15 = 1; + a18 = 1; + a12 = 8; + a5 = 1; + a3 = 4; + return -1; + } else if((((a5==1)&&(((a3==4)&&((a12==11)&&(!(a15==1)&&((a27==1)&&((a0==1)&&((!(a4==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a22==1)))))))&&(a20==1)))&&(a6==1))){ + a3 = 8; + a18 = 0; + a6 = 0; + a15 = 1; + return -1; + } else if(((!(a0==1)&&(((!(a27==1)&&((((((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6)))||((a3==6)&&(!(a18==1)&&(a22==1))))&&(input==2))&&(a12==11))&&!(a5==1))&&(a20==1)))&&(a4==1))&&(a15==1)))&&!(a6==1))){ + a22 = 0; + a27 = 1; + a18 = 1; + a3 = 5; + a15 = 0; + a12 = 12; + return -1; + } else if(((a4==1)&&((!(a6==1)&&(!(a27==1)&&((((!(a15==1)&&((((a3==6)&&((a18==1)&&(a22==1)))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a22==1)&&!(a18==1)))))&&(input==1)))&&(a5==1))&&(a12==9))&&!(a0==1))))&&(a20==1)))){ + a12 = 10; + a18 = 0; + a15 = 1; + a22 = 0; + a6 = 1; + a3 = 5; + a4 = 0; + return -1; + } else if(((!(a0==1)&&((((((((a15==1)&&((a22==1)&&((input==6)&&(a27==1))))&&(a3==5))&&(a4==1))&&(a18==1))&&!(a5==1))&&(a20==1))&&(a12==8)))&&!(a6==1))){ + a3 = 7; + a4 = 0; + a0 = 1; + a12 = 11; + a5 = 1; + return 24; + } else if(((a20==1)&&((((!(a15==1)&&(((a3==6)&&(!(a6==1)&&(((input==5)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&!(a5==1))))&&!(a27==1)))&&(a12==8))&&(a4==1))&&!(a0==1)))){ + if((a5==1)){ + a15 = 1; + a27 = 1; + a0 = 1; + a5 = 1; + a18 = 0; + a22 = 1; + a3 = 5; + a6 = 1; + }else{ + a27 = 1; + a22 = 0; + a12 = 12; + a6 = 1; + a5 = 1; + a18 = 0; + a15 = 1; + } + return 24; + } else if((!(a27==1)&&(!(a0==1)&&((a5==1)&&(((((a4==1)&&((((((a18==1)&&(a22==1))&&(a3==5))||((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1)))))&&(input==5))&&(a15==1)))&&(a20==1))&&!(a6==1))&&(a12==11)))))){ + if((a3==5)){ + a0 = 1; + a12 = 12; + a4 = 0; + a18 = 1; + a3 = 8; + a22 = 1; + }else{ + a12 = 12; + a18 = 1; + a3 = 8; + a22 = 1; + a27 = 1; + a0 = 1; + a15 = 0; + } + return 21; + } else if(((a15==1)&&((a22==1)&&(((a12==8)&&(!(a0==1)&&(((a3==7)&&(((a20==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a4==1)))&&(a5==1)))&&!(a6==1))))&&!(a27==1))))){ + a18 = 1; + a27 = 1; + a0 = 1; + a12 = 12; + a3 = 4; + a6 = 1; + return 26; + } else if(((a6==1)&&((((a20==1)&&((a27==1)&&(!(a4==1)&&((a15==1)&&((a18==1)&&((((input==1)&&!(a0==1))&&(a5==1))&&(a3==5)))))))&&!(a22==1))&&(a12==11)))){ + a3 = 6; + a27 = 0; + a4 = 1; + a0 = 1; + a12 = 12; + a15 = 0; + return 21; + } else if(((((((!(a4==1)&&((a5==1)&&((a6==1)&&((a3==7)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==4))))))&&(a20==1))&&(a0==1))&&(a12==9))&&(a15==1))&&!(a27==1))){ + a22 = 0; + a3 = 6; + a4 = 1; + a5 = 0; + a18 = 1; + return 24; + } else if((((((a3==8)&&((!(a15==1)&&((a12==10)&&((a22==1)&&(((a6==1)&&((a20==1)&&(input==2)))&&(a18==1)))))&&!(a27==1)))&&(a4==1))&&!(a0==1))&&!(a5==1))){ + a4 = 0; + a12 = 11; + a6 = 0; + return 21; + } else if(((a4==1)&&(!(a22==1)&&((((((a6==1)&&((a0==1)&&(((a3==6)&&((a20==1)&&(input==5)))&&(a15==1))))&&(a12==11))&&!(a27==1))&&(a18==1))&&(a5==1))))){ + a27 = 1; + a15 = 0; + a5 = 0; + a4 = 0; + a0 = 0; + return 24; + } else if(((a4==1)&&(!(a15==1)&&((((a5==1)&&(!(a0==1)&&(((!(a27==1)&&((input==3)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))&&(a3==5))&&(a12==10))))&&!(a6==1))&&(a20==1))))){ + a3 = 7; + a0 = 1; + a12 = 8; + a22 = 1; + a27 = 1; + a18 = 0; + a15 = 1; + a6 = 1; + return 21; + } else if(((((a3==4)&&((a20==1)&&(((a12==12)&&(!(a15==1)&&((!(a5==1)&&(!(a0==1)&&(((a18==1)||!(a18==1))&&(input==2))))&&(a6==1))))&&!(a22==1))))&&(a27==1))&&(a4==1))){ + a6 = 0; + a15 = 1; + a18 = 0; + a12 = 8; + a5 = 1; + a22 = 1; + a0 = 1; + return 21; + } else if(((a18==1)&&(!(a15==1)&&((a12==8)&&(((a0==1)&&((a3==6)&&((a27==1)&&((((a5==1)&&((a20==1)&&(input==5)))&&(a22==1))&&(a4==1)))))&&!(a6==1)))))){ + a5 = 0; + a3 = 8; + return 21; + } else if((!(a0==1)&&((a20==1)&&((((((!(a4==1)&&((((input==4)&&!(a18==1))&&!(a22==1))&&(a3==6)))&&!(a15==1))&&(a5==1))&&!(a27==1))&&(a6==1))&&(a12==10))))){ + a12 = 8; + a15 = 1; + a0 = 1; + a27 = 1; + return 26; + } else if((!(a15==1)&&(((a3==4)&&((a4==1)&&(((!(a22==1)&&(((a5==1)&&(((input==6)&&!(a18==1))&&!(a27==1)))&&!(a6==1)))&&!(a0==1))&&(a12==11))))&&(a20==1)))){ + if((a3==8)){ + a6 = 1; + a18 = 1; + a3 = 7; + a0 = 1; + a12 = 8; + a22 = 1; + a15 = 1; + a27 = 1; + }else{ + a18 = 1; + a15 = 1; + a22 = 1; + a0 = 1; + a12 = 8; + a27 = 1; + } + return -1; + } else if(((a20==1)&&((((((a22==1)&&((a3==8)&&(((!(a18==1)&&((input==2)&&(a15==1)))&&(a0==1))&&!(a6==1))))&&(a12==12))&&!(a27==1))&&(a4==1))&&!(a5==1)))){ + a22 = 0; + a3 = 7; + a15 = 0; + a12 = 8; + a6 = 1; + return 26; + } else if(((!(a5==1)&&(!(a15==1)&&(((!(a0==1)&&((((input==2)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||((a3==6)&&((a22==1)&&(a18==1)))))&&(a12==8))&&(a20==1)))&&(a27==1))&&(a4==1))))&&(a6==1))){ + a18 = 1; + a3 = 4; + a22 = 1; + a15 = 1; + a5 = 1; + a0 = 1; + return -1; + } else if(((a20==1)&&((a5==1)&&((!(a15==1)&&((a27==1)&&((a12==12)&&(((((input==3)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&(a0==1))&&(a6==1))&&(a3==8)))))&&(a4==1))))){ + a12 = 8; + a3 = 4; + a18 = 1; + a22 = 1; + a15 = 1; + return -1; + } else if(((((!(a15==1)&&(((a20==1)&&((!(a0==1)&&(((input==3)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&(a3==5)))&&(a27==1)))&&(a12==9)))&&!(a4==1))&&!(a5==1))&&!(a6==1))){ + a0 = 1; + a18 = 1; + a12 = 10; + a3 = 6; + a4 = 1; + a15 = 1; + a22 = 1; + return -1; + } else if(((!(a5==1)&&(((a4==1)&&(((a3==6)&&((a12==9)&&(((((input==4)&&(a6==1))&&(a20==1))&&(a22==1))&&!(a15==1))))&&(a18==1)))&&!(a0==1)))&&!(a27==1))){ + a27 = 1; + a5 = 1; + a3 = 5; + a0 = 1; + a12 = 8; + a6 = 0; + a15 = 1; + return -1; + } else if(((a4==1)&&(((a0==1)&&(((((a20==1)&&((a27==1)&&(((((a18==1)||!(a18==1))&&(input==6))&&!(a22==1))&&!(a5==1))))&&(a6==1))&&(a3==7))&&(a15==1)))&&(a12==12)))){ + a18 = 0; + a3 = 4; + a6 = 0; + a12 = 10; + a5 = 1; + return 26; + } else if((((((a4==1)&&((((a3==6)&&((((input==2)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a12==11))&&!(a0==1)))&&(a6==1))&&(a15==1)))&&(a5==1))&&(a20==1))&&!(a27==1))){ + if((a22==1)){ + a12 = 8; + a27 = 1; + a22 = 0; + a4 = 0; + a18 = 1; + a3 = 4; + a0 = 1; + }else{ + a3 = 8; + a22 = 0; + a5 = 0; + a15 = 0; + a18 = 1; + a12 = 9; + a4 = 0; + } + return 21; + } else if(((a12==8)&&((((a15==1)&&(((((!(a6==1)&&((input==3)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a27==1))&&(a20==1))&&!(a5==1))&&!(a0==1)))&&(a4==1))&&(a3==8)))){ + a3 = 6; + a6 = 1; + a18 = 1; + a0 = 1; + a22 = 0; + a27 = 1; + a5 = 1; + return -1; + } else if((((a15==1)&&((a4==1)&&(((a5==1)&&(((a3==8)&&(((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==6))&&(a20==1))&&!(a27==1)))&&!(a0==1)))&&(a12==10))))&&!(a6==1))){ + if((a27==1)){ + a18 = 0; + a12 = 11; + a22 = 0; + a0 = 1; + a3 = 7; + a6 = 1; + }else{ + a18 = 0; + a12 = 9; + a22 = 1; + a15 = 0; + a27 = 1; + } + return -1; + } else if(((a27==1)&&(((a0==1)&&((((a12==10)&&((a20==1)&&(!(a4==1)&&(((((a18==1)&&(a22==1))&&(a3==8))||((((a18==1)&&!(a22==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7))))&&(input==6)))))&&!(a6==1))&&(a15==1)))&&!(a5==1)))){ + if((a6==1)){ + a6 = 1; + a0 = 0; + a15 = 0; + a18 = 0; + a3 = 4; + a12 = 8; + a22 = 0; + }else{ + a3 = 5; + a22 = 1; + a5 = 1; + a27 = 0; + a15 = 0; + a6 = 1; + a18 = 1; + } + return 26; + } else if(((a15==1)&&(!(a22==1)&&(((((a6==1)&&(((a20==1)&&((a0==1)&&((a12==10)&&(((a18==1)||!(a18==1))&&(input==4)))))&&(a5==1)))&&(a3==6))&&!(a27==1))&&!(a4==1))))){ + a15 = 0; + a4 = 1; + a5 = 0; + a6 = 0; + a12 = 8; + a18 = 0; + return 21; + } else if((!(a27==1)&&((a4==1)&&(((a3==7)&&((a12==10)&&(!(a0==1)&&((a5==1)&&(!(a15==1)&&(((input==4)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a6==1)))))))&&(a20==1))))){ + a18 = 1; + a22 = 0; + a27 = 1; + a15 = 1; + a12 = 9; + a5 = 0; + a3 = 5; + return -1; + } else if(((!(a18==1)&&(!(a6==1)&&(!(a0==1)&&((!(a4==1)&&(!(a5==1)&&((a15==1)&&((a12==10)&&(((a27==1)&&(input==5))&&(a3==7))))))&&!(a22==1)))))&&(a20==1))){ + a4 = 1; + a12 = 9; + a5 = 1; + a0 = 1; + a15 = 0; + return 24; + } else if((((((((a0==1)&&((a5==1)&&((a12==10)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==4)))))&&!(a15==1))&&!(a4==1))&&(a6==1))&&!(a27==1))&&(a20==1))){ + a5 = 0; + a15 = 1; + a18 = 1; + a27 = 1; + a4 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if((((!(a0==1)&&(((a20==1)&&((a15==1)&&((a22==1)&&(!(a6==1)&&((a12==9)&&((a27==1)&&(!(a4==1)&&(input==4))))))))&&(a3==7)))&&(a5==1))&&!(a18==1))){ + a6 = 1; + a4 = 1; + a3 = 8; + a18 = 1; + a12 = 10; + return 26; + } else if(((!(a5==1)&&(!(a15==1)&&((((a6==1)&&((a20==1)&&(((!(a4==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a22==1))&&(a0==1))))&&(a12==9))&&!(a27==1))))&&(a3==5))){ + a27 = 1; + a12 = 8; + a15 = 1; + a5 = 1; + a3 = 4; + a4 = 1; + a18 = 1; + return -1; + } else if(((a3==4)&&(((a0==1)&&((((a4==1)&&((((!(a15==1)&&((input==3)&&(a22==1)))&&(a18==1))&&(a12==10))&&(a6==1)))&&(a20==1))&&(a27==1)))&&(a5==1)))){ + a12 = 8; + a15 = 1; + return -1; + } else if((!(a0==1)&&(((((((a20==1)&&(((a12==9)&&((((a18==1)||!(a18==1))&&(input==3))&&(a27==1)))&&(a5==1)))&&(a3==8))&&(a6==1))&&!(a15==1))&&!(a4==1))&&!(a22==1)))){ + a4 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a15 = 1; + a22 = 1; + return -1; + } else if(((a0==1)&&(!(a5==1)&&((a20==1)&&((a12==12)&&((a4==1)&&((a15==1)&&(((((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))||(!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1)))))&&(input==4))&&(a27==1))))))))){ + a4 = 0; + a12 = 11; + a3 = 4; + a18 = 1; + a22 = 0; + a6 = 0; + return -1; + } else if(((((((a6==1)&&(((((a3==6)&&(((input==6)&&(a20==1))&&(a12==9)))&&!(a22==1))&&(a15==1))&&(a4==1)))&&!(a18==1))&&(a5==1))&&(a27==1))&&(a0==1))){ + if((a20==1)){ + a0 = 0; + a12 = 11; + a22 = 1; + a5 = 0; + }else{ + a3 = 4; + a4 = 0; + a15 = 0; + a12 = 11; + a5 = 0; + } + return 26; + } else if((((a12==12)&&((((((a5==1)&&(((!(a6==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a3==5))&&!(a27==1)))&&(a15==1))&&(a22==1))&&(a20==1))&&!(a4==1)))&&(a0==1))){ + a27 = 1; + a12 = 8; + a4 = 1; + a18 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if((!(a15==1)&&((a22==1)&&((a20==1)&&((((a27==1)&&(((((a6==1)&&((input==6)&&(a5==1)))&&(a3==5))&&!(a18==1))&&(a0==1)))&&(a12==8))&&!(a4==1)))))){ + a4 = 1; + a15 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((a3==5)&&(((((a22==1)&&((a27==1)&&(((a12==10)&&((a4==1)&&(!(a15==1)&&((a5==1)&&(input==5)))))&&(a20==1))))&&!(a18==1))&&(a0==1))&&!(a6==1)))){ + a18 = 1; + a6 = 1; + a3 = 7; + a15 = 1; + return -1; + } else if((!(a15==1)&&((a12==10)&&((((!(a0==1)&&(((a4==1)&&((input==2)&&(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1))))))&&(a20==1)))&&!(a6==1))&&(a27==1))&&!(a5==1))))){ + a18 = 1; + a3 = 7; + a0 = 1; + a22 = 1; + return -1; + } else if(((!(a27==1)&&((((a0==1)&&((((((((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==4))&&!(a15==1))&&!(a6==1))&&!(a5==1)))&&!(a4==1))&&(a12==10)))&&(a20==1))){ + a27 = 1; + a18 = 1; + a12 = 11; + a22 = 1; + a4 = 1; + a3 = 7; + a0 = 0; + return -1; + } else if((!(a5==1)&&((a3==4)&&(((a12==9)&&((((!(a6==1)&&(((input==3)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&(a0==1)))&&!(a4==1))&&(a20==1))&&(a27==1)))&&(a15==1))))){ + a18 = 1; + a6 = 1; + a12 = 8; + a5 = 1; + a22 = 1; + a4 = 1; + return -1; + } else if((!(a15==1)&&((a27==1)&&((!(a18==1)&&((a12==9)&&(((a5==1)&&(((((input==2)&&(a22==1))&&(a6==1))&&(a4==1))&&(a3==6)))&&!(a0==1))))&&(a20==1))))){ + a12 = 8; + a0 = 1; + a15 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((((a3==5)&&(((!(a5==1)&&(!(a27==1)&&((!(a4==1)&&(((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==3))&&!(a6==1)))&&(a12==8))))&&(a20==1))&&(a15==1)))&&!(a0==1))){ + a22 = 0; + a4 = 1; + a18 = 0; + a12 = 10; + a3 = 7; + a0 = 1; + return -1; + } else if(((((a27==1)&&((((a15==1)&&(!(a6==1)&&(((a20==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a22==1)))&&(a12==10))))&&(a0==1))&&!(a5==1)))&&!(a4==1))&&(a3==7))){ + a6 = 1; + a4 = 1; + a18 = 1; + a5 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((a12==11)&&((a0==1)&&(((((a5==1)&&((a27==1)&&(!(a15==1)&&((input==4)&&((((a18==1)&&(a22==1))&&(a3==7))||(((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a22==1)&&!(a18==1)))))))))&&(a4==1))&&(a6==1))&&(a20==1))))){ + a18 = 0; + a3 = 7; + a22 = 0; + a12 = 10; + return -1; + } else if(((!(a5==1)&&(!(a4==1)&&((a0==1)&&(((a3==6)&&(((a20==1)&&((!(a15==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a6==1)))&&!(a22==1)))&&(a12==12)))))&&(a27==1))){ + a5 = 1; + a15 = 1; + a18 = 0; + a12 = 11; + a27 = 0; + a3 = 8; + return 26; + } else if((((!(a15==1)&&(((a4==1)&&(((((input==6)&&((((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a18==1)&&!(a22==1))))||((a3==6)&&((a22==1)&&(a18==1)))))&&(a12==12))&&!(a5==1))&&(a0==1)))&&(a20==1)))&&(a6==1))&&!(a27==1))){ + a15 = 1; + a27 = 1; + a3 = 6; + a18 = 1; + a12 = 10; + a22 = 0; + a4 = 0; + return 21; + } else if(((a15==1)&&((a3==8)&&((((!(a0==1)&&((!(a22==1)&&((a12==12)&&((((a18==1)||!(a18==1))&&(input==5))&&!(a4==1))))&&(a20==1)))&&(a5==1))&&!(a6==1))&&(a27==1))))){ + a12 = 9; + a3 = 5; + a22 = 1; + a5 = 0; + a0 = 1; + a18 = 0; + a27 = 0; + return 21; + } else if((((!(a27==1)&&((!(a5==1)&&((a18==1)&&(!(a22==1)&&((a20==1)&&((a12==11)&&(((input==3)&&(a15==1))&&(a4==1)))))))&&!(a6==1)))&&!(a0==1))&&(a3==7))){ + a5 = 1; + a18 = 0; + a3 = 6; + a0 = 1; + a27 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if(((a4==1)&&((!(a27==1)&&((a15==1)&&((a12==12)&&((((a5==1)&&(((((a18==1)&&(a22==1))&&(a3==5))||(((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1)))))&&(input==2)))&&!(a0==1))&&(a6==1)))))&&(a20==1)))){ + a12 = 8; + a18 = 0; + a6 = 0; + a3 = 6; + a27 = 1; + a22 = 1; + a0 = 1; + return -1; + } else if(((a4==1)&&((a6==1)&&(((a12==8)&&((!(a5==1)&&(((!(a0==1)&&((a22==1)&&((a20==1)&&(input==2))))&&!(a15==1))&&(a27==1)))&&(a3==4)))&&!(a18==1))))){ + a18 = 1; + a0 = 1; + a15 = 1; + a5 = 1; + return -1; + } else if(((!(a15==1)&&(!(a5==1)&&(((a4==1)&&(!(a0==1)&&((!(a22==1)&&((((input==3)&&(a3==6))&&(a6==1))&&(a20==1)))&&(a27==1))))&&!(a18==1))))&&(a12==8))){ + a6 = 0; + a3 = 7; + a12 = 11; + a18 = 1; + a0 = 1; + return 21; + } else if(((!(a0==1)&&((((a27==1)&&((((((((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==4))&&(a20==1))&&!(a4==1))&&(a12==10)))&&(a15==1))&&(a6==1)))&&(a5==1))){ + a18 = 0; + a22 = 0; + a3 = 7; + a0 = 1; + return 21; + } else if(((a3==6)&&(((((!(a5==1)&&(((!(a0==1)&&((((a18==1)||!(a18==1))&&(input==5))&&!(a6==1)))&&(a15==1))&&!(a4==1)))&&(a22==1))&&(a12==10))&&!(a27==1))&&(a20==1)))){ + if((a5==1)){ + a3 = 7; + a5 = 1; + a0 = 1; + a12 = 11; + a18 = 0; + a22 = 0; + }else{ + a0 = 1; + a5 = 1; + a27 = 1; + a12 = 8; + a18 = 0; + a6 = 1; + a4 = 1; + } + return 21; + } else if((((a20==1)&&(((((a3==4)&&((a0==1)&&(!(a15==1)&&(((a12==10)&&((input==1)&&((a18==1)||!(a18==1))))&&!(a6==1)))))&&!(a5==1))&&!(a22==1))&&(a27==1)))&&(a4==1))){ + a18 = 1; + a22 = 1; + a5 = 1; + a15 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if((((((a0==1)&&((((((((((a18==1)&&!(a22==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6)))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==3))&&!(a27==1))&&(a20==1))&&(a15==1))&&(a5==1)))&&!(a6==1))&&!(a4==1))&&(a12==11))){ + a5 = 0; + a12 = 10; + a22 = 1; + a3 = 6; + a4 = 1; + a6 = 1; + a18 = 0; + return -1; + } else if((((((a5==1)&&(((((!(a4==1)&&((input==5)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))&&(a15==1))&&(a3==7))&&(a0==1))&&(a20==1)))&&(a12==12))&&!(a6==1))&&!(a27==1))){ + a27 = 1; + a22 = 0; + a4 = 1; + a18 = 0; + a3 = 4; + a12 = 10; + return -1; + } else if((((((a27==1)&&(((a15==1)&&((a3==4)&&((!(a22==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&!(a6==1)))&&!(a4==1))))&&(a0==1)))&&(a5==1))&&(a12==12))&&(a20==1))){ + a12 = 10; + a15 = 0; + a6 = 1; + a3 = 5; + a18 = 0; + a22 = 1; + a5 = 0; + return -1; + } else if(((!(a15==1)&&(((!(a5==1)&&((a3==4)&&((a0==1)&&(((a22==1)&&((a12==9)&&((a4==1)&&(input==1))))&&(a20==1)))))&&(a18==1))&&(a6==1)))&&!(a27==1))){ + a18 = 0; + a15 = 1; + a0 = 0; + a22 = 0; + a4 = 0; + a3 = 8; + a27 = 1; + a6 = 0; + return 21; + } else if(((a3==4)&&((a12==12)&&(((!(a5==1)&&(!(a6==1)&&((a0==1)&&((a4==1)&&((a20==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==3)))))))&&!(a27==1))&&!(a15==1))))){ + a4 = 0; + a3 = 6; + a27 = 1; + a22 = 0; + a12 = 10; + a18 = 1; + return 26; + } else if(((a27==1)&&((a12==9)&&((a5==1)&&((((a0==1)&&((((((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1))))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==2))&&(a20==1))&&(a6==1)))&&(a15==1))&&!(a4==1)))))){ + a18 = 1; + a22 = 1; + a6 = 0; + a12 = 12; + a3 = 5; + a4 = 1; + a5 = 0; + return 26; + } else if(((!(a5==1)&&((a15==1)&&(((a20==1)&&(((!(a6==1)&&((a12==12)&&(!(a4==1)&&((a18==1)&&(input==6)))))&&(a22==1))&&(a0==1)))&&(a3==8))))&&!(a27==1))){ + a4 = 1; + a6 = 1; + a5 = 1; + a12 = 8; + a27 = 1; + a3 = 4; + return -1; + } else if(((!(a22==1)&&(((!(a5==1)&&((((a3==7)&&(((a15==1)&&((input==4)&&(a12==11)))&&!(a27==1)))&&(a4==1))&&(a20==1)))&&(a18==1))&&!(a6==1)))&&!(a0==1))){ + if((a0==1)){ + a22 = 1; + a6 = 1; + a0 = 1; + a12 = 9; + a3 = 4; + }else{ + a3 = 6; + a5 = 1; + a12 = 9; + a18 = 0; + a22 = 1; + } + return -1; + } else if((((!(a0==1)&&(((a6==1)&&((a12==12)&&((a27==1)&&((!(a5==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a3==7)))&&!(a15==1)))))&&!(a4==1)))&&(a22==1))&&(a20==1))){ + a12 = 8; + a0 = 1; + a3 = 8; + a27 = 0; + a18 = 0; + a6 = 0; + return 26; + } else if(((a3==6)&&(((((((!(a15==1)&&((a5==1)&&((a20==1)&&(!(a22==1)&&(input==2)))))&&!(a4==1))&&(a27==1))&&!(a6==1))&&(a18==1))&&(a12==12))&&!(a0==1)))){ + a6 = 1; + a18 = 0; + a3 = 7; + a15 = 1; + a0 = 1; + a4 = 1; + a12 = 8; + return 21; + } else if((!(a27==1)&&((!(a4==1)&&((a5==1)&&(((a12==10)&&((a20==1)&&((a3==4)&&(!(a6==1)&&((input==4)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))))&&!(a0==1))))&&!(a15==1)))){ + a27 = 1; + a5 = 0; + a3 = 6; + a12 = 12; + a22 = 1; + a0 = 1; + a4 = 1; + a18 = 0; + a15 = 1; + a6 = 1; + return 21; + } else if(((!(a4==1)&&(((((a3==7)&&((a6==1)&&(((a5==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==1)))&&(a15==1))))&&!(a0==1))&&(a20==1))&&(a12==9)))&&!(a27==1))){ + a12 = 12; + a22 = 0; + a5 = 0; + a4 = 1; + a3 = 8; + a27 = 1; + a18 = 1; + return 26; + } else if(((a6==1)&&(!(a4==1)&&((a20==1)&&(!(a0==1)&&(!(a27==1)&&((a5==1)&&((a15==1)&&((a12==10)&&((a3==6)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==3)))))))))))){ + if((a12==12)){ + a18 = 0; + a27 = 1; + a0 = 1; + a3 = 8; + a22 = 1; + a4 = 1; + a6 = 0; + }else{ + a22 = 1; + a4 = 1; + a0 = 1; + a18 = 0; + a27 = 1; + a12 = 8; + } + return -1; + } else if(((!(a0==1)&&((((!(a22==1)&&(((a27==1)&&((a3==6)&&((((a18==1)||!(a18==1))&&(input==4))&&(a15==1))))&&(a5==1)))&&(a6==1))&&!(a4==1))&&(a20==1)))&&(a12==11))){ + a5 = 0; + a18 = 1; + a15 = 0; + a0 = 1; + a6 = 0; + a3 = 5; + return 21; + } else if(((a27==1)&&(((((a4==1)&&(!(a0==1)&&(!(a5==1)&&((a12==11)&&(((((a22==1)&&!(a18==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5))))&&(input==5))))))&&!(a6==1))&&(a15==1))&&(a20==1)))){ + a3 = 7; + a22 = 0; + a18 = 1; + a0 = 1; + a6 = 1; + a15 = 0; + return -1; + } else if(((!(a4==1)&&((a5==1)&&(!(a0==1)&&(!(a18==1)&&((a6==1)&&(((a12==9)&&((a15==1)&&((a27==1)&&((input==1)&&(a3==4)))))&&(a20==1)))))))&&(a22==1))){ + if((a3==7)){ + a3 = 5; + }else{ + a15 = 0; + a22 = 0; + a4 = 1; + a3 = 7; + a0 = 1; + a18 = 1; + a12 = 10; + a6 = 0; + } + return 21; + } else if((!(a0==1)&&(((a20==1)&&((a3==4)&&((a12==10)&&((((a4==1)&&(((!(a18==1)&&(input==6))&&!(a6==1))&&!(a15==1)))&&!(a27==1))&&!(a5==1)))))&&(a22==1)))){ + a5 = 1; + a3 = 8; + a22 = 0; + a6 = 1; + a12 = 11; + a27 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if(((a3==8)&&(((((((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5))&&!(a27==1))&&!(a15==1))&&(a12==8))&&(a20==1))&&(a6==1))&&(a0==1))&&!(a4==1))&&!(a5==1)))){ + a22 = 0; + a3 = 5; + a18 = 1; + a5 = 1; + a4 = 1; + return 26; + } else if(((((a15==1)&&(!(a5==1)&&(((!(a4==1)&&(((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a0==1))&&(a27==1)))&&(a20==1))&&(a3==7))))&&!(a6==1))&&(a12==8))){ + a4 = 1; + a22 = 1; + a18 = 1; + a12 = 10; + a3 = 5; + return 21; + } else if(((a20==1)&&((((a12==8)&&((((a27==1)&&(!(a15==1)&&((input==5)&&(((a3==7)&&((a22==1)&&(a18==1)))||(((a3==6)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))))))&&(a0==1))&&!(a5==1)))&&(a4==1))&&(a6==1)))){ + a12 = 10; + a22 = 1; + a18 = 0; + a3 = 6; + return 21; + } else if(((((a12==8)&&(((((((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==6))&&!(a5==1))&&!(a4==1))&&(a15==1))&&(a20==1))&&(a27==1)))&&!(a6==1))&&!(a0==1))){ + a4 = 1; + a5 = 1; + a6 = 1; + a3 = 4; + a0 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((!(a4==1)&&((a27==1)&&((!(a5==1)&&(!(a15==1)&&((a6==1)&&(((input==3)&&(((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a22==1)&&(a18==1)))))&&(a20==1)))))&&(a12==12))))&&(a0==1))){ + a18 = 1; + a3 = 4; + a22 = 0; + a4 = 1; + a5 = 1; + a12 = 9; + a27 = 0; + return 21; + } else if(((a4==1)&&(!(a15==1)&&((a22==1)&&(!(a27==1)&&((!(a5==1)&&((a18==1)&&((a6==1)&&(((a3==5)&&((a12==9)&&(input==1)))&&!(a0==1)))))&&(a20==1))))))){ + a15 = 1; + a6 = 0; + a27 = 1; + a18 = 0; + a12 = 8; + a5 = 1; + a3 = 7; + a0 = 1; + return 21; + } else if(((((a27==1)&&(((a20==1)&&((a5==1)&&(!(a0==1)&&(!(a18==1)&&(((a3==8)&&(!(a4==1)&&(input==5)))&&(a15==1))))))&&!(a22==1)))&&(a12==8))&&!(a6==1))){ + a6 = 1; + a4 = 1; + a3 = 5; + a15 = 0; + a18 = 1; + a12 = 10; + a22 = 1; + a0 = 1; + a27 = 0; + return -1; + } else if(((a20==1)&&((!(a27==1)&&(!(a5==1)&&((((((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==5))&&(a4==1))&&!(a6==1))&&(a0==1))&&(a3==4))&&(a12==9))))&&!(a15==1)))){ + if((a27==1)){ + a3 = 5; + a27 = 1; + a12 = 10; + a22 = 1; + a6 = 1; + a0 = 0; + a18 = 1; + }else{ + a6 = 1; + a3 = 7; + a12 = 8; + a18 = 1; + a15 = 1; + a22 = 0; + } + return 26; + } else if((((((((!(a6==1)&&((a4==1)&&((input==5)&&(((a3==5)&&(!(a18==1)&&(a22==1)))||(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))))))&&(a12==11))&&(a20==1))&&(a15==1))&&(a5==1))&&!(a27==1))&&(a0==1))){ + a12 = 8; + a5 = 0; + a18 = 0; + a15 = 0; + a22 = 0; + a3 = 7; + a4 = 0; + return 21; + } else if((((a20==1)&&(((a3==7)&&(!(a6==1)&&((a5==1)&&(((!(a15==1)&&((input==1)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))&&!(a4==1))&&(a27==1)))))&&(a12==11)))&&!(a0==1))){ + if((a5==1)){ + a18 = 1; + a15 = 1; + a12 = 12; + a3 = 8; + a22 = 0; + }else{ + a18 = 1; + a0 = 1; + a12 = 10; + a3 = 6; + a22 = 0; + a15 = 1; + } + return -1; + } else if(((a12==8)&&((a6==1)&&((a4==1)&&((!(a0==1)&&((!(a27==1)&&((a15==1)&&((a20==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6)))))&&(a3==4)))&&!(a5==1)))))){ + a27 = 1; + a4 = 0; + a3 = 7; + a18 = 1; + a0 = 1; + a22 = 0; + a5 = 1; + return 21; + } else if((!(a15==1)&&(!(a27==1)&&(!(a6==1)&&((a20==1)&&(!(a4==1)&&(((a5==1)&&((a12==10)&&((input==5)&&((((a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==7)))))))&&!(a0==1)))))))){ + if((a6==1)){ + a6 = 1; + a12 = 12; + a22 = 1; + a3 = 5; + a0 = 1; + a18 = 0; + a4 = 1; + }else{ + a18 = 0; + a3 = 6; + a15 = 1; + a22 = 1; + a12 = 9; + a6 = 1; + } + return 26; + } else if((!(a5==1)&&(!(a15==1)&&((!(a4==1)&&((a3==6)&&(!(a27==1)&&((((a12==9)&&(((input==3)&&((a18==1)||!(a18==1)))&&!(a0==1)))&&!(a22==1))&&(a6==1)))))&&(a20==1))))){ + a6 = 0; + a18 = 1; + a12 = 11; + a3 = 4; + a0 = 1; + a22 = 1; + return -1; + } else if(((((a27==1)&&(!(a0==1)&&(((a6==1)&&((a12==12)&&((((input==2)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a15==1))&&(a20==1))))&&(a4==1))))&&!(a5==1))&&(a3==4))){ + if((a27==1)){ + a4 = 0; + a3 = 6; + a5 = 1; + a22 = 1; + a18 = 1; + a12 = 8; + a0 = 1; + }else{ + a6 = 0; + a15 = 0; + a4 = 0; + a18 = 0; + a12 = 9; + a22 = 0; + } + return 21; + } else if(((((a6==1)&&((((((a12==10)&&((a3==6)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==1))))&&(a5==1))&&!(a15==1))&&(a4==1))&&!(a0==1)))&&(a20==1))&&!(a27==1))){ + if((a12==12)){ + a5 = 0; + a12 = 8; + a27 = 1; + a18 = 0; + a22 = 0; + }else{ + a27 = 1; + a12 = 8; + a6 = 0; + a18 = 1; + a3 = 8; + a15 = 1; + a22 = 1; + a0 = 1; + } + return 24; + } else if(((!(a27==1)&&(!(a4==1)&&(((a6==1)&&((a12==9)&&((((a20==1)&&((input==2)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&(a3==6))&&!(a5==1))))&&!(a0==1))))&&(a15==1))){ + if((a5==1)){ + a27 = 1; + a0 = 1; + a18 = 0; + a12 = 8; + a22 = 0; + a6 = 0; + a4 = 1; + a5 = 1; + }else{ + a15 = 0; + a12 = 12; + a18 = 0; + a27 = 1; + a3 = 7; + a6 = 0; + a0 = 1; + a22 = 1; + } + return -1; + } else if(((((!(a0==1)&&((((a6==1)&&((!(a22==1)&&(!(a18==1)&&((a27==1)&&(input==3))))&&!(a15==1)))&&(a12==9))&&(a20==1)))&&(a3==8))&&(a5==1))&&(a4==1))){ + a12 = 8; + a5 = 0; + a0 = 1; + a22 = 1; + a6 = 0; + return 26; + } else if((((!(a4==1)&&((a0==1)&&((!(a15==1)&&(((a6==1)&&((input==6)&&((((a3==6)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==6)))||((a3==7)&&((a22==1)&&(a18==1))))))&&(a20==1)))&&(a12==11))))&&(a27==1))&&!(a5==1))){ + a15 = 1; + a22 = 1; + a3 = 4; + a4 = 1; + a18 = 0; + return -1; + } else if(((((((!(a0==1)&&(!(a4==1)&&((((((a3==8)&&(!(a22==1)&&(a18==1)))&&(a6==1))||((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8))))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1)))&&(input==1))))&&(a12==8))&&!(a5==1))&&(a27==1))&&(a20==1))&&!(a15==1))){ + a22 = 0; + a18 = 1; + a6 = 0; + a3 = 4; + a0 = 1; + a27 = 0; + a12 = 10; + return 26; + } else if(((a15==1)&&(!(a0==1)&&(((a12==8)&&((((((input==3)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))||((a3==6)&&(!(a18==1)&&(a22==1)))))&&(a5==1))&&!(a6==1))&&!(a4==1))&&(a27==1)))&&(a20==1))))){ + a0 = 1; + a3 = 4; + a22 = 0; + a4 = 1; + a18 = 1; + a12 = 11; + a6 = 1; + return -1; + } else if((!(a0==1)&&((a18==1)&&(!(a6==1)&&(((a3==6)&&((!(a4==1)&&((a20==1)&&(!(a22==1)&&(((a12==11)&&(input==6))&&(a27==1)))))&&!(a5==1)))&&(a15==1)))))){ + a18 = 0; + a6 = 1; + a0 = 1; + a3 = 8; + return 21; + } else if(((a20==1)&&(!(a22==1)&&(((((a4==1)&&((a3==6)&&(((!(a0==1)&&(!(a15==1)&&(input==6)))&&!(a18==1))&&!(a5==1))))&&!(a27==1))&&(a6==1))&&(a12==8))))){ + a6 = 0; + a3 = 7; + a15 = 1; + a22 = 1; + a0 = 1; + return 21; + } else if(((!(a15==1)&&((!(a5==1)&&(!(a27==1)&&((a4==1)&&(!(a18==1)&&((a20==1)&&(!(a22==1)&&((a6==1)&&((a12==8)&&(input==1)))))))))&&!(a0==1)))&&(a3==6))){ + a6 = 0; + a27 = 1; + a3 = 5; + a0 = 1; + a5 = 1; + a15 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if((((a0==1)&&((a12==9)&&((!(a4==1)&&(((((input==3)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1)))))&&(a20==1))&&!(a27==1))&&!(a6==1)))&&!(a15==1))))&&(a5==1))){ + a4 = 1; + a3 = 8; + a22 = 1; + a15 = 1; + a12 = 12; + a18 = 1; + return 24; + } else if(((a4==1)&&(((a5==1)&&((((((input==2)&&(((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4)))))&&(a20==1))&&(a12==9))&&(a15==1))&&(a0==1)))&&(a27==1)))){ + a18 = 0; + a3 = 5; + a6 = 0; + a12 = 12; + a22 = 1; + return 21; + } else if((!(a5==1)&&((a6==1)&&((a15==1)&&((((a3==6)&&((!(a22==1)&&((a12==12)&&(((input==6)&&((a18==1)||!(a18==1)))&&!(a0==1))))&&(a4==1)))&&(a27==1))&&(a20==1)))))){ + a12 = 11; + a22 = 1; + a27 = 0; + a18 = 0; + a3 = 4; + a15 = 0; + a5 = 1; + return -1; + } else if(((a22==1)&&(((a0==1)&&(!(a6==1)&&(((((a12==8)&&(((((a18==1)||!(a18==1))&&(input==3))&&(a15==1))&&!(a27==1)))&&(a4==1))&&(a3==5))&&(a20==1))))&&!(a5==1)))){ + a3 = 6; + a18 = 0; + a27 = 1; + a4 = 0; + a15 = 0; + a6 = 1; + a12 = 12; + return 21; + } else if(((!(a4==1)&&(((a12==8)&&((a3==5)&&(!(a15==1)&&((a0==1)&&(((a20==1)&&((((a18==1)||!(a18==1))&&(input==2))&&!(a27==1)))&&!(a5==1))))))&&(a22==1)))&&(a6==1))){ + a15 = 1; + a4 = 1; + a5 = 1; + a27 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((!(a6==1)&&((a20==1)&&((a4==1)&&((((a22==1)&&(((a15==1)&&((a0==1)&&((input==3)&&((a18==1)||!(a18==1)))))&&!(a27==1)))&&!(a5==1))&&(a3==6)))))&&(a12==12))){ + a6 = 1; + a3 = 7; + a12 = 11; + a18 = 1; + return -1; + } else if(((a5==1)&&((((a4==1)&&(((a20==1)&&((a15==1)&&(!(a6==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2))&&(a3==5)))))&&(a27==1)))&&(a12==12))&&(a0==1)))){ + a22 = 1; + a6 = 1; + a18 = 0; + a4 = 0; + a12 = 11; + return 21; + } else if(((((((a20==1)&&(!(a18==1)&&((a3==4)&&(((((a0==1)&&(input==4))&&!(a22==1))&&!(a5==1))&&!(a4==1)))))&&!(a15==1))&&(a12==8))&&(a6==1))&&!(a27==1))){ + a3 = 6; + a5 = 1; + a15 = 1; + a12 = 9; + a18 = 1; + return 21; + } else if((((a5==1)&&((!(a18==1)&&((a20==1)&&(((((a3==5)&&(!(a0==1)&&((a22==1)&&(input==4))))&&!(a15==1))&&(a12==11))&&(a6==1))))&&(a27==1)))&&(a4==1))){ + a22 = 0; + a12 = 10; + a3 = 6; + a0 = 1; + a18 = 1; + return -1; + } else if(((((a3==4)&&((!(a27==1)&&((a20==1)&&((a6==1)&&(((a15==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==4)))&&!(a5==1)))))&&!(a0==1)))&&(a12==11))&&!(a4==1))){ + if((a3==7)){ + a3 = 8; + a22 = 1; + a12 = 10; + a5 = 1; + a18 = 1; + a15 = 0; + }else{ + a22 = 1; + a4 = 1; + a15 = 0; + a18 = 1; + a5 = 1; + } + return 24; + } else if((((!(a27==1)&&((((((a3==4)&&((a4==1)&&(((!(a18==1)&&(a22==1))&&!(a5==1))&&(a15==1))))&&(a6==1))||((((!(a4==1)&&(((a5==1)&&(!(a22==1)&&!(a18==1)))&&!(a15==1)))&&(a3==8))&&!(a6==1))||((((a4==1)&&((!(a5==1)&&((a18==1)&&(a22==1)))&&(a15==1)))&&(a3==4))&&(a6==1))))&&(input==1))&&(a20==1)))&&(a0==1))&&(a12==12))){ + a15 = 1; + a12 = 8; + a3 = 4; + a4 = 1; + a6 = 1; + a22 = 1; + a18 = 1; + a5 = 1; + a27 = 1; + return -1; + } else if(((a3==7)&&((!(a5==1)&&(!(a18==1)&&((!(a6==1)&&((((!(a0==1)&&(!(a4==1)&&(input==1)))&&(a20==1))&&(a15==1))&&(a12==12)))&&(a27==1))))&&!(a22==1)))){ + if((a12==12)){ + a12 = 8; + a0 = 1; + a6 = 1; + a3 = 5; + a5 = 1; + }else{ + a18 = 1; + a12 = 10; + a22 = 1; + a0 = 1; + a3 = 8; + } + return 21; + } else if((!(a27==1)&&((((!(a6==1)&&(((a3==4)&&(!(a5==1)&&((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a0==1))))&&(a20==1)))&&!(a15==1))&&(a12==11))&&(a4==1)))){ + a6 = 1; + a3 = 8; + a12 = 8; + a4 = 0; + a22 = 0; + a18 = 0; + a15 = 1; + return -1; + } else if(((((((a20==1)&&(!(a27==1)&&(((a6==1)&&((input==1)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==8)))))&&(a12==12))))&&!(a4==1))&&(a5==1))&&(a0==1))&&!(a15==1))){ + a12 = 10; + a3 = 7; + a22 = 0; + a18 = 0; + a0 = 0; + a27 = 1; + a4 = 1; + a6 = 0; + return 21; + } else if((((a3==5)&&((a27==1)&&((a6==1)&&((a20==1)&&(!(a15==1)&&(((a22==1)&&(!(a0==1)&&(!(a4==1)&&((input==2)&&((a18==1)||!(a18==1))))))&&!(a5==1)))))))&&(a12==8))){ + a12 = 10; + a6 = 0; + a15 = 1; + a0 = 1; + a18 = 1; + return 21; + } else if((((!(a27==1)&&((a20==1)&&((a3==7)&&((a12==10)&&((a6==1)&&(!(a15==1)&&((a0==1)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==4)))))))))&&(a4==1))&&(a5==1))){ + a22 = 0; + a27 = 1; + a12 = 12; + a3 = 5; + a15 = 1; + a5 = 0; + a18 = 0; + return 26; + } else if(((((a5==1)&&((((((a3==4)&&(((input==3)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&(a12==12)))&&(a0==1))&&(a4==1))&&(a27==1))&&!(a6==1)))&&(a15==1))&&(a20==1))){ + a15 = 0; + a18 = 0; + a22 = 1; + return 26; + } else if((((a4==1)&&((a0==1)&&((a20==1)&&(!(a27==1)&&((a3==7)&&((((a12==12)&&((input==3)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))&&!(a15==1))&&!(a6==1)))))))&&(a5==1))){ + a5 = 0; + a3 = 4; + a27 = 1; + a18 = 0; + a22 = 0; + a12 = 11; + return 26; + } else if(((a27==1)&&(((a4==1)&&((!(a15==1)&&(!(a5==1)&&((a20==1)&&(((((((a18==1)&&!(a22==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==4))&&(a6==1)))))&&(a0==1)))&&(a12==11)))){ + a15 = 1; + a18 = 0; + a3 = 6; + a5 = 1; + a22 = 1; + a4 = 0; + return 21; + } else if((((((a12==12)&&(((!(a15==1)&&((((((a18==1)||!(a18==1))&&(input==1))&&!(a6==1))&&(a27==1))&&(a5==1)))&&(a20==1))&&(a3==7)))&&!(a0==1))&&!(a4==1))&&!(a22==1))){ + a3 = 6; + a22 = 1; + a18 = 0; + a12 = 10; + a5 = 0; + a6 = 1; + return -1; + } else if((!(a0==1)&&(!(a6==1)&&((a3==7)&&(((((a12==10)&&(!(a15==1)&&(((a20==1)&&((input==2)&&!(a5==1)))&&!(a27==1))))&&!(a22==1))&&(a18==1))&&!(a4==1)))))){ + a12 = 8; + a15 = 1; + a0 = 1; + a3 = 6; + a4 = 1; + a5 = 1; + a6 = 1; + a27 = 1; + return -1; + } else if(((a0==1)&&(((a22==1)&&((!(a15==1)&&((a12==10)&&((a6==1)&&(((!(a5==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a3==4))&&(a4==1)))))&&!(a27==1)))&&(a20==1)))){ + if((a15==1)){ + a3 = 7; + a0 = 0; + a18 = 0; + a27 = 1; + }else{ + a27 = 1; + a4 = 0; + a6 = 0; + a12 = 12; + a18 = 0; + a3 = 7; + a5 = 1; + a22 = 0; + } + return 21; + } else if(((a12==12)&&(((a15==1)&&((((a6==1)&&((!(a4==1)&&((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==1))&&(a0==1)))&&(a5==1)))&&(a3==5))&&(a20==1)))&&!(a27==1)))){ + if((a0==1)){ + a3 = 8; + a5 = 0; + a15 = 0; + a18 = 1; + a22 = 0; + }else{ + a12 = 8; + a3 = 4; + a6 = 0; + a22 = 0; + a4 = 1; + a5 = 0; + a15 = 0; + a18 = 1; + } + return -1; + } else if((((a20==1)&&((a22==1)&&(!(a18==1)&&((a12==10)&&((((a3==5)&&((!(a27==1)&&(!(a15==1)&&(input==4)))&&(a4==1)))&&(a6==1))&&!(a0==1))))))&&(a5==1))){ + a5 = 0; + a12 = 8; + a27 = 1; + a3 = 7; + return 21; + } else if(((a27==1)&&((a20==1)&&((!(a4==1)&&((a0==1)&&((a5==1)&&((a12==8)&&((a3==4)&&(((input==5)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a15==1)))))))&&!(a6==1))))){ + a22 = 1; + a12 = 9; + a6 = 1; + a18 = 0; + a3 = 5; + return 24; + } else if((((a3==4)&&((a5==1)&&((a22==1)&&(!(a15==1)&&((a4==1)&&((!(a27==1)&&((a12==10)&&((a6==1)&&((a0==1)&&(input==2)))))&&!(a18==1)))))))&&(a20==1))){ + a27 = 1; + a3 = 5; + return 26; + } else if(((a3==5)&&(((((a20==1)&&(!(a4==1)&&(!(a5==1)&&(!(a0==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==4))&&(a15==1))))))&&(a27==1))&&(a12==9))&&(a6==1)))){ + a15 = 0; + a6 = 0; + a3 = 8; + a4 = 1; + a12 = 10; + a22 = 0; + a0 = 1; + a18 = 1; + return -1; + } else if(((a27==1)&&(((a4==1)&&((a20==1)&&((a6==1)&&((a18==1)&&(((!(a15==1)&&(((input==1)&&!(a22==1))&&(a12==10)))&&(a3==6))&&(a5==1))))))&&(a0==1)))){ + if((a5==1)){ + a5 = 0; + a15 = 1; + a0 = 0; + a12 = 9; + a18 = 0; + a3 = 7; + }else{ + a3 = 7; + a12 = 11; + a4 = 0; + a18 = 0; + a15 = 1; + a5 = 0; + a0 = 0; + } + return 21; + } else if((((!(a4==1)&&(!(a15==1)&&(((((!(a6==1)&&((input==6)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&(a5==1))&&(a3==7))&&(a27==1))&&(a12==10))))&&(a20==1))&&(a0==1))){ + a18 = 1; + a3 = 4; + a15 = 1; + a12 = 8; + a22 = 1; + a6 = 1; + a4 = 1; + return -1; + } else if((((a3==6)&&(!(a15==1)&&((((!(a4==1)&&((!(a22==1)&&(!(a27==1)&&(((a18==1)||!(a18==1))&&(input==6))))&&(a0==1)))&&(a12==9))&&(a20==1))&&(a5==1))))&&(a6==1))){ + a6 = 0; + a15 = 1; + a12 = 11; + a22 = 1; + a18 = 1; + return 26; + } else if((((a12==8)&&(!(a15==1)&&((a3==4)&&(!(a27==1)&&((a0==1)&&(((a6==1)&&(((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a4==1)))&&!(a5==1)))))))&&(a20==1))){ + a12 = 11; + a22 = 0; + a18 = 1; + a4 = 0; + return 26; + } else if(((a20==1)&&((((!(a27==1)&&(!(a5==1)&&((((((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1)))&&!(a6==1))||((a6==1)&&((!(a4==1)&&((a18==1)&&(a22==1)))&&(a3==4))))||(((a3==4)&&(!(a4==1)&&(!(a18==1)&&(a22==1))))&&(a6==1)))&&(input==5))))&&!(a15==1))&&(a12==10))&&(a0==1)))){ + a5 = 1; + a12 = 8; + a15 = 1; + a4 = 1; + a3 = 4; + a6 = 1; + a27 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((a20==1)&&(!(a0==1)&&((a15==1)&&(((a27==1)&&((a4==1)&&((a6==1)&&(((input==5)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))||(((a22==1)&&!(a18==1))&&(a3==5))))&&(a5==1)))))&&(a12==10)))))){ + if((a22==1)){ + a3 = 6; + a4 = 0; + a22 = 0; + a18 = 0; + a12 = 11; + a5 = 0; + }else{ + a18 = 1; + a22 = 1; + a4 = 0; + a12 = 11; + a6 = 0; + a5 = 0; + a3 = 7; + a0 = 1; + } + return 21; + } else if((!(a0==1)&&(((a4==1)&&((a20==1)&&(((a5==1)&&((a12==11)&&(!(a27==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))||(((a22==1)&&!(a18==1))&&(a3==5)))&&(input==3)))))&&(a6==1))))&&!(a15==1)))){ + a3 = 7; + a15 = 1; + a27 = 1; + a22 = 0; + a18 = 0; + a12 = 8; + a4 = 0; + a0 = 1; + return 26; + } else if(((!(a0==1)&&(((a6==1)&&(((((((((a18==1)||!(a18==1))&&(input==5))&&(a12==11))&&!(a15==1))&&!(a4==1))&&(a27==1))&&!(a22==1))&&(a20==1)))&&(a3==7)))&&(a5==1))){ + a6 = 0; + a18 = 1; + a22 = 1; + a4 = 1; + a3 = 5; + a0 = 1; + a5 = 0; + return 24; + } else if((!(a4==1)&&((a20==1)&&(!(a0==1)&&((a6==1)&&(!(a15==1)&&(!(a5==1)&&((((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==5))&&!(a27==1))&&(a12==10))))))))){ + a15 = 1; + a22 = 0; + a5 = 1; + a12 = 8; + a3 = 6; + a18 = 0; + a0 = 1; + a27 = 1; + return -1; + } else if(((a20==1)&&((a5==1)&&(!(a15==1)&&((((((((a12==8)&&(((a18==1)||!(a18==1))&&(input==6)))&&!(a0==1))&&(a3==6))&&(a6==1))&&(a4==1))&&(a22==1))&&!(a27==1)))))){ + if((a22==1)){ + a27 = 1; + a15 = 1; + a0 = 1; + a18 = 1; + a4 = 0; + }else{ + a27 = 1; + a15 = 1; + a3 = 4; + a0 = 1; + a18 = 1; + a12 = 11; + } + return 26; + } else if((((a4==1)&&((a3==6)&&(((((a18==1)&&((!(a15==1)&&((!(a27==1)&&(input==5))&&(a12==9)))&&(a20==1)))&&(a5==1))&&(a6==1))&&(a22==1))))&&(a0==1))){ + a15 = 1; + a5 = 0; + a0 = 0; + a22 = 0; + a6 = 0; + a27 = 1; + a18 = 0; + return 21; + } else if(((a4==1)&&((a6==1)&&((a27==1)&&(!(a5==1)&&(((a20==1)&&((a12==9)&&(!(a15==1)&&((input==2)&&((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))||((a3==7)&&(!(a18==1)&&(a22==1))))))))&&(a0==1))))))){ + a5 = 1; + a3 = 6; + a12 = 10; + a15 = 1; + a22 = 1; + a18 = 1; + return 21; + } else if(((a5==1)&&((a12==8)&&((((a27==1)&&(!(a4==1)&&(((((!(a0==1)&&(input==1))&&(a18==1))&&!(a6==1))&&(a3==4))&&(a15==1))))&&!(a22==1))&&(a20==1))))){ + a6 = 1; + a22 = 1; + a4 = 1; + a0 = 1; + return -1; + } else if(((!(a6==1)&&(((((((a20==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&(a27==1))&&(a4==1)))&&(a5==1))&&(a0==1))&&!(a22==1))&&(a3==7))&&!(a15==1)))&&(a12==10))){ + a3 = 5; + a18 = 1; + a6 = 1; + return -1; + } else if(((a5==1)&&((((a20==1)&&((a4==1)&&((((input==2)&&((!(a6==1)&&((a3==4)&&(!(a18==1)&&(a22==1))))||(((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1)))))&&!(a27==1))&&(a12==12))))&&(a15==1))&&(a0==1)))){ + if((a6==1)){ + a18 = 0; + a6 = 1; + a3 = 6; + a0 = 0; + a22 = 0; + a5 = 0; + a27 = 1; + a12 = 9; + }else{ + a6 = 1; + a5 = 0; + a3 = 7; + a27 = 1; + a12 = 11; + a18 = 0; + a22 = 1; + } + return 21; + } else if(((a27==1)&&((a5==1)&&((a3==7)&&(!(a6==1)&&(((a20==1)&&((a22==1)&&(((((input==5)&&!(a15==1))&&!(a4==1))&&(a18==1))&&(a12==8))))&&(a0==1))))))){ + a22 = 0; + a6 = 1; + a4 = 1; + a5 = 0; + a15 = 1; + a12 = 9; + return 26; + } else if((!(a27==1)&&((a4==1)&&((a0==1)&&((a5==1)&&(!(a6==1)&&(((a15==1)&&(((input==5)&&((((a22==1)&&!(a18==1))&&(a3==6))||(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))))&&(a12==8)))&&(a20==1)))))))){ + a6 = 1; + a22 = 1; + a27 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((a20==1)&&(!(a27==1)&&((((a15==1)&&(((a12==9)&&(!(a6==1)&&((input==3)&&(((!(a18==1)&&(a22==1))&&(a3==7))||(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))))))&&!(a0==1)))&&!(a4==1))&&!(a5==1))))){ + a12 = 8; + a6 = 1; + a0 = 1; + a3 = 7; + a22 = 1; + a18 = 1; + a4 = 1; + a27 = 1; + a5 = 1; + return 21; + } else if((!(a0==1)&&(((((a3==5)&&(!(a6==1)&&((a12==8)&&(((a22==1)&&(((input==3)&&!(a15==1))&&!(a18==1)))&&(a20==1)))))&&!(a27==1))&&(a5==1))&&(a4==1)))){ + if((a12==10)){ + a0 = 1; + a18 = 1; + a3 = 4; + a6 = 1; + a27 = 1; + a15 = 1; + }else{ + a22 = 0; + a27 = 1; + a0 = 1; + a3 = 8; + a15 = 1; + } + return -1; + } else if(((((a20==1)&&(!(a15==1)&&((((a27==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==4))&&(a4==1)))&&(a12==10))&&!(a0==1))))&&!(a6==1))&&!(a5==1))){ + a27 = 0; + a0 = 1; + a12 = 11; + a3 = 4; + a18 = 0; + a22 = 1; + a4 = 0; + return 26; + } else if(((((a20==1)&&((a0==1)&&(((a4==1)&&((a12==9)&&(!(a5==1)&&(((((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1))))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==5)))))&&!(a15==1))))&&(a6==1))&&(a27==1))){ + a0 = 0; + a18 = 1; + a22 = 0; + a12 = 10; + a3 = 7; + a6 = 0; + return 24; + } else if(((a12==8)&&((!(a15==1)&&(!(a0==1)&&(((a20==1)&&((a3==7)&&((!(a5==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==4)))&&(a27==1))))&&!(a4==1))))&&!(a6==1)))){ + a18 = 1; + a5 = 1; + a0 = 1; + a6 = 1; + a12 = 12; + a22 = 0; + a3 = 8; + return 26; + } else if(((!(a27==1)&&(!(a22==1)&&(!(a15==1)&&(!(a18==1)&&(((a12==11)&&(!(a5==1)&&((a0==1)&&(((a4==1)&&(input==4))&&(a3==7)))))&&(a20==1))))))&&!(a6==1))){ + a18 = 1; + a3 = 4; + a12 = 10; + a27 = 1; + a15 = 1; + return -1; + } else if((!(a15==1)&&(((((a4==1)&&((((a20==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==6))&&(a12==10)))&&(a27==1))&&(a3==8)))&&!(a5==1))&&(a0==1))&&!(a6==1)))){ + a6 = 1; + a18 = 1; + a12 = 8; + a5 = 1; + a15 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((((((a6==1)&&((((a12==12)&&((a3==6)&&((input==3)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))&&(a15==1))&&!(a5==1)))&&(a0==1))&&!(a4==1))&&!(a27==1))&&(a20==1))){ + a5 = 1; + a18 = 0; + a22 = 0; + return 26; + } else if(((a22==1)&&(((a15==1)&&((a12==9)&&((!(a0==1)&&((a5==1)&&(!(a6==1)&&(((a3==8)&&((input==4)&&((a18==1)||!(a18==1))))&&!(a4==1)))))&&(a20==1))))&&(a27==1)))){ + a0 = 1; + a18 = 1; + a12 = 8; + a6 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if(((a4==1)&&((a6==1)&&((!(a0==1)&&(((a22==1)&&(((((((a18==1)||!(a18==1))&&(input==4))&&(a20==1))&&(a12==11))&&!(a27==1))&&(a15==1)))&&(a3==7)))&&(a5==1))))){ + a0 = 1; + a22 = 0; + a27 = 1; + a18 = 1; + a6 = 0; + a3 = 8; + a12 = 8; + return 26; + } else if((((((a20==1)&&((((((a3==5)&&((input==5)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&!(a0==1))&&!(a15==1))&&(a12==12))&&(a5==1)))&&!(a4==1))&&(a27==1))&&!(a6==1))){ + a27 = 0; + a12 = 11; + a3 = 4; + a6 = 1; + a4 = 1; + a18 = 0; + a5 = 0; + a22 = 0; + return -1; + } else if(((a4==1)&&((((a5==1)&&((a15==1)&&((a0==1)&&(((input==2)&&((((a6==1)&&(((a18==1)&&!(a22==1))&&(a3==8)))||((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8))))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1))))&&(a27==1)))))&&(a20==1))&&(a12==11)))){ + a18 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if((((a18==1)&&((a6==1)&&((((((a0==1)&&(((!(a5==1)&&(input==6))&&(a3==7))&&(a27==1)))&&(a4==1))&&(a15==1))&&(a12==11))&&(a20==1))))&&!(a22==1))){ + a15 = 0; + a5 = 1; + a18 = 0; + a3 = 6; + a12 = 10; + return -1; + } else if(((((a20==1)&&(((a3==8)&&((((a15==1)&&((a4==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==2))))&&(a12==8))&&!(a5==1)))&&(a27==1)))&&!(a6==1))&&(a0==1))){ + if((a20==1)){ + a4 = 0; + a12 = 9; + a6 = 1; + a0 = 0; + a3 = 6; + a22 = 1; + a18 = 0; + a15 = 0; + }else{ + a15 = 0; + a0 = 0; + a3 = 4; + a18 = 1; + a12 = 11; + a22 = 1; + a5 = 1; + a4 = 0; + } + return 26; + } else if(((((a0==1)&&((a20==1)&&((a12==9)&&((a22==1)&&(((((((a18==1)||!(a18==1))&&(input==3))&&!(a15==1))&&(a5==1))&&!(a27==1))&&!(a6==1))))))&&(a4==1))&&(a3==4))){ + a12 = 8; + a15 = 1; + a5 = 0; + a4 = 0; + a6 = 1; + a3 = 8; + a18 = 1; + return 21; + } else if((!(a5==1)&&((((!(a6==1)&&((((a27==1)&&(((a22==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&!(a4==1)))&&(a15==1))&&(a12==9)))&&(a3==5))&&!(a0==1))&&(a20==1)))){ + a3 = 7; + a15 = 0; + a18 = 1; + a0 = 1; + a22 = 0; + return -1; + } else if(((a12==11)&&((((((input==3)&&(((!(a6==1)&&((a3==8)&&(((a15==1)&&((a18==1)&&!(a22==1)))&&!(a4==1))))||(((a3==8)&&(((!(a22==1)&&!(a18==1))&&(a15==1))&&!(a4==1)))&&!(a6==1)))||(((a3==4)&&((!(a15==1)&&((a18==1)&&(a22==1)))&&(a4==1)))&&(a6==1))))&&(a20==1))&&!(a5==1))&&!(a0==1))&&!(a27==1)))){ + a15 = 1; + a4 = 0; + a27 = 1; + a18 = 0; + a12 = 10; + a6 = 1; + a0 = 1; + a3 = 8; + a22 = 0; + return -1; + } else if((((a18==1)&&((a0==1)&&(((((((!(a27==1)&&((a5==1)&&(input==6)))&&(a3==4))&&(a15==1))&&!(a6==1))&&(a12==10))&&(a20==1))&&!(a22==1))))&&(a4==1))){ + a27 = 1; + a3 = 5; + a4 = 0; + a18 = 0; + a15 = 0; + a12 = 12; + return -1; + } else if(((a22==1)&&(!(a4==1)&&((a0==1)&&(!(a15==1)&&((a6==1)&&(((a27==1)&&((a3==4)&&((a12==11)&&((a20==1)&&((input==3)&&((a18==1)||!(a18==1)))))))&&(a5==1)))))))){ + a18 = 0; + a22 = 0; + a15 = 1; + a12 = 10; + return -1; + } else if((((a20==1)&&((!(a5==1)&&(!(a6==1)&&(!(a15==1)&&((((a3==8)&&((a22==1)&&((a27==1)&&(input==5))))&&(a12==8))&&(a0==1)))))&&!(a4==1)))&&!(a18==1))){ + a3 = 7; + a15 = 1; + a6 = 1; + a12 = 11; + return 26; + } else if(((!(a6==1)&&(((a20==1)&&(((!(a0==1)&&((a15==1)&&((input==6)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7))))))&&(a27==1))&&!(a4==1)))&&!(a5==1)))&&(a12==9))){ + a5 = 1; + a4 = 1; + a3 = 4; + a6 = 1; + a18 = 1; + a0 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if((!(a18==1)&&(((a12==12)&&(((a27==1)&&((a15==1)&&((!(a5==1)&&((a3==7)&&((a20==1)&&((input==3)&&!(a22==1)))))&&!(a6==1))))&&!(a4==1)))&&!(a0==1)))){ + a12 = 8; + a5 = 1; + a0 = 1; + a4 = 1; + return -1; + } else if((!(a15==1)&&((((((a20==1)&&((a3==6)&&((a0==1)&&((!(a27==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&!(a5==1)))))&&(a12==11))&&(a4==1))&&(a22==1))&&(a6==1)))){ + a15 = 1; + a27 = 1; + a6 = 0; + a4 = 0; + a5 = 1; + a18 = 1; + a3 = 7; + a12 = 8; + return 24; + } else if(((((a0==1)&&((a20==1)&&((((!(a5==1)&&((input==2)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))))&&(a12==9))&&!(a4==1))&&(a27==1))))&&!(a6==1))&&!(a15==1))){ + a4 = 1; + a27 = 0; + a3 = 7; + a18 = 1; + a5 = 1; + a22 = 0; + return 26; + } else if(((a27==1)&&(((((a20==1)&&(!(a5==1)&&((((input==1)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a22==1)&&(a18==1)))))&&(a4==1))&&!(a15==1))))&&(a12==11))&&(a0==1))&&!(a6==1)))){ + a5 = 1; + a6 = 1; + a22 = 1; + a12 = 12; + a18 = 1; + a3 = 5; + a15 = 1; + return 21; + } else if(((a12==8)&&((a20==1)&&(!(a0==1)&&(!(a5==1)&&(!(a15==1)&&(!(a27==1)&&(((!(a6==1)&&(((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8)))||((a6==1)&&((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))))&&(input==1))))))))){ + a3 = 7; + a18 = 1; + a0 = 1; + a15 = 1; + a4 = 1; + a22 = 1; + a6 = 1; + a27 = 1; + a5 = 1; + return 26; + } else if(((!(a22==1)&&(((a6==1)&&((a4==1)&&(((a5==1)&&(((a3==8)&&(((input==1)&&(a12==11))&&(a20==1)))&&(a15==1)))&&!(a0==1))))&&(a18==1)))&&(a27==1))){ + a15 = 0; + a3 = 7; + a6 = 0; + a0 = 1; + return 24; + } else if(((a12==10)&&((a15==1)&&((!(a5==1)&&((a3==4)&&(((a0==1)&&(((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==6))&&!(a27==1))&&(a20==1)))&&!(a6==1))))&&(a4==1))))){ + a6 = 1; + a5 = 1; + a18 = 1; + a27 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if(((!(a6==1)&&((a20==1)&&((a15==1)&&(!(a27==1)&&(((a4==1)&&(((((((a18==1)&&!(a22==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7)))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==2))&&(a5==1)))&&(a12==9))))))&&!(a0==1))){ + a22 = 0; + a15 = 0; + a27 = 1; + a18 = 0; + a12 = 8; + a3 = 6; + return 26; + } else if((!(a27==1)&&((a4==1)&&(!(a5==1)&&(((a12==8)&&((((input==4)&&((!(a6==1)&&((a3==4)&&((a22==1)&&!(a18==1))))||((((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1)))))&&(a20==1))&&!(a15==1)))&&(a0==1)))))){ + a27 = 1; + a18 = 0; + a22 = 0; + a5 = 1; + a12 = 10; + a6 = 1; + a3 = 8; + return -1; + } else if((((((((((a27==1)&&(!(a0==1)&&((a12==11)&&(((a18==1)||!(a18==1))&&(input==6)))))&&(a3==7))&&(a22==1))&&!(a4==1))&&!(a5==1))&&!(a15==1))&&(a20==1))&&(a6==1))){ + a18 = 1; + a12 = 10; + a0 = 1; + a22 = 0; + a5 = 1; + a6 = 0; + a15 = 1; + return -1; + } else if(((a20==1)&&(!(a15==1)&&((a27==1)&&((a12==10)&&((a5==1)&&(!(a0==1)&&(!(a6==1)&&(((((!(a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6))))&&(input==6))&&!(a4==1)))))))))){ + a18 = 0; + a22 = 0; + a3 = 4; + a5 = 0; + a0 = 1; + a12 = 11; + return 21; + } else if((((!(a22==1)&&(((!(a15==1)&&(((a4==1)&&(((a12==12)&&((a0==1)&&(input==6)))&&(a20==1)))&&!(a18==1)))&&!(a5==1))&&(a6==1)))&&(a27==1))&&(a3==8))){ + a3 = 4; + a5 = 1; + a15 = 1; + return 24; + } else if(((a0==1)&&((((a15==1)&&((a12==9)&&(!(a22==1)&&((a27==1)&&((((((a18==1)||!(a18==1))&&(input==4))&&(a20==1))&&(a3==7))&&(a5==1))))))&&!(a4==1))&&!(a6==1)))){ + a12 = 12; + a4 = 1; + a3 = 8; + a6 = 1; + a5 = 0; + a15 = 0; + a18 = 1; + return 21; + } else if(((((a15==1)&&(((a0==1)&&((!(a5==1)&&((a6==1)&&((input==2)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6))))))&&(a12==8)))&&(a4==1)))&&(a27==1))&&(a20==1))){ + a18 = 1; + a5 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((a27==1)&&(((((a20==1)&&(((a0==1)&&(!(a5==1)&&(((((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==3))))&&(a15==1)))&&!(a6==1))&&(a4==1))&&(a12==10)))){ + a3 = 7; + a22 = 1; + a15 = 0; + a18 = 1; + a5 = 1; + a4 = 0; + return -1; + } else if(((a27==1)&&((a20==1)&&(((a0==1)&&(!(a5==1)&&((a4==1)&&((((((input==5)&&((a18==1)||!(a18==1)))&&(a3==5))&&(a22==1))&&(a12==9))&&(a6==1)))))&&!(a15==1))))){ + a5 = 1; + a18 = 0; + a4 = 0; + a12 = 12; + a3 = 6; + return 21; + } else if(((!(a27==1)&&(((!(a5==1)&&((((((((a4==1)&&(!(a22==1)&&(a18==1)))&&(a3==8))&&!(a6==1))||(!(a6==1)&&((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1))))))||((a6==1)&&((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))))&&(input==2))&&(a12==9)))&&(a20==1))&&(a0==1)))&&(a15==1))){ + a12 = 8; + a5 = 1; + a4 = 1; + a27 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a6 = 1; + return -1; + } else if((((a20==1)&&((a12==12)&&(((a0==1)&&((input==2)&&(((((a3==8)&&(((a15==1)&&(!(a18==1)&&!(a22==1)))&&!(a4==1)))&&!(a6==1))||(((a3==4)&&((!(a15==1)&&((a22==1)&&(a18==1)))&&(a4==1)))&&(a6==1)))||(((a3==4)&&((a4==1)&&(!(a15==1)&&(!(a18==1)&&(a22==1)))))&&(a6==1)))))&&(a27==1))))&&!(a5==1))){ + a18 = 1; + a4 = 1; + a6 = 0; + a22 = 0; + a3 = 7; + a15 = 0; + return 26; + } else if(((a12==11)&&((((((!(a6==1)&&(((((a3==5)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1)))))&&(input==4))&&!(a27==1)))&&!(a5==1))&&!(a4==1))&&(a15==1))&&!(a0==1))&&(a20==1)))){ + a3 = 7; + a12 = 8; + a22 = 0; + a18 = 0; + return 26; + } else if((((a12==10)&&((a6==1)&&((a5==1)&&(((a15==1)&&((a27==1)&&((a0==1)&&(((input==2)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a4==1)))))&&(a20==1)))))&&(a3==4))){ + if((a20==1)){ + a15 = 0; + a22 = 0; + a3 = 8; + a0 = 0; + a18 = 0; + }else{ + a3 = 5; + a12 = 11; + a22 = 0; + a15 = 0; + a18 = 1; + a6 = 0; + } + return 21; + } else if(((a12==9)&&(!(a18==1)&&((a5==1)&&(!(a22==1)&&((a6==1)&&((((a0==1)&&((a27==1)&&(((input==4)&&(a4==1))&&(a3==4))))&&!(a15==1))&&(a20==1)))))))){ + a12 = 8; + a18 = 1; + a15 = 1; + a22 = 1; + return -1; + } else if((((a12==10)&&(!(a22==1)&&((a20==1)&&((((a3==5)&&(((((a6==1)&&(input==1))&&!(a27==1))&&!(a4==1))&&(a15==1)))&&(a5==1))&&!(a18==1)))))&&!(a0==1))){ + a0 = 1; + a12 = 8; + a27 = 1; + a4 = 1; + a6 = 0; + return -1; + } else if((((a15==1)&&(!(a27==1)&&(!(a4==1)&&((((a3==4)&&((a0==1)&&((a20==1)&&((input==1)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))&&(a5==1))&&(a12==9)))))&&!(a6==1))){ + a18 = 1; + a12 = 8; + a27 = 1; + a22 = 1; + a4 = 1; + a6 = 1; + return -1; + } else if((((a6==1)&&(((a4==1)&&((a0==1)&&((a20==1)&&((((a3==4)&&((input==1)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))&&(a15==1))&&(a12==12)))))&&(a27==1)))&&(a5==1))){ + a22 = 0; + a12 = 11; + a6 = 0; + a18 = 0; + a5 = 0; + a4 = 0; + a15 = 0; + a3 = 6; + a27 = 0; + return 21; + } else if((!(a6==1)&&((a20==1)&&(((((a12==10)&&(!(a5==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==5))&&(a27==1))))&&(a15==1))&&!(a4==1))&&(a0==1))))){ + a22 = 1; + a4 = 1; + a18 = 1; + a5 = 1; + a6 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((((a27==1)&&(((a15==1)&&(((a4==1)&&((a12==11)&&(!(a6==1)&&((input==5)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))&&(a0==1)))&&(a3==7)))&&(a5==1))&&(a20==1))){ + a3 = 4; + a22 = 1; + a12 = 8; + a6 = 1; + a18 = 1; + return -1; + } else if(((a3==8)&&((a20==1)&&(!(a5==1)&&((!(a27==1)&&(((!(a6==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==5))&&(a15==1)))&&(a12==9))&&!(a4==1)))&&!(a0==1)))))){ + a12 = 11; + a18 = 1; + a22 = 1; + a27 = 1; + a3 = 6; + a6 = 1; + a4 = 1; + return 21; + } else if((!(a5==1)&&(!(a4==1)&&((((!(a6==1)&&((!(a0==1)&&((a20==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1))))&&(a27==1)))&&(a12==9))&&(a15==1))&&(a3==6))))){ + a12 = 12; + a5 = 1; + a18 = 0; + a22 = 0; + a0 = 1; + a15 = 0; + a4 = 1; + return -1; + } else if(((((((!(a6==1)&&(((a4==1)&&((input==3)&&(((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))))&&(a15==1)))&&(a12==8))&&(a20==1))&&!(a5==1))&&!(a0==1))&&!(a27==1))){ + a27 = 1; + a22 = 0; + a3 = 5; + a6 = 1; + a18 = 0; + a0 = 1; + a5 = 1; + return 26; + } else if(((!(a0==1)&&(!(a27==1)&&((a20==1)&&(((a12==11)&&(((a4==1)&&(!(a6==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a3==4))))&&!(a22==1)))&&(a15==1)))))&&!(a5==1))){ + a3 = 8; + a12 = 8; + a22 = 1; + a6 = 1; + a4 = 0; + a15 = 0; + a18 = 0; + a0 = 1; + a27 = 1; + return -1; + } else if(((a15==1)&&((((!(a27==1)&&(((a20==1)&&(((a6==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==5)))&&(a4==1)))&&(a12==10)))&&(a0==1))&&!(a5==1))&&(a3==6)))){ + if((a5==1)){ + a0 = 0; + a27 = 1; + a18 = 0; + a5 = 1; + a6 = 0; + a22 = 1; + }else{ + a5 = 1; + a4 = 0; + a6 = 0; + a27 = 1; + a0 = 0; + a15 = 0; + a22 = 1; + a3 = 7; + a12 = 8; + a18 = 1; + } + return 26; + } else if((((a12==11)&&(!(a27==1)&&((((((a5==1)&&((input==1)&&(((!(a18==1)&&(a22==1))&&(a3==5))||(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5))))))&&(a4==1))&&(a20==1))&&(a6==1))&&!(a0==1))))&&(a15==1))){ + a22 = 0; + a15 = 0; + a5 = 0; + a4 = 0; + a3 = 5; + a12 = 8; + a0 = 1; + a18 = 1; + a27 = 1; + return -1; + } else if((((a12==10)&&(!(a6==1)&&(!(a0==1)&&((a20==1)&&((a18==1)&&((a27==1)&&((a3==5)&&(((a4==1)&&(!(a22==1)&&(input==3)))&&(a15==1)))))))))&&!(a5==1))){ + a6 = 1; + a0 = 1; + a15 = 0; + a5 = 1; + return -1; + } else if((!(a5==1)&&((a20==1)&&((a3==5)&&(!(a6==1)&&((((!(a4==1)&&(((a27==1)&&((input==6)&&(a12==10)))&&!(a18==1)))&&(a15==1))&&!(a0==1))&&!(a22==1))))))){ + a0 = 1; + a3 = 7; + a12 = 8; + a22 = 1; + a18 = 1; + return 26; + } else if((!(a6==1)&&(!(a27==1)&&((a18==1)&&(!(a4==1)&&((((a20==1)&&((!(a15==1)&&(((input==2)&&(a3==6))&&(a12==8)))&&!(a22==1)))&&(a5==1))&&!(a0==1))))))){ + a27 = 1; + a15 = 1; + a0 = 1; + a6 = 1; + a22 = 1; + a18 = 0; + return 21; + } else if(((a12==12)&&((a20==1)&&((a0==1)&&(!(a4==1)&&(!(a6==1)&&((((a5==1)&&((((input==3)&&!(a27==1))&&!(a22==1))&&(a18==1)))&&(a3==4))&&(a15==1)))))))){ + a3 = 6; + a12 = 10; + a6 = 1; + a5 = 0; + a27 = 1; + return 21; + } else if((!(a15==1)&&(((!(a4==1)&&((a27==1)&&((a20==1)&&((a12==12)&&(((input==1)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1)))))&&!(a5==1))))))&&(a6==1))&&(a0==1)))){ + a15 = 1; + a12 = 8; + a18 = 1; + a5 = 1; + a22 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((a12==8)&&(!(a0==1)&&(((a20==1)&&((((a6==1)&&(((input==5)&&(((!(a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1))))))&&(a5==1)))&&!(a15==1))&&!(a4==1)))&&!(a27==1))))){ + if((a6==1)){ + a15 = 1; + a5 = 0; + a22 = 1; + a4 = 1; + a18 = 1; + a0 = 1; + a3 = 7; + a12 = 10; + a27 = 1; + }else{ + a5 = 0; + a22 = 1; + a27 = 1; + a3 = 8; + a6 = 0; + a0 = 1; + a18 = 1; + a12 = 9; + a15 = 1; + } + return 21; + } else if(((a18==1)&&((a0==1)&&((a22==1)&&(!(a15==1)&&((a3==7)&&((a12==12)&&((a4==1)&&((a6==1)&&(!(a5==1)&&(((a20==1)&&(input==3))&&!(a27==1)))))))))))){ + a27 = 1; + a12 = 8; + a5 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if((((a5==1)&&(((a20==1)&&((a12==12)&&((a27==1)&&((((input==5)&&((((a22==1)&&(a18==1))&&(a3==5))||(((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a22==1)&&!(a18==1))))))&&(a6==1))&&(a15==1)))))&&!(a0==1)))&&!(a4==1))){ + a3 = 7; + a18 = 1; + a5 = 0; + a12 = 11; + a6 = 0; + a22 = 1; + a0 = 1; + return 21; + } else if((((a18==1)&&(((a22==1)&&(!(a5==1)&&(((((!(a15==1)&&((input==4)&&(a20==1)))&&!(a27==1))&&(a12==11))&&(a4==1))&&!(a0==1))))&&!(a6==1)))&&(a3==6))){ + a27 = 1; + a22 = 0; + a5 = 1; + a6 = 1; + a12 = 12; + a0 = 1; + a15 = 1; + a4 = 0; + return 26; + } else if((((a15==1)&&((((((a3==4)&&((a27==1)&&(!(a6==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==4)))))&&(a12==8))&&(a20==1))&&!(a5==1))&&(a4==1)))&&(a0==1))){ + a18 = 1; + a22 = 0; + a4 = 0; + a6 = 1; + a12 = 9; + a3 = 8; + a15 = 0; + return 21; + } else if(((a3==6)&&((a6==1)&&((!(a0==1)&&(((a20==1)&&(((!(a15==1)&&((input==6)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a12==8))&&(a27==1)))&&!(a5==1)))&&(a4==1))))){ + a18 = 0; + a27 = 0; + a0 = 1; + a6 = 0; + a12 = 9; + a22 = 0; + a3 = 7; + return 26; + } else if((!(a15==1)&&((a4==1)&&(!(a27==1)&&((!(a0==1)&&((!(a5==1)&&((a3==6)&&(((a12==11)&&((a18==1)&&(input==1)))&&(a22==1))))&&(a20==1)))&&!(a6==1)))))){ + a6 = 1; + a5 = 1; + a4 = 0; + a18 = 0; + return -1; + } else if((!(a5==1)&&(((!(a4==1)&&((a20==1)&&((a0==1)&&((!(a27==1)&&((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a12==11)))&&!(a15==1)))))&&(a6==1))&&(a3==5)))){ + a18 = 0; + a12 = 9; + a5 = 1; + a0 = 0; + a27 = 1; + a22 = 0; + return -1; + } else if((((a20==1)&&((((!(a6==1)&&((((a15==1)&&((a5==1)&&((a27==1)&&(input==2))))&&(a4==1))&&(a0==1)))&&(a12==11))&&(a22==1))&&(a3==7)))&&(a18==1))){ + a4 = 0; + a6 = 1; + a22 = 0; + a3 = 5; + return 26; + } return calculate_output17(input); + } + + int calculate_output17(int input) { + if(((!(a6==1)&&(((((a20==1)&&(((((((a18==1)||!(a18==1))&&(input==1))&&(a22==1))&&(a5==1))&&!(a4==1))&&!(a27==1)))&&(a0==1))&&(a15==1))&&(a12==11)))&&(a3==6))){ + a27 = 1; + a4 = 1; + a18 = 0; + a3 = 8; + a12 = 12; + a22 = 0; + return 24; + } else if(((a20==1)&&(!(a15==1)&&((((a22==1)&&(!(a27==1)&&((((a0==1)&&((a4==1)&&((a18==1)&&(input==6))))&&(a6==1))&&!(a5==1))))&&(a3==8))&&(a12==12))))){ + a27 = 1; + a22 = 0; + a15 = 1; + a4 = 0; + a5 = 1; + return 26; + } else if(((a15==1)&&((a0==1)&&((a20==1)&&(((a4==1)&&((((a6==1)&&((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==3))&&(a27==1)))&&(a3==6))&&(a12==10)))&&(a5==1)))))){ + a22 = 1; + a5 = 0; + a4 = 0; + a6 = 0; + a3 = 7; + a18 = 0; + return 21; + } else if(((a6==1)&&(((a0==1)&&((((a4==1)&&(!(a22==1)&&((a20==1)&&((a12==10)&&((!(a15==1)&&(input==2))&&(a3==5))))))&&(a18==1))&&(a5==1)))&&(a27==1)))){ + a3 = 4; + a15 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if((((a0==1)&&(((a20==1)&&((a12==10)&&(((((((input==5)&&((a18==1)||!(a18==1)))&&(a4==1))&&(a3==4))&&!(a6==1))&&!(a5==1))&&(a27==1))))&&!(a15==1)))&&!(a22==1))){ + a5 = 1; + a4 = 0; + a18 = 1; + a27 = 0; + a3 = 8; + a22 = 1; + return 21; + } else if((((a3==5)&&(((((a5==1)&&((!(a6==1)&&((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==6))&&(a27==1)))&&(a0==1)))&&(a20==1))&&!(a4==1))&&(a12==12)))&&(a15==1))){ + a22 = 0; + a18 = 0; + a3 = 8; + a27 = 0; + a4 = 1; + return 26; + } else if((((((a6==1)&&((a20==1)&&((a3==5)&&((a4==1)&&((((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a15==1))&&(a12==8))))))&&!(a5==1))&&(a27==1))&&(a0==1))){ + a12 = 9; + a22 = 0; + a4 = 0; + a6 = 0; + a3 = 6; + a18 = 0; + return 21; + } else if(((a12==8)&&(!(a15==1)&&(((((a0==1)&&((a20==1)&&(((input==2)&&(((a3==5)&&((a18==1)&&(a22==1)))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))))&&(a27==1))))&&(a4==1))&&!(a6==1))&&(a5==1))))){ + a22 = 1; + a18 = 1; + a3 = 7; + a5 = 0; + a6 = 1; + return 21; + } else if((((!(a5==1)&&(((a15==1)&&(((a3==8)&&((a22==1)&&((((input==5)&&((a18==1)||!(a18==1)))&&(a12==12))&&(a20==1))))&&(a0==1)))&&(a6==1)))&&(a4==1))&&!(a27==1))){ + a3 = 5; + a18 = 1; + a12 = 9; + a4 = 0; + return -1; + } else if((((a20==1)&&((a0==1)&&(((a18==1)&&((a15==1)&&(((((!(a5==1)&&(input==3))&&(a12==10))&&(a6==1))&&!(a22==1))&&(a3==6))))&&!(a4==1))))&&(a27==1))){ + a18 = 0; + a4 = 1; + a5 = 1; + a22 = 1; + return -1; + } else if(((a4==1)&&(((a5==1)&&(!(a15==1)&&(!(a0==1)&&(!(a6==1)&&((a20==1)&&(((input==4)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6))))&&(a12==8)))))))&&(a27==1)))){ + a3 = 4; + a15 = 1; + a0 = 1; + a18 = 1; + a22 = 1; + a6 = 1; + return -1; + } else if(((((!(a4==1)&&((a22==1)&&((a5==1)&&(((((((a18==1)||!(a18==1))&&(input==6))&&(a3==6))&&(a15==1))&&!(a27==1))&&(a12==10)))))&&(a0==1))&&(a6==1))&&(a20==1))){ + a4 = 1; + a3 = 4; + a18 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if((!(a6==1)&&((a15==1)&&((a20==1)&&(!(a5==1)&&(((((a27==1)&&(((((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1))))||((!(a18==1)&&(a22==1))&&(a3==5)))&&(input==5)))&&(a12==11))&&(a4==1))&&(a0==1))))))){ + a5 = 1; + a4 = 0; + a15 = 0; + a3 = 4; + a18 = 0; + a6 = 1; + a22 = 1; + return -1; + } else if(((a5==1)&&((((a20==1)&&(!(a27==1)&&(((a12==8)&&(!(a0==1)&&((input==1)&&((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==5)))||(((a22==1)&&!(a18==1))&&(a3==5))))))&&!(a4==1))))&&!(a15==1))&&(a6==1)))){ + a18 = 0; + a3 = 4; + a27 = 1; + a12 = 12; + a22 = 1; + return 26; + } else if(((((a20==1)&&(!(a27==1)&&((a4==1)&&(((((a6==1)&&((input==3)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))&&!(a0==1))&&(a3==5))&&!(a15==1)))))&&!(a5==1))&&(a12==8))){ + a18 = 0; + a12 = 11; + a3 = 7; + a6 = 0; + a15 = 1; + a0 = 1; + a22 = 1; + return 26; + } else if((!(a27==1)&&((!(a0==1)&&((a20==1)&&(((a15==1)&&(((a22==1)&&((a3==7)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a6==1))))&&!(a4==1)))&&(a12==8))))&&!(a5==1)))){ + a4 = 1; + a0 = 1; + a6 = 0; + a5 = 1; + a3 = 4; + a22 = 0; + a27 = 1; + a18 = 1; + return -1; + } else if(((a3==6)&&(!(a15==1)&&(((a20==1)&&((a5==1)&&((!(a0==1)&&((a12==9)&&((a27==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5)))))&&!(a6==1))))&&!(a4==1))))){ + a22 = 1; + a6 = 1; + a15 = 1; + a18 = 1; + a0 = 1; + a12 = 8; + a4 = 1; + a3 = 4; + return -1; + } else if(((a3==4)&&((a12==8)&&((a15==1)&&((a27==1)&&((a4==1)&&((a6==1)&&(!(a0==1)&&((a20==1)&&((a5==1)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==6)))))))))))){ + if((a22==1)){ + a5 = 0; + a6 = 0; + a3 = 8; + a22 = 1; + a18 = 0; + a15 = 0; + a4 = 0; + }else{ + a18 = 1; + a12 = 10; + a22 = 0; + a15 = 0; + a3 = 6; + a0 = 1; + } + return 26; + } else if(((!(a6==1)&&(((a0==1)&&((a4==1)&&(((a22==1)&&((a18==1)&&((!(a5==1)&&((a12==10)&&(input==1)))&&(a15==1))))&&(a3==6))))&&(a27==1)))&&(a20==1))){ + a3 = 4; + a15 = 0; + a12 = 11; + a18 = 0; + return 26; + } else if(((a27==1)&&((!(a0==1)&&((a6==1)&&((!(a15==1)&&((((input==4)&&(((((a18==1)&&!(a22==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6)))||((a3==7)&&((a22==1)&&(a18==1)))))&&(a5==1))&&!(a4==1)))&&(a12==12))))&&(a20==1)))){ + a22 = 1; + a18 = 0; + a0 = 1; + a12 = 11; + a15 = 1; + a3 = 7; + a5 = 0; + return -1; + } else if((!(a27==1)&&((a20==1)&&(((a5==1)&&((((a22==1)&&(((((input==3)&&((a18==1)||!(a18==1)))&&!(a4==1))&&!(a6==1))&&(a15==1)))&&(a3==5))&&(a12==12)))&&(a0==1))))){ + a22 = 0; + a18 = 0; + a27 = 1; + a6 = 1; + a12 = 11; + a3 = 7; + return -1; + } else if((!(a4==1)&&(((!(a27==1)&&((!(a15==1)&&((!(a0==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a5==1)))&&(a3==5)))&&(a6==1)))&&(a12==11))&&(a20==1)))){ + if((a4==1)){ + a15 = 1; + a22 = 1; + a18 = 1; + a0 = 1; + a3 = 8; + a12 = 8; + a27 = 1; + }else{ + a3 = 7; + a0 = 1; + a12 = 10; + a22 = 1; + a18 = 1; + a15 = 1; + a4 = 1; + } + return 26; + } else if((!(a5==1)&&(((a12==9)&&((a0==1)&&(((!(a6==1)&&((a15==1)&&((!(a27==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a20==1))))&&!(a4==1))&&!(a22==1))))&&(a3==6)))){ + a18 = 0; + a22 = 1; + a4 = 1; + a3 = 5; + a6 = 1; + a12 = 12; + a27 = 1; + return 26; + } else if((!(a4==1)&&(((((a12==11)&&(!(a5==1)&&(((((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1)))&&(input==2))&&(a0==1))))&&(a15==1))&&(a20==1))&&!(a27==1)))){ + a5 = 1; + a12 = 8; + a22 = 1; + a27 = 1; + a3 = 4; + a6 = 1; + a18 = 1; + a4 = 1; + return -1; + } else if(((!(a4==1)&&(((a5==1)&&(((a6==1)&&(!(a0==1)&&(((a15==1)&&((input==5)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))&&(a3==5))))&&(a20==1)))&&(a12==11)))&&!(a27==1))){ + if((a0==1)){ + a27 = 1; + a22 = 0; + a3 = 4; + a0 = 1; + a18 = 0; + a12 = 8; + }else{ + a12 = 10; + a3 = 8; + a22 = 1; + a5 = 0; + a18 = 1; + a6 = 0; + } + return 26; + } else if(((a3==5)&&((a20==1)&&(((a6==1)&&((((!(a15==1)&&((a0==1)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==5))))&&!(a4==1))&&!(a5==1))&&!(a27==1)))&&(a12==11))))){ + if((a5==1)){ + a18 = 0; + a22 = 1; + a12 = 12; + a6 = 0; + a3 = 4; + a4 = 1; + }else{ + a22 = 0; + a12 = 9; + a15 = 1; + a18 = 1; + a5 = 1; + a4 = 1; + } + return -1; + } else if(((!(a15==1)&&((((a0==1)&&((a6==1)&&(!(a5==1)&&((a20==1)&&((a4==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==5)))))))&&(a12==12))&&(a27==1)))&&(a3==6))){ + a22 = 0; + a12 = 11; + a3 = 5; + a6 = 0; + a18 = 1; + return -1; + } else if(((a27==1)&&(((a20==1)&&((a3==4)&&(!(a15==1)&&((!(a5==1)&&(!(a6==1)&&(!(a22==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a12==9)))))&&!(a0==1)))))&&!(a4==1)))){ + a18 = 1; + a3 = 8; + a4 = 1; + a6 = 1; + a12 = 10; + a22 = 1; + a0 = 1; + return 26; + } else if((((!(a4==1)&&(!(a27==1)&&((a12==10)&&((a0==1)&&(((a20==1)&&((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==2))&&!(a6==1)))&&!(a5==1))))))&&(a3==7))&&(a15==1))){ + a27 = 1; + a4 = 1; + a5 = 1; + a18 = 1; + a22 = 1; + a12 = 8; + a6 = 1; + a3 = 4; + return -1; + } else if((!(a15==1)&&(!(a0==1)&&(((((a5==1)&&(!(a27==1)&&((a6==1)&&((a4==1)&&((input==4)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))))))&&(a12==8))&&(a3==4))&&(a20==1))))){ + a5 = 0; + a12 = 9; + a6 = 0; + a15 = 1; + a22 = 1; + a0 = 1; + a3 = 5; + a18 = 0; + a27 = 1; + a4 = 0; + return -1; + } else if(((a18==1)&&((!(a0==1)&&((((a15==1)&&((!(a4==1)&&(!(a27==1)&&((a22==1)&&((a20==1)&&(input==5)))))&&(a6==1)))&&(a12==10))&&!(a5==1)))&&(a3==4)))){ + a3 = 8; + a15 = 0; + a18 = 0; + a12 = 9; + return 21; + } else if(((((a3==7)&&((a0==1)&&((((((a27==1)&&((input==2)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))&&(a15==1))&&(a4==1))&&(a6==1))&&(a20==1))))&&!(a5==1))&&(a12==8))){ + a15 = 0; + a3 = 6; + a22 = 0; + a12 = 9; + a18 = 1; + a6 = 0; + return 26; + } else if(((a12==12)&&((a20==1)&&((!(a6==1)&&((!(a22==1)&&((a15==1)&&(((a3==7)&&(((input==5)&&!(a4==1))&&(a27==1)))&&(a18==1))))&&!(a0==1)))&&(a5==1))))){ + a15 = 0; + a4 = 1; + a0 = 1; + a12 = 10; + a5 = 0; + return 26; + } else if(((((a12==9)&&((!(a0==1)&&(((!(a6==1)&&((((a3==6)&&(input==3))&&!(a27==1))&&(a20==1)))&&!(a18==1))&&!(a15==1)))&&!(a4==1)))&&(a5==1))&&(a22==1))){ + if((a15==1)){ + a6 = 1; + a5 = 0; + a15 = 1; + a22 = 0; + }else{ + a12 = 8; + a4 = 1; + a0 = 1; + a15 = 1; + a3 = 8; + a27 = 1; + a22 = 0; + } + return 26; + } else if((!(a4==1)&&((a6==1)&&((!(a15==1)&&((a12==10)&&((!(a22==1)&&((a5==1)&&((((a27==1)&&(input==5))&&(a3==5))&&!(a18==1))))&&(a20==1))))&&!(a0==1))))){ + a4 = 1; + a3 = 7; + a0 = 1; + a22 = 1; + a12 = 11; + a6 = 0; + return -1; + } else if((!(a15==1)&&((((a0==1)&&(!(a4==1)&&((!(a27==1)&&(((((a3==4)&&((a22==1)&&!(a18==1)))&&!(a6==1))||((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))))&&(input==4)))&&(a12==11))))&&(a5==1))&&(a20==1)))){ + a22 = 1; + a12 = 8; + a18 = 1; + a6 = 1; + a27 = 1; + a4 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if((!(a15==1)&&((a20==1)&&(!(a0==1)&&((a3==6)&&(!(a22==1)&&((a12==10)&&((a5==1)&&(!(a27==1)&&(((!(a6==1)&&(input==4))&&(a18==1))&&(a4==1))))))))))){ + if((a5==1)){ + a12 = 8; + a27 = 1; + a3 = 5; + a22 = 1; + a6 = 1; + a0 = 1; + a15 = 1; + }else{ + a3 = 5; + a12 = 8; + a0 = 1; + a27 = 1; + a6 = 1; + a15 = 1; + a4 = 0; + } + return -1; + } else if(((a27==1)&&(!(a15==1)&&(!(a6==1)&&((a3==5)&&((a4==1)&&(((a5==1)&&(((a12==12)&&((input==5)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a20==1)))&&!(a0==1)))))))){ + a22 = 0; + a6 = 1; + a15 = 1; + a3 = 6; + a12 = 8; + a4 = 0; + a18 = 0; + a0 = 1; + return 21; + } else if(((a3==6)&&((((a27==1)&&((((((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==4))&&(a15==1))&&!(a6==1))&&!(a5==1))&&(a20==1))&&!(a0==1)))&&(a4==1))&&(a12==12)))){ + if((a3==8)){ + a6 = 1; + a12 = 10; + a5 = 1; + a3 = 8; + a18 = 0; + a22 = 0; + a27 = 0; + }else{ + a5 = 1; + a22 = 1; + a27 = 0; + a3 = 4; + a4 = 0; + a12 = 8; + a18 = 0; + } + return -1; + } else if(((!(a27==1)&&(((a6==1)&&((a12==12)&&(((a20==1)&&((((a0==1)&&((a3==8)&&(input==4)))&&(a18==1))&&(a15==1)))&&(a4==1))))&&!(a22==1)))&&!(a5==1))){ + if((a6==1)){ + a27 = 1; + a4 = 0; + a6 = 0; + a12 = 9; + a0 = 0; + a3 = 7; + a5 = 1; + a18 = 0; + }else{ + a18 = 0; + a15 = 0; + a22 = 1; + a12 = 10; + a3 = 5; + a4 = 0; + } + return -1; + } else if(((!(a18==1)&&((a22==1)&&(((a20==1)&&(((((a12==10)&&(((input==1)&&!(a6==1))&&(a15==1)))&&(a4==1))&&(a0==1))&&(a27==1)))&&!(a5==1))))&&(a3==4))){ + if((a20==1)){ + a18 = 1; + a12 = 11; + a0 = 0; + a5 = 1; + }else{ + a18 = 1; + a3 = 8; + a6 = 1; + } + return -1; + } else if(((!(a6==1)&&(((((a12==11)&&(((a27==1)&&((a20==1)&&(!(a0==1)&&((a3==6)&&(input==3)))))&&!(a4==1)))&&!(a22==1))&&(a15==1))&&!(a5==1)))&&!(a18==1))){ + a3 = 7; + a12 = 12; + a4 = 1; + a0 = 1; + return 26; + } else if(((((a5==1)&&(!(a4==1)&&(((a3==4)&&(!(a0==1)&&(((((input==4)&&!(a6==1))&&(a27==1))&&(a12==8))&&!(a15==1))))&&!(a22==1))))&&(a20==1))&&!(a18==1))){ + a5 = 0; + a4 = 1; + a0 = 1; + a27 = 0; + a12 = 9; + return 24; + } else if(((((((a5==1)&&((!(a0==1)&&((a20==1)&&((((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==5))))&&!(a6==1)))&&(a15==1))&&(a27==1))&&!(a4==1))&&(a12==8))){ + a3 = 6; + a18 = 1; + a22 = 1; + a15 = 0; + a12 = 11; + a6 = 1; + return 21; + } else if(((a27==1)&&(((a12==9)&&(!(a4==1)&&((a20==1)&&(!(a6==1)&&((((a5==1)&&((input==4)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&(a15==1))&&(a3==5))))))&&(a0==1)))){ + a4 = 1; + a15 = 0; + a6 = 1; + a0 = 0; + a18 = 0; + a22 = 0; + return 26; + } else if((((!(a4==1)&&(((((a15==1)&&(((a0==1)&&(!(a22==1)&&((input==4)&&((a18==1)||!(a18==1)))))&&!(a5==1)))&&(a20==1))&&(a27==1))&&(a3==5)))&&(a12==9))&&(a6==1))){ + a6 = 0; + a3 = 7; + a12 = 8; + a18 = 0; + a4 = 1; + a27 = 0; + return 21; + } else if(((((a20==1)&&(!(a4==1)&&((!(a15==1)&&((a5==1)&&((a6==1)&&((input==6)&&((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6)))||((a3==6)&&((a22==1)&&!(a18==1))))))))&&(a12==12))))&&(a27==1))&&!(a0==1))){ + a22 = 1; + a12 = 8; + a3 = 7; + a0 = 1; + a15 = 1; + a18 = 1; + return 21; + } else if((!(a15==1)&&(!(a6==1)&&((a20==1)&&((((a12==10)&&(((a5==1)&&((input==3)&&(((((a18==1)&&!(a22==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4)))||(((a18==1)&&(a22==1))&&(a3==5)))))&&!(a27==1)))&&(a0==1))&&(a4==1)))))){ + a18 = 0; + a5 = 0; + a3 = 4; + a15 = 1; + a27 = 1; + a12 = 11; + a22 = 1; + a6 = 1; + return 21; + } else if((!(a6==1)&&(((a0==1)&&(((a12==11)&&(!(a27==1)&&(((!(a5==1)&&((a3==7)&&((input==2)&&((a18==1)||!(a18==1)))))&&(a15==1))&&(a22==1))))&&(a20==1)))&&(a4==1)))){ + if((a0==1)){ + a0 = 0; + a5 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a15 = 0; + a27 = 1; + }else{ + a5 = 1; + a3 = 4; + a18 = 0; + a6 = 1; + a27 = 1; + a0 = 0; + a12 = 12; + a22 = 0; + } + return 21; + } else if(((a3==7)&&((a20==1)&&((((((a12==12)&&(((((input==2)&&(a0==1))&&(a4==1))&&!(a18==1))&&(a22==1)))&&!(a27==1))&&!(a5==1))&&!(a15==1))&&!(a6==1))))){ + a22 = 0; + a4 = 0; + a12 = 10; + a18 = 1; + a3 = 5; + a27 = 1; + return -1; + } else if((((a27==1)&&((((((((((a3==6)&&((a22==1)&&!(a18==1)))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6))))&&(input==3))&&(a6==1))&&(a12==12))&&(a0==1))&&(a5==1))&&!(a15==1))&&(a20==1)))&&(a4==1))){ + if((a4==1)){ + a15 = 1; + a3 = 6; + a4 = 0; + a18 = 0; + a27 = 0; + a22 = 0; + a6 = 0; + a5 = 0; + }else{ + a27 = 0; + a4 = 0; + a3 = 8; + a15 = 1; + a18 = 1; + a22 = 1; + } + return 26; + } else if(((a4==1)&&(((!(a15==1)&&(!(a6==1)&&(((a12==8)&&((a27==1)&&(!(a5==1)&&((input==3)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))))))&&(a0==1))))&&(a20==1))&&(a3==8)))){ + a22 = 1; + a4 = 0; + a3 = 7; + a15 = 1; + a18 = 0; + a0 = 0; + return 21; + } else if((!(a15==1)&&((((a3==5)&&(!(a5==1)&&(!(a0==1)&&(((((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==5))&&(a6==1))&&(a20==1))&&(a12==11)))))&&(a4==1))&&!(a27==1)))){ + a5 = 1; + a27 = 1; + a3 = 8; + a4 = 0; + a18 = 1; + a15 = 1; + a0 = 1; + a12 = 8; + a22 = 1; + return 21; + } else if(((a5==1)&&(((a6==1)&&(((a12==9)&&((((a20==1)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==6)))&&!(a4==1))&&!(a27==1)))&&!(a15==1)))&&!(a0==1)))){ + a3 = 8; + a0 = 1; + a15 = 1; + a12 = 8; + a27 = 1; + a18 = 0; + a22 = 1; + return 26; + } else if(((((((a18==1)&&(((!(a6==1)&&(((a12==10)&&((input==4)&&!(a15==1)))&&!(a4==1)))&&(a22==1))&&(a5==1)))&&(a0==1))&&(a20==1))&&(a27==1))&&(a3==8))){ + a4 = 1; + a6 = 1; + a3 = 4; + a15 = 1; + a12 = 8; + return -1; + } else if((!(a6==1)&&((a20==1)&&((a12==12)&&((!(a4==1)&&((!(a15==1)&&((a3==7)&&((!(a5==1)&&((input==5)&&(a22==1)))&&!(a18==1))))&&!(a0==1)))&&(a27==1)))))){ + a4 = 1; + a12 = 8; + a0 = 1; + a15 = 1; + a6 = 1; + a5 = 1; + return -1; + } else if((!(a22==1)&&((((!(a15==1)&&((!(a6==1)&&(((a12==11)&&(((a5==1)&&(input==2))&&(a0==1)))&&(a27==1)))&&(a20==1)))&&!(a4==1))&&(a18==1))&&(a3==4)))){ + a3 = 7; + a22 = 1; + a5 = 0; + a27 = 0; + a12 = 12; + return -1; + } else if((((a4==1)&&(!(a15==1)&&(((a20==1)&&((a3==4)&&((!(a6==1)&&((((input==5)&&((a18==1)||!(a18==1)))&&(a12==12))&&(a5==1)))&&(a22==1))))&&!(a27==1))))&&(a0==1))){ + a18 = 0; + a15 = 1; + a22 = 0; + a5 = 0; + a3 = 7; + a6 = 1; + a12 = 10; + return -1; + } else if((((((a27==1)&&((a12==12)&&((a6==1)&&(((!(a15==1)&&(!(a0==1)&&(((a18==1)||!(a18==1))&&(input==4))))&&(a4==1))&&!(a5==1)))))&&(a3==5))&&(a20==1))&&(a22==1))){ + if((a18==1)){ + a0 = 1; + a4 = 0; + a6 = 0; + a3 = 8; + a18 = 0; + a12 = 10; + a15 = 1; + a22 = 0; + a27 = 0; + a5 = 1; + }else{ + a15 = 1; + a3 = 8; + a18 = 1; + a0 = 1; + a22 = 0; + a5 = 1; + a12 = 8; + a6 = 0; + } + return -1; + } else if(((((a5==1)&&(((((a3==6)&&(((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==2))&&(a20==1))&&!(a6==1)))&&(a12==12))&&!(a4==1))&&(a0==1)))&&(a27==1))&&(a15==1))){ + a12 = 8; + a6 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((a27==1)&&((!(a4==1)&&(((((((input==6)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1)))))&&!(a5==1))&&(a15==1))&&(a20==1))&&(a12==10))&&(a6==1)))&&(a0==1)))){ + a5 = 1; + a15 = 0; + a18 = 1; + a4 = 1; + a22 = 0; + a3 = 4; + a6 = 0; + return -1; + } else if(((!(a6==1)&&(((((a5==1)&&((((a20==1)&&(((input==3)&&!(a0==1))&&!(a18==1)))&&!(a4==1))&&!(a15==1)))&&!(a22==1))&&(a12==11))&&(a3==6)))&&!(a27==1))){ + a27 = 1; + a6 = 1; + a4 = 1; + a3 = 4; + a12 = 10; + return -1; + } else if(((((((a15==1)&&((a12==9)&&(!(a5==1)&&((a4==1)&&((input==6)&&((((a22==1)&&(a18==1))&&(a3==5))||(((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1))))))))))&&(a27==1))&&(a20==1))&&!(a6==1))&&(a0==1))){ + a22 = 0; + a0 = 0; + a12 = 8; + a5 = 1; + a18 = 1; + a3 = 4; + return 21; + } else if(((a20==1)&&(((a5==1)&&(!(a4==1)&&(!(a6==1)&&(!(a27==1)&&((a3==7)&&(((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==1))&&!(a15==1))&&(a12==9)))))))&&(a0==1)))){ + a4 = 1; + a22 = 1; + a15 = 1; + a18 = 1; + a3 = 6; + a6 = 1; + return 26; + } else if((((a12==10)&&((a3==7)&&(!(a15==1)&&(((a6==1)&&(!(a27==1)&&(((a20==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1)))&&!(a0==1))))&&!(a5==1)))))&&!(a4==1))){ + if((a22==1)){ + a3 = 5; + a6 = 0; + a27 = 1; + a22 = 0; + a15 = 1; + a18 = 0; + }else{ + a0 = 1; + a15 = 1; + a3 = 4; + a4 = 1; + a6 = 0; + a12 = 12; + a27 = 1; + a18 = 1; + a22 = 1; + } + return 21; + } else if((((((a0==1)&&(!(a5==1)&&((((((((!(a22==1)&&(a18==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==2))&&(a4==1))&&!(a15==1))&&(a12==11))))&&(a20==1))&&!(a27==1))&&(a6==1))){ + a22 = 0; + a3 = 4; + a4 = 0; + a12 = 9; + a18 = 1; + a5 = 1; + a6 = 0; + return -1; + } else if((!(a27==1)&&(!(a15==1)&&((((a20==1)&&(((a12==8)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&!(a4==1))&&(a0==1)))&&!(a6==1)))&&(a3==6))&&!(a5==1))))){ + a22 = 1; + a18 = 1; + a3 = 4; + a15 = 1; + a27 = 1; + a5 = 1; + a4 = 1; + a6 = 1; + return -1; + } else if((!(a27==1)&&(((a15==1)&&((a12==10)&&((((!(a5==1)&&(((input==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&!(a6==1)))&&!(a0==1))&&(a20==1))&&(a3==4))))&&(a4==1)))){ + if((a27==1)){ + a5 = 1; + a22 = 0; + a3 = 5; + a18 = 0; + a6 = 1; + a4 = 0; + }else{ + a12 = 12; + a18 = 0; + a27 = 1; + a6 = 1; + a22 = 1; + a15 = 0; + a5 = 1; + a4 = 0; + } + return 21; + } else if(((!(a4==1)&&(((!(a27==1)&&(((a15==1)&&(((a12==11)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3)))&&!(a6==1)))&&(a0==1)))&&(a20==1))&&(a3==8)))&&!(a5==1))){ + a15 = 0; + a3 = 4; + a5 = 1; + a6 = 1; + a18 = 1; + a22 = 0; + return -1; + } else if(((((a3==5)&&((a6==1)&&(((a12==11)&&((a27==1)&&(((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==5))&&!(a5==1))&&(a0==1))))&&(a20==1))))&&!(a15==1))&&!(a4==1))){ + a22 = 0; + a18 = 0; + a4 = 1; + a6 = 0; + a12 = 10; + a3 = 4; + return -1; + } else if(((!(a0==1)&&(((a20==1)&&(!(a6==1)&&(((a18==1)&&((!(a4==1)&&(((a15==1)&&(input==5))&&(a5==1)))&&(a12==9)))&&!(a22==1))))&&!(a27==1)))&&(a3==7))){ + a4 = 1; + a3 = 8; + a5 = 0; + a0 = 1; + a12 = 8; + return -1; + } else if(((a12==11)&&(((a5==1)&&((a20==1)&&((!(a27==1)&&(((a6==1)&&(!(a22==1)&&(!(a15==1)&&(!(a0==1)&&(input==1)))))&&(a18==1)))&&(a3==4))))&&!(a4==1)))){ + a22 = 1; + a6 = 0; + a0 = 1; + a12 = 8; + a3 = 8; + a4 = 1; + a27 = 1; + a15 = 1; + return 21; + } else if(((a12==11)&&((((((!(a22==1)&&((a0==1)&&((((input==6)&&((a18==1)||!(a18==1)))&&(a6==1))&&!(a15==1))))&&!(a4==1))&&(a27==1))&&(a3==6))&&(a20==1))&&(a5==1)))){ + a12 = 8; + a18 = 1; + a22 = 1; + a15 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if((!(a27==1)&&((a4==1)&&((((a5==1)&&(((a6==1)&&((a15==1)&&((a3==8)&&((input==4)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))))&&(a12==11)))&&(a0==1))&&(a20==1))))){ + if((a0==1)){ + a3 = 7; + a15 = 0; + a27 = 1; + a22 = 1; + a12 = 10; + a18 = 0; + a0 = 0; + }else{ + a22 = 1; + a15 = 0; + a27 = 1; + a18 = 1; + } + return 26; + } else if((!(a6==1)&&((!(a18==1)&&(((a3==7)&&((a12==8)&&((a27==1)&&(!(a5==1)&&((((a15==1)&&(input==5))&&!(a22==1))&&!(a4==1))))))&&!(a0==1)))&&(a20==1)))){ + a6 = 1; + a5 = 1; + a18 = 1; + a27 = 0; + a12 = 10; + a3 = 4; + a0 = 1; + a4 = 1; + return 21; + } else if(((a4==1)&&(((a12==8)&&(!(a22==1)&&((((!(a6==1)&&(((!(a27==1)&&(input==4))&&(a0==1))&&(a5==1)))&&(a20==1))&&(a15==1))&&(a18==1))))&&(a3==5)))){ + a6 = 1; + a3 = 4; + a27 = 1; + a22 = 1; + return -1; + } else if(((a20==1)&&((a22==1)&&(!(a18==1)&&(((a0==1)&&(!(a27==1)&&(((a6==1)&&((a3==5)&&(((input==2)&&!(a4==1))&&!(a15==1))))&&!(a5==1))))&&(a12==10)))))){ + if((a3==5)){ + a6 = 0; + a12 = 12; + a3 = 7; + }else{ + a22 = 0; + a12 = 11; + a27 = 1; + a3 = 4; + a18 = 1; + a15 = 1; + a4 = 1; + a5 = 1; + } + return 26; + } else if(((a3==6)&&((!(a0==1)&&((a22==1)&&(((a20==1)&&(!(a27==1)&&((!(a5==1)&&((a15==1)&&((input==6)&&(a18==1))))&&(a6==1))))&&!(a4==1))))&&(a12==11)))){ + a5 = 1; + a3 = 5; + a6 = 0; + a0 = 1; + a12 = 9; + a27 = 1; + a22 = 0; + return -1; + } else if((((a5==1)&&(!(a22==1)&&((a12==8)&&(!(a27==1)&&(((!(a4==1)&&((a6==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&(a20==1))))&&(a0==1))&&(a3==8))))))&&(a15==1))){ + a18 = 1; + a12 = 11; + a3 = 5; + a22 = 1; + a6 = 0; + a5 = 0; + return 26; + } else if(((a6==1)&&(((((a0==1)&&(!(a5==1)&&(((((input==1)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a4==1))&&(a15==1))&&(a27==1))))&&(a20==1))&&(a12==12))&&(a3==4)))){ + a12 = 8; + a5 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((!(a27==1)&&(((!(a4==1)&&((a12==11)&&(!(a0==1)&&(((input==5)&&((((a22==1)&&(a18==1))&&(a3==7))||((((a18==1)&&!(a22==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6)))))&&!(a15==1)))))&&(a6==1))&&(a5==1)))&&(a20==1))){ + if((a0==1)){ + a12 = 8; + a0 = 1; + a18 = 1; + a27 = 1; + a22 = 1; + a3 = 6; + a15 = 1; + }else{ + a22 = 0; + a4 = 1; + a15 = 1; + a6 = 0; + a18 = 1; + a3 = 8; + a12 = 9; + a5 = 0; + } + return -1; + } else if(((a4==1)&&(((a20==1)&&(!(a0==1)&&((a3==8)&&(((a5==1)&&(((a27==1)&&((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a12==8)))&&!(a15==1)))))&&!(a6==1)))){ + a3 = 6; + a12 = 11; + a4 = 0; + a15 = 1; + a22 = 1; + a18 = 0; + a6 = 1; + return -1; + } else if(((a27==1)&&((a4==1)&&((!(a0==1)&&((a12==8)&&((a6==1)&&(((a3==4)&&((a15==1)&&((input==3)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))))&&!(a5==1)))))&&(a20==1))))){ + a0 = 1; + a5 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if((((a5==1)&&(((a12==12)&&(!(a0==1)&&((a22==1)&&(((!(a4==1)&&((a3==8)&&((input==1)&&((a18==1)||!(a18==1)))))&&(a20==1))&&(a27==1)))))&&!(a6==1)))&&!(a15==1))){ + a4 = 1; + a6 = 1; + a15 = 1; + a18 = 1; + a22 = 0; + a12 = 8; + a0 = 1; + return -1; + } else if(((((a12==11)&&(((a6==1)&&(((a20==1)&&(((a4==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==4)))&&!(a27==1)))&&(a0==1)))&&(a15==1)))&&!(a5==1))&&(a3==6))){ + a22 = 1; + a6 = 0; + a3 = 5; + a18 = 0; + a4 = 0; + a12 = 10; + return -1; + } else if((((!(a18==1)&&((a20==1)&&((!(a22==1)&&((a15==1)&&(((a12==8)&&((a6==1)&&((input==3)&&(a5==1))))&&(a4==1))))&&!(a27==1))))&&(a0==1))&&(a3==7))){ + a3 = 6; + a15 = 0; + a4 = 0; + a12 = 11; + a27 = 1; + a18 = 1; + a6 = 0; + return 24; + } else if(((a27==1)&&((a12==10)&&((a20==1)&&((a0==1)&&((a15==1)&&((a6==1)&&(((a4==1)&&((input==5)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))))&&!(a5==1))))))))){ + a18 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + a5 = 1; + return -1; + } else if(((a20==1)&&(((a15==1)&&(((!(a6==1)&&((a4==1)&&((((((a18==1)||!(a18==1))&&(input==3))&&(a27==1))&&!(a0==1))&&(a5==1))))&&(a12==10))&&(a22==1)))&&(a3==6)))){ + a0 = 1; + a18 = 0; + a3 = 7; + a15 = 0; + return 21; + } else if(((a4==1)&&((a12==9)&&(((((a6==1)&&(!(a15==1)&&((a0==1)&&((input==4)&&(((a3==8)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==7))||((a3==7)&&(!(a18==1)&&!(a22==1)))))))))&&!(a27==1))&&(a5==1))&&(a20==1))))){ + a27 = 1; + a0 = 0; + a4 = 0; + a12 = 8; + a18 = 0; + a22 = 0; + a3 = 4; + return 21; + } else if(((a20==1)&&(((((a5==1)&&(((((((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1))||(((a6==1)&&((!(a22==1)&&(a18==1))&&(a3==8)))||(((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))))&&(input==3))&&!(a27==1))&&!(a15==1)))&&(a12==10))&&!(a4==1))&&(a0==1)))){ + a18 = 1; + a27 = 1; + a12 = 8; + a4 = 1; + a22 = 1; + a3 = 4; + a15 = 1; + a6 = 1; + return -1; + } else if(((a12==10)&&((a15==1)&&(!(a6==1)&&((a20==1)&&(!(a0==1)&&(!(a4==1)&&(((((input==5)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a5==1))&&(a3==8))&&(a27==1))))))))){ + a12 = 11; + a3 = 4; + a0 = 1; + a15 = 0; + a18 = 1; + a6 = 1; + a5 = 1; + a22 = 1; + return 21; + } else if((((!(a0==1)&&((a27==1)&&((a15==1)&&((a12==11)&&((((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==5))&&(a6==1))&&(a5==1))&&(a20==1))))))&&(a3==8))&&!(a4==1))){ + a15 = 0; + a18 = 0; + a4 = 1; + a22 = 1; + a6 = 0; + a0 = 1; + a3 = 6; + a5 = 0; + return 26; + } else if(((a6==1)&&(!(a18==1)&&((a27==1)&&((a3==8)&&((a15==1)&&((a5==1)&&(((a12==10)&&((a0==1)&&(((input==2)&&(a4==1))&&(a20==1))))&&(a22==1))))))))){ + a12 = 8; + a3 = 4; + a18 = 1; + return -1; + } else if((((((((a22==1)&&((a12==11)&&((a3==5)&&((((input==6)&&((a18==1)||!(a18==1)))&&(a4==1))&&!(a6==1)))))&&!(a27==1))&&(a0==1))&&(a20==1))&&!(a5==1))&&(a15==1))){ + if((a22==1)){ + a27 = 1; + a0 = 0; + a22 = 0; + a18 = 1; + }else{ + a22 = 0; + a4 = 0; + a12 = 12; + a27 = 1; + a6 = 1; + a18 = 1; + a15 = 0; + a3 = 7; + } + return -1; + } else if(((a15==1)&&((a6==1)&&(((!(a4==1)&&(((a20==1)&&((((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6)))||((a3==6)&&(!(a18==1)&&(a22==1))))&&(input==5))&&(a5==1)))&&(a27==1)))&&!(a0==1))&&(a12==10))))){ + a6 = 0; + a12 = 11; + a22 = 1; + a3 = 4; + a18 = 1; + a0 = 1; + return 21; + } else if(((((a12==9)&&(((a27==1)&&((a6==1)&&((((((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==2))&&(a15==1))&&(a5==1))))&&(a4==1)))&&!(a0==1))&&(a20==1))){ + a12 = 10; + a18 = 1; + a4 = 0; + a6 = 0; + a22 = 1; + a3 = 4; + return 21; + } else if(((((((a0==1)&&((((!(a5==1)&&(((a6==1)&&(input==3))&&!(a15==1)))&&!(a4==1))&&(a3==7))&&(a27==1)))&&(a20==1))&&(a12==10))&&!(a22==1))&&(a18==1))){ + a5 = 1; + a22 = 1; + a12 = 8; + a4 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if(((a12==10)&&((a3==6)&&(((a20==1)&&((((a0==1)&&((!(a6==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==2)))&&(a5==1)))&&(a27==1))&&!(a4==1)))&&!(a15==1))))){ + a22 = 0; + a18 = 1; + a4 = 1; + a15 = 1; + return -1; + } else if(((((a22==1)&&((!(a6==1)&&(((a0==1)&&((((a3==8)&&(!(a15==1)&&(input==6)))&&(a27==1))&&(a12==12)))&&!(a18==1)))&&(a20==1)))&&!(a5==1))&&(a4==1))){ + a3 = 4; + a22 = 0; + a15 = 1; + a12 = 11; + return 21; + } else if((((a12==10)&&(((a4==1)&&((((a20==1)&&(((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==2))&&!(a27==1))&&!(a15==1)))&&(a3==6))&&(a5==1)))&&(a6==1)))&&!(a0==1))){ + if((a5==1)){ + a5 = 0; + a3 = 8; + a27 = 1; + a12 = 12; + a18 = 0; + a22 = 1; + }else{ + a0 = 1; + a18 = 0; + a12 = 9; + a22 = 1; + a3 = 5; + a6 = 0; + } + return 26; + } else if(((!(a15==1)&&((a0==1)&&((a12==11)&&((a20==1)&&((!(a6==1)&&(((input==2)&&(((a3==6)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1))))))&&(a5==1)))&&(a4==1))))))&&!(a27==1))){ + a12 = 10; + a22 = 1; + a3 = 6; + a18 = 1; + a6 = 1; + a15 = 1; + a5 = 0; + return -1; + } else if(((((a12==10)&&((a4==1)&&((a6==1)&&(!(a5==1)&&(((a20==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==1))&&(a3==5)))&&(a27==1))))))&&!(a0==1))&&!(a15==1))){ + a0 = 1; + a18 = 1; + a6 = 0; + a4 = 0; + a15 = 1; + a22 = 0; + a3 = 8; + a5 = 1; + return -1; + } else if((((a3==6)&&(!(a15==1)&&(((a12==12)&&((a20==1)&&(!(a4==1)&&(!(a27==1)&&(!(a6==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==5)))))))&&(a0==1))))&&!(a5==1))){ + a22 = 1; + a18 = 1; + a12 = 10; + return 24; + } else if((((a0==1)&&((((a12==8)&&((((a6==1)&&((a3==6)&&(!(a15==1)&&((input==1)&&(a20==1)))))&&!(a22==1))&&(a18==1)))&&!(a4==1))&&(a5==1)))&&(a27==1))){ + a22 = 1; + a6 = 0; + a15 = 1; + a18 = 0; + a12 = 9; + a3 = 7; + return 26; + } else if((((a27==1)&&((((a4==1)&&(((a3==4)&&((a20==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==2))&&(a6==1))))&&(a15==1)))&&(a12==12))&&!(a5==1)))&&(a0==1))){ + a6 = 0; + a22 = 0; + a5 = 1; + a18 = 0; + return -1; + } else if(((a27==1)&&((!(a22==1)&&(!(a18==1)&&((((((a5==1)&&(((input==6)&&(a3==5))&&!(a6==1)))&&!(a4==1))&&(a20==1))&&(a15==1))&&(a12==12))))&&(a0==1)))){ + a27 = 0; + a18 = 1; + a3 = 4; + a6 = 1; + return 26; + } else if((!(a4==1)&&(((a3==7)&&(((a0==1)&&((!(a22==1)&&((!(a18==1)&&(((a6==1)&&(input==4))&&(a12==8)))&&!(a27==1)))&&(a5==1)))&&(a20==1)))&&(a15==1)))){ + a12 = 11; + a15 = 0; + a22 = 1; + a3 = 5; + a18 = 1; + return 26; + } else if(((a6==1)&&(!(a0==1)&&((((a27==1)&&((a3==4)&&((((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==1))&&!(a15==1))&&!(a4==1))&&(a12==11))))&&!(a5==1))&&(a20==1))))){ + a18 = 1; + a0 = 1; + a5 = 1; + a4 = 1; + a12 = 8; + a15 = 1; + a22 = 1; + return -1; + } else if(((a27==1)&&(((a4==1)&&((((a3==7)&&((a20==1)&&((((input==4)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a15==1))&&(a12==11))))&&(a5==1))&&(a0==1)))&&!(a6==1)))){ + a12 = 8; + a22 = 1; + a18 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if((!(a15==1)&&((((a5==1)&&((a4==1)&&(((a20==1)&&(((a22==1)&&((a27==1)&&((input==3)&&(a6==1))))&&(a3==5)))&&(a12==8))))&&(a0==1))&&!(a18==1)))){ + a15 = 1; + a5 = 0; + a22 = 0; + return 26; + } else if((((((a15==1)&&(!(a5==1)&&((a20==1)&&(!(a4==1)&&(!(a27==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))||((!(a18==1)&&(a22==1))&&(a3==7)))&&(input==4)))))))&&!(a6==1))&&(a12==8))&&!(a0==1))){ + if((a0==1)){ + a0 = 1; + a22 = 1; + a4 = 1; + a18 = 0; + a27 = 1; + a3 = 5; + a5 = 1; + }else{ + a27 = 1; + a18 = 0; + a3 = 4; + a5 = 1; + a0 = 1; + a22 = 1; + } + return 26; + } else if(((a5==1)&&(((a3==4)&&((a0==1)&&((((((((input==3)&&(a4==1))&&(a20==1))&&(a27==1))&&(a12==12))&&!(a22==1))&&!(a18==1))&&(a15==1))))&&(a6==1)))){ + a27 = 0; + a4 = 0; + a3 = 7; + a6 = 0; + a12 = 11; + a22 = 1; + a15 = 0; + a5 = 0; + return 21; + } else if(((((a3==4)&&(((a4==1)&&((a0==1)&&((!(a5==1)&&((a27==1)&&(((a6==1)&&(input==6))&&(a18==1))))&&(a12==9))))&&(a20==1)))&&(a22==1))&&(a15==1))){ + a6 = 0; + a0 = 0; + a12 = 8; + a22 = 0; + a3 = 8; + a18 = 0; + return 21; + } else if(((!(a0==1)&&((((a5==1)&&((a20==1)&&((a4==1)&&((a6==1)&&((input==3)&&((((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5)))||((a3==5)&&(!(a18==1)&&(a22==1)))))))))&&(a27==1))&&!(a15==1)))&&(a12==8))){ + a12 = 12; + a18 = 0; + a22 = 0; + a4 = 0; + a0 = 1; + a3 = 8; + return 26; + } else if((((a12==12)&&(((!(a4==1)&&((!(a6==1)&&((a15==1)&&(!(a27==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==4)))))&&(a5==1)))&&(a20==1))&&(a3==8)))&&(a0==1))){ + a4 = 1; + a6 = 1; + a27 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if((((a12==12)&&(((a0==1)&&((a6==1)&&((((((input==5)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&!(a15==1))&&!(a4==1))&&(a20==1))&&(a27==1))))&&(a5==1)))&&(a3==7))){ + a22 = 0; + a18 = 1; + a27 = 0; + a6 = 0; + a3 = 6; + a4 = 1; + return 26; + } else if(((a0==1)&&(!(a6==1)&&(((a5==1)&&((((((((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==3))&&(a27==1))&&(a4==1))&&(a20==1))&&(a12==12)))&&(a15==1))))){ + if((a27==1)){ + a18 = 0; + a12 = 10; + a3 = 7; + a22 = 0; + a0 = 0; + a4 = 0; + }else{ + a12 = 10; + a18 = 0; + a5 = 0; + a6 = 1; + a4 = 0; + a22 = 1; + a3 = 4; + a0 = 0; + } + return -1; + } else if((!(a6==1)&&((a20==1)&&(!(a4==1)&&((!(a27==1)&&((a12==8)&&((a15==1)&&((((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a0==1))&&(a3==7)))))&&(a5==1)))))){ + a4 = 1; + a18 = 0; + a27 = 1; + a15 = 0; + a3 = 4; + a12 = 10; + a5 = 0; + a22 = 0; + return -1; + } else if((((a3==8)&&((a20==1)&&((!(a5==1)&&((a18==1)&&((((a4==1)&&((a27==1)&&((input==4)&&(a12==8))))&&!(a15==1))&&(a22==1))))&&!(a6==1))))&&(a0==1))){ + a4 = 0; + a15 = 1; + a22 = 0; + a12 = 11; + a5 = 1; + return 21; + } else if(((((!(a0==1)&&(!(a15==1)&&(((!(a5==1)&&(((((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==4)))&&!(a4==1))&&!(a6==1))))&&(a12==8))&&(a27==1))&&(a20==1))){ + a4 = 1; + a0 = 1; + a5 = 1; + a6 = 1; + a3 = 4; + a15 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((a6==1)&&(!(a4==1)&&((a27==1)&&((!(a15==1)&&((a5==1)&&(((a12==12)&&((a22==1)&&((a20==1)&&((input==6)&&((a18==1)||!(a18==1))))))&&(a3==8))))&&(a0==1)))))){ + a4 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + a15 = 1; + return -1; + } else if((((a12==8)&&(((!(a0==1)&&(((((input==5)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6))))&&(a4==1))&&(a27==1))&&(a6==1)))&&!(a15==1))&&(a5==1)))&&(a20==1))){ + a6 = 0; + a15 = 1; + a18 = 0; + a22 = 0; + a5 = 0; + a3 = 7; + a12 = 12; + a0 = 1; + return 26; + } else if((!(a27==1)&&((a12==8)&&((((a15==1)&&(!(a0==1)&&((a3==4)&&((a20==1)&&((((input==6)&&!(a22==1))&&!(a18==1))&&!(a5==1))))))&&(a6==1))&&(a4==1))))){ + a3 = 5; + a4 = 0; + a22 = 1; + a0 = 1; + a5 = 1; + a27 = 1; + return 21; + } else if(((((!(a0==1)&&(((((a20==1)&&((((a3==5)&&((a22==1)&&(a18==1)))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a22==1)&&!(a18==1)))))&&(input==3)))&&(a15==1))&&(a12==10))&&(a27==1)))&&!(a6==1))&&!(a5==1))&&!(a4==1))){ + a27 = 0; + a0 = 1; + a12 = 11; + a4 = 1; + a18 = 1; + a15 = 0; + a3 = 8; + a22 = 1; + return 26; + } else if((((!(a0==1)&&((a12==8)&&(!(a27==1)&&(((((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==5))&&(a20==1))&&!(a15==1))&&!(a4==1)))))&&(a6==1))&&(a5==1))){ + a18 = 0; + a22 = 0; + a3 = 8; + a27 = 1; + a15 = 1; + a0 = 1; + return 21; + } else if(((a0==1)&&((!(a15==1)&&((a3==7)&&(!(a27==1)&&((a12==9)&&((a6==1)&&((((input==2)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&(a20==1))&&(a5==1)))))))&&!(a4==1)))){ + a5 = 0; + a27 = 1; + a3 = 5; + a15 = 1; + a18 = 1; + a6 = 0; + a12 = 10; + a22 = 1; + return 26; + } else if(((a20==1)&&((((!(a0==1)&&((a5==1)&&((input==4)&&(((a6==1)&&((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1))))||((!(a6==1)&&(((a4==1)&&((a18==1)&&!(a22==1)))&&(a3==8)))||((((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8))&&!(a6==1)))))))&&(a27==1))&&(a15==1))&&(a12==9)))){ + a22 = 1; + a12 = 8; + a4 = 1; + a0 = 1; + a18 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if(((!(a6==1)&&((a15==1)&&(((a5==1)&&((a12==8)&&((((a0==1)&&((!(a22==1)&&(input==3))&&!(a4==1)))&&!(a18==1))&&(a3==7))))&&!(a27==1))))&&(a20==1))){ + a18 = 1; + a12 = 10; + a3 = 8; + return 21; + } else if(((a6==1)&&(((a20==1)&&((a22==1)&&(!(a0==1)&&((a15==1)&&(!(a4==1)&&((a5==1)&&(!(a18==1)&&((a3==8)&&((a27==1)&&(input==5))))))))))&&(a12==8)))){ + a0 = 1; + a3 = 4; + a12 = 10; + return -1; + } else if(((a3==5)&&(!(a4==1)&&(!(a22==1)&&((((a0==1)&&(((a12==11)&&(((((a18==1)||!(a18==1))&&(input==3))&&!(a5==1))&&(a27==1)))&&(a15==1)))&&(a6==1))&&(a20==1)))))){ + a18 = 1; + a3 = 8; + a6 = 0; + a5 = 1; + a15 = 0; + a27 = 0; + return 26; + } else if(((a4==1)&&((a12==12)&&(!(a5==1)&&(((a0==1)&&((!(a15==1)&&(((input==1)&&((((!(a22==1)&&(a18==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7)))||((a3==8)&&((a22==1)&&(a18==1)))))&&!(a6==1)))&&(a20==1)))&&(a27==1)))))){ + a22 = 1; + a15 = 1; + a3 = 6; + a4 = 0; + a12 = 11; + a18 = 0; + return -1; + } else if(((!(a15==1)&&((a4==1)&&((a12==11)&&((!(a0==1)&&(!(a27==1)&&(((input==4)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6))))&&(a5==1))))&&(a6==1)))))&&(a20==1))){ + a4 = 0; + a0 = 1; + a3 = 5; + a15 = 1; + a5 = 0; + a22 = 1; + a18 = 0; + return 21; + } else if((!(a6==1)&&(((a15==1)&&((a12==8)&&((!(a27==1)&&((((((a22==1)&&(input==6))&&(a20==1))&&!(a5==1))&&(a0==1))&&!(a18==1)))&&(a3==6))))&&(a4==1)))){ + a12 = 11; + a5 = 1; + a4 = 0; + return 26; + } else if(((a6==1)&&(((a3==8)&&((a22==1)&&(((!(a15==1)&&((a5==1)&&(((!(a27==1)&&(input==1))&&!(a4==1))&&(a12==8))))&&(a0==1))&&!(a18==1))))&&(a20==1)))){ + a12 = 11; + a15 = 1; + a6 = 0; + a3 = 6; + a22 = 0; + a5 = 0; + a27 = 1; + a18 = 1; + return 21; + } else if((!(a15==1)&&((!(a5==1)&&(((((a18==1)&&((!(a4==1)&&(((input==6)&&(a12==11))&&!(a27==1)))&&(a6==1)))&&(a3==4))&&(a20==1))&&!(a22==1)))&&!(a0==1)))){ + a18 = 0; + a27 = 1; + return 21; + } else if(((a27==1)&&(((a6==1)&&((((((a20==1)&&((a3==8)&&(((input==4)&&(a15==1))&&(a18==1))))&&!(a0==1))&&(a12==11))&&!(a4==1))&&!(a22==1)))&&!(a5==1)))){ + a3 = 6; + a15 = 0; + a18 = 0; + a0 = 1; + a4 = 1; + return -1; + } else if((((a3==5)&&((((a12==10)&&((a5==1)&&(((!(a27==1)&&(((a4==1)&&(input==6))&&(a0==1)))&&!(a6==1))&&(a22==1))))&&(a20==1))&&!(a15==1)))&&!(a18==1))){ + a12 = 12; + a5 = 0; + a27 = 1; + a18 = 1; + a4 = 0; + a15 = 1; + a3 = 4; + return -1; + } else if(((a3==5)&&(((!(a4==1)&&(!(a27==1)&&((a22==1)&&(!(a15==1)&&((((a5==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&!(a6==1))&&(a20==1))))))&&!(a0==1))&&(a12==11)))){ + a22 = 0; + a18 = 0; + a6 = 1; + a15 = 1; + a12 = 12; + a27 = 1; + a3 = 6; + return 26; + } else if((((((a12==9)&&(((!(a5==1)&&((a15==1)&&((input==2)&&((((a22==1)&&!(a18==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1))))))))&&(a20==1))&&(a0==1)))&&!(a6==1))&&!(a27==1))&&(a4==1))){ + a22 = 0; + a12 = 8; + a18 = 0; + a27 = 1; + a3 = 4; + a5 = 1; + a0 = 0; + return 26; + } else if(((((!(a0==1)&&((((((((a3==5)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4))))&&(input==3))&&(a6==1))&&(a27==1))&&(a12==9))&&!(a15==1)))&&(a5==1))&&(a4==1))&&(a20==1))){ + a22 = 1; + a0 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + a15 = 1; + return -1; + } else if((((a3==6)&&(((!(a15==1)&&((a12==12)&&(!(a6==1)&&(((((input==3)&&(a22==1))&&(a4==1))&&(a0==1))&&!(a27==1)))))&&(a5==1))&&(a20==1)))&&!(a18==1))){ + a12 = 8; + a15 = 1; + a18 = 1; + a3 = 4; + a6 = 1; + a27 = 1; + return -1; + } else if(((((a4==1)&&((a12==12)&&(((((a0==1)&&(!(a27==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==5))))&&(a5==1))&&(a3==5))&&(a6==1))))&&(a15==1))&&(a20==1))){ + a4 = 0; + a22 = 0; + a0 = 0; + a27 = 1; + a6 = 0; + a18 = 1; + a12 = 8; + return -1; + } else if(((!(a6==1)&&((((a12==8)&&((((!(a4==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a3==5)))&&(a22==1))&&(a0==1))&&(a27==1)))&&!(a15==1))&&!(a5==1)))&&(a20==1))){ + if((a12==11)){ + a3 = 7; + a15 = 1; + a22 = 0; + a18 = 1; + a0 = 0; + a4 = 1; + }else{ + a0 = 0; + a4 = 1; + a18 = 1; + a12 = 11; + } + return 21; + } else if(((a20==1)&&((a0==1)&&(((a15==1)&&((a3==5)&&(!(a4==1)&&(((a6==1)&&(((a22==1)&&((a5==1)&&(input==1)))&&(a12==9)))&&(a27==1)))))&&(a18==1))))){ + a3 = 4; + a15 = 0; + a22 = 0; + a12 = 12; + a6 = 0; + return 21; + } else if((!(a4==1)&&(!(a0==1)&&((a20==1)&&(((a6==1)&&(((a27==1)&&((a12==12)&&((((a3==6)&&((a22==1)&&!(a18==1)))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a22==1)&&(a18==1)))))&&(input==2))))&&!(a15==1)))&&(a5==1)))))){ + a3 = 7; + a22 = 0; + a18 = 1; + a0 = 1; + a4 = 1; + a15 = 1; + a12 = 10; + return 21; + } else if(((((((((((a3==4)&&((input==3)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&(a20==1))&&(a27==1))&&(a0==1))&&!(a15==1))&&(a12==9))&&!(a6==1))&&(a5==1))&&(a4==1))){ + a15 = 1; + a18 = 1; + a22 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if((!(a27==1)&&(((a12==11)&&(!(a5==1)&&(((a20==1)&&((input==4)&&(((((((a18==1)&&!(a22==1))&&(a4==1))&&(a3==8))&&!(a6==1))||(!(a6==1)&&(((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8))))||(((((a22==1)&&(a18==1))&&!(a4==1))&&(a3==4))&&(a6==1)))))&&(a15==1))))&&(a0==1)))){ + a6 = 1; + a12 = 9; + a22 = 1; + a4 = 1; + a18 = 0; + a3 = 4; + return -1; + } else if(((((a15==1)&&((a4==1)&&((((a3==5)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5))&&(a0==1))&&(a27==1)))&&(a12==12))&&!(a6==1))))&&(a5==1))&&(a20==1))){ + a18 = 1; + a3 = 4; + a22 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if(((a12==8)&&(!(a5==1)&&((!(a0==1)&&((a20==1)&&((input==1)&&((((a3==8)&&(((a15==1)&&(!(a22==1)&&!(a18==1)))&&!(a4==1)))&&!(a6==1))||((((!(a15==1)&&((a18==1)&&(a22==1)))&&(a4==1))&&(a3==4))&&(a6==1))))))&&(a27==1))))){ + a18 = 1; + a4 = 0; + a6 = 1; + a3 = 5; + a12 = 11; + a0 = 1; + a22 = 0; + a15 = 1; + return -1; + } else if((((((a20==1)&&(((a15==1)&&(((!(a4==1)&&((input==2)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))))&&(a27==1))&&!(a5==1)))&&!(a0==1)))&&(a3==4))&&(a6==1))&&(a12==8))){ + a22 = 0; + a12 = 10; + a18 = 1; + a5 = 1; + return 26; + } else if(((((!(a4==1)&&((a3==7)&&((!(a5==1)&&((((a12==10)&&((input==4)&&(a20==1)))&&(a27==1))&&(a18==1)))&&(a0==1))))&&(a15==1))&&(a6==1))&&!(a22==1))){ + if((a18==1)){ + a12 = 8; + a3 = 6; + a15 = 0; + a0 = 0; + a5 = 1; + a4 = 1; + }else{ + a27 = 0; + a5 = 1; + a4 = 1; + a15 = 0; + a22 = 1; + a3 = 6; + } + return 21; + } else if(((a4==1)&&((((a22==1)&&(((a3==4)&&(((((((a18==1)||!(a18==1))&&(input==3))&&(a15==1))&&(a20==1))&&!(a5==1))&&(a6==1)))&&(a12==8)))&&(a0==1))&&(a27==1)))){ + a4 = 0; + a3 = 8; + a12 = 9; + a18 = 0; + return 26; + } else if(((!(a5==1)&&(!(a0==1)&&((a20==1)&&((!(a4==1)&&(((a12==11)&&((((!(a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1)))))&&(input==6)))&&(a15==1)))&&!(a6==1)))))&&(a27==1))){ + a12 = 8; + a0 = 1; + a22 = 0; + a18 = 0; + a3 = 4; + a6 = 1; + a15 = 0; + return 24; + } else if(((((a12==12)&&((!(a6==1)&&(!(a5==1)&&(((((((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1))))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==1))&&(a20==1))&&(a4==1))))&&(a27==1)))&&(a0==1))&&!(a15==1))){ + a27 = 0; + a3 = 7; + a22 = 0; + a12 = 8; + a5 = 1; + a18 = 1; + return 24; + } else if((!(a0==1)&&((((a3==6)&&((a20==1)&&(((a27==1)&&(!(a4==1)&&(!(a5==1)&&((((a18==1)||!(a18==1))&&(input==2))&&!(a15==1)))))&&!(a6==1))))&&!(a22==1))&&(a12==11)))){ + a18 = 1; + a0 = 1; + a12 = 9; + a4 = 1; + a3 = 7; + a6 = 1; + return 21; + } else if(((a4==1)&&((((((a12==10)&&((a27==1)&&(((input==2)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))||((a3==6)&&(!(a18==1)&&(a22==1)))))&&(a20==1))))&&(a6==1))&&(a5==1))&&(a0==1))&&!(a15==1)))){ + a3 = 5; + a27 = 0; + a18 = 0; + a12 = 9; + a5 = 0; + a22 = 0; + return 26; + } else if((((!(a6==1)&&((((!(a5==1)&&(!(a0==1)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==4))))&&(a4==1))&&(a20==1))&&!(a27==1)))&&(a15==1))&&(a12==11))){ + if((a15==1)){ + a22 = 1; + a4 = 0; + a3 = 4; + a0 = 1; + a12 = 10; + a18 = 0; + a15 = 0; + }else{ + a3 = 7; + a22 = 1; + a6 = 1; + a18 = 1; + a27 = 1; + a12 = 10; + } + return -1; + } else if((!(a15==1)&&(!(a6==1)&&(!(a5==1)&&((a20==1)&&((a3==8)&&(((((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==3))&&(a27==1))&&(a0==1))&&(a4==1))&&(a12==11)))))))){ + a22 = 1; + a12 = 9; + a18 = 0; + a6 = 1; + a5 = 1; + a3 = 6; + a15 = 1; + return -1; + } else if(((((a27==1)&&(((a6==1)&&((a15==1)&&(((((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1))))||((!(a18==1)&&(a22==1))&&(a3==7)))&&(input==3))&&!(a4==1))&&(a20==1))))&&!(a0==1)))&&(a12==10))&&!(a5==1))){ + a3 = 6; + a22 = 0; + a18 = 0; + a4 = 1; + a15 = 0; + a5 = 1; + a0 = 1; + a6 = 0; + return -1; + } else if((!(a27==1)&&((!(a18==1)&&((a0==1)&&((a12==10)&&((((((a15==1)&&((input==4)&&(a20==1)))&&(a3==5))&&(a5==1))&&!(a22==1))&&(a4==1)))))&&!(a6==1)))){ + a15 = 0; + a12 = 9; + a3 = 7; + return -1; + } else if((((!(a15==1)&&(!(a27==1)&&((((a12==9)&&((((a3==8)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a0==1))&&(a5==1)))&&(a22==1))&&(a20==1))))&&(a4==1))&&!(a6==1))){ + a27 = 1; + a18 = 1; + a4 = 0; + a3 = 4; + a12 = 12; + return 21; + } else if(((a15==1)&&((a4==1)&&(((a6==1)&&((a0==1)&&((a18==1)&&((((((a3==4)&&(input==5))&&!(a22==1))&&(a5==1))&&!(a27==1))&&(a12==9)))))&&(a20==1))))){ + a3 = 6; + a6 = 0; + a27 = 1; + a12 = 11; + a18 = 0; + return 21; + } else if((!(a15==1)&&((a20==1)&&(((!(a0==1)&&((a12==9)&&((((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a3==6))&&(a6==1))&&(a27==1))))&&(a4==1))&&!(a5==1))))){ + a3 = 7; + a18 = 1; + a5 = 1; + a12 = 12; + a15 = 1; + a4 = 0; + a0 = 1; + a22 = 1; + return 26; + } else if(((a15==1)&&((((a12==10)&&((((((input==5)&&((((a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==5)))))&&(a6==1))&&(a27==1))&&(a20==1))&&(a0==1)))&&(a4==1))&&(a5==1)))){ + a18 = 0; + a22 = 1; + a3 = 4; + return -1; + } else if((((!(a6==1)&&(((a0==1)&&((!(a4==1)&&((a5==1)&&((a20==1)&&(((input==6)&&(a27==1))&&!(a15==1)))))&&(a12==11)))&&!(a18==1)))&&(a22==1))&&(a3==4))){ + a22 = 0; + a5 = 0; + a18 = 1; + a12 = 12; + a27 = 0; + return -1; + } else if(((a20==1)&&((a5==1)&&((a6==1)&&((!(a27==1)&&((a12==8)&&((((input==4)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==7))))&&!(a15==1))&&!(a4==1))))&&(a0==1)))))){ + a27 = 1; + a4 = 1; + a15 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + return -1; + } else if(((!(a27==1)&&(!(a0==1)&&((a12==9)&&((a20==1)&&(!(a4==1)&&(((a5==1)&&((input==5)&&(((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))))&&(a15==1)))))))&&!(a6==1))){ + if((a12==11)){ + a27 = 1; + a3 = 8; + a4 = 1; + a6 = 1; + a18 = 0; + a22 = 0; + a0 = 1; + a12 = 8; + }else{ + a18 = 1; + a0 = 1; + a27 = 1; + a15 = 0; + a3 = 4; + a22 = 1; + a4 = 1; + a6 = 1; + a12 = 12; + } + return 21; + } else if(((a4==1)&&((a6==1)&&((((!(a5==1)&&((a20==1)&&((a15==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&!(a0==1)))))&&(a27==1))&&(a3==8))&&(a12==8))))){ + a18 = 1; + a3 = 4; + a5 = 1; + a22 = 1; + a0 = 1; + return -1; + } else if((!(a5==1)&&((a20==1)&&((!(a15==1)&&(((((((((a3==7)&&(!(a22==1)&&(a18==1)))||((a3==7)&&(!(a18==1)&&!(a22==1))))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==6))&&!(a27==1))&&!(a0==1))&&!(a4==1))&&!(a6==1)))&&(a12==8))))){ + a22 = 0; + a5 = 1; + a27 = 1; + a15 = 1; + a3 = 7; + a18 = 0; + a6 = 1; + a4 = 1; + a0 = 1; + return 26; + } else if(((a15==1)&&((a5==1)&&((a6==1)&&((!(a0==1)&&(((((input==5)&&(((a3==8)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7)))))&&(a12==11))&&(a20==1))&&(a4==1)))&&!(a27==1)))))){ + a0 = 1; + a4 = 0; + a18 = 0; + a22 = 0; + a15 = 0; + a3 = 6; + a12 = 8; + return 24; + } else if(((((a3==4)&&(((a12==10)&&(((a15==1)&&((((input==2)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a0==1))&&(a6==1)))&&!(a27==1)))&&!(a4==1)))&&(a5==1))&&(a20==1))){ + a6 = 0; + a27 = 1; + a22 = 0; + a3 = 5; + a18 = 1; + a4 = 1; + return 21; + } else if(((a5==1)&&((a3==7)&&(((((((!(a0==1)&&((a20==1)&&(!(a15==1)&&(input==6))))&&(a6==1))&&!(a18==1))&&(a12==9))&&!(a22==1))&&!(a27==1))&&!(a4==1))))){ + a3 = 8; + a15 = 1; + a27 = 1; + a0 = 1; + a12 = 8; + a4 = 1; + return 26; + } else if(((!(a4==1)&&((!(a22==1)&&((a27==1)&&((!(a15==1)&&((!(a5==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a3==7)))&&(a12==12)))&&(a6==1))))&&(a20==1)))&&!(a0==1))){ + a0 = 1; + a27 = 0; + a12 = 8; + a22 = 1; + a5 = 1; + a15 = 1; + a18 = 0; + a3 = 8; + return -1; + } else if(((a15==1)&&((!(a22==1)&&(((((!(a5==1)&&(!(a27==1)&&((a3==5)&&((input==2)&&!(a4==1)))))&&(a0==1))&&(a6==1))&&(a18==1))&&(a20==1)))&&(a12==12)))){ + a3 = 7; + a12 = 10; + a15 = 0; + return 26; + } else if((((a20==1)&&(!(a6==1)&&((!(a18==1)&&((a0==1)&&((!(a22==1)&&((a5==1)&&(!(a4==1)&&((a27==1)&&(input==1)))))&&(a3==8))))&&(a12==8))))&&!(a15==1))){ + a22 = 1; + a3 = 4; + a15 = 1; + a12 = 9; + a6 = 1; + a5 = 0; + return 24; + } else if(((a27==1)&&(!(a15==1)&&(((!(a4==1)&&((a6==1)&&(((a12==9)&&(((((a22==1)&&(a18==1))&&(a3==5))||((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1)))))&&(input==4)))&&(a20==1))))&&!(a5==1))&&(a0==1))))){ + a3 = 4; + a4 = 1; + a15 = 1; + a22 = 1; + a12 = 8; + a5 = 1; + a18 = 1; + return -1; + } else if(((a20==1)&&(((a6==1)&&(((a18==1)&&((!(a27==1)&&((a15==1)&&(((a12==10)&&(!(a5==1)&&(input==5)))&&(a3==4))))&&!(a22==1)))&&!(a0==1)))&&(a4==1)))){ + a4 = 0; + a5 = 1; + a12 = 9; + a27 = 1; + return 26; + } else if(((a6==1)&&(((a5==1)&&(((a4==1)&&(((((a12==9)&&((a20==1)&&((input==3)&&((a18==1)||!(a18==1)))))&&(a3==7))&&(a22==1))&&(a15==1)))&&(a27==1)))&&(a0==1)))){ + a3 = 8; + a18 = 0; + a5 = 0; + a4 = 0; + a15 = 0; + a12 = 11; + a22 = 0; + return 21; + } else if(((((((((((((a5==1)&&(!(a22==1)&&!(a18==1)))&&!(a15==1))&&!(a4==1))&&(a3==8))&&!(a6==1))||((a6==1)&&((a3==4)&&((a4==1)&&((!(a5==1)&&((a22==1)&&(a18==1)))&&(a15==1))))))&&(input==6))&&(a0==1))&&(a27==1))&&(a12==11))&&(a20==1))){ + a18 = 1; + a22 = 1; + a4 = 1; + a12 = 8; + a6 = 1; + a5 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if((!(a27==1)&&(!(a6==1)&&(((((a5==1)&&(!(a4==1)&&(!(a0==1)&&((input==3)&&(((a3==6)&&((a22==1)&&!(a18==1)))||(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6))))))))&&(a20==1))&&(a15==1))&&(a12==10))))){ + a3 = 5; + a18 = 0; + a22 = 0; + a27 = 1; + a12 = 8; + a0 = 1; + a4 = 1; + a6 = 1; + return 26; + } else if(((a5==1)&&((((a3==5)&&((a22==1)&&((((((a20==1)&&(!(a6==1)&&(input==5)))&&!(a15==1))&&!(a18==1))&&(a4==1))&&(a0==1))))&&(a27==1))&&(a12==11)))){ + a18 = 1; + a3 = 4; + a15 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if((!(a27==1)&&((a0==1)&&((a15==1)&&((!(a5==1)&&((a20==1)&&((input==5)&&(((((a4==1)&&(!(a22==1)&&!(a18==1)))&&(a3==8))&&!(a6==1))||((a6==1)&&((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1)))))))))&&(a12==8)))))){ + a15 = 0; + a18 = 0; + a6 = 1; + a22 = 1; + a12 = 11; + a3 = 8; + a4 = 0; + a27 = 1; + return 21; + } else if(((a12==10)&&(((a20==1)&&(!(a6==1)&&((a4==1)&&((a0==1)&&(((((a27==1)&&((input==1)&&!(a22==1)))&&(a15==1))&&(a18==1))&&!(a5==1))))))&&(a3==6)))){ + a18 = 0; + a15 = 0; + a5 = 1; + return -1; + } else if(((a12==8)&&((!(a18==1)&&(!(a5==1)&&(((!(a27==1)&&((a6==1)&&(((a0==1)&&((input==4)&&(a22==1)))&&(a20==1))))&&(a3==6))&&(a15==1))))&&(a4==1)))){ + a22 = 0; + a3 = 4; + a18 = 1; + a4 = 0; + a27 = 1; + a12 = 12; + return 24; + } else if(((((a12==11)&&(!(a4==1)&&((!(a0==1)&&((a3==7)&&((((input==5)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a27==1))&&(a20==1))))&&!(a6==1))))&&!(a5==1))&&!(a15==1))){ + a12 = 10; + a22 = 1; + a4 = 1; + a18 = 1; + a3 = 5; + a15 = 1; + a0 = 1; + a5 = 1; + return -1; + } else if(((a12==8)&&((a27==1)&&((a20==1)&&((((a6==1)&&((((input==4)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==6))))&&!(a15==1))&&!(a0==1)))&&!(a5==1))&&(a4==1)))))){ + a0 = 1; + a5 = 1; + a22 = 1; + a18 = 0; + a3 = 8; + a12 = 9; + a6 = 0; + return 21; + } else if((((!(a27==1)&&(((a20==1)&&((!(a0==1)&&(((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==2))&&!(a6==1))&&(a12==10)))&&(a4==1)))&&(a5==1)))&&(a15==1))&&(a3==7))){ + a22 = 0; + a27 = 1; + a18 = 1; + a3 = 5; + a0 = 1; + a12 = 8; + return -1; + } else if((!(a5==1)&&(((a15==1)&&((a3==7)&&((((a12==10)&&(!(a4==1)&&(((input==5)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&!(a27==1))))&&!(a0==1))&&(a20==1))))&&!(a6==1)))){ + a5 = 1; + a18 = 1; + a12 = 9; + a3 = 8; + a15 = 0; + a22 = 0; + return -1; + } else if((!(a0==1)&&(((!(a4==1)&&(((a20==1)&&(!(a15==1)&&(!(a6==1)&&((((a3==5)&&((a22==1)&&!(a18==1)))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5))))&&(input==2)))))&&!(a27==1)))&&(a12==10))&&(a5==1)))){ + a5 = 0; + a27 = 1; + a0 = 1; + a18 = 0; + a3 = 8; + a6 = 1; + a22 = 1; + a12 = 12; + a15 = 1; + return 26; + } else if(((a12==10)&&((a20==1)&&(!(a27==1)&&(!(a0==1)&&(!(a6==1)&&(((a15==1)&&((!(a5==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==4)))&&!(a4==1)))&&(a3==7)))))))){ + a4 = 1; + a15 = 0; + a0 = 1; + a12 = 11; + a18 = 0; + a22 = 1; + a27 = 1; + a3 = 4; + return -1; + } else if(((!(a5==1)&&((a20==1)&&(((!(a4==1)&&((!(a6==1)&&(!(a0==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==4))))&&(a27==1)))&&(a12==8))&&(a3==5))))&&!(a15==1))){ + a4 = 1; + a3 = 8; + a18 = 0; + a0 = 1; + a22 = 0; + a5 = 1; + a12 = 12; + return -1; + } else if((!(a15==1)&&((a20==1)&&(!(a5==1)&&(((a12==9)&&(((a4==1)&&((!(a6==1)&&((input==2)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))&&(a3==4)))&&!(a27==1)))&&(a0==1)))))){ + a15 = 1; + a18 = 0; + a5 = 1; + a4 = 0; + a22 = 1; + return -1; + } else if((((a3==6)&&((!(a5==1)&&((((a12==10)&&(!(a6==1)&&(((a18==1)&&((a4==1)&&(input==3)))&&(a27==1))))&&(a0==1))&&(a15==1)))&&(a22==1)))&&(a20==1))){ + a3 = 4; + a27 = 0; + a4 = 0; + a22 = 0; + a5 = 1; + return 21; + } else if((!(a27==1)&&((a3==7)&&(((a12==10)&&((a20==1)&&(((a6==1)&&(((a5==1)&&((input==6)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&(a15==1)))&&(a0==1))))&&(a4==1))))){ + if((a27==1)){ + a0 = 0; + a22 = 0; + a3 = 4; + a18 = 0; + a15 = 0; + a6 = 0; + a27 = 1; + a12 = 9; + }else{ + a6 = 0; + a3 = 5; + a4 = 0; + a12 = 11; + a18 = 1; + a22 = 1; + } + return 26; + } else if(((a27==1)&&(((!(a0==1)&&((a12==9)&&(((a20==1)&&((a6==1)&&((((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==2))))&&!(a15==1))))&&(a5==1))&&!(a4==1)))){ + a15 = 1; + a22 = 1; + a4 = 1; + a18 = 1; + a5 = 0; + a0 = 1; + a3 = 8; + a12 = 10; + a6 = 0; + return 26; + } else if(((a27==1)&&((((a20==1)&&((a5==1)&&(!(a0==1)&&((((a3==7)&&(!(a15==1)&&(!(a6==1)&&(input==5))))&&(a12==8))&&(a4==1)))))&&(a22==1))&&!(a18==1)))){ + a15 = 1; + a0 = 1; + a3 = 4; + a18 = 1; + a6 = 1; + return -1; + } else if(((a20==1)&&(!(a0==1)&&(!(a5==1)&&((a6==1)&&(((a27==1)&&((!(a15==1)&&(((((!(a22==1)&&(a18==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==6)))&&(a12==9)))&&(a4==1))))))){ + a12 = 8; + a0 = 1; + a15 = 1; + a18 = 1; + a22 = 1; + a5 = 1; + a3 = 4; + return -1; + } else if(((a27==1)&&(((((a20==1)&&(((a12==11)&&(((input==3)&&((((a22==1)&&!(a18==1))&&(a3==6))||(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))))&&(a15==1)))&&!(a6==1)))&&(a0==1))&&!(a4==1))&&(a5==1)))){ + a22 = 0; + a6 = 1; + a18 = 1; + a3 = 8; + a4 = 1; + return -1; + } else if((!(a6==1)&&(!(a27==1)&&((((!(a22==1)&&(((((a15==1)&&((input==1)&&(a20==1)))&&!(a18==1))&&(a4==1))&&!(a5==1)))&&(a12==11))&&(a3==5))&&(a0==1))))){ + a12 = 10; + a3 = 4; + a15 = 0; + a4 = 0; + a5 = 1; + a18 = 1; + return -1; + } else if((((((a15==1)&&((((!(a27==1)&&((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==6)))&&!(a0==1))&&(a5==1))&&(a6==1)))&&!(a4==1))&&(a20==1))&&(a12==11))){ + a22 = 1; + a12 = 8; + a27 = 1; + a18 = 1; + a3 = 5; + a0 = 1; + return 21; + } else if((((((a20==1)&&(((a12==10)&&(!(a0==1)&&(!(a4==1)&&((((a3==4)&&(input==6))&&!(a27==1))&&(a22==1)))))&&(a15==1)))&&!(a5==1))&&(a6==1))&&(a18==1))){ + a0 = 1; + a18 = 0; + a27 = 1; + a5 = 1; + a3 = 5; + a6 = 0; + a12 = 8; + a4 = 1; + return 26; + } else if((((((!(a27==1)&&((a4==1)&&((a12==8)&&(((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==2))&&!(a15==1)))))&&(a20==1))&&!(a5==1))&&(a6==1))&&(a0==1))){ + a4 = 0; + a3 = 7; + a6 = 0; + a22 = 0; + a18 = 0; + return 26; + } else if(((((((a27==1)&&(!(a4==1)&&((a0==1)&&((a20==1)&&((a5==1)&&(!(a22==1)&&(!(a18==1)&&(input==2))))))))&&(a12==12))&&(a3==5))&&!(a6==1))&&!(a15==1))){ + a22 = 1; + a12 = 9; + a6 = 1; + a18 = 1; + a15 = 1; + return 21; + } else if(((((((a0==1)&&((a27==1)&&(((a6==1)&&((a22==1)&&((((a18==1)||!(a18==1))&&(input==5))&&!(a5==1))))&&(a3==7))))&&(a15==1))&&(a20==1))&&!(a4==1))&&(a12==12))){ + a4 = 1; + a12 = 8; + a22 = 0; + a3 = 5; + a27 = 0; + a5 = 1; + a18 = 1; + a6 = 0; + return 26; + } else if(((a12==9)&&((!(a5==1)&&(!(a27==1)&&((a0==1)&&((a20==1)&&((((((a3==6)&&(input==1))&&(a15==1))&&!(a18==1))&&!(a4==1))&&(a22==1))))))&&(a6==1)))){ + return 24; + } else if((((a5==1)&&(((((!(a0==1)&&((a20==1)&&(((input==2)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a4==1))))&&(a27==1))&&(a12==11))&&(a15==1))&&!(a6==1)))&&(a3==5))){ + a3 = 4; + a12 = 8; + a18 = 1; + a22 = 1; + a6 = 1; + a0 = 1; + return -1; + } else if(((a12==11)&&(((a20==1)&&((a5==1)&&((((a6==1)&&(!(a4==1)&&((a22==1)&&(!(a27==1)&&((input==5)&&((a18==1)||!(a18==1)))))))&&(a3==6))&&(a0==1))))&&!(a15==1)))){ + a18 = 1; + a15 = 1; + a27 = 1; + a12 = 8; + a4 = 1; + a3 = 4; + return -1; + } else if(((a27==1)&&(((!(a15==1)&&((a12==9)&&((a0==1)&&((((a3==4)&&((input==1)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&!(a6==1))&&(a20==1)))))&&!(a5==1))&&!(a4==1)))){ + a22 = 1; + a4 = 1; + a5 = 1; + a12 = 8; + a6 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if(((a12==11)&&(!(a0==1)&&(!(a27==1)&&((((a20==1)&&((a3==5)&&(((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==3))&&(a15==1))&&(a4==1))))&&!(a6==1))&&!(a5==1)))))){ + a18 = 0; + a4 = 0; + a3 = 8; + a22 = 1; + return 21; + } else if((((a12==10)&&((a15==1)&&((((a3==6)&&((a0==1)&&(!(a5==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&!(a4==1)))))&&(a20==1))&&!(a6==1))))&&(a27==1))){ + a6 = 1; + a4 = 1; + a0 = 0; + a22 = 0; + a15 = 0; + a3 = 7; + a18 = 1; + return 26; + } else if(((((a5==1)&&(!(a15==1)&&((((a3==4)&&((a12==11)&&((a20==1)&&((input==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))))&&(a4==1))&&!(a27==1))))&&(a0==1))&&(a6==1))){ + a15 = 1; + a12 = 8; + a27 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if((!(a0==1)&&((((((((a5==1)&&((((a3==8)&&((a22==1)&&!(a18==1)))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1)))))&&(input==2)))&&!(a27==1))&&(a20==1))&&(a6==1))&&(a4==1))&&(a15==1))&&(a12==10)))){ + a5 = 0; + a22 = 0; + a12 = 11; + a15 = 0; + a3 = 6; + a18 = 1; + return 26; + } else if(((a22==1)&&((a3==7)&&(((a20==1)&&((a0==1)&&(((a4==1)&&((a15==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&(a5==1))&&!(a27==1))))&&(a12==11))))&&!(a6==1))))){ + a27 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + a6 = 1; + return -1; + } else if(((((a5==1)&&(!(a6==1)&&(((((a20==1)&&((input==2)&&((((a22==1)&&(a18==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a18==1)&&!(a22==1)))))))&&(a0==1))&&(a4==1))&&(a12==9))))&&!(a27==1))&&!(a15==1))){ + a3 = 5; + a12 = 11; + a5 = 0; + a6 = 1; + a15 = 1; + a22 = 1; + a4 = 0; + a18 = 1; + a27 = 1; + return 26; + } else if(((((a20==1)&&(!(a27==1)&&((((a3==8)&&((a12==10)&&(((input==6)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&(a0==1))))&&(a4==1))&&(a6==1))))&&(a15==1))&&(a5==1))){ + a27 = 1; + a18 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + return -1; + } else if(((((a20==1)&&((a3==6)&&((((!(a27==1)&&(!(a4==1)&&((input==4)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))&&(a15==1))&&(a5==1))&&(a6==1))))&&!(a0==1))&&(a12==9))){ + a18 = 1; + a6 = 0; + a15 = 0; + a5 = 0; + a22 = 1; + return -1; + } else if((((a12==9)&&(((((((a0==1)&&(((input==3)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a20==1)))&&(a15==1))&&!(a4==1))&&!(a27==1))&&!(a5==1))&&(a6==1)))&&(a3==5))){ + if((a3==6)){ + a0 = 0; + a4 = 1; + a22 = 1; + a6 = 0; + a27 = 1; + a5 = 1; + a18 = 1; + a3 = 7; + a12 = 10; + }else{ + a27 = 1; + a4 = 1; + a3 = 6; + a0 = 0; + a22 = 1; + a12 = 8; + a18 = 0; + } + return 26; + } else if(((a3==7)&&(((a4==1)&&((((!(a5==1)&&(((a20==1)&&((input==1)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))))&&!(a0==1)))&&!(a15==1))&&(a6==1))&&(a12==10)))&&(a27==1)))){ + a4 = 0; + a6 = 0; + a18 = 0; + a22 = 1; + a15 = 1; + a0 = 1; + a5 = 1; + return -1; + } else if(((a5==1)&&(!(a15==1)&&((!(a4==1)&&((a0==1)&&((((!(a22==1)&&(((input==6)&&(a3==8))&&!(a6==1)))&&(a12==12))&&(a20==1))&&(a18==1))))&&!(a27==1))))){ + a12 = 8; + a6 = 1; + a15 = 1; + a4 = 1; + a22 = 1; + a3 = 4; + a27 = 1; + return -1; + } else if((!(a4==1)&&((((a20==1)&&(((a5==1)&&((!(a0==1)&&(((a6==1)&&((input==4)&&(a15==1)))&&(a22==1)))&&!(a18==1)))&&(a12==8)))&&!(a27==1))&&(a3==5)))){ + a18 = 1; + a27 = 1; + a4 = 1; + a6 = 0; + a22 = 0; + a3 = 8; + a0 = 1; + return 21; + } return calculate_output18(input); + } + + int calculate_output18(int input) { + if((!(a22==1)&&((((!(a6==1)&&(!(a5==1)&&((!(a0==1)&&((((input==3)&&((a18==1)||!(a18==1)))&&(a4==1))&&(a20==1)))&&!(a27==1))))&&(a12==11))&&!(a15==1))&&(a3==5)))){ + if((a18==1)){ + a0 = 1; + a6 = 1; + a3 = 6; + a12 = 9; + a15 = 1; + a4 = 0; + a22 = 1; + a18 = 1; + }else{ + a4 = 0; + a18 = 0; + a0 = 1; + a5 = 1; + } + return -1; + } else if((!(a4==1)&&(((!(a5==1)&&(((a12==12)&&((a27==1)&&(((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==5))&&(a20==1))))&&(a6==1)))&&!(a15==1))&&!(a0==1)))){ + if((a3==5)){ + a18 = 0; + a0 = 1; + a3 = 6; + a5 = 1; + a4 = 1; + a22 = 1; + a12 = 8; + a15 = 1; + }else{ + a15 = 1; + a12 = 8; + a3 = 8; + a0 = 1; + a6 = 0; + a5 = 1; + a4 = 1; + a22 = 0; + a18 = 0; + } + return 26; + } else if(((a27==1)&&(((a3==6)&&((!(a0==1)&&(((a15==1)&&((a20==1)&&(!(a5==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==6)))))&&!(a4==1)))&&(a12==10)))&&!(a6==1)))){ + a12 = 11; + a15 = 0; + a18 = 1; + a4 = 1; + a22 = 1; + return 26; + } else if((((!(a6==1)&&(((a0==1)&&((a18==1)&&((a27==1)&&(((a4==1)&&(!(a5==1)&&((input==5)&&(a3==8))))&&(a15==1)))))&&(a12==9)))&&(a20==1))&&!(a22==1))){ + a22 = 1; + a5 = 1; + a0 = 0; + a3 = 4; + a18 = 0; + return 21; + } else if(((((!(a0==1)&&((a27==1)&&(!(a15==1)&&((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6))&&(a3==8))&&!(a5==1))&&(a20==1)))))&&!(a6==1))&&(a12==10))&&(a4==1))){ + a0 = 1; + a18 = 0; + a12 = 11; + a22 = 1; + a5 = 1; + return 21; + } else if(((a18==1)&&((((a20==1)&&((a0==1)&&(!(a6==1)&&((a12==9)&&(((a4==1)&&(((input==6)&&(a3==8))&&!(a5==1)))&&!(a22==1))))))&&(a27==1))&&(a15==1)))){ + a6 = 1; + a3 = 5; + a12 = 8; + a27 = 0; + return 26; + } else if(((((!(a4==1)&&(!(a27==1)&&(((a0==1)&&((a3==7)&&((a6==1)&&((input==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))))&&(a12==8))))&&!(a15==1))&&(a5==1))&&(a20==1))){ + a3 = 4; + a27 = 1; + a12 = 12; + a18 = 0; + a22 = 1; + return -1; + } else if(((!(a6==1)&&(!(a18==1)&&(((a0==1)&&(!(a4==1)&&(((a5==1)&&(((a12==8)&&((a15==1)&&(input==1)))&&(a20==1)))&&!(a27==1))))&&!(a22==1))))&&(a3==7))){ + a4 = 1; + a3 = 5; + a22 = 1; + a6 = 1; + return 26; + } else if((!(a5==1)&&((a15==1)&&((a6==1)&&((a0==1)&&((a18==1)&&(!(a27==1)&&((((a3==6)&&((a20==1)&&(!(a4==1)&&(input==6))))&&(a22==1))&&(a12==9))))))))){ + a15 = 0; + a4 = 1; + a6 = 0; + return 24; + } else if((!(a0==1)&&((a4==1)&&((a20==1)&&((a27==1)&&(!(a5==1)&&(!(a6==1)&&((a12==12)&&(!(a15==1)&&((((a3==7)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1)))))&&(input==2))))))))))){ + a22 = 0; + a18 = 0; + a15 = 1; + a12 = 8; + a5 = 1; + a3 = 6; + a0 = 1; + return 21; + } else if((!(a4==1)&&(((!(a27==1)&&(((((a5==1)&&((input==5)&&(((a3==7)&&((a18==1)&&(a22==1)))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==6))))))&&(a12==11))&&(a20==1))&&(a15==1)))&&(a0==1))&&!(a6==1)))){ + a27 = 1; + a3 = 4; + a6 = 1; + a22 = 0; + a18 = 0; + return -1; + } else if((!(a6==1)&&((((a27==1)&&((a4==1)&&(((a5==1)&&(((((a3==6)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5))))&&(input==2))&&(a20==1)))&&(a12==8))))&&!(a0==1))&&(a15==1)))){ + a18 = 0; + a0 = 1; + a12 = 10; + a3 = 6; + a22 = 0; + return 21; + } else if(((a6==1)&&((a27==1)&&(((a3==5)&&((a0==1)&&((((a15==1)&&((!(a4==1)&&((input==4)&&(a22==1)))&&(a18==1)))&&(a12==10))&&(a20==1))))&&(a5==1))))){ + a3 = 8; + a4 = 1; + a18 = 0; + return -1; + } else if(((a22==1)&&(((((a15==1)&&((((a12==9)&&((a5==1)&&(((a6==1)&&(input==1))&&(a20==1))))&&(a0==1))&&(a3==5)))&&!(a27==1))&&(a18==1))&&(a4==1)))){ + a6 = 0; + a5 = 0; + a22 = 0; + a0 = 0; + a3 = 8; + a18 = 0; + a27 = 1; + return 21; + } else if(((!(a6==1)&&((((a12==8)&&(!(a4==1)&&(((a15==1)&&((input==1)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a22==1)&&(a18==1))))))&&(a20==1))))&&(a0==1))&&(a5==1)))&&!(a27==1))){ + if((a15==1)){ + a22 = 1; + a3 = 4; + a0 = 0; + a27 = 1; + a18 = 1; + a12 = 11; + }else{ + a27 = 1; + a4 = 1; + a5 = 0; + a3 = 6; + a15 = 0; + a12 = 10; + a18 = 1; + a22 = 1; + } + return 21; + } else if((((a5==1)&&((a12==11)&&((a3==5)&&(!(a4==1)&&((((((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a6==1))&&!(a27==1))&&(a20==1))&&(a0==1))))))&&!(a15==1))){ + a4 = 1; + a6 = 0; + a27 = 1; + a3 = 6; + a15 = 1; + a12 = 8; + a18 = 1; + a22 = 0; + return -1; + } else if((!(a15==1)&&(((a20==1)&&((a12==11)&&((!(a0==1)&&(!(a6==1)&&(((a3==5)&&(!(a22==1)&&(((a18==1)||!(a18==1))&&(input==2))))&&(a4==1))))&&!(a27==1))))&&!(a5==1)))){ + if((a12==8)){ + a5 = 1; + a0 = 1; + a18 = 0; + a27 = 1; + a12 = 8; + a15 = 1; + a6 = 1; + a3 = 6; + }else{ + a5 = 1; + a0 = 1; + a4 = 0; + a15 = 1; + a27 = 1; + a6 = 1; + a12 = 8; + a18 = 0; + a3 = 6; + } + return -1; + } else if((((a15==1)&&((a4==1)&&(((a20==1)&&(!(a0==1)&&((!(a22==1)&&(((a12==9)&&((input==1)&&(a27==1)))&&(a3==5)))&&(a18==1))))&&(a6==1))))&&!(a5==1))){ + a3 = 6; + a4 = 0; + a5 = 1; + a12 = 12; + return 26; + } else if(((((a5==1)&&((!(a15==1)&&((!(a4==1)&&(((input==5)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))||(((a22==1)&&!(a18==1))&&(a3==7))))&&!(a0==1)))&&(a27==1)))&&(a12==12)))&&!(a6==1))&&(a20==1))){ + if((a27==1)){ + a3 = 4; + a12 = 10; + a6 = 1; + a27 = 0; + a5 = 0; + a22 = 1; + a15 = 1; + a18 = 0; + a0 = 1; + }else{ + a0 = 1; + a3 = 7; + a22 = 0; + a15 = 1; + a6 = 1; + a18 = 1; + a12 = 8; + } + return -1; + } else if(((a3==5)&&(!(a6==1)&&(!(a18==1)&&((a20==1)&&(!(a0==1)&&((((a4==1)&&((!(a22==1)&&((a12==11)&&(input==4)))&&(a5==1)))&&!(a15==1))&&(a27==1)))))))){ + a5 = 0; + a3 = 7; + a0 = 1; + a15 = 1; + a27 = 0; + return -1; + } else if(((a4==1)&&((a22==1)&&(((a15==1)&&(((a12==12)&&(!(a0==1)&&(!(a5==1)&&((((a6==1)&&(input==1))&&(a27==1))&&(a20==1)))))&&(a3==8)))&&!(a18==1))))){ + if((a12==12)){ + a4 = 0; + a0 = 1; + a5 = 1; + a3 = 4; + a12 = 8; + }else{ + a15 = 0; + a27 = 0; + a4 = 0; + a12 = 9; + a3 = 7; + a6 = 0; + a18 = 1; + } + return 21; + } else if(((!(a6==1)&&(((!(a15==1)&&((a18==1)&&((a12==10)&&(((a5==1)&&(((a4==1)&&(input==6))&&(a22==1)))&&(a3==7)))))&&(a20==1))&&(a27==1)))&&(a0==1))){ + a3 = 6; + a4 = 0; + a18 = 0; + a6 = 1; + a22 = 0; + a0 = 0; + return 26; + } else if(((!(a4==1)&&(((a12==10)&&((!(a0==1)&&((a3==4)&&(!(a27==1)&&(!(a6==1)&&((input==3)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))))&&(a20==1)))&&!(a15==1)))&&(a5==1))){ + a18 = 0; + a15 = 1; + a3 = 8; + a0 = 1; + a12 = 8; + a4 = 1; + a22 = 0; + a27 = 1; + return -1; + } else if(((a22==1)&&(!(a27==1)&&(((a6==1)&&((a3==5)&&((a12==10)&&(((a20==1)&&((!(a0==1)&&(!(a15==1)&&(input==4)))&&!(a4==1)))&&!(a18==1)))))&&(a5==1))))){ + if((a27==1)){ + a12 = 9; + a4 = 1; + a5 = 0; + a27 = 1; + a6 = 0; + }else{ + a0 = 1; + a12 = 8; + a22 = 0; + a15 = 1; + a27 = 1; + a4 = 1; + a3 = 4; + } + return 26; + } else if(((a12==12)&&((a20==1)&&(((a5==1)&&((!(a4==1)&&((a6==1)&&(!(a15==1)&&(!(a0==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==2))))))&&(a27==1)))&&(a3==8))))){ + if((a18==1)){ + a22 = 0; + a3 = 5; + a12 = 8; + a18 = 1; + a0 = 1; + }else{ + a22 = 1; + a6 = 0; + a12 = 10; + a3 = 6; + a18 = 0; + a27 = 0; + } + return -1; + } else if((!(a27==1)&&((a3==8)&&((((a12==10)&&((!(a4==1)&&((a5==1)&&(((a6==1)&&(!(a0==1)&&(input==2)))&&!(a22==1))))&&(a15==1)))&&(a20==1))&&(a18==1))))){ + if((a4==1)){ + a18 = 0; + a0 = 1; + a6 = 0; + a12 = 9; + a22 = 1; + a3 = 4; + a4 = 1; + }else{ + a0 = 1; + a3 = 5; + a4 = 1; + a12 = 12; + a27 = 1; + a15 = 0; + a5 = 0; + } + return 21; + } else if((!(a6==1)&&((((a18==1)&&((a3==7)&&(((a20==1)&&((a22==1)&&(((!(a15==1)&&(input==6))&&!(a4==1))&&(a12==10))))&&(a5==1))))&&(a27==1))&&(a0==1)))){ + a15 = 1; + a3 = 8; + return -1; + } else if(((a20==1)&&(((a15==1)&&((!(a6==1)&&(((a27==1)&&(!(a4==1)&&((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==4))&&!(a5==1))))&&(a12==12)))&&(a3==8)))&&(a0==1)))){ + a3 = 6; + a12 = 10; + a18 = 0; + a22 = 1; + a0 = 0; + a15 = 0; + return 24; + } else if((((a27==1)&&((a22==1)&&(!(a0==1)&&((a6==1)&&(((a3==8)&&(!(a5==1)&&((a18==1)&&((a15==1)&&((input==3)&&(a4==1))))))&&(a12==12))))))&&(a20==1))){ + if((a15==1)){ + a0 = 1; + a6 = 0; + a3 = 7; + a12 = 8; + a5 = 1; + }else{ + a12 = 10; + a18 = 0; + a27 = 0; + a0 = 1; + } + return -1; + } else if(((a12==12)&&((a6==1)&&((a4==1)&&((a27==1)&&((a15==1)&&((((a5==1)&&(((input==2)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a20==1)))&&(a3==7))&&!(a0==1)))))))){ + a22 = 1; + a0 = 1; + a6 = 0; + a3 = 5; + a18 = 0; + return -1; + } else if((!(a22==1)&&(!(a27==1)&&((a3==5)&&((a5==1)&&(((((((((a18==1)||!(a18==1))&&(input==5))&&(a12==12))&&(a20==1))&&(a0==1))&&!(a15==1))&&(a6==1))&&!(a4==1))))))){ + a4 = 1; + a22 = 1; + a18 = 0; + a5 = 0; + a12 = 11; + return -1; + } else if((((((a0==1)&&((((((((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1)))&&(input==3))&&(a12==12))&&(a4==1))&&(a27==1)))&&(a20==1))&&!(a5==1))&&(a15==1))){ + a5 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + a6 = 1; + return -1; + } else if(((a12==10)&&(((((((((((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1)))))&&(input==1))&&(a20==1))&&(a15==1))&&(a4==1))&&!(a0==1))&&(a27==1))&&!(a5==1)))){ + a18 = 1; + a12 = 9; + a27 = 0; + a0 = 1; + a6 = 0; + a22 = 0; + a3 = 8; + return -1; + } else if((((a20==1)&&((a3==5)&&(!(a5==1)&&(((a12==10)&&(!(a0==1)&&((a22==1)&&((!(a4==1)&&((input==6)&&!(a6==1)))&&!(a15==1)))))&&(a27==1)))))&&(a18==1))){ + a3 = 4; + a0 = 1; + a18 = 0; + return 26; + } else if(((((((a27==1)&&(((!(a6==1)&&((((input==3)&&((a18==1)||!(a18==1)))&&!(a15==1))&&(a0==1)))&&!(a22==1))&&!(a4==1)))&&(a20==1))&&(a3==6))&&!(a5==1))&&(a12==12))){ + a15 = 1; + a22 = 1; + a18 = 1; + a6 = 1; + a0 = 0; + a3 = 7; + a12 = 8; + return -1; + } else if(((a6==1)&&((a12==9)&&((((a0==1)&&((a4==1)&&((a5==1)&&((a20==1)&&((((a3==8)&&((a22==1)&&!(a18==1)))||(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1)))))&&(input==4))))))&&(a27==1))&&(a15==1))))){ + a22 = 0; + a5 = 0; + a6 = 0; + a15 = 0; + a12 = 11; + a18 = 1; + a3 = 8; + a4 = 0; + return 21; + } else if((((((((a3==4)&&((((a4==1)&&(((input==1)&&(a6==1))&&!(a15==1)))&&(a20==1))&&!(a0==1)))&&(a12==10))&&!(a27==1))&&(a22==1))&&(a18==1))&&!(a5==1))){ + if((a3==6)){ + a18 = 0; + a0 = 1; + a12 = 8; + }else{ + a15 = 1; + a5 = 1; + a27 = 1; + } + return 21; + } else if((!(a4==1)&&((((a15==1)&&((a3==4)&&((a27==1)&&(((!(a6==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==4)))&&(a12==9))&&(a20==1)))))&&(a5==1))&&!(a0==1)))){ + a12 = 10; + a0 = 1; + a22 = 0; + a27 = 0; + a18 = 1; + a4 = 1; + a15 = 0; + a6 = 1; + return 21; + } else if((!(a15==1)&&((!(a4==1)&&((((a12==9)&&(!(a27==1)&&((a20==1)&&((a5==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6))))))&&!(a0==1))&&(a6==1)))&&(a3==8)))){ + a5 = 0; + a18 = 0; + a12 = 8; + a27 = 1; + a3 = 5; + a22 = 0; + a0 = 1; + return -1; + } else if(((((a15==1)&&(((a4==1)&&((((!(a0==1)&&((a5==1)&&((a3==7)&&(input==4))))&&(a20==1))&&!(a27==1))&&(a18==1)))&&(a12==10)))&&!(a22==1))&&(a6==1))){ + if((a12==8)){ + a22 = 1; + a3 = 8; + a0 = 1; + a4 = 0; + a12 = 8; + a27 = 1; + }else{ + a5 = 0; + a18 = 0; + a4 = 0; + a6 = 0; + a12 = 9; + a22 = 1; + a27 = 1; + } + return 26; + } else if(((((((!(a6==1)&&((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5))&&(a15==1))&&(a5==1))&&!(a0==1)))&&(a4==1))&&(a12==12))&&(a27==1))&&(a20==1))&&(a3==8))){ + a12 = 10; + a27 = 0; + a22 = 1; + a0 = 1; + a6 = 1; + a3 = 7; + a18 = 1; + a4 = 0; + return 26; + } else if((((a20==1)&&((((a4==1)&&(((!(a15==1)&&(((a3==8)&&((input==6)&&((a18==1)||!(a18==1))))&&(a22==1)))&&!(a5==1))&&(a27==1)))&&!(a0==1))&&(a12==11)))&&(a6==1))){ + a5 = 1; + a18 = 1; + a15 = 1; + a0 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((((a3==7)&&(!(a0==1)&&((a15==1)&&(((a12==10)&&((a20==1)&&(((input==6)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&!(a4==1))))&&(a5==1)))))&&(a27==1))&&!(a6==1))){ + a6 = 1; + a4 = 1; + a0 = 1; + a15 = 0; + a22 = 1; + a12 = 12; + a18 = 0; + return 26; + } else if(((a20==1)&&(!(a27==1)&&(!(a5==1)&&((a15==1)&&(((a12==8)&&(!(a0==1)&&((((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1)))&&(input==5))))&&!(a4==1))))))){ + if((a27==1)){ + a4 = 1; + a0 = 1; + a6 = 1; + a18 = 1; + a22 = 1; + a27 = 1; + a5 = 1; + a3 = 8; + }else{ + a3 = 5; + a6 = 0; + a18 = 1; + a0 = 1; + a12 = 10; + a22 = 0; + } + return 21; + } else if(((((!(a15==1)&&(((((!(a0==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a3==5)))&&!(a4==1))&&(a22==1))&&(a27==1))&&(a20==1)))&&(a6==1))&&(a12==8))&&!(a5==1))){ + a15 = 1; + a0 = 1; + a5 = 1; + a18 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if((((a20==1)&&(((a6==1)&&(((a12==8)&&(((a4==1)&&(!(a5==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==5))))&&!(a27==1)))&&(a0==1)))&&(a3==6)))&&!(a15==1))){ + a3 = 4; + a5 = 1; + a15 = 1; + a18 = 0; + a22 = 1; + return -1; + } else if((((a20==1)&&((a18==1)&&((((a12==8)&&(((a4==1)&&((((input==4)&&!(a27==1))&&(a0==1))&&!(a22==1)))&&(a5==1)))&&!(a6==1))&&!(a15==1))))&&(a3==7))){ + a27 = 1; + a3 = 4; + a22 = 1; + a15 = 1; + a6 = 1; + return -1; + } else if(((((a20==1)&&((a12==9)&&((a0==1)&&((((((input==5)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a27==1))&&!(a4==1))&&!(a5==1))&&!(a15==1)))))&&(a3==4))&&!(a6==1))){ + a12 = 10; + a22 = 1; + a3 = 6; + a0 = 0; + a18 = 0; + return 21; + } else if((((!(a5==1)&&(!(a15==1)&&((a12==9)&&((a4==1)&&((a6==1)&&((a0==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))||((a3==5)&&(!(a18==1)&&(a22==1))))&&(input==3))))))))&&(a20==1))&&!(a27==1))){ + if((a20==1)){ + a5 = 1; + a3 = 8; + a0 = 0; + a12 = 10; + a18 = 0; + a22 = 0; + a27 = 1; + }else{ + a22 = 1; + a5 = 1; + a12 = 11; + a6 = 0; + a18 = 1; + a3 = 6; + a27 = 1; + } + return 21; + } else if(((((a0==1)&&((a15==1)&&((a12==11)&&((a20==1)&&((a6==1)&&(!(a5==1)&&((input==1)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1)))))))))))&&(a27==1))&&(a4==1))){ + a6 = 0; + a4 = 0; + a5 = 1; + a3 = 8; + a18 = 1; + a22 = 0; + return 24; + } else if(((((a6==1)&&((a20==1)&&((a12==8)&&((a4==1)&&((a3==6)&&(!(a5==1)&&((a15==1)&&((!(a22==1)&&(input==5))&&!(a18==1)))))))))&&(a0==1))&&!(a27==1))){ + a18 = 1; + a22 = 1; + a3 = 4; + a27 = 1; + a5 = 1; + return -1; + } else if((((a15==1)&&((a27==1)&&(!(a5==1)&&((((((((a3==6)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5))))&&(input==3))&&(a12==9))&&!(a6==1))&&!(a4==1))&&(a0==1)))))&&(a20==1))){ + a6 = 1; + a18 = 1; + a15 = 0; + a4 = 1; + a22 = 1; + a12 = 8; + a27 = 0; + a3 = 4; + return 26; + } else if((!(a4==1)&&((a12==11)&&(((a20==1)&&((((a27==1)&&(!(a6==1)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==3))))&&!(a15==1))&&!(a5==1)))&&(a0==1))))){ + a3 = 5; + a18 = 1; + a22 = 0; + a27 = 0; + return 21; + } else if(((a20==1)&&((a12==8)&&(!(a4==1)&&((a3==7)&&((!(a0==1)&&(!(a15==1)&&((a6==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a27==1)))))&&!(a5==1))))))){ + a0 = 1; + a22 = 1; + a4 = 1; + a18 = 1; + a3 = 4; + a5 = 1; + a15 = 1; + return -1; + } else if((((a3==5)&&(((a20==1)&&(((a22==1)&&(((!(a5==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&!(a0==1)))&&!(a27==1))&&!(a15==1)))&&(a12==10)))&&(a4==1)))&&(a6==1))){ + if((a20==1)){ + a3 = 4; + a18 = 0; + a4 = 0; + a12 = 8; + }else{ + a22 = 0; + a3 = 4; + a5 = 1; + a27 = 1; + a18 = 1; + a12 = 8; + a4 = 0; + a15 = 1; + a0 = 1; + } + return 21; + } else if(((((((a0==1)&&((((a3==8)&&(!(a6==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a4==1))))&&(a12==8))&&(a20==1)))&&!(a27==1))&&(a5==1))&&!(a15==1))&&(a22==1))){ + a27 = 1; + a3 = 4; + a18 = 1; + a15 = 1; + a6 = 1; + return -1; + } else if(((a15==1)&&(((a0==1)&&((a5==1)&&((!(a4==1)&&((((input==3)&&(((!(a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1))))))&&(a27==1))&&(a12==12)))&&(a20==1))))&&(a6==1)))){ + if((a5==1)){ + a18 = 1; + a4 = 1; + a22 = 0; + a12 = 11; + a3 = 4; + a0 = 0; + }else{ + a6 = 0; + a4 = 1; + a18 = 0; + a3 = 6; + a27 = 0; + a22 = 1; + } + return 21; + } else if(((a12==9)&&((((((a0==1)&&((!(a6==1)&&((((a3==8)&&((a22==1)&&!(a18==1)))||(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8))))&&(input==6)))&&(a15==1)))&&!(a27==1))&&!(a4==1))&&(a20==1))&&(a5==1)))){ + a12 = 8; + a4 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + return 26; + } else if((!(a18==1)&&(!(a15==1)&&((a12==9)&&((!(a6==1)&&(!(a27==1)&&(((a3==7)&&(!(a22==1)&&((a20==1)&&(!(a0==1)&&(input==5)))))&&!(a4==1))))&&!(a5==1)))))){ + a0 = 1; + a12 = 12; + a5 = 1; + a6 = 1; + a15 = 1; + a18 = 1; + return 24; + } else if(((a22==1)&&(!(a5==1)&&((((((((((a4==1)&&(input==5))&&(a15==1))&&(a6==1))&&(a12==12))&&(a20==1))&&!(a0==1))&&!(a18==1))&&(a27==1))&&(a3==8))))){ + if((a18==1)){ + a6 = 0; + a4 = 0; + a22 = 0; + a18 = 1; + a15 = 0; + a12 = 11; + a3 = 5; + }else{ + a0 = 1; + a22 = 0; + a12 = 9; + a18 = 1; + a3 = 7; + } + return -1; + } else if((((a20==1)&&(!(a0==1)&&((((a12==8)&&(!(a27==1)&&((input==2)&&((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1))))))&&!(a5==1))&&(a15==1))))&&!(a4==1))){ + a3 = 4; + a6 = 1; + a22 = 1; + a5 = 1; + a0 = 1; + a18 = 1; + a27 = 1; + return 21; + } else if(((!(a4==1)&&((a0==1)&&((a3==8)&&((a6==1)&&((((a18==1)&&((a12==8)&&(!(a27==1)&&((input==2)&&(a5==1)))))&&(a22==1))&&(a15==1))))))&&(a20==1))){ + a12 = 10; + a6 = 0; + a18 = 0; + a3 = 4; + a22 = 0; + return 26; + } else if(((a22==1)&&(!(a6==1)&&(((!(a27==1)&&(((a3==5)&&(((a20==1)&&((a5==1)&&(!(a15==1)&&(input==6))))&&!(a4==1)))&&(a0==1)))&&(a12==12))&&!(a18==1))))){ + a27 = 1; + a12 = 8; + a6 = 1; + a4 = 1; + a15 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((!(a0==1)&&((a6==1)&&((a3==6)&&((((a15==1)&&((a12==11)&&((((input==3)&&((a18==1)||!(a18==1)))&&!(a4==1))&&(a5==1))))&&(a20==1))&&!(a22==1)))))&&(a27==1))){ + a27 = 0; + a5 = 0; + a12 = 10; + a3 = 8; + a22 = 1; + a4 = 1; + a0 = 1; + a18 = 1; + return 26; + } else if(((a12==11)&&(!(a27==1)&&(((!(a15==1)&&((!(a6==1)&&(((a3==7)&&(!(a0==1)&&((a20==1)&&(input==2))))&&(a18==1)))&&(a5==1)))&&!(a4==1))&&(a22==1))))){ + a18 = 0; + a22 = 0; + a0 = 1; + a5 = 0; + a4 = 1; + a27 = 1; + a15 = 1; + a3 = 8; + a12 = 10; + return -1; + } else if(((a27==1)&&((a6==1)&&(((a3==5)&&((a4==1)&&(((a12==11)&&((a20==1)&&((((a18==1)&&(input==5))&&(a22==1))&&!(a0==1))))&&!(a15==1))))&&(a5==1))))){ + a0 = 1; + a12 = 8; + a15 = 1; + a3 = 4; + return -1; + } else if((((a0==1)&&(((!(a6==1)&&((((a3==4)&&(((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==4))&&(a12==9)))&&(a20==1))&&!(a5==1)))&&!(a15==1))&&(a4==1)))&&(a27==1))){ + a3 = 8; + a4 = 0; + a22 = 0; + a12 = 8; + a27 = 0; + a18 = 1; + return 21; + } else if(((((((((a18==1)&&((((a12==9)&&((a4==1)&&(input==2)))&&!(a22==1))&&(a15==1)))&&(a3==8))&&(a5==1))&&(a6==1))&&(a27==1))&&(a20==1))&&(a0==1))){ + a12 = 12; + a3 = 5; + return 26; + } else if(((((a0==1)&&(!(a5==1)&&((a27==1)&&((((a4==1)&&((input==3)&&((((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a18==1)&&!(a22==1))))||((a3==5)&&((a22==1)&&(a18==1))))))&&(a15==1))&&(a6==1)))))&&(a20==1))&&(a12==11))){ + if((a12==11)){ + a18 = 0; + a0 = 0; + a6 = 0; + a5 = 1; + a3 = 7; + a22 = 1; + }else{ + a22 = 0; + a18 = 1; + a3 = 4; + a5 = 1; + a15 = 0; + } + return 26; + } else if(((((!(a5==1)&&(((a22==1)&&((((((input==2)&&((a18==1)||!(a18==1)))&&!(a15==1))&&(a6==1))&&(a12==9))&&(a20==1)))&&(a4==1)))&&(a3==8))&&(a27==1))&&!(a0==1))){ + a0 = 1; + a12 = 10; + a18 = 1; + return 26; + } else if((!(a15==1)&&(((a12==10)&&((a0==1)&&((!(a6==1)&&((a3==4)&&((a4==1)&&((a20==1)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==1))))))&&(a27==1))))&&(a5==1)))){ + a4 = 0; + a15 = 1; + a22 = 1; + a3 = 8; + a18 = 1; + return -1; + } else if((!(a4==1)&&((!(a0==1)&&(((a12==8)&&((a15==1)&&((!(a27==1)&&((input==3)&&(((a3==6)&&((a18==1)&&(a22==1)))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==5))))))&&(a20==1))))&&(a6==1)))&&(a5==1)))){ + a0 = 1; + a27 = 1; + a4 = 1; + a18 = 0; + a22 = 1; + a3 = 4; + return -1; + } else if(((a5==1)&&(((a0==1)&&((((((a22==1)&&(!(a6==1)&&(((input==3)&&(a18==1))&&(a20==1))))&&(a27==1))&&(a12==11))&&(a15==1))&&(a3==7)))&&(a4==1)))){ + a12 = 10; + a6 = 1; + a5 = 0; + a0 = 0; + a3 = 6; + a4 = 0; + a15 = 0; + return 21; + } else if(((a3==5)&&((a12==12)&&((a5==1)&&(!(a15==1)&&(!(a6==1)&&((a27==1)&&((a20==1)&&((!(a4==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==6)))&&!(a0==1)))))))))){ + if((a22==1)){ + a18 = 1; + a15 = 1; + a0 = 1; + a12 = 8; + a3 = 8; + a6 = 1; + a22 = 1; + }else{ + a4 = 1; + a6 = 1; + a18 = 0; + a22 = 1; + a15 = 1; + a3 = 7; + a12 = 8; + a0 = 1; + } + return -1; + } else if((((!(a4==1)&&((a27==1)&&((((a20==1)&&(!(a5==1)&&((a12==9)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==6)))))&&!(a15==1))&&!(a6==1))))&&(a0==1))&&(a3==4))){ + a4 = 1; + a15 = 1; + a12 = 12; + a18 = 1; + a22 = 0; + return 21; + } else if((((((a18==1)&&((!(a0==1)&&((a27==1)&&(((a22==1)&&((!(a6==1)&&(input==5))&&!(a15==1)))&&(a20==1))))&&!(a5==1)))&&(a4==1))&&(a12==11))&&(a3==8))){ + a0 = 1; + a5 = 1; + a3 = 4; + a12 = 8; + a15 = 1; + a6 = 1; + return -1; + } else if(((a12==9)&&(!(a27==1)&&(((a5==1)&&((a15==1)&&(((((!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4)))||((((!(a22==1)&&(a18==1))&&(a3==8))&&(a6==1))||((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))))&&(input==3))&&!(a0==1))&&!(a4==1))))&&(a20==1))))){ + a6 = 0; + a18 = 0; + a15 = 0; + a3 = 5; + a22 = 1; + a0 = 1; + return -1; + } else if(((a6==1)&&((((((a12==12)&&((!(a4==1)&&((a27==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==4))))&&!(a0==1)))&&(a3==8))&&(a5==1))&&(a20==1))&&!(a15==1)))){ + a6 = 0; + a3 = 7; + a22 = 1; + a12 = 8; + a15 = 1; + a18 = 0; + a0 = 1; + a4 = 1; + return 21; + } else if((((a27==1)&&(((a3==6)&&((a12==8)&&(((a20==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==6))&&!(a4==1))&&(a6==1)))&&(a15==1))))&&!(a5==1)))&&!(a0==1))){ + a5 = 1; + a0 = 1; + a18 = 1; + a4 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if(((a12==12)&&(((a3==7)&&(!(a5==1)&&(!(a4==1)&&(((((a20==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==1)))&&!(a15==1))&&(a6==1))&&(a0==1)))))&&!(a27==1)))){ + a4 = 1; + a12 = 10; + a18 = 1; + a27 = 1; + a22 = 1; + a3 = 6; + a15 = 1; + return -1; + } else if(((a20==1)&&((a27==1)&&((((a5==1)&&((a22==1)&&((((a3==6)&&((a12==9)&&(((a18==1)||!(a18==1))&&(input==4))))&&(a0==1))&&(a6==1))))&&(a4==1))&&!(a15==1))))){ + a18 = 1; + a4 = 0; + a12 = 11; + a15 = 1; + a6 = 0; + return 21; + } else if((((a15==1)&&(((((a12==9)&&(!(a6==1)&&((((!(a18==1)&&(input==4))&&!(a27==1))&&(a4==1))&&!(a0==1))))&&(a3==6))&&!(a5==1))&&(a22==1)))&&(a20==1))){ + a18 = 1; + a27 = 1; + a3 = 7; + a12 = 10; + a0 = 1; + a5 = 1; + return -1; + } else if((((!(a27==1)&&((a4==1)&&((a3==5)&&(((a15==1)&&(((a18==1)&&((a0==1)&&((a5==1)&&(input==3))))&&!(a22==1)))&&(a6==1)))))&&(a12==8))&&(a20==1))){ + a27 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((a0==1)&&((a5==1)&&((((((a27==1)&&((a22==1)&&((a12==9)&&(((a18==1)&&(input==5))&&(a15==1)))))&&!(a6==1))&&(a4==1))&&(a20==1))&&(a3==8))))){ + a18 = 0; + a12 = 12; + a6 = 1; + a3 = 6; + a15 = 0; + a22 = 0; + return 24; + } else if(((a5==1)&&((((a20==1)&&(!(a15==1)&&((!(a18==1)&&(((((input==1)&&(a0==1))&&(a3==5))&&(a12==11))&&!(a6==1)))&&(a27==1))))&&!(a4==1))&&!(a22==1)))){ + a12 = 8; + a18 = 1; + a5 = 0; + a3 = 8; + a6 = 1; + return -1; + } else if(((!(a5==1)&&((((!(a15==1)&&((a3==4)&&((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==4))&&(a20==1))&&!(a0==1))))&&(a12==8))&&!(a6==1))&&!(a4==1)))&&!(a27==1))){ + a27 = 1; + a5 = 1; + a12 = 11; + a4 = 1; + a18 = 1; + a22 = 1; + a6 = 1; + a0 = 1; + a3 = 8; + a15 = 1; + return -1; + } else if((((!(a5==1)&&((((a3==6)&&((!(a6==1)&&((a20==1)&&((a12==10)&&(!(a15==1)&&(input==4)))))&&!(a4==1)))&&!(a22==1))&&!(a27==1)))&&!(a0==1))&&(a18==1))){ + if((a5==1)){ + a5 = 1; + a3 = 5; + a12 = 8; + a0 = 1; + a6 = 1; + a27 = 1; + a4 = 1; + a15 = 1; + a22 = 1; + }else{ + a12 = 11; + a6 = 1; + a3 = 4; + a5 = 1; + } + return -1; + } else if(((a20==1)&&(((a4==1)&&(!(a15==1)&&(!(a27==1)&&(!(a5==1)&&((a0==1)&&((input==1)&&((!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1))))||(((a6==1)&&((!(a22==1)&&(a18==1))&&(a3==8)))||((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))))))))))&&(a12==12)))){ + a18 = 1; + a15 = 1; + a12 = 8; + a3 = 4; + a6 = 1; + a22 = 1; + a5 = 1; + a27 = 1; + return -1; + } else if(((((a4==1)&&((a12==12)&&((((a3==8)&&((a20==1)&&((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==6))&&(a27==1))))&&!(a15==1))&&!(a0==1))))&&!(a5==1))&&(a6==1))){ + if((a6==1)){ + a12 = 9; + a22 = 0; + a18 = 1; + a27 = 0; + a6 = 0; + a3 = 7; + }else{ + a15 = 1; + a3 = 4; + a18 = 1; + a0 = 1; + a5 = 1; + a12 = 8; + a22 = 0; + } + return 21; + } else if((((a20==1)&&(!(a4==1)&&(!(a27==1)&&(((a0==1)&&((((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==3))&&(a12==8))&&(a6==1)))&&!(a15==1)))))&&(a5==1))){ + a12 = 10; + a27 = 1; + a18 = 1; + a22 = 0; + a4 = 1; + a3 = 4; + return 26; + } else if((!(a22==1)&&((a12==8)&&(((a3==5)&&(!(a15==1)&&(!(a4==1)&&((a20==1)&&((a0==1)&&((a18==1)&&(((a27==1)&&(input==4))&&(a6==1))))))))&&(a5==1))))){ + a22 = 1; + a6 = 0; + a15 = 1; + a3 = 4; + a18 = 0; + a12 = 9; + return 21; + } else if(((a15==1)&&((((((a20==1)&&(!(a4==1)&&(!(a27==1)&&((a3==5)&&(((a5==1)&&(input==5))&&(a0==1))))))&&(a18==1))&&!(a22==1))&&!(a6==1))&&(a12==9)))){ + a6 = 1; + a3 = 8; + a22 = 1; + a12 = 8; + return 26; + } else if(((((a12==9)&&(!(a4==1)&&(((a6==1)&&((a20==1)&&((!(a27==1)&&((a18==1)&&(!(a22==1)&&(input==6))))&&!(a5==1))))&&(a3==5))))&&!(a15==1))&&(a0==1))){ + a22 = 1; + a12 = 10; + a27 = 1; + a15 = 1; + return 21; + } else if(((a12==11)&&((!(a0==1)&&((a15==1)&&((((input==4)&&((((((a4==1)&&((a18==1)&&!(a22==1)))&&(a3==8))&&!(a6==1))||(!(a6==1)&&((a3==8)&&((a4==1)&&(!(a22==1)&&!(a18==1))))))||((a6==1)&&((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1))))))&&(a27==1))&&!(a5==1))))&&(a20==1)))){ + a15 = 0; + a18 = 0; + a3 = 8; + a5 = 1; + a4 = 0; + a0 = 1; + a22 = 1; + a6 = 0; + return -1; + } else if((!(a27==1)&&((a6==1)&&((((a5==1)&&(((a12==11)&&(((input==4)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))||((a3==6)&&(!(a18==1)&&(a22==1)))))&&!(a0==1)))&&!(a15==1)))&&(a20==1))&&!(a4==1))))){ + if((a0==1)){ + a0 = 1; + a18 = 1; + a27 = 1; + a15 = 1; + a12 = 8; + a22 = 0; + a3 = 7; + }else{ + a22 = 0; + a0 = 1; + a3 = 6; + a4 = 1; + a18 = 0; + a27 = 1; + } + return 21; + } else if(((a0==1)&&((a15==1)&&(((a12==12)&&((!(a27==1)&&((a20==1)&&(((input==3)&&((((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1))))||((a3==7)&&((a18==1)&&(a22==1)))))&&!(a5==1))))&&(a4==1)))&&!(a6==1))))){ + a3 = 4; + a22 = 1; + a4 = 0; + a6 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if((((a15==1)&&((a12==11)&&((a4==1)&&((((a20==1)&&((input==2)&&((((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1)))||(((a3==4)&&((a22==1)&&!(a18==1)))&&!(a6==1)))))&&!(a27==1))&&!(a0==1)))))&&!(a5==1))){ + a18 = 1; + a6 = 1; + a4 = 0; + a12 = 10; + a3 = 4; + a22 = 1; + return 26; + } else if((((!(a6==1)&&(!(a0==1)&&(((a3==7)&&(!(a27==1)&&((a20==1)&&(((a4==1)&&((a15==1)&&(input==6)))&&!(a18==1)))))&&(a12==9))))&&(a22==1))&&(a5==1))){ + a0 = 1; + a27 = 1; + a12 = 8; + a6 = 1; + a22 = 0; + a18 = 1; + a3 = 4; + a4 = 0; + return -1; + } else if(((a12==10)&&(!(a5==1)&&((((a3==5)&&((((!(a22==1)&&(((a20==1)&&(input==2))&&(a6==1)))&&!(a15==1))&&!(a4==1))&&!(a27==1)))&&!(a0==1))&&!(a18==1))))){ + a3 = 4; + a4 = 1; + a15 = 1; + a18 = 1; + a22 = 1; + a5 = 1; + a27 = 1; + a0 = 1; + a12 = 8; + a6 = 0; + return 26; + } else if(((!(a5==1)&&((a3==6)&&((((a27==1)&&(((a20==1)&&((a0==1)&&(!(a22==1)&&(((a18==1)||!(a18==1))&&(input==5)))))&&(a15==1)))&&!(a6==1))&&(a12==9))))&&(a4==1))){ + a22 = 1; + a12 = 10; + a18 = 0; + a4 = 0; + a3 = 5; + return 26; + } else if(((a22==1)&&((a0==1)&&(!(a15==1)&&((a12==10)&&((a5==1)&&((((!(a18==1)&&((a4==1)&&((input==3)&&!(a27==1))))&&(a3==7))&&(a20==1))&&!(a6==1)))))))){ + if((a20==1)){ + a15 = 1; + a12 = 12; + a27 = 1; + a3 = 8; + a22 = 0; + a0 = 0; + a18 = 1; + }else{ + a3 = 8; + a5 = 0; + } + return 26; + } else if(((((a27==1)&&((a5==1)&&((!(a0==1)&&((!(a6==1)&&(!(a15==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6))))&&(a3==5)))&&(a20==1))))&&(a12==12))&&(a4==1))){ + a0 = 1; + a3 = 6; + a22 = 1; + a5 = 0; + a12 = 8; + a18 = 0; + return 21; + } else if(((a27==1)&&(!(a6==1)&&(((a5==1)&&((((((a3==8)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==6)))&&(a20==1))&&!(a0==1))&&(a12==10))&&(a15==1)))&&!(a4==1))))){ + a3 = 5; + a15 = 0; + a18 = 1; + a4 = 1; + a12 = 8; + a22 = 0; + a0 = 1; + return 21; + } else if(((!(a0==1)&&((((((a3==7)&&((a5==1)&&(((((a18==1)||!(a18==1))&&(input==6))&&!(a27==1))&&(a12==10))))&&!(a15==1))&&!(a4==1))&&(a6==1))&&(a22==1)))&&(a20==1))){ + if((a0==1)){ + a4 = 1; + a3 = 4; + a27 = 1; + a6 = 0; + a0 = 1; + a18 = 0; + a12 = 8; + }else{ + a15 = 1; + a27 = 1; + a12 = 11; + a6 = 0; + a3 = 8; + a18 = 0; + a4 = 1; + } + return -1; + } else if(((a6==1)&&(((((a4==1)&&((((a0==1)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==1)))&&(a20==1))&&(a27==1)))&&(a12==11))&&(a15==1))&&(a5==1)))){ + a18 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + return -1; + } else if((((a12==11)&&(!(a27==1)&&(((a6==1)&&((!(a5==1)&&((((input==4)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&(a3==5))&&!(a4==1)))&&(a20==1)))&&!(a0==1))))&&(a15==1))){ + if((a15==1)){ + a4 = 1; + a18 = 0; + a5 = 1; + a22 = 1; + a27 = 1; + a3 = 4; + a15 = 0; + }else{ + a12 = 8; + a0 = 1; + a22 = 1; + a3 = 7; + a27 = 1; + a4 = 1; + a18 = 1; + a5 = 1; + } + return -1; + } else if((((((a4==1)&&(!(a0==1)&&((a12==11)&&((a15==1)&&(((input==3)&&(((a3==7)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))))&&(a6==1))))))&&!(a5==1))&&(a27==1))&&(a20==1))){ + a0 = 1; + a12 = 8; + a5 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((!(a6==1)&&(((a3==8)&&(!(a5==1)&&((a4==1)&&((((a27==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==2)))&&(a20==1))&&(a0==1)))))&&!(a15==1)))&&(a12==10))){ + a3 = 6; + a18 = 1; + a27 = 0; + a6 = 1; + a22 = 0; + a15 = 1; + return 21; + } else if(((a0==1)&&(((((((input==2)&&((((!(a4==1)&&((a22==1)&&(a18==1)))&&(a3==4))&&(a6==1))||(((((a4==1)&&(!(a22==1)&&(a18==1)))&&(a3==8))&&!(a6==1))||(((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1))))&&!(a6==1)))))&&(a15==1))&&(a27==1))&&(a12==10))&&(a5==1))&&(a20==1)))){ + a18 = 1; + a12 = 9; + a6 = 0; + a4 = 1; + a3 = 4; + a27 = 0; + a22 = 0; + a5 = 0; + return 21; + } else if((((a12==10)&&((a5==1)&&((a27==1)&&((a4==1)&&((((a18==1)&&((((a6==1)&&(input==6))&&(a0==1))&&(a3==7)))&&(a22==1))&&(a20==1))))))&&(a15==1))){ + a3 = 4; + a18 = 0; + a27 = 0; + a12 = 9; + a5 = 0; + return 26; + } else if(((a12==10)&&((a27==1)&&((((((a18==1)&&(!(a5==1)&&(!(a15==1)&&((a3==5)&&((a6==1)&&(input==5))))))&&(a4==1))&&(a22==1))&&(a20==1))&&!(a0==1))))){ + a12 = 11; + a3 = 6; + a22 = 0; + a15 = 1; + a0 = 1; + a18 = 0; + return 21; + } else if((((!(a0==1)&&(!(a27==1)&&((a5==1)&&(!(a4==1)&&((a15==1)&&((a3==5)&&((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==2))&&(a20==1))))))))&&(a6==1))&&(a12==10))){ + a27 = 1; + a15 = 0; + a3 = 6; + a22 = 1; + a5 = 0; + a18 = 0; + return 26; + } else if(((!(a4==1)&&(((a0==1)&&(!(a15==1)&&(!(a5==1)&&((a3==7)&&(!(a6==1)&&((a22==1)&&((((a18==1)||!(a18==1))&&(input==4))&&!(a27==1))))))))&&(a12==12)))&&(a20==1))){ + a5 = 1; + a18 = 0; + a27 = 1; + return 26; + } else if((((a3==8)&&(!(a6==1)&&(!(a4==1)&&((a12==8)&&((((a0==1)&&((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==1))&&(a20==1)))&&!(a27==1))&&!(a5==1))))))&&(a15==1))){ + a6 = 1; + a22 = 1; + a18 = 0; + a5 = 1; + return -1; + } else if(((((((((((input==6)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a18==1)&&(a22==1)))))&&!(a0==1))&&(a12==11))&&!(a15==1))&&!(a6==1))&&(a20==1))&&!(a4==1))&&(a27==1))&&(a5==1))){ + a4 = 1; + a22 = 1; + a12 = 8; + a18 = 1; + a0 = 1; + a3 = 4; + a6 = 1; + a15 = 1; + return -1; + } else if(((a12==11)&&((a20==1)&&((a4==1)&&(((a22==1)&&(((((((input==3)&&!(a5==1))&&(a27==1))&&!(a15==1))&&!(a18==1))&&(a6==1))&&(a0==1)))&&(a3==6)))))){ + a22 = 0; + a5 = 1; + a6 = 0; + a15 = 1; + a12 = 12; + a0 = 0; + a3 = 7; + return -1; + } else if(((!(a6==1)&&((!(a15==1)&&((((!(a4==1)&&(((!(a0==1)&&(input==5))&&!(a5==1))&&(a20==1)))&&(a3==6))&&(a22==1))&&(a18==1)))&&(a12==11)))&&!(a27==1))){ + if((a22==1)){ + a6 = 1; + a12 = 8; + a3 = 4; + a0 = 1; + a15 = 1; + a5 = 1; + a27 = 1; + }else{ + a22 = 0; + a18 = 0; + a27 = 1; + } + return -1; + } else if((((a27==1)&&((((a5==1)&&(((!(a4==1)&&(((input==1)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a0==1)))&&(a12==12))&&(a3==8)))&&!(a6==1))&&(a20==1)))&&!(a15==1))){ + a22 = 1; + a12 = 8; + a4 = 1; + a3 = 4; + a6 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if((((a20==1)&&((a12==11)&&(((a15==1)&&((((a3==8)&&((a0==1)&&((input==2)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&!(a5==1))&&(a4==1)))&&(a27==1))))&&(a6==1))){ + a5 = 1; + a18 = 0; + a22 = 0; + a6 = 0; + a4 = 0; + a3 = 4; + return -1; + } else if(((a12==9)&&(!(a15==1)&&((a3==8)&&(!(a0==1)&&((a22==1)&&((a20==1)&&((a6==1)&&((a4==1)&&(((a18==1)&&((a5==1)&&(input==2)))&&(a27==1))))))))))){ + a12 = 10; + a18 = 0; + a3 = 4; + a15 = 1; + return -1; + } else if(((a12==11)&&(((a20==1)&&(((!(a0==1)&&((a4==1)&&((((input==2)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&(a6==1))&&(a27==1))))&&(a15==1))&&!(a5==1)))&&(a3==7)))){ + a18 = 0; + a4 = 0; + a0 = 1; + a12 = 10; + a22 = 1; + a3 = 8; + a6 = 0; + return -1; + } else if(((((a0==1)&&(((a20==1)&&((((a15==1)&&((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==3))&&(a27==1)))&&(a3==8))&&(a12==8)))&&!(a4==1)))&&(a5==1))&&!(a6==1))){ + a22 = 0; + a3 = 6; + a6 = 1; + a18 = 0; + a15 = 0; + return 21; + } else if(((((a20==1)&&(((a3==8)&&(((a27==1)&&(((((input==2)&&(a12==11))&&!(a18==1))&&(a5==1))&&(a22==1)))&&(a0==1)))&&!(a6==1)))&&(a4==1))&&!(a15==1))){ + if((a0==1)){ + a15 = 1; + a3 = 4; + a12 = 12; + a0 = 0; + }else{ + a4 = 0; + a12 = 9; + a18 = 1; + a0 = 0; + a15 = 1; + a3 = 5; + a6 = 1; + } + return 26; + } else if(((((a20==1)&&((a12==10)&&((a4==1)&&(((!(a15==1)&&((((a3==6)&&(!(a18==1)&&(a22==1)))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6))))&&(input==2)))&&(a5==1))&&!(a6==1)))))&&!(a27==1))&&!(a0==1))){ + a18 = 1; + a12 = 8; + a0 = 1; + a3 = 4; + a15 = 1; + a22 = 1; + a27 = 1; + return -1; + } else if(((a27==1)&&(!(a18==1)&&(((a22==1)&&(((a12==10)&&(!(a4==1)&&((a20==1)&&((!(a15==1)&&((a0==1)&&(input==4)))&&(a3==8)))))&&(a6==1)))&&(a5==1))))){ + a15 = 1; + a3 = 6; + a12 = 8; + a6 = 0; + return 26; + } else if(((a12==12)&&(!(a6==1)&&(((((!(a15==1)&&((((a20==1)&&((input==4)&&(a18==1)))&&(a0==1))&&(a3==7)))&&!(a22==1))&&(a4==1))&&!(a27==1))&&!(a5==1))))){ + a22 = 1; + a15 = 1; + a12 = 8; + a27 = 1; + a5 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if(((((a12==10)&&((((((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==6))&&!(a15==1))&&(a6==1))&&(a3==5))&&(a27==1))&&!(a4==1))&&(a0==1)))&&(a5==1))&&(a20==1))){ + a3 = 4; + a15 = 1; + a4 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + return -1; + } else if(((a12==12)&&((!(a4==1)&&((a6==1)&&(!(a15==1)&&(((a22==1)&&((a20==1)&&((a3==7)&&(!(a5==1)&&((input==3)&&((a18==1)||!(a18==1)))))))&&!(a0==1)))))&&(a27==1)))){ + if((a3==7)){ + a15 = 1; + a0 = 1; + a27 = 0; + a3 = 8; + a18 = 0; + a5 = 1; + a6 = 0; + }else{ + a18 = 1; + a0 = 1; + a5 = 1; + a15 = 1; + a4 = 1; + a12 = 8; + } + return -1; + } else if(((a27==1)&&((a15==1)&&((((a12==10)&&(((input==1)&&(((a6==1)&&((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1)))))||((((a3==8)&&((!(a22==1)&&(a18==1))&&(a4==1)))&&!(a6==1))||(((a3==8)&&((a4==1)&&(!(a22==1)&&!(a18==1))))&&!(a6==1)))))&&(a5==1)))&&(a20==1))&&(a0==1))))){ + a3 = 4; + a12 = 9; + a5 = 0; + a4 = 1; + a27 = 0; + a18 = 0; + a6 = 0; + a22 = 0; + return 26; + } else if(((!(a27==1)&&((((a5==1)&&(((a12==8)&&(((input==3)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))||((!(a18==1)&&(a22==1))&&(a3==8))))&&!(a6==1)))&&(a15==1)))&&!(a0==1))&&(a4==1)))&&(a20==1))){ + a22 = 1; + a4 = 0; + a0 = 1; + a6 = 1; + a18 = 1; + a27 = 1; + a3 = 4; + return -1; + } else if(((a15==1)&&(!(a27==1)&&(!(a6==1)&&((a3==7)&&((!(a0==1)&&((a12==11)&&((a4==1)&&((a20==1)&&((((a18==1)||!(a18==1))&&(input==3))&&(a22==1))))))&&!(a5==1))))))){ + a18 = 0; + a15 = 0; + a3 = 8; + a22 = 0; + a0 = 1; + a6 = 1; + return 26; + } else if(((a20==1)&&((((a5==1)&&(((a12==11)&&((((((a3==6)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5))))&&(input==4))&&(a0==1))&&(a27==1)))&&(a15==1)))&&!(a6==1))&&(a4==1)))){ + a12 = 8; + a6 = 1; + a18 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if(((a12==9)&&((((a15==1)&&((((((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==6))&&(a6==1))&&!(a0==1))&&(a4==1))&&(a20==1)))&&!(a27==1))&&(a5==1)))){ + a22 = 0; + a5 = 0; + a15 = 0; + a18 = 0; + a27 = 1; + a12 = 8; + a6 = 0; + a3 = 4; + return 21; + } else if((!(a0==1)&&(!(a27==1)&&((a5==1)&&((a15==1)&&(!(a6==1)&&((a18==1)&&((a12==9)&&((a20==1)&&((a3==7)&&(((input==3)&&!(a4==1))&&!(a22==1)))))))))))){ + a6 = 1; + a18 = 0; + a27 = 1; + a12 = 8; + a3 = 8; + a0 = 1; + return 24; + } else if(((((((((a5==1)&&(!(a27==1)&&((!(a0==1)&&((a22==1)&&(input==4)))&&(a20==1))))&&(a4==1))&&!(a6==1))&&(a18==1))&&(a15==1))&&(a12==10))&&(a3==7))){ + a3 = 5; + a18 = 0; + a0 = 1; + a15 = 0; + a12 = 8; + a5 = 0; + a27 = 1; + return -1; + } else if(((a22==1)&&((a20==1)&&(!(a15==1)&&((((!(a27==1)&&(!(a5==1)&&(((a0==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a6==1))))&&(a3==7))&&!(a4==1))&&(a12==10)))))){ + a18 = 1; + a5 = 1; + a27 = 1; + a3 = 4; + a12 = 8; + a4 = 1; + a15 = 1; + return -1; + } else if((((((a12==9)&&((!(a0==1)&&((a15==1)&&(!(a27==1)&&((input==2)&&((((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==4)))||(((a18==1)&&(a22==1))&&(a3==5)))))))&&!(a6==1)))&&!(a4==1))&&!(a5==1))&&(a20==1))){ + a27 = 1; + a12 = 11; + a6 = 1; + a22 = 1; + a5 = 1; + a3 = 8; + a18 = 0; + return -1; + } else if(((((((!(a0==1)&&(!(a6==1)&&((a15==1)&&(((((a18==1)&&(a22==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1)))))&&(input==6)))))&&(a20==1))&&(a27==1))&&!(a4==1))&&!(a5==1))&&(a12==9))){ + a3 = 5; + a27 = 0; + a6 = 1; + a22 = 0; + a0 = 1; + a15 = 0; + a12 = 10; + a18 = 0; + return -1; + } else if((!(a22==1)&&((a12==11)&&(((((a3==8)&&(!(a0==1)&&((a15==1)&&((a20==1)&&(((input==2)&&!(a27==1))&&(a6==1))))))&&(a18==1))&&(a4==1))&&!(a5==1))))){ + a3 = 7; + a0 = 1; + a12 = 8; + a27 = 1; + a6 = 0; + a22 = 1; + a18 = 0; + a5 = 1; + return 21; + } else if(((((a15==1)&&((((!(a18==1)&&((!(a4==1)&&((a22==1)&&((input==1)&&(a27==1))))&&(a0==1)))&&(a3==6))&&!(a6==1))&&(a20==1)))&&(a5==1))&&(a12==9))){ + a3 = 5; + a18 = 1; + a12 = 8; + return 21; + } else if(((!(a22==1)&&(!(a18==1)&&(((a27==1)&&((((a3==7)&&((a5==1)&&(((input==2)&&(a0==1))&&!(a6==1))))&&(a12==11))&&!(a4==1)))&&(a15==1))))&&(a20==1))){ + a27 = 0; + a12 = 10; + a15 = 0; + a22 = 1; + a3 = 5; + a5 = 0; + return 26; + } else if((((a12==8)&&((a20==1)&&((!(a6==1)&&(((!(a27==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))||(((a22==1)&&!(a18==1))&&(a3==8)))&&(input==3)))&&(a5==1))&&(a0==1)))&&(a15==1))))&&(a4==1))){ + a27 = 1; + a3 = 4; + a6 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((!(a6==1)&&(!(a4==1)&&((a12==9)&&(!(a5==1)&&((((a15==1)&&(((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7)))||((!(a18==1)&&(a22==1))&&(a3==7)))&&(input==6)))&&(a20==1))&&!(a0==1))))))&&!(a27==1))){ + if((a20==1)){ + a12 = 8; + a27 = 1; + a22 = 1; + a3 = 4; + a18 = 0; + a5 = 1; + a0 = 1; + a6 = 1; + }else{ + a5 = 1; + a4 = 1; + a3 = 5; + a12 = 8; + a27 = 1; + a18 = 1; + a0 = 1; + a22 = 0; + } + return 21; + } else if(((((((((((a4==1)&&((input==6)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))&&!(a6==1))&&(a12==11))&&!(a5==1))&&!(a0==1))&&(a3==5))&&(a15==1))&&(a20==1))&&!(a27==1))){ + a18 = 0; + a4 = 0; + a6 = 1; + a22 = 0; + return -1; + } else if((((a3==6)&&((a0==1)&&((a12==12)&&(((a6==1)&&((a4==1)&&((a20==1)&&((a15==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2))))))&&(a5==1)))))&&!(a27==1))){ + a27 = 1; + a12 = 10; + a22 = 0; + a18 = 1; + a6 = 0; + a3 = 8; + a4 = 0; + return 26; + } else if(((a12==10)&&((((a3==4)&&((((a22==1)&&((!(a27==1)&&((a0==1)&&((input==4)&&((a18==1)||!(a18==1)))))&&!(a15==1)))&&!(a5==1))&&(a20==1)))&&!(a6==1))&&!(a4==1)))){ + a12 = 9; + a18 = 1; + a22 = 0; + return 21; + } else if(((((a4==1)&&(!(a22==1)&&(((a3==5)&&((a20==1)&&((a5==1)&&(!(a6==1)&&((!(a15==1)&&(input==4))&&!(a0==1))))))&&(a12==12))))&&(a27==1))&&!(a18==1))){ + a6 = 1; + a27 = 0; + a5 = 0; + a12 = 8; + a3 = 4; + a15 = 1; + return 24; + } else if(((a20==1)&&((a6==1)&&(((((((a3==5)&&(((input==1)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a15==1)))&&(a0==1))&&!(a27==1))&&(a12==9))&&(a4==1))&&!(a5==1))))){ + a12 = 10; + a27 = 1; + a3 = 7; + a18 = 1; + a22 = 1; + a5 = 1; + a4 = 0; + return 26; + } else if(((((a12==11)&&((((((((a3==8)&&(((a15==1)&&(!(a22==1)&&!(a18==1)))&&!(a4==1)))&&!(a6==1))||(((a3==4)&&((!(a15==1)&&((a18==1)&&(a22==1)))&&(a4==1)))&&(a6==1)))||((a6==1)&&((a3==4)&&((a4==1)&&(!(a15==1)&&(!(a18==1)&&(a22==1)))))))&&(input==5))&&!(a5==1))&&(a20==1)))&&(a0==1))&&!(a27==1))){ + a3 = 8; + a22 = 0; + a15 = 1; + a18 = 1; + a27 = 1; + a4 = 0; + a6 = 0; + return 24; + } else if(((a12==10)&&(((((((a3==5)&&((a5==1)&&(((input==1)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a27==1))))&&!(a15==1))&&(a4==1))&&!(a0==1))&&!(a6==1))&&(a20==1)))){ + a15 = 1; + a0 = 1; + a3 = 4; + a22 = 0; + a18 = 0; + return 21; + } else if(((((a27==1)&&((a15==1)&&((a20==1)&&(((a6==1)&&(!(a5==1)&&(((input==6)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a12==9))))&&(a0==1)))))&&(a4==1))&&(a3==4))){ + a3 = 5; + a18 = 0; + a27 = 0; + a12 = 8; + a22 = 1; + a15 = 0; + a5 = 1; + return 26; + } else if(((a27==1)&&((a4==1)&&((!(a5==1)&&(((a6==1)&&((a20==1)&&((((input==6)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&(a0==1))&&(a3==7))))&&(a12==8)))&&!(a15==1))))){ + a3 = 8; + a22 = 1; + a12 = 10; + a18 = 1; + return 26; + } else if(((a3==6)&&((((((a5==1)&&(!(a18==1)&&((!(a27==1)&&(((input==1)&&(a0==1))&&(a15==1)))&&(a20==1))))&&!(a22==1))&&(a4==1))&&(a12==11))&&(a6==1)))){ + a27 = 1; + a5 = 0; + a22 = 1; + a3 = 5; + a12 = 10; + a15 = 0; + return 21; + } else if((((((a4==1)&&((a3==5)&&((a20==1)&&((((!(a15==1)&&((a12==11)&&(input==4)))&&(a6==1))&&!(a27==1))&&!(a5==1)))))&&!(a22==1))&&!(a0==1))&&!(a18==1))){ + if((a15==1)){ + a12 = 12; + a3 = 4; + a22 = 1; + a27 = 1; + }else{ + a27 = 1; + a5 = 1; + a0 = 1; + a3 = 4; + a18 = 1; + a15 = 1; + } + return -1; + } else if((((a6==1)&&((!(a27==1)&&((!(a0==1)&&((!(a5==1)&&(((a20==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&!(a15==1)))&&(a22==1)))&&(a12==9)))&&(a3==4)))&&(a4==1))){ + a4 = 0; + a3 = 5; + a22 = 0; + a27 = 1; + a12 = 8; + a18 = 0; + return 26; + } else if(((a27==1)&&(!(a0==1)&&((a6==1)&&(!(a5==1)&&((((a15==1)&&((a12==12)&&(!(a4==1)&&((input==5)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))))&&(a20==1))&&(a3==5))))))){ + a5 = 1; + a0 = 1; + a22 = 1; + a3 = 6; + a27 = 0; + a18 = 1; + return -1; + } else if((!(a4==1)&&((a15==1)&&((!(a0==1)&&(!(a27==1)&&((!(a5==1)&&((a3==6)&&(((input==6)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a6==1))))&&(a20==1))))&&(a12==8))))){ + a6 = 0; + a15 = 0; + a18 = 0; + a4 = 1; + a12 = 11; + a3 = 8; + a22 = 1; + a0 = 1; + return -1; + } else if((((a20==1)&&((((((a3==7)&&(!(a27==1)&&(((a12==9)&&((input==3)&&((a18==1)||!(a18==1))))&&!(a6==1))))&&!(a5==1))&&(a15==1))&&!(a22==1))&&!(a0==1)))&&(a4==1))){ + a4 = 0; + a27 = 1; + a3 = 5; + a18 = 1; + a6 = 1; + a5 = 1; + a22 = 1; + a12 = 8; + a0 = 1; + return -1; + } else if(((a27==1)&&((((((a3==4)&&((a0==1)&&((((input==6)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a5==1))&&!(a6==1))))&&(a12==11))&&(a20==1))&&(a15==1))&&!(a4==1)))){ + if((a12==8)){ + a5 = 0; + a22 = 1; + a18 = 1; + a6 = 1; + a3 = 7; + a0 = 0; + a12 = 10; + }else{ + a12 = 8; + a3 = 5; + a0 = 0; + a18 = 1; + a22 = 0; + a4 = 1; + a6 = 1; + } + return -1; + } else if(((!(a15==1)&&(((a27==1)&&((a12==11)&&(((a22==1)&&(!(a18==1)&&(!(a6==1)&&((a0==1)&&((a3==4)&&(input==2))))))&&(a5==1))))&&!(a4==1)))&&(a20==1))){ + a15 = 1; + a27 = 0; + a22 = 0; + return 21; + } else if(((((!(a5==1)&&(!(a27==1)&&(((a0==1)&&((a4==1)&&((a12==12)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==1)))))&&(a20==1))))&&(a3==4))&&!(a15==1))&&(a6==1))){ + a3 = 5; + a12 = 11; + a22 = 1; + a18 = 0; + a27 = 1; + return -1; + } else if((((a4==1)&&(!(a5==1)&&((a27==1)&&((!(a6==1)&&(!(a15==1)&&((a12==10)&&((input==3)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1))))))))&&(a20==1)))))&&!(a0==1))){ + a4 = 0; + a3 = 7; + a0 = 1; + a15 = 1; + a18 = 1; + a22 = 0; + a12 = 11; + a5 = 1; + return 24; + } else if(((a20==1)&&((a12==12)&&(((a27==1)&&((((!(a15==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))||(((a22==1)&&!(a18==1))&&(a3==6)))&&(input==6)))&&(a0==1))&&(a5==1))&&!(a4==1)))&&(a6==1))))){ + if((a20==1)){ + a22 = 1; + a0 = 0; + a12 = 9; + a3 = 7; + a18 = 1; + a6 = 0; + a15 = 1; + }else{ + a3 = 5; + a18 = 0; + a4 = 1; + a22 = 1; + a6 = 0; + a27 = 0; + } + return 24; + } else if(((a12==8)&&(((a20==1)&&((a6==1)&&(!(a4==1)&&(((((((a3==5)&&((a22==1)&&!(a18==1)))||(((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5))))&&(input==4))&&!(a27==1))&&(a5==1))&&!(a15==1)))))&&(a0==1)))){ + a18 = 1; + a3 = 4; + a15 = 1; + a22 = 1; + a27 = 1; + a12 = 11; + a4 = 1; + a5 = 0; + return 26; + } else if((((!(a5==1)&&(((a3==8)&&((a4==1)&&((a0==1)&&((a15==1)&&((a20==1)&&((a12==10)&&((input==2)&&((a18==1)||!(a18==1)))))))))&&(a27==1)))&&(a6==1))&&(a22==1))){ + if((a18==1)){ + a5 = 1; + a22 = 0; + a15 = 0; + a3 = 5; + a0 = 0; + a18 = 1; + a12 = 11; + a6 = 0; + }else{ + a18 = 1; + a3 = 7; + a6 = 0; + a5 = 1; + a15 = 0; + a4 = 0; + } + return -1; + } else if((!(a6==1)&&((((a12==9)&&((a0==1)&&(((a20==1)&&(((input==2)&&(((!(a18==1)&&(a22==1))&&(a3==7))||(((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))))&&!(a4==1)))&&!(a5==1))))&&(a27==1))&&!(a15==1)))){ + a18 = 1; + a4 = 1; + a22 = 1; + a6 = 1; + a15 = 1; + a3 = 4; + a5 = 1; + a12 = 8; + return -1; + } else if((((a3==6)&&(((((a6==1)&&((a12==10)&&(!(a15==1)&&((a20==1)&&((a0==1)&&((input==5)&&((a18==1)||!(a18==1))))))))&&(a4==1))&&(a22==1))&&!(a27==1)))&&!(a5==1))){ + a22 = 0; + a12 = 12; + a4 = 0; + a18 = 0; + a5 = 1; + return 26; + } else if(((a3==6)&&((a6==1)&&(!(a5==1)&&(((a12==11)&&(!(a4==1)&&(!(a27==1)&&(((a20==1)&&((input==1)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))&&!(a15==1)))))&&!(a0==1)))))){ + a4 = 1; + a6 = 0; + a3 = 7; + a22 = 1; + a18 = 0; + return 26; + } else if(((((a6==1)&&(((!(a5==1)&&((((((input==1)&&(a12==8))&&(a20==1))&&!(a4==1))&&(a0==1))&&!(a18==1)))&&(a22==1))&&(a15==1)))&&(a3==5))&&(a27==1))){ + a5 = 1; + a3 = 4; + a18 = 1; + a4 = 1; + return -1; + } else if((!(a27==1)&&((a6==1)&&((a3==8)&&(!(a4==1)&&((!(a0==1)&&((!(a18==1)&&(!(a5==1)&&(((input==5)&&(a20==1))&&!(a15==1))))&&(a12==10)))&&!(a22==1))))))){ + a0 = 1; + a15 = 1; + a5 = 1; + a22 = 1; + a27 = 1; + a3 = 7; + a4 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((a12==12)&&(((a20==1)&&(((((!(a27==1)&&(((a6==1)&&((a4==1)&&(input==3)))&&!(a18==1)))&&(a5==1))&&(a0==1))&&!(a22==1))&&!(a15==1)))&&(a3==4)))){ + a6 = 0; + a12 = 11; + a4 = 0; + a27 = 1; + a0 = 0; + a15 = 1; + return -1; + } else if((((((a12==9)&&((((a4==1)&&((a0==1)&&(((a20==1)&&((input==3)&&!(a6==1)))&&(a3==7))))&&!(a22==1))&&(a5==1)))&&!(a27==1))&&!(a18==1))&&!(a15==1))){ + a18 = 1; + a3 = 4; + a6 = 1; + a22 = 1; + a12 = 8; + a15 = 1; + a27 = 1; + return -1; + } else if((((a3==8)&&((!(a0==1)&&(!(a15==1)&&(((a12==10)&&((!(a27==1)&&((!(a4==1)&&(input==1))&&(a6==1)))&&!(a22==1)))&&!(a18==1))))&&(a20==1)))&&!(a5==1))){ + a3 = 4; + a0 = 1; + a22 = 1; + a6 = 0; + a12 = 8; + a5 = 1; + return 21; + } else if((((((((!(a5==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==4))&&(a20==1)))&&(a6==1))&&(a12==11))&&!(a15==1))&&!(a27==1))&&!(a4==1))&&!(a0==1))){ + a4 = 1; + a5 = 1; + a6 = 0; + a18 = 1; + a22 = 0; + a12 = 8; + a3 = 6; + return 26; + } else if((!(a5==1)&&((!(a22==1)&&((a15==1)&&(!(a27==1)&&(!(a4==1)&&((a20==1)&&(((a12==9)&&(((input==3)&&(a3==4))&&(a6==1)))&&!(a0==1)))))))&&(a18==1)))){ + if((a12==11)){ + a12 = 8; + a0 = 1; + a5 = 1; + a18 = 0; + a27 = 1; + a22 = 1; + a3 = 7; + }else{ + a18 = 0; + a5 = 1; + a12 = 8; + a0 = 1; + a27 = 1; + a3 = 5; + } + return 21; + } else if((((a20==1)&&(!(a15==1)&&(((a12==9)&&(((a6==1)&&(!(a0==1)&&(((input==2)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&!(a5==1))))&&!(a27==1)))&&(a3==5))))&&(a4==1))){ + a3 = 7; + a5 = 1; + a0 = 1; + a6 = 0; + a22 = 0; + a15 = 1; + a18 = 0; + a12 = 8; + a27 = 1; + return -1; + } else if((((a12==9)&&((a0==1)&&((a20==1)&&(((a27==1)&&((((a5==1)&&((a3==5)&&((input==3)&&(a22==1))))&&(a18==1))&&!(a4==1)))&&(a15==1)))))&&(a6==1))){ + a3 = 4; + a18 = 0; + a12 = 11; + a5 = 0; + a6 = 0; + a4 = 1; + a0 = 0; + return 21; + } else if(((((a27==1)&&((a6==1)&&((a4==1)&&((a3==6)&&((!(a15==1)&&((((a0==1)&&(input==2))&&(a5==1))&&!(a22==1)))&&(a18==1))))))&&(a20==1))&&(a12==10))){ + a15 = 1; + a18 = 0; + a6 = 0; + a12 = 11; + a22 = 1; + return 26; + } else if(((!(a0==1)&&(!(a4==1)&&((a15==1)&&((((a20==1)&&((a5==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&!(a27==1))))&&!(a6==1))&&(a3==7)))))&&(a12==10))){ + if((a18==1)){ + a18 = 0; + a22 = 0; + a3 = 6; + a27 = 1; + a5 = 0; + a12 = 11; + }else{ + a3 = 6; + a22 = 0; + a12 = 12; + a4 = 1; + a6 = 1; + a5 = 0; + a18 = 1; + a27 = 1; + } + return -1; + } else if((!(a15==1)&&(((((a27==1)&&((!(a5==1)&&((a0==1)&&((a3==7)&&(((input==6)&&((a18==1)||!(a18==1)))&&!(a4==1)))))&&(a22==1)))&&(a20==1))&&(a12==10))&&(a6==1)))){ + a22 = 0; + a3 = 5; + a5 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if(((!(a6==1)&&(!(a0==1)&&((a5==1)&&((((a15==1)&&(((!(a4==1)&&((a20==1)&&(input==3)))&&!(a18==1))&&(a27==1)))&&(a12==10))&&(a3==7)))))&&!(a22==1))){ + if((a15==1)){ + a6 = 1; + a12 = 11; + a5 = 0; + a22 = 1; + a3 = 5; + }else{ + a18 = 1; + a22 = 1; + a3 = 6; + a0 = 1; + a15 = 0; + } + return -1; + } else if(((((((a15==1)&&((a0==1)&&(((((!(a27==1)&&(input==1))&&(a12==8))&&(a18==1))&&!(a22==1))&&(a20==1))))&&(a4==1))&&(a5==1))&&(a3==6))&&!(a6==1))){ + a22 = 1; + a3 = 4; + a6 = 1; + a27 = 1; + return -1; + } else if(((a5==1)&&(((((a0==1)&&(((a12==8)&&((input==3)&&((((a6==1)&&((!(a22==1)&&(a18==1))&&(a3==8)))||(((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1)))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4))))))&&(a20==1)))&&!(a27==1))&&!(a15==1))&&!(a4==1)))){ + a22 = 0; + a27 = 1; + a12 = 12; + a18 = 1; + a6 = 1; + a3 = 4; + return 21; + } else if(((((a4==1)&&(((a3==6)&&(!(a18==1)&&(!(a0==1)&&(!(a22==1)&&(!(a6==1)&&((a12==9)&&((input==3)&&(a5==1))))))))&&(a27==1)))&&(a15==1))&&(a20==1))){ + a22 = 1; + a18 = 1; + a6 = 1; + a3 = 4; + a12 = 8; + a0 = 1; + return -1; + } else if(((a20==1)&&((a3==4)&&((((!(a5==1)&&(((a12==8)&&(((input==1)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a15==1)))&&(a27==1)))&&!(a6==1))&&(a4==1))&&!(a0==1))))){ + if((a5==1)){ + a18 = 1; + a22 = 0; + }else{ + a15 = 0; + a5 = 1; + a4 = 0; + a22 = 0; + a12 = 10; + a18 = 0; + a0 = 1; + } + return -1; + } else if(((a4==1)&&((a20==1)&&(((!(a22==1)&&((((a5==1)&&((!(a18==1)&&((input==2)&&!(a6==1)))&&(a15==1)))&&(a0==1))&&(a12==8)))&&(a3==6))&&!(a27==1))))){ + a3 = 5; + a6 = 1; + a12 = 10; + a22 = 1; + a5 = 0; + a27 = 1; + return 26; + } else if((((((((a3==4)&&((((a15==1)&&((a5==1)&&((!(a27==1)&&(a22==1))&&!(a18==1))))&&(a12==8))&&(a4==1)))&&(a6==1))||((!(a6==1)&&((a3==8)&&(!(a4==1)&&(((((!(a22==1)&&(a27==1))&&!(a18==1))&&!(a5==1))&&!(a15==1))&&(a12==12)))))||((a6==1)&&((a3==4)&&((a4==1)&&(((a15==1)&&(((a18==1)&&(!(a27==1)&&(a22==1)))&&(a5==1)))&&(a12==8)))))))&&(input==2))&&(a20==1))&&(a0==1))){ + a18 = 0; + a5 = 1; + a4 = 1; + a6 = 0; + a12 = 12; + a27 = 1; + a22 = 0; + a3 = 8; + a15 = 0; + return 21; + } else if(((!(a15==1)&&(!(a6==1)&&((a3==7)&&((a4==1)&&(((((((input==6)&&((a18==1)||!(a18==1)))&&(a27==1))&&(a22==1))&&(a20==1))&&(a12==12))&&!(a5==1))))))&&(a0==1))){ + a6 = 1; + a18 = 0; + a5 = 1; + a12 = 10; + a22 = 0; + return 26; + } else if((!(a4==1)&&((a6==1)&&((a3==6)&&((a5==1)&&(!(a0==1)&&((a20==1)&&(!(a15==1)&&((a12==10)&&(((!(a22==1)&&(input==5))&&!(a27==1))&&!(a18==1))))))))))){ + a22 = 1; + a12 = 8; + a0 = 1; + a4 = 1; + a3 = 5; + a6 = 0; + a27 = 1; + a15 = 1; + return -1; + } else if((!(a15==1)&&(((a5==1)&&((a6==1)&&((a0==1)&&((((a18==1)&&(((a3==4)&&(!(a22==1)&&(input==3)))&&(a12==12)))&&(a4==1))&&(a27==1)))))&&(a20==1)))){ + a22 = 1; + a3 = 6; + return 26; + } else if((((a22==1)&&(!(a27==1)&&((!(a15==1)&&((((a0==1)&&(!(a6==1)&&((a5==1)&&((input==2)&&((a18==1)||!(a18==1))))))&&!(a4==1))&&(a20==1)))&&(a3==7))))&&(a12==12))){ + a4 = 1; + a27 = 1; + a3 = 4; + a6 = 1; + a12 = 8; + a15 = 1; + a18 = 1; + return -1; + } else if(((a4==1)&&((a22==1)&&(((a3==6)&&(((a15==1)&&((((a20==1)&&(((input==3)&&!(a27==1))&&!(a6==1)))&&!(a18==1))&&(a0==1)))&&(a12==11)))&&!(a5==1))))){ + a27 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + a5 = 1; + a6 = 1; + return -1; + } else if((!(a6==1)&&((a27==1)&&((a15==1)&&(!(a0==1)&&((a3==4)&&((a12==9)&&((((a22==1)&&(((input==6)&&(a4==1))&&(a20==1)))&&(a18==1))&&!(a5==1))))))))){ + a6 = 1; + a0 = 1; + a3 = 5; + a5 = 1; + a4 = 0; + a15 = 0; + return 26; + } else if(((a20==1)&&((((a15==1)&&((!(a5==1)&&((!(a22==1)&&(!(a27==1)&&((!(a0==1)&&(input==4))&&!(a18==1))))&&(a3==8)))&&!(a4==1)))&&(a12==10))&&!(a6==1)))){ + a0 = 1; + a22 = 1; + a3 = 6; + a27 = 1; + return -1; + } else if((((a5==1)&&((a6==1)&&(((a0==1)&&((a15==1)&&((a3==6)&&((((a12==9)&&((input==1)&&(a20==1)))&&!(a27==1))&&(a22==1)))))&&!(a4==1))))&&(a18==1))){ + if((a0==1)){ + a3 = 5; + a5 = 0; + a0 = 0; + a6 = 0; + a18 = 0; + a27 = 1; + a22 = 0; + }else{ + a3 = 7; + a6 = 0; + a22 = 0; + a4 = 1; + a15 = 0; + a12 = 11; + } + return 21; + } else if((!(a4==1)&&(((((((a12==12)&&(!(a5==1)&&((a27==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==3)))))&&!(a0==1))&&(a20==1))&&!(a15==1))&&(a6==1))&&(a3==5)))){ + a18 = 1; + a22 = 0; + a3 = 4; + a15 = 1; + a5 = 1; + return 21; + } else if((((a15==1)&&((!(a0==1)&&(!(a5==1)&&(((a20==1)&&(((a3==7)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==5)))&&(a4==1)))&&(a12==9))))&&(a6==1)))&&(a27==1))){ + a0 = 1; + a18 = 1; + a22 = 0; + a6 = 0; + a12 = 10; + a15 = 0; + a3 = 4; + return -1; + } else if((!(a27==1)&&((a0==1)&&(((((((((((a18==1)&&(a22==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5))))&&(input==5))&&!(a6==1))&&!(a15==1))&&!(a5==1))&&(a20==1))&&(a4==1))&&(a12==11))))){ + a15 = 1; + a22 = 0; + a27 = 1; + a18 = 1; + a3 = 4; + a4 = 0; + a0 = 0; + a5 = 1; + return -1; + } else if(((a3==7)&&(((!(a6==1)&&((!(a22==1)&&((((!(a27==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a15==1))&&(a5==1))&&!(a0==1)))&&(a20==1)))&&(a4==1))&&(a12==11)))){ + a0 = 1; + a27 = 1; + a12 = 8; + a18 = 0; + return -1; + } else if(((a15==1)&&((a5==1)&&((a0==1)&&((a3==4)&&((a12==11)&&((!(a6==1)&&((a22==1)&&((a4==1)&&(!(a27==1)&&(((a18==1)||!(a18==1))&&(input==5))))))&&(a20==1)))))))){ + a27 = 1; + a12 = 8; + a18 = 1; + a6 = 1; + return -1; + } else if((((((a12==8)&&((a27==1)&&(((((a20==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==3)))&&!(a5==1))&&!(a15==1))&&!(a0==1))))&&(a3==7))&&(a4==1))&&(a6==1))){ + a3 = 4; + a5 = 1; + a15 = 1; + a22 = 0; + a12 = 11; + a18 = 1; + a0 = 1; + return -1; + } else if(((a27==1)&&(((a12==12)&&(((((a6==1)&&((a20==1)&&((input==3)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5))))))&&(a5==1))&&(a0==1))&&!(a4==1)))&&(a15==1)))){ + a4 = 1; + a12 = 11; + a3 = 6; + a22 = 1; + a18 = 1; + a15 = 0; + a6 = 0; + a5 = 0; + return -1; + } else if((((a5==1)&&((((!(a4==1)&&((((((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==5))&&!(a15==1))&&(a20==1)))&&(a12==10))&&!(a0==1))&&!(a6==1)))&&!(a27==1))){ + a27 = 1; + a12 = 8; + a0 = 1; + a15 = 1; + a22 = 1; + a3 = 7; + a18 = 0; + a4 = 1; + return -1; + } else if((!(a22==1)&&((a18==1)&&((!(a0==1)&&((!(a27==1)&&((((a3==7)&&((a12==9)&&((input==5)&&!(a5==1))))&&!(a6==1))&&(a15==1)))&&!(a4==1)))&&(a20==1))))){ + a27 = 1; + a12 = 8; + a5 = 1; + a4 = 1; + a22 = 1; + a3 = 5; + a0 = 1; + a18 = 0; + return 26; + } else if((!(a5==1)&&(((((a20==1)&&(((a12==10)&&(((input==4)&&(((a3==6)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1))))))&&(a6==1)))&&!(a4==1)))&&(a0==1))&&!(a15==1))&&(a27==1)))){ + a22 = 1; + a12 = 11; + a18 = 1; + a15 = 1; + a3 = 6; + a5 = 1; + return 26; + } else if(((!(a4==1)&&((a3==4)&&(!(a0==1)&&(((a15==1)&&(((((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a5==1))&&(a12==8))&&!(a6==1)))&&(a20==1)))))&&(a27==1))){ + a22 = 1; + a5 = 1; + a6 = 1; + a4 = 1; + a0 = 1; + a18 = 1; + return -1; + } else if(((a15==1)&&(!(a0==1)&&(!(a27==1)&&((a22==1)&&((a5==1)&&((a12==9)&&(!(a18==1)&&((((a20==1)&&(!(a6==1)&&(input==5)))&&(a3==8))&&!(a4==1)))))))))){ + if((a15==1)){ + a12 = 8; + a3 = 7; + a27 = 1; + a4 = 1; + a0 = 1; + }else{ + a18 = 1; + a4 = 1; + a27 = 1; + a0 = 1; + a5 = 0; + a15 = 0; + a6 = 1; + } + return 26; + } else if((((!(a0==1)&&((a20==1)&&(((!(a4==1)&&((((!(a6==1)&&(input==1))&&!(a22==1))&&(a27==1))&&(a5==1)))&&(a3==7))&&!(a15==1))))&&!(a18==1))&&(a12==9))){ + a15 = 1; + a27 = 0; + a4 = 1; + a6 = 1; + a0 = 1; + a3 = 6; + a12 = 10; + return -1; + } else if((((a4==1)&&(!(a6==1)&&((!(a5==1)&&(((a0==1)&&(((a20==1)&&((!(a15==1)&&(input==5))&&(a22==1)))&&(a3==8)))&&(a18==1)))&&(a12==8))))&&(a27==1))){ + a12 = 11; + a4 = 0; + a15 = 1; + a5 = 1; + return 24; + } else if(((a3==7)&&(((((((!(a22==1)&&(!(a4==1)&&((!(a0==1)&&(input==4))&&(a27==1))))&&(a6==1))&&(a15==1))&&(a20==1))&&(a12==11))&&(a5==1))&&!(a18==1)))){ + a18 = 1; + a4 = 1; + a15 = 0; + a5 = 0; + a3 = 8; + a0 = 1; + a12 = 12; + return 21; + } else if(((((a6==1)&&(((a20==1)&&(((a15==1)&&((((input==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&!(a5==1))&&(a12==9)))&&(a27==1)))&&(a3==7)))&&!(a0==1))&&(a4==1))){ + a15 = 0; + a22 = 1; + a18 = 1; + a12 = 10; + a3 = 6; + a4 = 0; + return 26; + } else if(((!(a22==1)&&(((a3==6)&&(((a20==1)&&((((a5==1)&&(!(a4==1)&&((input==1)&&((a18==1)||!(a18==1)))))&&(a0==1))&&(a6==1)))&&(a27==1)))&&(a12==10)))&&!(a15==1))){ + a12 = 8; + a15 = 1; + a6 = 0; + a18 = 1; + return 21; + } else if((!(a15==1)&&(!(a27==1)&&(((a20==1)&&((a12==11)&&((a4==1)&&((a0==1)&&(!(a5==1)&&((input==4)&&((((a22==1)&&(a18==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==4))))))))))&&(a6==1))))){ + a5 = 1; + a4 = 0; + a3 = 4; + a27 = 1; + a22 = 0; + a15 = 1; + a18 = 1; + a12 = 10; + return -1; + } else if((((a4==1)&&((a20==1)&&((a12==11)&&(((((a27==1)&&(((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a5==1)))&&(a6==1))&&(a3==5))&&(a15==1)))))&&!(a0==1))){ + a18 = 0; + a22 = 0; + a15 = 0; + a0 = 1; + a6 = 0; + a12 = 12; + return 24; + } else if(((a3==6)&&(!(a15==1)&&(!(a4==1)&&(((a0==1)&&((!(a5==1)&&(((a20==1)&&(!(a18==1)&&((input==3)&&(a12==8))))&&(a22==1)))&&(a6==1)))&&!(a27==1)))))){ + a6 = 0; + a18 = 1; + a22 = 0; + a15 = 1; + return 24; + } else if((!(a22==1)&&((a20==1)&&((((a5==1)&&(((((((input==2)&&!(a15==1))&&(a27==1))&&(a3==5))&&!(a18==1))&&!(a6==1))&&(a12==11)))&&(a4==1))&&!(a0==1))))){ + a0 = 1; + a4 = 0; + a5 = 0; + a22 = 1; + a12 = 10; + a15 = 1; + a6 = 1; + return 21; + } else if((((!(a5==1)&&((a12==10)&&((((((a3==8)&&(((!(a22==1)&&!(a18==1))&&(a15==1))&&!(a4==1)))&&!(a6==1))||((((a4==1)&&(((a22==1)&&(a18==1))&&!(a15==1)))&&(a3==4))&&(a6==1)))&&(input==3))&&(a0==1))))&&(a20==1))&&(a27==1))){ + a6 = 1; + a3 = 6; + a22 = 1; + a5 = 1; + a15 = 0; + a4 = 1; + a18 = 1; + return -1; + } else if((!(a27==1)&&((a20==1)&&(((((a6==1)&&(((a4==1)&&(((((a22==1)&&(a18==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&(a18==1)))||((a3==7)&&(!(a18==1)&&!(a22==1)))))&&(input==3)))&&!(a15==1)))&&(a12==9))&&(a0==1))&&!(a5==1))))){ + a22 = 0; + a12 = 10; + a18 = 0; + a5 = 1; + a3 = 7; + a15 = 1; + a27 = 1; + return 26; + } else if(((a0==1)&&((a4==1)&&(((!(a6==1)&&(!(a15==1)&&(((a27==1)&&((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==5)))&&!(a5==1))))&&(a20==1))&&(a12==11))))){ + a15 = 1; + a18 = 1; + a3 = 5; + a12 = 10; + a4 = 0; + a22 = 1; + return -1; + } else if((!(a15==1)&&((a4==1)&&(!(a22==1)&&((a27==1)&&(((a5==1)&&((a6==1)&&(((a20==1)&&((a12==10)&&(((a18==1)||!(a18==1))&&(input==5))))&&(a0==1))))&&(a3==4))))))){ + a4 = 0; + a3 = 5; + a18 = 1; + a5 = 0; + a6 = 0; + return 26; + } return calculate_output19(input); + } + + int calculate_output19(int input) { + if(((((((a0==1)&&((input==5)&&(((((!(a4==1)&&((a15==1)&&((a18==1)&&!(a22==1))))&&(a3==8))&&!(a6==1))||(((((a15==1)&&(!(a22==1)&&!(a18==1)))&&!(a4==1))&&(a3==8))&&!(a6==1)))||((a6==1)&&(((((a18==1)&&(a22==1))&&!(a15==1))&&(a4==1))&&(a3==4))))))&&(a12==11))&&!(a27==1))&&(a20==1))&&(a5==1))){ + a27 = 1; + a15 = 0; + a6 = 1; + a22 = 0; + a18 = 1; + a4 = 0; + a3 = 4; + return 24; + } else if(((!(a0==1)&&((a15==1)&&((a20==1)&&((((input==2)&&(((!(a6==1)&&((a3==8)&&(((a18==1)&&!(a22==1))&&(a4==1))))||(!(a6==1)&&((a3==8)&&((a4==1)&&(!(a22==1)&&!(a18==1))))))||((a6==1)&&((((a22==1)&&(a18==1))&&!(a4==1))&&(a3==4)))))&&(a27==1))&&!(a5==1)))))&&(a12==11))){ + a4 = 1; + a5 = 1; + a18 = 1; + a6 = 1; + a3 = 4; + a0 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if(((!(a27==1)&&(((a4==1)&&((a5==1)&&(!(a0==1)&&(((a20==1)&&(((((a22==1)&&!(a18==1))&&(a3==5))||(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1)))))&&(input==2)))&&(a6==1)))))&&(a12==11)))&&!(a15==1))){ + a0 = 1; + a27 = 1; + a22 = 1; + a4 = 0; + a3 = 4; + a12 = 8; + a18 = 1; + a15 = 1; + return -1; + } else if((!(a5==1)&&((a27==1)&&((a20==1)&&((a22==1)&&(((a15==1)&&(((((a12==9)&&((a18==1)&&(input==4)))&&(a3==6))&&(a4==1))&&!(a0==1)))&&(a6==1))))))){ + a4 = 0; + a0 = 1; + a18 = 0; + a6 = 0; + a12 = 11; + a3 = 7; + return 21; + } else if(((a3==5)&&((!(a4==1)&&(((a5==1)&&(((a20==1)&&((a0==1)&&((a27==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==6)))))&&!(a6==1)))&&(a15==1)))&&(a12==10)))){ + a22 = 0; + a18 = 0; + a6 = 1; + a3 = 6; + a4 = 1; + return -1; + } else if(((a5==1)&&(!(a15==1)&&(((a12==10)&&((a20==1)&&((a27==1)&&((((a6==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==6)))&&(a3==7))&&(a0==1)))))&&(a4==1))))){ + a3 = 4; + a22 = 0; + a15 = 1; + a6 = 0; + a18 = 0; + return -1; + } else if(((a0==1)&&((a20==1)&&(((((((!(a5==1)&&((a22==1)&&((input==1)&&(a3==5))))&&(a6==1))&&(a12==11))&&!(a4==1))&&!(a18==1))&&(a15==1))&&(a27==1))))){ + if((a5==1)){ + a3 = 8; + a0 = 0; + a5 = 1; + a6 = 0; + }else{ + a18 = 1; + a22 = 0; + a3 = 4; + a6 = 0; + a15 = 0; + a5 = 1; + } + return 24; + } else if(((((a3==5)&&((!(a27==1)&&((a12==9)&&(((a15==1)&&((a6==1)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==3))))&&!(a4==1))))&&!(a5==1)))&&!(a0==1))&&(a20==1))){ + if((a20==1)){ + a22 = 0; + a5 = 1; + a27 = 1; + a18 = 1; + a12 = 8; + a4 = 1; + a6 = 0; + a3 = 6; + a0 = 1; + }else{ + a5 = 1; + a18 = 1; + a12 = 8; + a3 = 7; + a0 = 1; + a22 = 1; + a4 = 1; + a27 = 1; + } + return 26; + } else if((((((a3==8)&&((a0==1)&&((((a12==10)&&((a20==1)&&((input==4)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&!(a27==1))&&(a5==1))))&&!(a4==1))&&!(a6==1))&&(a15==1))){ + if((a0==1)){ + a18 = 1; + a22 = 0; + a12 = 12; + a4 = 1; + a15 = 0; + a3 = 5; + a6 = 1; + a5 = 0; + }else{ + a22 = 0; + a27 = 1; + a12 = 11; + a18 = 1; + a6 = 1; + a3 = 6; + } + return 21; + } else if(((((((((a12==12)&&((a20==1)&&((((a0==1)&&(input==3))&&!(a4==1))&&!(a6==1))))&&(a18==1))&&!(a15==1))&&!(a27==1))&&!(a5==1))&&(a3==4))&&!(a22==1))){ + a15 = 1; + a5 = 1; + a12 = 8; + a4 = 1; + a27 = 1; + a22 = 1; + a6 = 1; + return -1; + } else if((!(a5==1)&&(!(a6==1)&&((a27==1)&&((a4==1)&&(((a20==1)&&(!(a22==1)&&((a12==8)&&(((a3==5)&&((input==6)&&((a18==1)||!(a18==1))))&&!(a0==1)))))&&!(a15==1))))))){ + a27 = 0; + a15 = 1; + a0 = 1; + a18 = 0; + a12 = 9; + a3 = 7; + return 21; + } else if(((((a15==1)&&((a5==1)&&((a12==10)&&((((((((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==5))&&!(a4==1))&&(a27==1))&&!(a6==1)))))&&(a20==1))&&(a0==1))){ + a3 = 5; + a22 = 1; + a5 = 0; + a18 = 0; + a27 = 0; + a12 = 9; + return 21; + } else if((((a20==1)&&((a6==1)&&(((((a3==7)&&(!(a15==1)&&((a0==1)&&((input==5)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))&&(a12==12))&&!(a4==1))&&!(a5==1))))&&!(a27==1))){ + a22 = 1; + a27 = 1; + a4 = 1; + a15 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + a5 = 1; + return -1; + } else if((!(a22==1)&&(!(a4==1)&&((a5==1)&&(((a12==12)&&(((a20==1)&&((a3==6)&&(((a15==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a27==1))))&&(a6==1)))&&(a0==1)))))){ + a3 = 5; + a15 = 0; + a12 = 11; + a22 = 1; + a6 = 0; + a18 = 1; + a4 = 1; + return 24; + } else if((((a20==1)&&((((((a0==1)&&(!(a15==1)&&((a4==1)&&((input==3)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))&&(a27==1))&&(a12==11))&&(a3==6))&&(a5==1)))&&!(a6==1))){ + if((a22==1)){ + a3 = 7; + a12 = 12; + a22 = 0; + a18 = 0; + a4 = 0; + a5 = 0; + a27 = 0; + }else{ + a0 = 0; + a6 = 1; + a3 = 7; + a4 = 0; + a18 = 0; + a22 = 0; + } + return -1; + } else if((!(a22==1)&&(((a27==1)&&(((a6==1)&&(!(a5==1)&&((((a20==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&!(a0==1)))&&(a3==4))&&(a12==10))))&&(a4==1)))&&!(a15==1)))){ + a12 = 11; + a5 = 1; + a0 = 1; + a18 = 0; + a22 = 1; + a3 = 6; + a15 = 1; + a6 = 0; + return 26; + } else if(((!(a15==1)&&((a0==1)&&(!(a6==1)&&((a5==1)&&((a4==1)&&(!(a27==1)&&(((input==6)&&(((a3==8)&&((a22==1)&&!(a18==1)))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==8)))))&&(a12==12))))))))&&(a20==1))){ + a22 = 1; + a6 = 1; + a0 = 0; + a12 = 10; + a18 = 1; + a3 = 8; + a4 = 0; + a5 = 0; + a27 = 1; + return 21; + } else if((((a6==1)&&(!(a27==1)&&((a0==1)&&((((!(a4==1)&&(((((!(a22==1)&&(a18==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7)))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==6)))&&(a15==1))&&(a20==1))&&(a12==10)))))&&!(a5==1))){ + a22 = 1; + a4 = 1; + a6 = 0; + a12 = 11; + a15 = 0; + a27 = 1; + a3 = 7; + a18 = 1; + return 26; + } else if(((a27==1)&&(!(a4==1)&&((a20==1)&&((((a12==8)&&((((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==4))&&(a3==5))&&(a0==1))&&(a5==1)))&&!(a15==1))&&!(a6==1)))))){ + a15 = 1; + a18 = 1; + a6 = 1; + a3 = 4; + a4 = 1; + a22 = 1; + return -1; + } else if(((((((!(a4==1)&&((((((a3==8)&&(input==1))&&(a20==1))&&(a12==11))&&(a0==1))&&(a15==1)))&&!(a22==1))&&(a18==1))&&(a6==1))&&(a5==1))&&!(a27==1))){ + if((a27==1)){ + a5 = 0; + a22 = 1; + a6 = 0; + a12 = 12; + a3 = 7; + }else{ + a22 = 1; + a3 = 5; + a27 = 1; + a6 = 0; + a12 = 10; + a4 = 1; + } + return -1; + } else if((!(a27==1)&&(!(a5==1)&&((!(a4==1)&&((a20==1)&&(((a15==1)&&((input==5)&&(((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1)))))))&&(a0==1))))&&(a12==11))))){ + a18 = 1; + a22 = 1; + a3 = 4; + a5 = 1; + a12 = 8; + a27 = 1; + a4 = 1; + a6 = 1; + return -1; + } else if(((a6==1)&&((a15==1)&&((!(a0==1)&&((((a3==5)&&(((a20==1)&&((a27==1)&&((input==1)&&(a5==1))))&&(a12==9)))&&(a18==1))&&!(a4==1)))&&(a22==1))))){ + a15 = 0; + a12 = 12; + a3 = 6; + a0 = 1; + a6 = 0; + return 26; + } else if(((((a22==1)&&(((((((a27==1)&&((((a18==1)||!(a18==1))&&(input==2))&&(a3==8)))&&(a4==1))&&(a20==1))&&(a12==9))&&!(a15==1))&&(a6==1)))&&(a0==1))&&(a5==1))){ + a3 = 4; + a12 = 8; + a15 = 1; + a18 = 1; + return -1; + } else if(((a22==1)&&((!(a27==1)&&(!(a0==1)&&((a4==1)&&((a12==11)&&((a3==4)&&((a6==1)&&((((input==4)&&!(a15==1))&&!(a5==1))&&(a20==1))))))))&&!(a18==1)))){ + if((a18==1)){ + a4 = 0; + a0 = 1; + a27 = 1; + a6 = 0; + a22 = 0; + a5 = 1; + a12 = 12; + a15 = 1; + a18 = 1; + }else{ + a0 = 1; + a6 = 0; + a18 = 1; + a5 = 1; + a27 = 1; + a12 = 8; + a15 = 1; + a3 = 7; + } + return 21; + } else if((!(a6==1)&&(!(a0==1)&&((!(a5==1)&&((a27==1)&&((((((input==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a20==1))&&(a12==8))&&(a4==1))&&!(a15==1))))&&(a3==7))))){ + a22 = 0; + a5 = 1; + a3 = 8; + a12 = 12; + a0 = 1; + a18 = 0; + a15 = 1; + return 24; + } else if(((a27==1)&&((((a5==1)&&((((a15==1)&&(((((input==6)&&((a18==1)||!(a18==1)))&&(a20==1))&&(a6==1))&&(a4==1)))&&!(a22==1))&&(a3==8)))&&(a12==10))&&(a0==1)))){ + a18 = 1; + return 21; + } else if(((!(a5==1)&&((a20==1)&&(((a6==1)&&((a27==1)&&(!(a0==1)&&(((input==6)&&(((a3==5)&&(!(a18==1)&&(a22==1)))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5)))))&&(a12==12)))))&&(a15==1))))&&(a4==1))){ + a22 = 1; + a18 = 0; + a12 = 11; + a27 = 0; + a3 = 8; + return 26; + } else if(((((a4==1)&&((((a3==5)&&((!(a27==1)&&(((input==4)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a12==9)))&&!(a6==1)))&&(a20==1))&&(a15==1)))&&(a5==1))&&!(a0==1))){ + a0 = 1; + a12 = 8; + a27 = 1; + a18 = 1; + a4 = 0; + a6 = 1; + a22 = 0; + return -1; + } else if((((!(a6==1)&&((((((a27==1)&&(((a0==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a20==1)))&&!(a4==1))&&!(a15==1))&&!(a5==1))&&(a3==7)))&&!(a22==1))&&(a12==10))){ + a3 = 5; + a18 = 1; + a4 = 1; + a12 = 8; + a5 = 1; + return 21; + } else if(((a15==1)&&(((!(a0==1)&&((((!(a6==1)&&(((a4==1)&&((a3==6)&&(input==5)))&&!(a27==1)))&&(a5==1))&&(a22==1))&&(a18==1)))&&(a20==1))&&(a12==9)))){ + a12 = 8; + a27 = 1; + a3 = 8; + a22 = 0; + a6 = 1; + a0 = 1; + a4 = 0; + return -1; + } else if((!(a0==1)&&((!(a15==1)&&((a3==5)&&((a27==1)&&(!(a5==1)&&((a12==9)&&((a6==1)&&((a20==1)&&((input==4)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))))))))))&&(a4==1)))){ + a15 = 1; + a12 = 8; + a18 = 1; + a6 = 0; + a22 = 1; + a3 = 8; + a4 = 0; + a0 = 1; + return 26; + } else if(((a20==1)&&((a15==1)&&(!(a18==1)&&(((((((a12==11)&&((a22==1)&&((input==6)&&(a4==1))))&&!(a0==1))&&!(a6==1))&&!(a27==1))&&(a5==1))&&(a3==5)))))){ + if((a5==1)){ + a12 = 8; + a6 = 1; + a3 = 6; + a0 = 1; + a22 = 0; + a27 = 1; + a4 = 0; + }else{ + a3 = 4; + a12 = 8; + a0 = 1; + a6 = 1; + a18 = 1; + a27 = 1; + } + return 21; + } else if((((!(a0==1)&&(((((((input==6)&&(((a3==7)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1))))))&&!(a6==1))&&!(a4==1))&&(a20==1))&&(a15==1))&&(a12==10)))&&!(a27==1))&&!(a5==1))){ + a12 = 9; + a6 = 1; + a18 = 1; + a15 = 0; + a3 = 7; + a4 = 1; + a5 = 1; + a22 = 0; + return -1; + } else if(((((a12==8)&&(((((a4==1)&&(((a20==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==6)))&&!(a15==1)))&&(a5==1))&&(a3==8))&&(a0==1)))&&(a27==1))&&!(a6==1))){ + if((a20==1)){ + a22 = 1; + a3 = 6; + a18 = 0; + a0 = 0; + a12 = 10; + a4 = 0; + }else{ + a12 = 9; + a15 = 1; + a3 = 7; + a22 = 0; + a18 = 1; + a6 = 1; + } + return 26; + } else if((((((a3==7)&&((a20==1)&&(!(a15==1)&&((((!(a6==1)&&((a4==1)&&(input==6)))&&(a27==1))&&(a0==1))&&(a5==1)))))&&(a12==9))&&(a22==1))&&!(a18==1))){ + a15 = 1; + a6 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + return -1; + } else if(((!(a15==1)&&(((a4==1)&&(((a27==1)&&((((a12==9)&&((input==2)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&(a20==1))&&(a3==7)))&&(a0==1)))&&(a5==1)))&&(a6==1))){ + a18 = 1; + a12 = 8; + a3 = 4; + a15 = 1; + a22 = 1; + return -1; + } else if((!(a22==1)&&(!(a15==1)&&((a12==9)&&((a20==1)&&(((!(a18==1)&&(!(a0==1)&&(((a6==1)&&((input==2)&&!(a4==1)))&&(a27==1))))&&!(a5==1))&&(a3==8))))))){ + a18 = 1; + a5 = 1; + a12 = 11; + a15 = 1; + a0 = 1; + a6 = 0; + a4 = 1; + return 26; + } else if((!(a4==1)&&(((a20==1)&&((a12==12)&&((a15==1)&&(((a0==1)&&((a6==1)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==6))&&!(a27==1))))&&!(a5==1)))))&&(a3==6)))){ + a18 = 0; + a15 = 0; + a6 = 0; + a12 = 9; + a22 = 0; + a4 = 1; + a3 = 4; + return 21; + } else if(((((!(a15==1)&&((a20==1)&&((((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==4))&&(a12==8))&&!(a6==1))&&(a0==1))&&(a3==7))))&&(a5==1))&&!(a4==1))&&!(a27==1))){ + a3 = 4; + a6 = 1; + a4 = 1; + a27 = 1; + a22 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if((((a0==1)&&((((((a12==8)&&((a3==7)&&(((a5==1)&&((a15==1)&&(input==4)))&&(a20==1))))&&(a18==1))&&!(a6==1))&&!(a27==1))&&(a4==1)))&&!(a22==1))){ + a27 = 1; + a6 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((((a0==1)&&(((a6==1)&&(((((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==5))&&!(a15==1))&&(a3==4))&&!(a4==1))&&(a27==1)))&&(a5==1)))&&(a20==1))&&(a12==10))){ + a22 = 1; + a12 = 11; + a15 = 1; + a18 = 1; + a5 = 0; + a3 = 7; + a4 = 1; + return 26; + } else if((!(a15==1)&&(((((a3==8)&&((!(a5==1)&&(((a6==1)&&(!(a18==1)&&(!(a0==1)&&(input==6))))&&(a12==12)))&&!(a4==1)))&&!(a22==1))&&(a27==1))&&(a20==1)))){ + a12 = 9; + a22 = 1; + a5 = 1; + a3 = 4; + a6 = 0; + a0 = 1; + return -1; + } else if((((((a4==1)&&((a20==1)&&((a22==1)&&((!(a0==1)&&(((a6==1)&&((input==1)&&(a27==1)))&&(a12==12)))&&(a3==7)))))&&!(a5==1))&&(a18==1))&&(a15==1))){ + if((a27==1)){ + a4 = 0; + a3 = 4; + a0 = 1; + a12 = 8; + a5 = 1; + }else{ + a5 = 1; + a6 = 0; + a0 = 1; + a3 = 4; + a12 = 8; + } + return 26; + } else if(((a20==1)&&((((a3==8)&&(!(a18==1)&&((a5==1)&&(!(a0==1)&&((a4==1)&&((a22==1)&&(((input==2)&&(a15==1))&&(a27==1))))))))&&(a6==1))&&(a12==12)))){ + a0 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((((a0==1)&&(!(a15==1)&&(((a20==1)&&(((a5==1)&&(((a12==8)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a4==1)))&&(a6==1)))&&(a3==6))))&&!(a22==1))&&!(a27==1))){ + if((a20==1)){ + a5 = 0; + a0 = 0; + a15 = 1; + a27 = 1; + a3 = 5; + a18 = 0; + a12 = 9; + }else{ + a18 = 1; + a15 = 1; + a12 = 11; + a6 = 0; + a22 = 1; + a3 = 5; + a5 = 0; + } + return 26; + } else if(((a5==1)&&(!(a27==1)&&(((a4==1)&&(((a6==1)&&(!(a22==1)&&((a0==1)&&((((input==3)&&((a18==1)||!(a18==1)))&&!(a15==1))&&(a3==8)))))&&(a20==1)))&&(a12==12))))){ + a5 = 0; + a3 = 7; + a22 = 1; + a12 = 11; + a18 = 0; + return -1; + } else if((!(a0==1)&&((a12==9)&&((((((a6==1)&&(((a15==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==4)))&&(a3==6)))&&(a27==1))&&(a5==1))&&!(a4==1))&&(a20==1))))){ + a15 = 0; + a12 = 11; + a18 = 0; + a3 = 7; + a0 = 1; + a22 = 0; + a27 = 0; + a4 = 1; + a5 = 0; + return 26; + } else if(((((a18==1)&&(!(a22==1)&&((!(a27==1)&&((a0==1)&&(((a4==1)&&((a20==1)&&((input==2)&&!(a6==1))))&&(a3==5))))&&(a5==1))))&&(a15==1))&&(a12==8))){ + a22 = 1; + a27 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if(((!(a15==1)&&((a0==1)&&((a12==10)&&(((a22==1)&&(!(a4==1)&&(((a27==1)&&((a6==1)&&(((a18==1)||!(a18==1))&&(input==3))))&&(a20==1))))&&(a3==6)))))&&(a5==1))){ + a4 = 1; + a18 = 0; + a6 = 0; + a22 = 0; + return -1; + } else if((!(a0==1)&&(((a20==1)&&((((a12==10)&&((!(a4==1)&&(!(a27==1)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==6))))&&(a5==1)))&&(a6==1))&&(a15==1)))&&(a3==6)))){ + a22 = 1; + a12 = 8; + a3 = 8; + a18 = 1; + a0 = 1; + a4 = 1; + a27 = 1; + return 26; + } else if(((a27==1)&&((a12==9)&&((!(a4==1)&&((((((a15==1)&&(!(a0==1)&&((input==4)&&((a18==1)||!(a18==1)))))&&!(a6==1))&&(a5==1))&&(a3==8))&&!(a22==1)))&&(a20==1))))){ + if((a18==1)){ + a5 = 0; + a3 = 6; + a18 = 0; + a4 = 1; + }else{ + a3 = 7; + a22 = 1; + a0 = 1; + a18 = 1; + a12 = 11; + } + return -1; + } else if((!(a22==1)&&(((((a4==1)&&((a3==4)&&(((a27==1)&&((!(a5==1)&&((input==6)&&(a18==1)))&&!(a0==1)))&&(a15==1))))&&(a12==10))&&(a20==1))&&!(a6==1)))){ + a5 = 1; + a12 = 11; + a4 = 0; + a0 = 1; + a27 = 0; + a6 = 1; + a3 = 7; + a22 = 1; + return 24; + } else if((!(a15==1)&&(((a3==4)&&((!(a18==1)&&((a6==1)&&((a4==1)&&((a20==1)&&((a0==1)&&((a22==1)&&((a5==1)&&(input==6))))))))&&(a12==10)))&&(a27==1)))){ + a5 = 0; + a12 = 11; + a18 = 1; + a3 = 6; + return 26; + } else if(((a12==10)&&((!(a27==1)&&(((((((!(a6==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a3==4))&&!(a5==1))&&(a4==1))&&!(a22==1))&&!(a15==1))&&(a20==1)))&&!(a0==1)))){ + if((a12==10)){ + a15 = 1; + a27 = 1; + a5 = 1; + a3 = 8; + a12 = 8; + a18 = 0; + }else{ + a18 = 1; + a3 = 5; + a27 = 1; + a15 = 1; + a5 = 1; + a0 = 1; + a12 = 8; + } + return -1; + } else if((((a4==1)&&((a15==1)&&(!(a6==1)&&((a22==1)&&(((a0==1)&&(((a18==1)&&((a12==9)&&((input==4)&&(a3==8))))&&(a5==1)))&&(a20==1))))))&&(a27==1))){ + a6 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if((!(a0==1)&&((!(a15==1)&&(!(a22==1)&&((a20==1)&&((!(a5==1)&&(((a12==10)&&(((input==2)&&(a3==7))&&(a27==1)))&&(a6==1)))&&!(a18==1)))))&&!(a4==1)))){ + a0 = 1; + a12 = 11; + a27 = 0; + a3 = 5; + a22 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if((((a6==1)&&((!(a27==1)&&(!(a5==1)&&((a20==1)&&((((((a3==8)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7))))&&(input==5))&&!(a15==1))&&!(a0==1)))))&&!(a4==1)))&&(a12==11))){ + if((a18==1)){ + a4 = 1; + a5 = 1; + a0 = 1; + a6 = 0; + a18 = 0; + a27 = 1; + a22 = 0; + a15 = 1; + a3 = 5; + a12 = 8; + }else{ + a22 = 0; + a12 = 10; + a27 = 1; + a6 = 0; + a15 = 1; + a0 = 1; + a4 = 1; + a18 = 0; + a3 = 8; + } + return 26; + } else if(((a4==1)&&((a27==1)&&((((a3==5)&&(((((a0==1)&&((a5==1)&&(((a18==1)||!(a18==1))&&(input==3))))&&(a22==1))&&(a12==11))&&(a20==1)))&&!(a6==1))&&(a15==1))))){ + a18 = 1; + a15 = 0; + a12 = 10; + a5 = 0; + a6 = 1; + a3 = 6; + a22 = 0; + a27 = 0; + return 21; + } else if((((a20==1)&&(((((a4==1)&&(!(a5==1)&&(((((a3==5)&&(!(a18==1)&&(a22==1)))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1)))))&&(input==2))&&!(a6==1))))&&(a15==1))&&(a0==1))&&(a27==1)))&&(a12==8))){ + a15 = 0; + a4 = 0; + a18 = 1; + a3 = 6; + a22 = 1; + a12 = 9; + return 21; + } else if(((((!(a18==1)&&(!(a6==1)&&(((!(a5==1)&&(!(a4==1)&&(((input==4)&&(a3==7))&&!(a0==1))))&&(a15==1))&&!(a22==1))))&&(a12==10))&&(a20==1))&&(a27==1))){ + a22 = 1; + a12 = 9; + a15 = 0; + a3 = 8; + a5 = 1; + a4 = 1; + a0 = 1; + return 21; + } else if(((a6==1)&&(!(a22==1)&&((((((a27==1)&&((a4==1)&&(((a15==1)&&((a18==1)&&(input==3)))&&!(a5==1))))&&(a12==9))&&(a0==1))&&(a3==7))&&(a20==1))))){ + a5 = 1; + a12 = 8; + a6 = 0; + a27 = 0; + a3 = 5; + a15 = 0; + return 26; + } else if(((a6==1)&&(((!(a4==1)&&((a27==1)&&((((a0==1)&&((input==4)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))))&&(a20==1))&&(a15==1))))&&(a12==12))&&!(a5==1)))){ + a12 = 8; + a4 = 1; + a3 = 4; + a5 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if((((a20==1)&&((((a0==1)&&((a12==8)&&(!(a4==1)&&((((!(a6==1)&&(input==5))&&(a3==7))&&!(a15==1))&&!(a27==1)))))&&!(a18==1))&&!(a22==1)))&&!(a5==1))){ + a15 = 1; + a18 = 1; + a12 = 10; + a3 = 8; + a5 = 1; + return 26; + } else if(((a22==1)&&(!(a4==1)&&(((((a3==5)&&(!(a5==1)&&((a12==8)&&((((input==6)&&!(a0==1))&&(a6==1))&&!(a15==1)))))&&(a18==1))&&!(a27==1))&&(a20==1))))){ + if((a0==1)){ + a5 = 1; + a0 = 1; + a22 = 0; + a27 = 1; + a15 = 1; + }else{ + a12 = 12; + a22 = 0; + a6 = 0; + a3 = 4; + a27 = 1; + } + return 21; + } else if(((a20==1)&&((((((a12==10)&&(!(a4==1)&&(((input==1)&&((((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1))))||((!(a18==1)&&(a22==1))&&(a3==6))))&&(a15==1))))&&!(a0==1))&&(a27==1))&&(a5==1))&&!(a6==1)))){ + a0 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a6 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if((((!(a15==1)&&((a0==1)&&((((!(a5==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==4))&&!(a27==1)))&&(a3==5))&&(a4==1))&&!(a6==1))))&&(a20==1))&&(a12==12))){ + if((a4==1)){ + a18 = 0; + a22 = 0; + }else{ + a6 = 1; + a12 = 9; + a22 = 0; + a18 = 0; + a3 = 6; + } + return -1; + } else if((!(a0==1)&&(((!(a6==1)&&((a12==12)&&((a4==1)&&(!(a5==1)&&((a27==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==6))&&(a3==4)))))))&&(a20==1))&&!(a15==1)))){ + a12 = 8; + a15 = 1; + a3 = 7; + a5 = 1; + a0 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((a20==1)&&(((a18==1)&&(((a4==1)&&(!(a22==1)&&(!(a27==1)&&(((a3==6)&&((a12==10)&&((a6==1)&&(input==4))))&&!(a15==1)))))&&!(a5==1)))&&(a0==1)))){ + a3 = 4; + a22 = 1; + a5 = 1; + a12 = 8; + a27 = 1; + a15 = 1; + return -1; + } else if(((a27==1)&&((a5==1)&&(((a20==1)&&((((a22==1)&&((((a3==8)&&((input==2)&&((a18==1)||!(a18==1))))&&(a12==11))&&!(a6==1)))&&(a0==1))&&!(a15==1)))&&!(a4==1))))){ + a12 = 10; + a3 = 4; + a15 = 1; + a6 = 1; + a18 = 0; + return -1; + } else if((((a6==1)&&(((!(a15==1)&&(!(a0==1)&&((((input==3)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1))))||(((a22==1)&&!(a18==1))&&(a3==6))))&&!(a4==1))&&(a20==1))))&&(a5==1))&&!(a27==1)))&&(a12==9))){ + a22 = 0; + a15 = 1; + a12 = 8; + a3 = 6; + a27 = 1; + a6 = 0; + a4 = 1; + a0 = 1; + a18 = 1; + return 26; + } else if((((((a12==8)&&((!(a18==1)&&((((((a6==1)&&(input==4))&&(a22==1))&&(a27==1))&&(a5==1))&&(a20==1)))&&(a0==1)))&&!(a4==1))&&!(a15==1))&&(a3==5))){ + a3 = 4; + a4 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if(((((!(a15==1)&&((a4==1)&&((((!(a0==1)&&((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a3==8))&&(a5==1))&&(a20==1))))&&(a27==1))&&(a12==9))&&!(a6==1))){ + a0 = 1; + a15 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if((((a20==1)&&(!(a27==1)&&(!(a0==1)&&((!(a4==1)&&(((((((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a22==1)&&(a18==1))))||((a3==6)&&((a22==1)&&!(a18==1))))&&(input==4))&&(a12==11))&&!(a6==1)))&&(a5==1)))))&&(a15==1))){ + a0 = 1; + a3 = 6; + a22 = 1; + a18 = 1; + a27 = 1; + a4 = 1; + a12 = 8; + a6 = 1; + return -1; + } else if((!(a5==1)&&((a22==1)&&((((a15==1)&&(!(a18==1)&&((a3==4)&&(((a4==1)&&(((input==4)&&!(a0==1))&&!(a6==1)))&&(a20==1)))))&&(a12==10))&&(a27==1))))){ + a6 = 1; + a4 = 0; + a3 = 7; + a12 = 11; + a0 = 1; + return 24; + } else if(((((a15==1)&&((a3==4)&&((((((!(a22==1)&&((input==5)&&(a12==8)))&&!(a18==1))&&!(a6==1))&&!(a5==1))&&!(a0==1))&&(a20==1))))&&(a4==1))&&!(a27==1))){ + a6 = 1; + a5 = 1; + a18 = 1; + a3 = 5; + a0 = 1; + return -1; + } else if((!(a4==1)&&((a27==1)&&(((((!(a0==1)&&((a12==10)&&((input==6)&&(((!(a18==1)&&!(a22==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8))))))&&(a6==1))&&(a20==1))&&(a5==1))&&(a15==1))))){ + a12 = 8; + a4 = 1; + a18 = 1; + a0 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((a20==1)&&((a0==1)&&(((((a18==1)&&((a12==12)&&((a6==1)&&(!(a5==1)&&((a22==1)&&(!(a27==1)&&(input==4)))))))&&!(a4==1))&&(a3==5))&&(a15==1))))){ + a4 = 1; + a18 = 0; + a12 = 9; + a3 = 7; + a15 = 0; + return 26; + } else if((((((a0==1)&&(((a5==1)&&((a6==1)&&((((((a18==1)||!(a18==1))&&(input==5))&&(a4==1))&&!(a22==1))&&(a3==4))))&&!(a15==1)))&&(a12==9))&&(a20==1))&&!(a27==1))){ + a22 = 1; + a15 = 1; + a18 = 1; + a12 = 8; + a27 = 1; + return -1; + } else if((((a20==1)&&((!(a5==1)&&((a27==1)&&(!(a0==1)&&((((a18==1)&&((a12==9)&&((a22==1)&&(input==3))))&&(a3==6))&&(a6==1)))))&&!(a15==1)))&&!(a4==1))){ + a27 = 0; + a0 = 1; + a18 = 0; + a22 = 0; + a12 = 8; + return 24; + } else if((((a6==1)&&(((a3==5)&&(!(a15==1)&&(((a12==11)&&((a0==1)&&((!(a22==1)&&((a20==1)&&(input==6)))&&(a5==1))))&&!(a27==1))))&&!(a18==1)))&&!(a4==1))){ + a3 = 7; + a6 = 0; + a12 = 12; + a5 = 0; + a22 = 1; + return 21; + } else if((!(a5==1)&&((!(a6==1)&&((a20==1)&&((a0==1)&&(!(a4==1)&&((a15==1)&&((((input==6)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&(a3==6))&&(a12==12)))))))&&(a27==1)))){ + a18 = 0; + a22 = 0; + a4 = 1; + a6 = 1; + return 24; + } else if((((((a22==1)&&(((a0==1)&&((a5==1)&&(((a20==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a12==10)))&&(a27==1))))&&(a3==8)))&&(a15==1))&&(a4==1))&&!(a6==1))){ + a3 = 5; + a4 = 0; + a18 = 0; + a12 = 8; + return 24; + } else if((((((((a4==1)&&((a0==1)&&((a6==1)&&((input==3)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==6)))))))&&(a20==1))&&(a5==1))&&!(a15==1))&&(a27==1))&&(a12==11))){ + a3 = 8; + a15 = 1; + a12 = 10; + a22 = 1; + a18 = 0; + return -1; + } else if(((((((a0==1)&&((a5==1)&&(((a4==1)&&((input==3)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5)))||(((a22==1)&&(a18==1))&&(a3==6)))))&&(a12==10))))&&(a27==1))&&(a20==1))&&(a6==1))&&(a15==1))){ + a22 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + return -1; + } else if((((a20==1)&&((((((a5==1)&&(((input==1)&&((((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a22==1)&&(a18==1))))||((a3==7)&&((a22==1)&&!(a18==1)))))&&!(a4==1)))&&!(a6==1))&&!(a27==1))&&!(a0==1))&&(a15==1)))&&(a12==9))){ + a6 = 1; + a12 = 8; + a27 = 1; + a4 = 1; + a22 = 0; + a18 = 0; + a0 = 1; + a3 = 5; + return -1; + } else if(((!(a0==1)&&(!(a5==1)&&((a22==1)&&((!(a15==1)&&((a12==9)&&((!(a4==1)&&((a3==4)&&(((a18==1)||!(a18==1))&&(input==2))))&&!(a27==1))))&&!(a6==1)))))&&(a20==1))){ + a18 = 1; + a15 = 1; + a27 = 1; + a0 = 1; + a4 = 1; + a12 = 8; + a6 = 1; + a5 = 1; + return 21; + } else if(((a27==1)&&(((((((a6==1)&&(!(a4==1)&&((a22==1)&&(!(a0==1)&&((a12==9)&&(input==6))))))&&(a20==1))&&(a5==1))&&(a15==1))&&(a18==1))&&(a3==5)))){ + a5 = 0; + a12 = 11; + a6 = 0; + a3 = 4; + a0 = 1; + a18 = 0; + a22 = 0; + a15 = 0; + return 26; + } else if((!(a27==1)&&(!(a22==1)&&(!(a15==1)&&(!(a5==1)&&(!(a4==1)&&((a0==1)&&((a3==4)&&((a6==1)&&((a12==11)&&((a20==1)&&(((a18==1)||!(a18==1))&&(input==2))))))))))))){ + a5 = 1; + a27 = 1; + a18 = 0; + a6 = 0; + return 26; + } else if((((a3==5)&&(!(a18==1)&&(!(a0==1)&&(((a12==9)&&((!(a6==1)&&((a22==1)&&(!(a5==1)&&(!(a15==1)&&(input==2)))))&&(a4==1)))&&(a20==1)))))&&!(a27==1))){ + a27 = 1; + a3 = 7; + a12 = 11; + a22 = 0; + a0 = 1; + a15 = 1; + a18 = 1; + a5 = 1; + a6 = 1; + return 21; + } else if(((((((a5==1)&&((a18==1)&&(((!(a27==1)&&(((a22==1)&&(input==6))&&(a0==1)))&&(a20==1))&&(a6==1))))&&(a4==1))&&(a15==1))&&(a12==9))&&(a3==6))){ + a22 = 0; + a12 = 11; + a3 = 4; + a6 = 0; + a5 = 0; + a4 = 0; + a15 = 0; + return 26; + } else if(((((a15==1)&&(!(a18==1)&&((((a22==1)&&((((a3==4)&&((a12==8)&&(input==3)))&&!(a6==1))&&!(a4==1)))&&(a0==1))&&(a20==1))))&&(a5==1))&&(a27==1))){ + a3 = 6; + a22 = 0; + return 24; + } else if(((((a4==1)&&(!(a6==1)&&(((a0==1)&&(((a20==1)&&(((a5==1)&&((input==2)&&((a18==1)||!(a18==1))))&&(a12==11)))&&(a15==1)))&&!(a22==1))))&&(a27==1))&&(a3==6))){ + a3 = 5; + a6 = 1; + a18 = 0; + a12 = 10; + a15 = 0; + a5 = 0; + a4 = 0; + return -1; + } else if(((a15==1)&&((!(a5==1)&&((a18==1)&&((a4==1)&&((a27==1)&&((a3==4)&&((!(a22==1)&&((a12==10)&&((input==5)&&(a20==1))))&&!(a0==1)))))))&&!(a6==1)))){ + a22 = 1; + a15 = 0; + a0 = 1; + a12 = 12; + a5 = 1; + return 24; + } else if(((((!(a0==1)&&((a12==8)&&((!(a15==1)&&((((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1)))&&(input==3)))&&!(a27==1))))&&(a5==1))&&(a20==1))&&(a4==1))){ + a18 = 1; + a22 = 0; + a5 = 0; + a6 = 1; + a3 = 6; + a12 = 11; + return 24; + } else if(((((a0==1)&&((((a4==1)&&((a20==1)&&(((input==5)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a22==1)&&(a18==1)))))&&(a27==1))))&&!(a5==1))&&(a6==1)))&&(a12==8))&&(a15==1))){ + a15 = 0; + a12 = 9; + a3 = 8; + a18 = 0; + a22 = 0; + return 21; + } else if((((a20==1)&&(((a27==1)&&((a6==1)&&(!(a5==1)&&((a3==6)&&((a4==1)&&(!(a15==1)&&((input==5)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))))))))&&!(a0==1)))&&(a12==10))){ + a6 = 0; + a3 = 5; + a12 = 8; + a0 = 1; + a22 = 0; + a5 = 1; + a18 = 0; + return -1; + } else if(((!(a15==1)&&((((((a12==8)&&(((input==6)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1)))))&&(a5==1)))&&(a0==1))&&!(a4==1))&&(a20==1))&&!(a27==1)))&&(a6==1))){ + a18 = 1; + a3 = 8; + a0 = 0; + a27 = 1; + a4 = 1; + a22 = 0; + a12 = 10; + return 21; + } else if(((((a5==1)&&(((a4==1)&&(!(a0==1)&&(!(a6==1)&&(((a20==1)&&((a15==1)&&((input==2)&&(a18==1))))&&!(a27==1)))))&&!(a22==1)))&&(a12==9))&&(a3==6))){ + a22 = 1; + a6 = 1; + a0 = 1; + a27 = 1; + a3 = 5; + a12 = 8; + return -1; + } else if((((((((a3==7)&&(!(a6==1)&&((a4==1)&&((a0==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==5))))))&&!(a5==1))&&(a12==10))&&!(a15==1))&&(a20==1))&&!(a27==1))){ + a22 = 0; + a3 = 6; + a6 = 1; + a15 = 1; + a18 = 0; + a5 = 1; + return 21; + } else if((((a12==9)&&((a15==1)&&((a0==1)&&(!(a4==1)&&(!(a27==1)&&(((a20==1)&&((input==5)&&(((a3==8)&&((a22==1)&&!(a18==1)))||(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8))))))&&!(a5==1)))))))&&(a6==1))){ + a5 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + a27 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if((!(a22==1)&&(((a5==1)&&((a4==1)&&((a27==1)&&(((((a12==12)&&((a20==1)&&(((a18==1)||!(a18==1))&&(input==1))))&&!(a6==1))&&(a15==1))&&!(a0==1)))))&&(a3==5)))){ + a22 = 1; + a6 = 1; + a18 = 1; + a12 = 8; + a0 = 1; + a3 = 4; + return -1; + } else if((((((a27==1)&&((a0==1)&&(!(a6==1)&&((!(a5==1)&&((a12==10)&&(((input==1)&&((a18==1)||!(a18==1)))&&!(a15==1))))&&(a20==1)))))&&!(a22==1))&&(a3==6))&&!(a4==1))){ + if((a3==6)){ + a12 = 8; + a4 = 1; + a18 = 1; + a3 = 7; + a6 = 1; + a15 = 1; + a0 = 0; + a22 = 1; + }else{ + a6 = 1; + a3 = 4; + a22 = 1; + a15 = 1; + a18 = 1; + } + return -1; + } else if((!(a15==1)&&((a6==1)&&((a20==1)&&(((a0==1)&&((a12==8)&&((((((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==2))&&(a5==1))&&!(a27==1))))&&(a4==1)))))){ + a22 = 1; + a15 = 1; + a18 = 1; + a27 = 1; + a3 = 4; + return -1; + } else if((!(a15==1)&&((a12==10)&&(((a6==1)&&(((a5==1)&&((a20==1)&&(((input==1)&&(((a3==5)&&((a22==1)&&(a18==1)))||(((a3==4)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))))&&!(a4==1))))&&!(a27==1)))&&!(a0==1))))){ + a18 = 0; + a27 = 1; + a12 = 8; + a3 = 8; + a22 = 1; + a15 = 1; + a0 = 1; + a6 = 0; + a4 = 1; + return 26; + } else if(((!(a4==1)&&(!(a5==1)&&((a12==9)&&((!(a6==1)&&((!(a15==1)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==1)))&&(a20==1)))&&(a27==1)))))&&(a0==1))){ + a5 = 1; + a22 = 1; + a18 = 1; + a3 = 8; + a4 = 1; + a27 = 0; + return 26; + } else if((!(a0==1)&&(((((a20==1)&&((a22==1)&&(!(a5==1)&&((a3==5)&&(((!(a4==1)&&(input==6))&&(a18==1))&&(a27==1))))))&&(a12==11))&&!(a6==1))&&(a15==1)))){ + a12 = 12; + a18 = 0; + a0 = 1; + a15 = 0; + a3 = 6; + a6 = 1; + a5 = 1; + a27 = 0; + return 21; + } else if(((a4==1)&&((a12==10)&&((a20==1)&&(!(a0==1)&&((a5==1)&&(!(a27==1)&&(((a15==1)&&((input==3)&&(((a3==8)&&(!(a18==1)&&(a22==1)))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8))))))&&(a6==1))))))))){ + a27 = 1; + a12 = 8; + a0 = 1; + a3 = 5; + a18 = 0; + a22 = 1; + return -1; + } else if(((a20==1)&&((((a18==1)&&(((a3==4)&&(((a0==1)&&((a12==12)&&(((input==5)&&!(a4==1))&&!(a5==1))))&&!(a6==1)))&&!(a27==1)))&&!(a22==1))&&!(a15==1)))){ + a27 = 1; + a6 = 1; + a4 = 1; + a12 = 8; + a5 = 1; + a15 = 1; + a22 = 1; + return -1; + } else if((((a4==1)&&(!(a15==1)&&((a3==8)&&((!(a6==1)&&((a12==9)&&((((input==4)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&!(a0==1))&&!(a27==1))))&&(a5==1)))))&&(a20==1))){ + a5 = 0; + a22 = 1; + a27 = 1; + a15 = 1; + a6 = 1; + a18 = 0; + a3 = 5; + a12 = 8; + a0 = 1; + return 21; + } else if(((a12==10)&&((((((!(a5==1)&&((a3==7)&&(((a0==1)&&((input==2)&&((a18==1)||!(a18==1))))&&(a20==1))))&&(a27==1))&&(a4==1))&&(a15==1))&&(a6==1))&&!(a22==1)))){ + a3 = 6; + a18 = 1; + return -1; + } else if((!(a22==1)&&((((a3==5)&&(((a6==1)&&((((((input==6)&&!(a0==1))&&(a12==11))&&(a18==1))&&(a27==1))&&(a15==1)))&&(a5==1)))&&(a20==1))&&!(a4==1)))){ + a4 = 1; + a12 = 8; + a3 = 4; + a0 = 1; + a22 = 1; + return -1; + } else if(((((a20==1)&&(!(a18==1)&&(!(a6==1)&&((!(a4==1)&&((a3==8)&&((((input==5)&&(a22==1))&&(a0==1))&&!(a15==1))))&&(a5==1)))))&&(a12==10))&&!(a27==1))){ + a27 = 1; + a12 = 11; + a5 = 0; + a3 = 5; + return 21; + } else if((!(a6==1)&&((a3==7)&&(!(a15==1)&&((a27==1)&&((!(a5==1)&&(((!(a0==1)&&((input==3)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a12==10))&&!(a4==1)))&&(a20==1))))))){ + a15 = 1; + a18 = 1; + a12 = 8; + a5 = 1; + a4 = 1; + a3 = 4; + a22 = 1; + a6 = 1; + a0 = 1; + return -1; + } else if((((!(a5==1)&&((!(a27==1)&&((a4==1)&&((((a20==1)&&((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a6==1))&&!(a15==1))))&&(a3==4)))&&(a0==1))&&(a12==10))){ + a22 = 1; + a18 = 1; + a15 = 1; + a3 = 7; + a4 = 0; + a6 = 1; + return 21; + } else if((((((!(a5==1)&&((a12==8)&&(!(a0==1)&&((a6==1)&&(((((a18==1)||!(a18==1))&&(input==5))&&(a3==5))&&(a20==1))))))&&(a27==1))&&!(a4==1))&&(a22==1))&&!(a15==1))){ + a18 = 1; + a4 = 1; + a15 = 1; + a5 = 1; + a3 = 4; + a0 = 1; + return -1; + } else if((((a18==1)&&(((a5==1)&&(!(a22==1)&&((a12==12)&&(((a15==1)&&((a4==1)&&(((input==4)&&(a3==6))&&(a27==1))))&&!(a0==1)))))&&!(a6==1)))&&(a20==1))){ + a15 = 0; + a0 = 1; + a22 = 1; + a3 = 4; + return 24; + } else if(((((((a3==7)&&((a4==1)&&(!(a0==1)&&((a12==11)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==6))&&!(a5==1))))))&&(a6==1))&&(a15==1))&&(a20==1))&&(a27==1))){ + a18 = 1; + a3 = 6; + a15 = 0; + a22 = 0; + a0 = 1; + return -1; + } else if(((a20==1)&&(((!(a6==1)&&(!(a5==1)&&((a12==10)&&(((!(a0==1)&&(!(a4==1)&&((input==6)&&((a18==1)||!(a18==1)))))&&(a3==4))&&!(a27==1)))))&&(a15==1))&&(a22==1)))){ + a5 = 1; + a0 = 1; + a27 = 1; + a12 = 8; + a3 = 8; + a6 = 1; + a22 = 0; + a4 = 1; + a18 = 0; + return 21; + } else if(((a6==1)&&((a4==1)&&((a20==1)&&((a0==1)&&((a12==9)&&(((a15==1)&&((((((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1))))||((a3==6)&&(!(a18==1)&&(a22==1))))&&(input==5))&&!(a5==1)))&&(a27==1)))))))){ + a22 = 1; + a3 = 6; + a6 = 0; + a12 = 12; + a18 = 0; + return 21; + } else if(((!(a15==1)&&((a27==1)&&((a4==1)&&(((a12==10)&&((a20==1)&&((a3==4)&&(((a6==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&!(a0==1)))))&&!(a5==1)))))&&!(a22==1))){ + a18 = 1; + a12 = 8; + a0 = 1; + a15 = 1; + a5 = 1; + a22 = 1; + return -1; + } else if(((!(a27==1)&&(!(a0==1)&&((input==2)&&((!(a6==1)&&((!(a4==1)&&((a12==9)&&(!(a15==1)&&((!(a22==1)&&!(a18==1))&&!(a5==1)))))&&(a3==8)))||((a6==1)&&(((a4==1)&&(((a15==1)&&(((a18==1)&&(a22==1))&&(a5==1)))&&(a12==10)))&&(a3==4)))))))&&(a20==1))){ + if((a27==1)){ + a4 = 1; + a22 = 1; + a0 = 1; + a15 = 1; + a3 = 4; + a5 = 1; + a12 = 8; + a18 = 1; + a27 = 1; + a6 = 0; + }else{ + a3 = 8; + a4 = 1; + a18 = 1; + a5 = 1; + a27 = 1; + a12 = 10; + a6 = 1; + a22 = 0; + a15 = 1; + a0 = 1; + } + return 21; + } else if((((a0==1)&&(((a20==1)&&((a3==8)&&(!(a5==1)&&((a6==1)&&((!(a4==1)&&((input==4)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))&&(a12==8))))))&&(a15==1)))&&(a27==1))){ + if((a3==4)){ + a4 = 1; + a18 = 1; + a12 = 11; + a22 = 1; + a0 = 0; + }else{ + a18 = 0; + a12 = 10; + a6 = 0; + a15 = 0; + a5 = 1; + a22 = 0; + a3 = 7; + a4 = 1; + } + return 21; + } else if(((a4==1)&&((a0==1)&&((a20==1)&&((a12==12)&&((a3==5)&&((a5==1)&&((!(a15==1)&&(((input==6)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&!(a6==1)))&&(a27==1))))))))){ + a0 = 0; + a22 = 0; + a15 = 1; + a18 = 0; + a6 = 1; + a12 = 11; + return -1; + } else if(((a27==1)&&((((a20==1)&&((a4==1)&&(((a12==8)&&((input==5)&&(((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1)))))))&&(a15==1))))&&!(a0==1))&&(a5==1)))){ + a0 = 1; + a18 = 1; + a6 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((a4==1)&&(((a3==6)&&((a18==1)&&((a20==1)&&((a12==10)&&(!(a27==1)&&((a5==1)&&((!(a15==1)&&((input==6)&&(a0==1)))&&!(a22==1))))))))&&!(a6==1)))){ + a3 = 4; + a18 = 0; + a5 = 0; + a12 = 12; + a22 = 1; + a4 = 0; + return 21; + } else if(((((a20==1)&&((a22==1)&&(!(a5==1)&&((((a4==1)&&((!(a27==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a12==11)))&&!(a0==1))&&(a3==5)))))&&!(a6==1))&&!(a15==1))){ + a12 = 8; + a3 = 4; + a18 = 1; + a0 = 1; + a22 = 0; + a4 = 0; + a6 = 1; + a5 = 1; + return -1; + } else if(((((((a4==1)&&((a12==8)&&(!(a5==1)&&((a15==1)&&(((((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==7)))&&(input==6))))))&&!(a27==1))&&(a20==1))&&(a6==1))&&!(a0==1))){ + a18 = 0; + a22 = 1; + a0 = 1; + a5 = 1; + a12 = 12; + a3 = 8; + return 24; + } else if(((a6==1)&&((((((a20==1)&&(!(a5==1)&&(((input==4)&&(((a3==8)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7)))))&&(a15==1))))&&!(a27==1))&&(a0==1))&&!(a4==1))&&(a12==10)))){ + a5 = 1; + a3 = 4; + a27 = 1; + a22 = 1; + a12 = 8; + a4 = 1; + a18 = 1; + return -1; + } else if(((!(a15==1)&&((a20==1)&&(!(a5==1)&&(((!(a0==1)&&(((input==4)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5))))&&(a27==1)))&&(a12==12))&&!(a4==1)))))&&!(a6==1))){ + if((a4==1)){ + a3 = 6; + a5 = 1; + a27 = 0; + a22 = 0; + a15 = 1; + a18 = 1; + a12 = 11; + }else{ + a3 = 4; + a18 = 1; + a4 = 1; + a22 = 1; + a15 = 1; + a0 = 1; + a5 = 1; + a12 = 8; + } + return -1; + } else if(((a20==1)&&(((a15==1)&&(((a6==1)&&(!(a4==1)&&((((((!(a18==1)&&(a22==1))&&(a3==7))||(((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1)))))&&(input==1))&&!(a5==1))&&(a0==1))))&&!(a27==1)))&&(a12==10)))){ + a27 = 1; + a4 = 1; + a3 = 4; + a0 = 0; + a22 = 0; + a18 = 0; + a15 = 0; + return -1; + } else if((((a20==1)&&(!(a4==1)&&(((a12==8)&&(!(a5==1)&&((a15==1)&&((a27==1)&&((a3==5)&&((a6==1)&&((input==4)&&((a18==1)||!(a18==1)))))))))&&!(a22==1))))&&(a0==1))){ + if((a18==1)){ + a12 = 12; + a3 = 8; + a18 = 0; + a6 = 0; + a5 = 1; + a0 = 0; + }else{ + a6 = 0; + a3 = 6; + a12 = 10; + a5 = 1; + a18 = 0; + } + return 21; + } else if((!(a6==1)&&(((((a4==1)&&((a3==7)&&((a27==1)&&((a18==1)&&((a0==1)&&(!(a22==1)&&((input==4)&&(a20==1))))))))&&(a12==9))&&(a5==1))&&!(a15==1)))){ + a3 = 4; + a15 = 1; + a12 = 8; + a6 = 1; + a22 = 1; + return -1; + } else if(((!(a6==1)&&(!(a15==1)&&((a12==8)&&(!(a27==1)&&(((((input==5)&&((((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==6)))||((a3==7)&&((a18==1)&&(a22==1)))))&&!(a4==1))&&!(a5==1))&&!(a0==1))))))&&(a20==1))){ + if((a3==4)){ + a5 = 1; + a3 = 8; + a4 = 1; + a0 = 1; + a18 = 0; + a15 = 1; + a27 = 1; + a22 = 1; + }else{ + a0 = 1; + a3 = 8; + a6 = 1; + a15 = 1; + a5 = 1; + a27 = 1; + a22 = 1; + a18 = 0; + } + return 26; + } else if((((a0==1)&&((a15==1)&&(((a12==12)&&((a3==6)&&((!(a6==1)&&(((a20==1)&&((input==5)&&!(a27==1)))&&!(a5==1)))&&(a22==1))))&&!(a4==1))))&&(a18==1))){ + a3 = 4; + a27 = 1; + a4 = 1; + a6 = 1; + a5 = 1; + a12 = 8; + return -1; + } else if(((a6==1)&&((a4==1)&&((a0==1)&&(((!(a5==1)&&((a15==1)&&(((!(a27==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a22==1))&&(a20==1))))&&(a12==8))&&(a3==8)))))){ + a5 = 1; + a4 = 0; + a12 = 12; + a3 = 7; + a18 = 0; + return 21; + } else if((!(a27==1)&&((a20==1)&&((((a15==1)&&((((a12==11)&&((a5==1)&&(!(a4==1)&&((a6==1)&&(input==3)))))&&!(a18==1))&&!(a0==1)))&&(a3==4))&&!(a22==1))))){ + if((a12==12)){ + a0 = 1; + a27 = 1; + a18 = 1; + a12 = 8; + a3 = 5; + }else{ + a6 = 0; + a3 = 6; + a4 = 1; + a0 = 1; + a12 = 8; + a27 = 1; + } + return 21; + } else if(((((((!(a6==1)&&(!(a27==1)&&((a0==1)&&(((a22==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a15==1)))))&&(a20==1))&&(a12==8))&&(a5==1))&&(a3==5))&&(a4==1))){ + a6 = 1; + a27 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((((!(a6==1)&&(!(a0==1)&&((a20==1)&&((a4==1)&&((a12==11)&&(((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))||((a3==5)&&((a22==1)&&!(a18==1))))&&(input==1)))))))&&!(a5==1))&&(a27==1))&&(a15==1))){ + a3 = 4; + a0 = 1; + a5 = 1; + a18 = 0; + a6 = 1; + a12 = 12; + a22 = 0; + return 21; + } else if(((!(a15==1)&&((a3==7)&&(!(a27==1)&&((a20==1)&&(((((a12==8)&&((input==4)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))))&&!(a5==1))&&(a0==1))&&(a4==1))))))&&!(a6==1))){ + a27 = 1; + a5 = 1; + a15 = 1; + a22 = 1; + a3 = 4; + a6 = 1; + a18 = 1; + return -1; + } else if(((a5==1)&&((a4==1)&&((((!(a0==1)&&(((a6==1)&&((input==6)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))||((!(a18==1)&&(a22==1))&&(a3==6)))))&&(a12==10)))&&(a20==1))&&(a27==1))&&(a15==1))))){ + a18 = 1; + a3 = 4; + a0 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if((((a3==5)&&((a12==12)&&((a27==1)&&((a20==1)&&(((!(a15==1)&&((a0==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==1))))&&(a6==1))&&!(a4==1))))))&&!(a5==1))){ + a4 = 1; + a15 = 1; + a5 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + a18 = 1; + return -1; + } else if(((((a27==1)&&((a20==1)&&((!(a22==1)&&((a0==1)&&((a18==1)&&((a3==8)&&(((a4==1)&&(input==5))&&(a5==1))))))&&!(a15==1))))&&(a6==1))&&(a12==8))){ + a15 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if((!(a6==1)&&((((((a4==1)&&((a3==7)&&((!(a0==1)&&((a12==9)&&(((a18==1)||!(a18==1))&&(input==4))))&&!(a22==1))))&&!(a27==1))&&(a20==1))&&!(a5==1))&&(a15==1)))){ + a18 = 0; + a5 = 1; + a4 = 0; + a3 = 5; + a6 = 1; + a12 = 10; + return -1; + } else if(((a0==1)&&((a12==8)&&(!(a5==1)&&((a27==1)&&(((a20==1)&&((((((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==6))&&!(a6==1))&&!(a15==1)))&&!(a4==1))))))){ + a15 = 1; + a3 = 7; + a4 = 1; + a0 = 0; + a18 = 1; + a12 = 11; + a5 = 1; + a22 = 0; + return 26; + } else if(((!(a27==1)&&((((((input==4)&&(((((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1)))&&!(a6==1))||((a6==1)&&((a3==4)&&(!(a4==1)&&((a22==1)&&(a18==1))))))||(((((a22==1)&&!(a18==1))&&!(a4==1))&&(a3==4))&&(a6==1))))&&(a5==1))&&(a0==1))&&(a12==12))&&!(a15==1)))&&(a20==1))){ + a4 = 1; + a6 = 1; + a15 = 1; + a22 = 1; + a27 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + return -1; + } else if((!(a4==1)&&(!(a5==1)&&((((((!(a27==1)&&((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==2))&&(a6==1)))&&!(a15==1))&&(a20==1))&&(a12==11))&&(a0==1))&&(a3==5))))){ + a4 = 1; + a12 = 12; + a3 = 8; + a22 = 0; + a5 = 1; + a18 = 0; + a27 = 1; + a6 = 0; + return 21; + } else if(((a0==1)&&((a22==1)&&((!(a6==1)&&((((((((input==6)&&(a20==1))&&!(a4==1))&&(a12==12))&&!(a5==1))&&(a3==4))&&!(a27==1))&&!(a18==1)))&&!(a15==1))))){ + a27 = 1; + a12 = 8; + a15 = 1; + a5 = 1; + a6 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if((((a5==1)&&(((((((!(a6==1)&&(((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8)))||(((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1))))&&(a6==1)))&&(input==3))&&(a12==10))&&!(a0==1))&&!(a27==1))&&(a20==1)))&&(a15==1))){ + a3 = 8; + a5 = 0; + a0 = 1; + a22 = 1; + a4 = 1; + a18 = 1; + a12 = 11; + a6 = 1; + return -1; + } else if((((a0==1)&&(((((a20==1)&&(((((input==6)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&!(a4==1))&&(a15==1))&&!(a6==1)))&&(a3==8))&&(a12==8))&&!(a27==1)))&&(a5==1))){ + if((a3==5)){ + a4 = 1; + a15 = 0; + a0 = 0; + a27 = 1; + a6 = 1; + a3 = 4; + a5 = 0; + a22 = 0; + a18 = 1; + }else{ + a6 = 1; + a3 = 4; + a22 = 0; + a18 = 1; + a4 = 1; + a5 = 0; + a15 = 0; + } + return 21; + } else if(((a4==1)&&((!(a0==1)&&((a12==10)&&((a20==1)&&(!(a5==1)&&((a6==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==1))&&!(a15==1)))))))&&(a27==1)))){ + a18 = 1; + a15 = 1; + a3 = 4; + a22 = 1; + a5 = 1; + a12 = 8; + a0 = 1; + return -1; + } else if(((((((((a3==6)&&((!(a0==1)&&((input==4)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))))&&(a20==1)))&&(a12==9))&&!(a5==1))&&!(a15==1))&&(a4==1))&&(a27==1))&&(a6==1))){ + if((a22==1)){ + a18 = 0; + a3 = 5; + a4 = 0; + a22 = 0; + a6 = 0; + }else{ + a15 = 1; + a22 = 1; + a12 = 11; + a18 = 0; + } + return 21; + } else if(((a27==1)&&((a20==1)&&(((a6==1)&&(!(a4==1)&&((a12==11)&&(!(a15==1)&&(((a3==8)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5)))&&!(a0==1))))))&&!(a5==1))))){ + a22 = 1; + a18 = 0; + a4 = 1; + a0 = 1; + a5 = 1; + a12 = 9; + a27 = 0; + a6 = 0; + return 26; + } else if(((((((a20==1)&&((a4==1)&&(((((input==5)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&!(a0==1))&&(a6==1))&&(a3==6))))&&!(a5==1))&&(a27==1))&&!(a15==1))&&(a12==12))){ + a6 = 0; + a5 = 1; + a22 = 1; + a12 = 8; + a15 = 1; + a18 = 0; + a0 = 1; + a3 = 7; + return -1; + } else if((!(a0==1)&&((!(a5==1)&&((((!(a6==1)&&(!(a27==1)&&((a12==8)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==2)))))&&(a20==1))&&!(a4==1))&&(a3==4)))&&!(a15==1)))){ + if((a20==1)){ + a15 = 1; + a22 = 0; + a4 = 1; + a5 = 1; + a18 = 0; + a6 = 1; + a12 = 12; + }else{ + a27 = 1; + a0 = 1; + a5 = 1; + a6 = 1; + a18 = 0; + a3 = 8; + a15 = 1; + a22 = 1; + a4 = 1; + } + return -1; + } else if(((a3==8)&&((a6==1)&&((!(a15==1)&&((((((a12==11)&&((input==2)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a20==1))&&(a4==1))&&!(a0==1))&&!(a27==1)))&&(a5==1))))){ + if((a3==8)){ + a6 = 0; + a15 = 1; + a12 = 12; + a22 = 0; + a5 = 0; + a18 = 1; + a0 = 1; + }else{ + a4 = 0; + a18 = 1; + a5 = 0; + a22 = 1; + a12 = 10; + } + return -1; + } else if((((a0==1)&&((a12==9)&&(!(a6==1)&&(((((a4==1)&&((input==4)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))))&&(a20==1))&&!(a27==1))&&(a15==1)))))&&(a5==1))){ + a3 = 5; + a22 = 0; + a12 = 12; + a27 = 1; + a6 = 1; + a18 = 0; + a15 = 0; + return -1; + } else if(((((a20==1)&&(!(a27==1)&&(((((a5==1)&&(!(a0==1)&&((input==5)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))))&&(a12==8))&&(a15==1))&&!(a6==1))))&&!(a4==1))&&(a3==7))){ + if((a18==1)){ + a6 = 1; + a3 = 5; + a0 = 1; + a18 = 1; + a27 = 1; + a4 = 1; + a22 = 0; + }else{ + a12 = 11; + a18 = 1; + a4 = 1; + a22 = 1; + a3 = 5; + a27 = 1; + a0 = 1; + a6 = 1; + } + return 21; + } else if(((a27==1)&&((a5==1)&&(((a12==9)&&((a0==1)&&(!(a4==1)&&(((input==6)&&(((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))))&&(a20==1)))))&&(a15==1))))){ + a18 = 0; + a3 = 7; + a12 = 11; + a6 = 0; + a22 = 1; + return 24; + } else if(((a3==4)&&((!(a4==1)&&(!(a22==1)&&((!(a0==1)&&((((!(a18==1)&&((input==2)&&(a12==11)))&&!(a6==1))&&(a27==1))&&(a15==1)))&&(a5==1))))&&(a20==1)))){ + a5 = 0; + a0 = 1; + a3 = 7; + a4 = 1; + a12 = 10; + a22 = 1; + return 21; + } else if(((((((((((input==6)&&(((a3==5)&&((a18==1)&&(a22==1)))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a18==1)&&!(a22==1))))))&&!(a15==1))&&!(a0==1))&&!(a27==1))&&(a20==1))&&!(a6==1))&&(a4==1))&&(a12==8))&&(a5==1))){ + if((a27==1)){ + a12 = 9; + a3 = 7; + a18 = 0; + a22 = 0; + a15 = 1; + a5 = 0; + }else{ + a15 = 1; + a18 = 0; + a27 = 1; + a0 = 1; + a6 = 1; + a3 = 6; + a22 = 0; + a4 = 0; + } + return -1; + } else if((((a27==1)&&((!(a5==1)&&((a6==1)&&((!(a0==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==6))&&(a15==1)))&&(a12==8))))&&(a4==1)))&&(a20==1))){ + a3 = 6; + a0 = 1; + a6 = 0; + a4 = 0; + a22 = 1; + a5 = 1; + a18 = 0; + return 21; + } else if(((a27==1)&&((a3==5)&&(((!(a0==1)&&(!(a15==1)&&(((((input==6)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&(a4==1))&&(a12==9))&&(a20==1))))&&(a6==1))&&(a5==1))))){ + a12 = 8; + a22 = 1; + a3 = 4; + a0 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if((((a0==1)&&((a4==1)&&((a3==5)&&((((a20==1)&&((!(a15==1)&&(!(a5==1)&&(((a18==1)||!(a18==1))&&(input==4))))&&(a27==1)))&&!(a6==1))&&(a22==1)))))&&(a12==10))){ + a0 = 0; + a18 = 1; + a6 = 1; + a12 = 11; + a15 = 1; + a3 = 4; + return -1; + } else if(((a4==1)&&(((a6==1)&&(!(a0==1)&&(((((a12==10)&&(((input==3)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a20==1)))&&!(a27==1))&&(a3==6))&&!(a15==1))))&&!(a5==1)))){ + a18 = 1; + a3 = 5; + a6 = 0; + a12 = 8; + a22 = 1; + a15 = 1; + return -1; + } else if((!(a15==1)&&((!(a4==1)&&(((a22==1)&&(((!(a18==1)&&(((a0==1)&&((a6==1)&&(input==5)))&&(a3==5)))&&(a27==1))&&!(a5==1)))&&(a12==9)))&&(a20==1)))){ + a5 = 1; + a15 = 1; + a3 = 4; + a12 = 8; + a4 = 1; + a18 = 1; + return -1; + } else if(((!(a0==1)&&((a12==10)&&((!(a5==1)&&(!(a4==1)&&((a20==1)&&(((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==2))&&(a3==6))&&!(a6==1)))))&&(a27==1))))&&(a15==1))){ + a0 = 1; + a22 = 1; + a4 = 1; + a3 = 4; + a18 = 1; + a12 = 11; + a6 = 1; + a27 = 0; + return 26; + } else if(((a0==1)&&((a15==1)&&(!(a4==1)&&(((a12==10)&&(((a27==1)&&(!(a6==1)&&((input==3)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8))))))&&(a5==1)))&&(a20==1)))))){ + a18 = 1; + a4 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if((((!(a4==1)&&(((((a22==1)&&(!(a15==1)&&((a27==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a0==1)))))&&(a12==11))&&(a6==1))&&(a5==1)))&&(a20==1))&&(a3==4))){ + a6 = 0; + a22 = 0; + a3 = 8; + a12 = 10; + a18 = 1; + a0 = 0; + a15 = 1; + a5 = 0; + return 21; + } else if(((a6==1)&&((((((a12==9)&&(!(a5==1)&&((a27==1)&&(((((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==4)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==6)))))&&(a0==1))&&!(a15==1))&&!(a4==1))&&(a20==1)))){ + if((a4==1)){ + a22 = 1; + a0 = 0; + a15 = 1; + a18 = 0; + a6 = 0; + a12 = 11; + a3 = 7; + }else{ + a18 = 1; + a12 = 11; + a4 = 1; + a3 = 6; + a6 = 0; + a22 = 0; + a15 = 1; + } + return 21; + } else if((!(a15==1)&&((a6==1)&&(((a5==1)&&(((a4==1)&&((a12==12)&&(((input==6)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1)))))&&!(a27==1))))&&(a0==1)))&&(a20==1))))){ + a12 = 8; + a15 = 1; + a27 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((((((a12==10)&&((a27==1)&&((!(a4==1)&&((a22==1)&&((((input==4)&&((a18==1)||!(a18==1)))&&(a20==1))&&(a3==6))))&&(a0==1))))&&!(a5==1))&&(a15==1))&&(a6==1))){ + a12 = 12; + a18 = 1; + a22 = 0; + a3 = 7; + a4 = 1; + a5 = 1; + return 26; + } else if((!(a4==1)&&((((a5==1)&&((((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5))&&(a3==5))&&!(a27==1))&&(a6==1))&&(a20==1))&&(a0==1)))&&(a15==1))&&(a12==8)))){ + a3 = 4; + a27 = 1; + a18 = 1; + a4 = 1; + a22 = 1; + return -1; + } else if(((((((a6==1)&&((a5==1)&&(!(a15==1)&&((((a12==8)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a0==1))&&(a3==4)))))&&(a27==1))&&(a20==1))&&!(a4==1))&&(a22==1))){ + a4 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if((!(a15==1)&&((a6==1)&&((a20==1)&&((a12==11)&&(((a5==1)&&(((((((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==7)))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==6))&&(a4==1))&&!(a27==1)))&&(a0==1))))))){ + a12 = 10; + a3 = 7; + a5 = 0; + a15 = 1; + a4 = 0; + a18 = 1; + a27 = 1; + a22 = 1; + return -1; + } else if((!(a4==1)&&(((a18==1)&&((a0==1)&&(((((a12==9)&&(!(a6==1)&&(((input==5)&&(a3==5))&&!(a15==1))))&&(a27==1))&&!(a5==1))&&!(a22==1))))&&(a20==1)))){ + a4 = 1; + a5 = 1; + a27 = 0; + return 24; + } else if(((a5==1)&&(((a20==1)&&((!(a4==1)&&(((a3==8)&&(((a6==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==6)))&&(a27==1)))&&!(a15==1)))&&(a12==10)))&&!(a0==1)))){ + a15 = 1; + a4 = 1; + a18 = 1; + a0 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + return -1; + } else if(((a0==1)&&(!(a27==1)&&((((a20==1)&&(!(a5==1)&&((a6==1)&&(!(a15==1)&&((input==1)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==6))))))))&&!(a4==1))&&(a12==12))))){ + a27 = 1; + a18 = 1; + a6 = 0; + a3 = 5; + a12 = 11; + a22 = 0; + return 21; + } else if(((a12==11)&&(((!(a15==1)&&(((a4==1)&&(!(a6==1)&&(!(a5==1)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==4)))))&&!(a0==1)))&&!(a27==1))&&(a20==1)))){ + if((a5==1)){ + a27 = 1; + a18 = 0; + a5 = 1; + a3 = 4; + a0 = 1; + a22 = 1; + a15 = 1; + a6 = 1; + a12 = 8; + }else{ + a22 = 0; + a5 = 1; + a6 = 1; + a12 = 9; + a0 = 1; + a3 = 7; + a4 = 0; + a18 = 1; + } + return 24; + } else if(((!(a5==1)&&(((a27==1)&&((a4==1)&&((a0==1)&&((((a22==1)&&(!(a15==1)&&((input==4)&&(a18==1))))&&(a3==8))&&(a12==8)))))&&(a6==1)))&&(a20==1))){ + a18 = 0; + a12 = 10; + a6 = 0; + a22 = 0; + a3 = 5; + return 21; + } else if((((((((!(a22==1)&&(!(a27==1)&&((a3==8)&&(!(a15==1)&&((input==1)&&((a18==1)||!(a18==1)))))))&&(a0==1))&&(a5==1))&&(a20==1))&&!(a6==1))&&(a12==11))&&!(a4==1))){ + a27 = 1; + a3 = 6; + a18 = 0; + a12 = 12; + a4 = 1; + return 26; + } else if((!(a18==1)&&((((((((((a0==1)&&((a3==4)&&(input==4)))&&(a22==1))&&(a5==1))&&(a12==12))&&(a20==1))&&(a4==1))&&!(a6==1))&&(a27==1))&&!(a15==1)))){ + if((a18==1)){ + a18 = 1; + a6 = 1; + a0 = 0; + a22 = 0; + a15 = 1; + a3 = 8; + a4 = 0; + a12 = 8; + }else{ + a27 = 0; + a15 = 1; + a4 = 0; + a3 = 6; + } + return 26; + } else if((!(a6==1)&&(!(a0==1)&&((a22==1)&&(!(a4==1)&&(((a12==11)&&(!(a15==1)&&(!(a5==1)&&((((a27==1)&&(input==4))&&(a20==1))&&(a3==7)))))&&(a18==1))))))){ + a4 = 1; + a15 = 1; + a3 = 5; + a0 = 1; + a6 = 1; + a22 = 0; + return -1; + } else if(((a12==11)&&((a20==1)&&((a15==1)&&(((((a3==7)&&((!(a0==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==2)))&&(a27==1)))&&(a6==1))&&!(a4==1))&&!(a5==1)))))){ + a3 = 4; + a4 = 1; + a18 = 1; + a5 = 1; + a12 = 8; + a0 = 1; + a22 = 1; + return -1; + } else if((((a5==1)&&((a6==1)&&(((a12==12)&&((((a3==4)&&((a20==1)&&((((a18==1)||!(a18==1))&&(input==2))&&(a27==1))))&&!(a15==1))&&!(a4==1)))&&!(a22==1))))&&(a0==1))){ + a18 = 1; + a15 = 1; + a22 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if((((a15==1)&&((a20==1)&&(!(a27==1)&&(!(a18==1)&&((((((a0==1)&&((input==4)&&(a4==1)))&&(a3==7))&&(a12==11))&&!(a5==1))&&(a22==1))))))&&(a6==1))){ + a12 = 12; + a3 = 5; + a27 = 1; + a22 = 0; + a5 = 1; + a15 = 0; + return -1; + } else if(((a6==1)&&((a4==1)&&(((a5==1)&&((((a22==1)&&((a0==1)&&(((a15==1)&&((input==2)&&((a18==1)||!(a18==1))))&&(a20==1))))&&(a3==5))&&!(a27==1)))&&(a12==8))))){ + a3 = 4; + a18 = 0; + a12 = 10; + a0 = 0; + a27 = 1; + return -1; + } else if(((((!(a15==1)&&(((a27==1)&&(((a0==1)&&(((((a22==1)&&!(a18==1))&&(a3==5))||(((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a22==1)&&(a18==1)))))&&(input==6)))&&!(a5==1)))&&(a6==1)))&&(a12==8))&&!(a4==1))&&(a20==1))){ + a22 = 1; + a18 = 0; + a12 = 11; + a5 = 1; + a0 = 0; + a15 = 1; + a3 = 8; + a4 = 1; + a6 = 0; + return 21; + } else if((!(a18==1)&&((((a4==1)&&(((((a0==1)&&((a27==1)&&((a15==1)&&((input==6)&&!(a6==1)))))&&(a22==1))&&(a12==9))&&!(a5==1)))&&(a20==1))&&(a3==8)))){ + a6 = 1; + a3 = 4; + a22 = 0; + a27 = 0; + a12 = 8; + return 26; + } else if((((a12==10)&&((a20==1)&&((a4==1)&&(!(a15==1)&&((((a6==1)&&((a3==4)&&((((a18==1)||!(a18==1))&&(input==1))&&!(a22==1))))&&(a0==1))&&!(a27==1))))))&&(a5==1))){ + a5 = 0; + a18 = 1; + a6 = 0; + a3 = 8; + a12 = 11; + a22 = 1; + return 21; + } else if((!(a4==1)&&((a27==1)&&((a12==9)&&(!(a6==1)&&(!(a15==1)&&((a5==1)&&((a0==1)&&((((((a22==1)&&!(a18==1))&&(a3==8))||(((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1)))))&&(input==3))&&(a20==1)))))))))){ + a6 = 1; + a3 = 4; + a12 = 8; + a4 = 1; + a15 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((a4==1)&&((((a3==8)&&((((a12==8)&&(((a27==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==2)))&&!(a5==1)))&&(a6==1))&&(a20==1)))&&(a0==1))&&!(a15==1)))){ + if((a3==4)){ + a18 = 1; + a5 = 1; + a22 = 1; + a3 = 4; + a0 = 0; + a6 = 0; + }else{ + a15 = 1; + a3 = 4; + a22 = 0; + a5 = 1; + a12 = 12; + a0 = 0; + a18 = 0; + } + return 26; + } else if((!(a27==1)&&((((((((a3==4)&&((a4==1)&&((a15==1)&&(((a22==1)&&!(a18==1))&&!(a5==1)))))&&(a6==1))||((!(a6==1)&&(((!(a15==1)&&((!(a18==1)&&!(a22==1))&&(a5==1)))&&!(a4==1))&&(a3==8)))||(((((a15==1)&&(((a22==1)&&(a18==1))&&!(a5==1)))&&(a4==1))&&(a3==4))&&(a6==1))))&&(input==5))&&(a12==12))&&(a0==1))&&(a20==1)))){ + a15 = 1; + a12 = 8; + a27 = 1; + a22 = 1; + a6 = 1; + a5 = 1; + a18 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if((((!(a4==1)&&((a3==4)&&((((a15==1)&&(((a6==1)&&((input==3)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))&&(a20==1)))&&(a27==1))&&!(a0==1))))&&!(a5==1))&&(a12==8))){ + a0 = 1; + a4 = 1; + a5 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((((a4==1)&&(!(a0==1)&&(((!(a6==1)&&(((a20==1)&&(!(a22==1)&&((a15==1)&&(input==4))))&&(a3==8)))&&(a5==1))&&(a18==1))))&&(a12==11))&&(a27==1))){ + a22 = 1; + a0 = 1; + a6 = 1; + a4 = 0; + a3 = 6; + return 21; + } else if(((((!(a4==1)&&(((a22==1)&&((!(a27==1)&&((((input==4)&&(a12==11))&&(a3==6))&&!(a18==1)))&&(a0==1)))&&(a20==1)))&&!(a5==1))&&!(a15==1))&&!(a6==1))){ + a22 = 0; + a3 = 5; + a27 = 1; + a6 = 1; + a15 = 1; + a12 = 10; + return -1; + } else if((((((((((((input==4)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&!(a6==1))&&(a20==1))&&!(a5==1))&&(a3==5))&&(a27==1))&&(a12==10))&&!(a15==1))&&(a4==1))&&!(a0==1))){ + a12 = 9; + a4 = 0; + a5 = 1; + a18 = 1; + a3 = 4; + a0 = 1; + a27 = 0; + a22 = 1; + a6 = 1; + return -1; + } else if((((((a6==1)&&(((!(a0==1)&&((a12==11)&&((a20==1)&&((input==2)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))&&(a4==1))&&!(a27==1)))&&(a3==7))&&!(a5==1))&&(a15==1))){ + a5 = 1; + a27 = 1; + a18 = 1; + a22 = 0; + a12 = 8; + return 26; + } else if(((((a12==11)&&(((((((!(a27==1)&&(!(a5==1)&&(input==6)))&&!(a22==1))&&!(a15==1))&&!(a6==1))&&(a20==1))&&!(a18==1))&&!(a4==1)))&&(a0==1))&&(a3==8))){ + a22 = 1; + a15 = 1; + a18 = 1; + a6 = 1; + a27 = 1; + a4 = 1; + a3 = 4; + a5 = 1; + a12 = 8; + return -1; + } else if(((((a6==1)&&((a5==1)&&((a0==1)&&(((!(a4==1)&&((a20==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==1))))&&!(a27==1))&&(a3==8)))))&&(a15==1))&&(a12==10))){ + a12 = 8; + a18 = 1; + a3 = 4; + a27 = 1; + a4 = 1; + a22 = 1; + return -1; + } else if(((a12==8)&&((((!(a0==1)&&(!(a5==1)&&((!(a15==1)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==1)))&&!(a27==1))))&&(a20==1))&&(a4==1))&&(a6==1)))){ + a0 = 1; + a15 = 1; + a22 = 0; + a27 = 1; + a3 = 7; + a5 = 1; + a18 = 1; + return -1; + } else if(((!(a0==1)&&(((a20==1)&&(((a27==1)&&((a3==5)&&(!(a6==1)&&((((a12==12)&&(input==3))&&!(a4==1))&&(a5==1)))))&&!(a18==1)))&&(a15==1)))&&!(a22==1))){ + a12 = 10; + a4 = 1; + a3 = 7; + a0 = 1; + a22 = 1; + return -1; + } else if(((a5==1)&&((a0==1)&&(!(a4==1)&&((a20==1)&&((a12==11)&&(((!(a6==1)&&((((((a18==1)&&!(a22==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7)))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==6)))&&!(a15==1))&&!(a27==1)))))))){ + a27 = 1; + a3 = 4; + a22 = 1; + a4 = 1; + a15 = 1; + a18 = 1; + a12 = 8; + a6 = 1; + return -1; + } else if((!(a4==1)&&(((a20==1)&&((((a12==8)&&(!(a5==1)&&((((((a18==1)||!(a18==1))&&(input==4))&&!(a27==1))&&(a22==1))&&!(a6==1))))&&(a3==7))&&(a0==1)))&&(a15==1)))){ + a27 = 1; + a3 = 5; + a4 = 1; + a12 = 12; + a6 = 1; + a18 = 0; + a5 = 1; + a22 = 0; + return 26; + } else if((!(a0==1)&&((a12==12)&&((a5==1)&&((a4==1)&&((!(a15==1)&&((a6==1)&&((a20==1)&&(((((!(a22==1)&&(a18==1))&&(a3==7))||((a3==7)&&(!(a22==1)&&!(a18==1))))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==6)))))&&(a27==1))))))){ + a18 = 0; + a0 = 1; + a12 = 10; + a6 = 0; + a22 = 0; + a3 = 6; + return 26; + } else if(((((a20==1)&&((!(a4==1)&&((((((!(a15==1)&&(input==6))&&(a27==1))&&!(a6==1))&&(a0==1))&&(a5==1))&&(a12==12)))&&!(a22==1)))&&(a3==4))&&(a18==1))){ + a22 = 1; + a6 = 1; + a12 = 8; + a15 = 1; + a4 = 1; + return -1; + } else if((!(a4==1)&&((!(a0==1)&&(((a20==1)&&(!(a27==1)&&(((((((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==4))&&(a5==1))&&(a15==1))))&&!(a6==1)))&&(a12==8)))){ + a3 = 4; + a18 = 1; + a22 = 1; + a27 = 1; + a0 = 1; + return 21; + } else if(((((a6==1)&&(((((a0==1)&&((((input==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&!(a5==1))&&(a15==1)))&&!(a27==1))&&(a12==11))&&(a20==1)))&&(a4==1))&&(a3==8))){ + a5 = 1; + a27 = 1; + a22 = 1; + a18 = 0; + a3 = 5; + a12 = 12; + a6 = 0; + a4 = 0; + return 21; + } else if((((a3==7)&&((((a5==1)&&((!(a6==1)&&((a27==1)&&((a20==1)&&((input==5)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))))&&(a12==10)))&&(a4==1))&&!(a0==1)))&&!(a15==1))){ + a6 = 1; + a22 = 1; + a0 = 1; + a15 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + return -1; + } else if(((a15==1)&&((((((!(a18==1)&&(!(a22==1)&&((((input==5)&&(a3==8))&&(a20==1))&&(a12==9))))&&!(a0==1))&&(a4==1))&&(a27==1))&&(a6==1))&&!(a5==1)))){ + a12 = 11; + a4 = 0; + a15 = 0; + a22 = 1; + a0 = 1; + return 21; + } else if(((a5==1)&&(((!(a4==1)&&(((a3==4)&&((a15==1)&&(((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==4))&&!(a27==1))&&!(a6==1))))&&(a20==1)))&&(a12==8))&&(a0==1)))){ + a4 = 1; + a12 = 12; + a15 = 0; + a18 = 0; + a27 = 1; + a22 = 0; + a3 = 8; + return -1; + } else if((!(a0==1)&&((a3==4)&&(!(a15==1)&&(!(a22==1)&&(!(a6==1)&&((a4==1)&&((((((input==1)&&((a18==1)||!(a18==1)))&&(a20==1))&&!(a27==1))&&(a12==10))&&!(a5==1))))))))){ + a12 = 8; + a22 = 1; + a5 = 1; + a27 = 1; + a15 = 1; + a18 = 1; + a3 = 6; + a0 = 1; + return 21; + } else if((((a5==1)&&((!(a15==1)&&((a4==1)&&((((a20==1)&&((input==4)&&(((a3==6)&&((a18==1)&&(a22==1)))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a18==1)&&!(a22==1)))))))&&(a12==11))&&(a27==1))))&&(a0==1)))&&!(a6==1))){ + a22 = 0; + a27 = 0; + a18 = 1; + a15 = 1; + a6 = 1; + a3 = 7; + return 21; + } else if(((!(a6==1)&&(((a15==1)&&((a18==1)&&(((a12==8)&&(((a27==1)&&(!(a22==1)&&((input==4)&&!(a5==1))))&&(a20==1)))&&(a4==1))))&&(a0==1)))&&(a3==5))){ + a22 = 1; + a6 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if(((((a12==10)&&((a5==1)&&(((!(a4==1)&&((((input==4)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&!(a15==1))&&!(a0==1)))&&(a6==1))&&(a3==4))))&&(a20==1))&&(a27==1))){ + a18 = 0; + a0 = 1; + a6 = 0; + a12 = 8; + a3 = 6; + a22 = 1; + a27 = 0; + return -1; + } else if((((a20==1)&&((((a27==1)&&(!(a18==1)&&(((!(a6==1)&&(!(a22==1)&&((input==3)&&(a12==8))))&&!(a0==1))&&(a5==1))))&&!(a4==1))&&!(a15==1)))&&(a3==7))){ + a22 = 1; + a3 = 4; + a15 = 1; + a27 = 0; + a0 = 1; + a4 = 1; + a18 = 1; + return 24; + } else if(((a15==1)&&((a6==1)&&(((a4==1)&&(((a27==1)&&((a12==12)&&((a0==1)&&((((a3==8)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8))))&&(input==5)))))&&(a5==1)))&&(a20==1))))){ + a18 = 0; + a3 = 4; + a22 = 1; + a12 = 10; + a5 = 0; + a6 = 0; + return -1; + } else if(((((a5==1)&&(((a20==1)&&((a22==1)&&((a3==8)&&((a12==9)&&(((a15==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a0==1))))))&&!(a27==1)))&&(a4==1))&&(a6==1))){ + a4 = 0; + a3 = 7; + a15 = 0; + a5 = 0; + a6 = 0; + a18 = 1; + return 26; + } else if((((((((a15==1)&&(((((!(a27==1)&&(input==4))&&(a0==1))&&(a18==1))&&(a6==1))&&(a12==9)))&&(a3==4))&&(a20==1))&&(a5==1))&&(a4==1))&&!(a22==1))){ + a6 = 0; + a22 = 1; + a18 = 0; + a5 = 0; + a27 = 1; + a3 = 6; + a15 = 0; + a12 = 11; + return -1; + } else if(((((a12==10)&&(!(a15==1)&&((a20==1)&&((((((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==1))&&(a3==7))&&(a6==1))&&(a27==1))&&(a0==1)))))&&(a5==1))&&(a4==1))){ + a12 = 9; + a27 = 0; + a22 = 1; + a6 = 0; + a3 = 4; + a5 = 0; + a18 = 1; + return 26; + } else if(((((((a3==5)&&(!(a22==1)&&((a12==9)&&(((a0==1)&&(((input==1)&&!(a27==1))&&!(a5==1)))&&!(a15==1)))))&&!(a4==1))&&(a18==1))&&(a6==1))&&(a20==1))){ + a12 = 12; + a6 = 0; + a15 = 1; + a3 = 6; + a5 = 1; + return 21; + } return calculate_output20(input); + } + + int calculate_output20(int input) { + if(((a20==1)&&((a12==10)&&(!(a0==1)&&(((((a3==8)&&(((a15==1)&&((!(a4==1)&&(input==4))&&!(a27==1)))&&(a5==1)))&&(a6==1))&&(a18==1))&&!(a22==1)))))){ + if((a3==6)){ + a15 = 0; + a27 = 1; + a6 = 0; + a5 = 0; + a3 = 5; + a18 = 0; + a4 = 1; + }else{ + a15 = 0; + a4 = 1; + a6 = 0; + a3 = 5; + } + return 21; + } else if((!(a15==1)&&(((a3==8)&&((a12==10)&&((!(a6==1)&&(((!(a22==1)&&(!(a5==1)&&((input==3)&&((a18==1)||!(a18==1)))))&&(a20==1))&&!(a4==1)))&&!(a0==1))))&&(a27==1)))){ + a3 = 6; + a18 = 1; + a15 = 1; + a0 = 1; + a12 = 11; + a6 = 1; + a22 = 1; + return 24; + } else if((!(a5==1)&&((!(a15==1)&&((((((a4==1)&&(((input==5)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a6==1)))&&(a20==1))&&(a12==10))&&(a27==1))&&!(a0==1)))&&(a3==8)))){ + a18 = 1; + a22 = 1; + a15 = 1; + a0 = 1; + a12 = 8; + a3 = 4; + a5 = 1; + return -1; + } else if(((a18==1)&&((a6==1)&&((a5==1)&&(((((a20==1)&&((((!(a0==1)&&(input==1))&&(a3==8))&&(a12==11))&&(a22==1)))&&(a15==1))&&!(a4==1))&&(a27==1)))))){ + a4 = 1; + a6 = 0; + a3 = 7; + a12 = 12; + a22 = 0; + return -1; + } else if((!(a4==1)&&((a0==1)&&((!(a5==1)&&(!(a18==1)&&((((a6==1)&&(((a12==9)&&((input==5)&&(a22==1)))&&(a15==1)))&&(a3==6))&&!(a27==1))))&&(a20==1))))){ + a5 = 1; + a12 = 8; + a3 = 5; + a22 = 0; + a18 = 1; + return -1; + } else if(((a22==1)&&((a18==1)&&((a15==1)&&(((a4==1)&&((!(a5==1)&&((a0==1)&&((((a20==1)&&(input==3))&&(a6==1))&&(a3==6))))&&(a12==10)))&&!(a27==1)))))){ + a4 = 0; + a3 = 8; + a5 = 1; + a22 = 0; + a12 = 8; + return 21; + } else if((((((!(a5==1)&&((a20==1)&&(!(a22==1)&&((a6==1)&&((((input==5)&&((a18==1)||!(a18==1)))&&(a3==6))&&(a0==1))))))&&!(a27==1))&&(a4==1))&&!(a15==1))&&(a12==12))){ + a3 = 5; + a18 = 1; + a12 = 10; + a4 = 0; + return 24; + } else if(((((a15==1)&&(((!(a6==1)&&((a20==1)&&((a27==1)&&((input==2)&&((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6)))||((a3==6)&&(!(a18==1)&&(a22==1))))))))&&!(a0==1))&&(a12==10)))&&!(a4==1))&&(a5==1))){ + a18 = 1; + a22 = 1; + a12 = 8; + a6 = 1; + a0 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if((((a22==1)&&(((a27==1)&&((a6==1)&&(!(a18==1)&&(!(a0==1)&&(((!(a15==1)&&(!(a4==1)&&(input==2)))&&!(a5==1))&&(a3==5))))))&&(a20==1)))&&(a12==11))){ + a3 = 6; + a6 = 0; + a22 = 0; + a27 = 0; + a0 = 1; + a12 = 12; + a18 = 1; + a5 = 1; + return 26; + } else if(((!(a15==1)&&((a5==1)&&(!(a0==1)&&((a12==10)&&(!(a6==1)&&((((input==1)&&((((a3==4)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==4)))||((a3==5)&&((a18==1)&&(a22==1)))))&&(a4==1))&&(a20==1)))))))&&(a27==1))){ + a18 = 0; + a5 = 0; + a22 = 0; + a0 = 1; + a3 = 6; + return 21; + } else if(((((((!(a27==1)&&((!(a15==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))||((a3==5)&&(!(a18==1)&&(a22==1))))&&(input==1)))&&(a6==1)))&&(a0==1))&&(a12==8))&&(a5==1))&&(a20==1))&&!(a4==1))){ + a3 = 4; + a18 = 1; + a4 = 1; + a22 = 1; + a15 = 1; + a27 = 1; + return -1; + } else if((((a0==1)&&(!(a6==1)&&((a5==1)&&(!(a4==1)&&((a27==1)&&((((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==4))&&(a20==1))&&(a15==1))&&(a12==12)))))))&&(a3==6))){ + a22 = 1; + a4 = 1; + a3 = 4; + a6 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if((((a0==1)&&(!(a15==1)&&((!(a5==1)&&((a12==8)&&(!(a6==1)&&(((input==3)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))||(((a22==1)&&!(a18==1))&&(a3==5))))&&!(a4==1)))))&&!(a27==1))))&&(a20==1))){ + a12 = 10; + a27 = 1; + a18 = 1; + a6 = 1; + a4 = 1; + a15 = 1; + a22 = 0; + a3 = 4; + return -1; + } else if((((a20==1)&&(((!(a4==1)&&(((a18==1)&&((a12==11)&&(!(a0==1)&&((a5==1)&&((input==4)&&(a6==1))))))&&!(a15==1)))&&!(a22==1))&&!(a27==1)))&&(a3==4))){ + if((a6==1)){ + a3 = 6; + a15 = 1; + a4 = 1; + a12 = 8; + a22 = 1; + a27 = 1; + a18 = 0; + a0 = 1; + }else{ + a18 = 0; + a22 = 1; + a12 = 8; + a15 = 1; + a27 = 1; + a0 = 1; + } + return -1; + } else if((((a27==1)&&((!(a6==1)&&(((a12==10)&&(!(a18==1)&&(((a0==1)&&(((input==4)&&!(a5==1))&&(a15==1)))&&(a3==8))))&&!(a22==1)))&&(a4==1)))&&(a20==1))){ + a5 = 1; + a3 = 7; + a6 = 1; + a12 = 11; + return 21; + } else if(((a6==1)&&((a15==1)&&(((a4==1)&&((a12==9)&&(((!(a5==1)&&(((input==1)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&(a0==1)))&&(a27==1))&&(a20==1))))&&(a3==8))))){ + a22 = 0; + a18 = 0; + a5 = 1; + a12 = 12; + a3 = 4; + a4 = 0; + return 24; + } else if((((!(a0==1)&&(((a6==1)&&((a4==1)&&(!(a5==1)&&(((((input==3)&&!(a27==1))&&(a12==8))&&(a20==1))&&(a22==1)))))&&(a18==1)))&&(a3==6))&&(a15==1))){ + a3 = 8; + a18 = 0; + a4 = 0; + a27 = 1; + a0 = 1; + a5 = 1; + return -1; + } else if(((!(a6==1)&&((!(a15==1)&&(((!(a27==1)&&((a4==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5))&&(a3==6))))&&(a5==1))&&!(a0==1)))&&(a12==9)))&&(a20==1))){ + if((a22==1)){ + a27 = 1; + a22 = 1; + a3 = 5; + a12 = 11; + a6 = 1; + a15 = 1; + a18 = 1; + a4 = 0; + }else{ + a3 = 8; + a22 = 0; + a12 = 12; + a27 = 1; + a18 = 0; + a15 = 1; + a0 = 1; + a5 = 0; + } + return -1; + } else if(((a0==1)&&((a20==1)&&((a12==8)&&(((!(a27==1)&&((a3==6)&&((a4==1)&&(((a6==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a22==1)))))&&(a15==1))&&(a5==1)))))){ + a4 = 0; + a22 = 0; + a18 = 0; + a3 = 4; + a12 = 11; + a6 = 0; + a27 = 1; + return 21; + } else if((((a15==1)&&((((a27==1)&&(!(a4==1)&&(!(a0==1)&&((((((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a18==1)&&!(a22==1))))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==3))&&!(a5==1)))))&&(a20==1))&&(a6==1)))&&(a12==9))){ + a12 = 11; + a18 = 1; + a3 = 4; + a0 = 1; + a22 = 1; + a4 = 1; + return -1; + } else if(((a27==1)&&((a6==1)&&(((a12==10)&&(((((a0==1)&&((!(a15==1)&&((input==6)&&((a18==1)||!(a18==1))))&&!(a22==1)))&&!(a4==1))&&(a3==8))&&(a20==1)))&&(a5==1))))){ + a27 = 0; + a15 = 1; + a18 = 0; + a22 = 1; + a4 = 1; + a3 = 6; + return 26; + } else if(((!(a15==1)&&(((!(a0==1)&&((((a22==1)&&(!(a6==1)&&((a20==1)&&((input==3)&&(a18==1)))))&&(a12==9))&&(a3==7)))&&!(a27==1))&&(a5==1)))&&(a4==1))){ + if((a6==1)){ + a3 = 5; + a22 = 0; + a12 = 10; + a0 = 1; + a6 = 1; + }else{ + a22 = 0; + a0 = 1; + a3 = 6; + a12 = 8; + a18 = 0; + } + return 26; + } else if((((a20==1)&&(((((((a0==1)&&((!(a4==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a3==6)))&&!(a6==1))&&!(a22==1))&&!(a27==1))&&(a15==1))&&(a5==1)))&&(a12==9))){ + a3 = 8; + a18 = 0; + a12 = 12; + return 24; + } else if((!(a6==1)&&(((((a20==1)&&((((((a27==1)&&((input==4)&&(a3==5)))&&!(a15==1))&&!(a18==1))&&!(a4==1))&&!(a0==1)))&&(a22==1))&&!(a5==1))&&(a12==12)))){ + a4 = 1; + a12 = 8; + a27 = 0; + a22 = 0; + a6 = 1; + return 21; + } else if(((a27==1)&&(!(a4==1)&&((a20==1)&&((!(a6==1)&&(!(a22==1)&&((a3==8)&&(!(a5==1)&&((a12==10)&&(!(a0==1)&&((input==1)&&((a18==1)||!(a18==1)))))))))&&!(a15==1)))))){ + a15 = 1; + a3 = 4; + a0 = 1; + a5 = 1; + a4 = 1; + a18 = 0; + a6 = 1; + a12 = 12; + return 21; + } else if(((a20==1)&&((!(a15==1)&&(!(a18==1)&&(!(a22==1)&&((((!(a27==1)&&(!(a0==1)&&((input==3)&&!(a5==1))))&&(a3==7))&&(a12==9))&&(a4==1)))))&&(a6==1)))){ + if((a5==1)){ + a12 = 8; + a15 = 1; + a3 = 8; + a5 = 1; + a0 = 1; + a27 = 1; + }else{ + a12 = 8; + a3 = 8; + a5 = 1; + a27 = 1; + a0 = 1; + a15 = 1; + } + return 24; + } else if(((!(a4==1)&&((a27==1)&&((((((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==1))&&(a12==11))&&(a20==1))&&(a5==1))&&(a3==6))&&(a15==1))&&(a6==1))))&&(a0==1))){ + a22 = 1; + a12 = 8; + a18 = 1; + a6 = 0; + a4 = 1; + a3 = 8; + a0 = 0; + return 21; + } else if(((a12==9)&&((a27==1)&&(((a3==4)&&((((a5==1)&&(((a0==1)&&(((input==2)&&!(a18==1))&&(a20==1)))&&!(a15==1)))&&!(a22==1))&&(a4==1)))&&(a6==1))))){ + a5 = 0; + a18 = 1; + a12 = 10; + a6 = 0; + a3 = 5; + return 21; + } else if((((a15==1)&&((a12==10)&&(!(a0==1)&&((a4==1)&&((a5==1)&&((((a27==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==5)))&&(a3==7))&&(a6==1)))))))&&(a20==1))){ + a3 = 8; + a0 = 1; + a22 = 1; + a5 = 0; + a12 = 11; + a18 = 0; + return 21; + } else if((((((a27==1)&&(((a20==1)&&(!(a0==1)&&(!(a15==1)&&(!(a5==1)&&((input==3)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))))&&!(a6==1)))&&(a3==5))&&!(a4==1))&&(a12==11))){ + a22 = 1; + a15 = 1; + a18 = 1; + a12 = 12; + a5 = 1; + a0 = 1; + return 21; + } else if(((a3==7)&&((((a0==1)&&((!(a27==1)&&((((((input==2)&&(a6==1))&&!(a15==1))&&!(a4==1))&&!(a22==1))&&(a5==1)))&&(a18==1)))&&(a20==1))&&(a12==11)))){ + a22 = 1; + a6 = 0; + a12 = 8; + a3 = 4; + return -1; + } else if((!(a5==1)&&((a20==1)&&(((a6==1)&&((a12==12)&&((a15==1)&&(((((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a27==1))&&!(a4==1))&&(a3==5)))))&&(a0==1))))){ + a22 = 1; + a18 = 0; + a4 = 1; + a5 = 1; + a6 = 0; + a3 = 7; + return 21; + } else if(((a12==12)&&(!(a5==1)&&(((((input==5)&&(((a6==1)&&((a3==4)&&((((a22==1)&&!(a18==1))&&!(a15==1))&&(a4==1))))||((((a3==8)&&(!(a4==1)&&((!(a18==1)&&!(a22==1))&&(a15==1))))&&!(a6==1))||((((a4==1)&&(!(a15==1)&&((a18==1)&&(a22==1))))&&(a3==4))&&(a6==1)))))&&(a20==1))&&(a0==1))&&(a27==1))))){ + a3 = 5; + a4 = 1; + a22 = 1; + a12 = 8; + a0 = 0; + a18 = 1; + a15 = 1; + a6 = 0; + return -1; + } else if((!(a4==1)&&((a20==1)&&(!(a5==1)&&(((!(a15==1)&&((((a0==1)&&((a22==1)&&((input==3)&&((a18==1)||!(a18==1)))))&&(a12==9))&&(a6==1)))&&!(a27==1))&&(a3==5)))))){ + a12 = 11; + a18 = 0; + a6 = 0; + a27 = 1; + a4 = 1; + a5 = 1; + a3 = 7; + a15 = 1; + return -1; + } else if((((((((a0==1)&&(((((((a4==1)&&(!(a22==1)&&(a18==1)))&&(a3==8))&&!(a6==1))||(!(a6==1)&&(((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8))))||((a6==1)&&((!(a4==1)&&((a18==1)&&(a22==1)))&&(a3==4))))&&(input==6)))&&(a12==11))&&!(a15==1))&&(a5==1))&&(a20==1))&&!(a27==1))){ + a18 = 0; + a27 = 1; + a6 = 0; + a4 = 0; + a3 = 4; + a12 = 10; + a15 = 1; + a22 = 0; + a5 = 0; + return 21; + } else if((!(a6==1)&&(((!(a0==1)&&((a15==1)&&(((((input==4)&&((((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a22==1)&&!(a18==1))))||((a3==5)&&((a22==1)&&(a18==1)))))&&!(a4==1))&&(a27==1))&&(a12==12))))&&(a20==1))&&(a5==1)))){ + a0 = 1; + a4 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + a18 = 1; + a6 = 1; + return -1; + } else if((!(a0==1)&&((((((((a5==1)&&((a4==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==2))))&&!(a15==1))&&(a6==1))&&(a12==10))&&!(a27==1))&&(a20==1))&&(a3==8)))){ + if((a3==8)){ + a18 = 0; + a15 = 1; + a6 = 0; + a0 = 1; + a12 = 8; + a27 = 1; + a22 = 0; + }else{ + a22 = 1; + a12 = 8; + a18 = 1; + a6 = 0; + a15 = 1; + a3 = 7; + a0 = 1; + a27 = 1; + } + return -1; + } else if((!(a5==1)&&(((a4==1)&&((a20==1)&&(((a15==1)&&((((!(a6==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a3==5))&&(a12==12))&&(a27==1)))&&!(a0==1))))&&(a22==1)))){ + a5 = 1; + a12 = 9; + a18 = 1; + a3 = 8; + return -1; + } else if(((a20==1)&&(!(a4==1)&&((a12==11)&&((!(a0==1)&&((a6==1)&&((!(a5==1)&&((input==5)&&(((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==5)))))&&!(a15==1))))&&(a27==1)))))){ + a12 = 10; + a4 = 1; + a3 = 8; + a18 = 0; + a22 = 0; + a0 = 1; + a6 = 0; + return 21; + } else if((((((a12==9)&&(((a4==1)&&((a20==1)&&((a15==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2))&&(a3==5)))))&&(a5==1)))&&!(a0==1))&&!(a27==1))&&(a6==1))){ + a18 = 1; + a22 = 0; + a12 = 8; + a27 = 1; + a6 = 0; + a3 = 8; + a0 = 1; + return 26; + } else if(((((((((a12==11)&&((a5==1)&&((input==5)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6)))||((a3==6)&&(!(a18==1)&&(a22==1)))))))&&!(a6==1))&&!(a0==1))&&(a20==1))&&!(a27==1))&&(a4==1))&&!(a15==1))){ + a5 = 0; + a3 = 5; + a12 = 10; + a22 = 0; + a4 = 0; + a18 = 0; + a15 = 1; + a27 = 1; + return -1; + } else if(((a20==1)&&(!(a6==1)&&((a15==1)&&((a5==1)&&((a27==1)&&((a4==1)&&(!(a0==1)&&((a12==9)&&((a3==5)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4)))))))))))){ + a12 = 10; + a3 = 6; + a18 = 1; + a22 = 0; + a15 = 0; + return -1; + } else if(((!(a0==1)&&((((a4==1)&&((((a3==4)&&((!(a18==1)&&((a5==1)&&(input==2)))&&!(a15==1)))&&(a12==11))&&!(a6==1)))&&!(a22==1))&&(a27==1)))&&(a20==1))){ + a3 = 7; + a15 = 1; + a27 = 0; + a0 = 1; + a12 = 9; + return 26; + } else if((!(a6==1)&&(((a4==1)&&(!(a27==1)&&((((a12==10)&&((((a3==4)&&((input==5)&&(a20==1)))&&(a22==1))&&(a15==1)))&&!(a5==1))&&!(a0==1))))&&(a18==1)))){ + a5 = 1; + a12 = 11; + a4 = 0; + a22 = 0; + a18 = 0; + a27 = 1; + a0 = 1; + a3 = 7; + return -1; + } else if((!(a15==1)&&(!(a4==1)&&(!(a0==1)&&((a5==1)&&(!(a27==1)&&((a3==7)&&(((a20==1)&&((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a12==8)))&&(a6==1))))))))){ + a18 = 1; + a3 = 4; + a22 = 1; + a27 = 1; + a15 = 1; + a0 = 1; + return 26; + } else if((((a12==9)&&(((a0==1)&&((!(a6==1)&&((a20==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==4))&&!(a27==1))))&&(a4==1)))&&!(a5==1)))&&!(a15==1))){ + a27 = 1; + a18 = 1; + a6 = 1; + a12 = 12; + a22 = 1; + a3 = 7; + a15 = 1; + return 26; + } else if((!(a6==1)&&(!(a27==1)&&((!(a22==1)&&(((a3==6)&&(!(a18==1)&&((a20==1)&&((a4==1)&&((a12==11)&&((input==5)&&!(a15==1)))))))&&!(a5==1)))&&(a0==1))))){ + if((a5==1)){ + a5 = 1; + a4 = 0; + a0 = 0; + a3 = 7; + a27 = 1; + }else{ + a22 = 1; + a4 = 0; + a5 = 1; + a12 = 8; + a3 = 7; + a6 = 1; + } + return -1; + } else if((!(a6==1)&&((!(a27==1)&&(((a20==1)&&((a3==8)&&((((a12==10)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==2)))&&(a5==1))&&(a4==1))))&&!(a0==1)))&&(a15==1)))){ + a12 = 8; + a22 = 1; + a4 = 0; + a6 = 1; + a0 = 1; + a27 = 1; + a3 = 6; + a18 = 0; + return 24; + } else if((((a4==1)&&((((a6==1)&&((a20==1)&&(((a3==6)&&((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==5))&&(a12==9)))&&!(a5==1))))&&!(a15==1))&&(a27==1)))&&!(a0==1))){ + a5 = 1; + a6 = 0; + a22 = 1; + a0 = 1; + a18 = 1; + a4 = 0; + a3 = 7; + a12 = 10; + return -1; + } else if(((a18==1)&&(((((a22==1)&&(((a3==8)&&(((a4==1)&&(!(a0==1)&&((a15==1)&&(input==1))))&&!(a5==1)))&&!(a6==1)))&&(a20==1))&&(a12==9))&&!(a27==1)))){ + if((a5==1)){ + a12 = 8; + a22 = 0; + a27 = 1; + a3 = 5; + a6 = 1; + a0 = 1; + a5 = 1; + }else{ + a12 = 8; + a5 = 1; + a0 = 1; + a27 = 1; + } + return -1; + } else if(((a3==6)&&((!(a22==1)&&(!(a0==1)&&((a4==1)&&((a18==1)&&((a5==1)&&((a27==1)&&(((a20==1)&&((a12==11)&&(input==6)))&&!(a15==1))))))))&&(a6==1)))){ + a3 = 8; + a15 = 1; + a22 = 1; + a0 = 1; + return 21; + } else if(((((a0==1)&&(((((a20==1)&&((a22==1)&&(!(a6==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&!(a15==1)))))&&!(a4==1))&&(a3==7))&&(a27==1)))&&!(a5==1))&&(a12==8))){ + a15 = 1; + a3 = 6; + a18 = 1; + a4 = 1; + a12 = 11; + return 26; + } else if((!(a27==1)&&((((input==6)&&((!(a6==1)&&((a3==8)&&(!(a4==1)&&((!(a15==1)&&(!(a5==1)&&(!(a22==1)&&!(a18==1))))&&(a12==9)))))||(((((((a5==1)&&((a22==1)&&(a18==1)))&&(a15==1))&&(a12==10))&&(a4==1))&&(a3==4))&&(a6==1))))&&!(a0==1))&&(a20==1)))){ + a3 = 5; + a5 = 0; + a18 = 1; + a4 = 1; + a15 = 0; + a6 = 0; + a22 = 0; + a12 = 11; + return 26; + } else if(((((((a6==1)&&((((a4==1)&&((a20==1)&&(!(a22==1)&&((input==4)&&(a12==12)))))&&(a3==4))&&(a27==1)))&&(a18==1))&&(a0==1))&&(a5==1))&&!(a15==1))){ + a12 = 8; + a4 = 0; + a3 = 8; + a15 = 1; + a6 = 0; + a22 = 1; + return -1; + } else if((((a27==1)&&((((a4==1)&&((a20==1)&&(!(a5==1)&&(((((a12==8)&&(input==1))&&!(a15==1))&&(a6==1))&&!(a22==1)))))&&(a0==1))&&(a3==8)))&&!(a18==1))){ + a18 = 1; + a4 = 0; + a12 = 10; + a3 = 7; + return 26; + } else if(((a6==1)&&((!(a0==1)&&((a5==1)&&((!(a4==1)&&(((a12==10)&&((((input==1)&&((a18==1)||!(a18==1)))&&(a20==1))&&(a3==7)))&&!(a27==1)))&&(a15==1))))&&(a22==1)))){ + a27 = 1; + a22 = 0; + a18 = 1; + a0 = 1; + a4 = 1; + a6 = 0; + a12 = 8; + return -1; + } else if((!(a6==1)&&(!(a22==1)&&((a3==7)&&(!(a4==1)&&((((a5==1)&&((!(a15==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a12==10)))&&(a27==1)))&&(a20==1))&&!(a0==1))))))){ + a3 = 8; + a18 = 0; + a12 = 12; + a4 = 1; + a0 = 1; + a15 = 1; + return 24; + } else if(((((((a0==1)&&((a20==1)&&((a5==1)&&((((input==1)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a3==7))&&(a6==1)))))&&(a15==1))&&(a12==9))&&!(a4==1))&&!(a27==1))){ + a3 = 4; + a22 = 1; + a4 = 1; + a12 = 8; + a27 = 1; + a18 = 1; + return -1; + } else if((((a12==10)&&((a15==1)&&(!(a27==1)&&(!(a0==1)&&((((a20==1)&&(((((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==2)))&&!(a6==1))&&(a5==1))))))&&(a4==1))){ + a3 = 6; + a18 = 0; + a27 = 1; + a0 = 1; + a22 = 0; + a12 = 8; + return -1; + } else if((((((((!(a22==1)&&(!(a6==1)&&(((a20==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a12==11))))&&(a5==1))&&(a4==1))&&(a15==1))&&!(a27==1))&&(a3==5))&&!(a0==1))){ + if((a27==1)){ + a22 = 1; + a15 = 0; + a0 = 1; + a18 = 0; + a3 = 7; + a12 = 9; + }else{ + a3 = 7; + a12 = 9; + a27 = 1; + a18 = 1; + a6 = 1; + a5 = 0; + a15 = 0; + a4 = 0; + } + return 21; + } else if(((!(a18==1)&&(!(a6==1)&&((a27==1)&&((a4==1)&&(((a20==1)&&((!(a5==1)&&(((a0==1)&&(input==6))&&(a15==1)))&&(a12==12)))&&(a22==1))))))&&(a3==6))){ + a12 = 11; + a4 = 0; + a3 = 7; + a6 = 1; + return 26; + } else if(((!(a0==1)&&(!(a6==1)&&((a4==1)&&((!(a15==1)&&((((input==6)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1)))))&&(a12==8))&&(a27==1)))&&(a5==1)))))&&(a20==1))){ + a15 = 1; + a18 = 0; + a4 = 0; + a22 = 0; + a12 = 9; + a3 = 6; + a0 = 1; + return 24; + } else if((((!(a4==1)&&(((a5==1)&&(!(a27==1)&&(((a12==10)&&((input==1)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8)))||((a3==8)&&((a22==1)&&!(a18==1))))))&&(a15==1))))&&!(a0==1)))&&!(a6==1))&&(a20==1))){ + if((a22==1)){ + a12 = 8; + a22 = 1; + a27 = 1; + a6 = 1; + a18 = 1; + a3 = 8; + }else{ + a18 = 1; + a3 = 6; + a12 = 8; + a22 = 0; + a0 = 1; + a27 = 1; + a6 = 1; + } + return -1; + } else if((((a5==1)&&(((!(a6==1)&&((!(a4==1)&&((a0==1)&&(!(a15==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a3==6)))))&&(a12==12)))&&(a20==1))&&!(a27==1)))&&!(a22==1))){ + a3 = 8; + a22 = 1; + a27 = 1; + a18 = 1; + a12 = 10; + return 26; + } else if(((a20==1)&&(((a6==1)&&(((((a4==1)&&(!(a27==1)&&((input==1)&&(((a3==8)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a18==1)&&!(a22==1))))))))&&(a15==1))&&(a5==1))&&!(a0==1)))&&(a12==8)))){ + a27 = 1; + a18 = 1; + a15 = 0; + a22 = 1; + a6 = 0; + a3 = 5; + return 26; + } else if((!(a5==1)&&(((a4==1)&&(((((((a6==1)&&((input==3)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))))&&(a20==1))&&!(a27==1))&&(a3==6))&&(a12==9))&&!(a15==1)))&&!(a0==1)))){ + if((a27==1)){ + a6 = 0; + a5 = 1; + a18 = 0; + a3 = 4; + a22 = 1; + a12 = 8; + a0 = 1; + a15 = 1; + a27 = 1; + }else{ + a18 = 0; + a27 = 1; + a12 = 10; + a15 = 1; + a4 = 0; + a22 = 1; + } + return 26; + } else if(((a4==1)&&((a3==5)&&(((a6==1)&&(((a5==1)&&((((((input==1)&&(a20==1))&&!(a18==1))&&(a12==10))&&!(a0==1))&&(a27==1)))&&!(a15==1)))&&(a22==1))))){ + a15 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + a0 = 1; + return -1; + } else if((((a15==1)&&(!(a0==1)&&((a3==8)&&(((a6==1)&&((a20==1)&&((((a22==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&!(a4==1))&&(a12==11))))&&!(a5==1)))))&&!(a27==1))){ + a22 = 0; + a18 = 1; + a12 = 10; + a3 = 4; + a15 = 0; + return -1; + } else if((((a18==1)&&((a12==9)&&((!(a22==1)&&((!(a5==1)&&((a6==1)&&((a0==1)&&((a4==1)&&((input==4)&&!(a27==1))))))&&(a3==8)))&&(a15==1))))&&(a20==1))){ + a18 = 0; + a4 = 0; + a27 = 1; + a12 = 12; + a15 = 0; + a6 = 0; + a3 = 4; + a5 = 1; + return 26; + } else if(((((((!(a4==1)&&((((input==2)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1))))||((a3==6)&&((a18==1)&&(a22==1)))))&&(a12==12))&&(a0==1)))&&!(a6==1))&&!(a5==1))&&(a20==1))&&(a15==1))&&(a27==1))){ + if((a0==1)){ + a22 = 0; + a5 = 1; + a3 = 8; + a0 = 0; + a18 = 1; + a15 = 0; + a12 = 11; + }else{ + a18 = 0; + a4 = 1; + a6 = 1; + a5 = 1; + a3 = 5; + a22 = 1; + a0 = 0; + } + return 21; + } else if(((a27==1)&&(((a20==1)&&(!(a5==1)&&(!(a0==1)&&((((((((!(a18==1)&&!(a22==1))&&(a15==1))&&!(a4==1))&&(a3==8))&&!(a6==1))||(((a3==4)&&((!(a15==1)&&((a18==1)&&(a22==1)))&&(a4==1)))&&(a6==1)))||((a6==1)&&(((a4==1)&&(!(a15==1)&&((a22==1)&&!(a18==1))))&&(a3==4))))&&(input==5)))))&&(a12==9)))){ + a5 = 1; + a18 = 1; + a3 = 6; + a22 = 0; + a4 = 0; + a27 = 0; + a12 = 11; + a6 = 1; + a0 = 1; + a15 = 1; + return -1; + } else if((!(a5==1)&&(((a6==1)&&(!(a18==1)&&(((a15==1)&&((a0==1)&&(((((input==2)&&(a20==1))&&(a3==4))&&!(a27==1))&&!(a22==1))))&&!(a4==1))))&&(a12==8)))){ + a15 = 0; + a22 = 1; + a4 = 1; + a5 = 1; + a12 = 10; + return 26; + } else if((((a6==1)&&(((a27==1)&&(!(a4==1)&&(((a0==1)&&((a5==1)&&((a15==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==6)))))&&(a20==1))))&&(a3==4)))&&(a12==11))){ + a18 = 1; + a5 = 0; + a22 = 0; + a6 = 0; + a12 = 10; + return 26; + } else if(((a12==11)&&(((a6==1)&&((a20==1)&&(!(a15==1)&&(((a4==1)&&((a27==1)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==1))))&&!(a0==1)))))&&(a5==1)))){ + a18 = 0; + a22 = 0; + a4 = 0; + a3 = 6; + a5 = 0; + return 24; + } else if(((a12==8)&&((a5==1)&&((a4==1)&&((a0==1)&&(((((!(a22==1)&&(((input==2)&&!(a27==1))&&(a3==4)))&&!(a6==1))&&(a18==1))&&(a20==1))&&(a15==1))))))){ + a22 = 1; + a15 = 0; + a27 = 1; + a5 = 0; + a12 = 10; + a0 = 0; + return 26; + } else if((((!(a22==1)&&((a3==6)&&((a5==1)&&((((a0==1)&&(((((a18==1)||!(a18==1))&&(input==1))&&!(a6==1))&&(a4==1)))&&(a20==1))&&(a15==1)))))&&!(a27==1))&&(a12==11))){ + a15 = 0; + a6 = 1; + a12 = 9; + a18 = 0; + return -1; + } else if(((((a4==1)&&((a6==1)&&(((a3==6)&&(!(a0==1)&&(((a27==1)&&((input==2)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))&&!(a5==1))))&&(a12==10))))&&(a20==1))&&!(a15==1))){ + a12 = 11; + a0 = 1; + a22 = 0; + a18 = 1; + a4 = 0; + return 26; + } else if(((a20==1)&&((!(a6==1)&&((a3==8)&&((a12==8)&&((((a0==1)&&(!(a4==1)&&((input==5)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))))&&(a5==1))&&(a15==1)))))&&(a27==1)))){ + a22 = 1; + a4 = 1; + a6 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((!(a4==1)&&((a12==10)&&(!(a6==1)&&(((!(a5==1)&&((a22==1)&&(((a15==1)&&(((a18==1)&&(input==6))&&(a3==8)))&&(a20==1))))&&(a27==1))&&!(a0==1)))))){ + a4 = 1; + a12 = 8; + a5 = 1; + a6 = 1; + a0 = 1; + a3 = 4; + return -1; + } else if(((a0==1)&&(!(a15==1)&&(!(a4==1)&&(!(a5==1)&&((a12==12)&&(!(a27==1)&&(((a20==1)&&((a6==1)&&((input==1)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&(a3==6))))))))){ + a3 = 8; + a18 = 0; + a12 = 8; + a22 = 0; + a15 = 1; + return -1; + } else if(((((!(a15==1)&&((((!(a0==1)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==6)))&&(a27==1))&&!(a5==1))&&!(a4==1)))&&!(a6==1))&&(a20==1))&&(a12==10))){ + a6 = 1; + a3 = 4; + a18 = 1; + a0 = 1; + a5 = 1; + a12 = 12; + a22 = 1; + return 21; + } else if(((((((a15==1)&&((a20==1)&&((a12==8)&&((input==1)&&(((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4))))))))&&!(a5==1))&&(a27==1))&&!(a4==1))&&!(a0==1))){ + a18 = 1; + a6 = 1; + a3 = 4; + a22 = 1; + a5 = 1; + a4 = 1; + a0 = 1; + return -1; + } else if(((a20==1)&&(((((a3==6)&&((a0==1)&&((a6==1)&&(((!(a27==1)&&((input==4)&&(a4==1)))&&(a22==1))&&(a12==10)))))&&!(a5==1))&&(a18==1))&&(a15==1)))){ + a6 = 0; + a3 = 5; + a4 = 0; + a22 = 0; + a27 = 1; + a18 = 0; + return -1; + } else if((((a3==7)&&((a15==1)&&((a12==10)&&((a5==1)&&((a0==1)&&(((a4==1)&&(((a20==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a27==1)))&&!(a22==1)))))))&&!(a6==1))){ + a5 = 0; + a18 = 1; + a12 = 9; + a27 = 0; + a6 = 1; + a3 = 8; + return 21; + } else if(((a3==5)&&(!(a15==1)&&((a4==1)&&(!(a6==1)&&((a20==1)&&(!(a27==1)&&(((a0==1)&&(!(a5==1)&&((input==5)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))&&(a12==8))))))))){ + a22 = 1; + a12 = 11; + a3 = 7; + a5 = 1; + a18 = 1; + return 24; + } else if((((!(a4==1)&&((((a3==5)&&((a18==1)&&(((a20==1)&&(((a5==1)&&(input==3))&&(a27==1)))&&(a6==1))))&&!(a22==1))&&!(a15==1)))&&(a0==1))&&(a12==8))){ + a15 = 1; + a22 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if((!(a0==1)&&(!(a18==1)&&(((a3==6)&&(((a15==1)&&(((a5==1)&&(!(a27==1)&&(((input==6)&&!(a22==1))&&!(a4==1))))&&(a6==1)))&&(a20==1)))&&(a12==10))))){ + if((a15==1)){ + a27 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + a0 = 1; + }else{ + a22 = 1; + a0 = 1; + a3 = 8; + a6 = 0; + a18 = 1; + } + return -1; + } else if((((a3==5)&&(((a12==11)&&(((((!(a18==1)&&(!(a0==1)&&(!(a5==1)&&(input==6))))&&(a4==1))&&(a6==1))&&(a15==1))&&(a22==1)))&&(a27==1)))&&(a20==1))){ + a27 = 0; + a0 = 1; + a5 = 1; + a12 = 9; + return -1; + } else if(((a4==1)&&(((((a12==11)&&(((a0==1)&&((a5==1)&&(((input==5)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a27==1))))&&(a3==7)))&&(a15==1))&&(a6==1))&&(a20==1)))){ + a12 = 10; + a4 = 0; + a15 = 0; + a18 = 0; + a22 = 0; + return -1; + } else if(((!(a0==1)&&(((!(a22==1)&&(!(a5==1)&&((a20==1)&&(!(a27==1)&&((((input==5)&&((a18==1)||!(a18==1)))&&(a4==1))&&(a12==10))))))&&!(a15==1))&&(a3==5)))&&(a6==1))){ + a27 = 1; + a12 = 8; + a15 = 1; + a5 = 1; + a22 = 1; + a0 = 1; + a3 = 6; + a6 = 0; + a18 = 0; + return -1; + } else if(((((a3==5)&&((!(a0==1)&&((a15==1)&&(!(a27==1)&&(!(a4==1)&&((a5==1)&&((input==4)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))))))))&&(a12==10)))&&(a20==1))&&(a6==1))){ + if((a12==8)){ + a22 = 1; + a0 = 1; + a18 = 1; + a12 = 8; + a3 = 7; + a27 = 1; + }else{ + a22 = 1; + a18 = 0; + a5 = 0; + a4 = 1; + a3 = 7; + a12 = 11; + } + return -1; + } else if(((a27==1)&&(((((input==3)&&((((a3==8)&&(!(a4==1)&&(!(a15==1)&&((!(a18==1)&&!(a22==1))&&(a5==1)))))&&!(a6==1))||((((a4==1)&&((!(a5==1)&&((a18==1)&&(a22==1)))&&(a15==1)))&&(a3==4))&&(a6==1))))&&(a20==1))&&(a0==1))&&(a12==12)))){ + a15 = 0; + a18 = 1; + a22 = 0; + a3 = 5; + a5 = 1; + a27 = 0; + a6 = 0; + a4 = 0; + return 26; + } else if(((((((a27==1)&&((a6==1)&&((a18==1)&&(((a4==1)&&((a3==5)&&((a0==1)&&(input==2))))&&!(a15==1)))))&&(a22==1))&&(a20==1))&&(a12==10))&&(a5==1))){ + a12 = 12; + a3 = 7; + a6 = 0; + return 21; + } else if((!(a6==1)&&((a12==11)&&(((a20==1)&&(((a4==1)&&((a5==1)&&((a22==1)&&((!(a27==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a0==1)))))&&(a15==1)))&&(a3==7))))){ + a18 = 1; + a6 = 1; + a27 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((((a20==1)&&((a6==1)&&(((!(a4==1)&&((!(a15==1)&&((a5==1)&&(!(a18==1)&&(input==3))))&&(a22==1)))&&(a27==1))&&(a3==4))))&&(a12==11))&&!(a0==1))){ + a4 = 1; + a18 = 1; + a15 = 1; + a12 = 8; + a0 = 1; + return -1; + } else if(((((!(a27==1)&&(((a3==4)&&(((a6==1)&&((((input==6)&&((a18==1)||!(a18==1)))&&!(a22==1))&&(a12==8)))&&(a15==1)))&&(a20==1)))&&!(a4==1))&&(a5==1))&&(a0==1))){ + a5 = 0; + a3 = 5; + a6 = 0; + a0 = 0; + a4 = 1; + a18 = 1; + a22 = 1; + a27 = 1; + return 21; + } else if(((a20==1)&&((a6==1)&&((((!(a27==1)&&((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2))&&(a5==1))&&(a3==5))&&!(a15==1)))&&!(a0==1))&&(a12==11))&&!(a4==1))))){ + a27 = 1; + a18 = 1; + a15 = 1; + a12 = 8; + a22 = 1; + a4 = 1; + a6 = 0; + a0 = 1; + return 26; + } else if((((!(a6==1)&&(((!(a0==1)&&((a12==9)&&(((((a15==1)&&(input==6))&&!(a5==1))&&!(a22==1))&&(a18==1))))&&(a20==1))&&(a3==5)))&&!(a27==1))&&(a4==1))){ + if((a12==12)){ + a4 = 0; + a22 = 1; + a18 = 0; + a15 = 0; + a27 = 1; + a3 = 6; + a12 = 10; + a0 = 1; + }else{ + a27 = 1; + a0 = 1; + a5 = 1; + a12 = 8; + } + return 21; + } else if((((a20==1)&&((((a3==7)&&((((a18==1)&&(!(a27==1)&&(((input==6)&&!(a4==1))&&(a15==1))))&&!(a0==1))&&!(a5==1)))&&!(a6==1))&&(a12==9)))&&!(a22==1))){ + a5 = 1; + a6 = 1; + a0 = 1; + a12 = 8; + a4 = 1; + a3 = 5; + a18 = 0; + a27 = 1; + return -1; + } else if((((((a0==1)&&((a3==8)&&(((a12==8)&&((a27==1)&&((((a20==1)&&(input==5))&&!(a5==1))&&(a6==1))))&&!(a18==1))))&&!(a22==1))&&!(a15==1))&&(a4==1))){ + a4 = 0; + a12 = 10; + return 26; + } else if((!(a6==1)&&((((((a12==8)&&(((!(a4==1)&&((input==5)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))))&&!(a27==1))&&(a3==8)))&&!(a15==1))&&(a5==1))&&(a20==1))&&(a0==1)))){ + a15 = 1; + a27 = 1; + a18 = 1; + a4 = 1; + a22 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if(((((a0==1)&&(((((a3==7)&&((a12==8)&&((((input==1)&&!(a22==1))&&(a4==1))&&!(a27==1))))&&!(a18==1))&&(a15==1))&&!(a5==1)))&&(a20==1))&&!(a6==1))){ + a3 = 4; + a5 = 1; + a27 = 1; + a6 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((!(a0==1)&&(!(a15==1)&&(((a4==1)&&(((((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==1))&&(a20==1))&&(a5==1))&&(a6==1)))&&(a27==1))))&&(a12==10))){ + a27 = 0; + a6 = 0; + a5 = 0; + a18 = 0; + a22 = 0; + a0 = 1; + a3 = 5; + a15 = 1; + a12 = 11; + return 21; + } else if((((a12==8)&&((a4==1)&&((((a5==1)&&((a0==1)&&((a20==1)&&(!(a15==1)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==5))))))&&(a3==7))&&(a6==1))))&&!(a27==1))){ + a15 = 1; + a27 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if((((!(a6==1)&&((a12==9)&&((a22==1)&&(!(a15==1)&&(!(a4==1)&&(!(a0==1)&&((a20==1)&&((a3==7)&&((input==4)&&(a5==1))))))))))&&(a18==1))&&!(a27==1))){ + a22 = 0; + a12 = 10; + a5 = 0; + a6 = 1; + a0 = 1; + a18 = 0; + a3 = 8; + return 26; + } else if((((a0==1)&&(!(a15==1)&&(((((!(a18==1)&&(((a4==1)&&((a12==11)&&(input==1)))&&(a20==1)))&&(a6==1))&&!(a5==1))&&(a22==1))&&(a27==1))))&&(a3==6))){ + if((a3==6)){ + a0 = 0; + a18 = 1; + a12 = 10; + a3 = 8; + a5 = 1; + }else{ + a15 = 1; + a3 = 7; + a5 = 1; + a6 = 0; + } + return -1; + } else if((((a3==5)&&((a12==12)&&(!(a4==1)&&((a20==1)&&((a15==1)&&(!(a0==1)&&(!(a5==1)&&((a6==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==1))))))))))&&(a27==1))){ + a4 = 1; + a15 = 0; + a12 = 8; + a5 = 1; + a22 = 1; + a18 = 0; + a0 = 1; + return 24; + } else if(((((a12==9)&&(!(a4==1)&&((a6==1)&&(((!(a0==1)&&(!(a22==1)&&(((a3==8)&&(input==6))&&!(a15==1))))&&(a27==1))&&!(a5==1)))))&&!(a18==1))&&(a20==1))){ + a6 = 0; + a4 = 1; + a5 = 1; + a22 = 1; + a0 = 1; + a3 = 5; + a12 = 12; + return -1; + } else if((((a4==1)&&((((a5==1)&&(((a12==8)&&(((a27==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1)))&&!(a0==1)))&&(a3==5)))&&!(a15==1))&&(a20==1)))&&!(a6==1))){ + a3 = 6; + a0 = 1; + a22 = 1; + a5 = 0; + a15 = 1; + a12 = 12; + a18 = 0; + return 21; + } else if((((((!(a22==1)&&((a20==1)&&((((a27==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a15==1)))&&(a0==1))&&(a12==9))))&&!(a5==1))&&(a3==8))&&!(a4==1))&&(a6==1))){ + a3 = 5; + a27 = 0; + a6 = 0; + a18 = 0; + a22 = 1; + a12 = 8; + return 26; + } else if((((((a15==1)&&(((a5==1)&&((((a22==1)&&(((a20==1)&&(input==2))&&!(a6==1)))&&(a4==1))&&(a3==6)))&&!(a0==1)))&&!(a18==1))&&!(a27==1))&&(a12==9))){ + if((a15==1)){ + a0 = 1; + a15 = 0; + a12 = 11; + a5 = 0; + a27 = 1; + a6 = 1; + }else{ + a27 = 1; + a3 = 7; + a12 = 8; + a0 = 1; + a18 = 1; + a22 = 0; + } + return 26; + } else if((!(a6==1)&&(((a20==1)&&(((a22==1)&&(((a3==6)&&(((((a12==9)&&(input==1))&&(a18==1))&&(a0==1))&&(a4==1)))&&!(a27==1)))&&(a15==1)))&&(a5==1)))){ + a0 = 0; + a12 = 11; + a5 = 0; + a4 = 0; + a3 = 5; + a6 = 1; + a27 = 1; + return 21; + } else if(((a12==9)&&((a3==5)&&(((((!(a6==1)&&(!(a27==1)&&(((!(a15==1)&&(input==1))&&(a4==1))&&!(a5==1))))&&!(a0==1))&&!(a18==1))&&(a20==1))&&(a22==1))))){ + a12 = 11; + a4 = 0; + a5 = 1; + a15 = 1; + a6 = 1; + a3 = 4; + a27 = 1; + return 24; + } else if((((!(a6==1)&&((a15==1)&&((a27==1)&&((((a12==11)&&((((a3==8)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7))))&&(input==4)))&&!(a0==1))&&(a4==1)))))&&!(a5==1))&&(a20==1))){ + a6 = 1; + a4 = 0; + a0 = 1; + a12 = 10; + a5 = 1; + a3 = 7; + a18 = 1; + a22 = 0; + return -1; + } else if(((((a20==1)&&((a12==8)&&((a5==1)&&((!(a6==1)&&(((input==5)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a18==1)&&(a22==1))))||((!(a18==1)&&(a22==1))&&(a3==6))))&&!(a0==1)))&&(a15==1)))))&&(a27==1))&&!(a4==1))){ + a18 = 1; + a0 = 1; + a12 = 12; + a3 = 5; + a22 = 0; + a4 = 1; + a6 = 1; + return 21; + } else if(((!(a5==1)&&(!(a27==1)&&(((((((input==5)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6))))&&!(a4==1))&&!(a15==1))&&!(a6==1))&&(a0==1))&&(a12==9))))&&(a20==1))){ + a6 = 1; + a4 = 1; + a22 = 1; + a27 = 1; + a12 = 8; + a15 = 1; + a5 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((!(a0==1)&&((a12==12)&&((((!(a15==1)&&((!(a5==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==3)))&&!(a4==1)))&&(a20==1))&&!(a6==1))&&(a27==1))))&&(a3==8))){ + a22 = 0; + a12 = 8; + a6 = 1; + a18 = 1; + a5 = 1; + a15 = 1; + a0 = 1; + return 24; + } else if((((a20==1)&&(!(a6==1)&&(((((a4==1)&&((((a0==1)&&((input==1)&&(a18==1)))&&!(a27==1))&&(a5==1)))&&(a3==4))&&(a12==12))&&!(a22==1))))&&!(a15==1))){ + a12 = 8; + a4 = 0; + a6 = 1; + a5 = 0; + a15 = 1; + return -1; + } else if((((a5==1)&&(!(a15==1)&&((a20==1)&&((a6==1)&&(!(a0==1)&&((a12==10)&&(((!(a27==1)&&((input==2)&&((a18==1)||!(a18==1))))&&(a3==7))&&!(a4==1))))))))&&(a22==1))){ + a0 = 1; + a4 = 1; + a6 = 0; + a12 = 8; + a18 = 0; + a15 = 1; + a3 = 5; + a27 = 1; + return 21; + } else if(((a27==1)&&(((((a15==1)&&((a18==1)&&((a22==1)&&((a0==1)&&(!(a5==1)&&((a20==1)&&((input==5)&&(a3==4))))))))&&(a4==1))&&(a12==9))&&(a6==1)))){ + a3 = 8; + a5 = 1; + a12 = 11; + a18 = 0; + return 21; + } else if(((a5==1)&&((a22==1)&&(((a12==12)&&((((a3==8)&&(((a0==1)&&(!(a6==1)&&((input==4)&&((a18==1)||!(a18==1)))))&&!(a27==1)))&&!(a15==1))&&!(a4==1)))&&(a20==1))))){ + a18 = 1; + a3 = 4; + a15 = 1; + a4 = 1; + a6 = 1; + a12 = 8; + a27 = 1; + return -1; + } else if(((((a6==1)&&(!(a4==1)&&((((((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==3))&&!(a5==1))&&!(a27==1))&&(a20==1))&&(a12==12))))&&(a0==1))&&(a15==1))){ + a15 = 0; + a12 = 10; + a3 = 4; + a5 = 1; + a18 = 1; + a22 = 0; + return 21; + } else if(((!(a27==1)&&((!(a6==1)&&((a0==1)&&((((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a20==1))&&(a12==10))&&!(a5==1))&&(a15==1))))&&!(a4==1)))&&(a3==5))){ + a5 = 1; + a6 = 1; + a3 = 4; + a27 = 1; + a18 = 1; + a22 = 1; + a4 = 1; + a12 = 8; + return -1; + } else if((((((a3==8)&&((!(a27==1)&&(!(a15==1)&&((((a20==1)&&(!(a5==1)&&(input==3)))&&(a22==1))&&(a18==1))))&&(a4==1)))&&(a12==11))&&(a6==1))&&(a0==1))){ + a12 = 10; + a22 = 0; + a15 = 1; + a3 = 4; + a27 = 1; + return 21; + } else if((((!(a22==1)&&(((!(a0==1)&&(!(a15==1)&&((a12==8)&&((a4==1)&&((((a18==1)||!(a18==1))&&(input==5))&&(a20==1))))))&&(a27==1))&&(a6==1)))&&(a5==1))&&(a3==7))){ + a22 = 1; + a5 = 0; + a18 = 1; + a3 = 5; + a6 = 0; + a4 = 0; + return 21; + } else if((((a20==1)&&((a6==1)&&((a4==1)&&((!(a0==1)&&((a22==1)&&((a12==8)&&((!(a27==1)&&((input==4)&&(a15==1)))&&!(a18==1)))))&&(a3==5)))))&&!(a5==1))){ + if((a27==1)){ + a3 = 4; + a22 = 0; + a18 = 1; + a12 = 9; + }else{ + a4 = 0; + a3 = 4; + a22 = 0; + a0 = 1; + a27 = 1; + a18 = 1; + a5 = 1; + } + return -1; + } else if((((a15==1)&&((a3==5)&&(!(a5==1)&&((((((a20==1)&&((input==3)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))&&(a0==1))&&!(a27==1))&&(a4==1))&&(a6==1)))))&&(a12==11))){ + a22 = 1; + a18 = 0; + a27 = 1; + a5 = 1; + a15 = 0; + return 24; + } else if((!(a22==1)&&((((a3==8)&&(!(a5==1)&&((!(a0==1)&&(!(a6==1)&&(!(a27==1)&&((a4==1)&&((a18==1)&&(input==5))))))&&(a20==1))))&&!(a15==1))&&(a12==11)))){ + a22 = 1; + a0 = 1; + a12 = 8; + a15 = 1; + return 26; + } else if(((a0==1)&&((a3==4)&&((a27==1)&&((a5==1)&&((((a6==1)&&((a12==11)&&((a4==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==5)))))&&(a20==1))&&!(a15==1))))))){ + a15 = 1; + a18 = 0; + a3 = 8; + a22 = 1; + a0 = 0; + return 26; + } else if((((a3==5)&&(((a22==1)&&(!(a0==1)&&(((a4==1)&&((!(a6==1)&&((!(a27==1)&&(input==5))&&!(a15==1)))&&!(a5==1)))&&!(a18==1))))&&(a20==1)))&&(a12==9))){ + a27 = 1; + a12 = 10; + a3 = 4; + a22 = 0; + a15 = 1; + return 26; + } else if((((((!(a5==1)&&(!(a4==1)&&((a20==1)&&((!(a22==1)&&((a12==10)&&((a3==4)&&(input==5))))&&!(a18==1)))))&&!(a15==1))&&(a27==1))&&!(a0==1))&&!(a6==1))){ + a12 = 11; + a0 = 1; + a3 = 5; + a6 = 1; + a22 = 1; + a4 = 1; + return 26; + } else if((((a6==1)&&((a20==1)&&((((a15==1)&&((a5==1)&&(!(a0==1)&&(((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a22==1)&&(a18==1))))||((a3==8)&&((a22==1)&&!(a18==1))))&&(input==4)))))&&!(a27==1))&&(a12==8))))&&!(a4==1))){ + a12 = 9; + a18 = 0; + a3 = 6; + a0 = 1; + a15 = 0; + a22 = 0; + return 26; + } else if((!(a4==1)&&(((((a12==8)&&((((a3==6)&&((a27==1)&&((input==5)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))))&&!(a6==1))&&(a0==1)))&&(a20==1))&&!(a5==1))&&!(a15==1)))){ + a4 = 1; + a12 = 11; + a15 = 1; + a22 = 0; + a6 = 1; + a18 = 0; + a3 = 7; + return 26; + } else if(((((a22==1)&&((a27==1)&&(((a6==1)&&((!(a4==1)&&((!(a5==1)&&((input==2)&&((a18==1)||!(a18==1))))&&!(a0==1)))&&(a15==1)))&&(a3==4))))&&(a20==1))&&(a12==9))){ + a15 = 0; + a22 = 0; + a6 = 0; + a18 = 1; + a0 = 1; + a27 = 0; + a5 = 1; + return -1; + } else if(((a20==1)&&((a15==1)&&((((a12==11)&&(((((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==6))&&(a6==1))&&!(a0==1))&&(a5==1)))&&(a4==1))&&!(a27==1))))){ + a22 = 1; + a18 = 1; + a0 = 1; + a3 = 7; + a27 = 1; + a12 = 8; + return 21; + } else if(((a15==1)&&((!(a27==1)&&(((a6==1)&&(((a0==1)&&((a20==1)&&(((a3==7)&&(((a18==1)||!(a18==1))&&(input==5)))&&!(a5==1))))&&(a12==8)))&&!(a22==1)))&&(a4==1)))){ + a18 = 0; + a12 = 11; + a27 = 1; + a3 = 6; + return 21; + } else if((!(a6==1)&&(((a0==1)&&(!(a27==1)&&((((a18==1)&&((((!(a15==1)&&(input==4))&&(a3==4))&&(a20==1))&&!(a22==1)))&&(a5==1))&&(a4==1))))&&(a12==11)))){ + a5 = 0; + a3 = 7; + a22 = 1; + a12 = 12; + a4 = 0; + return 26; + } else if(((a15==1)&&((((((a0==1)&&((a12==8)&&((a6==1)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==3)))))&&(a20==1))&&!(a5==1))&&(a4==1))&&(a27==1)))){ + if((a0==1)){ + a12 = 11; + a3 = 4; + a22 = 1; + a4 = 0; + a0 = 0; + a6 = 0; + a18 = 1; + }else{ + a18 = 0; + a6 = 0; + a12 = 9; + a22 = 0; + a3 = 5; + a15 = 0; + } + return 21; + } else if((!(a18==1)&&((a0==1)&&((a20==1)&&((a5==1)&&((!(a6==1)&&((!(a27==1)&&((a4==1)&&(((a3==4)&&(input==3))&&(a22==1))))&&(a12==8)))&&(a15==1))))))){ + a0 = 0; + a3 = 7; + a27 = 1; + a22 = 0; + a5 = 0; + return 24; + } else if(((a3==8)&&((((!(a6==1)&&((((a22==1)&&((((a12==12)&&(input==1))&&(a20==1))&&!(a15==1)))&&!(a5==1))&&(a27==1)))&&(a4==1))&&(a0==1))&&!(a18==1)))){ + a18 = 1; + a6 = 1; + a3 = 4; + a12 = 11; + a22 = 0; + a5 = 1; + return 26; + } else if((((((!(a27==1)&&((((a12==9)&&((a4==1)&&((input==2)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&(a6==1))&&(a0==1)))&&(a5==1))&&(a20==1))&&(a3==6))&&!(a15==1))){ + a3 = 4; + a15 = 1; + a12 = 8; + a27 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((a20==1)&&(((a0==1)&&(((!(a27==1)&&(((a3==8)&&((!(a22==1)&&(!(a4==1)&&(input==3)))&&(a6==1)))&&(a12==11)))&&(a18==1))&&!(a5==1)))&&!(a15==1)))){ + a22 = 1; + a4 = 1; + a12 = 10; + a18 = 0; + a3 = 6; + return -1; + } else if(((((a20==1)&&(!(a5==1)&&(((!(a4==1)&&((a12==9)&&(((a6==1)&&((input==3)&&(a27==1)))&&(a22==1))))&&!(a18==1))&&(a0==1))))&&(a15==1))&&(a3==4))){ + a3 = 7; + a12 = 11; + a0 = 0; + a5 = 1; + a22 = 0; + a4 = 1; + a18 = 1; + return 26; + } else if((((((((((a4==1)&&((a22==1)&&(((input==4)&&!(a6==1))&&(a3==6))))&&!(a27==1))&&(a0==1))&&(a12==8))&&(a18==1))&&!(a5==1))&&!(a15==1))&&(a20==1))){ + a27 = 1; + a18 = 0; + a3 = 8; + a5 = 1; + a6 = 1; + a12 = 12; + a22 = 0; + return -1; + } else if((((a27==1)&&(((((!(a6==1)&&((a3==8)&&((a5==1)&&(((input==5)&&(a22==1))&&!(a15==1)))))&&(a4==1))&&!(a18==1))&&(a20==1))&&(a0==1)))&&(a12==11))){ + a0 = 0; + a18 = 1; + a4 = 0; + a12 = 9; + a15 = 1; + a3 = 5; + a5 = 0; + return -1; + } else if((!(a0==1)&&((!(a18==1)&&(((a27==1)&&(((((a12==10)&&(!(a5==1)&&((input==3)&&!(a4==1))))&&(a3==6))&&!(a22==1))&&(a20==1)))&&!(a6==1)))&&!(a15==1)))){ + a0 = 1; + a4 = 1; + a5 = 1; + a6 = 1; + a18 = 1; + return -1; + } else if(((a6==1)&&(((((((!(a5==1)&&((a20==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==4))))&&(a3==4))&&(a0==1))&&(a12==8))&&!(a27==1))&&!(a15==1))&&!(a4==1)))){ + a22 = 1; + a5 = 1; + a4 = 1; + a18 = 1; + a15 = 1; + a27 = 1; + return -1; + } else if((((a27==1)&&(((a12==9)&&(!(a0==1)&&(((a20==1)&&((((a3==7)&&(!(a15==1)&&(input==1)))&&(a22==1))&&!(a6==1)))&&!(a5==1))))&&!(a4==1)))&&(a18==1))){ + a22 = 0; + a4 = 1; + a15 = 1; + a0 = 1; + a3 = 5; + a5 = 1; + return 26; + } else if(((a5==1)&&(!(a0==1)&&(!(a4==1)&&((a6==1)&&((a20==1)&&(((!(a27==1)&&(!(a22==1)&&(((a12==10)&&(input==4))&&(a15==1))))&&!(a18==1))&&(a3==8)))))))){ + a4 = 1; + a27 = 1; + a12 = 8; + a0 = 1; + a18 = 1; + a6 = 0; + a22 = 1; + return -1; + } else if(((!(a27==1)&&(((((a3==7)&&(!(a5==1)&&(((((input==2)&&((a18==1)||!(a18==1)))&&(a20==1))&&!(a6==1))&&(a15==1))))&&(a12==11))&&(a4==1))&&(a22==1)))&&!(a0==1))){ + if((a3==6)){ + a15 = 0; + a3 = 8; + a12 = 8; + a18 = 0; + a0 = 1; + a22 = 0; + }else{ + a27 = 1; + a3 = 4; + a18 = 0; + a22 = 0; + a6 = 1; + a15 = 0; + } + return 21; + } else if((!(a0==1)&&(!(a27==1)&&((!(a4==1)&&((((!(a5==1)&&((a12==10)&&(((input==3)&&!(a22==1))&&!(a6==1))))&&(a15==1))&&(a20==1))&&!(a18==1)))&&(a3==8))))){ + a22 = 1; + a3 = 6; + a5 = 1; + a6 = 1; + a0 = 1; + a12 = 8; + a27 = 1; + return -1; + } else if(((a20==1)&&((a12==9)&&((!(a0==1)&&(!(a4==1)&&((a15==1)&&((!(a27==1)&&((((input==2)&&!(a22==1))&&!(a5==1))&&(a6==1)))&&(a18==1)))))&&(a3==4))))){ + if((a4==1)){ + a3 = 6; + a4 = 1; + a18 = 0; + a6 = 0; + a12 = 10; + }else{ + a0 = 1; + a18 = 0; + a4 = 1; + a5 = 1; + a12 = 8; + a27 = 1; + a3 = 6; + } + return 21; + } else if((((a4==1)&&(!(a27==1)&&(((a12==9)&&(((a5==1)&&(((a3==6)&&((input==6)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a15==1)))&&(a20==1)))&&(a6==1))))&&(a0==1))){ + a27 = 1; + a15 = 1; + a5 = 0; + a18 = 1; + a22 = 0; + a12 = 11; + a3 = 7; + return 26; + } else if(((a3==4)&&((!(a5==1)&&(((!(a4==1)&&((((!(a18==1)&&(!(a6==1)&&(input==5)))&&(a12==9))&&(a20==1))&&!(a0==1)))&&!(a27==1))&&(a22==1)))&&(a15==1)))){ + a0 = 1; + a5 = 1; + a3 = 7; + a22 = 0; + return -1; + } else if(((((a20==1)&&((((a5==1)&&(!(a6==1)&&((((a18==1)&&((a3==6)&&(input==2)))&&(a4==1))&&(a27==1))))&&!(a0==1))&&!(a15==1)))&&(a12==10))&&(a22==1))){ + if((a6==1)){ + a18 = 0; + a3 = 8; + a22 = 0; + a5 = 0; + }else{ + a18 = 0; + a3 = 7; + a12 = 8; + a0 = 1; + a5 = 0; + } + return 26; + } else if((((a20==1)&&(!(a15==1)&&((a12==8)&&(((a5==1)&&(((a3==4)&&((a4==1)&&((input==6)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&(a0==1)))&&!(a27==1)))))&&(a6==1))){ + if((a22==1)){ + a12 = 9; + a0 = 0; + a18 = 0; + a22 = 0; + a3 = 5; + a4 = 0; + a27 = 1; + }else{ + a22 = 0; + a5 = 0; + a18 = 1; + a12 = 11; + a3 = 7; + a6 = 0; + } + return 26; + } else if((!(a6==1)&&(((a27==1)&&(((a3==5)&&(((!(a15==1)&&((a12==12)&&((a18==1)&&((input==2)&&!(a4==1)))))&&!(a0==1))&&!(a22==1)))&&!(a5==1)))&&(a20==1)))){ + a4 = 1; + a22 = 1; + a0 = 1; + a12 = 10; + a15 = 1; + a27 = 0; + return -1; + } else if(((a15==1)&&((a6==1)&&(!(a22==1)&&((a20==1)&&((a27==1)&&(((a3==6)&&((a0==1)&&((((a12==9)&&(input==4))&&(a4==1))&&!(a18==1))))&&(a5==1)))))))){ + a3 = 4; + a18 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if(((a6==1)&&(((((a20==1)&&((a0==1)&&(!(a15==1)&&((a12==8)&&((input==2)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7))))))))&&!(a4==1))&&(a5==1))&&!(a27==1)))){ + a4 = 1; + a27 = 1; + a18 = 0; + a3 = 8; + a12 = 11; + a22 = 1; + return -1; + } else if(((a5==1)&&(((!(a0==1)&&((a20==1)&&((((!(a18==1)&&(!(a22==1)&&((a12==10)&&(input==4))))&&!(a6==1))&&!(a4==1))&&(a15==1))))&&(a27==1))&&(a3==7)))){ + a12 = 8; + a0 = 1; + a6 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a4 = 1; + return -1; + } else if((!(a0==1)&&((!(a4==1)&&((a20==1)&&((a6==1)&&(((a27==1)&&(((input==6)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5))))&&(a12==11)))&&(a5==1)))))&&(a15==1)))){ + a22 = 0; + a5 = 0; + a18 = 1; + a12 = 12; + a0 = 1; + a6 = 0; + a4 = 1; + a3 = 4; + return 26; + } else if((((!(a6==1)&&(!(a22==1)&&(((a3==5)&&(!(a4==1)&&(!(a0==1)&&(!(a15==1)&&((((a18==1)||!(a18==1))&&(input==1))&&!(a5==1))))))&&!(a27==1))))&&(a20==1))&&(a12==11))){ + a15 = 1; + a4 = 1; + a12 = 8; + a6 = 1; + a27 = 1; + a5 = 1; + a0 = 1; + a18 = 0; + a3 = 8; + return 26; + } else if(((a20==1)&&(((a3==6)&&((a6==1)&&((a0==1)&&(((a12==9)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1))&&!(a15==1))&&!(a5==1)))&&(a4==1)))))&&(a27==1)))){ + a12 = 11; + a5 = 1; + a22 = 1; + a3 = 8; + a4 = 0; + a18 = 1; + return 21; + } else if(((a20==1)&&((a0==1)&&(((!(a18==1)&&(((a12==9)&&((((a4==1)&&((a15==1)&&(input==6)))&&(a3==7))&&!(a6==1)))&&(a27==1)))&&(a22==1))&&!(a5==1))))){ + a27 = 0; + a15 = 0; + a4 = 0; + a12 = 8; + a18 = 1; + a22 = 0; + a5 = 1; + return 21; + } else if(((a20==1)&&(((((((a27==1)&&((a3==6)&&((a6==1)&&((input==4)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))))&&(a15==1))&&(a5==1))&&(a12==10))&&(a4==1))&&(a0==1)))){ + a22 = 0; + a3 = 5; + a18 = 0; + return -1; + } else if((!(a22==1)&&(((!(a15==1)&&((((((a0==1)&&((((a18==1)||!(a18==1))&&(input==6))&&(a20==1)))&&!(a27==1))&&(a12==10))&&(a5==1))&&(a6==1)))&&(a3==5))&&(a4==1)))){ + a27 = 1; + a4 = 0; + a12 = 8; + a3 = 6; + a15 = 1; + a18 = 1; + return -1; + } else if((((a12==9)&&(!(a15==1)&&((((((a4==1)&&((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==5))&&(a20==1)))&&!(a5==1))&&(a27==1))&&(a3==4))&&!(a6==1))))&&(a0==1))){ + a12 = 8; + a22 = 1; + a3 = 7; + a27 = 0; + a18 = 0; + a4 = 0; + return 21; + } else if((((a6==1)&&((a20==1)&&(((!(a5==1)&&((a0==1)&&((((a12==12)&&(((a18==1)||!(a18==1))&&(input==3)))&&!(a4==1))&&(a27==1))))&&(a3==7))&&(a22==1))))&&(a15==1))){ + a12 = 10; + a18 = 1; + a5 = 1; + a0 = 0; + return 24; + } else if(((a20==1)&&((((a27==1)&&((((((a4==1)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==1)))&&(a12==8))&&!(a15==1))&&!(a0==1))&&!(a5==1)))&&!(a6==1))&&(a3==4)))){ + a15 = 1; + a0 = 1; + a18 = 1; + a6 = 1; + a22 = 1; + a5 = 1; + return -1; + } else if(((a15==1)&&(!(a0==1)&&((a3==4)&&((a27==1)&&((((((a20==1)&&(!(a6==1)&&(((a18==1)||!(a18==1))&&(input==6))))&&(a22==1))&&(a5==1))&&(a12==9))&&(a4==1))))))){ + a18 = 1; + a12 = 8; + a0 = 1; + a6 = 1; + return -1; + } else if((((!(a5==1)&&(!(a4==1)&&(((a6==1)&&(!(a27==1)&&(((a0==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==4)))&&(a20==1))))&&(a3==4))))&&(a12==12))&&(a15==1))){ + a15 = 0; + a3 = 8; + a22 = 1; + a18 = 1; + return 26; + } else if((((a15==1)&&((!(a4==1)&&(((a0==1)&&((a3==8)&&((a18==1)&&((((a22==1)&&(input==1))&&!(a27==1))&&(a20==1)))))&&(a12==12)))&&!(a6==1)))&&!(a5==1))){ + a3 = 4; + a22 = 0; + a12 = 10; + a5 = 1; + a4 = 1; + a18 = 0; + a27 = 1; + return 21; + } else if(((((((((a4==1)&&(((a27==1)&&((a20==1)&&(!(a22==1)&&(input==2))))&&!(a0==1)))&&(a15==1))&&(a18==1))&&(a6==1))&&(a12==9))&&(a3==8))&&(a5==1))){ + a0 = 1; + a4 = 0; + a3 = 5; + a6 = 0; + return 21; + } else if(((a5==1)&&((a0==1)&&((((((a12==9)&&((((((a22==1)&&!(a18==1))&&(a3==8))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8))))&&(input==4))&&!(a15==1)))&&(a20==1))&&!(a27==1))&&!(a4==1))&&(a6==1))))){ + a27 = 1; + a12 = 8; + a4 = 1; + a15 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if((((a5==1)&&(!(a4==1)&&((a3==4)&&(((a22==1)&&((a27==1)&&((a15==1)&&((a20==1)&&((a18==1)&&((input==1)&&(a12==12)))))))&&(a0==1)))))&&(a6==1))){ + a3 = 8; + a12 = 10; + return -1; + } else if((((a6==1)&&((a22==1)&&((a27==1)&&(((((((((a18==1)||!(a18==1))&&(input==4))&&!(a15==1))&&(a3==6))&&!(a0==1))&&(a5==1))&&(a4==1))&&(a20==1)))))&&(a12==11))){ + a0 = 1; + a18 = 1; + a12 = 8; + a15 = 1; + a3 = 4; + return -1; + } else if((!(a5==1)&&(!(a15==1)&&(((a20==1)&&(!(a27==1)&&(!(a6==1)&&(!(a0==1)&&((a12==9)&&((input==5)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6)))))))))&&!(a4==1))))){ + a22 = 1; + a27 = 1; + a15 = 1; + a12 = 11; + a3 = 8; + a18 = 0; + a4 = 1; + return -1; + } else if(((((a20==1)&&(((a22==1)&&(!(a15==1)&&(!(a5==1)&&((!(a6==1)&&((a0==1)&&((input==2)&&((a18==1)||!(a18==1)))))&&(a12==9)))))&&(a3==8)))&&(a4==1))&&!(a27==1))){ + a3 = 6; + a18 = 0; + a5 = 1; + a12 = 11; + a4 = 0; + a6 = 1; + a22 = 0; + a27 = 1; + return 26; + } else if(((!(a15==1)&&(((a27==1)&&(((!(a5==1)&&((a20==1)&&(((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6)))||((!(a18==1)&&(a22==1))&&(a3==6)))&&(input==3))))&&(a4==1))&&(a0==1)))&&(a6==1)))&&(a12==8))){ + if((a4==1)){ + a12 = 12; + a27 = 0; + a15 = 1; + a3 = 6; + a22 = 1; + a4 = 0; + a18 = 1; + }else{ + a22 = 1; + a18 = 0; + a6 = 0; + a12 = 11; + a5 = 1; + a3 = 4; + a0 = 0; + } + return 26; + } else if(((!(a0==1)&&((a20==1)&&(((!(a4==1)&&(((a5==1)&&(((((a18==1)||!(a18==1))&&(input==6))&&(a6==1))&&(a22==1)))&&!(a27==1)))&&!(a15==1))&&(a3==4))))&&(a12==10))){ + a6 = 0; + a3 = 7; + a12 = 9; + a27 = 1; + a15 = 1; + a4 = 1; + a18 = 0; + return -1; + } else if(((a6==1)&&(((((a15==1)&&(((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&!(a27==1))&&(a20==1))&&!(a5==1))&&!(a0==1)))&&(a12==11))&&(a3==5))&&(a4==1)))){ + if((a22==1)){ + a22 = 0; + a0 = 1; + a4 = 0; + a12 = 8; + a3 = 7; + a5 = 1; + a27 = 1; + a18 = 0; + }else{ + a22 = 0; + a18 = 0; + a3 = 8; + a6 = 0; + } + return 21; + } else if((((a20==1)&&((a15==1)&&(((((!(a6==1)&&((input==2)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))))&&(a27==1))&&(a5==1))&&(a12==12))&&!(a0==1))))&&(a4==1))){ + a22 = 0; + a27 = 0; + a18 = 1; + a12 = 9; + a0 = 1; + a3 = 7; + a5 = 0; + a15 = 0; + return -1; + } else if(((!(a6==1)&&((!(a27==1)&&((a15==1)&&((a5==1)&&((a20==1)&&(((!(a22==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a4==1))&&(a12==11))))))&&(a3==6)))&&(a0==1))){ + a22 = 1; + a27 = 1; + a18 = 0; + a12 = 10; + a5 = 0; + a3 = 7; + return 21; + } else if((((a3==7)&&((a20==1)&&(((a27==1)&&((a0==1)&&((a12==11)&&(!(a4==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5))&&!(a6==1))))))&&!(a5==1))))&&!(a15==1))){ + a22 = 0; + a27 = 0; + a18 = 0; + a3 = 8; + a6 = 1; + return 21; + } else if(((a0==1)&&(((a20==1)&&(((a5==1)&&(((a6==1)&&(((a12==12)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==5)))&&(a4==1)))&&(a27==1)))&&(a15==1)))&&(a3==4)))){ + a22 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if((((((((!(a27==1)&&((((((a22==1)&&!(a18==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5))))&&(input==5))&&(a12==12)))&&(a5==1))&&(a0==1))&&!(a15==1))&&(a4==1))&&(a20==1))&&!(a6==1))){ + a3 = 7; + a4 = 0; + a5 = 0; + a18 = 0; + a27 = 1; + a0 = 0; + a22 = 1; + a15 = 1; + a12 = 11; + return 21; + } else if((((a12==12)&&(!(a6==1)&&(!(a15==1)&&((a0==1)&&((a3==8)&&((a22==1)&&(((a5==1)&&((a20==1)&&((input==6)&&((a18==1)||!(a18==1)))))&&!(a27==1))))))))&&!(a4==1))){ + a15 = 1; + a18 = 1; + a27 = 1; + a4 = 1; + a6 = 1; + return 21; + } else if((((((a15==1)&&((a18==1)&&((a3==7)&&((!(a27==1)&&((((a20==1)&&(input==2))&&(a12==9))&&!(a0==1)))&&(a5==1)))))&&!(a22==1))&&!(a6==1))&&!(a4==1))){ + a12 = 11; + a0 = 1; + a6 = 1; + a3 = 6; + a18 = 0; + a4 = 1; + a5 = 0; + a15 = 0; + return -1; + } else if((!(a15==1)&&(((((!(a18==1)&&(!(a4==1)&&(((a3==4)&&(((a0==1)&&(input==1))&&(a27==1)))&&!(a22==1))))&&(a6==1))&&(a20==1))&&!(a5==1))&&(a12==11)))){ + a22 = 1; + a6 = 0; + a5 = 1; + a3 = 8; + return 21; + } else if(((a15==1)&&((a12==11)&&((a20==1)&&((((!(a0==1)&&(!(a6==1)&&(((input==3)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a27==1))))&&!(a5==1))&&(a3==5))&&!(a4==1)))))){ + a0 = 1; + a5 = 1; + a18 = 1; + a15 = 0; + a22 = 0; + a27 = 0; + a3 = 7; + return 21; + } else if(((a4==1)&&((!(a0==1)&&(((a27==1)&&((a20==1)&&((a15==1)&&((a12==11)&&((input==3)&&(((a3==6)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1))))))))))&&!(a5==1)))&&!(a6==1)))){ + a27 = 0; + a22 = 1; + a0 = 1; + a6 = 1; + a12 = 10; + a3 = 8; + a18 = 0; + return 26; + } else if((((a20==1)&&((!(a15==1)&&((a22==1)&&((a5==1)&&(((!(a0==1)&&((a12==11)&&((input==3)&&((a18==1)||!(a18==1)))))&&(a6==1))&&!(a4==1)))))&&(a3==6)))&&(a27==1))){ + a18 = 0; + a12 = 12; + a15 = 1; + a4 = 1; + a0 = 1; + a3 = 7; + a5 = 0; + return -1; + } else if((((a27==1)&&((a22==1)&&(!(a15==1)&&((a0==1)&&(((a20==1)&&(!(a5==1)&&((a3==8)&&((a12==8)&&(((a18==1)||!(a18==1))&&(input==5))))))&&(a6==1))))))&&!(a4==1))){ + a3 = 4; + a5 = 1; + a6 = 0; + a12 = 11; + a22 = 0; + a18 = 1; + return 24; + } else if((((!(a4==1)&&((a20==1)&&((a12==12)&&(!(a5==1)&&(!(a27==1)&&((input==1)&&(((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1)))))))))&&!(a15==1))&&(a0==1))){ + a6 = 1; + a5 = 1; + a15 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + a27 = 1; + a4 = 1; + a22 = 1; + return -1; + } else if(((!(a5==1)&&((a3==8)&&(((a15==1)&&((a6==1)&&((a18==1)&&((a20==1)&&(!(a22==1)&&(((input==5)&&(a27==1))&&!(a4==1)))))))&&!(a0==1))))&&(a12==11))){ + a0 = 1; + a4 = 1; + a12 = 12; + a22 = 1; + a3 = 6; + a18 = 0; + return 26; + } else if((((((a20==1)&&((!(a4==1)&&(!(a0==1)&&((input==3)&&((((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4)))))))&&(a5==1)))&&(a12==10))&&!(a15==1))&&!(a27==1))){ + a6 = 1; + a12 = 8; + a22 = 0; + a15 = 1; + a18 = 1; + a3 = 5; + a0 = 1; + a27 = 1; + return 26; + } else if(((a0==1)&&((((a12==8)&&((a4==1)&&(!(a15==1)&&(((input==1)&&((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||(!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1))))))&&!(a27==1)))))&&(a20==1))&&(a5==1)))){ + if((a3==6)){ + a27 = 1; + a3 = 8; + a22 = 1; + a18 = 1; + a6 = 1; + a4 = 0; + a12 = 10; + a0 = 0; + }else{ + a6 = 1; + a18 = 1; + a22 = 1; + a4 = 0; + a3 = 5; + a15 = 1; + a27 = 1; + a12 = 10; + } + return -1; + } else if(((a12==8)&&((a15==1)&&((((((a3==8)&&((((input==3)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&(a0==1))&&!(a27==1)))&&!(a6==1))&&(a20==1))&&(a4==1))&&!(a5==1))))){ + a18 = 1; + a27 = 1; + a3 = 4; + a6 = 1; + a22 = 1; + a5 = 1; + return -1; + } else if(((a20==1)&&((a12==9)&&(!(a22==1)&&((!(a5==1)&&(((a6==1)&&((((a3==7)&&(!(a4==1)&&(input==6)))&&!(a15==1))&&!(a18==1)))&&!(a27==1)))&&!(a0==1)))))){ + if((a12==8)){ + a27 = 1; + a3 = 4; + a4 = 1; + a0 = 1; + a5 = 1; + a15 = 1; + a18 = 1; + a12 = 8; + a6 = 0; + }else{ + a0 = 1; + a15 = 1; + a12 = 8; + a3 = 5; + a6 = 0; + a4 = 1; + a5 = 1; + a27 = 1; + } + return 26; + } else if((((a4==1)&&((!(a18==1)&&((a12==9)&&(((a20==1)&&((a22==1)&&((!(a5==1)&&((input==3)&&!(a0==1)))&&!(a27==1))))&&(a15==1))))&&(a3==7)))&&!(a6==1))){ + if((a5==1)){ + a6 = 1; + a22 = 0; + a27 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + a4 = 0; + }else{ + a27 = 1; + a6 = 1; + a22 = 0; + a12 = 8; + a3 = 6; + a0 = 1; + a18 = 1; + a5 = 1; + } + return -1; + } else if(((a20==1)&&(((!(a6==1)&&((a12==10)&&((a4==1)&&((a15==1)&&((a27==1)&&((a0==1)&&((input==6)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))))))))&&(a3==5))&&(a5==1)))){ + a22 = 0; + a18 = 0; + return 26; + } else if(((a0==1)&&((a15==1)&&((((((input==4)&&(((!(a6==1)&&(((!(a22==1)&&!(a18==1))&&(a4==1))&&(a3==8)))||(((!(a4==1)&&((a22==1)&&(a18==1)))&&(a3==4))&&(a6==1)))||(((!(a4==1)&&(!(a18==1)&&(a22==1)))&&(a3==4))&&(a6==1))))&&(a5==1))&&(a12==12))&&!(a27==1))&&(a20==1))))){ + a18 = 1; + a4 = 1; + a6 = 1; + a3 = 4; + a12 = 8; + a27 = 1; + a22 = 1; + return -1; + } else if((!(a15==1)&&((a20==1)&&((!(a5==1)&&((a3==6)&&(((a18==1)&&(((((input==6)&&(a12==8))&&(a6==1))&&!(a4==1))&&(a22==1)))&&!(a0==1))))&&!(a27==1))))){ + a5 = 1; + a27 = 1; + a15 = 1; + a0 = 1; + a22 = 0; + a3 = 4; + return -1; + } else if((((((((a4==1)&&((a20==1)&&(!(a5==1)&&((input==5)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))))))&&(a12==10))&&(a0==1))&&!(a15==1))&&!(a27==1))&&(a6==1))){ + a3 = 4; + a18 = 0; + a5 = 1; + a22 = 0; + a12 = 8; + return 26; + } else if(((((((!(a0==1)&&((a18==1)&&(((a20==1)&&((a22==1)&&(!(a6==1)&&(input==4))))&&(a12==11))))&&(a3==4))&&(a5==1))&&!(a27==1))&&!(a4==1))&&(a15==1))){ + if((a4==1)){ + a15 = 0; + a5 = 0; + a0 = 1; + a22 = 0; + a12 = 9; + }else{ + a0 = 1; + a3 = 5; + a12 = 8; + a22 = 0; + a6 = 1; + a27 = 1; + } + return 21; + } else if(((((((((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2))&&!(a0==1))&&(a12==12))&&(a3==5))&&(a4==1))&&(a27==1))&&!(a15==1))&&(a20==1))&&!(a6==1))&&(a5==1))){ + a12 = 10; + a22 = 0; + a18 = 0; + a3 = 7; + return 26; + } else if((!(a4==1)&&(((((a3==4)&&((!(a6==1)&&((((a12==9)&&((input==1)&&!(a5==1)))&&(a20==1))&&(a15==1)))&&(a27==1)))&&!(a22==1))&&!(a18==1))&&(a0==1)))){ + a5 = 1; + a22 = 1; + a18 = 1; + a4 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if(((((a5==1)&&((a12==12)&&(!(a27==1)&&((a3==5)&&((a0==1)&&((a20==1)&&((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==4))&&(a4==1))))))))&&(a15==1))&&!(a6==1))){ + a12 = 8; + a27 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + a6 = 1; + return -1; + } else if(((!(a27==1)&&(((((((a3==8)&&(((!(a15==1)&&((!(a22==1)&&!(a18==1))&&!(a5==1)))&&(a12==8))&&!(a4==1)))&&!(a6==1))||((a6==1)&&((a3==4)&&(((a12==9)&&((a15==1)&&(((a18==1)&&(a22==1))&&(a5==1))))&&(a4==1)))))||((((a4==1)&&(((a15==1)&&((!(a18==1)&&(a22==1))&&(a5==1)))&&(a12==9)))&&(a3==4))&&(a6==1)))&&(input==6))&&(a20==1)))&&!(a0==1))){ + if((a27==1)){ + a0 = 1; + a22 = 0; + a6 = 1; + a15 = 1; + a3 = 8; + a12 = 8; + a18 = 0; + a5 = 1; + a4 = 1; + a27 = 1; + }else{ + a0 = 1; + a12 = 8; + a22 = 1; + a4 = 0; + a18 = 0; + a3 = 7; + a15 = 1; + a5 = 1; + a6 = 1; + a27 = 1; + } + return -1; + } else if(((((a12==8)&&(!(a6==1)&&((((a22==1)&&(((((input==6)&&((a18==1)||!(a18==1)))&&!(a27==1))&&!(a15==1))&&(a3==8)))&&!(a4==1))&&!(a0==1))))&&(a20==1))&&(a5==1))){ + a18 = 0; + a0 = 1; + a15 = 1; + a27 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if((((((a12==12)&&((a15==1)&&((!(a4==1)&&((a0==1)&&(((a20==1)&&((input==2)&&((a18==1)||!(a18==1))))&&(a6==1))))&&!(a22==1))))&&(a27==1))&&(a3==7))&&!(a5==1))){ + a4 = 1; + a12 = 8; + a5 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + return -1; + } else if((!(a27==1)&&((a6==1)&&((!(a0==1)&&((a3==7)&&((a15==1)&&((((((a5==1)&&(input==5))&&!(a18==1))&&!(a22==1))&&!(a4==1))&&(a20==1)))))&&(a12==11))))){ + a15 = 0; + a22 = 1; + a3 = 4; + a12 = 8; + a27 = 1; + return -1; + } else if(((!(a5==1)&&(((((input==2)&&((((a3==8)&&(((!(a22==1)&&!(a18==1))&&(a15==1))&&!(a4==1)))&&!(a6==1))||((((a4==1)&&(!(a15==1)&&((a18==1)&&(a22==1))))&&(a3==4))&&(a6==1))))&&!(a0==1))&&(a20==1))&&(a27==1)))&&(a12==8))){ + a5 = 1; + a3 = 6; + a22 = 0; + a0 = 1; + a27 = 0; + a15 = 1; + a4 = 0; + a18 = 1; + a6 = 0; + a12 = 12; + return 21; + } else if(((a12==8)&&((a15==1)&&(!(a27==1)&&(((a4==1)&&(((a0==1)&&((a3==6)&&((((a20==1)&&(input==1))&&!(a18==1))&&!(a5==1))))&&(a22==1)))&&(a6==1)))))){ + a3 = 5; + a15 = 0; + a12 = 12; + a27 = 1; + a5 = 1; + a6 = 0; + return -1; + } else if((!(a27==1)&&(((((a20==1)&&(((!(a5==1)&&((input==4)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))))&&!(a15==1))&&!(a4==1)))&&!(a6==1))&&(a12==11))&&(a0==1)))){ + if((a5==1)){ + a18 = 0; + a22 = 0; + a15 = 1; + a5 = 1; + a27 = 1; + a12 = 12; + a3 = 7; + a0 = 0; + }else{ + a3 = 8; + a5 = 1; + a22 = 1; + a18 = 1; + a12 = 10; + } + return -1; + } else if((!(a5==1)&&((a27==1)&&((!(a0==1)&&((((((a20==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==1)))&&(a12==12))&&(a15==1))&&!(a6==1))&&!(a4==1)))&&(a3==7))))){ + a12 = 8; + a4 = 1; + a5 = 1; + a18 = 0; + a22 = 1; + a3 = 4; + a0 = 1; + return 21; + } else if(((((a0==1)&&((a4==1)&&(!(a15==1)&&(!(a5==1)&&((a20==1)&&(!(a27==1)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==5))))))))&&(a12==10))&&!(a6==1))){ + a4 = 0; + a3 = 6; + a22 = 0; + a12 = 11; + a18 = 0; + a27 = 1; + return -1; + } else if((((((a15==1)&&(!(a5==1)&&((a20==1)&&((a3==4)&&(!(a27==1)&&((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==6))&&!(a4==1)))))))&&!(a6==1))&&(a0==1))&&(a12==11))){ + if((a15==1)){ + a18 = 1; + a6 = 1; + a0 = 0; + a22 = 1; + a27 = 1; + a3 = 5; + }else{ + a15 = 0; + a6 = 1; + a22 = 0; + a18 = 0; + a3 = 7; + a27 = 1; + } + return -1; + } else if(((((a0==1)&&(((a4==1)&&(((!(a27==1)&&(((input==2)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a3==5)))&&!(a15==1))&&(a12==8)))&&(a5==1)))&&(a20==1))&&(a6==1))){ + a18 = 1; + a15 = 1; + a12 = 9; + a22 = 1; + return 21; + } else if((((((!(a6==1)&&(!(a0==1)&&((((a4==1)&&(((a3==4)&&(input==2))&&(a18==1)))&&(a12==10))&&(a5==1))))&&(a20==1))&&!(a15==1))&&(a22==1))&&(a27==1))){ + a5 = 0; + a15 = 1; + a3 = 7; + a12 = 12; + a22 = 0; + a0 = 1; + return -1; + } return calculate_output21(input); + } + + int calculate_output21(int input) { + if(((!(a6==1)&&(((a22==1)&&((a12==12)&&((((!(a5==1)&&(((input==1)&&!(a4==1))&&!(a18==1)))&&(a0==1))&&!(a27==1))&&(a20==1))))&&!(a15==1)))&&(a3==5))){ + if((a18==1)){ + a12 = 9; + a27 = 1; + a0 = 0; + a6 = 1; + a18 = 1; + a3 = 8; + a22 = 0; + a5 = 1; + }else{ + a27 = 1; + a5 = 1; + a12 = 9; + a0 = 0; + a3 = 6; + a18 = 1; + } + return -1; + } else if(((a3==7)&&((a20==1)&&(!(a5==1)&&(((a27==1)&&(((a4==1)&&(!(a6==1)&&(((((a18==1)||!(a18==1))&&(input==6))&&!(a0==1))&&(a22==1))))&&(a15==1)))&&(a12==11)))))){ + a18 = 1; + a5 = 1; + a27 = 0; + a0 = 1; + return 21; + } else if((!(a27==1)&&((a20==1)&&(!(a4==1)&&((!(a0==1)&&(!(a5==1)&&(((((input==2)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a15==1))&&!(a6==1))&&(a12==9))))&&(a3==8)))))){ + a5 = 1; + a18 = 0; + a3 = 7; + a12 = 8; + a22 = 1; + a6 = 1; + a27 = 1; + a4 = 1; + a0 = 1; + return 26; + } else if((((((((a4==1)&&(!(a6==1)&&(((((input==2)&&(a20==1))&&(a12==8))&&(a18==1))&&(a3==5))))&&!(a5==1))&&(a22==1))&&!(a0==1))&&!(a27==1))&&(a15==1))){ + if((a27==1)){ + a27 = 1; + a4 = 0; + a0 = 1; + a12 = 11; + a18 = 0; + a6 = 1; + a3 = 7; + }else{ + a0 = 1; + a27 = 1; + a5 = 1; + a3 = 6; + a18 = 0; + a6 = 1; + } + return 21; + } else if(((a6==1)&&(((((!(a15==1)&&((a0==1)&&(((((a12==12)&&(input==6))&&(a5==1))&&!(a22==1))&&(a20==1))))&&(a4==1))&&(a3==6))&&!(a27==1))&&!(a18==1)))){ + a5 = 0; + a3 = 8; + a15 = 1; + a12 = 10; + return -1; + } else if((((a20==1)&&((a4==1)&&(!(a6==1)&&((((a3==6)&&((!(a5==1)&&((input==5)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))))&&!(a0==1)))&&(a27==1))&&(a15==1)))))&&(a12==11))){ + a0 = 1; + a22 = 1; + a18 = 1; + a12 = 10; + a4 = 0; + a27 = 0; + return 21; + } else if((((a22==1)&&((a27==1)&&(!(a15==1)&&((a3==5)&&((!(a6==1)&&((a0==1)&&((a20==1)&&(!(a5==1)&&(((a18==1)||!(a18==1))&&(input==6))))))&&(a4==1))))))&&(a12==11))){ + if((a18==1)){ + a3 = 4; + a4 = 0; + a15 = 1; + a5 = 1; + a0 = 0; + a18 = 0; + a12 = 12; + }else{ + a18 = 1; + a6 = 1; + a27 = 0; + a3 = 6; + } + return 24; + } else if(((a0==1)&&(!(a6==1)&&(!(a27==1)&&(((a15==1)&&(((a4==1)&&(!(a18==1)&&((a3==6)&&((a5==1)&&((input==6)&&!(a22==1))))))&&(a12==8)))&&(a20==1)))))){ + a22 = 1; + a15 = 0; + a12 = 11; + a3 = 8; + a27 = 1; + return 21; + } else if(((a0==1)&&((!(a15==1)&&(!(a27==1)&&((a3==6)&&(((((a22==1)&&((a20==1)&&((a12==8)&&(input==3))))&&!(a18==1))&&(a4==1))&&(a5==1)))))&&(a6==1)))){ + a12 = 12; + a3 = 4; + a27 = 1; + a18 = 1; + a22 = 0; + a15 = 1; + a6 = 0; + return 26; + } else if(((a6==1)&&(((a3==4)&&((a12==8)&&(((a5==1)&&((!(a15==1)&&((((input==3)&&((a18==1)||!(a18==1)))&&(a22==1))&&(a4==1)))&&(a20==1)))&&!(a0==1))))&&(a27==1)))){ + a12 = 11; + a5 = 0; + a18 = 1; + a0 = 1; + a3 = 6; + return 26; + } else if(((!(a15==1)&&((a27==1)&&(((a6==1)&&((a20==1)&&((((input==1)&&((((a22==1)&&(a18==1))&&(a3==5))||((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1))))))&&(a4==1))&&!(a0==1))))&&(a12==9))))&&!(a5==1))){ + a6 = 0; + a3 = 7; + a22 = 1; + a5 = 1; + a15 = 1; + a0 = 1; + a4 = 0; + a18 = 0; + return 26; + } else if(((a3==4)&&((((a15==1)&&((a22==1)&&(((((!(a27==1)&&((input==6)&&(a20==1)))&&(a6==1))&&!(a5==1))&&(a0==1))&&(a18==1))))&&(a12==11))&&(a4==1)))){ + if((a5==1)){ + a27 = 1; + a18 = 0; + a3 = 7; + a0 = 0; + a12 = 8; + }else{ + a6 = 0; + a12 = 9; + a4 = 0; + } + return -1; + } else if(((a5==1)&&(((a20==1)&&(!(a27==1)&&((((a12==10)&&(((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||(!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1)))))&&(input==5)))&&!(a0==1))&&!(a15==1))))&&!(a4==1)))){ + if((a6==1)){ + a3 = 8; + a27 = 1; + a18 = 1; + a0 = 1; + a12 = 8; + a6 = 0; + a4 = 1; + a22 = 1; + a15 = 1; + }else{ + a0 = 1; + a15 = 1; + a3 = 8; + a27 = 1; + a22 = 1; + a6 = 1; + a18 = 1; + a12 = 9; + } + return 21; + } else if(((((!(a4==1)&&(((a20==1)&&(((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==3))&&(a3==7))&&!(a15==1))&&!(a6==1)))&&!(a5==1)))&&!(a0==1))&&(a12==9))&&(a27==1))){ + if((a20==1)){ + a12 = 10; + a22 = 0; + a3 = 6; + a18 = 1; + a4 = 1; + }else{ + a15 = 1; + a5 = 1; + a22 = 0; + a27 = 0; + a6 = 1; + a4 = 1; + a3 = 6; + a18 = 0; + a0 = 1; + } + return 21; + } else if((!(a0==1)&&(((a6==1)&&((((!(a5==1)&&(((a27==1)&&((input==6)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))))&&(a12==9)))&&(a3==5))&&!(a15==1))&&(a20==1)))&&(a4==1)))){ + a22 = 0; + a6 = 0; + a0 = 1; + a3 = 7; + a15 = 1; + a18 = 1; + a4 = 0; + a12 = 8; + return 26; + } else if(((a20==1)&&((!(a5==1)&&((((a0==1)&&(((((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))||(((a6==1)&&(((a18==1)&&!(a22==1))&&(a3==8)))||((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))))&&(input==6))&&!(a27==1)))&&(a12==12))&&(a4==1)))&&!(a15==1)))){ + a3 = 4; + a6 = 1; + a22 = 1; + a27 = 1; + a15 = 1; + a18 = 1; + a5 = 1; + a12 = 8; + return -1; + } else if(((!(a6==1)&&(((a0==1)&&((((((input==6)&&((((a18==1)&&(a22==1))&&(a3==7))||((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1))))))&&(a15==1))&&!(a5==1))&&(a27==1))&&(a12==8)))&&(a4==1)))&&(a20==1))){ + a12 = 10; + a3 = 8; + a5 = 1; + a22 = 1; + a6 = 1; + a18 = 1; + return 21; + } else if((((a20==1)&&(!(a15==1)&&(!(a6==1)&&((a3==6)&&(((((a12==10)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a22==1)))&&(a27==1))&&(a0==1))&&!(a4==1))))))&&!(a5==1))){ + a18 = 1; + a5 = 1; + a4 = 1; + a3 = 4; + a6 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if(((!(a0==1)&&(((((a27==1)&&(((a4==1)&&((input==3)&&((((!(a22==1)&&(a18==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))||((a3==5)&&((a22==1)&&(a18==1))))))&&(a5==1)))&&(a12==10))&&!(a15==1))&&(a20==1)))&&!(a6==1))){ + a0 = 1; + a6 = 1; + a15 = 1; + a18 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + return -1; + } else if((((a5==1)&&((((a12==9)&&((a15==1)&&((a0==1)&&((((((a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==4))))&&(input==2))&&!(a27==1)))))&&!(a4==1))&&(a6==1)))&&(a20==1))){ + a3 = 8; + a22 = 0; + a12 = 11; + a5 = 0; + a18 = 1; + a15 = 0; + a27 = 1; + return -1; + } else if((((a18==1)&&((a12==12)&&((a0==1)&&((!(a27==1)&&((((((a20==1)&&(input==4))&&!(a5==1))&&!(a22==1))&&(a3==8))&&!(a6==1)))&&(a4==1)))))&&!(a15==1))){ + a3 = 4; + a12 = 8; + a27 = 1; + a22 = 1; + a6 = 1; + a15 = 1; + a5 = 1; + return -1; + } else if(((!(a15==1)&&(((a0==1)&&((((((a12==12)&&((a22==1)&&((input==2)&&(a6==1))))&&!(a27==1))&&(a3==6))&&(a20==1))&&!(a18==1)))&&(a4==1)))&&(a5==1))){ + a15 = 1; + a12 = 9; + a4 = 0; + return -1; + } else if(((((a27==1)&&((((!(a22==1)&&(((!(a15==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a6==1))&&(a3==8)))&&(a12==10))&&(a5==1))&&(a0==1)))&&!(a4==1))&&(a20==1))){ + a3 = 4; + a22 = 1; + a12 = 8; + a4 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if((((a4==1)&&(!(a5==1)&&(!(a15==1)&&((a0==1)&&((a27==1)&&((((((((a18==1)&&!(a22==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==4))&&(a12==12))&&(a6==1)))))))&&(a20==1))){ + a22 = 0; + a12 = 11; + a18 = 0; + a15 = 1; + a3 = 8; + return 24; + } else if((((!(a27==1)&&((a20==1)&&((a4==1)&&(!(a5==1)&&((((input==3)&&(((a3==8)&&((a22==1)&&(a18==1)))||(((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==7)))))&&!(a6==1))&&!(a15==1))))))&&!(a0==1))&&(a12==8))){ + if((a22==1)){ + a3 = 8; + a18 = 1; + a22 = 1; + a27 = 1; + a0 = 1; + a5 = 1; + a15 = 1; + }else{ + a27 = 1; + a22 = 0; + a6 = 1; + a5 = 1; + a4 = 0; + a15 = 1; + a0 = 1; + a3 = 6; + a18 = 0; + } + return -1; + } else if((!(a15==1)&&(((a22==1)&&(((((!(a0==1)&&((a3==4)&&(!(a6==1)&&((input==5)&&(a5==1)))))&&(a12==8))&&!(a4==1))&&!(a18==1))&&(a20==1)))&&(a27==1)))){ + a5 = 0; + a12 = 10; + a0 = 1; + a15 = 1; + a4 = 1; + return 26; + } else if((!(a5==1)&&(((!(a0==1)&&((!(a27==1)&&((((input==4)&&((((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a22==1)&&(a18==1))))||((a3==7)&&((a22==1)&&!(a18==1)))))&&(a4==1))&&(a20==1)))&&(a12==10)))&&!(a15==1))&&!(a6==1)))){ + a22 = 0; + a5 = 1; + a0 = 1; + a3 = 6; + a18 = 1; + return 21; + } else if(((a0==1)&&((!(a4==1)&&(((!(a5==1)&&((!(a15==1)&&((input==4)&&(((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))))&&!(a6==1)))&&!(a27==1))&&(a12==8)))&&(a20==1)))){ + a4 = 1; + a5 = 1; + a27 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a15 = 1; + a6 = 1; + return -1; + } else if((((a20==1)&&((!(a5==1)&&((!(a4==1)&&((a6==1)&&((!(a27==1)&&((input==5)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&(a15==1))))&&(a12==11)))&&!(a0==1)))&&(a3==4))){ + if((a5==1)){ + a12 = 8; + a22 = 1; + a5 = 1; + a18 = 0; + a0 = 1; + a27 = 1; + }else{ + a5 = 1; + a6 = 0; + a12 = 8; + a0 = 1; + a4 = 1; + a27 = 1; + a22 = 0; + a3 = 8; + a18 = 0; + } + return -1; + } else if(((a27==1)&&(!(a6==1)&&(!(a15==1)&&(!(a22==1)&&((a12==8)&&((a3==5)&&((!(a0==1)&&((a20==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a4==1))))&&!(a5==1))))))))){ + a22 = 1; + a3 = 4; + a6 = 1; + a0 = 1; + a18 = 1; + a5 = 1; + a15 = 1; + return -1; + } else if(((a15==1)&&((!(a4==1)&&((((a6==1)&&((a5==1)&&(((a12==9)&&((a18==1)&&(!(a0==1)&&(input==6))))&&(a20==1))))&&(a22==1))&&(a27==1)))&&(a3==7)))){ + a6 = 0; + a12 = 8; + a0 = 1; + a5 = 0; + a22 = 0; + return 26; + } else if((((((!(a0==1)&&((input==1)&&((((((((a18==1)&&!(a22==1))&&(a15==1))&&!(a4==1))&&(a3==8))&&!(a6==1))||(((a3==8)&&(!(a4==1)&&((!(a22==1)&&!(a18==1))&&(a15==1))))&&!(a6==1)))||((((a4==1)&&(!(a15==1)&&((a22==1)&&(a18==1))))&&(a3==4))&&(a6==1)))))&&(a12==9))&&(a20==1))&&(a5==1))&&!(a27==1))){ + a3 = 6; + a6 = 0; + a27 = 1; + a22 = 0; + a18 = 1; + a0 = 1; + a4 = 0; + a15 = 0; + return -1; + } else if(((((((((!(a15==1)&&((a27==1)&&((input==4)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))))&&(a3==7))&&(a4==1))&&(a12==11))&&!(a6==1))&&!(a0==1))&&(a20==1))&&!(a5==1))){ + a0 = 1; + a3 = 6; + a18 = 0; + a22 = 0; + a12 = 12; + a5 = 1; + return 26; + } else if((((a20==1)&&(!(a5==1)&&((((((((input==3)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&(a12==8))&&!(a15==1))&&(a27==1))&&(a3==5))&&!(a6==1))&&!(a4==1))))&&!(a0==1))){ + a12 = 12; + a15 = 1; + a18 = 0; + a0 = 1; + a6 = 1; + a5 = 1; + a3 = 8; + a22 = 0; + a4 = 1; + return -1; + } else if(((!(a4==1)&&((a20==1)&&(((a27==1)&&(((a0==1)&&((((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1)))&&(input==1)))&&(a5==1)))&&(a12==11))))&&!(a15==1))){ + if((a3==7)){ + a6 = 0; + a4 = 1; + a15 = 1; + a12 = 12; + a18 = 1; + a0 = 0; + a22 = 0; + a3 = 6; + }else{ + a18 = 1; + a22 = 0; + a6 = 1; + a27 = 0; + a3 = 8; + a15 = 1; + } + return 24; + } else if(((a18==1)&&((((a3==8)&&((a12==11)&&((a27==1)&&(((((a4==1)&&(!(a0==1)&&(input==1)))&&(a20==1))&&(a15==1))&&!(a6==1)))))&&(a5==1))&&!(a22==1)))){ + a5 = 0; + a3 = 4; + a18 = 0; + a0 = 1; + a22 = 1; + a6 = 1; + return 26; + } else if(((a0==1)&&(((a5==1)&&(!(a22==1)&&((a3==7)&&(!(a15==1)&&(((a12==10)&&((((input==6)&&((a18==1)||!(a18==1)))&&(a27==1))&&(a20==1)))&&(a4==1))))))&&!(a6==1)))){ + if((a6==1)){ + a4 = 0; + a0 = 0; + a18 = 1; + a12 = 8; + a3 = 8; + a5 = 0; + }else{ + a18 = 1; + a6 = 1; + a3 = 6; + } + return -1; + } else if((!(a15==1)&&((!(a5==1)&&((a27==1)&&(!(a4==1)&&(((a20==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4))&&(a3==5))&&!(a6==1)))&&(a12==11)))))&&!(a0==1)))){ + a27 = 0; + a18 = 1; + a22 = 1; + a12 = 9; + a4 = 1; + a0 = 1; + return 26; + } else if((((a20==1)&&((((a0==1)&&((!(a15==1)&&((a4==1)&&((input==4)&&(((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==6))))))&&!(a27==1)))&&!(a6==1))&&(a12==11)))&&!(a5==1))){ + a12 = 8; + a15 = 1; + a27 = 1; + a3 = 4; + a5 = 1; + a18 = 1; + a22 = 1; + a6 = 1; + return -1; + } else if(((a12==9)&&(!(a6==1)&&(!(a4==1)&&(((a0==1)&&((a3==8)&&(((a15==1)&&((!(a27==1)&&((input==4)&&((a18==1)||!(a18==1))))&&(a5==1)))&&(a20==1))))&&!(a22==1)))))){ + a22 = 1; + a3 = 5; + a18 = 0; + return 21; + } else if((!(a4==1)&&((a20==1)&&(((a3==5)&&(((a6==1)&&((((a12==10)&&((input==5)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))&&!(a27==1))&&(a5==1)))&&(a15==1)))&&!(a0==1))))){ + a18 = 0; + a22 = 0; + a12 = 11; + a6 = 0; + a3 = 7; + return -1; + } else if(((!(a18==1)&&((((a27==1)&&(!(a6==1)&&((a3==5)&&((a20==1)&&((a22==1)&&(!(a5==1)&&(!(a15==1)&&(input==6))))))))&&!(a4==1))&&(a0==1)))&&(a12==9))){ + a5 = 1; + a27 = 0; + a4 = 1; + return 26; + } else if(((a12==8)&&(((((!(a27==1)&&(((a20==1)&&((input==4)&&(((a3==5)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4))))))&&!(a15==1)))&&!(a6==1))&&(a4==1))&&!(a0==1))&&!(a5==1)))){ + a22 = 0; + a0 = 1; + a15 = 1; + a18 = 1; + a3 = 4; + a5 = 1; + a6 = 1; + a27 = 1; + return -1; + } else if(((!(a0==1)&&((a20==1)&&((((((!(a6==1)&&((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a27==1))&&(a15==1))&&(a12==10))&&(a5==1))&&(a3==5))))&&!(a4==1))){ + a0 = 1; + a4 = 1; + a5 = 0; + a22 = 0; + a3 = 7; + a18 = 1; + a12 = 11; + return 26; + } else if((!(a15==1)&&(((a3==7)&&((a6==1)&&((((!(a27==1)&&(((input==3)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&(a0==1)))&&(a5==1))&&(a20==1))&&!(a4==1))))&&(a12==9)))){ + a3 = 5; + a4 = 1; + a18 = 1; + a6 = 0; + a5 = 0; + a12 = 11; + a15 = 1; + a27 = 1; + a22 = 1; + return 26; + } else if((((!(a15==1)&&((((a5==1)&&((a20==1)&&((((((a18==1)||!(a18==1))&&(input==2))&&!(a22==1))&&(a0==1))&&!(a4==1))))&&(a3==8))&&(a6==1)))&&(a12==9))&&!(a27==1))){ + a18 = 0; + a27 = 1; + a5 = 0; + a12 = 10; + a6 = 0; + a3 = 6; + return 26; + } else if(((a3==4)&&(((a5==1)&&((a4==1)&&(!(a15==1)&&(((a12==11)&&((a20==1)&&((a27==1)&&((input==1)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))))&&!(a6==1)))))&&!(a0==1)))){ + a0 = 1; + a22 = 1; + a15 = 1; + a5 = 0; + a12 = 10; + a18 = 0; + a3 = 7; + a6 = 1; + return -1; + } else if((((a18==1)&&((a12==10)&&((((a4==1)&&((((((input==2)&&!(a22==1))&&(a27==1))&&(a3==4))&&(a20==1))&&!(a5==1)))&&!(a15==1))&&!(a6==1))))&&!(a0==1))){ + a22 = 1; + a0 = 1; + a5 = 1; + a4 = 0; + a15 = 1; + a6 = 1; + a18 = 0; + return 21; + } else if(((a0==1)&&(((!(a15==1)&&((a20==1)&&((a12==8)&&((((input==5)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))||((a3==5)&&((a22==1)&&!(a18==1)))))&&(a5==1))&&!(a27==1)))))&&!(a6==1))&&!(a4==1)))){ + a18 = 1; + a3 = 8; + a22 = 0; + a12 = 11; + a27 = 1; + a5 = 0; + return -1; + } else if(((a15==1)&&(((a27==1)&&((a20==1)&&(!(a6==1)&&(((a3==8)&&(!(a4==1)&&(!(a0==1)&&(!(a5==1)&&((input==4)&&((a18==1)||!(a18==1)))))))&&!(a22==1)))))&&(a12==11)))){ + a18 = 1; + a6 = 1; + a3 = 4; + a15 = 0; + a5 = 1; + a12 = 10; + a0 = 1; + return -1; + } else if(((a6==1)&&(((a0==1)&&(((((((a20==1)&&((input==1)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a4==1))&&(a3==8))&&!(a15==1))&&(a12==8))&&!(a5==1)))&&!(a27==1)))){ + a3 = 4; + a18 = 0; + a22 = 1; + a12 = 11; + a5 = 1; + return 24; + } else if(((a0==1)&&(((!(a4==1)&&(((a27==1)&&((((!(a22==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&!(a6==1))&&(a5==1))&&(a20==1)))&&(a3==6)))&&!(a15==1))&&(a12==8)))){ + a3 = 8; + a12 = 9; + a18 = 1; + return 26; + } else if((!(a22==1)&&(!(a27==1)&&(((a12==8)&&((a0==1)&&(((a20==1)&&(!(a5==1)&&((((input==3)&&((a18==1)||!(a18==1)))&&(a3==5))&&!(a4==1))))&&(a6==1))))&&(a15==1))))){ + a6 = 0; + a5 = 1; + a18 = 0; + a27 = 1; + a3 = 4; + a15 = 0; + a4 = 1; + a12 = 11; + return -1; + } else if((((((a20==1)&&((a0==1)&&(((a27==1)&&((((a15==1)&&((input==3)&&(a12==9)))&&!(a18==1))&&!(a4==1)))&&(a3==6))))&&(a5==1))&&!(a6==1))&&(a22==1))){ + a18 = 1; + a4 = 1; + a22 = 0; + a6 = 1; + a12 = 10; + a3 = 8; + return 24; + } else if(((((a3==7)&&(((a0==1)&&(((!(a5==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5))&&(a6==1)))&&(a12==11))&&(a27==1)))&&(a20==1)))&&!(a4==1))&&!(a15==1))){ + a18 = 1; + a4 = 1; + a22 = 1; + a3 = 6; + return -1; + } else if((((a15==1)&&(!(a0==1)&&((a12==11)&&(!(a27==1)&&((!(a4==1)&&(((((a3==5)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4))))&&(input==2))&&!(a6==1)))&&(a20==1))))))&&!(a5==1))){ + a0 = 1; + a22 = 1; + a5 = 1; + a18 = 0; + a12 = 10; + a6 = 1; + a3 = 7; + return -1; + } else if((((a18==1)&&((a12==8)&&((a6==1)&&(((a5==1)&&((a0==1)&&((a22==1)&&((!(a4==1)&&((input==6)&&!(a27==1)))&&(a3==4)))))&&(a15==1)))))&&(a20==1))){ + a27 = 1; + a12 = 10; + a6 = 0; + a4 = 1; + a3 = 5; + a15 = 0; + return 24; + } else if((!(a5==1)&&((a15==1)&&((a6==1)&&(((((a12==9)&&(((!(a27==1)&&((input==2)&&((a18==1)||!(a18==1))))&&!(a0==1))&&(a4==1)))&&(a20==1))&&(a3==4))&&!(a22==1)))))){ + a4 = 0; + a27 = 1; + a22 = 1; + a5 = 1; + a12 = 8; + a18 = 0; + a0 = 1; + return -1; + } else if(((a27==1)&&(!(a6==1)&&((a12==12)&&((a20==1)&&(((!(a5==1)&&(!(a4==1)&&((((a3==8)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==7))||((a3==7)&&(!(a22==1)&&!(a18==1)))))&&(input==4))))&&!(a0==1))&&!(a15==1))))))){ + if((a4==1)){ + a3 = 6; + a0 = 1; + a15 = 1; + a18 = 1; + a4 = 1; + a22 = 1; + a5 = 1; + a12 = 8; + }else{ + a5 = 1; + a3 = 7; + a12 = 8; + a6 = 1; + a4 = 1; + a22 = 1; + a0 = 1; + a18 = 0; + a15 = 1; + } + return 21; + } else if(((((a4==1)&&((a20==1)&&((!(a6==1)&&((a27==1)&&((a0==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))||((a3==7)&&((a22==1)&&!(a18==1))))&&(input==3)))))&&(a12==9))))&&(a15==1))&&(a5==1))){ + a18 = 1; + a22 = 1; + a6 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((((a0==1)&&(((a3==5)&&((a20==1)&&(((a12==9)&&((a15==1)&&((a27==1)&&((input==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))))&&!(a4==1))))&&!(a6==1)))&&(a5==1))){ + a12 = 12; + a22 = 0; + a6 = 1; + a3 = 8; + a18 = 0; + a5 = 0; + return 21; + } else if(((((((((a27==1)&&((a12==12)&&(((a22==1)&&((input==5)&&(a5==1)))&&!(a4==1))))&&(a0==1))&&!(a18==1))&&(a20==1))&&!(a15==1))&&(a6==1))&&(a3==4))){ + a22 = 0; + a4 = 1; + a27 = 0; + a3 = 6; + return 26; + } else if(((a3==8)&&((!(a5==1)&&(((!(a15==1)&&(((((input==5)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&(a12==8))&&!(a6==1))&&!(a27==1)))&&(a0==1))&&(a20==1)))&&!(a4==1)))){ + a18 = 0; + a5 = 1; + a12 = 11; + a3 = 4; + a27 = 1; + a22 = 1; + return 21; + } else if(((a5==1)&&((a3==4)&&((a12==11)&&((a22==1)&&((a18==1)&&(((!(a0==1)&&(!(a6==1)&&(((a15==1)&&(input==2))&&(a20==1))))&&!(a4==1))&&!(a27==1)))))))){ + if((a5==1)){ + a18 = 0; + a4 = 1; + a27 = 1; + a5 = 0; + a6 = 1; + a3 = 7; + a12 = 10; + }else{ + a18 = 0; + a0 = 1; + a3 = 6; + a12 = 8; + a27 = 1; + a4 = 1; + } + return 26; + } else if(((!(a27==1)&&((a22==1)&&((((a0==1)&&((a6==1)&&(((a12==10)&&(((input==2)&&!(a4==1))&&!(a18==1)))&&!(a15==1))))&&(a3==4))&&(a5==1))))&&(a20==1))){ + a27 = 1; + a12 = 12; + a3 = 7; + a15 = 1; + a18 = 1; + return 21; + } else if(((a5==1)&&((a3==6)&&(!(a15==1)&&((a4==1)&&((((((a20==1)&&((input==6)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&!(a6==1))&&(a0==1))&&(a27==1))&&(a12==11))))))){ + a18 = 1; + a3 = 7; + a22 = 1; + a6 = 1; + a15 = 1; + a12 = 10; + return -1; + } else if((((a27==1)&&((a4==1)&&(((!(a5==1)&&(!(a0==1)&&(((((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1))||(((a6==1)&&((a3==8)&&((a18==1)&&!(a22==1))))||(((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))))&&(input==6))))&&(a12==9))&&(a20==1))))&&!(a15==1))){ + a5 = 1; + a22 = 1; + a18 = 0; + a27 = 0; + a6 = 1; + a3 = 7; + a0 = 1; + return 21; + } else if((!(a27==1)&&((!(a5==1)&&((((!(a6==1)&&(((((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==1))&&!(a15==1)))&&(a12==11))&&(a20==1))&&!(a0==1)))&&(a4==1)))){ + a0 = 1; + a18 = 0; + a12 = 8; + a6 = 1; + a27 = 1; + a5 = 1; + a15 = 1; + a3 = 8; + a22 = 1; + return 21; + } else if((((a12==9)&&(((((a6==1)&&((!(a27==1)&&((((!(a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a22==1)&&(a18==1)))))&&(input==1)))&&(a15==1)))&&!(a4==1))&&(a20==1))&&!(a5==1)))&&(a0==1))){ + a18 = 1; + a12 = 8; + a22 = 1; + a4 = 1; + a27 = 1; + a5 = 1; + a3 = 4; + return -1; + } else if((((((!(a27==1)&&((a12==12)&&(!(a22==1)&&((a3==5)&&((((input==6)&&(a20==1))&&(a18==1))&&(a15==1))))))&&!(a6==1))&&(a5==1))&&(a0==1))&&!(a4==1))){ + a27 = 1; + a12 = 8; + a22 = 1; + a4 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if((!(a15==1)&&(((a4==1)&&(!(a27==1)&&((a20==1)&&((a12==10)&&((a0==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&(a5==1))&&(a3==8)))))))&&!(a6==1)))){ + a5 = 0; + a15 = 1; + a27 = 1; + a18 = 0; + a4 = 0; + a3 = 5; + a22 = 1; + return 26; + } else if((((((((!(a15==1)&&((((!(a6==1)&&(input==3))&&(a3==7))&&(a20==1))&&!(a22==1)))&&!(a27==1))&&(a0==1))&&(a12==11))&&!(a18==1))&&(a4==1))&&!(a5==1))){ + a0 = 0; + a12 = 8; + a27 = 1; + a15 = 1; + a3 = 8; + return 21; + } else if((((a27==1)&&((a12==12)&&((!(a6==1)&&((a5==1)&&((((input==2)&&(((!(a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a18==1)&&(a22==1))))))&&(a20==1))&&!(a0==1))))&&(a4==1))))&&(a15==1))){ + a6 = 1; + a0 = 1; + a22 = 0; + a5 = 0; + a3 = 5; + a12 = 9; + a15 = 0; + a18 = 1; + a27 = 0; + return -1; + } else if((!(a22==1)&&(!(a4==1)&&((a6==1)&&((!(a15==1)&&((a20==1)&&(((a3==8)&&((a18==1)&&(((a27==1)&&(input==2))&&(a12==9))))&&(a5==1))))&&(a0==1)))))){ + a22 = 1; + a3 = 4; + a4 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if(((((a20==1)&&((((!(a4==1)&&(!(a6==1)&&((input==1)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6)))||((!(a18==1)&&(a22==1))&&(a3==6))))))&&!(a15==1))&&(a5==1))&&!(a27==1)))&&(a0==1))&&(a12==11))){ + a18 = 0; + a3 = 6; + a4 = 1; + a5 = 0; + a22 = 1; + a15 = 1; + a12 = 9; + return -1; + } else if(((!(a5==1)&&(((a15==1)&&(((!(a0==1)&&((a12==9)&&((input==1)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1)))))))&&(a4==1))&&(a27==1)))&&(a20==1)))&&!(a6==1))){ + a22 = 0; + a27 = 0; + a0 = 1; + a15 = 0; + a3 = 8; + a18 = 0; + a12 = 10; + a6 = 1; + a4 = 0; + return 24; + } else if((((!(a5==1)&&(!(a15==1)&&((((a22==1)&&((a12==11)&&(!(a4==1)&&(!(a0==1)&&((input==5)&&((a18==1)||!(a18==1)))))))&&(a3==7))&&(a6==1))))&&(a20==1))&&(a27==1))){ + a15 = 1; + a22 = 0; + a12 = 10; + a27 = 0; + a18 = 1; + a0 = 1; + return 26; + } else if(((a20==1)&&(((!(a6==1)&&(((!(a4==1)&&((((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8)))||((!(a18==1)&&(a22==1))&&(a3==8)))&&(input==3))&&(a0==1)))&&!(a27==1))&&(a15==1)))&&(a5==1))&&(a12==11)))){ + a18 = 1; + a3 = 4; + a6 = 1; + a22 = 0; + return -1; + } else if(((a4==1)&&(!(a22==1)&&((a12==8)&&((a5==1)&&((a15==1)&&(!(a0==1)&&(((!(a6==1)&&((a3==8)&&((input==1)&&((a18==1)||!(a18==1)))))&&(a20==1))&&!(a27==1))))))))){ + a4 = 0; + a27 = 1; + a0 = 1; + a3 = 5; + a18 = 1; + a6 = 1; + return -1; + } else if((!(a5==1)&&((((((a12==12)&&((((a3==6)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==4)))&&(a27==1))&&!(a15==1)))&&(a4==1))&&(a20==1))&&!(a0==1))&&(a6==1)))){ + if((a12==11)){ + a5 = 1; + a22 = 0; + a18 = 1; + a3 = 7; + a15 = 1; + a0 = 1; + a12 = 8; + a6 = 0; + }else{ + a22 = 0; + a6 = 0; + a12 = 9; + a18 = 1; + a0 = 1; + } + return -1; + } else if(((a15==1)&&((((a27==1)&&((!(a4==1)&&((a0==1)&&(((input==1)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5))))&&(a20==1))))&&(a5==1)))&&(a12==11))&&(a6==1)))){ + a3 = 4; + a18 = 1; + a22 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if((((a0==1)&&(!(a6==1)&&((((((((((a22==1)&&(a18==1))&&(a3==7))||(((!(a22==1)&&(a18==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6))))&&(input==1))&&!(a15==1))&&(a12==9))&&(a20==1))&&(a27==1))&&(a4==1))))&&(a5==1))){ + a12 = 12; + a22 = 1; + a18 = 1; + a3 = 7; + a5 = 0; + a4 = 0; + return 26; + } else if((((((a6==1)&&(((a20==1)&&((a27==1)&&(((input==5)&&((((a22==1)&&(a18==1))&&(a3==7))||(((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1))))))&&(a12==9))))&&(a5==1)))&&!(a4==1))&&(a0==1))&&(a15==1))){ + a4 = 1; + a22 = 0; + a18 = 1; + a12 = 12; + a5 = 0; + a3 = 5; + a6 = 0; + return 24; + } else if((!(a15==1)&&(!(a0==1)&&(((a27==1)&&(((a12==10)&&(!(a5==1)&&((!(a6==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==3)))&&(a3==6))))&&(a20==1)))&&!(a4==1))))){ + a12 = 8; + a0 = 1; + a6 = 1; + a18 = 1; + a15 = 1; + a3 = 4; + a4 = 1; + a22 = 1; + a5 = 1; + return -1; + } else if(((((a27==1)&&(((a20==1)&&((a15==1)&&((a4==1)&&((a0==1)&&((a5==1)&&((a12==12)&&(((a18==1)||!(a18==1))&&(input==2))))))))&&(a22==1)))&&(a3==7))&&!(a6==1))){ + a18 = 1; + a22 = 0; + a27 = 0; + a6 = 1; + a3 = 8; + return 21; + } else if((((((a6==1)&&(!(a15==1)&&((a3==6)&&(!(a18==1)&&(((a0==1)&&(!(a4==1)&&((input==6)&&!(a5==1))))&&(a20==1))))))&&!(a27==1))&&(a12==8))&&(a22==1))){ + if((a5==1)){ + a27 = 1; + a5 = 1; + a15 = 1; + a22 = 0; + a18 = 1; + a3 = 7; + a12 = 11; + a6 = 0; + a4 = 1; + a0 = 0; + }else{ + a22 = 0; + a18 = 1; + a3 = 7; + a27 = 1; + a12 = 11; + a15 = 1; + a4 = 1; + } + return -1; + } else if(((a4==1)&&(!(a27==1)&&(!(a5==1)&&((a12==11)&&((((((a3==7)&&((!(a22==1)&&(input==2))&&(a20==1)))&&(a18==1))&&!(a6==1))&&!(a0==1))&&(a15==1))))))){ + a0 = 1; + a3 = 5; + a4 = 0; + a18 = 0; + a15 = 0; + a12 = 8; + a5 = 1; + return -1; + } else if(((a6==1)&&((a18==1)&&((a4==1)&&((a20==1)&&(!(a0==1)&&(((!(a5==1)&&((((a3==6)&&(input==3))&&(a27==1))&&(a12==9)))&&(a22==1))&&(a15==1)))))))){ + if((a27==1)){ + a12 = 10; + a3 = 5; + }else{ + a12 = 10; + a15 = 0; + a3 = 5; + a5 = 1; + a4 = 0; + a0 = 1; + } + return -1; + } else if(((a4==1)&&((((a15==1)&&((a3==6)&&(!(a27==1)&&((a6==1)&&(((a20==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==5)))&&!(a5==1))))))&&(a12==9))&&!(a0==1)))){ + if((a4==1)){ + a5 = 1; + a27 = 1; + a18 = 0; + a12 = 8; + a0 = 1; + a22 = 0; + }else{ + a18 = 0; + a27 = 1; + a12 = 8; + a3 = 7; + a5 = 1; + a22 = 1; + a0 = 1; + } + return 21; + } else if(((((((a20==1)&&((((((input==6)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a5==1))&&(a15==1))&&(a4==1))&&(a6==1)))&&(a27==1))&&(a12==8))&&!(a0==1))&&(a3==8))){ + a18 = 0; + a4 = 0; + a3 = 4; + a12 = 11; + a6 = 0; + a0 = 1; + a22 = 0; + return 26; + } else if(((((a20==1)&&(!(a15==1)&&(((((a27==1)&&((a0==1)&&((input==3)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))))&&(a12==9))&&(a5==1))&&(a4==1))))&&(a6==1))&&(a3==5))){ + a22 = 1; + a18 = 0; + a12 = 12; + return 26; + } else if((!(a0==1)&&((a27==1)&&((a12==12)&&((a20==1)&&((((((a4==1)&&((a15==1)&&(((a18==1)&&(a22==1))&&!(a5==1))))&&(a3==4))&&(a6==1))||((((a3==8)&&(!(a4==1)&&(((a5==1)&&(!(a22==1)&&(a18==1)))&&!(a15==1))))&&!(a6==1))||(((a3==8)&&(!(a4==1)&&(((!(a18==1)&&!(a22==1))&&(a5==1))&&!(a15==1))))&&!(a6==1))))&&(input==3))))))){ + if((a6==1)){ + a18 = 0; + a5 = 1; + a22 = 1; + a0 = 1; + a27 = 0; + a6 = 1; + a4 = 0; + a3 = 4; + a15 = 1; + a12 = 11; + }else{ + a15 = 1; + a22 = 0; + a5 = 1; + a0 = 1; + a12 = 8; + a18 = 0; + a6 = 1; + a4 = 0; + a3 = 7; + } + return -1; + } else if(((!(a22==1)&&((a4==1)&&(!(a6==1)&&(((a15==1)&&((a12==8)&&(((a18==1)&&(((input==5)&&!(a27==1))&&(a3==4)))&&(a5==1))))&&(a0==1)))))&&(a20==1))){ + a18 = 0; + a6 = 1; + a27 = 1; + a4 = 0; + a12 = 12; + return 21; + } else if((((!(a15==1)&&((((a12==9)&&((((a0==1)&&(((input==5)&&!(a18==1))&&!(a22==1)))&&(a3==4))&&(a5==1)))&&(a27==1))&&(a20==1)))&&(a4==1))&&(a6==1))){ + a5 = 0; + a0 = 0; + a4 = 0; + a22 = 1; + return 26; + } else if((!(a15==1)&&(!(a4==1)&&((((!(a27==1)&&(((((((a18==1)||!(a18==1))&&(input==5))&&(a5==1))&&(a20==1))&&!(a0==1))&&(a6==1)))&&(a22==1))&&(a12==10))&&(a3==7))))){ + a22 = 0; + a6 = 0; + a27 = 1; + a5 = 0; + a18 = 1; + return 21; + } else if((((((a27==1)&&((a12==12)&&(!(a15==1)&&((a6==1)&&((a4==1)&&(((((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1))))||((!(a18==1)&&(a22==1))&&(a3==5)))&&(input==3)))))))&&(a0==1))&&(a5==1))&&(a20==1))){ + a6 = 0; + a5 = 0; + a15 = 1; + a12 = 11; + a4 = 0; + a3 = 4; + a22 = 1; + a18 = 0; + return -1; + } else if(((a22==1)&&((!(a18==1)&&((a6==1)&&((a3==4)&&((((a20==1)&&((a0==1)&&(((a27==1)&&(input==2))&&!(a5==1))))&&(a12==9))&&!(a4==1)))))&&(a15==1)))){ + a3 = 7; + a12 = 10; + a18 = 1; + a4 = 1; + a15 = 0; + a6 = 0; + a5 = 1; + return 21; + } else if(((a27==1)&&(((a15==1)&&((a3==7)&&(((((((input==2)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&(a12==12))&&!(a0==1))&&(a6==1))&&(a20==1))&&(a4==1))))&&!(a5==1)))){ + a12 = 8; + a5 = 1; + a22 = 1; + a0 = 1; + a18 = 1; + return -1; + } else if(((a3==5)&&(((a0==1)&&(((((a20==1)&&(((((a27==1)&&(input==1))&&(a22==1))&&!(a4==1))&&(a15==1)))&&(a12==9))&&!(a5==1))&&!(a18==1)))&&(a6==1)))){ + if((a20==1)){ + a4 = 1; + a22 = 0; + a5 = 1; + a12 = 12; + a0 = 0; + a3 = 4; + }else{ + a6 = 0; + a12 = 8; + a15 = 0; + a18 = 1; + a0 = 0; + a4 = 1; + a5 = 1; + a3 = 4; + } + return 26; + } else if((((a12==9)&&((a3==8)&&(((((a20==1)&&(((a4==1)&&(((input==2)&&!(a22==1))&&!(a27==1)))&&(a5==1)))&&!(a15==1))&&!(a6==1))&&(a18==1))))&&(a0==1))){ + a15 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + a6 = 1; + a27 = 1; + return -1; + } else if((((a12==10)&&((((((((!(a5==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a3==8))&&(a20==1))&&(a22==1))&&!(a27==1))&&(a15==1))&&(a6==1))&&!(a0==1)))&&!(a4==1))){ + if((a15==1)){ + a22 = 0; + a5 = 1; + a18 = 0; + a12 = 11; + a27 = 1; + a0 = 1; + a3 = 6; + a15 = 0; + }else{ + a18 = 0; + a12 = 9; + a27 = 1; + a6 = 0; + a3 = 6; + a22 = 0; + a5 = 1; + a4 = 1; + } + return -1; + } else if(((!(a18==1)&&(!(a27==1)&&(((a0==1)&&((a6==1)&&((a20==1)&&(!(a5==1)&&((((a4==1)&&(input==5))&&(a12==12))&&(a3==6))))))&&(a15==1))))&&!(a22==1))){ + a18 = 1; + a12 = 8; + a5 = 1; + a3 = 4; + a27 = 1; + a22 = 1; + return -1; + } else if((!(a5==1)&&((a20==1)&&(!(a4==1)&&(!(a0==1)&&(!(a15==1)&&(((a3==8)&&((!(a6==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==1)))&&(a12==9)))&&(a27==1)))))))){ + a22 = 1; + a6 = 1; + a3 = 7; + a12 = 10; + a18 = 1; + a4 = 1; + a0 = 1; + return 26; + } else if((((((a0==1)&&((a20==1)&&(((((!(a22==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a4==1))&&(a12==8))&&(a6==1))&&(a5==1))))&&(a27==1))&&!(a15==1))&&(a3==5))){ + a15 = 1; + a3 = 7; + a22 = 1; + a5 = 0; + a18 = 0; + return 26; + } else if(((((!(a18==1)&&((!(a27==1)&&(((((a12==9)&&((input==3)&&!(a22==1)))&&(a20==1))&&!(a15==1))&&(a3==6)))&&(a5==1)))&&(a4==1))&&!(a6==1))&&(a0==1))){ + a12 = 8; + a6 = 1; + a22 = 1; + a15 = 1; + a3 = 4; + a18 = 1; + a27 = 1; + return -1; + } else if(((a0==1)&&((((a12==12)&&((a22==1)&&((a15==1)&&((a5==1)&&((a3==7)&&((((input==3)&&((a18==1)||!(a18==1)))&&!(a27==1))&&(a20==1)))))))&&(a4==1))&&(a6==1)))){ + a3 = 4; + a12 = 8; + a27 = 1; + a18 = 1; + return -1; + } else if(((a20==1)&&(((a5==1)&&(!(a22==1)&&((((((a3==6)&&(!(a15==1)&&(((a18==1)||!(a18==1))&&(input==2))))&&(a12==8))&&(a4==1))&&!(a6==1))&&!(a27==1))))&&!(a0==1)))){ + a18 = 0; + a15 = 1; + a27 = 1; + a0 = 1; + return 26; + } else if((((a12==9)&&(((a22==1)&&(((!(a0==1)&&((((a15==1)&&((a4==1)&&(input==2)))&&!(a27==1))&&!(a5==1)))&&!(a6==1))&&(a3==8)))&&(a18==1)))&&(a20==1))){ + a12 = 8; + a0 = 1; + a6 = 1; + a3 = 4; + a5 = 1; + a18 = 0; + a27 = 1; + a4 = 0; + return -1; + } else if((((a6==1)&&(((((a3==6)&&(((!(a0==1)&&((input==2)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a4==1))&&(a15==1)))&&(a12==8))&&(a27==1))&&!(a5==1)))&&(a20==1))){ + a4 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + a0 = 1; + a5 = 1; + return -1; + } else if(((a5==1)&&((a4==1)&&((a27==1)&&((((!(a6==1)&&((!(a15==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==6)))&&(a0==1)))&&(a3==8))&&(a20==1))&&(a12==12)))))){ + if((a15==1)){ + a22 = 1; + a6 = 1; + a18 = 0; + a0 = 0; + a5 = 0; + a12 = 8; + a3 = 4; + }else{ + a22 = 0; + a27 = 0; + a3 = 5; + a18 = 0; + a6 = 1; + } + return 24; + } else if(((((a22==1)&&(((((!(a15==1)&&(((a12==10)&&((input==5)&&(a20==1)))&&(a27==1)))&&(a3==6))&&!(a18==1))&&!(a0==1))&&(a6==1)))&&(a4==1))&&(a5==1))){ + if((a12==10)){ + a4 = 0; + a12 = 11; + a3 = 4; + a5 = 0; + }else{ + a12 = 11; + a0 = 1; + a15 = 1; + a27 = 0; + a4 = 0; + a22 = 0; + a6 = 0; + a3 = 8; + a18 = 1; + } + return 24; + } else if(((a12==10)&&(((((a27==1)&&(!(a6==1)&&(!(a0==1)&&(((input==4)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8))))&&!(a15==1)))))&&(a20==1))&&!(a5==1))&&!(a4==1)))){ + a18 = 1; + a6 = 1; + a3 = 4; + a22 = 1; + a0 = 1; + a12 = 8; + a4 = 1; + a15 = 1; + a5 = 1; + return -1; + } else if((!(a27==1)&&((((a3==8)&&((a12==9)&&(((a6==1)&&(!(a22==1)&&((((input==2)&&((a18==1)||!(a18==1)))&&!(a0==1))&&(a20==1))))&&!(a4==1))))&&!(a5==1))&&!(a15==1)))){ + a3 = 6; + a27 = 1; + a18 = 1; + a12 = 8; + a6 = 0; + a22 = 1; + a5 = 1; + a15 = 1; + a0 = 1; + a4 = 1; + return -1; + } else if((!(a15==1)&&(((a12==8)&&(!(a5==1)&&(((a6==1)&&((a4==1)&&((a20==1)&&((input==6)&&(((!(a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6))))))))&&(a27==1))))&&(a0==1)))){ + a22 = 1; + a18 = 0; + a4 = 0; + a3 = 8; + a12 = 10; + a6 = 0; + a15 = 1; + return 21; + } else if(((a4==1)&&(!(a15==1)&&(((a3==8)&&((((a20==1)&&((a27==1)&&(((!(a6==1)&&(input==2))&&!(a22==1))&&!(a0==1))))&&(a12==10))&&!(a5==1)))&&!(a18==1))))){ + a18 = 1; + a22 = 1; + a3 = 6; + a15 = 1; + a5 = 1; + a4 = 0; + a0 = 1; + a12 = 11; + return 21; + } else if(((!(a6==1)&&((a3==6)&&((a12==11)&&((a22==1)&&(!(a5==1)&&((a27==1)&&(((((input==2)&&!(a15==1))&&(a20==1))&&(a0==1))&&(a4==1))))))))&&!(a18==1))){ + a18 = 1; + a12 = 8; + a5 = 1; + a3 = 8; + return 26; + } else if((!(a6==1)&&(((a20==1)&&((((a12==11)&&(((a0==1)&&((a3==6)&&((a15==1)&&(((a18==1)||!(a18==1))&&(input==6)))))&&!(a22==1)))&&!(a27==1))&&(a5==1)))&&(a4==1)))){ + a22 = 1; + a6 = 1; + a27 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + return -1; + } else if((((!(a5==1)&&((a20==1)&&((a6==1)&&((a15==1)&&(!(a27==1)&&((a12==10)&&((((a3==5)&&((a22==1)&&!(a18==1)))||(((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1)))))&&(input==5))))))))&&!(a0==1))&&(a4==1))){ + if((a5==1)){ + a22 = 1; + a12 = 11; + a3 = 8; + a6 = 0; + a4 = 0; + a18 = 0; + a0 = 1; + a27 = 1; + }else{ + a18 = 0; + a3 = 7; + a6 = 0; + a5 = 1; + a0 = 1; + a22 = 1; + a12 = 8; + a27 = 1; + } + return 24; + } else if((((!(a5==1)&&((((a20==1)&&((a27==1)&&(!(a0==1)&&((a15==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==6))))))&&(a12==12))&&(a6==1)))&&(a3==7))&&(a4==1))){ + if((a27==1)){ + a22 = 0; + a18 = 0; + a12 = 8; + a5 = 1; + a0 = 1; + a6 = 0; + }else{ + a5 = 1; + a0 = 1; + a12 = 8; + a22 = 0; + a18 = 1; + } + return -1; + } else if((((!(a27==1)&&(!(a4==1)&&((((a12==10)&&(!(a5==1)&&((input==1)&&(((!(a18==1)&&(a22==1))&&(a3==7))||(((!(a18==1)&&!(a22==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))))))&&!(a6==1))&&!(a15==1))))&&!(a0==1))&&(a20==1))){ + if((a18==1)){ + a27 = 1; + a18 = 1; + a5 = 1; + a0 = 1; + a3 = 6; + a15 = 1; + a22 = 1; + a4 = 1; + a12 = 8; + }else{ + a0 = 1; + a12 = 8; + a18 = 0; + a5 = 1; + a27 = 1; + a22 = 0; + a4 = 1; + a15 = 1; + a3 = 8; + } + return 21; + } else if((((a4==1)&&(((a12==11)&&(!(a6==1)&&(((((a15==1)&&((a3==6)&&((input==1)&&(a0==1))))&&(a20==1))&&!(a18==1))&&(a27==1))))&&(a5==1)))&&(a22==1))){ + a18 = 1; + a12 = 10; + a4 = 0; + a22 = 0; + a3 = 8; + a15 = 0; + return -1; + } else if(((a12==9)&&(((a20==1)&&((((((((a3==8)&&(!(a4==1)&&((!(a22==1)&&!(a18==1))&&(a15==1))))&&!(a6==1))||((a6==1)&&(((((a18==1)&&(a22==1))&&!(a15==1))&&(a4==1))&&(a3==4))))||((a6==1)&&(((!(a15==1)&&(!(a18==1)&&(a22==1)))&&(a4==1))&&(a3==4))))&&(input==2))&&!(a5==1))&&(a27==1)))&&!(a0==1)))){ + a0 = 1; + a12 = 8; + a22 = 1; + a15 = 1; + a5 = 1; + a4 = 1; + a18 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if((!(a27==1)&&(((!(a22==1)&&((a12==8)&&(!(a6==1)&&((a3==8)&&((a5==1)&&((a4==1)&&((((a18==1)||!(a18==1))&&(input==2))&&(a0==1))))))))&&(a20==1))&&(a15==1)))){ + a18 = 0; + a3 = 7; + a4 = 0; + a12 = 10; + a6 = 1; + a15 = 0; + a27 = 1; + a5 = 0; + return 21; + } else if((!(a0==1)&&((((a4==1)&&(!(a27==1)&&((a5==1)&&(((!(a6==1)&&((!(a18==1)&&(input==4))&&(a20==1)))&&(a3==4))&&!(a22==1)))))&&(a12==10))&&!(a15==1)))){ + if((a4==1)){ + a15 = 1; + a4 = 0; + a3 = 5; + a22 = 1; + a18 = 1; + }else{ + a6 = 1; + a12 = 8; + a0 = 1; + a27 = 1; + a15 = 1; + } + return 21; + } else if((((((((((((a3==5)&&(((a18==1)||!(a18==1))&&(input==2)))&&!(a15==1))&&(a4==1))&&(a6==1))&&!(a0==1))&&(a22==1))&&(a20==1))&&!(a5==1))&&(a12==12))&&(a27==1))){ + a18 = 0; + a22 = 0; + a12 = 8; + a4 = 0; + a15 = 1; + a3 = 6; + a0 = 1; + a5 = 1; + return 21; + } else if(((a0==1)&&((a4==1)&&((a15==1)&&((((a5==1)&&((a20==1)&&((input==3)&&((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||(!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1))))))))&&(a12==8))&&!(a27==1)))))){ + a18 = 0; + a12 = 11; + a6 = 0; + a27 = 1; + a22 = 1; + a5 = 0; + a4 = 0; + a3 = 4; + return 26; + } else if(((a5==1)&&(!(a0==1)&&(((a20==1)&&((((a3==5)&&(((a12==10)&&((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a27==1)))&&(a15==1))&&!(a4==1)))&&!(a6==1))))){ + a18 = 1; + a3 = 6; + a22 = 0; + a6 = 1; + a0 = 1; + a5 = 0; + a15 = 0; + a12 = 9; + return 24; + } else if((!(a27==1)&&(((((((a3==5)&&((a6==1)&&((!(a4==1)&&((input==6)&&!(a22==1)))&&(a20==1))))&&(a12==8))&&(a0==1))&&(a15==1))&&(a5==1))&&!(a18==1)))){ + a5 = 0; + a22 = 1; + a12 = 10; + a6 = 0; + a3 = 6; + a27 = 1; + a18 = 1; + return 21; + } else if(((((a12==11)&&((a20==1)&&(((input==1)&&(((!(a6==1)&&((a3==8)&&(((!(a22==1)&&(a18==1))&&(a15==1))&&!(a4==1))))||(!(a6==1)&&((!(a4==1)&&((!(a22==1)&&!(a18==1))&&(a15==1)))&&(a3==8))))||((a6==1)&&((a3==4)&&((a4==1)&&(!(a15==1)&&((a18==1)&&(a22==1))))))))&&!(a27==1))))&&(a5==1))&&(a0==1))){ + a3 = 4; + a27 = 1; + a6 = 1; + a12 = 8; + a18 = 1; + a4 = 1; + a15 = 1; + a22 = 1; + return -1; + } else if((!(a5==1)&&(((a12==11)&&(((((a20==1)&&(!(a15==1)&&(((a0==1)&&((input==4)&&((a18==1)||!(a18==1))))&&!(a22==1))))&&(a27==1))&&!(a4==1))&&(a3==4)))&&!(a6==1)))){ + a27 = 0; + a6 = 1; + a18 = 0; + return 26; + } else if((((!(a22==1)&&(((a5==1)&&(((((((input==5)&&((a18==1)||!(a18==1)))&&!(a15==1))&&(a3==5))&&(a12==8))&&!(a27==1))&&(a20==1)))&&!(a6==1)))&&(a4==1))&&(a0==1))){ + a15 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a4 = 0; + a12 = 12; + a27 = 1; + return 21; + } else if(((a3==4)&&(((a4==1)&&(!(a6==1)&&(!(a5==1)&&(((a12==9)&&((((input==3)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a0==1))&&(a27==1)))&&!(a15==1)))))&&(a20==1)))){ + a15 = 1; + a12 = 11; + a18 = 1; + a5 = 1; + a22 = 0; + return 24; + } else if(((a12==9)&&((((a20==1)&&((a6==1)&&(!(a0==1)&&((((input==6)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7))))&&(a15==1))&&!(a5==1)))))&&(a27==1))&&(a4==1)))){ + a3 = 6; + a18 = 1; + a5 = 1; + a4 = 0; + a12 = 10; + a15 = 0; + a6 = 0; + a22 = 0; + a0 = 1; + return 21; + } else if((!(a6==1)&&((a12==12)&&((((a5==1)&&((a3==8)&&((a27==1)&&(((!(a0==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a20==1))&&!(a15==1)))))&&!(a4==1))&&(a22==1))))){ + a3 = 4; + a15 = 1; + a12 = 9; + a27 = 0; + a18 = 1; + a5 = 0; + a0 = 1; + return -1; + } else if((((a3==4)&&((a22==1)&&((a12==11)&&((((a5==1)&&(((!(a0==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a27==1))&&(a15==1)))&&(a4==1))&&(a6==1)))))&&(a20==1))){ + a18 = 0; + a0 = 1; + a6 = 0; + a3 = 6; + a5 = 0; + a12 = 12; + return 24; + } else if(((((((((((a20==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a4==1)))&&!(a15==1))&&!(a6==1))&&(a3==4))&&!(a27==1))&&(a0==1))&&(a12==10))&&(a5==1))&&(a22==1))){ + a3 = 8; + a18 = 1; + a5 = 0; + a6 = 1; + a12 = 11; + return 21; + } else if(((a27==1)&&((a5==1)&&((!(a4==1)&&((((a0==1)&&(((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4))))&&(input==2)))&&(a20==1))&&(a15==1)))&&(a12==11))))){ + a18 = 0; + a12 = 10; + a3 = 8; + a15 = 0; + a6 = 0; + a4 = 1; + a5 = 0; + a22 = 0; + a0 = 0; + return 26; + } else if(((((!(a0==1)&&((a5==1)&&((!(a15==1)&&((a6==1)&&((a4==1)&&(!(a18==1)&&((input==3)&&(a3==5))))))&&(a12==10))))&&(a22==1))&&(a27==1))&&(a20==1))){ + a18 = 1; + a12 = 8; + a3 = 4; + a15 = 1; + a0 = 1; + return -1; + } else if((((!(a5==1)&&((a3==4)&&((a0==1)&&(((!(a15==1)&&(!(a22==1)&&(((a4==1)&&(input==5))&&!(a18==1))))&&!(a6==1))&&(a27==1)))))&&(a12==8))&&(a20==1))){ + a5 = 1; + a12 = 11; + a15 = 1; + a6 = 1; + a18 = 1; + a3 = 7; + return 21; + } else if((((a15==1)&&((a3==8)&&((a12==9)&&(((a5==1)&&(((((((a18==1)||!(a18==1))&&(input==2))&&!(a4==1))&&!(a27==1))&&!(a6==1))&&(a20==1)))&&!(a22==1)))))&&(a0==1))){ + a15 = 0; + a3 = 7; + a4 = 1; + a22 = 1; + a27 = 1; + a18 = 0; + a12 = 10; + return -1; + } else if((((a0==1)&&((!(a6==1)&&(((!(a27==1)&&((a12==10)&&((((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==1))))&&!(a4==1))&&(a15==1)))&&(a20==1)))&&(a5==1))){ + a15 = 0; + a22 = 1; + a27 = 1; + a3 = 5; + a12 = 12; + a18 = 1; + return 26; + } else if(((a6==1)&&((((a0==1)&&((!(a4==1)&&((a12==11)&&((((!(a15==1)&&(input==5))&&!(a22==1))&&(a27==1))&&(a20==1))))&&(a18==1)))&&(a3==8))&&(a5==1)))){ + a4 = 1; + a3 = 7; + a22 = 1; + a15 = 1; + a12 = 10; + return -1; + } else if(((a5==1)&&((((a6==1)&&((((((a3==4)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1)))&&!(a0==1))&&(a12==12))&&(a27==1))&&(a15==1)))&&(a20==1))&&(a4==1)))){ + a3 = 5; + a4 = 0; + a18 = 1; + a22 = 1; + a6 = 0; + a0 = 1; + return 26; + } else if(((a3==6)&&(!(a27==1)&&(((a4==1)&&(((((a12==11)&&((a5==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==3))))&&(a20==1))&&(a15==1))&&!(a0==1)))&&!(a6==1))))){ + if((a0==1)){ + a6 = 1; + a3 = 4; + a22 = 0; + a27 = 1; + a12 = 8; + a0 = 1; + a18 = 0; + }else{ + a0 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + a4 = 0; + a22 = 1; + a27 = 1; + } + return 21; + } else if(((a5==1)&&(!(a0==1)&&(((a15==1)&&(((!(a27==1)&&(((((a3==7)&&((a22==1)&&!(a18==1)))||(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1)))))&&(input==5))&&(a4==1)))&&(a20==1))&&(a6==1)))&&(a12==10))))){ + a6 = 0; + a18 = 0; + a3 = 6; + a22 = 0; + a12 = 8; + a0 = 1; + a27 = 1; + return 24; + } else if((!(a22==1)&&(((a0==1)&&((!(a6==1)&&((!(a27==1)&&((((((a18==1)||!(a18==1))&&(input==6))&&(a3==7))&&(a12==9))&&!(a15==1)))&&!(a5==1)))&&(a20==1)))&&(a4==1)))){ + a12 = 10; + a18 = 0; + a6 = 1; + a4 = 0; + a3 = 4; + a5 = 1; + return 26; + } else if(((a3==4)&&(!(a5==1)&&(((a4==1)&&(!(a0==1)&&((a20==1)&&((a12==11)&&(!(a15==1)&&(((!(a18==1)&&(input==3))&&(a22==1))&&!(a27==1)))))))&&(a6==1))))){ + a12 = 8; + a18 = 1; + a5 = 1; + a0 = 1; + a3 = 8; + a15 = 1; + a27 = 1; + a6 = 0; + return 26; + } else if(((a12==9)&&(!(a15==1)&&((a27==1)&&((((a20==1)&&((a4==1)&&(((input==2)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1)))))&&(a5==1))))&&!(a0==1))&&!(a6==1)))))){ + a18 = 1; + a6 = 1; + a15 = 1; + a3 = 6; + a0 = 1; + a12 = 10; + a22 = 1; + return 21; + } else if((((((a3==7)&&(!(a22==1)&&((!(a5==1)&&(((((a12==12)&&(input==6))&&!(a18==1))&&(a27==1))&&!(a6==1)))&&!(a0==1))))&&(a20==1))&&!(a4==1))&&(a15==1))){ + a12 = 8; + a5 = 1; + a3 = 8; + a22 = 1; + a6 = 1; + a0 = 1; + a18 = 1; + return 26; + } else if((((!(a27==1)&&(!(a5==1)&&(!(a6==1)&&((a3==8)&&((a20==1)&&((a0==1)&&((a15==1)&&(((a18==1)&&(input==5))&&(a12==12)))))))))&&(a22==1))&&!(a4==1))){ + a4 = 1; + a12 = 9; + a5 = 1; + a3 = 7; + return -1; + } else if(((((((((!(a6==1)&&(((((a22==1)&&(a18==1))&&(a3==8))||((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a18==1)&&!(a22==1)))))&&(input==1)))&&(a5==1))&&(a12==8))&&!(a4==1))&&(a15==1))&&(a20==1))&&(a0==1))&&(a27==1))){ + a15 = 0; + a0 = 0; + a22 = 0; + a5 = 0; + a12 = 9; + a3 = 6; + a18 = 0; + return 21; + } else if((((a20==1)&&(!(a22==1)&&((a4==1)&&(((((a3==6)&&(((((a18==1)||!(a18==1))&&(input==1))&&!(a15==1))&&(a6==1)))&&!(a5==1))&&(a27==1))&&!(a0==1)))))&&(a12==11))){ + a12 = 10; + a18 = 0; + a3 = 5; + a5 = 1; + a4 = 0; + a27 = 0; + a15 = 1; + a0 = 1; + return 21; + } else if(((a12==9)&&((((a27==1)&&(((!(a6==1)&&((a5==1)&&((((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==1))))&&!(a0==1))&&(a4==1)))&&!(a15==1))&&(a20==1)))){ + if((a22==1)){ + a12 = 10; + a18 = 0; + a3 = 7; + a6 = 1; + a22 = 0; + }else{ + a15 = 1; + a3 = 8; + a18 = 1; + a12 = 11; + a22 = 1; + } + return 26; + } else if(((a20==1)&&(((!(a5==1)&&((((a15==1)&&((a12==9)&&((input==6)&&(((a3==8)&&(!(a18==1)&&(a22==1)))||(((!(a18==1)&&!(a22==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))))))&&(a4==1))&&(a0==1)))&&!(a27==1))&&!(a6==1)))){ + a27 = 1; + a18 = 1; + a22 = 0; + a4 = 0; + a3 = 6; + a5 = 1; + a12 = 12; + return 21; + } else if((((a12==8)&&(((!(a18==1)&&(!(a5==1)&&((((((input==2)&&(a3==4))&&!(a0==1))&&!(a22==1))&&(a20==1))&&!(a6==1))))&&(a27==1))&&(a4==1)))&&(a15==1))){ + a0 = 1; + a27 = 0; + a18 = 1; + a22 = 1; + a6 = 1; + a12 = 11; + return 26; + } else if((((a27==1)&&((a20==1)&&((!(a0==1)&&((!(a5==1)&&((a15==1)&&((input==3)&&((((a18==1)&&(a22==1))&&(a3==8))||(((!(a22==1)&&(a18==1))&&(a3==7))||((a3==7)&&(!(a22==1)&&!(a18==1))))))))&&!(a6==1)))&&(a12==11))))&&(a4==1))){ + a6 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + a0 = 1; + a5 = 1; + a3 = 4; + return -1; + } else if(((a0==1)&&((a3==8)&&(((((a12==8)&&(((a5==1)&&(((input==2)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a4==1)))&&(a20==1)))&&(a15==1))&&(a6==1))&&!(a27==1))))){ + a22 = 0; + a12 = 11; + a6 = 0; + a18 = 1; + a27 = 1; + a5 = 0; + a15 = 0; + return 21; + } else if(((((((!(a4==1)&&((!(a18==1)&&((((input==6)&&(a22==1))&&(a12==12))&&!(a6==1)))&&(a5==1)))&&!(a15==1))&&(a20==1))&&!(a27==1))&&(a3==6))&&(a0==1))){ + a0 = 0; + a27 = 1; + a15 = 1; + a22 = 0; + a3 = 5; + return 21; + } else if(((a5==1)&&(((((!(a15==1)&&(((a4==1)&&((a27==1)&&((a0==1)&&(((a18==1)||!(a18==1))&&(input==5)))))&&!(a22==1)))&&(a12==10))&&(a6==1))&&(a20==1))&&(a3==8)))){ + a3 = 7; + a18 = 1; + a15 = 1; + a4 = 0; + return -1; + } else if((((((((a12==8)&&((a5==1)&&((a27==1)&&((a4==1)&&((a20==1)&&(!(a6==1)&&(input==5)))))))&&(a3==6))&&!(a18==1))&&(a0==1))&&!(a15==1))&&(a22==1))){ + if((a27==1)){ + a15 = 1; + a3 = 8; + a22 = 0; + a12 = 11; + a6 = 1; + a18 = 1; + a0 = 0; + }else{ + a3 = 5; + a4 = 0; + a22 = 0; + a5 = 0; + a6 = 1; + a18 = 1; + } + return 21; + } else if((((a3==6)&&((((!(a6==1)&&((a0==1)&&((((input==5)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&(a12==10))&&!(a5==1))))&&(a4==1))&&!(a15==1))&&(a27==1)))&&(a20==1))){ + a12 = 8; + a6 = 1; + a3 = 4; + a5 = 1; + a15 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if((((!(a0==1)&&(((((((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==1))&&!(a5==1))&&(a3==4))&&(a4==1))&&!(a27==1))&&(a20==1))&&!(a6==1)))&&(a12==8))&&(a15==1))){ + a3 = 6; + a12 = 9; + a27 = 1; + a5 = 1; + a0 = 1; + a22 = 0; + a18 = 0; + return 21; + } else if((((a27==1)&&(!(a4==1)&&(!(a22==1)&&((a20==1)&&(!(a15==1)&&((((((input==5)&&((a18==1)||!(a18==1)))&&(a12==9))&&(a0==1))&&(a3==8))&&!(a6==1)))))))&&(a5==1))){ + a3 = 6; + a12 = 8; + a15 = 1; + a27 = 0; + a18 = 1; + return 26; + } else if(((((a22==1)&&(((a0==1)&&((!(a15==1)&&((((a3==6)&&((input==2)&&((a18==1)||!(a18==1))))&&!(a27==1))&&(a12==11)))&&(a20==1)))&&(a6==1)))&&!(a4==1))&&(a5==1))){ + a12 = 8; + a27 = 1; + a4 = 1; + a15 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a5==1)&&(((a20==1)&&((a12==9)&&((((((input==6)&&(((a3==5)&&(!(a18==1)&&(a22==1)))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1))))))&&(a4==1))&&(a6==1))&&(a27==1))&&(a0==1))))&&(a15==1)))){ + a22 = 1; + a18 = 1; + a3 = 5; + a6 = 0; + a12 = 8; + a0 = 0; + a5 = 0; + return 26; + } else if(((a6==1)&&(((((a15==1)&&(((a4==1)&&(!(a0==1)&&(!(a22==1)&&((((a18==1)||!(a18==1))&&(input==3))&&(a5==1)))))&&(a12==9)))&&(a20==1))&&(a3==4))&&!(a27==1)))){ + a3 = 6; + a22 = 1; + a12 = 8; + a18 = 0; + a0 = 1; + a27 = 1; + a4 = 0; + return -1; + } else if((((((((a4==1)&&(((a20==1)&&((!(a18==1)&&(!(a27==1)&&(input==5)))&&(a3==6)))&&(a6==1)))&&!(a15==1))&&(a22==1))&&(a12==12))&&(a0==1))&&!(a5==1))){ + if((a27==1)){ + a27 = 1; + a4 = 0; + a0 = 0; + a12 = 10; + }else{ + a18 = 1; + a27 = 1; + a5 = 1; + a0 = 0; + a22 = 0; + } + return -1; + } else if(((((((((((((((a18==1)&&!(a22==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==2))&&(a15==1))&&(a20==1))&&(a12==9))&&!(a5==1))&&(a27==1))&&(a0==1))&&(a6==1))&&(a4==1))){ + a12 = 8; + a5 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + return -1; + } else if((((a4==1)&&(!(a15==1)&&(!(a6==1)&&(!(a27==1)&&(((a20==1)&&((a3==4)&&(!(a22==1)&&((((a18==1)||!(a18==1))&&(input==5))&&!(a5==1)))))&&!(a0==1))))))&&(a12==10))){ + if((a15==1)){ + a12 = 9; + a0 = 1; + a4 = 0; + a3 = 7; + a27 = 1; + a18 = 0; + }else{ + a12 = 12; + a6 = 1; + a3 = 6; + a27 = 1; + a18 = 0; + a0 = 1; + a22 = 1; + } + return 21; + } else if((((a20==1)&&((a3==5)&&((a12==9)&&((a6==1)&&(!(a27==1)&&((a4==1)&&(((a0==1)&&(((a18==1)&&(input==3))&&(a15==1)))&&(a22==1))))))))&&(a5==1))){ + a3 = 7; + a12 = 8; + a4 = 0; + a5 = 0; + a15 = 0; + return 21; + } else if((!(a15==1)&&(((((a5==1)&&((((a22==1)&&(!(a18==1)&&(((input==2)&&!(a6==1))&&(a3==4))))&&!(a27==1))&&(a20==1)))&&!(a0==1))&&(a12==10))&&(a4==1)))){ + a0 = 1; + a18 = 1; + a5 = 0; + a6 = 1; + a3 = 6; + a22 = 0; + a15 = 1; + return 21; + } else if((((a3==7)&&((a4==1)&&((a27==1)&&((a22==1)&&(((((((input==6)&&(a20==1))&&(a12==10))&&!(a5==1))&&(a18==1))&&(a0==1))&&(a15==1))))))&&(a6==1))){ + a3 = 4; + a5 = 1; + a12 = 8; + return -1; + } else if(((a15==1)&&(!(a0==1)&&(((a4==1)&&((a3==5)&&(((a20==1)&&((a27==1)&&(!(a6==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==6)))))&&(a12==8))))&&!(a5==1))))){ + if((a4==1)){ + a22 = 1; + a5 = 1; + a6 = 1; + a12 = 9; + a3 = 6; + a18 = 1; + }else{ + a22 = 1; + a3 = 4; + a18 = 1; + a0 = 1; + a27 = 0; + a4 = 0; + } + return 26; + } else if(((((((a6==1)&&(((a4==1)&&(((((a3==6)&&((a22==1)&&!(a18==1)))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a22==1)&&(a18==1)))))&&(input==3))&&!(a27==1)))&&!(a15==1)))&&(a0==1))&&(a12==9))&&(a20==1))&&!(a5==1))){ + a27 = 1; + a22 = 1; + a5 = 1; + a18 = 0; + a3 = 7; + a15 = 1; + a12 = 12; + a4 = 0; + return -1; + } else if(((a12==11)&&(((a0==1)&&((((a20==1)&&((input==5)&&((((!(a4==1)&&((a18==1)&&(a22==1)))&&(a3==4))&&(a6==1))||(((((!(a22==1)&&(a18==1))&&(a4==1))&&(a3==8))&&!(a6==1))||(!(a6==1)&&(((a4==1)&&(!(a22==1)&&!(a18==1)))&&(a3==8)))))))&&!(a5==1))&&(a15==1)))&&!(a27==1)))){ + a12 = 8; + a6 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + a4 = 1; + a5 = 1; + a27 = 1; + return -1; + } else if(((((!(a4==1)&&((!(a0==1)&&(!(a5==1)&&(((input==5)&&((((a22==1)&&!(a18==1))&&(a3==7))||(((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))))&&(a20==1))))&&!(a27==1)))&&(a12==9))&&!(a6==1))&&(a15==1))){ + a27 = 1; + a3 = 7; + a0 = 1; + a5 = 1; + a6 = 1; + a22 = 1; + a18 = 1; + a12 = 8; + return 21; + } else if(((a6==1)&&((a4==1)&&((a12==8)&&(!(a27==1)&&(((a0==1)&&(((a20==1)&&((!(a15==1)&&((input==4)&&(a22==1)))&&(a18==1)))&&(a3==8)))&&!(a5==1))))))){ + a5 = 1; + a27 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if(((!(a0==1)&&((!(a27==1)&&(((a5==1)&&(!(a6==1)&&((((input==3)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a3==6))&&(a20==1))))&&(a12==8)))&&(a4==1)))&&(a15==1))){ + if((a5==1)){ + a18 = 0; + a3 = 8; + a0 = 1; + a22 = 1; + a27 = 1; + a6 = 1; + }else{ + a12 = 11; + a5 = 0; + a22 = 0; + a0 = 1; + a6 = 1; + a27 = 1; + a18 = 1; + a3 = 5; + } + return -1; + } else if(((a27==1)&&(((a4==1)&&(!(a6==1)&&(((a3==6)&&(!(a0==1)&&((!(a5==1)&&((input==5)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&(a12==9))))&&!(a15==1))))&&(a20==1)))){ + a22 = 0; + a18 = 0; + a5 = 1; + a0 = 1; + a12 = 11; + a15 = 1; + return -1; + } else if(((a20==1)&&((a15==1)&&((a12==9)&&((!(a5==1)&&((((((((a3==7)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==7)))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==4))&&(a0==1))&&(a27==1))&&!(a6==1)))&&(a4==1)))))){ + a3 = 8; + a12 = 8; + a27 = 0; + a4 = 0; + a18 = 1; + a22 = 1; + a5 = 1; + a15 = 0; + return 24; + } else if(((a0==1)&&((a27==1)&&(!(a18==1)&&(((((!(a5==1)&&(!(a6==1)&&(((input==4)&&(a20==1))&&!(a4==1))))&&!(a22==1))&&(a12==11))&&(a15==1))&&(a3==6)))))){ + a3 = 5; + a18 = 1; + a5 = 1; + a12 = 10; + a4 = 1; + a6 = 1; + a0 = 0; + return -1; + } else if(((a0==1)&&(((a3==5)&&((a12==10)&&((a27==1)&&((a4==1)&&(!(a15==1)&&((((a5==1)&&((input==1)&&(a18==1)))&&(a20==1))&&(a6==1)))))))&&(a22==1)))){ + a3 = 6; + a18 = 0; + return 21; + } else if(((a0==1)&&((a22==1)&&(((a12==11)&&((a27==1)&&(((a20==1)&&(((a15==1)&&((((a18==1)||!(a18==1))&&(input==3))&&!(a5==1)))&&(a6==1)))&&(a3==8))))&&!(a4==1))))){ + a5 = 1; + a18 = 0; + a12 = 10; + a15 = 0; + a6 = 0; + a22 = 0; + a3 = 6; + return -1; + } else if((((a0==1)&&((((a6==1)&&(((a4==1)&&((((((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a18==1)&&!(a22==1))))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==3))&&(a12==12)))&&!(a15==1)))&&(a27==1))&&!(a5==1)))&&(a20==1))){ + a4 = 0; + a18 = 0; + a3 = 7; + a22 = 0; + return 26; + } else if(((a20==1)&&(!(a15==1)&&((a12==8)&&((a3==4)&&((a4==1)&&((a0==1)&&(((a18==1)&&(!(a6==1)&&((!(a5==1)&&(input==2))&&(a22==1))))&&(a27==1))))))))){ + a22 = 0; + a3 = 5; + a4 = 0; + a12 = 10; + return 26; + } else if(((a12==10)&&((((a3==8)&&(!(a6==1)&&((a0==1)&&((a20==1)&&(!(a4==1)&&((a5==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==1))))))))&&!(a27==1))&&(a15==1)))){ + a22 = 1; + a12 = 12; + a6 = 1; + a18 = 1; + a27 = 1; + a15 = 0; + a3 = 7; + return 21; + } else if(((a20==1)&&(!(a6==1)&&(((a15==1)&&(!(a22==1)&&(((a0==1)&&((((a27==1)&&((input==2)&&(a3==6)))&&(a12==10))&&!(a18==1)))&&(a5==1))))&&(a4==1))))){ + a3 = 7; + a4 = 0; + return 21; + } else if((((((a27==1)&&((((!(a0==1)&&((((((a18==1)&&!(a22==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7)))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==2)))&&(a4==1))&&(a20==1))&&!(a5==1)))&&(a15==1))&&(a12==11))&&!(a6==1))){ + a18 = 1; + a22 = 1; + a3 = 5; + a15 = 0; + a0 = 1; + a12 = 10; + a4 = 0; + return -1; + } else if((((((a4==1)&&((!(a27==1)&&(((a20==1)&&((input==3)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))))&&(a12==9)))&&!(a0==1)))&&(a5==1))&&(a15==1))&&(a6==1))){ + a18 = 0; + a0 = 1; + a5 = 0; + a12 = 8; + a22 = 1; + a3 = 8; + a4 = 0; + return -1; + } else if(((!(a0==1)&&(((((((a12==12)&&((a27==1)&&((!(a22==1)&&(input==4))&&(a3==5))))&&(a20==1))&&(a5==1))&&!(a18==1))&&!(a6==1))&&!(a4==1)))&&(a15==1))){ + a0 = 1; + a12 = 10; + a3 = 6; + a4 = 1; + a15 = 0; + return -1; + } else if(((((((((((a4==1)&&((((a18==1)||!(a18==1))&&(input==2))&&(a22==1)))&&(a0==1))&&!(a15==1))&&(a20==1))&&(a12==12))&&(a6==1))&&(a5==1))&&(a3==4))&&(a27==1))){ + a6 = 0; + a18 = 0; + a4 = 0; + return 26; + } else if((!(a15==1)&&(((a12==8)&&((a27==1)&&(!(a6==1)&&((a0==1)&&((!(a4==1)&&(((((a22==1)&&(a18==1))&&(a3==8))||((((a18==1)&&!(a22==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7))))&&(input==1)))&&!(a5==1))))))&&(a20==1)))){ + if((a5==1)){ + a0 = 0; + a22 = 1; + a3 = 6; + a15 = 1; + a12 = 10; + a18 = 0; + }else{ + a3 = 6; + a6 = 1; + a18 = 1; + a22 = 1; + a12 = 11; + a15 = 1; + } + return 21; + } else if(((a12==9)&&(((a4==1)&&((a5==1)&&(!(a15==1)&&(((a0==1)&&((input==5)&&((((a6==1)&&((a3==8)&&(!(a22==1)&&(a18==1))))||(((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1)))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4))))))&&(a20==1)))))&&(a27==1)))){ + a6 = 1; + a5 = 0; + a22 = 0; + a3 = 6; + a18 = 1; + a12 = 12; + a4 = 0; + return 21; + } else if(((!(a15==1)&&((a20==1)&&(((((a12==9)&&((((input==2)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a0==1))&&(a6==1)))&&(a4==1))&&!(a5==1))&&(a3==8))))&&!(a27==1))){ + if((a27==1)){ + a0 = 1; + a15 = 1; + a22 = 0; + a6 = 0; + a3 = 7; + a4 = 0; + a5 = 1; + a18 = 1; + }else{ + a5 = 1; + a15 = 1; + a22 = 0; + a27 = 1; + a4 = 0; + a18 = 0; + a12 = 8; + a0 = 1; + } + return -1; + } else if(((a20==1)&&(((a6==1)&&(!(a18==1)&&((a12==9)&&((!(a5==1)&&((a0==1)&&((a3==8)&&((!(a15==1)&&(input==3))&&!(a22==1)))))&&!(a27==1)))))&&!(a4==1)))){ + a15 = 1; + a4 = 1; + a3 = 4; + a27 = 1; + a5 = 1; + a22 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if((((a27==1)&&(((a5==1)&&(((!(a6==1)&&(!(a0==1)&&((input==2)&&((((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==7))))))&&(a20==1))&&!(a4==1)))&&(a12==10)))&&!(a15==1))){ + a0 = 1; + a22 = 0; + a27 = 0; + a4 = 1; + a3 = 6; + a18 = 0; + return 26; + } else if((((a12==12)&&(!(a27==1)&&((a20==1)&&(((((a3==6)&&(!(a6==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a22==1))))&&(a15==1))&&(a4==1))&&(a0==1)))))&&(a5==1))){ + a4 = 0; + a18 = 1; + a3 = 5; + a22 = 0; + a6 = 1; + a12 = 9; + return -1; + } else if((((a3==6)&&((a0==1)&&((a27==1)&&((((((a4==1)&&((a20==1)&&((a6==1)&&(input==1))))&&!(a18==1))&&(a5==1))&&!(a15==1))&&!(a22==1)))))&&(a12==10))){ + a12 = 9; + a3 = 8; + a5 = 0; + a27 = 0; + a18 = 1; + a22 = 1; + return 24; + } else if((((a0==1)&&((a20==1)&&((!(a5==1)&&((((a4==1)&&(((input==5)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a3==5)))&&!(a6==1))&&!(a27==1)))&&(a12==12))))&&!(a15==1))){ + a5 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + return 21; + } else if((((!(a6==1)&&(!(a5==1)&&(((!(a0==1)&&((((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))||((a3==6)&&((a22==1)&&!(a18==1))))&&(input==3))&&(a4==1)))&&!(a15==1))&&(a27==1))))&&(a20==1))&&(a12==12))){ + if((a15==1)){ + a3 = 4; + a6 = 1; + a4 = 0; + a12 = 8; + a22 = 0; + a18 = 0; + }else{ + a18 = 0; + a4 = 0; + a3 = 4; + a6 = 1; + a15 = 1; + a22 = 0; + a0 = 1; + a5 = 1; + a12 = 8; + } + return -1; + } else if(((((((a3==4)&&((((((input==1)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a27==1))&&!(a5==1))&&(a20==1))&&(a4==1)))&&(a12==9))&&(a6==1))&&!(a15==1))&&(a0==1))){ + a18 = 0; + a6 = 0; + a3 = 5; + a22 = 1; + a12 = 11; + a4 = 0; + a5 = 1; + return 26; + } else if(((!(a6==1)&&((((((((a20==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==4)))&&(a15==1))&&(a3==6))&&(a27==1))&&!(a4==1))&&(a12==10))&&!(a5==1)))&&!(a0==1))){ + a0 = 1; + a12 = 11; + a5 = 1; + a15 = 0; + a18 = 0; + a22 = 1; + a4 = 1; + return -1; + } else if((((!(a27==1)&&(((((a20==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1))&&!(a6==1))&&(a5==1)))&&(a4==1))&&!(a0==1))&&(a3==8)))&&(a12==8))&&!(a15==1))){ + if((a22==1)){ + a0 = 1; + a15 = 1; + a3 = 5; + a22 = 0; + a18 = 1; + a6 = 1; + a4 = 0; + a27 = 1; + }else{ + a27 = 1; + a22 = 1; + a0 = 1; + a6 = 1; + a3 = 4; + a18 = 0; + a15 = 1; + } + return -1; + } else if(((a12==8)&&(((a15==1)&&((!(a0==1)&&((a6==1)&&(!(a27==1)&&((a3==6)&&((a4==1)&&((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))))&&!(a5==1)))&&(a20==1)))){ + if((a22==1)){ + a18 = 0; + a0 = 1; + a22 = 0; + a27 = 1; + a3 = 7; + a5 = 1; + }else{ + a18 = 0; + a5 = 1; + a27 = 1; + a0 = 1; + a22 = 0; + a3 = 5; + } + return 26; + } else if((((((a5==1)&&(((!(a15==1)&&(((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4))))&&(input==4)))&&!(a4==1))&&!(a0==1)))&&(a12==8))&&(a27==1))&&(a20==1))){ + a22 = 0; + a3 = 8; + a18 = 1; + a0 = 1; + a12 = 11; + a6 = 0; + return -1; + } else if((!(a15==1)&&((((((a5==1)&&((a20==1)&&(((input==5)&&(((a3==6)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))))&&!(a27==1))))&&(a12==9))&&!(a0==1))&&(a4==1))&&(a6==1)))){ + a12 = 8; + a3 = 6; + a0 = 1; + a15 = 1; + a27 = 1; + a22 = 1; + a6 = 0; + a18 = 1; + return 26; + } else if(((a4==1)&&(((a12==8)&&((a0==1)&&(((a27==1)&&(!(a6==1)&&((((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==3))&&(a3==4))&&!(a5==1))))&&(a20==1))))&&(a15==1)))){ + a22 = 1; + a6 = 1; + a18 = 1; + a5 = 1; + return -1; + } else if((((a20==1)&&(((((a12==11)&&(((!(a0==1)&&(((a3==8)&&(input==3))&&(a22==1)))&&(a27==1))&&(a6==1)))&&(a15==1))&&(a18==1))&&(a4==1)))&&(a5==1))){ + a4 = 0; + a18 = 0; + a3 = 4; + a15 = 0; + a22 = 0; + a0 = 1; + a6 = 0; + return 26; + } else if((!(a6==1)&&((((((a22==1)&&(((((a4==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a12==11))&&(a3==5))&&!(a27==1)))&&!(a15==1))&&!(a5==1))&&(a20==1))&&!(a0==1)))){ + a3 = 6; + a22 = 0; + a18 = 1; + a12 = 12; + a0 = 1; + a27 = 1; + a6 = 1; + return -1; + } else if((((((((((a4==1)&&((a27==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==4))))&&!(a5==1))&&!(a15==1))&&!(a6==1))&&(a20==1))&&(a3==8))&&!(a0==1))&&(a12==11))){ + a18 = 0; + a0 = 1; + a15 = 1; + a3 = 5; + a22 = 1; + a6 = 1; + a5 = 1; + a12 = 12; + return -1; + } else if((((a0==1)&&(((a27==1)&&(!(a6==1)&&(((a15==1)&&((a4==1)&&((input==5)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5))))))&&(a12==12))))&&(a5==1)))&&(a20==1))){ + a22 = 0; + a18 = 1; + a3 = 5; + a27 = 0; + a6 = 1; + return 21; + } else if(((a20==1)&&((!(a5==1)&&((a12==10)&&((a4==1)&&(((((a3==5)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==4)))&&!(a0==1))&&!(a27==1))&&!(a6==1)))))&&(a15==1)))){ + a18 = 1; + a27 = 1; + a6 = 1; + a3 = 7; + a22 = 0; + a5 = 1; + return -1; + } else if((!(a27==1)&&(((!(a15==1)&&(!(a0==1)&&(((a3==8)&&((((input==1)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a20==1))&&(a12==8)))&&(a4==1))))&&(a6==1))&&!(a5==1)))){ + if((a27==1)){ + a18 = 1; + a22 = 1; + a0 = 1; + a3 = 4; + }else{ + a27 = 1; + a18 = 1; + a12 = 9; + a4 = 0; + a5 = 1; + a22 = 1; + a3 = 7; + } + return -1; + } else if(((!(a6==1)&&((!(a15==1)&&(((!(a4==1)&&(!(a5==1)&&(((a22==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a3==7))))&&(a0==1))&&(a20==1)))&&(a12==10)))&&!(a27==1))){ + a4 = 1; + a27 = 1; + a15 = 1; + a18 = 1; + a12 = 8; + a5 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if(((((((((((((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==3))&&(a6==1))&&!(a0==1))&&(a27==1))&&(a15==1))&&!(a4==1))&&(a12==12))&&(a20==1))&&!(a5==1))){ + a5 = 1; + a22 = 0; + a3 = 4; + a12 = 8; + a4 = 1; + a18 = 1; + a6 = 0; + a0 = 1; + return -1; + } else if(((((((a4==1)&&(!(a0==1)&&((((input==5)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==8))))&&(a20==1))&&(a12==9))))&&(a15==1))&&(a5==1))&&(a6==1))&&(a27==1))){ + a22 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + a0 = 1; + return -1; + } else if((!(a0==1)&&((!(a27==1)&&(!(a5==1)&&(((a22==1)&&((a18==1)&&(!(a4==1)&&((((a15==1)&&(input==5))&&(a12==10))&&(a20==1)))))&&(a3==7))))&&(a6==1)))){ + a4 = 1; + a12 = 11; + a3 = 4; + a27 = 1; + a5 = 1; + return -1; + } else if(((a12==11)&&((((a3==5)&&(!(a6==1)&&((a20==1)&&((((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==4))&&(a27==1))&&!(a4==1))&&!(a0==1)))))&&(a15==1))&&(a5==1)))){ + a3 = 4; + a4 = 1; + a6 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + a0 = 1; + return -1; + } else if(((a20==1)&&((!(a15==1)&&(((a22==1)&&((a5==1)&&(((a3==5)&&(((a4==1)&&(!(a18==1)&&(input==1)))&&!(a0==1)))&&(a6==1))))&&(a12==11)))&&(a27==1)))){ + a22 = 0; + a6 = 0; + a27 = 0; + a5 = 0; + a0 = 1; + a3 = 7; + return -1; + } else if(((((a12==10)&&((a20==1)&&((!(a18==1)&&(!(a6==1)&&(((((input==2)&&!(a15==1))&&!(a0==1))&&(a27==1))&&!(a4==1))))&&!(a5==1))))&&!(a22==1))&&(a3==4))){ + a18 = 1; + a22 = 1; + a6 = 1; + a5 = 1; + a0 = 1; + a3 = 6; + return -1; + } return calculate_output22(input); + } + + int calculate_output22(int input) { + if((!(a27==1)&&((a15==1)&&(((((((a4==1)&&((a0==1)&&(((input==3)&&(a20==1))&&(a12==11))))&&(a3==7))&&(a6==1))&&(a18==1))&&(a22==1))&&(a5==1))))){ + a27 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((((a20==1)&&((!(a0==1)&&((!(a5==1)&&(((a12==12)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==2)))&&!(a6==1)))&&(a27==1)))&&(a15==1)))&&!(a4==1))&&(a3==7))){ + a4 = 1; + a0 = 1; + a12 = 8; + a5 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if((!(a15==1)&&((!(a0==1)&&(!(a6==1)&&(((((((!(a22==1)&&(input==2))&&(a27==1))&&!(a18==1))&&(a3==8))&&(a5==1))&&(a12==10))&&!(a4==1))))&&(a20==1)))){ + a12 = 12; + a3 = 5; + a15 = 1; + return -1; + } else if((!(a5==1)&&((a0==1)&&((!(a27==1)&&((a12==11)&&((a6==1)&&((!(a15==1)&&((a3==4)&&((a20==1)&&((input==4)&&((a18==1)||!(a18==1))))))&&(a22==1)))))&&!(a4==1))))){ + a22 = 0; + a18 = 1; + a3 = 6; + a4 = 1; + a15 = 1; + return -1; + } else if(((((a27==1)&&((a20==1)&&((a15==1)&&(!(a6==1)&&(!(a0==1)&&(((((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==4))&&!(a4==1)))))))&&(a12==9))&&!(a5==1))){ + a3 = 4; + a0 = 1; + a4 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + a5 = 1; + a6 = 1; + return -1; + } else if(((a0==1)&&(!(a22==1)&&(((((((((a12==9)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a20==1))&&(a15==1))&&!(a4==1))&&(a6==1))&&!(a27==1))&&(a3==5))&&(a5==1))))){ + if((a27==1)){ + a27 = 1; + a15 = 0; + a3 = 7; + a18 = 1; + a0 = 0; + a12 = 11; + }else{ + a27 = 1; + a0 = 0; + a22 = 1; + a18 = 1; + a4 = 1; + a3 = 7; + a6 = 0; + a12 = 8; + a15 = 0; + } + return 24; + } else if(((((a4==1)&&((((a3==8)&&(((a27==1)&&(!(a5==1)&&((!(a22==1)&&(input==6))&&(a12==10))))&&!(a6==1)))&&!(a15==1))&&!(a18==1)))&&!(a0==1))&&(a20==1))){ + a0 = 1; + a15 = 1; + a12 = 11; + a3 = 4; + a5 = 1; + a4 = 0; + return 26; + } else if((((a15==1)&&(((a3==7)&&((a12==11)&&(!(a5==1)&&(!(a6==1)&&(((a22==1)&&((a0==1)&&(((a18==1)||!(a18==1))&&(input==4))))&&!(a27==1))))))&&(a4==1)))&&(a20==1))){ + a18 = 1; + a12 = 8; + a5 = 1; + a3 = 8; + a15 = 0; + return -1; + } else if((!(a0==1)&&((a6==1)&&((!(a5==1)&&((a12==10)&&((a20==1)&&(((a4==1)&&((a3==7)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==5))))&&!(a15==1)))))&&(a27==1))))){ + a0 = 1; + a18 = 0; + a4 = 0; + a5 = 1; + a22 = 0; + a3 = 4; + a6 = 0; + a12 = 11; + return -1; + } else if((((a12==12)&&((a3==8)&&(((a18==1)&&(((a27==1)&&((((a20==1)&&((input==1)&&!(a4==1)))&&(a22==1))&&(a5==1)))&&(a0==1)))&&!(a6==1))))&&!(a15==1))){ + a4 = 1; + a6 = 1; + a15 = 1; + a3 = 5; + return 21; + } else if(((a22==1)&&((!(a27==1)&&((a12==10)&&((((a6==1)&&((((a15==1)&&(!(a0==1)&&(input==3)))&&!(a18==1))&&(a4==1)))&&(a5==1))&&(a20==1))))&&(a3==4)))){ + a0 = 1; + a22 = 0; + a18 = 1; + a27 = 1; + a3 = 5; + a12 = 8; + return -1; + } else if(((!(a5==1)&&((a0==1)&&((a12==9)&&(((a27==1)&&((a20==1)&&((a3==5)&&((((input==4)&&(a18==1))&&!(a4==1))&&!(a15==1)))))&&!(a6==1)))))&&(a22==1))){ + a4 = 1; + a15 = 1; + a3 = 4; + a12 = 10; + a5 = 1; + return 21; + } else if(((a18==1)&&((a5==1)&&((a12==10)&&(((a22==1)&&(!(a4==1)&&((a0==1)&&(((a3==4)&&(!(a27==1)&&((input==1)&&(a6==1))))&&(a20==1)))))&&(a15==1)))))){ + a15 = 0; + a3 = 7; + a5 = 0; + a12 = 12; + return 21; + } else if(((a18==1)&&(((((!(a15==1)&&(((a5==1)&&((!(a27==1)&&((input==6)&&(a20==1)))&&!(a6==1)))&&(a12==9)))&&!(a4==1))&&!(a0==1))&&(a3==7))&&(a22==1)))){ + a27 = 1; + a12 = 8; + a4 = 1; + a0 = 1; + a15 = 1; + a22 = 0; + a3 = 5; + return -1; + } else if(((a20==1)&&(((a12==9)&&((a15==1)&&(((a5==1)&&((((a0==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3)))&&!(a27==1))&&!(a6==1)))&&!(a4==1))))&&(a3==4)))){ + a6 = 1; + a27 = 1; + a12 = 8; + a18 = 1; + a4 = 1; + a22 = 1; + return -1; + } else if((((a0==1)&&((!(a27==1)&&(!(a5==1)&&(!(a4==1)&&((a12==9)&&(((input==6)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a18==1)&&(a22==1))))||((a3==6)&&((a22==1)&&!(a18==1)))))&&(a20==1))))))&&(a15==1)))&&!(a6==1))){ + a3 = 4; + a12 = 8; + a18 = 1; + a5 = 1; + a4 = 1; + a22 = 1; + a6 = 1; + a27 = 1; + return -1; + } else if(((((((!(a22==1)&&((((a6==1)&&((a20==1)&&(!(a5==1)&&(input==4))))&&(a12==9))&&(a15==1)))&&(a27==1))&&(a0==1))&&(a18==1))&&!(a4==1))&&(a3==6))){ + a5 = 1; + a12 = 8; + a3 = 4; + a4 = 1; + a22 = 1; + return -1; + } else if((((((((!(a15==1)&&((input==3)&&(((((a3==8)&&(!(a22==1)&&(a18==1)))&&(a6==1))||(((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1)))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4))))))&&!(a5==1))&&(a27==1))&&(a20==1))&&!(a4==1))&&!(a0==1))&&(a12==8))){ + a22 = 1; + a6 = 1; + a5 = 1; + a0 = 1; + a4 = 1; + a18 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if((((a3==4)&&(!(a15==1)&&((!(a6==1)&&((((a22==1)&&((a27==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a4==1))))&&(a0==1))&&!(a5==1)))&&(a20==1))))&&(a12==10))){ + a5 = 1; + a27 = 0; + a18 = 1; + a3 = 7; + a22 = 0; + a4 = 0; + return 26; + } else if((((!(a0==1)&&((a27==1)&&(((a20==1)&&(!(a6==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==2))&&(a12==8))))&&!(a15==1))))&&!(a5==1))&&!(a4==1))){ + a18 = 0; + a27 = 0; + a22 = 1; + a3 = 5; + a15 = 1; + a0 = 1; + return 26; + } else if((((a3==7)&&(((a15==1)&&((!(a5==1)&&((((a18==1)&&((a20==1)&&((a27==1)&&(input==2))))&&(a12==8))&&!(a6==1)))&&!(a0==1)))&&(a4==1)))&&(a22==1))){ + a22 = 0; + a18 = 0; + a3 = 8; + return 21; + } else if((((((a27==1)&&(((((a3==6)&&(((input==2)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&!(a0==1)))&&(a12==11))&&(a15==1))&&!(a6==1)))&&(a20==1))&&(a5==1))&&(a4==1))){ + a12 = 10; + a4 = 0; + a18 = 0; + a5 = 0; + a0 = 1; + a22 = 1; + a3 = 5; + return 26; + } else if((((a12==9)&&(((a15==1)&&((a22==1)&&(((a4==1)&&(((((input==5)&&(a3==5))&&(a6==1))&&(a18==1))&&(a5==1)))&&!(a0==1))))&&!(a27==1)))&&(a20==1))){ + if((a18==1)){ + a0 = 1; + a3 = 7; + a22 = 0; + a18 = 0; + a15 = 0; + }else{ + a18 = 0; + a3 = 4; + a6 = 0; + } + return -1; + } else if((((((((a4==1)&&((((a3==7)&&(((input==5)&&((a18==1)||!(a18==1)))&&!(a22==1)))&&(a0==1))&&(a20==1)))&&(a12==12))&&(a6==1))&&(a27==1))&&!(a5==1))&&!(a15==1))){ + a3 = 6; + a4 = 0; + a18 = 1; + return 21; + } else if(((((!(a15==1)&&((a5==1)&&(((a12==10)&&((a0==1)&&(!(a27==1)&&((a3==7)&&(((a18==1)||!(a18==1))&&(input==3))))))&&!(a6==1))))&&(a4==1))&&(a20==1))&&!(a22==1))){ + a15 = 1; + a3 = 6; + a27 = 1; + a0 = 0; + a22 = 1; + a5 = 0; + a6 = 1; + a18 = 1; + return -1; + } else if((((a15==1)&&(!(a5==1)&&((!(a18==1)&&((a4==1)&&((a3==7)&&(((((input==4)&&(a22==1))&&(a27==1))&&!(a6==1))&&!(a0==1)))))&&(a20==1))))&&(a12==9))){ + a0 = 1; + a6 = 1; + a12 = 10; + a18 = 1; + a3 = 6; + return -1; + } else if(((((!(a0==1)&&(!(a27==1)&&(!(a22==1)&&(((a20==1)&&((a18==1)&&(((a3==7)&&(input==5))&&(a5==1))))&&(a12==11)))))&&!(a4==1))&&(a6==1))&&(a15==1))){ + if((a3==7)){ + a27 = 1; + a3 = 4; + a4 = 1; + a6 = 0; + }else{ + a12 = 12; + a18 = 0; + a27 = 1; + a3 = 6; + a4 = 1; + } + return -1; + } else if(((a12==8)&&((a6==1)&&(!(a27==1)&&((((a20==1)&&((a0==1)&&(!(a15==1)&&((a3==8)&&((a5==1)&&((input==6)&&!(a4==1)))))))&&(a22==1))&&(a18==1)))))){ + a15 = 1; + a5 = 0; + a22 = 0; + a4 = 1; + a3 = 4; + a12 = 10; + a27 = 1; + return -1; + } else if(((((a27==1)&&(((!(a5==1)&&((((input==6)&&(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8))))&&!(a4==1))&&(a12==11)))&&!(a15==1))&&(a20==1)))&&(a6==1))&&(a0==1))){ + a4 = 1; + a15 = 1; + a18 = 1; + a12 = 8; + a5 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((((a4==1)&&((a5==1)&&(((((a15==1)&&(!(a0==1)&&((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&(a12==12))&&!(a6==1))&&(a27==1))))&&(a3==8))&&(a20==1))){ + a22 = 1; + a12 = 8; + a18 = 1; + a0 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if((((a3==6)&&((a12==9)&&(!(a22==1)&&(((a6==1)&&(!(a15==1)&&((a20==1)&&(((a5==1)&&(!(a27==1)&&(input==3)))&&(a4==1)))))&&!(a0==1)))))&&(a18==1))){ + a3 = 4; + a15 = 1; + a12 = 8; + a0 = 1; + a22 = 1; + a27 = 1; + a18 = 0; + return 21; + } else if(((a4==1)&&(!(a15==1)&&(!(a0==1)&&((((a22==1)&&(((a5==1)&&(((a12==11)&&((input==3)&&((a18==1)||!(a18==1))))&&(a20==1)))&&(a6==1)))&&(a3==6))&&(a27==1)))))){ + a12 = 8; + a3 = 4; + a18 = 1; + a0 = 1; + a15 = 1; + return -1; + } else if((((!(a6==1)&&((!(a15==1)&&((((((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==6))&&!(a27==1))&&(a4==1))&&(a5==1))&&(a3==4)))&&(a20==1)))&&(a12==9))&&!(a0==1))){ + a12 = 8; + a0 = 1; + a15 = 1; + a6 = 1; + a27 = 1; + a22 = 1; + a3 = 8; + a18 = 0; + return 26; + } else if(((!(a6==1)&&((!(a5==1)&&((a3==5)&&((a12==11)&&(((((input==2)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a15==1))&&!(a0==1))&&(a4==1)))))&&!(a27==1)))&&(a20==1))){ + a4 = 0; + a3 = 4; + a6 = 1; + a22 = 0; + a15 = 0; + a18 = 1; + return 24; + } else if((((a12==9)&&(((((a20==1)&&(!(a15==1)&&(((((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4))))||(((!(a18==1)&&(a22==1))&&(a3==4))&&!(a6==1)))&&(input==4))))&&(a5==1))&&(a0==1))&&!(a4==1)))&&(a27==1))){ + a4 = 1; + a18 = 0; + a5 = 0; + a3 = 6; + a12 = 10; + a22 = 1; + a6 = 1; + return 26; + } else if(((!(a6==1)&&(!(a4==1)&&(((((((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==2))&&(a20==1))&&!(a27==1))&&(a0==1))&&(a12==12))&&(a15==1))))&&(a5==1))){ + a22 = 0; + a3 = 7; + a12 = 11; + a18 = 1; + a4 = 1; + a27 = 1; + a5 = 0; + return 26; + } else if(((a20==1)&&(((((a4==1)&&((a5==1)&&(!(a6==1)&&(((input==2)&&(((!(a18==1)&&(a22==1))&&(a3==6))||(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))))&&(a0==1)))))&&(a12==10))&&!(a27==1))&&!(a15==1)))){ + a22 = 1; + a18 = 1; + a12 = 8; + a15 = 1; + a3 = 4; + a27 = 1; + a6 = 1; + return -1; + } else if((!(a0==1)&&((a15==1)&&((a20==1)&&((a6==1)&&(((a3==4)&&((!(a4==1)&&((a27==1)&&((input==2)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))))&&(a5==1)))&&(a12==8))))))){ + a12 = 10; + a4 = 1; + a22 = 1; + a0 = 1; + a18 = 0; + return 26; + } else if(((a15==1)&&((a12==9)&&((a27==1)&&(((a22==1)&&((a5==1)&&(((a20==1)&&((((input==6)&&(a0==1))&&(a3==5))&&(a6==1)))&&!(a4==1))))&&!(a18==1)))))){ + a6 = 0; + a3 = 6; + a15 = 0; + a18 = 1; + a12 = 12; + return 21; + } else if(((a0==1)&&((a6==1)&&(!(a5==1)&&((a20==1)&&((((!(a27==1)&&(!(a15==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5))))&&(a3==6))&&(a12==9))&&!(a4==1))))))){ + a27 = 1; + a5 = 1; + a15 = 1; + a6 = 0; + a12 = 10; + a3 = 5; + a22 = 0; + a18 = 1; + return 26; + } else if(((!(a4==1)&&(((a20==1)&&(((((((((a22==1)&&(a18==1))&&(a3==5))||(((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a18==1)&&!(a22==1)))))&&(input==1))&&!(a27==1))&&(a6==1))&&(a15==1))&&(a12==8)))&&!(a5==1)))&&!(a0==1))){ + a3 = 7; + a22 = 1; + a6 = 0; + a12 = 10; + a18 = 1; + return 21; + } else if(((a20==1)&&(!(a15==1)&&(!(a4==1)&&((((((a12==10)&&((input==1)&&((((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a22==1)&&!(a18==1))))||((a3==6)&&((a22==1)&&(a18==1))))))&&(a6==1))&&(a5==1))&&(a0==1))&&!(a27==1)))))){ + a15 = 1; + a27 = 1; + a4 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + return -1; + } else if((((a0==1)&&(((!(a27==1)&&(!(a4==1)&&((((input==5)&&((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6)))||((a3==6)&&(!(a18==1)&&(a22==1)))))&&(a15==1))&&(a12==9))))&&(a20==1))&&!(a5==1)))&&!(a6==1))){ + a15 = 0; + a18 = 1; + a3 = 5; + a22 = 0; + a12 = 11; + a27 = 1; + return 21; + } else if(((!(a27==1)&&(((((a4==1)&&((a12==8)&&(!(a0==1)&&((a22==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a5==1))))))&&(a20==1))&&(a3==7))&&(a15==1)))&&!(a6==1))){ + a18 = 1; + a15 = 0; + a4 = 0; + a5 = 0; + return -1; + } else if((((((!(a15==1)&&((a5==1)&&((((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==2))&&!(a0==1))&&(a12==9))&&(a3==4))))&&(a20==1))&&(a27==1))&&!(a4==1))&&!(a6==1))){ + a3 = 8; + a0 = 1; + a5 = 0; + a18 = 0; + a12 = 10; + a6 = 1; + a22 = 1; + return 21; + } else if((((!(a27==1)&&(((((a3==7)&&(((!(a5==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a4==1))&&(a22==1)))&&(a12==11))&&!(a6==1))&&!(a0==1)))&&(a20==1))&&(a15==1))){ + a0 = 1; + a18 = 1; + a4 = 0; + a5 = 1; + a22 = 0; + a12 = 8; + a27 = 1; + a3 = 5; + a6 = 1; + return 21; + } else if(((!(a27==1)&&((a20==1)&&((((!(a4==1)&&((a5==1)&&((((a3==5)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4))))&&(input==6))))&&(a6==1))&&(a12==9))&&(a0==1))))&&(a15==1))){ + a3 = 6; + a15 = 0; + a4 = 1; + a6 = 0; + a18 = 1; + a22 = 0; + return 21; + } else if(((a5==1)&&(!(a6==1)&&(!(a15==1)&&(((((!(a0==1)&&((a4==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==3))))&&(a20==1))&&!(a27==1))&&(a3==7))&&(a12==9)))))){ + if((a22==1)){ + a27 = 1; + a6 = 1; + a18 = 0; + a3 = 8; + a22 = 1; + a15 = 1; + a4 = 0; + a0 = 1; + a12 = 8; + }else{ + a0 = 1; + a18 = 0; + a6 = 1; + a22 = 0; + a5 = 0; + a15 = 1; + } + return -1; + } else if(((a4==1)&&(!(a5==1)&&(((a3==7)&&((!(a27==1)&&((((a20==1)&&(((input==2)&&!(a15==1))&&(a6==1)))&&!(a0==1))&&!(a18==1)))&&(a12==9)))&&!(a22==1))))){ + a0 = 1; + a15 = 1; + a12 = 11; + a6 = 0; + a3 = 6; + a22 = 1; + return -1; + } else if(((!(a5==1)&&((((a6==1)&&(((!(a0==1)&&(!(a22==1)&&(!(a4==1)&&(((a18==1)||!(a18==1))&&(input==5)))))&&!(a27==1))&&(a12==10)))&&(a20==1))&&(a3==7)))&&(a15==1))){ + a22 = 1; + a6 = 0; + a18 = 1; + a0 = 1; + a15 = 0; + a12 = 12; + a3 = 4; + return 21; + } else if(((((a22==1)&&((!(a0==1)&&(!(a15==1)&&(((a5==1)&&((a20==1)&&((((a18==1)||!(a18==1))&&(input==5))&&(a12==10))))&&(a27==1))))&&(a3==8)))&&!(a4==1))&&!(a6==1))){ + a15 = 1; + a12 = 12; + a22 = 0; + a0 = 1; + a6 = 1; + a18 = 1; + return 26; + } else if((((a15==1)&&((((a20==1)&&(((a3==8)&&((!(a27==1)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==5)))&&(a4==1)))&&(a0==1)))&&(a12==8))&&!(a6==1)))&&!(a5==1))){ + a22 = 0; + a15 = 0; + a4 = 0; + a18 = 0; + a5 = 1; + a3 = 6; + return -1; + } else if(((((((a0==1)&&((a3==6)&&(((a20==1)&&(!(a15==1)&&((input==4)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))))&&!(a4==1))))&&!(a6==1))&&(a5==1))&&(a12==12))&&(a27==1))){ + a15 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + a4 = 1; + a6 = 1; + return -1; + } else if((!(a0==1)&&(!(a4==1)&&(!(a5==1)&&(!(a15==1)&&((a20==1)&&((!(a27==1)&&((a6==1)&&((a22==1)&&((a12==11)&&(!(a18==1)&&(input==3))))))&&(a3==8)))))))){ + a27 = 1; + a5 = 1; + a12 = 8; + a4 = 1; + a6 = 0; + a3 = 6; + a0 = 1; + a15 = 1; + a18 = 1; + return 26; + } else if((((a20==1)&&((a5==1)&&(!(a4==1)&&(!(a15==1)&&((a12==11)&&(!(a27==1)&&(((((a3==4)&&(!(a18==1)&&(a22==1)))&&!(a6==1))||(((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1))))&&(input==6))))))))&&(a0==1))){ + a18 = 0; + a12 = 8; + a15 = 1; + a3 = 7; + a5 = 0; + a6 = 0; + a22 = 0; + return -1; + } else if(((!(a27==1)&&(!(a5==1)&&(((((a3==7)&&(((a22==1)&&((a15==1)&&((a20==1)&&(input==6))))&&!(a0==1)))&&(a6==1))&&!(a18==1))&&!(a4==1))))&&(a12==10))){ + a3 = 4; + a4 = 1; + a22 = 0; + a27 = 1; + a5 = 1; + a6 = 0; + a12 = 9; + return 26; + } else if((!(a5==1)&&(((((a12==9)&&((a6==1)&&(((a4==1)&&(((((a22==1)&&!(a18==1))&&(a3==7))||(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7))))&&(input==2)))&&(a20==1))))&&!(a15==1))&&!(a0==1))&&(a27==1)))){ + a0 = 1; + a22 = 1; + a3 = 4; + a5 = 1; + a15 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if((((!(a0==1)&&(!(a6==1)&&((a3==5)&&(((a27==1)&&(((!(a22==1)&&((input==4)&&(a5==1)))&&(a12==9))&&(a4==1)))&&(a15==1)))))&&(a20==1))&&!(a18==1))){ + a12 = 11; + a15 = 0; + a6 = 1; + a0 = 1; + a22 = 1; + a3 = 7; + return 24; + } else if(((((((!(a0==1)&&(!(a15==1)&&((!(a6==1)&&((a3==8)&&((input==1)&&!(a27==1))))&&(a12==11))))&&(a5==1))&&(a4==1))&&!(a22==1))&&(a18==1))&&(a20==1))){ + a18 = 0; + a5 = 0; + a4 = 0; + a3 = 4; + a27 = 1; + a12 = 12; + return -1; + } else if((((a15==1)&&((a12==11)&&((a0==1)&&(!(a6==1)&&(!(a4==1)&&((((input==2)&&(((a3==8)&&((a22==1)&&!(a18==1)))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a22==1)&&(a18==1))))))&&(a5==1))&&(a20==1)))))))&&!(a27==1))){ + a4 = 1; + a18 = 1; + a6 = 1; + a22 = 1; + a27 = 1; + a3 = 6; + return 21; + } else if(((!(a6==1)&&((!(a27==1)&&((a20==1)&&((a4==1)&&((!(a15==1)&&((a3==8)&&((a12==10)&&(((a18==1)||!(a18==1))&&(input==1)))))&&(a5==1)))))&&(a22==1)))&&!(a0==1))){ + a0 = 1; + a18 = 0; + a27 = 1; + a3 = 4; + a6 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if(((a20==1)&&((a18==1)&&((((a27==1)&&(((((a4==1)&&(!(a6==1)&&((a3==6)&&(input==4))))&&(a12==10))&&(a5==1))&&!(a0==1)))&&!(a15==1))&&(a22==1))))){ + a18 = 0; + a0 = 1; + a3 = 5; + a5 = 0; + a6 = 1; + a12 = 8; + a4 = 0; + return 24; + } else if((!(a15==1)&&(((((((((input==6)&&(((a3==6)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))))&&(a5==1))&&!(a27==1))&&(a4==1))&&(a12==9))&&(a6==1))&&(a20==1))&&!(a0==1)))){ + a6 = 0; + a27 = 1; + a0 = 1; + a15 = 1; + a12 = 8; + a18 = 0; + a3 = 5; + a22 = 1; + return -1; + } else if(((!(a5==1)&&((!(a4==1)&&((((!(a15==1)&&((input==3)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5)))))&&!(a0==1))&&!(a27==1))&&(a6==1)))&&(a20==1)))&&(a12==11))){ + if((a22==1)){ + a15 = 1; + a22 = 0; + a4 = 1; + a18 = 1; + a6 = 0; + a12 = 8; + a27 = 1; + a3 = 7; + a0 = 1; + a5 = 1; + }else{ + a3 = 7; + a4 = 1; + a27 = 1; + a5 = 1; + a12 = 10; + a22 = 0; + a18 = 0; + } + return -1; + } else if((((a27==1)&&((a20==1)&&((a4==1)&&(!(a15==1)&&((a0==1)&&((!(a5==1)&&((input==4)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==6)))))&&!(a6==1)))))))&&(a12==11))){ + if((a27==1)){ + a4 = 0; + a6 = 1; + a18 = 1; + a0 = 0; + a3 = 6; + a22 = 0; + }else{ + a18 = 0; + a3 = 8; + a12 = 10; + a22 = 1; + a5 = 1; + a15 = 1; + } + return -1; + } else if(((!(a18==1)&&(!(a5==1)&&(((a22==1)&&((((((!(a6==1)&&(input==3))&&!(a4==1))&&(a0==1))&&(a3==5))&&!(a27==1))&&(a20==1)))&&(a15==1))))&&(a12==8))){ + a3 = 4; + a4 = 1; + a6 = 1; + a18 = 1; + a27 = 1; + a5 = 1; + return -1; + } else if(((((!(a5==1)&&((a22==1)&&((((a20==1)&&(!(a27==1)&&(((input==1)&&!(a18==1))&&(a0==1))))&&(a4==1))&&(a15==1))))&&!(a6==1))&&(a3==6))&&(a12==8))){ + a3 = 4; + a27 = 1; + a5 = 1; + a18 = 1; + a6 = 1; + return -1; + } else if((((a5==1)&&(((a20==1)&&((a4==1)&&((((a0==1)&&(((!(a15==1)&&(input==1))&&(a12==8))&&(a18==1)))&&(a3==4))&&(a27==1))))&&!(a22==1)))&&(a6==1))){ + a22 = 1; + a15 = 1; + return -1; + } else if((((((a5==1)&&(!(a15==1)&&(!(a6==1)&&((((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==4))&&(a27==1))&&(a12==9)))))&&(a20==1))&&!(a0==1))&&(a4==1))){ + a0 = 1; + a3 = 7; + a22 = 1; + a5 = 0; + a27 = 0; + a15 = 1; + a18 = 0; + return -1; + } else if((((!(a15==1)&&(!(a22==1)&&((((!(a18==1)&&((a12==10)&&(!(a5==1)&&((input==3)&&(a3==7)))))&&!(a4==1))&&!(a0==1))&&(a6==1))))&&(a27==1))&&(a20==1))){ + a3 = 5; + a12 = 11; + a0 = 1; + a18 = 1; + return 21; + } else if((((a3==8)&&(!(a0==1)&&(!(a4==1)&&((a22==1)&&((a20==1)&&(!(a5==1)&&((!(a6==1)&&((a12==12)&&((input==2)&&((a18==1)||!(a18==1)))))&&(a27==1))))))))&&(a15==1))){ + if((a27==1)){ + a22 = 0; + a0 = 1; + a18 = 1; + a6 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + a4 = 1; + }else{ + a3 = 4; + a12 = 8; + a22 = 0; + a15 = 0; + a4 = 1; + a18 = 0; + a27 = 0; + } + return -1; + } else if((!(a4==1)&&(!(a18==1)&&(!(a6==1)&&(!(a22==1)&&(((a27==1)&&((!(a0==1)&&((a15==1)&&(((input==5)&&(a5==1))&&(a3==7))))&&(a20==1)))&&(a12==12))))))){ + a0 = 1; + a12 = 11; + a3 = 8; + a4 = 1; + return 26; + } else if(((((((((a4==1)&&(((((a18==1)&&(input==1))&&(a12==9))&&!(a27==1))&&(a3==5)))&&!(a22==1))&&!(a6==1))&&(a15==1))&&(a20==1))&&!(a0==1))&&!(a5==1))){ + a27 = 1; + a4 = 0; + a3 = 8; + a5 = 1; + a22 = 1; + a6 = 1; + a0 = 1; + a12 = 8; + return 21; + } else if((((!(a5==1)&&((a20==1)&&(((a27==1)&&((a22==1)&&((a6==1)&&(((((a18==1)||!(a18==1))&&(input==3))&&(a12==8))&&(a3==5)))))&&!(a0==1))))&&!(a15==1))&&(a4==1))){ + a5 = 1; + a4 = 0; + a27 = 0; + a0 = 1; + a12 = 11; + a18 = 1; + a3 = 6; + return 24; + } else if(((((a5==1)&&(!(a15==1)&&(!(a4==1)&&(!(a0==1)&&(((((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4))))&&(input==1))&&(a20==1))))))&&(a12==8))&&(a27==1))){ + a15 = 1; + a22 = 1; + a4 = 1; + a18 = 1; + a0 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if(((a20==1)&&((a4==1)&&((a6==1)&&((a0==1)&&((a27==1)&&(!(a5==1)&&(((a12==9)&&((input==2)&&((((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a22==1)&&!(a18==1))))||((a3==6)&&((a22==1)&&(a18==1))))))&&!(a15==1))))))))){ + a3 = 4; + a5 = 1; + a12 = 8; + a22 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if(((a27==1)&&(!(a4==1)&&((a20==1)&&((a0==1)&&((a12==10)&&((((a15==1)&&(((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==8)))||((a3==8)&&((a22==1)&&!(a18==1))))&&(input==4)))&&(a5==1))&&(a6==1)))))))){ + a18 = 1; + a22 = 1; + a4 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((((!(a4==1)&&((a15==1)&&(!(a5==1)&&(!(a27==1)&&((((((((a18==1)&&!(a22==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5)))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==5))&&(a12==10))&&!(a0==1))))))&&(a6==1))&&(a20==1))){ + a27 = 1; + a3 = 6; + a18 = 0; + a5 = 1; + a22 = 1; + a0 = 1; + a12 = 8; + return 24; + } else if(((a0==1)&&(!(a5==1)&&((((a27==1)&&(!(a15==1)&&((a20==1)&&(((input==6)&&((((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))||((a3==7)&&((a22==1)&&!(a18==1)))))&&(a4==1)))))&&(a6==1))&&(a12==11))))){ + a27 = 0; + a3 = 8; + a6 = 0; + a4 = 0; + a22 = 0; + a18 = 0; + a15 = 1; + return 21; + } else if((((((a0==1)&&((a12==8)&&(((!(a6==1)&&((a20==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1))))&&!(a4==1))&&(a3==5))))&&(a15==1))&&!(a5==1))&&(a27==1))){ + if((a5==1)){ + a18 = 0; + a12 = 11; + a0 = 0; + a22 = 1; + a6 = 1; + }else{ + a18 = 0; + a15 = 0; + a5 = 1; + a12 = 10; + a22 = 0; + } + return 21; + } else if((((((a27==1)&&((!(a4==1)&&((((a15==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==5)))&&(a3==6))&&!(a5==1)))&&(a6==1)))&&(a12==8))&&(a0==1))&&(a20==1))){ + if((a27==1)){ + a0 = 0; + a12 = 10; + a22 = 1; + a15 = 0; + a18 = 1; + }else{ + a18 = 0; + a4 = 1; + a12 = 10; + a15 = 0; + a22 = 1; + a5 = 1; + a3 = 4; + } + return 26; + } else if(((a20==1)&&(((((((!(a6==1)&&((((!(a22==1)&&!(a18==1))&&(a15==1))&&!(a4==1))&&(a3==8)))||((a6==1)&&(((((a22==1)&&(a18==1))&&!(a15==1))&&(a4==1))&&(a3==4))))&&(input==1))&&(a12==8))&&(a5==1))&&!(a0==1))&&!(a27==1)))){ + a12 = 11; + a0 = 1; + a3 = 4; + a6 = 1; + a22 = 1; + a15 = 0; + a4 = 1; + a5 = 0; + a18 = 0; + return 21; + } else if((!(a5==1)&&((a22==1)&&(!(a27==1)&&((a12==11)&&((((a20==1)&&(((a15==1)&&((!(a4==1)&&(input==1))&&(a6==1)))&&(a3==6)))&&(a18==1))&&!(a0==1))))))){ + a27 = 1; + a12 = 8; + a5 = 1; + a22 = 0; + a0 = 1; + a18 = 0; + a6 = 0; + a4 = 1; + return 26; + } else if(((!(a0==1)&&(((a3==8)&&((a27==1)&&((a12==11)&&((a20==1)&&(((a4==1)&&((a6==1)&&((input==6)&&(a18==1))))&&(a5==1))))))&&!(a22==1)))&&(a15==1))){ + a22 = 1; + a6 = 0; + a0 = 1; + a3 = 5; + a15 = 0; + return 21; + } else if(((((a20==1)&&(((a5==1)&&(!(a27==1)&&(((a0==1)&&(((a4==1)&&((input==3)&&((a18==1)||!(a18==1))))&&!(a6==1)))&&(a12==8))))&&(a3==7)))&&(a22==1))&&(a15==1))){ + a4 = 0; + a12 = 10; + a3 = 5; + a15 = 0; + a18 = 1; + a5 = 0; + return 24; + } else if(((((a15==1)&&((!(a6==1)&&((((((((a18==1)||!(a18==1))&&(input==4))&&(a12==12))&&!(a22==1))&&(a27==1))&&(a3==8))&&(a20==1)))&&(a0==1)))&&!(a4==1))&&(a5==1))){ + a3 = 6; + a6 = 1; + a27 = 0; + a18 = 0; + a22 = 1; + return 26; + } else if((((((a20==1)&&((a12==12)&&((a27==1)&&((((((input==6)&&(a22==1))&&(a18==1))&&!(a4==1))&&!(a6==1))&&(a5==1)))))&&(a3==6))&&(a15==1))&&(a0==1))){ + a18 = 0; + a6 = 1; + a12 = 11; + a3 = 4; + return -1; + } else if((((!(a5==1)&&((!(a0==1)&&(!(a4==1)&&(!(a27==1)&&((a6==1)&&((input==3)&&((((a22==1)&&(a18==1))&&(a3==8))||(((!(a22==1)&&(a18==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7)))))))))&&(a20==1)))&&(a12==8))&&(a15==1))){ + if((a6==1)){ + a18 = 1; + a3 = 7; + a5 = 1; + a0 = 1; + a22 = 0; + a27 = 1; + }else{ + a22 = 0; + a18 = 0; + a12 = 10; + a3 = 8; + a6 = 0; + } + return -1; + } else if((((a15==1)&&(!(a6==1)&&((a20==1)&&((a22==1)&&(((a5==1)&&((((a18==1)&&((a3==7)&&(input==4)))&&(a4==1))&&(a12==11)))&&(a0==1))))))&&(a27==1))){ + if((a22==1)){ + a22 = 0; + a12 = 8; + a6 = 1; + a4 = 0; + a0 = 0; + }else{ + a15 = 0; + a12 = 10; + } + return -1; + } else if(((!(a27==1)&&((((a6==1)&&((a3==7)&&(!(a15==1)&&(!(a4==1)&&((a12==8)&&((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))))&&!(a0==1))&&(a20==1)))&&!(a5==1))){ + a0 = 1; + a15 = 1; + a22 = 1; + a18 = 0; + a3 = 4; + a27 = 1; + a4 = 1; + a5 = 1; + return 26; + } else if((!(a22==1)&&((a6==1)&&(!(a5==1)&&(((!(a4==1)&&((a3==6)&&(((a27==1)&&(!(a15==1)&&(((a18==1)||!(a18==1))&&(input==4))))&&(a20==1))))&&(a12==12))&&!(a0==1)))))){ + a6 = 0; + a3 = 7; + a0 = 1; + a18 = 0; + a5 = 1; + a15 = 1; + a12 = 8; + a4 = 1; + return 21; + } else if(((a12==12)&&((a27==1)&&(!(a0==1)&&(((input==4)&&(((a6==1)&&((((((a22==1)&&(a18==1))&&!(a5==1))&&(a15==1))&&(a4==1))&&(a3==4)))||((((a3==8)&&((!(a15==1)&&((a5==1)&&(!(a22==1)&&(a18==1))))&&!(a4==1)))&&!(a6==1))||(((a3==8)&&((((!(a18==1)&&!(a22==1))&&(a5==1))&&!(a15==1))&&!(a4==1)))&&!(a6==1)))))&&(a20==1)))))){ + a22 = 0; + a4 = 1; + a12 = 8; + a3 = 4; + a0 = 1; + a18 = 1; + a6 = 1; + a5 = 1; + a15 = 1; + return 24; + } else if((((a4==1)&&((a20==1)&&((((!(a15==1)&&((!(a5==1)&&((input==2)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))&&(a0==1)))&&(a3==4))&&(a12==9))&&!(a6==1))))&&(a27==1))){ + a22 = 0; + a18 = 0; + a3 = 7; + a12 = 8; + a27 = 0; + a4 = 0; + return 26; + } else if(((a22==1)&&((!(a15==1)&&((((a6==1)&&(!(a27==1)&&((a3==6)&&((a0==1)&&(!(a5==1)&&((input==2)&&((a18==1)||!(a18==1))))))))&&(a4==1))&&(a12==11)))&&(a20==1)))){ + a27 = 1; + a5 = 1; + a12 = 12; + a18 = 1; + a3 = 7; + a4 = 0; + a6 = 0; + return -1; + } else if(((a20==1)&&((a18==1)&&(!(a6==1)&&((!(a4==1)&&(((a0==1)&&((!(a15==1)&&(!(a5==1)&&((input==2)&&(a3==4))))&&(a27==1)))&&(a12==10)))&&!(a22==1)))))){ + a6 = 1; + a18 = 0; + a27 = 0; + a15 = 1; + a3 = 6; + return 26; + } else if((((a6==1)&&((a5==1)&&((!(a27==1)&&(((!(a4==1)&&((input==5)&&(((((a18==1)&&!(a22==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))||(((a22==1)&&(a18==1))&&(a3==5)))))&&(a20==1))&&(a12==9)))&&(a0==1))))&&(a15==1))){ + a4 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + a27 = 1; + return -1; + } else if((((((a12==11)&&(((a3==6)&&((a15==1)&&(!(a0==1)&&(!(a27==1)&&((((a18==1)||!(a18==1))&&(input==6))&&(a20==1))))))&&!(a5==1)))&&(a4==1))&&(a22==1))&&(a6==1))){ + a12 = 8; + a4 = 0; + a22 = 0; + a18 = 0; + a15 = 0; + a3 = 8; + a5 = 1; + a0 = 1; + return 26; + } else if((((a20==1)&&((a12==11)&&(!(a27==1)&&(((a3==5)&&((a0==1)&&(((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==6))&&!(a4==1))&&!(a15==1))))&&!(a5==1)))))&&!(a6==1))){ + a18 = 1; + a4 = 1; + a12 = 8; + a5 = 1; + a3 = 4; + a27 = 1; + a15 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if((((a3==4)&&(!(a27==1)&&((((a0==1)&&(((a20==1)&&((a12==12)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==6))))&&(a6==1)))&&!(a5==1))&&!(a4==1))))&&(a15==1))){ + a22 = 1; + a5 = 1; + a18 = 0; + a12 = 10; + a27 = 1; + return 21; + } else if(((a20==1)&&(((((a12==9)&&((((((!(a5==1)&&(input==6))&&!(a27==1))&&!(a22==1))&&!(a6==1))&&!(a4==1))&&(a3==6)))&&(a15==1))&&!(a0==1))&&(a18==1)))){ + if((a18==1)){ + a12 = 8; + a18 = 0; + a27 = 1; + a3 = 4; + a0 = 1; + a4 = 1; + a5 = 1; + }else{ + a15 = 0; + a0 = 1; + a4 = 1; + a6 = 1; + a18 = 0; + a3 = 4; + a12 = 12; + } + return -1; + } else if((((a4==1)&&(!(a22==1)&&((!(a6==1)&&((a12==11)&&(!(a27==1)&&((!(a5==1)&&((a20==1)&&((input==4)&&!(a0==1))))&&(a3==6)))))&&(a15==1))))&&!(a18==1))){ + if((a6==1)){ + a6 = 1; + a22 = 1; + a4 = 0; + a18 = 1; + a12 = 8; + a5 = 1; + a0 = 1; + a27 = 1; + }else{ + a3 = 5; + a15 = 0; + a12 = 9; + } + return -1; + } else if((((a20==1)&&((!(a5==1)&&(((((a27==1)&&((a18==1)&&((a22==1)&&((input==5)&&(a6==1)))))&&(a12==10))&&(a0==1))&&(a3==8)))&&(a4==1)))&&!(a15==1))){ + a5 = 1; + a6 = 0; + a3 = 6; + a22 = 0; + a15 = 1; + return -1; + } else if((((a20==1)&&((a15==1)&&(((((((((input==3)&&(a3==7))&&(a12==8))&&(a6==1))&&!(a0==1))&&(a18==1))&&!(a27==1))&&!(a4==1))&&(a5==1))))&&!(a22==1))){ + a15 = 0; + a27 = 1; + a12 = 11; + a18 = 0; + a6 = 0; + return -1; + } else if(((a12==8)&&(!(a4==1)&&(!(a0==1)&&(((!(a27==1)&&(((a15==1)&&((a3==6)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==4))))&&(a20==1)))&&!(a5==1))&&!(a6==1)))))){ + a22 = 0; + a0 = 1; + a27 = 1; + a15 = 0; + a18 = 0; + return 24; + } else if(((a3==8)&&((a20==1)&&(((a4==1)&&(((((((input==2)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&!(a6==1))&&!(a27==1))&&!(a0==1))&&(a5==1))&&!(a15==1)))&&(a12==9))))){ + if((a22==1)){ + a0 = 1; + a6 = 1; + a22 = 0; + a12 = 8; + a18 = 1; + a4 = 0; + a3 = 5; + a27 = 1; + a15 = 1; + }else{ + a12 = 12; + a3 = 7; + a0 = 1; + a22 = 1; + a5 = 0; + a18 = 0; + } + return 21; + } else if((!(a27==1)&&((a15==1)&&((a12==9)&&(((a0==1)&&((a20==1)&&((input==3)&&(((!(a6==1)&&((a3==8)&&((!(a22==1)&&(a18==1))&&(a4==1))))||(((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1)))&&!(a6==1)))||((a6==1)&&((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1)))))))))&&!(a5==1)))))){ + a22 = 1; + a18 = 1; + a12 = 8; + a4 = 1; + a5 = 1; + a3 = 4; + a6 = 1; + a27 = 1; + return -1; + } else if((((a12==11)&&((!(a5==1)&&(!(a0==1)&&((((!(a27==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==2)))&&(a20==1))&&(a6==1))&&(a4==1))))&&!(a15==1)))&&(a3==7))){ + if((a6==1)){ + a15 = 1; + a0 = 1; + a4 = 0; + a18 = 0; + a27 = 1; + a3 = 5; + a22 = 1; + }else{ + a22 = 1; + a3 = 5; + a12 = 10; + a4 = 0; + a18 = 1; + a6 = 0; + a15 = 1; + } + return 21; + } else if(((a5==1)&&(((a15==1)&&(!(a4==1)&&(!(a0==1)&&((a20==1)&&(!(a27==1)&&(((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==5))&&(a6==1))&&(a3==6)))))))&&(a12==9)))){ + a27 = 1; + a0 = 1; + a3 = 8; + a12 = 8; + a22 = 0; + a18 = 0; + return 21; + } else if(((((a0==1)&&(((a3==7)&&((a20==1)&&((!(a4==1)&&((a6==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==4))))&&!(a27==1))))&&!(a5==1)))&&(a15==1))&&(a12==9))){ + a18 = 0; + a22 = 1; + a6 = 0; + a12 = 11; + a4 = 1; + a27 = 1; + return 26; + } else if((!(a4==1)&&((a20==1)&&(((a5==1)&&((((((((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4))))||(!(a6==1)&&((!(a18==1)&&(a22==1))&&(a3==4))))&&(input==3))&&(a12==11))&&(a15==1))&&!(a27==1)))&&(a0==1))))){ + a5 = 0; + a18 = 0; + a6 = 0; + a3 = 7; + a12 = 8; + a4 = 1; + a22 = 0; + return -1; + } else if((((a5==1)&&((!(a4==1)&&(!(a6==1)&&((!(a0==1)&&((a27==1)&&((input==6)&&((((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a22==1)&&!(a18==1))))||((a3==5)&&((a18==1)&&(a22==1)))))))&&(a20==1))))&&(a15==1)))&&(a12==12))){ + a18 = 1; + a3 = 4; + a0 = 1; + a6 = 1; + a22 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if((((a20==1)&&((a6==1)&&(((!(a4==1)&&((a12==11)&&(((input==5)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6)))||(((a22==1)&&!(a18==1))&&(a3==6))))&&(a27==1))))&&(a15==1))&&(a5==1))))&&!(a0==1))){ + a22 = 1; + a12 = 8; + a4 = 1; + a0 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((((((((a12==8)&&((!(a4==1)&&(((input==2)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a27==1)))&&(a3==8)))&&(a20==1))&&(a15==1))&&!(a0==1))&&(a6==1))&&!(a5==1))){ + a5 = 1; + a0 = 1; + a18 = 0; + a6 = 0; + a3 = 6; + a4 = 1; + a22 = 1; + a27 = 1; + return -1; + } else if((!(a15==1)&&(!(a22==1)&&(!(a0==1)&&((a5==1)&&((((a3==7)&&(((a27==1)&&(!(a6==1)&&((input==6)&&((a18==1)||!(a18==1)))))&&!(a4==1)))&&(a12==10))&&(a20==1))))))){ + a22 = 1; + a15 = 1; + a18 = 1; + a0 = 1; + a3 = 4; + a12 = 8; + a6 = 1; + a4 = 1; + return -1; + } else if((((a5==1)&&(!(a4==1)&&((((a12==8)&&(((input==4)&&((!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4)))||(((((a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1)))))&&!(a15==1)))&&!(a27==1))&&!(a0==1))))&&(a20==1))){ + if((a12==11)){ + a0 = 1; + a18 = 1; + a27 = 1; + a3 = 5; + a6 = 0; + a4 = 1; + a15 = 1; + a22 = 0; + }else{ + a3 = 4; + a27 = 1; + a6 = 1; + a18 = 0; + a15 = 1; + a0 = 1; + a22 = 1; + } + return -1; + } else if((!(a0==1)&&((a20==1)&&(!(a6==1)&&(((((!(a27==1)&&((input==3)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))))&&(a5==1))&&(a12==9))&&!(a15==1))&&!(a4==1)))))){ + a18 = 1; + a15 = 1; + a4 = 1; + a6 = 1; + a3 = 6; + a22 = 0; + a12 = 8; + return -1; + } else if(((a6==1)&&(!(a5==1)&&(!(a27==1)&&((a0==1)&&((((!(a15==1)&&((((!(a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==5))))&&(input==1)))&&(a20==1))&&(a4==1))&&(a12==9))))))){ + a3 = 5; + a18 = 0; + a22 = 1; + return 21; + } else if((!(a5==1)&&(!(a15==1)&&((a4==1)&&((a20==1)&&(!(a0==1)&&(((((a12==8)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a3==7)))&&!(a27==1))&&!(a6==1))&&(a22==1)))))))){ + if((a15==1)){ + a0 = 1; + a3 = 5; + a5 = 1; + a18 = 0; + a27 = 1; + a4 = 0; + }else{ + a18 = 0; + a0 = 1; + a6 = 1; + a15 = 1; + } + return -1; + } else if((((a20==1)&&(((a15==1)&&(((a0==1)&&((!(a5==1)&&((input==6)&&((((a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==5))))))&&!(a6==1)))&&!(a4==1)))&&(a12==9)))&&(a27==1))){ + a18 = 1; + a12 = 8; + a3 = 5; + a6 = 1; + a22 = 1; + a4 = 1; + a27 = 0; + a15 = 0; + return 26; + } else if((!(a0==1)&&((a12==8)&&((a4==1)&&(((a5==1)&&(!(a15==1)&&(!(a6==1)&&((a20==1)&&((input==4)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6))))))))&&!(a27==1)))))){ + a27 = 1; + a18 = 0; + a4 = 0; + a15 = 1; + a0 = 1; + a6 = 1; + a3 = 5; + a22 = 1; + return 21; + } else if((((a20==1)&&((a6==1)&&(!(a27==1)&&((a15==1)&&(((((((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==5))&&(a12==12))&&(a0==1))&&!(a5==1))))))&&(a4==1))){ + a12 = 8; + a18 = 1; + a15 = 0; + a4 = 0; + a5 = 1; + a27 = 1; + a22 = 0; + a3 = 5; + return 26; + } else if((!(a27==1)&&((a4==1)&&((((a5==1)&&((a6==1)&&(((a20==1)&&((a15==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==5))))&&(a0==1))))&&(a12==11))&&(a3==8))))){ + a22 = 0; + a3 = 4; + a27 = 1; + a18 = 0; + a4 = 0; + a12 = 10; + return 26; + } else if((((a6==1)&&((a15==1)&&(!(a18==1)&&(((a12==11)&&(!(a0==1)&&((a5==1)&&((a20==1)&&((!(a22==1)&&(input==3))&&!(a4==1))))))&&(a3==7)))))&&(a27==1))){ + a18 = 1; + a6 = 0; + a4 = 1; + a0 = 1; + a12 = 12; + a3 = 8; + a22 = 1; + return 26; + } else if((((a20==1)&&((((a15==1)&&((a12==9)&&((!(a5==1)&&((input==2)&&(((a3==8)&&((a22==1)&&(a18==1)))||(((a3==7)&&((a18==1)&&!(a22==1)))||((a3==7)&&(!(a18==1)&&!(a22==1)))))))&&!(a4==1))))&&!(a0==1))&&(a6==1)))&&!(a27==1))){ + if((a0==1)){ + a6 = 0; + a18 = 1; + a12 = 8; + a3 = 7; + a22 = 1; + a5 = 1; + }else{ + a3 = 8; + a4 = 1; + a6 = 0; + a27 = 1; + a18 = 1; + a22 = 0; + a0 = 1; + a5 = 1; + a12 = 8; + } + return 24; + } else if(((!(a6==1)&&((((a12==12)&&((!(a4==1)&&((a5==1)&&((((a3==4)&&(input==2))&&(a22==1))&&(a18==1))))&&!(a15==1)))&&(a27==1))&&(a0==1)))&&(a20==1))){ + a6 = 1; + a22 = 0; + a3 = 5; + a12 = 10; + return -1; + } else if(((!(a15==1)&&((((!(a4==1)&&((a3==8)&&((a12==12)&&(!(a6==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==6))))))&&(a0==1))&&(a20==1))&&!(a5==1)))&&(a27==1))){ + a12 = 11; + a5 = 1; + a22 = 0; + a3 = 7; + a18 = 1; + return 21; + } else if((((a15==1)&&(!(a5==1)&&((((a6==1)&&((a20==1)&&(((((a3==7)&&((a22==1)&&!(a18==1)))||(((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1)))))&&(input==5))&&(a4==1))))&&(a12==8))&&!(a27==1))))&&!(a0==1))){ + a18 = 0; + a4 = 0; + a12 = 9; + a3 = 8; + a0 = 1; + a22 = 1; + a6 = 0; + return 21; + } else if(((a12==9)&&((a20==1)&&(!(a0==1)&&((a5==1)&&(((a4==1)&&((a15==1)&&((a27==1)&&((input==3)&&((((a22==1)&&(a18==1))&&(a3==5))||(((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1)))))))))&&(a6==1))))))){ + a18 = 1; + a4 = 0; + a22 = 0; + a12 = 8; + a0 = 1; + a6 = 0; + a3 = 5; + return -1; + } else if(((a20==1)&&((!(a22==1)&&(((a27==1)&&(((((a0==1)&&((((a18==1)||!(a18==1))&&(input==3))&&(a3==8)))&&!(a4==1))&&(a5==1))&&!(a15==1)))&&(a6==1)))&&(a12==12)))){ + a4 = 1; + a18 = 1; + a22 = 1; + a15 = 1; + a6 = 0; + a12 = 10; + a3 = 4; + return -1; + } else if((((((((!(a0==1)&&((((a3==6)&&((a6==1)&&(input==5)))&&(a18==1))&&(a20==1)))&&(a5==1))&&!(a4==1))&&!(a22==1))&&!(a27==1))&&(a15==1))&&(a12==8))){ + a6 = 0; + a22 = 1; + a5 = 0; + a12 = 10; + a3 = 7; + a27 = 1; + a15 = 0; + return -1; + } else if((((((((((a4==1)&&((a12==11)&&(((a5==1)&&((a22==1)&&!(a18==1)))&&(a15==1))))&&(a3==4))&&(a6==1))||((!(a6==1)&&((!(a4==1)&&((((!(a22==1)&&!(a18==1))&&!(a5==1))&&!(a15==1))&&(a12==10)))&&(a3==8)))||((a6==1)&&((a3==4)&&(((((a5==1)&&((a22==1)&&(a18==1)))&&(a15==1))&&(a12==11))&&(a4==1))))))&&(input==6))&&(a0==1))&&(a27==1))&&(a20==1))){ + a12 = 10; + a3 = 6; + a4 = 1; + a5 = 1; + a18 = 0; + a6 = 1; + a15 = 1; + a22 = 1; + return -1; + } else if((((a27==1)&&(((((a12==9)&&((((a15==1)&&(!(a4==1)&&(((a18==1)||!(a18==1))&&(input==2))))&&(a22==1))&&!(a0==1)))&&(a20==1))&&!(a5==1))&&(a3==5)))&&!(a6==1))){ + a12 = 10; + a4 = 1; + a5 = 1; + a0 = 1; + a18 = 1; + a6 = 1; + a15 = 0; + a22 = 0; + return -1; + } else if((!(a18==1)&&((!(a27==1)&&((a12==10)&&((a4==1)&&((!(a22==1)&&(!(a6==1)&&((!(a15==1)&&((a20==1)&&(input==2)))&&!(a0==1))))&&(a3==4)))))&&(a5==1)))){ + a27 = 1; + a0 = 1; + a12 = 11; + a15 = 1; + a6 = 1; + a3 = 5; + return -1; + } else if((((a6==1)&&(((a15==1)&&((a12==12)&&(!(a5==1)&&((((input==6)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1)))))&&(a0==1))&&(a20==1)))))&&(a4==1)))&&!(a27==1))){ + a12 = 8; + a22 = 1; + a3 = 7; + a18 = 0; + return -1; + } else if(((a12==10)&&((a5==1)&&((a20==1)&&(!(a15==1)&&((a0==1)&&(((!(a27==1)&&((input==6)&&(((!(a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8))))))&&!(a4==1))&&(a6==1)))))))){ + a12 = 8; + a3 = 4; + a18 = 1; + a15 = 1; + a22 = 1; + a4 = 1; + a27 = 1; + return -1; + } else if((!(a6==1)&&(((a3==7)&&((!(a5==1)&&((!(a15==1)&&((!(a27==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==6)))&&(a0==1)))&&(a12==11)))&&!(a4==1)))&&(a20==1)))){ + a27 = 1; + a6 = 1; + a22 = 0; + a15 = 1; + a18 = 0; + a5 = 1; + a12 = 10; + a3 = 4; + return 26; + } else if(((a12==9)&&(((!(a6==1)&&(((a4==1)&&(!(a15==1)&&((a0==1)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==5)))))&&(a20==1)))&&(a27==1))&&!(a5==1)))){ + a5 = 1; + a18 = 1; + a6 = 1; + a12 = 8; + a15 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if((((!(a15==1)&&(((((a3==6)&&(((!(a4==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a20==1))&&!(a27==1)))&&(a22==1))&&(a6==1))&&!(a0==1)))&&!(a5==1))&&(a12==10))){ + a0 = 1; + a3 = 8; + a15 = 1; + a18 = 0; + a4 = 1; + return -1; + } else if((((a3==8)&&(!(a18==1)&&(((a12==9)&&((a0==1)&&(((a22==1)&&((a20==1)&&(((a15==1)&&(input==5))&&(a27==1))))&&!(a6==1))))&&(a4==1))))&&!(a5==1))){ + a18 = 1; + a12 = 11; + a6 = 1; + a3 = 6; + return 26; + } else if(((a15==1)&&((a0==1)&&(!(a27==1)&&((!(a4==1)&&((((a20==1)&&(((input==5)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&!(a6==1)))&&(a12==12))&&!(a5==1)))&&(a3==5)))))){ + a12 = 10; + a22 = 0; + a27 = 1; + a15 = 0; + a5 = 1; + a3 = 8; + a18 = 1; + return 21; + } else if((((!(a22==1)&&((a12==10)&&((a20==1)&&((a27==1)&&((((a15==1)&&((a4==1)&&(((a18==1)||!(a18==1))&&(input==6))))&&(a6==1))&&(a5==1))))))&&!(a0==1))&&(a3==6))){ + a6 = 0; + a3 = 5; + a18 = 1; + a5 = 0; + a0 = 1; + return 21; + } else if((((a0==1)&&((a5==1)&&(!(a15==1)&&(((a12==10)&&((a6==1)&&((a4==1)&&((input==3)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6)))||((a3==6)&&((a22==1)&&!(a18==1))))))))&&(a27==1)))))&&(a20==1))){ + a3 = 4; + a15 = 1; + a18 = 0; + a12 = 12; + a0 = 0; + a22 = 0; + return 26; + } else if((((a27==1)&&(((!(a4==1)&&(((((((a3==5)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1)))))&&(input==3))&&!(a6==1))&&(a20==1))&&(a12==11)))&&!(a5==1))&&!(a0==1)))&&!(a15==1))){ + a0 = 1; + a22 = 1; + a3 = 8; + a18 = 1; + a6 = 1; + a15 = 1; + a12 = 9; + a4 = 1; + return 21; + } else if(((a20==1)&&(((!(a4==1)&&((a6==1)&&((a27==1)&&((a0==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==3))&&(a5==1))))))&&(a12==11))&&!(a15==1)))){ + a27 = 0; + a22 = 0; + a15 = 1; + a3 = 5; + a18 = 0; + return 26; + } else if(((a3==4)&&((((a27==1)&&((a15==1)&&((((a20==1)&&(((!(a5==1)&&(input==2))&&(a22==1))&&!(a6==1)))&&(a0==1))&&(a12==10))))&&(a4==1))&&!(a18==1)))){ + a6 = 1; + a3 = 5; + a18 = 1; + a22 = 0; + a15 = 0; + a4 = 0; + a5 = 1; + return -1; + } else if(((a3==5)&&(((!(a0==1)&&((a12==11)&&(!(a6==1)&&((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&(a20==1))&&(a5==1))&&(a27==1)))))&&!(a15==1))&&!(a4==1)))){ + a12 = 8; + a22 = 1; + a0 = 1; + a18 = 1; + a3 = 4; + a15 = 1; + a6 = 1; + a4 = 1; + return -1; + } else if(((!(a4==1)&&((a0==1)&&(((a20==1)&&(((a3==6)&&((((a6==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a5==1))&&(a12==12)))&&(a15==1)))&&!(a22==1))))&&(a27==1))){ + a4 = 1; + a18 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + return -1; + } else if(((a27==1)&&((((a0==1)&&(!(a5==1)&&(((a6==1)&&(((((input==3)&&((a18==1)||!(a18==1)))&&(a15==1))&&(a3==8))&&(a22==1)))&&!(a4==1))))&&(a12==12))&&(a20==1)))){ + a3 = 4; + a15 = 0; + a4 = 1; + a18 = 1; + a22 = 0; + return 26; + } else if(((a0==1)&&((!(a4==1)&&((a5==1)&&((!(a27==1)&&((a12==11)&&((input==6)&&((((a3==4)&&((a22==1)&&!(a18==1)))&&!(a6==1))||(((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1)))))))))&&(a15==1))))&&(a20==1)))){ + a3 = 7; + a6 = 0; + a15 = 0; + a12 = 8; + a18 = 0; + a22 = 0; + return -1; + } else if(((a18==1)&&((a20==1)&&((a3==8)&&((a0==1)&&((((a22==1)&&(!(a15==1)&&((a12==8)&&((a4==1)&&((input==3)&&!(a5==1))))))&&(a6==1))&&(a27==1))))))){ + a18 = 0; + a6 = 0; + a3 = 7; + a12 = 10; + return 21; + } else if((!(a5==1)&&(!(a15==1)&&((a20==1)&&((a22==1)&&(((!(a18==1)&&((a3==4)&&((a6==1)&&(!(a0==1)&&((input==1)&&(a27==1))))))&&(a12==8))&&!(a4==1))))))){ + a3 = 6; + a12 = 10; + a0 = 1; + a22 = 0; + a15 = 1; + a5 = 1; + return 26; + } else if(((a12==9)&&(((a3==7)&&((a15==1)&&((a20==1)&&((((!(a5==1)&&((input==6)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))))&&(a27==1))&&(a4==1))&&!(a0==1)))))&&(a6==1)))){ + a3 = 6; + a18 = 1; + a0 = 1; + a6 = 0; + a22 = 1; + a12 = 10; + return -1; + } else if((((a15==1)&&(((a20==1)&&((a12==12)&&(!(a6==1)&&((a3==4)&&((a0==1)&&((a5==1)&&((a22==1)&&(((a18==1)||!(a18==1))&&(input==4)))))))))&&(a27==1)))&&!(a4==1))){ + a18 = 0; + a3 = 6; + a12 = 10; + return -1; + } else if(((a20==1)&&(((a0==1)&&(((((input==4)&&((!(a6==1)&&((a3==8)&&((!(a22==1)&&!(a18==1))&&(a4==1))))||(((a3==4)&&(!(a4==1)&&((a22==1)&&(a18==1))))&&(a6==1))))&&(a12==9))&&(a15==1))&&(a27==1)))&&(a5==1)))){ + a6 = 0; + a22 = 0; + a4 = 1; + a15 = 0; + a18 = 0; + a3 = 8; + a12 = 12; + return 26; + } else if(((a0==1)&&(((((((!(a5==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&(a27==1))&&(a15==1)))&&(a6==1))&&(a22==1))&&(a12==11))&&(a3==8))&&!(a4==1))&&(a20==1)))){ + a4 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + a5 = 1; + return -1; + } else if(((((a27==1)&&(((((a12==12)&&((a4==1)&&(!(a0==1)&&((input==2)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))&&(a5==1))&&(a20==1))&&(a3==4)))&&(a15==1))&&!(a6==1))){ + a0 = 1; + a27 = 0; + a18 = 1; + a22 = 1; + a6 = 1; + a12 = 9; + a3 = 5; + return -1; + } else if(((a15==1)&&((a27==1)&&(!(a4==1)&&((a22==1)&&((a12==9)&&((((a5==1)&&(!(a6==1)&&((!(a0==1)&&(input==4))&&(a3==5))))&&!(a18==1))&&(a20==1)))))))){ + a0 = 1; + a15 = 0; + a4 = 1; + a3 = 7; + a12 = 10; + return 21; + } else if(((a20==1)&&((a12==11)&&((!(a0==1)&&(!(a18==1)&&((a6==1)&&(!(a4==1)&&(!(a22==1)&&(((a3==4)&&((a15==1)&&(input==5)))&&!(a27==1)))))))&&(a5==1))))){ + a27 = 1; + a22 = 1; + a0 = 1; + a12 = 8; + a3 = 7; + a18 = 1; + return 24; + } else if(((!(a22==1)&&(((a20==1)&&((a6==1)&&((!(a18==1)&&(((a15==1)&&(((input==4)&&(a3==4))&&!(a4==1)))&&!(a0==1)))&&!(a5==1))))&&(a27==1)))&&(a12==10))){ + a0 = 1; + a6 = 0; + a4 = 1; + a5 = 1; + return 26; + } else if((((a6==1)&&(!(a27==1)&&((a12==8)&&((((a0==1)&&((a20==1)&&((a3==6)&&((a18==1)&&((input==5)&&(a22==1))))))&&!(a5==1))&&(a15==1)))))&&(a4==1))){ + a12 = 12; + a27 = 1; + a18 = 0; + a6 = 0; + return 26; + } else if((((a3==6)&&(((a20==1)&&((a12==10)&&((((a15==1)&&(((((a18==1)||!(a18==1))&&(input==4))&&!(a0==1))&&!(a22==1)))&&(a27==1))&&!(a5==1))))&&(a4==1)))&&!(a6==1))){ + a6 = 1; + a3 = 4; + a18 = 0; + a4 = 0; + a12 = 11; + a15 = 0; + a0 = 1; + return 21; + } else if(((a15==1)&&((a3==8)&&(((a4==1)&&(((a5==1)&&((((a12==9)&&((a18==1)&&((input==1)&&(a0==1))))&&!(a22==1))&&(a27==1)))&&(a20==1)))&&(a6==1))))){ + a12 = 12; + a3 = 6; + return 26; + } else if(((((!(a5==1)&&(((a15==1)&&((!(a6==1)&&((a12==11)&&(!(a0==1)&&((input==5)&&!(a4==1)))))&&(a20==1)))&&(a18==1)))&&!(a22==1))&&(a3==6))&&(a27==1))){ + a6 = 1; + a0 = 1; + a18 = 0; + a22 = 1; + a3 = 7; + return 26; + } else if(((!(a27==1)&&(((a12==8)&&(((((((input==2)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a20==1))&&(a6==1))&&!(a4==1))&&(a0==1))&&(a3==5)))&&(a15==1)))&&(a5==1))){ + a27 = 1; + a12 = 10; + a3 = 8; + a5 = 0; + a22 = 1; + a18 = 0; + a4 = 1; + return -1; + } else if((((((a27==1)&&((a3==6)&&(!(a4==1)&&((a6==1)&&((a15==1)&&(((input==6)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a5==1)))))))&&(a20==1))&&(a12==11))&&(a0==1))){ + a12 = 10; + a22 = 0; + a18 = 1; + a5 = 0; + return 21; + } else if(((a20==1)&&(((a12==9)&&(((a6==1)&&((a0==1)&&(!(a22==1)&&(((!(a5==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&!(a27==1))&&!(a4==1)))))&&!(a15==1)))&&(a3==7)))){ + a4 = 1; + a3 = 4; + a15 = 1; + a5 = 1; + a18 = 0; + return -1; + } else if((((a20==1)&&(((!(a6==1)&&(!(a27==1)&&(((((a0==1)&&(!(a15==1)&&(input==2)))&&(a3==5))&&(a18==1))&&(a5==1))))&&(a4==1))&&(a12==10)))&&!(a22==1))){ + a3 = 4; + a6 = 1; + a27 = 1; + a15 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if(((a12==11)&&((a22==1)&&(((a3==5)&&(((a20==1)&&(!(a27==1)&&((!(a15==1)&&(!(a5==1)&&(((a18==1)||!(a18==1))&&(input==6))))&&!(a6==1))))&&!(a0==1)))&&!(a4==1))))){ + if((a20==1)){ + a22 = 0; + a18 = 1; + a0 = 1; + a27 = 1; + a6 = 1; + a5 = 1; + a15 = 1; + a12 = 8; + a3 = 8; + }else{ + a5 = 1; + a27 = 1; + a15 = 1; + a18 = 1; + a4 = 1; + a12 = 8; + a0 = 1; + a22 = 0; + } + return -1; + } else if((!(a6==1)&&((a15==1)&&((((a5==1)&&(((((a18==1)&&((a12==11)&&((input==4)&&!(a0==1))))&&(a4==1))&&(a27==1))&&(a3==4)))&&!(a22==1))&&(a20==1))))){ + a3 = 5; + a0 = 1; + a12 = 12; + a15 = 0; + a6 = 1; + return 21; + } else if((((a27==1)&&(((a12==11)&&(((((a3==8)&&(((input==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a4==1)))&&(a5==1))&&(a0==1))&&(a20==1)))&&!(a15==1)))&&(a6==1))){ + a18 = 1; + a5 = 0; + a22 = 1; + a12 = 10; + return -1; + } else if(((a15==1)&&(!(a27==1)&&((!(a4==1)&&(!(a5==1)&&(!(a0==1)&&(((a12==8)&&(((a22==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a20==1)))&&(a3==8)))))&&!(a6==1))))){ + a18 = 1; + a4 = 1; + a27 = 1; + a3 = 5; + a5 = 1; + a0 = 1; + return -1; + } else if((((!(a27==1)&&((a6==1)&&(((a0==1)&&((a12==8)&&(((a15==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==5)))&&!(a4==1))))&&(a20==1))))&&!(a5==1))&&(a3==8))){ + a27 = 1; + a5 = 1; + a4 = 1; + a18 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if((((a5==1)&&((a12==8)&&(((a20==1)&&((input==3)&&((((a3==8)&&(((a15==1)&&(!(a18==1)&&!(a22==1)))&&!(a4==1)))&&!(a6==1))||((a6==1)&&((a3==4)&&((((a22==1)&&(a18==1))&&!(a15==1))&&(a4==1)))))))&&!(a27==1))))&&(a0==1))){ + a22 = 1; + a3 = 7; + a15 = 0; + a12 = 10; + a18 = 1; + a4 = 0; + a6 = 1; + a27 = 1; + return -1; + } else if(((a12==9)&&((a20==1)&&((a5==1)&&((!(a15==1)&&((a3==6)&&((((a6==1)&&(!(a0==1)&&((a18==1)&&(input==1))))&&!(a27==1))&&!(a22==1))))&&(a4==1)))))){ + a4 = 0; + a0 = 1; + a12 = 8; + a15 = 1; + a18 = 0; + a27 = 1; + a3 = 7; + a22 = 1; + return 26; + } else if((!(a5==1)&&((a20==1)&&(((a0==1)&&((a15==1)&&(!(a27==1)&&(((a12==11)&&((input==3)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))||((a3==6)&&((a22==1)&&!(a18==1))))))&&!(a6==1)))))&&!(a4==1))))){ + a27 = 1; + a4 = 1; + a5 = 1; + a3 = 4; + a22 = 1; + a6 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((a20==1)&&(!(a27==1)&&(((a3==4)&&(((a4==1)&&(((((a12==10)&&((a5==1)&&(input==1)))&&!(a18==1))&&(a22==1))&&!(a0==1)))&&!(a6==1)))&&!(a15==1))))){ + if((a22==1)){ + a0 = 1; + a3 = 8; + a15 = 1; + a27 = 1; + a18 = 1; + a6 = 1; + a12 = 8; + }else{ + a22 = 0; + a12 = 8; + a6 = 1; + a0 = 1; + a4 = 0; + a15 = 1; + a27 = 1; + a3 = 5; + } + return -1; + } else if(((((a5==1)&&((((a15==1)&&((a6==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==3))&&!(a0==1))))&&(a4==1))&&(a12==11)))&&(a27==1))&&(a20==1))){ + a22 = 0; + a0 = 1; + a3 = 5; + a18 = 1; + a15 = 0; + return -1; + } else if((((a6==1)&&(((!(a4==1)&&(((((((input==4)&&((a18==1)||!(a18==1)))&&(a20==1))&&(a3==6))&&!(a5==1))&&!(a22==1))&&!(a27==1)))&&!(a15==1))&&(a0==1)))&&(a12==8))){ + a27 = 1; + a4 = 1; + a18 = 1; + a3 = 5; + a12 = 12; + a5 = 1; + return 21; + } else if(((a12==10)&&(!(a15==1)&&(!(a5==1)&&(!(a4==1)&&((a3==5)&&((a0==1)&&((((((input==5)&&((a18==1)||!(a18==1)))&&(a20==1))&&(a22==1))&&!(a6==1))&&(a27==1))))))))){ + a18 = 1; + a3 = 6; + a15 = 1; + return 26; + } else if(((!(a15==1)&&((!(a18==1)&&((!(a27==1)&&((((a12==10)&&(((a3==7)&&(input==1))&&(a5==1)))&&!(a0==1))&&!(a6==1)))&&(a20==1)))&&(a4==1)))&&!(a22==1))){ + if((a6==1)){ + a3 = 8; + a0 = 1; + a12 = 9; + a5 = 0; + }else{ + a27 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + a15 = 1; + } + return -1; + } else if(((a6==1)&&((a12==10)&&(((a20==1)&&((!(a5==1)&&((a4==1)&&((((input==1)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&!(a0==1))&&(a3==6))))&&!(a15==1)))&&!(a27==1))))){ + if((a3==4)){ + a0 = 1; + a27 = 1; + a3 = 7; + a18 = 1; + a15 = 1; + a6 = 0; + a12 = 8; + a22 = 0; + a5 = 1; + }else{ + a5 = 1; + a27 = 1; + a0 = 1; + a12 = 8; + a22 = 0; + a18 = 1; + a6 = 0; + a15 = 1; + } + return -1; + } else if(((!(a6==1)&&((a15==1)&&(!(a5==1)&&((a12==8)&&(!(a4==1)&&((!(a0==1)&&((input==1)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))))&&(a20==1)))))))&&(a27==1))){ + a22 = 1; + a12 = 12; + a18 = 1; + a0 = 1; + a3 = 6; + a6 = 1; + return 21; + } else if((((a15==1)&&(((a3==5)&&(!(a22==1)&&((a0==1)&&((!(a27==1)&&(((a6==1)&&((a20==1)&&(input==6)))&&!(a18==1)))&&!(a4==1)))))&&(a12==12)))&&(a5==1))){ + a18 = 1; + a22 = 1; + a27 = 1; + a4 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if((!(a5==1)&&((((!(a27==1)&&(((((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==6))&&!(a6==1))&&(a12==10))&&(a4==1)))&&!(a0==1))&&!(a15==1))&&(a20==1)))){ + if((a22==1)){ + a3 = 8; + a6 = 1; + a22 = 0; + a15 = 1; + a5 = 1; + a18 = 0; + a0 = 1; + a12 = 8; + a27 = 1; + }else{ + a15 = 1; + a18 = 0; + a22 = 1; + a12 = 8; + a5 = 1; + a3 = 7; + a6 = 1; + a0 = 1; + a27 = 1; + } + return -1; + } else if(((((a3==5)&&((a5==1)&&((a20==1)&&((a27==1)&&(((((a0==1)&&((input==4)&&((a18==1)||!(a18==1))))&&(a12==11))&&(a15==1))&&(a6==1))))))&&(a4==1))&&(a22==1))){ + a3 = 4; + a12 = 8; + a18 = 1; + return -1; + } else if(((a12==11)&&((a4==1)&&((a22==1)&&(((((a15==1)&&(((a5==1)&&((a20==1)&&((input==5)&&((a18==1)||!(a18==1)))))&&(a0==1)))&&(a3==5))&&(a6==1))&&(a27==1)))))){ + a18 = 1; + a4 = 0; + a3 = 6; + a12 = 10; + a5 = 0; + return -1; + } else if(((((((a20==1)&&((a3==4)&&((a4==1)&&((!(a27==1)&&((input==6)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&(a6==1)))))&&!(a0==1))&&!(a15==1))&&(a12==8))&&!(a5==1))){ + a22 = 0; + a5 = 1; + a6 = 0; + a27 = 1; + a18 = 0; + a0 = 1; + a15 = 1; + return 26; + } else if((!(a6==1)&&(((a27==1)&&(!(a4==1)&&((a15==1)&&((a0==1)&&((!(a5==1)&&((a12==12)&&((input==1)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&(a20==1))))))&&(a3==4)))){ + a3 = 5; + a22 = 0; + a12 = 9; + a5 = 1; + a18 = 0; + return -1; + } else if((!(a4==1)&&(((a6==1)&&((((!(a0==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5))&&(a20==1))&&(a27==1)))&&!(a5==1))&&(a12==8))&&(a15==1)))&&(a3==6)))){ + a22 = 0; + a5 = 1; + a4 = 1; + a0 = 1; + a18 = 1; + a3 = 5; + a27 = 0; + a12 = 9; + return 21; + } else if(((a12==10)&&(((((!(a27==1)&&(((a5==1)&&((a3==8)&&((input==3)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))))&&(a20==1)))&&!(a15==1))&&!(a0==1))&&(a4==1))&&(a6==1)))){ + if((a3==6)){ + a18 = 0; + a22 = 0; + a3 = 4; + a6 = 0; + a12 = 11; + a4 = 0; + }else{ + a15 = 1; + a22 = 0; + a12 = 8; + a27 = 1; + a0 = 1; + a3 = 5; + a18 = 1; + } + return 21; + } else if(((!(a18==1)&&(((a0==1)&&((((((((a20==1)&&(input==4))&&(a15==1))&&(a27==1))&&(a6==1))&&(a4==1))&&!(a22==1))&&(a12==11)))&&(a3==6)))&&!(a5==1))){ + a3 = 4; + a22 = 1; + a4 = 0; + a18 = 1; + a12 = 10; + a5 = 1; + return -1; + } else if(((a27==1)&&((a3==4)&&((a12==10)&&(!(a4==1)&&(!(a0==1)&&(!(a15==1)&&((a6==1)&&((((((a18==1)||!(a18==1))&&(input==2))&&!(a5==1))&&(a22==1))&&(a20==1)))))))))){ + a18 = 1; + a3 = 7; + a0 = 1; + a22 = 0; + a6 = 0; + a12 = 12; + return -1; + } else if(((!(a27==1)&&((a20==1)&&((((a5==1)&&(!(a4==1)&&(((input==5)&&((((a22==1)&&(a18==1))&&(a3==6))||(((!(a22==1)&&(a18==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))))&&(a0==1))))&&!(a6==1))&&!(a15==1))))&&(a12==12))){ + a4 = 1; + a6 = 1; + a12 = 10; + a3 = 4; + a18 = 1; + a22 = 1; + return -1; + } else if((!(a5==1)&&((((!(a15==1)&&(!(a22==1)&&((a3==4)&&((a20==1)&&((a12==8)&&(((a6==1)&&(input==5))&&(a0==1)))))))&&!(a27==1))&&!(a18==1))&&!(a4==1)))){ + a15 = 1; + a22 = 1; + a27 = 1; + a18 = 1; + a5 = 1; + a4 = 1; + return -1; + } else if(((a4==1)&&((((a27==1)&&((a0==1)&&(((((input==3)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7))))&&!(a5==1))&&!(a6==1))&&(a12==10))))&&(a15==1))&&(a20==1)))){ + a18 = 0; + a3 = 6; + a22 = 1; + return -1; + } else if(((a0==1)&&((!(a15==1)&&((((a3==7)&&((!(a4==1)&&(((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a5==1)))&&(a6==1)))&&(a12==9))&&(a27==1)))&&(a20==1)))){ + if((a5==1)){ + a22 = 0; + a0 = 0; + a15 = 1; + a3 = 5; + a5 = 1; + a18 = 0; + }else{ + a18 = 1; + a12 = 10; + a0 = 0; + a3 = 6; + a5 = 1; + a22 = 0; + } + return 26; + } else if(((a0==1)&&(!(a15==1)&&((a5==1)&&((a6==1)&&((a12==11)&&(((((input==6)&&(((((a18==1)&&!(a22==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))||(((a18==1)&&(a22==1))&&(a3==7))))&&(a20==1))&&(a4==1))&&(a27==1)))))))){ + a3 = 4; + a15 = 1; + a22 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if((!(a5==1)&&((a12==11)&&((!(a0==1)&&(((a4==1)&&(((((((a3==8)&&(!(a22==1)&&(a18==1)))&&(a6==1))||((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8))))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1)))))&&(input==2))&&!(a27==1)))&&!(a15==1)))&&(a20==1))))){ + a18 = 0; + a12 = 8; + a22 = 1; + a0 = 1; + a5 = 1; + a15 = 1; + a27 = 1; + a6 = 1; + a3 = 5; + return 26; + } else if((((a6==1)&&((a27==1)&&((a12==12)&&((((((a15==1)&&(((a4==1)&&(input==1))&&!(a5==1)))&&!(a18==1))&&!(a0==1))&&(a3==6))&&(a20==1)))))&&(a22==1))){ + a5 = 1; + a4 = 0; + a12 = 8; + a22 = 0; + return -1; + } else if((((((a5==1)&&((a6==1)&&(!(a15==1)&&((a0==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==1))&&(a12==8))))))&&!(a4==1))&&(a20==1))&&(a27==1))){ + a4 = 1; + a3 = 5; + a22 = 0; + a12 = 9; + a18 = 0; + return 24; + } else if(((a12==9)&&(((a4==1)&&((a20==1)&&((a3==8)&&((a0==1)&&(!(a15==1)&&((((((a18==1)||!(a18==1))&&(input==3))&&!(a5==1))&&!(a6==1))&&(a22==1)))))))&&!(a27==1)))){ + a5 = 1; + a15 = 1; + a18 = 1; + a3 = 7; + return 21; + } else if(((((a3==7)&&(((a18==1)&&((((a22==1)&&((a5==1)&&(!(a15==1)&&((input==2)&&(a20==1)))))&&!(a6==1))&&(a4==1)))&&(a12==8)))&&!(a0==1))&&(a27==1))){ + a12 = 10; + a15 = 1; + a4 = 0; + a0 = 1; + a3 = 6; + a5 = 0; + return 21; + } else if(((a15==1)&&(!(a0==1)&&(((a18==1)&&((a22==1)&&((a12==11)&&(((a3==4)&&(((a5==1)&&(!(a4==1)&&(input==1)))&&(a20==1)))&&!(a6==1)))))&&!(a27==1))))){ + if((a27==1)){ + a3 = 8; + a27 = 1; + a4 = 1; + a0 = 1; + a12 = 8; + a18 = 0; + }else{ + a18 = 0; + a0 = 1; + a27 = 1; + a3 = 7; + a12 = 8; + a6 = 1; + } + return -1; + } else if((!(a4==1)&&(((a0==1)&&((((!(a15==1)&&(!(a6==1)&&((input==4)&&(((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==6))))))&&!(a27==1))&&(a12==10))&&(a20==1)))&&!(a5==1)))){ + a15 = 1; + a3 = 4; + a27 = 1; + a5 = 1; + a6 = 1; + a12 = 8; + a22 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if((((a4==1)&&(((((!(a15==1)&&((a3==4)&&((a27==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==1)))))&&!(a5==1))&&(a20==1))&&(a12==9))&&!(a0==1)))&&!(a6==1))){ + a18 = 1; + a6 = 1; + a5 = 1; + a4 = 0; + a12 = 11; + a0 = 1; + a22 = 1; + a3 = 8; + return 21; + } else if(((a20==1)&&(!(a22==1)&&((a5==1)&&(((a27==1)&&((!(a0==1)&&((a12==12)&&(!(a4==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&!(a6==1)))))&&(a15==1)))&&(a3==8)))))){ + a12 = 9; + a18 = 0; + a5 = 0; + a3 = 4; + a0 = 1; + a27 = 0; + return 21; + } else if(((a5==1)&&((((a20==1)&&((a12==9)&&(((input==1)&&(((((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1)))&&!(a6==1))||(((!(a4==1)&&((a22==1)&&(a18==1)))&&(a3==4))&&(a6==1)))||(((a3==4)&&(!(a4==1)&&(!(a18==1)&&(a22==1))))&&(a6==1))))&&!(a27==1))))&&!(a0==1))&&!(a15==1)))){ + if((a20==1)){ + a15 = 1; + a3 = 4; + a12 = 8; + a4 = 1; + a22 = 1; + a0 = 1; + a18 = 0; + a27 = 1; + a6 = 1; + }else{ + a4 = 1; + a6 = 1; + a27 = 1; + a3 = 6; + a12 = 10; + a0 = 1; + a22 = 1; + a18 = 1; + } + return 26; + } else if(((a3==6)&&(((a5==1)&&((a0==1)&&(!(a6==1)&&((!(a22==1)&&((a27==1)&&((a20==1)&&((a4==1)&&((a12==10)&&(input==4))))))&&!(a18==1)))))&&!(a15==1)))){ + if((a3==5)){ + a3 = 5; + a4 = 0; + a18 = 1; + a27 = 0; + a5 = 0; + a12 = 12; + }else{ + a3 = 5; + a12 = 9; + a27 = 0; + a6 = 1; + a5 = 0; + a4 = 0; + } + return 26; + } else if((((a27==1)&&((a4==1)&&(!(a0==1)&&((((((a5==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==6)))&&(a12==9))&&(a20==1))&&(a3==5))&&(a6==1)))))&&(a15==1))){ + if((a5==1)){ + a22 = 0; + a3 = 6; + a15 = 0; + a6 = 0; + a18 = 1; + }else{ + a0 = 1; + a18 = 0; + a12 = 8; + a27 = 0; + a22 = 1; + a3 = 4; + a4 = 0; + } + return 26; + } else if(((a20==1)&&(!(a22==1)&&(((((!(a15==1)&&(((a3==7)&&(((a18==1)&&(input==5))&&(a5==1)))&&!(a6==1)))&&!(a27==1))&&(a4==1))&&(a0==1))&&(a12==8))))){ + a3 = 4; + a15 = 1; + a27 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if(((((!(a15==1)&&(!(a6==1)&&((((a27==1)&&((((a3==8)&&((a22==1)&&!(a18==1)))||(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1)))))&&(input==3)))&&(a5==1))&&(a20==1))))&&!(a4==1))&&!(a0==1))&&(a12==11))){ + a3 = 4; + a5 = 0; + a18 = 0; + a4 = 1; + a27 = 0; + a12 = 10; + a0 = 1; + a22 = 1; + return 26; + } else if(((!(a0==1)&&((a4==1)&&((a27==1)&&((((((input==1)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==6))))&&(a15==1))&&(a12==8))&&(a20==1))&&!(a5==1)))))&&(a6==1))){ + a3 = 4; + a18 = 1; + a22 = 1; + a5 = 1; + a0 = 1; + return -1; + } else if((!(a22==1)&&(!(a4==1)&&((((((a27==1)&&((((!(a15==1)&&(input==1))&&(a12==10))&&(a18==1))&&(a3==5)))&&!(a5==1))&&(a6==1))&&(a20==1))&&!(a0==1))))){ + a12 = 8; + a0 = 1; + a4 = 1; + a27 = 0; + a22 = 1; + a15 = 1; + return -1; + } else if((!(a27==1)&&((!(a15==1)&&(((a3==5)&&(!(a18==1)&&(!(a6==1)&&(((((input==5)&&(a0==1))&&(a12==12))&&(a20==1))&&(a22==1)))))&&!(a4==1)))&&(a5==1)))){ + a3 = 4; + a27 = 1; + a6 = 1; + a12 = 8; + a18 = 1; + a4 = 1; + a15 = 1; + return -1; + } else if((!(a0==1)&&((((((a3==6)&&((a15==1)&&(!(a27==1)&&((a22==1)&&(!(a18==1)&&((input==4)&&(a12==8)))))))&&(a5==1))&&(a20==1))&&!(a4==1))&&(a6==1)))){ + a22 = 0; + a27 = 1; + a3 = 5; + a0 = 1; + return 21; + } else if((((((a6==1)&&(((((a15==1)&&((a20==1)&&((!(a5==1)&&(input==3))&&(a3==7))))&&(a4==1))&&(a18==1))&&(a12==11)))&&!(a27==1))&&!(a0==1))&&(a22==1))){ + if((a4==1)){ + a3 = 8; + a12 = 10; + a27 = 1; + a6 = 0; + }else{ + a27 = 1; + a5 = 1; + a3 = 5; + a0 = 1; + a4 = 0; + a22 = 0; + a12 = 8; + } + return -1; + } else if((!(a15==1)&&((a5==1)&&((a6==1)&&((a3==5)&&((a20==1)&&((a4==1)&&((a0==1)&&((a27==1)&&((a12==9)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==1)))))))))))){ + a22 = 0; + a6 = 0; + a3 = 6; + a5 = 0; + a18 = 1; + a12 = 12; + return 24; + } else if((!(a4==1)&&((a0==1)&&((a22==1)&&((a20==1)&&(((((((a6==1)&&((a3==5)&&(input==6)))&&!(a27==1))&&(a5==1))&&!(a18==1))&&(a15==1))&&(a12==9))))))){ + a12 = 8; + a27 = 1; + a4 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((((a4==1)&&(!(a27==1)&&((a15==1)&&((((a0==1)&&((a12==10)&&((((a3==5)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4))))&&(input==6))))&&!(a5==1))&&(a20==1)))))&&(a6==1))){ + a22 = 0; + a5 = 1; + a15 = 0; + a27 = 1; + a6 = 0; + a3 = 8; + a18 = 1; + a4 = 0; + return -1; + } else if((!(a27==1)&&((a0==1)&&(!(a6==1)&&((a20==1)&&(!(a4==1)&&(!(a5==1)&&(!(a15==1)&&(((input==3)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1)))))&&(a12==9)))))))))){ + a3 = 4; + a22 = 1; + a6 = 1; + a12 = 11; + a18 = 0; + a27 = 1; + return -1; + } return calculate_output23(input); + } + + int calculate_output23(int input) { + if(((a12==10)&&((a0==1)&&(!(a15==1)&&(((a20==1)&&((a4==1)&&((((a27==1)&&((((a18==1)||!(a18==1))&&(input==3))&&(a3==4)))&&!(a6==1))&&!(a22==1))))&&!(a5==1)))))){ + a6 = 1; + a5 = 1; + a15 = 1; + a18 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if((!(a4==1)&&(((a6==1)&&(((!(a0==1)&&((!(a27==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5))&&!(a5==1)))&&(a20==1)))&&(a12==10))&&(a15==1)))&&(a3==4)))){ + if((a22==1)){ + a5 = 1; + a4 = 1; + a18 = 1; + a3 = 7; + a0 = 1; + a12 = 8; + a22 = 1; + a27 = 1; + }else{ + a12 = 8; + a18 = 0; + a15 = 0; + a0 = 1; + a22 = 1; + } + return 26; + } else if((!(a4==1)&&(((a3==6)&&((!(a27==1)&&((((((a5==1)&&((input==2)&&((a18==1)||!(a18==1))))&&(a20==1))&&(a12==10))&&(a15==1))&&(a0==1)))&&(a6==1)))&&(a22==1)))){ + a12 = 8; + a4 = 1; + a3 = 4; + a18 = 1; + a27 = 1; + return -1; + } else if(((a4==1)&&(((a20==1)&&(((a12==11)&&((a5==1)&&(((!(a0==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==1)))&&(a3==8))&&(a15==1))))&&!(a27==1)))&&!(a6==1)))){ + a27 = 1; + a4 = 0; + a6 = 1; + a18 = 1; + a0 = 1; + a3 = 7; + a12 = 8; + a22 = 0; + return 21; + } else if((((a27==1)&&(((((a4==1)&&(!(a15==1)&&(!(a0==1)&&((((input==3)&&((a18==1)||!(a18==1)))&&(a12==10))&&(a5==1)))))&&(a20==1))&&(a6==1))&&(a22==1)))&&(a3==8))){ + a27 = 0; + a0 = 1; + a18 = 0; + a5 = 0; + return 21; + } else if((((((!(a4==1)&&(((a12==11)&&((!(a22==1)&&(!(a6==1)&&((input==1)&&!(a18==1))))&&(a20==1)))&&!(a0==1)))&&(a5==1))&&(a3==6))&&!(a27==1))&&!(a15==1))){ + if((a5==1)){ + a15 = 1; + a6 = 1; + a5 = 0; + a22 = 1; + a4 = 1; + a18 = 1; + }else{ + a12 = 12; + a18 = 1; + a15 = 1; + a27 = 1; + a4 = 1; + a22 = 1; + a0 = 1; + a5 = 0; + } + return 21; + } else if((((!(a22==1)&&((a20==1)&&((((a18==1)&&((((a12==11)&&((input==2)&&(a3==6)))&&!(a0==1))&&(a4==1)))&&!(a5==1))&&(a6==1))))&&!(a15==1))&&!(a27==1))){ + a0 = 1; + a3 = 7; + a12 = 8; + a5 = 1; + a15 = 1; + a27 = 1; + a6 = 0; + return 21; + } else if((((((a12==10)&&(!(a22==1)&&((a15==1)&&((a3==8)&&((a20==1)&&((((input==6)&&!(a27==1))&&(a18==1))&&(a5==1)))))))&&(a6==1))&&!(a0==1))&&!(a4==1))){ + a0 = 1; + a6 = 0; + a27 = 1; + a12 = 11; + a15 = 0; + a3 = 4; + return -1; + } else if(((a0==1)&&((((a4==1)&&(!(a15==1)&&(!(a27==1)&&((a12==9)&&(!(a6==1)&&((a3==4)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==3))))))))&&(a20==1))&&!(a5==1)))){ + a6 = 1; + a22 = 1; + a5 = 1; + a18 = 0; + return 24; + } else if((!(a15==1)&&((a20==1)&&((a4==1)&&(((a12==8)&&((a3==5)&&(((!(a6==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==3)))&&(a27==1))&&(a5==1))))&&(a0==1)))))){ + a3 = 4; + a22 = 0; + a5 = 0; + a18 = 0; + return 21; + } else if((((a0==1)&&((a20==1)&&((a12==8)&&(!(a27==1)&&((((((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))||((!(a18==1)&&(a22==1))&&(a3==5)))&&(input==4))&&!(a5==1))&&!(a15==1))&&!(a4==1))))))&&!(a6==1))){ + a18 = 0; + a27 = 1; + a5 = 1; + a4 = 1; + a3 = 7; + a22 = 1; + a12 = 10; + return 26; + } else if(((a18==1)&&(((((((((a3==6)&&(((input==2)&&(a4==1))&&(a5==1)))&&(a15==1))&&(a27==1))&&(a6==1))&&(a12==11))&&(a20==1))&&(a0==1))&&(a22==1)))){ + a12 = 8; + a3 = 4; + return -1; + } else if((((!(a22==1)&&(((a20==1)&&(((a12==10)&&((a3==5)&&(!(a5==1)&&((!(a4==1)&&(input==4))&&(a6==1)))))&&(a0==1)))&&(a15==1)))&&(a27==1))&&!(a18==1))){ + a4 = 1; + a5 = 1; + a0 = 0; + a6 = 0; + a22 = 1; + a12 = 8; + a3 = 6; + return 26; + } else if(((a20==1)&&(!(a6==1)&&((a15==1)&&(((a4==1)&&((!(a5==1)&&((((((a22==1)&&!(a18==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1)))))&&(input==5))&&(a12==9)))&&(a0==1)))&&!(a27==1)))))){ + a22 = 0; + a18 = 1; + a3 = 4; + a15 = 0; + a5 = 1; + return 24; + } else if(((!(a0==1)&&((a6==1)&&((a4==1)&&((a5==1)&&(((a12==9)&&((a15==1)&&((input==1)&&((((a18==1)&&(a22==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==6)))))))&&(a20==1))))))&&!(a27==1))){ + a0 = 1; + a22 = 0; + a3 = 8; + a27 = 1; + a18 = 0; + a12 = 8; + return 26; + } else if((((a18==1)&&(!(a22==1)&&((a3==6)&&((a12==12)&&((a5==1)&&(!(a4==1)&&((a15==1)&&(!(a27==1)&&((!(a6==1)&&(input==4))&&(a0==1))))))))))&&(a20==1))){ + a18 = 0; + a3 = 4; + a27 = 1; + a15 = 0; + a12 = 11; + return 26; + } else if((!(a6==1)&&((a27==1)&&((a3==4)&&((a12==10)&&((!(a15==1)&&(((a5==1)&&((a20==1)&&((input==1)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))))&&(a0==1)))&&!(a4==1))))))){ + a27 = 0; + a6 = 1; + a3 = 7; + a22 = 1; + a15 = 1; + a18 = 1; + a4 = 1; + return 21; + } else if(((((!(a0==1)&&(((a15==1)&&((((input==5)&&(((a3==6)&&((a22==1)&&!(a18==1)))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1))))))&&(a12==9))&&!(a6==1)))&&!(a27==1)))&&!(a5==1))&&!(a4==1))&&(a20==1))){ + a3 = 6; + a6 = 1; + a0 = 1; + a22 = 0; + a12 = 8; + a18 = 0; + return 21; + } else if((!(a27==1)&&((a15==1)&&((a4==1)&&((a5==1)&&(!(a0==1)&&(((a12==9)&&(!(a6==1)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==5))))&&(a20==1)))))))){ + if((a4==1)){ + a3 = 6; + a12 = 8; + a6 = 1; + a0 = 1; + a22 = 0; + a27 = 1; + a18 = 1; + }else{ + a6 = 1; + a27 = 1; + a18 = 1; + a12 = 8; + a22 = 0; + a3 = 5; + a4 = 0; + a0 = 1; + } + return 21; + } else if((!(a15==1)&&((((!(a5==1)&&((((a12==8)&&(((input==5)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&(a4==1)))&&(a20==1))&&(a3==7)))&&(a27==1))&&(a6==1))&&(a0==1)))){ + a12 = 10; + a22 = 1; + a18 = 0; + a3 = 5; + a6 = 0; + return 26; + } else if((!(a0==1)&&((a3==8)&&(((a15==1)&&((a12==8)&&((((((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a27==1))&&!(a5==1))&&(a4==1))&&(a6==1))))&&(a20==1))))){ + a3 = 6; + a4 = 0; + a22 = 1; + a6 = 0; + a18 = 1; + a12 = 11; + return 21; + } else if((((!(a22==1)&&(!(a27==1)&&((((a20==1)&&((!(a5==1)&&(((a0==1)&&(input==3))&&(a12==12)))&&(a3==8)))&&!(a15==1))&&(a6==1))))&&!(a4==1))&&(a18==1))){ + a27 = 1; + a22 = 1; + a5 = 1; + a12 = 11; + a4 = 1; + a15 = 1; + return 21; + } else if(((((a5==1)&&((((a20==1)&&((!(a0==1)&&((input==4)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1))))))&&!(a4==1)))&&(a6==1))&&(a12==9)))&&(a27==1))&&!(a15==1))){ + a18 = 1; + a22 = 1; + a3 = 4; + a15 = 1; + a12 = 8; + a0 = 1; + a4 = 1; + return -1; + } else if((!(a5==1)&&((a3==8)&&((a20==1)&&((a6==1)&&(((((a4==1)&&(!(a27==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==1))))&&(a0==1))&&(a12==9))&&!(a15==1))))))){ + a4 = 0; + a27 = 1; + a12 = 12; + a3 = 6; + a18 = 0; + a22 = 0; + return -1; + } else if(((a3==5)&&((((!(a22==1)&&(!(a0==1)&&(!(a5==1)&&((a20==1)&&((!(a6==1)&&((a12==9)&&(input==4)))&&(a15==1))))))&&(a4==1))&&!(a27==1))&&(a18==1)))){ + a12 = 8; + a6 = 1; + a27 = 1; + a4 = 0; + a0 = 1; + a5 = 1; + return -1; + } else if((!(a6==1)&&((a18==1)&&(!(a4==1)&&((((((a0==1)&&(!(a27==1)&&(!(a22==1)&&((input==6)&&(a5==1)))))&&(a12==12))&&(a15==1))&&(a3==4))&&(a20==1)))))){ + a22 = 1; + a18 = 0; + a15 = 0; + a12 = 10; + a3 = 8; + a6 = 1; + a27 = 1; + return -1; + } else if(((((a5==1)&&(((!(a6==1)&&((((input==4)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))||(((a22==1)&&!(a18==1))&&(a3==5))))&&!(a4==1))&&(a20==1)))&&(a12==10))&&!(a15==1)))&&!(a27==1))&&!(a0==1))){ + a3 = 8; + a18 = 0; + a27 = 1; + a6 = 1; + a15 = 1; + a22 = 1; + a12 = 12; + return 21; + } else if(((!(a15==1)&&((a0==1)&&((((((a27==1)&&((a6==1)&&((a12==9)&&((input==1)&&((a18==1)||!(a18==1))))))&&(a22==1))&&!(a4==1))&&!(a5==1))&&(a20==1))))&&(a3==6))){ + a5 = 1; + a15 = 1; + a22 = 0; + a12 = 12; + a6 = 0; + a18 = 1; + return 21; + } else if(((!(a5==1)&&(((((a20==1)&&((a22==1)&&(!(a0==1)&&(((a15==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a12==12)))))&&!(a4==1))&&(a3==8))&&(a27==1)))&&!(a6==1))){ + if((a18==1)){ + a3 = 4; + a5 = 1; + a18 = 0; + a22 = 0; + a27 = 0; + a12 = 8; + }else{ + a12 = 8; + a0 = 1; + a6 = 1; + a5 = 1; + a3 = 6; + a18 = 0; + a22 = 0; + } + return -1; + } else if((((a20==1)&&((a27==1)&&(((!(a4==1)&&((!(a5==1)&&((input==1)&&((((a3==5)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==5)))||((a3==6)&&((a18==1)&&(a22==1))))))&&!(a0==1)))&&(a6==1))&&(a12==11))))&&!(a15==1))){ + a6 = 0; + a0 = 1; + a3 = 6; + a22 = 1; + a18 = 1; + a12 = 10; + a15 = 1; + return 26; + } else if((((((!(a27==1)&&((a3==4)&&((!(a15==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==1))&&(a4==1)))&&(a20==1))))&&!(a0==1))&&(a6==1))&&(a12==8))&&(a5==1))){ + a22 = 0; + a27 = 1; + a15 = 1; + a12 = 11; + a0 = 1; + a6 = 0; + a18 = 0; + a3 = 8; + return 21; + } else if(((a20==1)&&(!(a4==1)&&((((a22==1)&&(((((!(a18==1)&&((input==5)&&(a5==1)))&&(a6==1))&&!(a0==1))&&!(a27==1))&&(a12==10)))&&(a15==1))&&(a3==8))))){ + if((a4==1)){ + a6 = 0; + a3 = 4; + a0 = 1; + a15 = 0; + a18 = 1; + a22 = 0; + }else{ + a3 = 5; + a5 = 0; + a27 = 1; + a12 = 11; + } + return 26; + } else if((((a0==1)&&((a12==10)&&((a20==1)&&((a5==1)&&(!(a4==1)&&((a6==1)&&((a15==1)&&((input==2)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))||((a3==8)&&(!(a18==1)&&(a22==1))))))))))))&&(a27==1))){ + a22 = 0; + a18 = 0; + a5 = 0; + a3 = 5; + return 26; + } else if((((((a20==1)&&(((a12==9)&&(((a3==5)&&((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==4))&&(a4==1)))&&(a5==1)))&&!(a27==1)))&&(a6==1))&&(a15==1))&&(a0==1))){ + a27 = 1; + a12 = 10; + a15 = 0; + a4 = 0; + a22 = 1; + a18 = 0; + return -1; + } else if(((a15==1)&&((!(a0==1)&&((((a27==1)&&((a20==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1))&&(a6==1))&&!(a4==1))))&&(a3==7))&&(a12==9)))&&(a5==1)))){ + a6 = 0; + a22 = 1; + a3 = 4; + a18 = 0; + a4 = 1; + a12 = 10; + return 24; + } else if((((((a0==1)&&(((((((((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==5))&&(a12==11))&&(a5==1))&&(a15==1))&&(a20==1)))&&!(a27==1))&&(a6==1))&&(a4==1))){ + a3 = 4; + a18 = 1; + a22 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if(((a15==1)&&(((a12==8)&&(!(a27==1)&&(!(a0==1)&&((a5==1)&&((a6==1)&&((a20==1)&&(((((a18==1)&&(a22==1))&&(a3==6))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1)))))&&(input==1))))))))&&!(a4==1)))){ + a3 = 4; + a0 = 1; + a27 = 1; + a18 = 0; + a22 = 1; + return -1; + } else if(((a0==1)&&((((!(a15==1)&&((a4==1)&&(((((a12==10)&&((input==4)&&((a18==1)||!(a18==1))))&&(a6==1))&&!(a5==1))&&(a3==6))))&&!(a27==1))&&(a22==1))&&(a20==1)))){ + a3 = 5; + a18 = 0; + a27 = 1; + a12 = 12; + a15 = 1; + return -1; + } else if((((!(a22==1)&&(((!(a15==1)&&(((a12==11)&&((((input==6)&&(a5==1))&&(a6==1))&&(a0==1)))&&(a27==1)))&&!(a18==1))&&(a20==1)))&&(a4==1))&&(a3==7))){ + a22 = 1; + a3 = 6; + a12 = 12; + a6 = 0; + a15 = 1; + a4 = 0; + return 21; + } else if((!(a0==1)&&((a5==1)&&((a12==9)&&((a6==1)&&(((((a27==1)&&((input==1)&&(((a3==8)&&((a22==1)&&!(a18==1)))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8))))))&&(a20==1))&&(a15==1))&&(a4==1))))))){ + a0 = 1; + a15 = 0; + a6 = 0; + a18 = 1; + a12 = 11; + a5 = 0; + a3 = 4; + a22 = 0; + return 26; + } else if(((!(a6==1)&&((a20==1)&&((a5==1)&&(!(a0==1)&&((((a27==1)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==5)))&&(a4==1))&&(a12==9))))))&&!(a15==1))){ + a18 = 0; + a22 = 0; + a3 = 8; + a12 = 8; + a6 = 1; + a5 = 0; + a27 = 0; + a0 = 1; + a15 = 1; + return -1; + } else if((!(a5==1)&&((a20==1)&&((a18==1)&&((a6==1)&&(!(a4==1)&&((!(a22==1)&&(!(a0==1)&&(((!(a15==1)&&(input==4))&&(a27==1))&&(a12==9))))&&(a3==6)))))))){ + a22 = 1; + a0 = 1; + a15 = 1; + a27 = 0; + a5 = 1; + a18 = 0; + a12 = 11; + a3 = 5; + return -1; + } else if((((a20==1)&&(((a4==1)&&(!(a6==1)&&((a15==1)&&((a12==8)&&(((a27==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==4)))&&(a5==1))))))&&(a3==7)))&&!(a0==1))){ + if((a18==1)){ + a22 = 1; + a12 = 9; + a15 = 0; + a6 = 1; + a3 = 8; + a18 = 1; + }else{ + a0 = 1; + a15 = 0; + a12 = 9; + a18 = 0; + a4 = 0; + a3 = 8; + a27 = 0; + a22 = 1; + } + return 24; + } else if(((a22==1)&&((a27==1)&&(((a0==1)&&((!(a4==1)&&(((!(a18==1)&&((a5==1)&&((input==3)&&(a20==1))))&&(a12==11))&&(a3==4)))&&!(a15==1)))&&!(a6==1))))){ + a12 = 10; + a5 = 0; + a22 = 0; + a3 = 5; + a18 = 1; + return -1; + } else if((((!(a4==1)&&((a5==1)&&(((!(a15==1)&&(!(a27==1)&&((input==3)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7))))))&&!(a6==1))&&(a12==10))))&&(a20==1))&&!(a0==1))){ + a5 = 0; + a12 = 8; + a3 = 6; + a27 = 1; + a22 = 1; + a18 = 1; + a6 = 1; + a4 = 1; + a15 = 1; + return -1; + } else if(((!(a5==1)&&((((a6==1)&&((a15==1)&&((((input==1)&&(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8))))&&(a4==1))&&(a12==11))))&&(a20==1))&&(a27==1)))&&(a0==1))){ + a18 = 0; + a3 = 7; + a22 = 0; + return 26; + } else if(((((!(a5==1)&&((((a20==1)&&(((input==4)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7))))&&!(a6==1)))&&(a4==1))&&!(a15==1)))&&(a27==1))&&(a12==11))&&!(a0==1))){ + a3 = 5; + a12 = 10; + a5 = 1; + a6 = 1; + a15 = 1; + a18 = 1; + a0 = 1; + a22 = 1; + a4 = 0; + return 21; + } else if(((a20==1)&&((((a0==1)&&(((((a6==1)&&((((!(a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1)))))&&(input==3)))&&(a27==1))&&!(a15==1))&&(a12==8)))&&!(a5==1))&&!(a4==1)))){ + if((a0==1)){ + a18 = 1; + a3 = 5; + a15 = 1; + a22 = 0; + a4 = 1; + a0 = 0; + a5 = 1; + a6 = 0; + }else{ + a4 = 1; + a18 = 1; + a22 = 0; + a12 = 11; + a6 = 0; + a3 = 4; + a5 = 1; + } + return 24; + } else if((((!(a18==1)&&((((a22==1)&&(!(a15==1)&&((a20==1)&&(((a3==4)&&(!(a6==1)&&(input==4)))&&!(a0==1)))))&&!(a5==1))&&!(a27==1)))&&(a4==1))&&(a12==10))){ + a3 = 7; + a0 = 1; + a22 = 0; + a5 = 1; + a27 = 1; + a15 = 1; + a12 = 8; + a6 = 1; + a4 = 0; + return 26; + } else if(((a20==1)&&(!(a15==1)&&((((!(a5==1)&&(!(a27==1)&&((a6==1)&&((((input==6)&&((a18==1)||!(a18==1)))&&!(a0==1))&&(a4==1)))))&&(a22==1))&&(a3==6))&&(a12==11))))){ + if((a18==1)){ + a27 = 1; + a6 = 0; + a18 = 0; + a5 = 1; + a15 = 1; + a0 = 1; + a3 = 4; + a12 = 8; + }else{ + a0 = 1; + a12 = 12; + a3 = 8; + a18 = 0; + a4 = 0; + } + return 26; + } else if((!(a15==1)&&((((a0==1)&&(!(a6==1)&&(!(a4==1)&&((a12==8)&&((((((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==5)))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==6))&&(a20==1))))))&&!(a27==1))&&!(a5==1)))){ + a12 = 10; + a3 = 5; + a6 = 1; + a22 = 0; + a4 = 1; + a27 = 1; + a18 = 1; + a15 = 1; + a5 = 1; + return 21; + } else if((!(a5==1)&&((a20==1)&&(((!(a6==1)&&((a12==10)&&((a22==1)&&((a3==4)&&((a27==1)&&(!(a18==1)&&((a15==1)&&(input==6))))))))&&!(a0==1))&&!(a4==1))))){ + a18 = 1; + a5 = 1; + a6 = 1; + a4 = 1; + a0 = 1; + return 26; + } else if(((a15==1)&&(!(a0==1)&&((((a3==7)&&((a4==1)&&((a27==1)&&(!(a6==1)&&(((a12==12)&&((input==4)&&((a18==1)||!(a18==1))))&&(a5==1))))))&&!(a22==1))&&(a20==1))))){ + a6 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + a22 = 1; + a0 = 1; + return -1; + } else if((!(a27==1)&&(((!(a15==1)&&(((a3==7)&&(((a6==1)&&((a12==11)&&((input==5)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))&&(a20==1)))&&!(a0==1)))&&!(a5==1))&&(a4==1)))){ + a15 = 1; + a18 = 1; + a22 = 0; + a3 = 5; + return 26; + } else if(((a27==1)&&((a5==1)&&((a12==11)&&(!(a0==1)&&((a15==1)&&((a20==1)&&(((!(a6==1)&&((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1)))))||((a6==1)&&((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))))&&(input==5))))))))){ + a3 = 4; + a4 = 0; + a27 = 0; + a0 = 1; + a5 = 0; + a6 = 1; + a12 = 8; + a22 = 0; + a18 = 1; + return -1; + } else if(((((a5==1)&&(((!(a6==1)&&(!(a0==1)&&(((a3==8)&&(!(a22==1)&&(!(a4==1)&&(input==1))))&&(a12==11))))&&!(a18==1))&&(a27==1)))&&(a20==1))&&!(a15==1))){ + a6 = 1; + a27 = 0; + a12 = 8; + a3 = 6; + a0 = 1; + return 26; + } else if(((((a20==1)&&(!(a15==1)&&(((a5==1)&&((!(a0==1)&&((a4==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==4))))&&(a27==1)))&&(a12==12))))&&(a3==5))&&!(a6==1))){ + if((a27==1)){ + a22 = 0; + a27 = 0; + a12 = 8; + a4 = 0; + a6 = 1; + a18 = 0; + }else{ + a4 = 0; + a15 = 1; + a3 = 8; + a22 = 1; + a18 = 1; + a12 = 11; + } + return 26; + } else if(((((a15==1)&&((a20==1)&&(!(a0==1)&&((((!(a18==1)&&((a6==1)&&(!(a4==1)&&(input==2))))&&!(a5==1))&&(a22==1))&&(a3==5)))))&&(a12==10))&&!(a27==1))){ + a0 = 1; + a3 = 6; + a12 = 11; + a22 = 0; + a15 = 0; + return -1; + } else if(((a22==1)&&((a15==1)&&((a12==9)&&((!(a6==1)&&((!(a18==1)&&((a4==1)&&((a20==1)&&(!(a27==1)&&(!(a0==1)&&(input==2))))))&&(a5==1)))&&(a3==4)))))){ + if((a22==1)){ + a3 = 7; + a0 = 1; + a12 = 8; + a27 = 1; + }else{ + a3 = 5; + a6 = 1; + a0 = 1; + a22 = 0; + a27 = 1; + a12 = 8; + } + return -1; + } else if(((a27==1)&&((a15==1)&&(((a12==12)&&((((a20==1)&&((a5==1)&&((((input==5)&&((a18==1)||!(a18==1)))&&!(a6==1))&&(a3==7))))&&(a4==1))&&!(a0==1)))&&!(a22==1))))){ + a22 = 1; + a4 = 0; + a15 = 0; + a12 = 11; + a3 = 8; + a0 = 1; + a18 = 0; + return 26; + } else if(((a12==11)&&(((a5==1)&&(((a20==1)&&(((a18==1)&&((!(a22==1)&&((a27==1)&&((input==4)&&(a0==1))))&&!(a6==1)))&&(a3==7)))&&(a15==1)))&&!(a4==1)))){ + a6 = 1; + a4 = 1; + a12 = 10; + a18 = 0; + return -1; + } else if(((a4==1)&&((!(a15==1)&&((a20==1)&&(!(a6==1)&&(((a0==1)&&((((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==5)))||(((a22==1)&&!(a18==1))&&(a3==5)))&&(input==2))&&!(a27==1)))&&(a12==11)))))&&!(a5==1)))){ + a5 = 1; + a6 = 1; + a12 = 8; + a18 = 1; + a27 = 1; + a15 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if((!(a18==1)&&((a3==4)&&((a4==1)&&((a22==1)&&((a20==1)&&((a27==1)&&((a6==1)&&(((((input==6)&&!(a15==1))&&(a12==10))&&!(a0==1))&&!(a5==1)))))))))){ + a12 = 8; + a18 = 1; + a6 = 0; + a0 = 1; + a22 = 0; + a5 = 1; + a3 = 5; + return 21; + } else if(((a20==1)&&((a5==1)&&((a15==1)&&((!(a4==1)&&(((a3==4)&&(!(a27==1)&&(((a0==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a22==1))))&&(a12==11)))&&(a6==1)))))){ + a4 = 1; + a12 = 8; + a18 = 1; + a27 = 1; + return -1; + } else if((!(a22==1)&&(((a6==1)&&((a12==8)&&(!(a4==1)&&((a5==1)&&(((a20==1)&&((!(a0==1)&&(!(a18==1)&&(input==4)))&&(a15==1)))&&(a3==6))))))&&(a27==1)))){ + a22 = 1; + a0 = 1; + a27 = 0; + a4 = 1; + a12 = 10; + return -1; + } else if((((((((a15==1)&&(((((input==5)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a0==1))&&(a27==1))&&(a20==1)))&&!(a6==1))&&!(a4==1))&&!(a5==1))&&(a3==6))&&(a12==10))){ + a22 = 1; + a18 = 0; + a4 = 1; + a5 = 1; + a27 = 0; + a15 = 0; + a3 = 7; + return 21; + } else if(((a5==1)&&(((a20==1)&&((a3==8)&&((!(a0==1)&&(((!(a6==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3)))&&(a27==1))&&(a12==12)))&&(a15==1))))&&(a4==1)))){ + a3 = 4; + a12 = 8; + a22 = 1; + a0 = 1; + a6 = 1; + a18 = 1; + return -1; + } else if(((((a12==8)&&((((((!(a6==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==4)))&&(a20==1))&&(a4==1))&&!(a5==1))&&(a0==1))&&(a3==6)))&&!(a15==1))&&!(a27==1))){ + a6 = 1; + a18 = 1; + a5 = 1; + a15 = 1; + a27 = 1; + a3 = 5; + a12 = 11; + a22 = 1; + a4 = 0; + return -1; + } else if(((((!(a15==1)&&((((a22==1)&&(((!(a0==1)&&((input==4)&&(a3==7)))&&(a20==1))&&(a5==1)))&&(a27==1))&&(a12==10)))&&!(a4==1))&&!(a6==1))&&!(a18==1))){ + a15 = 1; + a18 = 1; + a4 = 1; + a6 = 1; + a12 = 8; + a3 = 4; + a0 = 1; + return -1; + } else if(((a20==1)&&((((!(a4==1)&&((!(a0==1)&&((a22==1)&&(!(a15==1)&&((a12==12)&&((input==6)&&!(a6==1))))))&&!(a5==1)))&&(a27==1))&&(a3==7))&&!(a18==1)))){ + a4 = 1; + a3 = 4; + a15 = 1; + a5 = 1; + a27 = 0; + a12 = 11; + a22 = 0; + return 24; + } else if((((((a27==1)&&(((a12==10)&&(((((input==5)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&(a15==1))&&!(a0==1))&&!(a5==1)))&&(a6==1)))&&(a3==6))&&(a4==1))&&(a20==1))){ + a18 = 0; + a6 = 0; + a12 = 8; + a0 = 1; + a4 = 0; + a22 = 1; + return 21; + } else if(((!(a22==1)&&((a5==1)&&((a0==1)&&((((a6==1)&&(((a12==11)&&(((input==2)&&(a20==1))&&!(a18==1)))&&(a4==1)))&&(a3==4))&&(a27==1)))))&&(a15==1))){ + a5 = 0; + a12 = 10; + a6 = 0; + a4 = 0; + a3 = 8; + a18 = 1; + a27 = 0; + a22 = 1; + return 26; + } else if(((a20==1)&&(!(a15==1)&&(((a12==12)&&((a6==1)&&(((a27==1)&&(!(a4==1)&&((input==5)&&((((a18==1)&&(a22==1))&&(a3==7))||(((!(a22==1)&&(a18==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))))))&&!(a0==1))))&&(a5==1))))){ + a3 = 7; + a6 = 0; + a22 = 0; + a15 = 1; + a12 = 9; + a5 = 0; + a18 = 0; + return 24; + } else if((!(a4==1)&&((a20==1)&&((a12==11)&&((a27==1)&&(((((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==5))&&!(a0==1))&&!(a15==1))&&(a6==1))&&(a3==6))&&!(a5==1))))))){ + a15 = 1; + a27 = 0; + a3 = 8; + a18 = 0; + a4 = 1; + a0 = 1; + a12 = 9; + a22 = 0; + return 21; + } else if(((a20==1)&&((a6==1)&&((a5==1)&&(!(a4==1)&&((a12==11)&&(((a27==1)&&((a15==1)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==3))))&&!(a0==1)))))))){ + a0 = 1; + a12 = 8; + a3 = 4; + a4 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((a22==1)&&((((a20==1)&&(((a27==1)&&((a15==1)&&(((a12==12)&&(((a5==1)&&(input==6))&&(a0==1)))&&(a18==1))))&&(a6==1)))&&(a3==4))&&!(a4==1)))){ + a12 = 8; + a4 = 1; + return -1; + } else if(((a27==1)&&(!(a4==1)&&((a0==1)&&((a15==1)&&((((a3==4)&&(((a6==1)&&(((input==1)&&(a12==9))&&!(a5==1)))&&(a22==1)))&&!(a18==1))&&(a20==1))))))){ + a4 = 1; + a27 = 0; + a18 = 1; + a22 = 0; + a3 = 7; + a12 = 8; + return 21; + } else if((!(a6==1)&&((a15==1)&&((a12==11)&&((((((a20==1)&&((!(a27==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a4==1)))&&(a22==1))&&!(a5==1))&&(a0==1))&&(a3==5)))))){ + a3 = 8; + a12 = 10; + a18 = 0; + a27 = 1; + a22 = 0; + return 26; + } else if((!(a5==1)&&((a12==9)&&((a20==1)&&((a4==1)&&((((a0==1)&&(((input==4)&&(((a3==7)&&((a18==1)&&(a22==1)))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a22==1)&&!(a18==1))))))&&!(a27==1)))&&!(a15==1))&&!(a6==1))))))){ + a18 = 1; + a15 = 1; + a5 = 1; + a22 = 1; + a6 = 1; + a12 = 8; + a3 = 4; + a27 = 1; + return -1; + } else if((((((a5==1)&&(((!(a6==1)&&((((input==5)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&!(a4==1))&&(a0==1)))&&(a3==8))&&(a15==1)))&&(a12==12))&&(a20==1))&&!(a27==1))){ + a4 = 1; + a5 = 0; + a3 = 7; + a27 = 1; + a18 = 0; + a15 = 0; + a6 = 1; + a22 = 0; + return -1; + } else if(((((((a20==1)&&(((((((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8))&&!(a6==1))||((a6==1)&&((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))))&&(input==1))&&!(a0==1)))&&(a12==9))&&(a15==1))&&!(a27==1))&&(a5==1))){ + if((a4==1)){ + a22 = 1; + a4 = 1; + a0 = 1; + a3 = 5; + a6 = 0; + a12 = 8; + a18 = 1; + a27 = 1; + }else{ + a0 = 1; + a27 = 1; + a18 = 1; + a12 = 8; + a4 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + } + return -1; + } else if(((a3==8)&&((a0==1)&&(!(a6==1)&&(((((((a20==1)&&(!(a5==1)&&(!(a22==1)&&(input==2))))&&(a12==10))&&(a15==1))&&(a4==1))&&!(a18==1))&&(a27==1)))))){ + a5 = 1; + a4 = 0; + a27 = 0; + a3 = 6; + return 26; + } else if(((a0==1)&&(!(a5==1)&&((((a20==1)&&((a12==8)&&(((((((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==3))&&(a15==1))&&!(a6==1))))&&!(a27==1))&&(a4==1))))){ + a6 = 1; + a22 = 1; + a5 = 1; + a27 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a12==10)&&((a27==1)&&(!(a0==1)&&(!(a4==1)&&((((((!(a22==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a5==1))&&(a3==6))&&(a15==1))&&(a20==1))&&!(a6==1))))))){ + a18 = 0; + a0 = 1; + a12 = 9; + return 24; + } else if((((a27==1)&&(((((a0==1)&&((a4==1)&&((a12==11)&&((input==3)&&((((a22==1)&&(a18==1))&&(a3==6))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1)))))))))&&(a20==1))&&!(a5==1))&&!(a6==1)))&&!(a15==1))){ + a18 = 1; + a15 = 1; + a22 = 0; + a3 = 8; + a6 = 1; + return 26; + } else if((!(a5==1)&&(((a15==1)&&((a4==1)&&((a3==8)&&(((!(a6==1)&&(!(a0==1)&&((a20==1)&&((input==3)&&((a18==1)||!(a18==1))))))&&(a27==1))&&(a12==10)))))&&!(a22==1)))){ + a22 = 1; + a3 = 4; + a0 = 1; + a18 = 1; + a12 = 8; + a6 = 1; + a5 = 1; + return -1; + } else if((!(a15==1)&&((((((a6==1)&&((a20==1)&&(((a3==7)&&((input==3)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))))&&!(a4==1))))&&(a0==1))&&(a5==1))&&(a27==1))&&(a12==10)))){ + a12 = 8; + a18 = 1; + a22 = 0; + a3 = 8; + a4 = 1; + return -1; + } else if((((a3==4)&&((a18==1)&&((a20==1)&&((((a6==1)&&(!(a0==1)&&((((a15==1)&&(input==3))&&(a22==1))&&!(a5==1))))&&!(a27==1))&&(a4==1)))))&&(a12==9))){ + if((a15==1)){ + a12 = 8; + a5 = 1; + a27 = 1; + a3 = 8; + a0 = 1; + }else{ + a12 = 8; + a3 = 7; + a18 = 0; + a22 = 0; + a27 = 1; + } + return 26; + } else if(((a12==11)&&((a3==7)&&(!(a22==1)&&(((!(a0==1)&&((a4==1)&&(!(a6==1)&&((((a15==1)&&(input==3))&&(a27==1))&&(a5==1)))))&&(a20==1))&&(a18==1)))))){ + a22 = 1; + a15 = 0; + a4 = 0; + a0 = 1; + return -1; + } else if(((a27==1)&&(((a15==1)&&(((((a5==1)&&(((a12==9)&&((a0==1)&&(((a18==1)||!(a18==1))&&(input==4))))&&(a20==1)))&&(a3==5))&&(a6==1))&&(a4==1)))&&!(a22==1)))){ + a12 = 11; + a5 = 0; + a22 = 1; + a18 = 1; + a6 = 0; + a15 = 0; + return 24; + } else if((!(a0==1)&&((a20==1)&&(((a18==1)&&((a3==5)&&((a15==1)&&((((a6==1)&&((a27==1)&&((input==5)&&(a12==11))))&&(a5==1))&&!(a22==1)))))&&!(a4==1))))){ + a3 = 8; + a0 = 1; + a6 = 0; + a12 = 10; + a15 = 0; + a4 = 1; + return 21; + } else if((((((a20==1)&&(!(a0==1)&&((a4==1)&&((a3==5)&&((!(a18==1)&&(!(a15==1)&&(!(a27==1)&&(input==3))))&&!(a5==1))))))&&!(a22==1))&&!(a6==1))&&(a12==8))){ + if((a4==1)){ + a4 = 0; + a27 = 1; + a3 = 8; + a15 = 1; + a5 = 1; + }else{ + a3 = 8; + a27 = 1; + a4 = 0; + a5 = 1; + a15 = 1; + a0 = 1; + a18 = 1; + a6 = 1; + } + return 21; + } else if((((a3==6)&&((a0==1)&&(!(a27==1)&&(!(a5==1)&&(((a4==1)&&((a20==1)&&((!(a15==1)&&((a6==1)&&(input==6)))&&(a18==1))))&&(a12==11))))))&&!(a22==1))){ + a3 = 4; + a5 = 1; + a22 = 1; + a15 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if((((!(a5==1)&&(((a3==5)&&((!(a4==1)&&(!(a22==1)&&((a20==1)&&(((a18==1)&&(input==1))&&(a27==1)))))&&!(a15==1)))&&!(a6==1)))&&(a0==1))&&(a12==12))){ + a15 = 1; + a6 = 1; + a22 = 1; + a5 = 1; + a12 = 11; + return 21; + } else if(((!(a5==1)&&((!(a27==1)&&(!(a4==1)&&(((a0==1)&&(((input==2)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5))))&&!(a6==1)))&&(a12==12))))&&(a20==1)))&&!(a15==1))){ + a18 = 0; + a4 = 1; + a22 = 1; + a27 = 1; + a15 = 1; + a5 = 1; + a3 = 5; + return 21; + } else if((((a15==1)&&(((((a22==1)&&((a20==1)&&((a0==1)&&((((input==5)&&!(a5==1))&&(a12==11))&&!(a18==1)))))&&(a3==7))&&(a4==1))&&(a6==1)))&&!(a27==1))){ + a12 = 12; + a18 = 1; + a27 = 1; + a6 = 0; + a5 = 1; + a3 = 5; + a4 = 0; + return 21; + } else if(((!(a4==1)&&((((a15==1)&&((((!(a5==1)&&((input==5)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a6==1))&&(a3==4))&&(a12==12)))&&(a20==1))&&(a27==1)))&&(a0==1))){ + a18 = 1; + a6 = 1; + a5 = 1; + a12 = 11; + a22 = 1; + a3 = 6; + return 26; + } else if(((a6==1)&&((((a3==4)&&(((a5==1)&&((!(a15==1)&&(!(a22==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a12==11))))&&(a20==1)))&&(a4==1)))&&!(a0==1))&&(a27==1)))){ + a3 = 5; + a12 = 10; + a15 = 1; + a4 = 0; + a6 = 0; + a18 = 0; + a5 = 0; + a0 = 1; + a22 = 1; + return -1; + } else if((((((((((a4==1)&&((input==6)&&(((a3==7)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6))))))&&(a20==1))&&!(a27==1))&&(a0==1))&&(a6==1))&&!(a15==1))&&!(a5==1))&&(a12==9))){ + a12 = 8; + a27 = 1; + a3 = 4; + a0 = 0; + a5 = 1; + a22 = 1; + a18 = 0; + return 26; + } else if(((((a12==10)&&((a5==1)&&(((a20==1)&&(((a4==1)&&((input==1)&&((((a3==5)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==5)))||(((a22==1)&&(a18==1))&&(a3==6)))))&&!(a27==1)))&&(a15==1))))&&(a0==1))&&(a6==1))){ + a18 = 1; + a27 = 1; + a3 = 5; + a22 = 0; + return 26; + } else if(((a15==1)&&((!(a6==1)&&((!(a0==1)&&(!(a18==1)&&((a4==1)&&((a3==5)&&((((a12==8)&&(input==5))&&(a20==1))&&(a22==1))))))&&(a5==1)))&&(a27==1)))){ + a0 = 1; + a18 = 1; + a27 = 0; + a12 = 9; + return 21; + } else if(((!(a5==1)&&((((a20==1)&&(((((input==4)&&((((!(a22==1)&&(a18==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4)))||((a3==5)&&((a18==1)&&(a22==1)))))&&!(a0==1))&&(a4==1))&&(a12==11)))&&!(a15==1))&&(a6==1)))&&(a27==1))){ + a5 = 1; + a0 = 1; + a3 = 4; + a12 = 9; + a22 = 0; + a27 = 0; + a18 = 0; + return 21; + } else if(((a12==8)&&(((a20==1)&&((a22==1)&&(!(a6==1)&&((a3==5)&&((a0==1)&&((((((a18==1)||!(a18==1))&&(input==2))&&(a15==1))&&!(a5==1))&&!(a27==1)))))))&&(a4==1)))){ + a12 = 10; + a27 = 1; + a6 = 1; + a3 = 4; + a18 = 0; + a22 = 0; + a4 = 0; + return -1; + } else if(((a4==1)&&((a6==1)&&((a12==10)&&(!(a5==1)&&(((((a3==5)&&((a20==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==6))))&&!(a27==1))&&!(a15==1))&&(a0==1))))))){ + a5 = 1; + a12 = 8; + a27 = 1; + a15 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((!(a27==1)&&(((((a3==7)&&(!(a5==1)&&(((!(a0==1)&&(((a6==1)&&(input==6))&&(a20==1)))&&!(a15==1))&&(a22==1))))&&(a12==8))&&(a18==1))&&!(a4==1)))){ + if((a12==8)){ + a4 = 1; + a5 = 1; + a3 = 4; + a12 = 9; + a27 = 1; + a18 = 0; + a15 = 1; + }else{ + a27 = 1; + a15 = 1; + a0 = 1; + a22 = 0; + a5 = 1; + a3 = 8; + } + return 24; + } else if(((a12==8)&&((!(a27==1)&&(((input==2)&&(((a6==1)&&(((a4==1)&&((((a22==1)&&(a18==1))&&!(a5==1))&&(a15==1)))&&(a3==4)))||((((a3==8)&&((!(a15==1)&&(((a18==1)&&!(a22==1))&&(a5==1)))&&!(a4==1)))&&!(a6==1))||(!(a6==1)&&((a3==8)&&((((!(a22==1)&&!(a18==1))&&(a5==1))&&!(a15==1))&&!(a4==1)))))))&&(a20==1)))&&!(a0==1)))){ + a22 = 1; + a5 = 1; + a15 = 1; + a3 = 6; + a0 = 1; + a4 = 1; + a6 = 1; + a18 = 0; + a12 = 9; + return 26; + } else if(((a27==1)&&((a12==12)&&((a15==1)&&((a20==1)&&(((a6==1)&&(((a5==1)&&((input==4)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))))&&!(a4==1)))&&(a0==1))))))){ + a12 = 11; + a3 = 7; + a22 = 0; + a18 = 0; + a5 = 0; + return -1; + } else if(((((a22==1)&&(((a15==1)&&(((a4==1)&&((((a20==1)&&(!(a27==1)&&(input==6)))&&!(a6==1))&&(a12==9)))&&!(a0==1)))&&!(a5==1)))&&(a3==7))&&(a18==1))){ + if((a15==1)){ + a27 = 1; + a12 = 8; + a5 = 1; + a0 = 1; + }else{ + a5 = 1; + a22 = 0; + a18 = 0; + a4 = 0; + a15 = 0; + a3 = 4; + a27 = 1; + a12 = 8; + } + return -1; + } else if(((!(a4==1)&&((!(a0==1)&&((a12==10)&&((((((input==2)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a20==1))&&!(a6==1))&&(a15==1))&&(a3==5))))&&(a27==1)))&&(a5==1))){ + a22 = 1; + a6 = 1; + a12 = 8; + a4 = 1; + a0 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((((a3==7)&&((!(a0==1)&&((a22==1)&&((a20==1)&&(((a5==1)&&((((input==5)&&(a12==9))&&(a18==1))&&!(a27==1)))&&(a4==1)))))&&!(a6==1)))&&!(a15==1))){ + a15 = 1; + a12 = 12; + a22 = 0; + a6 = 1; + a3 = 5; + a4 = 0; + a27 = 1; + return 21; + } else if((((!(a27==1)&&(!(a4==1)&&(((a15==1)&&((((((input==6)&&!(a5==1))&&!(a6==1))&&(a20==1))&&!(a22==1))&&!(a18==1)))&&(a12==12))))&&(a3==4))&&(a0==1))){ + a5 = 1; + a3 = 7; + a4 = 1; + a27 = 1; + a12 = 10; + a15 = 0; + a6 = 1; + return 26; + } else if((((((!(a18==1)&&((a6==1)&&(!(a22==1)&&(((a27==1)&&(((a3==6)&&(input==4))&&(a15==1)))&&!(a4==1)))))&&(a20==1))&&!(a5==1))&&(a12==8))&&(a0==1))){ + a22 = 1; + a6 = 0; + a3 = 8; + a15 = 0; + a0 = 0; + return 26; + } else if(((a3==4)&&((((a12==8)&&(!(a4==1)&&(((((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==6))&&!(a27==1))&&!(a5==1))&&!(a15==1))&&(a0==1))))&&(a20==1))&&!(a6==1)))){ + a18 = 0; + a12 = 12; + a5 = 1; + a3 = 6; + a22 = 0; + return 21; + } else if(((!(a0==1)&&((!(a15==1)&&(!(a6==1)&&(((a5==1)&&(((input==5)&&((((a18==1)&&(a22==1))&&(a3==8))||((((a18==1)&&!(a22==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7)))))&&(a4==1)))&&(a27==1))))&&(a12==8)))&&(a20==1))){ + a12 = 9; + a5 = 0; + a0 = 1; + a6 = 1; + a22 = 0; + a27 = 0; + a4 = 0; + a18 = 0; + a3 = 4; + return 21; + } else if(((((((a6==1)&&((a0==1)&&(!(a15==1)&&((a12==8)&&((a27==1)&&(((a3==5)&&(input==1))&&(a22==1)))))))&&(a20==1))&&!(a4==1))&&(a18==1))&&(a5==1))){ + a4 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if((((((a20==1)&&((a18==1)&&(((!(a5==1)&&(((a4==1)&&((a12==10)&&(input==6)))&&!(a22==1)))&&(a3==6))&&(a0==1))))&&!(a27==1))&&(a6==1))&&!(a15==1))){ + a18 = 0; + a3 = 7; + a27 = 1; + a4 = 0; + return 26; + } else if((((a27==1)&&((a22==1)&&((((a3==4)&&((((a6==1)&&((a12==11)&&((input==4)&&((a18==1)||!(a18==1)))))&&(a0==1))&&(a5==1)))&&!(a4==1))&&(a20==1))))&&!(a15==1))){ + a22 = 0; + a15 = 1; + a18 = 1; + a4 = 1; + a12 = 10; + a3 = 7; + return 26; + } else if((((!(a6==1)&&((((((!(a27==1)&&(((a20==1)&&(input==6))&&(a12==11)))&&(a3==6))&&(a4==1))&&!(a18==1))&&(a15==1))&&(a22==1)))&&(a5==1))&&(a0==1))){ + if((a4==1)){ + a27 = 1; + a0 = 0; + a12 = 10; + a4 = 0; + a6 = 1; + a5 = 0; + }else{ + a6 = 1; + a22 = 0; + a27 = 1; + a3 = 5; + a5 = 0; + } + return 26; + } else if((!(a6==1)&&((((((!(a4==1)&&((!(a27==1)&&(!(a0==1)&&(((a18==1)||!(a18==1))&&(input==6))))&&(a3==6)))&&(a20==1))&&(a12==8))&&(a22==1))&&!(a15==1))&&!(a5==1)))){ + a6 = 1; + a5 = 1; + a0 = 1; + a15 = 1; + a3 = 8; + a27 = 1; + a18 = 1; + return 21; + } else if(((a3==8)&&((a6==1)&&(((a15==1)&&(((a12==8)&&((!(a27==1)&&((((input==1)&&((a18==1)||!(a18==1)))&&!(a22==1))&&(a4==1)))&&!(a0==1)))&&(a5==1)))&&(a20==1))))){ + a4 = 0; + a18 = 1; + a15 = 0; + a27 = 1; + a5 = 0; + return 21; + } else if((((a27==1)&&(((((a0==1)&&((a3==6)&&((a6==1)&&((a5==1)&&((input==5)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))))))&&(a20==1))&&(a12==9))&&!(a15==1)))&&!(a4==1))){ + a18 = 1; + a22 = 0; + a12 = 8; + a15 = 1; + a6 = 0; + a4 = 1; + a27 = 0; + return 24; + } else if((!(a5==1)&&(((a18==1)&&((((a12==8)&&((!(a15==1)&&((a6==1)&&(((a22==1)&&(input==3))&&(a20==1))))&&!(a0==1)))&&!(a4==1))&&(a3==4)))&&(a27==1)))){ + a5 = 1; + a0 = 1; + a4 = 1; + a15 = 1; + return -1; + } else if(((((a27==1)&&(!(a6==1)&&(!(a15==1)&&((a20==1)&&(((a3==4)&&((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==3))&&(a5==1)))&&(a4==1))))))&&(a12==8))&&!(a0==1))){ + a4 = 0; + a12 = 11; + a22 = 0; + a0 = 1; + a15 = 1; + a18 = 1; + a5 = 0; + return 26; + } else if(((a6==1)&&(!(a0==1)&&((a20==1)&&((a12==8)&&(((a4==1)&&(((a5==1)&&((input==1)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))))&&!(a27==1)))&&(a15==1))))))){ + a27 = 1; + a6 = 0; + a3 = 5; + a18 = 1; + a22 = 0; + a0 = 1; + return 26; + } else if((((a20==1)&&(!(a27==1)&&(((((!(a4==1)&&(((!(a5==1)&&(!(a18==1)&&!(a22==1)))&&!(a15==1))&&(a12==9)))&&(a3==8))&&!(a6==1))||((a6==1)&&((a3==4)&&((a4==1)&&((a12==10)&&(((a5==1)&&((a22==1)&&(a18==1)))&&(a15==1)))))))&&(input==4))))&&!(a0==1))){ + a27 = 1; + a0 = 1; + a18 = 0; + a22 = 1; + a15 = 1; + a12 = 8; + a5 = 1; + a3 = 5; + a6 = 0; + a4 = 1; + return -1; + } else if(((!(a0==1)&&((((((((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==4))&&(a27==1))&&(a12==9))&&(a15==1))&&(a20==1))&&!(a5==1))&&(a4==1)))&&!(a6==1))){ + a18 = 0; + a3 = 6; + a15 = 0; + a22 = 0; + a12 = 10; + a0 = 1; + a5 = 1; + return 26; + } else if((((a15==1)&&(!(a4==1)&&(((a12==12)&&(((a20==1)&&(!(a27==1)&&((((a3==6)&&(!(a18==1)&&(a22==1)))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1)))))&&(input==2))))&&(a0==1)))&&!(a6==1))))&&(a5==1))){ + a5 = 0; + a22 = 1; + a3 = 5; + a0 = 0; + a6 = 1; + a27 = 1; + a12 = 11; + a18 = 1; + return -1; + } else if(((a5==1)&&((a20==1)&&((a6==1)&&(((((((input==1)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5))))&&!(a4==1))&&!(a15==1))&&!(a0==1))&&!(a27==1))&&(a12==11)))))){ + if((a5==1)){ + a18 = 1; + a6 = 0; + a22 = 1; + a15 = 1; + a4 = 1; + a27 = 1; + a3 = 6; + a0 = 1; + a12 = 8; + }else{ + a12 = 10; + a15 = 1; + a27 = 1; + a4 = 1; + a3 = 4; + a5 = 0; + a22 = 1; + a18 = 0; + } + return 21; + } else if(((a27==1)&&(((!(a6==1)&&((a22==1)&&((!(a0==1)&&((a3==8)&&((((input==6)&&((a18==1)||!(a18==1)))&&(a5==1))&&(a12==9))))&&(a15==1))))&&(a20==1))&&!(a4==1)))){ + a18 = 1; + a0 = 1; + a22 = 0; + a15 = 0; + a12 = 11; + return 26; + } else if((((a6==1)&&(((((((!(a15==1)&&(((a12==11)&&(input==1))&&(a18==1)))&&(a4==1))&&(a20==1))&&!(a27==1))&&!(a22==1))&&!(a0==1))&&(a3==5)))&&(a5==1))){ + a4 = 0; + a12 = 9; + a6 = 0; + return 21; + } else if((!(a0==1)&&((!(a5==1)&&((a22==1)&&((((((a18==1)&&((a12==8)&&((input==5)&&(a15==1))))&&(a27==1))&&!(a6==1))&&(a20==1))&&(a3==5))))&&(a4==1)))){ + a22 = 0; + a3 = 7; + a6 = 1; + a12 = 11; + a4 = 0; + a0 = 1; + return -1; + } else if(((!(a4==1)&&(((a3==8)&&((a20==1)&&((!(a15==1)&&(((a0==1)&&((!(a18==1)&&(input==3))&&!(a6==1)))&&(a12==11)))&&!(a22==1))))&&!(a5==1)))&&(a27==1))){ + if((a15==1)){ + a0 = 0; + a5 = 1; + a3 = 7; + a12 = 9; + }else{ + a3 = 6; + a27 = 0; + a22 = 1; + } + return 26; + } else if((((a4==1)&&(!(a5==1)&&((a3==8)&&((!(a0==1)&&(((a18==1)&&((((input==5)&&!(a15==1))&&(a12==9))&&(a20==1)))&&(a22==1)))&&(a6==1)))))&&!(a27==1))){ + a5 = 1; + a3 = 6; + a12 = 8; + a27 = 1; + a0 = 1; + a15 = 1; + a22 = 0; + return 26; + } else if(((((a0==1)&&((!(a6==1)&&((a27==1)&&((((input==2)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1)))))&&(a4==1))&&(a20==1))))&&(a12==9)))&&!(a5==1))&&!(a15==1))){ + a3 = 6; + a6 = 1; + a12 = 12; + a15 = 1; + a22 = 1; + a18 = 1; + return 26; + } else if((!(a0==1)&&(!(a5==1)&&((((a15==1)&&((a4==1)&&(((a20==1)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==3)))&&(a6==1))))&&(a27==1))&&(a12==9))))){ + a12 = 10; + a18 = 0; + a22 = 0; + a3 = 8; + a0 = 1; + return -1; + } else if((((a15==1)&&(!(a6==1)&&(((a20==1)&&(((a5==1)&&((((((a18==1)||!(a18==1))&&(input==3))&&(a4==1))&&!(a22==1))&&(a3==8)))&&(a12==8)))&&(a0==1))))&&!(a27==1))){ + a5 = 0; + a3 = 6; + a6 = 1; + a18 = 0; + a12 = 12; + a22 = 1; + a27 = 1; + return 21; + } else if(((((a5==1)&&(((a20==1)&&(((a4==1)&&(!(a18==1)&&(((a12==10)&&((input==3)&&(a3==6)))&&!(a15==1))))&&(a6==1)))&&(a22==1)))&&(a27==1))&&!(a0==1))){ + a12 = 11; + a22 = 0; + a27 = 0; + a3 = 4; + a0 = 1; + return 24; + } else if(((a5==1)&&(!(a4==1)&&((a3==8)&&(((((((a27==1)&&(((input==1)&&(a12==10))&&(a18==1)))&&(a0==1))&&!(a15==1))&&(a22==1))&&(a20==1))&&!(a6==1)))))){ + if((a5==1)){ + a3 = 5; + a27 = 0; + a18 = 0; + a12 = 12; + a5 = 0; + }else{ + a3 = 6; + a15 = 1; + a4 = 1; + a27 = 0; + } + return 21; + } else if(((a6==1)&&((a5==1)&&(((a3==6)&&((a12==11)&&((a0==1)&&(((a4==1)&&(!(a27==1)&&((input==6)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&!(a15==1)))))&&(a20==1))))){ + a4 = 0; + a3 = 4; + a27 = 1; + a12 = 12; + a22 = 1; + a6 = 0; + a18 = 0; + return 26; + } else if((!(a5==1)&&(!(a27==1)&&((((a6==1)&&(((a12==9)&&(((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==6))&&(a20==1)))&&(a15==1)))&&!(a0==1))&&!(a4==1))))){ + if((a0==1)){ + a0 = 1; + a4 = 1; + a12 = 8; + a18 = 1; + a5 = 1; + a22 = 0; + a3 = 4; + a27 = 1; + }else{ + a12 = 11; + a3 = 5; + a22 = 0; + a4 = 1; + a18 = 0; + a15 = 0; + } + return 21; + } else if((!(a22==1)&&((a15==1)&&(((a27==1)&&((!(a0==1)&&(((a20==1)&&(((a5==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a12==12)))&&!(a6==1)))&&(a3==8)))&&!(a4==1))))){ + a4 = 1; + a0 = 1; + a3 = 4; + a6 = 1; + a18 = 1; + a12 = 10; + return -1; + } else if(((a27==1)&&((((a5==1)&&((a4==1)&&((a15==1)&&(!(a0==1)&&((((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a3==7))&&(a12==8))))))&&(a6==1))&&(a20==1)))){ + a0 = 1; + a18 = 1; + a12 = 12; + a3 = 4; + a15 = 0; + a22 = 0; + return 26; + } else if((!(a5==1)&&(((!(a22==1)&&(!(a0==1)&&(((((((input==2)&&((a18==1)||!(a18==1)))&&(a3==5))&&(a12==11))&&(a6==1))&&(a15==1))&&!(a4==1))))&&(a20==1))&&(a27==1)))){ + a4 = 1; + a15 = 0; + a12 = 10; + a3 = 4; + a22 = 1; + a0 = 1; + a18 = 1; + a27 = 0; + return 26; + } else if((((a6==1)&&((a20==1)&&(!(a0==1)&&(((a4==1)&&((a12==11)&&((a22==1)&&(!(a15==1)&&(((a27==1)&&(input==2))&&(a3==5))))))&&(a5==1)))))&&(a18==1))){ + a22 = 0; + a0 = 1; + a4 = 0; + a12 = 9; + a3 = 7; + a15 = 1; + return 21; + } else if((!(a15==1)&&((((a3==4)&&(!(a27==1)&&((a18==1)&&(!(a5==1)&&((a12==9)&&((((input==1)&&(a20==1))&&(a0==1))&&(a6==1)))))))&&!(a4==1))&&(a22==1)))){ + a12 = 11; + a27 = 1; + a15 = 1; + a22 = 0; + a3 = 5; + return -1; + } else if(((!(a6==1)&&((((((a20==1)&&(((input==1)&&((((a22==1)&&!(a18==1))&&(a3==8))||(((!(a18==1)&&!(a22==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))))&&(a27==1)))&&(a12==11))&&(a5==1))&&(a4==1))&&(a0==1)))&&(a15==1))){ + a15 = 0; + a22 = 0; + a12 = 8; + a3 = 5; + a18 = 0; + return 26; + } else if((((!(a0==1)&&(((a20==1)&&(((((a5==1)&&(!(a15==1)&&((input==3)&&(a3==8))))&&(a18==1))&&(a22==1))&&(a6==1)))&&!(a4==1)))&&(a12==9))&&!(a27==1))){ + if((a3==7)){ + a18 = 0; + a27 = 1; + a15 = 1; + a6 = 0; + a4 = 1; + a5 = 0; + a0 = 1; + a12 = 8; + }else{ + a15 = 1; + a0 = 1; + a3 = 5; + a12 = 8; + a27 = 1; + } + return -1; + } else if(((!(a4==1)&&((((a0==1)&&((a12==11)&&(!(a15==1)&&((a20==1)&&(!(a6==1)&&((((a18==1)||!(a18==1))&&(input==4))&&!(a22==1)))))))&&(a3==4))&&!(a27==1)))&&!(a5==1))){ + if((a27==1)){ + a5 = 1; + a15 = 1; + a18 = 1; + a27 = 1; + a0 = 0; + a22 = 1; + }else{ + a18 = 1; + a4 = 1; + a3 = 6; + a12 = 10; + a27 = 1; + } + return 21; + } else if(((((a12==11)&&(!(a22==1)&&(!(a18==1)&&((!(a0==1)&&((((a4==1)&&((input==1)&&!(a27==1)))&&(a15==1))&&(a20==1)))&&(a5==1)))))&&(a3==8))&&!(a6==1))){ + a27 = 1; + a22 = 1; + a3 = 5; + a15 = 0; + a5 = 0; + a18 = 1; + a12 = 8; + return -1; + } else if((!(a6==1)&&((((a5==1)&&(!(a27==1)&&(((!(a22==1)&&((!(a0==1)&&(!(a18==1)&&(input==2)))&&(a12==9)))&&(a3==6))&&(a4==1))))&&(a20==1))&&!(a15==1)))){ + a6 = 1; + a3 = 4; + a15 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + a27 = 1; + return 24; + } else if((((((((a27==1)&&((((input==2)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8)))||((a3==8)&&(!(a18==1)&&(a22==1)))))&&(a0==1))&&(a12==9)))&&(a5==1))&&!(a15==1))&&(a6==1))&&(a20==1))&&!(a4==1))){ + if((a22==1)){ + a12 = 12; + a22 = 1; + a3 = 6; + a18 = 1; + a4 = 1; + a27 = 0; + a5 = 0; + }else{ + a3 = 6; + a15 = 1; + a18 = 0; + a22 = 0; + a12 = 11; + } + return 21; + } else if((!(a6==1)&&(!(a4==1)&&((a20==1)&&(((a27==1)&&((a12==11)&&(!(a0==1)&&((a15==1)&&((input==5)&&(((a3==7)&&((a22==1)&&(a18==1)))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))))))))&&(a5==1)))))){ + a22 = 1; + a3 = 4; + a27 = 0; + a12 = 9; + a0 = 1; + a18 = 1; + return -1; + } else if((((a5==1)&&(((a20==1)&&(((((a6==1)&&(((input==4)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a0==1)))&&(a27==1))&&!(a4==1))&&(a3==6)))&&(a12==9)))&&!(a15==1))){ + if((a20==1)){ + a0 = 0; + a4 = 1; + a12 = 10; + a18 = 0; + a22 = 1; + }else{ + a6 = 0; + a18 = 0; + a12 = 11; + a22 = 0; + } + return 24; + } else if(((a12==10)&&(((a3==5)&&((a20==1)&&(!(a5==1)&&((((a27==1)&&((!(a22==1)&&((input==6)&&((a18==1)||!(a18==1))))&&!(a15==1)))&&(a0==1))&&!(a6==1)))))&&(a4==1)))){ + a18 = 0; + a5 = 1; + a4 = 0; + a0 = 0; + a6 = 1; + a3 = 7; + return 26; + } else if((((a12==10)&&(((((a27==1)&&(!(a4==1)&&(((input==4)&&(((!(a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5)))))&&(a5==1))))&&(a15==1))&&(a6==1))&&!(a0==1)))&&(a20==1))){ + a22 = 1; + a0 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + a4 = 1; + return -1; + } else if(((!(a6==1)&&((a4==1)&&((((a12==9)&&(((a27==1)&&((((!(a18==1)&&(a22==1))&&(a3==7))||(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1)))))&&(input==5)))&&!(a5==1)))&&(a0==1))&&!(a15==1))))&&(a20==1))){ + if((a20==1)){ + a5 = 1; + a3 = 8; + a18 = 0; + a12 = 8; + a22 = 0; + a0 = 0; + }else{ + a15 = 1; + a18 = 0; + a0 = 0; + a4 = 0; + a22 = 1; + a3 = 6; + } + return 21; + } else if(((a20==1)&&((!(a4==1)&&(!(a22==1)&&((((a0==1)&&((a27==1)&&(((a12==8)&&((input==2)&&(a3==8)))&&!(a18==1))))&&!(a5==1))&&(a6==1))))&&(a15==1)))){ + a6 = 0; + a12 = 10; + a4 = 1; + a5 = 1; + a15 = 0; + return 21; + } else if(((a12==11)&&((((!(a15==1)&&((((a20==1)&&(((input==3)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a3==6)))&&(a4==1))&&(a5==1)))&&!(a0==1))&&!(a27==1))&&(a6==1)))){ + if((a3==8)){ + a3 = 4; + a18 = 1; + a12 = 8; + a15 = 1; + a22 = 1; + a0 = 1; + a27 = 1; + }else{ + a3 = 8; + a0 = 1; + a12 = 10; + a22 = 0; + a18 = 1; + } + return 26; + } else if(((!(a15==1)&&((a0==1)&&((((a18==1)&&((((a12==11)&&((a27==1)&&((input==3)&&(a3==4))))&&(a20==1))&&!(a5==1)))&&(a6==1))&&!(a22==1))))&&!(a4==1))){ + if((a18==1)){ + a18 = 0; + a12 = 9; + a5 = 1; + a3 = 5; + a0 = 0; + }else{ + a3 = 7; + a4 = 1; + a22 = 1; + a27 = 0; + a6 = 0; + a18 = 0; + } + return 21; + } else if((((a5==1)&&(!(a27==1)&&((((((a20==1)&&((input==4)&&((((a3==4)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))||(((a22==1)&&(a18==1))&&(a3==5)))))&&(a4==1))&&(a0==1))&&(a12==10))&&(a15==1))))&&(a6==1))){ + a27 = 1; + a4 = 0; + a18 = 1; + a3 = 6; + a5 = 0; + a22 = 1; + a6 = 0; + return -1; + } else if((((a3==7)&&((a27==1)&&(((((a5==1)&&(((a6==1)&&(!(a0==1)&&((a4==1)&&(input==3))))&&(a12==12)))&&!(a18==1))&&(a22==1))&&(a20==1))))&&!(a15==1))){ + a18 = 1; + a3 = 4; + a0 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if((((a27==1)&&((a15==1)&&((a6==1)&&((a0==1)&&((((((((a18==1)||!(a18==1))&&(input==6))&&(a12==12))&&!(a4==1))&&(a3==8))&&(a20==1))&&!(a22==1))))))&&(a5==1))){ + a4 = 1; + a22 = 1; + a27 = 0; + a3 = 7; + a18 = 1; + a6 = 0; + return 24; + } else if((((((((a20==1)&&((a3==7)&&((((a6==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a5==1))&&(a27==1))))&&(a12==12))&&(a15==1))&&(a0==1))&&!(a22==1))&&!(a4==1))){ + a3 = 4; + a12 = 8; + a22 = 1; + a18 = 1; + a4 = 1; + return -1; + } else if((((!(a6==1)&&((a20==1)&&((a5==1)&&((a15==1)&&((a12==8)&&(!(a4==1)&&((input==4)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))||((a3==6)&&((a22==1)&&!(a18==1)))))))))))&&(a27==1))&&!(a0==1))){ + a3 = 4; + a22 = 1; + a0 = 1; + a12 = 11; + a5 = 0; + a4 = 1; + a15 = 0; + a18 = 0; + return -1; + } else if(((a12==11)&&(!(a18==1)&&(((((a4==1)&&(((((a27==1)&&((input==4)&&!(a15==1)))&&!(a0==1))&&!(a22==1))&&(a6==1)))&&(a3==8))&&(a5==1))&&(a20==1))))){ + a4 = 0; + a0 = 1; + a18 = 1; + a12 = 10; + a22 = 1; + a3 = 5; + a5 = 0; + a15 = 1; + return 26; + } else if(((a0==1)&&((a22==1)&&((((!(a15==1)&&((a20==1)&&(!(a27==1)&&(((a5==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a12==11)))))&&!(a6==1))&&(a4==1))&&(a3==4))))){ + a12 = 9; + a22 = 0; + a0 = 0; + a15 = 1; + a27 = 1; + a18 = 1; + a3 = 5; + return -1; + } else if(((!(a5==1)&&(((a3==7)&&((a12==9)&&((a18==1)&&(!(a4==1)&&((a0==1)&&((a20==1)&&((!(a22==1)&&(input==4))&&!(a15==1))))))))&&!(a6==1)))&&(a27==1))){ + a3 = 6; + a5 = 1; + a6 = 1; + a18 = 0; + a27 = 0; + return 24; + } else if(((((!(a27==1)&&(!(a5==1)&&((a0==1)&&((a4==1)&&((a12==10)&&(((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))||(((a22==1)&&!(a18==1))&&(a3==6)))&&(input==1)))))))&&!(a6==1))&&(a20==1))&&(a15==1))){ + a18 = 0; + a22 = 1; + a27 = 1; + a6 = 1; + a15 = 0; + a3 = 5; + return 26; + } else if((((a12==8)&&(!(a27==1)&&((a4==1)&&((a20==1)&&(!(a15==1)&&(((input==2)&&((((a3==4)&&((a22==1)&&!(a18==1)))&&!(a6==1))||((((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1)))))))&&!(a5==1)))))))&&(a0==1))){ + a18 = 1; + a6 = 0; + a3 = 8; + a5 = 1; + a22 = 1; + return -1; + } else if((((a3==8)&&((a12==10)&&((((!(a22==1)&&(((!(a15==1)&&((a20==1)&&(input==2)))&&!(a4==1))&&(a5==1)))&&(a18==1))&&!(a6==1))&&(a27==1))))&&!(a0==1))){ + a15 = 1; + a12 = 11; + a4 = 1; + a0 = 1; + a18 = 0; + return 26; + } else if((((a20==1)&&(!(a15==1)&&(!(a4==1)&&(((a12==10)&&((a0==1)&&((!(a6==1)&&(((input==5)&&!(a5==1))&&!(a27==1)))&&!(a18==1))))&&(a22==1)))))&&(a3==5))){ + a15 = 1; + a5 = 1; + a27 = 1; + a3 = 4; + a12 = 8; + a6 = 1; + a18 = 1; + a4 = 1; + return -1; + } else if((((a27==1)&&(((((a0==1)&&((!(a4==1)&&((a15==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==4))))&&(a3==8)))&&(a6==1))&&(a12==9))&&(a5==1)))&&(a20==1))){ + a12 = 8; + a22 = 1; + a3 = 4; + a18 = 1; + a4 = 1; + return -1; + } else if((((((a12==11)&&(!(a15==1)&&((a3==6)&&((a27==1)&&((!(a4==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&!(a6==1)))&&!(a5==1))))))&&!(a0==1))&&!(a22==1))&&(a20==1))){ + a3 = 4; + a15 = 1; + a12 = 8; + a6 = 1; + a4 = 1; + a22 = 1; + a5 = 1; + a0 = 1; + a18 = 1; + return -1; + } else if(((a3==7)&&((((a12==9)&&((((((((input==3)&&!(a6==1))&&(a5==1))&&!(a22==1))&&(a20==1))&&!(a18==1))&&(a27==1))&&(a0==1)))&&(a15==1))&&(a4==1)))){ + a22 = 1; + a12 = 8; + a3 = 4; + a6 = 1; + a18 = 1; + return -1; + } else if((((a6==1)&&((((a12==9)&&(!(a5==1)&&((a4==1)&&(!(a27==1)&&((input==2)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7))))))))&&(a20==1))&&(a15==1)))&&(a0==1))){ + a3 = 7; + a18 = 0; + a22 = 1; + a15 = 0; + a4 = 0; + a12 = 8; + return 26; + } else if(((((a20==1)&&((a3==4)&&(!(a0==1)&&((((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&(a6==1))&&!(a15==1))&&(a4==1))&&!(a27==1)))))&&(a5==1))&&(a12==11))){ + a4 = 0; + a22 = 0; + a12 = 12; + a0 = 1; + a15 = 1; + a27 = 1; + a18 = 0; + return 26; + } else if(((!(a6==1)&&((((a27==1)&&((a5==1)&&(((a4==1)&&((!(a15==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a3==6)))&&!(a0==1))))&&(a22==1))&&(a12==11)))&&(a20==1))){ + a0 = 1; + a18 = 1; + a6 = 1; + a12 = 8; + a3 = 4; + a15 = 1; + return -1; + } else if(((a5==1)&&(((((((a20==1)&&((a6==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))||((a3==5)&&(!(a18==1)&&(a22==1))))&&(input==1))))&&(a4==1))&&(a12==8))&&(a27==1))&&!(a0==1))&&!(a15==1)))){ + if((a3==7)){ + a3 = 5; + a6 = 0; + a18 = 1; + a15 = 1; + a5 = 0; + a22 = 1; + }else{ + a0 = 1; + a5 = 0; + a3 = 7; + a22 = 0; + a12 = 11; + a18 = 1; + } + return 24; + } else if((((a27==1)&&(((!(a4==1)&&(((a6==1)&&(!(a15==1)&&((input==1)&&((((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1))))||((a3==7)&&((a22==1)&&(a18==1)))))))&&(a12==11)))&&!(a5==1))&&(a0==1)))&&(a20==1))){ + a6 = 0; + a15 = 1; + a3 = 5; + a18 = 1; + a22 = 1; + a5 = 1; + return -1; + } else if((((((a0==1)&&((((!(a22==1)&&(((a6==1)&&((input==2)&&(a12==9)))&&(a20==1)))&&(a4==1))&&(a3==6))&&(a27==1)))&&!(a18==1))&&(a5==1))&&(a15==1))){ + a3 = 4; + a22 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if(((((!(a5==1)&&((a3==4)&&(!(a15==1)&&(!(a6==1)&&((((input==5)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a0==1))&&!(a4==1))))))&&(a12==8))&&(a20==1))&&(a27==1))){ + a4 = 1; + a15 = 1; + a22 = 1; + a18 = 1; + a12 = 11; + a6 = 1; + return 21; + } else if((((a12==8)&&((a27==1)&&((a6==1)&&((((!(a18==1)&&((a3==4)&&((a20==1)&&(!(a22==1)&&(input==2)))))&&(a5==1))&&!(a4==1))&&!(a15==1)))))&&!(a0==1))){ + a0 = 1; + a5 = 0; + a12 = 10; + a15 = 1; + return 21; + } else if((((a3==5)&&((((a22==1)&&((!(a0==1)&&(((a12==9)&&(!(a5==1)&&((a20==1)&&(input==6))))&&!(a18==1)))&&(a4==1)))&&!(a15==1))&&!(a27==1)))&&!(a6==1))){ + if((a22==1)){ + a6 = 1; + a3 = 8; + a5 = 1; + a4 = 0; + a12 = 8; + }else{ + a12 = 8; + a6 = 1; + a15 = 1; + a27 = 1; + a3 = 4; + a18 = 1; + } + return -1; + } else if(((!(a6==1)&&(((a12==11)&&((a0==1)&&((a20==1)&&((!(a15==1)&&((((input==5)&&((a18==1)||!(a18==1)))&&(a5==1))&&(a3==8)))&&(a27==1)))))&&!(a4==1)))&&(a22==1))){ + a18 = 0; + a15 = 1; + a4 = 1; + a3 = 5; + return -1; + } else if(((a15==1)&&(((a20==1)&&(((!(a27==1)&&(!(a4==1)&&(!(a6==1)&&((input==2)&&(((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))))))&&(a5==1))&&(a12==8)))&&(a0==1)))){ + a3 = 8; + a4 = 1; + a22 = 0; + a12 = 10; + a15 = 0; + a18 = 1; + return 26; + } else if(((((a20==1)&&(!(a22==1)&&(((((a12==10)&&(!(a0==1)&&((a3==4)&&((input==2)&&!(a27==1)))))&&(a15==1))&&(a18==1))&&(a4==1))))&&(a6==1))&&!(a5==1))){ + a5 = 1; + a3 = 6; + a12 = 9; + a27 = 1; + a15 = 0; + return 26; + } else if(((((a3==8)&&(!(a0==1)&&(!(a4==1)&&((!(a6==1)&&((((((a18==1)||!(a18==1))&&(input==6))&&(a15==1))&&!(a22==1))&&(a12==10)))&&!(a27==1)))))&&(a5==1))&&(a20==1))){ + a3 = 7; + a18 = 0; + a27 = 1; + a12 = 8; + return 21; + } else if((!(a4==1)&&(((a12==10)&&(((!(a15==1)&&((a6==1)&&((((a22==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a27==1))&&(a0==1))))&&(a5==1))&&(a20==1)))&&(a3==6)))){ + a6 = 0; + a27 = 0; + a5 = 0; + a18 = 0; + a12 = 9; + return 26; + } else if(((a3==6)&&((((((a12==10)&&((a4==1)&&((!(a5==1)&&(!(a6==1)&&((input==3)&&(a22==1))))&&(a27==1))))&&(a15==1))&&!(a18==1))&&(a0==1))&&(a20==1)))){ + a22 = 0; + a4 = 0; + a5 = 1; + a3 = 7; + return -1; + } else if((((a6==1)&&((((a15==1)&&((a20==1)&&(!(a0==1)&&((a3==8)&&((a12==10)&&((((a18==1)||!(a18==1))&&(input==2))&&!(a27==1)))))))&&!(a5==1))&&(a4==1)))&&!(a22==1))){ + a4 = 0; + a3 = 7; + a15 = 0; + a22 = 1; + a27 = 1; + a12 = 11; + a0 = 1; + a18 = 0; + return -1; + } else if(((a3==6)&&((!(a4==1)&&((!(a6==1)&&((a18==1)&&((!(a27==1)&&((!(a15==1)&&((input==2)&&!(a0==1)))&&(a12==10)))&&!(a22==1))))&&(a20==1)))&&!(a5==1)))){ + a15 = 1; + a12 = 11; + a3 = 8; + a5 = 1; + a18 = 0; + return 21; + } else if(((a12==10)&&(((a3==5)&&((((!(a15==1)&&(((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==4))&&!(a27==1))&&(a6==1)))&&(a4==1))&&(a0==1))&&!(a5==1)))&&(a20==1)))){ + a27 = 1; + a12 = 8; + a15 = 1; + a5 = 1; + a22 = 0; + a18 = 0; + a0 = 0; + return -1; + } else if(((a22==1)&&((a3==8)&&(!(a15==1)&&((((((((a20==1)&&((input==1)&&!(a5==1)))&&(a27==1))&&!(a4==1))&&(a12==10))&&!(a0==1))&&(a18==1))&&(a6==1)))))){ + a5 = 1; + a0 = 1; + a15 = 1; + a4 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((!(a15==1)&&((((a5==1)&&((a12==8)&&(((a6==1)&&(!(a27==1)&&(!(a4==1)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==2)))))&&(a20==1))))&&(a3==6))&&(a0==1)))){ + a22 = 0; + a3 = 7; + a27 = 1; + a12 = 10; + a18 = 1; + return -1; + } else if((((((!(a4==1)&&((a20==1)&&((a12==8)&&((((input==6)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a27==1))&&(a15==1)))))&&(a3==4))&&!(a5==1))&&(a6==1))&&(a0==1))){ + a22 = 0; + a6 = 0; + a4 = 1; + a27 = 1; + a18 = 1; + a3 = 7; + a12 = 10; + return -1; + } else if(((a12==11)&&(((!(a5==1)&&(!(a15==1)&&(((!(a18==1)&&(((a6==1)&&((a20==1)&&(input==4)))&&!(a22==1)))&&!(a4==1))&&!(a27==1))))&&(a0==1))&&(a3==8)))){ + a12 = 8; + a5 = 1; + a15 = 1; + a27 = 1; + a4 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((a27==1)&&(((a4==1)&&((!(a5==1)&&((!(a15==1)&&((input==3)&&(((((!(a22==1)&&(a18==1))&&(a3==8))&&(a6==1))||(((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1)))||(!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1)))))))&&(a20==1)))&&(a12==9)))&&!(a0==1)))){ + a22 = 1; + a4 = 0; + a15 = 1; + a18 = 1; + a0 = 1; + a12 = 12; + a3 = 5; + a6 = 0; + a5 = 1; + return 21; + } else if(((a0==1)&&(((a5==1)&&(!(a6==1)&&((!(a27==1)&&((a20==1)&&((!(a4==1)&&((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a15==1))))&&(a3==4))))&&(a12==9)))){ + a18 = 1; + a4 = 1; + a22 = 0; + a3 = 7; + a15 = 0; + a6 = 1; + return 21; + } else if(((a20==1)&&((!(a4==1)&&((a6==1)&&(!(a27==1)&&((a15==1)&&(!(a5==1)&&(((input==6)&&((((!(a22==1)&&(a18==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7)))||((a3==8)&&((a22==1)&&(a18==1)))))&&!(a0==1)))))))&&(a12==8)))){ + if((a5==1)){ + a3 = 6; + a27 = 1; + a0 = 1; + a5 = 1; + a18 = 1; + a22 = 1; + }else{ + a12 = 11; + a0 = 1; + a15 = 0; + a18 = 1; + a4 = 1; + a5 = 1; + a22 = 0; + a3 = 6; + } + return 21; + } else if((((a27==1)&&((((((((input==1)&&((((a22==1)&&(a18==1))&&(a3==6))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))))&&(a6==1))&&(a12==9))&&!(a5==1))&&!(a15==1))&&(a20==1))&&(a0==1)))&&(a4==1))){ + if((a12==10)){ + a4 = 0; + a22 = 1; + a15 = 1; + a18 = 1; + a0 = 0; + a12 = 8; + a3 = 6; + }else{ + a6 = 0; + a18 = 1; + a4 = 0; + a15 = 1; + a22 = 1; + a3 = 6; + a12 = 8; + a0 = 0; + } + return 26; + } else if((!(a22==1)&&(((a4==1)&&((a15==1)&&(((a12==9)&&((a5==1)&&(((a3==6)&&(!(a0==1)&&((input==4)&&(a20==1))))&&!(a6==1))))&&!(a27==1))))&&(a18==1)))){ + if((a3==7)){ + a3 = 7; + a5 = 0; + a27 = 1; + a12 = 11; + a15 = 0; + a6 = 1; + a22 = 1; + a0 = 1; + }else{ + a3 = 4; + a18 = 0; + a6 = 1; + a0 = 1; + a27 = 1; + a4 = 0; + a12 = 8; + } + return 26; + } else if(((a12==12)&&(((a22==1)&&((a15==1)&&((!(a5==1)&&(((a4==1)&&(((a20==1)&&((a6==1)&&(input==3)))&&(a3==7)))&&(a18==1)))&&!(a27==1))))&&(a0==1)))){ + a12 = 8; + a27 = 1; + a0 = 0; + a3 = 5; + a18 = 0; + return -1; + } else if(((!(a5==1)&&((a20==1)&&((((((a3==6)&&(((a4==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&!(a27==1)))&&(a6==1))&&!(a15==1))&&(a0==1))&&(a12==10))))&&(a22==1))){ + a12 = 12; + a4 = 0; + a18 = 1; + a27 = 1; + a3 = 5; + a5 = 1; + a22 = 0; + return 21; + } else if(((a22==1)&&((a3==6)&&((((a6==1)&&((((!(a0==1)&&(!(a4==1)&&((input==2)&&((a18==1)||!(a18==1)))))&&(a27==1))&&(a20==1))&&(a12==11)))&&(a15==1))&&!(a5==1))))){ + a22 = 0; + a5 = 1; + a0 = 1; + a18 = 0; + return 21; + } else if(((a22==1)&&(!(a5==1)&&((((a20==1)&&(!(a6==1)&&((((a0==1)&&((((a18==1)||!(a18==1))&&(input==5))&&(a12==8)))&&!(a27==1))&&(a3==4))))&&(a15==1))&&(a4==1))))){ + a27 = 1; + a18 = 0; + a4 = 0; + a3 = 7; + a6 = 1; + a12 = 12; + return 24; + } else if((!(a15==1)&&((a20==1)&&((((!(a27==1)&&((!(a18==1)&&(!(a5==1)&&((!(a6==1)&&(input==3))&&(a12==9))))&&(a0==1)))&&(a4==1))&&(a22==1))&&(a3==6))))){ + a22 = 0; + a18 = 1; + a15 = 1; + a12 = 11; + a5 = 1; + return 24; + } else if((!(a0==1)&&((a12==9)&&((((!(a22==1)&&(((a4==1)&&((a6==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a3==4))))&&!(a15==1)))&&(a20==1))&&!(a27==1))&&!(a5==1))))){ + if((a22==1)){ + a3 = 8; + a12 = 11; + a6 = 0; + a18 = 1; + a27 = 1; + a4 = 0; + a22 = 1; + }else{ + a22 = 1; + a27 = 1; + a12 = 8; + a6 = 0; + a18 = 1; + } + return 21; + } else if(((a20==1)&&((a12==11)&&(!(a27==1)&&(!(a4==1)&&(!(a0==1)&&((a15==1)&&((!(a5==1)&&((a3==7)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==4))))&&(a6==1))))))))){ + a22 = 1; + a5 = 1; + a6 = 0; + a18 = 1; + a3 = 8; + return -1; + } else if(((a22==1)&&(((!(a5==1)&&((a6==1)&&(((!(a27==1)&&(((a12==10)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a0==1)))&&(a3==4))&&(a4==1))))&&(a20==1))&&!(a15==1)))){ + a6 = 0; + a18 = 1; + a27 = 1; + return 26; + } else if((((a20==1)&&((a15==1)&&((!(a6==1)&&(!(a22==1)&&((((!(a4==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a0==1))&&(a3==7))&&!(a27==1))))&&(a12==12))))&&!(a5==1))){ + if((a18==1)){ + a6 = 1; + a3 = 6; + a27 = 1; + a18 = 1; + a12 = 11; + a15 = 0; + a0 = 0; + }else{ + a18 = 1; + a12 = 10; + a4 = 1; + a22 = 1; + a5 = 1; + a27 = 1; + a3 = 8; + } + return 24; + } else if((((a6==1)&&((!(a0==1)&&((!(a27==1)&&(!(a15==1)&&(((input==6)&&((((a18==1)&&(a22==1))&&(a3==7))||((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1))))))&&!(a4==1))))&&(a5==1)))&&(a20==1)))&&(a12==9))){ + if((a15==1)){ + a27 = 1; + a0 = 1; + a3 = 4; + a15 = 1; + a12 = 8; + a22 = 1; + a18 = 0; + }else{ + a5 = 0; + a4 = 1; + a0 = 1; + a15 = 1; + a22 = 0; + a3 = 7; + a18 = 0; + a12 = 12; + } + return -1; + } else if(((((a20==1)&&(((a0==1)&&(((a3==6)&&((a15==1)&&(((input==5)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a12==8))))&&(a4==1)))&&(a6==1)))&&!(a5==1))&&(a27==1))){ + if((a5==1)){ + a12 = 9; + a15 = 0; + a0 = 0; + a22 = 1; + a5 = 1; + a18 = 1; + a6 = 0; + }else{ + a4 = 0; + a18 = 0; + a12 = 10; + a0 = 0; + a22 = 0; + a3 = 8; + } + return 26; + } else if((((a27==1)&&(((a12==11)&&((((((input==5)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a18==1)&&(a22==1)))))&&!(a15==1))&&(a0==1))&&(a6==1))&&(a4==1)))&&(a20==1)))&&!(a5==1))){ + a22 = 0; + a18 = 0; + a4 = 0; + a27 = 0; + a15 = 1; + a3 = 8; + return 26; + } else if((((!(a6==1)&&((!(a15==1)&&(!(a5==1)&&(((a27==1)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==2)))&&(a4==1))))&&(a12==8)))&&!(a0==1))&&(a20==1))){ + a6 = 1; + a3 = 4; + a22 = 1; + a15 = 1; + a0 = 1; + a5 = 1; + a18 = 1; + return -1; + } else if((!(a5==1)&&((!(a4==1)&&((a20==1)&&(((a0==1)&&((((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==3))&&(a15==1))&&(a12==12)))&&(a6==1))))&&(a27==1)))){ + a3 = 6; + a18 = 1; + a22 = 0; + a27 = 0; + a12 = 8; + return 24; + } else if(((a12==11)&&(((a22==1)&&((!(a0==1)&&((a6==1)&&(!(a15==1)&&(((a20==1)&&((!(a18==1)&&(input==3))&&(a27==1)))&&(a4==1)))))&&(a5==1)))&&(a3==5)))){ + a3 = 7; + a6 = 0; + a5 = 0; + a0 = 1; + return 26; + } else if((!(a18==1)&&((a3==8)&&((a20==1)&&((((!(a22==1)&&(!(a15==1)&&((a27==1)&&(((input==3)&&(a12==11))&&!(a4==1)))))&&!(a0==1))&&(a6==1))&&(a5==1)))))){ + a0 = 1; + a4 = 1; + a3 = 6; + a15 = 1; + a12 = 8; + a6 = 0; + a22 = 1; + a5 = 0; + a27 = 0; + return -1; + } else if(((a12==11)&&(((!(a15==1)&&((a0==1)&&((((a3==5)&&((((input==6)&&((a18==1)||!(a18==1)))&&(a4==1))&&(a5==1)))&&(a22==1))&&!(a27==1))))&&(a6==1))&&(a20==1)))){ + if((a0==1)){ + a3 = 6; + a6 = 0; + a0 = 0; + a5 = 0; + a18 = 1; + a12 = 10; + a27 = 1; + a4 = 0; + }else{ + a18 = 0; + a12 = 9; + a3 = 6; + } + return -1; + } else if((((!(a5==1)&&(((a3==5)&&((a27==1)&&((a6==1)&&(!(a0==1)&&((!(a22==1)&&((input==2)&&(a4==1)))&&(a15==1))))))&&!(a18==1)))&&(a20==1))&&(a12==9))){ + a15 = 0; + a22 = 1; + a27 = 0; + a4 = 0; + a12 = 10; + a3 = 8; + a0 = 1; + return -1; + } else if((((a20==1)&&(!(a6==1)&&(!(a5==1)&&((((a12==11)&&((a3==4)&&((a0==1)&&((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))))&&(a27==1))&&(a15==1)))))&&!(a4==1))){ + a6 = 1; + a12 = 10; + a18 = 0; + a5 = 1; + a3 = 7; + a22 = 0; + return -1; + } return calculate_output24(input); + } + + int calculate_output24(int input) { + if((((a27==1)&&((!(a5==1)&&(!(a0==1)&&((a4==1)&&(((a3==7)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==6))&&(a12==10)))&&(a20==1)))))&&!(a15==1)))&&!(a6==1))){ + a3 = 4; + a6 = 1; + a12 = 8; + a22 = 1; + a0 = 1; + a5 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if((((a20==1)&&(((((((a15==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==4))&&(a0==1)))&&(a3==4))&&!(a5==1))&&(a4==1))&&(a12==9))&&!(a27==1)))&&!(a6==1))){ + a22 = 1; + a27 = 1; + a5 = 1; + a18 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if(((a20==1)&&((((a12==9)&&((a3==6)&&(((a6==1)&&(!(a27==1)&&(((input==5)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a0==1))))&&(a15==1))))&&!(a5==1))&&!(a4==1)))){ + if((a22==1)){ + a3 = 4; + a0 = 1; + a27 = 1; + a12 = 8; + a22 = 0; + a5 = 1; + a4 = 1; + a18 = 0; + }else{ + a5 = 1; + a0 = 1; + a22 = 1; + a18 = 1; + a3 = 5; + } + return 26; + } else if((((((((a3==8)&&((!(a15==1)&&(!(a5==1)&&(((a20==1)&&(input==2))&&(a0==1))))&&!(a4==1)))&&!(a18==1))&&(a12==11))&&!(a6==1))&&(a27==1))&&(a22==1))){ + a6 = 1; + a15 = 1; + a22 = 0; + a4 = 1; + a3 = 7; + a5 = 1; + return -1; + } else if((((a3==4)&&(((a20==1)&&(((!(a15==1)&&(((a12==10)&&(((a4==1)&&(input==5))&&(a5==1)))&&(a27==1)))&&(a6==1))&&(a0==1)))&&(a18==1)))&&(a22==1))){ + if((a20==1)){ + a3 = 6; + a0 = 0; + a12 = 11; + } + return 21; + } else if(((((!(a22==1)&&((((a18==1)&&((a12==12)&&((a3==5)&&((a20==1)&&(!(a6==1)&&(input==4))))))&&(a27==1))&&!(a5==1)))&&!(a15==1))&&!(a0==1))&&(a4==1))){ + a6 = 1; + a3 = 4; + a22 = 1; + a0 = 1; + a15 = 1; + a18 = 0; + a4 = 0; + a12 = 8; + a5 = 1; + return 26; + } else if(((a12==8)&&(!(a22==1)&&((((!(a5==1)&&((!(a15==1)&&((a3==5)&&((a6==1)&&((input==1)&&((a18==1)||!(a18==1))))))&&!(a4==1)))&&(a20==1))&&(a27==1))&&(a0==1))))){ + a3 = 7; + a5 = 1; + a18 = 0; + a4 = 1; + a12 = 11; + a6 = 0; + return 24; + } else if(((a6==1)&&((!(a27==1)&&((a12==12)&&(((a3==8)&&((a4==1)&&((((input==6)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a15==1))&&(a20==1))))&&(a5==1))))&&(a0==1)))){ + a22 = 0; + a12 = 9; + a18 = 0; + a3 = 5; + return -1; + } else if((!(a4==1)&&((a3==4)&&(!(a6==1)&&((a18==1)&&(((((a27==1)&&(((a12==10)&&((input==3)&&!(a5==1)))&&(a0==1)))&&!(a22==1))&&(a20==1))&&!(a15==1))))))){ + a3 = 6; + a12 = 8; + a18 = 0; + a22 = 1; + a5 = 1; + a15 = 1; + return -1; + } else if(((a3==4)&&(((((a20==1)&&((!(a27==1)&&(((((input==4)&&!(a4==1))&&(a12==9))&&!(a5==1))&&!(a22==1)))&&!(a18==1)))&&(a6==1))&&!(a0==1))&&(a15==1)))){ + if((a6==1)){ + a3 = 8; + a6 = 0; + a5 = 1; + a4 = 1; + a27 = 1; + a22 = 1; + a12 = 8; + a0 = 1; + }else{ + a18 = 1; + a6 = 0; + a27 = 1; + a5 = 1; + a22 = 1; + } + return -1; + } else if(((!(a6==1)&&(!(a15==1)&&((a5==1)&&((a0==1)&&(!(a27==1)&&((((input==6)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1)))))&&(a12==10))&&(a4==1)))))))&&(a20==1))){ + if((a22==1)){ + a0 = 0; + a3 = 6; + a27 = 1; + a22 = 0; + a5 = 0; + a18 = 0; + }else{ + a18 = 0; + a22 = 0; + a5 = 0; + a27 = 1; + a4 = 0; + a12 = 11; + a3 = 7; + } + return 21; + } else if(((a20==1)&&(((((a3==4)&&((((((a5==1)&&((a15==1)&&(input==5)))&&(a6==1))&&!(a4==1))&&!(a22==1))&&(a0==1)))&&(a27==1))&&(a18==1))&&(a12==10)))){ + a22 = 1; + a18 = 0; + a4 = 1; + a3 = 8; + return -1; + } else if(((a3==7)&&(!(a22==1)&&(!(a6==1)&&(!(a27==1)&&(!(a5==1)&&(((!(a15==1)&&(((a20==1)&&((a12==11)&&(input==5)))&&!(a4==1)))&&(a18==1))&&!(a0==1)))))))){ + a15 = 1; + a4 = 1; + a0 = 1; + a18 = 0; + a27 = 1; + a12 = 8; + a5 = 1; + a3 = 6; + return 21; + } else if(((((a12==12)&&((((a0==1)&&(((!(a4==1)&&((a20==1)&&((input==5)&&((a18==1)||!(a18==1)))))&&(a15==1))&&(a5==1)))&&!(a22==1))&&(a27==1)))&&(a6==1))&&(a3==7))){ + a12 = 11; + a18 = 0; + a15 = 0; + a3 = 5; + a6 = 0; + return 21; + } else if(((!(a4==1)&&((!(a6==1)&&((((a27==1)&&((a12==9)&&(((a3==4)&&((a22==1)&&(input==1)))&&!(a15==1))))&&(a20==1))&&!(a0==1)))&&(a5==1)))&&(a18==1))){ + a0 = 1; + a4 = 1; + a12 = 8; + a15 = 1; + a6 = 1; + return -1; + } else if((!(a27==1)&&(((a15==1)&&(((((!(a18==1)&&((a5==1)&&((a4==1)&&(!(a6==1)&&(input==6)))))&&(a3==4))&&(a0==1))&&(a20==1))&&!(a22==1)))&&(a12==8)))){ + a22 = 1; + a5 = 0; + a4 = 0; + a27 = 1; + a18 = 1; + a12 = 12; + a3 = 6; + return 21; + } else if((((a27==1)&&(!(a15==1)&&((!(a5==1)&&((((a12==9)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==3)))&&!(a4==1))&&(a0==1)))&&!(a6==1))))&&(a20==1))){ + a22 = 0; + a3 = 7; + a27 = 0; + a5 = 1; + a4 = 1; + a18 = 0; + return 21; + } else if((((!(a27==1)&&(!(a5==1)&&(((((a4==1)&&((a12==10)&&((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&(a3==6))&&!(a0==1))&&!(a6==1))))&&!(a15==1))&&(a20==1))){ + a18 = 0; + a22 = 0; + a3 = 8; + a12 = 8; + a0 = 1; + a15 = 1; + a27 = 1; + a5 = 1; + return 26; + } else if((((a22==1)&&((a3==7)&&((a0==1)&&(((((((((a18==1)||!(a18==1))&&(input==5))&&(a5==1))&&(a27==1))&&(a20==1))&&(a12==11))&&!(a4==1))&&(a15==1)))))&&!(a6==1))){ + a18 = 1; + a4 = 1; + a6 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if((((a5==1)&&((a0==1)&&((a4==1)&&((((((input==1)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))||(((a22==1)&&!(a18==1))&&(a3==5))))&&!(a6==1))&&!(a27==1))&&(a12==11))&&(a20==1)))))&&(a15==1))){ + a22 = 1; + a18 = 1; + a15 = 0; + a3 = 6; + a27 = 1; + a4 = 0; + a12 = 12; + return 26; + } else if((((a12==11)&&(((a15==1)&&((a20==1)&&((a22==1)&&(!(a5==1)&&(((a27==1)&&((a6==1)&&((input==2)&&(a3==7))))&&(a4==1))))))&&!(a18==1)))&&(a0==1))){ + if((a6==1)){ + a5 = 1; + a3 = 6; + a6 = 0; + a0 = 0; + a4 = 0; + a18 = 1; + a15 = 0; + a12 = 8; + }else{ + a15 = 0; + a18 = 1; + a5 = 1; + a6 = 0; + a3 = 6; + a27 = 0; + a22 = 0; + } + return 21; + } else if(((a15==1)&&((a22==1)&&((a5==1)&&((a0==1)&&(((!(a4==1)&&((a12==12)&&((a20==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a27==1)))))&&(a3==8))&&(a6==1))))))){ + a3 = 6; + a18 = 1; + a4 = 1; + a22 = 0; + return 26; + } else if(((!(a6==1)&&((a20==1)&&((((a3==5)&&((a15==1)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&!(a0==1))&&(a5==1))))&&(a27==1))&&!(a4==1))))&&(a12==8))){ + a5 = 0; + a0 = 1; + a4 = 1; + a18 = 0; + a12 = 12; + a6 = 1; + a22 = 0; + return 21; + } else if(((a12==10)&&(((((a0==1)&&(((a27==1)&&(((a3==5)&&((input==4)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))))&&!(a6==1)))&&(a20==1)))&&(a5==1))&&(a15==1))&&(a4==1)))){ + a22 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if(((((((a4==1)&&(((((((input==5)&&!(a15==1))&&!(a6==1))&&(a18==1))&&(a3==4))&&(a27==1))&&(a20==1)))&&(a12==12))&&(a22==1))&&(a0==1))&&!(a5==1))){ + a3 = 5; + a18 = 0; + a15 = 1; + a12 = 8; + a27 = 0; + return 24; + } else if(((!(a22==1)&&(((!(a6==1)&&(((!(a27==1)&&((!(a15==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a3==8)))&&!(a5==1))&&(a0==1)))&&(a20==1))&&(a12==9)))&&(a4==1))){ + a5 = 1; + a3 = 5; + a22 = 1; + a12 = 10; + a27 = 1; + a18 = 0; + a6 = 1; + return 21; + } else if((((a20==1)&&((((a15==1)&&((a3==5)&&(!(a4==1)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a0==1))&&!(a5==1)))))&&(a6==1))&&(a27==1)))&&(a12==12))){ + a22 = 0; + a18 = 0; + a3 = 4; + a5 = 1; + return 24; + } else if((((a20==1)&&((((((((a12==10)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==5)))&&!(a0==1))&&(a4==1))&&!(a27==1))&&!(a15==1))&&(a3==8))&&(a6==1)))&&(a5==1))){ + if((a27==1)){ + a22 = 0; + a4 = 0; + a27 = 1; + a18 = 0; + a12 = 8; + a0 = 1; + a15 = 1; + }else{ + a6 = 0; + a3 = 6; + a27 = 1; + a22 = 0; + a18 = 0; + a15 = 1; + a0 = 1; + a12 = 8; + } + return -1; + } else if(((!(a0==1)&&(!(a15==1)&&((a20==1)&&((a27==1)&&(((((input==3)&&(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8))))&&(a4==1))&&(a12==10))&&!(a5==1))))))&&(a6==1))){ + a0 = 1; + a22 = 1; + a5 = 1; + a6 = 0; + a15 = 1; + a12 = 11; + a18 = 0; + a3 = 6; + return 21; + } else if((((a20==1)&&((a12==12)&&((((a4==1)&&((((((a3==8)&&((a22==1)&&!(a18==1)))||(((!(a18==1)&&!(a22==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8))))&&(input==5))&&!(a27==1))&&!(a5==1)))&&!(a15==1))&&!(a6==1))))&&(a0==1))){ + a15 = 1; + a18 = 1; + a6 = 1; + a3 = 5; + a27 = 1; + a22 = 0; + return -1; + } else if(((a20==1)&&(((((!(a5==1)&&((((input==5)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7))))&&(a12==12))&&(a15==1)))&&(a6==1))&&!(a4==1))&&!(a0==1))&&(a27==1)))){ + a22 = 1; + a27 = 0; + a12 = 8; + a3 = 5; + a18 = 1; + return -1; + } else if((((a20==1)&&(((a5==1)&&(((((a3==6)&&(((((a18==1)||!(a18==1))&&(input==3))&&(a4==1))&&(a12==8)))&&(a6==1))&&!(a22==1))&&!(a27==1)))&&(a15==1)))&&(a0==1))){ + if((a6==1)){ + a18 = 1; + a0 = 0; + a3 = 7; + a6 = 0; + a27 = 1; + }else{ + a12 = 12; + a22 = 1; + a27 = 1; + a18 = 0; + a5 = 0; + a3 = 5; + a15 = 0; + } + return -1; + } else if(((a0==1)&&(!(a27==1)&&((!(a4==1)&&(((!(a6==1)&&((a20==1)&&((input==6)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))||(((a22==1)&&!(a18==1))&&(a3==5))))))&&(a12==10))&&(a15==1)))&&(a5==1))))){ + if((a20==1)){ + a0 = 0; + a4 = 1; + a18 = 0; + a3 = 8; + a22 = 0; + a27 = 1; + }else{ + a27 = 1; + a3 = 8; + a15 = 0; + a0 = 0; + a12 = 8; + a18 = 1; + a6 = 1; + a22 = 1; + } + return -1; + } else if(((a3==4)&&(!(a27==1)&&((a0==1)&&(((!(a4==1)&&((a12==10)&&(((a20==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a5==1)))&&!(a22==1))))&&!(a15==1))&&(a6==1)))))){ + a4 = 1; + a15 = 1; + a27 = 1; + a12 = 8; + a22 = 1; + a18 = 1; + return -1; + } else if(((!(a27==1)&&((((a0==1)&&((a12==9)&&((a4==1)&&((a3==6)&&(((!(a18==1)&&(input==5))&&(a22==1))&&!(a6==1))))))&&(a20==1))&&!(a15==1)))&&!(a5==1))){ + a18 = 1; + a5 = 1; + a6 = 1; + a3 = 4; + a27 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if((((((!(a27==1)&&((!(a4==1)&&(!(a5==1)&&(((a20==1)&&((a22==1)&&(input==5)))&&(a3==4))))&&(a18==1)))&&(a12==9))&&!(a6==1))&&!(a0==1))&&(a15==1))){ + if((a3==7)){ + a6 = 1; + a12 = 8; + a0 = 1; + a5 = 1; + a22 = 0; + a4 = 1; + a27 = 1; + }else{ + a15 = 0; + a0 = 1; + a12 = 12; + a22 = 0; + } + return 21; + } else if((((((a5==1)&&((((a20==1)&&((!(a6==1)&&((input==6)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))))&&!(a4==1)))&&!(a0==1))&&!(a15==1)))&&(a12==9))&&(a27==1))&&(a3==7))){ + a22 = 0; + a15 = 1; + a3 = 6; + a4 = 1; + a0 = 1; + a18 = 1; + a5 = 0; + a12 = 12; + return 21; + } else if(((a5==1)&&(((((a6==1)&&((((((a15==1)&&((input==4)&&(a27==1)))&&(a3==8))&&(a18==1))&&(a22==1))&&(a20==1)))&&(a12==10))&&!(a0==1))&&(a4==1)))){ + a4 = 0; + a18 = 0; + a0 = 1; + a27 = 0; + a22 = 0; + a15 = 0; + a3 = 6; + a12 = 9; + return -1; + } else if(((a0==1)&&((a4==1)&&(((((!(a6==1)&&((a5==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))||(((a22==1)&&!(a18==1))&&(a3==5)))&&(input==6))))&&!(a27==1))&&(a20==1))&&(a15==1))&&(a12==11))))){ + a15 = 0; + a3 = 4; + a22 = 0; + a4 = 0; + a18 = 0; + a5 = 0; + a27 = 1; + return 26; + } else if(((a22==1)&&((((a5==1)&&(!(a4==1)&&((a0==1)&&((a20==1)&&((((a6==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a12==11))&&(a3==7))))))&&(a15==1))&&(a27==1)))){ + a18 = 1; + a15 = 0; + a4 = 1; + a22 = 0; + a12 = 10; + return -1; + } else if(((((a20==1)&&((((((a3==6)&&(!(a15==1)&&(((input==6)&&(a27==1))&&(a18==1))))&&!(a4==1))&&!(a0==1))&&(a12==9))&&(a6==1)))&&!(a5==1))&&(a22==1))){ + a12 = 8; + a15 = 1; + a4 = 1; + a3 = 4; + a0 = 1; + a5 = 1; + return -1; + } else if((((a4==1)&&((a20==1)&&((a15==1)&&(((!(a27==1)&&((((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))||(!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1)))))&&(input==3)))&&(a12==9))&&!(a5==1)))))&&(a0==1))){ + a5 = 1; + a12 = 8; + a6 = 0; + a3 = 4; + a22 = 1; + a15 = 0; + a18 = 1; + return -1; + } else if(((!(a0==1)&&((a3==4)&&(!(a6==1)&&(!(a4==1)&&(!(a15==1)&&(!(a27==1)&&(!(a5==1)&&(((a12==9)&&((input==5)&&((a18==1)||!(a18==1))))&&(a20==1)))))))))&&(a22==1))){ + a6 = 1; + a18 = 1; + a15 = 1; + a0 = 1; + a3 = 8; + a4 = 1; + a12 = 8; + a27 = 1; + a5 = 1; + return 26; + } else if((!(a4==1)&&((!(a6==1)&&(!(a27==1)&&(((a0==1)&&((((a20==1)&&((a12==12)&&(((a18==1)||!(a18==1))&&(input==4))))&&!(a22==1))&&(a5==1)))&&!(a15==1))))&&(a3==6)))){ + a0 = 0; + a22 = 1; + a4 = 1; + a27 = 1; + a3 = 5; + a15 = 1; + a12 = 10; + a18 = 1; + return -1; + } else if((!(a27==1)&&(((((a5==1)&&((((a20==1)&&(((((!(a22==1)&&(a18==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4)))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==2)))&&!(a15==1))&&(a0==1)))&&!(a4==1))&&(a12==11))&&!(a6==1)))){ + a12 = 8; + a15 = 1; + a22 = 1; + a6 = 1; + a27 = 1; + a4 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a3==7)&&(((((((a20==1)&&((((a27==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a6==1))&&!(a4==1)))&&!(a0==1))&&(a12==10))&&(a22==1))&&(a5==1))&&!(a15==1)))){ + a0 = 1; + a3 = 5; + a18 = 0; + a27 = 0; + a22 = 0; + return -1; + } else if(((a12==11)&&((a5==1)&&(!(a4==1)&&(((a15==1)&&((a0==1)&&(((a27==1)&&((a3==4)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==4))))&&(a20==1))))&&(a6==1)))))){ + a22 = 1; + a12 = 10; + a3 = 5; + a15 = 0; + a6 = 0; + a27 = 0; + a5 = 0; + a4 = 1; + a18 = 0; + return 21; + } else if(((a6==1)&&(!(a4==1)&&((((((a5==1)&&((a27==1)&&((input==4)&&((((a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&((a18==1)&&!(a22==1)))||((a3==7)&&(!(a18==1)&&!(a22==1))))))))&&!(a0==1))&&(a12==12))&&(a20==1))&&(a15==1))))){ + a6 = 0; + a18 = 1; + a15 = 0; + a0 = 1; + a12 = 10; + a3 = 4; + a22 = 0; + return -1; + } else if(((((a20==1)&&((a3==4)&&(((a6==1)&&((((a5==1)&&((input==3)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a4==1))&&(a12==8)))&&!(a27==1))))&&(a0==1))&&!(a15==1))){ + a27 = 1; + a12 = 10; + a0 = 0; + a18 = 0; + a4 = 1; + a22 = 1; + return 26; + } else if((((((a6==1)&&((((!(a27==1)&&(!(a15==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a12==9))))&&!(a4==1))&&(a20==1))&&!(a0==1)))&&(a22==1))&&(a3==8))&&!(a5==1))){ + a3 = 7; + a18 = 1; + a4 = 1; + a0 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if(((a5==1)&&((a27==1)&&((a6==1)&&(((a4==1)&&((a12==12)&&(((((!(a22==1)&&(input==5))&&(a0==1))&&(a3==7))&&(a18==1))&&(a15==1))))&&(a20==1)))))){ + a5 = 0; + a12 = 10; + a4 = 0; + a15 = 0; + return 21; + } else if(((a0==1)&&(!(a5==1)&&(!(a4==1)&&(!(a27==1)&&((((a12==10)&&((a15==1)&&((input==2)&&((((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==7)))||(((a22==1)&&(a18==1))&&(a3==8))))))&&(a6==1))&&(a20==1))))))){ + a6 = 0; + a27 = 1; + a22 = 1; + a3 = 4; + a18 = 0; + a4 = 1; + return 26; + } else if(((((a20==1)&&((a0==1)&&((a15==1)&&((!(a5==1)&&(((input==2)&&(((a3==8)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==7))||((a3==7)&&(!(a22==1)&&!(a18==1))))))&&(a12==11)))&&(a27==1)))))&&!(a6==1))&&(a4==1))){ + if((a5==1)){ + a5 = 1; + a3 = 7; + a18 = 0; + a6 = 1; + a0 = 0; + a12 = 12; + a22 = 0; + a4 = 0; + }else{ + a18 = 0; + a15 = 0; + a4 = 0; + a6 = 1; + a22 = 0; + a3 = 4; + a12 = 10; + } + return -1; + } else if(((a6==1)&&(((a12==9)&&(!(a0==1)&&(((a20==1)&&(((a27==1)&&(((input==5)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&!(a4==1)))&&(a5==1)))&&(a3==6))))&&!(a15==1)))){ + if((a27==1)){ + a6 = 0; + a18 = 1; + a22 = 0; + }else{ + a3 = 5; + a22 = 1; + a6 = 0; + a12 = 10; + a0 = 1; + a4 = 1; + a15 = 1; + a18 = 1; + } + return 24; + } else if(((a6==1)&&((a27==1)&&(((a22==1)&&(((a3==5)&&(((a12==10)&&((a4==1)&&(!(a15==1)&&((input==3)&&(a20==1)))))&&(a5==1)))&&(a0==1)))&&!(a18==1))))){ + a22 = 0; + a27 = 0; + a18 = 1; + a12 = 9; + a5 = 0; + a3 = 4; + return 21; + } else if(((a0==1)&&(((!(a4==1)&&((a3==6)&&((a20==1)&&((((a27==1)&&((a15==1)&&((input==5)&&!(a6==1))))&&(a5==1))&&(a18==1)))))&&(a12==9))&&(a22==1)))){ + a4 = 1; + a12 = 11; + a6 = 1; + a15 = 0; + return 26; + } else if(((!(a6==1)&&((a12==12)&&((!(a15==1)&&((a20==1)&&(((a4==1)&&((input==2)&&((((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==5)))||((a3==6)&&((a18==1)&&(a22==1))))))&&!(a27==1))))&&(a0==1))))&&(a5==1))){ + a5 = 0; + a3 = 4; + a22 = 0; + a27 = 1; + a6 = 1; + a18 = 1; + a12 = 10; + return 21; + } else if((((a27==1)&&(((((((a4==1)&&((a12==8)&&(!(a0==1)&&((input==3)&&(a3==4)))))&&(a20==1))&&!(a5==1))&&!(a22==1))&&!(a15==1))&&!(a6==1)))&&!(a18==1))){ + if((a6==1)){ + a15 = 1; + a6 = 1; + a4 = 0; + a3 = 5; + a12 = 9; + }else{ + a4 = 0; + a12 = 12; + a5 = 1; + a0 = 1; + a15 = 1; + } + return 21; + } else if(((a0==1)&&((a20==1)&&(((a6==1)&&((a4==1)&&((((((input==6)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&(a3==7))&&(a12==11))&&(a15==1))&&(a27==1))))&&(a5==1))))){ + a27 = 0; + a12 = 10; + a3 = 4; + a22 = 1; + a18 = 0; + a5 = 0; + a15 = 0; + return 21; + } else if((!(a27==1)&&(!(a0==1)&&((a20==1)&&((a12==10)&&((input==4)&&(((!(a6==1)&&(((!(a15==1)&&((!(a22==1)&&!(a18==1))&&(a5==1)))&&!(a4==1))&&(a3==8)))||((a6==1)&&((a3==4)&&((a4==1)&&((a15==1)&&(!(a5==1)&&((a22==1)&&(a18==1))))))))||((((a4==1)&&((a15==1)&&(!(a5==1)&&((a22==1)&&!(a18==1)))))&&(a3==4))&&(a6==1))))))))){ + if((a5==1)){ + a22 = 1; + a4 = 1; + a15 = 0; + a18 = 0; + a3 = 4; + a5 = 0; + a6 = 0; + }else{ + a3 = 4; + a0 = 1; + a18 = 0; + a5 = 1; + a22 = 1; + a27 = 1; + a15 = 1; + a12 = 8; + a6 = 1; + a4 = 1; + } + return -1; + } else if((!(a0==1)&&((a27==1)&&((((!(a4==1)&&((a12==9)&&(!(a5==1)&&((!(a15==1)&&((input==1)&&(a6==1)))&&(a3==6)))))&&(a22==1))&&(a18==1))&&(a20==1))))){ + a0 = 1; + a5 = 1; + a12 = 11; + a3 = 8; + return 21; + } else if(((a20==1)&&((((((((a0==1)&&((input==1)&&(((a3==5)&&(!(a18==1)&&(a22==1)))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5))))))&&!(a5==1))&&!(a4==1))&&!(a15==1))&&(a27==1))&&(a12==10))&&(a6==1)))){ + a22 = 1; + a27 = 0; + a4 = 1; + a6 = 0; + a3 = 4; + a15 = 1; + a18 = 1; + return 26; + } else if((!(a4==1)&&(((((a12==11)&&(((a27==1)&&(((a20==1)&&((a15==1)&&(((a18==1)||!(a18==1))&&(input==5))))&&(a0==1)))&&!(a5==1)))&&(a6==1))&&(a3==8))&&(a22==1)))){ + a3 = 7; + a4 = 1; + a12 = 12; + a6 = 0; + a5 = 1; + a0 = 0; + a18 = 1; + return 26; + } else if((((a0==1)&&((a27==1)&&((((a6==1)&&(((((a15==1)&&((a5==1)&&(!(a18==1)&&(a22==1))))&&(a12==11))&&(a4==1))&&(a3==4)))||((!(a6==1)&&((a3==8)&&(((a12==10)&&(!(a15==1)&&((!(a22==1)&&!(a18==1))&&!(a5==1))))&&!(a4==1))))||((a6==1)&&((a3==4)&&(((((a5==1)&&((a18==1)&&(a22==1)))&&(a15==1))&&(a12==11))&&(a4==1))))))&&(input==5))))&&(a20==1))){ + a4 = 1; + a5 = 1; + a3 = 4; + a18 = 1; + a15 = 1; + a22 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if(((a6==1)&&((((((a0==1)&&(!(a4==1)&&((a20==1)&&(((input==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&(a5==1)))))&&(a15==1))&&(a3==4))&&(a12==9))&&(a27==1)))){ + a15 = 0; + a3 = 8; + a18 = 0; + a12 = 12; + a22 = 1; + return 24; + } else if((((a6==1)&&(((((((((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a3==8))&&!(a4==1))&&!(a15==1))&&(a12==9))&&(a5==1))&&(a20==1))&&!(a27==1)))&&!(a0==1))){ + if((a18==1)){ + a22 = 0; + a3 = 4; + a4 = 1; + a27 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + a15 = 1; + a6 = 0; + }else{ + a15 = 1; + a12 = 10; + a22 = 0; + a5 = 0; + a6 = 0; + a18 = 0; + a27 = 1; + } + return -1; + } else if((!(a15==1)&&((((a18==1)&&((a6==1)&&((((a3==4)&&((!(a5==1)&&((input==1)&&!(a0==1)))&&!(a4==1)))&&(a20==1))&&(a22==1))))&&(a27==1))&&(a12==8)))){ + a4 = 1; + a15 = 1; + a5 = 1; + a0 = 1; + return -1; + } else if(((!(a5==1)&&(!(a6==1)&&(((((((a4==1)&&((a3==8)&&(((a18==1)||!(a18==1))&&(input==5))))&&(a12==10))&&!(a22==1))&&(a15==1))&&(a20==1))&&!(a0==1))))&&(a27==1))){ + a12 = 9; + a15 = 0; + a4 = 0; + a18 = 0; + a22 = 1; + a0 = 1; + return -1; + } else if(((a5==1)&&((!(a6==1)&&((a20==1)&&((!(a4==1)&&((((((input==1)&&(a15==1))&&(a3==7))&&!(a18==1))&&!(a22==1))&&(a27==1)))&&!(a0==1))))&&(a12==12)))){ + a18 = 1; + a3 = 4; + a12 = 10; + a15 = 0; + a0 = 1; + a4 = 1; + a5 = 0; + return 26; + } else if(((((!(a18==1)&&((!(a4==1)&&((a15==1)&&((a22==1)&&((!(a5==1)&&((a3==4)&&(input==6)))&&(a12==9)))))&&!(a27==1)))&&(a20==1))&&(a6==1))&&(a0==1))){ + a4 = 1; + a22 = 0; + a6 = 0; + a12 = 12; + a5 = 1; + a15 = 0; + a27 = 1; + a3 = 6; + return 24; + } else if(((((((((!(a4==1)&&(!(a27==1)&&(!(a15==1)&&(((a18==1)||!(a18==1))&&(input==2)))))&&!(a22==1))&&(a20==1))&&(a5==1))&&(a6==1))&&(a3==6))&&(a0==1))&&(a12==9))){ + a3 = 4; + a12 = 12; + a6 = 0; + a27 = 1; + a18 = 0; + return -1; + } else if((!(a27==1)&&((a22==1)&&(((a18==1)&&(!(a5==1)&&((a20==1)&&((a12==11)&&(((a3==8)&&((!(a6==1)&&(input==4))&&!(a15==1)))&&(a0==1))))))&&(a4==1))))){ + a3 = 4; + a12 = 10; + a4 = 0; + a18 = 0; + a15 = 1; + a27 = 1; + a22 = 0; + return 21; + } else if(((a12==9)&&((a5==1)&&((a20==1)&&((a27==1)&&(((!(a22==1)&&(!(a4==1)&&((a15==1)&&((a3==6)&&((input==3)&&((a18==1)||!(a18==1)))))))&&!(a6==1))&&(a0==1))))))){ + a18 = 0; + a12 = 12; + a3 = 8; + a5 = 0; + a22 = 1; + return 26; + } else if((((a15==1)&&((a27==1)&&((a12==11)&&((a20==1)&&((a4==1)&&((((((a3==5)&&((a22==1)&&!(a18==1)))||(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1)))))&&(input==6))&&(a0==1))&&!(a5==1)))))))&&!(a6==1))){ + a0 = 0; + a22 = 0; + a18 = 0; + a5 = 1; + a3 = 5; + a12 = 12; + return 21; + } else if(((((a6==1)&&((a3==5)&&(((a20==1)&&(((((a4==1)&&((input==2)&&((a18==1)||!(a18==1))))&&!(a5==1))&&(a27==1))&&(a0==1)))&&!(a15==1))))&&(a22==1))&&(a12==8))){ + a22 = 0; + a3 = 4; + a6 = 0; + a18 = 0; + a12 = 10; + a15 = 1; + a4 = 0; + return 21; + } else if((((a5==1)&&(((a3==4)&&(!(a4==1)&&((a15==1)&&(!(a0==1)&&((a27==1)&&(((a22==1)&&((input==1)&&(a6==1)))&&(a12==12)))))))&&(a20==1)))&&!(a18==1))){ + a0 = 1; + a4 = 1; + a15 = 0; + a27 = 0; + a12 = 11; + return 24; + } else if((((((a15==1)&&(((a20==1)&&(((!(a6==1)&&(!(a4==1)&&((a22==1)&&(input==5))))&&(a12==10))&&(a0==1)))&&!(a27==1)))&&(a3==8))&&(a18==1))&&(a5==1))){ + a3 = 4; + a12 = 8; + a4 = 1; + a27 = 1; + a6 = 1; + return -1; + } else if(((a12==9)&&((a20==1)&&(((((a27==1)&&(((((input==5)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&(a4==1))&&!(a0==1))&&(a5==1)))&&(a6==1))&&(a15==1))&&(a3==7))))){ + a22 = 1; + a3 = 5; + a27 = 0; + a18 = 0; + a0 = 1; + a6 = 0; + a4 = 0; + a12 = 10; + return 21; + } else if((((a12==9)&&((a27==1)&&(!(a22==1)&&(!(a0==1)&&((a20==1)&&((!(a5==1)&&((((input==4)&&(a4==1))&&!(a18==1))&&(a6==1)))&&(a15==1)))))))&&(a3==8))){ + a5 = 1; + a18 = 1; + a4 = 0; + a12 = 12; + a22 = 1; + return 21; + } else if(((((!(a15==1)&&((((a20==1)&&((!(a27==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==4)))&&(a5==1)))&&(a6==1))&&(a3==8)))&&!(a0==1))&&(a4==1))&&(a12==10))){ + a0 = 1; + a12 = 8; + a27 = 1; + a15 = 1; + a18 = 1; + a22 = 0; + a3 = 7; + return -1; + } else if((((a12==10)&&((a22==1)&&((a20==1)&&((!(a15==1)&&(((!(a5==1)&&(!(a6==1)&&((input==2)&&((a18==1)||!(a18==1)))))&&(a4==1))&&(a27==1)))&&(a3==4)))))&&(a0==1))){ + a18 = 1; + a3 = 7; + a0 = 0; + a22 = 0; + a4 = 0; + return 26; + } else if((((((a3==5)&&(((((a12==8)&&((((input==6)&&!(a22==1))&&!(a0==1))&&(a6==1)))&&(a20==1))&&!(a15==1))&&(a27==1)))&&(a5==1))&&(a18==1))&&(a4==1))){ + a18 = 0; + a6 = 0; + a0 = 1; + a27 = 0; + a4 = 0; + a5 = 0; + a3 = 8; + return 26; + } else if((((a27==1)&&((a6==1)&&((a12==10)&&((a4==1)&&((a5==1)&&((((((a3==7)&&((a18==1)&&(a22==1)))||(((a3==6)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==6))))&&(input==5))&&(a20==1))&&!(a15==1)))))))&&!(a0==1))){ + a0 = 1; + a15 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + return -1; + } else if((!(a15==1)&&((a0==1)&&((a5==1)&&(!(a4==1)&&(((a27==1)&&((a20==1)&&((a12==9)&&((a6==1)&&((input==5)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))))&&(a3==5))))))){ + a15 = 1; + a18 = 1; + a4 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + return -1; + } else if(((a12==10)&&(((a3==4)&&((a27==1)&&((a5==1)&&(((((a20==1)&&((((a18==1)||!(a18==1))&&(input==6))&&(a0==1)))&&!(a6==1))&&!(a4==1))&&(a22==1)))))&&(a15==1)))){ + a6 = 1; + a18 = 1; + a12 = 9; + a27 = 0; + a3 = 8; + a5 = 0; + return 21; + } else if((((a6==1)&&((((a12==11)&&((((a5==1)&&((((!(a18==1)&&(a22==1))&&(a3==6))||(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1)))))&&(input==6)))&&!(a0==1))&&(a20==1)))&&!(a4==1))&&(a27==1)))&&(a15==1))){ + a3 = 4; + a15 = 0; + a12 = 10; + a0 = 1; + a18 = 0; + a22 = 0; + a27 = 0; + return 26; + } else if((((!(a4==1)&&(((!(a6==1)&&(((a12==9)&&(((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a3==6)))&&(a0==1)))&&!(a15==1))&&!(a5==1)))&&(a27==1))&&(a20==1))){ + a27 = 0; + a5 = 1; + a3 = 5; + a18 = 0; + a6 = 1; + a22 = 1; + return 24; + } else if(((!(a5==1)&&((a15==1)&&((a20==1)&&(((a0==1)&&(!(a27==1)&&((a4==1)&&(((((!(a22==1)&&(a18==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==1)))))&&!(a6==1)))))&&(a12==10))){ + a0 = 0; + a6 = 1; + a12 = 9; + a5 = 1; + a4 = 0; + a18 = 0; + a3 = 8; + a27 = 1; + a22 = 0; + return 26; + } else if(((a4==1)&&((a15==1)&&((!(a5==1)&&(((a3==8)&&((a20==1)&&((((((a18==1)||!(a18==1))&&(input==2))&&!(a6==1))&&(a12==9))&&!(a27==1))))&&!(a0==1)))&&!(a22==1))))){ + a3 = 4; + a0 = 1; + a12 = 8; + a18 = 0; + a6 = 1; + a5 = 1; + a27 = 1; + a4 = 0; + return 21; + } else if((((((a22==1)&&((a3==6)&&((!(a27==1)&&((a12==10)&&(((((a18==1)||!(a18==1))&&(input==4))&&!(a6==1))&&!(a5==1))))&&!(a4==1))))&&(a15==1))&&(a0==1))&&(a20==1))){ + a12 = 8; + a22 = 0; + a6 = 1; + a3 = 4; + a4 = 1; + a5 = 1; + a18 = 1; + return -1; + } else if(((((a3==8)&&(((((a12==10)&&(!(a27==1)&&(((input==1)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&!(a5==1))))&&!(a6==1))&&!(a0==1))&&(a4==1)))&&!(a15==1))&&(a20==1))){ + a27 = 1; + a18 = 0; + a15 = 1; + a3 = 7; + a12 = 9; + a22 = 0; + a6 = 1; + a4 = 0; + return -1; + } else if((((a3==6)&&(!(a5==1)&&(!(a22==1)&&((a20==1)&&(((!(a4==1)&&((!(a6==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a0==1)))&&!(a15==1))&&!(a27==1))))))&&(a12==10))){ + a22 = 1; + a12 = 11; + a27 = 1; + a4 = 1; + a18 = 1; + a3 = 8; + return 21; + } else if(((((!(a4==1)&&((a20==1)&&((a6==1)&&(!(a27==1)&&((a22==1)&&((((input==3)&&!(a15==1))&&(a0==1))&&!(a18==1)))))))&&(a5==1))&&(a12==12))&&(a3==5))){ + a27 = 1; + a18 = 1; + a12 = 10; + return -1; + } else if((((((a12==10)&&(!(a15==1)&&((a3==7)&&(!(a6==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5))&&!(a4==1))&&(a0==1))))))&&(a5==1))&&!(a27==1))&&(a20==1))){ + a12 = 12; + a18 = 1; + a22 = 1; + a6 = 1; + a3 = 8; + a5 = 0; + return 21; + } else if((!(a15==1)&&((a12==9)&&((a6==1)&&(((a5==1)&&(((a3==6)&&((((input==6)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&!(a0==1))&&!(a4==1)))&&(a20==1)))&&(a27==1)))))){ + a4 = 1; + a22 = 1; + a18 = 1; + a0 = 1; + a15 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((a4==1)&&(!(a22==1)&&(!(a15==1)&&(!(a6==1)&&(((a0==1)&&((((a3==7)&&((((a18==1)||!(a18==1))&&(input==3))&&!(a27==1)))&&(a20==1))&&!(a5==1)))&&(a12==9))))))){ + a5 = 1; + a15 = 1; + a18 = 1; + a12 = 12; + a27 = 1; + return 26; + } else if(((a0==1)&&(!(a4==1)&&((a5==1)&&(!(a27==1)&&((a12==11)&&(!(a6==1)&&(((a20==1)&&((input==6)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==6)))))&&!(a15==1))))))))){ + a15 = 1; + a18 = 0; + a12 = 12; + a3 = 4; + a6 = 1; + a22 = 0; + a27 = 1; + a4 = 1; + return 21; + } else if(((((((!(a5==1)&&((((input==3)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6))))&&!(a4==1))&&(a20==1)))&&(a6==1))&&(a15==1))&&(a27==1))&&(a12==12))&&(a0==1))){ + a12 = 8; + a18 = 1; + a22 = 1; + a5 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if((!(a27==1)&&((((((a20==1)&&(!(a4==1)&&(((input==2)&&(((a3==6)&&((a22==1)&&!(a18==1)))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6)))))&&(a12==11))))&&(a15==1))&&!(a0==1))&&!(a6==1))&&(a5==1)))){ + a0 = 1; + a18 = 1; + a3 = 4; + a6 = 1; + a27 = 1; + a12 = 8; + a22 = 0; + return 21; + } else if((!(a4==1)&&(((a22==1)&&((a0==1)&&((a6==1)&&((a15==1)&&(((a20==1)&&(((a27==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&!(a5==1)))&&(a12==9))))))&&(a3==6)))){ + a5 = 1; + a18 = 1; + a4 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((a20==1)&&(((!(a27==1)&&(!(a15==1)&&(((a0==1)&&(((input==6)&&((((a22==1)&&(a18==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a18==1)&&!(a22==1))))))&&(a4==1)))&&(a6==1))))&&(a5==1))&&(a12==11)))){ + a15 = 1; + a5 = 0; + a22 = 0; + a12 = 10; + a18 = 0; + a6 = 0; + a4 = 0; + a3 = 4; + a27 = 1; + return -1; + } else if((((a18==1)&&((a15==1)&&(!(a27==1)&&(((a20==1)&&((((a5==1)&&(((input==1)&&(a6==1))&&(a4==1)))&&!(a22==1))&&(a12==10)))&&!(a0==1)))))&&(a3==8))){ + if((a4==1)){ + a3 = 4; + a12 = 8; + a4 = 0; + a0 = 1; + a27 = 1; + a18 = 0; + }else{ + a27 = 1; + a0 = 1; + a3 = 4; + a12 = 8; + a6 = 0; + } + return -1; + } else if(((a3==6)&&(!(a6==1)&&((((((a27==1)&&(((a20==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a5==1)))&&(a0==1)))&&(a12==9))&&!(a22==1))&&(a15==1))&&!(a4==1))))){ + a18 = 0; + a22 = 1; + a12 = 12; + return 21; + } else if(((((((a5==1)&&((a4==1)&&((a20==1)&&(!(a27==1)&&(((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==1))&&(a0==1))))))&&!(a6==1))&&(a12==12))&&(a3==7))&&!(a15==1))){ + a22 = 0; + a12 = 9; + a5 = 0; + a6 = 1; + a4 = 0; + a3 = 6; + a18 = 1; + return -1; + } else if(((a27==1)&&(((a3==6)&&(!(a22==1)&&(((a0==1)&&(!(a4==1)&&((!(a6==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&!(a5==1)))&&!(a15==1))))&&(a20==1))))&&(a12==10)))){ + a3 = 4; + a4 = 1; + a22 = 1; + a6 = 1; + a5 = 1; + a15 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if(((a0==1)&&(((!(a6==1)&&((((!(a22==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&(a3==7))&&(a27==1)))&&!(a15==1))&&!(a5==1))&&(a12==10)))&&(a20==1))&&!(a4==1)))){ + a4 = 1; + a18 = 1; + a3 = 5; + return -1; + } else if(((((a3==4)&&((a6==1)&&(((!(a27==1)&&(((a5==1)&&(!(a0==1)&&((input==1)&&(a20==1))))&&(a22==1)))&&(a15==1))&&(a4==1))))&&(a12==12))&&(a18==1))){ + a18 = 0; + a27 = 1; + a0 = 1; + a12 = 8; + a22 = 0; + a4 = 0; + return -1; + } else if((((((a20==1)&&(((!(a15==1)&&((!(a5==1)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==6)))&&(a27==1)))&&(a3==8))&&!(a4==1)))&&(a12==10))&&!(a6==1))&&(a0==1))){ + a18 = 0; + a22 = 0; + a15 = 1; + a4 = 1; + return -1; + } else if(((a15==1)&&(((((!(a0==1)&&((!(a6==1)&&(((input==4)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&!(a4==1)))&&(a27==1)))&&(a20==1))&&(a3==6))&&(a12==12))&&(a5==1)))){ + a12 = 10; + a4 = 1; + a22 = 0; + a5 = 0; + a18 = 0; + a0 = 1; + return -1; + } else if((((a12==12)&&(!(a5==1)&&((a27==1)&&((a15==1)&&(!(a4==1)&&(((a22==1)&&((a20==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a3==7))))&&(a0==1)))))))&&(a6==1))){ + a18 = 0; + a3 = 4; + a4 = 1; + a12 = 11; + a6 = 0; + a27 = 0; + return 26; + } else if(((((a4==1)&&(!(a18==1)&&((((((!(a5==1)&&((input==5)&&(a12==8)))&&(a20==1))&&!(a6==1))&&(a27==1))&&(a0==1))&&(a22==1))))&&!(a15==1))&&(a3==5))){ + a3 = 4; + a5 = 1; + a6 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if(((((!(a15==1)&&(!(a4==1)&&((((((a6==1)&&((input==6)&&(a20==1)))&&(a0==1))&&(a18==1))&&(a5==1))&&(a12==9))))&&!(a27==1))&&(a3==5))&&(a22==1))){ + a3 = 4; + a27 = 1; + a12 = 8; + a15 = 1; + a4 = 1; + return -1; + } else if((!(a4==1)&&((a27==1)&&(((a5==1)&&(((a20==1)&&((((a12==12)&&((a3==8)&&(((a18==1)||!(a18==1))&&(input==1))))&&(a6==1))&&(a0==1)))&&(a15==1)))&&!(a22==1))))){ + a22 = 1; + a3 = 4; + a18 = 1; + a4 = 1; + a12 = 8; + return -1; + } else if((((((a0==1)&&((!(a5==1)&&((a4==1)&&((a27==1)&&(((((a22==1)&&!(a18==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a22==1)&&(a18==1)))))&&(input==1)))))&&(a15==1)))&&(a6==1))&&(a12==9))&&(a20==1))){ + a22 = 1; + a4 = 0; + a3 = 6; + a6 = 0; + a12 = 11; + a18 = 0; + a5 = 1; + a15 = 0; + return 24; + } else if(((a4==1)&&(((!(a0==1)&&(((((a27==1)&&(((input==4)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&!(a15==1)))&&(a5==1))&&(a3==6))&&(a6==1)))&&(a12==12))&&(a20==1)))){ + a0 = 1; + a22 = 1; + a3 = 4; + a15 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if(((a6==1)&&(((a3==8)&&((((!(a0==1)&&(((a15==1)&&((a18==1)&&((a12==12)&&(input==1))))&&(a27==1)))&&(a4==1))&&(a22==1))&&!(a5==1)))&&(a20==1)))){ + if((a27==1)){ + a4 = 0; + a18 = 0; + a5 = 1; + a0 = 1; + a12 = 8; + }else{ + a22 = 0; + a0 = 1; + a18 = 0; + a5 = 1; + a12 = 8; + a3 = 6; + } + return -1; + } else if((!(a5==1)&&(((a3==7)&&((a4==1)&&(((a20==1)&&(((a27==1)&&(!(a15==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==4))))&&(a6==1)))&&(a12==10))))&&!(a0==1)))){ + a3 = 6; + a18 = 0; + a22 = 1; + a0 = 1; + a4 = 0; + a5 = 1; + a6 = 0; + return -1; + } else if((!(a6==1)&&(!(a0==1)&&(((((((!(a18==1)&&(((a20==1)&&(input==2))&&(a3==7)))&&(a4==1))&&(a12==8))&&!(a15==1))&&(a27==1))&&(a22==1))&&(a5==1))))){ + a15 = 1; + a0 = 1; + a22 = 0; + a12 = 11; + a3 = 6; + a18 = 1; + return 21; + } else if(((!(a15==1)&&((((a12==12)&&(((((((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1))))&&!(a6==1))||((a6==1)&&((((a22==1)&&(a18==1))&&!(a4==1))&&(a3==4))))||(((!(a4==1)&&((a22==1)&&!(a18==1)))&&(a3==4))&&(a6==1)))&&(input==2))&&(a0==1)))&&(a5==1))&&!(a27==1)))&&(a20==1))){ + a27 = 1; + a15 = 1; + a6 = 1; + a22 = 1; + a4 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + return -1; + } else if((!(a0==1)&&(!(a6==1)&&(!(a27==1)&&(((a5==1)&&((((!(a22==1)&&((a4==1)&&((a20==1)&&(input==4))))&&!(a18==1))&&!(a15==1))&&(a12==11)))&&(a3==6)))))){ + a3 = 4; + a12 = 9; + a18 = 1; + a5 = 0; + a0 = 1; + a6 = 1; + a15 = 1; + return 24; + } else if(((a22==1)&&((a0==1)&&((a27==1)&&(!(a5==1)&&(!(a15==1)&&(((((a3==5)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a4==1)))&&(a20==1))&&!(a6==1))&&(a12==12)))))))){ + a27 = 0; + a18 = 0; + a3 = 7; + return 21; + } else if((((!(a15==1)&&((((a0==1)&&((!(a4==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==1))&&(a5==1)))&&(a20==1)))&&(a6==1))&&!(a27==1)))&&(a3==5))&&(a12==11))){ + a5 = 0; + a6 = 0; + a27 = 1; + a18 = 1; + a4 = 1; + a12 = 12; + a3 = 6; + a15 = 1; + a22 = 0; + return 21; + } else if((((a22==1)&&((!(a5==1)&&((((a18==1)&&((((!(a4==1)&&(input==3))&&(a15==1))&&(a6==1))&&(a3==6)))&&(a27==1))&&!(a0==1)))&&(a20==1)))&&(a12==9))){ + a4 = 1; + a0 = 1; + a12 = 8; + a5 = 1; + a3 = 4; + return -1; + } else if(((a20==1)&&(((((a4==1)&&(!(a6==1)&&((((a12==8)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==1)))&&!(a5==1))&&(a3==6))))&&!(a0==1))&&!(a15==1))&&(a27==1)))){ + a18 = 0; + a5 = 1; + a22 = 0; + a12 = 12; + a0 = 1; + a4 = 0; + a6 = 1; + return -1; + } else if(((a4==1)&&((a6==1)&&(!(a22==1)&&((a5==1)&&(((a3==7)&&((a27==1)&&((a20==1)&&(!(a15==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&(a12==8))))))&&!(a0==1))))))){ + a18 = 1; + a3 = 8; + a5 = 0; + a12 = 10; + a22 = 1; + a0 = 1; + return -1; + } else if((((a12==10)&&((a3==7)&&((((a15==1)&&(!(a0==1)&&((a20==1)&&((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==4))&&!(a6==1)))))&&(a4==1))&&(a5==1))))&&!(a27==1))){ + a12 = 9; + a18 = 0; + a22 = 1; + a6 = 1; + a15 = 0; + a3 = 8; + a0 = 1; + a27 = 1; + return -1; + } else if((!(a5==1)&&((a20==1)&&(((a6==1)&&(((a27==1)&&((a4==1)&&((a12==8)&&((a3==4)&&((input==1)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))))&&!(a0==1)))&&(a15==1))))){ + a5 = 1; + a0 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if((!(a5==1)&&((a20==1)&&(((a3==8)&&(((a4==1)&&(((!(a15==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==6)))&&(a12==11))&&!(a27==1)))&&(a6==1)))&&(a0==1))))){ + a27 = 1; + a22 = 1; + a12 = 8; + a5 = 1; + a3 = 4; + a18 = 1; + a15 = 1; + return -1; + } else if((((a6==1)&&(((((a12==10)&&(((a20==1)&&((input==3)&&(((a3==5)&&((a22==1)&&!(a18==1)))||(((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1)))))))&&(a5==1)))&&(a4==1))&&(a0==1))&&(a15==1)))&&(a27==1))){ + a18 = 1; + a27 = 0; + a6 = 0; + a22 = 1; + a15 = 0; + a4 = 0; + a12 = 9; + a3 = 6; + return 26; + } else if(((a15==1)&&((a12==8)&&(!(a27==1)&&(!(a0==1)&&((!(a4==1)&&(((((((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))||((!(a18==1)&&(a22==1))&&(a3==7)))&&(input==2))&&!(a5==1))&&(a20==1)))&&!(a6==1))))))){ + a12 = 9; + a18 = 0; + a22 = 0; + a27 = 1; + a3 = 7; + a4 = 1; + return -1; + } else if((!(a27==1)&&((a18==1)&&((a20==1)&&((((a0==1)&&(((((a3==8)&&((input==2)&&(a15==1)))&&!(a4==1))&&!(a6==1))&&(a12==11)))&&(a22==1))&&!(a5==1)))))){ + a3 = 4; + a12 = 9; + a5 = 1; + a15 = 0; + a22 = 0; + return -1; + } else if((!(a15==1)&&((a12==12)&&((((a27==1)&&(((a4==1)&&(((!(a6==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a3==7))&&(a0==1)))&&(a20==1)))&&!(a22==1))&&(a5==1))))){ + a3 = 6; + a6 = 1; + a18 = 0; + a12 = 10; + return 24; + } else if(((a5==1)&&((((!(a6==1)&&((a27==1)&&(((((input==1)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&!(a0==1))&&!(a15==1))&&(a3==4))))&&!(a4==1))&&(a12==12))&&(a20==1)))){ + if((a6==1)){ + a22 = 0; + a12 = 11; + a18 = 0; + a27 = 0; + a15 = 1; + a6 = 1; + }else{ + a15 = 1; + a18 = 0; + a12 = 10; + a0 = 1; + a3 = 7; + a22 = 0; + a27 = 0; + a6 = 1; + } + return -1; + } else if((!(a0==1)&&(((!(a5==1)&&(!(a6==1)&&((a4==1)&&((a12==9)&&((a15==1)&&((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==2))&&(a20==1)))))))&&(a27==1))&&(a3==4)))){ + a18 = 1; + a3 = 8; + a22 = 1; + a12 = 10; + a0 = 1; + a5 = 1; + a4 = 0; + return -1; + } else if((((a6==1)&&(((a3==7)&&(!(a4==1)&&((((((input==5)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a20==1))&&(a12==10))&&(a15==1))&&!(a0==1))))&&(a5==1)))&&(a27==1))){ + a18 = 1; + a12 = 11; + a6 = 0; + a3 = 6; + a0 = 1; + a5 = 0; + a22 = 1; + return 21; + } else if((((a12==8)&&((!(a27==1)&&(((a3==6)&&((!(a6==1)&&(((input==2)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&(a20==1)))&&(a0==1)))&&!(a4==1)))&&(a15==1)))&&(a5==1))){ + a12 = 12; + a5 = 0; + a4 = 1; + a22 = 0; + a3 = 8; + a18 = 1; + a27 = 1; + return -1; + } else if((!(a15==1)&&(((a3==8)&&(((a12==11)&&(((((a20==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5)))&&(a5==1))&&!(a0==1))&&(a4==1)))&&(a6==1)))&&(a27==1)))){ + a0 = 1; + a6 = 0; + a22 = 0; + a15 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((!(a0==1)&&(!(a5==1)&&((a6==1)&&((a12==12)&&((!(a18==1)&&(!(a15==1)&&(!(a4==1)&&(((a20==1)&&(input==3))&&(a3==6)))))&&(a27==1))))))&&(a22==1))){ + a4 = 1; + a12 = 8; + a15 = 1; + a5 = 1; + a18 = 1; + a0 = 1; + return 26; + } else if(((a18==1)&&(((((a20==1)&&((a15==1)&&((((a12==10)&&(((input==3)&&!(a0==1))&&(a22==1)))&&(a4==1))&&(a6==1))))&&(a5==1))&&(a3==7))&&(a27==1)))){ + a15 = 0; + a0 = 1; + a12 = 11; + a6 = 0; + return -1; + } else if(((((a4==1)&&(!(a5==1)&&((((a22==1)&&((((a12==10)&&((a27==1)&&(input==2)))&&!(a0==1))&&(a3==4)))&&!(a18==1))&&!(a15==1))))&&(a6==1))&&(a20==1))){ + a22 = 0; + a0 = 1; + a3 = 5; + a6 = 0; + return -1; + } else if(((a5==1)&&((a12==8)&&((!(a15==1)&&(!(a27==1)&&((a20==1)&&(((((((a22==1)&&(a18==1))&&!(a4==1))&&(a3==4))&&(a6==1))||(((((a4==1)&&((a18==1)&&!(a22==1)))&&(a3==8))&&!(a6==1))||(((a3==8)&&((!(a22==1)&&!(a18==1))&&(a4==1)))&&!(a6==1))))&&(input==6)))))&&(a0==1))))){ + if((a22==1)){ + a27 = 1; + a4 = 1; + a12 = 9; + a18 = 0; + a22 = 1; + a3 = 8; + a6 = 0; + a0 = 0; + }else{ + a3 = 5; + a22 = 0; + a6 = 1; + a18 = 0; + a4 = 0; + a12 = 11; + } + return 26; + } else if(((!(a5==1)&&(!(a27==1)&&((((!(a15==1)&&(((input==1)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a22==1)&&(a18==1)))))&&!(a0==1)))&&(a20==1))&&(a6==1))&&(a4==1))))&&(a12==10))){ + a0 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + a4 = 0; + a5 = 1; + a6 = 0; + a27 = 1; + a15 = 1; + return 26; + } else if(((a22==1)&&((a27==1)&&(((!(a0==1)&&((a3==8)&&((a12==10)&&(!(a18==1)&&(((a20==1)&&((input==3)&&!(a5==1)))&&!(a15==1))))))&&!(a4==1))&&!(a6==1))))){ + a4 = 1; + a18 = 1; + a6 = 1; + a0 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + a15 = 1; + return -1; + } else if(((a27==1)&&((a3==6)&&(!(a5==1)&&((((a20==1)&&((((a15==1)&&((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a4==1))&&(a6==1)))&&(a12==9))&&!(a0==1)))))){ + if((a18==1)){ + a5 = 1; + a22 = 1; + a18 = 0; + a3 = 8; + a12 = 12; + a4 = 0; + }else{ + a18 = 0; + a6 = 0; + a3 = 4; + a15 = 0; + a0 = 1; + a22 = 0; + a4 = 0; + a12 = 10; + } + return -1; + } else if((!(a4==1)&&((a27==1)&&((a12==10)&&(((a15==1)&&(((a0==1)&&(((input==3)&&((((a22==1)&&!(a18==1))&&(a3==7))||(((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a18==1)&&(a22==1))))))&&!(a5==1)))&&(a6==1)))&&(a20==1)))))){ + a5 = 1; + a3 = 7; + a12 = 8; + a18 = 1; + a0 = 0; + a22 = 0; + return -1; + } else if(((a3==4)&&((!(a0==1)&&((((!(a27==1)&&(!(a15==1)&&((a20==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3)))))&&!(a4==1))&&!(a6==1))&&(a5==1)))&&(a12==9)))){ + a15 = 1; + a6 = 1; + a27 = 1; + a18 = 1; + a12 = 8; + a0 = 1; + a3 = 5; + a22 = 1; + return 26; + } else if((!(a0==1)&&((a27==1)&&((a20==1)&&(((a6==1)&&((((!(a5==1)&&((input==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))&&!(a15==1))&&!(a4==1))&&(a12==10)))&&(a3==8)))))){ + a0 = 1; + a15 = 1; + a18 = 1; + a22 = 0; + a3 = 4; + a6 = 0; + return 26; + } else if(((((((a3==6)&&(((((a6==1)&&((((a18==1)||!(a18==1))&&(input==3))&&!(a5==1)))&&(a0==1))&&(a27==1))&&!(a22==1)))&&(a20==1))&&!(a4==1))&&(a12==12))&&!(a15==1))){ + a15 = 1; + a5 = 1; + a18 = 1; + return 24; + } else if((!(a4==1)&&(!(a0==1)&&((a27==1)&&((a3==5)&&(!(a6==1)&&((a5==1)&&((!(a15==1)&&((a12==10)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==1))))&&(a20==1))))))))){ + a15 = 1; + a3 = 4; + a18 = 1; + a6 = 1; + a12 = 8; + a0 = 1; + a22 = 1; + a4 = 1; + return -1; + } else if(((a3==6)&&(!(a15==1)&&((((a5==1)&&((((((a4==1)&&((input==1)&&(a12==9)))&&(a20==1))&&!(a0==1))&&!(a27==1))&&!(a6==1)))&&!(a18==1))&&!(a22==1))))){ + if((a15==1)){ + a12 = 8; + a15 = 1; + a0 = 1; + a22 = 1; + a18 = 1; + a27 = 1; + a3 = 4; + }else{ + a6 = 1; + a3 = 7; + a12 = 8; + a18 = 1; + a4 = 0; + a22 = 1; + a15 = 1; + } + return 26; + } else if((!(a18==1)&&(!(a6==1)&&(!(a0==1)&&((!(a4==1)&&(((a12==8)&&(((!(a27==1)&&((a5==1)&&(input==5)))&&(a20==1))&&(a22==1)))&&(a3==4)))&&(a15==1)))))){ + a3 = 6; + a4 = 1; + a18 = 1; + a27 = 1; + a0 = 1; + return -1; + } else if(((a3==5)&&(((((a20==1)&&(!(a6==1)&&((a12==11)&&(!(a27==1)&&(!(a4==1)&&(!(a5==1)&&((input==3)&&((a18==1)||!(a18==1)))))))))&&!(a0==1))&&(a22==1))&&!(a15==1)))){ + if((a4==1)){ + a22 = 0; + a6 = 1; + a3 = 7; + a15 = 1; + a27 = 1; + a0 = 1; + a5 = 1; + a12 = 8; + a18 = 1; + }else{ + a22 = 0; + a3 = 8; + a4 = 1; + a5 = 1; + a18 = 0; + a6 = 1; + a15 = 1; + a27 = 1; + } + return -1; + } else if(((a12==12)&&((a27==1)&&((((input==4)&&((!(a6==1)&&(((!(a15==1)&&((a5==1)&&(!(a18==1)&&!(a22==1))))&&!(a4==1))&&(a3==8)))||((a6==1)&&((a3==4)&&((a4==1)&&((a15==1)&&(((a22==1)&&(a18==1))&&!(a5==1))))))))&&(a0==1))&&(a20==1))))){ + a12 = 10; + a5 = 0; + a4 = 1; + a22 = 0; + a18 = 0; + a6 = 1; + a3 = 8; + a15 = 1; + return -1; + } else if((((((!(a0==1)&&((((((input==3)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&(a5==1))&&(a20==1))&&(a3==7))&&(a27==1)))&&(a4==1))&&(a12==11))&&!(a6==1))&&!(a15==1))){ + a15 = 1; + a6 = 1; + a0 = 1; + a22 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + return -1; + } else if(((a22==1)&&((a27==1)&&((((a20==1)&&(!(a0==1)&&(((a5==1)&&((a6==1)&&(((a3==8)&&(input==1))&&!(a18==1))))&&(a15==1))))&&(a12==11))&&(a4==1))))){ + a22 = 0; + a4 = 0; + a27 = 0; + a0 = 1; + a3 = 6; + return 24; + } else if((((a20==1)&&((((a27==1)&&((a6==1)&&((a0==1)&&((((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))||(((a22==1)&&!(a18==1))&&(a3==6)))&&(input==4))&&(a4==1)))))&&!(a15==1))&&(a12==8)))&&!(a5==1))){ + a3 = 4; + a5 = 1; + a22 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if((((a20==1)&&(!(a5==1)&&((a27==1)&&(((a4==1)&&(!(a6==1)&&((a12==12)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==1)))))&&!(a15==1)))))&&!(a0==1))){ + a22 = 1; + a6 = 1; + a0 = 1; + a18 = 1; + a4 = 0; + a3 = 8; + a12 = 11; + return 26; + } else if(((a3==6)&&((((((!(a5==1)&&((a12==8)&&((((input==6)&&(a15==1))&&!(a22==1))&&!(a27==1))))&&(a20==1))&&(a0==1))&&(a4==1))&&!(a18==1))&&(a6==1)))){ + a12 = 12; + a4 = 0; + a22 = 1; + a5 = 1; + a15 = 0; + a6 = 0; + return 26; + } else if(((a27==1)&&(((a20==1)&&(!(a5==1)&&((a12==11)&&(((input==3)&&((((a3==8)&&((a4==1)&&(!(a22==1)&&!(a18==1))))&&!(a6==1))||(((!(a4==1)&&((a18==1)&&(a22==1)))&&(a3==4))&&(a6==1))))&&(a0==1)))))&&(a15==1)))){ + a4 = 0; + a15 = 0; + a18 = 1; + a22 = 1; + a6 = 1; + a5 = 1; + a3 = 8; + return -1; + } else if(((((((!(a27==1)&&(((!(a6==1)&&(((!(a22==1)&&!(a18==1))&&(a4==1))&&(a3==8)))||(((!(a4==1)&&((a22==1)&&(a18==1)))&&(a3==4))&&(a6==1)))&&(input==1)))&&(a20==1))&&(a0==1))&&!(a5==1))&&(a12==8))&&(a15==1))){ + a5 = 1; + a3 = 4; + a6 = 0; + a18 = 1; + a4 = 0; + a12 = 11; + a0 = 0; + a22 = 1; + a27 = 1; + return 26; + } else if(((((a15==1)&&(!(a27==1)&&((((a12==8)&&(((input==5)&&((((!(a22==1)&&(a18==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7)))||((a3==8)&&((a18==1)&&(a22==1)))))&&(a20==1)))&&(a4==1))&&!(a5==1))))&&(a6==1))&&!(a0==1))){ + a27 = 1; + a0 = 1; + a18 = 1; + a5 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if(((((a0==1)&&((((((a12==11)&&(((a3==4)&&((input==2)&&(a20==1)))&&!(a5==1)))&&(a4==1))&&(a15==1))&&(a22==1))&&!(a18==1)))&&(a27==1))&&(a6==1))){ + return 26; + } else if((((a12==10)&&(!(a27==1)&&((a20==1)&&((!(a15==1)&&(((a4==1)&&((input==2)&&(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a22==1)&&(a18==1))))))&&(a6==1)))&&!(a0==1)))))&&(a5==1))){ + if((a3==5)){ + a22 = 1; + a5 = 0; + a12 = 12; + a6 = 0; + a0 = 1; + a4 = 0; + a27 = 1; + a3 = 7; + a18 = 1; + }else{ + a22 = 1; + a4 = 0; + a18 = 1; + a3 = 6; + a15 = 1; + a12 = 9; + a5 = 0; + a0 = 1; + } + return -1; + } else if((((a6==1)&&(((((a12==8)&&(!(a4==1)&&((((((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))||((a3==7)&&((a22==1)&&!(a18==1))))&&(input==3))&&(a0==1))))&&(a20==1))&&!(a5==1))&&(a27==1)))&&!(a15==1))){ + a4 = 1; + a5 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if(((a6==1)&&((a15==1)&&(((a3==6)&&((a0==1)&&(((a5==1)&&((!(a22==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a20==1)))&&(a12==12)))&&(a27==1))))&&!(a4==1))))){ + a22 = 1; + a12 = 8; + a18 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if((!(a15==1)&&(((a0==1)&&((a22==1)&&((!(a27==1)&&((((((input==4)&&(a6==1))&&(a18==1))&&(a4==1))&&!(a5==1))&&(a20==1)))&&(a12==12))))&&(a3==8)))){ + if((a27==1)){ + a0 = 0; + a6 = 0; + a27 = 1; + a12 = 11; + a3 = 7; + }else{ + a27 = 1; + a18 = 0; + a4 = 0; + a5 = 1; + a15 = 1; + } + return 24; + } else if(((!(a18==1)&&(!(a0==1)&&((a27==1)&&(!(a15==1)&&((a20==1)&&((a12==12)&&(!(a6==1)&&(!(a4==1)&&(((a5==1)&&(input==6))&&(a3==6))))))))))&&(a22==1))){ + a3 = 8; + a18 = 1; + a5 = 0; + a0 = 1; + a4 = 1; + a6 = 1; + a27 = 0; + a12 = 11; + return 21; + } else if((!(a18==1)&&(((a27==1)&&(((a15==1)&&((a4==1)&&(!(a6==1)&&((((a20==1)&&(!(a0==1)&&(input==1)))&&(a12==12))&&(a22==1)))))&&(a5==1)))&&(a3==7)))){ + a15 = 0; + a0 = 1; + a4 = 0; + a3 = 6; + a12 = 11; + a22 = 0; + return 24; + } else if((!(a22==1)&&((a5==1)&&((a3==5)&&((!(a27==1)&&(!(a15==1)&&((a6==1)&&(((((input==1)&&((a18==1)||!(a18==1)))&&(a0==1))&&(a20==1))&&!(a4==1)))))&&(a12==8)))))){ + a18 = 1; + a27 = 1; + a22 = 1; + a12 = 11; + a15 = 1; + return 26; + } else if(((a12==11)&&(!(a5==1)&&((a27==1)&&((a6==1)&&((a4==1)&&((a20==1)&&(((((((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==4)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==3))&&!(a0==1))&&!(a15==1))))))))){ + a22 = 1; + a3 = 4; + a18 = 1; + a0 = 1; + a5 = 1; + a15 = 1; + a4 = 0; + a12 = 10; + a6 = 0; + return 26; + } else if(((a0==1)&&(!(a15==1)&&((a12==9)&&((a4==1)&&((((a20==1)&&((a5==1)&&((input==4)&&((((a22==1)&&(a18==1))&&(a3==5))||(((a3==4)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==4)))))))&&!(a27==1))&&!(a6==1))))))){ + a12 = 12; + a18 = 1; + a27 = 1; + a22 = 1; + a3 = 6; + return 24; + } else if(((a20==1)&&((a4==1)&&((((((a15==1)&&(!(a27==1)&&((input==1)&&((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))||((a3==7)&&((a22==1)&&!(a18==1)))))))&&!(a0==1))&&(a5==1))&&(a12==11))&&!(a6==1))))){ + a3 = 8; + a12 = 8; + a4 = 0; + a6 = 1; + a22 = 1; + a27 = 1; + a0 = 1; + a18 = 1; + return -1; + } else if(((a4==1)&&((a22==1)&&(!(a6==1)&&(((!(a27==1)&&(((!(a18==1)&&((a3==4)&&(!(a5==1)&&(input==3))))&&!(a15==1))&&!(a0==1)))&&(a20==1))&&(a12==10)))))){ + a22 = 0; + a27 = 1; + a3 = 7; + a15 = 1; + a18 = 1; + a5 = 1; + a0 = 1; + a12 = 8; + return 24; + } else if(((a20==1)&&((a15==1)&&(((((a3==7)&&((a0==1)&&((a4==1)&&(((!(a27==1)&&(input==6))&&!(a18==1))&&(a6==1)))))&&!(a22==1))&&(a12==8))&&(a5==1))))){ + a4 = 0; + a3 = 4; + a12 = 12; + a27 = 1; + return 21; + } else if((!(a27==1)&&((a12==9)&&((((a20==1)&&(((input==5)&&((!(a6==1)&&(((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8)))||((a6==1)&&((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1)))))))&&(a5==1)))&&!(a15==1))&&(a0==1))))){ + a15 = 1; + a4 = 0; + a3 = 4; + a18 = 1; + a12 = 8; + a6 = 1; + a22 = 0; + a0 = 0; + a27 = 1; + return 26; + } else if(((((((a20==1)&&(((a6==1)&&((a12==12)&&(!(a0==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==1)))))&&(a15==1)))&&!(a5==1))&&(a3==4))&&(a27==1))&&(a4==1))){ + if((a0==1)){ + a22 = 0; + a0 = 1; + a12 = 8; + a5 = 1; + a18 = 0; + a3 = 8; + }else{ + a5 = 1; + a22 = 1; + a18 = 1; + a12 = 8; + a6 = 0; + a0 = 1; + a3 = 6; + } + return 26; + } else if((!(a6==1)&&((a0==1)&&((a27==1)&&((!(a22==1)&&((a5==1)&&((!(a18==1)&&(!(a15==1)&&((a3==7)&&((input==6)&&(a12==9)))))&&(a20==1))))&&(a4==1)))))){ + a12 = 8; + a27 = 0; + a6 = 1; + a15 = 1; + a3 = 5; + return 24; + } else if(((((a0==1)&&(!(a6==1)&&((((((input==5)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7))))&&!(a27==1))&&(a12==10))&&(a20==1))&&(a5==1))))&&(a4==1))&&!(a15==1))){ + a12 = 8; + a22 = 1; + a3 = 4; + a4 = 0; + a18 = 1; + a6 = 1; + return -1; + } else if(((a3==7)&&(((((a12==10)&&((a27==1)&&(((a4==1)&&((a20==1)&&((input==4)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))))&&!(a5==1))))&&(a15==1))&&!(a0==1))&&(a6==1)))){ + a22 = 0; + a18 = 0; + a3 = 4; + a0 = 1; + a6 = 0; + a5 = 1; + return 26; + } else if(((((((((a20==1)&&(((a22==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a12==10)))&&!(a4==1)))&&!(a15==1))&&(a5==1))&&(a27==1))&&(a6==1))&&!(a0==1))&&(a3==6))){ + a3 = 4; + a18 = 1; + a4 = 1; + a0 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if((((!(a15==1)&&((a0==1)&&((((a3==4)&&(((((input==5)&&((a18==1)||!(a18==1)))&&!(a4==1))&&!(a6==1))&&!(a27==1)))&&(a20==1))&&(a22==1))))&&!(a5==1))&&(a12==11))){ + a15 = 1; + a22 = 0; + a12 = 10; + a6 = 1; + a3 = 5; + a18 = 0; + return -1; + } else if((!(a27==1)&&((a0==1)&&((a15==1)&&((a3==6)&&(((((a12==12)&&((a20==1)&&((input==6)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&(a5==1))&&(a4==1))&&(a6==1))))))){ + a15 = 0; + a18 = 0; + a27 = 1; + a5 = 0; + a22 = 0; + a6 = 0; + return -1; + } else if((!(a0==1)&&(!(a4==1)&&(((a5==1)&&(!(a15==1)&&(((a12==8)&&(((!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4)))||(((((a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))))&&(input==6)))&&!(a27==1))))&&(a20==1))))){ + a15 = 1; + a6 = 0; + a18 = 1; + a3 = 7; + a5 = 0; + a12 = 11; + a22 = 0; + a4 = 1; + return 21; + } else if(((a20==1)&&((((a6==1)&&(!(a18==1)&&((a12==12)&&(!(a5==1)&&(((a22==1)&&((a3==6)&&((input==6)&&(a27==1))))&&(a15==1))))))&&(a0==1))&&(a4==1)))){ + a22 = 0; + a27 = 0; + a18 = 1; + a3 = 4; + return 24; + } else if((!(a18==1)&&(((a22==1)&&(((a27==1)&&(!(a6==1)&&(((a12==12)&&((a5==1)&&(((input==1)&&(a20==1))&&!(a0==1))))&&!(a15==1))))&&(a3==6)))&&!(a4==1)))){ + if((a20==1)){ + a6 = 1; + a4 = 1; + a12 = 8; + a22 = 0; + a27 = 0; + a3 = 5; + a0 = 1; + a18 = 1; + }else{ + a3 = 8; + a0 = 1; + a5 = 0; + a6 = 1; + a27 = 0; + a15 = 1; + a18 = 1; + a22 = 0; + } + return 21; + } else if(((((!(a5==1)&&(((a3==6)&&((((a12==11)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==1)))&&!(a0==1))&&!(a4==1)))&&(a6==1)))&&(a20==1))&&(a27==1))&&!(a15==1))){ + a12 = 9; + a3 = 8; + a6 = 0; + a22 = 1; + a0 = 1; + a18 = 1; + return -1; + } else if(((a3==7)&&(!(a5==1)&&(!(a0==1)&&(((!(a6==1)&&((((a20==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==5)))&&!(a15==1))&&(a12==9)))&&!(a27==1))&&(a4==1)))))){ + a6 = 1; + a5 = 1; + a27 = 1; + a15 = 1; + a3 = 5; + a12 = 8; + a0 = 1; + a18 = 0; + a22 = 1; + return 21; + } else if(((a20==1)&&(((a3==7)&&(((((!(a5==1)&&((!(a18==1)&&((input==2)&&!(a27==1)))&&!(a4==1)))&&(a12==8))&&!(a0==1))&&!(a6==1))&&!(a22==1)))&&(a15==1)))){ + a0 = 1; + a15 = 0; + a5 = 1; + a4 = 1; + a6 = 1; + a3 = 8; + a12 = 10; + return -1; + } else if(((((a20==1)&&(!(a27==1)&&((((!(a15==1)&&(!(a6==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==3))))&&(a0==1))&&(a12==9))&&!(a5==1))))&&!(a4==1))&&(a3==7))){ + a15 = 1; + a12 = 8; + a6 = 1; + a18 = 1; + a22 = 1; + a4 = 1; + a5 = 1; + a3 = 4; + a27 = 1; + return -1; + } else if((!(a18==1)&&((((!(a4==1)&&(((a3==4)&&(((((input==4)&&!(a6==1))&&(a20==1))&&!(a22==1))&&!(a5==1)))&&(a0==1)))&&(a12==10))&&!(a15==1))&&(a27==1)))){ + a18 = 1; + a3 = 6; + a5 = 1; + a4 = 1; + a15 = 1; + return -1; + } else if(((a15==1)&&((!(a18==1)&&(((a22==1)&&((!(a6==1)&&((a20==1)&&(!(a0==1)&&((!(a4==1)&&(input==2))&&(a3==5)))))&&(a27==1)))&&(a12==9)))&&(a5==1)))){ + a18 = 1; + a22 = 0; + a12 = 10; + a3 = 7; + a0 = 1; + a5 = 0; + return -1; + } else if((!(a5==1)&&(!(a18==1)&&(!(a6==1)&&((!(a0==1)&&(((!(a27==1)&&((a3==7)&&((a12==11)&&((input==3)&&(a20==1)))))&&!(a15==1))&&!(a4==1)))&&!(a22==1)))))){ + a0 = 1; + a6 = 1; + a15 = 1; + a27 = 1; + a3 = 4; + a5 = 1; + a18 = 1; + return -1; + } else if(((((((a12==9)&&(!(a5==1)&&((((input==5)&&(((a3==8)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7)))))&&(a6==1))&&(a4==1))))&&!(a27==1))&&(a20==1))&&!(a15==1))&&(a0==1))){ + a3 = 4; + a22 = 1; + a15 = 1; + a5 = 1; + a27 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if((((a27==1)&&((a20==1)&&((a12==10)&&((((((input==6)&&((((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))||(((a18==1)&&(a22==1))&&(a3==7))))&&(a4==1))&&(a5==1))&&!(a6==1))&&(a15==1)))))&&!(a0==1))){ + a15 = 0; + a18 = 0; + a6 = 1; + a22 = 0; + a3 = 8; + a12 = 12; + a0 = 1; + return 21; + } else if((((a12==12)&&((a22==1)&&(!(a27==1)&&((((a0==1)&&(((a15==1)&&((a20==1)&&((a3==5)&&(input==1))))&&(a6==1)))&&(a5==1))&&(a4==1)))))&&(a18==1))){ + a27 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((a5==1)&&((a12==11)&&((a3==6)&&(((!(a4==1)&&((((!(a15==1)&&(!(a22==1)&&(input==6)))&&(a0==1))&&!(a6==1))&&!(a27==1)))&&(a18==1))&&(a20==1)))))){ + a18 = 0; + a27 = 1; + a5 = 0; + a0 = 0; + a3 = 7; + return 26; + } else if((((a3==7)&&((((a15==1)&&((((((((a18==1)||!(a18==1))&&(input==3))&&(a6==1))&&(a22==1))&&!(a0==1))&&(a5==1))&&!(a4==1)))&&!(a27==1))&&(a12==10)))&&(a20==1))){ + a12 = 8; + a3 = 4; + a0 = 1; + a4 = 1; + a27 = 1; + a18 = 0; + return 21; + } else if(((a4==1)&&((a15==1)&&(((a6==1)&&((a20==1)&&((!(a5==1)&&((a0==1)&&((input==5)&&(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1)))))))&&(a12==9))))&&!(a27==1))))){ + a3 = 4; + a5 = 1; + a22 = 0; + a12 = 12; + a27 = 1; + a4 = 0; + a6 = 0; + a18 = 0; + return 21; + } else if(((!(a27==1)&&((a18==1)&&((((a0==1)&&((a20==1)&&((a15==1)&&(!(a22==1)&&((a4==1)&&((input==5)&&(a3==8)))))))&&!(a5==1))&&(a12==12))))&&!(a6==1))){ + a12 = 10; + a5 = 1; + a27 = 1; + a6 = 1; + a3 = 4; + a4 = 0; + return -1; + } else if(((((a0==1)&&(((a15==1)&&(((a3==7)&&(((a20==1)&&(((a6==1)&&(input==4))&&(a27==1)))&&!(a5==1)))&&(a12==9)))&&(a4==1)))&&!(a22==1))&&!(a18==1))){ + a12 = 8; + a3 = 4; + a18 = 1; + a5 = 1; + a22 = 1; + return -1; + } else if(((a27==1)&&(((((a20==1)&&((((a0==1)&&(!(a6==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a22==1))))&&(a3==5))&&!(a5==1)))&&(a15==1))&&(a12==12))&&(a4==1)))){ + a22 = 0; + a6 = 1; + a27 = 0; + a3 = 7; + a18 = 0; + return 26; + } else if(((!(a5==1)&&((a22==1)&&(!(a4==1)&&((a18==1)&&((a6==1)&&((a20==1)&&((a12==9)&&((a0==1)&&(((input==4)&&!(a27==1))&&(a15==1))))))))))&&(a3==6))){ + a3 = 8; + a6 = 0; + a18 = 0; + a4 = 1; + return -1; + } else if(((a20==1)&&(!(a27==1)&&((a3==7)&&((a12==12)&&(((!(a4==1)&&((((a0==1)&&((input==6)&&((a18==1)||!(a18==1))))&&!(a22==1))&&!(a15==1)))&&!(a5==1))&&!(a6==1))))))){ + a15 = 1; + a3 = 4; + a6 = 1; + a22 = 1; + a27 = 1; + a4 = 1; + a5 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((a27==1)&&((a4==1)&&((a3==7)&&(((a6==1)&&(!(a5==1)&&(((a20==1)&&(!(a15==1)&&((a12==11)&&(((a18==1)||!(a18==1))&&(input==5)))))&&(a22==1))))&&!(a0==1)))))){ + a0 = 1; + a27 = 0; + a3 = 5; + a4 = 0; + a12 = 8; + a18 = 1; + return 24; + } else if((!(a4==1)&&((((((a0==1)&&(((a5==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))||((a3==8)&&((a22==1)&&!(a18==1))))&&(input==5)))&&(a20==1)))&&!(a27==1))&&(a12==9))&&(a15==1))&&!(a6==1)))){ + a3 = 4; + a12 = 8; + a27 = 1; + a6 = 1; + a22 = 1; + a18 = 1; + a4 = 1; + return -1; + } else if((!(a4==1)&&((a6==1)&&((a15==1)&&(((!(a18==1)&&(((a5==1)&&((((input==3)&&(a12==8))&&(a0==1))&&!(a27==1)))&&(a20==1)))&&(a3==8))&&(a22==1)))))){ + if((a12==8)){ + a4 = 1; + a27 = 1; + a15 = 0; + a12 = 9; + a0 = 0; + a3 = 6; + a18 = 1; + }else{ + a12 = 9; + a18 = 1; + } + return 21; + } else if(((((((a12==11)&&((((a22==1)&&(((a4==1)&&((input==5)&&(a27==1)))&&(a5==1)))&&(a0==1))&&(a18==1)))&&(a20==1))&&!(a6==1))&&(a3==7))&&(a15==1))){ + a12 = 8; + a6 = 1; + a3 = 4; + return -1; + } else if(((((a0==1)&&((a12==11)&&(!(a5==1)&&((input==3)&&(((a6==1)&&((a3==4)&&((a4==1)&&(((a22==1)&&!(a18==1))&&!(a15==1)))))||((!(a6==1)&&((a3==8)&&(((!(a22==1)&&!(a18==1))&&(a15==1))&&!(a4==1))))||((a6==1)&&((a3==4)&&((((a18==1)&&(a22==1))&&!(a15==1))&&(a4==1))))))))))&&(a20==1))&&!(a27==1))){ + a5 = 1; + a12 = 12; + a4 = 1; + a15 = 0; + a3 = 4; + a6 = 1; + a27 = 1; + a22 = 0; + a18 = 0; + return -1; + } else if(((a0==1)&&(!(a27==1)&&((a20==1)&&((a12==9)&&(!(a4==1)&&((a15==1)&&((((((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1)))))&&(input==6))&&(a5==1))))))))){ + a3 = 5; + a6 = 1; + a15 = 0; + a5 = 0; + a4 = 1; + a18 = 1; + a22 = 1; + return 26; + } else if((((((((a12==11)&&((a3==5)&&(((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a20==1))&&(a15==1))))&&!(a27==1))&&(a5==1))&&!(a0==1))&&!(a4==1))&&(a6==1))){ + a18 = 1; + a12 = 10; + a22 = 1; + a0 = 1; + a4 = 1; + a3 = 4; + a5 = 0; + a15 = 0; + return 26; + } else if(((a18==1)&&(!(a22==1)&&((a3==8)&&((a6==1)&&(((a20==1)&&(((!(a5==1)&&(((input==2)&&(a12==12))&&!(a4==1)))&&!(a27==1))&&(a15==1)))&&(a0==1))))))){ + a18 = 0; + a12 = 11; + a15 = 0; + a27 = 1; + a6 = 0; + return 26; + } else if(((a27==1)&&(!(a4==1)&&(!(a5==1)&&(!(a0==1)&&(((a20==1)&&((a15==1)&&((a12==12)&&((a3==6)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==5))))))&&!(a6==1))))))){ + a0 = 1; + a18 = 0; + a27 = 0; + a12 = 11; + a3 = 4; + a5 = 1; + a22 = 0; + a15 = 0; + return 26; + } else if((((a6==1)&&(!(a18==1)&&((a15==1)&&((a4==1)&&(!(a27==1)&&((a0==1)&&((a20==1)&&((((input==1)&&!(a22==1))&&(a12==12))&&(a3==6)))))))))&&(a5==1))){ + a12 = 8; + a27 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((((a4==1)&&(((a5==1)&&(!(a27==1)&&((a12==12)&&((((input==4)&&((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==5)))||(((a22==1)&&!(a18==1))&&(a3==5))))&&!(a6==1))&&!(a15==1)))))&&(a20==1)))&&(a0==1))){ + if((a22==1)){ + a22 = 0; + a12 = 10; + a5 = 0; + a18 = 0; + a6 = 1; + a3 = 4; + a0 = 0; + a15 = 1; + a27 = 1; + }else{ + a18 = 1; + a15 = 1; + a27 = 1; + a22 = 0; + a3 = 6; + a6 = 1; + a5 = 0; + a12 = 11; + } + return -1; + } else if(((a15==1)&&(!(a22==1)&&((((a4==1)&&(((a20==1)&&((((((a18==1)||!(a18==1))&&(input==2))&&!(a27==1))&&!(a6==1))&&!(a5==1)))&&(a12==9)))&&!(a0==1))&&(a3==7))))){ + a0 = 1; + a3 = 8; + a12 = 8; + a18 = 0; + a15 = 0; + a6 = 1; + a4 = 0; + return 21; + } else if((((a4==1)&&((((((a0==1)&&((((a27==1)&&((input==4)&&((a18==1)||!(a18==1))))&&!(a15==1))&&!(a22==1)))&&(a12==10))&&!(a6==1))&&!(a5==1))&&(a3==5)))&&(a20==1))){ + a3 = 8; + a15 = 1; + a18 = 1; + return -1; + } else if(((a5==1)&&(((a12==11)&&(!(a6==1)&&(((!(a0==1)&&(((((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==3))&&!(a15==1)))&&!(a4==1))&&(a20==1))))&&!(a27==1)))){ + a0 = 1; + a3 = 6; + a18 = 1; + a27 = 1; + a12 = 8; + a4 = 1; + a15 = 1; + a22 = 0; + return -1; + } else if(((((!(a15==1)&&((a12==12)&&((a0==1)&&(((a22==1)&&((a18==1)&&(((input==4)&&!(a27==1))&&(a3==7))))&&!(a5==1)))))&&(a6==1))&&(a20==1))&&(a4==1))){ + a18 = 0; + a27 = 1; + a12 = 11; + a5 = 1; + a3 = 8; + a6 = 0; + return 26; + } else if((!(a5==1)&&((a12==10)&&(!(a4==1)&&((a0==1)&&((a27==1)&&(((((a22==1)&&(!(a6==1)&&(((a18==1)||!(a18==1))&&(input==6))))&&(a15==1))&&(a3==7))&&(a20==1)))))))){ + a15 = 0; + a5 = 1; + a3 = 8; + a18 = 1; + return -1; + } else if((!(a27==1)&&((((a18==1)&&((a15==1)&&((a3==8)&&((((((input==3)&&(a22==1))&&(a12==12))&&!(a6==1))&&(a0==1))&&!(a5==1)))))&&(a4==1))&&(a20==1)))){ + a27 = 1; + a5 = 1; + a6 = 1; + a12 = 8; + a3 = 4; + return -1; + } return calculate_output25(input); + } + + int calculate_output25(int input) { + if(((a12==9)&&((a20==1)&&((a4==1)&&((a5==1)&&((((((a3==8)&&((((a18==1)||!(a18==1))&&(input==3))&&!(a27==1)))&&(a22==1))&&!(a6==1))&&!(a15==1))&&(a0==1))))))){ + a6 = 1; + a27 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if(((((((a3==7)&&(((a15==1)&&((a12==12)&&(!(a6==1)&&((input==6)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))))))&&(a27==1)))&&!(a4==1))&&(a0==1))&&!(a5==1))&&(a20==1))){ + a5 = 1; + a22 = 1; + a4 = 1; + a12 = 8; + a6 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((a20==1)&&((((a5==1)&&(!(a4==1)&&(!(a27==1)&&(!(a15==1)&&((input==4)&&(((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))||(!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1))))))))))&&(a12==9))&&!(a0==1)))){ + if((a22==1)){ + a12 = 10; + a3 = 5; + a5 = 0; + a6 = 1; + a15 = 1; + a22 = 1; + a18 = 1; + }else{ + a15 = 1; + a22 = 0; + a12 = 8; + a18 = 1; + a3 = 6; + a0 = 1; + a6 = 1; + a27 = 1; + } + return -1; + } else if(((a20==1)&&(((!(a6==1)&&((a27==1)&&((((a15==1)&&(((input==5)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a0==1)))&&(a3==8))&&!(a5==1))))&&(a12==10))&&!(a4==1)))){ + a3 = 6; + a18 = 0; + a0 = 0; + a15 = 0; + a6 = 1; + a22 = 1; + a12 = 9; + return -1; + } else if((!(a5==1)&&(((a27==1)&&((a0==1)&&((a12==9)&&(((!(a4==1)&&((a20==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==5))))&&(a6==1))&&!(a15==1)))))&&(a3==8)))){ + a6 = 0; + a12 = 11; + a22 = 1; + a15 = 1; + a0 = 0; + a3 = 7; + a18 = 0; + return 26; + } else if(((a15==1)&&((a20==1)&&((a3==6)&&(((((!(a27==1)&&((a0==1)&&((((a18==1)||!(a18==1))&&(input==6))&&!(a6==1))))&&(a22==1))&&(a12==11))&&!(a4==1))&&(a5==1)))))){ + a6 = 1; + a18 = 0; + a3 = 7; + a27 = 1; + a5 = 0; + return 24; + } else if((((((a6==1)&&((!(a4==1)&&(((!(a27==1)&&((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a0==1))&&(a5==1)))&&(a20==1)))&&!(a15==1))&&(a12==11))&&(a3==5))){ + a27 = 1; + a12 = 8; + a22 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if(((!(a0==1)&&((a20==1)&&((((!(a15==1)&&((((a22==1)&&(!(a4==1)&&(input==2)))&&(a12==11))&&!(a5==1)))&&!(a6==1))&&(a3==7))&&(a18==1))))&&(a27==1))){ + a15 = 1; + a6 = 1; + a12 = 8; + a5 = 1; + a4 = 1; + a0 = 1; + a3 = 4; + return -1; + } else if(((a3==7)&&((!(a27==1)&&((!(a5==1)&&((!(a4==1)&&(((a6==1)&&((input==1)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&(a15==1)))&&(a0==1)))&&(a20==1)))&&(a12==8)))){ + a27 = 1; + a4 = 1; + a12 = 10; + a18 = 0; + a22 = 1; + a5 = 1; + return 21; + } else if((!(a15==1)&&((((a4==1)&&((((a6==1)&&((a0==1)&&((input==1)&&((((a3==4)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==4)))||(((a22==1)&&(a18==1))&&(a3==5))))))&&(a27==1))&&!(a5==1)))&&(a20==1))&&(a12==12)))){ + a18 = 0; + a3 = 6; + a15 = 1; + a6 = 0; + a22 = 1; + return 21; + } else if(((a12==9)&&((a15==1)&&(((!(a22==1)&&(((a4==1)&&(((a27==1)&&((a20==1)&&((input==4)&&(a18==1))))&&(a0==1)))&&(a3==8)))&&(a5==1))&&(a6==1))))){ + a22 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((a15==1)&&((!(a0==1)&&(!(a27==1)&&(!(a6==1)&&(((a4==1)&&(((!(a5==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a3==7))&&(a12==9)))&&!(a22==1)))))&&(a20==1)))){ + a15 = 0; + a12 = 11; + a6 = 1; + a5 = 1; + a18 = 1; + a0 = 1; + a22 = 1; + return -1; + } else if(((a6==1)&&((a27==1)&&((((a4==1)&&(((a18==1)&&((a12==10)&&(!(a0==1)&&(((input==1)&&(a20==1))&&!(a15==1)))))&&(a22==1)))&&(a3==4))&&!(a5==1))))){ + a18 = 0; + a5 = 1; + a4 = 0; + a27 = 0; + a6 = 0; + a0 = 1; + a12 = 9; + return 26; + } else if(((a12==12)&&((a20==1)&&(!(a18==1)&&(((!(a4==1)&&((((!(a6==1)&&((input==3)&&(a15==1)))&&!(a27==1))&&!(a22==1))&&(a3==4)))&&(a0==1))&&!(a5==1)))))){ + a5 = 1; + a18 = 1; + a4 = 1; + a22 = 1; + a6 = 1; + a12 = 8; + a27 = 1; + return -1; + } else if(((((a22==1)&&(((!(a5==1)&&((a12==11)&&(!(a6==1)&&(!(a4==1)&&((a18==1)&&((a20==1)&&(input==4)))))))&&!(a0==1))&&!(a15==1)))&&(a3==4))&&!(a27==1))){ + if((a5==1)){ + a12 = 10; + a5 = 1; + a4 = 1; + a0 = 1; + a22 = 0; + a6 = 1; + }else{ + a4 = 1; + a3 = 8; + a27 = 1; + a6 = 1; + a15 = 1; + a12 = 9; + a5 = 1; + } + return 26; + } else if(((a12==8)&&(((a18==1)&&((a4==1)&&(((((a20==1)&&((a5==1)&&((!(a15==1)&&(input==2))&&(a3==5))))&&!(a6==1))&&(a27==1))&&(a22==1))))&&!(a0==1)))){ + if((a4==1)){ + a18 = 0; + a3 = 8; + a4 = 0; + a5 = 0; + }else{ + a0 = 1; + a3 = 6; + a22 = 0; + a6 = 1; + a12 = 10; + } + return 26; + } else if(((!(a27==1)&&(((a4==1)&&((a20==1)&&(((((a12==10)&&(((input==6)&&(a5==1))&&!(a6==1)))&&(a15==1))&&(a3==7))&&(a18==1))))&&(a22==1)))&&!(a0==1))){ + if((a5==1)){ + a12 = 8; + a6 = 1; + a3 = 5; + a0 = 1; + a27 = 1; + }else{ + a0 = 1; + a18 = 0; + a6 = 1; + a12 = 8; + a3 = 6; + a27 = 1; + } + return -1; + } else if(((a6==1)&&((!(a18==1)&&(((!(a5==1)&&(((a27==1)&&((((a20==1)&&(input==3))&&(a12==11))&&!(a4==1)))&&(a3==5)))&&(a22==1))&&(a15==1)))&&!(a0==1)))){ + a18 = 1; + a4 = 1; + a0 = 1; + a5 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((!(a0==1)&&(!(a5==1)&&(!(a4==1)&&(((((input==4)&&((!(a6==1)&&((!(a18==1)&&(a22==1))&&(a3==4)))||((((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1)))))&&!(a15==1))&&(a20==1))&&(a12==11)))))&&(a27==1))){ + a0 = 1; + a6 = 1; + a15 = 1; + a27 = 0; + a22 = 0; + a12 = 8; + a18 = 0; + a3 = 5; + a5 = 1; + return -1; + } else if(((a5==1)&&(!(a15==1)&&((a12==12)&&((a27==1)&&((a4==1)&&(!(a0==1)&&((a3==8)&&(!(a6==1)&&(((input==5)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&(a20==1))))))))))){ + if((a3==8)){ + a12 = 8; + a0 = 1; + a15 = 1; + a22 = 0; + a18 = 0; + }else{ + a22 = 0; + a12 = 8; + a4 = 0; + a3 = 6; + a6 = 1; + a0 = 1; + a18 = 1; + a15 = 1; + } + return 21; + } else if(((a27==1)&&(!(a15==1)&&((a4==1)&&((a5==1)&&(!(a6==1)&&(!(a0==1)&&((a12==11)&&((a20==1)&&((input==4)&&(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1)))))))))))))){ + a6 = 1; + a18 = 1; + a0 = 1; + a15 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + return -1; + } else if((!(a5==1)&&(!(a0==1)&&((!(a27==1)&&((((((((input==4)&&(a18==1))&&(a22==1))&&(a6==1))&&(a20==1))&&!(a15==1))&&(a4==1))&&(a3==8)))&&(a12==10))))){ + a18 = 0; + a27 = 1; + a12 = 12; + a22 = 0; + a5 = 1; + a6 = 0; + a3 = 6; + a4 = 0; + return 26; + } else if((((a0==1)&&((a12==11)&&(((a20==1)&&(((a6==1)&&(!(a15==1)&&(((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8)))||((a3==8)&&(!(a18==1)&&(a22==1))))&&(input==3))))&&!(a27==1)))&&!(a5==1))))&&!(a4==1))){ + a15 = 1; + a18 = 0; + a27 = 1; + a22 = 1; + a3 = 6; + a5 = 1; + return 21; + } else if(((a12==9)&&((a6==1)&&((a27==1)&&((a20==1)&&(!(a0==1)&&(((a3==5)&&(((((a22==1)&&(input==2))&&(a5==1))&&(a18==1))&&!(a4==1)))&&(a15==1)))))))){ + a4 = 1; + a27 = 0; + a0 = 1; + return -1; + } else if(((a27==1)&&(!(a4==1)&&((a3==6)&&((((a20==1)&&((!(a15==1)&&(((input==6)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&(a12==10)))&&!(a6==1)))&&!(a5==1))&&!(a0==1)))))){ + a22 = 0; + a3 = 7; + a4 = 1; + a12 = 11; + a6 = 1; + a0 = 1; + a15 = 1; + a18 = 1; + return 26; + } else if((((((((a15==1)&&((!(a4==1)&&(!(a0==1)&&(((input==2)&&!(a22==1))&&(a20==1))))&&(a27==1)))&&!(a5==1))&&!(a18==1))&&!(a6==1))&&(a3==6))&&(a12==10))){ + a18 = 1; + a6 = 1; + a0 = 1; + a15 = 0; + return 26; + } else if((((a5==1)&&((a4==1)&&((((a20==1)&&(!(a27==1)&&(((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a3==8))&&(a12==11))))&&(a0==1))&&(a6==1))))&&(a15==1))){ + a18 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + a27 = 1; + return -1; + } else if((!(a4==1)&&(!(a5==1)&&((a0==1)&&(((!(a27==1)&&(((a20==1)&&((a12==8)&&(((input==1)&&(a6==1))&&(a18==1))))&&(a15==1)))&&(a22==1))&&(a3==5)))))){ + a3 = 4; + a5 = 1; + a27 = 1; + a4 = 1; + return -1; + } else if(((a0==1)&&(!(a27==1)&&((a20==1)&&((((a6==1)&&((a3==4)&&((a4==1)&&((((!(a18==1)&&(a22==1))&&(a5==1))&&(a15==1))&&(a12==11)))))||((!(a6==1)&&((((a12==10)&&((!(a5==1)&&(!(a18==1)&&!(a22==1)))&&!(a15==1)))&&!(a4==1))&&(a3==8)))||((a6==1)&&((a3==4)&&((a4==1)&&((a12==11)&&((((a22==1)&&(a18==1))&&(a5==1))&&(a15==1))))))))&&(input==1)))))){ + a5 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + a15 = 1; + a12 = 8; + a4 = 1; + a6 = 1; + a27 = 1; + return -1; + } else if(((((((((((((input==3)&&(a12==8))&&!(a18==1))&&(a3==4))&&(a15==1))&&!(a0==1))&&!(a5==1))&&!(a27==1))&&(a4==1))&&(a6==1))&&(a20==1))&&!(a22==1))){ + if((a20==1)){ + a27 = 1; + a0 = 1; + a6 = 0; + a18 = 1; + a5 = 1; + }else{ + a6 = 0; + a5 = 1; + a15 = 0; + a3 = 8; + a12 = 11; + a18 = 1; + } + return -1; + } else if(((a0==1)&&(((a27==1)&&(!(a15==1)&&(!(a6==1)&&(!(a5==1)&&((a20==1)&&(((((input==6)&&((a18==1)||!(a18==1)))&&(a12==10))&&!(a22==1))&&(a3==4)))))))&&(a4==1)))){ + a12 = 8; + a3 = 8; + a5 = 1; + a18 = 1; + a22 = 1; + a0 = 0; + return 26; + } else if(((((((!(a15==1)&&((a22==1)&&(((a3==7)&&(((input==4)&&(a5==1))&&(a27==1)))&&(a20==1))))&&!(a18==1))&&(a4==1))&&(a12==8))&&!(a6==1))&&!(a0==1))){ + if((a18==1)){ + a12 = 11; + a18 = 1; + a15 = 1; + a4 = 0; + a22 = 0; + }else{ + a15 = 1; + a18 = 1; + a0 = 1; + a12 = 11; + } + return 26; + } else if((((a20==1)&&(!(a0==1)&&((a5==1)&&(!(a15==1)&&((((a18==1)&&((((input==1)&&(a12==9))&&(a22==1))&&!(a27==1)))&&!(a6==1))&&(a4==1))))))&&(a3==7))){ + a27 = 1; + a12 = 8; + a15 = 1; + a3 = 4; + a0 = 1; + a6 = 1; + return 21; + } else if((((a20==1)&&((((a6==1)&&((a12==9)&&((a0==1)&&((((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8)))||(((a22==1)&&!(a18==1))&&(a3==8)))&&(input==3))&&(a4==1)))))&&(a15==1))&&(a5==1)))&&(a27==1))){ + a12 = 12; + a18 = 0; + a3 = 4; + a22 = 1; + return 21; + } else if(((a12==9)&&((!(a0==1)&&(((a6==1)&&((a15==1)&&(((a5==1)&&((input==3)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))||((a3==8)&&((a22==1)&&!(a18==1))))))&&(a27==1))))&&(a20==1)))&&(a4==1)))){ + a12 = 8; + a18 = 0; + a3 = 6; + a0 = 1; + a22 = 0; + a27 = 0; + a5 = 0; + return 26; + } else if(((((a12==10)&&((a0==1)&&(((a15==1)&&(!(a6==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==2))&&!(a4==1))))&&(a20==1))))&&!(a27==1))&&!(a5==1))){ + a18 = 0; + a12 = 9; + a22 = 1; + a6 = 1; + a3 = 7; + a4 = 1; + return -1; + } else if((!(a6==1)&&((a27==1)&&(((a0==1)&&(((a20==1)&&((((input==4)&&((((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1))))||((a3==5)&&(!(a18==1)&&(a22==1)))))&&(a12==8))&&(a4==1)))&&!(a5==1)))&&(a15==1))))){ + a15 = 0; + a3 = 5; + a18 = 1; + a4 = 0; + a12 = 9; + a22 = 1; + return 26; + } else if((((a12==11)&&((a5==1)&&(!(a6==1)&&(!(a0==1)&&(!(a4==1)&&((a27==1)&&(((input==4)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6))))&&(a20==1))))))))&&!(a15==1))){ + a4 = 1; + a3 = 8; + a18 = 1; + a22 = 0; + a0 = 1; + a5 = 0; + return 26; + } else if(((a3==8)&&((a20==1)&&(((((a6==1)&&((!(a15==1)&&(!(a22==1)&&((a0==1)&&(!(a18==1)&&(input==4)))))&&(a12==12)))&&(a27==1))&&!(a5==1))&&(a4==1))))){ + a4 = 0; + a15 = 1; + a22 = 1; + a0 = 0; + a3 = 6; + a6 = 0; + a12 = 11; + return 24; + } else if(((a18==1)&&((((a0==1)&&((a27==1)&&((!(a6==1)&&((a5==1)&&((a22==1)&&((!(a15==1)&&(input==5))&&(a3==7)))))&&(a20==1))))&&(a12==10))&&!(a4==1)))){ + if((a5==1)){ + a18 = 0; + a0 = 0; + a22 = 0; + a3 = 8; + a15 = 1; + }else{ + a4 = 1; + a15 = 1; + } + return -1; + } else if(((a27==1)&&((((a15==1)&&((a12==9)&&((((!(a22==1)&&(((input==1)&&(a0==1))&&(a5==1)))&&(a18==1))&&(a3==4))&&(a20==1))))&&(a4==1))&&(a6==1)))){ + a15 = 0; + a12 = 11; + a3 = 5; + a5 = 0; + return 26; + } else if(((!(a6==1)&&(!(a4==1)&&((a0==1)&&(((a15==1)&&((a20==1)&&((a3==6)&&((a22==1)&&((((a18==1)||!(a18==1))&&(input==2))&&!(a27==1))))))&&(a12==10)))))&&(a5==1))){ + a3 = 7; + a18 = 1; + a6 = 1; + a22 = 0; + a15 = 0; + return 26; + } else if(((a12==9)&&(((a15==1)&&(((a20==1)&&(!(a4==1)&&(!(a18==1)&&((a22==1)&&((((input==5)&&(a27==1))&&!(a6==1))&&!(a5==1))))))&&(a3==6)))&&(a0==1)))){ + a3 = 7; + a27 = 0; + a15 = 0; + a12 = 8; + a6 = 1; + a18 = 1; + a4 = 1; + return 21; + } else if(((!(a27==1)&&((a4==1)&&(((a20==1)&&(!(a0==1)&&((!(a15==1)&&((input==2)&&((((a22==1)&&!(a18==1))&&(a3==5))||(((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==5))))))&&(a5==1))))&&(a12==9))))&&!(a6==1))){ + if((a18==1)){ + a15 = 1; + a18 = 1; + a27 = 1; + a22 = 0; + a3 = 4; + a12 = 8; + a0 = 1; + }else{ + a3 = 8; + a0 = 1; + a22 = 0; + a12 = 10; + a18 = 0; + } + return -1; + } else if((((!(a27==1)&&((a5==1)&&(!(a15==1)&&((a12==12)&&(((a4==1)&&((((a3==6)&&(input==4))&&(a20==1))&&(a6==1)))&&!(a22==1))))))&&(a0==1))&&!(a18==1))){ + a3 = 4; + a12 = 8; + a22 = 1; + a15 = 1; + a18 = 1; + a27 = 1; + return -1; + } else if(((a5==1)&&(((((((!(a4==1)&&((input==6)&&(((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))))&&!(a0==1))&&(a20==1))&&!(a15==1))&&!(a27==1))&&(a12==8))&&!(a6==1)))){ + a3 = 7; + a0 = 1; + a22 = 0; + a15 = 1; + a27 = 1; + a18 = 1; + a4 = 1; + a6 = 1; + return -1; + } else if(((((((a4==1)&&((a0==1)&&((a20==1)&&((((((a18==1)||!(a18==1))&&(input==4))&&(a3==8))&&(a15==1))&&(a6==1)))))&&(a5==1))&&(a12==9))&&(a22==1))&&!(a27==1))){ + a12 = 8; + a5 = 0; + a22 = 0; + a3 = 7; + a15 = 0; + a18 = 0; + return 26; + } else if((((a20==1)&&(!(a5==1)&&((((a6==1)&&(!(a0==1)&&(!(a4==1)&&(((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1))))||((a3==7)&&(!(a18==1)&&(a22==1))))&&(input==1)))))&&!(a27==1))&&(a12==11))))&&!(a15==1))){ + if((a27==1)){ + a27 = 1; + a12 = 8; + a5 = 1; + a22 = 0; + a18 = 1; + a3 = 8; + a0 = 1; + a15 = 1; + }else{ + a4 = 1; + a22 = 0; + a27 = 1; + a6 = 0; + a3 = 8; + a18 = 1; + a5 = 1; + a12 = 8; + a15 = 1; + a0 = 1; + } + return -1; + } else if((((a27==1)&&(((a4==1)&&((a0==1)&&(((((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==4))&&(a20==1))&&(a5==1))&&!(a15==1))))&&(a12==11)))&&!(a6==1))){ + a6 = 1; + a22 = 1; + a3 = 8; + a18 = 1; + return 21; + } else if((!(a5==1)&&(!(a15==1)&&((a22==1)&&(!(a0==1)&&((a20==1)&&((((a3==8)&&(!(a27==1)&&((((a18==1)||!(a18==1))&&(input==2))&&(a6==1))))&&!(a4==1))&&(a12==9)))))))){ + if((a3==7)){ + a18 = 0; + a12 = 11; + a3 = 4; + }else{ + a22 = 0; + a18 = 1; + a3 = 4; + a12 = 10; + } + return 24; + } else if(((a15==1)&&((!(a4==1)&&(((((((((input==3)&&((a18==1)||!(a18==1)))&&!(a6==1))&&(a12==10))&&(a20==1))&&!(a27==1))&&(a0==1))&&(a3==8))&&(a22==1)))&&!(a5==1)))){ + a18 = 1; + a5 = 1; + a6 = 1; + a27 = 1; + a4 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if((((a12==8)&&((a3==5)&&((!(a5==1)&&((((a6==1)&&((a22==1)&&(((input==5)&&(a20==1))&&!(a27==1))))&&!(a4==1))&&(a18==1)))&&!(a15==1))))&&!(a0==1))){ + a12 = 12; + a3 = 7; + a27 = 1; + return -1; + } else if((((a12==12)&&(!(a15==1)&&((!(a5==1)&&(((!(a4==1)&&((!(a6==1)&&(!(a18==1)&&(input==2)))&&(a3==5)))&&(a27==1))&&(a20==1)))&&(a0==1))))&&!(a22==1))){ + a22 = 1; + a3 = 4; + a4 = 1; + a5 = 1; + return 26; + } else if(((a3==6)&&(!(a5==1)&&((a18==1)&&(!(a0==1)&&(((a20==1)&&(!(a6==1)&&(!(a15==1)&&(((a12==11)&&((input==5)&&(a27==1)))&&!(a22==1)))))&&(a4==1))))))){ + a12 = 10; + a0 = 1; + a5 = 1; + return -1; + } else if(((((a20==1)&&(!(a5==1)&&(((a0==1)&&(((input==2)&&(((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4)))))&&(a12==9)))&&(a15==1))))&&(a4==1))&&!(a27==1))){ + a27 = 1; + a22 = 1; + a5 = 1; + a18 = 1; + a12 = 8; + a6 = 1; + a3 = 4; + return -1; + } else if(((a27==1)&&(((a20==1)&&(((a12==9)&&(!(a4==1)&&((a3==5)&&(((a5==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==4)))&&(a0==1)))))&&!(a15==1)))&&(a6==1)))){ + a22 = 0; + a18 = 0; + a3 = 6; + a12 = 12; + a15 = 1; + return 24; + } else if(((!(a15==1)&&(((((a12==8)&&(!(a18==1)&&((a5==1)&&((a3==8)&&(((a22==1)&&(input==4))&&(a6==1))))))&&!(a4==1))&&(a20==1))&&(a0==1)))&&!(a27==1))){ + a12 = 11; + a5 = 0; + a4 = 1; + a3 = 7; + a18 = 1; + return 26; + } else if(((((!(a15==1)&&((((a0==1)&&((a3==7)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==2))&&!(a4==1))))&&(a20==1))&&!(a6==1)))&&(a12==9))&&!(a5==1))&&!(a27==1))){ + a18 = 0; + a6 = 1; + a22 = 1; + a4 = 1; + return 26; + } else if(((a4==1)&&((a20==1)&&(((a0==1)&&(((a15==1)&&(((a12==11)&&(((((a18==1)&&(a22==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5))))&&(input==5)))&&(a5==1)))&&!(a27==1)))&&(a6==1))))){ + a12 = 8; + a6 = 0; + a3 = 8; + a22 = 0; + a4 = 0; + a18 = 1; + a15 = 0; + return 26; + } else if(((((a20==1)&&((a0==1)&&((a6==1)&&(!(a5==1)&&((((a12==9)&&(((a3==4)&&(input==1))&&!(a22==1)))&&!(a4==1))&&(a15==1))))))&&(a18==1))&&(a27==1))){ + a5 = 1; + a6 = 0; + a12 = 8; + return 26; + } else if(((((a20==1)&&(((((a12==8)&&((a5==1)&&((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==4))&&(a0==1))))&&(a3==6))&&!(a4==1))&&!(a27==1)))&&(a6==1))&&!(a15==1))){ + a18 = 1; + a6 = 0; + a22 = 0; + a3 = 5; + a12 = 12; + return 26; + } else if(((!(a22==1)&&(((!(a5==1)&&(!(a0==1)&&(!(a4==1)&&((((((a18==1)||!(a18==1))&&(input==2))&&(a20==1))&&!(a27==1))&&(a15==1)))))&&(a3==6))&&(a12==11)))&&(a6==1))){ + a0 = 1; + a12 = 8; + a5 = 1; + a4 = 1; + a27 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((!(a0==1)&&((a3==6)&&(((((a15==1)&&(!(a5==1)&&((a27==1)&&((a4==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==6))))))&&(a12==8))&&(a20==1))&&(a6==1))))){ + a22 = 1; + a6 = 0; + a18 = 1; + a5 = 1; + a12 = 12; + a15 = 0; + a0 = 1; + a3 = 4; + return 21; + } else if((((a27==1)&&((a15==1)&&(!(a5==1)&&(((((((((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))||((a3==8)&&(!(a18==1)&&(a22==1))))&&(input==2))&&!(a4==1))&&(a0==1))&&!(a6==1))&&(a12==8)))))&&(a20==1))){ + a4 = 1; + a3 = 4; + a22 = 1; + a5 = 1; + a6 = 1; + a18 = 1; + return -1; + } else if(((a3==5)&&((a20==1)&&(!(a5==1)&&((((((a22==1)&&(!(a0==1)&&((((a18==1)||!(a18==1))&&(input==3))&&!(a15==1))))&&(a6==1))&&(a12==12))&&(a27==1))&&(a4==1)))))){ + a5 = 1; + a6 = 0; + a18 = 1; + a4 = 0; + a12 = 11; + a3 = 7; + return 21; + } else if((!(a5==1)&&(!(a22==1)&&((((a3==5)&&((a27==1)&&(!(a6==1)&&((a4==1)&&((a20==1)&&(!(a18==1)&&((a12==12)&&(input==5))))))))&&(a15==1))&&!(a0==1))))){ + a22 = 1; + a0 = 1; + a12 = 8; + a5 = 1; + return 24; + } else if((!(a27==1)&&((!(a6==1)&&((((a15==1)&&(!(a5==1)&&(((a3==4)&&((a12==10)&&(((a18==1)||!(a18==1))&&(input==3))))&&(a20==1))))&&!(a0==1))&&(a22==1)))&&!(a4==1)))){ + if((a4==1)){ + a18 = 1; + a5 = 1; + a12 = 8; + a0 = 1; + a6 = 1; + a3 = 6; + a27 = 1; + }else{ + a18 = 1; + a4 = 1; + a27 = 1; + a12 = 8; + a22 = 0; + a6 = 1; + a5 = 1; + a0 = 1; + } + return -1; + } else if((!(a4==1)&&(!(a0==1)&&(((a27==1)&&((a5==1)&&((((a20==1)&&(!(a22==1)&&((a15==1)&&(((a18==1)||!(a18==1))&&(input==6)))))&&(a12==9))&&(a3==4))))&&(a6==1))))){ + a6 = 0; + a22 = 1; + a0 = 1; + a18 = 1; + a27 = 0; + return 26; + } else if((!(a15==1)&&((a4==1)&&((a3==5)&&(((a20==1)&&((a18==1)&&((((((input==3)&&(a0==1))&&!(a27==1))&&(a5==1))&&(a12==10))&&!(a22==1))))&&!(a6==1)))))){ + a3 = 8; + a15 = 1; + a27 = 1; + a12 = 11; + a18 = 0; + return 21; + } else if(((a20==1)&&(((((a4==1)&&(((a3==8)&&(!(a5==1)&&((a27==1)&&((input==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))))&&!(a6==1)))&&!(a0==1))&&(a15==1))&&(a12==9)))){ + a12 = 8; + a6 = 1; + a18 = 1; + a0 = 1; + a5 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if((!(a6==1)&&(!(a15==1)&&((((a0==1)&&((((a5==1)&&((a4==1)&&((input==3)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&(a12==12))&&(a3==5)))&&(a20==1))&&(a27==1))))){ + a12 = 10; + a6 = 1; + a3 = 8; + a15 = 1; + a4 = 0; + a22 = 0; + a18 = 0; + return -1; + } else if(((((a27==1)&&(!(a6==1)&&(((a20==1)&&(!(a15==1)&&(((((!(a18==1)&&(a22==1))&&(a3==8))||(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8))))&&(input==1))&&(a5==1))))&&(a12==11))))&&!(a0==1))&&!(a4==1))){ + a12 = 12; + a6 = 1; + a0 = 1; + a22 = 1; + a18 = 0; + a3 = 4; + return -1; + } else if((((a22==1)&&((!(a27==1)&&((a6==1)&&(!(a4==1)&&(((a15==1)&&((!(a0==1)&&((input==2)&&((a18==1)||!(a18==1))))&&(a20==1)))&&!(a5==1)))))&&(a12==10)))&&(a3==8))){ + a12 = 8; + a4 = 1; + a5 = 1; + a22 = 0; + a3 = 6; + a0 = 1; + a27 = 1; + a18 = 0; + return -1; + } else if((((a20==1)&&((a27==1)&&(!(a15==1)&&(((a4==1)&&(!(a5==1)&&(((a12==9)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==4)))&&!(a6==1))))&&(a3==6)))))&&!(a0==1))){ + a5 = 1; + a0 = 1; + a18 = 1; + a22 = 1; + a3 = 4; + a6 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if((((a20==1)&&((a0==1)&&(((!(a6==1)&&((a12==12)&&(((((input==1)&&!(a18==1))&&!(a27==1))&&(a3==6))&&(a22==1))))&&(a4==1))&&(a5==1))))&&!(a15==1))){ + a18 = 1; + a6 = 1; + a3 = 4; + a27 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if((((a4==1)&&((a12==9)&&((((a0==1)&&(((a15==1)&&(!(a6==1)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==3))))&&(a3==4)))&&(a20==1))&&!(a27==1))))&&(a5==1))){ + a18 = 1; + a4 = 0; + a22 = 0; + a12 = 8; + a27 = 1; + a3 = 5; + return -1; + } else if((((!(a27==1)&&(((!(a5==1)&&((a0==1)&&((a20==1)&&((((input==2)&&((a18==1)||!(a18==1)))&&!(a15==1))&&!(a22==1)))))&&(a3==6))&&(a12==8)))&&!(a4==1))&&(a6==1))){ + a27 = 1; + a0 = 0; + a15 = 1; + a18 = 0; + a12 = 11; + return 21; + } else if((!(a27==1)&&((a5==1)&&(((((a22==1)&&((a12==10)&&((a20==1)&&(((((a18==1)||!(a18==1))&&(input==3))&&(a4==1))&&(a6==1)))))&&(a15==1))&&(a0==1))&&(a3==4))))){ + a3 = 7; + a27 = 1; + a0 = 0; + a12 = 8; + a22 = 0; + a18 = 0; + a4 = 0; + a5 = 0; + return -1; + } else if((((a20==1)&&((a12==10)&&((a4==1)&&((!(a5==1)&&((((input==2)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6))))&&!(a15==1))&&!(a27==1)))&&!(a0==1)))))&&!(a6==1))){ + a18 = 1; + a0 = 1; + a15 = 1; + a5 = 1; + a22 = 1; + a4 = 0; + a27 = 1; + a3 = 8; + a12 = 8; + a6 = 1; + return 21; + } else if((((((a0==1)&&(((!(a27==1)&&(!(a5==1)&&((a20==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==1)))))&&(a12==8))&&(a4==1)))&&(a6==1))&&(a3==5))&&(a15==1))){ + a22 = 0; + a18 = 0; + a5 = 1; + a12 = 12; + a15 = 0; + a27 = 1; + a4 = 0; + return -1; + } else if(((a20==1)&&((((a15==1)&&(((a0==1)&&((((a6==1)&&(((a18==1)&&(input==6))&&(a27==1)))&&(a4==1))&&(a12==12)))&&(a3==6)))&&!(a22==1))&&(a5==1)))){ + a22 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((a27==1)&&((((((a4==1)&&((a0==1)&&((a15==1)&&(!(a18==1)&&((a6==1)&&((a20==1)&&(input==3)))))))&&!(a5==1))&&(a22==1))&&(a12==10))&&(a3==5)))){ + if((a12==9)){ + a6 = 0; + a22 = 0; + a3 = 7; + a0 = 0; + a5 = 1; + a12 = 12; + }else{ + a5 = 1; + a4 = 0; + a18 = 1; + a22 = 0; + } + return -1; + } else if((((a27==1)&&((a3==4)&&((((a20==1)&&((a12==10)&&((!(a0==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==1)))&&!(a15==1))))&&!(a6==1))&&!(a4==1))))&&!(a5==1))){ + a5 = 1; + a18 = 1; + a12 = 11; + a6 = 1; + a0 = 1; + a22 = 1; + return -1; + } else if(((a5==1)&&((((((a4==1)&&((a15==1)&&(((((input==1)&&!(a0==1))&&(a12==9))&&(a3==4))&&!(a6==1))))&&!(a18==1))&&(a20==1))&&!(a27==1))&&(a22==1)))){ + a6 = 1; + a4 = 0; + a0 = 1; + a3 = 6; + a22 = 0; + return 24; + } else if(((!(a6==1)&&(((a20==1)&&(!(a0==1)&&((a22==1)&&((a27==1)&&(((!(a18==1)&&(!(a4==1)&&(input==2)))&&(a3==8))&&!(a15==1))))))&&(a5==1)))&&(a12==8))){ + a22 = 0; + a0 = 1; + a12 = 10; + a5 = 0; + a3 = 5; + a4 = 1; + return 21; + } else if(((!(a5==1)&&(((!(a6==1)&&((((((input==5)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&!(a15==1))&&(a20==1))&&!(a27==1))&&!(a0==1)))&&(a12==10))&&(a3==5)))&&(a4==1))){ + if((a22==1)){ + a15 = 1; + a22 = 1; + a12 = 9; + a5 = 1; + a3 = 7; + a4 = 0; + a18 = 1; + }else{ + a18 = 0; + a3 = 6; + a22 = 1; + a12 = 12; + a4 = 0; + a0 = 1; + } + return -1; + } else if(((a5==1)&&((a0==1)&&(!(a27==1)&&((a12==8)&&((a20==1)&&((a3==5)&&(!(a22==1)&&((!(a4==1)&&(!(a6==1)&&((input==5)&&((a18==1)||!(a18==1)))))&&!(a15==1)))))))))){ + a18 = 0; + a12 = 10; + a15 = 1; + a3 = 6; + a22 = 1; + a27 = 1; + a4 = 1; + return 26; + } else if(((a0==1)&&(!(a6==1)&&(!(a4==1)&&((!(a5==1)&&((a12==8)&&(((a20==1)&&((a3==6)&&((input==4)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))&&!(a27==1))))&&(a15==1)))))){ + a27 = 1; + a18 = 1; + a6 = 1; + a3 = 4; + a22 = 1; + a5 = 1; + a4 = 1; + return -1; + } else if(((a4==1)&&((a15==1)&&((a6==1)&&((a3==5)&&(((((a27==1)&&((a20==1)&&((input==2)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))))&&(a0==1))&&(a12==12))&&(a5==1))))))){ + if((a18==1)){ + a22 = 0; + a5 = 0; + a12 = 10; + a15 = 0; + a18 = 1; + a0 = 0; + }else{ + a3 = 8; + a12 = 10; + a18 = 1; + a15 = 0; + a5 = 0; + a6 = 0; + a22 = 1; + } + return 21; + } else if((((a3==8)&&(!(a5==1)&&(((!(a6==1)&&(((((a12==10)&&(!(a4==1)&&(input==6)))&&!(a22==1))&&(a15==1))&&!(a18==1)))&&(a0==1))&&!(a27==1))))&&(a20==1))){ + a27 = 1; + a12 = 12; + a5 = 1; + a22 = 1; + a15 = 0; + a3 = 5; + return -1; + } else if(((a4==1)&&((((a3==7)&&((!(a6==1)&&(((((input==2)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&!(a5==1))&&(a27==1))&&!(a15==1)))&&(a20==1)))&&(a12==11))&&(a0==1)))){ + a18 = 0; + a6 = 1; + a27 = 0; + a22 = 1; + a3 = 8; + return 26; + } else if((((!(a4==1)&&((!(a18==1)&&(((a27==1)&&(((a22==1)&&(!(a5==1)&&((a20==1)&&(input==5))))&&(a3==4)))&&!(a15==1)))&&(a12==8)))&&(a6==1))&&!(a0==1))){ + a6 = 0; + a5 = 1; + a3 = 5; + a12 = 10; + a4 = 1; + a0 = 1; + return 24; + } else if(((a20==1)&&(!(a22==1)&&((((a5==1)&&(!(a6==1)&&(((a0==1)&&((a12==10)&&((!(a18==1)&&(input==5))&&(a15==1))))&&!(a27==1))))&&(a3==5))&&(a4==1))))){ + a15 = 0; + a27 = 1; + a5 = 0; + a3 = 8; + return 21; + } else if((!(a5==1)&&(((((a12==9)&&(!(a18==1)&&(((((a4==1)&&((input==5)&&(a0==1)))&&(a27==1))&&(a15==1))&&(a20==1))))&&!(a6==1))&&(a3==7))&&(a22==1)))){ + if((a20==1)){ + a12 = 8; + a0 = 0; + a18 = 1; + a3 = 6; + }else{ + a3 = 6; + a12 = 11; + a6 = 1; + a4 = 0; + } + return 24; + } else if(((a20==1)&&((a15==1)&&(!(a5==1)&&((a12==10)&&((!(a27==1)&&(((!(a4==1)&&((a0==1)&&(!(a6==1)&&(input==3))))&&(a3==8))&&!(a22==1)))&&!(a18==1))))))){ + a5 = 1; + a27 = 1; + a12 = 12; + a0 = 0; + return -1; + } else if(((a0==1)&&((!(a4==1)&&(((!(a15==1)&&(((a20==1)&&((!(a5==1)&&(!(a18==1)&&(input==1)))&&(a3==8)))&&(a12==9)))&&(a6==1))&&!(a27==1)))&&!(a22==1)))){ + a27 = 1; + a4 = 1; + a3 = 4; + a15 = 1; + a22 = 1; + a5 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if((((a0==1)&&(((a6==1)&&((a12==8)&&((a3==5)&&((a20==1)&&((a15==1)&&((((input==5)&&((a18==1)||!(a18==1)))&&!(a22==1))&&!(a4==1)))))))&&!(a5==1)))&&(a27==1))){ + a22 = 1; + a5 = 1; + a18 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((a12==9)&&(((((((a6==1)&&((a3==7)&&(((a0==1)&&((input==3)&&((a18==1)||!(a18==1))))&&!(a27==1))))&&!(a5==1))&&!(a15==1))&&!(a22==1))&&(a20==1))&&!(a4==1)))){ + a27 = 1; + a6 = 0; + a5 = 1; + a12 = 10; + a3 = 6; + a4 = 1; + a18 = 0; + return 26; + } else if(((a12==9)&&((a27==1)&&(((a3==8)&&((a5==1)&&(!(a18==1)&&((!(a0==1)&&((!(a15==1)&&((a20==1)&&(input==5)))&&!(a4==1)))&&(a6==1)))))&&(a22==1))))){ + a3 = 4; + a0 = 1; + a18 = 1; + a4 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if((((a3==7)&&((((a6==1)&&(((a12==11)&&((a4==1)&&((a18==1)&&((a5==1)&&(!(a22==1)&&(input==4))))))&&!(a15==1)))&&(a20==1))&&!(a0==1)))&&!(a27==1))){ + a6 = 0; + a22 = 1; + a12 = 8; + a3 = 4; + a27 = 1; + a0 = 1; + a15 = 1; + a4 = 0; + return -1; + } else if((!(a15==1)&&((!(a6==1)&&((!(a4==1)&&(!(a0==1)&&(!(a5==1)&&(((((input==4)&&(a3==5))&&!(a22==1))&&(a20==1))&&(a18==1)))))&&(a12==12)))&&(a27==1)))){ + a12 = 10; + a4 = 1; + a15 = 1; + a22 = 1; + a5 = 1; + a27 = 0; + return -1; + } else if((!(a4==1)&&(((a20==1)&&((((a3==4)&&((!(a5==1)&&((((a12==9)&&(input==6))&&!(a0==1))&&!(a27==1)))&&(a6==1)))&&(a18==1))&&(a15==1)))&&!(a22==1)))){ + if((a18==1)){ + a4 = 1; + a5 = 1; + a27 = 1; + a18 = 0; + a6 = 0; + a3 = 8; + a0 = 1; + }else{ + a27 = 1; + a5 = 1; + a0 = 1; + a12 = 8; + a4 = 1; + a22 = 1; + a3 = 5; + } + return -1; + } else if((((a12==12)&&((a5==1)&&(((((a0==1)&&((a4==1)&&((input==1)&&(((((a18==1)&&!(a22==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7)))||((a3==8)&&((a22==1)&&(a18==1)))))))&&(a20==1))&&(a15==1))&&(a6==1))))&&!(a27==1))){ + a12 = 8; + a22 = 1; + a3 = 4; + a27 = 1; + a18 = 1; + return -1; + } else if((!(a0==1)&&((((a20==1)&&((a12==11)&&((a18==1)&&(((((!(a5==1)&&(input==3))&&(a22==1))&&!(a4==1))&&(a3==7))&&!(a6==1)))))&&(a15==1))&&(a27==1)))){ + a4 = 1; + a15 = 0; + a12 = 12; + a3 = 4; + a0 = 1; + return -1; + } else if((((a12==12)&&(((a20==1)&&(((a15==1)&&(!(a5==1)&&((a0==1)&&(!(a18==1)&&(((input==1)&&!(a4==1))&&(a22==1))))))&&(a3==7)))&&!(a6==1)))&&!(a27==1))){ + a12 = 10; + a5 = 1; + a4 = 1; + a3 = 8; + a15 = 0; + a18 = 1; + a6 = 1; + a22 = 0; + a27 = 1; + return -1; + } else if(((((!(a27==1)&&((((!(a0==1)&&(((input==3)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&!(a4==1)))&&!(a6==1))&&(a3==7))&&(a15==1)))&&(a12==10))&&(a20==1))&&!(a5==1))){ + if((a0==1)){ + a18 = 0; + a27 = 1; + a4 = 1; + a3 = 6; + a22 = 1; + a5 = 1; + a6 = 1; + a12 = 11; + a15 = 0; + a0 = 1; + }else{ + a0 = 1; + a6 = 1; + a12 = 8; + a27 = 1; + a18 = 0; + a22 = 1; + a4 = 1; + a3 = 4; + a5 = 1; + } + return 21; + } else if(((a4==1)&&((a0==1)&&((!(a27==1)&&((a20==1)&&((a12==10)&&((((input==5)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6))))&&!(a5==1))&&!(a15==1)))))&&!(a6==1))))){ + a12 = 8; + a15 = 1; + a3 = 4; + a6 = 1; + a22 = 1; + a27 = 1; + a5 = 1; + a18 = 1; + return -1; + } else if(((a15==1)&&(((a12==9)&&((a20==1)&&((a4==1)&&((a27==1)&&((((a18==1)&&((a5==1)&&((a0==1)&&(input==5))))&&!(a22==1))&&(a6==1))))))&&(a3==8)))){ + a18 = 0; + a3 = 6; + a12 = 12; + return 24; + } else if((!(a15==1)&&((((!(a4==1)&&((a0==1)&&((a20==1)&&(((a27==1)&&((a6==1)&&(!(a22==1)&&(input==6))))&&(a12==8)))))&&(a18==1))&&(a3==6))&&(a5==1)))){ + a4 = 1; + a3 = 4; + a15 = 1; + a22 = 1; + return -1; + } else if((!(a22==1)&&((a6==1)&&(((a20==1)&&(((!(a0==1)&&(((((input==1)&&((a18==1)||!(a18==1)))&&(a5==1))&&!(a4==1))&&!(a27==1)))&&(a12==8))&&(a3==8)))&&(a15==1))))){ + a27 = 1; + a4 = 1; + a18 = 0; + a3 = 6; + a0 = 1; + return 26; + } else if(((a20==1)&&(((((a27==1)&&((!(a5==1)&&((a4==1)&&((input==2)&&(((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a22==1)&&(a18==1)))))))&&!(a15==1)))&&!(a0==1))&&!(a6==1))&&(a12==10)))){ + a18 = 1; + a22 = 0; + a15 = 1; + a0 = 1; + a3 = 7; + a12 = 11; + return 26; + } else if((!(a0==1)&&(!(a27==1)&&(((((a20==1)&&((a5==1)&&((a12==9)&&((input==5)&&((((a3==7)&&(!(a22==1)&&(a18==1)))||((a3==7)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==8)))))))&&(a4==1))&&!(a6==1))&&(a15==1))))){ + a6 = 1; + a12 = 8; + a22 = 1; + a18 = 0; + a0 = 1; + a3 = 4; + a27 = 1; + return 26; + } else if((!(a18==1)&&((((a27==1)&&((a5==1)&&((a20==1)&&(!(a22==1)&&((a0==1)&&(!(a4==1)&&((!(a15==1)&&(input==6))&&(a12==12))))))))&&(a6==1))&&(a3==7)))){ + a18 = 1; + a15 = 1; + a12 = 8; + a3 = 4; + a4 = 1; + a22 = 1; + return -1; + } else if((((a3==4)&&((a22==1)&&(((a12==9)&&(((a5==1)&&((a20==1)&&((((a0==1)&&(input==5))&&(a6==1))&&(a4==1))))&&(a15==1)))&&!(a18==1))))&&(a27==1))){ + a6 = 0; + a3 = 7; + a5 = 0; + a22 = 0; + a12 = 11; + a4 = 0; + return 26; + } else if(((a5==1)&&(((a3==7)&&((a20==1)&&((a4==1)&&(!(a18==1)&&(((((!(a22==1)&&(input==5))&&(a27==1))&&(a12==9))&&(a15==1))&&!(a6==1))))))&&(a0==1)))){ + a15 = 0; + a3 = 4; + a6 = 1; + a18 = 1; + a12 = 12; + return 24; + } else if((!(a15==1)&&(((a4==1)&&(!(a0==1)&&((!(a27==1)&&((a5==1)&&(((input==1)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))||((a3==8)&&((a22==1)&&!(a18==1)))))&&(a20==1))))&&(a6==1))))&&(a12==8)))){ + a27 = 1; + a18 = 0; + a22 = 0; + a3 = 4; + return -1; + } else if(((a4==1)&&((((!(a0==1)&&((!(a15==1)&&(((!(a22==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a6==1))&&(a3==7)))&&(a12==11)))&&(a20==1))&&(a27==1))&&!(a5==1)))){ + a12 = 10; + a0 = 1; + a5 = 1; + a18 = 0; + return 26; + } else if(((a20==1)&&(!(a27==1)&&(!(a0==1)&&(!(a5==1)&&(((!(a6==1)&&(((a12==9)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==2)))&&!(a4==1)))&&!(a15==1))&&(a3==6))))))){ + if((a15==1)){ + a22 = 0; + a5 = 1; + a12 = 8; + a18 = 0; + a3 = 5; + }else{ + a15 = 1; + a0 = 1; + a18 = 0; + a3 = 8; + a22 = 1; + a6 = 1; + a12 = 10; + } + return 26; + } else if((!(a6==1)&&(!(a18==1)&&(((a3==4)&&((a22==1)&&(((a4==1)&&(((a5==1)&&((a12==10)&&((input==6)&&!(a15==1))))&&(a27==1)))&&!(a0==1))))&&(a20==1))))){ + a18 = 1; + a0 = 1; + a15 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if((!(a5==1)&&((a20==1)&&((a12==9)&&((a27==1)&&(((((a6==1)&&((a3==4)&&(((!(a18==1)&&(a22==1))&&!(a15==1))&&(a4==1))))||((!(a6==1)&&((!(a4==1)&&((a15==1)&&(!(a22==1)&&!(a18==1))))&&(a3==8)))||((a6==1)&&(((a4==1)&&(!(a15==1)&&((a22==1)&&(a18==1))))&&(a3==4)))))&&(input==4))&&!(a0==1))))))){ + a18 = 1; + a12 = 8; + a5 = 1; + a15 = 1; + a4 = 1; + a0 = 1; + a22 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if((((a0==1)&&(!(a5==1)&&((!(a15==1)&&((a20==1)&&((a27==1)&&((a6==1)&&((a12==12)&&((input==4)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))))))))&&(a3==6))))&&(a4==1))){ + a15 = 1; + a6 = 0; + a12 = 11; + a22 = 1; + a18 = 0; + return 21; + } else if((!(a0==1)&&((a27==1)&&(((!(a15==1)&&(((((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==4))&&!(a6==1))&&(a5==1))&&(a4==1))&&(a3==7)))&&(a12==11))&&(a20==1))))){ + a4 = 0; + a3 = 4; + a22 = 1; + a18 = 1; + a0 = 1; + a15 = 1; + a6 = 1; + a5 = 0; + return 21; + } else if(((((!(a15==1)&&((((a0==1)&&((a20==1)&&(!(a18==1)&&((a5==1)&&((a22==1)&&(input==1))))))&&(a3==8))&&!(a6==1)))&&(a27==1))&&!(a4==1))&&(a12==10))){ + a18 = 1; + a6 = 1; + return -1; + } else if(((a12==11)&&((!(a27==1)&&(!(a0==1)&&(((((((a3==8)&&((((a18==1)&&!(a22==1))&&(a15==1))&&!(a4==1)))&&!(a6==1))||(((((a15==1)&&(!(a18==1)&&!(a22==1)))&&!(a4==1))&&(a3==8))&&!(a6==1)))||(((a3==4)&&((((a22==1)&&(a18==1))&&!(a15==1))&&(a4==1)))&&(a6==1)))&&(input==2))&&(a20==1))))&&!(a5==1)))){ + a0 = 1; + a27 = 1; + a22 = 1; + a12 = 8; + a4 = 1; + a6 = 1; + a18 = 0; + a15 = 1; + a5 = 1; + a3 = 7; + return 26; + } else if(((a6==1)&&((((a3==7)&&((a18==1)&&((a12==8)&&((!(a0==1)&&((!(a27==1)&&(!(a15==1)&&(input==4)))&&(a20==1)))&&!(a5==1)))))&&!(a4==1))&&(a22==1)))){ + a5 = 1; + a15 = 1; + a12 = 9; + a6 = 0; + a4 = 1; + a3 = 6; + return -1; + } else if((((!(a6==1)&&((a12==10)&&((a15==1)&&(!(a4==1)&&((a5==1)&&((((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==5)))||(((a22==1)&&!(a18==1))&&(a3==5)))&&(input==2))&&(a20==1)))))))&&(a0==1))&&!(a27==1))){ + a22 = 1; + a15 = 0; + a18 = 1; + a27 = 1; + a3 = 8; + return 26; + } else if(((!(a0==1)&&((a12==9)&&(!(a5==1)&&(((((((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1)))&&(a6==1))||((!(a6==1)&&(((a4==1)&&(!(a22==1)&&(a18==1)))&&(a3==8)))||((((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8))&&!(a6==1))))&&(input==2))&&!(a15==1))&&(a20==1)))))&&(a27==1))){ + a18 = 1; + a4 = 1; + a22 = 0; + a3 = 7; + a6 = 1; + a0 = 1; + return 21; + } else if((((a22==1)&&(!(a15==1)&&(!(a5==1)&&((((!(a4==1)&&((a6==1)&&((a0==1)&&((input==1)&&((a18==1)||!(a18==1))))))&&(a3==8))&&(a20==1))&&(a27==1)))))&&(a12==8))){ + if((a20==1)){ + a18 = 1; + a3 = 7; + a22 = 0; + a4 = 1; + a12 = 11; + a6 = 0; + a0 = 0; + }else{ + a18 = 1; + a6 = 0; + a5 = 1; + a12 = 11; + a3 = 4; + } + return 26; + } else if((((a20==1)&&(!(a6==1)&&(((((!(a27==1)&&(((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==1))&&(a0==1)))&&!(a4==1))&&(a3==7))&&!(a5==1))&&(a15==1))))&&(a12==10))){ + if((a5==1)){ + a0 = 0; + a18 = 1; + a4 = 1; + a22 = 1; + a12 = 11; + a6 = 1; + a3 = 8; + a5 = 1; + a27 = 1; + }else{ + a5 = 1; + a18 = 1; + a22 = 0; + a3 = 4; + a15 = 0; + } + return 26; + } else if(((!(a27==1)&&((((a12==11)&&((((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==1))&&(a5==1))&&!(a15==1))&&(a4==1))&&(a0==1)))&&(a6==1))&&(a20==1)))&&(a3==8))){ + if((a5==1)){ + a3 = 4; + a22 = 1; + a5 = 0; + a18 = 0; + a12 = 12; + }else{ + a3 = 6; + a4 = 0; + a5 = 0; + a27 = 1; + a18 = 0; + a22 = 1; + } + return 21; + } else if(((a20==1)&&((!(a15==1)&&((a12==12)&&(!(a22==1)&&(!(a5==1)&&(!(a4==1)&&(((a3==5)&&(((input==2)&&(a27==1))&&!(a6==1)))&&!(a0==1)))))))&&!(a18==1)))){ + if((a12==12)){ + a4 = 1; + a18 = 1; + a22 = 1; + a12 = 9; + }else{ + a6 = 1; + a3 = 7; + a18 = 1; + a12 = 11; + a27 = 0; + a15 = 1; + a5 = 1; + } + return -1; + } else if((((a27==1)&&(((a20==1)&&((a4==1)&&(((!(a18==1)&&((!(a15==1)&&((input==2)&&(a12==8)))&&(a0==1)))&&(a22==1))&&(a5==1))))&&!(a6==1)))&&(a3==6))){ + a18 = 1; + a15 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if(((!(a6==1)&&((a27==1)&&((!(a15==1)&&(((!(a4==1)&&(!(a5==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==1))))&&(a3==5))&&(a12==8)))&&(a20==1))))&&!(a0==1))){ + a5 = 1; + a22 = 0; + a6 = 1; + a0 = 1; + a12 = 12; + a4 = 1; + a18 = 1; + a3 = 8; + a27 = 0; + return 21; + } else if((!(a0==1)&&((a20==1)&&((!(a5==1)&&((a15==1)&&((a3==6)&&(!(a4==1)&&((a6==1)&&(((input==6)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a27==1)))))))&&(a12==9))))){ + a18 = 1; + a4 = 1; + a12 = 12; + a0 = 1; + a3 = 8; + a22 = 1; + a15 = 0; + return -1; + } else if(((((a4==1)&&((!(a0==1)&&((a12==8)&&((a15==1)&&(((input==4)&&(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8))))&&(a27==1)))))&&!(a5==1)))&&(a20==1))&&(a6==1))){ + if((a6==1)){ + a5 = 1; + a12 = 11; + a22 = 1; + a18 = 1; + a3 = 8; + }else{ + a5 = 1; + a4 = 0; + a0 = 1; + a12 = 10; + a22 = 1; + a18 = 0; + a3 = 4; + a15 = 0; + a27 = 0; + a6 = 0; + } + return 21; + } else if((!(a6==1)&&((a22==1)&&(!(a5==1)&&(((a20==1)&&((a18==1)&&((((((a12==12)&&(input==4))&&!(a4==1))&&(a15==1))&&!(a27==1))&&(a3==6))))&&(a0==1)))))){ + a18 = 0; + a27 = 1; + a22 = 0; + a6 = 1; + a5 = 1; + return 24; + } else if((((a4==1)&&((a6==1)&&((((!(a18==1)&&((a12==11)&&((a15==1)&&((a0==1)&&((a27==1)&&(input==6))))))&&(a3==7))&&!(a5==1))&&(a20==1))))&&(a22==1))){ + a3 = 6; + a4 = 0; + a15 = 0; + a6 = 0; + a12 = 10; + a5 = 1; + return 21; + } else if((!(a27==1)&&((((!(a4==1)&&((((a20==1)&&((((a3==5)&&((a22==1)&&(a18==1)))||(((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a18==1)&&!(a22==1)))))&&(input==5)))&&(a15==1))&&(a12==8)))&&!(a0==1))&&(a5==1))&&(a6==1)))){ + if((a22==1)){ + a4 = 1; + a27 = 1; + a22 = 0; + a0 = 1; + a6 = 0; + a18 = 0; + a3 = 8; + }else{ + a4 = 1; + a22 = 0; + a27 = 1; + a12 = 11; + a18 = 0; + a3 = 5; + } + return -1; + } else if(((((a4==1)&&(!(a22==1)&&(((a15==1)&&((a20==1)&&(((((a18==1)&&(input==4))&&(a27==1))&&(a5==1))&&(a3==8))))&&(a6==1))))&&!(a0==1))&&(a12==11))){ + a0 = 1; + a22 = 1; + a3 = 6; + a6 = 0; + a15 = 0; + a18 = 0; + return 24; + } else if(((a15==1)&&((a0==1)&&(((a27==1)&&((a6==1)&&((!(a5==1)&&((a3==5)&&(((!(a22==1)&&(input==2))&&(a12==10))&&!(a18==1))))&&!(a4==1))))&&(a20==1))))){ + a6 = 0; + a4 = 1; + return -1; + } else if((!(a4==1)&&((a3==4)&&(((((a15==1)&&(((a12==10)&&(((a6==1)&&((input==3)&&!(a27==1)))&&(a5==1)))&&(a0==1)))&&(a22==1))&&(a18==1))&&(a20==1))))){ + a27 = 1; + a18 = 0; + return 21; + } else if((!(a6==1)&&((a27==1)&&(!(a15==1)&&((a5==1)&&((!(a0==1)&&((((a4==1)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==5)))&&(a12==11))&&(a3==5)))&&(a20==1))))))){ + a12 = 10; + a18 = 0; + a15 = 1; + a3 = 7; + a0 = 1; + a22 = 1; + return -1; + } else if((!(a4==1)&&((((a6==1)&&(!(a27==1)&&((a0==1)&&((a20==1)&&((a12==12)&&((input==3)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5)))||((a3==6)&&((a22==1)&&(a18==1))))))))))&&!(a5==1))&&!(a15==1)))){ + a27 = 1; + a15 = 1; + a3 = 7; + a6 = 0; + a18 = 0; + a22 = 1; + a12 = 11; + return 21; + } else if(((((a3==6)&&(((a20==1)&&((((a4==1)&&(!(a22==1)&&(((input==3)&&(a12==12))&&(a5==1))))&&(a15==1))&&!(a27==1)))&&!(a6==1)))&&(a0==1))&&(a18==1))){ + a6 = 1; + a3 = 4; + a27 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if(((a3==7)&&((!(a6==1)&&((((a18==1)&&(((a5==1)&&(!(a15==1)&&(((input==3)&&(a12==10))&&(a27==1))))&&(a0==1)))&&(a4==1))&&(a20==1)))&&(a22==1)))){ + a3 = 4; + a12 = 8; + a15 = 1; + a6 = 1; + return -1; + } else if((((a0==1)&&(!(a5==1)&&(((a3==7)&&(((((a20==1)&&((input==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))&&(a4==1))&&(a27==1))&&(a6==1)))&&(a12==8))))&&(a15==1))){ + a6 = 0; + a4 = 0; + a18 = 1; + a0 = 0; + a5 = 1; + a12 = 10; + a22 = 0; + return 26; + } else if(((a12==11)&&((a4==1)&&((a6==1)&&((((a20==1)&&((!(a15==1)&&((input==2)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))))&&(a27==1)))&&(a0==1))&&!(a5==1)))))){ + a18 = 1; + a5 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + a15 = 1; + return -1; + } else if(((((((a5==1)&&(((((input==1)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))||(((a22==1)&&!(a18==1))&&(a3==8))))&&(a12==9))&&!(a27==1))&&!(a0==1)))&&!(a4==1))&&(a15==1))&&(a20==1))&&(a6==1))){ + a12 = 10; + a22 = 1; + a18 = 1; + a3 = 5; + a0 = 1; + return 26; + } else if(((a5==1)&&(!(a22==1)&&((((((a20==1)&&(((a27==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&!(a0==1)))&&!(a15==1)))&&(a12==8))&&(a3==7))&&(a4==1))&&(a6==1))))){ + a3 = 4; + a15 = 1; + a0 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if((((((a3==7)&&((a22==1)&&(!(a18==1)&&((a5==1)&&((!(a0==1)&&((!(a15==1)&&(input==5))&&(a20==1)))&&(a27==1))))))&&!(a6==1))&&!(a4==1))&&(a12==10))){ + a18 = 1; + a6 = 1; + a22 = 0; + a0 = 1; + a27 = 0; + a4 = 1; + a12 = 11; + a15 = 1; + a3 = 6; + return -1; + } else if(((a0==1)&&(((!(a27==1)&&((a20==1)&&((!(a4==1)&&(((((a3==8)&&((a22==1)&&!(a18==1)))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1)))))&&(input==6))&&(a6==1)))&&(a5==1))))&&(a12==11))&&(a15==1)))){ + a15 = 0; + a18 = 1; + a22 = 1; + a4 = 1; + a3 = 8; + a12 = 10; + return 26; + } else if((((((((a6==1)&&((a20==1)&&(((((input==4)&&(a5==1))&&!(a4==1))&&(a18==1))&&(a3==4))))&&(a27==1))&&(a15==1))&&(a0==1))&&!(a22==1))&&(a12==10))){ + a5 = 0; + a4 = 1; + a3 = 6; + a12 = 9; + a18 = 0; + a27 = 0; + a6 = 0; + return 21; + } else if((!(a6==1)&&(!(a0==1)&&((((a15==1)&&((a4==1)&&((((input==2)&&((((a22==1)&&(a18==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1))))))&&(a27==1))&&!(a5==1))))&&(a12==11))&&(a20==1))))){ + a0 = 1; + a6 = 1; + a22 = 1; + a5 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((a0==1)&&((((a12==12)&&((a15==1)&&(!(a5==1)&&((input==5)&&((((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1)))&&!(a6==1))||(((((a22==1)&&(a18==1))&&!(a4==1))&&(a3==4))&&(a6==1)))))))&&(a20==1))&&!(a27==1)))){ + a22 = 1; + a6 = 0; + a15 = 0; + a4 = 1; + a18 = 0; + a3 = 7; + return -1; + } else if((((a0==1)&&(((a18==1)&&((!(a4==1)&&((((a15==1)&&((a20==1)&&((a22==1)&&(input==3))))&&(a3==5))&&(a5==1)))&&(a6==1)))&&(a12==8)))&&!(a27==1))){ + a27 = 1; + a5 = 0; + a12 = 12; + a4 = 1; + a3 = 8; + return 21; + } else if(((((((((((a0==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a12==8)))&&!(a5==1))&&(a3==7))&&(a22==1))&&(a15==1))&&(a20==1))&&!(a4==1))&&!(a27==1))&&!(a6==1))){ + a12 = 12; + a22 = 0; + a5 = 1; + a18 = 1; + a0 = 0; + a27 = 1; + a6 = 1; + return -1; + } else if((!(a15==1)&&(((((a27==1)&&((a4==1)&&((a5==1)&&(((input==5)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1)))))&&(a12==8)))))&&!(a6==1))&&(a20==1))&&!(a0==1)))){ + a22 = 1; + a0 = 1; + a12 = 9; + a18 = 1; + a3 = 6; + a4 = 0; + a15 = 1; + return 24; + } else if(((a12==8)&&(!(a27==1)&&((!(a4==1)&&((a20==1)&&(((((a0==1)&&((input==2)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a3==8))&&(a6==1))&&!(a15==1))))&&!(a5==1))))){ + a22 = 1; + a27 = 1; + a15 = 1; + a4 = 1; + a5 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((a27==1)&&((((((a20==1)&&(!(a15==1)&&(((((input==1)&&!(a6==1))&&(a22==1))&&(a4==1))&&(a12==11))))&&!(a0==1))&&(a3==8))&&(a18==1))&&!(a5==1)))){ + a15 = 1; + a3 = 7; + a5 = 1; + a22 = 0; + a0 = 1; + return 21; + } else if(((((((a27==1)&&((a3==8)&&((!(a15==1)&&(!(a4==1)&&((input==4)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))))&&(a0==1))))&&(a6==1))&&(a5==1))&&(a20==1))&&(a12==8))){ + a3 = 7; + a6 = 0; + a18 = 0; + a22 = 1; + a12 = 9; + a4 = 1; + return 21; + } else if((((a18==1)&&(((((a12==9)&&((((a15==1)&&((a5==1)&&((input==1)&&(a6==1))))&&!(a22==1))&&(a20==1)))&&(a3==7))&&(a4==1))&&(a0==1)))&&(a27==1))){ + a15 = 0; + a5 = 0; + a6 = 0; + a12 = 11; + a22 = 1; + a3 = 5; + a18 = 0; + a4 = 0; + return 26; + } else if(((a12==12)&&((a5==1)&&(!(a4==1)&&(!(a22==1)&&(((a20==1)&&(((((a27==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&!(a6==1))&&(a0==1))&&(a3==4)))&&(a15==1))))))){ + a18 = 1; + a4 = 1; + a3 = 6; + a6 = 1; + a22 = 1; + a12 = 10; + a5 = 0; + return -1; + } else if(((a12==10)&&((a6==1)&&((((a20==1)&&((((a4==1)&&(((input==4)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&(a3==8)))&&!(a5==1))&&(a27==1)))&&!(a0==1))&&(a15==1))))){ + a12 = 8; + a22 = 1; + a0 = 1; + a3 = 6; + a5 = 1; + a6 = 0; + a15 = 0; + a18 = 0; + return -1; + } else if(((a4==1)&&((a6==1)&&((((a5==1)&&((a12==12)&&((a20==1)&&(((input==5)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6))))&&!(a15==1)))))&&!(a27==1))&&(a0==1))))){ + a15 = 1; + a3 = 4; + a12 = 11; + a4 = 0; + a5 = 0; + a22 = 0; + a18 = 0; + return -1; + } else if(((a20==1)&&((!(a4==1)&&(!(a15==1)&&(((a6==1)&&(!(a5==1)&&((a12==8)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==5)))))&&(a27==1))))&&!(a0==1)))){ + a18 = 1; + a15 = 1; + a22 = 1; + a3 = 4; + a0 = 1; + a4 = 1; + a5 = 1; + return -1; + } else if((((a12==8)&&((!(a4==1)&&((a27==1)&&((!(a15==1)&&((a6==1)&&((input==5)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7))))))&&!(a0==1))))&&(a20==1)))&&!(a5==1))){ + a22 = 1; + a0 = 1; + a5 = 1; + a3 = 4; + a18 = 1; + a15 = 1; + a4 = 1; + return -1; + } else if(((((((a0==1)&&((a20==1)&&(!(a15==1)&&((a4==1)&&((input==3)&&((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7)))||((!(a18==1)&&(a22==1))&&(a3==7))))))))&&(a12==9))&&!(a6==1))&&(a27==1))&&!(a5==1))){ + if((a12==8)){ + a12 = 11; + a3 = 5; + a18 = 1; + a6 = 1; + a22 = 0; + a15 = 1; + a5 = 1; + a0 = 0; + }else{ + a18 = 1; + a3 = 7; + a15 = 1; + a12 = 12; + a5 = 1; + a22 = 1; + } + return 21; + } else if((!(a5==1)&&(((!(a6==1)&&((a15==1)&&(((((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a3==7))&&(a12==10))&&(a27==1))&&!(a0==1))))&&!(a4==1))&&(a20==1)))){ + a12 = 8; + a18 = 1; + a6 = 1; + a5 = 1; + a4 = 1; + a3 = 4; + a0 = 1; + a22 = 1; + return -1; + } else if(((!(a0==1)&&(!(a15==1)&&(!(a6==1)&&(((((a3==6)&&(!(a18==1)&&(!(a22==1)&&((a5==1)&&(input==6)))))&&(a12==9))&&!(a4==1))&&(a27==1)))))&&(a20==1))){ + a22 = 1; + a12 = 10; + a5 = 0; + a3 = 5; + return 26; + } else if((((a4==1)&&((((a0==1)&&((a22==1)&&(((((a5==1)&&((a20==1)&&(input==3)))&&(a3==6))&&!(a6==1))&&(a18==1))))&&!(a27==1))&&(a12==10)))&&(a15==1))){ + a12 = 8; + a3 = 4; + a27 = 1; + a0 = 0; + a15 = 0; + return 26; + } else if((((a15==1)&&((!(a6==1)&&((a20==1)&&(!(a5==1)&&((a0==1)&&(!(a4==1)&&(((input==5)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&!(a27==1)))))))&&(a12==9)))&&(a3==7))){ + a3 = 5; + a18 = 1; + a22 = 1; + a4 = 1; + a6 = 1; + a5 = 1; + a27 = 1; + a12 = 12; + return 21; + } else if(((!(a6==1)&&(((a3==7)&&(!(a22==1)&&(((!(a15==1)&&((a20==1)&&(((a27==1)&&(input==2))&&(a4==1))))&&(a5==1))&&!(a18==1))))&&(a12==9)))&&(a0==1))){ + a22 = 1; + a3 = 4; + a15 = 1; + a12 = 8; + a18 = 1; + a6 = 1; + return -1; + } else if((!(a6==1)&&((a4==1)&&(((a12==12)&&((!(a27==1)&&((a0==1)&&((((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))||(((a22==1)&&!(a18==1))&&(a3==8)))&&(input==4))&&(a5==1))))&&(a20==1)))&&!(a15==1))))){ + a18 = 1; + a6 = 1; + a27 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + a15 = 1; + return -1; + } else if(((a12==12)&&(!(a27==1)&&(((a5==1)&&((!(a15==1)&&((a20==1)&&((a4==1)&&((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==4))&&(a3==5)))))&&(a0==1)))&&(a6==1))))){ + a18 = 1; + a12 = 11; + a15 = 1; + a27 = 1; + a5 = 0; + a22 = 0; + a3 = 6; + return 21; + } else if((((a15==1)&&(!(a5==1)&&((!(a27==1)&&(((a3==5)&&(!(a4==1)&&(!(a6==1)&&((input==6)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))))&&(a20==1)))&&(a0==1))))&&(a12==9))){ + a18 = 0; + a6 = 1; + a4 = 1; + a15 = 0; + a22 = 1; + a12 = 11; + return 21; + } else if((!(a15==1)&&((((a4==1)&&(((a12==9)&&((((input==3)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1)))))&&(a0==1))&&(a27==1)))&&!(a6==1)))&&(a20==1))&&!(a5==1)))){ + a5 = 1; + a22 = 1; + a6 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a15 = 1; + return -1; + } else if((!(a15==1)&&(((a3==5)&&((a20==1)&&(((a6==1)&&((a12==10)&&((!(a27==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==1)))&&!(a0==1))))&&!(a5==1))))&&!(a4==1)))){ + if((a15==1)){ + a15 = 1; + a4 = 1; + a0 = 1; + a12 = 8; + a27 = 1; + a5 = 1; + a22 = 1; + a18 = 0; + a3 = 7; + }else{ + a12 = 8; + a4 = 1; + a5 = 1; + a0 = 1; + a15 = 1; + a27 = 1; + a3 = 4; + a22 = 1; + a18 = 0; + } + return -1; + } else if(((((a3==8)&&(!(a5==1)&&(((!(a15==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&!(a6==1))&&!(a27==1)))&&(a4==1))&&!(a0==1))))&&(a20==1))&&(a12==8))){ + if((a12==10)){ + a0 = 1; + a18 = 1; + a22 = 1; + a3 = 7; + a27 = 1; + a6 = 1; + a5 = 1; + a15 = 1; + }else{ + a5 = 1; + a0 = 1; + a18 = 1; + a3 = 4; + a27 = 1; + a22 = 0; + a6 = 1; + a15 = 1; + } + return 24; + } else if(((((((a12==8)&&((((a0==1)&&((a27==1)&&((a20==1)&&((input==6)&&(a4==1)))))&&(a3==8))&&!(a15==1)))&&!(a22==1))&&(a6==1))&&!(a18==1))&&!(a5==1))){ + a3 = 4; + a4 = 0; + a22 = 1; + a6 = 0; + a12 = 10; + return 26; + } else if((!(a22==1)&&((a20==1)&&(((a3==4)&&(!(a5==1)&&((a6==1)&&(((a12==11)&&(!(a0==1)&&(((input==5)&&!(a4==1))&&!(a27==1))))&&!(a15==1)))))&&(a18==1))))){ + a6 = 0; + a0 = 1; + a12 = 9; + a3 = 5; + a22 = 1; + a27 = 1; + a4 = 1; + return 21; + } else if(((((a0==1)&&(((a3==5)&&((((a15==1)&&(((input==6)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a12==12)))&&(a20==1))&&(a27==1)))&&(a6==1)))&&!(a4==1))&&(a5==1))){ + a12 = 8; + a4 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((!(a6==1)&&(!(a27==1)&&((a0==1)&&((a5==1)&&(((!(a4==1)&&((((((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))||((a3==6)&&(!(a18==1)&&(a22==1))))&&(input==2))&&(a15==1)))&&(a12==9))&&(a20==1))))))){ + a22 = 1; + a6 = 1; + a4 = 1; + a12 = 8; + a18 = 1; + a27 = 1; + a3 = 4; + return -1; + } else if(((((!(a0==1)&&((!(a6==1)&&((a15==1)&&(((a12==9)&&((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a20==1))))&&(a4==1)))&&(a3==6))&&(a27==1))&&!(a5==1))){ + a12 = 8; + a6 = 1; + a22 = 1; + a3 = 4; + a0 = 1; + a5 = 1; + a18 = 1; + return -1; + } else if(((a0==1)&&(((a15==1)&&(!(a27==1)&&((!(a4==1)&&((a20==1)&&(!(a5==1)&&(((((a3==5)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==5)))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==1)))))&&(a12==8))))&&!(a6==1)))){ + a0 = 0; + a18 = 1; + a3 = 6; + a22 = 1; + a12 = 9; + a5 = 1; + a27 = 1; + a6 = 1; + return 24; + } else if(((a5==1)&&(((a0==1)&&(((((a20==1)&&((a3==5)&&(((input==3)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&(a15==1))))&&(a12==9))&&!(a27==1))&&(a6==1)))&&(a4==1)))){ + a5 = 0; + a12 = 10; + a22 = 0; + a27 = 1; + a18 = 0; + a15 = 0; + a6 = 0; + a3 = 6; + a4 = 0; + return 26; + } else if(((a22==1)&&((((a5==1)&&((a3==7)&&((((a12==12)&&((a0==1)&&((((a18==1)||!(a18==1))&&(input==2))&&(a15==1))))&&(a6==1))&&!(a4==1))))&&(a20==1))&&(a27==1)))){ + a3 = 4; + a18 = 1; + a4 = 1; + a12 = 8; + return -1; + } else if((((a12==11)&&((a22==1)&&(((a3==6)&&(!(a27==1)&&(((((a5==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a6==1))&&(a20==1))&&!(a4==1))))&&(a0==1))))&&!(a15==1))){ + a22 = 0; + a3 = 7; + a4 = 1; + a6 = 0; + a27 = 1; + a18 = 1; + a12 = 8; + return 21; + } else if(((a27==1)&&(!(a4==1)&&((a12==9)&&((!(a0==1)&&(!(a6==1)&&((((!(a15==1)&&(!(a22==1)&&(input==1)))&&(a20==1))&&!(a18==1))&&(a5==1))))&&(a3==6)))))){ + a18 = 1; + a6 = 1; + a15 = 1; + a22 = 1; + a0 = 1; + a3 = 4; + a12 = 8; + a4 = 1; + return -1; + } else if((((a20==1)&&((a4==1)&&(((((((((a3==7)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1)))))&&(input==6))&&(a27==1))&&!(a15==1))&&(a0==1))&&(a6==1))&&(a12==9))))&&(a5==1))){ + a22 = 1; + a4 = 0; + a12 = 12; + a18 = 0; + a5 = 0; + a3 = 4; + return 21; + } else if(((a12==9)&&(((a6==1)&&((a18==1)&&((a3==4)&&((a22==1)&&(((((a20==1)&&((input==3)&&!(a5==1)))&&(a0==1))&&!(a15==1))&&(a27==1))))))&&(a4==1)))){ + a3 = 7; + a22 = 0; + a6 = 0; + a12 = 8; + a27 = 0; + return 24; + } else if((!(a4==1)&&(((a5==1)&&(!(a15==1)&&((a3==5)&&((a0==1)&&((a20==1)&&(((a6==1)&&((input==5)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))&&(a27==1)))))))&&(a12==10)))){ + if((a3==6)){ + a0 = 0; + a18 = 0; + a12 = 9; + a22 = 1; + a15 = 1; + }else{ + a0 = 0; + a5 = 0; + a18 = 1; + a15 = 1; + a12 = 11; + a22 = 0; + a4 = 1; + a3 = 8; + } + return -1; + } else if(((a15==1)&&(!(a4==1)&&((!(a18==1)&&((a27==1)&&(((((a3==4)&&(((input==5)&&(a12==9))&&(a20==1)))&&!(a5==1))&&(a6==1))&&(a22==1))))&&(a0==1))))){ + a5 = 1; + a3 = 5; + a6 = 0; + a12 = 8; + a18 = 1; + return 24; + } else if(((((a20==1)&&((a4==1)&&(((!(a15==1)&&((input==2)&&(((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4))))))&&(a12==12))&&!(a0==1))))&&!(a5==1))&&(a27==1))){ + a12 = 8; + a6 = 0; + a22 = 0; + a5 = 1; + a18 = 0; + a27 = 0; + a3 = 5; + return 24; + } else if((!(a0==1)&&((a20==1)&&((((a22==1)&&(((a27==1)&&(((((input==4)&&((a18==1)||!(a18==1)))&&(a15==1))&&(a12==9))&&(a3==8)))&&!(a5==1)))&&(a4==1))&&(a6==1))))){ + a22 = 0; + a15 = 0; + a18 = 0; + a0 = 1; + a5 = 1; + a12 = 10; + a4 = 0; + a3 = 5; + return -1; + } else if((((a12==9)&&((((a0==1)&&((a5==1)&&((a6==1)&&((a4==1)&&((((a3==7)&&(input==6))&&(a18==1))&&!(a22==1))))))&&(a20==1))&&(a27==1)))&&(a15==1))){ + a3 = 5; + a4 = 0; + a0 = 0; + a12 = 8; + return 21; + } else if((!(a15==1)&&((a20==1)&&(((!(a6==1)&&(((a12==11)&&(((((input==3)&&!(a18==1))&&(a4==1))&&(a0==1))&&(a3==8)))&&(a5==1)))&&(a27==1))&&(a22==1))))){ + a27 = 0; + a3 = 6; + a15 = 1; + return 26; + } else if(((a0==1)&&((((a18==1)&&(((a4==1)&&(((a6==1)&&((a12==9)&&(((a3==6)&&(input==2))&&(a22==1))))&&(a15==1)))&&!(a27==1)))&&(a20==1))&&(a5==1)))){ + a5 = 0; + a12 = 10; + a3 = 8; + a22 = 0; + a4 = 0; + return 26; + } else if(((((a18==1)&&((a0==1)&&((a20==1)&&((!(a15==1)&&(((a22==1)&&(((a12==10)&&(input==2))&&(a3==8)))&&(a5==1)))&&!(a6==1)))))&&(a27==1))&&!(a4==1))){ + a6 = 1; + a22 = 0; + a4 = 1; + a12 = 8; + return 21; + } else if(((a0==1)&&((a5==1)&&((((((((a6==1)&&((input==3)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a15==1))&&(a3==6))&&(a12==9))&&(a20==1))&&!(a27==1))&&(a4==1))))){ + a3 = 4; + a22 = 1; + a18 = 1; + a15 = 1; + a12 = 8; + a27 = 1; + return -1; + } else if(((!(a0==1)&&((((input==1)&&((((a3==4)&&((a4==1)&&((((a22==1)&&!(a18==1))&&!(a5==1))&&(a15==1))))&&(a6==1))||((!(a6==1)&&(((((a5==1)&&(!(a22==1)&&!(a18==1)))&&!(a15==1))&&!(a4==1))&&(a3==8)))||((((a4==1)&&((a15==1)&&(((a18==1)&&(a22==1))&&!(a5==1))))&&(a3==4))&&(a6==1)))))&&!(a27==1))&&(a12==10)))&&(a20==1))){ + a4 = 0; + a0 = 1; + a5 = 1; + a27 = 1; + a12 = 8; + a3 = 6; + a15 = 1; + a6 = 1; + a22 = 0; + a18 = 1; + return -1; + } else if((((((a3==7)&&((((((a22==1)&&(((a4==1)&&(input==6))&&!(a5==1)))&&(a20==1))&&(a12==11))&&(a6==1))&&!(a15==1)))&&!(a27==1))&&(a0==1))&&(a18==1))){ + a4 = 0; + a5 = 1; + a6 = 0; + a18 = 0; + a3 = 4; + a22 = 0; + a12 = 8; + return -1; + } else if(((a12==11)&&(!(a6==1)&&(((((a20==1)&&(!(a18==1)&&(((!(a15==1)&&((input==2)&&(a3==6)))&&(a5==1))&&!(a4==1))))&&!(a0==1))&&!(a27==1))&&!(a22==1))))){ + if((a18==1)){ + a6 = 1; + a12 = 8; + a27 = 1; + a22 = 1; + a3 = 5; + a0 = 1; + }else{ + a5 = 0; + a12 = 12; + a4 = 1; + a0 = 1; + a22 = 1; + a6 = 1; + } + return -1; + } else if(((a12==11)&&(((a20==1)&&(((((a27==1)&&((a0==1)&&((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==5))&&(a3==4))))&&!(a15==1))&&!(a5==1))&&!(a6==1)))&&(a4==1)))){ + a4 = 0; + a12 = 10; + a5 = 1; + a18 = 0; + a22 = 0; + return -1; + } else if((!(a18==1)&&((a22==1)&&((((a15==1)&&(!(a5==1)&&((a0==1)&&(((a27==1)&&(((input==5)&&(a3==5))&&(a20==1)))&&(a6==1)))))&&(a12==11))&&!(a4==1))))){ + a18 = 1; + a3 = 8; + a15 = 0; + a5 = 1; + return -1; + } else if((!(a4==1)&&((!(a22==1)&&(((a0==1)&&((a15==1)&&(((a3==4)&&((a12==12)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a20==1))))&&(a6==1))))&&!(a27==1)))&&(a5==1)))){ + a18 = 1; + a12 = 8; + a4 = 1; + a27 = 1; + a22 = 1; + return -1; + } else if((((a4==1)&&(((((a5==1)&&((((input==6)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))||((!(a18==1)&&(a22==1))&&(a3==5))))&&(a20==1))&&(a27==1)))&&(a6==1))&&(a12==12))&&!(a15==1)))&&(a0==1))){ + a15 = 1; + a4 = 0; + a27 = 0; + a3 = 7; + a22 = 0; + a18 = 0; + return 24; + } else if(((a12==10)&&((a27==1)&&(((a22==1)&&((((a3==8)&&((((a6==1)&&((a4==1)&&(input==3)))&&(a15==1))&&(a5==1)))&&(a18==1))&&(a0==1)))&&(a20==1))))){ + a12 = 8; + a3 = 4; + return -1; + } else if((((a0==1)&&(!(a4==1)&&(((a18==1)&&((a3==6)&&(!(a15==1)&&((a12==11)&&((((input==5)&&(a20==1))&&(a5==1))&&!(a27==1))))))&&!(a22==1))))&&(a6==1))){ + a18 = 0; + a27 = 1; + a6 = 0; + return 24; + } else if((!(a22==1)&&((a12==11)&&((a27==1)&&((a20==1)&&((a4==1)&&((a3==5)&&(!(a18==1)&&(!(a0==1)&&((a15==1)&&((a5==1)&&((a6==1)&&(input==4))))))))))))){ + a12 = 8; + a6 = 0; + a18 = 1; + a4 = 0; + a0 = 1; + a22 = 1; + a3 = 7; + return -1; + } else if((!(a27==1)&&((a3==7)&&((!(a0==1)&&(((a6==1)&&(!(a4==1)&&(!(a15==1)&&(((a5==1)&&((a12==9)&&(input==3)))&&!(a18==1)))))&&!(a22==1)))&&(a20==1))))){ + a5 = 0; + a15 = 1; + a0 = 1; + a22 = 1; + a27 = 1; + a3 = 5; + return -1; + } else if((((!(a27==1)&&(!(a5==1)&&(!(a22==1)&&(!(a4==1)&&(((((a12==9)&&((input==1)&&!(a6==1)))&&(a3==6))&&!(a0==1))&&(a18==1))))))&&(a15==1))&&(a20==1))){ + a5 = 1; + a27 = 1; + a3 = 4; + a18 = 0; + return 24; + } else if(((((a3==5)&&(((a6==1)&&((!(a4==1)&&((a27==1)&&((a20==1)&&((a0==1)&&(((a18==1)||!(a18==1))&&(input==5))))))&&(a22==1)))&&(a12==12)))&&!(a15==1))&&(a5==1))){ + a4 = 1; + a18 = 0; + a3 = 4; + a6 = 0; + return 26; + } else if((((a12==12)&&(((a0==1)&&((a4==1)&&((!(a6==1)&&((a20==1)&&((((a3==6)&&((a22==1)&&!(a18==1)))||(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6))))&&(input==1))))&&(a5==1))))&&(a27==1)))&&(a15==1))){ + a3 = 6; + a18 = 0; + a6 = 1; + a22 = 0; + a27 = 0; + return 26; + } else if(((!(a27==1)&&(((a20==1)&&(((a18==1)&&(!(a6==1)&&(((((input==4)&&!(a15==1))&&(a0==1))&&!(a22==1))&&(a5==1))))&&!(a4==1)))&&(a3==6)))&&(a12==11))){ + a27 = 1; + a15 = 1; + a3 = 4; + a12 = 8; + a4 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if((((!(a5==1)&&(((a12==11)&&(!(a0==1)&&(((a27==1)&&((input==1)&&(((a3==6)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1)))))))&&(a20==1))))&&!(a15==1)))&&!(a4==1))&&!(a6==1))){ + a12 = 12; + a6 = 1; + a0 = 1; + a22 = 1; + a18 = 0; + a5 = 1; + a3 = 4; + return -1; + } else if(((a15==1)&&(!(a18==1)&&((((((((((a3==5)&&(input==1))&&!(a27==1))&&!(a0==1))&&!(a22==1))&&!(a4==1))&&(a12==11))&&(a6==1))&&(a20==1))&&!(a5==1))))){ + a0 = 1; + a5 = 1; + a18 = 1; + a4 = 1; + a6 = 0; + return -1; + } else if(((a20==1)&&((a0==1)&&(((!(a27==1)&&((a15==1)&&((!(a5==1)&&((input==4)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))||(((a22==1)&&!(a18==1))&&(a3==8)))))&&(a4==1))))&&(a12==11))&&!(a6==1))))){ + a3 = 5; + a22 = 1; + a5 = 1; + a18 = 0; + a4 = 0; + a6 = 1; + return -1; + } else if(((((a5==1)&&(!(a27==1)&&((((a0==1)&&((a4==1)&&((input==5)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7))))))&&(a12==9))&&(a6==1))))&&(a20==1))&&!(a15==1))){ + a18 = 1; + a15 = 1; + a27 = 1; + a22 = 0; + a3 = 4; + a12 = 10; + a4 = 0; + return -1; + } else if((!(a6==1)&&(((a0==1)&&(((((((!(a5==1)&&((a18==1)&&(input==4)))&&(a3==8))&&!(a4==1))&&(a20==1))&&!(a27==1))&&(a22==1))&&!(a15==1)))&&(a12==9)))){ + a5 = 1; + a4 = 1; + a3 = 7; + a22 = 0; + a18 = 0; + a6 = 1; + return 26; + } else if(((((a5==1)&&((a12==8)&&((((a3==7)&&(!(a0==1)&&((!(a22==1)&&((input==2)&&((a18==1)||!(a18==1))))&&(a27==1))))&&(a6==1))&&(a20==1))))&&(a4==1))&&!(a15==1))){ + a0 = 1; + a3 = 8; + a4 = 0; + a18 = 1; + a27 = 0; + a15 = 1; + a22 = 1; + return 21; + } return calculate_output26(input); + } + + int calculate_output26(int input) { + if(((a22==1)&&(((((((((((input==4)&&!(a18==1))&&(a27==1))&&(a20==1))&&(a6==1))&&(a3==6))&&!(a4==1))&&(a12==10))&&!(a5==1))&&!(a0==1))&&!(a15==1)))){ + a3 = 4; + a12 = 8; + a5 = 1; + a0 = 1; + a4 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if((((a4==1)&&(!(a0==1)&&(((((a12==11)&&((((input==4)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a15==1))&&(a5==1)))&&(a6==1))&&(a20==1))&&(a3==7))))&&(a27==1))){ + a0 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + return -1; + } else if(((!(a27==1)&&(!(a5==1)&&(!(a15==1)&&((a20==1)&&((a0==1)&&(((a12==12)&&((a3==8)&&(!(a6==1)&&((input==1)&&((a18==1)||!(a18==1))))))&&!(a22==1)))))))&&!(a4==1))){ + if((a0==1)){ + a4 = 1; + a0 = 0; + a18 = 0; + a12 = 10; + a3 = 7; + a5 = 1; + a27 = 1; + }else{ + a15 = 1; + a18 = 0; + a22 = 1; + a4 = 1; + a12 = 11; + a6 = 1; + a5 = 1; + a27 = 1; + } + return 21; + } else if(((!(a27==1)&&(((a20==1)&&((((((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==3))&&(a0==1))&&(a3==6))&&(a6==1))&&(a15==1))&&!(a5==1)))&&(a12==8)))&&!(a4==1))){ + a18 = 0; + a27 = 1; + a12 = 11; + a15 = 0; + a3 = 7; + a4 = 1; + a22 = 1; + return 24; + } else if(((a12==11)&&(((a20==1)&&(((!(a6==1)&&(!(a5==1)&&(((input==6)&&(((((a18==1)&&!(a22==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5)))||((a3==6)&&((a22==1)&&(a18==1)))))&&(a4==1))))&&!(a15==1))&&(a27==1)))&&!(a0==1)))){ + a6 = 1; + a27 = 0; + a0 = 1; + a3 = 6; + a15 = 1; + a18 = 1; + a4 = 0; + a22 = 0; + return 26; + } else if((((!(a5==1)&&(((a12==11)&&(!(a4==1)&&(((a15==1)&&(((((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==4)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==3)))&&!(a6==1))))&&(a20==1)))&&!(a0==1))&&!(a27==1))){ + a15 = 0; + a3 = 5; + a0 = 1; + a6 = 1; + a12 = 9; + a22 = 0; + a18 = 0; + return 21; + } else if((((a6==1)&&((!(a4==1)&&((a27==1)&&((a0==1)&&((a12==8)&&(((((a20==1)&&(input==6))&&!(a18==1))&&(a15==1))&&(a22==1))))))&&(a3==5)))&&!(a5==1))){ + a4 = 1; + a3 = 4; + a5 = 1; + a18 = 1; + return -1; + } else if(((a0==1)&&(((a4==1)&&(!(a15==1)&&((a3==5)&&((((a6==1)&&((a20==1)&&((a5==1)&&(((a18==1)||!(a18==1))&&(input==5)))))&&(a12==9))&&!(a22==1)))))&&!(a27==1)))){ + a18 = 1; + a5 = 0; + a12 = 8; + a3 = 6; + a22 = 1; + a15 = 1; + return 21; + } else if((!(a6==1)&&((((((!(a5==1)&&((a20==1)&&((a4==1)&&((!(a0==1)&&(input==1))&&(a3==7)))))&&(a12==9))&&(a15==1))&&!(a22==1))&&(a18==1))&&(a27==1)))){ + a22 = 1; + a0 = 1; + a5 = 1; + a3 = 4; + a6 = 1; + a12 = 8; + return -1; + } else if(((((a12==9)&&(((!(a0==1)&&((a18==1)&&((a20==1)&&((a6==1)&&((a3==8)&&((a4==1)&&(input==4)))))))&&!(a5==1))&&!(a22==1)))&&(a27==1))&&(a15==1))){ + a22 = 1; + a12 = 11; + a18 = 0; + a6 = 0; + a3 = 5; + a15 = 0; + a0 = 1; + return 24; + } else if(((a20==1)&&(((((a5==1)&&((a27==1)&&(((!(a6==1)&&(((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8)))||(((!(a4==1)&&((a18==1)&&(a22==1)))&&(a3==4))&&(a6==1)))&&(input==2))))&&(a15==1))&&(a12==11))&&!(a0==1)))){ + a6 = 1; + a12 = 8; + a0 = 1; + a4 = 1; + a18 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if(((((((a27==1)&&((((((!(a4==1)&&((a18==1)&&(a22==1)))&&(a3==4))&&(a6==1))||((((((a18==1)&&!(a22==1))&&(a4==1))&&(a3==8))&&!(a6==1))||(!(a6==1)&&((a3==8)&&((!(a22==1)&&!(a18==1))&&(a4==1))))))&&(input==3))&&(a0==1)))&&!(a15==1))&&!(a5==1))&&(a12==12))&&(a20==1))){ + a4 = 1; + a5 = 1; + a6 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if(((a0==1)&&(!(a18==1)&&((a20==1)&&((((!(a22==1)&&(!(a4==1)&&((a12==12)&&(((input==1)&&!(a6==1))&&(a3==5)))))&&!(a5==1))&&!(a27==1))&&(a15==1)))))){ + a3 = 8; + a22 = 1; + a5 = 1; + a12 = 11; + a27 = 1; + return 24; + } else if((!(a0==1)&&((((a6==1)&&((!(a5==1)&&(!(a15==1)&&(((((a3==8)&&((a22==1)&&!(a18==1)))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8))))&&(input==3))&&!(a4==1))))&&!(a27==1)))&&(a12==8))&&(a20==1)))){ + a27 = 1; + a12 = 9; + a6 = 0; + a18 = 0; + a3 = 6; + a4 = 1; + a22 = 0; + a15 = 1; + a0 = 1; + return 21; + } else if((((a12==11)&&((!(a0==1)&&(((!(a6==1)&&(!(a5==1)&&((input==2)&&((((a22==1)&&(a18==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==4)))))))&&(a27==1))&&!(a15==1)))&&(a20==1)))&&!(a4==1))){ + a12 = 9; + a4 = 1; + a6 = 1; + a18 = 0; + a15 = 1; + a22 = 0; + a3 = 7; + a0 = 1; + return 21; + } else if(((a20==1)&&((!(a4==1)&&((a3==8)&&((a12==8)&&((a15==1)&&(((!(a18==1)&&(((input==1)&&(a0==1))&&!(a27==1)))&&(a22==1))&&(a6==1))))))&&(a5==1)))){ + a3 = 4; + a18 = 1; + a27 = 1; + a4 = 1; + return -1; + } else if(((a20==1)&&((a12==11)&&(((a15==1)&&((((input==6)&&(((((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8))&&!(a6==1))||(((a3==4)&&(!(a4==1)&&((a22==1)&&(a18==1))))&&(a6==1))))&&(a5==1))&&!(a0==1)))&&(a27==1))))){ + a0 = 1; + a5 = 0; + a22 = 0; + a6 = 1; + a15 = 0; + a18 = 1; + a4 = 1; + a3 = 6; + a12 = 10; + return 26; + } else if(((a12==10)&&((a15==1)&&((!(a0==1)&&(!(a27==1)&&((a6==1)&&(!(a18==1)&&((((a22==1)&&((input==3)&&!(a4==1)))&&(a20==1))&&(a3==7))))))&&!(a5==1))))){ + if((a3==6)){ + a4 = 1; + a27 = 1; + a6 = 0; + a3 = 4; + a5 = 1; + }else{ + a15 = 0; + a6 = 0; + a0 = 1; + a27 = 1; + a12 = 9; + } + return 26; + } else if(((!(a15==1)&&((((a4==1)&&(((a3==7)&&(((a6==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==2)))&&(a27==1)))&&!(a5==1)))&&(a12==10))&&(a0==1)))&&(a20==1))){ + a15 = 1; + a3 = 4; + a22 = 1; + a5 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if((((a0==1)&&(((a15==1)&&((a4==1)&&(!(a27==1)&&(((a20==1)&&((a3==6)&&((input==4)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))))&&(a6==1)))))&&!(a5==1)))&&(a12==9))){ + a15 = 0; + a5 = 1; + a27 = 1; + a12 = 12; + a3 = 8; + a22 = 0; + a18 = 0; + return 21; + } else if((((((a20==1)&&((!(a6==1)&&((a5==1)&&((a12==11)&&(!(a4==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==1))))))&&(a27==1)))&&!(a0==1))&&(a3==4))&&!(a15==1))){ + a3 = 8; + a22 = 1; + a18 = 1; + a0 = 1; + a12 = 9; + a15 = 1; + a6 = 1; + a5 = 0; + a27 = 0; + a4 = 1; + return 26; + } else if(((!(a6==1)&&((a4==1)&&(!(a27==1)&&(!(a22==1)&&(((a5==1)&&(((a15==1)&&(((input==1)&&(a20==1))&&(a0==1)))&&(a3==4)))&&(a12==8))))))&&!(a18==1))){ + a15 = 0; + a6 = 1; + a3 = 7; + a22 = 1; + a12 = 9; + return 24; + } else if((((!(a4==1)&&(((!(a6==1)&&((a5==1)&&(((input==2)&&((((a22==1)&&!(a18==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6)))))&&(a15==1))))&&(a0==1))&&(a12==10)))&&(a20==1))&&(a27==1))){ + a12 = 11; + a18 = 0; + a3 = 4; + a15 = 0; + a6 = 1; + a5 = 0; + a22 = 1; + return 26; + } else if(((((a27==1)&&((((a20==1)&&(((a12==9)&&(((((a22==1)&&(a18==1))&&(a3==5))||((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1)))))&&(input==6)))&&!(a6==1)))&&(a0==1))&&(a5==1)))&&(a4==1))&&(a15==1))){ + a18 = 1; + a12 = 12; + a3 = 4; + a6 = 1; + a4 = 0; + a22 = 0; + return 26; + } else if((!(a15==1)&&(((((a12==11)&&((!(a5==1)&&(((a3==7)&&((input==6)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))))&&(a20==1)))&&(a6==1)))&&(a0==1))&&!(a27==1))&&!(a4==1)))){ + a18 = 0; + a22 = 1; + a6 = 0; + a3 = 8; + a27 = 1; + a4 = 1; + return -1; + } else if((((a6==1)&&((((a12==12)&&((a15==1)&&((a0==1)&&(!(a4==1)&&((input==1)&&(((!(a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6)))))))))&&(a27==1))&&(a5==1)))&&(a20==1))){ + a27 = 0; + a3 = 6; + a22 = 0; + a4 = 1; + a18 = 1; + a6 = 0; + return 21; + } else if((((a6==1)&&((((((a12==11)&&(!(a15==1)&&(((input==4)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a3==4))))&&!(a27==1))&&!(a0==1))&&(a4==1))&&(a5==1)))&&(a20==1))){ + if((a20==1)){ + a6 = 0; + a22 = 1; + a27 = 1; + a15 = 1; + a3 = 6; + a0 = 1; + a18 = 1; + a12 = 8; + }else{ + a27 = 1; + a18 = 1; + a3 = 5; + a0 = 1; + a15 = 1; + a4 = 0; + a22 = 1; + a12 = 8; + } + return -1; + } else if(((a4==1)&&(((a12==10)&&((!(a27==1)&&((a5==1)&&(((a20==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==6))&&!(a6==1)))&&(a15==1))))&&(a3==4)))&&!(a0==1)))){ + a5 = 0; + a6 = 1; + a12 = 9; + a0 = 1; + a18 = 1; + a22 = 1; + a3 = 6; + return -1; + } else if(((a20==1)&&((a22==1)&&((a4==1)&&(((((a12==10)&&(!(a6==1)&&((!(a27==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a5==1))))&&(a3==4))&&!(a15==1))&&(a0==1)))))){ + a15 = 1; + a18 = 0; + a27 = 1; + a3 = 6; + return -1; + } else if(((a6==1)&&((!(a0==1)&&(!(a18==1)&&((a3==6)&&((a5==1)&&(((!(a22==1)&&((!(a15==1)&&(input==3))&&(a12==10)))&&!(a4==1))&&(a20==1))))))&&(a27==1)))){ + a4 = 1; + a6 = 0; + a0 = 1; + return 26; + } else if((!(a15==1)&&((a12==10)&&((((a20==1)&&(((a6==1)&&(!(a5==1)&&((input==3)&&(((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==6))))))&&(a27==1)))&&(a0==1))&&!(a4==1))))){ + a18 = 1; + a15 = 1; + a5 = 1; + a4 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + return -1; + } else if((!(a18==1)&&((a6==1)&&(((a3==4)&&(((!(a0==1)&&(((!(a5==1)&&((input==2)&&!(a22==1)))&&!(a4==1))&&!(a27==1)))&&(a15==1))&&(a20==1)))&&(a12==9))))){ + if((a5==1)){ + a12 = 8; + a5 = 1; + a27 = 1; + a0 = 1; + a4 = 1; + a18 = 1; + }else{ + a6 = 0; + a27 = 1; + a18 = 1; + a15 = 0; + a0 = 1; + a12 = 8; + a22 = 1; + } + return 26; + } else if(((a0==1)&&(((a27==1)&&(!(a15==1)&&((((((!(a6==1)&&(((a4==1)&&((a18==1)&&!(a22==1)))&&(a3==8)))||((((a4==1)&&(!(a22==1)&&!(a18==1)))&&(a3==8))&&!(a6==1)))||((a6==1)&&((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1)))))&&(input==4))&&(a12==12))&&(a20==1))))&&!(a5==1)))){ + a22 = 0; + a6 = 0; + a4 = 0; + a3 = 4; + a18 = 0; + a15 = 1; + a12 = 10; + return -1; + } else if((!(a5==1)&&((((!(a18==1)&&(!(a22==1)&&(((((a3==8)&&((input==1)&&(a0==1)))&&!(a4==1))&&!(a27==1))&&!(a6==1))))&&(a12==10))&&(a20==1))&&(a15==1)))){ + a3 = 5; + a15 = 0; + a4 = 1; + a5 = 1; + return -1; + } else if((((((!(a22==1)&&((a20==1)&&(((a4==1)&&(!(a27==1)&&((!(a5==1)&&(input==5))&&(a6==1))))&&!(a15==1))))&&!(a18==1))&&(a0==1))&&(a3==7))&&(a12==8))){ + a12 = 10; + a4 = 0; + a18 = 1; + a27 = 1; + a22 = 1; + return 26; + } else if((!(a0==1)&&((a15==1)&&(((a27==1)&&((((((((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==4))&&!(a4==1))&&(a12==12))&&(a20==1))&&!(a5==1)))&&!(a6==1))))){ + a22 = 1; + a6 = 1; + a5 = 1; + a0 = 1; + a3 = 8; + a15 = 0; + a12 = 11; + a18 = 1; + return -1; + } else if(((((!(a6==1)&&(((a5==1)&&(((a12==11)&&((input==5)&&((((a22==1)&&!(a18==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a22==1)&&(a18==1)))))))&&!(a27==1)))&&(a15==1)))&&!(a4==1))&&!(a0==1))&&(a20==1))){ + if((a20==1)){ + a27 = 1; + a5 = 0; + a22 = 1; + a6 = 1; + a3 = 5; + a18 = 1; + a12 = 12; + a15 = 0; + }else{ + a6 = 1; + a3 = 5; + a15 = 0; + a12 = 12; + a18 = 0; + a22 = 0; + a27 = 1; + } + return 26; + } else if((((!(a15==1)&&(!(a4==1)&&((a3==5)&&((a20==1)&&(((!(a0==1)&&((input==1)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a27==1))&&(a12==11))))))&&(a5==1))&&(a6==1))){ + a3 = 4; + a4 = 1; + a15 = 1; + a18 = 1; + a22 = 0; + a12 = 8; + a27 = 1; + a0 = 1; + return 26; + } else if(((a27==1)&&((a5==1)&&(((((a15==1)&&(!(a4==1)&&((((input==2)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a6==1))&&!(a0==1))))&&(a12==10))&&(a20==1))&&(a3==7))))){ + a6 = 0; + a12 = 11; + a0 = 1; + a22 = 1; + a15 = 0; + a3 = 8; + a18 = 1; + return 21; + } else if(((a4==1)&&((a12==8)&&((((!(a0==1)&&((((input==6)&&(((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==6))))&&!(a5==1))&&(a20==1)))&&(a15==1))&&(a27==1))&&(a6==1))))){ + a22 = 1; + a18 = 0; + a6 = 0; + a5 = 1; + a15 = 0; + a12 = 10; + a0 = 1; + a3 = 7; + return -1; + } else if((((!(a5==1)&&((a27==1)&&(((((a15==1)&&(((input==4)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a6==1)))&&!(a4==1))&&(a12==10))&&(a20==1))))&&(a3==8))&&!(a0==1))){ + a5 = 1; + a3 = 4; + a22 = 0; + a12 = 11; + a0 = 1; + a18 = 0; + return 21; + } else if(((!(a5==1)&&((a20==1)&&((!(a15==1)&&((((((((!(a22==1)&&(a18==1))&&(a3==7))||((a3==7)&&(!(a22==1)&&!(a18==1))))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==1))&&!(a27==1))&&(a4==1))&&(a0==1)))&&(a6==1))))&&(a12==10))){ + a22 = 1; + a27 = 1; + a5 = 1; + a15 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + return -1; + } else if((((a12==8)&&(!(a0==1)&&(((a6==1)&&(((!(a5==1)&&((input==5)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))))&&(a27==1))&&(a20==1)))&&(a15==1))))&&(a4==1))){ + a3 = 8; + a12 = 10; + a22 = 1; + a0 = 1; + a4 = 0; + a6 = 0; + a18 = 0; + a5 = 1; + a15 = 0; + return 21; + } else if((((!(a22==1)&&((a3==8)&&((a18==1)&&((a6==1)&&((!(a4==1)&&((a15==1)&&(!(a5==1)&&((a12==11)&&(input==4)))))&&!(a27==1))))))&&(a20==1))&&!(a0==1))){ + a4 = 1; + a12 = 8; + a5 = 1; + a0 = 1; + a27 = 1; + return 26; + } else if((((((a27==1)&&((a20==1)&&((((a18==1)&&(((a12==10)&&((a3==8)&&(input==5)))&&!(a0==1)))&&(a5==1))&&(a6==1))))&&(a15==1))&&(a22==1))&&(a4==1))){ + a5 = 0; + a3 = 5; + a27 = 0; + a12 = 8; + a22 = 0; + a0 = 1; + a6 = 0; + return 21; + } else if((!(a15==1)&&((a5==1)&&(((a0==1)&&((a6==1)&&((a20==1)&&(!(a22==1)&&(!(a18==1)&&((((a27==1)&&(input==3))&&(a3==4))&&(a4==1)))))))&&(a12==9))))){ + a22 = 1; + a6 = 0; + a12 = 11; + a4 = 0; + a3 = 7; + a15 = 1; + return 21; + } else if(((a20==1)&&(((a3==4)&&((!(a0==1)&&((((a12==12)&&(!(a5==1)&&((a18==1)&&((input==1)&&!(a6==1)))))&&!(a4==1))&&!(a22==1)))&&!(a15==1)))&&(a27==1)))){ + a5 = 1; + a3 = 6; + a0 = 1; + a15 = 1; + a4 = 1; + a12 = 8; + return -1; + } else if(((a4==1)&&(!(a6==1)&&((a18==1)&&(((((!(a22==1)&&((((input==6)&&(a3==4))&&(a5==1))&&(a15==1)))&&(a0==1))&&!(a27==1))&&(a20==1))&&(a12==8)))))){ + a6 = 1; + a22 = 1; + a18 = 0; + a4 = 0; + a5 = 0; + a3 = 6; + a12 = 9; + return 26; + } else if((!(a6==1)&&((!(a15==1)&&(((a4==1)&&((a12==9)&&((!(a27==1)&&((((a3==6)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1)))))&&(input==5)))&&!(a0==1))))&&(a5==1)))&&(a20==1)))){ + a3 = 7; + a22 = 1; + a18 = 1; + a15 = 1; + a0 = 1; + a6 = 1; + a12 = 8; + a27 = 1; + return 26; + } else if(((a27==1)&&((((a12==11)&&((((a20==1)&&((a0==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&(a6==1))&&(a22==1))))&&(a5==1))&&(a4==1)))&&(a15==1))&&(a3==5)))){ + a6 = 0; + a27 = 0; + a4 = 0; + a5 = 0; + a18 = 1; + a12 = 10; + a22 = 0; + a3 = 8; + return 26; + } else if(((a12==9)&&((!(a5==1)&&(((!(a27==1)&&((a6==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==1))&&(a15==1))&&(a4==1))))&&(a3==7))&&(a20==1)))&&(a0==1)))){ + a3 = 5; + a18 = 0; + a22 = 1; + a4 = 0; + a0 = 0; + a27 = 1; + return 26; + } else if(((((a4==1)&&((a6==1)&&(!(a15==1)&&((a3==7)&&(((((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a27==1))&&(a12==11))&&(a20==1))))))&&(a5==1))&&(a0==1))){ + a12 = 10; + a22 = 1; + a3 = 8; + a18 = 1; + return -1; + } else if(((a15==1)&&((((a0==1)&&(((((a6==1)&&((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==6))&&(a12==9)))&&(a3==4))&&(a20==1))&&(a27==1)))&&!(a4==1))&&(a5==1)))){ + a15 = 0; + a12 = 12; + a3 = 6; + a22 = 1; + a18 = 0; + return 26; + } else if(((a18==1)&&(((a5==1)&&(((((a3==8)&&((a20==1)&&((a27==1)&&(((a12==10)&&(input==1))&&(a15==1)))))&&!(a0==1))&&(a22==1))&&(a6==1)))&&(a4==1)))){ + a0 = 1; + a4 = 0; + a12 = 9; + a27 = 0; + a5 = 0; + a3 = 4; + return -1; + } else if(((!(a27==1)&&((((a12==12)&&((((input==3)&&(((((a3==8)&&(!(a22==1)&&(a18==1)))&&(a6==1))||((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8))))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1))))))&&(a20==1))&&!(a15==1)))&&(a0==1))&&(a4==1)))&&!(a5==1))){ + a22 = 1; + a3 = 4; + a6 = 1; + a18 = 1; + a15 = 1; + a27 = 1; + a5 = 1; + a12 = 8; + return -1; + } else if((((a0==1)&&(((a20==1)&&((a12==12)&&((a3==7)&&((a15==1)&&((((input==3)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&!(a27==1))&&(a6==1))))))&&!(a5==1)))&&!(a4==1))){ + a22 = 0; + a5 = 1; + a12 = 11; + a6 = 0; + a18 = 1; + a3 = 8; + a27 = 1; + a4 = 1; + return 21; + } else if((((a20==1)&&((a15==1)&&((a4==1)&&((a5==1)&&((((a12==10)&&(!(a27==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1))))&&(a0==1))&&(a3==6))))))&&!(a6==1))){ + a3 = 4; + a18 = 1; + a4 = 0; + a6 = 1; + a22 = 0; + a15 = 0; + a5 = 0; + a12 = 9; + return -1; + } else if((!(a5==1)&&(((a27==1)&&((a22==1)&&(((a12==11)&&(!(a4==1)&&(((a15==1)&&(((input==2)&&!(a18==1))&&!(a0==1)))&&(a6==1))))&&(a3==5))))&&(a20==1)))){ + a12 = 8; + a3 = 4; + a4 = 1; + a0 = 1; + a18 = 1; + a5 = 1; + return -1; + } else if(((a15==1)&&((((a20==1)&&(((a27==1)&&((a3==7)&&(((a6==1)&&(((input==5)&&(a0==1))&&(a18==1)))&&(a12==10))))&&(a4==1)))&&(a22==1))&&(a5==1)))){ + if((a12==9)){ + a0 = 0; + a15 = 0; + a3 = 8; + a12 = 9; + }else{ + a3 = 8; + a22 = 0; + a6 = 0; + a4 = 0; + a18 = 0; + a27 = 0; + a15 = 0; + a12 = 9; + } + return 21; + } else if(((a5==1)&&(((a12==9)&&((a0==1)&&(((!(a27==1)&&(((!(a15==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a4==1))&&(a3==5)))&&!(a22==1))&&(a6==1))))&&(a20==1)))){ + a3 = 6; + a22 = 1; + a18 = 1; + a27 = 1; + a12 = 11; + return 26; + } else if(((((!(a22==1)&&(((!(a18==1)&&((((!(a15==1)&&(input==3))&&(a0==1))&&!(a4==1))&&!(a27==1)))&&!(a6==1))&&(a12==9)))&&!(a5==1))&&(a20==1))&&(a3==8))){ + if((a5==1)){ + a12 = 11; + a22 = 1; + a18 = 1; + a3 = 5; + a27 = 1; + a15 = 1; + a0 = 0; + a6 = 1; + }else{ + a6 = 1; + a27 = 1; + a22 = 1; + a18 = 1; + a12 = 11; + } + return 26; + } else if(((((a12==11)&&(!(a5==1)&&(((((a15==1)&&(((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==5)))||(((a22==1)&&!(a18==1))&&(a3==5)))&&(input==5)))&&(a27==1))&&!(a4==1))&&(a20==1))))&&!(a6==1))&&(a0==1))){ + a3 = 4; + a6 = 1; + a18 = 1; + a12 = 8; + a5 = 1; + a22 = 1; + a4 = 1; + return -1; + } else if(((((a12==11)&&((a6==1)&&(((((((input==1)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a27==1))&&(a4==1))&&(a5==1))&&(a20==1))&&!(a0==1))))&&(a3==5))&&(a15==1))){ + a18 = 0; + a4 = 0; + a3 = 7; + a0 = 1; + a22 = 1; + return 26; + } else if(((!(a4==1)&&(!(a15==1)&&((a20==1)&&(!(a6==1)&&(((a12==11)&&(((input==4)&&(((!(a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1))))))&&!(a5==1)))&&(a0==1))))))&&(a27==1))){ + a3 = 5; + a22 = 1; + a5 = 1; + a18 = 1; + a6 = 1; + a15 = 1; + return 21; + } else if(((a12==9)&&((!(a4==1)&&((a3==7)&&((a20==1)&&((a27==1)&&(!(a15==1)&&(((a5==1)&&((input==6)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))&&(a6==1)))))))&&(a0==1)))){ + a15 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + a18 = 1; + a27 = 0; + return 26; + } else if(((!(a5==1)&&(((a18==1)&&((a27==1)&&(((!(a6==1)&&(((a3==8)&&((input==1)&&(a20==1)))&&(a4==1)))&&!(a15==1))&&(a0==1))))&&(a12==9)))&&(a22==1))){ + a3 = 7; + a15 = 1; + a5 = 1; + a27 = 0; + return 21; + } else if(((((a12==12)&&(!(a4==1)&&((a0==1)&&(((a22==1)&&(!(a6==1)&&(!(a5==1)&&((!(a15==1)&&(input==3))&&(a3==5)))))&&!(a27==1)))))&&(a20==1))&&!(a18==1))){ + a12 = 8; + a3 = 4; + a5 = 1; + a18 = 1; + a0 = 0; + a4 = 1; + a27 = 1; + return 26; + } else if(((a6==1)&&((a12==9)&&((!(a0==1)&&((a3==8)&&((a20==1)&&(!(a18==1)&&(((a15==1)&&(((a22==1)&&(input==1))&&!(a4==1)))&&(a27==1))))))&&!(a5==1))))){ + a22 = 0; + a5 = 1; + a0 = 1; + a12 = 10; + a6 = 0; + return -1; + } else if(((a20==1)&&((a0==1)&&(((((a22==1)&&((a4==1)&&(!(a15==1)&&((a5==1)&&(!(a6==1)&&((input==2)&&((a18==1)||!(a18==1))))))))&&(a3==7))&&(a12==11))&&!(a27==1))))){ + a6 = 1; + a12 = 8; + a3 = 4; + a27 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if(((a27==1)&&((a22==1)&&((a12==10)&&(((a20==1)&&((a4==1)&&((a6==1)&&(!(a0==1)&&(((a5==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a3==4))))))&&!(a15==1)))))){ + a0 = 1; + a4 = 0; + a12 = 12; + a18 = 0; + return 21; + } else if(((a15==1)&&((!(a27==1)&&(!(a22==1)&&((a5==1)&&(((a3==4)&&(!(a6==1)&&((a0==1)&&(((a20==1)&&(input==2))&&(a4==1)))))&&(a12==10)))))&&(a18==1)))){ + a6 = 1; + a12 = 8; + a27 = 1; + a22 = 1; + return -1; + } else if(((a5==1)&&((!(a27==1)&&(!(a0==1)&&(((input==5)&&(((!(a6==1)&&((a3==8)&&(((a15==1)&&((a18==1)&&!(a22==1)))&&!(a4==1))))||(!(a6==1)&&((a3==8)&&(((a15==1)&&(!(a22==1)&&!(a18==1)))&&!(a4==1)))))||((a6==1)&&(((!(a15==1)&&((a22==1)&&(a18==1)))&&(a4==1))&&(a3==4)))))&&(a12==9))))&&(a20==1)))){ + a6 = 0; + a22 = 0; + a3 = 6; + a18 = 1; + a4 = 0; + a15 = 1; + a0 = 1; + a12 = 12; + return -1; + } else if((((a5==1)&&(((a4==1)&&(!(a27==1)&&(!(a0==1)&&(((input==2)&&(((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1))))&&(a12==10)))))&&(a20==1)))&&(a15==1))){ + a6 = 1; + a18 = 1; + a4 = 0; + a3 = 4; + a12 = 8; + a22 = 1; + return -1; + } else if((!(a15==1)&&((a5==1)&&(!(a18==1)&&(((((a3==8)&&((((a27==1)&&(!(a4==1)&&(input==2)))&&!(a0==1))&&(a20==1)))&&(a12==11))&&(a6==1))&&!(a22==1)))))){ + a22 = 1; + a27 = 0; + a6 = 0; + a12 = 10; + a3 = 6; + a5 = 0; + a0 = 1; + a4 = 1; + return 26; + } else if(((((a5==1)&&((a12==8)&&(((a6==1)&&((((((!(a18==1)&&!(a22==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==2))&&!(a4==1))&&(a0==1)))&&(a20==1))))&&!(a15==1))&&(a27==1))){ + a15 = 1; + a18 = 1; + a4 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if(((a27==1)&&(!(a5==1)&&((((((a20==1)&&((a0==1)&&((input==5)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8))))))&&(a6==1))&&!(a15==1))&&(a12==9))&&!(a4==1))))){ + a3 = 4; + a15 = 1; + a4 = 1; + a5 = 1; + a12 = 8; + a22 = 1; + a18 = 1; + return -1; + } else if((!(a4==1)&&(((a6==1)&&((!(a15==1)&&((((((((a3==6)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==5))&&!(a27==1))&&(a20==1))&&(a12==9)))&&!(a0==1)))&&(a5==1)))){ + a18 = 0; + a3 = 5; + a0 = 1; + a12 = 8; + a15 = 1; + a27 = 1; + a4 = 1; + a22 = 0; + return -1; + } else if((!(a15==1)&&(((((a6==1)&&(((a3==4)&&(!(a27==1)&&((a4==1)&&(!(a0==1)&&((input==3)&&((a18==1)||!(a18==1)))))))&&!(a22==1)))&&(a20==1))&&(a12==9))&&!(a5==1)))){ + if((a6==1)){ + a3 = 7; + a0 = 1; + a18 = 0; + a12 = 8; + a5 = 1; + a27 = 1; + a4 = 0; + a22 = 1; + a15 = 1; + }else{ + a6 = 0; + a12 = 8; + a5 = 1; + a15 = 1; + a18 = 1; + a3 = 6; + } + return -1; + } else if((!(a0==1)&&(!(a6==1)&&((a20==1)&&(!(a22==1)&&((((((a15==1)&&(!(a4==1)&&((a12==12)&&(input==2))))&&(a27==1))&&(a5==1))&&(a3==5))&&!(a18==1))))))){ + a0 = 1; + a22 = 1; + a15 = 0; + a5 = 0; + a18 = 1; + a12 = 9; + a27 = 0; + a3 = 7; + return 21; + } else if((((((a0==1)&&((a27==1)&&(!(a15==1)&&((a20==1)&&((a12==12)&&(((input==1)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a4==1)))))))&&(a3==4))&&(a6==1))&&!(a5==1))){ + a12 = 11; + a3 = 5; + a18 = 1; + a5 = 1; + a22 = 0; + a15 = 1; + return 26; + } else if((((a12==9)&&(!(a0==1)&&((((a4==1)&&((a20==1)&&(((input==5)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a18==1)&&(a22==1)))))&&!(a5==1))))&&(a27==1))&&(a6==1))))&&(a15==1))){ + a18 = 0; + a12 = 10; + a6 = 0; + a22 = 1; + a0 = 1; + a4 = 0; + a3 = 7; + return 21; + } else if(((a5==1)&&(!(a4==1)&&(!(a0==1)&&((!(a6==1)&&((a20==1)&&((a22==1)&&((!(a18==1)&&((a12==8)&&(!(a27==1)&&(input==1))))&&!(a15==1)))))&&(a3==6)))))){ + a15 = 1; + a18 = 1; + a0 = 1; + a6 = 1; + a27 = 1; + a3 = 8; + return 21; + } else if((((a5==1)&&((a15==1)&&(((a4==1)&&(((((a0==1)&&((input==4)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))))&&(a12==12))&&(a20==1))&&(a6==1)))&&(a27==1))))&&(a3==5))){ + a12 = 8; + a3 = 4; + a18 = 1; + a22 = 1; + return -1; + } else if((!(a6==1)&&((a0==1)&&((a15==1)&&((a12==8)&&(((a27==1)&&(!(a4==1)&&(!(a5==1)&&((input==5)&&(((a3==8)&&(!(a18==1)&&(a22==1)))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a22==1)&&(a18==1)))))))))&&(a20==1))))))){ + a22 = 1; + a5 = 1; + a6 = 1; + a18 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if((((((a27==1)&&((a3==4)&&(!(a18==1)&&((a0==1)&&(((!(a15==1)&&((input==1)&&!(a6==1)))&&(a4==1))&&!(a5==1))))))&&!(a22==1))&&(a12==8))&&(a20==1))){ + a5 = 1; + a18 = 1; + a22 = 1; + a15 = 1; + a6 = 1; + return -1; + } else if((!(a18==1)&&((a3==8)&&(((a12==11)&&((((!(a4==1)&&((((input==6)&&(a0==1))&&!(a15==1))&&!(a27==1)))&&!(a22==1))&&(a20==1))&&(a6==1)))&&!(a5==1))))){ + a5 = 1; + a27 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + a15 = 1; + a4 = 1; + return -1; + } else if((!(a6==1)&&((((!(a5==1)&&((((((input==4)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a12==10))&&(a27==1))&&(a20==1))&&(a3==6)))&&(a0==1))&&(a15==1))&&!(a4==1)))){ + a12 = 8; + a6 = 1; + a5 = 1; + a3 = 4; + a18 = 1; + a4 = 1; + a22 = 1; + return -1; + } else if(((a6==1)&&(((((((((input==3)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))||((a3==5)&&((a22==1)&&!(a18==1)))))&&(a12==9))&&(a4==1))&&(a27==1))&&(a15==1))&&(a20==1))&&(a5==1))&&(a0==1)))){ + a18 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + return -1; + } else if((((a0==1)&&((a4==1)&&(((a20==1)&&((a15==1)&&((!(a5==1)&&((input==4)&&((((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==7)))))&&(a12==10))))&&!(a27==1))))&&!(a6==1))){ + a18 = 1; + a3 = 6; + a12 = 9; + a5 = 1; + a22 = 1; + a6 = 1; + return -1; + } else if(((a3==4)&&((a27==1)&&(((((a6==1)&&(!(a15==1)&&(((a12==12)&&((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a4==1))))&&(a20==1))&&(a0==1))&&!(a5==1))))){ + a18 = 1; + a12 = 8; + a22 = 1; + a15 = 1; + a5 = 1; + a4 = 1; + return -1; + } else if(((!(a0==1)&&((((a6==1)&&((((a27==1)&&((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==1))&&(a15==1)))&&(a12==11))&&(a4==1)))&&!(a5==1))&&(a3==8)))&&(a20==1))){ + a12 = 10; + a0 = 1; + a6 = 0; + a22 = 1; + a3 = 6; + a18 = 1; + a5 = 1; + return -1; + } else if((!(a5==1)&&(!(a4==1)&&((!(a6==1)&&((a20==1)&&(((a12==8)&&(!(a22==1)&&(((a15==1)&&((input==5)&&!(a27==1)))&&!(a0==1))))&&(a3==5))))&&!(a18==1))))){ + if((a5==1)){ + a3 = 4; + a0 = 1; + a27 = 1; + a4 = 1; + a5 = 1; + a6 = 1; + }else{ + a3 = 8; + a6 = 1; + a22 = 1; + a12 = 10; + a27 = 1; + } + return 21; + } else if((((a6==1)&&(((!(a15==1)&&((((a27==1)&&((!(a4==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a12==11)))&&(a5==1))&&!(a0==1)))&&(a20==1))&&(a22==1)))&&(a3==7))){ + a12 = 8; + a3 = 4; + a4 = 1; + a0 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if((!(a5==1)&&(((a0==1)&&((a12==11)&&(((((a20==1)&&(((input==3)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a4==1)))&&!(a27==1))&&(a3==5))&&(a6==1))))&&(a15==1)))){ + a18 = 0; + a3 = 7; + a12 = 12; + a22 = 1; + return -1; + } else if((((((a3==6)&&((a5==1)&&(((!(a18==1)&&((((input==4)&&(a6==1))&&(a12==12))&&(a20==1)))&&(a15==1))&&!(a0==1))))&&(a27==1))&&!(a22==1))&&!(a4==1))){ + a3 = 4; + a22 = 1; + a0 = 1; + a18 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if(((((a15==1)&&((a0==1)&&(((a6==1)&&((a12==8)&&(((a3==6)&&((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a20==1))))&&!(a5==1))))&&(a27==1))&&(a4==1))){ + a22 = 1; + a3 = 4; + a18 = 1; + a5 = 1; + return -1; + } else if((!(a6==1)&&((!(a22==1)&&(!(a4==1)&&((((a20==1)&&((a5==1)&&((a3==4)&&((!(a15==1)&&(input==1))&&!(a0==1)))))&&(a18==1))&&(a12==10))))&&(a27==1)))){ + a6 = 1; + a0 = 1; + a22 = 1; + a4 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if((!(a6==1)&&(((a20==1)&&((((a22==1)&&((!(a15==1)&&(((((a18==1)||!(a18==1))&&(input==5))&&(a5==1))&&(a3==8)))&&(a4==1)))&&(a0==1))&&(a12==8)))&&!(a27==1)))){ + a15 = 1; + a18 = 1; + a12 = 12; + a3 = 4; + a22 = 0; + a4 = 0; + a6 = 1; + a5 = 0; + return 21; + } else if((!(a27==1)&&(!(a0==1)&&(((a3==8)&&((a5==1)&&(((((a4==1)&&((a20==1)&&((input==2)&&((a18==1)||!(a18==1)))))&&(a12==8))&&(a6==1))&&(a15==1))))&&!(a22==1))))){ + if((a18==1)){ + a15 = 0; + a12 = 11; + a27 = 1; + a3 = 6; + a18 = 0; + }else{ + a18 = 1; + a5 = 0; + a0 = 1; + a15 = 0; + a27 = 1; + a12 = 9; + a3 = 6; + } + return 26; + } else if(((!(a5==1)&&((((a0==1)&&(((a15==1)&&((a3==7)&&(!(a4==1)&&((a6==1)&&((a18==1)&&(input==2))))))&&(a20==1)))&&(a27==1))&&(a12==10)))&&!(a22==1))){ + a3 = 4; + a4 = 1; + return -1; + } else if(((a4==1)&&((((a0==1)&&((a3==8)&&((((a20==1)&&(!(a22==1)&&((!(a27==1)&&(input==3))&&(a12==12))))&&(a18==1))&&!(a6==1))))&&(a15==1))&&!(a5==1)))){ + a18 = 0; + a12 = 10; + a22 = 1; + a3 = 5; + a27 = 1; + a15 = 0; + a5 = 1; + return 24; + } else if((((((a0==1)&&((a12==11)&&((a27==1)&&(((a3==8)&&((a15==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a20==1))))&&!(a4==1)))))&&!(a5==1))&&!(a22==1))&&!(a6==1))){ + a22 = 1; + a5 = 1; + a18 = 0; + a3 = 4; + a12 = 10; + return -1; + } else if(((a27==1)&&(((a20==1)&&((!(a4==1)&&(!(a15==1)&&(((((((!(a22==1)&&(a18==1))&&(a3==8))&&(a6==1))||(((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1)))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1)))&&(input==2))&&(a0==1))))&&!(a5==1)))&&(a12==8)))){ + a12 = 11; + a5 = 1; + a18 = 0; + a3 = 4; + a6 = 0; + a22 = 0; + return 21; + } else if((((a12==11)&&((a6==1)&&(!(a0==1)&&(((((a3==6)&&(!(a15==1)&&(!(a5==1)&&((input==4)&&((a18==1)||!(a18==1))))))&&(a4==1))&&(a27==1))&&(a20==1)))))&&!(a22==1))){ + a18 = 1; + a12 = 12; + a3 = 7; + a0 = 1; + a6 = 0; + a15 = 1; + a5 = 1; + return 26; + } else if(((a27==1)&&((!(a5==1)&&((!(a0==1)&&(((a15==1)&&((input==3)&&((((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4))))))&&(a12==8)))&&(a20==1)))&&!(a4==1)))){ + a22 = 1; + a5 = 1; + a0 = 1; + a4 = 1; + a3 = 4; + a6 = 1; + a18 = 1; + return -1; + } else if(((((a27==1)&&((((a20==1)&&((input==2)&&(((((a4==1)&&(!(a22==1)&&!(a18==1)))&&(a3==8))&&!(a6==1))||(((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1)))&&(a6==1)))))&&(a15==1))&&!(a5==1)))&&(a12==12))&&!(a0==1))){ + if((a27==1)){ + a15 = 0; + a18 = 1; + a6 = 1; + a3 = 7; + a22 = 0; + a4 = 0; + a5 = 1; + a12 = 11; + }else{ + a22 = 0; + a4 = 1; + a3 = 8; + a6 = 0; + a18 = 0; + } + return -1; + } else if(((a22==1)&&((((a6==1)&&((a12==8)&&(!(a27==1)&&((a4==1)&&(((!(a15==1)&&((a0==1)&&(input==6)))&&!(a18==1))&&(a3==6))))))&&(a20==1))&&(a5==1)))){ + a12 = 10; + a3 = 4; + a27 = 1; + a4 = 0; + a15 = 1; + a5 = 0; + return 26; + } else if(((a3==7)&&(!(a0==1)&&(!(a27==1)&&((a15==1)&&((a20==1)&&(((a12==9)&&(!(a6==1)&&((a4==1)&&(!(a22==1)&&(((a18==1)||!(a18==1))&&(input==1))))))&&!(a5==1)))))))){ + if((a20==1)){ + a15 = 0; + a18 = 1; + a3 = 8; + a27 = 1; + }else{ + a3 = 5; + a18 = 1; + a0 = 1; + a12 = 11; + } + return 21; + } else if((!(a15==1)&&(((a6==1)&&((!(a18==1)&&((a12==9)&&(!(a4==1)&&((((a3==5)&&((input==5)&&!(a27==1)))&&(a20==1))&&(a22==1)))))&&(a0==1)))&&(a5==1)))){ + if((a12==8)){ + a12 = 8; + a18 = 1; + a6 = 0; + a0 = 0; + a27 = 1; + a15 = 1; + a5 = 0; + a4 = 1; + }else{ + a27 = 1; + a4 = 1; + a5 = 0; + a3 = 7; + a18 = 1; + a12 = 11; + a22 = 0; + } + return 24; + } else if(((a6==1)&&((a4==1)&&((a20==1)&&((a15==1)&&(((a3==5)&&((((a12==9)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==2)))&&(a27==1))&&!(a0==1)))&&(a5==1))))))){ + a3 = 6; + a4 = 0; + a18 = 0; + a22 = 0; + a12 = 11; + a0 = 1; + return 21; + } else if(((((a20==1)&&(!(a0==1)&&(((a12==10)&&((a15==1)&&(!(a5==1)&&(!(a4==1)&&((input==6)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))))&&(a3==5))))&&(a27==1))&&!(a6==1))){ + a22 = 1; + a6 = 1; + a12 = 8; + a0 = 1; + a3 = 4; + a18 = 1; + a4 = 1; + a5 = 1; + return -1; + } else if(((((a15==1)&&((a20==1)&&((a0==1)&&(((!(a4==1)&&(((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7)))||((a3==7)&&(!(a18==1)&&(a22==1))))&&(input==5)))&&(a12==9))&&(a6==1)))))&&(a27==1))&&!(a5==1))){ + a12 = 10; + a0 = 0; + a18 = 1; + a3 = 4; + a22 = 0; + a6 = 0; + a4 = 1; + return 26; + } else if((((a12==9)&&(((a0==1)&&(((a27==1)&&((a20==1)&&((((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))||((a3==6)&&((a22==1)&&!(a18==1))))&&(input==6))&&(a15==1))))&&(a4==1)))&&(a6==1)))&&!(a5==1))){ + a22 = 0; + a0 = 0; + a3 = 6; + a4 = 0; + a5 = 1; + a15 = 0; + a18 = 1; + return 24; + } else if(((a3==7)&&(((!(a18==1)&&((a20==1)&&(((!(a5==1)&&((a12==12)&&(((input==1)&&(a22==1))&&!(a4==1))))&&(a15==1))&&!(a0==1))))&&(a6==1))&&(a27==1)))){ + if((a0==1)){ + a5 = 1; + a4 = 1; + a0 = 1; + a12 = 10; + a18 = 1; + }else{ + a27 = 0; + a12 = 8; + a15 = 0; + a6 = 0; + a3 = 5; + a22 = 0; + } + return -1; + } else if((!(a15==1)&&((a12==8)&&((a3==5)&&(((a0==1)&&(!(a4==1)&&((a18==1)&&((a5==1)&&((((input==4)&&(a6==1))&&(a27==1))&&(a20==1))))))&&(a22==1)))))){ + a15 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if((((a4==1)&&((((!(a27==1)&&((a12==11)&&((!(a5==1)&&((!(a0==1)&&(input==2))&&!(a18==1)))&&(a6==1))))&&(a15==1))&&(a3==5))&&!(a22==1)))&&(a20==1))){ + a0 = 1; + a6 = 0; + a18 = 1; + a15 = 0; + a27 = 1; + a12 = 9; + return 26; + } else if((((((a20==1)&&(((a0==1)&&((((a27==1)&&((a12==9)&&((a5==1)&&(input==1))))&&(a3==7))&&!(a6==1)))&&(a4==1)))&&(a18==1))&&(a15==1))&&!(a22==1))){ + a6 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + return -1; + } else if(((a15==1)&&((((a5==1)&&(!(a6==1)&&(!(a4==1)&&((((a12==10)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==1)))&&(a20==1))&&(a3==7)))))&&!(a27==1))&&(a0==1)))){ + a3 = 8; + a22 = 1; + a6 = 1; + a5 = 0; + a12 = 9; + a18 = 0; + a4 = 1; + return -1; + } else if((!(a0==1)&&((!(a5==1)&&(((((((((((a18==1)&&!(a22==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4)))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==6))&&(a27==1))&&!(a4==1))&&(a12==10))&&(a20==1))&&!(a6==1)))&&(a15==1)))){ + a22 = 0; + a3 = 6; + a4 = 1; + a18 = 0; + a0 = 1; + a12 = 11; + a27 = 0; + return 21; + } else if(((a5==1)&&((((((a20==1)&&((a3==8)&&(!(a6==1)&&((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==4))&&(a4==1)))))&&!(a15==1))&&!(a0==1))&&(a27==1))&&(a12==12)))){ + a0 = 1; + a15 = 1; + a18 = 0; + a3 = 4; + a12 = 8; + a22 = 0; + a6 = 1; + return 21; + } else if(((((((a20==1)&&((a27==1)&&((a12==12)&&((a15==1)&&(((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==5)))||((!(a18==1)&&(a22==1))&&(a3==5)))&&(input==6))))))&&(a0==1))&&!(a4==1))&&!(a5==1))&&!(a6==1))){ + a3 = 4; + a12 = 8; + a6 = 1; + a22 = 1; + a4 = 1; + a18 = 1; + a5 = 1; + return -1; + } else if(((((((!(a5==1)&&(((((((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8))&&!(a6==1))||((a6==1)&&((!(a4==1)&&((a18==1)&&(a22==1)))&&(a3==4))))||((a6==1)&&((!(a4==1)&&((a22==1)&&!(a18==1)))&&(a3==4))))&&(input==1)))&&!(a0==1))&&(a12==11))&&!(a15==1))&&(a20==1))&&!(a27==1))){ + a4 = 0; + a12 = 8; + a15 = 1; + a27 = 1; + a0 = 1; + a18 = 1; + a5 = 1; + a3 = 8; + a22 = 0; + a6 = 1; + return -1; + } else if(((a20==1)&&(((a6==1)&&((a5==1)&&((a12==12)&&(((a0==1)&&((((((a18==1)||!(a18==1))&&(input==3))&&(a15==1))&&(a3==8))&&(a4==1)))&&(a27==1)))))&&!(a22==1)))){ + a18 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + return -1; + } else if((((!(a4==1)&&((a12==10)&&((!(a15==1)&&((a5==1)&&((a20==1)&&((input==4)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))))))&&!(a27==1))))&&(a0==1))&&!(a6==1))){ + a18 = 1; + a3 = 6; + a22 = 1; + a12 = 8; + return -1; + } else if(((a5==1)&&((a12==8)&&(((a6==1)&&((a27==1)&&((a15==1)&&(((((a20==1)&&((input==1)&&((a18==1)||!(a18==1))))&&!(a4==1))&&!(a22==1))&&!(a0==1)))))&&(a3==5))))){ + a0 = 1; + a18 = 1; + a22 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((a5==1)&&(!(a27==1)&&((((a15==1)&&((a6==1)&&((a0==1)&&((a20==1)&&((a12==9)&&(((input==4)&&((a18==1)||!(a18==1)))&&(a22==1)))))))&&(a4==1))&&(a3==4))))){ + a12 = 12; + a18 = 0; + a3 = 5; + a15 = 0; + a27 = 1; + a4 = 0; + return -1; + } else if(((!(a6==1)&&(!(a0==1)&&((!(a5==1)&&(!(a27==1)&&((a15==1)&&(((((a3==7)&&(!(a18==1)&&(a22==1)))||(((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1)))))&&(input==1))&&(a20==1)))))&&(a12==8))))&&!(a4==1))){ + if((a4==1)){ + a22 = 0; + a6 = 1; + a3 = 4; + a15 = 0; + a4 = 1; + a0 = 1; + a18 = 1; + a27 = 1; + }else{ + a4 = 1; + a0 = 1; + a22 = 1; + a3 = 8; + a27 = 1; + a5 = 1; + a18 = 1; + } + return -1; + } else if(((a6==1)&&(((((((a4==1)&&(((a20==1)&&((input==6)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&!(a27==1)))&&(a3==7))&&!(a0==1))&&(a5==1))&&(a12==9))&&(a15==1)))){ + if((a20==1)){ + a4 = 0; + a3 = 8; + a27 = 1; + a22 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + }else{ + a18 = 1; + a5 = 0; + a12 = 11; + a3 = 4; + a0 = 1; + a22 = 0; + } + return -1; + } else if(((((a15==1)&&((((a20==1)&&(!(a0==1)&&(((a27==1)&&(((input==1)&&(a5==1))&&(a3==5)))&&(a18==1))))&&(a22==1))&&!(a4==1)))&&(a12==9))&&!(a6==1))){ + a12 = 8; + a18 = 0; + a0 = 1; + a27 = 0; + a5 = 0; + a4 = 1; + a22 = 0; + a3 = 7; + return 26; + } else if(((((!(a0==1)&&((a20==1)&&((((!(a5==1)&&((a6==1)&&(((a18==1)||!(a18==1))&&(input==3))))&&(a15==1))&&(a3==8))&&(a22==1))))&&!(a27==1))&&!(a4==1))&&(a12==11))){ + a12 = 8; + a18 = 1; + a27 = 1; + a0 = 1; + a5 = 1; + return 26; + } else if(((((a5==1)&&((((a3==6)&&((a15==1)&&(((((input==2)&&!(a0==1))&&(a20==1))&&(a27==1))&&!(a22==1))))&&!(a18==1))&&(a12==8)))&&(a6==1))&&!(a4==1))){ + a6 = 0; + a18 = 1; + a5 = 0; + a22 = 1; + a12 = 11; + a0 = 1; + return 26; + } else if(((a6==1)&&((((!(a15==1)&&(((a18==1)&&(((((input==4)&&!(a0==1))&&(a22==1))&&(a12==10))&&(a20==1)))&&!(a27==1)))&&(a4==1))&&(a3==4))&&!(a5==1)))){ + a27 = 1; + a5 = 1; + a15 = 1; + a18 = 0; + a0 = 1; + a12 = 8; + a22 = 0; + a3 = 8; + return 21; + } else if(((a3==4)&&(!(a15==1)&&(!(a5==1)&&(((((!(a27==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&!(a4==1))&&(a22==1)))&&!(a6==1))&&(a12==11))&&(a20==1))&&(a0==1)))))){ + a18 = 1; + a22 = 0; + a27 = 1; + a3 = 8; + return 26; + } else if(((a0==1)&&((!(a5==1)&&((a3==4)&&((a12==10)&&((((((input==4)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&(a20==1))&&!(a6==1))&&!(a27==1))&&(a4==1)))))&&(a15==1)))){ + a5 = 1; + a12 = 8; + a22 = 1; + a6 = 1; + a18 = 1; + a27 = 1; + return -1; + } else if((!(a4==1)&&((a6==1)&&((a20==1)&&((a0==1)&&(!(a22==1)&&((((((a27==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a3==7))&&!(a5==1))&&(a15==1))&&(a12==8)))))))){ + a5 = 1; + a15 = 0; + a18 = 0; + a12 = 10; + a3 = 8; + a4 = 1; + return 26; + } else if((((((a6==1)&&(((((a15==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&(a22==1))&&!(a5==1)))&&(a12==9))&&(a20==1))&&(a0==1)))&&(a3==6))&&(a27==1))&&!(a4==1))){ + a18 = 1; + a3 = 4; + a12 = 8; + a27 = 0; + return 21; + } else if((!(a5==1)&&((a18==1)&&(((((a20==1)&&((a12==12)&&((a3==4)&&((((input==1)&&(a27==1))&&(a15==1))&&(a0==1)))))&&(a6==1))&&!(a4==1))&&!(a22==1))))){ + a4 = 1; + a12 = 11; + a6 = 0; + a22 = 1; + a3 = 6; + return 24; + } else if(((a15==1)&&((a0==1)&&((((a3==8)&&(((((a27==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==5)))&&(a20==1))&&!(a4==1))&&(a12==10)))&&(a6==1))&&!(a5==1))))){ + a18 = 1; + a22 = 0; + a4 = 1; + return 21; + } else if((((a27==1)&&((a4==1)&&((a15==1)&&(((a20==1)&&(((!(a5==1)&&((input==4)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))))&&(a3==7))&&!(a6==1)))&&!(a0==1)))))&&(a12==10))){ + a15 = 0; + a0 = 1; + a4 = 0; + a18 = 1; + a12 = 9; + a22 = 0; + return -1; + } else if(((!(a5==1)&&((a4==1)&&((a0==1)&&((a3==7)&&((!(a27==1)&&((a6==1)&&((a12==8)&&((((a18==1)||!(a18==1))&&(input==5))&&(a20==1)))))&&(a15==1))))))&&(a22==1))){ + a4 = 0; + a6 = 0; + a18 = 0; + a5 = 1; + a15 = 0; + return 21; + } else if((!(a15==1)&&(((!(a27==1)&&((a0==1)&&((a4==1)&&((a20==1)&&(!(a5==1)&&(((((a22==1)&&(a18==1))&&(a3==6))||(((a3==5)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==5))))&&(input==3)))))))&&(a6==1))&&(a12==12)))){ + a3 = 4; + a27 = 1; + a15 = 1; + a5 = 1; + a12 = 8; + a22 = 1; + a18 = 1; + return -1; + } else if((!(a27==1)&&(((a12==11)&&((a3==6)&&((((((a18==1)&&(((input==1)&&(a20==1))&&(a22==1)))&&(a0==1))&&(a15==1))&&!(a6==1))&&!(a5==1))))&&(a4==1)))){ + a6 = 1; + a5 = 1; + a27 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((a5==1)&&(((((((!(a27==1)&&(!(a18==1)&&((a22==1)&&((a3==7)&&(input==2)))))&&(a12==8))&&(a15==1))&&(a4==1))&&(a20==1))&&(a6==1))&&!(a0==1)))){ + if((a20==1)){ + a12 = 10; + a0 = 1; + a3 = 4; + a27 = 1; + }else{ + a0 = 1; + a3 = 8; + a27 = 1; + a4 = 0; + a15 = 0; + a22 = 0; + a12 = 12; + a5 = 0; + a6 = 0; + } + return -1; + } else if(((((a12==12)&&((a27==1)&&((a15==1)&&((!(a22==1)&&((a3==7)&&((a5==1)&&((!(a4==1)&&(input==3))&&(a20==1)))))&&(a18==1)))))&&!(a0==1))&&!(a6==1))){ + a5 = 0; + a4 = 1; + a6 = 1; + a0 = 1; + a3 = 8; + a27 = 0; + a22 = 1; + a12 = 10; + return 21; + } else if((((a5==1)&&((a20==1)&&(!(a4==1)&&((a12==10)&&((((a15==1)&&((a22==1)&&(!(a6==1)&&(((a18==1)||!(a18==1))&&(input==6)))))&&!(a0==1))&&(a3==4))))))&&!(a27==1))){ + if((a18==1)){ + a6 = 1; + a15 = 0; + a22 = 0; + a27 = 1; + a18 = 0; + a0 = 1; + a3 = 7; + }else{ + a3 = 8; + a0 = 1; + a18 = 1; + a12 = 11; + a4 = 1; + a27 = 1; + a15 = 0; + } + return 21; + } else if((((!(a6==1)&&(((((a22==1)&&((a15==1)&&((!(a5==1)&&((input==6)&&(a12==9)))&&(a20==1))))&&(a4==1))&&(a18==1))&&(a3==7)))&&(a27==1))&&(a0==1))){ + a12 = 11; + a15 = 0; + a6 = 1; + a3 = 4; + a4 = 0; + return 21; + } else if((!(a27==1)&&(!(a0==1)&&((a6==1)&&(!(a4==1)&&((a22==1)&&(((((a3==8)&&((((a18==1)||!(a18==1))&&(input==4))&&!(a5==1)))&&(a20==1))&&(a15==1))&&(a12==11)))))))){ + a12 = 10; + a18 = 1; + a15 = 0; + a3 = 5; + return 21; + } else if(((a20==1)&&((!(a6==1)&&(!(a5==1)&&(((((a12==9)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==5)))&&(a15==1))&&!(a4==1))&&!(a0==1))))&&!(a27==1)))){ + if((a20==1)){ + a27 = 1; + a18 = 0; + a0 = 1; + a22 = 0; + a4 = 1; + a12 = 8; + a3 = 7; + a5 = 1; + }else{ + a18 = 1; + a5 = 1; + a6 = 1; + a0 = 1; + a27 = 1; + a22 = 1; + a12 = 8; + a4 = 1; + a3 = 8; + } + return -1; + } else if((((a0==1)&&(!(a15==1)&&(((a18==1)&&(((((!(a6==1)&&(!(a5==1)&&(input==3)))&&!(a27==1))&&(a12==9))&&!(a4==1))&&(a3==7)))&&(a22==1))))&&(a20==1))){ + if((a5==1)){ + a4 = 1; + a12 = 10; + a22 = 0; + a6 = 1; + a27 = 1; + a3 = 6; + a15 = 1; + a0 = 0; + a5 = 1; + }else{ + a15 = 1; + a27 = 1; + a6 = 1; + a3 = 5; + a12 = 10; + } + return 21; + } else if(((a27==1)&&(!(a4==1)&&((!(a18==1)&&(!(a15==1)&&((!(a0==1)&&(((a6==1)&&(((input==1)&&(a20==1))&&(a12==9)))&&(a22==1)))&&(a5==1))))&&(a3==8))))){ + a4 = 1; + a0 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a15 = 1; + return -1; + } else if(((!(a0==1)&&((a12==8)&&((a20==1)&&(((input==1)&&(((a6==1)&&((a3==4)&&((((a18==1)&&(a22==1))&&!(a15==1))&&(a4==1))))||((((a3==8)&&(!(a4==1)&&((a15==1)&&((a18==1)&&!(a22==1)))))&&!(a6==1))||(!(a6==1)&&((!(a4==1)&&((a15==1)&&(!(a18==1)&&!(a22==1))))&&(a3==8))))))&&!(a27==1)))))&&!(a5==1))){ + a22 = 1; + a6 = 1; + a5 = 1; + a0 = 1; + a15 = 1; + a27 = 1; + a3 = 5; + a4 = 1; + a18 = 1; + return -1; + } else if((((a27==1)&&((a15==1)&&((!(a5==1)&&((((a3==7)&&((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==4))&&(a20==1)))&&(a0==1))&&!(a6==1)))&&!(a4==1))))&&(a12==8))){ + a3 = 6; + a22 = 1; + a12 = 10; + a4 = 1; + a18 = 1; + return 26; + } else if(((a20==1)&&((a27==1)&&((a15==1)&&(((!(a4==1)&&((a3==7)&&(((a0==1)&&((((a18==1)||!(a18==1))&&(input==2))&&!(a6==1)))&&(a12==9))))&&(a5==1))&&(a22==1)))))){ + a12 = 12; + a15 = 0; + a18 = 1; + a5 = 0; + a6 = 1; + a4 = 1; + return 26; + } else if((((((a0==1)&&((a4==1)&&(!(a15==1)&&((((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==1))&&!(a27==1))&&(a6==1)))))&&(a5==1))&&(a12==8))&&(a20==1))){ + a12 = 10; + a5 = 0; + a27 = 1; + a22 = 1; + a4 = 0; + a3 = 7; + a6 = 0; + a18 = 1; + return -1; + } else if(((!(a22==1)&&((((((((((input==4)&&((a18==1)||!(a18==1)))&&(a27==1))&&(a6==1))&&!(a4==1))&&(a12==11))&&!(a0==1))&&!(a5==1))&&(a20==1))&&(a15==1)))&&(a3==5))){ + a27 = 0; + a0 = 1; + a5 = 1; + a15 = 0; + a12 = 10; + a3 = 4; + a18 = 1; + return 21; + } else if(((a0==1)&&(((a27==1)&&(!(a5==1)&&((a15==1)&&((a12==10)&&((((a6==1)&&(((a3==5)&&(input==2))&&(a18==1)))&&(a22==1))&&(a20==1))))))&&!(a4==1)))){ + a5 = 1; + a15 = 0; + a3 = 7; + a6 = 0; + return -1; + } else if(((a15==1)&&((a4==1)&&((a27==1)&&(((((!(a5==1)&&((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==1))&&(a20==1)))&&!(a6==1))&&(a12==9))&&(a3==4))&&!(a0==1)))))){ + a6 = 1; + a22 = 1; + a5 = 1; + a0 = 1; + a15 = 0; + a12 = 10; + a18 = 1; + a3 = 5; + a4 = 0; + return -1; + } else if(((!(a4==1)&&((a5==1)&&((a12==8)&&((!(a6==1)&&(((a0==1)&&((((!(a18==1)&&(a22==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1)))))&&(input==4)))&&(a27==1)))&&(a20==1)))))&&(a15==1))){ + a18 = 0; + a22 = 1; + a15 = 0; + a4 = 1; + a3 = 6; + return 24; + } else if(((!(a0==1)&&(((!(a15==1)&&(((a20==1)&&(((a12==12)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==4)))&&(a3==8)))&&(a6==1)))&&(a27==1))&&(a5==1)))&&(a4==1))){ + a0 = 1; + a3 = 7; + a18 = 0; + a22 = 0; + a12 = 11; + a4 = 0; + return 24; + } else if((!(a22==1)&&(!(a15==1)&&((((((a3==4)&&(((a0==1)&&((((a18==1)||!(a18==1))&&(input==3))&&(a20==1)))&&!(a5==1)))&&(a27==1))&&(a6==1))&&(a4==1))&&(a12==8))))){ + a12 = 10; + a3 = 7; + a15 = 1; + a4 = 0; + a18 = 1; + return 26; + } else if(((a0==1)&&((a15==1)&&((!(a6==1)&&(!(a27==1)&&((((!(a5==1)&&((input==4)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))))&&!(a4==1))&&(a3==7))&&(a12==10))))&&(a20==1))))){ + a6 = 1; + a12 = 11; + a15 = 0; + a3 = 6; + a27 = 1; + a22 = 0; + a18 = 0; + a5 = 1; + return 26; + } else if((!(a22==1)&&(((a15==1)&&((a5==1)&&((((!(a0==1)&&(!(a6==1)&&((a27==1)&&(((a18==1)||!(a18==1))&&(input==5)))))&&(a12==12))&&(a20==1))&&(a4==1))))&&(a3==5)))){ + a22 = 1; + a4 = 0; + a3 = 7; + a12 = 11; + a18 = 0; + a15 = 0; + a0 = 1; + return 24; + } else if(((a4==1)&&(((a0==1)&&((a20==1)&&((a5==1)&&(((!(a15==1)&&((!(a6==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&!(a27==1)))&&(a12==12))&&(a22==1)))))&&(a3==4)))){ + a15 = 1; + a6 = 1; + a27 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((!(a4==1)&&(((!(a27==1)&&(((a15==1)&&((a3==5)&&((a12==9)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==2)))))&&(a6==1)))&&(a20==1))&&(a0==1)))&&!(a5==1))){ + a18 = 1; + a12 = 10; + a22 = 1; + a4 = 1; + a15 = 0; + a3 = 8; + return 26; + } else if((!(a4==1)&&((((a20==1)&&(!(a6==1)&&((a15==1)&&(((a12==8)&&(!(a27==1)&&((input==2)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))))&&(a3==8)))))&&!(a0==1))&&(a5==1)))){ + a0 = 1; + a18 = 0; + a22 = 0; + a6 = 1; + a27 = 1; + a3 = 5; + return -1; + } else if((((a5==1)&&(((a27==1)&&((a20==1)&&((!(a6==1)&&((a22==1)&&((a12==12)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a3==4)))))&&(a15==1))))&&!(a0==1)))&&!(a4==1))){ + a15 = 0; + a18 = 1; + a6 = 1; + a12 = 11; + a27 = 0; + a4 = 1; + a0 = 1; + a3 = 5; + return -1; + } else if(((((a5==1)&&((a12==12)&&(((((((input==3)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&(a0==1))&&(a6==1))&&(a20==1))&&!(a4==1))&&(a3==7))))&&!(a15==1))&&!(a27==1))){ + a27 = 1; + a3 = 5; + a18 = 0; + a15 = 1; + a12 = 10; + a4 = 1; + a6 = 0; + a22 = 1; + a5 = 0; + return -1; + } else if((!(a15==1)&&(!(a4==1)&&((a3==5)&&(((((a12==11)&&((!(a6==1)&&((input==5)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a27==1)))&&!(a5==1))&&(a20==1))&&(a0==1)))))){ + a18 = 0; + a22 = 0; + a3 = 4; + a5 = 1; + return 26; + } else if(((!(a6==1)&&(((a20==1)&&((a4==1)&&(((a3==6)&&((a5==1)&&(!(a0==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a12==10)))))&&(a15==1))))&&(a27==1)))&&(a22==1))){ + a0 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + a6 = 1; + return -1; + } else if(((a22==1)&&((a20==1)&&((a4==1)&&((a6==1)&&(!(a15==1)&&(((a5==1)&&((a12==12)&&((a27==1)&&(!(a0==1)&&(((a18==1)||!(a18==1))&&(input==4))))))&&(a3==4)))))))){ + a15 = 1; + a0 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if((((!(a5==1)&&((((a4==1)&&((!(a0==1)&&((input==1)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==7)))))&&(a12==12)))&&(a20==1))&&!(a6==1)))&&(a15==1))&&(a27==1))){ + a22 = 0; + a18 = 0; + a12 = 10; + a15 = 0; + a4 = 0; + a6 = 1; + a0 = 1; + a27 = 0; + a3 = 8; + return 21; + } else if((((a5==1)&&(((a22==1)&&((a12==8)&&((((((a3==6)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a0==1))&&(a27==1))&&(a4==1))&&!(a15==1))))&&(a6==1)))&&(a20==1))){ + a6 = 0; + a3 = 7; + a15 = 1; + a18 = 1; + a5 = 0; + return 21; + } else if(((((a3==4)&&(!(a15==1)&&(((((((input==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&(a12==9))&&!(a6==1))&&(a0==1))&&(a27==1))&&(a4==1))))&&(a5==1))&&(a20==1))){ + a5 = 0; + a4 = 0; + a22 = 1; + a3 = 8; + a6 = 1; + a12 = 12; + a18 = 1; + return 26; + } else if(((((!(a27==1)&&(((((a15==1)&&(!(a6==1)&&((input==5)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))))&&(a12==9))&&!(a0==1))&&(a20==1)))&&!(a4==1))&&(a5==1))&&(a3==6))){ + a18 = 0; + a22 = 1; + a3 = 5; + a27 = 1; + a6 = 1; + a12 = 11; + a4 = 1; + return -1; + } else if((!(a27==1)&&((a3==6)&&((a5==1)&&(((((((a15==1)&&((a20==1)&&((input==3)&&((a18==1)||!(a18==1)))))&&(a0==1))&&(a4==1))&&(a12==12))&&!(a6==1))&&(a22==1)))))){ + a4 = 0; + a18 = 0; + a12 = 11; + a22 = 0; + a6 = 1; + a3 = 8; + return -1; + } else if((((a18==1)&&((a6==1)&&(((a5==1)&&((a12==8)&&(((((a20==1)&&(!(a15==1)&&(input==2)))&&!(a22==1))&&!(a4==1))&&(a3==5))))&&(a0==1))))&&(a27==1))){ + a15 = 1; + a3 = 4; + a4 = 1; + a22 = 1; + return -1; + } else if(((!(a4==1)&&((a12==9)&&(!(a27==1)&&((a5==1)&&(!(a6==1)&&(!(a15==1)&&((a20==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==4))&&(a0==1)))))))))&&(a3==8))){ + a15 = 1; + a18 = 1; + a22 = 1; + a27 = 1; + a3 = 4; + a4 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if((!(a15==1)&&((a6==1)&&(((a20==1)&&(((a22==1)&&(((a18==1)&&((((input==6)&&(a3==4))&&!(a5==1))&&(a0==1)))&&!(a4==1)))&&(a12==9)))&&!(a27==1))))){ + if((a6==1)){ + a6 = 0; + a12 = 12; + a27 = 1; + a18 = 0; + a15 = 1; + a5 = 1; + a0 = 0; + }else{ + a4 = 1; + a12 = 11; + a3 = 6; + a18 = 0; + } + return 24; + } else if((((((a3==6)&&((a5==1)&&((((((input==2)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a27==1))&&(a20==1))&&(a12==9))&&!(a6==1))))&&!(a0==1))&&(a15==1))&&!(a4==1))){ + a12 = 10; + a5 = 0; + a18 = 0; + a3 = 7; + a22 = 1; + a0 = 1; + return 21; + } else if((((!(a6==1)&&((((!(a4==1)&&((a20==1)&&((a0==1)&&(!(a5==1)&&((input==4)&&(a15==1))))))&&(a18==1))&&(a22==1))&&(a3==7)))&&(a12==12))&&(a27==1))){ + a15 = 0; + a3 = 8; + a27 = 0; + a12 = 10; + a18 = 0; + return 26; + } else if(((((a0==1)&&(!(a15==1)&&((a27==1)&&(((a20==1)&&((((input==2)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a5==1))&&!(a4==1)))&&(a12==12)))))&&!(a6==1))&&(a3==6))){ + a18 = 0; + a15 = 1; + a22 = 1; + a5 = 0; + a3 = 8; + a12 = 10; + return -1; + } else if((((a6==1)&&((a3==5)&&(((a12==8)&&((((a20==1)&&(!(a4==1)&&(((a0==1)&&(input==5))&&(a15==1))))&&(a27==1))&&!(a18==1)))&&!(a5==1))))&&(a22==1))){ + a3 = 6; + a18 = 1; + a12 = 10; + a6 = 0; + a5 = 1; + return 24; + } else if(((a12==8)&&((a0==1)&&((a20==1)&&((a5==1)&&(!(a15==1)&&((a27==1)&&(!(a6==1)&&((a4==1)&&(((((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==4))))))))))){ + a18 = 1; + a6 = 1; + a4 = 0; + a3 = 8; + a5 = 0; + a22 = 1; + return 24; + } else if((!(a0==1)&&(!(a5==1)&&((a20==1)&&((a6==1)&&((a27==1)&&(((a12==11)&&((a4==1)&&((input==4)&&((((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a18==1)&&!(a22==1))))||((a3==5)&&((a18==1)&&(a22==1)))))))&&(a15==1)))))))){ + a18 = 0; + a4 = 0; + a3 = 6; + a22 = 1; + a6 = 0; + return 21; + } else if((!(a4==1)&&(!(a5==1)&&((a0==1)&&(((a20==1)&&((a27==1)&&((a12==12)&&(((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4))))&&(input==4)))))&&!(a15==1)))))){ + if((a15==1)){ + a4 = 1; + a6 = 1; + a15 = 1; + a0 = 0; + a3 = 8; + a18 = 0; + a22 = 0; + a12 = 10; + }else{ + a22 = 1; + a6 = 0; + a4 = 1; + a12 = 9; + a18 = 1; + a3 = 5; + a27 = 0; + } + return 26; + } else if((!(a0==1)&&((!(a5==1)&&(!(a27==1)&&((a6==1)&&((a22==1)&&((a20==1)&&((((a4==1)&&((input==5)&&(a18==1)))&&!(a15==1))&&(a12==10)))))))&&(a3==8)))){ + a0 = 1; + a6 = 0; + a3 = 7; + a18 = 0; + a5 = 1; + a4 = 0; + a12 = 11; + return 21; + } else if(((a15==1)&&((((a18==1)&&(!(a0==1)&&(((((!(a4==1)&&((a6==1)&&(input==5)))&&(a5==1))&&(a12==9))&&(a3==6))&&(a20==1))))&&(a22==1))&&(a27==1)))){ + a4 = 1; + a22 = 0; + a18 = 0; + a5 = 0; + a12 = 11; + a0 = 1; + return 21; + } else if(((a27==1)&&(((a6==1)&&(((((((a12==9)&&(!(a18==1)&&((a3==8)&&(input==6))))&&(a4==1))&&!(a5==1))&&!(a22==1))&&!(a0==1))&&(a15==1)))&&(a20==1)))){ + a18 = 1; + a6 = 0; + a3 = 4; + a12 = 10; + a22 = 1; + a0 = 1; + return 21; + } else if((!(a4==1)&&(((((!(a6==1)&&((((a22==1)&&((a5==1)&&((a3==4)&&(input==4))))&&!(a18==1))&&(a15==1)))&&(a27==1))&&(a12==8))&&(a20==1))&&(a0==1)))){ + a4 = 1; + a6 = 1; + a18 = 1; + return -1; + } else if((((a5==1)&&(!(a6==1)&&((((((((((a22==1)&&(a18==1))&&(a3==5))||((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1)))))&&(input==5))&&!(a0==1))&&(a15==1))&&(a12==10))&&!(a4==1))&&!(a27==1))))&&(a20==1))){ + if((a3==4)){ + a6 = 1; + a12 = 8; + a22 = 0; + a4 = 1; + a18 = 0; + a3 = 7; + a0 = 1; + a27 = 1; + }else{ + a3 = 8; + a22 = 1; + a0 = 1; + a6 = 1; + a12 = 8; + a18 = 1; + } + return -1; + } else if((!(a4==1)&&(((a3==4)&&((a5==1)&&((((((a6==1)&&((input==6)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&!(a27==1))&&(a12==10))&&(a15==1))&&!(a0==1))))&&(a20==1)))){ + if((a20==1)){ + a4 = 1; + a3 = 6; + a27 = 1; + a18 = 0; + a6 = 0; + a0 = 1; + a22 = 0; + a12 = 8; + }else{ + a22 = 0; + a3 = 6; + a12 = 8; + a0 = 1; + a18 = 1; + a27 = 1; + } + return -1; + } else if((((a20==1)&&((a0==1)&&((!(a4==1)&&((a15==1)&&(((((input==1)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&!(a6==1))&&!(a27==1))&&(a5==1))))&&(a3==8))))&&(a12==12))){ + a4 = 1; + a5 = 0; + a27 = 1; + a18 = 0; + a12 = 11; + a3 = 5; + a15 = 0; + a22 = 0; + a0 = 0; + return -1; + } else if((((((a3==4)&&((a15==1)&&(!(a6==1)&&((!(a27==1)&&((a12==9)&&((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&(a5==1)))))&&(a20==1))&&(a0==1))&&!(a4==1))){ + a6 = 1; + a18 = 0; + a27 = 1; + a4 = 1; + a0 = 0; + a5 = 0; + a12 = 11; + a22 = 1; + a15 = 0; + a3 = 6; + return 21; + } else if(((a27==1)&&(((a12==12)&&(((a15==1)&&(!(a0==1)&&((a6==1)&&((a5==1)&&(((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a20==1))))))&&(a4==1)))&&(a3==6)))){ + a4 = 0; + a5 = 0; + a6 = 0; + a22 = 0; + a0 = 1; + a18 = 1; + return 21; + } else if((((((a20==1)&&((a5==1)&&((((a6==1)&&((input==3)&&(((a3==8)&&((a22==1)&&!(a18==1)))||(((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1)))))))&&(a15==1))&&!(a4==1))))&&(a0==1))&&(a27==1))&&(a12==11))){ + a27 = 0; + a22 = 1; + a12 = 10; + a5 = 0; + a3 = 5; + a18 = 1; + a15 = 0; + return 24; + } else if((((a4==1)&&((a6==1)&&((a0==1)&&(((a20==1)&&((a5==1)&&(((input==4)&&((((a22==1)&&(a18==1))&&(a3==7))||(((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1))))))&&(a15==1))))&&!(a27==1)))))&&(a12==10))){ + a6 = 0; + a22 = 0; + a27 = 1; + a18 = 0; + a3 = 5; + a15 = 0; + return 26; + } else if((((!(a0==1)&&((a3==6)&&((a5==1)&&(((!(a15==1)&&(!(a4==1)&&(((input==3)&&(a6==1))&&(a20==1))))&&(a18==1))&&(a12==10)))))&&(a27==1))&&!(a22==1))){ + a3 = 4; + a22 = 1; + a4 = 1; + a12 = 8; + a15 = 1; + a0 = 1; + return -1; + } else if(((a3==6)&&((a12==9)&&(((a0==1)&&(!(a4==1)&&(((!(a15==1)&&((((input==3)&&((a18==1)||!(a18==1)))&&(a5==1))&&!(a22==1)))&&(a6==1))&&(a20==1))))&&!(a27==1))))){ + a12 = 11; + a15 = 1; + a3 = 7; + a27 = 1; + a5 = 0; + a18 = 1; + return 26; + } else if(((a0==1)&&(((((!(a4==1)&&(!(a5==1)&&((a22==1)&&((a3==7)&&((a12==12)&&((a18==1)&&(input==6)))))))&&(a27==1))&&(a20==1))&&!(a6==1))&&(a15==1)))){ + a18 = 0; + a6 = 1; + a4 = 1; + a0 = 0; + a12 = 9; + a3 = 5; + return 26; + } else if((!(a6==1)&&((a15==1)&&(((a0==1)&&(((!(a27==1)&&((a3==8)&&((a12==10)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==1)))))&&!(a5==1))&&(a4==1)))&&(a20==1))))){ + if((a3==4)){ + a18 = 0; + a27 = 1; + a0 = 0; + a3 = 4; + a4 = 0; + a15 = 0; + a22 = 1; + a12 = 9; + }else{ + a15 = 0; + a27 = 1; + a18 = 0; + a22 = 0; + a4 = 0; + a5 = 1; + a12 = 12; + a3 = 5; + } + return -1; + } else if(((a5==1)&&((((!(a4==1)&&(((((((a22==1)&&(input==6))&&(a12==10))&&(a18==1))&&(a15==1))&&(a27==1))&&(a6==1)))&&(a0==1))&&(a3==5))&&(a20==1)))){ + a12 = 8; + a3 = 4; + a4 = 1; + return -1; + } else if(((a27==1)&&((((a0==1)&&(((!(a4==1)&&((a6==1)&&((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==5))&&(a15==1))))&&(a12==10))&&(a20==1)))&&(a3==6))&&(a5==1)))){ + if((a6==1)){ + a5 = 0; + a0 = 0; + a22 = 1; + a3 = 5; + a15 = 0; + a18 = 0; + a12 = 8; + a4 = 1; + }else{ + a5 = 0; + a18 = 0; + a3 = 7; + a22 = 0; + a12 = 9; + a6 = 0; + a4 = 1; + a27 = 0; + } + return 26; + } else if((((((a4==1)&&(((a27==1)&&((a6==1)&&(((a15==1)&&((input==2)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a5==1))))&&!(a0==1)))&&(a12==12))&&(a20==1))&&(a3==6))){ + a18 = 0; + a12 = 11; + a22 = 0; + a0 = 1; + a6 = 0; + a3 = 8; + return 26; + } else if(((((a15==1)&&((((a27==1)&&(!(a6==1)&&((((input==5)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a3==8))&&(a0==1))))&&(a20==1))&&(a12==10)))&&(a4==1))&&!(a5==1))){ + if((a0==1)){ + a0 = 0; + a22 = 0; + a12 = 11; + a6 = 1; + a18 = 1; + a3 = 7; + }else{ + a18 = 1; + a12 = 12; + a4 = 0; + a22 = 0; + a3 = 6; + a5 = 1; + a15 = 0; + } + return 26; + } else if(((((a5==1)&&(((!(a27==1)&&((a6==1)&&((a4==1)&&(!(a15==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==3))))))&&(a12==11))&&(a3==4)))&&!(a0==1))&&(a20==1))){ + a0 = 1; + a15 = 1; + a27 = 1; + a3 = 8; + a22 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((!(a5==1)&&((!(a0==1)&&(((((((a27==1)&&((input==5)&&(a22==1)))&&(a20==1))&&(a18==1))&&!(a6==1))&&(a12==11))&&!(a4==1)))&&(a3==7)))&&!(a15==1))){ + a6 = 1; + a5 = 1; + a12 = 8; + a15 = 1; + a0 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((a27==1)&&(((a4==1)&&((((a22==1)&&((((((input==4)&&((a18==1)||!(a18==1)))&&(a0==1))&&(a12==9))&&(a20==1))&&!(a15==1)))&&(a3==8))&&(a6==1)))&&(a5==1)))){ + a18 = 1; + a15 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((!(a4==1)&&((!(a15==1)&&((!(a5==1)&&((!(a0==1)&&(((((input==2)&&((a18==1)||!(a18==1)))&&!(a27==1))&&(a20==1))&&!(a22==1)))&&(a3==5)))&&!(a6==1)))&&(a12==11)))){ + a3 = 4; + a5 = 1; + a12 = 8; + a6 = 1; + a27 = 1; + a18 = 1; + a15 = 1; + a0 = 1; + a4 = 1; + return 26; + } else if((((a4==1)&&((a0==1)&&((a20==1)&&(((a3==6)&&((a5==1)&&((((input==3)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a12==11))&&(a15==1))))&&(a6==1)))))&&(a27==1))){ + a3 = 4; + a22 = 0; + a18 = 1; + return -1; + } else if((((a0==1)&&(((((a5==1)&&((a4==1)&&((((input==3)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&(a27==1))&&(a12==11))))&&!(a15==1))&&(a3==4))&&!(a6==1)))&&(a20==1))){ + a4 = 0; + a18 = 0; + a22 = 0; + a12 = 10; + a15 = 1; + return -1; + } else if(((a4==1)&&((((a27==1)&&((a12==11)&&(((!(a15==1)&&((input==2)&&(((a3==8)&&((a22==1)&&!(a18==1)))||(((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1)))))))&&(a0==1))&&(a6==1))))&&!(a5==1))&&(a20==1)))){ + if((a0==1)){ + a0 = 0; + a22 = 1; + a18 = 0; + a3 = 6; + a5 = 1; + }else{ + a18 = 1; + a12 = 10; + a22 = 1; + a3 = 4; + a5 = 1; + } + return -1; + } else if(((a12==10)&&((a22==1)&&(((a5==1)&&(((a6==1)&&(((a18==1)&&((((input==5)&&(a27==1))&&(a20==1))&&!(a15==1)))&&(a4==1)))&&(a0==1)))&&(a3==5))))){ + a12 = 8; + a3 = 4; + a15 = 1; + return -1; + } else if((!(a6==1)&&((((a3==8)&&(((a20==1)&&((a12==11)&&((a27==1)&&((a5==1)&&((input==2)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))))&&(a0==1)))&&!(a4==1))&&(a15==1)))){ + if((a22==1)){ + a18 = 1; + a12 = 8; + a0 = 0; + a15 = 0; + a22 = 0; + a5 = 0; + }else{ + a18 = 1; + a3 = 6; + a12 = 10; + a6 = 1; + a22 = 0; + a15 = 0; + a4 = 1; + } + return -1; + } else if(((((((a12==11)&&((a6==1)&&((a3==5)&&(!(a5==1)&&((a4==1)&&((input==2)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))))&&(a20==1))&&(a15==1))&&!(a0==1))&&!(a27==1))){ + a15 = 0; + a22 = 1; + a0 = 1; + a12 = 10; + a27 = 1; + a18 = 1; + a3 = 6; + return 26; + } else if(((!(a5==1)&&((a20==1)&&((a12==12)&&(!(a15==1)&&((((a0==1)&&((a27==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==5))))&&!(a6==1))&&!(a4==1))))))&&(a3==7))){ + a3 = 6; + a27 = 0; + a18 = 0; + a15 = 1; + a22 = 0; + a12 = 9; + return 21; + } else if((((a0==1)&&((a15==1)&&(((!(a5==1)&&(((!(a18==1)&&((a3==5)&&(!(a27==1)&&(input==2))))&&!(a22==1))&&!(a6==1)))&&!(a4==1))&&(a12==12))))&&(a20==1))){ + a18 = 1; + a15 = 0; + a4 = 1; + a12 = 10; + a6 = 1; + a27 = 1; + a22 = 1; + return -1; + } else if((!(a6==1)&&((a20==1)&&((a5==1)&&(((a4==1)&&(((((a0==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==2)))&&(a15==1))&&(a3==5))&&(a27==1)))&&(a12==9)))))){ + a6 = 1; + a22 = 1; + a3 = 7; + a12 = 12; + a4 = 0; + a18 = 0; + return 26; + } else if(((((a3==5)&&(((a15==1)&&(!(a5==1)&&(((((input==6)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&(a27==1))&&(a12==12))&&!(a0==1))))&&(a20==1)))&&!(a4==1))&&(a6==1))){ + a22 = 1; + a18 = 0; + a12 = 8; + a3 = 8; + a0 = 1; + a5 = 1; + return -1; + } else if((((((a0==1)&&(!(a5==1)&&(!(a6==1)&&((!(a27==1)&&(!(a4==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==6))))&&!(a15==1)))))&&(a3==6))&&(a12==9))&&(a20==1))){ + a12 = 8; + a5 = 1; + a22 = 0; + a18 = 1; + a15 = 1; + return -1; + } else if((((!(a27==1)&&((a6==1)&&(((((a20==1)&&(!(a4==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3))))&&!(a15==1))&&(a0==1))&&(a3==6))))&&!(a5==1))&&(a12==12))){ + a15 = 1; + a3 = 7; + a18 = 0; + a12 = 9; + a5 = 1; + a4 = 1; + a22 = 0; + return 21; + } return calculate_output27(input); + } + + int calculate_output27(int input) { + if((((a5==1)&&(((a20==1)&&(!(a4==1)&&(!(a0==1)&&((a15==1)&&((((((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1)))||((((a22==1)&&!(a18==1))&&(a3==4))&&!(a6==1)))&&(input==6))))))&&(a27==1)))&&(a12==8))){ + a22 = 0; + a12 = 11; + a27 = 0; + a15 = 0; + a6 = 0; + a3 = 4; + a0 = 1; + a18 = 1; + a5 = 0; + return 26; + } else if(((a3==4)&&((!(a0==1)&&((!(a27==1)&&(!(a6==1)&&(!(a4==1)&&(!(a15==1)&&((a5==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==6)))))))&&(a20==1)))&&(a12==9)))){ + if((a27==1)){ + a18 = 1; + a22 = 0; + a4 = 1; + a15 = 1; + a0 = 1; + a6 = 1; + a12 = 8; + a27 = 1; + }else{ + a22 = 1; + a3 = 8; + a18 = 0; + a27 = 1; + a15 = 1; + a4 = 1; + a0 = 1; + a6 = 1; + a12 = 8; + } + return 26; + } else if(((((!(a4==1)&&(((((a12==8)&&((input==3)&&(((a3==5)&&((a22==1)&&!(a18==1)))||(((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a22==1)&&(a18==1)))))))&&!(a0==1))&&!(a15==1))&&!(a27==1)))&&(a20==1))&&(a5==1))&&(a6==1))){ + if((a15==1)){ + a6 = 0; + a3 = 7; + a22 = 1; + a4 = 1; + a0 = 1; + a18 = 0; + a15 = 1; + a27 = 1; + }else{ + a22 = 1; + a3 = 6; + a18 = 1; + a12 = 10; + a0 = 1; + } + return 21; + } else if((!(a6==1)&&((((((a5==1)&&((a12==12)&&(((a15==1)&&((input==6)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))))&&(a3==6))))&&!(a0==1))&&(a27==1))&&(a20==1))&&!(a4==1)))){ + a0 = 1; + a4 = 1; + a18 = 0; + a22 = 1; + a5 = 0; + a12 = 10; + a3 = 7; + return -1; + } else if((((a18==1)&&(((((a27==1)&&((!(a4==1)&&(!(a15==1)&&((a12==10)&&(!(a5==1)&&(input==1)))))&&(a0==1)))&&(a20==1))&&(a3==5))&&!(a6==1)))&&!(a22==1))){ + a18 = 0; + a12 = 11; + a3 = 6; + return 21; + } else if(((((a12==9)&&(!(a5==1)&&(!(a27==1)&&(((a20==1)&&(((input==4)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1)))))&&!(a4==1)))&&!(a15==1)))))&&(a0==1))&&!(a6==1))){ + if((a6==1)){ + a3 = 8; + a5 = 1; + a0 = 0; + a27 = 1; + a12 = 8; + a18 = 1; + a22 = 0; + a4 = 1; + }else{ + a4 = 1; + a18 = 1; + a22 = 0; + a15 = 1; + a3 = 6; + a12 = 12; + } + return 21; + } else if((((a20==1)&&((a12==10)&&((a5==1)&&(!(a22==1)&&((!(a0==1)&&((a3==8)&&((!(a27==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&!(a6==1))))&&(a4==1))))))&&!(a15==1))){ + a15 = 1; + a18 = 0; + a27 = 1; + a3 = 6; + a6 = 1; + a12 = 8; + a0 = 1; + return 26; + } else if((((!(a4==1)&&((!(a27==1)&&((a20==1)&&((a12==9)&&((!(a22==1)&&((a5==1)&&((input==5)&&((a18==1)||!(a18==1)))))&&(a0==1)))))&&(a15==1)))&&(a6==1))&&(a3==5))){ + a3 = 4; + a12 = 8; + a22 = 1; + a27 = 1; + a18 = 1; + a4 = 1; + return -1; + } else if((((!(a6==1)&&(((a15==1)&&((a3==5)&&(!(a27==1)&&(((a20==1)&&(((a5==1)&&(input==3))&&(a0==1)))&&!(a4==1)))))&&(a12==12)))&&(a18==1))&&!(a22==1))){ + a3 = 4; + a4 = 1; + a12 = 8; + a18 = 0; + a22 = 1; + return -1; + } else if((((!(a15==1)&&((a20==1)&&((((((a0==1)&&((a3==4)&&(((a18==1)||!(a18==1))&&(input==2))))&&!(a27==1))&&(a22==1))&&(a5==1))&&!(a6==1))))&&(a4==1))&&(a12==11))){ + a27 = 1; + a15 = 1; + a3 = 6; + a18 = 0; + a12 = 8; + return -1; + } else if(((((!(a0==1)&&((a15==1)&&((a3==7)&&(((a12==8)&&(((a18==1)&&((a5==1)&&(input==2)))&&(a20==1)))&&!(a27==1)))))&&(a6==1))&&!(a22==1))&&!(a4==1))){ + if((a18==1)){ + a18 = 0; + a27 = 1; + a6 = 0; + a0 = 1; + a3 = 4; + a4 = 1; + a22 = 1; + }else{ + a6 = 0; + a4 = 1; + a0 = 1; + a27 = 1; + a22 = 1; + } + return 21; + } else if((!(a6==1)&&(((((a20==1)&&(((((a15==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a0==1)))&&!(a27==1))&&(a22==1))&&(a3==6)))&&(a4==1))&&(a12==12))&&!(a5==1)))){ + a6 = 1; + a3 = 8; + a22 = 0; + a12 = 9; + a18 = 1; + return -1; + } else if(((!(a5==1)&&(!(a6==1)&&(((a20==1)&&(((a0==1)&&((a12==10)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==5))&&(a3==8))))&&(a27==1)))&&(a4==1))))&&!(a15==1))){ + a18 = 0; + a12 = 8; + a22 = 0; + a5 = 1; + a3 = 4; + return 21; + } else if(((!(a0==1)&&((((((a4==1)&&((input==3)&&((((a3==4)&&(!(a18==1)&&(a22==1)))&&!(a6==1))||((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1))))))&&(a20==1))&&(a15==1))&&!(a27==1))&&!(a5==1)))&&(a12==11))){ + a22 = 0; + a6 = 1; + a27 = 1; + a0 = 1; + a4 = 0; + a5 = 1; + a12 = 8; + a3 = 7; + a18 = 0; + return 26; + } else if((!(a15==1)&&((a3==5)&&((((a20==1)&&((!(a5==1)&&((a6==1)&&((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a0==1))))&&(a27==1)))&&!(a4==1))&&(a12==11))))){ + a12 = 10; + a18 = 1; + a0 = 0; + a3 = 6; + a22 = 1; + return 26; + } else if(((a20==1)&&(!(a5==1)&&((a27==1)&&((((a12==9)&&(((((input==2)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&!(a15==1))&&(a3==4))&&!(a4==1)))&&(a6==1))&&!(a0==1)))))){ + a22 = 1; + a3 = 6; + a12 = 10; + a18 = 1; + return 26; + } else if(((a20==1)&&((((a4==1)&&(((a27==1)&&((a0==1)&&(((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==4))&&!(a6==1))&&(a12==12))))&&(a5==1)))&&(a3==6))&&!(a15==1)))){ + a18 = 0; + a3 = 8; + a12 = 10; + a22 = 1; + return -1; + } else if(((a3==8)&&((((a20==1)&&((((a5==1)&&((a0==1)&&(((input==5)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a12==10))))&&!(a4==1))&&(a6==1)))&&!(a27==1))&&(a15==1)))){ + if((a18==1)){ + a5 = 0; + a6 = 0; + a12 = 12; + a15 = 0; + a22 = 0; + a4 = 1; + a18 = 1; + a3 = 4; + }else{ + a12 = 9; + a22 = 1; + a5 = 0; + a0 = 0; + a18 = 1; + a4 = 1; + a27 = 1; + } + return 21; + } else if(((((((a12==11)&&(!(a4==1)&&((((((input==4)&&(a20==1))&&!(a18==1))&&!(a22==1))&&!(a5==1))&&!(a15==1))))&&!(a6==1))&&(a0==1))&&!(a27==1))&&(a3==8))){ + a27 = 1; + a0 = 0; + a4 = 1; + a12 = 9; + a15 = 1; + return -1; + } else if(((a6==1)&&(((((!(a5==1)&&(!(a27==1)&&(((input==2)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6))))&&(a20==1))))&&!(a0==1))&&!(a4==1))&&(a12==9))&&(a15==1)))){ + a3 = 5; + a0 = 1; + a12 = 8; + a22 = 1; + a18 = 0; + a6 = 0; + return -1; + } else if(((!(a18==1)&&(!(a15==1)&&(((a6==1)&&(((((((a3==5)&&(input==4))&&(a12==12))&&(a0==1))&&!(a27==1))&&(a4==1))&&!(a5==1)))&&(a22==1))))&&(a20==1))){ + a3 = 8; + a27 = 1; + a15 = 1; + a6 = 0; + a12 = 8; + return 26; + } else if(((a4==1)&&(!(a0==1)&&(!(a15==1)&&((a12==12)&&(!(a6==1)&&(((((a27==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==5)))&&(a20==1))&&(a5==1))&&(a3==4)))))))){ + a0 = 1; + a22 = 1; + a15 = 1; + a12 = 8; + a3 = 5; + a18 = 0; + return -1; + } else if(((a20==1)&&(!(a0==1)&&(((((a12==9)&&((((!(a6==1)&&((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1))))||(((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1))))&&(a6==1)))||((a6==1)&&((!(a4==1)&&(!(a18==1)&&(a22==1)))&&(a3==4))))&&(input==4)))&&!(a15==1))&&(a5==1))&&!(a27==1))))){ + if((a3==5)){ + a15 = 1; + a12 = 8; + a22 = 1; + a0 = 1; + a18 = 0; + a4 = 1; + a6 = 0; + a27 = 1; + a3 = 8; + }else{ + a12 = 10; + a0 = 1; + a22 = 1; + a18 = 1; + a4 = 0; + a6 = 0; + a3 = 6; + } + return 26; + } else if((((a15==1)&&(((a22==1)&&((((((((input==5)&&((a18==1)||!(a18==1)))&&(a5==1))&&!(a0==1))&&(a3==6))&&(a27==1))&&(a6==1))&&!(a4==1)))&&(a20==1)))&&(a12==8))){ + a0 = 1; + a12 = 10; + a18 = 0; + a6 = 0; + a15 = 0; + a3 = 8; + return 21; + } else if(((!(a5==1)&&((a12==10)&&(!(a27==1)&&(!(a15==1)&&(((a20==1)&&(!(a4==1)&&((input==6)&&((((a22==1)&&!(a18==1))&&(a3==8))||(((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))))))&&!(a6==1))))))&&!(a0==1))){ + a3 = 5; + a12 = 11; + a15 = 1; + a22 = 1; + a18 = 1; + return 26; + } else if((!(a5==1)&&((((a27==1)&&((a3==7)&&(!(a15==1)&&((!(a0==1)&&((((input==5)&&((a18==1)||!(a18==1)))&&(a20==1))&&(a12==12)))&&!(a4==1)))))&&(a6==1))&&(a22==1)))){ + a18 = 0; + a3 = 5; + a0 = 1; + a12 = 8; + a5 = 1; + return -1; + } else if((!(a4==1)&&((((a20==1)&&((a3==5)&&(((((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==3))&&!(a15==1))&&(a5==1))&&(a12==10))&&!(a6==1))))&&(a27==1))&&(a0==1)))){ + a4 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a15 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if((((a5==1)&&((((a15==1)&&((a27==1)&&((!(a22==1)&&((a12==11)&&(((a4==1)&&(input==5))&&(a3==5))))&&!(a0==1))))&&!(a18==1))&&(a6==1)))&&(a20==1))){ + a12 = 10; + a3 = 7; + a0 = 1; + a15 = 0; + return -1; + } else if(((!(a15==1)&&(!(a27==1)&&(!(a4==1)&&(((a20==1)&&((a12==10)&&(((input==5)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==7))))&&!(a6==1))))&&(a5==1)))))&&(a0==1))){ + a18 = 1; + a4 = 1; + a3 = 5; + a12 = 8; + a6 = 1; + a22 = 0; + return -1; + } else if(((a0==1)&&((((!(a15==1)&&(!(a22==1)&&(((a20==1)&&((a5==1)&&(!(a27==1)&&((input==3)&&((a18==1)||!(a18==1))))))&&(a12==10))))&&(a4==1))&&(a6==1))&&(a3==5)))){ + a18 = 0; + a3 = 7; + a15 = 1; + a12 = 9; + return 21; + } else if((!(a4==1)&&(((a20==1)&&((a27==1)&&((!(a5==1)&&((a12==8)&&((a15==1)&&((input==4)&&(((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a22==1)&&(a18==1))))))))&&(a0==1))))&&(a6==1)))){ + a18 = 0; + a12 = 10; + a22 = 1; + a3 = 8; + a5 = 1; + return 26; + } else if((((!(a0==1)&&(((!(a27==1)&&(((a6==1)&&(!(a5==1)&&(!(a4==1)&&((a3==6)&&(input==6)))))&&(a12==9)))&&!(a18==1))&&(a20==1)))&&(a22==1))&&!(a15==1))){ + a18 = 1; + a5 = 1; + a0 = 1; + a12 = 12; + a3 = 4; + a27 = 1; + return -1; + } else if((!(a22==1)&&((!(a6==1)&&(!(a18==1)&&((a3==7)&&((a5==1)&&(!(a15==1)&&(!(a4==1)&&((((a20==1)&&(input==4))&&(a27==1))&&(a12==9))))))))&&!(a0==1)))){ + a15 = 1; + a5 = 0; + a3 = 5; + a0 = 1; + a6 = 1; + a12 = 10; + return -1; + } else if((((((a27==1)&&(!(a5==1)&&((a20==1)&&(((((input==2)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a0==1))&&(a12==12))&&(a6==1)))))&&(a3==5))&&(a4==1))&&(a15==1))){ + a12 = 11; + a3 = 7; + a18 = 1; + a22 = 0; + a5 = 1; + a4 = 0; + return 21; + } else if(((a3==8)&&(((a27==1)&&((((a12==12)&&((!(a0==1)&&(!(a6==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==6))))&&!(a5==1)))&&!(a15==1))&&(a20==1)))&&!(a4==1)))){ + a3 = 7; + a6 = 1; + a18 = 0; + a5 = 1; + a4 = 1; + a22 = 1; + return 26; + } else if((((a6==1)&&((a27==1)&&((!(a4==1)&&((a20==1)&&(!(a15==1)&&((!(a0==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a5==1)))&&(a12==8)))))&&(a3==5))))&&(a22==1))){ + a12 = 9; + a3 = 8; + a6 = 0; + a18 = 0; + a4 = 1; + a5 = 0; + a15 = 1; + return 26; + } else if((!(a0==1)&&(!(a6==1)&&(((a20==1)&&(((a12==11)&&(!(a15==1)&&((a3==6)&&(!(a5==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==6))))))&&!(a27==1)))&&!(a4==1))))){ + a3 = 5; + a12 = 8; + a5 = 1; + a0 = 1; + a27 = 1; + a4 = 1; + a18 = 0; + a22 = 0; + a15 = 1; + return 21; + } else if((((!(a6==1)&&((a27==1)&&((a15==1)&&(!(a0==1)&&((a20==1)&&(((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==6))&&!(a5==1))&&(a3==8)))))))&&!(a4==1))&&(a12==8))){ + a0 = 1; + a18 = 1; + a27 = 0; + a22 = 1; + a6 = 1; + a3 = 5; + a5 = 1; + return -1; + } else if((((a3==5)&&(!(a27==1)&&(((a20==1)&&(!(a6==1)&&(!(a15==1)&&((a18==1)&&((!(a0==1)&&((input==6)&&(a12==9)))&&(a4==1))))))&&!(a5==1))))&&(a22==1))){ + a12 = 12; + a6 = 1; + a3 = 4; + a27 = 1; + a22 = 0; + return -1; + } else if(((a12==8)&&(((!(a5==1)&&(((a15==1)&&(!(a6==1)&&(((input==1)&&((((a18==1)&&(a22==1))&&(a3==7))||((((a18==1)&&!(a22==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))))&&!(a27==1))))&&(a20==1)))&&!(a0==1))&&(a4==1)))){ + a6 = 1; + a5 = 1; + a22 = 0; + a18 = 0; + a3 = 5; + a0 = 1; + return 21; + } else if((((a20==1)&&(((!(a27==1)&&(((((a12==9)&&((a6==1)&&((input==6)&&(a22==1))))&&(a3==6))&&(a5==1))&&!(a18==1)))&&!(a0==1))&&(a15==1)))&&(a4==1))){ + a6 = 0; + a0 = 1; + a15 = 0; + a5 = 0; + a3 = 4; + a12 = 10; + return -1; + } else if((((a20==1)&&((a0==1)&&((((a6==1)&&(((a5==1)&&((((a3==7)&&(input==6))&&!(a18==1))&&(a27==1)))&&(a22==1)))&&(a12==8))&&!(a4==1))))&&!(a15==1))){ + if((a22==1)){ + a6 = 0; + a15 = 1; + a3 = 5; + a12 = 12; + a27 = 0; + a5 = 0; + }else{ + a12 = 10; + a22 = 0; + a0 = 0; + a6 = 0; + a3 = 4; + a4 = 1; + a18 = 1; + } + return 26; + } else if((((a27==1)&&((((a20==1)&&(((((((a3==8)&&(input==1))&&(a5==1))&&(a4==1))&&(a0==1))&&(a15==1))&&!(a6==1)))&&(a18==1))&&(a12==9)))&&(a22==1))){ + a12 = 8; + a3 = 4; + a6 = 1; + return -1; + } else if(((a15==1)&&((a3==6)&&((!(a0==1)&&(((a12==11)&&((((a27==1)&&(!(a5==1)&&((input==5)&&!(a6==1))))&&!(a4==1))&&!(a22==1)))&&(a20==1)))&&!(a18==1))))){ + a6 = 1; + a5 = 1; + a0 = 1; + a3 = 4; + a4 = 1; + a22 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((a20==1)&&((!(a6==1)&&((((a3==4)&&(((a22==1)&&(((a15==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a5==1)))&&(a12==9)))&&(a27==1))&&(a4==1)))&&!(a0==1)))){ + a0 = 1; + a6 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((a3==5)&&(((a12==11)&&((a15==1)&&(!(a4==1)&&((!(a22==1)&&(((a20==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a6==1)))&&(a0==1)))&&(a27==1)))))&&!(a5==1)))){ + a15 = 0; + a22 = 1; + a5 = 1; + a18 = 1; + a3 = 4; + return 21; + } else if((((((a3==7)&&(((((!(a18==1)&&(!(a6==1)&&((a12==9)&&(input==1))))&&(a20==1))&&(a15==1))&&!(a5==1))&&(a22==1)))&&(a0==1))&&(a27==1))&&(a4==1))){ + a4 = 0; + a3 = 8; + a12 = 11; + a5 = 1; + return 24; + } else if(((a20==1)&&(((!(a0==1)&&(((a3==6)&&(!(a6==1)&&((((input==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&!(a5==1))&&(a27==1))))&&(a12==11)))&&(a4==1))&&(a15==1)))){ + a18 = 0; + a22 = 1; + a0 = 1; + a3 = 4; + a6 = 1; + return 26; + } else if((((((((a12==11)&&((!(a0==1)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==1)))&&(a20==1)))&&(a6==1))&&(a15==1))&&!(a4==1))&&(a27==1))&&(a5==1))){ + a3 = 6; + a22 = 0; + a18 = 0; + a6 = 0; + a15 = 0; + a4 = 1; + a12 = 12; + a0 = 1; + return 26; + } else if((!(a15==1)&&(((a3==7)&&(!(a4==1)&&(((((!(a27==1)&&((input==2)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a0==1))&&(a20==1))&&(a6==1))&&(a12==10))))&&!(a5==1)))){ + if((a20==1)){ + a0 = 1; + a5 = 1; + a3 = 5; + a22 = 0; + a6 = 0; + a4 = 1; + a27 = 1; + a12 = 8; + a18 = 0; + }else{ + a18 = 0; + a4 = 1; + a5 = 1; + a22 = 1; + a0 = 1; + a12 = 9; + } + return -1; + } else if(((a4==1)&&((a15==1)&&((a27==1)&&((a20==1)&&(!(a5==1)&&(((!(a6==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==5))&&(a12==12)))&&(a0==1))&&(a3==4)))))))){ + a22 = 1; + a12 = 11; + a15 = 0; + a3 = 6; + a5 = 1; + a18 = 0; + return -1; + } else if((((!(a4==1)&&((!(a18==1)&&(((a22==1)&&((((a0==1)&&((a12==8)&&(input==1)))&&(a20==1))&&(a15==1)))&&!(a5==1)))&&!(a27==1)))&&!(a6==1))&&(a3==5))){ + a4 = 1; + a27 = 1; + a3 = 4; + a6 = 1; + a5 = 1; + a18 = 1; + return -1; + } else if((((a12==9)&&(!(a5==1)&&(((!(a15==1)&&(!(a27==1)&&((a6==1)&&((input==6)&&((((a18==1)&&(a22==1))&&(a3==6))||(((!(a22==1)&&(a18==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5))))))))&&!(a4==1))&&(a20==1))))&&!(a0==1))){ + a3 = 8; + a15 = 1; + a5 = 1; + a0 = 1; + a27 = 1; + a22 = 0; + a18 = 0; + a12 = 8; + return 21; + } else if(((a22==1)&&(((a20==1)&&((!(a27==1)&&((((((((a18==1)||!(a18==1))&&(input==5))&&!(a6==1))&&(a3==7))&&!(a5==1))&&(a15==1))&&(a12==11)))&&(a4==1)))&&!(a0==1)))){ + if((a0==1)){ + a5 = 1; + a3 = 8; + a18 = 0; + a6 = 1; + a12 = 10; + a22 = 0; + a0 = 1; + }else{ + a18 = 0; + a22 = 0; + a27 = 1; + a5 = 1; + a0 = 1; + a4 = 0; + a6 = 1; + a12 = 8; + a3 = 6; + } + return -1; + } else if(((((((a4==1)&&(((!(a22==1)&&((a6==1)&&((a15==1)&&(((a18==1)||!(a18==1))&&(input==5)))))&&(a20==1))&&!(a27==1)))&&(a5==1))&&(a0==1))&&(a3==6))&&(a12==8))){ + a12 = 12; + a27 = 1; + a18 = 1; + a3 = 5; + a6 = 0; + a15 = 0; + return -1; + } else if((((a22==1)&&((a15==1)&&((a3==4)&&(!(a27==1)&&((a12==11)&&(((a0==1)&&((a4==1)&&((a5==1)&&(((a18==1)||!(a18==1))&&(input==1)))))&&!(a6==1)))))))&&(a20==1))){ + if((a3==8)){ + a15 = 0; + a12 = 10; + a22 = 0; + a3 = 8; + a27 = 1; + a0 = 0; + a18 = 1; + a6 = 1; + }else{ + a3 = 5; + a15 = 0; + a27 = 1; + a18 = 1; + a22 = 0; + } + return 21; + } else if((((a15==1)&&((a4==1)&&(((a3==6)&&(((a0==1)&&((((!(a18==1)&&(input==5))&&(a12==12))&&!(a6==1))&&!(a5==1)))&&(a22==1)))&&(a27==1))))&&(a20==1))){ + a6 = 1; + a4 = 0; + a18 = 1; + a5 = 1; + a3 = 8; + a15 = 0; + a12 = 11; + return -1; + } else if((((a12==11)&&(!(a5==1)&&(!(a4==1)&&((a20==1)&&((a15==1)&&((a3==7)&&((!(a0==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==1)))&&(a6==1))))))))&&!(a27==1))){ + a5 = 1; + a27 = 1; + a6 = 0; + a4 = 1; + a12 = 8; + a3 = 5; + a18 = 1; + a0 = 1; + a22 = 1; + return -1; + } else if((((((a4==1)&&(((((a20==1)&&((a22==1)&&(!(a5==1)&&((input==1)&&((a18==1)||!(a18==1))))))&&(a0==1))&&(a3==8))&&(a6==1)))&&(a15==1))&&(a12==12))&&!(a27==1))){ + a12 = 11; + a27 = 1; + a22 = 0; + a3 = 7; + a18 = 0; + a6 = 0; + a5 = 1; + a4 = 0; + return -1; + } else if(((a5==1)&&((((a4==1)&&((a15==1)&&(!(a6==1)&&(((a27==1)&&((input==2)&&(((a3==6)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5))))))&&(a0==1)))))&&(a20==1))&&(a12==11)))){ + a3 = 8; + a5 = 0; + a22 = 1; + a15 = 0; + a18 = 1; + a0 = 0; + return 21; + } else if(((a12==9)&&(((a5==1)&&((a20==1)&&((a15==1)&&(!(a0==1)&&(((!(a6==1)&&((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1)))))||((a6==1)&&((a3==4)&&(!(a4==1)&&((a22==1)&&(a18==1))))))&&(input==6))))))&&!(a27==1)))){ + a6 = 0; + a5 = 0; + a22 = 0; + a27 = 1; + a4 = 0; + a3 = 4; + a18 = 0; + a12 = 10; + return -1; + } else if(((a12==8)&&((a15==1)&&(((((((!(a6==1)&&(((input==4)&&!(a18==1))&&!(a22==1)))&&(a20==1))&&(a3==6))&&!(a27==1))&&(a5==1))&&(a0==1))&&(a4==1))))){ + a27 = 1; + a3 = 4; + a18 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if((((((a6==1)&&(!(a27==1)&&(((a4==1)&&(((((input==2)&&(a3==5))&&(a18==1))&&(a12==8))&&!(a22==1)))&&(a15==1))))&&(a20==1))&&(a5==1))&&(a0==1))){ + a4 = 0; + a27 = 1; + a15 = 0; + a3 = 4; + a22 = 1; + a5 = 0; + a12 = 11; + return 26; + } else if(((a22==1)&&((a3==7)&&(((((a5==1)&&((((a15==1)&&((((a18==1)||!(a18==1))&&(input==6))&&!(a27==1)))&&!(a6==1))&&(a0==1)))&&(a4==1))&&(a20==1))&&(a12==11))))){ + a5 = 0; + a15 = 0; + a12 = 9; + a4 = 0; + a18 = 0; + return -1; + } else if(((((((a12==11)&&(((a0==1)&&(((input==1)&&((((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==7)))||(((a18==1)&&(a22==1))&&(a3==8))))&&!(a27==1)))&&(a6==1)))&&!(a5==1))&&(a15==1))&&(a4==1))&&(a20==1))){ + a27 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + a5 = 1; + a12 = 8; + return -1; + } else if((!(a22==1)&&((a15==1)&&((((!(a6==1)&&(!(a0==1)&&(((a27==1)&&((a3==6)&&((input==1)&&(a12==11))))&&!(a5==1))))&&(a18==1))&&!(a4==1))&&(a20==1))))){ + a22 = 1; + a3 = 4; + a18 = 0; + a0 = 1; + return 24; + } else if((((!(a27==1)&&(((a12==10)&&((!(a5==1)&&((a4==1)&&(!(a0==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==5)))))&&(a6==1)))&&(a3==7)))&&!(a15==1))&&(a20==1))){ + if((a15==1)){ + a22 = 1; + a3 = 6; + a27 = 1; + a18 = 0; + a4 = 0; + }else{ + a18 = 0; + a22 = 0; + a3 = 8; + a15 = 1; + a12 = 8; + } + return 21; + } else if((((((a20==1)&&((a4==1)&&((((((a3==4)&&((input==4)&&(a18==1)))&&(a12==10))&&!(a27==1))&&!(a15==1))&&!(a22==1))))&&!(a6==1))&&!(a0==1))&&(a5==1))){ + a27 = 1; + a0 = 1; + a3 = 5; + a12 = 8; + a15 = 1; + a22 = 1; + return 26; + } else if((!(a27==1)&&((((((a5==1)&&((a12==10)&&(((a20==1)&&((a15==1)&&(((a18==1)||!(a18==1))&&(input==1))))&&(a3==7))))&&(a0==1))&&!(a4==1))&&(a22==1))&&(a6==1)))){ + a5 = 0; + a18 = 1; + a3 = 5; + return 26; + } else if(((a5==1)&&((!(a27==1)&&((a3==5)&&((a0==1)&&((a4==1)&&((((a6==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==5)))&&(a12==9))&&(a20==1))))))&&(a15==1)))){ + a4 = 0; + a12 = 10; + a22 = 1; + a18 = 1; + a6 = 0; + return 21; + } else if(((a6==1)&&(((a15==1)&&((a27==1)&&(((!(a4==1)&&((a20==1)&&((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==3))&&(a12==10))))&&(a0==1))&&!(a5==1))))&&(a3==4)))){ + a3 = 5; + a5 = 1; + a4 = 1; + a12 = 11; + a18 = 0; + a22 = 1; + a6 = 0; + return 21; + } else if((((((((((a18==1)&&(!(a15==1)&&(!(a6==1)&&((input==2)&&!(a0==1)))))&&(a3==6))&&!(a22==1))&&(a27==1))&&(a20==1))&&(a12==11))&&(a4==1))&&!(a5==1))){ + a0 = 1; + a12 = 10; + a3 = 5; + return -1; + } else if((((((a12==12)&&((((a15==1)&&((a6==1)&&((input==2)&&(((a3==6)&&((a22==1)&&(a18==1)))||(((a3==5)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==5)))))))&&(a20==1))&&(a4==1)))&&(a27==1))&&(a5==1))&&!(a0==1))){ + a18 = 1; + a3 = 4; + a0 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if((((((a6==1)&&((a15==1)&&((!(a27==1)&&(((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==4))&&(a12==11)))&&!(a0==1))))&&!(a5==1))&&(a20==1))&&(a4==1))){ + if((a3==4)){ + a0 = 1; + a12 = 8; + a4 = 0; + a27 = 1; + a3 = 5; + a18 = 0; + a22 = 1; + a5 = 1; + }else{ + a3 = 4; + a18 = 1; + a27 = 1; + a22 = 1; + a12 = 12; + a0 = 1; + } + return 24; + } else if(((((!(a0==1)&&((((!(a5==1)&&(((input==3)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&!(a15==1)))&&!(a6==1))&&(a27==1))&&(a3==7)))&&!(a4==1))&&(a12==11))&&(a20==1))){ + a4 = 1; + a6 = 1; + a18 = 0; + a15 = 1; + a3 = 6; + a0 = 1; + a22 = 0; + return -1; + } else if(((a4==1)&&(!(a22==1)&&(!(a6==1)&&((a15==1)&&((a3==6)&&(((((a27==1)&&((a12==11)&&((input==4)&&((a18==1)||!(a18==1)))))&&(a0==1))&&(a5==1))&&(a20==1)))))))){ + a3 = 4; + a6 = 1; + a22 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if((((a5==1)&&(!(a27==1)&&(((a15==1)&&((((a6==1)&&((!(a4==1)&&((input==5)&&(a20==1)))&&(a22==1)))&&(a3==6))&&(a0==1)))&&(a12==12))))&&(a18==1))){ + if((a5==1)){ + a15 = 0; + a22 = 0; + a4 = 1; + a0 = 0; + a27 = 1; + a12 = 9; + a3 = 8; + }else{ + a5 = 0; + a3 = 8; + a22 = 0; + a18 = 0; + } + return -1; + } else if((((a0==1)&&((a12==9)&&((!(a15==1)&&(((!(a18==1)&&(((!(a27==1)&&(input==6))&&(a6==1))&&(a20==1)))&&(a5==1))&&!(a4==1)))&&(a22==1))))&&(a3==5))){ + if((a18==1)){ + a0 = 0; + a27 = 1; + a4 = 1; + a12 = 8; + a3 = 4; + a5 = 0; + }else{ + a22 = 0; + a12 = 12; + a4 = 1; + } + return 24; + } else if(((a4==1)&&((((a12==9)&&((((((!(a6==1)&&((a3==4)&&(!(a18==1)&&(a22==1))))||((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1))))))&&(input==1))&&!(a5==1))&&!(a27==1))&&!(a0==1)))&&(a15==1))&&(a20==1)))){ + a0 = 1; + a5 = 1; + a15 = 0; + a22 = 1; + a3 = 5; + a6 = 0; + a18 = 1; + return 21; + } else if((!(a15==1)&&((((a5==1)&&(!(a6==1)&&(!(a4==1)&&(((!(a27==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==4)))&&(a0==1))&&(a20==1)))))&&(a3==6))&&(a12==10)))){ + a4 = 1; + a18 = 1; + a22 = 1; + a6 = 1; + a3 = 4; + a27 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if((!(a0==1)&&((a4==1)&&((a22==1)&&((!(a15==1)&&((a3==4)&&((a20==1)&&((!(a27==1)&&(!(a6==1)&&(((a18==1)||!(a18==1))&&(input==2))))&&!(a5==1)))))&&(a12==9)))))){ + if((a22==1)){ + a18 = 1; + a27 = 1; + a3 = 8; + a0 = 1; + a15 = 1; + a12 = 12; + a5 = 1; + a6 = 1; + a4 = 0; + }else{ + a12 = 10; + a6 = 1; + a0 = 1; + a18 = 0; + a22 = 0; + } + return -1; + } else if(((a15==1)&&((!(a4==1)&&((a3==7)&&((!(a6==1)&&(((a20==1)&&((((input==3)&&!(a18==1))&&(a12==12))&&(a0==1)))&&!(a27==1)))&&!(a5==1))))&&(a22==1)))){ + a3 = 4; + a15 = 0; + a12 = 9; + a18 = 1; + a6 = 1; + return 24; + } else if((((a3==5)&&((a6==1)&&(((a12==10)&&(!(a15==1)&&((!(a5==1)&&((a4==1)&&((a0==1)&&((input==4)&&((a18==1)||!(a18==1))))))&&(a27==1))))&&(a22==1))))&&(a20==1))){ + a18 = 0; + a6 = 0; + a22 = 0; + a5 = 1; + a3 = 7; + return -1; + } else if((((a0==1)&&((!(a5==1)&&((((a12==12)&&(((a20==1)&&((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a3==7)))&&!(a6==1))&&(a15==1)))&&(a4==1)))&&!(a27==1))){ + a27 = 1; + a22 = 1; + a3 = 4; + a6 = 1; + a12 = 8; + a5 = 1; + a18 = 1; + return -1; + } else if(((a4==1)&&(((((a20==1)&&((a0==1)&&((((input==3)&&(((a3==7)&&((a18==1)&&(a22==1)))||(((a3==6)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))))&&!(a15==1))&&(a12==10))))&&!(a6==1))&&!(a27==1))&&!(a5==1)))){ + a3 = 7; + a18 = 0; + a22 = 0; + a12 = 12; + a27 = 1; + return -1; + } else if(((a6==1)&&(((a22==1)&&((a20==1)&&(!(a27==1)&&((a18==1)&&(((((a0==1)&&((input==5)&&(a15==1)))&&(a3==5))&&(a5==1))&&!(a4==1))))))&&(a12==8)))){ + a5 = 0; + a3 = 7; + a18 = 0; + a6 = 0; + a27 = 1; + a12 = 9; + a22 = 0; + a15 = 0; + return 26; + } else if(((a3==7)&&(!(a22==1)&&((a15==1)&&((a6==1)&&(((a12==12)&&(((((((a18==1)||!(a18==1))&&(input==6))&&!(a4==1))&&(a20==1))&&(a5==1))&&(a0==1)))&&(a27==1))))))){ + a18 = 1; + a3 = 6; + a22 = 1; + a12 = 10; + return -1; + } else if((((a4==1)&&((a20==1)&&(!(a6==1)&&((((a5==1)&&(!(a27==1)&&((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==6))&&(a12==11))))&&(a15==1))&&(a3==8)))))&&!(a0==1))){ + if((a5==1)){ + a12 = 8; + a4 = 0; + a27 = 1; + a0 = 1; + a22 = 1; + a3 = 6; + a6 = 1; + a18 = 0; + }else{ + a22 = 0; + a6 = 1; + a12 = 8; + a3 = 6; + a18 = 0; + a27 = 1; + a0 = 1; + } + return -1; + } else if(((a3==5)&&((a20==1)&&((!(a5==1)&&(!(a4==1)&&((a22==1)&&(!(a6==1)&&(((a12==10)&&((!(a15==1)&&(input==6))&&(a0==1)))&&!(a18==1))))))&&!(a27==1))))){ + a12 = 8; + a27 = 1; + a15 = 1; + a6 = 1; + a3 = 4; + a18 = 1; + a4 = 1; + a5 = 1; + return -1; + } else if((((a12==8)&&((!(a18==1)&&((!(a15==1)&&(!(a27==1)&&(((a4==1)&&((a3==7)&&((input==3)&&(a20==1))))&&(a5==1))))&&!(a22==1)))&&!(a6==1)))&&(a0==1))){ + if((a27==1)){ + a22 = 1; + a27 = 1; + a15 = 1; + a0 = 0; + a12 = 9; + a5 = 0; + a3 = 6; + a4 = 0; + a18 = 1; + }else{ + a18 = 1; + a12 = 11; + } + return 26; + } else if(((a5==1)&&((!(a6==1)&&((((a4==1)&&(((a3==5)&&((a12==11)&&((input==3)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&!(a15==1)))&&!(a0==1))&&(a20==1)))&&!(a27==1)))){ + a6 = 1; + a3 = 4; + a15 = 1; + a27 = 1; + a4 = 0; + a12 = 8; + a18 = 1; + a0 = 1; + a22 = 1; + return 21; + } else if(((((a0==1)&&((((a12==9)&&((!(a4==1)&&((a20==1)&&(!(a18==1)&&(!(a27==1)&&(input==2)))))&&!(a22==1)))&&(a5==1))&&(a15==1)))&&(a6==1))&&(a3==7))){ + a27 = 1; + a6 = 0; + a18 = 1; + a5 = 0; + a12 = 11; + a3 = 6; + return 21; + } else if((((a27==1)&&((a0==1)&&(((((!(a18==1)&&((!(a6==1)&&((a4==1)&&(input==3)))&&(a3==6)))&&(a5==1))&&(a20==1))&&!(a22==1))&&(a12==10))))&&!(a15==1))){ + a12 = 8; + a6 = 1; + a15 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + return -1; + } else if((!(a0==1)&&(!(a5==1)&&((a20==1)&&(((a15==1)&&((!(a27==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==5))&&(a6==1)))&&!(a4==1)))&&(a12==10)))))){ + a12 = 8; + a3 = 5; + a22 = 1; + a0 = 1; + a4 = 1; + a18 = 1; + a5 = 1; + a27 = 1; + return -1; + } else if(((a3==5)&&((((((((a12==12)&&(((a0==1)&&((input==3)&&!(a6==1)))&&!(a22==1)))&&!(a18==1))&&(a27==1))&&!(a5==1))&&!(a4==1))&&(a20==1))&&!(a15==1)))){ + a15 = 1; + a6 = 1; + a5 = 1; + a3 = 4; + a12 = 8; + a4 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((!(a15==1)&&((a0==1)&&((a3==6)&&(!(a5==1)&&((a27==1)&&(((a12==8)&&(((input==2)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a4==1)))&&!(a6==1)))))))&&(a20==1))){ + a18 = 1; + a3 = 4; + a22 = 0; + a4 = 1; + a12 = 11; + a15 = 1; + return 21; + } else if(((a12==10)&&(!(a5==1)&&((a20==1)&&((a6==1)&&((((a22==1)&&(!(a4==1)&&((a3==6)&&((a27==1)&&((input==3)&&!(a15==1))))))&&!(a0==1))&&!(a18==1))))))){ + a6 = 0; + a15 = 1; + a3 = 5; + a5 = 1; + a4 = 1; + a12 = 11; + a0 = 1; + return -1; + } else if(((a5==1)&&((a4==1)&&((a20==1)&&(!(a22==1)&&(((a12==8)&&((((a3==8)&&((a15==1)&&(((a18==1)||!(a18==1))&&(input==1))))&&!(a27==1))&&(a0==1)))&&!(a6==1))))))){ + if((a15==1)){ + a12 = 11; + a18 = 0; + a22 = 1; + a0 = 0; + a3 = 7; + a27 = 1; + }else{ + a6 = 1; + a27 = 1; + a15 = 0; + a12 = 11; + a3 = 4; + a18 = 1; + } + return 21; + } else if((((!(a0==1)&&((a20==1)&&((!(a27==1)&&(!(a15==1)&&(((a12==9)&&((input==4)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a6==1))))&&(a3==5))))&&!(a4==1))&&(a5==1))){ + a22 = 1; + a12 = 8; + a3 = 6; + a27 = 1; + a15 = 1; + a6 = 1; + a0 = 1; + a18 = 1; + return 21; + } else if(((a20==1)&&((a12==12)&&((!(a6==1)&&((a4==1)&&((!(a0==1)&&(((input==5)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1)))))&&!(a15==1)))&&(a27==1))))&&!(a5==1))))){ + a3 = 8; + a0 = 1; + a15 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((a20==1)&&(((a3==6)&&((!(a6==1)&&((a0==1)&&(!(a15==1)&&(((!(a22==1)&&((a12==11)&&(input==2)))&&(a4==1))&&!(a18==1)))))&&!(a5==1)))&&!(a27==1)))){ + a18 = 1; + a15 = 1; + a3 = 4; + a12 = 8; + a6 = 1; + a22 = 1; + a27 = 1; + a5 = 1; + return -1; + } else if(((a5==1)&&(((a4==1)&&((((a6==1)&&(!(a27==1)&&((a12==9)&&(((a22==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a0==1)))))&&(a20==1))&&!(a15==1)))&&(a3==4)))){ + a12 = 11; + a6 = 0; + a3 = 5; + a5 = 0; + a4 = 0; + a18 = 0; + return 26; + } else if(((a5==1)&&(((!(a27==1)&&((!(a4==1)&&((a0==1)&&(((input==1)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1)))))&&!(a6==1))))&&(a12==8)))&&(a15==1))&&(a20==1)))){ + a5 = 0; + a18 = 1; + a22 = 0; + a27 = 1; + a4 = 1; + a12 = 10; + a3 = 6; + a15 = 0; + return 21; + } else if(((a0==1)&&((a4==1)&&((a15==1)&&(!(a27==1)&&((a3==4)&&(((((a6==1)&&((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a20==1))&&!(a5==1))&&(a12==11)))))))){ + a27 = 1; + a22 = 1; + a5 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if((!(a15==1)&&((a5==1)&&((a4==1)&&((((a0==1)&&((a20==1)&&((input==4)&&(((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1))))))&&(a27==1))&&(a12==12)))))){ + a18 = 0; + a22 = 1; + a3 = 4; + a4 = 0; + a6 = 0; + a12 = 11; + a5 = 0; + a15 = 1; + return -1; + } else if((!(a22==1)&&((a12==9)&&((!(a27==1)&&((a6==1)&&((a3==6)&&((!(a4==1)&&(!(a0==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&!(a15==1))))&&(a20==1)))))&&!(a5==1))))){ + a4 = 1; + a12 = 8; + a22 = 1; + a18 = 0; + a15 = 1; + a5 = 1; + a0 = 1; + a27 = 1; + a3 = 5; + return 21; + } else if(((a6==1)&&((a20==1)&&(((a4==1)&&(!(a22==1)&&((!(a27==1)&&(!(a0==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&(a3==4))&&(a12==11))))&&!(a15==1))))&&!(a5==1))))){ + if((a4==1)){ + a3 = 8; + a18 = 0; + a5 = 1; + }else{ + a15 = 1; + a27 = 1; + a0 = 1; + a4 = 0; + a18 = 0; + } + return 26; + } else if(((a12==9)&&(((a20==1)&&((!(a15==1)&&((((((((!(a22==1)&&(a18==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==4))&&!(a27==1))&&(a4==1))&&(a0==1)))&&(a6==1)))&&!(a5==1)))){ + a5 = 1; + a18 = 1; + a22 = 0; + a27 = 1; + a3 = 5; + a12 = 8; + a0 = 0; + return -1; + } else if((((a20==1)&&((a3==8)&&(((a27==1)&&((a12==12)&&(((((input==5)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a4==1))&&(a6==1))&&!(a15==1))))&&!(a5==1))))&&!(a0==1))){ + if((a15==1)){ + a27 = 0; + a18 = 1; + a6 = 0; + a12 = 8; + a3 = 4; + a5 = 1; + a4 = 0; + a15 = 1; + a22 = 1; + }else{ + a12 = 8; + a5 = 1; + a3 = 5; + a15 = 1; + a18 = 1; + a0 = 1; + a22 = 1; + } + return 21; + } else if((((!(a15==1)&&((!(a0==1)&&(((a3==6)&&((((a20==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&!(a6==1))&&(a4==1)))&&(a12==11)))&&(a22==1)))&&(a5==1))&&(a27==1))){ + a18 = 1; + a15 = 1; + a6 = 1; + a12 = 8; + a0 = 1; + a3 = 4; + return -1; + } else if(((a6==1)&&(((a12==11)&&((!(a15==1)&&((a22==1)&&(((a20==1)&&(((((a18==1)||!(a18==1))&&(input==4))&&!(a5==1))&&(a3==6)))&&!(a27==1))))&&!(a0==1)))&&(a4==1)))){ + a3 = 4; + a5 = 1; + a22 = 0; + a18 = 1; + a6 = 0; + return 21; + } else if((!(a15==1)&&((((((!(a5==1)&&(((a20==1)&&(!(a6==1)&&((input==6)&&(a0==1))))&&(a4==1)))&&(a3==4))&&(a12==8))&&(a27==1))&&(a22==1))&&(a18==1)))){ + a4 = 0; + a12 = 10; + a3 = 5; + return 26; + } else if((!(a27==1)&&(((a5==1)&&((a22==1)&&((a20==1)&&((a15==1)&&((a4==1)&&((a12==10)&&(!(a0==1)&&((a3==5)&&(!(a18==1)&&(input==5))))))))))&&(a6==1)))){ + a12 = 8; + a27 = 1; + a0 = 1; + a3 = 4; + return 26; + } else if(((a12==9)&&(((((a27==1)&&(((a5==1)&&((a0==1)&&((input==3)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7)))||((a3==7)&&(!(a18==1)&&(a22==1)))))))&&(a20==1)))&&!(a6==1))&&!(a4==1))&&!(a15==1)))){ + a12 = 8; + a4 = 1; + a18 = 1; + a15 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if((((a0==1)&&((((a6==1)&&((a4==1)&&((a22==1)&&((((a3==5)&&(!(a18==1)&&(input==5)))&&(a15==1))&&(a12==10)))))&&(a27==1))&&(a20==1)))&&!(a5==1))){ + a5 = 1; + a6 = 0; + a18 = 1; + a15 = 0; + a4 = 0; + a3 = 4; + return -1; + } else if((!(a27==1)&&(((((a15==1)&&((a20==1)&&((((a0==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==3)))&&(a5==1))&&(a3==8))))&&(a12==10))&&(a4==1))&&(a6==1)))){ + a22 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a27 = 1; + return -1; + } else if(((!(a27==1)&&(((a15==1)&&(!(a4==1)&&((a20==1)&&((a12==9)&&((a6==1)&&((input==6)&&(((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))))))))&&(a5==1)))&&(a0==1))){ + a12 = 8; + a4 = 1; + a18 = 1; + a5 = 0; + a22 = 1; + a3 = 6; + return -1; + } else if((!(a15==1)&&(((((((!(a0==1)&&((a3==6)&&(((input==6)&&((a18==1)||!(a18==1)))&&!(a6==1))))&&!(a22==1))&&!(a5==1))&&(a12==11))&&!(a4==1))&&(a27==1))&&(a20==1)))){ + a18 = 0; + a4 = 1; + a3 = 5; + a6 = 1; + a0 = 1; + a12 = 9; + return 24; + } else if(((((((((a22==1)&&((a15==1)&&(!(a4==1)&&(((input==2)&&!(a27==1))&&(a3==8)))))&&(a12==10))&&(a5==1))&&(a20==1))&&!(a18==1))&&(a6==1))&&!(a0==1))){ + if((a22==1)){ + a6 = 0; + a27 = 1; + a18 = 1; + a12 = 8; + a4 = 1; + a0 = 1; + }else{ + a6 = 0; + a27 = 1; + a18 = 1; + a12 = 12; + a0 = 1; + a15 = 0; + a4 = 1; + a3 = 4; + a5 = 0; + } + return 26; + } else if((((a5==1)&&(((a0==1)&&((a12==10)&&(!(a4==1)&&(((a20==1)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==2)))&&(a27==1)))))&&!(a6==1)))&&(a15==1))){ + if((a12==11)){ + a5 = 0; + a18 = 1; + a12 = 8; + a0 = 0; + a22 = 1; + a3 = 7; + }else{ + a0 = 0; + a22 = 1; + a12 = 8; + a3 = 6; + a18 = 0; + } + return 26; + } else if(((((a20==1)&&(!(a27==1)&&((!(a22==1)&&((((a5==1)&&((a3==6)&&((input==3)&&(a6==1))))&&!(a4==1))&&(a18==1)))&&(a12==11))))&&!(a15==1))&&(a0==1))){ + a12 = 12; + a18 = 0; + a27 = 1; + a3 = 8; + a22 = 1; + a4 = 1; + return 21; + } else if(((a12==9)&&(((a3==6)&&(!(a15==1)&&((a4==1)&&(((a20==1)&&(!(a27==1)&&((a5==1)&&((input==3)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))&&!(a6==1)))))&&!(a0==1)))){ + if((a20==1)){ + a0 = 1; + a15 = 1; + a22 = 0; + a6 = 1; + a18 = 1; + a12 = 8; + a5 = 0; + a27 = 1; + }else{ + a22 = 1; + a18 = 1; + a0 = 1; + a3 = 5; + a12 = 8; + a15 = 1; + a27 = 1; + } + return 26; + } else if((((a12==8)&&((((a27==1)&&(((a5==1)&&((a0==1)&&((input==5)&&((((a22==1)&&!(a18==1))&&(a3==6))||(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))))))&&!(a15==1)))&&(a20==1))&&(a6==1)))&&!(a4==1))){ + a5 = 0; + a0 = 0; + a18 = 0; + a3 = 5; + a22 = 0; + a12 = 9; + return 24; + } else if((((a3==4)&&((a22==1)&&(((((a18==1)&&(!(a27==1)&&((a4==1)&&((!(a0==1)&&(input==2))&&(a15==1)))))&&(a12==8))&&(a20==1))&&(a5==1))))&&(a6==1))){ + if((a3==8)){ + a27 = 1; + a0 = 1; + a3 = 6; + a18 = 0; + }else{ + a4 = 0; + a15 = 0; + a12 = 11; + a18 = 0; + a27 = 1; + } + return 26; + } else if((((a5==1)&&((a6==1)&&((((!(a15==1)&&(((a12==9)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5)))&&(a4==1)))&&(a20==1))&&(a3==4))&&(a27==1))))&&(a0==1))){ + a6 = 0; + a12 = 12; + a4 = 0; + a3 = 5; + a15 = 1; + a22 = 0; + a18 = 1; + a0 = 0; + return 26; + } else if((((a22==1)&&(((!(a27==1)&&(((a20==1)&&((a6==1)&&((((a0==1)&&(input==1))&&(a5==1))&&(a3==6))))&&(a12==12)))&&!(a4==1))&&!(a15==1)))&&(a18==1))){ + a3 = 4; + a15 = 1; + a27 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if(((a12==8)&&(((((((((a20==1)&&(!(a0==1)&&(((a18==1)||!(a18==1))&&(input==2))))&&!(a6==1))&&!(a4==1))&&!(a15==1))&&(a5==1))&&(a27==1))&&(a3==5))&&(a22==1)))){ + a0 = 1; + a3 = 4; + a18 = 1; + a6 = 1; + a15 = 1; + a4 = 1; + return -1; + } else if(((a12==10)&&((((((!(a27==1)&&((a4==1)&&((((a5==1)&&(input==6))&&(a3==4))&&!(a22==1))))&&(a18==1))&&!(a0==1))&&(a20==1))&&!(a6==1))&&!(a15==1)))){ + if((a5==1)){ + a4 = 0; + a6 = 1; + a22 = 1; + a0 = 1; + a12 = 8; + a27 = 1; + a15 = 1; + a3 = 6; + }else{ + a18 = 0; + a22 = 1; + a3 = 6; + a0 = 1; + a15 = 1; + a12 = 11; + a6 = 1; + } + return -1; + } else if((!(a0==1)&&((a5==1)&&((((((((!(a15==1)&&((input==2)&&(a3==5)))&&(a6==1))&&(a20==1))&&!(a18==1))&&(a12==8))&&!(a22==1))&&!(a27==1))&&!(a4==1))))){ + a27 = 1; + a3 = 6; + a15 = 1; + a0 = 1; + return 26; + } else if(((a12==8)&&(!(a27==1)&&(((a3==5)&&((a4==1)&&((a5==1)&&((a20==1)&&((((a15==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a0==1))&&!(a6==1))))))&&(a22==1))))){ + if((a22==1)){ + a27 = 1; + a12 = 9; + a0 = 0; + a18 = 1; + a22 = 0; + a6 = 1; + a5 = 0; + }else{ + a4 = 0; + a18 = 1; + a3 = 4; + a0 = 0; + a12 = 11; + a27 = 1; + } + return 21; + } else if((((((((a5==1)&&((a4==1)&&((((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a15==1))&&(a20==1))))&&!(a6==1))&&(a3==8))&&(a12==12))&&(a0==1))&&!(a27==1))){ + a3 = 5; + a18 = 0; + a6 = 1; + a22 = 1; + a12 = 8; + a27 = 1; + a4 = 0; + a15 = 0; + a0 = 0; + return -1; + } else if(((!(a5==1)&&(((a4==1)&&((a20==1)&&(((a0==1)&&(!(a15==1)&&((((a3==6)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1)))))&&(input==1))))&&!(a6==1))))&&(a12==11)))&&(a27==1))){ + a3 = 4; + a18 = 1; + a15 = 1; + a22 = 1; + a12 = 8; + a5 = 1; + a6 = 1; + return -1; + } else if((!(a15==1)&&(((a20==1)&&(!(a27==1)&&(((((((input==6)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a3==7))&&!(a0==1))&&(a6==1))&&(a5==1))&&(a12==8))))&&!(a4==1)))){ + if((a0==1)){ + a4 = 1; + a27 = 1; + a3 = 5; + a22 = 0; + a0 = 1; + a18 = 1; + a15 = 1; + }else{ + a5 = 0; + a22 = 0; + a3 = 5; + a18 = 0; + a12 = 10; + } + return -1; + } else if((!(a4==1)&&(((((a12==10)&&((!(a18==1)&&((a20==1)&&(!(a15==1)&&(((input==2)&&(a27==1))&&(a5==1)))))&&!(a0==1)))&&!(a6==1))&&(a3==7))&&(a22==1)))){ + a5 = 0; + a18 = 1; + a0 = 1; + a22 = 0; + return -1; + } else if(((((!(a0==1)&&(((a15==1)&&((a6==1)&&(((((!(a18==1)&&(a22==1))&&(a3==8))||(((!(a18==1)&&!(a22==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8))))&&(input==3))&&!(a4==1))))&&(a12==9)))&&(a5==1))&&(a27==1))&&(a20==1))){ + a0 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if((((a12==9)&&(((a15==1)&&(((!(a27==1)&&(!(a22==1)&&(((a3==5)&&((input==6)&&((a18==1)||!(a18==1))))&&(a5==1))))&&!(a4==1))&&(a20==1)))&&!(a0==1)))&&(a6==1))){ + if((a4==1)){ + a22 = 1; + a27 = 1; + a18 = 0; + a12 = 8; + a0 = 1; + a3 = 8; + a4 = 1; + }else{ + a0 = 1; + a6 = 0; + a12 = 8; + a18 = 0; + a22 = 1; + } + return -1; + } else if(((((a4==1)&&(((((((((input==2)&&!(a27==1))&&(a12==8))&&(a6==1))&&(a0==1))&&!(a18==1))&&(a15==1))&&(a3==7))&&(a5==1)))&&!(a22==1))&&(a20==1))){ + a12 = 9; + a3 = 8; + a6 = 0; + a5 = 0; + a4 = 0; + a22 = 1; + return 26; + } else if((!(a0==1)&&((a12==8)&&(((((a5==1)&&(!(a4==1)&&((!(a27==1)&&(!(a22==1)&&(((a18==1)||!(a18==1))&&(input==6))))&&(a15==1))))&&(a3==8))&&(a6==1))&&(a20==1))))){ + a15 = 0; + a0 = 1; + a3 = 4; + a4 = 1; + a27 = 1; + a12 = 9; + a22 = 1; + a6 = 0; + a18 = 1; + return -1; + } else if((((!(a15==1)&&(((!(a18==1)&&((a22==1)&&((a12==12)&&((a3==6)&&(!(a4==1)&&((input==2)&&!(a5==1)))))))&&!(a0==1))&&(a27==1)))&&(a20==1))&&(a6==1))){ + if((a3==7)){ + a4 = 1; + a5 = 1; + a3 = 5; + a22 = 0; + a12 = 10; + a0 = 1; + a18 = 1; + }else{ + a4 = 1; + a5 = 1; + a27 = 0; + a12 = 9; + a15 = 1; + a6 = 0; + } + return -1; + } else if(((((((((a12==12)&&((a3==8)&&(((((a18==1)||!(a18==1))&&(input==4))&&(a15==1))&&(a20==1))))&&!(a6==1))&&!(a22==1))&&(a5==1))&&(a0==1))&&(a4==1))&&(a27==1))){ + a12 = 11; + a18 = 1; + a5 = 0; + return -1; + } else if((!(a0==1)&&(!(a5==1)&&((a18==1)&&(((a3==7)&&(((a20==1)&&(!(a4==1)&&(!(a15==1)&&((!(a6==1)&&(input==5))&&(a12==9)))))&&!(a22==1)))&&!(a27==1)))))){ + a22 = 1; + a3 = 5; + a0 = 1; + a5 = 1; + a18 = 0; + return 26; + } else if((!(a15==1)&&((!(a5==1)&&(!(a6==1)&&(((a20==1)&&((!(a0==1)&&((a22==1)&&((a12==11)&&((input==3)&&((a18==1)||!(a18==1))))))&&!(a27==1)))&&!(a4==1))))&&(a3==8)))){ + if((a15==1)){ + a22 = 0; + a6 = 1; + a15 = 1; + a3 = 7; + a5 = 1; + a18 = 1; + a27 = 1; + a12 = 8; + a0 = 1; + }else{ + a27 = 1; + a15 = 1; + a0 = 1; + a18 = 1; + a6 = 1; + a3 = 7; + a12 = 10; + a5 = 1; + } + return -1; + } else if(((a6==1)&&((a3==8)&&((((a27==1)&&((a12==10)&&(((((a5==1)&&((input==6)&&((a18==1)||!(a18==1))))&&!(a4==1))&&(a15==1))&&(a0==1))))&&(a20==1))&&!(a22==1))))){ + a18 = 1; + a12 = 8; + a22 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if(((a18==1)&&(!(a5==1)&&(((a6==1)&&(((a3==4)&&(!(a0==1)&&(((a15==1)&&((a12==9)&&(!(a27==1)&&(input==5))))&&!(a22==1))))&&!(a4==1)))&&(a20==1))))){ + a5 = 1; + a6 = 0; + a18 = 0; + a3 = 6; + a27 = 1; + a4 = 1; + a12 = 8; + a22 = 1; + a0 = 1; + return -1; + } else if(((!(a0==1)&&((a6==1)&&((!(a15==1)&&((a4==1)&&(!(a22==1)&&((((a3==7)&&((a20==1)&&(input==2)))&&(a18==1))&&!(a27==1)))))&&(a5==1))))&&(a12==9))){ + if((a22==1)){ + a12 = 8; + a6 = 0; + a0 = 1; + a22 = 1; + a15 = 1; + a27 = 1; + }else{ + a6 = 0; + a0 = 1; + a3 = 8; + a27 = 1; + a15 = 1; + a18 = 0; + a12 = 8; + } + return 21; + } else if((((a20==1)&&(!(a27==1)&&(!(a5==1)&&(((a6==1)&&((((a12==10)&&((input==3)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))))&&(a0==1))&&(a15==1)))&&(a3==6)))))&&!(a4==1))){ + a3 = 7; + a15 = 0; + a6 = 0; + a12 = 12; + a18 = 0; + a22 = 1; + a4 = 1; + return 26; + } else if((!(a15==1)&&(((a12==10)&&(!(a27==1)&&((a0==1)&&(((((!(a6==1)&&((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1)))))||(((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1))))&&(a6==1)))||((a6==1)&&((a3==4)&&((!(a18==1)&&(a22==1))&&!(a4==1)))))&&(input==6))&&!(a5==1)))))&&(a20==1)))){ + a27 = 1; + a18 = 1; + a12 = 8; + a5 = 1; + a3 = 4; + a15 = 1; + a6 = 1; + a4 = 1; + a22 = 1; + return -1; + } else if((((a0==1)&&((a22==1)&&(((a15==1)&&(!(a4==1)&&((a12==10)&&((a20==1)&&((((input==6)&&((a18==1)||!(a18==1)))&&!(a6==1))&&!(a5==1))))))&&(a3==6))))&&!(a27==1))){ + if((a20==1)){ + a3 = 5; + a12 = 9; + a15 = 0; + a18 = 0; + a27 = 1; + a0 = 0; + a4 = 1; + }else{ + a4 = 1; + a12 = 11; + a18 = 0; + a15 = 0; + a22 = 0; + a3 = 4; + } + return 21; + } else if(((a0==1)&&((a20==1)&&((a12==12)&&((a3==7)&&(!(a27==1)&&((a4==1)&&((!(a5==1)&&(((input==6)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a6==1)))&&(a15==1))))))))){ + a18 = 1; + a22 = 1; + a12 = 10; + a5 = 1; + a4 = 0; + return -1; + } else if((!(a0==1)&&(!(a27==1)&&((a20==1)&&(!(a15==1)&&((((((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==5))&&(a6==1))&&!(a5==1))&&!(a4==1))&&(a12==11))))))){ + if((a12==9)){ + a15 = 1; + a3 = 4; + a22 = 1; + a5 = 1; + a0 = 1; + a18 = 1; + a12 = 8; + a4 = 1; + a27 = 1; + }else{ + a0 = 1; + a22 = 0; + a4 = 1; + a15 = 1; + a5 = 1; + a18 = 0; + a6 = 0; + a12 = 8; + a3 = 8; + a27 = 1; + } + return -1; + } else if(((a20==1)&&((a6==1)&&(((a3==7)&&(((a12==9)&&((((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==6))&&!(a0==1))&&!(a27==1))&&(a15==1)))&&(a4==1)))&&!(a5==1))))){ + a22 = 0; + a4 = 0; + a3 = 4; + a27 = 1; + a12 = 11; + a0 = 1; + a15 = 0; + a18 = 0; + return -1; + } else if((((((!(a15==1)&&((a12==12)&&((a20==1)&&((a27==1)&&(((((a22==1)&&!(a18==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5))))&&(input==5))))))&&!(a6==1))&&!(a4==1))&&(a0==1))&&!(a5==1))){ + if((a20==1)){ + a0 = 0; + a4 = 1; + a22 = 1; + a3 = 7; + a18 = 0; + a12 = 10; + a15 = 1; + }else{ + a12 = 11; + a3 = 8; + a6 = 1; + a22 = 0; + a5 = 1; + a18 = 1; + } + return -1; + } else if(((a20==1)&&(((!(a6==1)&&((((!(a0==1)&&((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==4))&&(a3==8)))&&(a12==8))&&!(a4==1))&&!(a5==1)))&&(a15==1))&&(a27==1)))){ + a3 = 7; + a12 = 11; + a4 = 1; + a18 = 1; + a0 = 1; + a22 = 0; + a6 = 1; + a15 = 0; + return 24; + } else if(((a22==1)&&((a18==1)&&((a15==1)&&((a4==1)&&(!(a5==1)&&(((a20==1)&&(((a12==12)&&(!(a6==1)&&((a3==8)&&(input==4))))&&(a0==1)))&&!(a27==1)))))))){ + a27 = 1; + a15 = 0; + a4 = 0; + a3 = 7; + return -1; + } else if(((!(a4==1)&&(!(a15==1)&&(((a20==1)&&((((((((!(a22==1)&&(a18==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6)))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==5))&&!(a6==1))&&!(a0==1))&&(a12==8)))&&!(a5==1))))&&(a27==1))){ + a5 = 1; + a0 = 1; + a3 = 4; + a15 = 1; + a18 = 1; + a6 = 1; + a22 = 1; + a4 = 1; + return -1; + } else if(((((!(a5==1)&&((a12==12)&&((!(a22==1)&&((a6==1)&&((a15==1)&&((a4==1)&&((input==3)&&!(a27==1))))))&&(a0==1))))&&(a20==1))&&(a3==6))&&!(a18==1))){ + a3 = 7; + a5 = 1; + a27 = 1; + a15 = 0; + return 24; + } else if((((a5==1)&&((a20==1)&&(((a12==10)&&(((a0==1)&&((((a3==7)&&((input==2)&&((a18==1)||!(a18==1))))&&(a22==1))&&(a15==1)))&&!(a27==1)))&&(a6==1))))&&!(a4==1))){ + a15 = 0; + a3 = 8; + a5 = 0; + a12 = 11; + a18 = 1; + a22 = 0; + return 26; + } else if(((a27==1)&&(((!(a15==1)&&((((a5==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==3))&&(a6==1)))&&(a12==12))&&(a20==1)))&&!(a0==1))&&(a4==1)))){ + a3 = 4; + a18 = 1; + a12 = 8; + a15 = 1; + a0 = 1; + a22 = 1; + return -1; + } else if(((((a15==1)&&(((!(a4==1)&&(((a27==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==4))&&(a6==1)))&&(a12==9)))&&(a0==1))&&(a20==1)))&&(a3==4))&&(a5==1))){ + a15 = 0; + a3 = 8; + a12 = 12; + a22 = 0; + a18 = 0; + return 26; + } else if((!(a6==1)&&((a5==1)&&((a0==1)&&(((a18==1)&&(((((a22==1)&&((a12==12)&&((input==5)&&(a20==1))))&&!(a15==1))&&(a3==7))&&!(a4==1)))&&(a27==1)))))){ + a6 = 1; + a12 = 10; + a22 = 0; + a4 = 1; + a3 = 5; + return 21; + } else if((((a3==4)&&((a4==1)&&((a0==1)&&((a20==1)&&((a12==9)&&((!(a27==1)&&(!(a15==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4))))&&(a6==1)))))))&&!(a5==1))){ + a12 = 11; + a27 = 1; + a22 = 0; + a4 = 0; + a6 = 0; + a5 = 1; + a18 = 0; + return 21; + } else if(((a4==1)&&((a20==1)&&(!(a6==1)&&((a15==1)&&((a3==7)&&((a12==10)&&((a5==1)&&((!(a0==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==5)))&&(a27==1)))))))))){ + a22 = 0; + a4 = 0; + a0 = 1; + a18 = 1; + a27 = 0; + a12 = 8; + return -1; + } else if(((a6==1)&&((a12==10)&&(((a3==8)&&((a4==1)&&(((a22==1)&&((a0==1)&&(((a5==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a27==1))))&&(a20==1))))&&!(a15==1))))){ + a12 = 9; + a6 = 0; + a18 = 1; + a4 = 0; + a3 = 7; + a5 = 0; + a22 = 0; + return -1; + } else if((!(a15==1)&&((!(a27==1)&&(!(a6==1)&&(!(a0==1)&&(!(a5==1)&&((((input==5)&&(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8))))&&(a12==10))&&(a20==1))))))&&(a4==1)))){ + a22 = 1; + a27 = 1; + a4 = 0; + a6 = 1; + a12 = 8; + a0 = 1; + a18 = 1; + a15 = 1; + a5 = 1; + a3 = 8; + return -1; + } else if((((a6==1)&&((a27==1)&&(!(a4==1)&&(((((((a22==1)&&((input==1)&&(a12==9)))&&!(a18==1))&&(a20==1))&&(a5==1))&&(a3==7))&&!(a0==1)))))&&!(a15==1))){ + a3 = 8; + a4 = 1; + a6 = 0; + a12 = 12; + a15 = 1; + a18 = 1; + return 21; + } else if(((!(a27==1)&&(!(a4==1)&&((!(a0==1)&&((!(a5==1)&&(((((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1))||(((a6==1)&&(((a18==1)&&!(a22==1))&&(a3==8)))||((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))))&&(input==4)))&&(a20==1)))&&(a12==8))))&&!(a15==1))){ + a0 = 1; + a3 = 5; + a18 = 1; + a4 = 1; + a27 = 1; + a22 = 1; + a12 = 10; + a6 = 1; + return 24; + } else if((((((a0==1)&&(((!(a27==1)&&((a15==1)&&((a4==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&!(a5==1)))))&&(a20==1))&&(a12==8)))&&(a22==1))&&!(a6==1))&&(a3==5))){ + a6 = 1; + a3 = 6; + a27 = 1; + a22 = 0; + a18 = 1; + a5 = 1; + a12 = 12; + return 21; + } else if(((a0==1)&&((a27==1)&&((a5==1)&&(((((((((input==3)&&(a6==1))&&(a18==1))&&(a12==10))&&(a20==1))&&!(a22==1))&&!(a15==1))&&(a4==1))&&(a3==5)))))){ + a12 = 8; + a22 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if((!(a27==1)&&(!(a22==1)&&((a0==1)&&((a5==1)&&((((a3==7)&&(!(a15==1)&&((((a20==1)&&(input==6))&&!(a6==1))&&(a4==1))))&&!(a18==1))&&(a12==8))))))){ + a22 = 1; + a3 = 6; + a18 = 1; + a5 = 0; + return 26; + } else if(((((a20==1)&&(!(a18==1)&&((a3==6)&&((a6==1)&&((a0==1)&&(((a15==1)&&(((a12==12)&&(input==5))&&(a4==1)))&&!(a27==1)))))))&&(a5==1))&&!(a22==1))){ + a6 = 0; + a15 = 0; + a12 = 9; + return -1; + } else if(((a20==1)&&(((((a12==10)&&((a27==1)&&(((a3==4)&&(!(a15==1)&&((input==4)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))))&&!(a4==1))))&&!(a0==1))&&!(a6==1))&&!(a5==1)))){ + a3 = 7; + a12 = 11; + a0 = 1; + a5 = 1; + a22 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if(((a15==1)&&(((a27==1)&&((a22==1)&&((((a20==1)&&((a12==10)&&(!(a5==1)&&(((input==2)&&!(a6==1))&&(a3==6)))))&&!(a4==1))&&(a0==1))))&&(a18==1)))){ + a22 = 0; + a5 = 1; + a15 = 0; + a4 = 1; + a27 = 0; + return 26; + } else if(((a4==1)&&((((a18==1)&&((!(a0==1)&&(((a5==1)&&(!(a6==1)&&((a3==5)&&((a15==1)&&(input==1)))))&&(a27==1)))&&(a12==8)))&&(a22==1))&&(a20==1)))){ + a4 = 0; + a22 = 0; + a3 = 6; + a6 = 1; + a12 = 10; + return -1; + } else if(((((((((a20==1)&&(!(a22==1)&&((a12==11)&&((((a18==1)||!(a18==1))&&(input==5))&&(a27==1)))))&&!(a15==1))&&(a3==4))&&!(a5==1))&&!(a6==1))&&(a0==1))&&!(a4==1))){ + a6 = 1; + a18 = 1; + a22 = 1; + a27 = 0; + a3 = 6; + return 21; + } else if((((a27==1)&&((!(a4==1)&&(((((a12==11)&&((input==4)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5)))))&&!(a0==1))&&(a20==1))&&(a5==1)))&&!(a6==1)))&&!(a15==1))){ + a22 = 1; + a12 = 10; + a3 = 5; + a4 = 1; + a0 = 1; + a18 = 1; + return -1; + } else if((!(a4==1)&&((!(a27==1)&&(((a20==1)&&((a3==8)&&((!(a18==1)&&(!(a15==1)&&(((a22==1)&&(input==4))&&(a5==1))))&&!(a6==1))))&&(a12==10)))&&(a0==1)))){ + a5 = 0; + a27 = 1; + a4 = 1; + a3 = 6; + a6 = 1; + return 21; + } else if((!(a27==1)&&(!(a5==1)&&((((a6==1)&&((((a3==4)&&((a15==1)&&(!(a4==1)&&((input==4)&&((a18==1)||!(a18==1))))))&&(a0==1))&&(a12==10)))&&(a20==1))&&!(a22==1))))){ + a12 = 9; + a6 = 0; + a18 = 1; + a3 = 6; + return 21; + } else if(((((a6==1)&&((((((a27==1)&&(((a20==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a4==1)))&&(a3==4))&&!(a15==1))&&!(a0==1))&&(a22==1)))&&(a12==11))&&!(a5==1))){ + a3 = 7; + a18 = 0; + a4 = 0; + a12 = 10; + a0 = 1; + return -1; + } else if(((((a12==10)&&((((a6==1)&&((a4==1)&&((((a18==1)&&((input==2)&&(a20==1)))&&!(a15==1))&&!(a27==1))))&&!(a0==1))&&(a3==5)))&&(a22==1))&&(a5==1))){ + a27 = 1; + a0 = 1; + a3 = 8; + a15 = 1; + a12 = 8; + a6 = 0; + return -1; + } else if((((a6==1)&&(((((a5==1)&&((a20==1)&&((((input==6)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&!(a15==1))&&!(a27==1))))&&(a0==1))&&(a12==12))&&(a3==4)))&&(a4==1))){ + a18 = 1; + a12 = 9; + a22 = 1; + a6 = 0; + a5 = 0; + a4 = 0; + return -1; + } else if(((((!(a15==1)&&((!(a5==1)&&((a20==1)&&((a12==9)&&(((((!(a22==1)&&(a18==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4)))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==1)))))&&(a0==1)))&&(a6==1))&&(a27==1))&&!(a4==1))){ + a22 = 0; + a18 = 1; + a12 = 12; + a3 = 6; + a5 = 1; + return 21; + } else if(((!(a15==1)&&((a5==1)&&(((a27==1)&&(((a6==1)&&((a20==1)&&(((input==3)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a0==1))))&&(a4==1)))&&(a12==11))))&&(a3==8))){ + a12 = 10; + a22 = 0; + a15 = 1; + a5 = 0; + a18 = 1; + a3 = 5; + a4 = 0; + return -1; + } else if((!(a5==1)&&((a0==1)&&((!(a27==1)&&(((a3==8)&&((a4==1)&&((a12==11)&&(!(a15==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==6))))))&&!(a6==1)))&&(a20==1))))){ + a4 = 0; + a5 = 1; + a27 = 1; + a22 = 1; + a18 = 0; + return 26; + } else if(((((((((a20==1)&&(((a0==1)&&((a3==6)&&(((a18==1)||!(a18==1))&&(input==1))))&&!(a5==1)))&&(a6==1))&&!(a4==1))&&!(a27==1))&&(a12==8))&&!(a22==1))&&!(a15==1))){ + a12 = 12; + a15 = 1; + a3 = 4; + a5 = 1; + a18 = 0; + return 26; + } else if(((a5==1)&&((((a27==1)&&(!(a6==1)&&(!(a4==1)&&(((a12==12)&&((input==2)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))||((a3==7)&&((a22==1)&&!(a18==1))))))&&!(a0==1)))))&&!(a15==1))&&(a20==1)))){ + if((a22==1)){ + a0 = 1; + a3 = 5; + a18 = 0; + a15 = 1; + a22 = 1; + a4 = 1; + a12 = 8; + }else{ + a12 = 8; + a3 = 4; + a18 = 1; + a15 = 1; + a22 = 0; + } + return -1; + } else if(((!(a0==1)&&((!(a5==1)&&((!(a4==1)&&(((((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a3==6))&&(a12==11))&&!(a27==1)))&&!(a15==1)))&&!(a6==1)))&&(a20==1))){ + if((a3==7)){ + a12 = 9; + a3 = 7; + a15 = 1; + a27 = 1; + a4 = 1; + a22 = 1; + a18 = 1; + a6 = 1; + }else{ + a15 = 1; + a0 = 1; + a3 = 8; + a18 = 1; + a5 = 1; + a27 = 1; + a22 = 0; + a12 = 8; + a6 = 1; + } + return -1; + } else if(((((!(a0==1)&&((a6==1)&&(!(a15==1)&&((a3==7)&&((a27==1)&&((!(a18==1)&&((input==4)&&(a5==1)))&&(a20==1)))))))&&(a12==9))&&(a22==1))&&!(a4==1))){ + a4 = 1; + a15 = 1; + a3 = 4; + a0 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if((((((((a5==1)&&((a4==1)&&(((input==1)&&((((a3==7)&&((a18==1)&&!(a22==1)))||((a3==7)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==8))))&&(a27==1))))&&!(a15==1))&&(a12==11))&&!(a6==1))&&(a20==1))&&(a0==1))){ + a12 = 8; + a15 = 1; + a22 = 1; + a18 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if(((a22==1)&&((a3==8)&&(((a20==1)&&(((((a4==1)&&((a15==1)&&(((input==6)&&(a12==9))&&!(a5==1))))&&!(a27==1))&&!(a0==1))&&!(a18==1)))&&!(a6==1))))){ + a0 = 1; + a12 = 8; + a27 = 1; + a3 = 7; + a22 = 0; + a5 = 1; + return -1; + } else if(((!(a18==1)&&(((!(a0==1)&&(!(a15==1)&&(((a20==1)&&((!(a5==1)&&((input==4)&&!(a27==1)))&&!(a22==1)))&&!(a6==1))))&&(a4==1))&&(a12==9)))&&(a3==7))){ + if((a27==1)){ + a3 = 6; + a5 = 1; + a15 = 1; + a0 = 1; + }else{ + a27 = 1; + a5 = 1; + a3 = 6; + a15 = 1; + a0 = 1; + a18 = 1; + a12 = 8; + } + return -1; + } else if(((!(a6==1)&&((a0==1)&&((a12==11)&&((!(a15==1)&&(!(a4==1)&&(!(a27==1)&&((((a3==8)&&((a22==1)&&(a18==1)))||(((a3==7)&&(!(a22==1)&&(a18==1)))||((a3==7)&&(!(a22==1)&&!(a18==1)))))&&(input==5)))))&&(a20==1)))))&&(a5==1))){ + a18 = 1; + a12 = 8; + a22 = 1; + a6 = 1; + a27 = 1; + a3 = 4; + a4 = 1; + a15 = 1; + return -1; + } else if(((((((!(a0==1)&&((((!(a15==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a27==1))&&(a20==1))&&(a4==1)))&&!(a5==1))&&(a12==9))&&(a22==1))&&(a6==1))&&(a3==8))){ + a22 = 0; + a18 = 0; + a15 = 1; + a5 = 1; + a0 = 1; + a12 = 10; + a6 = 0; + a3 = 6; + return 21; + } else if(((a6==1)&&(!(a27==1)&&(!(a0==1)&&((!(a15==1)&&(((a12==10)&&((a22==1)&&((((a3==5)&&(input==5))&&(a18==1))&&(a4==1))))&&(a20==1)))&&(a5==1)))))){ + if((a6==1)){ + a12 = 9; + a15 = 1; + a3 = 4; + }else{ + a6 = 0; + a12 = 12; + a5 = 0; + a3 = 7; + a15 = 1; + a22 = 0; + a27 = 1; + a0 = 1; + a4 = 0; + } + return -1; + } else if((!(a0==1)&&((a6==1)&&((((a5==1)&&(!(a22==1)&&((((a4==1)&&(((a12==10)&&(input==3))&&(a27==1)))&&(a3==4))&&(a20==1))))&&(a18==1))&&!(a15==1))))){ + a22 = 1; + a0 = 1; + a18 = 0; + a3 = 6; + return 21; + } else if((!(a15==1)&&(!(a4==1)&&(!(a27==1)&&((!(a5==1)&&(((a20==1)&&((!(a18==1)&&(((a12==10)&&(input==4))&&(a3==4)))&&!(a22==1)))&&!(a6==1)))&&!(a0==1)))))){ + a4 = 1; + a18 = 1; + a22 = 1; + a0 = 1; + a27 = 1; + a12 = 12; + return -1; + } else if(((a4==1)&&((a20==1)&&((a27==1)&&((a0==1)&&(!(a5==1)&&(((((input==1)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1)))))&&(a6==1))&&(a15==1))&&(a12==10)))))))){ + a3 = 7; + a12 = 12; + a22 = 1; + a6 = 0; + a5 = 1; + a15 = 0; + a18 = 0; + return 26; + } else if((((((a27==1)&&((((a22==1)&&(((!(a5==1)&&((a6==1)&&(input==2)))&&!(a0==1))&&(a3==7)))&&(a4==1))&&(a15==1)))&&(a18==1))&&(a20==1))&&(a12==10))){ + a27 = 0; + a4 = 0; + a15 = 0; + a22 = 0; + a0 = 1; + return 26; + } else if(((((((a3==7)&&(!(a0==1)&&((!(a4==1)&&((a27==1)&&((input==2)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))))&&(a5==1))))&&(a12==11))&&(a20==1))&&!(a15==1))&&!(a6==1))){ + a5 = 0; + a6 = 1; + a27 = 0; + a22 = 1; + a3 = 5; + a0 = 1; + a15 = 1; + a18 = 1; + return 26; + } else if(((((a15==1)&&(((a0==1)&&(!(a5==1)&&((a3==8)&&((!(a22==1)&&((a12==11)&&((input==5)&&(a20==1))))&&(a27==1)))))&&!(a18==1)))&&(a4==1))&&(a6==1))){ + a22 = 1; + a4 = 0; + a27 = 0; + a5 = 1; + a15 = 0; + a3 = 4; + return 24; + } else if((((!(a18==1)&&((a20==1)&&(!(a22==1)&&(((((a12==11)&&((!(a6==1)&&(input==1))&&!(a4==1)))&&(a27==1))&&(a3==8))&&!(a15==1)))))&&!(a5==1))&&(a0==1))){ + a5 = 1; + a12 = 10; + a18 = 1; + a15 = 1; + a6 = 1; + a22 = 1; + a3 = 6; + a0 = 0; + return 21; + } else if(((((((a4==1)&&(((a12==12)&&((a6==1)&&((((input==4)&&!(a5==1))&&(a0==1))&&(a18==1))))&&(a22==1)))&&(a3==5))&&(a20==1))&&(a15==1))&&(a27==1))){ + if((a3==6)){ + a4 = 0; + a22 = 0; + a0 = 0; + a12 = 10; + a3 = 8; + }else{ + a3 = 8; + a0 = 0; + a18 = 0; + a5 = 1; + } + return 21; + } else if((((a12==12)&&(((((a15==1)&&((!(a27==1)&&((a4==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3))))&&(a5==1)))&&(a20==1))&&(a3==8))&&!(a6==1)))&&(a0==1))){ + a3 = 4; + a22 = 1; + a18 = 1; + a6 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if(((a12==8)&&(((!(a27==1)&&((a5==1)&&((input==2)&&((((a3==8)&&(!(a4==1)&&((!(a22==1)&&!(a18==1))&&(a15==1))))&&!(a6==1))||(((a3==4)&&((((a22==1)&&(a18==1))&&!(a15==1))&&(a4==1)))&&(a6==1))))))&&(a0==1))&&(a20==1)))){ + if((a5==1)){ + a0 = 0; + a6 = 1; + a3 = 7; + a15 = 1; + a5 = 0; + a4 = 0; + a27 = 1; + a18 = 0; + a22 = 1; + }else{ + a15 = 1; + a3 = 8; + a4 = 0; + a27 = 1; + a22 = 0; + a5 = 0; + a6 = 1; + a18 = 1; + a12 = 10; + } + return 21; + } else if(((!(a6==1)&&(((((((a0==1)&&(!(a27==1)&&((input==6)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))))&&(a15==1))&&(a20==1))&&(a3==5))&&(a4==1))&&(a5==1)))&&(a12==10))){ + a18 = 1; + a22 = 0; + a6 = 1; + a3 = 6; + a4 = 0; + a5 = 0; + a15 = 0; + return 26; + } else if((!(a0==1)&&(((a27==1)&&((a20==1)&&(((a22==1)&&((a3==7)&&((!(a5==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&!(a6==1)))&&(a4==1))))&&(a12==9))))&&!(a15==1)))){ + a18 = 1; + a0 = 1; + a22 = 0; + a6 = 1; + a3 = 6; + a4 = 0; + return 24; + } else if((((((a20==1)&&((a0==1)&&((a12==11)&&((a4==1)&&((((((!(a22==1)&&(a18==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==2))&&!(a15==1))))))&&!(a6==1))&&(a27==1))&&(a5==1))){ + a15 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + a18 = 1; + a6 = 1; + return -1; + } else if(((a0==1)&&(!(a5==1)&&(((!(a27==1)&&(((a12==8)&&(((input==5)&&(((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1))))||((a3==6)&&((a22==1)&&(a18==1)))))&&(a15==1)))&&(a20==1)))&&!(a6==1))&&(a4==1))))){ + a18 = 0; + a4 = 0; + a5 = 1; + a6 = 1; + a22 = 0; + a12 = 10; + a3 = 4; + a27 = 1; + return 26; + } else if((((a20==1)&&(((!(a27==1)&&(((a12==12)&&((a15==1)&&((a5==1)&&((input==1)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))))&&(a3==5)))&&(a6==1))&&(a4==1)))&&(a0==1))){ + a15 = 0; + a22 = 1; + a5 = 0; + a12 = 10; + a27 = 1; + a18 = 0; + return 21; + } else if((!(a15==1)&&(((a3==4)&&((a20==1)&&((a12==12)&&(((((a4==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==1)))&&!(a6==1))&&!(a0==1))&&(a5==1)))))&&(a27==1)))){ + if((a27==1)){ + a0 = 1; + a22 = 0; + a18 = 1; + a12 = 8; + a15 = 1; + a3 = 8; + }else{ + a22 = 0; + a3 = 6; + a12 = 8; + a4 = 0; + a18 = 1; + a6 = 1; + a15 = 1; + a0 = 1; + } + return -1; + } else if(((a0==1)&&(((((a4==1)&&((a20==1)&&((a6==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==4))&&(a5==1)))))&&(a12==8))&&!(a15==1))&&!(a27==1)))){ + a4 = 0; + a3 = 4; + a22 = 1; + a27 = 1; + a18 = 1; + a12 = 12; + return 21; + } else if(((a20==1)&&(!(a15==1)&&((a12==11)&&(!(a27==1)&&((!(a5==1)&&(((a6==1)&&((input==6)&&(((a3==5)&&((a22==1)&&(a18==1)))||(((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a18==1)&&!(a22==1)))))))&&(a0==1)))&&(a4==1))))))){ + a27 = 1; + a22 = 0; + a6 = 0; + a18 = 0; + a12 = 12; + a3 = 5; + return -1; + } else if(((((a20==1)&&(((!(a18==1)&&((((a22==1)&&((a27==1)&&(!(a15==1)&&(input==6))))&&!(a6==1))&&(a3==4)))&&(a12==8))&&!(a5==1)))&&!(a4==1))&&!(a0==1))){ + a22 = 0; + a27 = 0; + a5 = 1; + a0 = 1; + a6 = 1; + a12 = 10; + return 26; + } else if((((a15==1)&&((((a3==7)&&(!(a4==1)&&((a12==11)&&((a22==1)&&(((a20==1)&&((input==6)&&!(a5==1)))&&!(a0==1))))))&&(a18==1))&&(a27==1)))&&!(a6==1))){ + a12 = 12; + a5 = 1; + return -1; + } else if(((a12==8)&&((((((!(a0==1)&&((a3==7)&&((a20==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==4)))))&&(a27==1))&&!(a5==1))&&(a4==1))&&(a6==1))&&!(a15==1)))){ + if((a27==1)){ + a22 = 1; + a3 = 5; + a12 = 12; + a18 = 0; + a15 = 1; + a5 = 1; + }else{ + a18 = 1; + a12 = 10; + a0 = 1; + a3 = 4; + a22 = 1; + } + return -1; + } else if(((a27==1)&&((a0==1)&&((a12==11)&&(((a6==1)&&((a20==1)&&(((a15==1)&&((input==1)&&(((a3==5)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4))))))&&!(a5==1))))&&(a4==1)))))){ + a3 = 4; + a5 = 1; + a18 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if((!(a4==1)&&((a5==1)&&((a20==1)&&(((a18==1)&&((!(a15==1)&&((((a6==1)&&((a27==1)&&(input==2)))&&(a0==1))&&!(a22==1)))&&(a12==11)))&&(a3==5)))))){ + a22 = 1; + a4 = 1; + a3 = 4; + a12 = 8; + a15 = 1; + return -1; + } else if((!(a22==1)&&((a12==8)&&(!(a15==1)&&((((!(a4==1)&&((a20==1)&&(((!(a18==1)&&(input==3))&&!(a6==1))&&!(a0==1))))&&(a3==5))&&!(a5==1))&&!(a27==1)))))){ + if((a27==1)){ + a4 = 1; + a15 = 1; + a0 = 1; + a6 = 1; + a22 = 1; + a5 = 1; + a3 = 4; + a27 = 1; + }else{ + a27 = 1; + a22 = 1; + a12 = 11; + a0 = 1; + a6 = 1; + a15 = 1; + a5 = 1; + } + return 26; + } else if(((a0==1)&&((a27==1)&&((a12==11)&&(((a3==6)&&(((((a15==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==4)))&&!(a4==1))&&!(a5==1))&&(a20==1)))&&(a6==1)))))){ + a4 = 1; + a22 = 1; + a6 = 0; + a18 = 0; + a15 = 0; + a5 = 1; + return -1; + } else if(((((a20==1)&&((input==2)&&(((((a3==8)&&(!(a4==1)&&((a12==10)&&((!(a5==1)&&(!(a18==1)&&!(a22==1)))&&!(a15==1)))))&&!(a6==1))||((a6==1)&&((a3==4)&&((((((a18==1)&&(a22==1))&&(a5==1))&&(a15==1))&&(a12==11))&&(a4==1)))))||((a6==1)&&((a3==4)&&((((a15==1)&&((a5==1)&&((a22==1)&&!(a18==1))))&&(a12==11))&&(a4==1)))))))&&!(a27==1))&&(a0==1))){ + a4 = 1; + a5 = 1; + a27 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + a15 = 1; + return -1; + } else if(((((a15==1)&&((a12==8)&&((a3==5)&&((a22==1)&&(!(a6==1)&&(((a0==1)&&((a4==1)&&((input==1)&&((a18==1)||!(a18==1)))))&&(a20==1)))))))&&(a5==1))&&!(a27==1))){ + a22 = 0; + a12 = 12; + a18 = 0; + a27 = 1; + a3 = 6; + return 26; + } return calculate_output28(input); + } + + int calculate_output28(int input) { + if((!(a5==1)&&((((((a6==1)&&(!(a27==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==2))&&(a15==1))))&&(a12==8))&&!(a4==1))&&(a0==1))&&(a20==1)))){ + a15 = 0; + a12 = 10; + a22 = 1; + a18 = 1; + a27 = 1; + a3 = 6; + return 21; + } else if(((!(a5==1)&&((a27==1)&&(!(a6==1)&&((a12==8)&&(((a15==1)&&((a4==1)&&(((input==6)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&(a3==7))))&&(a0==1))))))&&(a20==1))){ + a5 = 1; + a18 = 1; + a22 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if(((a20==1)&&(((!(a6==1)&&(((a12==10)&&(!(a27==1)&&(!(a15==1)&&((input==6)&&(((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||((a3==6)&&((a22==1)&&(a18==1))))))))&&!(a5==1)))&&!(a4==1))&&(a0==1)))){ + a3 = 5; + a4 = 1; + a22 = 1; + a12 = 8; + a5 = 1; + a18 = 0; + return -1; + } else if(((a4==1)&&(!(a18==1)&&(!(a6==1)&&(((((((a27==1)&&(((a22==1)&&(input==1))&&(a15==1)))&&(a3==5))&&!(a0==1))&&(a20==1))&&(a12==8))&&(a5==1)))))){ + if((a18==1)){ + a15 = 0; + a3 = 4; + a12 = 10; + }else{ + a5 = 0; + a3 = 4; + a15 = 0; + a27 = 0; + a0 = 1; + } + return 24; + } else if(((a0==1)&&((a12==10)&&((!(a6==1)&&(!(a27==1)&&((!(a22==1)&&(((a20==1)&&(((a3==6)&&(input==2))&&!(a4==1)))&&(a5==1)))&&(a18==1))))&&(a15==1))))){ + a0 = 0; + a27 = 1; + a4 = 1; + a6 = 1; + a22 = 1; + return 21; + } else if((((a15==1)&&(((!(a0==1)&&((a12==8)&&((((a22==1)&&(!(a4==1)&&((a20==1)&&(input==6))))&&(a5==1))&&!(a27==1))))&&(a6==1))&&!(a18==1)))&&(a3==5))){ + if((a20==1)){ + a27 = 1; + a3 = 6; + a6 = 0; + a0 = 1; + a12 = 9; + a5 = 0; + a22 = 0; + a18 = 1; + }else{ + a27 = 1; + a4 = 1; + a6 = 0; + a22 = 0; + a3 = 7; + a0 = 1; + } + return -1; + } else if(((((a22==1)&&((a15==1)&&((a3==6)&&((((a12==8)&&(((a20==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a5==1)))&&(a6==1))&&!(a27==1)))))&&(a0==1))&&!(a4==1))){ + a18 = 0; + a3 = 4; + a15 = 0; + a27 = 1; + a12 = 11; + a6 = 0; + return -1; + } else if(((a20==1)&&((((!(a5==1)&&(!(a4==1)&&((a15==1)&&(((((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==2))&&(a6==1)))))&&(a12==9))&&!(a27==1))&&(a0==1)))){ + a12 = 8; + a4 = 1; + a27 = 1; + a22 = 1; + a3 = 4; + a5 = 1; + a18 = 1; + return -1; + } else if((!(a15==1)&&(((a0==1)&&(((a5==1)&&((!(a4==1)&&((a12==12)&&((((a3==5)&&(!(a18==1)&&(a22==1)))||(((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==5))))&&(input==3))))&&(a20==1)))&&(a27==1)))&&!(a6==1)))){ + if((a12==9)){ + a4 = 1; + a18 = 0; + a12 = 11; + a22 = 0; + a0 = 0; + a15 = 1; + a3 = 8; + }else{ + a3 = 6; + a27 = 0; + a6 = 1; + a18 = 1; + a22 = 1; + } + return 26; + } else if((((((a0==1)&&((a4==1)&&((a20==1)&&((((a27==1)&&((a12==11)&&(((a18==1)||!(a18==1))&&(input==1))))&&(a22==1))&&(a3==5)))))&&(a5==1))&&(a15==1))&&(a6==1))){ + a12 = 8; + a3 = 4; + a18 = 1; + return -1; + } else if((((!(a5==1)&&(((((!(a0==1)&&((!(a6==1)&&((input==3)&&(a3==6)))&&(a27==1)))&&(a15==1))&&!(a18==1))&&(a20==1))&&(a12==10)))&&!(a4==1))&&!(a22==1))){ + a15 = 0; + a22 = 1; + a0 = 1; + a18 = 1; + a6 = 1; + a3 = 4; + return 26; + } else if(((a0==1)&&(((!(a4==1)&&(!(a6==1)&&((((a3==4)&&((a20==1)&&((a12==12)&&(!(a27==1)&&(input==6)))))&&!(a22==1))&&(a18==1))))&&(a15==1))&&!(a5==1)))){ + a6 = 1; + a22 = 1; + a5 = 1; + a3 = 5; + a27 = 1; + a12 = 9; + a15 = 0; + return 26; + } else if(((((((a6==1)&&(!(a4==1)&&((a3==6)&&((a20==1)&&(((a12==11)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a5==1))))))&&!(a27==1))&&(a0==1))&&(a22==1))&&(a15==1))){ + a18 = 0; + a12 = 10; + a27 = 1; + a3 = 8; + a15 = 0; + a6 = 0; + return 21; + } else if(((!(a5==1)&&(!(a15==1)&&((a3==7)&&((a12==9)&&(((a4==1)&&((!(a27==1)&&(!(a0==1)&&((input==6)&&(a6==1))))&&!(a22==1)))&&!(a18==1))))))&&(a20==1))){ + if((a22==1)){ + a15 = 1; + a3 = 8; + a12 = 8; + a6 = 0; + a5 = 1; + a27 = 1; + a22 = 1; + a18 = 1; + a0 = 1; + }else{ + a12 = 8; + a18 = 1; + a5 = 1; + a27 = 1; + a15 = 1; + a0 = 1; + } + return -1; + } else if((((!(a22==1)&&((a27==1)&&(!(a0==1)&&(((((a20==1)&&(!(a6==1)&&((input==2)&&(a3==8))))&&!(a4==1))&&(a5==1))&&!(a18==1)))))&&!(a15==1))&&(a12==11))){ + a22 = 1; + a5 = 0; + a0 = 1; + a3 = 6; + a4 = 1; + a6 = 1; + return 26; + } else if(((a12==8)&&(((a0==1)&&(!(a27==1)&&((((((a3==5)&&((input==2)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&!(a15==1))&&!(a6==1))&&!(a5==1))&&(a20==1))))&&(a4==1)))){ + a3 = 4; + a15 = 1; + a6 = 1; + a27 = 1; + a5 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((((a4==1)&&((((a0==1)&&((((a20==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==4)))&&(a5==1))&&!(a15==1)))&&!(a27==1))&&(a12==8)))&&(a6==1))&&(a3==4))){ + a15 = 1; + a27 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if((((a22==1)&&(((((a6==1)&&((((a20==1)&&(!(a4==1)&&((input==2)&&(a12==9))))&&(a15==1))&&(a0==1)))&&(a3==6))&&!(a27==1))&&(a5==1)))&&!(a18==1))){ + a4 = 1; + a3 = 4; + a18 = 1; + a22 = 0; + return -1; + } else if(((((a12==8)&&(((a20==1)&&((a27==1)&&((a5==1)&&((((((a3==8)&&(!(a22==1)&&(a18==1)))&&(a6==1))||((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1)))))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1)))&&(input==5)))))&&(a4==1)))&&!(a15==1))&&!(a0==1))){ + a18 = 0; + a0 = 1; + a12 = 10; + a22 = 0; + a3 = 6; + a6 = 0; + return 26; + } else if(((((!(a5==1)&&(((a12==12)&&((a0==1)&&((a15==1)&&((input==4)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6)))))))&&(a4==1)))&&!(a27==1))&&(a20==1))&&(a6==1))){ + a12 = 10; + a4 = 0; + a3 = 7; + a18 = 1; + a27 = 1; + a15 = 0; + a6 = 0; + a22 = 1; + return -1; + } else if(((a12==11)&&((a20==1)&&((((((!(a4==1)&&(((((!(a22==1)&&(a18==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6)))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==1)))&&!(a27==1))&&!(a6==1))&&!(a0==1))&&(a15==1))&&(a5==1))))){ + a0 = 1; + a5 = 0; + a12 = 9; + a22 = 1; + a4 = 1; + a18 = 1; + a27 = 1; + a6 = 1; + a3 = 8; + return -1; + } else if((((a3==4)&&(((a4==1)&&(((!(a5==1)&&(((a22==1)&&(((a12==10)&&(input==2))&&!(a6==1)))&&!(a0==1)))&&!(a27==1))&&(a20==1)))&&!(a15==1)))&&!(a18==1))){ + a12 = 8; + a5 = 1; + a15 = 1; + a3 = 8; + a22 = 0; + a0 = 1; + a6 = 1; + a27 = 1; + a4 = 0; + a18 = 1; + return 24; + } else if((((a20==1)&&((a12==11)&&((!(a15==1)&&((a0==1)&&((!(a27==1)&&(((input==3)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&(a3==5)))&&!(a5==1))))&&!(a6==1))))&&!(a4==1))){ + a27 = 1; + a22 = 1; + a4 = 1; + a15 = 1; + a12 = 8; + a6 = 1; + a5 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a27==1)&&((a5==1)&&((a6==1)&&((((a20==1)&&(((a12==11)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==6)))&&(a0==1)))&&!(a4==1))&&(a15==1)))))){ + a22 = 0; + a6 = 0; + a3 = 6; + a15 = 0; + a12 = 10; + a18 = 0; + a5 = 0; + a27 = 0; + a4 = 1; + return 21; + } else if((((a3==8)&&((a12==8)&&(((!(a22==1)&&(((!(a18==1)&&((a0==1)&&(!(a4==1)&&(input==2))))&&!(a27==1))&&(a15==1)))&&!(a5==1))&&(a20==1))))&&(a6==1))){ + if((a3==5)){ + a22 = 1; + a15 = 0; + a5 = 1; + a12 = 12; + a4 = 1; + a3 = 6; + a27 = 1; + a0 = 0; + }else{ + a0 = 0; + a3 = 6; + a22 = 1; + a27 = 1; + a15 = 0; + a12 = 10; + } + return -1; + } else if((((((!(a6==1)&&((a22==1)&&((((a3==7)&&((a0==1)&&((a20==1)&&(input==1))))&&(a12==12))&&!(a4==1))))&&(a18==1))&&!(a5==1))&&(a27==1))&&(a15==1))){ + a22 = 0; + a4 = 1; + a18 = 0; + a6 = 1; + a15 = 0; + a12 = 10; + a5 = 1; + return 26; + } else if((((a0==1)&&((((a5==1)&&(!(a15==1)&&((!(a22==1)&&((((input==6)&&((a18==1)||!(a18==1)))&&(a12==9))&&!(a27==1)))&&!(a4==1))))&&(a6==1))&&(a20==1)))&&(a3==8))){ + a6 = 0; + a4 = 1; + a27 = 1; + a18 = 0; + a12 = 12; + a3 = 4; + a15 = 1; + return 26; + } else if(((a4==1)&&((a0==1)&&(!(a5==1)&&((!(a22==1)&&((a27==1)&&(((a15==1)&&((a6==1)&&((a3==7)&&((input==2)&&(a12==9)))))&&(a20==1))))&&!(a18==1)))))){ + a5 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + return -1; + } else if(((a12==9)&&((((a27==1)&&((((!(a6==1)&&((((!(a18==1)&&!(a22==1))&&(a15==1))&&!(a4==1))&&(a3==8)))||((((!(a15==1)&&((a18==1)&&(a22==1)))&&(a4==1))&&(a3==4))&&(a6==1)))&&(input==1))&&(a0==1)))&&(a5==1))&&(a20==1)))){ + a5 = 0; + a15 = 0; + a12 = 12; + a6 = 0; + a22 = 1; + a3 = 4; + a4 = 1; + a18 = 1; + return 24; + } else if((!(a5==1)&&((a20==1)&&(!(a15==1)&&(((a27==1)&&((a12==11)&&(((input==6)&&((((a6==1)&&((a3==8)&&((a18==1)&&!(a22==1))))||(((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1)))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4)))))&&!(a0==1))))&&(a4==1)))))){ + a18 = 1; + a15 = 1; + a12 = 12; + a6 = 1; + a0 = 1; + a22 = 1; + a3 = 5; + return 26; + } else if((((((a3==7)&&((a0==1)&&(((a12==12)&&((!(a27==1)&&((input==4)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))&&!(a6==1)))&&(a15==1))))&&(a20==1))&&(a5==1))&&!(a4==1))){ + if((a12==8)){ + a5 = 0; + a22 = 0; + a6 = 1; + a3 = 6; + a18 = 1; + }else{ + a27 = 1; + a12 = 9; + a0 = 0; + a3 = 8; + a22 = 0; + a18 = 0; + a4 = 1; + } + return -1; + } else if(((((a3==7)&&(((((a5==1)&&(((a20==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==6)))&&!(a6==1)))&&!(a4==1))&&(a27==1))&&!(a15==1)))&&(a0==1))&&(a12==8))){ + a3 = 6; + a18 = 0; + a4 = 1; + a15 = 1; + a12 = 9; + a22 = 0; + a5 = 0; + return 21; + } else if((((a15==1)&&((((!(a18==1)&&((a12==8)&&(!(a4==1)&&((a5==1)&&((a6==1)&&((a20==1)&&(input==2)))))))&&(a22==1))&&(a3==8))&&!(a27==1)))&&(a0==1))){ + a27 = 1; + a5 = 0; + a18 = 1; + a12 = 11; + return 26; + } else if((!(a5==1)&&(!(a27==1)&&(!(a4==1)&&(!(a0==1)&&((((a3==5)&&(((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==1))&&!(a15==1))&&(a20==1)))&&!(a6==1))&&(a12==10))))))){ + if((a20==1)){ + a4 = 1; + a12 = 8; + a15 = 1; + a0 = 1; + a6 = 1; + a5 = 1; + a18 = 0; + a27 = 1; + a3 = 6; + a22 = 0; + }else{ + a18 = 1; + a12 = 8; + a6 = 1; + a22 = 1; + a4 = 1; + a0 = 1; + a3 = 8; + a15 = 1; + a5 = 1; + a27 = 1; + } + return 26; + } else if(((a0==1)&&(((((a12==12)&&((a3==4)&&(((((input==6)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&(a27==1))&&(a4==1))&&!(a6==1))))&&(a20==1))&&(a15==1))&&(a5==1)))){ + a4 = 0; + a22 = 1; + a12 = 11; + a5 = 0; + a18 = 0; + a15 = 0; + a6 = 1; + return -1; + } else if((((((((!(a4==1)&&(!(a0==1)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==1))))&&(a27==1))&&(a5==1))&&(a15==1))&&(a6==1))&&(a12==10))&&(a20==1))){ + a22 = 1; + a4 = 1; + a18 = 0; + a0 = 1; + a5 = 0; + a3 = 5; + return -1; + } else if(((((a22==1)&&((a12==8)&&(!(a6==1)&&(!(a15==1)&&((((a4==1)&&(!(a5==1)&&((input==3)&&((a18==1)||!(a18==1)))))&&(a20==1))&&(a27==1))))))&&(a3==6))&&(a0==1))){ + a6 = 1; + a5 = 1; + a4 = 0; + a3 = 5; + a15 = 1; + a12 = 11; + a18 = 0; + return 26; + } else if(((a3==5)&&((!(a5==1)&&((a15==1)&&((!(a4==1)&&((a0==1)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==5))&&(a20==1))&&!(a6==1))))&&!(a27==1))))&&(a12==10)))){ + a4 = 1; + a6 = 1; + a12 = 8; + a22 = 1; + a27 = 1; + a3 = 4; + a18 = 1; + a5 = 1; + return -1; + } else if(((((a27==1)&&((a15==1)&&(!(a6==1)&&((a12==9)&&(((((input==4)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a3==8))&&(a4==1))&&!(a0==1))))))&&(a20==1))&&!(a5==1))){ + a0 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + a5 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if((!(a15==1)&&(!(a4==1)&&(((!(a5==1)&&(((a12==10)&&(((a27==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==5)))&&(a3==7)))&&!(a0==1)))&&!(a6==1))&&(a20==1))))){ + a12 = 11; + a0 = 1; + a18 = 0; + a22 = 1; + a27 = 0; + a5 = 1; + a3 = 4; + a4 = 1; + return 21; + } else if((((((((a12==8)&&(!(a4==1)&&((a3==7)&&((((input==2)&&!(a5==1))&&!(a22==1))&&!(a18==1)))))&&!(a6==1))&&(a20==1))&&!(a27==1))&&!(a15==1))&&(a0==1))){ + a6 = 1; + a27 = 1; + a15 = 1; + a3 = 4; + a12 = 10; + return 26; + } else if(((a5==1)&&((a6==1)&&(((((a12==12)&&((a20==1)&&(!(a0==1)&&((input==3)&&((((!(a22==1)&&(a18==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6)))||(((a22==1)&&(a18==1))&&(a3==7)))))))&&!(a15==1))&&!(a4==1))&&(a27==1))))){ + if((a6==1)){ + a18 = 0; + a3 = 6; + a0 = 1; + a15 = 1; + a4 = 1; + a12 = 8; + a22 = 0; + }else{ + a12 = 8; + a18 = 0; + a3 = 8; + a6 = 0; + a22 = 1; + } + return -1; + } else if((((a6==1)&&((a12==9)&&(((a0==1)&&(((a20==1)&&((a15==1)&&((a3==7)&&(!(a5==1)&&((a4==1)&&(input==2))))))&&(a27==1)))&&!(a18==1))))&&(a22==1))){ + a6 = 0; + a3 = 6; + a12 = 10; + return 26; + } else if(((a12==11)&&(!(a27==1)&&(((((a0==1)&&(!(a5==1)&&((((((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==6))&&!(a4==1))))&&!(a6==1))&&!(a15==1))&&(a20==1))))){ + a12 = 10; + a5 = 1; + a3 = 8; + a27 = 1; + a4 = 1; + a22 = 0; + a18 = 0; + return -1; + } else if(((!(a0==1)&&((a15==1)&&((a22==1)&&((a27==1)&&(((((!(a4==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a6==1))&&(a20==1))&&(a3==6))&&(a12==11))))))&&!(a5==1))){ + a3 = 4; + a12 = 8; + a4 = 1; + a0 = 1; + a18 = 1; + a5 = 1; + return -1; + } else if((!(a15==1)&&((((a5==1)&&((!(a4==1)&&((((a3==6)&&((a20==1)&&(((a18==1)||!(a18==1))&&(input==4))))&&(a27==1))&&(a0==1)))&&!(a6==1)))&&(a12==9))&&(a22==1)))){ + a22 = 0; + a27 = 0; + a3 = 7; + a6 = 1; + a18 = 1; + a15 = 1; + a12 = 8; + return 21; + } else if(((((((((a12==11)&&(((a0==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==3)))&&!(a6==1)))&&(a3==8))&&(a20==1))&&(a4==1))&&(a27==1))&&(a15==1))&&!(a5==1))){ + a15 = 0; + a4 = 0; + a18 = 0; + a3 = 5; + a22 = 0; + a27 = 0; + a5 = 1; + return 26; + } else if(((a12==12)&&((a5==1)&&((a27==1)&&((!(a6==1)&&(((!(a15==1)&&(!(a4==1)&&(((input==5)&&(a0==1))&&(a18==1))))&&(a22==1))&&(a20==1)))&&(a3==4)))))){ + a12 = 8; + a6 = 1; + a15 = 1; + a4 = 1; + return -1; + } else if(((a3==5)&&((a5==1)&&((a12==10)&&(((((a27==1)&&((!(a18==1)&&(!(a15==1)&&((a0==1)&&(input==2))))&&!(a6==1)))&&(a20==1))&&(a22==1))&&(a4==1)))))){ + a3 = 8; + a12 = 9; + a22 = 0; + a27 = 0; + a5 = 0; + return 21; + } else if(((!(a22==1)&&(((a20==1)&&(((((!(a6==1)&&(((input==3)&&(a12==11))&&(a3==7)))&&!(a5==1))&&(a18==1))&&!(a15==1))&&!(a0==1)))&&!(a4==1)))&&!(a27==1))){ + a12 = 9; + a3 = 8; + a5 = 1; + a4 = 1; + a0 = 1; + return 21; + } else if(((a12==9)&&((a20==1)&&((((a3==8)&&((a0==1)&&(((a5==1)&&(((input==5)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&!(a4==1)))&&!(a6==1))))&&(a27==1))&&(a15==1))))){ + a18 = 0; + a5 = 0; + a22 = 1; + a15 = 0; + return 26; + } else if(((a3==4)&&(((a20==1)&&(((a12==11)&&((!(a15==1)&&(!(a5==1)&&((((input==2)&&!(a0==1))&&(a18==1))&&!(a4==1))))&&(a22==1)))&&!(a6==1)))&&!(a27==1)))){ + if((a12==10)){ + a15 = 1; + a12 = 8; + a5 = 1; + a18 = 0; + a0 = 1; + a22 = 0; + a6 = 1; + a3 = 8; + a27 = 1; + }else{ + a3 = 8; + a0 = 1; + a15 = 1; + a4 = 1; + a27 = 1; + a12 = 10; + a22 = 0; + } + return -1; + } else if(((a18==1)&&((a4==1)&&((((((a20==1)&&(!(a27==1)&&((a12==10)&&((a22==1)&&(!(a0==1)&&(input==3))))))&&!(a15==1))&&(a3==8))&&(a6==1))&&!(a5==1))))){ + if((a18==1)){ + a15 = 1; + a6 = 0; + a5 = 1; + a0 = 1; + a22 = 0; + a18 = 0; + a27 = 1; + a12 = 8; + }else{ + a12 = 8; + a4 = 0; + a5 = 1; + a0 = 1; + a27 = 1; + a22 = 0; + } + return -1; + } else if((!(a15==1)&&((!(a27==1)&&(!(a6==1)&&(((a0==1)&&((a20==1)&&((a5==1)&&((input==3)&&((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==5)))||(((a22==1)&&!(a18==1))&&(a3==5)))))))&&!(a4==1))))&&(a12==10)))){ + a22 = 0; + a3 = 4; + a27 = 1; + a18 = 0; + return 26; + } else if(((a4==1)&&((!(a5==1)&&((a12==11)&&((((a27==1)&&(((input==5)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7))))&&!(a6==1)))&&!(a15==1))&&!(a0==1))))&&(a20==1)))){ + a22 = 1; + a12 = 8; + a3 = 4; + a6 = 1; + a18 = 1; + a5 = 1; + a15 = 1; + a0 = 1; + return -1; + } else if((((a22==1)&&(!(a6==1)&&(!(a15==1)&&(((a0==1)&&(!(a27==1)&&(((a3==7)&&((a4==1)&&((a12==12)&&(input==3))))&&(a20==1))))&&!(a5==1)))))&&!(a18==1))){ + a18 = 1; + a12 = 8; + a27 = 1; + a3 = 5; + return -1; + } else if(((((a3==4)&&(!(a4==1)&&((a5==1)&&((a6==1)&&((a12==9)&&((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==5))&&(a0==1))&&(a27==1)))))))&&(a15==1))&&(a20==1))){ + a3 = 6; + a15 = 0; + a22 = 0; + a18 = 0; + a12 = 12; + return 21; + } else if(((a12==9)&&((a20==1)&&(((((a6==1)&&(!(a27==1)&&((!(a4==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==3)))&&!(a0==1))))&&!(a5==1))&&(a3==7))&&!(a15==1))))){ + a18 = 0; + a22 = 1; + a3 = 5; + a12 = 10; + a0 = 1; + return -1; + } else if(((a22==1)&&((a4==1)&&((a12==10)&&(((!(a0==1)&&(((!(a5==1)&&(!(a6==1)&&(((a18==1)||!(a18==1))&&(input==5))))&&!(a27==1))&&(a3==7)))&&(a20==1))&&(a15==1)))))){ + a12 = 9; + a15 = 0; + a22 = 0; + a18 = 0; + a27 = 1; + a0 = 1; + a4 = 0; + a3 = 5; + return 21; + } else if((!(a27==1)&&((a4==1)&&((!(a22==1)&&((a0==1)&&(((a3==4)&&((!(a18==1)&&(((a20==1)&&(input==2))&&!(a15==1)))&&(a12==9)))&&!(a6==1))))&&!(a5==1))))){ + a18 = 1; + a27 = 1; + a12 = 8; + a6 = 1; + a5 = 1; + a15 = 1; + a22 = 1; + return -1; + } else if(((a0==1)&&((a3==4)&&(!(a4==1)&&((!(a15==1)&&((a20==1)&&((!(a27==1)&&((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==6))&&(a6==1)))&&(a12==8))))&&!(a5==1)))))){ + a6 = 0; + a27 = 1; + a22 = 1; + a18 = 0; + a12 = 12; + return -1; + } else if(((a4==1)&&(((((a20==1)&&((a6==1)&&((a12==11)&&((a5==1)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==6))))))&&!(a27==1))&&!(a0==1))&&!(a15==1)))){ + a3 = 5; + a15 = 1; + a0 = 1; + a18 = 0; + a4 = 0; + a27 = 1; + a12 = 8; + a22 = 1; + return 24; + } else if(((((a4==1)&&((a6==1)&&(((((a5==1)&&((!(a0==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a3==4)))&&(a20==1))&&!(a22==1))&&!(a27==1))))&&(a12==9))&&!(a15==1))){ + a3 = 7; + a22 = 1; + a5 = 0; + a18 = 1; + a27 = 1; + a4 = 0; + return -1; + } else if(((a20==1)&&(!(a22==1)&&(!(a6==1)&&((a0==1)&&(((a3==8)&&(((a4==1)&&(((a27==1)&&((a12==9)&&(input==4)))&&(a5==1)))&&!(a15==1)))&&(a18==1))))))){ + a18 = 0; + a27 = 0; + a15 = 1; + a12 = 8; + a6 = 1; + a22 = 1; + return 21; + } else if(((a22==1)&&((a0==1)&&(((((((a12==8)&&((((input==3)&&((a18==1)||!(a18==1)))&&!(a27==1))&&(a20==1)))&&(a3==6))&&(a15==1))&&(a6==1))&&!(a4==1))&&(a5==1))))){ + a3 = 4; + a27 = 1; + a18 = 0; + a12 = 12; + a15 = 0; + return 26; + } else if((!(a15==1)&&(((a18==1)&&((!(a22==1)&&(((a3==6)&&(((a4==1)&&((a12==8)&&((a0==1)&&(input==1))))&&!(a27==1)))&&(a5==1)))&&(a20==1)))&&!(a6==1)))){ + a3 = 8; + a6 = 1; + a5 = 0; + a27 = 1; + a22 = 1; + a12 = 11; + return 21; + } else if(((!(a6==1)&&((((a20==1)&&((a15==1)&&(((a5==1)&&((input==3)&&((((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))||((a3==7)&&((a18==1)&&(a22==1))))))&&!(a27==1))))&&(a12==10))&&!(a4==1)))&&!(a0==1))){ + a22 = 0; + a12 = 8; + a4 = 1; + a0 = 1; + a27 = 1; + a3 = 5; + a18 = 1; + return -1; + } else if(((a15==1)&&(((((a27==1)&&((((a5==1)&&(!(a0==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a22==1))))&&(a12==12))&&(a4==1)))&&(a3==5))&&(a20==1))&&(a6==1)))){ + a0 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + return -1; + } else if(((a12==11)&&((((a0==1)&&(((!(a27==1)&&(((input==2)&&(((a3==5)&&((a22==1)&&!(a18==1)))||(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))))&&!(a6==1)))&&(a4==1))&&(a20==1)))&&(a5==1))&&!(a15==1)))){ + a22 = 0; + a18 = 1; + a3 = 8; + a4 = 0; + a27 = 1; + a15 = 1; + a12 = 10; + return 26; + } else if(((!(a15==1)&&(((a5==1)&&((!(a6==1)&&(!(a4==1)&&((a20==1)&&(((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1))))||((a3==8)&&(!(a18==1)&&(a22==1))))&&(input==1)))))&&(a27==1)))&&(a0==1)))&&(a12==9))){ + a18 = 1; + a12 = 8; + a6 = 1; + a3 = 4; + a15 = 1; + a22 = 1; + a4 = 1; + return -1; + } else if(((a15==1)&&((((!(a27==1)&&((!(a4==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==3))&&(a12==12))&&(a0==1)))&&(a20==1)))&&(a5==1))&&!(a6==1))&&(a3==8)))){ + if((a0==1)){ + a27 = 1; + a4 = 1; + a12 = 8; + a22 = 0; + a18 = 1; + a0 = 0; + }else{ + a12 = 11; + a22 = 1; + a3 = 4; + a27 = 1; + a18 = 0; + a4 = 1; + a15 = 0; + } + return 21; + } else if(((a6==1)&&(((a20==1)&&(((!(a4==1)&&((a15==1)&&(!(a27==1)&&((a12==11)&&((input==6)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))))))&&!(a5==1))&&(a0==1)))&&(a3==8)))){ + a22 = 1; + a3 = 4; + a0 = 0; + a6 = 0; + a27 = 1; + a12 = 9; + a18 = 1; + a15 = 0; + return -1; + } else if(((((a5==1)&&((a27==1)&&(((a6==1)&&(((a3==8)&&(!(a18==1)&&(((a4==1)&&(input==5))&&(a20==1))))&&(a12==10)))&&(a0==1))))&&(a22==1))&&(a15==1))){ + a12 = 9; + a22 = 0; + a5 = 0; + a3 = 5; + a27 = 0; + return 24; + } else if(((a6==1)&&((a27==1)&&(((a0==1)&&(((((a20==1)&&((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==4))&&(a15==1)))&&(a4==1))&&(a12==8))&&!(a5==1)))&&(a3==7))))){ + if((a15==1)){ + a12 = 11; + a3 = 4; + a22 = 0; + a5 = 1; + a6 = 0; + a0 = 0; + a18 = 0; + a15 = 0; + }else{ + a3 = 5; + a5 = 1; + a22 = 0; + a6 = 0; + a0 = 0; + a12 = 9; + a18 = 0; + } + return 26; + } else if(((a4==1)&&((!(a18==1)&&(((((((a3==4)&&((a15==1)&&((input==4)&&(a0==1))))&&(a27==1))&&(a22==1))&&(a20==1))&&!(a6==1))&&(a5==1)))&&(a12==9)))){ + a6 = 1; + a3 = 5; + a4 = 0; + a0 = 0; + a5 = 0; + a15 = 0; + return 26; + } else if((((((((a0==1)&&(!(a15==1)&&(((((a20==1)&&(input==6))&&(a5==1))&&(a6==1))&&(a3==7))))&&(a18==1))&&(a12==11))&&!(a22==1))&&!(a4==1))&&!(a27==1))){ + a3 = 4; + a27 = 1; + a15 = 1; + a4 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if((((a15==1)&&((((a0==1)&&(!(a4==1)&&((a3==8)&&((a27==1)&&(((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==3))&&!(a5==1))))))&&(a20==1))&&(a12==8)))&&(a6==1))){ + a18 = 1; + a22 = 0; + a5 = 1; + a6 = 0; + a0 = 0; + a3 = 7; + a4 = 1; + a15 = 0; + return 21; + } else if(((a6==1)&&(!(a15==1)&&(((!(a4==1)&&((a12==8)&&(!(a22==1)&&(((((input==1)&&((a18==1)||!(a18==1)))&&(a0==1))&&(a27==1))&&(a3==7)))))&&(a20==1))&&(a5==1))))){ + a3 = 5; + a22 = 1; + a6 = 0; + a12 = 9; + a4 = 1; + a18 = 1; + return 21; + } else if(((a15==1)&&((((((a3==5)&&(!(a4==1)&&(((a6==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==4)))&&(a0==1))))&&(a20==1))&&(a27==1))&&(a12==11))&&(a5==1)))){ + a3 = 7; + a22 = 1; + a5 = 0; + a6 = 0; + a12 = 10; + a18 = 0; + a4 = 1; + return -1; + } else if(((a6==1)&&((((((a3==4)&&((!(a4==1)&&(((input==1)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a5==1)))&&(a12==11)))&&(a15==1))&&(a27==1))&&!(a0==1))&&(a20==1)))){ + a22 = 1; + a12 = 10; + a15 = 0; + a18 = 1; + a6 = 0; + a5 = 0; + a4 = 1; + a3 = 8; + a0 = 1; + return 26; + } else if((((((((!(a27==1)&&(((input==3)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6))))&&!(a5==1)))&&(a15==1))&&!(a0==1))&&(a12==9))&&!(a4==1))&&(a20==1))&&(a6==1))){ + if((a22==1)){ + a4 = 1; + a22 = 0; + a5 = 1; + a18 = 1; + a6 = 0; + a0 = 1; + a12 = 8; + a27 = 1; + a3 = 4; + }else{ + a22 = 0; + a18 = 1; + a3 = 4; + a12 = 8; + a6 = 0; + } + return -1; + } else if(((a20==1)&&(((a4==1)&&(((((a0==1)&&(((((!(a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1)))))&&(input==3))&&!(a6==1)))&&!(a27==1))&&(a15==1))&&(a12==9)))&&!(a5==1)))){ + a6 = 1; + a18 = 0; + a15 = 0; + a3 = 6; + a5 = 1; + a22 = 1; + a12 = 11; + a4 = 0; + return 24; + } else if(((a27==1)&&((a12==12)&&(((((!(a5==1)&&((a15==1)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==1))))&&(a4==1))&&!(a6==1))&&(a0==1))&&(a20==1))))){ + if((a4==1)){ + a3 = 4; + a22 = 1; + a18 = 0; + a4 = 0; + a12 = 10; + a0 = 0; + a6 = 1; + }else{ + a22 = 0; + a6 = 1; + a15 = 0; + a12 = 10; + a3 = 4; + a18 = 0; + } + return 26; + } else if((!(a4==1)&&((a5==1)&&((a3==4)&&((((((a20==1)&&(((a0==1)&&((a27==1)&&(input==3)))&&(a12==12)))&&!(a15==1))&&!(a6==1))&&!(a18==1))&&(a22==1)))))){ + a3 = 6; + a0 = 0; + a15 = 1; + return -1; + } else if(((a0==1)&&(((a18==1)&&((a20==1)&&((a3==6)&&(((a27==1)&&(((a5==1)&&(!(a4==1)&&((input==6)&&!(a6==1))))&&(a15==1)))&&(a12==9)))))&&(a22==1)))){ + a6 = 1; + a4 = 1; + a22 = 0; + a3 = 5; + a15 = 0; + a12 = 12; + return 21; + } else if(((a3==4)&&(!(a18==1)&&((a6==1)&&((!(a4==1)&&((a27==1)&&(((a12==8)&&(((a5==1)&&(!(a0==1)&&(input==4)))&&!(a15==1)))&&!(a22==1))))&&(a20==1)))))){ + a18 = 1; + a12 = 10; + a4 = 1; + a15 = 1; + a3 = 5; + return -1; + } else if((((a20==1)&&(!(a0==1)&&((a15==1)&&(((((!(a6==1)&&(((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8)))||((a6==1)&&((!(a4==1)&&((a18==1)&&(a22==1)))&&(a3==4))))&&(input==6))&&(a5==1))&&(a12==10)))))&&(a27==1))){ + a22 = 1; + a3 = 6; + a12 = 8; + a4 = 0; + a6 = 0; + a0 = 1; + a18 = 1; + return 21; + } else if(((a3==5)&&((((!(a5==1)&&((!(a0==1)&&((a20==1)&&((a22==1)&&((a18==1)&&((input==3)&&(a4==1))))))&&!(a6==1)))&&(a12==8))&&(a15==1))&&(a27==1)))){ + a12 = 9; + a4 = 0; + a6 = 1; + a3 = 4; + return 24; + } else if((((((a5==1)&&((((a3==7)&&(((a15==1)&&((((a18==1)||!(a18==1))&&(input==6))&&!(a4==1)))&&(a20==1)))&&!(a6==1))&&(a12==12)))&&(a27==1))&&!(a0==1))&&(a22==1))){ + a18 = 1; + a6 = 1; + a0 = 1; + a12 = 8; + a4 = 1; + a3 = 4; + return -1; + } else if(((a12==11)&&(!(a18==1)&&((((!(a27==1)&&(((((a6==1)&&((input==4)&&!(a4==1)))&&(a3==4))&&!(a22==1))&&(a20==1)))&&(a0==1))&&!(a5==1))&&(a15==1))))){ + a15 = 0; + a27 = 1; + a4 = 1; + a6 = 0; + a5 = 1; + return 24; + } else if(((a4==1)&&(!(a5==1)&&(((((((a6==1)&&((a3==6)&&((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&(a12==8))&&(a15==1))&&!(a0==1))&&!(a27==1))&&(a20==1))))){ + if((a18==1)){ + a5 = 1; + a22 = 1; + a18 = 0; + a6 = 0; + a3 = 4; + a0 = 1; + a27 = 1; + }else{ + a6 = 0; + a18 = 0; + a4 = 0; + a12 = 12; + a22 = 1; + a27 = 1; + a3 = 5; + } + return -1; + } else if(((a15==1)&&((!(a6==1)&&((a27==1)&&((a12==11)&&((((!(a4==1)&&(!(a5==1)&&((input==1)&&!(a18==1))))&&!(a22==1))&&(a20==1))&&!(a0==1)))))&&(a3==6)))){ + a4 = 1; + a6 = 1; + a22 = 1; + a15 = 0; + a12 = 10; + a3 = 5; + a0 = 1; + return 21; + } else if(((a27==1)&&((((((a20==1)&&((a5==1)&&((((input==5)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&!(a0==1))&&!(a4==1))))&&(a3==4))&&(a6==1))&&(a12==11))&&(a15==1)))){ + a18 = 1; + a4 = 1; + a0 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if(((a12==10)&&(!(a15==1)&&((a3==5)&&((!(a27==1)&&((a20==1)&&((a4==1)&&((!(a5==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a6==1)))&&!(a0==1)))))&&!(a22==1)))))){ + a12 = 12; + a27 = 1; + a5 = 1; + a0 = 1; + a18 = 0; + a6 = 0; + return 24; + } else if((((((!(a15==1)&&(((a27==1)&&((a0==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==6)))&&(input==3))))&&(a5==1)))&&(a4==1))&&(a12==9))&&(a20==1))&&!(a6==1))){ + a6 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + a15 = 1; + return -1; + } else if((!(a15==1)&&(!(a18==1)&&(!(a22==1)&&(((((((a6==1)&&(((a27==1)&&(input==4))&&(a5==1)))&&!(a4==1))&&(a0==1))&&(a3==7))&&(a12==11))&&(a20==1)))))){ + a15 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((a4==1)&&((a3==7)&&((a20==1)&&((!(a5==1)&&((!(a0==1)&&(((a27==1)&&((input==2)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&(a6==1)))&&(a12==9)))&&(a15==1)))))){ + a5 = 1; + a22 = 1; + a12 = 8; + a0 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((!(a6==1)&&(((((!(a0==1)&&((((input==1)&&(((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1))))||((a3==5)&&((a18==1)&&(a22==1)))))&&(a20==1))&&(a12==8)))&&(a5==1))&&!(a4==1))&&!(a27==1))&&(a15==1)))){ + a3 = 8; + a12 = 11; + a22 = 1; + a15 = 0; + a27 = 1; + a18 = 0; + return -1; + } else if(((((a0==1)&&((((!(a27==1)&&(!(a18==1)&&(!(a22==1)&&(((input==5)&&(a12==11))&&(a5==1)))))&&(a20==1))&&(a4==1))&&(a6==1)))&&!(a15==1))&&(a3==6))){ + a18 = 1; + a27 = 1; + a15 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + return -1; + } else if((((a4==1)&&(((a20==1)&&(((((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==5))&&(a27==1))&&(a3==6))&&!(a15==1))&&!(a0==1))&&(a12==10)))&&(a5==1)))&&!(a6==1))){ + a12 = 11; + a5 = 0; + a22 = 0; + a18 = 1; + a0 = 1; + return 21; + } else if(((a3==6)&&((((!(a15==1)&&((((a6==1)&&(((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a12==9)))&&!(a4==1))&&(a20==1)))&&(a0==1))&&!(a27==1))&&!(a5==1)))){ + a6 = 0; + a27 = 1; + a15 = 1; + a22 = 0; + a18 = 0; + a4 = 1; + a12 = 10; + return 21; + } else if(((!(a0==1)&&((!(a27==1)&&((a20==1)&&(!(a4==1)&&((((input==3)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))||((a3==8)&&(!(a18==1)&&(a22==1)))))&&!(a6==1))&&(a5==1)))))&&(a15==1)))&&(a12==10))){ + a3 = 5; + a0 = 1; + a5 = 0; + a12 = 11; + a22 = 0; + a27 = 1; + a18 = 1; + return 26; + } else if((((((a20==1)&&(((((a27==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))||((!(a18==1)&&(a22==1))&&(a3==7)))&&(input==6)))&&(a0==1))&&(a15==1))&&(a5==1)))&&(a6==1))&&(a12==10))&&!(a4==1))){ + a22 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + a5 = 0; + return 24; + } else if((!(a18==1)&&((a22==1)&&((!(a5==1)&&((a12==8)&&((a20==1)&&((a27==1)&&((a6==1)&&((((input==3)&&(a3==4))&&(a4==1))&&!(a15==1)))))))&&!(a0==1))))){ + a0 = 1; + a5 = 1; + a27 = 0; + a3 = 5; + a6 = 0; + a22 = 0; + a4 = 0; + a18 = 1; + a12 = 11; + return -1; + } else if(((a22==1)&&(((a20==1)&&((!(a15==1)&&((!(a0==1)&&((!(a18==1)&&((a12==11)&&((a4==1)&&(input==2))))&&(a27==1)))&&(a5==1)))&&(a3==4)))&&(a6==1)))){ + a15 = 1; + a18 = 1; + a12 = 8; + a0 = 1; + return -1; + } else if(((a4==1)&&(((a27==1)&&((((!(a5==1)&&(((((((a18==1)&&!(a22==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5)))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==2))&&(a15==1)))&&(a6==1))&&!(a0==1))&&(a20==1)))&&(a12==8)))){ + a0 = 1; + a5 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + return -1; + } else if(((!(a15==1)&&((a12==12)&&((((a5==1)&&((input==6)&&(((((!(a22==1)&&!(a18==1))&&(a4==1))&&(a3==8))&&!(a6==1))||((a6==1)&&((a3==4)&&(!(a4==1)&&((a22==1)&&(a18==1))))))))&&(a27==1))&&!(a0==1))))&&(a20==1))){ + a4 = 1; + a3 = 7; + a22 = 0; + a5 = 0; + a27 = 0; + a6 = 1; + a15 = 1; + a18 = 0; + a12 = 9; + return 26; + } else if((!(a0==1)&&(!(a4==1)&&(((a20==1)&&((((((a15==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==5)))&&(a3==7))&&(a27==1))&&(a6==1))&&(a12==9)))&&(a5==1))))){ + a27 = 0; + a6 = 0; + a22 = 1; + a5 = 0; + a12 = 8; + a0 = 1; + a18 = 0; + return 26; + } else if(((((!(a27==1)&&((((a3==7)&&((a5==1)&&((a15==1)&&(((a20==1)&&(input==2))&&!(a22==1)))))&&!(a18==1))&&!(a4==1)))&&(a6==1))&&(a0==1))&&(a12==8))){ + a12 = 12; + a15 = 0; + a6 = 0; + a3 = 5; + a27 = 1; + return 21; + } else if((!(a6==1)&&(((((((a3==8)&&(!(a18==1)&&((a0==1)&&((a15==1)&&((a5==1)&&(input==5))))))&&(a22==1))&&(a12==9))&&(a4==1))&&(a27==1))&&(a20==1)))){ + a15 = 0; + a6 = 1; + a12 = 12; + return 21; + } else if((((a6==1)&&(((a0==1)&&(((((a12==9)&&(((a27==1)&&((input==4)&&(a4==1)))&&(a3==7)))&&(a18==1))&&(a15==1))&&!(a22==1)))&&(a20==1)))&&!(a5==1))){ + a3 = 6; + a15 = 0; + a22 = 1; + a5 = 1; + a12 = 8; + a6 = 0; + a27 = 0; + return 26; + } else if(((!(a5==1)&&((a12==8)&&(!(a6==1)&&((((a0==1)&&(((((a27==1)&&(input==1))&&(a20==1))&&(a18==1))&&!(a15==1)))&&(a22==1))&&(a3==8)))))&&(a4==1))){ + a12 = 11; + a18 = 0; + a4 = 0; + a3 = 7; + a15 = 1; + a5 = 1; + return 21; + } else if(((a18==1)&&(!(a27==1)&&((a5==1)&&(((a0==1)&&(((a12==9)&&((((a20==1)&&((a15==1)&&(input==4)))&&(a6==1))&&!(a22==1)))&&(a3==6)))&&!(a4==1)))))){ + a12 = 8; + a4 = 1; + a3 = 7; + a6 = 0; + a15 = 0; + return 24; + } else if((!(a0==1)&&((a3==4)&&((!(a15==1)&&(!(a22==1)&&((a12==9)&&((a27==1)&&((((((a18==1)||!(a18==1))&&(input==1))&&!(a4==1))&&!(a6==1))&&!(a5==1))))))&&(a20==1))))){ + if((a27==1)){ + a5 = 1; + a12 = 10; + a6 = 1; + a4 = 1; + a15 = 1; + a18 = 0; + }else{ + a12 = 12; + a6 = 1; + a5 = 1; + a15 = 1; + a18 = 0; + } + return 21; + } else if((((a0==1)&&(((!(a15==1)&&(!(a5==1)&&((input==2)&&(((!(a6==1)&&(((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8)))||(((!(a4==1)&&((a22==1)&&(a18==1)))&&(a3==4))&&(a6==1)))||((a6==1)&&((a3==4)&&((!(a18==1)&&(a22==1))&&!(a4==1))))))))&&(a20==1))&&(a27==1)))&&(a12==9))){ + a4 = 1; + a5 = 1; + a12 = 8; + a18 = 1; + a15 = 1; + a6 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if((((a27==1)&&(((((a4==1)&&(((a20==1)&&((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==2))&&(a6==1)))&&!(a15==1)))&&!(a0==1))&&(a3==7))&&(a12==8)))&&!(a5==1))){ + a18 = 1; + a0 = 1; + a5 = 1; + a15 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if((((((((((a20==1)&&((!(a4==1)&&((input==2)&&((a18==1)||!(a18==1))))&&!(a27==1)))&&!(a15==1))&&(a3==7))&&(a5==1))&&!(a6==1))&&(a12==12))&&!(a22==1))&&(a0==1))){ + a15 = 1; + a27 = 1; + a3 = 4; + a18 = 1; + a6 = 1; + a12 = 8; + a4 = 1; + a22 = 1; + return -1; + } else if((((a0==1)&&(!(a6==1)&&(!(a4==1)&&((a3==4)&&((a20==1)&&((a15==1)&&(!(a5==1)&&((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==2))&&(a27==1)))))))))&&(a12==9))){ + a4 = 1; + a5 = 1; + a6 = 1; + a18 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if((((!(a5==1)&&((((!(a4==1)&&(!(a15==1)&&(((a20==1)&&((input==2)&&!(a0==1)))&&!(a27==1))))&&!(a6==1))&&(a3==5))&&(a12==8)))&&!(a22==1))&&!(a18==1))){ + a18 = 1; + a0 = 1; + a22 = 1; + a27 = 1; + a5 = 1; + a6 = 1; + a12 = 10; + return -1; + } else if(((((a12==8)&&(((a5==1)&&((a3==8)&&(!(a0==1)&&(!(a27==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==6))&&!(a6==1))))))&&(a4==1)))&&(a20==1))&&!(a15==1))){ + a6 = 1; + a0 = 1; + a3 = 5; + a22 = 0; + a15 = 1; + a18 = 0; + return -1; + } else if((((((a20==1)&&(((a12==12)&&(!(a15==1)&&(!(a4==1)&&((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==6))&&(a6==1)))))&&(a3==5)))&&!(a0==1))&&(a27==1))&&(a5==1))){ + if((a4==1)){ + a12 = 8; + a3 = 8; + a0 = 1; + a22 = 0; + a4 = 1; + a18 = 1; + a15 = 1; + }else{ + a12 = 9; + a18 = 1; + a5 = 0; + a3 = 7; + a22 = 0; + a6 = 0; + a4 = 1; + } + return 26; + } else if(((a12==9)&&((a5==1)&&(((a0==1)&&((a6==1)&&(((a3==4)&&((a20==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==3))&&(a15==1))))&&!(a4==1))))&&(a27==1))))){ + a15 = 0; + a12 = 12; + a18 = 0; + a22 = 0; + a3 = 7; + return 24; + } else if(((a4==1)&&((((a27==1)&&((((a15==1)&&((a20==1)&&((input==3)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1)))))))&&!(a5==1))&&(a12==12)))&&!(a6==1))&&(a0==1)))){ + a22 = 1; + a12 = 11; + a3 = 5; + a6 = 1; + a5 = 1; + a18 = 0; + return -1; + } else if(((!(a4==1)&&((((!(a5==1)&&((a20==1)&&(((a27==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==4)))&&(a0==1))))&&(a15==1))&&(a3==6))&&(a6==1)))&&(a12==12))){ + a18 = 1; + a6 = 0; + a15 = 0; + a5 = 1; + a12 = 8; + a3 = 7; + a27 = 0; + a22 = 0; + return 21; + } else if(((((((((a27==1)&&((input==6)&&(((((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4))))||(((a3==4)&&((a22==1)&&!(a18==1)))&&!(a6==1)))))&&(a12==10))&&!(a4==1))&&(a20==1))&&(a15==1))&&(a0==1))&&!(a5==1))){ + a4 = 1; + a5 = 1; + a3 = 4; + a6 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + return -1; + } else if(((((((((((((input==5)&&((a18==1)||!(a18==1)))&&!(a15==1))&&!(a5==1))&&(a27==1))&&!(a4==1))&&(a0==1))&&(a22==1))&&(a12==12))&&(a3==6))&&(a6==1))&&(a20==1))){ + a27 = 0; + a3 = 8; + a5 = 1; + a15 = 1; + a12 = 11; + a18 = 0; + a22 = 0; + return 21; + } else if((((!(a18==1)&&((a27==1)&&(!(a0==1)&&((a12==11)&&((!(a22==1)&&((((a5==1)&&(input==1))&&(a20==1))&&!(a6==1)))&&(a4==1))))))&&!(a15==1))&&(a3==5))){ + a12 = 12; + a18 = 1; + a0 = 1; + return 24; + } else if(((a12==8)&&(!(a0==1)&&((a3==5)&&(!(a15==1)&&(((a27==1)&&((((!(a5==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a6==1))&&(a22==1))&&!(a4==1)))&&(a20==1))))))){ + a18 = 1; + a22 = 0; + a3 = 4; + a15 = 1; + a0 = 1; + a12 = 10; + a6 = 0; + return 26; + } else if(((!(a5==1)&&(!(a18==1)&&((a12==9)&&((((((((input==4)&&!(a15==1))&&(a3==6))&&(a22==1))&&!(a0==1))&&!(a4==1))&&!(a27==1))&&(a6==1)))))&&(a20==1))){ + a18 = 1; + a27 = 1; + a3 = 5; + a0 = 1; + a5 = 1; + a15 = 1; + a22 = 0; + a12 = 8; + return -1; + } else if(((((a0==1)&&((a6==1)&&((a5==1)&&(!(a15==1)&&(((a12==8)&&(((a3==8)&&((input==2)&&((a18==1)||!(a18==1))))&&(a20==1)))&&(a22==1))))))&&(a4==1))&&(a27==1))){ + a18 = 1; + a15 = 1; + a4 = 0; + a5 = 0; + return 26; + } else if((!(a0==1)&&((((((a5==1)&&(((input==2)&&((((((a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1)))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1))))&&(a20==1)))&&(a27==1))&&!(a15==1))&&(a12==8))&&(a4==1)))){ + a18 = 1; + a15 = 1; + a0 = 1; + a6 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((!(a5==1)&&((a15==1)&&((((!(a6==1)&&((a20==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4))&&(a3==8))))&&!(a4==1))&&(a12==10))&&!(a27==1))))&&!(a0==1))){ + if((a15==1)){ + a12 = 8; + a3 = 6; + a18 = 0; + a6 = 1; + a27 = 1; + a0 = 1; + a5 = 1; + a22 = 0; + }else{ + a3 = 5; + a12 = 8; + a18 = 0; + a27 = 1; + a5 = 1; + a0 = 1; + a22 = 1; + a15 = 0; + } + return -1; + } else if((((a22==1)&&(!(a6==1)&&((a20==1)&&(((a12==11)&&((((((input==2)&&!(a4==1))&&!(a0==1))&&(a18==1))&&!(a15==1))&&!(a27==1)))&&(a3==6)))))&&!(a5==1))){ + a5 = 1; + a15 = 1; + a0 = 1; + a3 = 4; + a12 = 8; + a27 = 1; + return 26; + } else if(((a6==1)&&(((a3==8)&&((((!(a15==1)&&((((a20==1)&&(!(a5==1)&&(input==1)))&&(a12==8))&&(a22==1)))&&(a18==1))&&(a4==1))&&(a27==1)))&&(a0==1)))){ + if((a3==4)){ + a12 = 9; + a4 = 0; + a15 = 1; + a18 = 0; + a0 = 0; + }else{ + a22 = 0; + a6 = 0; + a3 = 7; + a12 = 10; + } + return 26; + } else if((((a20==1)&&((a12==12)&&(((((((a18==1)&&((a3==5)&&((input==6)&&!(a5==1))))&&(a6==1))&&(a4==1))&&(a27==1))&&(a0==1))&&(a22==1))))&&(a15==1))){ + a12 = 9; + a6 = 0; + a15 = 0; + a3 = 4; + a4 = 0; + a0 = 0; + return -1; + } else if(((a20==1)&&((a12==12)&&(!(a15==1)&&(((((a5==1)&&((((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4))))&&(input==2)))&&(a27==1))&&(a4==1))&&(a0==1)))))){ + a3 = 5; + a6 = 0; + a15 = 1; + a18 = 1; + a0 = 0; + a22 = 0; + a5 = 0; + a12 = 10; + return 26; + } else if((((a20==1)&&((((a0==1)&&((!(a4==1)&&((!(a27==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a5==1)))&&(a12==11)))&&(a15==1)))&&(a3==6))&&!(a6==1)))&&(a22==1))){ + a5 = 0; + a18 = 0; + a27 = 1; + a4 = 1; + a3 = 7; + return 26; + } else if((((!(a0==1)&&((((a20==1)&&(((((((a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a18==1)&&!(a22==1)))))&&(input==1))&&(a27==1))&&(a6==1)))&&(a15==1))&&(a12==12)))&&!(a5==1))&&(a4==1))){ + a18 = 0; + a5 = 1; + a22 = 1; + a3 = 6; + a6 = 0; + a0 = 1; + a12 = 8; + return -1; + } else if(((a12==8)&&(!(a27==1)&&(((((!(a0==1)&&((!(a6==1)&&((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a15==1)))&&(a4==1))&&(a20==1))&&(a5==1))&&(a3==6))))){ + a6 = 1; + a18 = 1; + a27 = 1; + a3 = 7; + a22 = 0; + a0 = 1; + a4 = 0; + return -1; + } else if(((((a20==1)&&(((a4==1)&&((a27==1)&&(((a15==1)&&(!(a6==1)&&((((a18==1)||!(a18==1))&&(input==3))&&!(a0==1))))&&(a12==9))))&&(a5==1)))&&(a22==1))&&(a3==4))){ + a18 = 1; + a6 = 1; + a12 = 8; + a0 = 1; + return -1; + } else if(((!(a27==1)&&((a20==1)&&(((!(a0==1)&&((a3==4)&&((a4==1)&&((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==6))&&(a12==11)))))&&!(a15==1))&&!(a6==1))))&&!(a5==1))){ + if((a27==1)){ + a27 = 1; + a0 = 1; + a15 = 1; + a12 = 8; + a5 = 1; + a22 = 0; + a3 = 6; + a4 = 0; + a18 = 0; + a6 = 1; + }else{ + a18 = 1; + a22 = 1; + a27 = 1; + a0 = 1; + a6 = 1; + a5 = 1; + a4 = 0; + a3 = 8; + a12 = 8; + a15 = 1; + } + return -1; + } else if((!(a4==1)&&((a20==1)&&(!(a5==1)&&(!(a27==1)&&((a22==1)&&(!(a6==1)&&((a3==7)&&(!(a15==1)&&(((a0==1)&&((input==6)&&(a18==1)))&&(a12==9))))))))))){ + a27 = 1; + a5 = 1; + a4 = 1; + a12 = 8; + a15 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if(((((a0==1)&&(((a4==1)&&(((a27==1)&&((((((a22==1)&&(a18==1))&&(a3==7))||(((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1)))))&&(input==3))&&!(a5==1)))&&!(a15==1)))&&(a12==10)))&&(a6==1))&&(a20==1))){ + a3 = 4; + a22 = 1; + a5 = 1; + a18 = 1; + return -1; + } else if(((((a20==1)&&((!(a5==1)&&((((!(a27==1)&&(((input==6)&&(a18==1))&&!(a4==1)))&&(a3==4))&&(a15==1))&&!(a22==1)))&&!(a0==1)))&&!(a6==1))&&(a12==10))){ + a5 = 1; + a22 = 1; + a18 = 0; + a3 = 6; + a12 = 11; + return -1; + } else if((!(a4==1)&&((a12==8)&&(!(a6==1)&&(!(a27==1)&&((((!(a15==1)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==5)))&&(a0==1))&&(a20==1))&&!(a5==1))))))){ + a12 = 9; + a22 = 1; + a3 = 8; + a5 = 1; + a18 = 1; + a4 = 1; + return 26; + } else if((((((a27==1)&&(((a12==10)&&((input==3)&&(((a6==1)&&((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1))))||((!(a6==1)&&(((a4==1)&&((a18==1)&&!(a22==1)))&&(a3==8)))||(((a3==8)&&((a4==1)&&(!(a22==1)&&!(a18==1))))&&!(a6==1))))))&&!(a15==1)))&&!(a0==1))&&(a20==1))&&(a5==1))){ + a18 = 0; + a4 = 0; + a22 = 0; + a0 = 1; + a6 = 1; + a3 = 6; + a15 = 1; + return -1; + } else if((((((a20==1)&&((a4==1)&&(!(a27==1)&&((!(a6==1)&&((input==1)&&(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a22==1)&&(a18==1))))))&&(a15==1)))))&&!(a5==1))&&(a12==10))&&!(a0==1))){ + if((a27==1)){ + a12 = 8; + a27 = 1; + a5 = 1; + a3 = 6; + a18 = 1; + a22 = 0; + a0 = 1; + }else{ + a0 = 1; + a5 = 1; + a6 = 1; + a18 = 0; + a3 = 7; + a12 = 8; + a22 = 1; + a27 = 1; + } + return 21; + } else if(((((a0==1)&&(((((((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==1))&&!(a4==1))&&!(a5==1))&&(a12==8))&&(a20==1))&&(a6==1)))&&(a27==1))&&(a15==1))){ + a22 = 1; + a3 = 4; + a18 = 1; + a5 = 1; + a4 = 1; + return -1; + } else if(((a12==11)&&(!(a5==1)&&((a27==1)&&(!(a4==1)&&(((a20==1)&&((a6==1)&&((a15==1)&&(!(a0==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==5))))))&&(a3==4))))))){ + a0 = 1; + a18 = 1; + a22 = 1; + a5 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if(((((a12==12)&&((((a0==1)&&((a4==1)&&(((((a3==5)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5))))&&(input==1))&&!(a27==1))))&&!(a6==1))&&!(a15==1)))&&(a20==1))&&(a5==1))){ + a6 = 1; + a12 = 8; + a15 = 1; + a3 = 4; + a4 = 0; + a22 = 1; + a18 = 1; + return -1; + } else if((((!(a27==1)&&((a20==1)&&((((((input==2)&&(((a3==7)&&((a22==1)&&(a18==1)))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a22==1)&&!(a18==1))))))&&!(a4==1))&&(a15==1))&&!(a6==1))&&(a12==11))))&&(a0==1))&&!(a5==1))){ + a18 = 1; + a22 = 0; + a3 = 5; + a12 = 10; + a27 = 1; + a15 = 0; + return 26; + } else if((!(a6==1)&&(((a20==1)&&((a4==1)&&((!(a0==1)&&(((a12==11)&&((((input==1)&&(a27==1))&&!(a18==1))&&(a22==1)))&&!(a5==1)))&&(a15==1))))&&(a3==8)))){ + a3 = 7; + a5 = 1; + a0 = 1; + a12 = 10; + a27 = 0; + return -1; + } else if(((a12==10)&&(((((a4==1)&&(!(a15==1)&&((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6))&&(a3==5))&&!(a5==1))&&(a27==1))))&&!(a0==1))&&(a20==1))&&!(a6==1)))){ + a0 = 1; + a18 = 1; + a22 = 1; + a5 = 1; + a27 = 0; + return -1; + } else if((((((((((input==4)&&(((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1))||(((a6==1)&&((a3==8)&&((a18==1)&&!(a22==1))))||(((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1)))))&&!(a27==1))&&(a12==9))&&(a20==1))&&(a5==1))&&(a15==1))&&!(a0==1))&&(a4==1))){ + if((a27==1)){ + a12 = 10; + a5 = 0; + a3 = 8; + a22 = 1; + a18 = 1; + a4 = 0; + a27 = 1; + a6 = 0; + }else{ + a18 = 1; + a27 = 1; + a0 = 1; + a4 = 0; + a3 = 8; + a22 = 1; + a6 = 1; + a12 = 8; + } + return -1; + } else if(((a12==10)&&(((a5==1)&&(((a27==1)&&((a15==1)&&((input==3)&&((!(a6==1)&&((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1)))))||((a6==1)&&((((a22==1)&&(a18==1))&&!(a4==1))&&(a3==4)))))))&&!(a0==1)))&&(a20==1)))){ + a0 = 1; + a22 = 1; + a3 = 7; + a4 = 0; + a18 = 0; + a12 = 12; + a6 = 1; + return 26; + } else if(((((!(a0==1)&&((!(a6==1)&&((!(a27==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2))&&!(a15==1)))&&(a20==1)))&&(a12==11)))&&(a3==6))&&!(a5==1))&&!(a4==1))){ + if((a0==1)){ + a3 = 7; + a0 = 1; + a5 = 1; + a27 = 1; + a22 = 0; + a18 = 1; + a4 = 1; + a15 = 1; + a12 = 8; + }else{ + a27 = 1; + a22 = 1; + a3 = 5; + a4 = 1; + a6 = 1; + a15 = 1; + a0 = 1; + a5 = 1; + a12 = 8; + a18 = 0; + } + return 21; + } else if(((((((a6==1)&&((a12==9)&&((a15==1)&&(((a22==1)&&((a3==8)&&(((a18==1)||!(a18==1))&&(input==3))))&&!(a27==1)))))&&(a20==1))&&(a4==1))&&(a0==1))&&(a5==1))){ + a27 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((((a12==9)&&(((a6==1)&&(!(a0==1)&&((a4==1)&&((a27==1)&&(((input==3)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&(a20==1))))))&&(a15==1)))&&(a3==7))&&!(a5==1))){ + a0 = 1; + a3 = 5; + a12 = 10; + a15 = 0; + a22 = 1; + a18 = 1; + return -1; + } else if(((!(a0==1)&&(((((a20==1)&&(!(a15==1)&&((a12==10)&&((input==1)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))||((a3==6)&&(!(a18==1)&&(a22==1))))))))&&!(a27==1))&&(a5==1))&&!(a6==1)))&&(a4==1))){ + a18 = 1; + a4 = 0; + a12 = 8; + a27 = 1; + a15 = 1; + a6 = 1; + a22 = 0; + a0 = 1; + a3 = 6; + return 21; + } else if(((!(a15==1)&&((a20==1)&&((a27==1)&&(((a5==1)&&(((((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==2))&&!(a6==1))&&(a0==1))&&(a12==11)))&&(a3==5)))))&&!(a4==1))){ + a4 = 1; + a3 = 4; + a15 = 1; + a12 = 8; + a22 = 1; + a18 = 1; + a6 = 1; + return -1; + } else if(((a20==1)&&(!(a6==1)&&((a12==9)&&((a4==1)&&(!(a15==1)&&((a5==1)&&((a3==6)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&!(a27==1))&&(a0==1)))))))))){ + a22 = 1; + a6 = 1; + a27 = 1; + a18 = 1; + a3 = 4; + a15 = 1; + a12 = 8; + return -1; + } else if(((a0==1)&&((((a20==1)&&(!(a4==1)&&((a15==1)&&((!(a5==1)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==3)))&&!(a6==1)))))&&(a12==8))&&!(a27==1)))){ + a6 = 1; + a18 = 1; + a3 = 4; + a4 = 1; + a5 = 1; + a22 = 1; + a27 = 1; + return -1; + } else if(((a20==1)&&((a27==1)&&((a12==12)&&((((!(a6==1)&&((a3==8)&&((!(a0==1)&&((a15==1)&&(input==1)))&&(a4==1))))&&(a18==1))&&(a22==1))&&(a5==1)))))){ + a22 = 0; + a3 = 7; + a0 = 1; + a18 = 0; + a6 = 1; + a12 = 9; + a27 = 0; + return -1; + } else if(((((a0==1)&&((a27==1)&&((a5==1)&&(!(a15==1)&&(((a12==9)&&(!(a22==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&!(a4==1))))&&(a6==1))))))&&(a20==1))&&(a3==4))){ + if((a0==1)){ + a0 = 0; + a5 = 0; + a22 = 1; + a15 = 1; + a3 = 5; + a18 = 0; + a12 = 8; + }else{ + a6 = 0; + a15 = 1; + a18 = 1; + a12 = 8; + a27 = 0; + a4 = 1; + } + return 21; + } else if((((a4==1)&&((((a20==1)&&(!(a27==1)&&((a5==1)&&((!(a6==1)&&((input==3)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a15==1)))))&&(a0==1))&&(a3==6)))&&(a12==10))){ + a22 = 1; + a18 = 1; + a12 = 8; + a27 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if(((!(a0==1)&&(!(a4==1)&&((a20==1)&&((a6==1)&&((a12==11)&&(!(a15==1)&&(!(a5==1)&&((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==4)))))))))&&(a27==1))){ + a0 = 1; + a5 = 1; + a27 = 0; + a12 = 9; + a3 = 7; + a18 = 0; + a22 = 0; + a6 = 0; + a4 = 1; + return -1; + } else if((((a12==8)&&(!(a27==1)&&(!(a0==1)&&(!(a6==1)&&((a3==5)&&(((((!(a4==1)&&(input==6))&&!(a22==1))&&!(a5==1))&&!(a18==1))&&(a20==1)))))))&&(a15==1))){ + a12 = 10; + a3 = 6; + a15 = 0; + a0 = 1; + a4 = 1; + a18 = 1; + return 26; + } else if(((a0==1)&&((((a5==1)&&(((((!(a27==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&!(a22==1)))&&(a12==9))&&(a15==1))&&!(a4==1))&&(a20==1)))&&(a6==1))&&(a3==5)))){ + a12 = 12; + a3 = 4; + a4 = 1; + a22 = 1; + a27 = 1; + a15 = 0; + a18 = 1; + return 24; + } else if((((!(a15==1)&&((!(a4==1)&&((a27==1)&&(((a5==1)&&((a6==1)&&((a18==1)&&((a20==1)&&(input==3)))))&&!(a0==1))))&&(a3==4)))&&(a12==11))&&(a22==1))){ + a6 = 0; + a3 = 7; + a15 = 1; + a4 = 1; + a0 = 1; + return -1; + } else if((((a27==1)&&(((a4==1)&&((a15==1)&&(((a20==1)&&(!(a22==1)&&((a3==5)&&((!(a0==1)&&(input==2))&&(a18==1)))))&&!(a5==1))))&&(a12==12)))&&!(a6==1))){ + a0 = 1; + a4 = 0; + a15 = 0; + a22 = 1; + a12 = 9; + return -1; + } else if(((a5==1)&&((!(a22==1)&&((a20==1)&&(((a18==1)&&(!(a15==1)&&(((!(a6==1)&&(!(a27==1)&&(input==5)))&&(a12==11))&&!(a4==1))))&&(a0==1))))&&(a3==6)))){ + a12 = 8; + a4 = 1; + a22 = 1; + a15 = 1; + a6 = 1; + a27 = 1; + a3 = 4; + return -1; + } else if((((a4==1)&&(((a3==6)&&(((a0==1)&&((((a20==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==5)))&&!(a5==1))&&(a27==1)))&&(a15==1)))&&(a12==11)))&&!(a6==1))){ + a18 = 1; + a12 = 10; + a6 = 1; + a22 = 1; + a3 = 8; + a5 = 1; + a15 = 0; + return -1; + } else if(((a22==1)&&((a20==1)&&(!(a0==1)&&((a15==1)&&(!(a27==1)&&((a3==6)&&((a6==1)&&(((((a4==1)&&(input==3))&&(a5==1))&&(a12==9))&&!(a18==1)))))))))){ + if((a22==1)){ + a27 = 1; + a3 = 5; + a12 = 8; + a22 = 0; + }else{ + a27 = 1; + a4 = 0; + a5 = 0; + a22 = 0; + a12 = 11; + a6 = 0; + } + return 26; + } else if((!(a15==1)&&(((a0==1)&&(((a22==1)&&(((a18==1)&&(!(a5==1)&&((a20==1)&&(!(a27==1)&&((input==2)&&(a12==9))))))&&(a3==4)))&&(a6==1)))&&(a4==1)))){ + a12 = 8; + a15 = 1; + a27 = 1; + a5 = 1; + return -1; + } else if(((a22==1)&&((a15==1)&&(((((a6==1)&&((a4==1)&&(((a12==9)&&((((a18==1)||!(a18==1))&&(input==4))&&(a3==7)))&&(a5==1))))&&(a27==1))&&(a0==1))&&(a20==1))))){ + if((a18==1)){ + a3 = 5; + a0 = 0; + a6 = 0; + a18 = 0; + a4 = 0; + }else{ + a5 = 0; + a18 = 0; + a4 = 0; + a15 = 0; + a12 = 11; + } + return 21; + } else if((((a5==1)&&(((a6==1)&&(((((a3==7)&&((!(a27==1)&&((input==3)&&!(a22==1)))&&(a12==11)))&&!(a4==1))&&(a18==1))&&!(a0==1)))&&(a15==1)))&&(a20==1))){ + a12 = 10; + a4 = 1; + a22 = 1; + a6 = 0; + a3 = 8; + return 26; + } else if((!(a18==1)&&(!(a27==1)&&((a20==1)&&((a15==1)&&((!(a4==1)&&((a3==8)&&((a5==1)&&((!(a0==1)&&(!(a6==1)&&(input==1)))&&(a22==1)))))&&(a12==9))))))){ + a5 = 0; + a18 = 1; + a22 = 0; + a3 = 7; + a15 = 0; + a27 = 1; + a6 = 1; + a0 = 1; + return 26; + } else if(((a20==1)&&(((a15==1)&&((a12==10)&&((!(a5==1)&&((!(a6==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&(a22==1))&&(a3==6)))&&(a0==1)))&&!(a27==1))))&&!(a4==1)))){ + a3 = 7; + a12 = 9; + a18 = 1; + a15 = 0; + return -1; + } else if(((((((!(a0==1)&&((a4==1)&&(((a15==1)&&(!(a27==1)&&((a3==5)&&(input==4))))&&(a22==1))))&&(a12==10))&&(a5==1))&&(a20==1))&&!(a6==1))&&!(a18==1))){ + a18 = 1; + a5 = 0; + a4 = 0; + a12 = 9; + a3 = 8; + a27 = 1; + a0 = 1; + return 24; + } else if((((((a3==8)&&((a27==1)&&(!(a6==1)&&((((a12==10)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==3)))&&(a15==1))&&!(a4==1)))))&&(a0==1))&&(a5==1))&&(a20==1))){ + a22 = 0; + a4 = 1; + a3 = 5; + a18 = 0; + a6 = 1; + return -1; + } else if(((a20==1)&&((a3==4)&&((a12==11)&&((a5==1)&&((!(a6==1)&&(!(a4==1)&&(!(a27==1)&&((a15==1)&&((a18==1)&&((input==5)&&(a22==1)))))))&&!(a0==1))))))){ + if((a15==1)){ + a5 = 0; + a12 = 10; + a15 = 0; + a3 = 5; + a22 = 0; + a0 = 1; + }else{ + a3 = 6; + a0 = 1; + a6 = 1; + a22 = 0; + a4 = 1; + a27 = 1; + a12 = 8; + } + return 26; + } else if(((a20==1)&&((a3==5)&&(((!(a0==1)&&((((((a15==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a4==1))&&(a6==1))&&(a27==1))&&(a22==1)))&&(a12==8))&&!(a5==1))))){ + a12 = 11; + a18 = 0; + a0 = 1; + a4 = 0; + a6 = 0; + a3 = 6; + return 21; + } else if(((a20==1)&&(((((((a0==1)&&((((((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a22==1)&&!(a18==1))))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==2))&&!(a6==1)))&&!(a4==1))&&(a5==1))&&!(a27==1))&&!(a15==1))&&(a12==9)))){ + if((a20==1)){ + a6 = 1; + a4 = 1; + a18 = 1; + a0 = 0; + a12 = 10; + a3 = 8; + a27 = 1; + a22 = 0; + }else{ + a18 = 0; + a3 = 5; + a4 = 1; + a27 = 1; + a22 = 0; + a12 = 11; + } + return 26; + } else if(((a15==1)&&((a6==1)&&((!(a0==1)&&((a20==1)&&((a27==1)&&(((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&!(a4==1))&&(a12==11))&&(a5==1)))))&&(a3==4))))){ + a15 = 0; + a3 = 6; + a4 = 1; + a0 = 1; + a5 = 0; + a22 = 0; + a6 = 0; + a18 = 1; + a12 = 10; + return 26; + } else if((((a15==1)&&((a3==4)&&((a5==1)&&((a12==11)&&((((((a4==1)&&((a18==1)&&(input==5)))&&!(a22==1))&&(a0==1))&&(a20==1))&&(a27==1))))))&&(a6==1))){ + a3 = 6; + a4 = 0; + a22 = 1; + a12 = 12; + a5 = 0; + a27 = 0; + return -1; + } else if((((a20==1)&&(((a6==1)&&((a4==1)&&(!(a0==1)&&((((a12==10)&&((input==5)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))&&(a3==7))&&!(a15==1)))))&&!(a27==1)))&&(a5==1))){ + a27 = 1; + a18 = 0; + a22 = 1; + a12 = 8; + a0 = 1; + a15 = 1; + return 24; + } else if(((((!(a6==1)&&((a12==8)&&(((!(a4==1)&&((input==1)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1))))||((a3==6)&&((a22==1)&&(a18==1))))))&&(a0==1))&&!(a27==1))))&&!(a15==1))&&!(a5==1))&&(a20==1))){ + a18 = 0; + a5 = 1; + a3 = 6; + a12 = 10; + a15 = 1; + a4 = 1; + a22 = 0; + a27 = 1; + return 21; + } else if((((a6==1)&&((a15==1)&&((a3==7)&&(((!(a22==1)&&((a20==1)&&(((a0==1)&&((input==3)&&(a12==8)))&&(a18==1))))&&!(a27==1))&&!(a4==1)))))&&(a5==1))){ + a15 = 0; + a5 = 0; + a27 = 1; + a4 = 1; + a12 = 10; + a3 = 6; + return 21; + } else if(((((a0==1)&&(((a5==1)&&(((((!(a6==1)&&((a4==1)&&(input==1)))&&!(a15==1))&&(a27==1))&&(a20==1))&&(a12==9)))&&(a22==1)))&&!(a18==1))&&(a3==7))){ + a18 = 1; + a3 = 5; + a6 = 1; + a15 = 1; + a12 = 8; + a27 = 0; + return 21; + } else if(((((a15==1)&&(((a12==8)&&(!(a27==1)&&(((!(a6==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==3)))&&(a5==1))&&(a20==1))))&&!(a4==1)))&&!(a0==1))&&(a3==7))){ + a22 = 1; + a27 = 1; + a0 = 1; + a4 = 1; + a3 = 5; + a18 = 1; + return 26; + } else if((!(a0==1)&&((!(a27==1)&&((a12==8)&&((((a4==1)&&((((((a3==4)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==5))&&!(a6==1)))&&(a5==1))&&!(a15==1))))&&(a20==1)))){ + if((a4==1)){ + a15 = 1; + a3 = 8; + a18 = 1; + a27 = 1; + a0 = 1; + a22 = 0; + }else{ + a6 = 1; + a3 = 6; + a15 = 1; + a4 = 0; + a22 = 1; + a12 = 9; + a18 = 1; + a27 = 1; + } + return 21; + } else if(((((((a3==8)&&(((a15==1)&&((a6==1)&&((((input==2)&&((a18==1)||!(a18==1)))&&(a0==1))&&(a27==1))))&&(a20==1)))&&!(a22==1))&&(a12==10))&&(a5==1))&&(a4==1))){ + a6 = 0; + a18 = 0; + a15 = 0; + a4 = 0; + a22 = 1; + return 26; + } else if((((!(a27==1)&&((a12==10)&&((!(a6==1)&&(!(a4==1)&&((((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==3))&&(a5==1))&&!(a15==1))))&&!(a0==1))))&&(a3==6))&&(a20==1))){ + if((a27==1)){ + a18 = 1; + a3 = 8; + a22 = 1; + a15 = 1; + a12 = 11; + a27 = 1; + a4 = 1; + }else{ + a27 = 1; + a6 = 1; + a3 = 7; + a18 = 1; + a0 = 1; + a15 = 1; + a12 = 8; + a22 = 1; + a4 = 1; + } + return 21; + } else if(((a12==11)&&((!(a27==1)&&(!(a0==1)&&((a20==1)&&((((a6==1)&&((input==3)&&((((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==7)))||(((a22==1)&&(a18==1))&&(a3==8)))))&&!(a5==1))&&!(a15==1)))))&&!(a4==1)))){ + a15 = 1; + a18 = 1; + a3 = 4; + a27 = 1; + a4 = 1; + a0 = 1; + a12 = 8; + a5 = 1; + a22 = 0; + return 26; + } else if((((((a4==1)&&((((((a15==1)&&(((input==6)&&(a3==4))&&!(a22==1)))&&(a12==10))&&!(a5==1))&&(a27==1))&&(a20==1)))&&(a18==1))&&(a6==1))&&(a0==1))){ + a15 = 0; + a22 = 1; + a27 = 0; + a3 = 5; + a12 = 12; + a18 = 0; + return 21; + } else if((!(a15==1)&&((!(a4==1)&&(((a12==9)&&(!(a27==1)&&(!(a6==1)&&(((a20==1)&&((a0==1)&&((a5==1)&&(input==2))))&&(a3==6)))))&&(a22==1)))&&(a18==1)))){ + a27 = 1; + a6 = 1; + a15 = 1; + a3 = 4; + a12 = 8; + a4 = 1; + return -1; + } else if(((((a20==1)&&((a12==12)&&(((!(a18==1)&&(!(a15==1)&&((!(a4==1)&&((a5==1)&&(input==4)))&&(a27==1))))&&(a3==4))&&(a22==1))))&&(a0==1))&&(a6==1))){ + a18 = 1; + a3 = 5; + a4 = 1; + a12 = 10; + a5 = 0; + return -1; + } else if((!(a15==1)&&(((((a6==1)&&((a3==4)&&((a27==1)&&((!(a4==1)&&((input==6)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))&&!(a5==1)))))&&(a12==8))&&(a20==1))&&(a0==1)))){ + a12 = 11; + a5 = 1; + a22 = 1; + a4 = 1; + a3 = 6; + a18 = 0; + return 26; + } else if((!(a5==1)&&((a0==1)&&((a12==10)&&(((a6==1)&&(((a27==1)&&(((a4==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==4)))&&(a3==6)))&&(a15==1)))&&(a20==1)))))){ + a18 = 1; + a3 = 5; + a27 = 0; + a5 = 1; + a4 = 0; + a22 = 1; + return 26; + } else if(((!(a4==1)&&((!(a5==1)&&(((!(a0==1)&&((a6==1)&&(!(a15==1)&&((input==1)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))&&(a12==8))&&(a3==7)))&&(a27==1)))&&(a20==1))){ + a15 = 1; + a0 = 1; + a18 = 1; + a22 = 1; + a4 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if((((a20==1)&&((a27==1)&&((a22==1)&&(!(a15==1)&&(((a6==1)&&((a4==1)&&((!(a0==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a12==12))))&&(a3==4))))))&&(a5==1))){ + a0 = 1; + a5 = 0; + a4 = 0; + a18 = 1; + a3 = 5; + a27 = 0; + a12 = 8; + return 24; + } else if((!(a27==1)&&((((((a4==1)&&((a3==5)&&((!(a6==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2)))&&(a12==10))))&&(a20==1))&&!(a15==1))&&!(a5==1))&&(a0==1)))){ + a27 = 1; + a3 = 8; + a15 = 1; + a5 = 1; + a4 = 0; + a18 = 0; + a22 = 0; + return 26; + } else if((!(a4==1)&&((a5==1)&&((a20==1)&&(((!(a6==1)&&((a3==8)&&((a12==9)&&((!(a22==1)&&((input==5)&&((a18==1)||!(a18==1))))&&!(a27==1)))))&&(a0==1))&&(a15==1)))))){ + a18 = 1; + a6 = 1; + a0 = 0; + a3 = 5; + a27 = 1; + return 26; + } else if(((((((a20==1)&&((a3==5)&&((((a12==11)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==4)))&&(a6==1))&&!(a27==1))))&&(a15==1))&&(a4==1))&&(a0==1))&&!(a5==1))){ + a6 = 0; + a15 = 0; + a0 = 0; + a27 = 1; + a22 = 1; + a3 = 6; + a12 = 8; + a18 = 0; + a4 = 0; + return -1; + } else if((!(a27==1)&&(((((a6==1)&&(!(a0==1)&&((((input==3)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8))))&&(a4==1))&&(a20==1))))&&(a5==1))&&(a12==10))&&!(a15==1)))){ + a3 = 6; + a12 = 9; + a22 = 0; + a18 = 0; + a4 = 0; + a6 = 0; + return -1; + } else if((((((a4==1)&&(!(a6==1)&&((a3==8)&&(!(a5==1)&&(((!(a0==1)&&((input==6)&&(a20==1)))&&(a18==1))&&(a22==1))))))&&(a12==8))&&(a27==1))&&!(a15==1))){ + a12 = 11; + a15 = 1; + a4 = 0; + a3 = 5; + a6 = 1; + return 26; + } else if((((((((((a27==1)&&((!(a5==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a0==1)))&&(a3==5))&&(a22==1))&&!(a15==1))&&(a6==1))&&(a12==10))&&(a4==1))&&(a20==1))){ + a3 = 4; + a5 = 1; + a18 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if(((a15==1)&&(!(a4==1)&&((a20==1)&&((a27==1)&&(!(a6==1)&&((((a12==8)&&(!(a5==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==4))))&&(a3==4))&&(a0==1)))))))){ + a18 = 1; + a5 = 1; + a6 = 1; + a4 = 1; + a22 = 1; + return -1; + } else if(((((a6==1)&&(((((a12==11)&&((!(a22==1)&&((a4==1)&&((a3==5)&&(input==3))))&&(a20==1)))&&!(a18==1))&&!(a15==1))&&!(a5==1)))&&!(a27==1))&&(a0==1))){ + a12 = 10; + a18 = 1; + a0 = 0; + a4 = 0; + a3 = 8; + a27 = 1; + a22 = 1; + return 21; + } else if((((((((a20==1)&&((a4==1)&&((((input==1)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a27==1))&&!(a5==1))))&&(a0==1))&&(a3==8))&&(a12==11))&&!(a6==1))&&!(a15==1))){ + if((a27==1)){ + a0 = 0; + a12 = 8; + a15 = 1; + a22 = 0; + a18 = 0; + a27 = 1; + }else{ + a22 = 0; + a18 = 0; + a3 = 7; + a27 = 1; + } + return 21; + } else if(((a27==1)&&(((a20==1)&&((a3==5)&&(((((a12==8)&&(!(a0==1)&&(((a4==1)&&(input==5))&&!(a6==1))))&&(a18==1))&&!(a15==1))&&(a5==1))))&&(a22==1)))){ + if((a12==12)){ + a18 = 0; + a22 = 0; + a6 = 1; + a3 = 4; + a12 = 9; + a15 = 1; + }else{ + a15 = 1; + a12 = 10; + a3 = 8; + a22 = 0; + a0 = 1; + } + return -1; + } else if((!(a15==1)&&(((a0==1)&&(((((a4==1)&&(((((a3==4)&&(input==3))&&(a20==1))&&(a12==10))&&(a27==1)))&&(a22==1))&&!(a18==1))&&(a6==1)))&&(a5==1)))){ + a18 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if(((!(a15==1)&&(!(a4==1)&&(!(a27==1)&&((a6==1)&&((a0==1)&&((((a12==9)&&(!(a5==1)&&((input==5)&&((a18==1)||!(a18==1)))))&&(a3==5))&&(a20==1)))))))&&(a22==1))){ + a3 = 4; + a4 = 1; + a18 = 1; + a27 = 1; + a15 = 1; + a5 = 1; + a12 = 8; + return -1; + } else if((((a3==5)&&((a15==1)&&((!(a22==1)&&((a12==8)&&((a27==1)&&(!(a0==1)&&((a4==1)&&((a6==1)&&(((a18==1)||!(a18==1))&&(input==5))))))))&&(a20==1))))&&(a5==1))){ + a18 = 1; + a3 = 4; + a22 = 1; + a0 = 1; + return -1; + } else if(((((((!(a6==1)&&((a3==8)&&(!(a4==1)&&((a12==9)&&(!(a15==1)&&((!(a22==1)&&!(a18==1))&&!(a5==1)))))))||((a6==1)&&((a3==4)&&((a4==1)&&((a12==10)&&(((a5==1)&&((a22==1)&&(a18==1)))&&(a15==1)))))))&&(input==3))&&(a20==1))&&(a27==1))&&!(a0==1))){ + a12 = 9; + a6 = 1; + a27 = 0; + a5 = 1; + a4 = 1; + a0 = 1; + a18 = 1; + a15 = 0; + a22 = 0; + a3 = 4; + return 21; + } else if(((((((!(a6==1)&&((((a3==5)&&((a5==1)&&(!(a18==1)&&(input==6))))&&(a15==1))&&!(a27==1)))&&(a0==1))&&(a20==1))&&(a4==1))&&(a12==10))&&!(a22==1))){ + a12 = 8; + a6 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + a27 = 1; + return -1; + } else if(((a15==1)&&(((((a0==1)&&(!(a5==1)&&(((((!(a4==1)&&(input==2))&&(a6==1))&&(a20==1))&&(a12==9))&&(a27==1))))&&!(a22==1))&&(a18==1))&&(a3==7)))){ + if((a6==1)){ + a22 = 1; + a4 = 1; + a0 = 0; + a18 = 0; + a12 = 11; + a15 = 0; + a3 = 6; + a5 = 1; + }else{ + a4 = 1; + a22 = 1; + a3 = 4; + a12 = 10; + a5 = 1; + a15 = 0; + } + return 21; + } else if((((!(a0==1)&&((((((((input==2)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&(a6==1))&&!(a15==1))&&(a3==6))&&(a12==12))&&(a20==1))&&(a27==1)))&&(a4==1))&&(a5==1))){ + a4 = 0; + a18 = 0; + a6 = 0; + a3 = 8; + a15 = 1; + a12 = 10; + a0 = 1; + a22 = 1; + return -1; + } else if(((a20==1)&&((a27==1)&&((a15==1)&&((((!(a4==1)&&((input==3)&&(((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1)))))&&(a12==11))&&!(a0==1))&&!(a5==1)))))){ + a18 = 1; + a22 = 1; + a12 = 8; + a5 = 1; + a3 = 4; + a0 = 1; + a4 = 1; + a6 = 1; + return -1; + } else if((((a3==5)&&((a15==1)&&(!(a6==1)&&(!(a27==1)&&(((a20==1)&&(!(a18==1)&&(!(a0==1)&&(((a12==9)&&(input==6))&&(a5==1)))))&&!(a22==1))))))&&!(a4==1))){ + a3 = 4; + a6 = 1; + a4 = 1; + a0 = 1; + a22 = 1; + a5 = 0; + return -1; + } return calculate_output29(input); + } + + int calculate_output29(int input) { + if(((a12==11)&&(!(a6==1)&&(!(a27==1)&&((((a20==1)&&((a4==1)&&(!(a15==1)&&(!(a5==1)&&((input==5)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))))))&&!(a0==1))&&(a3==7)))))){ + a22 = 1; + a4 = 0; + a18 = 0; + a5 = 1; + a0 = 1; + a12 = 8; + a6 = 1; + return -1; + } else if((!(a27==1)&&(((((!(a0==1)&&((a20==1)&&(((a4==1)&&((input==1)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))))&&(a3==7))))&&(a12==9))&&!(a5==1))&&(a6==1))&&!(a15==1)))){ + a6 = 0; + a18 = 0; + a22 = 0; + a27 = 1; + a5 = 1; + a12 = 12; + a3 = 6; + a0 = 1; + return -1; + } else if((((a3==6)&&(((a12==8)&&((a4==1)&&(((a20==1)&&((((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a15==1))&&(a6==1)))&&!(a0==1))))&&!(a5==1)))&&(a27==1))){ + a15 = 1; + a3 = 8; + a22 = 1; + a5 = 1; + a4 = 0; + a27 = 0; + a0 = 1; + a18 = 1; + return 21; + } else if(((((((!(a22==1)&&(((a20==1)&&((a27==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&!(a0==1))))&&(a3==4)))&&!(a15==1))&&(a6==1))&&(a5==1))&&(a4==1))&&(a12==11))){ + a6 = 0; + a12 = 12; + a3 = 5; + a18 = 0; + a4 = 0; + a0 = 1; + return 21; + } else if(((a4==1)&&((((a15==1)&&((!(a0==1)&&((a12==12)&&((((((a22==1)&&!(a18==1))&&(a3==5))||(((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5))))&&(input==5))&&(a6==1))))&&(a27==1)))&&(a20==1))&&!(a5==1)))){ + a12 = 11; + a3 = 6; + a5 = 1; + a22 = 0; + a0 = 1; + a4 = 0; + a18 = 1; + return -1; + } else if(((a20==1)&&(!(a0==1)&&((((((((a15==1)&&((a22==1)&&(((a18==1)||!(a18==1))&&(input==1))))&&(a12==10))&&!(a6==1))&&(a3==8))&&(a4==1))&&(a27==1))&&!(a5==1))))){ + a3 = 7; + a12 = 9; + a18 = 0; + a27 = 0; + a15 = 0; + a0 = 1; + return 26; + } else if(((a27==1)&&((!(a0==1)&&(((a20==1)&&(!(a15==1)&&(!(a4==1)&&(((((a3==5)&&((a22==1)&&!(a18==1)))||(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1)))))&&(input==3))&&(a6==1)))))&&(a12==10)))&&!(a5==1)))){ + a6 = 0; + a22 = 0; + a0 = 1; + a27 = 0; + a5 = 1; + a12 = 9; + a3 = 5; + a18 = 1; + return -1; + } else if((((a22==1)&&((((a27==1)&&((a3==7)&&(((!(a6==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&!(a5==1)))&&(a20==1))&&(a12==11))))&&(a4==1))&&(a15==1)))&&(a0==1))){ + a12 = 12; + a4 = 0; + a27 = 0; + a18 = 1; + return -1; + } else if((((a6==1)&&(((a0==1)&&(((((((a3==5)&&((input==2)&&(a20==1)))&&(a5==1))&&!(a18==1))&&!(a4==1))&&(a12==12))&&!(a22==1)))&&!(a27==1)))&&(a15==1))){ + a12 = 8; + a22 = 1; + a27 = 1; + a6 = 0; + a0 = 0; + a4 = 1; + a3 = 4; + return -1; + } else if((!(a27==1)&&(((a3==4)&&((a12==8)&&((((((a5==1)&&((input==6)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))&&!(a6==1))&&(a15==1))&&(a20==1))&&(a0==1))))&&!(a4==1)))){ + a22 = 0; + a0 = 0; + a18 = 0; + a4 = 1; + a3 = 6; + a27 = 1; + a12 = 10; + a6 = 1; + return 26; + } else if(((a4==1)&&(!(a27==1)&&((a3==6)&&(((!(a6==1)&&(((a12==8)&&(((a5==1)&&((input==4)&&((a18==1)||!(a18==1))))&&!(a15==1)))&&!(a0==1)))&&!(a22==1))&&(a20==1)))))){ + a4 = 0; + a12 = 11; + a18 = 0; + a0 = 1; + a27 = 1; + a5 = 0; + a3 = 5; + a6 = 1; + return 24; + } else if(((((a0==1)&&((a12==9)&&(((a18==1)&&((!(a6==1)&&(!(a22==1)&&((a15==1)&&(!(a4==1)&&(input==1)))))&&(a5==1)))&&(a3==5))))&&(a20==1))&&!(a27==1))){ + a12 = 10; + a4 = 1; + a3 = 6; + a18 = 0; + a6 = 1; + a27 = 1; + return 26; + } else if(((a12==11)&&((a0==1)&&((a15==1)&&((!(a4==1)&&(((a6==1)&&(!(a27==1)&&((input==4)&&(((((a18==1)&&!(a22==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))||((a3==7)&&((a18==1)&&(a22==1)))))))&&(a20==1)))&&!(a5==1)))))){ + a22 = 0; + a18 = 1; + a3 = 5; + a15 = 0; + a5 = 1; + a12 = 12; + a4 = 1; + a27 = 1; + return 26; + } else if((!(a22==1)&&(((((!(a18==1)&&((((a0==1)&&(((a3==7)&&(input==4))&&(a4==1)))&&!(a6==1))&&(a20==1)))&&(a12==9))&&(a27==1))&&(a5==1))&&(a15==1)))){ + a6 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if((((((a27==1)&&((a6==1)&&(!(a15==1)&&((a5==1)&&((a20==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2))&&(a12==11)))))))&&(a3==8))&&!(a0==1))&&(a4==1))){ + a12 = 10; + a0 = 1; + a18 = 1; + a27 = 0; + a3 = 6; + a22 = 1; + return 21; + } else if(((a22==1)&&(!(a15==1)&&((a3==4)&&(((((((!(a27==1)&&((input==1)&&!(a0==1)))&&(a12==11))&&!(a4==1))&&(a6==1))&&(a20==1))&&(a5==1))&&!(a18==1)))))){ + if((a3==8)){ + a3 = 5; + a12 = 8; + a15 = 1; + a27 = 1; + a22 = 0; + a0 = 1; + a4 = 1; + }else{ + a12 = 8; + a15 = 1; + a3 = 6; + a27 = 1; + a0 = 1; + } + return 21; + } else if((!(a5==1)&&(((a3==7)&&(((((((!(a4==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a6==1))&&(a15==1))&&(a27==1))&&!(a22==1))&&(a20==1))&&(a0==1)))&&(a12==11)))){ + a15 = 0; + a6 = 0; + a18 = 1; + a4 = 1; + a5 = 1; + a3 = 6; + return -1; + } else if((((a6==1)&&((a4==1)&&(((a20==1)&&(((!(a27==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a5==1)))&&(a15==1))&&(a0==1)))&&(a3==8))))&&(a12==8))){ + a4 = 0; + a18 = 0; + a12 = 11; + a22 = 1; + a3 = 5; + return 24; + } else if((!(a22==1)&&((((((((a18==1)&&(((a5==1)&&((a3==8)&&(input==1)))&&(a27==1)))&&(a0==1))&&(a12==9))&&!(a15==1))&&(a20==1))&&(a6==1))&&!(a4==1)))){ + a3 = 6; + a15 = 1; + a12 = 12; + return 24; + } else if((!(a15==1)&&(((a6==1)&&((a27==1)&&(((a5==1)&&((((a4==1)&&((a20==1)&&((input==6)&&((a18==1)||!(a18==1)))))&&(a3==7))&&(a12==8)))&&!(a0==1))))&&!(a22==1)))){ + a4 = 0; + a6 = 0; + a0 = 1; + a12 = 11; + a18 = 1; + return 21; + } else if((((a15==1)&&((a12==11)&&(((a5==1)&&(!(a6==1)&&((((a27==1)&&((input==5)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&(a3==7))&&!(a4==1))))&&!(a0==1))))&&(a20==1))){ + a18 = 1; + a12 = 8; + a6 = 1; + a22 = 1; + a3 = 4; + a4 = 1; + a0 = 1; + return -1; + } else if((((a20==1)&&((!(a5==1)&&(((a4==1)&&((((((a6==1)&&((!(a22==1)&&(a18==1))&&(a3==8)))||((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8))))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1)))&&(input==5))&&(a0==1)))&&!(a27==1)))&&!(a15==1)))&&(a12==10))){ + a3 = 4; + a6 = 1; + a15 = 1; + a18 = 1; + a5 = 1; + a12 = 8; + a22 = 1; + a27 = 1; + return -1; + } else if(((!(a15==1)&&(!(a5==1)&&(!(a0==1)&&(!(a27==1)&&((((((((a22==1)&&(a18==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5))))&&(input==6))&&!(a6==1))&&(a20==1))&&(a4==1))))))&&(a12==9))){ + if((a15==1)){ + a12 = 8; + a27 = 1; + a22 = 0; + a18 = 1; + a0 = 1; + a3 = 7; + a5 = 1; + a15 = 1; + }else{ + a12 = 11; + a18 = 1; + a22 = 1; + a15 = 1; + a3 = 6; + } + return -1; + } else if((((((a12==11)&&((((((!(a5==1)&&((a20==1)&&(input==5)))&&!(a27==1))&&(a15==1))&&(a18==1))&&(a0==1))&&(a3==6)))&&(a4==1))&&!(a6==1))&&(a22==1))){ + a3 = 5; + a5 = 1; + a6 = 1; + a18 = 0; + a12 = 10; + a15 = 0; + return -1; + } else if((!(a4==1)&&(!(a6==1)&&(((a20==1)&&(!(a27==1)&&(((a5==1)&&((a12==11)&&(!(a22==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&!(a0==1)))))&&(a15==1))))&&(a3==7))))){ + a0 = 1; + a27 = 1; + a18 = 1; + a5 = 0; + a3 = 5; + a22 = 1; + a12 = 8; + return 21; + } else if((!(a4==1)&&((a12==10)&&((a3==4)&&(((a15==1)&&((!(a6==1)&&((a22==1)&&(((a20==1)&&((input==5)&&((a18==1)||!(a18==1))))&&!(a27==1))))&&(a0==1)))&&(a5==1)))))){ + if((a5==1)){ + a27 = 1; + a5 = 0; + a18 = 0; + a3 = 7; + a0 = 0; + }else{ + a12 = 8; + a18 = 0; + a3 = 5; + a22 = 0; + a6 = 1; + } + return 26; + } else if((((((a27==1)&&(!(a4==1)&&((((a0==1)&&((((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==2)))&&(a12==10))&&(a20==1))))&&!(a15==1))&&!(a5==1))&&(a6==1))){ + a4 = 1; + a3 = 5; + a22 = 0; + a27 = 0; + a18 = 1; + a15 = 1; + a6 = 0; + return 21; + } else if(((a3==8)&&((((a22==1)&&(!(a5==1)&&((((a4==1)&&((a15==1)&&(((a20==1)&&(input==6))&&!(a18==1))))&&(a12==11))&&!(a0==1))))&&(a6==1))&&!(a27==1)))){ + a27 = 1; + a4 = 0; + a22 = 0; + a15 = 0; + a12 = 9; + return 21; + } else if(((!(a15==1)&&(!(a4==1)&&((a20==1)&&(((((!(a22==1)&&(!(a5==1)&&((input==6)&&(a27==1))))&&(a0==1))&&(a3==4))&&!(a18==1))&&!(a6==1)))))&&(a12==10))){ + a5 = 1; + a18 = 1; + a15 = 1; + a3 = 7; + return -1; + } else if((!(a4==1)&&(((a12==9)&&(((((((a20==1)&&((input==4)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))))&&(a3==4))&&!(a27==1))&&(a15==1))&&(a0==1))&&!(a5==1)))&&!(a6==1)))){ + a18 = 1; + a3 = 8; + a6 = 1; + a5 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if(((a20==1)&&(((((((a0==1)&&(!(a27==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))||((!(a18==1)&&(a22==1))&&(a3==8)))&&(input==2))))&&(a5==1))&&!(a15==1))&&!(a6==1))&&(a12==12))&&(a4==1)))){ + a22 = 0; + a6 = 1; + a3 = 5; + a5 = 0; + a18 = 1; + return 21; + } else if((((a5==1)&&((((!(a15==1)&&((((((input==2)&&!(a4==1))&&!(a22==1))&&(a0==1))&&(a12==11))&&!(a27==1)))&&(a18==1))&&(a3==6))&&!(a6==1)))&&(a20==1))){ + a5 = 0; + a4 = 1; + a27 = 1; + return 21; + } else if(((a20==1)&&(!(a15==1)&&(!(a5==1)&&(!(a0==1)&&(!(a6==1)&&((((a12==8)&&(((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a27==1)))&&(a3==8))&&!(a4==1)))))))){ + if((a5==1)){ + a12 = 11; + a0 = 1; + a22 = 1; + a3 = 6; + a27 = 1; + a18 = 1; + a15 = 1; + }else{ + a27 = 1; + a5 = 1; + a4 = 1; + a18 = 0; + a3 = 4; + a15 = 1; + a0 = 1; + a6 = 1; + a22 = 0; + } + return -1; + } else if((((((a12==10)&&(!(a5==1)&&(((a15==1)&&((a20==1)&&(((input==2)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a3==7))))&&(a27==1))))&&!(a0==1))&&(a6==1))&&(a4==1))){ + a15 = 0; + a3 = 8; + a0 = 1; + a22 = 0; + a18 = 1; + return 21; + } else if((((a6==1)&&(((a12==10)&&(!(a5==1)&&((a22==1)&&((a4==1)&&((a20==1)&&((a0==1)&&(((a3==6)&&(input==5))&&!(a18==1))))))))&&!(a15==1)))&&(a27==1))){ + a22 = 0; + a12 = 8; + return 21; + } else if((((((((a5==1)&&((((input==2)&&((((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1))))||((a3==5)&&((a22==1)&&(a18==1)))))&&(a12==9))&&(a15==1)))&&(a20==1))&&!(a6==1))&&(a27==1))&&(a4==1))&&(a0==1))){ + a12 = 12; + a22 = 0; + a18 = 1; + a3 = 7; + return 26; + } else if((((a12==10)&&(((!(a6==1)&&(!(a18==1)&&(!(a0==1)&&(((((a3==8)&&(input==4))&&(a4==1))&&(a27==1))&&!(a15==1)))))&&(a20==1))&&!(a22==1)))&&!(a5==1))){ + a4 = 0; + a12 = 11; + a0 = 1; + a15 = 1; + a5 = 1; + a3 = 4; + a22 = 1; + return 26; + } else if((!(a5==1)&&(!(a6==1)&&(((((a4==1)&&(((a27==1)&&((a0==1)&&((a22==1)&&(((a18==1)||!(a18==1))&&(input==2)))))&&!(a15==1)))&&(a20==1))&&(a3==5))&&(a12==11))))){ + a0 = 0; + a5 = 1; + a18 = 0; + a15 = 1; + a6 = 1; + a3 = 8; + a12 = 12; + return 21; + } else if((((a12==10)&&(((a5==1)&&(((a4==1)&&(!(a0==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4))))&&(input==5))))&&(a20==1)))&&(a15==1)))&&!(a27==1))){ + a6 = 1; + a22 = 0; + a3 = 7; + a18 = 1; + a27 = 1; + a0 = 1; + a12 = 8; + return -1; + } else if((((a15==1)&&((a12==9)&&(!(a0==1)&&(!(a5==1)&&(((a27==1)&&(!(a4==1)&&((input==1)&&((((a22==1)&&(a18==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a22==1)&&!(a18==1))))))))&&(a20==1))))))&&!(a6==1))){ + a3 = 4; + a27 = 0; + a0 = 1; + a6 = 1; + a22 = 0; + a18 = 0; + a5 = 1; + a12 = 11; + return -1; + } else if(((a3==8)&&((a20==1)&&(!(a4==1)&&(((a27==1)&&(((a5==1)&&(!(a6==1)&&((((input==1)&&(a12==8))&&!(a0==1))&&(a18==1))))&&(a22==1)))&&!(a15==1)))))){ + a4 = 1; + a3 = 4; + a6 = 1; + a15 = 1; + a0 = 1; + return -1; + } else if((((a4==1)&&((((a6==1)&&((((a0==1)&&((input==6)&&((((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==6)))))&&(a20==1))&&!(a15==1)))&&(a12==9))&&(a27==1)))&&!(a5==1))){ + a22 = 1; + a15 = 1; + a18 = 1; + a5 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((a12==9)&&(((((a15==1)&&(((a5==1)&&((((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))||((!(a18==1)&&(a22==1))&&(a3==5)))&&(input==5))&&(a6==1)))&&(a20==1)))&&(a4==1))&&(a0==1))&&(a27==1)))){ + a22 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + return -1; + } else if(((a22==1)&&((a20==1)&&((((a12==9)&&(((a6==1)&&((((!(a27==1)&&(input==5))&&(a3==4))&&!(a4==1))&&(a18==1)))&&!(a5==1)))&&(a15==1))&&!(a0==1))))){ + a12 = 8; + a3 = 8; + a0 = 1; + a22 = 0; + a18 = 0; + a6 = 0; + a5 = 1; + return -1; + } else if((((a27==1)&&(((((a4==1)&&((a0==1)&&(!(a6==1)&&((input==4)&&(((a3==7)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1)))))))))&&(a20==1))&&!(a5==1))&&(a12==10)))&&!(a15==1))){ + a3 = 4; + a12 = 8; + a6 = 1; + a5 = 1; + a22 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if(((((((!(a5==1)&&((a27==1)&&((input==5)&&((((a6==1)&&((!(a22==1)&&(a18==1))&&(a3==8)))||(((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1)))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4)))))))&&!(a0==1))&&(a12==9))&&!(a4==1))&&(a15==1))&&(a20==1))){ + a22 = 1; + a4 = 1; + a0 = 1; + a6 = 1; + a12 = 8; + a5 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((((!(a4==1)&&(((((a6==1)&&(((input==5)&&(((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7))))&&(a12==8)))&&(a5==1))&&!(a15==1))&&(a27==1)))&&(a20==1))&&(a0==1))){ + a15 = 1; + a4 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((((a3==4)&&(!(a15==1)&&(!(a5==1)&&((a6==1)&&(((a20==1)&&(!(a4==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==4))))&&(a12==11))))))&&(a27==1))&&!(a0==1))){ + a0 = 1; + a22 = 1; + a3 = 6; + a18 = 1; + a12 = 8; + return 21; + } else if((((a20==1)&&(!(a5==1)&&((((a27==1)&&((a3==5)&&(((!(a4==1)&&((input==2)&&((a18==1)||!(a18==1))))&&(a0==1))&&(a12==11))))&&(a6==1))&&!(a22==1))))&&(a15==1))){ + a5 = 1; + a22 = 1; + a4 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + return -1; + } else if(((!(a0==1)&&(!(a27==1)&&((!(a15==1)&&((((a6==1)&&(((input==2)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a20==1)))&&(a12==9))&&!(a4==1)))&&(a3==7))))&&(a5==1))){ + if((a20==1)){ + a27 = 1; + a22 = 1; + a0 = 1; + a3 = 8; + a15 = 1; + a12 = 8; + a18 = 1; + }else{ + a18 = 1; + a12 = 8; + a27 = 1; + a22 = 0; + a15 = 1; + a0 = 1; + a3 = 6; + } + return -1; + } else if(((((a20==1)&&(!(a5==1)&&(!(a15==1)&&(!(a0==1)&&(((a27==1)&&((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==5))&&(a12==12)))&&!(a4==1))))))&&(a6==1))&&(a3==8))){ + a0 = 1; + a18 = 1; + a5 = 1; + a27 = 0; + a3 = 4; + a22 = 0; + a12 = 8; + return -1; + } else if(((a20==1)&&(!(a5==1)&&(((!(a6==1)&&(!(a4==1)&&((a15==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==1))&&(a27==1)))))&&(a12==9))&&!(a0==1))))){ + a27 = 0; + a3 = 6; + a12 = 10; + a6 = 1; + a0 = 1; + a18 = 1; + a22 = 0; + return 21; + } else if((!(a15==1)&&(((((a27==1)&&(((a0==1)&&((((input==6)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a3==5))&&(a5==1)))&&!(a6==1)))&&(a12==9))&&!(a4==1))&&(a20==1)))){ + a18 = 0; + a6 = 1; + a3 = 8; + a12 = 10; + a22 = 1; + return 26; + } else if((((a12==11)&&(((!(a5==1)&&(((!(a27==1)&&((input==3)&&((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7)))||(((a22==1)&&!(a18==1))&&(a3==7)))))&&!(a0==1))&&(a20==1)))&&!(a6==1))&&!(a4==1)))&&!(a15==1))){ + a18 = 1; + a22 = 0; + a0 = 1; + a15 = 1; + a5 = 1; + a4 = 1; + a3 = 8; + return 21; + } else if((!(a6==1)&&(!(a18==1)&&((a4==1)&&(((!(a0==1)&&(((a3==4)&&((((a20==1)&&(input==3))&&(a5==1))&&!(a22==1)))&&!(a15==1)))&&(a27==1))&&(a12==11)))))){ + a22 = 1; + a12 = 12; + a0 = 1; + a4 = 0; + a15 = 1; + a18 = 1; + return 26; + } else if(((a3==5)&&((a20==1)&&(((((a12==8)&&((a0==1)&&((a6==1)&&(!(a15==1)&&((a5==1)&&((a4==1)&&(input==4)))))))&&!(a18==1))&&(a27==1))&&(a22==1))))){ + a18 = 1; + a22 = 0; + a15 = 1; + a5 = 0; + return 26; + } else if((((((a4==1)&&((!(a6==1)&&((!(a15==1)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==3)))&&!(a5==1)))&&(a20==1)))&&(a12==10))&&!(a27==1))&&!(a0==1))){ + a15 = 1; + a0 = 1; + a3 = 6; + a5 = 1; + a27 = 1; + a22 = 0; + a6 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((((((a18==1)&&((a15==1)&&(!(a6==1)&&((a0==1)&&((a20==1)&&(((a12==10)&&(input==3))&&!(a22==1)))))))&&!(a27==1))&&!(a4==1))&&(a3==6))&&(a5==1))){ + a22 = 1; + a6 = 1; + a18 = 0; + a3 = 5; + a4 = 1; + a12 = 12; + return 21; + } else if(((a27==1)&&((!(a15==1)&&((!(a5==1)&&((a20==1)&&(((a6==1)&&((input==3)&&((((!(a22==1)&&(a18==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))||(((a22==1)&&(a18==1))&&(a3==7)))))&&(a12==9))))&&!(a4==1)))&&(a0==1)))){ + a5 = 1; + a3 = 8; + a15 = 1; + a18 = 1; + a27 = 0; + a22 = 0; + return 26; + } else if(((a20==1)&&((a12==9)&&(!(a6==1)&&((a27==1)&&((a5==1)&&(((!(a0==1)&&(((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==8)))||(((a22==1)&&!(a18==1))&&(a3==8)))&&(input==2)))&&(a15==1))&&(a4==1)))))))){ + a18 = 1; + a12 = 12; + a22 = 1; + a0 = 1; + a6 = 1; + a3 = 8; + return 21; + } else if(((a3==4)&&((((a20==1)&&(((((!(a4==1)&&(((input==3)&&(a5==1))&&(a0==1)))&&!(a22==1))&&(a27==1))&&!(a18==1))&&(a15==1)))&&(a12==10))&&(a6==1)))){ + a22 = 1; + a3 = 8; + a5 = 0; + a6 = 0; + a15 = 0; + a18 = 1; + a12 = 9; + return -1; + } else if(((!(a27==1)&&((((a18==1)&&(((!(a4==1)&&(!(a15==1)&&((!(a0==1)&&(input==3))&&(a3==4))))&&(a20==1))&&!(a22==1)))&&(a12==9))&&(a5==1)))&&(a6==1))){ + a27 = 1; + a6 = 0; + a5 = 0; + a4 = 1; + a18 = 0; + a12 = 8; + a15 = 1; + return -1; + } else if(((a3==6)&&((a12==10)&&(!(a18==1)&&((a20==1)&&(!(a27==1)&&(((((a6==1)&&(((input==4)&&!(a15==1))&&!(a22==1)))&&(a5==1))&&(a4==1))&&!(a0==1)))))))){ + a12 = 8; + a0 = 1; + a18 = 1; + a15 = 1; + a3 = 5; + a27 = 1; + return -1; + } else if(((a4==1)&&((((a12==12)&&((!(a6==1)&&(((a3==5)&&((a0==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2))))&&!(a15==1)))&&(a27==1)))&&(a20==1))&&(a5==1)))){ + if((a20==1)){ + a18 = 0; + a22 = 0; + a0 = 0; + a5 = 0; + a4 = 0; + a12 = 11; + a3 = 6; + a6 = 1; + a15 = 1; + }else{ + a18 = 0; + a5 = 0; + a22 = 1; + a12 = 11; + a15 = 1; + a3 = 7; + a4 = 0; + } + return -1; + } else if((((a0==1)&&(((((((((((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1)))||(((a3==4)&&(!(a18==1)&&(a22==1)))&&!(a6==1)))&&(input==2))&&!(a5==1))&&(a12==11))&&(a20==1))&&!(a4==1))&&(a27==1)))&&!(a15==1))){ + a5 = 1; + a12 = 8; + a15 = 1; + a18 = 1; + a6 = 1; + a3 = 4; + a4 = 1; + a22 = 1; + return -1; + } else if(((a18==1)&&((a12==8)&&((a20==1)&&((a27==1)&&(((a0==1)&&((a3==6)&&(!(a4==1)&&(((a22==1)&&((input==6)&&!(a5==1)))&&(a6==1)))))&&!(a15==1))))))){ + a5 = 1; + a15 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((((((a18==1)&&(!(a15==1)&&(!(a27==1)&&((((a5==1)&&((input==6)&&(a0==1)))&&(a22==1))&&(a3==8)))))&&(a20==1))&&(a12==10))&&!(a6==1))&&!(a4==1))){ + a27 = 1; + a5 = 0; + a4 = 1; + a18 = 0; + a3 = 4; + a15 = 1; + a12 = 11; + a6 = 1; + return 21; + } else if((!(a22==1)&&((a27==1)&&((((a12==9)&&((a6==1)&&((a5==1)&&((a3==8)&&(!(a15==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&!(a4==1)))))))&&!(a0==1))&&(a20==1))))){ + a22 = 1; + a27 = 0; + a15 = 1; + a0 = 1; + a18 = 0; + a12 = 11; + a5 = 0; + return 21; + } else if((!(a18==1)&&(((a0==1)&&(!(a22==1)&&(!(a5==1)&&(!(a4==1)&&((((((input==5)&&!(a6==1))&&!(a27==1))&&(a12==12))&&(a20==1))&&(a3==4))))))&&(a15==1)))){ + a27 = 1; + a12 = 8; + a4 = 1; + a5 = 1; + a22 = 1; + a6 = 1; + a18 = 1; + return -1; + } else if(((a15==1)&&((!(a27==1)&&((((a4==1)&&((((input==3)&&(((a3==7)&&((a22==1)&&!(a18==1)))||(((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))))&&(a20==1))&&(a5==1)))&&!(a6==1))&&(a12==11)))&&!(a0==1)))){ + a18 = 1; + a22 = 1; + a27 = 1; + a3 = 5; + a12 = 8; + a6 = 1; + a0 = 1; + return -1; + } else if(((a15==1)&&((!(a5==1)&&(((a3==6)&&(!(a27==1)&&(((!(a6==1)&&(!(a4==1)&&(((a18==1)||!(a18==1))&&(input==1))))&&(a20==1))&&(a22==1))))&&(a0==1)))&&(a12==10)))){ + a3 = 7; + a4 = 1; + a12 = 9; + a18 = 0; + a6 = 1; + return 21; + } else if((((a12==11)&&(((a3==5)&&((a15==1)&&((((a0==1)&&(!(a4==1)&&((((a18==1)||!(a18==1))&&(input==2))&&!(a6==1))))&&(a22==1))&&!(a27==1))))&&(a20==1)))&&(a5==1))){ + a12 = 8; + a18 = 1; + a4 = 1; + a3 = 4; + a27 = 1; + a6 = 1; + return -1; + } else if((((a3==5)&&(((a15==1)&&((((!(a4==1)&&(((a18==1)&&((a12==11)&&(input==6)))&&!(a0==1)))&&(a20==1))&&(a6==1))&&(a27==1)))&&(a22==1)))&&!(a5==1))){ + a5 = 1; + a0 = 1; + a12 = 8; + a3 = 4; + a4 = 1; + return -1; + } else if(((a5==1)&&(((((a20==1)&&((((((((a18==1)&&(a22==1))&&(a3==8))||((((a18==1)&&!(a22==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7))))&&(input==4))&&!(a4==1))&&!(a6==1))&&!(a15==1)))&&(a12==11))&&!(a27==1))&&(a0==1)))){ + a4 = 1; + a12 = 8; + a6 = 1; + a15 = 1; + a3 = 4; + a27 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((a6==1)&&((a5==1)&&((a4==1)&&(!(a27==1)&&(((((a0==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==1))&&(a20==1)))&&(a12==11))&&(a3==6))&&!(a15==1))))))){ + a15 = 1; + a3 = 4; + a27 = 1; + a18 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if(((a20==1)&&((a12==12)&&((!(a22==1)&&(!(a4==1)&&((a27==1)&&((((a18==1)&&((!(a15==1)&&(input==6))&&(a0==1)))&&!(a6==1))&&(a3==5)))))&&(a5==1))))){ + if((a3==4)){ + a27 = 0; + a4 = 1; + a5 = 0; + a3 = 7; + a6 = 1; + }else{ + a6 = 1; + a3 = 6; + a27 = 0; + a22 = 1; + a18 = 0; + } + return 21; + } else if(((a5==1)&&(((a12==12)&&(((a4==1)&&(((a6==1)&&((a15==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==6))&&!(a0==1))))&&(a27==1)))&&(a20==1)))&&(a3==4)))){ + a12 = 10; + a22 = 0; + a4 = 0; + a3 = 7; + a18 = 1; + a0 = 1; + return 21; + } else if(((a4==1)&&(((((((((a27==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2)))&&(a5==1))&&!(a15==1))&&!(a6==1))&&(a12==11))&&(a20==1))&&(a3==6))&&(a0==1)))){ + a0 = 0; + a12 = 8; + a22 = 1; + a18 = 1; + a3 = 8; + return -1; + } else if((!(a4==1)&&((a0==1)&&(!(a6==1)&&((a3==8)&&(((a22==1)&&(((a18==1)&&((a20==1)&&(((a12==12)&&(input==5))&&(a27==1))))&&(a5==1)))&&!(a15==1))))))){ + a6 = 1; + a12 = 8; + a3 = 4; + a4 = 1; + a15 = 1; + return -1; + } else if((((((((a20==1)&&((!(a6==1)&&((input==2)&&((((a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a22==1)&&!(a18==1)))))))&&!(a4==1)))&&(a12==11))&&!(a15==1))&&(a5==1))&&!(a0==1))&&!(a27==1))){ + a0 = 1; + a6 = 1; + a12 = 9; + a15 = 1; + a3 = 8; + a27 = 1; + a4 = 1; + a22 = 0; + a18 = 1; + return -1; + } else if(((a15==1)&&((((a20==1)&&((!(a27==1)&&((a6==1)&&(((input==1)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1))))||((!(a18==1)&&(a22==1))&&(a3==7))))&&(a5==1))))&&(a4==1)))&&!(a0==1))&&(a12==10)))){ + a18 = 0; + a5 = 0; + a6 = 0; + a27 = 1; + a0 = 1; + a12 = 11; + a3 = 5; + a22 = 0; + return 21; + } else if(((a6==1)&&(!(a5==1)&&((a0==1)&&(((((a27==1)&&((a15==1)&&((input==2)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5))))))&&(a12==12))&&!(a4==1))&&(a20==1)))))){ + a4 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + a22 = 1; + return -1; + } else if(((a3==5)&&(!(a4==1)&&(!(a22==1)&&((a15==1)&&((!(a6==1)&&(((((a0==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a20==1))&&(a27==1))&&(a12==10)))&&!(a5==1))))))){ + if((a0==1)){ + a0 = 0; + a3 = 8; + a15 = 0; + a18 = 0; + a5 = 1; + }else{ + a22 = 1; + a3 = 7; + a18 = 0; + a6 = 1; + a4 = 1; + } + return -1; + } else if((!(a27==1)&&(!(a6==1)&&((((!(a15==1)&&(((a20==1)&&((input==2)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))))&&(a5==1)))&&(a4==1))&&(a0==1))&&(a12==10))))){ + a15 = 1; + a18 = 1; + a27 = 1; + a22 = 0; + a5 = 0; + a3 = 7; + a12 = 11; + return 26; + } else if((!(a6==1)&&((a22==1)&&(!(a15==1)&&(((a27==1)&&((a12==8)&&((a0==1)&&((((((a18==1)||!(a18==1))&&(input==5))&&!(a5==1))&&(a3==7))&&(a20==1)))))&&!(a4==1)))))){ + a15 = 1; + a18 = 0; + a12 = 11; + a4 = 1; + return 21; + } else if((!(a15==1)&&((a27==1)&&(((a6==1)&&(!(a5==1)&&(!(a0==1)&&(((a3==7)&&((a20==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a12==12))))&&!(a22==1)))))&&!(a4==1))))){ + if((a3==6)){ + a0 = 1; + a22 = 1; + a4 = 1; + a5 = 1; + a18 = 0; + a15 = 1; + a3 = 5; + a12 = 8; + }else{ + a3 = 6; + a5 = 1; + a4 = 1; + a12 = 9; + a22 = 1; + a6 = 0; + a18 = 0; + } + return 26; + } else if(((a3==6)&&(((((!(a27==1)&&(((((a12==11)&&((a6==1)&&(input==6)))&&!(a0==1))&&(a20==1))&&!(a5==1)))&&!(a15==1))&&!(a22==1))&&(a4==1))&&(a18==1)))){ + a12 = 10; + a3 = 8; + a18 = 0; + return -1; + } else if((((((a0==1)&&((((a15==1)&&((a20==1)&&((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==3))&&(a4==1))))&&(a3==6))&&!(a6==1)))&&(a12==9))&&(a5==1))&&(a27==1))){ + a22 = 1; + a18 = 1; + a4 = 0; + a12 = 12; + a3 = 4; + return 26; + } else if((((((a4==1)&&(!(a27==1)&&((!(a15==1)&&(!(a0==1)&&((a3==8)&&((input==6)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))&&(a6==1))))&&(a12==11))&&(a5==1))&&(a20==1))){ + a4 = 0; + a12 = 8; + a22 = 1; + a5 = 0; + a18 = 1; + a3 = 7; + return -1; + } else if((!(a6==1)&&((a20==1)&&(!(a0==1)&&((a3==5)&&((a27==1)&&(!(a4==1)&&(!(a5==1)&&(((a15==1)&&((input==5)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))))&&(a12==12)))))))))){ + if((a18==1)){ + a3 = 8; + a0 = 1; + a5 = 1; + a18 = 1; + a22 = 1; + }else{ + a3 = 4; + a5 = 1; + a27 = 0; + a15 = 0; + a18 = 0; + a12 = 11; + a22 = 1; + a6 = 1; + } + return 26; + } else if((((!(a15==1)&&((a22==1)&&((a3==5)&&((a27==1)&&(!(a5==1)&&(((((input==4)&&((a18==1)||!(a18==1)))&&(a0==1))&&(a20==1))&&(a4==1)))))))&&(a12==11))&&!(a6==1))){ + if((a6==1)){ + a0 = 0; + a12 = 8; + a18 = 0; + a3 = 8; + a6 = 1; + a4 = 0; + a22 = 0; + }else{ + a3 = 7; + a5 = 1; + a18 = 1; + a4 = 0; + a15 = 1; + a22 = 0; + } + return 21; + } else if(((((((a6==1)&&(!(a0==1)&&(!(a5==1)&&((a20==1)&&(((input==5)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&!(a4==1))))))&&(a3==6))&&(a15==1))&&(a12==8))&&!(a27==1))){ + a5 = 1; + a22 = 0; + a0 = 1; + a3 = 5; + a12 = 11; + a15 = 0; + a18 = 0; + return -1; + } else if(((a15==1)&&((a12==10)&&((a20==1)&&((!(a27==1)&&(((a5==1)&&(!(a0==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))||((a3==7)&&((a22==1)&&!(a18==1))))&&(input==4))))&&(a6==1)))&&(a4==1)))))){ + a18 = 0; + a27 = 1; + a0 = 1; + a12 = 8; + a22 = 0; + a3 = 4; + a6 = 0; + return 26; + } else if(((!(a4==1)&&((a3==7)&&((a20==1)&&((a12==12)&&((!(a5==1)&&((!(a22==1)&&((a18==1)&&(!(a0==1)&&(input==3))))&&(a27==1)))&&(a15==1))))))&&(a6==1))){ + a0 = 1; + a4 = 1; + a5 = 1; + a12 = 8; + a3 = 5; + return -1; + } else if(((((!(a0==1)&&((a27==1)&&((a15==1)&&(((a4==1)&&((input==1)&&(((!(a18==1)&&(a22==1))&&(a3==8))||(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1)))))))&&!(a6==1)))))&&(a20==1))&&(a12==9))&&(a5==1))){ + a3 = 7; + a22 = 1; + a0 = 1; + a6 = 1; + a18 = 1; + a12 = 10; + a4 = 0; + return 26; + } else if((!(a27==1)&&((a18==1)&&((a4==1)&&((a3==6)&&(!(a15==1)&&((((a20==1)&&((((input==4)&&(a5==1))&&(a12==9))&&(a22==1)))&&(a6==1))&&(a0==1)))))))){ + a27 = 1; + a3 = 4; + a12 = 8; + a15 = 1; + return -1; + } else if(((((((a27==1)&&((a3==8)&&(!(a6==1)&&((((((a18==1)||!(a18==1))&&(input==1))&&(a20==1))&&(a12==11))&&(a5==1)))))&&!(a0==1))&&!(a15==1))&&(a4==1))&&!(a22==1))){ + a4 = 0; + a18 = 1; + a6 = 1; + a12 = 9; + a3 = 4; + a0 = 1; + return 26; + } else if(((((((a12==11)&&(!(a27==1)&&((a6==1)&&((a20==1)&&((input==5)&&(((a3==7)&&((a22==1)&&!(a18==1)))||(((!(a18==1)&&!(a22==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))))))))&&(a0==1))&&!(a15==1))&&!(a4==1))&&(a5==1))){ + a3 = 4; + a22 = 1; + a27 = 1; + a12 = 8; + a4 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if((((((((a20==1)&&(!(a6==1)&&((a5==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==2))&&(a12==10)))))&&(a0==1))&&(a15==1))&&!(a4==1))&&!(a27==1))&&(a3==7))){ + a6 = 1; + a22 = 0; + a18 = 1; + a5 = 0; + a15 = 0; + return 26; + } else if(((a15==1)&&((a5==1)&&(((a4==1)&&(((a12==9)&&(((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==6))&&!(a27==1))&&!(a0==1))&&(a20==1)))&&(a6==1)))&&(a3==5))))){ + a0 = 1; + a12 = 8; + a22 = 0; + a27 = 1; + a18 = 1; + a3 = 7; + return 26; + } else if(((!(a4==1)&&(!(a15==1)&&(!(a27==1)&&(((a6==1)&&((a20==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a0==1))&&(a3==8))))&&!(a5==1)))))&&(a12==8))){ + a15 = 1; + a22 = 1; + a3 = 4; + a4 = 1; + a18 = 1; + a27 = 1; + a5 = 1; + return -1; + } else if((((a6==1)&&(!(a22==1)&&((a27==1)&&((((a4==1)&&(!(a15==1)&&((a5==1)&&((a3==5)&&((input==6)&&((a18==1)||!(a18==1)))))))&&!(a0==1))&&(a12==11)))))&&(a20==1))){ + a12 = 8; + a3 = 8; + a27 = 0; + a6 = 0; + a18 = 0; + a0 = 1; + return -1; + } else if((((a5==1)&&((!(a6==1)&&((!(a4==1)&&(((a12==11)&&((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==1)))&&(a27==1)))&&(a20==1)))&&!(a15==1)))&&!(a0==1))){ + a0 = 1; + a15 = 1; + a18 = 1; + a3 = 5; + a22 = 1; + return 21; + } else if((((a27==1)&&(!(a6==1)&&(((a20==1)&&(((a0==1)&&((a12==11)&&((input==5)&&(((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1))))||((a3==6)&&((a18==1)&&(a22==1)))))))&&(a5==1)))&&(a4==1))))&&!(a15==1))){ + a15 = 1; + a3 = 5; + a18 = 1; + a22 = 1; + a4 = 0; + return -1; + } else if(((((a27==1)&&((((a20==1)&&(!(a15==1)&&(((a4==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a6==1)))&&(a3==4))))&&!(a0==1))&&(a5==1)))&&(a12==9))&&(a22==1))){ + a12 = 12; + a4 = 0; + a3 = 7; + a18 = 1; + a22 = 0; + a15 = 1; + a6 = 0; + return 26; + } else if((((a20==1)&&((a27==1)&&(((a15==1)&&((a5==1)&&((a0==1)&&(((((a3==5)&&((a22==1)&&(a18==1)))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a22==1)&&!(a18==1)))))&&(input==1))&&!(a6==1)))))&&(a12==8))))&&!(a4==1))){ + a4 = 1; + a18 = 0; + a6 = 1; + a15 = 0; + a3 = 4; + a22 = 0; + return 26; + } else if((((((((a4==1)&&(((a15==1)&&((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==4)))&&(a6==1)))&&(a0==1))&&(a12==11))&&!(a27==1))&&!(a5==1))&&(a20==1))){ + a3 = 4; + a22 = 1; + a27 = 1; + a12 = 8; + a18 = 1; + a5 = 1; + return -1; + } else if((((((((a0==1)&&(((input==6)&&(((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))||((((a3==8)&&((a18==1)&&!(a22==1)))&&(a6==1))||(((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1)))))&&(a12==8)))&&!(a27==1))&&!(a15==1))&&(a20==1))&&(a5==1))&&!(a4==1))){ + a15 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + a4 = 1; + a27 = 1; + a18 = 1; + return -1; + } else if(((a20==1)&&((((a15==1)&&((a4==1)&&(((((input==3)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6))))&&(a27==1))&&(a12==9))&&!(a5==1))))&&!(a0==1))&&!(a6==1)))){ + a18 = 0; + a3 = 5; + a12 = 12; + a4 = 0; + a22 = 1; + a5 = 1; + return -1; + } else if(((!(a6==1)&&((a15==1)&&(!(a27==1)&&((a12==12)&&(((a20==1)&&((a0==1)&&((((a3==7)&&((a18==1)&&(a22==1)))||(((a3==6)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==6))))&&(input==2))))&&!(a5==1))))))&&(a4==1))){ + if((a12==8)){ + a5 = 1; + a27 = 1; + a12 = 8; + a15 = 0; + a18 = 1; + a0 = 0; + a22 = 1; + a3 = 4; + }else{ + a27 = 1; + a6 = 1; + a22 = 0; + a5 = 1; + a18 = 0; + a0 = 0; + a3 = 4; + } + return 26; + } else if(((a5==1)&&(((!(a4==1)&&((((((!(a6==1)&&((a3==4)&&(!(a18==1)&&(a22==1))))||(((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))))&&(input==1))&&(a12==11))&&(a0==1))&&(a20==1)))&&!(a27==1))&&!(a15==1)))){ + a6 = 1; + a12 = 9; + a15 = 1; + a18 = 1; + a3 = 6; + a22 = 0; + return -1; + } else if((!(a5==1)&&(((a27==1)&&(!(a0==1)&&(!(a15==1)&&((((a20==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))||((a3==5)&&((a22==1)&&!(a18==1))))&&(input==2)))&&(a12==10))&&(a6==1)))))&&!(a4==1)))){ + a15 = 1; + a12 = 8; + a0 = 1; + a4 = 1; + a3 = 4; + a22 = 1; + a5 = 1; + a18 = 1; + return -1; + } else if(((a3==4)&&(((a27==1)&&(((a12==11)&&((((((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a0==1))&&!(a4==1))&&!(a6==1))&&(a20==1)))&&!(a5==1)))&&(a15==1)))){ + if((a12==9)){ + a22 = 0; + a18 = 1; + a15 = 0; + a3 = 6; + a6 = 1; + a0 = 0; + }else{ + a12 = 10; + a5 = 1; + a22 = 1; + a4 = 1; + a3 = 8; + a18 = 0; + } + return -1; + } else if((((a20==1)&&((a0==1)&&(((a3==6)&&(((((a4==1)&&(((input==5)&&(a5==1))&&!(a18==1)))&&(a12==11))&&(a6==1))&&!(a15==1)))&&(a27==1))))&&(a22==1))){ + a12 = 10; + a3 = 8; + a6 = 0; + return -1; + } else if(((((a20==1)&&((a5==1)&&(!(a6==1)&&(!(a4==1)&&((((input==3)&&((((a22==1)&&(a18==1))&&(a3==5))||(((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1))))))&&!(a27==1))&&(a15==1))))))&&!(a0==1))&&(a12==10))){ + a27 = 1; + a5 = 0; + a3 = 5; + a18 = 0; + a4 = 1; + a12 = 11; + a6 = 1; + a22 = 0; + return -1; + } else if((!(a5==1)&&(((a0==1)&&(((a20==1)&&((a12==12)&&((!(a4==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&!(a15==1)))&&(a27==1))))&&(a6==1)))&&(a3==4)))){ + a6 = 0; + a3 = 8; + a22 = 1; + a18 = 0; + a12 = 10; + a15 = 1; + return -1; + } else if(((a0==1)&&((((a4==1)&&((a20==1)&&((a12==12)&&(!(a5==1)&&((((((!(a18==1)&&!(a22==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))||((!(a18==1)&&(a22==1))&&(a3==7)))&&(input==3))&&(a6==1))))))&&!(a15==1))&&(a27==1)))){ + a4 = 0; + a3 = 6; + a27 = 0; + a5 = 1; + a6 = 0; + a18 = 1; + a12 = 10; + a22 = 0; + return 21; + } else if((((a20==1)&&((a3==6)&&(!(a27==1)&&((a12==10)&&(((a6==1)&&(!(a15==1)&&((a4==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==4)))))&&!(a5==1))))))&&!(a0==1))){ + a4 = 0; + a18 = 1; + a12 = 9; + a22 = 1; + a5 = 1; + a6 = 0; + return 26; + } else if(((((((a4==1)&&((a27==1)&&((((input==4)&&((((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a22==1)&&!(a18==1))))||((a3==6)&&((a18==1)&&(a22==1)))))&&(a20==1))&&!(a5==1))))&&(a12==10))&&(a6==1))&&!(a15==1))&&(a0==1))){ + a22 = 1; + a3 = 5; + a15 = 1; + a4 = 0; + a18 = 0; + a6 = 0; + return -1; + } else if(((!(a5==1)&&((a3==5)&&(!(a15==1)&&(!(a0==1)&&((a20==1)&&(((a27==1)&&((a12==10)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3))))&&!(a6==1)))))))&&(a4==1))){ + a6 = 1; + a18 = 1; + a3 = 4; + a0 = 1; + a15 = 1; + a5 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if(((((a20==1)&&(((a15==1)&&((!(a0==1)&&(((((input==4)&&((a18==1)||!(a18==1)))&&!(a4==1))&&(a3==8))&&!(a27==1)))&&(a12==10)))&&!(a5==1)))&&!(a22==1))&&(a6==1))){ + if((a4==1)){ + a4 = 1; + a27 = 1; + a0 = 1; + a12 = 8; + a3 = 5; + a22 = 1; + a18 = 0; + a5 = 1; + }else{ + a18 = 1; + a22 = 1; + a15 = 0; + a12 = 8; + a4 = 1; + } + return -1; + } else if(((a20==1)&&(!(a0==1)&&((a5==1)&&((!(a27==1)&&(((!(a4==1)&&((input==3)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))||((!(a18==1)&&(a22==1))&&(a3==8)))))&&(a6==1))&&!(a15==1)))&&(a12==11)))))){ + if((a12==12)){ + a27 = 1; + a4 = 1; + a12 = 8; + a3 = 7; + a18 = 0; + a22 = 1; + }else{ + a12 = 9; + a3 = 8; + a0 = 1; + a18 = 1; + a5 = 0; + a27 = 1; + a22 = 1; + } + return 26; + } else if((!(a5==1)&&((!(a15==1)&&((a3==7)&&((a20==1)&&((a27==1)&&(((((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a6==1))&&(a12==8))&&!(a4==1))))))&&!(a0==1)))){ + a15 = 1; + a3 = 5; + a27 = 0; + a18 = 0; + a0 = 1; + a22 = 1; + a12 = 9; + return 21; + } else if((((a20==1)&&(((!(a27==1)&&((a4==1)&&(!(a6==1)&&((a15==1)&&((input==3)&&(((a3==7)&&((a22==1)&&(a18==1)))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))))))))&&!(a5==1))&&!(a0==1)))&&(a12==8))){ + a0 = 1; + a3 = 4; + a5 = 1; + a22 = 0; + a27 = 1; + a18 = 0; + return 26; + } else if((((a12==8)&&(!(a6==1)&&(((a20==1)&&(!(a15==1)&&((!(a0==1)&&((a4==1)&&((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&(a5==1))))&&(a3==5))))&&(a27==1))){ + a22 = 0; + a3 = 6; + a6 = 1; + a0 = 1; + a27 = 0; + a15 = 1; + a18 = 1; + a12 = 11; + return -1; + } else if(((a22==1)&&(!(a5==1)&&((((((a18==1)&&((a20==1)&&(((a12==9)&&((a27==1)&&(input==4)))&&(a3==8))))&&!(a6==1))&&(a4==1))&&!(a15==1))&&(a0==1))))){ + a22 = 0; + a5 = 1; + a12 = 11; + a3 = 7; + a6 = 1; + return 24; + } else if(((((a3==5)&&(!(a5==1)&&(((!(a6==1)&&(!(a4==1)&&(((input==5)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&(a12==8))))&&(a15==1))&&(a20==1))))&&!(a27==1))&&!(a0==1))){ + a4 = 1; + a18 = 0; + a22 = 1; + a27 = 1; + a3 = 8; + a5 = 1; + a0 = 1; + a6 = 1; + return 21; + } else if((((((a20==1)&&((a4==1)&&(((a22==1)&&(!(a0==1)&&((!(a18==1)&&((a15==1)&&(input==4)))&&(a12==11))))&&!(a5==1))))&&(a3==6))&&(a27==1))&&(a6==1))){ + a22 = 0; + a3 = 8; + a18 = 1; + a0 = 1; + a12 = 10; + return -1; + } else if(((((!(a15==1)&&((a4==1)&&((((((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1)))))&&(input==1))&&(a12==8))&&(a20==1))))&&!(a0==1))&&(a5==1))&&!(a27==1))){ + a15 = 1; + a3 = 4; + a18 = 0; + a27 = 1; + a22 = 0; + a6 = 1; + return 21; + } else if(((a3==5)&&((!(a5==1)&&(!(a15==1)&&((((!(a6==1)&&((a20==1)&&((input==1)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))))&&(a0==1))&&!(a27==1))&&(a4==1))))&&(a12==9)))){ + a3 = 8; + a18 = 0; + a15 = 1; + a22 = 0; + return -1; + } else if(((((a5==1)&&((((a3==8)&&((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&!(a15==1))&&(a20==1))&&!(a0==1)))&&(a6==1))&&(a27==1)))&&(a12==12))&&(a4==1))){ + a12 = 10; + a3 = 5; + a22 = 1; + a18 = 0; + a0 = 1; + return -1; + } else if(((!(a22==1)&&(!(a6==1)&&((a20==1)&&(((((a12==12)&&((!(a4==1)&&((a18==1)&&(input==6)))&&!(a15==1)))&&!(a5==1))&&!(a27==1))&&(a3==4)))))&&(a0==1))){ + a18 = 0; + a15 = 1; + a6 = 1; + a12 = 10; + a22 = 1; + a3 = 6; + a5 = 1; + a4 = 1; + a27 = 1; + return -1; + } else if(((a3==5)&&(!(a15==1)&&((((!(a0==1)&&(!(a5==1)&&(((a4==1)&&((input==3)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))))&&(a12==11))))&&(a6==1))&&!(a27==1))&&(a20==1))))){ + if((a5==1)){ + a22 = 1; + a15 = 1; + a3 = 4; + a12 = 9; + a4 = 0; + a18 = 0; + }else{ + a6 = 0; + a12 = 8; + a22 = 1; + a27 = 1; + a0 = 1; + a18 = 0; + a3 = 4; + } + return -1; + } else if(((a20==1)&&(!(a4==1)&&(((a6==1)&&((!(a27==1)&&(((a12==10)&&((input==3)&&((((a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a18==1)&&!(a22==1)))))))&&!(a0==1)))&&(a5==1)))&&!(a15==1))))){ + a18 = 0; + a3 = 5; + a5 = 0; + a12 = 8; + a22 = 1; + a4 = 1; + return -1; + } else if((((((((((a12==9)&&(((a6==1)&&((input==2)&&!(a18==1)))&&(a20==1)))&&!(a0==1))&&!(a5==1))&&(a15==1))&&!(a27==1))&&(a22==1))&&!(a4==1))&&(a3==4))){ + if((a0==1)){ + a12 = 8; + a3 = 8; + a18 = 1; + a27 = 1; + a6 = 0; + a0 = 1; + a4 = 1; + a5 = 1; + }else{ + a18 = 1; + a12 = 8; + a3 = 5; + a0 = 1; + a22 = 0; + a5 = 1; + } + return 26; + } else if(((a20==1)&&(((((a5==1)&&(!(a6==1)&&(((((input==6)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&(a4==1))&&(a12==9))&&(a3==6))))&&(a27==1))&&(a15==1))&&(a0==1)))){ + if((a22==1)){ + a4 = 0; + a22 = 0; + a3 = 7; + a18 = 0; + a0 = 0; + a12 = 8; + }else{ + a18 = 1; + a3 = 8; + a4 = 0; + a22 = 0; + a6 = 1; + a12 = 12; + } + return 26; + } else if((((a12==8)&&((((((a3==4)&&(!(a5==1)&&(((input==2)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a0==1))))&&(a4==1))&&(a20==1))&&(a6==1))&&!(a15==1)))&&!(a27==1))){ + a12 = 12; + a22 = 1; + a18 = 1; + a3 = 7; + a5 = 1; + return 26; + } else if((!(a4==1)&&(((a15==1)&&((!(a6==1)&&(((((input==1)&&(((a3==6)&&((a22==1)&&!(a18==1)))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6)))))&&(a0==1))&&(a12==11))&&(a20==1)))&&!(a5==1)))&&!(a27==1)))){ + a27 = 1; + a5 = 1; + a22 = 1; + a3 = 4; + a4 = 1; + a18 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if(((((a20==1)&&((((a6==1)&&((a3==4)&&((a4==1)&&(((a15==1)&&((a5==1)&&((a22==1)&&(a18==1))))&&(a12==9)))))||((!(a6==1)&&((a3==8)&&(((a12==8)&&(((!(a22==1)&&(a18==1))&&!(a5==1))&&!(a15==1)))&&!(a4==1))))||(!(a6==1)&&((a3==8)&&(((((!(a18==1)&&!(a22==1))&&!(a5==1))&&!(a15==1))&&(a12==8))&&!(a4==1))))))&&(input==2)))&&(a0==1))&&(a27==1))){ + a4 = 1; + a3 = 4; + a5 = 1; + a22 = 1; + a12 = 8; + a18 = 1; + a6 = 1; + a15 = 1; + return -1; + } else if((!(a15==1)&&(!(a0==1)&&((((a3==6)&&((a20==1)&&(!(a6==1)&&(((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==6))&&(a12==9))&&(a27==1)))))&&!(a5==1))&&(a4==1))))){ + a18 = 0; + a22 = 0; + a12 = 10; + a3 = 5; + a4 = 0; + a0 = 1; + return -1; + } else if(((a6==1)&&((((a5==1)&&(!(a0==1)&&((a4==1)&&((((input==3)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))||((a3==8)&&((a22==1)&&!(a18==1)))))&&(a12==8))&&(a20==1)))))&&!(a27==1))&&!(a15==1)))){ + a22 = 1; + a27 = 1; + a0 = 1; + a18 = 1; + a15 = 1; + a3 = 5; + return 26; + } else if(((a20==1)&&(!(a27==1)&&(((!(a15==1)&&(((a6==1)&&(((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==5))&&(a12==12)))&&(a0==1)))&&!(a4==1))&&!(a5==1))))){ + a18 = 1; + a4 = 1; + a3 = 4; + a27 = 1; + a12 = 8; + a5 = 1; + a15 = 1; + a22 = 1; + return -1; + } else if(((a20==1)&&(!(a6==1)&&((a12==12)&&(!(a15==1)&&((a3==4)&&(((!(a5==1)&&(((input==4)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a27==1)))&&(a0==1))&&(a4==1)))))))){ + a22 = 1; + a3 = 6; + a15 = 1; + a5 = 1; + a12 = 11; + a18 = 0; + return 26; + } else if(((((a20==1)&&(((!(a15==1)&&((a4==1)&&(((input==2)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==7)))||((!(a18==1)&&(a22==1))&&(a3==7))))&&(a12==11))))&&(a6==1))&&(a5==1)))&&!(a0==1))&&(a27==1))){ + a18 = 0; + a0 = 1; + a3 = 4; + a27 = 0; + a22 = 0; + a12 = 9; + a15 = 1; + return -1; + } else if((((a0==1)&&(((a6==1)&&(!(a15==1)&&(!(a5==1)&&(((a20==1)&&((((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==3)))&&!(a4==1)))))&&!(a27==1)))&&(a12==12))){ + a22 = 0; + a3 = 6; + a4 = 1; + a18 = 0; + a12 = 10; + a27 = 1; + return 26; + } else if(((((((((((input==4)&&((((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==7))))&&(a12==8))&&(a15==1))&&(a20==1))&&!(a5==1))&&(a0==1))&&!(a6==1))&&(a4==1))&&!(a27==1))){ + a0 = 0; + a27 = 1; + a6 = 1; + a18 = 1; + a5 = 1; + a22 = 0; + a3 = 6; + return 21; + } else if(((((a6==1)&&((((!(a15==1)&&((!(a5==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==6)))&&!(a4==1)))&&(a20==1))&&!(a0==1))&&(a3==4)))&&(a12==11))&&(a27==1))){ + a22 = 1; + a4 = 1; + a18 = 1; + a0 = 1; + a15 = 1; + a12 = 8; + a5 = 1; + return -1; + } else if(((!(a6==1)&&(((!(a15==1)&&((((((input==4)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a27==1))&&(a20==1))&&(a12==11))&&(a4==1)))&&(a5==1))&&(a3==6)))&&(a0==1))){ + a22 = 0; + a0 = 0; + a12 = 10; + a18 = 0; + a3 = 7; + a6 = 1; + return 24; + } else if(((((a6==1)&&((a18==1)&&(((a3==5)&&(!(a27==1)&&(((((a0==1)&&(input==4))&&(a15==1))&&(a22==1))&&(a20==1))))&&(a4==1))))&&(a5==1))&&(a12==12))){ + a18 = 0; + a3 = 7; + a22 = 0; + a27 = 1; + return 21; + } else if((((a0==1)&&((((((a5==1)&&(!(a6==1)&&(((input==6)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a4==1))))&&(a20==1))&&(a3==7))&&!(a15==1))&&(a27==1)))&&(a12==12))){ + a22 = 0; + a3 = 4; + a6 = 1; + a18 = 1; + a5 = 0; + a12 = 11; + return -1; + } else if(((((a15==1)&&((((a12==8)&&((((a0==1)&&((a3==6)&&((input==1)&&(a27==1))))&&!(a18==1))&&(a20==1)))&&(a22==1))&&!(a6==1)))&&!(a5==1))&&!(a4==1))){ + a4 = 1; + a5 = 1; + a3 = 4; + a6 = 1; + a18 = 1; + return -1; + } else if((((a20==1)&&((((a6==1)&&(!(a4==1)&&(!(a15==1)&&((a12==8)&&(((((a22==1)&&!(a18==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1)))))&&(input==6))))))&&(a0==1))&&!(a27==1)))&&(a5==1))){ + a15 = 1; + a6 = 0; + a12 = 11; + a5 = 0; + a4 = 1; + a22 = 1; + a3 = 6; + a18 = 0; + return 21; + } else if(((((a5==1)&&((!(a0==1)&&(((((a4==1)&&((a12==9)&&((input==5)&&((a18==1)||!(a18==1)))))&&(a20==1))&&(a6==1))&&(a22==1)))&&(a15==1)))&&(a27==1))&&(a3==4))){ + a18 = 1; + a5 = 0; + a12 = 12; + a6 = 0; + a0 = 1; + a22 = 0; + return 21; + } else if(((a20==1)&&(((a5==1)&&(!(a27==1)&&(!(a15==1)&&(((!(a0==1)&&((input==1)&&((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7)))||(((a22==1)&&!(a18==1))&&(a3==7)))))&&(a12==11))&&(a6==1)))))&&(a4==1)))){ + a27 = 1; + a12 = 10; + a15 = 1; + a18 = 0; + a22 = 0; + a5 = 0; + a3 = 5; + return 21; + } else if(((a3==7)&&((!(a0==1)&&((((a12==10)&&((!(a27==1)&&((a22==1)&&(!(a4==1)&&((input==1)&&!(a15==1)))))&&!(a6==1)))&&(a20==1))&&!(a18==1)))&&(a5==1)))){ + if((a15==1)){ + a3 = 4; + a15 = 1; + a12 = 11; + a4 = 1; + a5 = 0; + a22 = 0; + a18 = 1; + }else{ + a18 = 1; + a12 = 8; + a27 = 1; + a4 = 1; + a6 = 1; + a15 = 1; + a3 = 4; + a0 = 1; + a22 = 0; + } + return 24; + } else if((((((a18==1)&&(!(a27==1)&&(((a3==8)&&(((((input==2)&&(a15==1))&&(a5==1))&&!(a0==1))&&(a12==10)))&&(a20==1))))&&(a6==1))&&!(a22==1))&&(a4==1))){ + a4 = 0; + a12 = 9; + a18 = 0; + a22 = 1; + a0 = 1; + return 21; + } else if(((a27==1)&&((a20==1)&&((a15==1)&&(((((a6==1)&&(!(a4==1)&&(!(a0==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==5)))))&&(a12==9))&&!(a5==1))&&(a3==6)))))){ + a18 = 0; + a15 = 0; + a0 = 1; + a3 = 7; + a4 = 1; + a22 = 0; + a12 = 11; + return 21; + } else if(((a12==8)&&(((a20==1)&&((a15==1)&&((a27==1)&&((!(a0==1)&&((a5==1)&&((input==2)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1)))))))&&(a6==1)))))&&!(a4==1)))){ + a15 = 0; + a12 = 10; + a0 = 1; + a3 = 5; + a18 = 0; + a22 = 1; + return -1; + } else if(((((((!(a0==1)&&(((a3==8)&&((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==3))&&!(a6==1)))&&!(a15==1)))&&(a4==1))&&(a5==1))&&(a12==9))&&!(a27==1))&&(a20==1))){ + if((a6==1)){ + a22 = 0; + a12 = 11; + a15 = 1; + a3 = 4; + a5 = 0; + a18 = 1; + a27 = 1; + }else{ + a4 = 0; + a6 = 1; + a12 = 8; + a3 = 4; + a15 = 1; + a27 = 1; + a22 = 1; + a18 = 1; + a0 = 1; + } + return 24; + } else if(((((!(a5==1)&&((a0==1)&&(((a20==1)&&((a12==10)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==2))))&&(a15==1))))&&(a6==1))&&(a27==1))&&(a4==1))){ + a5 = 1; + a15 = 0; + a22 = 1; + a3 = 6; + a18 = 0; + return -1; + } else if((((((a3==5)&&((((((((input==2)&&!(a18==1))&&!(a15==1))&&(a12==8))&&(a20==1))&&(a0==1))&&(a5==1))&&(a27==1)))&&(a22==1))&&(a4==1))&&(a6==1))){ + a3 = 4; + a15 = 1; + a18 = 1; + return -1; + } else if(((!(a0==1)&&((a20==1)&&((!(a5==1)&&(!(a15==1)&&((((((a6==1)&&((a3==8)&&((a18==1)&&!(a22==1))))||(((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1)))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1)))&&(input==5))&&(a12==8))))&&!(a4==1))))&&(a27==1))){ + a0 = 1; + a22 = 0; + a6 = 0; + a4 = 1; + a18 = 1; + a5 = 1; + a3 = 8; + a12 = 10; + a15 = 1; + return -1; + } else if((!(a4==1)&&(((a27==1)&&(((a3==5)&&(!(a15==1)&&((a12==12)&&((a6==1)&&((a5==1)&&((a20==1)&&(((a18==1)||!(a18==1))&&(input==2))))))))&&(a0==1)))&&(a22==1)))){ + a22 = 0; + a18 = 1; + a3 = 7; + a4 = 1; + a27 = 0; + return 21; + } else if(((a3==7)&&((a20==1)&&((a5==1)&&(!(a15==1)&&(((((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4))&&!(a0==1))&&(a12==12))&&(a6==1))&&!(a4==1))&&(a27==1))))))){ + a15 = 1; + a5 = 0; + a12 = 11; + a18 = 0; + a22 = 1; + a3 = 6; + return -1; + } else if(((!(a5==1)&&((a0==1)&&(((a15==1)&&((a3==8)&&(((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==6))&&(a27==1))&&(a12==12))&&(a6==1))))&&(a4==1))))&&(a20==1))){ + a6 = 0; + a5 = 1; + a12 = 10; + a22 = 1; + a18 = 0; + a3 = 7; + a15 = 0; + return -1; + } else if((!(a15==1)&&((((a20==1)&&((((a3==4)&&(!(a4==1)&&(((input==1)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&!(a5==1))))&&!(a6==1))&&(a0==1)))&&!(a27==1))&&(a12==9)))){ + a3 = 6; + a22 = 0; + a15 = 1; + a18 = 1; + return -1; + } else if((((a12==11)&&(!(a5==1)&&(!(a27==1)&&((a4==1)&&(((a3==6)&&((a15==1)&&(!(a22==1)&&((a20==1)&&((a0==1)&&(input==6))))))&&!(a6==1))))))&&(a18==1))){ + a22 = 1; + a27 = 1; + a12 = 8; + a5 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if((!(a0==1)&&(((a6==1)&&((a5==1)&&((((a20==1)&&(((a3==6)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1)))&&!(a4==1)))&&(a12==11))&&!(a27==1))))&&(a15==1)))){ + if((a12==8)){ + a3 = 7; + a12 = 8; + a6 = 0; + a18 = 1; + a22 = 0; + a4 = 1; + a0 = 1; + a27 = 1; + }else{ + a22 = 1; + a12 = 8; + a0 = 1; + a3 = 4; + a27 = 1; + a18 = 1; + } + return 21; + } else if(((a5==1)&&(((!(a22==1)&&(!(a27==1)&&((a18==1)&&((a20==1)&&(((a3==7)&&(((a6==1)&&(input==2))&&(a12==8)))&&(a15==1))))))&&!(a4==1))&&(a0==1)))){ + a18 = 0; + a3 = 8; + a12 = 12; + a27 = 1; + a4 = 1; + return 21; + } else if(((a12==11)&&((a5==1)&&(((a0==1)&&(!(a15==1)&&(((((a20==1)&&(((input==3)&&(a6==1))&&!(a4==1)))&&(a18==1))&&(a27==1))&&(a3==5))))&&!(a22==1))))){ + a3 = 4; + a12 = 10; + a18 = 0; + return 21; + } else if(((a0==1)&&(((a12==11)&&(((a6==1)&&((a3==8)&&(!(a5==1)&&(!(a4==1)&&(((a20==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a27==1))))))&&(a15==1)))&&(a22==1)))){ + a4 = 1; + a6 = 0; + a3 = 4; + a15 = 0; + a12 = 10; + a18 = 1; + a22 = 0; + return -1; + } else if((((a20==1)&&(!(a27==1)&&((((!(a5==1)&&((((((a22==1)&&(a18==1))&&(a3==8))||((((a18==1)&&!(a22==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7))))&&(input==5))&&(a15==1)))&&(a6==1))&&(a0==1))&&!(a4==1))))&&(a12==10))){ + a18 = 0; + a3 = 6; + a0 = 0; + a22 = 1; + a15 = 0; + a12 = 9; + a27 = 1; + return 21; + } else if(((a3==6)&&((a27==1)&&((a12==8)&&((((((!(a5==1)&&(((input==1)&&!(a6==1))&&(a15==1)))&&!(a18==1))&&!(a4==1))&&(a20==1))&&(a22==1))&&!(a0==1)))))){ + a0 = 1; + a3 = 5; + a5 = 1; + a12 = 12; + return 24; + } else if((!(a27==1)&&((a15==1)&&((!(a0==1)&&((a12==9)&&((a20==1)&&((a3==6)&&(!(a4==1)&&(((input==4)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&(a6==1)))))))&&!(a5==1))))){ + a12 = 8; + a27 = 1; + a0 = 1; + a4 = 1; + a18 = 0; + a22 = 1; + a5 = 1; + return -1; + } else if((!(a0==1)&&((((((a4==1)&&((a6==1)&&(((a22==1)&&(((a12==10)&&(input==4))&&!(a5==1)))&&(a20==1))))&&!(a15==1))&&(a18==1))&&(a3==4))&&(a27==1)))){ + a12 = 8; + a5 = 1; + a0 = 1; + a15 = 1; + return -1; + } else if(((((a4==1)&&((!(a5==1)&&(((!(a22==1)&&((((input==6)&&((a18==1)||!(a18==1)))&&(a20==1))&&(a15==1)))&&(a27==1))&&(a12==11)))&&!(a6==1)))&&(a0==1))&&(a3==5))){ + a4 = 0; + a5 = 1; + a27 = 0; + a6 = 1; + a3 = 7; + a18 = 0; + a15 = 0; + return 26; + } else if(((a20==1)&&((a12==12)&&((a27==1)&&((!(a4==1)&&(((((((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1))||((((a3==8)&&(!(a22==1)&&(a18==1)))&&(a6==1))||(((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))))&&(input==2))&&!(a5==1))&&(a0==1)))&&(a15==1)))))){ + a12 = 8; + a4 = 1; + a22 = 1; + a6 = 1; + a3 = 4; + a5 = 1; + a18 = 1; + return -1; + } else if(((((a5==1)&&(((((!(a0==1)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==3)))&&!(a4==1))&&!(a27==1))&&(a6==1))&&(a20==1)))&&!(a15==1))&&(a12==11))){ + a3 = 7; + a12 = 8; + a4 = 1; + a22 = 1; + a27 = 1; + a0 = 1; + a18 = 0; + a15 = 1; + return 21; + } else if(((a0==1)&&(!(a27==1)&&((a3==8)&&(((((a20==1)&&(((a5==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5)))&&!(a15==1)))&&!(a6==1))&&(a4==1))&&(a12==10)))))){ + a6 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + a0 = 0; + a15 = 1; + a22 = 1; + a27 = 1; + a4 = 0; + return 21; + } else if(((a27==1)&&(((!(a0==1)&&(((!(a15==1)&&((a20==1)&&((input==2)&&(((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1)))))))&&(a12==9))&&(a4==1)))&&!(a6==1))&&(a5==1)))){ + a18 = 1; + a12 = 8; + a15 = 1; + a0 = 1; + a22 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if(((!(a0==1)&&(((a20==1)&&(((a12==12)&&((a27==1)&&(((((input==6)&&(a18==1))&&(a22==1))&&(a15==1))&&(a6==1))))&&!(a5==1)))&&(a4==1)))&&(a3==8))){ + a0 = 1; + a12 = 8; + a15 = 0; + a6 = 0; + a3 = 6; + return 21; + } else if(((a3==5)&&((((a27==1)&&((a22==1)&&((!(a5==1)&&((((((a18==1)||!(a18==1))&&(input==3))&&(a4==1))&&!(a0==1))&&(a12==12)))&&!(a15==1))))&&(a20==1))&&!(a6==1)))){ + if((a18==1)){ + a15 = 1; + a4 = 0; + a18 = 1; + a0 = 1; + a3 = 4; + a5 = 1; + a12 = 8; + }else{ + a12 = 10; + a27 = 0; + a5 = 1; + a18 = 1; + a3 = 4; + a22 = 0; + } + return -1; + } else if(((((!(a4==1)&&(((a3==6)&&((((a5==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a15==1)))&&!(a22==1))&&(a20==1)))&&(a27==1)))&&(a12==12))&&(a6==1))&&(a0==1))){ + a3 = 8; + a5 = 0; + a22 = 1; + a12 = 9; + a18 = 1; + a6 = 0; + a15 = 0; + return -1; + } else if((!(a15==1)&&((!(a6==1)&&(((a12==10)&&(((a20==1)&&(!(a5==1)&&((((a3==7)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6))))&&(input==6))))&&(a4==1)))&&(a0==1)))&&!(a27==1)))){ + a5 = 1; + a12 = 8; + a22 = 1; + a15 = 1; + a27 = 1; + a3 = 4; + a18 = 1; + a6 = 1; + return -1; + } else if(((a6==1)&&((!(a15==1)&&((a3==5)&&((a0==1)&&((!(a27==1)&&((((input==2)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a12==12))&&(a20==1)))&&(a5==1)))))&&(a4==1)))){ + a12 = 8; + a27 = 1; + a15 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + return -1; + } else if((((a4==1)&&((a12==9)&&(((((a0==1)&&(((((input==6)&&((a18==1)||!(a18==1)))&&!(a6==1))&&!(a15==1))&&(a20==1)))&&(a27==1))&&(a5==1))&&(a3==8))))&&(a22==1))){ + a3 = 5; + a12 = 12; + a6 = 1; + a18 = 1; + return 26; + } else if((((a27==1)&&(((((a22==1)&&(!(a0==1)&&((((a6==1)&&((input==2)&&((a18==1)||!(a18==1))))&&(a3==6))&&(a20==1))))&&!(a15==1))&&(a12==11))&&(a5==1)))&&(a4==1))){ + a18 = 1; + a15 = 1; + a3 = 4; + a12 = 8; + a0 = 1; + return -1; + } else if(((a12==9)&&(!(a27==1)&&(((!(a15==1)&&((!(a0==1)&&((!(a6==1)&&((input==3)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))&&(a3==7)))&&!(a5==1)))&&(a4==1))&&(a20==1))))){ + a12 = 8; + a6 = 1; + a27 = 1; + a22 = 1; + a0 = 1; + a18 = 1; + a5 = 1; + a4 = 0; + return -1; + } else if(((((((!(a18==1)&&(!(a4==1)&&((a20==1)&&((a12==8)&&(((a3==8)&&(input==3))&&(a15==1))))))&&(a27==1))&&(a22==1))&&(a6==1))&&(a5==1))&&!(a0==1))){ + a22 = 0; + a0 = 1; + a12 = 10; + a27 = 0; + a15 = 0; + a18 = 1; + a3 = 4; + return 21; + } else if((!(a27==1)&&((a5==1)&&((a20==1)&&((a12==8)&&((a0==1)&&((input==5)&&((!(a6==1)&&((a3==8)&&(!(a4==1)&&((a15==1)&&(!(a18==1)&&!(a22==1))))))||(((a3==4)&&((a4==1)&&(((a18==1)&&(a22==1))&&!(a15==1))))&&(a6==1)))))))))){ + a12 = 11; + a3 = 5; + a6 = 1; + a18 = 1; + a22 = 1; + a15 = 0; + a4 = 0; + return 21; + } else if(((a3==4)&&(((a5==1)&&((((a27==1)&&((((((input==3)&&((a18==1)||!(a18==1)))&&(a22==1))&&(a20==1))&&(a4==1))&&(a0==1)))&&(a6==1))&&(a12==8)))&&!(a15==1)))){ + if((a4==1)){ + a22 = 0; + a12 = 11; + a3 = 8; + a6 = 0; + a18 = 1; + a0 = 0; + }else{ + a22 = 0; + a3 = 5; + a6 = 0; + a12 = 11; + a0 = 0; + a18 = 1; + a4 = 0; + } + return 21; + } else if((((a27==1)&&(((((!(a6==1)&&((!(a4==1)&&(((a5==1)&&(!(a22==1)&&!(a18==1)))&&!(a15==1)))&&(a3==8)))||(((a3==4)&&(((((a18==1)&&(a22==1))&&!(a5==1))&&(a15==1))&&(a4==1)))&&(a6==1)))&&(input==3))&&(a20==1))&&(a12==11)))&&(a0==1))){ + a18 = 1; + a15 = 1; + a3 = 8; + a22 = 1; + a6 = 1; + a4 = 1; + a5 = 1; + return 21; + } else if((((a12==12)&&((a20==1)&&(!(a6==1)&&((a27==1)&&(((!(a4==1)&&((input==5)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))||(((a22==1)&&!(a18==1))&&(a3==5)))))&&(a0==1))&&(a5==1))))))&&!(a15==1))){ + if((a5==1)){ + a3 = 5; + a22 = 1; + a5 = 0; + a12 = 9; + a0 = 0; + a18 = 1; + }else{ + a5 = 0; + a6 = 1; + a3 = 8; + a4 = 1; + a22 = 1; + a0 = 0; + a12 = 11; + a18 = 0; + } + return -1; + } else if(((a15==1)&&((!(a5==1)&&((a0==1)&&(((a27==1)&&((a4==1)&&(((a12==11)&&((a3==7)&&((a6==1)&&(input==3))))&&(a22==1))))&&(a20==1))))&&!(a18==1)))){ + if((a22==1)){ + a3 = 8; + a4 = 0; + a18 = 1; + a5 = 1; + a0 = 0; + a15 = 0; + a12 = 8; + }else{ + a0 = 0; + a6 = 0; + a12 = 10; + a5 = 1; + a3 = 8; + a22 = 0; + } + return -1; + } else if((((a27==1)&&(((a20==1)&&(!(a4==1)&&((a5==1)&&(((a6==1)&&((a3==6)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==6))))&&!(a0==1)))))&&(a12==9)))&&(a15==1))){ + a4 = 1; + a27 = 0; + a12 = 11; + a0 = 1; + a15 = 0; + a18 = 1; + a3 = 8; + a5 = 0; + a22 = 1; + return 21; + } else if((!(a4==1)&&((a15==1)&&(((((!(a0==1)&&(((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1)))&&(input==2)))&&(a20==1))&&!(a5==1))&&(a27==1))&&(a12==8))))){ + a18 = 1; + a22 = 1; + a5 = 1; + a3 = 4; + a4 = 1; + a0 = 1; + a6 = 1; + return -1; + } else if(((((!(a5==1)&&(((!(a18==1)&&((((a0==1)&&((input==6)&&(a20==1)))&&(a22==1))&&(a4==1)))&&(a6==1))&&(a3==7)))&&(a15==1))&&(a12==11))&&!(a27==1))){ + a27 = 1; + a18 = 1; + a22 = 0; + a3 = 6; + a12 = 12; + return 24; + } else if((!(a4==1)&&(!(a5==1)&&(!(a15==1)&&((((a3==6)&&((a6==1)&&((a20==1)&&((a18==1)&&((a27==1)&&((input==1)&&(a22==1)))))))&&!(a0==1))&&(a12==12)))))){ + a5 = 1; + a4 = 1; + a3 = 5; + a0 = 1; + a18 = 0; + a12 = 8; + a15 = 1; + a22 = 0; + return 21; + } else if(((a3==7)&&((((((a22==1)&&((a27==1)&&(((((a0==1)&&(input==5))&&(a6==1))&&(a4==1))&&(a20==1))))&&(a12==12))&&(a15==1))&&!(a18==1))&&!(a5==1)))){ + a5 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + return -1; + } else if(((a4==1)&&(!(a15==1)&&((a5==1)&&((!(a27==1)&&((((input==3)&&(((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1))))&&(a12==8))&&(a0==1)))&&(a20==1)))))){ + a12 = 11; + a4 = 0; + a22 = 1; + a27 = 1; + a6 = 1; + a15 = 1; + a3 = 7; + a5 = 0; + a18 = 0; + return 26; + } else if((((((((!(a27==1)&&((a22==1)&&(!(a15==1)&&((a3==5)&&(!(a0==1)&&(input==5))))))&&(a4==1))&&!(a5==1))&&(a12==9))&&(a18==1))&&(a6==1))&&(a20==1))){ + if((a15==1)){ + a12 = 10; + a4 = 0; + a18 = 0; + a0 = 1; + }else{ + a6 = 0; + a5 = 1; + a4 = 0; + a0 = 1; + a3 = 7; + a12 = 11; + a27 = 1; + } + return -1; + } else if(((a20==1)&&((!(a4==1)&&(!(a0==1)&&(!(a6==1)&&((a12==11)&&((((input==3)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))||((a3==6)&&(!(a18==1)&&(a22==1)))))&&(a15==1))&&!(a5==1))))))&&(a27==1)))){ + a22 = 1; + a6 = 1; + a5 = 1; + a18 = 1; + a0 = 1; + a3 = 7; + a27 = 0; + return 21; + } else if((((a0==1)&&((a6==1)&&((((a12==10)&&((a20==1)&&((a3==4)&&(!(a15==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==6))))))&&(a4==1))&&(a27==1))))&&!(a5==1))){ + a18 = 0; + a22 = 1; + a15 = 1; + a3 = 7; + return -1; + } else if(((((a5==1)&&(((((a12==11)&&(((a6==1)&&(((input==3)&&!(a22==1))&&(a15==1)))&&(a4==1)))&&!(a18==1))&&(a0==1))&&(a20==1)))&&(a27==1))&&(a3==4))){ + a22 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if(((a27==1)&&((a0==1)&&((((a12==8)&&((a20==1)&&(((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==6))&&(a6==1))&&(a4==1))&&(a3==6))))&&!(a5==1))&&(a15==1))))){ + if((a27==1)){ + a0 = 0; + a5 = 1; + a22 = 1; + a15 = 0; + a18 = 0; + a3 = 4; + a12 = 12; + }else{ + a22 = 0; + a18 = 0; + a3 = 5; + a15 = 0; + a12 = 9; + } + return 24; + } else if((((a4==1)&&((a18==1)&&((a12==12)&&(((!(a27==1)&&((a3==8)&&((a20==1)&&(((input==5)&&!(a5==1))&&(a6==1)))))&&(a0==1))&&(a15==1)))))&&!(a22==1))){ + a5 = 1; + a12 = 8; + a22 = 1; + a27 = 1; + a3 = 4; + return -1; + } else if((((((a4==1)&&((a12==8)&&((a3==5)&&((!(a6==1)&&((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==6))&&(a15==1)))&&!(a27==1)))))&&(a20==1))&&!(a0==1))&&!(a5==1))){ + if((a18==1)){ + a3 = 7; + a22 = 0; + a5 = 1; + a18 = 0; + a27 = 1; + a15 = 0; + a0 = 1; + a12 = 9; + }else{ + a18 = 0; + a6 = 1; + a4 = 0; + a12 = 9; + a0 = 1; + a22 = 1; + a27 = 1; + } + return 21; + } else if(((!(a27==1)&&((a5==1)&&((a0==1)&&((a12==9)&&((a15==1)&&(((a6==1)&&((input==1)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))))&&!(a4==1)))))))&&(a20==1))){ + a27 = 1; + a12 = 8; + a22 = 1; + a4 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((((a4==1)&&((((a27==1)&&((((a12==11)&&((a0==1)&&(((input==6)&&(a20==1))&&(a22==1))))&&(a5==1))&&(a15==1)))&&(a3==7))&&(a18==1)))&&!(a6==1))){ + if((a3==7)){ + a4 = 0; + a6 = 1; + a12 = 8; + a0 = 0; + a3 = 4; + }else{ + a22 = 0; + a12 = 10; + a15 = 0; + a5 = 0; + } + return 26; + } else if(((a12==10)&&(((a20==1)&&(!(a4==1)&&((!(a27==1)&&(!(a6==1)&&((a5==1)&&((input==6)&&(((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))))))&&!(a15==1))))&&(a0==1)))){ + a18 = 0; + a27 = 1; + a15 = 1; + a12 = 9; + a4 = 1; + a3 = 8; + a0 = 0; + a6 = 1; + a22 = 0; + return 26; + } else if(((((a5==1)&&((!(a27==1)&&(!(a4==1)&&(((((((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a22==1)&&!(a18==1))))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==6))&&(a6==1))&&(a12==12))))&&!(a15==1)))&&(a20==1))&&(a0==1))){ + a12 = 10; + a15 = 1; + a18 = 0; + a22 = 1; + a27 = 1; + a3 = 4; + return 21; + } else if(((a15==1)&&((a20==1)&&((a27==1)&&((a4==1)&&((a0==1)&&(((((input==6)&&((((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==7)))||(((a22==1)&&(a18==1))&&(a3==8))))&&!(a5==1))&&!(a6==1))&&(a12==11)))))))){ + a5 = 1; + a22 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if(((a6==1)&&((a5==1)&&(!(a0==1)&&((a15==1)&&((a12==12)&&(((a20==1)&&(((input==3)&&((((a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a18==1)&&!(a22==1))))))&&!(a27==1)))&&(a4==1)))))))){ + a18 = 1; + a15 = 0; + a22 = 0; + a6 = 0; + a27 = 1; + a4 = 0; + a3 = 8; + a12 = 9; + return 21; + } else if((!(a18==1)&&(((((a0==1)&&(!(a15==1)&&(!(a4==1)&&((a3==6)&&((((input==1)&&(a22==1))&&(a12==11))&&(a20==1))))))&&(a27==1))&&(a6==1))&&(a5==1)))){ + a18 = 1; + a3 = 8; + a4 = 1; + return -1; + } else if((!(a5==1)&&((a3==5)&&((!(a0==1)&&(!(a4==1)&&(((a12==10)&&(!(a22==1)&&(!(a18==1)&&(((a27==1)&&(input==2))&&!(a6==1)))))&&(a20==1))))&&(a15==1))))){ + a0 = 1; + a3 = 4; + a15 = 0; + a12 = 8; + a4 = 1; + a6 = 1; + a22 = 1; + return 21; + } else if((((a27==1)&&((a12==9)&&(((((!(a5==1)&&((!(a6==1)&&((input==3)&&(a22==1)))&&!(a4==1)))&&(a20==1))&&(a0==1))&&(a3==5))&&!(a15==1))))&&!(a18==1))){ + a15 = 1; + a12 = 8; + a18 = 1; + a4 = 1; + a6 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if(((((a20==1)&&((a22==1)&&((a4==1)&&((a12==9)&&(((a5==1)&&(!(a18==1)&&((a3==8)&&((a27==1)&&(input==2)))))&&(a0==1))))))&&!(a6==1))&&(a15==1))){ + a12 = 12; + a15 = 0; + a3 = 4; + return 21; + } else if(((((a3==8)&&((((((!(a4==1)&&(!(a0==1)&&(((a18==1)||!(a18==1))&&(input==3))))&&(a5==1))&&(a15==1))&&(a20==1))&&(a22==1))&&(a12==11)))&&(a27==1))&&!(a6==1))){ + a22 = 0; + a15 = 0; + a18 = 1; + a3 = 6; + a5 = 0; + a6 = 1; + return -1; + } else if(((!(a4==1)&&((a6==1)&&((((!(a22==1)&&(((a27==1)&&(!(a5==1)&&(((a18==1)||!(a18==1))&&(input==2))))&&(a20==1)))&&!(a15==1))&&(a3==5))&&(a0==1))))&&(a12==9))){ + a5 = 1; + a3 = 6; + a22 = 1; + a15 = 1; + a27 = 0; + a18 = 0; + return 21; + } else if(((a12==8)&&((a0==1)&&(((a3==6)&&((a6==1)&&((!(a5==1)&&(!(a4==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==6))&&!(a15==1))))&&(a20==1))))&&(a27==1))))){ + a18 = 0; + a22 = 1; + a12 = 11; + a5 = 1; + a3 = 5; + return 21; + } return calculate_output30(input); + } + + int calculate_output30(int input) { + if(((a6==1)&&(!(a5==1)&&((a20==1)&&(!(a27==1)&&((a12==10)&&((a0==1)&&(((((input==1)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&!(a4==1))&&!(a15==1))&&(a3==8))))))))){ + a18 = 1; + a12 = 11; + a0 = 0; + a5 = 1; + a3 = 6; + a22 = 0; + a27 = 1; + a4 = 1; + return 21; + } else if((!(a6==1)&&((((!(a18==1)&&((a0==1)&&(((a12==8)&&((a5==1)&&(((a20==1)&&(input==3))&&(a15==1))))&&!(a27==1))))&&(a4==1))&&(a3==6))&&!(a22==1)))){ + a18 = 1; + a22 = 1; + a27 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if((((a27==1)&&((a0==1)&&((((((((a3==4)&&(((a22==1)&&!(a18==1))&&!(a4==1)))&&(a6==1))||((!(a6==1)&&(((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8)))||(((((a18==1)&&(a22==1))&&!(a4==1))&&(a3==4))&&(a6==1))))&&(input==6))&&!(a5==1))&&(a20==1))&&(a12==9))))&&!(a15==1))){ + a22 = 0; + a4 = 1; + a6 = 0; + a12 = 12; + a5 = 1; + a18 = 0; + a3 = 5; + return 26; + } else if((((a27==1)&&((a15==1)&&((((((((input==3)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&(a20==1))&&!(a5==1))&&(a6==1))&&!(a0==1))&&(a3==4))&&!(a4==1))))&&(a12==10))){ + a0 = 1; + a6 = 0; + a15 = 0; + a18 = 1; + a5 = 1; + a3 = 6; + a22 = 1; + return -1; + } else if(((a22==1)&&((a4==1)&&(((((a20==1)&&(!(a18==1)&&((a12==11)&&((!(a15==1)&&((input==4)&&(a0==1)))&&(a5==1)))))&&(a27==1))&&(a3==5))&&!(a6==1))))){ + a3 = 4; + a18 = 1; + return -1; + } else if(((a0==1)&&((!(a6==1)&&((a5==1)&&((!(a22==1)&&(((a27==1)&&((!(a15==1)&&((input==6)&&(a20==1)))&&(a4==1)))&&(a12==12)))&&(a3==5))))&&!(a18==1)))){ + a3 = 6; + a27 = 0; + a15 = 1; + a4 = 0; + return 26; + } else if(((!(a5==1)&&(!(a15==1)&&((a3==8)&&(!(a0==1)&&(((((a22==1)&&((a27==1)&&((input==5)&&(a12==9))))&&(a20==1))&&!(a18==1))&&(a4==1))))))&&!(a6==1))){ + a6 = 1; + a0 = 1; + a18 = 1; + a15 = 1; + a5 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((!(a4==1)&&(!(a27==1)&&((a6==1)&&((a12==10)&&((!(a5==1)&&(((((a3==7)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a20==1))&&(a15==1))&&!(a22==1)))&&!(a0==1))))))){ + a22 = 1; + a12 = 9; + a18 = 0; + a27 = 1; + a5 = 1; + a3 = 4; + return -1; + } else if(((a18==1)&&((!(a22==1)&&(((a0==1)&&(((a4==1)&&(((a6==1)&&((a12==11)&&((input==6)&&(a15==1))))&&(a3==4)))&&(a20==1)))&&(a5==1)))&&(a27==1)))){ + a12 = 8; + a22 = 1; + return -1; + } else if((((a27==1)&&((a5==1)&&(((a3==6)&&((a12==11)&&((a0==1)&&(!(a6==1)&&(!(a4==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a15==1)))))))&&(a20==1))))&&!(a22==1))){ + a18 = 0; + a12 = 12; + a3 = 4; + a4 = 1; + return 26; + } else if(((a20==1)&&(!(a6==1)&&((a5==1)&&((a0==1)&&((a27==1)&&(((a4==1)&&((a12==12)&&((a15==1)&&((input==4)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))))))&&(a3==4)))))))){ + a12 = 11; + a18 = 1; + a3 = 6; + a5 = 0; + a6 = 1; + a22 = 0; + a15 = 0; + return -1; + } else if((((a15==1)&&((a20==1)&&(((!(a6==1)&&(!(a5==1)&&(((input==3)&&(((a3==7)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1))))))&&(a12==8))))&&!(a0==1))&&!(a4==1))))&&(a27==1))){ + a4 = 1; + a18 = 1; + a5 = 1; + a22 = 0; + a3 = 4; + a6 = 1; + a12 = 11; + a0 = 1; + return -1; + } else if(((a4==1)&&(((a15==1)&&(!(a6==1)&&(!(a27==1)&&(!(a0==1)&&(((((((!(a22==1)&&(a18==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6)))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==2))&&!(a5==1))&&(a20==1))))))&&(a12==8)))){ + a22 = 0; + a18 = 0; + a3 = 6; + a5 = 1; + a0 = 1; + a6 = 1; + a27 = 1; + return -1; + } else if(((((a4==1)&&(!(a27==1)&&((a20==1)&&((a12==9)&&((a0==1)&&(((a5==1)&&((a22==1)&&(((a18==1)||!(a18==1))&&(input==2))))&&(a3==7)))))))&&(a6==1))&&(a15==1))){ + a3 = 8; + a4 = 0; + a18 = 0; + a12 = 8; + return -1; + } else if((((a12==11)&&((a27==1)&&(!(a4==1)&&((a6==1)&&((a0==1)&&((!(a5==1)&&((a20==1)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==6))))&&!(a15==1)))))))&&(a3==5))){ + a18 = 1; + a12 = 10; + a3 = 6; + a4 = 1; + a6 = 0; + a22 = 1; + a15 = 1; + return -1; + } else if(((a4==1)&&(((a20==1)&&((!(a5==1)&&(((((input==2)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))||(((a22==1)&&!(a18==1))&&(a3==5))))&&!(a0==1))&&(a12==11))&&(a27==1)))&&(a15==1)))&&!(a6==1)))){ + a15 = 0; + a18 = 1; + a22 = 0; + a12 = 12; + a0 = 1; + a3 = 7; + return 26; + } else if(((!(a6==1)&&(!(a15==1)&&(((((!(a4==1)&&((a3==8)&&((a20==1)&&(((a18==1)||!(a18==1))&&(input==2)))))&&(a22==1))&&!(a27==1))&&(a0==1))&&(a12==12))))&&!(a5==1))){ + a3 = 7; + a22 = 0; + a5 = 1; + a12 = 10; + a18 = 1; + return 26; + } else if(((!(a5==1)&&(!(a15==1)&&((((((((((!(a22==1)&&(a18==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7)))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==3))&&!(a0==1))&&(a27==1))&&!(a4==1))&&!(a6==1))&&(a12==12))))&&(a20==1))){ + a3 = 6; + a12 = 9; + a15 = 1; + a22 = 0; + a18 = 0; + return -1; + } else if(((!(a0==1)&&((a27==1)&&((a12==8)&&(((a20==1)&&((((input==6)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))||((!(a18==1)&&(a22==1))&&(a3==5))))&&(a4==1))&&(a15==1)))&&(a5==1)))))&&(a6==1))){ + a3 = 4; + a22 = 1; + a18 = 1; + a0 = 1; + return -1; + } else if(((!(a6==1)&&(((((a3==7)&&((a15==1)&&(!(a4==1)&&(!(a22==1)&&((a20==1)&&((a18==1)&&(input==2)))))))&&(a0==1))&&(a5==1))&&(a27==1)))&&(a12==11))){ + if((a5==1)){ + a0 = 0; + a15 = 0; + a3 = 8; + a12 = 8; + a18 = 0; + a5 = 0; + }else{ + a15 = 0; + a3 = 6; + a6 = 1; + a12 = 10; + a4 = 1; + } + return 26; + } else if((!(a5==1)&&((a3==7)&&(((((((a20==1)&&(!(a0==1)&&((a6==1)&&((input==5)&&((a18==1)||!(a18==1))))))&&!(a4==1))&&!(a15==1))&&(a12==9))&&(a27==1))&&!(a22==1))))){ + a22 = 1; + a3 = 5; + a0 = 1; + a12 = 10; + a4 = 1; + a18 = 0; + return -1; + } else if(((((!(a4==1)&&((((a15==1)&&((a6==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6))&&(a5==1))))&&(a20==1))&&!(a0==1)))&&(a27==1))&&(a3==4))&&(a12==10))){ + a12 = 8; + a18 = 1; + a0 = 1; + a4 = 1; + a22 = 1; + return -1; + } else if(((a15==1)&&((!(a27==1)&&((a22==1)&&(!(a0==1)&&(((((((input==5)&&(a4==1))&&(a6==1))&&(a3==7))&&(a12==8))&&(a5==1))&&!(a18==1)))))&&(a20==1)))){ + if((a18==1)){ + a27 = 1; + a0 = 1; + a18 = 1; + a3 = 4; + }else{ + a18 = 1; + a4 = 0; + a22 = 0; + a0 = 1; + a27 = 1; + } + return -1; + } else if((!(a4==1)&&((a20==1)&&(((a12==10)&&(!(a6==1)&&((a27==1)&&(((a5==1)&&((input==6)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))))&&!(a0==1)))))&&!(a15==1))))){ + a18 = 0; + a5 = 0; + a0 = 1; + a22 = 1; + a3 = 7; + a6 = 1; + return 21; + } else if(((a20==1)&&((((((a0==1)&&((a4==1)&&((((((a18==1)||!(a18==1))&&(input==4))&&(a3==4))&&!(a27==1))&&!(a5==1))))&&(a12==8))&&(a15==1))&&!(a6==1))&&!(a22==1)))){ + a27 = 1; + a22 = 1; + a5 = 1; + a6 = 1; + a18 = 1; + return -1; + } else if((!(a5==1)&&(((((a3==7)&&((a20==1)&&((!(a0==1)&&((a4==1)&&((input==6)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))&&(a12==8))))&&!(a6==1))&&!(a15==1))&&(a27==1)))){ + a3 = 4; + a0 = 1; + a15 = 1; + a6 = 1; + a18 = 1; + a5 = 1; + a22 = 1; + return -1; + } else if((!(a0==1)&&((a27==1)&&(((((a20==1)&&(((a4==1)&&((input==1)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1))))))&&!(a15==1)))&&!(a5==1))&&(a12==10))&&!(a6==1))))){ + a0 = 1; + a18 = 1; + a6 = 1; + a22 = 1; + a3 = 7; + return -1; + } else if((((((!(a0==1)&&((!(a18==1)&&(((((input==5)&&(a20==1))&&(a3==5))&&(a12==9))&&!(a4==1)))&&!(a5==1)))&&(a6==1))&&(a27==1))&&!(a15==1))&&!(a22==1))){ + a22 = 1; + a0 = 1; + a12 = 11; + a4 = 1; + a5 = 1; + a18 = 1; + a3 = 6; + return 26; + } else if(((!(a27==1)&&((a12==9)&&(((a20==1)&&((a4==1)&&(((!(a0==1)&&((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a3==5))&&(a5==1))))&&(a15==1))))&&(a6==1))){ + a18 = 0; + a5 = 0; + a3 = 8; + a22 = 1; + a0 = 1; + a4 = 0; + return 21; + } else if(((a15==1)&&(!(a27==1)&&((!(a4==1)&&((((a22==1)&&(((((input==6)&&!(a18==1))&&(a20==1))&&!(a5==1))&&(a12==9)))&&(a6==1))&&(a0==1)))&&(a3==6))))){ + a5 = 1; + a27 = 1; + a4 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + return -1; + } else if(((a3==7)&&((a5==1)&&(!(a0==1)&&((((a20==1)&&((a12==12)&&((((a4==1)&&((input==6)&&!(a22==1)))&&(a27==1))&&!(a15==1))))&&!(a18==1))&&!(a6==1)))))){ + a4 = 0; + a5 = 0; + a3 = 6; + a0 = 1; + a12 = 11; + return 21; + } else if(((((((a0==1)&&(((((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==4))&&!(a6==1))&&(a3==7))&&!(a5==1))&&(a12==12)))&&(a4==1))&&(a15==1))&&(a20==1))&&(a27==1))){ + a18 = 1; + a22 = 0; + a3 = 6; + a27 = 0; + return 26; + } else if(((a12==10)&&(!(a4==1)&&(((((a5==1)&&((a0==1)&&(((input==1)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1)))))&&!(a27==1))))&&!(a15==1))&&(a20==1))&&(a6==1))))){ + a3 = 5; + a4 = 1; + a18 = 1; + a27 = 1; + a22 = 0; + a5 = 0; + a6 = 0; + return 21; + } else if(((!(a5==1)&&((a12==9)&&(((a15==1)&&((a20==1)&&(((a22==1)&&((a6==1)&&(!(a4==1)&&((input==4)&&((a18==1)||!(a18==1))))))&&(a3==7))))&&!(a27==1))))&&!(a0==1))){ + a0 = 1; + a12 = 11; + a5 = 1; + a3 = 8; + a18 = 1; + a6 = 0; + a15 = 0; + a4 = 1; + return 26; + } else if((((!(a15==1)&&((((a27==1)&&((((((input==1)&&(a20==1))&&!(a0==1))&&(a5==1))&&!(a4==1))&&!(a18==1)))&&(a22==1))&&(a12==10)))&&(a3==7))&&!(a6==1))){ + a15 = 1; + a4 = 1; + a12 = 12; + a3 = 6; + a0 = 1; + a5 = 0; + return 21; + } else if((((!(a5==1)&&(!(a4==1)&&((!(a15==1)&&((a12==11)&&((!(a27==1)&&((a6==1)&&(!(a18==1)&&(input==1))))&&!(a22==1))))&&(a0==1))))&&(a20==1))&&(a3==8))){ + a12 = 10; + a6 = 0; + a3 = 5; + a4 = 1; + a27 = 1; + a15 = 1; + return -1; + } else if((((((((a20==1)&&((((input==3)&&((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==5)))||((a3==5)&&((a22==1)&&!(a18==1)))))&&(a12==11))&&!(a6==1)))&&(a5==1))&&!(a27==1))&&(a15==1))&&(a0==1))&&(a4==1))){ + a5 = 0; + a12 = 12; + a6 = 1; + a3 = 7; + a18 = 1; + a4 = 0; + a22 = 0; + a27 = 1; + return -1; + } else if(((a15==1)&&((a6==1)&&((a3==5)&&((a27==1)&&((((((a12==11)&&((((a18==1)||!(a18==1))&&(input==5))&&(a0==1)))&&(a4==1))&&!(a22==1))&&(a20==1))&&(a5==1))))))){ + a22 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((((a20==1)&&((a12==11)&&((a0==1)&&(((a3==8)&&((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a15==1))&&!(a5==1))&&(a27==1)))&&(a6==1)))))&&(a4==1))){ + a22 = 0; + a3 = 6; + a18 = 0; + return -1; + } else if((!(a27==1)&&(!(a6==1)&&(((a22==1)&&((a3==6)&&((a15==1)&&((a20==1)&&((a0==1)&&((a12==11)&&((a4==1)&&((input==3)&&!(a18==1)))))))))&&(a5==1))))){ + a3 = 8; + a18 = 1; + a12 = 10; + a15 = 0; + a22 = 0; + a5 = 0; + a4 = 0; + return 26; + } else if(((a6==1)&&(((a18==1)&&((((a4==1)&&(!(a22==1)&&(((((a27==1)&&(input==4))&&(a5==1))&&(a0==1))&&(a20==1))))&&(a12==11))&&(a15==1)))&&(a3==4)))){ + a12 = 10; + a22 = 1; + a3 = 7; + a15 = 0; + a18 = 0; + a0 = 0; + a5 = 0; + return 26; + } else if(((a27==1)&&((!(a0==1)&&((a3==5)&&((((a12==10)&&((((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a20==1))&&(a15==1)))&&!(a5==1))&&!(a4==1))))&&!(a6==1)))){ + a18 = 1; + a22 = 0; + a0 = 1; + a4 = 1; + a12 = 12; + a6 = 1; + return -1; + } else if(((a4==1)&&((a5==1)&&(!(a6==1)&&((a12==10)&&(((((a20==1)&&(!(a27==1)&&((a3==4)&&((a18==1)&&(input==6)))))&&!(a15==1))&&(a22==1))&&!(a0==1))))))){ + a3 = 7; + a22 = 0; + a18 = 0; + a27 = 1; + a12 = 8; + a15 = 1; + a0 = 1; + return 26; + } else if((!(a5==1)&&(((a0==1)&&((a20==1)&&((a15==1)&&((a4==1)&&((((((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==4))&&!(a27==1))&&(a12==12))))))&&(a6==1)))){ + a6 = 0; + a12 = 11; + a18 = 1; + a3 = 8; + a22 = 1; + return -1; + } else if(((a5==1)&&(!(a27==1)&&((a20==1)&&((a3==4)&&((a15==1)&&(!(a0==1)&&(((a12==9)&&(((input==3)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a6==1)))&&!(a4==1))))))))){ + if((a12==9)){ + a18 = 1; + a22 = 0; + a6 = 1; + a5 = 0; + a3 = 7; + }else{ + a3 = 7; + a0 = 1; + a27 = 1; + a18 = 0; + a12 = 8; + a6 = 1; + a22 = 0; + } + return -1; + } else if(((a20==1)&&(!(a4==1)&&(((a27==1)&&(!(a6==1)&&(!(a15==1)&&((a0==1)&&((a12==8)&&(((((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1))))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==4)))))))&&!(a5==1))))){ + a3 = 4; + a5 = 1; + a4 = 1; + a18 = 1; + a6 = 1; + a22 = 1; + a15 = 1; + return -1; + } else if(((((((((a3==8)&&(((!(a15==1)&&(!(a5==1)&&(((a27==1)&&!(a22==1))&&!(a18==1))))&&(a12==12))&&!(a4==1)))&&!(a6==1))||((((a4==1)&&((((a5==1)&&(((a22==1)&&!(a27==1))&&(a18==1)))&&(a15==1))&&(a12==8)))&&(a3==4))&&(a6==1)))||(((a3==4)&&((((a15==1)&&((a5==1)&&((!(a27==1)&&(a22==1))&&!(a18==1))))&&(a12==8))&&(a4==1)))&&(a6==1)))&&(input==3))&&(a20==1))&&(a0==1))){ + a3 = 4; + a22 = 1; + a5 = 0; + a27 = 1; + a15 = 0; + a6 = 1; + a4 = 0; + a12 = 11; + a18 = 1; + return 21; + } else if((((!(a4==1)&&((a20==1)&&(!(a6==1)&&(((((((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==3))&&!(a5==1))&&(a12==8))&&(a15==1)))))&&(a0==1))&&(a27==1))){ + a12 = 10; + a6 = 1; + a22 = 0; + a4 = 1; + a18 = 1; + a3 = 4; + return 26; + } else if(((a3==7)&&((a27==1)&&((a15==1)&&((a20==1)&&(((a5==1)&&((a4==1)&&(((a0==1)&&((input==2)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a12==11))))&&!(a6==1))))))){ + a5 = 0; + a15 = 0; + a22 = 0; + a12 = 10; + a18 = 1; + a3 = 6; + return 21; + } else if(((a22==1)&&(!(a0==1)&&(((a3==6)&&((a20==1)&&(((!(a15==1)&&((((input==4)&&((a18==1)||!(a18==1)))&&(a4==1))&&(a27==1)))&&!(a6==1))&&(a5==1))))&&(a12==11))))){ + a3 = 4; + a22 = 0; + a0 = 1; + a18 = 1; + return -1; + } else if(((((!(a0==1)&&((!(a15==1)&&(!(a27==1)&&((a3==5)&&((a20==1)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==3))))))&&!(a6==1)))&&!(a5==1))&&(a12==10))&&(a4==1))){ + a3 = 4; + a5 = 1; + a0 = 1; + a6 = 1; + a18 = 0; + a15 = 1; + a27 = 1; + a22 = 0; + a12 = 8; + return -1; + } else if(((a27==1)&&((a18==1)&&((!(a4==1)&&((a12==11)&&((((a3==5)&&(!(a5==1)&&(((input==5)&&!(a0==1))&&(a20==1))))&&(a15==1))&&!(a6==1))))&&(a22==1))))){ + a0 = 1; + a12 = 10; + a18 = 0; + a5 = 1; + return 21; + } else if(((a20==1)&&(((a18==1)&&((a27==1)&&((a12==9)&&((((((!(a5==1)&&(input==1))&&(a4==1))&&(a15==1))&&(a0==1))&&(a22==1))&&(a3==7)))))&&!(a6==1)))){ + a3 = 5; + a15 = 0; + a22 = 0; + a4 = 0; + a27 = 0; + a5 = 1; + a12 = 8; + return 21; + } else if((((a12==8)&&(!(a6==1)&&(!(a15==1)&&((a27==1)&&((!(a0==1)&&((a5==1)&&((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==1))&&(a20==1))))&&(a4==1))))))&&(a3==4))){ + a15 = 1; + a22 = 1; + a4 = 0; + a0 = 1; + a18 = 1; + a12 = 10; + a3 = 7; + a6 = 1; + return -1; + } else if((((((a12==8)&&(((a22==1)&&((((a20==1)&&((a27==1)&&((input==1)&&(a3==7))))&&(a5==1))&&!(a15==1)))&&!(a18==1)))&&!(a0==1))&&!(a6==1))&&(a4==1))){ + a15 = 1; + a6 = 1; + a0 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((!(a6==1)&&((a4==1)&&((a12==9)&&(((a0==1)&&((((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==2))&&!(a5==1))&&(a27==1)))&&(a20==1)))))&&!(a15==1))){ + a27 = 0; + a3 = 4; + a18 = 0; + a12 = 12; + a22 = 1; + return 26; + } else if((!(a5==1)&&((a3==6)&&((!(a0==1)&&(!(a27==1)&&((a15==1)&&((((a4==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==5)))&&(a12==8))&&(a20==1)))))&&(a6==1))))){ + a22 = 0; + a3 = 5; + a4 = 0; + a0 = 1; + a27 = 1; + a6 = 0; + a12 = 9; + a18 = 1; + return -1; + } else if((((((a15==1)&&((((a27==1)&&(((a22==1)&&((!(a6==1)&&(input==3))&&(a12==12)))&&(a20==1)))&&(a3==6))&&(a5==1)))&&!(a0==1))&&!(a18==1))&&(a4==1))){ + a18 = 1; + a0 = 1; + a12 = 8; + a3 = 4; + a6 = 1; + return -1; + } else if((!(a6==1)&&(((a5==1)&&((a0==1)&&(!(a22==1)&&(!(a4==1)&&(((a3==6)&&((((a20==1)&&(input==1))&&!(a15==1))&&(a12==9)))&&(a27==1))))))&&(a18==1)))){ + a18 = 0; + a15 = 1; + a12 = 10; + a22 = 1; + a3 = 8; + return 26; + } else if(((((a20==1)&&((a5==1)&&((a15==1)&&((((a12==12)&&(((((a18==1)&&(a22==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5))))&&(input==1)))&&(a4==1))&&(a27==1)))))&&!(a0==1))&&(a6==1))){ + a3 = 8; + a4 = 0; + a6 = 0; + a12 = 11; + a18 = 1; + a0 = 1; + a5 = 0; + a22 = 1; + a27 = 0; + a15 = 0; + return 21; + } else if(((a5==1)&&(((a15==1)&&((!(a0==1)&&((a12==9)&&((input==1)&&(((((a3==8)&&((a4==1)&&((a18==1)&&!(a22==1))))&&!(a6==1))||(!(a6==1)&&(((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8))))||((a6==1)&&((((a18==1)&&(a22==1))&&!(a4==1))&&(a3==4)))))))&&(a27==1)))&&(a20==1)))){ + a5 = 0; + a0 = 1; + a27 = 0; + a6 = 0; + a12 = 8; + a22 = 0; + a3 = 7; + a18 = 0; + a4 = 1; + return 26; + } else if(((a3==5)&&(!(a22==1)&&((a4==1)&&((((a5==1)&&(((a20==1)&&((a12==8)&&((a0==1)&&((input==4)&&((a18==1)||!(a18==1))))))&&!(a6==1)))&&!(a27==1))&&!(a15==1)))))){ + a27 = 1; + a15 = 1; + a3 = 4; + a6 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if((((a4==1)&&(((((a15==1)&&(!(a6==1)&&(!(a0==1)&&(((a5==1)&&((input==4)&&(a22==1)))&&!(a27==1)))))&&(a20==1))&&!(a18==1))&&(a12==9)))&&(a3==4))){ + if((a0==1)){ + a3 = 8; + a12 = 10; + a4 = 0; + a5 = 0; + a22 = 0; + }else{ + a27 = 1; + a3 = 5; + a15 = 0; + a6 = 1; + a22 = 0; + } + return 26; + } else if(((((!(a0==1)&&((a6==1)&&((((a12==11)&&(((!(a22==1)&&(input==4))&&!(a15==1))&&(a27==1)))&&(a5==1))&&(a18==1))))&&(a20==1))&&(a3==6))&&(a4==1))){ + a5 = 0; + a18 = 0; + a4 = 0; + a3 = 8; + a6 = 0; + a22 = 1; + a12 = 8; + a0 = 1; + a15 = 1; + a27 = 0; + return 26; + } else if((((a27==1)&&(((a3==7)&&(((a6==1)&&(!(a4==1)&&((a5==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a12==10)))))&&!(a0==1)))&&(a15==1)))&&(a20==1))){ + a0 = 1; + a18 = 1; + a22 = 1; + a5 = 0; + a6 = 0; + a3 = 6; + return -1; + } else if(((a15==1)&&(((a22==1)&&((((a27==1)&&((((((input==3)&&(a5==1))&&!(a0==1))&&(a4==1))&&(a20==1))&&(a3==5)))&&(a12==8))&&(a18==1)))&&!(a6==1)))){ + a12 = 12; + a18 = 0; + a3 = 6; + a0 = 1; + a5 = 0; + a6 = 1; + return 26; + } else if(((((((a4==1)&&(!(a5==1)&&((((input==5)&&(((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||((a3==6)&&((a18==1)&&(a22==1)))))&&(a0==1))&&(a20==1))))&&!(a15==1))&&(a27==1))&&!(a6==1))&&(a12==11))){ + a3 = 8; + a15 = 1; + a18 = 0; + a22 = 1; + a0 = 0; + a5 = 1; + return -1; + } else if((((a3==6)&&(((a0==1)&&((a5==1)&&(!(a18==1)&&((!(a4==1)&&(!(a15==1)&&(((a22==1)&&(input==4))&&(a12==11))))&&(a20==1)))))&&(a6==1)))&&(a27==1))){ + a4 = 1; + a6 = 0; + a12 = 8; + return -1; + } else if(((a4==1)&&((((a27==1)&&(((a20==1)&&((a12==11)&&((((a6==1)&&((input==1)&&!(a22==1)))&&!(a18==1))&&(a3==7))))&&(a5==1)))&&(a0==1))&&!(a15==1)))){ + a12 = 8; + a15 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((a6==1)&&(!(a0==1)&&((!(a4==1)&&((a12==8)&&((a27==1)&&((a15==1)&&(((a5==1)&&((!(a18==1)&&(input==3))&&(a3==6)))&&(a20==1))))))&&!(a22==1))))){ + a18 = 1; + a6 = 0; + a0 = 1; + a22 = 1; + a3 = 7; + a12 = 11; + a4 = 1; + return 26; + } else if(((a20==1)&&((!(a5==1)&&((a12==8)&&(!(a0==1)&&((((!(a4==1)&&((input==3)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))))&&(a6==1))&&(a3==4))&&!(a27==1)))))&&!(a15==1)))){ + a22 = 1; + a5 = 1; + a15 = 1; + a27 = 1; + a3 = 5; + a0 = 1; + a18 = 1; + return 24; + } else if((((!(a6==1)&&(((((!(a4==1)&&((a12==11)&&(!(a0==1)&&((a20==1)&&(input==6)))))&&!(a27==1))&&(a5==1))&&(a22==1))&&(a15==1)))&&(a18==1))&&(a3==8))){ + if((a0==1)){ + a27 = 1; + a5 = 0; + a12 = 10; + }else{ + a5 = 0; + a12 = 8; + a27 = 1; + a6 = 1; + a3 = 7; + a18 = 0; + } + return 21; + } else if(((a4==1)&&(!(a27==1)&&((a12==9)&&(((((a0==1)&&(((((!(a18==1)&&(a22==1))&&(a3==8))||(((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8))))&&(input==6))&&(a20==1)))&&(a15==1))&&(a6==1))&&!(a5==1)))))){ + a3 = 8; + a22 = 1; + a18 = 0; + a15 = 0; + a27 = 1; + a5 = 1; + a12 = 11; + return 21; + } else if(((a20==1)&&(((a12==10)&&(!(a5==1)&&(((a15==1)&&(((input==6)&&((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4)))))&&(a4==1)))&&!(a0==1))))&&(a27==1)))){ + a18 = 0; + a22 = 0; + a5 = 1; + a3 = 6; + a15 = 0; + a6 = 1; + a0 = 1; + return 24; + } else if(((!(a27==1)&&(((a12==11)&&((!(a6==1)&&((!(a4==1)&&((a20==1)&&(((input==6)&&(a0==1))&&(a22==1))))&&!(a18==1)))&&(a3==7)))&&(a5==1)))&&!(a15==1))){ + a27 = 1; + a4 = 1; + a3 = 4; + a12 = 8; + a6 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if(((a18==1)&&((a6==1)&&(((((((a20==1)&&(!(a5==1)&&(!(a15==1)&&((a0==1)&&(input==6)))))&&(a3==4))&&(a12==9))&&!(a27==1))&&(a22==1))&&(a4==1))))){ + a12 = 11; + a0 = 0; + a27 = 1; + a4 = 0; + a5 = 1; + return 21; + } else if((((((((((a4==1)&&((a3==7)&&(((input==6)&&(a15==1))&&!(a0==1))))&&(a12==11))&&(a18==1))&&!(a22==1))&&!(a27==1))&&!(a5==1))&&(a20==1))&&!(a6==1))){ + if((a18==1)){ + a5 = 1; + a0 = 1; + a18 = 0; + a3 = 6; + a12 = 8; + a27 = 1; + }else{ + a0 = 1; + a6 = 1; + a5 = 1; + a18 = 0; + a27 = 1; + a22 = 1; + a3 = 5; + a12 = 8; + } + return -1; + } else if(((a0==1)&&((a3==7)&&(((a27==1)&&((!(a22==1)&&((a20==1)&&(((((input==2)&&((a18==1)||!(a18==1)))&&(a15==1))&&!(a4==1))&&(a5==1))))&&(a6==1)))&&(a12==12))))){ + a22 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + a4 = 1; + return -1; + } else if(((a3==7)&&(((a27==1)&&(((a4==1)&&(!(a6==1)&&((a22==1)&&(!(a0==1)&&((a20==1)&&((a12==9)&&(((a18==1)||!(a18==1))&&(input==1))))))))&&!(a5==1)))&&!(a15==1)))){ + a0 = 1; + a18 = 1; + a15 = 1; + a12 = 8; + a3 = 4; + a6 = 1; + a5 = 1; + return -1; + } else if((((a27==1)&&(!(a0==1)&&((a4==1)&&(!(a15==1)&&((a6==1)&&((((((a3==5)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1)))))&&(input==3))&&(a5==1))&&(a12==12)))))))&&(a20==1))){ + a22 = 0; + a0 = 1; + a12 = 10; + a15 = 1; + a27 = 0; + a4 = 0; + a3 = 6; + a6 = 0; + a18 = 0; + return 21; + } else if((!(a27==1)&&((a15==1)&&((((!(a4==1)&&(!(a6==1)&&((a3==8)&&(((input==5)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a12==8)))))&&(a0==1))&&(a20==1))&&!(a5==1))))){ + a27 = 1; + a22 = 1; + a18 = 1; + a5 = 1; + a4 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if((!(a0==1)&&(!(a6==1)&&(!(a5==1)&&(((a4==1)&&(!(a15==1)&&((a12==11)&&((a20==1)&&(((input==6)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&(a27==1))))))&&(a3==8)))))){ + a12 = 10; + a22 = 1; + a6 = 1; + a0 = 1; + a3 = 5; + a18 = 0; + return 21; + } else if((!(a15==1)&&((((a12==8)&&(((((((input==2)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a4==1))&&(a5==1))&&(a20==1))&&(a3==8))&&(a0==1)))&&(a6==1))&&!(a27==1)))){ + a27 = 1; + a18 = 1; + a22 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if(((a20==1)&&((((a3==8)&&((!(a5==1)&&(!(a6==1)&&((a4==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a27==1)))))&&!(a0==1)))&&(a12==10))&&!(a15==1)))){ + a12 = 8; + a18 = 1; + a0 = 1; + a3 = 4; + a5 = 1; + a22 = 1; + a6 = 1; + a15 = 1; + return -1; + } else if(((a15==1)&&((a3==5)&&((!(a0==1)&&((a20==1)&&((a12==9)&&((!(a27==1)&&((a18==1)&&(((input==6)&&(a22==1))&&(a5==1))))&&(a6==1)))))&&(a4==1))))){ + a3 = 4; + a0 = 1; + a27 = 1; + a22 = 0; + a12 = 8; + return 26; + } else if(((!(a6==1)&&(((a27==1)&&((((!(a4==1)&&((((a3==8)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8))))&&(input==1)))&&(a20==1))&&(a0==1))&&(a15==1)))&&(a12==8)))&&!(a5==1))){ + a12 = 10; + a4 = 1; + a22 = 0; + a3 = 6; + a18 = 0; + return 21; + } else if((!(a0==1)&&((((a5==1)&&((a15==1)&&((a27==1)&&((a6==1)&&(((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==6))&&(a4==1))))))&&(a20==1))&&(a12==8)))){ + a18 = 1; + a22 = 1; + a4 = 0; + a12 = 11; + a3 = 8; + return 21; + } else if((!(a15==1)&&((((a6==1)&&(((((((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7)))||(((a22==1)&&!(a18==1))&&(a3==7)))&&(input==5))&&!(a0==1))&&(a5==1))&&(a20==1))&&(a12==11)))&&(a27==1))&&(a4==1)))){ + a0 = 1; + a15 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + a18 = 1; + return -1; + } else if(((((!(a22==1)&&((a5==1)&&(((a12==10)&&((a20==1)&&(((((a18==1)||!(a18==1))&&(input==4))&&!(a15==1))&&(a4==1))))&&(a27==1))))&&(a6==1))&&(a3==8))&&(a0==1))){ + a5 = 0; + a27 = 0; + a3 = 6; + a18 = 0; + a22 = 1; + a6 = 0; + a12 = 9; + return 26; + } else if(((a12==10)&&(((a5==1)&&(!(a0==1)&&((a27==1)&&((a6==1)&&((a4==1)&&((((a3==6)&&(((a18==1)||!(a18==1))&&(input==2)))&&!(a22==1))&&(a15==1)))))))&&(a20==1)))){ + a12 = 11; + a6 = 0; + a3 = 5; + a15 = 0; + a18 = 1; + return -1; + } else if(((a15==1)&&((a4==1)&&((a22==1)&&(((((a20==1)&&((a12==8)&&(!(a27==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a0==1)))))&&(a3==6))&&(a6==1))&&(a5==1)))))){ + a18 = 0; + a6 = 0; + a12 = 10; + a3 = 4; + a22 = 0; + return 21; + } else if(((a18==1)&&((((a12==10)&&((a3==7)&&(!(a22==1)&&((a6==1)&&(((a5==1)&&(!(a0==1)&&(!(a27==1)&&(input==3))))&&(a20==1))))))&&(a4==1))&&(a15==1)))){ + a27 = 1; + a12 = 8; + a22 = 1; + a15 = 0; + a3 = 5; + a6 = 0; + a18 = 0; + return 26; + } else if(((a5==1)&&((a20==1)&&(((a12==9)&&(!(a6==1)&&((!(a27==1)&&(((a3==7)&&((!(a22==1)&&(input==1))&&!(a15==1)))&&(a0==1)))&&(a4==1))))&&!(a18==1))))){ + a12 = 8; + a6 = 1; + a22 = 1; + a15 = 1; + a27 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((((a0==1)&&(!(a22==1)&&((((((a12==9)&&(!(a5==1)&&((a4==1)&&((input==5)&&!(a6==1)))))&&!(a18==1))&&(a20==1))&&!(a27==1))&&(a15==1))))&&(a3==6))){ + a4 = 0; + a5 = 1; + a22 = 1; + a12 = 12; + a3 = 4; + return 24; + } else if(((a20==1)&&(((!(a6==1)&&((((!(a0==1)&&((a12==10)&&(((input==6)&&!(a4==1))&&(a18==1))))&&(a22==1))&&(a3==8))&&!(a27==1)))&&(a15==1))&&!(a5==1)))){ + a3 = 4; + a22 = 0; + a18 = 0; + a4 = 1; + a12 = 8; + a5 = 1; + a6 = 1; + a27 = 1; + a0 = 1; + return 21; + } else if(((((a3==6)&&(!(a4==1)&&((!(a15==1)&&(((a27==1)&&(((a6==1)&&((input==4)&&((a18==1)||!(a18==1))))&&(a0==1)))&&(a20==1)))&&!(a5==1))))&&(a22==1))&&(a12==12))){ + a18 = 1; + a15 = 1; + a3 = 4; + a4 = 1; + a5 = 1; + a12 = 8; + return -1; + } else if(((((a3==7)&&(!(a5==1)&&((!(a27==1)&&((a12==11)&&((!(a15==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==3)))&&(a4==1))))&&(a0==1))))&&(a20==1))&&!(a6==1))){ + a12 = 10; + a5 = 1; + a4 = 0; + a22 = 0; + a18 = 0; + a3 = 8; + a27 = 1; + return 21; + } else if(((a12==10)&&(((!(a27==1)&&(((a22==1)&&(!(a15==1)&&(((a6==1)&&((a4==1)&&((input==5)&&!(a18==1))))&&!(a5==1))))&&(a20==1)))&&(a0==1))&&(a3==8)))){ + if((a15==1)){ + a27 = 1; + a0 = 0; + a22 = 0; + a15 = 1; + a12 = 9; + }else{ + a22 = 0; + a15 = 1; + a12 = 8; + a6 = 0; + } + return -1; + } else if(((!(a27==1)&&((a20==1)&&(((!(a5==1)&&((input==4)&&((((a3==8)&&((a4==1)&&(!(a22==1)&&!(a18==1))))&&!(a6==1))||((a6==1)&&((((a18==1)&&(a22==1))&&!(a4==1))&&(a3==4))))))&&(a12==12))&&(a15==1))))&&(a0==1))){ + a15 = 0; + a4 = 0; + a5 = 1; + a18 = 0; + a6 = 1; + a22 = 1; + a27 = 1; + a3 = 8; + a12 = 11; + return -1; + } else if(((((((((((a20==1)&&(((input==4)&&!(a4==1))&&!(a18==1)))&&(a6==1))&&(a0==1))&&(a12==12))&&(a3==5))&&!(a27==1))&&(a22==1))&&!(a5==1))&&(a15==1))){ + if((a22==1)){ + a15 = 0; + a3 = 4; + a27 = 1; + a22 = 0; + a12 = 11; + a0 = 0; + a18 = 1; + }else{ + a5 = 1; + a3 = 8; + a12 = 11; + a6 = 0; + a22 = 0; + } + return 21; + } else if((!(a5==1)&&((a20==1)&&((((((((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==6))&&!(a27==1))&&(a15==1))&&(a4==1))&&!(a0==1))&&!(a6==1))&&(a12==10))))){ + a6 = 1; + a3 = 6; + a22 = 0; + a27 = 1; + a18 = 0; + a0 = 1; + a12 = 8; + a5 = 1; + return -1; + } else if((((a15==1)&&((a6==1)&&((a12==8)&&(!(a4==1)&&(((((input==2)&&(((a3==6)&&((a22==1)&&(a18==1)))||(((a3==5)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==5)))))&&!(a27==1))&&!(a0==1))&&(a20==1))))))&&(a5==1))){ + if((a6==1)){ + a6 = 0; + a4 = 1; + a27 = 1; + a0 = 1; + a22 = 1; + a18 = 0; + a3 = 8; + }else{ + a27 = 1; + a18 = 1; + a0 = 1; + a4 = 1; + a6 = 0; + a22 = 0; + a3 = 8; + } + return -1; + } else if((((((a12==10)&&((!(a27==1)&&((((!(a15==1)&&((a4==1)&&(input==3)))&&(a20==1))&&(a18==1))&&(a6==1)))&&(a3==6)))&&!(a5==1))&&!(a22==1))&&(a0==1))){ + a5 = 1; + a27 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + a15 = 1; + return -1; + } else if(((a15==1)&&((((a3==7)&&(!(a5==1)&&((a12==10)&&((!(a0==1)&&((a20==1)&&((a6==1)&&(((a18==1)||!(a18==1))&&(input==6)))))&&!(a27==1)))))&&!(a22==1))&&!(a4==1)))){ + if((a3==7)){ + a12 = 9; + a18 = 1; + a4 = 1; + a22 = 1; + a27 = 1; + a3 = 5; + a15 = 0; + a0 = 1; + }else{ + a4 = 1; + a15 = 0; + a27 = 1; + a22 = 1; + a3 = 4; + a18 = 0; + a5 = 1; + } + return 21; + } else if(((a6==1)&&(((a0==1)&&((!(a27==1)&&((a20==1)&&(!(a4==1)&&((a12==10)&&(((input==6)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a5==1))))))&&(a3==5)))&&(a15==1)))){ + a12 = 8; + a6 = 0; + a22 = 0; + a18 = 1; + a3 = 7; + return -1; + } else if((((((!(a18==1)&&((((a15==1)&&(((a3==6)&&((input==1)&&(a12==11)))&&!(a27==1)))&&(a20==1))&&!(a22==1)))&&!(a5==1))&&(a4==1))&&!(a0==1))&&!(a6==1))){ + a12 = 8; + a22 = 1; + a27 = 1; + a3 = 5; + a0 = 1; + a6 = 1; + a5 = 1; + return 21; + } else if(((a3==8)&&((((((a27==1)&&((!(a6==1)&&(((!(a4==1)&&(input==4))&&!(a0==1))&&!(a22==1)))&&(a15==1)))&&!(a5==1))&&(a12==12))&&(a18==1))&&(a20==1)))){ + a4 = 1; + a12 = 8; + a5 = 1; + a18 = 0; + a0 = 1; + return 24; + } else if(((((a6==1)&&((((!(a15==1)&&(((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==2))&&(a12==11))&&(a3==6)))&&(a20==1))&&!(a4==1))&&!(a5==1)))&&!(a0==1))&&(a27==1))){ + a3 = 5; + a12 = 10; + a22 = 1; + a18 = 1; + a4 = 1; + a0 = 1; + return 21; + } else if(((a3==4)&&((a6==1)&&(((((a12==12)&&(((((!(a18==1)&&(input==1))&&(a5==1))&&(a27==1))&&!(a22==1))&&(a0==1)))&&(a20==1))&&(a15==1))&&(a4==1))))){ + a12 = 8; + a18 = 1; + a22 = 1; + return -1; + } else if((((!(a4==1)&&((a12==9)&&((a5==1)&&(((((a6==1)&&((((a18==1)||!(a18==1))&&(input==5))&&(a27==1)))&&!(a0==1))&&(a3==4))&&!(a22==1)))))&&(a15==1))&&(a20==1))){ + a0 = 1; + a4 = 1; + a18 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if((!(a27==1)&&((!(a5==1)&&(!(a6==1)&&((a4==1)&&(((!(a15==1)&&((input==5)&&(((a3==5)&&(!(a18==1)&&(a22==1)))||(((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==5))))))&&(a0==1))&&(a12==11)))))&&(a20==1)))){ + a22 = 0; + a5 = 1; + a4 = 0; + a3 = 4; + a27 = 1; + a18 = 0; + return 26; + } else if((((a12==8)&&((a3==8)&&(((a5==1)&&(((a20==1)&&((a27==1)&&((a22==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&!(a0==1)))))&&(a4==1)))&&!(a15==1))))&&(a6==1))){ + a12 = 11; + a0 = 1; + a4 = 0; + a3 = 7; + a18 = 1; + a6 = 0; + a15 = 1; + return 21; + } else if((((!(a27==1)&&(((a3==4)&&((a20==1)&&((a12==12)&&(!(a22==1)&&((a0==1)&&(((input==1)&&!(a6==1))&&!(a15==1)))))))&&!(a5==1)))&&!(a4==1))&&(a18==1))){ + a18 = 0; + a12 = 10; + a15 = 1; + a3 = 7; + a5 = 1; + a0 = 0; + a6 = 1; + a27 = 1; + return -1; + } else if((!(a0==1)&&(((((((a3==5)&&(((!(a15==1)&&(!(a5==1)&&(input==2)))&&(a20==1))&&(a27==1)))&&(a12==12))&&(a22==1))&&!(a6==1))&&!(a18==1))&&!(a4==1)))){ + a15 = 1; + a12 = 8; + a5 = 1; + a6 = 1; + a0 = 1; + a3 = 4; + return 24; + } else if(((a0==1)&&(((((a15==1)&&(!(a6==1)&&(((((((a18==1)&&(a22==1))&&(a3==6))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1)))))&&(input==1))&&!(a27==1))&&(a4==1))))&&(a12==8))&&(a20==1))&&!(a5==1)))){ + if((a5==1)){ + a0 = 0; + a27 = 1; + a18 = 0; + a4 = 0; + a12 = 10; + a22 = 0; + a5 = 1; + a3 = 6; + a6 = 1; + }else{ + a5 = 1; + a22 = 1; + a6 = 1; + a4 = 0; + a18 = 1; + a3 = 5; + } + return -1; + } else if(((a18==1)&&((((!(a6==1)&&(((!(a15==1)&&((((input==1)&&(a3==5))&&(a4==1))&&(a5==1)))&&!(a0==1))&&!(a27==1)))&&(a22==1))&&(a20==1))&&(a12==11)))){ + if((a6==1)){ + a0 = 1; + a12 = 8; + a15 = 1; + a27 = 1; + }else{ + a0 = 1; + a27 = 1; + a22 = 0; + a12 = 8; + a15 = 1; + a6 = 1; + a3 = 7; + } + return 26; + } else if(((((!(a27==1)&&((((a22==1)&&(((a0==1)&&((!(a6==1)&&(input==6))&&(a20==1)))&&(a15==1)))&&(a18==1))&&(a12==12)))&&(a3==6))&&!(a4==1))&&!(a5==1))){ + a5 = 1; + a22 = 0; + a12 = 8; + a3 = 5; + a4 = 1; + return 24; + } else if(((!(a15==1)&&(!(a27==1)&&(((a12==8)&&(((a0==1)&&((input==5)&&((((a6==1)&&((a3==8)&&((a18==1)&&!(a22==1))))||((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1)))))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4))))))&&(a5==1)))&&!(a4==1))))&&(a20==1))){ + a15 = 1; + a18 = 1; + a27 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if((((((((((a27==1)&&(((input==2)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&!(a5==1)))&&(a12==9))&&(a6==1))&&(a0==1))&&(a3==5))&&(a20==1))&&(a4==1))&&(a15==1))){ + a12 = 12; + a5 = 1; + a3 = 4; + a18 = 0; + a4 = 0; + a15 = 0; + a22 = 1; + return 21; + } else if(((a3==6)&&((a4==1)&&(!(a22==1)&&(((((!(a6==1)&&((((a27==1)&&(input==3))&&!(a18==1))&&(a20==1)))&&(a0==1))&&(a5==1))&&!(a15==1))&&(a12==12)))))){ + a15 = 1; + a18 = 1; + a12 = 11; + a5 = 0; + a22 = 1; + a6 = 1; + return -1; + } else if((((a5==1)&&((!(a27==1)&&(!(a22==1)&&(((a12==10)&&(!(a6==1)&&(((a20==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a15==1))))&&(a3==8))))&&!(a4==1)))&&!(a0==1))){ + a27 = 1; + a15 = 0; + a12 = 12; + a22 = 1; + a18 = 0; + a3 = 6; + a5 = 0; + a6 = 1; + return -1; + } else if(((((a27==1)&&((!(a0==1)&&(((!(a15==1)&&(!(a6==1)&&((a20==1)&&((input==5)&&((a18==1)||!(a18==1))))))&&(a5==1))&&!(a4==1)))&&(a3==8)))&&(a12==12))&&(a22==1))){ + a15 = 1; + a3 = 5; + a6 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + return 21; + } else if((((a27==1)&&(((a15==1)&&(((a4==1)&&(!(a5==1)&&(((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==6))&&(a20==1))))&&(a0==1)))&&(a12==8)))&&(a6==1))){ + a15 = 0; + a12 = 9; + a3 = 8; + a18 = 1; + a22 = 1; + return 21; + } else if(((!(a22==1)&&(((!(a6==1)&&((a5==1)&&((!(a4==1)&&((((input==6)&&((a18==1)||!(a18==1)))&&(a12==12))&&(a27==1)))&&(a0==1))))&&(a20==1))&&(a3==4)))&&(a15==1))){ + a18 = 0; + a3 = 6; + a4 = 1; + return -1; + } else if(((!(a4==1)&&(((a6==1)&&((!(a0==1)&&((a15==1)&&((a20==1)&&((input==1)&&((((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==7)))||(((a18==1)&&(a22==1))&&(a3==8)))))))&&(a5==1)))&&!(a27==1)))&&(a12==10))){ + a6 = 0; + a22 = 0; + a18 = 0; + a4 = 1; + a27 = 1; + a3 = 5; + a12 = 9; + return -1; + } else if(((((a6==1)&&((a0==1)&&((!(a5==1)&&((a3==7)&&(!(a27==1)&&(((a20==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&!(a4==1)))))&&!(a15==1))))&&(a12==8))&&(a22==1))){ + a15 = 1; + a18 = 0; + a22 = 0; + a3 = 8; + return 26; + } else if((((a15==1)&&(((a12==9)&&((a18==1)&&((((((a0==1)&&((input==2)&&(a3==6)))&&!(a6==1))&&(a27==1))&&!(a4==1))&&(a20==1))))&&!(a5==1)))&&!(a22==1))){ + if((a12==8)){ + a0 = 0; + a3 = 4; + a4 = 1; + a12 = 8; + }else{ + a15 = 0; + a18 = 0; + a12 = 10; + a5 = 1; + a3 = 4; + } + return 26; + } else if(((a3==6)&&((a6==1)&&(!(a22==1)&&(!(a27==1)&&((!(a18==1)&&(!(a0==1)&&(((a12==8)&&(((input==3)&&(a4==1))&&(a20==1)))&&!(a15==1))))&&!(a5==1))))))){ + if((a3==5)){ + a3 = 7; + a22 = 1; + a15 = 1; + a0 = 1; + a6 = 0; + a27 = 1; + a5 = 1; + }else{ + a3 = 8; + a15 = 1; + a0 = 1; + a22 = 1; + a27 = 1; + a12 = 10; + } + return -1; + } else if(((a0==1)&&((((a12==12)&&((a20==1)&&(((a5==1)&&((input==3)&&(((((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1)))||(((!(a18==1)&&(a22==1))&&(a3==4))&&!(a6==1)))))&&(a15==1))))&&(a4==1))&&!(a27==1)))){ + a6 = 1; + a3 = 4; + a18 = 1; + a27 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if((((a4==1)&&((a27==1)&&((a0==1)&&(((a20==1)&&(((((input==4)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&(a3==8))&&!(a15==1))&&(a12==11)))&&!(a5==1)))))&&!(a6==1))){ + a22 = 1; + a12 = 12; + a3 = 5; + a18 = 0; + a5 = 1; + a4 = 0; + return 26; + } else if((((a3==7)&&((a12==8)&&((a20==1)&&((((!(a5==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6))&&!(a0==1)))&&!(a4==1))&&(a27==1))&&(a6==1)))))&&!(a15==1))){ + a3 = 4; + a5 = 1; + a18 = 1; + a4 = 1; + a22 = 1; + a15 = 1; + a0 = 1; + return -1; + } else if((((a27==1)&&((!(a4==1)&&((a20==1)&&((a15==1)&&(!(a5==1)&&((a12==10)&&((input==3)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))))))))&&(a6==1)))&&(a0==1))){ + a15 = 0; + a5 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((a3==8)&&(((a4==1)&&((!(a5==1)&&(((a12==10)&&(!(a0==1)&&(!(a15==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4)))))&&(a20==1)))&&!(a27==1)))&&!(a6==1)))){ + if((a12==9)){ + a4 = 0; + a12 = 12; + a18 = 1; + a3 = 7; + a27 = 1; + a15 = 1; + a22 = 0; + a6 = 1; + }else{ + a27 = 1; + a4 = 0; + a5 = 1; + a6 = 1; + a12 = 8; + a22 = 0; + a0 = 1; + a15 = 1; + a18 = 1; + } + return 26; + } else if(((a12==8)&&((((!(a27==1)&&(((a20==1)&&(((input==2)&&((((a22==1)&&(a18==1))&&(a3==8))||(((!(a22==1)&&(a18==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7)))))&&(a5==1)))&&(a15==1)))&&!(a0==1))&&(a4==1))&&(a6==1)))){ + a18 = 1; + a5 = 0; + a6 = 0; + a3 = 6; + a0 = 1; + a22 = 0; + a27 = 1; + return 26; + } else if(((!(a5==1)&&(!(a4==1)&&(((((a22==1)&&(!(a6==1)&&((((a0==1)&&(input==3))&&(a15==1))&&!(a27==1))))&&(a3==6))&&(a20==1))&&(a18==1))))&&(a12==12))){ + if((a4==1)){ + a15 = 0; + a3 = 5; + a6 = 1; + }else{ + a12 = 10; + a27 = 1; + a18 = 0; + a0 = 0; + a4 = 1; + a3 = 7; + } + return 24; + } else if(((!(a0==1)&&((((a4==1)&&((!(a6==1)&&(((((input==5)&&(a20==1))&&(a18==1))&&(a15==1))&&(a12==10)))&&!(a27==1)))&&!(a5==1))&&!(a22==1)))&&(a3==7))){ + a4 = 0; + a12 = 8; + a0 = 1; + a5 = 1; + a27 = 1; + a6 = 1; + return 26; + } else if(((a12==9)&&((!(a6==1)&&((!(a5==1)&&((!(a4==1)&&(!(a15==1)&&(!(a0==1)&&((input==6)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))))))&&(a3==5)))&&!(a27==1)))&&(a20==1)))){ + if((a27==1)){ + a27 = 1; + a22 = 0; + a12 = 8; + a6 = 1; + a3 = 6; + a5 = 1; + a0 = 1; + a15 = 1; + a4 = 1; + a18 = 0; + }else{ + a18 = 1; + a3 = 8; + a27 = 1; + a15 = 1; + a0 = 1; + a5 = 1; + a12 = 8; + a4 = 1; + a22 = 0; + a6 = 1; + } + return 26; + } else if(((a12==12)&&((a20==1)&&(((((a5==1)&&((a27==1)&&((((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1)))&&(input==2))))&&!(a15==1))&&(a4==1))&&!(a0==1))))){ + if((a20==1)){ + a4 = 0; + a15 = 1; + a3 = 7; + a18 = 1; + a0 = 1; + a22 = 1; + a12 = 8; + a6 = 1; + }else{ + a6 = 1; + a15 = 1; + a22 = 1; + a12 = 10; + a27 = 0; + a0 = 1; + a3 = 5; + a18 = 0; + } + return -1; + } else if(((!(a22==1)&&(((!(a0==1)&&((a5==1)&&(((((a20==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a12==10))&&(a27==1))&&!(a15==1))))&&(a3==8))&&(a4==1)))&&(a6==1))){ + a12 = 8; + a22 = 1; + a3 = 4; + a15 = 1; + a0 = 1; + a18 = 1; + return -1; + } else if((((a15==1)&&((a12==10)&&((a3==6)&&(((a20==1)&&((a27==1)&&(((a18==1)&&(((input==1)&&!(a5==1))&&(a22==1)))&&!(a4==1))))&&!(a6==1)))))&&(a0==1))){ + a15 = 0; + a6 = 1; + a5 = 1; + a18 = 0; + a3 = 7; + return -1; + } else if(((!(a6==1)&&((((a20==1)&&(!(a5==1)&&((a3==6)&&((a12==9)&&(!(a27==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==5)))))))&&!(a0==1))&&!(a15==1)))&&(a4==1))){ + if((a12==8)){ + a22 = 0; + a5 = 1; + a18 = 1; + a3 = 5; + a12 = 8; + a15 = 1; + a0 = 1; + a27 = 1; + }else{ + a15 = 1; + a18 = 0; + a12 = 12; + a4 = 0; + a3 = 5; + a5 = 1; + a6 = 1; + a0 = 1; + a22 = 1; + a27 = 1; + } + return -1; + } else if(((((a20==1)&&((!(a6==1)&&(((a3==4)&&((!(a22==1)&&(((input==1)&&(a18==1))&&!(a5==1)))&&!(a0==1)))&&(a12==10)))&&(a15==1)))&&!(a27==1))&&!(a4==1))){ + a3 = 7; + a15 = 0; + return -1; + } else if((!(a0==1)&&((a20==1)&&(((input==2)&&(((!(a6==1)&&((a3==8)&&(((((!(a22==1)&&!(a18==1))&&!(a5==1))&&!(a15==1))&&(a12==8))&&!(a4==1))))||(((a3==4)&&(((a12==9)&&((a15==1)&&((a5==1)&&((a22==1)&&(a18==1)))))&&(a4==1)))&&(a6==1)))||((a6==1)&&((a3==4)&&(((((a5==1)&&(!(a18==1)&&(a22==1)))&&(a15==1))&&(a12==9))&&(a4==1))))))&&!(a27==1))))){ + a12 = 11; + a22 = 1; + a5 = 1; + a3 = 6; + a6 = 0; + a27 = 1; + a15 = 1; + a4 = 0; + a18 = 0; + return 26; + } else if(((((a0==1)&&((a5==1)&&(((!(a6==1)&&(((((a3==7)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6))))&&(input==4))&&(a12==9)))&&(a20==1))&&(a27==1))))&&!(a15==1))&&(a4==1))){ + a6 = 1; + a12 = 10; + a18 = 0; + a4 = 0; + a3 = 8; + a5 = 0; + a22 = 0; + return 26; + } else if((((a20==1)&&((a0==1)&&(((a12==9)&&((a6==1)&&((!(a4==1)&&(((((a18==1)&&(a22==1))&&(a3==5))||(((!(a22==1)&&(a18==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4))))&&(input==2)))&&!(a27==1))))&&(a15==1))))&&!(a5==1))){ + a18 = 1; + a5 = 1; + a15 = 0; + a27 = 1; + a12 = 12; + a22 = 1; + a3 = 8; + a6 = 0; + return 21; + } else if((!(a4==1)&&((a12==11)&&((a20==1)&&((a3==5)&&((a15==1)&&(!(a6==1)&&((a27==1)&&(((a5==1)&&((input==5)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))))&&!(a0==1)))))))))){ + a0 = 1; + a22 = 1; + a6 = 1; + a4 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + return -1; + } else if((((((((a27==1)&&(((a0==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==5))&&!(a15==1)))&&(a20==1)))&&!(a5==1))&&(a3==8))&&(a12==11))&&(a6==1))&&!(a4==1))){ + a22 = 0; + a18 = 1; + a5 = 1; + a3 = 5; + a12 = 10; + return -1; + } else if((!(a4==1)&&((a6==1)&&(!(a27==1)&&(((a12==10)&&((((a5==1)&&((input==2)&&((((a18==1)&&(a22==1))&&(a3==8))||((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a18==1)&&!(a22==1)))))))&&(a20==1))&&(a15==1)))&&!(a0==1)))))){ + a6 = 0; + a18 = 0; + a22 = 1; + a12 = 12; + a3 = 5; + a0 = 1; + return -1; + } else if(((a6==1)&&(((a5==1)&&((a20==1)&&((a27==1)&&(!(a15==1)&&((a12==8)&&((((((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==5)))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==5))&&!(a4==1)))))))&&!(a0==1)))){ + a3 = 5; + a18 = 1; + a22 = 1; + a0 = 1; + a4 = 1; + a6 = 0; + a12 = 11; + return 26; + } else if(((!(a15==1)&&((a6==1)&&(((a0==1)&&(!(a4==1)&&((a12==11)&&((a3==8)&&((a5==1)&&(((input==6)&&(a18==1))&&(a27==1)))))))&&(a20==1))))&&(a22==1))){ + a18 = 0; + a3 = 5; + return -1; + } else if(((a20==1)&&(((a4==1)&&(((a12==10)&&(((((a27==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==5)))&&(a6==1))&&(a0==1))&&(a3==7)))&&(a5==1)))&&(a15==1)))){ + a12 = 9; + a22 = 0; + a5 = 0; + a18 = 0; + a27 = 0; + a3 = 4; + return 26; + } else if(((!(a4==1)&&((!(a18==1)&&(!(a5==1)&&((a20==1)&&(((a0==1)&&(((a15==1)&&((a22==1)&&(input==4)))&&(a12==10)))&&(a3==5)))))&&(a27==1)))&&!(a6==1))){ + if((a18==1)){ + a3 = 7; + a6 = 1; + a27 = 0; + a18 = 1; + a22 = 0; + a12 = 12; + }else{ + a22 = 0; + a5 = 1; + a27 = 0; + a15 = 0; + a18 = 1; + a4 = 1; + } + return 21; + } else if(((a4==1)&&((a20==1)&&((((((((a3==4)&&(!(a27==1)&&((input==1)&&(a15==1))))&&(a6==1))&&(a22==1))&&!(a0==1))&&(a12==8))&&(a18==1))&&(a5==1))))){ + if((a0==1)){ + a0 = 1; + a3 = 6; + a4 = 0; + a27 = 1; + }else{ + a0 = 1; + a4 = 0; + a18 = 0; + a22 = 0; + a5 = 0; + a12 = 11; + a27 = 1; + a3 = 6; + } + return -1; + } else if((((!(a15==1)&&((a27==1)&&((!(a6==1)&&(((a0==1)&&(!(a5==1)&&((a20==1)&&((a18==1)&&(input==5)))))&&(a3==5)))&&(a12==8))))&&(a22==1))&&(a4==1))){ + a15 = 1; + a12 = 11; + a5 = 1; + return 21; + } else if((((a20==1)&&((a3==8)&&(((a15==1)&&(!(a6==1)&&(((a5==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a4==1)))&&!(a0==1))))&&!(a27==1))))&&(a12==9))){ + if((a15==1)){ + a27 = 1; + a3 = 6; + a12 = 8; + a22 = 1; + a18 = 0; + a0 = 1; + }else{ + a22 = 0; + a3 = 4; + a27 = 1; + a0 = 1; + a18 = 1; + a12 = 8; + } + return -1; + } else if((!(a0==1)&&((a20==1)&&(!(a4==1)&&((!(a15==1)&&((!(a5==1)&&((a27==1)&&(((input==5)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&!(a6==1))))&&(a12==8)))&&(a3==8)))))){ + a15 = 1; + a0 = 1; + a4 = 1; + a5 = 1; + a22 = 1; + a3 = 5; + a12 = 10; + a18 = 0; + return -1; + } else if(((a4==1)&&((((a27==1)&&(((((((a3==6)&&(!(a6==1)&&(input==5)))&&(a12==11))&&!(a15==1))&&!(a5==1))&&(a20==1))&&!(a18==1)))&&(a22==1))&&(a0==1)))){ + a22 = 0; + a15 = 1; + a5 = 1; + return 26; + } else if((!(a6==1)&&((a18==1)&&(!(a5==1)&&((((a3==8)&&((!(a0==1)&&((((a27==1)&&(input==5))&&(a20==1))&&!(a22==1)))&&(a15==1)))&&!(a4==1))&&(a12==12)))))){ + a5 = 1; + a18 = 0; + a0 = 1; + a22 = 1; + a12 = 8; + a3 = 7; + a4 = 1; + return -1; + } else if((((((((a27==1)&&(((a6==1)&&((a12==11)&&(((input==5)&&(a15==1))&&(a4==1))))&&(a5==1)))&&!(a0==1))&&(a22==1))&&(a20==1))&&(a3==8))&&(a18==1))){ + a22 = 0; + a12 = 9; + a15 = 0; + a18 = 0; + a3 = 7; + a27 = 0; + a0 = 1; + a6 = 0; + return -1; + } else if(((a15==1)&&((!(a6==1)&&(((a3==5)&&((a12==10)&&(((a4==1)&&((a20==1)&&((input==5)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))))&&(a5==1))))&&!(a27==1)))&&(a0==1)))){ + a22 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a6 = 1; + a27 = 1; + return -1; + } else if(((a0==1)&&(!(a27==1)&&((!(a15==1)&&((a6==1)&&((((a5==1)&&((((a3==8)&&((a22==1)&&!(a18==1)))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1)))))&&(input==3)))&&(a12==10))&&!(a4==1))))&&(a20==1))))){ + a18 = 1; + a3 = 6; + a27 = 1; + a4 = 1; + a6 = 0; + a22 = 0; + return -1; + } else if(((((!(a27==1)&&((!(a5==1)&&((a3==7)&&(((a6==1)&&((a22==1)&&(((a18==1)||!(a18==1))&&(input==4))))&&(a20==1))))&&(a15==1)))&&!(a4==1))&&(a12==8))&&!(a0==1))){ + a5 = 1; + a18 = 1; + a4 = 1; + a0 = 1; + a27 = 1; + return 24; + } else if(((a4==1)&&((a22==1)&&(((!(a18==1)&&((!(a15==1)&&((a3==4)&&((a0==1)&&(((input==5)&&(a6==1))&&(a12==10)))))&&(a5==1)))&&(a20==1))&&!(a27==1))))){ + a4 = 0; + a12 = 8; + a22 = 0; + a3 = 6; + return -1; + } else if((((!(a5==1)&&((!(a27==1)&&(!(a0==1)&&((input==5)&&((((!(a4==1)&&(!(a18==1)&&(a22==1)))&&(a3==4))&&(a6==1))||((!(a6==1)&&(((a4==1)&&(!(a22==1)&&!(a18==1)))&&(a3==8)))||((a6==1)&&((((a18==1)&&(a22==1))&&!(a4==1))&&(a3==4))))))))&&(a20==1)))&&(a12==11))&&!(a15==1))){ + a5 = 1; + a3 = 7; + a27 = 1; + a22 = 1; + a18 = 1; + a12 = 8; + a4 = 1; + a6 = 1; + a0 = 1; + a15 = 1; + return -1; + } else if((((a6==1)&&((a27==1)&&((a15==1)&&((((a20==1)&&((((input==2)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&!(a4==1))&&(a3==7)))&&(a12==9))&&(a5==1)))))&&(a0==1))){ + a4 = 1; + a6 = 0; + a12 = 12; + a22 = 0; + a18 = 1; + a5 = 0; + return 21; + } else if((!(a27==1)&&((a12==11)&&((a5==1)&&((a15==1)&&((!(a0==1)&&((((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==2))&&!(a4==1))&&(a6==1)))&&(a20==1))))))){ + a6 = 0; + a18 = 0; + a0 = 1; + a12 = 12; + a22 = 0; + a5 = 0; + a3 = 7; + return -1; + } else if((!(a6==1)&&((((((a4==1)&&(!(a5==1)&&((a12==10)&&((input==5)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==8)))))))&&(a15==1))&&!(a0==1))&&(a20==1))&&!(a27==1)))){ + a5 = 1; + a12 = 8; + a22 = 0; + a0 = 1; + a18 = 0; + a6 = 1; + a3 = 6; + a27 = 1; + return -1; + } else if(((((a0==1)&&((a6==1)&&(!(a5==1)&&((a3==4)&&(((a12==10)&&(!(a4==1)&&((input==6)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))))&&(a27==1))))))&&(a15==1))&&(a20==1))){ + a3 = 6; + a22 = 1; + a18 = 0; + a12 = 8; + a6 = 0; + a5 = 1; + return 21; + } else if(((a22==1)&&((a0==1)&&((a20==1)&&((a12==10)&&((a4==1)&&((a3==4)&&(((a15==1)&&((a6==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a5==1))))&&!(a27==1))))))))){ + a27 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if((((((((a3==7)&&((a6==1)&&(!(a5==1)&&(((a22==1)&&(!(a18==1)&&(input==1)))&&(a12==10)))))&&!(a27==1))&&(a4==1))&&!(a15==1))&&(a0==1))&&(a20==1))){ + a18 = 1; + a3 = 5; + a22 = 0; + a12 = 12; + a4 = 0; + return 21; + } else if(((a0==1)&&((((a20==1)&&(((a3==6)&&(((a27==1)&&((a12==12)&&((input==4)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))))&&!(a6==1)))&&(a15==1)))&&!(a5==1))&&!(a4==1)))){ + a6 = 1; + a3 = 4; + a18 = 0; + a22 = 0; + a4 = 1; + a15 = 0; + a5 = 1; + return 26; + } else if((!(a27==1)&&((a0==1)&&((a3==7)&&((!(a4==1)&&((((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==2))&&(a20==1))&&(a12==11))&&(a6==1))&&!(a5==1)))&&(a15==1)))))){ + a22 = 1; + a18 = 1; + a27 = 1; + a12 = 8; + a3 = 4; + a5 = 1; + a4 = 1; + return -1; + } else if(((a12==10)&&((a15==1)&&((!(a4==1)&&((((a0==1)&&((a27==1)&&(!(a22==1)&&(!(a18==1)&&((input==2)&&(a3==6))))))&&!(a5==1))&&(a20==1)))&&!(a6==1))))){ + a6 = 1; + a4 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + a5 = 1; + a22 = 1; + return -1; + } else if(((!(a5==1)&&((a22==1)&&((a27==1)&&(((!(a6==1)&&((a12==11)&&(!(a0==1)&&(((input==2)&&(a18==1))&&(a3==8)))))&&(a20==1))&&(a4==1)))))&&!(a15==1))){ + a3 = 4; + a6 = 1; + a12 = 8; + a5 = 1; + a0 = 1; + a15 = 1; + return -1; + } else if(((a22==1)&&(((a3==8)&&(((a27==1)&&(!(a4==1)&&((a20==1)&&((a15==1)&&((!(a6==1)&&((input==6)&&((a18==1)||!(a18==1))))&&!(a0==1))))))&&(a5==1)))&&(a12==11)))){ + a12 = 8; + a0 = 1; + a6 = 1; + a4 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a5==1)&&(((((((((a12==8)&&((a3==6)&&((input==2)&&((a18==1)||!(a18==1)))))&&(a0==1))&&!(a27==1))&&(a4==1))&&(a20==1))&&(a22==1))&&!(a6==1))&&!(a15==1)))){ + a6 = 1; + a18 = 1; + a5 = 0; + a27 = 1; + a3 = 8; + a12 = 10; + return 21; + } else if(((((!(a27==1)&&((((((a3==8)&&(!(a4==1)&&((((a18==1)&&!(a22==1))&&(a5==1))&&!(a15==1))))&&!(a6==1))||((((!(a15==1)&&((!(a22==1)&&!(a18==1))&&(a5==1)))&&!(a4==1))&&(a3==8))&&!(a6==1)))||(((((!(a5==1)&&((a18==1)&&(a22==1)))&&(a15==1))&&(a4==1))&&(a3==4))&&(a6==1)))&&(input==1)))&&(a12==10))&&(a0==1))&&(a20==1))){ + a5 = 1; + a15 = 0; + a6 = 1; + a4 = 1; + a3 = 8; + a18 = 1; + a22 = 1; + a12 = 9; + return 26; + } else if((!(a6==1)&&((!(a5==1)&&(!(a27==1)&&((((a3==5)&&((((input==6)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a0==1))&&(a20==1)))&&(a12==9))&&(a4==1))))&&!(a15==1)))){ + a5 = 1; + a18 = 0; + a6 = 1; + a12 = 10; + a3 = 6; + a22 = 0; + a27 = 1; + return 24; + } else if(((a27==1)&&((!(a4==1)&&(((a20==1)&&((!(a6==1)&&(((a12==11)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3)))&&!(a5==1)))&&(a15==1)))&&(a0==1)))&&(a3==4)))){ + if((a15==1)){ + a0 = 0; + a3 = 7; + a18 = 1; + a22 = 0; + }else{ + a22 = 0; + a3 = 6; + a18 = 0; + a4 = 1; + } + return -1; + } else if(((a15==1)&&((((a4==1)&&(!(a27==1)&&((a3==6)&&((a5==1)&&(!(a6==1)&&(!(a0==1)&&((input==2)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))))))&&(a20==1))&&(a12==10)))){ + a6 = 1; + a18 = 0; + a3 = 5; + a27 = 1; + a22 = 1; + a12 = 8; + a0 = 1; + return -1; + } else if((((!(a0==1)&&((a20==1)&&((a15==1)&&(((a5==1)&&(((a12==9)&&((input==4)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))))&&(a3==6)))&&(a4==1)))))&&(a27==1))&&!(a6==1))){ + if((a22==1)){ + a4 = 0; + a22 = 0; + a18 = 1; + a5 = 0; + }else{ + a3 = 4; + a22 = 1; + a0 = 1; + a18 = 1; + a27 = 0; + } + return 24; + } else if((((a3==7)&&((((a0==1)&&(!(a5==1)&&((((a22==1)&&((a15==1)&&((a20==1)&&(input==2))))&&!(a18==1))&&!(a4==1))))&&(a12==11))&&(a27==1)))&&(a6==1))){ + a12 = 8; + a18 = 1; + a3 = 4; + a4 = 1; + a5 = 1; + return -1; + } else if(((!(a15==1)&&(!(a27==1)&&((((!(a5==1)&&((a12==8)&&(!(a0==1)&&((input==4)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))))&&(a3==6))&&!(a6==1))&&(a20==1))))&&(a4==1))){ + a12 = 12; + a27 = 1; + a0 = 1; + a5 = 1; + a6 = 1; + a15 = 1; + a18 = 0; + a4 = 0; + a22 = 0; + return 21; + } else if((((((((a4==1)&&(!(a6==1)&&(((a12==10)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==1)))&&!(a27==1))))&&(a20==1))&&(a3==8))&&!(a5==1))&&!(a0==1))&&(a15==1))){ + a15 = 0; + a3 = 7; + a27 = 1; + a6 = 1; + a12 = 12; + a0 = 1; + a22 = 0; + a18 = 1; + return 21; + } else if(((!(a6==1)&&((a5==1)&&((a4==1)&&((a27==1)&&((((a3==7)&&((a15==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==6))))&&!(a0==1))&&(a12==8))))))&&(a20==1))){ + a4 = 0; + a0 = 1; + a12 = 12; + a3 = 6; + a6 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if((!(a18==1)&&(((a20==1)&&(!(a15==1)&&(!(a22==1)&&(((a4==1)&&((((a0==1)&&((a5==1)&&(input==5)))&&(a12==10))&&(a3==6)))&&!(a6==1)))))&&(a27==1)))){ + a15 = 1; + a22 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if(((((!(a0==1)&&((((!(a5==1)&&(!(a27==1)&&((input==2)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))&&(a3==6))&&(a4==1))&&(a12==8)))&&!(a15==1))&&(a20==1))&&!(a6==1))){ + a3 = 7; + a5 = 1; + a0 = 1; + a12 = 12; + a18 = 0; + a22 = 1; + return 21; + } else if((!(a5==1)&&((!(a0==1)&&(!(a6==1)&&(((a27==1)&&(((a3==6)&&((a22==1)&&(((input==3)&&(a12==8))&&!(a4==1))))&&(a20==1)))&&!(a18==1))))&&!(a15==1)))){ + a15 = 1; + a12 = 11; + a27 = 0; + a3 = 8; + a0 = 1; + return 26; + } else if(((!(a15==1)&&(((a4==1)&&((a12==10)&&(!(a6==1)&&(((((a22==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a20==1))&&(a3==8))&&!(a0==1)))))&&(a5==1)))&&!(a27==1))){ + a27 = 1; + a18 = 1; + a5 = 0; + a12 = 11; + return 26; + } else if((!(a4==1)&&((a20==1)&&((a6==1)&&((((((((((!(a22==1)&&(a18==1))&&(a3==7))||((a3==7)&&(!(a22==1)&&!(a18==1))))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==3))&&(a15==1))&&!(a0==1))&&(a5==1))&&!(a27==1))&&(a12==10)))))){ + a12 = 8; + a18 = 1; + a3 = 5; + a27 = 1; + a15 = 0; + a22 = 0; + return -1; + } else if(((a15==1)&&((!(a4==1)&&(!(a0==1)&&(((!(a5==1)&&(((a20==1)&&((input==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))))&&(a12==11)))&&(a6==1))&&(a3==4))))&&!(a27==1)))){ + a3 = 7; + a0 = 1; + a27 = 1; + a18 = 1; + a5 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if((!(a4==1)&&(((a5==1)&&(((a22==1)&&(((a20==1)&&((a0==1)&&(!(a15==1)&&(((a3==4)&&(input==5))&&(a12==10)))))&&!(a18==1)))&&(a6==1)))&&!(a27==1)))){ + a12 = 8; + a4 = 1; + a18 = 1; + a27 = 1; + a15 = 1; + return -1; + } else if((!(a4==1)&&(!(a15==1)&&(((a5==1)&&((a12==10)&&((a20==1)&&(!(a6==1)&&((a0==1)&&((a27==1)&&((input==3)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))))))))&&(a3==4))))){ + a22 = 1; + a6 = 1; + a18 = 0; + a3 = 8; + return -1; + } else if((((a12==12)&&((((((((a3==8)&&((a15==1)&&((input==5)&&!(a6==1))))&&(a22==1))&&(a0==1))&&!(a27==1))&&(a4==1))&&(a20==1))&&!(a5==1)))&&!(a18==1))){ + a12 = 9; + a4 = 0; + a18 = 1; + a27 = 1; + a3 = 7; + return 26; + } else if(((((((((((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==3))&&!(a27==1))&&(a4==1))&&(a12==10))&&(a3==4))&&(a0==1))&&!(a5==1))&&!(a6==1))&&(a15==1))&&(a20==1))){ + a22 = 1; + a5 = 1; + a18 = 1; + a4 = 0; + a6 = 1; + a15 = 0; + a3 = 6; + return -1; + } else if((!(a5==1)&&((((((!(a22==1)&&((a4==1)&&((((input==1)&&((a18==1)||!(a18==1)))&&(a20==1))&&(a6==1))))&&(a12==10))&&(a0==1))&&(a15==1))&&(a3==7))&&(a27==1)))){ + a18 = 0; + a5 = 1; + a4 = 0; + a3 = 5; + a27 = 0; + return 21; + } else if(((((a12==10)&&((((a15==1)&&((a4==1)&&((((((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==2))&&(a6==1))))&&(a5==1))&&!(a27==1)))&&(a20==1))&&(a0==1))){ + if((a27==1)){ + a3 = 8; + a0 = 0; + a27 = 1; + a22 = 1; + a12 = 9; + a18 = 0; + }else{ + a3 = 8; + a4 = 0; + a12 = 8; + a18 = 1; + a5 = 0; + a27 = 1; + a0 = 0; + a22 = 0; + } + return 26; + } else if(((a4==1)&&((a27==1)&&((a0==1)&&((((a20==1)&&((((a3==8)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==1)))&&!(a15==1))&&(a12==12)))&&!(a6==1))&&(a5==1)))))){ + a22 = 1; + a18 = 0; + a12 = 11; + a15 = 1; + a4 = 0; + return -1; + } else if(((a5==1)&&((a3==5)&&((((a15==1)&&(!(a27==1)&&(!(a0==1)&&((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==5))&&(a12==8))&&(a4==1)))))&&(a6==1))&&(a20==1))))){ + if((a20==1)){ + a18 = 0; + a12 = 11; + a27 = 1; + a4 = 0; + a22 = 0; + a3 = 8; + a0 = 1; + }else{ + a3 = 8; + a4 = 0; + a18 = 0; + a27 = 1; + a0 = 1; + a22 = 1; + } + return 26; + } else if((!(a22==1)&&(((((a4==1)&&((a12==10)&&((a5==1)&&((!(a0==1)&&(((a20==1)&&(input==6))&&(a3==7)))&&!(a18==1)))))&&!(a6==1))&&(a27==1))&&!(a15==1)))){ + a3 = 5; + a5 = 0; + a22 = 1; + a18 = 1; + a0 = 1; + a4 = 0; + return -1; + } else if(((!(a6==1)&&((a3==7)&&((a20==1)&&((a15==1)&&((!(a27==1)&&((((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==3))&&(a0==1))&&(a12==9)))&&!(a4==1))))))&&(a5==1))){ + if((a0==1)){ + a15 = 0; + a5 = 0; + a6 = 1; + a22 = 1; + a12 = 8; + a18 = 1; + a27 = 1; + a0 = 0; + a3 = 4; + }else{ + a4 = 1; + a27 = 1; + a22 = 1; + a3 = 5; + a6 = 1; + a12 = 11; + a18 = 1; + } + return -1; + } else if(((((a20==1)&&((a4==1)&&((a6==1)&&(((((a3==8)&&((input==5)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a15==1))&&!(a5==1))&&(a0==1)))))&&(a12==8))&&(a27==1))){ + a4 = 0; + a3 = 5; + a12 = 10; + a22 = 0; + a18 = 1; + return 26; + } else if(((a4==1)&&(!(a0==1)&&((a15==1)&&(((a12==9)&&(!(a5==1)&&(((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==5))&&(a6==1))&&(a20==1))&&(a3==7))))&&!(a27==1)))))){ + a27 = 1; + a3 = 5; + a0 = 1; + a22 = 1; + a12 = 8; + a5 = 1; + a18 = 1; + a4 = 0; + return 21; + } else if((((a4==1)&&((a20==1)&&((a3==8)&&((((a6==1)&&(((a0==1)&&((input==3)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a5==1)))&&(a12==8))&&!(a27==1)))))&&!(a15==1))){ + a4 = 0; + a18 = 0; + a6 = 0; + a3 = 6; + a12 = 12; + a22 = 1; + return -1; + } else if((((!(a27==1)&&((!(a15==1)&&((a12==8)&&(!(a4==1)&&((((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))||((a3==5)&&(!(a18==1)&&(a22==1))))&&(input==3))&&(a20==1)))))&&(a0==1)))&&(a5==1))&&!(a6==1))){ + a15 = 1; + a22 = 1; + a4 = 1; + a27 = 1; + a3 = 4; + a6 = 1; + a18 = 1; + return -1; + } else if((((((a3==6)&&(((a5==1)&&((a4==1)&&((((input==2)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&(a20==1))&&(a0==1))))&&(a15==1)))&&(a12==10))&&(a27==1))&&(a6==1))){ + a18 = 0; + a22 = 0; + a6 = 0; + return 26; + } else if(((!(a15==1)&&(!(a27==1)&&((!(a6==1)&&((!(a0==1)&&((a4==1)&&((a3==6)&&((input==6)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))&&(a20==1)))&&!(a5==1))))&&(a12==10))){ + if((a6==1)){ + a6 = 1; + a12 = 8; + a0 = 1; + a5 = 1; + a27 = 1; + a18 = 1; + a15 = 1; + a22 = 1; + }else{ + a12 = 9; + a4 = 0; + a0 = 1; + a6 = 1; + a18 = 0; + a3 = 7; + a22 = 0; + a15 = 1; + } + return 21; + } else if((((a20==1)&&(!(a27==1)&&((input==5)&&(((((a4==1)&&((a12==11)&&((((a18==1)&&(a22==1))&&(a5==1))&&(a15==1))))&&(a3==4))&&(a6==1))||((!(a6==1)&&((a3==8)&&((((!(a5==1)&&(!(a22==1)&&(a18==1)))&&!(a15==1))&&(a12==10))&&!(a4==1))))||(((!(a4==1)&&((a12==10)&&((!(a5==1)&&(!(a18==1)&&!(a22==1)))&&!(a15==1))))&&(a3==8))&&!(a6==1)))))))&&!(a0==1))){ + if((a0==1)){ + a5 = 1; + a12 = 8; + a6 = 1; + a27 = 1; + a18 = 0; + a22 = 1; + a0 = 1; + a15 = 1; + a3 = 6; + a4 = 0; + }else{ + a6 = 1; + a27 = 1; + a4 = 0; + a22 = 0; + a12 = 8; + a0 = 1; + a5 = 1; + a18 = 1; + a3 = 4; + a15 = 1; + } + return 26; + } else if((((((input==1)&&((((a3==8)&&(!(a4==1)&&((a12==9)&&(!(a15==1)&&(!(a5==1)&&(!(a18==1)&&!(a22==1)))))))&&!(a6==1))||(((a3==4)&&((((a15==1)&&((a5==1)&&((a18==1)&&(a22==1))))&&(a12==10))&&(a4==1)))&&(a6==1))))&&!(a27==1))&&(a20==1))&&!(a0==1))){ + if((a3==4)){ + a0 = 1; + a6 = 0; + a3 = 8; + a15 = 1; + a5 = 1; + a4 = 1; + a18 = 1; + a12 = 11; + a27 = 1; + a22 = 1; + }else{ + a18 = 0; + a5 = 0; + a3 = 5; + a22 = 0; + a12 = 9; + a4 = 1; + a6 = 1; + a15 = 1; + } + return 26; + } else if((((((((a12==12)&&((((!(a15==1)&&((a5==1)&&(input==4)))&&(a20==1))&&(a22==1))&&!(a27==1)))&&(a0==1))&&!(a18==1))&&(a3==6))&&(a4==1))&&(a6==1))){ + a3 = 7; + a22 = 0; + a12 = 10; + a15 = 1; + a18 = 1; + a6 = 0; + a27 = 1; + return -1; + } else if((((a15==1)&&((((((a4==1)&&(!(a5==1)&&(((a20==1)&&((input==4)&&((a18==1)||!(a18==1))))&&(a0==1))))&&(a22==1))&&!(a6==1))&&(a27==1))&&(a3==7)))&&(a12==11))){ + a18 = 1; + a3 = 6; + return -1; + } else if((((((a5==1)&&((!(a22==1)&&((a12==11)&&((a15==1)&&(((a20==1)&&((input==6)&&((a18==1)||!(a18==1))))&&!(a6==1)))))&&!(a27==1)))&&!(a4==1))&&(a3==5))&&(a0==1))){ + a18 = 0; + a27 = 1; + a15 = 0; + return 24; + } else if(((((!(a6==1)&&((a12==9)&&((a20==1)&&(!(a15==1)&&(!(a27==1)&&(!(a0==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==4))))))))&&(a5==1))&&(a3==8))&&!(a4==1))){ + if((a0==1)){ + a0 = 1; + a27 = 1; + a18 = 1; + a22 = 1; + a6 = 1; + a12 = 8; + a15 = 1; + }else{ + a27 = 1; + a15 = 1; + a6 = 1; + a18 = 1; + a22 = 0; + a3 = 5; + a12 = 8; + a0 = 1; + } + return -1; + } else if(((!(a15==1)&&(!(a0==1)&&(((((a4==1)&&((a5==1)&&(((input==1)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&(a20==1))))&&(a3==8))&&!(a6==1))&&(a12==9))))&&!(a27==1))){ + a3 = 5; + a0 = 1; + a15 = 1; + a27 = 1; + a18 = 0; + a12 = 8; + a22 = 0; + return 26; + } else if((((a27==1)&&((a6==1)&&(((((((((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==6))&&!(a5==1))&&(a12==11))&&(a15==1))&&(a20==1))&&(a0==1))))&&(a4==1))){ + a3 = 7; + a18 = 1; + a4 = 0; + a12 = 10; + a5 = 1; + a22 = 0; + return -1; + } else if((((a27==1)&&((!(a0==1)&&(((a3==5)&&((a12==12)&&((a4==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==3))&&!(a15==1)))))&&(a20==1)))&&(a5==1)))&&!(a6==1))){ + if((a27==1)){ + a5 = 0; + a22 = 0; + a3 = 8; + a6 = 1; + a18 = 0; + }else{ + a22 = 0; + a18 = 1; + a15 = 1; + a0 = 1; + a12 = 8; + a6 = 1; + a3 = 7; + } + return 24; + } else if((!(a6==1)&&(!(a4==1)&&(((!(a15==1)&&((a22==1)&&((a5==1)&&((((a12==11)&&(((a18==1)||!(a18==1))&&(input==2)))&&!(a0==1))&&(a3==5)))))&&(a20==1))&&!(a27==1))))){ + a6 = 1; + a15 = 1; + a27 = 1; + a12 = 8; + a3 = 8; + a0 = 1; + a4 = 1; + a18 = 0; + return 21; + } else if(((a18==1)&&((a20==1)&&((!(a15==1)&&(((((((a22==1)&&((a3==4)&&(input==1)))&&!(a5==1))&&!(a0==1))&&!(a4==1))&&(a12==11))&&!(a6==1)))&&!(a27==1))))){ + if((a18==1)){ + a3 = 7; + a6 = 1; + a27 = 1; + a15 = 1; + a12 = 8; + a0 = 1; + a5 = 1; + }else{ + a27 = 1; + a0 = 1; + a4 = 1; + a12 = 8; + a22 = 0; + a5 = 1; + a15 = 1; + a18 = 0; + a3 = 8; + } + return 24; + } else if(((((a12==12)&&(!(a5==1)&&((a3==7)&&(((a4==1)&&(((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==6))&&(a6==1))&&(a20==1)))&&(a0==1)))))&&!(a27==1))&&(a15==1))){ + if((a18==1)){ + a22 = 1; + a5 = 1; + a3 = 8; + a18 = 1; + a12 = 8; + a0 = 0; + a27 = 1; + a6 = 0; + }else{ + a15 = 0; + a6 = 0; + a18 = 1; + a12 = 10; + a3 = 8; + a22 = 1; + } + return -1; + } else if(((((a0==1)&&((a4==1)&&(((a5==1)&&((((input==1)&&(((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||((a3==6)&&((a18==1)&&(a22==1)))))&&(a12==11))&&!(a6==1)))&&!(a15==1))))&&!(a27==1))&&(a20==1))){ + a15 = 1; + a22 = 1; + a27 = 1; + a18 = 1; + a6 = 1; + a12 = 8; + a3 = 4; + return -1; + } return calculate_output31(input); + } + + int calculate_output31(int input) { + if(((a15==1)&&(((!(a4==1)&&((a0==1)&&(((((!(a27==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&!(a22==1))&&(a5==1))&&(a6==1))&&(a20==1))))&&(a3==4))&&(a12==8)))){ + a18 = 1; + a6 = 0; + a4 = 1; + a3 = 8; + a22 = 1; + a5 = 0; + return 24; + } else if(((((a20==1)&&((a12==8)&&((a0==1)&&((a3==7)&&(((!(a27==1)&&((((a18==1)||!(a18==1))&&(input==6))&&!(a5==1)))&&(a15==1))&&!(a6==1))))))&&!(a4==1))&&(a22==1))){ + a4 = 1; + a18 = 0; + a22 = 0; + a3 = 6; + a12 = 12; + a27 = 1; + a6 = 1; + return 21; + } else if((!(a5==1)&&((a27==1)&&(((a6==1)&&((a15==1)&&((a3==4)&&((a20==1)&&(!(a22==1)&&(!(a18==1)&&((a0==1)&&((a12==10)&&(input==1)))))))))&&!(a4==1))))){ + a6 = 0; + a22 = 1; + a0 = 0; + a15 = 0; + a12 = 11; + a5 = 1; + a18 = 1; + return -1; + } else if(((((!(a5==1)&&((a4==1)&&(!(a22==1)&&((a12==9)&&((!(a15==1)&&((a18==1)&&((input==1)&&(a6==1))))&&(a20==1))))))&&(a3==7))&&(a0==1))&&(a27==1))){ + a22 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + a15 = 1; + return -1; + } else if((!(a5==1)&&((((a4==1)&&((a20==1)&&((a12==11)&&((a3==6)&&((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==1))&&(a27==1))&&(a15==1))))))&&!(a6==1))&&(a0==1)))){ + a5 = 1; + a27 = 0; + a4 = 0; + a3 = 5; + a22 = 1; + a15 = 0; + a18 = 0; + return 26; + } else if(((a20==1)&&((a0==1)&&(((a6==1)&&((!(a4==1)&&((!(a22==1)&&((a5==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a12==12))))&&(a15==1)))&&!(a27==1)))&&(a3==4))))){ + a27 = 1; + a22 = 1; + a12 = 8; + a4 = 1; + a18 = 1; + return -1; + } else if((!(a5==1)&&(((!(a6==1)&&((((a12==12)&&(!(a4==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==5))&&(a0==1))))&&!(a15==1))&&(a3==4)))&&(a20==1))&&(a27==1)))){ + a3 = 8; + a22 = 1; + a6 = 1; + a18 = 1; + a4 = 1; + a12 = 11; + a5 = 1; + return 26; + } else if((!(a4==1)&&(((!(a6==1)&&(((a3==8)&&((((a27==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a12==12)))&&!(a0==1))&&!(a22==1)))&&(a15==1)))&&(a20==1))&&(a5==1)))){ + a12 = 9; + a18 = 1; + a3 = 6; + a0 = 1; + a5 = 0; + a22 = 1; + a27 = 0; + return 26; + } else if(((a27==1)&&((a6==1)&&(((a15==1)&&((a0==1)&&(!(a4==1)&&((a20==1)&&(!(a5==1)&&(((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7)))||((!(a18==1)&&(a22==1))&&(a3==7)))&&(input==2)))))))&&(a12==10))))){ + a15 = 0; + a5 = 1; + a3 = 5; + a18 = 0; + a22 = 0; + return -1; + } else if((!(a15==1)&&(((!(a5==1)&&(((a20==1)&&((((a3==5)&&(((input==1)&&!(a0==1))&&(a22==1)))&&(a6==1))&&!(a27==1)))&&(a18==1)))&&(a12==8))&&!(a4==1)))){ + a18 = 0; + a0 = 1; + a6 = 0; + a4 = 1; + a3 = 4; + a12 = 10; + a27 = 1; + return 21; + } else if(((a15==1)&&((a27==1)&&(!(a18==1)&&(((a20==1)&&((a5==1)&&(((a3==5)&&(((a12==12)&&((input==4)&&(a0==1)))&&!(a6==1)))&&!(a22==1))))&&!(a4==1)))))){ + a5 = 0; + a3 = 4; + a12 = 11; + a22 = 1; + return -1; + } else if((((a4==1)&&((((a0==1)&&(!(a15==1)&&((a12==11)&&(((((a6==1)&&((a3==8)&&((a18==1)&&!(a22==1))))||(((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1)))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1)))&&(input==4)))))&&!(a5==1))&&(a20==1)))&&(a27==1))){ + a3 = 6; + a22 = 0; + a18 = 0; + a12 = 10; + a5 = 1; + a6 = 1; + return -1; + } else if((((!(a5==1)&&((a20==1)&&((!(a4==1)&&(((a12==9)&&(!(a6==1)&&((input==4)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))))&&!(a0==1)))&&(a3==7))))&&(a27==1))&&!(a15==1))){ + a4 = 1; + a15 = 1; + a3 = 8; + a6 = 1; + a5 = 1; + a22 = 0; + a0 = 1; + a12 = 11; + a18 = 0; + return 21; + } else if((((a20==1)&&((((((((((a15==1)&&(!(a18==1)&&!(a22==1)))&&!(a4==1))&&(a3==8))&&!(a6==1))||(((a3==4)&&((((a22==1)&&(a18==1))&&!(a15==1))&&(a4==1)))&&(a6==1)))&&(input==3))&&(a12==9))&&(a0==1))&&(a5==1)))&&(a27==1))){ + if((a5==1)){ + a0 = 0; + a12 = 12; + a6 = 0; + a15 = 1; + a22 = 1; + a18 = 0; + a3 = 7; + a4 = 0; + }else{ + a22 = 1; + a15 = 0; + a3 = 6; + a6 = 1; + a12 = 11; + a4 = 0; + a18 = 0; + } + return 21; + } else if(((!(a0==1)&&((a12==8)&&((a20==1)&&(!(a6==1)&&(!(a27==1)&&(((a4==1)&&((input==5)&&(((!(a18==1)&&(a22==1))&&(a3==8))||(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8))))))&&(a15==1)))))))&&(a5==1))){ + a0 = 1; + a18 = 1; + a15 = 0; + a3 = 7; + a4 = 0; + a22 = 0; + return 21; + } else if(((a3==6)&&(((((!(a6==1)&&(!(a5==1)&&((a27==1)&&((a0==1)&&((input==4)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))))))&&(a15==1))&&(a20==1))&&(a4==1))&&(a12==11)))){ + a18 = 0; + a22 = 0; + a3 = 8; + a5 = 1; + a4 = 0; + a12 = 10; + a6 = 1; + return -1; + } else if(((((((a12==8)&&((a0==1)&&((a20==1)&&(!(a6==1)&&((((input==6)&&((a18==1)||!(a18==1)))&&(a3==7))&&(a15==1))))))&&(a4==1))&&!(a27==1))&&(a5==1))&&(a22==1))){ + a27 = 1; + a15 = 0; + a22 = 0; + a0 = 0; + a3 = 4; + a18 = 0; + return -1; + } else if(((a12==10)&&((((((!(a4==1)&&(!(a0==1)&&((input==1)&&((((a22==1)&&!(a18==1))&&(a3==8))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1))))))))&&!(a27==1))&&(a20==1))&&!(a6==1))&&!(a5==1))&&!(a15==1)))){ + a18 = 1; + a12 = 8; + a6 = 1; + a15 = 1; + a0 = 1; + a22 = 0; + a3 = 5; + a27 = 1; + a5 = 1; + return -1; + } else if(((((!(a18==1)&&(!(a27==1)&&((!(a15==1)&&(!(a4==1)&&(((a12==11)&&((a3==8)&&(input==3)))&&!(a5==1))))&&(a0==1))))&&!(a22==1))&&!(a6==1))&&(a20==1))){ + a22 = 1; + a27 = 1; + a12 = 10; + a18 = 1; + a3 = 6; + a15 = 1; + return -1; + } else if(((a3==6)&&((a27==1)&&(((a6==1)&&((!(a15==1)&&((!(a0==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&(a12==8)))&&!(a5==1)))&&!(a4==1)))&&(a20==1))))){ + a6 = 0; + a4 = 1; + a0 = 1; + a22 = 0; + a18 = 1; + a12 = 10; + return 26; + } else if(((!(a5==1)&&((a0==1)&&((a3==7)&&(((((a4==1)&&(((a20==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a22==1)))&&!(a6==1))&&(a12==12))&&!(a15==1)))))&&(a27==1))){ + a3 = 8; + a15 = 1; + a4 = 0; + a12 = 9; + a18 = 1; + a0 = 0; + return 24; + } else if((((a0==1)&&((a6==1)&&(((!(a4==1)&&((!(a5==1)&&(((input==2)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a20==1)))&&(a3==6)))&&(a12==12))&&(a15==1))))&&!(a27==1))){ + a22 = 0; + a6 = 0; + a5 = 1; + a18 = 0; + a3 = 5; + a12 = 10; + return -1; + } else if((!(a0==1)&&((a20==1)&&((a27==1)&&((a5==1)&&(((((input==4)&&((((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4)))))&&(a12==8))&&(a4==1))&&(a15==1))))))){ + a6 = 1; + a18 = 1; + a22 = 1; + a0 = 1; + a3 = 4; + return -1; + } else if((!(a15==1)&&((((!(a6==1)&&((a3==4)&&((a20==1)&&(((a5==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6)))&&(a27==1)))))&&(a4==1))&&(a12==12))&&!(a0==1)))){ + if((a22==1)){ + a3 = 8; + a15 = 1; + a18 = 1; + a12 = 8; + a4 = 0; + a22 = 0; + }else{ + a0 = 1; + a3 = 7; + a6 = 1; + a22 = 0; + a18 = 0; + a12 = 10; + a15 = 1; + a4 = 0; + } + return -1; + } else if((((((((a12==10)&&((a18==1)&&((a20==1)&&(!(a6==1)&&((a4==1)&&(!(a27==1)&&(input==3)))))))&&(a5==1))&&!(a15==1))&&!(a0==1))&&(a3==4))&&!(a22==1))){ + a0 = 1; + a15 = 1; + a6 = 1; + a27 = 1; + a12 = 8; + a22 = 1; + a3 = 8; + a18 = 0; + return 21; + } else if((!(a27==1)&&(!(a4==1)&&(!(a5==1)&&((((((a12==12)&&((a15==1)&&((input==5)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))&&(a6==1))&&(a20==1))&&(a3==6))&&(a0==1)))))){ + a27 = 1; + a22 = 0; + a6 = 0; + a18 = 1; + return -1; + } else if((!(a18==1)&&((a0==1)&&((a6==1)&&((!(a4==1)&&(!(a27==1)&&((a5==1)&&((a3==7)&&((a15==1)&&(!(a22==1)&&((input==1)&&(a20==1))))))))&&(a12==9)))))){ + a22 = 1; + a4 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a27 = 1; + return -1; + } else if(((a6==1)&&(((a4==1)&&((!(a15==1)&&((a20==1)&&((a27==1)&&((a5==1)&&((a3==8)&&((input==5)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))))))))&&(a0==1)))&&(a12==11)))){ + a22 = 1; + a15 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((a3==7)&&((((!(a27==1)&&(!(a4==1)&&(!(a6==1)&&(((a5==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==5)))&&(a0==1)))))&&(a20==1))&&(a12==10))&&(a15==1)))){ + a3 = 6; + a15 = 0; + a18 = 1; + a12 = 9; + a22 = 0; + return 21; + } else if(((a20==1)&&(((((!(a4==1)&&(((a18==1)&&((a5==1)&&((a22==1)&&((input==1)&&(a27==1)))))&&(a12==12)))&&(a3==6))&&!(a0==1))&&(a15==1))&&!(a6==1)))){ + a0 = 1; + a3 = 5; + return 24; + } else if((((((a27==1)&&((a20==1)&&((a5==1)&&((a12==10)&&(((input==6)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))||((!(a18==1)&&(a22==1))&&(a3==8))))&&(a6==1))))))&&(a15==1))&&!(a4==1))&&(a0==1))){ + a3 = 7; + a22 = 1; + a18 = 1; + a4 = 1; + return -1; + } else if(((a3==4)&&((!(a6==1)&&((a27==1)&&((((((a15==1)&&((input==2)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))&&(a5==1))&&(a4==1))&&(a0==1))&&(a12==12))))&&(a20==1)))){ + a18 = 0; + a22 = 1; + a27 = 0; + a4 = 0; + a5 = 0; + a3 = 8; + return -1; + } else if((!(a4==1)&&((!(a15==1)&&((((!(a5==1)&&(((input==4)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6)))||(((a22==1)&&!(a18==1))&&(a3==6))))&&(a12==11)))&&(a0==1))&&(a20==1))&&(a6==1)))&&(a27==1)))){ + a3 = 7; + a18 = 0; + a6 = 0; + a15 = 1; + a4 = 1; + a12 = 12; + a22 = 0; + return 26; + } else if(((!(a4==1)&&((a20==1)&&((a5==1)&&((((a6==1)&&(!(a27==1)&&(((input==5)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a12==10))))&&!(a15==1))&&(a3==7)))))&&(a0==1))){ + a5 = 0; + a15 = 1; + a3 = 8; + a22 = 0; + a12 = 8; + a4 = 1; + a18 = 1; + return 21; + } else if(((a12==8)&&(((a0==1)&&((a20==1)&&(((((!(a6==1)&&((((a15==1)&&(!(a22==1)&&(a18==1)))&&!(a4==1))&&(a3==8)))||(!(a6==1)&&((!(a4==1)&&((a15==1)&&(!(a18==1)&&!(a22==1))))&&(a3==8))))||((((((a18==1)&&(a22==1))&&!(a15==1))&&(a4==1))&&(a3==4))&&(a6==1)))&&(input==3))&&(a27==1))))&&!(a5==1)))){ + a22 = 1; + a3 = 8; + a6 = 0; + a18 = 0; + a12 = 10; + a15 = 1; + a4 = 1; + return 21; + } else if((((a5==1)&&((!(a4==1)&&(!(a27==1)&&(((((input==4)&&((((a3==4)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))||(((a18==1)&&(a22==1))&&(a3==5))))&&(a6==1))&&(a15==1))&&(a0==1))))&&(a12==11)))&&(a20==1))){ + a18 = 1; + a4 = 1; + a12 = 8; + a27 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if((((!(a5==1)&&(!(a4==1)&&((((a27==1)&&(((input==2)&&((((a22==1)&&(a18==1))&&(a3==8))||((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a22==1)&&!(a18==1))))))&&(a12==11)))&&(a6==1))&&!(a0==1))))&&(a20==1))&&!(a15==1))){ + a18 = 1; + a15 = 1; + a27 = 0; + a0 = 1; + a22 = 0; + a5 = 1; + a3 = 6; + return 21; + } else if(((a0==1)&&((a12==9)&&((a4==1)&&((!(a5==1)&&(((!(a6==1)&&((a3==8)&&(!(a15==1)&&((input==6)&&((a18==1)||!(a18==1))))))&&!(a27==1))&&!(a22==1)))&&(a20==1)))))){ + a18 = 1; + a22 = 1; + a5 = 1; + a3 = 4; + a12 = 10; + a27 = 1; + a6 = 1; + return 26; + } else if(((((a5==1)&&(!(a15==1)&&((((((!(a4==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a3==6))&&!(a27==1))&&(a12==11))&&(a22==1))&&(a6==1))))&&(a0==1))&&(a20==1))){ + a27 = 1; + a15 = 1; + a5 = 0; + a12 = 12; + a18 = 1; + a3 = 8; + return -1; + } else if(((((a4==1)&&(!(a0==1)&&((a20==1)&&(((a5==1)&&(((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==6))&&(a15==1)))&&(a12==12)))))&&!(a6==1))&&(a27==1))){ + a6 = 1; + a0 = 1; + a3 = 4; + a5 = 0; + a22 = 0; + a18 = 0; + a15 = 0; + a12 = 11; + return -1; + } else if(((!(a0==1)&&((a15==1)&&(!(a5==1)&&(((a12==12)&&((((a3==4)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==3)))&&(a20==1))&&(a27==1)))&&!(a4==1)))))&&!(a6==1))){ + if((a12==11)){ + a12 = 8; + a22 = 0; + a18 = 1; + a0 = 1; + a3 = 8; + a5 = 1; + a4 = 1; + }else{ + a15 = 0; + a6 = 1; + a0 = 1; + a4 = 1; + a18 = 0; + a27 = 0; + a3 = 5; + a12 = 8; + a22 = 1; + } + return -1; + } else if(((a3==4)&&((((a4==1)&&((((a20==1)&&((a27==1)&&((a12==8)&&((((a18==1)||!(a18==1))&&(input==2))&&!(a5==1)))))&&(a6==1))&&!(a15==1)))&&!(a22==1))&&(a0==1)))){ + a18 = 1; + a22 = 1; + a5 = 1; + a15 = 1; + return -1; + } else if((!(a4==1)&&((((((a15==1)&&(((a5==1)&&((input==1)&&(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8)))))&&(a20==1)))&&!(a6==1))&&(a27==1))&&(a0==1))&&(a12==10)))){ + if((a12==9)){ + a18 = 1; + a3 = 5; + a12 = 11; + a22 = 1; + a6 = 1; + a0 = 0; + a5 = 0; + }else{ + a6 = 1; + a5 = 0; + a18 = 1; + a15 = 0; + a12 = 11; + a22 = 1; + a3 = 8; + } + return 21; + } else if(((((((a22==1)&&((a20==1)&&(((a0==1)&&((!(a4==1)&&((input==2)&&((a18==1)||!(a18==1))))&&!(a27==1)))&&!(a15==1))))&&(a3==8))&&(a12==12))&&!(a6==1))&&(a5==1))){ + a6 = 1; + a27 = 1; + a3 = 4; + a18 = 1; + a4 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if(((a4==1)&&(!(a27==1)&&(!(a5==1)&&(!(a6==1)&&(!(a0==1)&&((a12==9)&&(((a20==1)&&((((((a18==1)&&!(a22==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==1)))&&(a15==1))))))))){ + a0 = 1; + a4 = 0; + a18 = 0; + a22 = 1; + a12 = 12; + a3 = 8; + a5 = 1; + return -1; + } else if((((a4==1)&&((a27==1)&&((a6==1)&&((((((a3==8)&&(((input==6)&&(a20==1))&&(a18==1)))&&(a12==10))&&(a5==1))&&(a22==1))&&(a15==1)))))&&(a0==1))){ + a3 = 4; + a12 = 8; + return -1; + } else if((((a20==1)&&(((!(a6==1)&&((a0==1)&&((a15==1)&&((((((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1))))||(((a22==1)&&!(a18==1))&&(a3==5)))&&(input==1))&&(a27==1)))))&&!(a5==1))&&!(a4==1)))&&(a12==11))){ + a12 = 9; + a22 = 0; + a4 = 1; + a0 = 0; + a18 = 0; + a3 = 5; + a6 = 1; + return 26; + } else if((!(a0==1)&&((a27==1)&&((!(a15==1)&&(((((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==4))&&(a12==8))&&!(a6==1))&&(a5==1))&&(a3==4))&&(a20==1)))&&(a4==1))))){ + if((a6==1)){ + a15 = 1; + a5 = 0; + a12 = 9; + a6 = 1; + a18 = 1; + a22 = 1; + }else{ + a22 = 1; + a18 = 0; + a12 = 12; + a6 = 1; + a3 = 8; + } + return 26; + } else if(((a6==1)&&(!(a15==1)&&(((a20==1)&&((a27==1)&&((a12==9)&&((a0==1)&&((a4==1)&&((((!(a18==1)&&(a22==1))&&(a3==7))||(((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1)))))&&(input==3)))))))&&!(a5==1))))){ + a3 = 5; + a5 = 1; + a12 = 10; + a18 = 0; + a6 = 0; + a22 = 1; + return 24; + } else if((((!(a15==1)&&((((a20==1)&&(!(a27==1)&&((((input==3)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a6==1))&&!(a5==1))))&&!(a4==1))&&!(a0==1)))&&(a12==11))&&(a3==6))){ + a27 = 1; + a15 = 1; + a12 = 9; + a22 = 0; + a18 = 1; + a5 = 1; + a4 = 1; + a6 = 0; + a3 = 5; + return -1; + } else if(((a20==1)&&(((a3==7)&&((!(a15==1)&&(!(a0==1)&&((a27==1)&&(!(a5==1)&&((a12==10)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==1)))))))&&(a4==1)))&&!(a6==1)))){ + a22 = 1; + a18 = 0; + a12 = 11; + a15 = 1; + a6 = 1; + a3 = 8; + a0 = 1; + return 21; + } else if(((a5==1)&&((!(a22==1)&&((a4==1)&&((a3==8)&&(((a0==1)&&(((((input==3)&&!(a15==1))&&!(a6==1))&&(a18==1))&&(a27==1)))&&(a12==9)))))&&(a20==1)))){ + a6 = 1; + a3 = 6; + a15 = 1; + a5 = 0; + a18 = 0; + a12 = 11; + return 24; + } else if((!(a27==1)&&(!(a4==1)&&(!(a0==1)&&((a20==1)&&(!(a6==1)&&(((!(a5==1)&&(((((a3==6)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==2)))&&(a12==8))&&!(a15==1)))))))){ + a6 = 1; + a22 = 1; + a27 = 1; + a18 = 0; + a15 = 1; + a3 = 4; + a0 = 1; + a5 = 1; + return -1; + } else if((!(a27==1)&&(!(a0==1)&&(((a4==1)&&((a20==1)&&((((input==2)&&((((((a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1)))))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1))))&&!(a5==1))&&!(a15==1))))&&(a12==10))))){ + a6 = 0; + a22 = 1; + a3 = 7; + a5 = 1; + a0 = 1; + a27 = 1; + a18 = 0; + return 21; + } else if(((a0==1)&&((a4==1)&&((((a12==8)&&(((a20==1)&&((!(a15==1)&&((input==6)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a6==1)))&&(a3==4)))&&!(a27==1))&&!(a5==1))))){ + a15 = 1; + a27 = 1; + a5 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if((!(a4==1)&&((a27==1)&&(!(a5==1)&&(((a20==1)&&(!(a6==1)&&(((((input==1)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&!(a15==1))&&(a3==5))&&(a12==11))))&&!(a0==1)))))){ + a22 = 1; + a3 = 4; + a12 = 8; + a4 = 1; + a0 = 1; + a18 = 0; + a27 = 0; + return 24; + } else if((((a6==1)&&(((a20==1)&&((((((a4==1)&&((!(a15==1)&&(input==3))&&(a22==1)))&&!(a5==1))&&(a18==1))&&!(a27==1))&&!(a0==1)))&&(a12==9)))&&(a3==6))){ + if((a15==1)){ + a15 = 1; + a0 = 1; + a18 = 0; + a22 = 0; + a27 = 1; + a5 = 1; + a3 = 8; + a12 = 8; + }else{ + a22 = 0; + a18 = 0; + a15 = 1; + a0 = 1; + a12 = 12; + a6 = 0; + a27 = 1; + a4 = 0; + } + return -1; + } else if((((a12==10)&&((a5==1)&&((a6==1)&&((a3==5)&&((a0==1)&&((a20==1)&&((a15==1)&&(!(a27==1)&&((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))))))))&&!(a4==1))){ + a18 = 1; + a15 = 0; + a3 = 7; + a22 = 1; + a6 = 0; + return 26; + } else if((((a0==1)&&(((a4==1)&&(((((((((a18==1)||!(a18==1))&&(input==1))&&!(a6==1))&&!(a22==1))&&!(a27==1))&&(a3==7))&&(a12==11))&&!(a15==1)))&&(a5==1)))&&(a20==1))){ + a4 = 0; + a6 = 1; + a18 = 0; + a3 = 4; + a15 = 1; + return -1; + } else if((((a0==1)&&((a4==1)&&(((a20==1)&&((a3==4)&&((((a18==1)&&((a27==1)&&(!(a15==1)&&(input==6))))&&(a12==8))&&!(a5==1))))&&!(a6==1))))&&!(a22==1))){ + a6 = 1; + a22 = 1; + a5 = 1; + a15 = 1; + return -1; + } else if(((a15==1)&&(!(a0==1)&&(!(a27==1)&&((a5==1)&&((((((((a3==7)&&((a18==1)&&(a22==1)))||(((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a18==1)&&!(a22==1)))))&&(input==1))&&!(a4==1))&&(a12==8))&&(a20==1))&&!(a6==1))))))){ + if((a6==1)){ + a3 = 6; + a0 = 1; + a27 = 1; + a12 = 11; + a15 = 0; + a5 = 0; + a22 = 1; + a6 = 1; + a18 = 0; + }else{ + a22 = 1; + a18 = 1; + a0 = 1; + a12 = 9; + a15 = 0; + a6 = 1; + a3 = 4; + } + return 21; + } else if(((a4==1)&&(((((!(a15==1)&&(((!(a6==1)&&((input==6)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&(a20==1))&&!(a27==1)))&&(a3==7))&&(a5==1))&&(a12==9))&&!(a0==1)))){ + a6 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + a5 = 0; + a27 = 1; + a22 = 0; + return -1; + } else if((!(a15==1)&&(((!(a5==1)&&(((!(a4==1)&&((a20==1)&&((a6==1)&&((a12==8)&&((input==5)&&((a18==1)||!(a18==1)))))))&&(a3==5))&&!(a27==1)))&&(a0==1))&&(a22==1)))){ + if((a5==1)){ + a15 = 1; + a6 = 0; + a27 = 1; + a22 = 0; + a18 = 0; + a0 = 0; + }else{ + a18 = 0; + a22 = 0; + } + return 21; + } else if(((((((a0==1)&&(((!(a15==1)&&(!(a5==1)&&((input==6)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))))&&(a20==1))&&!(a6==1)))&&(a12==8))&&!(a27==1))&&!(a4==1))&&(a3==8))){ + a3 = 4; + a27 = 1; + a15 = 1; + a22 = 1; + a6 = 1; + a4 = 1; + a18 = 1; + a5 = 1; + return -1; + } else if((((a20==1)&&(((a4==1)&&((a15==1)&&(((a18==1)&&(((a12==11)&&((a5==1)&&(!(a0==1)&&(input==3))))&&(a27==1)))&&(a6==1))))&&(a3==4)))&&!(a22==1))){ + a18 = 0; + a22 = 1; + a27 = 0; + a6 = 0; + a0 = 1; + a4 = 0; + return -1; + } else if((((a3==4)&&((!(a4==1)&&((!(a6==1)&&((!(a27==1)&&(!(a5==1)&&((input==3)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))&&(a12==11)))&&!(a0==1)))&&(a20==1)))&&!(a15==1))){ + a12 = 8; + a22 = 1; + a4 = 1; + a15 = 1; + a27 = 1; + a5 = 1; + a0 = 1; + a18 = 1; + a6 = 1; + return 21; + } else if((!(a5==1)&&((a12==11)&&(!(a15==1)&&(((((a20==1)&&(((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==1))&&!(a0==1))&&(a4==1)))&&(a3==7))&&!(a6==1))&&(a27==1)))))){ + a3 = 8; + a6 = 1; + a15 = 1; + a22 = 0; + a27 = 0; + a18 = 1; + a0 = 1; + a5 = 1; + a4 = 0; + return 24; + } else if((((!(a15==1)&&((((a0==1)&&(((((((a22==1)&&(a18==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==4))))&&(input==2))&&(a12==11))&&(a6==1)))&&!(a4==1))&&(a27==1)))&&(a20==1))&&(a5==1))){ + a18 = 1; + a15 = 1; + a22 = 1; + a6 = 0; + a3 = 8; + a27 = 0; + a4 = 1; + return 21; + } else if(((a6==1)&&(((a15==1)&&(((a0==1)&&(!(a5==1)&&((a12==12)&&((!(a4==1)&&((a3==7)&&(((a18==1)||!(a18==1))&&(input==6))))&&(a20==1)))))&&!(a22==1)))&&(a27==1)))){ + a15 = 0; + a4 = 1; + a18 = 0; + a27 = 0; + a5 = 1; + return 26; + } else if((((a3==6)&&((a15==1)&&((a0==1)&&((a20==1)&&(((((a27==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==5)))&&!(a4==1))&&(a12==12))&&!(a6==1))))))&&!(a5==1))){ + a6 = 1; + a15 = 0; + a12 = 10; + a27 = 0; + a3 = 5; + a22 = 1; + a18 = 1; + return 26; + } else if((!(a27==1)&&((a5==1)&&(((a20==1)&&((a15==1)&&(((a4==1)&&(((a0==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a12==8)))&&!(a22==1)))&&(a6==1))))&&(a3==4))))){ + a27 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((((a5==1)&&(((a3==7)&&((((!(a27==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==4)))&&(a20==1))&&(a12==9))&&!(a4==1)))&&(a15==1)))&&(a0==1))&&!(a6==1))){ + a12 = 11; + a5 = 0; + a3 = 6; + a15 = 0; + a22 = 0; + a18 = 0; + return 21; + } else if((!(a27==1)&&((((a0==1)&&((!(a5==1)&&(((((((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a22==1)&&!(a18==1))))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==1))&&!(a15==1))&&!(a6==1)))&&(a12==10)))&&(a20==1))&&!(a4==1)))){ + a18 = 1; + a22 = 1; + a5 = 1; + a12 = 9; + a6 = 1; + a3 = 5; + return 24; + } else if((((a15==1)&&((!(a4==1)&&((!(a5==1)&&((a20==1)&&(((a12==11)&&((((a18==1)||!(a18==1))&&(input==1))&&!(a27==1)))&&(a3==6))))&&(a6==1)))&&!(a22==1)))&&!(a0==1))){ + a12 = 8; + a0 = 1; + a3 = 5; + a27 = 1; + a5 = 1; + a6 = 0; + a4 = 1; + a18 = 0; + return -1; + } else if((((a3==6)&&((a20==1)&&(!(a6==1)&&(((a0==1)&&((a27==1)&&((a12==11)&&(!(a4==1)&&((input==6)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))))))&&(a15==1)))))&&!(a5==1))){ + a18 = 1; + a5 = 1; + a6 = 1; + a4 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + return -1; + } else if(((a12==10)&&(!(a6==1)&&(((a27==1)&&((!(a5==1)&&((a4==1)&&((!(a18==1)&&(((input==3)&&(a3==7))&&(a15==1)))&&(a20==1))))&&!(a0==1)))&&!(a22==1))))){ + a27 = 0; + a12 = 9; + a15 = 0; + a22 = 1; + a0 = 1; + a3 = 6; + return -1; + } else if((((a12==9)&&((a6==1)&&((a20==1)&&(!(a27==1)&&((a4==1)&&((a0==1)&&(((((a3==5)&&(!(a18==1)&&(a22==1)))||(((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==5))))&&(input==5))&&!(a15==1))))))))&&!(a5==1))){ + a27 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a5 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if((((!(a27==1)&&(((a15==1)&&((a20==1)&&(((a6==1)&&((((input==6)&&(a3==6))&&!(a5==1))&&(a22==1)))&&(a0==1))))&&(a12==8)))&&(a4==1))&&!(a18==1))){ + a12 = 11; + a6 = 0; + a3 = 8; + a27 = 1; + return 21; + } else if(((a3==4)&&(((a12==12)&&(!(a27==1)&&(((a20==1)&&((a6==1)&&((a15==1)&&((a0==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==2))))))&&(a4==1))))&&(a5==1)))){ + a22 = 0; + a3 = 7; + a18 = 1; + a4 = 0; + a12 = 10; + return -1; + } else if(((a5==1)&&(!(a6==1)&&((a20==1)&&(((a0==1)&&(!(a15==1)&&((a27==1)&&(((((a3==8)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7))))&&(input==2))&&(a12==11)))))&&(a4==1)))))){ + a22 = 1; + a18 = 0; + a27 = 0; + a3 = 4; + a15 = 1; + return 26; + } else if((((!(a4==1)&&(((!(a15==1)&&((a3==5)&&(((a20==1)&&(((input==4)&&!(a22==1))&&(a12==8)))&&(a27==1))))&&(a5==1))&&!(a0==1)))&&!(a6==1))&&(a18==1))){ + a0 = 1; + a6 = 1; + a5 = 0; + a12 = 10; + a4 = 1; + a22 = 1; + a3 = 8; + return -1; + } else if((((((a22==1)&&(((a3==4)&&((a18==1)&&(!(a15==1)&&((((a12==12)&&(input==2))&&(a6==1))&&(a20==1)))))&&(a5==1)))&&(a27==1))&&!(a4==1))&&(a0==1))){ + a3 = 6; + a12 = 10; + a15 = 1; + a5 = 0; + a4 = 1; + return -1; + } else if((((a0==1)&&((a20==1)&&((a3==5)&&((((((((input==1)&&(a22==1))&&!(a5==1))&&!(a4==1))&&(a15==1))&&(a12==11))&&(a6==1))&&!(a27==1)))))&&(a18==1))){ + a4 = 1; + a27 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + return -1; + } else if(((!(a27==1)&&((((((((((a3==5)&&(!(a18==1)&&(a22==1)))||(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1)))))&&(input==5))&&(a4==1))&&(a5==1))&&(a12==11))&&!(a0==1))&&(a6==1))&&(a20==1)))&&!(a15==1))){ + a4 = 0; + a0 = 1; + a22 = 1; + a18 = 1; + a12 = 8; + a15 = 1; + a27 = 1; + a3 = 7; + return -1; + } else if(((a6==1)&&(((!(a5==1)&&(((a0==1)&&(((a12==8)&&((a15==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==4))))&&(a20==1)))&&(a4==1)))&&(a3==5))&&(a27==1)))){ + a22 = 1; + a3 = 8; + a18 = 0; + a4 = 0; + a6 = 0; + a12 = 9; + return 24; + } else if((!(a15==1)&&((a5==1)&&(!(a0==1)&&((a4==1)&&(!(a6==1)&&(((!(a27==1)&&((input==5)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==6)))))&&(a20==1))&&(a12==10)))))))){ + a22 = 0; + a15 = 1; + a5 = 0; + a6 = 1; + a12 = 9; + a3 = 4; + a18 = 1; + a4 = 0; + return -1; + } else if((((a6==1)&&((a20==1)&&((a3==6)&&(((!(a15==1)&&(!(a27==1)&&(((a4==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a12==10))))&&(a22==1))&&(a0==1)))))&&(a5==1))){ + a5 = 0; + a22 = 0; + a6 = 0; + a3 = 4; + a18 = 1; + return 21; + } else if(((((((a5==1)&&(!(a6==1)&&(((((input==1)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a3==6))&&!(a15==1))&&(a0==1))))&&!(a4==1))&&!(a27==1))&&(a20==1))&&(a12==9))){ + a22 = 1; + a4 = 1; + a3 = 4; + a18 = 1; + a15 = 1; + a6 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if((!(a6==1)&&(!(a27==1)&&((((a20==1)&&((!(a4==1)&&(!(a5==1)&&(((((!(a22==1)&&(a18==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==6))))&&!(a15==1)))&&(a12==12))&&(a0==1))))){ + a3 = 8; + a18 = 1; + a22 = 0; + return 26; + } else if((!(a27==1)&&(((a15==1)&&((((a20==1)&&((a3==8)&&((((a12==9)&&((a0==1)&&(input==2)))&&(a22==1))&&(a6==1))))&&!(a4==1))&&(a18==1)))&&(a5==1)))){ + if((a12==8)){ + a6 = 0; + a3 = 6; + a12 = 8; + a27 = 1; + a0 = 0; + a22 = 0; + a18 = 0; + }else{ + a3 = 5; + a6 = 0; + a18 = 0; + a5 = 0; + a12 = 10; + a4 = 1; + } + return 26; + } else if(((a6==1)&&((a12==12)&&(((a5==1)&&(((((!(a18==1)&&(!(a0==1)&&((input==6)&&!(a22==1))))&&(a27==1))&&!(a4==1))&&(a20==1))&&(a15==1)))&&(a3==6))))){ + a15 = 0; + a0 = 1; + a5 = 0; + a12 = 10; + a3 = 8; + a22 = 1; + a4 = 1; + return 26; + } else if(((a15==1)&&((((a3==8)&&(((((a22==1)&&(!(a6==1)&&(!(a0==1)&&(((a18==1)||!(a18==1))&&(input==4)))))&&(a4==1))&&(a27==1))&&(a12==10)))&&(a5==1))&&(a20==1)))){ + a12 = 9; + a22 = 0; + a18 = 1; + a6 = 1; + a0 = 1; + return 26; + } else if(((a3==6)&&((a12==10)&&(((a20==1)&&((!(a22==1)&&((a0==1)&&((a6==1)&&(((a4==1)&&((input==5)&&((a18==1)||!(a18==1))))&&!(a15==1)))))&&(a5==1)))&&!(a27==1))))){ + a12 = 8; + a22 = 1; + a15 = 1; + a27 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((((((((a12==8)&&((a4==1)&&((((input==2)&&(a15==1))&&!(a18==1))&&(a0==1))))&&(a6==1))&&!(a27==1))&&!(a5==1))&&(a22==1))&&(a3==6))&&(a20==1))){ + a18 = 1; + a27 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if((!(a0==1)&&(((a20==1)&&((!(a5==1)&&(((input==5)&&(((!(a6==1)&&((((a18==1)&&!(a22==1))&&(a4==1))&&(a3==8)))||(((a3==8)&&((a4==1)&&(!(a22==1)&&!(a18==1))))&&!(a6==1)))||(((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))&&(a6==1))))&&(a15==1)))&&(a12==11)))&&(a27==1)))){ + a0 = 1; + a18 = 0; + a27 = 0; + a22 = 0; + a6 = 1; + a4 = 0; + a3 = 8; + return 26; + } else if((((a6==1)&&(((a0==1)&&((a12==11)&&(((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&(a15==1))&&!(a5==1))&&(a20==1))&&(a3==4))))&&!(a27==1)))&&!(a4==1))){ + a4 = 1; + a22 = 1; + a15 = 0; + a18 = 1; + a3 = 6; + a12 = 10; + return -1; + } else if((!(a15==1)&&(!(a5==1)&&(((((a20==1)&&((!(a27==1)&&((input==2)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))))&&!(a4==1)))&&(a6==1))&&(a12==10))&&(a0==1))))){ + a27 = 1; + a12 = 11; + a3 = 5; + a5 = 1; + a15 = 1; + a4 = 1; + a18 = 0; + a22 = 0; + return 26; + } else if(((a5==1)&&(!(a15==1)&&(!(a0==1)&&((a20==1)&&(((a27==1)&&((a6==1)&&(((input==4)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1)))))&&(a12==11))))&&(a4==1))))))){ + a3 = 4; + a22 = 1; + a0 = 1; + a12 = 8; + a15 = 1; + a18 = 1; + return -1; + } else if(((a12==8)&&(!(a15==1)&&(!(a6==1)&&((a5==1)&&((a27==1)&&((a3==6)&&(!(a4==1)&&((a20==1)&&(((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a0==1))))))))))){ + a3 = 4; + a6 = 1; + a22 = 1; + a4 = 1; + a0 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if((((a12==11)&&(!(a5==1)&&(!(a27==1)&&(((((a20==1)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==3)))&&(a4==1))&&!(a0==1))&&(a15==1)))))&&!(a6==1))){ + if((a4==1)){ + a12 = 8; + a18 = 0; + a3 = 4; + a6 = 1; + a22 = 0; + a27 = 1; + a4 = 0; + a0 = 1; + a5 = 1; + }else{ + a12 = 12; + a18 = 1; + a6 = 1; + a0 = 1; + a3 = 8; + a4 = 0; + a22 = 1; + } + return -1; + } else if(((((a20==1)&&(!(a4==1)&&(!(a5==1)&&(((a6==1)&&((((((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==7)))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==1))&&!(a27==1)))&&(a15==1)))))&&(a0==1))&&(a12==10))){ + a12 = 12; + a18 = 1; + a6 = 0; + a4 = 1; + a3 = 6; + a22 = 0; + return 26; + } else if(((a27==1)&&(!(a6==1)&&(((a12==11)&&(!(a15==1)&&(!(a22==1)&&((!(a4==1)&&((((input==5)&&((a18==1)||!(a18==1)))&&!(a0==1))&&(a20==1)))&&!(a5==1)))))&&(a3==6))))){ + a0 = 1; + a12 = 9; + a6 = 1; + a4 = 1; + a18 = 0; + return 26; + } else if(((((((a0==1)&&((((a3==5)&&((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==2))&&(a5==1)))&&!(a6==1))&&(a27==1)))&&!(a15==1))&&!(a4==1))&&(a12==10))&&(a20==1))){ + a6 = 1; + a15 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + a4 = 1; + return -1; + } else if((((((!(a5==1)&&((((a15==1)&&((a12==9)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==4))))&&(a6==1))&&(a4==1)))&&(a3==4))&&!(a0==1))&&(a27==1))&&(a20==1))){ + if((a18==1)){ + a18 = 0; + a3 = 5; + a4 = 0; + a6 = 0; + a22 = 0; + a12 = 11; + }else{ + a0 = 1; + a12 = 11; + a3 = 7; + a18 = 0; + a22 = 0; + a4 = 0; + a15 = 0; + a5 = 1; + } + return 24; + } else if((((a12==10)&&((a4==1)&&(!(a15==1)&&(((!(a5==1)&&(!(a27==1)&&((input==6)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6))))))&&!(a6==1))&&(a20==1)))))&&!(a0==1))){ + a12 = 8; + a15 = 1; + a27 = 1; + a3 = 6; + a0 = 1; + a22 = 1; + a5 = 1; + a18 = 1; + return -1; + } else if(((a0==1)&&(((a3==6)&&((!(a5==1)&&(!(a6==1)&&((a22==1)&&(!(a18==1)&&((!(a15==1)&&((a20==1)&&(input==6)))&&!(a4==1))))))&&(a12==11)))&&!(a27==1)))){ + a6 = 1; + a22 = 0; + a15 = 1; + a12 = 10; + a3 = 4; + return -1; + } else if(((a12==11)&&(!(a5==1)&&((((a0==1)&&((((((input==3)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&(a20==1))&&(a3==4))&&!(a27==1))&&!(a6==1)))&&!(a15==1))&&(a4==1))))){ + a0 = 0; + a22 = 1; + a27 = 1; + a18 = 0; + a3 = 8; + a15 = 1; + return -1; + } else if((((((a5==1)&&((((!(a6==1)&&((input==2)&&((((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))||((a3==7)&&((a22==1)&&(a18==1))))))&&(a20==1))&&(a12==8))&&(a4==1)))&&(a27==1))&&!(a0==1))&&(a15==1))){ + a22 = 0; + a3 = 6; + a15 = 0; + a12 = 11; + a0 = 1; + a6 = 1; + a5 = 0; + a18 = 1; + return 21; + } else if(((a20==1)&&((((a15==1)&&(!(a4==1)&&((a6==1)&&((!(a27==1)&&((a12==9)&&((a5==1)&&((input==2)&&((a18==1)||!(a18==1))))))&&(a0==1)))))&&(a3==5))&&!(a22==1)))){ + a3 = 4; + a27 = 1; + a18 = 1; + a12 = 8; + a22 = 1; + a4 = 1; + return -1; + } else if(((a15==1)&&(!(a27==1)&&(!(a22==1)&&((((a4==1)&&(((a12==11)&&(((((a18==1)||!(a18==1))&&(input==3))&&(a3==7))&&!(a6==1)))&&(a5==1)))&&(a0==1))&&(a20==1)))))){ + a18 = 1; + a6 = 1; + a22 = 1; + a27 = 1; + a15 = 0; + a3 = 8; + return 24; + } else if((((!(a6==1)&&((((a18==1)&&((!(a5==1)&&((((input==1)&&!(a22==1))&&(a27==1))&&(a4==1)))&&(a12==8)))&&(a3==5))&&(a15==1)))&&(a0==1))&&(a20==1))){ + a4 = 0; + a15 = 0; + a12 = 9; + a3 = 7; + return 21; + } else if(((((a4==1)&&((a0==1)&&((!(a5==1)&&(((a27==1)&&((input==2)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6)))))&&(a15==1)))&&(a12==11))))&&(a20==1))&&(a6==1))){ + a15 = 0; + a18 = 0; + a22 = 1; + a3 = 5; + a12 = 10; + return -1; + } else if((!(a15==1)&&((a6==1)&&((a0==1)&&(!(a18==1)&&(((((a27==1)&&((a20==1)&&((a3==8)&&((a4==1)&&(input==2)))))&&(a5==1))&&!(a22==1))&&(a12==8))))))){ + a15 = 1; + a3 = 7; + a0 = 0; + a22 = 1; + a18 = 1; + return 21; + } else if(((((((a27==1)&&((((a4==1)&&((!(a18==1)&&((a12==9)&&(input==5)))&&(a6==1)))&&(a3==5))&&(a15==1)))&&!(a22==1))&&(a20==1))&&!(a5==1))&&!(a0==1))){ + a22 = 1; + a0 = 1; + a12 = 10; + a5 = 1; + a15 = 0; + return -1; + } else if(((a5==1)&&((a12==12)&&((!(a6==1)&&((a0==1)&&(!(a4==1)&&(((a20==1)&&((input==1)&&(((((a18==1)&&!(a22==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))||((a3==5)&&((a18==1)&&(a22==1))))))&&!(a27==1)))))&&!(a15==1))))){ + a4 = 1; + a15 = 1; + a27 = 1; + a6 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + a22 = 1; + return -1; + } else if((((a15==1)&&((a4==1)&&(!(a18==1)&&((((a3==6)&&((a12==10)&&((((a0==1)&&(input==4))&&!(a27==1))&&(a20==1))))&&(a22==1))&&(a5==1)))))&&(a6==1))){ + a6 = 0; + a18 = 1; + a12 = 11; + a4 = 0; + a27 = 1; + a3 = 5; + return 21; + } else if((((a12==11)&&(!(a15==1)&&((a27==1)&&((a20==1)&&(!(a6==1)&&(!(a0==1)&&((a5==1)&&((input==2)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==8)))))))))))&&(a4==1))){ + a0 = 1; + a18 = 1; + a5 = 0; + a12 = 10; + a3 = 6; + a4 = 0; + a6 = 1; + a22 = 0; + return -1; + } else if(((a15==1)&&((((((((a12==11)&&(!(a27==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1))))&&(a20==1))&&!(a5==1))&&(a6==1))&&(a4==1))&&(a0==1))&&(a3==4)))){ + a27 = 1; + a18 = 1; + a22 = 1; + a12 = 8; + a5 = 1; + return -1; + } else if((((a12==12)&&((((a3==4)&&((((!(a5==1)&&(!(a22==1)&&((input==5)&&!(a4==1))))&&(a18==1))&&!(a6==1))&&(a20==1)))&&!(a15==1))&&(a27==1)))&&!(a0==1))){ + a18 = 0; + a4 = 1; + a0 = 1; + a22 = 1; + a27 = 0; + a12 = 10; + return 21; + } else if((!(a22==1)&&(!(a6==1)&&((a27==1)&&(!(a15==1)&&(((!(a5==1)&&((a4==1)&&((a3==5)&&((a0==1)&&((input==3)&&((a18==1)||!(a18==1)))))))&&(a12==10))&&(a20==1))))))){ + a18 = 1; + a15 = 1; + a5 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + a6 = 1; + return -1; + } else if(((a0==1)&&(((a15==1)&&((((a20==1)&&((!(a27==1)&&(!(a5==1)&&((a22==1)&&(((a18==1)||!(a18==1))&&(input==5)))))&&(a3==7)))&&(a4==1))&&(a12==10)))&&(a6==1)))){ + a5 = 1; + a12 = 8; + a27 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((((!(a0==1)&&((((a3==5)&&(((a22==1)&&((((a18==1)||!(a18==1))&&(input==5))&&(a6==1)))&&!(a15==1)))&&(a20==1))&&(a4==1)))&&!(a5==1))&&(a12==8))&&(a27==1))){ + a18 = 0; + a3 = 4; + a27 = 0; + a22 = 0; + a0 = 1; + a12 = 9; + a5 = 1; + a6 = 0; + return 24; + } else if(((a20==1)&&((((a12==8)&&((a0==1)&&(((!(a4==1)&&((a3==8)&&(((input==6)&&(a15==1))&&!(a5==1))))&&(a27==1))&&!(a22==1))))&&!(a18==1))&&(a6==1)))){ + if((a3==4)){ + a0 = 0; + a6 = 0; + a3 = 5; + a22 = 1; + a12 = 9; + }else{ + a6 = 0; + a5 = 1; + a22 = 1; + a12 = 10; + a15 = 0; + a4 = 1; + a18 = 1; + } + return 21; + } else if((((!(a22==1)&&(((a5==1)&&((((!(a6==1)&&(((a3==4)&&(input==3))&&(a18==1)))&&(a12==11))&&!(a4==1))&&!(a15==1)))&&(a0==1)))&&(a20==1))&&(a27==1))){ + a5 = 0; + a0 = 0; + a18 = 0; + a22 = 1; + a3 = 6; + a6 = 1; + return -1; + } else if((!(a6==1)&&((((((!(a15==1)&&((a22==1)&&((a20==1)&&(((a18==1)&&(input==1))&&(a4==1)))))&&!(a5==1))&&(a12==9))&&!(a27==1))&&!(a0==1))&&(a3==5)))){ + a15 = 1; + a27 = 1; + a12 = 10; + a4 = 0; + a3 = 7; + a18 = 0; + return -1; + } else if((!(a6==1)&&(((!(a0==1)&&((a5==1)&&((a15==1)&&(((((input==5)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&!(a27==1))&&(a20==1))&&(a3==8)))))&&(a4==1))&&(a12==11)))){ + a18 = 0; + a0 = 1; + a22 = 1; + a6 = 1; + a15 = 0; + a3 = 6; + a4 = 0; + a27 = 1; + a12 = 8; + return 21; + } else if(((a3==7)&&(((a4==1)&&((((a12==12)&&(((!(a6==1)&&(((a20==1)&&(input==4))&&(a0==1)))&&(a18==1))&&!(a22==1)))&&(a15==1))&&(a5==1)))&&(a27==1)))){ + a12 = 8; + a22 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if((((a20==1)&&((a15==1)&&((!(a0==1)&&((a27==1)&&(((!(a4==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==5)))&&(a3==6))&&(a12==12))))&&(a5==1))))&&!(a6==1))){ + a18 = 1; + a22 = 1; + a6 = 1; + a0 = 1; + a12 = 8; + a4 = 1; + a3 = 4; + return -1; + } else if(((a20==1)&&(((((a5==1)&&(((a6==1)&&((a27==1)&&(((input==3)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&(a12==11))))&&!(a4==1)))&&!(a0==1))&&!(a15==1))&&(a3==8)))){ + a15 = 1; + a0 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + a4 = 1; + a18 = 1; + return -1; + } else if((!(a15==1)&&((((!(a4==1)&&(((a12==9)&&(((input==5)&&(((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8))))&&(a27==1)))&&(a20==1)))&&(a5==1))&&!(a0==1))&&(a6==1)))){ + a0 = 1; + a12 = 10; + a3 = 6; + a15 = 1; + a22 = 1; + a18 = 1; + a6 = 0; + return 24; + } else if((((((a4==1)&&((!(a6==1)&&((!(a0==1)&&(!(a27==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2))))&&(a3==6)))&&(a12==9)))&&(a20==1))&&(a5==1))&&!(a15==1))){ + if((a18==1)){ + a3 = 5; + a4 = 0; + a18 = 1; + a5 = 0; + a0 = 1; + a12 = 10; + a22 = 1; + }else{ + a15 = 1; + a6 = 1; + a4 = 0; + a27 = 1; + a22 = 0; + a0 = 1; + a3 = 7; + a18 = 0; + a12 = 8; + } + return -1; + } else if(((((a27==1)&&(((a5==1)&&((((a6==1)&&(((((a22==1)&&!(a18==1))&&(a3==5))||(((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1)))))&&(input==6)))&&(a15==1))&&(a20==1)))&&(a0==1)))&&(a4==1))&&(a12==10))){ + a3 = 4; + a12 = 8; + a18 = 1; + a22 = 1; + return -1; + } else if(((a12==10)&&(((a4==1)&&((a6==1)&&((a27==1)&&(!(a5==1)&&(((((input==4)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a3==6))&&(a20==1))&&(a15==1))))))&&!(a0==1)))){ + a22 = 1; + a6 = 0; + a3 = 8; + a18 = 0; + a0 = 1; + a4 = 0; + a12 = 8; + return 26; + } else if((((!(a0==1)&&((((a6==1)&&(((((((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5)))||((a3==5)&&((a22==1)&&!(a18==1))))&&(input==1))&&(a27==1))&&(a4==1)))&&(a20==1))&&(a12==12)))&&!(a5==1))&&(a15==1))){ + a3 = 8; + a18 = 1; + a12 = 8; + a5 = 1; + a22 = 1; + a0 = 1; + a4 = 0; + return 26; + } else if(((((a3==8)&&((!(a15==1)&&((a20==1)&&((((a27==1)&&((((a18==1)||!(a18==1))&&(input==5))&&(a0==1)))&&(a4==1))&&!(a22==1))))&&!(a5==1)))&&(a12==9))&&(a6==1))){ + a12 = 8; + a18 = 1; + a27 = 0; + a4 = 0; + a3 = 6; + a6 = 0; + return 26; + } else if((((!(a0==1)&&((((!(a27==1)&&((a4==1)&&((((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==4))))&&!(a6==1))&&(a5==1))&&(a15==1)))&&(a20==1))&&(a12==10))){ + a0 = 1; + a6 = 1; + a3 = 6; + a27 = 1; + a18 = 0; + a12 = 8; + a22 = 0; + return 26; + } else if(((a20==1)&&(!(a4==1)&&((a27==1)&&(((a5==1)&&(!(a15==1)&&((((input==3)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1)))))&&!(a6==1))&&(a12==8))))&&!(a0==1)))))){ + a3 = 4; + a18 = 1; + a27 = 0; + a4 = 1; + a22 = 0; + a0 = 1; + a6 = 1; + a5 = 0; + return -1; + } else if((((a5==1)&&((a6==1)&&(((a0==1)&&(!(a15==1)&&(((((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8)))||((a3==8)&&((a22==1)&&!(a18==1))))&&(input==5))&&(a20==1))&&!(a27==1))))&&(a12==10))))&&!(a4==1))){ + a22 = 0; + a27 = 1; + a18 = 0; + a6 = 0; + a12 = 11; + a15 = 1; + a4 = 1; + a3 = 6; + return 21; + } else if((!(a0==1)&&(!(a5==1)&&(((a20==1)&&((a18==1)&&(!(a22==1)&&(!(a6==1)&&(!(a4==1)&&(((a3==7)&&(!(a15==1)&&(input==2)))&&!(a27==1)))))))&&(a12==11))))){ + if((a22==1)){ + a0 = 1; + a3 = 8; + a18 = 0; + a6 = 1; + a12 = 9; + a22 = 1; + }else{ + a15 = 1; + a12 = 8; + a18 = 0; + a0 = 1; + a27 = 1; + a4 = 1; + a5 = 1; + } + return 26; + } else if(((((a12==9)&&((((input==3)&&(((!(a6==1)&&((((a15==1)&&(!(a18==1)&&!(a22==1)))&&!(a4==1))&&(a3==8)))||((a6==1)&&(((a4==1)&&(!(a15==1)&&((a18==1)&&(a22==1))))&&(a3==4))))||((((!(a15==1)&&((a22==1)&&!(a18==1)))&&(a4==1))&&(a3==4))&&(a6==1))))&&!(a5==1))&&!(a0==1)))&&(a20==1))&&(a27==1))){ + a3 = 8; + a4 = 0; + a22 = 0; + a6 = 1; + a0 = 1; + a27 = 0; + a12 = 8; + a15 = 1; + a5 = 1; + a18 = 1; + return -1; + } else if(((((a6==1)&&((((a20==1)&&(!(a15==1)&&((a12==8)&&(((a18==1)&&((input==2)&&(a3==8)))&&!(a4==1)))))&&!(a27==1))&&(a5==1)))&&(a0==1))&&(a22==1))){ + a3 = 4; + a22 = 0; + a4 = 1; + return 21; + } else if(((a0==1)&&(((a15==1)&&(((((a20==1)&&(((((a3==8)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a18==1)&&!(a22==1)))))&&(input==3))&&(a12==10)))&&!(a5==1))&&(a6==1))&&!(a27==1)))&&(a4==1)))){ + a12 = 8; + a3 = 4; + a27 = 1; + a18 = 1; + a22 = 1; + a5 = 1; + return -1; + } else if(((a15==1)&&((a12==10)&&((a6==1)&&((!(a27==1)&&(!(a5==1)&&((a3==4)&&((a20==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==6))&&!(a0==1))))))&&!(a4==1)))))){ + if((a18==1)){ + a15 = 0; + a0 = 1; + a22 = 0; + a12 = 12; + a3 = 5; + a5 = 1; + a18 = 0; + }else{ + a27 = 1; + a0 = 1; + a12 = 8; + a22 = 0; + a18 = 0; + a3 = 6; + a5 = 1; + } + return -1; + } else if(((!(a15==1)&&((a12==10)&&((a0==1)&&((((a27==1)&&(((a20==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==5)))&&(a3==6)))&&(a6==1))&&!(a4==1)))))&&!(a5==1))){ + a18 = 0; + a5 = 1; + a6 = 0; + a22 = 0; + a4 = 1; + return 26; + } else if((!(a6==1)&&(((a27==1)&&(!(a5==1)&&((a20==1)&&((a15==1)&&(((((input==6)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a0==1))&&(a4==1))&&(a3==8))))))&&(a12==11)))){ + a12 = 8; + a18 = 0; + a15 = 0; + a22 = 1; + a3 = 7; + a4 = 0; + return 21; + } else if((((((a6==1)&&(((a12==11)&&((a3==7)&&(!(a22==1)&&((a20==1)&&(((input==4)&&(a18==1))&&!(a15==1))))))&&!(a5==1)))&&(a0==1))&&(a27==1))&&(a4==1))){ + a3 = 4; + a12 = 8; + a22 = 1; + a15 = 1; + a5 = 1; + return -1; + } else if((!(a5==1)&&(!(a4==1)&&((a27==1)&&(((a22==1)&&((a3==6)&&((a12==10)&&((a20==1)&&((a6==1)&&((a0==1)&&(((a18==1)||!(a18==1))&&(input==1))))))))&&(a15==1)))))){ + a22 = 0; + a18 = 0; + a5 = 1; + a3 = 8; + a12 = 11; + a0 = 0; + a6 = 0; + return -1; + } else if(((((a12==9)&&((((a5==1)&&(((a4==1)&&((!(a6==1)&&((input==5)&&((a18==1)||!(a18==1))))&&!(a27==1)))&&!(a15==1)))&&(a3==4))&&(a0==1)))&&(a22==1))&&(a20==1))){ + a15 = 1; + a18 = 1; + a6 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if(((a6==1)&&(!(a0==1)&&(((!(a27==1)&&((a3==4)&&((a18==1)&&(((a4==1)&&(((a20==1)&&(input==5))&&!(a5==1)))&&(a12==10)))))&&!(a15==1))&&(a22==1))))){ + a22 = 0; + a5 = 1; + a3 = 6; + a12 = 12; + a6 = 0; + a0 = 1; + a27 = 1; + return -1; + } else if(((a20==1)&&(((!(a22==1)&&((!(a5==1)&&((((a27==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&!(a6==1)))&&(a12==9))&&(a0==1)))&&(a4==1)))&&(a15==1))&&(a3==6)))){ + a3 = 7; + a15 = 0; + a5 = 1; + a18 = 0; + a12 = 12; + a22 = 1; + return 26; + } else if((((!(a27==1)&&((((a4==1)&&((a0==1)&&(!(a6==1)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==6)))))&&(a20==1))&&(a12==9)))&&!(a15==1))&&!(a5==1))){ + a4 = 0; + a22 = 0; + a15 = 1; + a27 = 1; + a18 = 1; + a12 = 10; + a5 = 1; + a3 = 8; + a6 = 1; + return 26; + } else if((((a4==1)&&((a18==1)&&((!(a22==1)&&((a3==6)&&((a20==1)&&(((((input==2)&&(a15==1))&&(a27==1))&&(a12==12))&&!(a6==1)))))&&!(a5==1))))&&(a0==1))){ + a5 = 1; + a12 = 8; + a22 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if(((((a15==1)&&((a4==1)&&(((a12==12)&&((a20==1)&&((((a18==1)&&((input==3)&&(a3==6)))&&(a6==1))&&(a5==1))))&&!(a27==1))))&&(a22==1))&&(a0==1))){ + a3 = 5; + a12 = 11; + a22 = 0; + a4 = 0; + a27 = 1; + return 21; + } else if((((!(a5==1)&&((a4==1)&&((a20==1)&&(((a27==1)&&(((input==3)&&((((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==7)))||((a3==8)&&((a18==1)&&(a22==1)))))&&(a12==9)))&&!(a6==1)))))&&(a15==1))&&(a0==1))){ + a15 = 0; + a18 = 0; + a12 = 8; + a5 = 1; + a22 = 0; + a3 = 8; + a27 = 0; + a4 = 0; + return 24; + } else if((!(a0==1)&&((a5==1)&&((a12==10)&&(!(a6==1)&&(((a3==8)&&(!(a27==1)&&(((a20==1)&&((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a4==1))))&&!(a15==1))))))){ + a0 = 1; + a15 = 1; + a12 = 8; + a22 = 0; + a27 = 1; + a18 = 1; + a6 = 1; + return 24; + } else if(((!(a0==1)&&(((a6==1)&&((!(a27==1)&&(((a22==1)&&(((a4==1)&&((a20==1)&&(input==6)))&&!(a5==1)))&&(a3==6)))&&(a15==1)))&&(a12==8)))&&(a18==1))){ + a4 = 0; + a18 = 0; + a0 = 1; + a3 = 5; + a27 = 1; + a5 = 1; + return -1; + } else if(((a5==1)&&((((((((((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))&&(a6==1))||((((a3==8)&&(((a18==1)&&!(a22==1))&&(a4==1)))&&!(a6==1))||((((a4==1)&&(!(a22==1)&&!(a18==1)))&&(a3==8))&&!(a6==1))))&&(input==5))&&!(a15==1))&&(a0==1))&&!(a27==1))&&(a20==1))&&(a12==8)))){ + a15 = 1; + a12 = 11; + a18 = 1; + a4 = 0; + a5 = 0; + a6 = 1; + a3 = 5; + a22 = 1; + return 21; + } else if((((((a12==10)&&(((!(a0==1)&&(!(a15==1)&&((a3==4)&&((((a18==1)||!(a18==1))&&(input==1))&&(a5==1)))))&&(a6==1))&&(a22==1)))&&!(a27==1))&&!(a4==1))&&(a20==1))){ + a27 = 1; + a0 = 1; + a15 = 1; + a12 = 8; + a18 = 1; + a4 = 1; + return -1; + } else if((!(a5==1)&&(((a6==1)&&((a15==1)&&((((((((a20==1)&&(input==5))&&!(a27==1))&&!(a22==1))&&(a18==1))&&(a4==1))&&(a0==1))&&(a12==12))))&&(a3==4)))){ + if((a20==1)){ + a3 = 6; + a27 = 1; + a5 = 1; + a0 = 0; + a6 = 0; + }else{ + a4 = 0; + a12 = 11; + a3 = 8; + a5 = 1; + } + return -1; + } else if(((!(a27==1)&&(!(a5==1)&&(((a3==7)&&(((a15==1)&&((a20==1)&&((!(a0==1)&&((input==1)&&(a6==1)))&&(a22==1))))&&(a18==1)))&&(a4==1))))&&(a12==11))){ + a0 = 1; + a27 = 1; + a4 = 0; + a12 = 8; + a15 = 0; + a3 = 4; + a6 = 0; + return -1; + } else if(((a5==1)&&(!(a27==1)&&(((((a0==1)&&(!(a18==1)&&(((a12==12)&&((a3==5)&&((input==1)&&(a22==1))))&&!(a4==1))))&&!(a6==1))&&(a20==1))&&!(a15==1))))){ + a15 = 1; + a18 = 1; + a12 = 8; + a6 = 1; + a27 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if((!(a0==1)&&((a15==1)&&((a20==1)&&(!(a4==1)&&((!(a27==1)&&((a5==1)&&(!(a6==1)&&((input==6)&&((((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a22==1)&&!(a18==1))))||((a3==7)&&((a18==1)&&(a22==1))))))))&&(a12==8))))))){ + if((a4==1)){ + a27 = 1; + a0 = 1; + a4 = 1; + a22 = 0; + a18 = 0; + a3 = 5; + }else{ + a12 = 12; + a3 = 8; + a22 = 0; + a0 = 1; + a27 = 1; + a18 = 0; + a15 = 0; + a4 = 1; + } + return 21; + } else if(((((((((((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==3))&&(a6==1))&&!(a5==1))&&(a15==1))&&(a20==1))&&!(a27==1))&&(a12==8))&&(a4==1))&&(a3==8))&&!(a0==1))){ + a22 = 0; + a3 = 7; + a18 = 0; + a5 = 1; + a15 = 0; + return 21; + } else if(((!(a6==1)&&((((a20==1)&&((a15==1)&&(((((((a18==1)||!(a18==1))&&(input==3))&&(a12==10))&&(a4==1))&&(a27==1))&&(a3==6))))&&!(a0==1))&&!(a5==1)))&&!(a22==1))){ + a22 = 1; + a0 = 1; + a5 = 1; + a3 = 7; + a6 = 1; + a18 = 1; + a4 = 0; + a12 = 12; + return 26; + } else if((!(a15==1)&&((a5==1)&&(((a20==1)&&((((!(a0==1)&&((input==3)&&((((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==5)))))&&!(a4==1))&&(a6==1))&&(a27==1)))&&(a12==11))))){ + a4 = 1; + a18 = 1; + a0 = 1; + a3 = 5; + a6 = 0; + a22 = 0; + return 21; + } else if(((a4==1)&&(!(a27==1)&&((a5==1)&&(((a20==1)&&((a3==7)&&((((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a12==10))&&!(a15==1))&&(a0==1))))&&(a6==1)))))){ + a12 = 9; + a6 = 0; + a15 = 1; + a22 = 0; + a5 = 0; + a3 = 6; + a18 = 0; + a4 = 0; + return -1; + } else if(((((((!(a6==1)&&((((input==4)&&((((a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&(a18==1)))||((a3==7)&&(!(a18==1)&&!(a22==1))))))&&(a12==9))&&!(a0==1)))&&!(a27==1))&&(a4==1))&&(a5==1))&&(a20==1))&&(a15==1))){ + a6 = 1; + a0 = 1; + a3 = 4; + a12 = 8; + a4 = 0; + a27 = 1; + a22 = 0; + a18 = 0; + return 26; + } else if((((a5==1)&&((a20==1)&&((((!(a0==1)&&((a12==11)&&((a4==1)&&((input==2)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))&&(a6==1))&&!(a15==1))&&(a3==6))))&&!(a27==1))){ + a22 = 0; + a3 = 4; + a15 = 1; + a0 = 1; + a18 = 0; + a12 = 8; + a27 = 1; + a4 = 0; + return 26; + } else if((((a20==1)&&((a12==11)&&((!(a0==1)&&(((a4==1)&&((((((a18==1)||!(a18==1))&&(input==4))&&!(a5==1))&&(a6==1))&&(a15==1)))&&!(a27==1)))&&!(a22==1))))&&(a3==6))){ + a0 = 1; + a18 = 1; + a12 = 12; + a4 = 0; + return 21; + } else if((!(a0==1)&&(!(a5==1)&&(!(a4==1)&&((((a12==9)&&((a15==1)&&((((((a3==8)&&((a18==1)&&!(a22==1)))&&(a6==1))||((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1)))))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1)))&&(input==1))))&&(a27==1))&&(a20==1)))))){ + a6 = 1; + a4 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + a0 = 1; + a5 = 1; + a18 = 1; + return -1; + } else if(((!(a4==1)&&((((!(a5==1)&&((!(a6==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==2))&&(a27==1)))&&(a15==1)))&&!(a0==1))&&(a3==8))&&(a12==10)))&&(a20==1))){ + a12 = 11; + a5 = 1; + a0 = 1; + a4 = 1; + a22 = 0; + a18 = 0; + a15 = 0; + return 21; + } else if(((((((a22==1)&&((((a20==1)&&(!(a15==1)&&((((a18==1)||!(a18==1))&&(input==6))&&!(a6==1))))&&(a3==7))&&!(a27==1)))&&(a4==1))&&!(a0==1))&&!(a5==1))&&(a12==8))){ + a18 = 1; + a0 = 1; + a5 = 1; + a12 = 11; + a22 = 0; + a4 = 0; + a15 = 1; + return 21; + } else if(((a12==10)&&(!(a0==1)&&(!(a5==1)&&((!(a22==1)&&(!(a27==1)&&((((a4==1)&&((a15==1)&&((input==4)&&((a18==1)||!(a18==1)))))&&(a3==6))&&!(a6==1))))&&(a20==1)))))){ + a18 = 1; + a27 = 1; + a12 = 8; + a6 = 1; + a0 = 1; + a3 = 7; + a5 = 1; + return 26; + } else if((((((((a12==11)&&((((!(a4==1)&&((input==4)&&((a18==1)||!(a18==1))))&&!(a27==1))&&!(a6==1))&&(a20==1)))&&(a0==1))&&(a5==1))&&(a22==1))&&(a15==1))&&(a3==6))){ + if((a0==1)){ + a18 = 1; + a27 = 1; + a3 = 8; + a0 = 0; + a12 = 10; + a15 = 0; + }else{ + a3 = 7; + a22 = 0; + a15 = 0; + a18 = 0; + a12 = 9; + } + return -1; + } else if((((a3==8)&&(((a20==1)&&((!(a4==1)&&(((((input==6)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&!(a5==1))&&(a27==1))&&!(a6==1)))&&!(a15==1)))&&(a12==9)))&&!(a0==1))){ + a27 = 0; + a3 = 4; + a5 = 1; + a6 = 1; + a0 = 1; + a4 = 1; + a15 = 1; + a22 = 0; + a18 = 1; + return 26; + } else if(((a0==1)&&(((a4==1)&&(!(a6==1)&&((((((((a15==1)&&(input==2))&&!(a5==1))&&(a20==1))&&(a3==7))&&(a22==1))&&(a18==1))&&!(a27==1))))&&(a12==9)))){ + a12 = 8; + a5 = 1; + a22 = 0; + a3 = 5; + a4 = 0; + a15 = 0; + a6 = 1; + return 26; + } else if(((a5==1)&&((a12==9)&&(((((((a27==1)&&((a20==1)&&((input==1)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))))&&!(a0==1))&&(a4==1))&&(a3==6))&&(a15==1))&&!(a6==1))))){ + a6 = 1; + a0 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if((!(a27==1)&&(((((!(a22==1)&&((a12==11)&&((!(a0==1)&&(!(a5==1)&&((input==5)&&(a18==1))))&&(a6==1))))&&!(a15==1))&&(a3==6))&&(a4==1))&&(a20==1)))){ + a27 = 1; + a12 = 8; + a3 = 8; + a18 = 0; + a5 = 1; + a6 = 0; + a15 = 1; + a0 = 1; + return -1; + } else if((((a15==1)&&((a6==1)&&((((a0==1)&&((((a3==6)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==3)))&&(a12==12))&&(a4==1)))&&!(a27==1))&&!(a5==1))))&&(a20==1))){ + a6 = 0; + a18 = 1; + a15 = 0; + a27 = 1; + a22 = 1; + a4 = 0; + a12 = 11; + a3 = 4; + return 21; + } else if(((a3==5)&&(!(a15==1)&&((a27==1)&&(!(a4==1)&&(((a12==12)&&((((a20==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==3)))&&(a6==1))&&!(a0==1)))&&(a5==1))))))){ + if((a22==1)){ + a15 = 1; + a3 = 4; + a0 = 1; + a12 = 8; + a22 = 1; + a18 = 1; + }else{ + a18 = 0; + a6 = 0; + a4 = 1; + a15 = 1; + a22 = 1; + } + return -1; + } else if(((a12==11)&&(!(a4==1)&&(((a6==1)&&((!(a15==1)&&(((a20==1)&&((((input==4)&&((a18==1)||!(a18==1)))&&!(a0==1))&&(a3==6)))&&(a27==1)))&&!(a22==1)))&&(a5==1))))){ + a18 = 0; + a5 = 0; + a4 = 1; + a15 = 1; + a22 = 1; + a27 = 0; + a0 = 1; + return -1; + } else if((((!(a6==1)&&((!(a22==1)&&(((a0==1)&&((((a4==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&!(a15==1))&&(a20==1)))&&(a27==1)))&&(a12==12)))&&(a3==7))&&(a5==1))){ + a5 = 0; + a3 = 4; + a18 = 0; + a4 = 0; + a12 = 10; + a15 = 1; + return 26; + } else if(((a5==1)&&((((a3==8)&&(((a4==1)&&(((a12==9)&&((((input==5)&&!(a6==1))&&(a20==1))&&!(a22==1)))&&(a18==1)))&&(a27==1)))&&!(a15==1))&&(a0==1)))){ + a4 = 0; + a3 = 6; + a6 = 1; + a22 = 1; + a12 = 11; + return 21; + } else if((((((a4==1)&&((a22==1)&&((!(a27==1)&&(((((a15==1)&&(input==2))&&(a18==1))&&!(a5==1))&&(a3==6)))&&(a12==8))))&&(a20==1))&&(a6==1))&&(a0==1))){ + a12 = 12; + a5 = 1; + a27 = 1; + a18 = 0; + a3 = 5; + return 26; + } else if(((((a12==10)&&(((a15==1)&&((((a5==1)&&(((((a22==1)&&!(a18==1))&&(a3==5))||(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5))))&&(input==2)))&&(a27==1))&&(a20==1)))&&!(a0==1)))&&(a6==1))&&!(a4==1))){ + a18 = 1; + a4 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + a0 = 1; + return -1; + } else if((!(a22==1)&&((((!(a5==1)&&((!(a4==1)&&((((a20==1)&&((input==1)&&(a3==7)))&&!(a15==1))&&(a18==1)))&&!(a0==1)))&&!(a6==1))&&(a12==9))&&!(a27==1)))){ + a0 = 1; + a5 = 1; + a12 = 10; + a3 = 8; + a18 = 0; + a22 = 1; + return 21; + } else if((!(a5==1)&&((a12==11)&&((a20==1)&&(!(a6==1)&&(!(a0==1)&&((a15==1)&&((a27==1)&&(!(a4==1)&&((input==5)&&(((a3==8)&&(!(a18==1)&&(a22==1)))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8)))))))))))))){ + a18 = 1; + a22 = 1; + a4 = 1; + a0 = 1; + a12 = 8; + a6 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if((((a20==1)&&(((!(a27==1)&&(((a3==4)&&((!(a5==1)&&(!(a6==1)&&(((a18==1)||!(a18==1))&&(input==3))))&&(a0==1)))&&(a15==1)))&&!(a22==1))&&(a4==1)))&&(a12==8))){ + a3 = 8; + a15 = 0; + a5 = 1; + a12 = 10; + a22 = 1; + a18 = 0; + a27 = 1; + return 21; + } else if((((a3==6)&&(((a27==1)&&((a0==1)&&((!(a4==1)&&(!(a6==1)&&(!(a22==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a12==9)))))&&(a20==1))))&&(a5==1)))&&(a15==1))){ + if((a3==5)){ + a0 = 0; + a4 = 1; + a22 = 1; + a3 = 7; + a18 = 0; + a12 = 8; + }else{ + a18 = 1; + a12 = 12; + a4 = 1; + a15 = 0; + a3 = 5; + a6 = 1; + a5 = 0; + } + return 24; + } else if((((((((a12==8)&&(!(a18==1)&&((a20==1)&&((a3==8)&&((a15==1)&&(!(a0==1)&&(input==4)))))))&&(a5==1))&&(a4==1))&&!(a27==1))&&(a22==1))&&(a6==1))){ + a5 = 0; + a3 = 7; + a15 = 0; + a0 = 1; + a12 = 12; + return 26; + } else if(((a3==8)&&(((((a12==8)&&((a5==1)&&((a6==1)&&(((a20==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&!(a4==1)))&&(a15==1)))))&&!(a22==1))&&(a0==1))&&!(a27==1)))){ + a4 = 1; + a12 = 10; + a15 = 0; + a3 = 7; + a18 = 0; + return 21; + } else if(((a12==9)&&(((a27==1)&&(((a20==1)&&((a5==1)&&((a4==1)&&(((((a3==5)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4))))&&(input==1))&&(a15==1)))))&&!(a0==1)))&&!(a6==1)))){ + a3 = 4; + a6 = 1; + a0 = 1; + a22 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if((((a15==1)&&((a12==12)&&((a4==1)&&((a20==1)&&(!(a5==1)&&((((((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==1))&&(a6==1))&&!(a27==1)))))))&&(a0==1))){ + a5 = 1; + a3 = 5; + a22 = 1; + a15 = 0; + a6 = 0; + a18 = 0; + a27 = 1; + return 24; + } else if(((a3==4)&&(!(a27==1)&&(((((((((a5==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a6==1))&&(a4==1))&&!(a22==1))&&(a12==9))&&!(a15==1))&&(a20==1))&&!(a0==1))))){ + a22 = 1; + a15 = 1; + a27 = 1; + a18 = 0; + a4 = 0; + return -1; + } else if(((((((!(a15==1)&&((a18==1)&&(!(a27==1)&&((((a12==9)&&(input==1))&&(a3==7))&&!(a6==1)))))&&!(a0==1))&&!(a4==1))&&(a5==1))&&(a22==1))&&(a20==1))){ + if((a5==1)){ + a22 = 0; + a27 = 1; + a15 = 1; + a12 = 12; + a18 = 0; + a3 = 4; + }else{ + a12 = 8; + a6 = 1; + a0 = 1; + a22 = 0; + a18 = 0; + a27 = 1; + a15 = 1; + } + return 26; + } else if((((a20==1)&&((a5==1)&&(((!(a4==1)&&(((a12==9)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==6)))&&!(a27==1)))&&!(a15==1))&&!(a6==1))))&&!(a0==1))){ + a6 = 1; + a22 = 0; + a4 = 1; + a3 = 4; + a0 = 1; + a27 = 1; + a18 = 1; + a15 = 1; + return 26; + } else if(((a3==6)&&((((a5==1)&&((a6==1)&&(!(a27==1)&&(((a12==12)&&((a15==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3))))&&!(a4==1)))))&&(a0==1))&&(a20==1)))){ + a18 = 0; + a22 = 1; + a12 = 11; + a27 = 1; + a3 = 4; + return -1; + } else if((((((((a27==1)&&((((input==6)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1)))))&&(a0==1))&&(a20==1)))&&!(a6==1))&&!(a15==1))&&!(a4==1))&&(a12==9))&&!(a5==1))){ + a22 = 1; + a12 = 8; + a4 = 1; + a15 = 1; + a18 = 1; + a6 = 1; + a5 = 1; + a3 = 4; + return -1; + } else if(((a20==1)&&(!(a27==1)&&(((((((a5==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2))&&(a4==1)))&&(a0==1))&&(a6==1))&&(a3==4))&&(a12==8))&&!(a15==1))))){ + a22 = 1; + a18 = 1; + a15 = 1; + a27 = 1; + return -1; + } else if((((!(a0==1)&&(!(a18==1)&&((a12==8)&&((!(a4==1)&&((!(a27==1)&&((a22==1)&&((input==6)&&!(a15==1))))&&(a3==8)))&&(a6==1)))))&&(a5==1))&&(a20==1))){ + a4 = 1; + a27 = 1; + a0 = 1; + a15 = 1; + a3 = 6; + return -1; + } else if((!(a0==1)&&((a15==1)&&((((a20==1)&&((a12==12)&&(!(a4==1)&&((((((a18==1)||!(a18==1))&&(input==1))&&(a3==8))&&(a22==1))&&!(a5==1)))))&&!(a6==1))&&(a27==1))))){ + if((a27==1)){ + a6 = 1; + a5 = 1; + a12 = 10; + a3 = 4; + a4 = 1; + a15 = 0; + a18 = 1; + }else{ + a15 = 0; + a12 = 10; + a18 = 0; + } + return -1; + } else if((!(a15==1)&&(((a20==1)&&((a3==7)&&((a0==1)&&((!(a22==1)&&((a6==1)&&(((((a18==1)||!(a18==1))&&(input==3))&&(a5==1))&&(a12==8))))&&(a27==1)))))&&!(a4==1)))){ + a3 = 4; + a4 = 1; + a12 = 9; + a6 = 0; + a18 = 0; + return 26; + } else if(((((a12==12)&&((((a22==1)&&(!(a0==1)&&((a20==1)&&((a4==1)&&((a6==1)&&(!(a18==1)&&(input==5)))))))&&(a3==6))&&(a15==1)))&&(a27==1))&&!(a5==1))){ + if((a12==8)){ + a12 = 8; + a18 = 1; + a3 = 7; + }else{ + a0 = 1; + a22 = 0; + a5 = 1; + a4 = 0; + a12 = 8; + } + return 26; + } else if(((a4==1)&&((a3==7)&&(((((a12==10)&&((!(a0==1)&&((!(a5==1)&&((a18==1)&&(input==1)))&&(a6==1)))&&(a20==1)))&&(a22==1))&&(a27==1))&&(a15==1))))){ + a0 = 1; + a3 = 8; + a18 = 0; + a27 = 0; + a12 = 9; + return -1; + } else if(((a20==1)&&(!(a0==1)&&((a6==1)&&((!(a27==1)&&(!(a4==1)&&(((a15==1)&&(((((a18==1)&&(a22==1))&&(a3==6))||(((!(a22==1)&&(a18==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5))))&&(input==5)))&&(a12==8))))&&(a5==1)))))){ + a0 = 1; + a12 = 12; + a3 = 6; + a18 = 0; + a5 = 0; + a22 = 0; + return 21; + } else if((((!(a22==1)&&((a12==8)&&(((a0==1)&&(((a20==1)&&((a3==6)&&((((a18==1)||!(a18==1))&&(input==4))&&!(a6==1))))&&!(a15==1)))&&!(a4==1))))&&(a27==1))&&(a5==1))){ + a15 = 1; + a5 = 0; + a12 = 9; + a4 = 1; + a6 = 1; + a18 = 1; + a3 = 5; + return 26; + } else if((!(a22==1)&&((a20==1)&&((!(a0==1)&&((a5==1)&&((a3==4)&&((a6==1)&&(!(a15==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&(a12==12))&&!(a4==1)))))))&&(a27==1))))){ + a0 = 1; + a3 = 8; + a15 = 1; + a12 = 8; + a18 = 0; + return 24; + } else if((((((a20==1)&&((((a6==1)&&(!(a27==1)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==2))))&&!(a5==1))&&(a12==10)))&&!(a15==1))&&!(a4==1))&&!(a0==1))){ + a12 = 9; + a3 = 7; + a18 = 1; + a22 = 1; + a15 = 1; + a4 = 1; + return 21; + } else if((((a20==1)&&(((a4==1)&&((!(a5==1)&&((((((a18==1)&&(input==6))&&(a22==1))&&(a6==1))&&(a3==8))&&!(a27==1)))&&(a12==10)))&&!(a15==1)))&&!(a0==1))){ + a27 = 1; + a6 = 0; + a0 = 1; + a5 = 1; + a15 = 1; + a3 = 6; + a12 = 8; + a22 = 0; + return 21; + } else if(((((((!(a0==1)&&(((a5==1)&&(((input==2)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a27==1)))&&(a12==8)))&&(a4==1))&&(a3==4))&&(a6==1))&&(a20==1))&&(a15==1))){ + a0 = 1; + a18 = 0; + a12 = 10; + a4 = 0; + a22 = 1; + return 26; + } else if((!(a4==1)&&((((a0==1)&&(((a12==10)&&((!(a15==1)&&((((input==4)&&(a18==1))&&!(a27==1))&&!(a22==1)))&&!(a5==1)))&&(a6==1)))&&(a3==5))&&(a20==1)))){ + a5 = 1; + a12 = 12; + a22 = 1; + a3 = 8; + a15 = 1; + return 21; + } else if((((!(a5==1)&&(!(a6==1)&&((a15==1)&&(((a20==1)&&((((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7)))||((a3==7)&&((a22==1)&&!(a18==1))))&&(input==3))&&!(a0==1)))&&(a12==8)))))&&!(a27==1))&&!(a4==1))){ + a22 = 1; + a27 = 1; + a5 = 1; + a0 = 1; + a6 = 1; + a4 = 1; + a18 = 0; + a3 = 4; + return 21; + } else if(((!(a22==1)&&(((a3==4)&&((((a18==1)&&((a15==1)&&((a6==1)&&(((input==3)&&(a0==1))&&(a12==9)))))&&!(a5==1))&&(a20==1)))&&!(a27==1)))&&(a4==1))){ + a4 = 0; + a15 = 0; + a12 = 11; + a27 = 1; + return -1; + } else if((((a6==1)&&((((!(a18==1)&&((((a20==1)&&(((input==3)&&(a27==1))&&(a15==1)))&&!(a5==1))&&(a22==1)))&&(a3==8))&&(a12==12))&&(a4==1)))&&!(a0==1))){ + if((a20==1)){ + a12 = 10; + a3 = 7; + a4 = 0; + a27 = 0; + a0 = 1; + a15 = 0; + a5 = 1; + }else{ + a12 = 8; + a3 = 7; + a22 = 0; + } + return -1; + } else if(((a22==1)&&((((((!(a6==1)&&((((((a18==1)||!(a18==1))&&(input==4))&&(a20==1))&&(a4==1))&&!(a5==1)))&&(a3==4))&&!(a0==1))&&(a27==1))&&(a15==1))&&(a12==12)))){ + a3 = 6; + a5 = 1; + a18 = 1; + a12 = 8; + a0 = 1; + return -1; + } else if(((a3==4)&&((a15==1)&&((a20==1)&&(((((a12==8)&&(!(a0==1)&&((a27==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==5)))))&&(a5==1))&&(a6==1))&&(a4==1)))))){ + a12 = 12; + a18 = 0; + a0 = 1; + a3 = 8; + a6 = 0; + a22 = 0; + a15 = 0; + return -1; + } else if(((a6==1)&&((((((a20==1)&&(((a27==1)&&((input==6)&&(((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))))&&(a15==1)))&&(a12==8))&&(a5==1))&&!(a0==1))&&(a4==1)))){ + a0 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((((a15==1)&&(((((a12==10)&&(!(a0==1)&&((a20==1)&&(((((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a22==1)&&!(a18==1))))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==1)))))&&!(a6==1))&&!(a4==1))&&(a27==1)))&&!(a5==1))){ + a18 = 1; + a5 = 1; + a3 = 6; + a0 = 1; + a22 = 0; + a27 = 0; + a12 = 8; + return 21; + } else if(((a20==1)&&((a15==1)&&((((a6==1)&&((a5==1)&&(((!(a27==1)&&(!(a0==1)&&(!(a4==1)&&(input==3))))&&(a3==6))&&!(a22==1))))&&(a12==8))&&(a18==1))))){ + a15 = 0; + a22 = 1; + a12 = 10; + a27 = 1; + a0 = 1; + a6 = 0; + a18 = 0; + return -1; + } else if((((a20==1)&&((a27==1)&&((a5==1)&&(((a0==1)&&((((a3==5)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==6)))&&(a15==1))&&(a6==1)))&&(a12==12)))))&&(a4==1))){ + a18 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + return -1; + } return calculate_output32(input); + } + + int calculate_output32(int input) { + if(((a20==1)&&(((!(a15==1)&&(((!(a22==1)&&(((((input==3)&&!(a0==1))&&(a12==9))&&(a3==7))&&!(a27==1)))&&!(a4==1))&&!(a5==1)))&&!(a18==1))&&!(a6==1)))){ + a22 = 1; + a27 = 1; + a5 = 1; + a6 = 1; + a0 = 1; + a12 = 8; + a15 = 1; + return 21; + } else if((!(a5==1)&&((((a15==1)&&((a4==1)&&(((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&!(a0==1))&&(a20==1))&&(a3==6))&&(a12==9))))&&!(a6==1))&&(a27==1)))){ + a18 = 1; + a12 = 8; + a22 = 1; + a5 = 1; + a6 = 1; + a0 = 1; + a3 = 4; + return -1; + } else if(((((((a20==1)&&((a3==7)&&(((a4==1)&&(((input==4)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a5==1)))&&(a12==9))))&&(a15==1))&&(a6==1))&&!(a27==1))&&!(a0==1))){ + a0 = 1; + a27 = 1; + a3 = 6; + a22 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if((!(a15==1)&&(((a3==5)&&((!(a5==1)&&(!(a0==1)&&((a20==1)&&((a12==8)&&((a4==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a27==1)))))))&&(a22==1)))&&!(a6==1)))){ + a15 = 1; + a18 = 1; + a0 = 1; + a3 = 4; + a4 = 0; + return 26; + } else if(((a20==1)&&((a15==1)&&((a12==11)&&(!(a4==1)&&(!(a5==1)&&(((((input==5)&&((((a22==1)&&!(a18==1))&&(a3==6))||(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))))&&(a27==1))&&!(a6==1))&&!(a0==1)))))))){ + a22 = 0; + a18 = 0; + a0 = 1; + a6 = 1; + a27 = 0; + a5 = 1; + a3 = 6; + return 24; + } else if(((!(a5==1)&&((a12==10)&&((((a15==1)&&((a20==1)&&((input==1)&&(((((a3==8)&&((a18==1)&&!(a22==1)))&&(a6==1))||((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8))))||(!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1))))))))&&!(a4==1))&&!(a27==1))))&&(a0==1))){ + a22 = 1; + a6 = 1; + a3 = 4; + a18 = 1; + a5 = 1; + a12 = 8; + a27 = 1; + a4 = 1; + return -1; + } else if((((a15==1)&&(!(a27==1)&&(((a12==8)&&((a20==1)&&(((a3==4)&&(!(a6==1)&&((a0==1)&&((input==2)&&((a18==1)||!(a18==1))))))&&(a22==1))))&&(a4==1))))&&!(a5==1))){ + a18 = 1; + a12 = 12; + a3 = 7; + a15 = 0; + a4 = 0; + return -1; + } else if(((((a27==1)&&(((!(a4==1)&&((((a5==1)&&((input==2)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a6==1))&&!(a15==1)))&&!(a0==1))&&(a12==10)))&&(a20==1))&&(a3==5))){ + a22 = 0; + a5 = 0; + a0 = 1; + a18 = 1; + a12 = 11; + a27 = 0; + a3 = 8; + a6 = 1; + return 21; + } else if((!(a15==1)&&(((((a20==1)&&((a18==1)&&((((a12==9)&&(((input==4)&&(a27==1))&&(a5==1)))&&!(a22==1))&&!(a0==1))))&&!(a4==1))&&(a6==1))&&(a3==7)))){ + a15 = 1; + a3 = 4; + a12 = 8; + a4 = 1; + a0 = 1; + a22 = 1; + return -1; + } else if((((a12==11)&&(((a4==1)&&(((a0==1)&&((((((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==4))&&(a27==1))&&!(a5==1)))&&!(a15==1)))&&(a6==1)))&&(a20==1))){ + a4 = 0; + a3 = 8; + a6 = 0; + a5 = 1; + a22 = 1; + a18 = 0; + return -1; + } else if(((!(a27==1)&&((((a12==11)&&(!(a4==1)&&((a5==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==2))&&(a20==1)))))&&(a0==1))&&!(a6==1)))&&!(a15==1))){ + a22 = 1; + a18 = 1; + a27 = 1; + a6 = 1; + a4 = 1; + a12 = 8; + a15 = 1; + a3 = 4; + return -1; + } else if(((!(a4==1)&&(((((a12==8)&&((a5==1)&&((((((a22==1)&&!(a18==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6))))&&(input==2))&&!(a6==1))))&&(a15==1))&&(a20==1))&&!(a0==1)))&&(a27==1))){ + a0 = 1; + a3 = 4; + a6 = 1; + a18 = 1; + a4 = 1; + a22 = 1; + return -1; + } else if(((a18==1)&&((((a12==10)&&(!(a0==1)&&(!(a15==1)&&(!(a22==1)&&(((((input==5)&&(a27==1))&&(a3==4))&&!(a5==1))&&!(a4==1))))))&&(a20==1))&&(a6==1)))){ + a4 = 1; + a12 = 11; + a18 = 0; + a5 = 1; + a15 = 1; + a0 = 1; + return -1; + } else if(((a15==1)&&(((a3==6)&&((a20==1)&&(((!(a22==1)&&((((a0==1)&&((input==4)&&!(a5==1)))&&!(a6==1))&&(a18==1)))&&(a27==1))&&(a12==12))))&&(a4==1)))){ + a3 = 4; + a22 = 1; + a6 = 1; + a12 = 8; + a5 = 1; + return -1; + } else if(((a5==1)&&(((a4==1)&&(((a15==1)&&(((a0==1)&&(!(a6==1)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==2))))&&(a20==1)))&&(a12==12)))&&(a27==1)))){ + a18 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if((((a27==1)&&(((((!(a6==1)&&(!(a5==1)&&((input==6)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))||((!(a18==1)&&(a22==1))&&(a3==6))))))&&(a12==11))&&(a20==1))&&(a15==1))&&!(a4==1)))&&!(a0==1))){ + a5 = 1; + a0 = 1; + a18 = 1; + a12 = 8; + a22 = 1; + a6 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((a12==8)&&(((((a18==1)&&(((a0==1)&&((a4==1)&&((a6==1)&&(((input==1)&&(a3==6))&&(a15==1)))))&&(a20==1)))&&!(a5==1))&&!(a27==1))&&(a22==1)))){ + if((a18==1)){ + a3 = 5; + a0 = 0; + a27 = 1; + a6 = 0; + }else{ + a3 = 7; + a22 = 0; + a15 = 0; + a27 = 1; + a12 = 11; + } + return 24; + } else if((((!(a6==1)&&(!(a4==1)&&((((a0==1)&&(((((input==3)&&(a15==1))&&(a22==1))&&(a27==1))&&(a18==1)))&&!(a5==1))&&(a12==12))))&&(a20==1))&&(a3==7))){ + a3 = 6; + a5 = 1; + a6 = 1; + a18 = 0; + a22 = 0; + a4 = 1; + return 24; + } else if(((((!(a0==1)&&((!(a6==1)&&((a12==11)&&((!(a5==1)&&((input==4)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&(a3==4))))&&(a20==1)))&&!(a15==1))&&!(a27==1))&&(a4==1))){ + a22 = 0; + a18 = 1; + a6 = 1; + a15 = 1; + a0 = 1; + a12 = 9; + return 26; + } else if(((a3==6)&&((a15==1)&&(!(a0==1)&&(((((a6==1)&&((((a4==1)&&((a20==1)&&(input==3)))&&(a18==1))&&(a12==9)))&&(a27==1))&&(a22==1))&&(a5==1)))))){ + a0 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((a5==1)&&((a15==1)&&((a20==1)&&((!(a27==1)&&(!(a0==1)&&((a12==10)&&((a6==1)&&((((a3==6)&&((a22==1)&&(a18==1)))||(((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a22==1)&&!(a18==1)))))&&(input==6))))))&&(a4==1)))))){ + a3 = 6; + a4 = 0; + a18 = 1; + a22 = 1; + a27 = 1; + a6 = 0; + return -1; + } else if((!(a6==1)&&((a3==4)&&((((a12==10)&&(!(a15==1)&&((!(a0==1)&&(((input==2)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&!(a5==1)))&&!(a4==1))))&&(a27==1))&&(a20==1))))){ + if((a18==1)){ + a22 = 0; + a4 = 1; + a12 = 11; + a18 = 1; + a3 = 8; + }else{ + a6 = 1; + a18 = 1; + a5 = 1; + a22 = 1; + a27 = 0; + a15 = 1; + a12 = 11; + a3 = 6; + a0 = 1; + } + return 26; + } else if((((a3==7)&&(((!(a15==1)&&(!(a27==1)&&(((a0==1)&&(!(a6==1)&&((input==1)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))))&&(a4==1))))&&(a12==9))&&(a5==1)))&&(a20==1))){ + a3 = 8; + a5 = 0; + a12 = 11; + a18 = 1; + a22 = 0; + a6 = 1; + return 26; + } else if((((a20==1)&&(((a5==1)&&(((input==4)&&((((!(a4==1)&&((!(a22==1)&&!(a18==1))&&(a15==1)))&&(a3==8))&&!(a6==1))||((a6==1)&&(((!(a15==1)&&((a22==1)&&(a18==1)))&&(a4==1))&&(a3==4)))))&&(a27==1)))&&(a12==9)))&&(a0==1))){ + a6 = 1; + a3 = 4; + a12 = 8; + a4 = 1; + a22 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if((((a27==1)&&(((((a20==1)&&((a3==5)&&(!(a0==1)&&((a12==9)&&((input==3)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))))&&!(a6==1))&&(a4==1))&&(a5==1)))&&!(a15==1))){ + a18 = 1; + a15 = 1; + a3 = 8; + a22 = 1; + a12 = 11; + return 24; + } else if((((a27==1)&&(((a5==1)&&((a20==1)&&((a0==1)&&(((a12==9)&&((input==6)&&(((a3==5)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1)))))))&&!(a4==1)))))&&(a15==1)))&&!(a6==1))){ + a22 = 0; + a15 = 0; + a12 = 8; + a3 = 5; + a6 = 1; + a18 = 1; + return 26; + } else if(((a18==1)&&(((a20==1)&&(((a12==9)&&(((a5==1)&&(!(a15==1)&&((((input==2)&&(a3==6))&&(a6==1))&&(a4==1))))&&!(a22==1)))&&!(a27==1)))&&!(a0==1)))){ + a15 = 1; + a4 = 0; + a22 = 1; + a0 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if(((!(a15==1)&&((a20==1)&&((a5==1)&&(!(a4==1)&&((a12==8)&&(!(a27==1)&&((((a6==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a22==1))&&!(a0==1))))))))&&(a3==6))){ + if((a4==1)){ + a12 = 11; + a5 = 0; + a6 = 0; + a18 = 0; + a3 = 8; + a4 = 1; + a22 = 0; + }else{ + a0 = 1; + a18 = 0; + a4 = 1; + a27 = 1; + a3 = 7; + a15 = 1; + a6 = 0; + } + return -1; + } else if((((a3==4)&&((a20==1)&&((a18==1)&&(!(a6==1)&&((((a12==10)&&((a27==1)&&((a5==1)&&((a4==1)&&(input==4)))))&&!(a0==1))&&!(a15==1))))))&&(a22==1))){ + a22 = 0; + a0 = 1; + a3 = 6; + a6 = 1; + return -1; + } else if((!(a27==1)&&((a12==10)&&((((((a6==1)&&(((a4==1)&&((((a18==1)&&(a22==1))&&!(a5==1))&&(a15==1)))&&(a3==4)))||(((((!(a15==1)&&(((a18==1)&&!(a22==1))&&(a5==1)))&&!(a4==1))&&(a3==8))&&!(a6==1))||((((((a5==1)&&(!(a18==1)&&!(a22==1)))&&!(a15==1))&&!(a4==1))&&(a3==8))&&!(a6==1))))&&(input==3))&&(a20==1))&&(a0==1))))){ + a22 = 1; + a6 = 1; + a0 = 0; + a18 = 0; + a27 = 1; + a5 = 1; + a3 = 4; + a12 = 8; + a4 = 0; + a15 = 1; + return 26; + } else if(((a27==1)&&(!(a0==1)&&((a6==1)&&(((a20==1)&&((a4==1)&&((a5==1)&&((a15==1)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==4))))))&&(a12==8)))))){ + a22 = 1; + a3 = 4; + a18 = 0; + a27 = 0; + a5 = 0; + a12 = 9; + a0 = 1; + return -1; + } else if(((a5==1)&&(((a0==1)&&((!(a27==1)&&((a12==10)&&((((a20==1)&&(!(a6==1)&&((input==2)&&!(a18==1))))&&!(a4==1))&&(a22==1))))&&!(a15==1)))&&(a3==8)))){ + a18 = 1; + a3 = 4; + a12 = 9; + a15 = 1; + a5 = 0; + return 26; + } else if(((a5==1)&&((((a6==1)&&(!(a15==1)&&((a12==9)&&((((input==3)&&((((a22==1)&&(a18==1))&&(a3==7))||((((a18==1)&&!(a22==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6)))))&&!(a27==1))&&!(a0==1)))))&&(a20==1))&&!(a4==1)))){ + a5 = 0; + a3 = 6; + a15 = 1; + a4 = 1; + a18 = 1; + a22 = 1; + a12 = 10; + return 26; + } else if((((!(a0==1)&&(!(a6==1)&&(((((((input==2)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a12==10))&&(a27==1))&&!(a5==1))&&(a3==5))&&(a20==1))))&&!(a4==1))&&!(a15==1))){ + if((a0==1)){ + a5 = 1; + a22 = 0; + a3 = 8; + a18 = 1; + a12 = 11; + }else{ + a12 = 12; + a5 = 1; + a4 = 1; + a6 = 1; + a22 = 1; + a15 = 1; + a18 = 0; + } + return 26; + } else if((((a0==1)&&((((!(a5==1)&&(!(a27==1)&&(!(a4==1)&&(!(a15==1)&&((input==5)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))))))&&(a20==1))&&(a12==10))&&(a3==8)))&&(a6==1))){ + if((a0==1)){ + a12 = 8; + a18 = 0; + a6 = 0; + a0 = 0; + a27 = 1; + a22 = 1; + a3 = 5; + }else{ + a18 = 0; + a3 = 5; + a27 = 1; + a22 = 1; + a12 = 12; + a5 = 1; + } + return 26; + } else if((!(a15==1)&&((a20==1)&&(!(a5==1)&&(!(a0==1)&&((a12==10)&&(!(a4==1)&&(((a6==1)&&((input==4)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))))&&(a27==1))))))))){ + a3 = 7; + a5 = 1; + a4 = 1; + a12 = 8; + a22 = 1; + a18 = 0; + a0 = 1; + return 21; + } else if((!(a15==1)&&((((a12==8)&&((!(a5==1)&&((a3==4)&&(!(a6==1)&&(((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==6))&&(a27==1)))))&&(a4==1)))&&!(a0==1))&&(a20==1)))){ + a12 = 9; + a18 = 1; + a22 = 1; + a27 = 0; + a3 = 7; + a0 = 1; + a5 = 1; + return 26; + } else if((((((((((a20==1)&&(!(a6==1)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==1))))&&(a3==6))&&(a4==1))&&(a27==1))&&(a0==1))&&(a15==1))&&(a5==1))&&(a12==9))){ + a12 = 12; + a4 = 0; + a3 = 5; + a18 = 0; + a22 = 1; + return 24; + } else if((((a5==1)&&(((a20==1)&&(!(a4==1)&&((a3==8)&&((!(a27==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6))&&!(a6==1)))&&(a0==1)))))&&(a15==1)))&&(a12==12))){ + a27 = 1; + a18 = 0; + a22 = 1; + a12 = 11; + return -1; + } else if(((a27==1)&&(((!(a5==1)&&(!(a0==1)&&(((a3==8)&&(((a20==1)&&((input==6)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))))&&(a12==9)))&&(a15==1))))&&!(a6==1))&&!(a4==1)))){ + a22 = 1; + a0 = 1; + a4 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + a5 = 1; + a6 = 1; + return -1; + } else if((!(a15==1)&&((((!(a0==1)&&(!(a4==1)&&((a20==1)&&(((a3==4)&&(!(a6==1)&&((input==2)&&((a18==1)||!(a18==1)))))&&!(a27==1)))))&&!(a5==1))&&(a12==9))&&!(a22==1)))){ + a4 = 1; + a6 = 1; + a22 = 1; + a15 = 1; + a18 = 1; + a5 = 1; + a27 = 1; + a12 = 8; + a0 = 1; + a3 = 5; + return 21; + } else if((!(a5==1)&&((((a12==10)&&((a3==6)&&(!(a0==1)&&((a15==1)&&((a4==1)&&((((input==2)&&((a18==1)||!(a18==1)))&&(a20==1))&&!(a27==1)))))))&&(a22==1))&&(a6==1)))){ + a5 = 1; + a6 = 0; + a12 = 8; + a0 = 1; + a27 = 1; + a3 = 5; + a18 = 1; + return 21; + } else if(((a20==1)&&((((!(a0==1)&&(((a5==1)&&(((a12==8)&&((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a3==5)))&&!(a27==1)))&&!(a6==1))&&(a4==1))&&(a15==1)))){ + a18 = 1; + a12 = 11; + a6 = 1; + a15 = 0; + a22 = 1; + a27 = 1; + a0 = 1; + return 26; + } else if((((!(a27==1)&&((!(a4==1)&&(!(a5==1)&&(((a20==1)&&((a3==5)&&(((input==3)&&!(a22==1))&&(a12==12))))&&(a0==1))))&&!(a18==1)))&&(a15==1))&&!(a6==1))){ + a4 = 1; + a6 = 1; + a27 = 1; + a12 = 11; + a22 = 1; + a18 = 1; + return -1; + } else if((((((a3==8)&&((((a20==1)&&(!(a4==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==6))&&(a6==1))))&&(a27==1))&&(a5==1)))&&(a12==12))&&!(a0==1))&&!(a15==1))){ + a22 = 0; + a27 = 0; + a12 = 10; + a18 = 1; + a3 = 7; + return 26; + } else if((((a20==1)&&(!(a4==1)&&(((a27==1)&&((a6==1)&&(((((input==2)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&!(a5==1))&&(a12==12))&&(a0==1))))&&!(a15==1))))&&(a3==5))){ + a6 = 0; + a18 = 1; + a4 = 1; + a22 = 1; + a15 = 1; + return -1; + } else if(((a6==1)&&((((((a5==1)&&((((((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==4))&&!(a15==1))&&(a12==12)))&&(a0==1))&&(a20==1))&&(a4==1))&&!(a27==1)))){ + a3 = 8; + a18 = 0; + a22 = 1; + a27 = 1; + a6 = 0; + a12 = 11; + return 21; + } else if(((((((((a12==8)&&(!(a4==1)&&((input==3)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a18==1)&&(a22==1)))))))&&(a20==1))&&!(a27==1))&&(a0==1))&&!(a5==1))&&!(a6==1))&&!(a15==1))){ + a27 = 1; + a4 = 1; + a12 = 12; + a22 = 1; + a3 = 8; + a18 = 1; + return -1; + } else if(((a20==1)&&((a6==1)&&(((((a12==10)&&(!(a27==1)&&(((a22==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&!(a4==1)))&&!(a15==1))))&&(a5==1))&&(a0==1))&&(a3==5))))){ + a5 = 0; + a18 = 1; + a22 = 0; + a4 = 1; + a3 = 6; + a27 = 1; + return 21; + } else if(((a6==1)&&(!(a22==1)&&(!(a18==1)&&((!(a5==1)&&(!(a0==1)&&((a12==9)&&((a20==1)&&((((input==4)&&(a3==8))&&!(a4==1))&&!(a15==1))))))&&(a27==1)))))){ + a3 = 6; + a0 = 1; + a22 = 1; + a6 = 0; + a12 = 12; + a15 = 1; + return 21; + } else if(((a4==1)&&((a12==8)&&(((a20==1)&&(!(a18==1)&&(!(a27==1)&&((((a3==7)&&((a15==1)&&((input==5)&&(a5==1))))&&!(a22==1))&&(a6==1)))))&&(a0==1))))){ + a6 = 0; + a12 = 9; + a3 = 6; + a5 = 0; + a18 = 1; + return 26; + } else if(((((a12==11)&&(((a6==1)&&(!(a27==1)&&(((a20==1)&&((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==2))&&(a0==1)))&&(a4==1))))&&(a5==1)))&&(a3==8))&&!(a15==1))){ + a22 = 1; + a15 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + a27 = 1; + return -1; + } else if((!(a5==1)&&(((a4==1)&&((a12==9)&&(((a20==1)&&((a0==1)&&(((input==2)&&(((a3==6)&&(!(a18==1)&&(a22==1)))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6)))))&&!(a27==1))))&&(a6==1))))&&!(a15==1)))){ + a4 = 0; + a22 = 1; + a12 = 10; + a27 = 1; + a18 = 1; + a5 = 1; + a3 = 4; + return -1; + } else if(((!(a4==1)&&(((((a3==4)&&(!(a27==1)&&(((!(a18==1)&&((input==1)&&(a15==1)))&&(a6==1))&&(a20==1))))&&(a12==9))&&(a5==1))&&(a22==1)))&&(a0==1))){ + a12 = 11; + a18 = 1; + a3 = 8; + a27 = 1; + a15 = 0; + return 21; + } else if((((a4==1)&&(((a20==1)&&((a3==8)&&(((a0==1)&&((a12==12)&&(!(a27==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a6==1)))))&&(a5==1))))&&!(a22==1)))&&!(a15==1))){ + a22 = 1; + a18 = 1; + a15 = 1; + a4 = 0; + a12 = 10; + a5 = 0; + a3 = 5; + a27 = 1; + return 26; + } else if(((a12==9)&&(((((a27==1)&&(!(a4==1)&&((a20==1)&&((a15==1)&&((a5==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==3)))))))&&(a3==6))&&(a6==1))&&!(a0==1)))){ + a22 = 1; + a5 = 0; + a15 = 0; + a12 = 10; + a18 = 1; + return 26; + } else if((!(a0==1)&&(((a20==1)&&(((a12==12)&&((a4==1)&&((a22==1)&&((a27==1)&&((a3==4)&&((a6==1)&&(((a18==1)||!(a18==1))&&(input==6))))))))&&!(a5==1)))&&!(a15==1)))){ + a18 = 0; + a15 = 1; + a12 = 8; + a5 = 1; + a3 = 7; + a0 = 1; + return -1; + } else if((((a12==9)&&((a6==1)&&((((!(a0==1)&&(((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==3))&&!(a5==1))&&(a3==7)))&&(a15==1))&&!(a4==1))&&(a20==1))))&&(a27==1))){ + a0 = 1; + a4 = 1; + a3 = 8; + a18 = 0; + a27 = 0; + a22 = 1; + a5 = 1; + return 21; + } else if(((a4==1)&&(((!(a6==1)&&((!(a0==1)&&((a15==1)&&(((input==3)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7))))&&(a5==1))))&&(a12==9)))&&(a20==1))&&!(a27==1)))){ + a4 = 0; + a22 = 1; + a6 = 1; + a3 = 4; + a18 = 1; + a0 = 1; + a27 = 1; + a12 = 8; + return 24; + } else if(((!(a0==1)&&((((a12==10)&&((a3==8)&&((a5==1)&&(((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==1))&&!(a4==1))&&!(a6==1)))))&&(a15==1))&&(a20==1)))&&(a27==1))){ + a4 = 1; + a18 = 1; + a12 = 12; + a22 = 1; + return 21; + } else if((((!(a5==1)&&(((a15==1)&&(((a20==1)&&((a6==1)&&(((((!(a22==1)&&(a18==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7)))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==5))))&&(a4==1)))&&!(a27==1)))&&(a12==10))&&(a0==1))){ + if((a22==1)){ + a18 = 1; + a22 = 1; + a3 = 5; + a0 = 0; + a5 = 1; + a6 = 0; + a12 = 11; + a27 = 1; + a15 = 0; + }else{ + a22 = 1; + a6 = 0; + a18 = 1; + a15 = 0; + a27 = 1; + a5 = 1; + a3 = 7; + a4 = 0; + } + return -1; + } else if((!(a27==1)&&((((((a20==1)&&((a18==1)&&(!(a15==1)&&((a4==1)&&(((input==2)&&(a12==9))&&(a22==1))))))&&(a6==1))&&!(a5==1))&&!(a0==1))&&(a3==5)))){ + a3 = 6; + a5 = 1; + a27 = 1; + a18 = 0; + a12 = 8; + a15 = 1; + a4 = 0; + a0 = 1; + return -1; + } else if((!(a22==1)&&(!(a18==1)&&((((((a12==10)&&((a6==1)&&(((a4==1)&&((a5==1)&&(input==5)))&&(a20==1))))&&!(a15==1))&&(a3==6))&&!(a0==1))&&!(a27==1))))){ + a0 = 1; + a15 = 1; + a3 = 8; + a18 = 1; + return 21; + } else if(((a3==7)&&(!(a15==1)&&((a27==1)&&((a12==8)&&(((a4==1)&&((a20==1)&&((a5==1)&&((a22==1)&&((a6==1)&&(((a18==1)||!(a18==1))&&(input==6)))))))&&!(a0==1))))))){ + a18 = 0; + a0 = 1; + a15 = 1; + a12 = 10; + a5 = 0; + a3 = 8; + return -1; + } else if(((a20==1)&&((a4==1)&&((a15==1)&&((((a5==1)&&((((((!(a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==5))))&&(input==4))&&(a27==1))&&(a12==10)))&&(a6==1))&&(a0==1)))))){ + a12 = 9; + a3 = 6; + a15 = 0; + a6 = 0; + a18 = 0; + a27 = 0; + a22 = 0; + a4 = 0; + return 26; + } else if((((a20==1)&&(!(a15==1)&&((a12==8)&&((!(a0==1)&&((!(a5==1)&&((a22==1)&&(((input==2)&&!(a6==1))&&(a27==1))))&&!(a18==1)))&&!(a4==1)))))&&(a3==4))){ + if((a0==1)){ + a3 = 6; + a6 = 1; + a12 = 10; + a18 = 1; + }else{ + a4 = 1; + a0 = 1; + a5 = 1; + a12 = 10; + a6 = 1; + } + return 26; + } else if((((a12==11)&&((((a3==7)&&((((((input==3)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a0==1))&&!(a4==1))&&!(a6==1))&&(a20==1)))&&(a5==1))&&(a15==1)))&&(a27==1))){ + a15 = 0; + a0 = 1; + a6 = 1; + a4 = 1; + a18 = 0; + a3 = 4; + a22 = 1; + a12 = 10; + return 21; + } else if(((!(a27==1)&&((!(a15==1)&&(((a12==11)&&(((((a3==5)&&((input==2)&&!(a5==1)))&&(a0==1))&&(a4==1))&&(a20==1)))&&(a6==1)))&&!(a22==1)))&&!(a18==1))){ + a27 = 1; + a15 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + a18 = 1; + a5 = 1; + return -1; + } else if((((a20==1)&&(((a12==9)&&(((a27==1)&&(!(a0==1)&&(((input==6)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6))))&&!(a6==1))))&&!(a5==1)))&&(a4==1)))&&(a15==1))){ + a22 = 1; + a12 = 8; + a5 = 1; + a3 = 4; + a0 = 1; + a6 = 1; + a18 = 1; + return -1; + } else if(((a12==9)&&(!(a4==1)&&((a3==8)&&((a18==1)&&(!(a6==1)&&((!(a27==1)&&((!(a15==1)&&((a22==1)&&((a0==1)&&(input==3))))&&!(a5==1)))&&(a20==1)))))))){ + a4 = 1; + a0 = 0; + a27 = 1; + a15 = 1; + a3 = 7; + a22 = 0; + return 21; + } else if((!(a0==1)&&(((((!(a4==1)&&(!(a27==1)&&((a20==1)&&(!(a6==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2))))))&&!(a5==1))&&(a3==8))&&(a15==1))&&(a12==10)))){ + a4 = 1; + a5 = 1; + a22 = 0; + a18 = 0; + a27 = 1; + a3 = 6; + return -1; + } else if(((a0==1)&&((((((a5==1)&&((!(a15==1)&&((a27==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a12==12))))&&!(a22==1)))&&(a3==7))&&!(a6==1))&&(a20==1))&&(a4==1)))){ + a18 = 0; + a27 = 0; + a3 = 4; + a6 = 1; + return 24; + } else if(((((a20==1)&&(((a0==1)&&((a12==12)&&(!(a6==1)&&((a27==1)&&(((((a18==1)||!(a18==1))&&(input==1))&&(a22==1))&&(a4==1))))))&&(a5==1)))&&(a3==7))&&(a15==1))){ + a6 = 1; + a12 = 11; + a4 = 0; + a18 = 1; + return 26; + } else if((((!(a4==1)&&((((a20==1)&&(((((((a22==1)&&!(a18==1))&&(a3==8))||(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1)))))&&(input==1))&&(a15==1))&&!(a5==1)))&&(a27==1))&&(a12==12)))&&(a6==1))&&!(a0==1))){ + if((a5==1)){ + a22 = 0; + a0 = 1; + a18 = 0; + a5 = 1; + a12 = 8; + a3 = 7; + }else{ + a6 = 0; + a4 = 1; + a22 = 1; + a3 = 4; + a5 = 1; + a18 = 1; + a0 = 1; + a12 = 8; + } + return 21; + } else if((((((a12==11)&&((!(a15==1)&&(!(a4==1)&&(((((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1))||(((a6==1)&&((a3==8)&&((a18==1)&&!(a22==1))))||((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))))&&(input==1))))&&(a20==1)))&&(a5==1))&&!(a27==1))&&!(a0==1))){ + a6 = 1; + a12 = 8; + a27 = 1; + a0 = 1; + a15 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((((a6==1)&&(((a12==9)&&((a20==1)&&(!(a5==1)&&(!(a0==1)&&((input==6)&&(((a3==8)&&((a22==1)&&(a18==1)))||(((a3==7)&&((a18==1)&&!(a22==1)))||((a3==7)&&(!(a18==1)&&!(a22==1))))))))))&&(a15==1)))&&!(a27==1))&&!(a4==1))){ + if((a15==1)){ + a18 = 1; + a27 = 1; + a6 = 0; + a22 = 0; + a12 = 8; + a4 = 1; + a3 = 8; + a5 = 1; + a0 = 1; + }else{ + a22 = 0; + a5 = 1; + a3 = 8; + a27 = 1; + a4 = 1; + a0 = 1; + a18 = 1; + a12 = 8; + } + return 26; + } else if(((a0==1)&&(((!(a6==1)&&(!(a27==1)&&((a20==1)&&(((((((a3==5)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==5)))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==3))&&!(a4==1))&&(a12==12)))))&&!(a15==1))&&!(a5==1)))){ + a27 = 1; + a18 = 1; + a15 = 1; + a12 = 8; + a4 = 1; + a6 = 1; + a3 = 4; + a5 = 1; + a22 = 1; + return -1; + } else if((((((!(a22==1)&&((a3==7)&&((((((input==6)&&(a20==1))&&(a5==1))&&(a0==1))&&(a18==1))&&(a12==9))))&&(a27==1))&&(a15==1))&&(a4==1))&&!(a6==1))){ + a12 = 8; + a6 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if(((a12==12)&&(((((((a6==1)&&(((a4==1)&&((input==4)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))&&(a20==1)))&&!(a15==1))&&(a27==1))&&(a3==8))&&!(a0==1))&&!(a5==1)))){ + a5 = 1; + a12 = 8; + a18 = 1; + a3 = 5; + a22 = 0; + a0 = 1; + a15 = 1; + return -1; + } else if(((a15==1)&&((((a0==1)&&(!(a27==1)&&((a3==4)&&(((a12==9)&&((((a5==1)&&(input==6))&&(a22==1))&&!(a4==1)))&&(a6==1)))))&&(a20==1))&&!(a18==1)))){ + a0 = 0; + a12 = 10; + a22 = 0; + a3 = 6; + a27 = 1; + return -1; + } else if(((a27==1)&&((a3==8)&&(((a12==12)&&((!(a0==1)&&(((!(a6==1)&&((input==2)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&(a20==1))&&!(a4==1)))&&!(a15==1)))&&!(a5==1))))){ + a22 = 0; + a12 = 8; + a0 = 1; + a15 = 1; + a18 = 1; + a5 = 1; + a3 = 6; + a4 = 1; + return -1; + } else if(((a12==10)&&(!(a27==1)&&((a15==1)&&(((!(a0==1)&&((a4==1)&&(((input==4)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8))))&&(a20==1))))&&!(a5==1))&&!(a6==1)))))){ + if((a0==1)){ + a18 = 1; + a12 = 11; + a22 = 0; + a15 = 0; + a3 = 6; + a6 = 1; + }else{ + a0 = 1; + a5 = 1; + a22 = 0; + a6 = 1; + a3 = 4; + a15 = 0; + a18 = 0; + } + return 21; + } else if(((((!(a0==1)&&(!(a15==1)&&((a3==6)&&(!(a27==1)&&((a12==8)&&((a20==1)&&(((a6==1)&&(input==1))&&(a18==1))))))))&&!(a4==1))&&!(a5==1))&&(a22==1))){ + a22 = 0; + a3 = 8; + a4 = 1; + a12 = 11; + a18 = 0; + a27 = 1; + return -1; + } else if((((a12==9)&&(!(a4==1)&&(!(a27==1)&&((a20==1)&&((((input==4)&&((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1))))&&(a5==1))&&(a0==1))))))&&(a15==1))){ + a3 = 4; + a5 = 0; + a6 = 0; + a12 = 10; + a18 = 1; + a22 = 1; + return 21; + } else if((((((a3==8)&&((!(a0==1)&&((((((input==3)&&((a18==1)||!(a18==1)))&&!(a22==1))&&!(a4==1))&&(a6==1))&&(a12==9)))&&(a20==1)))&&(a27==1))&&(a5==1))&&(a15==1))){ + a4 = 1; + a0 = 1; + a27 = 0; + a18 = 1; + a12 = 10; + a6 = 0; + a5 = 0; + return 26; + } else if(((a27==1)&&((a5==1)&&((a12==10)&&(((a3==7)&&((a20==1)&&((((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==6))&&!(a4==1))&&(a6==1))&&!(a15==1))))&&(a0==1)))))){ + a15 = 1; + a4 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((((a4==1)&&(((a20==1)&&((((a6==1)&&((a18==1)&&(!(a0==1)&&(((a5==1)&&(input==3))&&(a3==7)))))&&(a22==1))&&(a12==8)))&&(a15==1)))&&!(a27==1))){ + if((a20==1)){ + a15 = 0; + a0 = 1; + a22 = 0; + a27 = 1; + a3 = 6; + a5 = 0; + a4 = 0; + }else{ + a4 = 0; + a3 = 8; + a18 = 0; + a0 = 1; + a27 = 1; + } + return -1; + } else if(((a15==1)&&((a12==10)&&(!(a27==1)&&((a20==1)&&((!(a5==1)&&(((a6==1)&&(((((a22==1)&&!(a18==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a18==1)&&(a22==1)))))&&(input==6)))&&(a4==1)))&&!(a0==1))))))){ + a3 = 7; + a12 = 8; + a18 = 0; + a5 = 1; + a4 = 0; + a27 = 1; + a0 = 1; + a22 = 0; + return 21; + } else if(((!(a5==1)&&((a12==9)&&(((a20==1)&&((((a0==1)&&(((input==3)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&(a6==1)))&&(a3==8))&&!(a27==1)))&&!(a15==1))))&&!(a4==1))){ + a22 = 1; + a12 = 8; + a5 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if((((a3==7)&&((!(a15==1)&&((a27==1)&&(((!(a6==1)&&(((!(a4==1)&&(input==4))&&(a20==1))&&!(a5==1)))&&!(a0==1))&&(a12==10))))&&(a18==1)))&&(a22==1))){ + a18 = 0; + a3 = 6; + a6 = 1; + a4 = 1; + a15 = 1; + a12 = 11; + return 21; + } else if((((a12==12)&&(!(a22==1)&&(((((((a20==1)&&(((input==3)&&(a0==1))&&(a18==1)))&&(a4==1))&&!(a6==1))&&!(a15==1))&&!(a27==1))&&(a3==7))))&&!(a5==1))){ + a5 = 1; + a12 = 11; + a4 = 0; + a3 = 6; + return 21; + } else if((((a15==1)&&((a22==1)&&((a3==4)&&((((a0==1)&&((a4==1)&&((a12==11)&&(((a20==1)&&(input==2))&&!(a6==1)))))&&!(a5==1))&&(a18==1)))))&&!(a27==1))){ + a27 = 1; + a3 = 6; + a12 = 12; + a6 = 1; + a15 = 0; + a5 = 1; + a0 = 0; + a22 = 0; + return 26; + } else if(((a0==1)&&(!(a27==1)&&((a20==1)&&((a12==9)&&((a3==5)&&((((!(a4==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==3)))&&(a5==1))&&!(a15==1))&&!(a6==1)))))))){ + a4 = 1; + a22 = 1; + a27 = 1; + a15 = 1; + a18 = 1; + a12 = 11; + return -1; + } else if(((a12==9)&&(!(a27==1)&&((((((input==1)&&((((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1))))&&(a6==1))||((!(a6==1)&&(((!(a22==1)&&(a18==1))&&(a4==1))&&(a3==8)))||(((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1)))&&!(a6==1)))))&&!(a5==1))&&!(a15==1))&&!(a0==1))&&(a20==1))))){ + if((a27==1)){ + a4 = 1; + a6 = 0; + a27 = 1; + a0 = 1; + a12 = 10; + a22 = 0; + a5 = 1; + a3 = 8; + a18 = 0; + a15 = 1; + }else{ + a18 = 0; + a6 = 1; + a3 = 5; + a0 = 1; + a15 = 1; + a27 = 1; + a22 = 0; + a4 = 1; + } + return 21; + } else if((((((((((a3==7)&&((a18==1)&&(((input==4)&&!(a0==1))&&!(a22==1))))&&(a20==1))&&(a15==1))&&!(a6==1))&&!(a5==1))&&(a27==1))&&(a12==9))&&(a4==1))){ + a3 = 8; + a0 = 1; + a12 = 8; + a22 = 1; + return 26; + } else if((!(a15==1)&&((a4==1)&&((((!(a6==1)&&((a27==1)&&(((a12==12)&&((input==3)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))))&&(a3==4))))&&!(a5==1))&&(a20==1))&&!(a0==1))))){ + a3 = 8; + a12 = 9; + a22 = 0; + a0 = 1; + a18 = 1; + a5 = 1; + return -1; + } else if((!(a27==1)&&(((a0==1)&&(((a20==1)&&(((a22==1)&&((((((a18==1)||!(a18==1))&&(input==1))&&!(a15==1))&&(a6==1))&&!(a5==1)))&&!(a4==1)))&&(a3==5)))&&(a12==8)))){ + a3 = 8; + a18 = 0; + a12 = 11; + a15 = 1; + a4 = 1; + a27 = 1; + return 21; + } else if((((!(a5==1)&&((((a15==1)&&((a12==10)&&(!(a27==1)&&((input==4)&&((((a18==1)&&(a22==1))&&(a3==5))||(((!(a22==1)&&(a18==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4))))))))&&(a20==1))&&(a0==1)))&&(a6==1))&&(a4==1))){ + a12 = 8; + a5 = 1; + a18 = 1; + a3 = 4; + a27 = 1; + a22 = 1; + return -1; + } else if((((a3==4)&&((((a15==1)&&(((a27==1)&&((a20==1)&&((!(a0==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a22==1))))&&(a5==1)))&&(a12==10))&&!(a6==1)))&&(a4==1))){ + a0 = 1; + a18 = 1; + a3 = 7; + a4 = 0; + a6 = 1; + a12 = 11; + return 24; + } else if((((((!(a0==1)&&((a3==7)&&(((((input==4)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a20==1))&&!(a4==1))&&(a27==1))))&&!(a5==1))&&(a12==11))&&!(a15==1))&&!(a6==1))){ + a4 = 1; + a18 = 0; + a0 = 1; + a3 = 5; + a22 = 0; + a6 = 1; + a15 = 1; + return -1; + } else if((((a0==1)&&((((a20==1)&&(((((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==2))&&(a12==11))&&!(a4==1))&&!(a6==1))&&(a3==5)))&&!(a27==1))&&!(a15==1)))&&!(a5==1))){ + a12 = 10; + a18 = 0; + a4 = 1; + a5 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if(((!(a0==1)&&(!(a6==1)&&((a20==1)&&((((a15==1)&&(((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==2))&&!(a4==1))&&(a3==8)))&&(a12==10))&&(a27==1)))))&&(a5==1))){ + a22 = 0; + a15 = 0; + a0 = 1; + a4 = 1; + a5 = 0; + a18 = 0; + a3 = 5; + return -1; + } else if((((((a4==1)&&((a12==9)&&((!(a5==1)&&(((input==2)&&((((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==5))))&&(a6==1)))&&(a27==1))))&&!(a15==1))&&(a20==1))&&!(a0==1))){ + a22 = 0; + a0 = 1; + a3 = 4; + a5 = 1; + a18 = 1; + return 26; + } else if(((!(a5==1)&&(((a20==1)&&(((!(a6==1)&&((a27==1)&&(((input==3)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a4==1))))&&(a15==1))&&(a12==8)))&&!(a0==1)))&&(a3==4))){ + a22 = 0; + a4 = 1; + a18 = 1; + a3 = 6; + a0 = 1; + a12 = 12; + return 21; + } else if(((!(a4==1)&&(((a12==8)&&(((((a15==1)&&(((((!(a22==1)&&(a18==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6)))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==1)))&&(a6==1))&&(a0==1))&&(a20==1)))&&!(a27==1)))&&(a5==1))){ + a18 = 0; + a3 = 4; + a22 = 1; + a12 = 11; + a15 = 0; + a27 = 1; + a6 = 0; + return 21; + } else if(((a4==1)&&((!(a27==1)&&((a0==1)&&((a6==1)&&((((a5==1)&&((input==4)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==6)))))&&(a15==1))&&(a12==10)))))&&(a20==1)))){ + a18 = 1; + a3 = 4; + a27 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if(((((((((a3==7)&&((((input==4)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&(a27==1))&&!(a15==1)))&&(a20==1))&&(a6==1))&&!(a5==1))&&(a0==1))&&!(a4==1))&&(a12==12))){ + a22 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a15 = 1; + a5 = 1; + a4 = 1; + return -1; + } else if((!(a0==1)&&((((a27==1)&&(!(a4==1)&&((a5==1)&&((a12==9)&&((a6==1)&&((((input==3)&&(a20==1))&&!(a18==1))&&(a15==1)))))))&&(a3==4))&&(a22==1)))){ + a0 = 1; + a18 = 1; + a4 = 1; + a12 = 8; + return -1; + } else if(((((a20==1)&&(!(a27==1)&&((a15==1)&&(!(a0==1)&&((a12==11)&&((a4==1)&&((input==5)&&(((a3==6)&&((a22==1)&&!(a18==1)))||(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))))))))))&&!(a6==1))&&!(a5==1))){ + a12 = 8; + a22 = 1; + a18 = 1; + a3 = 6; + a5 = 1; + a27 = 1; + a0 = 1; + return 21; + } else if(((a6==1)&&(((a27==1)&&(!(a4==1)&&((a12==8)&&((((((((a22==1)&&(a18==1))&&(a3==7))||(((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a18==1)&&!(a22==1)))))&&(input==3))&&!(a15==1))&&!(a0==1))&&(a5==1)))))&&(a20==1)))){ + a5 = 0; + a6 = 0; + a0 = 1; + a22 = 0; + a18 = 1; + a12 = 9; + a3 = 7; + return 24; + } else if((((((a5==1)&&((a4==1)&&(!(a15==1)&&(!(a0==1)&&((a6==1)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==5)))))))&&(a27==1))&&(a12==11))&&(a20==1))){ + a3 = 8; + a18 = 0; + a0 = 1; + a12 = 12; + a22 = 1; + return 21; + } else if((((!(a4==1)&&((a20==1)&&((a5==1)&&(((a0==1)&&((a3==6)&&((a12==12)&&((input==6)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))))&&!(a15==1)))))&&!(a6==1))&&(a27==1))){ + a4 = 1; + a5 = 0; + a12 = 11; + a22 = 0; + a6 = 1; + a18 = 1; + return -1; + } else if((!(a4==1)&&((a0==1)&&(!(a5==1)&&((a22==1)&&((((((((input==3)&&((a18==1)||!(a18==1)))&&(a3==6))&&(a27==1))&&!(a6==1))&&(a12==12))&&(a20==1))&&!(a15==1))))))){ + if((a5==1)){ + a6 = 1; + a3 = 4; + a18 = 1; + a27 = 0; + }else{ + a3 = 4; + a5 = 1; + a18 = 0; + a6 = 1; + a12 = 11; + a15 = 1; + a4 = 1; + a22 = 0; + } + return -1; + } else if((!(a5==1)&&(((a6==1)&&(!(a15==1)&&(((a3==7)&&((((a12==8)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==4)))&&(a20==1))&&!(a4==1)))&&!(a27==1))))&&!(a0==1)))){ + a4 = 1; + a22 = 1; + a27 = 1; + a0 = 1; + a18 = 1; + a15 = 1; + a5 = 1; + return 24; + } else if((!(a27==1)&&((!(a15==1)&&((a3==4)&&((((a12==10)&&((((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==2))&&!(a5==1))&&(a20==1)))&&!(a0==1))&&!(a4==1))))&&!(a6==1)))){ + a6 = 1; + a18 = 1; + a5 = 1; + a15 = 1; + a0 = 1; + a27 = 1; + a22 = 0; + a3 = 7; + a12 = 8; + return -1; + } else if((((a12==9)&&(!(a4==1)&&((a20==1)&&((a0==1)&&((a6==1)&&((!(a15==1)&&(((((a22==1)&&(a18==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==4))))&&(input==2)))&&(a27==1)))))))&&!(a5==1))){ + a18 = 0; + a5 = 1; + a12 = 11; + a22 = 1; + a15 = 1; + a3 = 4; + return 21; + } else if(((!(a15==1)&&((!(a5==1)&&(!(a6==1)&&(((((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==1))&&(a27==1))&&(a20==1))&&!(a4==1))))&&!(a0==1)))&&(a12==10))){ + a3 = 7; + a18 = 0; + a6 = 1; + a22 = 1; + a0 = 1; + return 26; + } else if(((a22==1)&&(((!(a18==1)&&(((((((a27==1)&&((input==1)&&!(a4==1)))&&(a20==1))&&!(a15==1))&&(a3==5))&&(a0==1))&&(a12==9)))&&!(a5==1))&&!(a6==1)))){ + a12 = 8; + a3 = 4; + a15 = 1; + a18 = 1; + a6 = 1; + a4 = 1; + a5 = 1; + return -1; + } else if((((a15==1)&&((a12==11)&&((a20==1)&&(!(a5==1)&&((a27==1)&&((a6==1)&&(!(a4==1)&&((((a3==5)&&((a22==1)&&(a18==1)))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a18==1)&&!(a22==1)))))&&(input==2)))))))))&&(a0==1))){ + a22 = 1; + a18 = 1; + a5 = 1; + a3 = 4; + a12 = 8; + a4 = 1; + return -1; + } else if(((((((a20==1)&&((a0==1)&&((!(a5==1)&&((!(a4==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a12==9)))&&(a15==1))))&&(a27==1))&&(a3==8))&&(a6==1))&&!(a22==1))){ + a22 = 1; + a3 = 4; + a4 = 1; + a12 = 8; + a18 = 1; + a5 = 1; + return -1; + } else if((!(a22==1)&&((a5==1)&&(((a20==1)&&(((a4==1)&&((a0==1)&&(((a12==9)&&(((input==6)&&!(a15==1))&&(a27==1)))&&(a18==1))))&&(a3==5)))&&!(a6==1))))){ + if((a27==1)){ + a12 = 12; + a0 = 0; + a6 = 1; + a3 = 7; + a15 = 1; + }else{ + a22 = 1; + a5 = 0; + a3 = 4; + a4 = 0; + a18 = 0; + a12 = 12; + } + return 26; + } else if(((a18==1)&&(!(a6==1)&&((((((!(a4==1)&&((((a3==6)&&(input==3))&&(a22==1))&&(a27==1)))&&(a20==1))&&(a0==1))&&(a5==1))&&(a12==12))&&(a15==1))))){ + a3 = 4; + a6 = 1; + a4 = 1; + a12 = 8; + return -1; + } else if(((((a18==1)&&((((a6==1)&&((((((a12==12)&&(input==2))&&!(a27==1))&&(a0==1))&&(a20==1))&&(a5==1)))&&!(a4==1))&&(a15==1)))&&(a3==8))&&(a22==1))){ + a22 = 0; + a27 = 1; + a15 = 0; + a12 = 11; + a6 = 0; + return 21; + } else if(((((a4==1)&&((!(a0==1)&&((((((((a22==1)&&!(a18==1))&&(a3==8))||(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1)))))&&(input==2))&&(a15==1))&&(a5==1))&&(a12==8)))&&(a20==1)))&&!(a6==1))&&(a27==1))){ + a3 = 4; + a6 = 1; + a0 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((a3==5)&&((!(a5==1)&&(!(a15==1)&&(!(a0==1)&&(((((a20==1)&&((input==3)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a6==1))&&!(a27==1))&&(a12==11)))))&&!(a4==1)))){ + if((a12==8)){ + a4 = 1; + a0 = 1; + a5 = 1; + a6 = 0; + a12 = 8; + a3 = 8; + a27 = 1; + a18 = 0; + a15 = 1; + a22 = 0; + }else{ + a5 = 1; + a22 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + a15 = 1; + a27 = 1; + } + return -1; + } else if(((a6==1)&&((((a12==10)&&(!(a15==1)&&((!(a0==1)&&(((a3==5)&&((a5==1)&&(((a18==1)||!(a18==1))&&(input==5))))&&(a20==1)))&&!(a27==1))))&&(a4==1))&&!(a22==1)))){ + a18 = 1; + a12 = 9; + a4 = 0; + a5 = 0; + a15 = 1; + a27 = 1; + a0 = 1; + a3 = 7; + return 26; + } else if((!(a18==1)&&((a12==12)&&((((((a4==1)&&((!(a27==1)&&((a5==1)&&((input==1)&&!(a15==1))))&&(a0==1)))&&(a20==1))&&(a22==1))&&(a6==1))&&(a3==6))))){ + a15 = 1; + a22 = 0; + a12 = 11; + a4 = 0; + a6 = 0; + a3 = 5; + a27 = 1; + return 26; + } else if((((a12==12)&&((a20==1)&&(((((!(a6==1)&&(!(a0==1)&&((input==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))))&&(a27==1))&&!(a4==1))&&(a15==1))&&!(a5==1))))&&(a3==5))){ + if((a3==6)){ + a12 = 8; + a22 = 1; + a4 = 1; + a18 = 1; + a5 = 1; + a0 = 1; + a3 = 4; + }else{ + a3 = 7; + a4 = 1; + a15 = 0; + a18 = 0; + a22 = 1; + } + return -1; + } else if((!(a4==1)&&(((a20==1)&&((a12==11)&&((a5==1)&&((a27==1)&&((a6==1)&&((((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a15==1))&&(a0==1)))))))&&(a3==5)))){ + a27 = 0; + a12 = 10; + a3 = 6; + a15 = 0; + a22 = 1; + a6 = 0; + a4 = 1; + a5 = 0; + a18 = 0; + return 26; + } else if((((a15==1)&&(((!(a22==1)&&((a27==1)&&((a5==1)&&(((a20==1)&&(((input==3)&&!(a6==1))&&(a0==1)))&&!(a18==1)))))&&(a3==4))&&!(a4==1)))&&(a12==11))){ + a6 = 1; + a4 = 1; + a18 = 1; + a12 = 10; + a3 = 5; + return -1; + } else if((!(a0==1)&&(((a15==1)&&((((a12==9)&&((!(a4==1)&&((a3==4)&&(((a20==1)&&(input==1))&&!(a27==1))))&&(a18==1)))&&(a22==1))&&!(a5==1)))&&(a6==1)))){ + a22 = 0; + a4 = 1; + a0 = 1; + a12 = 8; + a3 = 5; + a5 = 1; + a27 = 1; + return -1; + } else if(((((a27==1)&&((a5==1)&&(((a20==1)&&(((a4==1)&&((((a3==8)&&(!(a18==1)&&(a22==1)))||(((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1)))))&&(input==3)))&&(a12==12)))&&(a0==1))))&&(a15==1))&&!(a6==1))){ + a5 = 0; + a18 = 0; + a22 = 0; + a3 = 8; + a12 = 11; + return -1; + } else if(((a3==5)&&(((a12==11)&&((a6==1)&&((a4==1)&&(((((a0==1)&&((input==6)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a5==1))&&(a15==1))&&(a27==1)))))&&(a20==1)))){ + a3 = 4; + a12 = 8; + a5 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((!(a5==1)&&((a12==8)&&((((a3==8)&&((!(a0==1)&&((a4==1)&&((a6==1)&&((input==6)&&(a15==1)))))&&!(a18==1)))&&(a20==1))&&!(a22==1))))&&(a27==1))){ + a0 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + a5 = 1; + return -1; + } else if(((a4==1)&&((a12==10)&&((a0==1)&&(((a3==8)&&((a5==1)&&((a27==1)&&((a15==1)&&((((input==4)&&((a18==1)||!(a18==1)))&&(a20==1))&&!(a6==1))))))&&(a22==1)))))){ + a15 = 0; + a22 = 0; + a18 = 0; + a3 = 6; + a12 = 12; + return 24; + } else if((!(a5==1)&&(!(a6==1)&&((a0==1)&&(((a3==7)&&(((a27==1)&&((((input==5)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a15==1))&&(a20==1)))&&(a12==11)))&&(a4==1)))))){ + a18 = 0; + a15 = 1; + a5 = 1; + a6 = 1; + a3 = 5; + a22 = 0; + return 21; + } else if(((a3==6)&&(((a12==8)&&((a20==1)&&(((a6==1)&&(((!(a0==1)&&((input==6)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))))&&(a15==1))&&(a5==1)))&&!(a27==1))))&&(a4==1)))){ + a3 = 7; + a6 = 0; + a18 = 1; + a27 = 1; + a22 = 0; + a12 = 10; + a4 = 0; + a15 = 0; + return 26; + } else if(((((a3==5)&&((a4==1)&&(((!(a5==1)&&((a0==1)&&((a20==1)&&((input==6)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))))&&(a12==8))&&!(a15==1))))&&!(a27==1))&&!(a6==1))){ + a5 = 1; + a18 = 0; + a22 = 0; + a12 = 11; + a6 = 1; + a15 = 1; + return 21; + } else if(((a20==1)&&((!(a27==1)&&(((!(a15==1)&&((a0==1)&&((a3==7)&&(((input==5)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&(a12==8)))))&&!(a6==1))&&(a4==1)))&&!(a5==1)))){ + a6 = 1; + a4 = 0; + a27 = 1; + a3 = 6; + a18 = 0; + a22 = 0; + a12 = 12; + return 21; + } else if((((!(a15==1)&&((!(a5==1)&&((a20==1)&&((a4==1)&&((a12==11)&&((a0==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==3)))))))&&(a3==7)))&&(a6==1))&&!(a27==1))){ + a6 = 0; + a3 = 4; + a18 = 0; + a27 = 1; + a22 = 0; + return 26; + } else if(((a20==1)&&((a12==9)&&((((((((((input==5)&&(a6==1))&&(a5==1))&&(a22==1))&&!(a27==1))&&(a0==1))&&!(a18==1))&&(a3==8))&&(a15==1))&&!(a4==1))))){ + a18 = 1; + a27 = 1; + a22 = 0; + a12 = 12; + return 26; + } else if(((((a20==1)&&(((a27==1)&&((((a3==4)&&((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==3))&&!(a4==1)))&&!(a0==1))&&(a12==9)))&&!(a6==1)))&&(a15==1))&&(a5==1))){ + a18 = 0; + a0 = 1; + a4 = 1; + a3 = 5; + a5 = 0; + a12 = 11; + a22 = 0; + a27 = 0; + return 21; + } else if((!(a5==1)&&((a27==1)&&((((a6==1)&&((a12==9)&&(((a20==1)&&(((a15==1)&&((input==5)&&(a4==1)))&&(a0==1)))&&(a3==7))))&&!(a22==1))&&(a18==1))))){ + a6 = 0; + a5 = 1; + a27 = 0; + a15 = 0; + a3 = 6; + a12 = 8; + return 26; + } else if(((a6==1)&&(((a27==1)&&(!(a5==1)&&(((((a20==1)&&(((input==4)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&(a15==1)))&&!(a0==1))&&(a12==10))&&(a3==4))))&&(a4==1)))){ + a12 = 8; + a22 = 1; + a0 = 1; + a18 = 1; + a5 = 1; + return -1; + } else if(((a15==1)&&((a12==8)&&((a0==1)&&((!(a22==1)&&(((a5==1)&&((((!(a18==1)&&(input==1))&&(a6==1))&&(a20==1))&&(a3==7)))&&(a4==1)))&&!(a27==1)))))){ + a27 = 1; + a3 = 4; + a12 = 10; + a6 = 0; + return 21; + } else if(((a5==1)&&((((a6==1)&&(((a27==1)&&((((input==1)&&(((a3==6)&&(!(a18==1)&&(a22==1)))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a18==1)&&(a22==1))))))&&(a12==12))&&!(a15==1)))&&(a20==1)))&&(a0==1))&&!(a4==1)))){ + a18 = 0; + a3 = 8; + a15 = 1; + a12 = 10; + a22 = 0; + return -1; + } else if((!(a0==1)&&(((a12==10)&&((a20==1)&&((a22==1)&&((a3==8)&&((!(a15==1)&&(((a5==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a27==1)))&&!(a6==1))))))&&!(a4==1)))){ + a6 = 1; + a4 = 1; + a18 = 1; + a12 = 8; + a0 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if(((((a12==9)&&((a5==1)&&((a20==1)&&(!(a15==1)&&(!(a4==1)&&(((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==1))&&!(a0==1)))))))&&(a27==1))&&(a6==1))){ + a5 = 0; + a12 = 12; + a18 = 1; + a0 = 1; + a4 = 1; + a22 = 1; + a3 = 8; + return 24; + } else if(((!(a4==1)&&((((((a20==1)&&((a3==5)&&((!(a5==1)&&((a0==1)&&(input==2)))&&(a18==1))))&&(a12==12))&&(a6==1))&&!(a27==1))&&(a22==1)))&&(a15==1))){ + a6 = 0; + a3 = 6; + a4 = 1; + a27 = 1; + a12 = 11; + a5 = 1; + a18 = 0; + return 26; + } else if(((a0==1)&&((!(a27==1)&&((!(a15==1)&&((((a20==1)&&(((((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1))))||(((a22==1)&&!(a18==1))&&(a3==5)))&&(input==2)))&&!(a5==1))&&!(a4==1)))&&!(a6==1)))&&(a12==8)))){ + a18 = 1; + a22 = 0; + a27 = 1; + a15 = 1; + a3 = 4; + a12 = 10; + return -1; + } else if((!(a15==1)&&((!(a27==1)&&(((((((input==3)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||((a3==6)&&((a22==1)&&(a18==1)))))&&(a12==9))&&(a20==1))&&(a6==1))&&(a0==1))&&!(a4==1)))&&(a5==1)))){ + a3 = 6; + a6 = 0; + a18 = 1; + a22 = 0; + a12 = 11; + return 21; + } else if((((((((a12==10)&&((((input==6)&&((((a22==1)&&(a18==1))&&(a3==8))||((((a18==1)&&!(a22==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7)))))&&(a6==1))&&(a0==1)))&&!(a5==1))&&!(a27==1))&&(a20==1))&&!(a15==1))&&(a4==1))){ + a5 = 1; + a3 = 4; + a18 = 1; + a15 = 1; + a27 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if((((a12==9)&&(((a27==1)&&((((a6==1)&&(((input==3)&&((((a18==1)&&(a22==1))&&(a3==6))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))))&&(a20==1)))&&(a4==1))&&(a0==1)))&&!(a5==1)))&&!(a15==1))){ + a18 = 0; + a27 = 0; + a12 = 8; + a3 = 6; + a4 = 0; + a22 = 1; + return 21; + } else if(((a3==4)&&(!(a22==1)&&(!(a15==1)&&((((a0==1)&&((!(a18==1)&&((a12==12)&&((a20==1)&&((input==4)&&(a5==1)))))&&!(a27==1)))&&(a4==1))&&(a6==1)))))){ + a3 = 5; + a6 = 0; + a12 = 10; + a27 = 1; + a22 = 1; + a18 = 1; + return 24; + } else if(((a15==1)&&(!(a4==1)&&(((!(a5==1)&&(((((((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==3))&&!(a0==1))&&!(a6==1))&&(a12==9)))&&(a20==1))&&(a27==1))))){ + a3 = 6; + a0 = 1; + a22 = 0; + a18 = 1; + a12 = 8; + a5 = 1; + return -1; + } else if((((!(a6==1)&&((a5==1)&&((a20==1)&&(!(a4==1)&&((((a12==12)&&((a27==1)&&((input==2)&&(a18==1))))&&(a22==1))&&(a3==7))))))&&!(a15==1))&&(a0==1))){ + a18 = 0; + a22 = 0; + a4 = 1; + a3 = 8; + return -1; + } else if(((a20==1)&&((((((a3==4)&&((((((input==3)&&!(a4==1))&&!(a6==1))&&(a18==1))&&(a12==10))&&!(a27==1)))&&!(a22==1))&&!(a0==1))&&(a15==1))&&!(a5==1)))){ + if((a27==1)){ + a4 = 1; + a3 = 6; + a15 = 0; + a0 = 1; + a5 = 1; + }else{ + a5 = 1; + a3 = 7; + a27 = 1; + a6 = 1; + a22 = 1; + a18 = 0; + } + return -1; + } else if((((((a27==1)&&((((a4==1)&&((a20==1)&&(((input==2)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a15==1))))&&(a0==1))&&(a12==8)))&&(a6==1))&&(a3==7))&&!(a5==1))){ + a3 = 8; + a18 = 1; + a12 = 10; + a22 = 0; + return 21; + } else if(((a15==1)&&((a20==1)&&(!(a4==1)&&((a12==9)&&(((((a0==1)&&((!(a5==1)&&((input==3)&&(a27==1)))&&(a18==1)))&&!(a22==1))&&(a6==1))&&(a3==6))))))){ + a22 = 1; + a3 = 5; + a27 = 0; + a12 = 8; + return 26; + } else if(((a20==1)&&(((!(a6==1)&&((a4==1)&&(((((input==4)&&(((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1))))||((a3==5)&&((a18==1)&&(a22==1)))))&&!(a0==1))&&!(a27==1))&&!(a5==1))))&&(a12==9))&&(a15==1)))){ + a3 = 4; + a18 = 0; + a15 = 0; + a22 = 1; + a12 = 10; + return -1; + } else if((!(a22==1)&&(!(a15==1)&&(((!(a0==1)&&((a20==1)&&(((a3==7)&&((!(a6==1)&&((input==5)&&!(a27==1)))&&(a4==1)))&&(a12==10))))&&(a18==1))&&!(a5==1))))){ + a27 = 1; + a5 = 1; + a6 = 1; + a22 = 1; + a3 = 6; + a18 = 0; + return -1; + } else if((((a20==1)&&(((a3==7)&&((a4==1)&&(!(a15==1)&&(((a27==1)&&((a12==10)&&((input==3)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&!(a5==1)))))&&!(a0==1)))&&!(a6==1))){ + a18 = 0; + a12 = 11; + a0 = 1; + a15 = 1; + a6 = 1; + a22 = 0; + return 21; + } else if((((((((((a3==4)&&((a4==1)&&((a20==1)&&((input==5)&&(a5==1)))))&&!(a27==1))&&(a15==1))&&(a18==1))&&!(a0==1))&&(a12==12))&&(a6==1))&&(a22==1))){ + if((a0==1)){ + a4 = 0; + a3 = 7; + a12 = 11; + a15 = 0; + a6 = 0; + a5 = 0; + }else{ + a6 = 0; + a12 = 11; + a5 = 0; + a27 = 1; + a18 = 0; + } + return 26; + } else if(((a20==1)&&(!(a5==1)&&((a27==1)&&((((a15==1)&&((!(a4==1)&&((((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==1)))&&(a6==1)))&&(a12==12))&&(a0==1)))))){ + a18 = 0; + a0 = 0; + a22 = 0; + a12 = 9; + a3 = 4; + a15 = 0; + return 24; + } else if(((a6==1)&&(((a20==1)&&((((((a3==7)&&((a4==1)&&((input==6)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))))&&!(a5==1))&&(a0==1))&&(a15==1))&&(a27==1)))&&(a12==8)))){ + a6 = 0; + a15 = 0; + a18 = 1; + a3 = 8; + a22 = 0; + a12 = 9; + return 24; + } else if(((a0==1)&&((a12==8)&&(((a6==1)&&(((a4==1)&&((a20==1)&&(!(a15==1)&&((input==2)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6)))))))&&!(a27==1)))&&(a5==1))))){ + a15 = 1; + a18 = 1; + a5 = 0; + a4 = 0; + a12 = 10; + a27 = 1; + a22 = 1; + a3 = 6; + a6 = 0; + return 21; + } else if((((a12==12)&&(((a20==1)&&((a3==7)&&((a4==1)&&(!(a27==1)&&(((a0==1)&&(((input==5)&&!(a18==1))&&!(a22==1)))&&!(a6==1))))))&&(a15==1)))&&!(a5==1))){ + a22 = 1; + a15 = 0; + a3 = 8; + a5 = 1; + a27 = 1; + a12 = 11; + a6 = 1; + return 21; + } else if(((a12==9)&&((a0==1)&&(((a15==1)&&(!(a5==1)&&(((a20==1)&&(((input==4)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1)))))&&(a6==1)))&&(a4==1))))&&!(a27==1))))){ + a12 = 8; + a27 = 1; + a5 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((a12==8)&&(!(a15==1)&&((a4==1)&&((a20==1)&&((((((a27==1)&&((a5==1)&&((a0==1)&&(input==2))))&&!(a18==1))&&!(a6==1))&&(a3==7))&&!(a22==1))))))){ + a18 = 1; + a12 = 9; + a6 = 1; + a15 = 1; + a3 = 4; + return 26; + } else if(((!(a15==1)&&((a3==6)&&((a18==1)&&(((a27==1)&&(((!(a0==1)&&(((input==1)&&(a5==1))&&!(a4==1)))&&(a12==12))&&(a20==1)))&&!(a6==1)))))&&(a22==1))){ + a0 = 1; + a18 = 0; + a3 = 8; + a4 = 1; + a22 = 0; + return -1; + } else if((((a0==1)&&(!(a27==1)&&((a18==1)&&((a4==1)&&((a5==1)&&(((!(a22==1)&&(!(a6==1)&&((input==2)&&!(a15==1))))&&(a20==1))&&(a3==6)))))))&&(a12==10))){ + a27 = 1; + return -1; + } else if((((((((a12==8)&&((((input==3)&&((((!(a22==1)&&(a18==1))&&(a3==7))||((a3==7)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==8))))&&!(a5==1))&&(a15==1)))&&(a20==1))&&!(a4==1))&&(a0==1))&&!(a27==1))&&!(a6==1))){ + a18 = 1; + a3 = 5; + a12 = 12; + a15 = 0; + a27 = 1; + a5 = 1; + a4 = 1; + a22 = 0; + return -1; + } else if(((a27==1)&&(!(a0==1)&&((a20==1)&&((a12==8)&&((input==5)&&((((a3==4)&&((a4==1)&&((a15==1)&&(((a18==1)&&(a22==1))&&!(a5==1)))))&&(a6==1))||(((((!(a15==1)&&((a5==1)&&(!(a22==1)&&(a18==1))))&&!(a4==1))&&(a3==8))&&!(a6==1))||(((a3==8)&&((((!(a22==1)&&!(a18==1))&&(a5==1))&&!(a15==1))&&!(a4==1)))&&!(a6==1)))))))))){ + a12 = 12; + a4 = 0; + a6 = 1; + a5 = 0; + a3 = 7; + a22 = 1; + a18 = 0; + a0 = 1; + a15 = 1; + return 24; + } else if(((((a6==1)&&(!(a22==1)&&((!(a27==1)&&((a0==1)&&(((a3==6)&&(!(a15==1)&&((input==4)&&(a12==11))))&&(a4==1))))&&!(a18==1))))&&!(a5==1))&&(a20==1))){ + a5 = 1; + a3 = 8; + a18 = 1; + a22 = 1; + a6 = 0; + a12 = 8; + return -1; + } else if(((a6==1)&&(((a20==1)&&((((!(a27==1)&&(!(a5==1)&&(((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==7)))||(((a22==1)&&!(a18==1))&&(a3==7)))&&(input==6))))&&!(a0==1))&&!(a4==1))&&(a12==11)))&&!(a15==1)))){ + a15 = 1; + a0 = 1; + a27 = 1; + a3 = 7; + a12 = 8; + a4 = 1; + a18 = 1; + a22 = 1; + a5 = 1; + return -1; + } else if(((((a20==1)&&((((((a3==8)&&(((a12==10)&&(!(a15==1)&&((!(a22==1)&&(a18==1))&&!(a5==1))))&&!(a4==1)))&&!(a6==1))||(((a3==8)&&(((a12==10)&&(((!(a22==1)&&!(a18==1))&&!(a5==1))&&!(a15==1)))&&!(a4==1)))&&!(a6==1)))||((a6==1)&&(((a4==1)&&((a12==11)&&((a15==1)&&((a5==1)&&((a22==1)&&(a18==1))))))&&(a3==4))))&&(input==4)))&&!(a0==1))&&!(a27==1))){ + a22 = 0; + a15 = 0; + a4 = 0; + a3 = 6; + a5 = 1; + a18 = 0; + a12 = 10; + a6 = 1; + a27 = 1; + return 26; + } else if((((a27==1)&&((a12==9)&&((a20==1)&&(((a0==1)&&(!(a4==1)&&((((((a22==1)&&(a18==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==5))))&&(input==5))&&!(a5==1))))&&(a15==1)))))&&!(a6==1))){ + a3 = 8; + a22 = 0; + a12 = 8; + a18 = 1; + a27 = 0; + return 21; + } else if((((!(a15==1)&&((a6==1)&&((a27==1)&&((((a5==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==2))&&(a3==5)))&&(a12==12))&&!(a0==1)))))&&(a4==1))&&(a20==1))){ + a12 = 8; + a0 = 1; + a18 = 1; + a15 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((a12==9)&&(((!(a0==1)&&((a6==1)&&(((a20==1)&&((((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a5==1))&&(a3==7)))&&!(a4==1))))&&(a27==1))&&(a15==1)))){ + a22 = 1; + a3 = 8; + a0 = 1; + a12 = 11; + a15 = 0; + a4 = 1; + a6 = 0; + a18 = 0; + return 21; + } else if(((a27==1)&&((!(a4==1)&&(((a12==10)&&(((a20==1)&&(((input==2)&&(((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a22==1)&&!(a18==1))))||((a3==8)&&((a22==1)&&(a18==1)))))&&(a0==1)))&&(a15==1)))&&!(a5==1)))&&!(a6==1)))){ + a4 = 1; + a22 = 0; + a18 = 0; + a3 = 4; + return -1; + } else if(((a5==1)&&(!(a27==1)&&((((((a6==1)&&(((input==2)&&(((a3==6)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1))))))&&!(a4==1)))&&(a0==1))&&(a20==1))&&!(a15==1))&&(a12==10))))){ + a27 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + a12 = 8; + a15 = 1; + a4 = 1; + return -1; + } else if(((a3==8)&&(((a15==1)&&(((a12==11)&&(((((a6==1)&&(((a0==1)&&(input==2))&&!(a22==1)))&&(a20==1))&&(a5==1))&&!(a27==1)))&&!(a4==1)))&&(a18==1)))){ + a3 = 7; + a22 = 1; + a12 = 9; + a18 = 0; + a6 = 0; + return -1; + } else if(((!(a6==1)&&(((a4==1)&&((!(a27==1)&&((a20==1)&&(!(a22==1)&&((a5==1)&&((a12==10)&&((a15==1)&&(input==2)))))))&&(a0==1)))&&!(a18==1)))&&(a3==4))){ + a3 = 7; + a18 = 1; + a27 = 1; + a5 = 0; + a22 = 1; + return -1; + } else if(((a6==1)&&((!(a15==1)&&(!(a5==1)&&(!(a4==1)&&((!(a27==1)&&((a0==1)&&((input==1)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))||((a3==5)&&((a22==1)&&!(a18==1)))))))&&(a20==1)))))&&(a12==12)))){ + a27 = 1; + a3 = 4; + a15 = 1; + a22 = 0; + a5 = 1; + a12 = 10; + a18 = 0; + return -1; + } else if((!(a18==1)&&((a4==1)&&(((((((!(a5==1)&&((a3==5)&&((a12==12)&&(input==4))))&&(a27==1))&&!(a6==1))&&(a15==1))&&!(a0==1))&&!(a22==1))&&(a20==1))))){ + if((a6==1)){ + a3 = 4; + a0 = 1; + a6 = 1; + a4 = 0; + a18 = 1; + a15 = 0; + a12 = 11; + a27 = 0; + }else{ + a3 = 7; + a5 = 1; + a0 = 1; + a6 = 1; + a12 = 8; + } + return -1; + } else if(((((((((((((a3==7)&&(input==3))&&(a6==1))&&(a27==1))&&!(a5==1))&&(a12==12))&&(a20==1))&&(a22==1))&&(a15==1))&&!(a0==1))&&(a18==1))&&(a4==1))){ + if((a3==7)){ + a3 = 4; + a22 = 0; + a27 = 0; + a12 = 9; + a0 = 1; + }else{ + a12 = 8; + a5 = 1; + a0 = 1; + a6 = 0; + a18 = 0; + } + return 21; + } else if(((a3==7)&&(((!(a27==1)&&((((a12==11)&&((((input==4)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&!(a0==1))&&!(a4==1)))&&(a15==1))&&(a20==1)))&&!(a5==1))&&!(a6==1)))){ + if((a4==1)){ + a0 = 1; + a22 = 0; + a3 = 5; + a18 = 0; + a4 = 1; + a12 = 10; + }else{ + a18 = 1; + a12 = 8; + a6 = 1; + a5 = 1; + a27 = 1; + a0 = 1; + a4 = 1; + a22 = 1; + } + return -1; + } else if((((a22==1)&&((a6==1)&&(((((((((a4==1)&&(input==6))&&(a3==8))&&!(a18==1))&&!(a27==1))&&(a12==10))&&(a20==1))&&!(a15==1))&&!(a5==1))))&&(a0==1))){ + a4 = 0; + a27 = 1; + a6 = 0; + a5 = 1; + return 26; + } else if(((((a12==8)&&((a3==7)&&((a4==1)&&(((!(a6==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==1))&&(a27==1)))&&(a15==1))&&(a5==1)))))&&!(a0==1))&&(a20==1))){ + a6 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a0 = 1; + return -1; + } else if(((((a3==4)&&((((a4==1)&&(!(a15==1)&&((((!(a18==1)&&(input==1))&&!(a5==1))&&(a20==1))&&!(a22==1))))&&!(a6==1))&&!(a27==1)))&&(a0==1))&&(a12==9))){ + a27 = 1; + a12 = 12; + a22 = 1; + a5 = 1; + a6 = 1; + a15 = 1; + a4 = 0; + return 26; + } else if((!(a0==1)&&(!(a4==1)&&((((a15==1)&&((!(a6==1)&&(((((a3==7)&&(!(a18==1)&&(a22==1)))||(((!(a18==1)&&!(a22==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7))))&&(input==4))&&!(a27==1)))&&(a20==1)))&&(a5==1))&&(a12==9))))){ + a5 = 0; + a22 = 0; + a6 = 1; + a4 = 1; + a18 = 0; + a12 = 8; + a0 = 1; + a3 = 6; + return -1; + } else if(((((a5==1)&&((a12==8)&&((((!(a6==1)&&((input==4)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))))&&!(a4==1))&&!(a0==1))&&(a15==1))))&&(a27==1))&&(a20==1))){ + a18 = 1; + a15 = 0; + a6 = 1; + a22 = 0; + a5 = 0; + a0 = 1; + a4 = 1; + a3 = 7; + a12 = 11; + return 24; + } else if((!(a15==1)&&(!(a5==1)&&(((a12==11)&&(((a27==1)&&((a0==1)&&(((!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4)))||(((((a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))))&&(input==6))))&&(a4==1)))&&(a20==1))))){ + a18 = 1; + a5 = 1; + a6 = 1; + a4 = 0; + a22 = 1; + a15 = 1; + a3 = 7; + return -1; + } else if(((a20==1)&&((!(a6==1)&&(!(a4==1)&&(((a12==8)&&((a22==1)&&(((a27==1)&&((((a18==1)||!(a18==1))&&(input==3))&&!(a0==1)))&&(a5==1))))&&(a3==5))))&&!(a15==1)))){ + a18 = 0; + a12 = 12; + a22 = 0; + a4 = 1; + a0 = 1; + return -1; + } else if(((((a20==1)&&(!(a27==1)&&((((a3==5)&&((!(a18==1)&&(((input==5)&&!(a0==1))&&!(a15==1)))&&(a12==11)))&&(a6==1))&&!(a4==1))))&&!(a5==1))&&!(a22==1))){ + a22 = 1; + a6 = 0; + a18 = 1; + a3 = 6; + a5 = 1; + a12 = 9; + a4 = 1; + a15 = 1; + return -1; + } else if((((a0==1)&&((!(a18==1)&&(((a20==1)&&((a22==1)&&(((((a27==1)&&(input==3))&&(a3==4))&&(a5==1))&&(a6==1))))&&!(a15==1)))&&!(a4==1)))&&(a12==12))){ + a4 = 1; + a27 = 0; + a18 = 1; + a3 = 6; + a22 = 0; + return 21; + } else if((((!(a5==1)&&((a15==1)&&(!(a27==1)&&(((a0==1)&&(((a6==1)&&((a3==8)&&((a20==1)&&(input==3))))&&!(a4==1)))&&(a12==10)))))&&!(a18==1))&&(a22==1))){ + a5 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + a27 = 1; + a4 = 1; + return -1; + } else if((((a4==1)&&((a12==11)&&(((a18==1)&&((((a20==1)&&((((input==4)&&(a15==1))&&!(a5==1))&&!(a22==1)))&&!(a0==1))&&!(a27==1)))&&(a3==8))))&&(a6==1))){ + a18 = 0; + a3 = 7; + a12 = 8; + a6 = 0; + a27 = 1; + a0 = 1; + a5 = 1; + return -1; + } else if((((a0==1)&&(!(a27==1)&&(((((input==1)&&((!(a6==1)&&((a3==8)&&((a4==1)&&(!(a22==1)&&!(a18==1)))))||((a6==1)&&((!(a4==1)&&((a22==1)&&(a18==1)))&&(a3==4)))))&&!(a15==1))&&(a12==10))&&(a5==1))))&&(a20==1))){ + a6 = 1; + a15 = 1; + a3 = 4; + a27 = 1; + a18 = 1; + a4 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if((((((a22==1)&&(((a12==9)&&(((!(a4==1)&&(!(a27==1)&&((a20==1)&&(input==1))))&&!(a18==1))&&(a5==1)))&&(a15==1)))&&(a6==1))&&(a3==6))&&(a0==1))){ + a27 = 1; + a4 = 1; + a22 = 0; + a12 = 11; + a3 = 7; + a18 = 1; + return 26; + } else if(((a0==1)&&((((((a15==1)&&((((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==1))&&!(a5==1))&&!(a4==1))&&(a20==1)))&&(a12==8))&&(a27==1))&&(a6==1))&&(a3==6)))){ + a3 = 5; + a22 = 1; + a15 = 0; + a18 = 0; + a4 = 1; + a12 = 10; + a5 = 1; + return 21; + } else if(((((a5==1)&&((a3==7)&&(!(a22==1)&&(((!(a6==1)&&((a12==9)&&((a4==1)&&((input==1)&&(a0==1)))))&&(a27==1))&&(a20==1)))))&&(a18==1))&&!(a15==1))){ + a4 = 0; + a12 = 11; + a18 = 0; + a3 = 5; + a6 = 1; + a22 = 1; + return 24; + } else if(((a0==1)&&((a3==8)&&((a6==1)&&((!(a5==1)&&(((a20==1)&&(!(a15==1)&&(((a22==1)&&((input==1)&&(a18==1)))&&(a12==8))))&&(a4==1)))&&!(a27==1)))))){ + a22 = 0; + a12 = 12; + a18 = 0; + a27 = 1; + a5 = 1; + a4 = 0; + return 26; + } else if((((a12==9)&&(((a3==6)&&(!(a4==1)&&(((!(a0==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==1))&&!(a5==1)))&&(a20==1))&&(a15==1))))&&(a6==1)))&&!(a27==1))){ + a6 = 0; + a5 = 1; + a4 = 1; + a3 = 8; + a18 = 0; + a0 = 1; + a22 = 1; + a15 = 0; + return 21; + } else if(((a27==1)&&((!(a22==1)&&((((a18==1)&&((a12==10)&&(!(a4==1)&&((a3==4)&&((!(a5==1)&&(input==4))&&(a20==1))))))&&(a0==1))&&!(a6==1)))&&!(a15==1)))){ + a12 = 8; + a15 = 1; + a4 = 1; + a5 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if(((a6==1)&&((a22==1)&&(((a5==1)&&(((((a20==1)&&(!(a15==1)&&((a3==5)&&(((a18==1)||!(a18==1))&&(input==2)))))&&(a12==10))&&!(a4==1))&&!(a27==1)))&&(a0==1))))){ + a3 = 4; + a27 = 1; + a15 = 1; + a18 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if((!(a15==1)&&((a3==5)&&(((a18==1)&&((a27==1)&&((!(a22==1)&&(((a6==1)&&((a4==1)&&((input==5)&&(a20==1))))&&(a12==8)))&&!(a0==1))))&&(a5==1))))){ + a3 = 4; + a6 = 0; + a12 = 12; + a27 = 0; + a22 = 1; + a0 = 1; + return 21; + } else if((((a4==1)&&(((((!(a27==1)&&(((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==4))&&(a20==1)))&&!(a5==1))&&(a12==8))&&(a6==1))&&!(a0==1)))&&!(a15==1))){ + a4 = 0; + a15 = 1; + a0 = 1; + a5 = 1; + a3 = 8; + a27 = 1; + a22 = 0; + a18 = 0; + return 26; + } else if(((((((a5==1)&&((((!(a0==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==6)))&&(a15==1))&&(a3==4))&&(a6==1)))&&(a20==1))&&!(a27==1))&&(a12==11))&&!(a4==1))){ + if((a4==1)){ + a0 = 1; + a5 = 0; + a18 = 0; + a27 = 1; + a22 = 1; + a3 = 7; + }else{ + a22 = 1; + a3 = 6; + a18 = 1; + a0 = 1; + a27 = 1; + a6 = 0; + a4 = 1; + a12 = 8; + } + return -1; + } else if((((a12==10)&&(!(a15==1)&&((a6==1)&&(((((a5==1)&&((((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==5)))&&!(a27==1))&&(a20==1))&&!(a4==1)))))&&(a0==1))){ + a3 = 7; + a6 = 0; + a4 = 1; + a27 = 1; + a12 = 12; + a22 = 1; + a15 = 1; + a18 = 1; + a5 = 0; + return -1; + } else if(((!(a5==1)&&((a12==8)&&(!(a0==1)&&((a27==1)&&((a20==1)&&(((a6==1)&&((input==3)&&(((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))))&&!(a4==1)))))))&&!(a15==1))){ + a15 = 1; + a22 = 0; + a3 = 4; + a5 = 1; + a6 = 0; + a0 = 1; + a18 = 0; + a4 = 1; + a12 = 11; + return 26; + } else if((((((a3==8)&&(((((a27==1)&&(!(a6==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==3))))&&!(a0==1))&&!(a5==1))&&(a12==9)))&&(a15==1))&&(a20==1))&&!(a4==1))){ + a3 = 4; + a22 = 1; + a27 = 0; + a0 = 1; + a18 = 0; + a15 = 0; + a5 = 1; + a4 = 1; + a12 = 11; + a6 = 1; + return 24; + } else if(((a27==1)&&((!(a22==1)&&((a5==1)&&((a3==6)&&(((a12==12)&&(!(a15==1)&&((((a4==1)&&(input==1))&&(a20==1))&&!(a18==1))))&&!(a6==1)))))&&(a0==1)))){ + a3 = 8; + a15 = 1; + a4 = 0; + a27 = 0; + return 24; + } else if(((a20==1)&&(((a6==1)&&(((((a12==9)&&(((a3==6)&&((input==3)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))&&!(a27==1)))&&!(a5==1))&&(a0==1))&&(a4==1)))&&(a15==1)))){ + a18 = 1; + a22 = 1; + a3 = 8; + a27 = 1; + a12 = 12; + return 21; + } else if(((a5==1)&&((a4==1)&&(((a20==1)&&((((a12==12)&&((a22==1)&&(!(a18==1)&&((a3==7)&&((input==5)&&!(a0==1))))))&&!(a6==1))&&(a27==1)))&&(a15==1))))){ + a18 = 1; + a0 = 1; + a3 = 4; + a6 = 1; + a12 = 8; + return -1; + } else if(((a27==1)&&((a6==1)&&((a5==1)&&((((a0==1)&&((a12==10)&&((a15==1)&&((input==1)&&((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7)))||((a3==7)&&(!(a18==1)&&(a22==1))))))))&&!(a4==1))&&(a20==1)))))){ + a4 = 1; + a22 = 0; + a18 = 0; + a3 = 7; + return -1; + } else if((!(a6==1)&&(((a4==1)&&((a12==8)&&(((a20==1)&&(!(a15==1)&&(((a3==8)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==4)))&&(a27==1))))&&(a0==1))))&&(a5==1)))){ + a12 = 9; + a18 = 1; + a22 = 1; + a6 = 1; + a15 = 1; + a3 = 7; + return 21; + } else if(((a22==1)&&(((a3==7)&&((a5==1)&&((a15==1)&&(((a4==1)&&((a12==9)&&((a20==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&!(a27==1)))))&&(a0==1)))))&&(a6==1)))){ + a12 = 8; + a27 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((((((((a20==1)&&((a5==1)&&((((a22==1)&&((input==3)&&(a27==1)))&&!(a4==1))&&!(a0==1))))&&!(a6==1))&&(a15==1))&&(a12==11))&&(a3==5))&&(a18==1))){ + a12 = 10; + a18 = 0; + a5 = 0; + a0 = 1; + return 26; + } else if(((((a22==1)&&((a5==1)&&(((a12==9)&&(!(a27==1)&&((((!(a6==1)&&(input==6))&&(a3==8))&&(a20==1))&&!(a0==1))))&&!(a15==1))))&&(a18==1))&&!(a4==1))){ + a15 = 1; + a12 = 11; + return 26; + } return calculate_output33(input); + } + + int calculate_output33(int input) { + if((((a5==1)&&((((((!(a4==1)&&(!(a27==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==6))))&&(a12==11))&&(a20==1))&&(a3==6))&&!(a6==1))&&!(a0==1)))&&!(a15==1))){ + a0 = 1; + a3 = 7; + a22 = 0; + a5 = 0; + a12 = 10; + a18 = 0; + return -1; + } else if((!(a0==1)&&((((a4==1)&&((((!(a27==1)&&(!(a5==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==5))))&&(a3==5))&&!(a6==1))&&(a20==1)))&&(a12==8))&&(a15==1)))){ + a4 = 0; + a27 = 1; + a22 = 1; + a6 = 1; + a18 = 0; + a5 = 1; + a0 = 1; + a3 = 6; + return -1; + } else if((((a3==6)&&(!(a27==1)&&(((a6==1)&&((((a12==9)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==1))&&!(a0==1)))&&!(a5==1))&&(a20==1)))&&(a4==1))))&&(a15==1))){ + a3 = 5; + a18 = 1; + a27 = 1; + a12 = 8; + a0 = 1; + a22 = 1; + a5 = 1; + a4 = 0; + return -1; + } else if(((((a3==4)&&((((a27==1)&&(((((input==3)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a6==1))&&(a15==1))&&(a5==1)))&&(a20==1))&&(a12==11)))&&!(a0==1))&&!(a4==1))){ + a15 = 0; + a6 = 0; + a5 = 0; + a12 = 10; + a4 = 1; + a3 = 6; + a0 = 1; + a18 = 0; + a22 = 0; + return 21; + } else if((!(a5==1)&&((a27==1)&&((a20==1)&&((a6==1)&&(((a0==1)&&((a4==1)&&(((input==4)&&((((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a18==1)&&!(a22==1))))||((a3==6)&&((a18==1)&&(a22==1)))))&&(a15==1))))&&(a12==10))))))){ + a18 = 0; + a12 = 12; + a22 = 1; + a3 = 4; + return 26; + } else if(((a4==1)&&(((!(a18==1)&&((a12==8)&&((a20==1)&&((((a27==1)&&(((input==5)&&(a15==1))&&(a3==8)))&&!(a0==1))&&!(a5==1)))))&&!(a6==1))&&!(a22==1)))){ + a0 = 1; + a12 = 11; + a3 = 5; + a18 = 1; + a5 = 1; + a6 = 1; + return 21; + } else if(((a20==1)&&((((((!(a6==1)&&((((input==2)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&(a4==1))&&!(a27==1)))&&(a0==1))&&!(a5==1))&&!(a15==1))&&(a3==5))&&(a12==9)))){ + a3 = 4; + a5 = 1; + a18 = 1; + a27 = 1; + a12 = 8; + a22 = 1; + a6 = 1; + a15 = 1; + return -1; + } else if((!(a4==1)&&(!(a0==1)&&((a20==1)&&(((a3==8)&&(((a27==1)&&((a12==10)&&(((input==4)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a15==1))))&&!(a5==1)))&&(a6==1)))))){ + a15 = 1; + a4 = 1; + a3 = 4; + a5 = 1; + a0 = 1; + a12 = 8; + a22 = 1; + a18 = 1; + return -1; + } else if(((a27==1)&&((a15==1)&&((a20==1)&&(((a12==10)&&(((!(a4==1)&&((a5==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2))))&&(a0==1))&&(a3==5)))&&!(a6==1)))))){ + a3 = 4; + a22 = 1; + a18 = 1; + a4 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if((((a27==1)&&((((((((((input==1)&&((a18==1)||!(a18==1)))&&(a5==1))&&(a6==1))&&(a3==7))&&(a20==1))&&(a15==1))&&(a22==1))&&(a12==12))&&(a0==1)))&&!(a4==1))){ + a12 = 11; + a6 = 0; + a18 = 0; + a15 = 0; + a5 = 0; + a3 = 8; + return -1; + } else if((!(a15==1)&&((a5==1)&&((a27==1)&&(((!(a4==1)&&((a6==1)&&(((((a3==6)&&((a22==1)&&(a18==1)))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==5))))&&(input==3))&&!(a0==1))))&&(a20==1))&&(a12==8)))))){ + a22 = 0; + a3 = 5; + a18 = 0; + a4 = 1; + a0 = 1; + a12 = 11; + return -1; + } else if(((a3==6)&&((a20==1)&&((a18==1)&&((a12==12)&&((a22==1)&&((a5==1)&&(!(a4==1)&&((((a0==1)&&(!(a27==1)&&(input==6)))&&(a6==1))&&(a15==1)))))))))){ + a5 = 0; + a27 = 1; + a22 = 0; + a3 = 4; + a12 = 11; + a4 = 1; + return 26; + } else if(((a15==1)&&(!(a18==1)&&(((((!(a22==1)&&(((((input==1)&&(a3==6))&&!(a27==1))&&(a12==10))&&(a6==1)))&&(a20==1))&&!(a0==1))&&(a5==1))&&!(a4==1))))){ + a12 = 9; + a6 = 0; + a22 = 1; + a5 = 0; + a15 = 0; + return -1; + } else if(((((((!(a22==1)&&(!(a0==1)&&((!(a18==1)&&((a3==5)&&((a4==1)&&(input==5))))&&!(a5==1))))&&!(a27==1))&&(a15==1))&&(a6==1))&&(a12==11))&&(a20==1))){ + if((a3==6)){ + a22 = 1; + a12 = 8; + a27 = 1; + a5 = 1; + a0 = 1; + a18 = 1; + a6 = 0; + }else{ + a5 = 1; + a0 = 1; + a18 = 1; + a22 = 1; + a12 = 10; + } + return 21; + } else if((((((((!(a0==1)&&(((((input==6)&&(a4==1))&&!(a15==1))&&(a6==1))&&!(a22==1)))&&(a3==6))&&(a12==10))&&!(a18==1))&&(a5==1))&&(a20==1))&&!(a27==1))){ + if((a3==6)){ + a12 = 12; + a0 = 1; + a3 = 8; + a6 = 0; + }else{ + a3 = 8; + a12 = 11; + a5 = 0; + } + return -1; + } else if((!(a6==1)&&(((a12==12)&&(((((!(a4==1)&&(((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1))))||((a3==8)&&((a22==1)&&!(a18==1))))&&(input==2)))&&(a5==1))&&(a0==1))&&(a20==1))&&(a15==1)))&&(a27==1)))){ + a6 = 1; + a18 = 0; + a12 = 10; + a5 = 0; + a22 = 0; + a3 = 7; + return -1; + } else if((((((((a20==1)&&(((((input==2)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a0==1))&&(a15==1))&&(a12==10)))&&(a3==7))&&(a5==1))&&!(a27==1))&&!(a6==1))&&!(a4==1))){ + if((a18==1)){ + a3 = 5; + a6 = 1; + a18 = 1; + a12 = 8; + a22 = 1; + a4 = 1; + a0 = 1; + a27 = 1; + }else{ + a12 = 8; + a6 = 1; + a22 = 1; + a0 = 1; + a27 = 1; + a18 = 0; + a3 = 4; + } + return -1; + } else if(((((a20==1)&&((a3==6)&&(!(a0==1)&&((!(a15==1)&&((((input==4)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&(a27==1))&&!(a5==1)))&&!(a4==1)))))&&(a12==12))&&!(a6==1))){ + a4 = 1; + a18 = 0; + a12 = 8; + a22 = 1; + a0 = 1; + a5 = 1; + a3 = 7; + a15 = 1; + return 21; + } else if((((a6==1)&&(((a3==4)&&(!(a5==1)&&(((a0==1)&&(!(a27==1)&&(((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==3))&&(a20==1))))&&(a12==8))))&&!(a4==1)))&&!(a15==1))){ + a22 = 1; + a0 = 0; + a18 = 1; + a6 = 0; + a27 = 1; + a12 = 9; + a15 = 1; + a3 = 5; + return -1; + } else if((((!(a5==1)&&(((a22==1)&&((a6==1)&&(((a0==1)&&(((a15==1)&&((input==1)&&!(a18==1)))&&(a20==1)))&&(a12==12))))&&(a27==1)))&&(a3==4))&&!(a4==1))){ + a4 = 1; + a5 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if((((((((((((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1))))||((a3==7)&&(!(a18==1)&&(a22==1))))&&(input==6))&&!(a0==1))&&(a20==1))&&(a27==1))&&(a15==1))&&(a6==1))&&!(a5==1))&&(a12==10))&&!(a4==1))){ + a12 = 9; + a15 = 0; + a18 = 0; + a22 = 1; + a6 = 0; + a27 = 0; + a0 = 1; + a3 = 6; + return 26; + } else if(((a15==1)&&(((a4==1)&&((((!(a27==1)&&(!(a6==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2))&&(a20==1))))&&(a5==1))&&(a0==1))&&(a12==12)))&&(a3==8)))){ + a27 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + a6 = 1; + a18 = 1; + return -1; + } else if(((a4==1)&&((a0==1)&&(!(a15==1)&&(((((((a12==11)&&((input==5)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))&&!(a6==1))&&(a3==8))&&(a20==1))&&(a27==1))&&!(a5==1)))))){ + a27 = 0; + a3 = 5; + a22 = 0; + a18 = 0; + return 26; + } else if(((((!(a27==1)&&((((((((input==1)&&!(a22==1))&&(a20==1))&&!(a18==1))&&(a12==8))&&!(a5==1))&&!(a6==1))&&!(a15==1)))&&!(a4==1))&&(a3==7))&&(a0==1))){ + a5 = 1; + a6 = 1; + a3 = 8; + a12 = 11; + a27 = 1; + a15 = 1; + return -1; + } else if((((a4==1)&&((a6==1)&&(!(a15==1)&&((((a20==1)&&(((((input==5)&&(a18==1))&&(a12==12))&&(a22==1))&&(a0==1)))&&!(a5==1))&&(a3==8)))))&&(a27==1))){ + a12 = 10; + a18 = 0; + a15 = 1; + a22 = 0; + a6 = 0; + a3 = 4; + a5 = 1; + return 26; + } else if((!(a22==1)&&(((a5==1)&&(((a15==1)&&(((!(a6==1)&&(((a0==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a3==8)))&&(a20==1))&&(a12==11)))&&(a27==1)))&&(a4==1)))){ + a6 = 1; + a18 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((((((a4==1)&&(((((((input==3)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a20==1))&&(a3==5))&&(a0==1))&&(a6==1))&&(a15==1)))&&!(a27==1))&&!(a5==1))&&(a12==12))){ + if((a12==12)){ + a5 = 1; + a22 = 0; + a18 = 1; + a15 = 0; + a12 = 10; + a0 = 0; + a27 = 1; + a3 = 7; + }else{ + a22 = 1; + a0 = 0; + a18 = 1; + a12 = 11; + a5 = 1; + a6 = 0; + a27 = 1; + a3 = 8; + } + return 24; + } else if((((a12==12)&&(((((a22==1)&&((a4==1)&&(((a0==1)&&((a20==1)&&((input==4)&&((a18==1)||!(a18==1)))))&&(a27==1))))&&!(a6==1))&&(a3==7))&&!(a5==1)))&&!(a15==1))){ + a12 = 8; + a18 = 1; + a15 = 1; + a6 = 1; + a5 = 1; + a3 = 4; + return -1; + } else if((((!(a4==1)&&((a3==6)&&((!(a5==1)&&(((a20==1)&&(!(a15==1)&&(!(a6==1)&&(((a18==1)||!(a18==1))&&(input==6)))))&&(a12==12)))&&!(a22==1))))&&(a0==1))&&(a27==1))){ + a6 = 1; + a5 = 1; + a22 = 1; + a3 = 4; + a4 = 1; + a12 = 8; + a18 = 1; + a15 = 1; + return -1; + } else if(((a3==5)&&((a20==1)&&(((!(a27==1)&&(((!(a0==1)&&((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==6))&&!(a15==1)))&&!(a5==1))&&!(a6==1)))&&!(a4==1))&&(a12==8))))){ + if((a22==1)){ + a5 = 1; + a15 = 1; + a0 = 1; + a4 = 1; + a22 = 0; + a18 = 0; + a3 = 7; + a27 = 1; + }else{ + a18 = 1; + a4 = 1; + a3 = 7; + a12 = 12; + a0 = 1; + a6 = 1; + a22 = 1; + } + return 26; + } else if((!(a27==1)&&(((a12==11)&&(((((a5==1)&&(((((a3==7)&&(input==1))&&(a20==1))&&!(a15==1))&&!(a18==1)))&&!(a22==1))&&(a4==1))&&!(a0==1)))&&!(a6==1)))){ + if((a5==1)){ + a0 = 1; + a12 = 8; + a22 = 1; + a27 = 1; + a15 = 1; + a3 = 4; + }else{ + a27 = 1; + a12 = 8; + a0 = 1; + a15 = 1; + a3 = 8; + } + return 21; + } else if(((a27==1)&&(((a22==1)&&((a20==1)&&((((!(a6==1)&&((((input==1)&&((a18==1)||!(a18==1)))&&(a3==5))&&(a12==8)))&&!(a15==1))&&!(a5==1))&&(a0==1))))&&!(a4==1)))){ + a18 = 1; + a6 = 1; + a3 = 4; + a15 = 1; + a5 = 1; + a4 = 1; + return -1; + } else if(((a0==1)&&(!(a4==1)&&((((a5==1)&&(((((input==1)&&(((a3==7)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))))&&(a20==1))&&!(a27==1))&&!(a15==1)))&&(a6==1))&&(a12==11))))){ + a18 = 0; + a15 = 1; + a3 = 5; + a27 = 1; + a22 = 0; + return -1; + } else if((!(a6==1)&&((a20==1)&&(((((!(a27==1)&&((a12==10)&&(!(a5==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==5)))))&&(a15==1))&&(a0==1))&&(a3==8))&&(a4==1))))){ + a3 = 7; + a18 = 0; + a5 = 1; + a22 = 0; + a27 = 1; + a4 = 0; + a15 = 0; + a6 = 1; + return 26; + } else if(((a20==1)&&((((!(a0==1)&&(((!(a5==1)&&((((input==2)&&!(a22==1))&&!(a27==1))&&(a15==1)))&&!(a4==1))&&(a3==4)))&&(a12==10))&&(a18==1))&&!(a6==1)))){ + if((a12==8)){ + a5 = 1; + a0 = 1; + a3 = 5; + a12 = 8; + a6 = 1; + a27 = 1; + }else{ + a22 = 1; + a18 = 0; + a0 = 1; + a4 = 1; + a27 = 1; + a12 = 8; + a15 = 0; + } + return -1; + } else if((((((a6==1)&&(!(a22==1)&&((((a12==9)&&(!(a27==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&(a3==8))))&&!(a15==1))&&(a5==1))))&&!(a4==1))&&(a0==1))&&(a20==1))){ + a22 = 1; + a18 = 1; + a5 = 0; + a12 = 11; + a27 = 1; + a6 = 0; + a4 = 1; + return 26; + } else if(((a6==1)&&(((a12==11)&&((!(a0==1)&&((((a3==4)&&(((input==5)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&(a20==1)))&&(a27==1))&&!(a5==1)))&&!(a15==1)))&&!(a4==1)))){ + a22 = 0; + a18 = 0; + a5 = 1; + a0 = 1; + return 24; + } else if(((((a0==1)&&((((((a12==12)&&((!(a22==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a5==1)))&&!(a4==1))&&(a20==1))&&!(a6==1))&&(a27==1)))&&(a3==8))&&(a15==1))){ + if((a22==1)){ + a5 = 0; + a18 = 0; + a6 = 1; + a3 = 6; + a12 = 11; + a0 = 0; + }else{ + a18 = 0; + a22 = 1; + a5 = 0; + a12 = 11; + a3 = 7; + } + return 21; + } else if(((((a20==1)&&(!(a4==1)&&(!(a6==1)&&((((a0==1)&&((input==6)&&((((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1))))||((a3==5)&&((a22==1)&&!(a18==1))))))&&!(a5==1))&&(a12==11)))))&&(a15==1))&&(a27==1))){ + a18 = 0; + a3 = 8; + a12 = 10; + a15 = 0; + a5 = 1; + a22 = 1; + return 26; + } else if((((((((!(a0==1)&&(!(a15==1)&&(!(a6==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==3)))))&&(a20==1))&&!(a4==1))&&(a3==7))&&(a5==1))&&(a12==11))&&(a27==1))){ + a12 = 12; + a15 = 1; + a18 = 0; + a6 = 1; + a22 = 0; + return 26; + } else if((!(a27==1)&&(((a5==1)&&((((((((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))||((a3==5)&&((a22==1)&&!(a18==1))))&&(input==4))&&(a12==9))&&(a15==1))&&!(a0==1))&&!(a4==1))&&(a6==1)))&&(a20==1)))){ + a6 = 0; + a0 = 1; + a27 = 1; + a12 = 8; + a3 = 6; + a22 = 0; + a18 = 1; + a4 = 1; + return 26; + } else if((((((a4==1)&&((((a6==1)&&((a3==5)&&((a12==8)&&((a22==1)&&(((a18==1)||!(a18==1))&&(input==5))))))&&!(a5==1))&&(a27==1)))&&(a20==1))&&!(a0==1))&&(a15==1))){ + a18 = 0; + a0 = 1; + a3 = 6; + a15 = 0; + a12 = 10; + return -1; + } else if(((a27==1)&&((((a4==1)&&((((a12==8)&&(((a3==4)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==6)))&&(a20==1)))&&!(a5==1))&&(a0==1)))&&!(a6==1))&&(a15==1)))){ + a22 = 0; + a15 = 0; + a18 = 0; + a6 = 1; + a4 = 0; + a3 = 8; + a12 = 9; + return 26; + } else if((((((a12==8)&&((a3==4)&&(!(a5==1)&&(!(a6==1)&&(((!(a15==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&!(a4==1))&&!(a22==1))))))&&(a20==1))&&!(a0==1))&&(a27==1))){ + if((a22==1)){ + a22 = 1; + a3 = 5; + a18 = 1; + }else{ + a3 = 5; + a18 = 0; + a0 = 1; + a22 = 1; + a5 = 1; + a12 = 12; + a6 = 1; + } + return -1; + } else if((!(a4==1)&&(((((((a0==1)&&((((((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1))))||((a3==5)&&((a22==1)&&!(a18==1))))&&(input==1))&&!(a6==1)))&&(a5==1))&&(a12==8))&&!(a27==1))&&!(a15==1))&&(a20==1)))){ + a4 = 1; + a15 = 1; + a18 = 1; + a3 = 8; + a12 = 12; + a27 = 1; + a6 = 1; + a22 = 0; + return -1; + } else if(((a4==1)&&(!(a22==1)&&(((!(a5==1)&&((a27==1)&&((a12==10)&&(((a20==1)&&(((input==6)&&(a15==1))&&!(a6==1)))&&(a3==7)))))&&!(a18==1))&&!(a0==1))))){ + a0 = 1; + a15 = 0; + a12 = 11; + a3 = 5; + a4 = 0; + a5 = 1; + return 24; + } else if(((((a6==1)&&((a20==1)&&((((a3==8)&&((((a5==1)&&((input==5)&&((a18==1)||!(a18==1))))&&!(a4==1))&&(a27==1)))&&(a0==1))&&!(a22==1))))&&(a12==10))&&(a15==1))){ + if((a15==1)){ + a0 = 0; + a12 = 11; + a15 = 0; + a18 = 0; + a3 = 7; + }else{ + a18 = 1; + a4 = 1; + a15 = 0; + a22 = 1; + a6 = 0; + a12 = 8; + a3 = 7; + a0 = 0; + } + return -1; + } else if((((a15==1)&&((!(a4==1)&&((a27==1)&&((((((((a18==1)||!(a18==1))&&(input==4))&&(a5==1))&&(a20==1))&&!(a6==1))&&(a3==4))&&(a22==1))))&&(a12==10)))&&!(a0==1))){ + a12 = 8; + a18 = 1; + a4 = 1; + a0 = 1; + a6 = 1; + return -1; + } else if(((!(a0==1)&&(((((a12==10)&&((a6==1)&&((a27==1)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==2)))))&&(a15==1))&&(a20==1))&&!(a4==1)))&&(a5==1))){ + a22 = 1; + a0 = 1; + a3 = 4; + a18 = 1; + a4 = 1; + a12 = 8; + return -1; + } else if((((a5==1)&&((((a0==1)&&((a3==7)&&((a6==1)&&((((input==4)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&(a12==12))&&!(a27==1)))))&&!(a4==1))&&(a20==1)))&&!(a15==1))){ + a18 = 0; + a4 = 1; + a22 = 0; + a3 = 8; + a12 = 9; + a6 = 0; + return -1; + } else if(((!(a27==1)&&(!(a6==1)&&(!(a15==1)&&((((a20==1)&&((a0==1)&&(((a22==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a4==1))))&&(a5==1))&&(a3==4)))))&&(a12==9))){ + if((a12==11)){ + a5 = 0; + a6 = 1; + a18 = 1; + a27 = 1; + a15 = 1; + a3 = 6; + a0 = 0; + }else{ + a18 = 0; + a4 = 0; + a6 = 1; + a12 = 12; + a3 = 5; + } + return 21; + } else if(((a20==1)&&((a27==1)&&(((a4==1)&&(((((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==6))&&!(a15==1))&&!(a0==1))&&(a12==8))&&(a5==1))&&(a3==8)))&&!(a6==1))))){ + a22 = 0; + a4 = 0; + a0 = 1; + a5 = 0; + a18 = 0; + a12 = 12; + return -1; + } else if(((a18==1)&&((a27==1)&&((a3==4)&&((a20==1)&&(!(a5==1)&&(((a0==1)&&(((a4==1)&&((a22==1)&&(!(a6==1)&&(input==2))))&&!(a15==1)))&&(a12==12)))))))){ + a22 = 0; + a12 = 11; + a3 = 6; + a4 = 0; + a27 = 0; + return 21; + } else if((((a20==1)&&(((a6==1)&&(!(a5==1)&&((a3==8)&&(((((input==2)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&!(a0==1))&&(a27==1))&&!(a4==1)))))&&!(a15==1)))&&(a12==12))){ + a5 = 1; + a22 = 1; + a27 = 0; + a0 = 1; + a3 = 7; + a12 = 10; + a18 = 1; + a15 = 1; + return 24; + } else if((((!(a5==1)&&((!(a0==1)&&(((a3==5)&&(((a6==1)&&((input==6)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))&&!(a15==1)))&&(a27==1)))&&!(a4==1)))&&(a20==1))&&(a12==12))){ + a0 = 1; + a15 = 1; + a4 = 1; + a12 = 8; + a5 = 1; + a22 = 0; + a6 = 0; + a18 = 1; + return -1; + } else if(((a20==1)&&((!(a15==1)&&((a3==7)&&((!(a6==1)&&(((((((a18==1)||!(a18==1))&&(input==4))&&(a27==1))&&(a12==10))&&!(a22==1))&&(a5==1)))&&(a4==1))))&&(a0==1)))){ + a6 = 1; + a18 = 1; + a12 = 8; + a15 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if(((a20==1)&&((!(a27==1)&&((a15==1)&&(((a4==1)&&((((input==2)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6))))&&!(a0==1))&&!(a6==1)))&&(a5==1))))&&(a12==8)))){ + a6 = 1; + a27 = 1; + a0 = 1; + a22 = 0; + a3 = 6; + a18 = 1; + return 21; + } else if((((a20==1)&&((!(a4==1)&&(((((a6==1)&&(((input==3)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a12==10)))&&!(a15==1))&&!(a0==1))&&!(a5==1)))&&(a27==1)))&&(a3==8))){ + a15 = 1; + a12 = 8; + a22 = 1; + a0 = 1; + a3 = 4; + a18 = 1; + a4 = 1; + a5 = 1; + return -1; + } else if(((a20==1)&&(!(a5==1)&&(((((a0==1)&&(((a27==1)&&(((input==5)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a12==11)))&&(a3==8)))&&(a4==1))&&!(a6==1))&&(a15==1))))){ + a4 = 0; + a3 = 4; + a6 = 1; + a5 = 1; + a22 = 0; + a12 = 10; + a18 = 1; + return -1; + } else if(((a6==1)&&(!(a5==1)&&(((((a12==12)&&((!(a27==1)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==6)))&&(a20==1)))&&!(a4==1))&&!(a15==1))&&(a0==1))))){ + a27 = 1; + a4 = 1; + a12 = 11; + a22 = 0; + a18 = 1; + a15 = 1; + a5 = 1; + a3 = 4; + return 26; + } else if((!(a4==1)&&(!(a27==1)&&(((((a20==1)&&(((a12==9)&&((a6==1)&&((a15==1)&&((input==2)&&(a5==1)))))&&!(a0==1)))&&(a22==1))&&!(a18==1))&&(a3==4))))){ + a3 = 8; + a6 = 0; + a27 = 1; + a4 = 1; + a12 = 8; + a22 = 0; + a0 = 1; + return -1; + } else if((((a6==1)&&((a15==1)&&(!(a5==1)&&((a20==1)&&((a0==1)&&((!(a27==1)&&((input==6)&&((((a3==7)&&(!(a22==1)&&(a18==1)))||((a3==7)&&(!(a18==1)&&!(a22==1))))||((a3==8)&&((a22==1)&&(a18==1))))))&&(a12==10)))))))&&(a4==1))){ + a27 = 1; + a22 = 1; + a12 = 11; + a4 = 0; + a18 = 1; + a3 = 7; + a15 = 0; + return -1; + } else if(((a15==1)&&((a4==1)&&((a12==11)&&((!(a6==1)&&(((((((input==4)&&(a0==1))&&(a5==1))&&(a20==1))&&(a22==1))&&(a18==1))&&(a3==8)))&&!(a27==1)))))){ + a5 = 0; + a3 = 6; + a22 = 0; + a6 = 1; + a15 = 0; + a12 = 10; + a27 = 1; + return 21; + } else if(((a6==1)&&(((((a15==1)&&((a5==1)&&((a12==12)&&(((a27==1)&&((a4==1)&&((input==5)&&(a20==1))))&&!(a0==1)))))&&(a3==4))&&!(a18==1))&&!(a22==1)))){ + a3 = 6; + a12 = 10; + a6 = 0; + a15 = 0; + a0 = 1; + return 26; + } else if(((a5==1)&&((((a4==1)&&(!(a0==1)&&(((a3==8)&&((a12==9)&&((a27==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==4)))))&&!(a6==1))))&&(a20==1))&&!(a15==1)))){ + a4 = 0; + a5 = 0; + a18 = 1; + a22 = 1; + a3 = 5; + a0 = 1; + a6 = 1; + a15 = 1; + a12 = 10; + return 26; + } else if(((a20==1)&&((!(a15==1)&&((((a12==11)&&(!(a6==1)&&((a22==1)&&((a4==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a3==5))))))&&(a0==1))&&!(a5==1)))&&(a27==1)))){ + a4 = 0; + a18 = 1; + a5 = 1; + return -1; + } else if(((((a0==1)&&((a12==10)&&(((((a3==6)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==6))&&(a15==1)))&&!(a5==1))&&(a6==1))&&(a20==1))))&&(a4==1))&&!(a27==1))){ + a22 = 1; + a3 = 4; + a18 = 0; + a6 = 0; + a4 = 0; + a27 = 1; + a15 = 0; + a0 = 0; + a12 = 9; + return -1; + } else if((!(a4==1)&&((a0==1)&&((((a20==1)&&((((((a27==1)&&(!(a6==1)&&(input==4)))&&!(a15==1))&&(a3==4))&&(a12==12))&&!(a22==1)))&&(a18==1))&&(a5==1))))){ + a4 = 1; + a3 = 8; + a22 = 1; + a6 = 1; + a15 = 1; + return 26; + } else if((((((((!(a27==1)&&((a4==1)&&((input==3)&&((((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==5)))||((a3==6)&&((a18==1)&&(a22==1)))))))&&!(a0==1))&&!(a5==1))&&!(a15==1))&&!(a6==1))&&(a12==9))&&(a20==1))){ + a27 = 1; + a22 = 0; + a0 = 1; + a18 = 1; + a3 = 5; + a15 = 1; + a5 = 1; + a6 = 1; + a12 = 8; + return 24; + } else if(((a5==1)&&((((a15==1)&&((a20==1)&&((((!(a6==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==6)))&&(a27==1))&&!(a4==1))&&(a0==1))))&&(a12==9))&&(a3==8)))){ + a12 = 8; + a18 = 1; + a4 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if(((a22==1)&&(!(a0==1)&&(!(a27==1)&&(((a3==6)&&((((a12==9)&&((!(a15==1)&&((input==1)&&(a20==1)))&&(a6==1)))&&(a18==1))&&!(a5==1)))&&(a4==1)))))){ + a3 = 5; + a0 = 1; + a22 = 0; + a15 = 1; + a6 = 0; + a12 = 8; + a5 = 1; + a27 = 1; + return 21; + } else if(((!(a4==1)&&(((((a12==10)&&((a20==1)&&(((input==5)&&((((a22==1)&&!(a18==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8)))))&&!(a27==1))))&&!(a0==1))&&(a15==1))&&!(a6==1)))&&(a5==1))){ + if((a3==4)){ + a12 = 8; + a3 = 4; + a18 = 0; + a27 = 1; + a22 = 0; + a4 = 1; + a0 = 1; + }else{ + a15 = 0; + a0 = 1; + a12 = 8; + a27 = 1; + a18 = 0; + a3 = 4; + a22 = 0; + } + return -1; + } else if((!(a4==1)&&(((((((((input==3)&&(((a3==6)&&(!(a18==1)&&(a22==1)))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1))))))&&(a5==1))&&(a6==1))&&(a20==1))&&(a12==10))&&(a15==1))&&(a27==1))&&!(a0==1)))){ + a27 = 0; + a12 = 9; + a5 = 0; + a6 = 0; + a0 = 1; + a15 = 0; + a18 = 1; + a22 = 1; + a3 = 7; + return -1; + } else if((((a3==7)&&((((a27==1)&&(!(a0==1)&&((a5==1)&&((((((a18==1)||!(a18==1))&&(input==1))&&!(a4==1))&&(a22==1))&&(a20==1)))))&&!(a15==1))&&(a12==10)))&&(a6==1))){ + a4 = 1; + a5 = 0; + a15 = 1; + a12 = 12; + a0 = 1; + a18 = 0; + a6 = 0; + a22 = 0; + a3 = 6; + a27 = 0; + return 26; + } else if(((a27==1)&&(!(a4==1)&&(!(a22==1)&&((a5==1)&&(!(a18==1)&&(((a15==1)&&(((a3==7)&&((!(a6==1)&&(input==6))&&(a0==1)))&&(a20==1)))&&(a12==11)))))))){ + a5 = 0; + a3 = 8; + a15 = 0; + a6 = 1; + a4 = 1; + return 24; + } else if((!(a0==1)&&(((a4==1)&&(((((a12==10)&&((a20==1)&&((input==2)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1)))))))&&(a6==1))&&!(a27==1))&&!(a5==1)))&&!(a15==1)))){ + a18 = 0; + a22 = 1; + a12 = 9; + a3 = 7; + a0 = 1; + a5 = 1; + return 24; + } else if(((a27==1)&&(((a5==1)&&(((a6==1)&&((a15==1)&&((a20==1)&&(((input==1)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8))))&&!(a0==1)))))&&(a12==8)))&&!(a4==1)))){ + a3 = 4; + a4 = 1; + a0 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((((a0==1)&&(((((((a20==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==2)))&&(a12==10))&&(a4==1))&&(a3==8))&&!(a27==1))&&(a6==1)))&&(a15==1))&&!(a5==1))){ + a15 = 0; + a6 = 0; + a27 = 1; + a22 = 1; + a3 = 5; + a18 = 0; + return -1; + } else if(((a20==1)&&(!(a15==1)&&((((a0==1)&&((((((((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1)))))||(((a3==4)&&(!(a18==1)&&(a22==1)))&&!(a6==1)))&&(input==1))&&!(a27==1))&&(a12==8)))&&!(a5==1))&&(a4==1))))){ + a6 = 1; + a22 = 1; + a3 = 4; + a15 = 1; + a18 = 1; + a5 = 1; + a27 = 1; + return -1; + } else if(((a27==1)&&(!(a5==1)&&(((a3==5)&&((a0==1)&&((a15==1)&&(((a20==1)&&((a4==1)&&((input==3)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&(a12==8)))))&&(a6==1))))){ + a3 = 7; + a22 = 0; + a18 = 0; + a12 = 9; + a6 = 0; + a4 = 0; + return 26; + } else if(((a15==1)&&(((((a12==11)&&((((((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==6))&&(a3==7))&&(a27==1))&&(a6==1))&&(a5==1)))&&!(a0==1))&&(a20==1))&&!(a4==1)))){ + a3 = 5; + a27 = 0; + a6 = 0; + a0 = 1; + a18 = 1; + a22 = 1; + return 26; + } else if(((!(a15==1)&&((a5==1)&&((((a20==1)&&((((!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1))))||((((a3==8)&&(!(a22==1)&&(a18==1)))&&(a6==1))||((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))))&&(input==4))&&!(a27==1)))&&(a0==1))&&!(a4==1))))&&(a12==8))){ + a6 = 0; + a18 = 0; + a5 = 0; + a12 = 10; + a3 = 5; + a27 = 1; + a22 = 0; + return 21; + } else if((((a27==1)&&(!(a4==1)&&(((((((input==1)&&((((a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a22==1)&&!(a18==1))))))&&(a20==1))&&(a12==9))&&!(a0==1))&&!(a6==1))&&!(a15==1))))&&(a5==1))){ + a18 = 1; + a15 = 1; + a22 = 0; + a12 = 12; + a3 = 5; + return -1; + } else if((!(a5==1)&&(((a15==1)&&((a27==1)&&(!(a4==1)&&(((a20==1)&&(((a12==8)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==1)))&&(a3==8)))&&(a0==1)))))&&(a6==1)))){ + if((a3==8)){ + a5 = 1; + a18 = 1; + a3 = 7; + a0 = 0; + a22 = 1; + }else{ + a6 = 0; + a5 = 1; + a4 = 1; + a18 = 1; + a3 = 7; + a15 = 0; + a22 = 1; + a12 = 10; + } + return 26; + } else if(((a27==1)&&(((!(a18==1)&&((a12==11)&&(((((((input==6)&&(a5==1))&&!(a0==1))&&!(a22==1))&&(a15==1))&&(a20==1))&&(a4==1))))&&(a3==5))&&(a6==1)))){ + a15 = 0; + a5 = 0; + a22 = 1; + a27 = 0; + a12 = 10; + a4 = 0; + a0 = 1; + return 24; + } else if((!(a4==1)&&(((!(a5==1)&&((a12==10)&&((a0==1)&&((((((a3==8)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1)))))&&(input==2))&&(a6==1))&&!(a15==1)))))&&(a27==1))&&(a20==1)))){ + a12 = 11; + a6 = 0; + a22 = 1; + a18 = 1; + a3 = 5; + return 26; + } else if((((((a27==1)&&((a20==1)&&((a18==1)&&((a6==1)&&(((a4==1)&&(!(a5==1)&&((a15==1)&&(input==4))))&&(a3==5))))))&&!(a0==1))&&!(a22==1))&&(a12==9))){ + a3 = 4; + a0 = 1; + a12 = 10; + a27 = 0; + return 21; + } else if(((((!(a0==1)&&((a20==1)&&(((((a6==1)&&((!(a4==1)&&(!(a18==1)&&(a22==1)))&&(a3==4)))||((!(a6==1)&&(((a4==1)&&(!(a22==1)&&!(a18==1)))&&(a3==8)))||(((((a18==1)&&(a22==1))&&!(a4==1))&&(a3==4))&&(a6==1))))&&(input==4))&&!(a27==1))))&&!(a5==1))&&!(a15==1))&&(a12==11))){ + a15 = 1; + a22 = 1; + a27 = 1; + a5 = 1; + a12 = 8; + a0 = 1; + a18 = 0; + a3 = 7; + a6 = 1; + a4 = 0; + return -1; + } else if((((a27==1)&&((((((a20==1)&&(!(a6==1)&&((((input==4)&&!(a22==1))&&(a18==1))&&!(a5==1))))&&(a0==1))&&!(a4==1))&&(a15==1))&&(a3==6)))&&(a12==9))){ + a5 = 1; + a6 = 1; + a3 = 4; + a15 = 0; + a12 = 12; + a4 = 1; + return 24; + } else if(((a12==9)&&(((((((a20==1)&&((a5==1)&&(((a18==1)&&((a3==5)&&(input==3)))&&(a6==1))))&&!(a0==1))&&!(a27==1))&&(a4==1))&&(a15==1))&&(a22==1)))){ + a12 = 8; + a22 = 0; + a0 = 1; + a27 = 1; + a4 = 0; + return 26; + } else if((((((a3==8)&&(((!(a18==1)&&(((((a27==1)&&(input==6))&&!(a5==1))&&!(a0==1))&&(a20==1)))&&!(a6==1))&&(a4==1)))&&!(a15==1))&&(a22==1))&&(a12==12))){ + a0 = 1; + a27 = 0; + a4 = 0; + a15 = 1; + a12 = 8; + a3 = 6; + return -1; + } else if((((a0==1)&&((!(a22==1)&&((a20==1)&&((a18==1)&&((((!(a4==1)&&((a3==6)&&(input==4)))&&(a5==1))&&(a15==1))&&!(a27==1)))))&&(a6==1)))&&(a12==11))){ + a12 = 10; + a3 = 5; + a27 = 1; + a5 = 0; + a15 = 0; + a6 = 0; + return 26; + } else if(((a6==1)&&((!(a15==1)&&((a5==1)&&((!(a0==1)&&((a20==1)&&(((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==5))&&(a4==1))&&(a3==5))))&&(a27==1))))&&(a12==9)))){ + a12 = 11; + a18 = 1; + a15 = 1; + a0 = 1; + a3 = 6; + a22 = 1; + return 21; + } else if(((((a3==5)&&((!(a6==1)&&((a12==9)&&((a20==1)&&((a0==1)&&(!(a22==1)&&(!(a4==1)&&((input==4)&&!(a15==1))))))))&&(a18==1)))&&!(a5==1))&&(a27==1))){ + a3 = 6; + a4 = 1; + a18 = 0; + a5 = 1; + a27 = 0; + return 26; + } else if((!(a18==1)&&(!(a5==1)&&(((a20==1)&&((((((a3==6)&&((a12==9)&&((input==6)&&!(a6==1))))&&(a15==1))&&(a22==1))&&(a0==1))&&!(a4==1)))&&(a27==1))))){ + a22 = 0; + a27 = 0; + a3 = 5; + a12 = 8; + a6 = 1; + a15 = 0; + a4 = 1; + return 21; + } else if(((a3==4)&&(((a20==1)&&(((a0==1)&&((!(a4==1)&&(((((a6==1)&&(input==5))&&(a12==8))&&(a22==1))&&(a15==1)))&&(a18==1)))&&!(a27==1)))&&(a5==1)))){ + a4 = 1; + a27 = 1; + return -1; + } else if((((a27==1)&&(!(a4==1)&&(!(a0==1)&&((a12==11)&&((((a15==1)&&((a20==1)&&((((a18==1)||!(a18==1))&&(input==3))&&(a3==8))))&&(a6==1))&&(a22==1))))))&&!(a5==1))){ + a12 = 9; + a0 = 1; + a18 = 1; + a3 = 7; + a5 = 1; + a27 = 0; + return 26; + } else if(((a5==1)&&((a12==11)&&(((((a4==1)&&((a15==1)&&((((input==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a0==1))&&(a3==4))))&&(a20==1))&&!(a6==1))&&(a27==1))))){ + a5 = 0; + a15 = 0; + a18 = 1; + a12 = 10; + a3 = 6; + a6 = 1; + a22 = 1; + a27 = 0; + return 26; + } else if(((a4==1)&&(((!(a5==1)&&(((a12==8)&&((((((a3==8)&&((a22==1)&&!(a18==1)))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8))))&&(input==4))&&!(a15==1))&&!(a6==1)))&&(a20==1)))&&!(a27==1))&&(a0==1)))){ + a6 = 1; + a12 = 12; + a3 = 7; + a5 = 1; + a22 = 1; + a27 = 1; + a18 = 0; + return 24; + } else if((!(a15==1)&&((a22==1)&&(((a20==1)&&(!(a0==1)&&((a27==1)&&((((a18==1)&&(((a6==1)&&(input==2))&&(a12==10)))&&!(a5==1))&&(a4==1)))))&&(a3==4))))){ + a0 = 1; + a5 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if(((a12==8)&&(((a6==1)&&((!(a4==1)&&(!(a0==1)&&(((a15==1)&&((input==1)&&(((!(a18==1)&&(a22==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7))))))&&!(a5==1))))&&(a27==1)))&&(a20==1)))){ + a22 = 1; + a12 = 10; + a15 = 0; + a0 = 1; + a18 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if((((!(a5==1)&&((!(a15==1)&&((a4==1)&&((a12==10)&&((((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1))||(((a6==1)&&((a3==8)&&(!(a22==1)&&(a18==1))))||(((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))))&&(input==3)))))&&(a0==1)))&&!(a27==1))&&(a20==1))){ + a27 = 1; + a6 = 0; + a3 = 4; + a22 = 0; + a18 = 1; + return 26; + } else if(((a0==1)&&(((a12==12)&&(!(a27==1)&&(!(a5==1)&&((a6==1)&&(((a20==1)&&(((a15==1)&&((a3==8)&&(input==3)))&&!(a22==1)))&&(a18==1))))))&&(a4==1)))){ + if((a0==1)){ + a0 = 0; + a27 = 1; + a22 = 1; + a4 = 0; + a6 = 0; + a18 = 0; + a12 = 9; + }else{ + a5 = 1; + a0 = 0; + a12 = 10; + a18 = 0; + a3 = 6; + a15 = 0; + a22 = 1; + a27 = 1; + } + return 26; + } else if(((a20==1)&&(((a5==1)&&(!(a4==1)&&(((((a12==11)&&((input==6)&&((((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==7)))))&&!(a27==1))&&(a15==1))&&(a0==1))))&&!(a6==1)))){ + a0 = 0; + a18 = 0; + a22 = 0; + a3 = 7; + a12 = 12; + a27 = 1; + return -1; + } else if(((a22==1)&&((a6==1)&&((((a27==1)&&((a3==6)&&(((a20==1)&&((a18==1)&&(((input==2)&&!(a0==1))&&(a12==9))))&&(a15==1))))&&!(a4==1))&&(a5==1))))){ + a3 = 8; + a0 = 1; + a6 = 0; + a12 = 11; + a4 = 1; + a27 = 0; + return 26; + } else if((((((a12==9)&&((a6==1)&&((((((a20==1)&&((input==3)&&(a3==5)))&&(a22==1))&&!(a4==1))&&!(a27==1))&&(a0==1))))&&!(a18==1))&&(a5==1))&&(a15==1))){ + a15 = 0; + a27 = 1; + a4 = 1; + a12 = 10; + return 26; + } else if(((((a6==1)&&(!(a4==1)&&((((a0==1)&&(((a3==5)&&((input==1)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&(a27==1)))&&(a5==1))&&!(a15==1))))&&(a20==1))&&(a12==9))){ + a12 = 8; + a15 = 1; + a4 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((a0==1)&&(!(a15==1)&&(((a27==1)&&((a6==1)&&(((((((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==5))&&!(a4==1))&&(a12==12))&&(a20==1))))&&!(a5==1))))){ + a15 = 1; + a3 = 7; + a18 = 1; + a4 = 1; + a22 = 1; + a12 = 11; + return -1; + } else if((((a0==1)&&((a3==6)&&((((((((a22==1)&&((input==5)&&!(a6==1)))&&!(a5==1))&&(a27==1))&&(a4==1))&&(a12==11))&&(a18==1))&&(a20==1))))&&(a15==1))){ + a15 = 0; + a6 = 1; + a3 = 8; + a27 = 0; + a22 = 0; + a18 = 0; + a4 = 0; + a5 = 1; + return 21; + } else if(((!(a6==1)&&(!(a18==1)&&((a4==1)&&((((((!(a15==1)&&((input==2)&&(a20==1)))&&(a22==1))&&!(a27==1))&&(a3==6))&&(a5==1))&&!(a0==1)))))&&(a12==8))){ + a6 = 1; + a3 = 5; + a12 = 9; + a22 = 0; + a27 = 1; + return 21; + } else if(((a12==11)&&((a27==1)&&((((a20==1)&&(((((a6==1)&&((input==2)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))))&&!(a4==1))&&(a3==7))&&!(a15==1)))&&(a0==1))&&(a5==1))))){ + a4 = 1; + a3 = 4; + a18 = 1; + a22 = 0; + a12 = 12; + a15 = 1; + a5 = 0; + return 26; + } else if((!(a6==1)&&(!(a5==1)&&(((a12==8)&&((a22==1)&&((!(a15==1)&&(((a4==1)&&(((input==2)&&(a0==1))&&(a3==6)))&&(a18==1)))&&(a20==1))))&&!(a27==1))))){ + if((a12==9)){ + a0 = 0; + a18 = 0; + a4 = 0; + a22 = 0; + a27 = 1; + a3 = 5; + }else{ + a6 = 1; + a22 = 0; + } + return 21; + } else if(((a20==1)&&((a12==12)&&((a27==1)&&((((a0==1)&&((input==6)&&((!(a6==1)&&(((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8)))||(((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))&&(a6==1)))))&&!(a5==1))&&(a15==1)))))){ + a5 = 1; + a12 = 10; + a4 = 1; + a22 = 0; + a18 = 1; + a6 = 1; + a3 = 4; + return 21; + } else if(((!(a27==1)&&((!(a6==1)&&(!(a18==1)&&(((a12==10)&&((a0==1)&&(!(a15==1)&&(((input==4)&&(a22==1))&&!(a5==1)))))&&(a20==1))))&&(a3==6)))&&!(a4==1))){ + a4 = 1; + a12 = 8; + a18 = 1; + a5 = 1; + a15 = 1; + a6 = 1; + a27 = 1; + a3 = 4; + return -1; + } else if((((a20==1)&&(!(a0==1)&&((a22==1)&&(((a3==4)&&(!(a27==1)&&((((a5==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a4==1))&&(a6==1))))&&(a12==10)))))&&!(a15==1))){ + if((a22==1)){ + a4 = 0; + a0 = 1; + a18 = 0; + a15 = 1; + a3 = 5; + a27 = 1; + a12 = 8; + }else{ + a18 = 0; + a0 = 1; + a6 = 0; + a3 = 7; + a27 = 1; + a15 = 1; + a12 = 8; + } + return 21; + } else if((!(a27==1)&&((((a0==1)&&(!(a15==1)&&((!(a4==1)&&(((((a6==1)&&((a3==8)&&(!(a22==1)&&(a18==1))))||(((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1)))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1)))&&(input==5)))&&(a12==10))))&&(a20==1))&&(a5==1)))){ + a4 = 1; + a27 = 1; + a6 = 1; + a15 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if((((((a0==1)&&((((a27==1)&&((a20==1)&&(((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6)))||((!(a18==1)&&(a22==1))&&(a3==6)))&&(input==3))))&&(a6==1))&&(a4==1)))&&(a15==1))&&!(a5==1))&&(a12==9))){ + a18 = 0; + a22 = 1; + a15 = 0; + a3 = 7; + a12 = 10; + a5 = 1; + return 24; + } else if((((((((a6==1)&&((((a5==1)&&(((input==3)&&!(a0==1))&&!(a15==1)))&&(a4==1))&&(a22==1)))&&(a18==1))&&(a3==5))&&(a20==1))&&(a12==8))&&!(a27==1))){ + a18 = 0; + a22 = 0; + a0 = 1; + a27 = 1; + a12 = 9; + a3 = 4; + a5 = 0; + a6 = 0; + return -1; + } else if(((!(a15==1)&&(((a0==1)&&(((((a6==1)&&(((((a3==7)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==7)))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==2)))&&!(a27==1))&&(a5==1))&&(a4==1)))&&(a12==11)))&&(a20==1))){ + a22 = 1; + a18 = 1; + a12 = 8; + a15 = 1; + a27 = 1; + a3 = 4; + return -1; + } else if(((a0==1)&&(!(a22==1)&&((a3==8)&&((((a15==1)&&((((a20==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&!(a27==1)))&&!(a4==1))&&(a6==1)))&&!(a5==1))&&(a12==9)))))){ + a15 = 0; + a3 = 6; + a4 = 1; + a5 = 1; + a6 = 0; + a12 = 11; + a27 = 1; + a18 = 0; + return 24; + } else if((!(a15==1)&&(((a12==11)&&((a3==4)&&((((!(a27==1)&&((!(a0==1)&&((input==5)&&(a20==1)))&&(a6==1)))&&(a5==1))&&(a22==1))&&!(a4==1))))&&!(a18==1)))){ + if((a5==1)){ + a4 = 1; + a12 = 8; + a0 = 1; + a3 = 6; + a27 = 1; + a18 = 1; + a15 = 1; + }else{ + a27 = 1; + a3 = 8; + a6 = 0; + a12 = 8; + a18 = 1; + } + return -1; + } else if((((a6==1)&&(((a22==1)&&((a0==1)&&((a3==7)&&(!(a15==1)&&(((!(a4==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a20==1))&&!(a27==1))))))&&!(a5==1)))&&(a12==10))){ + a27 = 1; + a18 = 0; + a5 = 1; + a6 = 0; + return 26; + } else if(((a12==9)&&(!(a4==1)&&(!(a22==1)&&((!(a18==1)&&(((((((input==5)&&!(a15==1))&&!(a6==1))&&(a27==1))&&(a20==1))&&(a5==1))&&!(a0==1)))&&(a3==7)))))){ + a6 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + a4 = 1; + a0 = 1; + a15 = 1; + a22 = 1; + return -1; + } else if(((a3==8)&&(!(a22==1)&&((a12==12)&&(((a6==1)&&(!(a18==1)&&((a20==1)&&(((!(a0==1)&&(!(a15==1)&&(input==2)))&&!(a5==1))&&(a27==1)))))&&!(a4==1)))))){ + a4 = 1; + a3 = 5; + a12 = 8; + a0 = 1; + a15 = 1; + a18 = 1; + a5 = 1; + return 21; + } else if(((((a6==1)&&((a5==1)&&((a20==1)&&((a27==1)&&((a15==1)&&((a12==12)&&((input==4)&&(((a3==5)&&((a18==1)&&(a22==1)))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))))))))))&&!(a0==1))&&!(a4==1))){ + a15 = 0; + a3 = 6; + a6 = 0; + a22 = 1; + a18 = 1; + a0 = 1; + a27 = 0; + a12 = 10; + return 21; + } else if(((a12==8)&&((a15==1)&&(((a3==6)&&((a6==1)&&((a27==1)&&((a4==1)&&((((input==5)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&(a5==1))&&!(a0==1))))))&&(a20==1))))){ + a22 = 0; + a18 = 0; + a3 = 5; + a0 = 1; + a6 = 0; + return -1; + } else if(((a6==1)&&((a20==1)&&((a15==1)&&((a27==1)&&(!(a0==1)&&((a5==1)&&((!(a4==1)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==6)))&&(a12==8))))))))){ + a3 = 4; + a0 = 1; + a4 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((((!(a5==1)&&(!(a0==1)&&(((a20==1)&&((a3==5)&&((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==5))&&(a4==1))))&&(a12==10))))&&(a27==1))&&(a6==1))&&!(a15==1))){ + a15 = 1; + a18 = 1; + a0 = 1; + a5 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((a0==1)&&(((((a22==1)&&((((a12==10)&&(((a6==1)&&((a5==1)&&(input==6)))&&!(a15==1)))&&!(a4==1))&&!(a18==1)))&&(a3==4))&&!(a27==1))&&(a20==1)))){ + a3 = 5; + a5 = 0; + a6 = 0; + a12 = 11; + return 21; + } else if(((a6==1)&&((a15==1)&&(!(a4==1)&&(((!(a5==1)&&((a27==1)&&((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==3))&&(a0==1))&&(a12==12))))&&(a20==1))&&(a3==6)))))){ + a12 = 9; + a3 = 4; + a22 = 0; + a5 = 1; + a6 = 0; + a18 = 1; + a27 = 0; + a4 = 1; + a15 = 0; + return 26; + } else if((((a3==6)&&(((a22==1)&&(((a5==1)&&(((a27==1)&&((a4==1)&&(((input==1)&&(a15==1))&&!(a0==1))))&&(a20==1)))&&(a6==1)))&&(a12==9)))&&(a18==1))){ + a3 = 4; + a0 = 1; + a12 = 8; + return -1; + } else if((!(a22==1)&&((((((a4==1)&&(((((a27==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a6==1))&&(a20==1))&&!(a0==1)))&&!(a15==1))&&(a3==7))&&!(a5==1))&&(a12==11)))){ + a18 = 1; + a22 = 1; + a12 = 8; + a15 = 1; + a0 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if(((a4==1)&&(!(a5==1)&&((a6==1)&&((((a20==1)&&(!(a27==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==1))&&!(a0==1))))&&(a15==1))&&(a12==11)))))){ + a18 = 1; + a5 = 1; + a22 = 1; + a4 = 0; + a12 = 8; + a0 = 1; + a27 = 1; + a3 = 8; + return -1; + } else if((!(a0==1)&&((a5==1)&&((((a20==1)&&((a3==5)&&((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&(a12==8))&&(a15==1))&&(a4==1))))&&!(a6==1))&&!(a27==1))))){ + a27 = 1; + a22 = 1; + a0 = 1; + a3 = 6; + a18 = 1; + return -1; + } else if((((a20==1)&&((((a4==1)&&((!(a0==1)&&(((input==3)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))||((a3==7)&&((a22==1)&&!(a18==1)))))&&(a12==8)))&&(a6==1)))&&(a15==1))&&!(a5==1)))&&!(a27==1))){ + a6 = 0; + a0 = 1; + a22 = 0; + a5 = 1; + a3 = 7; + a18 = 0; + a27 = 1; + return 21; + } else if((((a5==1)&&((!(a27==1)&&((!(a6==1)&&((a3==6)&&((a12==8)&&(((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a20==1)))))&&!(a0==1)))&&(a4==1)))&&(a15==1))){ + a27 = 1; + a3 = 8; + a18 = 1; + a0 = 1; + a22 = 0; + a6 = 1; + a4 = 0; + return 21; + } else if((((a4==1)&&((a20==1)&&(((a12==11)&&(((a6==1)&&(((input==1)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))||((!(a18==1)&&(a22==1))&&(a3==8))))&&(a27==1)))&&!(a5==1)))&&!(a15==1))))&&(a0==1))){ + a4 = 0; + a6 = 0; + a3 = 8; + a15 = 1; + a18 = 0; + a5 = 1; + a22 = 1; + return 26; + } else if((!(a15==1)&&((a0==1)&&(!(a6==1)&&((!(a27==1)&&((!(a5==1)&&((a20==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==6))&&(a3==6))))&&(a4==1)))&&(a12==11)))))){ + a12 = 8; + a18 = 1; + a6 = 1; + a3 = 4; + a22 = 1; + a5 = 1; + a27 = 1; + a15 = 1; + return -1; + } else if((!(a5==1)&&((a15==1)&&((a0==1)&&((!(a4==1)&&(((((a20==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==3)))&&!(a27==1))&&!(a6==1))&&(a3==5)))&&(a12==11)))))){ + a27 = 1; + a18 = 0; + a15 = 0; + a3 = 8; + a5 = 1; + a22 = 1; + return 21; + } else if((((((a27==1)&&((a15==1)&&((a20==1)&&((a6==1)&&(!(a0==1)&&(!(a5==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==6))))))))&&(a3==7))&&(a12==8))&&(a4==1))){ + a0 = 1; + a3 = 4; + a5 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if((!(a5==1)&&((((((((((input==6)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a12==9))&&(a6==1))&&(a15==1))&&(a27==1))&&(a20==1))&&(a3==5))&&!(a0==1))&&!(a4==1)))){ + a22 = 0; + a12 = 12; + a5 = 1; + a6 = 0; + a3 = 6; + a0 = 1; + a18 = 0; + a4 = 1; + return -1; + } else if(((a5==1)&&(((a20==1)&&(!(a4==1)&&((((a12==9)&&(((!(a0==1)&&((a3==7)&&(input==1)))&&(a27==1))&&(a6==1)))&&(a18==1))&&(a22==1))))&&(a15==1)))){ + a0 = 1; + a15 = 0; + a12 = 8; + a5 = 0; + a3 = 4; + a4 = 1; + return 21; + } else if((((!(a0==1)&&(((a20==1)&&(((((input==4)&&(((!(a18==1)&&(a22==1))&&(a3==7))||(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))))&&(a27==1))&&(a12==10))&&!(a5==1)))&&(a6==1)))&&(a15==1))&&!(a4==1))){ + a18 = 0; + a3 = 5; + a15 = 0; + a22 = 0; + a27 = 0; + a6 = 0; + a0 = 1; + a12 = 9; + return 21; + } else if((!(a6==1)&&((((a3==5)&&(((a15==1)&&((a22==1)&&(((a20==1)&&((a4==1)&&(((a18==1)||!(a18==1))&&(input==6))))&&!(a27==1))))&&(a12==8)))&&(a0==1))&&!(a5==1)))){ + a12 = 11; + a22 = 0; + a18 = 0; + a6 = 1; + a3 = 7; + return 24; + } else if(((a12==9)&&((a5==1)&&((((!(a0==1)&&((((!(a6==1)&&((a3==8)&&((a4==1)&&((a18==1)&&!(a22==1)))))||((((a4==1)&&(!(a22==1)&&!(a18==1)))&&(a3==8))&&!(a6==1)))||(((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))&&(a6==1)))&&(input==6)))&&(a27==1))&&(a20==1))&&(a15==1))))){ + a3 = 4; + a0 = 1; + a15 = 0; + a4 = 1; + a18 = 0; + a5 = 0; + a6 = 0; + a22 = 0; + a27 = 0; + return 21; + } else if(((a20==1)&&(!(a27==1)&&((a12==11)&&(!(a0==1)&&(((!(a6==1)&&((a3==8)&&(!(a4==1)&&(!(a15==1)&&((a5==1)&&(!(a18==1)&&!(a22==1)))))))||((a6==1)&&((a3==4)&&(((a15==1)&&(!(a5==1)&&((a22==1)&&(a18==1))))&&(a4==1)))))&&(input==6))))))){ + a27 = 1; + a18 = 0; + a0 = 1; + a22 = 1; + a15 = 1; + a6 = 1; + a5 = 1; + a3 = 7; + a4 = 0; + a12 = 8; + return 26; + } else if(((a20==1)&&((!(a6==1)&&(((a3==4)&&((a15==1)&&((a27==1)&&((a5==1)&&((!(a18==1)&&((input==6)&&(a12==8)))&&(a0==1))))))&&!(a4==1)))&&(a22==1)))){ + a22 = 0; + a18 = 1; + a3 = 5; + return 24; + } else if((((((a0==1)&&((((((((input==3)&&((a18==1)||!(a18==1)))&&(a12==10))&&(a3==5))&&(a22==1))&&(a6==1))&&!(a5==1))&&(a20==1)))&&!(a15==1))&&(a27==1))&&(a4==1))){ + a3 = 4; + a5 = 1; + a15 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if((((a27==1)&&((a20==1)&&((a5==1)&&(!(a6==1)&&((a15==1)&&((a3==5)&&(((a12==9)&&((input==2)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&!(a4==1))))))))&&(a0==1))){ + a18 = 1; + a22 = 0; + a12 = 12; + a5 = 0; + a3 = 4; + return 26; + } else if((!(a4==1)&&(((a20==1)&&((a15==1)&&(((!(a18==1)&&(((a3==7)&&((!(a6==1)&&(input==2))&&(a5==1)))&&(a0==1)))&&!(a27==1))&&(a12==8))))&&!(a22==1)))){ + a15 = 0; + a18 = 1; + a3 = 5; + a0 = 0; + a27 = 1; + a12 = 10; + return 21; + } else if((((a5==1)&&(((a0==1)&&(((((((input==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&(a12==12))&&!(a4==1))&&(a27==1))&&(a3==6))&&!(a15==1)))&&!(a6==1)))&&(a20==1))){ + a18 = 1; + a12 = 8; + a4 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if((((((a4==1)&&((a12==12)&&(((a20==1)&&(((input==4)&&((((a3==7)&&((a18==1)&&!(a22==1)))||((a3==7)&&(!(a18==1)&&!(a22==1))))||((a3==8)&&((a22==1)&&(a18==1)))))&&(a5==1)))&&(a15==1))))&&(a0==1))&&!(a27==1))&&!(a6==1))){ + a5 = 0; + a3 = 5; + a12 = 11; + a22 = 1; + a27 = 1; + a18 = 0; + return 21; + } else if((!(a4==1)&&(((a6==1)&&((a0==1)&&(((a20==1)&&(!(a15==1)&&(((((input==3)&&((a18==1)||!(a18==1)))&&(a12==8))&&(a3==4))&&(a27==1))))&&(a5==1))))&&(a22==1)))){ + a6 = 0; + a22 = 0; + a18 = 1; + a15 = 1; + a12 = 9; + a3 = 7; + a4 = 1; + return 24; + } else if(((a12==11)&&((!(a27==1)&&((((((((input==3)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a6==1))&&!(a15==1))&&!(a4==1))&&(a20==1))&&(a3==7))&&(a5==1)))&&!(a0==1)))){ + a18 = 0; + a0 = 1; + a3 = 4; + a6 = 0; + a12 = 12; + a22 = 1; + a27 = 1; + a5 = 0; + return 21; + } else if((!(a4==1)&&(((a12==8)&&((a3==7)&&(!(a0==1)&&(((a20==1)&&((a5==1)&&((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==5))&&!(a27==1))))&&!(a6==1)))))&&!(a15==1)))){ + if((a0==1)){ + a18 = 0; + a22 = 1; + a15 = 1; + a27 = 1; + a6 = 1; + a3 = 4; + a0 = 1; + }else{ + a4 = 1; + a18 = 1; + a0 = 1; + a6 = 1; + a22 = 0; + a3 = 4; + a15 = 1; + } + return -1; + } else if(((a12==9)&&(((!(a5==1)&&(!(a4==1)&&((a27==1)&&((!(a6==1)&&((input==4)&&((((!(a22==1)&&(a18==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7)))||(((a22==1)&&(a18==1))&&(a3==8)))))&&(a15==1)))))&&(a0==1))&&(a20==1)))){ + a22 = 1; + a3 = 8; + a15 = 0; + a6 = 1; + a27 = 0; + a12 = 8; + a18 = 1; + a4 = 1; + return 24; + } else if(((a20==1)&&(!(a5==1)&&((a27==1)&&((a4==1)&&((((!(a22==1)&&((((input==1)&&(a12==9))&&(a3==8))&&(a0==1)))&&(a18==1))&&(a15==1))&&!(a6==1))))))){ + a6 = 1; + a3 = 7; + a12 = 11; + return 26; + } else if(((((((a20==1)&&(!(a0==1)&&((((input==5)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6))))&&(a27==1))&&(a12==11))))&&!(a6==1))&&!(a15==1))&&(a5==1))&&!(a4==1))){ + a18 = 1; + a4 = 1; + a12 = 9; + a15 = 1; + a6 = 1; + a27 = 0; + a22 = 0; + a0 = 1; + a3 = 8; + return -1; + } else if(((a0==1)&&((a27==1)&&((!(a4==1)&&((a3==7)&&((((a22==1)&&((a20==1)&&(!(a5==1)&&(((a18==1)||!(a18==1))&&(input==2)))))&&!(a15==1))&&(a12==10))))&&!(a6==1))))){ + a18 = 0; + a3 = 6; + a4 = 1; + a15 = 1; + return -1; + } else if(((a12==12)&&((a3==6)&&((!(a18==1)&&(((((!(a0==1)&&((a15==1)&&(!(a6==1)&&(input==4))))&&!(a22==1))&&(a27==1))&&!(a5==1))&&(a20==1)))&&!(a4==1))))){ + a18 = 1; + a12 = 11; + a3 = 7; + a4 = 1; + return 24; + } else if(((a20==1)&&((((((!(a5==1)&&(((a15==1)&&(!(a27==1)&&((input==4)&&((a18==1)||!(a18==1)))))&&(a3==6)))&&!(a0==1))&&(a4==1))&&(a22==1))&&(a6==1))&&(a12==10)))){ + a18 = 1; + a22 = 0; + a4 = 0; + a12 = 8; + a27 = 1; + a5 = 1; + a0 = 1; + return -1; + } else if(((a3==4)&&(!(a4==1)&&(((a12==10)&&(!(a15==1)&&(!(a6==1)&&(((((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==5))&&(a0==1))&&(a5==1))&&(a20==1)))))&&(a27==1))))){ + a6 = 1; + a18 = 1; + a15 = 1; + a12 = 8; + a4 = 1; + a22 = 1; + return -1; + } else if(((a12==11)&&((a18==1)&&((((((a5==1)&&(((!(a0==1)&&((input==3)&&!(a6==1)))&&(a3==8))&&(a27==1)))&&(a4==1))&&!(a22==1))&&(a15==1))&&(a20==1))))){ + if((a22==1)){ + a5 = 0; + a22 = 1; + a6 = 1; + a3 = 5; + a4 = 0; + }else{ + a5 = 0; + a15 = 0; + a0 = 1; + a22 = 1; + a6 = 1; + a4 = 0; + } + return 21; + } else if(((a27==1)&&(((a4==1)&&(((((a12==11)&&((a6==1)&&((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==1))&&(a3==7))))&&(a20==1))&&(a15==1))&&(a5==1)))&&(a0==1)))){ + a15 = 0; + a12 = 10; + a3 = 5; + a22 = 0; + a18 = 1; + a4 = 0; + return -1; + } else if(((!(a15==1)&&(((((((a3==8)&&((a22==1)&&(!(a0==1)&&((input==2)&&((a18==1)||!(a18==1))))))&&(a12==9))&&(a4==1))&&(a20==1))&&!(a5==1))&&!(a6==1)))&&!(a27==1))){ + a0 = 1; + a18 = 0; + a5 = 1; + a12 = 11; + a27 = 1; + return -1; + } else if((!(a4==1)&&((((!(a15==1)&&(!(a27==1)&&((a0==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5))&&!(a6==1))&&(a5==1)))))&&(a12==11))&&(a3==5))&&(a20==1)))){ + a27 = 1; + a22 = 0; + a18 = 1; + a15 = 1; + a3 = 8; + return 24; + } else if(((a12==8)&&((a27==1)&&(!(a4==1)&&((((!(a15==1)&&(((input==1)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))||((!(a18==1)&&(a22==1))&&(a3==6))))&&(a5==1)))&&(a20==1))&&(a0==1))&&(a6==1)))))){ + a5 = 0; + a0 = 0; + a6 = 0; + a18 = 0; + a12 = 11; + a22 = 0; + a3 = 4; + a15 = 1; + return 21; + } else if(((((!(a22==1)&&(((a27==1)&&(((((((a18==1)||!(a18==1))&&(input==4))&&(a5==1))&&!(a0==1))&&(a12==10))&&(a20==1)))&&!(a6==1)))&&(a3==6))&&(a15==1))&&!(a4==1))){ + a12 = 8; + a6 = 1; + a0 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((((((((a3==8)&&(!(a4==1)&&((a12==12)&&(!(a15==1)&&((!(a18==1)&&((a27==1)&&!(a22==1)))&&!(a5==1))))))&&!(a6==1))||(((((a12==8)&&((a15==1)&&(((a18==1)&&(!(a27==1)&&(a22==1)))&&(a5==1))))&&(a4==1))&&(a3==4))&&(a6==1)))||(((a3==4)&&((a4==1)&&((((a5==1)&&(!(a18==1)&&(!(a27==1)&&(a22==1))))&&(a15==1))&&(a12==8))))&&(a6==1)))&&(input==4))&&(a0==1))&&(a20==1))){ + a4 = 1; + a15 = 1; + a6 = 0; + a3 = 6; + a27 = 1; + a18 = 1; + a22 = 1; + a12 = 10; + a5 = 0; + return -1; + } else if((!(a15==1)&&((((a20==1)&&(((a12==9)&&((((!(a4==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a27==1))&&!(a22==1))&&(a3==7)))&&!(a0==1)))&&(a6==1))&&!(a5==1)))){ + a18 = 1; + a6 = 0; + a22 = 1; + a0 = 1; + a12 = 10; + a15 = 1; + a3 = 6; + a4 = 1; + return -1; + } else if(((((!(a0==1)&&((((((a27==1)&&((a3==8)&&((input==5)&&!(a15==1))))&&(a12==10))&&(a5==1))&&!(a6==1))&&(a4==1)))&&(a22==1))&&(a20==1))&&(a18==1))){ + if((a3==6)){ + a5 = 0; + a18 = 0; + a3 = 5; + a22 = 0; + a15 = 1; + }else{ + a12 = 12; + a0 = 1; + a3 = 7; + a5 = 0; + a22 = 0; + a6 = 1; + } + return -1; + } else if(((!(a4==1)&&((((a3==4)&&((a27==1)&&(((a6==1)&&((a20==1)&&((a5==1)&&((input==4)&&!(a18==1)))))&&(a22==1))))&&!(a0==1))&&(a15==1)))&&(a12==9))){ + a4 = 1; + a18 = 1; + a12 = 10; + a3 = 6; + a22 = 0; + return 26; + } else if(((a12==11)&&(!(a5==1)&&(!(a0==1)&&((a15==1)&&((!(a22==1)&&((((!(a4==1)&&((input==5)&&((a18==1)||!(a18==1))))&&!(a27==1))&&(a20==1))&&(a6==1)))&&(a3==6))))))){ + a27 = 1; + a5 = 1; + a0 = 1; + a4 = 1; + a12 = 8; + a3 = 5; + a22 = 1; + a18 = 1; + return -1; + } else if((((a27==1)&&((a12==11)&&(((a6==1)&&((a20==1)&&(!(a15==1)&&((a5==1)&&((a4==1)&&(((a3==5)&&(input==4))&&(a0==1)))))))&&(a22==1))))&&!(a18==1))){ + if((a5==1)){ + a22 = 0; + a18 = 1; + a12 = 9; + a6 = 0; + a0 = 0; + a15 = 1; + a3 = 6; + }else{ + a3 = 4; + a15 = 1; + a27 = 0; + a18 = 1; + } + return 21; + } else if(((a20==1)&&((a4==1)&&((!(a6==1)&&((a3==5)&&(!(a15==1)&&((a22==1)&&((a27==1)&&((((input==4)&&((a18==1)||!(a18==1)))&&(a0==1))&&(a12==12)))))))&&!(a5==1))))){ + a12 = 8; + a18 = 1; + a5 = 1; + a3 = 8; + a0 = 0; + a4 = 0; + return 21; + } else if(((((a12==11)&&(!(a15==1)&&((((!(a4==1)&&((input==1)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))||(((a22==1)&&!(a18==1))&&(a3==6)))))&&!(a5==1))&&(a0==1))&&(a6==1))))&&!(a27==1))&&(a20==1))){ + a18 = 0; + a6 = 0; + a3 = 5; + a5 = 1; + a22 = 1; + a12 = 10; + return -1; + } else if((((a3==4)&&((a22==1)&&(!(a4==1)&&(!(a0==1)&&(((((a20==1)&&((!(a6==1)&&(input==3))&&!(a5==1)))&&!(a18==1))&&(a27==1))&&(a15==1))))))&&(a12==10))){ + a4 = 1; + a18 = 1; + a6 = 1; + a3 = 6; + a5 = 1; + a0 = 1; + return 21; + } else if(((a15==1)&&(((a4==1)&&(!(a22==1)&&(((a12==12)&&((a3==6)&&((!(a6==1)&&(((a18==1)&&(input==5))&&(a27==1)))&&!(a5==1))))&&(a0==1))))&&(a20==1)))){ + a3 = 8; + a0 = 0; + a12 = 8; + a18 = 0; + return 26; + } else if((((a0==1)&&((a20==1)&&((a15==1)&&(((a6==1)&&(((a5==1)&&(((input==3)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&(a27==1)))&&(a12==12)))&&(a4==1)))))&&(a3==4))){ + a22 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if((!(a0==1)&&((a4==1)&&((((a12==12)&&((((a3==5)&&((a20==1)&&(!(a15==1)&&((input==2)&&((a18==1)||!(a18==1))))))&&!(a6==1))&&(a22==1)))&&!(a5==1))&&(a27==1))))){ + a15 = 1; + a18 = 0; + a6 = 1; + a0 = 1; + a3 = 6; + a12 = 8; + a5 = 1; + a22 = 0; + return 21; + } else if(((a18==1)&&(!(a15==1)&&(((((a6==1)&&((a3==5)&&(!(a4==1)&&((((input==2)&&(a27==1))&&(a12==8))&&(a22==1)))))&&(a0==1))&&(a5==1))&&(a20==1))))){ + a15 = 1; + a18 = 0; + a12 = 9; + return 26; + } else if((!(a6==1)&&((a12==10)&&((!(a27==1)&&((!(a0==1)&&(((a3==7)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&!(a15==1)))&&(a5==1)))&&(a20==1)))&&(a4==1))))){ + if((a5==1)){ + a22 = 0; + a15 = 1; + a18 = 1; + a27 = 1; + a12 = 8; + a0 = 1; + a6 = 1; + }else{ + a15 = 1; + a12 = 8; + a18 = 1; + a4 = 0; + a3 = 8; + a6 = 1; + a22 = 1; + a27 = 1; + a0 = 1; + } + return 26; + } else if(((a4==1)&&(!(a27==1)&&(!(a0==1)&&((a12==11)&&((a3==6)&&((a18==1)&&(!(a22==1)&&((a20==1)&&(!(a6==1)&&(((a5==1)&&(input==6))&&!(a15==1)))))))))))){ + a3 = 7; + a27 = 1; + a15 = 1; + a0 = 1; + a12 = 8; + return -1; + } else if(((!(a5==1)&&((((a3==4)&&((((((((a18==1)||!(a18==1))&&(input==4))&&(a20==1))&&(a22==1))&&!(a27==1))&&!(a0==1))&&(a12==9)))&&(a4==1))&&!(a6==1)))&&!(a15==1))){ + a5 = 1; + a27 = 1; + a15 = 1; + a0 = 1; + a4 = 0; + a18 = 0; + a12 = 8; + a6 = 1; + a3 = 6; + return 24; + } else if(((!(a4==1)&&((a27==1)&&(((a12==12)&&((a3==8)&&((a22==1)&&(!(a6==1)&&((a5==1)&&((a20==1)&&(((a18==1)||!(a18==1))&&(input==5))))))))&&!(a0==1))))&&(a15==1))){ + a18 = 0; + a12 = 11; + a5 = 0; + a6 = 1; + a0 = 1; + a3 = 6; + a22 = 0; + a4 = 1; + return 21; + } else if(((((a6==1)&&((((a15==1)&&(((a20==1)&&(!(a4==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5))))&&!(a0==1)))&&!(a27==1))&&(a12==8)))&&!(a5==1))&&(a3==8))){ + a18 = 1; + a5 = 1; + a0 = 1; + a3 = 6; + a27 = 1; + a4 = 1; + a22 = 0; + return -1; + } else if(((((a20==1)&&(((((a4==1)&&((a22==1)&&((((a6==1)&&(input==5))&&!(a5==1))&&(a3==8))))&&(a0==1))&&(a12==12))&&(a18==1)))&&(a27==1))&&(a15==1))){ + a3 = 4; + a5 = 1; + a12 = 8; + return -1; + } else if((!(a6==1)&&(((a27==1)&&(!(a4==1)&&(((a0==1)&&((a12==8)&&(!(a5==1)&&((input==6)&&((((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==7)))||(((a22==1)&&(a18==1))&&(a3==8)))))))&&!(a15==1))))&&(a20==1)))){ + a18 = 0; + a6 = 1; + a12 = 11; + a15 = 1; + a3 = 4; + a22 = 1; + return 24; + } else if(((!(a0==1)&&(!(a4==1)&&((a12==8)&&((a6==1)&&(((a20==1)&&((((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a3==7))&&!(a15==1)))&&!(a5==1))))))&&(a27==1))){ + a6 = 0; + a3 = 5; + a27 = 0; + a22 = 0; + a12 = 10; + a18 = 0; + a0 = 1; + return 21; + } else if((!(a15==1)&&(((a5==1)&&(!(a22==1)&&((a12==10)&&(((a20==1)&&(!(a4==1)&&(((a0==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a27==1))))&&(a6==1)))))&&(a3==6)))){ + if((a6==1)){ + a18 = 0; + a6 = 0; + a0 = 0; + a3 = 8; + a15 = 1; + a5 = 0; + a4 = 1; + a12 = 9; + }else{ + a3 = 7; + a22 = 1; + a5 = 0; + a18 = 0; + } + return 26; + } else if((((a12==12)&&(!(a27==1)&&((a4==1)&&((a5==1)&&(!(a15==1)&&(((a20==1)&&(((((a18==1)||!(a18==1))&&(input==3))&&(a0==1))&&(a22==1)))&&(a3==4)))))))&&!(a6==1))){ + a18 = 1; + a15 = 1; + a12 = 8; + a6 = 1; + a27 = 1; + return -1; + } else if((((a6==1)&&((a12==8)&&((((a15==1)&&((a20==1)&&(!(a5==1)&&((input==4)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))))))&&(a27==1))&&(a4==1))))&&(a0==1))){ + a3 = 4; + a22 = 1; + a18 = 1; + a5 = 1; + return -1; + } else if((!(a0==1)&&(((a4==1)&&(((a20==1)&&(((!(a22==1)&&((a3==5)&&((a27==1)&&(((a18==1)||!(a18==1))&&(input==4)))))&&(a15==1))&&(a6==1)))&&(a5==1)))&&(a12==8)))){ + a15 = 0; + a12 = 9; + a18 = 0; + a0 = 1; + a4 = 0; + a27 = 0; + a6 = 0; + a5 = 0; + return 21; + } else if((((!(a6==1)&&(((a20==1)&&((!(a0==1)&&((a4==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a3==8))))&&(a15==1)))&&!(a5==1)))&&!(a27==1))&&(a12==8))){ + if((a12==12)){ + a22 = 0; + a5 = 1; + a27 = 1; + a18 = 1; + a0 = 1; + }else{ + a5 = 1; + a18 = 1; + a3 = 5; + a22 = 1; + } + return -1; + } else if((!(a27==1)&&(((a15==1)&&(((((a20==1)&&(((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4))))&&(input==5)))&&(a0==1))&&(a5==1))&&(a12==9)))&&!(a4==1)))){ + if((a27==1)){ + a22 = 1; + a27 = 1; + a0 = 0; + a3 = 4; + a6 = 1; + a12 = 8; + a4 = 1; + a18 = 1; + }else{ + a6 = 0; + a3 = 4; + a22 = 0; + a12 = 8; + a18 = 0; + } + return -1; + } else if((!(a27==1)&&((a3==7)&&((((a4==1)&&((!(a5==1)&&((a0==1)&&((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==6))&&!(a6==1))))&&!(a15==1)))&&(a12==10))&&(a20==1))))){ + a3 = 5; + a18 = 0; + a27 = 1; + a6 = 1; + a15 = 1; + a22 = 0; + a5 = 1; + return 21; + } else if((!(a15==1)&&((a20==1)&&(((((((a4==1)&&((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==4)))&&!(a27==1))&&!(a0==1))&&!(a5==1))&&(a6==1))&&(a12==11))))){ + a18 = 0; + a6 = 0; + a0 = 1; + a12 = 8; + a3 = 4; + a5 = 1; + a22 = 0; + a15 = 1; + a27 = 1; + return -1; + } else if(((a20==1)&&((a4==1)&&((!(a5==1)&&((!(a6==1)&&((a12==11)&&((a27==1)&&((input==4)&&(((!(a18==1)&&(a22==1))&&(a3==5))||(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1)))))))))&&(a0==1)))&&(a15==1))))){ + a22 = 1; + a3 = 4; + a5 = 1; + a12 = 8; + a18 = 1; + a6 = 1; + return -1; + } else if(((a5==1)&&((((((!(a18==1)&&((((a22==1)&&((a20==1)&&(input==1)))&&(a3==7))&&!(a6==1)))&&!(a27==1))&&(a12==9))&&(a15==1))&&!(a0==1))&&(a4==1)))){ + a12 = 8; + a27 = 1; + a22 = 0; + a6 = 1; + a3 = 8; + a18 = 1; + a0 = 1; + return 21; + } else if(((!(a4==1)&&((!(a15==1)&&((a12==12)&&(((a20==1)&&((a6==1)&&(!(a22==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a0==1)))))&&(a3==8))))&&(a5==1)))&&!(a27==1))){ + a27 = 1; + a12 = 10; + a6 = 0; + a22 = 1; + a18 = 0; + return -1; + } else if(((a15==1)&&(!(a18==1)&&(((a6==1)&&(((a4==1)&&((a12==10)&&(!(a27==1)&&((((input==1)&&(a5==1))&&(a3==5))&&(a22==1)))))&&(a0==1)))&&(a20==1))))){ + a4 = 0; + a15 = 0; + a6 = 0; + a27 = 1; + a18 = 1; + a3 = 4; + return 26; + } else if(((a5==1)&&(!(a4==1)&&(!(a0==1)&&((a18==1)&&(!(a15==1)&&((a3==4)&&((a22==1)&&((((a6==1)&&((input==5)&&(a20==1)))&&(a12==11))&&(a27==1)))))))))){ + a3 = 6; + a6 = 0; + a4 = 1; + a12 = 10; + a27 = 0; + a0 = 1; + return 21; + } else if((((((a20==1)&&(((((a12==12)&&(!(a22==1)&&((((a18==1)||!(a18==1))&&(input==3))&&(a15==1))))&&(a27==1))&&!(a0==1))&&(a6==1)))&&!(a5==1))&&(a4==1))&&(a3==6))){ + a22 = 1; + a18 = 0; + a3 = 8; + return -1; + } else if((((a20==1)&&((a0==1)&&((a6==1)&&((a4==1)&&((a3==6)&&((a27==1)&&(((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a5==1))&&(a12==9))))))))&&(a15==1))){ + a15 = 0; + a3 = 7; + a22 = 1; + a18 = 1; + a12 = 11; + a6 = 0; + a5 = 0; + return 21; + } else if((((((a20==1)&&(!(a4==1)&&(((((a12==11)&&(((input==2)&&!(a18==1))&&(a15==1)))&&!(a5==1))&&!(a6==1))&&(a3==8))))&&(a0==1))&&(a22==1))&&(a27==1))){ + a6 = 1; + a27 = 0; + a3 = 7; + return 21; + } else if(((a6==1)&&((((((a3==5)&&((a20==1)&&((!(a5==1)&&((input==4)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))&&(a12==8))))&&!(a27==1))&&(a15==1))&&(a4==1))&&(a0==1)))){ + a18 = 0; + a5 = 1; + a12 = 10; + a3 = 8; + a27 = 1; + a22 = 0; + a15 = 0; + return 24; + } else if(((a18==1)&&((a27==1)&&(((((!(a5==1)&&(((((input==6)&&(a15==1))&&(a3==6))&&!(a4==1))&&!(a0==1)))&&(a6==1))&&(a20==1))&&(a12==8))&&(a22==1))))){ + a6 = 0; + a0 = 1; + a5 = 1; + a3 = 5; + a18 = 0; + return 24; + } else if(((!(a22==1)&&(!(a6==1)&&((a3==7)&&((a18==1)&&((a15==1)&&((((a4==1)&&((a20==1)&&((a12==8)&&(input==4))))&&(a5==1))&&!(a0==1)))))))&&!(a27==1))){ + if((a5==1)){ + a12 = 10; + a4 = 0; + a0 = 1; + a27 = 1; + a5 = 0; + a15 = 0; + a18 = 0; + a3 = 8; + a22 = 1; + }else{ + a3 = 4; + a27 = 1; + a0 = 1; + } + return 26; + } else if(((a5==1)&&((a12==8)&&(((a4==1)&&(!(a27==1)&&((!(a6==1)&&(((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==3))&&(a20==1)))&&!(a0==1))))&&(a15==1))))){ + if((a12==9)){ + a18 = 1; + a22 = 1; + a6 = 1; + a0 = 1; + a27 = 1; + a3 = 5; + a4 = 0; + }else{ + a3 = 7; + a4 = 0; + a0 = 1; + a18 = 0; + a22 = 1; + a6 = 1; + a12 = 10; + } + return -1; + } else if((((((a20==1)&&(((((a5==1)&&((a12==9)&&(((input==3)&&!(a0==1))&&!(a18==1))))&&!(a27==1))&&!(a22==1))&&!(a6==1)))&&(a3==5))&&(a15==1))&&!(a4==1))){ + a4 = 1; + a12 = 12; + a6 = 1; + a18 = 1; + a22 = 1; + a27 = 1; + a15 = 0; + a0 = 1; + return 26; + } else if(((((((a20==1)&&((a3==7)&&(((a0==1)&&((((input==4)&&!(a18==1))&&(a15==1))&&(a4==1)))&&(a5==1))))&&!(a22==1))&&(a12==8))&&(a6==1))&&!(a27==1))){ + a4 = 0; + a12 = 9; + a3 = 5; + return 26; + } else if((((a6==1)&&((!(a27==1)&&((a4==1)&&((a5==1)&&(((a20==1)&&((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==4))&&(a3==6)))&&!(a0==1)))))&&(a12==11)))&&(a15==1))){ + if((a5==1)){ + a12 = 8; + a6 = 0; + a18 = 0; + a0 = 1; + a22 = 1; + a27 = 1; + a3 = 7; + }else{ + a0 = 1; + a18 = 1; + a27 = 1; + a3 = 5; + a6 = 0; + a22 = 1; + } + return 24; + } else if(((((a6==1)&&((a3==5)&&(!(a0==1)&&((a20==1)&&((a12==12)&&((((a27==1)&&((a4==1)&&(input==1)))&&(a18==1))&&!(a5==1)))))))&&!(a15==1))&&!(a22==1))){ + a0 = 1; + a5 = 1; + a3 = 8; + a22 = 1; + a4 = 0; + a12 = 8; + a18 = 0; + a15 = 1; + return -1; + } else if((((a20==1)&&(((a6==1)&&(!(a15==1)&&((a27==1)&&((a12==9)&&(((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==6))&&(a5==1))))))&&!(a4==1)))&&!(a0==1))){ + a12 = 8; + a22 = 1; + a0 = 1; + a4 = 1; + a3 = 4; + a15 = 1; + a18 = 1; + return -1; + } else if(((a3==7)&&(((((a5==1)&&(((((((input==5)&&((a18==1)||!(a18==1)))&&(a20==1))&&!(a22==1))&&!(a4==1))&&(a6==1))&&!(a27==1)))&&(a12==10))&&!(a0==1))&&!(a15==1)))){ + if((a15==1)){ + a27 = 1; + a6 = 0; + a3 = 8; + a18 = 0; + a22 = 1; + a15 = 1; + a12 = 11; + }else{ + a27 = 1; + a12 = 8; + a3 = 8; + a0 = 1; + a15 = 1; + a18 = 0; + a22 = 1; + } + return 21; + } else if((((a4==1)&&((!(a27==1)&&(!(a6==1)&&((a20==1)&&((((!(a22==1)&&((input==2)&&((a18==1)||!(a18==1))))&&!(a0==1))&&(a15==1))&&(a5==1)))))&&(a12==11)))&&(a3==5))){ + a22 = 1; + a4 = 0; + a12 = 12; + a18 = 1; + a3 = 8; + a15 = 0; + a0 = 1; + return -1; + } else if((!(a0==1)&&((!(a5==1)&&(((((a6==1)&&((a12==12)&&((((input==1)&&!(a18==1))&&(a3==6))&&(a27==1))))&&(a22==1))&&(a20==1))&&!(a4==1)))&&!(a15==1)))){ + a3 = 5; + a12 = 8; + a15 = 1; + a4 = 1; + a0 = 1; + a5 = 1; + a22 = 0; + return 24; + } else if(((a12==10)&&((a4==1)&&((a6==1)&&(!(a15==1)&&(((a20==1)&&(!(a22==1)&&((a5==1)&&((!(a0==1)&&((input==4)&&((a18==1)||!(a18==1))))&&(a3==4)))))&&!(a27==1))))))){ + a22 = 1; + a12 = 8; + a18 = 0; + a15 = 1; + a27 = 1; + a0 = 1; + a3 = 6; + a4 = 0; + return 26; + } else if(((a6==1)&&(((a5==1)&&((!(a4==1)&&(((a20==1)&&(((a3==7)&&((((a18==1)||!(a18==1))&&(input==3))&&(a12==11)))&&!(a15==1)))&&(a27==1)))&&!(a22==1)))&&!(a0==1)))){ + a22 = 1; + a15 = 1; + a4 = 1; + a0 = 1; + a12 = 10; + a18 = 1; + return -1; + } else if(((!(a4==1)&&(((a3==8)&&(((a12==11)&&((a0==1)&&(((a27==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==6)))&&(a5==1))))&&!(a6==1)))&&(a20==1)))&&(a15==1))){ + a22 = 1; + a4 = 1; + a18 = 0; + a12 = 10; + a6 = 1; + return -1; + } return calculate_output34(input); + } + + int calculate_output34(int input) { + if(((((a20==1)&&((!(a0==1)&&((!(a5==1)&&(!(a27==1)&&((input==5)&&((((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==7)))||((a3==8)&&((a22==1)&&(a18==1)))))))&&!(a6==1)))&&(a12==8)))&&(a4==1))&&!(a15==1))){ + a18 = 0; + a22 = 1; + a27 = 1; + a6 = 1; + a3 = 8; + a12 = 10; + a4 = 0; + return -1; + } else if(((a22==1)&&(((a0==1)&&(!(a6==1)&&((((a3==4)&&((a5==1)&&((!(a27==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a20==1))))&&(a12==12))&&!(a4==1))))&&(a15==1)))){ + a12 = 10; + a6 = 1; + a18 = 1; + return -1; + } else if(((((((!(a0==1)&&((a27==1)&&((a6==1)&&(!(a4==1)&&((input==6)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))))&&(a5==1))&&(a15==1))&&(a3==7))&&(a20==1))&&(a12==9))){ + a0 = 1; + a5 = 0; + a22 = 0; + a27 = 0; + a6 = 0; + a12 = 8; + a3 = 6; + a18 = 1; + return 21; + } else if(((a12==9)&&(((a4==1)&&(!(a5==1)&&((a3==7)&&(!(a22==1)&&((a20==1)&&(((((a0==1)&&(input==3))&&(a27==1))&&(a18==1))&&(a6==1)))))))&&!(a15==1)))){ + a12 = 8; + a27 = 0; + a3 = 8; + a4 = 0; + return 26; + } else if((((!(a5==1)&&((a4==1)&&(((a20==1)&&((a3==4)&&(((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==3))&&(a15==1))&&!(a0==1))))&&(a6==1))))&&(a12==9))&&(a27==1))){ + a5 = 1; + a12 = 11; + a6 = 0; + a18 = 1; + a27 = 0; + a0 = 1; + a22 = 0; + return 24; + } else if(((a4==1)&&(((!(a5==1)&&((a20==1)&&(((a12==8)&&(((((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4))))||(((a3==4)&&((a22==1)&&!(a18==1)))&&!(a6==1)))&&(input==6)))&&!(a27==1))))&&!(a15==1))&&(a0==1)))){ + a3 = 4; + a22 = 1; + a5 = 1; + a18 = 1; + a6 = 1; + a27 = 1; + a15 = 1; + return -1; + } else if((!(a27==1)&&((a5==1)&&((a12==8)&&(((!(a15==1)&&(((a4==1)&&(!(a6==1)&&((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&(a0==1)))&&(a20==1))&&(a3==4)))))){ + a12 = 12; + a22 = 1; + a3 = 7; + a18 = 0; + a27 = 1; + a15 = 1; + a6 = 1; + return 21; + } else if(((a6==1)&&(((((a27==1)&&(((((a22==1)&&((a4==1)&&((input==6)&&((a18==1)||!(a18==1)))))&&(a20==1))&&(a5==1))&&(a3==8)))&&!(a15==1))&&(a0==1))&&(a12==9)))){ + a15 = 1; + a5 = 0; + a18 = 0; + a3 = 4; + a4 = 0; + a12 = 11; + return 21; + } else if(((((((((a20==1)&&(((a27==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==4)))&&(a12==10)))&&(a5==1))&&!(a6==1))&&!(a4==1))&&(a0==1))&&(a15==1))&&(a3==8))){ + a6 = 1; + a12 = 12; + a22 = 1; + a4 = 1; + a3 = 4; + a0 = 0; + a18 = 1; + return -1; + } else if(((!(a6==1)&&((((((a12==10)&&(((!(a15==1)&&((input==1)&&(a4==1)))&&(a20==1))&&!(a27==1)))&&(a3==5))&&(a18==1))&&(a5==1))&&!(a22==1)))&&(a0==1))){ + a6 = 1; + a22 = 1; + a12 = 8; + a27 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if((!(a5==1)&&((a12==10)&&((((((!(a27==1)&&((((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==3)))&&(a15==1))&&(a0==1))&&(a20==1))&&(a6==1))&&(a4==1))))){ + a22 = 0; + a3 = 4; + a15 = 0; + a18 = 0; + a27 = 1; + a5 = 1; + return 26; + } else if((!(a4==1)&&((((((((input==1)&&(((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1))))&&(a20==1))&&(a5==1))&&!(a15==1))&&(a12==10))&&!(a0==1))&&!(a27==1)))){ + a18 = 1; + a6 = 1; + a27 = 1; + a0 = 1; + a12 = 8; + a22 = 1; + a15 = 1; + a3 = 4; + return 21; + } else if(((((a20==1)&&(((((((a3==8)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==6)))&&!(a4==1))&&!(a5==1))&&!(a0==1))&&(a27==1))&&!(a15==1)))&&(a12==10))&&(a6==1))){ + a22 = 1; + a6 = 0; + a18 = 1; + a0 = 1; + a3 = 4; + a15 = 1; + return 21; + } else if(((((((!(a6==1)&&((a3==8)&&((a20==1)&&((((input==2)&&((a18==1)||!(a18==1)))&&(a15==1))&&!(a27==1)))))&&(a12==8))&&(a5==1))&&!(a0==1))&&(a4==1))&&!(a22==1))){ + if((a15==1)){ + a4 = 0; + a0 = 1; + a3 = 7; + a27 = 1; + a6 = 1; + a18 = 0; + }else{ + a15 = 0; + a0 = 1; + a12 = 10; + a18 = 1; + a22 = 1; + } + return 24; + } else if((!(a15==1)&&(((((a4==1)&&(((a6==1)&&((((a12==12)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a3==5))&&(a20==1)))&&!(a5==1)))&&(a27==1))&&(a22==1))&&!(a0==1)))){ + a5 = 1; + a15 = 1; + a18 = 1; + a12 = 8; + a3 = 7; + a0 = 1; + return -1; + } else if((((a27==1)&&(((a3==8)&&((((a12==10)&&(((a6==1)&&((input==2)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))))&&(a15==1)))&&(a20==1))&&!(a5==1)))&&!(a0==1)))&&(a4==1))){ + a5 = 1; + a22 = 1; + a6 = 0; + a18 = 1; + a15 = 0; + a4 = 0; + a0 = 1; + return -1; + } else if((((a5==1)&&(!(a0==1)&&(((!(a27==1)&&(!(a6==1)&&(((input==2)&&(((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1)))))&&!(a4==1))))&&!(a15==1))&&(a20==1))))&&(a12==9))){ + a12 = 8; + a0 = 1; + a22 = 1; + a18 = 1; + a3 = 6; + a15 = 1; + a6 = 1; + a27 = 1; + return -1; + } else if(((a3==4)&&((a27==1)&&((a22==1)&&((a20==1)&&((a4==1)&&((a12==9)&&(!(a6==1)&&(!(a0==1)&&(((a5==1)&&((input==2)&&((a18==1)||!(a18==1))))&&(a15==1))))))))))){ + if((a27==1)){ + a22 = 0; + a12 = 10; + a18 = 0; + a15 = 0; + a4 = 0; + a5 = 0; + }else{ + a0 = 1; + a18 = 1; + a22 = 0; + a6 = 1; + a12 = 10; + a5 = 0; + a4 = 0; + a3 = 6; + } + return 21; + } else if((!(a15==1)&&((((a4==1)&&((a20==1)&&((!(a5==1)&&((!(a6==1)&&((input==4)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))&&(a3==6)))&&(a27==1))))&&(a0==1))&&(a12==10)))){ + if((a12==12)){ + a0 = 0; + a22 = 1; + a12 = 11; + a18 = 0; + a3 = 8; + a5 = 1; + }else{ + a6 = 1; + a22 = 1; + a3 = 5; + a27 = 0; + a15 = 1; + a18 = 1; + } + return 21; + } else if((((((a18==1)&&(((((a20==1)&&((!(a27==1)&&((input==1)&&(a22==1)))&&(a3==8)))&&(a12==12))&&(a15==1))&&(a5==1)))&&(a0==1))&&(a6==1))&&!(a4==1))){ + a27 = 1; + a22 = 0; + a4 = 1; + a18 = 0; + a5 = 0; + a12 = 11; + return 24; + } else if(((((!(a4==1)&&(((!(a15==1)&&(((((input==1)&&((a18==1)||!(a18==1)))&&(a6==1))&&!(a22==1))&&(a20==1)))&&(a3==6))&&!(a27==1)))&&!(a0==1))&&(a5==1))&&(a12==8))){ + a15 = 1; + a18 = 1; + a3 = 5; + a0 = 1; + a27 = 1; + a22 = 1; + a4 = 1; + return 21; + } else if(((!(a0==1)&&((a5==1)&&((((a3==4)&&(((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a15==1))&&(a12==11))&&(a27==1)))&&(a20==1))&&!(a4==1))))&&!(a6==1))){ + a22 = 1; + a0 = 1; + a18 = 0; + a15 = 0; + a12 = 10; + return -1; + } else if((!(a15==1)&&((a27==1)&&((((((a6==1)&&(((input==1)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8))))&&(a0==1)))&&!(a4==1))&&(a20==1))&&(a5==1))&&(a12==10))))){ + a18 = 0; + a22 = 0; + a27 = 0; + a5 = 0; + a12 = 9; + a6 = 0; + a3 = 8; + return 21; + } else if(((a6==1)&&((a20==1)&&(((a22==1)&&(!(a27==1)&&(((a15==1)&&((a0==1)&&(!(a18==1)&&((a4==1)&&((input==3)&&(a3==5))))))&&(a5==1))))&&(a12==11))))){ + a3 = 4; + a4 = 0; + a27 = 1; + a18 = 1; + return 21; + } else if((((((!(a0==1)&&((a12==11)&&((a20==1)&&((a5==1)&&(!(a6==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a4==1)))))))&&!(a27==1))&&(a22==1))&&(a3==8))&&!(a15==1))){ + if((a22==1)){ + a18 = 0; + a0 = 1; + a3 = 4; + a27 = 1; + a5 = 0; + }else{ + a18 = 1; + a12 = 8; + a6 = 1; + a27 = 1; + a0 = 1; + a15 = 1; + a3 = 4; + } + return 26; + } else if(((((!(a6==1)&&((!(a5==1)&&(((a4==1)&&(((a3==4)&&((input==5)&&((a18==1)||!(a18==1))))&&(a20==1)))&&(a27==1)))&&!(a22==1)))&&(a15==1))&&!(a0==1))&&(a12==12))){ + a22 = 1; + a6 = 1; + a18 = 1; + a12 = 11; + return -1; + } else if((((a12==9)&&((((((((input==1)&&(((a3==7)&&((a22==1)&&(a18==1)))||(((a3==6)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))))&&(a20==1))&&(a6==1))&&(a0==1))&&(a5==1))&&(a4==1))&&(a27==1)))&&!(a15==1))){ + a12 = 10; + a5 = 0; + a22 = 0; + a6 = 0; + a3 = 6; + a18 = 0; + return 21; + } else if(((!(a0==1)&&((((!(a4==1)&&((((((a3==6)&&((a22==1)&&(a18==1)))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a18==1)&&!(a22==1)))))&&(input==4))&&!(a15==1))&&(a12==9)))&&(a6==1))&&!(a27==1))&&!(a5==1)))&&(a20==1))){ + a22 = 1; + a18 = 0; + a12 = 8; + a15 = 1; + a0 = 1; + a27 = 1; + a5 = 1; + a3 = 5; + return 21; + } else if(((a15==1)&&((((a12==10)&&(((((((input==2)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a0==1))&&(a27==1))&&(a3==8))&&(a4==1))&&!(a5==1)))&&(a20==1))&&!(a6==1)))){ + a4 = 0; + a3 = 7; + a18 = 0; + a5 = 1; + a22 = 0; + return -1; + } else if(((a20==1)&&(((a5==1)&&((a12==9)&&((a15==1)&&((a27==1)&&(!(a0==1)&&(((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==3))&&!(a6==1))&&(a4==1)))))))&&(a3==6)))){ + a27 = 0; + a22 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + a15 = 0; + a5 = 0; + return 21; + } else if((((!(a6==1)&&(((((a12==8)&&(((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==2))&&(a4==1))&&(a0==1)))&&(a27==1))&&!(a5==1))&&(a20==1)))&&!(a15==1))&&(a3==7))){ + a3 = 6; + a4 = 0; + a22 = 1; + a15 = 1; + a18 = 0; + a5 = 1; + a12 = 11; + return 21; + } else if(((a3==4)&&(((a20==1)&&(!(a15==1)&&(!(a5==1)&&((a12==12)&&(!(a0==1)&&(!(a6==1)&&((a4==1)&&((input==5)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))))))))&&(a27==1)))){ + a5 = 1; + a18 = 1; + a6 = 1; + a4 = 0; + a12 = 8; + a15 = 1; + a22 = 0; + a0 = 1; + a3 = 8; + return -1; + } else if((!(a5==1)&&((a15==1)&&(((a20==1)&&(((a27==1)&&(!(a6==1)&&((a12==8)&&((input==3)&&(((!(a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5))))))))&&(a4==1)))&&(a0==1))))){ + a22 = 1; + a12 = 9; + a18 = 0; + a4 = 0; + a15 = 0; + a3 = 5; + return 26; + } else if(((a5==1)&&((!(a0==1)&&((a15==1)&&(!(a6==1)&&((a20==1)&&(((a4==1)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==2)))&&(a12==10))))))&&!(a27==1)))){ + a4 = 0; + a6 = 1; + a27 = 1; + a22 = 1; + a3 = 7; + a18 = 1; + a0 = 1; + a12 = 8; + return -1; + } else if(((((a0==1)&&(((a27==1)&&((((a4==1)&&((a3==6)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==2))))&&(a6==1))&&(a20==1)))&&(a12==11)))&&(a15==1))&&(a5==1))){ + a18 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + return -1; + } else if(((!(a0==1)&&((!(a4==1)&&((!(a27==1)&&(((a15==1)&&((input==6)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1))))||((a3==7)&&(!(a18==1)&&(a22==1))))))&&!(a5==1)))&&(a20==1)))&&(a12==8)))&&!(a6==1))){ + a15 = 0; + a12 = 10; + a18 = 1; + a22 = 1; + a3 = 8; + a4 = 1; + a27 = 1; + a5 = 1; + return -1; + } else if(((((((((a12==8)&&((a15==1)&&(!(a27==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2)))))&&(a0==1))&&(a3==7))&&(a20==1))&&!(a4==1))&&!(a6==1))&&(a5==1))){ + a3 = 8; + a18 = 1; + a22 = 1; + return 21; + } else if(((((a5==1)&&((a12==10)&&(((a22==1)&&(((a20==1)&&(!(a0==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a4==1))))&&(a3==4)))&&!(a6==1))))&&(a15==1))&&(a27==1))){ + a18 = 0; + a3 = 8; + a4 = 0; + a12 = 12; + return 24; + } else if(((a3==5)&&((a27==1)&&(((((a22==1)&&((a5==1)&&(((a12==10)&&(((a20==1)&&(input==5))&&!(a15==1)))&&!(a18==1))))&&(a6==1))&&(a0==1))&&(a4==1))))){ + a4 = 0; + a6 = 0; + a15 = 1; + return -1; + } else if(((a3==5)&&(((a0==1)&&(!(a4==1)&&((((((!(a15==1)&&((input==5)&&(a27==1)))&&(a18==1))&&(a22==1))&&(a6==1))&&(a5==1))&&(a12==9))))&&(a20==1)))){ + a15 = 1; + a12 = 8; + a3 = 4; + a4 = 1; + return -1; + } else if(((((a6==1)&&(!(a0==1)&&(!(a27==1)&&((!(a15==1)&&(((input==1)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))||((a3==8)&&((a22==1)&&!(a18==1)))))&&!(a5==1)))&&(a12==8)))))&&!(a4==1))&&(a20==1))){ + if((a12==8)){ + a15 = 1; + a5 = 1; + a22 = 1; + a6 = 0; + a27 = 1; + a18 = 1; + a3 = 6; + }else{ + a22 = 1; + a4 = 1; + a12 = 10; + a3 = 4; + a18 = 1; + } + return 21; + } else if(((a3==5)&&(((!(a4==1)&&((a27==1)&&((a20==1)&&(((a12==12)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6))&&(a5==1)))&&!(a6==1)))))&&(a15==1))&&!(a0==1)))){ + a3 = 6; + a27 = 0; + a0 = 1; + a18 = 1; + a22 = 1; + return 26; + } else if(((((a27==1)&&((a12==9)&&((a6==1)&&(((((a3==5)&&((input==4)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))&&!(a15==1))&&!(a4==1))&&(a20==1)))))&&!(a5==1))&&!(a0==1))){ + a22 = 0; + a6 = 0; + a18 = 1; + a12 = 11; + a3 = 4; + a0 = 1; + a5 = 1; + return 21; + } else if(((!(a6==1)&&((((!(a15==1)&&(((((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a27==1))&&(a0==1))&&(a20==1)))&&!(a5==1))&&(a3==6))&&!(a4==1)))&&(a12==9))){ + a5 = 1; + a22 = 0; + a3 = 4; + a12 = 12; + a18 = 0; + a15 = 1; + a6 = 1; + return 24; + } else if(((((!(a6==1)&&((a12==9)&&((a5==1)&&(((a3==8)&&(((input==1)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a0==1)))&&!(a15==1)))))&&(a20==1))&&(a4==1))&&(a27==1))){ + a3 = 4; + a22 = 1; + a15 = 1; + a18 = 1; + a12 = 8; + a0 = 1; + a6 = 1; + return -1; + } else if(((a12==12)&&((a27==1)&&((!(a15==1)&&((((((a5==1)&&((input==1)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))&&(a0==1))&&(a3==7))&&!(a4==1))&&(a6==1)))&&(a20==1))))){ + a18 = 0; + a4 = 1; + a3 = 6; + a22 = 1; + a27 = 0; + a6 = 0; + return 26; + } else if(((a3==6)&&((a6==1)&&(((a5==1)&&((((a22==1)&&((a4==1)&&(((a20==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a12==8))))&&!(a15==1))&&!(a27==1)))&&!(a0==1))))){ + if((a22==1)){ + a15 = 1; + a12 = 9; + a3 = 8; + a0 = 1; + a22 = 0; + a18 = 0; + }else{ + a18 = 0; + a4 = 0; + a0 = 1; + a3 = 7; + a15 = 1; + a27 = 1; + } + return 26; + } else if(((((!(a6==1)&&((!(a0==1)&&((((a12==9)&&((((a18==1)||!(a18==1))&&(input==5))&&(a5==1)))&&!(a4==1))&&(a3==5)))&&(a22==1)))&&(a27==1))&&(a20==1))&&!(a15==1))){ + a0 = 1; + a6 = 1; + a12 = 12; + a18 = 1; + return 21; + } else if(((a12==11)&&((a15==1)&&((a20==1)&&(!(a0==1)&&(!(a4==1)&&((a27==1)&&((a3==7)&&((!(a6==1)&&((input==1)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a5==1)))))))))){ + a18 = 0; + a22 = 1; + a3 = 5; + a27 = 0; + a0 = 1; + a5 = 1; + a15 = 0; + return 26; + } else if(((a20==1)&&(((((a27==1)&&((a5==1)&&(!(a6==1)&&((a18==1)&&((a22==1)&&(((input==2)&&!(a4==1))&&!(a0==1)))))))&&(a12==9))&&(a3==4))&&!(a15==1)))){ + a3 = 5; + a15 = 1; + a12 = 10; + a18 = 0; + a0 = 1; + return 26; + } else if((((a3==4)&&(!(a27==1)&&(((((((a18==1)&&(((input==2)&&(a4==1))&&(a15==1)))&&!(a6==1))&&(a20==1))&&(a5==1))&&(a0==1))&&!(a22==1))))&&(a12==11))){ + a18 = 0; + a27 = 1; + a4 = 0; + a15 = 0; + a12 = 12; + return 26; + } else if(((a6==1)&&(((((!(a27==1)&&(!(a15==1)&&(((((input==4)&&(a4==1))&&(a18==1))&&(a12==12))&&(a22==1))))&&(a3==7))&&(a0==1))&&(a20==1))&&(a5==1)))){ + a12 = 10; + a3 = 6; + a5 = 0; + a15 = 1; + return -1; + } else if(((a0==1)&&((a12==9)&&((a6==1)&&((a20==1)&&((((a27==1)&&((!(a22==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a15==1)))&&!(a4==1)))&&!(a5==1))&&(a3==8))))))){ + a4 = 1; + a18 = 1; + a5 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + return -1; + } else if(((((a12==11)&&(!(a5==1)&&((((a0==1)&&(!(a4==1)&&(!(a15==1)&&((input==2)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))))))&&!(a27==1))&&(a20==1))))&&(a3==8))&&!(a6==1))){ + a3 = 4; + a4 = 1; + a27 = 1; + a6 = 1; + a5 = 1; + a15 = 1; + a12 = 8; + a22 = 1; + a18 = 1; + return -1; + } else if(((a3==4)&&((a20==1)&&(((!(a15==1)&&((a5==1)&&(!(a0==1)&&(((a22==1)&&(!(a6==1)&&(!(a4==1)&&(input==5))))&&(a27==1)))))&&(a12==9))&&(a18==1))))){ + a3 = 6; + a0 = 1; + a15 = 1; + a12 = 10; + return 24; + } else if(((a4==1)&&(((a12==10)&&(!(a22==1)&&((((a27==1)&&(((a6==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&(a3==8)))&&(a20==1)))&&(a0==1))&&(a5==1))))&&(a15==1)))){ + a12 = 11; + a5 = 0; + a22 = 1; + a3 = 7; + a18 = 0; + a4 = 0; + return 24; + } else if((((a27==1)&&((!(a4==1)&&(((((a0==1)&&(((a12==9)&&(!(a15==1)&&(input==3)))&&(a3==7)))&&(a20==1))&&(a18==1))&&!(a6==1)))&&!(a22==1)))&&(a5==1))){ + a15 = 1; + a4 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + a6 = 1; + return -1; + } else if((!(a5==1)&&(!(a0==1)&&((a12==11)&&((a15==1)&&((((((input==1)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1)))))&&(a4==1))&&(a20==1))&&!(a27==1))&&!(a6==1))))))){ + if((a18==1)){ + a0 = 1; + a6 = 1; + a22 = 0; + a27 = 1; + a12 = 8; + a3 = 6; + a5 = 1; + a18 = 1; + }else{ + a27 = 1; + a6 = 1; + a18 = 1; + a3 = 8; + a0 = 1; + a22 = 1; + a5 = 1; + a12 = 8; + } + return 24; + } else if(((((a4==1)&&((a20==1)&&(!(a27==1)&&((a12==11)&&(((((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6)))||((a3==6)&&(!(a18==1)&&(a22==1))))&&(input==1))&&!(a6==1))&&!(a5==1))))))&&(a15==1))&&!(a0==1))){ + if((a3==7)){ + a0 = 1; + a12 = 8; + a3 = 8; + a4 = 0; + a18 = 0; + a27 = 1; + a6 = 1; + a5 = 1; + a22 = 0; + }else{ + a22 = 1; + a12 = 8; + a18 = 0; + a0 = 1; + a5 = 1; + a27 = 1; + a3 = 7; + } + return 24; + } else if((((a3==4)&&((a15==1)&&((((a12==11)&&((!(a4==1)&&(((a20==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a0==1)))&&!(a6==1)))&&!(a27==1))&&(a5==1))))&&!(a22==1))){ + a18 = 1; + a4 = 1; + a12 = 12; + a3 = 5; + a6 = 1; + a27 = 1; + a22 = 1; + return -1; + } else if(((((a0==1)&&(!(a5==1)&&(!(a27==1)&&(((((a3==4)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==4)))&&(a12==11))&&(a20==1))&&(a15==1)))))&&!(a6==1))&&(a4==1))){ + a22 = 1; + a3 = 7; + a5 = 1; + a12 = 10; + a6 = 1; + a18 = 0; + a27 = 1; + a15 = 0; + return 24; + } else if(((a20==1)&&((((a3==7)&&(((((!(a5==1)&&((input==1)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a0==1))&&!(a27==1))&&(a12==12))&&(a4==1)))&&!(a15==1))&&(a6==1)))){ + a6 = 0; + a4 = 0; + a3 = 5; + a18 = 1; + a22 = 0; + a27 = 1; + a12 = 10; + return 26; + } else if((((!(a27==1)&&((((a6==1)&&((!(a4==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a12==9)))&&(a20==1)))&&!(a15==1))&&!(a0==1)))&&(a3==7))&&(a5==1))){ + if((a22==1)){ + a18 = 1; + a0 = 1; + a27 = 1; + a3 = 5; + a22 = 0; + a15 = 1; + a4 = 1; + a12 = 8; + }else{ + a0 = 1; + a6 = 0; + a18 = 1; + a12 = 11; + a3 = 5; + a22 = 1; + } + return 21; + } else if((!(a4==1)&&((a3==6)&&(((a0==1)&&(((a27==1)&&((a5==1)&&(((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==4))&&!(a6==1))&&(a20==1))))&&!(a15==1)))&&(a12==10))))){ + a15 = 1; + a18 = 0; + a3 = 4; + a4 = 1; + a27 = 0; + a22 = 0; + return 21; + } else if(((((((a12==8)&&(!(a0==1)&&(!(a27==1)&&(((a20==1)&&((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a5==1)))))&&(a4==1))&&!(a6==1))&&!(a15==1))&&(a3==8))){ + a22 = 1; + a12 = 11; + a0 = 1; + a3 = 5; + a27 = 1; + a18 = 0; + a4 = 0; + return 26; + } else if((((!(a0==1)&&(((((!(a6==1)&&(((a27==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a12==12)))&&(a3==8))&&(a20==1))&&(a5==1))&&!(a15==1)))&&(a22==1))&&!(a4==1))){ + if((a18==1)){ + a0 = 1; + a18 = 1; + a4 = 1; + a27 = 0; + a3 = 4; + a22 = 0; + a12 = 10; + a5 = 0; + }else{ + a12 = 8; + a3 = 5; + a15 = 1; + a0 = 1; + a18 = 1; + a4 = 1; + } + return 26; + } else if(((((a12==11)&&(!(a5==1)&&(((a3==5)&&((a27==1)&&(!(a18==1)&&(((a15==1)&&(!(a0==1)&&(input==2)))&&(a6==1)))))&&(a22==1))))&&(a20==1))&&(a4==1))){ + a12 = 8; + a18 = 1; + a5 = 1; + a3 = 4; + a0 = 1; + return -1; + } else if((((a20==1)&&(((a12==8)&&(!(a6==1)&&((a3==4)&&(!(a0==1)&&(!(a18==1)&&(!(a5==1)&&(((a4==1)&&(input==5))&&!(a22==1))))))))&&(a27==1)))&&!(a15==1))){ + a5 = 1; + a18 = 1; + a22 = 1; + a12 = 9; + a15 = 1; + a4 = 0; + a27 = 0; + a0 = 1; + return -1; + } else if(((((a0==1)&&(!(a4==1)&&(((((a12==10)&&((!(a5==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a20==1)))&&(a22==1))&&(a3==7))&&!(a27==1))))&&(a6==1))&&!(a15==1))){ + a12 = 11; + a15 = 1; + a4 = 1; + a18 = 1; + return 26; + } else if(((a12==11)&&((a15==1)&&((((!(a6==1)&&((((a0==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a5==1)))&&(a27==1))&&(a20==1)))&&(a4==1))&&(a3==6))&&!(a22==1))))){ + a12 = 12; + a22 = 1; + a18 = 1; + a6 = 1; + a3 = 4; + return 26; + } else if((!(a4==1)&&(((a12==11)&&((a6==1)&&(!(a15==1)&&(((((a5==1)&&((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a27==1))&&!(a0==1))&&(a20==1)))))&&(a3==7)))){ + a22 = 1; + a12 = 8; + a0 = 1; + a6 = 0; + a4 = 1; + a18 = 1; + a15 = 1; + a27 = 1; + a3 = 8; + return -1; + } else if(((!(a22==1)&&(((a20==1)&&(!(a4==1)&&((a6==1)&&(((a3==6)&&(!(a5==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a27==1))))&&(a12==12)))))&&!(a0==1)))&&!(a15==1))){ + a6 = 0; + a18 = 0; + a3 = 7; + a4 = 1; + a5 = 1; + a0 = 1; + a15 = 1; + a22 = 1; + a12 = 8; + return 21; + } else if((!(a15==1)&&((((a20==1)&&((a12==9)&&(((!(a27==1)&&((input==5)&&(((a3==7)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6))))))&&(a4==1))&&(a0==1))))&&!(a5==1))&&!(a6==1)))){ + a18 = 1; + a22 = 1; + a12 = 12; + a3 = 6; + a27 = 1; + a4 = 0; + a5 = 1; + return 26; + } else if(((!(a5==1)&&(!(a4==1)&&(((a12==8)&&((!(a0==1)&&((a20==1)&&((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==3))&&(a6==1))))&&(a3==5)))&&(a27==1))))&&(a15==1))){ + a12 = 9; + a3 = 7; + a18 = 1; + a15 = 0; + a4 = 1; + a22 = 1; + return -1; + } else if((((!(a15==1)&&((a20==1)&&(!(a0==1)&&(((a12==10)&&(!(a5==1)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==1))))&&(a27==1)))))&&!(a4==1))&&(a6==1))){ + a18 = 1; + a22 = 1; + a4 = 1; + a3 = 4; + a5 = 1; + a15 = 1; + a0 = 1; + a12 = 8; + return -1; + } else if(((a15==1)&&(!(a6==1)&&((!(a0==1)&&((a5==1)&&(((a4==1)&&(((input==2)&&(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1)))))&&(a12==9)))&&(a20==1))))&&!(a27==1))))){ + a22 = 0; + a27 = 1; + a0 = 1; + a6 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + return -1; + } else if(((((a4==1)&&((a3==8)&&(!(a18==1)&&(!(a6==1)&&((((a12==8)&&((!(a22==1)&&(input==5))&&!(a5==1)))&&(a15==1))&&(a20==1))))))&&(a0==1))&&(a27==1))){ + if((a20==1)){ + a0 = 0; + a3 = 7; + a15 = 0; + a22 = 1; + a18 = 1; + a5 = 1; + }else{ + a6 = 1; + a5 = 1; + a3 = 7; + a4 = 0; + a12 = 11; + a0 = 0; + a15 = 0; + } + return 26; + } else if(((a4==1)&&((a0==1)&&((a18==1)&&((a15==1)&&((a5==1)&&((a3==7)&&((!(a22==1)&&(((a6==1)&&((input==3)&&(a12==9)))&&!(a27==1)))&&(a20==1))))))))){ + a18 = 0; + a6 = 0; + a27 = 1; + a3 = 6; + a12 = 10; + return 21; + } else if((!(a15==1)&&((((a12==12)&&(((a20==1)&&((a0==1)&&(!(a4==1)&&((input==2)&&((((a22==1)&&!(a18==1))&&(a3==5))||(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5))))))))&&(a6==1)))&&!(a5==1))&&!(a27==1)))){ + a27 = 1; + a18 = 0; + a12 = 11; + a22 = 1; + a3 = 8; + a5 = 1; + return -1; + } else if(((a18==1)&&((a20==1)&&(((((!(a27==1)&&((a12==11)&&(!(a5==1)&&((a3==7)&&((a0==1)&&(input==3))))))&&(a4==1))&&!(a15==1))&&(a22==1))&&(a6==1))))){ + a4 = 0; + a3 = 6; + a0 = 0; + a5 = 1; + a6 = 0; + a27 = 1; + return -1; + } else if(((!(a4==1)&&((a3==5)&&(((a12==12)&&(!(a27==1)&&((((((a22==1)&&(input==2))&&!(a18==1))&&!(a5==1))&&(a6==1))&&(a20==1))))&&(a15==1))))&&(a0==1))){ + a18 = 1; + a3 = 7; + a15 = 0; + a6 = 0; + return 26; + } else if(((!(a27==1)&&((a3==7)&&(((!(a4==1)&&((a12==11)&&((a15==1)&&(!(a5==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==6))))))&&!(a6==1))&&(a0==1))))&&(a20==1))){ + a18 = 1; + a5 = 1; + a3 = 4; + a12 = 8; + a6 = 1; + a4 = 1; + a27 = 1; + a22 = 1; + return -1; + } else if(((!(a5==1)&&((a12==10)&&((((((a3==6)&&((a20==1)&&(!(a27==1)&&((input==4)&&((a18==1)||!(a18==1))))))&&!(a22==1))&&!(a4==1))&&!(a6==1))&&!(a15==1))))&&(a0==1))){ + a18 = 1; + a6 = 1; + a12 = 8; + a5 = 1; + a22 = 1; + a4 = 1; + a27 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if(((a6==1)&&((a3==6)&&(!(a27==1)&&((a18==1)&&((((!(a0==1)&&((a12==8)&&(((input==1)&&(a20==1))&&(a4==1))))&&!(a5==1))&&(a15==1))&&(a22==1))))))){ + a4 = 0; + a3 = 8; + a0 = 1; + a27 = 1; + a5 = 1; + return -1; + } else if((((a27==1)&&(((a22==1)&&((a3==6)&&(((((a15==1)&&(((a5==1)&&(input==4))&&(a12==12)))&&(a18==1))&&(a20==1))&&!(a4==1))))&&!(a0==1)))&&!(a6==1))){ + a0 = 1; + a6 = 1; + a3 = 8; + return 24; + } else if((!(a15==1)&&((a0==1)&&(((a27==1)&&(((((input==6)&&((((a6==1)&&((!(a22==1)&&(a18==1))&&(a3==8)))||((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8))))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4)))))&&(a4==1))&&(a20==1))&&(a5==1)))&&(a12==9))))){ + a3 = 4; + a6 = 1; + a22 = 1; + a18 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if(((((a12==11)&&(!(a5==1)&&((a20==1)&&(((((!(a6==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a15==1))&&!(a0==1))&&(a3==6))&&!(a27==1)))))&&(a22==1))&&!(a4==1))){ + a18 = 1; + a27 = 1; + a4 = 1; + a0 = 1; + a15 = 0; + a5 = 1; + a6 = 1; + a3 = 7; + return -1; + } else if((((((!(a27==1)&&(((a6==1)&&((((((a22==1)&&(a18==1))&&(a3==7))||(((a3==6)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==6))))&&(input==3))&&(a4==1)))&&!(a0==1)))&&(a12==10))&&!(a5==1))&&(a15==1))&&(a20==1))){ + if((a5==1)){ + a22 = 0; + a3 = 6; + a18 = 1; + a0 = 1; + a4 = 0; + a15 = 0; + a27 = 1; + }else{ + a12 = 9; + a18 = 0; + a15 = 0; + a5 = 1; + a3 = 7; + a22 = 1; + a6 = 0; + } + return -1; + } else if((((((((a12==10)&&((!(a6==1)&&(((a22==1)&&((input==2)&&!(a15==1)))&&(a20==1)))&&!(a18==1)))&&(a3==8))&&(a27==1))&&(a5==1))&&(a0==1))&&!(a4==1))){ + a15 = 1; + a4 = 1; + a22 = 0; + a18 = 1; + a3 = 5; + a6 = 1; + return -1; + } else if(((((a27==1)&&(!(a4==1)&&((a6==1)&&(((a5==1)&&((!(a0==1)&&(!(a15==1)&&((input==1)&&((a18==1)||!(a18==1)))))&&(a3==6)))&&(a12==11)))))&&(a22==1))&&(a20==1))){ + a15 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if((((((!(a27==1)&&(!(a6==1)&&((!(a15==1)&&((a5==1)&&((input==2)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&(a12==8))))&&(a20==1))&&(a3==7))&&(a4==1))&&!(a0==1))){ + a0 = 1; + a18 = 0; + a15 = 1; + a22 = 0; + a3 = 6; + a27 = 1; + return 21; + } else if(((a20==1)&&(!(a15==1)&&(((a4==1)&&((!(a0==1)&&(!(a5==1)&&((((a3==4)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a27==1))&&(a12==8))))&&!(a22==1)))&&(a6==1))))){ + a27 = 0; + a18 = 1; + a0 = 1; + a4 = 0; + a12 = 11; + return 26; + } else if((((a20==1)&&(((((((a12==10)&&((((input==5)&&(a5==1))&&(a3==8))&&(a27==1)))&&!(a0==1))&&!(a22==1))&&!(a4==1))&&!(a15==1))&&!(a18==1)))&&!(a6==1))){ + a0 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((((((a12==10)&&((a20==1)&&(((a15==1)&&((a4==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a22==1))))&&(a27==1))))&&(a3==6))&&!(a0==1))&&!(a6==1))&&(a5==1))){ + a12 = 12; + a3 = 5; + a0 = 1; + a6 = 1; + a5 = 0; + a18 = 1; + a22 = 0; + return -1; + } else if(((((((((((a6==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a3==6)))&&(a12==10))&&(a27==1))&&(a20==1))&&!(a4==1))&&!(a15==1))&&!(a22==1))&&(a0==1))&&(a5==1))){ + a4 = 1; + a6 = 0; + a18 = 0; + return -1; + } else if(((((a27==1)&&((a12==11)&&((a4==1)&&((a15==1)&&(!(a6==1)&&((((!(a5==1)&&(input==3))&&!(a0==1))&&!(a18==1))&&(a3==8)))))))&&(a22==1))&&(a20==1))){ + a4 = 0; + a3 = 6; + a18 = 1; + a12 = 10; + a0 = 1; + return 26; + } else if((((!(a0==1)&&((a20==1)&&(!(a6==1)&&((((((input==2)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&(a3==6))&&!(a5==1))&&(a12==9))&&!(a15==1)))))&&!(a27==1))&&(a4==1))){ + a12 = 12; + a6 = 1; + a3 = 7; + a22 = 0; + a0 = 1; + a18 = 1; + a5 = 1; + a15 = 1; + return 26; + } else if((((a0==1)&&((((!(a18==1)&&((!(a6==1)&&(((a4==1)&&((a20==1)&&(input==3)))&&(a12==11)))&&(a5==1)))&&(a3==8))&&(a27==1))&&!(a22==1)))&&!(a15==1))){ + a3 = 4; + a6 = 1; + a18 = 1; + a12 = 8; + a22 = 1; + a15 = 1; + return -1; + } else if(((((a20==1)&&(((a27==1)&&(((a12==9)&&(((input==3)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8))))&&(a0==1)))&&(a6==1)))&&!(a5==1)))&&!(a15==1))&&!(a4==1))){ + a15 = 1; + a22 = 1; + a5 = 1; + a18 = 0; + a6 = 0; + a3 = 4; + a27 = 0; + return 26; + } else if((!(a0==1)&&(!(a15==1)&&((!(a6==1)&&(!(a5==1)&&((((a12==10)&&((input==1)&&(((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))))&&(a20==1))&&!(a27==1))))&&(a4==1))))){ + if((a4==1)){ + a0 = 1; + a22 = 1; + a15 = 1; + a5 = 1; + a18 = 1; + a27 = 1; + a12 = 8; + a4 = 0; + a3 = 4; + }else{ + a15 = 1; + a4 = 0; + a12 = 12; + a6 = 1; + a0 = 1; + a18 = 0; + a22 = 1; + a3 = 5; + } + return -1; + } else if(((((a12==12)&&((a15==1)&&(!(a18==1)&&((a27==1)&&((a22==1)&&(((!(a0==1)&&((a20==1)&&(input==2)))&&!(a6==1))&&(a5==1)))))))&&(a3==6))&&(a4==1))){ + a12 = 10; + a0 = 1; + a18 = 1; + a3 = 5; + a4 = 0; + a5 = 0; + return 21; + } else if(((a3==7)&&((!(a27==1)&&(!(a6==1)&&((a22==1)&&(((!(a0==1)&&((a20==1)&&((a15==1)&&((input==1)&&(a12==9)))))&&(a4==1))&&!(a5==1)))))&&!(a18==1)))){ + a27 = 1; + a4 = 0; + a12 = 8; + a0 = 1; + a6 = 1; + a3 = 4; + a18 = 1; + a5 = 1; + return 24; + } else if((((((((a4==1)&&((a20==1)&&((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==6))&&(a6==1))&&!(a5==1))))&&(a3==5))&&!(a15==1))&&!(a0==1))&&!(a27==1))&&(a12==9))){ + a12 = 12; + a27 = 1; + a0 = 1; + a22 = 1; + a3 = 7; + a6 = 0; + a4 = 0; + a18 = 0; + return 26; + } else if(((((((a15==1)&&((!(a4==1)&&((a20==1)&&((input==5)&&((((a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))))))&&!(a0==1)))&&(a27==1))&&!(a6==1))&&(a5==1))&&(a12==12))){ + a22 = 0; + a15 = 0; + a0 = 1; + a27 = 0; + a12 = 9; + a3 = 6; + a18 = 1; + return 21; + } else if(((((((a27==1)&&((!(a0==1)&&((!(a18==1)&&((a3==4)&&((input==4)&&!(a6==1))))&&!(a5==1)))&&(a4==1)))&&(a20==1))&&!(a22==1))&&(a15==1))&&(a12==8))){ + a12 = 11; + a15 = 0; + a0 = 1; + a18 = 1; + a5 = 1; + a3 = 6; + return -1; + } else if(((((((a22==1)&&((a5==1)&&((((a6==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a3==4)))&&(a0==1))&&!(a27==1))))&&(a12==9))&&(a15==1))&&(a20==1))&&(a4==1))){ + a18 = 1; + a5 = 0; + a6 = 0; + a4 = 0; + a3 = 7; + a15 = 0; + return 21; + } else if((((((((a4==1)&&((a5==1)&&((a27==1)&&((((input==3)&&!(a6==1))&&(a0==1))&&!(a18==1)))))&&(a20==1))&&(a3==6))&&!(a22==1))&&(a15==1))&&(a12==10))){ + a3 = 5; + a6 = 1; + return -1; + } else if(((a20==1)&&(!(a27==1)&&((((((!(a6==1)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==4)))&&!(a4==1))&&(a12==12))&&(a0==1))&&!(a15==1))&&!(a5==1))))){ + a5 = 1; + a4 = 1; + a15 = 1; + a22 = 0; + a18 = 0; + a27 = 1; + a3 = 4; + return 26; + } else if((!(a5==1)&&(((!(a6==1)&&((a3==5)&&((!(a4==1)&&((((!(a27==1)&&(input==3))&&(a20==1))&&!(a22==1))&&(a15==1)))&&(a0==1))))&&(a12==10))&&!(a18==1)))){ + if((a3==5)){ + a0 = 0; + a27 = 1; + a12 = 11; + a3 = 8; + a5 = 1; + a15 = 0; + }else{ + a22 = 1; + a15 = 0; + a5 = 1; + a4 = 1; + } + return -1; + } else if((!(a0==1)&&((((a4==1)&&(((a3==7)&&((((a6==1)&&((input==6)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))))&&(a20==1))&&(a12==12)))&&(a5==1)))&&(a27==1))&&(a15==1)))){ + a18 = 0; + a0 = 1; + a4 = 0; + a3 = 4; + a22 = 0; + a12 = 10; + return -1; + } else if((((((!(a15==1)&&((a12==11)&&(((a6==1)&&((input==4)&&((((a22==1)&&!(a18==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1)))))))&&!(a27==1))))&&(a4==1))&&(a20==1))&&!(a0==1))&&(a5==1))){ + a15 = 1; + a27 = 1; + a12 = 8; + a0 = 1; + a22 = 1; + a3 = 5; + a18 = 1; + return 24; + } else if(((((((a4==1)&&(((((((a3==6)&&((a22==1)&&!(a18==1)))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1)))))&&(input==2))&&!(a27==1))&&(a5==1))&&(a12==8)))&&(a0==1))&&!(a6==1))&&(a20==1))&&(a15==1))){ + a3 = 8; + a27 = 1; + a22 = 1; + a6 = 1; + a4 = 0; + a0 = 0; + a18 = 1; + return 21; + } else if((!(a5==1)&&(!(a4==1)&&((a22==1)&&(((!(a0==1)&&((((a20==1)&&(!(a27==1)&&(((a18==1)||!(a18==1))&&(input==6))))&&(a6==1))&&(a15==1)))&&(a12==8))&&(a3==7)))))){ + a18 = 0; + a12 = 12; + a3 = 6; + a27 = 1; + a15 = 0; + return 21; + } else if((!(a27==1)&&((a22==1)&&((((!(a18==1)&&((a12==10)&&((a3==8)&&((a0==1)&&((a4==1)&&(!(a15==1)&&(input==1)))))))&&(a20==1))&&!(a5==1))&&(a6==1))))){ + a4 = 0; + a3 = 6; + a15 = 1; + a27 = 1; + a6 = 0; + a18 = 1; + return 26; + } else if(((!(a0==1)&&((a4==1)&&((!(a18==1)&&(((a3==4)&&((!(a15==1)&&(((a22==1)&&(input==5))&&!(a27==1)))&&(a20==1)))&&(a12==9)))&&(a6==1))))&&(a5==1))){ + a18 = 1; + a15 = 1; + a3 = 8; + a22 = 0; + a12 = 8; + a0 = 1; + a27 = 1; + return 26; + } else if((((a20==1)&&(!(a0==1)&&(!(a5==1)&&(!(a22==1)&&((!(a18==1)&&(!(a27==1)&&(!(a15==1)&&(((a3==6)&&(input==2))&&(a4==1)))))&&(a6==1))))))&&(a12==8))){ + if((a22==1)){ + a5 = 1; + a22 = 1; + a0 = 1; + a3 = 8; + a6 = 0; + a12 = 10; + }else{ + a15 = 1; + a12 = 10; + a0 = 1; + a27 = 1; + } + return 21; + } else if((((a27==1)&&(!(a15==1)&&(((a20==1)&&(((((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==6))&&!(a6==1))&&(a4==1))&&!(a5==1))&&(a12==11)))&&!(a0==1))))&&(a3==7))){ + a27 = 0; + a18 = 0; + a4 = 0; + a22 = 1; + a15 = 1; + a5 = 1; + a3 = 4; + a0 = 1; + return 21; + } else if((((((a0==1)&&(((((a5==1)&&(((a20==1)&&(!(a27==1)&&(input==1)))&&!(a6==1)))&&!(a22==1))&&(a15==1))&&(a4==1)))&&(a3==6))&&!(a18==1))&&(a12==8))){ + a6 = 1; + a27 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((((((((a3==4)&&(((((a12==11)&&((input==3)&&(a20==1)))&&(a0==1))&&!(a18==1))&&!(a22==1)))&&(a5==1))&&(a27==1))&&!(a4==1))&&!(a6==1))&&!(a15==1))){ + a4 = 1; + a18 = 1; + a15 = 1; + a3 = 8; + return -1; + } else if((((a20==1)&&(((((a3==5)&&((a18==1)&&((((!(a6==1)&&(input==3))&&!(a0==1))&&!(a15==1))&&(a27==1))))&&!(a4==1))&&(a12==12))&&!(a22==1)))&&!(a5==1))){ + a0 = 1; + a15 = 1; + a6 = 1; + a3 = 7; + return -1; + } else if((((a12==9)&&(!(a0==1)&&((a6==1)&&(((a27==1)&&(!(a4==1)&&((a20==1)&&(((((!(a22==1)&&(a18==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==5)))))&&!(a5==1)))))&&(a15==1))){ + if((a20==1)){ + a18 = 1; + a22 = 0; + a12 = 10; + a3 = 5; + a4 = 1; + a15 = 0; + }else{ + a4 = 1; + a6 = 0; + a18 = 1; + a12 = 10; + a3 = 7; + a0 = 1; + a15 = 0; + a22 = 0; + } + return 26; + } else if(((((a27==1)&&((((!(a4==1)&&(!(a0==1)&&((((a3==7)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1)))))&&(input==1))))&&(a15==1))&&(a20==1))&&(a12==11)))&&(a6==1))&&!(a5==1))){ + a27 = 0; + a18 = 0; + a6 = 0; + a4 = 1; + a3 = 7; + a0 = 1; + a22 = 1; + return 26; + } else if(((!(a4==1)&&((a3==4)&&(!(a0==1)&&((!(a6==1)&&(!(a5==1)&&((a20==1)&&((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==6))&&!(a27==1)))))&&!(a15==1)))))&&(a12==10))){ + if((a12==8)){ + a18 = 1; + a5 = 1; + a27 = 1; + a0 = 1; + a15 = 1; + a3 = 6; + a12 = 8; + a6 = 1; + a22 = 1; + }else{ + a4 = 1; + a15 = 1; + a6 = 1; + a27 = 1; + a18 = 0; + a12 = 8; + a5 = 1; + a0 = 1; + a22 = 1; + } + return 21; + } else if(((!(a27==1)&&((((!(a5==1)&&((!(a22==1)&&(((a12==10)&&((input==2)&&!(a6==1)))&&!(a4==1)))&&(a3==7)))&&(a0==1))&&(a15==1))&&!(a18==1)))&&(a20==1))){ + a6 = 1; + a5 = 1; + a18 = 1; + a4 = 1; + a27 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if((((!(a22==1)&&((((a12==8)&&((a6==1)&&(((!(a27==1)&&((input==5)&&!(a18==1)))&&(a20==1))&&(a3==6))))&&!(a15==1))&&!(a5==1)))&&!(a0==1))&&(a4==1))){ + a27 = 1; + a12 = 11; + a3 = 5; + return -1; + } else if(((a20==1)&&((((a4==1)&&(((((a6==1)&&((((input==6)&&(a18==1))&&(a3==7))&&(a15==1)))&&(a5==1))&&(a22==1))&&!(a27==1)))&&(a12==8))&&!(a0==1)))){ + a4 = 0; + a3 = 8; + a27 = 1; + a12 = 10; + return 21; + } else if((((!(a6==1)&&(!(a27==1)&&((((!(a15==1)&&((((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==1)))&&(a20==1))&&!(a0==1))&&(a12==9))))&&(a5==1))&&!(a4==1))){ + a12 = 8; + a18 = 0; + a15 = 1; + a0 = 1; + a27 = 1; + a3 = 6; + a22 = 0; + a4 = 1; + a6 = 1; + return 21; + } else if(((!(a6==1)&&((((!(a27==1)&&((a20==1)&&((a12==8)&&(!(a15==1)&&((a18==1)&&((input==6)&&!(a22==1)))))))&&!(a4==1))&&!(a0==1))&&(a5==1)))&&(a3==6))){ + a0 = 1; + a27 = 1; + a12 = 10; + a4 = 1; + a18 = 0; + a3 = 7; + return 24; + } else if((((a27==1)&&((a12==11)&&(!(a6==1)&&((a20==1)&&(!(a0==1)&&((((input==5)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a18==1)&&(a22==1)))))&&(a15==1))&&(a5==1)))))))&&(a4==1))){ + a4 = 0; + a12 = 8; + a18 = 0; + a27 = 0; + a0 = 1; + a3 = 8; + a22 = 0; + a15 = 0; + return 26; + } else if((((((((!(a27==1)&&((a3==8)&&((a4==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a20==1)))))&&(a5==1))&&(a0==1))&&(a6==1))&&(a15==1))&&(a22==1))&&(a12==9))){ + a12 = 8; + a3 = 4; + a27 = 1; + a18 = 1; + return -1; + } else if(((a12==9)&&(((!(a27==1)&&(((a6==1)&&(((a15==1)&&(((((a18==1)&&(a22==1))&&(a3==5))||(((!(a22==1)&&(a18==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4))))&&(input==5)))&&!(a5==1)))&&!(a4==1)))&&(a0==1))&&(a20==1)))){ + a12 = 8; + a3 = 4; + a27 = 1; + a4 = 1; + a18 = 1; + a22 = 1; + a5 = 1; + return -1; + } else if(((!(a6==1)&&((((a12==10)&&((((!(a27==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==6)))&&!(a5==1))&&(a4==1))&&!(a0==1)))&&(a3==8))&&(a20==1)))&&(a15==1))){ + if((a6==1)){ + a22 = 0; + a0 = 1; + a18 = 0; + a12 = 9; + a27 = 1; + }else{ + a18 = 0; + a22 = 0; + a3 = 7; + a4 = 0; + a0 = 1; + a15 = 0; + a12 = 9; + a27 = 1; + } + return 26; + } else if((!(a15==1)&&(((((((((a5==1)&&((input==4)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a20==1))&&(a4==1))&&(a3==6))&&(a0==1))&&(a6==1))&&!(a27==1))&&(a12==11)))){ + if((a27==1)){ + a22 = 0; + a4 = 0; + a12 = 12; + a18 = 1; + a6 = 0; + a3 = 4; + a5 = 0; + }else{ + a18 = 0; + a12 = 10; + a27 = 1; + a22 = 0; + a5 = 0; + a4 = 0; + a6 = 0; + a3 = 8; + } + return 26; + } else if((!(a4==1)&&((((((a27==1)&&((a12==12)&&((a6==1)&&((input==4)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))||((a3==6)&&((a22==1)&&!(a18==1))))))))&&(a5==1))&&(a15==1))&&(a20==1))&&(a0==1)))){ + a18 = 0; + a4 = 1; + a22 = 1; + a6 = 0; + a3 = 4; + a12 = 10; + return -1; + } else if((!(a15==1)&&((((a3==4)&&(!(a0==1)&&((a12==10)&&(((a20==1)&&(!(a4==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==6))))&&(a27==1)))))&&(a5==1))&&(a6==1)))){ + a0 = 1; + a12 = 11; + a22 = 0; + a6 = 0; + a15 = 1; + a3 = 5; + a18 = 0; + return -1; + } else if((((a22==1)&&(((((a5==1)&&((!(a6==1)&&(((a20==1)&&((a27==1)&&(input==5)))&&(a3==8)))&&!(a4==1)))&&!(a18==1))&&!(a0==1))&&(a12==8)))&&!(a15==1))){ + if((a12==12)){ + a3 = 4; + a6 = 1; + a12 = 9; + a5 = 0; + }else{ + a0 = 1; + a22 = 0; + a5 = 0; + a3 = 5; + a4 = 1; + a12 = 12; + } + return 26; + } else if(((a12==10)&&(!(a5==1)&&(!(a15==1)&&(!(a6==1)&&((((((((input==3)&&((a18==1)||!(a18==1)))&&(a3==6))&&!(a4==1))&&(a27==1))&&(a0==1))&&!(a22==1))&&(a20==1))))))){ + a15 = 1; + a12 = 8; + a22 = 1; + a18 = 1; + a3 = 4; + a4 = 1; + a5 = 1; + a6 = 1; + return -1; + } else if((((((((a4==1)&&((!(a15==1)&&(((!(a5==1)&&(input==6))&&(a6==1))&&(a22==1)))&&(a12==12)))&&(a20==1))&&!(a18==1))&&!(a27==1))&&(a0==1))&&(a3==8))){ + a5 = 1; + a12 = 8; + a18 = 1; + a15 = 1; + a27 = 1; + a3 = 4; + return -1; + } else if(((((((a12==11)&&((a4==1)&&(!(a18==1)&&((a6==1)&&(!(a27==1)&&((a5==1)&&((input==1)&&(a15==1))))))))&&!(a22==1))&&(a3==8))&&(a20==1))&&(a0==1))){ + a0 = 0; + a18 = 1; + a5 = 0; + a27 = 1; + a3 = 6; + a15 = 0; + a4 = 0; + return 26; + } else if((!(a0==1)&&((a20==1)&&(((!(a6==1)&&(((!(a27==1)&&(((((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a22==1)&&!(a18==1))))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==4)))&&(a15==1))&&(a12==9)))&&(a5==1))&&(a4==1))))){ + a3 = 7; + a27 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + return -1; + } else if((((a12==9)&&((a4==1)&&((a22==1)&&((a3==4)&&((a27==1)&&(((((a5==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a6==1))&&!(a0==1))&&(a15==1)))))))&&(a20==1))){ + a0 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if((!(a22==1)&&(!(a27==1)&&(!(a15==1)&&((!(a4==1)&&(((!(a0==1)&&(!(a5==1)&&((a20==1)&&((input==1)&&(a18==1)))))&&(a12==11))&&(a3==4)))&&(a6==1)))))){ + a5 = 1; + a27 = 1; + a15 = 1; + a0 = 1; + a3 = 8; + a22 = 1; + a12 = 8; + a4 = 1; + return 24; + } else if((((((!(a15==1)&&(((a12==11)&&(((a20==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==4)))&&!(a6==1)))&&!(a5==1)))&&!(a4==1))&&(a3==7))&&(a27==1))&&(a0==1))){ + a3 = 8; + a18 = 0; + a4 = 1; + a5 = 1; + a15 = 1; + a22 = 1; + a6 = 1; + return -1; + } else if((!(a15==1)&&((a27==1)&&(!(a4==1)&&((((a6==1)&&(((a12==11)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==2)))&&(a5==1)))&&(a0==1))&&(a20==1)))))){ + a22 = 1; + a3 = 6; + a15 = 1; + a18 = 0; + a27 = 0; + return 26; + } else if((!(a6==1)&&((a20==1)&&(((a15==1)&&((a12==12)&&((a4==1)&&((((((input==3)&&(a3==6))&&(a27==1))&&!(a0==1))&&(a22==1))&&(a5==1)))))&&(a18==1))))){ + a12 = 8; + a0 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if((((a6==1)&&(!(a18==1)&&((a3==6)&&((((!(a4==1)&&((((a15==1)&&(input==3))&&(a12==8))&&(a27==1)))&&!(a22==1))&&(a0==1))&&!(a5==1)))))&&(a20==1))){ + a18 = 1; + a22 = 1; + a5 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if(((((!(a5==1)&&((a18==1)&&((a6==1)&&(((a15==1)&&(!(a27==1)&&((a20==1)&&(!(a22==1)&&(input==6)))))&&(a3==6)))))&&(a4==1))&&(a12==8))&&(a0==1))){ + a3 = 4; + a22 = 1; + a5 = 1; + a27 = 1; + return -1; + } else if((((a3==5)&&(!(a15==1)&&(((a12==8)&&(!(a0==1)&&((((a6==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==2)))&&(a20==1))&&!(a4==1))))&&!(a27==1))))&&!(a5==1))){ + a15 = 1; + a27 = 1; + a3 = 6; + a18 = 1; + a5 = 1; + a22 = 1; + a0 = 1; + return 24; + } else if(((a20==1)&&(((!(a4==1)&&(((a0==1)&&((a3==6)&&((a12==12)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a6==1)))))&&!(a27==1)))&&(a5==1))&&!(a15==1)))){ + a22 = 0; + a27 = 1; + a12 = 10; + a6 = 0; + a3 = 5; + a5 = 0; + a18 = 1; + return 26; + } else if((((a12==9)&&((!(a15==1)&&(((a27==1)&&((input==2)&&(((((a3==8)&&((a4==1)&&(!(a22==1)&&!(a18==1))))&&!(a6==1))||(((a3==4)&&(!(a4==1)&&((a22==1)&&(a18==1))))&&(a6==1)))||((a6==1)&&((a3==4)&&((!(a18==1)&&(a22==1))&&!(a4==1)))))))&&(a5==1)))&&(a20==1)))&&(a0==1))){ + a4 = 0; + a18 = 1; + a12 = 12; + a22 = 1; + a3 = 7; + a6 = 1; + return 26; + } else if((!(a0==1)&&((((((a12==10)&&((a27==1)&&(((a18==1)&&((a15==1)&&(!(a5==1)&&(input==3))))&&(a3==4))))&&(a4==1))&&!(a6==1))&&!(a22==1))&&(a20==1)))){ + if((a3==8)){ + a4 = 0; + a3 = 6; + }else{ + a12 = 11; + a6 = 1; + a0 = 1; + a3 = 6; + a4 = 0; + } + return -1; + } else if(((a4==1)&&(((((!(a27==1)&&(((a15==1)&&((input==3)&&(((((a18==1)&&!(a22==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6)))||(((a18==1)&&(a22==1))&&(a3==7)))))&&(a6==1)))&&(a12==10))&&(a5==1))&&(a0==1))&&(a20==1)))){ + a4 = 0; + a15 = 0; + a12 = 8; + a22 = 1; + a3 = 7; + a5 = 0; + a18 = 1; + return -1; + } else if(((((a0==1)&&((a15==1)&&((a27==1)&&(((((a4==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==3)))&&(a12==10))&&(a20==1))&&(a5==1)))))&&!(a6==1))&&(a3==4))){ + a12 = 8; + a18 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if((((!(a0==1)&&((a22==1)&&((a27==1)&&((((a20==1)&&(((a5==1)&&((input==1)&&(a12==10)))&&!(a15==1)))&&!(a6==1))&&!(a18==1)))))&&(a4==1))&&(a3==8))){ + a12 = 12; + a0 = 1; + a18 = 1; + a4 = 0; + return 21; + } else if(((a12==9)&&(!(a0==1)&&((((a4==1)&&((a5==1)&&(!(a15==1)&&(!(a27==1)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==4))))))&&(a6==1))&&(a20==1))))){ + if((a18==1)){ + a3 = 4; + a22 = 0; + a18 = 1; + a27 = 1; + a12 = 8; + a0 = 1; + a15 = 1; + }else{ + a12 = 8; + a0 = 1; + a27 = 1; + a22 = 1; + a18 = 1; + a15 = 1; + a3 = 4; + } + return 21; + } else if(((a4==1)&&(!(a5==1)&&(!(a15==1)&&((a20==1)&&((a6==1)&&((a0==1)&&((((input==2)&&((((a3==6)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))||(((a22==1)&&(a18==1))&&(a3==7))))&&(a12==9))&&!(a27==1))))))))){ + a18 = 0; + a3 = 8; + a4 = 0; + a12 = 10; + a27 = 1; + a6 = 0; + a5 = 1; + a22 = 1; + return 26; + } else if((((a4==1)&&((!(a5==1)&&((a20==1)&&(((!(a0==1)&&(((input==5)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&(a6==1)))&&!(a15==1))&&(a12==8))))&&(a3==7)))&&(a27==1))){ + a12 = 10; + a18 = 1; + a0 = 1; + a15 = 1; + a3 = 5; + a6 = 0; + a22 = 1; + return -1; + } else if(((a12==11)&&((a4==1)&&((((a27==1)&&((a20==1)&&(!(a15==1)&&(((!(a5==1)&&((input==4)&&(a0==1)))&&!(a6==1))&&!(a18==1)))))&&(a22==1))&&(a3==6))))){ + a27 = 0; + a6 = 1; + a22 = 0; + return 26; + } else if((((((!(a5==1)&&((a4==1)&&((a22==1)&&((a6==1)&&(((a12==11)&&((input==2)&&!(a18==1)))&&!(a27==1))))))&&(a20==1))&&!(a0==1))&&(a3==4))&&!(a15==1))){ + a5 = 1; + a3 = 7; + a0 = 1; + a15 = 1; + a27 = 1; + a12 = 8; + return 26; + } else if(((a20==1)&&(((((!(a6==1)&&((((input==6)&&(((a3==6)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))))&&(a5==1))&&!(a15==1)))&&(a12==12))&&!(a27==1))&&(a0==1))&&!(a4==1)))){ + a15 = 1; + a18 = 1; + a12 = 9; + a22 = 0; + a3 = 8; + a5 = 0; + return -1; + } else if((((((a15==1)&&(!(a5==1)&&((a4==1)&&((((((a20==1)&&(input==6))&&!(a6==1))&&(a12==10))&&(a18==1))&&(a0==1)))))&&(a27==1))&&(a22==1))&&(a3==6))){ + a3 = 4; + a4 = 0; + a5 = 1; + a27 = 0; + return 26; + } else if(((a6==1)&&((a4==1)&&((!(a22==1)&&((!(a27==1)&&((a18==1)&&(((a15==1)&&((a3==6)&&((a0==1)&&(input==1))))&&(a12==11))))&&(a20==1)))&&(a5==1))))){ + a12 = 9; + a5 = 0; + a3 = 4; + a6 = 0; + a22 = 1; + a15 = 0; + return -1; + } else if(((a22==1)&&(((((a20==1)&&(((a3==7)&&((((((a18==1)||!(a18==1))&&(input==4))&&!(a5==1))&&!(a15==1))&&!(a4==1)))&&(a12==12)))&&!(a0==1))&&(a6==1))&&(a27==1)))){ + a18 = 0; + a3 = 8; + a22 = 0; + a0 = 1; + a6 = 0; + a12 = 8; + a5 = 1; + a15 = 1; + a4 = 1; + return 21; + } else if((((a12==11)&&((a6==1)&&((((!(a5==1)&&(!(a27==1)&&((a20==1)&&(((input==5)&&!(a18==1))&&!(a22==1)))))&&!(a4==1))&&(a15==1))&&(a3==5))))&&!(a0==1))){ + a27 = 1; + a0 = 1; + a5 = 1; + a12 = 8; + a3 = 4; + a4 = 1; + return 24; + } else if(((a27==1)&&((((a22==1)&&((((a4==1)&&(!(a6==1)&&(((a12==8)&&((input==3)&&(a3==7)))&&(a18==1))))&&(a20==1))&&!(a15==1)))&&!(a0==1))&&(a5==1)))){ + a15 = 1; + a6 = 1; + a12 = 10; + a0 = 1; + return -1; + } else if(((a3==4)&&(((((((((a6==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&!(a27==1)))&&(a12==11))&&!(a15==1))&&!(a4==1))&&(a20==1))&&!(a5==1))&&(a0==1))&&(a22==1)))){ + a18 = 1; + a4 = 1; + a5 = 1; + a15 = 1; + a12 = 8; + a27 = 1; + return -1; + } else if(((((((!(a4==1)&&(!(a15==1)&&((input==3)&&(((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4))))||(((a3==4)&&((a22==1)&&!(a18==1)))&&!(a6==1))))))&&(a0==1))&&(a27==1))&&!(a5==1))&&(a12==11))&&(a20==1))){ + a3 = 4; + a6 = 1; + a4 = 1; + a18 = 1; + a12 = 8; + a15 = 1; + a5 = 1; + a22 = 1; + return -1; + } else if(((!(a15==1)&&(((a27==1)&&((a12==10)&&((a5==1)&&(((a0==1)&&((input==2)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))))&&(a20==1)))))&&!(a6==1)))&&!(a4==1))){ + a4 = 1; + a18 = 1; + a12 = 8; + a15 = 1; + a6 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((a5==1)&&(!(a0==1)&&((a27==1)&&((a4==1)&&(((a15==1)&&((((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==4))&&(a6==1))&&(a12==11)))&&(a20==1))))))){ + a0 = 1; + a18 = 0; + a22 = 0; + a3 = 4; + a6 = 0; + a15 = 0; + a12 = 10; + return -1; + } else if((!(a27==1)&&((a3==4)&&(!(a15==1)&&(((((a4==1)&&((a12==10)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&!(a5==1))))&&!(a6==1))&&(a20==1))&&(a0==1)))))){ + a0 = 0; + a27 = 1; + a3 = 6; + a12 = 8; + a6 = 1; + a22 = 1; + a4 = 0; + a18 = 1; + return 26; + } else if(((((a20==1)&&(((((((a3==5)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==2)))&&(a5==1))&&!(a27==1))&&(a12==8))&&!(a15==1))&&!(a0==1)))&&(a6==1))&&(a4==1))){ + a15 = 1; + a12 = 10; + a0 = 1; + a22 = 1; + a18 = 1; + a6 = 0; + a3 = 8; + a4 = 0; + return -1; + } else if((((a3==8)&&((a5==1)&&(((!(a15==1)&&((a12==9)&&((a20==1)&&(!(a6==1)&&((a4==1)&&((input==2)&&((a18==1)||!(a18==1))))))))&&(a27==1))&&(a22==1))))&&(a0==1))){ + a15 = 1; + a3 = 6; + a27 = 0; + a18 = 1; + a12 = 8; + a6 = 1; + return 21; + } else if(((a0==1)&&((!(a18==1)&&((a20==1)&&(((a3==5)&&(!(a27==1)&&(!(a22==1)&&(!(a4==1)&&((a5==1)&&((input==5)&&(a15==1)))))))&&(a6==1))))&&(a12==8)))){ + a3 = 4; + a22 = 1; + a18 = 1; + a4 = 1; + a27 = 1; + return -1; + } else if((((a4==1)&&(((a27==1)&&(((a15==1)&&((((!(a6==1)&&((!(a18==1)&&(a22==1))&&(a3==4)))||(((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4)))))&&(input==6))&&(a12==11)))&&(a5==1)))&&(a20==1)))&&!(a0==1))){ + a3 = 7; + a6 = 1; + a0 = 1; + a18 = 0; + a4 = 0; + a12 = 10; + a22 = 0; + a5 = 0; + return 21; + } else if((((a0==1)&&((a20==1)&&((!(a27==1)&&((!(a4==1)&&(!(a5==1)&&((((input==1)&&((a18==1)||!(a18==1)))&&!(a15==1))&&(a3==7))))&&!(a6==1)))&&(a12==10))))&&(a22==1))){ + a18 = 0; + a22 = 0; + a12 = 8; + a4 = 1; + a15 = 1; + return 26; + } else if(((a20==1)&&((((a0==1)&&(((((((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1)))&&!(a6==1))||((a6==1)&&((a3==4)&&(!(a4==1)&&((a22==1)&&(a18==1))))))&&(input==1))&&(a15==1))&&(a5==1)))&&(a27==1))&&(a12==9)))){ + a3 = 4; + a15 = 0; + a18 = 0; + a6 = 1; + a12 = 12; + a22 = 1; + a4 = 0; + return 26; + } else if((!(a5==1)&&(((a20==1)&&((((!(a6==1)&&((a3==4)&&(!(a4==1)&&((input==5)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))))&&!(a0==1))&&(a15==1))&&(a27==1)))&&(a12==11)))){ + a3 = 7; + a0 = 1; + a12 = 12; + a22 = 1; + a18 = 1; + return 24; + } else if((((a15==1)&&(((a5==1)&&((((a4==1)&&((a20==1)&&((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==6))&&(a6==1))))&&(a3==6))&&(a27==1)))&&(a12==8)))&&!(a0==1))){ + a0 = 1; + a18 = 0; + a22 = 0; + a3 = 5; + return -1; + } else if(((a15==1)&&((a3==8)&&((a12==8)&&((!(a0==1)&&((((a27==1)&&(((input==2)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a6==1)))&&(a5==1))&&!(a4==1)))&&(a20==1)))))){ + a0 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + a6 = 1; + a4 = 1; + return -1; + } else if((((!(a22==1)&&(((!(a15==1)&&(!(a4==1)&&(!(a27==1)&&(((a0==1)&&((input==6)&&(a5==1)))&&(a3==6)))))&&!(a18==1))&&(a20==1)))&&(a6==1))&&(a12==12))){ + a18 = 1; + a27 = 1; + a12 = 8; + a4 = 1; + a22 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if(((a27==1)&&((((a20==1)&&((((!(a5==1)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==1)))&&(a12==12))&&!(a15==1))&&!(a4==1)))&&(a6==1))&&(a0==1)))){ + a12 = 11; + a18 = 0; + a15 = 1; + a3 = 4; + a27 = 0; + a22 = 0; + return 26; + } else if(((a20==1)&&((((a27==1)&&(((a4==1)&&(((a6==1)&&(!(a22==1)&&(((a3==4)&&(input==1))&&(a18==1))))&&(a15==1)))&&(a5==1)))&&(a0==1))&&(a12==11)))){ + a18 = 0; + a22 = 1; + a5 = 0; + a15 = 0; + a3 = 5; + a12 = 10; + return 26; + } else if(((((a12==8)&&((((!(a15==1)&&((a6==1)&&((a0==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a22==1)))))&&!(a27==1))&&(a20==1))&&(a3==7)))&&!(a4==1))&&!(a5==1))){ + if((a4==1)){ + a27 = 1; + a5 = 1; + a12 = 9; + a3 = 4; + a6 = 0; + a0 = 0; + a4 = 1; + a18 = 0; + }else{ + a5 = 1; + a4 = 1; + a3 = 6; + a18 = 0; + } + return -1; + } else if((((((((a12==11)&&((((input==6)&&(((a3==6)&&((a22==1)&&(a18==1)))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==5)))))&&(a4==1))&&!(a15==1)))&&!(a6==1))&&(a0==1))&&(a20==1))&&(a27==1))&&!(a5==1))){ + if((a20==1)){ + a5 = 1; + a12 = 12; + a0 = 0; + a3 = 5; + a22 = 1; + a18 = 1; + a15 = 1; + }else{ + a6 = 1; + a18 = 1; + a22 = 0; + a27 = 0; + a3 = 6; + } + return 26; + } else if(((((a15==1)&&((a4==1)&&((a0==1)&&((a20==1)&&(!(a27==1)&&(((((((a18==1)&&!(a22==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6)))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==6))&&(a5==1)))))))&&(a12==10))&&(a6==1))){ + a5 = 0; + a22 = 0; + a18 = 1; + a6 = 0; + a27 = 1; + a3 = 6; + return 21; + } else if((!(a15==1)&&((a3==5)&&(((a6==1)&&(!(a5==1)&&((a12==11)&&(((!(a0==1)&&(!(a4==1)&&((a22==1)&&(input==6))))&&(a27==1))&&(a20==1)))))&&!(a18==1))))){ + a6 = 0; + a5 = 1; + a12 = 12; + a0 = 1; + a22 = 0; + return -1; + } else if((!(a15==1)&&(!(a6==1)&&(!(a0==1)&&((a20==1)&&(((a22==1)&&(((a12==9)&&(((a27==1)&&((a18==1)&&(input==4)))&&!(a4==1)))&&(a3==7)))&&!(a5==1))))))){ + a0 = 1; + a5 = 1; + a15 = 1; + a4 = 1; + a18 = 0; + a22 = 0; + return 21; + } else if((((a12==10)&&(!(a6==1)&&(((((((a15==1)&&((input==3)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a3==8))&&(a0==1))&&(a27==1))&&!(a5==1))&&!(a4==1))))&&(a20==1))){ + a27 = 0; + a6 = 1; + a3 = 5; + a5 = 1; + a15 = 0; + a18 = 1; + a22 = 0; + return 26; + } else if(((a3==4)&&((!(a6==1)&&((((((!(a15==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6)))&&!(a27==1))&&(a20==1))&&!(a0==1))&&!(a4==1))&&(a5==1)))&&(a12==10)))){ + a4 = 1; + a12 = 8; + a22 = 0; + a5 = 0; + a3 = 5; + a18 = 1; + a0 = 1; + return -1; + } else if(((((((((a0==1)&&((((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))||((a3==5)&&(!(a18==1)&&(a22==1))))&&(input==4))&&(a20==1)))&&(a12==8))&&!(a27==1))&&!(a5==1))&&(a6==1))&&(a4==1))&&!(a15==1))){ + a5 = 1; + a18 = 1; + a15 = 1; + a27 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if(((!(a18==1)&&(!(a0==1)&&((a20==1)&&((!(a27==1)&&((((a3==4)&&(((input==6)&&(a12==8))&&!(a6==1)))&&!(a5==1))&&(a15==1)))&&(a4==1)))))&&!(a22==1))){ + a22 = 1; + a6 = 1; + a5 = 1; + a3 = 8; + a27 = 1; + a0 = 1; + return 21; + } else if(((!(a0==1)&&(((a15==1)&&((a4==1)&&((((a12==10)&&((input==5)&&((((a22==1)&&(a18==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a18==1)&&!(a22==1)))))))&&(a5==1))&&(a20==1))))&&!(a6==1)))&&(a27==1))){ + a6 = 1; + a0 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + return -1; + } else if(((!(a5==1)&&((((a4==1)&&((((a20==1)&&(((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==4))&&(a3==7)))&&!(a0==1))&&(a6==1)))&&!(a15==1))&&!(a27==1)))&&(a12==9))){ + if((a15==1)){ + a4 = 0; + a18 = 1; + a3 = 8; + a22 = 1; + a6 = 0; + a12 = 11; + }else{ + a22 = 0; + a18 = 0; + a0 = 1; + a12 = 8; + a5 = 1; + } + return -1; + } else if((!(a0==1)&&((!(a22==1)&&((((a27==1)&&((((a3==6)&&((!(a15==1)&&(input==3))&&!(a6==1)))&&(a5==1))&&!(a4==1)))&&!(a18==1))&&(a20==1)))&&(a12==9)))){ + a15 = 1; + a3 = 7; + a0 = 1; + a12 = 10; + return 21; + } else if(((a20==1)&&(((!(a18==1)&&((a4==1)&&((a6==1)&&((!(a22==1)&&(!(a27==1)&&(((a3==8)&&(input==1))&&(a12==11))))&&!(a15==1)))))&&!(a0==1))&&(a5==1)))){ + if((a12==8)){ + a15 = 1; + a3 = 4; + a0 = 1; + a12 = 8; + a4 = 0; + }else{ + a3 = 5; + a22 = 1; + a12 = 8; + a15 = 1; + a0 = 1; + a27 = 1; + } + return -1; + } else if(((!(a6==1)&&(((!(a15==1)&&(((((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==6))&&(a20==1))&&!(a27==1))&&(a5==1)))&&!(a4==1))&&!(a0==1)))&&(a12==11))){ + a3 = 5; + a15 = 1; + a18 = 1; + a6 = 1; + a5 = 0; + a22 = 0; + a27 = 1; + a12 = 8; + return 21; + } else if(((a0==1)&&(((a20==1)&&((((a15==1)&&((!(a22==1)&&((((input==5)&&!(a18==1))&&!(a27==1))&&!(a5==1)))&&(a3==5)))&&!(a6==1))&&!(a4==1)))&&(a12==10)))){ + a4 = 1; + a5 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if((((a0==1)&&((a12==9)&&(((a15==1)&&((a20==1)&&((!(a5==1)&&((!(a27==1)&&(!(a6==1)&&(input==3)))&&(a3==4)))&&(a4==1))))&&!(a18==1))))&&!(a22==1))){ + a6 = 1; + a12 = 8; + a27 = 1; + a5 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if((((((a4==1)&&((a12==12)&&((!(a18==1)&&((((a3==6)&&(!(a15==1)&&(input==3)))&&(a22==1))&&(a5==1)))&&(a20==1))))&&(a6==1))&&(a0==1))&&!(a27==1))){ + a15 = 1; + a18 = 1; + a27 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if((!(a4==1)&&(!(a18==1)&&(!(a5==1)&&(((a3==8)&&(((((!(a27==1)&&((a20==1)&&(input==6)))&&(a15==1))&&(a12==10))&&(a6==1))&&(a22==1)))&&(a0==1)))))){ + a22 = 0; + a6 = 0; + a15 = 0; + a12 = 9; + return 26; + } else if((!(a6==1)&&(!(a0==1)&&((a20==1)&&(((a4==1)&&(!(a27==1)&&((((input==3)&&(((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1)))))&&(a5==1))&&(a12==8))))&&!(a15==1)))))){ + if((a27==1)){ + a22 = 1; + a0 = 1; + a3 = 5; + a15 = 1; + a27 = 1; + a18 = 0; + }else{ + a18 = 1; + a6 = 1; + a4 = 0; + a22 = 1; + a12 = 10; + a15 = 1; + a3 = 4; + } + return -1; + } else if((((((((a4==1)&&((a5==1)&&(!(a6==1)&&(!(a15==1)&&((((a18==1)||!(a18==1))&&(input==3))&&(a3==7))))))&&(a12==12))&&(a27==1))&&(a20==1))&&(a22==1))&&(a0==1))){ + a27 = 0; + a22 = 0; + a3 = 4; + a6 = 1; + a18 = 1; + return 26; + } else if(((a12==10)&&(!(a5==1)&&(!(a0==1)&&(((a20==1)&&(!(a27==1)&&((a18==1)&&(!(a6==1)&&(((a3==7)&&(!(a4==1)&&(input==1)))&&!(a22==1))))))&&!(a15==1)))))){ + if((a20==1)){ + a3 = 4; + a12 = 9; + a27 = 1; + a22 = 1; + a6 = 1; + a18 = 0; + a0 = 1; + a15 = 1; + }else{ + a3 = 5; + a22 = 1; + a12 = 11; + a27 = 1; + a0 = 1; + } + return 21; + } else if(((((a15==1)&&(((((!(a5==1)&&(((a12==10)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a27==1)))&&(a0==1))&&!(a4==1))&&!(a6==1))&&(a3==5)))&&!(a22==1))&&(a20==1))){ + a4 = 1; + a12 = 8; + a18 = 1; + a5 = 1; + a3 = 4; + a6 = 1; + a22 = 1; + return -1; + } else if((!(a5==1)&&(((a0==1)&&((((a4==1)&&((a20==1)&&(((((input==3)&&((a18==1)||!(a18==1)))&&(a3==7))&&!(a15==1))&&!(a6==1))))&&(a12==12))&&(a27==1)))&&(a22==1)))){ + a3 = 4; + a5 = 1; + a12 = 8; + a6 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if((((!(a15==1)&&((((!(a27==1)&&((((input==5)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a6==1))&&(a20==1)))&&!(a0==1))&&!(a4==1))&&(a12==10)))&&(a3==6))&&(a5==1))){ + a6 = 0; + a0 = 1; + a22 = 1; + a5 = 0; + a12 = 11; + a4 = 1; + a18 = 0; + a3 = 7; + return -1; + } else if((((a20==1)&&((a15==1)&&((a6==1)&&((((((((input==1)&&(a12==10))&&(a27==1))&&!(a0==1))&&(a3==4))&&!(a5==1))&&!(a22==1))&&!(a18==1)))))&&(a4==1))){ + a12 = 8; + a0 = 1; + a5 = 1; + a6 = 0; + a3 = 6; + a15 = 0; + return 24; + } else if((((a6==1)&&(!(a4==1)&&(((a20==1)&&(((!(a22==1)&&((a0==1)&&(!(a5==1)&&((input==1)&&(a3==4)))))&&!(a18==1))&&(a12==8)))&&!(a15==1))))&&!(a27==1))){ + a3 = 8; + a6 = 0; + a27 = 1; + a15 = 1; + a12 = 11; + a22 = 1; + a5 = 1; + return 21; + } else if(((a4==1)&&((!(a0==1)&&(((a27==1)&&((((a20==1)&&((input==5)&&(((!(a18==1)&&(a22==1))&&(a3==5))||(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5))))))&&(a6==1))&&!(a15==1)))&&(a12==8)))&&(a5==1)))){ + a6 = 0; + a0 = 1; + a3 = 5; + a12 = 12; + a18 = 1; + a22 = 0; + return 21; + } else if(((a5==1)&&((a15==1)&&((a3==6)&&(((!(a0==1)&&(((a12==9)&&(!(a18==1)&&(((input==1)&&!(a22==1))&&(a4==1))))&&(a27==1)))&&(a20==1))&&!(a6==1)))))){ + a0 = 1; + a22 = 1; + a12 = 8; + a6 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((((((((a20==1)&&(((a12==9)&&((a27==1)&&((((a18==1)||!(a18==1))&&(input==4))&&!(a6==1))))&&(a0==1)))&&(a22==1))&&!(a4==1))&&(a3==5))&&(a15==1))&&!(a5==1))){ + a18 = 0; + a12 = 11; + a4 = 1; + return 21; + } else if(((a12==11)&&((a20==1)&&((((a6==1)&&(!(a18==1)&&((a15==1)&&((!(a27==1)&&(!(a22==1)&&((input==6)&&(a3==7))))&&!(a4==1)))))&&!(a5==1))&&!(a0==1))))){ + a22 = 1; + a0 = 1; + a27 = 1; + a12 = 8; + a4 = 1; + a3 = 5; + a5 = 1; + a18 = 1; + return -1; + } else if(((((a12==12)&&(((a5==1)&&((a20==1)&&(((((((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==7)))&&(input==5))&&(a0==1))&&!(a27==1))))&&!(a6==1)))&&(a15==1))&&(a4==1))){ + if((a20==1)){ + a0 = 0; + a18 = 1; + a22 = 1; + a3 = 8; + a27 = 1; + a15 = 0; + a4 = 0; + a12 = 10; + }else{ + a15 = 0; + a4 = 0; + a3 = 8; + a22 = 1; + a12 = 9; + a18 = 1; + } + return -1; + } else if((!(a4==1)&&(!(a5==1)&&((((((a20==1)&&((a27==1)&&((a12==9)&&((input==4)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))))&&!(a0==1))&&(a3==5))&&!(a6==1))&&!(a15==1))))){ + a3 = 4; + a0 = 1; + a18 = 1; + a5 = 1; + a4 = 1; + a22 = 1; + a15 = 1; + a12 = 8; + a6 = 1; + return -1; + } else if(((a3==6)&&(!(a5==1)&&(((((a4==1)&&((!(a0==1)&&((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==4))&&!(a15==1)))&&(a12==9)))&&(a6==1))&&(a20==1))&&!(a27==1))))){ + a22 = 1; + a3 = 8; + a27 = 1; + a18 = 0; + a12 = 10; + a0 = 1; + a15 = 1; + a5 = 1; + return 21; + } else if(((((((!(a0==1)&&((a3==7)&&(((a12==10)&&((input==6)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))))&&(a6==1))))&&(a20==1))&&(a4==1))&&(a5==1))&&(a27==1))&&(a15==1))){ + if((a22==1)){ + a4 = 0; + a22 = 0; + a6 = 0; + a18 = 1; + a12 = 11; + a5 = 0; + }else{ + a6 = 0; + a3 = 6; + a18 = 1; + a22 = 0; + a0 = 1; + a5 = 0; + a12 = 11; + } + return 21; + } else if(((((a6==1)&&(((a12==12)&&(((a20==1)&&((a5==1)&&(!(a4==1)&&(((a15==1)&&(input==5))&&(a27==1)))))&&(a18==1)))&&(a22==1)))&&(a3==4))&&(a0==1))){ + a4 = 1; + a6 = 0; + a12 = 10; + a18 = 0; + a3 = 5; + a15 = 0; + return -1; + } else if(((((((a15==1)&&((((a3==6)&&((a12==12)&&((a20==1)&&((input==1)&&(a4==1)))))&&!(a0==1))&&(a6==1)))&&(a27==1))&&!(a18==1))&&!(a22==1))&&(a5==1))){ + a18 = 1; + a22 = 1; + a0 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((a20==1)&&((a22==1)&&(((a0==1)&&((((a3==8)&&(!(a18==1)&&((a12==11)&&(!(a15==1)&&((input==1)&&(a5==1))))))&&!(a4==1))&&(a27==1)))&&(a6==1))))){ + a4 = 1; + a6 = 0; + a12 = 10; + a5 = 0; + a3 = 7; + return 21; + } else if(((a15==1)&&(((a5==1)&&(!(a27==1)&&(((((a20==1)&&((((a3==7)&&((a22==1)&&!(a18==1)))||(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1)))))&&(input==6)))&&!(a4==1))&&(a12==12))&&(a0==1))))&&(a6==1)))){ + a5 = 0; + a3 = 8; + a12 = 8; + a22 = 1; + a18 = 1; + return -1; + } return calculate_output35(input); + } + + int calculate_output35(int input) { + if(((a6==1)&&(((((((((((input==6)&&(a20==1))&&(a12==11))&&!(a27==1))&&!(a5==1))&&!(a18==1))&&!(a0==1))&&!(a15==1))&&(a3==5))&&!(a4==1))&&!(a22==1)))){ + a5 = 1; + a22 = 1; + a12 = 12; + a0 = 1; + a4 = 1; + return 26; + } else if((!(a0==1)&&((a20==1)&&((a5==1)&&((a12==11)&&((!(a6==1)&&(!(a4==1)&&((a27==1)&&((a3==5)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==3))))))&&!(a15==1))))))){ + a18 = 1; + a0 = 1; + a12 = 8; + a22 = 1; + a6 = 1; + a4 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if(((a5==1)&&((a3==7)&&((!(a4==1)&&((a22==1)&&((a20==1)&&((!(a0==1)&&((a12==8)&&(((a6==1)&&(input==1))&&!(a18==1))))&&!(a27==1)))))&&(a15==1))))){ + if((a4==1)){ + a0 = 1; + a18 = 1; + a27 = 1; + a3 = 6; + }else{ + a0 = 1; + a27 = 1; + a22 = 0; + a3 = 5; + a18 = 1; + } + return 24; + } else if((!(a0==1)&&((a27==1)&&(((a5==1)&&(((a20==1)&&((a15==1)&&(((input==4)&&(((a3==6)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))))&&(a12==9))))&&!(a6==1)))&&!(a4==1))))){ + a0 = 1; + a6 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + a4 = 1; + a12 = 8; + return -1; + } else if((((a15==1)&&((((a4==1)&&((a12==10)&&(!(a0==1)&&(((((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==1))&&(a27==1)))))&&(a20==1))&&!(a6==1)))&&!(a5==1))){ + a18 = 1; + a3 = 6; + a22 = 0; + a4 = 0; + a5 = 1; + a0 = 1; + return 21; + } else if((((a20==1)&&(((a15==1)&&(((a5==1)&&((a27==1)&&(!(a4==1)&&((input==2)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==8)))))))&&(a12==9)))&&(a6==1)))&&!(a0==1))){ + a27 = 0; + a4 = 1; + a0 = 1; + a12 = 10; + a18 = 1; + a22 = 0; + a3 = 6; + a6 = 0; + a15 = 0; + return -1; + } else if(((a12==11)&&((a20==1)&&((a0==1)&&((!(a18==1)&&(!(a5==1)&&((((a15==1)&&(((input==2)&&!(a27==1))&&!(a22==1)))&&!(a6==1))&&(a3==5))))&&(a4==1)))))){ + a12 = 8; + a22 = 1; + a3 = 4; + a18 = 1; + a6 = 1; + a5 = 1; + a27 = 1; + return -1; + } else if(((a3==8)&&((((!(a0==1)&&((((((!(a27==1)&&(input==4))&&(a4==1))&&!(a6==1))&&!(a22==1))&&(a20==1))&&(a12==11)))&&!(a18==1))&&(a5==1))&&(a15==1)))){ + a0 = 1; + a27 = 1; + a18 = 1; + a5 = 0; + a4 = 0; + a3 = 6; + return 21; + } else if(((a15==1)&&((a12==8)&&(!(a0==1)&&(!(a5==1)&&((a27==1)&&((a6==1)&&((a3==4)&&(((a4==1)&&((input==2)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))))&&(a20==1)))))))))){ + if((a20==1)){ + a12 = 12; + a3 = 5; + a18 = 0; + a22 = 1; + a5 = 1; + }else{ + a15 = 0; + a18 = 1; + a22 = 0; + a3 = 8; + a12 = 11; + a5 = 1; + a4 = 0; + a6 = 0; + } + return 21; + } else if(((a6==1)&&(((a3==8)&&(((a20==1)&&((((a12==9)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==3))&&!(a15==1)))&&(a4==1))&&!(a5==1)))&&!(a27==1)))&&!(a0==1)))){ + a15 = 1; + a12 = 11; + a4 = 0; + a3 = 5; + a22 = 1; + a6 = 0; + a27 = 1; + a18 = 1; + a5 = 1; + return 26; + } else if((!(a15==1)&&((a12==12)&&((a6==1)&&(!(a27==1)&&((!(a4==1)&&(((((((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a18==1)&&!(a22==1))))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==2))&&!(a5==1))&&(a0==1)))&&(a20==1))))))){ + a27 = 1; + a12 = 10; + a5 = 1; + a3 = 8; + a6 = 0; + a18 = 0; + a22 = 1; + return -1; + } else if(((a4==1)&&((a0==1)&&(((a20==1)&&(((((a3==6)&&((a6==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==4))))&&(a5==1))&&!(a27==1))&&(a12==12)))&&(a15==1))))){ + a5 = 0; + a18 = 1; + a6 = 0; + a22 = 1; + a4 = 0; + a27 = 1; + return -1; + } else if(((((((!(a27==1)&&((((a20==1)&&(((input==5)&&(a6==1))&&!(a4==1)))&&(a0==1))&&(a3==8)))&&(a12==12))&&(a18==1))&&!(a22==1))&&!(a15==1))&&!(a5==1))){ + a12 = 10; + a4 = 1; + a3 = 4; + a5 = 1; + a27 = 1; + return 26; + } else if((((a0==1)&&(((!(a5==1)&&((a22==1)&&((a3==8)&&((a20==1)&&((a4==1)&&(!(a6==1)&&((input==3)&&(a18==1))))))))&&(a27==1))&&!(a15==1)))&&(a12==8))){ + a4 = 0; + a3 = 4; + a0 = 0; + return 24; + } else if(((a6==1)&&(((a5==1)&&((a12==10)&&((!(a4==1)&&((a27==1)&&((a20==1)&&((input==3)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))||(((a22==1)&&!(a18==1))&&(a3==5)))))))&&!(a0==1))))&&(a15==1)))){ + a0 = 1; + a3 = 4; + a18 = 1; + a22 = 0; + return 24; + } else if(((a15==1)&&(!(a27==1)&&(!(a4==1)&&((!(a0==1)&&(((a3==5)&&(((a20==1)&&((input==1)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))&&!(a5==1)))&&(a12==11)))&&(a6==1)))))){ + a12 = 9; + a22 = 0; + a3 = 7; + a6 = 0; + a18 = 1; + return 21; + } else if((((((((a0==1)&&(!(a5==1)&&(((!(a27==1)&&((input==1)&&((a18==1)||!(a18==1))))&&!(a4==1))&&(a12==11))))&&!(a15==1))&&!(a6==1))&&(a22==1))&&(a3==4))&&(a20==1))){ + a15 = 1; + a12 = 8; + a4 = 1; + a6 = 1; + a5 = 1; + a27 = 1; + a18 = 1; + return -1; + } else if(((a12==8)&&((((a3==4)&&(((((a4==1)&&((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==1))&&!(a0==1)))&&(a6==1))&&(a20==1))&&(a27==1)))&&(a5==1))&&(a15==1)))){ + a18 = 1; + a22 = 0; + a6 = 0; + a12 = 10; + a3 = 6; + a15 = 0; + a0 = 1; + a5 = 0; + return 21; + } else if(((!(a6==1)&&(((a15==1)&&((((a20==1)&&((a5==1)&&((input==1)&&((((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==5))))))&&(a4==1))&&(a0==1)))&&(a12==12)))&&!(a27==1))){ + if((a6==1)){ + a12 = 9; + a27 = 1; + a6 = 1; + a22 = 1; + a3 = 8; + a4 = 0; + a0 = 0; + a18 = 1; + }else{ + a18 = 0; + a22 = 1; + a12 = 11; + a3 = 6; + a6 = 1; + } + return -1; + } else if(((((((a12==9)&&(!(a15==1)&&(((a0==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==6))&&!(a4==1)))&&(a5==1))))&&(a20==1))&&!(a27==1))&&(a3==5))&&!(a6==1))){ + a12 = 11; + a22 = 1; + a27 = 1; + a18 = 1; + a4 = 1; + a3 = 7; + a15 = 1; + return 26; + } else if(((a27==1)&&(!(a4==1)&&((a12==10)&&(((!(a22==1)&&((((((a18==1)&&(input==6))&&!(a15==1))&&(a0==1))&&!(a6==1))&&(a20==1)))&&(a5==1))&&(a3==8)))))){ + a22 = 1; + a18 = 0; + return -1; + } else if((!(a15==1)&&(((a18==1)&&(!(a6==1)&&(!(a0==1)&&(((a12==8)&&(((((input==5)&&(a5==1))&&(a27==1))&&(a3==4))&&!(a4==1)))&&(a20==1)))))&&!(a22==1)))){ + a6 = 1; + a3 = 5; + a15 = 1; + a4 = 1; + a18 = 0; + a22 = 1; + a0 = 1; + return -1; + } else if((((((a20==1)&&((((((a27==1)&&((a15==1)&&((input==3)&&(a12==10))))&&!(a5==1))&&!(a0==1))&&(a3==4))&&!(a6==1)))&&(a22==1))&&!(a18==1))&&(a4==1))){ + a18 = 1; + a12 = 11; + a6 = 1; + a3 = 7; + a0 = 1; + return 24; + } else if(((a0==1)&&((a20==1)&&(((!(a4==1)&&(((a12==11)&&(((((a6==1)&&(input==5))&&(a18==1))&&!(a22==1))&&(a3==4)))&&!(a5==1)))&&(a27==1))&&!(a15==1))))){ + a12 = 10; + a18 = 0; + a22 = 1; + a4 = 1; + a5 = 1; + return -1; + } else if(((!(a27==1)&&((a22==1)&&((!(a18==1)&&((!(a5==1)&&(((a12==11)&&((a20==1)&&((input==4)&&(a6==1))))&&(a15==1)))&&(a3==8)))&&!(a0==1))))&&(a4==1))){ + a18 = 1; + a4 = 0; + a5 = 1; + a15 = 0; + a6 = 0; + a3 = 7; + return 26; + } else if((!(a6==1)&&((a0==1)&&(((((((((a12==9)&&((a18==1)&&(input==6)))&&(a27==1))&&!(a15==1))&&(a22==1))&&!(a5==1))&&(a20==1))&&!(a4==1))&&(a3==4))))){ + if((a18==1)){ + a6 = 1; + a3 = 6; + a18 = 0; + a5 = 1; + a12 = 10; + a0 = 0; + }else{ + a18 = 0; + a0 = 0; + a6 = 1; + a12 = 8; + a3 = 8; + } + return 24; + } else if(((!(a15==1)&&((((!(a0==1)&&((!(a18==1)&&(((a3==8)&&((a22==1)&&(input==2)))&&(a4==1)))&&(a20==1)))&&(a6==1))&&!(a27==1))&&!(a5==1)))&&(a12==10))){ + a4 = 0; + a3 = 4; + a12 = 9; + a6 = 0; + a0 = 1; + a5 = 1; + return -1; + } else if((!(a6==1)&&(((a0==1)&&((a20==1)&&(!(a15==1)&&(!(a4==1)&&((((input==6)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))||(((a22==1)&&!(a18==1))&&(a3==5))))&&!(a27==1))&&(a12==8))))))&&!(a5==1)))){ + a0 = 0; + a12 = 9; + a22 = 1; + a27 = 1; + a3 = 6; + a6 = 1; + a18 = 0; + return 26; + } else if(((a4==1)&&(((((((!(a27==1)&&(((((a22==1)&&(a18==1))&&(a3==8))||((((a18==1)&&!(a22==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7))))&&(input==4)))&&(a12==8))&&(a20==1))&&(a15==1))&&(a6==1))&&!(a0==1))&&(a5==1)))){ + if((a12==11)){ + a18 = 0; + a0 = 1; + a15 = 0; + a5 = 0; + a27 = 1; + a3 = 4; + a22 = 0; + a4 = 0; + }else{ + a3 = 5; + a22 = 0; + a4 = 0; + a18 = 1; + a27 = 1; + a0 = 1; + } + return 26; + } else if((!(a15==1)&&((!(a4==1)&&((((a0==1)&&((((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==4))&&(a5==1))&&(a20==1))&&(a12==8)))&&(a3==8))&&!(a27==1)))&&!(a6==1)))){ + a6 = 1; + a15 = 1; + a4 = 1; + a3 = 4; + a27 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if((((a5==1)&&(((a18==1)&&((a6==1)&&((a0==1)&&(((a12==8)&&(((a20==1)&&((a27==1)&&(input==2)))&&!(a15==1)))&&!(a22==1)))))&&(a4==1)))&&(a3==4))){ + a4 = 0; + a22 = 1; + a3 = 6; + a6 = 0; + return 26; + } else if(((!(a0==1)&&((((((a20==1)&&(((((input==4)&&(a15==1))&&!(a22==1))&&!(a27==1))&&!(a18==1)))&&(a3==5))&&(a6==1))&&(a5==1))&&!(a4==1)))&&(a12==10))){ + a15 = 0; + a12 = 9; + a22 = 1; + a0 = 1; + a27 = 1; + a3 = 8; + return 24; + } else if(((((a0==1)&&(((a5==1)&&(((((a3==8)&&((a22==1)&&(((a18==1)||!(a18==1))&&(input==3))))&&!(a15==1))&&(a12==9))&&(a4==1)))&&(a27==1)))&&(a20==1))&&!(a6==1))){ + a18 = 1; + a12 = 8; + a15 = 1; + a27 = 0; + a6 = 1; + a22 = 0; + a3 = 6; + return 26; + } else if(((a15==1)&&(!(a18==1)&&(((((a20==1)&&((((((a5==1)&&(input==3))&&(a3==4))&&(a6==1))&&(a4==1))&&(a0==1)))&&(a27==1))&&(a22==1))&&(a12==9))))){ + a12 = 11; + a4 = 0; + a6 = 0; + a5 = 0; + a3 = 8; + return 26; + } else if((!(a15==1)&&(((((a20==1)&&((a12==8)&&((a0==1)&&((((a27==1)&&((input==5)&&((a18==1)||!(a18==1))))&&!(a6==1))&&(a5==1)))))&&!(a4==1))&&(a3==6))&&!(a22==1)))){ + a15 = 1; + a18 = 1; + a12 = 9; + a4 = 1; + a6 = 1; + a3 = 4; + a5 = 0; + return 21; + } else if(((((!(a15==1)&&(!(a5==1)&&(((a12==9)&&((((input==6)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a0==1))&&(a27==1)))&&(a3==6))))&&!(a6==1))&&(a20==1))&&!(a4==1))){ + a18 = 1; + a3 = 4; + a4 = 1; + a15 = 1; + a22 = 1; + a6 = 1; + a5 = 1; + a12 = 8; + return -1; + } else if((((((a27==1)&&((a15==1)&&((a0==1)&&(((a20==1)&&((input==1)&&(((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1))))))&&(a5==1)))))&&(a4==1))&&!(a6==1))&&(a12==12))){ + a3 = 4; + a22 = 1; + a6 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((a20==1)&&((!(a27==1)&&(!(a6==1)&&((((a3==8)&&((a0==1)&&(!(a4==1)&&((input==2)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))))&&!(a5==1))&&!(a15==1))))&&(a12==8)))){ + a18 = 1; + a27 = 1; + a12 = 11; + a22 = 1; + a3 = 4; + a6 = 1; + return 21; + } else if((((!(a22==1)&&((a27==1)&&(((((a5==1)&&(((a0==1)&&((input==5)&&!(a15==1)))&&(a20==1)))&&!(a4==1))&&(a3==5))&&(a6==1))))&&(a12==8))&&(a18==1))){ + a15 = 1; + a3 = 8; + a18 = 0; + a12 = 9; + return 21; + } else if((!(a6==1)&&(((a27==1)&&(!(a5==1)&&((!(a15==1)&&((a0==1)&&(((input==1)&&(((a3==7)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1))))))&&(a4==1))))&&(a12==8))))&&(a20==1)))){ + a18 = 1; + a6 = 1; + a3 = 4; + a5 = 1; + a22 = 1; + a15 = 1; + return -1; + } else if(((a6==1)&&(((a12==8)&&((a20==1)&&(!(a18==1)&&((!(a5==1)&&(!(a22==1)&&((((a3==6)&&(input==1))&&(a4==1))&&(a27==1))))&&!(a0==1)))))&&!(a15==1)))){ + a22 = 1; + a6 = 0; + a12 = 9; + a4 = 0; + a3 = 7; + a27 = 0; + a0 = 1; + return -1; + } else if((((!(a18==1)&&(((a3==8)&&((!(a5==1)&&(((a15==1)&&(((input==2)&&(a27==1))&&(a12==11)))&&(a20==1)))&&(a4==1)))&&!(a0==1)))&&!(a6==1))&&(a22==1))){ + a5 = 1; + a0 = 1; + a3 = 5; + return 21; + } else if((((a4==1)&&((a5==1)&&((!(a15==1)&&((!(a27==1)&&((a6==1)&&((input==1)&&(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1)))))))&&(a12==8)))&&(a0==1))))&&(a20==1))){ + a3 = 6; + a18 = 0; + a22 = 0; + a12 = 9; + a4 = 0; + return 26; + } else if(((!(a18==1)&&((a15==1)&&((a0==1)&&(((a20==1)&&((a3==7)&&(((a6==1)&&(((input==1)&&!(a4==1))&&(a12==11)))&&!(a5==1))))&&(a22==1)))))&&(a27==1))){ + a18 = 1; + a4 = 1; + return -1; + } else if((((a27==1)&&(((((a3==5)&&((!(a4==1)&&(!(a0==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==5))))&&(a12==10)))&&!(a15==1))&&!(a6==1))&&(a20==1)))&&(a5==1))){ + a0 = 1; + a6 = 1; + a22 = 0; + a18 = 0; + a12 = 11; + a3 = 8; + a27 = 0; + a5 = 0; + return 21; + } else if(((a12==10)&&((a20==1)&&((!(a5==1)&&(!(a15==1)&&((a4==1)&&((a0==1)&&(!(a22==1)&&((a18==1)&&(((input==2)&&(a6==1))&&!(a27==1))))))))&&(a3==6))))){ + a18 = 0; + a27 = 1; + a22 = 1; + return 26; + } else if((!(a6==1)&&(((a15==1)&&(!(a0==1)&&(((a12==12)&&((((input==5)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1)))))&&(a4==1))&&!(a5==1)))&&(a20==1))))&&(a27==1)))){ + if((a15==1)){ + a4 = 0; + a22 = 1; + a18 = 1; + a0 = 1; + a15 = 0; + a12 = 10; + a3 = 4; + a5 = 1; + a27 = 0; + }else{ + a27 = 0; + a12 = 11; + a15 = 0; + a0 = 1; + a3 = 4; + a18 = 1; + a4 = 0; + a22 = 0; + } + return -1; + } else if(((((!(a0==1)&&(!(a27==1)&&((a22==1)&&((a12==9)&&((((a6==1)&&((a18==1)&&(input==3)))&&(a3==6))&&(a5==1))))))&&(a15==1))&&(a20==1))&&!(a4==1))){ + a15 = 0; + a4 = 1; + a3 = 4; + a18 = 0; + a5 = 0; + a12 = 10; + a0 = 1; + a22 = 0; + a6 = 0; + return 21; + } else if(((a20==1)&&((((!(a27==1)&&((!(a22==1)&&(!(a0==1)&&(((!(a15==1)&&(input==5))&&(a4==1))&&(a18==1))))&&!(a6==1)))&&(a3==6))&&(a5==1))&&(a12==10)))){ + if((a22==1)){ + a0 = 1; + a12 = 8; + a18 = 0; + a4 = 0; + a3 = 5; + }else{ + a6 = 1; + a12 = 8; + a22 = 1; + a4 = 0; + a0 = 1; + a15 = 1; + a27 = 1; + } + return 26; + } else if((((a4==1)&&((a12==11)&&((((a27==1)&&(!(a15==1)&&(((!(a6==1)&&((input==2)&&(a20==1)))&&(a3==6))&&!(a5==1))))&&(a18==1))&&!(a22==1))))&&(a0==1))){ + a22 = 1; + a18 = 0; + a6 = 1; + a12 = 10; + return -1; + } else if((!(a4==1)&&(!(a5==1)&&((!(a0==1)&&((a15==1)&&((a6==1)&&(((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&!(a27==1))&&(a20==1))&&(a3==5)))))&&(a12==8))))){ + a12 = 12; + a3 = 6; + a18 = 0; + a22 = 0; + a0 = 1; + a15 = 0; + a27 = 1; + return 21; + } else if((((a15==1)&&((a12==9)&&((((((a0==1)&&((input==2)&&(((!(a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a22==1)&&(a18==1)))))))&&(a27==1))&&(a5==1))&&(a4==1))&&(a6==1))))&&(a20==1))){ + a15 = 0; + a12 = 11; + a3 = 6; + a5 = 0; + a22 = 0; + a18 = 1; + return 21; + } else if((((!(a5==1)&&((((((((input==5)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&(a20==1))&&(a0==1))&&(a12==12))&&(a4==1))&&(a27==1))&&(a3==7)))&&!(a6==1))&&(a15==1))){ + a12 = 8; + a3 = 4; + a6 = 1; + a5 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((a12==9)&&(!(a15==1)&&((a5==1)&&((!(a27==1)&&(!(a6==1)&&(((a22==1)&&((a20==1)&&((a3==4)&&(((a18==1)||!(a18==1))&&(input==4)))))&&(a0==1))))&&(a4==1)))))){ + if((a18==1)){ + a18 = 0; + a6 = 1; + a27 = 1; + a15 = 1; + a12 = 12; + a4 = 0; + a0 = 0; + }else{ + a6 = 1; + a12 = 8; + a18 = 0; + a5 = 0; + a3 = 8; + } + return 24; + } else if((((a4==1)&&((!(a15==1)&&(!(a0==1)&&((((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==3))&&(a12==9))&&(a6==1))&&(a20==1))&&(a27==1))))&&(a5==1)))&&(a3==5))){ + a22 = 1; + a12 = 8; + a6 = 0; + a15 = 1; + a3 = 6; + a18 = 1; + a0 = 1; + a4 = 0; + return -1; + } else if(((!(a27==1)&&((a6==1)&&(((((a0==1)&&(((a4==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==3)))&&!(a15==1)))&&(a12==8))&&!(a5==1))&&(a3==6))))&&(a20==1))){ + a18 = 1; + a27 = 1; + a5 = 1; + a15 = 1; + a12 = 11; + a4 = 0; + a6 = 0; + a22 = 1; + return 26; + } else if((!(a0==1)&&(((((a20==1)&&(((((((input==4)&&((a18==1)||!(a18==1)))&&!(a15==1))&&(a12==10))&&(a5==1))&&(a3==7))&&(a6==1)))&&(a27==1))&&(a22==1))&&!(a4==1)))){ + a4 = 1; + a0 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + a15 = 1; + return -1; + } else if((((((a0==1)&&((((((!(a18==1)&&(!(a15==1)&&(input==4)))&&(a6==1))&&(a3==4))&&(a22==1))&&(a5==1))&&!(a4==1)))&&!(a27==1))&&(a12==10))&&(a20==1))){ + a18 = 1; + a22 = 0; + a4 = 1; + a3 = 6; + a27 = 1; + a0 = 0; + a15 = 1; + return 26; + } else if((!(a6==1)&&(!(a4==1)&&((((a20==1)&&(((a12==10)&&((((a0==1)&&((a27==1)&&(input==3)))&&!(a5==1))&&(a3==5)))&&(a18==1)))&&!(a22==1))&&!(a15==1))))){ + if((a5==1)){ + a0 = 0; + a18 = 0; + a3 = 8; + a12 = 8; + }else{ + a3 = 6; + a4 = 1; + a6 = 1; + a5 = 1; + } + return -1; + } else if((((!(a5==1)&&(((((a12==9)&&((((a3==6)&&((input==1)&&((a18==1)||!(a18==1))))&&!(a4==1))&&(a0==1)))&&(a20==1))&&(a15==1))&&!(a22==1)))&&!(a27==1))&&!(a6==1))){ + a4 = 1; + a3 = 4; + a18 = 1; + a12 = 10; + a5 = 1; + a22 = 1; + return 21; + } else if(((((a20==1)&&(((a12==8)&&(!(a22==1)&&((!(a4==1)&&(((a5==1)&&((input==5)&&!(a27==1)))&&(a6==1)))&&!(a0==1))))&&!(a18==1)))&&(a3==5))&&!(a15==1))){ + a22 = 1; + a18 = 1; + a15 = 1; + a4 = 1; + a12 = 9; + a5 = 0; + a6 = 0; + a3 = 4; + return -1; + } else if(((!(a4==1)&&((a20==1)&&((((a15==1)&&((a12==10)&&(((input==6)&&(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8))))&&(a5==1))))&&(a27==1))&&(a0==1))))&&!(a6==1))){ + a18 = 0; + a22 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if(((((((a27==1)&&((a6==1)&&(((a22==1)&&((a12==11)&&(!(a0==1)&&((a5==1)&&(input==6)))))&&(a15==1))))&&(a18==1))&&(a3==8))&&(a20==1))&&!(a4==1))){ + a15 = 0; + a0 = 1; + a18 = 0; + a3 = 4; + a4 = 1; + a6 = 0; + a22 = 0; + a5 = 0; + return 26; + } else if(((a12==11)&&((((a0==1)&&(!(a5==1)&&((a15==1)&&(((((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))||((a3==5)&&(!(a18==1)&&(a22==1))))&&(input==3))&&!(a6==1))&&(a20==1)))))&&(a27==1))&&(a4==1)))){ + a5 = 1; + a18 = 1; + a12 = 8; + a6 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if(((((a20==1)&&((a15==1)&&((a3==6)&&((a12==8)&&(!(a6==1)&&(!(a27==1)&&((a5==1)&&((input==6)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))))))))&&!(a4==1))&&(a0==1))){ + a15 = 0; + a27 = 1; + a22 = 0; + a3 = 5; + a12 = 10; + a18 = 0; + a4 = 1; + a5 = 0; + a6 = 1; + return -1; + } else if((!(a22==1)&&((a3==5)&&((a6==1)&&(((a20==1)&&((a12==8)&&((a0==1)&&((a5==1)&&((a27==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&!(a15==1)))))))&&(a4==1)))))){ + a22 = 1; + a18 = 1; + a3 = 7; + a5 = 0; + a15 = 1; + return 26; + } else if(((a4==1)&&((a27==1)&&((a12==12)&&(!(a15==1)&&(!(a5==1)&&(((a6==1)&&(!(a0==1)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==1))))&&(a20==1)))))))){ + if((a22==1)){ + a27 = 0; + a18 = 1; + a0 = 1; + a12 = 9; + a22 = 0; + a3 = 7; + }else{ + a18 = 1; + a5 = 1; + a15 = 1; + a0 = 1; + a12 = 8; + a22 = 1; + a3 = 5; + } + return 21; + } else if(((a5==1)&&((a3==8)&&(!(a6==1)&&(((a27==1)&&(((a12==10)&&(!(a4==1)&&((((input==2)&&(a20==1))&&(a15==1))&&!(a0==1))))&&!(a18==1)))&&!(a22==1)))))){ + a4 = 1; + a3 = 6; + a18 = 1; + a22 = 1; + a0 = 1; + a6 = 1; + return -1; + } else if((((!(a4==1)&&((((a12==11)&&((a15==1)&&((((input==3)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&(a3==7))&&(a20==1))))&&(a27==1))&&(a5==1)))&&(a6==1))&&!(a0==1))){ + a18 = 1; + a0 = 1; + a22 = 1; + a4 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((a3==6)&&((((a20==1)&&(((a12==12)&&((a27==1)&&(!(a15==1)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==5))&&(a5==1)))))&&!(a6==1)))&&(a0==1))&&!(a4==1)))){ + a22 = 1; + a12 = 10; + a4 = 1; + a18 = 0; + a3 = 5; + a6 = 1; + return 21; + } else if((((!(a15==1)&&((a4==1)&&((a27==1)&&((a20==1)&&(((((a22==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a3==4))&&(a12==8))&&(a6==1))))))&&(a5==1))&&(a0==1))){ + a22 = 0; + a18 = 0; + a4 = 0; + a3 = 8; + return 24; + } else if(((a12==11)&&((a27==1)&&((((a20==1)&&(!(a6==1)&&((((a3==8)&&(!(a15==1)&&((input==2)&&(a18==1))))&&!(a22==1))&&!(a4==1))))&&(a5==1))&&!(a0==1))))){ + a22 = 1; + a3 = 4; + a15 = 1; + a0 = 1; + return 21; + } else if(((!(a4==1)&&((a15==1)&&(((((a6==1)&&((a3==4)&&(!(a5==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==1)))))&&!(a0==1))&&(a12==10))&&!(a27==1))))&&(a20==1))){ + a18 = 1; + a0 = 1; + a6 = 0; + a5 = 1; + a22 = 1; + a12 = 8; + a27 = 1; + return -1; + } else if((!(a22==1)&&((((((a20==1)&&((((a6==1)&&(!(a4==1)&&((input==1)&&((a18==1)||!(a18==1)))))&&!(a27==1))&&!(a0==1)))&&(a3==7))&&(a12==10))&&!(a5==1))&&(a15==1)))){ + a27 = 1; + a3 = 8; + a18 = 0; + a22 = 1; + return -1; + } else if(((a15==1)&&(!(a22==1)&&(((a20==1)&&((a5==1)&&(((a18==1)&&(((!(a6==1)&&((input==4)&&(a3==6)))&&!(a27==1))&&!(a4==1)))&&(a12==10))))&&(a0==1))))){ + a12 = 9; + a4 = 1; + a3 = 8; + a15 = 0; + return 26; + } else if((((a27==1)&&((a22==1)&&((a5==1)&&(((a4==1)&&((a6==1)&&((a0==1)&&((!(a15==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a20==1)))))&&(a12==10)))))&&(a3==8))){ + a3 = 4; + a18 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if((!(a27==1)&&((a5==1)&&((a20==1)&&(!(a4==1)&&((!(a0==1)&&(((a12==11)&&((((a22==1)&&(input==1))&&!(a6==1))&&(a3==8)))&&(a18==1)))&&(a15==1))))))){ + a4 = 1; + a18 = 0; + a0 = 1; + a12 = 8; + a6 = 1; + a3 = 7; + a27 = 1; + return 26; + } else if(((!(a5==1)&&((a12==12)&&((a0==1)&&((a20==1)&&(!(a15==1)&&((input==5)&&((((!(a4==1)&&((a18==1)&&(a22==1)))&&(a3==4))&&(a6==1))||((((a3==8)&&((!(a22==1)&&(a18==1))&&(a4==1)))&&!(a6==1))||(!(a6==1)&&((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1))))))))))))&&(a27==1))){ + a18 = 1; + a4 = 0; + a6 = 1; + a22 = 0; + a3 = 6; + a5 = 1; + a12 = 11; + return 21; + } else if((((a20==1)&&((a15==1)&&(((!(a6==1)&&((a0==1)&&((a12==11)&&((input==5)&&(((!(a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8))))))))&&!(a5==1))&&(a4==1))))&&!(a27==1))){ + a27 = 1; + a0 = 0; + a4 = 0; + a3 = 8; + a18 = 0; + a22 = 0; + a15 = 0; + a12 = 9; + return -1; + } else if(((a4==1)&&(((a6==1)&&(((a12==12)&&((a20==1)&&(((a27==1)&&((input==5)&&(((a3==6)&&(!(a18==1)&&(a22==1)))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1)))))))&&(a5==1))))&&!(a15==1)))&&(a0==1)))){ + a18 = 1; + a15 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + return -1; + } else if(((!(a27==1)&&((((((!(a4==1)&&((input==3)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))))&&(a15==1))&&!(a0==1))&&(a20==1))&&(a5==1))&&(a6==1)))&&(a12==8))){ + if((a6==1)){ + a18 = 0; + a0 = 1; + a6 = 0; + a22 = 0; + a4 = 1; + a3 = 4; + a27 = 1; + }else{ + a18 = 0; + a15 = 0; + a3 = 4; + a22 = 1; + a12 = 11; + } + return -1; + } else if((((((a22==1)&&((a6==1)&&((a12==11)&&((a27==1)&&((!(a4==1)&&((a20==1)&&((input==1)&&((a18==1)||!(a18==1)))))&&(a15==1))))))&&!(a0==1))&&!(a5==1))&&(a3==8))){ + a5 = 1; + a0 = 1; + a18 = 0; + a3 = 6; + a6 = 0; + a12 = 12; + return 21; + } else if(((!(a15==1)&&(((!(a5==1)&&((a12==9)&&(!(a6==1)&&(((((a3==5)&&(!(a18==1)&&(a22==1)))||(((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1)))))&&(input==5))&&(a20==1)))))&&(a0==1))&&!(a4==1)))&&!(a27==1))){ + if((a5==1)){ + a5 = 1; + a27 = 1; + a15 = 1; + a18 = 0; + a12 = 8; + a3 = 5; + a6 = 1; + a0 = 0; + a22 = 0; + }else{ + a12 = 11; + a3 = 4; + a27 = 1; + a22 = 0; + a18 = 0; + } + return 26; + } else if((((a12==11)&&((a0==1)&&(((a27==1)&&((a15==1)&&((a20==1)&&((((a3==7)&&((input==2)&&((a18==1)||!(a18==1))))&&!(a4==1))&&(a6==1)))))&&(a22==1))))&&(a5==1))){ + a12 = 8; + a3 = 4; + a18 = 1; + a4 = 1; + return -1; + } else if(((!(a0==1)&&((a5==1)&&((!(a22==1)&&((a20==1)&&((a4==1)&&((((((a18==1)||!(a18==1))&&(input==5))&&(a27==1))&&!(a15==1))&&(a3==5)))))&&(a12==11))))&&(a6==1))){ + a5 = 0; + a18 = 1; + a6 = 0; + a0 = 1; + a3 = 7; + a22 = 1; + a12 = 10; + return 21; + } else if((!(a18==1)&&((a20==1)&&(!(a0==1)&&((a15==1)&&(!(a22==1)&&((a4==1)&&((((a12==8)&&((a3==8)&&((input==4)&&!(a6==1))))&&(a27==1))&&!(a5==1))))))))){ + a0 = 1; + a12 = 12; + a5 = 1; + a6 = 1; + return 21; + } else if((((a5==1)&&(((a27==1)&&((a12==11)&&(!(a15==1)&&((!(a6==1)&&(((input==6)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&(a20==1)))&&(a3==4)))))&&!(a0==1)))&&!(a4==1))){ + a0 = 1; + a22 = 1; + a12 = 10; + a3 = 6; + a15 = 1; + a4 = 1; + a18 = 0; + a6 = 1; + return -1; + } else if((((a0==1)&&((a5==1)&&((a4==1)&&((a20==1)&&(((a18==1)&&(((((a27==1)&&(input==3))&&(a12==12))&&(a15==1))&&(a3==6)))&&!(a22==1))))))&&(a6==1))){ + a5 = 0; + a0 = 0; + a12 = 11; + a6 = 0; + a22 = 1; + a3 = 8; + return -1; + } else if(((((!(a27==1)&&((a6==1)&&((!(a0==1)&&(!(a4==1)&&(((input==3)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a5==1))))&&(a3==8))))&&(a20==1))&&(a12==8))&&(a15==1))){ + if((a22==1)){ + a5 = 1; + a27 = 1; + a0 = 1; + a3 = 6; + a22 = 1; + a18 = 0; + }else{ + a0 = 1; + a22 = 1; + a18 = 0; + a4 = 1; + a27 = 1; + a5 = 1; + } + return -1; + } else if(((a20==1)&&(((a12==11)&&(!(a0==1)&&((a22==1)&&(!(a6==1)&&(((((a3==5)&&((input==2)&&((a18==1)||!(a18==1))))&&!(a15==1))&&!(a5==1))&&!(a4==1))))))&&!(a27==1)))){ + a3 = 4; + a27 = 1; + a6 = 1; + a0 = 1; + a15 = 1; + a12 = 8; + a18 = 0; + a5 = 1; + a22 = 0; + return 21; + } else if(((a5==1)&&((((a6==1)&&((((!(a4==1)&&((a20==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2))))&&(a3==5))&&!(a15==1))&&(a0==1)))&&!(a27==1))&&(a12==11)))){ + if((a4==1)){ + a3 = 8; + a22 = 0; + a15 = 1; + a4 = 1; + a27 = 1; + a18 = 0; + a0 = 0; + }else{ + a15 = 1; + a22 = 1; + a4 = 1; + a18 = 0; + a27 = 1; + a12 = 10; + a3 = 8; + a5 = 0; + } + return 26; + } else if((((a15==1)&&(((a18==1)&&(!(a27==1)&&(((a12==9)&&(((!(a4==1)&&((a22==1)&&(input==1)))&&(a6==1))&&!(a0==1)))&&(a3==6))))&&(a5==1)))&&(a20==1))){ + a12 = 8; + a0 = 1; + a27 = 1; + return 21; + } else if(((a12==10)&&((!(a6==1)&&(!(a18==1)&&((((a0==1)&&((a27==1)&&((a20==1)&&(((input==1)&&(a3==6))&&!(a15==1)))))&&(a4==1))&&(a5==1))))&&!(a22==1)))){ + a15 = 1; + a3 = 7; + a4 = 0; + return -1; + } else if(((!(a6==1)&&(((a3==4)&&((a12==11)&&(((a20==1)&&((a15==1)&&(!(a5==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==3)))))&&(a0==1))))&&!(a4==1)))&&!(a27==1))){ + a4 = 1; + a27 = 1; + a22 = 1; + a12 = 12; + a18 = 0; + a6 = 1; + return 26; + } else if(((a6==1)&&(((a12==11)&&((a4==1)&&((a5==1)&&(!(a0==1)&&(!(a27==1)&&(((input==5)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))||((!(a18==1)&&(a22==1))&&(a3==5))))&&(a20==1)))))))&&(a15==1)))){ + if((a18==1)){ + a0 = 1; + a3 = 7; + a27 = 1; + a22 = 1; + a18 = 1; + a12 = 8; + a4 = 0; + }else{ + a22 = 1; + a18 = 1; + a4 = 0; + a3 = 8; + a12 = 8; + a27 = 1; + a0 = 1; + } + return 21; + } else if(((a15==1)&&(!(a27==1)&&(!(a0==1)&&(((a3==5)&&(!(a5==1)&&((a22==1)&&(!(a4==1)&&(((a12==10)&&((a20==1)&&(input==4)))&&(a6==1))))))&&!(a18==1)))))){ + a12 = 8; + a0 = 1; + a27 = 1; + a3 = 8; + a22 = 0; + a5 = 1; + return -1; + } else if((!(a4==1)&&((a3==6)&&(((a6==1)&&(((a20==1)&&((a18==1)&&(((((a12==8)&&(input==3))&&(a22==1))&&!(a5==1))&&(a15==1))))&&(a27==1)))&&!(a0==1))))){ + a4 = 1; + a6 = 0; + a0 = 1; + a18 = 0; + a12 = 12; + a3 = 4; + return 21; + } else if(((a15==1)&&((a5==1)&&((a6==1)&&(!(a27==1)&&((a12==8)&&((((a20==1)&&(((((a18==1)||!(a18==1))&&(input==5))&&(a3==8))&&!(a0==1)))&&!(a22==1))&&!(a4==1)))))))){ + a27 = 1; + a6 = 0; + a12 = 12; + a18 = 1; + a15 = 0; + a3 = 6; + return 21; + } else if((!(a15==1)&&((a12==11)&&(((((((a6==1)&&((a3==4)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1))))&&(a5==1))&&(a0==1))&&!(a27==1))&&(a20==1))&&!(a4==1))))){ + a18 = 1; + a12 = 12; + a27 = 1; + a4 = 1; + a22 = 0; + return -1; + } else if((((a3==4)&&(!(a5==1)&&((((((a12==8)&&(!(a0==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==3))))&&!(a27==1))&&(a20==1))&&(a4==1))&&!(a15==1))))&&(a6==1))){ + a22 = 0; + a15 = 1; + a18 = 0; + a27 = 1; + a4 = 0; + a12 = 9; + return 26; + } else if(((a20==1)&&((!(a18==1)&&((a4==1)&&((a3==4)&&((a5==1)&&((!(a6==1)&&((!(a27==1)&&(!(a0==1)&&(input==4)))&&!(a15==1)))&&(a12==8))))))&&(a22==1)))){ + if((a15==1)){ + a18 = 1; + a5 = 0; + a0 = 1; + a3 = 8; + a4 = 0; + a22 = 0; + a12 = 10; + }else{ + a12 = 11; + a4 = 0; + a27 = 1; + a3 = 7; + a18 = 1; + a5 = 0; + } + return -1; + } else if((!(a27==1)&&(((((a0==1)&&(!(a22==1)&&((a20==1)&&(((a6==1)&&((a3==4)&&((input==4)&&((a18==1)||!(a18==1)))))&&!(a15==1)))))&&(a5==1))&&(a12==10))&&!(a4==1)))){ + a22 = 1; + a15 = 1; + a12 = 8; + a18 = 0; + a5 = 0; + return -1; + } else if(((((a12==8)&&(!(a18==1)&&((a15==1)&&((a0==1)&&(!(a4==1)&&(((((input==4)&&(a20==1))&&(a22==1))&&(a3==7))&&!(a27==1)))))))&&(a6==1))&&(a5==1))){ + a27 = 1; + a18 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if((!(a15==1)&&((a20==1)&&((a12==10)&&(!(a5==1)&&(!(a4==1)&&((a27==1)&&((a0==1)&&(((input==3)&&(((a3==5)&&(!(a18==1)&&(a22==1)))||(((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==5)))))&&(a6==1)))))))))){ + a6 = 0; + a18 = 1; + a12 = 11; + a15 = 1; + a3 = 6; + a22 = 0; + return 26; + } else if(((((((!(a22==1)&&(((((a6==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a15==1))&&!(a0==1))&&(a27==1)))&&(a3==8))&&(a12==9))&&(a5==1))&&!(a4==1))&&(a20==1))){ + a12 = 11; + a3 = 4; + a5 = 0; + a22 = 1; + a18 = 0; + a4 = 1; + a0 = 1; + return 26; + } else if(((a4==1)&&(!(a27==1)&&(!(a6==1)&&((a20==1)&&(((a15==1)&&((a5==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==5))&&(a0==1))))&&(a12==9))))))){ + a12 = 8; + a4 = 0; + a15 = 0; + a22 = 1; + a18 = 0; + a3 = 7; + return 26; + } else if(((a5==1)&&((a12==12)&&((((((a0==1)&&((!(a6==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==5)))&&(a27==1)))&&!(a4==1))&&(a20==1))&&!(a15==1))&&(a3==7))))){ + a22 = 0; + a18 = 0; + a12 = 11; + a3 = 4; + return -1; + } else if(((a5==1)&&((((!(a15==1)&&((a20==1)&&((a12==11)&&((((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1)))&&(input==4)))))&&(a0==1))&&!(a4==1))&&(a27==1)))){ + a18 = 0; + a6 = 0; + a22 = 0; + a12 = 12; + a4 = 1; + a3 = 6; + return 26; + } else if(((a0==1)&&((!(a6==1)&&(((a15==1)&&((((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==1))&&(a27==1))&&(a20==1))&&!(a5==1))&&(a4==1)))&&(a12==8)))&&(a3==7)))){ + if((a3==7)){ + a22 = 1; + a3 = 6; + a5 = 1; + a15 = 0; + a0 = 0; + a4 = 0; + a12 = 9; + a18 = 0; + }else{ + a18 = 1; + a22 = 1; + a5 = 1; + a3 = 5; + a12 = 10; + } + return 21; + } else if((((a0==1)&&(((a3==5)&&(!(a22==1)&&((!(a4==1)&&(((((input==5)&&((a18==1)||!(a18==1)))&&(a20==1))&&(a5==1))&&(a12==11)))&&!(a6==1))))&&(a15==1)))&&!(a27==1))){ + a6 = 1; + a3 = 6; + a18 = 1; + a4 = 1; + return -1; + } else if((!(a15==1)&&(!(a5==1)&&((a3==4)&&(((a12==9)&&(((a20==1)&&(!(a6==1)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==2))&&(a4==1))))&&!(a0==1)))&&(a27==1)))))){ + a18 = 0; + a6 = 1; + a27 = 0; + a22 = 1; + a4 = 0; + a3 = 7; + a0 = 1; + a12 = 8; + return 26; + } else if((((!(a4==1)&&(((a5==1)&&(!(a27==1)&&(((a0==1)&&((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==6)))&&(a20==1))))&&(a15==1)))&&!(a6==1))&&(a12==8))){ + a12 = 10; + a3 = 4; + a18 = 1; + a27 = 1; + a4 = 1; + a6 = 1; + a22 = 0; + return 26; + } else if(((!(a6==1)&&(((((((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==3))&&(a5==1))&&!(a27==1))&&!(a4==1))&&!(a15==1))&&!(a0==1))&&(a3==7))&&(a12==11)))&&(a20==1))){ + a0 = 1; + a27 = 1; + a4 = 1; + a3 = 6; + a15 = 1; + a22 = 1; + a18 = 0; + a12 = 8; + return -1; + } else if(((a27==1)&&((a6==1)&&(((a4==1)&&(((a3==5)&&(((((input==1)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&(a0==1))&&(a15==1))&&(a5==1)))&&(a12==12)))&&(a20==1))))){ + a12 = 8; + a22 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((!(a5==1)&&((a12==12)&&(!(a0==1)&&(!(a18==1)&&((a3==5)&&(!(a15==1)&&((a20==1)&&((a27==1)&&(!(a4==1)&&(((input==4)&&!(a6==1))&&!(a22==1)))))))))))){ + a3 = 8; + a12 = 9; + a15 = 1; + a5 = 1; + return 24; + } else if((((((a12==10)&&(((!(a4==1)&&((a3==6)&&(((input==5)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a20==1))))&&!(a27==1))&&(a0==1)))&&!(a5==1))&&!(a15==1))&&(a6==1))){ + a22 = 1; + a5 = 1; + a15 = 1; + a3 = 4; + a18 = 1; + return 26; + } else if((((a3==6)&&((((!(a6==1)&&(((((a5==1)&&((input==2)&&(a4==1)))&&!(a0==1))&&(a20==1))&&!(a18==1)))&&!(a15==1))&&(a12==11))&&!(a27==1)))&&!(a22==1))){ + if((a12==11)){ + a12 = 9; + a4 = 0; + a0 = 1; + a6 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a15 = 1; + a27 = 1; + }else{ + a3 = 7; + a6 = 1; + a4 = 0; + a18 = 1; + a0 = 1; + a27 = 1; + a12 = 8; + a15 = 1; + } + return 21; + } else if((!(a4==1)&&(((a5==1)&&((a3==6)&&(((a0==1)&&((a20==1)&&(((((input==2)&&((a18==1)||!(a18==1)))&&!(a15==1))&&(a22==1))&&!(a27==1))))&&!(a6==1))))&&(a12==8)))){ + a12 = 10; + a3 = 5; + a27 = 1; + a5 = 0; + a22 = 0; + a18 = 0; + return 21; + } else if(((((a20==1)&&((a12==11)&&((a5==1)&&(((!(a27==1)&&(((input==6)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a0==1)))&&(a6==1))&&!(a15==1)))))&&(a4==1))&&(a3==4))){ + a5 = 0; + a22 = 1; + a15 = 1; + a3 = 8; + a18 = 1; + a4 = 0; + a27 = 1; + a6 = 0; + a12 = 12; + return -1; + } else if(((a3==7)&&((a12==11)&&(((!(a22==1)&&(!(a15==1)&&((a20==1)&&((((a27==1)&&(!(a4==1)&&(input==6)))&&!(a18==1))&&(a0==1)))))&&(a6==1))&&(a5==1))))){ + a15 = 1; + a18 = 1; + a22 = 1; + a12 = 8; + a4 = 1; + a3 = 4; + return -1; + } else if(((a3==4)&&(!(a22==1)&&((a12==9)&&((((a20==1)&&(!(a15==1)&&(((!(a4==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&!(a5==1))&&!(a27==1))))&&!(a0==1))&&!(a6==1)))))){ + if((a12==12)){ + a3 = 8; + a22 = 1; + a0 = 1; + a15 = 1; + a18 = 0; + a27 = 1; + a12 = 12; + }else{ + a0 = 1; + a18 = 0; + a12 = 10; + a4 = 1; + } + return -1; + } else if((((a20==1)&&(!(a5==1)&&((a6==1)&&((a4==1)&&(((a15==1)&&(!(a27==1)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==5))))&&(a12==11))))))&&(a0==1))){ + a4 = 0; + a27 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + a0 = 0; + a5 = 1; + a22 = 0; + return 26; + } else if(((a27==1)&&((!(a4==1)&&(((((((((a3==7)&&((a18==1)&&(a22==1)))||(((a3==6)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==6))))&&(input==1))&&(a20==1))&&!(a0==1))&&(a12==11))&&!(a6==1))&&(a15==1)))&&(a5==1)))){ + if((a3==6)){ + a22 = 0; + a3 = 8; + a6 = 1; + a18 = 0; + a15 = 0; + a5 = 0; + }else{ + a12 = 10; + a5 = 0; + a3 = 5; + a27 = 0; + a0 = 1; + a22 = 1; + a18 = 0; + } + return -1; + } else if(((a12==11)&&(!(a5==1)&&((a15==1)&&((a3==7)&&(((a6==1)&&(((!(a4==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==4)))&&(a0==1))&&!(a27==1)))&&(a20==1))))))){ + a5 = 1; + a12 = 8; + a22 = 1; + a27 = 1; + a3 = 4; + a4 = 1; + a18 = 1; + return -1; + } else if((((((a27==1)&&((a5==1)&&((input==6)&&((!(a6==1)&&((((a15==1)&&(!(a22==1)&&!(a18==1)))&&!(a4==1))&&(a3==8)))||((a6==1)&&(((!(a15==1)&&((a22==1)&&(a18==1)))&&(a4==1))&&(a3==4)))))))&&(a20==1))&&(a0==1))&&(a12==9))){ + a22 = 1; + a15 = 1; + a5 = 0; + a0 = 0; + a3 = 4; + a18 = 1; + a4 = 1; + a6 = 1; + return 24; + } else if(((((a20==1)&&(((a3==7)&&(((((a27==1)&&((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a6==1))&&!(a4==1))&&!(a0==1)))&&!(a5==1)))&&(a15==1))&&(a12==11))){ + a5 = 1; + a18 = 1; + a3 = 4; + a0 = 1; + a22 = 1; + a6 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if(((a20==1)&&((((a27==1)&&(((a6==1)&&((((input==5)&&(((a3==6)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))))&&!(a4==1))&&(a5==1)))&&!(a15==1)))&&(a12==12))&&!(a0==1)))){ + if((a18==1)){ + a0 = 1; + a15 = 1; + a3 = 7; + a22 = 0; + a12 = 8; + a18 = 1; + }else{ + a18 = 0; + a22 = 1; + a0 = 1; + a6 = 0; + a5 = 0; + a15 = 1; + a3 = 4; + a12 = 11; + } + return -1; + } else if((((a15==1)&&((a20==1)&&(((a5==1)&&((((!(a6==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2)))&&(a12==8))&&(a3==5))&&!(a4==1)))&&!(a0==1))))&&!(a27==1))){ + a4 = 1; + a22 = 0; + a18 = 1; + a27 = 1; + a0 = 1; + a3 = 7; + return -1; + } else if(((!(a22==1)&&((((a12==9)&&((((((a3==5)&&((input==2)&&(a15==1)))&&!(a27==1))&&!(a4==1))&&!(a6==1))&&(a20==1)))&&!(a0==1))&&(a5==1)))&&!(a18==1))){ + a3 = 7; + a5 = 0; + a4 = 1; + a12 = 10; + a15 = 0; + return 26; + } else if(((!(a0==1)&&((a12==10)&&(!(a22==1)&&((!(a18==1)&&((a15==1)&&((a20==1)&&(((a3==6)&&((input==1)&&!(a4==1)))&&!(a6==1)))))&&!(a5==1)))))&&(a27==1))){ + a12 = 8; + a6 = 1; + a4 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + a0 = 1; + a5 = 1; + return -1; + } else if(((a27==1)&&((a12==11)&&(!(a15==1)&&(!(a0==1)&&(((a5==1)&&(((a3==7)&&(!(a6==1)&&((input==4)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))))&&(a20==1)))&&!(a4==1))))))){ + a3 = 4; + a22 = 1; + a12 = 8; + a18 = 1; + a0 = 1; + a15 = 1; + a4 = 1; + a6 = 1; + return -1; + } else if((((a6==1)&&((a3==7)&&(((a20==1)&&(((((a15==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1)))&&(a12==10))&&(a4==1))&&!(a0==1)))&&!(a27==1))))&&!(a5==1))){ + a3 = 8; + a22 = 1; + a18 = 1; + a27 = 1; + a4 = 0; + a0 = 1; + a5 = 1; + a12 = 8; + return -1; + } else if((((!(a5==1)&&(!(a27==1)&&((!(a0==1)&&((a12==11)&&((((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a4==1))&&(a3==7))))&&(a6==1))))&&(a20==1))&&(a15==1))){ + a6 = 0; + a12 = 8; + a27 = 1; + a22 = 0; + a18 = 0; + a5 = 1; + a0 = 1; + return 26; + } else if((!(a4==1)&&((a5==1)&&(((a12==9)&&((((a15==1)&&(((a20==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a0==1)))&&(a3==5)))&&(a6==1))&&!(a22==1)))&&!(a27==1))))){ + a5 = 0; + a12 = 12; + a15 = 0; + a27 = 1; + a22 = 1; + a3 = 8; + a4 = 1; + a18 = 0; + return 26; + } else if(((((a15==1)&&(((a0==1)&&((a22==1)&&((a6==1)&&((a20==1)&&(((a4==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&!(a27==1))))))&&(a12==12)))&&(a3==7))&&(a5==1))){ + a12 = 10; + a6 = 0; + a15 = 0; + a18 = 0; + a4 = 0; + a27 = 1; + a3 = 4; + return -1; + } else if(((!(a5==1)&&((a4==1)&&(((a12==8)&&((a3==6)&&(!(a27==1)&&(!(a15==1)&&((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==1))&&(a0==1))))))&&!(a6==1))))&&(a20==1))){ + a22 = 0; + a6 = 1; + a4 = 0; + a12 = 10; + a3 = 7; + a15 = 1; + a18 = 0; + return 26; + } else if(((((a6==1)&&((a20==1)&&(((a27==1)&&((!(a15==1)&&((input==3)&&(((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))))&&(a12==9)))&&!(a0==1))))&&(a5==1))&&!(a4==1))){ + a22 = 0; + a12 = 10; + a15 = 1; + a3 = 4; + a6 = 0; + a0 = 1; + a18 = 0; + return 24; + } else if((((a12==10)&&((((a3==4)&&(((a5==1)&&(((((input==3)&&((a18==1)||!(a18==1)))&&(a4==1))&&!(a0==1))&&(a22==1)))&&(a6==1)))&&!(a27==1))&&(a20==1)))&&!(a15==1))){ + a15 = 1; + a27 = 1; + a0 = 1; + a18 = 0; + a12 = 8; + a4 = 0; + return 24; + } else if((((((a0==1)&&((((a20==1)&&((((a12==12)&&((input==1)&&!(a15==1)))&&!(a18==1))&&!(a22==1)))&&(a5==1))&&(a4==1)))&&(a6==1))&&(a3==6))&&!(a27==1))){ + a3 = 8; + a18 = 1; + a27 = 1; + a12 = 10; + a0 = 0; + return 26; + } else if((!(a5==1)&&((a12==11)&&((((((a20==1)&&(((a3==8)&&((a0==1)&&((a15==1)&&(input==2))))&&!(a18==1)))&&(a27==1))&&(a4==1))&&!(a22==1))&&(a6==1))))){ + a6 = 0; + a5 = 1; + a27 = 0; + a15 = 0; + return 21; + } else if(((a20==1)&&(!(a6==1)&&((!(a5==1)&&((!(a27==1)&&(((((((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))||(((a22==1)&&!(a18==1))&&(a3==8)))&&(input==3))&&(a4==1))&&(a12==8)))&&!(a15==1)))&&(a0==1))))){ + a15 = 1; + a5 = 1; + a27 = 1; + a3 = 4; + a6 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if((!(a27==1)&&((a4==1)&&((a12==8)&&((a0==1)&&(!(a5==1)&&(((!(a15==1)&&((input==2)&&((((a18==1)&&(a22==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1)))))))&&(a6==1))&&(a20==1)))))))){ + a5 = 1; + a12 = 10; + a6 = 0; + a3 = 7; + a18 = 1; + a22 = 1; + return 26; + } else if(((a15==1)&&((a12==11)&&(!(a6==1)&&((a20==1)&&((((a5==1)&&((((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a3==4))&&(a27==1)))&&!(a4==1))&&!(a0==1))))))){ + a4 = 1; + a22 = 1; + a6 = 1; + a18 = 1; + a0 = 1; + return -1; + } else if(((((a27==1)&&((a15==1)&&(!(a5==1)&&((!(a4==1)&&((a20==1)&&((((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==6))))&&(a6==1)))))&&(a12==12))&&(a0==1))){ + a4 = 1; + a27 = 0; + a3 = 6; + a22 = 1; + a5 = 1; + a15 = 0; + a12 = 9; + a18 = 1; + return 21; + } else if(((((!(a27==1)&&((input==5)&&((((a3==8)&&((!(a15==1)&&((!(a18==1)&&!(a22==1))&&(a5==1)))&&!(a4==1)))&&!(a6==1))||((((a4==1)&&((!(a5==1)&&((a18==1)&&(a22==1)))&&(a15==1)))&&(a3==4))&&(a6==1)))))&&!(a0==1))&&(a20==1))&&(a12==11))){ + if((a4==1)){ + a6 = 1; + a4 = 0; + a22 = 1; + a3 = 5; + a18 = 0; + a5 = 1; + a0 = 1; + a27 = 1; + a12 = 8; + a15 = 1; + }else{ + a18 = 1; + a22 = 0; + a6 = 1; + a0 = 1; + a15 = 1; + a3 = 8; + a27 = 1; + a4 = 1; + a5 = 1; + a12 = 8; + } + return 26; + } else if(((a27==1)&&((a6==1)&&(((a15==1)&&(((((a4==1)&&((input==5)&&(((!(a18==1)&&(a22==1))&&(a3==7))||(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1)))))))&&(a20==1))&&(a5==1))&&(a12==12)))&&(a0==1))))){ + a3 = 4; + a4 = 0; + a12 = 11; + a18 = 0; + a22 = 1; + a5 = 0; + return -1; + } else if(((a3==5)&&(((a20==1)&&(!(a15==1)&&(((!(a0==1)&&((a27==1)&&(!(a4==1)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==2)))))&&(a5==1))&&(a12==10))))&&(a6==1)))){ + a18 = 0; + a6 = 0; + a22 = 1; + a27 = 0; + a12 = 8; + a0 = 1; + a15 = 1; + a5 = 0; + return 26; + } else if((((a15==1)&&((((a18==1)&&(!(a22==1)&&(((((a4==1)&&((input==2)&&(a0==1)))&&(a3==4))&&!(a27==1))&&(a20==1))))&&(a6==1))&&(a12==12)))&&!(a5==1))){ + a15 = 0; + a12 = 10; + a3 = 8; + a22 = 1; + a27 = 1; + return 21; + } else if(((((a15==1)&&(!(a0==1)&&(((a27==1)&&((!(a5==1)&&((input==5)&&((((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==5)))||((a3==6)&&((a18==1)&&(a22==1))))))&&(a12==9)))&&(a20==1))))&&!(a4==1))&&!(a6==1))){ + a12 = 11; + a0 = 1; + a3 = 7; + a15 = 0; + a5 = 1; + a22 = 0; + a6 = 1; + a18 = 1; + return -1; + } else if((!(a22==1)&&(((a20==1)&&(((a4==1)&&(!(a0==1)&&((a15==1)&&((a3==8)&&(((a5==1)&&(!(a6==1)&&(input==6)))&&!(a27==1))))))&&!(a18==1)))&&(a12==11)))){ + a27 = 1; + a12 = 12; + a3 = 4; + a6 = 1; + a5 = 0; + return 21; + } else if(((!(a18==1)&&(((a3==4)&&(((!(a27==1)&&(((((a20==1)&&(input==3))&&!(a0==1))&&(a22==1))&&(a6==1)))&&!(a4==1))&&(a15==1)))&&(a12==9)))&&!(a5==1))){ + a0 = 1; + a27 = 1; + a12 = 8; + a5 = 1; + a3 = 8; + return -1; + } else if((((a18==1)&&(!(a22==1)&&((((a12==10)&&(((((a0==1)&&((a20==1)&&(input==4)))&&!(a27==1))&&!(a5==1))&&(a3==4)))&&!(a15==1))&&(a4==1))))&&(a6==1))){ + a5 = 1; + a12 = 8; + a22 = 1; + a15 = 1; + a27 = 1; + return -1; + } else if((((a5==1)&&((a3==7)&&((a0==1)&&((a4==1)&&(!(a15==1)&&((a12==11)&&((((a22==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a20==1))&&(a6==1))))))))&&!(a27==1))){ + a12 = 10; + a6 = 0; + a18 = 1; + a27 = 1; + a5 = 0; + return 21; + } else if(((a15==1)&&(((!(a0==1)&&((a27==1)&&((((input==2)&&((((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1)))||(((!(a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))))&&(a20==1))&&(a4==1))))&&(a12==11))&&!(a5==1)))){ + a0 = 1; + a12 = 8; + a6 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a5 = 1; + return -1; + } else if((((((a6==1)&&(!(a4==1)&&((a15==1)&&((((((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==5))&&!(a5==1))&&(a20==1)))))&&!(a0==1))&&(a12==9))&&!(a27==1))){ + a12 = 12; + a27 = 1; + a22 = 1; + a3 = 5; + a6 = 0; + a18 = 1; + a4 = 1; + a0 = 1; + a15 = 0; + return 21; + } else if(((a0==1)&&((((((a12==9)&&(((((input==5)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a4==1))&&!(a5==1))&&(a20==1)))&&(a27==1))&&!(a6==1))&&(a3==8))&&!(a15==1)))){ + a0 = 0; + a3 = 6; + a12 = 11; + a18 = 1; + a22 = 1; + return 24; + } else if(((((((a4==1)&&(!(a0==1)&&((a12==10)&&(!(a5==1)&&(((input==3)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a3==6))))))&&(a20==1))&&(a27==1))&&!(a15==1))&&(a6==1))){ + a3 = 4; + a18 = 1; + a22 = 1; + a5 = 1; + a15 = 1; + a12 = 8; + a0 = 1; + return -1; + } else if(((((!(a4==1)&&((a12==9)&&(!(a5==1)&&((a15==1)&&((!(a27==1)&&((input==3)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a6==1))))))&&(a3==5))&&!(a0==1))&&(a20==1))){ + a27 = 1; + a12 = 11; + a22 = 1; + a0 = 1; + a15 = 0; + a3 = 8; + a18 = 1; + return 21; + } else if((((((a15==1)&&((((a5==1)&&(!(a18==1)&&((!(a0==1)&&((input==4)&&(a20==1)))&&(a12==12))))&&!(a4==1))&&(a6==1)))&&!(a22==1))&&(a3==8))&&(a27==1))){ + a18 = 1; + a22 = 1; + a3 = 4; + a0 = 1; + a4 = 1; + a12 = 8; + return -1; + } else if(((((((!(a27==1)&&(((((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1)))&&(input==3))&&(a5==1)))&&(a15==1))&&(a0==1))&&!(a4==1))&&(a12==9))&&(a20==1))){ + a12 = 8; + a27 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a6 = 1; + a4 = 1; + return -1; + } else if(((a20==1)&&(!(a4==1)&&(!(a15==1)&&((a27==1)&&(((a0==1)&&(((((((a18==1)||!(a18==1))&&(input==3))&&(a12==12))&&(a5==1))&&!(a22==1))&&(a3==4)))&&(a6==1))))))){ + a12 = 10; + a18 = 1; + a4 = 1; + return 21; + } else if(((a12==8)&&(((a15==1)&&(((((((a4==1)&&((a20==1)&&(((a18==1)||!(a18==1))&&(input==2))))&&(a3==7))&&!(a5==1))&&(a6==1))&&(a22==1))&&!(a27==1)))&&(a0==1)))){ + a5 = 1; + a27 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a4==1)&&(((a0==1)&&((!(a15==1)&&((((a22==1)&&(((!(a6==1)&&(input==4))&&(a3==6))&&(a12==8)))&&(a20==1))&&!(a18==1)))&&(a5==1)))&&(a27==1)))){ + a18 = 1; + a15 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if(((a27==1)&&(((a12==11)&&(!(a0==1)&&(((input==6)&&(((((a3==8)&&(((!(a22==1)&&(a18==1))&&(a15==1))&&!(a4==1)))&&!(a6==1))||(((a3==8)&&(!(a4==1)&&((!(a18==1)&&!(a22==1))&&(a15==1))))&&!(a6==1)))||((a6==1)&&((a3==4)&&((((a18==1)&&(a22==1))&&!(a15==1))&&(a4==1))))))&&(a20==1))))&&(a5==1)))){ + a3 = 7; + a5 = 0; + a6 = 0; + a0 = 1; + a18 = 0; + a4 = 1; + a22 = 1; + a15 = 0; + a12 = 10; + return 21; + } else if((((a3==6)&&((a6==1)&&((a12==12)&&(((a20==1)&&((((((input==4)&&((a18==1)||!(a18==1)))&&(a27==1))&&!(a15==1))&&!(a22==1))&&(a5==1)))&&(a0==1)))))&&!(a4==1))){ + a4 = 1; + a3 = 5; + a6 = 0; + a27 = 0; + a18 = 1; + return 24; + } else if(((a27==1)&&(!(a0==1)&&((a4==1)&&(((a6==1)&&(((a12==12)&&(((a20==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3)))&&(a5==1)))&&!(a15==1)))&&(a3==8)))))){ + a0 = 1; + a27 = 0; + a3 = 4; + a18 = 1; + a6 = 0; + a15 = 1; + a22 = 0; + a12 = 11; + return 24; + } else if(((((a6==1)&&((((((a0==1)&&((((((a18==1)&&!(a22==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5)))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==6)))&&!(a27==1))&&!(a15==1))&&!(a5==1))&&!(a4==1)))&&(a12==8))&&(a20==1))){ + a15 = 1; + a27 = 1; + a3 = 5; + a6 = 0; + a18 = 1; + a5 = 1; + a22 = 0; + return 24; + } else if((((((((a12==11)&&(((a6==1)&&((a27==1)&&((a20==1)&&((a18==1)&&(input==3)))))&&(a3==4)))&&(a4==1))&&(a15==1))&&!(a22==1))&&(a0==1))&&(a5==1))){ + a22 = 1; + a12 = 8; + return -1; + } else if(((a15==1)&&(((a27==1)&&(!(a22==1)&&((a18==1)&&(!(a6==1)&&(((a12==12)&&((((a4==1)&&(input==6))&&!(a0==1))&&(a3==5)))&&(a20==1))))))&&!(a5==1)))){ + if((a20==1)){ + a0 = 1; + a18 = 0; + a5 = 1; + a3 = 4; + a12 = 8; + }else{ + a15 = 0; + a3 = 7; + a0 = 1; + a6 = 1; + } + return 24; + } else if(((a6==1)&&((((!(a5==1)&&(((a4==1)&&((a0==1)&&(((a27==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a3==8))))&&(a20==1)))&&(a22==1))&&(a12==10))&&(a15==1)))){ + a18 = 1; + a5 = 1; + a12 = 11; + return 21; + } else if((!(a6==1)&&(((a3==4)&&((a15==1)&&((((a20==1)&&((((input==4)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&(a5==1))&&(a27==1)))&&(a0==1))&&(a12==10))))&&(a4==1)))){ + a18 = 0; + a12 = 8; + a22 = 1; + a4 = 0; + a3 = 5; + return -1; + } else if((((a5==1)&&((a20==1)&&((((((!(a4==1)&&(!(a15==1)&&((input==3)&&!(a22==1))))&&(a3==5))&&!(a27==1))&&(a12==10))&&(a0==1))&&!(a6==1))))&&(a18==1))){ + a15 = 1; + a12 = 8; + a3 = 4; + a6 = 1; + a22 = 1; + a27 = 1; + a4 = 1; + return -1; + } else if((!(a15==1)&&((a12==11)&&(!(a4==1)&&(!(a0==1)&&((((a20==1)&&(!(a6==1)&&(((((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==6)))&&(input==3))))&&!(a5==1))&&(a27==1))))))){ + a27 = 0; + a22 = 0; + a18 = 1; + a0 = 1; + a4 = 1; + a3 = 4; + a12 = 10; + return 26; + } else if(((a18==1)&&((((!(a15==1)&&(((a3==7)&&((a12==9)&&((!(a4==1)&&((input==2)&&!(a22==1)))&&!(a6==1))))&&!(a5==1)))&&(a0==1))&&(a20==1))&&(a27==1)))){ + a12 = 8; + a4 = 1; + a5 = 1; + a22 = 1; + a15 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if((((((a20==1)&&((a27==1)&&((((a6==1)&&((a4==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1))))&&(a12==12))&&!(a15==1))))&&!(a0==1))&&(a3==8))&&(a5==1))){ + a3 = 5; + a18 = 0; + a4 = 0; + a6 = 0; + a22 = 0; + a0 = 1; + a12 = 11; + return 24; + } else if(((!(a5==1)&&((a12==11)&&((!(a15==1)&&(((a20==1)&&((a0==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))||((a3==6)&&((a22==1)&&!(a18==1))))&&(input==6))))&&(a6==1)))&&!(a27==1))))&&!(a4==1))){ + a3 = 7; + a12 = 12; + a22 = 1; + a5 = 1; + a6 = 0; + a27 = 1; + a18 = 0; + return 26; + } else if(((a0==1)&&(((a15==1)&&(!(a4==1)&&(!(a5==1)&&((((a27==1)&&((a12==11)&&((((a18==1)||!(a18==1))&&(input==5))&&!(a22==1))))&&(a6==1))&&(a20==1)))))&&(a3==5)))){ + a6 = 0; + a15 = 0; + a22 = 1; + a18 = 0; + a27 = 0; + a5 = 1; + a3 = 8; + return 21; + } else if((((a6==1)&&(((a12==11)&&(!(a15==1)&&((a20==1)&&(!(a27==1)&&(!(a0==1)&&((input==1)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6)))))))))&&(a5==1)))&&(a4==1))){ + a22 = 0; + a15 = 1; + a18 = 1; + a6 = 0; + a0 = 1; + a12 = 9; + a27 = 1; + a3 = 8; + return 21; + } else if((!(a4==1)&&((((a12==9)&&(!(a15==1)&&((!(a5==1)&&((a20==1)&&((input==1)&&(((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1))))||((a3==7)&&((a18==1)&&(a22==1)))))))&&(a27==1))))&&(a0==1))&&(a6==1)))){ + a15 = 1; + a5 = 1; + a3 = 7; + a27 = 0; + a18 = 0; + a22 = 0; + return 26; + } else if(((a18==1)&&((a12==8)&&((a20==1)&&(!(a27==1)&&((a15==1)&&((a5==1)&&((a4==1)&&(!(a22==1)&&((!(a6==1)&&((input==6)&&(a3==6)))&&(a0==1))))))))))){ + a22 = 1; + a3 = 4; + a6 = 1; + a27 = 1; + return -1; + } else if(((!(a5==1)&&(((((((!(a6==1)&&((a3==8)&&(!(a4==1)&&((!(a22==1)&&(a18==1))&&(a15==1)))))||(((!(a4==1)&&((a15==1)&&(!(a18==1)&&!(a22==1))))&&(a3==8))&&!(a6==1)))||((a6==1)&&((a3==4)&&((!(a15==1)&&((a18==1)&&(a22==1)))&&(a4==1)))))&&(input==5))&&!(a27==1))&&!(a0==1))&&(a12==11)))&&(a20==1))){ + if((a20==1)){ + a27 = 1; + a0 = 1; + a3 = 7; + a4 = 1; + a22 = 1; + a5 = 1; + a12 = 8; + a15 = 1; + a18 = 0; + a6 = 0; + }else{ + a4 = 0; + a27 = 1; + a5 = 1; + a18 = 1; + a22 = 1; + a6 = 1; + a3 = 5; + a15 = 1; + a0 = 1; + a12 = 8; + } + return -1; + } else if(((a15==1)&&((((a3==4)&&(((!(a4==1)&&((((input==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&!(a5==1))&&!(a27==1)))&&(a12==9))&&(a0==1)))&&!(a6==1))&&(a20==1)))){ + a12 = 11; + a4 = 1; + a18 = 0; + a27 = 1; + a22 = 0; + a15 = 0; + return 26; + } else if(((a27==1)&&((a15==1)&&(!(a5==1)&&((a12==12)&&(!(a0==1)&&(((((input==2)&&(((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1)))))&&!(a4==1))&&(a20==1))&&!(a6==1)))))))){ + if((a12==12)){ + a22 = 1; + a5 = 1; + a12 = 8; + a6 = 1; + a0 = 1; + a4 = 1; + a3 = 8; + a18 = 0; + }else{ + a22 = 0; + a4 = 1; + a0 = 1; + a3 = 4; + a5 = 1; + a12 = 8; + a18 = 1; + } + return -1; + } else if((((((a3==4)&&((!(a15==1)&&((!(a4==1)&&((a20==1)&&(!(a22==1)&&(!(a5==1)&&(input==1)))))&&(a12==10)))&&!(a6==1)))&&!(a0==1))&&!(a27==1))&&!(a18==1))){ + if((a6==1)){ + a3 = 8; + a22 = 1; + a0 = 1; + a12 = 12; + a6 = 1; + a5 = 1; + a4 = 1; + a27 = 1; + a15 = 1; + }else{ + a3 = 8; + a5 = 1; + a27 = 1; + a15 = 1; + a22 = 1; + a4 = 1; + a0 = 1; + a12 = 8; + } + return 26; + } else if(((a5==1)&&((a20==1)&&(!(a0==1)&&(((a12==9)&&((a4==1)&&((((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==3))&&!(a15==1))&&(a6==1))))&&!(a27==1)))))){ + if((a4==1)){ + a5 = 0; + a12 = 10; + a4 = 0; + a22 = 0; + a18 = 0; + a3 = 7; + a6 = 0; + }else{ + a18 = 1; + a22 = 1; + a3 = 7; + a12 = 8; + a0 = 1; + a27 = 1; + a15 = 1; + a6 = 0; + } + return 21; + } else if((((a4==1)&&(!(a6==1)&&((a12==10)&&(!(a5==1)&&(!(a27==1)&&((a18==1)&&(!(a15==1)&&((((input==1)&&(a20==1))&&!(a22==1))&&!(a0==1)))))))))&&(a3==7))){ + if((a6==1)){ + a0 = 1; + a15 = 1; + a5 = 1; + a3 = 6; + a27 = 1; + a12 = 8; + }else{ + a18 = 0; + a6 = 1; + a12 = 9; + a4 = 0; + a22 = 1; + a27 = 1; + a3 = 6; + } + return -1; + } else if((((a20==1)&&((a12==11)&&((((((!(a27==1)&&((input==4)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))&&!(a6==1))&&(a3==7))&&!(a0==1))&&(a4==1))&&(a5==1))))&&!(a15==1))){ + a3 = 8; + a18 = 1; + a0 = 1; + a22 = 0; + a12 = 8; + a6 = 1; + return -1; + } else if((((a20==1)&&((!(a15==1)&&(!(a0==1)&&(((input==6)&&(((((a3==8)&&((a4==1)&&(!(a22==1)&&(a18==1))))&&!(a6==1))||(!(a6==1)&&((a3==8)&&((a4==1)&&(!(a22==1)&&!(a18==1))))))||(((((a22==1)&&(a18==1))&&!(a4==1))&&(a3==4))&&(a6==1))))&&(a5==1))))&&(a27==1)))&&(a12==10))){ + a3 = 4; + a12 = 11; + a22 = 1; + a18 = 1; + a4 = 1; + a5 = 0; + a6 = 0; + a0 = 1; + return 24; + } else if((!(a5==1)&&((((a27==1)&&(((a3==4)&&((a4==1)&&((a22==1)&&(((((a18==1)||!(a18==1))&&(input==5))&&!(a6==1))&&(a20==1)))))&&!(a0==1)))&&(a15==1))&&(a12==12)))){ + if((a5==1)){ + a18 = 1; + a12 = 11; + a6 = 1; + a4 = 0; + a3 = 5; + }else{ + a6 = 1; + a3 = 7; + a18 = 1; + a12 = 11; + } + return -1; + } else if((!(a22==1)&&((a20==1)&&(((a15==1)&&(((a12==11)&&(((!(a27==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a4==1)))&&(a0==1))&&!(a6==1)))&&(a5==1)))&&(a3==7))))){ + a18 = 1; + a27 = 1; + a3 = 8; + return 26; + } else if(((a0==1)&&(((a5==1)&&(((a27==1)&&(((a3==6)&&(((a20==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==3)))&&!(a4==1)))&&(a15==1)))&&(a12==10)))&&(a6==1)))){ + a12 = 11; + a22 = 0; + a15 = 0; + a0 = 0; + a18 = 0; + a5 = 0; + return -1; + } else if(((a20==1)&&(((((a15==1)&&(((!(a0==1)&&((a3==5)&&((input==5)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))))&&!(a5==1))&&(a27==1)))&&!(a4==1))&&(a12==10))&&(a6==1)))){ + a18 = 1; + a3 = 6; + a27 = 0; + a5 = 1; + a22 = 0; + a12 = 11; + a0 = 1; + return 21; + } else if(((((a0==1)&&(((((a12==12)&&(!(a15==1)&&((a3==7)&&(((a27==1)&&(input==4))&&!(a18==1)))))&&(a20==1))&&(a5==1))&&(a6==1)))&&!(a4==1))&&!(a22==1))){ + a22 = 1; + a4 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + a15 = 1; + return -1; + } else if(((a4==1)&&(!(a15==1)&&((a0==1)&&(((a27==1)&&(((a5==1)&&((((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4))))&&(input==6)))&&(a20==1)))&&(a12==12)))))){ + a22 = 1; + a18 = 0; + a3 = 8; + a6 = 1; + return -1; + } else if(((a27==1)&&((a4==1)&&(((a15==1)&&(!(a5==1)&&((!(a0==1)&&(((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==6))&&(a12==8)))&&(a20==1))))&&(a6==1))))){ + a4 = 0; + a15 = 0; + a22 = 1; + a6 = 0; + a3 = 8; + a18 = 0; + a12 = 10; + a5 = 1; + a0 = 1; + return 26; + } else if(((a0==1)&&((((((((a3==4)&&(((a15==1)&&(((a22==1)&&(a18==1))&&!(a5==1)))&&(a4==1)))&&(a6==1))||((((a3==8)&&(!(a4==1)&&(((a5==1)&&(!(a22==1)&&(a18==1)))&&!(a15==1))))&&!(a6==1))||((((((a5==1)&&(!(a22==1)&&!(a18==1)))&&!(a15==1))&&!(a4==1))&&(a3==8))&&!(a6==1))))&&(input==4))&&(a20==1))&&!(a27==1))&&(a12==10)))){ + a12 = 12; + a3 = 4; + a6 = 1; + a5 = 0; + a15 = 0; + a4 = 0; + a22 = 0; + a18 = 1; + return 21; + } else if(((a12==12)&&((((!(a15==1)&&(!(a6==1)&&(((a0==1)&&((((input==3)&&(a22==1))&&(a18==1))&&(a20==1)))&&!(a4==1))))&&(a5==1))&&(a3==7))&&(a27==1)))){ + a3 = 4; + a0 = 0; + a12 = 10; + a22 = 0; + return 21; + } else if((!(a22==1)&&((a18==1)&&((a20==1)&&((a0==1)&&((a3==6)&&(((a5==1)&&(((((input==2)&&(a27==1))&&!(a6==1))&&(a4==1))&&(a12==10)))&&!(a15==1)))))))){ + if((a12==12)){ + a3 = 4; + a5 = 0; + a18 = 0; + a0 = 0; + a4 = 0; + }else{ + a4 = 0; + a15 = 1; + a5 = 0; + a6 = 1; + } + return 21; + } else if((((a0==1)&&((((!(a15==1)&&(((a20==1)&&(!(a27==1)&&((((a18==1)||!(a18==1))&&(input==2))&&!(a4==1))))&&!(a22==1)))&&(a3==8))&&!(a6==1))&&(a12==12)))&&!(a5==1))){ + a18 = 0; + a5 = 1; + a27 = 1; + a3 = 6; + a4 = 1; + a15 = 1; + return -1; + } else if((((a12==9)&&(((((((a6==1)&&((input==1)&&((((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1))))||((a3==7)&&((a22==1)&&(a18==1))))))&&(a0==1))&&(a15==1))&&(a27==1))&&!(a5==1))&&(a4==1)))&&(a20==1))){ + a12 = 8; + a22 = 1; + a18 = 0; + a27 = 0; + a3 = 8; + a15 = 0; + a5 = 1; + return 21; + } else if(((a20==1)&&((a15==1)&&((!(a6==1)&&((!(a0==1)&&(!(a27==1)&&(!(a4==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))||((a3==6)&&((a22==1)&&!(a18==1))))&&(input==1)))))&&(a12==10)))&&(a5==1))))){ + if((a3==5)){ + a22 = 0; + a27 = 1; + a3 = 6; + a18 = 1; + a6 = 1; + a12 = 8; + a0 = 1; + }else{ + a3 = 6; + a22 = 0; + a4 = 1; + a6 = 1; + a18 = 0; + a12 = 8; + a27 = 1; + a0 = 1; + } + return -1; + } else if((((((a6==1)&&((((((a20==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==5)))&&(a3==7))&&(a0==1))&&!(a4==1))&&!(a5==1)))&&(a12==11))&&!(a15==1))&&!(a27==1))){ + a22 = 1; + a27 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + a4 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if(((a18==1)&&((((a0==1)&&(((((((a3==7)&&(!(a27==1)&&(input==4)))&&(a6==1))&&(a20==1))&&(a5==1))&&(a15==1))&&!(a22==1)))&&!(a4==1))&&(a12==8)))){ + if((a5==1)){ + a15 = 0; + a0 = 0; + a6 = 0; + a12 = 10; + a27 = 1; + a4 = 1; + a5 = 0; + a3 = 5; + }else{ + a4 = 1; + a12 = 11; + a3 = 4; + a5 = 0; + } + return 26; + } else if(((a27==1)&&((a5==1)&&(((!(a15==1)&&((a0==1)&&((((!(a6==1)&&((!(a18==1)&&(a22==1))&&(a3==4)))||((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4)))))&&(input==1))&&!(a4==1))))&&(a20==1))&&(a12==9))))){ + a4 = 1; + a3 = 4; + a12 = 8; + a15 = 1; + a22 = 1; + a18 = 1; + a6 = 1; + return -1; + } else if(((a15==1)&&((a5==1)&&(!(a6==1)&&((a20==1)&&(((!(a4==1)&&(((input==4)&&((((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==7))))&&!(a0==1)))&&!(a27==1))&&(a12==10))))))){ + if((a4==1)){ + a22 = 0; + a12 = 8; + a27 = 1; + a3 = 5; + a4 = 1; + a6 = 1; + a18 = 1; + a0 = 1; + }else{ + a27 = 1; + a22 = 1; + a6 = 1; + a18 = 1; + a4 = 1; + a3 = 5; + a0 = 1; + a12 = 8; + } + return 21; + } else if((!(a18==1)&&((a12==10)&&((a6==1)&&(((a20==1)&&((((((!(a22==1)&&(input==4))&&!(a5==1))&&(a27==1))&&!(a15==1))&&!(a0==1))&&!(a4==1)))&&(a3==7)))))){ + a18 = 1; + a12 = 9; + a15 = 1; + a27 = 0; + a0 = 1; + a4 = 1; + a3 = 8; + return -1; + } else if(((a12==12)&&((((a0==1)&&(!(a15==1)&&(((a5==1)&&(!(a4==1)&&((((input==1)&&((a18==1)||!(a18==1)))&&!(a27==1))&&(a3==7))))&&(a22==1))))&&!(a6==1))&&(a20==1)))){ + a6 = 1; + a27 = 1; + a18 = 1; + a4 = 1; + a12 = 8; + a15 = 1; + a3 = 4; + return -1; + } else if(((a5==1)&&(!(a0==1)&&((a12==8)&&((a15==1)&&(((a20==1)&&(!(a6==1)&&(((((!(a18==1)&&(a22==1))&&(a3==8))||(((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1)))))&&(input==1))&&(a27==1))))&&(a4==1))))))){ + a0 = 1; + a22 = 1; + a15 = 0; + a18 = 0; + a27 = 0; + a3 = 7; + a12 = 9; + return 26; + } else if(((((((a0==1)&&((((((a12==10)&&((input==5)&&((a18==1)||!(a18==1))))&&!(a15==1))&&(a5==1))&&(a6==1))&&(a20==1)))&&(a4==1))&&!(a22==1))&&!(a27==1))&&(a3==5))){ + a4 = 0; + a15 = 1; + a22 = 1; + a3 = 7; + a27 = 1; + a18 = 0; + a12 = 12; + return 26; + } else if((((a6==1)&&((((a0==1)&&((a3==6)&&((a20==1)&&(((a4==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a15==1)))&&!(a27==1)))))&&(a12==9))&&!(a22==1)))&&(a5==1))){ + a12 = 11; + a15 = 0; + a3 = 4; + a18 = 0; + a27 = 1; + a22 = 1; + a4 = 0; + a6 = 0; + return 21; + } else if(((((a3==4)&&(!(a6==1)&&((!(a27==1)&&(!(a0==1)&&((a22==1)&&((((input==2)&&((a18==1)||!(a18==1)))&&(a5==1))&&!(a4==1)))))&&(a20==1))))&&(a12==10))&&(a15==1))){ + a4 = 1; + a3 = 8; + a18 = 1; + a22 = 0; + a12 = 8; + return -1; + } else if((((a20==1)&&(((((!(a4==1)&&((a5==1)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==3))))&&!(a0==1))&&!(a6==1))&&!(a15==1))&&(a12==11)))&&(a27==1))){ + a18 = 1; + a3 = 5; + a4 = 1; + a12 = 10; + a6 = 1; + a22 = 0; + a0 = 1; + return 21; + } else if(((a3==8)&&(!(a6==1)&&(!(a5==1)&&((!(a4==1)&&(!(a22==1)&&(((((((a18==1)||!(a18==1))&&(input==5))&&!(a15==1))&&(a27==1))&&(a12==10))&&!(a0==1))))&&(a20==1)))))){ + a6 = 1; + a18 = 1; + a0 = 1; + a12 = 11; + a4 = 1; + a3 = 7; + return -1; + } else if(((a12==8)&&((a0==1)&&(!(a4==1)&&((a27==1)&&(!(a6==1)&&((a22==1)&&((!(a5==1)&&(!(a15==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a20==1))))&&(a3==7))))))))){ + a0 = 0; + a18 = 0; + a12 = 11; + a15 = 1; + return 24; + } else if(((a20==1)&&(!(a4==1)&&(((((!(a6==1)&&((a12==10)&&(((a3==8)&&(!(a18==1)&&(input==5)))&&(a15==1))))&&!(a0==1))&&(a5==1))&&(a27==1))&&!(a22==1))))){ + a4 = 1; + a3 = 6; + a0 = 1; + return -1; + } else if((((((a4==1)&&((!(a6==1)&&((!(a0==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5))&&!(a5==1)))&&!(a27==1)))&&(a20==1)))&&!(a15==1))&&(a3==6))&&(a12==11))){ + a6 = 1; + a0 = 1; + a12 = 10; + a18 = 0; + a22 = 1; + a3 = 8; + return 24; + } else if(((!(a5==1)&&(!(a27==1)&&(!(a4==1)&&(((((a15==1)&&(!(a18==1)&&(((a6==1)&&(input==5))&&!(a22==1))))&&(a20==1))&&(a3==4))&&(a12==8)))))&&(a0==1))){ + a18 = 1; + a22 = 1; + a5 = 1; + a3 = 7; + return 21; + } else if((((a27==1)&&((a0==1)&&(((a3==5)&&(!(a5==1)&&(((a12==8)&&((a6==1)&&(!(a15==1)&&((input==5)&&((a18==1)||!(a18==1))))))&&(a20==1))))&&(a22==1))))&&(a4==1))){ + a3 = 4; + a5 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if(((!(a5==1)&&(!(a15==1)&&((((!(a0==1)&&((input==5)&&(((((a3==8)&&((a18==1)&&!(a22==1)))&&(a6==1))||(((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1)))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1)))))))&&(a27==1))&&(a4==1))&&(a12==11))))&&(a20==1))){ + a0 = 1; + a18 = 1; + a6 = 1; + a12 = 8; + a22 = 1; + a15 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if((((a0==1)&&(((((!(a15==1)&&((!(a5==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==5)))&&(a4==1)))&&!(a27==1))&&(a20==1))&&(a12==9))&&(a6==1)))&&(a3==8))){ + a12 = 11; + a27 = 1; + a18 = 1; + a5 = 1; + a4 = 0; + a22 = 1; + return 21; + } return calculate_output36(input); + } + + int calculate_output36(int input) { + if((((a5==1)&&((!(a6==1)&&((((a12==11)&&((!(a4==1)&&(((input==6)&&!(a27==1))&&(a22==1)))&&!(a0==1)))&&(a20==1))&&(a3==8)))&&(a15==1)))&&!(a18==1))){ + a6 = 1; + a0 = 1; + a3 = 4; + a27 = 1; + a12 = 8; + return 26; + } else if(((a15==1)&&((a5==1)&&((a4==1)&&(((a20==1)&&(((a27==1)&&((a0==1)&&((a3==6)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==1)))))&&!(a6==1)))&&(a12==10)))))){ + a6 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((!(a5==1)&&((((a6==1)&&((!(a22==1)&&((a20==1)&&((a27==1)&&((a15==1)&&(((a18==1)||!(a18==1))&&(input==3))))))&&!(a4==1)))&&(a3==7))&&(a0==1)))&&(a12==11))){ + a22 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + a4 = 1; + a5 = 1; + return -1; + } else if((!(a15==1)&&((((a27==1)&&(!(a5==1)&&((a0==1)&&((((((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==4))&&(a20==1))&&!(a6==1)))))&&!(a4==1))&&(a12==9)))){ + a4 = 1; + a5 = 1; + a22 = 0; + a3 = 8; + a27 = 0; + a18 = 0; + return 26; + } else if(((a0==1)&&(!(a27==1)&&((a3==8)&&((!(a6==1)&&((((a15==1)&&(((((a18==1)||!(a18==1))&&(input==1))&&(a22==1))&&(a20==1)))&&(a12==10))&&!(a4==1)))&&!(a5==1)))))){ + a27 = 1; + a12 = 8; + a18 = 1; + a3 = 6; + a5 = 1; + return 21; + } else if(((((!(a15==1)&&((((a12==8)&&((a4==1)&&((a22==1)&&((a0==1)&&(((a18==1)||!(a18==1))&&(input==3))))))&&(a5==1))&&!(a6==1)))&&!(a27==1))&&(a3==8))&&(a20==1))){ + a27 = 1; + a3 = 4; + a18 = 1; + a15 = 1; + a6 = 1; + return -1; + } else if(((a15==1)&&((((!(a27==1)&&((a6==1)&&(((a12==10)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==3))&&!(a5==1)))&&!(a0==1))))&&(a20==1))&&(a3==6))&&!(a4==1)))){ + if((a0==1)){ + a5 = 1; + a22 = 0; + a3 = 4; + a6 = 0; + a18 = 0; + }else{ + a4 = 1; + a18 = 1; + a27 = 1; + a22 = 1; + a12 = 8; + a5 = 1; + a3 = 5; + a0 = 1; + } + return -1; + } else if((((!(a0==1)&&(!(a5==1)&&((a4==1)&&(((!(a6==1)&&((input==5)&&((((a22==1)&&(a18==1))&&(a3==5))||(((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a18==1)&&!(a22==1)))))))&&(a12==9))&&!(a27==1)))))&&(a20==1))&&(a15==1))){ + a18 = 0; + a12 = 8; + a27 = 1; + a0 = 1; + a3 = 7; + a5 = 1; + a22 = 0; + return -1; + } else if((!(a27==1)&&((a20==1)&&((a0==1)&&(((((a12==11)&&((!(a4==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5)))&&(a6==1)))&&!(a5==1))&&(a3==4))&&(a15==1)))))){ + a22 = 1; + a5 = 1; + a18 = 0; + a12 = 9; + a3 = 7; + a15 = 0; + return -1; + } else if((((((!(a5==1)&&((a15==1)&&((((input==6)&&(((a3==5)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1))))))&&(a12==9))&&!(a27==1))))&&!(a0==1))&&!(a4==1))&&!(a6==1))&&(a20==1))){ + if((a27==1)){ + a0 = 1; + a5 = 1; + a3 = 4; + a27 = 1; + a22 = 0; + a12 = 8; + a6 = 1; + a18 = 1; + }else{ + a6 = 1; + a18 = 1; + a22 = 1; + a0 = 1; + a5 = 1; + a27 = 1; + a12 = 8; + a3 = 5; + a4 = 1; + } + return 21; + } else if((!(a18==1)&&(!(a22==1)&&((((a12==12)&&((a20==1)&&((a3==8)&&((a5==1)&&((((input==5)&&(a27==1))&&(a6==1))&&!(a0==1))))))&&(a15==1))&&!(a4==1))))){ + a6 = 0; + a0 = 1; + a3 = 6; + a5 = 0; + a22 = 1; + a18 = 1; + a12 = 9; + a27 = 0; + return 26; + } else if((((a12==8)&&((!(a0==1)&&(!(a27==1)&&((a20==1)&&((a5==1)&&((((((a18==1)&&(a22==1))&&(a3==5))||(((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1)))))&&(input==3))&&!(a6==1))))))&&(a4==1)))&&!(a15==1))){ + if((a27==1)){ + a5 = 0; + a18 = 1; + a22 = 1; + a12 = 9; + a3 = 6; + a27 = 1; + }else{ + a3 = 4; + a27 = 1; + a18 = 0; + a22 = 0; + a0 = 1; + a15 = 1; + a6 = 1; + } + return 21; + } else if((!(a27==1)&&((a15==1)&&((a6==1)&&((((((a18==1)&&((a20==1)&&(((input==5)&&(a5==1))&&!(a0==1))))&&(a4==1))&&(a22==1))&&(a3==4))&&(a12==8)))))){ + a18 = 0; + a15 = 0; + a27 = 1; + a22 = 0; + a12 = 10; + a4 = 0; + a6 = 0; + a3 = 5; + return -1; + } else if(((((((((a20==1)&&(((((a5==1)&&(input==3))&&(a3==7))&&(a22==1))&&(a12==11)))&&(a6==1))&&!(a4==1))&&!(a27==1))&&(a18==1))&&(a15==1))&&(a0==1))){ + a6 = 0; + a3 = 6; + a12 = 10; + a27 = 1; + return -1; + } else if(((a12==8)&&((!(a6==1)&&(!(a27==1)&&((a5==1)&&((((a3==6)&&((a22==1)&&((a0==1)&&((input==6)&&((a18==1)||!(a18==1))))))&&!(a15==1))&&(a20==1)))))&&(a4==1)))){ + a5 = 0; + a27 = 1; + a3 = 5; + a18 = 1; + a15 = 1; + a0 = 0; + return 21; + } else if((((((((((a4==1)&&((a20==1)&&((input==6)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&(a6==1))&&(a3==4))&&!(a27==1))&&(a0==1))&&(a15==1))&&(a12==11))&&!(a5==1))){ + a18 = 1; + a6 = 0; + a15 = 0; + a3 = 5; + a22 = 1; + a12 = 10; + a5 = 1; + return -1; + } else if(((((!(a6==1)&&((a20==1)&&(!(a5==1)&&(((a27==1)&&((a3==7)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==3))))&&!(a0==1)))))&&(a4==1))&&(a12==8))&&!(a15==1))){ + a6 = 1; + a22 = 1; + a0 = 1; + a12 = 11; + a15 = 1; + a18 = 1; + return 24; + } else if(((a12==10)&&((a6==1)&&((a20==1)&&((a27==1)&&((((!(a4==1)&&(((a3==6)&&(!(a15==1)&&(input==2)))&&!(a0==1)))&&!(a22==1))&&(a5==1))&&(a18==1))))))){ + a3 = 5; + a0 = 1; + a4 = 1; + return -1; + } else if(((a4==1)&&((!(a27==1)&&((((a0==1)&&((a20==1)&&(!(a6==1)&&(((((a22==1)&&(a18==1))&&(a3==6))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1)))))&&(input==6)))))&&(a15==1))&&(a12==11)))&&(a5==1)))){ + a3 = 7; + a27 = 1; + a22 = 1; + a18 = 1; + a12 = 10; + a5 = 0; + a0 = 0; + return 24; + } else if(((a27==1)&&(!(a4==1)&&((a20==1)&&(!(a5==1)&&((a22==1)&&((a12==12)&&((a6==1)&&((a3==4)&&((((a0==1)&&(input==4))&&(a15==1))&&!(a18==1))))))))))){ + a3 = 5; + a12 = 8; + a5 = 1; + a18 = 1; + a6 = 0; + return 26; + } else if((((a4==1)&&(((a3==7)&&(((a6==1)&&((a12==9)&&(((a20==1)&&((input==3)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))&&!(a27==1))))&&!(a0==1)))&&!(a15==1)))&&!(a5==1))){ + if((a0==1)){ + a3 = 5; + a22 = 1; + a27 = 1; + a0 = 1; + a12 = 8; + a18 = 0; + a5 = 1; + a15 = 1; + }else{ + a18 = 1; + a12 = 11; + a22 = 0; + a5 = 1; + a3 = 4; + a15 = 1; + } + return -1; + } else if(((a6==1)&&((a15==1)&&((a12==10)&&(((!(a4==1)&&(!(a27==1)&&((a3==8)&&(!(a18==1)&&(!(a22==1)&&(!(a0==1)&&(input==6)))))))&&(a5==1))&&(a20==1)))))){ + if((a22==1)){ + a5 = 0; + a22 = 1; + a12 = 8; + a15 = 0; + a4 = 1; + a3 = 7; + a6 = 0; + a18 = 1; + }else{ + a18 = 1; + a12 = 8; + a27 = 1; + a0 = 1; + a4 = 1; + a22 = 1; + } + return 21; + } else if(((a20==1)&&(((!(a6==1)&&(((a5==1)&&(((((input==2)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&(a15==1))&&!(a4==1))&&(a12==8)))&&(a3==6)))&&(a0==1))&&(a27==1)))){ + a22 = 1; + a4 = 1; + a18 = 0; + a15 = 0; + a3 = 5; + return 21; + } else if(((((a0==1)&&((a4==1)&&((a5==1)&&((((a22==1)&&(!(a15==1)&&(((input==6)&&!(a18==1))&&(a3==8))))&&!(a6==1))&&(a20==1)))))&&(a27==1))&&(a12==11))){ + a4 = 0; + a15 = 1; + a12 = 10; + a3 = 4; + a22 = 0; + return -1; + } else if(((!(a0==1)&&((a12==8)&&(((a20==1)&&((((input==2)&&(((((a3==8)&&((a18==1)&&!(a22==1)))&&(a6==1))||(((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1)))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1))))&&!(a5==1))&&!(a27==1)))&&!(a4==1))))&&!(a15==1))){ + a5 = 1; + a12 = 11; + a22 = 1; + a3 = 7; + a18 = 0; + a4 = 1; + a0 = 1; + a6 = 1; + return 21; + } else if((((!(a27==1)&&((a5==1)&&(!(a18==1)&&((a22==1)&&(!(a4==1)&&((((a20==1)&&((input==4)&&(a0==1)))&&(a3==4))&&(a12==9)))))))&&(a6==1))&&(a15==1))){ + if((a12==8)){ + a6 = 0; + a18 = 1; + a5 = 0; + a27 = 1; + a0 = 0; + a4 = 1; + a3 = 5; + a12 = 8; + }else{ + a5 = 0; + a18 = 1; + a12 = 11; + a27 = 1; + a22 = 0; + a4 = 1; + a3 = 7; + a15 = 0; + } + return 24; + } else if((((((!(a15==1)&&(!(a6==1)&&((((input==2)&&(((a3==8)&&((a22==1)&&!(a18==1)))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a22==1)&&(a18==1))))))&&(a20==1))&&(a12==9))))&&(a0==1))&&!(a4==1))&&(a5==1))&&(a27==1))){ + a0 = 0; + a4 = 1; + a3 = 5; + a18 = 1; + a5 = 0; + a22 = 0; + a15 = 1; + a6 = 1; + return 21; + } else if(((((a27==1)&&((!(a6==1)&&((a3==6)&&((a12==10)&&(!(a5==1)&&((a0==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==2)))))))&&(a20==1)))&&!(a15==1))&&(a4==1))){ + a15 = 1; + a18 = 1; + a3 = 5; + a0 = 0; + a22 = 0; + return -1; + } else if(((((a15==1)&&(!(a5==1)&&(((a20==1)&&((!(a6==1)&&((a22==1)&&((a12==11)&&(((a18==1)||!(a18==1))&&(input==1)))))&&(a0==1)))&&!(a27==1))))&&(a3==7))&&(a4==1))){ + a27 = 1; + a4 = 0; + a18 = 1; + a5 = 1; + a22 = 0; + a6 = 1; + return 21; + } else if(((((a3==8)&&((!(a0==1)&&(((a12==9)&&((a15==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5))&&(a20==1))))&&!(a6==1)))&&(a4==1)))&&!(a27==1))&&(a5==1))){ + a18 = 0; + a27 = 1; + a0 = 1; + a22 = 0; + a12 = 8; + a3 = 5; + return -1; + } else if(((((!(a5==1)&&((a27==1)&&(((a3==7)&&(((a12==10)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==3)))&&(a20==1)))&&(a6==1))))&&!(a0==1))&&!(a15==1))&&(a4==1))){ + a5 = 1; + a18 = 0; + a6 = 0; + a12 = 12; + a27 = 0; + a3 = 4; + a4 = 0; + a22 = 0; + a0 = 1; + return 21; + } else if((((a15==1)&&((((!(a5==1)&&(((((a0==1)&&(!(a4==1)&&(input==5)))&&(a20==1))&&(a27==1))&&(a3==6)))&&!(a22==1))&&!(a18==1))&&(a12==11)))&&!(a6==1))){ + a6 = 1; + a5 = 1; + a22 = 1; + a3 = 4; + a4 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if((((a27==1)&&(((((((((input==6)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&(a12==8))&&!(a6==1))&&(a20==1))&&(a4==1))&&!(a0==1))&&!(a5==1))&&(a3==4)))&&(a15==1))){ + a3 = 8; + a18 = 0; + a0 = 1; + a12 = 10; + a22 = 0; + return 26; + } else if(((a20==1)&&(((a5==1)&&(!(a18==1)&&((a3==4)&&(((((a0==1)&&((!(a4==1)&&(input==4))&&(a12==11)))&&!(a6==1))&&!(a15==1))&&(a27==1)))))&&(a22==1)))){ + a15 = 1; + a3 = 5; + a27 = 0; + return 21; + } else if((!(a4==1)&&(((a15==1)&&(!(a27==1)&&((!(a6==1)&&((a12==10)&&(((input==6)&&((((!(a22==1)&&(a18==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))||((a3==5)&&((a22==1)&&(a18==1)))))&&!(a0==1))))&&(a5==1))))&&(a20==1)))){ + a4 = 1; + a18 = 0; + a27 = 1; + a12 = 8; + a0 = 1; + a3 = 5; + a22 = 1; + return -1; + } else if(((a20==1)&&((((a12==12)&&(!(a6==1)&&(((a5==1)&&((a4==1)&&((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==1))&&(a3==6))))&&!(a0==1))))&&(a27==1))&&!(a15==1)))){ + if((a12==10)){ + a6 = 1; + a4 = 0; + a22 = 1; + a12 = 10; + a18 = 1; + }else{ + a12 = 8; + a3 = 4; + a15 = 1; + a4 = 0; + a6 = 1; + a22 = 1; + a0 = 1; + a18 = 1; + } + return 21; + } else if((((a27==1)&&(((a18==1)&&((a12==11)&&(!(a5==1)&&(!(a6==1)&&((((a0==1)&&((input==5)&&(a3==8)))&&!(a15==1))&&(a20==1))))))&&!(a4==1)))&&!(a22==1))){ + a22 = 1; + a18 = 0; + a3 = 7; + a5 = 1; + a0 = 0; + return -1; + } else if((((a4==1)&&((a0==1)&&((a5==1)&&((a12==10)&&((a15==1)&&(!(a27==1)&&((input==2)&&(((((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1)))||(!(a6==1)&&((!(a18==1)&&(a22==1))&&(a3==4)))))))))))&&(a20==1))){ + a6 = 0; + a18 = 0; + a22 = 1; + a3 = 4; + a12 = 11; + return 21; + } else if((((((a27==1)&&(((!(a22==1)&&(((a18==1)&&(((input==3)&&!(a0==1))&&!(a4==1)))&&(a12==10)))&&(a20==1))&&!(a5==1)))&&!(a15==1))&&(a6==1))&&(a3==5))){ + a12 = 12; + a4 = 1; + a22 = 1; + a0 = 1; + a18 = 0; + a5 = 1; + a3 = 4; + return 24; + } else if(((!(a0==1)&&(!(a22==1)&&(((a15==1)&&((a4==1)&&(!(a27==1)&&(((!(a5==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a20==1))&&(a12==11)))))&&(a6==1))))&&(a3==6))){ + a0 = 1; + a27 = 1; + a18 = 1; + a4 = 0; + a5 = 1; + a22 = 1; + a12 = 8; + return 21; + } else if(((((((a20==1)&&((a12==12)&&(((a3==4)&&((!(a4==1)&&((a15==1)&&(input==2)))&&!(a22==1)))&&!(a5==1))))&&(a0==1))&&!(a27==1))&&!(a6==1))&&(a18==1))){ + a12 = 8; + a6 = 1; + a4 = 1; + a27 = 1; + a5 = 1; + a22 = 1; + return -1; + } else if(((!(a27==1)&&(!(a0==1)&&(((a12==8)&&((input==3)&&((!(a6==1)&&((a3==8)&&(!(a4==1)&&((!(a22==1)&&!(a18==1))&&(a15==1)))))||((a6==1)&&(((!(a15==1)&&((a18==1)&&(a22==1)))&&(a4==1))&&(a3==4))))))&&(a20==1))))&&(a5==1))){ + a15 = 1; + a27 = 1; + a4 = 1; + a0 = 1; + a3 = 8; + a22 = 0; + a6 = 1; + a18 = 1; + return 26; + } else if(((a27==1)&&((a6==1)&&(((((a12==8)&&(!(a15==1)&&((((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1))))||((a3==7)&&((a22==1)&&!(a18==1))))&&(input==5))&&(a0==1))))&&!(a5==1))&&(a20==1))&&!(a4==1))))){ + a4 = 1; + a18 = 1; + a5 = 1; + a22 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if((((((a6==1)&&(!(a18==1)&&(!(a27==1)&&(!(a5==1)&&(((a3==4)&&(((input==4)&&(a0==1))&&(a20==1)))&&!(a22==1))))))&&(a15==1))&&(a12==8))&&!(a4==1))){ + a3 = 5; + a27 = 1; + a15 = 0; + a18 = 1; + a12 = 10; + a5 = 1; + return 21; + } else if((((a6==1)&&(((a12==11)&&(!(a4==1)&&((a20==1)&&(!(a15==1)&&(((input==1)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1)))))&&(a27==1))))))&&(a5==1)))&&(a0==1))){ + a22 = 1; + a18 = 0; + a3 = 4; + return -1; + } else if(((!(a4==1)&&(((a5==1)&&((((a12==8)&&((a15==1)&&((!(a22==1)&&((input==1)&&!(a27==1)))&&(a6==1))))&&(a3==7))&&(a0==1)))&&(a18==1)))&&(a20==1))){ + a22 = 1; + a27 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if((((((((a0==1)&&((a20==1)&&(!(a5==1)&&((input==6)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))||((a3==8)&&(!(a18==1)&&(a22==1))))))))&&!(a6==1))&&!(a15==1))&&(a4==1))&&!(a27==1))&&(a12==8))){ + if((a22==1)){ + a0 = 0; + a27 = 1; + a22 = 1; + a18 = 1; + a6 = 1; + a3 = 5; + }else{ + a12 = 9; + a22 = 1; + a3 = 8; + a15 = 1; + a18 = 1; + } + return 21; + } else if((((a5==1)&&(!(a15==1)&&((((((((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==3))&&(a6==1))&&(a20==1))&&(a0==1))&&(a3==4))&&!(a27==1))&&(a4==1))))&&(a12==12))){ + a15 = 1; + a18 = 0; + a27 = 1; + a6 = 0; + a22 = 0; + return 26; + } else if((!(a5==1)&&((a15==1)&&((((((!(a4==1)&&(((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==8)))||(((a22==1)&&!(a18==1))&&(a3==8)))&&(input==5)))&&(a20==1))&&(a12==9))&&(a0==1))&&!(a27==1))&&!(a6==1))))){ + a22 = 0; + a4 = 1; + a18 = 1; + a12 = 10; + a27 = 1; + a5 = 1; + a3 = 6; + return 26; + } else if((((!(a27==1)&&((a20==1)&&(!(a5==1)&&(((a4==1)&&(((input==1)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8))))&&!(a6==1)))&&(a15==1)))))&&!(a0==1))&&(a12==8))){ + a22 = 0; + a18 = 1; + a0 = 1; + a3 = 6; + a5 = 1; + a27 = 1; + return -1; + } else if(((a3==8)&&(!(a0==1)&&((((((a12==12)&&((!(a4==1)&&((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a20==1)))&&(a27==1))&&(a6==1))&&(a5==1))&&(a15==1))))){ + a0 = 1; + a6 = 0; + a22 = 1; + a3 = 5; + a12 = 10; + a18 = 1; + a5 = 0; + return -1; + } else if((((((((a12==11)&&(((((a6==1)&&((a15==1)&&(input==3)))&&!(a18==1))&&(a22==1))&&!(a5==1)))&&(a0==1))&&(a3==4))&&(a20==1))&&!(a4==1))&&(a27==1))){ + return -1; + } else if((!(a22==1)&&((a15==1)&&((a3==7)&&(((a0==1)&&(((!(a4==1)&&(((a20==1)&&((input==6)&&(a6==1)))&&(a12==8)))&&(a5==1))&&(a18==1)))&&!(a27==1)))))){ + a4 = 1; + a22 = 1; + a27 = 1; + a3 = 4; + return -1; + } else if((((a3==6)&&((((!(a27==1)&&(((a15==1)&&(!(a22==1)&&(((input==2)&&(a4==1))&&!(a5==1))))&&(a18==1)))&&(a12==11))&&!(a6==1))&&(a0==1)))&&(a20==1))){ + a15 = 0; + a3 = 4; + a22 = 1; + a18 = 0; + a5 = 1; + a6 = 1; + a27 = 1; + a12 = 10; + return 21; + } else if(((a4==1)&&((!(a0==1)&&(!(a27==1)&&((a20==1)&&(!(a6==1)&&(((a5==1)&&((((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==5)))&&(a15==1))))))&&(a12==10)))){ + if((a27==1)){ + a6 = 1; + a4 = 0; + a27 = 1; + a0 = 1; + a22 = 1; + a18 = 0; + a12 = 8; + a3 = 5; + }else{ + a18 = 0; + a3 = 8; + a15 = 0; + a22 = 0; + a4 = 0; + a27 = 1; + a12 = 9; + } + return 26; + } else if(((((a27==1)&&(((((((a5==1)&&((input==6)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&(a6==1))&&!(a4==1))&&(a20==1))&&(a15==1))&&(a3==8)))&&!(a0==1))&&(a12==11))){ + a15 = 0; + a5 = 0; + a18 = 0; + a22 = 1; + a3 = 6; + a6 = 0; + a4 = 1; + return 26; + } else if(((a6==1)&&(((((a20==1)&&((((a3==7)&&((a0==1)&&(((input==3)&&(a15==1))&&!(a5==1))))&&!(a22==1))&&(a12==9)))&&!(a18==1))&&(a4==1))&&(a27==1)))){ + a6 = 0; + a12 = 8; + a5 = 1; + a15 = 0; + a3 = 6; + a27 = 0; + return 26; + } else if((((((((!(a0==1)&&((a15==1)&&((a12==9)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==3)))))&&(a27==1))&&!(a5==1))&&!(a4==1))&&(a6==1))&&(a3==5))&&(a20==1))){ + if((a27==1)){ + a5 = 1; + a3 = 7; + a22 = 0; + a12 = 12; + a18 = 0; + }else{ + a12 = 10; + a22 = 1; + a18 = 1; + a0 = 1; + a15 = 0; + } + return -1; + } else if(((a27==1)&&((a20==1)&&((((a12==9)&&((a5==1)&&(((a3==4)&&(!(a15==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4))))&&(a6==1))))&&(a4==1))&&(a0==1))))){ + a12 = 8; + a15 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if((!(a6==1)&&((((a5==1)&&((((a15==1)&&((a20==1)&&(((input==2)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&(a12==11))))&&(a3==5))&&(a27==1)))&&!(a4==1))&&!(a0==1)))){ + a22 = 1; + a18 = 0; + a0 = 1; + return 26; + } else if((((!(a0==1)&&(((a20==1)&&(((input==3)&&((((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1))))&&!(a6==1))||((a6==1)&&((!(a4==1)&&((a22==1)&&(a18==1)))&&(a3==4)))))&&(a12==11)))&&(a5==1)))&&!(a27==1))&&!(a15==1))){ + a6 = 1; + a0 = 1; + a27 = 1; + a4 = 1; + a18 = 0; + a15 = 1; + a3 = 6; + a12 = 8; + a22 = 1; + return 21; + } else if(((!(a5==1)&&(!(a4==1)&&((a22==1)&&((((a3==7)&&(((a20==1)&&((((a18==1)||!(a18==1))&&(input==6))&&(a0==1)))&&!(a15==1)))&&!(a6==1))&&(a27==1)))))&&(a12==10))){ + a12 = 8; + a18 = 1; + a6 = 1; + a5 = 1; + a15 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((a3==6)&&(!(a27==1)&&((a5==1)&&(!(a6==1)&&((a20==1)&&(((((a12==10)&&((input==1)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a0==1))&&!(a15==1))&&!(a4==1)))))))){ + a27 = 1; + a4 = 1; + a18 = 1; + a0 = 0; + a22 = 1; + a5 = 0; + a3 = 7; + return -1; + } else if(((((a20==1)&&(((((((((input==3)&&((a18==1)||!(a18==1)))&&!(a0==1))&&!(a22==1))&&(a3==6))&&(a15==1))&&!(a5==1))&&(a12==11))&&!(a27==1)))&&!(a6==1))&&!(a4==1))){ + a0 = 1; + a18 = 1; + a12 = 8; + a27 = 1; + a6 = 1; + a5 = 1; + return 21; + } else if((((a20==1)&&((a5==1)&&(!(a15==1)&&((!(a0==1)&&((a22==1)&&(!(a27==1)&&(!(a4==1)&&((((a18==1)||!(a18==1))&&(input==2))&&(a6==1))))))&&(a12==10)))))&&(a3==4))){ + if((a6==1)){ + a18 = 0; + a27 = 1; + a22 = 0; + a4 = 1; + a15 = 1; + a12 = 8; + a0 = 1; + a3 = 8; + }else{ + a0 = 1; + a3 = 6; + a6 = 0; + a27 = 1; + a18 = 1; + } + return -1; + } else if((((a0==1)&&((!(a4==1)&&(!(a15==1)&&(((a5==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4))))&&(input==6)))&&(a20==1))))&&(a12==11)))&&(a27==1))){ + a6 = 0; + a15 = 1; + a27 = 0; + a22 = 1; + a3 = 4; + a18 = 0; + return 21; + } else if(((((a20==1)&&((((((a5==1)&&((a6==1)&&((input==6)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))))&&!(a27==1))&&(a0==1))&&!(a15==1))&&(a12==8)))&&(a3==7))&&(a4==1))){ + a22 = 1; + a3 = 4; + a18 = 1; + a27 = 1; + a15 = 1; + return -1; + } else if(((a12==9)&&((!(a6==1)&&(!(a18==1)&&((((((!(a27==1)&&((input==6)&&(a0==1)))&&(a5==1))&&(a4==1))&&(a3==6))&&!(a22==1))&&(a20==1))))&&!(a15==1)))){ + if((a27==1)){ + a27 = 1; + a15 = 1; + a12 = 8; + a3 = 5; + a0 = 0; + }else{ + a27 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a12 = 11; + } + return 21; + } else if((((!(a4==1)&&((a12==9)&&((!(a6==1)&&(((a3==8)&&((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==1))&&(a20==1)))&&!(a15==1)))&&(a5==1))))&&(a0==1))&&!(a27==1))){ + if((a6==1)){ + a22 = 1; + a4 = 1; + a5 = 0; + a18 = 1; + a15 = 1; + a3 = 7; + a27 = 1; + a0 = 0; + }else{ + a18 = 0; + a27 = 1; + a22 = 1; + a15 = 1; + a12 = 11; + a3 = 7; + } + return 24; + } else if(((a6==1)&&(!(a5==1)&&((!(a0==1)&&(((a22==1)&&((a12==10)&&(((((input==1)&&(a4==1))&&(a3==8))&&!(a15==1))&&!(a27==1))))&&(a20==1)))&&!(a18==1))))){ + a15 = 1; + a5 = 1; + a27 = 1; + a0 = 1; + a4 = 0; + a12 = 8; + return -1; + } else if((((a20==1)&&(((((!(a5==1)&&(!(a4==1)&&(((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1))))||((!(a18==1)&&(a22==1))&&(a3==7)))&&(input==1))))&&!(a27==1))&&!(a0==1))&&(a15==1))&&!(a6==1)))&&(a12==9))){ + a22 = 1; + a0 = 1; + a3 = 4; + a27 = 1; + a5 = 1; + a18 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if((!(a4==1)&&(((((a15==1)&&((((!(a5==1)&&(!(a0==1)&&((input==1)&&((a18==1)||!(a18==1)))))&&(a12==11))&&!(a22==1))&&(a20==1)))&&(a27==1))&&(a3==5))&&(a6==1)))){ + a5 = 1; + a6 = 0; + a15 = 0; + a18 = 1; + a22 = 1; + a12 = 12; + a0 = 1; + return 26; + } else if(((a3==7)&&(!(a6==1)&&(((a18==1)&&(((a15==1)&&(!(a4==1)&&((a0==1)&&(!(a27==1)&&(((a12==12)&&(input==4))&&(a20==1))))))&&(a22==1)))&&!(a5==1))))){ + a27 = 1; + a3 = 5; + a5 = 1; + a22 = 0; + a12 = 8; + return 24; + } else if((((!(a27==1)&&((a20==1)&&((a6==1)&&(((((a3==7)&&((input==2)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a12==9))&&!(a5==1))&&!(a4==1)))))&&(a0==1))&&(a15==1))){ + a22 = 0; + a15 = 0; + a5 = 1; + a18 = 0; + a3 = 8; + a12 = 10; + a6 = 0; + return 26; + } else if(((((((a3==7)&&((a27==1)&&((((a5==1)&&((input==2)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))&&!(a6==1))&&(a12==12))))&&(a20==1))&&(a15==1))&&(a0==1))&&!(a4==1))){ + if((a5==1)){ + a3 = 4; + a15 = 0; + a5 = 0; + a22 = 1; + a12 = 10; + a4 = 1; + a18 = 1; + a0 = 0; + }else{ + a18 = 0; + a12 = 10; + a3 = 8; + a22 = 0; + a15 = 0; + } + return -1; + } else if(((((((((a0==1)&&((!(a27==1)&&(((input==1)&&(a6==1))&&(a20==1)))&&(a5==1)))&&(a3==7))&&(a4==1))&&!(a18==1))&&(a12==9))&&!(a22==1))&&(a15==1))){ + a18 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + a27 = 1; + return -1; + } else if((((((a12==11)&&((a15==1)&&((a4==1)&&(((a0==1)&&((input==6)&&((((a18==1)&&(a22==1))&&(a3==6))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1)))))))&&(a27==1)))))&&(a20==1))&&(a5==1))&&!(a6==1))){ + if((a0==1)){ + a3 = 6; + a0 = 0; + a4 = 0; + a18 = 0; + a5 = 0; + a12 = 9; + a22 = 0; + }else{ + a15 = 0; + a4 = 0; + a22 = 0; + a12 = 10; + a5 = 0; + a18 = 1; + a3 = 4; + } + return 21; + } else if((!(a22==1)&&((a12==10)&&((a0==1)&&((a20==1)&&(!(a15==1)&&((((((a27==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&!(a6==1))&&(a5==1))&&(a4==1))&&(a3==7)))))))){ + a3 = 8; + a6 = 1; + a27 = 0; + a18 = 1; + a12 = 9; + a4 = 0; + a5 = 0; + return 26; + } else if((!(a22==1)&&(((a4==1)&&((a0==1)&&(!(a27==1)&&((a6==1)&&((((a20==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a3==5)))&&(a5==1))&&(a12==9))))))&&!(a15==1)))){ + a4 = 0; + a22 = 1; + a27 = 1; + a12 = 12; + a15 = 1; + a18 = 0; + a6 = 0; + return 24; + } else if(((a0==1)&&((a22==1)&&((((a15==1)&&((((a18==1)&&((((input==5)&&(a3==6))&&(a5==1))&&(a6==1)))&&(a4==1))&&(a12==9)))&&!(a27==1))&&(a20==1))))){ + a4 = 0; + a12 = 8; + a6 = 0; + a3 = 7; + a5 = 0; + a15 = 0; + return 26; + } else if((!(a22==1)&&(!(a5==1)&&((a20==1)&&(!(a18==1)&&((a27==1)&&((((!(a15==1)&&((a12==11)&&((input==2)&&!(a6==1))))&&!(a4==1))&&(a0==1))&&(a3==8)))))))){ + a6 = 1; + a15 = 1; + a22 = 1; + return 26; + } else if(((a6==1)&&((a20==1)&&((a0==1)&&((a4==1)&&(((((((input==5)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&(a12==10))&&(a5==1))&&!(a27==1))&&(a15==1))&&(a3==8))))))){ + a18 = 1; + a22 = 0; + a15 = 0; + a6 = 0; + a27 = 1; + return 21; + } else if((((a5==1)&&(!(a27==1)&&((a4==1)&&(((((((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&!(a0==1))&&!(a6==1))&&(a20==1))&&(a3==5))&&(a15==1)))))&&(a12==8))){ + a3 = 8; + a0 = 1; + a22 = 0; + a27 = 1; + a18 = 1; + return -1; + } else if(((a12==10)&&((a0==1)&&(((a20==1)&&((a5==1)&&(!(a27==1)&&(((input==1)&&(((((a22==1)&&!(a18==1))&&(a3==4))&&!(a6==1))||((((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1)))))&&(a15==1)))))&&(a4==1))))){ + if((a0==1)){ + a15 = 0; + a6 = 1; + a22 = 1; + a5 = 0; + a18 = 1; + a12 = 12; + a3 = 4; + a4 = 0; + }else{ + a3 = 4; + a18 = 0; + a27 = 1; + a22 = 0; + a6 = 1; + a12 = 11; + } + return 26; + } else if((((((a27==1)&&(!(a15==1)&&((a3==6)&&(!(a18==1)&&((!(a22==1)&&((a4==1)&&((a0==1)&&(input==2))))&&(a12==10))))))&&!(a6==1))&&(a20==1))&&(a5==1))){ + a4 = 0; + a6 = 1; + a12 = 9; + a27 = 0; + a5 = 0; + a22 = 1; + return 21; + } else if(((a3==4)&&((!(a4==1)&&((a20==1)&&((((!(a15==1)&&((a27==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==6))))&&(a12==8))&&(a5==1))&&(a0==1))))&&!(a6==1)))){ + if((a3==4)){ + a6 = 1; + a3 = 5; + a12 = 12; + a22 = 0; + a18 = 0; + a4 = 1; + a0 = 0; + }else{ + a6 = 1; + a3 = 7; + a12 = 9; + a22 = 1; + a18 = 1; + } + return 21; + } else if((!(a6==1)&&((!(a5==1)&&(((a20==1)&&(!(a0==1)&&((a4==1)&&((((a27==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&!(a15==1))&&(a3==5)))))&&(a12==12)))&&(a22==1)))){ + if((a12==10)){ + a5 = 1; + a18 = 0; + a15 = 1; + a12 = 8; + a0 = 1; + }else{ + a12 = 8; + a3 = 6; + a0 = 1; + a5 = 1; + a18 = 0; + a15 = 1; + } + return 26; + } else if(((a22==1)&&((((!(a4==1)&&(!(a27==1)&&(!(a15==1)&&(!(a6==1)&&((((input==5)&&((a18==1)||!(a18==1)))&&(a3==7))&&(a20==1))))))&&(a12==9))&&!(a0==1))&&!(a5==1)))){ + a5 = 1; + a0 = 1; + a3 = 6; + a18 = 0; + a4 = 1; + a15 = 1; + a22 = 0; + a12 = 8; + a27 = 1; + return 21; + } else if(((a4==1)&&(((!(a5==1)&&((((((((a3==7)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6))))&&(input==6))&&!(a0==1))&&(a15==1))&&(a12==11))&&(a6==1)))&&(a20==1))&&(a27==1)))){ + if((a3==6)){ + a15 = 0; + a22 = 1; + a3 = 7; + a18 = 0; + }else{ + a12 = 12; + a15 = 0; + a18 = 0; + a22 = 1; + a5 = 1; + a3 = 4; + } + return 24; + } else if(((((a3==6)&&(!(a0==1)&&(!(a4==1)&&((a20==1)&&((((((input==3)&&((a18==1)||!(a18==1)))&&!(a27==1))&&!(a6==1))&&!(a5==1))&&(a22==1))))))&&(a12==8))&&!(a15==1))){ + if((a20==1)){ + a5 = 1; + a15 = 1; + a0 = 1; + a18 = 1; + a6 = 1; + a3 = 7; + a27 = 1; + }else{ + a27 = 1; + a0 = 1; + a22 = 0; + a18 = 0; + a4 = 1; + a3 = 4; + } + return 21; + } else if((!(a15==1)&&(((a0==1)&&((a4==1)&&((a3==5)&&(((a12==12)&&(!(a5==1)&&((a27==1)&&((a20==1)&&(((a18==1)||!(a18==1))&&(input==5))))))&&(a22==1)))))&&!(a6==1)))){ + a18 = 1; + a22 = 0; + a0 = 0; + a4 = 0; + a12 = 8; + return 21; + } else if(((((a0==1)&&(((a3==7)&&((a4==1)&&(((a27==1)&&(((input==2)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a5==1)))&&!(a15==1))))&&(a20==1)))&&(a6==1))&&(a12==11))){ + a27 = 0; + a18 = 0; + a22 = 1; + a3 = 5; + a15 = 1; + return 21; + } else if(((a22==1)&&(((a0==1)&&(!(a15==1)&&((a3==6)&&((a20==1)&&((((!(a4==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a6==1))&&(a27==1))&&!(a5==1))))))&&(a12==9)))){ + a18 = 0; + a22 = 0; + a15 = 1; + a12 = 11; + a4 = 1; + return 21; + } else if((((a4==1)&&(((((!(a18==1)&&(!(a0==1)&&(((a27==1)&&((input==6)&&(a15==1)))&&(a12==12))))&&(a5==1))&&(a3==7))&&(a20==1))&&!(a6==1)))&&(a22==1))){ + a22 = 0; + a15 = 0; + a0 = 1; + a12 = 10; + a6 = 1; + return 26; + } else if((((a5==1)&&((a20==1)&&((!(a6==1)&&((!(a4==1)&&(((a3==4)&&((a27==1)&&((input==2)&&((a18==1)||!(a18==1)))))&&(a0==1)))&&(a15==1)))&&(a12==12))))&&(a22==1))){ + a18 = 1; + a6 = 1; + a12 = 10; + a3 = 7; + a22 = 0; + a5 = 0; + return -1; + } else if(((a5==1)&&((a27==1)&&((a12==8)&&((((a20==1)&&(((a15==1)&&(((((a22==1)&&!(a18==1))&&(a3==5))||(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1)))))&&(input==1)))&&!(a4==1)))&&!(a0==1))&&(a6==1)))))){ + a3 = 4; + a4 = 1; + a22 = 1; + a18 = 1; + a0 = 1; + return -1; + } else if(((a6==1)&&(((a27==1)&&(((!(a22==1)&&((((((input==5)&&!(a0==1))&&!(a15==1))&&(a20==1))&&(a12==9))&&(a3==8)))&&(a4==1))&&!(a18==1)))&&(a5==1)))){ + a3 = 6; + a5 = 0; + a6 = 0; + a22 = 1; + a18 = 1; + a12 = 10; + return 21; + } else if((!(a27==1)&&((a18==1)&&(!(a6==1)&&((a5==1)&&((a20==1)&&((a15==1)&&(((a0==1)&&((a4==1)&&((a3==4)&&((a12==11)&&(input==6)))))&&!(a22==1))))))))){ + a3 = 5; + a18 = 0; + a4 = 0; + a27 = 1; + a6 = 1; + a5 = 0; + return 24; + } else if((((a20==1)&&(!(a5==1)&&((a12==9)&&(!(a0==1)&&((a6==1)&&((a27==1)&&((a4==1)&&((input==1)&&(((!(a18==1)&&(a22==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1)))))))))))))&&!(a15==1))){ + a5 = 1; + a22 = 0; + a18 = 0; + a3 = 4; + a4 = 0; + a0 = 1; + return 26; + } else if((((a4==1)&&(((a15==1)&&((a3==4)&&((!(a5==1)&&((a27==1)&&((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==4))&&(a6==1))))&&(a12==9))))&&(a20==1)))&&(a0==1))){ + a12 = 11; + a22 = 0; + a18 = 1; + a6 = 0; + a15 = 0; + a3 = 6; + return 21; + } else if((((a12==12)&&((!(a6==1)&&((((((((a0==1)&&(input==5))&&!(a27==1))&&(a5==1))&&(a20==1))&&(a18==1))&&(a3==5))&&(a15==1)))&&!(a4==1)))&&!(a22==1))){ + a6 = 1; + a27 = 1; + a12 = 8; + a22 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if((((((a4==1)&&((!(a15==1)&&((!(a6==1)&&(!(a0==1)&&((((a18==1)||!(a18==1))&&(input==5))&&!(a27==1))))&&(a20==1)))&&(a12==8)))&&(a3==6))&&(a5==1))&&!(a22==1))){ + a15 = 1; + a6 = 1; + a4 = 0; + a0 = 1; + a22 = 1; + a27 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((((!(a4==1)&&((((!(a5==1)&&((a0==1)&&(((a12==9)&&(input==1))&&(a20==1))))&&(a15==1))&&(a6==1))&&(a3==6)))&&!(a27==1))&&(a18==1))&&(a22==1))){ + a18 = 0; + a3 = 5; + a4 = 1; + a12 = 8; + a15 = 0; + a27 = 1; + a0 = 0; + return 26; + } else if((!(a27==1)&&((!(a4==1)&&(!(a6==1)&&((a12==9)&&((((a20==1)&&(((input==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&!(a15==1)))&&(a0==1))&&(a3==6)))))&&!(a5==1)))){ + a22 = 1; + a12 = 8; + a18 = 1; + a15 = 1; + a5 = 1; + a3 = 4; + a6 = 1; + a4 = 1; + a27 = 1; + return -1; + } else if((((a12==10)&&((a15==1)&&(!(a22==1)&&(((!(a18==1)&&((!(a5==1)&&(((input==4)&&(a3==8))&&!(a6==1)))&&(a20==1)))&&!(a27==1))&&(a0==1)))))&&!(a4==1))){ + a3 = 4; + a22 = 1; + a27 = 1; + a6 = 1; + a5 = 1; + return 26; + } else if((!(a5==1)&&((a6==1)&&((!(a4==1)&&(!(a27==1)&&((a15==1)&&(((a12==9)&&(((((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==7)))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==1)))&&!(a0==1)))))&&(a20==1))))){ + if((a12==8)){ + a3 = 5; + a27 = 1; + a5 = 1; + a4 = 1; + a22 = 0; + a12 = 11; + a15 = 0; + a18 = 0; + }else{ + a22 = 1; + a6 = 0; + a12 = 11; + a4 = 1; + a18 = 0; + a3 = 8; + } + return 26; + } else if(((((a27==1)&&(((a5==1)&&(!(a0==1)&&((a12==8)&&(((!(a6==1)&&((a3==4)&&((a22==1)&&!(a18==1))))||(((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1))))&&(input==4)))))&&(a15==1)))&&(a20==1))&&!(a4==1))){ + a3 = 5; + a4 = 1; + a6 = 1; + a0 = 1; + a12 = 10; + a18 = 1; + a22 = 0; + return 26; + } else if(((a4==1)&&(((((a0==1)&&(!(a6==1)&&((((((((a18==1)&&!(a22==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==5))&&!(a15==1))&&(a20==1))))&&(a5==1))&&!(a27==1))&&(a12==10)))){ + a15 = 1; + a18 = 1; + a12 = 8; + a6 = 1; + a3 = 4; + a22 = 1; + a27 = 1; + return -1; + } else if(((a5==1)&&((a12==11)&&(!(a6==1)&&(!(a0==1)&&(((a15==1)&&((a4==1)&&(((input==6)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1)))))&&(a20==1))))&&(a27==1))))))){ + a18 = 1; + a22 = 1; + a0 = 1; + a3 = 7; + a4 = 0; + return 24; + } else if((!(a15==1)&&((a4==1)&&(!(a5==1)&&((((a12==11)&&(((input==3)&&((!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1))))||(((a6==1)&&((a3==8)&&((a18==1)&&!(a22==1))))||((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8))))))&&(a0==1)))&&(a20==1))&&(a27==1)))))){ + a18 = 1; + a22 = 0; + a5 = 1; + a6 = 1; + a3 = 7; + return 26; + } else if(((a4==1)&&(!(a6==1)&&((!(a27==1)&&(((a12==10)&&(((a15==1)&&((a3==7)&&((input==3)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))&&(a20==1)))&&!(a5==1)))&&(a0==1))))){ + if((a3==5)){ + a4 = 0; + a22 = 1; + a0 = 0; + a15 = 0; + a18 = 0; + a3 = 8; + a27 = 1; + }else{ + a4 = 0; + a3 = 5; + a22 = 0; + a18 = 0; + a5 = 1; + a6 = 1; + a15 = 0; + } + return 21; + } else if((((((a20==1)&&((!(a5==1)&&((a4==1)&&(!(a0==1)&&((input==6)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7)))))))&&(a12==8)))&&!(a6==1))&&(a27==1))&&!(a15==1))){ + a22 = 1; + a15 = 1; + a27 = 0; + a0 = 1; + a18 = 1; + a4 = 0; + a12 = 9; + a3 = 4; + return -1; + } else if((((a5==1)&&((a20==1)&&((a0==1)&&(((a27==1)&&((a6==1)&&((a4==1)&&((a12==10)&&((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))))&&(a15==1)))))&&(a3==4))){ + a18 = 0; + a5 = 0; + a4 = 0; + a6 = 0; + a0 = 0; + a22 = 1; + return -1; + } else if((!(a0==1)&&(((!(a18==1)&&((a12==8)&&(((!(a27==1)&&(!(a15==1)&&((!(a22==1)&&(input==5))&&(a3==5))))&&(a20==1))&&!(a6==1))))&&!(a4==1))&&!(a5==1)))){ + a0 = 1; + a27 = 1; + a5 = 1; + a18 = 1; + a15 = 1; + a6 = 1; + return -1; + } else if((!(a0==1)&&(!(a27==1)&&(((a12==10)&&(!(a15==1)&&(!(a5==1)&&((a20==1)&&(((!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4)))||((((a3==8)&&(!(a22==1)&&(a18==1)))&&(a6==1))||(((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))))&&(input==1))))))&&(a4==1))))){ + if((a3==7)){ + a22 = 0; + a12 = 11; + a27 = 1; + a15 = 1; + a4 = 0; + a6 = 0; + a5 = 1; + a3 = 6; + a0 = 1; + a18 = 0; + }else{ + a27 = 1; + a15 = 1; + a18 = 1; + a6 = 1; + a12 = 9; + a3 = 6; + a22 = 1; + } + return -1; + } else if((!(a0==1)&&((a12==9)&&(!(a15==1)&&((!(a27==1)&&(!(a4==1)&&((((a6==1)&&((input==1)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a20==1))&&(a5==1))))&&(a3==5)))))){ + if((a5==1)){ + a15 = 1; + a0 = 1; + a3 = 8; + a27 = 1; + a4 = 1; + a12 = 8; + a22 = 1; + a18 = 1; + }else{ + a0 = 1; + a27 = 1; + a22 = 0; + a18 = 0; + a12 = 8; + a15 = 1; + a3 = 6; + } + return 24; + } else if(((a4==1)&&((a0==1)&&(((!(a27==1)&&((a6==1)&&((((a15==1)&&(((a3==6)&&(input==4))&&!(a22==1)))&&(a5==1))&&(a12==11))))&&(a18==1))&&(a20==1))))){ + if((a18==1)){ + a4 = 0; + a5 = 0; + a18 = 0; + a12 = 10; + a6 = 0; + a0 = 0; + a22 = 1; + a27 = 1; + a3 = 8; + }else{ + a12 = 8; + a5 = 0; + a22 = 1; + a4 = 0; + a15 = 0; + a27 = 1; + } + return 21; + } else if((((a3==6)&&((a12==11)&&((a0==1)&&(!(a22==1)&&(((a5==1)&&(!(a4==1)&&((!(a27==1)&&((input==2)&&(a18==1)))&&(a15==1))))&&(a6==1))))))&&(a20==1))){ + a4 = 1; + a15 = 0; + a12 = 10; + a22 = 1; + a5 = 0; + a18 = 0; + return 21; + } else if(((a0==1)&&((a22==1)&&((((((!(a4==1)&&(!(a6==1)&&((a15==1)&&((input==6)&&((a18==1)||!(a18==1))))))&&(a27==1))&&(a20==1))&&(a5==1))&&(a3==7))&&(a12==11))))){ + a18 = 0; + a22 = 0; + a4 = 1; + a3 = 4; + a12 = 10; + return -1; + } else if((((a3==8)&&((((((a22==1)&&(!(a18==1)&&(((a5==1)&&((a0==1)&&(input==3)))&&!(a15==1))))&&!(a27==1))&&(a20==1))&&!(a6==1))&&!(a4==1)))&&(a12==10))){ + a4 = 1; + a15 = 1; + a12 = 9; + a18 = 1; + a6 = 1; + a22 = 0; + return -1; + } else if(((a6==1)&&(((((a0==1)&&(((((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a3==7))&&(a5==1))&&!(a15==1))&&!(a4==1)))&&(a27==1))&&(a20==1))&&(a12==12)))){ + if((a4==1)){ + a22 = 0; + a4 = 1; + a0 = 0; + a12 = 11; + a15 = 1; + a18 = 1; + a5 = 0; + a3 = 8; + }else{ + a0 = 0; + a3 = 6; + a18 = 1; + a12 = 10; + a22 = 0; + } + return -1; + } else if(((a20==1)&&(((a3==8)&&(!(a0==1)&&((a12==8)&&(((((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==1))&&!(a15==1))&&(a27==1))&&(a6==1))&&!(a4==1)))))&&(a5==1)))){ + if((a0==1)){ + a12 = 11; + a22 = 1; + a18 = 1; + }else{ + a22 = 1; + a12 = 10; + a15 = 1; + a0 = 1; + a27 = 0; + a3 = 7; + a18 = 1; + } + return 21; + } else if((!(a4==1)&&((a0==1)&&((a20==1)&&(((a27==1)&&((a15==1)&&((a3==8)&&((((((a18==1)||!(a18==1))&&(input==4))&&(a12==9))&&!(a5==1))&&!(a22==1)))))&&(a6==1)))))){ + a12 = 8; + a3 = 4; + a18 = 1; + a4 = 1; + a22 = 1; + a5 = 1; + return -1; + } else if(((a20==1)&&(((a5==1)&&(!(a4==1)&&((a0==1)&&((a27==1)&&(!(a15==1)&&(((((a3==7)&&(!(a18==1)&&(a22==1)))||(((!(a18==1)&&!(a22==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7))))&&(input==6))&&(a12==9)))))))&&!(a6==1)))){ + a12 = 12; + a4 = 1; + a22 = 0; + a3 = 7; + a15 = 1; + a5 = 0; + a18 = 0; + return 26; + } else if(((((a3==6)&&((((a4==1)&&((((a6==1)&&((!(a27==1)&&(input==3))&&(a20==1)))&&(a0==1))&&(a22==1)))&&(a12==11))&&(a15==1)))&&(a5==1))&&!(a18==1))){ + a12 = 8; + a18 = 1; + a27 = 1; + a3 = 4; + return -1; + } else if((((((a27==1)&&((a12==9)&&((a3==5)&&((((a20==1)&&((input==1)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))&&!(a5==1))&&(a6==1)))))&&!(a4==1))&&!(a0==1))&&!(a15==1))){ + a3 = 6; + a15 = 1; + a0 = 1; + a12 = 12; + a4 = 1; + a27 = 0; + a22 = 0; + a18 = 0; + a5 = 1; + return 26; + } else if((((a3==6)&&(!(a0==1)&&((a12==8)&&((a20==1)&&((a22==1)&&((a15==1)&&((!(a6==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a4==1)))&&!(a27==1))))))))&&!(a5==1))){ + a27 = 1; + a22 = 0; + a18 = 1; + a3 = 4; + a0 = 1; + a15 = 0; + return -1; + } else if(((((a6==1)&&((a5==1)&&((a12==8)&&((a27==1)&&(!(a4==1)&&(((input==3)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8))))&&(a15==1)))))))&&!(a0==1))&&(a20==1))){ + a15 = 0; + a0 = 1; + a4 = 1; + a6 = 0; + a3 = 7; + a12 = 10; + a18 = 1; + a22 = 1; + return -1; + } else if(((a15==1)&&((a20==1)&&(!(a4==1)&&(!(a5==1)&&(((a0==1)&&(((a12==12)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==2))&&(a27==1)))&&!(a6==1)))&&(a3==7))))))){ + a3 = 5; + a6 = 1; + a4 = 1; + a22 = 0; + a18 = 0; + return 21; + } else if(((a3==8)&&(!(a27==1)&&((a20==1)&&(((!(a18==1)&&((a22==1)&&(!(a15==1)&&((a0==1)&&((a6==1)&&(!(a5==1)&&(input==4)))))))&&!(a4==1))&&(a12==12)))))){ + a22 = 0; + a12 = 9; + a4 = 1; + a18 = 1; + a3 = 5; + return 21; + } else if((((((a6==1)&&(!(a15==1)&&(!(a0==1)&&((a3==8)&&((((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==4))&&(a12==11))&&(a20==1))))))&&(a5==1))&&!(a4==1))&&(a27==1))){ + a12 = 10; + a6 = 0; + a3 = 4; + a0 = 1; + a18 = 0; + a22 = 1; + a5 = 0; + return -1; + } else if(((a3==8)&&(!(a4==1)&&((((a12==12)&&(!(a18==1)&&(!(a22==1)&&((a20==1)&&((((input==1)&&(a6==1))&&!(a15==1))&&!(a5==1))))))&&!(a0==1))&&(a27==1))))){ + if((a15==1)){ + a0 = 1; + a6 = 0; + a12 = 9; + a18 = 1; + a3 = 7; + }else{ + a12 = 9; + a3 = 4; + a6 = 0; + } + return -1; + } else if((!(a4==1)&&(!(a15==1)&&(!(a27==1)&&((a12==11)&&((((a3==7)&&(((a20==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==1)))&&!(a6==1)))&&!(a5==1))&&(a0==1))))))){ + a27 = 1; + a15 = 1; + a22 = 1; + a6 = 1; + a5 = 1; + a4 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + return -1; + } else if((!(a6==1)&&((a22==1)&&(((a15==1)&&(!(a5==1)&&(((!(a4==1)&&(((a3==4)&&((input==1)&&((a18==1)||!(a18==1))))&&(a12==10)))&&!(a27==1))&&!(a0==1))))&&(a20==1))))){ + if((a20==1)){ + a5 = 1; + a3 = 8; + a0 = 1; + a12 = 8; + a18 = 0; + a27 = 1; + a6 = 1; + }else{ + a4 = 1; + a3 = 8; + a5 = 1; + a6 = 1; + a12 = 9; + a18 = 1; + a15 = 0; + a27 = 1; + } + return 26; + } else if(((((a15==1)&&(((a4==1)&&(((a20==1)&&((((input==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a6==1))&&(a12==10)))&&(a5==1)))&&!(a0==1)))&&(a27==1))&&(a3==7))){ + a3 = 6; + a0 = 1; + a12 = 12; + a18 = 0; + a15 = 0; + a4 = 0; + a22 = 0; + return 21; + } else if((((a6==1)&&(((!(a27==1)&&(((((input==6)&&((((a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==5)))))&&(a0==1))&&(a20==1))&&(a4==1)))&&(a5==1))&&(a15==1)))&&(a12==11))){ + if((a12==9)){ + a6 = 0; + a27 = 1; + a22 = 0; + a3 = 6; + a5 = 0; + a18 = 0; + a0 = 0; + a12 = 9; + }else{ + a3 = 7; + a27 = 1; + a22 = 1; + a6 = 0; + a18 = 0; + a4 = 0; + } + return 24; + } else if(((a15==1)&&(((!(a5==1)&&(((((input==6)&&(((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1))))))&&(a12==8))&&!(a4==1))&&(a27==1)))&&(a20==1))&&!(a0==1)))){ + a6 = 0; + a18 = 1; + a22 = 1; + a0 = 1; + a12 = 12; + a27 = 0; + a3 = 5; + a4 = 1; + return 26; + } else if((((a4==1)&&(((a5==1)&&(((a27==1)&&(((!(a6==1)&&((input==3)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))&&(a20==1))&&(a0==1)))&&(a3==4)))&&(a12==10)))&&!(a15==1))){ + a6 = 1; + a22 = 1; + a15 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if((((a5==1)&&((((((((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==5))&&!(a15==1))&&(a6==1))&&(a20==1))&&!(a27==1))&&(a12==9))&&!(a0==1)))&&(a4==1))){ + a6 = 0; + a5 = 0; + a18 = 1; + a4 = 0; + a12 = 8; + a3 = 7; + a27 = 1; + a0 = 1; + a22 = 0; + a15 = 1; + return 26; + } else if(((a6==1)&&((a3==8)&&((((((a0==1)&&((a20==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==5))&&!(a15==1))))&&!(a27==1))&&(a4==1))&&(a12==11))&&!(a5==1))))){ + a27 = 1; + a18 = 1; + a4 = 0; + a22 = 1; + a3 = 5; + a5 = 1; + a15 = 1; + return 21; + } else if(((!(a5==1)&&((a3==7)&&((a6==1)&&((((((a15==1)&&((a20==1)&&((input==1)&&((a18==1)||!(a18==1)))))&&(a12==8))&&!(a27==1))&&(a22==1))&&(a4==1)))))&&(a0==1))){ + a27 = 1; + a3 = 5; + a18 = 1; + a5 = 1; + a15 = 0; + a12 = 12; + a6 = 0; + a22 = 0; + return 24; + } else if(((a3==6)&&((a22==1)&&(((!(a15==1)&&((!(a4==1)&&((a6==1)&&(!(a27==1)&&((a20==1)&&((input==6)&&((a18==1)||!(a18==1)))))))&&(a0==1)))&&(a5==1))&&(a12==11))))){ + a12 = 12; + a3 = 4; + a18 = 1; + a6 = 0; + a5 = 0; + a4 = 1; + a27 = 1; + return -1; + } else if((((a6==1)&&((a0==1)&&((((a27==1)&&((!(a15==1)&&(((((a18==1)||!(a18==1))&&(input==6))&&(a20==1))&&(a3==5)))&&(a5==1)))&&(a22==1))&&(a12==12))))&&!(a4==1))){ + a3 = 8; + a4 = 1; + a18 = 0; + a27 = 0; + return 26; + } else if((((((a12==10)&&((((((!(a22==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a6==1))&&(a4==1))&&(a5==1))&&!(a15==1))&&!(a27==1)))&&(a3==5))&&!(a0==1))&&(a20==1))){ + a3 = 8; + a27 = 1; + a6 = 0; + a18 = 0; + return -1; + } else if(((((((!(a27==1)&&(((a0==1)&&(!(a6==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==6))))&&(a15==1)))&&!(a5==1))&&(a3==5))&&(a12==9))&&(a4==1))&&(a20==1))){ + a5 = 1; + a22 = 0; + a6 = 1; + a18 = 0; + a15 = 0; + a27 = 1; + a12 = 11; + return 26; + } else if(((((a12==12)&&(!(a27==1)&&((a15==1)&&((((((!(a4==1)&&(input==1))&&!(a18==1))&&(a20==1))&&(a22==1))&&!(a5==1))&&(a0==1)))))&&(a3==5))&&(a6==1))){ + if((a3==8)){ + a4 = 1; + a22 = 0; + a12 = 10; + a27 = 1; + a6 = 0; + a3 = 4; + a18 = 1; + a0 = 0; + }else{ + a12 = 8; + a18 = 1; + a3 = 7; + } + return -1; + } else if(((a3==4)&&((((((((((input==1)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a4==1))&&(a12==11))&&!(a6==1))&&!(a27==1))&&(a20==1))&&!(a15==1))&&!(a0==1))&&(a5==1)))){ + a0 = 1; + a18 = 0; + a22 = 0; + a27 = 1; + a3 = 7; + a15 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if(((!(a15==1)&&((a4==1)&&(((a5==1)&&(((((input==1)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7))))&&!(a27==1))&&!(a0==1))&&!(a6==1)))&&(a20==1))))&&(a12==10))){ + if((a12==12)){ + a18 = 1; + a15 = 1; + a0 = 1; + a6 = 1; + a3 = 8; + a4 = 0; + a22 = 1; + a12 = 9; + }else{ + a12 = 11; + a22 = 1; + a6 = 1; + a27 = 1; + a15 = 1; + a18 = 0; + a3 = 5; + a5 = 0; + a4 = 0; + } + return 21; + } else if(((!(a5==1)&&((a6==1)&&(!(a4==1)&&(((a12==10)&&((((input==5)&&((((a22==1)&&(a18==1))&&(a3==7))||(((!(a22==1)&&(a18==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))))&&(a20==1))&&!(a27==1)))&&!(a15==1)))))&&!(a0==1))){ + a12 = 8; + a0 = 1; + a22 = 0; + a3 = 6; + a4 = 1; + a18 = 0; + a15 = 1; + a5 = 1; + a27 = 1; + return 26; + } else if((!(a15==1)&&((((a4==1)&&((((!(a5==1)&&(((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a27==1)))&&(a0==1))&&(a6==1))&&(a3==8)))&&(a20==1))&&(a12==12)))){ + a3 = 4; + a22 = 1; + a15 = 1; + a5 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((a20==1)&&((((((a15==1)&&((a3==5)&&(((((input==6)&&(a0==1))&&(a5==1))&&(a4==1))&&(a18==1))))&&!(a27==1))&&!(a22==1))&&(a12==8))&&(a6==1)))){ + a15 = 0; + a27 = 1; + a12 = 12; + a6 = 0; + a18 = 0; + return 21; + } else if(((((!(a0==1)&&(((a20==1)&&((!(a5==1)&&(((a12==8)&&((a6==1)&&(input==3)))&&!(a4==1)))&&!(a18==1)))&&(a22==1)))&&!(a15==1))&&(a27==1))&&(a3==4))){ + a18 = 1; + a15 = 1; + a4 = 1; + a5 = 1; + a0 = 1; + return -1; + } else if(((!(a18==1)&&(((!(a6==1)&&(((a3==6)&&((!(a4==1)&&((a12==12)&&((input==4)&&(a5==1))))&&!(a0==1)))&&(a20==1)))&&(a27==1))&&!(a15==1)))&&(a22==1))){ + if((a22==1)){ + a15 = 1; + a22 = 0; + a0 = 1; + a6 = 1; + a3 = 7; + a4 = 1; + a12 = 8; + }else{ + a3 = 7; + a5 = 0; + } + return -1; + } else if((((a6==1)&&((!(a0==1)&&(((!(a22==1)&&(!(a4==1)&&(((a12==8)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a5==1))))&&(a3==6))&&!(a15==1)))&&(a20==1)))&&!(a27==1))){ + a18 = 1; + a27 = 1; + a0 = 1; + a15 = 1; + return -1; + } else if((((!(a4==1)&&((a6==1)&&((a3==8)&&((a0==1)&&(((!(a27==1)&&((a15==1)&&(!(a5==1)&&(input==6))))&&(a12==12))&&!(a18==1))))))&&!(a22==1))&&(a20==1))){ + a5 = 1; + a6 = 0; + a22 = 1; + a18 = 1; + a3 = 7; + a4 = 1; + return 24; + } else if(((((((a20==1)&&(((a15==1)&&(!(a6==1)&&((a12==11)&&((a0==1)&&((input==3)&&((a18==1)||!(a18==1)))))))&&(a3==4)))&&!(a27==1))&&(a4==1))&&(a5==1))&&(a22==1))){ + a12 = 10; + a4 = 0; + a5 = 0; + a18 = 1; + return -1; + } else if((((a15==1)&&((a4==1)&&(((a22==1)&&(((a3==7)&&(((!(a18==1)&&(!(a27==1)&&(input==2)))&&!(a6==1))&&!(a5==1)))&&(a20==1)))&&!(a0==1))))&&(a12==9))){ + if((a15==1)){ + a27 = 1; + a12 = 8; + a3 = 8; + a22 = 0; + a5 = 1; + a0 = 1; + }else{ + a12 = 12; + a27 = 1; + a0 = 1; + a6 = 1; + a3 = 8; + } + return 24; + } else if(((!(a5==1)&&(((a6==1)&&(((!(a4==1)&&(((a20==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==3)))&&(a12==11)))&&(a15==1))&&!(a0==1)))&&(a3==4)))&&(a27==1))){ + a12 = 12; + a6 = 0; + a4 = 1; + a22 = 1; + a0 = 1; + a3 = 8; + a18 = 1; + return 26; + } else if(((a4==1)&&((((((a3==7)&&(((a0==1)&&(((a12==8)&&(!(a5==1)&&(input==5)))&&!(a6==1)))&&!(a18==1)))&&(a20==1))&&!(a22==1))&&!(a27==1))&&(a15==1)))){ + a18 = 1; + a6 = 1; + a3 = 6; + a27 = 1; + a12 = 12; + a5 = 1; + return 21; + } else if((((((a22==1)&&(((a20==1)&&((((a6==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&!(a27==1)))&&(a12==10))&&!(a4==1)))&&!(a5==1)))&&!(a0==1))&&!(a15==1))&&(a3==6))){ + a5 = 1; + a3 = 8; + a12 = 12; + a18 = 1; + a27 = 1; + a6 = 0; + a15 = 1; + return 26; + } else if((!(a15==1)&&((a3==6)&&(((a27==1)&&((((((a22==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a20==1)))&&(a12==8))&&(a6==1))&&(a0==1))&&(a5==1)))&&(a4==1))))){ + a15 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a3==5)&&(!(a0==1)&&(!(a5==1)&&((a18==1)&&((((a20==1)&&((a6==1)&&((a27==1)&&((a4==1)&&((input==3)&&!(a22==1))))))&&(a15==1))&&(a12==11))))))){ + a5 = 1; + a15 = 0; + a22 = 1; + a3 = 4; + a0 = 1; + a12 = 12; + return -1; + } else if(((((((a3==6)&&(!(a27==1)&&((((a12==9)&&((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a6==1))&&(a5==1))))&&(a0==1))&&(a20==1))&&(a4==1))&&!(a15==1))){ + a12 = 8; + a22 = 0; + a3 = 7; + a18 = 1; + return 21; + } else if(((a4==1)&&(((((((a20==1)&&((((a12==11)&&((input==1)&&((a18==1)||!(a18==1))))&&(a0==1))&&(a15==1)))&&(a22==1))&&!(a6==1))&&!(a5==1))&&(a3==7))&&(a27==1)))){ + a15 = 0; + a5 = 1; + a22 = 0; + a18 = 1; + a4 = 0; + a3 = 4; + return -1; + } else if(((((((a27==1)&&((((a5==1)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==1)))&&!(a0==1))&&(a12==12)))&&(a15==1))&&(a6==1))&&(a20==1))&&(a4==1))){ + a5 = 0; + a12 = 10; + a22 = 1; + a0 = 1; + a18 = 1; + a4 = 0; + a3 = 5; + return 26; + } else if((((a0==1)&&(!(a5==1)&&((((((a15==1)&&((a4==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==5))))&&(a27==1))&&(a3==7))&&!(a6==1))&&(a20==1))))&&(a12==8))){ + a6 = 1; + a18 = 1; + a5 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if((!(a0==1)&&((((a20==1)&&((a12==11)&&(((a6==1)&&((a4==1)&&((((a3==8)&&(input==5))&&(a27==1))&&!(a18==1))))&&!(a22==1))))&&(a5==1))&&!(a15==1)))){ + a15 = 1; + a0 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if((!(a27==1)&&((a3==4)&&((a6==1)&&(((a20==1)&&(((((a18==1)&&((a5==1)&&((input==1)&&!(a4==1))))&&!(a0==1))&&(a12==8))&&(a15==1)))&&(a22==1)))))){ + a27 = 1; + a18 = 0; + a0 = 1; + a3 = 6; + return -1; + } else if((!(a27==1)&&(!(a22==1)&&(((((!(a4==1)&&(((!(a6==1)&&((input==5)&&(a15==1)))&&!(a5==1))&&(a12==12)))&&!(a18==1))&&(a20==1))&&(a0==1))&&(a3==5))))){ + a27 = 1; + a5 = 1; + a18 = 1; + a12 = 10; + a6 = 1; + a3 = 6; + return -1; + } else if(((a0==1)&&((!(a5==1)&&((!(a15==1)&&((a27==1)&&(((a6==1)&&(((a18==1)&&((a20==1)&&(input==1)))&&(a4==1)))&&(a12==8))))&&!(a22==1)))&&(a3==5)))){ + a15 = 1; + a6 = 0; + a12 = 10; + a4 = 0; + return 21; + } else if((!(a4==1)&&(((((!(a5==1)&&((a12==9)&&(!(a27==1)&&((((a3==7)&&((a22==1)&&!(a18==1)))||(((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7))))&&(input==3)))))&&(a20==1))&&(a6==1))&&(a0==1))&&!(a15==1)))){ + a27 = 1; + a5 = 1; + a3 = 4; + a22 = 1; + a15 = 1; + a18 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if(((((a3==6)&&(!(a6==1)&&((((((a5==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==3)))&&(a27==1))&&(a12==8))&&!(a4==1))&&(a20==1))))&&!(a15==1))&&!(a0==1))){ + a22 = 1; + a6 = 1; + a18 = 0; + a3 = 4; + a4 = 1; + a12 = 11; + a15 = 1; + a0 = 1; + return 26; + } else if(((a12==11)&&(!(a6==1)&&(((a20==1)&&((a0==1)&&((((a4==1)&&((((((a18==1)&&!(a22==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5)))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==3)))&&!(a15==1))&&(a27==1))))&&(a5==1))))){ + a15 = 1; + a12 = 8; + a6 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a18==1)&&(((a27==1)&&(((((!(a0==1)&&(((a4==1)&&((a12==11)&&(input==4)))&&(a3==8)))&&(a22==1))&&!(a6==1))&&(a20==1))&&!(a5==1)))&&!(a15==1)))){ + a6 = 1; + a3 = 6; + a15 = 1; + a22 = 0; + a5 = 1; + a0 = 1; + a4 = 0; + a27 = 0; + return 21; + } else if(((!(a15==1)&&((a6==1)&&((!(a4==1)&&((a20==1)&&((a12==10)&&((a3==4)&&(!(a5==1)&&(!(a0==1)&&((input==5)&&((a18==1)||!(a18==1)))))))))&&(a22==1))))&&(a27==1))){ + a22 = 0; + a3 = 5; + a18 = 1; + a4 = 1; + a12 = 11; + a0 = 1; + a27 = 0; + return -1; + } else if((((a12==11)&&(!(a15==1)&&(!(a5==1)&&((((((a3==5)&&(!(a22==1)&&(((a18==1)||!(a18==1))&&(input==3))))&&!(a27==1))&&!(a6==1))&&(a20==1))&&!(a0==1)))))&&!(a4==1))){ + a4 = 1; + a27 = 1; + a3 = 6; + a12 = 8; + a18 = 0; + return 26; + } else if((((a12==10)&&((!(a15==1)&&((a27==1)&&((a20==1)&&((((a4==1)&&((input==3)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&!(a0==1))&&!(a5==1)))))&&(a3==8)))&&(a6==1))){ + a18 = 1; + a12 = 12; + a22 = 0; + a15 = 1; + a27 = 0; + a0 = 1; + return 26; + } else if((!(a6==1)&&(((((a27==1)&&(((a20==1)&&((a5==1)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==6))))&&!(a15==1)))&&(a4==1))&&(a12==9))&&!(a0==1)))){ + a3 = 6; + a6 = 1; + a12 = 11; + a5 = 0; + a0 = 1; + a18 = 0; + a15 = 1; + a22 = 1; + return 21; + } else if(((a27==1)&&(!(a6==1)&&((((a15==1)&&(((a12==12)&&((a3==7)&&((a22==1)&&((a20==1)&&((input==4)&&((a18==1)||!(a18==1)))))))&&!(a0==1)))&&!(a4==1))&&(a5==1))))){ + a4 = 1; + a3 = 6; + a12 = 8; + a18 = 0; + a0 = 1; + a15 = 0; + return -1; + } else if((((a20==1)&&(((a0==1)&&((a27==1)&&((!(a5==1)&&(((input==4)&&(((a3==7)&&((a22==1)&&!(a18==1)))||(((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))))&&(a6==1)))&&(a4==1))))&&!(a15==1)))&&(a12==9))){ + a3 = 8; + a18 = 1; + a4 = 0; + a22 = 1; + a27 = 0; + a12 = 8; + return 24; + } else if(((((a3==8)&&(!(a6==1)&&(((a5==1)&&(!(a15==1)&&((a0==1)&&(((input==3)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&!(a4==1)))))&&(a12==9))))&&!(a27==1))&&(a20==1))){ + a18 = 0; + a27 = 1; + a12 = 10; + a22 = 0; + a6 = 1; + a4 = 1; + return 24; + } else if(((a0==1)&&((a3==4)&&(((((a5==1)&&((a20==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==3))&&(a6==1))&&!(a15==1))))&&(a27==1))&&(a12==9))&&(a4==1))))){ + a5 = 0; + a12 = 10; + a18 = 1; + a6 = 0; + a22 = 1; + return 26; + } else if((!(a22==1)&&((((a3==8)&&(!(a6==1)&&((a20==1)&&((a5==1)&&(((!(a0==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&!(a27==1))&&!(a15==1))))))&&(a4==1))&&(a12==10)))){ + a27 = 1; + a18 = 0; + a3 = 5; + a0 = 1; + a15 = 1; + a12 = 8; + return 26; + } else if(((a0==1)&&(((((a12==10)&&(!(a15==1)&&((!(a27==1)&&((!(a5==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a3==7)))&&!(a4==1))))&&(a20==1))&&!(a22==1))&&(a6==1)))){ + a22 = 1; + a4 = 1; + a3 = 4; + a18 = 1; + a5 = 1; + a15 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if((!(a4==1)&&((((a6==1)&&((!(a5==1)&&(((a27==1)&&((((a3==8)&&((a22==1)&&!(a18==1)))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a22==1)&&(a18==1)))))&&(input==4)))&&(a0==1)))&&(a20==1)))&&(a12==9))&&(a15==1)))){ + a4 = 1; + a6 = 0; + a3 = 8; + a15 = 0; + a22 = 1; + a5 = 1; + a18 = 0; + a12 = 10; + return 21; + } else if(((a6==1)&&((a3==8)&&((a22==1)&&((a5==1)&&((a15==1)&&((a18==1)&&((!(a27==1)&&((a12==9)&&((a20==1)&&((a0==1)&&(input==1)))))&&!(a4==1))))))))){ + a6 = 0; + a27 = 1; + a3 = 6; + a12 = 11; + return 21; + } else if(((a3==5)&&((a12==8)&&((a0==1)&&((a20==1)&&(!(a6==1)&&((!(a27==1)&&(!(a4==1)&&((a5==1)&&(!(a15==1)&&((input==6)&&((a18==1)||!(a18==1)))))))&&!(a22==1)))))))){ + a12 = 12; + a6 = 1; + a15 = 1; + a27 = 1; + a18 = 1; + a3 = 8; + a0 = 0; + return -1; + } else if((!(a27==1)&&((a3==6)&&(!(a0==1)&&(((((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==3))&&(a20==1))&&(a12==10))&&!(a15==1))&&(a4==1))&&!(a5==1))&&!(a6==1)))))){ + a3 = 5; + a27 = 1; + a12 = 8; + a15 = 1; + a22 = 1; + a4 = 0; + a18 = 1; + return 21; + } else if((((a5==1)&&(((a12==10)&&(((a0==1)&&(((a15==1)&&(!(a27==1)&&((input==1)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))))&&(a6==1)))&&!(a4==1)))&&(a20==1)))&&(a3==4))){ + a18 = 0; + a22 = 1; + a15 = 0; + a3 = 7; + a6 = 0; + return 26; + } else if(((((!(a4==1)&&((((((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==3))&&(a15==1))&&(a6==1))&&(a20==1))&&!(a27==1))&&(a5==1)))&&!(a0==1))&&(a12==11))&&(a3==4))){ + a27 = 1; + a6 = 0; + a0 = 1; + a22 = 0; + a4 = 1; + a12 = 8; + a3 = 7; + a18 = 0; + return -1; + } else if(((a20==1)&&((a18==1)&&((a12==11)&&((((a0==1)&&((((a6==1)&&(((a4==1)&&(input==2))&&!(a15==1)))&&!(a5==1))&&!(a27==1)))&&(a22==1))&&(a3==7)))))){ + a18 = 0; + a3 = 8; + a4 = 0; + a27 = 1; + return -1; + } else if((((a20==1)&&(((a4==1)&&((a6==1)&&(((((input==1)&&((((a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==4)))))&&(a0==1))&&!(a27==1))&&(a15==1))))&&!(a5==1)))&&(a12==8))){ + a4 = 0; + a15 = 0; + a6 = 0; + a5 = 1; + a18 = 1; + a3 = 6; + a22 = 0; + return 21; + } else if(((a0==1)&&((((!(a18==1)&&((a3==8)&&((a15==1)&&((a5==1)&&(((a4==1)&&((input==6)&&(a6==1)))&&(a12==11))))))&&(a27==1))&&(a20==1))&&(a22==1)))){ + a4 = 0; + a18 = 1; + a12 = 10; + a3 = 5; + a6 = 0; + a15 = 0; + a5 = 0; + return -1; + } else if(((((!(a6==1)&&((((a12==9)&&(((a20==1)&&(!(a15==1)&&((input==1)&&((a18==1)||!(a18==1)))))&&(a5==1)))&&(a4==1))&&(a0==1)))&&!(a27==1))&&(a22==1))&&(a3==4))){ + a6 = 1; + a12 = 8; + a15 = 1; + a27 = 1; + a18 = 1; + return -1; + } else if(((a27==1)&&(!(a0==1)&&(((!(a6==1)&&(((a3==7)&&(((((input==3)&&(a5==1))&&!(a22==1))&&!(a4==1))&&(a12==9)))&&(a20==1)))&&!(a15==1))&&!(a18==1))))){ + a3 = 4; + a15 = 1; + a6 = 1; + a0 = 1; + a4 = 1; + a18 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if((((!(a6==1)&&(!(a27==1)&&(((a12==9)&&((a20==1)&&((((input==5)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&(a0==1))&&(a3==7))))&&(a15==1))))&&!(a4==1))&&(a5==1))){ + a6 = 1; + a18 = 0; + a3 = 4; + a15 = 0; + a5 = 0; + a4 = 1; + a12 = 12; + a22 = 1; + return 26; + } else if(((a12==12)&&(((a0==1)&&(((a20==1)&&(((!(a15==1)&&((((input==2)&&((a18==1)||!(a18==1)))&&(a22==1))&&!(a4==1)))&&!(a6==1))&&!(a5==1)))&&(a3==7)))&&!(a27==1)))){ + a5 = 1; + a18 = 0; + a27 = 1; + a4 = 1; + a12 = 10; + a22 = 0; + a15 = 1; + a3 = 6; + return -1; + } else if(((a0==1)&&((a5==1)&&((((a6==1)&&((a4==1)&&(((a3==4)&&((a12==12)&&((input==6)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))&&(a20==1))))&&!(a27==1))&&(a15==1))))){ + a6 = 0; + a5 = 0; + a3 = 7; + a18 = 1; + a22 = 1; + a12 = 10; + a27 = 1; + a4 = 0; + return 21; + } else if((((a12==8)&&((a22==1)&&((a27==1)&&((a4==1)&&(!(a5==1)&&(((a20==1)&&(((a3==5)&&((input==1)&&!(a18==1)))&&!(a6==1)))&&!(a15==1)))))))&&(a0==1))){ + a15 = 1; + a5 = 1; + a6 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((((a20==1)&&(!(a27==1)&&((input==5)&&((((a3==4)&&((a4==1)&&((a12==11)&&((a15==1)&&(((a22==1)&&!(a18==1))&&(a5==1))))))&&(a6==1))||((!(a6==1)&&((a3==8)&&((((!(a5==1)&&(!(a22==1)&&!(a18==1)))&&!(a15==1))&&(a12==10))&&!(a4==1))))||((a6==1)&&((a3==4)&&(((a12==11)&&(((a5==1)&&((a18==1)&&(a22==1)))&&(a15==1)))&&(a4==1)))))))))&&(a0==1))){ + a5 = 1; + a4 = 0; + a6 = 1; + a22 = 1; + a12 = 11; + a18 = 0; + a15 = 0; + a3 = 8; + return 21; + } else if(((a12==8)&&((((a20==1)&&(((a27==1)&&(((a15==1)&&(((((a22==1)&&(a18==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a18==1)&&!(a22==1)))))&&(input==5)))&&!(a6==1)))&&!(a0==1)))&&(a4==1))&&(a5==1)))){ + a18 = 1; + a22 = 1; + a0 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if(((((a27==1)&&((!(a15==1)&&((a12==11)&&((a3==4)&&(((((input==1)&&((a18==1)||!(a18==1)))&&!(a0==1))&&(a4==1))&&(a5==1)))))&&!(a22==1)))&&(a20==1))&&(a6==1))){ + a12 = 8; + a0 = 1; + a4 = 0; + a27 = 0; + a18 = 1; + a15 = 1; + a3 = 8; + return -1; + } else if(((!(a0==1)&&(((a15==1)&&((((a20==1)&&((a12==10)&&((((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==5))))&&(a4==1))&&(a27==1)))&&!(a5==1)))&&!(a6==1))){ + a15 = 0; + a6 = 1; + a4 = 0; + a12 = 11; + a0 = 1; + a5 = 1; + a18 = 0; + a22 = 0; + a3 = 6; + return 21; + } else if(((((a4==1)&&(((!(a15==1)&&((((((input==3)&&(a27==1))&&(a12==8))&&!(a18==1))&&(a3==8))&&!(a22==1)))&&!(a6==1))&&(a0==1)))&&(a5==1))&&(a20==1))){ + a6 = 1; + a3 = 4; + a22 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if((((((!(a15==1)&&((a4==1)&&((((a20==1)&&((((a18==1)||!(a18==1))&&(input==6))&&(a27==1)))&&(a22==1))&&(a5==1))))&&(a3==4))&&(a0==1))&&!(a6==1))&&(a12==8))){ + a6 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if(((((((((((input==5)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))||(((a22==1)&&!(a18==1))&&(a3==7))))&&(a4==1))&&(a15==1))&&(a5==1))&&(a12==10))&&(a0==1))&&!(a27==1))&&!(a6==1))&&(a20==1))){ + a18 = 0; + a12 = 9; + a5 = 0; + a4 = 0; + a3 = 4; + a22 = 0; + return -1; + } else if((((a12==11)&&(((((((a27==1)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==3)))&&(a0==1))&&(a6==1))&&!(a5==1))&&(a20==1))&&(a4==1)))&&!(a15==1))){ + a6 = 0; + a22 = 1; + a15 = 1; + a0 = 0; + a5 = 1; + a3 = 4; + a18 = 1; + a4 = 0; + return -1; + } else if((!(a27==1)&&((a20==1)&&(!(a5==1)&&((!(a0==1)&&((a6==1)&&((((input==1)&&((((a3==7)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==7)))||(((a18==1)&&(a22==1))&&(a3==8))))&&!(a4==1))&&(a12==11))))&&!(a15==1)))))){ + a12 = 9; + a4 = 1; + a6 = 0; + a5 = 1; + a22 = 1; + a3 = 7; + a15 = 1; + a0 = 1; + a18 = 1; + return 26; + } else if((((!(a0==1)&&(((a4==1)&&((a20==1)&&((a27==1)&&(!(a5==1)&&(((input==6)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&(a3==6))))))&&(a12==10)))&&!(a15==1))&&(a6==1))){ + a6 = 0; + a22 = 1; + a27 = 0; + a3 = 7; + a18 = 1; + a0 = 1; + return 21; + } else if((!(a5==1)&&((a12==12)&&((a0==1)&&((!(a18==1)&&((((((a4==1)&&((input==1)&&!(a6==1)))&&!(a27==1))&&!(a15==1))&&(a3==7))&&(a20==1)))&&(a22==1)))))){ + a12 = 10; + a3 = 6; + a6 = 1; + a18 = 1; + return 26; + } else if(((a12==9)&&((a0==1)&&((a20==1)&&(((a6==1)&&(!(a5==1)&&(((((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a4==1))&&(a15==1))&&(a3==7))))&&!(a27==1)))))){ + a5 = 1; + a3 = 4; + a27 = 1; + a22 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if((((a27==1)&&(((((a20==1)&&(!(a5==1)&&(((input==2)&&((((a22==1)&&(a18==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a18==1)&&!(a22==1))))))&&(a12==11))))&&(a0==1))&&(a6==1))&&(a15==1)))&&(a4==1))){ + a5 = 1; + a18 = 1; + a12 = 10; + a0 = 0; + a6 = 0; + a22 = 0; + a3 = 8; + return -1; + } else if(((a5==1)&&((a15==1)&&((a12==12)&&((((a27==1)&&(((a3==5)&&((a20==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==5))))&&!(a6==1)))&&!(a4==1))&&!(a0==1)))))){ + a15 = 0; + a18 = 1; + a6 = 1; + a22 = 1; + a0 = 1; + return 21; + } else if(((((a12==9)&&((!(a0==1)&&((a20==1)&&((((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==4))&&!(a5==1))&&!(a4==1))))&&(a15==1)))&&(a27==1))&&(a6==1))){ + a12 = 8; + a22 = 1; + a18 = 1; + a5 = 1; + a3 = 4; + a4 = 1; + a0 = 1; + return -1; + } else if(((((!(a6==1)&&((a5==1)&&(((a3==4)&&(!(a15==1)&&((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==2))&&(a20==1))))&&!(a0==1))))&&(a4==1))&&(a27==1))&&(a12==8))){ + a18 = 1; + a27 = 0; + a12 = 11; + a6 = 1; + a22 = 0; + a5 = 0; + a15 = 1; + a3 = 6; + a0 = 1; + return 21; + } else if(((((a20==1)&&((a4==1)&&(!(a6==1)&&(((((a3==8)&&(((input==2)&&!(a22==1))&&!(a15==1)))&&!(a0==1))&&(a5==1))&&(a18==1)))))&&!(a27==1))&&(a12==11))){ + a22 = 1; + a0 = 1; + a15 = 1; + a12 = 12; + a3 = 6; + a5 = 0; + a27 = 1; + a6 = 1; + return 24; + } else if((!(a27==1)&&(!(a0==1)&&((a5==1)&&((a20==1)&&(!(a15==1)&&(((input==4)&&(((((!(a22==1)&&!(a18==1))&&(a4==1))&&(a3==8))&&!(a6==1))||(((((a18==1)&&(a22==1))&&!(a4==1))&&(a3==4))&&(a6==1))))&&(a12==11)))))))){ + a0 = 1; + a4 = 0; + a6 = 1; + a3 = 6; + a22 = 1; + a15 = 1; + a12 = 8; + a27 = 1; + a18 = 1; + return 21; + } else if((!(a0==1)&&((((a4==1)&&(((((a3==8)&&((a20==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==2))))&&!(a15==1))&&(a12==8))&&!(a5==1)))&&(a27==1))&&(a6==1)))){ + a3 = 4; + a12 = 10; + a6 = 0; + a15 = 1; + a18 = 1; + a5 = 1; + a22 = 1; + a4 = 0; + return 21; + } else if(((((a4==1)&&(((a6==1)&&(((!(a5==1)&&((input==3)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6)))))&&!(a0==1))&&(a20==1)))&&(a27==1)))&&(a15==1))&&(a12==11))){ + a18 = 0; + a4 = 0; + a22 = 0; + a3 = 4; + a0 = 1; + a6 = 0; + a12 = 10; + a5 = 1; + return 24; + } else if(((a4==1)&&((!(a15==1)&&(!(a6==1)&&((a20==1)&&((a0==1)&&(!(a5==1)&&((a3==5)&&(!(a27==1)&&((input==1)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))))))))&&(a12==10)))){ + a3 = 4; + a15 = 1; + a5 = 1; + a18 = 1; + a22 = 1; + a12 = 8; + a27 = 1; + a6 = 1; + return -1; + } return calculate_output37(input); + } + + int calculate_output37(int input) { + if(((!(a4==1)&&(!(a0==1)&&((a3==5)&&(((a20==1)&&(((a15==1)&&(((input==1)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a27==1)))&&(a12==11)))&&(a5==1)))))&&!(a6==1))){ + a6 = 1; + a5 = 0; + a22 = 0; + a15 = 0; + a3 = 8; + a18 = 1; + a0 = 1; + return 21; + } else if(((!(a6==1)&&(((((((!(a27==1)&&((input==6)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a4==1))&&(a0==1))&&(a12==8))&&(a5==1))&&(a3==4))&&(a20==1)))&&!(a15==1))){ + a18 = 0; + a3 = 7; + a15 = 1; + a0 = 0; + a5 = 0; + a27 = 1; + a22 = 0; + a12 = 10; + return 24; + } else if((!(a0==1)&&(((a20==1)&&(!(a27==1)&&(((((a5==1)&&(((input==4)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a6==1)))&&(a3==5))&&(a12==8))&&!(a4==1))))&&(a15==1)))){ + if((a5==1)){ + a15 = 0; + a4 = 1; + a3 = 7; + a6 = 1; + a12 = 10; + a18 = 0; + a22 = 1; + }else{ + a3 = 7; + a18 = 1; + a27 = 1; + a22 = 1; + a4 = 1; + a12 = 12; + } + return 21; + } else if((!(a0==1)&&((a20==1)&&(((a27==1)&&((((a12==9)&&((((((!(a22==1)&&(a18==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==2))&&!(a5==1)))&&(a6==1))&&(a15==1)))&&!(a4==1))))){ + a3 = 4; + a5 = 1; + a27 = 0; + a12 = 10; + a18 = 0; + a0 = 1; + a22 = 1; + return 21; + } else if(((!(a0==1)&&(((!(a4==1)&&((((a5==1)&&((input==3)&&(((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==5)))))&&!(a6==1))&&(a12==8)))&&(a15==1))&&(a20==1)))&&!(a27==1))){ + if((a3==7)){ + a27 = 1; + a22 = 0; + a18 = 0; + a4 = 1; + a3 = 8; + a0 = 1; + }else{ + a6 = 1; + a18 = 0; + a5 = 0; + a3 = 7; + a22 = 1; + a12 = 11; + a4 = 1; + a0 = 1; + } + return -1; + } else if((!(a18==1)&&(!(a22==1)&&((((a12==10)&&(!(a5==1)&&((a0==1)&&((a20==1)&&(!(a27==1)&&(((a6==1)&&(input==6))&&!(a4==1)))))))&&(a3==8))&&!(a15==1))))){ + if((a15==1)){ + a27 = 1; + a22 = 1; + a6 = 0; + a4 = 1; + a3 = 4; + a15 = 1; + a5 = 1; + a0 = 0; + a18 = 1; + }else{ + a18 = 1; + a6 = 0; + a22 = 1; + a15 = 1; + a12 = 8; + a3 = 6; + } + return 26; + } else if(((a3==5)&&(((a0==1)&&((a12==12)&&(!(a22==1)&&(((a18==1)&&((a5==1)&&((a27==1)&&(((a6==1)&&(input==2))&&(a20==1)))))&&(a4==1)))))&&!(a15==1)))){ + a3 = 4; + a12 = 8; + a15 = 1; + a22 = 1; + return -1; + } else if(((!(a15==1)&&(((!(a6==1)&&((a5==1)&&((!(a4==1)&&(((((a22==1)&&!(a18==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1)))))&&(input==2)))&&(a0==1))))&&!(a27==1))&&(a12==10)))&&(a20==1))){ + a6 = 1; + a5 = 0; + a3 = 8; + a15 = 1; + a18 = 0; + a22 = 1; + return 26; + } else if(((a4==1)&&((a27==1)&&(((!(a5==1)&&((a20==1)&&((!(a0==1)&&((a12==9)&&(((input==4)&&(a3==5))&&!(a18==1))))&&!(a22==1))))&&(a15==1))&&(a6==1))))){ + a3 = 6; + a15 = 0; + a6 = 0; + a18 = 1; + a27 = 0; + a5 = 1; + a12 = 10; + a0 = 1; + return -1; + } else if((((!(a4==1)&&((((a15==1)&&((((a20==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1)))&&!(a5==1))&&(a12==8)))&&(a27==1))&&(a3==7)))&&!(a6==1))&&!(a0==1))){ + a3 = 4; + a4 = 1; + a5 = 1; + a6 = 1; + a0 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((a6==1)&&((((!(a27==1)&&((a3==5)&&((((((input==2)&&((a18==1)||!(a18==1)))&&(a0==1))&&!(a4==1))&&!(a22==1))&&(a12==8))))&&(a15==1))&&(a20==1))&&!(a5==1)))){ + a12 = 11; + a22 = 1; + a3 = 4; + a18 = 0; + a6 = 0; + return 26; + } else if(((a15==1)&&((a22==1)&&(!(a5==1)&&(((!(a18==1)&&((a3==5)&&(((a20==1)&&((a0==1)&&(!(a27==1)&&(input==5))))&&!(a6==1))))&&!(a4==1))&&(a12==8)))))){ + a3 = 8; + a15 = 0; + a5 = 1; + a27 = 1; + a12 = 10; + return 26; + } else if(((a18==1)&&((((a12==11)&&(((a20==1)&&(((((a27==1)&&((a3==8)&&(input==4)))&&(a0==1))&&(a22==1))&&!(a6==1)))&&(a5==1)))&&!(a4==1))&&(a15==1)))){ + a6 = 1; + a12 = 8; + a3 = 6; + a5 = 0; + a4 = 1; + a22 = 0; + a0 = 0; + return 24; + } else if((((a27==1)&&((a5==1)&&((!(a0==1)&&((a15==1)&&(((a6==1)&&(!(a18==1)&&(((input==1)&&(a3==5))&&(a22==1))))&&(a12==11))))&&!(a4==1))))&&(a20==1))){ + a12 = 8; + a18 = 1; + a27 = 0; + a22 = 0; + a0 = 1; + a6 = 0; + a5 = 0; + return 24; + } else if((((((a12==9)&&(((a0==1)&&(!(a27==1)&&(!(a5==1)&&(((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==5))&&!(a6==1)))))&&(a3==5)))&&(a4==1))&&(a20==1))&&!(a15==1))){ + a12 = 8; + a3 = 6; + a18 = 1; + a22 = 1; + a15 = 1; + return 21; + } else if(((a4==1)&&(!(a5==1)&&((a20==1)&&(((((a6==1)&&((((input==3)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&(a15==1))&&(a12==9)))&&(a0==1))&&!(a27==1))&&(a3==5)))))){ + a3 = 4; + a12 = 8; + a5 = 1; + a27 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((a3==8)&&((!(a15==1)&&((((a5==1)&&(!(a27==1)&&(((a12==10)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==5)))&&(a6==1))))&&(a4==1))&&(a0==1)))&&(a20==1)))){ + a12 = 8; + a3 = 4; + a18 = 1; + a15 = 1; + a22 = 1; + a27 = 1; + return -1; + } else if(((a6==1)&&(((a22==1)&&(((a20==1)&&(!(a0==1)&&((a15==1)&&((!(a27==1)&&((a12==10)&&(((a18==1)||!(a18==1))&&(input==3))))&&(a4==1)))))&&(a3==6)))&&!(a5==1)))){ + a18 = 0; + a0 = 1; + a3 = 5; + a5 = 1; + a6 = 0; + a15 = 0; + return 21; + } else if(((a20==1)&&((!(a6==1)&&(((a12==10)&&(((!(a15==1)&&(!(a22==1)&&((((a18==1)||!(a18==1))&&(input==4))&&!(a4==1))))&&(a3==5))&&!(a27==1)))&&(a5==1)))&&!(a0==1)))){ + a18 = 1; + a12 = 12; + a27 = 1; + a22 = 1; + a0 = 1; + return 24; + } else if(((a12==10)&&((a27==1)&&(!(a5==1)&&(((((a20==1)&&(((a4==1)&&((input==2)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&!(a6==1)))&&!(a15==1))&&(a3==6))&&!(a0==1)))))){ + a0 = 1; + a18 = 1; + a27 = 0; + a3 = 7; + a22 = 1; + a4 = 0; + a12 = 8; + return 21; + } else if(((a15==1)&&((((a6==1)&&(((a3==6)&&(!(a5==1)&&(!(a27==1)&&(((input==1)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&(a12==8)))))&&!(a4==1)))&&(a20==1))&&(a0==1)))){ + a22 = 1; + a3 = 4; + a4 = 1; + a27 = 1; + a18 = 1; + a5 = 1; + return -1; + } else if(((a5==1)&&(((((a27==1)&&(((a3==8)&&((!(a0==1)&&((!(a18==1)&&(input==1))&&(a20==1)))&&(a4==1)))&&!(a22==1)))&&(a6==1))&&(a12==9))&&(a15==1)))){ + a27 = 0; + a0 = 1; + a5 = 0; + a12 = 8; + a4 = 0; + return -1; + } else if((((((a6==1)&&(((a12==10)&&((a22==1)&&((a3==4)&&(!(a4==1)&&((a5==1)&&(!(a18==1)&&(input==3)))))))&&(a0==1)))&&(a15==1))&&(a27==1))&&(a20==1))){ + a12 = 11; + a18 = 1; + a4 = 1; + a5 = 0; + return 26; + } else if((!(a4==1)&&((a3==4)&&(((!(a22==1)&&(((a20==1)&&(((!(a27==1)&&((input==5)&&!(a0==1)))&&(a5==1))&&(a15==1)))&&(a12==9)))&&(a18==1))&&(a6==1))))){ + a3 = 8; + a27 = 1; + a12 = 10; + a4 = 1; + a18 = 0; + a6 = 0; + return 26; + } else if(((a20==1)&&(!(a6==1)&&(!(a0==1)&&(((((((input==6)&&(((!(a18==1)&&(a22==1))&&(a3==7))||(((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a18==1)&&(a22==1))))))&&(a12==10))&&!(a15==1))&&!(a5==1))&&!(a27==1))&&!(a4==1)))))){ + a4 = 1; + a18 = 1; + a22 = 0; + a27 = 1; + a0 = 1; + a3 = 6; + return 21; + } else if((!(a15==1)&&((a0==1)&&(!(a5==1)&&(!(a4==1)&&((a12==11)&&((a27==1)&&((a20==1)&&((a6==1)&&((input==2)&&(((a3==7)&&((a22==1)&&(a18==1)))||(((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))))))))))))){ + a22 = 1; + a12 = 8; + a18 = 1; + a15 = 1; + a5 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if(((((a12==9)&&(((!(a15==1)&&((a20==1)&&((a3==8)&&(!(a27==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a22==1))))))&&(a4==1))&&(a5==1)))&&!(a6==1))&&(a0==1))){ + a18 = 1; + a3 = 4; + a22 = 0; + a15 = 1; + a6 = 1; + return 26; + } else if((!(a27==1)&&((a12==12)&&((a0==1)&&(((((((input==6)&&((((a22==1)&&!(a18==1))&&(a3==6))||(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))))&&!(a6==1))&&(a15==1))&&(a5==1))&&!(a4==1))&&(a20==1)))))){ + a3 = 4; + a22 = 0; + a5 = 0; + a12 = 9; + a18 = 1; + a6 = 1; + a4 = 1; + return -1; + } else if(((a3==4)&&((!(a22==1)&&((a15==1)&&((a0==1)&&((a4==1)&&((!(a27==1)&&((a18==1)&&(((input==4)&&(a12==8))&&(a5==1))))&&!(a6==1))))))&&(a20==1)))){ + a18 = 0; + a5 = 0; + a3 = 8; + a4 = 0; + a12 = 11; + return 21; + } else if(((((((!(a22==1)&&(((((a12==11)&&((input==5)&&(a27==1)))&&(a5==1))&&!(a0==1))&&(a15==1)))&&(a3==7))&&(a18==1))&&!(a6==1))&&(a4==1))&&(a20==1))){ + a27 = 0; + a0 = 1; + a18 = 0; + a15 = 0; + return 21; + } else if(((!(a0==1)&&(((!(a6==1)&&((a3==6)&&(((!(a15==1)&&((a12==9)&&(((a18==1)||!(a18==1))&&(input==3))))&&(a20==1))&&!(a4==1))))&&!(a22==1))&&(a5==1)))&&!(a27==1))){ + if((a15==1)){ + a4 = 1; + a6 = 1; + a12 = 8; + a18 = 1; + a15 = 1; + a0 = 1; + a3 = 7; + a27 = 1; + }else{ + a12 = 8; + a3 = 5; + a0 = 1; + a22 = 1; + a27 = 1; + a6 = 1; + a18 = 0; + a15 = 1; + } + return 26; + } else if(((((a22==1)&&((!(a6==1)&&((a12==11)&&(!(a27==1)&&(((a20==1)&&(!(a0==1)&&((input==5)&&!(a4==1))))&&(a5==1)))))&&(a15==1)))&&(a3==8))&&!(a18==1))){ + a27 = 1; + a3 = 7; + a5 = 0; + a22 = 0; + a0 = 1; + a18 = 1; + a6 = 1; + return -1; + } else if((((a20==1)&&((((a12==9)&&(!(a5==1)&&((a3==7)&&(!(a27==1)&&((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==2))&&!(a6==1))))))&&(a4==1))&&!(a0==1)))&&!(a15==1))){ + a15 = 1; + a6 = 1; + a18 = 0; + a0 = 1; + a22 = 1; + a27 = 1; + a3 = 8; + a12 = 8; + a5 = 1; + return 21; + } else if(((!(a5==1)&&((((((((input==3)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==8))))&&(a12==9))&&(a0==1))&&(a15==1))&&(a6==1))&&(a20==1))&&(a27==1)))&&!(a4==1))){ + a18 = 0; + a3 = 8; + a12 = 8; + a27 = 0; + a22 = 1; + return 26; + } else if((((a20==1)&&((a12==8)&&((a3==8)&&((a4==1)&&(((a0==1)&&((!(a27==1)&&((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a15==1)))&&(a6==1))))))&&(a5==1))){ + a18 = 1; + a3 = 4; + a15 = 1; + a4 = 0; + a22 = 1; + return 26; + } else if(((((a3==6)&&((a12==10)&&((!(a27==1)&&((a4==1)&&((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==4))&&!(a5==1))&&(a20==1))))&&(a0==1))))&&(a6==1))&&(a15==1))){ + a5 = 1; + a27 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + a18 = 1; + return -1; + } else if(((a5==1)&&(!(a4==1)&&(!(a27==1)&&((((((a20==1)&&(!(a22==1)&&(((input==6)&&(a12==9))&&(a3==5))))&&!(a6==1))&&(a0==1))&&(a15==1))&&(a18==1)))))){ + a27 = 1; + a3 = 7; + a0 = 0; + a6 = 1; + a18 = 0; + a12 = 8; + a5 = 0; + return 26; + } else if((((((a6==1)&&((a20==1)&&((((a4==1)&&((a27==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==1))))&&!(a5==1))&&(a15==1))))&&(a3==7))&&(a12==11))&&!(a0==1))){ + a0 = 1; + a18 = 1; + a22 = 1; + a5 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((a5==1)&&(((a20==1)&&((a27==1)&&(!(a6==1)&&(!(a0==1)&&((a4==1)&&((a3==5)&&(((input==6)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a15==1))))))))&&(a12==10)))){ + a6 = 1; + a15 = 0; + a5 = 0; + a22 = 1; + a18 = 1; + a0 = 1; + a3 = 8; + return 26; + } else if(((a5==1)&&(((((a22==1)&&((!(a27==1)&&((a15==1)&&((a6==1)&&((a3==7)&&((input==1)&&((a18==1)||!(a18==1)))))))&&(a20==1)))&&(a12==12))&&(a4==1))&&(a0==1)))){ + a27 = 1; + a22 = 0; + a18 = 0; + a6 = 0; + a3 = 6; + a12 = 10; + return 21; + } else if(((((a4==1)&&((!(a22==1)&&((a12==11)&&((!(a0==1)&&((a6==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a3==6))))&&(a20==1))))&&!(a5==1)))&&(a15==1))&&!(a27==1))){ + a12 = 9; + a3 = 4; + a27 = 1; + a18 = 1; + return -1; + } else if(((a0==1)&&((a20==1)&&(!(a6==1)&&(!(a15==1)&&(((!(a4==1)&&((a3==7)&&((a27==1)&&((input==6)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))))&&!(a5==1))&&(a12==12))))))){ + a6 = 1; + a12 = 8; + a5 = 1; + a15 = 1; + a18 = 1; + a3 = 4; + a4 = 1; + a22 = 1; + return -1; + } else if(((a15==1)&&(!(a5==1)&&((a6==1)&&((a12==8)&&((((a20==1)&&((a27==1)&&((((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==3))))&&!(a0==1))&&(a4==1))))))){ + a22 = 1; + a12 = 11; + a6 = 0; + a3 = 5; + a5 = 1; + a18 = 0; + a0 = 1; + return 21; + } else if(((!(a15==1)&&((a27==1)&&(((a22==1)&&((a20==1)&&((a3==6)&&(((((input==1)&&(a0==1))&&!(a6==1))&&(a12==8))&&(a5==1)))))&&(a4==1))))&&!(a18==1))){ + a6 = 1; + a4 = 0; + a5 = 0; + return 24; + } else if((!(a0==1)&&(!(a27==1)&&(((a20==1)&&(((((((input==5)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&!(a4==1))&&(a3==4))&&(a5==1))&&(a12==11))&&!(a6==1)))&&!(a15==1))))){ + a27 = 1; + a3 = 7; + a6 = 1; + a0 = 1; + a15 = 1; + a22 = 0; + a12 = 8; + a18 = 1; + return 21; + } else if(((a3==8)&&((!(a15==1)&&((a4==1)&&((a20==1)&&((a12==9)&&(((!(a5==1)&&(!(a22==1)&&(((a18==1)||!(a18==1))&&(input==2))))&&!(a27==1))&&(a0==1))))))&&!(a6==1)))){ + a12 = 10; + a4 = 0; + a22 = 1; + a18 = 1; + a5 = 1; + return 21; + } else if((((((a27==1)&&(!(a4==1)&&(((a5==1)&&(((!(a18==1)&&((input==6)&&(a20==1)))&&(a12==11))&&(a15==1)))&&(a0==1))))&&!(a6==1))&&(a3==4))&&!(a22==1))){ + a22 = 1; + a4 = 1; + a6 = 1; + a15 = 0; + a12 = 10; + return -1; + } else if(((!(a0==1)&&((((((a20==1)&&((a12==9)&&(!(a22==1)&&((a27==1)&&((input==2)&&!(a15==1))))))&&(a6==1))&&(a5==1))&&!(a4==1))&&(a3==5)))&&!(a18==1))){ + a3 = 4; + a0 = 1; + a12 = 11; + a6 = 0; + a5 = 0; + return 21; + } else if(((!(a4==1)&&(((a27==1)&&(((!(a5==1)&&(((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==5))&&(a12==10))&&(a15==1)))&&!(a6==1))&&(a20==1)))&&(a3==6)))&&!(a0==1))){ + a12 = 11; + a18 = 1; + a4 = 1; + a3 = 7; + a0 = 1; + a22 = 1; + return 21; + } else if(((a5==1)&&(!(a6==1)&&((((a12==8)&&(((a20==1)&&(((input==1)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6)))||((a3==6)&&(!(a18==1)&&(a22==1)))))&&!(a4==1)))&&(a15==1)))&&!(a0==1))&&(a27==1))))){ + a12 = 12; + a18 = 1; + a3 = 7; + a0 = 1; + a6 = 1; + a4 = 1; + a22 = 0; + return 26; + } else if(((((a3==8)&&((!(a0==1)&&((((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a5==1))&&!(a27==1))&&!(a6==1))&&(a20==1)))&&(a4==1)))&&!(a15==1))&&(a12==8))){ + a22 = 0; + a15 = 1; + a18 = 1; + a27 = 1; + a0 = 1; + a3 = 5; + return 21; + } else if((((((a20==1)&&(((a12==11)&&((a0==1)&&((a15==1)&&((((a3==6)&&((a18==1)&&(a22==1)))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==5))))&&(input==1)))))&&!(a6==1)))&&(a4==1))&&(a5==1))&&!(a27==1))){ + a6 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + a22 = 1; + a27 = 1; + return -1; + } else if(((a20==1)&&((((!(a22==1)&&((((a5==1)&&(!(a0==1)&&((!(a27==1)&&(input==1))&&(a6==1))))&&!(a4==1))&&(a15==1)))&&(a18==1))&&(a3==4))&&(a12==9)))){ + a18 = 0; + a4 = 1; + a12 = 8; + a22 = 1; + a0 = 1; + a27 = 1; + a3 = 6; + a6 = 0; + return -1; + } else if(((((((((((a20==1)&&((input==6)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&(a3==7))&&!(a5==1))&&!(a15==1))&&(a4==1))&&!(a27==1))&&(a12==11))&&!(a0==1))&&(a6==1))){ + if((a15==1)){ + a15 = 1; + a3 = 6; + a12 = 8; + a4 = 0; + a27 = 1; + a0 = 1; + a18 = 0; + a5 = 1; + a22 = 0; + }else{ + a6 = 0; + a27 = 1; + a3 = 6; + a5 = 1; + a22 = 0; + a15 = 1; + a18 = 0; + a12 = 10; + } + return -1; + } else if((((a27==1)&&(!(a0==1)&&((a20==1)&&(!(a4==1)&&(((a5==1)&&(((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a6==1))&&(a3==6)))&&(a15==1))))))&&(a12==12))){ + a4 = 1; + a5 = 0; + a22 = 1; + a6 = 0; + a18 = 0; + a15 = 0; + a12 = 10; + a3 = 7; + a0 = 1; + return 26; + } else if((((a3==8)&&((a4==1)&&(!(a0==1)&&((a27==1)&&((a12==11)&&((!(a5==1)&&((a6==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&(a20==1))))&&!(a15==1)))))))&&(a22==1))){ + a12 = 8; + a3 = 4; + a0 = 1; + a5 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if(((((a4==1)&&(((!(a15==1)&&((((input==5)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))||(((a18==1)&&(a22==1))&&(a3==6))))&&(a20==1))&&(a5==1)))&&(a27==1))&&!(a0==1)))&&(a12==10))&&(a6==1))){ + a12 = 8; + a22 = 1; + a0 = 1; + a3 = 4; + a15 = 1; + a18 = 1; + return -1; + } else if(((a12==12)&&((((!(a5==1)&&((a20==1)&&((a3==4)&&(!(a15==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==4))&&!(a4==1))))))&&(a0==1))&&(a6==1))&&(a27==1)))){ + a3 = 8; + a15 = 1; + a18 = 0; + a22 = 1; + a12 = 11; + return 21; + } else if(((((!(a15==1)&&((((a0==1)&&(((((a3==8)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8))))&&(input==5))&&(a5==1)))&&!(a4==1))&&(a12==9)))&&(a20==1))&&(a27==1))&&(a6==1))){ + a12 = 10; + a22 = 1; + a4 = 1; + a18 = 0; + a3 = 5; + a6 = 0; + return 24; + } else if((((a5==1)&&((a3==8)&&((((a20==1)&&((!(a6==1)&&(!(a0==1)&&((input==4)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))))&&!(a27==1)))&&(a12==10))&&(a15==1))))&&(a4==1))){ + a6 = 1; + a22 = 0; + a3 = 7; + a18 = 1; + a12 = 8; + a0 = 1; + a27 = 1; + return 26; + } else if(((!(a6==1)&&((((((a15==1)&&((((a12==11)&&((input==4)&&(a22==1)))&&(a20==1))&&!(a18==1)))&&!(a0==1))&&!(a5==1))&&(a3==8))&&(a4==1)))&&(a27==1))){ + a3 = 4; + a22 = 0; + a0 = 1; + a4 = 0; + a18 = 1; + a12 = 10; + return 26; + } else if((((a3==7)&&((a12==9)&&((!(a22==1)&&((a15==1)&&((((a18==1)&&((!(a27==1)&&(input==4))&&(a5==1)))&&(a20==1))&&!(a6==1))))&&!(a4==1))))&&!(a0==1))){ + a0 = 1; + a12 = 8; + a27 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if((((a3==8)&&((a27==1)&&((a12==12)&&((!(a6==1)&&(!(a0==1)&&(!(a15==1)&&(((a20==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&!(a5==1)))))&&!(a22==1)))))&&(a4==1))){ + a18 = 0; + a12 = 10; + a6 = 1; + a0 = 1; + a22 = 1; + a3 = 6; + return -1; + } else if((!(a6==1)&&(((a27==1)&&(!(a4==1)&&((((((a12==10)&&((!(a22==1)&&(input==5))&&!(a18==1)))&&(a0==1))&&!(a5==1))&&(a15==1))&&(a3==6))))&&(a20==1)))){ + a4 = 1; + a27 = 0; + a3 = 8; + a22 = 1; + a15 = 0; + a5 = 1; + a18 = 1; + return 26; + } else if(((!(a0==1)&&(((((a12==11)&&(!(a15==1)&&(!(a6==1)&&((input==1)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))))))&&(a4==1))&&(a27==1))&&(a5==1)))&&(a20==1))){ + if((a18==1)){ + a22 = 0; + a3 = 5; + a5 = 0; + a18 = 1; + }else{ + a18 = 0; + a22 = 1; + a15 = 1; + a3 = 8; + a5 = 0; + a0 = 1; + a4 = 0; + } + return -1; + } else if(((a20==1)&&(!(a5==1)&&((!(a0==1)&&((a15==1)&&((a6==1)&&((((input==6)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1)))))&&!(a4==1))&&(a27==1)))))&&(a12==12))))){ + a0 = 1; + a18 = 0; + a27 = 0; + a3 = 5; + a22 = 1; + a12 = 11; + a15 = 0; + a5 = 1; + return 26; + } else if((!(a0==1)&&(((a12==8)&&(((a27==1)&&(((a5==1)&&(((input==2)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))||(((a22==1)&&!(a18==1))&&(a3==7))))&&!(a4==1)))&&(a20==1)))&&!(a6==1)))&&(a15==1)))){ + a0 = 1; + a6 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + a4 = 1; + return -1; + } else if(((a27==1)&&((a0==1)&&(!(a4==1)&&((a5==1)&&(((a3==6)&&((((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==2))&&(a20==1))&&(a15==1))&&(a12==11)))&&(a6==1))))))){ + a6 = 0; + a22 = 0; + a4 = 1; + a5 = 0; + a3 = 8; + a18 = 0; + a15 = 0; + a12 = 10; + return -1; + } else if(((a18==1)&&((((!(a4==1)&&((((a12==9)&&((a20==1)&&((a27==1)&&(!(a15==1)&&(input==3)))))&&!(a22==1))&&!(a0==1)))&&!(a5==1))&&(a3==6))&&(a6==1)))){ + a5 = 1; + a0 = 1; + a3 = 5; + a12 = 11; + a18 = 0; + a6 = 0; + return 21; + } else if(((a5==1)&&(!(a15==1)&&((((a6==1)&&((a3==6)&&((!(a4==1)&&((a12==9)&&((a22==1)&&((input==5)&&(a20==1)))))&&!(a27==1))))&&!(a18==1))&&(a0==1))))){ + a18 = 1; + a22 = 0; + a12 = 8; + a3 = 5; + a15 = 1; + return 21; + } else if(((((a27==1)&&((a3==8)&&((a20==1)&&((a12==8)&&((!(a0==1)&&((((input==1)&&!(a22==1))&&!(a18==1))&&(a6==1)))&&!(a5==1))))))&&(a15==1))&&(a4==1))){ + a0 = 1; + a12 = 9; + a4 = 0; + a3 = 7; + a18 = 1; + a15 = 0; + a6 = 0; + return -1; + } else if(((((((a20==1)&&((a0==1)&&((a5==1)&&(!(a27==1)&&((!(a15==1)&&((input==2)&&(a18==1)))&&!(a22==1))))))&&(a12==8))&&(a3==6))&&!(a6==1))&&(a4==1))){ + a6 = 1; + a3 = 8; + a22 = 1; + a12 = 9; + return 26; + } else if(((a12==11)&&((a18==1)&&((a3==8)&&((((a20==1)&&(((a22==1)&&(((!(a6==1)&&(input==4))&&(a27==1))&&(a15==1)))&&(a0==1)))&&!(a4==1))&&!(a5==1)))))){ + a3 = 4; + a4 = 1; + a6 = 1; + a5 = 1; + a12 = 8; + return -1; + } else if((!(a5==1)&&((((((!(a4==1)&&((a20==1)&&((a27==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==4)))))&&!(a6==1))&&(a15==1))&&(a3==5))&&!(a0==1))&&(a12==10)))){ + a0 = 1; + a5 = 1; + a15 = 0; + a3 = 7; + a12 = 12; + a6 = 1; + a18 = 1; + a22 = 0; + return 26; + } else if((!(a15==1)&&(((a4==1)&&(((a6==1)&&((a18==1)&&((a12==10)&&(((((input==6)&&(a22==1))&&(a5==1))&&(a3==5))&&(a20==1)))))&&(a27==1)))&&(a0==1)))){ + a12 = 8; + a15 = 1; + a3 = 4; + return -1; + } else if((((a22==1)&&((a20==1)&&(!(a0==1)&&((a3==4)&&(((a6==1)&&((!(a27==1)&&(((input==5)&&!(a18==1))&&(a5==1)))&&!(a4==1)))&&(a15==1))))))&&(a12==9))){ + a22 = 0; + a12 = 10; + a0 = 1; + a5 = 0; + a15 = 0; + a4 = 1; + return -1; + } else if(((((a0==1)&&((((a20==1)&&((a12==9)&&(!(a5==1)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==1)))))&&(a6==1))&&(a27==1)))&&(a15==1))&&!(a4==1))){ + a4 = 1; + a12 = 8; + a3 = 5; + a27 = 0; + a18 = 0; + a6 = 0; + a22 = 1; + return 21; + } else if(((a12==9)&&((a27==1)&&((((a20==1)&&((a6==1)&&((a15==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==2))&&!(a0==1)))))&&!(a4==1))&&!(a5==1))))){ + a22 = 1; + a0 = 1; + a12 = 10; + a3 = 8; + a18 = 1; + a15 = 0; + return 21; + } else if(((!(a4==1)&&((a27==1)&&((!(a22==1)&&((a6==1)&&((((((input==5)&&(a15==1))&&!(a0==1))&&(a5==1))&&(a20==1))&&(a12==8))))&&(a18==1))))&&(a3==6))){ + a12 = 9; + a27 = 0; + a0 = 1; + a4 = 1; + a6 = 0; + a18 = 0; + a3 = 4; + return 21; + } else if((((!(a0==1)&&(((a15==1)&&((((((input==4)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a27==1))&&(a4==1))&&!(a6==1))&&(a20==1)))&&(a12==10)))&&(a3==7))&&(a5==1))){ + a22 = 1; + a0 = 1; + a15 = 0; + a18 = 0; + a27 = 0; + a4 = 0; + a3 = 5; + return -1; + } else if((((!(a4==1)&&((a20==1)&&((a0==1)&&(((a5==1)&&((a12==12)&&(((((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==4)))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==2))))&&!(a27==1)))))&&!(a6==1))&&!(a15==1))){ + a3 = 4; + a4 = 1; + a18 = 1; + a12 = 10; + a27 = 1; + a22 = 1; + a6 = 1; + return 21; + } else if((!(a5==1)&&((((a0==1)&&(((a6==1)&&(!(a27==1)&&((a20==1)&&((a12==12)&&((a22==1)&&((input==1)&&!(a15==1)))))))&&(a3==8)))&&!(a18==1))&&!(a4==1)))){ + a4 = 1; + a27 = 1; + a12 = 10; + a5 = 1; + a15 = 1; + a22 = 0; + a3 = 5; + a6 = 0; + return -1; + } else if(((!(a4==1)&&(((a20==1)&&((a12==8)&&(!(a0==1)&&(!(a5==1)&&((((((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==7)))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==1))&&!(a15==1))))))&&!(a6==1)))&&!(a27==1))){ + a22 = 1; + a3 = 4; + a6 = 1; + a0 = 1; + a15 = 1; + a27 = 1; + a18 = 1; + a5 = 1; + return 26; + } else if(((((a4==1)&&((a3==7)&&(((a20==1)&&(((a0==1)&&((a27==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a12==12))))&&(a5==1)))&&!(a6==1))))&&(a22==1))&&!(a15==1))){ + a18 = 1; + a6 = 1; + a3 = 4; + a12 = 8; + a15 = 1; + return -1; + } else if((!(a27==1)&&((a6==1)&&((a22==1)&&((a20==1)&&(((a5==1)&&((a12==9)&&((a3==7)&&((!(a15==1)&&((a4==1)&&(input==6)))&&!(a18==1)))))&&(a0==1))))))){ + a6 = 0; + a3 = 4; + a12 = 12; + a27 = 1; + a18 = 1; + return 24; + } else if(((!(a0==1)&&(!(a27==1)&&(((!(a4==1)&&(!(a5==1)&&((a15==1)&&((input==3)&&((((a22==1)&&!(a18==1))&&(a3==6))||(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6))))))))&&(a20==1))&&!(a6==1))))&&(a12==9))){ + if((a15==1)){ + a3 = 8; + a12 = 11; + a5 = 1; + a22 = 1; + a18 = 0; + }else{ + a0 = 1; + a18 = 0; + a4 = 1; + a12 = 8; + a5 = 1; + a3 = 5; + a27 = 1; + a22 = 0; + a6 = 1; + } + return 21; + } else if(((a12==10)&&((((a22==1)&&((!(a5==1)&&(((a15==1)&&((!(a27==1)&&((input==4)&&(a20==1)))&&(a3==7)))&&!(a4==1)))&&!(a0==1)))&&(a6==1))&&!(a18==1)))){ + a27 = 1; + a3 = 4; + a22 = 0; + return 21; + } else if(((a5==1)&&(((((a4==1)&&((((input==2)&&((((a6==1)&&((a3==8)&&(!(a22==1)&&(a18==1))))||((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1)))))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1))))&&(a12==9))&&(a27==1)))&&(a20==1))&&!(a15==1))&&(a0==1)))){ + a12 = 10; + a6 = 1; + a18 = 0; + a3 = 4; + a22 = 0; + return 26; + } else if((((a20==1)&&((!(a6==1)&&(((a4==1)&&(!(a5==1)&&((a27==1)&&((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==2)))))&&(a15==1)))&&(a12==10)))&&(a0==1))){ + a12 = 8; + a3 = 4; + a18 = 1; + a5 = 1; + a22 = 1; + a6 = 1; + return -1; + } else if(((a12==11)&&((a3==4)&&((a20==1)&&((!(a6==1)&&((a5==1)&&((a0==1)&&((a22==1)&&((a4==1)&&((((a18==1)||!(a18==1))&&(input==5))&&!(a15==1)))))))&&!(a27==1)))))){ + a12 = 10; + a3 = 6; + a22 = 0; + a18 = 1; + a27 = 1; + return -1; + } else if(((a20==1)&&((a12==11)&&(((!(a15==1)&&(((!(a0==1)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==5))&&(a3==8)))&&!(a5==1))&&(a27==1)))&&(a4==1))&&!(a6==1))))){ + a12 = 8; + a15 = 1; + a22 = 1; + a3 = 4; + a6 = 1; + a18 = 1; + a5 = 1; + a0 = 1; + return -1; + } else if(((a3==4)&&((a27==1)&&(((((a4==1)&&((!(a15==1)&&((a12==8)&&((a0==1)&&((input==1)&&((a18==1)||!(a18==1))))))&&(a6==1)))&&(a5==1))&&(a20==1))&&(a22==1))))){ + a22 = 0; + a4 = 0; + a18 = 1; + a3 = 7; + return 21; + } else if(((a22==1)&&(((a3==4)&&((((a27==1)&&((((a18==1)&&(!(a6==1)&&((a12==11)&&(input==1))))&&(a5==1))&&(a20==1)))&&(a15==1))&&!(a4==1)))&&!(a0==1)))){ + a6 = 1; + a5 = 0; + a12 = 10; + a4 = 1; + a27 = 0; + a18 = 0; + a0 = 1; + return 26; + } else if(((((a15==1)&&((((((a4==1)&&(!(a6==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==2))))&&!(a0==1))&&(a12==10))&&!(a27==1))&&(a3==5)))&&(a20==1))&&!(a5==1))){ + if((a0==1)){ + a3 = 6; + a27 = 1; + a5 = 1; + a12 = 8; + a22 = 0; + a0 = 1; + a18 = 0; + }else{ + a3 = 4; + a4 = 0; + a15 = 0; + a22 = 0; + a12 = 8; + a5 = 1; + a18 = 1; + a27 = 1; + } + return -1; + } else if((((a15==1)&&((a20==1)&&((!(a4==1)&&((a0==1)&&((a3==8)&&((a12==8)&&((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==5))&&!(a5==1))))))&&(a27==1))))&&(a6==1))){ + a5 = 1; + a12 = 10; + a6 = 0; + a4 = 1; + a22 = 0; + a3 = 6; + a18 = 1; + a15 = 0; + return 21; + } else if((!(a5==1)&&(((((!(a6==1)&&((a4==1)&&((((a22==1)&&((a0==1)&&(input==5)))&&!(a27==1))&&(a15==1))))&&(a12==12))&&(a3==8))&&(a18==1))&&(a20==1)))){ + a3 = 5; + a6 = 1; + a4 = 0; + return -1; + } else if((((((a12==11)&&(((((input==4)&&(((((!(a22==1)&&(a18==1))&&(a3==8))&&(a6==1))||(((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1)))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))))&&!(a27==1))&&!(a0==1))&&!(a5==1)))&&!(a15==1))&&(a4==1))&&(a20==1))){ + a3 = 4; + a0 = 1; + a22 = 0; + a12 = 12; + a5 = 1; + a18 = 1; + a6 = 1; + return 26; + } else if(((a20==1)&&((a15==1)&&(!(a27==1)&&(!(a0==1)&&((((input==4)&&((!(a6==1)&&((a3==8)&&((!(a22==1)&&!(a18==1))&&(a4==1))))||((a6==1)&&((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1)))))))&&(a5==1))&&(a12==10))))))){ + a22 = 0; + a15 = 0; + a6 = 1; + a18 = 0; + a3 = 4; + a4 = 1; + a12 = 9; + return -1; + } else if((!(a15==1)&&((a27==1)&&((a4==1)&&(((a20==1)&&((((a12==11)&&(!(a6==1)&&((input==6)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))))&&!(a0==1))&&(a3==5)))&&(a5==1)))))){ + a4 = 0; + a12 = 10; + a0 = 1; + a22 = 1; + a15 = 1; + a18 = 1; + a3 = 8; + return -1; + } else if((((a5==1)&&(((((a20==1)&&(((a6==1)&&(((((a22==1)&&!(a18==1))&&(a3==6))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a18==1)&&(a22==1)))))&&(input==4)))&&!(a4==1)))&&!(a15==1))&&(a12==9))&&!(a0==1)))&&!(a27==1))){ + a22 = 0; + a27 = 1; + a4 = 1; + a15 = 1; + a12 = 8; + a3 = 8; + a18 = 1; + a0 = 1; + return 21; + } else if((((a20==1)&&(((a3==8)&&((!(a4==1)&&((!(a27==1)&&((a0==1)&&(!(a6==1)&&(!(a5==1)&&(input==1)))))&&(a12==11)))&&(a15==1)))&&(a18==1)))&&(a22==1))){ + a22 = 0; + a27 = 1; + a4 = 1; + a18 = 0; + a3 = 7; + return -1; + } else if(((a27==1)&&((((((a12==12)&&((a3==4)&&(!(a0==1)&&((!(a5==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a20==1)))))&&!(a6==1))&&(a15==1))&&!(a22==1))&&(a4==1)))){ + a5 = 1; + a12 = 8; + a6 = 1; + a18 = 0; + a3 = 5; + a0 = 1; + return -1; + } else if(((a18==1)&&((a5==1)&&(((a3==6)&&((a12==12)&&((((!(a4==1)&&(((a22==1)&&(input==2))&&(a20==1)))&&!(a6==1))&&!(a15==1))&&(a27==1))))&&(a0==1))))){ + a27 = 0; + a6 = 1; + a22 = 0; + a3 = 7; + a18 = 0; + return 26; + } else if(((a12==8)&&(((a22==1)&&(!(a5==1)&&(((a3==4)&&(((a27==1)&&(((!(a15==1)&&(input==3))&&!(a6==1))&&!(a0==1)))&&(a20==1)))&&!(a4==1))))&&!(a18==1)))){ + a15 = 1; + a22 = 0; + a3 = 7; + a18 = 1; + a12 = 12; + a5 = 1; + a4 = 1; + a0 = 1; + return 26; + } else if((((((a20==1)&&(!(a5==1)&&((a15==1)&&((a3==5)&&((a0==1)&&((a12==12)&&((input==6)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))))))))&&!(a27==1))&&!(a6==1))&&(a4==1))){ + if((a3==6)){ + a6 = 1; + a27 = 1; + a18 = 1; + a3 = 8; + a22 = 1; + a0 = 0; + a15 = 0; + a12 = 10; + a4 = 0; + }else{ + a6 = 1; + a27 = 1; + a15 = 0; + a22 = 0; + a12 = 11; + a4 = 0; + a3 = 8; + a18 = 0; + } + return -1; + } else if((((a4==1)&&((a3==4)&&(!(a5==1)&&((!(a0==1)&&((a15==1)&&((!(a27==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==4)))&&(a6==1))))&&(a12==11)))))&&(a20==1))){ + a22 = 1; + a12 = 9; + a27 = 1; + a6 = 0; + a3 = 8; + a15 = 0; + a18 = 1; + return -1; + } else if((((a20==1)&&((a12==8)&&((!(a4==1)&&(!(a15==1)&&(!(a0==1)&&(!(a5==1)&&((a27==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==1)))))))&&(a3==7))))&&!(a6==1))){ + a3 = 8; + a12 = 12; + a6 = 1; + a18 = 1; + a22 = 1; + a0 = 1; + a5 = 1; + return 24; + } else if(((((a15==1)&&(!(a27==1)&&(((a20==1)&&((!(a0==1)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==6))&&(a5==1)))&&(a12==10)))&&(a3==7))))&&(a4==1))&&!(a6==1))){ + if((a22==1)){ + a18 = 0; + a5 = 0; + a22 = 0; + a3 = 5; + a6 = 1; + a12 = 11; + }else{ + a12 = 12; + a3 = 5; + a4 = 0; + a0 = 1; + a18 = 1; + a22 = 0; + } + return 26; + } else if(((!(a5==1)&&((a20==1)&&(!(a27==1)&&((a15==1)&&(((((a0==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1)))&&(a4==1))&&(a3==6))&&(a12==12))))))&&(a6==1))){ + a22 = 1; + a12 = 8; + a6 = 0; + a18 = 1; + a4 = 0; + a15 = 0; + return -1; + } else if((!(a27==1)&&(!(a4==1)&&(((a0==1)&&((a12==11)&&(!(a18==1)&&((!(a22==1)&&((((input==5)&&!(a5==1))&&(a3==8))&&(a20==1)))&&!(a15==1)))))&&!(a6==1))))){ + a15 = 1; + a27 = 1; + a22 = 1; + a3 = 6; + return 21; + } else if(((((((a3==4)&&(!(a15==1)&&(((a6==1)&&(((input==5)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&(a0==1)))&&(a5==1))))&&(a4==1))&&(a20==1))&&!(a27==1))&&(a12==12))){ + if((a27==1)){ + a12 = 11; + a22 = 1; + a18 = 1; + a4 = 0; + a27 = 1; + a0 = 0; + }else{ + a12 = 10; + a5 = 0; + a18 = 1; + a22 = 0; + } + return -1; + } else if(((a12==9)&&((a0==1)&&((a27==1)&&((a5==1)&&(((a20==1)&&(((a15==1)&&((input==4)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))||((a3==5)&&(!(a18==1)&&(a22==1))))))&&(a6==1)))&&(a4==1))))))){ + a0 = 0; + a15 = 0; + a18 = 0; + a4 = 0; + a22 = 1; + a5 = 0; + a6 = 0; + a3 = 6; + a12 = 8; + return 24; + } else if(((((!(a0==1)&&((a12==10)&&((((a4==1)&&(((((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==3)))&&(a6==1))&&(a15==1))))&&(a20==1))&&(a5==1))&&!(a27==1))){ + a0 = 1; + a12 = 11; + a15 = 0; + a18 = 1; + a22 = 0; + a3 = 4; + a27 = 1; + a5 = 0; + return 21; + } else if(((a5==1)&&((!(a18==1)&&((a22==1)&&((((a27==1)&&((((a4==1)&&((a3==5)&&(input==4)))&&(a20==1))&&!(a6==1)))&&!(a15==1))&&(a0==1))))&&(a12==10)))){ + a12 = 12; + a3 = 7; + a6 = 1; + a18 = 1; + a22 = 0; + return 24; + } else if(((a12==9)&&((a4==1)&&((!(a0==1)&&((((((a5==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==6)))&&(a20==1))&&(a6==1))&&(a27==1))&&(a15==1)))&&(a3==7))))){ + a15 = 0; + a3 = 4; + a6 = 0; + a12 = 12; + a18 = 0; + a0 = 1; + a22 = 1; + return 26; + } else if(((((a5==1)&&((a4==1)&&((!(a18==1)&&((((!(a22==1)&&((a3==4)&&(input==2)))&&(a0==1))&&(a20==1))&&(a12==10)))&&(a27==1))))&&(a15==1))&&!(a6==1))){ + a12 = 11; + a4 = 0; + return 26; + } else if((((a27==1)&&(!(a5==1)&&(((a12==9)&&(!(a6==1)&&((a20==1)&&((a4==1)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==1))))))&&(a15==1))))&&!(a0==1))){ + a6 = 1; + a22 = 1; + a5 = 1; + a3 = 4; + a18 = 1; + a0 = 1; + a12 = 8; + return -1; + } else if((((((((((((((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))||((a3==7)&&((a22==1)&&!(a18==1))))&&(input==3))&&(a27==1))&&(a6==1))&&!(a0==1))&&(a12==11))&&(a4==1))&&!(a15==1))&&(a20==1))&&(a5==1))){ + a18 = 0; + a3 = 6; + a0 = 1; + a22 = 0; + a12 = 10; + a6 = 0; + return 26; + } else if(((a12==10)&&(((!(a22==1)&&((!(a15==1)&&((a6==1)&&((a27==1)&&((((input==5)&&((a18==1)||!(a18==1)))&&(a3==7))&&(a5==1)))))&&(a20==1)))&&!(a4==1))&&!(a0==1)))){ + a15 = 1; + a18 = 0; + a0 = 1; + a5 = 0; + a12 = 11; + a4 = 1; + a22 = 1; + return 21; + } else if((((((a3==6)&&(((!(a4==1)&&(((((input==2)&&(a20==1))&&(a5==1))&&(a12==12))&&(a27==1)))&&!(a6==1))&&(a22==1)))&&(a18==1))&&!(a0==1))&&(a15==1))){ + a22 = 0; + a3 = 4; + a0 = 1; + return 21; + } else if((((a0==1)&&((a27==1)&&((((a12==10)&&((a20==1)&&(((a15==1)&&((a18==1)&&(!(a5==1)&&(input==4))))&&(a3==5))))&&!(a4==1))&&(a22==1))))&&(a6==1))){ + a5 = 1; + a12 = 8; + a3 = 4; + a4 = 1; + return -1; + } else if(((a12==8)&&((a4==1)&&((!(a27==1)&&((!(a15==1)&&((a20==1)&&((!(a6==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==3)))&&(a3==5))))&&(a0==1)))&&!(a5==1))))){ + a22 = 1; + a5 = 1; + a3 = 4; + a27 = 1; + a15 = 1; + a18 = 1; + a6 = 1; + return -1; + } else if(((((a4==1)&&((a20==1)&&((((((((input==4)&&(a6==1))&&!(a5==1))&&(a12==8))&&!(a15==1))&&(a3==4))&&!(a18==1))&&(a22==1))))&&(a27==1))&&!(a0==1))){ + a5 = 1; + a6 = 0; + a0 = 1; + a3 = 8; + a12 = 11; + return 21; + } else if((((a3==5)&&((a6==1)&&(((a22==1)&&(((a15==1)&&((((a0==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a5==1))&&(a12==8)))&&(a4==1)))&&(a20==1))))&&!(a27==1))){ + a0 = 0; + a12 = 10; + a27 = 1; + a18 = 0; + a3 = 6; + a4 = 0; + return 26; + } else if(((a20==1)&&((!(a0==1)&&((a12==10)&&((((a15==1)&&((a3==4)&&(!(a6==1)&&((((a18==1)||!(a18==1))&&(input==3))&&(a27==1)))))&&(a4==1))&&(a5==1))))&&(a22==1)))){ + a15 = 0; + a12 = 11; + a0 = 1; + a18 = 0; + a3 = 7; + a5 = 0; + a6 = 1; + return 24; + } else if((!(a5==1)&&(((a6==1)&&(!(a27==1)&&(((a20==1)&&(((a12==12)&&((input==1)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))))&&!(a4==1)))&&(a0==1))))&&!(a15==1)))){ + a18 = 1; + a22 = 0; + a3 = 6; + a12 = 11; + a6 = 0; + return 21; + } else if((!(a6==1)&&(((!(a0==1)&&((a12==9)&&((a3==4)&&((a27==1)&&(!(a5==1)&&((a15==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==4))))))))&&!(a4==1))&&(a20==1)))){ + a5 = 1; + a3 = 6; + a0 = 1; + a22 = 0; + a6 = 1; + a18 = 1; + a15 = 0; + return 21; + } else if(((a5==1)&&(!(a15==1)&&((((!(a0==1)&&(((((a12==12)&&((a20==1)&&(input==3)))&&(a3==6))&&!(a4==1))&&!(a18==1)))&&(a27==1))&&!(a6==1))&&(a22==1))))){ + a22 = 0; + a6 = 1; + a3 = 8; + a4 = 1; + a12 = 8; + a0 = 1; + a15 = 1; + return -1; + } else if(((a12==8)&&((((a20==1)&&(((((!(a27==1)&&(((a18==1)&&(input==2))&&!(a6==1)))&&(a3==5))&&!(a15==1))&&!(a0==1))&&!(a22==1)))&&(a4==1))&&(a5==1)))){ + if((a4==1)){ + a3 = 8; + a27 = 1; + a0 = 1; + a18 = 0; + a15 = 1; + a22 = 1; + a6 = 1; + }else{ + a15 = 1; + a0 = 1; + a3 = 7; + a6 = 1; + a4 = 0; + a18 = 0; + a27 = 1; + } + return 26; + } else if(((a0==1)&&((((a20==1)&&((((a22==1)&&(!(a15==1)&&((a12==8)&&(((input==6)&&!(a4==1))&&(a18==1)))))&&(a27==1))&&(a6==1)))&&(a3==5))&&(a5==1)))){ + a4 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if(((!(a5==1)&&(((((((a12==8)&&((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==3))&&(a20==1)))&&!(a27==1))&&(a15==1))&&!(a0==1))&&!(a4==1))&&!(a6==1)))&&(a3==4))){ + a5 = 1; + a4 = 1; + a27 = 1; + a22 = 1; + a3 = 6; + a0 = 1; + a18 = 0; + return -1; + } else if(((((((a20==1)&&((!(a5==1)&&(!(a4==1)&&(!(a0==1)&&(((input==3)&&(a3==6))&&!(a27==1)))))&&(a6==1)))&&(a18==1))&&!(a15==1))&&(a22==1))&&(a12==8))){ + a15 = 1; + a4 = 1; + a5 = 1; + a0 = 1; + a3 = 4; + a18 = 0; + a27 = 1; + return 24; + } else if((((a6==1)&&((a4==1)&&(!(a15==1)&&((a12==10)&&(((a0==1)&&((a20==1)&&(((((a18==1)||!(a18==1))&&(input==5))&&(a22==1))&&(a27==1))))&&(a3==8))))))&&(a5==1))){ + if((a3==5)){ + a3 = 6; + a0 = 0; + a12 = 11; + a4 = 0; + a18 = 1; + }else{ + a5 = 0; + a12 = 12; + a18 = 1; + a15 = 1; + } + return 21; + } else if(((((a15==1)&&((((a20==1)&&((((a18==1)&&((a5==1)&&((input==5)&&!(a0==1))))&&(a27==1))&&!(a22==1)))&&(a3==4))&&(a6==1)))&&(a12==10))&&(a4==1))){ + a12 = 11; + a0 = 1; + a22 = 1; + a18 = 0; + a5 = 0; + return 21; + } else if((((a15==1)&&(!(a5==1)&&(((a3==7)&&((a27==1)&&((!(a6==1)&&((a12==8)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==2))))&&!(a4==1))))&&(a20==1))))&&(a0==1))){ + a22 = 1; + a18 = 1; + a3 = 4; + a5 = 1; + a4 = 1; + a6 = 1; + return -1; + } else if((((a3==6)&&((a4==1)&&((a20==1)&&((a22==1)&&((a5==1)&&(((a27==1)&&(((!(a0==1)&&(input==1))&&(a12==10))&&(a6==1)))&&!(a15==1)))))))&&!(a18==1))){ + a22 = 0; + a6 = 0; + a0 = 1; + a12 = 12; + return 26; + } else if((!(a4==1)&&((!(a5==1)&&((!(a27==1)&&(((((a15==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a22==1)))&&(a20==1))&&(a0==1))&&(a12==8)))&&(a3==7)))&&!(a6==1)))){ + a27 = 1; + a18 = 1; + a6 = 1; + a4 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if(((!(a18==1)&&((a27==1)&&(((((a6==1)&&((a12==9)&&(((a0==1)&&((a22==1)&&(input==4)))&&(a3==5))))&&!(a5==1))&&!(a4==1))&&(a20==1))))&&!(a15==1))){ + a12 = 11; + a4 = 1; + a3 = 8; + a6 = 0; + a5 = 1; + return 21; + } else if((!(a0==1)&&((((((((((a20==1)&&((input==4)&&!(a6==1)))&&(a5==1))&&(a27==1))&&(a18==1))&&(a3==8))&&!(a15==1))&&!(a4==1))&&(a12==10))&&!(a22==1)))){ + a3 = 6; + a12 = 12; + a22 = 1; + a18 = 0; + a15 = 1; + a5 = 0; + a0 = 1; + return 21; + } else if(((a22==1)&&((((!(a15==1)&&((a20==1)&&((a0==1)&&((((a18==1)&&((input==5)&&(a12==9)))&&!(a5==1))&&!(a6==1)))))&&(a3==7))&&!(a4==1))&&!(a27==1)))){ + a27 = 1; + a12 = 10; + a3 = 6; + a15 = 1; + a4 = 1; + a18 = 0; + return -1; + } else if((((a0==1)&&(((a22==1)&&(!(a4==1)&&((a20==1)&&((((a6==1)&&(!(a18==1)&&((input==5)&&!(a5==1))))&&(a12==12))&&(a15==1)))))&&!(a27==1)))&&(a3==5))){ + a22 = 0; + a27 = 1; + a18 = 1; + a4 = 1; + a3 = 6; + return 21; + } else if(((((((a0==1)&&((input==1)&&((((a3==8)&&(!(a4==1)&&((a15==1)&&(!(a18==1)&&!(a22==1)))))&&!(a6==1))||(((a3==4)&&((((a22==1)&&(a18==1))&&!(a15==1))&&(a4==1)))&&(a6==1)))))&&(a20==1))&&(a12==10))&&!(a27==1))&&(a5==1))){ + a27 = 1; + a18 = 1; + a12 = 11; + a22 = 1; + a6 = 1; + a3 = 6; + a4 = 1; + a15 = 0; + a5 = 0; + return 26; + } else if(((a15==1)&&((a12==12)&&((!(a6==1)&&((a0==1)&&((a5==1)&&(!(a27==1)&&(((input==6)&&((((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a18==1)&&!(a22==1))))||((a3==5)&&((a18==1)&&(a22==1)))))&&(a4==1))))))&&(a20==1))))){ + a18 = 1; + a27 = 1; + a22 = 1; + a3 = 7; + a6 = 1; + return -1; + } else if(((a12==12)&&(!(a22==1)&&((((((!(a15==1)&&(((a20==1)&&((input==6)&&((a18==1)||!(a18==1))))&&!(a5==1)))&&(a27==1))&&(a6==1))&&!(a4==1))&&(a3==6))&&!(a0==1))))){ + if((a12==11)){ + a22 = 1; + a3 = 4; + a12 = 8; + a15 = 1; + a4 = 1; + a5 = 1; + a6 = 0; + a0 = 1; + a18 = 0; + }else{ + a0 = 1; + a3 = 7; + a12 = 8; + a18 = 1; + a15 = 1; + a4 = 1; + a5 = 1; + } + return -1; + } else if((((((((((a12==10)&&(!(a5==1)&&((input==2)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))&&!(a15==1))&&(a20==1))&&(a0==1))&&!(a27==1))&&(a3==5))&&(a4==1))&&(a6==1))){ + a15 = 1; + a18 = 1; + a22 = 1; + a5 = 1; + return -1; + } else if((((a12==10)&&((a6==1)&&((((a4==1)&&(!(a0==1)&&(((!(a27==1)&&((input==2)&&((a18==1)||!(a18==1))))&&!(a22==1))&&(a15==1))))&&(a20==1))&&!(a5==1))))&&(a3==5))){ + a5 = 1; + a0 = 1; + a6 = 0; + a12 = 8; + a18 = 1; + a3 = 7; + a27 = 1; + return -1; + } else if(((a15==1)&&((a20==1)&&(((((a5==1)&&((!(a4==1)&&((input==2)&&(((a3==7)&&((a22==1)&&!(a18==1)))||(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1)))))))&&(a0==1)))&&!(a6==1))&&(a12==8))&&(a27==1))))){ + a4 = 1; + a3 = 8; + a18 = 1; + a22 = 1; + a15 = 0; + return 26; + } else if((((a20==1)&&(!(a27==1)&&((((((((a4==1)&&(((a18==1)&&(a22==1))&&!(a15==1)))&&(a3==4))&&(a6==1))||((((a3==8)&&(((a15==1)&&((a18==1)&&!(a22==1)))&&!(a4==1)))&&!(a6==1))||(((!(a4==1)&&((!(a18==1)&&!(a22==1))&&(a15==1)))&&(a3==8))&&!(a6==1))))&&(input==2))&&!(a5==1))&&!(a0==1))))&&(a12==8))){ + a15 = 1; + a22 = 0; + a3 = 4; + a6 = 0; + a0 = 1; + a18 = 0; + a4 = 1; + return 26; + } else if((((a20==1)&&((a27==1)&&(((a5==1)&&((a15==1)&&(((((a12==9)&&((input==1)&&(a0==1)))&&(a3==6))&&(a6==1))&&!(a22==1))))&&!(a18==1))))&&(a4==1))){ + a15 = 0; + a12 = 12; + a27 = 0; + a5 = 0; + a3 = 4; + return 21; + } else if((!(a15==1)&&((((a3==7)&&((((((a6==1)&&((a18==1)&&((input==6)&&!(a0==1))))&&(a12==9))&&(a27==1))&&(a5==1))&&!(a4==1)))&&(a20==1))&&!(a22==1)))){ + a15 = 1; + a3 = 5; + a6 = 0; + a22 = 1; + a5 = 0; + a0 = 1; + a4 = 1; + a27 = 0; + return 26; + } else if(((a27==1)&&((((((((a20==1)&&(!(a6==1)&&(!(a5==1)&&((input==1)&&(a12==9)))))&&(a3==6))&&(a15==1))&&(a18==1))&&!(a4==1))&&!(a22==1))&&(a0==1)))){ + a22 = 1; + a4 = 1; + a6 = 1; + a3 = 7; + a15 = 0; + a27 = 0; + a18 = 0; + a12 = 8; + return 21; + } else if((((a27==1)&&((a3==8)&&(((a15==1)&&((a5==1)&&(((((input==4)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&!(a0==1))&&(a20==1))&&(a12==10))))&&!(a4==1))))&&!(a6==1))){ + a12 = 8; + a18 = 1; + a4 = 1; + a22 = 1; + a0 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if(((a6==1)&&((a12==10)&&((((!(a18==1)&&(((a20==1)&&((((a0==1)&&(input==1))&&(a22==1))&&!(a27==1)))&&(a3==4)))&&!(a4==1))&&!(a15==1))&&(a5==1))))){ + if((a4==1)){ + a0 = 0; + a15 = 1; + a27 = 1; + a3 = 5; + a12 = 9; + }else{ + a22 = 0; + a3 = 7; + a6 = 0; + a27 = 1; + a4 = 1; + a18 = 1; + } + return 21; + } else if(((((a5==1)&&((((a27==1)&&(((!(a6==1)&&((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1))))||(((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1)))&&(a6==1)))&&(input==5)))&&(a20==1))&&(a0==1)))&&(a12==9))&&(a15==1))){ + a4 = 0; + a3 = 4; + a18 = 0; + a12 = 12; + a22 = 0; + a15 = 0; + a6 = 1; + return 21; + } else if(((a12==10)&&((a4==1)&&((a20==1)&&((a27==1)&&(((a5==1)&&((a15==1)&&((a3==5)&&(((input==3)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&!(a0==1)))))&&!(a6==1))))))){ + a0 = 1; + a22 = 1; + a18 = 0; + a4 = 0; + return 21; + } else if((!(a6==1)&&((a20==1)&&((!(a27==1)&&((a0==1)&&(((a15==1)&&(!(a5==1)&&((((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==2))))&&!(a4==1))))&&(a12==8))))){ + a27 = 1; + a18 = 0; + a3 = 6; + a12 = 11; + a0 = 0; + a6 = 1; + a22 = 0; + return 21; + } else if(((a0==1)&&(((((!(a15==1)&&((a20==1)&&((!(a27==1)&&((a12==11)&&((input==2)&&((a18==1)||!(a18==1)))))&&(a3==4))))&&!(a4==1))&&!(a6==1))&&!(a22==1))&&!(a5==1)))){ + a18 = 1; + a27 = 1; + a3 = 6; + a4 = 1; + return -1; + } else if(((((!(a0==1)&&(((a3==6)&&((((a22==1)&&(((input==2)&&!(a15==1))&&(a4==1)))&&(a20==1))&&(a18==1)))&&(a12==10)))&&(a6==1))&&(a27==1))&&!(a5==1))){ + a12 = 8; + a0 = 1; + a3 = 4; + a15 = 1; + a5 = 1; + return -1; + } else if((!(a5==1)&&(((a20==1)&&((a4==1)&&((!(a0==1)&&((((input==2)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6))))&&(a15==1))&&!(a6==1)))&&(a12==9))))&&(a27==1)))){ + if((a22==1)){ + a4 = 0; + a18 = 0; + a3 = 8; + a6 = 1; + a22 = 1; + }else{ + a3 = 5; + a12 = 10; + a6 = 1; + a18 = 1; + a15 = 0; + a22 = 0; + } + return -1; + } else if(((a0==1)&&(((((a27==1)&&(((!(a15==1)&&((input==5)&&((((a22==1)&&!(a18==1))&&(a3==8))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1)))))))&&(a12==9))&&(a4==1)))&&(a6==1))&&(a20==1))&&!(a5==1)))){ + a3 = 5; + a18 = 1; + a6 = 0; + a22 = 1; + a27 = 0; + a12 = 8; + a4 = 0; + return 26; + } else if((((a20==1)&&((!(a18==1)&&(((((a3==6)&&(((a4==1)&&((input==1)&&(a22==1)))&&(a27==1)))&&(a15==1))&&(a12==11))&&(a6==1)))&&!(a0==1)))&&!(a5==1))){ + a0 = 1; + a15 = 0; + a6 = 0; + a5 = 1; + a4 = 0; + a18 = 1; + a3 = 8; + return 21; + } else if(((a20==1)&&(((!(a4==1)&&(((a6==1)&&((((((a3==7)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6))))&&(input==1))&&(a27==1))&&!(a15==1)))&&!(a5==1)))&&!(a0==1))&&(a12==10)))){ + a0 = 1; + a5 = 1; + a18 = 0; + a3 = 4; + a22 = 0; + a6 = 0; + return -1; + } else if((((a15==1)&&((a20==1)&&((((a5==1)&&(((a12==11)&&(((a27==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&!(a6==1)))&&(a4==1)))&&(a0==1))&&!(a22==1))))&&(a3==8))){ + a27 = 0; + a15 = 0; + a12 = 10; + a3 = 4; + a22 = 1; + a5 = 0; + a18 = 0; + return 26; + } else if((((a6==1)&&(((a15==1)&&((!(a27==1)&&((((input==2)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7))))&&(a5==1))&&(a12==8)))&&(a20==1)))&&!(a0==1)))&&!(a4==1))){ + a0 = 1; + a27 = 1; + a22 = 1; + a4 = 1; + a15 = 0; + a18 = 0; + a12 = 12; + a3 = 4; + return 24; + } else if(((a20==1)&&(!(a15==1)&&((a12==11)&&((a0==1)&&((((a4==1)&&(((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==2))&&!(a6==1))&&!(a5==1)))&&(a3==4))&&!(a27==1))))))){ + a22 = 0; + a4 = 0; + a27 = 1; + a3 = 6; + a18 = 0; + a5 = 1; + a12 = 10; + return -1; + } else if((((!(a4==1)&&((!(a0==1)&&((a27==1)&&((((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==4))&&(a3==6))&&(a6==1))&&(a15==1))))&&(a12==9)))&&!(a5==1))&&(a20==1))){ + a18 = 0; + a22 = 0; + a5 = 1; + a12 = 10; + a3 = 4; + a0 = 1; + a4 = 1; + a6 = 0; + return 26; + } else if((!(a22==1)&&((a0==1)&&(((a3==4)&&((((((a12==9)&&(!(a27==1)&&((input==2)&&(a15==1))))&&(a5==1))&&(a20==1))&&(a18==1))&&(a4==1)))&&(a6==1))))){ + if((a12==11)){ + a12 = 12; + a18 = 0; + a0 = 0; + a3 = 5; + a22 = 1; + a27 = 1; + }else{ + a15 = 0; + a6 = 0; + a0 = 0; + a12 = 11; + a3 = 8; + a4 = 0; + a27 = 1; + } + return 21; + } else if(((a22==1)&&(((((((((!(a15==1)&&((a6==1)&&(input==5)))&&(a20==1))&&(a12==9))&&(a18==1))&&(a0==1))&&(a3==5))&&!(a4==1))&&(a5==1))&&!(a27==1)))){ + a4 = 1; + a22 = 0; + a18 = 0; + a12 = 12; + a5 = 0; + a27 = 1; + a15 = 1; + a3 = 8; + return 21; + } else if((((a18==1)&&((((a0==1)&&((!(a6==1)&&((a12==11)&&((a5==1)&&((!(a22==1)&&(input==6))&&!(a15==1)))))&&!(a4==1)))&&(a20==1))&&(a27==1)))&&(a3==8))){ + a18 = 0; + a27 = 0; + a3 = 7; + a4 = 1; + a6 = 1; + a22 = 1; + return 26; + } else if(((a6==1)&&((a20==1)&&(((a12==10)&&(((((((a15==1)&&(!(a4==1)&&(input==2)))&&(a0==1))&&!(a27==1))&&(a3==5))&&!(a22==1))&&!(a18==1)))&&(a5==1))))){ + if((a5==1)){ + a0 = 0; + a12 = 8; + a22 = 1; + a18 = 1; + a27 = 1; + }else{ + a27 = 1; + a12 = 11; + } + return 26; + } else if(((((((!(a27==1)&&((a12==8)&&((a3==4)&&(!(a6==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5))))))&&(a20==1))&&(a4==1))&&!(a15==1))&&(a5==1))&&(a0==1))){ + a3 = 8; + a12 = 12; + a15 = 1; + a27 = 1; + a22 = 1; + a18 = 1; + return 24; + } else if(((a20==1)&&(((a5==1)&&(!(a27==1)&&(((!(a0==1)&&((a3==6)&&(!(a6==1)&&((input==1)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))))&&!(a4==1))&&(a12==11))))&&!(a15==1)))){ + if((a0==1)){ + a3 = 7; + a15 = 1; + a22 = 1; + a4 = 1; + a18 = 1; + a6 = 1; + a5 = 0; + a27 = 1; + }else{ + a3 = 8; + a0 = 1; + a27 = 1; + a22 = 0; + a6 = 1; + a18 = 1; + } + return 26; + } else if(((a4==1)&&((a20==1)&&(((((a5==1)&&((a0==1)&&((((input==2)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a27==1))&&(a3==6))))&&(a12==10))&&!(a6==1))&&(a15==1))))){ + a22 = 0; + a3 = 5; + a4 = 0; + a18 = 0; + a12 = 11; + a0 = 0; + a15 = 0; + a27 = 1; + return 21; + } else if(((a12==11)&&((!(a0==1)&&(((((((input==6)&&(((a3==8)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a22==1)&&!(a18==1))))))&&(a20==1))&&!(a4==1))&&!(a5==1))&&(a6==1))&&!(a15==1)))&&!(a27==1)))){ + if((a27==1)){ + a6 = 0; + a12 = 8; + a22 = 0; + a0 = 1; + a15 = 1; + a27 = 1; + a3 = 7; + a5 = 1; + a4 = 1; + a18 = 0; + }else{ + a3 = 8; + a6 = 0; + a27 = 1; + a18 = 0; + a4 = 1; + a12 = 9; + a22 = 0; + } + return -1; + } else if(((!(a27==1)&&((a12==8)&&(!(a6==1)&&(!(a5==1)&&(((a3==7)&&(!(a18==1)&&((a20==1)&&((a15==1)&&((input==3)&&!(a22==1))))))&&!(a4==1))))))&&!(a0==1))){ + if((a6==1)){ + a27 = 1; + a22 = 1; + a15 = 0; + a0 = 1; + a6 = 1; + a3 = 6; + }else{ + a27 = 1; + a3 = 6; + a5 = 1; + } + return -1; + } else if((((!(a6==1)&&((!(a22==1)&&(((a20==1)&&(((a3==6)&&((a4==1)&&(!(a27==1)&&(input==3))))&&(a12==10)))&&(a0==1)))&&!(a15==1)))&&(a18==1))&&(a5==1))){ + a27 = 1; + a18 = 0; + a4 = 0; + a22 = 1; + a3 = 4; + a12 = 11; + return 21; + } else if((!(a4==1)&&(((a6==1)&&(!(a0==1)&&((((a20==1)&&(((a12==10)&&(((input==6)&&!(a5==1))&&(a27==1)))&&(a3==6)))&&(a22==1))&&!(a15==1))))&&!(a18==1)))){ + a18 = 1; + a27 = 0; + a3 = 7; + a22 = 0; + a12 = 11; + a0 = 1; + return 21; + } else if(((a3==4)&&((((((a20==1)&&((!(a4==1)&&(!(a6==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==2))))&&!(a27==1)))&&(a12==8))&&(a15==1))&&!(a5==1))&&!(a0==1)))){ + if((a15==1)){ + a18 = 0; + a15 = 0; + a3 = 7; + a22 = 0; + a6 = 1; + a5 = 1; + }else{ + a6 = 1; + a12 = 9; + a18 = 0; + a22 = 1; + } + return 24; + } else if(((a27==1)&&(((!(a0==1)&&((a20==1)&&(((!(a5==1)&&((((input==4)&&((a18==1)||!(a18==1)))&&!(a15==1))&&(a3==4)))&&(a6==1))&&!(a4==1))))&&!(a22==1))&&(a12==8)))){ + a0 = 1; + a3 = 5; + a12 = 10; + a22 = 1; + a18 = 1; + a4 = 1; + return -1; + } else if(((a3==5)&&((a18==1)&&((a22==1)&&((a4==1)&&((((a0==1)&&((a6==1)&&(((a12==12)&&((input==3)&&!(a27==1)))&&(a15==1))))&&(a20==1))&&(a5==1))))))){ + a6 = 0; + a12 = 8; + return -1; + } else if((!(a5==1)&&(((((a4==1)&&(((a3==6)&&((a0==1)&&(((input==1)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a15==1))))&&(a12==10)))&&(a20==1))&&!(a27==1))&&(a6==1)))){ + if((a6==1)){ + a15 = 0; + a6 = 0; + a3 = 7; + a4 = 0; + a5 = 1; + a18 = 0; + a27 = 1; + a12 = 9; + a22 = 0; + a0 = 0; + }else{ + a22 = 1; + a12 = 11; + a6 = 0; + a18 = 0; + a4 = 0; + a15 = 0; + } + return 21; + } else if(((!(a15==1)&&((!(a27==1)&&(((a12==12)&&((!(a5==1)&&(!(a4==1)&&((input==2)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))))&&(a3==4)))&&(a0==1)))&&(a6==1)))&&(a20==1))){ + a18 = 0; + a22 = 1; + a12 = 10; + a15 = 1; + a3 = 8; + a6 = 0; + return 26; + } else if((!(a4==1)&&(((a15==1)&&((a3==8)&&((!(a27==1)&&((a5==1)&&((!(a22==1)&&((((a18==1)||!(a18==1))&&(input==6))&&!(a6==1)))&&(a12==9))))&&(a20==1))))&&(a0==1)))){ + if((a22==1)){ + a18 = 1; + a3 = 6; + a4 = 1; + a22 = 1; + a0 = 0; + a27 = 1; + a12 = 10; + a6 = 1; + }else{ + a27 = 1; + a12 = 10; + a18 = 0; + a15 = 0; + } + return 21; + } else if((((a4==1)&&((a15==1)&&(((!(a5==1)&&((a12==9)&&(((((a3==5)&&((a18==1)&&(a22==1)))||(((a3==4)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==4))))&&(input==3))&&(a20==1))))&&!(a6==1))&&(a27==1))))&&(a0==1))){ + a18 = 0; + a27 = 0; + a22 = 0; + a6 = 1; + a3 = 6; + a15 = 0; + a12 = 8; + a5 = 1; + a4 = 0; + return 26; + } else if(((a5==1)&&(!(a15==1)&&(((((a27==1)&&(((a6==1)&&((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==1))&&(a3==7)))&&(a20==1)))&&!(a4==1))&&(a12==8))&&!(a0==1))))){ + a22 = 1; + a4 = 1; + a3 = 4; + a18 = 1; + a15 = 1; + a0 = 1; + return -1; + } else if(((a27==1)&&(((a5==1)&&(((((a4==1)&&((input==2)&&((((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1)))))&&(a20==1))&&(a15==1))&&!(a0==1)))&&(a12==8)))){ + a22 = 1; + a0 = 1; + a18 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if(((a12==11)&&((a6==1)&&(((a20==1)&&(!(a15==1)&&((a3==5)&&(!(a0==1)&&((a5==1)&&(!(a22==1)&&((a27==1)&&(((a18==1)||!(a18==1))&&(input==1)))))))))&&(a4==1))))){ + a3 = 4; + a12 = 8; + a18 = 0; + a5 = 0; + a4 = 0; + a27 = 0; + a22 = 1; + a0 = 1; + a15 = 1; + return -1; + } else if(((a12==10)&&((a20==1)&&(((a0==1)&&(!(a27==1)&&((a5==1)&&((a4==1)&&((input==3)&&((((a3==4)&&((a22==1)&&!(a18==1)))&&!(a6==1))||(((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1)))))))))&&(a15==1))))){ + a6 = 0; + a3 = 6; + a27 = 1; + a22 = 1; + a5 = 0; + a18 = 0; + a12 = 11; + a4 = 0; + return -1; + } else if((!(a18==1)&&(((!(a0==1)&&((!(a5==1)&&((a12==11)&&((a4==1)&&((((input==4)&&!(a6==1))&&(a22==1))&&(a15==1)))))&&(a20==1)))&&(a3==8))&&!(a27==1)))){ + a12 = 8; + a4 = 0; + a0 = 1; + a27 = 1; + a15 = 0; + return 26; + } else if((((((a5==1)&&((a12==11)&&(!(a6==1)&&((!(a27==1)&&((a3==7)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==3))))&&!(a15==1)))))&&(a20==1))&&(a4==1))&&!(a0==1))){ + a3 = 5; + a18 = 1; + a27 = 1; + a22 = 1; + a12 = 8; + a15 = 1; + a0 = 1; + return 26; + } else if((((a27==1)&&((a12==10)&&(!(a5==1)&&((a6==1)&&((((((((a22==1)&&(a18==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&(a18==1)))||((a3==7)&&(!(a18==1)&&!(a22==1)))))&&(input==4))&&(a20==1))&&!(a0==1))&&(a15==1))))))&&!(a4==1))){ + a5 = 1; + a0 = 1; + a22 = 1; + a4 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + return -1; + } else if((((!(a5==1)&&((a0==1)&&((((a12==11)&&((a20==1)&&((((((a18==1)&&!(a22==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==1))))&&!(a4==1))&&(a27==1))))&&!(a6==1))&&!(a15==1))){ + a27 = 0; + a6 = 1; + a18 = 0; + a22 = 0; + a3 = 7; + return 26; + } else if(((((a3==6)&&((!(a6==1)&&(((((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==6))&&(a20==1))&&(a12==8))&&(a27==1))&&(a15==1)))&&!(a5==1)))&&!(a0==1))&&(a4==1))){ + a27 = 0; + a12 = 9; + a22 = 1; + a18 = 0; + a0 = 1; + a15 = 0; + a3 = 8; + return 24; + } else if((((a0==1)&&(((((((((((a22==1)&&(a18==1))&&!(a15==1))&&(a4==1))&&(a3==4))&&(a6==1))||((((a3==8)&&((((a18==1)&&!(a22==1))&&(a15==1))&&!(a4==1)))&&!(a6==1))||(!(a6==1)&&((a3==8)&&(((!(a22==1)&&!(a18==1))&&(a15==1))&&!(a4==1))))))&&(input==6))&&(a12==11))&&!(a27==1))&&(a20==1)))&&(a5==1))){ + a22 = 1; + a4 = 1; + a3 = 4; + a15 = 1; + a12 = 8; + a6 = 1; + a18 = 1; + a27 = 1; + return -1; + } else if((((a0==1)&&((!(a6==1)&&(!(a4==1)&&((((a20==1)&&(!(a5==1)&&((input==1)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&!(a27==1))&&!(a15==1))))&&(a12==8)))&&(a3==7))){ + a15 = 1; + a27 = 1; + a22 = 1; + a3 = 4; + a5 = 1; + a4 = 1; + a6 = 1; + a18 = 1; + return -1; + } else if((((a0==1)&&(((a27==1)&&((a12==10)&&(((a4==1)&&(((((((a18==1)&&!(a22==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5)))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==6))&&(a15==1)))&&(a6==1))))&&(a20==1)))&&(a5==1))){ + a4 = 0; + a6 = 0; + a12 = 9; + a27 = 0; + a3 = 7; + a18 = 1; + a22 = 0; + a15 = 0; + return 26; + } else if(((a5==1)&&(((!(a0==1)&&((((a27==1)&&(!(a15==1)&&(((a6==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a3==4))))&&(a22==1))&&(a12==10)))&&(a4==1))&&(a20==1)))){ + a0 = 1; + a27 = 0; + a18 = 1; + a5 = 0; + a15 = 1; + a3 = 6; + return -1; + } else if(((!(a6==1)&&(((a5==1)&&((!(a27==1)&&(((((((a18==1)||!(a18==1))&&(input==5))&&(a22==1))&&(a15==1))&&(a12==12))&&!(a4==1)))&&(a20==1)))&&(a0==1)))&&(a3==5))){ + if((a3==7)){ + a5 = 0; + a12 = 10; + a4 = 1; + a27 = 1; + a3 = 7; + a0 = 0; + a18 = 0; + a6 = 1; + }else{ + a12 = 9; + a5 = 0; + a18 = 0; + a27 = 1; + a6 = 1; + a3 = 6; + a0 = 0; + } + return -1; + } else if((!(a22==1)&&((a6==1)&&(!(a27==1)&&(!(a15==1)&&(!(a4==1)&&((a20==1)&&(!(a5==1)&&(((((input==5)&&((a18==1)||!(a18==1)))&&(a12==11))&&(a3==6))&&(a0==1)))))))))){ + a22 = 1; + a18 = 0; + a15 = 1; + a4 = 1; + a27 = 1; + a3 = 4; + return -1; + } else if((((((a20==1)&&((a15==1)&&((a27==1)&&((a22==1)&&(!(a0==1)&&((((a5==1)&&(input==5))&&(a12==11))&&(a3==8)))))))&&(a6==1))&&!(a4==1))&&(a18==1))){ + a0 = 1; + a15 = 0; + a3 = 4; + a4 = 1; + a12 = 10; + return -1; + } else if((((((((((a6==1)&&((input==5)&&((((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==7)))))&&(a4==1))&&(a20==1))&&!(a5==1))&&(a27==1))&&!(a15==1))&&(a12==10))&&(a0==1))){ + if((a3==7)){ + a18 = 1; + a3 = 4; + a15 = 1; + a0 = 0; + a4 = 0; + a22 = 1; + }else{ + a22 = 1; + a18 = 0; + a3 = 4; + } + return -1; + } else if(((a20==1)&&((a18==1)&&((a22==1)&&(!(a5==1)&&(((a3==5)&&((!(a15==1)&&(((a6==1)&&((input==4)&&(a4==1)))&&!(a0==1)))&&!(a27==1)))&&(a12==9))))))){ + a6 = 0; + a4 = 0; + a22 = 0; + a15 = 1; + a3 = 6; + a12 = 11; + a18 = 0; + return -1; + } else if((!(a0==1)&&((!(a4==1)&&((a12==9)&&(((a6==1)&&((!(a27==1)&&((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==5))&&(a5==1)))&&(a3==7)))&&(a20==1))))&&(a15==1)))){ + if((a22==1)){ + a18 = 0; + a6 = 0; + a12 = 11; + a5 = 0; + a3 = 4; + a4 = 1; + a22 = 1; + }else{ + a12 = 8; + a0 = 1; + a27 = 1; + a18 = 1; + a22 = 1; + } + return 26; + } else if((((a5==1)&&(!(a27==1)&&((a15==1)&&((a12==10)&&((a20==1)&&((!(a0==1)&&((input==1)&&(((a3==8)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8))))))&&(a4==1)))))))&&(a6==1))){ + if((a12==10)){ + a3 = 5; + a27 = 1; + a15 = 0; + a22 = 0; + a5 = 0; + a12 = 12; + a4 = 0; + a18 = 1; + a0 = 1; + }else{ + a0 = 1; + a22 = 0; + a12 = 8; + a3 = 8; + a27 = 1; + a18 = 0; + } + return -1; + } else if((((a12==8)&&((((a27==1)&&(((a3==8)&&(!(a5==1)&&((a15==1)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==1)))))&&!(a6==1)))&&!(a0==1))&&(a20==1)))&&(a4==1))){ + a6 = 1; + a12 = 10; + a3 = 6; + a18 = 0; + a15 = 0; + a27 = 0; + a0 = 1; + a22 = 1; + return 26; + } else if((((((((a0==1)&&((a20==1)&&(((a5==1)&&(!(a4==1)&&(((a18==1)||!(a18==1))&&(input==3))))&&(a22==1))))&&!(a6==1))&&(a12==11))&&(a27==1))&&(a15==1))&&(a3==7))){ + a6 = 1; + a22 = 0; + a3 = 4; + a18 = 0; + a12 = 10; + return -1; + } else if(((((a3==5)&&((!(a27==1)&&((a20==1)&&(((a12==8)&&((((a5==1)&&(input==6))&&!(a0==1))&&!(a15==1)))&&(a22==1))))&&!(a18==1)))&&!(a6==1))&&(a4==1))){ + a3 = 7; + a27 = 1; + a22 = 0; + a18 = 1; + a15 = 1; + a0 = 1; + return -1; + } else if(((!(a5==1)&&(!(a6==1)&&((a0==1)&&((a20==1)&&((a27==1)&&((!(a15==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6))&&(a3==7)))&&!(a4==1)))))))&&(a12==11))){ + a15 = 1; + a18 = 1; + a5 = 1; + a12 = 10; + a22 = 1; + return 21; + } else if(((!(a22==1)&&(((((a0==1)&&((a5==1)&&(((((a12==11)&&(input==5))&&!(a4==1))&&(a20==1))&&(a6==1))))&&!(a27==1))&&(a18==1))&&(a3==8)))&&(a15==1))){ + a6 = 0; + a27 = 1; + return -1; + } else if((((((((a22==1)&&(((a20==1)&&((a27==1)&&(((a18==1)&&(input==3))&&(a3==7))))&&(a15==1)))&&(a6==1))&&(a12==9))&&(a5==1))&&!(a0==1))&&!(a4==1))){ + a0 = 1; + a12 = 8; + a3 = 6; + a5 = 0; + a22 = 0; + a6 = 0; + return 26; + } else if(((((a22==1)&&((a15==1)&&(((((a3==8)&&(((a20==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a27==1)))&&(a12==12))&&!(a4==1))&&(a0==1))))&&!(a5==1))&&(a6==1))){ + a5 = 1; + a22 = 0; + a3 = 6; + a15 = 0; + a4 = 1; + a6 = 0; + a18 = 0; + return 26; + } else if(((a12==12)&&(((((a0==1)&&(((a15==1)&&(!(a27==1)&&(((!(a22==1)&&(input==2))&&(a18==1))&&(a3==6))))&&(a5==1)))&&!(a4==1))&&!(a6==1))&&(a20==1)))){ + a4 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + a27 = 1; + a6 = 1; + return -1; + } else if(((a27==1)&&(((!(a5==1)&&((a20==1)&&((!(a6==1)&&((a15==1)&&((a3==8)&&((((a18==1)||!(a18==1))&&(input==3))&&(a22==1)))))&&(a4==1))))&&!(a0==1))&&(a12==10)))){ + a12 = 8; + a5 = 1; + a18 = 1; + a0 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if((((a27==1)&&((a20==1)&&(!(a15==1)&&((a5==1)&&(((a12==8)&&(((input==2)&&(((a3==7)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))))&&(a0==1)))&&(a6==1))))))&&(a4==1))){ + a18 = 1; + a22 = 1; + a3 = 8; + a5 = 0; + a6 = 0; + a15 = 1; + return 26; + } else if((!(a15==1)&&(((!(a0==1)&&((!(a4==1)&&((((input==1)&&(((a3==6)&&(!(a18==1)&&(a22==1)))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1))))))&&(a27==1))&&(a20==1)))&&(a12==10)))&&(a5==1))&&!(a6==1)))){ + a22 = 1; + a0 = 1; + a18 = 0; + a3 = 5; + a12 = 11; + a5 = 0; + return 26; + } else if((((!(a5==1)&&((a4==1)&&((a3==8)&&((!(a0==1)&&((((a27==1)&&((input==2)&&((a18==1)||!(a18==1))))&&!(a6==1))&&(a20==1)))&&!(a22==1)))))&&(a15==1))&&(a12==10))){ + a5 = 1; + a22 = 1; + a12 = 8; + a18 = 1; + a0 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if((!(a15==1)&&(!(a6==1)&&((a12==10)&&(((a27==1)&&((a5==1)&&((((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==1))&&(a20==1))&&(a4==1))&&!(a0==1))))&&(a3==7)))))){ + a12 = 12; + a3 = 5; + a22 = 0; + a15 = 1; + a4 = 0; + a18 = 1; + a0 = 1; + return 26; + } else if(((((((a4==1)&&((((a0==1)&&((a12==10)&&((input==6)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))&&(a15==1))&&!(a6==1)))&&(a20==1))&&(a3==8))&&(a5==1))&&!(a27==1))){ + a4 = 0; + a6 = 1; + a12 = 9; + a22 = 1; + a3 = 6; + a18 = 0; + return 21; + } else if(((((((a27==1)&&(((!(a6==1)&&((input==2)&&((((a18==1)&&(a22==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==6))))))&&!(a5==1))&&!(a4==1)))&&(a12==8))&&!(a0==1))&&(a15==1))&&(a20==1))){ + a3 = 4; + a22 = 1; + a6 = 1; + a5 = 1; + a0 = 1; + a18 = 1; + a4 = 1; + return -1; + } else if((((a27==1)&&(((a12==8)&&((a4==1)&&((a20==1)&&(!(a6==1)&&(((a0==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==2)))&&!(a5==1))))))&&(a3==7)))&&(a15==1))){ + a5 = 1; + a6 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + return -1; + } return calculate_output38(input); + } + + int calculate_output38(int input) { + if((!(a22==1)&&((a3==5)&&((a6==1)&&(!(a15==1)&&((a5==1)&&((a18==1)&&((a0==1)&&((a12==12)&&(((a27==1)&&((input==6)&&(a20==1)))&&(a4==1))))))))))){ + a6 = 0; + a22 = 1; + a18 = 0; + a3 = 8; + a15 = 1; + return -1; + } else if(((a4==1)&&(!(a27==1)&&((a5==1)&&((((a0==1)&&((a15==1)&&(!(a6==1)&&((input==1)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))||((a3==7)&&((a22==1)&&!(a18==1))))))))&&(a20==1))&&(a12==10)))))){ + a22 = 0; + a15 = 0; + a4 = 0; + a27 = 1; + a3 = 4; + a18 = 0; + a12 = 12; + return 26; + } else if((!(a6==1)&&(!(a0==1)&&(!(a4==1)&&(!(a5==1)&&((!(a15==1)&&((a3==6)&&((a12==8)&&((a20==1)&&(((input==6)&&!(a18==1))&&(a22==1))))))&&(a27==1))))))){ + a6 = 1; + a18 = 1; + a4 = 1; + a3 = 4; + a0 = 1; + a27 = 0; + a12 = 11; + return 21; + } else if((!(a6==1)&&(((a3==8)&&(!(a5==1)&&((a20==1)&&(!(a4==1)&&((a15==1)&&((a27==1)&&(((input==2)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a12==10))))))))&&(a0==1)))){ + if((a27==1)){ + a22 = 0; + a5 = 1; + a15 = 0; + a3 = 5; + a6 = 1; + a12 = 9; + a0 = 0; + a18 = 1; + }else{ + a27 = 0; + a22 = 0; + a6 = 1; + a18 = 1; + a15 = 0; + a5 = 1; + a3 = 6; + } + return 26; + } else if(((a3==5)&&(!(a6==1)&&(!(a5==1)&&((a12==10)&&(((((a0==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&(a20==1)))&&(a15==1))&&!(a4==1))&&!(a27==1))))))){ + a15 = 0; + a3 = 6; + a6 = 1; + a12 = 9; + a22 = 1; + a18 = 1; + return -1; + } else if(((a15==1)&&(!(a4==1)&&((a20==1)&&(!(a5==1)&&(((a12==11)&&((a27==1)&&((a6==1)&&((input==1)&&(((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1))))||((a3==5)&&((a18==1)&&(a22==1))))))))&&(a0==1))))))){ + a22 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + a5 = 1; + a4 = 1; + return -1; + } else if((!(a0==1)&&((a5==1)&&((a12==9)&&((((a4==1)&&(((a27==1)&&((input==5)&&((((a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==4))))))&&!(a6==1)))&&(a20==1))&&(a15==1)))))){ + a15 = 0; + a3 = 8; + a0 = 1; + a22 = 1; + a6 = 1; + a18 = 0; + a12 = 11; + return 21; + } else if((!(a4==1)&&(!(a5==1)&&(!(a0==1)&&((((a27==1)&&((a20==1)&&((a12==10)&&((a3==5)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==6))))))&&!(a15==1))&&!(a6==1)))))){ + a5 = 1; + a15 = 1; + a0 = 1; + a18 = 0; + a3 = 4; + a6 = 1; + a22 = 1; + return 21; + } else if(((a15==1)&&((((a3==7)&&((a5==1)&&((a27==1)&&((a4==1)&&((!(a22==1)&&((a12==12)&&((input==2)&&(a0==1))))&&(a6==1))))))&&(a18==1))&&(a20==1)))){ + if((a22==1)){ + a4 = 0; + a5 = 0; + a0 = 0; + a18 = 0; + a3 = 4; + a6 = 0; + a12 = 10; + a15 = 0; + }else{ + a5 = 0; + a12 = 10; + a4 = 0; + a3 = 6; + } + return 26; + } else if((!(a15==1)&&((a12==11)&&(!(a27==1)&&(!(a18==1)&&(!(a22==1)&&(((((((input==1)&&(a5==1))&&(a20==1))&&(a6==1))&&(a3==7))&&(a0==1))&&!(a4==1)))))))){ + a27 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + a4 = 1; + a15 = 1; + return -1; + } else if(((((a27==1)&&((a6==1)&&((a5==1)&&((((a3==4)&&(((input==5)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a15==1)))&&(a20==1))&&!(a0==1)))))&&(a12==10))&&!(a4==1))){ + a5 = 0; + a15 = 1; + a3 = 5; + a18 = 0; + a27 = 0; + a6 = 0; + a22 = 1; + a0 = 1; + return 21; + } else if((!(a18==1)&&(((a6==1)&&((a12==8)&&(!(a4==1)&&((a22==1)&&((a3==8)&&(!(a15==1)&&(!(a0==1)&&((a20==1)&&((input==2)&&!(a5==1))))))))))&&(a27==1)))){ + if((a22==1)){ + a4 = 1; + a12 = 9; + a15 = 1; + a3 = 6; + }else{ + a0 = 1; + a5 = 1; + a18 = 1; + a6 = 0; + a27 = 0; + a3 = 5; + a22 = 0; + } + return 21; + } else if((!(a18==1)&&((a6==1)&&(((a12==10)&&(!(a15==1)&&(((a4==1)&&((a22==1)&&((a3==5)&&((a20==1)&&((a27==1)&&(input==1))))))&&(a0==1))))&&(a5==1))))){ + a15 = 1; + a4 = 0; + a5 = 0; + a3 = 4; + return 26; + } else if(((!(a27==1)&&((a5==1)&&(!(a4==1)&&((!(a0==1)&&((((input==3)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1)))))&&!(a6==1))&&!(a15==1)))&&(a20==1)))))&&(a12==11))){ + if((a6==1)){ + a12 = 8; + a5 = 0; + a0 = 1; + a18 = 0; + a4 = 1; + a22 = 0; + a3 = 7; + }else{ + a0 = 1; + a3 = 5; + a27 = 1; + a12 = 12; + a18 = 0; + a22 = 0; + a5 = 0; + } + return 26; + } else if(((((a12==10)&&(((((!(a6==1)&&((!(a4==1)&&((a15==1)&&(!(a18==1)&&!(a22==1))))&&(a3==8)))||((a6==1)&&(((a4==1)&&(!(a15==1)&&((a22==1)&&(a18==1))))&&(a3==4))))&&(input==5))&&(a0==1))&&(a20==1)))&&(a5==1))&&!(a27==1))){ + a12 = 9; + a18 = 0; + a6 = 0; + a15 = 0; + a3 = 7; + a4 = 0; + a22 = 1; + return -1; + } else if((((a0==1)&&((((((a12==12)&&((a15==1)&&((input==1)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6)))||((a3==6)&&(!(a18==1)&&(a22==1)))))))&&(a5==1))&&(a27==1))&&(a4==1))&&(a20==1)))&&(a6==1))){ + a3 = 7; + a4 = 0; + a12 = 11; + a5 = 0; + a22 = 1; + a18 = 0; + return -1; + } else if(((((a20==1)&&(((((a3==6)&&((a0==1)&&((a5==1)&&(!(a4==1)&&((input==3)&&((a18==1)||!(a18==1)))))))&&(a12==9))&&!(a6==1))&&!(a27==1)))&&!(a22==1))&&(a15==1))){ + a22 = 1; + a27 = 1; + a4 = 1; + a12 = 8; + a6 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((a3==7)&&((a12==11)&&(!(a15==1)&&((a6==1)&&((((a20==1)&&((a27==1)&&(!(a4==1)&&(!(a5==1)&&((input==3)&&((a18==1)||!(a18==1)))))))&&(a22==1))&&!(a0==1))))))){ + a22 = 0; + a5 = 1; + a12 = 10; + a6 = 0; + a18 = 1; + a3 = 8; + a0 = 1; + return -1; + } else if((!(a27==1)&&((a6==1)&&((((((((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==3))&&!(a0==1))&&(a20==1))&&(a5==1))&&(a12==9))&&!(a4==1))&&!(a15==1))))){ + a15 = 1; + a12 = 8; + a18 = 1; + a4 = 1; + a27 = 1; + a3 = 4; + a0 = 1; + a22 = 0; + return -1; + } else if(((((((a15==1)&&((a3==4)&&(!(a6==1)&&((a4==1)&&((a12==9)&&((input==4)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))))))))&&(a20==1))&&(a5==1))&&(a0==1))&&!(a27==1))){ + a18 = 1; + a27 = 1; + a3 = 7; + a12 = 12; + a22 = 1; + a5 = 0; + a6 = 1; + return 24; + } else if(((a3==7)&&(((!(a0==1)&&(!(a6==1)&&(((((a15==1)&&((a4==1)&&(!(a22==1)&&(input==1))))&&!(a5==1))&&!(a27==1))&&(a12==10))))&&(a18==1))&&(a20==1)))){ + a27 = 1; + a0 = 1; + a5 = 1; + a3 = 6; + a6 = 1; + a12 = 8; + return 26; + } else if((!(a15==1)&&(!(a18==1)&&((((a3==6)&&(((a12==8)&&(((!(a4==1)&&((input==1)&&!(a0==1)))&&(a20==1))&&!(a5==1)))&&(a27==1)))&&!(a6==1))&&(a22==1))))){ + a3 = 4; + a5 = 1; + a0 = 1; + a4 = 1; + a15 = 1; + a18 = 1; + a6 = 1; + return -1; + } else if(((a27==1)&&((a4==1)&&(!(a6==1)&&(((((a18==1)&&((a3==5)&&((a20==1)&&(!(a5==1)&&(!(a0==1)&&(input==4))))))&&(a15==1))&&(a12==10))&&!(a22==1)))))){ + a0 = 1; + a5 = 1; + a12 = 12; + a3 = 7; + return 26; + } else if(((a27==1)&&(((a5==1)&&(((a6==1)&&(((a3==4)&&((a12==11)&&(!(a15==1)&&((a18==1)&&((input==6)&&!(a4==1))))))&&!(a0==1)))&&(a22==1)))&&(a20==1)))){ + a15 = 1; + a22 = 0; + a5 = 0; + a3 = 7; + a0 = 1; + a12 = 10; + return 21; + } else if((((a3==6)&&(((a0==1)&&(((a27==1)&&((!(a4==1)&&((a15==1)&&(!(a6==1)&&((input==5)&&(a12==12)))))&&(a20==1)))&&(a22==1)))&&(a18==1)))&&(a5==1))){ + a4 = 1; + a3 = 4; + a12 = 10; + a5 = 0; + a15 = 0; + return -1; + } else if(((a27==1)&&((((a0==1)&&(((((a12==11)&&((a5==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==6))))&&(a20==1))&&(a3==7))&&(a6==1)))&&!(a15==1))&&(a4==1)))){ + a3 = 4; + a12 = 8; + a18 = 1; + a22 = 1; + a15 = 1; + return -1; + } else if((!(a0==1)&&(((a18==1)&&(!(a27==1)&&(((((a22==1)&&((((a6==1)&&(input==4))&&(a5==1))&&(a3==5)))&&(a4==1))&&!(a15==1))&&(a12==8))))&&(a20==1)))){ + if((a27==1)){ + a27 = 1; + a4 = 0; + a0 = 1; + a15 = 1; + a18 = 0; + a22 = 0; + a3 = 7; + }else{ + a3 = 4; + a18 = 0; + a15 = 1; + a4 = 0; + a22 = 0; + a0 = 1; + a27 = 1; + } + return 26; + } else if(((a12==9)&&(!(a5==1)&&(!(a15==1)&&((a20==1)&&((!(a27==1)&&(!(a0==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4))&&(a3==8))&&(a4==1))))&&(a6==1))))))){ + if((a5==1)){ + a3 = 4; + a6 = 0; + a27 = 1; + a18 = 1; + a22 = 1; + a5 = 1; + a15 = 1; + a12 = 8; + a4 = 0; + a0 = 1; + }else{ + a0 = 1; + a15 = 1; + a27 = 1; + a22 = 0; + a18 = 0; + a12 = 10; + } + return -1; + } else if(((a20==1)&&((((a0==1)&&(((((((a18==1)&&((a3==5)&&(input==6)))&&(a12==10))&&(a27==1))&&!(a15==1))&&!(a22==1))&&(a5==1)))&&(a4==1))&&(a6==1)))){ + a6 = 0; + a4 = 0; + a3 = 6; + a5 = 0; + a22 = 1; + a15 = 1; + return 26; + } else if((((((a5==1)&&(((!(a4==1)&&((a27==1)&&((a0==1)&&((input==1)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))))&&!(a6==1))&&(a3==5)))&&(a20==1))&&(a12==11))&&!(a15==1))){ + a6 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + a4 = 1; + a22 = 1; + a15 = 1; + return -1; + } else if((!(a5==1)&&(((!(a0==1)&&((a20==1)&&((((((input==6)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&(a12==9))&&(a6==1))&&(a3==4))&&(a4==1))))&&(a27==1))&&(a15==1)))){ + a12 = 12; + a5 = 1; + a18 = 0; + a22 = 0; + a0 = 1; + return 24; + } else if((!(a4==1)&&((!(a5==1)&&((a12==9)&&((a6==1)&&((((a0==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==6))&&!(a27==1)))&&(a20==1))&&(a3==7)))))&&(a15==1)))){ + a15 = 0; + a3 = 8; + a18 = 1; + a5 = 1; + a12 = 11; + a22 = 1; + a27 = 1; + return 24; + } else if(((a20==1)&&((a5==1)&&(((((a4==1)&&(!(a27==1)&&(((((input==3)&&!(a15==1))&&(a3==6))&&!(a22==1))&&(a0==1))))&&(a6==1))&&!(a18==1))&&(a12==11))))){ + a5 = 0; + a0 = 0; + a12 = 8; + a27 = 1; + a3 = 7; + a4 = 0; + a15 = 1; + return -1; + } else if(((a27==1)&&(((!(a15==1)&&(!(a0==1)&&(((a6==1)&&(((input==1)&&(((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==5))))&&(a12==12)))&&!(a4==1))))&&(a20==1))&&!(a5==1)))){ + a15 = 1; + a5 = 1; + a0 = 1; + a3 = 5; + a18 = 0; + a12 = 8; + a22 = 0; + a4 = 1; + a6 = 0; + return 21; + } else if(((((((!(a5==1)&&((((a0==1)&&(((input==1)&&(a12==12))&&(a20==1)))&&!(a15==1))&&!(a22==1)))&&!(a6==1))&&(a3==8))&&(a18==1))&&!(a27==1))&&(a4==1))){ + a5 = 1; + a12 = 8; + a22 = 1; + a3 = 7; + a18 = 0; + return -1; + } else if((((a3==5)&&(!(a6==1)&&(((a22==1)&&(((a18==1)&&(((!(a4==1)&&(!(a5==1)&&(input==3)))&&(a12==11))&&!(a0==1)))&&(a20==1)))&&(a27==1))))&&(a15==1))){ + a5 = 1; + a3 = 4; + a0 = 1; + a6 = 1; + a4 = 1; + a12 = 8; + return -1; + } else if((((((a5==1)&&(!(a6==1)&&(!(a0==1)&&((((a12==9)&&((input==1)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))&&(a4==1))&&(a27==1)))))&&(a15==1))&&(a3==7))&&(a20==1))){ + a18 = 1; + a22 = 1; + a3 = 4; + a6 = 1; + a0 = 1; + a12 = 8; + return -1; + } else if(((((a20==1)&&(((!(a15==1)&&(!(a22==1)&&(((((input==3)&&((a18==1)||!(a18==1)))&&!(a4==1))&&(a0==1))&&(a3==7))))&&(a27==1))&&(a5==1)))&&(a12==11))&&!(a6==1))){ + a27 = 0; + a4 = 1; + a22 = 1; + a18 = 0; + a3 = 6; + a6 = 1; + return 26; + } else if(((((a3==4)&&((((((!(a15==1)&&((input==6)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&(a4==1))&&(a20==1))&&!(a5==1))&&!(a6==1))&&!(a0==1)))&&(a12==9))&&(a27==1))){ + a22 = 1; + a5 = 1; + a6 = 1; + a12 = 8; + a0 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if(((!(a6==1)&&(!(a4==1)&&((a12==8)&&(((a27==1)&&((a15==1)&&((a20==1)&&((a3==5)&&((input==1)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))))&&!(a0==1)))))&&!(a5==1))){ + if((a22==1)){ + a4 = 1; + a18 = 0; + a15 = 0; + a22 = 1; + a6 = 1; + a12 = 10; + }else{ + a18 = 0; + a12 = 9; + a22 = 1; + a6 = 1; + a3 = 8; + } + return 26; + } else if((!(a6==1)&&((a5==1)&&((a4==1)&&(!(a0==1)&&(((((a27==1)&&((input==5)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))||((a3==5)&&((a22==1)&&!(a18==1))))))&&(a20==1))&&(a12==12))&&(a15==1))))))){ + a18 = 0; + a0 = 1; + a3 = 5; + a12 = 11; + a27 = 0; + a22 = 0; + return -1; + } else if((!(a18==1)&&((a4==1)&&((a27==1)&&(((((((a20==1)&&(((a5==1)&&(input==6))&&!(a15==1)))&&(a0==1))&&(a12==10))&&!(a6==1))&&(a3==7))&&(a22==1)))))){ + a12 = 12; + a3 = 8; + a4 = 0; + a18 = 1; + return 21; + } else if(((a4==1)&&((((a20==1)&&(((((((input==3)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&!(a6==1))&&(a12==11))&&(a5==1))&&(a3==6))&&!(a27==1)))&&!(a15==1))&&(a0==1)))){ + if((a27==1)){ + a22 = 0; + a6 = 1; + a5 = 0; + a12 = 8; + a18 = 1; + a3 = 4; + a27 = 1; + a0 = 0; + }else{ + a18 = 1; + a22 = 0; + a5 = 0; + a3 = 4; + a6 = 1; + a12 = 8; + } + return -1; + } else if(((a27==1)&&((a4==1)&&((a3==5)&&((((((!(a0==1)&&((input==3)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a5==1))&&!(a6==1))&&(a15==1))&&(a12==8))&&(a20==1)))))){ + a12 = 10; + a22 = 0; + a0 = 1; + a3 = 8; + a6 = 1; + a5 = 1; + a18 = 1; + return 24; + } else if((!(a4==1)&&((!(a5==1)&&(((((a22==1)&&((((((a18==1)||!(a18==1))&&(input==5))&&(a3==8))&&(a6==1))&&(a12==11)))&&(a20==1))&&(a15==1))&&!(a0==1)))&&!(a27==1)))){ + a18 = 1; + a3 = 5; + a5 = 1; + a12 = 8; + a27 = 1; + a0 = 1; + return 21; + } else if((!(a0==1)&&((((a20==1)&&(!(a5==1)&&((input==6)&&(((a6==1)&&((a3==4)&&((!(a15==1)&&((a22==1)&&(a18==1)))&&(a4==1))))||((!(a6==1)&&(((((a18==1)&&!(a22==1))&&(a15==1))&&!(a4==1))&&(a3==8)))||(((a3==8)&&(!(a4==1)&&((a15==1)&&(!(a18==1)&&!(a22==1)))))&&!(a6==1)))))))&&(a12==8))&&!(a27==1)))){ + if((a20==1)){ + a3 = 5; + a27 = 1; + a0 = 1; + a15 = 1; + a22 = 0; + a5 = 1; + a18 = 0; + a6 = 1; + a4 = 1; + }else{ + a18 = 1; + a22 = 0; + a4 = 1; + a6 = 1; + a3 = 4; + a5 = 1; + a15 = 0; + a27 = 1; + } + return -1; + } else if((!(a27==1)&&(((a6==1)&&(((a18==1)&&(!(a0==1)&&(((a15==1)&&((((a22==1)&&(input==4))&&(a5==1))&&(a20==1)))&&(a12==9))))&&!(a4==1)))&&(a3==6)))){ + if((a4==1)){ + a22 = 0; + a4 = 1; + a18 = 0; + a15 = 0; + a27 = 1; + a12 = 11; + a3 = 5; + }else{ + a4 = 1; + a0 = 1; + a6 = 0; + a27 = 1; + a22 = 0; + a3 = 4; + a18 = 0; + a12 = 8; + } + return 21; + } else if(((a20==1)&&(((((a4==1)&&((a27==1)&&(((((input==6)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&!(a5==1))&&(a15==1))&&(a12==9))))&&(a3==8))&&!(a0==1))&&!(a6==1)))){ + if((a27==1)){ + a12 = 12; + a3 = 7; + a22 = 0; + a5 = 1; + a18 = 0; + }else{ + a5 = 1; + a0 = 1; + a18 = 0; + a12 = 10; + a4 = 0; + a22 = 1; + a3 = 5; + a6 = 1; + } + return -1; + } else if(((!(a15==1)&&(((!(a5==1)&&((a27==1)&&((a20==1)&&((a12==12)&&((input==3)&&(((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1)))))))))&&!(a4==1))&&(a6==1)))&&(a0==1))){ + a12 = 8; + a5 = 1; + a15 = 1; + a3 = 4; + a22 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if((!(a0==1)&&((a6==1)&&(((a3==4)&&((a20==1)&&((a22==1)&&((a4==1)&&(((!(a5==1)&&((input==6)&&((a18==1)||!(a18==1))))&&!(a27==1))&&!(a15==1))))))&&(a12==9))))){ + a5 = 1; + a4 = 0; + a3 = 6; + a0 = 1; + a12 = 8; + a27 = 1; + a15 = 1; + a18 = 0; + return -1; + } else if(((a27==1)&&((a6==1)&&(((a0==1)&&(!(a4==1)&&(((a15==1)&&((a20==1)&&((input==2)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6))))))&&(a5==1))))&&(a12==11))))){ + a18 = 1; + a15 = 0; + a22 = 1; + a3 = 7; + a5 = 0; + return 26; + } else if((((((a4==1)&&(((!(a0==1)&&((a12==12)&&((input==4)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5))))))&&(a5==1))&&(a20==1)))&&!(a6==1))&&(a27==1))&&!(a15==1))){ + a18 = 0; + a4 = 0; + a0 = 1; + a12 = 8; + a6 = 1; + a15 = 1; + a22 = 0; + a3 = 6; + return -1; + } else if(((!(a15==1)&&((!(a0==1)&&((a5==1)&&(((a27==1)&&((((a12==9)&&((input==4)&&(a20==1)))&&!(a18==1))&&(a3==6)))&&!(a22==1))))&&!(a4==1)))&&!(a6==1))){ + a4 = 1; + a0 = 1; + a18 = 1; + a27 = 0; + a3 = 8; + return -1; + } else if(((((a12==9)&&(!(a4==1)&&(!(a5==1)&&((a20==1)&&(!(a27==1)&&((((input==1)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&(a0==1))&&!(a15==1)))))))&&(a6==1))&&(a3==8))){ + a5 = 1; + a27 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + a4 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if(((((!(a15==1)&&(!(a18==1)&&(((((((a20==1)&&(input==1))&&!(a22==1))&&!(a4==1))&&(a27==1))&&(a12==10))&&(a3==8))))&&!(a0==1))&&!(a6==1))&&(a5==1))){ + a3 = 5; + a6 = 1; + a15 = 1; + a0 = 1; + a27 = 0; + a22 = 1; + return 26; + } else if(((a27==1)&&(((a0==1)&&((!(a4==1)&&(((a3==7)&&(!(a6==1)&&((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==2))&&(a20==1))))&&!(a15==1)))&&(a12==12)))&&!(a5==1)))){ + a5 = 1; + a4 = 1; + a15 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + return -1; + } else if((((!(a15==1)&&((a3==4)&&(((((!(a6==1)&&((((a18==1)||!(a18==1))&&(input==3))&&!(a5==1)))&&(a12==10))&&(a20==1))&&!(a22==1))&&!(a27==1))))&&(a4==1))&&!(a0==1))){ + a18 = 0; + a15 = 1; + a5 = 1; + a22 = 1; + a12 = 8; + a4 = 0; + a3 = 7; + return 26; + } else if((!(a4==1)&&((((!(a27==1)&&(((a20==1)&&((!(a22==1)&&((a18==1)&&((a6==1)&&(input==2))))&&(a12==10)))&&(a3==5)))&&(a0==1))&&!(a15==1))&&!(a5==1)))){ + a3 = 4; + a5 = 1; + a27 = 1; + a12 = 12; + a6 = 0; + a22 = 1; + return 21; + } else if((((a5==1)&&((a20==1)&&((a6==1)&&((a3==6)&&((a12==9)&&(!(a27==1)&&((a15==1)&&(!(a4==1)&&((input==1)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))))))))&&!(a0==1))){ + if((a12==9)){ + a27 = 1; + a6 = 0; + a3 = 8; + a12 = 8; + a22 = 0; + a0 = 1; + a4 = 1; + a18 = 1; + }else{ + a22 = 1; + a18 = 1; + a3 = 7; + a4 = 1; + a0 = 1; + a27 = 1; + a12 = 8; + } + return -1; + } else if((((((!(a5==1)&&((a20==1)&&((a27==1)&&(!(a4==1)&&(!(a6==1)&&((a3==5)&&((input==1)&&((a18==1)||!(a18==1)))))))))&&!(a22==1))&&(a0==1))&&(a15==1))&&(a12==11))){ + a18 = 0; + a4 = 1; + a27 = 0; + return 21; + } else if((((((((((((input==6)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&!(a4==1))&&(a3==7))&&(a0==1))&&!(a6==1))&&(a27==1))&&(a5==1))&&(a20==1))&&(a15==1))&&(a12==12))){ + a6 = 1; + a18 = 0; + a27 = 0; + a3 = 5; + a22 = 0; + return 21; + } else if(((!(a6==1)&&(((!(a5==1)&&(!(a15==1)&&(!(a0==1)&&((a12==11)&&(((((a22==1)&&(a18==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a22==1)&&!(a18==1)))))&&(input==5))))))&&!(a4==1))&&(a27==1)))&&(a20==1))){ + a4 = 1; + a22 = 0; + a0 = 1; + a12 = 9; + a6 = 1; + a18 = 1; + a3 = 7; + a15 = 1; + return 26; + } else if((!(a27==1)&&(!(a4==1)&&((((((((a20==1)&&((input==5)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))))&&(a15==1))&&(a5==1))&&!(a6==1))&&(a3==4))&&!(a0==1))&&(a12==9))))){ + if((a18==1)){ + a27 = 1; + a3 = 8; + a0 = 1; + a18 = 1; + a12 = 8; + a6 = 1; + a22 = 1; + }else{ + a3 = 6; + a18 = 0; + a4 = 1; + a22 = 0; + a0 = 1; + a15 = 0; + a12 = 10; + } + return 21; + } else if((((!(a15==1)&&(!(a6==1)&&((!(a4==1)&&((a20==1)&&((((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==8)))&&(input==4))&&!(a0==1))))&&(a5==1))))&&(a27==1))&&(a12==11))){ + a12 = 10; + a0 = 1; + a18 = 0; + a3 = 4; + a22 = 0; + a27 = 0; + return 26; + } else if(((a20==1)&&((!(a5==1)&&(!(a18==1)&&((a12==12)&&(!(a27==1)&&(!(a22==1)&&((!(a6==1)&&(!(a4==1)&&((a3==5)&&(input==4))))&&(a15==1)))))))&&(a0==1)))){ + a4 = 1; + a12 = 11; + a27 = 1; + a3 = 4; + a22 = 1; + a5 = 1; + a15 = 0; + a18 = 1; + return -1; + } else if(((a20==1)&&((a0==1)&&((((((a6==1)&&((a12==8)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==3))))&&!(a15==1))&&(a5==1))&&(a4==1))&&!(a27==1))))){ + a18 = 0; + a22 = 0; + a3 = 6; + a4 = 0; + a6 = 0; + a27 = 1; + return 26; + } else if((((a27==1)&&(((a12==10)&&((a4==1)&&(((a15==1)&&(((input==5)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1)))))&&!(a0==1)))&&!(a5==1))))&&(a6==1)))&&(a20==1))){ + a5 = 1; + a15 = 0; + a22 = 0; + a3 = 5; + a0 = 1; + a18 = 1; + return 21; + } else if(((((a5==1)&&(!(a4==1)&&(!(a6==1)&&(!(a0==1)&&((a15==1)&&(((input==2)&&((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))||(((a22==1)&&!(a18==1))&&(a3==7))))&&(a12==9)))))))&&(a20==1))&&!(a27==1))){ + a22 = 1; + a0 = 1; + a27 = 1; + a3 = 7; + a4 = 1; + a18 = 0; + a12 = 8; + return -1; + } else if(((a0==1)&&((((a20==1)&&((a12==9)&&(!(a4==1)&&((a18==1)&&((((!(a5==1)&&(input==4))&&!(a27==1))&&(a3==7))&&!(a6==1))))))&&(a22==1))&&!(a15==1)))){ + a12 = 8; + a6 = 1; + a3 = 4; + a18 = 0; + a15 = 1; + return -1; + } else if(((!(a0==1)&&(((!(a27==1)&&((((!(a6==1)&&((!(a4==1)&&((a15==1)&&((a18==1)&&!(a22==1))))&&(a3==8)))||(((((a15==1)&&(!(a18==1)&&!(a22==1)))&&!(a4==1))&&(a3==8))&&!(a6==1)))||((a6==1)&&(((a4==1)&&(!(a15==1)&&((a22==1)&&(a18==1))))&&(a3==4))))&&(input==6)))&&(a12==11))&&(a20==1)))&&!(a5==1))){ + if((a5==1)){ + a6 = 1; + a18 = 1; + a4 = 0; + a5 = 1; + a3 = 4; + a12 = 12; + a22 = 0; + a27 = 1; + a15 = 1; + }else{ + a3 = 6; + a6 = 1; + a12 = 8; + a22 = 0; + a5 = 1; + a4 = 0; + a27 = 1; + a18 = 0; + a15 = 1; + a0 = 1; + } + return 26; + } else if((!(a0==1)&&((a15==1)&&((((!(a22==1)&&((a20==1)&&((a6==1)&&(((a12==12)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a27==1)))))&&!(a5==1))&&!(a4==1))&&(a3==8))))){ + if((a18==1)){ + a5 = 1; + a22 = 1; + a6 = 0; + a0 = 1; + a3 = 5; + a12 = 8; + a4 = 1; + a18 = 0; + }else{ + a0 = 1; + a4 = 1; + a5 = 1; + a18 = 1; + a12 = 8; + } + return -1; + } else if((!(a22==1)&&((((a15==1)&&((a3==5)&&((a12==11)&&((a20==1)&&(((!(a5==1)&&((input==6)&&!(a0==1)))&&(a6==1))&&!(a4==1))))))&&!(a27==1))&&!(a18==1)))){ + if((a4==1)){ + a3 = 7; + a6 = 0; + a12 = 10; + a18 = 1; + a22 = 1; + }else{ + a15 = 0; + a0 = 1; + a3 = 7; + a5 = 1; + } + return -1; + } else if((((((!(a4==1)&&((a12==9)&&(!(a18==1)&&((a20==1)&&((!(a6==1)&&((input==3)&&(a0==1)))&&!(a5==1))))))&&(a15==1))&&(a3==4))&&!(a22==1))&&(a27==1))){ + a15 = 0; + a5 = 1; + a6 = 1; + a12 = 11; + return 24; + } else if(((a22==1)&&((((!(a6==1)&&(((a12==11)&&((a0==1)&&(((a5==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&!(a15==1))))&&(a20==1)))&&(a4==1))&&(a3==8))&&!(a27==1)))){ + a27 = 1; + a22 = 0; + a12 = 10; + a18 = 1; + a6 = 1; + return 24; + } else if((((a20==1)&&(((a0==1)&&((a6==1)&&(((a12==10)&&(((a22==1)&&((a4==1)&&((input==2)&&!(a5==1))))&&(a3==4)))&&(a15==1))))&&!(a27==1)))&&!(a18==1))){ + a27 = 1; + a18 = 1; + a0 = 0; + a22 = 0; + a15 = 0; + a5 = 1; + a12 = 11; + a3 = 6; + return 26; + } else if(((a12==12)&&(!(a27==1)&&((!(a0==1)&&((a4==1)&&(((a20==1)&&((a5==1)&&((((a3==5)&&((a18==1)&&(a22==1)))||(((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a18==1)&&!(a22==1)))))&&(input==4))))&&(a6==1))))&&(a15==1))))){ + if((a15==1)){ + a3 = 5; + a0 = 1; + a18 = 1; + a12 = 8; + a27 = 1; + a22 = 1; + }else{ + a6 = 0; + a0 = 1; + a27 = 1; + a18 = 0; + a22 = 1; + a12 = 8; + a3 = 4; + } + return 26; + } else if(((((a27==1)&&(!(a4==1)&&(((a5==1)&&(((input==6)&&((!(a6==1)&&((a3==4)&&((a22==1)&&!(a18==1))))||(((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1)))))&&(a0==1)))&&!(a15==1))))&&(a12==9))&&(a20==1))){ + a12 = 8; + a3 = 6; + a15 = 1; + a6 = 1; + a18 = 0; + a22 = 1; + a27 = 0; + return 21; + } else if((!(a0==1)&&(((((a27==1)&&(((!(a5==1)&&((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==5))&&(a3==4)))&&(a6==1))&&!(a15==1)))&&(a20==1))&&(a12==12))&&!(a4==1)))){ + a12 = 8; + a18 = 1; + a22 = 1; + a15 = 1; + a0 = 1; + a5 = 1; + return 26; + } else if(((a15==1)&&((a20==1)&&((a5==1)&&(((((a12==8)&&(!(a6==1)&&((input==2)&&(((!(a18==1)&&(a22==1))&&(a3==8))||(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))))))&&(a0==1))&&!(a27==1))&&(a4==1)))))){ + a15 = 0; + a18 = 0; + a22 = 0; + a12 = 11; + a5 = 0; + a3 = 8; + a27 = 1; + return 21; + } else if(((((((a4==1)&&((a0==1)&&((a6==1)&&((a27==1)&&((!(a22==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a3==5))))))&&(a5==1))&&(a15==1))&&(a20==1))&&(a12==9))){ + a22 = 1; + a15 = 0; + a5 = 0; + a6 = 0; + a3 = 4; + a18 = 0; + a12 = 11; + return 26; + } else if((((((a4==1)&&(!(a5==1)&&((a12==9)&&((a6==1)&&(!(a22==1)&&((((input==2)&&!(a27==1))&&!(a15==1))&&(a0==1)))))))&&(a20==1))&&(a3==5))&&(a18==1))){ + if((a6==1)){ + a12 = 11; + a27 = 1; + a18 = 0; + a15 = 1; + a22 = 1; + a3 = 7; + a0 = 0; + }else{ + a27 = 1; + a4 = 0; + a6 = 0; + a3 = 6; + a5 = 1; + a12 = 12; + } + return 26; + } else if(((a5==1)&&(((a12==10)&&((a3==6)&&(((a15==1)&&((a20==1)&&((a27==1)&&((a6==1)&&(!(a0==1)&&(((a18==1)||!(a18==1))&&(input==3)))))))&&(a4==1))))&&!(a22==1)))){ + a3 = 8; + a4 = 0; + a18 = 0; + a0 = 1; + a22 = 1; + a6 = 0; + a27 = 0; + return 26; + } else if((((a0==1)&&((((a22==1)&&((((a27==1)&&((!(a15==1)&&((input==2)&&((a18==1)||!(a18==1))))&&!(a5==1)))&&(a12==10))&&(a20==1)))&&!(a4==1))&&(a6==1)))&&(a3==7))){ + a18 = 0; + a12 = 11; + a15 = 1; + a3 = 5; + a5 = 1; + a22 = 0; + a4 = 1; + return 26; + } else if((((a22==1)&&((a27==1)&&(((a6==1)&&(!(a0==1)&&(((a4==1)&&((a20==1)&&(((a3==6)&&(input==5))&&(a15==1))))&&!(a5==1))))&&(a12==9))))&&(a18==1))){ + a18 = 0; + a27 = 0; + a0 = 1; + a5 = 1; + a12 = 8; + a22 = 0; + a3 = 4; + return -1; + } else if(((a15==1)&&(!(a6==1)&&(((a20==1)&&((!(a0==1)&&((a5==1)&&(!(a27==1)&&((input==2)&&((((a22==1)&&!(a18==1))&&(a3==8))||(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1)))))))))&&!(a4==1)))&&(a12==10))))){ + a27 = 1; + a4 = 1; + a18 = 1; + a6 = 1; + a0 = 1; + a3 = 5; + a12 = 8; + a22 = 1; + return -1; + } else if((!(a4==1)&&((((a12==9)&&((((((!(a27==1)&&((input==2)&&!(a5==1)))&&(a6==1))&&(a22==1))&&(a20==1))&&(a15==1))&&(a3==6)))&&(a0==1))&&(a18==1)))){ + a6 = 0; + a5 = 1; + a18 = 0; + a3 = 4; + a15 = 0; + a12 = 10; + a4 = 1; + return 21; + } else if(((a20==1)&&((a15==1)&&((((a5==1)&&(((((a12==12)&&((((a18==1)||!(a18==1))&&(input==3))&&(a4==1)))&&(a27==1))&&!(a6==1))&&(a0==1)))&&(a22==1))&&(a3==7))))){ + a3 = 4; + a12 = 8; + a18 = 1; + a6 = 1; + return -1; + } else if((!(a27==1)&&(((a15==1)&&(((((((((a5==1)&&(input==4))&&(a20==1))&&(a18==1))&&(a22==1))&&(a3==6))&&(a0==1))&&(a6==1))&&(a12==12)))&&(a4==1)))){ + a12 = 10; + a27 = 1; + a6 = 0; + a5 = 0; + return -1; + } else if((!(a0==1)&&((!(a15==1)&&(((a12==10)&&((a3==5)&&((((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==4))&&(a4==1))&&!(a6==1))&&(a27==1))))&&(a20==1)))&&(a5==1)))){ + a18 = 1; + a3 = 4; + a0 = 1; + a12 = 8; + a15 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if(((((((a12==10)&&(!(a18==1)&&((a27==1)&&(((a20==1)&&((a4==1)&&((input==1)&&(a3==4))))&&!(a15==1)))))&&(a22==1))&&!(a0==1))&&(a5==1))&&!(a6==1))){ + a15 = 1; + a12 = 8; + a6 = 1; + a18 = 1; + a0 = 1; + return -1; + } else if((!(a15==1)&&((a6==1)&&((((a0==1)&&(((a20==1)&&((a3==8)&&(((input==4)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a12==8))))&&!(a27==1)))&&(a4==1))&&(a5==1))))){ + a12 = 10; + a22 = 0; + a5 = 0; + a0 = 0; + a27 = 1; + a18 = 0; + return 26; + } else if((((((!(a0==1)&&((((a20==1)&&(((input==2)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&(a15==1)))&&(a6==1))&&(a4==1)))&&(a12==8))&&(a5==1))&&!(a27==1))&&(a3==5))){ + a22 = 0; + a15 = 0; + a27 = 1; + a12 = 10; + a18 = 1; + return -1; + } else if(((a12==9)&&((!(a15==1)&&((!(a0==1)&&((a20==1)&&(!(a27==1)&&(!(a5==1)&&((!(a6==1)&&(!(a22==1)&&(input==1)))&&!(a4==1))))))&&!(a18==1)))&&(a3==7)))){ + a22 = 1; + a18 = 1; + a6 = 1; + a12 = 10; + a5 = 1; + a15 = 1; + a27 = 1; + return 24; + } else if((((a3==6)&&(!(a27==1)&&(((a20==1)&&(((a0==1)&&((!(a4==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==4)))&&(a12==8)))&&!(a6==1)))&&!(a5==1))))&&!(a15==1))){ + a3 = 8; + a18 = 0; + a12 = 9; + a4 = 1; + a27 = 1; + a0 = 0; + a22 = 1; + return 21; + } else if((((((a20==1)&&((a15==1)&&(((!(a22==1)&&((a12==11)&&((a6==1)&&((a27==1)&&(input==3)))))&&(a0==1))&&!(a4==1))))&&(a3==8))&&(a5==1))&&(a18==1))){ + a18 = 0; + a27 = 0; + a12 = 10; + a3 = 5; + a5 = 0; + a15 = 0; + return 21; + } else if(((a5==1)&&(!(a22==1)&&(!(a15==1)&&(((a20==1)&&((a12==9)&&((a4==1)&&(!(a6==1)&&(((a0==1)&&((input==2)&&(a27==1)))&&(a3==8))))))&&(a18==1)))))){ + a18 = 0; + a4 = 0; + a12 = 11; + a3 = 4; + return 26; + } else if(((a27==1)&&((a6==1)&&((((a3==5)&&((a15==1)&&((!(a18==1)&&((a0==1)&&(((a12==9)&&(input==3))&&(a22==1))))&&(a5==1))))&&!(a4==1))&&(a20==1))))){ + if((a5==1)){ + a15 = 0; + a5 = 0; + a12 = 10; + a4 = 1; + a22 = 0; + a0 = 0; + a3 = 7; + a18 = 1; + }else{ + a12 = 12; + a6 = 0; + a22 = 0; + a3 = 7; + a15 = 0; + a18 = 1; + } + return 21; + } else if((((a3==4)&&(!(a15==1)&&(!(a4==1)&&(((((a0==1)&&((((input==5)&&((a18==1)||!(a18==1)))&&(a27==1))&&(a12==8)))&&(a20==1))&&(a5==1))&&(a6==1)))))&&(a22==1))){ + a12 = 12; + a27 = 0; + a3 = 8; + a18 = 1; + a4 = 1; + a5 = 0; + return 26; + } else if(((((!(a15==1)&&(!(a27==1)&&(!(a0==1)&&(((a12==8)&&((input==2)&&(((a3==8)&&((a22==1)&&(a18==1)))||(((a3==7)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==7))))))&&!(a6==1)))))&&!(a5==1))&&!(a4==1))&&(a20==1))){ + a4 = 1; + a0 = 1; + a18 = 1; + a15 = 1; + a3 = 8; + a5 = 1; + a27 = 1; + a22 = 0; + return 21; + } else if(((!(a6==1)&&((a27==1)&&(((a12==8)&&(!(a0==1)&&(!(a15==1)&&((a20==1)&&(!(a4==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5)))))))&&!(a5==1))))&&(a3==7))){ + a0 = 1; + a6 = 1; + a5 = 1; + a3 = 6; + a12 = 12; + a18 = 1; + a22 = 0; + return 21; + } else if((((!(a4==1)&&((a20==1)&&((a6==1)&&((((!(a15==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==3)))&&(a3==5))&&(a0==1))&&(a12==12)))))&&(a27==1))&&!(a5==1))){ + a15 = 1; + a18 = 1; + a5 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + a4 = 1; + return -1; + } else if((!(a15==1)&&(!(a6==1)&&(((a5==1)&&((a3==7)&&((a12==11)&&(!(a0==1)&&((((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==2))&&!(a27==1))&&(a4==1))))))&&(a20==1))))){ + a22 = 1; + a12 = 9; + a15 = 1; + a0 = 1; + a3 = 4; + a27 = 1; + a18 = 0; + return -1; + } else if(((((a12==8)&&(((!(a4==1)&&((!(a27==1)&&((input==3)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))||((a3==8)&&(!(a18==1)&&(a22==1))))))&&(a5==1)))&&(a20==1))&&(a15==1)))&&!(a0==1))&&(a6==1))){ + a18 = 1; + a22 = 0; + a4 = 1; + a6 = 0; + a3 = 7; + a0 = 1; + a27 = 1; + return 21; + } else if(((!(a5==1)&&(!(a4==1)&&((a6==1)&&(((((!(a22==1)&&((((a18==1)||!(a18==1))&&(input==3))&&!(a27==1)))&&(a12==10))&&(a3==8))&&(a15==1))&&(a20==1)))))&&!(a0==1))){ + if((a20==1)){ + a3 = 6; + a18 = 0; + a5 = 1; + a0 = 1; + a12 = 8; + a27 = 1; + a4 = 1; + }else{ + a0 = 1; + a12 = 8; + a22 = 1; + a18 = 1; + a3 = 5; + a5 = 1; + a27 = 1; + } + return -1; + } else if(((!(a6==1)&&((a20==1)&&((a0==1)&&((a15==1)&&(!(a4==1)&&((((input==1)&&(((a3==8)&&(!(a18==1)&&(a22==1)))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8)))))&&(a12==9))&&!(a27==1)))))))&&!(a5==1))){ + a3 = 7; + a0 = 0; + a18 = 0; + a22 = 0; + a27 = 1; + a6 = 1; + a12 = 8; + return 26; + } else if(((a3==4)&&((a22==1)&&((!(a0==1)&&((a20==1)&&(((a12==10)&&(((((input==5)&&((a18==1)||!(a18==1)))&&!(a4==1))&&!(a15==1))&&(a6==1)))&&!(a27==1))))&&(a5==1))))){ + if((a5==1)){ + a12 = 8; + a18 = 0; + a0 = 1; + a15 = 1; + a27 = 1; + }else{ + a27 = 1; + a3 = 7; + a15 = 1; + a6 = 0; + a0 = 1; + a22 = 0; + a4 = 1; + a18 = 0; + a12 = 8; + } + return 21; + } else if(((!(a5==1)&&((((a20==1)&&((((a4==1)&&((a15==1)&&((a18==1)&&((a3==7)&&(input==1)))))&&(a0==1))&&(a6==1)))&&(a12==11))&&(a22==1)))&&(a27==1))){ + a6 = 0; + a3 = 8; + a12 = 9; + a4 = 0; + a18 = 0; + a15 = 0; + return -1; + } else if((((((((a0==1)&&(!(a4==1)&&(!(a22==1)&&(((a20==1)&&((input==1)&&(a18==1)))&&!(a27==1)))))&&(a3==4))&&!(a6==1))&&(a15==1))&&(a5==1))&&(a12==12))){ + a12 = 8; + a4 = 1; + a6 = 1; + a22 = 1; + a27 = 1; + return -1; + } else if(((a15==1)&&(!(a0==1)&&(((((a4==1)&&(((!(a22==1)&&((a20==1)&&((input==1)&&(a3==5))))&&(a18==1))&&(a12==10)))&&(a6==1))&&(a5==1))&&(a27==1))))){ + if((a20==1)){ + a5 = 0; + a6 = 0; + }else{ + a3 = 7; + a0 = 1; + a5 = 0; + } + return -1; + } else if((!(a4==1)&&(((a3==7)&&((((!(a27==1)&&((a12==10)&&(((a6==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a5==1))))&&!(a22==1))&&!(a15==1))&&!(a0==1)))&&(a20==1)))){ + a3 = 5; + a6 = 0; + a22 = 1; + a27 = 1; + a0 = 1; + a4 = 1; + a18 = 0; + a15 = 1; + a12 = 8; + return -1; + } else if(((a6==1)&&(!(a18==1)&&(!(a15==1)&&(((a12==11)&&(((((a20==1)&&((a3==5)&&(!(a27==1)&&(input==4))))&&!(a5==1))&&(a0==1))&&!(a22==1)))&&(a4==1)))))){ + a18 = 1; + a3 = 4; + a12 = 10; + a15 = 1; + a27 = 1; + return -1; + } else if((!(a15==1)&&((a0==1)&&((a3==4)&&(!(a6==1)&&(((a5==1)&&((((a22==1)&&(!(a27==1)&&(((a18==1)||!(a18==1))&&(input==3))))&&(a20==1))&&(a4==1)))&&(a12==10))))))){ + a15 = 1; + a18 = 1; + a27 = 1; + a12 = 8; + a6 = 1; + return -1; + } else if(((a12==9)&&(((((((!(a27==1)&&((((a3==8)&&(!(a18==1)&&(a22==1)))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8))))&&(input==6)))&&!(a5==1))&&(a15==1))&&(a0==1))&&(a6==1))&&(a20==1))&&!(a4==1)))){ + a22 = 1; + a18 = 1; + a27 = 1; + a4 = 1; + a12 = 8; + a5 = 1; + a3 = 4; + return -1; + } else if((!(a5==1)&&(!(a22==1)&&((a6==1)&&((((((a15==1)&&(!(a4==1)&&((a0==1)&&(((a18==1)||!(a18==1))&&(input==3)))))&&(a12==8))&&(a3==5))&&(a20==1))&&(a27==1)))))){ + a18 = 1; + a3 = 7; + a6 = 0; + a5 = 1; + a12 = 10; + return 26; + } else if(((a12==11)&&((a3==6)&&(!(a15==1)&&(!(a0==1)&&(!(a6==1)&&(((a4==1)&&((((a18==1)&&((input==4)&&!(a5==1)))&&!(a22==1))&&(a20==1)))&&(a27==1)))))))){ + a5 = 1; + a3 = 4; + a22 = 1; + a6 = 1; + a0 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if((!(a4==1)&&(((!(a0==1)&&((((a6==1)&&((((((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==7)))&&(input==4))&&(a12==11)))&&(a20==1))&&(a15==1)))&&(a5==1))&&!(a27==1)))){ + a0 = 1; + a12 = 8; + a27 = 1; + a22 = 0; + a18 = 0; + a3 = 8; + return 26; + } else if((((a15==1)&&((a12==9)&&(((a20==1)&&((!(a27==1)&&((!(a6==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==1)))&&(a4==1)))&&(a0==1)))&&(a3==6))))&&(a5==1))){ + a6 = 1; + a18 = 0; + a12 = 11; + a3 = 7; + a4 = 0; + a22 = 1; + a27 = 1; + return 24; + } else if((((a3==5)&&(((a0==1)&&((a6==1)&&(((!(a27==1)&&(!(a4==1)&&((input==6)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))))&&(a15==1))&&!(a5==1))))&&(a20==1)))&&(a12==9))){ + a12 = 8; + a3 = 4; + a18 = 1; + a4 = 1; + a27 = 1; + a22 = 1; + a5 = 1; + return -1; + } else if((((a20==1)&&(((a27==1)&&(((a3==7)&&((((((input==2)&&(a15==1))&&!(a18==1))&&!(a22==1))&&!(a6==1))&&(a4==1)))&&(a12==10)))&&!(a5==1)))&&!(a0==1))){ + a15 = 0; + a0 = 1; + a4 = 0; + return -1; + } else if((((a4==1)&&(((((a27==1)&&((a15==1)&&((a0==1)&&(((!(a18==1)&&(input==6))&&(a3==4))&&(a20==1)))))&&(a6==1))&&!(a22==1))&&(a5==1)))&&(a12==12))){ + a0 = 0; + a12 = 10; + a5 = 0; + return -1; + } else if((((a22==1)&&((!(a0==1)&&(((a12==11)&&(!(a15==1)&&(((((input==1)&&((a18==1)||!(a18==1)))&&(a27==1))&&(a6==1))&&(a20==1))))&&(a3==7)))&&(a4==1)))&&!(a5==1))){ + a18 = 1; + a12 = 8; + a27 = 0; + a3 = 6; + a4 = 0; + a0 = 1; + return 26; + } else if(((a0==1)&&((a15==1)&&((a5==1)&&((a12==12)&&((((a3==5)&&((a20==1)&&((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==2))&&!(a6==1))))&&!(a4==1))&&(a27==1))))))){ + a4 = 1; + a22 = 0; + a0 = 0; + a3 = 8; + a12 = 10; + a18 = 1; + return 26; + } else if((!(a4==1)&&(!(a0==1)&&((a12==10)&&(!(a6==1)&&((((((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==3))&&(a3==6))&&!(a5==1))&&(a15==1))&&(a27==1))&&(a20==1))))))){ + if((a22==1)){ + a22 = 1; + a18 = 1; + a4 = 1; + a12 = 11; + a3 = 8; + }else{ + a12 = 11; + a22 = 1; + a18 = 0; + a3 = 5; + a6 = 1; + a0 = 1; + } + return -1; + } else if(((a5==1)&&((((a15==1)&&(((!(a0==1)&&((a20==1)&&((input==2)&&(((a3==7)&&((a22==1)&&!(a18==1)))||(((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))))))&&!(a27==1))&&(a12==10)))&&(a6==1))&&(a4==1)))){ + if((a18==1)){ + a12 = 9; + a22 = 1; + a3 = 6; + a18 = 1; + }else{ + a4 = 0; + a27 = 1; + a0 = 1; + a3 = 5; + a22 = 1; + a18 = 0; + a12 = 8; + } + return -1; + } else if((!(a27==1)&&((((((a12==8)&&(!(a5==1)&&((a6==1)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==5))&&!(a0==1)))))&&!(a15==1))&&!(a4==1))&&(a20==1))&&(a3==5)))){ + a0 = 1; + a22 = 0; + a4 = 1; + a15 = 1; + a5 = 1; + a6 = 0; + a18 = 1; + a27 = 1; + return -1; + } else if(((a12==10)&&(((((((((a27==1)&&(((input==6)&&!(a5==1))&&!(a22==1)))&&!(a4==1))&&!(a18==1))&&(a6==1))&&(a0==1))&&(a20==1))&&(a15==1))&&(a3==4)))){ + a27 = 0; + a3 = 8; + a22 = 1; + a6 = 0; + a18 = 1; + a5 = 1; + return 21; + } else if(((!(a22==1)&&(((a5==1)&&((((((a0==1)&&((a20==1)&&(((a18==1)||!(a18==1))&&(input==3))))&&(a3==4))&&!(a27==1))&&(a12==11))&&!(a6==1)))&&(a15==1)))&&!(a4==1))){ + a3 = 6; + a18 = 1; + a27 = 1; + a15 = 0; + a12 = 10; + a4 = 1; + return -1; + } else if((!(a27==1)&&((((((!(a15==1)&&((a12==10)&&((a20==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==2)))))&&(a3==6))&&!(a4==1))&&!(a0==1))&&(a5==1))&&!(a6==1)))){ + a3 = 7; + a15 = 1; + a6 = 1; + a27 = 1; + a0 = 1; + a22 = 1; + a12 = 8; + a18 = 1; + return 21; + } else if((((((((((((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))||(((a6==1)&&((a3==8)&&(!(a22==1)&&(a18==1))))||((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))))&&(input==1))&&(a5==1))&&!(a15==1))&&(a12==8))&&!(a0==1))&&(a27==1))&&(a20==1))&&(a4==1))){ + a3 = 6; + a12 = 10; + a22 = 0; + a15 = 1; + a5 = 0; + a0 = 1; + a18 = 1; + a6 = 0; + return -1; + } else if((!(a27==1)&&((!(a6==1)&&(!(a5==1)&&((a20==1)&&(((((input==5)&&(((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1))))||((a3==6)&&((a18==1)&&(a22==1)))))&&(a0==1))&&!(a15==1))&&!(a4==1)))))&&(a12==10)))){ + a27 = 1; + a4 = 1; + a18 = 1; + a3 = 4; + a5 = 1; + a22 = 1; + a15 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if(((!(a0==1)&&((a20==1)&&(((!(a4==1)&&(((a3==4)&&((a5==1)&&(((input==6)&&(a12==9))&&!(a22==1))))&&!(a18==1)))&&(a15==1))&&!(a6==1))))&&(a27==1))){ + a0 = 1; + a12 = 10; + a3 = 8; + a6 = 1; + return -1; + } else if(((a20==1)&&((((a0==1)&&((a3==6)&&((a12==11)&&((((a6==1)&&((((a18==1)||!(a18==1))&&(input==1))&&!(a4==1)))&&(a15==1))&&!(a27==1)))))&&(a22==1))&&!(a5==1)))){ + a12 = 8; + a4 = 1; + a18 = 1; + return -1; + } else if(((a4==1)&&(!(a27==1)&&((a12==9)&&(!(a15==1)&&((a5==1)&&((a20==1)&&(!(a6==1)&&((((((a22==1)&&(a18==1))&&(a3==5))||((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1)))))&&(input==6))&&(a0==1)))))))))){ + a22 = 0; + a18 = 0; + a3 = 7; + a4 = 0; + a6 = 1; + a15 = 1; + return -1; + } else if(((!(a0==1)&&((a20==1)&&(!(a5==1)&&((a12==9)&&(!(a6==1)&&(((!(a27==1)&&(((input==5)&&(a22==1))&&!(a15==1)))&&(a18==1))&&(a4==1)))))))&&(a3==5))){ + a6 = 1; + a27 = 1; + a12 = 10; + a15 = 1; + a3 = 4; + a0 = 1; + a22 = 0; + return -1; + } else if(((a0==1)&&((a5==1)&&((a4==1)&&((a20==1)&&((a6==1)&&(!(a15==1)&&((a27==1)&&((((((a18==1)&&(a22==1))&&(a3==7))||(((!(a22==1)&&(a18==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6))))&&(input==5))&&(a12==8)))))))))){ + a22 = 1; + a4 = 0; + a15 = 1; + a18 = 1; + a3 = 4; + a5 = 0; + return 24; + } else if(((a5==1)&&((a12==12)&&((((a3==7)&&(((a4==1)&&((a27==1)&&((!(a22==1)&&((input==2)&&((a18==1)||!(a18==1))))&&!(a0==1))))&&!(a6==1)))&&(a20==1))&&(a15==1))))){ + a0 = 1; + a12 = 8; + a6 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + return -1; + } else if((((((a5==1)&&(!(a6==1)&&(!(a4==1)&&((a20==1)&&(((a3==5)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==4)))&&(a15==1))))))&&!(a27==1))&&!(a0==1))&&(a12==11))){ + if((a3==8)){ + a0 = 1; + a22 = 1; + a6 = 1; + a18 = 1; + a12 = 8; + a27 = 1; + }else{ + a12 = 8; + a27 = 1; + a18 = 0; + a0 = 1; + a4 = 1; + a6 = 1; + a22 = 0; + } + return -1; + } else if(((!(a15==1)&&((a20==1)&&((a12==9)&&(((((a0==1)&&(((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==1))&&(a3==7)))&&!(a4==1))&&(a6==1))&&(a5==1)))))&&!(a27==1))){ + a22 = 0; + a12 = 12; + a3 = 4; + a18 = 0; + a15 = 1; + a27 = 1; + return 26; + } else if((((!(a22==1)&&((!(a15==1)&&((((!(a6==1)&&(((a12==12)&&(input==3))&&!(a0==1)))&&!(a4==1))&&!(a5==1))&&(a3==5)))&&(a27==1)))&&!(a18==1))&&(a20==1))){ + a4 = 1; + a27 = 0; + a5 = 1; + a12 = 10; + a22 = 1; + a15 = 1; + return 24; + } else if(((!(a0==1)&&(((((a3==8)&&((a5==1)&&((a4==1)&&(((a15==1)&&((a6==1)&&(input==3)))&&(a20==1)))))&&!(a18==1))&&(a22==1))&&(a27==1)))&&(a12==12))){ + a3 = 7; + a12 = 10; + a4 = 0; + a0 = 1; + a5 = 0; + a15 = 0; + return -1; + } else if(((((a15==1)&&(!(a5==1)&&((a20==1)&&((a4==1)&&((a12==11)&&(((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==2))&&(a0==1))&&(a6==1)))))))&&!(a27==1))&&(a3==8))){ + a4 = 0; + a3 = 5; + a18 = 0; + a12 = 10; + a5 = 1; + a22 = 0; + return -1; + } else if(((((a3==4)&&((a27==1)&&(((a4==1)&&(((((input==3)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a6==1))&&(a12==9))&&(a0==1)))&&(a15==1))))&&(a20==1))&&!(a5==1))){ + a5 = 1; + a12 = 8; + a22 = 1; + a18 = 1; + return -1; + } else if((!(a0==1)&&((a20==1)&&((a12==11)&&(((a27==1)&&((((a6==1)&&(((a4==1)&&(!(a15==1)&&((a18==1)&&(a22==1))))&&(a3==4)))||((((a3==8)&&(!(a4==1)&&((a15==1)&&(!(a22==1)&&(a18==1)))))&&!(a6==1))||(((a3==8)&&(((a15==1)&&(!(a22==1)&&!(a18==1)))&&!(a4==1)))&&!(a6==1))))&&(input==4)))&&(a5==1)))))){ + a0 = 1; + a3 = 7; + a22 = 0; + a6 = 0; + a18 = 1; + a4 = 1; + a12 = 12; + a15 = 1; + return 26; + } else if(((a27==1)&&((a0==1)&&((a15==1)&&(((((a5==1)&&((a3==5)&&(((a12==11)&&((input==1)&&((a18==1)||!(a18==1))))&&!(a22==1))))&&(a4==1))&&(a6==1))&&(a20==1)))))){ + if((a12==10)){ + a4 = 0; + a12 = 10; + a18 = 0; + a3 = 6; + a0 = 0; + a5 = 0; + }else{ + a18 = 0; + a12 = 8; + a0 = 0; + } + return -1; + } else if(((((a3==7)&&((a27==1)&&((a4==1)&&((((((input==2)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&(a20==1))&&(a12==9))&&!(a6==1))&&(a5==1)))))&&!(a0==1))&&(a15==1))){ + a22 = 1; + a0 = 1; + a3 = 5; + a6 = 1; + a5 = 0; + a18 = 0; + a12 = 10; + return 26; + } else if((((a15==1)&&((a3==6)&&((a5==1)&&(!(a22==1)&&((a12==11)&&(((((((a18==1)||!(a18==1))&&(input==6))&&(a20==1))&&!(a4==1))&&!(a6==1))&&(a0==1)))))))&&(a27==1))){ + if((a5==1)){ + a4 = 1; + a22 = 1; + a15 = 0; + a0 = 0; + a6 = 1; + a18 = 1; + }else{ + a15 = 0; + a4 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + a6 = 1; + a12 = 10; + } + return -1; + } else if(((a3==7)&&(!(a4==1)&&((a5==1)&&((a15==1)&&((((a0==1)&&((a12==11)&&((a20==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a27==1)))))&&(a6==1))&&(a22==1))))))){ + if((a22==1)){ + a4 = 1; + a12 = 9; + a0 = 0; + a18 = 0; + a3 = 8; + a15 = 0; + a22 = 0; + }else{ + a12 = 8; + a6 = 0; + a4 = 1; + a18 = 1; + a15 = 0; + a3 = 6; + } + return 24; + } else if(((!(a18==1)&&((!(a4==1)&&((a12==8)&&((a22==1)&&((((a15==1)&&(((a20==1)&&(input==2))&&!(a6==1)))&&(a5==1))&&(a27==1)))))&&(a0==1)))&&(a3==4))){ + a18 = 1; + a3 = 6; + return 21; + } else if(((a15==1)&&((a27==1)&&((!(a6==1)&&((!(a0==1)&&((a4==1)&&(((a20==1)&&((input==4)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&(a3==5))))&&(a5==1)))&&(a12==10))))){ + a22 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + a0 = 1; + a6 = 1; + return -1; + } else if(((a12==12)&&(((a22==1)&&(((!(a6==1)&&(!(a15==1)&&((((a3==7)&&((a27==1)&&(input==1)))&&!(a5==1))&&(a20==1))))&&!(a0==1))&&!(a4==1)))&&(a18==1)))){ + a0 = 1; + a15 = 1; + a5 = 1; + a22 = 0; + a12 = 8; + a4 = 1; + a6 = 1; + return 24; + } else if((((a20==1)&&((((a4==1)&&(((((input==5)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6))))&&(a6==1))&&(a5==1))&&!(a27==1)))&&(a15==1))&&!(a0==1)))&&(a12==11))){ + a22 = 0; + a18 = 1; + a12 = 8; + a27 = 1; + a0 = 1; + a3 = 4; + return 21; + } else if((((a3==8)&&(((!(a5==1)&&(!(a6==1)&&(((!(a4==1)&&((((a18==1)||!(a18==1))&&(input==5))&&(a20==1)))&&(a27==1))&&(a15==1))))&&(a0==1))&&(a12==11)))&&!(a22==1))){ + a6 = 1; + a4 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + a5 = 1; + return -1; + } else if((((a12==9)&&(((a3==5)&&((!(a4==1)&&(!(a22==1)&&(!(a0==1)&&((a6==1)&&(!(a27==1)&&(((a18==1)||!(a18==1))&&(input==1)))))))&&(a5==1)))&&(a20==1)))&&(a15==1))){ + a18 = 1; + a4 = 1; + a0 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if((((a15==1)&&(!(a0==1)&&((a20==1)&&(!(a6==1)&&(((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5))&&!(a4==1))&&(a27==1))&&(a12==11))&&!(a5==1))))))&&(a3==5))){ + a3 = 6; + a27 = 0; + a18 = 0; + a0 = 1; + a22 = 1; + a12 = 9; + return 26; + } else if(((a12==11)&&((((!(a0==1)&&((((((((a22==1)&&(a18==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==5))))&&(input==1))&&(a4==1))&&!(a6==1))&&!(a15==1)))&&!(a5==1))&&(a20==1))&&(a27==1)))){ + a27 = 0; + a0 = 1; + a3 = 6; + a6 = 1; + a18 = 1; + a22 = 1; + a15 = 1; + a4 = 0; + return 24; + } else if(((!(a6==1)&&(((a12==9)&&(!(a4==1)&&(((!(a5==1)&&((input==5)&&((((a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a18==1)&&!(a22==1)))))))&&!(a0==1))&&!(a27==1))))&&(a15==1)))&&(a20==1))){ + a27 = 1; + a3 = 5; + a22 = 0; + a18 = 1; + return 21; + } else if((((a3==4)&&((a12==12)&&((((a15==1)&&(((((input==2)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a6==1))&&(a20==1))&&(a0==1)))&&!(a4==1))&&!(a5==1))))&&(a27==1))){ + a6 = 1; + a12 = 10; + a22 = 1; + a3 = 7; + a18 = 1; + a15 = 0; + a5 = 1; + return 26; + } else if((!(a27==1)&&(((((a15==1)&&(((!(a0==1)&&((a5==1)&&((input==2)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))))&&(a20==1))&&!(a6==1)))&&(a4==1))&&(a3==8))&&(a12==11)))){ + a4 = 0; + a12 = 12; + a6 = 1; + a5 = 0; + a18 = 0; + a22 = 0; + a0 = 1; + return -1; + } else if(((a20==1)&&((!(a27==1)&&((a22==1)&&((a0==1)&&(((a3==8)&&((((a15==1)&&((input==3)&&(a6==1)))&&(a18==1))&&(a4==1)))&&(a12==8)))))&&(a5==1)))){ + a27 = 1; + a22 = 0; + a12 = 10; + return 24; + } else if((((a20==1)&&(!(a5==1)&&(!(a27==1)&&((a6==1)&&(!(a4==1)&&(!(a15==1)&&((a12==9)&&((input==1)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))))))))))&&(a0==1))){ + a27 = 1; + a5 = 1; + a18 = 0; + a22 = 1; + a3 = 7; + a0 = 0; + return -1; + } else if((!(a15==1)&&((((!(a27==1)&&((a12==9)&&((((a20==1)&&((input==5)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))))&&(a3==7))&&!(a5==1))))&&!(a4==1))&&!(a0==1))&&(a6==1)))){ + a18 = 1; + a15 = 1; + a0 = 1; + a22 = 1; + a5 = 1; + a12 = 8; + a3 = 6; + a27 = 1; + return 21; + } else if(((a15==1)&&((a3==4)&&(!(a4==1)&&((((((a12==12)&&(((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==5))&&!(a5==1)))&&(a20==1))&&(a27==1))&&!(a6==1))&&!(a0==1)))))){ + a22 = 1; + a3 = 6; + a12 = 11; + a6 = 1; + a18 = 1; + a27 = 0; + a4 = 1; + return -1; + } else if(((a3==4)&&((((a15==1)&&((a20==1)&&((a6==1)&&((a12==8)&&(!(a5==1)&&(((input==5)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a4==1)))))))&&(a27==1))&&!(a0==1)))){ + a0 = 1; + a18 = 0; + a4 = 0; + a15 = 0; + a12 = 10; + a3 = 5; + a22 = 0; + a27 = 0; + a6 = 0; + return 21; + } else if((((!(a4==1)&&((a6==1)&&(((!(a27==1)&&((((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a3==6))&&(a20==1)))&&!(a15==1))&&(a12==10))))&&(a0==1))&&(a5==1))){ + a5 = 0; + a22 = 1; + a18 = 0; + a15 = 1; + a12 = 9; + a4 = 1; + a3 = 7; + return -1; + } else if(((a20==1)&&((a4==1)&&((((!(a0==1)&&(((a27==1)&&((input==1)&&(((a3==8)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7))))))&&(a12==11)))&&!(a6==1))&&!(a5==1))&&(a15==1))))){ + a18 = 1; + a3 = 4; + a22 = 0; + a15 = 0; + a5 = 1; + a4 = 0; + a0 = 1; + return 24; + } else if((!(a18==1)&&((a3==4)&&((a12==10)&&((a27==1)&&((((!(a15==1)&&((a22==1)&&((a6==1)&&((input==4)&&!(a5==1)))))&&(a20==1))&&!(a0==1))&&(a4==1))))))){ + a0 = 1; + a15 = 1; + a18 = 1; + a5 = 1; + a12 = 8; + return -1; + } else if((((a12==12)&&(!(a0==1)&&(((a27==1)&&(((((a20==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a22==1)))&&(a3==8))&&!(a6==1))&&(a15==1)))&&(a5==1))))&&!(a4==1))){ + a0 = 1; + a18 = 1; + a22 = 0; + a3 = 4; + a15 = 0; + a12 = 11; + return -1; + } else if((!(a6==1)&&(((!(a18==1)&&(((!(a15==1)&&((a20==1)&&((((input==1)&&!(a27==1))&&(a4==1))&&!(a22==1))))&&(a12==8))&&!(a0==1)))&&(a3==5))&&!(a5==1)))){ + a3 = 8; + a5 = 1; + a0 = 1; + a4 = 0; + a18 = 1; + a12 = 11; + a27 = 1; + return -1; + } else if(((((!(a22==1)&&(((((a15==1)&&(((a5==1)&&((input==4)&&!(a6==1)))&&(a0==1)))&&(a20==1))&&(a4==1))&&!(a27==1)))&&(a18==1))&&(a3==6))&&(a12==8))){ + a27 = 1; + a3 = 7; + a22 = 1; + a4 = 0; + a12 = 12; + a0 = 0; + return 21; + } else if(((a12==8)&&((a20==1)&&((!(a27==1)&&(!(a6==1)&&(!(a4==1)&&(((!(a0==1)&&((input==6)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))))&&(a15==1))&&!(a5==1)))))&&(a3==5))))){ + a22 = 0; + a15 = 0; + a12 = 9; + a3 = 7; + a5 = 1; + a4 = 1; + a18 = 0; + a0 = 1; + return 26; + } else if(((((a4==1)&&(((a15==1)&&(((!(a0==1)&&((input==4)&&(((!(a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==8))))))&&!(a27==1))&&(a20==1)))&&(a5==1)))&&(a6==1))&&(a12==10))){ + a22 = 1; + a3 = 4; + a27 = 1; + a12 = 8; + a0 = 1; + a4 = 0; + a6 = 0; + a18 = 1; + return -1; + } else if((!(a27==1)&&((a6==1)&&((a20==1)&&((a12==10)&&((a5==1)&&(!(a4==1)&&(!(a15==1)&&(!(a0==1)&&((input==6)&&(((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==5))))))))))))){ + a18 = 0; + a5 = 0; + a3 = 4; + a15 = 1; + a0 = 1; + a4 = 1; + a27 = 1; + a12 = 12; + a22 = 1; + return -1; + } else if((((a20==1)&&(!(a5==1)&&(!(a4==1)&&((a12==10)&&((!(a0==1)&&(!(a27==1)&&(((((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==2))))&&(a6==1))))))&&(a15==1))){ + a22 = 1; + a3 = 5; + a12 = 8; + a4 = 1; + a18 = 1; + a5 = 1; + return -1; + } else if((((a3==6)&&(((a20==1)&&((!(a27==1)&&(!(a0==1)&&((a15==1)&&((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==2))&&(a12==8)))))&&!(a4==1)))&&!(a6==1)))&&!(a5==1))){ + a18 = 1; + a5 = 1; + a22 = 0; + a0 = 1; + a27 = 1; + a3 = 4; + a6 = 1; + return 26; + } else if((!(a27==1)&&(!(a15==1)&&((!(a0==1)&&((a12==9)&&(((!(a5==1)&&(((input==5)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&(a20==1)))&&(a4==1))&&(a6==1))))&&(a3==6))))){ + a15 = 1; + a18 = 1; + a12 = 8; + a22 = 1; + a0 = 1; + a3 = 4; + a5 = 1; + a6 = 0; + a27 = 1; + a4 = 0; + return -1; + } else if(((!(a5==1)&&((a20==1)&&(((((!(a4==1)&&(((a3==8)&&((a0==1)&&(input==5)))&&!(a18==1)))&&!(a15==1))&&!(a22==1))&&!(a6==1))&&!(a27==1))))&&(a12==8))){ + a4 = 1; + a22 = 1; + a27 = 1; + a6 = 1; + a15 = 1; + a3 = 4; + a18 = 1; + a5 = 1; + return -1; + } else if(((a12==12)&&(((((!(a6==1)&&(((((input==4)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&(a3==7))&&!(a15==1))&&(a20==1)))&&(a27==1))&&(a4==1))&&!(a0==1))&&(a5==1)))){ + a18 = 1; + a12 = 8; + a22 = 0; + a3 = 5; + a15 = 1; + a0 = 1; + return 26; + } else if(((a20==1)&&((((a4==1)&&(!(a0==1)&&(((a12==9)&&(!(a15==1)&&(((input==4)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a5==1))))&&(a3==4))))&&(a27==1))&&!(a6==1)))){ + a18 = 0; + a12 = 12; + a0 = 1; + a3 = 5; + a22 = 1; + a5 = 1; + a4 = 0; + a15 = 1; + return 21; + } else if(((((a3==8)&&(((a5==1)&&(!(a4==1)&&(((a22==1)&&(((a12==11)&&((input==1)&&!(a6==1)))&&(a0==1)))&&!(a27==1))))&&!(a18==1)))&&!(a15==1))&&(a20==1))){ + a12 = 8; + a27 = 1; + a3 = 7; + a15 = 1; + a18 = 1; + return -1; + } else if((((!(a0==1)&&(!(a6==1)&&((a4==1)&&(!(a18==1)&&((a27==1)&&(((!(a15==1)&&((input==2)&&(a12==8)))&&!(a22==1))&&(a3==8)))))))&&(a5==1))&&(a20==1))){ + a3 = 4; + a0 = 1; + a4 = 0; + a6 = 1; + a12 = 10; + a27 = 0; + return 21; + } else if((((a3==4)&&(((a0==1)&&((a20==1)&&((((((input==4)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&(a4==1))&&(a5==1))&&!(a15==1))&&(a12==12))))&&(a6==1)))&&!(a27==1))){ + a6 = 0; + a18 = 0; + a3 = 6; + a4 = 0; + a22 = 1; + a12 = 10; + return -1; + } else if((((a27==1)&&((((((a20==1)&&(((input==2)&&((((a18==1)&&(a22==1))&&(a3==5))||(((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1))))))&&!(a4==1)))&&(a12==12))&&(a6==1))&&(a15==1))&&!(a0==1)))&&(a5==1))){ + a0 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if(((a12==11)&&((a5==1)&&((a3==6)&&(!(a27==1)&&((a6==1)&&(!(a4==1)&&((((a15==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==6)))&&!(a0==1))&&(a20==1))))))))){ + a27 = 1; + a12 = 10; + a18 = 1; + a22 = 0; + a4 = 1; + a3 = 7; + a6 = 0; + return 21; + } else if(((a12==11)&&(((a22==1)&&((!(a15==1)&&(((a3==7)&&((a0==1)&&((a20==1)&&((a5==1)&&(((a18==1)||!(a18==1))&&(input==5))))))&&(a4==1)))&&!(a27==1)))&&!(a6==1)))){ + if((a18==1)){ + a0 = 0; + a3 = 8; + a18 = 0; + a27 = 1; + a12 = 8; + a22 = 0; + }else{ + a18 = 1; + a3 = 4; + a12 = 9; + a15 = 1; + } + return -1; + } else if((((a3==4)&&(((a20==1)&&(((((a0==1)&&(((input==6)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&(a12==12)))&&!(a15==1))&&(a6==1))&&!(a27==1)))&&!(a5==1)))&&!(a4==1))){ + a4 = 1; + a22 = 1; + a15 = 1; + a27 = 1; + a18 = 1; + a5 = 1; + a12 = 8; + return -1; + } else if(((a12==8)&&(((!(a15==1)&&(!(a0==1)&&(((a20==1)&&(((!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1))))||(((a6==1)&&((a3==8)&&(!(a22==1)&&(a18==1))))||((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))))&&(input==6)))&&!(a5==1))))&&!(a27==1))&&!(a4==1)))){ + a4 = 1; + a15 = 1; + a22 = 1; + a6 = 0; + a3 = 4; + a5 = 1; + a12 = 10; + a18 = 1; + return -1; + } else if(((a12==9)&&((a5==1)&&(!(a0==1)&&((a6==1)&&((a20==1)&&((((((((a18==1)&&(a22==1))&&(a3==5))||(((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1)))))&&(input==6))&&!(a4==1))&&(a27==1))&&!(a15==1)))))))){ + a22 = 1; + a15 = 1; + a12 = 8; + a0 = 1; + a18 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if(((!(a15==1)&&((a5==1)&&(!(a6==1)&&((a20==1)&&(((a12==9)&&(!(a22==1)&&(!(a0==1)&&((!(a18==1)&&(input==2))&&(a3==7)))))&&!(a4==1))))))&&(a27==1))){ + if((a6==1)){ + a18 = 1; + a3 = 6; + a4 = 1; + a5 = 0; + }else{ + a3 = 4; + a0 = 1; + a22 = 1; + a18 = 1; + a12 = 11; + a15 = 1; + } + return -1; + } else if(((!(a0==1)&&((a3==6)&&(((a6==1)&&(((a18==1)&&((((a5==1)&&((input==4)&&(a4==1)))&&(a12==9))&&(a20==1)))&&!(a15==1)))&&!(a27==1))))&&!(a22==1))){ + a27 = 1; + a15 = 1; + a12 = 8; + a4 = 0; + a3 = 7; + a0 = 1; + a22 = 1; + return 26; + } else if((((a4==1)&&((a20==1)&&(((a0==1)&&((((a3==7)&&(((a5==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&!(a27==1)))&&(a12==8))&&(a22==1)))&&!(a6==1))))&&(a15==1))){ + a15 = 0; + a18 = 0; + a5 = 0; + a3 = 8; + a12 = 12; + a6 = 1; + return -1; + } else if(((a4==1)&&((a0==1)&&((a15==1)&&((!(a6==1)&&(!(a5==1)&&(((a27==1)&&(((((a18==1)&&(a22==1))&&(a3==5))||((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1)))))&&(input==1)))&&(a12==9))))&&(a20==1)))))){ + a3 = 5; + a27 = 0; + a22 = 1; + a15 = 0; + a12 = 8; + a4 = 0; + a5 = 1; + a6 = 1; + a18 = 1; + return 21; + } else if(((((a4==1)&&(((a20==1)&&(!(a6==1)&&((!(a0==1)&&((a3==7)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==5))))&&(a27==1))))&&!(a5==1)))&&(a15==1))&&(a12==10))){ + a22 = 1; + a0 = 1; + a6 = 1; + a5 = 1; + a18 = 1; + return -1; + } else if(((a20==1)&&(!(a0==1)&&((a5==1)&&((a12==10)&&((a3==8)&&(!(a15==1)&&(!(a6==1)&&(!(a27==1)&&(!(a4==1)&&((input==3)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))))))))){ + a18 = 1; + a12 = 8; + a4 = 1; + a3 = 5; + a15 = 1; + a22 = 0; + a27 = 1; + a0 = 1; + return -1; + } else if((((a5==1)&&((a15==1)&&((((a4==1)&&(((((((a22==1)&&!(a18==1))&&(a3==8))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8))))&&(input==5))&&!(a0==1))&&(a20==1)))&&!(a6==1))&&(a27==1))))&&(a12==9))){ + a0 = 1; + a6 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + return -1; + } else if((!(a15==1)&&(!(a0==1)&&((((a4==1)&&((a20==1)&&((a12==11)&&(((a6==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==6)))&&(a5==1)))))&&(a3==8))&&(a27==1))))){ + a18 = 1; + a0 = 1; + a12 = 8; + a3 = 4; + a15 = 1; + a22 = 1; + return -1; + } else if((!(a22==1)&&((((a6==1)&&((!(a15==1)&&((((a20==1)&&((!(a18==1)&&(input==5))&&(a12==8)))&&(a3==8))&&(a0==1)))&&(a5==1)))&&(a4==1))&&(a27==1)))){ + a15 = 1; + a4 = 0; + a22 = 1; + a5 = 0; + a3 = 6; + a6 = 0; + return 21; + } else if(((a4==1)&&(((a5==1)&&(((((a27==1)&&((a20==1)&&((input==2)&&(((!(a18==1)&&(a22==1))&&(a3==6))||(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))))))&&(a6==1))&&(a0==1))&&(a12==12)))&&(a15==1)))){ + a15 = 0; + a4 = 0; + a3 = 4; + a18 = 1; + a12 = 10; + a22 = 1; + a6 = 0; + return -1; + } else if((((a27==1)&&((a3==8)&&((!(a6==1)&&((a4==1)&&(((a12==11)&&(!(a22==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a20==1))))&&(a5==1))))&&(a0==1))))&&(a15==1))){ + a22 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + a6 = 1; + return -1; + } else if(((a5==1)&&(!(a4==1)&&((!(a0==1)&&((a12==10)&&((((input==3)&&((!(a6==1)&&((a3==4)&&((a22==1)&&!(a18==1))))||((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||(!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1)))))))&&(a27==1))&&(a20==1))))&&!(a15==1))))){ + a5 = 0; + a12 = 9; + a0 = 1; + a18 = 1; + a6 = 0; + a22 = 1; + a3 = 8; + return 24; + } else if((((a27==1)&&(((a20==1)&&((a3==7)&&((a22==1)&&((a15==1)&&(!(a6==1)&&((a0==1)&&((((a18==1)||!(a18==1))&&(input==6))&&(a12==11))))))))&&!(a5==1)))&&!(a4==1))){ + a12 = 8; + a4 = 1; + a6 = 1; + a18 = 1; + a5 = 1; + a3 = 4; + return -1; + } else if((((((a6==1)&&(!(a0==1)&&((a5==1)&&(!(a15==1)&&((a20==1)&&(((input==3)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&(a27==1)))))))&&(a3==7))&&(a12==8))&&!(a4==1))){ + if((a0==1)){ + a18 = 0; + a22 = 1; + a12 = 10; + a4 = 1; + }else{ + a4 = 1; + a12 = 11; + a3 = 8; + a22 = 1; + a18 = 1; + a0 = 1; + } + return 24; + } else if((((a0==1)&&(((!(a4==1)&&(!(a27==1)&&((a20==1)&&((a12==8)&&((input==3)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==6))))))))&&(a15==1))&&!(a6==1)))&&!(a5==1))){ + a15 = 0; + a3 = 7; + a6 = 1; + a18 = 1; + a22 = 1; + a27 = 1; + a12 = 11; + a4 = 1; + return 24; + } else if((((((!(a6==1)&&(!(a5==1)&&(((((a3==8)&&(!(a0==1)&&(input==1)))&&(a12==10))&&!(a4==1))&&(a20==1))))&&(a15==1))&&(a18==1))&&(a22==1))&&(a27==1))){ + a22 = 0; + a6 = 1; + a15 = 0; + a5 = 1; + a3 = 7; + a0 = 1; + a18 = 0; + a12 = 11; + return -1; + } else if((((a0==1)&&((a15==1)&&(!(a5==1)&&((a27==1)&&(((input==4)&&((!(a6==1)&&(((!(a22==1)&&!(a18==1))&&(a4==1))&&(a3==8)))||((a6==1)&&((a3==4)&&(!(a4==1)&&((a22==1)&&(a18==1)))))))&&(a12==11))))))&&(a20==1))){ + a6 = 0; + a5 = 1; + a4 = 0; + a27 = 0; + a15 = 0; + a22 = 0; + a3 = 6; + a18 = 1; + return 26; + } else if((!(a4==1)&&(((((a3==5)&&(((((((input==5)&&!(a5==1))&&(a6==1))&&(a27==1))&&(a15==1))&&!(a18==1))&&(a22==1)))&&(a20==1))&&(a0==1))&&(a12==9)))){ + a4 = 1; + a18 = 1; + a27 = 0; + a6 = 0; + a12 = 8; + a3 = 7; + return 21; + } else if(((a4==1)&&((a20==1)&&(!(a15==1)&&(((a5==1)&&(!(a27==1)&&((((input==2)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))||((a3==6)&&((a22==1)&&!(a18==1)))))&&!(a0==1))&&(a12==11))))&&!(a6==1)))))){ + a0 = 1; + a3 = 6; + a18 = 1; + a6 = 1; + a12 = 8; + a27 = 1; + a4 = 0; + a22 = 1; + a15 = 1; + return 21; + } else if(((a5==1)&&(((a12==10)&&(!(a15==1)&&((a3==7)&&((a6==1)&&(((!(a27==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6)))&&(a0==1))&&!(a4==1))))))&&(a20==1)))){ + a18 = 0; + a12 = 11; + a27 = 1; + a3 = 5; + a15 = 1; + a22 = 1; + return 21; + } else if(((a6==1)&&((a3==5)&&(((a20==1)&&(!(a22==1)&&(((a15==1)&&((((a5==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a27==1))&&(a12==8)))&&(a4==1))))&&!(a0==1))))){ + a12 = 10; + a15 = 0; + a18 = 0; + a0 = 1; + a3 = 6; + a6 = 0; + return -1; + } else if((((a0==1)&&((a4==1)&&(!(a15==1)&&((!(a5==1)&&((!(a27==1)&&((input==1)&&((((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==7)))))&&(a12==10)))&&!(a6==1)))))&&(a20==1))){ + if((a22==1)){ + a22 = 0; + a18 = 0; + a27 = 1; + a4 = 0; + a3 = 5; + a5 = 1; + a12 = 8; + a0 = 0; + }else{ + a18 = 1; + a3 = 6; + a22 = 0; + a12 = 11; + a5 = 1; + } + return 26; + } else if(((a20==1)&&(((((((a15==1)&&((a4==1)&&(!(a5==1)&&((a6==1)&&((input==3)&&((a18==1)||!(a18==1)))))))&&(a27==1))&&(a3==8))&&(a0==1))&&(a12==8))&&!(a22==1)))){ + a18 = 1; + a5 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((a15==1)&&(((a27==1)&&((((a3==4)&&((!(a6==1)&&(((input==5)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&(a0==1)))&&(a4==1)))&&(a12==11))&&!(a5==1)))&&(a20==1)))){ + a5 = 1; + a27 = 0; + a15 = 0; + a6 = 1; + a18 = 0; + a22 = 0; + a4 = 0; + return 26; + } else if((((((a3==8)&&((a12==9)&&(((!(a22==1)&&((a0==1)&&((!(a15==1)&&(input==4))&&!(a5==1))))&&!(a18==1))&&(a6==1))))&&!(a4==1))&&(a20==1))&&!(a27==1))){ + a5 = 1; + a18 = 1; + a6 = 0; + a12 = 11; + return 21; + } else if(((a20==1)&&(!(a4==1)&&(!(a27==1)&&((((a5==1)&&((a12==9)&&((((((a18==1)&&(a22==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1)))))&&(input==6))&&(a6==1))))&&!(a15==1))&&(a0==1)))))){ + a27 = 1; + a15 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + a4 = 1; + a12 = 8; + return -1; + } else if(((a12==8)&&(((a15==1)&&(!(a6==1)&&((!(a27==1)&&(((((input==2)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&(a4==1))&&(a20==1))&&(a3==8)))&&(a0==1))))&&!(a5==1)))){ + if((a18==1)){ + a27 = 1; + a18 = 0; + a4 = 0; + a3 = 6; + a12 = 9; + a22 = 0; + a0 = 0; + }else{ + a12 = 10; + a4 = 0; + a27 = 1; + a15 = 0; + a3 = 4; + a22 = 0; + a18 = 1; + } + return 21; + } else if(((a27==1)&&((a3==8)&&(((a0==1)&&((a12==8)&&((a15==1)&&(((((input==5)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&!(a6==1))&&(a4==1))&&(a20==1)))))&&!(a5==1))))){ + a12 = 10; + a5 = 1; + a22 = 0; + a18 = 0; + a3 = 5; + return 26; + } else if((!(a0==1)&&((!(a5==1)&&((a4==1)&&(((a20==1)&&((a27==1)&&((a6==1)&&(((((a18==1)||!(a18==1))&&(input==5))&&(a3==8))&&(a22==1)))))&&(a12==11))))&&!(a15==1)))){ + a12 = 10; + a0 = 1; + a18 = 1; + a3 = 5; + return -1; + } else if((((((a4==1)&&((a12==11)&&(!(a5==1)&&((((input==5)&&((((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==5))))&&!(a15==1))&&(a6==1)))))&&!(a0==1))&&(a27==1))&&(a20==1))){ + a6 = 0; + a15 = 1; + a3 = 6; + a22 = 1; + a18 = 1; + a0 = 1; + return 24; + } else if(((a20==1)&&((a3==5)&&((((a27==1)&&((a12==12)&&(((a15==1)&&((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==5))&&(a4==1)))&&(a5==1))))&&(a6==1))&&(a0==1))))){ + a18 = 0; + a4 = 0; + a22 = 1; + a12 = 10; + a15 = 0; + a3 = 8; + return -1; + } else if(((((((a3==8)&&((a12==11)&&(((a27==1)&&(!(a15==1)&&((input==5)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))))&&(a5==1))))&&!(a4==1))&&(a20==1))&&(a6==1))&&!(a0==1))){ + a0 = 1; + a18 = 1; + a15 = 1; + a12 = 8; + a4 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if((!(a5==1)&&((((((a12==11)&&((a15==1)&&(((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==1))&&(a0==1))&&!(a4==1))))&&(a20==1))&&(a3==7))&&!(a6==1))&&!(a27==1)))){ + a22 = 1; + a18 = 0; + a4 = 1; + a5 = 1; + a12 = 10; + return -1; + } return calculate_output39(input); + } + + int calculate_output39(int input) { + if(((((((a4==1)&&(((a27==1)&&((!(a0==1)&&((input==4)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&(a3==7)))&&(a15==1)))&&!(a5==1))&&(a12==12))&&(a6==1))&&(a20==1))){ + a4 = 0; + a0 = 1; + a5 = 1; + a12 = 8; + a22 = 1; + a18 = 1; + return -1; + } else if((!(a5==1)&&(!(a6==1)&&(((!(a27==1)&&(!(a15==1)&&((a12==8)&&((a0==1)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==2))))))&&(a20==1))&&!(a4==1))))){ + a3 = 6; + a18 = 0; + a22 = 0; + return 21; + } else if((((a12==10)&&((!(a27==1)&&(((a3==8)&&(((a5==1)&&(!(a6==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a15==1))))&&!(a0==1)))&&!(a22==1)))&&(a20==1)))&&!(a4==1))){ + if((a22==1)){ + a6 = 1; + a0 = 1; + a18 = 0; + a4 = 1; + a3 = 5; + a27 = 1; + a12 = 8; + }else{ + a27 = 1; + a12 = 12; + a18 = 0; + a15 = 0; + a4 = 1; + a0 = 1; + a3 = 6; + } + return 24; + } else if(((((a20==1)&&(!(a5==1)&&((a12==12)&&(((a0==1)&&((a22==1)&&((((a3==8)&&(input==2))&&(a6==1))&&!(a15==1))))&&(a27==1)))))&&(a18==1))&&(a4==1))){ + a4 = 0; + a3 = 4; + a22 = 0; + a5 = 1; + return -1; + } else if((((a4==1)&&((a0==1)&&((a27==1)&&((a6==1)&&((a3==4)&&(((((a20==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a12==8))&&(a22==1))&&!(a5==1)))))))&&(a15==1))){ + a22 = 0; + a18 = 1; + a12 = 9; + a4 = 0; + a3 = 7; + return 21; + } else if((((a27==1)&&((a20==1)&&(((a22==1)&&(((a12==12)&&((a3==7)&&(((a5==1)&&((input==4)&&((a18==1)||!(a18==1))))&&!(a6==1))))&&(a4==1)))&&(a0==1))))&&!(a15==1))){ + a6 = 1; + a15 = 1; + a22 = 0; + a18 = 0; + return 26; + } else if((((a3==4)&&(((((!(a4==1)&&(!(a5==1)&&(((input==1)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a20==1))))&&(a12==12))&&(a0==1))&&!(a27==1))&&(a15==1)))&&(a6==1))){ + if((a4==1)){ + a27 = 1; + a3 = 7; + a0 = 0; + a22 = 1; + a18 = 0; + a12 = 11; + }else{ + a27 = 1; + a18 = 1; + a22 = 0; + a12 = 9; + a4 = 1; + a0 = 0; + a3 = 7; + } + return 21; + } else if((((((a4==1)&&(!(a6==1)&&(((((a12==11)&&((input==4)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))&&(a3==5))&&(a27==1))&&!(a15==1))))&&(a20==1))&&!(a0==1))&&(a5==1))){ + a4 = 0; + a22 = 1; + a18 = 1; + a15 = 1; + a3 = 6; + a0 = 1; + a12 = 8; + return 21; + } else if(((a20==1)&&(((!(a6==1)&&(!(a5==1)&&(((a0==1)&&((a27==1)&&((((a3==6)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1)))))&&(input==4))))&&!(a4==1))))&&(a15==1))&&(a12==9)))){ + a18 = 1; + a22 = 1; + a12 = 10; + a6 = 1; + a4 = 1; + a3 = 8; + a15 = 0; + return 21; + } else if((((!(a15==1)&&(((a20==1)&&(!(a27==1)&&((((!(a6==1)&&(((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8)))||(((!(a4==1)&&((a22==1)&&(a18==1)))&&(a3==4))&&(a6==1)))||(((a3==4)&&(((a22==1)&&!(a18==1))&&!(a4==1)))&&(a6==1)))&&(input==2))))&&!(a0==1)))&&!(a5==1))&&(a12==11))){ + if((a27==1)){ + a18 = 0; + a3 = 7; + a12 = 8; + a27 = 1; + a6 = 0; + a15 = 1; + a4 = 1; + a5 = 1; + a22 = 0; + }else{ + a6 = 1; + a27 = 1; + a12 = 8; + a4 = 1; + a5 = 1; + a22 = 1; + a18 = 0; + a15 = 1; + a3 = 7; + a0 = 1; + } + return 26; + } else if(((((a3==8)&&(((((a6==1)&&((a4==1)&&((!(a5==1)&&((input==2)&&(a0==1)))&&!(a22==1))))&&(a20==1))&&(a15==1))&&!(a27==1)))&&(a12==9))&&(a18==1))){ + a3 = 5; + a4 = 0; + a12 = 10; + a18 = 0; + return 26; + } else if(((((((!(a4==1)&&((((((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==1))&&!(a0==1))&&(a12==8)))&&(a27==1))&&(a20==1))&&!(a15==1))&&!(a5==1))&&!(a6==1))){ + a5 = 1; + a18 = 0; + a3 = 7; + a22 = 0; + a12 = 11; + return -1; + } else if(((a5==1)&&((((((a20==1)&&(!(a6==1)&&(!(a4==1)&&(((a12==9)&&((input==1)&&((a18==1)||!(a18==1))))&&!(a22==1)))))&&(a3==8))&&!(a15==1))&&(a27==1))&&(a0==1)))){ + a27 = 0; + a18 = 0; + a12 = 8; + a15 = 1; + a3 = 6; + return 21; + } else if((!(a22==1)&&(!(a6==1)&&((a3==8)&&(!(a4==1)&&((((((((input==2)&&((a18==1)||!(a18==1)))&&(a12==10))&&!(a27==1))&&(a15==1))&&!(a0==1))&&(a20==1))&&(a5==1))))))){ + if((a18==1)){ + a6 = 1; + a27 = 1; + a4 = 1; + a3 = 6; + a18 = 1; + a12 = 9; + }else{ + a3 = 7; + a15 = 0; + a27 = 1; + a12 = 8; + a6 = 1; + a18 = 1; + } + return 26; + } else if(((!(a4==1)&&((!(a0==1)&&((a3==7)&&((a12==9)&&(!(a15==1)&&((a22==1)&&(!(a27==1)&&(((a18==1)&&(input==5))&&!(a6==1))))))))&&(a20==1)))&&(a5==1))){ + if((a6==1)){ + a12 = 11; + a18 = 0; + a6 = 1; + a5 = 0; + a3 = 8; + }else{ + a3 = 4; + a12 = 10; + a0 = 1; + a5 = 0; + a6 = 1; + } + return 21; + } else if((!(a6==1)&&((!(a5==1)&&((a15==1)&&(!(a27==1)&&((((((a12==9)&&((input==3)&&!(a18==1)))&&!(a0==1))&&(a20==1))&&(a22==1))&&(a4==1)))))&&(a3==6)))){ + if((a12==11)){ + a12 = 10; + a0 = 1; + a18 = 1; + a4 = 0; + }else{ + a12 = 8; + a4 = 0; + a27 = 1; + a6 = 1; + a3 = 5; + a0 = 1; + a5 = 1; + } + return 21; + } else if((((a12==12)&&(((a20==1)&&((a3==4)&&(!(a27==1)&&(((a0==1)&&((((input==5)&&((a18==1)||!(a18==1)))&&(a22==1))&&(a15==1)))&&!(a6==1)))))&&!(a4==1)))&&(a5==1))){ + a12 = 8; + a3 = 5; + a0 = 0; + a18 = 0; + a27 = 1; + a15 = 0; + a4 = 1; + a22 = 0; + a5 = 0; + return -1; + } else if(((a0==1)&&((a6==1)&&((a15==1)&&((a12==12)&&((a20==1)&&(((a5==1)&&(!(a27==1)&&((input==5)&&(((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==8))))))&&(a4==1)))))))){ + a18 = 1; + a12 = 8; + a27 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((((!(a4==1)&&(((!(a0==1)&&(!(a6==1)&&(!(a22==1)&&((a15==1)&&(((a18==1)||!(a18==1))&&(input==1))))))&&(a27==1))&&(a20==1)))&&(a3==6))&&(a12==10))&&(a5==1))){ + if((a0==1)){ + a12 = 11; + a18 = 0; + a3 = 4; + a5 = 0; + }else{ + a0 = 1; + a18 = 0; + a12 = 9; + a22 = 1; + } + return 21; + } else if(((a3==5)&&((((((a27==1)&&((((a0==1)&&((input==3)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))))&&(a4==1))&&(a15==1)))&&(a5==1))&&(a20==1))&&!(a6==1))&&(a12==9)))){ + a18 = 1; + a12 = 12; + a4 = 0; + a22 = 1; + a3 = 6; + a6 = 1; + return 26; + } else if(((!(a0==1)&&((((a6==1)&&((((a20==1)&&((a27==1)&&((input==4)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))&&(a12==9))&&(a5==1)))&&(a4==1))&&!(a15==1)))&&(a3==7))){ + if((a3==4)){ + a4 = 0; + a22 = 1; + a12 = 10; + a18 = 1; + a3 = 4; + }else{ + a18 = 0; + a0 = 1; + a4 = 0; + a22 = 0; + a6 = 0; + a12 = 11; + a15 = 1; + } + return -1; + } else if((((((a3==7)&&(((a4==1)&&((!(a5==1)&&((a0==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==6))))&&(a15==1)))&&!(a6==1)))&&(a12==10))&&!(a27==1))&&(a20==1))){ + a22 = 1; + a18 = 1; + a12 = 8; + a15 = 0; + a3 = 8; + a5 = 1; + return 21; + } else if((((a0==1)&&((((a18==1)&&(((a6==1)&&((a22==1)&&((a20==1)&&(((a15==1)&&(input==2))&&(a12==11)))))&&(a3==4)))&&!(a27==1))&&(a4==1)))&&!(a5==1))){ + a12 = 8; + a27 = 1; + a5 = 1; + return -1; + } else if(((a12==10)&&(((((!(a4==1)&&(((a27==1)&&((a20==1)&&((input==4)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&!(a15==1)))&&(a3==7))&&(a6==1))&&!(a0==1))&&!(a5==1)))){ + a0 = 1; + a4 = 1; + a3 = 4; + a22 = 0; + a18 = 0; + a5 = 1; + a27 = 0; + a12 = 9; + return 21; + } else if(((a3==7)&&((a12==10)&&((a20==1)&&((a6==1)&&(!(a5==1)&&((!(a15==1)&&((a27==1)&&(((!(a0==1)&&(input==1))&&!(a18==1))&&!(a4==1))))&&!(a22==1)))))))){ + a22 = 1; + a0 = 1; + a27 = 0; + a15 = 1; + a5 = 1; + a12 = 11; + a3 = 8; + return -1; + } else if((!(a5==1)&&((a4==1)&&(!(a22==1)&&((a6==1)&&(((((!(a15==1)&&((a27==1)&&((input==5)&&((a18==1)||!(a18==1)))))&&(a12==8))&&(a0==1))&&(a3==4))&&(a20==1))))))){ + a18 = 0; + a12 = 10; + a4 = 0; + a15 = 1; + a3 = 7; + return 21; + } else if((((((a12==8)&&((((((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==5))&&(a15==1))&&(a20==1))&&!(a4==1))&&!(a6==1)))&&!(a27==1))&&!(a5==1))&&(a0==1))){ + a5 = 1; + a27 = 1; + a18 = 1; + a3 = 4; + a6 = 1; + a22 = 1; + a4 = 1; + return -1; + } else if((!(a4==1)&&((!(a6==1)&&(((a0==1)&&((a15==1)&&((a5==1)&&(((input==5)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8))))&&!(a27==1)))))&&(a12==12)))&&(a20==1)))){ + if((a6==1)){ + a12 = 8; + a27 = 1; + a4 = 1; + a18 = 0; + a22 = 0; + a5 = 0; + a0 = 0; + a3 = 4; + }else{ + a18 = 0; + a22 = 0; + a5 = 0; + a12 = 8; + a3 = 5; + a0 = 0; + a27 = 1; + a4 = 1; + } + return 24; + } else if(((((a27==1)&&(!(a6==1)&&((a5==1)&&((a4==1)&&(((a18==1)&&((a12==10)&&((a20==1)&&((input==4)&&!(a0==1)))))&&(a15==1))))))&&(a3==8))&&!(a22==1))){ + a12 = 8; + a22 = 1; + a6 = 1; + a0 = 1; + a3 = 4; + return -1; + } else if(((((a27==1)&&((a15==1)&&((((a12==10)&&(!(a0==1)&&((input==4)&&(((a3==5)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1))))))))&&(a5==1))&&!(a6==1))))&&(a4==1))&&(a20==1))){ + if((a4==1)){ + a5 = 0; + a18 = 1; + a22 = 0; + a6 = 1; + a3 = 5; + }else{ + a0 = 1; + a4 = 0; + a6 = 1; + a3 = 5; + a15 = 0; + a18 = 1; + a22 = 1; + } + return 26; + } else if(((((!(a4==1)&&((a20==1)&&((a27==1)&&(((!(a5==1)&&((a0==1)&&((input==2)&&((a18==1)||!(a18==1)))))&&!(a6==1))&&(a3==5)))))&&(a22==1))&&!(a15==1))&&(a12==8))){ + a5 = 1; + a15 = 1; + a6 = 1; + a4 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((((((a20==1)&&((((((a12==8)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==3)))&&!(a4==1))&&(a5==1))&&!(a6==1))&&(a3==5)))&&(a0==1))&&!(a27==1))&&(a15==1))){ + a27 = 1; + a6 = 1; + a18 = 0; + a0 = 0; + a22 = 1; + return 26; + } else if(((a12==10)&&(!(a0==1)&&(((((((a20==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6))&&!(a27==1)))&&!(a5==1))&&(a6==1))&&!(a15==1))&&(a4==1))&&(a3==6))))){ + if((a15==1)){ + a12 = 11; + a27 = 1; + a18 = 0; + a6 = 0; + a5 = 1; + a22 = 1; + }else{ + a12 = 8; + a22 = 0; + a4 = 0; + a18 = 0; + a3 = 8; + a0 = 1; + } + return 24; + } else if(((a5==1)&&(!(a0==1)&&((a6==1)&&((a20==1)&&((a15==1)&&((((a3==6)&&((a4==1)&&((input==3)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))&&!(a27==1))&&(a12==11)))))))){ + a22 = 1; + a12 = 8; + a6 = 0; + a18 = 1; + a15 = 0; + a0 = 1; + return 26; + } else if((((!(a4==1)&&((a6==1)&&((a0==1)&&((a5==1)&&((((input==5)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1)))))&&(a12==11))&&(a20==1))))))&&(a27==1))&&(a15==1))){ + a3 = 7; + a22 = 1; + a4 = 1; + a15 = 0; + a6 = 0; + a18 = 0; + a12 = 10; + return -1; + } else if((((a12==12)&&((a3==6)&&(!(a0==1)&&((a27==1)&&(!(a6==1)&&(((((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==6))&&(a4==1))&&(a15==1))&&(a20==1)))))))&&!(a5==1))){ + a22 = 0; + a0 = 1; + a18 = 1; + a5 = 1; + a12 = 8; + a3 = 7; + return 26; + } else if(((a5==1)&&((((((a27==1)&&((a15==1)&&(((a12==9)&&((input==5)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))&&(a20==1))))&&!(a0==1))&&!(a4==1))&&(a3==4))&&!(a6==1)))){ + a6 = 1; + a3 = 5; + a27 = 0; + a0 = 1; + a22 = 0; + a18 = 0; + a4 = 1; + return 21; + } else if(((a20==1)&&((a6==1)&&((a4==1)&&((!(a27==1)&&(!(a15==1)&&(((!(a0==1)&&((input==1)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&(a5==1))&&(a12==10))))&&(a3==8)))))){ + if((a5==1)){ + a22 = 1; + a15 = 1; + a6 = 0; + a12 = 8; + a27 = 1; + a0 = 1; + a18 = 0; + }else{ + a12 = 8; + a18 = 1; + a0 = 1; + a22 = 0; + a6 = 0; + a27 = 1; + a3 = 7; + a15 = 1; + } + return -1; + } else if(((((a20==1)&&((a3==8)&&(((a6==1)&&(((a12==9)&&(!(a15==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6))))&&!(a5==1)))&&!(a27==1))))&&(a4==1))&&!(a0==1))){ + if((a3==7)){ + a4 = 0; + a5 = 1; + a15 = 1; + a27 = 1; + a22 = 1; + a12 = 8; + a0 = 1; + a18 = 0; + }else{ + a18 = 1; + a15 = 1; + a6 = 0; + a3 = 7; + a22 = 1; + } + return -1; + } else if((!(a22==1)&&(!(a15==1)&&((((((a12==12)&&(((a5==1)&&((a0==1)&&((input==5)&&((a18==1)||!(a18==1)))))&&(a6==1)))&&(a20==1))&&!(a27==1))&&(a4==1))&&(a3==8))))){ + a15 = 1; + a3 = 4; + a18 = 1; + a27 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if((!(a4==1)&&(!(a5==1)&&((!(a27==1)&&((a12==8)&&(((a3==4)&&(!(a15==1)&&((a6==1)&&((input==5)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))))&&(a0==1))))&&(a20==1))))){ + a27 = 1; + a15 = 1; + a18 = 1; + a4 = 1; + a22 = 1; + a5 = 1; + return -1; + } else if(((a3==8)&&(!(a5==1)&&((a0==1)&&(!(a22==1)&&(((((a20==1)&&((a18==1)&&((!(a6==1)&&(input==6))&&!(a27==1))))&&(a4==1))&&(a12==12))&&!(a15==1))))))){ + if((a6==1)){ + a3 = 5; + a6 = 1; + a12 = 11; + a4 = 0; + a15 = 1; + a0 = 0; + a22 = 1; + a27 = 1; + }else{ + a4 = 0; + a27 = 1; + a22 = 1; + a12 = 11; + a6 = 1; + } + return -1; + } else if(((a3==4)&&(((((a6==1)&&((a20==1)&&((a4==1)&&((((input==3)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&!(a0==1))&&(a27==1)))))&&(a12==12))&&!(a5==1))&&(a15==1)))){ + if((a18==1)){ + a5 = 1; + a3 = 5; + a18 = 1; + a0 = 1; + a22 = 1; + a12 = 8; + }else{ + a18 = 0; + a6 = 0; + a12 = 8; + a0 = 1; + a3 = 7; + a22 = 0; + a5 = 1; + } + return 24; + } else if((((((((a0==1)&&((a6==1)&&(((a12==12)&&(!(a4==1)&&((input==4)&&((a18==1)||!(a18==1)))))&&(a20==1))))&&(a3==8))&&!(a15==1))&&(a27==1))&&(a22==1))&&(a5==1))){ + a6 = 0; + a12 = 10; + a15 = 1; + a18 = 1; + a5 = 0; + a0 = 0; + return 24; + } else if((((((((a12==8)&&(!(a22==1)&&((((a0==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a6==1))&&!(a4==1))))&&!(a27==1))&&(a5==1))&&(a20==1))&&(a3==5))&&!(a15==1))){ + a6 = 0; + a12 = 11; + a5 = 0; + a3 = 8; + a27 = 1; + a18 = 0; + return -1; + } else if(((((a12==8)&&(((((a3==4)&&(!(a15==1)&&(((input==2)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&(a20==1))))&&(a6==1))&&!(a27==1))&&!(a4==1)))&&!(a0==1))&&!(a5==1))){ + if((a3==6)){ + a6 = 0; + a27 = 1; + a4 = 1; + a12 = 12; + a22 = 1; + a0 = 1; + a15 = 1; + a18 = 1; + a3 = 5; + }else{ + a12 = 12; + a6 = 0; + a27 = 1; + a15 = 1; + a18 = 1; + a5 = 1; + a3 = 5; + a22 = 1; + } + return -1; + } else if((!(a15==1)&&((((a27==1)&&((a5==1)&&((a12==8)&&(((a3==7)&&((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==5))&&!(a4==1)))&&(a20==1)))))&&!(a6==1))&&(a0==1)))){ + a12 = 9; + a4 = 1; + a22 = 0; + a5 = 0; + a18 = 1; + a3 = 5; + a15 = 1; + return 21; + } else if(((a5==1)&&(!(a0==1)&&((((a15==1)&&((a12==8)&&((((((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4))))||((((a22==1)&&!(a18==1))&&(a3==4))&&!(a6==1)))&&(input==2))&&(a20==1))))&&(a27==1))&&!(a4==1))))){ + a22 = 1; + a6 = 1; + a0 = 1; + a3 = 4; + a4 = 1; + a18 = 1; + return -1; + } else if(((a5==1)&&((a3==4)&&(((!(a6==1)&&((((a15==1)&&((a20==1)&&(!(a27==1)&&((input==6)&&((a18==1)||!(a18==1))))))&&(a12==12))&&!(a4==1)))&&(a0==1))&&(a22==1))))){ + a18 = 1; + a12 = 9; + a0 = 0; + a6 = 1; + a3 = 6; + a5 = 0; + a15 = 0; + a27 = 1; + a22 = 0; + return -1; + } else if(((a12==12)&&((a6==1)&&((a3==4)&&((((!(a27==1)&&(((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==3))&&(a4==1))&&!(a15==1)))&&(a0==1))&&(a20==1))&&!(a5==1)))))){ + if((a20==1)){ + a3 = 5; + a4 = 0; + a15 = 1; + a0 = 0; + a5 = 1; + a12 = 8; + a22 = 1; + a18 = 0; + a27 = 1; + }else{ + a3 = 6; + a12 = 10; + a27 = 1; + a22 = 1; + a0 = 0; + a18 = 0; + } + return -1; + } else if((!(a15==1)&&(((a5==1)&&(((!(a27==1)&&(((a12==8)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a20==1)))&&(a0==1)))&&!(a6==1))&&(a4==1)))&&(a3==4)))){ + a0 = 0; + a22 = 0; + a3 = 6; + a5 = 0; + a4 = 0; + a12 = 10; + a18 = 1; + a27 = 1; + a6 = 1; + a15 = 1; + return 21; + } else if(((a20==1)&&(((a12==10)&&((a3==6)&&(((((a15==1)&&((a5==1)&&((((a18==1)||!(a18==1))&&(input==3))&&(a27==1))))&&!(a22==1))&&!(a4==1))&&!(a0==1))))&&!(a6==1)))){ + a12 = 8; + a22 = 1; + a6 = 1; + a3 = 4; + a4 = 1; + a0 = 1; + a18 = 1; + return -1; + } else if(((a0==1)&&((a3==5)&&((((a27==1)&&(((a5==1)&&((((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a12==12))&&(a20==1)))&&(a6==1)))&&(a15==1))&&!(a4==1))))){ + a6 = 0; + a18 = 1; + a5 = 0; + a3 = 6; + a0 = 0; + a22 = 1; + a12 = 11; + return 24; + } else if((((a20==1)&&(((!(a15==1)&&(!(a4==1)&&((!(a6==1)&&((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==6)))&&!(a5==1))))&&!(a27==1))&&(a12==12)))&&(a0==1))){ + a15 = 1; + a4 = 1; + a3 = 4; + a27 = 1; + a22 = 1; + a5 = 1; + a18 = 1; + return 21; + } else if((!(a15==1)&&(((a3==7)&&(!(a0==1)&&(((a5==1)&&((a6==1)&&((a27==1)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==5))&&(a12==9)))))&&(a20==1))))&&(a4==1)))){ + a0 = 1; + a3 = 6; + a27 = 0; + a18 = 0; + a22 = 0; + a4 = 0; + return -1; + } else if(((a12==8)&&((a3==6)&&(((((!(a18==1)&&((((a27==1)&&((input==6)&&!(a22==1)))&&(a20==1))&&!(a0==1)))&&(a4==1))&&(a6==1))&&!(a5==1))&&!(a15==1))))){ + a15 = 1; + a6 = 0; + a12 = 12; + a18 = 1; + a0 = 1; + return 21; + } else if(((((((!(a4==1)&&(((a12==10)&&((input==2)&&(((a3==5)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4))))))&&!(a0==1)))&&(a20==1))&&!(a6==1))&&(a27==1))&&!(a5==1))&&(a15==1))){ + a5 = 1; + a27 = 0; + a22 = 0; + a15 = 0; + a3 = 4; + a0 = 1; + a6 = 1; + a18 = 0; + a4 = 1; + a12 = 8; + return 21; + } else if((!(a0==1)&&((a3==5)&&(((a20==1)&&((a5==1)&&(!(a6==1)&&(!(a27==1)&&((a15==1)&&((a12==10)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2))))))))&&!(a4==1))))){ + a12 = 9; + a5 = 0; + a3 = 8; + a18 = 0; + a0 = 1; + a22 = 0; + return 26; + } else if(((!(a5==1)&&(((a4==1)&&(!(a0==1)&&(((a20==1)&&(((((input==5)&&((a18==1)||!(a18==1)))&&!(a6==1))&&(a15==1))&&(a3==4)))&&!(a27==1))))&&!(a22==1)))&&(a12==11))){ + if((a15==1)){ + a27 = 1; + a3 = 8; + a12 = 8; + a5 = 1; + a18 = 0; + a0 = 1; + }else{ + a5 = 1; + a12 = 8; + a27 = 1; + a18 = 1; + a0 = 1; + } + return -1; + } else if(((a12==11)&&((!(a15==1)&&(((a27==1)&&((((input==6)&&((!(a6==1)&&((a3==4)&&(!(a18==1)&&(a22==1))))||((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1)))))&&(a20==1))&&!(a4==1)))&&!(a5==1)))&&!(a0==1)))){ + a18 = 0; + a3 = 5; + a0 = 1; + a6 = 1; + a22 = 0; + a5 = 1; + a15 = 1; + return 21; + } else if(((a5==1)&&((a12==12)&&((a20==1)&&((a6==1)&&((!(a4==1)&&(((a3==5)&&(((input==6)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&(a0==1)))&&(a15==1)))&&!(a27==1))))))){ + a5 = 0; + a3 = 8; + a6 = 0; + a22 = 0; + a27 = 1; + a18 = 1; + a4 = 1; + a12 = 9; + a0 = 0; + return 21; + } else if(((a12==9)&&(((a4==1)&&((((!(a27==1)&&((a3==6)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==4))&&(a0==1))))&&(a5==1))&&(a20==1))&&(a6==1)))&&!(a15==1)))){ + if((a27==1)){ + a15 = 1; + a0 = 0; + a27 = 1; + a18 = 1; + a22 = 0; + a3 = 5; + a12 = 11; + }else{ + a18 = 0; + a15 = 1; + a3 = 7; + a12 = 12; + a6 = 0; + a22 = 1; + a27 = 1; + } + return -1; + } else if((((a3==8)&&((((a6==1)&&((((((input==5)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&!(a4==1))&&(a27==1))&&(a12==9))&&(a5==1)))&&(a15==1))&&(a0==1)))&&(a20==1))){ + a22 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if((((!(a15==1)&&((a27==1)&&((a6==1)&&(((((input==2)&&(((!(a18==1)&&!(a22==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8))))&&!(a0==1))&&!(a4==1))&&(a20==1)))))&&(a5==1))&&(a12==12))){ + if((a3==5)){ + a4 = 1; + a6 = 0; + a18 = 0; + a0 = 1; + a22 = 1; + a3 = 7; + a15 = 1; + a12 = 8; + }else{ + a3 = 4; + a15 = 1; + a12 = 11; + a18 = 0; + a5 = 0; + a0 = 1; + a22 = 1; + a6 = 0; + a4 = 1; + } + return 21; + } else if((((a3==6)&&(!(a15==1)&&(((a4==1)&&(!(a6==1)&&(((a27==1)&&((a5==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a20==1))))&&(a12==11))))&&!(a22==1))))&&!(a0==1))){ + a15 = 1; + a0 = 1; + a22 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if((((a4==1)&&((a0==1)&&((a3==4)&&(((a6==1)&&((a12==9)&&(((a5==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==2)))&&(a27==1))))&&(a20==1)))))&&!(a15==1))){ + a5 = 0; + a4 = 0; + a22 = 0; + a18 = 1; + a12 = 11; + return 26; + } else if((((a22==1)&&((!(a15==1)&&((((((a12==11)&&(!(a4==1)&&((input==5)&&!(a6==1))))&&(a3==4))&&(a18==1))&&!(a27==1))&&(a20==1)))&&!(a5==1)))&&!(a0==1))){ + a27 = 1; + a15 = 1; + a18 = 0; + a5 = 1; + a12 = 8; + a6 = 1; + a22 = 0; + a0 = 1; + return -1; + } else if(((!(a6==1)&&(((((a3==7)&&((a27==1)&&(((a0==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a20==1)))&&!(a5==1))))&&(a12==10))&&!(a4==1))&&(a22==1)))&&(a15==1))){ + a4 = 1; + a5 = 1; + a6 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((((((((((input==3)&&((((a3==5)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==5)))||(((a18==1)&&(a22==1))&&(a3==6))))&&!(a0==1))&&(a12==8))&&!(a4==1))&&!(a5==1))&&(a27==1))&&(a20==1))&&!(a15==1))&&(a6==1))){ + a5 = 1; + a22 = 0; + a6 = 0; + a15 = 1; + a12 = 10; + a0 = 1; + a3 = 8; + a18 = 1; + a27 = 0; + return 21; + } else if(((a15==1)&&(((a4==1)&&((a3==8)&&(((a5==1)&&(((!(a27==1)&&((input==1)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))&&(a0==1))&&!(a6==1)))&&(a20==1))))&&(a12==9)))){ + a22 = 1; + a12 = 8; + a18 = 1; + a27 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if((!(a27==1)&&((a20==1)&&((((a3==6)&&(!(a0==1)&&((a15==1)&&((a6==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==6))&&(a5==1))))))&&(a4==1))&&(a12==11))))){ + a18 = 0; + a0 = 1; + a27 = 1; + a3 = 5; + a12 = 8; + a22 = 0; + a4 = 0; + return 21; + } else if((!(a4==1)&&((((a6==1)&&((((a20==1)&&((!(a15==1)&&((!(a18==1)&&(input==5))&&!(a5==1)))&&!(a0==1)))&&!(a27==1))&&(a22==1)))&&(a3==8))&&(a12==11)))){ + a3 = 6; + a27 = 1; + a15 = 1; + a22 = 0; + a6 = 0; + a18 = 1; + a5 = 1; + a12 = 8; + return -1; + } else if((!(a0==1)&&(!(a15==1)&&((a3==7)&&((!(a6==1)&&(((a12==9)&&((((a22==1)&&((input==3)&&((a18==1)||!(a18==1))))&&!(a5==1))&&!(a4==1)))&&!(a27==1)))&&(a20==1)))))){ + a12 = 10; + a22 = 0; + a27 = 1; + a4 = 1; + a3 = 6; + a18 = 1; + return 21; + } else if(((a12==8)&&((a15==1)&&(!(a4==1)&&((!(a6==1)&&(((((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==4))&&(a0==1))&&(a27==1))&&(a3==8))&&(a20==1)))&&(a5==1)))))){ + if((a20==1)){ + a22 = 0; + a4 = 1; + a12 = 9; + a3 = 4; + a6 = 1; + a0 = 0; + a15 = 0; + a5 = 0; + a18 = 1; + }else{ + a15 = 0; + a22 = 0; + a18 = 1; + a3 = 6; + a6 = 1; + } + return 21; + } else if((((a4==1)&&(!(a18==1)&&(((a3==5)&&(((a27==1)&&((!(a22==1)&&((a20==1)&&((input==3)&&(a5==1))))&&!(a15==1)))&&!(a6==1)))&&(a12==12))))&&!(a0==1))){ + if((a6==1)){ + a18 = 1; + a6 = 1; + a0 = 1; + a22 = 1; + a12 = 8; + a3 = 7; + a15 = 1; + }else{ + a12 = 8; + a22 = 1; + a0 = 1; + a15 = 1; + a3 = 8; + } + return -1; + } else if(((a4==1)&&((a3==5)&&((((a12==8)&&((a15==1)&&(!(a6==1)&&(((a27==1)&&((!(a22==1)&&(input==2))&&(a0==1)))&&!(a5==1)))))&&(a20==1))&&(a18==1))))){ + a6 = 1; + a22 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if((((!(a5==1)&&((a3==8)&&((a20==1)&&((((a27==1)&&((((input==6)&&((a18==1)||!(a18==1)))&&(a4==1))&&(a12==8)))&&(a6==1))&&(a15==1)))))&&(a22==1))&&(a0==1))){ + a22 = 0; + a15 = 0; + a4 = 0; + a3 = 5; + a12 = 9; + a18 = 0; + return 26; + } else if(((a15==1)&&(((a6==1)&&((!(a5==1)&&(((a3==6)&&((a27==1)&&(((input==3)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&(a4==1))))&&(a20==1)))&&!(a0==1)))&&(a12==10)))){ + a18 = 1; + a12 = 8; + a0 = 1; + a22 = 0; + a4 = 0; + a6 = 0; + return 26; + } else if(((((a20==1)&&(((!(a5==1)&&(!(a4==1)&&((a0==1)&&((input==3)&&(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8)))))))&&!(a15==1))&&(a6==1)))&&(a12==12))&&!(a27==1))){ + a3 = 4; + a5 = 1; + a22 = 1; + a4 = 1; + a27 = 1; + a18 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if(((a27==1)&&((((a12==10)&&((((input==1)&&(((((a3==8)&&(((a18==1)&&!(a22==1))&&(a4==1)))&&!(a6==1))||((((!(a22==1)&&!(a18==1))&&(a4==1))&&(a3==8))&&!(a6==1)))||(((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1))))&&(a6==1))))&&!(a0==1))&&(a5==1)))&&!(a15==1))&&(a20==1)))){ + a18 = 1; + a15 = 1; + a22 = 0; + a3 = 4; + a0 = 1; + a6 = 1; + a4 = 0; + return -1; + } else if((!(a0==1)&&((a6==1)&&((a12==10)&&(((a20==1)&&(!(a5==1)&&(((a3==5)&&((((input==1)&&!(a27==1))&&!(a4==1))&&(a15==1)))&&!(a18==1))))&&(a22==1)))))){ + a4 = 1; + a12 = 8; + a22 = 0; + a27 = 1; + a0 = 1; + a5 = 1; + return -1; + } else if(((((!(a22==1)&&((((a20==1)&&((a12==10)&&((a0==1)&&(((a5==1)&&(input==6))&&(a18==1)))))&&(a3==6))&&(a6==1)))&&(a4==1))&&(a27==1))&&!(a15==1))){ + a0 = 0; + a12 = 8; + a3 = 5; + return 21; + } else if(((a15==1)&&(!(a18==1)&&(!(a5==1)&&((a3==8)&&(((a22==1)&&(((a12==11)&&(!(a27==1)&&((a4==1)&&((input==5)&&(a20==1)))))&&!(a0==1)))&&!(a6==1))))))){ + a5 = 1; + a22 = 0; + a3 = 6; + a0 = 1; + a27 = 1; + a12 = 8; + a6 = 1; + a18 = 1; + return -1; + } else if(((a27==1)&&(((a15==1)&&(!(a5==1)&&(((((!(a22==1)&&((a6==1)&&(((a18==1)||!(a18==1))&&(input==5))))&&(a20==1))&&(a0==1))&&(a4==1))&&(a12==8))))&&(a3==8)))){ + a22 = 1; + a12 = 11; + a0 = 0; + a4 = 0; + a18 = 0; + return 21; + } else if((!(a0==1)&&(((!(a6==1)&&(((!(a4==1)&&((a3==5)&&(((a12==9)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a5==1))))&&(a22==1))&&(a20==1)))&&!(a15==1))&&(a27==1)))){ + a22 = 0; + a0 = 1; + a4 = 1; + a12 = 11; + a6 = 1; + a18 = 0; + a5 = 0; + return -1; + } else if(((((((((a6==1)&&((a12==10)&&((a22==1)&&(((input==2)&&(a15==1))&&(a4==1)))))&&(a5==1))&&!(a18==1))&&(a3==5))&&(a20==1))&&!(a27==1))&&(a0==1))){ + a0 = 0; + a27 = 1; + a15 = 0; + a5 = 0; + a6 = 0; + a12 = 9; + return 21; + } else if((((a20==1)&&(((((a27==1)&&(((a3==7)&&((a0==1)&&(!(a15==1)&&((a12==10)&&(input==1)))))&&(a22==1)))&&!(a6==1))&&(a5==1))&&(a18==1)))&&!(a4==1))){ + a15 = 1; + a22 = 0; + return -1; + } else if((!(a15==1)&&((a6==1)&&((a20==1)&&(((a12==8)&&(!(a27==1)&&(!(a4==1)&&((a3==5)&&((a5==1)&&((!(a22==1)&&(input==3))&&!(a0==1)))))))&&!(a18==1)))))){ + a27 = 1; + a18 = 1; + a3 = 8; + a22 = 1; + a4 = 1; + a15 = 1; + a0 = 1; + return 26; + } else if(((a5==1)&&(!(a27==1)&&(!(a15==1)&&((a20==1)&&(((a0==1)&&((((((a3==8)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a18==1)&&!(a22==1)))))&&(input==2))&&(a12==11))&&!(a4==1)))&&!(a6==1))))))){ + a5 = 0; + a18 = 0; + a3 = 5; + a15 = 1; + a12 = 10; + a22 = 1; + return -1; + } else if((((a12==10)&&(!(a15==1)&&(((a6==1)&&((a20==1)&&(((!(a0==1)&&((a3==4)&&((input==3)&&((a18==1)||!(a18==1)))))&&!(a5==1))&&(a4==1))))&&(a27==1))))&&!(a22==1))){ + a0 = 1; + a27 = 0; + a4 = 0; + a12 = 8; + a5 = 1; + a18 = 1; + return 21; + } else if(((((((((((input==1)&&(((a3==5)&&((a22==1)&&!(a18==1)))||(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))))&&!(a15==1))&&(a12==11))&&(a4==1))&&(a20==1))&&!(a5==1))&&!(a6==1))&&!(a27==1))&&(a0==1))){ + a18 = 1; + a6 = 1; + a22 = 0; + a3 = 5; + a27 = 1; + return -1; + } else if(((((a20==1)&&((((((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==4))&&(a12==11))&&!(a4==1))&&(a15==1))&&(a0==1))&&!(a5==1))&&(a3==7)))&&!(a6==1))&&!(a27==1))){ + a18 = 1; + a3 = 4; + a22 = 0; + a27 = 1; + a12 = 10; + return 26; + } else if(((a0==1)&&((a6==1)&&(!(a5==1)&&((a12==10)&&((!(a4==1)&&(((((((a18==1)&&(a22==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5))))&&(input==1))&&(a27==1))&&!(a15==1)))&&(a20==1))))))){ + a22 = 0; + a3 = 4; + a15 = 1; + a18 = 1; + a6 = 0; + return -1; + } else if(((a20==1)&&((((a12==8)&&((a0==1)&&((((a5==1)&&((input==4)&&(((!(a18==1)&&(a22==1))&&(a3==5))||(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1)))))))&&!(a27==1))&&(a4==1))))&&!(a15==1))&&!(a6==1)))){ + a4 = 0; + a22 = 0; + a12 = 11; + a3 = 5; + a27 = 1; + a18 = 1; + return -1; + } else if((((a3==7)&&((!(a6==1)&&((!(a0==1)&&((a20==1)&&((a4==1)&&((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==6))&&!(a5==1)))))&&(a15==1)))&&(a27==1)))&&(a12==12))){ + a6 = 1; + a22 = 0; + a15 = 0; + a0 = 1; + a27 = 0; + a18 = 1; + a12 = 10; + return 24; + } else if((((!(a0==1)&&((a27==1)&&((((a20==1)&&((a3==7)&&(!(a15==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2)))))&&!(a4==1))&&(a6==1))))&&(a12==8))&&!(a5==1))){ + if((a20==1)){ + a22 = 0; + a6 = 0; + a12 = 11; + a18 = 1; + a5 = 1; + a3 = 8; + }else{ + a3 = 5; + a4 = 1; + a15 = 1; + a18 = 0; + a12 = 12; + a5 = 1; + a22 = 1; + } + return 21; + } else if((((a3==4)&&((a5==1)&&(((!(a0==1)&&((a20==1)&&((((a15==1)&&((input==2)&&!(a4==1)))&&(a12==8))&&!(a18==1))))&&(a22==1))&&(a6==1))))&&!(a27==1))){ + if((a15==1)){ + a3 = 6; + a18 = 1; + a5 = 0; + }else{ + a0 = 1; + a22 = 0; + a3 = 8; + a12 = 11; + a27 = 1; + } + return -1; + } else if((!(a18==1)&&((a15==1)&&((!(a22==1)&&((((a12==12)&&((!(a6==1)&&((a0==1)&&((input==3)&&(a5==1))))&&(a3==4)))&&!(a27==1))&&!(a4==1)))&&(a20==1))))){ + a6 = 1; + a27 = 1; + a4 = 1; + a5 = 0; + a12 = 11; + a3 = 8; + return 24; + } else if(((a3==5)&&(!(a0==1)&&(((a27==1)&&(!(a4==1)&&(((a5==1)&&(!(a6==1)&&(((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a15==1))))&&(a20==1))))&&(a12==12))))){ + a22 = 1; + a18 = 1; + a5 = 0; + a12 = 11; + a0 = 1; + a15 = 0; + return 21; + } else if(((a0==1)&&(!(a15==1)&&(((a12==8)&&((a6==1)&&((!(a4==1)&&((a20==1)&&(((((a22==1)&&!(a18==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a22==1)&&(a18==1)))))&&(input==4))))&&(a5==1))))&&(a27==1))))){ + a4 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + a15 = 1; + return -1; + } else if((((a12==10)&&(((a0==1)&&(!(a15==1)&&(((a3==7)&&((!(a27==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&(a6==1)))&&(a22==1)))&&!(a5==1))))&&!(a4==1)))&&(a20==1))){ + if((a6==1)){ + a27 = 1; + a6 = 0; + a18 = 0; + a3 = 8; + a22 = 0; + a15 = 1; + a4 = 1; + a0 = 0; + a12 = 9; + }else{ + a18 = 0; + a27 = 1; + } + return 26; + } else if(((a22==1)&&((a20==1)&&(((((!(a5==1)&&((((a0==1)&&((a3==6)&&(input==1)))&&(a4==1))&&(a12==10)))&&(a27==1))&&(a6==1))&&!(a18==1))&&!(a15==1))))){ + a5 = 1; + a4 = 0; + a3 = 8; + a18 = 1; + a6 = 0; + return -1; + } else if((((a27==1)&&((!(a4==1)&&(((a3==8)&&((((a20==1)&&((input==2)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))))&&!(a15==1))&&!(a6==1)))&&!(a0==1)))&&(a12==11)))&&!(a5==1))){ + a4 = 1; + a0 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + a18 = 1; + a6 = 1; + a22 = 1; + a15 = 1; + return -1; + } else if((((!(a18==1)&&((((((!(a5==1)&&(!(a6==1)&&((a4==1)&&(input==5))))&&(a22==1))&&(a20==1))&&(a0==1))&&(a12==12))&&!(a27==1)))&&(a3==7))&&!(a15==1))){ + a3 = 8; + a4 = 0; + return 21; + } else if((((a3==4)&&(!(a0==1)&&((((a12==11)&&((a5==1)&&((a4==1)&&(((a6==1)&&((input==4)&&((a18==1)||!(a18==1))))&&(a22==1)))))&&(a20==1))&&(a15==1))))&&(a27==1))){ + a0 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if((((((!(a0==1)&&((a4==1)&&((a20==1)&&((((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))||((!(a18==1)&&(a22==1))&&(a3==6)))&&(input==5))&&(a15==1)))))&&!(a5==1))&&(a27==1))&&(a12==10))&&!(a6==1))){ + a3 = 6; + a0 = 1; + a6 = 1; + a22 = 0; + a12 = 12; + a18 = 0; + a4 = 0; + a15 = 0; + return 21; + } else if(((a0==1)&&((((((a3==7)&&((a6==1)&&((a15==1)&&((a27==1)&&((a12==11)&&(!(a22==1)&&(input==6)))))))&&(a5==1))&&(a18==1))&&(a20==1))&&!(a4==1)))){ + a3 = 4; + a12 = 10; + a15 = 0; + a22 = 1; + return -1; + } else if(((a6==1)&&(!(a0==1)&&((a15==1)&&(((a12==9)&&((((!(a4==1)&&(((input==6)&&!(a27==1))&&(a20==1)))&&(a18==1))&&(a3==4))&&(a5==1)))&&!(a22==1)))))){ + a27 = 1; + a15 = 0; + a0 = 1; + a3 = 8; + return -1; + } else if((!(a4==1)&&(((a15==1)&&((((a3==7)&&(!(a22==1)&&((((((a18==1)||!(a18==1))&&(input==6))&&!(a5==1))&&(a27==1))&&(a12==8))))&&(a20==1))&&(a0==1)))&&(a6==1)))){ + a18 = 1; + a4 = 1; + a3 = 5; + a12 = 10; + a15 = 0; + a6 = 0; + a22 = 1; + a5 = 1; + return 26; + } else if(((a22==1)&&(((a4==1)&&((((a12==12)&&(((!(a18==1)&&(((a20==1)&&(input==1))&&!(a5==1)))&&(a27==1))&&(a3==7)))&&(a15==1))&&(a6==1)))&&(a0==1)))){ + a0 = 0; + a3 = 6; + a12 = 11; + a18 = 1; + a6 = 0; + a4 = 0; + return -1; + } else if(((a20==1)&&(!(a5==1)&&(((a3==6)&&((a27==1)&&((a0==1)&&(!(a6==1)&&((a12==11)&&((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==5))&&(a15==1)))))))&&!(a4==1))))){ + a4 = 1; + a22 = 1; + a27 = 0; + a18 = 0; + return 21; + } else if((!(a27==1)&&((a12==8)&&(((a22==1)&&((a20==1)&&((((((a5==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a15==1))&&(a4==1))&&(a0==1))&&(a6==1))))&&(a3==5))))){ + a12 = 11; + a22 = 0; + a18 = 1; + a4 = 0; + a27 = 1; + a3 = 6; + a15 = 0; + return 26; + } else if(((a15==1)&&(!(a0==1)&&((a5==1)&&((a4==1)&&((a12==9)&&(((a20==1)&&(((((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==5))&&(a6==1)))&&!(a27==1)))))))){ + if((a5==1)){ + a3 = 6; + a18 = 0; + a22 = 1; + a5 = 0; + a12 = 11; + }else{ + a12 = 8; + a27 = 1; + a3 = 6; + a0 = 1; + a18 = 0; + a22 = 0; + a4 = 0; + } + return 24; + } else if((((a0==1)&&((((((a20==1)&&((((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))||((a3==8)&&((a22==1)&&!(a18==1))))&&(input==5))&&!(a6==1)))&&(a12==8))&&!(a15==1))&&!(a27==1))&&!(a5==1)))&&(a4==1))){ + a5 = 1; + a27 = 1; + a15 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((((!(a6==1)&&((a4==1)&&(((a3==8)&&((a15==1)&&(((a20==1)&&((input==5)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))))&&!(a0==1))))&&!(a5==1))))&&(a12==10))&&!(a27==1))){ + if((a18==1)){ + a18 = 1; + a4 = 0; + a22 = 1; + a3 = 6; + a12 = 11; + a6 = 1; + }else{ + a15 = 0; + a22 = 1; + a0 = 1; + a12 = 8; + a3 = 6; + a27 = 1; + a5 = 1; + a18 = 1; + } + return -1; + } else if(((a27==1)&&((!(a4==1)&&((a22==1)&&((a12==8)&&(!(a0==1)&&((a5==1)&&((((a20==1)&&((a3==8)&&(input==4)))&&!(a18==1))&&!(a6==1)))))))&&!(a15==1)))){ + a4 = 1; + a6 = 1; + a3 = 4; + a0 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if(((a20==1)&&((a5==1)&&((((((((a4==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==3)))&&!(a27==1))&&(a12==9))&&!(a6==1))&&!(a15==1))&&!(a0==1))&&(a3==4))))){ + a22 = 0; + a27 = 1; + a0 = 1; + a15 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if((!(a4==1)&&(!(a22==1)&&(((a3==4)&&(!(a0==1)&&((((a20==1)&&(((a27==1)&&((input==3)&&((a18==1)||!(a18==1))))&&!(a15==1)))&&!(a5==1))&&!(a6==1))))&&(a12==8))))){ + if((a4==1)){ + a12 = 10; + a18 = 1; + a6 = 1; + }else{ + a0 = 1; + a12 = 11; + a22 = 1; + a4 = 1; + a6 = 1; + a18 = 0; + } + return -1; + } else if(((!(a0==1)&&(!(a15==1)&&(((((a20==1)&&((((input==3)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a4==1))&&!(a6==1)))&&!(a5==1))&&(a3==6))&&(a27==1))))&&(a12==10))){ + a3 = 7; + a0 = 1; + a6 = 1; + a18 = 1; + a22 = 0; + a15 = 1; + a27 = 0; + return 26; + } else if((((a3==8)&&((a0==1)&&(!(a4==1)&&((a12==11)&&((a27==1)&&((a22==1)&&((a15==1)&&((((input==3)&&(a20==1))&&!(a5==1))&&!(a6==1)))))))))&&!(a18==1))){ + a3 = 7; + a6 = 1; + a12 = 10; + a4 = 1; + a18 = 1; + a5 = 1; + a22 = 0; + return -1; + } else if(((((!(a0==1)&&(((a12==11)&&(!(a27==1)&&((((input==3)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&(a5==1))&&(a4==1))))&&(a3==4)))&&!(a15==1))&&(a20==1))&&!(a6==1))){ + a18 = 1; + a3 = 6; + a27 = 1; + a22 = 0; + a12 = 8; + a0 = 1; + a15 = 1; + a6 = 1; + return 21; + } else if((((!(a4==1)&&(((!(a27==1)&&((a20==1)&&((a0==1)&&(((((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==5)))))&&!(a6==1))&&(a12==11)))&&!(a15==1))&&!(a5==1))){ + a22 = 1; + a12 = 9; + a3 = 7; + a5 = 1; + a18 = 1; + return -1; + } else if(((a0==1)&&((a12==12)&&(((!(a4==1)&&(((((!(a15==1)&&((a3==5)&&(input==4)))&&!(a18==1))&&!(a22==1))&&!(a6==1))&&(a20==1)))&&(a27==1))&&(a5==1))))){ + a27 = 0; + a6 = 1; + a3 = 7; + a18 = 1; + return 21; + } else if(((((a5==1)&&(((((((!(a6==1)&&((a27==1)&&(input==2)))&&!(a22==1))&&(a18==1))&&(a20==1))&&!(a0==1))&&(a3==7))&&!(a4==1)))&&(a12==8))&&!(a15==1))){ + a15 = 1; + a12 = 9; + a0 = 1; + a6 = 1; + a5 = 0; + a3 = 6; + return 21; + } else if(((a22==1)&&((a20==1)&&((a6==1)&&((a0==1)&&((a12==10)&&((((a27==1)&&(((a3==7)&&((input==4)&&((a18==1)||!(a18==1))))&&!(a15==1)))&&!(a5==1))&&!(a4==1)))))))){ + a18 = 1; + a3 = 4; + a15 = 1; + a5 = 1; + a4 = 1; + a12 = 8; + return -1; + } else if((((!(a4==1)&&((a3==7)&&((a12==11)&&((!(a6==1)&&((a0==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&!(a27==1))))&&(a5==1)))))&&(a15==1))&&(a20==1))){ + a18 = 0; + a12 = 8; + a27 = 1; + a22 = 1; + a15 = 0; + return 26; + } else if((!(a0==1)&&((a3==7)&&((a4==1)&&(((a12==10)&&(((!(a15==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==2))&&!(a27==1)))&&!(a5==1))&&(a6==1)))&&(a20==1)))))){ + a22 = 0; + a27 = 1; + a3 = 6; + a12 = 9; + a4 = 0; + a18 = 0; + return -1; + } else if(((a20==1)&&(((((((a3==7)&&(!(a22==1)&&((((a0==1)&&(input==5))&&!(a6==1))&&(a12==11))))&&!(a27==1))&&(a15==1))&&(a4==1))&&(a18==1))&&!(a5==1)))){ + a6 = 1; + a27 = 1; + a12 = 12; + a18 = 0; + a5 = 1; + a22 = 1; + return 26; + } else if((((a20==1)&&(((!(a4==1)&&(!(a6==1)&&(!(a15==1)&&(((!(a27==1)&&((input==1)&&!(a5==1)))&&(a12==9))&&(a22==1)))))&&(a3==7))&&(a0==1)))&&(a18==1))){ + a5 = 1; + a12 = 12; + a3 = 8; + a22 = 0; + a4 = 1; + return 26; + } else if(((((a4==1)&&(((!(a27==1)&&((!(a6==1)&&((a15==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==3))))&&!(a0==1)))&&(a12==10))&&(a5==1)))&&(a20==1))&&(a3==6))){ + if((a15==1)){ + a12 = 8; + a27 = 1; + a0 = 1; + a4 = 0; + a6 = 1; + a22 = 1; + a18 = 1; + }else{ + a22 = 0; + a12 = 8; + a0 = 1; + a27 = 1; + a18 = 0; + a6 = 1; + a4 = 0; + } + return 26; + } else if(((a20==1)&&((a12==8)&&(((((a15==1)&&((a0==1)&&(!(a27==1)&&((((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a22==1)&&!(a18==1))))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==1)))))&&!(a5==1))&&!(a4==1))&&!(a6==1))))){ + if((a6==1)){ + a5 = 1; + a18 = 0; + a12 = 9; + a22 = 0; + a27 = 1; + a3 = 7; + a0 = 0; + a6 = 1; + }else{ + a3 = 6; + a22 = 1; + a4 = 1; + a6 = 1; + a5 = 1; + a18 = 0; + a12 = 11; + } + return 21; + } else if(((a27==1)&&(((a20==1)&&((a6==1)&&((a12==12)&&(!(a15==1)&&(((!(a5==1)&&((input==6)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))&&!(a0==1))&&!(a4==1))))))&&(a3==4)))){ + a12 = 8; + a4 = 1; + a5 = 1; + a22 = 0; + a6 = 0; + a0 = 1; + a15 = 1; + a18 = 0; + return -1; + } else if(((a6==1)&&(((a20==1)&&((((!(a4==1)&&(!(a22==1)&&((a15==1)&&(((a3==4)&&(input==5))&&(a5==1)))))&&(a12==10))&&!(a18==1))&&(a0==1)))&&(a27==1)))){ + a15 = 0; + a12 = 8; + a4 = 1; + a3 = 7; + a22 = 1; + a18 = 1; + return -1; + } else if((!(a15==1)&&((a20==1)&&(((!(a0==1)&&(!(a4==1)&&((a5==1)&&(((input==5)&&((((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a18==1)&&!(a22==1))))||((a3==5)&&((a22==1)&&(a18==1)))))&&(a6==1)))))&&(a27==1))&&(a12==11))))){ + a3 = 4; + a0 = 1; + a18 = 0; + a12 = 12; + a22 = 0; + return 21; + } else if(((a12==8)&&(((a22==1)&&((a3==7)&&(((a20==1)&&(((a18==1)&&((a15==1)&&(((a27==1)&&(input==4))&&!(a0==1))))&&!(a5==1)))&&!(a6==1))))&&(a4==1)))){ + a3 = 6; + a12 = 10; + a0 = 1; + a6 = 1; + a15 = 0; + a18 = 0; + return 26; + } else if(((a12==12)&&(((a6==1)&&(!(a0==1)&&((((((((input==5)&&(a18==1))&&(a22==1))&&(a4==1))&&(a20==1))&&(a15==1))&&(a3==8))&&(a27==1))))&&!(a5==1)))){ + if((a3==6)){ + a12 = 11; + a27 = 0; + a6 = 0; + a5 = 1; + a18 = 0; + }else{ + a0 = 1; + a5 = 1; + a3 = 4; + a4 = 0; + a12 = 8; + a6 = 0; + } + return -1; + } else if((((a27==1)&&((a12==11)&&((a4==1)&&((a22==1)&&((((a18==1)&&((((a3==8)&&(input==6))&&(a5==1))&&(a0==1)))&&(a20==1))&&(a6==1))))))&&!(a15==1))){ + a3 = 6; + a15 = 1; + a27 = 0; + a22 = 0; + return 24; + } else if((((a5==1)&&(((!(a15==1)&&((a4==1)&&((a12==8)&&(((input==2)&&((((a3==7)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==7)))||((a3==8)&&((a18==1)&&(a22==1)))))&&(a27==1)))))&&(a20==1))&&!(a6==1)))&&!(a0==1))){ + a18 = 1; + a6 = 1; + a3 = 4; + a15 = 1; + a22 = 1; + a0 = 1; + return -1; + } else if(((((!(a15==1)&&(!(a4==1)&&((!(a6==1)&&(!(a27==1)&&(!(a0==1)&&(((input==1)&&!(a18==1))&&(a12==8)))))&&!(a5==1))))&&(a22==1))&&(a3==7))&&(a20==1))){ + a0 = 1; + a15 = 1; + a5 = 1; + a3 = 4; + a27 = 1; + a18 = 1; + return 24; + } else if(((((a0==1)&&(((a20==1)&&(((input==6)&&((!(a6==1)&&((a3==8)&&((!(a22==1)&&!(a18==1))&&(a4==1))))||(((!(a4==1)&&((a22==1)&&(a18==1)))&&(a3==4))&&(a6==1))))&&!(a27==1)))&&(a12==12)))&&!(a5==1))&&(a15==1))){ + a18 = 1; + a4 = 1; + a3 = 4; + a22 = 1; + a5 = 1; + a6 = 1; + a12 = 8; + a27 = 1; + return -1; + } else if((!(a5==1)&&((a20==1)&&(((a3==7)&&((a22==1)&&(((((((a4==1)&&(input==6))&&(a6==1))&&(a15==1))&&!(a0==1))&&(a12==10))&&(a27==1))))&&(a18==1))))){ + a5 = 1; + a3 = 4; + a12 = 8; + a0 = 1; + return -1; + } else if((!(a15==1)&&((((a12==8)&&(!(a0==1)&&(((((input==2)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1)))))&&!(a5==1))&&(a6==1))&&(a20==1))))&&(a27==1))&&!(a4==1)))){ + a5 = 1; + a22 = 1; + a18 = 1; + a15 = 1; + a6 = 0; + a3 = 6; + a0 = 1; + a12 = 12; + return 26; + } else if((((((a4==1)&&((a3==7)&&((!(a0==1)&&((((input==6)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&(a27==1))&&(a12==12)))&&(a5==1))))&&!(a6==1))&&!(a15==1))&&(a20==1))){ + a6 = 1; + a12 = 9; + a0 = 1; + a18 = 1; + a4 = 0; + a3 = 4; + a27 = 0; + a5 = 0; + a22 = 1; + return -1; + } else if(((((a3==6)&&(!(a4==1)&&(((!(a27==1)&&((a18==1)&&((a12==8)&&((a5==1)&&((input==1)&&(a15==1))))))&&(a6==1))&&(a20==1))))&&!(a0==1))&&!(a22==1))){ + a4 = 1; + a0 = 1; + a3 = 8; + a27 = 1; + return -1; + } else if((((a3==6)&&(!(a27==1)&&((((a20==1)&&((((((a0==1)&&(input==3))&&(a6==1))&&(a4==1))&&!(a15==1))&&!(a18==1)))&&(a12==11))&&!(a5==1))))&&!(a22==1))){ + a4 = 0; + a22 = 1; + a27 = 1; + a6 = 0; + a12 = 10; + a0 = 0; + a3 = 5; + return -1; + } else if((((((!(a27==1)&&(((a6==1)&&(((a15==1)&&(((input==4)&&!(a4==1))&&!(a5==1)))&&(a12==11)))&&!(a0==1)))&&!(a22==1))&&(a3==7))&&(a20==1))&&!(a18==1))){ + a3 = 8; + a18 = 1; + return 21; + } else if(((((((a18==1)&&(!(a27==1)&&(((a0==1)&&((((input==3)&&(a15==1))&&(a20==1))&&(a12==9)))&&(a3==6))))&&!(a4==1))&&!(a22==1))&&(a6==1))&&(a5==1))){ + a12 = 10; + a27 = 1; + a3 = 4; + return 24; + } else if((((a4==1)&&(((a20==1)&&((((a6==1)&&((((((a18==1)||!(a18==1))&&(input==5))&&(a15==1))&&(a5==1))&&!(a22==1)))&&(a12==9))&&(a0==1)))&&(a3==5)))&&(a27==1))){ + a3 = 4; + a12 = 8; + a18 = 1; + a22 = 1; + return -1; + } else if(((a0==1)&&(((((!(a15==1)&&((a12==8)&&(((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==2))&&(a5==1))))&&(a4==1))&&(a20==1))&&(a6==1))&&!(a27==1)))){ + a27 = 1; + a18 = 1; + a15 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if((((a12==11)&&(!(a6==1)&&((a20==1)&&((a15==1)&&((a4==1)&&((!(a0==1)&&(((((a22==1)&&(a18==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&(a18==1)))||((a3==7)&&(!(a22==1)&&!(a18==1)))))&&(input==6)))&&(a27==1)))))))&&!(a5==1))){ + a15 = 0; + a12 = 10; + a5 = 1; + a3 = 7; + a0 = 1; + a6 = 1; + a22 = 0; + a18 = 0; + return -1; + } else if((((!(a5==1)&&((a6==1)&&(((((a20==1)&&((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==1))&&(a12==10)))&&!(a15==1))&&(a0==1))&&(a27==1))))&&(a4==1))&&(a3==8))){ + a22 = 1; + a15 = 1; + a18 = 1; + a6 = 0; + a3 = 5; + a4 = 0; + return -1; + } else if((!(a6==1)&&(((!(a5==1)&&(!(a15==1)&&((a12==10)&&((((input==5)&&(((a3==8)&&((a22==1)&&!(a18==1)))||(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))))&&(a20==1))&&!(a4==1)))))&&!(a0==1))&&!(a27==1)))){ + if((a6==1)){ + a22 = 0; + a27 = 1; + a18 = 1; + a5 = 1; + a4 = 1; + a0 = 1; + a3 = 6; + a12 = 8; + a15 = 1; + }else{ + a5 = 1; + a27 = 1; + a15 = 1; + a22 = 0; + a18 = 1; + a3 = 4; + a4 = 1; + } + return -1; + } else if((!(a22==1)&&(!(a4==1)&&((a15==1)&&(((a5==1)&&(((((((input==3)&&((a18==1)||!(a18==1)))&&!(a0==1))&&(a12==9))&&(a3==7))&&!(a6==1))&&(a27==1)))&&(a20==1)))))){ + if((a27==1)){ + a15 = 0; + a22 = 1; + a6 = 1; + a3 = 6; + a12 = 11; + a18 = 1; + }else{ + a0 = 1; + a6 = 1; + a4 = 1; + a18 = 1; + a5 = 0; + a22 = 1; + a3 = 8; + a12 = 12; + } + return 21; + } else if(((a27==1)&&(!(a15==1)&&(!(a6==1)&&((a12==9)&&(((((a20==1)&&(((((a22==1)&&!(a18==1))&&(a3==7))||(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1)))))&&(input==4)))&&(a0==1))&&!(a5==1))&&(a4==1))))))){ + if((a18==1)){ + a12 = 10; + a15 = 1; + a5 = 1; + a22 = 1; + a6 = 1; + a0 = 0; + a18 = 1; + a3 = 7; + }else{ + a18 = 0; + a22 = 0; + a27 = 0; + a5 = 1; + a15 = 1; + a3 = 4; + } + return 21; + } else if(((a27==1)&&(((a6==1)&&((((a20==1)&&((a5==1)&&((!(a4==1)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==6)))&&(a12==12))))&&(a3==6))&&!(a0==1)))&&(a15==1)))){ + a5 = 0; + a3 = 7; + a12 = 10; + a0 = 1; + a15 = 0; + a22 = 1; + a18 = 0; + return -1; + } else if(((a6==1)&&(((a27==1)&&(((((a4==1)&&((((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))||((a3==5)&&(!(a18==1)&&(a22==1))))&&(input==2))&&(a20==1)))&&!(a15==1))&&!(a0==1))&&(a5==1)))&&(a12==8)))){ + a12 = 10; + a6 = 0; + a0 = 1; + a22 = 1; + a5 = 0; + a18 = 0; + a3 = 6; + a15 = 1; + return 26; + } else if((((a20==1)&&(((a5==1)&&((((!(a6==1)&&((input==2)&&(((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))))&&!(a27==1))&&(a12==11))&&!(a15==1)))&&!(a4==1)))&&!(a0==1))){ + if((a4==1)){ + a3 = 5; + a22 = 1; + a6 = 1; + a0 = 1; + a4 = 1; + a18 = 0; + }else{ + a12 = 8; + a18 = 1; + a22 = 1; + a27 = 1; + a15 = 1; + a6 = 1; + a0 = 1; + a3 = 8; + a4 = 1; + } + return -1; + } else if((((((a12==10)&&(!(a27==1)&&(!(a15==1)&&(((!(a0==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&!(a22==1)))&&!(a6==1))&&(a20==1)))))&&(a4==1))&&(a5==1))&&(a3==8))){ + a12 = 8; + a4 = 0; + a0 = 1; + a27 = 1; + a18 = 0; + a6 = 1; + a15 = 1; + a3 = 6; + return 26; + } else if(((a22==1)&&((a20==1)&&(((a4==1)&&((((a15==1)&&((((!(a5==1)&&(input==4))&&(a3==7))&&(a27==1))&&!(a18==1)))&&(a0==1))&&(a6==1)))&&(a12==11))))){ + a3 = 4; + a12 = 8; + a18 = 1; + a5 = 1; + return -1; + } else if((((a22==1)&&((a12==9)&&((a15==1)&&((a6==1)&&(((a3==8)&&(!(a4==1)&&((a20==1)&&(((a0==1)&&(input==4))&&(a18==1)))))&&(a5==1))))))&&!(a27==1))){ + a27 = 1; + a18 = 0; + a6 = 0; + a3 = 6; + a4 = 1; + a22 = 0; + a12 = 10; + a15 = 0; + return 21; + } else if((((a4==1)&&((a5==1)&&(((a3==4)&&((((a15==1)&&((a18==1)&&(((input==6)&&!(a0==1))&&(a22==1))))&&!(a27==1))&&(a12==12)))&&(a20==1))))&&(a6==1))){ + a27 = 1; + a0 = 1; + a12 = 8; + a3 = 7; + a4 = 0; + return 26; + } else if((((a12==8)&&((a15==1)&&(!(a27==1)&&((a0==1)&&((((((((a18==1)&&(a22==1))&&(a3==7))||((((a18==1)&&!(a22==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6))))&&(input==2))&&(a5==1))&&!(a4==1))&&(a6==1))))))&&(a20==1))){ + a4 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + a27 = 1; + return -1; + } else if((!(a27==1)&&(((a15==1)&&((a0==1)&&((a12==10)&&(((((input==6)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))||(((a22==1)&&!(a18==1))&&(a3==7))))&&(a20==1))&&(a5==1))&&!(a6==1)))))&&(a4==1)))){ + a22 = 1; + a12 = 9; + a0 = 0; + a5 = 0; + a27 = 1; + a18 = 1; + a6 = 1; + a3 = 8; + a15 = 0; + return 21; + } else if(((!(a5==1)&&((a0==1)&&((a12==9)&&(((!(a4==1)&&((((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==6))&&(a6==1))&&!(a15==1)))&&!(a27==1))&&(a20==1)))))&&(a3==8))){ + a3 = 6; + a18 = 0; + a22 = 0; + a15 = 1; + a12 = 10; + return 21; + } else if((((a27==1)&&((a12==12)&&((((a18==1)&&(((a0==1)&&((!(a22==1)&&(!(a15==1)&&(input==1)))&&(a20==1)))&&(a5==1)))&&(a3==5))&&(a6==1))))&&(a4==1))){ + a15 = 1; + a22 = 1; + a3 = 7; + a12 = 11; + a5 = 0; + return -1; + } else if(((((a0==1)&&(((!(a27==1)&&(((a6==1)&&(!(a15==1)&&((input==2)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))&&(a3==7)))&&(a20==1))&&(a4==1)))&&(a5==1))&&(a12==12))){ + a22 = 1; + a18 = 1; + a15 = 1; + a27 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((a12==10)&&((((a27==1)&&((a20==1)&&((a0==1)&&(((a3==7)&&(!(a5==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a6==1))))&&!(a4==1)))))&&(a22==1))&&!(a15==1)))){ + a5 = 1; + a18 = 1; + a4 = 1; + a15 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((((a27==1)&&(!(a5==1)&&((!(a22==1)&&((a12==12)&&(!(a15==1)&&(((((a18==1)||!(a18==1))&&(input==4))&&(a0==1))&&(a3==6)))))&&(a20==1))))&&!(a6==1))&&!(a4==1))){ + a5 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + a4 = 1; + a6 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if((!(a27==1)&&(((a3==4)&&(!(a4==1)&&(((a22==1)&&((a12==9)&&((((a20==1)&&((input==3)&&!(a0==1)))&&!(a6==1))&&!(a5==1))))&&(a18==1))))&&(a15==1)))){ + a6 = 1; + a0 = 1; + a3 = 8; + a12 = 8; + a15 = 0; + a27 = 1; + return 24; + } else if(((a27==1)&&(((a5==1)&&((a22==1)&&(!(a0==1)&&((!(a15==1)&&(!(a4==1)&&((((input==6)&&(a18==1))&&(a12==8))&&(a20==1))))&&!(a6==1)))))&&(a3==8)))){ + a6 = 1; + a22 = 0; + a5 = 0; + a0 = 1; + a15 = 1; + a4 = 1; + a12 = 10; + a3 = 4; + return -1; + } else if(((a20==1)&&(((a5==1)&&((a12==10)&&(((input==2)&&((!(a6==1)&&((a3==8)&&(!(a4==1)&&((a15==1)&&(!(a18==1)&&!(a22==1))))))||((a6==1)&&((a3==4)&&((a4==1)&&(!(a15==1)&&((a18==1)&&(a22==1))))))))&&!(a27==1))))&&(a0==1)))){ + if((a3==7)){ + a5 = 0; + a0 = 0; + a18 = 1; + a22 = 0; + a15 = 1; + a4 = 1; + a6 = 0; + a12 = 9; + a27 = 1; + a3 = 8; + }else{ + a6 = 1; + a27 = 1; + a22 = 1; + a15 = 0; + a5 = 0; + a4 = 0; + a18 = 1; + a3 = 7; + } + return 26; + } else if((((a0==1)&&(!(a4==1)&&(((a20==1)&&(((((a15==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==1)))&&!(a6==1))&&!(a5==1))&&(a12==11)))&&(a3==4))))&&!(a27==1))){ + a15 = 0; + a22 = 0; + a4 = 1; + a3 = 6; + a18 = 0; + a12 = 8; + a5 = 1; + return -1; + } else if(((!(a5==1)&&((a22==1)&&(((!(a0==1)&&(((a12==10)&&((a20==1)&&((a27==1)&&((input==5)&&(a15==1)))))&&!(a6==1)))&&!(a4==1))&&(a18==1))))&&(a3==8))){ + a4 = 1; + a6 = 1; + a0 = 1; + a5 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((((!(a4==1)&&(((a20==1)&&((a6==1)&&(((((input==5)&&((a18==1)||!(a18==1)))&&(a3==6))&&!(a27==1))&&(a0==1))))&&!(a15==1)))&&(a12==8))&&!(a22==1))&&!(a5==1))){ + a4 = 1; + a3 = 4; + a15 = 1; + a22 = 1; + a27 = 1; + a5 = 1; + a18 = 1; + return -1; + } else if((((a3==8)&&(((a20==1)&&((!(a0==1)&&((a27==1)&&(!(a5==1)&&((!(a4==1)&&(!(a22==1)&&(input==1)))&&(a12==12)))))&&(a15==1)))&&!(a6==1)))&&(a18==1))){ + a0 = 1; + a15 = 0; + a4 = 1; + a12 = 8; + a27 = 0; + a18 = 0; + return -1; + } else if(((a6==1)&&(((!(a27==1)&&(((((((((a18==1)||!(a18==1))&&(input==1))&&!(a15==1))&&!(a0==1))&&(a3==6))&&(a20==1))&&(a12==9))&&!(a22==1)))&&!(a5==1))&&!(a4==1)))){ + if((a0==1)){ + a5 = 1; + a4 = 1; + a18 = 0; + a0 = 1; + a12 = 10; + a22 = 1; + a6 = 0; + a3 = 7; + }else{ + a22 = 1; + a18 = 1; + a12 = 8; + a3 = 7; + a15 = 1; + a0 = 1; + a5 = 1; + a27 = 1; + } + return -1; + } else if(((!(a0==1)&&(((a4==1)&&((a12==10)&&((a20==1)&&(((a15==1)&&(((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6)))||((a3==6)&&((a22==1)&&!(a18==1))))&&(input==3)))&&!(a5==1)))))&&!(a27==1)))&&!(a6==1))){ + a0 = 1; + a18 = 1; + a22 = 1; + a27 = 1; + a5 = 1; + a3 = 7; + a12 = 8; + return -1; + } else if((!(a0==1)&&((a20==1)&&((((((a6==1)&&(!(a4==1)&&(((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7)))||((a3==7)&&((a22==1)&&!(a18==1))))&&(input==4))))&&!(a27==1))&&(a12==11))&&!(a5==1))&&!(a15==1))))){ + a6 = 0; + a15 = 1; + a22 = 1; + a18 = 1; + a3 = 5; + a12 = 8; + a27 = 1; + return -1; + } else if((((!(a6==1)&&((a3==4)&&((a5==1)&&((a20==1)&&((a22==1)&&(!(a4==1)&&(!(a15==1)&&(!(a27==1)&&(((a18==1)||!(a18==1))&&(input==3))))))))))&&(a12==12))&&(a0==1))){ + a18 = 1; + a27 = 1; + a15 = 1; + a3 = 5; + a22 = 0; + a4 = 1; + a5 = 0; + a6 = 1; + return 26; + } else if(((a12==8)&&((((((a0==1)&&((a3==8)&&((a4==1)&&((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==1))&&!(a15==1)))))&&!(a6==1))&&(a27==1))&&(a5==1))&&(a20==1)))){ + if((a12==12)){ + a6 = 1; + a15 = 1; + a22 = 0; + a18 = 1; + a5 = 0; + a12 = 12; + a4 = 0; + a27 = 0; + }else{ + a18 = 0; + a6 = 1; + a12 = 9; + a15 = 1; + a22 = 0; + a3 = 7; + } + return 21; + } else if(((a6==1)&&(((!(a27==1)&&(((((!(a0==1)&&((!(a22==1)&&(input==3))&&(a3==6)))&&!(a15==1))&&(a18==1))&&(a12==11))&&(a4==1)))&&(a20==1))&&!(a5==1)))){ + a27 = 1; + a22 = 1; + a3 = 7; + a15 = 1; + a4 = 0; + a6 = 0; + a18 = 0; + return 26; + } else if((((((a12==10)&&(((a20==1)&&(!(a6==1)&&(!(a15==1)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==4)))))&&(a5==1)))&&!(a27==1))&&!(a0==1))&&!(a4==1))){ + if((a0==1)){ + a22 = 0; + a18 = 1; + a0 = 1; + a6 = 1; + a15 = 1; + a12 = 8; + a27 = 1; + a3 = 7; + a4 = 1; + }else{ + a22 = 1; + a4 = 1; + a27 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + a3 = 7; + a15 = 1; + } + return 21; + } else if(((!(a18==1)&&(((((a0==1)&&((((a20==1)&&(((input==6)&&(a3==4))&&(a12==9)))&&!(a4==1))&&(a27==1)))&&(a22==1))&&(a15==1))&&(a6==1)))&&!(a5==1))){ + a5 = 1; + a18 = 1; + a12 = 10; + a6 = 0; + return 26; + } else if(((a12==12)&&((a3==8)&&((!(a0==1)&&((((a5==1)&&((((!(a18==1)&&(input==3))&&(a27==1))&&!(a22==1))&&(a6==1)))&&(a20==1))&&!(a4==1)))&&(a15==1))))){ + a18 = 1; + a27 = 0; + a15 = 0; + a12 = 11; + a3 = 7; + a6 = 0; + a0 = 1; + return 21; + } else if(((!(a5==1)&&((!(a4==1)&&((!(a15==1)&&(((a12==9)&&((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==5))&&(a27==1)))&&(a20==1)))&&(a6==1)))&&(a3==4)))&&!(a0==1))){ + a5 = 1; + a6 = 0; + a15 = 1; + a22 = 1; + a18 = 1; + a12 = 12; + a0 = 1; + a3 = 5; + return 21; + } else if(((a12==9)&&((((((((!(a22==1)&&((a20==1)&&((input==6)&&(a18==1))))&&!(a5==1))&&!(a15==1))&&(a3==7))&&!(a4==1))&&!(a0==1))&&!(a6==1))&&!(a27==1)))){ + a27 = 1; + a3 = 8; + a5 = 1; + a22 = 1; + a6 = 1; + a12 = 10; + a15 = 1; + a4 = 1; + return 26; + } else if((((((!(a18==1)&&(!(a4==1)&&((a15==1)&&((((!(a0==1)&&(input==1))&&!(a27==1))&&(a3==6))&&!(a5==1)))))&&(a6==1))&&(a22==1))&&(a20==1))&&(a12==11))){ + a3 = 8; + a0 = 1; + a22 = 0; + a12 = 8; + a5 = 1; + a27 = 1; + return -1; + } else if(((a15==1)&&((((a4==1)&&(!(a0==1)&&((a20==1)&&(((a5==1)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==2)))&&!(a27==1)))))&&(a6==1))&&(a12==9)))){ + a6 = 0; + a12 = 8; + a22 = 0; + a3 = 5; + a18 = 0; + a0 = 1; + a27 = 1; + return -1; + } else if(((!(a6==1)&&(((a4==1)&&(((a12==10)&&((a0==1)&&(((a20==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==3)))&&(a5==1))))&&(a15==1)))&&(a27==1)))&&(a3==6))){ + a22 = 0; + a3 = 5; + a18 = 1; + return -1; + } else if((((a5==1)&&((a0==1)&&((((a6==1)&&((a27==1)&&(((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==3))&&(a3==5))&&(a20==1))))&&!(a15==1))&&(a12==9))))&&!(a4==1))){ + a12 = 11; + a22 = 0; + a3 = 8; + a18 = 1; + return 24; + } else if(((a15==1)&&(!(a22==1)&&(!(a18==1)&&(((((a20==1)&&((a3==4)&&((((input==6)&&!(a4==1))&&(a12==8))&&!(a5==1))))&&!(a27==1))&&(a0==1))&&(a6==1)))))){ + a15 = 0; + a5 = 1; + a6 = 0; + a12 = 11; + a3 = 8; + a22 = 1; + a27 = 1; + a18 = 1; + return 21; + } else if(((a12==10)&&((((a15==1)&&((a3==4)&&((!(a27==1)&&((!(a4==1)&&((a0==1)&&(((a18==1)||!(a18==1))&&(input==5))))&&!(a22==1)))&&!(a5==1))))&&(a20==1))&&(a6==1)))){ + if((a5==1)){ + a0 = 0; + a5 = 1; + a27 = 1; + a18 = 0; + a6 = 0; + a12 = 12; + a3 = 5; + }else{ + a3 = 6; + a27 = 1; + a18 = 0; + a15 = 0; + a5 = 1; + } + return 26; + } else if(((a12==8)&&((a6==1)&&(((((a0==1)&&(((a27==1)&&(!(a4==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&!(a5==1))))&&(a3==5)))&&!(a22==1))&&!(a15==1))&&(a20==1))))){ + a3 = 8; + a12 = 9; + a18 = 0; + a15 = 1; + a0 = 0; + return 26; + } else if((((((!(a15==1)&&(!(a22==1)&&((a3==6)&&(((!(a6==1)&&((input==3)&&(a12==8)))&&!(a27==1))&&(a5==1)))))&&(a20==1))&&!(a4==1))&&!(a0==1))&&(a18==1))){ + if((a4==1)){ + a15 = 1; + a4 = 1; + a3 = 8; + a27 = 1; + a22 = 1; + a0 = 1; + a6 = 1; + }else{ + a0 = 1; + a12 = 9; + a3 = 5; + a27 = 1; + a6 = 1; + } + return -1; + } else if(((((!(a5==1)&&((a20==1)&&((!(a0==1)&&(!(a15==1)&&((a4==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2)))))&&(a12==8))))&&(a3==8))&&!(a27==1))&&!(a6==1))){ + a27 = 1; + a5 = 1; + a0 = 1; + a15 = 1; + a22 = 0; + a18 = 1; + return -1; + } else if(((((a20==1)&&((a12==11)&&((a15==1)&&(((((((a6==1)&&((!(a22==1)&&(a18==1))&&(a3==8)))||(((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1)))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1)))&&(input==6))&&(a0==1))&&(a27==1)))))&&!(a4==1))&&!(a5==1))){ + a6 = 1; + a5 = 1; + a18 = 0; + a12 = 10; + a3 = 4; + a22 = 0; + return 24; + } else if(((a12==9)&&((((a6==1)&&(!(a5==1)&&(((((a4==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==6)))&&(a20==1))&&(a3==5))&&(a15==1))))&&(a27==1))&&(a0==1)))){ + a12 = 10; + a3 = 8; + a15 = 0; + a22 = 1; + a6 = 0; + a0 = 0; + a18 = 1; + return 21; + } else if(((a6==1)&&((a27==1)&&(((a20==1)&&(((((((((a22==1)&&!(a18==1))&&(a3==6))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a18==1)&&(a22==1)))))&&(input==6))&&!(a4==1))&&(a5==1))&&(a0==1))&&(a12==12)))&&(a15==1))))){ + a18 = 1; + a12 = 8; + a4 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if(((((((a5==1)&&((((!(a6==1)&&((a0==1)&&(!(a18==1)&&(input==3))))&&(a12==9))&&!(a27==1))&&(a20==1)))&&(a3==5))&&(a22==1))&&(a4==1))&&!(a15==1))){ + a12 = 12; + a18 = 1; + a6 = 1; + a3 = 8; + a15 = 1; + a5 = 0; + a27 = 1; + return -1; + } else if((((((a4==1)&&(!(a6==1)&&((a15==1)&&((a3==7)&&(((!(a0==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a5==1))&&(a20==1))))))&&(a22==1))&&(a12==8))&&!(a27==1))){ + if((a22==1)){ + a3 = 5; + a27 = 1; + a0 = 1; + a18 = 0; + a6 = 1; + }else{ + a18 = 0; + a6 = 1; + a0 = 1; + a27 = 1; + a4 = 0; + a3 = 5; + } + return -1; + } else if(((a20==1)&&(((a0==1)&&(((!(a5==1)&&(((a15==1)&&(((a12==10)&&(!(a4==1)&&(input==5)))&&!(a22==1)))&&(a27==1)))&&!(a18==1))&&(a3==4)))&&(a6==1)))){ + a6 = 0; + a4 = 1; + a15 = 0; + return 21; + } else if((((((a6==1)&&((!(a27==1)&&(((a20==1)&&(((((a18==1)||!(a18==1))&&(input==4))&&(a12==10))&&!(a4==1)))&&!(a22==1)))&&(a3==4)))&&(a0==1))&&!(a5==1))&&!(a15==1))){ + a3 = 6; + a18 = 1; + return 26; + } else if(((a12==11)&&((a4==1)&&((((!(a5==1)&&(((a3==8)&&((((input==3)&&(a22==1))&&(a18==1))&&!(a15==1)))&&(a20==1)))&&(a27==1))&&!(a6==1))&&!(a0==1))))){ + a6 = 1; + a27 = 0; + a12 = 9; + a3 = 7; + a0 = 1; + return 21; + } else if(((a3==8)&&((a0==1)&&(((!(a5==1)&&((!(a6==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==4))&&(a20==1))&&(a12==9)))&&!(a27==1)))&&!(a15==1))&&!(a4==1))))){ + if((a4==1)){ + a22 = 1; + a5 = 1; + a18 = 0; + a27 = 1; + a0 = 0; + a15 = 1; + a3 = 5; + }else{ + a18 = 0; + a22 = 1; + a3 = 7; + a27 = 1; + a6 = 1; + a12 = 11; + } + return 26; + } else if(((a27==1)&&(((a0==1)&&(((((a5==1)&&((((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==6))&&!(a15==1))&&(a3==5)))&&(a20==1))&&(a12==9))&&(a6==1)))&&(a4==1)))){ + a5 = 0; + a3 = 8; + a18 = 0; + a4 = 0; + a22 = 1; + a15 = 1; + a6 = 0; + a0 = 0; + return 26; + } else if((!(a4==1)&&((((!(a22==1)&&((!(a0==1)&&((a15==1)&&(((((a18==1)||!(a18==1))&&(input==3))&&(a20==1))&&!(a27==1))))&&(a12==10)))&&(a6==1))&&!(a5==1))&&(a3==7)))){ + if((a12==9)){ + a22 = 1; + a4 = 1; + a3 = 8; + a12 = 9; + a27 = 1; + a5 = 1; + a18 = 1; + a6 = 0; + }else{ + a6 = 0; + a5 = 1; + a27 = 1; + a18 = 0; + a4 = 1; + a0 = 1; + a22 = 1; + a12 = 8; + a3 = 8; + } + return -1; + } else if((!(a0==1)&&(((a4==1)&&(((((((input==1)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1)))))&&(a27==1))&&!(a6==1))&&(a5==1))&&!(a15==1))&&(a12==9)))&&(a20==1)))){ + a22 = 0; + a12 = 10; + a18 = 1; + a3 = 6; + a0 = 1; + return -1; + } else if(((!(a27==1)&&(!(a0==1)&&(((a12==10)&&((a20==1)&&((input==3)&&(((a6==1)&&((!(a4==1)&&((a22==1)&&!(a18==1)))&&(a3==4)))||(((((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8))&&!(a6==1))||((a6==1)&&((((a18==1)&&(a22==1))&&!(a4==1))&&(a3==4))))))))&&!(a5==1))))&&!(a15==1))){ + a15 = 1; + a6 = 1; + a18 = 0; + a27 = 1; + a22 = 0; + a12 = 8; + a4 = 0; + a0 = 1; + a3 = 6; + a5 = 1; + return -1; + } else if((((((a0==1)&&((a12==10)&&((a4==1)&&(((!(a27==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==6)))&&(a20==1))&&(a3==5)))))&&!(a5==1))&&(a6==1))&&(a15==1))){ + a15 = 0; + a6 = 0; + a22 = 1; + a18 = 0; + a5 = 1; + a4 = 0; + a3 = 7; + return 26; + } else if((((a12==11)&&(!(a27==1)&&((a3==8)&&(!(a6==1)&&((((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==4))&&(a15==1))&&(a20==1))&&!(a5==1))&&(a0==1))))))&&!(a4==1))){ + a22 = 1; + a5 = 1; + a12 = 8; + a6 = 1; + a18 = 0; + a27 = 1; + a3 = 6; + return -1; + } else if((((((!(a4==1)&&(((!(a18==1)&&((a12==8)&&((!(a27==1)&&(input==5))&&!(a22==1))))&&(a5==1))&&(a0==1)))&&(a15==1))&&(a20==1))&&(a3==7))&&(a6==1))){ + a22 = 1; + a18 = 1; + a27 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((a0==1)&&((a22==1)&&((a3==6)&&((((!(a5==1)&&(!(a4==1)&&(((a12==12)&&((input==4)&&((a18==1)||!(a18==1))))&&(a20==1))))&&(a27==1))&&!(a15==1))&&!(a6==1)))))){ + a27 = 0; + a12 = 8; + a3 = 8; + a18 = 1; + a5 = 1; + a22 = 0; + a4 = 1; + return 26; + } else if(((a3==4)&&(((a22==1)&&((!(a4==1)&&((a6==1)&&(!(a27==1)&&((((a12==9)&&((input==6)&&(a5==1)))&&(a20==1))&&!(a0==1)))))&&(a15==1)))&&!(a18==1)))){ + if((a6==1)){ + a6 = 0; + a3 = 6; + a4 = 1; + a12 = 8; + a22 = 0; + a27 = 1; + a0 = 1; + }else{ + a12 = 8; + a3 = 8; + a0 = 1; + a4 = 1; + a27 = 1; + } + return -1; + } else if(((((((a27==1)&&((((!(a0==1)&&((input==5)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a12==11))&&(a20==1))&&(a6==1)))&&(a3==5))&&(a15==1))&&(a4==1))&&(a5==1))){ + a5 = 0; + a0 = 1; + a18 = 1; + a22 = 0; + return -1; + } else if((((a5==1)&&((a12==10)&&((((a15==1)&&(!(a4==1)&&((((((a22==1)&&(a18==1))&&(a3==5))||(((!(a22==1)&&(a18==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4))))&&(input==1))&&(a27==1))))&&!(a6==1))&&(a20==1))))&&!(a0==1))){ + a3 = 5; + a6 = 1; + a0 = 1; + a5 = 0; + a4 = 1; + a15 = 0; + a18 = 1; + a22 = 1; + return 21; + } else if((((a22==1)&&(!(a5==1)&&(!(a15==1)&&((a0==1)&&((a20==1)&&((a18==1)&&(((((a12==11)&&(input==1))&&(a6==1))&&(a3==7))&&(a4==1))))))))&&!(a27==1))){ + a27 = 1; + a3 = 8; + a12 = 10; + a5 = 1; + a6 = 0; + a4 = 0; + return 21; + } else if(((!(a5==1)&&((a0==1)&&(((a20==1)&&((a15==1)&&((((!(a6==1)&&((a3==8)&&(((a18==1)&&!(a22==1))&&(a4==1))))||(((a3==8)&&((!(a22==1)&&!(a18==1))&&(a4==1)))&&!(a6==1)))||(((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1))))&&(a6==1)))&&(input==4))))&&!(a27==1))))&&(a12==9))){ + a6 = 0; + a18 = 0; + a0 = 0; + a4 = 0; + a3 = 8; + a22 = 1; + a27 = 1; + return 26; + } else if(((a27==1)&&(!(a5==1)&&((a20==1)&&((a22==1)&&(!(a0==1)&&((a12==9)&&((a3==8)&&(((((input==4)&&((a18==1)||!(a18==1)))&&!(a15==1))&&(a4==1))&&(a6==1)))))))))){ + a5 = 1; + a22 = 0; + a18 = 0; + a0 = 1; + a12 = 11; + a3 = 4; + a4 = 0; + a15 = 1; + return -1; + } else if(((((((((a4==1)&&((!(a5==1)&&((a15==1)&&((input==6)&&(a3==5))))&&!(a0==1)))&&!(a18==1))&&(a20==1))&&(a6==1))&&!(a22==1))&&(a12==11))&&!(a27==1))){ + if((a18==1)){ + a6 = 0; + a18 = 1; + a0 = 1; + a5 = 1; + a3 = 6; + a22 = 1; + a15 = 0; + a4 = 0; + }else{ + a22 = 1; + a0 = 1; + a3 = 4; + a5 = 1; + a4 = 0; + a12 = 8; + a27 = 1; + } + return 21; + } else if(((!(a6==1)&&((!(a4==1)&&(((!(a27==1)&&(((input==3)&&(((a3==5)&&((a18==1)&&(a22==1)))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a22==1)&&!(a18==1))))))&&!(a5==1)))&&(a15==1))&&(a12==9)))&&!(a0==1)))&&(a20==1))){ + a22 = 0; + a18 = 1; + a27 = 1; + a3 = 4; + a4 = 1; + a0 = 1; + a5 = 1; + a6 = 1; + a12 = 8; + return 26; + } return calculate_output40(input); + } + + int calculate_output40(int input) { + if(((!(a0==1)&&((!(a27==1)&&((!(a4==1)&&((a20==1)&&((a3==4)&&(!(a22==1)&&((a18==1)&&((input==1)&&(a15==1)))))))&&(a12==9)))&&(a6==1)))&&!(a5==1))){ + a12 = 10; + a6 = 0; + a3 = 7; + a15 = 0; + a0 = 1; + return -1; + } else if((((a22==1)&&((a12==8)&&((a27==1)&&((a6==1)&&((a20==1)&&((((a0==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a4==1)))&&(a3==8))&&!(a15==1)))))))&&(a5==1))){ + a3 = 7; + a4 = 0; + a15 = 1; + a22 = 0; + a5 = 0; + a18 = 0; + return 26; + } else if(((a3==4)&&((((!(a0==1)&&((a4==1)&&(((a20==1)&&(((a6==1)&&((input==1)&&!(a18==1)))&&(a22==1)))&&(a12==9))))&&(a5==1))&&!(a15==1))&&!(a27==1)))){ + a15 = 1; + a22 = 0; + a0 = 1; + a12 = 8; + a27 = 1; + return -1; + } else if((!(a0==1)&&(!(a18==1)&&(!(a5==1)&&((a6==1)&&((((a12==11)&&(((a4==1)&&(((a15==1)&&(input==4))&&!(a22==1)))&&(a20==1)))&&(a3==5))&&!(a27==1))))))){ + a12 = 8; + a27 = 1; + a5 = 1; + a6 = 0; + a0 = 1; + a3 = 7; + return -1; + } else if((!(a5==1)&&(!(a4==1)&&(((a15==1)&&(!(a6==1)&&((a12==12)&&(!(a0==1)&&((((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==3))&&(a20==1))&&(a27==1))))))&&(a3==7))))){ + a5 = 1; + a6 = 1; + a18 = 0; + a12 = 8; + a4 = 1; + a3 = 4; + a0 = 1; + a22 = 1; + return 26; + } else if(((!(a27==1)&&((a6==1)&&(((!(a4==1)&&((((input==3)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a22==1)&&(a18==1)))))&&!(a0==1))&&(a5==1)))&&(a15==1))&&(a12==11))))&&(a20==1))){ + if((a18==1)){ + a27 = 1; + a18 = 1; + a22 = 0; + a4 = 1; + a12 = 8; + a3 = 8; + a0 = 1; + }else{ + a4 = 1; + a6 = 0; + a27 = 1; + a18 = 0; + a22 = 0; + a3 = 4; + a12 = 8; + a0 = 1; + } + return -1; + } else if(((((!(a22==1)&&((a5==1)&&((a4==1)&&((((((a3==7)&&(input==5))&&(a15==1))&&(a0==1))&&!(a18==1))&&(a20==1)))))&&(a12==9))&&!(a27==1))&&(a6==1))){ + if((a22==1)){ + a18 = 1; + a15 = 0; + a6 = 0; + a27 = 1; + a5 = 0; + a0 = 0; + }else{ + a12 = 8; + a3 = 4; + a6 = 0; + a5 = 0; + a18 = 1; + a27 = 1; + a15 = 0; + } + return 26; + } else if(((((a0==1)&&(((a12==11)&&((((!(a6==1)&&((a3==8)&&((a4==1)&&(!(a22==1)&&!(a18==1)))))||((a6==1)&&((!(a4==1)&&((a22==1)&&(a18==1)))&&(a3==4))))&&(input==6))&&!(a5==1)))&&(a27==1)))&&(a20==1))&&(a15==1))){ + a6 = 1; + a4 = 1; + a5 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((a3==8)&&((a12==11)&&((!(a0==1)&&(!(a22==1)&&(((((((input==1)&&(a6==1))&&(a4==1))&&(a15==1))&&(a18==1))&&!(a27==1))&&(a20==1))))&&!(a5==1))))){ + a18 = 0; + a5 = 1; + a6 = 0; + return 21; + } else if(((a6==1)&&((a0==1)&&(((((!(a5==1)&&((a20==1)&&((input==5)&&((((a18==1)&&(a22==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))))))&&(a15==1))&&(a27==1))&&(a12==10))&&(a4==1))))){ + a5 = 1; + a22 = 1; + a4 = 0; + a27 = 0; + a3 = 4; + a18 = 1; + return 26; + } else if(((!(a27==1)&&((a12==10)&&(!(a0==1)&&(((a20==1)&&((!(a5==1)&&(!(a15==1)&&(!(a4==1)&&((a3==5)&&(input==6)))))&&(a6==1)))&&!(a18==1)))))&&!(a22==1))){ + a0 = 1; + a4 = 1; + a12 = 12; + a15 = 1; + a3 = 7; + return 21; + } else if((((a20==1)&&(((a4==1)&&((a0==1)&&(((((((input==1)&&(a5==1))&&!(a27==1))&&(a6==1))&&(a12==9))&&(a15==1))&&!(a22==1))))&&(a18==1)))&&(a3==7))){ + a22 = 1; + a3 = 8; + a12 = 10; + a4 = 0; + a18 = 0; + a6 = 0; + a15 = 0; + return 21; + } else if(((((a6==1)&&((a3==7)&&((((a20==1)&&((a27==1)&&((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==5))&&(a15==1))))&&!(a5==1))&&(a12==9))))&&!(a0==1))&&!(a4==1))){ + a22 = 1; + a4 = 1; + a18 = 0; + a5 = 1; + a27 = 0; + a0 = 1; + return 26; + } else if(((a4==1)&&((((a3==8)&&((a6==1)&&(((a20==1)&&((a15==1)&&((a0==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==5)))))&&!(a5==1))))&&!(a27==1))&&(a12==10)))){ + a5 = 1; + a27 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + return -1; + } else if(((((((a0==1)&&(!(a15==1)&&((((((!(a18==1)&&!(a22==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==4))&&(a6==1))&&!(a27==1))))&&(a20==1))&&(a5==1))&&(a12==9))&&(a4==1))){ + a22 = 0; + a12 = 12; + a18 = 0; + a3 = 4; + return 26; + } else if((((!(a6==1)&&(((((a12==8)&&((!(a5==1)&&((((a18==1)||!(a18==1))&&(input==2))&&!(a15==1)))&&(a20==1)))&&(a3==6))&&(a22==1))&&(a0==1)))&&(a27==1))&&(a4==1))){ + a3 = 4; + a15 = 1; + a5 = 1; + a6 = 1; + a18 = 1; + return -1; + } else if(((a12==12)&&(((!(a5==1)&&((a20==1)&&((((a0==1)&&(((input==3)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a4==1)))&&!(a27==1))&&!(a6==1))))&&(a3==5))&&(a15==1)))){ + a3 = 7; + a27 = 1; + a22 = 1; + a12 = 11; + a18 = 1; + a5 = 1; + return 26; + } else if(((a12==10)&&((!(a5==1)&&(!(a6==1)&&(((a15==1)&&(!(a0==1)&&(((input==2)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5))))&&(a20==1))))&&!(a27==1))))&&!(a4==1)))){ + if((a18==1)){ + a3 = 7; + a27 = 1; + a12 = 11; + a15 = 0; + a18 = 1; + a22 = 0; + }else{ + a5 = 1; + a12 = 12; + a0 = 1; + a3 = 4; + a6 = 1; + a22 = 1; + a18 = 0; + } + return 21; + } else if(((a12==8)&&(((a5==1)&&((((a20==1)&&((a3==6)&&(!(a4==1)&&((((input==6)&&((a18==1)||!(a18==1)))&&!(a27==1))&&(a22==1)))))&&(a0==1))&&!(a6==1)))&&!(a15==1)))){ + a4 = 1; + a15 = 1; + a6 = 1; + a27 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((((a20==1)&&(((((a15==1)&&((!(a4==1)&&((a12==12)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==6))))&&!(a5==1)))&&!(a0==1))&&(a6==1))&&(a27==1)))&&(a3==6))){ + a4 = 1; + a18 = 1; + a5 = 1; + a12 = 8; + a3 = 5; + a0 = 1; + a22 = 0; + return -1; + } else if(((a0==1)&&(!(a15==1)&&(!(a4==1)&&((((a20==1)&&((((input==6)&&((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7)))||((a3==7)&&(!(a18==1)&&(a22==1)))))&&(a6==1))&&(a5==1)))&&!(a27==1))&&(a12==11)))))){ + if((a0==1)){ + a3 = 8; + a18 = 1; + a0 = 0; + a22 = 1; + a6 = 0; + a5 = 0; + a27 = 1; + a4 = 1; + }else{ + a5 = 0; + a22 = 1; + a18 = 1; + a3 = 7; + a4 = 1; + a12 = 10; + } + return -1; + } else if(((a4==1)&&((a0==1)&&((((a27==1)&&((((a3==6)&&((a20==1)&&((input==6)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))))&&(a6==1))&&!(a5==1)))&&(a12==10))&&(a15==1))))){ + a22 = 1; + a12 = 8; + a5 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((((a12==12)&&((a6==1)&&((a27==1)&&((!(a0==1)&&(!(a5==1)&&(((input==1)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a22==1)&&(a18==1)))))&&!(a4==1))))&&(a20==1)))))&&(a15==1))){ + a4 = 1; + a18 = 1; + a12 = 8; + a27 = 0; + a3 = 7; + a15 = 0; + a22 = 0; + return -1; + } else if(((a4==1)&&((((((a20==1)&&(!(a5==1)&&((a3==6)&&((a0==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==4))))))&&(a12==12))&&!(a27==1))&&!(a15==1))&&!(a6==1)))){ + a22 = 0; + a5 = 1; + a6 = 1; + a18 = 0; + a3 = 4; + a27 = 1; + return 24; + } else if((!(a6==1)&&(((((((a3==8)&&((a15==1)&&(!(a5==1)&&((!(a22==1)&&(input==6))&&(a27==1)))))&&!(a18==1))&&(a0==1))&&(a20==1))&&(a12==8))&&(a4==1)))){ + a6 = 1; + a3 = 4; + a12 = 10; + a5 = 1; + a18 = 1; + a4 = 0; + return 26; + } else if((!(a6==1)&&(((a15==1)&&((!(a5==1)&&((a3==7)&&((((a0==1)&&((input==3)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a12==12))&&(a20==1))))&&(a4==1)))&&!(a27==1)))){ + a18 = 1; + a12 = 8; + a6 = 1; + a22 = 1; + a5 = 1; + a3 = 4; + a27 = 1; + return -1; + } else if(((((((a20==1)&&((a15==1)&&(((((!(a4==1)&&(!(a18==1)&&(a22==1)))&&(a3==4))&&(a6==1))||((!(a6==1)&&(((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8)))||((a6==1)&&((!(a4==1)&&((a22==1)&&(a18==1)))&&(a3==4)))))&&(input==5))))&&!(a5==1))&&(a0==1))&&!(a27==1))&&(a12==10))){ + a4 = 1; + a12 = 8; + a27 = 1; + a5 = 1; + a3 = 4; + a6 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if((!(a27==1)&&((((a5==1)&&((((a4==1)&&((a0==1)&&((input==3)&&((((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==7)))||((a3==8)&&((a22==1)&&(a18==1)))))))&&(a12==12))&&(a15==1)))&&!(a6==1))&&(a20==1)))){ + a4 = 0; + a6 = 1; + a3 = 8; + a27 = 1; + a22 = 0; + a12 = 10; + a18 = 1; + return -1; + } else if((!(a22==1)&&(((((!(a4==1)&&((((a27==1)&&(((a18==1)&&(input==4))&&(a3==7)))&&(a15==1))&&(a20==1)))&&!(a5==1))&&(a0==1))&&(a6==1))&&(a12==9)))){ + a12 = 8; + a22 = 1; + a18 = 0; + a27 = 0; + return 21; + } else if(((((a20==1)&&((a15==1)&&(((!(a5==1)&&((a27==1)&&((a12==9)&&((a22==1)&&(((a18==1)||!(a18==1))&&(input==5))))))&&(a3==5))&&!(a0==1))))&&!(a4==1))&&!(a6==1))){ + a0 = 1; + a15 = 0; + a22 = 0; + a18 = 1; + a3 = 7; + return -1; + } else if(((((a4==1)&&((a12==10)&&(!(a0==1)&&((a15==1)&&((a27==1)&&((a20==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))||((a3==5)&&((a22==1)&&!(a18==1))))&&(input==3))))))))&&(a5==1))&&(a6==1))){ + a3 = 5; + a15 = 0; + a4 = 0; + a0 = 1; + a6 = 0; + a27 = 0; + a22 = 0; + a18 = 1; + return 26; + } else if((((a12==12)&&((a20==1)&&((a4==1)&&((a15==1)&&(!(a0==1)&&(!(a5==1)&&((a27==1)&&((input==4)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))))))))))&&!(a6==1))){ + if((a12==12)){ + a27 = 0; + a18 = 0; + a22 = 1; + a12 = 8; + a3 = 4; + a0 = 1; + a5 = 1; + }else{ + a12 = 8; + a3 = 7; + a6 = 1; + a18 = 1; + a22 = 0; + a4 = 0; + a5 = 1; + a0 = 1; + } + return -1; + } else if(((a20==1)&&((!(a0==1)&&((((((((a3==4)&&(!(a4==1)&&((a22==1)&&!(a18==1))))&&(a6==1))||((!(a6==1)&&(((!(a22==1)&&!(a18==1))&&(a4==1))&&(a3==8)))||(((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1)))&&(a6==1))))&&(input==6))&&(a27==1))&&(a12==9))&&!(a15==1)))&&(a5==1)))){ + a15 = 1; + a22 = 1; + a6 = 1; + a4 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + return -1; + } else if(((((((((a27==1)&&((a4==1)&&((((input==3)&&((a18==1)||!(a18==1)))&&(a12==8))&&(a5==1))))&&(a3==7))&&!(a15==1))&&!(a0==1))&&(a6==1))&&(a20==1))&&!(a22==1))){ + a3 = 5; + a18 = 1; + a0 = 1; + a5 = 0; + a12 = 11; + return -1; + } else if(((a12==11)&&((((((a15==1)&&((a5==1)&&(((input==2)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1)))))&&!(a0==1))))&&(a4==1))&&(a20==1))&&(a27==1))&&(a6==1)))){ + a18 = 1; + a4 = 0; + a12 = 12; + a15 = 0; + a3 = 4; + a0 = 1; + a6 = 0; + a22 = 1; + return 21; + } else if(((((a12==8)&&((a20==1)&&((!(a5==1)&&(((!(a6==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4)))&&(a3==7))&&!(a27==1)))&&(a0==1))))&&(a15==1))&&(a4==1))){ + if((a20==1)){ + a18 = 1; + a22 = 1; + a27 = 1; + a3 = 6; + a12 = 10; + a0 = 0; + a4 = 0; + }else{ + a22 = 1; + a6 = 1; + a27 = 1; + a18 = 1; + a12 = 11; + a3 = 6; + a4 = 0; + } + return 21; + } else if(((a6==1)&&((!(a0==1)&&((a3==8)&&((a20==1)&&((!(a5==1)&&(!(a15==1)&&((a12==12)&&((a27==1)&&(!(a4==1)&&(input==5))))))&&!(a22==1)))))&&!(a18==1)))){ + if((a22==1)){ + a12 = 8; + a0 = 1; + a3 = 6; + a22 = 1; + a5 = 1; + a15 = 1; + }else{ + a15 = 1; + a0 = 1; + a5 = 1; + a4 = 1; + a12 = 8; + } + return -1; + } else if(((a3==5)&&((a22==1)&&((!(a18==1)&&((a5==1)&&(((a6==1)&&(!(a0==1)&&(!(a4==1)&&((a12==8)&&((input==1)&&(a15==1))))))&&!(a27==1))))&&(a20==1))))){ + if((a12==9)){ + a3 = 6; + a4 = 1; + a12 = 11; + a5 = 0; + a0 = 1; + a22 = 0; + a15 = 0; + }else{ + a5 = 0; + a27 = 1; + a18 = 1; + a12 = 10; + a22 = 0; + a6 = 0; + } + return -1; + } else if(((((((a27==1)&&((a4==1)&&((a5==1)&&((a12==8)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==1))))))&&!(a15==1))&&!(a6==1))&&(a20==1))&&!(a0==1))){ + a3 = 4; + a12 = 11; + a18 = 0; + a15 = 1; + a4 = 0; + a22 = 1; + a5 = 0; + return 21; + } else if(((!(a27==1)&&((a3==5)&&(((((a15==1)&&((a6==1)&&((((a5==1)&&(input==2))&&(a4==1))&&(a20==1))))&&!(a22==1))&&(a12==8))&&(a0==1))))&&!(a18==1))){ + if((a12==12)){ + a3 = 4; + a5 = 0; + a0 = 0; + a15 = 0; + a12 = 10; + a27 = 1; + }else{ + a27 = 1; + a6 = 0; + a15 = 0; + a22 = 1; + a5 = 0; + a12 = 12; + a3 = 4; + } + return -1; + } else if(((!(a15==1)&&((((a3==7)&&((a5==1)&&(((a12==8)&&(((input==6)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a20==1)))&&!(a0==1))))&&(a27==1))&&!(a4==1)))&&(a6==1))){ + a6 = 0; + a0 = 1; + a3 = 5; + a4 = 1; + a12 = 12; + a18 = 1; + a22 = 0; + return -1; + } else if(((a15==1)&&((((a12==8)&&((a20==1)&&(!(a5==1)&&((a0==1)&&(!(a27==1)&&((input==5)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1))))))))))&&!(a4==1))&&(a6==1)))){ + a4 = 1; + a27 = 1; + a5 = 1; + a15 = 0; + a18 = 0; + a3 = 8; + a22 = 0; + a12 = 12; + return 24; + } else if(((a27==1)&&((a4==1)&&(((a6==1)&&((a22==1)&&((a3==8)&&((((!(a0==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a20==1))&&(a5==1))&&!(a15==1)))))&&(a12==10))))){ + a3 = 4; + a15 = 1; + a12 = 8; + a0 = 1; + a18 = 1; + return -1; + } else if((((((a12==12)&&((!(a5==1)&&((((a20==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==1)))&&(a0==1))&&!(a6==1)))&&(a3==6)))&&(a27==1))&&!(a4==1))&&(a15==1))){ + a3 = 4; + a5 = 1; + a22 = 1; + a4 = 1; + a6 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if(((((a3==6)&&(((a5==1)&&(((((!(a22==1)&&((a6==1)&&(input==2)))&&(a18==1))&&(a0==1))&&(a4==1))&&(a12==12)))&&(a15==1)))&&(a27==1))&&(a20==1))){ + a5 = 0; + a15 = 0; + a4 = 0; + a12 = 10; + a3 = 5; + a18 = 0; + a6 = 0; + a22 = 1; + return -1; + } else if((((a27==1)&&((a15==1)&&((a12==11)&&((a20==1)&&((a6==1)&&((a0==1)&&(((input==5)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))||((!(a18==1)&&(a22==1))&&(a3==8))))&&(a5==1))))))))&&!(a4==1))){ + a18 = 0; + a15 = 0; + a12 = 10; + a3 = 7; + a22 = 0; + a4 = 1; + return -1; + } else if(((a6==1)&&((a12==8)&&(!(a15==1)&&((a5==1)&&((a20==1)&&((a0==1)&&((((input==4)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1)))))&&!(a4==1))&&(a27==1))))))))){ + if((a0==1)){ + a0 = 0; + a3 = 8; + a4 = 1; + a18 = 1; + a22 = 1; + }else{ + a18 = 0; + a3 = 8; + a0 = 0; + a22 = 1; + a6 = 0; + } + return 21; + } else if((!(a0==1)&&((((input==6)&&(((a6==1)&&((a3==4)&&(((((a5==1)&&((a22==1)&&(a18==1)))&&(a15==1))&&(a12==11))&&(a4==1))))||((!(a6==1)&&((!(a4==1)&&((((!(a22==1)&&(a18==1))&&!(a5==1))&&!(a15==1))&&(a12==10)))&&(a3==8)))||(((((a12==10)&&(!(a15==1)&&((!(a18==1)&&!(a22==1))&&!(a5==1))))&&!(a4==1))&&(a3==8))&&!(a6==1)))))&&!(a27==1))&&(a20==1)))){ + if((a15==1)){ + a18 = 1; + a15 = 1; + a5 = 1; + a12 = 8; + a3 = 5; + a4 = 1; + a6 = 0; + a22 = 1; + }else{ + a0 = 1; + a12 = 9; + a4 = 0; + a6 = 1; + a22 = 1; + a15 = 1; + a18 = 1; + a3 = 4; + a5 = 1; + } + return 26; + } else if((((!(a4==1)&&((a20==1)&&(((!(a5==1)&&((a27==1)&&(((((a3==6)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==2))))&&(a12==8))&&!(a6==1))))&&!(a15==1))&&!(a0==1))){ + a5 = 1; + a0 = 1; + a22 = 1; + a15 = 1; + a6 = 1; + a18 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if(((((((a6==1)&&(((!(a4==1)&&((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==5))&&(a15==1)))&&(a5==1))&&(a12==8)))&&!(a0==1))&&(a20==1))&&(a3==4))&&(a27==1))){ + a4 = 1; + a0 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if((!(a6==1)&&(((((a12==10)&&((((!(a4==1)&&((!(a15==1)&&(input==1))&&(a18==1)))&&(a20==1))&&!(a5==1))&&(a0==1)))&&(a27==1))&&(a3==4))&&!(a22==1)))){ + a6 = 1; + a18 = 0; + a3 = 6; + a15 = 1; + a27 = 0; + a22 = 1; + return 21; + } else if(((a6==1)&&((((a15==1)&&((!(a0==1)&&(((a3==4)&&(((input==6)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a20==1)))&&!(a4==1)))&&!(a27==1)))&&!(a5==1))&&(a12==11)))){ + if((a22==1)){ + a18 = 1; + a22 = 1; + a12 = 8; + a6 = 0; + a3 = 8; + a0 = 1; + a4 = 1; + a27 = 1; + a5 = 1; + }else{ + a5 = 1; + a27 = 1; + a22 = 1; + a4 = 1; + a12 = 8; + a0 = 1; + a18 = 0; + } + return 24; + } else if((!(a4==1)&&((a0==1)&&((a6==1)&&((!(a15==1)&&((a27==1)&&((((a5==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==3)))&&(a20==1))&&(a3==8))))&&(a12==8)))))){ + a18 = 1; + a15 = 1; + a22 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if(((((a12==9)&&(!(a0==1)&&((!(a27==1)&&(!(a4==1)&&(!(a15==1)&&(((input==2)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&!(a6==1)))))&&(a5==1))))&&(a3==8))&&(a20==1))){ + a18 = 0; + a3 = 6; + a6 = 1; + a27 = 1; + a22 = 1; + a5 = 0; + a4 = 1; + a0 = 1; + a15 = 1; + a12 = 8; + return 21; + } else if((((((!(a5==1)&&((a27==1)&&(!(a0==1)&&((!(a4==1)&&((input==1)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))))&&(a20==1)))))&&(a15==1))&&(a12==10))&&(a3==6))&&(a6==1))){ + a6 = 0; + a12 = 11; + a22 = 0; + a18 = 1; + a0 = 1; + a3 = 8; + a5 = 1; + return 24; + } else if((((a5==1)&&((((((a0==1)&&(((!(a22==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a3==7))&&(a12==12)))&&!(a6==1))&&(a20==1))&&!(a27==1))&&!(a15==1)))&&!(a4==1))){ + a27 = 1; + a3 = 4; + a12 = 9; + a18 = 0; + a0 = 0; + a22 = 1; + a5 = 0; + return 21; + } else if((((!(a15==1)&&(((((a0==1)&&(!(a5==1)&&((a6==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a20==1)))))&&(a3==6))&&(a4==1))&&(a12==12)))&&!(a22==1))&&!(a27==1))){ + a27 = 1; + a15 = 1; + a18 = 1; + return 26; + } else if((!(a15==1)&&(((a3==8)&&((a12==8)&&((!(a6==1)&&((((a18==1)&&((a22==1)&&((input==2)&&!(a5==1))))&&(a27==1))&&!(a0==1)))&&(a20==1))))&&(a4==1)))){ + a3 = 4; + a6 = 1; + a15 = 1; + a5 = 1; + a0 = 1; + return -1; + } else if(((!(a5==1)&&((a3==8)&&((a4==1)&&((((a0==1)&&((a20==1)&&(!(a15==1)&&(!(a27==1)&&((input==5)&&(a18==1))))))&&(a12==11))&&(a6==1)))))&&(a22==1))){ + a3 = 6; + a15 = 1; + a12 = 10; + return -1; + } else if(((((a5==1)&&(((a20==1)&&(!(a27==1)&&(((a15==1)&&(!(a6==1)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==4))))&&(a4==1))))&&(a3==8)))&&(a12==9))&&(a0==1))){ + a27 = 1; + a18 = 1; + a6 = 1; + a5 = 0; + a12 = 10; + a22 = 1; + a0 = 0; + return -1; + } else if((((((a3==7)&&((a4==1)&&((a27==1)&&((((((input==2)&&((a18==1)||!(a18==1)))&&(a0==1))&&(a20==1))&&(a22==1))&&(a5==1)))))&&(a12==9))&&(a6==1))&&(a15==1))){ + a5 = 0; + a4 = 0; + a15 = 0; + a18 = 0; + a12 = 11; + a3 = 6; + a22 = 0; + return 26; + } else if((!(a4==1)&&(((a12==10)&&(!(a27==1)&&((((((a0==1)&&((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a20==1))&&!(a15==1))&&(a5==1))&&(a3==4))))&&!(a6==1)))){ + a18 = 1; + a22 = 0; + a12 = 9; + return -1; + } else if((!(a5==1)&&((a3==5)&&(!(a22==1)&&(((a0==1)&&((a27==1)&&(((((a20==1)&&((a15==1)&&(input==6)))&&!(a18==1))&&!(a4==1))&&(a6==1))))&&(a12==10)))))){ + a3 = 4; + a4 = 1; + a27 = 0; + a15 = 0; + a22 = 1; + a5 = 1; + return 21; + } else if((((a20==1)&&(((!(a27==1)&&((a0==1)&&(((a4==1)&&((a3==6)&&((a18==1)&&((a15==1)&&(input==2)))))&&(a12==12))))&&(a5==1))&&!(a22==1)))&&!(a6==1))){ + if((a5==1)){ + a27 = 1; + a15 = 0; + a0 = 0; + a18 = 0; + a6 = 1; + }else{ + a0 = 0; + a27 = 1; + a4 = 0; + a15 = 0; + a22 = 1; + a12 = 9; + a6 = 1; + a3 = 7; + a18 = 0; + } + return -1; + } else if(((!(a4==1)&&((a27==1)&&((!(a15==1)&&(!(a0==1)&&((((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==6))&&(a12==9))&&(a5==1))))&&(a6==1))))&&(a20==1))){ + a6 = 0; + a15 = 1; + a18 = 0; + a3 = 8; + a22 = 1; + a12 = 11; + return -1; + } else if((((a12==9)&&((!(a4==1)&&(((a0==1)&&(((a20==1)&&((((a3==7)&&((a22==1)&&!(a18==1)))||(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1)))))&&(input==1)))&&!(a15==1)))&&!(a6==1)))&&(a27==1)))&&(a5==1))){ + a12 = 8; + a15 = 1; + a18 = 1; + a3 = 4; + a4 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if(((a20==1)&&((a3==4)&&((a27==1)&&((((!(a15==1)&&((((input==1)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&(a6==1))&&!(a5==1)))&&!(a0==1))&&(a12==12))&&!(a4==1)))))){ + if((a5==1)){ + a0 = 1; + a3 = 6; + a5 = 1; + a4 = 1; + a18 = 1; + a6 = 0; + a15 = 1; + a22 = 1; + a12 = 8; + }else{ + a15 = 1; + a5 = 1; + a18 = 1; + a22 = 1; + a3 = 8; + a0 = 1; + a12 = 8; + a4 = 1; + } + return 21; + } else if(((((((a0==1)&&((a3==5)&&(!(a15==1)&&((((input==5)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&!(a4==1))&&(a20==1)))))&&!(a5==1))&&!(a6==1))&&(a12==11))&&!(a27==1))){ + a6 = 1; + a22 = 1; + a12 = 12; + a5 = 1; + a27 = 1; + a18 = 0; + return 26; + } else if((((a27==1)&&(!(a4==1)&&((((a0==1)&&(!(a6==1)&&((a20==1)&&((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==3))&&(a12==10)))))&&!(a15==1))&&(a5==1))))&&(a3==7))){ + a3 = 6; + a15 = 1; + a18 = 0; + a22 = 0; + return -1; + } else if(((a0==1)&&((((a5==1)&&((a15==1)&&(((((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==3))&&(a20==1))&&!(a27==1))&&(a12==12))&&(a4==1))))&&(a6==1))&&(a3==4)))){ + a3 = 7; + a22 = 1; + a12 = 9; + a18 = 1; + return -1; + } else if(((a27==1)&&(!(a6==1)&&((a15==1)&&((a0==1)&&((a12==11)&&((a20==1)&&(!(a4==1)&&((a5==1)&&(((((a22==1)&&!(a18==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1)))))&&(input==6))))))))))){ + a4 = 1; + a18 = 1; + a12 = 8; + a6 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((a27==1)&&((a3==7)&&((a6==1)&&(((((a20==1)&&(!(a0==1)&&(!(a4==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2)))))&&!(a15==1))&&!(a5==1))&&(a12==10)))))){ + a12 = 8; + a22 = 1; + a5 = 1; + a4 = 1; + a15 = 1; + a0 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((a3==6)&&((((a22==1)&&((a0==1)&&(!(a4==1)&&(((a20==1)&&(((a5==1)&&((input==2)&&((a18==1)||!(a18==1))))&&(a12==8)))&&!(a27==1)))))&&(a6==1))&&(a15==1)))){ + a15 = 0; + a3 = 7; + a5 = 0; + a27 = 1; + a18 = 1; + a6 = 0; + a12 = 12; + return -1; + } else if(((a6==1)&&((!(a5==1)&&(!(a27==1)&&(!(a0==1)&&((((a15==1)&&((input==3)&&(((!(a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==5))))))&&(a12==10))&&(a20==1)))))&&(a4==1)))){ + if((a15==1)){ + a6 = 0; + a5 = 1; + a22 = 0; + a27 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + }else{ + a18 = 1; + a12 = 8; + a3 = 6; + a27 = 1; + a6 = 0; + a0 = 1; + a22 = 1; + } + return -1; + } else if(((((a12==10)&&((a15==1)&&(((a20==1)&&((a6==1)&&(((input==4)&&((((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5)))||((a3==5)&&(!(a18==1)&&(a22==1)))))&&(a27==1))))&&(a4==1))))&&!(a0==1))&&(a5==1))){ + a4 = 0; + a3 = 4; + a22 = 0; + a18 = 1; + a15 = 0; + return 21; + } else if(((a4==1)&&(!(a18==1)&&((a5==1)&&((a3==5)&&((!(a0==1)&&(((((!(a22==1)&&(input==3))&&!(a6==1))&&(a20==1))&&(a15==1))&&(a27==1)))&&(a12==9))))))){ + a22 = 1; + a3 = 4; + a12 = 12; + a4 = 0; + a18 = 1; + a0 = 1; + return 26; + } else if(((!(a4==1)&&(((a0==1)&&(!(a6==1)&&(((((a20==1)&&((input==5)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))&&!(a15==1))&&!(a27==1))&&(a12==9))))&&(a3==7)))&&(a5==1))){ + a4 = 1; + a12 = 12; + a3 = 8; + a22 = 0; + a18 = 0; + a15 = 1; + a6 = 1; + a27 = 1; + return 21; + } else if(((((((a20==1)&&(!(a27==1)&&(!(a5==1)&&((a6==1)&&((input==2)&&(((a3==7)&&((a22==1)&&!(a18==1)))||(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1))))))))))&&(a0==1))&&(a12==10))&&!(a4==1))&&(a15==1))){ + if((a22==1)){ + a22 = 1; + a3 = 8; + a4 = 1; + a18 = 0; + a0 = 0; + a27 = 1; + a6 = 0; + a12 = 9; + a15 = 0; + }else{ + a3 = 6; + a12 = 11; + a15 = 0; + a22 = 0; + a5 = 1; + a18 = 0; + } + return 26; + } else if((!(a6==1)&&(((a20==1)&&((((a27==1)&&(((((((a18==1)&&(a22==1))&&(a3==5))||((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1)))))&&(input==5))&&(a12==9))&&(a4==1)))&&(a0==1))&&(a5==1)))&&(a15==1)))){ + a18 = 1; + a4 = 0; + a22 = 1; + a6 = 1; + a12 = 12; + a3 = 4; + return 24; + } else if((!(a5==1)&&(((((a20==1)&&((((((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4))))&&(input==6))&&(a12==10))&&!(a0==1)))&&!(a4==1))&&(a15==1))&&(a27==1)))){ + a6 = 1; + a4 = 1; + a3 = 4; + a18 = 1; + a5 = 1; + a22 = 1; + a0 = 1; + a12 = 8; + return -1; + } else if((!(a6==1)&&(!(a15==1)&&((!(a4==1)&&((((a20==1)&&((!(a22==1)&&((a5==1)&&(((a18==1)||!(a18==1))&&(input==2))))&&(a12==10)))&&!(a0==1))&&(a27==1)))&&(a3==7))))){ + a15 = 1; + a18 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + a6 = 1; + a0 = 1; + a4 = 1; + return -1; + } else if(((a12==11)&&((a20==1)&&(((((a5==1)&&((!(a15==1)&&(((((a18==1)&&(a22==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1)))))&&(input==3)))&&(a6==1)))&&(a4==1))&&(a0==1))&&!(a27==1))))){ + a6 = 0; + a22 = 1; + a27 = 1; + a15 = 1; + a18 = 0; + a3 = 6; + a4 = 0; + return 21; + } else if(((a20==1)&&((((a27==1)&&(((a22==1)&&(((a12==9)&&((((input==3)&&(a0==1))&&!(a6==1))&&(a15==1)))&&(a18==1)))&&(a5==1)))&&(a3==6))&&!(a4==1)))){ + a18 = 0; + a12 = 12; + a5 = 0; + return 24; + } else if(((a12==10)&&((((!(a15==1)&&((((a0==1)&&(((a20==1)&&((input==2)&&((a18==1)||!(a18==1))))&&(a4==1)))&&(a6==1))&&(a5==1)))&&!(a27==1))&&(a3==6))&&(a22==1)))){ + a3 = 4; + a27 = 1; + a12 = 8; + a15 = 1; + a18 = 1; + return -1; + } else if(((((((((a15==1)&&((a0==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==4))&&(a12==9))))&&(a6==1))&&(a3==7))&&(a4==1))&&(a20==1))&&!(a5==1))&&!(a27==1))){ + a27 = 1; + a18 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + a5 = 1; + return -1; + } else if(((a15==1)&&(!(a0==1)&&((((a12==8)&&(((((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==6))&&(a20==1))&&!(a5==1))&&!(a6==1)))&&(a27==1))&&(a4==1))))){ + a15 = 0; + a18 = 1; + a22 = 1; + a3 = 6; + a12 = 11; + return 26; + } else if(((!(a27==1)&&(((a3==7)&&((a6==1)&&((((((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a5==1))&&!(a15==1))&&(a12==10))&&(a20==1))))&&(a0==1)))&&!(a4==1))){ + a4 = 1; + a12 = 12; + a15 = 1; + a3 = 5; + a27 = 1; + a22 = 0; + a18 = 1; + return 21; + } else if((((((a6==1)&&(!(a5==1)&&(((a15==1)&&((a20==1)&&((input==3)&&((((a22==1)&&!(a18==1))&&(a3==8))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))))))&&!(a27==1))))&&!(a0==1))&&(a12==10))&&(a4==1))){ + if((a12==8)){ + a27 = 1; + a5 = 1; + a18 = 1; + a22 = 1; + a0 = 1; + a6 = 0; + a3 = 4; + a4 = 0; + a12 = 8; + }else{ + a22 = 0; + a6 = 0; + a3 = 8; + a12 = 8; + a18 = 1; + a0 = 1; + a27 = 1; + a5 = 1; + } + return 24; + } else if(((((a20==1)&&(((!(a27==1)&&((a12==11)&&(((input==1)&&((((a3==7)&&(!(a22==1)&&(a18==1)))||((a3==7)&&(!(a18==1)&&!(a22==1))))||((a3==8)&&((a22==1)&&(a18==1)))))&&!(a0==1))))&&(a6==1))&&(a4==1)))&&(a15==1))&&(a5==1))){ + a27 = 1; + a22 = 1; + a3 = 4; + a4 = 0; + a18 = 0; + a0 = 1; + a12 = 8; + return 24; + } else if(((((a3==5)&&((a22==1)&&(((a4==1)&&(((!(a15==1)&&(!(a0==1)&&((input==2)&&(a12==10))))&&(a20==1))&&(a6==1)))&&(a5==1))))&&!(a27==1))&&!(a18==1))){ + a15 = 1; + a3 = 8; + a4 = 0; + a6 = 0; + a27 = 1; + a12 = 11; + return -1; + } else if((((a0==1)&&((((a3==5)&&(((a12==12)&&((!(a4==1)&&((a5==1)&&((input==1)&&(a27==1))))&&(a20==1)))&&!(a22==1)))&&!(a15==1))&&!(a18==1)))&&!(a6==1))){ + if((a0==1)){ + a22 = 1; + a0 = 0; + a5 = 0; + a18 = 1; + a3 = 4; + a12 = 9; + } + return 21; + } else if((((!(a27==1)&&((a4==1)&&(((a12==8)&&((a20==1)&&(!(a0==1)&&((a15==1)&&(!(a22==1)&&(((a18==1)||!(a18==1))&&(input==3)))))))&&(a5==1))))&&(a6==1))&&(a3==8))){ + if((a5==1)){ + a6 = 0; + a0 = 1; + a27 = 1; + a3 = 7; + a18 = 0; + a22 = 1; + }else{ + a18 = 1; + a0 = 1; + a3 = 4; + a27 = 1; + } + return -1; + } else if(((a12==9)&&((!(a15==1)&&(!(a0==1)&&((!(a5==1)&&((((input==4)&&((((a22==1)&&!(a18==1))&&(a3==6))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6)))))&&!(a4==1))&&!(a6==1)))&&(a20==1))))&&(a27==1)))){ + a4 = 1; + a18 = 0; + a15 = 1; + a12 = 10; + a6 = 1; + a3 = 8; + a0 = 1; + a22 = 0; + return -1; + } else if((((a5==1)&&(!(a18==1)&&(((!(a6==1)&&((((((input==5)&&(a12==8))&&(a3==8))&&(a20==1))&&(a27==1))&&!(a15==1)))&&(a4==1))&&!(a0==1))))&&!(a22==1))){ + a18 = 1; + a3 = 4; + a22 = 1; + a0 = 1; + a6 = 1; + a15 = 1; + return -1; + } else if((((a5==1)&&(!(a0==1)&&(((a3==6)&&((a12==11)&&(((a15==1)&&(!(a6==1)&&((input==4)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))))&&(a20==1))))&&!(a27==1))))&&(a4==1))){ + a15 = 0; + a22 = 0; + a18 = 0; + a6 = 1; + a0 = 1; + a4 = 0; + a27 = 1; + a3 = 8; + return -1; + } else if((((a27==1)&&(((a3==4)&&((a15==1)&&((!(a4==1)&&(((a22==1)&&(((input==4)&&(a6==1))&&(a12==12)))&&(a5==1)))&&(a20==1))))&&!(a0==1)))&&!(a18==1))){ + a0 = 1; + a4 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if((((a20==1)&&((!(a27==1)&&(((a3==7)&&(((!(a6==1)&&((a0==1)&&((input==4)&&((a18==1)||!(a18==1)))))&&!(a4==1))&&!(a22==1)))&&!(a15==1)))&&!(a5==1)))&&(a12==12))){ + a22 = 1; + a18 = 0; + a27 = 1; + a3 = 8; + a12 = 10; + a15 = 1; + a4 = 1; + a6 = 1; + a5 = 1; + return -1; + } else if((((a3==6)&&((a5==1)&&((((a12==11)&&((a20==1)&&((!(a15==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a27==1)))&&!(a4==1))))&&!(a0==1))&&(a6==1))))&&!(a22==1))){ + a5 = 0; + a0 = 1; + a22 = 1; + a18 = 0; + a12 = 10; + return -1; + } else if(((a22==1)&&((((a3==6)&&((((a5==1)&&(!(a4==1)&&(!(a0==1)&&((a27==1)&&((input==5)&&((a18==1)||!(a18==1)))))))&&(a12==10))&&(a20==1)))&&!(a15==1))&&(a6==1)))){ + a4 = 1; + a0 = 1; + a18 = 1; + a12 = 12; + a3 = 8; + return 26; + } else if(((a4==1)&&(!(a27==1)&&(!(a0==1)&&((a12==10)&&((a6==1)&&((a20==1)&&((((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==2))&&(a3==7))&&(a5==1))&&!(a15==1))))))))){ + a15 = 1; + a18 = 0; + a3 = 8; + a12 = 8; + a0 = 1; + a22 = 0; + a27 = 1; + a4 = 0; + return -1; + } else if(((!(a0==1)&&(((!(a6==1)&&(!(a4==1)&&(((a12==11)&&(((input==2)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a20==1)))&&(a5==1))))&&(a15==1))&&(a3==4)))&&!(a27==1))){ + if((a22==1)){ + a4 = 1; + a3 = 7; + a18 = 0; + a22 = 1; + }else{ + a22 = 1; + a27 = 1; + a4 = 1; + a6 = 1; + a0 = 1; + a15 = 0; + a3 = 8; + a18 = 1; + a12 = 12; + } + return -1; + } else if(((((((!(a15==1)&&((((((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==4))&&!(a27==1))&&(a0==1)))&&(a12==8))&&(a6==1))&&(a20==1))&&(a4==1))&&!(a5==1))){ + a18 = 1; + a5 = 1; + a22 = 1; + a3 = 4; + a15 = 1; + a27 = 1; + return -1; + } else if((((a3==7)&&(!(a0==1)&&(((a5==1)&&((a20==1)&&(!(a4==1)&&((!(a6==1)&&(((input==5)&&(a12==9))&&(a27==1)))&&!(a18==1)))))&&(a15==1))))&&(a22==1))){ + a4 = 1; + a27 = 0; + a0 = 1; + a22 = 0; + a3 = 4; + return 21; + } else if(((a12==8)&&((a20==1)&&(((a0==1)&&((a6==1)&&(((((input==3)&&(((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1)))))&&!(a27==1))&&(a4==1))&&!(a15==1))))&&(a5==1))))){ + if((a22==1)){ + a6 = 0; + a18 = 1; + a0 = 0; + a12 = 9; + a5 = 0; + a3 = 5; + a27 = 1; + a15 = 1; + a22 = 0; + }else{ + a27 = 1; + a4 = 0; + a15 = 1; + a3 = 5; + a18 = 0; + a6 = 0; + a12 = 12; + a22 = 0; + } + return 24; + } else if((!(a5==1)&&((a27==1)&&((((a20==1)&&((a0==1)&&(((a4==1)&&((a6==1)&&(!(a15==1)&&((input==3)&&(a18==1)))))&&(a12==8))))&&(a3==5))&&!(a22==1))))){ + a15 = 1; + a22 = 1; + a4 = 0; + a6 = 0; + a18 = 0; + a12 = 10; + return 26; + } else if((((a3==7)&&((((((a4==1)&&((a22==1)&&(!(a5==1)&&(!(a15==1)&&(!(a27==1)&&(input==1))))))&&(a12==12))&&(a20==1))&&(a0==1))&&(a6==1)))&&(a18==1))){ + a27 = 1; + a5 = 1; + a3 = 4; + a12 = 8; + a15 = 1; + return -1; + } else if((!(a6==1)&&((((a20==1)&&(((a0==1)&&((((input==2)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1)))))&&!(a5==1))&&(a15==1)))&&!(a4==1)))&&(a12==8))&&(a27==1)))){ + a6 = 1; + a5 = 1; + a3 = 4; + a4 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if((((a4==1)&&(((!(a27==1)&&(!(a5==1)&&((a3==8)&&((((a22==1)&&((input==1)&&((a18==1)||!(a18==1))))&&!(a6==1))&&(a0==1)))))&&(a20==1))&&(a12==9)))&&!(a15==1))){ + a12 = 12; + a27 = 1; + a15 = 1; + a3 = 4; + a18 = 0; + return -1; + } else if(((((a6==1)&&(((!(a22==1)&&((a0==1)&&(!(a18==1)&&((a3==7)&&(((input==6)&&(a15==1))&&!(a5==1))))))&&(a20==1))&&(a27==1)))&&(a4==1))&&(a12==9))){ + a15 = 0; + a5 = 1; + a3 = 8; + a18 = 1; + a4 = 0; + a6 = 0; + a12 = 11; + return 26; + } else if(((a20==1)&&((((((a12==8)&&(!(a15==1)&&((a3==8)&&((!(a18==1)&&((input==6)&&(a0==1)))&&(a22==1)))))&&(a6==1))&&!(a27==1))&&!(a4==1))&&(a5==1)))){ + a5 = 0; + a15 = 1; + a12 = 9; + a4 = 1; + a3 = 7; + a22 = 0; + a18 = 1; + return 21; + } else if(((a12==12)&&((a27==1)&&((a0==1)&&((a20==1)&&(((((((((a22==1)&&(a18==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5))))&&(input==2))&&(a4==1))&&!(a5==1))&&(a15==1))&&!(a6==1))))))){ + a3 = 4; + a22 = 0; + a18 = 1; + a5 = 1; + a6 = 1; + return 21; + } else if(((a12==12)&&((((((a18==1)&&(!(a6==1)&&(((((a22==1)&&(input==4))&&(a20==1))&&(a3==6))&&(a27==1))))&&!(a15==1))&&(a5==1))&&!(a4==1))&&!(a0==1)))){ + a15 = 1; + a0 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((a20==1)&&(!(a4==1)&&((((a15==1)&&(((a12==8)&&((a3==4)&&((!(a6==1)&&((input==5)&&!(a18==1)))&&(a27==1))))&&(a5==1)))&&(a0==1))&&(a22==1))))){ + a18 = 1; + a3 = 5; + return 24; + } else if(((!(a5==1)&&(!(a22==1)&&((a6==1)&&((a12==12)&&((((a20==1)&&(!(a27==1)&&(((input==6)&&(a3==8))&&(a15==1))))&&!(a4==1))&&(a18==1))))))&&(a0==1))){ + a27 = 1; + a12 = 11; + a6 = 0; + a15 = 0; + a18 = 0; + a22 = 1; + return 21; + } else if((((!(a4==1)&&((((((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==3))&&(a3==4))&&!(a27==1))&&(a12==11))&&!(a15==1))&&(a5==1))&&(a6==1)))&&(a0==1))&&(a20==1))){ + a27 = 1; + a18 = 1; + a6 = 0; + a3 = 8; + a15 = 1; + a22 = 1; + return -1; + } else if((!(a4==1)&&((a5==1)&&((((a6==1)&&((a3==8)&&((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1))&&!(a15==1))&&!(a0==1))&&!(a27==1))))&&(a12==9))&&(a20==1))))){ + a5 = 0; + a18 = 0; + a22 = 1; + a15 = 1; + a3 = 7; + a12 = 11; + a0 = 1; + a27 = 1; + a4 = 1; + return -1; + } else if(((((a27==1)&&((a22==1)&&(!(a5==1)&&((a0==1)&&(((((a12==10)&&((input==6)&&((a18==1)||!(a18==1))))&&(a4==1))&&!(a15==1))&&!(a6==1))))))&&(a20==1))&&(a3==5))){ + a3 = 8; + a18 = 0; + a27 = 0; + a5 = 1; + a4 = 0; + return 21; + } else if(((((a12==12)&&(((((!(a22==1)&&(((a0==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a5==1)))&&(a20==1))&&!(a4==1))&&(a6==1))&&!(a15==1)))&&(a3==8))&&!(a27==1))){ + if((a3==8)){ + a12 = 10; + a27 = 1; + a0 = 0; + a4 = 1; + a3 = 7; + a18 = 0; + a5 = 0; + a22 = 1; + }else{ + a18 = 1; + a3 = 7; + a6 = 0; + a27 = 1; + } + return -1; + } else if((((((a15==1)&&((a0==1)&&((a3==5)&&((a4==1)&&(((a20==1)&&((input==1)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))&&(a12==10))))))&&!(a6==1))&&!(a27==1))&&!(a5==1))){ + a3 = 4; + a12 = 8; + a6 = 1; + a5 = 1; + a22 = 1; + a18 = 1; + a27 = 1; + return -1; + } else if(((!(a4==1)&&((a0==1)&&((!(a6==1)&&(((((input==5)&&((((a22==1)&&(a18==1))&&(a3==8))||(((!(a22==1)&&(a18==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7)))))&&(a27==1))&&(a15==1))&&(a12==9)))&&!(a5==1))))&&(a20==1))){ + a12 = 8; + a5 = 1; + a22 = 0; + a15 = 0; + a3 = 4; + a0 = 0; + a18 = 1; + return 21; + } else if(((a3==4)&&(((!(a27==1)&&(!(a4==1)&&((a0==1)&&((a20==1)&&(((a12==11)&&((input==1)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a5==1))))))&&(a15==1))&&(a6==1)))){ + a27 = 1; + a12 = 10; + a18 = 0; + a3 = 6; + a5 = 1; + a22 = 0; + return -1; + } else if(((!(a5==1)&&(((a12==8)&&(!(a27==1)&&((input==3)&&(((!(a6==1)&&((!(a4==1)&&((!(a22==1)&&(a18==1))&&(a15==1)))&&(a3==8)))||(!(a6==1)&&((a3==8)&&(((!(a22==1)&&!(a18==1))&&(a15==1))&&!(a4==1)))))||(((a3==4)&&((((a18==1)&&(a22==1))&&!(a15==1))&&(a4==1)))&&(a6==1))))))&&!(a0==1)))&&(a20==1))){ + a27 = 1; + a3 = 5; + a5 = 1; + a4 = 1; + a0 = 1; + a18 = 1; + a15 = 1; + a6 = 0; + a22 = 1; + return 26; + } else if((!(a27==1)&&((a3==7)&&((((a22==1)&&(!(a18==1)&&(!(a15==1)&&((a12==9)&&((((input==1)&&(a6==1))&&(a5==1))&&(a0==1))))))&&(a4==1))&&(a20==1))))){ + a4 = 0; + a12 = 12; + a18 = 1; + a5 = 0; + a27 = 1; + a3 = 8; + return -1; + } else if(((a0==1)&&((a15==1)&&(!(a18==1)&&(((!(a22==1)&&(((((a3==6)&&((a6==1)&&(input==5)))&&(a12==8))&&!(a4==1))&&(a20==1)))&&(a27==1))&&!(a5==1)))))){ + a3 = 4; + a22 = 1; + a18 = 1; + a4 = 1; + a5 = 1; + return -1; + } else if((!(a27==1)&&((a0==1)&&((a20==1)&&((((((input==5)&&(((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1)))))||(((!(a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))))&&(a5==1))&&(a15==1))&&(a12==10))&&(a4==1)))))){ + a18 = 1; + a6 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + a27 = 1; + return -1; + } else if((!(a5==1)&&(!(a0==1)&&((a3==6)&&(!(a22==1)&&((a12==10)&&(((((((input==2)&&((a18==1)||!(a18==1)))&&(a15==1))&&!(a6==1))&&(a20==1))&&(a27==1))&&(a4==1)))))))){ + a18 = 0; + a5 = 1; + a0 = 1; + a4 = 0; + a15 = 0; + return -1; + } else if(((((((a4==1)&&(!(a5==1)&&(((!(a18==1)&&(!(a27==1)&&(!(a15==1)&&(input==4))))&&(a3==7))&&(a12==12))))&&!(a6==1))&&(a22==1))&&(a0==1))&&(a20==1))){ + a6 = 1; + a5 = 1; + a18 = 1; + a12 = 10; + a15 = 1; + a3 = 6; + a27 = 1; + return -1; + } else if((((!(a0==1)&&(((a4==1)&&((((((((a18==1)||!(a18==1))&&(input==6))&&(a27==1))&&(a22==1))&&(a6==1))&&!(a15==1))&&(a20==1)))&&(a5==1)))&&(a12==8))&&(a3==4))){ + a4 = 0; + a6 = 0; + a18 = 1; + a12 = 11; + a0 = 1; + a3 = 7; + a5 = 0; + return 26; + } else if(((((a6==1)&&((a4==1)&&((a20==1)&&((((a12==8)&&((input==6)&&(((a3==8)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7))))))&&(a5==1))&&!(a27==1)))))&&!(a0==1))&&(a15==1))){ + if((a15==1)){ + a3 = 5; + a15 = 0; + a18 = 0; + a12 = 10; + a22 = 0; + }else{ + a3 = 4; + a15 = 0; + a4 = 0; + a5 = 0; + a12 = 9; + a18 = 0; + a22 = 1; + } + return -1; + } else if(((((a20==1)&&((((a27==1)&&((((((input==3)&&(a4==1))&&(a12==10))&&!(a22==1))&&(a18==1))&&!(a0==1)))&&(a15==1))&&(a3==8)))&&(a5==1))&&!(a6==1))){ + a0 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + a6 = 1; + return -1; + } else if(((((((((!(a18==1)&&((a15==1)&&((a6==1)&&((input==3)&&!(a22==1)))))&&(a0==1))&&(a5==1))&&(a3==6))&&(a20==1))&&!(a4==1))&&!(a27==1))&&(a12==11))){ + if((a15==1)){ + a12 = 10; + a0 = 0; + a27 = 1; + }else{ + a12 = 8; + a3 = 5; + a18 = 1; + a22 = 1; + } + return -1; + } else if((((((a18==1)&&((a4==1)&&((a20==1)&&(((a27==1)&&((a22==1)&&(((a3==7)&&(input==1))&&!(a0==1))))&&!(a15==1)))))&&(a5==1))&&!(a6==1))&&(a12==8))){ + a22 = 0; + a12 = 12; + a0 = 1; + a3 = 6; + return 24; + } else if((!(a4==1)&&(((((a20==1)&&((((a3==8)&&(((input==3)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a15==1)))&&!(a27==1))&&!(a5==1)))&&!(a0==1))&&!(a6==1))&&(a12==10)))){ + a3 = 4; + a0 = 1; + a5 = 1; + a12 = 8; + a22 = 1; + a18 = 1; + a27 = 1; + return 21; + } else if((!(a5==1)&&((a3==4)&&((a0==1)&&((a4==1)&&((((a12==11)&&(!(a15==1)&&(((input==5)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&!(a27==1))))&&(a20==1))&&!(a6==1))))))){ + a5 = 1; + a6 = 1; + a3 = 6; + a18 = 1; + a22 = 1; + a27 = 1; + a12 = 10; + return 21; + } else if(((!(a6==1)&&((a12==9)&&((a5==1)&&(((a27==1)&&(!(a0==1)&&((!(a15==1)&&((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a4==1))))&&(a20==1)))))&&(a3==5))){ + a18 = 1; + a15 = 1; + a5 = 0; + a22 = 0; + a4 = 0; + a3 = 6; + a12 = 12; + a0 = 1; + return 21; + } else if(((a3==4)&&(!(a18==1)&&((((((a20==1)&&((a12==10)&&((((input==4)&&(a15==1))&&(a27==1))&&(a22==1))))&&!(a6==1))&&(a0==1))&&!(a5==1))&&(a4==1))))){ + a12 = 11; + a18 = 1; + a5 = 1; + a0 = 0; + return -1; + } else if(((a4==1)&&(!(a27==1)&&((a12==8)&&(!(a15==1)&&(!(a6==1)&&(((a20==1)&&(!(a0==1)&&(((((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a22==1)&&!(a18==1))))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==3))))&&!(a5==1)))))))){ + if((a18==1)){ + a0 = 1; + a6 = 1; + a27 = 1; + a15 = 1; + a18 = 0; + a22 = 0; + a3 = 5; + a5 = 1; + }else{ + a12 = 9; + a0 = 1; + a15 = 1; + a6 = 1; + a3 = 4; + a22 = 0; + a5 = 1; + a18 = 1; + } + return -1; + } else if(((((((a0==1)&&((!(a4==1)&&(((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==2))&&!(a27==1))&&!(a5==1)))&&(a15==1)))&&(a20==1))&&(a12==12))&&(a3==7))&&(a6==1))){ + a5 = 1; + a22 = 1; + a4 = 1; + a27 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + return -1; + } else if(((a15==1)&&((!(a5==1)&&(!(a0==1)&&((a3==5)&&((a20==1)&&(!(a4==1)&&((!(a6==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==3)))&&(a27==1)))))))&&(a12==12)))){ + a22 = 0; + a4 = 1; + a3 = 6; + a18 = 0; + a0 = 1; + return -1; + } else if((((!(a4==1)&&((a12==11)&&((a15==1)&&(!(a6==1)&&((a20==1)&&(((a3==4)&&((input==4)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&!(a27==1)))))))&&(a5==1))&&!(a0==1))){ + a12 = 9; + a4 = 1; + a22 = 0; + a18 = 0; + a3 = 5; + a5 = 0; + return -1; + } else if(((a0==1)&&((!(a5==1)&&((a20==1)&&(((!(a6==1)&&((((((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==6)))&&(input==3))&&!(a27==1)))&&(a4==1))&&(a12==10))))&&(a15==1)))){ + a5 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + a27 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if(((((a5==1)&&((a0==1)&&(!(a18==1)&&(((((((a20==1)&&(input==4))&&(a12==8))&&(a4==1))&&!(a27==1))&&(a15==1))&&(a3==5)))))&&!(a22==1))&&(a6==1))){ + a3 = 8; + a27 = 1; + a4 = 0; + a22 = 1; + a12 = 10; + return 26; + } else if(((!(a0==1)&&(!(a15==1)&&((!(a5==1)&&((a20==1)&&((((a12==10)&&((input==6)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a6==1))&&(a3==7))))&&!(a4==1))))&&(a27==1))){ + a6 = 0; + a5 = 1; + a0 = 1; + a18 = 0; + a22 = 1; + a3 = 6; + a12 = 11; + a27 = 0; + return 21; + } else if(((!(a5==1)&&((a20==1)&&((!(a15==1)&&((a12==9)&&((((((a3==6)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1)))))&&(input==2))&&!(a6==1))&&!(a0==1))))&&!(a27==1))))&&(a4==1))){ + if((a15==1)){ + a6 = 1; + a18 = 0; + a3 = 6; + a15 = 1; + a4 = 0; + a27 = 1; + a0 = 1; + a5 = 1; + a12 = 8; + a22 = 0; + }else{ + a18 = 0; + a3 = 5; + a4 = 0; + a6 = 1; + a0 = 1; + a15 = 1; + a12 = 8; + a5 = 1; + a22 = 0; + a27 = 1; + } + return -1; + } else if((!(a6==1)&&((a0==1)&&((a27==1)&&((a4==1)&&((a5==1)&&((a12==12)&&(((a20==1)&&((input==3)&&((((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==5)))))&&!(a15==1))))))))){ + a15 = 1; + a3 = 7; + a12 = 10; + a22 = 1; + a18 = 0; + a6 = 1; + return -1; + } else if((((((((a0==1)&&(!(a6==1)&&((((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))||((a3==7)&&(!(a18==1)&&(a22==1))))&&(input==3))&&!(a15==1))))&&(a20==1))&&(a5==1))&&(a4==1))&&(a27==1))&&(a12==11))){ + a6 = 1; + a3 = 8; + a22 = 0; + a27 = 0; + a18 = 0; + a15 = 1; + return 24; + } else if(((((a12==9)&&(!(a6==1)&&(!(a5==1)&&(!(a15==1)&&(((a20==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==6))&&!(a4==1)))&&!(a27==1))))))&&(a3==8))&&(a0==1))){ + a27 = 1; + a15 = 1; + a22 = 0; + a3 = 6; + a18 = 0; + a4 = 1; + a5 = 1; + a12 = 10; + return 21; + } else if((((a3==4)&&((a20==1)&&(((a0==1)&&(((((!(a15==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a5==1))&&!(a4==1))&&(a6==1))&&(a12==9)))&&(a27==1))))&&!(a22==1))){ + a15 = 1; + a18 = 0; + a27 = 0; + a12 = 8; + a4 = 1; + a6 = 0; + return 26; + } else if(((!(a15==1)&&((a3==7)&&(!(a4==1)&&((((a12==9)&&((a20==1)&&((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==3))&&(a27==1))))&&(a0==1))&&(a5==1)))))&&(a6==1))){ + a3 = 8; + a15 = 1; + a12 = 8; + a6 = 0; + a4 = 1; + a27 = 0; + a22 = 0; + a18 = 0; + return 24; + } else if(((a3==4)&&((a12==10)&&((a22==1)&&((((a20==1)&&((a5==1)&&((a6==1)&&(((((a18==1)||!(a18==1))&&(input==4))&&(a4==1))&&!(a15==1)))))&&(a27==1))&&!(a0==1)))))){ + a15 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if((((!(a6==1)&&((a3==8)&&(!(a5==1)&&((a20==1)&&(!(a15==1)&&((!(a0==1)&&((input==1)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))))&&!(a4==1)))))))&&(a12==9))&&!(a27==1))){ + a27 = 1; + a0 = 1; + a6 = 1; + a3 = 6; + a15 = 1; + a4 = 1; + a5 = 1; + a18 = 1; + a22 = 0; + a12 = 8; + return 21; + } else if(((a3==4)&&(!(a4==1)&&((a15==1)&&(!(a0==1)&&((a5==1)&&((!(a6==1)&&(((((input==5)&&(a12==8))&&(a18==1))&&(a22==1))&&!(a27==1)))&&(a20==1)))))))){ + a15 = 0; + a27 = 1; + a4 = 1; + a6 = 1; + return 21; + } else if(((a12==9)&&(((((a27==1)&&((a3==5)&&((!(a5==1)&&((a15==1)&&(!(a4==1)&&((input==6)&&((a18==1)||!(a18==1))))))&&!(a0==1))))&&!(a6==1))&&(a22==1))&&(a20==1)))){ + if((a4==1)){ + a18 = 1; + }else{ + a0 = 1; + a4 = 1; + a12 = 10; + a5 = 1; + a3 = 8; + a18 = 1; + a15 = 0; + } + return 21; + } else if((!(a22==1)&&(((a3==4)&&((a0==1)&&((((((a5==1)&&((((a18==1)||!(a18==1))&&(input==3))&&(a4==1)))&&!(a27==1))&&(a6==1))&&(a20==1))&&(a15==1))))&&(a12==8)))){ + if((a3==6)){ + a5 = 0; + a27 = 1; + a18 = 0; + a0 = 0; + a12 = 9; + a6 = 0; + a3 = 8; + }else{ + a5 = 0; + a12 = 10; + a4 = 0; + a18 = 0; + a27 = 1; + a15 = 0; + a3 = 7; + a22 = 1; + } + return 26; + } else if(((a12==10)&&((a5==1)&&((!(a22==1)&&((a27==1)&&(!(a6==1)&&(!(a0==1)&&((a3==8)&&(!(a15==1)&&((a20==1)&&(!(a4==1)&&(input==3)))))))))&&(a18==1))))){ + a22 = 1; + a6 = 1; + a0 = 1; + a12 = 11; + a4 = 1; + return 24; + } else if(((((a0==1)&&((a20==1)&&(!(a18==1)&&(((a15==1)&&((a12==9)&&((a3==7)&&((a27==1)&&((input==6)&&(a5==1))))))&&!(a22==1)))))&&(a4==1))&&!(a6==1))){ + if((a12==9)){ + a22 = 1; + a0 = 0; + a18 = 1; + a12 = 11; + a6 = 1; + a3 = 5; + }else{ + a18 = 1; + a3 = 5; + a4 = 0; + a12 = 8; + a15 = 0; + a0 = 0; + a6 = 1; + } + return 24; + } else if(((a27==1)&&((a0==1)&&((a12==8)&&(!(a4==1)&&((a20==1)&&((!(a5==1)&&(((input==3)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1)))))&&(a15==1)))&&(a6==1)))))))){ + a6 = 0; + a22 = 1; + a12 = 10; + a18 = 1; + a5 = 1; + a3 = 4; + return 24; + } else if((!(a6==1)&&(!(a15==1)&&(((a0==1)&&(((a4==1)&&((a5==1)&&(((input==5)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))||((a3==6)&&(!(a18==1)&&(a22==1)))))&&!(a27==1))))&&(a20==1)))&&(a12==10))))){ + a22 = 0; + a27 = 1; + a12 = 11; + a6 = 1; + a18 = 0; + a3 = 4; + a5 = 0; + return -1; + } else if(((a15==1)&&((a3==5)&&((a12==12)&&((!(a5==1)&&(((a20==1)&&((a27==1)&&((!(a6==1)&&((input==2)&&((a18==1)||!(a18==1))))&&(a0==1))))&&(a22==1)))&&(a4==1)))))){ + a3 = 4; + a27 = 0; + a18 = 1; + a15 = 0; + a22 = 0; + a4 = 0; + return -1; + } else if((((a4==1)&&((a27==1)&&(!(a5==1)&&((a12==8)&&(((a15==1)&&((a20==1)&&((input==2)&&(((!(a18==1)&&!(a22==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8))))))&&(a6==1))))))&&!(a0==1))){ + if((a27==1)){ + a22 = 1; + a18 = 0; + a6 = 0; + a15 = 0; + a12 = 10; + a3 = 8; + a4 = 0; + }else{ + a15 = 0; + a12 = 10; + a22 = 0; + a0 = 1; + a4 = 0; + a3 = 5; + a5 = 1; + a18 = 0; + a27 = 0; + } + return -1; + } else if((((!(a5==1)&&((((a3==6)&&(((((((a18==1)||!(a18==1))&&(input==5))&&!(a6==1))&&!(a22==1))&&!(a27==1))&&(a12==11)))&&(a20==1))&&!(a4==1)))&&(a15==1))&&!(a0==1))){ + a22 = 1; + a27 = 1; + a18 = 1; + a5 = 1; + a12 = 8; + a3 = 7; + a0 = 1; + a4 = 1; + return 24; + } else if((((((a15==1)&&((!(a6==1)&&((a3==4)&&((a12==9)&&((((input==1)&&!(a5==1))&&!(a18==1))&&!(a22==1)))))&&(a20==1)))&&!(a27==1))&&(a0==1))&&(a4==1))){ + a6 = 1; + a4 = 0; + a27 = 1; + a22 = 1; + a0 = 0; + a12 = 10; + a5 = 1; + a3 = 5; + a18 = 1; + return 21; + } else if(((a12==8)&&((!(a15==1)&&((a6==1)&&((((((a20==1)&&((a27==1)&&((input==2)&&((a18==1)||!(a18==1)))))&&(a0==1))&&!(a4==1))&&(a3==4))&&(a5==1))))&&!(a22==1)))){ + a6 = 0; + a3 = 8; + a15 = 1; + a18 = 0; + a4 = 1; + a12 = 9; + return 26; + } else if((((((a12==12)&&((a5==1)&&((a20==1)&&((((a6==1)&&((input==1)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&(a3==8))&&(a15==1)))))&&!(a4==1))&&(a0==1))&&!(a27==1))){ + a22 = 0; + a5 = 0; + a4 = 1; + a6 = 0; + a18 = 1; + a3 = 4; + a27 = 1; + return 24; + } else if(((a20==1)&&((a27==1)&&((!(a5==1)&&((a15==1)&&((a3==7)&&(!(a22==1)&&(!(a4==1)&&((!(a0==1)&&(!(a18==1)&&(input==1)))&&!(a6==1)))))))&&(a12==8))))){ + a22 = 1; + a4 = 1; + a5 = 1; + a3 = 4; + a0 = 1; + a6 = 1; + a18 = 1; + return -1; + } else if(((!(a4==1)&&(((a15==1)&&((((a5==1)&&((!(a18==1)&&(((input==1)&&(a12==9))&&(a6==1)))&&!(a0==1)))&&!(a27==1))&&(a3==4)))&&(a22==1)))&&(a20==1))){ + a18 = 1; + a4 = 1; + a22 = 0; + a3 = 8; + a0 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if(((((a15==1)&&((a4==1)&&((!(a0==1)&&(((a12==10)&&(!(a27==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4))))&&!(a6==1)))&&(a3==4))))&&(a20==1))&&(a5==1))){ + if((a4==1)){ + a12 = 8; + a22 = 0; + a0 = 1; + a27 = 1; + a18 = 0; + }else{ + a15 = 0; + a27 = 1; + a4 = 0; + a22 = 0; + a0 = 1; + a12 = 11; + a18 = 0; + } + return -1; + } else if(((!(a6==1)&&(((((a0==1)&&((a15==1)&&((a12==9)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==3)))))&&!(a5==1))&&(a20==1))&&!(a27==1)))&&(a4==1))){ + a5 = 1; + a18 = 1; + a22 = 1; + a3 = 4; + a27 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if((!(a6==1)&&(!(a18==1)&&((a15==1)&&(((((a3==8)&&((((!(a0==1)&&(input==2))&&!(a4==1))&&!(a27==1))&&!(a5==1)))&&(a20==1))&&(a22==1))&&(a12==11)))))){ + if((a15==1)){ + a0 = 1; + a3 = 7; + a27 = 1; + a12 = 8; + a6 = 1; + a5 = 1; + a4 = 1; + }else{ + a12 = 9; + a4 = 1; + a3 = 7; + a5 = 1; + } + return 26; + } else if(((((((a3==7)&&((a5==1)&&((a4==1)&&(!(a15==1)&&(!(a0==1)&&((a12==9)&&((input==6)&&(a20==1))))))))&&(a18==1))&&(a6==1))&&!(a27==1))&&!(a22==1))){ + if((a15==1)){ + a5 = 0; + a27 = 1; + a12 = 12; + a15 = 1; + }else{ + a27 = 1; + a15 = 1; + a12 = 11; + a3 = 6; + } + return 21; + } else if(((((((!(a6==1)&&((((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==1))&&(a20==1))&&!(a5==1))&&!(a0==1)))&&(a15==1))&&!(a4==1))&&(a27==1))&&(a12==11))&&(a3==4))){ + a0 = 1; + a12 = 8; + a18 = 0; + a22 = 0; + a5 = 1; + return 21; + } else if((!(a18==1)&&((((a3==4)&&((((((a5==1)&&((!(a4==1)&&(input==6))&&(a12==9)))&&(a6==1))&&!(a0==1))&&(a22==1))&&(a20==1)))&&(a15==1))&&(a27==1)))){ + a12 = 11; + a15 = 0; + a5 = 0; + a3 = 5; + a6 = 0; + a27 = 0; + a0 = 1; + return 21; + } else if(((((a20==1)&&(((a18==1)&&((a15==1)&&((a4==1)&&(((a0==1)&&(((input==3)&&(a12==9))&&!(a27==1)))&&!(a6==1)))))&&(a5==1)))&&(a22==1))&&(a3==6))){ + a22 = 0; + a3 = 5; + a27 = 1; + a12 = 10; + a6 = 1; + a15 = 0; + a18 = 0; + return 21; + } else if(((((a3==8)&&((!(a6==1)&&(!(a15==1)&&(!(a0==1)&&(((!(a4==1)&&((input==4)&&((a18==1)||!(a18==1))))&&(a20==1))&&(a5==1)))))&&(a27==1)))&&(a12==10))&&(a22==1))){ + a22 = 0; + a0 = 1; + a6 = 1; + a12 = 12; + a18 = 1; + return -1; + } else if((((((a5==1)&&((a15==1)&&((a20==1)&&(((a0==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&(a12==12))&&(a3==8)))&&(a4==1)))))&&(a27==1))&&(a6==1))&&!(a22==1))){ + a6 = 0; + a18 = 0; + a12 = 10; + a3 = 6; + return 21; + } else if(((((((((a0==1)&&(((a5==1)&&((input==2)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))&&!(a15==1)))&&(a12==12))&&(a20==1))&&(a4==1))&&(a27==1))&&!(a6==1))&&(a3==6))){ + a15 = 1; + a12 = 8; + a22 = 0; + a18 = 1; + a3 = 7; + a5 = 0; + a4 = 0; + a6 = 1; + a0 = 0; + return -1; + } else if(((a12==11)&&(!(a6==1)&&((!(a15==1)&&(((a5==1)&&((a3==6)&&(!(a27==1)&&(((a4==1)&&(!(a0==1)&&(input==5)))&&(a20==1)))))&&!(a22==1)))&&(a18==1))))){ + a12 = 8; + a27 = 1; + a3 = 7; + a18 = 0; + a0 = 1; + a6 = 1; + a22 = 1; + a15 = 1; + return -1; + } else if(((((a12==10)&&((a20==1)&&((a22==1)&&((a0==1)&&(((((a3==8)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a5==1))&&(a15==1))&&!(a6==1))))))&&(a4==1))&&(a27==1))){ + a12 = 11; + a18 = 0; + a5 = 0; + a15 = 0; + a3 = 6; + a4 = 0; + a0 = 0; + a22 = 0; + a6 = 1; + return -1; + } else if((!(a6==1)&&(((a12==9)&&(((a15==1)&&(!(a5==1)&&((a3==7)&&(!(a22==1)&&((!(a27==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a4==1))))))&&(a20==1)))&&!(a0==1)))){ + if((a15==1)){ + a12 = 8; + a18 = 0; + a0 = 1; + a3 = 8; + a27 = 1; + a5 = 1; + }else{ + a0 = 1; + a3 = 6; + a12 = 8; + a18 = 0; + a27 = 1; + a5 = 1; + a6 = 1; + a22 = 1; + } + return 26; + } else if(((a27==1)&&(((a5==1)&&((a12==9)&&((!(a22==1)&&((((a4==1)&&(((input==6)&&(a18==1))&&(a15==1)))&&(a3==8))&&(a20==1)))&&!(a0==1))))&&(a6==1)))){ + a0 = 1; + a3 = 6; + a6 = 0; + a4 = 0; + a18 = 0; + return 24; + } else if(((a18==1)&&((a15==1)&&((a6==1)&&((((a0==1)&&((a27==1)&&((a4==1)&&((a5==1)&&(((input==3)&&(a12==9))&&!(a22==1))))))&&(a3==7))&&(a20==1)))))){ + a15 = 0; + a18 = 0; + a4 = 0; + a12 = 11; + a6 = 0; + a5 = 0; + a3 = 6; + return 21; + } else if(((((((a3==5)&&(!(a4==1)&&((!(a6==1)&&((a20==1)&&((input==3)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))))&&!(a27==1))))&&(a15==1))&&!(a5==1))&&(a12==10))&&!(a0==1))){ + a4 = 1; + a27 = 1; + a5 = 1; + a18 = 0; + a22 = 1; + a6 = 1; + a12 = 8; + a0 = 1; + return -1; + } else if((((a15==1)&&(!(a0==1)&&(((a27==1)&&((a20==1)&&((input==5)&&((!(a6==1)&&((a3==8)&&((a4==1)&&(!(a22==1)&&!(a18==1)))))||(((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1)))&&(a6==1))))))&&(a12==12))))&&(a5==1))){ + a0 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + a6 = 1; + a18 = 1; + a4 = 1; + return -1; + } else if(((((a0==1)&&((a5==1)&&((a20==1)&&((a6==1)&&((((!(a18==1)&&((a4==1)&&(input==1)))&&(a15==1))&&!(a27==1))&&(a12==9))))))&&(a22==1))&&(a3==6))){ + a4 = 0; + a18 = 1; + a12 = 11; + a27 = 1; + a22 = 0; + a3 = 4; + a5 = 0; + a15 = 0; + return 26; + } else if((!(a15==1)&&((a20==1)&&((((a3==7)&&((a0==1)&&((a4==1)&&(!(a5==1)&&(!(a27==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1)))))))&&(a12==8))&&(a6==1))))){ + if((a15==1)){ + a6 = 0; + a18 = 0; + a0 = 0; + a27 = 1; + a4 = 0; + a15 = 1; + a22 = 0; + a3 = 5; + a12 = 11; + }else{ + a12 = 11; + a5 = 1; + a22 = 0; + a18 = 0; + a4 = 0; + a27 = 1; + } + return 21; + } else if((!(a6==1)&&((a27==1)&&((a12==8)&&((!(a0==1)&&(((a4==1)&&(!(a5==1)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==3))))&&!(a15==1)))&&(a20==1)))))){ + a0 = 1; + a22 = 1; + a12 = 9; + a18 = 0; + a27 = 0; + a3 = 5; + a4 = 0; + a5 = 1; + return -1; + } else if(((a12==9)&&((!(a6==1)&&((((((a5==1)&&((input==3)&&(((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==5)))))&&!(a15==1))&&!(a4==1))&&(a0==1))&&(a20==1)))&&!(a27==1)))){ + if((a12==12)){ + a27 = 1; + a3 = 5; + a12 = 12; + a15 = 1; + a0 = 0; + a4 = 1; + a22 = 0; + a6 = 1; + a18 = 1; + }else{ + a5 = 0; + a18 = 1; + a4 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + } + return 26; + } else if(((a5==1)&&((((a12==9)&&((a6==1)&&((a15==1)&&((((input==4)&&((((a18==1)&&(a22==1))&&(a3==7))||(((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1))))))&&(a0==1))&&(a27==1)))))&&(a20==1))&&!(a4==1)))){ + a18 = 1; + a22 = 1; + a4 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((a0==1)&&(((!(a27==1)&&(((((a12==10)&&(!(a6==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3))))&&!(a4==1))&&(a20==1))&&(a3==4)))&&(a15==1))&&!(a5==1)))){ + a12 = 9; + a22 = 1; + a15 = 0; + a18 = 1; + a5 = 1; + return 21; + } else if((!(a18==1)&&(!(a6==1)&&((a4==1)&&((((((a15==1)&&((!(a0==1)&&((input==5)&&!(a5==1)))&&(a20==1)))&&(a12==9))&&(a22==1))&&!(a27==1))&&(a3==5)))))){ + a27 = 1; + a3 = 4; + a5 = 1; + a12 = 8; + a4 = 0; + a6 = 1; + a0 = 1; + return -1; + } else if((!(a4==1)&&(((a3==6)&&((a12==10)&&(((a27==1)&&((a15==1)&&(((((input==2)&&((a18==1)||!(a18==1)))&&(a20==1))&&(a22==1))&&!(a5==1))))&&(a6==1))))&&(a0==1)))){ + a3 = 8; + a5 = 1; + a15 = 0; + a6 = 0; + a4 = 1; + a18 = 0; + a22 = 0; + return -1; + } else if((!(a15==1)&&(!(a6==1)&&(((a4==1)&&(((((a20==1)&&(((((a18==1)&&(a22==1))&&(a3==5))||(((!(a22==1)&&(a18==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4))))&&(input==3)))&&(a0==1))&&!(a27==1))&&(a5==1)))&&(a12==9))))){ + a3 = 6; + a18 = 0; + a15 = 1; + a22 = 0; + a4 = 0; + return -1; + } else if(((!(a22==1)&&(((a27==1)&&((a4==1)&&(((a0==1)&&((a12==12)&&(((a20==1)&&(!(a15==1)&&(input==6)))&&(a3==6))))&&(a5==1))))&&!(a6==1)))&&!(a18==1))){ + a22 = 1; + a18 = 1; + a0 = 0; + a3 = 8; + a12 = 11; + return 21; + } else if((((a5==1)&&((a6==1)&&((a3==4)&&((a0==1)&&(((a12==10)&&(!(a15==1)&&(((a4==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a20==1))))&&!(a22==1))))))&&!(a27==1))){ + a6 = 0; + a18 = 1; + a4 = 0; + a12 = 8; + a27 = 1; + a3 = 8; + a5 = 0; + a0 = 0; + return 21; + } else if((((!(a4==1)&&(((a12==8)&&((((a6==1)&&((!(a0==1)&&((a3==4)&&(input==1)))&&(a15==1)))&&!(a18==1))&&!(a27==1)))&&(a20==1)))&&(a22==1))&&(a5==1))){ + a12 = 12; + a5 = 0; + a4 = 1; + a3 = 8; + a22 = 0; + a0 = 1; + a15 = 0; + return 21; + } else if(((a15==1)&&((a12==11)&&(!(a5==1)&&((a6==1)&&(((a27==1)&&((a3==6)&&((a0==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5))&&(a4==1)))))&&(a20==1))))))){ + a5 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if((!(a4==1)&&((a12==12)&&(!(a5==1)&&((((((input==3)&&((((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1))))&&(a0==1))&&!(a15==1))&&(a27==1))&&(a20==1)))))){ + a22 = 0; + a6 = 0; + a18 = 1; + a3 = 5; + a15 = 1; + a5 = 1; + return 21; + } else if(((a6==1)&&(!(a0==1)&&(!(a4==1)&&((a12==10)&&((((a15==1)&&(!(a22==1)&&(!(a18==1)&&(((input==3)&&(a5==1))&&(a3==8)))))&&(a20==1))&&!(a27==1))))))){ + if((a6==1)){ + a3 = 6; + a12 = 11; + a4 = 1; + a0 = 1; + a6 = 0; + a27 = 1; + a5 = 0; + }else{ + a12 = 8; + a0 = 1; + a18 = 1; + a3 = 7; + a4 = 1; + a22 = 1; + a27 = 1; + a6 = 0; + } + return -1; + } else if((((a20==1)&&(((!(a0==1)&&(((a6==1)&&(((a3==6)&&(((input==3)&&((a18==1)||!(a18==1)))&&!(a4==1)))&&!(a5==1)))&&(a27==1)))&&!(a15==1))&&!(a22==1)))&&(a12==12))){ + a22 = 1; + a5 = 1; + a6 = 0; + a15 = 1; + a0 = 1; + a18 = 1; + a3 = 8; + a27 = 0; + return -1; + } else if((!(a4==1)&&(!(a6==1)&&(((a12==11)&&(!(a27==1)&&((a0==1)&&((!(a5==1)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==3)))&&(a20==1)))))&&!(a15==1))))){ + a3 = 7; + a12 = 9; + a22 = 1; + a18 = 1; + return -1; + } else if(((a12==11)&&(((a0==1)&&(((a27==1)&&(((!(a4==1)&&((((!(a18==1)&&(a22==1))&&(a3==8))||(((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1)))))&&(input==4)))&&(a15==1))&&(a20==1)))&&(a6==1)))&&(a5==1)))){ + a12 = 8; + a3 = 6; + a6 = 0; + a22 = 0; + a18 = 0; + return -1; + } else if(((a15==1)&&(((!(a6==1)&&((a27==1)&&((!(a4==1)&&(((input==4)&&(((a3==8)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7)))))&&!(a5==1)))&&(a0==1))))&&(a20==1))&&(a12==10)))){ + a18 = 1; + a22 = 1; + a15 = 0; + a5 = 1; + a3 = 7; + return -1; + } else if(((a5==1)&&((a3==5)&&((a6==1)&&((((a15==1)&&((((a18==1)&&(((input==2)&&!(a4==1))&&(a22==1)))&&(a0==1))&&(a12==10)))&&(a27==1))&&(a20==1)))))){ + a5 = 0; + a3 = 6; + a6 = 0; + return 21; + } else if((((a12==8)&&(((a3==8)&&((((((a6==1)&&((!(a18==1)&&(input==1))&&(a22==1)))&&!(a4==1))&&!(a0==1))&&(a5==1))&&(a20==1)))&&!(a15==1)))&&!(a27==1))){ + a12 = 9; + a6 = 0; + a27 = 1; + a22 = 0; + a3 = 5; + return -1; + } else if((!(a27==1)&&((((((((a6==1)&&((input==4)&&(((a3==7)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1)))))))&&!(a15==1))&&!(a4==1))&&(a20==1))&&(a12==9))&&(a5==1))&&!(a0==1)))){ + a12 = 8; + a3 = 6; + a18 = 0; + a27 = 1; + a22 = 0; + a0 = 1; + a15 = 1; + return 24; + } else if(((a18==1)&&((a22==1)&&(((a0==1)&&(!(a27==1)&&(((a15==1)&&(((a12==9)&&(((a3==7)&&(input==1))&&(a20==1)))&&!(a6==1)))&&(a4==1))))&&!(a5==1))))){ + a3 = 4; + a5 = 1; + a6 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if((((a3==6)&&((((a0==1)&&((!(a27==1)&&(((a6==1)&&((((a18==1)||!(a18==1))&&(input==3))&&!(a15==1)))&&!(a5==1)))&&(a12==8)))&&!(a4==1))&&(a20==1)))&&!(a22==1))){ + a3 = 4; + a4 = 1; + a5 = 1; + a22 = 1; + a15 = 1; + a27 = 1; + a18 = 1; + return -1; + } else if(((a6==1)&&((a3==5)&&(((!(a15==1)&&((a20==1)&&((a0==1)&&((a5==1)&&(!(a27==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a12==8)))))))&&!(a4==1))&&!(a22==1))))){ + a22 = 1; + a15 = 1; + a18 = 1; + a4 = 1; + a3 = 6; + a6 = 0; + return -1; + } else if((((!(a27==1)&&((a22==1)&&((a4==1)&&(((a3==6)&&((a20==1)&&((a12==8)&&(!(a6==1)&&(((a18==1)||!(a18==1))&&(input==6))))))&&(a15==1)))))&&!(a0==1))&&!(a5==1))){ + if((a27==1)){ + a5 = 1; + a0 = 1; + a4 = 0; + a18 = 1; + a6 = 1; + a27 = 1; + a3 = 5; + }else{ + a5 = 1; + a4 = 0; + a6 = 1; + a3 = 8; + a0 = 1; + a18 = 0; + a27 = 1; + } + return 21; + } else if(((((((!(a6==1)&&((a4==1)&&((a0==1)&&((input==6)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))||((a3==8)&&(!(a18==1)&&(a22==1))))))))&&(a27==1))&&(a5==1))&&(a20==1))&&(a15==1))&&(a12==12))){ + a3 = 4; + a6 = 1; + a12 = 8; + a22 = 1; + a18 = 1; + return -1; + } else if((((((a27==1)&&(((a20==1)&&((((a15==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&!(a22==1)))&&(a0==1))&&!(a6==1)))&&(a12==9)))&&(a3==6))&&!(a5==1))&&(a4==1))){ + a12 = 8; + a6 = 1; + a3 = 4; + a5 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((a5==1)&&((a12==8)&&((!(a27==1)&&((a6==1)&&(((!(a4==1)&&((input==5)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7)))))&&(a0==1))&&(a20==1))))&&!(a15==1))))){ + a27 = 1; + a18 = 1; + a22 = 1; + a3 = 4; + a4 = 1; + a15 = 1; + return -1; + } else if(((a20==1)&&((a18==1)&&((a12==11)&&(((a0==1)&&((a15==1)&&((a22==1)&&((((a6==1)&&((input==2)&&(a3==7)))&&(a5==1))&&(a4==1)))))&&!(a27==1)))))){ + a6 = 0; + a4 = 0; + a5 = 0; + a12 = 9; + a22 = 0; + return 26; + } else if((!(a6==1)&&((((a12==10)&&((((a4==1)&&(((((input==5)&&((a18==1)||!(a18==1)))&&(a20==1))&&!(a15==1))&&!(a0==1)))&&(a22==1))&&!(a5==1)))&&(a3==4))&&(a27==1)))){ + a12 = 8; + a6 = 1; + a15 = 1; + a18 = 1; + a0 = 1; + a5 = 1; + return -1; + } else if((((a3==7)&&((a15==1)&&((a12==11)&&(((((!(a22==1)&&((!(a27==1)&&(input==5))&&(a4==1)))&&(a18==1))&&!(a0==1))&&(a20==1))&&!(a5==1)))))&&!(a6==1))){ + a0 = 1; + a27 = 1; + a4 = 0; + a15 = 0; + a3 = 4; + a5 = 1; + return 21; + } else if((((a12==12)&&((!(a27==1)&&(!(a22==1)&&(!(a15==1)&&((a5==1)&&(((!(a6==1)&&((input==2)&&(a18==1)))&&(a0==1))&&(a20==1))))))&&(a3==4)))&&(a4==1))){ + a27 = 1; + a12 = 8; + a15 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if(((a20==1)&&((!(a4==1)&&(!(a5==1)&&((((a12==12)&&(((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==6))&&!(a6==1)))&&!(a15==1))&&!(a0==1))))&&(a27==1)))){ + if((a22==1)){ + a22 = 0; + a12 = 8; + a15 = 1; + a3 = 6; + a18 = 0; + }else{ + a12 = 8; + a22 = 0; + a15 = 1; + a4 = 1; + a3 = 6; + a5 = 1; + a0 = 1; + a18 = 0; + } + return 26; + } else if((((a12==12)&&(!(a6==1)&&((!(a5==1)&&((a0==1)&&((a27==1)&&(!(a4==1)&&((a3==4)&&((input==3)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))))&&!(a15==1))))&&(a20==1))){ + a4 = 1; + a22 = 0; + a12 = 10; + a15 = 1; + a18 = 0; + a5 = 1; + return 26; + } else if((((a3==6)&&((!(a6==1)&&(((((a12==10)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==6))&&!(a27==1)))&&!(a15==1))&&(a20==1))&&(a5==1)))&&!(a4==1)))&&(a0==1))){ + a3 = 8; + a27 = 1; + a4 = 1; + a12 = 12; + a18 = 0; + a22 = 0; + return 21; + } else if((!(a15==1)&&((((!(a4==1)&&((((a3==6)&&((((input==1)&&((a18==1)||!(a18==1)))&&(a27==1))&&(a5==1)))&&(a12==12))&&(a6==1)))&&(a0==1))&&(a20==1))&&!(a22==1)))){ + a3 = 7; + a12 = 11; + a18 = 1; + a4 = 1; + return -1; + } return calculate_output41(input); + } + + int calculate_output41(int input) { + if((!(a5==1)&&((a3==5)&&(!(a6==1)&&(!(a0==1)&&((a27==1)&&((!(a15==1)&&((a12==10)&&((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==3))&&!(a4==1))))&&(a20==1)))))))){ + a6 = 1; + a12 = 8; + a22 = 1; + a5 = 1; + a4 = 1; + a15 = 1; + a0 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a3==7)&&(!(a5==1)&&(((a0==1)&&((a20==1)&&(!(a6==1)&&(((((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==2))&&(a15==1))&&(a12==12))&&(a4==1)))))&&(a27==1))))){ + a4 = 0; + a18 = 0; + a22 = 1; + a3 = 5; + a12 = 10; + return -1; + } else if(((((((a20==1)&&(((a5==1)&&(((a15==1)&&((a0==1)&&(((a18==1)||!(a18==1))&&(input==5))))&&(a4==1)))&&!(a27==1)))&&!(a22==1))&&(a12==11))&&(a3==7))&&!(a6==1))){ + if((a20==1)){ + a0 = 0; + a18 = 1; + a12 = 8; + a3 = 8; + a27 = 1; + }else{ + a4 = 0; + a27 = 1; + a5 = 0; + a22 = 1; + a3 = 8; + a0 = 0; + a18 = 1; + } + return 24; + } else if(((a0==1)&&(!(a4==1)&&((((!(a27==1)&&((!(a15==1)&&((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==3)))&&(a20==1)))&&(a12==10))&&(a5==1))&&!(a6==1))))){ + a3 = 8; + a12 = 11; + a22 = 1; + a27 = 1; + a18 = 0; + return 26; + } else if(((!(a15==1)&&((((((a3==8)&&(((a5==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a0==1)))&&(a27==1)))&&(a12==11))&&(a20==1))&&!(a4==1))&&!(a6==1)))&&(a22==1))){ + a12 = 10; + a18 = 0; + a3 = 7; + a4 = 1; + return -1; + } else if((!(a0==1)&&(((a12==11)&&(((!(a15==1)&&(!(a5==1)&&((a27==1)&&(((input==2)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a20==1)))))&&!(a6==1))&&(a3==5)))&&!(a4==1)))){ + a27 = 0; + a22 = 0; + a18 = 1; + a0 = 1; + a5 = 1; + a12 = 9; + a15 = 1; + return 21; + } else if(((a27==1)&&(!(a22==1)&&((a15==1)&&((!(a4==1)&&((((a0==1)&&(((a6==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a12==11)))&&(a3==7))&&!(a5==1)))&&(a20==1)))))){ + a3 = 6; + a22 = 1; + a18 = 1; + a27 = 0; + a4 = 1; + return 24; + } else if((((((((((!(a4==1)&&(((input==6)&&!(a18==1))&&(a3==5)))&&(a20==1))&&(a12==11))&&(a27==1))&&!(a15==1))&&!(a6==1))&&(a0==1))&&!(a22==1))&&(a5==1))){ + a15 = 1; + a4 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + a18 = 1; + a6 = 1; + return -1; + } else if(((!(a0==1)&&((a20==1)&&((!(a4==1)&&((((a5==1)&&((input==2)&&((((a22==1)&&(a18==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a22==1)&&!(a18==1)))))))&&(a12==8))&&!(a6==1)))&&(a15==1))))&&!(a27==1))){ + a0 = 1; + a22 = 1; + a6 = 1; + a18 = 0; + a27 = 1; + a3 = 7; + a4 = 1; + return -1; + } else if((!(a5==1)&&((a4==1)&&((a20==1)&&((a3==8)&&((a27==1)&&((a15==1)&&(!(a0==1)&&(((a12==11)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==5)))&&(a6==1)))))))))){ + a22 = 0; + a0 = 1; + a27 = 0; + a15 = 0; + a4 = 0; + a18 = 1; + a12 = 9; + return 26; + } else if(((a5==1)&&(((a15==1)&&((a0==1)&&(!(a6==1)&&(((a3==6)&&(((((a4==1)&&(input==4))&&(a12==12))&&!(a27==1))&&(a20==1)))&&(a18==1)))))&&!(a22==1)))){ + a22 = 1; + a6 = 1; + a27 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((((!(a0==1)&&(!(a27==1)&&(((((a3==8)&&(!(a15==1)&&((input==3)&&((a18==1)||!(a18==1)))))&&!(a4==1))&&(a12==11))&&!(a22==1))))&&!(a5==1))&&(a6==1))&&(a20==1))){ + a18 = 0; + a15 = 1; + a27 = 1; + a22 = 1; + a3 = 5; + a5 = 1; + a12 = 8; + a0 = 1; + return -1; + } else if((!(a5==1)&&((a12==10)&&((a20==1)&&((((!(a27==1)&&((a0==1)&&((((input==2)&&((a18==1)||!(a18==1)))&&(a15==1))&&(a3==4))))&&(a6==1))&&!(a4==1))&&!(a22==1)))))){ + a3 = 7; + a18 = 1; + a5 = 1; + a12 = 8; + return 21; + } else if((!(a6==1)&&(!(a4==1)&&(!(a15==1)&&((a5==1)&&(((((a20==1)&&((((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==1)))&&(a27==1))&&!(a0==1))&&(a12==12))))))){ + if((a3==4)){ + a22 = 0; + a6 = 1; + a12 = 8; + a18 = 1; + a15 = 1; + a3 = 4; + a4 = 1; + a0 = 1; + }else{ + a12 = 8; + a0 = 1; + a22 = 0; + a15 = 1; + a4 = 1; + a6 = 1; + a3 = 8; + a18 = 0; + } + return -1; + } else if((((a22==1)&&((a18==1)&&((a0==1)&&((!(a15==1)&&((a5==1)&&(((a6==1)&&(((a20==1)&&(input==1))&&(a27==1)))&&!(a4==1))))&&(a12==12)))))&&(a3==4))){ + a12 = 10; + a18 = 0; + a3 = 5; + return -1; + } else if((((a0==1)&&(((a12==11)&&(((!(a15==1)&&(!(a4==1)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==2))))&&!(a27==1))&&(a20==1)))&&(a5==1)))&&(a6==1))){ + a15 = 1; + a3 = 6; + a12 = 10; + a22 = 0; + a18 = 0; + return -1; + } else if((!(a4==1)&&(!(a22==1)&&(((a3==4)&&(((a12==10)&&(((!(a6==1)&&((!(a18==1)&&(input==6))&&!(a27==1)))&&!(a15==1))&&!(a0==1)))&&(a20==1)))&&!(a5==1))))){ + a18 = 1; + a0 = 1; + a4 = 1; + a5 = 1; + a12 = 8; + return 26; + } else if((((((((a3==5)&&((!(a15==1)&&((a0==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==5))))&&(a20==1)))&&(a12==9))&&(a27==1))&&(a6==1))&&(a5==1))&&(a4==1))){ + if((a5==1)){ + a5 = 0; + a18 = 0; + a12 = 12; + a22 = 0; + a3 = 4; + a15 = 1; + a6 = 0; + a4 = 0; + a27 = 0; + }else{ + a6 = 0; + a22 = 1; + a18 = 0; + a5 = 0; + a12 = 12; + a3 = 7; + } + return 26; + } else if((!(a5==1)&&(((a22==1)&&((((a0==1)&&(((a12==12)&&((((input==1)&&!(a27==1))&&(a3==7))&&(a18==1)))&&(a6==1)))&&(a20==1))&&(a15==1)))&&(a4==1)))){ + a22 = 0; + a0 = 0; + a12 = 9; + a27 = 1; + a3 = 6; + return -1; + } else if(((a0==1)&&((((a15==1)&&(!(a4==1)&&(((((((!(a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))||((((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))))&&(input==5))&&(a12==10))&&!(a5==1))))&&(a27==1))&&(a20==1)))){ + a6 = 1; + a3 = 5; + a18 = 0; + a22 = 0; + return -1; + } else if(((a5==1)&&((a3==4)&&((a0==1)&&((a20==1)&&(((((((a22==1)&&(!(a15==1)&&(input==6)))&&(a27==1))&&(a18==1))&&(a4==1))&&(a6==1))&&(a12==10))))))){ + a4 = 0; + a18 = 0; + a3 = 8; + a6 = 0; + a12 = 9; + a27 = 0; + a5 = 0; + a15 = 1; + return 26; + } else if(((a15==1)&&(((!(a5==1)&&(((!(a27==1)&&(!(a4==1)&&((input==4)&&(((a3==8)&&(!(a18==1)&&(a22==1)))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))))))&&!(a6==1))&&(a20==1)))&&(a0==1))&&(a12==9)))){ + a5 = 1; + a6 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a4 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if((((!(a27==1)&&((a3==7)&&((((!(a5==1)&&((((a4==1)&&(input==4))&&!(a22==1))&&!(a18==1)))&&(a12==8))&&(a0==1))&&(a20==1))))&&!(a15==1))&&(a6==1))){ + a27 = 1; + a22 = 1; + a15 = 1; + a18 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if(((a12==10)&&(!(a5==1)&&(!(a27==1)&&((a20==1)&&((a4==1)&&(((!(a0==1)&&((input==2)&&((((!(a22==1)&&(a18==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6)))||(((a18==1)&&(a22==1))&&(a3==7)))))&&(a6==1))&&(a15==1)))))))){ + a3 = 4; + a6 = 0; + a0 = 1; + a18 = 0; + a5 = 1; + a27 = 1; + a22 = 0; + a12 = 8; + return -1; + } else if((((a27==1)&&((a0==1)&&(((((((a6==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==4)))&&(a15==1))&&!(a4==1))&&(a20==1))&&(a5==1))&&(a12==9))))&&(a3==7))){ + if((a12==12)){ + a0 = 0; + a22 = 0; + a5 = 0; + a18 = 0; + a12 = 8; + a3 = 8; + }else{ + a12 = 12; + a22 = 0; + a4 = 1; + a5 = 0; + a6 = 0; + a3 = 6; + a18 = 0; + } + return 26; + } else if(((!(a5==1)&&(!(a4==1)&&(((a12==11)&&((((a15==1)&&((((a3==6)&&(!(a18==1)&&(a22==1)))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6))))&&(input==4)))&&(a20==1))&&!(a0==1)))&&(a27==1))))&&!(a6==1))){ + a0 = 1; + a12 = 8; + a3 = 4; + a4 = 1; + a18 = 1; + a6 = 1; + a22 = 1; + a5 = 1; + return -1; + } else if((((a4==1)&&((a12==11)&&((a27==1)&&(!(a18==1)&&(((a3==5)&&(((a20==1)&&(!(a15==1)&&((input==6)&&(a22==1))))&&!(a5==1)))&&(a6==1))))))&&(a0==1))){ + a18 = 1; + a15 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + return -1; + } else if((!(a6==1)&&(!(a27==1)&&(((a20==1)&&(((a0==1)&&(((a5==1)&&((input==1)&&(((!(a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5))))))&&(a12==9)))&&!(a4==1)))&&(a15==1))))){ + a27 = 1; + a6 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + a18 = 1; + a4 = 1; + return -1; + } else if(((a6==1)&&((!(a15==1)&&((!(a4==1)&&((((a0==1)&&((((input==1)&&(a3==5))&&!(a27==1))&&(a12==10)))&&!(a5==1))&&(a18==1)))&&(a22==1)))&&(a20==1)))){ + if((a22==1)){ + a4 = 1; + a0 = 0; + a3 = 7; + a5 = 1; + a27 = 1; + a18 = 0; + }else{ + a18 = 0; + a5 = 1; + a3 = 8; + a0 = 0; + a4 = 1; + a6 = 0; + a27 = 1; + a15 = 1; + a12 = 11; + } + return -1; + } else if(((a15==1)&&((a5==1)&&(!(a18==1)&&(((!(a0==1)&&((a12==12)&&(!(a4==1)&&(((a22==1)&&((input==5)&&(a27==1)))&&(a3==4)))))&&(a20==1))&&(a6==1)))))){ + a4 = 1; + a0 = 1; + a3 = 5; + a12 = 8; + return -1; + } else if((!(a27==1)&&((!(a0==1)&&(((a20==1)&&((!(a6==1)&&((((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))||((a3==7)&&(!(a18==1)&&(a22==1))))&&(input==3))&&!(a5==1)))&&(a12==10)))&&!(a4==1)))&&!(a15==1)))){ + a12 = 8; + a0 = 1; + a22 = 1; + a18 = 1; + a15 = 1; + a4 = 1; + a3 = 6; + a5 = 1; + a27 = 1; + return -1; + } else if((((!(a22==1)&&(!(a27==1)&&(((a3==8)&&((((a18==1)&&((a15==1)&&((a6==1)&&(input==5))))&&!(a0==1))&&(a20==1)))&&(a5==1))))&&!(a4==1))&&(a12==10))){ + a3 = 6; + a12 = 12; + a5 = 0; + a15 = 0; + a6 = 0; + a4 = 1; + a0 = 1; + a27 = 1; + a22 = 1; + return 21; + } else if(((a5==1)&&(!(a0==1)&&((a15==1)&&((a12==8)&&((a27==1)&&(((((input==3)&&((((a18==1)&&(a22==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5)))))&&(a20==1))&&(a4==1))&&!(a6==1)))))))){ + a3 = 5; + a18 = 1; + a0 = 1; + a22 = 1; + a12 = 10; + a4 = 0; + return -1; + } else if((((a6==1)&&((a20==1)&&((a27==1)&&(((!(a0==1)&&((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==5))&&!(a4==1))&&!(a5==1)))&&(a12==9))&&(a15==1)))))&&(a3==5))){ + a0 = 1; + a12 = 10; + a18 = 1; + a22 = 1; + a15 = 0; + a6 = 0; + return -1; + } else if((((a22==1)&&(((a0==1)&&((a12==11)&&((((a5==1)&&((((input==1)&&(a3==5))&&(a6==1))&&(a20==1)))&&!(a18==1))&&!(a4==1))))&&(a15==1)))&&!(a27==1))){ + a3 = 8; + a4 = 1; + a22 = 0; + a18 = 1; + a5 = 0; + a27 = 1; + a6 = 0; + return 21; + } else if(((a5==1)&&((((!(a15==1)&&(((((a3==7)&&((a22==1)&&((input==1)&&(a18==1))))&&(a4==1))&&(a0==1))&&(a20==1)))&&(a6==1))&&!(a27==1))&&(a12==12)))){ + a12 = 10; + a5 = 0; + a15 = 1; + a18 = 0; + a4 = 0; + a22 = 0; + return -1; + } else if(((a0==1)&&(!(a4==1)&&((((a20==1)&&(!(a5==1)&&((((input==6)&&(((a3==7)&&(!(a18==1)&&(a22==1)))||(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7)))))&&(a15==1))&&(a6==1))))&&(a27==1))&&(a12==9))))){ + a4 = 1; + a5 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((a0==1)&&(!(a5==1)&&((a3==6)&&((a27==1)&&((a6==1)&&((a20==1)&&((((a15==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==5)))&&(a12==10))&&(a4==1))))))))){ + a3 = 4; + a18 = 1; + a5 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if(((a12==8)&&(((a5==1)&&((a6==1)&&((((a15==1)&&((((((a22==1)&&!(a18==1))&&(a3==5))||(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1)))))&&(input==4))&&!(a0==1)))&&(a27==1))&&(a20==1))))&&!(a4==1)))){ + a22 = 1; + a0 = 1; + a18 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if((!(a15==1)&&((a12==9)&&((a4==1)&&((a22==1)&&((a3==8)&&(!(a0==1)&&(((((!(a18==1)&&(input==2))&&!(a6==1))&&!(a5==1))&&(a27==1))&&(a20==1))))))))){ + a15 = 1; + a4 = 0; + a27 = 0; + a3 = 7; + a6 = 1; + a12 = 10; + a22 = 0; + a0 = 1; + return -1; + } else if(((((((!(a27==1)&&((a20==1)&&((a0==1)&&((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==4))&&(a5==1)))))&&(a6==1))&&(a4==1))&&!(a15==1))&&(a12==11))&&(a3==8))){ + a18 = 0; + a15 = 1; + a5 = 0; + a3 = 4; + a12 = 9; + a6 = 0; + a22 = 1; + return -1; + } else if(((((a20==1)&&(((a0==1)&&(((((((input==1)&&!(a18==1))&&(a12==11))&&(a5==1))&&(a3==5))&&(a6==1))&&(a15==1)))&&(a22==1)))&&(a4==1))&&!(a27==1))){ + if((a20==1)){ + a5 = 0; + a3 = 7; + a27 = 1; + a15 = 0; + a18 = 1; + a4 = 0; + a0 = 0; + }else{ + a27 = 1; + a3 = 8; + a0 = 0; + a4 = 0; + a12 = 12; + } + return -1; + } else if(((a12==11)&&((((a20==1)&&(((((a18==1)&&(!(a6==1)&&((!(a22==1)&&(input==1))&&!(a0==1))))&&!(a5==1))&&!(a15==1))&&(a4==1)))&&(a27==1))&&(a3==6)))){ + a3 = 8; + a6 = 1; + a0 = 1; + a22 = 1; + a12 = 10; + return -1; + } else if(((a0==1)&&((a22==1)&&(!(a15==1)&&((a18==1)&&((a5==1)&&((a20==1)&&(((a27==1)&&(((a12==10)&&(!(a4==1)&&(input==2)))&&(a3==5)))&&(a6==1))))))))){ + a18 = 0; + a15 = 1; + return -1; + } else if(((a4==1)&&((a27==1)&&(!(a18==1)&&((a20==1)&&(!(a6==1)&&((a3==4)&&((a22==1)&&(((a12==12)&&((a0==1)&&((input==2)&&!(a15==1))))&&(a5==1)))))))))){ + a22 = 0; + a15 = 1; + a12 = 11; + a18 = 1; + a4 = 0; + return -1; + } else if(((a20==1)&&(((((((!(a15==1)&&((a5==1)&&((a12==11)&&((input==4)&&!(a18==1)))))&&(a6==1))&&(a22==1))&&(a4==1))&&(a27==1))&&(a3==6))&&(a0==1)))){ + a18 = 1; + a15 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((a3==6)&&(((a5==1)&&(((a6==1)&&((a20==1)&&(((!(a0==1)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==4)))&&!(a4==1))&&(a12==9))))&&(a27==1)))&&!(a15==1)))){ + a12 = 8; + a3 = 4; + a22 = 1; + a15 = 1; + a0 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if(((a5==1)&&((a20==1)&&((a12==10)&&((!(a0==1)&&((a15==1)&&((((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==5))&&!(a4==1))&&(a6==1))))&&(a27==1)))))){ + a3 = 5; + a4 = 1; + a22 = 1; + a18 = 0; + a0 = 1; + a15 = 0; + return 26; + } else if(((!(a4==1)&&(((((a12==9)&&(!(a15==1)&&((a20==1)&&(!(a6==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==1))))))&&!(a27==1))&&(a0==1))&&!(a5==1)))&&(a3==7))){ + a27 = 1; + a12 = 10; + a18 = 0; + a5 = 1; + a6 = 1; + a22 = 0; + return -1; + } else if((!(a15==1)&&((((a20==1)&&(((a3==7)&&(!(a4==1)&&(((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==2))&&(a12==12))&&(a0==1))))&&(a6==1)))&&(a27==1))&&!(a5==1)))){ + a5 = 1; + a12 = 8; + a4 = 1; + a18 = 1; + a22 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if(((a20==1)&&((((!(a5==1)&&(((((((a3==4)&&(input==3))&&(a18==1))&&(a22==1))&&(a0==1))&&!(a27==1))&&(a15==1)))&&!(a6==1))&&(a12==10))&&(a4==1)))){ + a5 = 1; + a3 = 8; + a15 = 0; + a12 = 11; + a4 = 0; + return 21; + } else if(((a15==1)&&(((a20==1)&&((a5==1)&&(!(a6==1)&&((!(a0==1)&&((a3==7)&&(((input==3)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&(a4==1))))&&(a12==10)))))&&(a27==1)))){ + a3 = 6; + a4 = 0; + a18 = 0; + a22 = 1; + a12 = 11; + a0 = 1; + return 21; + } else if(((((a0==1)&&((a6==1)&&((((a20==1)&&((!(a5==1)&&(!(a27==1)&&((input==3)&&!(a18==1))))&&(a4==1)))&&!(a15==1))&&(a12==10))))&&(a3==8))&&(a22==1))){ + if((a22==1)){ + a0 = 0; + a22 = 0; + a12 = 8; + a27 = 1; + a15 = 1; + a6 = 0; + }else{ + a6 = 0; + a12 = 11; + a22 = 0; + a27 = 1; + a18 = 1; + a3 = 7; + } + return 21; + } else if(((a0==1)&&(((((a3==7)&&(((a4==1)&&(!(a5==1)&&(!(a15==1)&&((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))&&!(a27==1)))&&(a20==1))&&(a6==1))&&(a12==8)))){ + a5 = 1; + a12 = 9; + a22 = 1; + a3 = 5; + a4 = 0; + a18 = 1; + return 24; + } else if(((!(a6==1)&&((((a5==1)&&(!(a4==1)&&((a12==9)&&((((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==5)))||(((a22==1)&&!(a18==1))&&(a3==5)))&&(input==4))&&(a15==1)))))&&(a0==1))&&(a20==1)))&&!(a27==1))){ + if((a0==1)){ + a4 = 1; + a22 = 0; + a3 = 5; + a6 = 1; + a27 = 1; + a15 = 0; + a18 = 0; + a5 = 0; + a0 = 0; + }else{ + a22 = 0; + a18 = 1; + a0 = 0; + a12 = 10; + a6 = 1; + a27 = 1; + a4 = 1; + a3 = 6; + a5 = 0; + } + return 21; + } else if(((a0==1)&&((a20==1)&&(((((a15==1)&&((!(a27==1)&&((input==6)&&((((a18==1)&&(a22==1))&&(a3==8))||((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a22==1)&&!(a18==1)))))))&&!(a6==1)))&&(a12==12))&&(a4==1))&&(a5==1))))){ + if((a0==1)){ + a12 = 11; + a22 = 0; + a3 = 4; + a15 = 0; + a4 = 0; + a18 = 0; + a27 = 1; + a0 = 0; + }else{ + a6 = 1; + a3 = 7; + a27 = 1; + a22 = 1; + a5 = 0; + a18 = 0; + } + return 24; + } else if(((((a12==9)&&((!(a27==1)&&((!(a0==1)&&((((a4==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&!(a6==1))&&!(a15==1)))&&(a3==8)))&&(a20==1)))&&!(a5==1))&&(a22==1))){ + a18 = 1; + a27 = 1; + a5 = 1; + a6 = 1; + return -1; + } else if(((a20==1)&&(!(a5==1)&&((a3==5)&&((a18==1)&&((a0==1)&&(!(a6==1)&&((a22==1)&&((a27==1)&&(((a12==11)&&((input==4)&&!(a15==1)))&&!(a4==1))))))))))){ + a3 = 6; + a4 = 1; + a15 = 1; + a6 = 1; + a12 = 10; + return -1; + } else if(((a6==1)&&(((a5==1)&&(!(a27==1)&&((!(a15==1)&&((a3==6)&&(((a0==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6)))&&!(a4==1))))&&(a12==12))))&&(a20==1)))){ + a12 = 9; + a22 = 0; + a5 = 0; + a18 = 1; + return -1; + } else if(((a15==1)&&((!(a27==1)&&((((a6==1)&&(((a12==10)&&((((((a18==1)&&!(a22==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==1)))&&(a0==1)))&&(a5==1))&&(a4==1)))&&(a20==1)))){ + a18 = 1; + a3 = 4; + a22 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if(((a12==10)&&(((!(a5==1)&&(((a3==8)&&(!(a15==1)&&((((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a0==1))&&!(a4==1))))&&!(a27==1)))&&(a6==1))&&(a20==1)))){ + if((a6==1)){ + a12 = 12; + a18 = 0; + a27 = 1; + a3 = 6; + a0 = 1; + a22 = 1; + }else{ + a22 = 1; + a18 = 0; + a15 = 1; + a27 = 1; + a12 = 8; + a4 = 1; + a0 = 1; + a6 = 0; + a3 = 5; + a5 = 1; + } + return -1; + } else if(((a0==1)&&((a5==1)&&((a3==4)&&((a20==1)&&((!(a4==1)&&(!(a22==1)&&(!(a18==1)&&(!(a6==1)&&((a12==10)&&((a27==1)&&(input==2)))))))&&!(a15==1))))))){ + a6 = 1; + a22 = 1; + a3 = 8; + return -1; + } else if((((a4==1)&&(!(a0==1)&&(!(a27==1)&&(!(a15==1)&&((a5==1)&&((a20==1)&&(((a3==4)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==1)))&&(a6==1))))))))&&(a12==11))){ + a22 = 1; + a18 = 1; + a12 = 8; + a0 = 1; + a27 = 1; + a3 = 5; + a5 = 0; + return 26; + } else if((((a20==1)&&((((a0==1)&&((a27==1)&&(((((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1)))&&(input==5))&&(a4==1))))&&(a12==9))&&(a15==1)))&&(a5==1))){ + a22 = 0; + a12 = 12; + a18 = 1; + a6 = 1; + a3 = 7; + return 21; + } else if(((a3==5)&&((((a12==12)&&(!(a22==1)&&(!(a6==1)&&(((a18==1)&&((((input==3)&&!(a4==1))&&!(a5==1))&&(a27==1)))&&(a0==1)))))&&!(a15==1))&&(a20==1)))){ + if((a12==9)){ + a22 = 1; + a3 = 7; + a27 = 0; + a4 = 1; + a18 = 0; + }else{ + a22 = 1; + a0 = 0; + a12 = 8; + a3 = 8; + a15 = 1; + a4 = 1; + } + return 21; + } else if((((((a20==1)&&(!(a5==1)&&(((((input==5)&&(((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==5))))&&(a27==1))&&!(a6==1))&&!(a0==1))))&&(a12==10))&&!(a15==1))&&(a4==1))){ + a5 = 1; + a3 = 8; + a0 = 1; + a12 = 8; + a22 = 0; + a27 = 0; + a18 = 0; + return -1; + } else if(((a5==1)&&((a27==1)&&((!(a6==1)&&(!(a15==1)&&(((a3==6)&&((a12==12)&&((a0==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==5)))))&&(a4==1))))&&(a20==1))))){ + a12 = 10; + a15 = 1; + a22 = 0; + a3 = 4; + a18 = 0; + return -1; + } else if((!(a0==1)&&(((!(a27==1)&&((a20==1)&&(!(a15==1)&&(((a5==1)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==5)))&&!(a6==1)))))&&!(a4==1))&&(a12==9)))){ + a4 = 1; + a5 = 0; + a15 = 1; + a6 = 1; + a3 = 6; + a18 = 0; + a22 = 1; + a12 = 8; + return 21; + } else if((((!(a0==1)&&((((a3==8)&&(!(a4==1)&&(!(a5==1)&&((a20==1)&&(!(a15==1)&&((input==4)&&((a18==1)||!(a18==1))))))))&&!(a6==1))&&(a12==11)))&&(a22==1))&&!(a27==1))){ + a27 = 1; + a15 = 1; + a12 = 8; + a5 = 1; + a18 = 1; + a22 = 0; + a4 = 1; + a0 = 1; + a3 = 4; + return 21; + } else if(((((a18==1)&&((a15==1)&&(((!(a0==1)&&(((a12==8)&&(((a20==1)&&(input==2))&&(a5==1)))&&!(a4==1)))&&(a6==1))&&(a27==1))))&&!(a22==1))&&(a3==6))){ + a0 = 1; + a27 = 0; + a12 = 9; + a3 = 5; + a6 = 0; + return 21; + } else if((((!(a5==1)&&((a12==9)&&(((a0==1)&&(!(a6==1)&&((a27==1)&&((input==6)&&((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))||((!(a18==1)&&(a22==1))&&(a3==7)))))))&&!(a4==1))))&&!(a15==1))&&(a20==1))){ + a18 = 0; + a3 = 5; + a27 = 0; + a22 = 0; + a5 = 1; + a6 = 1; + return 24; + } else if((!(a5==1)&&((a6==1)&&((a27==1)&&(((a4==1)&&(!(a0==1)&&((((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==6))&&(a20==1))&&(a12==12))))&&!(a15==1)))))){ + a5 = 1; + a12 = 11; + a15 = 1; + a3 = 4; + a22 = 1; + a4 = 0; + a18 = 1; + return 21; + } else if(((a6==1)&&((a3==6)&&((((((a12==10)&&(!(a15==1)&&((a18==1)&&(((a0==1)&&(input==1))&&!(a5==1)))))&&!(a27==1))&&(a4==1))&&!(a22==1))&&(a20==1))))){ + a15 = 1; + a22 = 1; + a5 = 1; + a12 = 8; + a3 = 4; + a27 = 1; + return -1; + } else if(((!(a27==1)&&(!(a6==1)&&(((a20==1)&&((a15==1)&&((((((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1))))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==5))&&!(a4==1))&&(a0==1))))&&(a12==11))))&&!(a5==1))){ + a5 = 1; + a22 = 1; + a27 = 1; + a18 = 1; + a6 = 1; + a4 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((a0==1)&&((a4==1)&&((a6==1)&&((!(a5==1)&&((!(a27==1)&&((!(a15==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==3)))&&(a3==8)))&&(a20==1)))&&(a12==11)))))){ + a18 = 1; + a15 = 1; + a22 = 0; + a3 = 5; + a27 = 1; + a12 = 10; + return -1; + } else if(((a6==1)&&((((!(a0==1)&&((((a20==1)&&((a3==5)&&((input==3)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))))&&(a27==1))&&!(a5==1)))&&!(a4==1))&&(a12==9))&&!(a15==1)))){ + a22 = 1; + a3 = 4; + a15 = 1; + a4 = 1; + a5 = 1; + a0 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if((!(a27==1)&&((!(a0==1)&&(((!(a15==1)&&(!(a6==1)&&(((((a12==9)&&(input==3))&&(a20==1))&&(a22==1))&&(a3==5))))&&!(a5==1))&&(a4==1)))&&!(a18==1)))){ + a6 = 1; + a22 = 0; + a18 = 1; + a0 = 1; + a3 = 7; + a27 = 1; + return 21; + } else if(((((a3==8)&&((!(a4==1)&&((!(a5==1)&&((((a6==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a20==1))&&(a12==9)))&&!(a27==1)))&&!(a0==1)))&&!(a22==1))&&!(a15==1))){ + a18 = 0; + a5 = 1; + a3 = 6; + a4 = 1; + a27 = 1; + a6 = 0; + a22 = 1; + a15 = 1; + a12 = 8; + a0 = 1; + return -1; + } else if(((a20==1)&&((!(a6==1)&&((!(a15==1)&&((a5==1)&&((((input==4)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6))))&&(a12==10))&&!(a4==1))))&&(a0==1)))&&(a27==1)))){ + a6 = 1; + a12 = 8; + a22 = 1; + a4 = 1; + a18 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if(((((!(a5==1)&&((((!(a27==1)&&(!(a6==1)&&(((a12==10)&&(input==1))&&!(a4==1))))&&!(a15==1))&&(a20==1))&&(a18==1)))&&!(a0==1))&&!(a22==1))&&(a3==6))){ + a5 = 1; + a22 = 1; + a27 = 1; + a3 = 4; + a6 = 1; + a12 = 8; + a4 = 1; + return 21; + } else if(((a12==8)&&((!(a0==1)&&(!(a22==1)&&((a3==4)&&((a4==1)&&(((a5==1)&&((a20==1)&&((a27==1)&&(!(a15==1)&&(input==1)))))&&(a18==1))))))&&(a6==1)))){ + a12 = 11; + a15 = 1; + a18 = 0; + a0 = 1; + a5 = 0; + return -1; + } else if(((a22==1)&&((a3==6)&&(!(a0==1)&&((!(a15==1)&&(((a5==1)&&((a4==1)&&((!(a18==1)&&((input==1)&&!(a27==1)))&&(a6==1))))&&(a12==9)))&&(a20==1)))))){ + a27 = 1; + a22 = 0; + a3 = 5; + a18 = 1; + a15 = 1; + a0 = 1; + a12 = 8; + return -1; + } else if(((((((((((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==2))&&!(a6==1))&&(a20==1))&&!(a0==1))&&(a12==11))&&(a3==4))&&(a4==1))&&!(a15==1))&&!(a5==1))&&!(a27==1))){ + a0 = 1; + a27 = 1; + a18 = 1; + a4 = 0; + a3 = 7; + a22 = 1; + a12 = 8; + a15 = 1; + a5 = 1; + a6 = 1; + return 21; + } else if((((a3==8)&&(((a20==1)&&(((a27==1)&&((((!(a6==1)&&((input==4)&&!(a0==1)))&&!(a22==1))&&(a12==10))&&!(a4==1)))&&!(a18==1)))&&(a5==1)))&&(a15==1))){ + a4 = 1; + a22 = 1; + a0 = 1; + a18 = 1; + a5 = 0; + a12 = 8; + return 26; + } else if((!(a15==1)&&((a27==1)&&(!(a6==1)&&(((a20==1)&&(!(a0==1)&&((a4==1)&&((!(a5==1)&&((input==1)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a3==6)))))&&(a12==10)))))){ + a12 = 12; + a0 = 1; + a15 = 1; + a3 = 4; + a5 = 1; + a22 = 0; + a18 = 0; + return 26; + } else if((!(a4==1)&&((!(a5==1)&&(((a6==1)&&(((!(a0==1)&&((((a3==6)&&((a18==1)&&(a22==1)))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a18==1)&&!(a22==1)))))&&(input==6)))&&(a12==10))&&!(a27==1)))&&(a15==1)))&&(a20==1)))){ + a18 = 1; + a22 = 1; + a3 = 7; + a0 = 1; + a12 = 12; + a5 = 1; + a27 = 1; + return -1; + } else if((!(a4==1)&&((((((!(a0==1)&&(((((a3==8)&&((a22==1)&&(a18==1)))||(((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==7))))&&(input==2))&&(a5==1)))&&(a6==1))&&(a15==1))&&(a20==1))&&(a12==12))&&(a27==1)))){ + a0 = 1; + a18 = 0; + a15 = 0; + a12 = 10; + a3 = 7; + a5 = 0; + a22 = 1; + return 26; + } else if(((a27==1)&&((((a6==1)&&((a12==9)&&((((a5==1)&&(!(a0==1)&&((input==5)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))&&(a15==1))&&(a4==1))))&&(a3==6))&&(a20==1)))){ + a4 = 0; + a3 = 7; + a15 = 0; + a27 = 0; + a6 = 0; + a18 = 0; + a12 = 8; + a22 = 0; + a5 = 0; + a0 = 1; + return 21; + } else if((((a12==12)&&(((!(a0==1)&&((((a3==4)&&((((a20==1)&&(input==2))&&!(a18==1))&&(a22==1)))&&(a6==1))&&(a4==1)))&&!(a27==1))&&(a15==1)))&&(a5==1))){ + a3 = 8; + a12 = 10; + a15 = 0; + a5 = 0; + a6 = 0; + a22 = 0; + a18 = 1; + a0 = 1; + return -1; + } else if((((((a6==1)&&((!(a27==1)&&((a22==1)&&(!(a0==1)&&((((input==6)&&((a18==1)||!(a18==1)))&&(a5==1))&&(a3==7)))))&&(a15==1)))&&(a20==1))&&(a12==10))&&!(a4==1))){ + if((a18==1)){ + a15 = 0; + a18 = 0; + a5 = 0; + a3 = 8; + a0 = 1; + a12 = 9; + }else{ + a12 = 8; + a4 = 1; + a27 = 1; + a18 = 1; + a3 = 4; + a0 = 1; + a22 = 0; + } + return 26; + } else if((!(a27==1)&&((a15==1)&&((((a5==1)&&(((((a12==10)&&((input==3)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a0==1))&&(a20==1))&&(a3==8)))&&!(a4==1))&&!(a6==1))))){ + a18 = 0; + a27 = 1; + a4 = 1; + a22 = 0; + a12 = 11; + a6 = 1; + a3 = 6; + return 26; + } else if(((((a0==1)&&(!(a4==1)&&(!(a6==1)&&((a12==11)&&(!(a15==1)&&((!(a22==1)&&((a3==8)&&((input==3)&&(a18==1))))&&(a20==1)))))))&&(a27==1))&&(a5==1))){ + a22 = 1; + a3 = 5; + a5 = 0; + a12 = 10; + return -1; + } else if(((a3==7)&&(((a15==1)&&(!(a5==1)&&(((!(a18==1)&&(((!(a27==1)&&((input==2)&&(a12==8)))&&!(a22==1))&&(a0==1)))&&(a4==1))&&!(a6==1))))&&(a20==1)))){ + a3 = 4; + a6 = 1; + a5 = 1; + a27 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((a3==8)&&((a12==11)&&(!(a4==1)&&(!(a15==1)&&((a27==1)&&((((a20==1)&&(!(a5==1)&&((input==5)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))))&&!(a6==1))&&!(a0==1)))))))){ + a4 = 1; + a12 = 8; + a22 = 1; + a0 = 1; + a15 = 1; + a3 = 4; + a18 = 1; + a6 = 1; + a5 = 1; + return -1; + } else if((((a12==11)&&(((a0==1)&&(((a5==1)&&((((!(a6==1)&&((a3==8)&&(((a18==1)&&!(a22==1))&&(a4==1))))||((((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8))&&!(a6==1)))||(((((a22==1)&&(a18==1))&&!(a4==1))&&(a3==4))&&(a6==1)))&&(input==1)))&&!(a15==1)))&&(a20==1)))&&!(a27==1))){ + a22 = 0; + a3 = 5; + a12 = 10; + a15 = 1; + a18 = 1; + a27 = 1; + a6 = 0; + a4 = 0; + return 21; + } else if(((((!(a0==1)&&((((!(a15==1)&&(((!(a18==1)&&(input==6))&&!(a6==1))&&!(a22==1)))&&(a12==8))&&(a20==1))&&(a27==1)))&&(a3==7))&&(a5==1))&&!(a4==1))){ + a5 = 0; + a4 = 1; + a12 = 12; + a22 = 1; + a18 = 1; + a0 = 1; + a6 = 1; + a15 = 1; + return 21; + } else if(((((a3==8)&&(((a22==1)&&(((a18==1)&&(((((input==4)&&(a27==1))&&(a20==1))&&!(a0==1))&&(a12==8)))&&!(a5==1)))&&!(a15==1)))&&(a4==1))&&!(a6==1))){ + a6 = 1; + a15 = 1; + a0 = 1; + a5 = 1; + a3 = 4; + return -1; + } else if(((a5==1)&&((a4==1)&&((a27==1)&&(!(a0==1)&&(((((((((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4))))||(!(a6==1)&&((!(a18==1)&&(a22==1))&&(a3==4))))&&(input==4))&&(a12==11))&&(a20==1))&&(a15==1))))))){ + a4 = 0; + a0 = 1; + a18 = 1; + a12 = 10; + a22 = 0; + a6 = 1; + a27 = 0; + a3 = 6; + return 21; + } else if(((a27==1)&&((((a3==4)&&(((a6==1)&&(((a12==12)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==4))&&(a5==1)))&&(a15==1)))&&!(a0==1)))&&(a4==1))&&(a20==1)))){ + a3 = 5; + a22 = 1; + a5 = 0; + a12 = 11; + a18 = 0; + a0 = 1; + return -1; + } else if(((a15==1)&&(((a22==1)&&(((a27==1)&&((a12==10)&&((((!(a5==1)&&((input==5)&&(a18==1)))&&(a20==1))&&(a0==1))&&(a6==1))))&&(a3==7)))&&(a4==1)))){ + a3 = 4; + a12 = 8; + a5 = 1; + return -1; + } else if((((a15==1)&&((a4==1)&&((((a0==1)&&((a20==1)&&((a3==7)&&((a12==11)&&((input==6)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))))&&(a27==1))&&!(a6==1))))&&(a5==1))){ + a6 = 1; + a3 = 4; + a12 = 10; + a15 = 0; + a22 = 0; + a18 = 1; + return -1; + } else if(((a5==1)&&(!(a27==1)&&((a22==1)&&((a12==8)&&(((a20==1)&&((((a15==1)&&((a3==4)&&((input==6)&&!(a6==1))))&&!(a4==1))&&(a18==1)))&&!(a0==1))))))){ + a22 = 0; + a4 = 1; + a3 = 5; + a27 = 1; + a0 = 1; + return -1; + } else if(((a4==1)&&((!(a15==1)&&((!(a0==1)&&((a12==10)&&(!(a27==1)&&(((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==4))&&(a20==1)))))&&(a6==1)))&&!(a5==1)))){ + if((a27==1)){ + a3 = 6; + a22 = 0; + a4 = 0; + a6 = 0; + a18 = 1; + a5 = 1; + a12 = 8; + }else{ + a15 = 1; + a12 = 8; + a0 = 1; + a27 = 1; + a5 = 1; + a3 = 5; + a4 = 0; + a22 = 1; + a18 = 1; + } + return 21; + } else if((((!(a15==1)&&((a3==6)&&((a5==1)&&((((a27==1)&&((a12==8)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==4))))&&!(a0==1))&&(a20==1)))))&&!(a6==1))&&!(a4==1))){ + a18 = 0; + a12 = 10; + a0 = 1; + a22 = 0; + a5 = 0; + return 26; + } else if((((((((((a20==1)&&((a12==9)&&(!(a27==1)&&(!(a5==1)&&(input==4)))))&&(a0==1))&&!(a18==1))&&!(a15==1))&&!(a6==1))&&!(a4==1))&&!(a22==1))&&(a3==8))){ + a3 = 7; + a12 = 10; + a27 = 1; + a4 = 1; + a22 = 1; + return 21; + } else if(((!(a6==1)&&(!(a15==1)&&(!(a27==1)&&((!(a22==1)&&(!(a18==1)&&((a12==10)&&((a4==1)&&((a20==1)&&((input==5)&&(a5==1)))))))&&(a3==7)))))&&!(a0==1))){ + a12 = 8; + a18 = 1; + a27 = 1; + a0 = 1; + a15 = 1; + return -1; + } else if((((a20==1)&&((a4==1)&&((a0==1)&&(!(a15==1)&&((((a27==1)&&((a12==10)&&((input==3)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))))&&(a3==8))&&(a6==1))))))&&!(a5==1))){ + a6 = 0; + a3 = 7; + a4 = 0; + a5 = 1; + a18 = 0; + a15 = 1; + a22 = 0; + return -1; + } else if(((a27==1)&&((((a5==1)&&((!(a15==1)&&((a6==1)&&((((input==3)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a3==8))&&(a4==1))))&&(a20==1)))&&!(a0==1))&&(a12==11)))){ + a15 = 1; + a3 = 7; + a18 = 0; + a22 = 0; + a27 = 0; + a4 = 0; + a12 = 10; + a0 = 1; + return 21; + } else if(((a12==9)&&(((a22==1)&&(!(a15==1)&&(((a6==1)&&((a18==1)&&((((a3==4)&&((input==5)&&!(a5==1)))&&(a4==1))&&(a0==1))))&&(a20==1))))&&(a27==1)))){ + a15 = 1; + a12 = 12; + a3 = 6; + a22 = 0; + a5 = 1; + return 21; + } else if((!(a27==1)&&(((a12==10)&&(!(a18==1)&&((a6==1)&&((a3==8)&&((a0==1)&&(((a20==1)&&(!(a22==1)&&((input==1)&&!(a15==1))))&&!(a4==1)))))))&&!(a5==1)))){ + a15 = 1; + a12 = 12; + a6 = 0; + a27 = 1; + a3 = 6; + return 24; + } else if((((a12==12)&&(((a15==1)&&((!(a4==1)&&(((a6==1)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==1)))&&(a20==1)))&&(a27==1)))&&!(a5==1)))&&!(a0==1))){ + a18 = 0; + a3 = 6; + a5 = 1; + a22 = 1; + a6 = 0; + a27 = 0; + a12 = 11; + a0 = 1; + return -1; + } else if((!(a22==1)&&(((a20==1)&&(((!(a5==1)&&((a6==1)&&((!(a27==1)&&((((a18==1)||!(a18==1))&&(input==6))&&(a15==1)))&&(a3==4))))&&!(a4==1))&&(a12==10)))&&(a0==1)))){ + a27 = 1; + a3 = 5; + a18 = 0; + return -1; + } else if(((((((a6==1)&&(!(a22==1)&&((a20==1)&&(!(a0==1)&&((a5==1)&&((!(a4==1)&&(input==1))&&(a27==1)))))))&&(a12==9))&&(a18==1))&&(a3==7))&&!(a15==1))){ + a0 = 1; + a4 = 1; + a18 = 0; + a15 = 1; + a5 = 0; + a6 = 0; + a27 = 0; + a3 = 4; + return 26; + } else if(((a27==1)&&(!(a18==1)&&((a15==1)&&(((((((a4==1)&&(!(a6==1)&&((input==1)&&(a22==1))))&&(a3==8))&&(a0==1))&&(a5==1))&&(a12==9))&&(a20==1)))))){ + a3 = 5; + a12 = 12; + a18 = 1; + a15 = 0; + return 24; + } else if(((a6==1)&&((((a27==1)&&((((((input==5)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8))))&&(a20==1))&&(a4==1))&&(a12==8))&&!(a0==1)))&&(a5==1))&&(a15==1)))){ + a18 = 1; + a0 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if((((a12==11)&&((a20==1)&&((!(a27==1)&&(((a4==1)&&(!(a0==1)&&(!(a15==1)&&(!(a5==1)&&((input==6)&&((a18==1)||!(a18==1)))))))&&(a3==4)))&&!(a22==1))))&&(a6==1))){ + a3 = 8; + a27 = 1; + a0 = 1; + a4 = 0; + a18 = 0; + a12 = 8; + a5 = 1; + a15 = 1; + return 21; + } else if((!(a15==1)&&(!(a6==1)&&(((((((a12==10)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==2))&&(a3==6)))&&!(a0==1))&&(a5==1))&&(a27==1))&&(a20==1))&&(a4==1))))){ + a22 = 0; + a18 = 0; + a3 = 5; + a0 = 1; + a15 = 1; + a6 = 1; + a12 = 12; + a5 = 0; + return 21; + } else if((((a3==4)&&((a4==1)&&((a27==1)&&((a20==1)&&((a5==1)&&(!(a6==1)&&((a0==1)&&(((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==4))&&!(a15==1)))))))))&&(a12==10))){ + a18 = 1; + a15 = 1; + a6 = 1; + a22 = 0; + a3 = 5; + return -1; + } else if(((a20==1)&&(((((a3==8)&&(!(a15==1)&&(!(a27==1)&&((((input==4)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&(a0==1))&&(a6==1)))))&&(a5==1))&&(a12==10))&&(a4==1)))){ + a22 = 1; + a12 = 8; + a15 = 1; + a3 = 4; + a27 = 1; + a18 = 1; + return -1; + } else if((((a6==1)&&((a20==1)&&(!(a27==1)&&((a3==6)&&((!(a5==1)&&(!(a0==1)&&(((input==5)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&!(a4==1))))&&(a12==11))))))&&!(a15==1))){ + a3 = 4; + a18 = 0; + a6 = 0; + a27 = 1; + a12 = 10; + a22 = 1; + a4 = 1; + a5 = 1; + return -1; + } else if(((a20==1)&&((!(a5==1)&&((a12==10)&&(!(a15==1)&&((a0==1)&&(((input==1)&&((!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1))))||(((a6==1)&&(((a18==1)&&!(a22==1))&&(a3==8)))||(((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1)))))&&!(a4==1))))))&&(a27==1)))){ + a22 = 1; + a18 = 0; + a3 = 4; + a5 = 1; + a12 = 12; + a6 = 0; + return 26; + } else if((!(a4==1)&&(!(a18==1)&&((!(a15==1)&&(!(a22==1)&&(((a27==1)&&(((a6==1)&&((a12==9)&&((a20==1)&&(input==5))))&&!(a0==1)))&&(a5==1))))&&(a3==5))))){ + a18 = 1; + a3 = 4; + a22 = 1; + a15 = 1; + a0 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if(((a5==1)&&((!(a6==1)&&((a12==9)&&((((a20==1)&&(!(a4==1)&&(!(a15==1)&&((input==6)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))))&&(a27==1))&&(a3==6))))&&!(a0==1)))){ + a18 = 1; + a22 = 1; + a6 = 1; + a3 = 4; + a0 = 1; + a4 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if(((((a15==1)&&((((a4==1)&&(((a5==1)&&(((((a18==1)||!(a18==1))&&(input==1))&&(a27==1))&&(a20==1)))&&(a6==1)))&&(a12==9))&&(a3==4)))&&(a22==1))&&!(a0==1))){ + a3 = 6; + a0 = 1; + a12 = 8; + a15 = 0; + a27 = 0; + a5 = 0; + a4 = 0; + a18 = 0; + return -1; + } else if(((a5==1)&&((!(a4==1)&&((((a27==1)&&(!(a0==1)&&((a12==8)&&((input==4)&&(((a3==7)&&((a22==1)&&!(a18==1)))||(((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7))))))))&&(a20==1))&&!(a6==1)))&&(a15==1)))){ + a18 = 1; + a3 = 4; + a4 = 1; + a6 = 1; + a22 = 1; + a0 = 1; + return -1; + } else if((((a20==1)&&((a6==1)&&(!(a5==1)&&((a3==5)&&((((a15==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==3))&&(a0==1)))&&(a4==1))&&(a12==10))))))&&!(a27==1))){ + a3 = 4; + a22 = 1; + a18 = 1; + a27 = 1; + a12 = 8; + a5 = 1; + return -1; + } else if((((a12==8)&&((a20==1)&&(!(a15==1)&&((!(a6==1)&&(!(a4==1)&&((!(a27==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a22==1)))&&(a0==1))))&&(a3==6)))))&&(a5==1))){ + a12 = 12; + a3 = 7; + a18 = 0; + a22 = 0; + a5 = 0; + a27 = 1; + return -1; + } else if((!(a15==1)&&((((a27==1)&&(((a12==10)&&(((a0==1)&&((((((a18==1)&&!(a22==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==6)))&&(a6==1)))&&(a20==1)))&&!(a5==1))&&(a4==1)))){ + a3 = 8; + a22 = 1; + a15 = 1; + a4 = 0; + a6 = 0; + a18 = 1; + a5 = 1; + return -1; + } else if((!(a0==1)&&((a12==10)&&(!(a5==1)&&(((a6==1)&&(((a15==1)&&(!(a4==1)&&((a27==1)&&((input==3)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))&&(a20==1)))&&(a3==8)))))){ + a22 = 1; + a3 = 7; + a15 = 0; + a18 = 0; + a0 = 1; + return -1; + } else if((((((!(a4==1)&&(((((a12==10)&&(!(a22==1)&&((a3==4)&&(input==6))))&&(a20==1))&&(a6==1))&&(a15==1)))&&(a18==1))&&(a0==1))&&(a27==1))&&(a5==1))){ + a5 = 0; + a3 = 6; + a27 = 0; + a4 = 1; + a18 = 0; + a22 = 1; + a12 = 9; + a6 = 0; + return 24; + } else if((((((a27==1)&&((a5==1)&&((!(a15==1)&&(((input==6)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7))))&&(a0==1)))&&!(a4==1))))&&(a20==1))&&(a12==8))&&(a6==1))){ + a4 = 1; + a22 = 1; + a18 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if((((!(a15==1)&&((a12==9)&&((((!(a27==1)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==5)))&&(a4==1))&&!(a5==1))&&!(a6==1))))&&(a20==1))&&(a0==1))){ + a6 = 1; + a4 = 0; + a3 = 7; + a5 = 1; + a15 = 1; + a18 = 1; + a22 = 1; + return 26; + } else if((!(a22==1)&&((!(a27==1)&&((!(a4==1)&&(((((a6==1)&&((!(a15==1)&&(input==4))&&(a12==9)))&&(a0==1))&&(a20==1))&&(a3==5)))&&(a18==1)))&&!(a5==1)))){ + a27 = 1; + a15 = 1; + a4 = 1; + a12 = 11; + a22 = 1; + a3 = 4; + return 26; + } else if(((((!(a15==1)&&((a3==6)&&(((a20==1)&&((a12==9)&&((a27==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==1)))))&&!(a4==1))))&&(a5==1))&&(a6==1))&&(a0==1))){ + if((a27==1)){ + a3 = 7; + a18 = 0; + a22 = 1; + a0 = 0; + a4 = 1; + a15 = 1; + a6 = 0; + }else{ + a4 = 1; + a15 = 1; + a6 = 0; + a22 = 0; + a27 = 0; + a12 = 8; + a18 = 0; + } + return 26; + } else if((((!(a27==1)&&((a20==1)&&((((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6))&&(a3==5))&&!(a15==1))&&(a4==1))&&(a6==1))&&!(a5==1))))&&(a12==11))&&(a0==1))){ + a27 = 1; + a6 = 0; + a3 = 6; + a22 = 1; + a18 = 0; + return -1; + } else if(((a12==10)&&((a5==1)&&(!(a4==1)&&(!(a0==1)&&((!(a15==1)&&(((((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||(!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1)))))||(((a3==4)&&(!(a18==1)&&(a22==1)))&&!(a6==1)))&&(input==5))&&(a20==1)))&&(a27==1))))))){ + a22 = 0; + a15 = 1; + a18 = 1; + a12 = 11; + a4 = 1; + a5 = 0; + a3 = 4; + a6 = 1; + return 21; + } else if(((a20==1)&&((!(a0==1)&&(!(a4==1)&&((a5==1)&&((!(a27==1)&&((a6==1)&&(((((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==7)))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==6))))&&(a12==10)))))&&(a15==1)))){ + a0 = 1; + a4 = 1; + a27 = 1; + a12 = 11; + a15 = 0; + a3 = 5; + a5 = 0; + a18 = 0; + a22 = 1; + return -1; + } else if((((a5==1)&&(!(a6==1)&&((a12==9)&&((a20==1)&&(!(a27==1)&&(!(a15==1)&&((a0==1)&&(((((a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==4))))&&(input==5)))))))))&&(a4==1))){ + a18 = 0; + a5 = 0; + a22 = 1; + a15 = 1; + a3 = 7; + a12 = 12; + a4 = 0; + return 24; + } else if(((a18==1)&&((!(a6==1)&&((a3==7)&&((!(a0==1)&&(((a20==1)&&((a12==9)&&(!(a22==1)&&((a15==1)&&(input==5)))))&&!(a5==1)))&&(a27==1))))&&(a4==1)))){ + a0 = 1; + a5 = 1; + a3 = 6; + a12 = 10; + a18 = 0; + return -1; + } else if(((a22==1)&&((((a5==1)&&(((a4==1)&&((a12==11)&&(((!(a0==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a3==7))&&(a20==1))))&&(a6==1)))&&!(a27==1))&&(a15==1)))){ + if((a22==1)){ + a27 = 1; + a12 = 8; + a3 = 5; + a22 = 0; + a0 = 1; + a18 = 1; + }else{ + a4 = 0; + a18 = 1; + a5 = 0; + a22 = 0; + a15 = 0; + } + return -1; + } else if(((((a20==1)&&(!(a15==1)&&(((a0==1)&&((((input==2)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1)))))&&(a12==12))&&(a4==1)))&&!(a5==1))))&&(a6==1))&&!(a27==1))){ + a3 = 4; + a15 = 1; + a27 = 1; + a5 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + return -1; + } else if(((!(a4==1)&&((a6==1)&&((a5==1)&&((((a15==1)&&(((a0==1)&&((a3==8)&&((input==3)&&((a18==1)||!(a18==1)))))&&(a27==1)))&&(a20==1))&&(a12==12)))))&&!(a22==1))){ + if((a20==1)){ + a22 = 1; + a0 = 0; + a18 = 0; + a12 = 11; + a6 = 0; + }else{ + a12 = 11; + a18 = 1; + a6 = 0; + a15 = 0; + a3 = 4; + } + return -1; + } else if(((((((a20==1)&&(((((((input==4)&&(a6==1))&&(a5==1))&&(a3==5))&&(a15==1))&&(a27==1))&&!(a4==1)))&&(a12==9))&&!(a18==1))&&(a0==1))&&(a22==1))){ + if((a4==1)){ + a3 = 7; + a12 = 11; + a5 = 0; + a4 = 1; + a0 = 0; + a22 = 0; + a18 = 1; + }else{ + a6 = 0; + a18 = 1; + a22 = 0; + a15 = 0; + a12 = 12; + a3 = 6; + } + return 21; + } else if(((((a22==1)&&(!(a6==1)&&(!(a15==1)&&(((((a3==8)&&((((a18==1)||!(a18==1))&&(input==2))&&(a4==1)))&&(a12==8))&&(a20==1))&&(a5==1)))))&&!(a27==1))&&(a0==1))){ + a4 = 0; + a15 = 1; + a5 = 0; + a0 = 0; + a18 = 1; + a27 = 1; + a3 = 7; + return 26; + } else if((((a20==1)&&((!(a4==1)&&(!(a5==1)&&((a12==8)&&((a15==1)&&(((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4))))&&(input==6))))))&&!(a0==1)))&&!(a27==1))){ + if((a27==1)){ + a5 = 1; + a4 = 1; + a3 = 7; + a18 = 0; + a6 = 1; + a27 = 1; + a22 = 0; + a0 = 1; + }else{ + a5 = 1; + a22 = 0; + a27 = 1; + a12 = 12; + a18 = 0; + a6 = 1; + a0 = 1; + a3 = 5; + } + return 21; + } else if((((a12==10)&&((((!(a5==1)&&(!(a4==1)&&((input==3)&&((!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4)))||(((a6==1)&&((!(a22==1)&&(a18==1))&&(a3==8)))||(((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1)))))))&&(a20==1))&&!(a27==1))&&(a15==1)))&&(a0==1))){ + a18 = 0; + a27 = 1; + a6 = 1; + a22 = 1; + a12 = 12; + a3 = 8; + a4 = 1; + a5 = 1; + return 26; + } else if((!(a0==1)&&(!(a5==1)&&((((((a20==1)&&(((input==2)&&(((a3==7)&&((a18==1)&&(a22==1)))||(((a3==6)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))))&&!(a4==1)))&&(a6==1))&&(a12==11))&&(a27==1))&&(a15==1))))){ + a12 = 8; + a4 = 1; + a18 = 1; + a0 = 1; + a22 = 1; + a5 = 1; + a3 = 4; + return -1; + } else if(((a5==1)&&(((((a0==1)&&(((input==5)&&((!(a6==1)&&(((!(a22==1)&&!(a18==1))&&(a4==1))&&(a3==8)))||((a6==1)&&((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1)))))))&&(a15==1)))&&(a20==1))&&(a12==9))&&!(a27==1)))){ + a12 = 11; + a3 = 7; + a6 = 0; + a15 = 0; + a27 = 1; + a22 = 1; + a18 = 0; + a4 = 1; + return -1; + } else if(((!(a15==1)&&((((((a12==9)&&((a4==1)&&((((!(a18==1)&&(a22==1))&&(a3==8))||(((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1)))))&&(input==1))))&&(a27==1))&&(a6==1))&&(a20==1))&&!(a5==1)))&&(a0==1))){ + if((a3==5)){ + a15 = 1; + a3 = 5; + a0 = 0; + a22 = 1; + a4 = 0; + a12 = 11; + a18 = 1; + }else{ + a12 = 11; + a18 = 0; + a4 = 0; + a22 = 0; + a3 = 7; + } + return 21; + } else if((((a15==1)&&(((((((a5==1)&&((input==3)&&(((a3==6)&&(!(a18==1)&&(a22==1)))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6))))))&&(a20==1))&&(a27==1))&&!(a0==1))&&(a6==1))&&(a12==11)))&&!(a4==1))){ + a6 = 0; + a12 = 12; + a22 = 0; + a4 = 1; + a18 = 1; + a0 = 1; + a3 = 7; + return 26; + } else if(((!(a0==1)&&(((((a12==11)&&((!(a15==1)&&((input==6)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8)))||((!(a18==1)&&(a22==1))&&(a3==8)))))&&(a27==1)))&&!(a6==1))&&!(a4==1))&&(a5==1)))&&(a20==1))){ + a18 = 1; + a27 = 0; + a6 = 1; + a0 = 1; + a22 = 1; + a3 = 4; + return 21; + } else if(((((a15==1)&&((a22==1)&&(!(a4==1)&&(!(a27==1)&&((((a3==7)&&((a5==1)&&(((a18==1)||!(a18==1))&&(input==6))))&&(a6==1))&&(a20==1))))))&&(a0==1))&&(a12==10))){ + a4 = 1; + a18 = 1; + a27 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if((!(a6==1)&&(!(a0==1)&&(((a20==1)&&((a27==1)&&(((a15==1)&&(((input==6)&&(((a3==5)&&((a22==1)&&!(a18==1)))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1))))))&&(a4==1)))&&(a12==12))))&&(a5==1))))){ + a18 = 1; + a0 = 1; + a22 = 1; + a3 = 4; + a6 = 1; + a12 = 8; + return -1; + } else if((((a4==1)&&(!(a27==1)&&((a12==10)&&((a20==1)&&((((!(a5==1)&&((input==2)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))&&!(a6==1))&&(a0==1))&&(a3==8))))))&&(a15==1))){ + a5 = 1; + a12 = 8; + a27 = 1; + a6 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((((((a12==11)&&(!(a15==1)&&(!(a6==1)&&(((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==1))&&(a4==1))&&(a0==1)))))&&(a3==4))&&(a27==1))&&(a20==1))&&(a5==1))){ + a18 = 1; + a15 = 1; + a22 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if(((((a15==1)&&((a12==8)&&((!(a4==1)&&(!(a0==1)&&(((input==5)&&((((a22==1)&&(a18==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==6)))))&&(a5==1))))&&!(a27==1))))&&(a20==1))&&!(a6==1))){ + if((a20==1)){ + a12 = 11; + a3 = 4; + a22 = 1; + a27 = 1; + a6 = 1; + a18 = 1; + }else{ + a6 = 1; + a0 = 1; + a22 = 1; + a18 = 1; + a3 = 7; + a27 = 1; + } + return -1; + } else if(((a27==1)&&((a20==1)&&((a12==9)&&(((a18==1)&&((a22==1)&&((((a3==6)&&(((a5==1)&&(input==1))&&!(a4==1)))&&(a0==1))&&(a6==1))))&&!(a15==1)))))){ + a4 = 1; + a12 = 8; + a15 = 1; + a3 = 4; + return -1; + } else if(((!(a18==1)&&(!(a5==1)&&(!(a22==1)&&(((a20==1)&&((a12==10)&&((!(a4==1)&&((a6==1)&&((a0==1)&&(input==3))))&&(a3==4))))&&(a27==1)))))&&(a15==1))){ + if((a12==11)){ + a0 = 0; + a22 = 1; + a3 = 5; + a12 = 11; + }else{ + a6 = 0; + a15 = 0; + a5 = 1; + a3 = 6; + a22 = 1; + a18 = 1; + } + return -1; + } else if((!(a0==1)&&(((a20==1)&&(((a5==1)&&((((((input==3)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&(a12==12))&&(a15==1))&&(a6==1))&&(a4==1)))&&(a3==7)))&&(a27==1)))){ + a12 = 10; + a22 = 0; + a6 = 0; + a18 = 0; + a3 = 4; + a0 = 1; + return 26; + } else if(((((((((((((input==2)&&!(a27==1))&&(a4==1))&&!(a0==1))&&(a20==1))&&(a15==1))&&(a22==1))&&(a12==8))&&(a6==1))&&(a3==6))&&!(a5==1))&&(a18==1))){ + if((a18==1)){ + a6 = 0; + a0 = 1; + a5 = 1; + a3 = 8; + a27 = 1; + a22 = 0; + }else{ + a12 = 9; + a4 = 0; + a5 = 1; + a6 = 0; + a22 = 0; + } + return -1; + } else if((((!(a27==1)&&((!(a4==1)&&(((((((input==1)&&((a18==1)||!(a18==1)))&&(a12==8))&&!(a22==1))&&!(a5==1))&&(a15==1))&&(a20==1)))&&(a6==1)))&&(a3==5))&&(a0==1))){ + a5 = 1; + a12 = 12; + a18 = 1; + a27 = 1; + a3 = 8; + a15 = 0; + return 26; + } else if(((a5==1)&&((a12==9)&&((((a20==1)&&((((((input==5)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a0==1))&&!(a15==1))&&(a4==1))&&(a6==1)))&&(a3==7))&&(a27==1))))){ + a15 = 1; + a12 = 11; + a4 = 0; + a22 = 0; + a18 = 1; + return 26; + } else if((((a12==11)&&((a15==1)&&(!(a4==1)&&((a27==1)&&((a3==4)&&(!(a0==1)&&(!(a6==1)&&((a5==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4))))))))))&&(a20==1))){ + a12 = 10; + a0 = 1; + a5 = 0; + a3 = 6; + a18 = 1; + a4 = 1; + a22 = 0; + return -1; + } else if((!(a0==1)&&(((a12==8)&&(((a20==1)&&((((!(a6==1)&&((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1))))||((a6==1)&&((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1)))))&&(input==6))&&!(a5==1)))&&!(a15==1)))&&!(a27==1)))){ + if((a6==1)){ + a27 = 1; + a0 = 1; + a15 = 1; + a22 = 1; + a4 = 0; + a6 = 1; + a18 = 0; + a3 = 8; + a5 = 1; + }else{ + a27 = 1; + a6 = 0; + a22 = 1; + a18 = 1; + a4 = 0; + a3 = 7; + a12 = 9; + a15 = 1; + a5 = 1; + a0 = 1; + } + return -1; + } else if(((a27==1)&&((a0==1)&&(((a15==1)&&(((a12==11)&&((a3==5)&&(!(a6==1)&&(((a20==1)&&((input==2)&&((a18==1)||!(a18==1))))&&!(a22==1)))))&&(a4==1)))&&!(a5==1))))){ + a6 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + a5 = 1; + return -1; + } else if((((a20==1)&&((a6==1)&&((((((a27==1)&&((a0==1)&&((!(a15==1)&&(input==3))&&!(a5==1))))&&(a4==1))&&(a3==5))&&!(a18==1))&&(a12==11))))&&(a22==1))){ + a22 = 0; + a12 = 10; + a18 = 1; + a5 = 1; + a3 = 4; + a6 = 0; + a4 = 0; + return -1; + } else if((!(a27==1)&&((a15==1)&&(((((a22==1)&&(((a3==6)&&(((a0==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a12==11)))&&!(a4==1)))&&(a20==1))&&!(a5==1))&&(a6==1))))){ + a18 = 1; + a22 = 0; + a3 = 5; + a12 = 9; + return -1; + } else if((!(a27==1)&&(((a3==6)&&((a12==9)&&((((a4==1)&&((a5==1)&&(!(a0==1)&&(((input==5)&&!(a22==1))&&(a20==1)))))&&!(a15==1))&&!(a18==1))))&&!(a6==1)))){ + a3 = 8; + a12 = 10; + a5 = 0; + a27 = 1; + a4 = 0; + a18 = 1; + a0 = 1; + return 24; + } else if((((a6==1)&&(((a3==4)&&(((a15==1)&&((((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==5))&&!(a4==1))&&(a20==1))&&(a0==1)))&&(a27==1)))&&(a12==8)))&&!(a5==1))){ + a18 = 1; + a4 = 1; + a5 = 1; + a22 = 1; + return -1; + } else if((!(a4==1)&&(!(a5==1)&&((a3==7)&&((((!(a6==1)&&((a12==9)&&((a20==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==6)))))&&!(a15==1))&&(a0==1))&&!(a27==1)))))){ + a18 = 1; + a6 = 1; + a3 = 4; + a27 = 1; + a15 = 1; + a12 = 8; + a4 = 1; + a22 = 1; + a5 = 1; + return -1; + } else if(((a12==10)&&(((((a0==1)&&(((a6==1)&&((a20==1)&&((!(a22==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a4==1))))&&!(a27==1)))&&!(a15==1))&&(a3==6))&&(a5==1)))){ + if((a0==1)){ + a6 = 0; + a27 = 1; + a0 = 0; + a18 = 0; + a3 = 5; + a12 = 11; + a22 = 1; + }else{ + a3 = 7; + a18 = 1; + a6 = 0; + a4 = 0; + a27 = 1; + a22 = 1; + } + return 26; + } else if(((((((a3==8)&&(!(a18==1)&&(((a20==1)&&(!(a22==1)&&((!(a15==1)&&(input==6))&&(a12==11))))&&(a27==1))))&&(a5==1))&&(a4==1))&&(a0==1))&&!(a6==1))){ + a27 = 0; + a22 = 1; + a3 = 7; + a15 = 1; + return 21; + } else if((!(a0==1)&&(((a12==11)&&(!(a22==1)&&((a3==8)&&(((!(a6==1)&&((((input==6)&&((a18==1)||!(a18==1)))&&!(a27==1))&&(a20==1)))&&(a5==1))&&!(a4==1)))))&&(a15==1)))){ + a18 = 0; + a0 = 1; + a3 = 4; + a27 = 1; + a4 = 1; + a12 = 8; + a6 = 1; + return -1; + } else if((((a12==9)&&(((a6==1)&&(!(a4==1)&&(!(a5==1)&&(((((((a3==4)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==4)))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==6))&&(a20==1))&&!(a0==1)))))&&(a27==1)))&&(a15==1))){ + a3 = 8; + a5 = 1; + a0 = 1; + a12 = 8; + a22 = 1; + a18 = 1; + return -1; + } else if(((a12==9)&&((a4==1)&&(!(a5==1)&&((!(a27==1)&&(((((input==1)&&((((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))||((a3==7)&&((a18==1)&&(a22==1)))))&&(a6==1))&&(a0==1))&&!(a15==1)))&&(a20==1)))))){ + a22 = 1; + a3 = 4; + a12 = 10; + a5 = 1; + a18 = 0; + a27 = 1; + return 21; + } else if((((a12==11)&&((a0==1)&&(((a15==1)&&((a5==1)&&((a27==1)&&(!(a4==1)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==2))))))&&(a20==1))))&&(a6==1))){ + a18 = 1; + a12 = 10; + a3 = 4; + a5 = 0; + a22 = 0; + return 26; + } else if((((a4==1)&&(((a12==9)&&(((a20==1)&&(!(a5==1)&&((a0==1)&&((a15==1)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==5))))))&&(a3==8)))&&(a27==1)))&&(a6==1))){ + a18 = 0; + a12 = 11; + a22 = 0; + a15 = 0; + return 21; + } else if(((((a0==1)&&((((a20==1)&&(((a12==11)&&((a3==5)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==6))))&&!(a27==1)))&&!(a5==1))&&!(a15==1)))&&!(a4==1))&&(a6==1))){ + if((a0==1)){ + a5 = 1; + a0 = 0; + a12 = 10; + a22 = 0; + a6 = 0; + a18 = 0; + a15 = 1; + a3 = 7; + a27 = 1; + }else{ + a4 = 1; + a18 = 1; + a22 = 0; + a27 = 1; + a3 = 4; + a12 = 10; + } + return 26; + } else if(((a27==1)&&(((((((!(a0==1)&&((a22==1)&&(((input==6)&&!(a4==1))&&(a20==1))))&&(a12==8))&&!(a15==1))&&(a3==4))&&(a6==1))&&!(a18==1))&&!(a5==1)))){ + if((a20==1)){ + a22 = 0; + a3 = 6; + a6 = 0; + a12 = 9; + a5 = 1; + a4 = 1; + }else{ + a5 = 1; + a0 = 1; + a27 = 0; + a15 = 1; + } + return 26; + } else if((!(a15==1)&&((a20==1)&&(((!(a6==1)&&(((a27==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2))&&(a12==11))&&!(a4==1)))&&(a3==5)))&&!(a5==1))&&(a0==1))))){ + a22 = 0; + a5 = 1; + a3 = 4; + a18 = 0; + a15 = 1; + return -1; + } else if(((!(a22==1)&&(!(a4==1)&&((a18==1)&&((!(a15==1)&&(!(a5==1)&&((a20==1)&&((((input==3)&&(a12==10))&&(a3==4))&&(a6==1)))))&&!(a0==1)))))&&(a27==1))){ + a6 = 0; + a3 = 8; + a15 = 1; + a12 = 12; + a5 = 1; + a0 = 1; + return 26; + } else if(((a12==8)&&((a5==1)&&((!(a4==1)&&((a20==1)&&((((input==1)&&(((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1)))||(!(a6==1)&&(((a22==1)&&!(a18==1))&&(a3==4)))))&&!(a0==1))&&(a15==1))))&&(a27==1))))){ + a22 = 1; + a18 = 1; + a0 = 1; + a6 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if((!(a15==1)&&((a20==1)&&(!(a4==1)&&((a5==1)&&(((!(a27==1)&&((((input==3)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a6==1))&&(a3==6)))&&(a0==1))&&(a12==10))))))){ + a15 = 1; + a27 = 1; + a22 = 1; + a12 = 12; + a3 = 7; + a18 = 1; + a4 = 1; + a5 = 0; + a6 = 0; + return 26; + } else if(((a15==1)&&((((a6==1)&&((a12==8)&&(((a20==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==6))&&(a5==1)))&&!(a0==1))))&&!(a4==1))&&!(a27==1)))){ + a0 = 1; + a3 = 5; + a22 = 0; + a18 = 0; + a27 = 1; + return -1; + } else if(((a4==1)&&(!(a0==1)&&(!(a15==1)&&((a5==1)&&((a3==7)&&((a27==1)&&((((a12==10)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==6)))&&!(a6==1))&&(a20==1))))))))){ + a18 = 1; + a4 = 0; + a22 = 0; + a15 = 1; + a6 = 1; + a0 = 1; + return 21; + } else if((((!(a6==1)&&((((!(a22==1)&&(((a18==1)&&(!(a0==1)&&((a15==1)&&(input==2))))&&!(a5==1)))&&(a12==9))&&(a20==1))&&!(a27==1)))&&(a3==5))&&(a4==1))){ + a0 = 1; + a12 = 8; + a3 = 8; + a22 = 1; + a5 = 1; + a27 = 1; + return -1; + } else if((!(a6==1)&&(!(a27==1)&&((((((a12==11)&&(((input==6)&&((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6)))||((a3==6)&&((a22==1)&&!(a18==1)))))&&(a20==1)))&&(a5==1))&&!(a0==1))&&!(a4==1))&&(a15==1))))){ + a22 = 0; + a12 = 9; + a6 = 1; + a3 = 4; + a15 = 0; + a18 = 0; + return -1; + } else if(((!(a27==1)&&(!(a0==1)&&((((a20==1)&&((a15==1)&&(!(a5==1)&&((a3==7)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==1))))))&&(a12==11))&&!(a4==1))))&&!(a6==1))){ + a5 = 1; + a0 = 1; + a22 = 1; + a6 = 1; + a27 = 1; + a12 = 8; + a4 = 1; + a3 = 6; + a18 = 1; + return -1; + } else if((((a15==1)&&((a12==9)&&(((a4==1)&&((a20==1)&&(((a6==1)&&(((input==5)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a27==1)))&&(a5==1))))&&!(a0==1))))&&(a3==5))){ + a22 = 1; + a0 = 1; + a18 = 0; + a12 = 10; + a6 = 0; + a15 = 0; + return 24; + } else if((((a0==1)&&((((!(a15==1)&&(!(a27==1)&&(((input==1)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==7))))&&(a12==8))))&&!(a6==1))&&!(a5==1))&&!(a4==1)))&&(a20==1))){ + a12 = 10; + a5 = 1; + a22 = 1; + a18 = 0; + a15 = 1; + a4 = 1; + a3 = 6; + return 21; + } else if(((a20==1)&&((!(a27==1)&&((((a0==1)&&((((((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==1))&&!(a15==1))&&(a12==10)))&&(a6==1))&&!(a5==1)))&&!(a4==1)))){ + a27 = 1; + a6 = 0; + a18 = 1; + a3 = 4; + a5 = 1; + a22 = 1; + a12 = 11; + return 26; + } else if((!(a15==1)&&((!(a6==1)&&(!(a27==1)&&((((((a12==9)&&((a3==4)&&((input==4)&&((a18==1)||!(a18==1)))))&&(a20==1))&&!(a0==1))&&!(a22==1))&&!(a5==1))))&&(a4==1)))){ + if((a5==1)){ + a3 = 5; + a4 = 0; + a27 = 1; + a6 = 1; + a12 = 8; + a18 = 1; + a5 = 1; + a15 = 1; + a0 = 1; + }else{ + a12 = 11; + a18 = 1; + a15 = 1; + a22 = 1; + a0 = 1; + a3 = 5; + } + return 21; + } else if((!(a0==1)&&(!(a4==1)&&((a20==1)&&(((((((input==6)&&((((a22==1)&&(a18==1))&&(a3==7))||((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1))))))&&(a15==1))&&(a5==1))&&!(a27==1))&&(a12==11))&&!(a6==1)))))){ + if((a27==1)){ + a15 = 0; + a12 = 9; + a0 = 1; + a3 = 7; + a18 = 0; + a22 = 1; + }else{ + a12 = 8; + a3 = 6; + a18 = 0; + a6 = 1; + a4 = 1; + a22 = 1; + a27 = 1; + } + return 26; + } else if(((a3==6)&&(((a4==1)&&(!(a6==1)&&((a27==1)&&((a22==1)&&(!(a0==1)&&(!(a15==1)&&(((a5==1)&&((input==2)&&((a18==1)||!(a18==1))))&&(a12==11))))))))&&(a20==1)))){ + a18 = 1; + a15 = 1; + a3 = 5; + a4 = 0; + a0 = 1; + a22 = 0; + return 26; + } else if((((a20==1)&&(((!(a27==1)&&((a5==1)&&((a6==1)&&(((!(a0==1)&&((input==6)&&(a3==4)))&&!(a18==1))&&!(a15==1)))))&&(a4==1))&&(a12==9)))&&(a22==1))){ + if((a4==1)){ + a12 = 10; + a6 = 0; + }else{ + a15 = 1; + a3 = 7; + a4 = 0; + a22 = 0; + a0 = 1; + a12 = 8; + a27 = 1; + } + return 21; + } else if((((a18==1)&&((a3==4)&&((((a12==8)&&(((!(a22==1)&&((a5==1)&&((input==4)&&(a4==1))))&&(a0==1))&&(a27==1)))&&(a20==1))&&!(a15==1))))&&(a6==1))){ + a15 = 1; + a22 = 1; + return -1; + } else if((((a20==1)&&(((((a4==1)&&(!(a6==1)&&(!(a0==1)&&((a12==11)&&((((a18==1)||!(a18==1))&&(input==5))&&(a3==8))))))&&!(a27==1))&&!(a5==1))&&!(a15==1)))&&(a22==1))){ + a15 = 1; + a5 = 1; + a27 = 1; + a18 = 0; + a0 = 1; + a12 = 8; + a3 = 7; + return -1; + } else if(((a12==9)&&(((a15==1)&&((a20==1)&&((((!(a27==1)&&((a6==1)&&((a22==1)&&(((a18==1)||!(a18==1))&&(input==5)))))&&!(a0==1))&&!(a5==1))&&(a3==7))))&&!(a4==1)))){ + if((a22==1)){ + a6 = 0; + a22 = 0; + a18 = 0; + a5 = 1; + a3 = 6; + a4 = 1; + a27 = 1; + }else{ + a4 = 1; + a27 = 1; + a0 = 1; + a6 = 0; + a18 = 0; + a3 = 8; + a12 = 8; + a5 = 1; + } + return -1; + } else if(((a15==1)&&((a27==1)&&((a20==1)&&(((((((a0==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==3)))&&(a12==11))&&(a6==1))&&(a5==1))&&(a3==4))&&!(a4==1)))))){ + a0 = 0; + a22 = 1; + a12 = 9; + a6 = 0; + a3 = 7; + a5 = 0; + a18 = 1; + return -1; + } else if((!(a15==1)&&(((!(a5==1)&&((a4==1)&&(((a6==1)&&((a20==1)&&((a12==9)&&((a22==1)&&(((a18==1)||!(a18==1))&&(input==5))))))&&!(a27==1))))&&!(a0==1))&&(a3==4)))){ + if((a18==1)){ + a27 = 1; + a6 = 0; + a3 = 7; + a15 = 1; + a0 = 1; + a18 = 1; + }else{ + a5 = 1; + a15 = 1; + a18 = 0; + a22 = 0; + } + return 24; + } else if((!(a6==1)&&((a0==1)&&(((((!(a4==1)&&(((a3==5)&&((input==5)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))&&(a27==1)))&&(a5==1))&&(a15==1))&&(a20==1))&&(a12==11))))){ + a22 = 0; + a6 = 1; + a18 = 0; + a5 = 0; + a3 = 6; + a12 = 10; + a27 = 0; + a15 = 0; + return 21; + } else if((!(a4==1)&&(!(a5==1)&&(((((!(a6==1)&&(((a3==8)&&((input==4)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&!(a0==1)))&&(a12==9))&&(a15==1))&&!(a27==1))&&(a20==1))))){ + a12 = 8; + a18 = 0; + a5 = 1; + a0 = 1; + a4 = 1; + a22 = 0; + a27 = 1; + return 21; + } else if(((a27==1)&&((a12==10)&&((((!(a5==1)&&((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&!(a0==1))&&!(a6==1))&&(a20==1)))&&(a4==1))&&!(a15==1))&&(a3==8))))){ + a22 = 1; + a18 = 0; + a3 = 5; + a15 = 1; + a6 = 1; + a0 = 1; + return 26; + } else if(((((!(a27==1)&&(((((a20==1)&&((input==6)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==7)))||((a3==7)&&((a22==1)&&!(a18==1))))))&&(a4==1))&&(a5==1))&&(a12==8)))&&!(a15==1))&&(a0==1))&&!(a6==1))){ + a18 = 0; + a12 = 12; + a3 = 8; + a27 = 1; + a22 = 0; + return -1; + } else if(((a6==1)&&((a20==1)&&(!(a0==1)&&((!(a4==1)&&((a5==1)&&(!(a27==1)&&((((((a22==1)&&(a18==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a22==1)&&!(a18==1)))))&&(input==6))&&!(a15==1)))))&&(a12==10)))))){ + if((a5==1)){ + a18 = 1; + a5 = 0; + a3 = 4; + a6 = 0; + a22 = 0; + a27 = 1; + a0 = 1; + }else{ + a0 = 1; + a18 = 0; + a12 = 12; + a22 = 0; + a15 = 1; + a3 = 7; + } + return -1; + } else if(((a15==1)&&((a20==1)&&(((a3==5)&&(((((a27==1)&&(((input==6)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&!(a5==1)))&&!(a4==1))&&(a6==1))&&(a12==12)))&&(a0==1))))){ + a22 = 1; + a4 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + a18 = 1; + return -1; + } else if(((!(a4==1)&&(((a20==1)&&(!(a0==1)&&((a22==1)&&((a12==8)&&(!(a6==1)&&(!(a27==1)&&((a15==1)&&((input==4)&&((a18==1)||!(a18==1))))))))))&&(a3==8)))&&!(a5==1))){ + a6 = 1; + a12 = 11; + a4 = 1; + a18 = 1; + return -1; + } else if((!(a15==1)&&(!(a27==1)&&((a0==1)&&((((a20==1)&&((((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1)))&&(input==2))&&!(a5==1)))&&(a12==12))&&!(a4==1)))))){ + if((a20==1)){ + a3 = 4; + a4 = 1; + a6 = 1; + a22 = 0; + a12 = 10; + a27 = 1; + a0 = 0; + a18 = 0; + }else{ + a18 = 1; + a4 = 1; + a22 = 0; + a6 = 0; + a3 = 4; + a27 = 1; + } + return 21; + } else if(((((a20==1)&&((a15==1)&&((!(a27==1)&&((a6==1)&&(!(a0==1)&&((input==5)&&((((!(a22==1)&&(a18==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4)))||(((a18==1)&&(a22==1))&&(a3==5)))))))&&!(a4==1))))&&!(a5==1))&&(a12==8))){ + a0 = 1; + a27 = 1; + a3 = 4; + a18 = 0; + a12 = 11; + a22 = 1; + return 21; + } else if((!(a6==1)&&(((a22==1)&&(((a15==1)&&((((a12==10)&&((((input==6)&&((a18==1)||!(a18==1)))&&(a4==1))&&!(a5==1)))&&(a27==1))&&(a20==1)))&&!(a0==1)))&&(a3==8)))){ + a6 = 1; + a5 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + a0 = 1; + return -1; + } else if((((a6==1)&&((a4==1)&&(((a0==1)&&((a12==11)&&(((a15==1)&&((((a3==5)&&((a18==1)&&(a22==1)))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a22==1)&&!(a18==1)))))&&(input==3)))&&(a5==1))))&&(a20==1))))&&!(a27==1))){ + a22 = 0; + a18 = 0; + a3 = 6; + a12 = 12; + a5 = 0; + return 24; + } else if((((((a5==1)&&(!(a18==1)&&((a0==1)&&(((((!(a15==1)&&(input==3))&&(a20==1))&&(a3==8))&&(a27==1))&&(a12==8)))))&&(a6==1))&&(a4==1))&&!(a22==1))){ + a15 = 1; + a18 = 1; + a3 = 6; + a6 = 0; + a5 = 0; + a4 = 0; + return 26; + } else if(((a20==1)&&((((((a6==1)&&((a27==1)&&(((a3==5)&&((a12==8)&&(((a18==1)||!(a18==1))&&(input==4))))&&(a0==1))))&&(a22==1))&&!(a15==1))&&!(a5==1))&&(a4==1)))){ + a5 = 1; + a15 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((((((a20==1)&&(((a0==1)&&(((a15==1)&&((a3==4)&&((input==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))))&&(a4==1)))&&(a12==12)))&&!(a27==1))&&(a5==1))&&(a6==1))){ + a3 = 6; + a4 = 0; + a5 = 0; + a18 = 0; + a6 = 0; + a22 = 1; + a15 = 0; + a12 = 8; + return -1; + } else if((((a4==1)&&(((a27==1)&&(((a12==11)&&((((a6==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4)))&&(a0==1))&&(a20==1)))&&(a3==5)))&&!(a5==1)))&&(a15==1))){ + a3 = 4; + a6 = 0; + a22 = 0; + a5 = 1; + a12 = 10; + a18 = 0; + return -1; + } else if((!(a22==1)&&((a0==1)&&((a12==9)&&((a3==4)&&(((a20==1)&&((((a18==1)&&((!(a5==1)&&(input==4))&&(a4==1)))&&(a6==1))&&(a15==1)))&&!(a27==1))))))){ + a6 = 0; + a4 = 0; + a5 = 1; + a15 = 0; + a12 = 8; + a3 = 5; + return -1; + } else if(((((((a4==1)&&(((a15==1)&&(!(a5==1)&&((((input==5)&&(a20==1))&&!(a27==1))&&(a3==7))))&&!(a18==1)))&&(a22==1))&&(a12==9))&&!(a0==1))&&!(a6==1))){ + a4 = 0; + a27 = 1; + a5 = 1; + a0 = 1; + a6 = 1; + a12 = 8; + a22 = 0; + return -1; + } else if((!(a27==1)&&(!(a15==1)&&((a6==1)&&((((a0==1)&&(!(a5==1)&&(((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==5))&&(a20==1))&&(a3==4))))&&!(a4==1))&&(a12==12)))))){ + a3 = 6; + a12 = 8; + a4 = 1; + a18 = 0; + a0 = 0; + a27 = 1; + a22 = 0; + a15 = 1; + return -1; + } else if(((a27==1)&&((a3==5)&&(!(a15==1)&&((a18==1)&&(!(a5==1)&&((((a20==1)&&(((a12==12)&&((input==4)&&(a4==1)))&&(a6==1)))&&!(a22==1))&&!(a0==1)))))))){ + if((a18==1)){ + a12 = 10; + a27 = 0; + a6 = 0; + a3 = 4; + a4 = 0; + }else{ + a5 = 1; + a0 = 1; + a6 = 0; + a3 = 4; + a12 = 8; + a15 = 1; + a22 = 1; + } + return 21; + } else if(((a4==1)&&(((!(a6==1)&&((!(a27==1)&&(((a0==1)&&((((input==5)&&!(a22==1))&&(a20==1))&&(a12==8)))&&(a3==7)))&&(a18==1)))&&(a5==1))&&(a15==1)))){ + a22 = 1; + a27 = 1; + a6 = 1; + a3 = 4; + return -1; + } return calculate_output42(input); + } + + int calculate_output42(int input) { + if((((a15==1)&&((((a12==10)&&((((a22==1)&&((a18==1)&&(!(a27==1)&&((input==1)&&(a4==1)))))&&(a0==1))&&!(a6==1)))&&(a3==6))&&(a20==1)))&&(a5==1))){ + if((a15==1)){ + a15 = 0; + a12 = 9; + a18 = 0; + a3 = 5; + a0 = 0; + a22 = 0; + a27 = 1; + a4 = 0; + }else{ + a15 = 0; + a12 = 12; + a3 = 8; + a5 = 0; + a27 = 1; + a22 = 0; + } + return -1; + } else if(((a3==7)&&((((a15==1)&&((a27==1)&&(((a20==1)&&((a12==9)&&(!(a5==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==6)))))&&!(a4==1))))&&(a6==1))&&!(a0==1)))){ + a15 = 0; + a18 = 0; + a3 = 8; + a22 = 1; + a4 = 1; + return 26; + } else if(((((((!(a4==1)&&(((a20==1)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==2)))&&!(a15==1)))&&(a12==12))&&(a0==1))&&!(a27==1))&&!(a5==1))&&(a6==1))){ + a6 = 0; + a15 = 1; + a22 = 0; + a5 = 1; + a27 = 1; + a12 = 11; + a18 = 1; + a4 = 1; + a3 = 6; + return 26; + } else if(((((((a4==1)&&((((a20==1)&&((a15==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==1))))&&(a3==7))&&!(a27==1)))&&(a12==12))&&!(a5==1))&&(a0==1))&&(a6==1))){ + a18 = 1; + a27 = 1; + a5 = 1; + a3 = 5; + a4 = 0; + a22 = 1; + a12 = 11; + return 26; + } else if(((a6==1)&&(!(a27==1)&&((a4==1)&&(((a20==1)&&((((a12==12)&&((((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==1)))&&!(a0==1))&&(a5==1)))&&(a15==1)))))){ + if((a6==1)){ + a18 = 1; + a3 = 8; + a0 = 1; + a15 = 0; + a22 = 1; + a6 = 0; + a4 = 0; + }else{ + a3 = 6; + a22 = 0; + a27 = 1; + a12 = 8; + a4 = 0; + a0 = 1; + a18 = 0; + } + return 24; + } else if((!(a0==1)&&((a6==1)&&(((a15==1)&&((a27==1)&&(!(a5==1)&&((!(a4==1)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==6)))&&(a12==8)))))&&(a20==1))))){ + a0 = 1; + a15 = 0; + a12 = 11; + a18 = 1; + a22 = 1; + a3 = 4; + a27 = 0; + a5 = 1; + return 21; + } else if(((a3==4)&&(((a5==1)&&(((!(a22==1)&&((a15==1)&&(((((input==3)&&!(a4==1))&&!(a0==1))&&(a27==1))&&!(a18==1))))&&(a12==9))&&(a20==1)))&&!(a6==1)))){ + a6 = 1; + a0 = 1; + a4 = 1; + a5 = 0; + a12 = 11; + a3 = 6; + return -1; + } else if((((a4==1)&&(((!(a27==1)&&((((((input==2)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&(a12==10))&&(a0==1))&&(a3==5))&&(a20==1)))&&(a5==1))&&(a15==1)))&&!(a6==1))){ + a18 = 0; + a12 = 12; + a22 = 0; + a4 = 0; + a3 = 4; + a27 = 1; + a15 = 0; + return 26; + } else if(((a4==1)&&((((((!(a15==1)&&((((((a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a22==1)&&!(a18==1)))))&&(input==3))&&!(a0==1)))&&(a5==1))&&(a6==1))&&!(a27==1))&&(a12==9))&&(a20==1)))){ + if((a12==11)){ + a12 = 8; + a6 = 0; + a3 = 4; + a22 = 0; + a18 = 0; + a27 = 1; + a15 = 1; + a0 = 1; + }else{ + a3 = 7; + a18 = 0; + a6 = 0; + a12 = 10; + a15 = 1; + a5 = 0; + a0 = 1; + a22 = 0; + } + return 24; + } else if(((a0==1)&&(!(a6==1)&&((a4==1)&&((!(a15==1)&&(((!(a22==1)&&((a20==1)&&((a27==1)&&((input==1)&&((a18==1)||!(a18==1))))))&&(a12==10))&&(a3==5)))&&!(a5==1)))))){ + a3 = 6; + a18 = 0; + a5 = 1; + return -1; + } else if(((a20==1)&&(((((a12==8)&&((!(a5==1)&&(!(a18==1)&&((((input==3)&&(a27==1))&&(a15==1))&&(a3==7))))&&!(a4==1)))&&!(a0==1))&&!(a22==1))&&!(a6==1)))){ + a22 = 1; + a6 = 1; + a12 = 10; + a15 = 0; + a18 = 1; + a0 = 1; + a4 = 1; + return 21; + } else if(((a3==8)&&((!(a5==1)&&((a6==1)&&((!(a15==1)&&(!(a4==1)&&((a12==12)&&(!(a22==1)&&(!(a0==1)&&((input==4)&&(a27==1)))))))&&(a20==1))))&&!(a18==1)))){ + if((a4==1)){ + a5 = 1; + a3 = 4; + a18 = 1; + a12 = 10; + a15 = 1; + }else{ + a12 = 9; + a3 = 7; + a0 = 1; + a4 = 1; + a6 = 0; + a22 = 1; + a27 = 0; + } + return -1; + } else if(((a3==8)&&(!(a6==1)&&(!(a15==1)&&(((a12==10)&&(((!(a5==1)&&(((input==2)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a4==1)))&&!(a27==1))&&(a20==1)))&&(a0==1)))))){ + a27 = 1; + a22 = 1; + a12 = 8; + a5 = 1; + a6 = 1; + a4 = 1; + a15 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((!(a5==1)&&((((((((a3==8)&&((((input==3)&&(a18==1))&&(a12==9))&&(a22==1)))&&(a4==1))&&(a20==1))&&!(a27==1))&&(a6==1))&&!(a0==1))&&!(a15==1)))){ + if((a22==1)){ + a0 = 1; + a4 = 0; + a22 = 0; + a3 = 5; + a15 = 1; + a6 = 0; + a18 = 0; + a5 = 1; + }else{ + a5 = 1; + a6 = 0; + a27 = 1; + a3 = 6; + a12 = 11; + a0 = 1; + a4 = 0; + } + return 21; + } else if((((a0==1)&&((((a3==5)&&((((a20==1)&&((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==4))&&!(a27==1)))&&(a6==1))&&(a5==1)))&&(a15==1))&&(a12==12)))&&!(a4==1))){ + a3 = 4; + a4 = 1; + a27 = 1; + a18 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if(((a12==9)&&((!(a0==1)&&((((a18==1)&&((a4==1)&&(!(a15==1)&&((((a20==1)&&(input==2))&&(a5==1))&&(a22==1)))))&&(a6==1))&&(a27==1)))&&(a3==6)))){ + a3 = 5; + a15 = 1; + a5 = 0; + a27 = 0; + a12 = 10; + a0 = 1; + a6 = 0; + return 26; + } else if(((((a3==4)&&((a6==1)&&((a4==1)&&(((a20==1)&&(((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==3))&&(a27==1))&&!(a15==1)))&&(a0==1)))))&&(a12==9))&&!(a5==1))){ + a6 = 0; + a18 = 1; + a22 = 0; + a3 = 8; + a27 = 0; + a12 = 8; + return 26; + } else if((((a0==1)&&((a5==1)&&((((a15==1)&&(((a12==12)&&((!(a27==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a20==1)))&&!(a4==1)))&&!(a22==1))&&(a6==1))))&&(a3==4))){ + a3 = 7; + a4 = 1; + a22 = 1; + a27 = 1; + a5 = 0; + a18 = 1; + return 26; + } else if((((((a3==4)&&(!(a4==1)&&(((a27==1)&&(((((input==6)&&((a18==1)||!(a18==1)))&&(a22==1))&&!(a0==1))&&(a20==1)))&&!(a15==1))))&&!(a6==1))&&(a12==9))&&!(a5==1))){ + a3 = 8; + a18 = 0; + a5 = 1; + a0 = 1; + a12 = 10; + a6 = 1; + return -1; + } else if((((a20==1)&&((a3==6)&&((a12==12)&&(((!(a0==1)&&((!(a6==1)&&(((a5==1)&&(input==5))&&(a18==1)))&&(a15==1)))&&(a4==1))&&(a27==1)))))&&(a22==1))){ + a22 = 0; + a12 = 9; + a6 = 1; + a3 = 7; + a0 = 1; + a4 = 0; + a27 = 0; + return -1; + } else if((((a27==1)&&(((((a15==1)&&((((a4==1)&&((a6==1)&&(((a18==1)||!(a18==1))&&(input==3))))&&(a0==1))&&(a3==7)))&&!(a5==1))&&(a12==10))&&(a20==1)))&&!(a22==1))){ + a18 = 0; + a3 = 8; + a27 = 0; + a12 = 12; + a15 = 0; + a22 = 1; + a4 = 0; + return -1; + } else if(((!(a4==1)&&(((a12==9)&&((((((a3==5)&&((((a18==1)||!(a18==1))&&(input==1))&&(a22==1)))&&!(a0==1))&&(a20==1))&&(a6==1))&&!(a5==1)))&&!(a27==1)))&&!(a15==1))){ + if((a18==1)){ + a12 = 8; + a5 = 1; + a6 = 0; + a0 = 1; + a3 = 7; + a4 = 1; + a27 = 1; + a18 = 0; + a15 = 1; + a22 = 0; + }else{ + a4 = 1; + a6 = 0; + a0 = 1; + a18 = 1; + a15 = 1; + a5 = 1; + a3 = 8; + a27 = 1; + a12 = 8; + } + return 26; + } else if((!(a27==1)&&(!(a22==1)&&((a15==1)&&((a3==5)&&((a0==1)&&((a12==10)&&((a20==1)&&(!(a6==1)&&((a5==1)&&(!(a4==1)&&(((a18==1)||!(a18==1))&&(input==5))))))))))))){ + a27 = 1; + a3 = 4; + a12 = 8; + a6 = 1; + a4 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((((!(a15==1)&&((!(a4==1)&&((!(a0==1)&&(!(a18==1)&&((a20==1)&&(!(a22==1)&&(input==2)))))&&(a3==6)))&&(a6==1)))&&(a5==1))&&(a12==10))&&!(a27==1))){ + a3 = 5; + a6 = 0; + a18 = 1; + a5 = 0; + a22 = 1; + a15 = 1; + return 26; + } else if((!(a22==1)&&(((a27==1)&&(!(a6==1)&&(((a0==1)&&(!(a18==1)&&(!(a4==1)&&((a20==1)&&(((input==5)&&(a12==11))&&!(a5==1))))))&&(a3==8))))&&!(a15==1)))){ + a15 = 1; + a12 = 10; + a3 = 7; + a22 = 1; + return 26; + } else if((!(a6==1)&&((!(a15==1)&&((a20==1)&&(((a12==9)&&((((((input==2)&&!(a18==1))&&(a0==1))&&!(a27==1))&&!(a4==1))&&!(a5==1)))&&(a3==8))))&&!(a22==1)))){ + a18 = 1; + a4 = 1; + a27 = 1; + a12 = 8; + a15 = 1; + a6 = 1; + a3 = 4; + a22 = 1; + a5 = 1; + return -1; + } else if(((a12==10)&&((((a3==7)&&(!(a4==1)&&(((!(a0==1)&&(((input==4)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a15==1)))&&(a20==1))&&!(a27==1))))&&!(a5==1))&&(a6==1)))){ + a4 = 1; + a22 = 0; + a15 = 1; + a27 = 1; + a6 = 0; + a12 = 8; + a0 = 1; + a18 = 0; + a5 = 1; + return -1; + } else if(((a12==11)&&((a4==1)&&(((a20==1)&&((a27==1)&&((a5==1)&&(((a6==1)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==2)))&&!(a15==1)))))&&(a0==1))))){ + if((a0==1)){ + a3 = 6; + a22 = 0; + a12 = 8; + a18 = 1; + a0 = 0; + a5 = 0; + }else{ + a6 = 0; + a5 = 0; + a3 = 8; + a18 = 1; + a22 = 1; + a27 = 0; + a4 = 0; + a12 = 10; + } + return 21; + } else if(((a5==1)&&(((a3==6)&&((((a20==1)&&((!(a18==1)&&(!(a0==1)&&(((a12==8)&&(input==2))&&!(a27==1))))&&(a22==1)))&&!(a6==1))&&!(a4==1)))&&!(a15==1)))){ + a0 = 1; + a3 = 7; + a27 = 1; + a4 = 1; + a15 = 1; + return 21; + } else if((((!(a5==1)&&(!(a0==1)&&(((a27==1)&&((a4==1)&&(!(a22==1)&&(((a6==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a20==1)))))&&(a12==9))))&&(a3==7))&&!(a15==1))){ + a12 = 12; + a3 = 8; + a0 = 1; + a18 = 0; + a22 = 1; + a5 = 1; + return 21; + } else if(((((((((!(a0==1)&&(((a20==1)&&((input==4)&&((a18==1)||!(a18==1))))&&(a12==9)))&&(a3==8))&&!(a6==1))&&!(a22==1))&&(a27==1))&&(a5==1))&&!(a15==1))&&!(a4==1))){ + a0 = 1; + a12 = 10; + a6 = 1; + a18 = 0; + a4 = 1; + a3 = 7; + return -1; + } else if((((((a15==1)&&((a20==1)&&(((a5==1)&&(((((a3==5)&&((a22==1)&&!(a18==1)))||(((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==5))))&&(input==5))&&!(a27==1)))&&!(a6==1))))&&!(a4==1))&&(a12==10))&&(a0==1))){ + a3 = 4; + a27 = 1; + a6 = 1; + a22 = 1; + a4 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if((!(a15==1)&&((a4==1)&&((a6==1)&&((!(a5==1)&&(((a12==12)&&((a27==1)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==4))))&&(a20==1)))&&!(a0==1)))))){ + a5 = 1; + a4 = 0; + a15 = 1; + a12 = 8; + a3 = 7; + a0 = 1; + a18 = 1; + a22 = 0; + return 26; + } else if(((((a3==8)&&(((a6==1)&&((a22==1)&&(!(a18==1)&&((!(a5==1)&&(((a20==1)&&(input==2))&&!(a27==1)))&&(a12==11)))))&&!(a0==1)))&&(a15==1))&&(a4==1))){ + a5 = 1; + a27 = 1; + a0 = 1; + a3 = 7; + a22 = 0; + a12 = 8; + return -1; + } else if((((a4==1)&&(((((a22==1)&&((a15==1)&&((!(a5==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&!(a0==1)))&&(a12==8))))&&!(a27==1))&&(a20==1))&&!(a6==1)))&&(a3==6))){ + a15 = 0; + a3 = 8; + a18 = 0; + a27 = 1; + a0 = 1; + a6 = 1; + a4 = 0; + return 21; + } else if(((a3==8)&&((!(a6==1)&&((((((!(a27==1)&&((input==4)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a12==9))&&(a4==1))&&(a5==1))&&(a15==1))&&(a20==1)))&&!(a0==1)))){ + if((a12==10)){ + a18 = 1; + a0 = 1; + a22 = 1; + a3 = 6; + a27 = 1; + a12 = 8; + }else{ + a15 = 0; + a18 = 1; + a22 = 0; + a6 = 1; + a0 = 1; + } + return -1; + } else if((((a0==1)&&(!(a6==1)&&(!(a4==1)&&((((((input==1)&&((((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==5))))&&(a20==1))&&(a12==10))&&!(a27==1))&&(a5==1)))))&&!(a15==1))){ + a27 = 1; + a6 = 1; + a12 = 8; + a4 = 1; + a18 = 1; + a15 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if((((a12==8)&&((a6==1)&&((a4==1)&&((!(a27==1)&&((a15==1)&&((a0==1)&&((((input==3)&&((a18==1)||!(a18==1)))&&(a22==1))&&(a5==1)))))&&(a3==6)))))&&(a20==1))){ + a3 = 5; + a18 = 0; + a27 = 1; + a12 = 12; + return 21; + } else if((((a12==12)&&((a0==1)&&((((!(a6==1)&&((!(a22==1)&&(!(a5==1)&&((input==2)&&!(a27==1))))&&(a4==1)))&&(a3==7))&&(a15==1))&&(a20==1))))&&!(a18==1))){ + a5 = 1; + a22 = 1; + a27 = 1; + a12 = 8; + a6 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a5==1)&&((a27==1)&&(((((((((((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==5))&&!(a6==1))&&(a20==1))&&(a4==1))&&(a15==1))&&(a12==10))&&!(a0==1))))){ + a5 = 0; + a22 = 0; + a15 = 0; + a3 = 4; + a4 = 0; + a18 = 0; + return 21; + } else if(((a4==1)&&((a20==1)&&((a12==11)&&((a3==5)&&((a18==1)&&((!(a15==1)&&((a5==1)&&(!(a0==1)&&((a22==1)&&(!(a6==1)&&(input==6))))))&&!(a27==1)))))))){ + if((a0==1)){ + a12 = 8; + a15 = 1; + a22 = 0; + a0 = 1; + a6 = 1; + a27 = 1; + a18 = 0; + }else{ + a6 = 1; + a4 = 0; + a0 = 1; + a3 = 7; + a12 = 8; + } + return 21; + } else if((((!(a0==1)&&((a12==11)&&((a20==1)&&(!(a27==1)&&(!(a4==1)&&(((!(a22==1)&&((a18==1)&&(input==4)))&&(a6==1))&&(a3==7)))))))&&(a5==1))&&(a15==1))){ + a0 = 1; + a12 = 8; + a18 = 0; + a5 = 0; + a27 = 1; + return -1; + } else if(((((a5==1)&&(!(a15==1)&&((!(a4==1)&&(((a0==1)&&((input==6)&&((((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==5)))))&&(a20==1)))&&!(a27==1))))&&!(a6==1))&&(a12==9))){ + a4 = 1; + a12 = 10; + a22 = 1; + a18 = 1; + a3 = 7; + a27 = 1; + return 21; + } else if(((a20==1)&&(!(a15==1)&&(!(a4==1)&&(((a6==1)&&(((a5==1)&&(((((((a18==1)&&!(a22==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==4))&&!(a27==1)))&&(a0==1)))&&(a12==9)))))){ + a3 = 4; + a22 = 1; + a15 = 1; + a4 = 1; + a12 = 8; + a18 = 1; + a27 = 1; + return -1; + } else if((((a15==1)&&(((!(a4==1)&&(((((a0==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==2)))&&(a12==10))&&(a27==1))&&(a20==1)))&&!(a5==1))&&(a3==6)))&&!(a6==1))){ + a22 = 0; + a6 = 1; + a0 = 0; + a3 = 5; + a4 = 1; + a18 = 0; + return 26; + } else if((!(a6==1)&&((a15==1)&&((a22==1)&&(((a0==1)&&((a18==1)&&(((a3==8)&&((a20==1)&&(!(a27==1)&&((input==3)&&!(a4==1)))))&&(a5==1))))&&(a12==10)))))){ + a15 = 0; + a5 = 0; + a4 = 1; + a6 = 1; + a22 = 0; + a27 = 1; + return 26; + } else if(((!(a6==1)&&((a20==1)&&(((a4==1)&&((a3==6)&&((((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a27==1))&&!(a5==1))&&(a12==10))))&&!(a15==1))))&&(a0==1))){ + if((a18==1)){ + a6 = 1; + a15 = 1; + a12 = 12; + a5 = 1; + a0 = 0; + a4 = 0; + a22 = 1; + a18 = 1; + }else{ + a18 = 0; + a6 = 1; + a27 = 0; + a15 = 1; + a3 = 4; + a22 = 1; + } + return 26; + } else if(((a20==1)&&((a15==1)&&((a6==1)&&(!(a5==1)&&(((((a0==1)&&(((((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==3)))&&(a12==9))&&!(a4==1))&&!(a27==1))))))){ + a3 = 4; + a18 = 0; + a22 = 1; + a5 = 1; + a6 = 0; + a12 = 10; + a27 = 1; + return 26; + } else if((((((((!(a6==1)&&((a4==1)&&((input==5)&&((((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==6))))))&&!(a15==1))&&(a12==9))&&!(a27==1))&&(a5==1))&&(a0==1))&&(a20==1))){ + a12 = 8; + a18 = 1; + a15 = 1; + a3 = 4; + a6 = 1; + a27 = 1; + a22 = 1; + return -1; + } else if(((((a20==1)&&((((((a3==8)&&((!(a5==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a4==1)))&&(a22==1))&&!(a0==1))&&!(a27==1))&&!(a6==1)))&&(a12==11))&&!(a15==1))){ + a15 = 1; + a27 = 1; + a5 = 1; + a12 = 8; + a18 = 1; + a3 = 7; + return 21; + } else if((((a3==7)&&((a6==1)&&((a27==1)&&(((!(a5==1)&&((a12==12)&&((a0==1)&&(!(a18==1)&&((a15==1)&&(input==3))))))&&(a20==1))&&(a22==1)))))&&(a4==1))){ + a4 = 0; + a12 = 11; + a6 = 0; + a15 = 0; + a5 = 1; + a3 = 5; + a22 = 0; + return -1; + } else if((((a4==1)&&((a5==1)&&((!(a0==1)&&((a20==1)&&((a3==5)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==6))&&(a12==8))&&(a27==1)))))&&!(a6==1))))&&!(a15==1))){ + a12 = 11; + a0 = 1; + a22 = 0; + a18 = 0; + a4 = 0; + return 24; + } else if((((a12==12)&&((!(a4==1)&&((a27==1)&&((((!(a5==1)&&((input==3)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a3==5))&&(a0==1))&&(a20==1))))&&(a15==1)))&&(a6==1))){ + if((a4==1)){ + a0 = 0; + a5 = 1; + a12 = 11; + a4 = 1; + a18 = 0; + a22 = 0; + }else{ + a5 = 1; + a22 = 0; + a3 = 7; + a12 = 11; + a18 = 0; + } + return -1; + } else if((((!(a22==1)&&((((((a12==10)&&((!(a27==1)&&((input==3)&&!(a15==1)))&&(a18==1)))&&(a4==1))&&(a6==1))&&!(a5==1))&&(a20==1)))&&(a3==4))&&(a0==1))){ + if((a18==1)){ + a3 = 7; + a6 = 0; + a12 = 11; + a15 = 1; + a18 = 0; + a27 = 1; + a4 = 0; + a0 = 0; + a5 = 1; + }else{ + a6 = 0; + a3 = 7; + a27 = 1; + a5 = 1; + a22 = 1; + a15 = 1; + a12 = 11; + } + return -1; + } else if((!(a6==1)&&(!(a5==1)&&((((a27==1)&&((((((input==1)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&(a15==1))&&!(a0==1))&&(a3==8))&&(a12==8)))&&!(a4==1))&&(a20==1))))){ + a12 = 11; + a18 = 1; + a0 = 1; + a22 = 1; + a5 = 1; + a6 = 1; + a15 = 0; + return 21; + } else if((((!(a27==1)&&((((a0==1)&&((!(a4==1)&&(((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a20==1)))&&(a5==1)))&&(a15==1))&&(a3==8)))&&(a12==10))&&!(a6==1))){ + a22 = 1; + a18 = 1; + a15 = 0; + a3 = 4; + a27 = 1; + a5 = 0; + return 26; + } else if(((a27==1)&&((((!(a22==1)&&((!(a15==1)&&((((!(a0==1)&&(input==6))&&!(a18==1))&&(a6==1))&&(a3==5)))&&(a12==9)))&&!(a4==1))&&(a20==1))&&!(a5==1)))){ + a5 = 1; + a12 = 12; + a18 = 1; + a4 = 1; + a0 = 1; + return 21; + } else if((!(a5==1)&&((a15==1)&&(!(a22==1)&&((a27==1)&&((a20==1)&&((!(a6==1)&&((((a3==8)&&((input==4)&&((a18==1)||!(a18==1))))&&(a12==11))&&!(a4==1)))&&(a0==1)))))))){ + a12 = 10; + a18 = 0; + a22 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if((((a20==1)&&((!(a6==1)&&(!(a15==1)&&(((a27==1)&&(((a12==10)&&((input==2)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))))&&(a4==1)))&&(a5==1))))&&(a3==5)))&&!(a0==1))){ + a22 = 1; + a15 = 1; + a0 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a6 = 1; + return -1; + } else if(((a27==1)&&(((!(a5==1)&&(!(a15==1)&&(((((((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1)))&&!(a6==1))||(((((a22==1)&&(a18==1))&&!(a4==1))&&(a3==4))&&(a6==1)))||((((!(a18==1)&&(a22==1))&&!(a4==1))&&(a3==4))&&(a6==1)))&&(input==3))&&(a12==11))))&&(a20==1))&&(a0==1)))){ + a27 = 0; + a22 = 0; + a4 = 1; + a6 = 0; + a3 = 6; + a18 = 0; + return 21; + } else if(((a22==1)&&((a20==1)&&((a3==8)&&(!(a5==1)&&((((((((a4==1)&&(input==3))&&(a12==8))&&(a18==1))&&!(a0==1))&&(a27==1))&&!(a6==1))&&!(a15==1))))))){ + a0 = 1; + a4 = 0; + a12 = 12; + a5 = 1; + return -1; + } else if((((!(a6==1)&&(((a5==1)&&((((!(a0==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==5)))&&(a12==9))&&(a20==1))&&(a3==8)))&&!(a27==1)))&&!(a15==1))&&(a4==1))){ + a6 = 1; + a27 = 1; + a22 = 1; + a3 = 6; + a15 = 1; + a18 = 1; + a0 = 1; + a12 = 8; + return -1; + } else if((((((a12==9)&&(((!(a5==1)&&(((a20==1)&&(!(a22==1)&&((a15==1)&&(input==2))))&&(a3==6)))&&(a18==1))&&(a27==1)))&&!(a4==1))&&(a0==1))&&(a6==1))){ + a5 = 1; + a4 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + return -1; + } else if((((a27==1)&&(((a0==1)&&((a20==1)&&(!(a15==1)&&((((a6==1)&&((((a22==1)&&(a18==1))&&!(a4==1))&&(a3==4)))||((((((a18==1)&&!(a22==1))&&(a4==1))&&(a3==8))&&!(a6==1))||(!(a6==1)&&((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1)))))))&&(input==3)))))&&(a12==10)))&&(a5==1))){ + a15 = 1; + a6 = 0; + a5 = 0; + a12 = 12; + a22 = 0; + a4 = 1; + a3 = 6; + a18 = 1; + return 21; + } else if((((a27==1)&&(!(a15==1)&&((a20==1)&&((a12==8)&&(!(a4==1)&&((!(a6==1)&&(((a3==4)&&(((a18==1)||!(a18==1))&&(input==4)))&&!(a22==1)))&&!(a0==1)))))))&&!(a5==1))){ + a15 = 1; + a4 = 1; + a0 = 1; + a18 = 1; + a6 = 1; + a22 = 1; + a5 = 1; + return -1; + } else if(((a4==1)&&((((((((a27==1)&&((a22==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&!(a6==1))))&&(a12==11))&&(a3==7))&&!(a5==1))&&!(a0==1))&&(a15==1))&&(a20==1)))){ + a5 = 1; + a4 = 0; + a3 = 8; + a22 = 0; + a12 = 10; + a0 = 1; + a18 = 1; + return -1; + } else if(((a0==1)&&((a6==1)&&(!(a18==1)&&((a12==11)&&(((((a20==1)&&((a15==1)&&((!(a27==1)&&(input==6))&&(a5==1))))&&!(a22==1))&&(a4==1))&&(a3==8))))))){ + a18 = 1; + a6 = 0; + a27 = 1; + a12 = 12; + a3 = 6; + a4 = 0; + return 24; + } else if(((a0==1)&&((a4==1)&&(!(a6==1)&&(((a15==1)&&((!(a5==1)&&((a3==8)&&((a20==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==1)))))&&(a27==1)))&&(a12==8)))))){ + a12 = 10; + a5 = 1; + a3 = 6; + a18 = 0; + a22 = 0; + return 26; + } else if((((a27==1)&&((((((a0==1)&&((input==3)&&((!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1))))||(((a6==1)&&((!(a22==1)&&(a18==1))&&(a3==8)))||((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))))))&&(a5==1))&&!(a15==1))&&(a4==1))&&(a12==9)))&&(a20==1))){ + a22 = 0; + a3 = 4; + a15 = 1; + a6 = 1; + a18 = 0; + a12 = 12; + return 21; + } else if((((a12==9)&&((a3==6)&&(((!(a4==1)&&((((a5==1)&&((a18==1)&&((input==2)&&(a0==1))))&&(a27==1))&&!(a22==1)))&&!(a6==1))&&(a20==1))))&&!(a15==1))){ + a3 = 4; + a6 = 1; + a4 = 1; + a12 = 8; + a22 = 1; + a15 = 1; + return -1; + } else if(((((a0==1)&&((a5==1)&&(!(a15==1)&&(((!(a27==1)&&((a22==1)&&((a3==6)&&(((a18==1)||!(a18==1))&&(input==4)))))&&(a20==1))&&(a12==8)))))&&!(a6==1))&&!(a4==1))){ + a3 = 4; + a18 = 1; + a15 = 1; + a6 = 1; + a27 = 1; + a4 = 1; + return -1; + } else if((!(a5==1)&&((a6==1)&&(((a20==1)&&((((!(a4==1)&&(((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&!(a0==1)))&&(a3==5))&&!(a15==1))&&(a12==11)))&&!(a27==1))))){ + a18 = 1; + a12 = 8; + a22 = 0; + a0 = 1; + return -1; + } else if(((!(a6==1)&&(!(a27==1)&&((!(a4==1)&&((a22==1)&&((a3==7)&&(((a12==9)&&((a20==1)&&(((a18==1)||!(a18==1))&&(input==2))))&&!(a5==1)))))&&!(a0==1))))&&!(a15==1))){ + a6 = 1; + a0 = 1; + a18 = 1; + a15 = 1; + a5 = 1; + a12 = 8; + a27 = 1; + a4 = 1; + return -1; + } else if(((!(a6==1)&&(((!(a18==1)&&((a3==7)&&(((a27==1)&&(!(a0==1)&&(((input==6)&&(a5==1))&&!(a4==1))))&&(a12==9))))&&!(a22==1))&&!(a15==1)))&&(a20==1))){ + a27 = 0; + a3 = 4; + a5 = 0; + a6 = 1; + a15 = 1; + a0 = 1; + a12 = 10; + a18 = 1; + return -1; + } else if((((((((a27==1)&&((((((input==2)&&!(a15==1))&&(a6==1))&&(a20==1))&&(a12==10))&&(a5==1)))&&!(a4==1))&&(a0==1))&&!(a18==1))&&(a3==8))&&(a22==1))){ + a15 = 1; + a0 = 0; + a12 = 11; + return 21; + } else if((((!(a15==1)&&((a0==1)&&(!(a27==1)&&((a12==12)&&((((((a3==8)&&(!(a18==1)&&(a22==1)))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1)))))&&(input==3))&&!(a5==1))&&(a20==1))))))&&!(a6==1))&&(a4==1))){ + a5 = 1; + a22 = 1; + a27 = 1; + a3 = 7; + a18 = 0; + a12 = 10; + return 21; + } else if(((a20==1)&&(((a22==1)&&(!(a27==1)&&((a3==8)&&((a4==1)&&((a15==1)&&((a0==1)&&((!(a5==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a12==8))))))))&&(a6==1)))){ + a18 = 1; + a5 = 1; + a12 = 12; + a6 = 0; + a4 = 0; + return 21; + } else if((((((((a12==11)&&((((((input==5)&&((a18==1)||!(a18==1)))&&!(a22==1))&&!(a15==1))&&(a3==6))&&(a20==1)))&&(a4==1))&&(a27==1))&&!(a5==1))&&(a6==1))&&!(a0==1))){ + a5 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + a22 = 1; + a15 = 1; + a0 = 1; + return -1; + } else if(((a3==6)&&(((a18==1)&&(((a0==1)&&(((((a20==1)&&(((a4==1)&&(input==5))&&(a12==10)))&&!(a15==1))&&!(a22==1))&&(a6==1)))&&(a27==1)))&&(a5==1)))){ + a15 = 1; + a3 = 5; + a6 = 0; + return -1; + } else if(((a6==1)&&(!(a27==1)&&((a12==8)&&(((a5==1)&&((a0==1)&&(!(a4==1)&&((a20==1)&&(((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a15==1))))))&&(a3==5)))))){ + if((a20==1)){ + a12 = 10; + a3 = 7; + a22 = 1; + a15 = 0; + a4 = 1; + a6 = 0; + a5 = 0; + a18 = 0; + a0 = 0; + a27 = 1; + }else{ + a22 = 1; + a18 = 0; + a15 = 0; + a5 = 0; + } + return 21; + } else if(((a12==9)&&((a5==1)&&((a4==1)&&(!(a27==1)&&((a20==1)&&((!(a0==1)&&(((input==3)&&((((a22==1)&&(a18==1))&&(a3==5))||(((!(a22==1)&&(a18==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))))&&!(a6==1)))&&(a15==1)))))))){ + a27 = 1; + a18 = 0; + a3 = 7; + a0 = 1; + a22 = 0; + a12 = 8; + return -1; + } else if((((a4==1)&&(!(a0==1)&&((a27==1)&&((((a20==1)&&((input==5)&&(((((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4))))||(((a3==4)&&((a22==1)&&!(a18==1)))&&!(a6==1)))))&&(a15==1))&&(a5==1)))))&&(a12==11))){ + a4 = 0; + a0 = 1; + a12 = 10; + a22 = 1; + a27 = 0; + a3 = 6; + a6 = 1; + a18 = 0; + return 21; + } else if(((!(a27==1)&&(((!(a0==1)&&((a15==1)&&((a18==1)&&(!(a6==1)&&((a20==1)&&(((a22==1)&&(input==1))&&(a12==10)))))))&&!(a5==1))&&(a3==8)))&&!(a4==1))){ + if((a15==1)){ + a12 = 8; + a6 = 1; + a3 = 4; + a5 = 1; + a27 = 1; + a0 = 1; + a18 = 0; + a22 = 0; + }else{ + a5 = 1; + a3 = 5; + a0 = 1; + a6 = 1; + a18 = 0; + } + return 24; + } else if((((!(a6==1)&&((((a22==1)&&(!(a18==1)&&((!(a27==1)&&(((input==6)&&(a5==1))&&(a20==1)))&&(a12==9))))&&!(a0==1))&&(a4==1)))&&(a3==4))&&(a15==1))){ + a27 = 1; + a18 = 1; + a15 = 0; + a12 = 11; + a3 = 5; + return 24; + } else if((((a12==9)&&((((a4==1)&&((a3==6)&&(!(a5==1)&&(!(a6==1)&&((a0==1)&&((input==3)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))))))&&(a15==1))&&!(a27==1)))&&(a20==1))){ + a18 = 0; + a22 = 0; + a3 = 4; + return -1; + } else if(((!(a4==1)&&((((((a27==1)&&(((((a3==7)&&((a22==1)&&!(a18==1)))||(((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a18==1)&&(a22==1)))))&&(input==6))&&!(a15==1)))&&(a20==1))&&(a5==1))&&!(a0==1))&&!(a6==1)))&&(a12==12))){ + a15 = 1; + a3 = 7; + a0 = 1; + a22 = 0; + a18 = 1; + a4 = 1; + a12 = 8; + return -1; + } else if((!(a0==1)&&(((a27==1)&&((((!(a6==1)&&((((a12==11)&&((a22==1)&&(input==1)))&&(a15==1))&&(a3==5)))&&!(a4==1))&&(a18==1))&&(a20==1)))&&!(a5==1)))){ + a6 = 1; + a0 = 1; + a4 = 1; + a3 = 4; + a5 = 1; + a12 = 8; + return -1; + } else if((((a27==1)&&((a12==12)&&((a15==1)&&(!(a5==1)&&((((a3==5)&&((a20==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5))))&&(a0==1))&&(a4==1))))))&&(a6==1))){ + a3 = 8; + a15 = 0; + a4 = 0; + a22 = 1; + a18 = 1; + a27 = 0; + a5 = 1; + a6 = 0; + return 21; + } else if(((a20==1)&&(!(a5==1)&&((a27==1)&&(((a4==1)&&((a15==1)&&((a0==1)&&((((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a6==1))&&(a12==12)))))&&(a3==5)))))){ + a18 = 1; + a6 = 0; + a15 = 0; + a3 = 4; + a22 = 0; + a12 = 10; + return -1; + } else if(((((((!(a5==1)&&((a20==1)&&(((a12==12)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==1)))&&(a15==1))))&&(a27==1))&&!(a0==1))&&!(a6==1))&&!(a4==1))&&(a3==6))){ + if((a27==1)){ + a6 = 1; + a5 = 1; + a3 = 7; + a12 = 8; + a22 = 0; + a18 = 1; + a0 = 1; + }else{ + a0 = 1; + a6 = 1; + a5 = 1; + a3 = 7; + a12 = 8; + a18 = 0; + a22 = 1; + a4 = 1; + } + return 21; + } else if((((((((!(a15==1)&&(!(a6==1)&&((a20==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a4==1)))))&&!(a22==1))&&!(a5==1))&&(a3==5))&&(a12==10))&&(a27==1))&&(a0==1))){ + a15 = 1; + a5 = 1; + a18 = 0; + a0 = 0; + a4 = 0; + a3 = 7; + return 21; + } else if(((a3==5)&&((a18==1)&&((((a20==1)&&((a5==1)&&((a6==1)&&(!(a15==1)&&((((input==5)&&!(a27==1))&&!(a4==1))&&!(a0==1))))))&&(a12==8))&&!(a22==1))))){ + if((a12==11)){ + a6 = 0; + a12 = 9; + a27 = 1; + a3 = 7; + a4 = 1; + a0 = 1; + }else{ + a15 = 1; + a3 = 8; + a0 = 1; + a18 = 0; + a4 = 1; + a27 = 1; + } + return 26; + } else if((((a15==1)&&((a20==1)&&(((a0==1)&&((((a27==1)&&((a3==5)&&((input==2)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&!(a4==1))&&!(a5==1)))&&(a6==1))))&&(a12==12))){ + a18 = 1; + a15 = 0; + a22 = 1; + a12 = 10; + a4 = 1; + return 26; + } else if(((a6==1)&&((a5==1)&&((a0==1)&&((a12==12)&&((a27==1)&&((((((((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==5))&&(a20==1))&&(a4==1))&&!(a15==1)))))))){ + a4 = 0; + a22 = 0; + a15 = 1; + a6 = 0; + a18 = 0; + a3 = 6; + return 21; + } else if((((a20==1)&&(!(a5==1)&&(((a0==1)&&(!(a15==1)&&((a12==12)&&(((((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==6))&&(a6==1)))))&&(a4==1))))&&!(a27==1))){ + a27 = 1; + a15 = 1; + a3 = 6; + a12 = 10; + a18 = 1; + a22 = 1; + a6 = 0; + return -1; + } else if((!(a27==1)&&((a12==8)&&((((((a20==1)&&((((a5==1)&&((input==4)&&((a18==1)||!(a18==1))))&&(a0==1))&&!(a4==1)))&&(a3==4))&&!(a22==1))&&(a6==1))&&(a15==1))))){ + a22 = 1; + a15 = 0; + a12 = 10; + a18 = 0; + a4 = 1; + a27 = 1; + a3 = 7; + return 24; + } else if(((a5==1)&&(((((a0==1)&&((((!(a15==1)&&((a4==1)&&((input==2)&&(a27==1))))&&(a20==1))&&!(a18==1))&&!(a22==1)))&&!(a6==1))&&(a3==5))&&(a12==8)))){ + a18 = 1; + a5 = 0; + return 21; + } else if((((a22==1)&&(!(a27==1)&&((a20==1)&&((((a15==1)&&(((((input==3)&&((a18==1)||!(a18==1)))&&(a12==9))&&(a6==1))&&!(a0==1)))&&(a3==7))&&!(a4==1)))))&&!(a5==1))){ + if((a22==1)){ + a27 = 1; + a0 = 1; + a22 = 0; + a5 = 1; + a12 = 8; + a18 = 0; + a3 = 6; + }else{ + a4 = 1; + a22 = 0; + a18 = 1; + a12 = 8; + a27 = 1; + a0 = 1; + a5 = 1; + a6 = 0; + } + return 21; + } else if((((a12==10)&&(!(a0==1)&&(!(a15==1)&&(!(a4==1)&&(!(a6==1)&&(((a5==1)&&((input==4)&&(((a3==6)&&((a22==1)&&!(a18==1)))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6))))))&&(a27==1)))))))&&(a20==1))){ + if((a4==1)){ + a18 = 0; + a22 = 1; + a12 = 11; + a3 = 4; + a6 = 1; + a5 = 0; + a4 = 1; + }else{ + a5 = 0; + a0 = 1; + a22 = 1; + a12 = 11; + a18 = 1; + a3 = 6; + } + return 26; + } else if(((a22==1)&&((a12==9)&&((a4==1)&&(!(a0==1)&&(!(a15==1)&&(!(a5==1)&&(((a27==1)&&(((((a18==1)||!(a18==1))&&(input==3))&&(a20==1))&&(a3==7)))&&!(a6==1))))))))){ + a0 = 1; + a5 = 1; + a15 = 1; + a6 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + return -1; + } else if(((a0==1)&&(((a15==1)&&(!(a22==1)&&((a20==1)&&(((a12==8)&&((((a3==8)&&(!(a5==1)&&(input==4)))&&(a6==1))&&!(a4==1)))&&(a27==1)))))&&!(a18==1)))){ + a3 = 4; + a18 = 1; + a5 = 1; + a4 = 1; + a22 = 1; + return -1; + } else if(((!(a15==1)&&((!(a0==1)&&((a20==1)&&(((!(a4==1)&&(!(a22==1)&&((a3==4)&&(((a18==1)||!(a18==1))&&(input==1)))))&&(a6==1))&&!(a5==1))))&&(a12==10)))&&!(a27==1))){ + if((a18==1)){ + a0 = 1; + a5 = 1; + a27 = 1; + a12 = 8; + a18 = 1; + a15 = 1; + }else{ + a5 = 1; + a27 = 1; + a3 = 6; + a12 = 9; + a0 = 1; + a18 = 0; + } + return 24; + } else if(((((a15==1)&&(!(a18==1)&&((a3==8)&&(((a27==1)&&(((!(a6==1)&&((input==5)&&(a20==1)))&&!(a22==1))&&!(a0==1)))&&(a12==12)))))&&!(a5==1))&&!(a4==1))){ + a15 = 0; + a4 = 1; + a5 = 1; + a0 = 1; + a6 = 1; + a12 = 10; + a3 = 6; + return 21; + } else if((!(a0==1)&&(((a3==7)&&(!(a5==1)&&((a27==1)&&(((!(a15==1)&&(!(a6==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2))))&&(a4==1))&&(a12==12)))))&&(a20==1)))){ + a12 = 8; + a15 = 1; + a22 = 1; + a3 = 6; + a6 = 1; + a0 = 1; + a5 = 1; + a18 = 1; + return 21; + } else if(((a3==6)&&(((a5==1)&&(((a20==1)&&((a12==11)&&((!(a4==1)&&((a27==1)&&((input==5)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))))&&!(a6==1))))&&!(a15==1)))&&!(a0==1)))){ + a0 = 1; + a18 = 1; + a22 = 0; + a12 = 10; + a4 = 1; + return -1; + } else if(((a22==1)&&((a12==11)&&((a6==1)&&((a0==1)&&(!(a15==1)&&(((a20==1)&&((a3==5)&&(!(a27==1)&&((a4==1)&&(((a18==1)||!(a18==1))&&(input==4))))))&&(a5==1)))))))){ + a15 = 1; + a12 = 8; + a27 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((!(a5==1)&&((a0==1)&&((a3==7)&&((((a27==1)&&((a15==1)&&(((a6==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&!(a4==1)))&&(a12==12))))&&!(a22==1))&&(a20==1)))))){ + a27 = 0; + a12 = 10; + a4 = 1; + a18 = 1; + a5 = 1; + a3 = 5; + return 26; + } else if(((a12==8)&&(!(a27==1)&&((!(a5==1)&&(((((a20==1)&&((((((a18==1)&&!(a22==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7)))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==4)))&&(a0==1))&&!(a4==1))&&!(a15==1)))&&(a6==1))))){ + if((a3==8)){ + a3 = 8; + a0 = 0; + a27 = 1; + a18 = 0; + a22 = 1; + }else{ + a3 = 6; + a18 = 1; + a27 = 1; + a22 = 1; + a5 = 1; + a0 = 0; + a12 = 10; + } + return 21; + } else if(((((a20==1)&&((a0==1)&&(!(a27==1)&&(((a5==1)&&((a12==9)&&((input==4)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7))))))&&(a15==1)))))&&!(a4==1))&&(a6==1))){ + a3 = 4; + a18 = 0; + a22 = 1; + a12 = 11; + a27 = 1; + a5 = 0; + return 21; + } else if(((a5==1)&&((!(a15==1)&&(((((a12==10)&&((a3==5)&&((a27==1)&&((input==5)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))))))&&(a6==1))&&!(a4==1))&&(a20==1)))&&!(a0==1)))){ + a12 = 8; + a3 = 4; + a18 = 1; + a22 = 1; + a4 = 1; + a0 = 1; + a15 = 1; + return -1; + } else if(((((a5==1)&&((a0==1)&&(((a20==1)&&((((input==4)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))||((a3==5)&&(!(a18==1)&&(a22==1)))))&&!(a27==1))&&(a15==1)))&&!(a6==1))))&&(a12==10))&&!(a4==1))){ + a27 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + a6 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if(((a12==10)&&(!(a4==1)&&((a6==1)&&((a20==1)&&(((a5==1)&&((((input==3)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))||((a3==8)&&(!(a18==1)&&(a22==1)))))&&(a15==1))&&(a27==1)))&&(a0==1))))))){ + if((a0==1)){ + a18 = 0; + a3 = 8; + a0 = 0; + a22 = 1; + a5 = 0; + a12 = 9; + a6 = 0; + }else{ + a22 = 1; + a15 = 0; + a6 = 0; + a3 = 7; + a12 = 11; + a18 = 0; + } + return 24; + } else if(((a27==1)&&((a12==8)&&((!(a15==1)&&((((a5==1)&&(((input==2)&&((((a22==1)&&!(a18==1))&&(a3==6))||(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))))&&(a0==1)))&&(a6==1))&&!(a4==1)))&&(a20==1))))){ + a12 = 9; + a6 = 0; + a3 = 5; + a22 = 1; + a18 = 0; + a15 = 1; + return 21; + } else if((((((a3==8)&&(!(a4==1)&&((a27==1)&&((a5==1)&&((a6==1)&&(((a15==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a12==9)))))))&&!(a0==1))&&(a20==1))&&!(a22==1))){ + a12 = 8; + a3 = 6; + a6 = 0; + a22 = 1; + a18 = 1; + a0 = 1; + return 21; + } else if((((!(a27==1)&&((a0==1)&&(((a12==8)&&(!(a15==1)&&((a4==1)&&(((a3==6)&&((a5==1)&&(input==1)))&&(a6==1)))))&&(a20==1))))&&!(a18==1))&&(a22==1))){ + if((a20==1)){ + a12 = 12; + a15 = 1; + a4 = 0; + a0 = 0; + a22 = 0; + a27 = 1; + a6 = 0; + a3 = 8; + }else{ + a12 = 10; + a27 = 1; + a4 = 0; + a15 = 1; + a18 = 1; + a6 = 0; + a3 = 7; + } + return 21; + } else if((((!(a6==1)&&(((a0==1)&&((a12==8)&&(((!(a4==1)&&((a27==1)&&(!(a15==1)&&(input==2))))&&(a22==1))&&(a20==1))))&&(a3==4)))&&(a5==1))&&(a18==1))){ + a4 = 1; + a15 = 1; + a6 = 1; + return -1; + } else if(((a3==7)&&(((a6==1)&&((!(a27==1)&&((!(a4==1)&&(((a0==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5)))&&(a20==1)))&&!(a5==1)))&&(a12==9)))&&(a15==1)))){ + a18 = 1; + a22 = 1; + a3 = 4; + a15 = 0; + return 24; + } else if(((a5==1)&&((a27==1)&&(!(a4==1)&&(!(a0==1)&&((a20==1)&&((a15==1)&&(((((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1)))||(!(a6==1)&&((a3==4)&&(!(a18==1)&&(a22==1)))))&&(input==3))&&(a12==8))))))))){ + if((a22==1)){ + a5 = 0; + a15 = 0; + a22 = 0; + a12 = 9; + a6 = 0; + a3 = 5; + a18 = 1; + }else{ + a18 = 0; + a12 = 11; + a22 = 1; + a0 = 1; + a3 = 8; + a4 = 1; + a6 = 0; + } + return 21; + } else if((!(a15==1)&&((a27==1)&&(((((!(a4==1)&&((a12==11)&&((input==1)&&((((a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))))))&&!(a0==1))&&!(a5==1))&&!(a6==1))&&(a20==1))))){ + a6 = 1; + a15 = 1; + a0 = 1; + a4 = 1; + a22 = 0; + a3 = 6; + a18 = 0; + a12 = 9; + return 26; + } else if(((a6==1)&&(!(a4==1)&&((a15==1)&&((a0==1)&&((!(a5==1)&&((a20==1)&&(((input==5)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==8))))&&!(a27==1))))&&(a12==12))))))){ + a22 = 1; + a3 = 7; + a4 = 1; + a12 = 11; + a27 = 1; + a18 = 0; + return 21; + } else if((!(a6==1)&&(((((!(a5==1)&&(!(a22==1)&&((a20==1)&&((((input==6)&&!(a0==1))&&(a27==1))&&(a3==8)))))&&!(a18==1))&&(a12==8))&&(a4==1))&&(a15==1)))){ + a0 = 1; + a3 = 4; + a15 = 0; + a12 = 11; + a22 = 1; + a27 = 0; + return 26; + } else if(((a20==1)&&((((((((a12==12)&&((((a27==1)&&(input==2))&&!(a18==1))&&!(a5==1)))&&!(a0==1))&&(a22==1))&&(a4==1))&&(a6==1))&&(a3==6))&&(a15==1)))){ + if((a22==1)){ + a12 = 8; + a4 = 0; + a5 = 1; + a3 = 8; + a22 = 0; + a18 = 1; + a0 = 1; + }else{ + a6 = 0; + a5 = 1; + a22 = 0; + a3 = 5; + a0 = 1; + a12 = 8; + } + return 24; + } else if(((a22==1)&&((((a3==5)&&(((a6==1)&&((a20==1)&&((a27==1)&&((a12==9)&&((((a18==1)||!(a18==1))&&(input==3))&&!(a15==1))))))&&(a0==1)))&&!(a5==1))&&(a4==1)))){ + a15 = 1; + a18 = 1; + a5 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((((a15==1)&&(((a12==9)&&((!(a18==1)&&((!(a6==1)&&(!(a0==1)&&((a3==7)&&((a22==1)&&(input==2)))))&&!(a5==1)))&&(a20==1)))&&(a27==1)))&&(a4==1))){ + a0 = 1; + a5 = 1; + a3 = 6; + a12 = 11; + return -1; + } else if((((a5==1)&&((((a27==1)&&(((((a20==1)&&((input==5)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))&&(a4==1))&&!(a0==1))&&(a12==11)))&&(a6==1))&&(a15==1)))&&(a3==6))){ + a0 = 1; + a18 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((!(a22==1)&&((a3==4)&&(((((a0==1)&&((a6==1)&&(!(a15==1)&&((!(a4==1)&&((input==6)&&(a12==11)))&&(a20==1)))))&&(a18==1))&&(a27==1))&&!(a5==1))))){ + a27 = 0; + a6 = 0; + a12 = 12; + a22 = 1; + a3 = 7; + return -1; + } else if((!(a22==1)&&((((((a20==1)&&(((!(a27==1)&&(!(a5==1)&&(!(a18==1)&&(input==6))))&&(a6==1))&&(a4==1)))&&(a0==1))&&(a3==7))&&(a12==8))&&!(a15==1)))){ + if((a3==5)){ + a0 = 0; + a12 = 11; + a22 = 1; + a15 = 1; + a4 = 0; + a27 = 1; + a3 = 5; + }else{ + a5 = 1; + a4 = 0; + a6 = 0; + a27 = 1; + a3 = 5; + a12 = 10; + } + return -1; + } else if((((a4==1)&&((a15==1)&&(((a20==1)&&((((((((a22==1)&&(a18==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==6))))&&(input==4))&&(a27==1))&&(a6==1))&&!(a5==1)))&&(a0==1))))&&(a12==9))){ + a22 = 1; + a18 = 1; + a3 = 4; + a5 = 1; + a12 = 8; + return -1; + } else if(((((a20==1)&&((a27==1)&&((((((a22==1)&&((a12==12)&&(((a18==1)||!(a18==1))&&(input==6))))&&(a3==8))&&(a5==1))&&!(a6==1))&&!(a4==1))))&&(a15==1))&&!(a0==1))){ + a22 = 0; + a18 = 0; + a15 = 0; + a4 = 1; + a0 = 1; + a3 = 6; + return 24; + } else if((((((((!(a5==1)&&((((input==6)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a15==1))&&(a6==1)))&&(a3==6))&&!(a27==1))&&(a0==1))&&(a12==11))&&(a4==1))&&(a20==1))){ + a3 = 8; + a18 = 0; + a22 = 0; + a6 = 0; + a0 = 0; + a27 = 1; + return -1; + } else if((((a3==6)&&(!(a6==1)&&(((a20==1)&&(!(a5==1)&&(!(a15==1)&&((a12==9)&&((a4==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==1)))))))&&!(a0==1))))&&!(a27==1))){ + a18 = 1; + a3 = 7; + a15 = 1; + a6 = 1; + a22 = 1; + a12 = 10; + return -1; + } else if((((a6==1)&&(((((((a20==1)&&((a5==1)&&((a27==1)&&((input==1)&&((a18==1)||!(a18==1))))))&&(a12==11))&&(a0==1))&&!(a15==1))&&!(a22==1))&&!(a4==1)))&&(a3==6))){ + a27 = 0; + a15 = 1; + a18 = 1; + return 26; + } else if((((((a27==1)&&(!(a0==1)&&(((a3==8)&&(!(a22==1)&&((a4==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&!(a6==1)))))&&!(a5==1))))&&!(a15==1))&&(a20==1))&&(a12==12))){ + a15 = 1; + a0 = 1; + a12 = 8; + a5 = 1; + a18 = 1; + return 26; + } else if((!(a5==1)&&(((a12==8)&&(!(a6==1)&&(!(a27==1)&&((((a4==1)&&((a3==8)&&((a20==1)&&(((a18==1)||!(a18==1))&&(input==6)))))&&!(a15==1))&&(a0==1)))))&&!(a22==1)))){ + a15 = 1; + a18 = 1; + a22 = 1; + a5 = 1; + a27 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if((((a12==11)&&(!(a15==1)&&(((!(a0==1)&&((a5==1)&&(!(a6==1)&&((a20==1)&&((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))))&&(a27==1))&&(a3==5))))&&!(a4==1))){ + a18 = 0; + a22 = 1; + a6 = 1; + a0 = 1; + a3 = 4; + a12 = 9; + return 24; + } else if((!(a6==1)&&(!(a5==1)&&((!(a27==1)&&((a20==1)&&((a4==1)&&((a12==9)&&(((((a3==6)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5))))&&(input==4))&&!(a15==1))))))&&!(a0==1))))){ + a22 = 1; + a15 = 1; + a3 = 6; + a18 = 1; + a0 = 1; + a6 = 1; + return -1; + } else if((((!(a6==1)&&((a3==6)&&(!(a0==1)&&((a20==1)&&((a12==10)&&((a27==1)&&(((input==4)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&!(a5==1))))))))&&!(a4==1))&&!(a15==1))){ + a18 = 0; + a15 = 1; + a5 = 1; + a22 = 1; + a3 = 7; + a0 = 1; + a4 = 1; + a12 = 12; + return -1; + } else if(((a27==1)&&(((!(a6==1)&&(((a12==8)&&(!(a4==1)&&((a15==1)&&((input==4)&&((((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==7)))))))&&!(a5==1)))&&!(a0==1))&&(a20==1)))){ + a22 = 0; + a0 = 1; + a4 = 1; + a18 = 0; + a15 = 0; + a12 = 11; + a3 = 4; + return -1; + } else if((((((a27==1)&&(!(a5==1)&&((!(a6==1)&&(!(a0==1)&&((a12==9)&&((a22==1)&&((input==1)&&((a18==1)||!(a18==1)))))))&&!(a15==1))))&&!(a4==1))&&(a20==1))&&(a3==4))){ + if((a0==1)){ + a18 = 1; + }else{ + a22 = 0; + a5 = 1; + a3 = 5; + a0 = 1; + a18 = 0; + a12 = 12; + } + return 21; + } else if(((a0==1)&&(((a12==10)&&(((!(a4==1)&&((((((a6==1)&&((!(a22==1)&&(a18==1))&&(a3==8)))||(((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1)))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1)))&&(input==2))&&!(a5==1)))&&(a27==1))&&(a20==1)))&&!(a15==1)))){ + a22 = 1; + a15 = 1; + a0 = 0; + a6 = 1; + a4 = 1; + a18 = 1; + a3 = 4; + a12 = 11; + return -1; + } else if(((!(a6==1)&&((((a27==1)&&((a20==1)&&(((((input==2)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&(a0==1))&&(a3==4))&&(a12==11))))&&(a5==1))&&(a4==1)))&&!(a15==1))){ + a18 = 0; + a22 = 0; + a3 = 6; + a15 = 1; + a12 = 10; + return 21; + } else if((((a5==1)&&((((a27==1)&&(!(a6==1)&&(((((a20==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a12==9))&&!(a4==1))&&!(a22==1))))&&!(a0==1))&&(a15==1)))&&(a3==7))){ + a3 = 4; + a5 = 0; + a4 = 1; + a18 = 1; + a12 = 10; + return -1; + } else if(((!(a27==1)&&((((((a12==11)&&(((!(a22==1)&&((a3==4)&&(input==2)))&&!(a18==1))&&(a20==1)))&&!(a15==1))&&(a4==1))&&(a5==1))&&!(a0==1)))&&!(a6==1))){ + a12 = 8; + a15 = 1; + a22 = 1; + a6 = 1; + a0 = 1; + a3 = 8; + a27 = 1; + return 24; + } else if(((a5==1)&&((!(a4==1)&&((a6==1)&&((a12==12)&&(((a0==1)&&((a3==7)&&(((a20==1)&&((input==2)&&(a27==1)))&&!(a15==1))))&&!(a18==1)))))&&!(a22==1)))){ + a12 = 11; + a3 = 4; + a6 = 0; + a5 = 0; + a22 = 1; + a4 = 1; + return -1; + } else if(((((a27==1)&&(((((input==1)&&((!(a6==1)&&((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1))))||(((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1))))&&(a6==1))))&&(a5==1))&&(a20==1))&&!(a0==1)))&&(a12==12))&&(a15==1))){ + a27 = 0; + a3 = 4; + a12 = 11; + a6 = 0; + a4 = 1; + a0 = 1; + a22 = 0; + a5 = 0; + a18 = 0; + return 26; + } else if(((a5==1)&&((a0==1)&&((a6==1)&&((a20==1)&&((a4==1)&&(((!(a27==1)&&((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==4))&&(a3==7)))&&!(a15==1))&&(a12==8)))))))){ + a12 = 11; + a4 = 0; + a3 = 8; + a27 = 1; + a22 = 1; + a18 = 0; + return 26; + } else if(((((a20==1)&&((a12==8)&&((((((input==6)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a18==1)&&(a22==1)))))&&(a6==1))&&(a27==1))&&!(a4==1))&&(a15==1))))&&!(a5==1))&&(a0==1))){ + a18 = 0; + a3 = 8; + a5 = 1; + a22 = 0; + a12 = 10; + return 26; + } else if((!(a6==1)&&(!(a5==1)&&((((a12==11)&&((a3==6)&&(((a0==1)&&(!(a4==1)&&(!(a18==1)&&((input==1)&&(a20==1)))))&&!(a15==1))))&&(a22==1))&&!(a27==1))))){ + a4 = 1; + a6 = 1; + a18 = 1; + a12 = 10; + a5 = 1; + a22 = 0; + a15 = 1; + return -1; + } else if(((!(a5==1)&&((a22==1)&&(!(a6==1)&&(!(a0==1)&&((((a20==1)&&((a12==12)&&((((a18==1)||!(a18==1))&&(input==4))&&!(a4==1))))&&(a27==1))&&!(a15==1))))))&&(a3==4))){ + a18 = 1; + a12 = 9; + a15 = 1; + a27 = 0; + a0 = 1; + a6 = 1; + a3 = 8; + return -1; + } else if((!(a0==1)&&((a15==1)&&((a27==1)&&(((a12==12)&&((a20==1)&&(((!(a6==1)&&((a3==8)&&((a4==1)&&(!(a22==1)&&!(a18==1)))))||((a6==1)&&((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1))))))&&(input==3))))&&!(a5==1)))))){ + a4 = 1; + a22 = 1; + a12 = 8; + a6 = 1; + a18 = 0; + a5 = 1; + a3 = 7; + a0 = 1; + return -1; + } else if(((((a4==1)&&((a20==1)&&(!(a0==1)&&(((((input==2)&&(((a3==7)&&((a22==1)&&(a18==1)))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))))&&!(a15==1))&&(a6==1))&&(a5==1)))))&&(a12==9))&&(a27==1))){ + a12 = 10; + a6 = 0; + a22 = 0; + a4 = 0; + a0 = 1; + a3 = 5; + a18 = 0; + return 21; + } else if(((a0==1)&&(((a15==1)&&(((a20==1)&&((a12==11)&&((a3==6)&&(((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==1))&&(a27==1))&&!(a5==1)))))&&!(a4==1)))&&!(a6==1)))){ + a18 = 0; + a22 = 0; + a12 = 10; + a15 = 0; + a4 = 1; + a3 = 5; + return -1; + } else if((!(a27==1)&&(!(a5==1)&&((a12==11)&&((!(a6==1)&&(!(a0==1)&&((((input==6)&&(((a3==7)&&(!(a18==1)&&(a22==1)))||(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1))))))&&(a20==1))&&!(a15==1))))&&!(a4==1)))))){ + if((a15==1)){ + a0 = 1; + a15 = 1; + a6 = 1; + a18 = 1; + a22 = 1; + a3 = 5; + a5 = 1; + a27 = 1; + }else{ + a18 = 1; + a5 = 1; + a12 = 10; + a22 = 1; + a6 = 1; + a3 = 4; + } + return 21; + } else if(((a22==1)&&((((a20==1)&&((((((((input==3)&&((a18==1)||!(a18==1)))&&(a15==1))&&(a12==12))&&(a6==1))&&(a5==1))&&!(a0==1))&&!(a4==1)))&&(a27==1))&&(a3==7)))){ + a12 = 8; + a0 = 1; + a27 = 0; + a18 = 1; + a15 = 0; + return 26; + } else if(((((((!(a5==1)&&((((a0==1)&&(!(a27==1)&&((input==3)&&(a18==1))))&&(a20==1))&&(a3==6)))&&(a4==1))&&(a6==1))&&(a12==8))&&(a22==1))&&(a15==1))){ + a6 = 0; + a5 = 1; + a3 = 5; + a22 = 0; + return 26; + } else if(((a3==4)&&((a27==1)&&(!(a15==1)&&(!(a0==1)&&(!(a4==1)&&((((a5==1)&&((a12==11)&&((input==3)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))))&&!(a6==1))&&(a20==1)))))))){ + a0 = 1; + a3 = 8; + a12 = 9; + a22 = 0; + a15 = 1; + a4 = 1; + a18 = 1; + a27 = 0; + a6 = 1; + a5 = 0; + return 21; + } else if((((a12==10)&&(!(a0==1)&&((((((a5==1)&&((input==6)&&(((a3==6)&&((a18==1)&&(a22==1)))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a18==1)&&!(a22==1)))))))&&!(a27==1))&&!(a6==1))&&(a15==1))&&(a20==1))))&&(a4==1))){ + a18 = 1; + a0 = 1; + a3 = 8; + a27 = 1; + a6 = 1; + a22 = 0; + a12 = 8; + return 26; + } else if(((!(a27==1)&&(!(a6==1)&&(!(a5==1)&&(((a4==1)&&(((((((a22==1)&&(a18==1))&&(a3==5))||(((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a18==1)&&!(a22==1)))))&&(input==1))&&(a12==8))&&(a20==1)))&&!(a15==1)))))&&!(a0==1))){ + a15 = 1; + a22 = 1; + a4 = 0; + a27 = 1; + a3 = 5; + a18 = 1; + return -1; + } else if(((a6==1)&&((a3==5)&&((a0==1)&&((((a27==1)&&((!(a5==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==3))&&(a12==11)))&&(a15==1)))&&(a20==1))&&(a4==1)))))){ + a22 = 1; + a5 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((!(a27==1)&&((a0==1)&&(((((a6==1)&&(!(a5==1)&&(((((a18==1)||!(a18==1))&&(input==1))&&(a3==6))&&!(a15==1))))&&(a20==1))&&(a12==11))&&!(a4==1))))&&!(a22==1))){ + a5 = 1; + a15 = 1; + a12 = 8; + a22 = 1; + a18 = 0; + a3 = 7; + a6 = 0; + return -1; + } else if(((a0==1)&&((a27==1)&&((a20==1)&&((input==5)&&(((((a3==8)&&(!(a4==1)&&((a12==9)&&((!(a5==1)&&(!(a22==1)&&(a18==1)))&&!(a15==1)))))&&!(a6==1))||(!(a6==1)&&((!(a4==1)&&((a12==9)&&(!(a15==1)&&((!(a18==1)&&!(a22==1))&&!(a5==1)))))&&(a3==8))))||(((((((a5==1)&&((a18==1)&&(a22==1)))&&(a15==1))&&(a12==10))&&(a4==1))&&(a3==4))&&(a6==1)))))))){ + a5 = 1; + a15 = 1; + a6 = 0; + a12 = 10; + a22 = 0; + a4 = 1; + a3 = 5; + a18 = 1; + return 21; + } else if((((((a20==1)&&((a3==8)&&((!(a6==1)&&((!(a0==1)&&((input==3)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))&&!(a4==1)))&&!(a5==1))))&&(a15==1))&&(a12==9))&&!(a27==1))){ + if((a18==1)){ + a22 = 1; + a6 = 1; + a0 = 1; + a27 = 1; + a18 = 1; + a5 = 1; + a3 = 6; + a4 = 1; + a12 = 8; + }else{ + a18 = 0; + a3 = 7; + a5 = 1; + a27 = 1; + a12 = 8; + a22 = 0; + a0 = 1; + a6 = 1; + a4 = 1; + } + return -1; + } else if((!(a5==1)&&((a15==1)&&((a0==1)&&(!(a6==1)&&((a20==1)&&(((a4==1)&&((a12==12)&&((a3==5)&&((input==5)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))))&&!(a27==1)))))))){ + a12 = 10; + a6 = 1; + a22 = 1; + a5 = 1; + a3 = 6; + a15 = 0; + a27 = 1; + a18 = 1; + return 21; + } else if(((a3==4)&&((!(a27==1)&&(((a15==1)&&(((a6==1)&&((a12==8)&&((!(a0==1)&&((input==3)&&(a20==1)))&&(a5==1))))&&(a22==1)))&&(a18==1)))&&(a4==1)))){ + a18 = 0; + a15 = 0; + a3 = 6; + a6 = 0; + return -1; + } else if((((a4==1)&&(!(a0==1)&&((a12==9)&&((a3==7)&&((!(a15==1)&&((a20==1)&&(!(a27==1)&&((input==2)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))))))&&(a5==1))))))&&!(a6==1))){ + if((a18==1)){ + a12 = 10; + a4 = 0; + a22 = 0; + a27 = 1; + a15 = 1; + a18 = 1; + }else{ + a0 = 1; + a12 = 8; + a18 = 0; + a3 = 5; + a22 = 0; + a27 = 1; + a15 = 1; + } + return 21; + } else if((((a20==1)&&((((((a27==1)&&(((a3==8)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a6==1)))&&(a5==1)))&&(a22==1))&&!(a0==1))&&(a4==1))&&!(a15==1)))&&(a12==10))){ + a15 = 1; + a0 = 1; + a3 = 6; + a18 = 0; + a6 = 0; + a12 = 11; + return 21; + } else if(((a27==1)&&((a12==9)&&((!(a0==1)&&((!(a15==1)&&((input==6)&&((((((a22==1)&&(a18==1))&&!(a4==1))&&(a3==4))&&(a6==1))||((((a3==8)&&((a4==1)&&((a18==1)&&!(a22==1))))&&!(a6==1))||(!(a6==1)&&((a3==8)&&((!(a22==1)&&!(a18==1))&&(a4==1))))))))&&(a20==1)))&&!(a5==1))))){ + if((a0==1)){ + a4 = 1; + a22 = 1; + a12 = 11; + a3 = 7; + a18 = 0; + a6 = 1; + }else{ + a5 = 1; + a3 = 4; + a22 = 1; + a6 = 1; + a4 = 1; + a12 = 12; + a18 = 1; + } + return 24; + } else if(((((a4==1)&&(((a3==4)&&((a6==1)&&((!(a0==1)&&((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==1))&&(a27==1)))&&!(a5==1))))&&(a12==10)))&&(a20==1))&&(a15==1))){ + a18 = 1; + a12 = 8; + a0 = 1; + a22 = 1; + a27 = 0; + return 26; + } else if(((a12==12)&&((a27==1)&&((((a3==5)&&(((!(a0==1)&&((!(a6==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a15==1)))&&!(a22==1))&&(a4==1)))&&(a5==1))&&(a20==1))))){ + a22 = 1; + a3 = 8; + a6 = 1; + a0 = 1; + a15 = 0; + a18 = 0; + return 21; + } else if((!(a0==1)&&((a6==1)&&(!(a15==1)&&(!(a5==1)&&((!(a27==1)&&((a3==6)&&(((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==3))&&(a12==8))&&(a20==1))))&&!(a4==1))))))){ + a4 = 1; + a6 = 0; + a0 = 1; + a15 = 1; + a27 = 1; + a22 = 0; + a18 = 0; + a3 = 5; + a5 = 1; + return 26; + } else if(((a3==8)&&((a20==1)&&((a4==1)&&((a12==11)&&(((!(a0==1)&&(((a15==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5)))&&(a5==1)))&&!(a27==1))&&(a6==1))))))){ + a3 = 4; + a27 = 1; + a12 = 8; + a18 = 0; + a0 = 1; + a22 = 0; + return 26; + } else if((!(a6==1)&&(((((a20==1)&&((a3==7)&&(!(a22==1)&&(((a15==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&(a12==11)))&&(a0==1)))))&&!(a27==1))&&(a5==1))&&(a4==1)))){ + a3 = 6; + a27 = 1; + a18 = 0; + a4 = 0; + a12 = 12; + a5 = 0; + return 21; + } else if(((((a27==1)&&((((!(a5==1)&&((((input==3)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&(a4==1))&&!(a6==1)))&&(a20==1))&&!(a0==1))&&(a3==4)))&&(a15==1))&&(a12==8))){ + a0 = 1; + a15 = 0; + a5 = 1; + a22 = 1; + a12 = 10; + a6 = 1; + a18 = 1; + return -1; + } else if(((a6==1)&&((!(a27==1)&&(((((a5==1)&&(((input==2)&&(((a3==8)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7)))))&&(a20==1)))&&!(a0==1))&&(a4==1))&&(a15==1)))&&(a12==11)))){ + if((a12==10)){ + a18 = 1; + a22 = 1; + a0 = 1; + a12 = 8; + a3 = 8; + a5 = 0; + a15 = 0; + a4 = 0; + }else{ + a3 = 5; + a12 = 8; + a22 = 1; + a4 = 0; + a18 = 0; + } + return -1; + } else if(((a20==1)&&(!(a27==1)&&(!(a5==1)&&(!(a15==1)&&((((!(a4==1)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==4))&&(a6==1)))&&!(a0==1))&&(a12==8))&&(a3==4))))))){ + if((a3==7)){ + a0 = 1; + a15 = 1; + a3 = 8; + a27 = 1; + a6 = 0; + a18 = 1; + a5 = 1; + a4 = 1; + a22 = 1; + }else{ + a27 = 1; + a5 = 1; + a0 = 1; + a15 = 1; + a22 = 1; + a18 = 1; + a6 = 0; + a4 = 1; + } + return 24; + } else if((!(a5==1)&&(((((!(a27==1)&&((a4==1)&&(!(a6==1)&&((input==1)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==8)))))))&&(a20==1))&&(a0==1))&&(a12==11))&&(a15==1)))){ + a3 = 8; + a18 = 0; + a27 = 1; + a12 = 12; + a22 = 1; + a15 = 0; + return -1; + } else if(((a20==1)&&((a18==1)&&((!(a5==1)&&((a22==1)&&(((a15==1)&&(((((a27==1)&&(input==5))&&(a4==1))&&(a12==11))&&(a6==1)))&&(a3==4))))&&!(a0==1))))){ + a3 = 5; + a22 = 0; + a0 = 1; + a4 = 0; + a12 = 10; + a18 = 0; + return -1; + } else if(((!(a6==1)&&(!(a22==1)&&((!(a4==1)&&((a12==10)&&((((!(a27==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a20==1))&&!(a15==1))&&!(a0==1))))&&(a5==1))))&&(a3==5))){ + if((a5==1)){ + a6 = 1; + a3 = 4; + a18 = 0; + a12 = 9; + a27 = 1; + a4 = 1; + a0 = 1; + }else{ + a12 = 8; + a0 = 1; + a4 = 1; + a22 = 1; + a18 = 0; + a3 = 7; + a15 = 1; + a27 = 1; + } + return -1; + } else if(((a20==1)&&((a6==1)&&((a12==12)&&(!(a5==1)&&((a4==1)&&((a27==1)&&((a0==1)&&((a22==1)&&((((a3==8)&&(input==2))&&(a15==1))&&(a18==1))))))))))){ + a3 = 6; + a5 = 1; + a12 = 11; + return 21; + } else if((((((!(a5==1)&&(!(a4==1)&&((!(a15==1)&&((a12==8)&&(!(a18==1)&&((input==2)&&(a27==1)))))&&!(a6==1))))&&(a22==1))&&(a20==1))&&(a3==8))&&(a0==1))){ + a12 = 11; + a15 = 1; + a6 = 1; + return 26; + } else if(((a0==1)&&((a27==1)&&((((a6==1)&&(!(a5==1)&&((a20==1)&&(((input==4)&&((((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==7))))&&!(a15==1)))))&&(a12==8))&&(a4==1))))){ + a15 = 1; + a22 = 1; + a18 = 1; + a12 = 12; + a3 = 5; + a0 = 0; + a5 = 1; + return 26; + } else if(((((((a12==10)&&((a22==1)&&((a3==4)&&(((((input==5)&&(a0==1))&&(a6==1))&&(a18==1))&&!(a4==1)))))&&(a5==1))&&!(a27==1))&&(a20==1))&&(a15==1))){ + a27 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if((((a5==1)&&((a20==1)&&(!(a15==1)&&((a4==1)&&((a27==1)&&((a3==6)&&((a0==1)&&((a12==11)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1))))))))))&&!(a6==1))){ + a15 = 1; + a22 = 1; + a27 = 0; + a18 = 0; + a6 = 1; + a3 = 8; + return 24; + } else if((!(a6==1)&&(!(a22==1)&&(((((!(a4==1)&&(((((a3==4)&&(input==6))&&(a27==1))&&(a20==1))&&(a18==1)))&&(a15==1))&&(a12==10))&&!(a5==1))&&(a0==1))))){ + a4 = 1; + a18 = 0; + a22 = 1; + a6 = 1; + a12 = 11; + return 26; + } else if((((((a15==1)&&(((!(a27==1)&&(((((a3==8)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==7))||((a3==7)&&(!(a22==1)&&!(a18==1)))))&&(input==1))&&!(a4==1)))&&(a12==8))&&(a6==1)))&&!(a5==1))&&!(a0==1))&&(a20==1))){ + if((a20==1)){ + a22 = 1; + a27 = 1; + a3 = 8; + a5 = 1; + a18 = 1; + a0 = 1; + }else{ + a5 = 1; + a27 = 1; + a0 = 1; + a22 = 0; + a18 = 1; + a3 = 7; + } + return -1; + } else if(((a4==1)&&((!(a15==1)&&(((a5==1)&&(((((input==4)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1))))||((a3==7)&&((a22==1)&&!(a18==1)))))&&(a20==1))&&(a27==1))&&!(a6==1)))&&(a12==11)))&&(a0==1)))){ + a22 = 1; + a12 = 8; + a3 = 4; + a6 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if(((a27==1)&&(((!(a18==1)&&((!(a6==1)&&(((!(a4==1)&&((a3==4)&&((a20==1)&&(input==4))))&&(a12==10))&&!(a5==1)))&&!(a15==1)))&&(a22==1))&&(a0==1)))){ + a5 = 1; + a18 = 1; + a4 = 1; + a6 = 1; + a3 = 6; + return -1; + } else if((!(a4==1)&&((!(a0==1)&&((a3==7)&&((a6==1)&&(((a20==1)&&((a12==11)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==5))&&!(a15==1))))&&!(a27==1)))))&&(a5==1)))){ + a22 = 1; + a27 = 1; + a3 = 8; + a12 = 8; + a0 = 1; + a15 = 1; + a18 = 0; + return 26; + } else if((((!(a27==1)&&(!(a4==1)&&((((((a20==1)&&(!(a5==1)&&((a12==12)&&(input==6))))&&(a0==1))&&(a3==8))&&(a6==1))&&!(a18==1))))&&!(a15==1))&&(a22==1))){ + a15 = 1; + a3 = 6; + a18 = 1; + a12 = 10; + a27 = 1; + a6 = 0; + return 26; + } else if(((a22==1)&&((a12==12)&&(!(a15==1)&&((!(a27==1)&&(((a0==1)&&(((!(a18==1)&&((a20==1)&&(input==3)))&&!(a5==1))&&!(a4==1)))&&!(a6==1)))&&(a3==4)))))){ + a12 = 8; + a3 = 8; + a27 = 1; + a0 = 0; + a15 = 1; + a4 = 1; + return 26; + } else if(((a20==1)&&(!(a5==1)&&((!(a4==1)&&(!(a6==1)&&(!(a0==1)&&((a15==1)&&(((input==3)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1)))))&&(a27==1))))))&&(a12==12))))){ + a4 = 1; + a6 = 1; + a12 = 8; + a5 = 1; + a0 = 1; + a3 = 5; + a22 = 1; + a18 = 1; + return -1; + } else if(((a0==1)&&((((((a20==1)&&((a12==12)&&((((((a18==1)||!(a18==1))&&(input==5))&&!(a27==1))&&!(a6==1))&&(a22==1))))&&(a3==7))&&!(a4==1))&&!(a15==1))&&!(a5==1)))){ + if((a6==1)){ + a15 = 1; + a27 = 1; + a0 = 0; + a6 = 1; + a5 = 1; + a3 = 8; + a12 = 8; + a18 = 0; + }else{ + a27 = 1; + a12 = 10; + a22 = 0; + a15 = 1; + a18 = 0; + } + return -1; + } else if((((!(a6==1)&&((a12==12)&&((a15==1)&&((a0==1)&&(((((((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==4)))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==4))&&(a4==1))&&(a20==1))))))&&!(a27==1))&&(a5==1))){ + a22 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + a6 = 1; + a27 = 1; + return -1; + } else if((((((a6==1)&&((a27==1)&&(((((!(a18==1)&&((input==3)&&(a20==1)))&&(a15==1))&&!(a4==1))&&(a12==8))&&(a0==1))))&&(a3==5))&&(a22==1))&&!(a5==1))){ + a18 = 1; + a5 = 1; + a6 = 0; + a22 = 0; + a12 = 10; + a3 = 4; + return 24; + } else if(((((((a12==10)&&(!(a6==1)&&((a5==1)&&(!(a27==1)&&((input==6)&&(((a3==8)&&((a22==1)&&(a18==1)))||(((a3==7)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==7)))))))))&&(a20==1))&&!(a0==1))&&!(a15==1))&&!(a4==1))){ + if((a15==1)){ + a22 = 1; + a5 = 0; + a12 = 8; + a6 = 1; + a3 = 5; + a0 = 1; + a4 = 1; + a18 = 0; + }else{ + a15 = 1; + a12 = 8; + a27 = 1; + a3 = 7; + a4 = 1; + a18 = 1; + a22 = 1; + a0 = 1; + a6 = 1; + } + return 26; + } else if(((((a5==1)&&((((a4==1)&&((!(a22==1)&&((a12==10)&&(((input==1)&&(a3==4))&&(a27==1))))&&(a18==1)))&&(a15==1))&&(a20==1)))&&!(a0==1))&&(a6==1))){ + a0 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if((((((!(a6==1)&&((((!(a22==1)&&(!(a27==1)&&((input==6)&&(a0==1))))&&!(a5==1))&&(a15==1))&&(a12==11)))&&(a18==1))&&(a3==5))&&(a20==1))&&(a4==1))){ + a3 = 4; + a6 = 1; + return -1; + } else if((!(a4==1)&&(((((a3==7)&&((((!(a6==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6)))&&(a27==1))&&(a12==9))&&!(a0==1)))&&!(a5==1))&&(a15==1))&&(a20==1)))){ + a12 = 10; + a22 = 0; + a3 = 4; + a18 = 0; + a6 = 1; + a5 = 1; + a0 = 1; + return 24; + } else if(((a20==1)&&((((a4==1)&&(((a0==1)&&((a12==8)&&((input==5)&&((!(a6==1)&&(((a22==1)&&!(a18==1))&&(a3==4)))||(((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1)))))))))&&!(a27==1)))&&!(a5==1))&&!(a15==1)))){ + a18 = 1; + a3 = 4; + a22 = 1; + a5 = 1; + a27 = 1; + a6 = 1; + a15 = 1; + return -1; + } else if((!(a6==1)&&(!(a4==1)&&((((a18==1)&&(((((a12==9)&&(((a0==1)&&(input==5))&&!(a5==1)))&&(a22==1))&&!(a15==1))&&(a20==1)))&&(a3==4))&&(a27==1))))){ + if((a15==1)){ + a15 = 1; + a3 = 6; + a18 = 0; + a12 = 8; + a0 = 0; + }else{ + a3 = 5; + a22 = 0; + a27 = 0; + a5 = 1; + a4 = 1; + a6 = 1; + } + return 26; + } else if(((a27==1)&&((a12==12)&&((((a3==8)&&((((a20==1)&&(((input==4)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&!(a5==1)))&&!(a15==1))&&!(a6==1)))&&(a0==1))&&!(a4==1))))){ + a6 = 1; + a12 = 10; + a18 = 1; + a22 = 1; + a4 = 1; + return -1; + } else if(((a27==1)&&(!(a15==1)&&((a5==1)&&((((((a3==7)&&(((input==5)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a12==8)))&&(a20==1))&&!(a4==1))&&(a6==1))&&!(a0==1)))))){ + a6 = 0; + a4 = 1; + a0 = 1; + a18 = 0; + a22 = 1; + a12 = 11; + a3 = 4; + return 24; + } else if(((a0==1)&&(((a3==7)&&((((a6==1)&&((!(a15==1)&&((a20==1)&&(!(a5==1)&&((input==5)&&!(a27==1)))))&&(a22==1)))&&(a12==12))&&(a4==1)))&&(a18==1)))){ + if((a15==1)){ + a4 = 0; + a0 = 0; + a27 = 1; + a15 = 1; + a12 = 9; + a18 = 0; + a6 = 0; + }else{ + a12 = 11; + a6 = 0; + a5 = 1; + } + return 24; + } else if(((a12==10)&&(((((a4==1)&&(((a15==1)&&((a27==1)&&((a5==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==2)))))&&(a6==1)))&&!(a0==1))&&(a20==1))&&(a3==7)))){ + a3 = 4; + a12 = 11; + a4 = 0; + a18 = 0; + a22 = 1; + a0 = 1; + return 21; + } else if((((a20==1)&&(((((a6==1)&&((a5==1)&&(((((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1))))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==3))&&!(a4==1))))&&(a12==11))&&(a15==1))&&!(a27==1)))&&(a0==1))){ + a12 = 12; + a3 = 8; + a22 = 1; + a6 = 0; + a27 = 1; + a4 = 1; + a18 = 1; + return 21; + } else if((!(a6==1)&&((a4==1)&&((a20==1)&&(!(a5==1)&&((a12==8)&&((a3==8)&&(((a15==1)&&(!(a0==1)&&((input==3)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))))&&(a27==1))))))))){ + a15 = 0; + a18 = 1; + a22 = 1; + a3 = 5; + a0 = 1; + return -1; + } else if((((a20==1)&&((((a6==1)&&((a15==1)&&(!(a5==1)&&(((input==4)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==7))))&&!(a4==1)))))&&(a12==11))&&(a27==1)))&&(a0==1))){ + a22 = 1; + a4 = 1; + a3 = 4; + a5 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if(((a27==1)&&((!(a0==1)&&(((!(a5==1)&&((((((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8))&&!(a6==1))||((a6==1)&&((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1)))))&&(input==6)))&&(a12==12))&&(a15==1)))&&(a20==1)))){ + a18 = 0; + a6 = 0; + a22 = 1; + a4 = 1; + a5 = 1; + a12 = 8; + a3 = 6; + return -1; + } else if((((a20==1)&&(((a3==6)&&((((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==3))&&(a5==1))&&(a27==1))&&(a4==1))&&(a6==1))&&(a15==1)))&&!(a0==1)))&&(a12==12))){ + a3 = 8; + a15 = 0; + a18 = 1; + a0 = 1; + a12 = 11; + a22 = 1; + return 24; + } else if(((a20==1)&&(!(a6==1)&&((a0==1)&&(!(a4==1)&&((a12==11)&&((a15==1)&&(((!(a27==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==5)))&&(a3==7))&&(a5==1))))))))){ + a22 = 1; + a12 = 8; + a27 = 1; + a4 = 1; + a3 = 4; + a6 = 1; + a18 = 1; + return -1; + } else if(((a20==1)&&(!(a15==1)&&((a22==1)&&(((a4==1)&&((a12==11)&&(!(a6==1)&&((a0==1)&&(((!(a27==1)&&(input==6))&&!(a5==1))&&(a3==8))))))&&(a18==1)))))){ + a12 = 8; + a6 = 1; + a15 = 1; + a3 = 4; + a5 = 1; + a27 = 1; + return -1; + } else if((!(a6==1)&&((!(a15==1)&&(((a20==1)&&((a5==1)&&(((((a3==6)&&((input==1)&&!(a22==1)))&&(a12==11))&&!(a0==1))&&!(a18==1))))&&!(a27==1)))&&(a4==1)))){ + if((a22==1)){ + a27 = 1; + a6 = 1; + a3 = 8; + a12 = 8; + a0 = 1; + a15 = 1; + a18 = 1; + }else{ + a0 = 1; + a27 = 1; + a12 = 8; + a22 = 1; + a4 = 0; + a15 = 1; + a3 = 7; + a6 = 1; + } + return 26; + } else if(((a12==11)&&((a3==8)&&((a6==1)&&(((a27==1)&&((((!(a4==1)&&(((a0==1)&&(input==4))&&(a18==1)))&&(a5==1))&&!(a22==1))&&(a20==1)))&&!(a15==1)))))){ + a12 = 9; + a3 = 7; + a6 = 0; + a5 = 0; + return -1; + } else if(((((!(a27==1)&&(!(a5==1)&&(!(a22==1)&&((((((input==5)&&((a18==1)||!(a18==1)))&&!(a6==1))&&!(a15==1))&&(a20==1))&&!(a4==1)))))&&(a3==5))&&(a12==11))&&!(a0==1))){ + a12 = 8; + a27 = 1; + a5 = 1; + a18 = 0; + a6 = 1; + a15 = 1; + a3 = 6; + a4 = 1; + a0 = 1; + a22 = 1; + return 26; + } else if((((a0==1)&&((a20==1)&&((!(a4==1)&&((a12==10)&&(!(a27==1)&&((a3==4)&&((((input==5)&&((a18==1)||!(a18==1)))&&!(a22==1))&&!(a15==1))))))&&(a5==1))))&&(a6==1))){ + a12 = 12; + a6 = 0; + a27 = 1; + a18 = 0; + return -1; + } else if((((a27==1)&&(((a20==1)&&((((a12==12)&&(!(a0==1)&&((a3==8)&&((((a18==1)||!(a18==1))&&(input==1))&&!(a5==1)))))&&!(a22==1))&&!(a4==1)))&&(a6==1)))&&(a15==1))){ + if((a18==1)){ + a4 = 1; + a0 = 1; + a15 = 0; + a27 = 0; + a12 = 9; + a18 = 1; + a5 = 1; + }else{ + a5 = 1; + a18 = 0; + a0 = 1; + a4 = 1; + a3 = 5; + a12 = 8; + } + return -1; + } else if((!(a5==1)&&(!(a4==1)&&(((a20==1)&&((a0==1)&&(((a3==8)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1))&&(a6==1))&&!(a15==1)))&&(a27==1))))&&(a12==9))))){ + a12 = 8; + a18 = 1; + a5 = 1; + a0 = 0; + a3 = 7; + a22 = 1; + return 24; + } else if(((!(a27==1)&&((a0==1)&&((a20==1)&&((!(a22==1)&&((a18==1)&&((((a15==1)&&((a5==1)&&(input==5)))&&!(a4==1))&&(a3==4))))&&(a12==10)))))&&!(a6==1))){ + a22 = 1; + a15 = 0; + a3 = 8; + a27 = 1; + a18 = 0; + return 21; + } else if(((a0==1)&&(((!(a4==1)&&((a27==1)&&((a15==1)&&(((((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1)))))&&(input==4))&&(a5==1)))))&&(a12==11))&&(a20==1)))){ + a6 = 1; + a12 = 8; + a22 = 1; + a4 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((a18==1)&&((((((!(a22==1)&&(!(a5==1)&&(!(a15==1)&&(((input==5)&&(a20==1))&&(a12==9)))))&&(a27==1))&&!(a6==1))&&(a0==1))&&(a3==7))&&!(a4==1)))){ + return 21; + } return calculate_output43(input); + } + + int calculate_output43(int input) { + if(((a20==1)&&((a3==8)&&(((a15==1)&&((((a5==1)&&((a27==1)&&((!(a0==1)&&((input==3)&&(a22==1)))&&!(a6==1))))&&(a12==12))&&(a4==1)))&&(a18==1))))){ + a18 = 0; + a0 = 1; + a12 = 10; + a3 = 7; + return 21; + } else if(((a22==1)&&((a20==1)&&(((((((((a12==10)&&((input==3)&&((a18==1)||!(a18==1))))&&(a5==1))&&(a3==8))&&!(a15==1))&&(a27==1))&&!(a4==1))&&!(a6==1))&&!(a0==1))))){ + a0 = 1; + a4 = 1; + a22 = 0; + a15 = 1; + a12 = 12; + a27 = 0; + a18 = 0; + a3 = 7; + return 24; + } else if(((a4==1)&&(((a27==1)&&((a0==1)&&((a3==5)&&((((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==5))&&!(a6==1))&&(a20==1))&&(a15==1))&&(a12==10)))))&&!(a5==1)))){ + a4 = 0; + a5 = 1; + a22 = 0; + a15 = 0; + a3 = 8; + a18 = 0; + a0 = 0; + return -1; + } else if((((a15==1)&&(!(a22==1)&&((a12==11)&&((((!(a27==1)&&((a20==1)&&(!(a0==1)&&((input==4)&&((a18==1)||!(a18==1))))))&&(a5==1))&&(a3==7))&&!(a6==1)))))&&!(a4==1))){ + a27 = 1; + a0 = 1; + a12 = 8; + a3 = 8; + a18 = 0; + a4 = 1; + return 21; + } else if(((a5==1)&&((a3==4)&&((!(a18==1)&&(((((a12==12)&&(((a6==1)&&((a20==1)&&(input==1)))&&!(a0==1)))&&(a22==1))&&!(a27==1))&&(a4==1)))&&(a15==1))))){ + if((a5==1)){ + a18 = 1; + a4 = 0; + a12 = 8; + a27 = 1; + a0 = 1; + }else{ + a12 = 9; + a3 = 8; + a18 = 1; + a15 = 0; + a5 = 0; + } + return 26; + } else if(((!(a18==1)&&((a15==1)&&((!(a4==1)&&(((a5==1)&&(((((input==3)&&(a0==1))&&(a20==1))&&!(a22==1))&&(a27==1)))&&(a12==11)))&&!(a6==1))))&&(a3==7))){ + a6 = 1; + a3 = 6; + a12 = 10; + return -1; + } else if((!(a5==1)&&((((a12==8)&&(((((a27==1)&&(!(a6==1)&&(((input==3)&&(a4==1))&&!(a18==1))))&&(a3==8))&&(a20==1))&&!(a0==1)))&&!(a22==1))&&(a15==1)))){ + a3 = 4; + a0 = 1; + a18 = 1; + a6 = 1; + a5 = 1; + a22 = 1; + return -1; + } else if((((a20==1)&&((a3==4)&&((a0==1)&&(!(a4==1)&&((((a6==1)&&((((a15==1)&&(input==2))&&(a5==1))&&(a12==9)))&&!(a18==1))&&(a22==1))))))&&!(a27==1))){ + a3 = 5; + a22 = 0; + a18 = 1; + a27 = 1; + a12 = 10; + a15 = 0; + return 26; + } else if((!(a5==1)&&(!(a4==1)&&((a20==1)&&((a15==1)&&(((!(a22==1)&&((((a3==8)&&(((a18==1)||!(a18==1))&&(input==1)))&&!(a0==1))&&(a6==1)))&&!(a27==1))&&(a12==10))))))){ + a5 = 1; + a3 = 6; + a27 = 1; + a12 = 8; + a0 = 1; + a18 = 1; + return 26; + } else if(((a12==12)&&((a5==1)&&((a27==1)&&(!(a4==1)&&(((!(a0==1)&&((((input==3)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a6==1))&&(a3==7)))&&(a20==1))&&!(a15==1))))))){ + a22 = 0; + a12 = 8; + a15 = 1; + a0 = 1; + a3 = 8; + a18 = 1; + a4 = 1; + return 21; + } else if(((a12==12)&&(((!(a4==1)&&((!(a0==1)&&((a15==1)&&((((((!(a22==1)&&(a18==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7)))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==3))&&(a6==1))))&&(a27==1)))&&(a20==1))&&(a5==1)))){ + a3 = 6; + a0 = 1; + a18 = 1; + a12 = 11; + a5 = 0; + a6 = 0; + a22 = 1; + return 26; + } else if(((a12==12)&&(((!(a15==1)&&((a0==1)&&(((a6==1)&&((a3==6)&&(!(a27==1)&&((a20==1)&&((a5==1)&&(input==6))))))&&!(a22==1))))&&(a4==1))&&(a18==1)))){ + a22 = 1; + a12 = 8; + a3 = 4; + a15 = 1; + a27 = 1; + return -1; + } else if(((((a20==1)&&((a5==1)&&((((a3==8)&&((a0==1)&&(((a4==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&!(a15==1))))&&(a12==11))&&!(a27==1))))&&!(a6==1))&&(a22==1))){ + a18 = 1; + a12 = 8; + a27 = 1; + a4 = 0; + a3 = 7; + a22 = 0; + return 26; + } else if(((!(a4==1)&&((((a15==1)&&((a20==1)&&((a12==11)&&(((input==2)&&((((a18==1)&&(a22==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))))&&(a27==1)))))&&!(a0==1))&&(a5==1)))&&!(a6==1))){ + a6 = 1; + a0 = 1; + a4 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if((!(a0==1)&&((((a27==1)&&((a12==12)&&((a20==1)&&((((((a5==1)&&(input==6))&&(a15==1))&&(a3==7))&&!(a22==1))&&!(a6==1)))))&&!(a4==1))&&(a18==1)))){ + a3 = 6; + a12 = 11; + a0 = 1; + a18 = 0; + a5 = 0; + a15 = 0; + return 26; + } else if((!(a22==1)&&((a5==1)&&((((a3==4)&&((a20==1)&&((a6==1)&&((!(a0==1)&&((((a18==1)||!(a18==1))&&(input==5))&&!(a4==1)))&&!(a15==1)))))&&(a12==12))&&(a27==1))))){ + if((a18==1)){ + a6 = 0; + a18 = 1; + a0 = 1; + a3 = 7; + a15 = 1; + a12 = 9; + a27 = 0; + a4 = 1; + a22 = 1; + }else{ + a5 = 0; + a22 = 1; + a3 = 6; + a6 = 0; + a0 = 1; + a18 = 1; + a4 = 1; + } + return -1; + } else if((((((a0==1)&&((((a12==9)&&((a3==8)&&((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==2))&&!(a5==1))))&&(a20==1))&&!(a6==1)))&&!(a4==1))&&(a15==1))&&(a27==1))){ + a27 = 0; + a12 = 12; + a15 = 0; + a22 = 0; + a6 = 1; + a18 = 1; + return 21; + } else if(((a6==1)&&(!(a27==1)&&(!(a5==1)&&((a4==1)&&(!(a0==1)&&((a20==1)&&(((a12==8)&&(((((a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==7))))&&(input==6)))&&(a15==1))))))))){ + a22 = 1; + a0 = 1; + a27 = 1; + a3 = 5; + a18 = 0; + a5 = 1; + return 21; + } else if((!(a15==1)&&(!(a0==1)&&((((a5==1)&&((a20==1)&&(!(a27==1)&&(!(a4==1)&&(((input==4)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&!(a6==1))))))&&(a3==4))&&(a12==11))))){ + a22 = 1; + a18 = 1; + a27 = 1; + a12 = 8; + a3 = 5; + a0 = 1; + a6 = 1; + a15 = 1; + return -1; + } else if((((a5==1)&&((a27==1)&&((a6==1)&&(((a4==1)&&(((a12==11)&&((((a3==6)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5))))&&(input==4)))&&(a20==1)))&&!(a15==1)))))&&(a0==1))){ + a18 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if(((((a4==1)&&((a12==12)&&(!(a15==1)&&((a20==1)&&((a6==1)&&(((((a3==5)&&((a22==1)&&(a18==1)))||(((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a22==1)&&!(a18==1)))))&&(input==2))&&!(a0==1)))))))&&(a5==1))&&(a27==1))){ + a5 = 0; + a0 = 1; + a3 = 5; + a18 = 0; + a22 = 0; + a15 = 1; + return 21; + } else if((!(a27==1)&&((a0==1)&&((((a5==1)&&((!(a4==1)&&(((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==6))&&(a12==10))&&(a6==1)))&&(a15==1)))&&(a20==1))&&(a3==8))))){ + a4 = 1; + a22 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a27 = 1; + return -1; + } else if(((a4==1)&&((a20==1)&&(((((((!(a6==1)&&((a27==1)&&((input==3)&&!(a22==1))))&&(a5==1))&&(a12==9))&&(a0==1))&&!(a18==1))&&!(a15==1))&&(a3==7))))){ + a3 = 4; + a15 = 1; + a22 = 1; + a12 = 8; + a18 = 1; + a6 = 1; + return -1; + } else if(((a20==1)&&(!(a0==1)&&(!(a27==1)&&((input==3)&&(((((((a15==1)&&((!(a18==1)&&(a22==1))&&(a5==1)))&&(a12==9))&&(a4==1))&&(a3==4))&&(a6==1))||((((a3==8)&&(((((!(a18==1)&&!(a22==1))&&!(a5==1))&&!(a15==1))&&(a12==8))&&!(a4==1)))&&!(a6==1))||((((a4==1)&&((a12==9)&&((((a22==1)&&(a18==1))&&(a5==1))&&(a15==1))))&&(a3==4))&&(a6==1))))))))){ + a22 = 0; + a15 = 1; + a18 = 1; + a0 = 1; + a6 = 1; + a4 = 0; + a3 = 5; + a5 = 1; + a12 = 10; + return -1; + } else if(((a12==8)&&((((!(a27==1)&&(((((input==5)&&(((!(a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8)))))&&(a20==1))&&(a4==1))&&(a5==1)))&&(a0==1))&&!(a6==1))&&(a15==1)))){ + a3 = 4; + a27 = 1; + a6 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if((((a6==1)&&(((a20==1)&&(!(a4==1)&&((((!(a5==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==6)))&&!(a27==1))&&(a12==10))&&(a0==1))))&&(a15==1)))&&(a3==5))){ + a6 = 0; + a3 = 7; + a15 = 0; + a18 = 0; + a5 = 1; + a4 = 1; + a22 = 1; + a27 = 1; + return -1; + } else if(((a27==1)&&((!(a22==1)&&((!(a18==1)&&((((a0==1)&&((((input==1)&&!(a15==1))&&(a20==1))&&!(a6==1)))&&(a5==1))&&!(a4==1)))&&(a12==10)))&&(a3==4)))){ + if((a0==1)){ + a22 = 1; + a0 = 0; + a5 = 0; + a18 = 1; + a6 = 1; + a3 = 7; + } + return -1; + } else if((((((a6==1)&&((!(a15==1)&&(((a12==12)&&((input==4)&&((((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==7)))||(((a18==1)&&(a22==1))&&(a3==8)))))&&(a5==1)))&&!(a0==1)))&&(a27==1))&&(a4==1))&&(a20==1))){ + a18 = 0; + a3 = 7; + a12 = 11; + a22 = 0; + a15 = 1; + a0 = 1; + a6 = 0; + return -1; + } else if(((!(a5==1)&&((((a20==1)&&(((((input==1)&&(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8))))&&!(a6==1))&&!(a0==1))&&!(a4==1)))&&!(a27==1))&&(a12==11)))&&(a15==1))){ + a12 = 12; + a0 = 1; + a3 = 4; + a22 = 0; + a27 = 1; + a4 = 1; + a5 = 1; + a18 = 0; + return -1; + } else if(((a3==6)&&(((a20==1)&&(((a27==1)&&((((a0==1)&&(!(a5==1)&&((((a18==1)||!(a18==1))&&(input==3))&&!(a15==1))))&&(a12==9))&&(a6==1)))&&(a22==1)))&&!(a4==1)))){ + a18 = 1; + a15 = 1; + a3 = 7; + a27 = 0; + a5 = 1; + return 26; + } else if(((((a12==8)&&(((a22==1)&&(((a6==1)&&((a0==1)&&((!(a5==1)&&((a20==1)&&(input==4)))&&(a27==1))))&&!(a18==1)))&&!(a15==1)))&&(a3==4))&&(a4==1))){ + a15 = 1; + a3 = 5; + a12 = 10; + a22 = 0; + a4 = 0; + return 21; + } else if(((!(a4==1)&&((a20==1)&&(((a27==1)&&(((a5==1)&&((a15==1)&&(!(a0==1)&&((a3==6)&&(((a18==1)||!(a18==1))&&(input==2))))))&&!(a6==1)))&&(a12==10))))&&!(a22==1))){ + a18 = 0; + a12 = 9; + a22 = 1; + a0 = 1; + a3 = 5; + return 21; + } else if((((((a4==1)&&((a15==1)&&((!(a5==1)&&((a3==6)&&((((input==5)&&(a20==1))&&(a27==1))&&(a12==12))))&&!(a18==1))))&&(a0==1))&&!(a6==1))&&!(a22==1))){ + a22 = 1; + a6 = 1; + a12 = 10; + a15 = 0; + return 21; + } else if((((a22==1)&&((a20==1)&&((((((!(a4==1)&&((a6==1)&&((a18==1)&&(input==6))))&&(a3==4))&&!(a5==1))&&!(a0==1))&&(a12==8))&&(a27==1))))&&!(a15==1))){ + a18 = 0; + a0 = 1; + a3 = 8; + a5 = 1; + a12 = 10; + return -1; + } else if((((a27==1)&&(((a5==1)&&((((!(a18==1)&&(!(a15==1)&&(((a20==1)&&(input==5))&&!(a0==1))))&&(a3==4))&&!(a22==1))&&(a4==1)))&&(a12==11)))&&!(a6==1))){ + a15 = 1; + a3 = 8; + a12 = 9; + a27 = 0; + a0 = 1; + a18 = 1; + return 26; + } else if(((!(a5==1)&&(((!(a15==1)&&((a27==1)&&(!(a18==1)&&((!(a4==1)&&((a3==5)&&((input==3)&&(a22==1))))&&(a12==11)))))&&(a20==1))&&(a6==1)))&&!(a0==1))){ + a0 = 1; + a12 = 12; + a27 = 0; + a18 = 1; + a3 = 7; + a6 = 0; + a5 = 1; + return 26; + } else if(((a12==9)&&(!(a0==1)&&((a20==1)&&(!(a4==1)&&((!(a6==1)&&(!(a27==1)&&(!(a15==1)&&((input==3)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))))))&&!(a5==1))))))){ + if((a22==1)){ + a22 = 0; + a12 = 8; + a27 = 1; + a0 = 1; + a15 = 1; + a5 = 1; + a6 = 1; + a3 = 4; + a18 = 0; + }else{ + a0 = 1; + a22 = 0; + a3 = 7; + a18 = 0; + a12 = 12; + a4 = 1; + a6 = 1; + } + return 26; + } else if((!(a27==1)&&((!(a5==1)&&(!(a15==1)&&(!(a0==1)&&((a3==5)&&(((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==5))&&(a20==1))&&(a6==1))&&!(a4==1))))))&&(a12==11)))){ + a27 = 1; + a22 = 1; + a18 = 1; + a0 = 1; + a15 = 1; + a3 = 8; + a4 = 1; + a12 = 12; + return 21; + } else if((((a27==1)&&(((a12==9)&&(!(a0==1)&&((a6==1)&&((a20==1)&&(((a3==7)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==1)))&&(a5==1))))))&&(a4==1)))&&(a15==1))){ + a12 = 12; + a6 = 0; + a27 = 0; + a22 = 0; + a3 = 6; + a15 = 0; + a18 = 0; + a0 = 1; + return 21; + } else if((((!(a5==1)&&((a12==9)&&(!(a15==1)&&((((a0==1)&&((((input==5)&&((a18==1)||!(a18==1)))&&(a20==1))&&!(a4==1)))&&!(a22==1))&&(a3==4)))))&&(a6==1))&&!(a27==1))){ + a27 = 1; + a18 = 1; + a3 = 7; + a12 = 11; + a15 = 1; + a5 = 1; + return 26; + } else if(((((!(a15==1)&&((a27==1)&&((a6==1)&&((a12==8)&&(((input==3)&&(((a3==6)&&((a18==1)&&(a22==1)))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==5)))))&&!(a0==1))))))&&(a4==1))&&!(a5==1))&&(a20==1))){ + a12 = 9; + a22 = 0; + a18 = 1; + a0 = 1; + a6 = 0; + a3 = 7; + a5 = 1; + return 21; + } else if((!(a27==1)&&(((((((((a12==9)&&((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a6==1))&&(a3==8))&&!(a5==1))&&!(a0==1))&&!(a15==1))&&(a20==1))&&(a4==1)))){ + a27 = 1; + a5 = 1; + a18 = 0; + a4 = 0; + a0 = 1; + a3 = 7; + a12 = 8; + a22 = 1; + a15 = 1; + return 21; + } else if((!(a15==1)&&(((((!(a5==1)&&(!(a4==1)&&(((((a3==8)&&(!(a18==1)&&(a22==1)))||(((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8))))&&(input==5))&&(a20==1))))&&(a12==9))&&(a0==1))&&!(a6==1))&&(a27==1)))){ + a18 = 0; + a22 = 0; + a3 = 7; + return 24; + } else if(((a20==1)&&(!(a6==1)&&((((a4==1)&&((a15==1)&&(!(a27==1)&&(!(a0==1)&&((input==6)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5))))))))&&(a5==1))&&(a12==10))))){ + if((a15==1)){ + a3 = 4; + a18 = 1; + a27 = 1; + a6 = 1; + a22 = 0; + a4 = 0; + }else{ + a22 = 1; + a12 = 8; + a18 = 1; + a3 = 8; + a0 = 1; + a27 = 1; + } + return 26; + } else if(((a6==1)&&((a20==1)&&((a5==1)&&(!(a15==1)&&((a3==6)&&((((!(a22==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a12==11)))&&!(a4==1))&&(a27==1))&&!(a0==1)))))))){ + a18 = 1; + a3 = 5; + a12 = 12; + a5 = 0; + a6 = 0; + a0 = 1; + return -1; + } else if((!(a27==1)&&((((a18==1)&&((((a20==1)&&((a12==10)&&((((a3==5)&&(input==3))&&(a15==1))&&(a22==1))))&&(a6==1))&&!(a4==1)))&&(a0==1))&&(a5==1)))){ + a4 = 1; + a22 = 0; + a12 = 12; + return 26; + } else if(((a12==11)&&((a18==1)&&((((!(a6==1)&&((!(a4==1)&&((((input==1)&&!(a0==1))&&(a20==1))&&!(a15==1)))&&(a27==1)))&&!(a5==1))&&(a22==1))&&(a3==7))))){ + a18 = 0; + a15 = 1; + a12 = 12; + a0 = 1; + a5 = 1; + a3 = 5; + return 26; + } else if(((((a15==1)&&((a0==1)&&(((a20==1)&&((!(a4==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))||(((a22==1)&&!(a18==1))&&(a3==7)))&&(input==4)))&&(a12==9)))&&(a27==1))))&&!(a5==1))&&(a6==1))){ + a22 = 0; + a4 = 1; + a3 = 8; + a12 = 10; + a5 = 1; + a18 = 1; + a15 = 0; + return 24; + } else if(((a20==1)&&((a5==1)&&((a22==1)&&((a15==1)&&(!(a0==1)&&(((a18==1)&&(((!(a27==1)&&((input==4)&&(a3==4)))&&(a12==12))&&(a4==1)))&&(a6==1)))))))){ + if((a6==1)){ + a18 = 0; + a4 = 0; + a0 = 1; + a22 = 0; + a5 = 0; + a6 = 0; + a12 = 10; + }else{ + a15 = 0; + a22 = 0; + a6 = 0; + a0 = 1; + } + return -1; + } else if((!(a5==1)&&((a4==1)&&((a15==1)&&(((((a12==9)&&((((input==2)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&!(a0==1))&&(a3==6)))&&(a6==1))&&(a20==1))&&(a27==1)))))){ + a18 = 1; + a22 = 1; + a0 = 1; + a12 = 11; + a4 = 0; + a3 = 5; + a15 = 0; + a27 = 0; + a5 = 1; + return 26; + } else if(((((a0==1)&&(((a5==1)&&((((a3==5)&&(((!(a4==1)&&(input==3))&&(a6==1))&&!(a15==1)))&&(a12==9))&&(a20==1)))&&!(a18==1)))&&!(a27==1))&&(a22==1))){ + a3 = 7; + a4 = 1; + a27 = 1; + a12 = 11; + return 21; + } else if(((a4==1)&&(((a18==1)&&(((!(a22==1)&&((a3==7)&&(((!(a6==1)&&((input==6)&&(a5==1)))&&(a20==1))&&!(a27==1))))&&(a12==8))&&!(a0==1)))&&(a15==1)))){ + a3 = 8; + a5 = 0; + a0 = 1; + a6 = 1; + a22 = 1; + a4 = 0; + return -1; + } else if(((a20==1)&&(!(a0==1)&&(!(a15==1)&&(!(a5==1)&&(!(a6==1)&&(((a27==1)&&(!(a4==1)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==5))))&&(a12==8)))))))){ + a0 = 1; + a18 = 1; + a3 = 4; + a5 = 1; + a15 = 1; + a22 = 1; + a4 = 1; + a6 = 1; + return -1; + } else if((!(a18==1)&&((a27==1)&&((a4==1)&&(((((((((input==6)&&(a0==1))&&!(a22==1))&&(a12==12))&&!(a15==1))&&!(a6==1))&&(a3==8))&&(a20==1))&&(a5==1)))))){ + a15 = 1; + a4 = 0; + a3 = 6; + a12 = 11; + a22 = 1; + return 26; + } else if((((a20==1)&&(((a15==1)&&(!(a6==1)&&((a4==1)&&((((a27==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==3)))&&!(a0==1))&&(a12==12)))))&&(a3==7)))&&!(a5==1))){ + if((a4==1)){ + a0 = 1; + a4 = 0; + a12 = 8; + a18 = 1; + a6 = 1; + a22 = 1; + a5 = 1; + a3 = 4; + }else{ + a18 = 0; + a0 = 1; + a12 = 8; + a3 = 4; + a5 = 1; + a22 = 0; + } + return 21; + } else if((((((!(a15==1)&&(((((a12==11)&&((a3==7)&&((input==1)&&((a18==1)||!(a18==1)))))&&!(a6==1))&&(a0==1))&&(a20==1)))&&(a4==1))&&(a22==1))&&!(a27==1))&&(a5==1))){ + a27 = 1; + a15 = 1; + a22 = 0; + a4 = 0; + a12 = 12; + a18 = 0; + return 26; + } else if((((((a27==1)&&((a12==10)&&((a18==1)&&((a20==1)&&((a4==1)&&(((!(a5==1)&&(input==1))&&(a3==5))&&!(a6==1)))))))&&(a15==1))&&!(a22==1))&&!(a0==1))){ + a6 = 1; + a0 = 1; + a27 = 0; + a5 = 1; + a18 = 0; + a4 = 0; + return 21; + } else if((((a27==1)&&((a15==1)&&((a12==8)&&(((a4==1)&&(((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&!(a0==1))&&(a6==1))&&(a20==1)))&&(a5==1)))))&&(a3==8))){ + a22 = 0; + a4 = 0; + a18 = 0; + a0 = 1; + a27 = 0; + a12 = 9; + return 21; + } else if((((((a12==11)&&((a6==1)&&((((a0==1)&&(!(a4==1)&&((input==5)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))))&&(a27==1))&&(a15==1))))&&(a3==4))&&(a5==1))&&(a20==1))){ + a4 = 1; + a22 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((((a12==8)&&((a4==1)&&(!(a0==1)&&(!(a5==1)&&(((((input==3)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a20==1))&&!(a15==1))&&(a3==8))))))&&!(a27==1))&&(a6==1))){ + if((a27==1)){ + a22 = 1; + a0 = 1; + a18 = 1; + a6 = 0; + a3 = 6; + a27 = 1; + a5 = 1; + }else{ + a0 = 1; + a27 = 1; + a3 = 7; + a15 = 1; + a18 = 0; + a22 = 0; + a5 = 1; + } + return 26; + } else if((((a12==11)&&((a27==1)&&((a5==1)&&((a15==1)&&((a20==1)&&(!(a0==1)&&((a6==1)&&((input==5)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1))))))))))))&&!(a4==1))){ + a18 = 0; + a22 = 0; + a5 = 0; + a6 = 0; + a3 = 6; + a4 = 1; + a0 = 1; + return 21; + } else if((((a15==1)&&(((!(a27==1)&&(!(a0==1)&&(!(a5==1)&&((((a4==1)&&((input==2)&&!(a6==1)))&&(a3==7))&&(a20==1)))))&&(a18==1))&&(a12==10)))&&!(a22==1))){ + a3 = 8; + a22 = 1; + a12 = 9; + a15 = 0; + a4 = 0; + return -1; + } else if(((a4==1)&&((a20==1)&&(((a0==1)&&((a5==1)&&((!(a27==1)&&((input==4)&&(((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4))))))&&!(a15==1))))&&(a12==8))))){ + a27 = 1; + a22 = 1; + a3 = 6; + a18 = 0; + a12 = 12; + a6 = 0; + a15 = 1; + a4 = 0; + return 21; + } else if(((((((a5==1)&&(!(a15==1)&&(((a3==7)&&(!(a6==1)&&(((input==5)&&(a12==10))&&!(a27==1))))&&(a0==1))))&&!(a4==1))&&!(a18==1))&&!(a22==1))&&(a20==1))){ + a4 = 1; + a22 = 1; + a18 = 1; + a12 = 11; + a3 = 4; + return 21; + } else if((((a20==1)&&((a3==8)&&((!(a0==1)&&(!(a4==1)&&((!(a15==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==5))&&(a12==9)))&&!(a27==1))))&&(a5==1))))&&!(a6==1))){ + a18 = 1; + a27 = 1; + a6 = 1; + a12 = 8; + a0 = 1; + a22 = 1; + a15 = 1; + return -1; + } else if(((a12==11)&&(((((a15==1)&&(!(a27==1)&&(((a0==1)&&(((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a22==1)&&(a18==1))))||((a3==8)&&((a22==1)&&!(a18==1))))&&(input==3)))&&(a5==1))))&&!(a4==1))&&(a6==1))&&(a20==1)))){ + a27 = 1; + a3 = 6; + a6 = 0; + a12 = 8; + a18 = 1; + a22 = 1; + return 26; + } else if(((a3==7)&&((a20==1)&&((!(a6==1)&&(!(a5==1)&&(((!(a27==1)&&((a0==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1))))&&(a12==8))&&(a15==1))))&&(a4==1))))){ + a6 = 1; + a5 = 1; + a3 = 4; + a27 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if((((a12==8)&&((((a5==1)&&((!(a27==1)&&(((a0==1)&&((input==5)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))))&&(a3==6)))&&!(a15==1)))&&!(a4==1))&&(a6==1)))&&(a20==1))){ + a3 = 5; + a22 = 0; + a27 = 1; + a12 = 10; + a5 = 0; + a4 = 1; + a18 = 0; + return 21; + } else if(((a5==1)&&((a12==12)&&(!(a15==1)&&((!(a0==1)&&((((!(a6==1)&&(((!(a22==1)&&!(a18==1))&&(a4==1))&&(a3==8)))||((a6==1)&&((!(a4==1)&&((a18==1)&&(a22==1)))&&(a3==4))))&&(input==2))&&(a20==1)))&&(a27==1)))))){ + a0 = 1; + a3 = 5; + a4 = 1; + a22 = 1; + a6 = 1; + a5 = 0; + a18 = 1; + a12 = 11; + return 24; + } else if(((((((!(a22==1)&&(!(a5==1)&&((a20==1)&&((a3==7)&&(!(a15==1)&&(!(a6==1)&&(input==6)))))))&&(a18==1))&&(a12==10))&&!(a4==1))&&!(a0==1))&&!(a27==1))){ + a12 = 9; + a15 = 1; + a22 = 1; + a27 = 1; + return 21; + } else if(((a20==1)&&(((((a3==7)&&((a0==1)&&((((a12==8)&&(((input==3)&&((a18==1)||!(a18==1)))&&!(a27==1)))&&!(a5==1))&&(a4==1))))&&(a15==1))&&(a22==1))&&(a6==1)))){ + a22 = 0; + a4 = 0; + a18 = 0; + a12 = 9; + a3 = 4; + a5 = 1; + return 24; + } else if(((!(a4==1)&&(!(a15==1)&&(!(a27==1)&&((a0==1)&&(!(a5==1)&&((((input==2)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7)))||((a3==7)&&((a22==1)&&!(a18==1)))))&&(a12==9))&&(a20==1)))))))&&(a6==1))){ + a12 = 8; + a3 = 4; + a18 = 0; + a22 = 0; + a4 = 1; + return -1; + } else if((((a27==1)&&(((((((((input==3)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a0==1))&&(a3==5))&&(a5==1))&&(a12==12))&&(a15==1))&&!(a4==1))&&(a20==1)))&&(a6==1))){ + a12 = 11; + a22 = 1; + a18 = 0; + a3 = 6; + a0 = 1; + a6 = 0; + return 21; + } else if(((a6==1)&&((((a4==1)&&((a3==4)&&((!(a27==1)&&((a18==1)&&((((a12==9)&&(input==1))&&!(a5==1))&&(a15==1))))&&!(a22==1))))&&(a20==1))&&(a0==1)))){ + a5 = 1; + a4 = 0; + a12 = 12; + a3 = 8; + a27 = 1; + a6 = 0; + return 26; + } else if(((((!(a15==1)&&(((((a4==1)&&((a20==1)&&(((input==2)&&(a12==12))&&(a3==5))))&&!(a22==1))&&!(a6==1))&&!(a0==1)))&&(a27==1))&&!(a5==1))&&(a18==1))){ + a22 = 1; + a0 = 1; + a5 = 1; + a6 = 1; + a12 = 10; + return -1; + } else if(((a20==1)&&(!(a6==1)&&(!(a5==1)&&((a3==6)&&(((a15==1)&&(((((!(a4==1)&&(input==4))&&(a27==1))&&!(a18==1))&&(a12==11))&&!(a0==1)))&&!(a22==1))))))){ + a0 = 1; + a12 = 10; + a5 = 1; + a6 = 1; + a27 = 0; + a3 = 5; + a18 = 1; + return 21; + } else if((((a6==1)&&(((((!(a5==1)&&(((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==5))&&(a12==10)))&&!(a4==1))&&(a27==1))&&(a15==1))&&(a0==1)))&&(a20==1))){ + a22 = 0; + a18 = 0; + a5 = 1; + a3 = 6; + a15 = 0; + a4 = 1; + a27 = 0; + return 26; + } else if(((!(a6==1)&&((((a0==1)&&(!(a15==1)&&((a20==1)&&(!(a4==1)&&(((a3==5)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a12==10))))))&&(a27==1))&&(a22==1)))&&!(a5==1))){ + a27 = 0; + a18 = 0; + a6 = 1; + a15 = 1; + a3 = 8; + return 26; + } else if((((((a20==1)&&((a4==1)&&((((a27==1)&&((input==1)&&((((a22==1)&&(a18==1))&&(a3==7))||(((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a22==1)&&!(a18==1)))))))&&(a0==1))&&!(a15==1))))&&(a6==1))&&(a5==1))&&(a12==11))){ + a3 = 4; + a15 = 1; + a18 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if((((a3==4)&&((a20==1)&&((a4==1)&&(!(a15==1)&&(!(a0==1)&&(!(a5==1)&&(!(a6==1)&&((a27==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==1))))))))))&&(a12==12))){ + if((a5==1)){ + a3 = 5; + a5 = 1; + a15 = 1; + a22 = 0; + a18 = 1; + a0 = 1; + a12 = 8; + }else{ + a5 = 1; + a22 = 1; + a27 = 0; + a6 = 1; + a18 = 1; + a12 = 10; + a3 = 5; + } + return 24; + } else if(((a3==4)&&((((!(a15==1)&&(((((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==4))&&(a12==10))&&(a20==1))&&!(a4==1))&&!(a5==1)))&&(a27==1))&&(a6==1))&&(a0==1)))){ + a6 = 0; + a22 = 0; + a4 = 1; + a15 = 1; + a12 = 11; + a18 = 0; + a3 = 7; + return 26; + } else if(((((!(a15==1)&&((a27==1)&&(((a6==1)&&((!(a0==1)&&((input==1)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&(a20==1)))&&(a3==5))))&&(a12==11))&&!(a4==1))&&(a5==1))){ + a0 = 1; + a27 = 0; + a4 = 1; + a18 = 0; + a12 = 10; + a22 = 1; + a3 = 7; + return 26; + } else if(((a15==1)&&(((a20==1)&&((((a0==1)&&((a6==1)&&(!(a27==1)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==5)))))&&!(a5==1))&&!(a4==1)))&&(a12==12)))){ + a3 = 4; + a27 = 1; + a22 = 1; + a18 = 0; + a5 = 1; + a12 = 10; + return -1; + } else if((((((a12==10)&&(((((((((a22==1)&&(a18==1))&&(a3==7))||(((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1)))))&&(input==3))&&!(a0==1))&&(a27==1))&&(a6==1))&&!(a4==1)))&&!(a15==1))&&(a20==1))&&!(a5==1))){ + if((a27==1)){ + a22 = 1; + a3 = 6; + a5 = 1; + a18 = 1; + a12 = 11; + a4 = 1; + }else{ + a3 = 4; + a0 = 1; + a5 = 1; + a4 = 1; + a18 = 1; + a22 = 1; + } + return -1; + } else if(((((a12==9)&&((!(a18==1)&&((a3==6)&&((((((input==4)&&!(a15==1))&&(a4==1))&&(a22==1))&&(a20==1))&&!(a0==1))))&&(a6==1)))&&!(a27==1))&&(a5==1))){ + a6 = 0; + a15 = 1; + a4 = 0; + a5 = 0; + a18 = 1; + a12 = 11; + a3 = 7; + return 21; + } else if(((a6==1)&&(((a12==11)&&(((a0==1)&&((((a20==1)&&((!(a5==1)&&((input==2)&&(a15==1)))&&!(a22==1)))&&(a3==7))&&(a27==1)))&&(a4==1)))&&(a18==1)))){ + a15 = 0; + a6 = 0; + a12 = 10; + a22 = 1; + a18 = 0; + a4 = 0; + a5 = 1; + return 21; + } else if(((a0==1)&&((a3==5)&&((((a4==1)&&((!(a6==1)&&(!(a22==1)&&(((a15==1)&&((a5==1)&&(input==5)))&&(a20==1))))&&(a12==8)))&&!(a27==1))&&(a18==1))))){ + a3 = 7; + a22 = 1; + return 21; + } else if(((a0==1)&&(((a27==1)&&(((((a20==1)&&((((input==3)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a15==1))&&(a6==1)))&&(a3==6))&&!(a4==1))&&(a12==8)))&&!(a5==1)))){ + if((a15==1)){ + a3 = 7; + a4 = 1; + a18 = 0; + a0 = 0; + a22 = 0; + }else{ + a0 = 0; + a22 = 1; + a6 = 0; + a18 = 1; + a12 = 10; + a3 = 4; + } + return 21; + } else if((((a12==8)&&((a4==1)&&((a22==1)&&((a3==8)&&((a0==1)&&((((!(a5==1)&&((a18==1)&&(input==2)))&&!(a6==1))&&!(a15==1))&&(a20==1)))))))&&(a27==1))){ + a6 = 1; + a15 = 1; + a5 = 1; + a3 = 4; + return -1; + } else if(((((a4==1)&&(((a15==1)&&((a0==1)&&((a6==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==2))&&(a20==1)))))&&!(a5==1)))&&!(a27==1))&&(a12==12))){ + a12 = 10; + a5 = 1; + a4 = 0; + a3 = 8; + a18 = 1; + a6 = 0; + a22 = 1; + a27 = 1; + return 21; + } else if((((a22==1)&&(((a20==1)&&((a6==1)&&((((a4==1)&&((a12==8)&&((((a18==1)||!(a18==1))&&(input==4))&&!(a15==1))))&&(a3==5))&&!(a0==1))))&&(a27==1)))&&!(a5==1))){ + a5 = 1; + a15 = 1; + a27 = 0; + a6 = 0; + a0 = 1; + a18 = 0; + a3 = 7; + return -1; + } else if(((((a27==1)&&((a0==1)&&((((((input==2)&&((((a22==1)&&!(a18==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a22==1)&&(a18==1))))))&&(a5==1))&&(a15==1))&&(a12==9))&&(a4==1))))&&(a6==1))&&(a20==1))){ + a12 = 11; + a3 = 8; + a6 = 0; + a5 = 0; + a4 = 0; + a22 = 0; + a15 = 0; + a18 = 0; + return 26; + } else if((((a12==11)&&(((((((((input==3)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&!(a4==1))&&(a27==1))&&(a6==1))&&!(a5==1))&&(a3==5))&&!(a15==1))&&(a0==1)))&&(a20==1))){ + a22 = 1; + a4 = 1; + a12 = 10; + a18 = 1; + return -1; + } else if(((((a12==10)&&(!(a4==1)&&(((a15==1)&&((a6==1)&&(((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==5))&&(a20==1))&&(a0==1))))&&(a3==5))))&&!(a27==1))&&!(a5==1))){ + a6 = 0; + a12 = 12; + a5 = 1; + a27 = 1; + a18 = 1; + a15 = 0; + a3 = 6; + a22 = 1; + return -1; + } else if(((((a4==1)&&(((!(a5==1)&&((((a20==1)&&(!(a6==1)&&((a15==1)&&(input==4))))&&(a18==1))&&(a3==7)))&&!(a27==1))&&!(a0==1)))&&(a12==10))&&!(a22==1))){ + if((a5==1)){ + a22 = 1; + a0 = 1; + a5 = 1; + a3 = 8; + a6 = 1; + a12 = 8; + a27 = 1; + }else{ + a4 = 0; + a5 = 1; + a22 = 1; + a12 = 11; + a15 = 0; + } + return 21; + } else if(((a15==1)&&((a4==1)&&(((((a6==1)&&((a12==8)&&((a3==7)&&((a20==1)&&((input==2)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))))&&!(a5==1))&&(a27==1))&&!(a0==1))))){ + a3 = 6; + a27 = 0; + a0 = 1; + a22 = 0; + a5 = 1; + a12 = 12; + a18 = 1; + a4 = 0; + return 26; + } else if(((a6==1)&&((a27==1)&&((a4==1)&&((((a5==1)&&((!(a22==1)&&(((a20==1)&&(!(a0==1)&&(input==1)))&&(a12==11)))&&(a15==1)))&&(a3==4))&&(a18==1)))))){ + a3 = 8; + a0 = 1; + a15 = 0; + a22 = 1; + a12 = 12; + return 21; + } else if((((a5==1)&&(!(a18==1)&&(((a27==1)&&((((a4==1)&&(((a12==12)&&((a3==4)&&(input==5)))&&(a0==1)))&&!(a15==1))&&(a20==1)))&&!(a6==1))))&&(a22==1))){ + a18 = 1; + a12 = 10; + a5 = 0; + a3 = 8; + a6 = 1; + return -1; + } else if(((a15==1)&&((((((a27==1)&&((a4==1)&&((a0==1)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==5)))))&&(a20==1))&&(a12==11))&&(a6==1))&&!(a5==1)))){ + a22 = 0; + a6 = 0; + a18 = 0; + a3 = 7; + a15 = 0; + a4 = 0; + a12 = 9; + return -1; + } else if((((a22==1)&&((((!(a15==1)&&((a12==9)&&(((!(a18==1)&&((input==4)&&!(a4==1)))&&!(a5==1))&&(a27==1))))&&(a6==1))&&!(a0==1))&&(a3==6)))&&(a20==1))){ + a5 = 1; + a6 = 0; + a0 = 1; + a4 = 1; + a12 = 10; + a15 = 1; + a3 = 5; + return -1; + } else if(((a4==1)&&(!(a18==1)&&(!(a5==1)&&((a6==1)&&(((a20==1)&&((((a3==6)&&(!(a15==1)&&((input==4)&&!(a22==1))))&&!(a27==1))&&!(a0==1)))&&(a12==8))))))){ + if((a3==5)){ + a27 = 1; + a0 = 1; + a5 = 1; + a22 = 1; + a18 = 1; + a3 = 5; + a4 = 0; + a15 = 1; + }else{ + a5 = 1; + a3 = 8; + a27 = 1; + a0 = 1; + a15 = 1; + a4 = 0; + } + return -1; + } else if(((a22==1)&&((a12==11)&&(!(a5==1)&&(((a3==4)&&((a6==1)&&((((!(a18==1)&&((input==1)&&(a27==1)))&&(a20==1))&&(a15==1))&&(a4==1))))&&!(a0==1)))))){ + a6 = 0; + a0 = 1; + a12 = 10; + a22 = 0; + a5 = 1; + return 21; + } else if(((a15==1)&&(((((!(a4==1)&&((a20==1)&&((a6==1)&&((input==4)&&(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8)))))))&&!(a0==1))&&(a5==1))&&(a27==1))&&(a12==10)))){ + if((a0==1)){ + a3 = 8; + a6 = 0; + a22 = 0; + a15 = 0; + a18 = 0; + }else{ + a4 = 1; + a3 = 7; + a22 = 1; + a5 = 0; + a18 = 0; + a0 = 1; + } + return -1; + } else if((((a12==10)&&((a15==1)&&((((a20==1)&&((((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==1))&&!(a27==1))&&!(a5==1))&&(a3==5)))&&(a0==1))&&!(a4==1))))&&(a6==1))){ + if((a12==11)){ + a3 = 6; + a6 = 0; + a5 = 1; + a4 = 1; + a0 = 0; + a12 = 11; + a15 = 0; + a18 = 0; + a27 = 1; + a22 = 0; + }else{ + a22 = 0; + a3 = 6; + a15 = 0; + a4 = 1; + a12 = 11; + a18 = 0; + a5 = 1; + } + return 21; + } else if((((a5==1)&&((a27==1)&&((a12==11)&&((a3==6)&&((a20==1)&&((a4==1)&&((((a22==1)&&((a6==1)&&(input==1)))&&!(a18==1))&&!(a15==1))))))))&&(a0==1))){ + a6 = 0; + a3 = 8; + a4 = 0; + a22 = 0; + a15 = 1; + return -1; + } else if((((!(a5==1)&&((a12==11)&&((!(a22==1)&&(((!(a4==1)&&((a3==4)&&((a0==1)&&(input==5))))&&(a20==1))&&(a6==1)))&&!(a15==1))))&&!(a18==1))&&(a27==1))){ + a4 = 1; + a5 = 1; + a12 = 8; + a22 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if((!(a6==1)&&(((((a12==12)&&(((a4==1)&&((a20==1)&&((a0==1)&&((a5==1)&&(((a18==1)||!(a18==1))&&(input==2))))))&&(a3==6)))&&(a27==1))&&(a15==1))&&!(a22==1)))){ + a4 = 0; + a15 = 0; + a12 = 11; + a18 = 0; + a6 = 1; + return -1; + } else if((((a15==1)&&(!(a6==1)&&(((a5==1)&&((a12==11)&&((a4==1)&&(!(a27==1)&&(((((a18==1)||!(a18==1))&&(input==5))&&(a0==1))&&!(a22==1))))))&&(a3==6))))&&(a20==1))){ + if((a27==1)){ + a0 = 0; + a3 = 7; + a18 = 1; + a5 = 0; + a27 = 1; + a12 = 8; + }else{ + a5 = 0; + a12 = 8; + a0 = 0; + a18 = 0; + a3 = 8; + a27 = 1; + a6 = 1; + } + return 24; + } else if(((a3==8)&&((a20==1)&&((((a5==1)&&((a0==1)&&(((a18==1)&&(!(a6==1)&&((a22==1)&&((input==4)&&(a12==8)))))&&!(a15==1))))&&!(a4==1))&&!(a27==1))))){ + a3 = 6; + a12 = 12; + a15 = 1; + a18 = 0; + a4 = 1; + a5 = 0; + a27 = 1; + return 21; + } else if((!(a15==1)&&((((a4==1)&&((((!(a0==1)&&((input==6)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a22==1)&&(a18==1))))))&&(a20==1))&&(a12==12))&&(a6==1)))&&!(a5==1))&&(a27==1)))){ + a5 = 1; + a22 = 0; + a12 = 8; + a0 = 1; + a15 = 1; + a3 = 4; + a18 = 1; + return 26; + } else if(((a12==10)&&((((a6==1)&&((a27==1)&&((a5==1)&&(((a4==1)&&((((a3==6)&&((a22==1)&&(a18==1)))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a18==1)&&!(a22==1)))))&&(input==2)))&&(a0==1)))))&&(a20==1))&&(a15==1)))){ + a0 = 0; + a6 = 0; + a3 = 4; + a4 = 0; + a5 = 0; + a18 = 0; + a22 = 1; + return 26; + } else if(((!(a15==1)&&((!(a4==1)&&((a5==1)&&((a3==7)&&((((a12==8)&&((input==6)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&!(a6==1))&&(a20==1)))))&&!(a27==1)))&&(a0==1))){ + a27 = 1; + a3 = 8; + a5 = 0; + a6 = 1; + a12 = 12; + a18 = 1; + a22 = 0; + return -1; + } else if((!(a5==1)&&((a3==5)&&(((a0==1)&&((a20==1)&&((!(a6==1)&&(!(a15==1)&&(((a27==1)&&(!(a4==1)&&(input==2)))&&!(a18==1))))&&!(a22==1))))&&(a12==10))))){ + a18 = 1; + a6 = 1; + a15 = 1; + a12 = 8; + a5 = 1; + a3 = 4; + a22 = 1; + a4 = 1; + return -1; + } else if((!(a6==1)&&((a27==1)&&(((a12==8)&&(((!(a4==1)&&(((input==1)&&((((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a22==1)&&!(a18==1))))||((a3==6)&&((a18==1)&&(a22==1)))))&&(a20==1)))&&(a0==1))&&!(a15==1)))&&!(a5==1))))){ + a4 = 1; + a18 = 1; + a15 = 1; + a12 = 11; + a3 = 7; + a22 = 1; + a6 = 1; + return 24; + } else if((((((((((!(a5==1)&&((input==3)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a20==1))&&(a27==1))&&(a12==9))&&!(a4==1))&&(a0==1))&&(a3==7))&&(a6==1))&&!(a15==1))){ + a3 = 8; + a5 = 1; + a18 = 0; + a6 = 0; + a12 = 11; + a22 = 0; + return 26; + } else if((!(a6==1)&&((((!(a27==1)&&((a12==10)&&(!(a5==1)&&(!(a0==1)&&(((input==4)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a15==1))))))&&!(a4==1))&&(a3==5))&&(a20==1)))){ + a22 = 0; + a18 = 1; + a6 = 1; + a12 = 8; + a27 = 1; + a4 = 1; + a5 = 1; + a0 = 1; + return -1; + } else if((!(a22==1)&&((((((a5==1)&&(!(a4==1)&&(!(a18==1)&&(((a12==12)&&(!(a6==1)&&(input==4)))&&(a15==1)))))&&(a3==4))&&!(a27==1))&&(a20==1))&&(a0==1)))){ + a3 = 6; + a6 = 1; + a5 = 0; + a27 = 1; + a15 = 0; + return -1; + } else if(((a27==1)&&(!(a5==1)&&((a20==1)&&(((!(a15==1)&&((a12==11)&&(((input==6)&&((((!(a22==1)&&(a18==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))||((a3==5)&&((a22==1)&&(a18==1)))))&&(a6==1))))&&!(a0==1))&&(a4==1)))))){ + a3 = 5; + a0 = 1; + a18 = 0; + a27 = 0; + a6 = 0; + a22 = 0; + a5 = 1; + a4 = 0; + return 21; + } else if((((((!(a15==1)&&(((a3==5)&&(!(a27==1)&&((a20==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&!(a4==1)))))&&(a12==10)))&&!(a0==1))&&(a5==1))&&!(a22==1))&&!(a6==1))){ + if((a27==1)){ + a3 = 7; + a6 = 1; + a27 = 1; + a22 = 1; + a4 = 1; + a18 = 1; + a12 = 12; + }else{ + a22 = 1; + a18 = 1; + a4 = 1; + a27 = 1; + a3 = 8; + a12 = 8; + a0 = 1; + a15 = 1; + } + return -1; + } else if((((a3==6)&&(((a27==1)&&(!(a15==1)&&(!(a5==1)&&((a12==8)&&(((a0==1)&&((input==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))))&&!(a4==1))))))&&!(a6==1)))&&(a20==1))){ + a12 = 11; + a18 = 1; + a3 = 5; + a22 = 0; + a15 = 1; + a4 = 1; + return 24; + } else if((((a5==1)&&(((a18==1)&&((a0==1)&&((!(a27==1)&&(!(a6==1)&&((((input==5)&&(a12==8))&&(a3==6))&&(a15==1))))&&(a20==1))))&&!(a22==1)))&&(a4==1))){ + a6 = 1; + a22 = 1; + a3 = 4; + a27 = 1; + return -1; + } else if((!(a22==1)&&(((a12==8)&&(((a0==1)&&((a3==5)&&((a6==1)&&((a20==1)&&((((a15==1)&&(input==1))&&!(a18==1))&&!(a27==1))))))&&!(a4==1)))&&(a5==1)))){ + a6 = 0; + a18 = 1; + a3 = 4; + a15 = 0; + return 26; + } else if(((((a0==1)&&((a20==1)&&(!(a27==1)&&(!(a5==1)&&((a3==6)&&((((((a18==1)||!(a18==1))&&(input==5))&&(a6==1))&&(a12==11))&&(a4==1)))))))&&!(a15==1))&&(a22==1))){ + a22 = 0; + a15 = 1; + a27 = 1; + a18 = 0; + a3 = 8; + return 24; + } else if(((a6==1)&&((((!(a15==1)&&(((a12==11)&&((a20==1)&&((input==4)&&(((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a22==1)&&(a18==1)))))))&&!(a0==1)))&&(a5==1))&&!(a4==1))&&!(a27==1)))){ + if((a4==1)){ + a12 = 8; + a15 = 1; + a22 = 0; + a27 = 1; + a18 = 1; + a0 = 1; + a3 = 5; + }else{ + a12 = 8; + a0 = 1; + a22 = 0; + a4 = 1; + a18 = 0; + a15 = 1; + a3 = 5; + a27 = 1; + } + return -1; + } else if(((((a6==1)&&((((!(a18==1)&&(((a5==1)&&((a15==1)&&((input==6)&&!(a4==1))))&&!(a0==1)))&&(a3==4))&&(a20==1))&&(a27==1)))&&(a12==12))&&(a22==1))){ + a6 = 0; + a0 = 1; + a18 = 1; + a12 = 8; + a3 = 8; + a4 = 1; + a22 = 0; + return -1; + } else if(((a22==1)&&((!(a5==1)&&((a20==1)&&((((a6==1)&&(((a27==1)&&(!(a18==1)&&((a12==11)&&(input==3))))&&(a15==1)))&&!(a4==1))&&(a0==1))))&&(a3==7)))){ + a22 = 0; + a18 = 1; + a12 = 10; + a3 = 8; + a5 = 1; + return -1; + } else if((((((a15==1)&&((a5==1)&&(((((((input==4)&&(a0==1))&&(a3==7))&&!(a4==1))&&!(a22==1))&&(a27==1))&&(a12==11))))&&(a20==1))&&(a6==1))&&(a18==1))){ + a22 = 1; + a12 = 10; + a6 = 0; + a5 = 0; + a3 = 5; + a0 = 0; + return 21; + } else if(((a15==1)&&((a4==1)&&((a27==1)&&(((a0==1)&&(((a12==9)&&((((((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1))))||((!(a18==1)&&(a22==1))&&(a3==6)))&&(input==6))&&!(a5==1)))&&(a20==1)))&&!(a6==1)))))){ + a12 = 8; + a5 = 1; + a22 = 1; + a3 = 4; + a6 = 1; + a18 = 1; + return -1; + } else if((((((a3==7)&&((a6==1)&&((!(a0==1)&&(!(a4==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==4))&&!(a15==1))))&&!(a27==1))))&&(a5==1))&&(a12==9))&&(a20==1))){ + if((a27==1)){ + a18 = 1; + a27 = 1; + a0 = 1; + a12 = 8; + a22 = 0; + a4 = 1; + a15 = 1; + }else{ + a12 = 11; + a6 = 0; + a18 = 1; + a27 = 1; + a4 = 1; + a5 = 0; + a22 = 0; + a3 = 6; + } + return -1; + } else if(((a5==1)&&(((a20==1)&&((((a27==1)&&((a4==1)&&((input==4)&&((((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1))||(((a6==1)&&(((a18==1)&&!(a22==1))&&(a3==8)))||(((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1)))))))&&(a12==9))&&!(a15==1)))&&(a0==1)))){ + a5 = 0; + a4 = 0; + a6 = 1; + a12 = 12; + a18 = 0; + a3 = 5; + a22 = 0; + return 21; + } else if(((a20==1)&&((((!(a22==1)&&(((((a12==12)&&(((input==6)&&(a0==1))&&(a27==1)))&&!(a18==1))&&!(a6==1))&&(a3==5)))&&!(a15==1))&&!(a5==1))&&!(a4==1)))){ + a18 = 1; + a3 = 6; + a5 = 1; + a6 = 1; + a15 = 1; + a4 = 1; + return 21; + } else if(((((a5==1)&&((((((((a27==1)&&((a12==11)&&(input==1)))&&!(a4==1))&&(a3==4))&&!(a6==1))&&!(a18==1))&&!(a22==1))&&!(a15==1)))&&(a20==1))&&(a0==1))){ + a18 = 1; + a4 = 1; + a6 = 1; + a22 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if(((a3==8)&&(!(a6==1)&&((a22==1)&&(((a27==1)&&((a18==1)&&(!(a15==1)&&((a5==1)&&((a12==10)&&((a4==1)&&((input==1)&&!(a0==1))))))))&&(a20==1)))))){ + a12 = 11; + a3 = 6; + a5 = 0; + return -1; + } else if(((a12==10)&&((!(a0==1)&&(((((a20==1)&&(((input==3)&&((((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))||((a3==7)&&((a22==1)&&(a18==1)))))&&(a15==1)))&&!(a6==1))&&!(a5==1))&&!(a4==1)))&&!(a27==1)))){ + a4 = 1; + a27 = 1; + a0 = 1; + a22 = 0; + a5 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + return -1; + } else if(((((a27==1)&&((!(a15==1)&&(((a20==1)&&((a3==7)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==3))&&(a12==8))))&&(a0==1)))&&!(a6==1)))&&(a5==1))&&(a4==1))){ + a4 = 0; + a5 = 0; + a3 = 6; + a18 = 0; + a22 = 0; + return 24; + } else if((((a3==8)&&(!(a15==1)&&((((!(a0==1)&&((!(a4==1)&&((((a18==1)||!(a18==1))&&(input==4))&&!(a22==1)))&&!(a5==1)))&&!(a27==1))&&(a12==11))&&(a20==1))))&&!(a6==1))){ + a5 = 1; + a0 = 1; + a15 = 1; + a18 = 1; + a4 = 1; + a12 = 8; + a3 = 6; + a27 = 1; + return 24; + } else if((!(a22==1)&&(((((a27==1)&&((a15==1)&&((a4==1)&&((a3==6)&&((((input==5)&&((a18==1)||!(a18==1)))&&!(a0==1))&&!(a6==1))))))&&(a20==1))&&!(a5==1))&&(a12==10)))){ + a15 = 0; + a18 = 1; + a12 = 11; + a3 = 5; + a5 = 1; + return -1; + } else if((((((((a15==1)&&((a4==1)&&(((a6==1)&&((a27==1)&&(((a18==1)||!(a18==1))&&(input==3))))&&(a5==1))))&&(a20==1))&&(a0==1))&&(a22==1))&&(a12==11))&&(a3==5))){ + a3 = 4; + a18 = 1; + a12 = 8; + return -1; + } else if((!(a27==1)&&(((a15==1)&&(!(a0==1)&&((a6==1)&&((a20==1)&&((!(a5==1)&&((((a3==6)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1)))))&&(input==3)))&&(a4==1))))))&&(a12==9)))){ + if((a0==1)){ + a12 = 8; + a22 = 1; + a3 = 5; + a18 = 0; + a4 = 0; + }else{ + a27 = 1; + a18 = 1; + a3 = 4; + a0 = 1; + a12 = 8; + a22 = 0; + a5 = 1; + a6 = 0; + } + return 24; + } else if(((a27==1)&&((a3==5)&&(((a0==1)&&(((a12==11)&&(((((!(a5==1)&&(input==3))&&!(a18==1))&&(a15==1))&&(a20==1))&&(a22==1)))&&!(a4==1)))&&(a6==1))))){ + a3 = 4; + a5 = 1; + a4 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if((((((a3==6)&&((!(a27==1)&&((a12==12)&&((a15==1)&&((((input==2)&&!(a4==1))&&!(a22==1))&&!(a18==1)))))&&(a20==1)))&&(a5==1))&&!(a6==1))&&(a0==1))){ + a6 = 1; + a12 = 10; + a22 = 1; + a18 = 1; + return -1; + } else if(((a20==1)&&((a12==11)&&(((a3==7)&&((!(a5==1)&&(!(a0==1)&&(((a6==1)&&(((a18==1)&&(input==4))&&(a15==1)))&&(a22==1))))&&(a4==1)))&&!(a27==1))))){ + a0 = 1; + a5 = 1; + a18 = 0; + a3 = 5; + a12 = 10; + return 21; + } else if(((a3==7)&&((a15==1)&&(((a6==1)&&(((a4==1)&&(!(a0==1)&&(((a12==10)&&((input==5)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))&&!(a5==1))))&&(a20==1)))&&(a27==1))))){ + a15 = 0; + a18 = 1; + a0 = 1; + a3 = 8; + a12 = 11; + a22 = 1; + return 21; + } else if(((a12==11)&&((a6==1)&&(((a3==7)&&(((a5==1)&&(!(a4==1)&&(((a22==1)&&((((a18==1)||!(a18==1))&&(input==5))&&(a27==1)))&&(a20==1))))&&!(a15==1)))&&!(a0==1))))){ + a0 = 1; + a15 = 1; + a12 = 10; + a3 = 5; + a18 = 1; + return 24; + } else if((!(a5==1)&&((a15==1)&&(!(a6==1)&&(((!(a4==1)&&((a12==11)&&((a27==1)&&(((((a22==1)&&!(a18==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5))))&&(input==3)))))&&(a0==1))&&(a20==1)))))){ + a22 = 1; + a12 = 10; + a5 = 1; + a3 = 7; + a15 = 0; + a18 = 0; + return -1; + } else if((((a27==1)&&((a4==1)&&((a20==1)&&((a5==1)&&(((((input==2)&&((((a22==1)&&!(a18==1))&&(a3==6))||(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))))&&!(a15==1))&&!(a6==1))&&(a12==10))))))&&(a0==1))){ + a18 = 1; + a12 = 8; + a6 = 1; + a3 = 4; + a15 = 1; + a22 = 1; + return -1; + } else if((!(a5==1)&&((a20==1)&&((a12==10)&&(!(a6==1)&&((a4==1)&&(!(a15==1)&&((a3==5)&&(((a22==1)&&((a0==1)&&(((a18==1)||!(a18==1))&&(input==1))))&&(a27==1)))))))))){ + a12 = 8; + a15 = 1; + a18 = 1; + a5 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if((!(a4==1)&&((((((a27==1)&&((a6==1)&&(((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==4))&&!(a5==1))&&(a12==9))))&&!(a0==1))&&(a20==1))&&!(a15==1))&&(a3==4)))){ + a22 = 0; + a4 = 1; + a5 = 1; + a15 = 1; + a12 = 8; + a3 = 7; + a18 = 0; + a0 = 1; + a6 = 0; + return -1; + } else if((((a0==1)&&(((((!(a6==1)&&(((!(a22==1)&&((a4==1)&&(input==4)))&&(a15==1))&&!(a27==1)))&&(a18==1))&&(a3==7))&&(a12==11))&&!(a5==1)))&&(a20==1))){ + a27 = 1; + a15 = 0; + a5 = 1; + a22 = 1; + a12 = 10; + a18 = 0; + a3 = 5; + return 24; + } else if(((!(a6==1)&&((a4==1)&&((a5==1)&&((a18==1)&&(((a15==1)&&(((a12==11)&&(((a20==1)&&(input==1))&&!(a22==1)))&&!(a0==1)))&&(a27==1))))))&&(a3==7))){ + a15 = 0; + a0 = 1; + a18 = 0; + a27 = 0; + a22 = 1; + return 21; + } else if((!(a15==1)&&((a12==12)&&((a0==1)&&(((((a5==1)&&((((input==4)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&(a6==1))&&(a27==1)))&&!(a4==1))&&(a3==7))&&(a20==1)))))){ + a6 = 0; + a3 = 4; + a18 = 0; + a22 = 1; + a12 = 10; + return 26; + } else if(((((a12==12)&&(((a4==1)&&((a27==1)&&(((a15==1)&&(!(a6==1)&&((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&(a20==1))))&&(a5==1)))&&!(a0==1))&&(a3==4))){ + a22 = 0; + a27 = 0; + a15 = 0; + a5 = 0; + a12 = 8; + a18 = 0; + a3 = 7; + a0 = 1; + a4 = 0; + return 21; + } else if((!(a5==1)&&(!(a0==1)&&(((a12==11)&&(((a27==1)&&((a3==5)&&((a4==1)&&((((a18==1)&&(input==2))&&(a20==1))&&(a6==1)))))&&!(a22==1)))&&(a15==1))))){ + a6 = 0; + a22 = 1; + a4 = 0; + a3 = 4; + a15 = 0; + a18 = 0; + return 26; + } else if((((((a0==1)&&((a12==11)&&((a20==1)&&(!(a27==1)&&(((input==5)&&(((a3==6)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1))))))&&!(a6==1))))))&&(a5==1))&&(a15==1))&&(a4==1))){ + a22 = 1; + a18 = 1; + a12 = 8; + a6 = 1; + a3 = 4; + a27 = 1; + return -1; + } else if((((((!(a6==1)&&(((a12==9)&&((((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))||((!(a18==1)&&(a22==1))&&(a3==6)))&&(input==2))&&(a0==1)))&&(a27==1)))&&(a20==1))&&(a5==1))&&!(a15==1))&&(a4==1))){ + a4 = 0; + a22 = 0; + a12 = 12; + a5 = 0; + a18 = 1; + a3 = 6; + return 26; + } else if((!(a6==1)&&((((!(a15==1)&&(((((input==3)&&((((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==6))))&&(a12==12))&&(a4==1))&&(a27==1)))&&!(a5==1))&&(a20==1))&&(a0==1)))){ + a5 = 1; + a12 = 11; + a4 = 0; + a18 = 1; + a22 = 0; + a3 = 6; + return 24; + } else if(((a3==4)&&(!(a27==1)&&(((a15==1)&&((a12==8)&&((a6==1)&&(!(a0==1)&&(((a4==1)&&((input==3)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a20==1))))))&&!(a5==1))))){ + a15 = 0; + a12 = 9; + a27 = 1; + a18 = 0; + a22 = 0; + return 26; + } else if(((!(a5==1)&&(!(a22==1)&&((!(a6==1)&&(!(a15==1)&&(((((a3==7)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a20==1))&&(a0==1))&&!(a4==1))))&&(a12==12))))&&!(a27==1))){ + a15 = 1; + a27 = 1; + a18 = 1; + a22 = 1; + a3 = 6; + a12 = 10; + return 21; + } else if(((!(a27==1)&&((!(a4==1)&&((((((((a3==6)&&((a22==1)&&!(a18==1)))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6))))&&(input==6))&&!(a6==1))&&(a20==1))&&(a12==10))&&!(a5==1)))&&!(a15==1)))&&!(a0==1))){ + if((a12==10)){ + a3 = 6; + a18 = 1; + a12 = 9; + a27 = 1; + a22 = 0; + }else{ + a15 = 1; + a22 = 1; + a6 = 1; + a3 = 6; + a12 = 9; + a18 = 0; + } + return 21; + } else if(((a20==1)&&((a3==4)&&((a12==9)&&(!(a15==1)&&(((!(a6==1)&&((a27==1)&&((a4==1)&&((input==2)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))))&&(a0==1))&&(a5==1))))))){ + if((a27==1)){ + a18 = 0; + a4 = 0; + a3 = 7; + a5 = 0; + a22 = 0; + a0 = 0; + a12 = 10; + }else{ + a5 = 0; + a3 = 5; + a12 = 11; + a0 = 0; + a22 = 0; + a15 = 1; + a18 = 0; + } + return 26; + } else if((!(a27==1)&&(!(a0==1)&&(((a6==1)&&((a5==1)&&((((!(a15==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5)))&&(a3==5))&&(a12==9))&&(a20==1))))&&!(a4==1))))){ + a18 = 1; + a3 = 6; + a5 = 0; + a15 = 1; + a22 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if(((a27==1)&&((a3==7)&&(((a20==1)&&((!(a0==1)&&((a22==1)&&(((!(a4==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a5==1))&&(a12==10))))&&(a6==1)))&&!(a15==1))))){ + a0 = 1; + a18 = 1; + a12 = 8; + a15 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((!(a0==1)&&(!(a27==1)&&((((a12==9)&&(((a6==1)&&((input==1)&&(((a3==6)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5))))))&&(a4==1)))&&(a20==1))&&!(a15==1))))&&(a5==1))){ + if((a20==1)){ + a0 = 1; + a12 = 8; + a27 = 1; + a6 = 0; + a22 = 1; + a3 = 4; + a15 = 1; + a18 = 0; + }else{ + a27 = 1; + a18 = 0; + a22 = 0; + a0 = 1; + a4 = 0; + a15 = 1; + a3 = 4; + a12 = 8; + } + return 26; + } else if(((!(a4==1)&&((a27==1)&&(((((((((a0==1)&&(input==5))&&(a15==1))&&(a3==6))&&(a6==1))&&(a22==1))&&(a12==9))&&(a5==1))&&(a20==1))))&&!(a18==1))){ + a3 = 7; + a4 = 1; + a5 = 0; + a12 = 12; + a22 = 0; + return 21; + } else if((((((a3==5)&&(!(a6==1)&&((!(a27==1)&&(((a0==1)&&((a15==1)&&((a12==10)&&(input==3))))&&!(a22==1)))&&(a20==1))))&&(a5==1))&&!(a18==1))&&(a4==1))){ + a27 = 1; + a18 = 1; + a6 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + return -1; + } else if(((((a12==8)&&(((a20==1)&&((a3==7)&&(!(a4==1)&&(((a0==1)&&((a22==1)&&((a15==1)&&(input==6))))&&(a6==1)))))&&!(a27==1)))&&(a5==1))&&!(a18==1))){ + a12 = 9; + a4 = 1; + a3 = 4; + a22 = 0; + return 21; + } else if((((((a12==8)&&(!(a18==1)&&((a0==1)&&(((a15==1)&&((!(a27==1)&&(!(a5==1)&&(input==1)))&&(a6==1)))&&!(a4==1)))))&&(a3==5))&&(a20==1))&&(a22==1))){ + a4 = 1; + a22 = 0; + a15 = 0; + a12 = 9; + a3 = 4; + return 26; + } else if((((a3==4)&&((a5==1)&&((a12==11)&&(((a22==1)&&((a0==1)&&(!(a27==1)&&(((a15==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a20==1)))))&&(a6==1)))))&&!(a4==1))){ + a18 = 1; + a4 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if(((a6==1)&&(!(a0==1)&&((((a20==1)&&((a3==7)&&(((!(a15==1)&&((((a18==1)||!(a18==1))&&(input==4))&&!(a4==1)))&&(a5==1))&&(a27==1))))&&!(a22==1))&&(a12==11))))){ + a18 = 0; + a0 = 1; + a4 = 1; + a3 = 8; + a15 = 1; + a12 = 10; + a22 = 1; + return -1; + } else if(((a20==1)&&(((!(a5==1)&&(((a3==7)&&(((a0==1)&&(!(a4==1)&&((!(a15==1)&&(input==6))&&(a18==1))))&&(a22==1)))&&(a12==12)))&&!(a6==1))&&(a27==1)))){ + a15 = 1; + a18 = 0; + a4 = 1; + a12 = 11; + a22 = 0; + return 26; + } else if(((a20==1)&&(!(a0==1)&&(((!(a4==1)&&((((a15==1)&&((a6==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==4))))&&(a12==10))&&(a3==4)))&&!(a5==1))&&!(a27==1))))){ + a3 = 6; + a6 = 0; + a4 = 1; + a0 = 1; + a12 = 12; + a15 = 0; + a22 = 0; + a18 = 0; + return -1; + } else if(((((a12==9)&&(((!(a4==1)&&((((input==2)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==5))))&&!(a5==1))&&!(a15==1)))&&(a20==1))&&!(a6==1)))&&!(a27==1))&&(a0==1))){ + a22 = 0; + a12 = 10; + a15 = 1; + a3 = 7; + a18 = 0; + return 21; + } else if((!(a15==1)&&(((((a6==1)&&((a27==1)&&(!(a0==1)&&((a12==12)&&((input==2)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1)))))))))&&(a4==1))&&!(a5==1))&&(a20==1)))){ + a3 = 6; + a6 = 0; + a22 = 0; + a18 = 1; + a12 = 8; + a5 = 1; + a15 = 1; + a0 = 1; + return 26; + } else if((((a20==1)&&(((a0==1)&&((a27==1)&&((((((((a4==1)&&(!(a22==1)&&(a18==1)))&&(a3==8))&&!(a6==1))||(!(a6==1)&&(((!(a22==1)&&!(a18==1))&&(a4==1))&&(a3==8))))||(((!(a4==1)&&((a22==1)&&(a18==1)))&&(a3==4))&&(a6==1)))&&(input==1))&&!(a15==1))))&&!(a5==1)))&&(a12==12))){ + a15 = 1; + a3 = 5; + a6 = 0; + a5 = 1; + a4 = 0; + a18 = 1; + a22 = 0; + a0 = 0; + return -1; + } else if((!(a4==1)&&(((a12==12)&&(((a20==1)&&(((((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==3))&&!(a5==1))&&!(a15==1))&&(a27==1))&&!(a0==1)))&&(a3==4)))&&(a6==1)))){ + a6 = 0; + a18 = 0; + a22 = 0; + a12 = 9; + a3 = 8; + return 21; + } else if(((!(a6==1)&&((a27==1)&&(((a20==1)&&(!(a4==1)&&(((!(a18==1)&&(((input==3)&&!(a22==1))&&(a12==10)))&&!(a0==1))&&!(a5==1))))&&(a3==5))))&&(a15==1))){ + a18 = 1; + a12 = 8; + a0 = 1; + a3 = 6; + return 26; + } else if((!(a15==1)&&(!(a5==1)&&(((!(a27==1)&&((a12==12)&&(!(a6==1)&&((a20==1)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==1))))))&&(a4==1))&&(a0==1))))){ + a12 = 8; + a18 = 0; + a6 = 1; + a15 = 1; + a3 = 8; + a4 = 0; + a22 = 0; + return -1; + } else if((((a3==6)&&(((a20==1)&&(!(a6==1)&&((a18==1)&&((a12==10)&&(!(a22==1)&&((a5==1)&&((!(a15==1)&&(input==5))&&(a4==1))))))))&&(a0==1)))&&(a27==1))){ + a5 = 0; + a27 = 0; + a4 = 0; + a3 = 5; + a12 = 9; + a6 = 1; + return 21; + } else if(((!(a0==1)&&((((a15==1)&&((a3==6)&&((((a12==12)&&(((input==6)&&(a22==1))&&!(a6==1)))&&(a27==1))&&(a5==1))))&&!(a4==1))&&(a20==1)))&&(a18==1))){ + a0 = 1; + a3 = 8; + a6 = 1; + a22 = 0; + return 26; + } else if(((a3==6)&&((a20==1)&&(((a12==8)&&(((((!(a18==1)&&(((input==6)&&(a5==1))&&!(a4==1)))&&(a15==1))&&!(a0==1))&&!(a27==1))&&!(a6==1)))&&(a22==1))))){ + a6 = 1; + a0 = 1; + a12 = 12; + a3 = 8; + return -1; + } else if(((((!(a6==1)&&(((a15==1)&&((!(a0==1)&&((input==2)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6)))))&&!(a5==1)))&&(a12==8)))&&(a27==1))&&(a20==1))&&(a4==1))){ + if((a12==9)){ + a12 = 10; + a4 = 0; + a3 = 5; + a15 = 0; + a18 = 0; + a6 = 1; + a22 = 1; + }else{ + a3 = 6; + a18 = 0; + a22 = 0; + a15 = 0; + } + return 26; + } else if((((((((a15==1)&&((((a27==1)&&((input==1)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&!(a4==1))&&(a20==1)))&&!(a6==1))&&(a0==1))&&(a3==8))&&(a12==9))&&!(a5==1))){ + a12 = 12; + a22 = 1; + a5 = 1; + a3 = 4; + a18 = 0; + return 21; + } else if(((!(a22==1)&&(!(a5==1)&&((a0==1)&&(((((a20==1)&&((!(a4==1)&&((input==4)&&((a18==1)||!(a18==1))))&&(a15==1)))&&(a12==11))&&(a3==5))&&(a6==1)))))&&(a27==1))){ + a15 = 0; + a22 = 1; + a12 = 10; + a3 = 8; + a4 = 1; + a5 = 1; + a6 = 0; + a18 = 0; + return -1; + } else if((((a12==10)&&(!(a15==1)&&((a5==1)&&(!(a27==1)&&(((((((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8))&&!(a6==1))||(((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1))))&&(a6==1)))&&(input==6))&&(a0==1))))))&&(a20==1))){ + a6 = 1; + a4 = 1; + a3 = 8; + a22 = 1; + a5 = 0; + a18 = 1; + a27 = 1; + return 26; + } else if(((a22==1)&&((a4==1)&&(!(a5==1)&&(((((((((input==6)&&((a18==1)||!(a18==1)))&&(a3==7))&&(a6==1))&&(a20==1))&&!(a0==1))&&!(a15==1))&&(a27==1))&&(a12==11)))))){ + a5 = 1; + a18 = 1; + a3 = 4; + a0 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if(((a20==1)&&((a6==1)&&(((((a12==9)&&((a0==1)&&((((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))||(((a22==1)&&!(a18==1))&&(a3==8)))&&(input==5))&&!(a4==1))))&&!(a15==1))&&(a5==1))&&!(a27==1))))){ + a22 = 0; + a4 = 1; + a18 = 0; + a3 = 7; + a6 = 0; + return 21; + } else if((!(a22==1)&&(((a20==1)&&(((!(a18==1)&&((((a12==12)&&(((a4==1)&&(input==6))&&(a0==1)))&&!(a6==1))&&!(a5==1)))&&(a3==8))&&!(a27==1)))&&!(a15==1)))){ + a22 = 1; + a18 = 1; + a5 = 1; + a6 = 1; + a27 = 1; + a15 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((((!(a27==1)&&((a4==1)&&(!(a6==1)&&((((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==1))&&!(a15==1))&&!(a5==1)))))&&(a0==1))&&(a12==10))&&(a20==1))){ + a15 = 1; + a12 = 8; + a27 = 1; + a18 = 1; + a22 = 1; + a3 = 4; + a6 = 1; + a5 = 1; + return -1; + } else if((((a27==1)&&(((a5==1)&&(((a20==1)&&(((!(a15==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==4)))&&!(a4==1))&&(a12==9)))&&!(a0==1)))&&(a3==7)))&&!(a6==1))){ + a3 = 4; + a18 = 1; + a0 = 1; + a4 = 1; + a15 = 1; + a5 = 0; + a12 = 10; + a22 = 0; + return -1; + } else if((((a20==1)&&(((((((((((a18==1)||!(a18==1))&&(input==5))&&(a12==8))&&!(a5==1))&&(a0==1))&&(a6==1))&&!(a4==1))&&!(a15==1))&&(a22==1))&&(a3==7)))&&!(a27==1))){ + a5 = 1; + a6 = 0; + a15 = 1; + a18 = 1; + a3 = 8; + a12 = 11; + a22 = 0; + a27 = 1; + a4 = 1; + return -1; + } else if(((a12==11)&&((a5==1)&&(!(a4==1)&&(((((a0==1)&&(!(a6==1)&&((input==4)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))||(((a22==1)&&!(a18==1))&&(a3==8))))))&&(a20==1))&&(a15==1))&&!(a27==1)))))){ + a22 = 1; + a12 = 12; + a5 = 0; + a3 = 7; + a18 = 1; + a27 = 1; + return -1; + } else if(((a5==1)&&((a15==1)&&((a27==1)&&(((a3==8)&&(((a20==1)&&(!(a0==1)&&((a4==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a22==1)))))&&(a12==11)))&&!(a6==1)))))){ + a22 = 0; + a18 = 0; + a0 = 1; + a12 = 12; + a3 = 6; + a6 = 1; + return 26; + } else if(((((!(a6==1)&&((a18==1)&&(((a12==12)&&(((!(a0==1)&&((input==4)&&!(a22==1)))&&(a27==1))&&(a20==1)))&&(a15==1))))&&(a4==1))&&(a3==5))&&!(a5==1))){ + a18 = 0; + a22 = 1; + a27 = 0; + a12 = 11; + a3 = 8; + a5 = 1; + a6 = 1; + return 21; + } else if((((a20==1)&&(!(a15==1)&&((!(a5==1)&&((a12==10)&&(!(a0==1)&&((((input==6)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a3==7))&&(a27==1)))))&&!(a6==1))))&&!(a4==1))){ + a0 = 1; + a3 = 4; + a18 = 0; + a22 = 1; + return 21; + } else if(((a15==1)&&((a20==1)&&((((((a4==1)&&((a3==5)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==3))&&!(a27==1))))&&(a5==1))&&!(a0==1))&&!(a6==1))&&(a12==8))))){ + if((a27==1)){ + a18 = 0; + a22 = 0; + a6 = 1; + a15 = 0; + a3 = 7; + a12 = 9; + }else{ + a22 = 1; + a0 = 1; + a18 = 0; + a27 = 1; + a3 = 7; + } + return -1; + } else if((!(a27==1)&&(((((a20==1)&&((a5==1)&&((a12==9)&&((((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||(!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1)))))&&(input==1)))))&&!(a4==1))&&!(a15==1))&&!(a0==1)))){ + if((a18==1)){ + a0 = 1; + a15 = 1; + a22 = 0; + a18 = 1; + a12 = 8; + a3 = 8; + a6 = 0; + }else{ + a0 = 1; + a12 = 8; + a3 = 7; + a6 = 1; + a15 = 1; + a27 = 1; + a4 = 1; + a18 = 0; + a22 = 0; + } + return -1; + } else if((!(a15==1)&&((a12==12)&&((a0==1)&&(((a27==1)&&((a5==1)&&((a20==1)&&((a4==1)&&((((input==3)&&((a18==1)||!(a18==1)))&&(a6==1))&&(a22==1))))))&&(a3==4)))))){ + a18 = 1; + a3 = 5; + a22 = 0; + a12 = 11; + return -1; + } else if(((a20==1)&&(((a4==1)&&((a27==1)&&((!(a5==1)&&(!(a15==1)&&(((input==5)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1)))))&&!(a0==1))))&&(a6==1))))&&(a12==10)))){ + a15 = 1; + a0 = 1; + a12 = 8; + a5 = 1; + a18 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if(((!(a15==1)&&((((((a3==4)&&((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==2))&&(a4==1))&&(a20==1)))&&(a12==11))&&!(a6==1))&&(a27==1))&&!(a5==1)))&&!(a0==1))){ + a22 = 1; + a5 = 1; + a15 = 1; + a12 = 8; + a0 = 1; + a6 = 1; + a18 = 1; + return -1; + } else if((((a20==1)&&(((a6==1)&&(((a3==6)&&(!(a4==1)&&((!(a15==1)&&(((a12==8)&&(input==5))&&(a0==1)))&&(a18==1))))&&(a22==1)))&&(a27==1)))&&!(a5==1))){ + a12 = 11; + a18 = 0; + a5 = 1; + a3 = 4; + return 21; + } else if(((a3==4)&&((a15==1)&&((((((a18==1)&&(((((a6==1)&&(input==6))&&(a12==8))&&!(a4==1))&&!(a27==1)))&&(a20==1))&&(a5==1))&&(a22==1))&&!(a0==1))))){ + a3 = 5; + a0 = 1; + a27 = 1; + return -1; + } else if((((a3==5)&&((a12==9)&&((((a20==1)&&((!(a5==1)&&(((input==1)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a0==1)))&&(a27==1)))&&(a6==1))&&!(a15==1))))&&(a4==1))){ + a18 = 1; + a12 = 8; + a0 = 1; + a3 = 4; + a22 = 1; + return 21; + } else if((((a0==1)&&(!(a4==1)&&((a15==1)&&((a20==1)&&(!(a6==1)&&((a12==10)&&((!(a27==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==6)))&&(a3==5))))))))&&!(a5==1))){ + if((a5==1)){ + a27 = 1; + a0 = 0; + a22 = 1; + a18 = 0; + a15 = 0; + a4 = 1; + a3 = 6; + a6 = 1; + }else{ + a18 = 0; + a3 = 4; + a22 = 0; + a6 = 1; + a12 = 8; + a27 = 1; + a0 = 0; + a5 = 1; + } + return 21; + } else if(((((((a20==1)&&((!(a27==1)&&(((a3==7)&&((!(a5==1)&&(input==5))&&(a4==1)))&&!(a22==1)))&&!(a18==1)))&&!(a15==1))&&(a6==1))&&(a0==1))&&(a12==12))){ + a22 = 1; + a6 = 0; + a18 = 1; + a5 = 1; + a3 = 4; + return 21; + } else if((((((!(a0==1)&&(!(a15==1)&&((a6==1)&&((((a22==1)&&((input==6)&&!(a18==1)))&&(a12==11))&&(a4==1)))))&&(a5==1))&&(a27==1))&&(a20==1))&&(a3==5))){ + a15 = 1; + a18 = 1; + a0 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((a3==6)&&(((a20==1)&&((!(a15==1)&&(!(a4==1)&&((((a5==1)&&((input==5)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&(a27==1))&&(a12==10))))&&(a0==1)))&&!(a6==1)))){ + a18 = 0; + a6 = 1; + a22 = 1; + a3 = 7; + return -1; + } else if(((a0==1)&&((a3==5)&&((a20==1)&&(((a4==1)&&((((a27==1)&&(((input==3)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&(a12==9)))&&(a15==1))&&(a6==1)))&&!(a5==1)))))){ + a12 = 8; + a22 = 0; + a18 = 0; + a27 = 0; + a5 = 1; + a15 = 0; + return 21; + } else if(((((a6==1)&&(((a20==1)&&((a5==1)&&(!(a0==1)&&((a22==1)&&(!(a27==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a12==10)))))))&&!(a4==1)))&&(a3==4))&&!(a15==1))){ + a5 = 0; + a3 = 8; + a18 = 1; + a6 = 0; + a4 = 1; + a12 = 11; + return 21; + } else if((((((a12==11)&&(((a27==1)&&(!(a5==1)&&((a3==8)&&(!(a4==1)&&(((a0==1)&&(input==3))&&!(a15==1))))))&&(a22==1)))&&!(a6==1))&&(a20==1))&&!(a18==1))){ + if((a27==1)){ + a27 = 0; + a6 = 1; + a12 = 12; + a4 = 1; + }else{ + a6 = 1; + a12 = 10; + a5 = 1; + a4 = 1; + a0 = 0; + a18 = 1; + a3 = 6; + a15 = 1; + } + return 21; + } else if((!(a5==1)&&(((a4==1)&&((a6==1)&&((a27==1)&&((a3==6)&&((a22==1)&&((a20==1)&&(((((a18==1)||!(a18==1))&&(input==1))&&!(a0==1))&&!(a15==1))))))))&&(a12==11)))){ + if((a3==6)){ + a18 = 0; + }else{ + a22 = 0; + a15 = 1; + a12 = 12; + a18 = 1; + a27 = 0; + a6 = 0; + a3 = 7; + a0 = 1; + } + return 26; + } else if(((((((((a27==1)&&((((((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==6))&&!(a6==1)))&&(a5==1))&&(a15==1))&&!(a0==1))&&(a20==1))&&!(a4==1))&&(a12==9))){ + a4 = 1; + a0 = 1; + a18 = 0; + a3 = 6; + a12 = 11; + a22 = 1; + a15 = 0; + a6 = 1; + return 26; + } else if((((a20==1)&&((a27==1)&&(!(a5==1)&&(!(a4==1)&&(((!(a15==1)&&(((((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==2)))&&(a6==1))&&(a12==10))))))&&!(a0==1))){ + a0 = 1; + a3 = 8; + a22 = 1; + a18 = 0; + a5 = 1; + return -1; + } else if(((((((((((input==4)&&(((a3==5)&&((a22==1)&&!(a18==1)))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5)))))&&(a12==9))&&(a20==1))&&(a5==1))&&!(a27==1))&&!(a6==1))&&!(a15==1))&&(a4==1))&&!(a0==1))){ + a18 = 0; + a5 = 0; + a4 = 0; + a27 = 1; + a15 = 1; + a12 = 8; + a22 = 0; + a3 = 7; + return 21; + } else if(((((((((((a18==1)&&(((input==2)&&(a22==1))&&!(a0==1)))&&!(a6==1))&&(a12==12))&&(a27==1))&&(a3==7))&&(a20==1))&&!(a4==1))&&!(a15==1))&&!(a5==1))){ + a3 = 6; + a0 = 1; + a12 = 10; + return -1; + } else if((((((a3==8)&&(((a27==1)&&((a22==1)&&((a18==1)&&((((a20==1)&&(input==5))&&(a0==1))&&!(a6==1)))))&&(a15==1)))&&!(a5==1))&&!(a4==1))&&(a12==11))){ + a22 = 0; + a27 = 0; + a3 = 5; + a6 = 1; + return 26; + } else if((!(a6==1)&&((a20==1)&&((!(a4==1)&&(((a12==8)&&(!(a0==1)&&((a3==4)&&(!(a5==1)&&((a27==1)&&((input==5)&&((a18==1)||!(a18==1))))))))&&!(a15==1)))&&!(a22==1))))){ + a15 = 1; + a22 = 1; + a0 = 1; + a5 = 1; + a6 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if(((!(a5==1)&&(((a27==1)&&((!(a15==1)&&((!(a0==1)&&((((input==5)&&((a18==1)||!(a18==1)))&&(a4==1))&&(a20==1)))&&!(a6==1)))&&(a22==1)))&&(a3==5)))&&(a12==12))){ + a4 = 0; + a3 = 8; + a18 = 1; + a5 = 1; + a15 = 1; + a12 = 8; + a6 = 1; + a0 = 1; + return -1; + } else if(((a12==8)&&((a6==1)&&(((a20==1)&&((a5==1)&&((a3==4)&&((!(a0==1)&&((((input==2)&&((a18==1)||!(a18==1)))&&(a27==1))&&(a22==1)))&&!(a15==1)))))&&(a4==1))))){ + a15 = 1; + a0 = 1; + a18 = 1; + return -1; + } else if(((!(a0==1)&&((a6==1)&&((((a15==1)&&(((a12==8)&&((((a3==6)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5))))&&(input==4)))&&(a27==1)))&&(a20==1))&&(a4==1))))&&!(a5==1))){ + a22 = 1; + a12 = 10; + a3 = 5; + a18 = 0; + a0 = 1; + return -1; + } else if((((a12==11)&&((a0==1)&&((a6==1)&&(((((((((!(a22==1)&&(a18==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==1))&&(a20==1))&&!(a5==1))&&(a27==1))&&(a4==1)))))&&!(a15==1))){ + a18 = 1; + a5 = 1; + a15 = 1; + a3 = 6; + a22 = 0; + a6 = 0; + return -1; + } return calculate_output44(input); + } + + int calculate_output44(int input) { + if((!(a4==1)&&((!(a0==1)&&((((a3==4)&&(((((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==5))&&!(a27==1))&&(a15==1))&&(a12==11)))&&(a6==1))&&(a20==1)))&&(a5==1)))){ + if((a4==1)){ + a22 = 0; + a12 = 10; + a18 = 1; + }else{ + a22 = 0; + a0 = 1; + a18 = 1; + a27 = 1; + a3 = 6; + a5 = 0; + } + return -1; + } else if(((((a4==1)&&((!(a15==1)&&(!(a6==1)&&((a5==1)&&(((a18==1)&&((a3==6)&&((input==3)&&(a0==1))))&&(a20==1)))))&&(a12==8)))&&!(a22==1))&&!(a27==1))){ + a22 = 1; + a27 = 1; + a6 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if(((a20==1)&&(((a0==1)&&((a12==11)&&((!(a4==1)&&((((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1)))&&(input==3))&&!(a27==1)))&&!(a5==1))))&&(a15==1)))){ + a12 = 10; + a15 = 0; + a4 = 1; + a6 = 1; + a18 = 0; + a3 = 4; + a22 = 1; + return -1; + } else if((((a3==6)&&(!(a15==1)&&(!(a5==1)&&((a22==1)&&((a12==10)&&((!(a0==1)&&(((a6==1)&&((input==5)&&((a18==1)||!(a18==1))))&&!(a4==1)))&&!(a27==1)))))))&&(a20==1))){ + a0 = 1; + a18 = 1; + a15 = 1; + a3 = 7; + return -1; + } else if(((a4==1)&&((((!(a22==1)&&(!(a6==1)&&((a18==1)&&(((a12==12)&&(((a3==6)&&(input==1))&&(a15==1)))&&(a20==1)))))&&(a27==1))&&(a5==1))&&!(a0==1)))){ + a3 = 5; + a22 = 1; + a12 = 10; + a0 = 1; + return -1; + } else if(((a0==1)&&(!(a6==1)&&(((!(a4==1)&&((a12==9)&&(!(a22==1)&&((((a20==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a5==1))&&(a3==6)))))&&!(a27==1))&&(a15==1))))){ + a22 = 1; + a18 = 0; + a15 = 0; + a3 = 5; + a27 = 1; + a4 = 1; + a12 = 10; + return -1; + } else if((((a3==4)&&(((a22==1)&&((((a15==1)&&((a12==10)&&((!(a0==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&!(a27==1))))&&!(a5==1))&&!(a6==1)))&&(a20==1)))&&!(a4==1))){ + if((a5==1)){ + a0 = 1; + a4 = 1; + a3 = 6; + a5 = 1; + a27 = 1; + a6 = 1; + a18 = 1; + a12 = 8; + }else{ + a22 = 0; + a18 = 0; + a0 = 1; + a27 = 1; + a15 = 0; + a12 = 12; + a3 = 5; + } + return 26; + } else if(((a12==11)&&(((!(a0==1)&&(((((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a20==1))&&(a4==1))&&(a27==1))&&(a3==5))&&(a6==1)))&&(a5==1))&&(a15==1)))){ + a12 = 8; + a22 = 1; + a3 = 4; + a18 = 1; + a0 = 1; + return -1; + } else if((((!(a27==1)&&(!(a15==1)&&(!(a4==1)&&((!(a0==1)&&(((((input==1)&&!(a18==1))&&(a20==1))&&(a6==1))&&(a3==5)))&&!(a5==1)))))&&(a12==10))&&!(a22==1))){ + if((a3==5)){ + a12 = 8; + a27 = 1; + a18 = 1; + a0 = 1; + a3 = 4; + a4 = 1; + a15 = 1; + a5 = 1; + }else{ + a18 = 1; + a15 = 1; + a3 = 7; + a6 = 0; + } + return 26; + } else if((!(a6==1)&&((a20==1)&&(!(a4==1)&&((!(a15==1)&&((a0==1)&&(((a27==1)&&(((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1))))||((a3==7)&&((a22==1)&&!(a18==1))))&&(input==2)))&&(a5==1))))&&(a12==11)))))){ + a12 = 10; + a22 = 1; + a3 = 8; + a18 = 1; + return -1; + } else if((((((a12==11)&&((((a4==1)&&((((((a18==1)||!(a18==1))&&(input==1))&&(a27==1))&&(a20==1))&&(a5==1)))&&!(a6==1))&&(a3==8)))&&(a15==1))&&(a0==1))&&!(a22==1))){ + a15 = 0; + a12 = 10; + a22 = 1; + a18 = 0; + a3 = 7; + return -1; + } else if(((!(a5==1)&&((a0==1)&&((a20==1)&&((!(a15==1)&&((a12==9)&&(((input==2)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6))))&&!(a4==1))))&&(a6==1)))))&&!(a27==1))){ + a18 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + a15 = 1; + a27 = 1; + a4 = 1; + a5 = 1; + return -1; + } else if((((a6==1)&&(((((!(a0==1)&&(!(a4==1)&&((((input==3)&&!(a5==1))&&(a12==11))&&!(a22==1))))&&(a3==8))&&(a15==1))&&(a18==1))&&(a20==1)))&&!(a27==1))){ + if((a27==1)){ + a27 = 1; + a0 = 1; + a3 = 4; + a6 = 0; + a12 = 8; + a5 = 1; + a22 = 1; + }else{ + a5 = 1; + a6 = 0; + a4 = 1; + a22 = 1; + a3 = 5; + a0 = 1; + a27 = 1; + a12 = 8; + } + return -1; + } else if(((a20==1)&&((a27==1)&&((a5==1)&&(!(a22==1)&&(((((((a4==1)&&((a3==7)&&(input==3)))&&(a18==1))&&(a15==1))&&(a0==1))&&(a12==9))&&!(a6==1))))))){ + a12 = 12; + a4 = 0; + a3 = 8; + a22 = 1; + return 24; + } else if(((((a22==1)&&((a5==1)&&((!(a0==1)&&((a15==1)&&(((a6==1)&&((((a18==1)||!(a18==1))&&(input==6))&&(a20==1)))&&(a4==1))))&&(a12==11))))&&(a27==1))&&(a3==4))){ + a18 = 1; + a5 = 0; + a6 = 0; + a12 = 12; + a0 = 1; + return 26; + } else if(((a20==1)&&(!(a27==1)&&((!(a4==1)&&((a5==1)&&(!(a0==1)&&((a12==8)&&(!(a15==1)&&((((input==1)&&((a18==1)||!(a18==1)))&&(a6==1))&&(a22==1)))))))&&(a3==6))))){ + if((a22==1)){ + a6 = 0; + a27 = 1; + a3 = 7; + a4 = 1; + a15 = 1; + a0 = 1; + a18 = 1; + }else{ + a0 = 1; + a15 = 1; + a4 = 1; + a18 = 1; + a27 = 1; + } + return -1; + } else if(((((((((a3==4)&&(!(a5==1)&&(((a12==9)&&((a18==1)&&(input==3)))&&!(a15==1))))&&!(a27==1))&&(a22==1))&&(a0==1))&&(a20==1))&&!(a4==1))&&(a6==1))){ + a4 = 1; + a27 = 1; + a12 = 8; + a5 = 1; + a15 = 1; + return -1; + } else if(((!(a5==1)&&((((a20==1)&&(((!(a4==1)&&(!(a15==1)&&((a12==12)&&((input==6)&&!(a22==1)))))&&!(a18==1))&&(a27==1)))&&!(a0==1))&&(a3==6)))&&!(a6==1))){ + if((a6==1)){ + a18 = 1; + a12 = 9; + }else{ + a4 = 1; + a3 = 5; + a5 = 1; + a12 = 8; + a15 = 1; + a0 = 1; + } + return 24; + } else if(((a3==5)&&(!(a5==1)&&(((a12==11)&&((((a0==1)&&(((a6==1)&&((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a4==1)))&&!(a15==1))&&!(a27==1)))&&(a20==1))))){ + a22 = 0; + a27 = 1; + a15 = 1; + a5 = 1; + a3 = 8; + a18 = 1; + return 26; + } else if(((a12==10)&&((a3==4)&&((a4==1)&&(!(a27==1)&&(!(a0==1)&&(!(a6==1)&&((!(a22==1)&&((a20==1)&&((((a18==1)||!(a18==1))&&(input==4))&&!(a15==1))))&&!(a5==1))))))))){ + a3 = 8; + a18 = 0; + a15 = 1; + a5 = 1; + a12 = 8; + a0 = 1; + a27 = 1; + return -1; + } else if(((a3==4)&&((((((a5==1)&&((((((input==4)&&((a18==1)||!(a18==1)))&&!(a15==1))&&(a0==1))&&(a12==12))&&(a27==1)))&&(a6==1))&&(a20==1))&&(a4==1))&&(a22==1)))){ + a15 = 1; + a27 = 0; + a18 = 0; + a4 = 0; + a3 = 7; + return 26; + } else if((((((!(a15==1)&&(!(a27==1)&&((!(a5==1)&&((a6==1)&&((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&(a20==1))))&&(a3==7))&&(a12==12))&&(a0==1))&&(a4==1))){ + a12 = 8; + a15 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a5 = 1; + a27 = 1; + return -1; + } else if((((!(a27==1)&&((a3==7)&&(((a22==1)&&(!(a4==1)&&((a20==1)&&((((input==2)&&(a12==8))&&!(a18==1))&&!(a6==1)))))&&!(a15==1))))&&!(a5==1))&&!(a0==1))){ + a6 = 1; + a18 = 1; + return -1; + } else if(((!(a27==1)&&(((((((((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a6==1))&&(a3==6))&&(a12==11))&&(a5==1))&&!(a4==1))&&(a15==1))&&!(a0==1)))&&(a20==1))){ + if((a27==1)){ + a22 = 0; + a12 = 12; + a27 = 1; + a0 = 1; + a3 = 7; + a18 = 1; + a4 = 1; + }else{ + a4 = 1; + a22 = 0; + a0 = 1; + a27 = 1; + a3 = 7; + a18 = 0; + a6 = 0; + a12 = 8; + } + return -1; + } else if(((a3==8)&&((!(a6==1)&&(((!(a5==1)&&(((a20==1)&&(((input==1)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a4==1)))&&(a12==12)))&&!(a0==1))&&!(a15==1)))&&(a27==1)))){ + a18 = 0; + a4 = 1; + a12 = 11; + a6 = 1; + a0 = 1; + a22 = 1; + return 21; + } else if(((a3==7)&&(((((a0==1)&&(!(a27==1)&&((a22==1)&&((a15==1)&&(!(a6==1)&&(!(a18==1)&&(!(a4==1)&&(input==6))))))))&&(a12==12))&&(a20==1))&&!(a5==1)))){ + a4 = 1; + a6 = 1; + a3 = 6; + a22 = 0; + a27 = 1; + return 21; + } else if((((a4==1)&&((a3==8)&&((((a15==1)&&((a20==1)&&(((a6==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&(a0==1)))&&(a12==8))))&&(a27==1))&&!(a5==1))))&&(a22==1))){ + if((a27==1)){ + a22 = 0; + a18 = 1; + a3 = 7; + a5 = 1; + a12 = 10; + a0 = 0; + }else{ + a4 = 0; + a18 = 1; + a12 = 9; + a15 = 0; + a3 = 5; + } + return 26; + } else if((!(a27==1)&&((((a15==1)&&((a6==1)&&((a5==1)&&((((a20==1)&&((a0==1)&&((a3==7)&&(input==3))))&&(a12==8))&&(a22==1)))))&&!(a4==1))&&!(a18==1)))){ + a18 = 1; + a6 = 0; + a12 = 10; + a4 = 1; + a5 = 0; + a27 = 1; + a22 = 0; + return -1; + } else if(((a3==8)&&(((a0==1)&&((!(a6==1)&&(((a20==1)&&((((a5==1)&&((input==2)&&((a18==1)||!(a18==1))))&&(a27==1))&&(a12==12)))&&!(a4==1)))&&!(a22==1)))&&(a15==1)))){ + a15 = 0; + a22 = 1; + a12 = 10; + a18 = 0; + return -1; + } else if(((a4==1)&&((((a18==1)&&(((!(a5==1)&&((a22==1)&&((!(a27==1)&&((input==3)&&!(a15==1)))&&!(a0==1))))&&(a6==1))&&(a3==6)))&&(a20==1))&&(a12==10)))){ + if((a6==1)){ + a22 = 0; + a12 = 9; + a3 = 4; + a0 = 1; + }else{ + a5 = 1; + a22 = 0; + a12 = 8; + a3 = 8; + a15 = 1; + a27 = 1; + a0 = 1; + a4 = 0; + } + return 24; + } else if((!(a0==1)&&((((a20==1)&&(!(a4==1)&&(((a18==1)&&((a3==8)&&((a27==1)&&(!(a5==1)&&((input==5)&&(a6==1))))))&&!(a15==1))))&&(a12==10))&&(a22==1)))){ + a18 = 0; + a0 = 1; + return 26; + } else if((((a20==1)&&(((!(a5==1)&&((a27==1)&&(!(a6==1)&&((!(a4==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a22==1)))&&(a12==9)))))&&(a0==1))&&(a15==1)))&&(a3==5))){ + a18 = 1; + return 26; + } else if(((!(a15==1)&&((a3==7)&&(((((a27==1)&&((a5==1)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==4))&&(a12==8))))&&!(a4==1))&&(a0==1))&&(a20==1))))&&!(a6==1))){ + a12 = 9; + a4 = 1; + a15 = 1; + a5 = 0; + a3 = 6; + a18 = 0; + a22 = 1; + return 26; + } else if(((a12==11)&&((((((a15==1)&&((((a3==6)&&(((input==4)&&((a18==1)||!(a18==1)))&&!(a5==1)))&&(a27==1))&&!(a4==1)))&&(a22==1))&&(a6==1))&&!(a0==1))&&(a20==1)))){ + a18 = 1; + a0 = 1; + a3 = 4; + a4 = 1; + a12 = 8; + a5 = 1; + return -1; + } else if((((a5==1)&&(!(a4==1)&&(((a6==1)&&(((a12==11)&&(((!(a18==1)&&((input==5)&&(a0==1)))&&!(a27==1))&&(a3==5)))&&!(a22==1)))&&(a20==1))))&&!(a15==1))){ + a4 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a15 = 1; + a27 = 1; + return -1; + } else if(((a6==1)&&((!(a15==1)&&((a20==1)&&((((a12==10)&&((a4==1)&&((input==3)&&(((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==8))))))&&!(a27==1))&&(a0==1))))&&!(a5==1)))){ + a22 = 1; + a27 = 1; + a18 = 1; + a5 = 1; + a0 = 0; + a3 = 4; + return 26; + } else if(((((a20==1)&&(!(a6==1)&&((((a5==1)&&(((a0==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a3==6)))&&(a12==11)))&&(a27==1))&&!(a4==1))))&&(a15==1))&&!(a22==1))){ + if((a5==1)){ + a15 = 0; + a5 = 0; + a18 = 0; + a0 = 0; + a12 = 10; + }else{ + a15 = 0; + a22 = 1; + a12 = 10; + a18 = 0; + a4 = 1; + } + return -1; + } else if(((!(a5==1)&&(!(a4==1)&&(((a0==1)&&((a12==10)&&((a15==1)&&((((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a20==1))&&(a27==1)))))&&(a3==8))))&&(a6==1))){ + a5 = 1; + a22 = 0; + a15 = 0; + a18 = 1; + a6 = 0; + return -1; + } else if((!(a0==1)&&((a6==1)&&((a12==10)&&((a27==1)&&(!(a4==1)&&((a20==1)&&(((a5==1)&&(((((a22==1)&&(a18==1))&&(a3==7))||(((!(a22==1)&&(a18==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6))))&&(input==3)))&&(a15==1))))))))){ + a18 = 1; + a12 = 12; + a22 = 1; + a0 = 1; + a3 = 8; + a5 = 0; + a4 = 1; + return 21; + } else if(((a12==9)&&((a0==1)&&((a5==1)&&((a22==1)&&(!(a4==1)&&(!(a15==1)&&((((((a20==1)&&(input==2))&&!(a18==1))&&!(a27==1))&&(a6==1))&&(a3==5))))))))){ + a12 = 10; + a27 = 1; + a0 = 0; + a3 = 4; + a18 = 1; + a22 = 0; + a4 = 1; + a5 = 0; + return 21; + } else if((((!(a6==1)&&((((!(a0==1)&&((((a27==1)&&((a15==1)&&(input==2)))&&(a12==9))&&(a20==1)))&&!(a4==1))&&(a3==7))&&(a22==1)))&&!(a18==1))&&(a5==1))){ + a22 = 0; + a3 = 5; + a18 = 1; + a0 = 1; + a27 = 0; + return 21; + } else if(((((a20==1)&&(((a4==1)&&(((a0==1)&&((input==6)&&(((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1)))))&&(a15==1)))&&!(a27==1)))&&(a12==9))&&!(a5==1))){ + a18 = 1; + a12 = 11; + a22 = 1; + a6 = 1; + a15 = 0; + a5 = 1; + a3 = 8; + a27 = 1; + a4 = 0; + return 26; + } else if(((a12==12)&&((!(a0==1)&&((a6==1)&&(((a20==1)&&((!(a15==1)&&(((a3==4)&&((input==1)&&((a18==1)||!(a18==1))))&&(a4==1)))&&(a5==1)))&&(a22==1))))&&(a27==1)))){ + a22 = 0; + a5 = 0; + a12 = 8; + a4 = 0; + a3 = 5; + a18 = 0; + a0 = 1; + a27 = 0; + return 26; + } else if(((a18==1)&&((a20==1)&&(((a6==1)&&(!(a15==1)&&((a12==12)&&(!(a27==1)&&((a3==7)&&(((a4==1)&&((a22==1)&&(input==5)))&&(a5==1)))))))&&(a0==1))))){ + a3 = 4; + a12 = 10; + a6 = 0; + a5 = 0; + a4 = 0; + return -1; + } else if((((((((!(a15==1)&&((a27==1)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==5))))&&!(a6==1))&&!(a4==1))&&(a12==11))&&(a20==1))&&!(a5==1))&&(a0==1))){ + a18 = 0; + a27 = 0; + a3 = 4; + a22 = 0; + return 21; + } else if(((a20==1)&&((!(a18==1)&&((a3==5)&&(!(a22==1)&&(((a15==1)&&((a6==1)&&((!(a27==1)&&(!(a4==1)&&(input==3)))&&(a12==12))))&&(a5==1)))))&&(a0==1)))){ + a18 = 1; + a4 = 1; + a27 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((!(a27==1)&&((a20==1)&&((a12==8)&&((a5==1)&&(((!(a6==1)&&((a3==8)&&(!(a4==1)&&((!(a18==1)&&!(a22==1))&&(a15==1)))))||((a6==1)&&((a3==4)&&((((a22==1)&&(a18==1))&&!(a15==1))&&(a4==1)))))&&(input==6))))))&&(a0==1))){ + a5 = 0; + a4 = 0; + a22 = 0; + a15 = 1; + a6 = 1; + a12 = 10; + a3 = 5; + a18 = 0; + return 21; + } else if(((a3==5)&&((((((a5==1)&&(!(a27==1)&&(((a6==1)&&((input==6)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a0==1))))&&(a12==8))&&(a20==1))&&!(a15==1))&&(a4==1)))){ + a22 = 0; + a4 = 0; + a12 = 11; + a18 = 0; + a5 = 0; + return 26; + } else if(((((!(a27==1)&&((a3==5)&&((a20==1)&&((((((a6==1)&&(input==5))&&!(a5==1))&&(a22==1))&&(a12==8))&&!(a18==1)))))&&!(a4==1))&&(a0==1))&&(a15==1))){ + a3 = 7; + a5 = 1; + a12 = 10; + return 26; + } else if((((a5==1)&&((a18==1)&&(((a6==1)&&(((((a20==1)&&((a27==1)&&((input==5)&&(a0==1))))&&(a12==9))&&(a4==1))&&(a3==7)))&&(a15==1))))&&!(a22==1))){ + if((a12==10)){ + a0 = 0; + a6 = 0; + a5 = 0; + a18 = 0; + a22 = 1; + }else{ + a6 = 0; + a12 = 11; + a15 = 0; + a5 = 0; + a3 = 5; + a4 = 0; + a22 = 1; + } + return 26; + } else if(((a4==1)&&((a15==1)&&(((((a5==1)&&(((a3==7)&&((!(a6==1)&&((a18==1)&&(input==3)))&&!(a27==1)))&&(a22==1)))&&!(a0==1))&&(a12==10))&&(a20==1))))){ + a0 = 1; + a6 = 1; + a18 = 0; + a22 = 0; + a4 = 0; + a27 = 1; + a12 = 8; + return 24; + } else if((!(a0==1)&&(((((a4==1)&&((a15==1)&&(!(a5==1)&&(((a12==12)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6)))&&(a6==1)))))&&(a20==1))&&(a3==4))&&(a27==1)))){ + a0 = 1; + a27 = 0; + a6 = 0; + a22 = 1; + a3 = 5; + a4 = 0; + a5 = 1; + a18 = 1; + a12 = 11; + return 21; + } else if((!(a27==1)&&((a20==1)&&((a4==1)&&((a0==1)&&(((a12==11)&&((!(a5==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==1))&&(a3==7)))&&!(a15==1)))&&(a6==1))))))){ + a12 = 8; + a22 = 1; + a15 = 1; + a3 = 4; + a18 = 1; + a5 = 1; + a27 = 1; + return -1; + } else if((!(a15==1)&&(!(a0==1)&&((a12==10)&&(((a20==1)&&((!(a4==1)&&(((a27==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==6)))&&(a3==4)))&&!(a6==1)))&&!(a5==1)))))){ + a3 = 7; + a18 = 1; + a12 = 9; + a22 = 0; + a0 = 1; + return 24; + } else if(((!(a0==1)&&(!(a18==1)&&(((a5==1)&&(((a22==1)&&(((a3==6)&&(((input==6)&&!(a15==1))&&!(a6==1)))&&(a12==8)))&&!(a27==1)))&&(a20==1))))&&(a4==1))){ + a3 = 4; + a18 = 1; + a0 = 1; + a15 = 1; + a27 = 1; + a6 = 1; + return -1; + } else if(((!(a22==1)&&((!(a4==1)&&((((a20==1)&&((a0==1)&&((a6==1)&&((a5==1)&&(((a18==1)||!(a18==1))&&(input==2))))))&&(a12==10))&&(a3==4)))&&!(a27==1)))&&!(a15==1))){ + a4 = 1; + a27 = 1; + a18 = 1; + a22 = 1; + return 21; + } else if(((!(a4==1)&&((a20==1)&&((!(a5==1)&&(!(a0==1)&&((((((input==4)&&((a18==1)||!(a18==1)))&&(a12==11))&&(a22==1))&&(a6==1))&&(a15==1))))&&(a3==8))))&&(a27==1))){ + a18 = 1; + a5 = 1; + a0 = 1; + a3 = 6; + a12 = 10; + a22 = 0; + return 21; + } else if((((a3==5)&&((a20==1)&&((!(a22==1)&&((a5==1)&&((a6==1)&&(((((a12==8)&&(input==4))&&!(a0==1))&&(a18==1))&&(a27==1)))))&&(a4==1))))&&!(a15==1))){ + a27 = 0; + a3 = 7; + a12 = 9; + a0 = 1; + a22 = 1; + a5 = 0; + return -1; + } else if(((((!(a0==1)&&(((((input==4)&&((!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4)))||(((((a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1)))))))&&(a12==12))&&(a27==1))&&(a20==1)))&&(a4==1))&&(a5==1))&&(a15==1))){ + a0 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a6 = 1; + a22 = 1; + return -1; + } else if(((!(a5==1)&&((a12==8)&&((!(a0==1)&&(((!(a6==1)&&((!(a4==1)&&((a15==1)&&(!(a22==1)&&!(a18==1))))&&(a3==8)))||((a6==1)&&(((!(a15==1)&&((a22==1)&&(a18==1)))&&(a4==1))&&(a3==4))))&&(input==5)))&&(a20==1))))&&(a27==1))){ + a5 = 1; + a27 = 0; + a6 = 1; + a0 = 1; + a15 = 1; + a3 = 8; + a22 = 0; + a12 = 11; + a4 = 0; + a18 = 0; + return 21; + } else if((((a20==1)&&((((!(a4==1)&&((((a12==9)&&((input==2)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))&&(a5==1))&&(a3==6)))&&(a15==1))&&(a6==1))&&(a27==1)))&&!(a0==1))){ + a0 = 1; + a18 = 1; + a15 = 0; + a4 = 1; + a22 = 0; + a12 = 10; + return -1; + } else if(((a0==1)&&((((a6==1)&&((a5==1)&&(!(a18==1)&&((a22==1)&&((a3==6)&&((a20==1)&&((a27==1)&&((input==6)&&!(a4==1)))))))))&&(a12==11))&&!(a15==1)))){ + a3 = 4; + a18 = 1; + a15 = 1; + a4 = 1; + a12 = 8; + return -1; + } else if(((a0==1)&&((a20==1)&&((a27==1)&&(((((a3==4)&&((a4==1)&&((a12==9)&&(((a5==1)&&((a22==1)&&(a18==1)))&&(a15==1)))))&&(a6==1))||((!(a6==1)&&((!(a4==1)&&((a12==8)&&(((!(a22==1)&&(a18==1))&&!(a5==1))&&!(a15==1))))&&(a3==8)))||(!(a6==1)&&((!(a4==1)&&((a12==8)&&((!(a5==1)&&(!(a22==1)&&!(a18==1)))&&!(a15==1))))&&(a3==8)))))&&(input==6)))))){ + a22 = 1; + a0 = 0; + a5 = 1; + a18 = 1; + a4 = 1; + a3 = 5; + a6 = 1; + a15 = 0; + a12 = 10; + return 21; + } else if(((a20==1)&&((!(a6==1)&&(((((a4==1)&&((((((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a22==1)&&!(a18==1))))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==4))&&!(a27==1)))&&(a15==1))&&!(a5==1))&&(a0==1)))&&(a12==8)))){ + a18 = 0; + a5 = 1; + a12 = 11; + a22 = 1; + a15 = 0; + a3 = 5; + a27 = 1; + return 21; + } else if((!(a15==1)&&(!(a5==1)&&((((a6==1)&&((a3==7)&&(((a12==12)&&((a4==1)&&((input==2)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&!(a27==1))))&&(a20==1))&&(a0==1))))){ + a3 = 4; + a12 = 8; + a15 = 1; + a5 = 1; + a18 = 1; + a27 = 1; + a22 = 1; + return -1; + } else if((!(a5==1)&&(((a6==1)&&((a20==1)&&((((a18==1)&&((a0==1)&&(!(a27==1)&&((a3==5)&&((input==4)&&(a22==1))))))&&(a12==8))&&!(a4==1))))&&(a15==1)))){ + a27 = 1; + a3 = 4; + a4 = 1; + a5 = 1; + return -1; + } else if((!(a27==1)&&(((a15==1)&&((a12==11)&&((a4==1)&&(((!(a0==1)&&((input==5)&&(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1))))))&&!(a6==1))&&(a20==1)))))&&!(a5==1)))){ + a3 = 8; + a18 = 0; + a15 = 0; + a6 = 1; + a0 = 1; + a22 = 1; + return -1; + } else if((!(a5==1)&&((((a4==1)&&((a20==1)&&(!(a22==1)&&(((!(a0==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&!(a27==1)))&&(a15==1))&&(a3==4)))))&&(a12==11))&&!(a6==1)))){ + a12 = 8; + a22 = 1; + a6 = 1; + a27 = 1; + a18 = 1; + a3 = 5; + a5 = 1; + a0 = 1; + return 26; + } else if(((a6==1)&&((a4==1)&&((a3==7)&&((!(a22==1)&&(!(a15==1)&&((((a20==1)&&(!(a18==1)&&((a12==12)&&(input==4))))&&(a0==1))&&!(a5==1))))&&!(a27==1)))))){ + a6 = 0; + a3 = 5; + a22 = 1; + return -1; + } else if((((a15==1)&&(((a5==1)&&((!(a6==1)&&(!(a27==1)&&((!(a18==1)&&((a0==1)&&((input==4)&&(a3==7))))&&!(a4==1))))&&(a20==1)))&&(a12==8)))&&!(a22==1))){ + a6 = 1; + a4 = 1; + a18 = 1; + a22 = 1; + a3 = 8; + a15 = 0; + a12 = 10; + return 21; + } else if((((((a0==1)&&((a12==10)&&((a4==1)&&(((a15==1)&&(((input==4)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&(a20==1)))&&(a3==8)))))&&!(a27==1))&&(a5==1))&&(a6==1))){ + a15 = 0; + a3 = 7; + a18 = 0; + a6 = 0; + a12 = 9; + a22 = 0; + return 21; + } else if((!(a15==1)&&(((((a20==1)&&(((!(a6==1)&&(!(a22==1)&&(((input==1)&&(a3==8))&&(a0==1))))&&!(a18==1))&&(a5==1)))&&(a27==1))&&(a4==1))&&(a12==11)))){ + a4 = 0; + a12 = 10; + a15 = 1; + a18 = 1; + return -1; + } else if(((((a22==1)&&(!(a15==1)&&((!(a0==1)&&(!(a27==1)&&(((a12==9)&&(((input==2)&&(a3==8))&&(a20==1)))&&!(a4==1))))&&(a5==1))))&&(a6==1))&&(a18==1))){ + a18 = 0; + a3 = 6; + a27 = 1; + a5 = 0; + return -1; + } else if(((a0==1)&&(!(a27==1)&&((a12==11)&&((!(a4==1)&&(((((input==6)&&(((a3==5)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))))&&(a20==1))&&(a5==1))&&!(a15==1)))&&!(a6==1)))))){ + if((a3==5)){ + a0 = 0; + a6 = 1; + a5 = 0; + a18 = 1; + a3 = 7; + a15 = 1; + a22 = 0; + a27 = 1; + a4 = 1; + }else{ + a27 = 1; + a22 = 0; + a3 = 6; + a12 = 12; + a18 = 0; + } + return 26; + } else if((((a12==10)&&(((!(a0==1)&&((a15==1)&&((((input==2)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))||((a3==7)&&(!(a18==1)&&(a22==1)))))&&!(a4==1))&&(a20==1))))&&(a27==1))&&!(a5==1)))&&(a6==1))){ + a0 = 1; + a18 = 0; + a5 = 1; + a3 = 7; + a22 = 0; + a6 = 0; + return -1; + } else if(((((a20==1)&&(((((a15==1)&&((((((a18==1)||!(a18==1))&&(input==5))&&!(a4==1))&&(a3==4))&&(a5==1)))&&(a0==1))&&(a27==1))&&(a12==12)))&&!(a6==1))&&(a22==1))){ + a22 = 0; + a18 = 1; + a6 = 1; + return -1; + } else if(((((a20==1)&&(((a15==1)&&(((a22==1)&&((a5==1)&&((((input==1)&&((a18==1)||!(a18==1)))&&!(a6==1))&&(a0==1))))&&(a12==11)))&&!(a27==1)))&&!(a4==1))&&(a3==5))){ + a18 = 1; + a12 = 10; + a27 = 1; + a4 = 1; + a22 = 0; + a15 = 0; + a3 = 6; + return -1; + } else if((((((a3==7)&&(!(a27==1)&&((a22==1)&&(((!(a6==1)&&((a5==1)&&(!(a18==1)&&(input==2))))&&!(a0==1))&&(a20==1)))))&&!(a4==1))&&(a12==11))&&(a15==1))){ + if((a12==11)){ + a18 = 1; + a27 = 1; + a0 = 1; + a3 = 4; + a12 = 8; + a6 = 1; + }else{ + a22 = 0; + a3 = 6; + a18 = 1; + a15 = 0; + } + return 26; + } else if(((a20==1)&&((a4==1)&&(((a15==1)&&(((a12==11)&&(((input==6)&&((!(a6==1)&&((a3==4)&&((a22==1)&&!(a18==1))))||(((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1)))))&&!(a27==1)))&&!(a0==1)))&&(a5==1))))){ + a12 = 10; + a18 = 0; + a6 = 1; + a22 = 1; + a3 = 5; + return 26; + } else if((((!(a27==1)&&(!(a6==1)&&(!(a5==1)&&(((a0==1)&&((a20==1)&&((input==4)&&(((a3==8)&&((a18==1)&&(a22==1)))||(((a3==7)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==7)))))))&&!(a4==1)))))&&!(a15==1))&&(a12==10))){ + if((a3==4)){ + a3 = 5; + a22 = 0; + a18 = 1; + a12 = 12; + a6 = 1; + a4 = 1; + }else{ + a6 = 1; + a27 = 1; + a12 = 11; + a15 = 1; + a5 = 1; + a3 = 6; + a18 = 0; + a22 = 0; + } + return 21; + } else if((((a4==1)&&((a27==1)&&((((!(a15==1)&&((a3==4)&&((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==1))&&!(a5==1))))&&(a12==9))&&(a0==1))&&!(a6==1))))&&(a20==1))){ + if((a20==1)){ + a22 = 1; + a5 = 1; + a12 = 8; + a0 = 0; + a6 = 1; + a18 = 0; + }else{ + a4 = 0; + a3 = 8; + a18 = 0; + a27 = 0; + a12 = 8; + a22 = 0; + } + return 21; + } else if((((a12==11)&&(((a15==1)&&(((a27==1)&&(((a5==1)&&((input==4)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8)))))&&(a20==1)))&&(a4==1)))&&(a6==1)))&&(a0==1))){ + a22 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + return -1; + } else if(((a15==1)&&((a6==1)&&((((a20==1)&&(!(a4==1)&&(((a27==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5))&&(a12==12)))&&(a0==1))))&&(a5==1))&&(a3==5))))){ + a0 = 0; + a18 = 1; + a12 = 11; + a22 = 1; + a4 = 1; + return 24; + } else if(((((a6==1)&&((((((!(a22==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&!(a27==1)))&&(a15==1))&&(a20==1))&&!(a0==1))&&(a5==1))&&(a3==5)))&&!(a4==1))&&(a12==9))){ + a3 = 8; + a0 = 1; + a6 = 0; + a18 = 0; + a22 = 1; + a12 = 12; + a15 = 0; + return 21; + } else if((!(a27==1)&&((!(a4==1)&&(((((((input==5)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5)))||((a3==6)&&((a22==1)&&(a18==1)))))&&!(a5==1))&&(a12==12))&&(a20==1))&&(a6==1))&&(a0==1)))&&!(a15==1)))){ + a27 = 1; + a12 = 8; + a3 = 4; + a15 = 1; + a5 = 1; + a22 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if(((((((((a4==1)&&(((input==1)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==8))))&&!(a27==1)))&&(a20==1))&&!(a6==1))&&(a0==1))&&!(a5==1))&&(a12==8))&&!(a15==1))){ + a18 = 1; + a27 = 1; + a6 = 1; + a5 = 1; + a15 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if((!(a4==1)&&((a15==1)&&((((a6==1)&&((a20==1)&&((a5==1)&&(((((a3==6)&&(input==3))&&!(a22==1))&&(a18==1))&&(a12==11)))))&&(a0==1))&&!(a27==1))))){ + a27 = 1; + a5 = 0; + a15 = 0; + a4 = 1; + return 26; + } else if((!(a27==1)&&((a6==1)&&((a20==1)&&((a12==9)&&((((!(a0==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&(a15==1))&&!(a22==1)))&&(a3==4))&&(a5==1))&&(a4==1))))))){ + a27 = 1; + a18 = 1; + a0 = 1; + a12 = 8; + a3 = 6; + a4 = 0; + return 21; + } else if(((((a5==1)&&((!(a15==1)&&(!(a0==1)&&((a6==1)&&((a27==1)&&((a12==8)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==2)))))))&&(a20==1)))&&(a3==7))&&!(a4==1))){ + a22 = 0; + a0 = 1; + a15 = 1; + a4 = 1; + a18 = 0; + a12 = 11; + a6 = 0; + a3 = 8; + return 26; + } else if((!(a0==1)&&(!(a18==1)&&((a12==11)&&(((((a4==1)&&((a3==5)&&((!(a22==1)&&(!(a27==1)&&(input==1)))&&!(a5==1))))&&(a20==1))&&!(a15==1))&&(a6==1)))))){ + a4 = 0; + a6 = 0; + a3 = 6; + a12 = 9; + return -1; + } else if((((((a12==8)&&((a20==1)&&(!(a27==1)&&((a4==1)&&((((input==2)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&(a3==7))&&(a6==1))))))&&(a5==1))&&(a15==1))&&(a0==1))){ + a27 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((((!(a4==1)&&((a5==1)&&((a27==1)&&(((((((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4))))||((((a22==1)&&!(a18==1))&&(a3==4))&&!(a6==1)))&&(input==6))&&(a20==1))&&!(a15==1)))))&&(a12==10))&&!(a0==1))){ + a18 = 1; + a22 = 1; + a4 = 1; + a6 = 1; + a3 = 4; + a12 = 8; + a15 = 1; + a0 = 1; + return -1; + } else if((((((a12==11)&&(((!(a15==1)&&((a20==1)&&((((a3==7)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6))))&&(input==4))))&&(a0==1))&&!(a4==1)))&&!(a6==1))&&!(a5==1))&&(a27==1))){ + a18 = 1; + a5 = 1; + a6 = 1; + a22 = 1; + a4 = 1; + a12 = 8; + a3 = 4; + a15 = 1; + return -1; + } else if(((((a20==1)&&(((((a0==1)&&(((input==5)&&((((a3==7)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==7)))||(((a18==1)&&(a22==1))&&(a3==8))))&&!(a5==1)))&&!(a15==1))&&!(a6==1))&&(a12==10)))&&!(a27==1))&&!(a4==1))){ + if((a22==1)){ + a18 = 0; + a3 = 7; + a12 = 11; + a15 = 1; + a5 = 1; + a27 = 1; + a0 = 0; + a22 = 1; + }else{ + a3 = 7; + a15 = 1; + a22 = 1; + a27 = 1; + a12 = 11; + a18 = 1; + a4 = 1; + a5 = 1; + } + return 26; + } else if(((a15==1)&&(((!(a5==1)&&(((a27==1)&&(!(a0==1)&&(((input==3)&&((((a18==1)&&(a22==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))))&&!(a4==1))))&&!(a6==1)))&&(a12==9))&&(a20==1)))){ + a22 = 1; + a0 = 1; + a3 = 4; + a18 = 1; + a5 = 1; + a6 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if(((((a12==8)&&(((a4==1)&&((a20==1)&&((a27==1)&&(((a5==1)&&((((a18==1)||!(a18==1))&&(input==6))&&(a0==1)))&&!(a15==1)))))&&!(a22==1)))&&(a6==1))&&(a3==5))){ + a18 = 0; + a15 = 1; + a5 = 0; + a3 = 8; + return 24; + } else if(((a20==1)&&(((a0==1)&&((((a3==7)&&((!(a15==1)&&(!(a6==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==5))))&&(a4==1)))&&!(a5==1))&&(a12==11)))&&!(a27==1)))){ + a15 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + a27 = 1; + a5 = 1; + a18 = 1; + a6 = 1; + return -1; + } else if((((a3==7)&&(!(a27==1)&&(!(a4==1)&&(!(a0==1)&&(((a20==1)&&((a15==1)&&(((!(a6==1)&&(input==4))&&(a5==1))&&(a22==1))))&&(a12==11))))))&&!(a18==1))){ + if((a3==6)){ + a0 = 1; + a18 = 1; + a22 = 0; + a15 = 0; + a6 = 1; + }else{ + a3 = 8; + a4 = 1; + a12 = 8; + a6 = 1; + a27 = 1; + a22 = 0; + a0 = 1; + } + return -1; + } else if(((!(a0==1)&&(((a20==1)&&(((((a5==1)&&((a27==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==3))))&&(a12==9))&&(a15==1))&&!(a4==1)))&&!(a6==1)))&&(a3==6))){ + a27 = 0; + a22 = 0; + a12 = 8; + a18 = 0; + a0 = 1; + a3 = 7; + return 21; + } else if(((((a12==9)&&((a6==1)&&(((a3==7)&&((!(a5==1)&&((a15==1)&&(!(a4==1)&&((input==6)&&!(a22==1)))))&&(a18==1)))&&(a27==1))))&&(a0==1))&&(a20==1))){ + a5 = 1; + a4 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + return -1; + } else if((((a12==9)&&((a6==1)&&((((a20==1)&&(!(a15==1)&&(((((a3==6)&&((a18==1)&&(a22==1)))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a22==1)&&!(a18==1)))))&&(input==4))&&(a0==1))))&&!(a5==1))&&(a27==1))))&&(a4==1))){ + a12 = 8; + a3 = 4; + a15 = 1; + a5 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if((((!(a27==1)&&(!(a0==1)&&((((((a3==5)&&(((input==1)&&!(a4==1))&&(a20==1)))&&(a12==9))&&!(a22==1))&&!(a6==1))&&!(a18==1))))&&(a5==1))&&(a15==1))){ + a6 = 1; + a4 = 1; + a18 = 1; + a15 = 0; + a27 = 1; + a22 = 1; + a12 = 10; + a0 = 1; + a3 = 6; + return -1; + } else if((!(a5==1)&&(((a0==1)&&((((!(a27==1)&&((((a22==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a3==6))&&(a20==1)))&&(a12==11))&&(a6==1))&&!(a15==1)))&&(a4==1)))){ + a18 = 1; + a12 = 8; + a3 = 8; + return -1; + } else if(((a3==4)&&((((((a12==11)&&((((((input==6)&&(a27==1))&&(a15==1))&&(a20==1))&&!(a22==1))&&(a18==1)))&&!(a6==1))&&(a5==1))&&!(a0==1))&&(a4==1)))){ + a12 = 8; + a0 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if((((a3==8)&&((a5==1)&&(!(a27==1)&&((a4==1)&&((a12==12)&&(((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&(a15==1))&&(a20==1))&&(a0==1)))))))&&(a6==1))){ + a27 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((a12==12)&&(((((a27==1)&&(!(a6==1)&&(((((a5==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a3==5))&&(a20==1))&&(a15==1))))&&(a4==1))&&!(a22==1))&&!(a0==1)))){ + a22 = 1; + a12 = 8; + a0 = 1; + a6 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((((a15==1)&&((((!(a0==1)&&(!(a6==1)&&((a27==1)&&(!(a4==1)&&((input==6)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))))&&(a3==7))&&(a20==1))&&(a5==1)))&&(a12==11))){ + a12 = 10; + a15 = 0; + a3 = 8; + a22 = 1; + a4 = 1; + a0 = 1; + a5 = 0; + a18 = 1; + return 26; + } else if((!(a15==1)&&((((((!(a27==1)&&((!(a22==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&!(a6==1)))&&!(a5==1)))&&!(a4==1))&&(a12==11))&&(a0==1))&&(a20==1))&&(a3==4)))){ + a15 = 1; + a4 = 1; + a6 = 1; + a22 = 1; + a18 = 0; + a27 = 1; + return 21; + } else if(((a15==1)&&((((a3==8)&&((((a22==1)&&(((((input==6)&&(a6==1))&&(a18==1))&&(a20==1))&&(a12==12)))&&!(a27==1))&&!(a4==1)))&&(a0==1))&&(a5==1)))){ + a15 = 0; + a3 = 5; + a22 = 0; + a6 = 0; + a27 = 1; + a12 = 11; + a18 = 0; + return 21; + } else if((((!(a0==1)&&((a5==1)&&((a20==1)&&(((a15==1)&&(!(a6==1)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==6))))&&(a12==9)))))&&!(a27==1))&&!(a4==1))){ + if((a18==1)){ + a27 = 1; + a0 = 1; + a3 = 4; + a4 = 1; + a18 = 0; + a12 = 8; + a22 = 0; + a6 = 1; + }else{ + a3 = 8; + a22 = 0; + a4 = 1; + a12 = 10; + a0 = 1; + a18 = 1; + a6 = 1; + a27 = 1; + a15 = 0; + } + return -1; + } else if(((a20==1)&&(((a12==10)&&(((a5==1)&&((((a27==1)&&((a6==1)&&((!(a4==1)&&(input==3))&&(a18==1))))&&(a22==1))&&(a3==5)))&&(a15==1)))&&(a0==1)))){ + a3 = 7; + a4 = 1; + return -1; + } else if((!(a27==1)&&((a18==1)&&((((((a20==1)&&((!(a15==1)&&(((input==2)&&!(a4==1))&&!(a6==1)))&&(a12==9)))&&!(a5==1))&&(a22==1))&&(a0==1))&&(a3==7))))){ + a3 = 4; + a5 = 1; + a6 = 1; + a12 = 8; + a4 = 1; + a27 = 1; + a15 = 1; + return -1; + } else if((((a12==12)&&((a3==6)&&(((a20==1)&&((a5==1)&&(!(a6==1)&&(!(a15==1)&&(((a27==1)&&((input==3)&&(a22==1)))&&!(a4==1))))))&&(a18==1))))&&(a0==1))){ + a12 = 8; + a6 = 1; + a4 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if((!(a22==1)&&((!(a5==1)&&(!(a18==1)&&((((a12==12)&&((((!(a0==1)&&(input==1))&&!(a4==1))&&(a15==1))&&(a27==1)))&&(a20==1))&&!(a6==1))))&&(a3==6)))){ + a4 = 1; + a12 = 8; + a3 = 7; + a22 = 1; + a0 = 1; + a6 = 1; + a5 = 1; + return 26; + } else if((((((a0==1)&&((a5==1)&&(!(a4==1)&&((!(a15==1)&&((((input==3)&&(a12==11))&&(a3==7))&&(a6==1)))&&(a20==1)))))&&!(a27==1))&&!(a22==1))&&!(a18==1))){ + a6 = 0; + a12 = 12; + a3 = 6; + a27 = 1; + a4 = 1; + return 24; + } else if((!(a4==1)&&(!(a0==1)&&(((((((((((a18==1)||!(a18==1))&&(input==6))&&!(a15==1))&&(a20==1))&&(a5==1))&&(a22==1))&&(a3==8))&&(a27==1))&&(a12==9))&&!(a6==1))))){ + a15 = 1; + a3 = 5; + a4 = 1; + a0 = 1; + a18 = 1; + return 24; + } else if(((((a6==1)&&((a12==9)&&(!(a5==1)&&((((a27==1)&&(((input==2)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a15==1)))&&(a3==6))&&(a0==1)))))&&(a4==1))&&(a20==1))){ + a22 = 1; + a4 = 0; + a12 = 8; + a18 = 0; + a3 = 7; + a27 = 0; + return 26; + } else if((!(a0==1)&&((!(a4==1)&&((!(a6==1)&&(((a18==1)&&((!(a22==1)&&((!(a27==1)&&(input==2))&&!(a5==1)))&&(a15==1)))&&(a20==1)))&&(a3==7)))&&(a12==9)))){ + a18 = 0; + a27 = 1; + a0 = 1; + a5 = 1; + a6 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + return 26; + } else if((!(a5==1)&&(((a22==1)&&((a20==1)&&(!(a15==1)&&((a0==1)&&((((a3==5)&&(!(a4==1)&&(((a18==1)||!(a18==1))&&(input==1))))&&!(a27==1))&&(a12==9))))))&&(a6==1)))){ + a18 = 1; + a22 = 0; + a12 = 11; + a3 = 8; + a27 = 1; + return 21; + } else if(((a4==1)&&((a12==10)&&((a3==8)&&((((a18==1)&&((((((input==1)&&!(a15==1))&&(a5==1))&&(a0==1))&&!(a27==1))&&(a22==1)))&&(a20==1))&&!(a6==1)))))){ + a4 = 0; + a0 = 0; + a12 = 12; + a3 = 5; + a15 = 1; + a18 = 0; + a27 = 1; + a22 = 0; + return 21; + } else if((((a15==1)&&(!(a4==1)&&(((a0==1)&&(((!(a27==1)&&((input==4)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1))))))&&!(a5==1))&&(a20==1)))&&(a12==8))))&&!(a6==1))){ + a5 = 1; + a22 = 0; + a12 = 12; + a4 = 1; + a3 = 7; + a18 = 0; + a27 = 1; + return -1; + } else if(((a3==8)&&(((a4==1)&&(((a27==1)&&((a18==1)&&((a20==1)&&(!(a6==1)&&(!(a5==1)&&((a22==1)&&(!(a0==1)&&(input==5))))))))&&(a12==8)))&&!(a15==1)))){ + a0 = 1; + a15 = 1; + a5 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if((((a27==1)&&(((a6==1)&&((((a15==1)&&((((input==6)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&(a4==1))&&(a12==9)))&&(a0==1))&&(a3==6)))&&(a5==1)))&&(a20==1))){ + a22 = 1; + a12 = 11; + a15 = 0; + a18 = 0; + a6 = 0; + a5 = 0; + return 26; + } else if(((a18==1)&&((((((!(a15==1)&&(((a27==1)&&(!(a6==1)&&((input==3)&&(a4==1))))&&(a20==1)))&&(a5==1))&&(a0==1))&&(a3==8))&&!(a22==1))&&(a12==11)))){ + a3 = 4; + a12 = 8; + a15 = 1; + a22 = 1; + a6 = 1; + return -1; + } else if((!(a5==1)&&(((((a6==1)&&(!(a27==1)&&((a20==1)&&(((a3==4)&&(((a12==8)&&(input==2))&&(a0==1)))&&!(a18==1)))))&&!(a22==1))&&!(a4==1))&&!(a15==1)))){ + a12 = 12; + a3 = 8; + return 26; + } else if((((((a0==1)&&(((a12==9)&&(((((((a22==1)&&(a18==1))&&(a3==7))||((((a18==1)&&!(a22==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6))))&&(input==3))&&(a20==1))&&(a5==1)))&&(a27==1)))&&(a6==1))&&!(a4==1))&&(a15==1))){ + a3 = 6; + a5 = 0; + a12 = 12; + a22 = 1; + a18 = 0; + a4 = 1; + a6 = 0; + return 24; + } else if((((a12==8)&&(!(a0==1)&&((a4==1)&&(((a20==1)&&((a3==6)&&(!(a15==1)&&(!(a27==1)&&((input==3)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))))))&&!(a6==1)))))&&!(a5==1))){ + if((a18==1)){ + a18 = 1; + a3 = 7; + a5 = 1; + a4 = 0; + a15 = 1; + a0 = 1; + a27 = 1; + a22 = 1; + a6 = 1; + }else{ + a0 = 1; + a6 = 1; + a5 = 1; + a4 = 0; + a22 = 1; + a15 = 1; + a27 = 1; + a18 = 1; + a3 = 5; + } + return 21; + } else if((((!(a0==1)&&(((((!(a27==1)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==3)))&&(a12==10))&&!(a15==1))&&!(a6==1))&&(a20==1)))&&(a4==1))&&(a5==1))){ + a15 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + a4 = 0; + a3 = 4; + a27 = 1; + a22 = 1; + return 21; + } else if(((((a5==1)&&((a15==1)&&((a4==1)&&((((a22==1)&&(!(a6==1)&&(!(a18==1)&&((input==2)&&(a20==1)))))&&(a3==6))&&(a12==11)))))&&!(a27==1))&&(a0==1))){ + a18 = 1; + a12 = 10; + a22 = 0; + a6 = 1; + a5 = 0; + a27 = 1; + return 21; + } else if((((a22==1)&&((!(a4==1)&&(((a5==1)&&(((a18==1)&&((((input==4)&&!(a6==1))&&(a20==1))&&(a12==12)))&&(a3==6)))&&(a0==1)))&&(a15==1)))&&(a27==1))){ + a4 = 1; + a3 = 4; + a12 = 8; + a6 = 1; + return -1; + } else if(((a12==12)&&(((a18==1)&&(!(a22==1)&&((a3==5)&&((a0==1)&&(!(a15==1)&&((((a27==1)&&((input==4)&&!(a5==1)))&&(a20==1))&&!(a4==1)))))))&&!(a6==1)))){ + a18 = 0; + a12 = 10; + a3 = 8; + a6 = 1; + a22 = 1; + a5 = 1; + return -1; + } else if(((a12==11)&&(((!(a6==1)&&((a0==1)&&((((a20==1)&&((a15==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==6))))&&(a3==4))&&!(a27==1))))&&(a4==1))&&!(a5==1)))){ + a22 = 1; + a18 = 0; + a5 = 1; + a27 = 1; + a6 = 1; + a12 = 12; + a3 = 8; + a15 = 0; + return -1; + } else if(((a20==1)&&((a12==12)&&(!(a27==1)&&((a22==1)&&(((a5==1)&&(((a3==4)&&((((a18==1)&&(input==6))&&(a6==1))&&(a4==1)))&&(a0==1)))&&(a15==1))))))){ + a27 = 1; + a12 = 8; + return -1; + } else if(((a12==11)&&((a5==1)&&(!(a0==1)&&((!(a27==1)&&((((!(a6==1)&&(((!(a22==1)&&!(a18==1))&&(a4==1))&&(a3==8)))||(((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1))))&&(a6==1)))&&(input==1))&&!(a15==1)))&&(a20==1)))))){ + a4 = 1; + a0 = 1; + a12 = 9; + a22 = 0; + a18 = 1; + a6 = 1; + a27 = 1; + a3 = 5; + return -1; + } else if(((a3==4)&&((!(a22==1)&&(!(a4==1)&&(!(a15==1)&&((!(a0==1)&&(((((input==5)&&((a18==1)||!(a18==1)))&&(a27==1))&&(a12==9))&&(a20==1)))&&!(a5==1)))))&&!(a6==1)))){ + a0 = 1; + a4 = 1; + a12 = 10; + a22 = 1; + a18 = 0; + a3 = 5; + return 26; + } else if((((((((a0==1)&&((a22==1)&&(((!(a27==1)&&((input==5)&&(a5==1)))&&(a3==7))&&(a4==1))))&&(a6==1))&&!(a15==1))&&(a12==9))&&(a20==1))&&!(a18==1))){ + a6 = 0; + a27 = 1; + a4 = 0; + a5 = 0; + a3 = 8; + a22 = 0; + a0 = 0; + return -1; + } else if((((((a27==1)&&((a15==1)&&((((a18==1)&&(((!(a0==1)&&(input==3))&&!(a6==1))&&!(a22==1)))&&(a3==6))&&(a5==1))))&&(a20==1))&&!(a4==1))&&(a12==8))){ + a4 = 1; + a0 = 1; + a5 = 0; + a18 = 0; + a22 = 1; + a3 = 7; + a6 = 1; + return 26; + } else if(((a6==1)&&(((!(a27==1)&&((!(a4==1)&&((!(a15==1)&&((a12==8)&&((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&(a20==1)))&&(a3==8)))&&(a0==1))&&!(a5==1)))){ + a18 = 1; + a3 = 5; + a22 = 0; + a12 = 9; + a6 = 0; + return 26; + } else if(((a20==1)&&(!(a5==1)&&((((!(a4==1)&&(!(a6==1)&&((((input==6)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a15==1))&&(a27==1))))&&!(a0==1))&&(a12==9))&&(a3==6))))){ + if((a22==1)){ + a3 = 7; + a18 = 0; + a15 = 0; + a22 = 1; + a12 = 10; + a4 = 1; + }else{ + a0 = 1; + a18 = 1; + a12 = 8; + a27 = 0; + a22 = 1; + a3 = 5; + a6 = 1; + a15 = 0; + } + return -1; + } else if((((!(a5==1)&&((a20==1)&&((!(a4==1)&&((a3==7)&&((!(a15==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a12==10)))&&(a0==1))))&&!(a22==1))))&&!(a27==1))&&(a6==1))){ + a12 = 12; + a3 = 4; + a18 = 1; + a6 = 0; + a5 = 1; + a22 = 1; + return 26; + } else if((!(a27==1)&&((((!(a4==1)&&(!(a5==1)&&(((((input==3)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a20==1))&&(a6==1))&&(a12==11))))&&(a15==1))&&!(a0==1))&&(a3==4)))){ + a12 = 8; + a3 = 7; + a27 = 1; + a18 = 0; + a4 = 1; + a0 = 1; + a22 = 0; + a5 = 1; + return -1; + } else if((((!(a15==1)&&((a20==1)&&((((a0==1)&&((a12==11)&&(!(a5==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==6)))))&&(a4==1))&&!(a27==1))))&&(a3==7))&&!(a6==1))){ + a5 = 1; + a6 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((!(a27==1)&&(!(a4==1)&&((a20==1)&&((((((input==4)&&(((((a18==1)&&!(a22==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))||(((a18==1)&&(a22==1))&&(a3==7))))&&(a5==1))&&(a6==1))&&(a15==1))&&(a12==8)))))&&(a0==1))){ + a4 = 1; + a27 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + return -1; + } else if((!(a15==1)&&((!(a6==1)&&((a20==1)&&((!(a5==1)&&((!(a27==1)&&((input==3)&&(((a3==6)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5))))))&&(a12==11)))&&(a0==1))))&&(a4==1)))){ + if((a18==1)){ + a18 = 1; + a12 = 12; + a3 = 8; + a22 = 0; + a4 = 0; + a6 = 1; + }else{ + a22 = 0; + a12 = 8; + a3 = 4; + a18 = 0; + } + return -1; + } else if(((!(a15==1)&&(!(a18==1)&&(((a4==1)&&((((!(a5==1)&&(((a12==9)&&(input==4))&&(a3==8)))&&!(a6==1))&&(a20==1))&&!(a0==1)))&&(a27==1))))&&(a22==1))){ + a0 = 1; + a3 = 4; + a12 = 8; + a15 = 1; + a18 = 1; + a5 = 1; + a6 = 1; + return -1; + } else if(((a20==1)&&((!(a15==1)&&((((!(a4==1)&&((a12==9)&&((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==5))&&(a27==1))))&&!(a5==1))&&(a6==1))&&(a3==5)))&&!(a0==1)))){ + a3 = 8; + a18 = 1; + a22 = 1; + return 24; + } else if((((a12==12)&&((a20==1)&&(((a15==1)&&((((!(a5==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==1)))&&(a6==1))&&(a27==1))&&(a3==7)))&&!(a0==1))))&&(a4==1))){ + if((a3==7)){ + a12 = 9; + a18 = 0; + a15 = 0; + a22 = 1; + a3 = 4; + }else{ + a6 = 0; + a22 = 1; + a12 = 8; + a27 = 0; + a18 = 1; + a5 = 1; + a0 = 1; + } + return -1; + } else if(((((a3==4)&&(((!(a27==1)&&((a20==1)&&((!(a4==1)&&((a6==1)&&(!(a15==1)&&(input==5))))&&!(a5==1))))&&(a22==1))&&(a0==1)))&&(a12==9))&&(a18==1))){ + a3 = 6; + a4 = 1; + a15 = 1; + return 26; + } else if(((a20==1)&&(((a27==1)&&((!(a6==1)&&(((a5==1)&&((a3==8)&&((a15==1)&&(((input==4)&&(a12==9))&&!(a18==1)))))&&(a4==1)))&&(a22==1)))&&(a0==1)))){ + a6 = 1; + a12 = 12; + a22 = 0; + a15 = 0; + return 21; + } else if((((a22==1)&&((a5==1)&&(!(a4==1)&&((((a15==1)&&((a12==10)&&((!(a6==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a0==1))))&&(a27==1))&&(a20==1)))))&&(a3==4))){ + if((a22==1)){ + a15 = 0; + a0 = 0; + a6 = 1; + a5 = 0; + a12 = 11; + a18 = 1; + a4 = 1; + a3 = 5; + }else{ + a15 = 0; + a4 = 1; + a0 = 0; + a18 = 1; + a12 = 9; + a3 = 5; + a5 = 0; + a22 = 0; + } + return 26; + } else if((!(a6==1)&&(((a20==1)&&(((a12==9)&&(((a3==5)&&(((a5==1)&&((input==2)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))))&&!(a27==1)))&&(a0==1)))&&!(a4==1)))&&!(a15==1)))){ + a5 = 0; + a12 = 10; + a27 = 1; + a18 = 1; + a22 = 0; + return 26; + } else if(((a15==1)&&((!(a27==1)&&((a6==1)&&(!(a0==1)&&(((a20==1)&&((a4==1)&&((input==1)&&((((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1))))||((a3==5)&&((a18==1)&&(a22==1)))))))&&(a5==1)))))&&(a12==10)))){ + a22 = 0; + a27 = 1; + a18 = 0; + a0 = 1; + a3 = 6; + a12 = 8; + a4 = 0; + return 21; + } else if((!(a5==1)&&((!(a15==1)&&((!(a6==1)&&((a4==1)&&((((input==6)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5))))&&(a12==10))&&(a27==1))))&&!(a0==1)))&&(a20==1)))){ + a18 = 1; + a22 = 1; + a3 = 7; + return 21; + } else if((((a5==1)&&((a12==10)&&((a20==1)&&(!(a27==1)&&(((((input==1)&&((((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a18==1)&&!(a22==1))))||((a3==5)&&((a22==1)&&(a18==1)))))&&!(a15==1))&&!(a6==1))&&(a4==1))))))&&(a0==1))){ + a22 = 1; + a12 = 8; + a3 = 4; + a6 = 1; + a15 = 1; + a27 = 1; + a18 = 1; + return -1; + } else if((((((a15==1)&&((((a0==1)&&(((input==5)&&(((a3==6)&&((a22==1)&&!(a18==1)))||(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))))&&(a4==1)))&&!(a6==1))&&(a20==1)))&&(a27==1))&&(a12==9))&&!(a5==1))){ + if((a6==1)){ + a12 = 8; + a0 = 0; + a22 = 1; + a18 = 1; + a6 = 1; + a3 = 5; + }else{ + a6 = 1; + a12 = 8; + a22 = 1; + a27 = 0; + a5 = 1; + a3 = 8; + a15 = 0; + a4 = 0; + a18 = 0; + } + return 21; + } else if(((!(a5==1)&&(((a4==1)&&((!(a15==1)&&(!(a0==1)&&(((input==6)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1)))))&&(a6==1))))&&(a20==1)))&&(a12==10)))&&(a27==1))){ + a15 = 1; + a0 = 1; + a12 = 11; + a18 = 1; + a6 = 0; + a3 = 5; + a5 = 1; + a22 = 0; + return 21; + } else if((((a27==1)&&((a3==7)&&((a4==1)&&((a12==12)&&((!(a0==1)&&((((input==4)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a20==1))&&(a15==1)))&&!(a5==1))))))&&!(a6==1))){ + a15 = 0; + a27 = 0; + a18 = 0; + a5 = 1; + a12 = 10; + a22 = 0; + a4 = 0; + a3 = 6; + a6 = 1; + a0 = 1; + return 26; + } else if(((((a20==1)&&(!(a15==1)&&((a12==8)&&(((((input==3)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))||((!(a18==1)&&(a22==1))&&(a3==7))))&&!(a6==1))&&(a5==1))&&!(a4==1)))))&&!(a0==1))&&(a27==1))){ + a22 = 1; + a0 = 1; + a18 = 0; + a4 = 1; + a3 = 7; + a12 = 10; + return 21; + } else if((!(a6==1)&&(((((!(a4==1)&&(((a27==1)&&(!(a18==1)&&(!(a22==1)&&((a15==1)&&(input==2)))))&&(a20==1)))&&(a0==1))&&(a3==4))&&(a12==9))&&!(a5==1)))){ + a15 = 0; + a0 = 0; + a12 = 8; + a22 = 1; + a3 = 5; + return 26; + } else if((!(a4==1)&&(((a3==5)&&((a15==1)&&(((((a0==1)&&(!(a6==1)&&((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&(a20==1))&&(a5==1))&&(a12==10))))&&(a27==1)))){ + if((a15==1)){ + a22 = 1; + a5 = 0; + a0 = 0; + a18 = 0; + a3 = 7; + a12 = 8; + a4 = 1; + a6 = 1; + }else{ + a18 = 1; + a3 = 4; + a22 = 1; + a5 = 0; + a27 = 0; + a12 = 9; + } + return 26; + } else if((!(a27==1)&&((a3==8)&&((a22==1)&&(((!(a5==1)&&((a15==1)&&((a20==1)&&(!(a4==1)&&(((a12==10)&&(input==2))&&!(a0==1))))))&&!(a6==1))&&(a18==1)))))){ + if((a5==1)){ + a27 = 1; + a3 = 5; + a15 = 0; + a4 = 1; + a18 = 0; + }else{ + a22 = 0; + a6 = 1; + a4 = 1; + a12 = 8; + a18 = 0; + a27 = 1; + a0 = 1; + a5 = 1; + } + return -1; + } else if((!(a0==1)&&((!(a15==1)&&((a20==1)&&((a3==6)&&(((a4==1)&&(((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==3))&&!(a5==1))&&!(a6==1)))&&!(a27==1)))))&&(a12==9)))){ + a4 = 0; + a18 = 1; + a3 = 7; + a22 = 0; + return 21; + } else if(((a15==1)&&((a5==1)&&((((((!(a4==1)&&((((input==3)&&(a6==1))&&!(a27==1))&&(a0==1)))&&(a12==8))&&(a18==1))&&(a3==8))&&(a20==1))&&(a22==1))))){ + a5 = 0; + a4 = 1; + a18 = 0; + a6 = 0; + a3 = 4; + a22 = 0; + a15 = 0; + return 21; + } else if(((((!(a4==1)&&(((((a0==1)&&(((a6==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a12==9)))&&!(a27==1))&&(a20==1))&&!(a5==1)))&&(a3==8))&&(a15==1))&&!(a22==1))){ + a0 = 0; + a18 = 1; + a27 = 1; + a15 = 0; + a4 = 1; + a22 = 1; + a5 = 1; + return -1; + } else if((((((a3==5)&&(!(a6==1)&&((!(a15==1)&&((a20==1)&&((!(a22==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a4==1))))&&(a27==1))))&&(a0==1))&&!(a5==1))&&(a12==8))){ + a6 = 1; + a4 = 0; + a12 = 11; + a5 = 1; + a15 = 1; + a3 = 4; + a18 = 0; + return 26; + } else if(((((((a4==1)&&((a3==6)&&((!(a5==1)&&((a27==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==2))))&&!(a0==1))))&&(a20==1))&&!(a15==1))&&(a6==1))&&(a12==9))){ + a5 = 1; + a6 = 0; + a22 = 0; + a18 = 0; + a12 = 10; + a4 = 0; + a0 = 1; + return -1; + } else if(((!(a27==1)&&(((a3==7)&&((a6==1)&&(((((((a5==1)&&(input==1))&&!(a15==1))&&!(a4==1))&&!(a18==1))&&(a12==9))&&(a20==1))))&&!(a0==1)))&&!(a22==1))){ + a27 = 1; + a22 = 1; + a15 = 1; + a12 = 8; + a0 = 1; + a3 = 6; + a4 = 1; + return -1; + } else if(((((a27==1)&&(((a4==1)&&((a3==5)&&((!(a22==1)&&((a15==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a20==1))))&&!(a0==1))))&&(a5==1)))&&(a12==8))&&(a6==1))){ + a5 = 0; + a22 = 1; + a18 = 1; + a12 = 10; + return -1; + } else if((!(a0==1)&&(!(a18==1)&&((((a4==1)&&((a5==1)&&((((((a22==1)&&(input==1))&&(a6==1))&&(a20==1))&&(a3==6))&&(a12==9))))&&(a15==1))&&!(a27==1))))){ + if((a0==1)){ + a6 = 0; + a3 = 5; + a5 = 0; + a18 = 1; + a22 = 0; + a15 = 0; + a4 = 0; + a12 = 8; + }else{ + a18 = 1; + a27 = 1; + a4 = 0; + a3 = 5; + a0 = 1; + a22 = 0; + a12 = 8; + } + return -1; + } else if(((a6==1)&&(((a3==4)&&((a27==1)&&(!(a0==1)&&((!(a5==1)&&(((a15==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==4)))&&!(a4==1)))&&(a20==1)))))&&(a12==12)))){ + a27 = 0; + a0 = 1; + a18 = 1; + a3 = 8; + a22 = 1; + a4 = 1; + a12 = 8; + a15 = 0; + return -1; + } else if(((a3==8)&&(!(a5==1)&&(((a20==1)&&(!(a6==1)&&((a4==1)&&(!(a15==1)&&(((a27==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==3)))&&(a12==10))))))&&!(a0==1))))){ + a15 = 1; + a6 = 1; + a5 = 1; + a3 = 4; + a22 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((a20==1)&&((((a12==9)&&((a3==7)&&((a15==1)&&((a0==1)&&((!(a4==1)&&(!(a22==1)&&(((a18==1)||!(a18==1))&&(input==6))))&&(a27==1))))))&&!(a6==1))&&(a5==1)))){ + a18 = 1; + a12 = 12; + a22 = 1; + return 24; + } else if(((a12==10)&&((a3==7)&&((((((((a27==1)&&((input==1)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a5==1))&&!(a6==1))&&(a20==1))&&!(a4==1))&&!(a15==1))&&!(a0==1))))){ + a0 = 1; + a22 = 0; + a3 = 5; + a18 = 1; + return 26; + } else if((((a3==4)&&((((a27==1)&&(!(a15==1)&&((a20==1)&&((!(a0==1)&&((((a18==1)||!(a18==1))&&(input==4))&&!(a5==1)))&&!(a6==1)))))&&(a12==10))&&(a22==1)))&&(a4==1))){ + a0 = 1; + a18 = 0; + a5 = 1; + return -1; + } else if((((a4==1)&&(((!(a6==1)&&((((a5==1)&&((input==6)&&((((a22==1)&&!(a18==1))&&(a3==6))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a18==1)&&(a22==1)))))))&&(a20==1))&&!(a27==1)))&&(a15==1))&&(a12==8)))&&(a0==1))){ + a27 = 1; + a6 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + return -1; + } else if(((a0==1)&&((a5==1)&&((a15==1)&&(((a4==1)&&(!(a6==1)&&((((input==4)&&(((!(a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8)))))&&(a12==8))&&!(a27==1))))&&(a20==1)))))){ + a22 = 1; + a18 = 1; + a3 = 4; + a6 = 1; + a27 = 1; + return -1; + } else if(((a3==5)&&(((a0==1)&&((((a20==1)&&((a27==1)&&(((((input==3)&&((a18==1)||!(a18==1)))&&!(a22==1))&&(a15==1))&&(a12==11))))&&!(a5==1))&&!(a6==1)))&&(a4==1)))){ + a6 = 1; + a22 = 1; + a5 = 1; + a12 = 9; + a3 = 4; + a0 = 0; + a18 = 0; + return 21; + } else if(((a4==1)&&(!(a0==1)&&((((!(a5==1)&&((((a20==1)&&(!(a15==1)&&((input==5)&&(a12==12))))&&!(a6==1))&&(a18==1)))&&(a3==5))&&(a27==1))&&!(a22==1))))){ + if((a15==1)){ + a0 = 1; + a15 = 1; + a3 = 4; + a5 = 1; + a4 = 0; + a6 = 1; + a12 = 8; + }else{ + a22 = 1; + a15 = 1; + a12 = 8; + a0 = 1; + a5 = 1; + } + return -1; + } else if(((!(a4==1)&&(!(a27==1)&&(!(a15==1)&&(!(a5==1)&&(!(a0==1)&&((((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==3))&&(a6==1))&&(a12==10)))))))&&(a20==1))){ + a22 = 0; + a12 = 8; + a15 = 1; + a27 = 1; + a5 = 1; + a18 = 1; + a0 = 1; + a3 = 6; + return 21; + } else if(((a5==1)&&(((a20==1)&&((!(a4==1)&&((a0==1)&&(((a12==10)&&((a3==4)&&((a22==1)&&((input==2)&&(a6==1)))))&&!(a18==1))))&&(a15==1)))&&(a27==1)))){ + a4 = 1; + a22 = 0; + a12 = 9; + a6 = 0; + a5 = 0; + a27 = 0; + a3 = 5; + return 26; + } else if(((!(a4==1)&&(((a15==1)&&((a20==1)&&(!(a27==1)&&(((((((a3==8)&&((a18==1)&&!(a22==1)))&&(a6==1))||(((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1)))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4))))&&(input==5))&&(a12==9)))))&&!(a0==1)))&&(a5==1))){ + a6 = 1; + a0 = 1; + a5 = 0; + a12 = 8; + a3 = 5; + a22 = 1; + a18 = 1; + return -1; + } else if(((a27==1)&&(!(a15==1)&&(((a0==1)&&((!(a4==1)&&((((((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1))))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==6))&&(a12==11))&&!(a6==1)))&&!(a5==1)))&&(a20==1))))){ + a27 = 0; + a3 = 7; + a6 = 1; + a18 = 1; + a22 = 1; + return 21; + } else if(((!(a15==1)&&(((a4==1)&&((((((!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1))))||((((a3==8)&&((a18==1)&&!(a22==1)))&&(a6==1))||((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))))&&(input==5))&&!(a0==1))&&!(a5==1))&&!(a27==1)))&&(a12==10)))&&(a20==1))){ + a12 = 11; + a4 = 0; + a15 = 1; + a27 = 1; + a18 = 0; + a5 = 1; + a6 = 1; + a3 = 7; + a22 = 0; + return 21; + } else if((((a15==1)&&(((a6==1)&&((((!(a0==1)&&((input==1)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))))&&!(a27==1))&&(a4==1))&&(a12==9)))&&(a20==1)))&&(a5==1))){ + a22 = 0; + a27 = 1; + a3 = 5; + a18 = 0; + a12 = 11; + return -1; + } else if(((a20==1)&&((((((!(a6==1)&&((a3==8)&&(((!(a15==1)&&(!(a5==1)&&(!(a18==1)&&!(a22==1))))&&(a12==8))&&!(a4==1))))||((((((((a18==1)&&(a22==1))&&(a5==1))&&(a15==1))&&(a12==9))&&(a4==1))&&(a3==4))&&(a6==1)))||((a6==1)&&((((a12==9)&&(((!(a18==1)&&(a22==1))&&(a5==1))&&(a15==1)))&&(a4==1))&&(a3==4))))&&(input==5))&&!(a0==1))&&!(a27==1)))){ + a0 = 1; + a3 = 5; + a18 = 0; + a5 = 0; + a12 = 12; + a6 = 0; + a15 = 1; + a22 = 0; + a4 = 1; + return 21; + } else if((((!(a27==1)&&((((a12==10)&&(((a20==1)&&((((!(a18==1)&&(a22==1))&&(a3==8))||(((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1)))))&&(input==6)))&&(a4==1)))&&!(a0==1))&&(a6==1)))&&(a5==1))&&(a15==1))){ + a18 = 0; + a12 = 12; + a22 = 1; + a3 = 4; + a5 = 0; + a0 = 1; + return 26; + } else if((!(a5==1)&&((!(a6==1)&&(((((!(a0==1)&&(!(a4==1)&&((input==5)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))))&&!(a27==1))&&(a20==1))&&(a12==10))&&(a3==5)))&&!(a15==1)))){ + a18 = 1; + a6 = 1; + a15 = 1; + a0 = 1; + a22 = 0; + a27 = 1; + a12 = 9; + a4 = 1; + return -1; + } else if((((a27==1)&&(((!(a15==1)&&((((a12==10)&&(!(a6==1)&&((a20==1)&&(!(a0==1)&&(input==6)))))&&(a18==1))&&(a3==8)))&&!(a4==1))&&!(a22==1)))&&(a5==1))){ + a4 = 1; + a12 = 12; + a3 = 5; + a0 = 1; + return -1; + } else if((((a22==1)&&((a3==6)&&((a20==1)&&(((a18==1)&&((a15==1)&&(((((a0==1)&&(input==1))&&(a5==1))&&!(a4==1))&&(a6==1))))&&(a12==12)))))&&!(a27==1))){ + a3 = 5; + a27 = 1; + a15 = 0; + a6 = 0; + a4 = 1; + a12 = 11; + return 24; + } else if((((((((a4==1)&&((((a5==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a20==1)))&&(a22==1))&&(a3==4)))&&(a27==1))&&(a6==1))&&!(a0==1))&&!(a15==1))&&(a12==12))){ + a4 = 0; + a3 = 6; + a5 = 0; + a0 = 1; + a18 = 0; + a27 = 0; + a12 = 8; + return 21; + } else if((((!(a5==1)&&((((a3==4)&&(!(a6==1)&&((a0==1)&&((a20==1)&&(((a18==1)&&(input==3))&&!(a22==1))))))&&(a12==8))&&!(a15==1)))&&(a4==1))&&(a27==1))){ + if((a3==5)){ + a27 = 0; + a22 = 1; + a6 = 1; + a4 = 0; + a12 = 12; + }else{ + a6 = 1; + a15 = 1; + a18 = 0; + a12 = 11; + a5 = 1; + } + return 21; + } else if(((a12==9)&&((a3==8)&&((((a27==1)&&((!(a22==1)&&((!(a5==1)&&(((input==3)&&(a6==1))&&(a20==1)))&&!(a18==1)))&&!(a15==1)))&&(a0==1))&&!(a4==1))))){ + a18 = 1; + a22 = 1; + a15 = 1; + a4 = 1; + a5 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((((a3==4)&&(((((((a4==1)&&((((a18==1)||!(a18==1))&&(input==1))&&!(a0==1)))&&(a27==1))&&(a6==1))&&(a12==11))&&(a15==1))&&(a20==1)))&&(a5==1))&&(a22==1))){ + a0 = 1; + a6 = 0; + a5 = 0; + a22 = 0; + a12 = 12; + a18 = 1; + return 24; + } else if((((a12==12)&&((((a4==1)&&(!(a0==1)&&(((((a3==8)&&((input==1)&&((a18==1)||!(a18==1))))&&(a20==1))&&!(a5==1))&&!(a22==1))))&&(a15==1))&&(a6==1)))&&(a27==1))){ + a6 = 0; + a12 = 11; + a4 = 0; + a22 = 1; + a15 = 0; + a0 = 1; + a3 = 5; + a18 = 0; + a27 = 0; + return 26; + } else if(((!(a0==1)&&(!(a6==1)&&(((((((!(a4==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a12==12))&&!(a15==1))&&(a22==1))&&!(a5==1))&&(a3==4))&&(a27==1))))&&(a20==1))){ + if((a0==1)){ + a15 = 1; + a18 = 0; + a0 = 1; + a12 = 8; + a6 = 1; + a5 = 1; + a3 = 8; + }else{ + a18 = 1; + a5 = 1; + a4 = 1; + a6 = 1; + a15 = 1; + a0 = 1; + a3 = 5; + } + return 24; + } else if((((!(a5==1)&&((a20==1)&&((a12==9)&&(((!(a4==1)&&((input==3)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))||((!(a18==1)&&(a22==1))&&(a3==8)))))&&(a0==1))&&!(a27==1)))))&&(a15==1))&&(a6==1))){ + a5 = 1; + a27 = 1; + a18 = 1; + a6 = 0; + a3 = 8; + a0 = 0; + a22 = 0; + return -1; + } else if(((!(a5==1)&&((((a3==7)&&((a27==1)&&(((a0==1)&&((a15==1)&&((a12==12)&&(((a18==1)||!(a18==1))&&(input==5)))))&&(a4==1))))&&(a6==1))&&!(a22==1)))&&(a20==1))){ + a12 = 11; + a15 = 0; + a0 = 0; + a22 = 1; + a3 = 6; + a18 = 0; + a4 = 0; + return 24; + } else if(((a20==1)&&((((a6==1)&&((a12==9)&&(!(a4==1)&&((a22==1)&&(!(a0==1)&&(!(a5==1)&&(!(a27==1)&&(((a18==1)||!(a18==1))&&(input==4)))))))))&&!(a15==1))&&(a3==5)))){ + if((a27==1)){ + a18 = 0; + a12 = 11; + a22 = 0; + a4 = 1; + a0 = 1; + }else{ + a3 = 4; + a5 = 1; + a18 = 0; + a4 = 1; + a0 = 1; + } + return -1; + } else if(((a3==4)&&(((((a12==9)&&((a22==1)&&((a18==1)&&((a20==1)&&(!(a0==1)&&((!(a5==1)&&(input==4))&&!(a27==1)))))))&&(a15==1))&&(a6==1))&&(a4==1)))){ + a0 = 1; + a12 = 8; + a15 = 0; + a3 = 6; + a6 = 0; + a22 = 0; + return 21; + } else if(((!(a4==1)&&((a27==1)&&(((((a0==1)&&(((a20==1)&&((input==5)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a3==5)))&&(a6==1))&&(a15==1))&&(a12==11))))&&(a5==1))){ + a5 = 0; + a3 = 4; + a6 = 0; + a22 = 1; + a15 = 0; + a18 = 0; + return 21; + } else if(((a0==1)&&(((((a6==1)&&(((((a4==1)&&((input==6)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))))&&(a5==1))&&(a12==8))&&(a20==1)))&&(a3==7))&&(a27==1))&&!(a15==1)))){ + a15 = 1; + a3 = 6; + a4 = 0; + a18 = 1; + a22 = 0; + a5 = 0; + return 21; + } else if(((!(a27==1)&&(((a12==8)&&(((a20==1)&&((!(a0==1)&&((a5==1)&&((input==1)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&(a4==1)))&&(a6==1)))&&(a3==4)))&&(a15==1))){ + if((a12==11)){ + a6 = 0; + a22 = 0; + a27 = 1; + a18 = 1; + a3 = 6; + a0 = 1; + }else{ + a27 = 1; + a3 = 7; + a22 = 0; + a18 = 1; + a0 = 1; + } + return -1; + } else if(((!(a0==1)&&((a12==8)&&((a6==1)&&(((!(a5==1)&&((a4==1)&&(((((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==5)))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==3))))&&(a27==1))&&(a20==1)))))&&(a15==1))){ + a18 = 1; + a0 = 1; + a22 = 1; + a5 = 1; + a3 = 4; + return -1; + } else if(((!(a4==1)&&(!(a0==1)&&((((a18==1)&&(((a3==6)&&(((a27==1)&&((a12==12)&&(input==2)))&&(a20==1)))&&(a22==1)))&&!(a5==1))&&(a6==1))))&&!(a15==1))){ + if((a15==1)){ + a22 = 0; + a0 = 1; + a6 = 0; + a12 = 8; + a4 = 1; + a5 = 1; + a15 = 1; + }else{ + a0 = 1; + a12 = 8; + a5 = 1; + a3 = 7; + a18 = 0; + a15 = 1; + } + return 26; + } else if((((a6==1)&&(!(a5==1)&&(((((a27==1)&&((a12==9)&&((a3==6)&&((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))))&&!(a0==1))&&(a20==1))&&(a15==1))))&&(a4==1))){ + a5 = 1; + a0 = 1; + a12 = 10; + a22 = 0; + a18 = 1; + a6 = 0; + return 26; + } else if((((a18==1)&&((a22==1)&&((a6==1)&&(((a4==1)&&(!(a15==1)&&((a27==1)&&((((a3==8)&&(input==1))&&(a12==10))&&(a20==1)))))&&!(a5==1)))))&&(a0==1))){ + if((a22==1)){ + a0 = 0; + a5 = 1; + a18 = 0; + }else{ + a22 = 0; + a12 = 11; + a6 = 0; + a5 = 1; + a3 = 7; + a15 = 1; + } + return 26; + } else if(((a22==1)&&((!(a27==1)&&(((((a18==1)&&((a20==1)&&((((input==2)&&(a12==12))&&(a3==7))&&!(a15==1))))&&(a4==1))&&(a6==1))&&(a0==1)))&&(a5==1)))){ + a27 = 1; + a15 = 1; + a4 = 0; + a12 = 11; + a22 = 0; + a0 = 0; + a18 = 0; + a3 = 8; + return -1; + } else if((((a20==1)&&(!(a4==1)&&((a0==1)&&(!(a15==1)&&((a22==1)&&((a12==9)&&(((a3==6)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a27==1)))&&(a6==1))))))))&&!(a5==1))){ + a12 = 10; + a3 = 4; + a5 = 1; + a4 = 1; + a18 = 0; + a22 = 0; + a6 = 0; + return 24; + } else if((!(a0==1)&&((a5==1)&&((a20==1)&&((a12==9)&&(((((((a3==8)&&(!(a4==1)&&((a15==1)&&((a18==1)&&!(a22==1)))))&&!(a6==1))||(!(a6==1)&&((a3==8)&&(((a15==1)&&(!(a22==1)&&!(a18==1)))&&!(a4==1)))))||(((a3==4)&&((a4==1)&&(((a18==1)&&(a22==1))&&!(a15==1))))&&(a6==1)))&&(input==3))&&!(a27==1))))))){ + a3 = 8; + a12 = 8; + a4 = 1; + a18 = 1; + a6 = 1; + a15 = 1; + a22 = 0; + a0 = 1; + a27 = 1; + return 26; + } else if(((a3==7)&&(!(a27==1)&&((a20==1)&&(!(a4==1)&&(!(a0==1)&&(((a15==1)&&(((a12==9)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==6)))&&(a6==1)))&&(a5==1)))))))){ + a27 = 1; + a22 = 0; + a3 = 5; + a12 = 12; + a0 = 1; + a18 = 0; + a4 = 1; + return -1; + } else if(((a15==1)&&((a12==11)&&((a27==1)&&((a6==1)&&(((((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==6))&&(a20==1))&&(a3==6))&&(a0==1))&&!(a5==1))&&(a4==1))))))){ + a12 = 8; + a5 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((((a6==1)&&((((a20==1)&&(!(a15==1)&&((a22==1)&&((!(a0==1)&&((a27==1)&&((input==1)&&(a5==1))))&&(a18==1)))))&&(a12==9))&&(a4==1)))&&(a3==6))){ + a15 = 1; + a4 = 0; + a18 = 0; + a6 = 0; + a12 = 11; + a0 = 1; + return 21; + } else if(((((!(a0==1)&&(!(a22==1)&&(((a4==1)&&(!(a27==1)&&((a15==1)&&((a20==1)&&((a18==1)&&(input==6))))))&&(a3==4))))&&(a6==1))&&!(a5==1))&&(a12==10))){ + a3 = 5; + a22 = 1; + a15 = 0; + a12 = 11; + a6 = 0; + a18 = 0; + a0 = 1; + a27 = 1; + return -1; + } else if(((a0==1)&&((!(a18==1)&&((!(a5==1)&&((a20==1)&&(((a12==8)&&(!(a22==1)&&((a6==1)&&((a27==1)&&(input==1)))))&&!(a4==1))))&&(a15==1)))&&(a3==8)))){ + a22 = 1; + a3 = 4; + a15 = 0; + a5 = 1; + a12 = 10; + return 26; + } else if((!(a27==1)&&((!(a4==1)&&(!(a0==1)&&(!(a15==1)&&((((((a12==9)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a22==1))&&(a20==1))&&(a6==1))&&!(a5==1)))))&&(a3==5)))){ + a12 = 11; + a0 = 1; + a6 = 0; + a27 = 1; + a18 = 0; + return -1; + } else if((((((a0==1)&&((((!(a27==1)&&(!(a5==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==5))))&&(a20==1))&&(a12==11))&&(a15==1)))&&(a6==1))&&(a3==5))&&!(a4==1))){ + if((a4==1)){ + a22 = 1; + a0 = 0; + a3 = 6; + a18 = 0; + a12 = 10; + a15 = 0; + a27 = 1; + }else{ + a3 = 6; + a18 = 1; + a0 = 0; + a15 = 0; + a4 = 1; + a27 = 1; + a5 = 1; + a12 = 12; + a22 = 1; + } + return 21; + } else if(((a20==1)&&(((!(a15==1)&&((a4==1)&&(((!(a0==1)&&((input==2)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1))))))&&(a6==1))&&(a27==1))))&&(a5==1))&&(a12==8)))){ + a22 = 0; + a6 = 0; + a0 = 1; + a15 = 1; + a12 = 10; + a18 = 0; + a3 = 6; + return -1; + } else if(((!(a27==1)&&(((!(a0==1)&&(((!(a15==1)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==1)))&&(a20==1))&&!(a6==1)))&&(a5==1))&&(a4==1)))&&(a12==8))){ + if((a12==11)){ + a4 = 0; + a3 = 6; + a6 = 1; + a27 = 1; + a18 = 1; + a22 = 1; + a0 = 1; + a15 = 1; + }else{ + a27 = 1; + a6 = 1; + a22 = 1; + a18 = 1; + a15 = 1; + a0 = 1; + a3 = 7; + } + return 21; + } else if(((a15==1)&&((a4==1)&&(!(a5==1)&&((a0==1)&&((((((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==1))&&!(a27==1))&&(a6==1))&&(a20==1))&&(a12==9))))))){ + a22 = 0; + a0 = 0; + a4 = 0; + a5 = 1; + a3 = 8; + a18 = 0; + a27 = 1; + return -1; + } else if(((!(a27==1)&&(((a0==1)&&((a12==12)&&((a4==1)&&((a5==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&!(a6==1))&&(a15==1))))))&&(a20==1)))&&(a3==8))){ + a12 = 8; + a6 = 1; + a3 = 4; + a18 = 1; + a27 = 1; + a22 = 1; + return -1; + } return calculate_output45(input); + } + + int calculate_output45(int input) { + if(((a6==1)&&((!(a15==1)&&((a18==1)&&(((a20==1)&&((a12==10)&&(((a3==5)&&(!(a27==1)&&((input==5)&&!(a22==1))))&&(a0==1))))&&!(a4==1))))&&!(a5==1)))){ + a0 = 0; + a3 = 4; + a12 = 9; + a18 = 0; + a4 = 1; + a15 = 1; + a27 = 1; + return 26; + } else if(((a15==1)&&((a20==1)&&((a12==10)&&((a4==1)&&(((a5==1)&&(((((a0==1)&&((a22==1)&&(input==2)))&&!(a6==1))&&(a18==1))&&(a27==1)))&&(a3==5))))))){ + a3 = 4; + a6 = 1; + a22 = 0; + return -1; + } else if((((((a4==1)&&((a5==1)&&(!(a0==1)&&((((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==1))&&!(a27==1))&&!(a6==1)))))&&(a12==8))&&(a15==1))&&(a20==1))){ + a22 = 1; + a0 = 1; + a3 = 7; + a18 = 0; + a27 = 1; + return -1; + } else if(((((a20==1)&&((a12==11)&&(!(a5==1)&&(((a3==6)&&(!(a0==1)&&((!(a27==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a22==1))))&&(a15==1)))))&&(a4==1))&&(a6==1))){ + if((a15==1)){ + a27 = 1; + a12 = 8; + a3 = 7; + a0 = 1; + a18 = 0; + a4 = 0; + a5 = 1; + }else{ + a12 = 10; + a3 = 8; + a4 = 0; + a0 = 1; + a27 = 1; + a18 = 0; + a6 = 0; + } + return 21; + } else if((((a20==1)&&((a0==1)&&((!(a5==1)&&(!(a27==1)&&((((input==4)&&((((a3==7)&&((a18==1)&&!(a22==1)))||((a3==7)&&(!(a22==1)&&!(a18==1))))||((a3==8)&&((a22==1)&&(a18==1)))))&&(a12==8))&&!(a4==1))))&&!(a6==1))))&&(a15==1))){ + a27 = 1; + a18 = 1; + a3 = 8; + a4 = 1; + a12 = 10; + a22 = 0; + a5 = 1; + return 24; + } else if((((a5==1)&&((((((a12==10)&&(!(a0==1)&&((a3==8)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==1)))))&&!(a4==1))&&(a20==1))&&(a15==1))&&(a27==1)))&&(a6==1))){ + a6 = 0; + a18 = 0; + a4 = 1; + a15 = 0; + a12 = 12; + a22 = 0; + a0 = 1; + a3 = 6; + return 26; + } else if((((a20==1)&&(((!(a5==1)&&(((a0==1)&&((((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a12==9))&&(a4==1)))&&(a3==6)))&&!(a27==1))&&!(a6==1)))&&(a15==1))){ + a5 = 1; + a3 = 4; + a27 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + a6 = 1; + return -1; + } else if(((a20==1)&&(!(a15==1)&&((a6==1)&&((a4==1)&&((a12==8)&&(((a27==1)&&((a0==1)&&((((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==1))))&&(a5==1)))))))){ + a6 = 0; + a18 = 0; + a15 = 1; + a5 = 0; + a3 = 5; + a12 = 10; + a22 = 1; + a0 = 0; + return 24; + } else if((((((((!(a22==1)&&((a4==1)&&(!(a6==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a5==1)))))&&(a15==1))&&(a3==7))&&(a12==10))&&(a27==1))&&(a20==1))&&(a0==1))){ + a6 = 1; + a3 = 6; + a18 = 1; + a22 = 1; + return -1; + } else if(((((((a15==1)&&((a12==9)&&(((a0==1)&&((input==6)&&(((a3==7)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1)))))))&&(a27==1))))&&(a6==1))&&(a4==1))&&!(a5==1))&&(a20==1))){ + a5 = 1; + a18 = 0; + a22 = 0; + a12 = 12; + a15 = 0; + a6 = 0; + a3 = 5; + return 21; + } else if((!(a18==1)&&((((a22==1)&&(!(a15==1)&&(((a5==1)&&(!(a0==1)&&(!(a27==1)&&(((input==2)&&(a3==5))&&(a20==1)))))&&(a12==10))))&&(a6==1))&&!(a4==1)))){ + a22 = 0; + a5 = 0; + a3 = 4; + a4 = 1; + a12 = 9; + a27 = 1; + return 26; + } else if((((a22==1)&&((a5==1)&&((((a20==1)&&((((((input==6)&&(a15==1))&&!(a18==1))&&(a12==12))&&(a27==1))&&(a3==6)))&&!(a0==1))&&!(a6==1))))&&(a4==1))){ + a18 = 1; + a4 = 0; + a12 = 10; + a5 = 0; + a3 = 4; + a0 = 1; + return 21; + } else if(((a20==1)&&((a5==1)&&((a4==1)&&(!(a27==1)&&(((a12==11)&&((a15==1)&&((((input==4)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a0==1))&&(a6==1))))&&(a3==7))))))){ + a3 = 5; + a18 = 1; + a0 = 0; + a12 = 8; + a22 = 0; + a15 = 0; + a27 = 1; + return -1; + } else if((((a12==12)&&((((a5==1)&&(((a4==1)&&((a15==1)&&(((((a18==1)&&(a22==1))&&(a3==6))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1)))))&&(input==3))))&&(a27==1)))&&!(a0==1))&&(a20==1)))&&(a6==1))){ + a15 = 0; + a27 = 0; + a18 = 1; + a22 = 0; + a0 = 1; + a3 = 8; + a6 = 0; + return 21; + } else if(((a22==1)&&((a27==1)&&((a20==1)&&((a5==1)&&(((a3==5)&&(((a18==1)&&((a12==8)&&(!(a6==1)&&((input==3)&&(a4==1)))))&&!(a0==1)))&&!(a15==1))))))){ + a6 = 1; + a3 = 4; + a15 = 1; + a0 = 1; + return -1; + } else if(((a3==7)&&(((a12==9)&&((a0==1)&&(((a20==1)&&((!(a15==1)&&(!(a27==1)&&((a6==1)&&(((a18==1)||!(a18==1))&&(input==4)))))&&!(a5==1)))&&!(a22==1))))&&!(a4==1)))){ + a12 = 8; + a22 = 1; + a5 = 1; + a4 = 1; + a18 = 1; + a27 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if((((!(a4==1)&&((a12==12)&&(!(a0==1)&&((((((a5==1)&&((a27==1)&&(input==3)))&&(a20==1))&&(a15==1))&&(a6==1))&&!(a18==1)))))&&(a3==4))&&(a22==1))){ + a27 = 0; + a3 = 6; + a5 = 0; + a6 = 0; + a12 = 8; + a4 = 1; + a0 = 1; + return -1; + } else if((!(a0==1)&&((a20==1)&&(((a27==1)&&(!(a6==1)&&(((a15==1)&&((a12==10)&&((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==2))))&&(a4==1))))&&!(a5==1))))){ + a22 = 0; + a15 = 0; + a3 = 6; + a0 = 1; + a18 = 0; + return -1; + } else if((((((a5==1)&&(((a20==1)&&((a3==8)&&(!(a22==1)&&(((a4==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&!(a15==1)))))&&!(a6==1)))&&(a12==11))&&!(a0==1))&&(a27==1))){ + a6 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + a0 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if((!(a4==1)&&((a6==1)&&(((a0==1)&&(((a20==1)&&((a15==1)&&((((((a22==1)&&(a18==1))&&(a3==5))||(((!(a22==1)&&(a18==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4))))&&(input==3))&&!(a5==1))))&&!(a27==1)))&&(a12==9))))){ + a22 = 0; + a3 = 6; + a0 = 0; + a12 = 11; + a27 = 1; + a18 = 1; + a15 = 0; + return 26; + } else if((!(a4==1)&&((a12==9)&&(((a20==1)&&(((!(a6==1)&&(!(a0==1)&&((input==3)&&((((a22==1)&&(a18==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==5)))))))&&(a5==1))&&(a15==1)))&&(a27==1))))){ + a4 = 1; + a22 = 0; + a12 = 11; + a3 = 5; + a18 = 0; + a15 = 0; + a6 = 1; + a0 = 1; + return 26; + } else if(((((a4==1)&&((!(a27==1)&&(((a0==1)&&(((a3==5)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3)))&&(a12==8)))&&(a5==1)))&&(a20==1)))&&!(a15==1))&&(a6==1))){ + a27 = 1; + a22 = 0; + a6 = 0; + a18 = 1; + a15 = 1; + a12 = 11; + a0 = 0; + a5 = 0; + return 26; + } else if(((a5==1)&&(((!(a6==1)&&((((a20==1)&&((a3==7)&&((a27==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==3)))))&&(a15==1))&&(a12==12)))&&(a0==1))&&!(a4==1)))){ + a12 = 8; + a4 = 1; + a18 = 1; + a6 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if((((a20==1)&&((a4==1)&&(((((((((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==3))&&!(a6==1))&&(a27==1))&&!(a5==1))&&!(a0==1))&&(a15==1))))&&(a12==10))){ + a18 = 1; + a0 = 1; + a3 = 4; + a12 = 12; + a5 = 1; + a22 = 0; + return 26; + } else if(((((!(a0==1)&&((a6==1)&&((((a15==1)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==3)))&&(a5==1))&&(a20==1))))&&(a12==8))&&(a4==1))&&!(a27==1))){ + a3 = 5; + a18 = 1; + a22 = 1; + a0 = 1; + a27 = 1; + a6 = 0; + return 26; + } else if(((a20==1)&&((!(a15==1)&&(!(a27==1)&&(((!(a6==1)&&((a12==10)&&((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==4))&&(a0==1))))&&!(a5==1))&&(a4==1))))&&(a3==7)))){ + a18 = 0; + a15 = 1; + a12 = 12; + a27 = 1; + a3 = 8; + a22 = 0; + return 26; + } else if(((a4==1)&&(!(a0==1)&&((a12==8)&&((a20==1)&&(!(a15==1)&&(((!(a6==1)&&((input==3)&&((((!(a22==1)&&(a18==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7)))||(((a22==1)&&(a18==1))&&(a3==8)))))&&(a27==1))&&(a5==1)))))))){ + if((a22==1)){ + a18 = 0; + a3 = 8; + a4 = 0; + a5 = 0; + a22 = 0; + }else{ + a3 = 6; + a22 = 0; + a6 = 1; + a12 = 10; + a18 = 1; + a0 = 1; + } + return -1; + } else if(((a5==1)&&((a6==1)&&((a0==1)&&(!(a27==1)&&((((a12==8)&&(((a4==1)&&((input==3)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))))&&(a20==1)))&&(a3==7))&&(a15==1))))))){ + a22 = 0; + a12 = 10; + a3 = 6; + a27 = 1; + a15 = 0; + a18 = 0; + return 21; + } else if(((!(a5==1)&&(!(a0==1)&&(((!(a27==1)&&((a20==1)&&((((a22==1)&&((input==4)&&((a18==1)||!(a18==1))))&&(a3==7))&&(a12==11))))&&!(a6==1))&&(a15==1))))&&(a4==1))){ + a5 = 1; + a12 = 8; + a0 = 1; + a3 = 4; + a6 = 1; + a4 = 0; + a27 = 1; + a18 = 1; + return 21; + } else if((((((!(a15==1)&&((a3==4)&&(((a18==1)&&(!(a22==1)&&(!(a5==1)&&((input==2)&&(a20==1)))))&&(a0==1))))&&!(a27==1))&&(a4==1))&&(a6==1))&&(a12==10))){ + a5 = 1; + a12 = 11; + a3 = 5; + a4 = 0; + return 21; + } else if(((a27==1)&&((a15==1)&&(((a5==1)&&(((a12==10)&&((!(a0==1)&&((input==6)&&(((((a18==1)&&!(a22==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))||(((a18==1)&&(a22==1))&&(a3==7)))))&&(a20==1)))&&(a6==1)))&&!(a4==1))))){ + a3 = 4; + a4 = 1; + a12 = 8; + a0 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((((!(a0==1)&&(((a12==11)&&((a27==1)&&((a15==1)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==4)))))&&(a5==1)))&&(a20==1))&&!(a6==1))&&(a4==1))){ + a18 = 0; + a22 = 0; + a4 = 0; + a3 = 8; + a0 = 1; + return 24; + } else if(((((((((a18==1)&&(((((a12==10)&&(input==2))&&(a20==1))&&(a3==8))&&(a5==1)))&&(a27==1))&&!(a22==1))&&!(a15==1))&&!(a4==1))&&!(a6==1))&&(a0==1))){ + if((a5==1)){ + a0 = 0; + a3 = 7; + a6 = 1; + a15 = 1; + a12 = 8; + }else{ + a3 = 7; + a4 = 1; + a22 = 1; + } + return -1; + } else if(((((a0==1)&&((!(a4==1)&&(((a12==12)&&(((((input==2)&&((a18==1)||!(a18==1)))&&!(a15==1))&&(a27==1))&&!(a5==1)))&&(a22==1)))&&(a3==6)))&&!(a6==1))&&(a20==1))){ + a12 = 10; + a18 = 1; + a6 = 1; + a22 = 0; + a3 = 8; + a15 = 1; + return -1; + } else if(((!(a6==1)&&(!(a15==1)&&(!(a5==1)&&((a22==1)&&(((((((input==4)&&((a18==1)||!(a18==1)))&&(a20==1))&&!(a0==1))&&!(a4==1))&&(a12==9))&&(a3==7))))))&&!(a27==1))){ + a22 = 0; + a4 = 1; + a15 = 1; + a6 = 1; + a27 = 1; + a5 = 1; + a0 = 1; + a12 = 8; + a18 = 0; + return 26; + } else if(((a20==1)&&((a3==6)&&(!(a15==1)&&((!(a6==1)&&((a12==12)&&(((a5==1)&&((a27==1)&&((input==4)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))))&&(a4==1))))&&!(a0==1)))))){ + a27 = 0; + a3 = 5; + a5 = 0; + a12 = 9; + a6 = 1; + a15 = 1; + a22 = 1; + a18 = 1; + a0 = 1; + return 26; + } else if(((!(a4==1)&&(!(a5==1)&&((a20==1)&&((a12==10)&&(!(a15==1)&&(((a27==1)&&((a6==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==2))))&&(a0==1)))))))&&(a3==4))){ + a18 = 1; + a15 = 1; + a4 = 1; + a12 = 8; + a5 = 1; + a22 = 1; + return -1; + } else if(((((((a0==1)&&((a12==9)&&((a20==1)&&(!(a27==1)&&(!(a4==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==4)))))))&&(a5==1))&&!(a6==1))&&(a3==7))&&!(a15==1))){ + a18 = 1; + a22 = 1; + a5 = 0; + a3 = 8; + a15 = 1; + return 21; + } else if(((a4==1)&&((a20==1)&&((!(a6==1)&&((a12==11)&&((((((a5==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a3==8))&&!(a22==1))&&(a0==1))&&(a27==1))))&&(a15==1))))){ + a6 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((a20==1)&&(!(a27==1)&&((!(a6==1)&&((a0==1)&&((a15==1)&&(!(a4==1)&&((a5==1)&&((input==3)&&(((a3==8)&&((a22==1)&&!(a18==1)))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a22==1)&&(a18==1)))))))))))&&(a12==9))))){ + a12 = 11; + a27 = 1; + a22 = 1; + a6 = 1; + a18 = 1; + a3 = 7; + return -1; + } else if(((((a20==1)&&(((!(a27==1)&&(((input==6)&&(((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1)))||(((!(a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))))&&(a15==1)))&&(a4==1))&&(a12==10)))&&(a5==1))&&(a0==1))){ + a22 = 1; + a3 = 6; + a15 = 0; + a18 = 0; + a12 = 11; + a6 = 1; + return 26; + } else if((!(a6==1)&&((((((a27==1)&&((a22==1)&&((((a18==1)&&((a3==7)&&(input==4)))&&!(a4==1))&&(a5==1))))&&(a20==1))&&(a12==12))&&(a0==1))&&!(a15==1)))){ + a18 = 0; + a12 = 11; + a22 = 0; + a5 = 0; + a6 = 1; + return -1; + } else if((!(a6==1)&&((a27==1)&&((((a5==1)&&((a20==1)&&(!(a4==1)&&(((a3==8)&&((input==2)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))&&(a0==1)))))&&!(a15==1))&&(a12==8))))){ + a15 = 1; + a12 = 9; + a22 = 1; + a5 = 0; + a18 = 1; + a3 = 4; + a6 = 1; + return 21; + } else if((!(a5==1)&&(!(a27==1)&&((((a6==1)&&(((!(a15==1)&&((input==1)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7)))))&&(a20==1))&&!(a0==1)))&&(a12==11))&&(a4==1))))){ + if((a5==1)){ + a15 = 1; + a27 = 1; + a4 = 0; + a22 = 1; + a5 = 1; + a18 = 0; + a3 = 8; + a12 = 8; + a0 = 1; + }else{ + a3 = 6; + a22 = 0; + a5 = 1; + a15 = 1; + a18 = 1; + a6 = 0; + } + return 21; + } else if((((a27==1)&&((a15==1)&&((a6==1)&&((a12==9)&&((a4==1)&&((a22==1)&&((a20==1)&&((a18==1)&&(((a3==6)&&(input==4))&&!(a0==1))))))))))&&(a5==1))){ + a0 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if((!(a27==1)&&((a6==1)&&(((a22==1)&&((a4==1)&&(!(a15==1)&&((((!(a0==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a3==5))&&!(a5==1))&&(a12==10)))))&&(a20==1))))){ + a12 = 8; + a15 = 1; + a3 = 6; + a4 = 0; + a18 = 1; + a0 = 1; + a27 = 1; + a5 = 1; + a22 = 0; + return -1; + } else if(((a3==6)&&(((!(a4==1)&&(((a0==1)&&((a12==9)&&((((a6==1)&&((a20==1)&&(input==6)))&&!(a5==1))&&(a15==1))))&&(a18==1)))&&(a27==1))&&!(a22==1)))){ + a12 = 8; + a3 = 4; + a27 = 0; + a18 = 0; + return 21; + } else if(((a6==1)&&((a12==9)&&((a15==1)&&((a4==1)&&((((!(a27==1)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==4)))&&!(a0==1))&&(a5==1))&&(a20==1))))))){ + if((a18==1)){ + a3 = 6; + a0 = 1; + a22 = 1; + a18 = 0; + }else{ + a18 = 0; + a6 = 0; + a0 = 1; + a5 = 0; + a22 = 0; + a12 = 12; + a3 = 8; + } + return 24; + } else if((!(a15==1)&&((!(a4==1)&&((!(a5==1)&&((a20==1)&&((((a6==1)&&(((input==5)&&!(a22==1))&&!(a27==1)))&&(a12==9))&&(a18==1))))&&(a3==5)))&&(a0==1)))){ + a3 = 6; + a12 = 11; + a27 = 1; + a6 = 0; + return 21; + } else if((!(a15==1)&&(!(a5==1)&&(!(a18==1)&&(((a3==4)&&((a12==8)&&((((((a27==1)&&(input==2))&&(a20==1))&&(a6==1))&&(a0==1))&&(a22==1))))&&(a4==1)))))){ + if((a18==1)){ + a18 = 1; + a22 = 0; + a3 = 6; + a0 = 0; + a15 = 1; + a12 = 10; + a5 = 1; + }else{ + a4 = 0; + a12 = 10; + a3 = 5; + a15 = 1; + a18 = 1; + } + return 21; + } else if(((((a20==1)&&((!(a0==1)&&((!(a5==1)&&(((input==3)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5))))&&(a15==1)))&&!(a27==1)))&&(a6==1)))&&!(a4==1))&&(a12==10))){ + if((a15==1)){ + a27 = 1; + a22 = 0; + a5 = 1; + a18 = 0; + a4 = 1; + a12 = 8; + a0 = 1; + a6 = 0; + a3 = 6; + }else{ + a4 = 1; + a3 = 6; + a18 = 0; + a15 = 0; + a27 = 1; + a22 = 0; + a12 = 12; + } + return 26; + } else if(((a12==8)&&((a4==1)&&((!(a0==1)&&(((a3==7)&&((a22==1)&&((((a20==1)&&((input==1)&&(a6==1)))&&(a15==1))&&!(a27==1))))&&(a18==1)))&&(a5==1))))){ + a5 = 0; + a18 = 0; + a12 = 11; + a3 = 5; + a27 = 1; + return -1; + } else if(((a22==1)&&((!(a6==1)&&((a0==1)&&(!(a4==1)&&((a18==1)&&((!(a15==1)&&((a5==1)&&(((a3==6)&&(input==5))&&(a27==1))))&&(a12==12))))))&&(a20==1)))){ + a22 = 0; + a3 = 7; + a6 = 1; + return -1; + } else if((!(a15==1)&&((a27==1)&&((((!(a0==1)&&((a3==8)&&((((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a6==1))&&(a12==9))))&&(a20==1))&&(a4==1))&&(a5==1))))){ + a18 = 0; + a22 = 1; + a0 = 1; + a12 = 10; + a3 = 7; + return -1; + } else if(((((((a6==1)&&(((a20==1)&&(((a4==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==1)))&&!(a0==1)))&&(a3==8)))&&(a12==10))&&!(a5==1))&&(a27==1))&&(a15==1))){ + a15 = 0; + a0 = 1; + a22 = 1; + a5 = 1; + a12 = 11; + a18 = 1; + return -1; + } else if((((a0==1)&&((!(a27==1)&&(!(a4==1)&&(!(a6==1)&&(((a20==1)&&((input==6)&&((((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1))))||((a3==5)&&((a18==1)&&(a22==1))))))&&(a5==1)))))&&(a12==12)))&&!(a15==1))){ + a27 = 1; + a15 = 1; + a18 = 1; + a22 = 1; + a12 = 8; + a6 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((!(a6==1)&&((((a3==5)&&(((!(a4==1)&&(((!(a18==1)&&(input==2))&&(a12==10))&&!(a27==1)))&&!(a5==1))&&(a0==1)))&&(a20==1))&&(a22==1)))&&!(a15==1))){ + if((a15==1)){ + a3 = 6; + a5 = 1; + a0 = 0; + a27 = 1; + a22 = 0; + a12 = 9; + }else{ + a4 = 1; + a15 = 1; + a12 = 9; + a18 = 1; + a22 = 0; + a3 = 7; + } + return 21; + } else if((((a3==8)&&((a20==1)&&((a5==1)&&(((a0==1)&&((a12==10)&&(((a4==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a27==1)))&&(a15==1))))&&(a6==1)))))&&!(a22==1))){ + a6 = 0; + a12 = 11; + a3 = 4; + a18 = 1; + a5 = 0; + a4 = 0; + return 26; + } else if(((((((a12==12)&&((a0==1)&&((a5==1)&&((a3==7)&&((((input==1)&&((a18==1)||!(a18==1)))&&!(a22==1))&&(a27==1))))))&&!(a4==1))&&(a20==1))&&(a15==1))&&(a6==1))){ + a18 = 0; + a3 = 8; + a12 = 10; + return -1; + } else if((((a5==1)&&((a22==1)&&(!(a0==1)&&(((a15==1)&&((a3==6)&&(!(a6==1)&&((a20==1)&&(!(a4==1)&&(!(a27==1)&&(input==5)))))))&&(a12==8)))))&&!(a18==1))){ + if((a18==1)){ + a22 = 0; + a4 = 1; + a27 = 1; + a12 = 9; + a18 = 1; + }else{ + a3 = 8; + a0 = 1; + a4 = 1; + a27 = 1; + } + return 24; + } else if((!(a15==1)&&((a20==1)&&((a12==11)&&((a5==1)&&((!(a6==1)&&(!(a4==1)&&((a3==5)&&((a27==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==6))))))&&(a0==1))))))){ + a22 = 0; + a12 = 12; + a18 = 1; + a4 = 1; + return 24; + } else if((!(a0==1)&&(((a20==1)&&(((!(a5==1)&&((a6==1)&&(((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==6))&&!(a27==1))&&(a3==7))))&&!(a4==1))&&(a12==9)))&&!(a15==1)))){ + a6 = 0; + a22 = 0; + a27 = 1; + a12 = 8; + a15 = 1; + a0 = 1; + a18 = 0; + a3 = 5; + return -1; + } else if((!(a6==1)&&(((a12==11)&&((!(a5==1)&&(!(a0==1)&&((a3==7)&&((((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==5))&&(a15==1))&&!(a27==1)))))&&(a20==1)))&&!(a4==1)))){ + a12 = 9; + a6 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if((((a4==1)&&((a20==1)&&(!(a6==1)&&((a0==1)&&((!(a5==1)&&((!(a15==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3)))&&(a3==5)))&&(a27==1))))))&&(a12==9))){ + a18 = 0; + a22 = 0; + a6 = 1; + a15 = 1; + a3 = 6; + a5 = 1; + a27 = 0; + return 21; + } else if((((a12==9)&&((((((a6==1)&&((!(a0==1)&&(((input==1)&&(a22==1))&&(a20==1)))&&(a18==1)))&&!(a27==1))&&(a3==8))&&!(a15==1))&&(a5==1)))&&!(a4==1))){ + a12 = 8; + a0 = 1; + a22 = 0; + a18 = 0; + a15 = 1; + a27 = 1; + a4 = 1; + return -1; + } else if((((a27==1)&&(((a5==1)&&((a3==5)&&(((a20==1)&&((a12==12)&&((a0==1)&&((input==3)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))&&(a15==1))))&&!(a4==1)))&&(a6==1))){ + a15 = 0; + a3 = 6; + a22 = 0; + a6 = 0; + a18 = 0; + a4 = 1; + return 24; + } else if((((((a0==1)&&(!(a4==1)&&((a12==12)&&(!(a15==1)&&((!(a6==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2)))&&(a3==8))))))&&(a20==1))&&(a27==1))&&(a5==1))){ + a18 = 0; + a12 = 11; + a22 = 1; + return 21; + } else if(((!(a22==1)&&((a5==1)&&((a6==1)&&((((((a27==1)&&(((a3==5)&&(input==2))&&(a20==1)))&&(a12==10))&&!(a0==1))&&(a18==1))&&(a15==1)))))&&!(a4==1))){ + a3 = 6; + a0 = 1; + a5 = 0; + a22 = 1; + a4 = 1; + a15 = 0; + a6 = 0; + return 26; + } else if((((a0==1)&&(!(a15==1)&&((((((a3==5)&&((a22==1)&&(((input==3)&&(a4==1))&&(a20==1))))&&(a5==1))&&(a27==1))&&!(a18==1))&&!(a6==1))))&&(a12==11))){ + a22 = 0; + a15 = 1; + a3 = 4; + a12 = 10; + return 26; + } else if((!(a4==1)&&(!(a0==1)&&(((!(a6==1)&&(!(a5==1)&&((a12==10)&&(((((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==1))&&!(a27==1)))))&&(a15==1))&&(a20==1))))){ + if((a18==1)){ + a3 = 4; + a6 = 1; + a22 = 0; + a0 = 1; + a18 = 0; + }else{ + a22 = 0; + a27 = 1; + a5 = 1; + a12 = 8; + a18 = 0; + a6 = 1; + a3 = 8; + a0 = 1; + } + return 26; + } else if(((a20==1)&&((a12==10)&&(((a27==1)&&(((a0==1)&&(((!(a4==1)&&((input==4)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&!(a5==1))&&(a3==6)))&&!(a15==1)))&&(a6==1))))){ + if((a12==12)){ + a18 = 1; + a3 = 8; + a5 = 1; + a6 = 0; + a0 = 0; + a22 = 1; + a4 = 1; + a12 = 8; + }else{ + a0 = 0; + a18 = 0; + a22 = 0; + a6 = 0; + } + return -1; + } else if((((((!(a0==1)&&(((a4==1)&&(!(a15==1)&&(((((a22==1)&&(a18==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5))))&&(input==5))))&&!(a6==1)))&&(a20==1))&&!(a27==1))&&(a12==9))&&!(a5==1))){ + a27 = 1; + a22 = 0; + a18 = 0; + a3 = 8; + a0 = 1; + a15 = 1; + a5 = 1; + a4 = 0; + return -1; + } else if(((!(a0==1)&&((a4==1)&&((a20==1)&&((((a5==1)&&((a12==8)&&((input==2)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))||((!(a18==1)&&(a22==1))&&(a3==8))))))&&!(a27==1))&&(a6==1)))))&&!(a15==1))){ + a4 = 0; + a18 = 0; + a12 = 11; + a3 = 4; + a22 = 1; + return 26; + } else if((((a12==10)&&(((((a0==1)&&((!(a15==1)&&((a3==7)&&(((input==1)&&(a20==1))&&!(a6==1))))&&!(a4==1)))&&!(a27==1))&&(a5==1))&&!(a22==1)))&&!(a18==1))){ + a3 = 5; + a27 = 1; + a5 = 0; + a18 = 1; + return 26; + } else if(((((a5==1)&&((a20==1)&&((((!(a6==1)&&((input==6)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6)))))&&!(a4==1))&&!(a15==1))&&(a27==1))))&&(a12==10))&&(a0==1))){ + a27 = 0; + a4 = 1; + a18 = 1; + a15 = 1; + a3 = 4; + a22 = 0; + return 21; + } else if((!(a6==1)&&((a4==1)&&((a3==6)&&(((!(a5==1)&&((a15==1)&&(((a20==1)&&(((a22==1)&&(input==5))&&!(a27==1)))&&(a0==1))))&&(a12==8))&&!(a18==1)))))){ + a15 = 0; + a12 = 10; + a18 = 1; + a4 = 0; + return 24; + } else if((!(a4==1)&&((a15==1)&&(((a6==1)&&((a20==1)&&(((a5==1)&&(((input==2)&&((((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==5)))||(((a18==1)&&(a22==1))&&(a3==6))))&&(a0==1)))&&(a12==9))))&&(a27==1))))){ + a3 = 5; + a18 = 1; + a12 = 12; + a4 = 1; + a22 = 1; + a5 = 0; + return 26; + } else if((!(a4==1)&&((a0==1)&&(((a12==12)&&(!(a6==1)&&(((a20==1)&&((((((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a22==1)&&(a18==1))))||((!(a18==1)&&(a22==1))&&(a3==5)))&&(input==6))&&(a5==1)))&&(a27==1))))&&!(a15==1))))){ + a18 = 1; + a12 = 8; + a15 = 1; + a22 = 1; + a3 = 4; + a6 = 1; + a4 = 1; + return -1; + } else if(((a12==9)&&((a0==1)&&((((((a5==1)&&(!(a6==1)&&((((input==3)&&(a4==1))&&(a22==1))&&(a20==1))))&&!(a18==1))&&(a3==4))&&(a15==1))&&(a27==1))))){ + a12 = 12; + a18 = 1; + a3 = 7; + return 24; + } else if((((((a12==10)&&(!(a5==1)&&(((((input==4)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6)))||((a3==6)&&(!(a18==1)&&(a22==1)))))&&(a20==1))&&!(a0==1))&&(a27==1))))&&(a4==1))&&!(a6==1))&&(a15==1))){ + a6 = 1; + a3 = 8; + a22 = 1; + a5 = 1; + a4 = 0; + a0 = 1; + a18 = 1; + a12 = 12; + return 21; + } else if(((a27==1)&&((a12==9)&&((a4==1)&&(((a15==1)&&(((a0==1)&&(((((a3==4)&&(input==2))&&!(a18==1))&&(a22==1))&&(a6==1)))&&(a5==1)))&&(a20==1)))))){ + a6 = 0; + a4 = 0; + a5 = 0; + a3 = 8; + a18 = 1; + a12 = 11; + return 26; + } else if(((a20==1)&&((a6==1)&&((a27==1)&&((!(a4==1)&&((a12==10)&&((!(a22==1)&&((a3==5)&&(((input==4)&&(a15==1))&&!(a5==1))))&&!(a18==1))))&&!(a0==1)))))){ + a18 = 1; + a4 = 1; + a3 = 4; + a5 = 1; + a22 = 1; + a12 = 8; + a0 = 1; + return -1; + } else if(((a20==1)&&(((a27==1)&&(((!(a15==1)&&((a5==1)&&((a0==1)&&((input==5)&&(((a3==5)&&((a22==1)&&(a18==1)))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==4))))))))&&!(a4==1))&&(a12==9)))&&!(a6==1)))){ + a5 = 0; + a6 = 1; + a3 = 6; + a4 = 1; + a12 = 11; + a18 = 1; + a22 = 0; + return 26; + } else if(((a12==9)&&((a15==1)&&((a4==1)&&((a0==1)&&(!(a5==1)&&((a27==1)&&((a20==1)&&(((!(a6==1)&&((a3==4)&&((a22==1)&&!(a18==1))))||((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||(!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1))))))&&(input==1)))))))))){ + a5 = 1; + a3 = 8; + a22 = 1; + a12 = 8; + a27 = 0; + a18 = 1; + a6 = 0; + a15 = 0; + return 21; + } else if(((!(a15==1)&&(!(a6==1)&&((a20==1)&&((((a18==1)&&((!(a5==1)&&((!(a27==1)&&(input==5))&&(a22==1)))&&(a4==1)))&&(a3==6))&&(a12==8)))))&&!(a0==1))){ + if((a0==1)){ + a27 = 1; + a12 = 9; + a5 = 1; + a3 = 7; + a22 = 0; + a4 = 0; + a0 = 1; + }else{ + a22 = 0; + a6 = 1; + a3 = 4; + a27 = 1; + } + return -1; + } else if((!(a27==1)&&((a20==1)&&((a3==4)&&((a22==1)&&(((((a5==1)&&(((a18==1)&&(!(a6==1)&&(input==3)))&&!(a0==1)))&&!(a15==1))&&(a12==10))&&(a4==1))))))){ + if((a20==1)){ + a15 = 1; + a0 = 1; + a3 = 5; + a12 = 8; + a27 = 1; + a22 = 0; + a6 = 1; + }else{ + a12 = 8; + a0 = 1; + a3 = 8; + a22 = 0; + a27 = 1; + a18 = 0; + a15 = 1; + } + return -1; + } else if(((((a20==1)&&((!(a0==1)&&(((!(a4==1)&&(((((a18==1)||!(a18==1))&&(input==3))&&(a12==9))&&!(a22==1)))&&!(a6==1))&&(a27==1)))&&(a5==1)))&&!(a15==1))&&(a3==8))){ + a12 = 10; + a15 = 1; + a0 = 1; + a3 = 7; + a6 = 1; + a18 = 0; + return -1; + } else if((!(a27==1)&&((a4==1)&&((a3==7)&&((a0==1)&&((a6==1)&&((a5==1)&&(!(a15==1)&&((a20==1)&&(((input==3)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a12==12))))))))))){ + a6 = 0; + a22 = 0; + a3 = 8; + a18 = 1; + a12 = 9; + return -1; + } else if((!(a22==1)&&((!(a6==1)&&(((((((a15==1)&&(((a3==7)&&(input==6))&&(a20==1)))&&!(a0==1))&&!(a5==1))&&!(a18==1))&&!(a27==1))&&!(a4==1)))&&(a12==8)))){ + a18 = 1; + a3 = 8; + a0 = 1; + a5 = 1; + a6 = 1; + a27 = 1; + a22 = 1; + return 26; + } else if((((!(a5==1)&&(((a12==12)&&(((((a15==1)&&(((input==5)&&(a20==1))&&(a0==1)))&&!(a4==1))&&!(a18==1))&&!(a27==1)))&&(a3==8)))&&(a6==1))&&!(a22==1))){ + if((a0==1)){ + a18 = 1; + a12 = 8; + a27 = 1; + a0 = 0; + a3 = 7; + a6 = 0; + }else{ + a12 = 11; + a5 = 1; + a27 = 1; + a22 = 1; + a4 = 1; + a3 = 5; + a15 = 0; + } + return 21; + } else if((!(a15==1)&&(((!(a0==1)&&((a5==1)&&(((a6==1)&&((a12==11)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==1))))&&(a20==1))))&&(a4==1))&&!(a27==1)))){ + if((a18==1)){ + a12 = 8; + a0 = 1; + a27 = 1; + a3 = 8; + a22 = 0; + a15 = 1; + a18 = 1; + }else{ + a3 = 8; + a18 = 1; + a0 = 1; + a12 = 12; + a22 = 1; + a5 = 0; + } + return -1; + } else if(((!(a27==1)&&(((!(a0==1)&&((((!(a5==1)&&((input==6)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))&&(a4==1))&&(a6==1))&&(a15==1)))&&(a3==8))&&(a12==9)))&&(a20==1))){ + a12 = 8; + a22 = 0; + a0 = 1; + a3 = 4; + a5 = 1; + a6 = 0; + a18 = 1; + a27 = 1; + return -1; + } else if(((((((a12==12)&&(!(a6==1)&&(!(a4==1)&&((((a20==1)&&((input==1)&&(a27==1)))&&(a3==6))&&(a22==1)))))&&(a18==1))&&(a15==1))&&(a5==1))&&(a0==1))){ + a4 = 1; + a6 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((a4==1)&&(((!(a6==1)&&(((a15==1)&&((!(a0==1)&&((input==5)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))))&&!(a5==1)))&&(a27==1)))&&(a12==9))&&(a20==1)))){ + a18 = 1; + a22 = 1; + a0 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + a6 = 1; + return -1; + } else if(((a3==8)&&(((a22==1)&&(((a12==9)&&((!(a15==1)&&(((!(a5==1)&&(!(a6==1)&&(input==1)))&&!(a4==1))&&!(a27==1)))&&(a0==1)))&&(a20==1)))&&(a18==1)))){ + a22 = 0; + a27 = 1; + a12 = 11; + return 26; + } else if(((a12==10)&&((a0==1)&&((a20==1)&&((((a15==1)&&((((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==5))&&!(a5==1))&&(a4==1)))&&!(a6==1))&&(a27==1)))))){ + if((a6==1)){ + a12 = 8; + a18 = 1; + a3 = 4; + a0 = 0; + a22 = 0; + a15 = 0; + }else{ + a5 = 1; + a4 = 0; + a3 = 6; + a22 = 1; + a27 = 0; + a18 = 0; + } + return 21; + } else if((!(a27==1)&&((a4==1)&&((((a12==12)&&(((a3==4)&&((!(a5==1)&&((input==4)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))))&&!(a15==1)))&&(a20==1)))&&(a6==1))&&(a0==1))))){ + a27 = 1; + a18 = 0; + a15 = 1; + a6 = 0; + a3 = 7; + a22 = 0; + return 26; + } else if(((a12==8)&&(((((((a15==1)&&((a4==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==5))&&!(a5==1))))&&!(a27==1))&&(a6==1))&&(a20==1))&&!(a0==1))&&(a3==4)))){ + if((a5==1)){ + a27 = 1; + a4 = 0; + a5 = 1; + a18 = 1; + a22 = 0; + a3 = 6; + a0 = 1; + }else{ + a18 = 0; + a3 = 8; + a27 = 1; + a22 = 0; + a5 = 1; + a0 = 1; + } + return -1; + } else if(((((a20==1)&&((!(a5==1)&&(((!(a27==1)&&(((input==6)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&!(a4==1)))&&(a0==1))&&(a6==1)))&&(a3==8)))&&(a12==10))&&!(a15==1))){ + a5 = 1; + a18 = 1; + a27 = 1; + a22 = 1; + a3 = 7; + a12 = 12; + a4 = 1; + a6 = 0; + return 21; + } else if((!(a5==1)&&((!(a15==1)&&((a20==1)&&(!(a6==1)&&(!(a0==1)&&(((((((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a18==1)&&!(a22==1))))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==6))&&!(a4==1))&&(a12==11))))))&&(a27==1)))){ + a0 = 1; + a22 = 1; + a18 = 1; + a6 = 1; + a12 = 9; + a4 = 1; + a3 = 6; + a15 = 1; + return 21; + } else if((!(a5==1)&&(((a15==1)&&((a0==1)&&(!(a27==1)&&(((a3==7)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==6))&&(a4==1))&&(a12==9)))&&!(a6==1)))))&&(a20==1)))){ + a3 = 4; + a18 = 0; + a6 = 1; + a22 = 1; + a12 = 10; + a4 = 0; + return 26; + } else if(((a5==1)&&(!(a15==1)&&(((a12==8)&&((a27==1)&&((((a20==1)&&((!(a22==1)&&((a4==1)&&(input==4)))&&(a6==1)))&&(a3==8))&&(a0==1))))&&!(a18==1))))){ + a22 = 1; + a4 = 0; + a6 = 0; + a15 = 1; + a5 = 0; + return 26; + } else if(((a27==1)&&(((a0==1)&&(((((a15==1)&&(!(a5==1)&&((input==1)&&((((a22==1)&&(a18==1))&&(a3==8))||(((!(a22==1)&&(a18==1))&&(a3==7))||((a3==7)&&(!(a22==1)&&!(a18==1))))))))&&(a12==9))&&!(a6==1))&&!(a4==1)))&&(a20==1)))){ + a3 = 4; + a5 = 1; + a6 = 1; + a18 = 1; + a4 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if(((((((a4==1)&&((a6==1)&&(((a27==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))||((a3==7)&&((a22==1)&&!(a18==1))))&&(input==4)))&&(a5==1))))&&(a15==1))&&(a12==12))&&(a20==1))&&(a0==1))){ + a22 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + return -1; + } else if((!(a27==1)&&((a12==8)&&((a5==1)&&(!(a15==1)&&(!(a6==1)&&((a0==1)&&(((a20==1)&&((input==6)&&(((((a18==1)&&!(a22==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))||((a3==7)&&((a18==1)&&(a22==1))))))&&!(a4==1))))))))){ + a27 = 1; + a3 = 4; + a12 = 11; + a22 = 1; + a6 = 1; + a18 = 0; + return 21; + } else if((((((a0==1)&&((!(a27==1)&&((a6==1)&&((a3==4)&&(((a4==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a12==9)))))&&!(a15==1)))&&!(a22==1))&&(a20==1))&&(a5==1))){ + a12 = 12; + a18 = 0; + return 21; + } else if(((!(a22==1)&&((a5==1)&&(((((a3==8)&&((((a15==1)&&((input==3)&&(a18==1)))&&!(a0==1))&&!(a4==1)))&&(a6==1))&&(a12==10))&&!(a27==1))))&&(a20==1))){ + if((a27==1)){ + a4 = 1; + a5 = 0; + a3 = 6; + a22 = 1; + a15 = 0; + }else{ + a15 = 0; + a5 = 0; + a0 = 1; + a3 = 4; + a22 = 1; + a27 = 1; + a12 = 8; + } + return -1; + } else if((((a3==5)&&(((a20==1)&&((a12==8)&&(((!(a5==1)&&(((((a18==1)||!(a18==1))&&(input==6))&&(a27==1))&&(a22==1)))&&(a4==1))&&(a15==1))))&&!(a0==1)))&&(a6==1))){ + a0 = 1; + a3 = 7; + a12 = 9; + a22 = 0; + a18 = 1; + a27 = 0; + return 21; + } else if(((a5==1)&&((a4==1)&&(!(a27==1)&&((a18==1)&&(((((a22==1)&&((((input==6)&&!(a6==1))&&!(a15==1))&&(a0==1)))&&(a3==8))&&(a20==1))&&(a12==10))))))){ + a6 = 1; + a12 = 9; + a5 = 0; + a15 = 1; + a18 = 0; + return 21; + } else if((!(a4==1)&&((!(a5==1)&&(!(a6==1)&&(((a12==8)&&((a27==1)&&((a20==1)&&((input==4)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a22==1)&&(a18==1))))))))&&!(a0==1))))&&!(a15==1)))){ + a3 = 8; + a15 = 1; + a5 = 1; + a22 = 1; + a18 = 0; + a0 = 1; + a6 = 1; + a27 = 0; + return -1; + } else if((!(a6==1)&&((!(a4==1)&&(((a5==1)&&((a3==8)&&((a12==8)&&((!(a15==1)&&((input==3)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&(a0==1)))))&&!(a27==1)))&&(a20==1)))){ + a3 = 4; + a22 = 1; + a27 = 1; + a4 = 1; + a15 = 1; + a18 = 1; + a6 = 1; + return -1; + } else if((((a27==1)&&((a20==1)&&(((a15==1)&&(((a18==1)&&(((!(a5==1)&&((input==1)&&(a0==1)))&&(a3==4))&&(a4==1)))&&(a22==1)))&&(a12==9))))&&(a6==1))){ + a0 = 0; + a4 = 0; + a15 = 0; + a12 = 8; + a3 = 6; + return 26; + } else if((!(a27==1)&&(((a20==1)&&(((((((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==2))&&(a3==6))&&(a0==1))&&(a6==1))&&!(a5==1))&&!(a4==1))&&(a12==8)))&&(a15==1)))){ + a22 = 1; + a3 = 7; + a12 = 9; + a4 = 1; + a6 = 0; + a18 = 0; + return 26; + } else if((!(a22==1)&&((((a12==11)&&((((((!(a15==1)&&((input==2)&&!(a4==1)))&&!(a27==1))&&!(a5==1))&&!(a0==1))&&(a6==1))&&(a18==1)))&&(a20==1))&&(a3==4)))){ + a18 = 0; + a12 = 8; + a3 = 7; + a27 = 1; + return 21; + } else if((!(a5==1)&&((((!(a22==1)&&(!(a4==1)&&((a3==4)&&((a20==1)&&(((a6==1)&&(!(a0==1)&&(input==2)))&&(a12==10))))))&&!(a15==1))&&(a27==1))&&(a18==1)))){ + a5 = 1; + a4 = 1; + a15 = 1; + a22 = 1; + a0 = 1; + a12 = 8; + return -1; + } else if(((!(a22==1)&&(((a20==1)&&((a0==1)&&(!(a5==1)&&((((a3==8)&&((a12==9)&&(((a18==1)||!(a18==1))&&(input==1))))&&(a27==1))&&!(a4==1)))))&&(a6==1)))&&(a15==1))){ + a12 = 8; + a27 = 0; + a18 = 1; + a6 = 0; + a3 = 4; + return 21; + } else if((!(a0==1)&&(((a4==1)&&(!(a27==1)&&((a12==11)&&(((((input==4)&&(((a3==7)&&(!(a18==1)&&(a22==1)))||(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7)))))&&!(a6==1))&&(a5==1))&&(a15==1)))))&&(a20==1)))){ + a22 = 1; + a18 = 1; + a6 = 1; + a0 = 1; + a3 = 8; + a12 = 8; + a27 = 1; + return -1; + } else if((!(a4==1)&&(!(a15==1)&&((a6==1)&&((a20==1)&&(!(a0==1)&&((((((((!(a22==1)&&(a18==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==2))&&(a5==1))&&(a12==8))&&(a27==1)))))))){ + a6 = 0; + a12 = 12; + a0 = 1; + a22 = 1; + a3 = 4; + a18 = 0; + return 26; + } else if(((a6==1)&&(((a15==1)&&((a27==1)&&(((((!(a5==1)&&((input==1)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a4==1))&&!(a0==1))&&(a3==6))&&(a12==9))))&&(a20==1)))){ + a18 = 1; + a3 = 5; + a12 = 11; + a22 = 0; + a0 = 1; + a6 = 0; + a15 = 0; + a4 = 0; + return 21; + } else if((((a20==1)&&((((a12==11)&&((a5==1)&&(((a0==1)&&(((((a22==1)&&(a18==1))&&(a3==8))||((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a18==1)&&!(a22==1)))))&&(input==1)))&&!(a6==1))))&&!(a27==1))&&!(a15==1)))&&!(a4==1))){ + a27 = 1; + a18 = 0; + a22 = 1; + a4 = 1; + a3 = 8; + a6 = 1; + return -1; + } else if((((a12==12)&&((a0==1)&&((((a20==1)&&((a4==1)&&((((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==5)))||((a3==5)&&((a22==1)&&!(a18==1))))&&(input==2))&&(a5==1))))&&!(a15==1))&&!(a6==1))))&&!(a27==1))){ + a5 = 0; + a15 = 1; + a22 = 1; + a27 = 1; + a3 = 8; + a18 = 1; + return 26; + } else if(((((a27==1)&&(!(a0==1)&&(((a4==1)&&(((((a22==1)&&((input==4)&&(a15==1)))&&(a18==1))&&(a12==10))&&(a6==1)))&&(a20==1))))&&(a3==7))&&!(a5==1))){ + a12 = 8; + a0 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if(((((((a27==1)&&(((a12==10)&&(((input==4)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1)))))&&(a20==1)))&&(a4==1)))&&!(a0==1))&&(a6==1))&&!(a15==1))&&(a5==1))){ + a5 = 0; + a15 = 1; + a4 = 0; + a3 = 5; + a22 = 1; + a12 = 11; + a18 = 1; + return 21; + } else if((((((a20==1)&&((a5==1)&&(!(a15==1)&&(((((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a6==1))&&(a12==10))&&!(a27==1)))))&&!(a4==1))&&(a3==6))&&!(a0==1))){ + a6 = 0; + a15 = 1; + a22 = 1; + a0 = 1; + a18 = 1; + a27 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if((((((a3==5)&&(!(a27==1)&&((a6==1)&&(((a12==9)&&((a20==1)&&(((input==4)&&(a5==1))&&!(a4==1))))&&!(a18==1)))))&&!(a15==1))&&(a22==1))&&(a0==1))){ + a5 = 0; + a4 = 1; + a22 = 0; + a3 = 7; + a27 = 1; + a18 = 1; + a12 = 11; + return 26; + } else if(((a20==1)&&(((a12==12)&&(!(a27==1)&&(!(a6==1)&&((a18==1)&&(((a0==1)&&((a22==1)&&(((input==2)&&(a3==7))&&(a15==1))))&&!(a4==1))))))&&!(a5==1)))){ + a4 = 1; + a27 = 1; + a5 = 1; + a22 = 0; + a12 = 10; + a6 = 1; + a3 = 4; + return -1; + } else if(((a15==1)&&(((a0==1)&&((!(a6==1)&&(((a20==1)&&((a22==1)&&(!(a27==1)&&(!(a5==1)&&((a18==1)&&(input==4))))))&&(a12==9)))&&(a4==1)))&&(a3==7)))){ + a4 = 0; + a12 = 12; + a6 = 1; + a18 = 0; + a15 = 0; + a27 = 1; + a3 = 5; + return -1; + } else if(((!(a4==1)&&((a27==1)&&((a3==6)&&((((a12==8)&&((((input==6)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&(a6==1))&&!(a5==1)))&&(a0==1))&&(a15==1)))))&&(a20==1))){ + a15 = 0; + a22 = 1; + a5 = 1; + a4 = 1; + a12 = 10; + a18 = 1; + a3 = 5; + return 21; + } else if((((a20==1)&&((((a12==8)&&(((a0==1)&&(((input==3)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5))))&&(a15==1)))&&!(a6==1)))&&(a5==1))&&!(a4==1)))&&!(a27==1))){ + if((a5==1)){ + a18 = 0; + a12 = 11; + a0 = 0; + a27 = 1; + a22 = 1; + a3 = 4; + }else{ + a18 = 0; + a27 = 1; + a12 = 11; + a6 = 1; + a5 = 0; + a22 = 1; + a4 = 1; + a15 = 0; + a3 = 5; + } + return 26; + } else if((((a22==1)&&(((a3==5)&&((!(a4==1)&&((!(a15==1)&&(((a27==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a12==8)))&&(a5==1)))&&(a20==1)))&&!(a0==1)))&&(a6==1))){ + a15 = 1; + a12 = 12; + a3 = 6; + a22 = 0; + a18 = 1; + return -1; + } else if(((!(a15==1)&&((a3==6)&&((a12==9)&&((!(a0==1)&&(((a5==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==1))&&!(a27==1)))&&(a20==1)))&&!(a6==1)))))&&(a4==1))){ + if((a4==1)){ + a18 = 0; + a5 = 0; + a15 = 1; + a4 = 0; + a22 = 0; + }else{ + a22 = 1; + a12 = 8; + a3 = 7; + a15 = 1; + a0 = 1; + a18 = 1; + a27 = 1; + a6 = 1; + } + return 24; + } else if(((((!(a6==1)&&(((a27==1)&&(!(a15==1)&&((a0==1)&&((input==5)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1))))||((!(a18==1)&&(a22==1))&&(a3==7)))))))&&(a12==11)))&&(a5==1))&&!(a4==1))&&(a20==1))){ + if((a15==1)){ + a3 = 4; + a0 = 0; + a5 = 0; + a18 = 1; + a22 = 0; + a6 = 1; + }else{ + a22 = 0; + a3 = 8; + a27 = 0; + a18 = 1; + a15 = 1; + } + return 24; + } else if(((((a20==1)&&(((a6==1)&&((a12==10)&&((a22==1)&&(((a0==1)&&((a3==8)&&(((a18==1)||!(a18==1))&&(input==2))))&&(a5==1)))))&&(a27==1)))&&!(a15==1))&&(a4==1))){ + a12 = 8; + a18 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if(((a12==10)&&((!(a5==1)&&(((((((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==3))&&(a6==1))&&!(a15==1))&&(a0==1))&&(a20==1))&&(a4==1))&&(a27==1)))&&(a3==4)))){ + a4 = 0; + a3 = 5; + a6 = 0; + a22 = 0; + a5 = 1; + a18 = 0; + return -1; + } else if(((a12==8)&&((a15==1)&&(((((((a3==5)&&(!(a6==1)&&((input==1)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))))&&(a20==1))&&!(a0==1))&&!(a27==1))&&!(a4==1))&&!(a5==1))))){ + a4 = 1; + a5 = 1; + a22 = 1; + a6 = 1; + a18 = 0; + return -1; + } else if((!(a4==1)&&((a5==1)&&(!(a27==1)&&((!(a0==1)&&((a20==1)&&((a15==1)&&((a12==8)&&((input==6)&&((((a18==1)&&(a22==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5)))))))))&&(a6==1)))))){ + a27 = 1; + a6 = 0; + a15 = 0; + a0 = 1; + a18 = 0; + a22 = 0; + a12 = 12; + a3 = 8; + return 21; + } else if(((a18==1)&&((((a12==10)&&((((!(a15==1)&&((((a0==1)&&(input==5))&&!(a27==1))&&(a20==1)))&&(a6==1))&&(a3==6))&&!(a22==1)))&&!(a5==1))&&(a4==1)))){ + a18 = 0; + a6 = 0; + a15 = 1; + a3 = 5; + a27 = 1; + a22 = 1; + return 21; + } else if(((a6==1)&&((a5==1)&&((a0==1)&&((a3==5)&&((a4==1)&&(!(a27==1)&&((a12==12)&&((a20==1)&&((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==3))&&!(a15==1))))))))))){ + a6 = 0; + a18 = 0; + a22 = 0; + a27 = 1; + return -1; + } else if(((a6==1)&&((a22==1)&&((!(a15==1)&&(((((a12==11)&&((((input==5)&&((a18==1)||!(a18==1)))&&!(a0==1))&&(a20==1)))&&(a3==6))&&(a5==1))&&(a4==1)))&&(a27==1))))){ + if((a27==1)){ + a18 = 0; + }else{ + a3 = 4; + a0 = 1; + a18 = 1; + a12 = 10; + } + return 21; + } else if((!(a6==1)&&((((a12==8)&&((!(a0==1)&&(!(a5==1)&&((((input==4)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&(a20==1))&&!(a27==1))))&&(a15==1)))&&(a3==4))&&(a4==1)))){ + a22 = 1; + a0 = 1; + a18 = 0; + a27 = 1; + a3 = 7; + a6 = 1; + a5 = 1; + return 26; + } else if((!(a27==1)&&((((a3==6)&&((!(a5==1)&&(!(a6==1)&&(((a15==1)&&((a22==1)&&((a0==1)&&(input==2))))&&(a18==1))))&&(a12==11)))&&(a4==1))&&(a20==1)))){ + a6 = 1; + a27 = 1; + a4 = 0; + a3 = 7; + a15 = 0; + return 26; + } else if(((a6==1)&&(!(a5==1)&&(((a0==1)&&((a12==8)&&((((a4==1)&&((input==6)&&(((((a18==1)&&!(a22==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))||(((a18==1)&&(a22==1))&&(a3==7)))))&&(a20==1))&&!(a15==1))))&&(a27==1))))){ + a18 = 1; + a3 = 5; + a12 = 10; + a22 = 1; + return 26; + } else if((((a3==7)&&(((a0==1)&&((((a20==1)&&(((a12==11)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==6)))&&!(a27==1)))&&!(a4==1))&&!(a5==1)))&&(a6==1)))&&(a15==1))){ + a18 = 1; + a3 = 5; + a27 = 1; + a0 = 0; + a22 = 1; + return 26; + } else if(((a3==7)&&(((a12==8)&&((a4==1)&&(!(a15==1)&&((((a20==1)&&((a0==1)&&(!(a27==1)&&(!(a22==1)&&(input==6)))))&&(a18==1))&&(a5==1)))))&&!(a6==1)))){ + a27 = 1; + a22 = 1; + a6 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if(((!(a0==1)&&((a22==1)&&(((a5==1)&&((a12==9)&&((a27==1)&&((a15==1)&&((a6==1)&&(!(a4==1)&&((input==5)&&(a18==1))))))))&&(a20==1))))&&(a3==7))){ + a3 = 6; + a6 = 0; + a5 = 0; + a18 = 0; + a0 = 1; + a12 = 8; + return 21; + } else if((!(a0==1)&&((!(a4==1)&&((a6==1)&&((((((a27==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a12==9)))&&(a22==1))&&!(a5==1))&&(a3==7))&&!(a15==1))))&&(a20==1)))){ + a0 = 1; + a4 = 1; + a3 = 6; + a15 = 1; + a12 = 10; + a18 = 1; + a6 = 0; + return 26; + } else if((((a15==1)&&(((((a6==1)&&((((((!(a18==1)&&(a22==1))&&(a3==8))||(((!(a18==1)&&!(a22==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8))))&&(input==5))&&!(a5==1))&&!(a0==1)))&&(a4==1))&&(a12==10))&&!(a27==1)))&&(a20==1))){ + a0 = 1; + a22 = 0; + a27 = 1; + a3 = 8; + a12 = 8; + a18 = 1; + a5 = 1; + a6 = 0; + return 21; + } else if((!(a15==1)&&(((a12==10)&&((a0==1)&&((((((((input==5)&&((a18==1)||!(a18==1)))&&(a3==5))&&!(a6==1))&&!(a22==1))&&!(a5==1))&&(a27==1))&&(a20==1))))&&(a4==1)))){ + if((a0==1)){ + a15 = 1; + a12 = 8; + a3 = 7; + a0 = 0; + a22 = 1; + a6 = 1; + a18 = 1; + }else{ + a15 = 1; + a4 = 0; + a3 = 4; + a18 = 1; + a6 = 1; + } + return -1; + } else if(((a12==12)&&(((!(a22==1)&&((!(a18==1)&&((((((input==2)&&(a5==1))&&!(a4==1))&&(a6==1))&&!(a15==1))&&(a3==6)))&&(a20==1)))&&(a0==1))&&!(a27==1)))){ + a3 = 7; + a6 = 0; + a27 = 1; + a18 = 1; + a5 = 0; + a4 = 1; + a15 = 1; + return -1; + } else if(((a4==1)&&(((a20==1)&&((a0==1)&&((a12==10)&&((((((a5==1)&&(!(a15==1)&&(input==1)))&&(a27==1))&&(a18==1))&&(a6==1))&&!(a22==1)))))&&(a3==5)))){ + a18 = 0; + a6 = 0; + a22 = 1; + a15 = 1; + return -1; + } else if((((a3==5)&&(((a20==1)&&(!(a0==1)&&((a18==1)&&((a27==1)&&((((!(a4==1)&&(input==2))&&(a5==1))&&(a12==8))&&!(a6==1))))))&&!(a22==1)))&&!(a15==1))){ + a0 = 1; + a27 = 0; + a15 = 1; + a6 = 1; + a3 = 8; + a22 = 1; + return 21; + } else if((((!(a5==1)&&((a22==1)&&((((a4==1)&&(((a3==7)&&(((input==1)&&((a18==1)||!(a18==1)))&&!(a0==1)))&&!(a6==1)))&&!(a15==1))&&(a12==8))))&&!(a27==1))&&(a20==1))){ + a18 = 1; + a5 = 1; + a15 = 1; + a3 = 4; + a4 = 0; + a27 = 1; + a0 = 1; + return 21; + } else if((((a27==1)&&(((!(a4==1)&&(((((!(a5==1)&&((input==1)&&!(a22==1)))&&(a0==1))&&!(a15==1))&&(a12==9))&&!(a6==1)))&&(a18==1))&&(a3==5)))&&(a20==1))){ + a15 = 1; + a3 = 7; + a5 = 1; + a6 = 1; + a12 = 12; + return 24; + } else if((((a6==1)&&((((a0==1)&&(!(a5==1)&&(!(a27==1)&&(!(a4==1)&&((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==1))))))&&(a20==1))&&(a12==8)))&&(a15==1))){ + a4 = 1; + a12 = 9; + a18 = 0; + a5 = 1; + a3 = 8; + a6 = 0; + a22 = 0; + return 21; + } else if(((a0==1)&&((a20==1)&&(((a15==1)&&((a27==1)&&((((((a3==8)&&((!(a22==1)&&!(a18==1))&&(a4==1)))&&!(a6==1))||(((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1))))&&(a6==1)))&&(input==3))&&(a12==12))))&&!(a5==1))))){ + a3 = 6; + a6 = 1; + a15 = 0; + a12 = 11; + a4 = 1; + a18 = 0; + a22 = 1; + return -1; + } else if((((a12==10)&&(!(a27==1)&&(((!(a22==1)&&((a3==6)&&((a5==1)&&(((a20==1)&&((input==4)&&!(a0==1)))&&(a15==1)))))&&(a6==1))&&!(a4==1))))&&!(a18==1))){ + a6 = 0; + a4 = 1; + a12 = 8; + a0 = 1; + a3 = 8; + a27 = 1; + a22 = 1; + return -1; + } else if(((!(a5==1)&&((a4==1)&&(!(a27==1)&&(((a20==1)&&((a15==1)&&((((a6==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&!(a0==1))&&(a3==8))))&&!(a22==1)))))&&(a12==10))){ + if((a4==1)){ + a6 = 0; + a15 = 0; + a3 = 6; + a12 = 8; + a18 = 1; + a22 = 1; + a5 = 1; + }else{ + a18 = 0; + a12 = 8; + a22 = 1; + a27 = 1; + a0 = 1; + a5 = 1; + } + return -1; + } else if((!(a15==1)&&((a6==1)&&(((!(a5==1)&&(((a4==1)&&((a27==1)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==5))))&&(a20==1)))&&!(a0==1))&&(a12==8))))){ + a12 = 10; + a22 = 1; + a5 = 1; + a6 = 0; + a18 = 1; + a4 = 0; + a0 = 1; + a3 = 6; + a15 = 1; + return -1; + } else if(((!(a5==1)&&(((((a22==1)&&(((((a3==7)&&((a0==1)&&(input==5)))&&(a18==1))&&(a4==1))&&(a12==11)))&&(a6==1))&&(a20==1))&&(a15==1)))&&(a27==1))){ + a12 = 10; + a4 = 0; + a5 = 1; + return 24; + } else if(((a20==1)&&(!(a0==1)&&((((a12==10)&&((a5==1)&&((a27==1)&&((a15==1)&&((input==2)&&((((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==5))))))))&&(a4==1))&&!(a6==1))))){ + a18 = 1; + a0 = 1; + a22 = 1; + a3 = 6; + return 26; + } else if((!(a5==1)&&((((a4==1)&&(!(a27==1)&&((a12==9)&&((a15==1)&&(!(a6==1)&&((input==6)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))))))))&&(a20==1))&&!(a0==1)))){ + if((a20==1)){ + a22 = 1; + a3 = 8; + a12 = 10; + a4 = 0; + a27 = 1; + a0 = 1; + a15 = 0; + a18 = 1; + }else{ + a22 = 1; + a6 = 1; + a12 = 8; + a0 = 1; + a3 = 6; + a27 = 1; + a18 = 0; + a5 = 1; + } + return 26; + } else if(((a27==1)&&(!(a15==1)&&(((a20==1)&&(!(a5==1)&&((((!(a22==1)&&((a12==12)&&((input==6)&&!(a4==1))))&&(a3==5))&&!(a6==1))&&!(a18==1))))&&!(a0==1))))){ + a3 = 6; + a18 = 1; + a4 = 1; + a22 = 1; + a6 = 1; + a12 = 10; + a5 = 1; + return -1; + } else if((((!(a0==1)&&(!(a27==1)&&((a20==1)&&((a12==11)&&((((a15==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==5)))&&(a3==4))&&!(a5==1))))))&&(a6==1))&&(a4==1))){ + a15 = 0; + a22 = 0; + a18 = 0; + a5 = 1; + a12 = 10; + a3 = 6; + a4 = 0; + return -1; + } else if((!(a15==1)&&((a0==1)&&(!(a27==1)&&(((a5==1)&&(!(a6==1)&&((a20==1)&&(((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==2))&&(a12==11))&&(a3==6)))))&&(a4==1)))))){ + a6 = 1; + a18 = 0; + a22 = 0; + a5 = 0; + a12 = 10; + a3 = 7; + a4 = 0; + a15 = 1; + return -1; + } else if(((((((((!(a6==1)&&(((input==2)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a3==6)))&&!(a4==1))&&(a0==1))&&(a12==12))&&!(a27==1))&&(a15==1))&&(a20==1))&&!(a5==1))){ + a5 = 1; + a18 = 1; + a3 = 8; + a27 = 1; + a22 = 0; + a12 = 11; + a15 = 0; + return 21; + } else if((((((((a12==11)&&((a0==1)&&((a20==1)&&((input==6)&&(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))))))&&!(a5==1))&&(a4==1))&&(a27==1))&&!(a15==1))&&!(a6==1))){ + a3 = 8; + a22 = 1; + a18 = 1; + a6 = 1; + a27 = 0; + return 21; + } else if(((!(a6==1)&&((a4==1)&&(((((a27==1)&&((a12==10)&&((input==6)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))||((a3==6)&&((a22==1)&&!(a18==1)))))))&&(a5==1))&&!(a15==1))&&(a0==1))))&&(a20==1))){ + a12 = 8; + a15 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((!(a4==1)&&(((a3==7)&&((a15==1)&&((a20==1)&&((a12==10)&&(((a6==1)&&((a27==1)&&((input==1)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&!(a0==1))))))&&(a5==1)))){ + a3 = 4; + a18 = 1; + a4 = 1; + a22 = 1; + a0 = 1; + a12 = 8; + return -1; + } else if((!(a22==1)&&(!(a0==1)&&((a5==1)&&((a4==1)&&((a15==1)&&((a18==1)&&(((a12==11)&&(((a27==1)&&((a20==1)&&(input==2)))&&!(a6==1)))&&(a3==4))))))))){ + if((a6==1)){ + a5 = 0; + a6 = 1; + a18 = 0; + a3 = 6; + a4 = 0; + }else{ + a3 = 7; + a5 = 0; + a0 = 1; + a22 = 1; + a4 = 0; + } + return 21; + } else if(((a27==1)&&((a15==1)&&((((a12==11)&&(!(a0==1)&&(((((a3==6)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a6==1))&&!(a4==1))&&!(a5==1))))&&(a20==1))&&(a22==1))))){ + a0 = 1; + a12 = 9; + a18 = 0; + a15 = 0; + a5 = 1; + a6 = 0; + a3 = 4; + a27 = 0; + return -1; + } else if((((a12==12)&&((a15==1)&&((a3==4)&&((a6==1)&&(!(a4==1)&&(((((a22==1)&&((input==4)&&(a5==1)))&&(a18==1))&&(a0==1))&&(a20==1)))))))&&(a27==1))){ + a12 = 8; + a4 = 1; + return -1; + } else if(((((a6==1)&&((a12==11)&&((a15==1)&&(((!(a4==1)&&((((input==2)&&((a18==1)||!(a18==1)))&&(a0==1))&&(a20==1)))&&!(a22==1))&&(a3==7)))))&&(a27==1))&&!(a5==1))){ + a5 = 1; + a3 = 5; + a18 = 1; + a6 = 0; + a12 = 10; + return -1; + } else if(((a27==1)&&((a12==10)&&(!(a5==1)&&((a20==1)&&((a22==1)&&((a15==1)&&(((((a6==1)&&((input==4)&&(a0==1)))&&!(a18==1))&&(a4==1))&&(a3==5))))))))){ + a5 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((((a3==7)&&((a6==1)&&((a27==1)&&((((((a0==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==5)))&&!(a5==1))&&!(a15==1))&&(a20==1))&&(a12==10)))))&&(a4==1))){ + a15 = 1; + a0 = 0; + a4 = 0; + a22 = 0; + a3 = 6; + a18 = 0; + a12 = 11; + return 21; + } else if(((a27==1)&&(!(a0==1)&&((a12==12)&&(((a20==1)&&(!(a6==1)&&((a5==1)&&(((input==6)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5))))&&(a4==1)))))&&!(a15==1)))))){ + a3 = 8; + a12 = 11; + a15 = 1; + a0 = 1; + a18 = 1; + a6 = 1; + a22 = 1; + a27 = 0; + return 21; + } else if(((a3==5)&&((a4==1)&&(!(a27==1)&&(((((((a22==1)&&((((a18==1)||!(a18==1))&&(input==5))&&(a20==1)))&&!(a15==1))&&(a6==1))&&(a12==10))&&(a0==1))&&(a5==1)))))){ + a18 = 1; + a12 = 12; + a6 = 0; + a22 = 0; + a3 = 7; + return 26; + } else if((((((((a12==9)&&((!(a0==1)&&((input==5)&&((((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==6)))))&&!(a6==1)))&&(a5==1))&&(a15==1))&&(a27==1))&&!(a4==1))&&(a20==1))){ + a22 = 0; + a15 = 0; + a18 = 0; + a3 = 8; + return 26; + } else if(((!(a5==1)&&((((a6==1)&&((a0==1)&&((a20==1)&&(!(a15==1)&&((input==6)&&((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==5)))||((a3==5)&&(!(a18==1)&&(a22==1)))))))))&&(a12==12))&&!(a4==1)))&&!(a27==1))){ + a4 = 1; + a5 = 1; + a27 = 1; + a22 = 0; + a18 = 0; + a3 = 8; + return 21; + } else if(((a5==1)&&(((((a27==1)&&(((a3==6)&&((((((a18==1)||!(a18==1))&&(input==1))&&!(a15==1))&&!(a0==1))&&(a12==11)))&&(a20==1)))&&!(a4==1))&&!(a22==1))&&(a6==1)))){ + a0 = 1; + a22 = 1; + a4 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + a15 = 1; + return -1; + } else if(((a6==1)&&(((a0==1)&&(((a3==4)&&((((a27==1)&&((((input==3)&&(a5==1))&&(a18==1))&&(a12==8)))&&(a4==1))&&!(a22==1)))&&!(a15==1)))&&(a20==1)))){ + a18 = 0; + a6 = 0; + a4 = 0; + a3 = 6; + return 21; + } else if(((!(a5==1)&&(((!(a0==1)&&(((a12==9)&&(((a20==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==2)))&&(a3==6)))&&(a15==1)))&&!(a27==1))&&(a6==1)))&&(a4==1))){ + a22 = 0; + a4 = 0; + a18 = 1; + a15 = 0; + a5 = 1; + a3 = 4; + a27 = 1; + return -1; + } else if((((a20==1)&&(((a5==1)&&((a12==11)&&((a18==1)&&((a27==1)&&(!(a6==1)&&((a0==1)&&(((a15==1)&&(input==5))&&!(a4==1))))))))&&(a22==1)))&&(a3==8))){ + a18 = 0; + a3 = 6; + a12 = 8; + a22 = 0; + return 24; + } else if(((((!(a27==1)&&((((a12==11)&&(!(a5==1)&&(!(a4==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==1)))))&&!(a15==1))&&(a3==5)))&&!(a6==1))&&(a20==1))&&(a0==1))){ + a3 = 8; + a18 = 1; + a12 = 10; + a5 = 1; + a22 = 1; + return -1; + } else if((!(a4==1)&&(!(a22==1)&&((a12==12)&&((!(a6==1)&&((a5==1)&&(!(a15==1)&&((a20==1)&&(!(a0==1)&&((a3==7)&&(((a18==1)||!(a18==1))&&(input==5))))))))&&(a27==1)))))){ + if((a18==1)){ + a18 = 0; + a3 = 8; + a27 = 0; + a22 = 1; + a0 = 1; + a5 = 0; + a6 = 1; + a12 = 8; + }else{ + a6 = 1; + a12 = 8; + a18 = 0; + a0 = 1; + a15 = 1; + a22 = 1; + } + return -1; + } else if((((((!(a27==1)&&(!(a15==1)&&(((((a18==1)&&((input==3)&&!(a4==1)))&&(a5==1))&&!(a6==1))&&(a22==1))))&&(a20==1))&&(a3==8))&&!(a0==1))&&(a12==9))){ + a27 = 1; + a3 = 7; + a4 = 1; + a15 = 1; + a12 = 8; + a0 = 1; + return 26; + } else if(((((a27==1)&&((a0==1)&&((((((input==4)&&(((a3==8)&&(!(a18==1)&&(a22==1)))||(((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))))&&(a4==1))&&(a15==1))&&(a5==1))&&(a20==1))))&&(a12==12))&&(a6==1))){ + a3 = 4; + a12 = 8; + a18 = 1; + a22 = 1; + return -1; + } else if((!(a5==1)&&((a20==1)&&((((a27==1)&&((a15==1)&&((((a12==9)&&((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a4==1))&&(a0==1))))&&(a3==5))&&!(a6==1))))){ + a6 = 1; + a18 = 0; + a12 = 10; + a22 = 1; + return 26; + } else if(((((a12==10)&&(((a6==1)&&(((a27==1)&&(((a3==4)&&((input==3)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))))&&(a5==1)))&&!(a0==1)))&&!(a4==1)))&&!(a15==1))&&(a20==1))){ + a22 = 0; + a0 = 1; + a18 = 1; + a3 = 8; + a27 = 0; + a4 = 1; + return 26; + } else if(((((a22==1)&&(((!(a15==1)&&(!(a4==1)&&((a3==8)&&((((a12==9)&&(input==2))&&(a18==1))&&!(a27==1)))))&&!(a6==1))&&(a0==1)))&&(a20==1))&&!(a5==1))){ + a18 = 0; + a12 = 11; + a22 = 0; + a27 = 1; + return 21; + } else if(((a3==4)&&((a27==1)&&((((a20==1)&&((!(a0==1)&&((((input==4)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&(a4==1))&&(a15==1)))&&(a12==8)))&&!(a6==1))&&!(a5==1))))){ + a22 = 1; + a3 = 5; + a15 = 0; + a18 = 1; + return 21; + } else if(((a12==12)&&(!(a4==1)&&((a3==8)&&((a20==1)&&(((a6==1)&&(!(a0==1)&&(!(a5==1)&&(!(a15==1)&&((input==1)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))))))&&(a27==1))))))){ + a3 = 5; + a5 = 1; + a22 = 1; + a15 = 1; + a0 = 1; + a4 = 1; + a18 = 1; + a6 = 0; + a12 = 8; + return -1; + } else if((((((((!(a4==1)&&(((input==5)&&(((a3==6)&&((a22==1)&&!(a18==1)))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1))))))&&!(a15==1)))&&(a0==1))&&(a5==1))&&!(a27==1))&&(a20==1))&&(a12==11))&&!(a6==1))){ + a27 = 1; + a18 = 1; + a6 = 1; + a3 = 6; + a12 = 12; + a15 = 1; + a22 = 0; + a5 = 0; + a4 = 1; + return 24; + } else if(((a5==1)&&(((a20==1)&&((!(a4==1)&&((a12==11)&&(((((a27==1)&&((input==2)&&((a18==1)||!(a18==1))))&&!(a0==1))&&!(a6==1))&&(a15==1))))&&(a3==8)))&&(a22==1)))){ + a4 = 1; + a3 = 4; + a6 = 1; + a18 = 1; + a0 = 1; + a22 = 0; + return -1; + } else if(((((a5==1)&&((((a27==1)&&((a3==4)&&((!(a15==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2)))&&!(a0==1))))&&(a4==1))&&(a20==1)))&&(a12==12))&&!(a6==1))){ + a22 = 1; + a27 = 0; + a3 = 5; + a18 = 0; + a12 = 11; + a0 = 1; + a15 = 1; + a6 = 1; + return -1; + } else if(((a12==9)&&((a6==1)&&(((a27==1)&&((((a0==1)&&((a3==5)&&(!(a15==1)&&(!(a4==1)&&((input==6)&&(a22==1))))))&&(a20==1))&&(a5==1)))&&(a18==1))))){ + a6 = 0; + a12 = 10; + a4 = 1; + a18 = 0; + return 26; + } else if(((((!(a0==1)&&((a12==11)&&((a27==1)&&((a5==1)&&(!(a6==1)&&((a4==1)&&((input==2)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))))))))&&(a20==1))&&(a3==7))&&!(a15==1))){ + a0 = 1; + a22 = 0; + a4 = 0; + a3 = 6; + a6 = 1; + a18 = 0; + a15 = 1; + return 21; + } else if((((a4==1)&&(!(a22==1)&&(((a20==1)&&((!(a6==1)&&((a0==1)&&((((input==6)&&(a5==1))&&(a18==1))&&!(a15==1))))&&!(a27==1)))&&(a12==12))))&&(a3==8))){ + a22 = 1; + a27 = 1; + a3 = 7; + a12 = 10; + return 21; + } else if(((!(a27==1)&&(!(a4==1)&&((a20==1)&&((a12==9)&&((!(a0==1)&&(!(a6==1)&&((input==3)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1)))))))&&(a5==1))))))&&(a15==1))){ + a18 = 0; + a22 = 0; + a0 = 1; + a27 = 1; + a3 = 4; + a12 = 8; + a6 = 1; + return 21; + } else if(((!(a6==1)&&(((a15==1)&&(!(a27==1)&&(((((a12==8)&&(((input==4)&&!(a0==1))&&(a20==1)))&&!(a18==1))&&!(a4==1))&&(a22==1))))&&(a5==1)))&&(a3==4))){ + if((a3==4)){ + a27 = 1; + a5 = 0; + a22 = 0; + a3 = 5; + a12 = 10; + }else{ + a18 = 1; + a27 = 1; + a6 = 1; + a12 = 12; + a3 = 5; + a22 = 0; + } + return 26; + } else if(((a18==1)&&((a22==1)&&(((a27==1)&&(!(a15==1)&&(!(a4==1)&&((a12==12)&&((!(a6==1)&&(((input==2)&&(a0==1))&&!(a5==1)))&&(a20==1))))))&&(a3==7))))){ + a3 = 5; + a22 = 0; + a12 = 11; + a5 = 1; + a15 = 1; + return 21; + } else if(((a20==1)&&(!(a27==1)&&(((a5==1)&&((a22==1)&&((a15==1)&&(((a12==9)&&((((input==4)&&!(a18==1))&&(a4==1))&&(a3==7)))&&!(a6==1)))))&&!(a0==1))))){ + a12 = 8; + a6 = 1; + a0 = 1; + a22 = 0; + a27 = 1; + a3 = 4; + return -1; + } else if(((a20==1)&&((((!(a6==1)&&((a4==1)&&((a27==1)&&((!(a5==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6)))&&(a3==8)))))&&(a0==1))&&!(a15==1))&&(a12==9)))){ + a18 = 0; + a3 = 5; + a12 = 10; + a22 = 0; + a6 = 1; + a0 = 0; + a4 = 0; + a5 = 1; + return 24; + } else if(((((((a15==1)&&((a0==1)&&(((a27==1)&&((input==2)&&((((a18==1)&&(a22==1))&&(a3==7))||(((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a22==1)&&!(a18==1)))))))&&!(a4==1))))&&!(a6==1))&&(a12==10))&&(a5==1))&&(a20==1))){ + a5 = 0; + a27 = 0; + a12 = 9; + a3 = 4; + a22 = 0; + a18 = 0; + return 21; + } else if((((!(a0==1)&&((!(a6==1)&&(((a12==11)&&((a4==1)&&((((a3==5)&&((a22==1)&&!(a18==1)))||(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1)))))&&(input==4))))&&(a27==1)))&&!(a5==1)))&&(a15==1))&&(a20==1))){ + a5 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + a6 = 1; + a22 = 1; + a0 = 1; + return -1; + } else if(((a18==1)&&((a6==1)&&((a20==1)&&(!(a0==1)&&((a12==8)&&((!(a4==1)&&(!(a5==1)&&((a22==1)&&((!(a15==1)&&(input==2))&&(a3==5)))))&&!(a27==1)))))))){ + if((a4==1)){ + a22 = 0; + a0 = 1; + a27 = 1; + a18 = 0; + a15 = 1; + a5 = 1; + a3 = 7; + }else{ + a3 = 7; + a22 = 0; + a5 = 1; + a4 = 1; + a27 = 1; + a0 = 1; + a15 = 1; + a6 = 0; + } + return -1; + } else if((!(a6==1)&&((((a3==7)&&(((a18==1)&&(((a15==1)&&((a20==1)&&((!(a27==1)&&(input==6))&&!(a22==1))))&&(a12==8)))&&(a4==1)))&&(a5==1))&&(a0==1)))){ + a12 = 12; + a18 = 0; + a5 = 0; + a27 = 1; + a3 = 6; + a22 = 1; + return 21; + } else if((((a3==8)&&(!(a15==1)&&((!(a22==1)&&((((((a4==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a20==1))&&(a12==12))&&!(a0==1))&&(a27==1)))&&!(a6==1))))&&!(a5==1))){ + a6 = 1; + a15 = 1; + a18 = 1; + a12 = 11; + return 21; + } else if((((!(a6==1)&&((a5==1)&&((a12==8)&&((!(a0==1)&&((a3==8)&&((((input==6)&&(a4==1))&&!(a22==1))&&(a15==1))))&&(a27==1)))))&&(a18==1))&&(a20==1))){ + a0 = 1; + a6 = 1; + a22 = 1; + a5 = 0; + a3 = 5; + a15 = 0; + a4 = 0; + return 24; + } else if(((a4==1)&&((a5==1)&&((a27==1)&&((!(a6==1)&&(!(a15==1)&&((a12==9)&&(((input==3)&&((((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==7))))&&(a20==1)))))&&(a0==1)))))){ + a5 = 0; + a22 = 0; + a18 = 1; + a4 = 0; + a3 = 7; + a12 = 12; + return 26; + } else if(((a4==1)&&((a12==9)&&(((a20==1)&&((a15==1)&&(!(a6==1)&&((a0==1)&&(((((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==5))&&!(a5==1))))))&&!(a27==1))))){ + if((a12==9)){ + a5 = 1; + a22 = 1; + a12 = 8; + a27 = 1; + a3 = 6; + a6 = 1; + a0 = 0; + a18 = 1; + }else{ + a18 = 0; + a22 = 0; + a3 = 5; + a12 = 10; + a4 = 0; + } + return 26; + } else if(((a3==8)&&((((((a5==1)&&((((a6==1)&&(((a20==1)&&(input==6))&&(a15==1)))&&(a0==1))&&(a18==1)))&&!(a4==1))&&!(a22==1))&&(a27==1))&&(a12==11)))){ + a12 = 12; + a3 = 7; + a5 = 0; + a4 = 1; + a22 = 1; + return 26; + } else if(((a5==1)&&((a12==11)&&(((((a6==1)&&(((((((a3==4)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==4)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==2))&&(a0==1))&&!(a4==1)))&&!(a27==1))&&(a20==1))&&(a15==1))))){ + a12 = 9; + a15 = 0; + a18 = 1; + a22 = 0; + a6 = 0; + a3 = 4; + a5 = 0; + return 26; + } else if(((((!(a0==1)&&(((((((a12==9)&&((input==6)&&((a18==1)||!(a18==1))))&&!(a5==1))&&(a4==1))&&!(a22==1))&&(a20==1))&&!(a6==1)))&&(a15==1))&&(a3==8))&&!(a27==1))){ + if((a0==1)){ + a27 = 1; + a22 = 1; + a18 = 0; + a0 = 1; + a5 = 1; + a3 = 5; + a12 = 8; + }else{ + a3 = 7; + a5 = 1; + a12 = 8; + a0 = 1; + a27 = 1; + a18 = 1; + } + return 24; + } else if((((a20==1)&&(((a27==1)&&(((!(a15==1)&&((a3==5)&&(!(a0==1)&&((input==3)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))))))&&!(a4==1))&&(a12==10)))&&(a6==1)))&&(a5==1))){ + a18 = 1; + a4 = 1; + a22 = 1; + a3 = 4; + a15 = 1; + a0 = 1; + a12 = 8; + return -1; + } else if(((a4==1)&&((!(a5==1)&&(((a15==1)&&(((a22==1)&&(((a3==6)&&(((input==1)&&!(a18==1))&&(a20==1)))&&!(a6==1)))&&(a0==1)))&&(a12==12)))&&(a27==1)))){ + a5 = 1; + a18 = 1; + a3 = 4; + a15 = 0; + return -1; + } else if((((!(a22==1)&&((a20==1)&&((a12==12)&&((a18==1)&&(!(a15==1)&&(!(a6==1)&&((a0==1)&&(((input==2)&&(a3==8))&&(a5==1)))))))))&&!(a27==1))&&(a4==1))){ + a15 = 1; + a3 = 4; + a18 = 0; + a4 = 0; + a12 = 10; + return -1; + } else if(((((((a15==1)&&(!(a6==1)&&((a27==1)&&((a20==1)&&((input==3)&&(((a3==5)&&(!(a18==1)&&(a22==1)))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5)))))))))&&(a4==1))&&!(a0==1))&&(a12==12))&&(a5==1))){ + a12 = 9; + a6 = 1; + a22 = 1; + a3 = 6; + a15 = 0; + a27 = 0; + a18 = 1; + a0 = 1; + return -1; + } else if(((a3==5)&&(((((a12==11)&&((a18==1)&&((a27==1)&&(((((input==6)&&(a20==1))&&(a6==1))&&(a15==1))&&!(a0==1)))))&&(a4==1))&&!(a22==1))&&!(a5==1)))){ + a5 = 1; + a3 = 7; + a12 = 12; + a0 = 1; + a15 = 0; + return 26; + } else if((((((a3==4)&&((((!(a5==1)&&(!(a27==1)&&((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&(a0==1))&&(a20==1))&&!(a15==1)))&&!(a6==1))&&(a12==12))&&(a4==1))){ + a22 = 0; + a4 = 0; + a12 = 10; + a27 = 1; + a3 = 5; + a18 = 1; + a5 = 1; + a6 = 1; + return -1; + } else if((((a18==1)&&((a20==1)&&(((a4==1)&&(!(a22==1)&&((a12==11)&&(((a0==1)&&(!(a27==1)&&((input==3)&&(a5==1))))&&(a3==4)))))&&!(a15==1))))&&!(a6==1))){ + a15 = 1; + a27 = 1; + a5 = 0; + a3 = 7; + a12 = 12; + return 26; + } return calculate_output46(input); + } + + int calculate_output46(int input) { + if(((a0==1)&&((!(a5==1)&&((a20==1)&&(((a15==1)&&((input==5)&&((!(a6==1)&&(((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8)))||(((((a18==1)&&(a22==1))&&!(a4==1))&&(a3==4))&&(a6==1)))))&&(a27==1))))&&(a12==9)))){ + a4 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + a6 = 1; + a5 = 1; + return -1; + } else if((((a27==1)&&((((((a15==1)&&((((((a22==1)&&!(a18==1))&&(a3==6))||(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6))))&&(input==4))&&(a6==1)))&&!(a0==1))&&(a20==1))&&(a12==10))&&(a5==1)))&&!(a4==1))){ + a6 = 0; + a18 = 1; + a22 = 1; + a15 = 0; + a27 = 0; + a0 = 1; + a3 = 8; + return -1; + } else if(((((a20==1)&&((!(a18==1)&&((a12==9)&&((a4==1)&&(((((input==2)&&(a15==1))&&(a0==1))&&!(a22==1))&&(a5==1)))))&&(a6==1)))&&(a3==4))&&!(a27==1))){ + a0 = 0; + a22 = 1; + a12 = 8; + a15 = 0; + a27 = 1; + a3 = 6; + return 21; + } else if((!(a0==1)&&(!(a6==1)&&((((!(a5==1)&&((((a3==4)&&((input==5)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))&&!(a15==1))&&(a12==10)))&&!(a4==1))&&(a27==1))&&(a20==1))))){ + a0 = 1; + a3 = 5; + a15 = 1; + a5 = 1; + a22 = 0; + a18 = 0; + return -1; + } else if((!(a5==1)&&((a0==1)&&((((!(a4==1)&&((((a20==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==4)))&&(a27==1))&&(a3==4)))&&!(a6==1))&&(a12==12))&&(a15==1))))){ + a3 = 5; + a5 = 1; + a22 = 1; + a27 = 0; + a12 = 11; + a18 = 0; + return 26; + } else if(((((((!(a4==1)&&((((((a3==8)&&((a18==1)&&(a22==1)))||(((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==7))))&&(input==3))&&(a15==1))&&!(a6==1)))&&(a27==1))&&!(a0==1))&&(a12==8))&&(a20==1))&&(a5==1))){ + a12 = 11; + a22 = 0; + a15 = 0; + a18 = 1; + a3 = 4; + a0 = 1; + return -1; + } else if(((((a18==1)&&((((a3==4)&&((a4==1)&&(((a5==1)&&(((input==1)&&!(a27==1))&&(a20==1)))&&(a22==1))))&&(a6==1))&&(a15==1)))&&(a12==12))&&(a0==1))){ + if((a0==1)){ + a3 = 6; + a22 = 0; + a0 = 0; + a4 = 0; + a27 = 1; + }else{ + a12 = 10; + a18 = 0; + a5 = 0; + } + return -1; + } else if((!(a5==1)&&(((a0==1)&&(((a20==1)&&((a3==8)&&(((a15==1)&&(!(a27==1)&&((a6==1)&&((input==4)&&((a18==1)||!(a18==1))))))&&(a22==1))))&&(a12==8)))&&(a4==1)))){ + a27 = 1; + a5 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((((!(a0==1)&&(((a27==1)&&(((a3==8)&&((a4==1)&&((((input==5)&&(a5==1))&&(a20==1))&&(a12==11))))&&!(a18==1)))&&(a22==1)))&&(a15==1))&&(a6==1))){ + a3 = 4; + a0 = 1; + a18 = 1; + a6 = 0; + a15 = 0; + a12 = 12; + return -1; + } else if(((!(a4==1)&&((a3==6)&&((a15==1)&&(!(a5==1)&&((a22==1)&&((a20==1)&&(((!(a27==1)&&((a12==11)&&(input==2)))&&!(a18==1))&&(a6==1))))))))&&!(a0==1))){ + if((a18==1)){ + a27 = 1; + a12 = 8; + a6 = 0; + a18 = 1; + a15 = 0; + a3 = 7; + a0 = 1; + a5 = 1; + }else{ + a5 = 1; + a12 = 10; + a15 = 0; + a3 = 5; + a22 = 0; + a4 = 1; + } + return -1; + } else if((!(a27==1)&&((a15==1)&&((a20==1)&&((((((a12==10)&&(!(a5==1)&&(!(a0==1)&&(((a18==1)||!(a18==1))&&(input==3)))))&&(a6==1))&&(a3==5))&&!(a22==1))&&(a4==1)))))){ + a4 = 0; + a18 = 0; + a15 = 0; + a12 = 12; + a3 = 7; + a5 = 1; + a6 = 0; + a27 = 1; + return 21; + } else if((!(a5==1)&&((a6==1)&&((a12==9)&&(!(a15==1)&&((((a0==1)&&((((input==6)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&!(a4==1))&&(a20==1)))&&(a27==1))&&(a3==8))))))){ + a15 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a5 = 1; + a4 = 1; + a12 = 8; + return -1; + } else if(((a12==12)&&((a3==4)&&((a22==1)&&(((!(a5==1)&&(!(a0==1)&&((a20==1)&&((a4==1)&&((a27==1)&&(((a18==1)||!(a18==1))&&(input==1)))))))&&(a15==1))&&!(a6==1)))))){ + a3 = 8; + a18 = 0; + a4 = 0; + a22 = 0; + a15 = 0; + return -1; + } else if(((((!(a15==1)&&((((a6==1)&&((a12==9)&&((((a20==1)&&(input==4))&&(a22==1))&&!(a0==1))))&&!(a4==1))&&!(a27==1)))&&(a3==8))&&(a18==1))&&(a5==1))){ + a0 = 1; + a15 = 1; + a12 = 8; + a4 = 1; + a27 = 1; + return 24; + } else if(((a0==1)&&((!(a15==1)&&((!(a27==1)&&(((a20==1)&&((a3==8)&&((a12==11)&&((input==5)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))))&&!(a6==1)))&&!(a4==1)))&&!(a5==1)))){ + a18 = 1; + a3 = 6; + a5 = 1; + a15 = 1; + a22 = 0; + a6 = 1; + return -1; + } else if(((!(a22==1)&&(((!(a18==1)&&((a4==1)&&((((a15==1)&&(((a20==1)&&(input==2))&&(a6==1)))&&(a3==6))&&(a0==1))))&&(a5==1))&&!(a27==1)))&&(a12==11))){ + a3 = 4; + a22 = 1; + a18 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if(((a12==10)&&((((((((a15==1)&&(((input==6)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&(a4==1)))&&(a6==1))&&(a5==1))&&(a27==1))&&(a20==1))&&(a3==6))&&(a0==1)))){ + a22 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + return -1; + } else if(((a3==8)&&((a12==9)&&(((((a15==1)&&((a20==1)&&(((!(a4==1)&&((a6==1)&&(input==6)))&&!(a27==1))&&(a22==1))))&&!(a18==1))&&(a5==1))&&(a0==1))))){ + a4 = 1; + a6 = 0; + a22 = 0; + a3 = 6; + a15 = 0; + a12 = 12; + a27 = 1; + return 26; + } else if(((a15==1)&&((a0==1)&&((a27==1)&&((a20==1)&&(!(a6==1)&&((a3==8)&&((a5==1)&&((!(a4==1)&&((input==5)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))))&&(a12==10)))))))))){ + a22 = 1; + a4 = 1; + a3 = 4; + a6 = 1; + a18 = 0; + return -1; + } else if(((((((!(a4==1)&&(((!(a27==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==4)))&&(a0==1))&&!(a5==1)))&&(a12==8))&&(a15==1))&&!(a6==1))&&(a3==8))&&(a20==1))){ + a22 = 1; + a5 = 1; + a18 = 0; + a12 = 11; + a27 = 1; + a3 = 5; + return 21; + } else if((((!(a0==1)&&((a15==1)&&((a27==1)&&(!(a5==1)&&((a20==1)&&((((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||(!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1)))))&&(input==5)))))))&&(a12==10))&&!(a4==1))){ + a3 = 5; + a0 = 1; + a22 = 1; + a6 = 0; + a12 = 12; + a18 = 0; + a5 = 1; + return 21; + } else if(((a5==1)&&(((a15==1)&&(((a6==1)&&((a0==1)&&(((!(a18==1)&&(((a22==1)&&(input==3))&&(a20==1)))&&!(a4==1))&&!(a27==1))))&&(a12==8)))&&(a3==4)))){ + a3 = 5; + a6 = 0; + a27 = 1; + a12 = 12; + return 21; + } else if((!(a15==1)&&((((a22==1)&&((!(a27==1)&&((a18==1)&&(!(a4==1)&&((((input==4)&&!(a0==1))&&(a20==1))&&(a3==7)))))&&!(a6==1)))&&(a5==1))&&(a12==11)))){ + a22 = 0; + a12 = 9; + a5 = 0; + a3 = 4; + a4 = 1; + a18 = 0; + a15 = 1; + return -1; + } else if(((a27==1)&&((a3==4)&&(!(a6==1)&&(((!(a5==1)&&((a12==11)&&((((input==3)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a15==1))&&!(a0==1))))&&!(a4==1))&&(a20==1)))))){ + a3 = 8; + a6 = 1; + a22 = 0; + a18 = 0; + a0 = 1; + a4 = 1; + a5 = 1; + a12 = 10; + return 24; + } else if((!(a5==1)&&((((((((a6==1)&&((a22==1)&&((a4==1)&&((input==2)&&((a18==1)||!(a18==1))))))&&(a0==1))&&(a15==1))&&(a12==8))&&(a27==1))&&(a20==1))&&(a3==8)))){ + a3 = 4; + a5 = 1; + a18 = 1; + return -1; + } else if(((a27==1)&&((a20==1)&&(!(a6==1)&&((((a5==1)&&((((input==5)&&((((a3==4)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))||(((a22==1)&&(a18==1))&&(a3==5))))&&!(a4==1))&&(a15==1)))&&(a12==8))&&(a0==1)))))){ + a22 = 0; + a18 = 1; + a3 = 8; + return 21; + } else if(((a15==1)&&(((((((a20==1)&&((a4==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&(a27==1))))&&!(a5==1))&&!(a0==1))&&(a3==7))&&!(a6==1))&&(a12==8)))){ + a0 = 1; + a22 = 0; + a6 = 1; + a18 = 1; + a12 = 11; + a5 = 1; + a4 = 0; + return -1; + } else if(((a4==1)&&((a5==1)&&((a27==1)&&(((a12==9)&&((a20==1)&&((a15==1)&&((a3==4)&&((!(a0==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a6==1))))))&&(a22==1)))))){ + a12 = 12; + a18 = 1; + a4 = 0; + a0 = 1; + a22 = 0; + return -1; + } else if((((a20==1)&&((((((a27==1)&&(((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==6))&&(a3==6))&&!(a0==1)))&&!(a5==1))&&(a4==1))&&!(a15==1))&&(a12==9)))&&(a6==1))){ + a6 = 0; + a4 = 0; + a5 = 1; + a18 = 1; + a12 = 8; + a22 = 1; + a15 = 1; + a0 = 1; + return 21; + } else if((((a20==1)&&((!(a4==1)&&((((a22==1)&&((a12==10)&&(!(a0==1)&&(!(a6==1)&&((a3==5)&&(input==2))))))&&(a27==1))&&(a18==1)))&&!(a15==1)))&&!(a5==1))){ + a3 = 7; + a0 = 1; + a22 = 0; + a6 = 1; + a18 = 0; + return 21; + } else if(((a15==1)&&((((a27==1)&&(((!(a5==1)&&(((input==1)&&(((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1))))||((a3==7)&&((a22==1)&&(a18==1)))))&&(a12==8)))&&(a0==1))&&!(a6==1)))&&(a4==1))&&(a20==1)))){ + a18 = 0; + a3 = 8; + a6 = 1; + a12 = 10; + a5 = 1; + a22 = 1; + return 21; + } else if((!(a4==1)&&((a20==1)&&((a3==8)&&(!(a0==1)&&(((a6==1)&&(!(a15==1)&&((((input==3)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&(a5==1))&&(a12==10))))&&(a27==1))))))){ + a4 = 1; + a18 = 1; + a15 = 1; + a22 = 1; + a0 = 1; + a3 = 7; + return -1; + } else if((((!(a4==1)&&(!(a27==1)&&((a12==12)&&(((a15==1)&&(((input==4)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1)))))&&(a0==1)))&&!(a5==1)))))&&(a6==1))&&(a20==1))){ + a12 = 11; + a27 = 1; + a3 = 5; + a22 = 1; + a5 = 1; + a0 = 0; + a18 = 0; + a15 = 0; + a6 = 0; + a4 = 1; + return -1; + } else if(((((a15==1)&&((a6==1)&&(((((a12==10)&&((a20==1)&&(((input==2)&&(a22==1))&&(a0==1))))&&(a4==1))&&(a3==6))&&!(a27==1))))&&!(a18==1))&&(a5==1))){ + a0 = 0; + a3 = 7; + a12 = 12; + a27 = 1; + a22 = 0; + a4 = 0; + return 21; + } else if(((((a6==1)&&((a20==1)&&(((a0==1)&&((!(a22==1)&&((a12==10)&&(!(a4==1)&&((a15==1)&&(input==6)))))&&(a5==1)))&&(a27==1))))&&(a3==4))&&!(a18==1))){ + a6 = 0; + a4 = 1; + return 21; + } else if((((((a0==1)&&(((a4==1)&&(((a3==7)&&(((a15==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a6==1)))&&(a20==1)))&&!(a27==1)))&&!(a5==1))&&(a22==1))&&(a12==10))){ + a5 = 1; + a18 = 1; + a12 = 8; + a27 = 1; + a3 = 4; + return -1; + } else if((((a20==1)&&((!(a0==1)&&((a12==11)&&((!(a5==1)&&(((a27==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a15==1)))&&!(a6==1)))&&!(a4==1))))&&!(a22==1)))&&(a3==8))){ + a4 = 1; + a6 = 1; + a18 = 0; + a3 = 6; + a0 = 1; + return 21; + } else if(((a3==6)&&(((!(a27==1)&&(((a22==1)&&((a6==1)&&(!(a5==1)&&((((a0==1)&&(input==6))&&(a18==1))&&(a12==11)))))&&(a15==1)))&&(a20==1))&&(a4==1)))){ + a3 = 8; + a12 = 9; + a4 = 0; + a0 = 0; + a27 = 1; + a6 = 0; + return 26; + } else if(((a5==1)&&(!(a0==1)&&((((a3==5)&&(((a20==1)&&(((a12==11)&&((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a27==1)))&&!(a4==1)))&&!(a6==1))&&!(a15==1))))){ + a6 = 1; + a22 = 1; + a0 = 1; + a18 = 1; + a12 = 9; + return 26; + } else if(((!(a18==1)&&((((a22==1)&&((a6==1)&&((((!(a5==1)&&(!(a0==1)&&(input==4)))&&(a20==1))&&!(a15==1))&&(a27==1))))&&(a12==8))&&(a3==4)))&&!(a4==1))){ + a6 = 0; + a4 = 1; + a0 = 1; + a12 = 11; + a15 = 1; + a3 = 8; + a22 = 0; + return 21; + } else if((((a27==1)&&(!(a4==1)&&((((a5==1)&&(!(a6==1)&&((((a3==4)&&((input==4)&&(a20==1)))&&(a12==10))&&!(a0==1))))&&(a18==1))&&!(a22==1))))&&!(a15==1))){ + a3 = 6; + a0 = 1; + a12 = 8; + a15 = 1; + return 21; + } else if((!(a15==1)&&(((a3==8)&&(((!(a0==1)&&((((a20==1)&&((input==1)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&(a27==1))&&(a4==1)))&&(a12==8))&&!(a5==1)))&&!(a6==1)))){ + a15 = 1; + a22 = 1; + a6 = 1; + a3 = 4; + a5 = 1; + a18 = 1; + a0 = 1; + return -1; + } else if(((((a5==1)&&((((((a6==1)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==1))&&(a20==1)))&&(a12==12))&&!(a15==1))&&(a3==5))&&(a27==1)))&&(a4==1))&&!(a0==1))){ + a6 = 0; + a12 = 8; + a27 = 0; + a3 = 8; + a15 = 1; + a0 = 1; + a18 = 1; + a22 = 1; + return 21; + } else if(((a4==1)&&(!(a5==1)&&(((a12==9)&&(((a27==1)&&((((input==5)&&(((((a18==1)&&!(a22==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7)))||((a3==8)&&((a18==1)&&(a22==1)))))&&(a15==1))&&(a20==1)))&&(a0==1)))&&!(a6==1))))){ + a12 = 12; + a5 = 1; + a22 = 0; + a3 = 6; + a18 = 1; + a4 = 0; + return 24; + } else if(((a5==1)&&(((!(a4==1)&&((a20==1)&&((!(a15==1)&&(((((input==3)&&((a18==1)||!(a18==1)))&&(a22==1))&&(a3==5))&&!(a0==1)))&&(a12==11))))&&!(a27==1))&&!(a6==1)))){ + a6 = 1; + a27 = 1; + a15 = 1; + a0 = 1; + a3 = 4; + a4 = 1; + a12 = 8; + a18 = 1; + return 21; + } else if((!(a0==1)&&((a6==1)&&((((((a3==8)&&(((a27==1)&&((a12==9)&&(!(a4==1)&&(input==6))))&&(a20==1)))&&(a5==1))&&!(a15==1))&&!(a18==1))&&(a22==1))))){ + a18 = 1; + a0 = 1; + a12 = 11; + a3 = 6; + a15 = 1; + return 21; + } else if((((!(a27==1)&&((a3==8)&&(!(a5==1)&&((((a15==1)&&(((a20==1)&&((input==5)&&((a18==1)||!(a18==1))))&&!(a0==1)))&&!(a4==1))&&(a12==10)))))&&!(a22==1))&&(a6==1))){ + if((a4==1)){ + a27 = 1; + a5 = 1; + a3 = 5; + a12 = 8; + a0 = 1; + a4 = 1; + a18 = 0; + }else{ + a4 = 1; + a18 = 0; + a12 = 8; + a27 = 1; + a22 = 1; + a0 = 1; + a6 = 0; + a3 = 6; + a5 = 1; + } + return -1; + } else if(((a4==1)&&((a12==9)&&(!(a22==1)&&(!(a27==1)&&((((a20==1)&&(((a3==4)&&((a6==1)&&((input==3)&&((a18==1)||!(a18==1)))))&&!(a0==1)))&&!(a5==1))&&(a15==1))))))){ + a12 = 8; + a5 = 1; + a27 = 1; + a18 = 0; + a4 = 0; + a22 = 1; + a0 = 1; + return -1; + } else if((!(a0==1)&&(!(a5==1)&&((((a20==1)&&(((a15==1)&&((a4==1)&&((input==1)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))||(((a22==1)&&!(a18==1))&&(a3==8))))))&&(a6==1)))&&(a12==10))&&!(a27==1))))){ + if((a27==1)){ + a15 = 0; + a5 = 1; + a3 = 7; + a18 = 0; + a22 = 1; + }else{ + a0 = 1; + a18 = 0; + a12 = 8; + a3 = 4; + a27 = 1; + a22 = 0; + a5 = 1; + } + return 26; + } else if((((!(a4==1)&&(((!(a22==1)&&((a15==1)&&((a3==7)&&((((input==3)&&!(a5==1))&&(a0==1))&&(a20==1)))))&&(a12==10))&&(a18==1)))&&(a6==1))&&(a27==1))){ + a5 = 1; + a4 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + return -1; + } else if(((((!(a4==1)&&(((!(a6==1)&&(!(a15==1)&&((a5==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a12==11)))))&&(a0==1))&&(a20==1)))&&(a3==7))&&(a27==1))&&!(a22==1))){ + a15 = 1; + a12 = 10; + a0 = 0; + a18 = 0; + a4 = 1; + return 26; + } else if(((((a18==1)&&((((a20==1)&&(!(a0==1)&&((a27==1)&&(((a5==1)&&((input==1)&&(a6==1)))&&(a12==11)))))&&!(a15==1))&&(a4==1)))&&(a22==1))&&(a3==5))){ + a22 = 0; + a4 = 0; + a0 = 1; + a15 = 1; + a12 = 9; + a3 = 6; + return 24; + } else if(((a3==6)&&(((a27==1)&&(!(a4==1)&&((!(a15==1)&&((a0==1)&&((a5==1)&&((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==6))&&(a12==10)))))&&(a20==1))))&&!(a6==1)))){ + a3 = 4; + a4 = 1; + a12 = 8; + a22 = 1; + a18 = 1; + a15 = 1; + a6 = 1; + return -1; + } else if(((a15==1)&&(((!(a27==1)&&(!(a5==1)&&((a20==1)&&(((a12==11)&&(((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))||((a3==6)&&(!(a18==1)&&(a22==1))))&&(input==4)))&&!(a4==1)))))&&(a0==1))&&!(a6==1)))){ + a27 = 1; + a3 = 6; + a0 = 0; + a18 = 0; + a5 = 1; + a15 = 0; + a4 = 1; + a22 = 0; + a12 = 10; + return -1; + } else if((((a18==1)&&(!(a5==1)&&((!(a0==1)&&((a3==4)&&(((!(a15==1)&&((a12==10)&&((input==5)&&(a20==1))))&&!(a6==1))&&(a4==1))))&&!(a22==1))))&&(a27==1))){ + a6 = 1; + a0 = 1; + a22 = 1; + a15 = 1; + a5 = 1; + a3 = 5; + a4 = 0; + return 26; + } else if((!(a22==1)&&((!(a6==1)&&((!(a18==1)&&(!(a4==1)&&((a27==1)&&((a15==1)&&((a12==10)&&(((a3==6)&&(input==1))&&!(a5==1)))))))&&(a20==1)))&&(a0==1)))){ + if((a0==1)){ + a4 = 1; + a0 = 0; + a5 = 1; + a12 = 11; + a22 = 1; + }else{ + a15 = 0; + a27 = 0; + a4 = 1; + a3 = 8; + a5 = 1; + a18 = 1; + } + return 21; + } else if((((!(a5==1)&&((((a12==8)&&((a20==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==4))&&(a3==7))&&!(a6==1))))&&!(a27==1))&&(a0==1)))&&!(a15==1))&&!(a4==1))){ + a18 = 1; + a22 = 0; + a5 = 1; + a27 = 1; + a12 = 10; + a4 = 1; + return 26; + } else if((!(a4==1)&&(((!(a27==1)&&((a12==10)&&((!(a5==1)&&((((((!(a22==1)&&(a18==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7)))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==3))&&(a15==1)))&&(a0==1))))&&(a6==1))&&(a20==1)))){ + a22 = 0; + a18 = 1; + a3 = 8; + a12 = 9; + a6 = 0; + return 26; + } else if(((a20==1)&&(!(a15==1)&&(((a3==4)&&(((((((((a18==1)||!(a18==1))&&(input==6))&&!(a22==1))&&(a4==1))&&(a6==1))&&(a12==8))&&(a27==1))&&!(a5==1)))&&(a0==1))))){ + a0 = 0; + a18 = 0; + a4 = 0; + a3 = 6; + a15 = 1; + return 21; + } else if(((a20==1)&&((a4==1)&&(!(a22==1)&&((((!(a15==1)&&((!(a18==1)&&((a3==4)&&((input==1)&&(a27==1))))&&!(a0==1)))&&(a12==11))&&(a5==1))&&!(a6==1)))))){ + a18 = 1; + a0 = 1; + a15 = 1; + a3 = 7; + a27 = 0; + a22 = 1; + a12 = 9; + return 21; + } else if((!(a15==1)&&(((a6==1)&&((((!(a0==1)&&((!(a27==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2)))&&(a12==9)))&&(a5==1))&&!(a4==1))&&(a20==1)))&&(a3==8)))){ + a4 = 1; + a18 = 1; + a27 = 1; + a22 = 1; + a5 = 0; + a3 = 4; + return -1; + } else if(((a4==1)&&((((a3==5)&&(((a15==1)&&(((a5==1)&&((a12==9)&&((input==5)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))&&!(a0==1)))&&!(a27==1)))&&(a20==1))&&!(a6==1)))){ + a12 = 8; + a4 = 0; + a22 = 1; + a15 = 0; + a27 = 1; + a18 = 1; + a3 = 8; + a5 = 0; + return -1; + } else if(((a4==1)&&(((a12==10)&&((((a18==1)&&((a22==1)&&(!(a15==1)&&((((input==3)&&!(a6==1))&&(a20==1))&&!(a0==1)))))&&(a27==1))&&(a5==1)))&&(a3==4)))){ + a5 = 0; + a12 = 11; + a18 = 0; + a22 = 0; + a3 = 7; + a0 = 1; + return 26; + } else if((((((a3==4)&&(((a12==11)&&(((a5==1)&&(((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a4==1)))&&(a20==1)))&&(a6==1)))&&!(a0==1))&&(a15==1))&&!(a27==1))){ + a22 = 1; + a3 = 5; + a27 = 1; + a18 = 0; + a5 = 0; + a4 = 0; + a6 = 0; + a15 = 0; + return 26; + } else if(((a4==1)&&((((a20==1)&&(((a3==6)&&((a0==1)&&(!(a6==1)&&(((((a18==1)||!(a18==1))&&(input==5))&&!(a15==1))&&(a5==1)))))&&(a12==12)))&&!(a22==1))&&!(a27==1)))){ + a12 = 11; + a15 = 1; + a3 = 7; + a22 = 1; + a18 = 0; + a5 = 0; + return -1; + } else if(((a20==1)&&((a27==1)&&((a12==10)&&((a3==7)&&(((((!(a4==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==5)))&&!(a15==1))&&!(a6==1))&&(a5==1))&&(a0==1))))))){ + a3 = 6; + a4 = 1; + a22 = 0; + a18 = 1; + return -1; + } else if(((a12==10)&&((a20==1)&&((a27==1)&&(((a15==1)&&((a0==1)&&(!(a5==1)&&(((((a6==1)&&((a3==8)&&(!(a22==1)&&(a18==1))))||(((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1)))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1)))))&&(input==5)))))&&(a4==1)))))){ + a15 = 0; + a22 = 1; + a18 = 1; + a6 = 0; + a3 = 5; + a0 = 0; + a12 = 11; + a5 = 1; + return -1; + } else if(((a27==1)&&((((a20==1)&&(((((!(a4==1)&&(((a5==1)&&(!(a18==1)&&!(a22==1)))&&!(a15==1)))&&(a3==8))&&!(a6==1))||(((a3==4)&&((a4==1)&&((a15==1)&&(!(a5==1)&&((a18==1)&&(a22==1))))))&&(a6==1)))&&(input==1)))&&(a0==1))&&(a12==12)))){ + a5 = 1; + a3 = 6; + a22 = 1; + a18 = 0; + a4 = 0; + a27 = 0; + a15 = 0; + a6 = 0; + return 26; + } else if(((a0==1)&&((a12==11)&&((a4==1)&&(((a20==1)&&(((((((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==4))&&!(a5==1))&&(a27==1))&&!(a6==1)))&&!(a15==1)))))){ + a27 = 0; + a18 = 1; + a3 = 7; + a6 = 1; + a22 = 0; + return 26; + } else if(((((a20==1)&&((a22==1)&&(!(a6==1)&&(((a0==1)&&((a3==7)&&(((((a18==1)||!(a18==1))&&(input==5))&&!(a15==1))&&(a5==1))))&&!(a4==1)))))&&(a12==12))&&!(a27==1))){ + a5 = 0; + a12 = 11; + a4 = 1; + a18 = 0; + a6 = 1; + a3 = 4; + a27 = 1; + a15 = 1; + return 21; + } else if(((!(a0==1)&&(((a5==1)&&((a6==1)&&(((((input==4)&&(((a3==7)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6)))))&&!(a4==1))&&(a27==1))&&(a12==8))))&&!(a15==1)))&&(a20==1))){ + a12 = 12; + a3 = 7; + a0 = 1; + a4 = 1; + a18 = 0; + a22 = 0; + return 24; + } else if(((a0==1)&&(((a12==9)&&(((!(a5==1)&&((((a6==1)&&(((!(a18==1)&&(a22==1))&&!(a4==1))&&(a3==4)))||((!(a6==1)&&(((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8)))||(((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))&&(a6==1))))&&(input==1)))&&(a27==1))&&(a20==1)))&&!(a15==1)))){ + if((a4==1)){ + a15 = 1; + a3 = 8; + a5 = 1; + a6 = 0; + a22 = 1; + a4 = 1; + a18 = 0; + a0 = 0; + a12 = 11; + }else{ + a18 = 1; + a0 = 0; + a22 = 0; + a6 = 1; + a4 = 1; + a5 = 1; + a12 = 10; + a3 = 7; + } + return 24; + } else if((!(a15==1)&&(!(a6==1)&&(((a4==1)&&((a3==7)&&((a18==1)&&(((((a20==1)&&((a12==12)&&(input==6)))&&(a0==1))&&!(a22==1))&&!(a5==1)))))&&!(a27==1))))){ + a22 = 1; + a27 = 1; + a12 = 8; + a15 = 1; + a3 = 4; + a5 = 1; + a6 = 1; + return -1; + } else if((((!(a27==1)&&(!(a6==1)&&((a12==11)&&(!(a15==1)&&((!(a4==1)&&(((((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==4)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==3)))&&(a0==1))))))&&(a20==1))&&(a5==1))){ + a15 = 1; + a3 = 6; + a12 = 8; + a6 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((a27==1)&&(((!(a15==1)&&((a6==1)&&(((((a20==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==4)))&&!(a4==1))&&(a3==7))&&(a12==10))))&&(a0==1))&&(a5==1)))){ + a22 = 0; + a18 = 1; + a15 = 1; + a3 = 5; + a6 = 0; + return -1; + } else if((!(a6==1)&&(((a5==1)&&((a27==1)&&(((!(a4==1)&&((a20==1)&&((((input==1)&&((a18==1)||!(a18==1)))&&(a12==12))&&(a3==8))))&&(a15==1))&&(a0==1))))&&!(a22==1)))){ + a3 = 5; + a15 = 0; + a12 = 11; + a18 = 0; + a22 = 1; + a5 = 0; + return 21; + } else if(((a6==1)&&((a15==1)&&((a12==11)&&(((!(a0==1)&&((a5==1)&&(((input==5)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5))))&&(a20==1))))&&(a27==1))&&(a4==1)))))){ + a18 = 0; + a0 = 1; + a22 = 0; + a3 = 4; + a6 = 0; + a15 = 0; + return 26; + } else if((!(a22==1)&&(((a15==1)&&((a3==7)&&(((((a12==10)&&((a0==1)&&((a27==1)&&(!(a4==1)&&(input==5)))))&&(a6==1))&&(a5==1))&&(a18==1))))&&(a20==1)))){ + a22 = 1; + a4 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((((a4==1)&&(!(a15==1)&&(((!(a5==1)&&(((((input==6)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&(a3==7))&&(a0==1))&&(a12==8)))&&!(a27==1))&&(a20==1))))&&!(a6==1))){ + a15 = 1; + a3 = 6; + a22 = 0; + a27 = 1; + a18 = 0; + a12 = 11; + a6 = 1; + return 21; + } else if(((((a27==1)&&(((!(a6==1)&&((!(a0==1)&&(((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1))))||((a3==7)&&((a22==1)&&!(a18==1))))&&(input==2)))&&!(a4==1)))&&(a12==8))&&(a5==1)))&&(a20==1))&&!(a15==1))){ + a5 = 0; + a12 = 10; + a27 = 0; + a4 = 1; + a0 = 1; + a22 = 1; + a3 = 8; + a6 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if((((a15==1)&&((((a27==1)&&((a6==1)&&((a5==1)&&((a0==1)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==3))))))&&(a20==1))&&(a4==1)))&&(a12==11))){ + a18 = 0; + a22 = 0; + a15 = 0; + a3 = 8; + return 21; + } else if(((((a5==1)&&((a15==1)&&((((((((a3==8)&&(input==4))&&(a4==1))&&(a12==12))&&!(a0==1))&&(a22==1))&&(a6==1))&&(a27==1))))&&!(a18==1))&&(a20==1))){ + a18 = 1; + a12 = 11; + a4 = 0; + a0 = 1; + a3 = 5; + return 21; + } else if((!(a4==1)&&((a6==1)&&(!(a15==1)&&((a27==1)&&((a12==9)&&((a20==1)&&(((a3==7)&&(((input==1)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&!(a5==1)))&&(a0==1))))))))){ + a5 = 1; + a18 = 1; + a3 = 8; + a12 = 10; + a6 = 0; + a15 = 1; + a22 = 1; + return 26; + } else if((((a12==9)&&((((a6==1)&&((!(a18==1)&&(((a15==1)&&((a4==1)&&((input==4)&&(a3==6))))&&(a22==1)))&&(a0==1)))&&(a20==1))&&!(a27==1)))&&(a5==1))){ + a3 = 4; + a12 = 10; + a15 = 0; + return 21; + } else if((((!(a15==1)&&(((a0==1)&&((a5==1)&&((a4==1)&&((a27==1)&&(((((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1))))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==2))))))&&(a20==1)))&&(a12==11))&&(a6==1))){ + a3 = 6; + a18 = 1; + a22 = 0; + a12 = 10; + a6 = 0; + return -1; + } else if(((a3==8)&&(!(a5==1)&&(!(a0==1)&&(((a27==1)&&(((!(a4==1)&&((a12==12)&&((input==4)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))))&&(a6==1))&&(a20==1)))&&!(a15==1)))))){ + a15 = 1; + a18 = 1; + a0 = 1; + a12 = 11; + a27 = 0; + a4 = 1; + a22 = 1; + return -1; + } else if(((((!(a0==1)&&((((!(a6==1)&&(((((a18==1)||!(a18==1))&&(input==3))&&(a22==1))&&(a20==1)))&&(a15==1))&&(a12==12))&&(a3==4)))&&(a5==1))&&!(a4==1))&&(a27==1))){ + a27 = 0; + a4 = 1; + a15 = 0; + a5 = 0; + a6 = 1; + a3 = 8; + a12 = 8; + a0 = 1; + a18 = 1; + return -1; + } else if((!(a27==1)&&(((((a15==1)&&(!(a0==1)&&((input==5)&&(((((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1)))&&!(a6==1))||(((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1))))&&(a6==1)))||((a6==1)&&((a3==4)&&(!(a4==1)&&(!(a18==1)&&(a22==1)))))))))&&!(a5==1))&&(a20==1))&&(a12==8)))){ + if((a3==5)){ + a18 = 0; + a12 = 11; + a15 = 0; + a5 = 1; + a6 = 1; + a22 = 0; + a3 = 7; + a4 = 0; + a27 = 1; + }else{ + a6 = 0; + a27 = 1; + a18 = 0; + a22 = 1; + a5 = 1; + a3 = 8; + a12 = 10; + a4 = 0; + } + return -1; + } else if((!(a4==1)&&((a12==9)&&((a27==1)&&(((a20==1)&&((a5==1)&&((a3==7)&&((a6==1)&&(((input==5)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&(a0==1))))))&&!(a15==1)))))){ + a18 = 0; + a6 = 0; + a15 = 1; + a22 = 1; + a3 = 5; + a12 = 12; + return 24; + } else if((((a15==1)&&((((!(a0==1)&&(!(a6==1)&&(((a20==1)&&((input==1)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a12==11))))&&(a3==5))&&(a27==1))&&!(a4==1)))&&!(a5==1))){ + a0 = 1; + a18 = 0; + a6 = 1; + a22 = 0; + a5 = 1; + return 21; + } else if(((a4==1)&&((a12==11)&&(!(a27==1)&&(!(a5==1)&&((a15==1)&&((((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a0==1))&&(a6==1))&&(a20==1))&&(a3==6)))))))){ + if((a27==1)){ + a4 = 0; + a15 = 0; + a22 = 0; + a18 = 1; + a3 = 7; + a12 = 12; + }else{ + a3 = 7; + a4 = 0; + a27 = 1; + a18 = 1; + a22 = 0; + a15 = 0; + a12 = 10; + } + return -1; + } else if(((a0==1)&&((a15==1)&&((a6==1)&&((a22==1)&&(((((a5==1)&&(!(a27==1)&&((a18==1)&&((a12==10)&&(input==2)))))&&(a3==4))&&!(a4==1))&&(a20==1))))))){ + a15 = 0; + a12 = 8; + a22 = 0; + a18 = 0; + a3 = 5; + return -1; + } else if(((!(a27==1)&&((((a6==1)&&((a12==8)&&((((a5==1)&&((input==3)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&(a20==1))&&(a3==4))))&&!(a0==1))&&!(a15==1)))&&(a4==1))){ + a0 = 1; + a22 = 0; + a27 = 1; + a3 = 8; + a18 = 0; + a15 = 1; + return 24; + } else if(((a12==9)&&((!(a4==1)&&(((((((input==1)&&(((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1)))))&&(a6==1))&&(a5==1))&&!(a0==1))&&(a20==1))&&(a27==1)))&&!(a15==1)))){ + a12 = 8; + a4 = 1; + a0 = 1; + a18 = 1; + a22 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if(((a22==1)&&(!(a18==1)&&((a3==5)&&((a12==8)&&((a15==1)&&(((((!(a6==1)&&(!(a0==1)&&(input==3)))&&(a4==1))&&(a27==1))&&(a20==1))&&(a5==1)))))))){ + a18 = 1; + a0 = 1; + a4 = 0; + a12 = 12; + return 21; + } else if(((a15==1)&&(!(a27==1)&&(!(a18==1)&&((a22==1)&&((!(a0==1)&&(!(a5==1)&&((a6==1)&&(((a3==5)&&((a12==8)&&(input==1)))&&(a20==1)))))&&(a4==1))))))){ + if((a4==1)){ + a6 = 0; + a3 = 8; + a5 = 1; + a22 = 0; + a0 = 1; + a27 = 1; + }else{ + a3 = 7; + a18 = 1; + a27 = 1; + a6 = 0; + a12 = 9; + a15 = 0; + a0 = 1; + a5 = 1; + } + return 26; + } else if(((a5==1)&&((a12==8)&&(((((a3==8)&&((a6==1)&&((a0==1)&&(((!(a15==1)&&(input==3))&&!(a18==1))&&(a20==1)))))&&!(a27==1))&&!(a4==1))&&(a22==1))))){ + a27 = 1; + a15 = 1; + a18 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((a3==5)&&(((a18==1)&&(!(a15==1)&&((!(a6==1)&&((a22==1)&&((a12==8)&&((((a27==1)&&(input==4))&&(a20==1))&&(a4==1)))))&&(a0==1))))&&!(a5==1)))){ + a3 = 4; + a5 = 1; + a6 = 1; + a15 = 1; + return -1; + } else if(((a12==11)&&((a0==1)&&(((((a20==1)&&(!(a27==1)&&(((input==6)&&(((a3==5)&&((a18==1)&&(a22==1)))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))))&&(a15==1))))&&(a5==1))&&(a6==1))&&(a4==1))))){ + if((a3==4)){ + a0 = 0; + a22 = 0; + a15 = 0; + a27 = 1; + a18 = 0; + a5 = 0; + a6 = 0; + a3 = 7; + a12 = 8; + }else{ + a27 = 1; + a12 = 10; + a22 = 1; + a6 = 0; + a18 = 0; + a5 = 0; + a0 = 0; + a3 = 4; + } + return 26; + } else if(((((a6==1)&&(((a20==1)&&((((a5==1)&&((input==2)&&((((a3==6)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))||(((a22==1)&&(a18==1))&&(a3==7)))))&&!(a15==1))&&(a0==1)))&&(a4==1)))&&(a27==1))&&(a12==9))){ + a18 = 1; + a12 = 8; + a15 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((a18==1)&&((a3==7)&&(((a15==1)&&(!(a0==1)&&((!(a27==1)&&((a5==1)&&((((input==2)&&(a12==10))&&(a4==1))&&(a22==1))))&&!(a6==1))))&&(a20==1))))){ + a27 = 1; + a0 = 1; + a12 = 8; + a22 = 0; + a6 = 1; + a3 = 8; + a4 = 0; + return -1; + } else if(((a3==8)&&((a0==1)&&((a15==1)&&(!(a6==1)&&((!(a4==1)&&((a12==10)&&((((input==2)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a20==1))&&(a5==1))))&&!(a27==1))))))){ + a4 = 1; + a12 = 8; + a22 = 1; + a18 = 1; + a27 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if(((!(a15==1)&&(((a20==1)&&(((((a0==1)&&((input==4)&&(((((a18==1)&&!(a22==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))||(((a22==1)&&(a18==1))&&(a3==7)))))&&!(a6==1))&&!(a5==1))&&(a27==1)))&&(a12==8)))&&(a4==1))){ + a15 = 1; + a18 = 1; + a4 = 0; + a22 = 1; + a3 = 7; + a6 = 1; + a12 = 11; + a5 = 1; + return 26; + } else if(((((a3==8)&&((a0==1)&&((a5==1)&&(((a15==1)&&(((a18==1)&&(((input==3)&&!(a22==1))&&(a27==1)))&&(a4==1)))&&(a12==9)))))&&(a20==1))&&(a6==1))){ + a3 = 4; + a12 = 12; + a18 = 0; + return 24; + } else if(((a5==1)&&((a27==1)&&((a20==1)&&((a0==1)&&(!(a6==1)&&((!(a15==1)&&(((input==2)&&((((!(a22==1)&&(a18==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4)))||((a3==5)&&((a22==1)&&(a18==1)))))&&(a4==1)))&&(a12==12)))))))){ + a3 = 7; + a5 = 0; + a15 = 1; + a12 = 11; + a18 = 0; + a22 = 0; + return 26; + } else if(((!(a22==1)&&((a15==1)&&(((((a3==5)&&(((!(a27==1)&&((input==5)&&(a20==1)))&&(a6==1))&&!(a5==1)))&&!(a18==1))&&(a12==10))&&(a0==1))))&&!(a4==1))){ + a3 = 8; + a12 = 12; + a15 = 0; + a6 = 0; + a27 = 1; + return -1; + } else if(((a5==1)&&(!(a15==1)&&((!(a4==1)&&((a3==8)&&((!(a6==1)&&(!(a27==1)&&((a0==1)&&((input==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))))))&&(a12==8))))&&(a20==1))))){ + a6 = 1; + a4 = 1; + a18 = 1; + a12 = 11; + a22 = 1; + a3 = 7; + a15 = 1; + return 24; + } else if(((a4==1)&&(((a0==1)&&(((a12==10)&&(((!(a6==1)&&((input==3)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1))))))&&!(a27==1))&&(a20==1)))&&!(a5==1)))&&!(a15==1)))){ + a15 = 1; + a5 = 1; + a18 = 1; + a6 = 1; + a22 = 1; + a27 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((a3==4)&&(((a18==1)&&((a5==1)&&((((((a20==1)&&((a4==1)&&((a15==1)&&(input==2))))&&!(a0==1))&&(a27==1))&&(a12==11))&&!(a22==1))))&&(a6==1)))){ + a18 = 0; + a12 = 8; + a0 = 1; + a22 = 1; + a15 = 0; + a3 = 6; + a27 = 0; + return -1; + } else if(((a12==12)&&(((a27==1)&&(((((!(a0==1)&&((a5==1)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==3))))&&(a3==8))&&(a4==1))&&!(a6==1))&&(a20==1)))&&!(a15==1)))){ + a22 = 0; + a4 = 0; + a3 = 7; + a0 = 1; + a12 = 8; + a15 = 1; + a18 = 1; + a6 = 1; + return 21; + } else if(((((a6==1)&&((a12==8)&&(!(a4==1)&&((!(a0==1)&&((a3==5)&&((a15==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&!(a22==1)))))&&(a5==1)))))&&(a20==1))&&(a27==1))){ + a22 = 1; + a4 = 1; + a0 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((a4==1)&&((a20==1)&&((a12==9)&&((a18==1)&&(!(a5==1)&&((((!(a6==1)&&((a15==1)&&((input==3)&&(a22==1))))&&!(a0==1))&&!(a27==1))&&(a3==8)))))))){ + a4 = 0; + a27 = 1; + a6 = 1; + a3 = 6; + a12 = 8; + a5 = 1; + a0 = 1; + return 26; + } else if(((((a6==1)&&(((((((a5==1)&&((a27==1)&&((input==6)&&!(a4==1))))&&(a22==1))&&(a12==12))&&(a3==4))&&(a20==1))&&!(a18==1)))&&!(a0==1))&&!(a15==1))){ + a5 = 0; + a3 = 5; + a6 = 0; + a12 = 9; + a15 = 1; + a27 = 0; + return 21; + } else if(((a0==1)&&(((a12==12)&&((!(a6==1)&&(!(a15==1)&&((((a20==1)&&((input==2)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))))&&!(a27==1))&&!(a5==1))))&&(a4==1)))&&(a3==6)))){ + a12 = 9; + a6 = 1; + a18 = 1; + a22 = 0; + return -1; + } else if((!(a4==1)&&(((a20==1)&&((((a6==1)&&(((a12==11)&&((((a3==7)&&((a22==1)&&!(a18==1)))||(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1)))))&&(input==3)))&&(a5==1)))&&(a0==1))&&!(a15==1)))&&!(a27==1)))){ + a12 = 10; + a27 = 1; + a18 = 1; + a3 = 8; + a22 = 1; + return 26; + } else if(((a5==1)&&(((!(a4==1)&&((a20==1)&&((!(a0==1)&&((a3==7)&&(((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==4))&&!(a27==1))))&&(a6==1))))&&(a12==9))&&(a15==1)))){ + a18 = 0; + a27 = 1; + a22 = 1; + a0 = 1; + a4 = 1; + a12 = 8; + a3 = 8; + a6 = 0; + return -1; + } else if(((a0==1)&&(((((((((a22==1)&&(((a4==1)&&(input==3))&&!(a6==1)))&&(a3==8))&&(a20==1))&&(a27==1))&&(a12==9))&&(a15==1))&&(a5==1))&&!(a18==1)))){ + a18 = 1; + a3 = 5; + a15 = 0; + a12 = 12; + a22 = 0; + return 24; + } else if(((a12==9)&&(!(a0==1)&&(!(a6==1)&&((a4==1)&&((((a3==6)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4))&&!(a27==1))&&!(a15==1)))&&(a20==1))&&(a5==1))))))){ + a6 = 1; + a18 = 1; + a12 = 11; + a22 = 1; + a0 = 1; + a4 = 0; + a5 = 0; + return 21; + } else if((!(a15==1)&&(!(a5==1)&&((a3==8)&&(!(a0==1)&&((a27==1)&&(((a4==1)&&((!(a6==1)&&((!(a18==1)&&(input==2))&&(a22==1)))&&(a12==12)))&&(a20==1)))))))){ + a5 = 1; + a18 = 1; + a3 = 7; + a15 = 1; + a12 = 8; + a0 = 1; + return 21; + } else if(((!(a0==1)&&(!(a6==1)&&((((a5==1)&&((a22==1)&&(((((a12==8)&&(input==1))&&(a20==1))&&(a3==4))&&!(a4==1))))&&!(a18==1))&&!(a27==1))))&&!(a15==1))){ + a12 = 9; + a27 = 1; + a4 = 1; + a0 = 1; + return 26; + } else if(((a3==8)&&(!(a6==1)&&((a20==1)&&((a27==1)&&((((a0==1)&&(((a5==1)&&((((a18==1)||!(a18==1))&&(input==6))&&!(a22==1)))&&(a12==11)))&&(a4==1))&&(a15==1))))))){ + a18 = 0; + a27 = 0; + a12 = 10; + a6 = 1; + a5 = 0; + a15 = 0; + return 21; + } else if((!(a18==1)&&((a5==1)&&((a12==8)&&(((a3==7)&&((a0==1)&&((a6==1)&&((!(a27==1)&&(((input==6)&&(a15==1))&&!(a22==1)))&&!(a4==1)))))&&(a20==1)))))){ + a18 = 1; + a22 = 1; + a15 = 0; + a27 = 1; + a5 = 0; + a6 = 0; + a12 = 12; + return 21; + } else if((((a3==8)&&(((a12==12)&&((a18==1)&&((((!(a15==1)&&(((a20==1)&&(input==3))&&(a22==1)))&&!(a6==1))&&(a27==1))&&(a0==1))))&&(a5==1)))&&!(a4==1))){ + if((a4==1)){ + a6 = 1; + a3 = 6; + a5 = 0; + a27 = 0; + }else{ + a15 = 1; + a18 = 0; + a22 = 0; + } + return -1; + } else if(((a20==1)&&(((a4==1)&&(!(a5==1)&&((a12==10)&&((a6==1)&&(((((((a18==1)&&(a22==1))&&(a3==7))||(((!(a22==1)&&(a18==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6))))&&(input==6))&&(a15==1))&&!(a27==1))))))&&!(a0==1)))){ + a27 = 1; + a4 = 0; + a18 = 0; + a5 = 1; + a3 = 4; + a12 = 8; + a0 = 1; + a22 = 0; + return -1; + } else if((((a6==1)&&((((!(a15==1)&&((((a20==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==5)))&&(a27==1))&&!(a5==1)))&&(a0==1))&&(a4==1))&&(a3==8)))&&(a12==10))){ + a3 = 6; + a5 = 1; + a4 = 0; + a12 = 11; + a22 = 0; + a18 = 0; + return 26; + } else if(((a12==9)&&((a0==1)&&(!(a27==1)&&((!(a6==1)&&(((((((input==5)&&((a18==1)||!(a18==1)))&&(a3==6))&&!(a22==1))&&!(a5==1))&&!(a4==1))&&(a20==1)))&&(a15==1)))))){ + a18 = 1; + a6 = 1; + a12 = 8; + a4 = 1; + a5 = 1; + a3 = 4; + a27 = 1; + a22 = 1; + return -1; + } else if((((!(a27==1)&&(!(a18==1)&&((a22==1)&&(((!(a6==1)&&(!(a0==1)&&((a3==4)&&((input==2)&&(a12==8)))))&&(a20==1))&&!(a15==1)))))&&(a5==1))&&(a4==1))){ + a15 = 1; + a0 = 1; + a6 = 1; + a4 = 0; + a3 = 8; + a22 = 0; + a27 = 1; + a18 = 1; + return -1; + } else if((!(a18==1)&&(((((a3==5)&&(!(a5==1)&&((a20==1)&&(((((input==6)&&!(a4==1))&&(a27==1))&&(a15==1))&&(a22==1)))))&&!(a6==1))&&(a12==10))&&(a0==1)))){ + a3 = 4; + a6 = 1; + a5 = 1; + return -1; + } else if((((a12==11)&&((!(a27==1)&&((!(a15==1)&&((((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==5))&&(a20==1))&&(a6==1)))&&!(a0==1)))&&!(a5==1)))&&(a4==1))){ + a6 = 0; + a3 = 5; + a15 = 1; + a22 = 0; + a18 = 0; + a12 = 9; + return 26; + } else if((((!(a0==1)&&(((((!(a4==1)&&((input==1)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1))))))&&(a12==10))&&!(a15==1))&&(a5==1))&&!(a27==1)))&&(a20==1))&&!(a6==1))){ + a12 = 8; + a18 = 0; + a6 = 1; + a3 = 4; + a22 = 0; + a15 = 1; + a27 = 1; + a0 = 1; + return -1; + } else if(((((((a3==4)&&(((!(a5==1)&&((a20==1)&&((input==4)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))))&&!(a0==1))&&(a27==1)))&&(a6==1))&&(a12==10))&&!(a4==1))&&(a15==1))){ + a12 = 8; + a4 = 1; + a18 = 1; + a5 = 1; + a22 = 1; + a0 = 1; + return -1; + } else if((((((((a27==1)&&(!(a4==1)&&(((input==4)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1))))||((a3==6)&&((a18==1)&&(a22==1)))))&&(a15==1))))&&(a5==1))&&(a20==1))&&(a6==1))&&(a0==1))&&(a12==9))){ + a4 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if(((a20==1)&&(((a5==1)&&(!(a22==1)&&(!(a18==1)&&((((!(a15==1)&&((a12==11)&&((input==6)&&!(a0==1))))&&(a4==1))&&!(a27==1))&&!(a6==1)))))&&(a3==7)))){ + a27 = 1; + a18 = 1; + a0 = 1; + a6 = 1; + a3 = 8; + a12 = 8; + a22 = 1; + a15 = 1; + return -1; + } else if(((((((a20==1)&&(((((a4==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a6==1)))&&(a27==1))&&(a12==12))&&!(a0==1)))&&(a15==1))&&(a22==1))&&(a5==1))&&(a3==5))){ + a22 = 0; + a0 = 1; + a4 = 0; + a12 = 11; + a6 = 0; + a3 = 6; + a18 = 1; + return 21; + } else if(((((((a3==5)&&(((a15==1)&&((!(a5==1)&&((input==2)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))))&&(a4==1)))&&!(a6==1)))&&!(a27==1))&&(a0==1))&&(a20==1))&&(a12==10))){ + a27 = 1; + a6 = 1; + a12 = 8; + a18 = 1; + a5 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if((((a6==1)&&(((!(a4==1)&&(((((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==2))&&!(a5==1))&&(a15==1))&&(a12==8)))&&(a20==1))&&!(a0==1)))&&!(a27==1))){ + if((a6==1)){ + a4 = 1; + a22 = 0; + a3 = 6; + a6 = 0; + a27 = 1; + a0 = 1; + a18 = 0; + a5 = 1; + }else{ + a18 = 0; + a27 = 1; + a3 = 4; + a12 = 11; + a0 = 1; + a15 = 0; + a22 = 1; + } + return 26; + } else if((((((((a3==6)&&(((((a6==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a0==1))&&!(a4==1))&&(a12==12)))&&(a27==1))&&(a20==1))&&(a5==1))&&(a15==1))&&!(a22==1))){ + a12 = 8; + a4 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + return -1; + } else if(((((a3==6)&&(((!(a27==1)&&((a20==1)&&(((a4==1)&&((input==5)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&!(a0==1))))&&(a6==1))&&(a12==8)))&&(a15==1))&&(a5==1))){ + a5 = 0; + a22 = 1; + a12 = 11; + a4 = 0; + a18 = 0; + return -1; + } else if((((a15==1)&&(((a4==1)&&((!(a18==1)&&(!(a22==1)&&((!(a0==1)&&(((a12==11)&&(input==2))&&!(a5==1)))&&!(a6==1))))&&(a20==1)))&&(a3==6)))&&!(a27==1))){ + a22 = 1; + a12 = 9; + a6 = 1; + a27 = 1; + a15 = 0; + a5 = 1; + return -1; + } else if(((a12==10)&&((a15==1)&&((a0==1)&&(((a6==1)&&((!(a27==1)&&((a3==4)&&((a20==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==4)))))&&(a5==1)))&&!(a4==1)))))){ + a6 = 0; + a3 = 7; + a22 = 1; + a18 = 0; + a12 = 8; + return 26; + } else if((!(a0==1)&&(((a6==1)&&(((a15==1)&&(!(a22==1)&&(((a5==1)&&(((a12==10)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a4==1)))&&(a3==6))))&&(a27==1)))&&(a20==1)))){ + a18 = 0; + a0 = 1; + a5 = 0; + a3 = 4; + return -1; + } else if((((a15==1)&&(((a20==1)&&(((a12==11)&&(!(a6==1)&&((((((a3==5)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==5)))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==3))&&(a5==1))))&&(a27==1)))&&(a4==1)))&&(a0==1))){ + a4 = 0; + a27 = 0; + a15 = 0; + a18 = 1; + a5 = 0; + a22 = 1; + a3 = 7; + a12 = 12; + return 21; + } else if((((((((a18==1)&&((((((a15==1)&&(input==3))&&(a20==1))&&(a4==1))&&(a12==11))&&!(a27==1)))&&!(a5==1))&&!(a6==1))&&(a0==1))&&!(a22==1))&&(a3==7))){ + a3 = 4; + a5 = 1; + a22 = 1; + a27 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if(((((a12==11)&&(((a27==1)&&((a3==5)&&(((((a5==1)&&(!(a15==1)&&(input==6)))&&!(a18==1))&&(a4==1))&&(a22==1))))&&(a6==1)))&&(a0==1))&&(a20==1))){ + a4 = 0; + a15 = 1; + a3 = 7; + a12 = 8; + a6 = 0; + a18 = 1; + return -1; + } else if(((((((!(a6==1)&&((!(a15==1)&&((input==2)&&((((a18==1)&&(a22==1))&&(a3==7))||((((a18==1)&&!(a22==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6))))))&&(a4==1)))&&(a27==1))&&(a20==1))&&(a12==8))&&!(a5==1))&&(a0==1))){ + a5 = 1; + a22 = 0; + a15 = 1; + a18 = 1; + a6 = 1; + a3 = 7; + a4 = 0; + a12 = 11; + return 21; + } else if((((a3==5)&&(((!(a18==1)&&(!(a27==1)&&((a5==1)&&((a22==1)&&((((a20==1)&&(input==1))&&!(a15==1))&&(a4==1))))))&&(a12==10))&&(a6==1)))&&!(a0==1))){ + a27 = 1; + a22 = 0; + a0 = 1; + a12 = 8; + a6 = 0; + a15 = 1; + a3 = 4; + a18 = 1; + return 21; + } else if(((a20==1)&&((((a12==11)&&((!(a18==1)&&(((((!(a22==1)&&(input==6))&&(a5==1))&&!(a6==1))&&!(a0==1))&&(a15==1)))&&(a3==4)))&&(a27==1))&&!(a4==1)))){ + a4 = 1; + a22 = 1; + a6 = 1; + a18 = 1; + a12 = 8; + a0 = 1; + return -1; + } else if((!(a4==1)&&(!(a6==1)&&((a3==7)&&(((((!(a27==1)&&((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==2))&&(a0==1)))&&!(a5==1))&&(a20==1))&&(a12==11))&&(a15==1)))))){ + a5 = 1; + a22 = 1; + a4 = 1; + a3 = 5; + a18 = 0; + a27 = 1; + return 21; + } else if(((!(a5==1)&&(!(a4==1)&&(!(a6==1)&&((a20==1)&&((a27==1)&&((((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==6))&&(a0==1))&&(a12==10)))))))&&(a15==1))){ + a15 = 0; + a3 = 7; + a22 = 1; + a18 = 0; + a4 = 1; + a5 = 1; + return -1; + } else if(((a6==1)&&(((a0==1)&&(((((!(a4==1)&&(!(a15==1)&&(((a3==7)&&(input==4))&&!(a22==1))))&&(a20==1))&&(a5==1))&&(a12==11))&&!(a18==1)))&&!(a27==1)))){ + a18 = 1; + a4 = 1; + a5 = 0; + a22 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if(((a3==5)&&(!(a18==1)&&(!(a27==1)&&((a6==1)&&(((!(a0==1)&&(((a15==1)&&(!(a22==1)&&((a20==1)&&(input==2))))&&(a5==1)))&&!(a4==1))&&(a12==10))))))){ + a5 = 0; + a15 = 0; + a12 = 11; + a4 = 1; + a6 = 0; + a22 = 1; + a18 = 1; + a27 = 1; + a0 = 1; + return -1; + } else if((!(a27==1)&&((a12==9)&&((((a20==1)&&(!(a22==1)&&(((((!(a15==1)&&(input==5))&&!(a0==1))&&(a6==1))&&!(a4==1))&&(a3==4))))&&(a5==1))&&(a18==1))))){ + a22 = 1; + a27 = 1; + a18 = 0; + a12 = 8; + a3 = 8; + a15 = 1; + a0 = 1; + return 24; + } else if((((a22==1)&&(!(a6==1)&&((((((!(a27==1)&&((((a18==1)||!(a18==1))&&(input==6))&&!(a5==1)))&&!(a0==1))&&(a4==1))&&!(a15==1))&&(a20==1))&&(a12==9))))&&(a3==4))){ + a27 = 1; + a4 = 0; + a3 = 5; + a22 = 0; + a18 = 1; + a6 = 1; + a12 = 10; + return -1; + } else if((!(a0==1)&&(((!(a15==1)&&((a3==7)&&(((((((a12==11)&&(input==6))&&!(a22==1))&&(a4==1))&&(a18==1))&&(a6==1))&&!(a27==1))))&&(a5==1))&&(a20==1)))){ + a27 = 1; + a6 = 0; + a12 = 12; + a3 = 8; + a0 = 1; + a18 = 0; + return -1; + } else if((((((a27==1)&&(!(a15==1)&&((a3==7)&&(((a20==1)&&(!(a4==1)&&((a18==1)&&((a22==1)&&(input==2)))))&&!(a6==1)))))&&(a12==10))&&!(a0==1))&&!(a5==1))){ + a5 = 1; + a18 = 0; + a0 = 1; + a3 = 6; + return -1; + } else if((!(a27==1)&&(!(a6==1)&&((((a12==12)&&((a20==1)&&(((a22==1)&&((a3==8)&&(!(a15==1)&&((input==3)&&((a18==1)||!(a18==1))))))&&!(a4==1))))&&!(a5==1))&&(a0==1))))){ + a27 = 1; + a12 = 8; + a15 = 1; + a18 = 1; + a4 = 1; + a6 = 1; + a5 = 1; + a3 = 4; + return -1; + } else if(((a12==9)&&((!(a6==1)&&((((((((input==1)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&!(a0==1))&&(a20==1))&&(a5==1))&&(a15==1))&&!(a4==1))&&(a3==5)))&&!(a27==1)))){ + if((a5==1)){ + a18 = 0; + a4 = 1; + a15 = 0; + a12 = 11; + a22 = 0; + a3 = 6; + }else{ + a22 = 0; + a6 = 1; + a27 = 1; + a4 = 1; + a12 = 11; + a18 = 0; + a3 = 8; + } + return -1; + } else if(((((a3==4)&&((a6==1)&&((a22==1)&&((a20==1)&&((((((input==5)&&(a4==1))&&!(a5==1))&&!(a27==1))&&(a12==9))&&(a0==1))))))&&(a18==1))&&!(a15==1))){ + a12 = 12; + a3 = 6; + return 21; + } else if((((((((a12==11)&&(!(a0==1)&&(!(a6==1)&&((a3==7)&&(((input==4)&&((a18==1)||!(a18==1)))&&(a22==1))))))&&(a15==1))&&!(a5==1))&&(a4==1))&&(a20==1))&&(a27==1))){ + a0 = 1; + a3 = 8; + a6 = 1; + a22 = 0; + a18 = 0; + a5 = 1; + return 26; + } else if((((!(a0==1)&&((((((((input==5)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a6==1))&&!(a4==1))&&(a27==1))&&(a20==1))&&(a3==8))&&!(a15==1)))&&!(a5==1))&&(a12==12))){ + a0 = 1; + a6 = 1; + a12 = 11; + a18 = 0; + a27 = 0; + a4 = 1; + a22 = 0; + return 26; + } else if(((a20==1)&&((a4==1)&&(((((!(a6==1)&&(((((input==1)&&(a22==1))&&!(a0==1))&&(a27==1))&&(a12==12)))&&(a3==6))&&(a5==1))&&(a15==1))&&(a18==1))))){ + a6 = 1; + a12 = 8; + a0 = 1; + a3 = 4; + return -1; + } else if(((a5==1)&&(((a20==1)&&(((((a22==1)&&(((a27==1)&&((a0==1)&&(((a18==1)||!(a18==1))&&(input==4))))&&(a12==8)))&&(a4==1))&&(a3==4))&&(a6==1)))&&!(a15==1)))){ + a18 = 0; + a6 = 0; + a4 = 0; + return 24; + } else if(((a20==1)&&(!(a15==1)&&((a5==1)&&((a12==12)&&((a27==1)&&(((a4==1)&&(((input==5)&&(((a3==5)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))))&&(a0==1)))&&(a6==1)))))))){ + a22 = 1; + a12 = 8; + a3 = 4; + a15 = 1; + a18 = 1; + return -1; + } else if((!(a22==1)&&(!(a18==1)&&((((((a20==1)&&((((a12==8)&&((input==2)&&(a5==1)))&&!(a0==1))&&(a3==4)))&&!(a15==1))&&!(a6==1))&&!(a4==1))&&(a27==1))))){ + a15 = 1; + a12 = 11; + a3 = 5; + a0 = 1; + a27 = 0; + a22 = 1; + return 26; + } else if((!(a27==1)&&(!(a0==1)&&(((((((((input==6)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a3==8))&&(a15==1))&&(a12==10))&&!(a5==1))&&(a20==1))&&!(a4==1))&&!(a6==1))))){ + a18 = 0; + a22 = 0; + a6 = 1; + a3 = 4; + a5 = 1; + a12 = 8; + a0 = 1; + a27 = 1; + return 21; + } else if((((a20==1)&&((((a0==1)&&(((((a3==4)&&(((input==1)&&!(a27==1))&&(a12==11)))&&!(a6==1))&&(a5==1))&&(a4==1)))&&(a18==1))&&(a15==1)))&&!(a22==1))){ + a6 = 1; + a12 = 8; + a18 = 0; + a27 = 1; + return -1; + } else if(((((a6==1)&&((!(a18==1)&&(((a20==1)&&((a12==8)&&(((a15==1)&&((input==4)&&(a3==4)))&&!(a27==1))))&&(a0==1)))&&(a5==1)))&&!(a4==1))&&(a22==1))){ + a18 = 1; + a27 = 1; + a4 = 1; + return -1; + } else if(((((((a12==12)&&(((((input==6)&&(((a3==5)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1))))))&&(a15==1))&&!(a5==1))&&(a0==1)))&&(a20==1))&&(a4==1))&&!(a6==1))&&!(a27==1))){ + a22 = 0; + a3 = 5; + a27 = 1; + a6 = 1; + a18 = 0; + return 26; + } else if((!(a4==1)&&(((!(a5==1)&&((((a22==1)&&(((a0==1)&&(((input==3)&&(a20==1))&&!(a27==1)))&&!(a6==1)))&&!(a15==1))&&!(a18==1)))&&(a3==5))&&(a12==10)))){ + a12 = 12; + a6 = 1; + a18 = 1; + a27 = 1; + a5 = 1; + a3 = 4; + return 21; + } else if((((a12==10)&&(((a22==1)&&((a27==1)&&((((((a20==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&!(a0==1))&&!(a6==1))&&(a15==1))&&(a3==6))))&&(a5==1)))&&(a4==1))){ + a6 = 1; + a3 = 4; + a0 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if((((((a4==1)&&(((a15==1)&&((a6==1)&&((a27==1)&&((((input==2)&&(a12==11))&&(a3==4))&&(a18==1)))))&&!(a22==1)))&&(a0==1))&&(a20==1))&&(a5==1))){ + a18 = 0; + a3 = 6; + a6 = 0; + a12 = 10; + return -1; + } else if((((!(a27==1)&&((((a3==5)&&((a12==12)&&(((a5==1)&&(((input==6)&&!(a15==1))&&!(a18==1)))&&(a22==1))))&&(a20==1))&&(a6==1)))&&(a0==1))&&!(a4==1))){ + if((a15==1)){ + a15 = 1; + a0 = 0; + a4 = 1; + a12 = 9; + a22 = 0; + a27 = 1; + a18 = 1; + a5 = 0; + }else{ + a5 = 0; + a18 = 1; + a12 = 10; + a4 = 1; + a3 = 6; + a22 = 0; + a6 = 0; + a27 = 1; + } + return 21; + } else if((!(a22==1)&&((a15==1)&&(((a4==1)&&(((a0==1)&&((a3==6)&&(!(a18==1)&&(((!(a5==1)&&(input==1))&&!(a27==1))&&(a12==11)))))&&(a20==1)))&&!(a6==1))))){ + a22 = 1; + a27 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + a6 = 1; + return -1; + } else if(((((!(a0==1)&&(((a12==8)&&((a27==1)&&(((input==6)&&((((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==7))))&&(a15==1))))&&!(a4==1)))&&(a20==1))&&!(a6==1))&&!(a5==1))){ + a12 = 9; + a22 = 1; + a18 = 0; + a0 = 1; + a15 = 0; + a27 = 0; + a3 = 7; + return 26; + } else if(((a22==1)&&((a6==1)&&((((a20==1)&&((a4==1)&&(((a3==8)&&((a18==1)&&((a27==1)&&((input==2)&&(a12==10)))))&&(a5==1))))&&!(a0==1))&&(a15==1))))){ + a3 = 4; + a0 = 1; + a12 = 8; + return -1; + } else if(((a5==1)&&((a15==1)&&((((((((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1)))))&&(input==4))&&(a12==10))&&!(a0==1))&&(a4==1))&&!(a27==1))&&(a20==1))))){ + a18 = 1; + a22 = 1; + a27 = 1; + a0 = 1; + a6 = 1; + a3 = 4; + a12 = 8; + return 26; + } else if(((a3==4)&&((a20==1)&&((a5==1)&&((((((a12==11)&&(((input==2)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a27==1)))&&(a6==1))&&!(a0==1))&&(a4==1))&&(a15==1)))))){ + a12 = 8; + a18 = 1; + a22 = 0; + a4 = 0; + a0 = 1; + a27 = 1; + return -1; + } else if(((a20==1)&&(!(a18==1)&&(!(a6==1)&&((((!(a5==1)&&(!(a4==1)&&((a12==10)&&(((input==1)&&!(a22==1))&&(a3==5)))))&&(a15==1))&&!(a27==1))&&(a0==1)))))){ + a22 = 1; + a5 = 1; + a27 = 1; + a12 = 11; + return 26; + } else if((((((a12==8)&&((((a5==1)&&((a0==1)&&(((a20==1)&&(!(a22==1)&&(input==3)))&&(a4==1))))&&(a15==1))&&!(a18==1)))&&!(a6==1))&&(a3==4))&&!(a27==1))){ + a3 = 7; + a5 = 0; + a6 = 1; + return 24; + } else if(((!(a5==1)&&(!(a6==1)&&(((a4==1)&&((((a0==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2))&&(a20==1)))&&(a3==5))&&(a12==9)))&&(a27==1))))&&!(a15==1))){ + a15 = 1; + a22 = 1; + a5 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if(((a12==9)&&((((a3==6)&&((a6==1)&&(((((a15==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==2)))&&!(a27==1))&&(a20==1))&&!(a4==1))))&&(a5==1))&&!(a0==1)))){ + if((a0==1)){ + a0 = 1; + a4 = 1; + a3 = 7; + a6 = 0; + a18 = 0; + a5 = 0; + a22 = 0; + }else{ + a12 = 11; + a22 = 0; + a27 = 1; + a4 = 1; + a6 = 0; + a15 = 0; + a18 = 0; + a3 = 5; + a0 = 1; + } + return -1; + } else if(((a22==1)&&((a4==1)&&((a15==1)&&((((a12==10)&&((a3==6)&&(((a20==1)&&((a18==1)&&((a5==1)&&(input==5))))&&!(a27==1))))&&(a0==1))&&!(a6==1)))))){ + a4 = 0; + a22 = 0; + a27 = 1; + a5 = 0; + a12 = 11; + a0 = 0; + a6 = 1; + a18 = 0; + return 21; + } else if(((!(a18==1)&&(((a27==1)&&(((a12==10)&&((!(a0==1)&&((!(a5==1)&&((input==6)&&(a3==7)))&&(a15==1)))&&!(a4==1)))&&!(a22==1)))&&(a20==1)))&&!(a6==1))){ + a0 = 1; + a12 = 8; + a3 = 4; + a5 = 1; + a18 = 1; + a4 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if((!(a22==1)&&((!(a6==1)&&(((((!(a0==1)&&(!(a15==1)&&((((a18==1)||!(a18==1))&&(input==6))&&(a3==8))))&&(a5==1))&&(a12==9))&&(a27==1))&&!(a4==1)))&&(a20==1)))){ + a3 = 4; + a18 = 1; + a15 = 1; + a0 = 1; + a6 = 1; + a4 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if((((a12==11)&&((((((a0==1)&&(((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==2))&&!(a27==1))&&!(a5==1)))&&(a20==1))&&!(a6==1))&&(a3==8))&&(a4==1)))&&!(a15==1))){ + a4 = 0; + a12 = 10; + a22 = 1; + a3 = 7; + a18 = 0; + a15 = 1; + a27 = 1; + return 26; + } else if((((a6==1)&&((((((!(a15==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))||((a3==8)&&((a22==1)&&!(a18==1))))&&(input==6)))&&(a20==1))&&(a0==1))&&!(a27==1))&&!(a4==1))&&(a5==1)))&&(a12==9))){ + a6 = 0; + a3 = 5; + a15 = 1; + a18 = 0; + a22 = 1; + a0 = 0; + a12 = 12; + a27 = 1; + return -1; + } else if((!(a0==1)&&(((a6==1)&&(((a15==1)&&((a3==5)&&((a4==1)&&((a22==1)&&(((a20==1)&&((input==2)&&!(a27==1)))&&!(a18==1))))))&&(a12==8)))&&!(a5==1)))){ + a27 = 1; + a5 = 1; + a0 = 1; + a6 = 0; + a18 = 1; + a3 = 8; + return 21; + } else if(((a20==1)&&(((((a4==1)&&(!(a27==1)&&(!(a0==1)&&(!(a5==1)&&((a12==10)&&(!(a15==1)&&(((a18==1)||!(a18==1))&&(input==2))))))))&&(a22==1))&&(a6==1))&&(a3==5)))){ + a12 = 12; + a5 = 1; + a18 = 0; + a22 = 0; + a27 = 1; + a6 = 0; + return -1; + } else if((!(a0==1)&&(((!(a6==1)&&(((a3==5)&&((a27==1)&&(((a5==1)&&((input==3)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))))&&!(a15==1))))&&(a20==1)))&&(a12==10))&&(a4==1)))){ + a27 = 0; + a4 = 0; + a18 = 1; + a12 = 11; + a3 = 6; + a22 = 0; + a0 = 1; + return 21; + } else if(((a12==12)&&((a3==8)&&(!(a15==1)&&((a6==1)&&((((!(a5==1)&&((a27==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==3))))&&!(a4==1))&&(a0==1))&&(a20==1))))))){ + a5 = 1; + a4 = 1; + a12 = 8; + a15 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + return -1; + } else if((((((((a5==1)&&((a3==7)&&((a12==10)&&((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a6==1)))))&&(a0==1))&&(a20==1))&&!(a27==1))&&(a4==1))&&!(a15==1))){ + a22 = 0; + a3 = 6; + a15 = 1; + a18 = 1; + a6 = 0; + a27 = 1; + a12 = 12; + return 21; + } else if((((a0==1)&&((((((a12==8)&&(((input==1)&&((((a22==1)&&!(a18==1))&&(a3==5))||(((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==5)))))&&!(a27==1)))&&!(a4==1))&&!(a15==1))&&!(a6==1))&&!(a5==1)))&&(a20==1))){ + a6 = 1; + a27 = 1; + a0 = 0; + a18 = 0; + a5 = 1; + a22 = 1; + a12 = 9; + a3 = 7; + return 26; + } else if((((a27==1)&&((((((a6==1)&&((a20==1)&&((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==3))&&(a3==5))))&&!(a15==1))&&(a4==1))&&!(a5==1))&&!(a0==1)))&&(a12==10))){ + a0 = 1; + a6 = 0; + a18 = 1; + a3 = 4; + a5 = 1; + a22 = 0; + a12 = 8; + return -1; + } else if((((a20==1)&&(((a0==1)&&(((a5==1)&&((input==1)&&((!(a6==1)&&(((a4==1)&&(!(a22==1)&&!(a18==1)))&&(a3==8)))||((a6==1)&&((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))))))&&(a15==1)))&&!(a27==1)))&&(a12==9))){ + a3 = 8; + a12 = 10; + a4 = 1; + a22 = 1; + a18 = 1; + a27 = 1; + a15 = 0; + a6 = 1; + return 24; + } else if((!(a15==1)&&((((a5==1)&&(((((((a12==11)&&((input==4)&&!(a6==1)))&&(a0==1))&&!(a22==1))&&(a20==1))&&(a27==1))&&!(a18==1)))&&!(a4==1))&&(a3==5)))){ + a27 = 0; + a18 = 1; + a3 = 6; + a22 = 1; + a15 = 1; + return 21; + } else if(((a3==8)&&((((a12==10)&&((a15==1)&&(((((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==4))&&!(a5==1))&&!(a4==1))&&!(a0==1))&&(a27==1))))&&(a20==1))&&!(a6==1)))){ + a22 = 1; + a0 = 1; + a18 = 1; + a5 = 1; + a12 = 8; + a3 = 4; + a6 = 1; + a4 = 1; + return -1; + } else if((!(a6==1)&&((((a5==1)&&(((a22==1)&&((((a3==5)&&((a12==11)&&((a20==1)&&(input==3))))&&!(a27==1))&&!(a18==1)))&&(a4==1)))&&(a15==1))&&!(a0==1)))){ + a4 = 0; + a27 = 1; + a3 = 7; + a12 = 8; + a0 = 1; + a18 = 1; + a6 = 1; + return -1; + } else if((((a27==1)&&((a5==1)&&(((a0==1)&&((((a12==10)&&((((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==1)))&&(a20==1))&&!(a6==1)))&&(a4==1))))&&!(a15==1))){ + a18 = 0; + a27 = 0; + a5 = 0; + a12 = 9; + a22 = 1; + a3 = 8; + return 24; + } else if((((a15==1)&&(((!(a27==1)&&(((a20==1)&&(!(a5==1)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==6))))&&(a6==1)))&&(a0==1))&&(a4==1)))&&(a12==11))){ + a22 = 0; + a6 = 0; + a27 = 1; + a3 = 8; + a18 = 0; + return 21; + } else if((!(a4==1)&&((a5==1)&&(((((a12==8)&&(((((a6==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a20==1))&&(a27==1))&&(a3==5)))&&(a22==1))&&!(a0==1))&&!(a15==1))))){ + a18 = 1; + a15 = 1; + a4 = 1; + a0 = 1; + a3 = 4; + return -1; + } else if(((a6==1)&&((!(a0==1)&&((a12==9)&&((a20==1)&&((a4==1)&&((a5==1)&&(((input==5)&&(((a3==7)&&((a22==1)&&(a18==1)))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))))&&(a27==1)))))))&&!(a15==1)))){ + a22 = 0; + a5 = 0; + a18 = 1; + a12 = 10; + a3 = 5; + a4 = 0; + a0 = 1; + return -1; + } else if((((a20==1)&&(((a5==1)&&(!(a15==1)&&((a6==1)&&(((a27==1)&&(((((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==4)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==6)))&&(a12==11)))))&&!(a4==1)))&&(a0==1))){ + a4 = 1; + a12 = 10; + a0 = 0; + a22 = 0; + a3 = 7; + a18 = 0; + return -1; + } else if(((a20==1)&&(!(a27==1)&&((a12==8)&&(((a15==1)&&(((!(a5==1)&&((input==4)&&((((!(a22==1)&&(a18==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7)))||((a3==8)&&((a22==1)&&(a18==1))))))&&!(a0==1))&&!(a4==1)))&&(a6==1)))))){ + a4 = 1; + a6 = 0; + a3 = 5; + a18 = 1; + a5 = 1; + a22 = 1; + a27 = 1; + a0 = 1; + return 21; + } else if(((a12==9)&&(((!(a0==1)&&(((a20==1)&&((a15==1)&&((input==2)&&((!(a6==1)&&((!(a18==1)&&(a22==1))&&(a3==4)))||(((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1)))))))&&(a4==1)))&&!(a5==1))&&!(a27==1)))){ + a27 = 1; + a3 = 6; + a5 = 1; + a0 = 1; + a18 = 0; + a6 = 1; + a22 = 0; + a12 = 8; + return -1; + } else if((((!(a15==1)&&(((((!(a0==1)&&((input==5)&&(((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==5)))))&&(a20==1))&&(a5==1))&&!(a6==1))&&!(a27==1)))&&(a12==9))&&!(a4==1))){ + a0 = 1; + a18 = 1; + a6 = 1; + a27 = 1; + a22 = 0; + a12 = 8; + a15 = 1; + a3 = 8; + return -1; + } else if(((a12==12)&&(((((((!(a27==1)&&((a4==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==6))))&&(a15==1))&&!(a6==1))&&(a5==1))&&(a0==1))&&(a20==1))&&(a3==5)))){ + a18 = 1; + a3 = 6; + a12 = 9; + a15 = 0; + a22 = 0; + return -1; + } else if((((((!(a27==1)&&((((a4==1)&&(((input==5)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a20==1)))&&!(a6==1))&&(a12==10)))&&(a5==1))&&!(a0==1))&&(a3==7))&&!(a15==1))){ + a27 = 1; + a15 = 1; + a4 = 0; + a0 = 1; + a18 = 1; + a6 = 1; + a12 = 8; + a3 = 8; + a22 = 1; + return -1; + } else if(((a3==8)&&((!(a5==1)&&((a4==1)&&((a12==10)&&(!(a22==1)&&((a20==1)&&(((a15==1)&&(!(a0==1)&&(((a18==1)||!(a18==1))&&(input==3))))&&(a6==1)))))))&&!(a27==1)))){ + if((a20==1)){ + a18 = 0; + a12 = 8; + a0 = 1; + a5 = 1; + a3 = 7; + a4 = 0; + a27 = 1; + }else{ + a6 = 0; + a18 = 1; + a0 = 1; + a5 = 1; + a12 = 8; + a27 = 1; + a3 = 5; + } + return -1; + } else if(((a12==11)&&((a4==1)&&((((((a5==1)&&((a18==1)&&((a27==1)&&(!(a15==1)&&((input==1)&&(a0==1))))))&&(a20==1))&&(a6==1))&&(a3==8))&&(a22==1))))){ + a3 = 6; + a18 = 0; + return -1; + } else if(((a20==1)&&(!(a4==1)&&(((a6==1)&&((((a12==9)&&(((!(a18==1)&&((input==1)&&(a22==1)))&&!(a5==1))&&!(a0==1)))&&(a27==1))&&(a3==6)))&&!(a15==1))))){ + a3 = 8; + a0 = 1; + a15 = 1; + a4 = 1; + a27 = 0; + return 26; + } else if((((((a6==1)&&((!(a27==1)&&(!(a22==1)&&(((!(a15==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&!(a5==1))&&!(a0==1))))&&(a20==1)))&&(a3==6))&&!(a4==1))&&(a12==9))){ + if((a4==1)){ + a4 = 1; + a22 = 1; + a18 = 1; + a6 = 0; + }else{ + a12 = 8; + a18 = 0; + a0 = 1; + a27 = 1; + a5 = 1; + a3 = 4; + a15 = 1; + a4 = 1; + } + return 24; + } else if((((a0==1)&&(!(a5==1)&&((!(a6==1)&&(((a3==4)&&((((input==4)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a4==1))&&(a20==1)))&&(a12==11)))&&!(a27==1))))&&(a15==1))){ + a18 = 1; + a22 = 1; + a12 = 8; + a4 = 1; + a6 = 1; + a5 = 1; + a27 = 1; + return -1; + } else if(((((((!(a4==1)&&(((((input==4)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a5==1))&&!(a27==1))&&(a15==1)))&&(a12==10))&&(a6==1))&&(a20==1))&&!(a0==1))&&(a3==6))){ + a22 = 1; + a27 = 1; + a18 = 0; + a6 = 0; + return -1; + } else if(((a3==8)&&(((((a6==1)&&(((a20==1)&&((a12==12)&&((a27==1)&&((input==2)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))&&(a15==1)))&&!(a4==1))&&!(a0==1))&&(a5==1)))){ + a3 = 5; + a5 = 0; + a0 = 1; + a12 = 10; + a18 = 0; + a22 = 0; + return -1; + } else if((((a20==1)&&((a18==1)&&(!(a5==1)&&((a27==1)&&(((!(a6==1)&&(((!(a22==1)&&(input==3))&&(a0==1))&&!(a4==1)))&&!(a15==1))&&(a3==7))))))&&(a12==9))){ + a6 = 1; + a3 = 6; + a4 = 1; + a18 = 0; + a12 = 11; + return 24; + } else if(((a5==1)&&((!(a15==1)&&(((a3==5)&&((a4==1)&&((!(a22==1)&&(!(a0==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a12==11))))&&(a20==1))))&&(a27==1)))&&(a6==1)))){ + a18 = 1; + a0 = 1; + a3 = 7; + a6 = 0; + a4 = 0; + a12 = 10; + return -1; + } else if(((((a12==9)&&(((a20==1)&&((((((((a18==1)&&(a22==1))&&(a3==8))||(((!(a22==1)&&(a18==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7))))&&(input==6))&&(a15==1))&&(a0==1))&&!(a5==1)))&&(a27==1)))&&!(a4==1))&&!(a6==1))){ + a22 = 1; + a18 = 1; + a5 = 1; + a12 = 8; + a6 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((!(a6==1)&&((!(a15==1)&&((((((input==6)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7))))&&!(a5==1))&&(a0==1))&&!(a27==1))&&!(a4==1)))&&(a20==1)))&&(a12==8))){ + a22 = 0; + a4 = 1; + a18 = 1; + a27 = 1; + a6 = 1; + a3 = 5; + a0 = 0; + a15 = 1; + return 21; + } else if(((!(a5==1)&&((a6==1)&&(((((a0==1)&&(((((!(a18==1)&&(a22==1))&&(a3==7))||(((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1)))))&&(input==1))&&!(a15==1)))&&(a27==1))&&(a12==11))&&(a4==1))))&&(a20==1))){ + a22 = 1; + a18 = 1; + a15 = 1; + a12 = 8; + a3 = 4; + a5 = 1; + return -1; + } else if(((a5==1)&&(!(a27==1)&&((((a20==1)&&((a0==1)&&((((!(a6==1)&&(((a4==1)&&((a18==1)&&!(a22==1)))&&(a3==8)))||(!(a6==1)&&(((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8))))||((a6==1)&&((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1)))))&&(input==3))))&&!(a15==1))&&(a12==11))))){ + a18 = 1; + a12 = 10; + a6 = 0; + a27 = 1; + a4 = 0; + a22 = 0; + a3 = 4; + return -1; + } return calculate_output47(input); + } + + int calculate_output47(int input) { + if(((a3==5)&&(((((a0==1)&&((a15==1)&&(((a18==1)&&((((a20==1)&&(input==4))&&(a5==1))&&(a12==8)))&&(a4==1))))&&!(a22==1))&&(a6==1))&&!(a27==1)))){ + a15 = 0; + a27 = 1; + a6 = 0; + a12 = 12; + a5 = 0; + a3 = 6; + return -1; + } else if(((a0==1)&&((((((((a27==1)&&((a6==1)&&((a5==1)&&((input==2)&&!(a15==1)))))&&(a4==1))&&(a3==7))&&(a20==1))&&(a12==11))&&!(a18==1))&&!(a22==1)))){ + a18 = 1; + a12 = 8; + a15 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((a6==1)&&(!(a4==1)&&((a12==8)&&((a0==1)&&((a20==1)&&((((!(a5==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==6)))&&(a3==8))&&!(a27==1))&&(a15==1)))))))){ + a18 = 1; + a12 = 10; + a5 = 1; + a22 = 0; + a4 = 1; + a27 = 1; + return 21; + } else if(((!(a15==1)&&(((((((a27==1)&&((a12==12)&&((a22==1)&&((input==3)&&(a0==1)))))&&(a4==1))&&(a5==1))&&(a3==4))&&(a20==1))&&!(a18==1)))&&!(a6==1))){ + if((a5==1)){ + a15 = 1; + a18 = 1; + a3 = 8; + a22 = 0; + a5 = 0; + a12 = 11; + a0 = 0; + }else{ + a18 = 1; + a6 = 1; + a5 = 0; + a12 = 11; + a3 = 5; + } + return -1; + } else if(((a20==1)&&((a12==12)&&(!(a0==1)&&(!(a5==1)&&((((!(a15==1)&&(((((a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&((a18==1)&&!(a22==1)))||((a3==7)&&(!(a18==1)&&!(a22==1)))))&&(input==6)))&&!(a4==1))&&!(a6==1))&&(a27==1))))))){ + a12 = 8; + a6 = 1; + a3 = 7; + a0 = 1; + a5 = 1; + a22 = 0; + a15 = 1; + a18 = 0; + return -1; + } else if(((((!(a18==1)&&(((a3==8)&&((a6==1)&&((!(a0==1)&&((!(a15==1)&&(input==6))&&!(a5==1)))&&(a4==1))))&&(a12==10)))&&!(a27==1))&&(a20==1))&&(a22==1))){ + if((a20==1)){ + a5 = 1; + a22 = 0; + a27 = 1; + a15 = 1; + a18 = 1; + a6 = 0; + a12 = 12; + a3 = 6; + }else{ + a5 = 1; + a15 = 1; + a0 = 1; + a6 = 0; + a27 = 1; + a12 = 8; + } + return 26; + } else if(((a20==1)&&((a0==1)&&(((a12==9)&&((((((input==6)&&((((!(a22==1)&&(a18==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))||(((a18==1)&&(a22==1))&&(a3==7))))&&(a27==1))&&(a6==1))&&!(a4==1))&&!(a5==1)))&&!(a15==1))))){ + a4 = 1; + a22 = 0; + a3 = 6; + a0 = 0; + a12 = 8; + a15 = 1; + a6 = 0; + a18 = 0; + return 24; + } else if(((a20==1)&&(!(a4==1)&&((a15==1)&&((a3==8)&&(((a5==1)&&(!(a6==1)&&(!(a0==1)&&((((input==4)&&((a18==1)||!(a18==1)))&&(a22==1))&&(a27==1)))))&&(a12==12))))))){ + a18 = 1; + a12 = 10; + a6 = 1; + a15 = 0; + a22 = 0; + a0 = 1; + a3 = 4; + return -1; + } else if((!(a22==1)&&((a12==10)&&((a6==1)&&(((a4==1)&&((a20==1)&&((!(a18==1)&&(((a27==1)&&((input==6)&&!(a5==1)))&&(a15==1)))&&!(a0==1))))&&(a3==4)))))){ + a12 = 8; + a5 = 1; + a0 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if((((!(a22==1)&&((a5==1)&&(!(a15==1)&&(((a27==1)&&((a20==1)&&((((a12==8)&&(input==1))&&!(a18==1))&&!(a6==1))))&&(a4==1)))))&&(a3==8))&&(a0==1))){ + a12 = 9; + a15 = 1; + a22 = 1; + a3 = 4; + return 21; + } else if((((a12==12)&&((a15==1)&&(((((a27==1)&&(((input==3)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==7))))&&!(a5==1)))&&(a4==1))&&(a20==1))&&!(a6==1))))&&!(a0==1))){ + if((a6==1)){ + a0 = 1; + a3 = 7; + a12 = 8; + a5 = 1; + a22 = 0; + a18 = 0; + }else{ + a22 = 1; + a18 = 0; + a3 = 7; + a12 = 8; + a0 = 1; + a6 = 1; + a5 = 1; + } + return -1; + } else if((!(a6==1)&&(!(a27==1)&&(((a20==1)&&(!(a4==1)&&(((a12==12)&&(((((a3==5)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4))))&&(input==4))&&(a0==1)))&&!(a15==1))))&&(a5==1))))){ + a18 = 1; + a4 = 1; + a3 = 4; + a12 = 11; + a22 = 1; + return -1; + } else if(((a12==8)&&((!(a18==1)&&(((a20==1)&&((!(a5==1)&&(!(a27==1)&&((a4==1)&&((a3==4)&&((input==1)&&!(a0==1))))))&&!(a22==1)))&&!(a6==1)))&&(a15==1)))){ + a22 = 1; + a5 = 1; + a0 = 1; + a27 = 1; + return 21; + } else if(((a6==1)&&((a0==1)&&(((((a12==8)&&((a20==1)&&(!(a5==1)&&(!(a4==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==5))))))&&(a3==4))&&!(a27==1))&&(a15==1))))){ + a18 = 0; + a0 = 0; + a3 = 5; + a22 = 1; + a27 = 1; + a12 = 9; + a5 = 1; + a6 = 0; + return -1; + } else if((((!(a6==1)&&(!(a5==1)&&((((((a3==5)&&((input==4)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a20==1))&&!(a27==1))&&(a12==8))&&!(a0==1))))&&!(a15==1))&&(a4==1))){ + if((a27==1)){ + a3 = 7; + a18 = 0; + a12 = 12; + a27 = 1; + a22 = 0; + a5 = 1; + }else{ + a27 = 1; + a6 = 1; + a0 = 1; + a15 = 1; + a3 = 4; + a22 = 0; + a5 = 1; + a18 = 0; + } + return -1; + } else if((!(a22==1)&&(((!(a5==1)&&(!(a4==1)&&((((a15==1)&&((a3==6)&&((((a18==1)||!(a18==1))&&(input==2))&&(a0==1))))&&!(a27==1))&&(a20==1))))&&!(a6==1))&&(a12==9)))){ + a18 = 1; + a12 = 11; + a6 = 1; + a15 = 0; + a27 = 1; + return -1; + } else if((!(a22==1)&&(((a5==1)&&((!(a18==1)&&(((a15==1)&&((((a4==1)&&((a6==1)&&(input==6)))&&(a20==1))&&!(a0==1)))&&(a27==1)))&&(a12==12)))&&(a3==6)))){ + a18 = 1; + a22 = 1; + a0 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((a4==1)&&((a20==1)&&((a3==5)&&(((!(a27==1)&&((!(a0==1)&&(((input==3)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a5==1)))&&(a15==1)))&&(a6==1))&&(a12==9)))))){ + a18 = 1; + a27 = 1; + a0 = 1; + a22 = 0; + a3 = 6; + a6 = 0; + a12 = 8; + return 26; + } else if((!(a5==1)&&((a22==1)&&((!(a27==1)&&((a6==1)&&(((a20==1)&&((a3==6)&&((a12==11)&&((((a18==1)||!(a18==1))&&(input==5))&&(a4==1)))))&&!(a15==1))))&&!(a0==1))))){ + if((a15==1)){ + a12 = 8; + a0 = 1; + a18 = 1; + a3 = 5; + a5 = 1; + a27 = 1; + a15 = 1; + }else{ + a15 = 1; + a27 = 1; + a18 = 0; + a0 = 1; + a22 = 0; + a12 = 8; + a5 = 1; + a3 = 8; + } + return -1; + } else if((!(a6==1)&&(!(a27==1)&&(((((a15==1)&&((a5==1)&&(((a0==1)&&((input==3)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a3==7))))&&!(a4==1))&&(a20==1))&&(a12==11))))){ + a18 = 0; + a4 = 1; + a15 = 0; + a27 = 1; + a22 = 1; + a12 = 12; + a3 = 4; + a6 = 1; + return 24; + } else if(((!(a15==1)&&((a12==12)&&((a27==1)&&(((!(a6==1)&&((!(a4==1)&&((input==6)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))))&&(a20==1)))&&!(a0==1))&&(a5==1)))))&&(a3==4))){ + a18 = 1; + a3 = 7; + a6 = 1; + a15 = 1; + a22 = 0; + a0 = 1; + a12 = 8; + return -1; + } else if(((((a3==8)&&((a27==1)&&(!(a5==1)&&(((((a0==1)&&((input==2)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))))&&(a20==1))&&(a6==1))&&(a12==10)))))&&!(a15==1))&&(a4==1))){ + a22 = 0; + a18 = 1; + a15 = 1; + a3 = 4; + return 21; + } else if(((!(a6==1)&&((a12==9)&&((a0==1)&&(((((!(a4==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a3==6)))&&(a15==1))&&(a20==1))&&!(a27==1))&&!(a22==1)))))&&!(a5==1))){ + a12 = 12; + a15 = 0; + a3 = 4; + a6 = 1; + a27 = 1; + a5 = 1; + a18 = 1; + return 21; + } else if(((((a20==1)&&((a6==1)&&((a15==1)&&(((!(a4==1)&&(!(a27==1)&&(((input==6)&&!(a22==1))&&!(a18==1))))&&(a12==10))&&!(a0==1)))))&&(a3==5))&&(a5==1))){ + a27 = 1; + a4 = 1; + a3 = 7; + a0 = 1; + a12 = 8; + return 21; + } else if(((!(a6==1)&&(((a15==1)&&((a20==1)&&(!(a0==1)&&(!(a4==1)&&(((input==4)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a18==1)&&(a22==1)))))&&(a5==1))))))&&(a27==1)))&&(a12==9))){ + a12 = 10; + a3 = 4; + a5 = 0; + a18 = 0; + a22 = 0; + a4 = 1; + a6 = 1; + return -1; + } else if((!(a15==1)&&((!(a27==1)&&(((a0==1)&&((a3==6)&&(!(a4==1)&&(((a12==10)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==3)))&&(a6==1)))))&&(a20==1)))&&!(a5==1)))){ + a3 = 4; + a22 = 0; + a5 = 1; + a15 = 1; + a18 = 0; + return -1; + } else if((!(a15==1)&&(((!(a5==1)&&(((a3==8)&&(((!(a0==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==6)))&&(a12==9))&&(a20==1)))&&(a27==1)))&&!(a4==1))&&(a6==1)))){ + a6 = 0; + a0 = 1; + a3 = 6; + a4 = 1; + a12 = 12; + a22 = 0; + a18 = 1; + return -1; + } else if(((a4==1)&&((a20==1)&&((!(a6==1)&&((((a27==1)&&(((((a22==1)&&(input==6))&&(a12==8))&&!(a15==1))&&(a0==1)))&&!(a18==1))&&!(a5==1)))&&(a3==4))))){ + a3 = 7; + a4 = 0; + a12 = 10; + return 26; + } else if(((a4==1)&&(!(a6==1)&&((a0==1)&&((((a15==1)&&(((a20==1)&&(((input==3)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&!(a5==1)))&&(a3==4)))&&(a12==11))&&!(a27==1)))))){ + a3 = 6; + a6 = 1; + a12 = 12; + a18 = 0; + a27 = 1; + a22 = 1; + return -1; + } else if(((((((a4==1)&&((a15==1)&&(!(a6==1)&&((((((a3==4)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==1))&&!(a5==1)))))&&(a20==1))&&!(a27==1))&&(a12==12))&&(a0==1))){ + a3 = 7; + a22 = 0; + a15 = 0; + a12 = 8; + a0 = 0; + a27 = 1; + a5 = 1; + a18 = 1; + return 21; + } else if(((((((a12==10)&&(!(a22==1)&&((a20==1)&&((a6==1)&&(((a15==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a3==7))))))&&(a4==1))&&(a0==1))&&(a27==1))&&!(a5==1))){ + a12 = 8; + a3 = 4; + a18 = 1; + a22 = 1; + a5 = 1; + return -1; + } else if((((((((a12==9)&&(!(a6==1)&&((a3==4)&&(!(a0==1)&&((a27==1)&&((input==6)&&(a22==1)))))))&&(a5==1))&&(a18==1))&&!(a15==1))&&(a20==1))&&!(a4==1))){ + a15 = 1; + a6 = 1; + a12 = 8; + a4 = 1; + a0 = 1; + return -1; + } else if(((a27==1)&&((a5==1)&&(((((a12==12)&&((a20==1)&&((a3==4)&&(((((a18==1)||!(a18==1))&&(input==4))&&!(a22==1))&&(a15==1)))))&&!(a4==1))&&(a0==1))&&!(a6==1))))){ + a3 = 8; + a15 = 0; + a5 = 0; + a12 = 10; + a22 = 1; + a18 = 0; + a4 = 1; + return -1; + } else if(((a27==1)&&(((a20==1)&&((a12==11)&&((!(a15==1)&&(!(a0==1)&&(((input==4)&&((((a3==7)&&((a18==1)&&!(a22==1)))||((a3==7)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==8))))&&!(a4==1))))&&(a6==1))))&&!(a5==1)))){ + a3 = 6; + a22 = 1; + a0 = 1; + a5 = 1; + a18 = 0; + return 21; + } else if(((!(a5==1)&&(((!(a0==1)&&(((a12==10)&&(!(a6==1)&&(((input==2)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a27==1))))&&(a3==4)))&&(a15==1))&&(a4==1)))&&(a20==1))){ + if((a20==1)){ + a22 = 0; + a3 = 8; + a0 = 1; + a18 = 1; + a6 = 1; + a12 = 9; + a5 = 1; + a15 = 0; + }else{ + a22 = 0; + a4 = 0; + a27 = 1; + a5 = 1; + a15 = 0; + a18 = 0; + a12 = 11; + } + return -1; + } else if((((((a12==11)&&((a20==1)&&((a15==1)&&((((!(a6==1)&&((a3==8)&&((a4==1)&&((a18==1)&&!(a22==1)))))||(!(a6==1)&&((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1))))))||((a6==1)&&((!(a4==1)&&((a18==1)&&(a22==1)))&&(a3==4))))&&(input==6)))))&&!(a27==1))&&(a0==1))&&!(a5==1))){ + a12 = 8; + a6 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a5 = 1; + a4 = 1; + a27 = 1; + return -1; + } else if(((!(a4==1)&&((((((((a3==8)&&(!(a22==1)&&(!(a15==1)&&(input==6))))&&(a0==1))&&!(a27==1))&&(a20==1))&&(a6==1))&&(a12==12))&&(a18==1)))&&!(a5==1))){ + a15 = 1; + a3 = 4; + a27 = 1; + a5 = 1; + a12 = 11; + return 21; + } else if(((a27==1)&&((((a5==1)&&(!(a6==1)&&((a12==9)&&((a3==8)&&(!(a15==1)&&(!(a4==1)&&((a20==1)&&(((a18==1)||!(a18==1))&&(input==1)))))))))&&!(a0==1))&&!(a22==1)))){ + a6 = 1; + a3 = 4; + a12 = 8; + a0 = 1; + a15 = 1; + a22 = 1; + a18 = 1; + a4 = 1; + return -1; + } else if(((a18==1)&&((((a4==1)&&(((a22==1)&&((!(a0==1)&&((((a12==8)&&(input==4))&&(a15==1))&&!(a5==1)))&&(a20==1)))&&!(a27==1)))&&(a6==1))&&(a3==5)))){ + a18 = 0; + a27 = 1; + a22 = 0; + a0 = 1; + a5 = 1; + a3 = 6; + a6 = 0; + return 26; + } else if(((((a20==1)&&((((!(a0==1)&&((a15==1)&&(((((a18==1)&&(a22==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5))))&&(input==5))))&&!(a27==1))&&!(a6==1))&&(a4==1)))&&(a5==1))&&(a12==10))){ + a4 = 0; + a6 = 1; + a18 = 1; + a3 = 8; + a0 = 1; + a27 = 1; + a22 = 1; + a12 = 8; + return 21; + } else if(((a0==1)&&(!(a5==1)&&((a15==1)&&(!(a27==1)&&(((a3==8)&&((((((a18==1)&&(input==2))&&!(a4==1))&&!(a6==1))&&(a22==1))&&(a12==12)))&&(a20==1))))))){ + a6 = 1; + a5 = 1; + a3 = 4; + a4 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if((!(a5==1)&&((!(a0==1)&&(!(a27==1)&&((a4==1)&&((((((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==1))&&(a20==1))&&(a15==1))&&(a12==9))&&(a6==1)))))&&(a3==8)))){ + a27 = 1; + a18 = 1; + a5 = 1; + a3 = 4; + a22 = 1; + a0 = 1; + a12 = 8; + return 21; + } else if(((!(a22==1)&&(!(a6==1)&&(((a4==1)&&((a0==1)&&(((a3==4)&&((a20==1)&&(!(a18==1)&&((input==4)&&(a15==1)))))&&!(a27==1))))&&(a12==10))))&&(a5==1))){ + a27 = 1; + a4 = 0; + a12 = 8; + a3 = 6; + a6 = 1; + return -1; + } else if(((a12==11)&&(!(a27==1)&&((((((a0==1)&&((a5==1)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==4))))&&(a20==1))&&!(a15==1))&&!(a4==1))&&(a6==1))))){ + a22 = 1; + a27 = 1; + a18 = 1; + a15 = 1; + a4 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((a3==6)&&((((a6==1)&&((((a5==1)&&(((a15==1)&&(!(a18==1)&&((input==6)&&!(a27==1))))&&(a22==1)))&&(a0==1))&&(a20==1)))&&(a12==11))&&(a4==1)))){ + a22 = 0; + a12 = 12; + a6 = 0; + a3 = 4; + a5 = 0; + a18 = 1; + a27 = 1; + return 26; + } else if(((a20==1)&&((a6==1)&&((a27==1)&&(((((((input==2)&&(((a3==6)&&((a18==1)&&(a22==1)))||(((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a18==1)&&!(a22==1))))))&&!(a0==1))&&!(a15==1))&&(a12==11))&&!(a4==1))&&!(a5==1)))))){ + a22 = 0; + a27 = 0; + a5 = 1; + a0 = 1; + a3 = 5; + a12 = 10; + a18 = 0; + return -1; + } else if(((a3==4)&&(!(a6==1)&&((a15==1)&&(((((a27==1)&&(!(a0==1)&&((!(a22==1)&&((input==2)&&(a12==8)))&&!(a4==1))))&&(a20==1))&&(a18==1))&&(a5==1)))))){ + a22 = 1; + a4 = 1; + a0 = 1; + a6 = 1; + return -1; + } else if(((((((((a18==1)&&(!(a22==1)&&((((a20==1)&&(input==1))&&(a12==8))&&!(a27==1))))&&!(a0==1))&&(a4==1))&&(a5==1))&&(a6==1))&&(a3==8))&&!(a15==1))){ + if((a3==8)){ + a27 = 1; + a18 = 0; + a0 = 1; + a12 = 11; + }else{ + a22 = 1; + a12 = 12; + a18 = 0; + a0 = 1; + } + return 21; + } else if((!(a15==1)&&(((a0==1)&&((a4==1)&&((((((a5==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a3==7)))&&!(a6==1))&&!(a27==1))&&!(a22==1))&&(a12==10))))&&(a20==1)))){ + if((a0==1)){ + a18 = 1; + a15 = 1; + a6 = 1; + a0 = 0; + a12 = 8; + a27 = 1; + a4 = 0; + a3 = 8; + }else{ + a3 = 5; + a12 = 12; + a18 = 0; + a4 = 0; + a15 = 1; + } + return 26; + } else if((((((!(a4==1)&&(((a18==1)&&((a27==1)&&((a12==8)&&((!(a5==1)&&(input==5))&&(a22==1)))))&&!(a15==1)))&&(a20==1))&&(a6==1))&&!(a0==1))&&(a3==4))){ + a12 = 10; + a3 = 5; + a22 = 0; + a15 = 1; + a4 = 1; + a5 = 1; + return -1; + } else if((((a12==10)&&((a5==1)&&((a20==1)&&((((!(a6==1)&&(!(a0==1)&&(!(a15==1)&&(!(a27==1)&&(input==1)))))&&(a4==1))&&(a3==4))&&!(a22==1)))))&&(a18==1))){ + if((a12==12)){ + a3 = 7; + a27 = 1; + a0 = 1; + a12 = 8; + a22 = 1; + a6 = 1; + a15 = 1; + }else{ + a3 = 6; + a0 = 1; + a12 = 8; + a15 = 1; + a18 = 0; + a27 = 1; + a6 = 1; + } + return 21; + } else if(((a5==1)&&(((a15==1)&&((a4==1)&&(!(a27==1)&&(((a12==12)&&((((((a18==1)||!(a18==1))&&(input==2))&&(a6==1))&&(a3==7))&&(a0==1)))&&(a20==1)))))&&(a22==1)))){ + a18 = 1; + a27 = 1; + a4 = 0; + a12 = 11; + a3 = 5; + a22 = 0; + return -1; + } else if(((a3==8)&&((a12==10)&&(!(a5==1)&&((a27==1)&&((!(a15==1)&&(((a6==1)&&(!(a0==1)&&((input==2)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))&&!(a4==1)))&&(a20==1))))))){ + a3 = 4; + a6 = 0; + a22 = 0; + a15 = 1; + a0 = 1; + a18 = 0; + return 21; + } else if(((a0==1)&&((a12==11)&&((((!(a6==1)&&((((!(a22==1)&&((input==6)&&((a18==1)||!(a18==1))))&&!(a27==1))&&(a15==1))&&(a5==1)))&&(a20==1))&&!(a4==1))&&(a3==4))))){ + a27 = 1; + a12 = 8; + a6 = 1; + a0 = 0; + a5 = 0; + a4 = 1; + a18 = 1; + a3 = 7; + return -1; + } else if(((((((((a18==1)&&((a0==1)&&(((!(a22==1)&&(input==1))&&(a20==1))&&!(a4==1))))&&(a27==1))&&!(a6==1))&&(a3==4))&&(a12==10))&&!(a5==1))&&(a15==1))){ + a5 = 1; + a3 = 8; + a15 = 0; + a6 = 1; + a27 = 0; + a4 = 1; + return 26; + } else if(((!(a22==1)&&((((a0==1)&&((a15==1)&&((a3==8)&&(!(a5==1)&&(!(a27==1)&&((((a18==1)||!(a18==1))&&(input==4))&&!(a4==1)))))))&&(a20==1))&&(a6==1)))&&(a12==9))){ + a3 = 4; + a15 = 0; + a18 = 0; + a6 = 0; + a4 = 1; + return 24; + } else if(((a12==11)&&((!(a0==1)&&((a6==1)&&((((((input==1)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1))))||((!(a18==1)&&(a22==1))&&(a3==8))))&&!(a4==1))&&(a20==1))&&!(a27==1))&&!(a15==1))))&&(a5==1)))){ + if((a15==1)){ + a27 = 1; + a18 = 1; + a15 = 1; + a3 = 8; + a12 = 8; + a4 = 1; + a0 = 1; + a22 = 0; + }else{ + a22 = 1; + a18 = 0; + a15 = 1; + a12 = 10; + a3 = 8; + } + return -1; + } else if((((((a12==11)&&(((a3==8)&&((a0==1)&&((((input==3)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&(a6==1))&&(a5==1))))&&!(a15==1)))&&(a20==1))&&(a4==1))&&!(a27==1))){ + a12 = 12; + a5 = 0; + a6 = 0; + a27 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if((!(a5==1)&&((((a12==11)&&((a15==1)&&((!(a0==1)&&((a6==1)&&(((a22==1)&&((a4==1)&&(input==6)))&&(a18==1))))&&!(a27==1))))&&(a20==1))&&(a3==7)))){ + if((a5==1)){ + a6 = 0; + a3 = 4; + a15 = 0; + a12 = 12; + a0 = 1; + a4 = 0; + a27 = 1; + }else{ + a6 = 0; + a5 = 1; + a3 = 5; + a4 = 0; + a22 = 0; + a15 = 0; + a18 = 0; + a0 = 1; + } + return -1; + } else if((((a12==8)&&(((!(a27==1)&&(((a3==8)&&(((a15==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==4)))&&(a5==1)))&&(a0==1)))&&!(a6==1))&&!(a4==1)))&&(a20==1))){ + a18 = 1; + a12 = 10; + a22 = 1; + a27 = 1; + a3 = 5; + a15 = 0; + a6 = 1; + return 26; + } else if(((a0==1)&&(((a20==1)&&((a3==4)&&(!(a15==1)&&((!(a5==1)&&((((a27==1)&&((input==3)&&((a18==1)||!(a18==1))))&&!(a22==1))&&!(a6==1)))&&(a12==11)))))&&!(a4==1)))){ + a6 = 1; + a22 = 1; + a27 = 0; + a3 = 5; + a18 = 0; + return 26; + } else if((((((a6==1)&&((a12==8)&&(((((input==5)&&((((a3==7)&&((a18==1)&&!(a22==1)))||((a3==7)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==8))))&&!(a5==1))&&(a15==1))&&!(a4==1))))&&!(a0==1))&&(a20==1))&&!(a27==1))){ + if((a5==1)){ + a3 = 7; + a4 = 1; + a5 = 1; + a0 = 1; + a18 = 0; + a6 = 0; + a22 = 1; + }else{ + a0 = 1; + a18 = 1; + a3 = 6; + a22 = 1; + a27 = 1; + a4 = 1; + a5 = 1; + } + return 21; + } else if((((a5==1)&&(!(a27==1)&&(!(a22==1)&&((((a15==1)&&((!(a0==1)&&(!(a6==1)&&((a20==1)&&(input==1))))&&(a4==1)))&&(a18==1))&&(a12==9)))))&&(a3==6))){ + a6 = 1; + a15 = 0; + a3 = 8; + a5 = 0; + return 26; + } else if(((((a3==5)&&(!(a6==1)&&((!(a4==1)&&(!(a0==1)&&(((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==6))&&(a20==1))&&(a15==1))))&&!(a5==1))))&&(a12==12))&&(a27==1))){ + if((a20==1)){ + a12 = 10; + a3 = 7; + a15 = 0; + a5 = 1; + a18 = 1; + a4 = 1; + a22 = 0; + }else{ + a12 = 10; + a27 = 0; + a18 = 1; + a4 = 1; + a3 = 7; + a22 = 0; + } + return 26; + } else if((((!(a4==1)&&(!(a15==1)&&((a12==8)&&((((a6==1)&&((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==4))&&(a3==5)))&&!(a27==1))&&!(a5==1)))))&&!(a0==1))&&(a20==1))){ + a18 = 0; + a6 = 0; + a3 = 7; + a27 = 1; + a22 = 1; + a5 = 1; + a12 = 9; + a4 = 1; + return -1; + } else if(((a5==1)&&(((!(a0==1)&&(((a27==1)&&(((a20==1)&&(((a4==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a3==8)))&&(a22==1)))&&(a12==10)))&&!(a15==1))&&(a6==1)))){ + a0 = 1; + a3 = 4; + a18 = 0; + a22 = 0; + return -1; + } else if((((a3==7)&&(!(a15==1)&&((!(a6==1)&&(((a4==1)&&((a12==11)&&((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==5))&&!(a27==1))))&&!(a0==1)))&&(a20==1))))&&(a5==1))){ + if((a6==1)){ + a3 = 6; + a6 = 1; + a27 = 1; + a0 = 1; + a18 = 0; + a22 = 0; + a15 = 1; + a4 = 0; + a12 = 8; + }else{ + a12 = 12; + a0 = 1; + a27 = 1; + a15 = 1; + a18 = 1; + a6 = 1; + a4 = 0; + a3 = 5; + a22 = 0; + } + return -1; + } else if(((a3==5)&&((a20==1)&&(!(a4==1)&&((!(a27==1)&&(!(a5==1)&&(!(a0==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==4))&&(a6==1))&&(a15==1)))))&&(a12==8)))))){ + a3 = 6; + a5 = 1; + a22 = 0; + a18 = 1; + a27 = 1; + a0 = 1; + return 21; + } else if((((a15==1)&&(!(a4==1)&&(((a3==6)&&((a5==1)&&(((a20==1)&&(((input==2)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a27==1)))&&!(a0==1))))&&!(a6==1))))&&(a12==12))){ + a18 = 1; + a22 = 1; + a6 = 1; + a4 = 1; + a12 = 8; + a3 = 4; + a0 = 1; + return -1; + } else if(((a3==4)&&((a0==1)&&((((a20==1)&&((a18==1)&&((a5==1)&&((!(a15==1)&&(((a6==1)&&(input==1))&&(a27==1)))&&(a12==10)))))&&(a22==1))&&(a4==1))))){ + a15 = 1; + a18 = 0; + return -1; + } else if((((a0==1)&&((a6==1)&&(((a22==1)&&((a3==8)&&((a12==12)&&((((a18==1)&&((input==5)&&!(a5==1)))&&(a20==1))&&(a4==1)))))&&!(a27==1))))&&!(a15==1))){ + a15 = 1; + a18 = 0; + a4 = 0; + a5 = 1; + a27 = 1; + a22 = 0; + a3 = 7; + return 21; + } else if((!(a4==1)&&((a15==1)&&((a20==1)&&(((((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6))&&!(a5==1))&&!(a6==1))&&(a3==4))&&(a12==8))&&!(a0==1))&&(a27==1)))))){ + a0 = 1; + a3 = 8; + a22 = 1; + a12 = 12; + a18 = 0; + a4 = 1; + return 21; + } else if((!(a5==1)&&((!(a6==1)&&(!(a15==1)&&(((a0==1)&&(!(a27==1)&&(((a20==1)&&((input==3)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))&&(a12==8))))&&(a3==7))))&&(a4==1)))){ + a15 = 1; + a3 = 4; + a5 = 1; + a27 = 1; + a18 = 1; + a22 = 1; + a6 = 1; + return -1; + } else if(((!(a4==1)&&((a6==1)&&((((((a15==1)&&((a20==1)&&((((a18==1)||!(a18==1))&&(input==5))&&(a12==11))))&&!(a0==1))&&!(a5==1))&&(a22==1))&&(a3==8))))&&(a27==1))){ + a0 = 1; + a3 = 4; + a15 = 0; + a18 = 0; + a12 = 10; + a6 = 0; + a22 = 0; + a5 = 1; + a4 = 1; + return 24; + } else if((((a22==1)&&((a20==1)&&((((a0==1)&&(((a5==1)&&((a15==1)&&((a4==1)&&((input==1)&&!(a18==1)))))&&!(a6==1)))&&(a3==4))&&!(a27==1))))&&(a12==8))){ + a27 = 1; + a4 = 0; + a22 = 0; + a3 = 6; + a12 = 12; + return 24; + } else if((!(a4==1)&&(!(a6==1)&&((a12==8)&&(!(a15==1)&&(((((((input==5)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&(a0==1))&&!(a27==1))&&(a3==4))&&(a20==1))&&!(a5==1))))))){ + a15 = 1; + a6 = 1; + a27 = 1; + a22 = 1; + a5 = 1; + a18 = 1; + a4 = 1; + return -1; + } else if((!(a0==1)&&((((a15==1)&&((!(a22==1)&&((!(a5==1)&&(!(a27==1)&&(((a12==8)&&(input==1))&&(a3==5))))&&!(a4==1)))&&!(a6==1)))&&(a20==1))&&!(a18==1)))){ + a4 = 1; + a0 = 1; + a22 = 1; + a12 = 12; + a15 = 0; + a5 = 1; + return -1; + } else if(((!(a6==1)&&((a15==1)&&(((a20==1)&&((a27==1)&&((!(a5==1)&&((input==2)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))))&&!(a0==1))))&&(a4==1))))&&(a12==9))){ + a4 = 0; + a3 = 7; + a22 = 0; + a15 = 0; + a12 = 10; + a18 = 1; + a0 = 1; + return -1; + } else if(((((a27==1)&&((!(a4==1)&&(!(a0==1)&&((a20==1)&&((a5==1)&&(((((a22==1)&&!(a18==1))&&(a3==7))||(((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a18==1)&&(a22==1)))))&&(input==5))))))&&!(a6==1)))&&(a15==1))&&(a12==8))){ + a18 = 1; + a22 = 0; + a0 = 1; + a15 = 0; + a3 = 7; + a12 = 10; + return 21; + } else if(((a6==1)&&(((a3==6)&&((((((a27==1)&&(!(a4==1)&&((a15==1)&&((a5==1)&&(input==6)))))&&!(a18==1))&&!(a22==1))&&!(a0==1))&&(a12==8)))&&(a20==1)))){ + a3 = 8; + a18 = 1; + a12 = 10; + a5 = 0; + a15 = 0; + a22 = 1; + return -1; + } else if((((a20==1)&&((a3==8)&&((((((((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a6==1))&&(a5==1))&&(a12==8))&&(a4==1))&&!(a0==1))&&(a27==1))))&&!(a15==1))){ + if((a0==1)){ + a18 = 0; + a12 = 10; + a6 = 1; + a22 = 0; + }else{ + a3 = 5; + a0 = 1; + a22 = 0; + a12 = 11; + a18 = 0; + } + return 21; + } else if((((a0==1)&&(((a3==4)&&(((!(a5==1)&&((a12==8)&&((a27==1)&&(((input==1)&&!(a22==1))&&(a4==1)))))&&!(a6==1))&&!(a15==1)))&&(a18==1)))&&(a20==1))){ + a0 = 0; + a6 = 1; + a22 = 1; + a4 = 0; + return 21; + } else if((((a0==1)&&(((a12==12)&&(((((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2))&&(a4==1))&&(a3==6))&&!(a5==1))&&(a6==1))&&(a15==1)))&&(a20==1)))&&!(a27==1))){ + a6 = 0; + a22 = 0; + a12 = 10; + a18 = 0; + a3 = 8; + a27 = 1; + return -1; + } else if((((a6==1)&&(!(a18==1)&&(((((a12==11)&&((!(a0==1)&&((!(a5==1)&&(input==2))&&(a27==1)))&&(a3==6)))&&(a20==1))&&(a15==1))&&(a4==1))))&&(a22==1))){ + a12 = 8; + a0 = 1; + a18 = 1; + a5 = 1; + a3 = 4; + return -1; + } else if((((!(a6==1)&&((!(a27==1)&&(((!(a0==1)&&(((((a18==1)||!(a18==1))&&(input==1))&&!(a22==1))&&(a12==9)))&&(a3==4))&&(a4==1)))&&!(a15==1)))&&!(a5==1))&&(a20==1))){ + a22 = 1; + a12 = 8; + a27 = 1; + a0 = 1; + a15 = 1; + a5 = 1; + a6 = 1; + a4 = 0; + a18 = 1; + a3 = 5; + return -1; + } else if(((a27==1)&&((a0==1)&&((a18==1)&&(((((!(a4==1)&&((a12==11)&&(((input==5)&&(a20==1))&&(a3==8))))&&(a22==1))&&!(a15==1))&&(a6==1))&&(a5==1)))))){ + a22 = 0; + a12 = 12; + a15 = 1; + a6 = 0; + a4 = 1; + a18 = 0; + return 24; + } else if(((((a3==8)&&(((a12==9)&&(((!(a4==1)&&(!(a0==1)&&((input==4)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))))&&!(a5==1))&&!(a27==1)))&&(a20==1)))&&!(a6==1))&&!(a15==1))){ + a27 = 1; + a18 = 1; + a22 = 0; + a0 = 1; + a15 = 1; + a6 = 1; + a12 = 8; + a3 = 6; + a5 = 1; + return 26; + } else if((((a12==11)&&(!(a22==1)&&((!(a6==1)&&((((((a3==8)&&((input==4)&&!(a0==1)))&&(a18==1))&&!(a27==1))&&(a20==1))&&!(a5==1)))&&!(a15==1))))&&(a4==1))){ + a4 = 0; + a5 = 1; + a12 = 9; + a3 = 5; + a22 = 1; + a18 = 0; + a6 = 1; + return -1; + } else if((!(a15==1)&&((((a27==1)&&(((a3==6)&&((a5==1)&&((a6==1)&&(((a0==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a12==9)))))&&(a22==1)))&&(a4==1))&&(a20==1)))){ + a12 = 8; + a15 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((a4==1)&&((a3==6)&&((((a15==1)&&(!(a0==1)&&(!(a18==1)&&((a22==1)&&((((input==5)&&(a20==1))&&!(a27==1))&&(a5==1))))))&&!(a6==1))&&(a12==9))))){ + a5 = 0; + a6 = 1; + a12 = 10; + a3 = 5; + return -1; + } else if((!(a27==1)&&((a6==1)&&((a20==1)&&((a5==1)&&((!(a15==1)&&(!(a0==1)&&((a22==1)&&((a12==10)&&(!(a4==1)&&(((a18==1)||!(a18==1))&&(input==4)))))))&&(a3==7))))))){ + a18 = 0; + a27 = 1; + a4 = 1; + a6 = 0; + a5 = 0; + a12 = 9; + a3 = 8; + return -1; + } else if(((a15==1)&&(((!(a6==1)&&((((!(a27==1)&&(((((a22==1)&&!(a18==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1)))))&&(input==2)))&&(a12==11))&&!(a0==1))&&(a20==1)))&&(a5==1))&&(a4==1)))){ + a12 = 8; + a22 = 1; + a4 = 0; + a3 = 7; + a0 = 1; + a6 = 1; + a18 = 1; + a27 = 1; + return -1; + } else if((((a4==1)&&(((!(a27==1)&&((((((a5==1)&&(!(a15==1)&&(input==4)))&&(a18==1))&&(a20==1))&&(a22==1))&&!(a6==1)))&&!(a0==1))&&(a3==7)))&&(a12==8))){ + if((a20==1)){ + a5 = 0; + a3 = 6; + }else{ + a0 = 1; + a18 = 0; + a22 = 0; + a3 = 6; + a27 = 1; + a15 = 1; + } + return -1; + } else if((((((((((((!(a4==1)&&((a15==1)&&(!(a18==1)&&!(a22==1))))&&(a3==8))&&!(a6==1))||((((!(a15==1)&&((a22==1)&&(a18==1)))&&(a4==1))&&(a3==4))&&(a6==1)))||((((!(a15==1)&&((a22==1)&&!(a18==1)))&&(a4==1))&&(a3==4))&&(a6==1)))&&(input==2))&&!(a5==1))&&(a20==1))&&(a12==11))&&(a0==1))&&!(a27==1))){ + a22 = 1; + a18 = 0; + a12 = 12; + a27 = 1; + a5 = 1; + a4 = 0; + a6 = 0; + a3 = 4; + a15 = 0; + return 26; + } else if((((a12==11)&&(((((!(a6==1)&&((((((!(a22==1)&&(a18==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==4))&&(a4==1)))&&(a15==1))&&(a5==1))&&!(a27==1))&&(a0==1)))&&(a20==1))){ + a3 = 4; + a12 = 8; + a6 = 1; + a4 = 0; + a18 = 1; + a22 = 1; + return -1; + } else if(((!(a15==1)&&(!(a18==1)&&((a27==1)&&((a3==5)&&(((!(a6==1)&&(((a4==1)&&((input==3)&&(a12==10)))&&(a0==1)))&&(a5==1))&&(a22==1))))))&&(a20==1))){ + a18 = 1; + a6 = 1; + a3 = 4; + a15 = 1; + a12 = 8; + return -1; + } else if(((a5==1)&&((((a3==8)&&(((a20==1)&&(!(a15==1)&&(!(a27==1)&&(((input==6)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a12==11)))))&&(a6==1)))&&(a0==1))&&(a4==1)))){ + if((a15==1)){ + a3 = 7; + a5 = 0; + a0 = 0; + a12 = 8; + a22 = 1; + a18 = 0; + a27 = 1; + }else{ + a3 = 6; + a18 = 0; + a22 = 0; + a27 = 1; + a15 = 1; + } + return -1; + } else if((((!(a4==1)&&((((((a18==1)&&((a15==1)&&((a5==1)&&((a3==8)&&(input==1)))))&&(a22==1))&&(a12==11))&&!(a6==1))&&(a20==1)))&&(a0==1))&&(a27==1))){ + a18 = 0; + a3 = 6; + a5 = 0; + a22 = 0; + a0 = 0; + a6 = 1; + a15 = 0; + return 24; + } else if((!(a27==1)&&((((a20==1)&&((input==3)&&(((((a4==1)&&((a15==1)&&((!(a18==1)&&(a22==1))&&!(a5==1))))&&(a3==4))&&(a6==1))||((((!(a4==1)&&(((a5==1)&&(!(a18==1)&&!(a22==1)))&&!(a15==1)))&&(a3==8))&&!(a6==1))||((a6==1)&&(((a4==1)&&((a15==1)&&(((a18==1)&&(a22==1))&&!(a5==1))))&&(a3==4)))))))&&(a12==10))&&!(a0==1)))){ + a22 = 0; + a15 = 0; + a12 = 9; + a4 = 0; + a5 = 1; + a18 = 0; + a3 = 8; + a27 = 1; + a6 = 1; + return -1; + } else if((((!(a4==1)&&((a20==1)&&((((((((a3==8)&&((a22==1)&&!(a18==1)))||(((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1)))))&&(input==6))&&(a0==1))&&!(a15==1))&&(a12==12))&&(a5==1))))&&(a6==1))&&!(a27==1))){ + a12 = 8; + a22 = 0; + a18 = 0; + a3 = 6; + return -1; + } else if((((a20==1)&&((a0==1)&&((a5==1)&&((((((a6==1)&&(!(a22==1)&&((input==5)&&((a18==1)||!(a18==1)))))&&!(a27==1))&&(a3==8))&&!(a4==1))&&!(a15==1)))))&&(a12==12))){ + a18 = 0; + a3 = 6; + a12 = 8; + a15 = 1; + a5 = 0; + a27 = 1; + a4 = 1; + return 21; + } else if(((a5==1)&&((a27==1)&&((((((a0==1)&&(((((a3==6)&&((a22==1)&&!(a18==1)))||(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6))))&&(input==2))&&!(a4==1)))&&(a12==11))&&!(a6==1))&&(a15==1))&&(a20==1))))){ + a6 = 1; + a4 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((a27==1)&&((a6==1)&&((((a15==1)&&((((a3==8)&&((!(a22==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&!(a0==1)))&&(a20==1))&&(a12==12)))&&!(a5==1))&&!(a4==1))))){ + if((a6==1)){ + a12 = 8; + a3 = 4; + a6 = 0; + a22 = 1; + a0 = 1; + a4 = 1; + a18 = 0; + a5 = 1; + }else{ + a0 = 1; + a3 = 6; + a12 = 8; + a6 = 0; + a5 = 1; + a4 = 1; + a18 = 1; + } + return -1; + } else if((((a27==1)&&((a5==1)&&(((((a20==1)&&((!(a15==1)&&((input==2)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))&&(a3==7)))&&!(a0==1))&&!(a6==1))&&!(a4==1))))&&(a12==9))){ + a15 = 1; + a22 = 1; + a18 = 0; + a6 = 1; + a5 = 0; + a3 = 5; + return 21; + } else if((((a15==1)&&((((((a4==1)&&((a20==1)&&(((input==4)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&(a3==4))))&&!(a0==1))&&(a12==9))&&(a27==1))&&!(a6==1)))&&!(a5==1))){ + a27 = 0; + a15 = 0; + a3 = 5; + a22 = 0; + a18 = 0; + a0 = 1; + a4 = 0; + return 21; + } else if((!(a5==1)&&((a27==1)&&((a12==10)&&(!(a15==1)&&((((a0==1)&&(((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==4))&&(a3==4))&&(a6==1)))&&(a20==1))&&(a4==1))))))){ + a18 = 1; + a15 = 1; + a22 = 1; + a5 = 1; + a12 = 8; + return -1; + } else if((((((!(a0==1)&&((((!(a6==1)&&(!(a27==1)&&(((a18==1)||!(a18==1))&&(input==1))))&&!(a5==1))&&(a12==11))&&!(a4==1)))&&!(a22==1))&&(a20==1))&&(a15==1))&&(a3==6))){ + if((a20==1)){ + a0 = 1; + a5 = 1; + a12 = 8; + a22 = 1; + a3 = 7; + a18 = 1; + a4 = 1; + a6 = 1; + a27 = 1; + }else{ + a5 = 1; + a12 = 10; + a15 = 0; + a18 = 1; + a0 = 1; + a22 = 1; + a3 = 8; + a6 = 1; + a4 = 1; + } + return 21; + } else if(((((!(a4==1)&&((a0==1)&&(((((input==2)&&(((a3==7)&&((a18==1)&&(a22==1)))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))))&&!(a15==1))&&!(a5==1))&&(a6==1))))&&(a12==9))&&(a20==1))&&(a27==1))){ + if((a27==1)){ + a12 = 11; + a5 = 1; + a22 = 1; + a0 = 0; + a3 = 5; + a18 = 1; + }else{ + a15 = 1; + a5 = 1; + a3 = 8; + a18 = 1; + a22 = 1; + a27 = 0; + } + return 21; + } else if(((a20==1)&&(!(a18==1)&&(((a12==10)&&((a5==1)&&(((a3==4)&&((a4==1)&&((((input==4)&&(a27==1))&&(a22==1))&&!(a15==1))))&&!(a6==1))))&&!(a0==1))))){ + a0 = 1; + a18 = 1; + a6 = 1; + a3 = 8; + a22 = 0; + return -1; + } else if((((a3==4)&&(((a20==1)&&(!(a15==1)&&((((((a27==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a0==1))&&(a22==1))&&(a5==1))&&(a12==8))))&&(a4==1)))&&(a6==1))){ + a15 = 1; + a18 = 1; + return -1; + } else if((((!(a22==1)&&((!(a6==1)&&((((((a27==1)&&((input==5)&&(a0==1)))&&(a18==1))&&(a20==1))&&!(a5==1))&&(a12==8)))&&(a3==5)))&&(a15==1))&&(a4==1))){ + if((a20==1)){ + a6 = 1; + a0 = 0; + a3 = 8; + }else{ + a12 = 9; + a22 = 1; + a3 = 7; + a15 = 0; + a4 = 0; + } + return 21; + } else if(((a5==1)&&((((a15==1)&&(!(a4==1)&&(((a12==8)&&((a20==1)&&((((a6==1)&&(input==3))&&!(a27==1))&&!(a18==1))))&&(a3==6))))&&!(a0==1))&&(a22==1)))){ + a0 = 1; + a3 = 5; + a27 = 1; + return -1; + } else if((((a5==1)&&(!(a0==1)&&(((((a27==1)&&(((input==2)&&(((a3==8)&&((a22==1)&&!(a18==1)))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==8)))))&&(a15==1)))&&(a6==1))&&(a12==9))&&(a4==1))))&&(a20==1))){ + a18 = 0; + a4 = 0; + a22 = 0; + a15 = 0; + a5 = 0; + a27 = 0; + a0 = 1; + a12 = 8; + a6 = 0; + a3 = 7; + return 26; + } else if((!(a27==1)&&((((((a20==1)&&(((a6==1)&&(!(a0==1)&&((input==3)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))))&&!(a15==1)))&&(a5==1))&&(a4==1))&&(a3==6))&&(a12==10)))){ + if((a6==1)){ + a0 = 1; + a18 = 1; + a15 = 1; + a22 = 0; + a3 = 5; + a12 = 8; + a27 = 1; + a4 = 0; + }else{ + a15 = 1; + a27 = 1; + a22 = 0; + a6 = 0; + a18 = 1; + } + return -1; + } else if(((a5==1)&&((a0==1)&&((a27==1)&&(((a20==1)&&((a12==12)&&((((input==1)&&(((a3==5)&&((a18==1)&&(a22==1)))||(((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a18==1)&&!(a22==1))))))&&!(a6==1))&&(a4==1))))&&!(a15==1)))))){ + a6 = 1; + a4 = 0; + a15 = 1; + a12 = 10; + a18 = 0; + a22 = 0; + a3 = 7; + return 26; + } else if((((!(a6==1)&&(!(a27==1)&&((a15==1)&&((a12==10)&&(((((a5==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a3==8))&&!(a22==1))&&!(a4==1))))))&&(a20==1))&&!(a0==1))){ + a15 = 0; + a12 = 8; + a3 = 5; + a18 = 0; + return 21; + } else if((((a20==1)&&((((a6==1)&&((((a0==1)&&((a12==8)&&((input==6)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&(a5==1))&&!(a4==1)))&&(a15==1))&&!(a27==1)))&&(a3==5))){ + if((a6==1)){ + a27 = 1; + a22 = 0; + a6 = 0; + a18 = 1; + a15 = 0; + a0 = 0; + a3 = 8; + }else{ + a18 = 1; + a22 = 1; + a5 = 0; + a4 = 1; + a6 = 0; + a3 = 4; + } + return 26; + } else if((((!(a6==1)&&((a4==1)&&((a12==10)&&((!(a27==1)&&((((a5==1)&&((input==2)&&((a18==1)||!(a18==1))))&&!(a0==1))&&(a22==1)))&&(a3==8)))))&&(a20==1))&&!(a15==1))){ + a12 = 9; + a5 = 0; + a3 = 5; + a27 = 1; + a4 = 0; + a18 = 1; + a6 = 1; + a22 = 0; + return -1; + } else if(((a4==1)&&(((a12==9)&&((!(a15==1)&&((((a27==1)&&((input==2)&&(((a3==7)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6))))))&&(a5==1))&&(a20==1)))&&!(a6==1)))&&(a0==1)))){ + a6 = 1; + a22 = 1; + a3 = 4; + a15 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((((a0==1)&&(((((a22==1)&&((a15==1)&&((((input==3)&&!(a4==1))&&(a12==9))&&!(a6==1))))&&(a3==4))&&!(a27==1))&&(a18==1)))&&!(a5==1))&&(a20==1))){ + a5 = 1; + a4 = 1; + a0 = 0; + a12 = 12; + a3 = 7; + a27 = 1; + return 21; + } else if(((!(a6==1)&&((((a0==1)&&((a3==7)&&((!(a4==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==6))&&(a20==1)))&&(a12==10))))&&(a15==1))&&(a5==1)))&&(a27==1))){ + a22 = 1; + a4 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + a6 = 1; + return -1; + } else if(((a12==9)&&((((((a0==1)&&(((a20==1)&&((a5==1)&&(((a3==7)&&(input==2))&&(a22==1))))&&!(a15==1)))&&(a4==1))&&(a6==1))&&!(a27==1))&&!(a18==1)))){ + a27 = 1; + a3 = 4; + a12 = 8; + a15 = 1; + a18 = 1; + return -1; + } else if(((!(a15==1)&&((((a20==1)&&((((a5==1)&&((input==6)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7)))))&&(a12==11))&&!(a4==1)))&&!(a27==1))&&!(a6==1)))&&(a0==1))){ + if((a18==1)){ + a0 = 0; + a3 = 5; + a27 = 1; + a5 = 0; + a18 = 1; + a15 = 1; + a6 = 1; + a22 = 0; + }else{ + a3 = 6; + a15 = 1; + a22 = 0; + a12 = 10; + a18 = 0; + } + return -1; + } else if(((a27==1)&&((a15==1)&&(!(a0==1)&&((((a4==1)&&(((a3==4)&&(((input==2)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&(a20==1)))&&(a12==8)))&&!(a6==1))&&!(a5==1)))))){ + a5 = 1; + a15 = 0; + a0 = 1; + a3 = 8; + a22 = 1; + a4 = 0; + a18 = 0; + a6 = 1; + a12 = 10; + return -1; + } else if((!(a0==1)&&((a27==1)&&(((a6==1)&&(((a12==8)&&((!(a4==1)&&((input==6)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))||((a3==5)&&(!(a18==1)&&(a22==1))))))&&(a20==1)))&&(a5==1)))&&(a15==1))))){ + a0 = 1; + a4 = 1; + a3 = 7; + a18 = 1; + a22 = 1; + a5 = 0; + a12 = 10; + a15 = 0; + a6 = 0; + a27 = 0; + return 21; + } else if((((((a12==9)&&((((input==5)&&((((a3==4)&&((!(a18==1)&&(a22==1))&&!(a4==1)))&&(a6==1))||((!(a6==1)&&(((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8)))||((a6==1)&&((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1))))))))&&(a20==1))&&!(a27==1)))&&(a5==1))&&!(a0==1))&&!(a15==1))){ + a15 = 1; + a12 = 8; + a4 = 1; + a0 = 1; + a18 = 0; + a22 = 0; + a3 = 4; + a27 = 1; + a6 = 0; + return -1; + } else if(((!(a27==1)&&(((a12==12)&&(!(a5==1)&&(!(a6==1)&&(((a15==1)&&((input==4)&&(((a3==7)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6))))))&&(a0==1)))))&&(a4==1)))&&(a20==1))){ + if((a5==1)){ + a6 = 1; + a18 = 0; + a0 = 0; + a5 = 1; + a3 = 8; + a22 = 0; + a15 = 0; + a12 = 10; + a27 = 1; + }else{ + a22 = 0; + a18 = 0; + a3 = 5; + a12 = 11; + a27 = 1; + a15 = 0; + a5 = 1; + } + return 21; + } else if(((((a6==1)&&(((((a3==4)&&(!(a27==1)&&((a5==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5)))))&&!(a0==1))&&(a12==8))&&(a15==1)))&&(a4==1))&&(a20==1))){ + a18 = 0; + a22 = 0; + a0 = 1; + a3 = 8; + a27 = 1; + return 21; + } else if(((((a20==1)&&((a6==1)&&((!(a15==1)&&((a3==8)&&(((((input==5)&&!(a4==1))&&!(a5==1))&&!(a22==1))&&!(a27==1))))&&(a0==1))))&&(a12==11))&&!(a18==1))){ + a4 = 1; + a5 = 1; + a12 = 9; + a3 = 7; + return -1; + } else if(((a27==1)&&(!(a5==1)&&((a20==1)&&((a6==1)&&((a12==12)&&((a4==1)&&(!(a15==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a0==1))&&(a3==8)))))))))){ + a15 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + return -1; + } else if(((a20==1)&&(!(a15==1)&&(((!(a4==1)&&((a27==1)&&((a12==11)&&(!(a6==1)&&(((a18==1)&&((a22==1)&&(input==3)))&&(a0==1))))))&&!(a5==1))&&(a3==5))))){ + a12 = 8; + a6 = 1; + a3 = 7; + a0 = 0; + a15 = 1; + a18 = 0; + return -1; + } else if((((((a3==7)&&(!(a27==1)&&((a4==1)&&(((a15==1)&&(((input==4)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&!(a5==1)))&&(a0==1)))))&&!(a6==1))&&(a20==1))&&(a12==10))){ + a18 = 0; + a27 = 1; + a3 = 8; + a4 = 0; + a22 = 0; + a5 = 1; + a0 = 0; + a12 = 12; + return 21; + } else if((((a15==1)&&((a12==10)&&(!(a4==1)&&((!(a5==1)&&(((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a20==1))&&(a27==1))&&(a0==1)))&&(a3==6)))))&&!(a6==1))){ + a4 = 1; + a22 = 1; + a3 = 4; + a6 = 1; + a12 = 8; + a18 = 1; + a5 = 1; + return -1; + } else if(((!(a15==1)&&((a20==1)&&((a4==1)&&(((((a12==11)&&(((input==6)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&!(a6==1)))&&(a5==1))&&!(a0==1))&&(a3==4)))))&&(a27==1))){ + a6 = 1; + a18 = 1; + a4 = 0; + a27 = 0; + a3 = 5; + a22 = 1; + a12 = 10; + a0 = 1; + return 26; + } else if((((a20==1)&&(!(a4==1)&&(!(a15==1)&&((a12==9)&&(((!(a6==1)&&((((a3==5)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4))))&&(input==6)))&&(a5==1))&&(a27==1))))))&&(a0==1))){ + a15 = 1; + a27 = 0; + a6 = 1; + a18 = 1; + a22 = 1; + a12 = 8; + a3 = 7; + return 26; + } else if((((a0==1)&&(((a20==1)&&(((!(a15==1)&&((((((a3==8)&&(!(a22==1)&&(a18==1)))&&(a6==1))||((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8))))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1)))&&(input==2)))&&(a12==10))&&!(a27==1)))&&(a4==1)))&&!(a5==1))){ + if((a27==1)){ + a27 = 1; + a18 = 0; + a3 = 8; + a22 = 1; + a12 = 9; + a0 = 0; + a5 = 1; + a6 = 0; + }else{ + a5 = 1; + a12 = 11; + a6 = 1; + a3 = 5; + a18 = 0; + a22 = 0; + a4 = 0; + } + return 21; + } else if(((!(a4==1)&&(!(a6==1)&&((a27==1)&&(!(a5==1)&&(((a15==1)&&(((a3==7)&&((input==4)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a0==1)))&&(a20==1))))))&&(a12==8))){ + a5 = 1; + a0 = 1; + a6 = 1; + a27 = 0; + a4 = 1; + a18 = 1; + a3 = 4; + a12 = 11; + a22 = 1; + return 21; + } else if(((((((((((((input==6)&&((a18==1)||!(a18==1)))&&(a6==1))&&(a3==4))&&!(a15==1))&&!(a22==1))&&!(a0==1))&&(a27==1))&&!(a5==1))&&(a20==1))&&(a12==12))&&(a4==1))){ + a12 = 8; + a15 = 1; + a18 = 0; + a22 = 1; + a0 = 1; + a3 = 6; + a4 = 0; + a5 = 1; + return -1; + } else if(((a12==8)&&((a4==1)&&(!(a6==1)&&(((((a27==1)&&(((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==4))&&!(a5==1))&&(a20==1)))&&(a3==8))&&(a15==1))&&!(a0==1)))))){ + a12 = 10; + a18 = 1; + a6 = 1; + a3 = 5; + a5 = 1; + a0 = 1; + a22 = 0; + return -1; + } else if((((a5==1)&&((a12==10)&&((!(a27==1)&&(((!(a18==1)&&((a20==1)&&(((input==1)&&!(a15==1))&&(a0==1))))&&(a3==5))&&(a22==1)))&&!(a6==1))))&&(a4==1))){ + a3 = 7; + a6 = 1; + a12 = 8; + a4 = 0; + a18 = 1; + return 26; + } else if(((((((a6==1)&&((a5==1)&&(((a4==1)&&(((a3==8)&&(!(a22==1)&&(input==1)))&&(a27==1)))&&!(a15==1))))&&(a12==9))&&!(a18==1))&&(a20==1))&&!(a0==1))){ + a12 = 8; + a18 = 1; + a6 = 0; + a0 = 1; + a3 = 6; + a5 = 0; + return 21; + } else if(((a20==1)&&((a15==1)&&((((a5==1)&&((a12==12)&&((input==4)&&((!(a6==1)&&(((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8)))||(((((a18==1)&&(a22==1))&&!(a4==1))&&(a3==4))&&(a6==1))))))&&!(a0==1))&&(a27==1))))){ + a0 = 1; + a4 = 1; + a6 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((((a3==6)&&(!(a5==1)&&((a6==1)&&(!(a15==1)&&(((a22==1)&&(!(a27==1)&&((a12==9)&&(((a18==1)&&(input==5))&&(a4==1)))))&&(a20==1))))))&&!(a0==1))){ + a15 = 1; + a0 = 1; + a5 = 1; + a3 = 8; + a18 = 0; + a12 = 8; + a27 = 1; + return 26; + } else if((((a20==1)&&(((a12==11)&&((!(a27==1)&&(!(a4==1)&&((a6==1)&&((input==1)&&(((a3==7)&&(!(a18==1)&&(a22==1)))||(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7))))))))&&(a5==1)))&&!(a0==1)))&&(a15==1))){ + a27 = 1; + a15 = 0; + a6 = 0; + a3 = 7; + a22 = 1; + a18 = 0; + a4 = 1; + a12 = 8; + return 21; + } else if(((a20==1)&&((a12==9)&&(((((((!(a27==1)&&(((a4==1)&&(input==3))&&(a3==4)))&&!(a18==1))&&(a0==1))&&!(a5==1))&&!(a22==1))&&!(a6==1))&&!(a15==1))))){ + a22 = 1; + a15 = 1; + a18 = 1; + a5 = 1; + a12 = 8; + a6 = 1; + a27 = 1; + return -1; + } else if((((a12==9)&&(!(a15==1)&&((a4==1)&&((a20==1)&&(((!(a5==1)&&((input==2)&&((((a22==1)&&(a18==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==7))))))&&(a0==1))&&(a6==1))))))&&!(a27==1))){ + a3 = 7; + a4 = 0; + a12 = 11; + a22 = 0; + a27 = 1; + a18 = 1; + a5 = 1; + a15 = 1; + return 21; + } else if((((a12==8)&&(((a15==1)&&((a3==7)&&((a4==1)&&(((!(a0==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==3)))&&(a27==1))&&!(a5==1)))))&&(a6==1)))&&(a20==1))){ + a18 = 1; + a27 = 0; + a0 = 1; + a3 = 6; + a12 = 11; + a22 = 0; + return 21; + } else if(((a15==1)&&((((a3==4)&&((a27==1)&&(!(a5==1)&&(((a12==8)&&((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==2))&&(a20==1)))&&!(a6==1)))))&&(a4==1))&&(a0==1)))){ + a4 = 0; + a22 = 1; + a3 = 8; + a12 = 9; + a15 = 0; + a6 = 1; + a18 = 1; + return 21; + } else if(((((a0==1)&&(((a4==1)&&((a12==8)&&((((a20==1)&&((input==6)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&!(a5==1))&&!(a6==1))))&&(a3==8)))&&(a27==1))&&!(a15==1))){ + a18 = 1; + a12 = 11; + a22 = 0; + a5 = 1; + a3 = 4; + a6 = 1; + return 24; + } else if((((a27==1)&&((a20==1)&&((a22==1)&&(!(a0==1)&&(((a4==1)&&(((((input==2)&&((a18==1)||!(a18==1)))&&(a12==8))&&(a3==5))&&!(a15==1)))&&(a6==1))))))&&!(a5==1))){ + a5 = 1; + a3 = 6; + a4 = 0; + a27 = 0; + a18 = 0; + a0 = 1; + return 26; + } else if((!(a27==1)&&(((a5==1)&&(((a0==1)&&(((a12==9)&&((a18==1)&&((a22==1)&&((!(a4==1)&&(input==2))&&(a3==6)))))&&(a15==1)))&&(a6==1)))&&(a20==1)))){ + a27 = 1; + a12 = 10; + a5 = 0; + a6 = 0; + return 21; + } else if((!(a4==1)&&((a12==8)&&((a15==1)&&((!(a6==1)&&((a3==6)&&(!(a5==1)&&(!(a27==1)&&(!(a0==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==6)))))))&&(a20==1)))))){ + a18 = 1; + a0 = 1; + a3 = 5; + a27 = 1; + a5 = 1; + a22 = 0; + a4 = 1; + return -1; + } else if((!(a27==1)&&(!(a15==1)&&(((a6==1)&&(!(a4==1)&&((!(a5==1)&&((a0==1)&&((a3==6)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4)))))&&(a20==1))))&&(a12==10))))){ + a27 = 1; + a3 = 8; + a5 = 1; + a22 = 0; + a6 = 0; + a18 = 1; + return -1; + } else if((((((a0==1)&&((((a18==1)&&(!(a4==1)&&((((input==2)&&(a3==6))&&!(a6==1))&&(a22==1))))&&(a15==1))&&(a12==12)))&&!(a27==1))&&!(a5==1))&&(a20==1))){ + a5 = 1; + a3 = 4; + a27 = 1; + a6 = 1; + a4 = 1; + a12 = 8; + return -1; + } else if(((((!(a27==1)&&((!(a4==1)&&((!(a0==1)&&((a5==1)&&((input==6)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))))&&(a20==1)))&&(a12==9)))&&!(a6==1))&&(a3==7))&&!(a15==1))){ + if((a5==1)){ + a3 = 5; + a5 = 0; + a12 = 12; + a22 = 1; + a6 = 1; + a18 = 0; + a0 = 1; + a4 = 1; + }else{ + a6 = 1; + a27 = 1; + a12 = 8; + a22 = 0; + a15 = 1; + a0 = 1; + a18 = 1; + a3 = 6; + } + return -1; + } else if(((a12==8)&&((!(a5==1)&&(!(a4==1)&&((!(a27==1)&&((!(a6==1)&&((input==5)&&((((!(a22==1)&&(a18==1))&&(a3==7))||((a3==7)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==8)))))&&(a20==1)))&&!(a0==1))))&&!(a15==1)))){ + a0 = 1; + a12 = 9; + a3 = 7; + a22 = 0; + a5 = 1; + a18 = 0; + a4 = 1; + a27 = 1; + return -1; + } else if(((((!(a15==1)&&((a12==12)&&(!(a5==1)&&(((((a27==1)&&((input==6)&&(a0==1)))&&(a20==1))&&(a4==1))&&(a18==1)))))&&(a6==1))&&(a3==8))&&(a22==1))){ + a4 = 0; + a3 = 6; + a27 = 0; + a15 = 1; + a12 = 9; + a18 = 0; + return 21; + } else if((((((a20==1)&&((a4==1)&&(!(a27==1)&&(((a3==7)&&(!(a6==1)&&((input==5)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))&&!(a0==1)))))&&!(a15==1))&&(a5==1))&&(a12==9))){ + if((a0==1)){ + a18 = 1; + a12 = 12; + a15 = 1; + a4 = 0; + a22 = 1; + a3 = 6; + a27 = 1; + }else{ + a3 = 6; + a27 = 1; + a0 = 1; + a18 = 1; + a15 = 1; + a12 = 8; + a22 = 1; + } + return -1; + } else if((!(a27==1)&&(((!(a6==1)&&(!(a22==1)&&(((a5==1)&&(((a0==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&(a3==5)))&&!(a15==1)))&&(a20==1))))&&!(a4==1))&&(a12==8)))){ + a27 = 1; + a3 = 4; + a18 = 1; + a15 = 1; + a22 = 1; + a4 = 1; + a6 = 1; + return -1; + } else if((((((a12==12)&&((a20==1)&&(((a27==1)&&((a6==1)&&(((!(a18==1)&&(input==2))&&!(a0==1))&&(a3==8))))&&(a22==1))))&&!(a5==1))&&(a15==1))&&(a4==1))){ + a0 = 1; + a22 = 0; + a12 = 8; + a5 = 1; + a3 = 4; + return -1; + } else if((!(a6==1)&&((a5==1)&&(!(a0==1)&&(((!(a4==1)&&(((a20==1)&&((a15==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==6))))&&(a27==1)))&&(a12==11))&&(a3==5)))))){ + a6 = 1; + a4 = 1; + a12 = 12; + a18 = 1; + a0 = 1; + a3 = 7; + a27 = 0; + a15 = 0; + a22 = 1; + return 26; + } else if((((((((((!(a22==1)&&(!(a0==1)&&((input==4)&&(a20==1))))&&!(a4==1))&&!(a5==1))&&(a18==1))&&(a12==9))&&(a3==6))&&!(a6==1))&&(a15==1))&&!(a27==1))){ + a5 = 1; + a0 = 1; + a18 = 0; + return -1; + } else if(((a12==10)&&((a27==1)&&((!(a5==1)&&(((!(a15==1)&&(((a6==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==4)))&&(a4==1)))&&(a3==8))&&(a20==1)))&&(a0==1))))){ + a3 = 6; + a18 = 0; + a22 = 1; + a27 = 0; + a6 = 0; + a5 = 1; + a4 = 0; + return 21; + } else if(((a20==1)&&((a3==5)&&(((((a5==1)&&(!(a18==1)&&((a15==1)&&(!(a6==1)&&((a12==11)&&((input==2)&&(a22==1)))))))&&!(a27==1))&&!(a0==1))&&(a4==1))))){ + a27 = 1; + a5 = 0; + a6 = 1; + a0 = 1; + a12 = 10; + return 24; + } else if((((((a3==6)&&((a4==1)&&(!(a5==1)&&((!(a18==1)&&((a0==1)&&(!(a6==1)&&((a20==1)&&(input==6)))))&&(a12==12)))))&&(a27==1))&&!(a22==1))&&(a15==1))){ + a18 = 1; + a3 = 4; + a27 = 0; + return 26; + } else if(((a4==1)&&((a20==1)&&((a0==1)&&((((a18==1)&&((a27==1)&&(!(a6==1)&&(((a3==5)&&((input==6)&&!(a15==1)))&&(a5==1)))))&&(a12==10))&&!(a22==1)))))){ + a15 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if(((!(a27==1)&&(((!(a4==1)&&(!(a15==1)&&((((((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1))||((((!(a22==1)&&(a18==1))&&(a3==8))&&(a6==1))||((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))))&&(input==4))&&(a20==1))))&&(a5==1))&&(a12==11)))&&!(a0==1))){ + a3 = 5; + a4 = 1; + a12 = 10; + a22 = 0; + a18 = 1; + a27 = 1; + a0 = 1; + a6 = 0; + return 26; + } else if((!(a5==1)&&((a12==10)&&((a4==1)&&(((a0==1)&&(((((input==6)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a18==1)&&(a22==1)))))&&(a20==1))&&(a27==1))&&!(a6==1)))&&(a15==1)))))){ + a15 = 0; + a18 = 0; + a6 = 1; + a5 = 1; + a3 = 5; + a22 = 1; + return -1; + } else if(((!(a15==1)&&((a12==8)&&(((a27==1)&&((!(a5==1)&&((a3==5)&&(!(a6==1)&&((((a18==1)||!(a18==1))&&(input==1))&&!(a22==1)))))&&(a20==1)))&&(a4==1))))&&(a0==1))){ + if((a12==11)){ + a12 = 10; + a5 = 1; + a6 = 1; + a22 = 1; + a0 = 0; + a3 = 8; + a18 = 0; + }else{ + a18 = 1; + a5 = 1; + a15 = 1; + a3 = 7; + a12 = 11; + } + return 26; + } else if((((((a0==1)&&((a12==12)&&(((((a20==1)&&((a6==1)&&((input==2)&&((a18==1)||!(a18==1)))))&&(a3==7))&&!(a5==1))&&!(a15==1))))&&!(a22==1))&&(a27==1))&&(a4==1))){ + a3 = 4; + a5 = 1; + a18 = 1; + a15 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if((!(a5==1)&&((a12==9)&&(((a27==1)&&((((((a4==1)&&((a20==1)&&((input==1)&&(a22==1))))&&!(a6==1))&&(a3==8))&&!(a0==1))&&!(a18==1)))&&!(a15==1))))){ + a5 = 1; + a4 = 0; + a0 = 1; + a3 = 5; + a6 = 1; + a22 = 0; + a15 = 1; + a12 = 11; + return -1; + } else if(((a18==1)&&(((((a27==1)&&(!(a0==1)&&((a4==1)&&(!(a15==1)&&(!(a5==1)&&((a20==1)&&((a3==6)&&(input==6))))))))&&(a12==11))&&!(a22==1))&&!(a6==1)))){ + a15 = 1; + a18 = 0; + a12 = 10; + a3 = 8; + a0 = 1; + return -1; + } else if(((a4==1)&&(((a5==1)&&((((a20==1)&&((((a12==10)&&((!(a6==1)&&(input==4))&&(a3==4)))&&!(a0==1))&&!(a15==1)))&&!(a27==1))&&(a22==1)))&&!(a18==1)))){ + a27 = 1; + a4 = 0; + a12 = 8; + a15 = 1; + a5 = 0; + a3 = 8; + return 21; + } else if((!(a5==1)&&((!(a4==1)&&(((a6==1)&&((a12==11)&&(((!(a22==1)&&(!(a0==1)&&((input==6)&&((a18==1)||!(a18==1)))))&&!(a27==1))&&(a15==1))))&&(a3==6)))&&(a20==1)))){ + a0 = 1; + a3 = 8; + a18 = 0; + a12 = 8; + return 21; + } else if((((a5==1)&&((a4==1)&&((a20==1)&&(((a12==10)&&((!(a0==1)&&((a6==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==3))))&&(a15==1)))&&(a3==7)))))&&(a27==1))){ + a0 = 1; + a4 = 0; + a27 = 0; + a18 = 0; + a22 = 0; + a12 = 9; + a3 = 4; + return 24; + } else if(((a20==1)&&(!(a0==1)&&(((input==2)&&(((((((((a22==1)&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==11))&&(a4==1))&&(a3==4))&&(a6==1))||((!(a6==1)&&((a3==8)&&(!(a4==1)&&((!(a15==1)&&(!(a5==1)&&(!(a22==1)&&(a18==1))))&&(a12==10)))))||(((a3==8)&&(((a12==10)&&(((!(a22==1)&&!(a18==1))&&!(a5==1))&&!(a15==1)))&&!(a4==1)))&&!(a6==1)))))&&!(a27==1))))){ + a15 = 0; + a6 = 0; + a12 = 11; + a3 = 7; + a18 = 1; + a22 = 1; + a4 = 1; + a5 = 1; + return -1; + } else if((((((a12==11)&&((a27==1)&&((!(a6==1)&&(((a5==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==1)))&&!(a15==1)))&&(a3==7))))&&(a4==1))&&(a20==1))&&!(a0==1))){ + a12 = 10; + a6 = 1; + a15 = 1; + a18 = 1; + a4 = 0; + a22 = 1; + a0 = 1; + return 26; + } else if(((a12==10)&&(((a4==1)&&((((!(a18==1)&&((a27==1)&&(((a0==1)&&((input==5)&&!(a5==1)))&&(a22==1))))&&(a3==6))&&(a20==1))&&(a15==1)))&&!(a6==1)))){ + a12 = 8; + a3 = 4; + a5 = 1; + a6 = 1; + a18 = 1; + return -1; + } else if(((!(a27==1)&&((a12==12)&&((((!(a4==1)&&((a5==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==8)))&&(input==2))))&&(a20==1))&&(a6==1))&&(a0==1))))&&!(a15==1))){ + a3 = 6; + a27 = 1; + a22 = 0; + a15 = 1; + a6 = 0; + a4 = 1; + a18 = 0; + return -1; + } else if(((a20==1)&&((!(a0==1)&&((((((a5==1)&&((input==6)&&((((a22==1)&&!(a18==1))&&(a3==7))||(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7))))))&&(a12==11))&&(a15==1))&&(a4==1))&&(a27==1)))&&!(a6==1)))){ + a18 = 1; + a22 = 1; + a6 = 1; + a3 = 4; + a0 = 1; + a12 = 8; + return -1; + } else if(((((a12==11)&&((a4==1)&&(!(a6==1)&&(!(a27==1)&&((!(a5==1)&&(!(a15==1)&&((input==2)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&(a0==1))))))&&(a20==1))&&(a3==6))){ + a6 = 1; + a12 = 10; + a18 = 1; + a3 = 7; + a22 = 0; + a15 = 1; + return -1; + } else if((!(a27==1)&&((a5==1)&&(((!(a4==1)&&((a12==10)&&(((a20==1)&&((((a3==5)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1)))))&&(input==4)))&&!(a15==1))))&&(a6==1))&&!(a0==1))))){ + a6 = 0; + a15 = 1; + a0 = 1; + a18 = 0; + a3 = 7; + a22 = 1; + a27 = 1; + return -1; + } else if((((a5==1)&&((a12==11)&&((!(a15==1)&&(((a6==1)&&((a27==1)&&((((a3==5)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4))))&&(input==5))))&&(a20==1)))&&(a0==1))))&&!(a4==1))){ + a3 = 7; + a4 = 1; + a22 = 0; + a27 = 0; + a18 = 0; + a6 = 0; + a15 = 1; + return 24; + } else if((((((a27==1)&&((a20==1)&&(!(a5==1)&&(!(a15==1)&&(((((a3==7)&&((a22==1)&&!(a18==1)))||(((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1)))))&&(input==4))&&(a6==1))))))&&(a12==11))&&(a4==1))&&(a0==1))){ + a18 = 1; + a22 = 1; + a3 = 4; + a5 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if(((a6==1)&&((a3==7)&&((((a5==1)&&(!(a18==1)&&(((!(a4==1)&&(((a20==1)&&(input==1))&&(a22==1)))&&(a12==8))&&!(a27==1))))&&(a0==1))&&(a15==1))))){ + a22 = 0; + a4 = 1; + a3 = 6; + a12 = 10; + a5 = 0; + return 21; + } else if(((!(a0==1)&&(!(a6==1)&&((((a12==10)&&(((a20==1)&&(!(a5==1)&&(((a4==1)&&(input==2))&&(a3==4))))&&(a15==1)))&&!(a18==1))&&(a27==1))))&&(a22==1))){ + a12 = 8; + a18 = 1; + a5 = 1; + a6 = 1; + a0 = 1; + return -1; + } else if((!(a0==1)&&((a3==7)&&(((!(a6==1)&&((a27==1)&&((!(a4==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==3))&&(a20==1)))&&!(a5==1))))&&(a15==1))&&(a12==11))))){ + a22 = 1; + a12 = 8; + a4 = 1; + a18 = 1; + a3 = 4; + a0 = 1; + a6 = 1; + a5 = 1; + return -1; + } else if(((((a5==1)&&(!(a6==1)&&(((a12==11)&&(!(a0==1)&&(((input==5)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5))))&&!(a15==1))))&&!(a4==1))))&&(a20==1))&&(a27==1))){ + a15 = 1; + a22 = 1; + a12 = 8; + a6 = 1; + a18 = 1; + a0 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if((((!(a27==1)&&((a22==1)&&((a20==1)&&(!(a15==1)&&((a4==1)&&(((((input==3)&&((a18==1)||!(a18==1)))&&(a3==5))&&(a5==1))&&(a0==1)))))))&&(a12==11))&&(a6==1))){ + a27 = 1; + a3 = 7; + a18 = 1; + a12 = 10; + return -1; + } else if(((((!(a27==1)&&((((a5==1)&&(((a6==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==6)))&&!(a4==1)))&&(a12==9))&&(a20==1)))&&(a0==1))&&!(a15==1))&&(a3==4))){ + a12 = 12; + a22 = 1; + a3 = 8; + a5 = 0; + a4 = 1; + a27 = 1; + a18 = 1; + return -1; + } else if(((!(a0==1)&&((!(a5==1)&&((a27==1)&&(((a3==7)&&(((a20==1)&&((a12==11)&&((a22==1)&&(input==2))))&&!(a6==1)))&&(a18==1))))&&(a15==1)))&&!(a4==1))){ + a12 = 9; + a27 = 0; + a0 = 1; + a6 = 1; + a4 = 1; + a15 = 0; + return -1; + } else if(((((((((((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==5))&&(a20==1))&&!(a5==1))&&(a12==11))&&!(a27==1))&&!(a0==1))&&(a6==1))&&(a4==1))&&(a15==1))){ + a27 = 1; + a12 = 8; + a22 = 0; + a0 = 1; + a4 = 0; + a18 = 0; + a3 = 6; + a5 = 1; + return -1; + } else if((!(a0==1)&&(!(a4==1)&&((a20==1)&&((((a15==1)&&((a5==1)&&((a12==9)&&((input==5)&&(((a3==7)&&(!(a18==1)&&(a22==1)))||(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7))))))))&&!(a6==1))&&!(a27==1)))))){ + a5 = 0; + a27 = 1; + a3 = 4; + a12 = 11; + a18 = 1; + a22 = 1; + return 24; + } else if((((a12==12)&&(((((!(a18==1)&&((((!(a27==1)&&(input==3))&&(a20==1))&&(a4==1))&&(a0==1)))&&!(a15==1))&&!(a22==1))&&!(a5==1))&&!(a6==1)))&&(a3==8))){ + a6 = 1; + a22 = 1; + a18 = 1; + a12 = 11; + a4 = 0; + a27 = 1; + a3 = 5; + return 21; + } else if((!(a27==1)&&(!(a6==1)&&((a20==1)&&((a0==1)&&(((a3==5)&&(((a12==11)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==6))&&!(a15==1)))&&!(a4==1)))&&(a5==1))))))){ + a12 = 8; + a3 = 4; + a4 = 1; + a27 = 1; + a22 = 1; + a6 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if(((((a3==4)&&(((((a4==1)&&(((((input==5)&&(a5==1))&&!(a18==1))&&(a20==1))&&!(a22==1)))&&(a12==12))&&(a27==1))&&(a6==1)))&&(a0==1))&&(a15==1))){ + if((a22==1)){ + a0 = 0; + a6 = 0; + a15 = 0; + a12 = 11; + a3 = 7; + a22 = 1; + a5 = 0; + }else{ + a15 = 0; + a6 = 0; + a12 = 11; + a4 = 0; + a22 = 1; + a18 = 1; + } + return -1; + } else if((((a6==1)&&((a20==1)&&(((a3==5)&&(((((a12==11)&&((a27==1)&&(!(a22==1)&&(input==2))))&&(a5==1))&&(a15==1))&&!(a18==1)))&&!(a0==1))))&&(a4==1))){ + if((a27==1)){ + a4 = 0; + a22 = 1; + a15 = 0; + a3 = 4; + a6 = 0; + }else{ + a6 = 0; + a3 = 7; + a0 = 1; + a18 = 1; + a12 = 10; + } + return 26; + } else if(((a27==1)&&(((a3==7)&&((!(a4==1)&&(!(a15==1)&&((!(a5==1)&&(((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a0==1)))&&(a20==1))))&&(a12==10)))&&(a6==1)))){ + a15 = 1; + a18 = 1; + a0 = 1; + a3 = 6; + a22 = 0; + a12 = 11; + a6 = 0; + a4 = 1; + return 26; + } else if((((a22==1)&&(((a3==7)&&((a20==1)&&((!(a5==1)&&((a6==1)&&((a12==10)&&((!(a18==1)&&(input==4))&&!(a27==1)))))&&!(a15==1))))&&(a4==1)))&&(a0==1))){ + a5 = 1; + a22 = 0; + a15 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + return 21; + } else if((((a6==1)&&(((!(a4==1)&&(((a3==6)&&((a5==1)&&((a15==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a12==10)))))&&!(a27==1)))&&(a20==1))&&(a0==1)))&&!(a22==1))){ + a3 = 4; + a18 = 0; + a27 = 1; + a5 = 0; + return -1; + } else if((!(a4==1)&&((((a0==1)&&((a20==1)&&(((!(a15==1)&&(!(a27==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==1))))&&(a12==12))&&!(a6==1))))&&!(a5==1))&&(a3==6)))){ + a15 = 1; + a22 = 1; + a5 = 1; + a18 = 1; + a3 = 4; + a4 = 1; + a6 = 1; + a12 = 8; + a27 = 1; + return -1; + } else if((!(a6==1)&&((!(a5==1)&&(((a3==4)&&(((a12==11)&&(!(a27==1)&&((a0==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a20==1)))))&&!(a4==1)))&&!(a15==1)))&&!(a22==1)))){ + a4 = 1; + a18 = 1; + a6 = 1; + a12 = 8; + a15 = 1; + a27 = 1; + a5 = 1; + a22 = 1; + return -1; + } else if((((a12==10)&&((a5==1)&&(((a20==1)&&(((a22==1)&&((a0==1)&&(!(a4==1)&&(!(a27==1)&&((input==3)&&(a18==1))))))&&!(a6==1)))&&!(a15==1))))&&(a3==8))){ + a27 = 1; + a22 = 0; + a3 = 5; + a5 = 0; + a0 = 0; + a12 = 8; + a6 = 1; + return 21; + } else if((((a27==1)&&(((a12==12)&&((((a20==1)&&((a4==1)&&((input==3)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))||((a3==6)&&((a22==1)&&!(a18==1)))))))&&(a5==1))&&(a0==1)))&&(a6==1)))&&(a15==1))){ + a5 = 0; + a18 = 0; + a22 = 1; + a15 = 0; + a12 = 11; + a3 = 8; + return 21; + } else if(((a15==1)&&((a12==12)&&(!(a5==1)&&(((a27==1)&&((((a20==1)&&((input==5)&&((((a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a22==1)&&!(a18==1)))))))&&!(a4==1))&&(a0==1)))&&!(a6==1)))))){ + a22 = 0; + a18 = 1; + a27 = 0; + a12 = 10; + a3 = 5; + a15 = 0; + return 21; + } else if((!(a22==1)&&(!(a6==1)&&(((a5==1)&&(((a15==1)&&((((a20==1)&&((((a18==1)||!(a18==1))&&(input==6))&&(a12==9)))&&!(a27==1))&&(a3==6)))&&(a0==1)))&&!(a4==1))))){ + a18 = 1; + a4 = 1; + a3 = 8; + a27 = 1; + a22 = 1; + a0 = 0; + a15 = 0; + return 26; + } else if((((!(a5==1)&&((a15==1)&&(((a12==8)&&(((a3==5)&&((!(a27==1)&&((input==3)&&((a18==1)||!(a18==1))))&&!(a22==1)))&&(a6==1)))&&!(a0==1))))&&(a4==1))&&(a20==1))){ + if((a3==4)){ + a12 = 11; + a3 = 7; + a22 = 1; + a5 = 1; + a27 = 1; + a18 = 1; + a4 = 0; + a0 = 1; + }else{ + a3 = 6; + a6 = 0; + a27 = 1; + a5 = 1; + a22 = 1; + a0 = 1; + a18 = 1; + } + return 21; + } else if((((a4==1)&&(!(a22==1)&&((((((((a0==1)&&((a12==12)&&(input==3)))&&(a20==1))&&!(a27==1))&&(a5==1))&&(a3==4))&&!(a6==1))&&!(a15==1))))&&(a18==1))){ + a27 = 1; + a3 = 7; + a4 = 0; + a12 = 10; + return -1; + } else if(((a5==1)&&(((a12==10)&&(((a4==1)&&((a22==1)&&((((!(a6==1)&&(!(a0==1)&&(input==1)))&&!(a18==1))&&(a15==1))&&(a3==5))))&&!(a27==1)))&&(a20==1)))){ + if((a4==1)){ + a3 = 4; + a22 = 0; + a12 = 8; + a18 = 1; + a27 = 1; + a4 = 0; + a0 = 1; + a5 = 0; + }else{ + a3 = 7; + a15 = 0; + a0 = 1; + a5 = 0; + a4 = 0; + a12 = 11; + a6 = 1; + } + return -1; + } else if(((a6==1)&&(!(a5==1)&&((a3==6)&&((a12==12)&&(((a15==1)&&(((a0==1)&&((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==2))&&(a27==1)))&&!(a4==1)))&&(a20==1))))))){ + if((a6==1)){ + a5 = 1; + a12 = 11; + a18 = 0; + a0 = 0; + a4 = 1; + a3 = 4; + a6 = 0; + a15 = 0; + a22 = 1; + }else{ + a18 = 1; + a22 = 1; + a27 = 0; + } + return 26; + } else if((!(a0==1)&&(((a12==9)&&(((a20==1)&&(((((((((a18==1)&&!(a22==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4)))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==4))&&(a15==1))&&!(a4==1))&&(a27==1)))&&(a6==1)))&&!(a5==1)))){ + a12 = 8; + a5 = 1; + a0 = 1; + a22 = 1; + a3 = 7; + a18 = 1; + return -1; + } else if((!(a4==1)&&(((a12==12)&&(!(a6==1)&&((a0==1)&&(((a18==1)&&((a27==1)&&(((!(a22==1)&&(input==4))&&(a20==1))&&(a3==5))))&&!(a15==1)))))&&(a5==1)))){ + if((a20==1)){ + a22 = 1; + a0 = 0; + a6 = 1; + a12 = 11; + a18 = 0; + a4 = 1; + }else{ + a18 = 0; + a27 = 0; + a3 = 6; + a6 = 1; + } + return 21; + } else if(((!(a4==1)&&((!(a5==1)&&((a12==9)&&(((!(a6==1)&&((a20==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==6))))&&(a27==1))&&!(a15==1))))&&(a3==7)))&&!(a0==1))){ + a15 = 1; + a22 = 1; + a6 = 1; + a18 = 1; + a0 = 1; + a3 = 6; + a27 = 0; + a4 = 1; + a5 = 1; + return 21; + } else if((!(a27==1)&&(((a20==1)&&(((a3==4)&&(!(a15==1)&&((((a5==1)&&((input==3)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a0==1))&&(a4==1))))&&(a6==1)))&&(a12==8)))){ + a6 = 0; + a12 = 10; + a18 = 1; + a4 = 0; + a22 = 0; + a27 = 1; + return 26; + } else if(((!(a6==1)&&((!(a4==1)&&((a20==1)&&((a12==10)&&((a27==1)&&((!(a5==1)&&((input==3)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a3==5))))))&&(a15==1)))&&!(a0==1))){ + a0 = 1; + a15 = 0; + a4 = 1; + a5 = 1; + a18 = 0; + a22 = 1; + a3 = 7; + return 21; + } else if((((!(a5==1)&&((!(a15==1)&&((((a4==1)&&((((input==6)&&(a6==1))&&(a18==1))&&(a0==1)))&&(a3==5))&&(a20==1)))&&(a27==1)))&&!(a22==1))&&(a12==8))){ + a22 = 1; + a3 = 4; + a5 = 1; + a15 = 1; + return -1; + } else if((((a0==1)&&((((a4==1)&&((((a15==1)&&(!(a6==1)&&(((a12==10)&&(input==1))&&!(a18==1))))&&(a27==1))&&(a5==1)))&&(a3==4))&&!(a22==1)))&&(a20==1))){ + a18 = 1; + a3 = 7; + a6 = 1; + a22 = 1; + return 21; + } else if(((a3==8)&&((a5==1)&&((a12==9)&&((a6==1)&&(((a27==1)&&(((a20==1)&&(((input==5)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&!(a15==1)))&&(a4==1)))&&!(a0==1))))))){ + a3 = 5; + a12 = 11; + a0 = 1; + a22 = 1; + a18 = 0; + return 21; + } else if(((((((a0==1)&&((a27==1)&&(!(a6==1)&&((a4==1)&&(((input==4)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a12==12))))))&&(a3==8))&&(a15==1))&&!(a5==1))&&(a20==1))){ + a12 = 11; + a15 = 0; + a22 = 0; + a18 = 1; + a3 = 6; + a6 = 1; + return -1; + } else if(((a12==8)&&((!(a27==1)&&((a3==7)&&((a20==1)&&(((a6==1)&&(!(a18==1)&&((a22==1)&&(((input==6)&&(a5==1))&&(a15==1)))))&&(a4==1)))))&&!(a0==1)))){ + a3 = 8; + a22 = 0; + a27 = 1; + a0 = 1; + return -1; + } return calculate_output48(input); + } + + int calculate_output48(int input) { + if(((a5==1)&&(!(a15==1)&&(((a12==12)&&(((a4==1)&&((((input==6)&&(((a3==5)&&(!(a18==1)&&(a22==1)))||(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))))&&(a0==1))&&!(a27==1)))&&(a20==1)))&&!(a6==1))))){ + a12 = 11; + a4 = 0; + a3 = 8; + a22 = 0; + a6 = 1; + a18 = 1; + return -1; + } else if((!(a27==1)&&(((!(a5==1)&&((a4==1)&&((a0==1)&&(!(a6==1)&&(((input==5)&&((((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==7))))&&(a20==1))))))&&(a15==1))&&(a12==12)))){ + a18 = 0; + a27 = 1; + a5 = 1; + a4 = 0; + a3 = 4; + a12 = 11; + a22 = 0; + return 21; + } else if(((((a0==1)&&(((((((((!(a18==1)&&(a22==1))&&(a3==7))||(((!(a18==1)&&!(a22==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7))))&&(input==6))&&!(a15==1))&&!(a6==1))&&(a27==1))&&(a5==1))&&!(a4==1)))&&(a12==11))&&(a20==1))){ + a18 = 1; + a6 = 1; + a4 = 1; + a12 = 8; + a22 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if(((a4==1)&&(((((((a12==9)&&(((input==5)&&((((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==5))))&&!(a5==1)))&&(a6==1))&&!(a15==1))&&(a27==1))&&!(a0==1))&&(a20==1)))){ + if((a18==1)){ + a4 = 0; + a5 = 1; + a12 = 11; + a18 = 0; + a3 = 7; + a15 = 1; + a22 = 0; + }else{ + a6 = 0; + a15 = 1; + a3 = 7; + a22 = 0; + a18 = 0; + a0 = 1; + a4 = 0; + a5 = 1; + } + return 24; + } else if(((a12==10)&&((!(a27==1)&&(!(a18==1)&&((((((!(a0==1)&&((input==4)&&!(a4==1)))&&!(a15==1))&&!(a5==1))&&!(a22==1))&&(a20==1))&&(a6==1))))&&(a3==8)))){ + a22 = 1; + a3 = 5; + a6 = 0; + a5 = 1; + a0 = 1; + return 21; + } else if(((a5==1)&&(!(a27==1)&&((a12==11)&&(((a6==1)&&(((a4==1)&&((a20==1)&&((a3==6)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==2)))))&&(a0==1)))&&!(a15==1)))))){ + a15 = 1; + a27 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((a27==1)&&((!(a5==1)&&(((a3==6)&&(((a20==1)&&(((((a22==1)&&(input==6))&&(a12==10))&&(a0==1))&&(a15==1)))&&!(a6==1)))&&(a18==1)))&&!(a4==1)))){ + if((a15==1)){ + a4 = 1; + a3 = 5; + a15 = 0; + a0 = 0; + }else{ + a27 = 0; + a5 = 1; + a15 = 0; + a18 = 0; + a22 = 0; + a4 = 1; + } + return 21; + } else if(((((a0==1)&&(!(a27==1)&&(!(a15==1)&&(((a5==1)&&((a4==1)&&((a20==1)&&((input==6)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))))&&(a12==10)))))&&(a3==8))&&!(a6==1))){ + a27 = 1; + a6 = 1; + a22 = 1; + a18 = 0; + a15 = 1; + a3 = 6; + return -1; + } else if(((a5==1)&&(((((((a6==1)&&((a4==1)&&(((((a22==1)&&!(a18==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1)))))&&(input==4))))&&(a20==1))&&!(a0==1))&&(a27==1))&&(a12==8))&&!(a15==1)))){ + a18 = 0; + a3 = 4; + a22 = 1; + a6 = 0; + a27 = 0; + a0 = 1; + return 24; + } else if((((a12==12)&&((!(a5==1)&&((!(a15==1)&&((a20==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==3))&&(a27==1))))&&!(a0==1)))&&!(a6==1)))&&(a4==1))){ + a0 = 1; + a3 = 8; + a22 = 0; + a15 = 1; + a12 = 8; + a5 = 1; + a18 = 0; + return -1; + } else if((((((a12==9)&&(!(a6==1)&&(((a20==1)&&(((input==1)&&(((a3==5)&&((a22==1)&&(a18==1)))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a22==1)&&!(a18==1))))))&&(a5==1)))&&(a15==1))))&&!(a4==1))&&(a27==1))&&(a0==1))){ + a15 = 0; + a22 = 0; + a6 = 1; + a4 = 1; + a3 = 7; + a18 = 1; + a12 = 10; + return 24; + } else if((((a3==7)&&((a12==10)&&(((!(a0==1)&&((a4==1)&&((((input==3)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&(a6==1))&&(a20==1))))&&(a5==1))&&!(a27==1))))&&!(a15==1))){ + a22 = 1; + a15 = 1; + a0 = 1; + a12 = 8; + a27 = 1; + a18 = 1; + return 21; + } else if(((((((a0==1)&&((a20==1)&&((a3==6)&&((a4==1)&&(!(a5==1)&&((a18==1)&&((input==4)&&!(a22==1))))))))&&(a6==1))&&(a12==11))&&(a27==1))&&!(a15==1))){ + a5 = 1; + a15 = 1; + a18 = 0; + a3 = 7; + a6 = 0; + a12 = 10; + return -1; + } else if((((((!(a15==1)&&(((a20==1)&&(((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==2))&&(a12==9))&&(a0==1)))&&(a3==7)))&&(a4==1))&&!(a27==1))&&(a5==1))&&!(a6==1))){ + a5 = 0; + a3 = 8; + a18 = 0; + a27 = 1; + a22 = 1; + a0 = 0; + return 21; + } else if(((a27==1)&&(((a20==1)&&((a15==1)&&((((!(a0==1)&&((a5==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a6==1))))&&(a22==1))&&(a3==4))&&(a12==11))))&&(a4==1)))){ + a5 = 0; + a12 = 12; + a0 = 1; + a18 = 1; + a3 = 5; + a6 = 0; + return 26; + } else if(((((a12==11)&&(!(a4==1)&&((((((!(a5==1)&&((input==4)&&(a20==1)))&&(a6==1))&&(a18==1))&&(a3==6))&&!(a0==1))&&(a15==1))))&&(a22==1))&&!(a27==1))){ + a6 = 0; + a15 = 0; + a0 = 1; + return 21; + } else if(((!(a4==1)&&(!(a27==1)&&(((a6==1)&&((a12==10)&&((((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==4))&&(a3==8))&&!(a15==1))&&(a20==1))))&&(a5==1))))&&!(a0==1))){ + if((a0==1)){ + a22 = 0; + a18 = 1; + a15 = 1; + a3 = 7; + a12 = 9; + }else{ + a15 = 1; + a18 = 1; + a22 = 0; + a5 = 0; + a6 = 0; + a3 = 7; + a4 = 1; + a0 = 1; + } + return 21; + } else if((!(a15==1)&&(((!(a5==1)&&((a4==1)&&((((a6==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))||((a3==8)&&(!(a18==1)&&(a22==1))))&&(input==6)))&&(a0==1))&&(a27==1))))&&(a12==11))&&(a20==1)))){ + a4 = 0; + a18 = 1; + a12 = 10; + a22 = 0; + a3 = 4; + a5 = 1; + return -1; + } else if(((a12==12)&&(!(a6==1)&&((a3==8)&&(!(a15==1)&&((((a20==1)&&(((a4==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==5)))&&(a5==1)))&&(a0==1))&&(a27==1))))))){ + a15 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + a6 = 1; + return -1; + } else if(((a12==8)&&((((a18==1)&&((a3==6)&&((((a0==1)&&(!(a5==1)&&((a4==1)&&((a15==1)&&(input==5)))))&&(a6==1))&&!(a22==1))))&&(a20==1))&&!(a27==1)))){ + a12 = 12; + a27 = 1; + a3 = 8; + a15 = 0; + a18 = 0; + a22 = 1; + return -1; + } else if((((a6==1)&&((a22==1)&&((((((((((a18==1)||!(a18==1))&&(input==2))&&!(a0==1))&&(a20==1))&&!(a4==1))&&(a12==8))&&!(a15==1))&&(a5==1))&&(a3==6))))&&!(a27==1))){ + a6 = 0; + a15 = 1; + a4 = 1; + a18 = 1; + a27 = 1; + a0 = 1; + return -1; + } else if(((a12==11)&&((!(a4==1)&&(!(a6==1)&&((!(a15==1)&&(((a20==1)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==4)))&&(a0==1)))&&(a27==1))))&&!(a5==1)))){ + a3 = 8; + a12 = 10; + a22 = 1; + a18 = 0; + a5 = 1; + return -1; + } else if((((((a12==12)&&((a15==1)&&((a5==1)&&(!(a6==1)&&(!(a4==1)&&((input==5)&&(((!(a18==1)&&(a22==1))&&(a3==8))||(((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1)))))))))))&&(a0==1))&&(a20==1))&&(a27==1))){ + a12 = 10; + a22 = 1; + a18 = 1; + a6 = 1; + a3 = 7; + return -1; + } else if((((a0==1)&&((a27==1)&&((a12==12)&&((a6==1)&&((a20==1)&&(((a18==1)&&((!(a22==1)&&((input==1)&&!(a15==1)))&&(a5==1)))&&!(a4==1)))))))&&(a3==5))){ + a18 = 0; + a3 = 7; + a15 = 1; + a4 = 1; + return 21; + } else if(((a3==6)&&(!(a27==1)&&(((a20==1)&&(!(a15==1)&&((((((input==2)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&!(a6==1))&&!(a0==1))&&(a4==1))&&!(a5==1))))&&(a12==11))))){ + a5 = 1; + a15 = 1; + a27 = 1; + a18 = 0; + a4 = 0; + a0 = 1; + a12 = 10; + a22 = 0; + return -1; + } else if(((a3==4)&&((a4==1)&&((((a5==1)&&(!(a0==1)&&(!(a27==1)&&(((a15==1)&&((input==1)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a12==10)))))&&!(a6==1))&&(a20==1))))){ + a6 = 1; + a18 = 1; + a27 = 1; + a4 = 0; + a0 = 1; + a22 = 0; + a12 = 8; + a3 = 5; + return -1; + } else if(((a22==1)&&(((!(a18==1)&&(((a0==1)&&(((!(a15==1)&&((!(a4==1)&&(input==3))&&(a27==1)))&&(a6==1))&&(a12==9)))&&(a3==5)))&&!(a5==1))&&(a20==1)))){ + a5 = 1; + a3 = 4; + a4 = 1; + a12 = 8; + a18 = 1; + a15 = 1; + return -1; + } else if((((a5==1)&&(((((a12==12)&&(((input==6)&&((((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4)))))&&!(a0==1)))&&(a20==1))&&!(a15==1))&&(a27==1)))&&(a4==1))){ + if((a6==1)){ + a3 = 5; + a4 = 0; + a18 = 1; + a22 = 1; + a15 = 1; + a12 = 8; + a0 = 1; + a6 = 1; + }else{ + a15 = 1; + a6 = 0; + a22 = 0; + a12 = 8; + a0 = 1; + a3 = 4; + a18 = 0; + } + return -1; + } else if((!(a27==1)&&(((a6==1)&&(((a15==1)&&(((!(a4==1)&&((a0==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a3==7))))&&(a20==1))&&(a12==12)))&&!(a22==1)))&&(a5==1)))){ + a18 = 0; + a27 = 1; + a12 = 10; + a3 = 6; + a5 = 0; + a22 = 1; + a15 = 0; + a0 = 0; + return -1; + } else if((!(a6==1)&&((a5==1)&&(!(a27==1)&&(!(a0==1)&&((((a20==1)&&((a12==10)&&((a3==4)&&((input==1)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))&&!(a15==1))&&!(a4==1))))))){ + if((a5==1)){ + a22 = 1; + a0 = 1; + a3 = 5; + a27 = 1; + a12 = 9; + a18 = 0; + }else{ + a15 = 1; + a12 = 12; + a6 = 1; + a22 = 0; + a0 = 1; + a18 = 1; + a3 = 7; + } + return 26; + } else if(((a20==1)&&((a0==1)&&((!(a27==1)&&((a5==1)&&(((((a3==8)&&(!(a4==1)&&((!(a18==1)&&!(a22==1))&&(a15==1))))&&!(a6==1))||((((!(a15==1)&&((a22==1)&&(a18==1)))&&(a4==1))&&(a3==4))&&(a6==1)))&&(input==4))))&&(a12==8))))){ + if((a12==11)){ + a6 = 1; + a22 = 0; + a4 = 0; + a5 = 0; + a3 = 8; + a18 = 1; + a15 = 0; + a12 = 12; + }else{ + a22 = 1; + a5 = 0; + a3 = 5; + a15 = 0; + a6 = 0; + a4 = 1; + a18 = 1; + } + return 21; + } else if(((a12==11)&&((a6==1)&&((a5==1)&&(((((((((a22==1)&&(input==2))&&(a0==1))&&!(a15==1))&&(a20==1))&&(a3==5))&&(a4==1))&&!(a18==1))&&(a27==1)))))){ + a3 = 7; + a15 = 1; + return -1; + } else if(((a6==1)&&(((a3==8)&&(!(a4==1)&&((((a20==1)&&(!(a5==1)&&((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==5))&&(a12==10))))&&!(a0==1))&&(a27==1))))&&!(a15==1)))){ + a3 = 4; + a15 = 1; + a0 = 1; + a4 = 1; + a18 = 1; + a5 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if((!(a0==1)&&(((((a15==1)&&((!(a18==1)&&((a22==1)&&(((a3==5)&&(!(a5==1)&&(input==6)))&&!(a27==1))))&&(a12==9)))&&!(a6==1))&&(a20==1))&&(a4==1)))){ + if((a6==1)){ + a4 = 0; + a5 = 1; + a0 = 1; + a3 = 7; + a18 = 1; + a15 = 0; + }else{ + a22 = 0; + a3 = 4; + a5 = 1; + a12 = 8; + a0 = 1; + } + return -1; + } else if((!(a27==1)&&((!(a18==1)&&((a0==1)&&((((a4==1)&&((a3==7)&&((a5==1)&&(!(a6==1)&&((input==6)&&(a22==1))))))&&(a12==10))&&(a20==1))))&&!(a15==1)))){ + a12 = 8; + a15 = 1; + a27 = 1; + a6 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((!(a27==1)&&(!(a0==1)&&((((a20==1)&&(!(a5==1)&&(((a3==5)&&((a6==1)&&((input==4)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&(a12==11))))&&!(a15==1))&&!(a4==1))))){ + a12 = 8; + a3 = 8; + a22 = 1; + a18 = 1; + a0 = 1; + a27 = 1; + a5 = 1; + a4 = 1; + a15 = 1; + return 26; + } else if(((a4==1)&&(!(a27==1)&&(((a5==1)&&((a20==1)&&((!(a0==1)&&((!(a6==1)&&(!(a22==1)&&(((a18==1)||!(a18==1))&&(input==5))))&&(a12==8)))&&(a3==8))))&&(a15==1))))){ + a6 = 1; + a18 = 0; + a3 = 5; + a0 = 1; + a27 = 1; + a22 = 1; + a4 = 0; + return -1; + } else if((!(a5==1)&&((((((!(a0==1)&&((a4==1)&&((!(a15==1)&&(!(a6==1)&&(input==4)))&&(a3==4))))&&!(a18==1))&&!(a22==1))&&(a20==1))&&(a27==1))&&(a12==8)))){ + a0 = 1; + a12 = 11; + a6 = 1; + a22 = 1; + a3 = 6; + a15 = 1; + a5 = 1; + a18 = 1; + return 21; + } else if((!(a0==1)&&((((a5==1)&&((a20==1)&&(!(a6==1)&&(((a27==1)&&((input==3)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1))))))&&!(a15==1)))))&&(a4==1))&&(a12==9)))){ + a22 = 1; + a0 = 1; + a3 = 4; + a15 = 1; + a18 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if(((!(a5==1)&&((((a4==1)&&(((!(a0==1)&&((a20==1)&&((a12==10)&&((input==4)&&((a18==1)||!(a18==1))))))&&(a15==1))&&!(a6==1)))&&(a3==8))&&(a22==1)))&&(a27==1))){ + a0 = 1; + a5 = 1; + a15 = 0; + a18 = 0; + a12 = 11; + a22 = 0; + return -1; + } else if((((!(a4==1)&&(((((((a3==4)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==1)))&&!(a15==1))&&!(a5==1))&&(a12==8))&&!(a27==1))&&(a6==1)))&&(a20==1))&&!(a0==1))){ + a18 = 0; + a4 = 1; + a0 = 1; + a3 = 7; + a15 = 1; + a27 = 1; + a5 = 1; + a6 = 0; + a22 = 1; + return -1; + } else if(((!(a27==1)&&((!(a6==1)&&(((a15==1)&&(((a5==1)&&((input==6)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8)))||((a3==8)&&((a22==1)&&!(a18==1))))))&&(a20==1)))&&(a0==1)))&&!(a4==1)))&&(a12==11))){ + a15 = 0; + a18 = 1; + a22 = 0; + a4 = 1; + a5 = 0; + a3 = 5; + a12 = 9; + a27 = 1; + a0 = 0; + return -1; + } else if(((a4==1)&&(((a12==8)&&((a15==1)&&(((!(a27==1)&&(((((a3==7)&&(!(a18==1)&&(a22==1)))||(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7))))&&(input==4))&&(a20==1)))&&(a6==1))&&!(a5==1))))&&!(a0==1)))){ + a18 = 0; + a0 = 1; + a3 = 5; + a22 = 0; + a5 = 1; + a27 = 1; + return 24; + } else if(((((a12==9)&&(!(a0==1)&&((a5==1)&&(!(a15==1)&&(((((input==4)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&!(a27==1))&&(a3==7))&&(a20==1))))))&&!(a6==1))&&(a4==1))){ + if((a5==1)){ + a0 = 1; + a12 = 8; + a3 = 4; + a15 = 1; + a22 = 0; + a18 = 1; + a27 = 1; + a4 = 0; + a6 = 1; + }else{ + a22 = 1; + a5 = 0; + a15 = 1; + a12 = 11; + a27 = 1; + a18 = 1; + a6 = 1; + } + return 26; + } else if(((((a20==1)&&((!(a0==1)&&(!(a22==1)&&(!(a6==1)&&(!(a15==1)&&((!(a18==1)&&((a3==4)&&(input==5)))&&!(a5==1))))))&&(a12==10)))&&!(a4==1))&&!(a27==1))){ + a3 = 5; + a22 = 1; + a6 = 1; + a15 = 1; + a18 = 1; + a12 = 11; + return -1; + } else if(((!(a4==1)&&((a15==1)&&((a27==1)&&(((((!(a5==1)&&((input==6)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))&&(a0==1))&&!(a6==1))&&(a20==1))&&(a12==12)))))&&(a3==8))){ + a15 = 0; + a22 = 1; + a18 = 0; + a4 = 1; + a12 = 11; + a0 = 0; + a3 = 7; + return 26; + } else if((((((!(a27==1)&&((((a12==8)&&((!(a18==1)&&((input==2)&&(a3==4)))&&!(a6==1)))&&!(a5==1))&&!(a0==1)))&&(a4==1))&&(a20==1))&&(a15==1))&&!(a22==1))){ + a5 = 1; + a27 = 1; + a18 = 1; + a4 = 0; + a22 = 1; + a0 = 1; + return -1; + } else if((((!(a18==1)&&(((a4==1)&&((((a3==6)&&(!(a22==1)&&((!(a6==1)&&(input==2))&&!(a0==1))))&&(a12==12))&&!(a15==1)))&&(a27==1)))&&(a20==1))&&(a5==1))){ + a3 = 8; + a4 = 0; + a18 = 1; + a5 = 0; + a22 = 1; + a12 = 10; + a0 = 1; + a6 = 1; + a15 = 1; + return -1; + } else if((!(a5==1)&&(((((a12==12)&&((((!(a4==1)&&((!(a6==1)&&(input==2))&&(a3==5)))&&(a0==1))&&!(a15==1))&&(a18==1)))&&!(a22==1))&&(a20==1))&&(a27==1)))){ + a4 = 1; + a15 = 1; + a3 = 6; + return 21; + } else if(((a5==1)&&((a3==8)&&((a12==10)&&((a27==1)&&(!(a6==1)&&(!(a0==1)&&(((!(a4==1)&&((input==5)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))&&(a20==1))&&(a15==1))))))))){ + a22 = 1; + a18 = 0; + a0 = 1; + a27 = 0; + a3 = 7; + a5 = 0; + return 21; + } else if(((!(a18==1)&&((!(a6==1)&&((a3==5)&&(((((a0==1)&&(((input==3)&&(a4==1))&&(a12==11)))&&!(a22==1))&&(a15==1))&&!(a5==1))))&&(a20==1)))&&!(a27==1))){ + a6 = 1; + a15 = 0; + a12 = 8; + a3 = 6; + a18 = 1; + return -1; + } else if(((a12==9)&&(((!(a15==1)&&((a27==1)&&((((a3==6)&&(((((a18==1)||!(a18==1))&&(input==6))&&!(a0==1))&&!(a6==1)))&&(a20==1))&&!(a4==1))))&&!(a5==1))&&!(a22==1)))){ + a4 = 1; + a15 = 1; + a18 = 1; + a6 = 1; + a5 = 1; + a22 = 1; + a3 = 4; + a0 = 1; + a12 = 8; + return -1; + } else if(((!(a4==1)&&(((a15==1)&&(!(a5==1)&&((a12==10)&&(((((((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==3))&&!(a27==1))&&(a20==1)))))&&!(a0==1)))&&(a6==1))){ + a22 = 1; + a12 = 8; + a5 = 1; + a18 = 1; + a27 = 1; + a0 = 1; + a3 = 6; + return 26; + } else if((((a27==1)&&((((!(a18==1)&&((((a3==5)&&(!(a6==1)&&((a12==12)&&(input==5))))&&!(a4==1))&&(a5==1)))&&!(a22==1))&&!(a15==1))&&(a0==1)))&&(a20==1))){ + a5 = 0; + a12 = 10; + return -1; + } else if(((a12==9)&&(((a0==1)&&((!(a15==1)&&((a27==1)&&((a20==1)&&((((input==2)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a6==1))&&!(a5==1)))))&&(a3==4)))&&!(a4==1)))){ + a4 = 1; + a15 = 1; + a18 = 1; + a5 = 1; + a12 = 8; + a6 = 1; + a22 = 1; + return -1; + } else if(((a6==1)&&((a4==1)&&((a3==7)&&((!(a27==1)&&((a5==1)&&((a12==10)&&(((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==2))&&(a20==1))&&(a0==1)))))&&(a15==1)))))){ + a27 = 1; + a22 = 1; + a15 = 0; + a6 = 0; + a18 = 1; + return 26; + } else if(((((!(a4==1)&&((a12==12)&&((!(a15==1)&&(((input==4)&&(((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1)))))&&(a6==1)))&&!(a5==1))))&&(a0==1))&&(a20==1))&&(a27==1))){ + a18 = 0; + a5 = 1; + a4 = 1; + a22 = 0; + a15 = 1; + a12 = 10; + a6 = 0; + a3 = 8; + return 24; + } else if(((a27==1)&&((a5==1)&&(((!(a15==1)&&((a0==1)&&((a3==4)&&(((a20==1)&&(((input==6)&&!(a4==1))&&(a18==1)))&&(a12==8)))))&&(a22==1))&&!(a6==1))))){ + a12 = 9; + a3 = 5; + a6 = 1; + return 26; + } else if((!(a6==1)&&(((((a3==7)&&(!(a15==1)&&(((((input==1)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a27==1))&&(a0==1))&&(a12==12))))&&!(a4==1))&&(a20==1))&&(a5==1)))){ + a18 = 1; + a12 = 10; + a15 = 1; + a22 = 0; + return -1; + } else if((((a12==9)&&((((!(a15==1)&&(!(a0==1)&&((((((a18==1)||!(a18==1))&&(input==6))&&(a4==1))&&!(a5==1))&&!(a6==1))))&&(a27==1))&&(a20==1))&&(a22==1)))&&(a3==5))){ + a27 = 0; + a5 = 1; + a4 = 0; + a3 = 8; + a0 = 1; + a12 = 11; + a18 = 1; + return -1; + } else if((((!(a4==1)&&((a15==1)&&(((a22==1)&&((a20==1)&&((a12==10)&&(((a3==7)&&((input==2)&&((a18==1)||!(a18==1))))&&!(a0==1)))))&&(a5==1))))&&!(a27==1))&&(a6==1))){ + if((a15==1)){ + a12 = 8; + a3 = 4; + a6 = 0; + a4 = 1; + a18 = 1; + a27 = 1; + a0 = 1; + }else{ + a6 = 0; + a12 = 8; + a0 = 1; + a3 = 4; + a27 = 1; + a18 = 1; + } + return 21; + } else if(((a0==1)&&((a12==8)&&((a27==1)&&((((a3==4)&&(((a4==1)&&((a5==1)&&((((a18==1)||!(a18==1))&&(input==5))&&(a20==1))))&&!(a15==1)))&&!(a6==1))&&(a22==1)))))){ + a0 = 0; + a15 = 1; + a18 = 0; + a12 = 12; + a3 = 6; + return 26; + } else if((!(a6==1)&&((a3==5)&&((a15==1)&&(((a12==10)&&(((((a20==1)&&((input==6)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&!(a5==1))&&(a4==1))&&(a27==1)))&&(a0==1)))))){ + if((a18==1)){ + a12 = 8; + a22 = 1; + a18 = 1; + a3 = 4; + a5 = 1; + a0 = 0; + a15 = 0; + }else{ + a15 = 0; + a4 = 0; + a22 = 1; + a6 = 1; + a3 = 6; + a18 = 0; + } + return 26; + } else if(((a15==1)&&((a27==1)&&((a5==1)&&((!(a6==1)&&((a20==1)&&((a12==10)&&(((input==2)&&(((((a18==1)&&!(a22==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))||(((a18==1)&&(a22==1))&&(a3==5))))&&(a0==1)))))&&!(a4==1)))))){ + a4 = 1; + a3 = 6; + a22 = 1; + a18 = 1; + return -1; + } else if((!(a0==1)&&(((!(a6==1)&&((((a20==1)&&((((a3==5)&&((input==5)&&!(a15==1)))&&(a12==8))&&!(a18==1)))&&!(a22==1))&&(a4==1)))&&!(a27==1))&&!(a5==1)))){ + if((a20==1)){ + a27 = 1; + a0 = 1; + a15 = 1; + a3 = 6; + a6 = 1; + }else{ + a22 = 1; + a0 = 1; + a12 = 11; + a5 = 1; + a27 = 1; + a6 = 1; + } + return -1; + } else if((!(a4==1)&&(((((a20==1)&&(!(a5==1)&&((((a27==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==3)))&&!(a15==1))&&(a3==8))))&&!(a6==1))&&(a12==11))&&!(a0==1)))){ + a3 = 4; + a12 = 10; + a4 = 1; + a22 = 0; + a18 = 1; + a0 = 1; + a15 = 1; + a5 = 1; + return 21; + } else if(((a12==8)&&((!(a18==1)&&(!(a6==1)&&((a27==1)&&(((((a0==1)&&((a20==1)&&((a3==8)&&(input==4))))&&!(a22==1))&&(a5==1))&&!(a15==1)))))&&(a4==1)))){ + a12 = 9; + a15 = 1; + a6 = 1; + a18 = 1; + return 26; + } else if(((((a0==1)&&(((a20==1)&&(!(a27==1)&&(!(a18==1)&&(!(a6==1)&&((a3==7)&&((!(a15==1)&&(input==4))&&(a22==1)))))))&&(a12==9)))&&(a4==1))&&!(a5==1))){ + if((a0==1)){ + a3 = 8; + a12 = 8; + a0 = 0; + a22 = 0; + a27 = 1; + a18 = 1; + }else{ + a3 = 5; + a12 = 10; + a22 = 0; + a18 = 1; + } + return 26; + } else if(((a12==9)&&((((((!(a0==1)&&(((input==4)&&(((((a18==1)&&!(a22==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))||(((a22==1)&&(a18==1))&&(a3==5))))&&!(a4==1)))&&(a20==1))&&(a15==1))&&!(a27==1))&&!(a6==1))&&!(a5==1)))){ + a3 = 6; + a6 = 1; + a27 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((a12==12)&&((a20==1)&&(((a5==1)&&((!(a0==1)&&((((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==5))&&(a4==1))&&(a6==1)))&&(a27==1)))&&(a15==1))))){ + a18 = 1; + a4 = 0; + a6 = 0; + a0 = 1; + a22 = 0; + a15 = 0; + a27 = 0; + a3 = 7; + return 21; + } else if((!(a27==1)&&(((((!(a0==1)&&((a12==10)&&((a20==1)&&((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==5))&&(a3==4)))))&&!(a5==1))&&!(a6==1))&&!(a4==1))&&!(a15==1)))){ + if((a5==1)){ + a27 = 1; + a12 = 8; + a3 = 8; + a0 = 1; + a5 = 1; + a18 = 1; + a4 = 1; + a15 = 1; + a22 = 1; + }else{ + a6 = 1; + a27 = 1; + a22 = 1; + a12 = 8; + a5 = 1; + a15 = 1; + a18 = 1; + a3 = 7; + a4 = 1; + a0 = 1; + } + return -1; + } else if(((((a5==1)&&((((!(a6==1)&&((a12==11)&&((a3==4)&&((a0==1)&&(!(a15==1)&&(input==2))))))&&!(a22==1))&&!(a18==1))&&!(a4==1)))&&(a27==1))&&(a20==1))){ + a18 = 1; + a3 = 6; + a4 = 1; + a22 = 1; + a5 = 0; + a12 = 10; + a15 = 1; + return -1; + } else if((((a15==1)&&(!(a5==1)&&(((a20==1)&&(!(a0==1)&&((a12==8)&&((((a22==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a4==1))&&(a3==6)))))&&!(a6==1))))&&!(a27==1))){ + a3 = 4; + a0 = 1; + a5 = 1; + a12 = 9; + a18 = 0; + return 26; + } else if(((a20==1)&&(!(a5==1)&&(!(a0==1)&&((((a12==8)&&((input==3)&&((((((!(a22==1)&&!(a18==1))&&(a4==1))&&(a3==8))&&!(a6==1))||((a6==1)&&((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))))||(((!(a4==1)&&((a22==1)&&!(a18==1)))&&(a3==4))&&(a6==1)))))&&(a15==1))&&!(a27==1)))))){ + a6 = 1; + a22 = 1; + a5 = 1; + a18 = 1; + a3 = 6; + a0 = 1; + a27 = 1; + a4 = 0; + return 21; + } else if((((a12==11)&&((a3==6)&&((!(a6==1)&&((!(a0==1)&&(!(a5==1)&&((((input==3)&&(a20==1))&&(a15==1))&&(a4==1))))&&(a18==1)))&&!(a22==1))))&&!(a27==1))){ + a5 = 1; + a12 = 8; + a3 = 8; + a18 = 0; + a0 = 1; + a27 = 1; + return 26; + } else if(((a3==7)&&((a20==1)&&(((((a5==1)&&(((a0==1)&&(!(a4==1)&&(((input==2)&&!(a18==1))&&!(a6==1))))&&!(a22==1)))&&!(a27==1))&&(a12==10))&&!(a15==1))))){ + a3 = 4; + a4 = 1; + a22 = 1; + a12 = 8; + a15 = 1; + a18 = 1; + a6 = 1; + a27 = 1; + return -1; + } else if(((((a4==1)&&(!(a5==1)&&((!(a15==1)&&((!(a6==1)&&(((input==2)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a20==1)))&&(a3==6)))&&(a12==9))))&&(a27==1))&&!(a0==1))){ + if((a3==4)){ + a3 = 8; + a12 = 10; + a22 = 0; + a18 = 0; + }else{ + a0 = 1; + a3 = 7; + a18 = 0; + a12 = 8; + a22 = 0; + } + return 26; + } else if(((((a5==1)&&((((a4==1)&&(!(a6==1)&&((a15==1)&&(((input==1)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a0==1)))))&&(a20==1))&&(a12==9)))&&(a3==5))&&(a27==1))){ + a22 = 1; + a6 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + return -1; + } else if((!(a4==1)&&((((((!(a5==1)&&((a20==1)&&((input==3)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1)))))))&&!(a0==1))&&(a12==8))&&!(a15==1))&&(a27==1))&&!(a6==1)))){ + a15 = 1; + a0 = 1; + a22 = 1; + a3 = 6; + a5 = 1; + a18 = 0; + a12 = 11; + return 26; + } else if(((a20==1)&&((((((a6==1)&&((a5==1)&&(((input==2)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))||((!(a18==1)&&(a22==1))&&(a3==8))))&&(a12==11))))&&(a27==1))&&(a0==1))&&!(a4==1))&&(a15==1)))){ + a0 = 0; + a18 = 0; + a12 = 9; + a3 = 6; + a5 = 0; + a15 = 0; + a22 = 1; + return 26; + } else if((!(a27==1)&&((a0==1)&&((a12==11)&&(((a15==1)&&((a6==1)&&((a5==1)&&(((input==5)&&((((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==5))))&&!(a4==1)))))&&(a20==1)))))){ + if((a15==1)){ + a18 = 0; + a12 = 12; + a5 = 0; + a6 = 0; + a3 = 5; + a22 = 0; + }else{ + a27 = 1; + a3 = 6; + a5 = 0; + a22 = 1; + a4 = 1; + a18 = 1; + } + return 26; + } else if((((!(a4==1)&&(((a5==1)&&(!(a27==1)&&(!(a15==1)&&((!(a6==1)&&((input==3)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a12==10)))))&&(a0==1)))&&(a20==1))&&(a3==7))){ + a27 = 1; + a18 = 1; + a12 = 11; + a4 = 1; + a22 = 0; + a3 = 6; + a5 = 0; + return 21; + } else if((((!(a5==1)&&((a27==1)&&((((((a12==11)&&(((input==5)&&(a22==1))&&!(a6==1)))&&(a3==8))&&!(a18==1))&&(a15==1))&&(a20==1))))&&(a0==1))&&!(a4==1))){ + a3 = 6; + a5 = 1; + a12 = 12; + return 21; + } else if(((a6==1)&&(!(a15==1)&&(((((a0==1)&&((a20==1)&&((a3==6)&&(!(a4==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==2))))))&&(a27==1))&&(a12==10))&&!(a5==1))))){ + a12 = 8; + a15 = 1; + a18 = 1; + a22 = 1; + a5 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if(((!(a27==1)&&((a20==1)&&(!(a6==1)&&(!(a0==1)&&((((a12==8)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&(a5==1)))&&(a3==5))&&!(a15==1))))))&&!(a4==1))){ + a22 = 0; + a12 = 9; + a18 = 1; + a27 = 1; + a0 = 1; + a3 = 7; + return -1; + } else if(((a20==1)&&((a6==1)&&(((a15==1)&&((a3==5)&&((a12==11)&&((a0==1)&&(((a5==1)&&((((a18==1)||!(a18==1))&&(input==6))&&!(a4==1)))&&!(a22==1))))))&&!(a27==1))))){ + a12 = 12; + a5 = 0; + a22 = 1; + a6 = 0; + a18 = 1; + a27 = 1; + a3 = 7; + return -1; + } else if((((!(a6==1)&&((a3==7)&&(((!(a0==1)&&(!(a5==1)&&(((input==3)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&(a15==1))))&&!(a27==1))&&(a12==11))))&&(a20==1))&&!(a4==1))){ + if((a3==4)){ + a5 = 1; + a4 = 1; + a15 = 0; + a0 = 1; + a18 = 0; + a12 = 12; + a22 = 0; + a3 = 6; + a27 = 1; + }else{ + a3 = 8; + a27 = 1; + a22 = 0; + a6 = 1; + a18 = 1; + a4 = 1; + a0 = 1; + a12 = 8; + a5 = 1; + } + return -1; + } else if((((a5==1)&&(((a6==1)&&((a3==4)&&(((a22==1)&&((a15==1)&&((a12==9)&&((a20==1)&&((input==4)&&((a18==1)||!(a18==1)))))))&&!(a0==1))))&&(a4==1)))&&(a27==1))){ + a12 = 8; + a18 = 1; + a0 = 1; + return -1; + } else if(((a27==1)&&((((!(a4==1)&&(!(a18==1)&&((a3==7)&&((a12==9)&&(!(a6==1)&&((!(a5==1)&&(input==4))&&(a20==1)))))))&&!(a22==1))&&(a15==1))&&!(a0==1)))){ + a18 = 1; + a3 = 4; + a6 = 1; + a12 = 8; + a4 = 1; + a5 = 1; + a0 = 1; + a22 = 1; + return -1; + } else if((!(a0==1)&&(((a12==10)&&(((a15==1)&&((a5==1)&&(((((a18==1)&&((input==3)&&!(a22==1)))&&(a3==8))&&(a20==1))&&(a4==1))))&&(a6==1)))&&!(a27==1)))){ + if((a15==1)){ + a5 = 0; + a22 = 1; + a18 = 0; + a6 = 0; + a15 = 0; + a0 = 1; + a4 = 0; + }else{ + a27 = 1; + a4 = 0; + a12 = 8; + a18 = 0; + a3 = 6; + a0 = 1; + a22 = 1; + } + return -1; + } else if((((a15==1)&&(((a3==6)&&(((a12==8)&&(!(a27==1)&&((a6==1)&&((a0==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a5==1))))))&&(a4==1)))&&(a22==1)))&&(a20==1))){ + a12 = 11; + a0 = 0; + a27 = 1; + a18 = 1; + a6 = 0; + a3 = 4; + a4 = 0; + return 26; + } else if(((((a20==1)&&((((((((a15==1)&&(((a18==1)&&(a22==1))&&!(a5==1)))&&(a4==1))&&(a3==4))&&(a6==1))||((!(a6==1)&&(((!(a15==1)&&((!(a22==1)&&(a18==1))&&(a5==1)))&&!(a4==1))&&(a3==8)))||(!(a6==1)&&((a3==8)&&(!(a4==1)&&(((a5==1)&&(!(a18==1)&&!(a22==1)))&&!(a15==1)))))))&&(input==2))&&(a0==1)))&&!(a27==1))&&(a12==10))){ + if((a22==1)){ + a18 = 0; + a5 = 0; + a0 = 0; + a4 = 1; + a6 = 0; + a3 = 4; + a15 = 0; + a22 = 0; + a12 = 8; + a27 = 1; + }else{ + a6 = 1; + a12 = 12; + a22 = 0; + a3 = 8; + a15 = 1; + a5 = 1; + a4 = 1; + a18 = 1; + } + return 26; + } else if((!(a0==1)&&(!(a4==1)&&(((a20==1)&&(!(a27==1)&&((!(a5==1)&&((input==1)&&((((a6==1)&&((a3==8)&&(!(a22==1)&&(a18==1))))||((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1)))))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1)))))&&!(a15==1))))&&(a12==8))))){ + a4 = 1; + a15 = 1; + a27 = 1; + a6 = 0; + a22 = 1; + a5 = 1; + a0 = 1; + a18 = 0; + a3 = 7; + return 26; + } else if(((((((((a6==1)&&(!(a15==1)&&((input==1)&&(((a3==6)&&((a22==1)&&!(a18==1)))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a22==1)&&(a18==1))))))))&&(a12==11))&&(a27==1))&&!(a5==1))&&!(a4==1))&&(a0==1))&&(a20==1))){ + a0 = 0; + a5 = 1; + a6 = 0; + a22 = 0; + a3 = 4; + a15 = 1; + a18 = 1; + return -1; + } else if(((!(a6==1)&&((a3==4)&&(!(a27==1)&&(!(a5==1)&&((((a12==10)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==1))&&(a0==1)))&&(a15==1))&&(a20==1))))))&&(a4==1))){ + if((a5==1)){ + a15 = 0; + a0 = 0; + a18 = 0; + a12 = 8; + a5 = 1; + a27 = 1; + a22 = 1; + a3 = 8; + }else{ + a22 = 0; + a3 = 6; + a18 = 0; + a12 = 12; + } + return 26; + } else if((!(a4==1)&&(((((a15==1)&&((a12==11)&&((a20==1)&&((!(a0==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==1)))&&(a3==5)))))&&!(a5==1))&&!(a27==1))&&!(a6==1)))){ + a18 = 1; + a27 = 1; + a22 = 0; + a6 = 1; + a0 = 1; + a3 = 4; + a5 = 1; + a12 = 8; + return -1; + } else if((((!(a15==1)&&(((a12==8)&&(((a22==1)&&(((((a27==1)&&(input==2))&&(a0==1))&&(a3==7))&&!(a4==1)))&&(a18==1)))&&(a20==1)))&&!(a6==1))&&(a5==1))){ + a3 = 8; + a15 = 1; + a0 = 0; + a18 = 0; + a12 = 9; + return 21; + } else if((((a4==1)&&((!(a27==1)&&((((((((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==1))&&(a5==1))&&(a0==1))&&(a20==1))&&(a6==1)))&&!(a15==1)))&&(a12==10))){ + a3 = 4; + a22 = 1; + a18 = 1; + a15 = 1; + a12 = 8; + a27 = 1; + return -1; + } else if((((a0==1)&&((a4==1)&&(((a15==1)&&((a12==10)&&(!(a22==1)&&(((a20==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a3==7)))&&!(a6==1)))))&&(a5==1))))&&(a27==1))){ + a18 = 1; + a6 = 1; + a27 = 0; + a22 = 1; + a5 = 0; + a12 = 9; + a3 = 8; + return 26; + } else if(((((a12==11)&&(!(a15==1)&&((((a22==1)&&((a3==4)&&((((input==6)&&!(a27==1))&&!(a6==1))&&!(a5==1))))&&!(a0==1))&&!(a4==1))))&&(a20==1))&&(a18==1))){ + a5 = 1; + a18 = 0; + a6 = 1; + a27 = 1; + a0 = 1; + a12 = 8; + a15 = 1; + a22 = 0; + a3 = 6; + return 26; + } else if(((((a6==1)&&(((a3==6)&&((a15==1)&&(((((((a18==1)||!(a18==1))&&(input==1))&&(a20==1))&&(a22==1))&&(a12==9))&&(a0==1))))&&(a27==1)))&&!(a5==1))&&!(a4==1))){ + a4 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + a18 = 1; + return -1; + } else if((!(a4==1)&&(((((((a3==5)&&((a0==1)&&((a12==10)&&((input==1)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))))&&(a6==1))&&!(a27==1))&&(a5==1))&&(a15==1))&&(a20==1)))){ + a4 = 1; + a27 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + return -1; + } else if(((!(a4==1)&&((((a6==1)&&((a3==8)&&((((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==4))&&!(a0==1))&&(a27==1))&&(a20==1))))&&!(a15==1))&&!(a5==1)))&&(a12==9))){ + a18 = 0; + a6 = 0; + a22 = 0; + a12 = 12; + a0 = 1; + a15 = 1; + a3 = 5; + return -1; + } else if((((a0==1)&&((((a12==11)&&(!(a22==1)&&(((a3==4)&&((a5==1)&&(!(a18==1)&&((a20==1)&&(input==1)))))&&(a15==1))))&&!(a6==1))&&(a27==1)))&&!(a4==1))){ + a22 = 1; + a6 = 1; + a12 = 10; + return -1; + } else if((!(a27==1)&&((a4==1)&&(!(a15==1)&&(((a0==1)&&(((a20==1)&&(!(a5==1)&&((((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==1))))&&!(a6==1)))&&(a12==10)))))){ + a4 = 0; + a18 = 1; + a27 = 1; + a5 = 1; + a12 = 12; + a22 = 1; + a3 = 4; + return 21; + } else if((((!(a18==1)&&((a4==1)&&(!(a5==1)&&(((((a20==1)&&(!(a15==1)&&((a3==6)&&(input==6))))&&(a6==1))&&(a0==1))&&(a22==1)))))&&(a27==1))&&(a12==10))){ + a3 = 4; + a18 = 1; + a4 = 0; + a27 = 0; + a5 = 1; + a6 = 0; + return 26; + } else if(((a0==1)&&((a15==1)&&(((a5==1)&&((((!(a4==1)&&((((input==6)&&!(a27==1))&&!(a22==1))&&(a20==1)))&&(a18==1))&&(a3==4))&&(a12==10)))&&!(a6==1))))){ + a3 = 8; + a4 = 1; + a27 = 1; + a6 = 1; + a12 = 11; + return 26; + } else if((((a12==9)&&(!(a4==1)&&(((!(a15==1)&&(((((((a18==1)||!(a18==1))&&(input==3))&&(a6==1))&&(a27==1))&&(a20==1))&&(a3==5)))&&!(a5==1))&&!(a22==1))))&&(a0==1))){ + a18 = 0; + a12 = 10; + a4 = 1; + a6 = 0; + a5 = 1; + a3 = 8; + a22 = 1; + return 24; + } else if((!(a27==1)&&(((((((!(a18==1)&&((a22==1)&&((!(a0==1)&&(input==3))&&(a3==6))))&&(a20==1))&&(a12==8))&&!(a4==1))&&!(a15==1))&&(a5==1))&&!(a6==1)))){ + if((a3==4)){ + a4 = 1; + a3 = 8; + a27 = 1; + a22 = 0; + a15 = 1; + a0 = 1; + }else{ + a15 = 1; + a0 = 1; + a3 = 5; + a18 = 1; + a4 = 1; + a27 = 1; + } + return 26; + } else if(((((((((((!(a15==1)&&((input==4)&&((a18==1)||!(a18==1))))&&(a6==1))&&(a12==8))&&!(a5==1))&&!(a22==1))&&(a0==1))&&(a27==1))&&!(a4==1))&&(a3==7))&&(a20==1))){ + a3 = 4; + a15 = 1; + a4 = 1; + a22 = 1; + a5 = 1; + a18 = 1; + return -1; + } else if(((a27==1)&&(((((a12==12)&&(!(a6==1)&&((!(a5==1)&&((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==6)))&&!(a0==1))))&&(a4==1))&&(a20==1))&&(a15==1)))){ + a4 = 0; + a5 = 1; + a6 = 1; + a0 = 1; + a12 = 8; + a22 = 0; + a3 = 7; + a18 = 0; + return -1; + } else if((((((!(a27==1)&&((((((input==3)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&!(a4==1))&&(a3==8))&&(a5==1))&&(a12==10)))&&(a20==1))&&(a6==1))&&!(a15==1))&&!(a0==1))){ + a22 = 0; + a3 = 7; + a18 = 0; + a27 = 1; + a0 = 1; + a15 = 1; + a12 = 12; + a5 = 0; + return 21; + } else if((((((!(a15==1)&&(!(a0==1)&&((((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4))))&&(input==1))&&(a4==1))))&&(a20==1))&&(a27==1))&&(a12==12))&&(a5==1))){ + a22 = 1; + a12 = 9; + a4 = 0; + a15 = 1; + a3 = 7; + a18 = 0; + a6 = 0; + a0 = 1; + return -1; + } else if(((a12==9)&&((a4==1)&&(((((a20==1)&&(!(a0==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==4))&&(a15==1))))&&(a27==1))&&(a6==1))&&!(a5==1))))){ + a22 = 1; + a12 = 8; + a5 = 1; + a18 = 1; + a0 = 1; + a3 = 4; + return -1; + } else if(((!(a4==1)&&(!(a0==1)&&(((((a27==1)&&((a12==11)&&((((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==3))))&&(a6==1))&&(a15==1))&&!(a5==1))))&&(a20==1))){ + a6 = 0; + a22 = 1; + a12 = 10; + a18 = 1; + a0 = 1; + a3 = 5; + return 21; + } else if((((!(a27==1)&&(!(a15==1)&&((a20==1)&&(!(a4==1)&&((((input==6)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1)))))&&(a12==10))&&!(a6==1))))))&&(a5==1))&&(a0==1))){ + a18 = 0; + a15 = 1; + a27 = 1; + a3 = 6; + a12 = 11; + a22 = 1; + return -1; + } else if((((((((a4==1)&&((a6==1)&&(!(a22==1)&&(((((a18==1)||!(a18==1))&&(input==4))&&(a15==1))&&(a20==1)))))&&!(a0==1))&&(a27==1))&&(a3==8))&&!(a5==1))&&(a12==12))){ + a27 = 0; + a15 = 0; + a0 = 1; + a18 = 1; + a3 = 6; + a22 = 1; + a5 = 1; + a12 = 8; + return 26; + } else if(((a12==9)&&((((a15==1)&&(!(a5==1)&&(!(a0==1)&&(((a4==1)&&(((a3==5)&&((input==6)&&(a18==1)))&&(a6==1)))&&(a20==1)))))&&!(a22==1))&&(a27==1)))){ + a12 = 8; + a0 = 1; + a22 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if(((a12==10)&&(((((a3==5)&&((a20==1)&&(!(a5==1)&&(!(a27==1)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==6))&&(a15==1))))))&&!(a6==1))&&!(a0==1))&&!(a4==1)))){ + if((a18==1)){ + a4 = 1; + a18 = 1; + a5 = 1; + a22 = 1; + a12 = 8; + a3 = 6; + }else{ + a22 = 0; + a5 = 1; + a27 = 1; + a6 = 1; + a4 = 1; + a12 = 8; + a3 = 7; + a18 = 0; + a0 = 1; + } + return -1; + } else if((((a0==1)&&(((a6==1)&&((a3==5)&&(((a18==1)&&(!(a22==1)&&(!(a5==1)&&(!(a15==1)&&((input==4)&&(a12==9))))))&&(a4==1))))&&!(a27==1)))&&(a20==1))){ + a3 = 6; + a12 = 10; + a18 = 0; + a22 = 1; + a27 = 1; + return 26; + } else if(((((a12==9)&&(((a0==1)&&((!(a5==1)&&(((((input==5)&&!(a22==1))&&(a3==4))&&(a27==1))&&(a15==1)))&&!(a6==1)))&&!(a18==1)))&&!(a4==1))&&(a20==1))){ + a5 = 1; + a4 = 1; + a22 = 1; + a6 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((((a0==1)&&((!(a4==1)&&(((a3==7)&&((a12==11)&&(!(a6==1)&&((((a18==1)||!(a18==1))&&(input==3))&&!(a5==1)))))&&!(a22==1)))&&(a15==1)))&&(a27==1))&&(a20==1))){ + a12 = 8; + a5 = 1; + a6 = 1; + a0 = 0; + a18 = 1; + a15 = 0; + a3 = 4; + return 26; + } else if(((((a12==9)&&((!(a0==1)&&((a20==1)&&(((a4==1)&&(((input==6)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&!(a6==1)))&&(a15==1))))&&!(a27==1)))&&(a3==5))&&(a5==1))){ + if((a4==1)){ + a12 = 8; + a3 = 8; + a22 = 0; + a6 = 1; + a27 = 1; + a0 = 1; + a18 = 0; + }else{ + a0 = 1; + a27 = 1; + a12 = 8; + a3 = 6; + a18 = 1; + a22 = 1; + } + return -1; + } else if(((((a27==1)&&(((!(a5==1)&&(!(a0==1)&&((a20==1)&&((input==3)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6)))))))&&(a12==8))&&!(a4==1)))&&!(a6==1))&&(a15==1))){ + a4 = 1; + a22 = 0; + a12 = 12; + a0 = 1; + a18 = 0; + a3 = 4; + return 21; + } else if(((!(a18==1)&&(((a5==1)&&((a22==1)&&(!(a4==1)&&(((!(a27==1)&&(((input==2)&&(a12==9))&&(a20==1)))&&(a3==6))&&!(a15==1)))))&&(a6==1)))&&(a0==1))){ + a18 = 1; + a12 = 10; + a15 = 1; + a27 = 1; + a5 = 0; + a22 = 0; + a3 = 4; + a4 = 1; + return 21; + } else if(((!(a18==1)&&(((((!(a27==1)&&(((a3==4)&&((!(a22==1)&&(input==3))&&(a5==1)))&&(a4==1)))&&(a0==1))&&(a15==1))&&!(a6==1))&&(a12==10)))&&(a20==1))){ + a5 = 0; + a6 = 1; + a22 = 1; + a18 = 1; + a3 = 5; + a4 = 0; + a12 = 12; + return -1; + } else if((((a5==1)&&((a20==1)&&(((((((a4==1)&&(!(a0==1)&&((input==6)&&(a3==4))))&&(a22==1))&&(a12==11))&&(a27==1))&&!(a18==1))&&!(a15==1))))&&(a6==1))){ + a6 = 0; + a15 = 1; + a12 = 12; + a3 = 7; + a0 = 1; + a22 = 0; + return 26; + } else if((!(a5==1)&&((((a6==1)&&((a27==1)&&((a12==10)&&((!(a4==1)&&((input==1)&&((((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1))))||(((a22==1)&&!(a18==1))&&(a3==5)))))&&!(a15==1)))))&&!(a0==1))&&(a20==1)))){ + a6 = 0; + a3 = 4; + a22 = 1; + a12 = 11; + a18 = 1; + return -1; + } else if((((a15==1)&&(((!(a0==1)&&(!(a5==1)&&((a27==1)&&((((input==5)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&!(a4==1))&&(a12==8)))))&&(a6==1))&&(a20==1)))&&(a3==8))){ + a0 = 1; + a5 = 1; + a4 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((((a27==1)&&(((a4==1)&&((a12==11)&&((((a3==7)&&((((input==4)&&((a18==1)||!(a18==1)))&&!(a0==1))&&!(a15==1)))&&!(a5==1))&&(a6==1))))&&(a20==1)))&&(a22==1))){ + a15 = 1; + a5 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a0 = 1; + return -1; + } else if((!(a6==1)&&(((!(a4==1)&&((((((input==1)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6)))||((a3==6)&&((a22==1)&&!(a18==1)))))&&!(a5==1))&&!(a15==1))&&(a12==9))&&(a20==1)))&&(a27==1))&&!(a0==1)))){ + a5 = 1; + a18 = 0; + a22 = 1; + a12 = 11; + a0 = 1; + a3 = 8; + return 21; + } else if((((((!(a5==1)&&((a27==1)&&(((a12==9)&&(((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))||((a3==6)&&((a22==1)&&!(a18==1))))&&(input==4)))&&(a20==1))))&&(a15==1))&&(a4==1))&&(a0==1))&&!(a6==1))){ + a18 = 1; + a6 = 1; + a12 = 8; + a3 = 4; + a5 = 1; + a22 = 1; + return -1; + } else if((((!(a4==1)&&((((((!(a6==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a15==1)))&&(a3==4))&&(a20==1))&&!(a27==1))&&(a22==1))&&(a12==10)))&&(a5==1))&&(a0==1))){ + a12 = 11; + a3 = 6; + a0 = 0; + a18 = 0; + a6 = 1; + a27 = 1; + a4 = 1; + return 26; + } else if(((((!(a5==1)&&((a20==1)&&((!(a27==1)&&((a0==1)&&((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==3))&&!(a15==1))))&&(a3==6))))&&(a12==9))&&!(a4==1))&&!(a6==1))){ + a18 = 0; + a5 = 1; + a4 = 1; + a22 = 0; + a3 = 8; + a27 = 1; + a12 = 11; + return -1; + } else if((!(a5==1)&&((a27==1)&&(((!(a22==1)&&((((a12==11)&&(((a0==1)&&((input==6)&&(a18==1)))&&(a6==1)))&&(a20==1))&&!(a15==1)))&&(a4==1))&&(a3==7))))){ + a22 = 1; + a4 = 0; + a5 = 1; + a6 = 0; + a15 = 1; + return 24; + } else if((((a27==1)&&((a5==1)&&(((((((((input==5)&&((a18==1)||!(a18==1)))&&(a12==11))&&(a20==1))&&!(a4==1))&&!(a15==1))&&(a3==6))&&(a6==1))&&!(a0==1))))&&!(a22==1))){ + a22 = 1; + a15 = 1; + a12 = 8; + a0 = 1; + a3 = 4; + a18 = 1; + a4 = 1; + return -1; + } else if((((a6==1)&&((((((!(a0==1)&&((a27==1)&&((a22==1)&&(((a18==1)||!(a18==1))&&(input==6)))))&&(a5==1))&&!(a15==1))&&(a3==8))&&(a4==1))&&(a20==1)))&&(a12==8))){ + a5 = 0; + a0 = 1; + a18 = 0; + a12 = 11; + a15 = 1; + a3 = 5; + a4 = 0; + return 24; + } else if(((a6==1)&&(((a20==1)&&(((a4==1)&&(!(a0==1)&&((a12==9)&&(((input==2)&&(((((a18==1)&&!(a22==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))||(((a18==1)&&(a22==1))&&(a3==5))))&&(a5==1)))))&&!(a15==1)))&&(a27==1)))){ + a12 = 12; + a3 = 6; + a5 = 0; + a15 = 1; + a22 = 0; + a0 = 1; + a27 = 0; + a18 = 1; + return 26; + } else if((((((!(a0==1)&&((a6==1)&&((a18==1)&&(((a12==11)&&((a22==1)&&((input==3)&&!(a15==1))))&&(a4==1)))))&&(a3==5))&&(a20==1))&&(a5==1))&&(a27==1))){ + a12 = 9; + a15 = 1; + a4 = 0; + a0 = 1; + a3 = 6; + a18 = 0; + return 24; + } else if(((((((a12==12)&&(((!(a27==1)&&((a18==1)&&((a15==1)&&((input==4)&&(a0==1)))))&&(a20==1))&&(a3==5)))&&(a6==1))&&!(a5==1))&&!(a22==1))&&!(a4==1))){ + a5 = 1; + a12 = 8; + a4 = 1; + a27 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if((((a20==1)&&(!(a15==1)&&(((a5==1)&&((a12==8)&&(((((!(a4==1)&&((a22==1)&&(a18==1)))&&(a3==4))&&(a6==1))||((!(a6==1)&&((a3==8)&&((!(a22==1)&&(a18==1))&&(a4==1))))||(!(a6==1)&&((a3==8)&&((a4==1)&&(!(a22==1)&&!(a18==1)))))))&&(input==4))))&&(a0==1))))&&!(a27==1))){ + a22 = 1; + a18 = 1; + a6 = 1; + a3 = 8; + a27 = 1; + a12 = 11; + a5 = 0; + a4 = 0; + return -1; + } else if((!(a27==1)&&((a20==1)&&(((((((a6==1)&&((a22==1)&&((((a18==1)||!(a18==1))&&(input==1))&&!(a4==1))))&&(a12==9))&&!(a0==1))&&!(a5==1))&&!(a15==1))&&(a3==8))))){ + if((a22==1)){ + a3 = 4; + a0 = 1; + a4 = 1; + a12 = 11; + a15 = 1; + a18 = 1; + a5 = 1; + }else{ + a4 = 1; + a5 = 1; + a18 = 1; + a22 = 0; + a15 = 1; + a0 = 1; + a6 = 0; + a12 = 8; + a27 = 1; + } + return -1; + } else if((!(a0==1)&&(!(a15==1)&&(((a20==1)&&(!(a6==1)&&(((a12==11)&&((a5==1)&&(((((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==6))))&&!(a27==1))))&&!(a4==1))))){ + a15 = 1; + a3 = 5; + a6 = 1; + a5 = 0; + a12 = 9; + a18 = 1; + a22 = 1; + return -1; + } else if(((((((a27==1)&&((a20==1)&&(((((input==3)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&(a12==10))&&!(a5==1))&&(a0==1))))&&(a3==5))&&(a15==1))&&!(a6==1))&&(a4==1))){ + a3 = 7; + a5 = 1; + a15 = 0; + a4 = 0; + a22 = 0; + a18 = 1; + a6 = 1; + return -1; + } else if(((a18==1)&&(((a6==1)&&((a12==11)&&((a27==1)&&((a3==6)&&(((a15==1)&&((a4==1)&&((a22==1)&&((input==5)&&(a20==1)))))&&(a0==1))))))&&(a5==1)))){ + a22 = 0; + a18 = 0; + a12 = 10; + a5 = 0; + a6 = 0; + return 21; + } else if((((a4==1)&&((!(a5==1)&&((((a27==1)&&(((((a3==7)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1)))))&&(input==5))&&!(a0==1)))&&(a15==1))&&(a12==11)))&&(a20==1)))&&(a6==1))){ + a18 = 1; + a0 = 1; + a22 = 1; + a15 = 0; + a12 = 9; + a3 = 7; + return 26; + } else if(((((!(a5==1)&&(((a15==1)&&(!(a22==1)&&((a0==1)&&(((a3==8)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a20==1)))))&&(a6==1)))&&(a27==1))&&(a4==1))&&(a12==8))){ + a3 = 4; + a22 = 1; + a18 = 1; + a5 = 1; + return -1; + } else if(((((a6==1)&&((((a27==1)&&((a20==1)&&((a4==1)&&(((input==6)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&(a3==5)))))&&(a12==12))&&!(a5==1)))&&!(a15==1))&&(a0==1))){ + a3 = 6; + a18 = 0; + a22 = 1; + a15 = 1; + a5 = 1; + a4 = 0; + return -1; + } else if(((a20==1)&&(((a4==1)&&((!(a6==1)&&(((a0==1)&&(((a15==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5)))&&!(a5==1)))&&(a3==7)))&&(a12==8)))&&!(a27==1)))){ + a3 = 6; + a15 = 0; + a18 = 1; + a12 = 11; + a4 = 0; + a22 = 0; + a5 = 1; + return 26; + } else if(((!(a15==1)&&(((a0==1)&&((a20==1)&&((a3==8)&&((((((a12==10)&&(input==6))&&(a22==1))&&!(a6==1))&&!(a4==1))&&!(a18==1)))))&&!(a27==1)))&&(a5==1))){ + a22 = 0; + a3 = 4; + a12 = 8; + a0 = 0; + a18 = 1; + a15 = 1; + a27 = 1; + return 26; + } else if(((a3==7)&&(!(a22==1)&&((a20==1)&&((!(a15==1)&&(!(a18==1)&&((a0==1)&&((a12==12)&&((a27==1)&&((!(a4==1)&&(input==1))&&(a6==1)))))))&&(a5==1)))))){ + a12 = 8; + a3 = 8; + a0 = 0; + a15 = 1; + a4 = 1; + a5 = 0; + return -1; + } else if(((a6==1)&&(!(a0==1)&&((((a27==1)&&((a15==1)&&((a12==8)&&(((((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==3))&&(a20==1)))))&&!(a5==1))&&!(a4==1))))){ + a22 = 1; + a18 = 0; + a12 = 10; + a0 = 1; + a3 = 4; + a6 = 0; + a4 = 1; + a15 = 0; + a27 = 0; + return 26; + } else if(((a27==1)&&((a0==1)&&((a20==1)&&((((((a5==1)&&((input==2)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))||((a3==6)&&(!(a18==1)&&(a22==1))))))&&(a6==1))&&(a12==12))&&!(a4==1))&&!(a15==1)))))){ + a6 = 0; + a5 = 0; + a3 = 6; + a22 = 1; + a12 = 11; + a18 = 0; + a15 = 1; + return 21; + } else if((((a3==7)&&(((a12==11)&&((a20==1)&&(((((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==4))&&!(a5==1))&&!(a27==1))&&(a4==1))&&(a6==1))))&&!(a15==1)))&&(a0==1))){ + a3 = 8; + a5 = 1; + a12 = 10; + a4 = 0; + a22 = 1; + a27 = 1; + a6 = 0; + a18 = 0; + return -1; + } else if((((!(a22==1)&&(!(a0==1)&&((a15==1)&&((a20==1)&&(((((a3==4)&&(!(a4==1)&&(input==5)))&&!(a5==1))&&(a12==10))&&(a18==1))))))&&!(a27==1))&&!(a6==1))){ + a22 = 1; + a5 = 1; + a0 = 1; + a3 = 8; + a6 = 1; + a12 = 9; + return 24; + } else if(((((a6==1)&&(!(a15==1)&&((a5==1)&&((a27==1)&&((a20==1)&&((!(a4==1)&&((input==4)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))&&(a12==10)))))))&&(a3==4))&&(a0==1))){ + a15 = 1; + a3 = 7; + a22 = 0; + a18 = 0; + a4 = 1; + return 24; + } else if(((a12==9)&&((((a27==1)&&((a20==1)&&((!(a15==1)&&((a3==8)&&((a18==1)&&(!(a6==1)&&((a0==1)&&(input==6))))))&&!(a22==1))))&&(a4==1))&&(a5==1)))){ + a15 = 1; + a22 = 1; + a27 = 0; + a12 = 8; + a6 = 1; + return 26; + } else if(((!(a0==1)&&(((!(a15==1)&&((a6==1)&&(((a5==1)&&((((input==3)&&(a18==1))&&(a27==1))&&(a12==11)))&&(a20==1))))&&(a4==1))&&!(a22==1)))&&(a3==6))){ + a3 = 4; + a12 = 8; + a22 = 1; + a0 = 1; + a15 = 1; + return -1; + } else if((!(a6==1)&&((!(a4==1)&&((a0==1)&&((a5==1)&&((((a15==1)&&((input==5)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))||((a3==6)&&(!(a18==1)&&(a22==1))))))&&(a12==11))&&(a27==1)))))&&(a20==1)))){ + a6 = 1; + a15 = 0; + a0 = 0; + a18 = 1; + a3 = 6; + a4 = 1; + a22 = 0; + return 21; + } else if((((a27==1)&&((a6==1)&&((((!(a22==1)&&(!(a0==1)&&(((a5==1)&&((input==1)&&!(a15==1)))&&(a4==1))))&&(a12==11))&&(a3==6))&&(a18==1))))&&(a20==1))){ + a12 = 12; + a22 = 1; + a6 = 0; + a27 = 0; + a0 = 1; + a4 = 0; + a3 = 4; + return 26; + } else if(((a20==1)&&((!(a6==1)&&((a5==1)&&(((!(a4==1)&&((a3==6)&&((a12==10)&&((input==6)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))))))&&!(a27==1))&&!(a0==1))))&&!(a15==1)))){ + a6 = 1; + a12 = 8; + a0 = 1; + a18 = 1; + a4 = 1; + a27 = 1; + a15 = 1; + a22 = 1; + a3 = 8; + return 21; + } else if(((a18==1)&&((a0==1)&&((((a12==10)&&((((!(a6==1)&&((a20==1)&&((input==6)&&(a3==4))))&&(a4==1))&&(a15==1))&&!(a27==1)))&&(a22==1))&&!(a5==1))))){ + a5 = 1; + a22 = 0; + a18 = 0; + a15 = 0; + a4 = 0; + return 26; + } else if((((a3==5)&&(((a27==1)&&(((a20==1)&&(((!(a0==1)&&((input==4)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a5==1))&&!(a4==1)))&&(a15==1)))&&(a12==8)))&&!(a6==1))){ + if((a3==8)){ + a4 = 1; + a22 = 0; + a5 = 0; + a18 = 0; + a12 = 9; + }else{ + a4 = 1; + a18 = 0; + a6 = 1; + a0 = 1; + a3 = 7; + a22 = 0; + a12 = 12; + a27 = 0; + } + return 21; + } else if(((((a3==7)&&((a18==1)&&((a20==1)&&(!(a6==1)&&(((a4==1)&&((!(a15==1)&&(!(a0==1)&&(input==4)))&&(a22==1)))&&(a5==1))))))&&!(a27==1))&&(a12==9))){ + a0 = 1; + a5 = 0; + a18 = 0; + a12 = 10; + a15 = 1; + a6 = 1; + a22 = 0; + return -1; + } else if((!(a6==1)&&((((((a20==1)&&((!(a5==1)&&((!(a4==1)&&(!(a22==1)&&(input==1)))&&!(a0==1)))&&!(a27==1)))&&(a15==1))&&(a18==1))&&(a12==9))&&(a3==7)))){ + a4 = 1; + a12 = 8; + a3 = 6; + a27 = 1; + a22 = 1; + a0 = 1; + a5 = 1; + return 26; + } else if(((((a0==1)&&((((a12==10)&&((a27==1)&&((a4==1)&&(!(a5==1)&&(((a22==1)&&(input==2))&&!(a18==1))))))&&(a6==1))&&!(a15==1)))&&(a3==6))&&(a20==1))){ + if((a20==1)){ + a18 = 1; + a4 = 0; + a0 = 0; + a12 = 8; + a3 = 8; + a15 = 1; + a5 = 1; + }else{ + a6 = 0; + a0 = 0; + a12 = 11; + } + return 21; + } else if(((((a0==1)&&(((((a27==1)&&((a20==1)&&((((a3==7)&&(!(a18==1)&&(a22==1)))||(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1)))))&&(input==4))))&&!(a15==1))&&!(a4==1))&&!(a6==1)))&&!(a5==1))&&(a12==9))){ + a18 = 0; + a6 = 1; + a12 = 11; + a5 = 1; + a22 = 0; + a3 = 7; + return 21; + } else if((((a4==1)&&(((((a3==4)&&((((((a20==1)&&(input==2))&&!(a5==1))&&(a18==1))&&!(a15==1))&&(a22==1)))&&(a12==8))&&(a0==1))&&(a6==1)))&&!(a27==1))){ + a5 = 1; + a15 = 1; + a27 = 1; + return -1; + } else if(((((a3==6)&&((a0==1)&&(!(a15==1)&&((a18==1)&&((a20==1)&&(((a22==1)&&((a12==12)&&((input==4)&&!(a6==1))))&&(a5==1)))))))&&(a27==1))&&!(a4==1))){ + if((a22==1)){ + a6 = 1; + a12 = 11; + a3 = 7; + a5 = 0; + a0 = 0; + a15 = 1; + a18 = 0; + }else{ + a12 = 9; + a4 = 1; + a5 = 0; + a15 = 1; + a3 = 7; + a6 = 1; + a0 = 0; + a18 = 0; + } + return -1; + } else if(((((a5==1)&&(((((a20==1)&&((a12==10)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6))&&!(a4==1))))&&(a3==8))&&!(a6==1))&&!(a15==1)))&&!(a0==1))&&!(a27==1))){ + a12 = 8; + a18 = 1; + a27 = 1; + a22 = 1; + a3 = 7; + a15 = 1; + a0 = 1; + a4 = 1; + return -1; + } else if(((a5==1)&&(((!(a27==1)&&((((((!(a6==1)&&(((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8)))||((a6==1)&&((a3==4)&&(!(a4==1)&&((a22==1)&&(a18==1))))))||((a6==1)&&((!(a4==1)&&((a22==1)&&!(a18==1)))&&(a3==4))))&&(input==6))&&(a15==1))&&(a12==12)))&&(a0==1))&&(a20==1)))){ + a18 = 0; + a4 = 0; + a12 = 11; + a3 = 6; + a22 = 0; + a6 = 1; + return -1; + } else if(((((((a5==1)&&((((((a3==8)&&((!(a22==1)&&!(a18==1))&&(a4==1)))&&!(a6==1))||(((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))&&(a6==1)))&&(input==6))&&(a12==9)))&&(a20==1))&&!(a15==1))&&(a0==1))&&!(a27==1))){ + a6 = 1; + a12 = 8; + a3 = 8; + a15 = 1; + a4 = 0; + a22 = 1; + a18 = 1; + a27 = 1; + return -1; + } else if(((a20==1)&&((((!(a15==1)&&((a12==10)&&((!(a5==1)&&(!(a4==1)&&((((a18==1)||!(a18==1))&&(input==5))&&(a0==1))))&&!(a27==1))))&&(a6==1))&&(a3==4))&&!(a22==1)))){ + a3 = 6; + a22 = 1; + a18 = 1; + a5 = 1; + a4 = 1; + a6 = 0; + return -1; + } else if((!(a27==1)&&(((((!(a6==1)&&(!(a4==1)&&(((((a3==5)&&((a22==1)&&!(a18==1)))||(((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==5))))&&(input==4))&&(a0==1))))&&!(a5==1))&&(a20==1))&&!(a15==1))&&(a12==9)))){ + a12 = 10; + a18 = 1; + a15 = 1; + a22 = 0; + a27 = 1; + a3 = 8; + return 26; + } else if((((a15==1)&&((((a20==1)&&((((!(a18==1)&&(((a3==8)&&(input==6))&&(a4==1)))&&(a12==12))&&(a6==1))&&(a22==1)))&&!(a0==1))&&!(a5==1)))&&(a27==1))){ + a18 = 1; + a3 = 4; + a22 = 0; + a0 = 1; + a12 = 10; + return -1; + } else if((!(a18==1)&&((a12==11)&&((((!(a6==1)&&((a27==1)&&((a15==1)&&(!(a4==1)&&(!(a22==1)&&((a0==1)&&(input==6)))))))&&(a20==1))&&(a3==6))&&!(a5==1))))){ + a27 = 0; + a18 = 1; + a4 = 1; + return 21; + } else if((((a12==8)&&((a0==1)&&((((!(a15==1)&&((((a20==1)&&((a18==1)&&(input==6)))&&!(a22==1))&&(a6==1)))&&(a5==1))&&(a4==1))&&(a27==1))))&&(a3==8))){ + a5 = 0; + a22 = 1; + a3 = 5; + a6 = 0; + a15 = 1; + a4 = 0; + return 26; + } else if(((((((a5==1)&&((((a0==1)&&((a27==1)&&(!(a4==1)&&((a6==1)&&(input==3)))))&&!(a18==1))&&(a3==5)))&&!(a15==1))&&(a12==11))&&(a20==1))&&(a22==1))){ + a12 = 10; + a22 = 0; + a3 = 4; + return -1; + } else if(((a20==1)&&(!(a27==1)&&(!(a6==1)&&((((!(a4==1)&&(((((a3==5)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4))))&&(input==4))&&(a0==1)))&&(a5==1))&&!(a15==1))&&(a12==11)))))){ + a3 = 7; + a18 = 0; + a27 = 1; + a22 = 0; + a12 = 10; + return 26; + } else if(((a6==1)&&((a12==10)&&(((a5==1)&&((a4==1)&&(!(a15==1)&&((a3==7)&&((((input==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&(a20==1))&&!(a0==1))))))&&(a27==1))))){ + a3 = 6; + a12 = 11; + a0 = 1; + a18 = 0; + a22 = 1; + return -1; + } else if((!(a27==1)&&((a12==8)&&(!(a0==1)&&(((((((a4==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==3)))&&(a15==1))&&(a20==1))&&(a6==1))&&(a5==1))&&(a3==6)))))){ + a3 = 8; + a22 = 1; + a4 = 0; + a12 = 12; + a27 = 1; + a18 = 0; + return 26; + } else if((((a15==1)&&((((a27==1)&&((!(a4==1)&&(((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1)))))&&(input==1)))&&(a12==11)))&&!(a0==1))&&!(a5==1)))&&(a20==1))){ + a0 = 1; + a6 = 0; + a3 = 6; + a12 = 10; + a18 = 1; + a22 = 1; + return 26; + } else if(((!(a22==1)&&((a20==1)&&((((a3==7)&&((((((a12==9)&&(input==3))&&!(a4==1))&&!(a27==1))&&(a18==1))&&!(a0==1)))&&(a15==1))&&!(a5==1))))&&!(a6==1))){ + a5 = 1; + a12 = 8; + a4 = 1; + a0 = 1; + a27 = 1; + a3 = 6; + return 26; + } else if(((a20==1)&&((((a12==11)&&((!(a27==1)&&((a4==1)&&(((!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1))))||(((a6==1)&&((!(a22==1)&&(a18==1))&&(a3==8)))||(((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))))&&(input==3))))&&!(a0==1)))&&!(a15==1))&&!(a5==1)))){ + a22 = 1; + a3 = 4; + a0 = 1; + a27 = 1; + a6 = 1; + a15 = 1; + a5 = 1; + a12 = 8; + a18 = 0; + return 26; + } else if(((a27==1)&&(!(a22==1)&&(((!(a18==1)&&(((!(a6==1)&&(((a20==1)&&((a3==5)&&(input==5)))&&(a4==1)))&&(a0==1))&&!(a15==1)))&&(a12==8))&&(a5==1))))){ + a3 = 4; + a18 = 1; + a15 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if(((a5==1)&&((a20==1)&&(((((!(a0==1)&&(((((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1))||((((a3==8)&&(!(a22==1)&&(a18==1)))&&(a6==1))||(((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))))&&(input==3)))&&(a15==1))&&(a27==1))&&(a12==12))&&(a4==1))))){ + a6 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + a18 = 1; + a0 = 1; + return -1; + } else if(((!(a6==1)&&((((a12==9)&&((a0==1)&&((((input==6)&&((((a3==6)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==6)))||((a3==7)&&((a22==1)&&(a18==1)))))&&(a27==1))&&(a20==1))))&&!(a15==1))&&(a4==1)))&&(a5==1))){ + a6 = 1; + a3 = 6; + a18 = 1; + a5 = 0; + a12 = 11; + a22 = 1; + return 26; + } else if(((a12==10)&&(!(a27==1)&&((!(a0==1)&&(((((a6==1)&&((a3==7)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==6))))&&!(a4==1))&&!(a5==1))&&!(a15==1)))&&(a20==1))))){ + a12 = 8; + a22 = 1; + a18 = 0; + a3 = 6; + a0 = 1; + a27 = 1; + a15 = 1; + a5 = 1; + return 24; + } else if((!(a4==1)&&((a20==1)&&(((a12==9)&&((((a3==7)&&((((input==1)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a5==1))&&!(a15==1)))&&!(a27==1))&&!(a0==1)))&&!(a6==1))))){ + a12 = 8; + a18 = 1; + a0 = 1; + a3 = 5; + a22 = 0; + a4 = 1; + a27 = 1; + a15 = 1; + return -1; + } else if(((a12==11)&&(!(a22==1)&&((a3==7)&&(((a5==1)&&((a4==1)&&((((a20==1)&&(!(a15==1)&&(!(a6==1)&&(input==3))))&&!(a18==1))&&!(a27==1))))&&!(a0==1)))))){ + a27 = 1; + a12 = 8; + a0 = 1; + a4 = 0; + a22 = 1; + a6 = 1; + a15 = 1; + return -1; + } else if((((((a5==1)&&(((((a3==7)&&((!(a15==1)&&((input==2)&&(a12==9)))&&!(a4==1)))&&(a20==1))&&(a6==1))&&!(a27==1)))&&!(a18==1))&&!(a0==1))&&!(a22==1))){ + a27 = 1; + a22 = 1; + a3 = 6; + a12 = 12; + a18 = 1; + a4 = 1; + a6 = 0; + return -1; + } else if((!(a4==1)&&((a3==5)&&(!(a6==1)&&(!(a27==1)&&((a5==1)&&(((((a12==8)&&((input==4)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))))&&(a20==1))&&(a15==1))&&(a0==1)))))))){ + a22 = 0; + a4 = 1; + a18 = 1; + a27 = 1; + a5 = 0; + a12 = 10; + a0 = 0; + return 26; + } else if(((((!(a15==1)&&((a27==1)&&(!(a0==1)&&((a5==1)&&(((input==6)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1)))))&&(a4==1))))))&&!(a6==1))&&(a20==1))&&(a12==11))){ + a0 = 1; + a3 = 8; + a15 = 1; + a4 = 0; + a18 = 0; + a22 = 1; + return -1; + } else if(((a20==1)&&(((a12==10)&&(((!(a5==1)&&(((a6==1)&&((((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a22==1)&&!(a18==1))))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==6)))&&!(a0==1)))&&(a27==1))&&(a15==1)))&&!(a4==1)))){ + a4 = 1; + a3 = 7; + a22 = 1; + a18 = 1; + a12 = 12; + a0 = 1; + return 26; + } else if((!(a27==1)&&(((a3==6)&&((a20==1)&&((a4==1)&&(((((a0==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==3)))&&!(a6==1))&&!(a15==1))&&(a12==12)))))&&!(a5==1)))){ + a22 = 1; + a18 = 1; + a27 = 1; + a3 = 4; + return -1; + } else if(((a5==1)&&(((a3==4)&&((a15==1)&&(!(a0==1)&&(!(a18==1)&&((((!(a27==1)&&((a6==1)&&(input==3)))&&(a12==9))&&(a20==1))&&(a22==1))))))&&!(a4==1)))){ + if((a20==1)){ + a27 = 1; + a18 = 1; + a12 = 8; + a0 = 1; + a6 = 0; + }else{ + a22 = 0; + a4 = 1; + a18 = 1; + a27 = 1; + a12 = 8; + a0 = 1; + a3 = 5; + } + return 21; + } else if((((a3==8)&&((a20==1)&&(((a12==11)&&((!(a18==1)&&(((((input==4)&&(a6==1))&&!(a15==1))&&(a22==1))&&(a5==1)))&&(a0==1)))&&!(a4==1))))&&(a27==1))){ + a27 = 0; + a15 = 1; + a18 = 1; + return 26; + } else if((!(a5==1)&&(((((a22==1)&&(((a3==7)&&((((!(a15==1)&&(input==3))&&(a12==12))&&(a18==1))&&!(a4==1)))&&!(a6==1)))&&!(a0==1))&&(a27==1))&&(a20==1)))){ + a22 = 0; + a0 = 1; + a3 = 8; + a15 = 1; + a6 = 1; + a12 = 8; + a5 = 1; + return -1; + } else if(((a20==1)&&(((((a6==1)&&((((a4==1)&&((input==6)&&(((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||((a3==6)&&((a18==1)&&(a22==1))))))&&(a15==1))&&!(a27==1)))&&!(a5==1))&&(a12==9))&&!(a0==1)))){ + a22 = 1; + a27 = 1; + a5 = 1; + a0 = 1; + a18 = 1; + a3 = 6; + a6 = 0; + a4 = 0; + return 24; + } else if((!(a0==1)&&((a15==1)&&((a4==1)&&((((a20==1)&&(((a12==8)&&(((input==2)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&!(a5==1)))&&!(a6==1)))&&(a27==1))&&(a3==6)))))){ + a6 = 1; + a12 = 12; + a22 = 1; + a0 = 1; + a3 = 8; + a18 = 1; + a27 = 0; + a5 = 1; + return 26; + } else if(((((a0==1)&&(((((a4==1)&&(!(a15==1)&&((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==2))&&(a5==1))))&&(a3==8))&&(a12==12))&&(a27==1)))&&(a20==1))&&(a6==1))){ + a3 = 4; + a18 = 0; + a6 = 0; + a12 = 11; + a4 = 0; + a22 = 0; + return -1; + } else if((!(a15==1)&&((a6==1)&&(!(a0==1)&&((a12==12)&&((!(a5==1)&&((((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==3))&&(a27==1))&&(a20==1)))&&(a4==1))))))){ + a6 = 0; + a12 = 8; + a5 = 1; + a22 = 1; + a15 = 1; + a18 = 1; + a3 = 6; + a0 = 1; + return -1; + } else if(((a27==1)&&((((a5==1)&&(((a12==11)&&((a20==1)&&((a15==1)&&(((input==3)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a0==1)))))&&!(a6==1)))&&(a3==5))&&(a4==1)))){ + a3 = 8; + a0 = 1; + a27 = 0; + a22 = 0; + a12 = 12; + a15 = 0; + a18 = 1; + return 21; + } else if((!(a6==1)&&((a12==10)&&(((a4==1)&&(((a0==1)&&(!(a22==1)&&((a15==1)&&((((input==6)&&(a3==4))&&(a27==1))&&(a5==1)))))&&!(a18==1)))&&(a20==1))))){ + a6 = 1; + a12 = 8; + a22 = 1; + a18 = 1; + return -1; + } else if(((a20==1)&&(!(a6==1)&&(((((!(a4==1)&&(!(a0==1)&&(((input==2)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a3==5))))&&!(a5==1))&&(a12==9))&&(a15==1))&&!(a27==1))))){ + a15 = 0; + a4 = 1; + a3 = 7; + a18 = 0; + a22 = 0; + a0 = 1; + a12 = 10; + return -1; + } else if((!(a27==1)&&((((a0==1)&&(((a15==1)&&((a4==1)&&((input==1)&&((((a3==4)&&(!(a18==1)&&(a22==1)))&&!(a6==1))||((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4))))))))&&(a5==1)))&&(a12==12))&&(a20==1)))){ + if((a22==1)){ + a22 = 0; + a4 = 0; + a27 = 1; + a6 = 1; + a3 = 8; + a12 = 9; + a18 = 0; + a0 = 0; + }else{ + a22 = 0; + a3 = 4; + a6 = 1; + a15 = 0; + a18 = 1; + a4 = 0; + a12 = 8; + } + return -1; + } else if((!(a18==1)&&((a15==1)&&((a6==1)&&(((a4==1)&&(((a12==11)&&(((a20==1)&&(((input==1)&&(a3==7))&&(a22==1)))&&(a0==1)))&&!(a5==1)))&&(a27==1)))))){ + a22 = 0; + a6 = 0; + a15 = 0; + a3 = 5; + a4 = 0; + a5 = 1; + a12 = 12; + return 21; + } else if(((!(a4==1)&&((a0==1)&&((a6==1)&&((a3==7)&&(!(a15==1)&&(!(a27==1)&&(((a12==12)&&((input==3)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a20==1))))))))&&!(a5==1))){ + a18 = 1; + a22 = 1; + a5 = 1; + a15 = 1; + a27 = 1; + a3 = 4; + a12 = 8; + a4 = 1; + return -1; + } else if((((!(a15==1)&&((((!(a4==1)&&((a3==4)&&(((input==2)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&(a20==1))))&&(a12==9))&&!(a27==1))&&(a0==1)))&&!(a5==1))&&!(a6==1))){ + a27 = 1; + a5 = 1; + a12 = 12; + a18 = 1; + a22 = 1; + a3 = 6; + return 26; + } else if((((!(a15==1)&&(((a0==1)&&((((!(a6==1)&&((input==3)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))))&&(a12==9))&&(a20==1))&&(a5==1)))&&!(a27==1)))&&(a3==7))&&(a4==1))){ + a3 = 4; + a5 = 0; + a22 = 0; + a6 = 1; + a18 = 0; + return 26; + } else if(((a6==1)&&((((a0==1)&&(!(a5==1)&&((!(a27==1)&&(!(a4==1)&&((input==6)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7))))))&&(a20==1))))&&(a12==8))&&(a15==1)))){ + a3 = 7; + a12 = 11; + a18 = 1; + a22 = 1; + a5 = 1; + return 24; + } else if(((a0==1)&&((a6==1)&&(!(a22==1)&&(((a20==1)&&((((a15==1)&&((((input==3)&&((a18==1)||!(a18==1)))&&!(a27==1))&&(a3==8)))&&!(a5==1))&&(a4==1)))&&(a12==8)))))){ + a3 = 6; + a4 = 0; + a27 = 1; + a22 = 1; + a12 = 10; + a6 = 0; + a18 = 1; + return 21; + } else if(((((((a3==8)&&(!(a15==1)&&((a0==1)&&(((a5==1)&&((a12==11)&&(!(a18==1)&&(input==6))))&&(a22==1)))))&&!(a4==1))&&(a20==1))&&!(a27==1))&&!(a6==1))){ + if((a20==1)){ + a4 = 1; + a3 = 7; + a15 = 1; + a12 = 8; + a22 = 0; + a27 = 1; + a0 = 0; + a5 = 0; + }else{ + a3 = 6; + a6 = 1; + a22 = 0; + a15 = 1; + a12 = 12; + a18 = 1; + a27 = 1; + } + return 24; + } else if(((((a0==1)&&((input==6)&&((((a3==4)&&((a4==1)&&((a12==10)&&((((a18==1)&&(a22==1))&&(a5==1))&&(a15==1)))))&&(a6==1))||((((((a12==9)&&(!(a15==1)&&(((a18==1)&&!(a22==1))&&!(a5==1))))&&!(a4==1))&&(a3==8))&&!(a6==1))||(!(a6==1)&&((((a12==9)&&(!(a15==1)&&((!(a22==1)&&!(a18==1))&&!(a5==1))))&&!(a4==1))&&(a3==8)))))))&&(a27==1))&&(a20==1))){ + a6 = 1; + a5 = 1; + a4 = 1; + a22 = 1; + a15 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + return -1; + } else if((((a20==1)&&((a4==1)&&(!(a15==1)&&(!(a27==1)&&((((a3==4)&&(((input==1)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&!(a0==1)))&&(a12==9))&&!(a6==1))))))&&(a5==1))){ + if((a20==1)){ + a22 = 1; + a6 = 1; + a18 = 1; + a0 = 1; + a5 = 0; + a3 = 6; + a15 = 1; + a12 = 11; + }else{ + a18 = 1; + a4 = 0; + a27 = 1; + a0 = 1; + a12 = 8; + a22 = 1; + a15 = 1; + } + return -1; + } else if((((a3==7)&&((a27==1)&&((a4==1)&&((((!(a0==1)&&((a20==1)&&((input==1)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))))&&(a6==1))&&(a12==8))&&!(a15==1)))))&&!(a5==1))){ + a18 = 1; + a22 = 0; + a12 = 11; + a0 = 1; + a3 = 6; + a5 = 1; + a4 = 0; + return 21; + } else if((((a20==1)&&((a0==1)&&(((!(a15==1)&&((((a3==7)&&((a18==1)&&((input==4)&&(a27==1))))&&!(a4==1))&&(a22==1)))&&(a12==12))&&!(a6==1))))&&!(a5==1))){ + a4 = 1; + a15 = 1; + a12 = 11; + a3 = 4; + a27 = 0; + a6 = 1; + return 21; + } else if(((((((((a4==1)&&(!(a22==1)&&((((a12==11)&&(input==5))&&(a15==1))&&!(a5==1))))&&(a6==1))&&(a3==5))&&(a18==1))&&(a20==1))&&(a27==1))&&!(a0==1))){ + a3 = 8; + a0 = 1; + a22 = 1; + a4 = 0; + a15 = 0; + a5 = 1; + return 21; + } else if((!(a15==1)&&(((a6==1)&&(((a20==1)&&((a0==1)&&(!(a5==1)&&(!(a22==1)&&((a3==5)&&((((a18==1)||!(a18==1))&&(input==3))&&!(a4==1)))))))&&(a12==8)))&&(a27==1)))){ + a5 = 1; + a12 = 11; + a6 = 0; + a4 = 1; + a18 = 1; + a3 = 7; + a22 = 1; + return 21; + } else if(((a0==1)&&((a12==8)&&((a22==1)&&(((a20==1)&&((a4==1)&&((a6==1)&&(((!(a15==1)&&((input==1)&&(a27==1)))&&!(a18==1))&&(a3==5)))))&&(a5==1)))))){ + a3 = 8; + a22 = 0; + a0 = 0; + a12 = 9; + a6 = 0; + a18 = 1; + a5 = 0; + return 21; + } return calculate_output49(input); + } + + int calculate_output49(int input) { + if((((((!(a0==1)&&(!(a6==1)&&(((a4==1)&&((a20==1)&&((input==6)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))))&&(a5==1))))&&(a3==7))&&(a12==11))&&!(a15==1))&&(a27==1))){ + a15 = 1; + a4 = 0; + a18 = 0; + a0 = 1; + a6 = 1; + a22 = 1; + a27 = 0; + a12 = 8; + a3 = 4; + return 26; + } else if(((((a3==6)&&(!(a15==1)&&((a12==9)&&((a20==1)&&((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==4))&&(a4==1))&&(a27==1))&&(a6==1))))))&&!(a5==1))&&(a0==1))){ + a18 = 1; + a4 = 0; + a15 = 1; + a22 = 0; + a3 = 5; + a12 = 12; + a5 = 1; + a6 = 0; + return 21; + } else if((!(a18==1)&&(((a4==1)&&(((a20==1)&&((a22==1)&&((a12==9)&&(!(a27==1)&&(((a3==6)&&(!(a0==1)&&(input==2)))&&!(a6==1))))))&&!(a5==1)))&&(a15==1)))){ + a4 = 0; + a3 = 4; + a0 = 1; + a22 = 0; + a18 = 1; + a12 = 12; + return 26; + } else if(((a12==11)&&(((a27==1)&&((a6==1)&&((a22==1)&&(!(a0==1)&&((a15==1)&&(((((input==3)&&(a18==1))&&(a3==5))&&!(a4==1))&&(a20==1)))))))&&!(a5==1)))){ + a4 = 1; + a0 = 1; + a12 = 8; + a3 = 4; + a5 = 1; + return -1; + } else if(((a3==5)&&((((((a12==8)&&(((a15==1)&&(!(a4==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2))))&&(a20==1)))&&!(a0==1))&&!(a5==1))&&(a6==1))&&!(a27==1)))){ + a3 = 8; + a18 = 0; + a22 = 1; + a6 = 0; + return 26; + } else if((!(a0==1)&&((((((a4==1)&&(!(a27==1)&&((((a12==9)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a15==1))&&(a22==1))))&&(a3==5))&&(a20==1))&&!(a5==1))&&(a6==1)))){ + if((a15==1)){ + a18 = 0; + a6 = 0; + a0 = 1; + a27 = 1; + a12 = 8; + a5 = 1; + }else{ + a4 = 0; + a0 = 1; + a3 = 8; + a5 = 1; + a22 = 0; + a12 = 11; + a18 = 1; + } + return -1; + } else if(((!(a4==1)&&(!(a6==1)&&(((a20==1)&&((((a12==11)&&(!(a27==1)&&(((input==3)&&(a3==4))&&!(a5==1))))&&!(a15==1))&&(a18==1)))&&!(a0==1))))&&(a22==1))){ + if((a22==1)){ + a3 = 6; + a0 = 1; + a12 = 8; + a27 = 1; + a15 = 1; + a5 = 1; + a22 = 0; + a4 = 1; + }else{ + a15 = 1; + a12 = 8; + a3 = 6; + a18 = 0; + a5 = 1; + } + return -1; + } else if(((a5==1)&&((a22==1)&&((!(a27==1)&&(!(a4==1)&&(((a6==1)&&((a3==6)&&(((a15==1)&&((input==6)&&!(a0==1)))&&(a12==8))))&&!(a18==1))))&&(a20==1))))){ + if((a3==4)){ + a15 = 0; + a6 = 0; + a4 = 1; + a12 = 11; + a3 = 4; + a0 = 1; + a22 = 0; + }else{ + a0 = 1; + a27 = 1; + a3 = 7; + a4 = 1; + a6 = 0; + } + return -1; + } else if((((((a27==1)&&((a20==1)&&((a4==1)&&((a3==6)&&((a6==1)&&((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==3))&&(a0==1)))))))&&(a15==1))&&(a5==1))&&(a12==9))){ + if((a12==9)){ + a3 = 8; + a0 = 0; + a5 = 0; + a6 = 0; + a12 = 8; + a18 = 0; + a22 = 0; + }else{ + a18 = 0; + a12 = 11; + a22 = 1; + a6 = 0; + a5 = 0; + a3 = 7; + a15 = 0; + } + return 26; + } else if(((a27==1)&&((!(a15==1)&&((a12==8)&&(((((((((a18==1)||!(a18==1))&&(input==5))&&(a6==1))&&!(a4==1))&&!(a5==1))&&!(a22==1))&&(a0==1))&&(a3==7))))&&(a20==1)))){ + a22 = 1; + a3 = 4; + a18 = 1; + a4 = 1; + a15 = 1; + a5 = 1; + return -1; + } else if((((!(a5==1)&&((!(a15==1)&&(((a6==1)&&((a12==8)&&((input==2)&&((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7)))||(((a22==1)&&!(a18==1))&&(a3==7))))))&&(a27==1)))&&(a20==1)))&&!(a4==1))&&(a0==1))){ + a3 = 6; + a18 = 1; + a5 = 1; + a22 = 0; + a12 = 11; + return 21; + } else if((!(a18==1)&&((!(a0==1)&&(((a27==1)&&(!(a6==1)&&(((a3==6)&&((((a5==1)&&(input==6))&&!(a15==1))&&(a12==12)))&&(a4==1))))&&!(a22==1)))&&(a20==1)))){ + a6 = 1; + a12 = 11; + a3 = 5; + a22 = 1; + a27 = 0; + a5 = 0; + return -1; + } else if(((!(a0==1)&&((!(a27==1)&&((((a12==9)&&(((input==6)&&((((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==6)))||((a3==7)&&((a18==1)&&(a22==1)))))&&(a15==1)))&&(a20==1))&&(a5==1)))&&(a6==1)))&&(a4==1))){ + a3 = 5; + a18 = 0; + a0 = 1; + a22 = 1; + a27 = 1; + a12 = 8; + a4 = 0; + return 21; + } else if(((((((a20==1)&&(!(a6==1)&&(((a0==1)&&((input==2)&&(((!(a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1)))))))&&(a5==1))))&&(a27==1))&&!(a15==1))&&!(a4==1))&&(a12==12))){ + a22 = 1; + a3 = 5; + a18 = 1; + return -1; + } else if(((a0==1)&&(((a20==1)&&((a3==5)&&((a12==11)&&((a4==1)&&(((!(a5==1)&&(!(a6==1)&&(((a18==1)||!(a18==1))&&(input==5))))&&(a27==1))&&(a15==1))))))&&!(a22==1)))){ + a3 = 4; + a22 = 1; + a6 = 1; + a12 = 8; + a18 = 1; + a5 = 1; + return -1; + } else if(((!(a4==1)&&(((a20==1)&&((a12==8)&&((((input==5)&&((((a6==1)&&((!(a22==1)&&(a18==1))&&(a3==8)))||((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8))))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1))))&&!(a5==1))&&(a0==1))))&&!(a15==1)))&&(a27==1))){ + a12 = 11; + a22 = 1; + a3 = 5; + a18 = 0; + a6 = 0; + a5 = 1; + return 26; + } else if((((a4==1)&&(!(a22==1)&&(!(a6==1)&&((a20==1)&&((a12==12)&&((a27==1)&&(!(a0==1)&&((((input==4)&&((a18==1)||!(a18==1)))&&(a3==4))&&!(a5==1)))))))))&&(a15==1))){ + if((a3==7)){ + a27 = 0; + a3 = 7; + a12 = 8; + a15 = 0; + a0 = 1; + a5 = 1; + a18 = 1; + a4 = 0; + }else{ + a5 = 1; + a12 = 10; + a18 = 0; + a3 = 7; + } + return -1; + } else if(((a27==1)&&((((a0==1)&&((!(a22==1)&&((a3==7)&&(((((input==2)&&(a20==1))&&(a4==1))&&(a12==11))&&(a18==1))))&&!(a15==1)))&&(a6==1))&&!(a5==1)))){ + a12 = 8; + a3 = 4; + a15 = 1; + a5 = 1; + a22 = 1; + return -1; + } else if((!(a27==1)&&((a20==1)&&((a22==1)&&((((a12==11)&&((a0==1)&&(!(a15==1)&&(((((a18==1)||!(a18==1))&&(input==4))&&(a3==4))&&!(a6==1)))))&&!(a4==1))&&!(a5==1)))))){ + a18 = 0; + a4 = 1; + a22 = 0; + a5 = 1; + a27 = 1; + a3 = 6; + a12 = 12; + a15 = 1; + return -1; + } else if((!(a15==1)&&(((a12==11)&&((a18==1)&&((a5==1)&&((a3==5)&&((!(a4==1)&&((a27==1)&&((a6==1)&&((a0==1)&&(input==4)))))&&!(a22==1))))))&&(a20==1)))){ + a3 = 7; + a4 = 1; + a18 = 0; + a22 = 1; + a6 = 0; + a12 = 10; + a0 = 0; + return 24; + } else if((((!(a6==1)&&(!(a0==1)&&((a20==1)&&(((a3==4)&&(((a5==1)&&((input==3)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a12==12)))&&(a15==1)))))&&(a4==1))&&(a27==1))){ + a5 = 0; + a4 = 0; + a6 = 1; + a22 = 0; + a0 = 1; + a3 = 7; + a18 = 0; + return -1; + } else if((!(a15==1)&&((((((a12==11)&&((!(a22==1)&&((((a27==1)&&(input==5))&&(a0==1))&&!(a4==1)))&&!(a6==1)))&&(a3==4))&&(a20==1))&&!(a18==1))&&(a5==1)))){ + a22 = 1; + a4 = 1; + a12 = 8; + a18 = 1; + a15 = 1; + a6 = 1; + return -1; + } else if(((a4==1)&&((((((a12==11)&&((a0==1)&&((a15==1)&&((a22==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a20==1))))))&&(a3==7))&&!(a6==1))&&!(a5==1))&&(a27==1)))){ + a6 = 1; + a18 = 1; + a12 = 10; + a4 = 0; + a15 = 0; + a3 = 5; + return -1; + } else if(((a15==1)&&(((a5==1)&&(((a20==1)&&((!(a4==1)&&((a12==10)&&((input==5)&&(((!(a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5)))))))&&(a27==1)))&&!(a0==1)))&&(a6==1)))){ + a4 = 1; + a12 = 8; + a22 = 1; + a0 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a18==1)&&((((a22==1)&&((a3==8)&&(!(a27==1)&&((!(a4==1)&&(((a6==1)&&((a0==1)&&(input==1)))&&(a5==1)))&&(a12==8)))))&&(a15==1))&&(a20==1)))){ + a3 = 4; + a5 = 0; + a18 = 0; + a15 = 0; + a27 = 1; + a12 = 10; + a22 = 0; + return 26; + } else if(((a4==1)&&((a5==1)&&((a0==1)&&(((a20==1)&&((a15==1)&&(!(a27==1)&&(!(a6==1)&&((input==5)&&(((((a18==1)&&!(a22==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7)))||(((a22==1)&&(a18==1))&&(a3==8))))))))&&(a12==12)))))){ + a15 = 0; + a3 = 4; + a12 = 11; + a27 = 1; + a18 = 1; + a22 = 1; + a5 = 0; + return 26; + } else if(((((((a4==1)&&((a27==1)&&((a15==1)&&(((((a12==9)&&(input==1))&&!(a5==1))&&(a6==1))&&(a0==1)))))&&!(a22==1))&&(a20==1))&&(a3==7))&&(a18==1))){ + a3 = 4; + a12 = 8; + a5 = 1; + a22 = 1; + return -1; + } else if(((((!(a18==1)&&((((!(a5==1)&&((((input==3)&&(a15==1))&&(a0==1))&&!(a6==1)))&&(a12==8))&&(a20==1))&&!(a27==1)))&&(a4==1))&&(a22==1))&&(a3==6))){ + a18 = 1; + a27 = 1; + a5 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if(((a0==1)&&((a6==1)&&((((a3==5)&&(!(a18==1)&&(((((a5==1)&&(!(a4==1)&&(input==1)))&&(a20==1))&&(a12==9))&&!(a27==1))))&&(a22==1))&&!(a15==1))))){ + a18 = 1; + a22 = 0; + a12 = 8; + a3 = 7; + a6 = 0; + a4 = 1; + return -1; + } else if((!(a5==1)&&((a12==8)&&(((((a20==1)&&(!(a4==1)&&(((input==3)&&(((((a18==1)&&!(a22==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4)))||((a3==5)&&((a22==1)&&(a18==1)))))&&!(a27==1))))&&!(a0==1))&&(a15==1))&&(a6==1))))){ + a27 = 1; + a6 = 0; + a0 = 1; + a4 = 1; + a3 = 6; + a22 = 1; + a15 = 0; + a18 = 1; + a5 = 1; + return 26; + } else if((((a12==9)&&((a3==8)&&(!(a5==1)&&(!(a6==1)&&((a22==1)&&((((!(a27==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a0==1))&&(a4==1))&&!(a15==1)))))))&&(a20==1))){ + a15 = 1; + a27 = 1; + a0 = 0; + a4 = 0; + a18 = 1; + return 24; + } else if(((a3==7)&&(!(a5==1)&&(((((a15==1)&&(((((a4==1)&&((a12==11)&&(input==6)))&&(a18==1))&&(a22==1))&&(a27==1)))&&(a0==1))&&(a20==1))&&(a6==1))))){ + a5 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((!(a6==1)&&((((((a27==1)&&(!(a5==1)&&((((input==6)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a4==1))&&(a3==8))))&&!(a15==1))&&!(a0==1))&&(a12==8))&&(a20==1)))){ + a22 = 0; + a3 = 6; + a27 = 0; + a12 = 9; + a6 = 1; + a0 = 1; + a18 = 0; + a4 = 1; + return 21; + } else if(((a12==11)&&(((!(a5==1)&&((a20==1)&&((!(a27==1)&&(((input==4)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1))))||(((a22==1)&&!(a18==1))&&(a3==6))))&&!(a15==1)))&&(a6==1))))&&(a0==1))&&!(a4==1)))){ + a22 = 0; + a15 = 1; + a3 = 5; + a18 = 1; + a6 = 0; + a4 = 1; + return -1; + } else if((!(a6==1)&&(!(a0==1)&&((a12==8)&&(((((a20==1)&&(((a27==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==3)))&&!(a5==1)))&&!(a4==1))&&(a3==5))&&(a15==1)))))){ + a15 = 0; + a0 = 1; + a4 = 1; + a3 = 6; + a22 = 0; + a18 = 0; + a12 = 10; + return 21; + } else if(((a6==1)&&((a12==12)&&((((a27==1)&&(!(a0==1)&&(!(a5==1)&&(((a20==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==3)))&&!(a4==1)))))&&(a3==6))&&(a15==1))))){ + a12 = 8; + a0 = 1; + a18 = 0; + a5 = 1; + a4 = 1; + a22 = 1; + return 26; + } else if((!(a27==1)&&(((a5==1)&&((((((a6==1)&&(((((a22==1)&&(a18==1))&&(a3==7))||(((!(a22==1)&&(a18==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6))))&&(input==2)))&&!(a4==1))&&!(a0==1))&&(a20==1))&&!(a15==1)))&&(a12==11)))){ + a18 = 1; + a22 = 1; + a6 = 0; + a12 = 8; + a3 = 5; + a27 = 1; + a4 = 1; + a15 = 1; + a0 = 1; + return 26; + } else if(((a12==9)&&(((a20==1)&&((a27==1)&&(!(a0==1)&&(!(a15==1)&&((input==3)&&((((!(a4==1)&&((a18==1)&&(a22==1)))&&(a3==4))&&(a6==1))||((!(a6==1)&&(((a4==1)&&((a18==1)&&!(a22==1)))&&(a3==8)))||(!(a6==1)&&(((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8))))))))))&&!(a5==1)))){ + a4 = 1; + a6 = 1; + a15 = 1; + a5 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + a0 = 1; + a18 = 1; + return -1; + } else if((!(a5==1)&&((a4==1)&&((a12==9)&&(((((!(a6==1)&&((input==2)&&(((a3==5)&&((a22==1)&&(a18==1)))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a18==1)&&!(a22==1)))))))&&(a15==1))&&(a0==1))&&(a27==1))&&(a20==1)))))){ + a15 = 0; + a12 = 10; + a22 = 0; + a18 = 1; + a5 = 1; + a3 = 8; + return 21; + } else if(((a0==1)&&((a15==1)&&((!(a27==1)&&((!(a5==1)&&((a4==1)&&(((((input==1)&&((a18==1)||!(a18==1)))&&(a6==1))&&(a22==1))&&(a20==1))))&&(a12==9)))&&(a3==4))))){ + a6 = 0; + a27 = 1; + a12 = 11; + a18 = 1; + a3 = 6; + return 24; + } else if((((a3==4)&&((a12==9)&&(!(a4==1)&&((((!(a6==1)&&((a22==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a5==1))))&&(a20==1))&&!(a27==1))&&(a0==1)))))&&!(a15==1))){ + a5 = 0; + a12 = 10; + a27 = 1; + a15 = 1; + a18 = 0; + a3 = 7; + return 21; + } else if(((((((a0==1)&&(((a12==11)&&((((input==5)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a27==1))&&!(a5==1)))&&(a15==1)))&&(a4==1))&&(a20==1))&&(a3==5))&&(a6==1))){ + a22 = 1; + a3 = 6; + a27 = 1; + a12 = 12; + a18 = 0; + return 26; + } else if(((a20==1)&&((a27==1)&&(!(a0==1)&&((((a5==1)&&((a22==1)&&((((a18==1)&&((input==4)&&(a12==12)))&&(a15==1))&&!(a6==1))))&&(a3==8))&&(a4==1)))))){ + a6 = 1; + a3 = 5; + a22 = 0; + a0 = 1; + return 26; + } else if(((((a0==1)&&(((((a20==1)&&((((((a22==1)&&(a18==1))&&(a3==7))||((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1)))))&&(input==3))&&(a12==9)))&&(a15==1))&&(a4==1))&&!(a5==1)))&&(a27==1))&&(a6==1))){ + a18 = 1; + a22 = 1; + a5 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((((a27==1)&&(((a0==1)&&(((a15==1)&&((a3==4)&&((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==5))&&(a12==12))))&&(a4==1)))&&!(a6==1)))&&(a20==1))&&(a5==1))){ + a22 = 1; + a3 = 8; + a12 = 10; + a5 = 0; + a18 = 0; + a4 = 0; + return 26; + } else if(((a12==9)&&(!(a5==1)&&(!(a15==1)&&(!(a0==1)&&(((((a3==7)&&(!(a22==1)&&((((a18==1)||!(a18==1))&&(input==2))&&(a4==1))))&&(a6==1))&&(a27==1))&&(a20==1))))))){ + a22 = 1; + a27 = 0; + a18 = 0; + a3 = 6; + a0 = 1; + a5 = 1; + a12 = 8; + return -1; + } else if(((a15==1)&&(((((((a12==12)&&((a0==1)&&((a20==1)&&((input==5)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))&&(a6==1))&&(a5==1))&&(a27==1))&&!(a4==1))&&(a3==4)))){ + a18 = 1; + a12 = 8; + a22 = 1; + a4 = 1; + return -1; + } else if((!(a6==1)&&(!(a15==1)&&((!(a4==1)&&((a20==1)&&((((a12==8)&&((((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==2)))&&!(a5==1))&&(a27==1))))&&!(a0==1))))){ + if((a20==1)){ + a18 = 1; + a15 = 1; + a12 = 10; + a3 = 8; + a22 = 0; + a6 = 1; + }else{ + a15 = 1; + a4 = 1; + a22 = 1; + a6 = 1; + a3 = 8; + a18 = 0; + a5 = 1; + a12 = 12; + } + return 26; + } else if(((a20==1)&&(!(a4==1)&&(!(a15==1)&&(!(a5==1)&&(!(a27==1)&&((a0==1)&&(((input==5)&&((((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1))))))&&(a12==12))))))))){ + if((a20==1)){ + a0 = 0; + a22 = 1; + a3 = 8; + a15 = 1; + a12 = 9; + a18 = 0; + a4 = 1; + a27 = 1; + a6 = 0; + }else{ + a12 = 10; + a3 = 7; + a27 = 1; + a18 = 0; + a22 = 1; + a6 = 1; + } + return 26; + } else if(((((((a12==12)&&((!(a18==1)&&((!(a22==1)&&(((input==1)&&!(a0==1))&&(a27==1)))&&(a3==4)))&&(a4==1)))&&(a5==1))&&(a20==1))&&(a6==1))&&(a15==1))){ + a12 = 10; + a6 = 0; + a3 = 6; + a18 = 1; + a0 = 1; + a5 = 0; + return -1; + } else if((!(a27==1)&&((a0==1)&&(((((((a4==1)&&(((((a18==1)||!(a18==1))&&(input==1))&&(a5==1))&&(a6==1)))&&(a12==8))&&(a20==1))&&(a22==1))&&(a15==1))&&(a3==5))))){ + a15 = 0; + a4 = 0; + a12 = 12; + a18 = 0; + a3 = 4; + return 21; + } else if(((!(a27==1)&&(((a12==9)&&((((a3==4)&&(!(a4==1)&&((((input==3)&&(a20==1))&&(a22==1))&&!(a0==1))))&&!(a6==1))&&!(a18==1)))&&!(a5==1)))&&(a15==1))){ + a3 = 8; + a0 = 1; + a15 = 0; + a18 = 1; + a5 = 1; + a4 = 1; + a27 = 1; + a12 = 8; + return 21; + } else if(((((a27==1)&&((a12==12)&&((((a5==1)&&(!(a22==1)&&(!(a18==1)&&((a3==8)&&((input==1)&&!(a15==1))))))&&(a20==1))&&(a0==1))))&&(a4==1))&&!(a6==1))){ + a22 = 1; + a5 = 0; + a3 = 5; + a12 = 10; + return -1; + } else if(((a15==1)&&(!(a5==1)&&((a12==8)&&((!(a0==1)&&((a27==1)&&((a20==1)&&((a4==1)&&((a3==7)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==6)))))))&&!(a6==1)))))){ + a6 = 1; + a22 = 1; + a5 = 1; + a18 = 1; + a0 = 1; + a3 = 4; + return -1; + } else if((((a20==1)&&(((!(a0==1)&&((a6==1)&&(((a12==9)&&((input==6)&&((((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a22==1)&&!(a18==1))))||((a3==5)&&((a22==1)&&(a18==1))))))&&(a5==1))))&&(a15==1))&&(a27==1)))&&(a4==1))){ + a0 = 1; + a22 = 1; + a27 = 0; + a6 = 0; + a18 = 0; + a5 = 0; + a3 = 5; + return 26; + } else if(((!(a4==1)&&((((((a27==1)&&(!(a0==1)&&(((((a18==1)&&(a22==1))&&(a3==7))||(((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a18==1)&&!(a22==1)))))&&(input==3))))&&(a20==1))&&(a12==11))&&(a15==1))&&!(a6==1)))&&(a5==1))){ + a0 = 1; + a27 = 0; + a3 = 5; + a22 = 1; + a15 = 0; + a18 = 0; + a12 = 9; + return -1; + } else if(((a6==1)&&(!(a18==1)&&(!(a5==1)&&(((a3==7)&&(!(a0==1)&&((((a22==1)&&((a20==1)&&((input==5)&&(a12==10))))&&!(a27==1))&&!(a4==1))))&&(a15==1)))))){ + a3 = 4; + a22 = 0; + a0 = 1; + a6 = 0; + a18 = 1; + a12 = 12; + a27 = 1; + return 21; + } else if(((!(a0==1)&&(((a4==1)&&((!(a5==1)&&(!(a27==1)&&((((input==3)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a3==6))&&!(a15==1))))&&!(a6==1)))&&(a20==1)))&&(a12==11))){ + a18 = 0; + a22 = 0; + a6 = 1; + a12 = 9; + a15 = 1; + a3 = 7; + a0 = 1; + return -1; + } else if((!(a6==1)&&((((((a3==6)&&((!(a5==1)&&((a12==12)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==1))))&&(a27==1)))&&!(a0==1))&&(a15==1))&&(a4==1))&&(a20==1)))){ + a12 = 8; + a5 = 1; + a0 = 1; + a22 = 1; + a3 = 7; + a18 = 0; + return -1; + } else if(((a6==1)&&(!(a27==1)&&(((((a12==8)&&((a0==1)&&(((input==3)&&(((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7))))&&!(a5==1))))&&(a4==1))&&(a20==1))&&!(a15==1))))){ + a6 = 0; + a3 = 6; + a4 = 0; + a22 = 1; + a5 = 1; + a18 = 0; + a12 = 10; + return 21; + } else if((((!(a5==1)&&(!(a4==1)&&((a12==10)&&(!(a0==1)&&((a20==1)&&(((input==5)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==7)))||((a3==7)&&((a22==1)&&!(a18==1)))))&&!(a15==1)))))))&&!(a27==1))&&!(a6==1))){ + a3 = 5; + a6 = 1; + a22 = 1; + a18 = 0; + a12 = 8; + a5 = 1; + a0 = 1; + a27 = 1; + a15 = 1; + return 21; + } else if((((a27==1)&&(((((((((a15==1)&&((input==1)&&((a18==1)||!(a18==1))))&&!(a4==1))&&(a22==1))&&!(a0==1))&&(a3==8))&&!(a6==1))&&(a12==11))&&(a5==1)))&&(a20==1))){ + if((a20==1)){ + a3 = 6; + a22 = 0; + a6 = 1; + a18 = 0; + a5 = 0; + a15 = 0; + }else{ + a18 = 1; + a4 = 1; + a0 = 1; + a12 = 10; + } + return -1; + } else if((((!(a4==1)&&(!(a15==1)&&(!(a5==1)&&(((a20==1)&&(((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==6))&&!(a27==1))&&(a3==6)))&&(a0==1)))))&&(a12==12))&&!(a6==1))){ + a5 = 1; + a12 = 11; + a18 = 0; + a22 = 1; + a15 = 1; + return 26; + } else if((((((a6==1)&&((!(a15==1)&&(((a0==1)&&((((input==5)&&(a20==1))&&(a3==8))&&(a12==10)))&&!(a27==1)))&&!(a22==1)))&&!(a5==1))&&!(a4==1))&&!(a18==1))){ + a3 = 7; + a15 = 1; + a4 = 1; + a0 = 0; + a18 = 1; + a27 = 1; + a6 = 0; + return 26; + } else if(((a3==5)&&((a20==1)&&(!(a4==1)&&((a12==8)&&(((a27==1)&&((a15==1)&&((!(a6==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3)))&&(a5==1))))&&!(a0==1))))))){ + a6 = 1; + a18 = 1; + a12 = 11; + a5 = 0; + a22 = 0; + return 21; + } else if((((!(a4==1)&&((((a6==1)&&(!(a0==1)&&((a5==1)&&((((a12==8)&&(input==1))&&!(a22==1))&&(a3==4)))))&&!(a27==1))&&!(a15==1)))&&(a20==1))&&(a18==1))){ + if((a5==1)){ + a5 = 0; + a22 = 1; + a6 = 0; + a27 = 1; + a0 = 1; + a12 = 10; + a3 = 7; + }else{ + a22 = 1; + a18 = 0; + a27 = 1; + a15 = 1; + a3 = 5; + a0 = 1; + } + return -1; + } else if((((a4==1)&&((((a15==1)&&((((a20==1)&&((a27==1)&&((input==3)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&!(a5==1))&&(a6==1)))&&(a12==8))&&(a0==1)))&&(a3==6))){ + a22 = 1; + a18 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if(((a22==1)&&((((a3==6)&&(((a4==1)&&((((((input==6)&&(a12==12))&&(a5==1))&&(a20==1))&&!(a18==1))&&!(a27==1)))&&(a6==1)))&&(a0==1))&&!(a15==1)))){ + if((a5==1)){ + a5 = 0; + a4 = 0; + a3 = 7; + }else{ + a3 = 7; + a18 = 1; + a12 = 10; + a4 = 0; + a22 = 0; + a5 = 0; + a27 = 1; + } + return 21; + } else if((((a15==1)&&(((a5==1)&&((a6==1)&&((((a4==1)&&(((((a18==1)&&(a22==1))&&(a3==5))||((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1)))))&&(input==2)))&&!(a0==1))&&!(a27==1))))&&(a12==10)))&&(a20==1))){ + a4 = 0; + a12 = 8; + a22 = 1; + a0 = 1; + a6 = 0; + a3 = 5; + a27 = 1; + a18 = 0; + return 26; + } else if(((a4==1)&&((a15==1)&&(!(a5==1)&&(((a6==1)&&(((a20==1)&&(((input==2)&&((((a18==1)&&(a22==1))&&(a3==5))||((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1))))))&&!(a27==1)))&&(a12==8)))&&(a0==1)))))){ + a12 = 12; + a3 = 7; + a27 = 1; + a5 = 1; + a4 = 0; + a22 = 1; + a18 = 1; + return 21; + } else if((((a12==10)&&((a20==1)&&((a4==1)&&((a27==1)&&((a3==5)&&((((a0==1)&&((((a18==1)||!(a18==1))&&(input==3))&&!(a6==1)))&&!(a15==1))&&(a22==1)))))))&&!(a5==1))){ + a4 = 0; + a6 = 1; + a5 = 1; + a18 = 1; + a22 = 0; + a3 = 6; + return -1; + } else if(((a0==1)&&(((((((a12==12)&&((a22==1)&&((((a18==1)&&(input==4))&&!(a4==1))&&!(a15==1))))&&(a3==4))&&(a6==1))&&(a5==1))&&(a27==1))&&(a20==1)))){ + a5 = 0; + a6 = 0; + a18 = 0; + a12 = 10; + return -1; + } else if((((a20==1)&&(!(a18==1)&&((a3==8)&&((a6==1)&&(!(a5==1)&&(!(a22==1)&&(((((input==3)&&!(a0==1))&&(a4==1))&&(a12==9))&&!(a15==1))))))))&&!(a27==1))){ + a5 = 1; + a0 = 1; + a27 = 1; + a15 = 1; + a4 = 0; + a3 = 5; + a12 = 8; + a18 = 1; + return 21; + } else if((((a12==12)&&((a22==1)&&(!(a4==1)&&((((a6==1)&&(((((input==5)&&((a18==1)||!(a18==1)))&&(a20==1))&&(a27==1))&&(a0==1)))&&!(a15==1))&&(a5==1)))))&&(a3==8))){ + a18 = 0; + a6 = 0; + a15 = 1; + a3 = 4; + a12 = 10; + return 24; + } else if(((a4==1)&&((a12==8)&&(((a6==1)&&((((((input==4)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))||(((a22==1)&&!(a18==1))&&(a3==5))))&&!(a0==1))&&(a27==1))&&(a5==1))&&(a20==1)))&&(a15==1))))){ + a18 = 1; + a22 = 0; + a6 = 0; + a5 = 0; + a3 = 4; + a4 = 0; + a0 = 1; + a12 = 11; + return -1; + } else if((((a4==1)&&((a5==1)&&((a12==10)&&(!(a27==1)&&(!(a15==1)&&(((a20==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==4))&&!(a0==1)))&&!(a6==1)))))))&&(a3==7))){ + if((a12==12)){ + a6 = 1; + a15 = 1; + a27 = 1; + a0 = 1; + a5 = 0; + a18 = 0; + a22 = 1; + a3 = 5; + }else{ + a22 = 1; + a3 = 5; + a15 = 1; + a12 = 9; + a6 = 1; + a18 = 1; + } + return -1; + } else if(((a5==1)&&(!(a6==1)&&(((a27==1)&&(((a15==1)&&(((a4==1)&&(((((a22==1)&&!(a18==1))&&(a3==7))||(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7))))&&(input==3)))&&!(a0==1)))&&(a12==11)))&&(a20==1))))){ + a12 = 9; + a3 = 7; + a22 = 0; + a18 = 1; + a0 = 1; + a4 = 0; + a5 = 0; + a15 = 0; + return -1; + } else if((((a12==9)&&(!(a6==1)&&(((a5==1)&&((a4==1)&&(((a3==5)&&(((input==5)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a27==1)))&&(a15==1))))&&!(a0==1))))&&(a20==1))){ + a12 = 11; + a5 = 0; + a27 = 0; + a22 = 0; + a18 = 0; + a0 = 1; + return 26; + } else if(((((((a12==12)&&((a0==1)&&((!(a6==1)&&(!(a5==1)&&((a3==6)&&(((a18==1)||!(a18==1))&&(input==2)))))&&!(a27==1))))&&(a20==1))&&(a15==1))&&(a4==1))&&(a22==1))){ + a4 = 0; + a12 = 11; + a6 = 1; + a18 = 0; + a5 = 1; + return -1; + } else if((((a20==1)&&(((!(a4==1)&&((((!(a15==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a27==1)))&&!(a6==1))&&(a3==7))&&(a0==1)))&&(a12==10))&&(a22==1)))&&!(a5==1))){ + a18 = 1; + a5 = 1; + a3 = 4; + a4 = 1; + a12 = 8; + a6 = 1; + a15 = 1; + return -1; + } else if((((a3==5)&&(((a5==1)&&((!(a0==1)&&((!(a27==1)&&((((a4==1)&&(input==3))&&(a20==1))&&(a12==10)))&&(a18==1)))&&(a22==1)))&&(a6==1)))&&!(a15==1))){ + if((a15==1)){ + a5 = 0; + a3 = 4; + a22 = 0; + a6 = 0; + a12 = 8; + }else{ + a15 = 1; + a27 = 1; + a4 = 0; + a12 = 8; + a0 = 1; + } + return 21; + } else if(((a0==1)&&(!(a27==1)&&(((a15==1)&&(!(a4==1)&&(((!(a5==1)&&((a12==8)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==1))))&&!(a6==1))&&(a3==4))))&&(a20==1))))){ + a6 = 1; + a27 = 1; + a4 = 1; + a5 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((((((a0==1)&&((a27==1)&&((a15==1)&&(!(a6==1)&&(!(a5==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&!(a4==1)))))))&&!(a22==1))&&(a20==1))&&(a12==11))&&(a3==7))){ + a3 = 4; + a22 = 1; + a6 = 1; + a27 = 0; + a18 = 0; + return 26; + } else if((((!(a27==1)&&((a15==1)&&(((((a0==1)&&((((input==6)&&(a12==12))&&(a5==1))&&(a20==1)))&&(a3==5))&&(a6==1))&&(a18==1))))&&(a22==1))&&(a4==1))){ + a6 = 0; + a15 = 0; + a18 = 0; + a5 = 0; + a27 = 1; + a12 = 10; + a4 = 0; + a3 = 4; + return -1; + } else if(((a27==1)&&((a3==5)&&((!(a4==1)&&((a12==9)&&((((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==4))&&!(a15==1))&&(a0==1))&&(a20==1))&&!(a6==1))))&&(a5==1))))){ + a18 = 0; + a22 = 0; + a12 = 12; + a4 = 1; + a3 = 4; + a15 = 1; + return 21; + } else if(((a12==9)&&(!(a6==1)&&((((a3==4)&&((((a27==1)&&((a15==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==2))))&&!(a0==1))&&(a20==1)))&&!(a5==1))&&!(a4==1))))){ + a0 = 1; + a5 = 1; + a15 = 0; + a18 = 1; + a22 = 1; + a6 = 1; + a3 = 6; + return 26; + } else if(((!(a5==1)&&(!(a27==1)&&(((a15==1)&&(!(a0==1)&&((input==4)&&((((a3==4)&&(((a22==1)&&!(a18==1))&&!(a4==1)))&&(a6==1))||((((a3==8)&&((a4==1)&&(!(a22==1)&&!(a18==1))))&&!(a6==1))||(((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1))))&&(a6==1)))))))&&(a12==8))))&&(a20==1))){ + if((a12==11)){ + a6 = 0; + a22 = 1; + a0 = 1; + a18 = 1; + a4 = 1; + a3 = 7; + a27 = 1; + a5 = 1; + }else{ + a3 = 4; + a18 = 1; + a22 = 1; + a5 = 1; + a4 = 0; + a27 = 1; + a0 = 1; + a6 = 0; + a12 = 9; + } + return 21; + } else if(((((a4==1)&&(((a3==8)&&((a12==8)&&(((((a20==1)&&((input==4)&&!(a0==1)))&&!(a18==1))&&(a5==1))&&!(a22==1))))&&!(a15==1)))&&(a27==1))&&!(a6==1))){ + a6 = 1; + a12 = 12; + a18 = 1; + a15 = 1; + a0 = 1; + a5 = 0; + a3 = 6; + return 24; + } else if((((a0==1)&&((((a5==1)&&(!(a6==1)&&(!(a15==1)&&((a12==11)&&(((((a3==7)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==7)))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==6))))))&&(a20==1))&&(a27==1)))&&(a4==1))){ + a22 = 1; + a3 = 4; + a6 = 1; + a18 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if((!(a15==1)&&(((((a12==11)&&(!(a27==1)&&((a18==1)&&((!(a22==1)&&(((input==4)&&(a3==5))&&(a5==1)))&&(a4==1)))))&&(a20==1))&&!(a0==1))&&(a6==1)))){ + a5 = 0; + a12 = 12; + a0 = 1; + a3 = 7; + a18 = 0; + a22 = 1; + return -1; + } else if(((!(a22==1)&&((a12==8)&&((a6==1)&&((a15==1)&&(!(a0==1)&&((a3==5)&&(!(a5==1)&&((a4==1)&&((a20==1)&&((input==4)&&((a18==1)||!(a18==1))))))))))))&&!(a27==1))){ + if((a20==1)){ + a0 = 1; + a3 = 7; + a18 = 0; + a6 = 0; + a27 = 1; + a5 = 1; + }else{ + a27 = 1; + a0 = 1; + a4 = 0; + a5 = 1; + a3 = 6; + a18 = 1; + } + return 21; + } else if((((a20==1)&&(((!(a6==1)&&((a3==7)&&(((a27==1)&&((a5==1)&&((a15==1)&&(!(a4==1)&&(input==1)))))&&!(a22==1))))&&(a12==11))&&(a0==1)))&&!(a18==1))){ + a6 = 1; + a18 = 1; + a3 = 4; + a12 = 10; + return -1; + } else if((((a12==8)&&(!(a0==1)&&((a6==1)&&((a27==1)&&((a3==6)&&((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5))&&(a20==1))&&!(a5==1))&&!(a15==1)))))))&&!(a4==1))){ + a18 = 1; + a15 = 1; + a0 = 1; + a6 = 0; + a12 = 10; + a22 = 1; + return 21; + } else if((((a5==1)&&(!(a18==1)&&((a0==1)&&(!(a4==1)&&((a15==1)&&((a12==11)&&((!(a22==1)&&(((input==4)&&!(a6==1))&&(a20==1)))&&(a27==1))))))))&&(a3==4))){ + a5 = 0; + a4 = 1; + a22 = 1; + a18 = 1; + a15 = 0; + a12 = 10; + a3 = 5; + return -1; + } else if(((((a20==1)&&((a4==1)&&((a0==1)&&((!(a6==1)&&((a15==1)&&((((input==5)&&((a18==1)||!(a18==1)))&&(a12==12))&&(a27==1))))&&!(a22==1)))))&&(a3==6))&&(a5==1))){ + a12 = 8; + a6 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if((!(a15==1)&&(!(a6==1)&&((a12==12)&&(((a27==1)&&((!(a5==1)&&((a0==1)&&(((a18==1)&&((input==5)&&(a20==1)))&&(a22==1))))&&(a3==7)))&&!(a4==1)))))){ + a5 = 1; + a12 = 8; + a3 = 4; + a15 = 1; + a6 = 1; + a4 = 1; + return -1; + } else if((!(a6==1)&&((!(a27==1)&&((!(a5==1)&&(!(a4==1)&&(((a15==1)&&((input==5)&&((((a22==1)&&(a18==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==5))))))&&(a0==1))))&&(a12==8)))&&(a20==1)))){ + a22 = 1; + a3 = 6; + a12 = 12; + a6 = 1; + a18 = 0; + a27 = 1; + a4 = 1; + return 24; + } else if((!(a27==1)&&((((a6==1)&&(!(a22==1)&&((((!(a0==1)&&(((input==1)&&(a15==1))&&(a5==1)))&&(a3==4))&&!(a4==1))&&!(a18==1))))&&(a20==1))&&(a12==11)))){ + a4 = 1; + a5 = 0; + a3 = 6; + a27 = 1; + return 24; + } else if(((a4==1)&&(!(a27==1)&&((a12==11)&&(((a15==1)&&(((!(a5==1)&&((input==6)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1))))))&&(a0==1))&&(a20==1)))&&(a6==1)))))){ + if((a22==1)){ + a18 = 0; + a6 = 0; + a22 = 0; + a4 = 0; + a12 = 10; + a0 = 0; + a27 = 1; + a5 = 1; + a3 = 4; + }else{ + a18 = 0; + a22 = 0; + a3 = 4; + a0 = 0; + a4 = 0; + a27 = 1; + } + return -1; + } else if(((!(a5==1)&&((((((((input==3)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7))))&&(a20==1))&&!(a15==1))&&(a4==1))&&!(a6==1))&&(a0==1))&&(a12==12)))&&!(a27==1))){ + a4 = 0; + a12 = 11; + a22 = 0; + a18 = 1; + a15 = 1; + a3 = 7; + return -1; + } else if(((a12==11)&&((a4==1)&&(((a15==1)&&((a0==1)&&(((((input==3)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6))))&&!(a5==1))&&(a20==1))&&(a6==1))))&&(a27==1))))){ + a18 = 1; + a22 = 1; + a3 = 5; + return -1; + } else if((((a12==8)&&(!(a15==1)&&(!(a4==1)&&(!(a6==1)&&(!(a27==1)&&((a0==1)&&((a20==1)&&(((((a3==6)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==6)))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==3)))))))))&&(a5==1))){ + a3 = 7; + a18 = 0; + a15 = 1; + a5 = 0; + a22 = 1; + a6 = 1; + a12 = 9; + return 24; + } else if((((!(a22==1)&&((a0==1)&&((a3==7)&&((a5==1)&&(((!(a15==1)&&(((input==1)&&!(a18==1))&&(a20==1)))&&(a4==1))&&!(a6==1))))))&&!(a27==1))&&(a12==8))){ + a27 = 1; + a18 = 1; + a12 = 12; + a6 = 1; + a5 = 0; + a3 = 8; + return -1; + } else if((((!(a0==1)&&((a12==8)&&((((a22==1)&&((a3==6)&&(!(a15==1)&&((!(a27==1)&&(input==3))&&(a4==1)))))&&!(a6==1))&&(a18==1))))&&!(a5==1))&&(a20==1))){ + a18 = 0; + a5 = 1; + a4 = 0; + a27 = 1; + a0 = 1; + a15 = 1; + a6 = 1; + return -1; + } else if(((a12==12)&&((a3==6)&&((((a15==1)&&((!(a27==1)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a20==1))&&(a4==1)))&&(a0==1)))&&(a5==1))&&(a6==1))))){ + a27 = 1; + a15 = 0; + a22 = 0; + a18 = 1; + a12 = 11; + a3 = 7; + return 26; + } else if(((a12==9)&&(((((a27==1)&&((!(a4==1)&&((((a20==1)&&((input==6)&&(a6==1)))&&!(a18==1))&&(a22==1)))&&(a0==1)))&&!(a5==1))&&!(a15==1))&&(a3==5)))){ + a27 = 0; + a5 = 1; + a22 = 0; + a15 = 1; + return 26; + } else if((((!(a18==1)&&(!(a15==1)&&((a5==1)&&((!(a27==1)&&((((a20==1)&&((input==4)&&(a12==9)))&&(a4==1))&&(a6==1)))&&(a22==1)))))&&(a3==7))&&(a0==1))){ + a0 = 0; + a4 = 0; + a5 = 0; + a12 = 11; + a27 = 1; + a22 = 0; + return 24; + } else if((!(a4==1)&&((!(a15==1)&&((a0==1)&&((((a12==8)&&(((!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1))))||((((!(a22==1)&&(a18==1))&&(a3==8))&&(a6==1))||((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))))&&(input==1)))&&!(a27==1))&&(a5==1))))&&(a20==1)))){ + a27 = 1; + a15 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + a6 = 1; + a4 = 1; + return -1; + } else if((((a12==10)&&(((a4==1)&&(!(a0==1)&&((!(a5==1)&&((a22==1)&&((a15==1)&&((a3==7)&&(((a18==1)||!(a18==1))&&(input==6))))))&&(a20==1))))&&!(a6==1)))&&!(a27==1))){ + a22 = 0; + a27 = 1; + a0 = 1; + a5 = 1; + a18 = 0; + a12 = 8; + a6 = 1; + return 21; + } else if((((a20==1)&&((a6==1)&&((a4==1)&&(((a22==1)&&((((!(a0==1)&&((input==3)&&(a15==1)))&&(a3==4))&&!(a5==1))&&!(a27==1)))&&(a12==9)))))&&!(a18==1))){ + a3 = 8; + a12 = 12; + a4 = 0; + a22 = 0; + a0 = 1; + a6 = 0; + return 21; + } else if(((a12==8)&&((((a3==4)&&(!(a22==1)&&(((a0==1)&&(!(a27==1)&&(((((a18==1)||!(a18==1))&&(input==6))&&!(a5==1))&&(a4==1))))&&(a15==1))))&&!(a6==1))&&(a20==1)))){ + a12 = 12; + a27 = 1; + a18 = 0; + a4 = 0; + a3 = 6; + return -1; + } else if(((((((a20==1)&&((((!(a15==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==1)))&&!(a6==1))&&(a4==1))&&!(a5==1)))&&(a12==11))&&(a3==7))&&(a0==1))&&!(a27==1))){ + a18 = 1; + a15 = 1; + a27 = 1; + a12 = 8; + a22 = 1; + a5 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if((((!(a22==1)&&((((a3==7)&&(((a5==1)&&(((!(a4==1)&&(input==3))&&(a0==1))&&(a12==10)))&&!(a18==1)))&&(a20==1))&&!(a15==1)))&&!(a6==1))&&!(a27==1))){ + a15 = 1; + a4 = 1; + a27 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + a6 = 1; + a18 = 1; + return -1; + } else if((((a0==1)&&(!(a27==1)&&((a12==10)&&((a20==1)&&(((((input==1)&&((((a3==7)&&(!(a22==1)&&(a18==1)))||((a3==7)&&(!(a18==1)&&!(a22==1))))||((a3==8)&&((a18==1)&&(a22==1)))))&&!(a6==1))&&!(a4==1))&&!(a15==1))))))&&!(a5==1))){ + a3 = 8; + a18 = 1; + a22 = 1; + a5 = 1; + a12 = 8; + a6 = 1; + a15 = 1; + return 21; + } else if((!(a5==1)&&((a3==5)&&((a6==1)&&(((((a20==1)&&((((input==3)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&!(a0==1))&&!(a27==1)))&&!(a4==1))&&!(a15==1))&&(a12==10)))))){ + a18 = 0; + a3 = 6; + a27 = 1; + a6 = 0; + a15 = 1; + a12 = 8; + a22 = 0; + return 21; + } else if((((!(a6==1)&&(!(a5==1)&&((a3==8)&&(!(a27==1)&&((a20==1)&&((a15==1)&&(!(a4==1)&&(!(a22==1)&&(((a18==1)||!(a18==1))&&(input==1))))))))))&&(a0==1))&&(a12==9))){ + a15 = 0; + a5 = 1; + a22 = 1; + a3 = 7; + a18 = 0; + a12 = 10; + return 21; + } else if((!(a0==1)&&((((a12==10)&&(((a5==1)&&((a15==1)&&(((((a3==7)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1)))))&&(input==5))&&!(a6==1))))&&(a20==1)))&&!(a4==1))&&!(a27==1)))){ + a22 = 1; + a18 = 1; + a12 = 8; + a0 = 1; + a3 = 4; + a27 = 1; + return 21; + } else if(((!(a22==1)&&((a20==1)&&((((a5==1)&&((a4==1)&&((a18==1)&&((!(a0==1)&&((a3==4)&&(input==2)))&&(a6==1)))))&&(a15==1))&&(a27==1))))&&(a12==10))){ + a12 = 8; + a22 = 1; + a0 = 1; + return -1; + } else if(((!(a6==1)&&(!(a0==1)&&((a15==1)&&(((!(a4==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==3))&&(a12==11)))&&!(a5==1))&&(a20==1)))))&&!(a27==1))){ + if((a6==1)){ + a3 = 4; + a27 = 1; + a22 = 0; + a15 = 0; + a0 = 1; + a18 = 0; + a12 = 10; + }else{ + a18 = 0; + a27 = 1; + a6 = 1; + a12 = 8; + a3 = 8; + a22 = 1; + a5 = 1; + a0 = 1; + } + return 21; + } else if(((a4==1)&&((a6==1)&&((a3==6)&&((((a27==1)&&((a20==1)&&((a5==1)&&(!(a15==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==1))))))&&(a12==12))&&!(a0==1)))))){ + a27 = 0; + a18 = 0; + a5 = 0; + a22 = 1; + a0 = 1; + a3 = 8; + a12 = 11; + a4 = 0; + return 26; + } else if(((((a15==1)&&(!(a6==1)&&(!(a27==1)&&((a12==11)&&((a20==1)&&(((((!(a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6))))&&(input==5))&&(a0==1)))))))&&!(a4==1))&&!(a5==1))){ + a18 = 0; + a15 = 0; + a5 = 1; + a22 = 0; + a3 = 8; + a27 = 1; + return 26; + } else if(((a5==1)&&((((((a20==1)&&((!(a4==1)&&((input==2)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1))))))&&!(a6==1)))&&(a12==8))&&!(a15==1))&&!(a0==1))&&!(a27==1)))){ + a27 = 1; + a4 = 1; + a12 = 10; + a3 = 6; + a22 = 0; + a5 = 0; + a18 = 0; + a6 = 1; + return 26; + } else if((!(a6==1)&&((!(a27==1)&&(((a0==1)&&((a4==1)&&(!(a5==1)&&((((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a3==6))&&(a15==1)))))&&(a12==9)))&&(a20==1)))){ + a18 = 0; + a27 = 1; + a6 = 1; + a4 = 0; + a5 = 1; + a12 = 12; + a22 = 0; + a3 = 8; + return 24; + } else if(((a5==1)&&((((!(a15==1)&&((a0==1)&&((a3==5)&&(((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==3))&&(a27==1))&&!(a6==1)))))&&!(a4==1))&&(a12==9))&&(a20==1)))){ + a18 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + a4 = 1; + a15 = 1; + a6 = 1; + return -1; + } else if(((a27==1)&&((a22==1)&&((!(a6==1)&&(((((a20==1)&&(!(a4==1)&&((a15==1)&&(!(a0==1)&&(input==3)))))&&!(a5==1))&&!(a18==1))&&(a12==8)))&&(a3==6))))){ + a3 = 7; + a12 = 11; + a6 = 1; + a0 = 1; + return 24; + } else if((((a15==1)&&((!(a6==1)&&((!(a4==1)&&(((a5==1)&&((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==2))&&(a20==1)))&&(a3==8)))&&(a0==1)))&&(a12==8)))&&!(a27==1))){ + a12 = 10; + a18 = 0; + a4 = 1; + a27 = 1; + a22 = 1; + a3 = 6; + return 26; + } else if(((a27==1)&&((a3==8)&&(!(a5==1)&&((((a20==1)&&(!(a6==1)&&((((input==4)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a0==1))&&(a15==1))))&&!(a4==1))&&(a12==10)))))){ + a22 = 1; + a4 = 1; + a3 = 7; + a18 = 1; + a6 = 1; + return -1; + } else if((((((a27==1)&&(!(a15==1)&&((((a20==1)&&((a0==1)&&((input==3)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&(a3==4))&&(a12==12))))&&(a6==1))&&!(a4==1))&&!(a5==1))){ + a18 = 1; + a12 = 8; + a5 = 1; + a22 = 1; + a15 = 1; + a4 = 1; + return -1; + } else if((!(a15==1)&&((a3==6)&&((((((a12==12)&&((a6==1)&&((a0==1)&&(((a4==1)&&(input==4))&&!(a18==1)))))&&!(a27==1))&&!(a5==1))&&(a22==1))&&(a20==1))))){ + if((a20==1)){ + a12 = 9; + a4 = 0; + a6 = 0; + a27 = 1; + a0 = 0; + a3 = 5; + }else{ + a3 = 8; + a27 = 1; + a18 = 1; + a12 = 11; + a0 = 0; + } + return -1; + } else if(((((((!(a22==1)&&((a15==1)&&((a0==1)&&((((a3==7)&&(input==6))&&(a18==1))&&(a12==11)))))&&!(a6==1))&&!(a27==1))&&!(a5==1))&&(a4==1))&&(a20==1))){ + a22 = 1; + a12 = 8; + a3 = 4; + a27 = 1; + a5 = 1; + a6 = 1; + return -1; + } else if(((!(a0==1)&&((a27==1)&&((((!(a4==1)&&(((!(a18==1)&&((a15==1)&&(input==3)))&&(a12==9))&&(a3==8)))&&!(a5==1))&&(a20==1))&&(a6==1))))&&(a22==1))){ + a12 = 8; + a4 = 1; + a0 = 1; + a5 = 1; + a6 = 0; + a22 = 0; + a3 = 4; + a15 = 0; + return -1; + } else if((((a4==1)&&(!(a18==1)&&((a12==9)&&((((!(a22==1)&&((!(a0==1)&&((input==5)&&(a27==1)))&&(a6==1)))&&(a3==8))&&(a20==1))&&(a15==1)))))&&(a5==1))){ + a0 = 1; + a22 = 1; + a12 = 12; + a4 = 0; + a18 = 1; + a3 = 7; + return 26; + } else if(((a20==1)&&(!(a4==1)&&((((a12==9)&&((!(a27==1)&&(!(a5==1)&&((a3==4)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==6)))))&&(a6==1)))&&!(a15==1))&&!(a0==1))))){ + if((a3==5)){ + a22 = 0; + a3 = 5; + a18 = 0; + a12 = 10; + a4 = 1; + }else{ + a22 = 1; + a3 = 5; + a27 = 1; + a5 = 1; + a15 = 1; + a0 = 1; + a4 = 1; + a12 = 8; + a18 = 0; + } + return 26; + } else if(((a4==1)&&(((((a12==11)&&(!(a27==1)&&(!(a6==1)&&((a0==1)&&(((a3==6)&&((input==2)&&!(a5==1)))&&!(a18==1))))))&&(a15==1))&&(a22==1))&&(a20==1)))){ + a22 = 0; + a27 = 1; + a12 = 12; + a5 = 1; + return 26; + } else if(((a20==1)&&((!(a4==1)&&(!(a27==1)&&((a22==1)&&(((((((a18==1)&&(input==2))&&(a5==1))&&(a3==7))&&!(a6==1))&&(a12==9))&&!(a0==1)))))&&!(a15==1)))){ + a15 = 1; + a0 = 1; + a5 = 0; + a22 = 0; + a6 = 1; + a27 = 1; + return 26; + } else if(((((a0==1)&&((a12==10)&&(((a4==1)&&((!(a27==1)&&((input==1)&&(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))))&&(a20==1)))&&(a5==1))))&&!(a15==1))&&!(a6==1))){ + a12 = 12; + a18 = 1; + a3 = 6; + a4 = 0; + a22 = 1; + a27 = 1; + return 21; + } else if((!(a0==1)&&((a6==1)&&(((((((a5==1)&&((((a3==8)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==7))||((a3==7)&&(!(a22==1)&&!(a18==1)))))&&(input==1)))&&!(a4==1))&&(a27==1))&&(a15==1))&&(a20==1))&&(a12==12))))){ + if((a4==1)){ + a18 = 0; + a22 = 0; + a3 = 8; + }else{ + a22 = 1; + a18 = 1; + a12 = 10; + a3 = 4; + a6 = 0; + a0 = 1; + a4 = 1; + a5 = 0; + a27 = 0; + } + return 26; + } else if((!(a15==1)&&(((a20==1)&&((a0==1)&&((a3==8)&&((a6==1)&&(((a12==9)&&(!(a4==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2))))&&!(a5==1))))))&&(a27==1)))){ + a5 = 1; + a12 = 10; + a3 = 4; + a18 = 0; + a15 = 1; + a22 = 1; + return 21; + } else if((!(a22==1)&&((((a18==1)&&(((((((a20==1)&&((a4==1)&&(input==3)))&&(a3==7))&&!(a27==1))&&!(a6==1))&&(a0==1))&&(a12==8)))&&(a15==1))&&(a5==1)))){ + a27 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if(((((a12==10)&&((!(a15==1)&&(((!(a27==1)&&((((input==6)&&(a3==5))&&(a20==1))&&(a18==1)))&&(a0==1))&&!(a22==1)))&&(a6==1)))&&!(a5==1))&&!(a4==1))){ + a22 = 1; + a15 = 1; + a3 = 7; + a12 = 11; + a27 = 1; + return 21; + } else if(((!(a5==1)&&(((a20==1)&&((!(a0==1)&&((a27==1)&&(((((input==1)&&((a18==1)||!(a18==1)))&&(a3==7))&&(a22==1))&&!(a15==1))))&&(a12==9)))&&(a6==1)))&&!(a4==1))){ + a0 = 1; + a22 = 0; + a3 = 4; + a12 = 10; + a15 = 1; + a4 = 1; + a18 = 0; + a6 = 0; + return 21; + } else if((((a0==1)&&((!(a27==1)&&(!(a5==1)&&((a18==1)&&((((a3==4)&&(((input==4)&&(a6==1))&&(a12==8)))&&!(a15==1))&&(a20==1)))))&&(a22==1)))&&(a4==1))){ + a18 = 0; + a27 = 1; + a12 = 12; + a3 = 7; + return 21; + } else if(((((((((a3==5)&&(((a15==1)&&((input==5)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))))&&(a4==1)))&&!(a6==1))&&!(a0==1))&&!(a27==1))&&(a12==10))&&!(a5==1))&&(a20==1))){ + if((a6==1)){ + a22 = 1; + a18 = 1; + a12 = 8; + a27 = 1; + a5 = 1; + a3 = 4; + a0 = 1; + a4 = 0; + }else{ + a3 = 7; + a0 = 1; + a12 = 8; + a27 = 1; + a6 = 1; + a5 = 1; + a22 = 1; + a18 = 1; + } + return -1; + } else if((((a5==1)&&((((!(a0==1)&&((((a3==8)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==1)))&&(a20==1))&&(a12==10)))&&!(a27==1))&&!(a4==1))&&!(a6==1)))&&!(a15==1))){ + a4 = 1; + a0 = 1; + a6 = 1; + a18 = 1; + a12 = 8; + a15 = 1; + a22 = 0; + a27 = 1; + return 26; + } else if(((a27==1)&&(((a20==1)&&(!(a15==1)&&(((!(a4==1)&&(((!(a0==1)&&(!(a22==1)&&(input==1)))&&!(a18==1))&&(a5==1)))&&(a3==8))&&(a6==1))))&&(a12==11)))){ + a18 = 1; + a4 = 1; + a3 = 4; + a27 = 0; + a0 = 1; + return 24; + } else if(((a15==1)&&(((((!(a4==1)&&(((a3==5)&&((a20==1)&&((a12==10)&&((input==6)&&(a6==1)))))&&!(a18==1)))&&!(a0==1))&&(a22==1))&&!(a27==1))&&!(a5==1)))){ + a27 = 1; + a12 = 8; + a3 = 8; + a6 = 0; + a5 = 1; + a4 = 1; + a0 = 1; + return 26; + } else if((((a27==1)&&((a12==10)&&((((a6==1)&&((a15==1)&&((a3==4)&&(((input==5)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a20==1)))))&&(a5==1))&&!(a4==1))))&&!(a0==1))){ + a0 = 1; + a22 = 1; + a12 = 8; + a18 = 1; + a4 = 1; + return -1; + } else if((((a27==1)&&(!(a4==1)&&((((!(a15==1)&&((((a20==1)&&(!(a6==1)&&(input==6)))&&(a12==9))&&!(a22==1)))&&(a0==1))&&(a3==7))&&(a18==1))))&&!(a5==1))){ + a15 = 1; + a4 = 1; + a18 = 0; + a12 = 10; + a5 = 1; + a3 = 4; + a22 = 1; + return 21; + } else if((((a15==1)&&(((((((a27==1)&&((input==2)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8)))||((a3==8)&&(!(a18==1)&&(a22==1))))))&&!(a5==1))&&!(a4==1))&&(a20==1))&&(a12==9))&&(a0==1)))&&(a6==1))){ + a27 = 0; + a18 = 0; + a12 = 8; + a22 = 0; + a3 = 8; + return 26; + } else if(((a20==1)&&(((a5==1)&&((((((!(a6==1)&&((!(a4==1)&&(((a18==1)&&!(a22==1))&&(a15==1)))&&(a3==8)))||(!(a6==1)&&((a3==8)&&(((!(a18==1)&&!(a22==1))&&(a15==1))&&!(a4==1)))))||((a6==1)&&(((!(a15==1)&&((a22==1)&&(a18==1)))&&(a4==1))&&(a3==4))))&&(input==5))&&(a27==1))&&!(a0==1)))&&(a12==11)))){ + a6 = 1; + a4 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + a15 = 1; + a0 = 1; + a18 = 1; + return -1; + } else if(((((a3==7)&&(((((a6==1)&&((((input==3)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a12==8))&&(a0==1)))&&(a15==1))&&!(a27==1))&&!(a5==1)))&&(a20==1))&&!(a4==1))){ + a3 = 5; + a5 = 1; + a22 = 1; + a18 = 1; + a6 = 0; + a12 = 10; + a4 = 1; + a27 = 1; + a15 = 0; + return 26; + } else if((!(a18==1)&&(((a4==1)&&(!(a22==1)&&(!(a6==1)&&((a15==1)&&(((a12==8)&&((a0==1)&&((a20==1)&&((input==4)&&(a5==1)))))&&!(a27==1))))))&&(a3==4)))){ + a15 = 0; + a3 = 6; + a6 = 1; + a5 = 0; + a4 = 0; + a27 = 1; + a12 = 12; + a18 = 1; + return -1; + } else if((!(a4==1)&&((!(a0==1)&&(((a12==11)&&(((a5==1)&&((a27==1)&&((a15==1)&&((a6==1)&&((input==6)&&(a20==1))))))&&(a3==5)))&&(a22==1)))&&!(a18==1)))){ + a27 = 0; + a5 = 0; + a12 = 8; + a3 = 6; + a22 = 0; + a0 = 1; + a6 = 0; + return 21; + } else if((((((!(a4==1)&&(((a5==1)&&(((((input==1)&&((a18==1)||!(a18==1)))&&(a22==1))&&(a20==1))&&(a3==4)))&&(a12==10)))&&(a0==1))&&!(a6==1))&&(a15==1))&&(a27==1))){ + a27 = 0; + a5 = 0; + a12 = 9; + a22 = 0; + a18 = 1; + a3 = 7; + a6 = 1; + return 26; + } else if(((((a5==1)&&((!(a22==1)&&((((a0==1)&&((a15==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a20==1))))&&(a12==11))&&!(a27==1)))&&(a6==1)))&&(a3==5))&&!(a4==1))){ + a12 = 12; + a18 = 1; + a22 = 1; + a5 = 0; + a6 = 0; + a4 = 1; + a3 = 8; + return 21; + } else if(((a20==1)&&((!(a5==1)&&((((a15==1)&&(((a4==1)&&((input==5)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))))&&(a12==12)))&&(a0==1))&&(a6==1)))&&(a27==1)))){ + a22 = 0; + a15 = 0; + a4 = 0; + a27 = 0; + a18 = 0; + a3 = 7; + return 21; + } else if((((((!(a4==1)&&(((a12==11)&&((a5==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&(a0==1))&&!(a15==1))))&&!(a6==1)))&&!(a27==1))&&(a20==1))&&!(a22==1))&&(a3==8))){ + a12 = 8; + a27 = 1; + a22 = 1; + a3 = 4; + a15 = 1; + a18 = 1; + a4 = 1; + a6 = 1; + return -1; + } else if((!(a6==1)&&(((((a5==1)&&((a27==1)&&((a20==1)&&((((a4==1)&&((input==6)&&(a3==6)))&&(a22==1))&&(a0==1)))))&&!(a18==1))&&(a12==11))&&(a15==1)))){ + a18 = 1; + a5 = 0; + a15 = 0; + a12 = 10; + a6 = 1; + a3 = 5; + return -1; + } else if((((!(a27==1)&&((a12==8)&&(!(a0==1)&&((a20==1)&&((input==2)&&(((a6==1)&&((!(a4==1)&&(!(a18==1)&&(a22==1)))&&(a3==4)))||(((((a4==1)&&(!(a22==1)&&!(a18==1)))&&(a3==8))&&!(a6==1))||((a6==1)&&((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1))))))))))))&&!(a5==1))&&(a15==1))){ + if((a27==1)){ + a3 = 8; + a18 = 0; + a22 = 1; + a27 = 1; + a6 = 1; + a4 = 0; + a12 = 9; + }else{ + a5 = 1; + a3 = 4; + a22 = 1; + a6 = 0; + a4 = 1; + a18 = 0; + a27 = 1; + a0 = 1; + } + return -1; + } else if(((a3==6)&&(((a12==10)&&((!(a4==1)&&(((a20==1)&&(!(a0==1)&&(!(a27==1)&&((input==2)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))&&(a5==1)))&&!(a15==1)))&&(a6==1)))){ + if((a3==8)){ + a22 = 1; + a15 = 1; + a12 = 8; + a27 = 1; + a3 = 4; + a0 = 1; + a6 = 0; + a18 = 1; + }else{ + a12 = 12; + a0 = 1; + a27 = 1; + a15 = 1; + a22 = 1; + a18 = 1; + a3 = 5; + } + return 24; + } else if(((((!(a6==1)&&(((a3==6)&&((a22==1)&&(((a5==1)&&(((a0==1)&&(input==1))&&!(a15==1)))&&(a18==1))))&&(a20==1)))&&(a27==1))&&!(a4==1))&&(a12==12))){ + a5 = 0; + a18 = 0; + a4 = 1; + a6 = 1; + a12 = 11; + return -1; + } else if(((a12==10)&&((a27==1)&&((((a0==1)&&(((((!(a6==1)&&((a3==8)&&((a4==1)&&((a18==1)&&!(a22==1)))))||(((a3==8)&&((!(a22==1)&&!(a18==1))&&(a4==1)))&&!(a6==1)))||(((((a18==1)&&(a22==1))&&!(a4==1))&&(a3==4))&&(a6==1)))&&(input==4))&&(a5==1)))&&!(a15==1))&&(a20==1))))){ + a6 = 0; + a4 = 1; + a3 = 4; + a22 = 0; + a18 = 1; + return 21; + } else if(((((a20==1)&&((a12==9)&&((a27==1)&&((a3==4)&&((!(a6==1)&&((a4==1)&&((input==4)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))&&!(a15==1))))))&&(a0==1))&&(a5==1))){ + a22 = 0; + a6 = 1; + a4 = 0; + a5 = 0; + a18 = 1; + a12 = 12; + a3 = 8; + return 21; + } else if((((((((a27==1)&&(((((input==2)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&(a4==1))&&(a15==1))&&(a20==1)))&&!(a6==1))&&!(a5==1))&&(a3==4))&&(a12==12))&&(a0==1))){ + a22 = 1; + a5 = 1; + a12 = 10; + a15 = 0; + a4 = 0; + a3 = 8; + a18 = 0; + return -1; + } else if((((((a5==1)&&((((((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==4))&&(a4==1))&&(a15==1))&&(a20==1))&&(a27==1)))&&(a12==12))&&(a0==1))&&!(a6==1))){ + a3 = 4; + a18 = 1; + a12 = 10; + a5 = 0; + a22 = 0; + a4 = 0; + return -1; + } else if(((a18==1)&&((a27==1)&&(((a4==1)&&((a20==1)&&((((!(a0==1)&&(((input==3)&&(a22==1))&&(a12==8)))&&(a15==1))&&(a3==7))&&!(a5==1))))&&!(a6==1))))){ + a12 = 10; + a4 = 0; + a22 = 0; + return 21; + } else if(((((a6==1)&&(((a3==4)&&((((((a4==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a20==1))&&(a5==1))&&(a15==1))&&(a0==1)))&&(a12==9)))&&(a22==1))&&!(a27==1))){ + a12 = 8; + a3 = 8; + a18 = 1; + a4 = 0; + return -1; + } else if(((a6==1)&&(((a20==1)&&((a27==1)&&(((((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==5))&&!(a5==1))&&(a12==11))&&(a0==1))&&(a15==1))&&(a4==1))))&&(a3==8)))){ + a4 = 0; + a6 = 0; + a3 = 7; + a22 = 1; + a27 = 0; + a18 = 1; + a12 = 12; + return -1; + } else if(((!(a0==1)&&((a20==1)&&(!(a6==1)&&((((a15==1)&&((a12==8)&&(!(a4==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==6)))))&&(a3==4))&&!(a27==1)))))&&!(a5==1))){ + a3 = 8; + a22 = 1; + a6 = 1; + a15 = 0; + a4 = 1; + a18 = 0; + a12 = 9; + a0 = 1; + a5 = 1; + return 24; + } else if(((((a6==1)&&((a3==5)&&(!(a4==1)&&(!(a27==1)&&(((a20==1)&&((!(a22==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a5==1)))&&(a15==1))))))&&(a12==11))&&(a0==1))){ + a18 = 0; + a27 = 1; + a4 = 1; + a3 = 8; + a5 = 0; + return 21; + } else if((((!(a4==1)&&((!(a0==1)&&(((((((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==3))&&(a20==1))&&(a12==9))&&(a5==1)))&&!(a6==1)))&&!(a15==1))&&!(a27==1))){ + a3 = 4; + a6 = 1; + a22 = 1; + a27 = 1; + a18 = 1; + a12 = 8; + a0 = 1; + a15 = 1; + return 21; + } else if((((a18==1)&&(((a0==1)&&((a20==1)&&((a5==1)&&(((!(a4==1)&&((a12==11)&&((a27==1)&&(input==6))))&&!(a15==1))&&!(a6==1)))))&&!(a22==1)))&&(a3==4))){ + a15 = 1; + a22 = 1; + a12 = 8; + a6 = 1; + a4 = 1; + return -1; + } else if((!(a15==1)&&((!(a5==1)&&((!(a4==1)&&((a3==6)&&(((a12==12)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5))&&!(a27==1)))&&(a6==1))))&&(a0==1)))&&(a20==1)))){ + a18 = 0; + a5 = 1; + a22 = 1; + a3 = 7; + a15 = 1; + a27 = 1; + return 26; + } else if((((!(a27==1)&&((a20==1)&&((a4==1)&&((a15==1)&&(((input==3)&&(((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))))&&(a12==10))))))&&(a5==1))&&!(a0==1))){ + a0 = 1; + a27 = 1; + a3 = 7; + a12 = 8; + a22 = 0; + a6 = 1; + a18 = 1; + return -1; + } else if((((a15==1)&&(!(a0==1)&&(!(a6==1)&&(((((a3==5)&&((a4==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==5))))&&(a5==1))&&(a27==1))&&(a12==10)))))&&(a20==1))){ + if((a22==1)){ + a12 = 12; + a18 = 0; + a22 = 1; + a3 = 8; + }else{ + a15 = 0; + a22 = 1; + a0 = 1; + a3 = 8; + a27 = 0; + a18 = 1; + a5 = 0; + } + return 21; + } else if((((a27==1)&&(!(a4==1)&&((a15==1)&&(!(a6==1)&&(((((input==6)&&(((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==8))))&&(a12==8))&&(a0==1))&&(a5==1))))))&&(a20==1))){ + a18 = 1; + a4 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if(((((a20==1)&&(!(a6==1)&&((((a12==12)&&(!(a15==1)&&((input==2)&&(((a3==6)&&((a22==1)&&(a18==1)))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a22==1)&&!(a18==1))))))))&&!(a27==1))&&(a5==1))))&&(a0==1))&&!(a4==1))){ + a4 = 1; + a5 = 0; + a18 = 0; + a3 = 5; + a12 = 10; + a6 = 1; + a22 = 1; + a27 = 1; + return 26; + } else if(((a3==4)&&((a0==1)&&(!(a15==1)&&(((((a20==1)&&((a6==1)&&(!(a18==1)&&(((input==4)&&!(a4==1))&&!(a22==1)))))&&(a12==11))&&(a27==1))&&!(a5==1)))))){ + if((a4==1)){ + a18 = 1; + a0 = 0; + a5 = 1; + a3 = 8; + a12 = 8; + }else{ + a15 = 1; + a4 = 1; + a6 = 0; + a12 = 10; + a3 = 8; + a5 = 1; + a0 = 0; + } + return -1; + } else if(((((a5==1)&&((!(a4==1)&&(((((a3==7)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==1)))&&(a12==11))&&(a20==1))&&!(a6==1)))&&(a15==1)))&&!(a0==1))&&(a27==1))){ + a12 = 8; + a6 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + a0 = 1; + a4 = 1; + return -1; + } else if((((!(a5==1)&&((((((a6==1)&&((a27==1)&&((input==4)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&!(a0==1))&&(a12==8))&&!(a15==1))&&(a4==1)))&&(a20==1))&&(a3==6))){ + a5 = 1; + a12 = 11; + a0 = 1; + a4 = 0; + a22 = 1; + a15 = 1; + a18 = 0; + return 21; + } else if((!(a4==1)&&((((a20==1)&&((a6==1)&&((!(a0==1)&&(((a15==1)&&((input==4)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a27==1)))&&(a12==12))))&&(a5==1))&&(a3==8)))){ + a22 = 1; + a6 = 0; + a4 = 1; + a0 = 1; + a18 = 1; + a12 = 10; + a3 = 6; + return -1; + } else if((((!(a22==1)&&(!(a5==1)&&(!(a18==1)&&((a12==8)&&((a20==1)&&((a15==1)&&((((input==1)&&(a3==4))&&!(a27==1))&&(a0==1))))))))&&(a6==1))&&!(a4==1))){ + a22 = 1; + a4 = 1; + a18 = 1; + a27 = 1; + a5 = 1; + return -1; + } else if(((a20==1)&&((!(a0==1)&&((((!(a4==1)&&(((((input==1)&&(a12==10))&&(a18==1))&&!(a5==1))&&(a3==4)))&&(a6==1))&&(a27==1))&&!(a22==1)))&&!(a15==1)))){ + a5 = 1; + a22 = 1; + a0 = 1; + a15 = 1; + a4 = 1; + a6 = 0; + a12 = 11; + a3 = 5; + return -1; + } else if(((((a6==1)&&((((a12==11)&&(((a5==1)&&((input==6)&&(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a22==1)&&(a18==1))))))&&!(a15==1)))&&!(a0==1))&&!(a27==1)))&&(a20==1))&&(a4==1))){ + a27 = 1; + a15 = 1; + a18 = 0; + a3 = 7; + a22 = 0; + a0 = 1; + a6 = 0; + a12 = 8; + return 26; + } else if(((((((((a20==1)&&((a12==12)&&((a3==8)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==4)))))&&!(a15==1))&&(a4==1))&&(a5==1))&&(a0==1))&&(a27==1))&&!(a6==1))){ + a22 = 0; + a6 = 1; + a3 = 4; + a18 = 0; + a15 = 1; + return -1; + } else if(((!(a27==1)&&((((((a6==1)&&((!(a22==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&!(a15==1)))&&!(a4==1)))&&(a0==1))&&(a5==1))&&(a3==5))&&(a20==1)))&&(a12==8))){ + a27 = 1; + a18 = 1; + a4 = 1; + a15 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if((!(a6==1)&&((a4==1)&&((a3==6)&&((!(a5==1)&&((a12==9)&&(((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a0==1))&&!(a27==1))&&(a15==1))))&&(a20==1)))))){ + a18 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + return -1; + } else if((((!(a4==1)&&(!(a5==1)&&((a12==8)&&(((a27==1)&&(!(a0==1)&&(((input==2)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&(a20==1))))&&(a3==8)))))&&(a15==1))&&!(a6==1))){ + a12 = 10; + a22 = 1; + a15 = 0; + a6 = 1; + a3 = 5; + a18 = 0; + a5 = 1; + a0 = 1; + return 26; + } else if(((a6==1)&&(((((a5==1)&&((((((((a18==1)||!(a18==1))&&(input==4))&&!(a27==1))&&(a15==1))&&(a20==1))&&(a3==7))&&(a22==1)))&&(a0==1))&&(a12==9))&&(a4==1)))){ + a18 = 0; + a4 = 0; + a12 = 8; + a3 = 5; + a22 = 0; + a6 = 0; + return 26; + } else if(((a0==1)&&(!(a27==1)&&((a5==1)&&(!(a15==1)&&((a20==1)&&(((((!(a6==1)&&((((a18==1)&&!(a22==1))&&(a4==1))&&(a3==8)))||(!(a6==1)&&((a3==8)&&((!(a22==1)&&!(a18==1))&&(a4==1)))))||((a6==1)&&((!(a4==1)&&((a22==1)&&(a18==1)))&&(a3==4))))&&(input==1))&&(a12==8)))))))){ + a3 = 4; + a15 = 1; + a18 = 1; + a6 = 1; + a4 = 1; + a27 = 1; + a22 = 1; + return -1; + } else if(((((((a27==1)&&(((a4==1)&&(((a3==8)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6)))&&(a6==1)))&&(a20==1)))&&(a0==1))&&!(a15==1))&&!(a5==1))&&(a12==12))){ + a15 = 1; + a22 = 0; + a5 = 1; + a18 = 0; + a3 = 4; + return 26; + } else if(((((((a6==1)&&(!(a15==1)&&(!(a27==1)&&(!(a5==1)&&((((input==6)&&((a18==1)||!(a18==1)))&&(a12==8))&&(a3==7))))))&&(a22==1))&&(a20==1))&&!(a4==1))&&(a0==1))){ + a15 = 1; + a27 = 1; + a3 = 4; + a4 = 1; + a18 = 1; + a5 = 1; + return -1; + } else if(((a20==1)&&((!(a27==1)&&(!(a5==1)&&((a12==9)&&((a15==1)&&(((((a3==4)&&(!(a4==1)&&((a22==1)&&(a18==1))))&&(a6==1))||((!(a6==1)&&(((a4==1)&&((a18==1)&&!(a22==1)))&&(a3==8)))||(!(a6==1)&&((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1))))))&&(input==1))))))&&(a0==1)))){ + a12 = 11; + a4 = 0; + a18 = 1; + a0 = 0; + a3 = 6; + a27 = 1; + a22 = 1; + a6 = 0; + return -1; + } else if(((!(a0==1)&&((a5==1)&&(((a15==1)&&(!(a27==1)&&((((((a4==1)&&(!(a22==1)&&!(a18==1)))&&(a3==8))&&!(a6==1))||(((a3==4)&&(!(a4==1)&&((a22==1)&&(a18==1))))&&(a6==1)))&&(input==6))))&&(a12==10))))&&(a20==1))){ + a4 = 0; + a0 = 1; + a6 = 0; + a12 = 9; + a3 = 6; + a27 = 1; + a18 = 1; + a15 = 0; + a22 = 0; + return -1; + } else if((((a5==1)&&((((a0==1)&&((a4==1)&&(!(a18==1)&&((a3==4)&&((a20==1)&&(((a12==11)&&(input==6))&&(a27==1)))))))&&(a15==1))&&(a6==1)))&&!(a22==1))){ + a18 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if(((a0==1)&&(((!(a15==1)&&(!(a18==1)&&((a6==1)&&((((a20==1)&&((a22==1)&&((input==3)&&(a27==1))))&&(a5==1))&&(a12==11)))))&&(a3==6))&&!(a4==1)))){ + a15 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a4 = 1; + return -1; + } else if(((a27==1)&&((((((a3==7)&&(((a5==1)&&(((a12==10)&&((input==5)&&(a4==1)))&&(a20==1)))&&!(a0==1)))&&!(a15==1))&&!(a18==1))&&!(a6==1))&&!(a22==1)))){ + a3 = 8; + a4 = 0; + a0 = 1; + a5 = 0; + return -1; + } else if(((a3==7)&&(!(a0==1)&&((a20==1)&&(!(a5==1)&&((((a12==9)&&(((a4==1)&&((!(a22==1)&&(input==4))&&!(a18==1)))&&!(a15==1)))&&!(a27==1))&&(a6==1))))))){ + a22 = 1; + a18 = 1; + a3 = 8; + a0 = 1; + a5 = 1; + a12 = 12; + a15 = 1; + return 21; + } else if(((((((((((((a27==1)&&(input==1))&&(a12==10))&&!(a15==1))&&!(a18==1))&&!(a4==1))&&!(a0==1))&&(a6==1))&&(a3==5))&&(a20==1))&&(a5==1))&&!(a22==1))){ + a22 = 1; + a3 = 8; + a0 = 1; + a4 = 1; + return 24; + } else if(((a12==8)&&(((!(a6==1)&&(!(a18==1)&&((a27==1)&&(((a20==1)&&(((a3==5)&&((input==6)&&(a5==1)))&&(a4==1)))&&!(a15==1)))))&&!(a22==1))&&(a0==1)))){ + a3 = 6; + a5 = 0; + a22 = 1; + return 26; + } else if((((a0==1)&&((!(a5==1)&&((a12==10)&&((a3==6)&&((a20==1)&&((a15==1)&&((a4==1)&&((a27==1)&&((input==4)&&(a18==1)))))))))&&!(a22==1)))&&!(a6==1))){ + a6 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if((!(a5==1)&&((a20==1)&&((((a12==8)&&(((a27==1)&&(!(a0==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==2))&&(a6==1))))&&(a15==1)))&&(a3==5))&&!(a4==1))))){ + a3 = 6; + a18 = 0; + a5 = 1; + a22 = 1; + a4 = 1; + a12 = 10; + return 26; + } else if(((a20==1)&&(((a3==4)&&(!(a6==1)&&(!(a27==1)&&(((((a15==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==3)))&&!(a0==1))&&(a5==1))&&(a12==11)))))&&!(a4==1)))){ + a0 = 1; + a22 = 0; + a18 = 0; + a12 = 8; + a15 = 0; + return 21; + } else if((((!(a4==1)&&((a12==8)&&(((a3==8)&&((a0==1)&&((!(a15==1)&&(((a6==1)&&(input==3))&&(a22==1)))&&(a20==1))))&&!(a27==1))))&&(a18==1))&&(a5==1))){ + a0 = 0; + a22 = 0; + a27 = 1; + a18 = 0; + a3 = 4; + return 21; + } else if((((((!(a5==1)&&((a6==1)&&(((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==5))&&(a12==10))&&(a20==1))&&(a3==8))))&&(a15==1))&&!(a4==1))&&(a27==1))&&!(a0==1))){ + a6 = 0; + a18 = 1; + a12 = 11; + a15 = 0; + a3 = 4; + a0 = 1; + a22 = 0; + return -1; + } else if(((!(a4==1)&&((a12==8)&&(!(a15==1)&&((((((input==3)&&(((a3==5)&&((a22==1)&&!(a18==1)))||(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))))&&(a20==1))&&!(a27==1))&&(a6==1))&&(a0==1)))))&&(a5==1))){ + a18 = 0; + a3 = 8; + a27 = 1; + a22 = 1; + a12 = 11; + a15 = 1; + a5 = 0; + return -1; + } else if(((a15==1)&&(((a12==12)&&((!(a27==1)&&(((a3==8)&&((((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a5==1))&&(a20==1)))&&(a4==1)))&&(a0==1)))&&(a6==1)))){ + a22 = 1; + a12 = 11; + a3 = 6; + a27 = 1; + a18 = 1; + return 21; + } else if((!(a27==1)&&((!(a6==1)&&(((a0==1)&&((a15==1)&&((((((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==3))&&(a20==1))&&!(a5==1))))&&!(a4==1)))&&(a12==11)))){ + a6 = 1; + a22 = 0; + a18 = 0; + a12 = 10; + a3 = 6; + a4 = 1; + a27 = 1; + a15 = 0; + return 26; + } else if((((a22==1)&&((a15==1)&&((a12==10)&&((a0==1)&&((a3==7)&&(((a4==1)&&((a6==1)&&(!(a5==1)&&((input==1)&&((a18==1)||!(a18==1))))))&&(a20==1)))))))&&!(a27==1))){ + a6 = 0; + a3 = 8; + a4 = 0; + a27 = 1; + a15 = 0; + a5 = 1; + a18 = 0; + a12 = 11; + return -1; + } else if((!(a15==1)&&((((a6==1)&&((((((((input==6)&&((a18==1)||!(a18==1)))&&(a0==1))&&(a20==1))&&(a3==6))&&!(a27==1))&&(a12==11))&&!(a22==1)))&&!(a4==1))&&!(a5==1)))){ + a5 = 1; + a3 = 4; + a18 = 0; + a27 = 1; + a15 = 1; + return 21; + } else if((!(a22==1)&&((((a3==6)&&((a18==1)&&(((!(a0==1)&&(((a12==9)&&(!(a15==1)&&(input==6)))&&(a4==1)))&&(a5==1))&&(a6==1))))&&(a20==1))&&!(a27==1)))){ + a15 = 1; + a22 = 1; + a27 = 1; + a0 = 1; + a12 = 8; + a4 = 0; + a3 = 4; + return 26; + } else if(((a22==1)&&((((!(a4==1)&&(!(a15==1)&&((a12==10)&&((a0==1)&&(!(a5==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a20==1)))))))&&!(a27==1))&&!(a6==1))&&(a3==4)))){ + a18 = 0; + a15 = 1; + a27 = 1; + a0 = 0; + a3 = 5; + a6 = 1; + return -1; + } else if((((a3==7)&&((((((!(a27==1)&&((a5==1)&&((input==3)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))))&&!(a4==1))&&!(a6==1))&&(a20==1))&&(a12==12))&&(a15==1)))&&(a0==1))){ + if((a15==1)){ + a0 = 0; + a18 = 1; + a27 = 1; + a4 = 1; + a3 = 6; + a22 = 1; + }else{ + a22 = 0; + a6 = 1; + a12 = 9; + a18 = 1; + a3 = 6; + a15 = 0; + a4 = 1; + } + return -1; + } else if(((a20==1)&&((a12==8)&&(!(a18==1)&&(((a3==5)&&(!(a4==1)&&((!(a5==1)&&((a15==1)&&(!(a22==1)&&((input==2)&&!(a27==1)))))&&!(a0==1))))&&!(a6==1)))))){ + if((a6==1)){ + a22 = 1; + a6 = 1; + a4 = 1; + a5 = 1; + a27 = 1; + a0 = 1; + }else{ + a6 = 1; + a27 = 1; + a5 = 1; + a4 = 1; + a3 = 6; + a0 = 1; + a22 = 1; + } + return 26; + } else if((((((((a20==1)&&((!(a5==1)&&(((input==4)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&(a3==8)))&&(a12==9)))&&!(a4==1))&&!(a6==1))&&!(a0==1))&&(a15==1))&&(a27==1))){ + a3 = 5; + a4 = 1; + a15 = 0; + a18 = 0; + a27 = 0; + a22 = 1; + a5 = 1; + a12 = 11; + a0 = 1; + a6 = 1; + return 24; + } else if(((!(a6==1)&&((((a12==11)&&(!(a0==1)&&((a20==1)&&((a5==1)&&((!(a27==1)&&((input==2)&&!(a4==1)))&&(a15==1))))))&&(a3==8))&&(a22==1)))&&(a18==1))){ + if((a4==1)){ + a3 = 4; + a5 = 0; + a18 = 0; + a12 = 10; + }else{ + a27 = 1; + a5 = 0; + a3 = 6; + a4 = 1; + } + return -1; + } else if(((a20==1)&&((((a12==9)&&(!(a4==1)&&((a27==1)&&(!(a6==1)&&(!(a5==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))||((!(a18==1)&&(a22==1))&&(a3==7)))&&(input==4)))))))&&(a15==1))&&(a0==1)))){ + a12 = 11; + a22 = 1; + a18 = 1; + a4 = 1; + a3 = 7; + a6 = 1; + return 24; + } else if(((a20==1)&&((a0==1)&&(((a4==1)&&(!(a27==1)&&(((((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==2))&&(a12==11))&&(a6==1))&&!(a5==1))&&!(a15==1))))&&(a3==7))))){ + a12 = 8; + a22 = 1; + a15 = 1; + a5 = 1; + a18 = 1; + a3 = 4; + a27 = 1; + return -1; + } else if(((a0==1)&&(!(a6==1)&&((a3==4)&&(((a27==1)&&(((a20==1)&&(!(a15==1)&&(((input==5)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a12==11))))&&(a5==1)))&&(a4==1)))))){ + a15 = 1; + a6 = 1; + a22 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if(((!(a27==1)&&((a3==8)&&(!(a6==1)&&((((a0==1)&&(((a22==1)&&(((input==1)&&(a5==1))&&(a12==10)))&&(a18==1)))&&(a20==1))&&!(a4==1)))))&&(a15==1))){ + a12 = 8; + a27 = 1; + a3 = 4; + a4 = 1; + a6 = 1; + return -1; + } return calculate_output50(input); + } + + int calculate_output50(int input) { + if((((a20==1)&&(!(a4==1)&&((a0==1)&&((a27==1)&&((((a3==6)&&(!(a5==1)&&((((a18==1)||!(a18==1))&&(input==6))&&!(a22==1))))&&(a6==1))&&(a12==12))))))&&!(a15==1))){ + a5 = 1; + a18 = 1; + a22 = 1; + a15 = 1; + a12 = 8; + a3 = 4; + a4 = 1; + return -1; + } else if((((a6==1)&&((a20==1)&&(((a0==1)&&((!(a4==1)&&((a27==1)&&((input==2)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1)))))))&&(a15==1)))&&(a12==11))))&&!(a5==1))){ + if((a15==1)){ + a12 = 10; + a0 = 0; + a6 = 0; + a4 = 1; + a18 = 0; + a3 = 5; + a22 = 1; + a15 = 0; + }else{ + a4 = 1; + a18 = 0; + a27 = 0; + a3 = 4; + a22 = 1; + } + return 26; + } else if(((((!(a15==1)&&((((a6==1)&&(((a5==1)&&((input==4)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))))&&!(a4==1)))&&!(a0==1))&&(a12==10)))&&(a3==5))&&(a27==1))&&(a20==1))){ + a15 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a4 = 1; + a0 = 1; + a12 = 8; + return -1; + } else if((((a22==1)&&(((((a0==1)&&((((a27==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&(a3==5)))&&!(a5==1))&&(a20==1)))&&(a6==1))&&!(a15==1))&&(a4==1)))&&(a12==9))){ + a4 = 0; + a18 = 0; + a27 = 0; + a22 = 0; + a12 = 8; + a3 = 4; + return 24; + } else if((!(a6==1)&&((a5==1)&&(!(a0==1)&&((a27==1)&&(((((a15==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==3))&&!(a4==1)))&&(a20==1))&&(a12==12))&&(a3==5))))))){ + a4 = 1; + a0 = 1; + a22 = 0; + a12 = 11; + a18 = 1; + a3 = 4; + return 21; + } else if((((a12==11)&&(!(a6==1)&&((a27==1)&&((((a3==5)&&(!(a5==1)&&(((((a18==1)||!(a18==1))&&(input==4))&&(a20==1))&&(a4==1))))&&(a0==1))&&!(a22==1)))))&&(a15==1))){ + a5 = 1; + a18 = 1; + a3 = 6; + a15 = 0; + a4 = 0; + return 24; + } else if(((!(a6==1)&&(((a3==8)&&((!(a15==1)&&((a20==1)&&((a5==1)&&(!(a0==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==4))))))&&(a12==10)))&&!(a4==1)))&&!(a27==1))){ + a27 = 1; + a12 = 8; + a6 = 1; + a0 = 1; + a18 = 0; + a15 = 1; + a22 = 1; + return 26; + } else if((!(a4==1)&&(!(a22==1)&&((a12==9)&&(!(a15==1)&&(!(a0==1)&&(!(a5==1)&&((a6==1)&&(((!(a27==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a20==1))&&(a3==8)))))))))){ + a18 = 0; + a27 = 1; + a3 = 7; + a12 = 10; + return -1; + } else if((((a0==1)&&((!(a6==1)&&(((((a4==1)&&((a3==5)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4))))&&(a5==1))&&(a20==1))&&(a27==1)))&&(a12==12)))&&(a15==1))){ + a12 = 9; + a15 = 0; + a6 = 1; + a4 = 0; + a18 = 0; + a0 = 0; + a3 = 6; + a5 = 0; + a22 = 1; + return -1; + } else if(((!(a5==1)&&((((!(a4==1)&&((a15==1)&&(((((a3==5)&&(!(a18==1)&&(a22==1)))||(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5))))&&(input==2))&&(a12==11))))&&(a27==1))&&(a0==1))&&(a20==1)))&&!(a6==1))){ + a5 = 1; + a15 = 0; + a3 = 5; + a4 = 1; + a22 = 0; + a18 = 0; + return 26; + } else if(((a12==10)&&(!(a5==1)&&(((a0==1)&&((a3==7)&&((a27==1)&&((a15==1)&&((((input==5)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&!(a6==1))&&(a20==1))))))&&(a4==1))))){ + a15 = 0; + a22 = 1; + a4 = 0; + a3 = 8; + a6 = 1; + a5 = 1; + a18 = 0; + a12 = 11; + return 21; + } else if((((!(a0==1)&&((a12==8)&&(!(a5==1)&&(((a15==1)&&(!(a22==1)&&((!(a4==1)&&((input==2)&&((a18==1)||!(a18==1))))&&(a6==1))))&&(a20==1)))))&&(a27==1))&&(a3==7))){ + a3 = 4; + a22 = 1; + a4 = 1; + a18 = 1; + a5 = 1; + a0 = 1; + return -1; + } else if((!(a15==1)&&((((a20==1)&&(!(a0==1)&&((a12==10)&&(!(a27==1)&&(!(a4==1)&&(((((a18==1)&&(a22==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1)))))&&(input==1)))))))&&(a6==1))&&(a5==1)))){ + if((a18==1)){ + a0 = 1; + a27 = 1; + a12 = 9; + a3 = 6; + a15 = 1; + a18 = 1; + a22 = 1; + }else{ + a27 = 1; + a15 = 1; + a12 = 8; + a0 = 1; + a6 = 0; + a4 = 1; + a18 = 0; + a3 = 5; + a22 = 1; + } + return 26; + } else if(((((((((a0==1)&&(((input==4)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))||((a3==6)&&((a22==1)&&!(a18==1)))))&&(a20==1)))&&!(a15==1))&&(a4==1))&&(a27==1))&&!(a6==1))&&(a5==1))&&(a12==9))){ + a18 = 1; + a12 = 8; + a15 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if(((a20==1)&&((!(a4==1)&&((((a15==1)&&((((input==4)&&((((a22==1)&&!(a18==1))&&(a3==6))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1))))))&&!(a0==1))&&(a5==1)))&&(a6==1))&&(a27==1)))&&(a12==11)))){ + a12 = 10; + a4 = 1; + a18 = 1; + a22 = 1; + a5 = 0; + a0 = 1; + a3 = 4; + return 21; + } else if((((((a20==1)&&(((!(a6==1)&&(((((a5==1)&&(input==4))&&(a4==1))&&!(a22==1))&&(a3==8)))&&(a0==1))&&!(a15==1)))&&(a18==1))&&!(a27==1))&&(a12==9))){ + a18 = 0; + a27 = 1; + a3 = 7; + a5 = 0; + a4 = 0; + a12 = 11; + return 21; + } else if(((!(a15==1)&&(((a20==1)&&((a3==6)&&(((a4==1)&&((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==4))&&(a0==1))&&!(a27==1)))&&(a5==1))))&&(a12==11)))&&!(a6==1))){ + a27 = 1; + a22 = 0; + a3 = 8; + a15 = 1; + a18 = 1; + return -1; + } else if((((((!(a4==1)&&(((a0==1)&&(!(a27==1)&&((a5==1)&&((input==5)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))))&&(a3==6)))&&(a15==1))&&!(a6==1))&&(a20==1))&&(a12==8))){ + a5 = 0; + a22 = 1; + a4 = 1; + a15 = 0; + a18 = 0; + a12 = 10; + a3 = 8; + a6 = 1; + return 21; + } else if(((a12==11)&&(!(a0==1)&&((((a20==1)&&((a3==8)&&((!(a15==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&!(a6==1)))&&(a5==1))))&&!(a4==1))&&!(a27==1))))){ + a3 = 7; + a27 = 1; + a5 = 0; + a0 = 1; + a4 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((((a4==1)&&((a20==1)&&(!(a27==1)&&(((a0==1)&&(!(a5==1)&&((((a3==5)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1)))))&&(input==3))))&&!(a15==1)))))&&(a6==1))&&(a12==8))){ + if((a6==1)){ + a12 = 10; + a4 = 0; + a27 = 1; + a22 = 0; + a0 = 0; + a18 = 1; + a15 = 1; + a3 = 4; + }else{ + a3 = 4; + a18 = 1; + a22 = 0; + a12 = 10; + a27 = 1; + } + return 21; + } else if((((a27==1)&&(((!(a0==1)&&(((((((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8))&&!(a6==1))||(((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1))))&&(a6==1)))&&(input==4))&&(a12==12)))&&!(a5==1))&&(a20==1)))&&(a15==1))){ + if((a0==1)){ + a27 = 0; + a3 = 6; + a4 = 0; + a18 = 1; + a22 = 0; + a12 = 10; + a6 = 1; + a0 = 1; + }else{ + a22 = 1; + a0 = 1; + a3 = 6; + a6 = 1; + a4 = 0; + a18 = 0; + a5 = 1; + a12 = 8; + } + return -1; + } else if((((a15==1)&&(!(a0==1)&&(((a3==6)&&(!(a27==1)&&(((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==3))&&(a20==1))&&(a5==1))&&(a4==1))))&&(a12==10))))&&(a6==1))){ + a18 = 1; + a22 = 1; + a4 = 0; + a0 = 1; + a3 = 8; + a12 = 8; + a27 = 1; + return -1; + } else if(((a12==8)&&((((((((((((a18==1)||!(a18==1))&&(input==2))&&(a22==1))&&!(a5==1))&&(a20==1))&&(a3==7))&&(a27==1))&&(a0==1))&&!(a4==1))&&!(a6==1))&&!(a15==1)))){ + a15 = 1; + a12 = 11; + a18 = 0; + a22 = 0; + a4 = 1; + return 26; + } else if((((!(a0==1)&&(((a6==1)&&(((((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==1))&&(a5==1))&&(a15==1))&&!(a4==1))&&(a20==1)))&&(a12==8)))&&(a27==1))&&(a3==4))){ + a3 = 8; + a12 = 10; + a22 = 0; + a18 = 0; + a6 = 0; + a0 = 1; + return -1; + } else if((!(a6==1)&&((((a20==1)&&(((a0==1)&&(!(a4==1)&&(!(a5==1)&&((input==2)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))))))&&(a27==1)))&&(a12==8))&&(a15==1)))){ + a3 = 8; + a6 = 1; + a12 = 10; + a18 = 1; + a15 = 0; + a22 = 0; + a5 = 1; + return 26; + } else if(((((!(a4==1)&&(!(a15==1)&&((a3==8)&&(((((a12==12)&&((input==1)&&((a18==1)||!(a18==1))))&&(a5==1))&&(a0==1))&&(a20==1)))))&&(a22==1))&&!(a27==1))&&!(a6==1))){ + a27 = 1; + a15 = 1; + a4 = 1; + a3 = 6; + a12 = 11; + a18 = 0; + return 21; + } else if((((a20==1)&&((a4==1)&&((a0==1)&&((((a6==1)&&((a12==10)&&(((a27==1)&&((input==4)&&!(a15==1)))&&(a18==1))))&&(a5==1))&&(a22==1)))))&&(a3==5))){ + a3 = 4; + a12 = 9; + a5 = 0; + a27 = 0; + return 26; + } else if(((a12==8)&&(((!(a22==1)&&((a5==1)&&((!(a6==1)&&(((a18==1)&&(((a20==1)&&(input==4))&&(a27==1)))&&(a3==7)))&&!(a15==1))))&&!(a0==1))&&!(a4==1)))){ + a12 = 9; + a5 = 0; + a18 = 0; + a15 = 1; + a0 = 1; + a22 = 1; + a3 = 4; + return 24; + } else if(((((a27==1)&&((!(a0==1)&&(((a6==1)&&((a22==1)&&((a20==1)&&(!(a5==1)&&((input==5)&&(a3==5))))))&&(a4==1)))&&(a12==11)))&&!(a18==1))&&(a15==1))){ + a6 = 0; + a4 = 0; + a12 = 9; + a0 = 1; + a27 = 0; + a18 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if(((a27==1)&&(!(a6==1)&&((((a20==1)&&(!(a22==1)&&(((!(a0==1)&&(((input==3)&&(a3==6))&&!(a18==1)))&&!(a4==1))&&(a12==12))))&&(a15==1))&&!(a5==1))))){ + a3 = 7; + a12 = 10; + a4 = 1; + a5 = 1; + a15 = 0; + a18 = 1; + a22 = 1; + a0 = 1; + return -1; + } else if((((a3==8)&&(!(a27==1)&&((!(a0==1)&&(((a20==1)&&(((a12==8)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==5)))&&!(a5==1)))&&(a4==1)))&&!(a15==1))))&&!(a6==1))){ + a3 = 7; + a5 = 1; + a15 = 1; + a0 = 1; + a27 = 1; + a22 = 1; + a18 = 0; + return 24; + } else if((((((a12==12)&&(((a5==1)&&(((a6==1)&&((a20==1)&&((input==5)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))))&&(a3==5)))&&(a15==1)))&&(a0==1))&&!(a27==1))&&!(a4==1))){ + a27 = 1; + a18 = 0; + a22 = 1; + a12 = 11; + a4 = 1; + a5 = 0; + a3 = 7; + return -1; + } else if(((!(a15==1)&&((((a3==7)&&((!(a0==1)&&(!(a4==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1))&&(a5==1))))&&(a12==11)))&&(a6==1))&&(a20==1)))&&!(a27==1))){ + a22 = 1; + a5 = 0; + a3 = 4; + a12 = 10; + a4 = 1; + a18 = 1; + return 24; + } else if(((a20==1)&&(!(a5==1)&&((!(a27==1)&&(!(a4==1)&&((a3==8)&&((a12==10)&&(((((input==4)&&((a18==1)||!(a18==1)))&&!(a6==1))&&(a22==1))&&(a0==1))))))&&(a15==1))))){ + a3 = 5; + a12 = 8; + a18 = 0; + return -1; + } else if((((a0==1)&&(!(a6==1)&&((a3==6)&&(!(a27==1)&&(((a5==1)&&((a12==9)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5))&&!(a15==1))))&&(a4==1))))))&&(a20==1))){ + a18 = 0; + a22 = 0; + a3 = 7; + a12 = 11; + return 26; + } else if(((!(a5==1)&&(((a12==8)&&(((!(a15==1)&&(((a4==1)&&((input==2)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))&&(a3==7)))&&!(a6==1))&&(a0==1)))&&(a20==1)))&&!(a27==1))){ + a6 = 1; + a5 = 1; + a27 = 1; + a15 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + return -1; + } else if((((!(a4==1)&&((!(a0==1)&&(!(a5==1)&&(!(a15==1)&&((!(a6==1)&&((a3==7)&&((input==3)&&(a27==1))))&&(a22==1)))))&&(a12==11)))&&(a20==1))&&(a18==1))){ + a6 = 1; + a12 = 8; + a15 = 1; + a5 = 1; + a4 = 1; + a3 = 4; + a0 = 1; + return -1; + } else if(((!(a27==1)&&((a4==1)&&((((((((input==6)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a15==1))&&!(a0==1))&&!(a6==1))&&(a20==1))&&(a12==9))&&(a3==8))))&&(a5==1))){ + if((a15==1)){ + a4 = 0; + a5 = 0; + a12 = 8; + a27 = 1; + a3 = 4; + a0 = 1; + a18 = 1; + a22 = 0; + }else{ + a22 = 1; + a3 = 6; + a6 = 1; + a0 = 1; + a12 = 12; + a18 = 1; + } + return -1; + } else if(((!(a5==1)&&(((a4==1)&&(((a22==1)&&((a20==1)&&((a27==1)&&((((input==5)&&(a3==4))&&(a6==1))&&!(a18==1)))))&&(a12==11)))&&(a15==1)))&&!(a0==1))){ + a3 = 7; + a22 = 0; + a27 = 0; + a18 = 1; + a6 = 0; + a5 = 1; + a12 = 9; + a0 = 1; + return -1; + } else if((((!(a4==1)&&((a12==11)&&(!(a18==1)&&((a3==7)&&((((!(a0==1)&&((a15==1)&&(input==1)))&&(a27==1))&&!(a22==1))&&(a20==1))))))&&(a6==1))&&(a5==1))){ + a22 = 1; + a4 = 1; + a18 = 1; + a0 = 1; + a12 = 10; + return 21; + } else if(((!(a4==1)&&(((((a27==1)&&(!(a5==1)&&((a0==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2))&&(a12==9)))))&&(a3==6))&&(a20==1))&&!(a6==1)))&&!(a15==1))){ + a3 = 5; + a4 = 1; + a18 = 1; + a5 = 1; + a12 = 11; + a22 = 0; + return 26; + } else if(((a3==4)&&((a12==12)&&((a20==1)&&((!(a22==1)&&(((a6==1)&&(((!(a15==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a0==1))&&(a5==1)))&&(a27==1)))&&!(a4==1)))))){ + a15 = 1; + a12 = 11; + a18 = 0; + return 26; + } else if((((a18==1)&&((((((a12==10)&&(((((input==5)&&(a15==1))&&(a3==5))&&(a5==1))&&(a27==1)))&&!(a6==1))&&(a20==1))&&(a0==1))&&(a22==1)))&&(a4==1))){ + a6 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((((a6==1)&&((a20==1)&&((a0==1)&&((a4==1)&&((a5==1)&&((a3==8)&&(!(a15==1)&&(((input==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&(a12==9)))))))))&&!(a27==1))){ + a22 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + a15 = 1; + a27 = 1; + return -1; + } else if((((a3==4)&&((!(a0==1)&&((((a12==10)&&((((a4==1)&&((input==1)&&(a5==1)))&&!(a6==1))&&!(a15==1)))&&(a18==1))&&(a20==1)))&&(a22==1)))&&!(a27==1))){ + a27 = 1; + a0 = 1; + a4 = 0; + a15 = 1; + a6 = 1; + a12 = 8; + a3 = 6; + return 21; + } else if(((((a0==1)&&((a12==9)&&((a15==1)&&(((a3==6)&&((a5==1)&&(!(a27==1)&&((input==5)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))))))&&!(a6==1)))))&&(a4==1))&&(a20==1))){ + a18 = 1; + a6 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + a27 = 1; + return -1; + } else if((!(a5==1)&&(((a12==10)&&(((a20==1)&&((((a3==5)&&((a15==1)&&((input==4)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))))&&(a6==1))&&(a4==1)))&&(a27==1)))&&!(a0==1)))){ + a18 = 1; + a5 = 1; + a0 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + return -1; + } else if((!(a15==1)&&(!(a5==1)&&((a4==1)&&(!(a6==1)&&((a0==1)&&((a12==8)&&(((((((a22==1)&&(a18==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==4))))&&(input==2))&&(a20==1))&&!(a27==1))))))))){ + a6 = 1; + a18 = 0; + a15 = 1; + a22 = 1; + a3 = 4; + a27 = 1; + a12 = 11; + return -1; + } else if((((a0==1)&&(!(a15==1)&&((((a22==1)&&((a12==12)&&(!(a4==1)&&((!(a27==1)&&((input==5)&&(a18==1)))&&(a3==6)))))&&(a5==1))&&(a20==1))))&&(a6==1))){ + a22 = 0; + a12 = 8; + a3 = 4; + a15 = 1; + a5 = 0; + return -1; + } else if(((a0==1)&&((((a5==1)&&((((a4==1)&&((a20==1)&&((((a3==8)&&((a18==1)&&(a22==1)))||(((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==7))))&&(input==6))))&&(a12==12))&&(a15==1)))&&!(a27==1))&&(a6==1)))){ + a12 = 8; + a22 = 1; + a18 = 1; + a3 = 4; + a27 = 1; + return -1; + } else if(((((!(a15==1)&&(!(a0==1)&&((a5==1)&&(((a4==1)&&((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==2))&&(a20==1)))&&(a27==1)))))&&(a12==12))&&!(a6==1))&&(a3==6))){ + if((a20==1)){ + a22 = 0; + a18 = 0; + a3 = 7; + a15 = 1; + a12 = 8; + a0 = 1; + }else{ + a22 = 1; + a18 = 0; + a3 = 8; + a0 = 1; + } + return -1; + } else if(((a4==1)&&((a3==5)&&((((!(a18==1)&&((a12==10)&&((a20==1)&&((!(a0==1)&&(!(a5==1)&&(input==4)))&&!(a6==1)))))&&(a27==1))&&(a22==1))&&(a15==1))))){ + a12 = 9; + a0 = 1; + a6 = 1; + a3 = 7; + return 26; + } else if(((((a6==1)&&((a12==12)&&((((((input==4)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))||((a3==5)&&(!(a18==1)&&(a22==1)))))&&(a4==1))&&(a20==1))&&(a5==1))&&!(a15==1))))&&(a0==1))&&(a27==1))){ + a15 = 1; + a4 = 0; + a22 = 1; + a6 = 0; + a18 = 1; + a3 = 8; + return -1; + } else if(((a5==1)&&(!(a15==1)&&(((a20==1)&&(!(a22==1)&&((!(a27==1)&&(!(a6==1)&&((!(a0==1)&&((a12==8)&&(input==4)))&&(a3==6))))&&!(a4==1))))&&(a18==1))))){ + if((a6==1)){ + a3 = 5; + a27 = 1; + a15 = 1; + a0 = 1; + a22 = 1; + a4 = 1; + }else{ + a12 = 12; + a18 = 0; + a4 = 1; + a5 = 0; + a0 = 1; + a6 = 1; + a27 = 1; + } + return -1; + } else if(((a0==1)&&((a20==1)&&((((!(a6==1)&&(((((((a18==1)&&(a22==1))&&(a3==5))||((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1)))))&&(input==1))&&(a15==1))&&(a12==10)))&&(a27==1))&&(a4==1))&&!(a5==1))))){ + if((a18==1)){ + a12 = 11; + a3 = 5; + a18 = 1; + a22 = 1; + a0 = 0; + a15 = 0; + a5 = 1; + }else{ + a4 = 0; + a3 = 7; + a18 = 1; + a15 = 0; + a22 = 1; + a5 = 1; + } + return -1; + } else if(((a4==1)&&(((((a22==1)&&((a3==8)&&((((a12==9)&&(((input==2)&&(a20==1))&&!(a5==1)))&&!(a27==1))&&!(a6==1))))&&!(a0==1))&&!(a18==1))&&(a15==1)))){ + a3 = 6; + a6 = 1; + a27 = 1; + a12 = 12; + a5 = 1; + a15 = 0; + a18 = 1; + return -1; + } else if((((a20==1)&&((!(a18==1)&&(((a0==1)&&((a3==4)&&((a4==1)&&(((!(a6==1)&&(input==6))&&(a12==9))&&(a22==1)))))&&(a15==1)))&&(a5==1)))&&(a27==1))){ + a6 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if((!(a18==1)&&((!(a5==1)&&(((a12==11)&&(((((a15==1)&&(((input==3)&&(a20==1))&&(a6==1)))&&!(a27==1))&&(a4==1))&&(a3==7)))&&(a22==1)))&&(a0==1)))){ + a3 = 5; + a15 = 0; + a18 = 1; + a27 = 1; + a5 = 1; + a4 = 0; + return -1; + } else if((((((a12==9)&&((((a20==1)&&(((!(a5==1)&&((input==6)&&((a18==1)||!(a18==1))))&&!(a0==1))&&(a15==1)))&&(a22==1))&&(a6==1)))&&(a3==7))&&!(a4==1))&&!(a27==1))){ + a0 = 1; + a5 = 1; + a18 = 0; + a6 = 0; + a27 = 1; + a12 = 8; + a4 = 1; + a3 = 5; + a22 = 0; + return -1; + } else if(((a4==1)&&((a12==10)&&((a5==1)&&(((a6==1)&&((a3==5)&&((a0==1)&&((((a22==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&!(a15==1))&&!(a27==1)))))&&(a20==1)))))){ + if((a27==1)){ + a18 = 1; + a4 = 0; + a27 = 1; + a12 = 11; + a15 = 1; + a0 = 0; + a5 = 0; + }else{ + a4 = 0; + a12 = 11; + a27 = 1; + a5 = 0; + a18 = 1; + a3 = 8; + } + return 21; + } else if(((a18==1)&&(!(a0==1)&&(((a12==12)&&((a27==1)&&(!(a22==1)&&((((((a4==1)&&(input==3))&&!(a6==1))&&(a3==5))&&!(a5==1))&&(a15==1)))))&&(a20==1))))){ + a12 = 10; + a27 = 0; + a4 = 0; + a3 = 6; + a0 = 1; + a18 = 0; + a22 = 1; + return -1; + } else if((!(a5==1)&&(((a4==1)&&((a20==1)&&((((a27==1)&&((a15==1)&&((a12==8)&&((a0==1)&&((input==5)&&((a18==1)||!(a18==1)))))))&&(a6==1))&&(a22==1))))&&(a3==8)))){ + a18 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if(((((a27==1)&&((!(a15==1)&&((((a4==1)&&((((a20==1)&&(input==6))&&!(a0==1))&&(a6==1)))&&(a3==5))&&(a18==1)))&&(a5==1)))&&(a22==1))&&(a12==11))){ + a0 = 1; + a3 = 4; + a15 = 1; + a12 = 8; + return -1; + } else if((!(a0==1)&&((a18==1)&&((a6==1)&&(!(a4==1)&&(((a15==1)&&((a22==1)&&(((a20==1)&&(!(a27==1)&&((input==3)&&(a12==11))))&&!(a5==1))))&&(a3==6))))))){ + if((a15==1)){ + a18 = 0; + a12 = 9; + a0 = 1; + a5 = 1; + }else{ + a27 = 1; + a12 = 9; + a22 = 0; + a3 = 7; + a0 = 1; + } + return -1; + } else if(((a22==1)&&(!(a5==1)&&((((((a27==1)&&(((!(a15==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a20==1))&&!(a6==1)))&&(a4==1))&&(a0==1))&&(a12==10))&&(a3==4))))){ + a15 = 1; + a18 = 1; + a22 = 0; + a6 = 1; + a3 = 6; + return -1; + } else if(((a5==1)&&((((a6==1)&&((((!(a27==1)&&(((((a18==1)||!(a18==1))&&(input==3))&&(a20==1))&&(a3==4)))&&!(a15==1))&&(a22==1))&&!(a0==1)))&&!(a4==1))&&(a12==10)))){ + if((a15==1)){ + a4 = 1; + a27 = 1; + a18 = 1; + a12 = 8; + a22 = 0; + a3 = 6; + a15 = 1; + a0 = 1; + }else{ + a4 = 1; + a12 = 8; + a27 = 1; + a6 = 0; + a15 = 1; + a3 = 7; + a22 = 0; + a5 = 0; + a18 = 1; + } + return 21; + } else if(((a0==1)&&((a22==1)&&(!(a15==1)&&((((a4==1)&&((a3==7)&&((((a20==1)&&((input==2)&&!(a18==1)))&&!(a6==1))&&(a12==10))))&&(a5==1))&&!(a27==1)))))){ + a15 = 1; + a12 = 11; + a3 = 5; + a22 = 0; + a5 = 0; + return 26; + } else if((((a3==4)&&((a27==1)&&((((a0==1)&&(!(a4==1)&&((a5==1)&&(((a6==1)&&((input==5)&&((a18==1)||!(a18==1))))&&!(a22==1)))))&&(a20==1))&&(a12==8))))&&!(a15==1))){ + a4 = 1; + a15 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((((a5==1)&&(((a20==1)&&((a12==9)&&((a4==1)&&((((a15==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a3==7))&&(a6==1)))))&&(a27==1)))&&(a22==1))&&(a0==1))){ + a4 = 0; + a5 = 0; + a12 = 11; + a18 = 1; + a0 = 0; + a3 = 5; + return 21; + } else if((((a12==10)&&((a20==1)&&((!(a0==1)&&((a4==1)&&(!(a15==1)&&((a6==1)&&((input==3)&&(((a3==6)&&((a22==1)&&(a18==1)))||(((a3==5)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==5)))))))))&&(a5==1))))&&(a27==1))){ + a22 = 1; + a6 = 0; + a18 = 0; + a12 = 11; + a15 = 1; + a0 = 1; + a3 = 6; + return 21; + } else if(((a20==1)&&(((a27==1)&&(((a15==1)&&(((a22==1)&&(((!(a5==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a3==5))&&(a4==1)))&&(a6==1)))&&!(a0==1)))&&(a12==8)))){ + a12 = 11; + a3 = 7; + a18 = 1; + a0 = 1; + a15 = 0; + a27 = 0; + return 26; + } else if((!(a22==1)&&((a18==1)&&(((a27==1)&&(!(a0==1)&&((a20==1)&&((((a3==7)&&(((input==3)&&(a12==9))&&!(a15==1)))&&(a5==1))&&!(a4==1)))))&&(a6==1))))){ + a6 = 0; + a3 = 5; + a0 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if((((a15==1)&&((!(a0==1)&&((((a3==4)&&(!(a4==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a12==12))))&&!(a5==1))&&(a6==1)))&&(a27==1)))&&(a20==1))){ + a0 = 1; + a18 = 1; + a3 = 7; + a22 = 0; + a27 = 0; + return -1; + } else if(((((((a4==1)&&(((!(a6==1)&&((((a3==5)&&((a22==1)&&(a18==1)))||(((a3==4)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==4))))&&(input==3)))&&(a27==1))&&(a12==9)))&&(a5==1))&&(a20==1))&&!(a0==1))&&(a15==1))){ + a22 = 0; + a3 = 5; + a6 = 1; + a0 = 1; + a18 = 0; + a15 = 0; + a12 = 10; + return 21; + } else if(((((!(a22==1)&&(((((a20==1)&&((!(a5==1)&&((a12==9)&&(input==5)))&&!(a15==1)))&&(a0==1))&&(a6==1))&&!(a27==1)))&&!(a4==1))&&!(a18==1))&&(a3==8))){ + a15 = 1; + a18 = 1; + a12 = 12; + a27 = 1; + a5 = 1; + a3 = 7; + a6 = 0; + return 21; + } else if((!(a6==1)&&(!(a5==1)&&((!(a15==1)&&((((((((input==2)&&((a18==1)||!(a18==1)))&&(a27==1))&&(a3==5))&&(a4==1))&&!(a22==1))&&(a12==8))&&(a0==1)))&&(a20==1))))){ + a6 = 1; + a15 = 1; + a22 = 1; + a5 = 1; + a12 = 11; + a18 = 1; + a4 = 0; + a3 = 4; + return 21; + } else if((((!(a4==1)&&((((((!(a5==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4)))&&!(a6==1))&&!(a15==1))&&(a12==10))&&(a0==1))&&(a3==8)))&&(a20==1))&&!(a27==1))){ + a3 = 5; + a12 = 11; + a27 = 1; + a18 = 0; + a22 = 0; + a4 = 1; + return -1; + } else if((((!(a6==1)&&(((!(a22==1)&&((((!(a4==1)&&((input==1)&&!(a27==1)))&&!(a18==1))&&(a0==1))&&(a15==1)))&&(a12==12))&&(a3==8)))&&(a20==1))&&(a5==1))){ + a3 = 4; + return -1; + } else if(((a4==1)&&(((a12==11)&&(!(a0==1)&&((a20==1)&&((!(a27==1)&&((a5==1)&&((input==6)&&((((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a22==1)&&(a18==1))))||(((a22==1)&&!(a18==1))&&(a3==5))))))&&(a15==1)))))&&(a6==1)))){ + a6 = 0; + a0 = 1; + a22 = 0; + a3 = 6; + a27 = 1; + a18 = 0; + a12 = 8; + return 21; + } else if((((a22==1)&&((((a3==6)&&(((!(a27==1)&&((((input==3)&&(a0==1))&&(a12==12))&&!(a4==1)))&&(a5==1))&&!(a15==1)))&&(a20==1))&&(a18==1)))&&(a6==1))){ + a6 = 0; + a12 = 10; + a22 = 0; + a27 = 1; + a4 = 1; + a3 = 5; + a5 = 0; + return 21; + } else if((!(a27==1)&&((a5==1)&&(!(a15==1)&&((!(a0==1)&&(((a20==1)&&((a12==9)&&((input==1)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6))))))&&!(a6==1)))&&!(a4==1)))))){ + a22 = 0; + a3 = 5; + a27 = 1; + a0 = 1; + a15 = 1; + a12 = 8; + a18 = 1; + a4 = 1; + return 21; + } else if(((a20==1)&&(((((a27==1)&&((a12==9)&&((a3==5)&&((a22==1)&&((a15==1)&&((a5==1)&&((input==4)&&!(a4==1))))))))&&!(a0==1))&&(a6==1))&&(a18==1)))){ + a4 = 1; + a3 = 4; + a12 = 8; + a0 = 1; + return -1; + } else if(((a12==10)&&((a3==5)&&(((a20==1)&&((!(a27==1)&&(((a0==1)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==5))&&(a4==1)))&&!(a15==1)))&&!(a5==1)))&&(a6==1))))){ + a27 = 1; + a22 = 0; + a15 = 1; + a3 = 7; + a18 = 0; + return 21; + } else if((!(a6==1)&&((((a15==1)&&((a0==1)&&(((a12==10)&&(((input==2)&&((((a22==1)&&(a18==1))&&(a3==8))||(((a3==7)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==7)))))&&!(a27==1)))&&(a4==1))))&&(a20==1))&&(a5==1)))){ + a15 = 0; + a22 = 1; + a3 = 6; + a18 = 0; + a12 = 12; + return 26; + } else if(((a3==8)&&((a15==1)&&(((!(a27==1)&&((((!(a6==1)&&(((a12==11)&&(input==6))&&!(a18==1)))&&!(a5==1))&&!(a0==1))&&!(a4==1)))&&(a22==1))&&(a20==1))))){ + if((a18==1)){ + a12 = 12; + a27 = 1; + a18 = 1; + a5 = 1; + a4 = 1; + }else{ + a12 = 10; + a0 = 1; + a22 = 0; + a5 = 1; + } + return 21; + } else if(((a27==1)&&((a0==1)&&((a5==1)&&(((a6==1)&&((a20==1)&&((a3==8)&&((a12==10)&&((((input==6)&&!(a4==1))&&!(a15==1))&&!(a18==1))))))&&(a22==1)))))){ + a27 = 0; + a4 = 1; + a15 = 1; + a3 = 5; + return 21; + } else if(((a4==1)&&(!(a6==1)&&((!(a15==1)&&(((a0==1)&&(!(a27==1)&&(((input==6)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5))))&&(a12==12))))&&!(a5==1)))&&(a20==1))))){ + a12 = 11; + a27 = 1; + a22 = 0; + a18 = 0; + a3 = 8; + a6 = 1; + return 21; + } else if((((!(a22==1)&&((a20==1)&&((a15==1)&&((a4==1)&&((a27==1)&&((a18==1)&&(((!(a6==1)&&(input==5))&&!(a5==1))&&(a3==4))))))))&&(a12==11))&&!(a0==1))){ + a5 = 1; + a0 = 1; + a3 = 7; + a4 = 0; + a15 = 0; + a12 = 10; + return 21; + } else if((((!(a15==1)&&(!(a27==1)&&(!(a6==1)&&((a20==1)&&(((a12==9)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==5)))&&(a5==1))))))&&(a0==1))&&!(a4==1))){ + if((a15==1)){ + a15 = 1; + a0 = 0; + a27 = 1; + a18 = 1; + a22 = 0; + a12 = 8; + a3 = 7; + }else{ + a3 = 8; + a12 = 12; + a18 = 0; + a22 = 0; + a15 = 1; + a27 = 1; + a6 = 1; + } + return 26; + } else if((((a3==8)&&(!(a15==1)&&(!(a6==1)&&(((((((a5==1)&&((a20==1)&&(input==5)))&&(a12==11))&&!(a22==1))&&(a0==1))&&(a27==1))&&(a18==1)))))&&(a4==1))){ + if((a0==1)){ + a4 = 0; + a0 = 0; + a12 = 9; + }else{ + a6 = 1; + a3 = 6; + } + return 24; + } else if(((((a5==1)&&(((a3==5)&&(((((a12==8)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a27==1)))&&!(a4==1))&&(a22==1))&&(a20==1)))&&!(a15==1)))&&!(a0==1))&&!(a6==1))){ + a12 = 10; + a15 = 1; + a6 = 1; + a0 = 1; + a18 = 1; + a22 = 0; + a3 = 7; + return 26; + } else if((!(a22==1)&&((a6==1)&&(!(a0==1)&&((a5==1)&&((((a18==1)&&(((((a20==1)&&(input==6))&&!(a27==1))&&!(a4==1))&&(a12==8)))&&(a15==1))&&(a3==6))))))){ + a12 = 10; + a3 = 7; + a5 = 0; + a22 = 1; + a0 = 1; + a6 = 0; + return 21; + } else if(((a15==1)&&(((a20==1)&&((!(a5==1)&&((((a4==1)&&((a12==9)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==5))))&&(a0==1))&&!(a6==1)))&&(a3==4)))&&!(a27==1)))){ + a6 = 1; + a27 = 1; + a5 = 1; + a18 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if((((((!(a4==1)&&((a15==1)&&((((input==2)&&((((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==7)))||(((a22==1)&&(a18==1))&&(a3==8))))&&!(a0==1))&&(a12==8))))&&(a20==1))&&!(a27==1))&&!(a5==1))&&(a6==1))){ + a0 = 1; + a6 = 0; + a3 = 6; + a12 = 10; + a22 = 1; + a18 = 1; + return 21; + } else if(((a22==1)&&(((((((a6==1)&&((a15==1)&&((a4==1)&&((a3==4)&&(!(a5==1)&&(input==5))))))&&(a0==1))&&(a20==1))&&!(a27==1))&&(a12==11))&&(a18==1)))){ + a6 = 0; + a5 = 1; + a12 = 9; + a4 = 0; + return -1; + } else if(((a4==1)&&(((a12==9)&&((((!(a22==1)&&((a20==1)&&((a3==7)&&(((input==6)&&!(a18==1))&&(a15==1)))))&&!(a27==1))&&(a5==1))&&!(a6==1)))&&(a0==1)))){ + a4 = 0; + a22 = 1; + a15 = 0; + a3 = 5; + a0 = 0; + a27 = 1; + return 26; + } else if(((!(a27==1)&&((((((!(a6==1)&&((((!(a18==1)&&!(a22==1))&&(a15==1))&&!(a4==1))&&(a3==8)))||((a6==1)&&((a3==4)&&((a4==1)&&(((a18==1)&&(a22==1))&&!(a15==1))))))&&(input==2))&&(a12==8))&&(a20==1))&&(a5==1)))&&!(a0==1))){ + a12 = 11; + a4 = 0; + a0 = 1; + a6 = 1; + a18 = 1; + a3 = 7; + a15 = 0; + a22 = 0; + return 26; + } else if(((a4==1)&&((((a3==5)&&(((((a27==1)&&(((input==2)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&(a5==1)))&&!(a6==1))&&(a12==11))&&!(a0==1)))&&!(a15==1))&&(a20==1)))){ + a15 = 1; + a12 = 10; + a27 = 0; + a22 = 1; + a18 = 1; + a0 = 1; + return 21; + } else if((((a4==1)&&((a20==1)&&((a27==1)&&(((a18==1)&&(((a12==11)&&((a22==1)&&((a15==1)&&((input==2)&&(a6==1)))))&&(a3==7)))&&!(a5==1)))))&&(a0==1))){ + a5 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if((((!(a5==1)&&((((((a12==8)&&((input==5)&&((((a22==1)&&(a18==1))&&(a3==5))||(((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a22==1)&&!(a18==1)))))))&&(a4==1))&&!(a27==1))&&!(a6==1))&&!(a15==1)))&&(a0==1))&&(a20==1))){ + a18 = 1; + a6 = 1; + a27 = 1; + a22 = 0; + a12 = 10; + a5 = 1; + a3 = 4; + return 26; + } else if(((a20==1)&&(((((a5==1)&&((((((a27==1)&&(!(a0==1)&&(input==2)))&&!(a6==1))&&(a3==6))&&!(a18==1))&&(a22==1)))&&(a12==12))&&!(a15==1))&&!(a4==1)))){ + a15 = 1; + a6 = 1; + a3 = 8; + a0 = 1; + a4 = 1; + a22 = 0; + return 26; + } else if(((a5==1)&&((((!(a27==1)&&((a22==1)&&(((!(a4==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&!(a0==1)))&&(a20==1))&&(a3==8))))&&!(a6==1))&&(a12==8))&&!(a15==1)))){ + a15 = 1; + a27 = 1; + a0 = 1; + a18 = 1; + a3 = 5; + a6 = 1; + return 21; + } else if(((a5==1)&&(!(a4==1)&&(!(a27==1)&&(!(a22==1)&&((((a15==1)&&((!(a0==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&!(a6==1)))&&(a12==11)))&&(a3==7))&&(a20==1))))))){ + if((a0==1)){ + a27 = 1; + a12 = 8; + a4 = 1; + a0 = 1; + a18 = 0; + }else{ + a3 = 5; + a18 = 0; + a12 = 8; + a6 = 1; + a5 = 0; + } + return -1; + } else if(((a12==11)&&(((a20==1)&&((a0==1)&&((((a5==1)&&((a3==6)&&((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==3))&&!(a15==1))))&&(a27==1))&&!(a6==1))))&&!(a4==1)))){ + a15 = 1; + a22 = 1; + a3 = 8; + a18 = 1; + return -1; + } else if(((!(a15==1)&&((a18==1)&&(!(a0==1)&&((((!(a22==1)&&((a27==1)&&(((a6==1)&&(input==5))&&(a3==7))))&&!(a4==1))&&(a20==1))&&(a5==1)))))&&(a12==9))){ + if((a6==1)){ + a15 = 1; + a6 = 0; + a4 = 1; + a3 = 6; + a5 = 0; + }else{ + a3 = 4; + a12 = 12; + a22 = 1; + a15 = 1; + a0 = 1; + } + return 24; + } else if(((a0==1)&&((a4==1)&&((!(a22==1)&&(!(a27==1)&&((!(a15==1)&&((((a20==1)&&((a18==1)&&(input==1)))&&!(a5==1))&&(a3==4)))&&(a12==10))))&&(a6==1))))){ + a3 = 6; + a5 = 1; + a18 = 0; + a12 = 8; + a4 = 0; + return -1; + } else if((((((a12==8)&&((((a15==1)&&((((a27==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a3==7))&&!(a5==1)))&&(a22==1))&&!(a4==1)))&&(a20==1))&&(a0==1))&&(a6==1))){ + a5 = 1; + a18 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if(((a12==10)&&((((a15==1)&&(!(a6==1)&&(((a20==1)&&((!(a27==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==1)))&&!(a5==1)))&&(a3==4))))&&(a0==1))&&!(a4==1)))){ + a18 = 1; + a27 = 1; + a4 = 1; + a12 = 8; + a22 = 1; + a5 = 1; + a6 = 1; + return -1; + } else if((!(a4==1)&&((a12==8)&&((a27==1)&&((((!(a5==1)&&((input==6)&&((((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1))||(((a6==1)&&(((a18==1)&&!(a22==1))&&(a3==8)))||((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))))))&&(a20==1))&&(a0==1))&&!(a15==1)))))){ + a0 = 0; + a3 = 8; + a6 = 0; + a22 = 1; + a12 = 9; + a18 = 0; + a15 = 1; + return 21; + } else if((((a3==8)&&(((((((a15==1)&&(((((a18==1)||!(a18==1))&&(input==4))&&(a4==1))&&!(a5==1)))&&!(a6==1))&&(a12==10))&&(a27==1))&&(a20==1))&&!(a22==1)))&&!(a0==1))){ + a5 = 1; + a22 = 1; + a27 = 0; + a12 = 11; + a18 = 1; + a0 = 1; + a15 = 0; + return 21; + } else if(((a15==1)&&(!(a4==1)&&((((a20==1)&&(!(a0==1)&&((((((input==6)&&((a18==1)||!(a18==1)))&&!(a6==1))&&(a27==1))&&(a3==8))&&!(a22==1))))&&(a12==9))&&(a5==1))))){ + a0 = 1; + a15 = 0; + a3 = 7; + a5 = 0; + a18 = 1; + return 24; + } else if(((((!(a4==1)&&((((a3==5)&&(((!(a27==1)&&((a22==1)&&(input==1)))&&(a0==1))&&(a12==10)))&&(a6==1))&&(a20==1)))&&(a5==1))&&(a15==1))&&(a18==1))){ + a3 = 4; + a27 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if((((a4==1)&&(((a18==1)&&(!(a6==1)&&((((a0==1)&&((a12==10)&&(((input==4)&&(a3==6))&&(a15==1))))&&!(a27==1))&&(a20==1))))&&(a22==1)))&&(a5==1))){ + a6 = 1; + a3 = 4; + a27 = 1; + a12 = 8; + return -1; + } else if(((((a6==1)&&(((a0==1)&&(!(a4==1)&&((!(a15==1)&&(((a12==10)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a27==1)))&&(a20==1))))&&!(a22==1)))&&(a5==1))&&(a3==8))){ + a12 = 12; + a22 = 1; + a3 = 4; + a18 = 0; + return 26; + } else if((!(a6==1)&&((a20==1)&&(((a12==10)&&((((a5==1)&&((a3==4)&&(((input==5)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&!(a0==1))))&&(a15==1))&&(a4==1)))&&!(a27==1))))){ + a0 = 1; + a3 = 6; + a27 = 1; + a4 = 0; + a6 = 1; + a22 = 1; + a18 = 0; + a12 = 8; + return 21; + } else if(((!(a0==1)&&(((a5==1)&&(!(a6==1)&&((!(a27==1)&&(((((a3==8)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8))))&&(input==6))&&(a4==1)))&&(a12==8))))&&(a20==1)))&&(a15==1))){ + a22 = 1; + a6 = 1; + a3 = 7; + a18 = 1; + a0 = 1; + a27 = 1; + return 26; + } else if((!(a18==1)&&(!(a4==1)&&(((!(a6==1)&&((a15==1)&&((a12==10)&&((a0==1)&&(!(a22==1)&&(!(a5==1)&&(!(a27==1)&&(input==5))))))))&&(a20==1))&&(a3==7))))){ + a5 = 1; + a15 = 0; + a22 = 1; + a27 = 1; + a3 = 4; + return 26; + } else if(((a3==8)&&(((a12==10)&&(!(a27==1)&&(((a4==1)&&(!(a15==1)&&(!(a6==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a5==1)))))&&(a20==1))))&&(a0==1)))){ + a5 = 0; + a18 = 0; + a3 = 4; + a4 = 0; + a22 = 0; + a27 = 1; + a0 = 0; + return 21; + } else if(((a6==1)&&(((((a20==1)&&((a12==11)&&(!(a4==1)&&((a3==4)&&(((a22==1)&&((input==2)&&((a18==1)||!(a18==1))))&&!(a27==1))))))&&!(a15==1))&&(a0==1))&&!(a5==1)))){ + a3 = 5; + a22 = 0; + a18 = 1; + a12 = 12; + a27 = 1; + a6 = 0; + return -1; + } else if(((a20==1)&&((((!(a4==1)&&((a12==9)&&((a5==1)&&(!(a0==1)&&((input==5)&&(((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||((a3==6)&&((a22==1)&&(a18==1)))))))))&&!(a15==1))&&(a27==1))&&!(a6==1)))){ + a0 = 1; + a22 = 0; + a12 = 11; + a18 = 1; + a3 = 6; + a6 = 1; + return 21; + } else if(((a4==1)&&((((a20==1)&&((((((input==1)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1)))))&&!(a0==1))&&!(a15==1))&&(a6==1))&&(a12==8)))&&(a27==1))&&(a5==1)))){ + a4 = 0; + a12 = 11; + a18 = 1; + a5 = 0; + a0 = 1; + a6 = 0; + a27 = 0; + a22 = 1; + a3 = 5; + return 21; + } else if((((a20==1)&&((a4==1)&&((((a6==1)&&(!(a5==1)&&((a15==1)&&(!(a0==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==3))))))&&(a3==5))&&(a12==10))))&&(a27==1))){ + a22 = 1; + a3 = 4; + a12 = 8; + a0 = 1; + a5 = 1; + a18 = 1; + return -1; + } else if(((((((input==6)&&((((a3==8)&&((((a5==1)&&(!(a22==1)&&!(a18==1)))&&!(a15==1))&&!(a4==1)))&&!(a6==1))||(((((a15==1)&&(((a22==1)&&(a18==1))&&!(a5==1)))&&(a4==1))&&(a3==4))&&(a6==1))))&&(a0==1))&&(a12==12))&&(a20==1))&&(a27==1))){ + a22 = 0; + a3 = 4; + a12 = 10; + a5 = 0; + a6 = 0; + a18 = 0; + a4 = 1; + a15 = 1; + return -1; + } else if((((a3==6)&&((a0==1)&&((a22==1)&&((a12==9)&&((a27==1)&&(((!(a6==1)&&(!(a4==1)&&((input==1)&&(a5==1))))&&(a15==1))&&(a20==1)))))))&&(a18==1))){ + a12 = 12; + a5 = 0; + return 24; + } else if((!(a22==1)&&((((a0==1)&&((a20==1)&&(((a4==1)&&(((((a6==1)&&(input==3))&&(a12==8))&&!(a5==1))&&(a3==6)))&&(a15==1))))&&!(a27==1))&&!(a18==1)))){ + a3 = 8; + a27 = 1; + a5 = 1; + a12 = 9; + a18 = 1; + a22 = 1; + a0 = 0; + return 26; + } else if((!(a0==1)&&(((a27==1)&&(((((!(a6==1)&&((a3==8)&&((((!(a22==1)&&(a18==1))&&(a5==1))&&!(a15==1))&&!(a4==1))))||((((!(a15==1)&&((!(a22==1)&&!(a18==1))&&(a5==1)))&&!(a4==1))&&(a3==8))&&!(a6==1)))||((a6==1)&&((a3==4)&&(((!(a5==1)&&((a18==1)&&(a22==1)))&&(a15==1))&&(a4==1)))))&&(input==6))&&(a12==8)))&&(a20==1)))){ + a6 = 0; + a0 = 1; + a4 = 1; + a15 = 0; + a22 = 0; + a18 = 0; + a12 = 12; + a5 = 1; + a3 = 6; + return 24; + } else if(((((a5==1)&&(!(a18==1)&&((!(a22==1)&&(!(a0==1)&&((a12==12)&&((a15==1)&&((a27==1)&&((input==3)&&!(a6==1)))))))&&!(a4==1))))&&(a20==1))&&(a3==7))){ + a27 = 0; + a0 = 1; + a12 = 8; + return 21; + } else if(((a27==1)&&(((a22==1)&&(((a6==1)&&((a15==1)&&((a0==1)&&((!(a5==1)&&((a20==1)&&((a12==9)&&(input==4))))&&!(a18==1)))))&&!(a4==1)))&&(a3==5)))){ + a12 = 8; + a18 = 1; + a3 = 4; + a5 = 1; + a4 = 1; + return -1; + } else if((((!(a5==1)&&((a4==1)&&(!(a0==1)&&((!(a27==1)&&(((input==6)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8))))&&!(a6==1)))&&(a12==8)))))&&(a20==1))&&(a15==1))){ + if((a5==1)){ + a22 = 0; + a0 = 1; + a12 = 12; + a6 = 1; + a3 = 4; + a18 = 0; + a15 = 0; + }else{ + a22 = 0; + a18 = 1; + a0 = 1; + a27 = 1; + a3 = 8; + a4 = 0; + a5 = 1; + } + return -1; + } else if(((((a20==1)&&(!(a27==1)&&((((!(a4==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==4))&&(a3==8)))&&!(a5==1))&&(a15==1))&&(a6==1))))&&(a12==8))&&!(a0==1))){ + if((a20==1)){ + a6 = 0; + a4 = 1; + a5 = 1; + a3 = 6; + a18 = 1; + a0 = 1; + a22 = 1; + a27 = 1; + }else{ + a27 = 1; + a4 = 1; + a22 = 0; + a3 = 7; + a5 = 1; + a0 = 1; + a18 = 1; + } + return 21; + } else if(((a20==1)&&(((((((a27==1)&&((a15==1)&&((a3==4)&&((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))&&(a0==1))&&(a5==1))&&!(a6==1))&&(a12==11))&&!(a4==1)))){ + if((a5==1)){ + a22 = 1; + a12 = 9; + a4 = 1; + a5 = 0; + a3 = 7; + a0 = 0; + a6 = 1; + a18 = 1; + }else{ + a22 = 1; + a3 = 7; + a5 = 0; + a4 = 1; + a18 = 0; + a6 = 1; + } + return 21; + } else if(((((a20==1)&&((((a22==1)&&((a15==1)&&(((a27==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a5==1)))&&(a12==11))))&&(a3==5))&&(a6==1)))&&(a4==1))&&(a0==1))){ + a18 = 0; + a12 = 10; + a4 = 0; + a3 = 8; + a15 = 0; + return -1; + } else if(((((a6==1)&&(((a20==1)&&(!(a4==1)&&(((a27==1)&&((a15==1)&&((a5==1)&&((a3==8)&&(input==5)))))&&(a12==11))))&&(a0==1)))&&!(a22==1))&&(a18==1))){ + a15 = 0; + a27 = 0; + a12 = 10; + a5 = 0; + a3 = 5; + return 24; + } else if(((((!(a0==1)&&((!(a15==1)&&(((a12==9)&&((a20==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==2))))&&(a6==1)))&&!(a4==1)))&&!(a5==1))&&!(a27==1))&&(a3==4))){ + a12 = 8; + a27 = 1; + a15 = 1; + a18 = 1; + a22 = 1; + a0 = 1; + a5 = 1; + return 26; + } else if(((a12==9)&&(((a27==1)&&((a3==6)&&(!(a4==1)&&(!(a5==1)&&((a0==1)&&(((((input==3)&&((a18==1)||!(a18==1)))&&(a22==1))&&(a20==1))&&(a6==1)))))))&&(a15==1)))){ + a18 = 1; + a4 = 1; + a3 = 4; + a5 = 1; + a12 = 8; + return -1; + } else if(((!(a5==1)&&((a12==12)&&((!(a15==1)&&((a20==1)&&(!(a4==1)&&((input==1)&&((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1)))))))&&(a27==1))))&&(a0==1))){ + a18 = 0; + a3 = 4; + a0 = 0; + a6 = 0; + a4 = 1; + a5 = 1; + a22 = 1; + a12 = 10; + return 24; + } else if(((a12==10)&&(((((!(a27==1)&&(!(a6==1)&&(((a0==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==4)))&&(a5==1))))&&(a3==7))&&(a15==1))&&(a20==1))&&!(a4==1)))){ + a22 = 1; + a4 = 1; + a12 = 8; + a27 = 1; + a18 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if(((a12==8)&&((((a5==1)&&(((((!(a27==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==3)))&&(a6==1))&&(a3==6))&&(a0==1))&&!(a4==1)))&&!(a15==1))&&(a20==1)))){ + a18 = 1; + a27 = 1; + a3 = 4; + a22 = 1; + a15 = 1; + a4 = 1; + return -1; + } else if(((!(a0==1)&&(((a27==1)&&(((a3==7)&&((a22==1)&&((!(a5==1)&&((!(a4==1)&&(input==2))&&(a6==1)))&&(a12==12))))&&(a15==1)))&&!(a18==1)))&&(a20==1))){ + if((a18==1)){ + a12 = 8; + a5 = 1; + a0 = 1; + a22 = 0; + a4 = 1; + a3 = 5; + }else{ + a6 = 0; + a4 = 1; + a5 = 1; + a0 = 1; + a22 = 0; + a12 = 8; + } + return 26; + } else if((((!(a4==1)&&((((a12==10)&&((((a20==1)&&((!(a15==1)&&(input==5))&&!(a18==1)))&&(a3==5))&&(a0==1)))&&!(a22==1))&&!(a5==1)))&&!(a6==1))&&(a27==1))){ + if((a27==1)){ + a12 = 11; + a0 = 0; + a3 = 8; + a6 = 1; + }else{ + a27 = 0; + a18 = 1; + a15 = 1; + } + return 26; + } else if((((a0==1)&&((a12==11)&&((a4==1)&&((a3==7)&&((a20==1)&&((!(a15==1)&&(((input==1)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a27==1)))&&(a6==1)))))))&&(a5==1))){ + a12 = 10; + a22 = 1; + a4 = 0; + a18 = 1; + a15 = 1; + a3 = 8; + return -1; + } else if(((!(a4==1)&&((((a0==1)&&(((a6==1)&&(((input==4)&&(((a3==5)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))))&&!(a5==1)))&&!(a27==1)))&&(a20==1))&&(a15==1)))&&(a12==9))){ + a3 = 6; + a0 = 0; + a27 = 1; + a18 = 1; + a5 = 1; + a22 = 1; + return -1; + } else if(((a3==6)&&(((a15==1)&&(!(a18==1)&&((a4==1)&&(!(a27==1)&&((a6==1)&&(((((a20==1)&&(input==4))&&!(a22==1))&&(a0==1))&&(a12==8)))))))&&!(a5==1)))){ + a5 = 1; + a6 = 0; + a15 = 0; + a4 = 0; + a12 = 12; + a18 = 1; + return 26; + } else if(((a20==1)&&((a4==1)&&((a0==1)&&((a15==1)&&((a12==12)&&((a6==1)&&(((((input==3)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a27==1))&&(a5==1))&&(a3==5))))))))){ + a4 = 0; + a18 = 0; + a15 = 0; + a22 = 1; + a12 = 10; + a6 = 0; + return 26; + } else if((!(a0==1)&&((((a22==1)&&((((((a15==1)&&(((input==3)&&!(a27==1))&&!(a6==1)))&&!(a18==1))&&(a5==1))&&(a12==8))&&(a20==1)))&&(a3==4))&&!(a4==1)))){ + if((a0==1)){ + a3 = 5; + a0 = 1; + a4 = 1; + a27 = 1; + a22 = 0; + }else{ + a27 = 1; + a0 = 1; + a4 = 1; + a22 = 0; + a3 = 6; + a6 = 1; + } + return -1; + } else if(((((((((!(a18==1)&&((a12==9)&&(((input==6)&&(a20==1))&&(a3==7))))&&!(a22==1))&&!(a6==1))&&!(a0==1))&&!(a5==1))&&!(a15==1))&&(a4==1))&&!(a27==1))){ + a22 = 1; + a4 = 0; + a3 = 4; + a12 = 10; + a27 = 1; + a15 = 1; + a5 = 1; + return 26; + } else if((((a6==1)&&((a15==1)&&(!(a4==1)&&(((a20==1)&&(((!(a18==1)&&(((input==4)&&(a12==10))&&!(a22==1)))&&(a27==1))&&!(a5==1)))&&(a0==1)))))&&(a3==4))){ + a15 = 0; + a12 = 12; + a4 = 1; + a22 = 1; + a27 = 0; + a3 = 5; + return -1; + } else if((((((a3==7)&&((((((a15==1)&&((input==2)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))))&&!(a0==1))&&(a20==1))&&(a5==1))&&!(a27==1)))&&(a12==9))&&!(a4==1))&&(a6==1))){ + if((a5==1)){ + a22 = 1; + a4 = 1; + a12 = 8; + a18 = 1; + a27 = 1; + a0 = 1; + }else{ + a0 = 1; + a27 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a22 = 0; + } + return -1; + } else if(((((!(a22==1)&&(!(a27==1)&&(((((a20==1)&&(!(a6==1)&&((a5==1)&&(input==5))))&&(a12==11))&&(a15==1))&&(a4==1))))&&(a18==1))&&(a3==4))&&(a0==1))){ + a0 = 0; + a5 = 0; + a12 = 9; + a3 = 6; + a27 = 1; + a18 = 0; + return 24; + } else if((!(a27==1)&&((a12==10)&&((a22==1)&&(((a6==1)&&((a3==4)&&((a18==1)&&(!(a0==1)&&((((a20==1)&&(input==3))&&!(a15==1))&&(a4==1))))))&&!(a5==1)))))){ + a3 = 7; + a0 = 1; + a12 = 11; + return -1; + } else if((((a12==8)&&(!(a4==1)&&(((a20==1)&&((a3==5)&&(!(a22==1)&&((a6==1)&&(!(a5==1)&&((((a18==1)||!(a18==1))&&(input==5))&&(a0==1)))))))&&(a15==1))))&&!(a27==1))){ + a27 = 1; + a18 = 1; + a5 = 1; + a4 = 1; + a3 = 4; + a12 = 9; + a0 = 0; + a15 = 0; + return -1; + } else if((!(a6==1)&&(!(a0==1)&&(((a3==4)&&(((a12==12)&&(((a20==1)&&(!(a5==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==4))))&&(a27==1)))&&!(a4==1)))&&(a15==1))))){ + a22 = 0; + a3 = 8; + a4 = 1; + a15 = 0; + a0 = 1; + a18 = 1; + return -1; + } else if((((!(a15==1)&&(!(a4==1)&&((a12==9)&&((a6==1)&&(!(a22==1)&&((a20==1)&&(((((a18==1)||!(a18==1))&&(input==4))&&(a3==6))&&!(a27==1))))))))&&(a0==1))&&(a5==1))){ + a12 = 11; + a22 = 1; + a6 = 0; + a15 = 1; + a4 = 1; + a18 = 0; + return 21; + } else if(((((a18==1)&&((((a3==7)&&(((a12==11)&&((a20==1)&&(((input==6)&&!(a4==1))&&!(a0==1))))&&!(a15==1)))&&!(a6==1))&&!(a22==1)))&&!(a27==1))&&!(a5==1))){ + a15 = 1; + a5 = 1; + a12 = 8; + a18 = 0; + a27 = 1; + a0 = 1; + a4 = 1; + a22 = 1; + return 21; + } else if((!(a0==1)&&((a4==1)&&(((!(a5==1)&&((a6==1)&&(((((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==6))&&(a12==8))&&(a20==1))&&!(a15==1))))&&(a3==7))&&!(a27==1))))){ + a3 = 4; + a22 = 0; + a0 = 1; + a18 = 1; + a15 = 1; + a5 = 1; + a27 = 1; + return -1; + } else if((((a20==1)&&((((a3==7)&&((((!(a18==1)&&(((input==1)&&(a12==11))&&(a4==1)))&&(a5==1))&&!(a0==1))&&!(a22==1)))&&(a15==1))&&(a27==1)))&&!(a6==1))){ + a5 = 0; + a6 = 1; + a22 = 1; + a12 = 10; + a15 = 0; + a18 = 1; + a0 = 1; + a3 = 8; + return 21; + } else if((((a20==1)&&((a3==8)&&((a27==1)&&((a5==1)&&((!(a4==1)&&(!(a18==1)&&((a6==1)&&(((a12==8)&&(input==4))&&!(a0==1)))))&&(a15==1))))))&&(a22==1))){ + if((a12==12)){ + a12 = 11; + a4 = 1; + a15 = 0; + a3 = 5; + a6 = 0; + a22 = 0; + a18 = 1; + }else{ + a15 = 0; + a0 = 1; + a6 = 0; + a3 = 7; + a18 = 1; + a12 = 10; + } + return -1; + } else if((!(a15==1)&&((((((a20==1)&&((((((input==6)&&!(a18==1))&&(a5==1))&&(a27==1))&&!(a0==1))&&(a3==5)))&&(a12==10))&&(a22==1))&&(a4==1))&&(a6==1)))){ + a12 = 8; + a0 = 1; + a18 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if(((a20==1)&&((a12==9)&&(((a27==1)&&(!(a0==1)&&(((((a3==4)&&((!(a15==1)&&(!(a18==1)&&(a22==1)))&&(a4==1)))&&(a6==1))||((((a3==8)&&(!(a4==1)&&((!(a22==1)&&!(a18==1))&&(a15==1))))&&!(a6==1))||((((a4==1)&&(((a22==1)&&(a18==1))&&!(a15==1)))&&(a3==4))&&(a6==1))))&&(input==6))))&&!(a5==1))))){ + a4 = 0; + a12 = 12; + a0 = 1; + a15 = 0; + a3 = 7; + a6 = 0; + a5 = 1; + a22 = 0; + a18 = 0; + return 21; + } else if(((a0==1)&&((a3==5)&&((a12==9)&&(((((!(a6==1)&&(!(a27==1)&&((input==1)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))&&(a15==1))&&(a20==1))&&(a5==1))&&(a4==1)))))){ + a27 = 1; + a18 = 1; + a22 = 1; + a6 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((a6==1)&&((((!(a5==1)&&(((((a20==1)&&(((input==5)&&(a3==5))&&!(a27==1)))&&(a22==1))&&(a18==1))&&!(a0==1)))&&(a15==1))&&(a4==1))&&(a12==8)))){ + if((a22==1)){ + a18 = 0; + a0 = 1; + a6 = 0; + a5 = 1; + a22 = 0; + a27 = 1; + }else{ + a3 = 8; + a6 = 0; + a4 = 0; + } + return -1; + } else if((((((((a12==9)&&(((((((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==4))&&(a20==1))&&(a6==1)))&&!(a5==1))&&!(a4==1))&&(a0==1))&&(a15==1))&&!(a27==1))){ + a5 = 1; + a22 = 0; + a4 = 1; + a18 = 1; + a15 = 0; + a3 = 4; + return 21; + } else if(((!(a22==1)&&(((((((a12==10)&&((a3==4)&&(!(a27==1)&&((input==1)&&!(a6==1)))))&&(a5==1))&&!(a18==1))&&(a20==1))&&!(a15==1))&&!(a0==1)))&&(a4==1))){ + a22 = 1; + a6 = 1; + a15 = 1; + a0 = 1; + a27 = 1; + a12 = 8; + return 21; + } else if((((a4==1)&&((((((a22==1)&&((a15==1)&&(((!(a0==1)&&(input==4))&&!(a27==1))&&(a3==4))))&&(a18==1))&&!(a6==1))&&!(a5==1))&&(a20==1)))&&(a12==10))){ + a0 = 1; + a6 = 1; + a12 = 8; + a5 = 1; + a3 = 5; + a4 = 0; + a27 = 1; + return 26; + } else if(((((a20==1)&&(((!(a0==1)&&(!(a15==1)&&((input==5)&&((!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1))))||(((a6==1)&&((a3==8)&&(!(a22==1)&&(a18==1))))||(((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1)))))))&&(a4==1))&&(a12==9)))&&(a27==1))&&!(a5==1))){ + if((a0==1)){ + a6 = 1; + a5 = 1; + a15 = 1; + a22 = 1; + a18 = 1; + a12 = 10; + a3 = 7; + }else{ + a5 = 1; + a27 = 0; + a15 = 1; + a3 = 5; + a18 = 1; + a0 = 1; + a6 = 0; + a22 = 1; + } + return 21; + } else if(((a15==1)&&((a3==6)&&(((a6==1)&&((((a20==1)&&((a0==1)&&(((input==1)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a4==1))))&&!(a5==1))&&!(a27==1)))&&(a12==11))))){ + if((a3==5)){ + a6 = 0; + a15 = 0; + a12 = 10; + a4 = 0; + a18 = 0; + a27 = 1; + a0 = 0; + a22 = 0; + }else{ + a15 = 0; + a27 = 1; + a6 = 0; + a12 = 10; + a5 = 1; + a18 = 1; + a22 = 1; + } + return 26; + } else if((!(a0==1)&&(((a3==8)&&(((((!(a18==1)&&(((a22==1)&&((input==5)&&(a15==1)))&&!(a5==1)))&&!(a6==1))&&(a20==1))&&(a12==11))&&(a4==1)))&&(a27==1)))){ + if((a0==1)){ + a4 = 0; + a18 = 1; + a3 = 4; + a6 = 1; + }else{ + a3 = 4; + a15 = 0; + a22 = 0; + a0 = 1; + a6 = 1; + } + return 26; + } else if(((!(a15==1)&&(((a3==5)&&((((!(a27==1)&&(((a20==1)&&((a5==1)&&(input==4)))&&(a0==1)))&&(a6==1))&&!(a22==1))&&!(a18==1)))&&(a12==11)))&&!(a4==1))){ + a15 = 1; + a12 = 10; + a27 = 1; + a22 = 1; + a5 = 0; + a18 = 1; + return 26; + } else if(((a0==1)&&((a27==1)&&(((a3==5)&&((a15==1)&&((((a5==1)&&(!(a4==1)&&((input==4)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))))&&(a20==1))&&(a12==8))))&&!(a6==1))))){ + a3 = 6; + a18 = 0; + a4 = 1; + a15 = 0; + a22 = 0; + a6 = 1; + return 26; + } else if(((a3==7)&&(!(a6==1)&&((!(a0==1)&&(!(a27==1)&&((a20==1)&&(((!(a15==1)&&(((input==3)&&(a5==1))&&!(a4==1)))&&(a12==9))&&(a18==1)))))&&(a22==1))))){ + if((a4==1)){ + a4 = 1; + a3 = 5; + a6 = 1; + a12 = 12; + a0 = 1; + a18 = 0; + a27 = 1; + }else{ + a15 = 1; + a18 = 0; + a4 = 1; + a12 = 10; + a6 = 1; + a3 = 8; + } + return 26; + } else if(((!(a15==1)&&(((a12==10)&&(!(a18==1)&&((((a0==1)&&((a3==5)&&((a27==1)&&((input==6)&&(a22==1)))))&&!(a6==1))&&(a5==1))))&&(a20==1)))&&(a4==1))){ + a6 = 1; + a3 = 8; + a15 = 1; + return -1; + } else if(((!(a27==1)&&(!(a4==1)&&(((a12==8)&&((a3==4)&&((a20==1)&&((((a15==1)&&((input==2)&&(a6==1)))&&(a0==1))&&!(a18==1)))))&&(a22==1))))&&(a5==1))){ + a3 = 8; + a5 = 0; + a15 = 0; + a12 = 10; + return 26; + } else if((((a12==9)&&((((((((a20==1)&&(!(a6==1)&&((input==3)&&(a3==8))))&&(a22==1))&&(a5==1))&&!(a0==1))&&!(a18==1))&&!(a27==1))&&(a15==1)))&&!(a4==1))){ + a3 = 7; + a0 = 1; + a4 = 1; + a27 = 1; + a12 = 8; + return 26; + } else if((((a12==9)&&(((((((a27==1)&&((a20==1)&&(!(a6==1)&&((input==4)&&((a18==1)||!(a18==1))))))&&(a4==1))&&(a0==1))&&(a5==1))&&!(a15==1))&&(a3==8)))&&(a22==1))){ + a3 = 4; + a15 = 1; + a12 = 8; + a18 = 1; + a6 = 1; + return -1; + } else if((((a22==1)&&(!(a0==1)&&(((a20==1)&&((a6==1)&&((!(a5==1)&&(((((a18==1)||!(a18==1))&&(input==1))&&!(a27==1))&&(a4==1)))&&(a15==1))))&&(a3==6))))&&(a12==10))){ + if((a0==1)){ + a12 = 8; + a3 = 4; + a15 = 0; + a6 = 0; + a5 = 1; + a27 = 1; + a18 = 0; + }else{ + a0 = 1; + a5 = 1; + a12 = 8; + a18 = 1; + a6 = 0; + a27 = 1; + a3 = 4; + } + return -1; + } else if((((!(a0==1)&&((a15==1)&&(((((a20==1)&&((input==3)&&((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==5)))||((a3==5)&&(!(a18==1)&&(a22==1))))))&&(a12==8))&&(a27==1))&&(a6==1))))&&(a5==1))&&(a4==1))){ + a0 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + return -1; + } else if((!(a27==1)&&((((a12==8)&&((a15==1)&&(!(a6==1)&&((((input==1)&&(((a3==7)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1))))))&&!(a5==1))&&(a0==1)))))&&(a20==1))&&(a4==1)))){ + a5 = 1; + a27 = 1; + a22 = 0; + a3 = 7; + a6 = 1; + a12 = 11; + a4 = 0; + a18 = 1; + return 21; + } else if((!(a15==1)&&((!(a0==1)&&(((((((input==1)&&(((((a18==1)&&!(a22==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5)))||(((a18==1)&&(a22==1))&&(a3==6))))&&!(a6==1))&&!(a4==1))&&(a12==11))&&(a5==1))&&!(a27==1)))&&(a20==1)))){ + a0 = 1; + a3 = 6; + a6 = 1; + a18 = 1; + a15 = 1; + a27 = 1; + a22 = 1; + a12 = 8; + return 26; + } else if((((((a3==6)&&(((((((input==5)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&!(a6==1))&&(a0==1))&&(a4==1))&&(a20==1))&&(a12==9)))&&(a15==1))&&(a27==1))&&(a5==1))){ + a18 = 0; + a12 = 12; + a3 = 7; + a6 = 1; + a4 = 0; + a22 = 0; + return 21; + } else if((!(a5==1)&&(((a12==11)&&((a6==1)&&((((a15==1)&&(((((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==1))&&(a27==1)))&&(a20==1))&&(a0==1))))&&!(a4==1)))){ + a4 = 1; + a15 = 0; + a18 = 0; + a22 = 1; + a3 = 7; + a5 = 1; + return -1; + } else if((!(a0==1)&&((a20==1)&&((a4==1)&&((a12==10)&&((((a27==1)&&((a15==1)&&((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==6))&&!(a5==1))))&&!(a6==1))&&(a3==7))))))){ + a3 = 8; + a18 = 0; + a0 = 1; + a22 = 0; + a12 = 12; + a6 = 1; + a5 = 1; + a15 = 0; + return 21; + } else if(((a0==1)&&((!(a6==1)&&(((!(a27==1)&&((a15==1)&&((a12==12)&&((((input==3)&&((a18==1)||!(a18==1)))&&(a22==1))&&(a5==1)))))&&(a3==4))&&(a20==1)))&&!(a4==1)))){ + a22 = 0; + a6 = 1; + a4 = 1; + a12 = 8; + a3 = 6; + a18 = 1; + a5 = 0; + return -1; + } else if(((!(a0==1)&&((a20==1)&&(!(a4==1)&&((a12==12)&&(((a27==1)&&((a22==1)&&(((a5==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a3==8))))&&!(a6==1))))))&&(a15==1))){ + a0 = 1; + a27 = 0; + a12 = 11; + a18 = 1; + a4 = 1; + return 26; + } else if(((((!(a0==1)&&((a5==1)&&((a3==6)&&(((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==1))&&!(a15==1))&&(a27==1))&&(a20==1)))))&&(a12==9))&&!(a6==1))&&(a4==1))){ + a3 = 4; + a15 = 1; + a12 = 8; + a0 = 1; + a6 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((a27==1)&&((((((!(a6==1)&&(((input==6)&&((((a3==7)&&(!(a22==1)&&(a18==1)))||((a3==7)&&(!(a18==1)&&!(a22==1))))||((a3==8)&&((a22==1)&&(a18==1)))))&&(a20==1)))&&(a12==9))&&(a4==1))&&(a0==1))&&(a15==1))&&!(a5==1)))){ + a12 = 8; + a18 = 1; + a6 = 1; + a3 = 4; + a5 = 1; + a22 = 1; + return -1; + } else if(((a20==1)&&(((((a27==1)&&((a12==10)&&((!(a4==1)&&(((a3==4)&&((input==5)&&((a18==1)||!(a18==1))))&&!(a0==1)))&&(a5==1))))&&!(a6==1))&&(a15==1))&&(a22==1)))){ + a6 = 1; + a18 = 1; + a4 = 1; + a0 = 1; + a12 = 8; + return -1; + } else if(((!(a27==1)&&((a4==1)&&(((a12==12)&&(((a0==1)&&((a15==1)&&((input==1)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6))))))&&(a20==1)))&&(a6==1))))&&!(a5==1))){ + a18 = 1; + a3 = 8; + a15 = 0; + a6 = 0; + a22 = 0; + return -1; + } else if(((((a3==8)&&((a6==1)&&((a20==1)&&(((a12==8)&&(!(a5==1)&&((a4==1)&&(((a18==1)&&(input==3))&&!(a27==1)))))&&(a0==1)))))&&(a22==1))&&!(a15==1))){ + a3 = 4; + a15 = 1; + a5 = 1; + a27 = 1; + return -1; + } else if((!(a6==1)&&(((a20==1)&&((a5==1)&&(((((a15==1)&&((((input==3)&&(a3==5))&&(a4==1))&&(a12==8)))&&!(a27==1))&&!(a22==1))&&(a0==1))))&&(a18==1)))){ + a12 = 10; + a0 = 0; + a27 = 1; + a5 = 0; + a3 = 7; + return -1; + } else if(((a20==1)&&((a22==1)&&((!(a18==1)&&((a0==1)&&((((((a27==1)&&((input==2)&&(a4==1)))&&(a12==9))&&(a3==7))&&(a15==1))&&!(a6==1))))&&!(a5==1))))){ + a15 = 0; + a6 = 1; + a3 = 6; + a12 = 10; + return 21; + } else if(((((a15==1)&&((a6==1)&&((a12==8)&&(((a3==8)&&((!(a5==1)&&((a0==1)&&(((a18==1)||!(a18==1))&&(input==6))))&&!(a22==1)))&&(a4==1)))))&&!(a27==1))&&(a20==1))){ + a22 = 1; + a5 = 1; + a27 = 1; + a0 = 0; + a18 = 1; + a12 = 10; + a4 = 0; + return 21; + } else if((((a20==1)&&(!(a6==1)&&((a4==1)&&((!(a5==1)&&((((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==4))&&!(a27==1))&&(a15==1)))&&(a12==8)))))&&!(a0==1))){ + a5 = 1; + a0 = 1; + a4 = 0; + a27 = 1; + a3 = 6; + a6 = 1; + a22 = 0; + a18 = 0; + return -1; + } else if((!(a15==1)&&((a22==1)&&(!(a0==1)&&((a3==4)&&((a20==1)&&(((!(a5==1)&&(((a27==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a4==1)))&&(a6==1))&&(a12==12)))))))){ + a15 = 1; + a3 = 6; + a0 = 1; + a12 = 8; + a22 = 0; + a4 = 0; + a18 = 0; + a5 = 1; + return -1; + } else if(((((((a20==1)&&((((a3==6)&&((a4==1)&&(((a18==1)&&(input==5))&&(a15==1))))&&(a5==1))&&(a27==1)))&&(a6==1))&&(a12==9))&&!(a0==1))&&(a22==1))){ + a4 = 0; + a22 = 0; + a3 = 7; + a5 = 0; + a0 = 1; + a27 = 0; + return 26; + } else if(((a12==8)&&(((!(a4==1)&&((((!(a15==1)&&(((((a18==1)||!(a18==1))&&(input==3))&&(a27==1))&&(a3==8)))&&!(a5==1))&&(a6==1))&&(a20==1)))&&(a0==1))&&(a22==1)))){ + a4 = 1; + a18 = 1; + a3 = 4; + a15 = 1; + a5 = 1; + return -1; + } else if(((((a15==1)&&((a12==11)&&((((((input==5)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1)))))&&(a27==1))&&(a6==1))&&(a4==1))&&(a20==1))))&&!(a5==1))&&!(a0==1))){ + a3 = 6; + a6 = 0; + a4 = 0; + a0 = 1; + a18 = 0; + a22 = 1; + a12 = 10; + a5 = 1; + return 24; + } else if((((((((a6==1)&&((a20==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==6))&&!(a15==1))))&&!(a5==1))&&(a12==8))&&!(a0==1))&&(a4==1))&&(a27==1))){ + a6 = 0; + a22 = 0; + a18 = 1; + a12 = 9; + a4 = 0; + a3 = 7; + a0 = 1; + return 24; + } else if(((a27==1)&&(!(a15==1)&&(((((!(a5==1)&&(!(a6==1)&&((a12==8)&&((input==6)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))))&&(a4==1))&&(a3==6))&&(a20==1))&&!(a0==1))))){ + if((a27==1)){ + a3 = 7; + a22 = 1; + a15 = 1; + a18 = 0; + a12 = 12; + a4 = 0; + a5 = 1; + }else{ + a22 = 1; + a6 = 1; + a12 = 11; + a18 = 0; + a5 = 1; + a0 = 1; + a4 = 0; + } + return 24; + } else if(((((!(a5==1)&&((a12==8)&&((!(a4==1)&&(!(a6==1)&&((input==5)&&((((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5)))||(((a22==1)&&!(a18==1))&&(a3==5))))))&&(a20==1))))&&!(a27==1))&&(a0==1))&&!(a15==1))){ + a22 = 1; + a18 = 0; + a3 = 6; + a6 = 1; + a5 = 1; + return -1; + } else if((((!(a5==1)&&((a27==1)&&(!(a0==1)&&(!(a4==1)&&((a15==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==4))&&(a6==1)))))))&&(a12==8))&&(a20==1))){ + a0 = 1; + a12 = 10; + a27 = 0; + a5 = 1; + a3 = 5; + a18 = 0; + a15 = 0; + a22 = 1; + a6 = 0; + return 26; + } else if(((((a6==1)&&(((a0==1)&&((a15==1)&&(!(a4==1)&&((a5==1)&&(((((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==3))))))&&(a20==1)))&&(a12==8))&&!(a27==1))){ + a22 = 1; + a15 = 0; + a3 = 5; + a6 = 0; + a18 = 0; + return 21; + } else if(((a0==1)&&((a20==1)&&((((a27==1)&&(((((!(a4==1)&&((!(a22==1)&&!(a18==1))&&(a15==1)))&&(a3==8))&&!(a6==1))||((a6==1)&&((a3==4)&&((a4==1)&&(((a22==1)&&(a18==1))&&!(a15==1))))))&&(input==5)))&&(a5==1))&&(a12==9))))){ + a3 = 4; + a12 = 12; + a15 = 1; + a6 = 0; + a22 = 0; + a4 = 1; + a5 = 0; + a18 = 0; + return 26; + } else if(((!(a0==1)&&((a12==11)&&((((((((((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1)))||(!(a6==1)&&((a3==4)&&((a22==1)&&!(a18==1)))))&&(input==2))&&(a4==1))&&(a15==1))&&(a27==1))&&(a5==1))))&&(a20==1))){ + a15 = 0; + a12 = 10; + a4 = 0; + a3 = 7; + a18 = 1; + a22 = 1; + a0 = 1; + a6 = 0; + return -1; + } else if((!(a22==1)&&(((a3==4)&&(((!(a15==1)&&(!(a6==1)&&(((!(a4==1)&&((a12==8)&&(input==1)))&&(a20==1))&&(a5==1))))&&(a18==1))&&!(a0==1)))&&(a27==1)))){ + a27 = 0; + a0 = 1; + a6 = 1; + a4 = 1; + a12 = 11; + return 24; + } else if((((!(a15==1)&&((((((a6==1)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==5)))&&!(a5==1))&&(a20==1))&&(a12==10))&&(a27==1)))&&!(a4==1))&&!(a0==1))){ + a15 = 1; + a5 = 1; + a18 = 1; + a0 = 1; + a3 = 4; + a4 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if(((((a4==1)&&((a27==1)&&((a6==1)&&(((a20==1)&&((a15==1)&&(!(a5==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2)))))&&!(a0==1)))))&&(a3==6))&&(a12==8))){ + a0 = 1; + a5 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + return -1; + } else if((!(a5==1)&&((!(a0==1)&&((!(a6==1)&&((a15==1)&&(((((a12==10)&&((input==4)&&(a20==1)))&&!(a18==1))&&(a22==1))&&(a3==4))))&&!(a4==1)))&&(a27==1)))){ + a22 = 0; + a5 = 1; + a6 = 1; + a0 = 1; + a4 = 1; + return 26; + } else if(((((!(a4==1)&&((!(a6==1)&&(((((((a3==7)&&((a18==1)&&!(a22==1)))||((a3==7)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==4))&&(a12==8))&&(a27==1)))&&(a5==1)))&&(a15==1))&&(a0==1))&&(a20==1))){ + a15 = 0; + a22 = 0; + a3 = 4; + a6 = 1; + a18 = 0; + return 21; + } else if((!(a4==1)&&((a12==8)&&((((a3==7)&&((!(a6==1)&&(((a0==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3)))&&!(a15==1)))&&!(a27==1)))&&(a20==1))&&!(a5==1))))){ + if((a20==1)){ + a22 = 0; + a18 = 1; + a0 = 0; + a3 = 5; + a12 = 10; + a5 = 1; + a27 = 1; + }else{ + a18 = 0; + a12 = 11; + a27 = 1; + a22 = 1; + } + return 21; + } else if(((!(a0==1)&&((a3==5)&&((a6==1)&&(((a20==1)&&((a5==1)&&(!(a27==1)&&(((input==2)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&(a15==1)))))&&(a12==11)))))&&!(a4==1))){ + a0 = 1; + a12 = 8; + a6 = 0; + a3 = 6; + a22 = 0; + a4 = 1; + a18 = 0; + a27 = 1; + return -1; + } else if((((((((a20==1)&&(((a4==1)&&((((input==4)&&!(a18==1))&&(a3==6))&&(a12==11)))&&(a15==1)))&&!(a27==1))&&!(a6==1))&&!(a5==1))&&(a0==1))&&!(a22==1))){ + a18 = 1; + a5 = 1; + a6 = 1; + a27 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + return -1; + } else if(((a6==1)&&((a20==1)&&((!(a27==1)&&((((a12==9)&&(((a0==1)&&((input==2)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a4==1)))&&(a15==1))&&(a3==7)))&&!(a5==1))))){ + a12 = 8; + a5 = 1; + a27 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((((!(a0==1)&&(((a12==12)&&((a4==1)&&(((input==6)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1)))))&&!(a6==1))))&&!(a5==1)))&&(a27==1))&&!(a15==1))&&(a20==1))){ + if((a5==1)){ + a3 = 6; + a18 = 1; + a22 = 0; + a4 = 0; + }else{ + a5 = 1; + a22 = 0; + a12 = 8; + a15 = 1; + a0 = 1; + a18 = 1; + a3 = 4; + } + return 24; + } else if(((a5==1)&&(((((a27==1)&&((!(a4==1)&&(((input==2)&&(((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==7))))&&(a12==10)))&&(a15==1)))&&!(a0==1))&&(a6==1))&&(a20==1)))){ + a15 = 0; + a6 = 0; + a5 = 0; + a18 = 0; + a22 = 0; + a3 = 4; + return 26; + } else if((((((((a22==1)&&((a15==1)&&(((!(a18==1)&&((a3==8)&&(input==5)))&&(a4==1))&&(a20==1))))&&(a27==1))&&(a5==1))&&!(a0==1))&&(a6==1))&&(a12==12))){ + a12 = 11; + a3 = 4; + a4 = 0; + a15 = 0; + a5 = 0; + a0 = 1; + a22 = 0; + a6 = 0; + a18 = 1; + return -1; + } else if((!(a0==1)&&((a12==8)&&((a3==5)&&((((a4==1)&&((!(a15==1)&&(((input==4)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&!(a27==1)))&&!(a5==1)))&&(a6==1))&&(a20==1)))))){ + if((a18==1)){ + a0 = 1; + a18 = 0; + a15 = 1; + a3 = 8; + a4 = 0; + a5 = 1; + a22 = 1; + a27 = 1; + }else{ + a22 = 0; + a0 = 1; + a12 = 9; + a18 = 1; + a27 = 1; + a4 = 0; + } + return 26; + } else if(((((((((a27==1)&&((a6==1)&&((((input==4)&&((a18==1)||!(a18==1)))&&(a0==1))&&(a12==10))))&&(a20==1))&&(a4==1))&&(a15==1))&&(a3==8))&&(a22==1))&&!(a5==1))){ + a27 = 0; + a22 = 0; + a5 = 1; + a4 = 0; + a18 = 1; + a3 = 6; + return 21; + } else if((((!(a22==1)&&(!(a5==1)&&(((a27==1)&&((!(a15==1)&&(((a3==6)&&((input==3)&&((a18==1)||!(a18==1))))&&(a20==1)))&&!(a4==1)))&&!(a6==1))))&&(a12==11))&&!(a0==1))){ + a12 = 8; + a4 = 1; + a6 = 1; + a18 = 1; + a3 = 4; + a5 = 1; + a22 = 1; + a15 = 1; + a0 = 1; + return -1; + } else if(((!(a6==1)&&((a22==1)&&(((a12==11)&&((a3==5)&&((!(a0==1)&&((a20==1)&&((a4==1)&&(((a18==1)||!(a18==1))&&(input==5)))))&&(a27==1))))&&!(a15==1))))&&!(a5==1))){ + a0 = 1; + a6 = 1; + a3 = 7; + a22 = 0; + a18 = 0; + a5 = 1; + a4 = 0; + return -1; + } else if((!(a15==1)&&((a3==5)&&((a12==12)&&((!(a6==1)&&((((!(a27==1)&&((input==3)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&(a0==1))&&(a4==1))&&(a20==1)))&&!(a5==1)))))){ + a6 = 1; + a27 = 1; + a5 = 1; + a18 = 1; + a15 = 1; + a22 = 0; + return 26; + } return calculate_output51(input); + } + + int calculate_output51(int input) { + if(((a12==12)&&((!(a0==1)&&((a20==1)&&(((((a27==1)&&(((input==4)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&!(a6==1)))&&!(a5==1))&&(a3==5))&&!(a4==1))))&&(a15==1)))){ + if((a18==1)){ + a15 = 0; + a18 = 1; + a3 = 7; + a12 = 11; + a4 = 1; + a22 = 1; + a27 = 0; + a6 = 1; + }else{ + a18 = 1; + a22 = 0; + a12 = 8; + a0 = 1; + a5 = 1; + a3 = 7; + a6 = 1; + } + return -1; + } else if((!(a15==1)&&(((!(a0==1)&&(!(a4==1)&&(!(a27==1)&&((((input==6)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6))))&&!(a6==1))&&!(a5==1)))))&&(a12==9))&&(a20==1)))){ + if((a6==1)){ + a4 = 1; + a12 = 8; + a5 = 1; + a27 = 1; + a22 = 1; + a18 = 1; + a3 = 7; + a15 = 1; + a0 = 1; + }else{ + a3 = 6; + a12 = 12; + a18 = 1; + a0 = 1; + a15 = 1; + a22 = 1; + } + return 24; + } else if(((a3==7)&&((a6==1)&&((a20==1)&&(!(a15==1)&&((((a12==12)&&((!(a0==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==5)))&&(a4==1)))&&(a27==1))&&!(a5==1))))))){ + a27 = 0; + a12 = 9; + a18 = 0; + a22 = 0; + return -1; + } else if(((a3==8)&&(((((a22==1)&&((((a12==9)&&(!(a0==1)&&(((input==2)&&(a20==1))&&(a15==1))))&&!(a5==1))&&(a6==1)))&&!(a18==1))&&!(a4==1))&&(a27==1)))){ + a22 = 0; + a12 = 10; + a5 = 1; + a0 = 1; + a18 = 1; + a4 = 1; + a3 = 4; + return 26; + } else if((!(a18==1)&&(!(a4==1)&&(((((a20==1)&&((!(a27==1)&&((a22==1)&&((a6==1)&&((input==6)&&!(a5==1)))))&&(a0==1)))&&(a3==5))&&(a12==10))&&!(a15==1))))){ + a3 = 4; + a27 = 1; + a6 = 0; + a22 = 0; + a18 = 1; + a5 = 1; + a12 = 8; + a0 = 0; + return 26; + } else if(((!(a6==1)&&((a20==1)&&((a12==12)&&((((a15==1)&&(((((a3==5)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1)))))&&(input==3))&&(a0==1)))&&!(a27==1))&&(a4==1)))))&&!(a5==1))){ + a18 = 0; + a22 = 0; + a4 = 0; + a5 = 1; + a3 = 6; + a12 = 8; + a6 = 1; + a15 = 0; + return -1; + } else if(((a22==1)&&(((a3==7)&&(!(a0==1)&&(((a18==1)&&(((a6==1)&&((((input==2)&&(a20==1))&&!(a5==1))&&(a12==10)))&&(a15==1)))&&!(a27==1))))&&!(a4==1)))){ + a12 = 8; + a4 = 1; + a0 = 1; + a6 = 0; + a27 = 1; + a15 = 0; + a3 = 8; + return 26; + } else if(((a6==1)&&(((!(a27==1)&&((((a4==1)&&(!(a22==1)&&((a3==8)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a0==1)))))&&!(a15==1))&&(a12==12)))&&(a5==1))&&(a20==1)))){ + a15 = 1; + a0 = 0; + a12 = 8; + a3 = 6; + a18 = 1; + a22 = 1; + a27 = 1; + return -1; + } else if(((((a3==7)&&((!(a6==1)&&((a4==1)&&((a0==1)&&(((!(a18==1)&&(!(a15==1)&&(input==4)))&&(a5==1))&&!(a27==1)))))&&(a20==1)))&&!(a22==1))&&(a12==9))){ + a4 = 0; + a12 = 10; + a3 = 8; + return 26; + } else if(((a3==7)&&((a5==1)&&((((a6==1)&&((((!(a27==1)&&((input==5)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&(a4==1))&&(a15==1))&&(a20==1)))&&(a12==11))&&(a0==1))))){ + a6 = 0; + a22 = 1; + a27 = 1; + a5 = 0; + a18 = 0; + a12 = 10; + a3 = 4; + return 21; + } else if((((((!(a0==1)&&(!(a22==1)&&((a3==6)&&((!(a15==1)&&(((input==2)&&(a5==1))&&(a20==1)))&&(a18==1)))))&&(a6==1))&&(a27==1))&&(a12==11))&&(a4==1))){ + a12 = 12; + a6 = 0; + a4 = 0; + a3 = 8; + a18 = 0; + a0 = 1; + return 26; + } else if(((!(a6==1)&&((a27==1)&&(((!(a0==1)&&((((input==3)&&((((a22==1)&&(a18==1))&&(a3==7))||(((a3==6)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==6)))))&&(a12==8))&&(a20==1)))&&(a15==1))&&(a4==1))))&&(a5==1))){ + a22 = 1; + a3 = 4; + a0 = 1; + a6 = 1; + a18 = 1; + return -1; + } else if(((a5==1)&&((a3==4)&&((a15==1)&&(!(a0==1)&&((a6==1)&&((((a22==1)&&(!(a27==1)&&(((a12==12)&&(input==3))&&(a20==1))))&&!(a18==1))&&(a4==1)))))))){ + if((a3==8)){ + a12 = 8; + a18 = 1; + a27 = 1; + a3 = 6; + a0 = 1; + }else{ + a22 = 0; + a3 = 7; + a18 = 1; + a27 = 1; + a4 = 0; + a0 = 1; + a12 = 10; + a5 = 0; + } + return 26; + } else if((!(a27==1)&&((a20==1)&&(((a12==9)&&(!(a0==1)&&((a15==1)&&(((a3==5)&&((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==5))&&(a6==1)))&&!(a4==1)))))&&!(a5==1))))){ + a0 = 1; + a18 = 0; + a22 = 0; + a3 = 8; + a6 = 0; + a15 = 0; + return -1; + } else if((((!(a15==1)&&((((a5==1)&&((a27==1)&&(!(a6==1)&&((input==2)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a18==1)&&(a22==1))))))))&&(a0==1))&&(a12==11)))&&(a4==1))&&(a20==1))){ + a15 = 1; + a3 = 4; + a12 = 8; + a6 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((a12==11)&&(((a22==1)&&((a15==1)&&((((!(a5==1)&&(!(a18==1)&&(((a27==1)&&(input==1))&&!(a0==1))))&&(a6==1))&&(a3==5))&&!(a4==1))))&&(a20==1)))){ + a4 = 1; + a22 = 0; + a5 = 1; + a12 = 10; + a0 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((((!(a15==1)&&((!(a0==1)&&(((a27==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==2))&&(a12==10)))&&(a6==1)))&&!(a5==1)))&&(a4==1))&&(a20==1))){ + a3 = 6; + a5 = 1; + a6 = 0; + a18 = 0; + a22 = 0; + a0 = 1; + a15 = 1; + a12 = 11; + return 21; + } else if(((!(a4==1)&&(!(a18==1)&&((((a6==1)&&((a3==4)&&((a12==12)&&(!(a15==1)&&(((a27==1)&&(input==4))&&(a5==1))))))&&(a20==1))&&(a22==1))))&&!(a0==1))){ + if((a5==1)){ + a12 = 8; + a3 = 7; + a27 = 0; + a5 = 0; + }else{ + a3 = 5; + a0 = 1; + a12 = 11; + } + return 26; + } else if(((a0==1)&&(((!(a5==1)&&((a12==11)&&(!(a15==1)&&(((input==2)&&((((a6==1)&&((a3==8)&&(!(a22==1)&&(a18==1))))||((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8))))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1))))&&(a4==1)))))&&(a20==1))&&(a27==1)))){ + a3 = 4; + a5 = 1; + a22 = 1; + a18 = 1; + a6 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if((((a20==1)&&(((((((a12==11)&&((((input==3)&&((a18==1)||!(a18==1)))&&(a0==1))&&!(a15==1)))&&!(a27==1))&&(a4==1))&&!(a6==1))&&(a3==8))&&(a22==1)))&&(a5==1))){ + a3 = 6; + a12 = 12; + a6 = 1; + a18 = 1; + a5 = 0; + a4 = 0; + a27 = 1; + return -1; + } else if(((((a12==11)&&((a15==1)&&(!(a27==1)&&(((a20==1)&&((!(a0==1)&&(((a18==1)&&(input==5))&&(a6==1)))&&!(a5==1)))&&(a22==1)))))&&(a4==1))&&(a3==7))){ + if((a27==1)){ + a3 = 4; + a18 = 0; + a0 = 1; + a5 = 1; + a4 = 0; + a12 = 10; + a22 = 0; + a27 = 1; + }else{ + a3 = 8; + a12 = 8; + a0 = 1; + a6 = 0; + a22 = 0; + a27 = 1; + a5 = 1; + } + return -1; + } else if((((((a15==1)&&(!(a27==1)&&((a12==11)&&((a18==1)&&(((((input==3)&&(a22==1))&&(a20==1))&&(a3==6))&&(a4==1))))))&&!(a6==1))&&(a0==1))&&!(a5==1))){ + a5 = 1; + a12 = 8; + a27 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if(((a12==8)&&((a20==1)&&((a0==1)&&(((a27==1)&&(((((a3==4)&&((((a22==1)&&(a18==1))&&!(a15==1))&&(a4==1)))&&(a6==1))||((((a3==8)&&(((a15==1)&&((a18==1)&&!(a22==1)))&&!(a4==1)))&&!(a6==1))||(((a3==8)&&(!(a4==1)&&((!(a22==1)&&!(a18==1))&&(a15==1))))&&!(a6==1))))&&(input==6)))&&!(a5==1)))))){ + a6 = 1; + a3 = 4; + a5 = 1; + a18 = 1; + a22 = 1; + a4 = 1; + a15 = 1; + return -1; + } else if((((!(a27==1)&&((((!(a0==1)&&(!(a4==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))||((a3==5)&&((a22==1)&&!(a18==1))))&&(input==6))))&&(a5==1))&&(a20==1))&&!(a15==1)))&&(a6==1))&&(a12==8))){ + a12 = 10; + a18 = 0; + a22 = 0; + a15 = 1; + a3 = 6; + return -1; + } else if(((((((a5==1)&&(((((a20==1)&&((input==5)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&(a27==1))&&(a15==1))&&(a3==4)))&&!(a6==1))&&(a12==8))&&(a4==1))&&!(a0==1))){ + a18 = 1; + a22 = 1; + a0 = 1; + a6 = 1; + a15 = 0; + a3 = 6; + a5 = 0; + a12 = 10; + return 21; + } else if(((a6==1)&&((a20==1)&&(!(a5==1)&&(!(a0==1)&&(!(a27==1)&&(((a3==8)&&(!(a15==1)&&(!(a22==1)&&((!(a18==1)&&(input==2))&&(a4==1)))))&&(a12==9)))))))){ + a3 = 7; + a12 = 8; + a27 = 1; + a22 = 1; + a18 = 1; + a0 = 1; + a6 = 0; + a15 = 1; + a5 = 1; + return -1; + } else if((((a4==1)&&(((a12==12)&&(((a6==1)&&(((a5==1)&&((input==6)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))||((a3==6)&&((a22==1)&&!(a18==1))))))&&!(a15==1)))&&(a20==1)))&&(a27==1)))&&(a0==1))){ + a18 = 1; + a15 = 1; + a3 = 6; + a22 = 0; + return -1; + } else if(((((((a12==9)&&(((!(a15==1)&&((((a3==5)&&((a18==1)&&(a22==1)))||(((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a22==1)&&!(a18==1)))))&&(input==3)))&&(a20==1))&&(a0==1)))&&!(a4==1))&&!(a6==1))&&(a27==1))&&(a5==1))){ + a22 = 1; + a27 = 0; + a3 = 7; + a18 = 0; + a6 = 1; + a15 = 1; + a12 = 8; + return 21; + } else if(((((!(a6==1)&&((!(a4==1)&&((a20==1)&&((a0==1)&&((((input==5)&&(a27==1))&&!(a15==1))&&(a3==5)))))&&(a12==9)))&&!(a18==1))&&(a22==1))&&!(a5==1))){ + a18 = 1; + a27 = 0; + a5 = 1; + a4 = 1; + return 24; + } else if((((a6==1)&&((((a5==1)&&((((a3==7)&&(!(a4==1)&&((a15==1)&&(((a18==1)||!(a18==1))&&(input==4)))))&&(a12==10))&&(a22==1)))&&(a0==1))&&(a20==1)))&&!(a27==1))){ + a18 = 0; + a15 = 0; + a3 = 4; + a5 = 0; + a27 = 1; + a6 = 0; + return -1; + } else if(((a15==1)&&((((((a20==1)&&(((a12==8)&&(!(a5==1)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==6))))&&(a6==1)))&&(a27==1))&&(a0==1))&&!(a4==1))&&(a3==4)))){ + a18 = 1; + a3 = 6; + a22 = 0; + a12 = 10; + a5 = 1; + return 26; + } else if((!(a5==1)&&((a20==1)&&((!(a0==1)&&(!(a27==1)&&((!(a22==1)&&((a12==8)&&(!(a6==1)&&(((input==4)&&!(a15==1))&&(a3==5)))))&&!(a4==1))))&&!(a18==1))))){ + a18 = 1; + a4 = 1; + a15 = 1; + a5 = 1; + a0 = 1; + a3 = 4; + a27 = 1; + return -1; + } else if((((!(a0==1)&&(((!(a15==1)&&((a6==1)&&(((input==2)&&((((a22==1)&&!(a18==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==7)))))&&(a5==1))))&&(a12==9))&&(a4==1)))&&(a20==1))&&!(a27==1))){ + if((a22==1)){ + a12 = 8; + a3 = 4; + a6 = 0; + a0 = 1; + a27 = 1; + a18 = 1; + a22 = 0; + a15 = 1; + }else{ + a18 = 0; + a22 = 0; + a4 = 0; + a3 = 5; + a27 = 1; + a5 = 0; + } + return 26; + } else if((((!(a0==1)&&(((input==5)&&((((((((a5==1)&&(!(a18==1)&&!(a22==1)))&&!(a15==1))&&!(a4==1))&&(a3==8))&&!(a6==1))||(((((((a18==1)&&(a22==1))&&!(a5==1))&&(a15==1))&&(a4==1))&&(a3==4))&&(a6==1)))||((a6==1)&&((a3==4)&&(((!(a5==1)&&(!(a18==1)&&(a22==1)))&&(a15==1))&&(a4==1))))))&&!(a27==1)))&&(a20==1))&&(a12==10))){ + if((a18==1)){ + a5 = 1; + a4 = 0; + a3 = 6; + a12 = 8; + a6 = 1; + a15 = 1; + a18 = 0; + a0 = 1; + a22 = 1; + }else{ + a4 = 1; + a6 = 1; + a3 = 5; + a27 = 1; + a22 = 0; + a18 = 1; + a5 = 0; + a15 = 1; + a0 = 1; + a12 = 12; + } + return -1; + } else if(((((a5==1)&&(((((!(a27==1)&&(((((a3==4)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==4)))&&(a15==1))&&!(a0==1))&&(a12==10))&&(a20==1)))&&(a6==1))&&(a4==1))){ + if((a27==1)){ + a5 = 0; + a18 = 1; + a27 = 1; + a0 = 1; + a15 = 0; + a3 = 4; + a22 = 0; + a12 = 12; + }else{ + a22 = 1; + a3 = 5; + a12 = 8; + a18 = 1; + a5 = 0; + } + return 24; + } else if(((!(a6==1)&&((a3==5)&&(((a20==1)&&((a0==1)&&((a4==1)&&((a5==1)&&((a27==1)&&((input==6)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))))))&&(a15==1))))&&(a12==9))){ + if((a27==1)){ + a0 = 0; + a6 = 1; + a22 = 0; + a3 = 8; + a18 = 1; + a12 = 10; + }else{ + a18 = 1; + a12 = 12; + a6 = 1; + a22 = 0; + a4 = 0; + } + return 21; + } else if((((a4==1)&&(((((((a12==12)&&((a20==1)&&((a0==1)&&((input==1)&&((a18==1)||!(a18==1))))))&&!(a27==1))&&(a6==1))&&!(a15==1))&&(a5==1))&&(a22==1)))&&(a3==8))){ + if((a20==1)){ + a0 = 0; + a5 = 0; + a27 = 1; + a12 = 10; + a4 = 0; + a18 = 0; + a3 = 6; + }else{ + a12 = 11; + a27 = 1; + a22 = 0; + a5 = 0; + a4 = 0; + a6 = 0; + a3 = 6; + a18 = 0; + } + return -1; + } else if(((!(a4==1)&&(((a12==11)&&((((!(a15==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==1))&&(a3==5)))&&!(a6==1))&&(a27==1))&&!(a0==1)))&&(a5==1)))&&(a20==1))){ + a0 = 1; + a22 = 0; + a12 = 9; + a6 = 1; + a3 = 4; + a18 = 1; + return 26; + } else if(((a5==1)&&((((((a20==1)&&((a0==1)&&(!(a15==1)&&((input==3)&&(((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1))))||((a3==7)&&((a18==1)&&(a22==1))))))))&&(a4==1))&&(a27==1))&&(a6==1))&&(a12==9)))){ + a15 = 1; + a22 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((a12==10)&&((((!(a22==1)&&((a15==1)&&(((!(a4==1)&&(((a3==6)&&(input==2))&&(a27==1)))&&(a6==1))&&(a20==1))))&&(a18==1))&&(a0==1))&&!(a5==1)))){ + a3 = 5; + a4 = 1; + a5 = 1; + a12 = 8; + a0 = 0; + return -1; + } else if((!(a22==1)&&(!(a4==1)&&((((a27==1)&&(((a6==1)&&((a15==1)&&(((a18==1)&&((a3==8)&&(input==3)))&&!(a5==1))))&&(a12==11)))&&!(a0==1))&&(a20==1))))){ + a3 = 5; + a4 = 1; + a22 = 1; + a0 = 1; + a18 = 0; + a15 = 0; + a5 = 1; + return 24; + } else if((!(a0==1)&&((!(a5==1)&&((a6==1)&&((a20==1)&&(((a27==1)&&((a3==4)&&(((a15==1)&&(!(a18==1)&&(input==3)))&&!(a4==1))))&&(a12==10)))))&&!(a22==1)))){ + a6 = 0; + a3 = 5; + a27 = 0; + a12 = 12; + a22 = 1; + a18 = 1; + a0 = 1; + a5 = 1; + return 21; + } else if((!(a4==1)&&((a3==7)&&((a6==1)&&((((!(a5==1)&&((((input==1)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&(a0==1))&&!(a27==1)))&&!(a15==1))&&(a20==1))&&(a12==11)))))){ + a12 = 10; + a18 = 0; + a22 = 0; + a5 = 1; + a27 = 1; + return 26; + } else if(((a20==1)&&(!(a27==1)&&((!(a6==1)&&((a5==1)&&((a12==11)&&((a3==8)&&(!(a15==1)&&((((input==1)&&((a18==1)||!(a18==1)))&&(a22==1))&&(a0==1)))))))&&(a4==1))))){ + if((a3==6)){ + a22 = 0; + a3 = 5; + a0 = 0; + a5 = 0; + a18 = 0; + a27 = 1; + a12 = 8; + }else{ + a5 = 0; + a12 = 8; + a18 = 0; + } + return -1; + } else if((!(a4==1)&&(!(a27==1)&&(((a20==1)&&((((((!(a6==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a12==9))&&(a3==4))&&(a0==1))&&(a22==1))&&(a5==1)))&&!(a15==1))))){ + a18 = 0; + a4 = 1; + a3 = 7; + a6 = 1; + a15 = 1; + return 26; + } else if((!(a6==1)&&((a20==1)&&(((a3==6)&&((((!(a15==1)&&((a4==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==3))))&&(a12==9))&&(a5==1))&&(a27==1)))&&!(a0==1))))){ + a12 = 12; + a18 = 0; + a15 = 1; + a3 = 5; + a0 = 1; + a22 = 1; + a4 = 0; + return 21; + } else if(((a5==1)&&(!(a6==1)&&((a15==1)&&((a20==1)&&(((!(a0==1)&&((((((a22==1)&&(a18==1))&&(a3==5))||(((a3==4)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==4))))&&(input==2))&&!(a4==1)))&&!(a27==1))&&(a12==8))))))){ + a5 = 0; + a6 = 1; + a18 = 0; + a27 = 1; + a22 = 1; + a3 = 5; + return 21; + } else if(((!(a4==1)&&((a6==1)&&(((a27==1)&&((((a22==1)&&((a20==1)&&((a12==8)&&((input==3)&&(a18==1)))))&&(a0==1))&&(a3==5)))&&!(a15==1))))&&(a5==1))){ + a15 = 1; + a22 = 0; + a12 = 9; + return 26; + } else if(((a12==10)&&(((!(a6==1)&&((((((((input==6)&&((a18==1)||!(a18==1)))&&!(a4==1))&&!(a27==1))&&!(a15==1))&&!(a5==1))&&(a0==1))&&(a20==1)))&&(a3==6))&&!(a22==1)))){ + a27 = 1; + a3 = 4; + a15 = 1; + a18 = 1; + a4 = 1; + a6 = 1; + a12 = 8; + a5 = 1; + a22 = 1; + return -1; + } else if((((((a0==1)&&(((a12==9)&&(((((input==4)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&!(a15==1))&&!(a27==1))&&!(a5==1)))&&(a3==7)))&&(a20==1))&&!(a6==1))&&!(a4==1))){ + a12 = 11; + a22 = 1; + a3 = 5; + a18 = 0; + a27 = 1; + return 21; + } else if((!(a4==1)&&(((((a20==1)&&(!(a6==1)&&((a12==9)&&((a5==1)&&((input==4)&&(((a3==7)&&((a22==1)&&!(a18==1)))||(((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))))))))&&(a0==1))&&!(a15==1))&&(a27==1)))){ + a0 = 0; + a15 = 1; + a18 = 0; + a22 = 1; + a3 = 7; + a12 = 8; + a6 = 1; + return 26; + } else if((((((a12==11)&&((a3==7)&&(!(a22==1)&&((a27==1)&&((((a6==1)&&((input==6)&&!(a0==1)))&&!(a15==1))&&(a20==1))))))&&(a4==1))&&(a18==1))&&(a5==1))){ + a0 = 1; + a22 = 1; + a15 = 1; + a27 = 0; + a6 = 0; + return 21; + } else if(((a12==8)&&((a4==1)&&((a20==1)&&((!(a0==1)&&((a5==1)&&((a27==1)&&((input==1)&&((((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1)))))))&&(a15==1)))))){ + a22 = 0; + a4 = 0; + a6 = 1; + a0 = 1; + a18 = 0; + a5 = 0; + a3 = 6; + return 26; + } else if((((a22==1)&&((a12==12)&&(((((a20==1)&&(((a0==1)&&(((input==5)&&(a4==1))&&!(a15==1)))&&!(a6==1)))&&(a3==8))&&(a27==1))&&!(a18==1))))&&!(a5==1))){ + a22 = 0; + a27 = 0; + a12 = 11; + a4 = 0; + a3 = 7; + a5 = 1; + a6 = 1; + return 21; + } else if((((((a20==1)&&(((a18==1)&&(((a4==1)&&(((!(a27==1)&&(input==1))&&(a22==1))&&(a12==11)))&&(a0==1)))&&(a15==1)))&&(a5==1))&&!(a6==1))&&(a3==8))){ + a6 = 1; + a15 = 0; + a3 = 7; + a5 = 0; + a22 = 0; + a18 = 0; + a4 = 0; + return 21; + } else if((((((a6==1)&&(!(a15==1)&&((a20==1)&&(!(a5==1)&&(((((!(a18==1)&&(a22==1))&&(a3==6))||(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6))))&&(input==2))&&(a0==1))))))&&(a4==1))&&(a12==8))&&(a27==1))){ + a4 = 0; + a15 = 1; + a22 = 1; + a6 = 0; + a12 = 10; + a3 = 7; + a18 = 1; + return 21; + } else if((((a12==12)&&(!(a0==1)&&(((a27==1)&&(!(a15==1)&&(((a3==5)&&((a4==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==6))))&&(a20==1))))&&(a5==1))))&&(a6==1))){ + a4 = 0; + a27 = 0; + a22 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a0 = 1; + a15 = 1; + return 26; + } else if(((((a20==1)&&(!(a15==1)&&((a18==1)&&(((a4==1)&&(((a12==10)&&(((a5==1)&&(input==3))&&(a0==1)))&&(a27==1)))&&(a3==6)))))&&!(a6==1))&&!(a22==1))){ + a3 = 8; + a22 = 1; + a12 = 8; + a0 = 0; + return -1; + } else if((!(a15==1)&&((((a12==10)&&(((((!(a4==1)&&(((input==6)&&(a27==1))&&(a22==1)))&&!(a0==1))&&(a18==1))&&!(a5==1))&&!(a6==1)))&&(a3==7))&&(a20==1)))){ + a3 = 6; + a12 = 8; + a15 = 1; + a0 = 1; + a5 = 1; + return 21; + } else if((!(a6==1)&&((((a3==8)&&((a22==1)&&(((a12==10)&&((((a20==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a5==1))&&(a4==1)))&&!(a0==1))))&&!(a27==1))&&!(a15==1)))){ + a22 = 0; + a27 = 1; + a18 = 0; + a15 = 1; + a4 = 0; + a3 = 4; + a12 = 8; + a5 = 0; + a0 = 1; + a6 = 1; + return 26; + } else if(((!(a5==1)&&((a0==1)&&((((a15==1)&&(((a27==1)&&((a20==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==4))))&&(a6==1)))&&(a3==6))&&(a12==8))))&&!(a4==1))){ + a3 = 4; + a18 = 1; + a22 = 1; + a4 = 1; + a5 = 1; + return -1; + } else if(((a12==8)&&(((((((((a3==4)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a20==1)))&&(a6==1))&&!(a4==1))&&!(a22==1))&&!(a5==1))&&(a27==1))&&!(a0==1))&&!(a15==1)))){ + a15 = 1; + a4 = 1; + a22 = 1; + a0 = 1; + a18 = 1; + a5 = 1; + return -1; + } else if(((a12==10)&&((a4==1)&&((((!(a15==1)&&(!(a27==1)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&(a3==6))&&(a20==1))))&&!(a0==1))&&!(a5==1))&&(a6==1))))){ + if((a18==1)){ + a12 = 8; + a4 = 0; + a27 = 1; + a18 = 1; + a5 = 1; + a15 = 1; + a3 = 7; + a22 = 1; + a0 = 1; + }else{ + a0 = 1; + a22 = 1; + a27 = 1; + a18 = 1; + a15 = 1; + a12 = 8; + a3 = 4; + a5 = 1; + } + return -1; + } else if(((!(a5==1)&&(!(a4==1)&&((a20==1)&&((a6==1)&&((((a27==1)&&(((input==5)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a0==1)))&&(a15==1))&&(a12==10))))))&&(a3==5))){ + a3 = 6; + a5 = 1; + a22 = 1; + a4 = 1; + a18 = 0; + a12 = 11; + a0 = 0; + a15 = 0; + return -1; + } else if((((!(a4==1)&&(((a22==1)&&((!(a5==1)&&(!(a6==1)&&(!(a0==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a20==1)))))&&!(a27==1)))&&(a3==6)))&&(a15==1))&&(a12==11))){ + a12 = 12; + a6 = 1; + a0 = 1; + a18 = 0; + a5 = 1; + a15 = 0; + a27 = 1; + return -1; + } else if((((((a20==1)&&((((((a3==5)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1)))&&(a4==1))&&(a12==11))&&!(a6==1))&&!(a0==1)))&&(a5==1))&&!(a15==1))&&!(a27==1))){ + a27 = 1; + a22 = 0; + a3 = 7; + a12 = 8; + a15 = 1; + a18 = 0; + a0 = 1; + return -1; + } else if(((a20==1)&&((((((((a12==11)&&((a0==1)&&(!(a5==1)&&((input==5)&&!(a27==1)))))&&!(a15==1))&&(a4==1))&&(a6==1))&&(a18==1))&&(a3==6))&&!(a22==1)))){ + a3 = 5; + a5 = 1; + a15 = 1; + a6 = 0; + a18 = 0; + return -1; + } else if(((a0==1)&&((((a15==1)&&((a5==1)&&((a12==9)&&(!(a27==1)&&((a6==1)&&((input==5)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1))))))))))&&(a20==1))&&!(a4==1)))){ + a22 = 0; + a5 = 0; + a27 = 1; + a3 = 6; + a0 = 0; + a4 = 1; + a6 = 0; + a18 = 1; + return 24; + } else if((((a0==1)&&(!(a5==1)&&((!(a6==1)&&((a12==12)&&((a3==4)&&((a18==1)&&(!(a15==1)&&((a27==1)&&((a4==1)&&(input==6))))))))&&(a20==1))))&&(a22==1))){ + a15 = 1; + a5 = 1; + a3 = 6; + a12 = 10; + a4 = 0; + return 24; + } else if(((((((!(a5==1)&&((((a0==1)&&(((input==3)&&(a12==9))&&(a15==1)))&&(a27==1))&&(a20==1)))&&(a22==1))&&!(a18==1))&&(a4==1))&&(a3==7))&&!(a6==1))){ + a15 = 0; + a12 = 8; + a27 = 0; + a5 = 1; + a3 = 6; + a22 = 0; + a4 = 0; + return 26; + } else if(((((((a20==1)&&(!(a27==1)&&((((((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1))))&&!(a6==1))||(((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))&&(a6==1)))||(((((a22==1)&&!(a18==1))&&!(a4==1))&&(a3==4))&&(a6==1)))&&(input==6))))&&(a15==1))&&!(a0==1))&&(a12==8))&&!(a5==1))){ + a27 = 1; + a0 = 1; + a3 = 8; + a5 = 1; + a18 = 1; + a4 = 1; + a6 = 1; + a22 = 1; + return 26; + } else if(((a6==1)&&(((a5==1)&&((((a20==1)&&(((((((a18==1)||!(a18==1))&&(input==6))&&(a3==6))&&!(a0==1))&&!(a27==1))&&(a22==1)))&&(a12==8))&&!(a15==1)))&&!(a4==1)))){ + a12 = 11; + a4 = 1; + a0 = 1; + a27 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if(((a15==1)&&((a12==10)&&(((((a20==1)&&(!(a6==1)&&((a27==1)&&((input==4)&&(((a3==5)&&((a18==1)&&(a22==1)))||(((a3==4)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==4))))))))&&(a5==1))&&!(a0==1))&&!(a4==1))))){ + a27 = 0; + a3 = 5; + a0 = 1; + a6 = 1; + a18 = 1; + a22 = 0; + return 21; + } else if((!(a4==1)&&((!(a0==1)&&((!(a15==1)&&((!(a6==1)&&(((a27==1)&&((input==4)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))))&&(a12==9)))&&(a3==8)))&&(a20==1)))&&!(a5==1)))){ + a18 = 1; + a12 = 10; + a22 = 1; + a0 = 1; + a5 = 1; + return 26; + } else if(((a12==9)&&((a4==1)&&((((a20==1)&&((!(a15==1)&&(((input==1)&&(((a3==6)&&((a22==1)&&(a18==1)))||(((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a18==1)&&!(a22==1))))))&&!(a6==1)))&&!(a5==1)))&&!(a0==1))&&(a27==1))))){ + a18 = 1; + a15 = 1; + a12 = 11; + a3 = 7; + a4 = 0; + a22 = 0; + return 26; + } else if(((a22==1)&&((((((a27==1)&&((a18==1)&&((((a3==4)&&(!(a5==1)&&(input==6)))&&(a6==1))&&(a12==11))))&&(a4==1))&&(a20==1))&&(a15==1))&&!(a0==1)))){ + a12 = 8; + a5 = 1; + a0 = 1; + return -1; + } else if(((a15==1)&&(!(a27==1)&&((a0==1)&&((a20==1)&&(!(a5==1)&&(!(a4==1)&&(((input==2)&&((!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1))))||(((a6==1)&&(((a18==1)&&!(a22==1))&&(a3==8)))||(((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1)))))&&(a12==10))))))))){ + a22 = 1; + a3 = 4; + a5 = 1; + a15 = 0; + a6 = 0; + a12 = 12; + a18 = 0; + a27 = 1; + return 26; + } else if((((a20==1)&&(((a5==1)&&(((a3==7)&&(!(a15==1)&&((a0==1)&&(((input==4)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&!(a4==1)))))&&(a6==1)))&&(a12==9)))&&(a27==1))){ + a0 = 0; + a12 = 11; + a22 = 1; + a18 = 1; + a3 = 6; + return 21; + } else if(((a6==1)&&((((!(a27==1)&&(((a5==1)&&((a12==11)&&(((input==1)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&(a20==1))))&&(a3==8)))&&(a15==1))&&!(a0==1))&&!(a4==1)))){ + if((a5==1)){ + a0 = 1; + a22 = 1; + a4 = 1; + a12 = 8; + a27 = 1; + a18 = 1; + }else{ + a18 = 1; + a0 = 1; + a22 = 1; + a12 = 8; + a5 = 0; + a3 = 5; + } + return -1; + } else if(((!(a15==1)&&(!(a4==1)&&(!(a18==1)&&(((a12==8)&&((((a6==1)&&(((input==1)&&(a3==7))&&(a27==1)))&&(a20==1))&&(a0==1)))&&(a22==1)))))&&(a5==1))){ + a22 = 0; + a4 = 1; + a12 = 9; + return 26; + } else if((((a12==9)&&((a27==1)&&(((a22==1)&&(((a20==1)&&((a15==1)&&((!(a18==1)&&((a5==1)&&(input==2)))&&(a6==1))))&&(a3==6)))&&(a0==1))))&&!(a4==1))){ + a4 = 1; + a3 = 8; + a12 = 12; + a5 = 0; + return 21; + } else if(((((((a12==10)&&((a0==1)&&((a20==1)&&((a15==1)&&((a5==1)&&((input==3)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))))))))&&(a3==7))&&(a6==1))&&(a4==1))&&!(a27==1))){ + a12 = 8; + a27 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((((!(a4==1)&&((a12==10)&&((a6==1)&&((((((input==4)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&(a3==4))&&!(a0==1))&&(a20==1))&&!(a27==1)))))&&(a15==1))&&(a5==1))){ + a22 = 1; + a6 = 0; + a5 = 0; + a0 = 1; + a18 = 1; + a15 = 0; + a3 = 7; + a27 = 1; + a12 = 8; + return 21; + } else if(((a3==4)&&((a27==1)&&(!(a4==1)&&((a15==1)&&(!(a5==1)&&(((((a12==9)&&((input==3)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&(a20==1))&&!(a6==1))&&!(a0==1)))))))){ + if((a27==1)){ + a3 = 7; + a18 = 1; + a5 = 1; + a22 = 1; + a4 = 1; + a15 = 0; + a12 = 11; + }else{ + a15 = 0; + a3 = 8; + a0 = 1; + a18 = 0; + a6 = 1; + a5 = 1; + a22 = 1; + } + return 26; + } else if(((a27==1)&&((a12==12)&&((((a0==1)&&((((((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))||(((a22==1)&&!(a18==1))&&(a3==7)))&&(input==2))&&(a4==1))&&!(a5==1))&&(a6==1)))&&!(a15==1))&&(a20==1))))){ + a3 = 6; + a22 = 0; + a12 = 10; + a18 = 1; + return 21; + } else if((((a12==11)&&((a4==1)&&(((a27==1)&&((a20==1)&&((((input==1)&&((((a3==7)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==7)))||((a3==8)&&((a22==1)&&(a18==1)))))&&!(a5==1))&&(a15==1))))&&(a0==1))))&&!(a6==1))){ + a18 = 1; + a5 = 1; + a0 = 0; + a4 = 0; + a22 = 1; + a6 = 1; + a3 = 8; + a12 = 8; + return -1; + } else if((((((a18==1)&&((a6==1)&&((a20==1)&&(((a3==5)&&((((input==6)&&!(a0==1))&&(a5==1))&&(a4==1)))&&(a22==1)))))&&(a12==8))&&!(a27==1))&&!(a15==1))){ + if((a0==1)){ + a6 = 0; + a22 = 0; + a3 = 7; + a27 = 1; + }else{ + a4 = 0; + a22 = 0; + a12 = 11; + } + return -1; + } else if((!(a22==1)&&(((a27==1)&&((a3==6)&&(((a12==10)&&(!(a5==1)&&(!(a6==1)&&(((a4==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a15==1)))))&&!(a0==1))))&&(a20==1)))){ + if((a0==1)){ + a12 = 11; + a6 = 1; + a15 = 0; + a3 = 8; + a4 = 0; + a18 = 1; + a5 = 1; + }else{ + a0 = 1; + a18 = 1; + a4 = 0; + a5 = 1; + a27 = 0; + a3 = 7; + a22 = 1; + a6 = 1; + } + return 21; + } else if(((a22==1)&&(!(a15==1)&&((!(a5==1)&&(((a20==1)&&(((a4==1)&&((a6==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a12==11))))&&(a3==7)))&&!(a0==1)))&&(a27==1))))){ + a4 = 0; + a27 = 0; + a3 = 6; + a18 = 0; + a12 = 8; + a0 = 1; + return 21; + } else if((!(a15==1)&&(!(a5==1)&&((((((((a20==1)&&(((input==3)&&!(a4==1))&&(a27==1)))&&(a12==8))&&(a0==1))&&(a22==1))&&!(a18==1))&&!(a6==1))&&(a3==8))))){ + a12 = 11; + a6 = 1; + a15 = 1; + a22 = 0; + a3 = 7; + a18 = 1; + return 26; + } else if(((a3==6)&&((a5==1)&&(!(a4==1)&&(((a15==1)&&((!(a0==1)&&((a12==8)&&(((a20==1)&&(!(a18==1)&&(input==2)))&&!(a6==1))))&&(a22==1)))&&!(a27==1)))))){ + a0 = 1; + a6 = 1; + a3 = 4; + a27 = 1; + a22 = 0; + a18 = 1; + return 24; + } else if(((!(a4==1)&&(((a22==1)&&((((((a15==1)&&((a0==1)&&((a12==11)&&(input==3))))&&!(a5==1))&&(a20==1))&&!(a27==1))&&(a18==1)))&&(a6==1)))&&(a3==5))){ + a12 = 8; + a18 = 0; + a5 = 1; + a3 = 8; + return -1; + } else if(((!(a0==1)&&(((a12==9)&&((a3==5)&&((!(a27==1)&&(((!(a18==1)&&((input==3)&&!(a5==1)))&&(a4==1))&&!(a6==1)))&&(a22==1))))&&(a15==1)))&&(a20==1))){ + a18 = 1; + a22 = 0; + a3 = 6; + a12 = 8; + a0 = 1; + return 21; + } else if(((((!(a15==1)&&((((((a20==1)&&((a5==1)&&((a0==1)&&(input==2))))&&(a27==1))&&(a12==9))&&(a4==1))&&!(a6==1)))&&(a3==5))&&!(a22==1))&&(a18==1))){ + a5 = 0; + a4 = 0; + a12 = 12; + return 26; + } else if((((!(a6==1)&&((a5==1)&&((a15==1)&&(((a27==1)&&(((a3==6)&&((input==4)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a4==1)))&&!(a0==1)))))&&(a12==9))&&(a20==1))){ + a15 = 0; + a6 = 1; + a0 = 1; + a18 = 1; + a27 = 0; + a12 = 11; + a4 = 1; + a22 = 0; + return 26; + } else if((((!(a6==1)&&((a5==1)&&((a0==1)&&((a12==10)&&((a3==6)&&(((a4==1)&&((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a27==1)))))))&&(a20==1))&&(a15==1))){ + a27 = 1; + a12 = 11; + a6 = 1; + a22 = 1; + a18 = 0; + return 21; + } else if((((a12==8)&&(((!(a18==1)&&((!(a4==1)&&(((!(a5==1)&&((input==3)&&!(a27==1)))&&!(a22==1))&&(a0==1)))&&(a3==8)))&&!(a15==1))&&(a20==1)))&&!(a6==1))){ + a12 = 11; + a6 = 1; + a27 = 1; + a3 = 5; + a4 = 1; + return 26; + } else if((((((a12==10)&&((!(a15==1)&&(((!(a5==1)&&(!(a4==1)&&((input==2)&&((a18==1)||!(a18==1)))))&&!(a27==1))&&(a0==1)))&&(a20==1)))&&(a22==1))&&(a3==4))&&!(a6==1))){ + a3 = 8; + a22 = 0; + a12 = 11; + a18 = 1; + a27 = 1; + a4 = 1; + a5 = 1; + a0 = 0; + a15 = 1; + return 21; + } else if(((a12==9)&&((!(a4==1)&&((((!(a15==1)&&((((a20==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&!(a0==1))&&!(a22==1)))&&(a6==1))&&!(a5==1))&&(a3==7)))&&(a27==1)))){ + a22 = 1; + a3 = 4; + a4 = 1; + a15 = 1; + a18 = 1; + a12 = 8; + a5 = 1; + a0 = 1; + return -1; + } else if(((((a0==1)&&(((((a20==1)&&(((input==1)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))||((a3==8)&&((a22==1)&&!(a18==1)))))&&(a27==1)))&&!(a15==1))&&(a5==1))&&(a6==1)))&&!(a4==1))&&(a12==9))){ + a3 = 7; + a18 = 0; + a22 = 1; + a15 = 1; + a12 = 10; + return 26; + } else if(((!(a15==1)&&((a3==7)&&(((((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6))&&(a12==8))&&!(a0==1))&&(a20==1))&&!(a6==1))&&!(a5==1))&&!(a4==1))))&&(a27==1))){ + a22 = 0; + a12 = 12; + a3 = 5; + a5 = 1; + a0 = 1; + a18 = 0; + a6 = 1; + return 26; + } else if((((a5==1)&&((a12==10)&&(((((((a27==1)&&((a3==5)&&((input==5)&&!(a15==1))))&&(a0==1))&&(a20==1))&&(a4==1))&&(a6==1))&&(a18==1))))&&!(a22==1))){ + a0 = 0; + a6 = 0; + a15 = 1; + a3 = 8; + a12 = 12; + a4 = 0; + return -1; + } else if((((a6==1)&&((a15==1)&&((((a0==1)&&((a27==1)&&((!(a18==1)&&(!(a4==1)&&((input==6)&&(a3==5))))&&(a22==1))))&&(a20==1))&&(a12==11))))&&!(a5==1))){ + a4 = 1; + a5 = 1; + a15 = 0; + a3 = 7; + a12 = 10; + a22 = 0; + return -1; + } else if((!(a22==1)&&((a15==1)&&(((a5==1)&&(!(a18==1)&&(!(a4==1)&&(((!(a27==1)&&(((input==4)&&(a3==8))&&(a12==12)))&&!(a6==1))&&(a0==1)))))&&(a20==1))))){ + a27 = 1; + a6 = 1; + a12 = 11; + a3 = 5; + a0 = 0; + a18 = 1; + a4 = 1; + return -1; + } else if(((((((((a3==4)&&(((((input==3)&&!(a0==1))&&!(a27==1))&&!(a6==1))&&(a4==1)))&&(a12==11))&&(a5==1))&&(a20==1))&&!(a22==1))&&!(a15==1))&&!(a18==1))){ + if((a22==1)){ + a3 = 6; + a12 = 9; + a15 = 1; + a4 = 0; + a27 = 1; + }else{ + a3 = 8; + a4 = 0; + a18 = 1; + a12 = 8; + a6 = 1; + a0 = 1; + } + return 21; + } else if(((a4==1)&&(!(a5==1)&&((a20==1)&&(((((a12==8)&&(!(a0==1)&&(((((a3==4)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==2))))&&!(a15==1))&&!(a6==1))&&!(a27==1)))))){ + a27 = 1; + a3 = 8; + a22 = 1; + a15 = 1; + a12 = 11; + a18 = 0; + return -1; + } else if((!(a0==1)&&((a15==1)&&((a5==1)&&(((a12==10)&&(((((a20==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==1)))&&!(a6==1))&&!(a4==1))&&(a3==7)))&&(a27==1)))))){ + a6 = 1; + a18 = 0; + a0 = 1; + a22 = 0; + a3 = 4; + return 26; + } else if((((a15==1)&&((a12==8)&&(((!(a27==1)&&((a3==7)&&(!(a22==1)&&((((input==3)&&!(a5==1))&&!(a0==1))&&!(a4==1)))))&&(a18==1))&&(a20==1))))&&!(a6==1))){ + a5 = 1; + a0 = 1; + a12 = 12; + a3 = 8; + a4 = 1; + return -1; + } else if((((((a12==11)&&((((((((((a18==1)&&!(a22==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5)))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==2))&&!(a15==1))&&(a20==1))&&(a4==1))&&(a0==1)))&&!(a6==1))&&(a27==1))&&!(a5==1))){ + a22 = 0; + a12 = 10; + a3 = 5; + a15 = 1; + a5 = 1; + a6 = 1; + a18 = 0; + return 26; + } else if((((((a12==11)&&((a22==1)&&((a4==1)&&((a27==1)&&(((((input==2)&&!(a0==1))&&(a15==1))&&(a3==8))&&(a18==1))))))&&(a20==1))&&(a5==1))&&(a6==1))){ + a0 = 1; + a18 = 0; + a12 = 10; + a4 = 0; + a15 = 0; + return 26; + } else if(((a5==1)&&((((((a0==1)&&(!(a27==1)&&((a15==1)&&((input==4)&&(((a3==8)&&((a22==1)&&!(a18==1)))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==8))))))))&&(a12==11))&&!(a4==1))&&(a20==1))&&(a6==1)))){ + a27 = 1; + a12 = 10; + a3 = 4; + a4 = 1; + a5 = 0; + a18 = 0; + a22 = 0; + return 26; + } else if((!(a6==1)&&(!(a5==1)&&((((a20==1)&&((a12==10)&&(!(a15==1)&&((a4==1)&&(((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==7)))||((a3==7)&&(!(a18==1)&&(a22==1))))&&(input==6))))))&&!(a0==1))&&!(a27==1))))){ + a12 = 8; + a5 = 1; + a18 = 0; + a15 = 1; + a3 = 8; + a22 = 0; + a0 = 1; + a27 = 1; + return 26; + } else if((!(a15==1)&&((a5==1)&&(((((a20==1)&&(!(a22==1)&&((((((a18==1)||!(a18==1))&&(input==4))&&(a12==10))&&!(a27==1))&&(a4==1))))&&(a3==8))&&!(a0==1))&&!(a6==1))))){ + a18 = 1; + a0 = 1; + a5 = 0; + a15 = 1; + a12 = 11; + a4 = 0; + a6 = 1; + return -1; + } else if((!(a4==1)&&((((a6==1)&&((a0==1)&&(((!(a5==1)&&((a15==1)&&((((a18==1)||!(a18==1))&&(input==6))&&(a3==8))))&&(a20==1))&&(a12==9))))&&(a27==1))&&!(a22==1)))){ + a22 = 1; + a6 = 0; + a12 = 8; + a18 = 1; + a3 = 5; + a27 = 0; + return 26; + } else if((!(a6==1)&&((!(a4==1)&&((a0==1)&&((a3==5)&&(!(a5==1)&&((a12==8)&&((a15==1)&&((a20==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2)))))))))&&(a27==1)))){ + a18 = 1; + a12 = 10; + a5 = 1; + a15 = 0; + a22 = 1; + return 26; + } else if(((a3==6)&&((a12==10)&&(!(a0==1)&&(!(a15==1)&&(!(a27==1)&&(((((a20==1)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==5)))&&(a5==1))&&(a4==1))&&(a6==1)))))))){ + a22 = 1; + a15 = 1; + a6 = 0; + a3 = 8; + a12 = 11; + a0 = 1; + a18 = 0; + return 21; + } else if(((a12==12)&&((((a20==1)&&((a4==1)&&((((a5==1)&&((input==5)&&(((a3==6)&&(!(a18==1)&&(a22==1)))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1)))))))&&(a15==1))&&!(a6==1))))&&(a0==1))&&(a27==1)))){ + a6 = 1; + a27 = 0; + a22 = 0; + a18 = 1; + a3 = 6; + return 24; + } else if((((a5==1)&&((a12==9)&&((a27==1)&&(!(a6==1)&&((a20==1)&&((!(a15==1)&&((((a3==5)&&((a22==1)&&(a18==1)))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a22==1)&&!(a18==1)))))&&(input==1)))&&!(a4==1)))))))&&(a0==1))){ + a18 = 0; + a4 = 1; + a15 = 1; + a22 = 0; + a3 = 6; + a12 = 10; + return 21; + } else if(((a5==1)&&((((a4==1)&&(!(a0==1)&&((a6==1)&&((a20==1)&&((a15==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5))&&(a12==9)))))))&&!(a27==1))&&(a3==5)))){ + if((a0==1)){ + a0 = 1; + a3 = 7; + a27 = 1; + a18 = 0; + a12 = 8; + a22 = 0; + }else{ + a27 = 1; + a6 = 0; + a22 = 1; + a3 = 7; + a18 = 0; + a0 = 1; + a4 = 0; + } + return 24; + } else if(((!(a27==1)&&((a4==1)&&(((!(a15==1)&&((a20==1)&&(((input==1)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))||((a3==5)&&(!(a18==1)&&(a22==1)))))&&(a5==1))))&&!(a0==1))&&!(a6==1))))&&(a12==9))){ + a22 = 1; + a0 = 1; + a12 = 10; + a5 = 0; + a4 = 0; + a18 = 0; + a3 = 6; + return 21; + } else if((!(a15==1)&&((a4==1)&&(((a3==4)&&((a20==1)&&((!(a0==1)&&((a27==1)&&(!(a6==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==3)))))&&(a12==11))))&&(a5==1))))){ + a4 = 0; + a6 = 1; + a27 = 0; + a12 = 10; + a0 = 1; + a18 = 0; + a22 = 0; + return 21; + } else if(((a4==1)&&(((!(a27==1)&&((a15==1)&&(((((((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==1))&&(a6==1))&&(a12==11))&&(a5==1))))&&(a20==1))&&!(a0==1)))){ + a5 = 0; + a12 = 10; + a3 = 6; + a22 = 0; + a18 = 1; + a0 = 1; + a27 = 1; + a4 = 0; + return 26; + } else if((!(a0==1)&&((a5==1)&&((((((a20==1)&&(!(a27==1)&&(((((a18==1)||!(a18==1))&&(input==3))&&!(a22==1))&&(a6==1))))&&!(a15==1))&&!(a4==1))&&(a3==6))&&(a12==8))))){ + if((a27==1)){ + a27 = 1; + a4 = 1; + a18 = 0; + a0 = 1; + a15 = 1; + }else{ + a3 = 5; + a27 = 1; + a0 = 1; + a18 = 0; + a6 = 0; + a15 = 1; + a4 = 1; + } + return 26; + } else if(((((((a6==1)&&(((a20==1)&&(((a3==5)&&((!(a5==1)&&(input==6))&&(a12==12)))&&(a18==1)))&&(a0==1)))&&(a15==1))&&(a22==1))&&!(a27==1))&&!(a4==1))){ + if((a18==1)){ + a5 = 1; + a4 = 1; + a27 = 1; + a12 = 8; + a15 = 0; + a0 = 0; + a22 = 0; + }else{ + a3 = 7; + a4 = 1; + a18 = 0; + a22 = 0; + a15 = 0; + } + return 21; + } else if(((((((!(a0==1)&&(!(a5==1)&&((((((a18==1)||!(a18==1))&&(input==5))&&(a4==1))&&(a20==1))&&(a3==6))))&&!(a15==1))&&(a12==11))&&(a22==1))&&(a6==1))&&(a27==1))){ + a3 = 8; + a18 = 0; + a6 = 0; + a0 = 1; + return -1; + } else if(((a12==11)&&((a6==1)&&(!(a15==1)&&((a5==1)&&((a0==1)&&((a27==1)&&((((input==4)&&(((((a18==1)&&!(a22==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))||((a3==5)&&((a22==1)&&(a18==1)))))&&!(a4==1))&&(a20==1))))))))){ + a22 = 1; + a4 = 1; + a3 = 7; + a18 = 0; + return -1; + } else if((!(a5==1)&&((!(a6==1)&&(((a4==1)&&((a12==10)&&(((a15==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==6)))&&(input==2)))&&(a20==1))))&&!(a0==1)))&&!(a27==1)))){ + a0 = 1; + a27 = 1; + a18 = 0; + a22 = 0; + a12 = 8; + a5 = 1; + a3 = 5; + a6 = 1; + return 21; + } else if(((!(a27==1)&&((!(a4==1)&&(((a12==8)&&((!(a15==1)&&((a20==1)&&((input==3)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))&&(a3==5)))&&!(a5==1)))&&!(a0==1)))&&(a6==1))){ + if((a12==12)){ + a0 = 1; + a15 = 1; + a27 = 1; + a18 = 1; + a22 = 1; + a5 = 1; + a3 = 4; + }else{ + a27 = 1; + a18 = 0; + a6 = 0; + a12 = 10; + a22 = 1; + a3 = 7; + } + return 21; + } else if(((a20==1)&&(!(a18==1)&&(!(a5==1)&&((a15==1)&&(((a4==1)&&(!(a22==1)&&((a3==6)&&(!(a6==1)&&((!(a0==1)&&(input==5))&&!(a27==1))))))&&(a12==11))))))){ + a18 = 1; + a12 = 10; + a5 = 1; + a6 = 1; + a15 = 0; + a27 = 1; + return -1; + } else if((((!(a22==1)&&((((a5==1)&&((!(a18==1)&&((a15==1)&&((a27==1)&&((a4==1)&&(input==2)))))&&!(a0==1)))&&(a12==9))&&!(a6==1)))&&(a3==6))&&(a20==1))){ + a0 = 1; + a5 = 0; + a6 = 1; + a18 = 1; + a15 = 0; + a12 = 11; + a4 = 0; + return 26; + } else if(((!(a27==1)&&((a0==1)&&((((a12==9)&&((((a20==1)&&(((a4==1)&&(input==2))&&(a6==1)))&&(a3==7))&&!(a15==1)))&&(a22==1))&&!(a18==1))))&&!(a5==1))){ + a12 = 11; + a18 = 1; + a3 = 5; + a27 = 1; + a6 = 0; + a15 = 1; + a5 = 1; + return 26; + } else if(((((a0==1)&&(((((a12==9)&&((((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4))))&&(input==3)))&&!(a4==1))&&(a20==1))&&(a15==1)))&&(a5==1))&&(a27==1))){ + a18 = 1; + a5 = 0; + a12 = 12; + a6 = 1; + a3 = 5; + a22 = 0; + return 21; + } else if(((!(a0==1)&&((a3==7)&&((((((!(a6==1)&&(((input==4)&&(a27==1))&&(a12==10)))&&(a4==1))&&(a5==1))&&!(a15==1))&&(a20==1))&&!(a22==1))))&&!(a18==1))){ + a0 = 1; + a18 = 1; + a6 = 1; + a3 = 4; + a27 = 0; + a5 = 0; + return 21; + } else if((((a22==1)&&((a0==1)&&(!(a18==1)&&(((a4==1)&&((a3==4)&&((a15==1)&&(((a5==1)&&((a27==1)&&(input==4)))&&(a12==9)))))&&(a6==1)))))&&(a20==1))){ + a6 = 0; + a12 = 11; + a4 = 0; + a22 = 0; + a5 = 0; + a3 = 8; + return 21; + } else if(((a5==1)&&(((a27==1)&&((a12==8)&&(((!(a4==1)&&((a20==1)&&((a3==7)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==6)))))&&(a6==1))&&!(a0==1))))&&(a15==1)))){ + if((a15==1)){ + a12 = 11; + a18 = 0; + a22 = 1; + a4 = 1; + a15 = 0; + }else{ + a18 = 1; + a27 = 0; + a12 = 9; + a22 = 0; + a15 = 0; + a0 = 1; + a5 = 0; + } + return 26; + } else if((!(a6==1)&&(((!(a15==1)&&((a20==1)&&(!(a0==1)&&((a4==1)&&((a27==1)&&(((a12==8)&&((input==2)&&((a18==1)||!(a18==1))))&&!(a5==1)))))))&&!(a22==1))&&(a3==5)))){ + a4 = 0; + a18 = 1; + return 26; + } else if((!(a4==1)&&(((a20==1)&&(((a0==1)&&(!(a27==1)&&(!(a15==1)&&((((((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a18==1)&&!(a22==1))))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==5))&&(a5==1)))))&&(a12==12)))&&!(a6==1)))){ + a3 = 6; + a22 = 1; + a4 = 1; + a18 = 1; + a6 = 1; + a5 = 0; + a12 = 10; + return -1; + } else if(((((a6==1)&&((((a5==1)&&((a12==11)&&((a22==1)&&(((a3==4)&&(((a18==1)||!(a18==1))&&(input==2)))&&!(a15==1)))))&&!(a4==1))&&(a27==1)))&&(a20==1))&&(a0==1))){ + if((a20==1)){ + a18 = 0; + a12 = 12; + a0 = 0; + a15 = 1; + a3 = 5; + a4 = 1; + }else{ + a5 = 0; + a18 = 0; + a22 = 0; + a3 = 8; + a15 = 1; + a12 = 10; + a6 = 0; + } + return 21; + } else if((!(a6==1)&&(((!(a5==1)&&((((a15==1)&&((a22==1)&&((a4==1)&&((a12==11)&&(((a18==1)||!(a18==1))&&(input==5))))))&&(a0==1))&&(a20==1)))&&!(a27==1))&&(a3==5)))){ + a5 = 1; + a27 = 1; + a15 = 0; + a12 = 10; + a6 = 1; + a18 = 0; + return -1; + } else if((((((a20==1)&&(!(a27==1)&&(((a15==1)&&((input==2)&&((((!(a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))||((((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1))))))&&(a0==1))))&&(a5==1))&&(a12==11))&&!(a4==1))){ + a22 = 1; + a6 = 1; + a12 = 8; + a18 = 1; + a27 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if((((((a6==1)&&((!(a0==1)&&((a4==1)&&(((a20==1)&&((input==1)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&(a3==7))))&&(a15==1)))&&(a12==10))&&!(a5==1))&&(a27==1))){ + a12 = 11; + a15 = 0; + a3 = 8; + a18 = 1; + a22 = 1; + a5 = 1; + a0 = 1; + return 24; + } else if((!(a27==1)&&((a3==4)&&((!(a0==1)&&((a5==1)&&((!(a4==1)&&(((a12==10)&&((a15==1)&&((input==5)&&((a18==1)||!(a18==1)))))&&(a20==1)))&&(a22==1))))&&!(a6==1))))){ + if((a0==1)){ + a27 = 1; + a18 = 1; + a3 = 6; + a0 = 1; + a12 = 8; + a6 = 1; + a4 = 1; + }else{ + a15 = 0; + a27 = 1; + a3 = 8; + a18 = 0; + a12 = 9; + } + return 26; + } else if((!(a15==1)&&(!(a6==1)&&(!(a4==1)&&((a0==1)&&(((!(a18==1)&&((a3==8)&&(((a12==10)&&((input==6)&&(a20==1)))&&(a5==1))))&&(a22==1))&&(a27==1))))))){ + return 26; + } else if(((a20==1)&&((((((a27==1)&&(((a0==1)&&(((input==3)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a15==1)))&&(a12==11)))&&(a6==1))&&!(a5==1))&&(a3==6))&&(a4==1)))){ + a18 = 1; + a12 = 12; + a22 = 1; + a15 = 0; + a5 = 1; + return 26; + } else if(((a12==8)&&(((a22==1)&&(((!(a4==1)&&(((a5==1)&&((a18==1)&&(!(a15==1)&&((a27==1)&&(input==5)))))&&(a3==8)))&&(a20==1))&&!(a6==1)))&&!(a0==1)))){ + a15 = 1; + a0 = 1; + a4 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if(((a12==12)&&((a0==1)&&((((a4==1)&&(((a20==1)&&((a3==5)&&((a5==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==3)))))&&!(a27==1)))&&(a15==1))&&(a6==1))))){ + a12 = 11; + a27 = 1; + a18 = 1; + a22 = 0; + return 26; + } else if(((((!(a15==1)&&(!(a0==1)&&(((((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==3))&&!(a6==1))&&(a27==1))&&(a4==1))))&&(a20==1))&&(a12==10))&&!(a5==1))){ + a15 = 1; + a5 = 1; + a12 = 12; + a3 = 4; + a18 = 0; + a22 = 1; + a0 = 1; + return 26; + } else if(((!(a27==1)&&(((((a12==10)&&((!(a15==1)&&((((input==2)&&(a18==1))&&(a3==8))&&!(a6==1)))&&(a20==1)))&&(a0==1))&&(a5==1))&&(a22==1)))&&!(a4==1))){ + a18 = 0; + a3 = 7; + a5 = 0; + a27 = 1; + a15 = 1; + return 21; + } else if((((!(a27==1)&&((((a0==1)&&((a15==1)&&((((((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1))))||((a3==5)&&(!(a18==1)&&(a22==1))))&&(input==4))&&(a4==1))))&&(a5==1))&&!(a6==1)))&&(a12==11))&&(a20==1))){ + a12 = 8; + a18 = 1; + a22 = 1; + a6 = 1; + a27 = 1; + a3 = 4; + return -1; + } else if(((a4==1)&&(((((a12==8)&&(!(a6==1)&&((!(a27==1)&&((input==6)&&(((a3==7)&&((a22==1)&&(a18==1)))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==6))))))&&(a15==1))))&&!(a5==1))&&(a20==1))&&!(a0==1)))){ + a5 = 1; + a3 = 4; + a27 = 1; + a0 = 1; + a6 = 1; + a22 = 1; + a18 = 0; + a4 = 0; + return -1; + } else if(((a20==1)&&(((a12==9)&&((a27==1)&&(((a6==1)&&((a0==1)&&((a4==1)&&(!(a5==1)&&(!(a18==1)&&((a3==7)&&(input==4)))))))&&(a22==1))))&&(a15==1)))){ + a15 = 0; + a22 = 0; + a12 = 8; + a5 = 1; + a18 = 1; + a3 = 4; + a27 = 0; + a6 = 0; + return 24; + } else if(((a12==11)&&((a22==1)&&(!(a15==1)&&((((((!(a0==1)&&(((input==1)&&(a27==1))&&!(a18==1)))&&(a3==4))&&(a20==1))&&(a5==1))&&(a4==1))&&(a6==1)))))){ + if((a0==1)){ + a22 = 0; + a4 = 0; + a5 = 0; + a3 = 6; + }else{ + a12 = 10; + a0 = 1; + a3 = 8; + a15 = 1; + a6 = 0; + } + return 24; + } else if((((((a18==1)&&((((a3==6)&&((a12==12)&&(!(a27==1)&&((a5==1)&&(!(a15==1)&&(input==2))))))&&(a6==1))&&!(a4==1)))&&(a20==1))&&(a0==1))&&(a22==1))){ + a3 = 4; + a4 = 1; + a15 = 1; + a12 = 8; + a27 = 1; + return -1; + } else if((((((((!(a5==1)&&(((a0==1)&&(((a20==1)&&(input==3))&&!(a4==1)))&&(a3==6)))&&!(a18==1))&&!(a6==1))&&!(a15==1))&&(a12==10))&&!(a27==1))&&(a22==1))){ + a15 = 1; + a3 = 4; + a4 = 1; + a27 = 1; + a5 = 1; + return 21; + } else if(((a3==7)&&(((a5==1)&&(((a0==1)&&(((a15==1)&&((((input==6)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a20==1))&&(a4==1)))&&(a12==11)))&&(a6==1)))&&!(a27==1)))){ + a3 = 6; + a18 = 1; + a4 = 0; + a22 = 0; + return 26; + } else if(((!(a18==1)&&((!(a15==1)&&((a20==1)&&(!(a6==1)&&((a0==1)&&((!(a27==1)&&(!(a5==1)&&((input==1)&&(a3==8))))&&(a12==8))))))&&!(a4==1)))&&!(a22==1))){ + a6 = 1; + a18 = 1; + a27 = 1; + a3 = 4; + a5 = 1; + a4 = 1; + a15 = 1; + a22 = 1; + return -1; + } else if((!(a4==1)&&((a15==1)&&((a20==1)&&((a12==12)&&(((a27==1)&&(((((((a18==1)||!(a18==1))&&(input==4))&&(a6==1))&&(a3==8))&&(a5==1))&&!(a22==1)))&&(a0==1))))))){ + a12 = 10; + a15 = 0; + a18 = 1; + a3 = 7; + a4 = 1; + return -1; + } else if(((a20==1)&&(((((!(a0==1)&&((((a5==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==3)))&&!(a6==1))&&(a15==1)))&&(a4==1))&&(a12==8))&&(a3==4))&&!(a27==1)))){ + a0 = 1; + a6 = 1; + a18 = 1; + a27 = 1; + a22 = 0; + return 26; + } else if(((a12==9)&&(!(a4==1)&&(((!(a6==1)&&(((a3==4)&&((((input==5)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&!(a15==1))&&(a5==1)))&&!(a0==1)))&&(a20==1))&&(a27==1))))){ + a0 = 1; + a5 = 0; + a18 = 0; + a12 = 10; + a6 = 1; + a3 = 8; + a22 = 0; + return 26; + } else if((((a0==1)&&((a5==1)&&((a20==1)&&(((!(a6==1)&&((((!(a15==1)&&(input==1))&&(a18==1))&&(a27==1))&&(a12==12)))&&!(a22==1))&&(a3==4)))))&&!(a4==1))){ + a22 = 1; + a4 = 1; + a15 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if((((a4==1)&&((((a6==1)&&((a20==1)&&(((((input==2)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&(a15==1))&&!(a27==1))&&(a0==1))))&&!(a5==1))&&(a12==8)))&&(a3==5))){ + a15 = 0; + a18 = 0; + a22 = 1; + a3 = 7; + a0 = 0; + a27 = 1; + return -1; + } else if(((a12==11)&&(((a5==1)&&((!(a0==1)&&(((a3==7)&&((a20==1)&&(!(a4==1)&&((input==2)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))))&&(a6==1)))&&(a27==1)))&&(a15==1)))){ + a4 = 1; + a6 = 0; + a15 = 0; + a0 = 1; + a12 = 10; + a22 = 1; + a18 = 1; + return 26; + } else if(((((a27==1)&&(!(a6==1)&&((a12==9)&&((a15==1)&&((a20==1)&&((!(a4==1)&&(((input==3)&&(a3==5))&&(a5==1)))&&!(a0==1)))))))&&(a22==1))&&(a18==1))){ + a0 = 1; + a4 = 1; + a22 = 0; + a27 = 0; + a3 = 4; + a12 = 11; + a6 = 1; + return 21; + } else if((((!(a4==1)&&((!(a5==1)&&((((a27==1)&&(((input==2)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&(a20==1)))&&(a12==10))&&(a3==7)))&&(a15==1)))&&!(a6==1))&&!(a0==1))){ + a12 = 12; + a22 = 0; + a4 = 1; + a6 = 1; + a0 = 1; + a5 = 1; + a18 = 0; + a27 = 0; + return 26; + } else if(((!(a15==1)&&((!(a27==1)&&(!(a0==1)&&((a12==8)&&((input==5)&&(((((a4==1)&&(!(a22==1)&&!(a18==1)))&&(a3==8))&&!(a6==1))||(((!(a4==1)&&((a22==1)&&(a18==1)))&&(a3==4))&&(a6==1)))))))&&!(a5==1)))&&(a20==1))){ + if((a3==5)){ + a15 = 1; + a4 = 1; + a6 = 0; + a5 = 1; + a22 = 1; + a27 = 1; + a18 = 1; + a3 = 8; + a0 = 1; + }else{ + a0 = 1; + a22 = 0; + a18 = 0; + a5 = 1; + a27 = 1; + a4 = 1; + a3 = 8; + a6 = 1; + a15 = 1; + } + return 26; + } else if(((((a20==1)&&((a3==4)&&(!(a15==1)&&((a18==1)&&(((a12==12)&&(!(a5==1)&&(((input==6)&&!(a4==1))&&!(a6==1))))&&!(a22==1))))))&&!(a0==1))&&(a27==1))){ + a3 = 6; + a5 = 1; + a22 = 1; + a4 = 1; + return 26; + } else if(((a6==1)&&(((a20==1)&&(((a12==9)&&(((((a4==1)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==1)))&&!(a0==1))&&!(a15==1))&&(a3==6)))&&!(a5==1)))&&(a27==1)))){ + if((a12==10)){ + a3 = 8; + a22 = 1; + a12 = 11; + a4 = 0; + a18 = 1; + a5 = 1; + }else{ + a18 = 1; + a5 = 1; + a3 = 7; + a27 = 0; + a4 = 0; + a12 = 10; + a0 = 1; + a15 = 1; + a22 = 1; + } + return 21; + } else if(((a3==7)&&(!(a0==1)&&(((a12==11)&&((a15==1)&&(((a20==1)&&((a22==1)&&((a5==1)&&(!(a6==1)&&(!(a18==1)&&(input==5))))))&&!(a27==1))))&&!(a4==1))))){ + if((a6==1)){ + a22 = 0; + a12 = 8; + a0 = 1; + a6 = 1; + a27 = 1; + }else{ + a3 = 5; + a27 = 1; + a12 = 8; + a4 = 1; + a18 = 1; + a0 = 1; + } + return -1; + } else if(((a0==1)&&(((((a20==1)&&(((!(a27==1)&&(!(a6==1)&&((input==6)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))))&&(a5==1))&&(a3==4)))&&(a12==9))&&(a15==1))&&(a4==1)))){ + a15 = 0; + a4 = 0; + a5 = 0; + a18 = 1; + a6 = 1; + a3 = 5; + a22 = 1; + a12 = 8; + return -1; + } else if((!(a0==1)&&(((((a3==7)&&((!(a27==1)&&(((!(a15==1)&&((input==2)&&(a20==1)))&&!(a22==1))&&!(a18==1)))&&!(a6==1)))&&!(a4==1))&&(a12==11))&&!(a5==1)))){ + a12 = 8; + a5 = 1; + a22 = 1; + a6 = 1; + a3 = 6; + a27 = 1; + a15 = 1; + a0 = 1; + return 26; + } else if(((((((a0==1)&&((!(a4==1)&&((a12==9)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==4))&&(a20==1))))&&(a3==5)))&&(a6==1))&&!(a5==1))&&(a15==1))&&!(a27==1))){ + a22 = 0; + a18 = 1; + a3 = 4; + return -1; + } else if(((!(a4==1)&&((((a15==1)&&((a20==1)&&((((((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4))))||(!(a6==1)&&((a3==4)&&((a22==1)&&!(a18==1)))))&&(input==5))&&!(a0==1))))&&(a5==1))&&(a12==8)))&&(a27==1))){ + a6 = 1; + a5 = 0; + a12 = 9; + a3 = 5; + a18 = 0; + a22 = 1; + return 26; + } else if((!(a5==1)&&(!(a6==1)&&((a12==8)&&((((a20==1)&&((((a3==6)&&(!(a4==1)&&((input==3)&&((a18==1)||!(a18==1)))))&&(a27==1))&&!(a22==1)))&&(a15==1))&&(a0==1)))))){ + a3 = 7; + a22 = 1; + a4 = 1; + a12 = 10; + a6 = 1; + a18 = 1; + return 21; + } else if(((a3==5)&&(!(a18==1)&&((a12==11)&&((((a5==1)&&((a20==1)&&((a0==1)&&(((a6==1)&&((input==4)&&!(a27==1)))&&!(a4==1)))))&&(a15==1))&&(a22==1)))))){ + a27 = 1; + a18 = 1; + a12 = 12; + return 26; + } else if(((((a22==1)&&(((a6==1)&&(!(a15==1)&&((a20==1)&&(!(a5==1)&&((((input==4)&&((a18==1)||!(a18==1)))&&(a3==4))&&(a27==1))))))&&(a12==11)))&&!(a0==1))&&(a4==1))){ + a4 = 0; + a0 = 1; + a18 = 0; + a5 = 1; + a22 = 0; + a15 = 1; + return 21; + } else if((((((((!(a27==1)&&(!(a4==1)&&(((((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a22==1)&&(a18==1))))||(((a22==1)&&!(a18==1))&&(a3==6)))&&(input==3))))&&(a0==1))&&!(a15==1))&&!(a5==1))&&(a12==11))&&(a6==1))&&(a20==1))){ + a22 = 0; + a6 = 0; + a4 = 1; + a3 = 8; + a18 = 0; + a15 = 1; + a12 = 12; + return -1; + } else if(((a5==1)&&((!(a4==1)&&(((a15==1)&&(!(a27==1)&&(((a12==10)&&((a22==1)&&((((a18==1)||!(a18==1))&&(input==5))&&(a3==7))))&&!(a0==1))))&&(a6==1)))&&(a20==1)))){ + if((a22==1)){ + a12 = 8; + a27 = 1; + a22 = 0; + a0 = 1; + a3 = 8; + a18 = 1; + a4 = 1; + }else{ + a3 = 6; + a0 = 1; + a12 = 8; + a5 = 0; + a18 = 0; + a6 = 0; + } + return -1; + } else if((!(a5==1)&&(((a0==1)&&(((a27==1)&&(((a12==8)&&((a20==1)&&((a3==4)&&((a22==1)&&(!(a15==1)&&(input==3))))))&&(a4==1)))&&(a18==1)))&&!(a6==1)))){ + a4 = 0; + a18 = 0; + a3 = 5; + a12 = 10; + a22 = 0; + return 21; + } else if((((((a12==9)&&(((a20==1)&&(!(a15==1)&&(((input==2)&&(((a3==6)&&((a22==1)&&!(a18==1)))||(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))))&&!(a5==1))))&&!(a4==1)))&&!(a6==1))&&(a27==1))&&!(a0==1))){ + a5 = 1; + a18 = 1; + a15 = 1; + a22 = 1; + a6 = 1; + a12 = 8; + a0 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if(((((a12==12)&&(!(a4==1)&&((((((((a3==8)&&((a22==1)&&!(a18==1)))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8))))&&(input==5))&&(a6==1))&&!(a15==1))&&(a20==1))&&(a0==1))))&&(a5==1))&&!(a27==1))){ + a12 = 8; + a22 = 1; + a18 = 0; + a5 = 0; + a3 = 7; + return -1; + } else if((((((a6==1)&&(((((!(a27==1)&&((a0==1)&&((input==1)&&!(a5==1))))&&(a15==1))&&(a4==1))&&!(a22==1))&&(a3==4)))&&(a20==1))&&(a18==1))&&(a12==12))){ + a27 = 1; + a12 = 8; + a5 = 1; + a22 = 1; + return -1; + } else if(((a27==1)&&((!(a0==1)&&((a12==11)&&((!(a6==1)&&(((((input==5)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a4==1))&&(a5==1))&&(a3==5)))&&(a20==1))))&&(a15==1)))){ + a6 = 1; + a3 = 6; + a18 = 1; + a0 = 1; + a4 = 0; + a22 = 0; + return 21; + } else if(((a3==4)&&((a5==1)&&(!(a6==1)&&((!(a0==1)&&((((a27==1)&&(!(a22==1)&&(((input==4)&&(a12==8))&&(a18==1))))&&!(a15==1))&&!(a4==1)))&&(a20==1)))))){ + a22 = 1; + a15 = 1; + a4 = 1; + a0 = 1; + a6 = 1; + return -1; + } else if(((!(a15==1)&&((a20==1)&&(!(a27==1)&&((!(a18==1)&&((!(a22==1)&&((a5==1)&&(((a4==1)&&(input==4))&&(a3==4))))&&!(a0==1)))&&(a12==11)))))&&!(a6==1))){ + if((a12==8)){ + a0 = 1; + a22 = 1; + a12 = 8; + a27 = 1; + a15 = 1; + a3 = 6; + }else{ + a3 = 7; + a18 = 1; + a5 = 0; + a0 = 1; + a15 = 1; + } + return -1; + } else if(((!(a5==1)&&((a0==1)&&((a20==1)&&(!(a4==1)&&((a27==1)&&((a3==6)&&((((input==6)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&(a12==12))&&(a15==1))))))))&&(a6==1))){ + a18 = 0; + a3 = 5; + a6 = 0; + a15 = 0; + a12 = 10; + a5 = 1; + a22 = 1; + a4 = 1; + return 21; + } else if((((!(a18==1)&&(!(a27==1)&&(!(a5==1)&&((!(a22==1)&&((!(a15==1)&&((a4==1)&&((a20==1)&&(input==6))))&&(a3==7)))&&(a0==1)))))&&(a12==12))&&(a6==1))){ + if((a5==1)){ + a27 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + a0 = 0; + a22 = 1; + }else{ + a12 = 8; + a6 = 0; + a4 = 0; + a3 = 8; + } + return 26; + } else if((((!(a4==1)&&((a0==1)&&(!(a22==1)&&(((((a20==1)&&(((input==4)&&!(a6==1))&&!(a15==1)))&&(a3==8))&&(a27==1))&&(a12==8)))))&&(a5==1))&&!(a18==1))){ + a3 = 4; + a5 = 0; + a18 = 1; + a6 = 1; + a15 = 1; + a12 = 9; + return 26; + } else if((((!(a4==1)&&((!(a27==1)&&(!(a0==1)&&(((a20==1)&&((input==6)&&(((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1))))))&&!(a15==1))))&&!(a5==1)))&&(a12==11))&&(a6==1))){ + a6 = 0; + a27 = 1; + a18 = 1; + a12 = 8; + a15 = 1; + a0 = 1; + a4 = 1; + a3 = 5; + a22 = 1; + a5 = 1; + return 26; + } else if(((!(a15==1)&&(!(a18==1)&&((!(a22==1)&&((a4==1)&&((a3==7)&&((((a12==8)&&(!(a5==1)&&(input==1)))&&!(a27==1))&&(a0==1)))))&&(a20==1))))&&(a6==1))){ + a18 = 1; + a5 = 1; + a12 = 12; + a15 = 1; + a3 = 5; + a0 = 0; + a27 = 1; + a22 = 1; + return -1; + } else if((((a15==1)&&(!(a22==1)&&(!(a27==1)&&((a0==1)&&((a3==4)&&((a4==1)&&((a12==8)&&(((((a18==1)||!(a18==1))&&(input==2))&&(a5==1))&&(a20==1)))))))))&&(a6==1))){ + a3 = 5; + a12 = 10; + a27 = 1; + a15 = 0; + a22 = 1; + a18 = 0; + return 26; + } else if((((((a3==7)&&(!(a0==1)&&(!(a27==1)&&(!(a6==1)&&(!(a15==1)&&((!(a18==1)&&((input==2)&&(a4==1)))&&(a20==1)))))))&&(a12==11))&&(a5==1))&&!(a22==1))){ + if((a6==1)){ + a3 = 5; + a12 = 10; + }else{ + a0 = 1; + a15 = 1; + a3 = 5; + a22 = 1; + a12 = 8; + a27 = 1; + } + return -1; + } else if((!(a6==1)&&((a20==1)&&((a5==1)&&(!(a0==1)&&(!(a18==1)&&(((((a12==12)&&(((a4==1)&&(input==5))&&(a3==6)))&&(a22==1))&&(a27==1))&&(a15==1)))))))){ + a12 = 8; + a6 = 1; + a3 = 4; + a0 = 1; + a18 = 1; + return -1; + } else if((!(a0==1)&&(!(a4==1)&&(!(a5==1)&&(((a3==6)&&((a15==1)&&((((!(a22==1)&&((input==3)&&!(a6==1)))&&(a12==9))&&!(a27==1))&&(a18==1))))&&(a20==1)))))){ + if((a15==1)){ + a0 = 1; + a12 = 8; + a22 = 1; + a6 = 1; + a27 = 1; + a5 = 1; + }else{ + a4 = 1; + a0 = 1; + a3 = 7; + a12 = 8; + a27 = 1; + a5 = 1; + a18 = 0; + a22 = 1; + a6 = 1; + } + return -1; + } else if(((a4==1)&&((a27==1)&&((((a3==5)&&(!(a6==1)&&((a0==1)&&(((((input==5)&&(a12==12))&&!(a15==1))&&(a5==1))&&!(a22==1)))))&&!(a18==1))&&(a20==1))))){ + a22 = 1; + a12 = 8; + a6 = 1; + a3 = 4; + a15 = 1; + a18 = 1; + return -1; + } else if((((a22==1)&&((a12==8)&&(!(a18==1)&&((!(a4==1)&&((((!(a27==1)&&((input==2)&&!(a0==1)))&&(a3==8))&&(a6==1))&&(a5==1)))&&!(a15==1)))))&&(a20==1))){ + if((a5==1)){ + a4 = 1; + a0 = 1; + a27 = 1; + a15 = 1; + a3 = 7; + }else{ + a0 = 1; + a6 = 0; + a22 = 0; + a18 = 1; + a3 = 6; + } + return 26; + } else if((((a5==1)&&((((((a6==1)&&(((input==1)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==6))))&&!(a0==1)))&&!(a15==1))&&(a12==8))&&(a27==1))&&!(a4==1)))&&(a20==1))){ + a0 = 1; + a6 = 0; + a22 = 0; + a15 = 1; + a18 = 0; + a12 = 12; + a3 = 5; + return -1; + } else if((((a20==1)&&(!(a27==1)&&(!(a4==1)&&(((a12==9)&&((((!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1))))||(((a6==1)&&((!(a22==1)&&(a18==1))&&(a3==8)))||((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))))&&(input==6))&&(a5==1)))&&!(a0==1)))))&&(a15==1))){ + a27 = 1; + a15 = 0; + a3 = 6; + a22 = 1; + a6 = 1; + a18 = 1; + return 21; + } else if((((a0==1)&&(((((!(a6==1)&&((((!(a22==1)&&(input==4))&&(a4==1))&&!(a27==1))&&(a12==12)))&&!(a15==1))&&(a5==1))&&(a18==1))&&(a3==8)))&&(a20==1))){ + a27 = 1; + a12 = 8; + a3 = 4; + a6 = 1; + a15 = 1; + a22 = 1; + return -1; + } else if(((a27==1)&&((((a20==1)&&((input==6)&&(((a6==1)&&((a3==4)&&((a4==1)&&((((a22==1)&&(a18==1))&&!(a5==1))&&(a15==1)))))||((((a3==8)&&(!(a4==1)&&(!(a15==1)&&((a5==1)&&(!(a22==1)&&(a18==1))))))&&!(a6==1))||(!(a6==1)&&((!(a4==1)&&(((a5==1)&&(!(a22==1)&&!(a18==1)))&&!(a15==1)))&&(a3==8)))))))&&(a12==12))&&!(a0==1)))){ + if((a22==1)){ + a18 = 1; + a5 = 1; + a0 = 1; + a22 = 1; + a6 = 1; + a3 = 7; + a4 = 1; + a12 = 8; + a15 = 1; + }else{ + a3 = 8; + a6 = 1; + a4 = 1; + a22 = 1; + a12 = 8; + a18 = 1; + a0 = 1; + a5 = 1; + a15 = 1; + } + return -1; + } else if((((a20==1)&&(((a4==1)&&((((a12==10)&&((input==6)&&((((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1))||(((a6==1)&&((a3==8)&&((a18==1)&&!(a22==1))))||((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))))))&&!(a15==1))&&!(a5==1)))&&!(a27==1)))&&!(a0==1))){ + a15 = 1; + a3 = 6; + a0 = 1; + a12 = 8; + a5 = 1; + a22 = 1; + a18 = 1; + a6 = 0; + a27 = 1; + return 21; + } else if((((a0==1)&&((a20==1)&&((a6==1)&&(((!(a15==1)&&((!(a5==1)&&((input==1)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a12==8)))&&(a3==6))&&!(a4==1)))))&&(a27==1))){ + a5 = 1; + a3 = 5; + a22 = 1; + a12 = 11; + a18 = 1; + return 26; + } else if((!(a5==1)&&(((a20==1)&&((a15==1)&&((((a3==6)&&(!(a6==1)&&((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==1))&&!(a27==1))))&&(a12==8))&&!(a0==1))))&&!(a4==1)))){ + a18 = 0; + a0 = 1; + a5 = 1; + a27 = 1; + a22 = 1; + a6 = 1; + a3 = 7; + return 21; + } else if(((!(a27==1)&&((a12==10)&&(!(a5==1)&&((a15==1)&&((a20==1)&&(((a4==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))||((a3==5)&&(!(a18==1)&&(a22==1))))&&(input==2)))&&!(a0==1)))))))&&(a6==1))){ + if((a22==1)){ + a6 = 0; + a27 = 1; + a18 = 1; + a12 = 8; + a0 = 1; + a5 = 1; + a22 = 0; + a3 = 5; + }else{ + a18 = 1; + a3 = 5; + a22 = 0; + a6 = 0; + a12 = 8; + a27 = 1; + } + return -1; + } else if(((((((a27==1)&&(((!(a6==1)&&(((a4==1)&&(!(a18==1)&&(input==2)))&&(a3==8)))&&(a0==1))&&(a5==1)))&&(a12==10))&&!(a15==1))&&(a20==1))&&(a22==1))){ + a18 = 1; + a5 = 0; + a3 = 5; + a15 = 1; + a6 = 1; + a12 = 11; + a4 = 0; + a0 = 0; + return 26; + } else if((!(a4==1)&&(!(a27==1)&&((a12==12)&&((a5==1)&&((((((input==4)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1))))||((a3==7)&&(!(a18==1)&&(a22==1)))))&&(a20==1))&&(a15==1))&&(a0==1))&&(a6==1))))))){ + a4 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + a27 = 1; + a18 = 1; + return -1; + } else if((((a20==1)&&((a4==1)&&(((a12==12)&&(!(a0==1)&&(!(a15==1)&&((a3==6)&&((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==5))&&(a5==1))))))&&(a6==1))))&&(a27==1))){ + a12 = 8; + a18 = 1; + a22 = 1; + a0 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if(((((!(a0==1)&&((a5==1)&&((((a27==1)&&(((a12==12)&&((input==1)&&((a18==1)||!(a18==1))))&&(a6==1)))&&(a15==1))&&(a4==1))))&&(a20==1))&&(a22==1))&&(a3==5))){ + a0 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((a6==1)&&(!(a27==1)&&((!(a4==1)&&(!(a0==1)&&(!(a18==1)&&((((a20==1)&&(((a22==1)&&(input==1))&&(a3==6)))&&(a12==8))&&(a15==1)))))&&(a5==1))))){ + a5 = 0; + a3 = 4; + a22 = 0; + a18 = 1; + a27 = 1; + a0 = 1; + a6 = 0; + return 26; + } else if(((a4==1)&&(!(a27==1)&&(((((a22==1)&&(!(a5==1)&&((a12==10)&&(((((a18==1)||!(a18==1))&&(input==3))&&(a6==1))&&(a3==6)))))&&!(a15==1))&&(a0==1))&&(a20==1))))){ + if((a27==1)){ + a3 = 4; + a18 = 1; + a0 = 0; + a22 = 0; + a4 = 0; + a27 = 1; + }else{ + a3 = 4; + a12 = 11; + a18 = 1; + a27 = 1; + } + return 21; + } else if(((!(a15==1)&&(((((a20==1)&&((((((a3==6)&&((a22==1)&&!(a18==1)))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6))))&&(input==5))&&(a4==1))&&(a0==1)))&&(a5==1))&&!(a6==1))&&(a12==9)))&&(a27==1))){ + a18 = 0; + a15 = 1; + a3 = 7; + a22 = 1; + a5 = 0; + a6 = 1; + a12 = 11; + return 21; + } else if(((((a12==10)&&((a20==1)&&(((((input==4)&&((((a6==1)&&((!(a22==1)&&(a18==1))&&(a3==8)))||(((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1)))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4)))))&&(a0==1))&&(a4==1))&&!(a5==1))))&&!(a15==1))&&!(a27==1))){ + a18 = 1; + a15 = 1; + a27 = 1; + a5 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + a6 = 1; + return -1; + } else if((((a6==1)&&(!(a4==1)&&(((((a20==1)&&((((a3==4)&&((input==1)&&!(a22==1)))&&!(a18==1))&&(a27==1)))&&(a15==1))&&(a5==1))&&(a12==10))))&&(a0==1))){ + a3 = 7; + a5 = 0; + a12 = 9; + a27 = 0; + a18 = 1; + a6 = 0; + a22 = 1; + a4 = 1; + return 26; + } else if(((((a4==1)&&((a3==6)&&(!(a5==1)&&(!(a27==1)&&(((a6==1)&&(((input==2)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&(a20==1)))&&(a12==8))))))&&!(a15==1))&&!(a0==1))){ + a6 = 0; + a5 = 1; + a12 = 10; + a3 = 4; + a18 = 1; + a22 = 1; + return -1; + } else if(((a3==7)&&((a27==1)&&(((a6==1)&&(!(a15==1)&&((a12==8)&&((a20==1)&&((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==5))&&(a5==1))&&(a4==1))))))&&(a0==1))))){ + a15 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((((((a20==1)&&((((((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==1))&&(a15==1))&&!(a6==1))&&!(a4==1))&&(a0==1))&&(a5==1)))&&(a12==12))&&(a27==1))&&(a3==5))){ + a5 = 0; + a22 = 1; + a4 = 1; + a3 = 7; + a12 = 11; + a18 = 1; + return 24; + } else if((((a20==1)&&((a15==1)&&(((((((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==6))&&!(a4==1))&&!(a6==1))&&!(a27==1))&&(a12==11))&&!(a0==1))&&!(a5==1))))&&(a3==5))){ + a5 = 1; + a12 = 8; + a0 = 1; + a3 = 7; + a27 = 1; + a22 = 0; + a4 = 1; + a18 = 1; + a6 = 1; + return -1; + } else if((!(a0==1)&&(((a18==1)&&(((a5==1)&&((!(a6==1)&&((!(a27==1)&&(((a20==1)&&(input==3))&&(a15==1)))&&(a3==4)))&&(a22==1)))&&!(a4==1)))&&(a12==11)))){ + a0 = 1; + a6 = 1; + a27 = 1; + a3 = 7; + a18 = 0; + a12 = 8; + a22 = 0; + return 21; + } else if(((((a4==1)&&(((a0==1)&&((a3==6)&&(((((a5==1)&&(!(a22==1)&&(input==4)))&&(a20==1))&&(a6==1))&&!(a27==1))))&&!(a18==1)))&&(a12==11))&&(a15==1))){ + a4 = 0; + a12 = 10; + a18 = 1; + a3 = 5; + return 21; + } else if((((a20==1)&&(!(a15==1)&&(((a12==8)&&(!(a5==1)&&(!(a6==1)&&(((a27==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==4)))&&!(a4==1)))))&&(a3==8))))&&!(a0==1))){ + a6 = 1; + a3 = 7; + a12 = 9; + a4 = 1; + a18 = 0; + a22 = 1; + a0 = 1; + a27 = 0; + return 26; + } else if((((((a0==1)&&((a27==1)&&((!(a15==1)&&(((a20==1)&&(((a4==1)&&(input==2))&&!(a22==1)))&&(a12==8)))&&(a18==1))))&&(a5==1))&&(a6==1))&&(a3==8))){ + a3 = 6; + a5 = 0; + a15 = 1; + a22 = 1; + a4 = 0; + a6 = 0; + return 21; + } return calculate_output52(input); + } + + int calculate_output52(int input) { + if(((!(a15==1)&&(((a4==1)&&(!(a27==1)&&((a20==1)&&((((!(a6==1)&&((a3==4)&&(!(a18==1)&&(a22==1))))||((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))))&&(input==3))&&(a0==1)))))&&(a12==8)))&&!(a5==1))){ + a15 = 1; + a3 = 8; + a4 = 0; + a22 = 0; + a6 = 0; + a5 = 1; + a18 = 1; + a27 = 1; + a12 = 11; + return 24; + } else if((!(a4==1)&&((a6==1)&&((a27==1)&&((a12==8)&&(!(a5==1)&&(!(a15==1)&&((a20==1)&&(((((a3==5)&&((a22==1)&&!(a18==1)))||(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5))))&&(input==2))&&(a0==1)))))))))){ + a5 = 1; + a22 = 1; + a12 = 11; + a18 = 0; + a4 = 1; + a3 = 8; + return 21; + } else if(((!(a22==1)&&((a0==1)&&((a20==1)&&(((a3==6)&&((!(a6==1)&&(!(a4==1)&&((a12==9)&&((input==4)&&((a18==1)||!(a18==1))))))&&(a15==1)))&&!(a27==1)))))&&!(a5==1))){ + a6 = 1; + a5 = 1; + a15 = 0; + a12 = 8; + a18 = 1; + a4 = 1; + a3 = 7; + return 21; + } else if(((a3==4)&&(!(a4==1)&&((a15==1)&&(((a0==1)&&((a22==1)&&((a20==1)&&((((a6==1)&&((input==4)&&!(a18==1)))&&(a27==1))&&(a12==10)))))&&(a5==1)))))){ + if((a15==1)){ + a22 = 0; + a3 = 5; + a15 = 0; + a4 = 1; + a12 = 9; + a0 = 0; + }else{ + a0 = 0; + a5 = 0; + a12 = 9; + a22 = 0; + a3 = 6; + a6 = 0; + } + return 26; + } else if(((a12==11)&&(!(a5==1)&&((a27==1)&&(((!(a6==1)&&((a0==1)&&((((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6)))||((!(a18==1)&&(a22==1))&&(a3==6)))&&(input==2))&&!(a15==1))))&&(a20==1))&&!(a4==1)))))){ + a12 = 8; + a4 = 1; + a6 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + a15 = 1; + a5 = 1; + return -1; + } else if((((a20==1)&&(((a12==11)&&(((a4==1)&&(!(a0==1)&&((a27==1)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==1)))))&&(a6==1)))&&(a15==1)))&&!(a5==1))){ + a12 = 8; + a5 = 1; + a18 = 1; + a22 = 1; + a3 = 4; + a0 = 1; + return -1; + } else if(((a4==1)&&(((!(a27==1)&&((a12==9)&&((((a0==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==6))&&!(a6==1)))&&(a3==6))&&!(a15==1))))&&(a5==1))&&(a20==1)))){ + a4 = 0; + a5 = 0; + a3 = 4; + a22 = 0; + a18 = 0; + a12 = 8; + a15 = 1; + return 21; + } else if(((((a4==1)&&(!(a15==1)&&((a18==1)&&((a3==6)&&(!(a22==1)&&((a6==1)&&(!(a27==1)&&((a0==1)&&((input==2)&&!(a5==1))))))))))&&(a12==11))&&(a20==1))){ + a12 = 9; + a3 = 5; + return -1; + } else if(((((!(a0==1)&&(((a4==1)&&((a15==1)&&((a12==12)&&(!(a18==1)&&((a5==1)&&((input==6)&&!(a22==1)))))))&&(a3==4)))&&(a20==1))&&(a27==1))&&(a6==1))){ + a3 = 6; + a5 = 0; + a0 = 1; + a12 = 10; + a18 = 1; + a6 = 0; + return -1; + } else if(((a3==7)&&((a22==1)&&(((a12==8)&&(((a6==1)&&((a0==1)&&((a27==1)&&(!(a4==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a15==1))))))&&!(a5==1)))&&(a20==1))))){ + a22 = 0; + a15 = 0; + a3 = 6; + a18 = 0; + a5 = 1; + a4 = 1; + a12 = 10; + return 21; + } else if((((((!(a6==1)&&((((!(a15==1)&&((a12==11)&&((input==1)&&(a22==1))))&&(a0==1))&&(a27==1))&&(a4==1)))&&(a20==1))&&(a5==1))&&!(a18==1))&&(a3==5))){ + a6 = 1; + a12 = 8; + a15 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((!(a15==1)&&((a6==1)&&((((!(a4==1)&&(!(a0==1)&&((((input==1)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a12==10))&&(a5==1))))&&(a3==4))&&(a20==1))&&(a27==1))))){ + a3 = 8; + a27 = 0; + a5 = 0; + a15 = 1; + a6 = 0; + a22 = 1; + a18 = 1; + a0 = 1; + return 26; + } else if((!(a6==1)&&((((a5==1)&&(((a27==1)&&((!(a15==1)&&(!(a4==1)&&((input==2)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))))&&(a20==1)))&&(a3==7)))&&(a12==8))&&(a0==1)))){ + a22 = 1; + a4 = 1; + a15 = 1; + a12 = 9; + a5 = 0; + a18 = 1; + return 26; + } else if(((((((a12==12)&&(!(a4==1)&&(((a22==1)&&(((!(a0==1)&&(input==3))&&!(a18==1))&&(a6==1)))&&!(a5==1))))&&(a15==1))&&(a27==1))&&(a20==1))&&(a3==7))){ + a3 = 5; + a5 = 1; + a6 = 0; + a12 = 8; + a0 = 1; + a4 = 1; + return 26; + } else if((!(a0==1)&&(((a3==7)&&((a12==11)&&(((a4==1)&&((a20==1)&&((a27==1)&&(((((a18==1)||!(a18==1))&&(input==3))&&(a22==1))&&(a15==1)))))&&!(a6==1))))&&!(a5==1)))){ + a6 = 1; + a5 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + a0 = 1; + return -1; + } else if(((a27==1)&&(((((a20==1)&&(((((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==1))&&!(a6==1))&&(a0==1))&&(a15==1)))&&!(a5==1))&&(a12==10))&&(a4==1)))){ + a6 = 1; + a0 = 0; + a3 = 7; + a18 = 1; + a5 = 1; + a22 = 0; + a4 = 0; + a12 = 8; + return -1; + } else if((!(a27==1)&&((((a12==11)&&(!(a4==1)&&(!(a6==1)&&(!(a0==1)&&((a5==1)&&((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==5))&&(a20==1)))))))&&(a3==4))&&(a15==1)))){ + a12 = 12; + a18 = 1; + a27 = 1; + a5 = 0; + a22 = 0; + a3 = 8; + return -1; + } else if(((((a6==1)&&(((a22==1)&&(((!(a15==1)&&((a4==1)&&(((input==1)&&(a27==1))&&!(a5==1))))&&(a0==1))&&(a20==1)))&&(a12==9)))&&(a3==4))&&(a18==1))){ + a6 = 0; + a18 = 0; + a22 = 0; + a3 = 5; + a12 = 8; + a4 = 0; + a5 = 1; + a15 = 1; + return 21; + } else if(((((a22==1)&&((a20==1)&&((!(a0==1)&&((a12==10)&&(((a3==6)&&((((a18==1)||!(a18==1))&&(input==1))&&!(a15==1)))&&(a5==1))))&&(a27==1))))&&!(a4==1))&&(a6==1))){ + a22 = 0; + a18 = 0; + a12 = 11; + a3 = 8; + a27 = 0; + a0 = 1; + return 21; + } else if(((a15==1)&&(((((a20==1)&&(((a12==12)&&(!(a4==1)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==6))))&&!(a27==1)))&&(a5==1))&&(a0==1))&&!(a6==1)))){ + a3 = 5; + a15 = 0; + a18 = 0; + a4 = 1; + a22 = 0; + a27 = 1; + return 26; + } else if((((a20==1)&&((a4==1)&&((!(a27==1)&&((a3==6)&&(((((a6==1)&&((input==3)&&!(a22==1)))&&(a0==1))&&(a18==1))&&(a5==1))))&&!(a15==1))))&&(a12==12))){ + a22 = 1; + a18 = 0; + a27 = 1; + a4 = 0; + a3 = 4; + a6 = 0; + a12 = 11; + return 21; + } else if(((a27==1)&&((!(a5==1)&&(!(a15==1)&&((!(a6==1)&&(((((a3==5)&&((a0==1)&&(input==3)))&&(a12==10))&&(a20==1))&&!(a4==1)))&&!(a22==1))))&&!(a18==1)))){ + a5 = 1; + a6 = 1; + a3 = 4; + a4 = 1; + a18 = 1; + a15 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if((((!(a5==1)&&((!(a0==1)&&((!(a15==1)&&(((input==2)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7))))&&(a20==1)))&&!(a6==1)))&&(a12==10)))&&(a27==1))&&(a4==1))){ + a4 = 0; + a22 = 1; + a3 = 4; + a0 = 1; + a27 = 0; + a12 = 11; + a18 = 1; + return 21; + } else if((((a12==11)&&(((((a15==1)&&(((a18==1)&&((a27==1)&&((a20==1)&&((a22==1)&&(input==4)))))&&(a5==1)))&&(a3==5))&&!(a4==1))&&!(a0==1)))&&!(a6==1))){ + a3 = 6; + a0 = 1; + a12 = 10; + a5 = 0; + return 21; + } else if(((a22==1)&&((a12==9)&&((((!(a4==1)&&(((((a15==1)&&((a5==1)&&(input==6)))&&!(a6==1))&&(a20==1))&&!(a27==1)))&&!(a18==1))&&!(a0==1))&&(a3==8))))){ + a0 = 1; + a18 = 1; + a27 = 1; + a22 = 0; + a3 = 5; + return 26; + } else if((((a0==1)&&((a4==1)&&((((a20==1)&&((((a3==8)&&((((a18==1)||!(a18==1))&&(input==4))&&!(a6==1)))&&!(a15==1))&&!(a22==1)))&&!(a5==1))&&!(a27==1))))&&(a12==9))){ + a18 = 1; + a12 = 10; + a15 = 1; + a6 = 1; + a22 = 1; + return 26; + } else if((!(a15==1)&&((a5==1)&&(!(a22==1)&&((!(a4==1)&&(((a20==1)&&(((a6==1)&&((a18==1)&&((a0==1)&&(input==6))))&&(a27==1)))&&(a3==8)))&&(a12==9)))))){ + a12 = 8; + a27 = 0; + a15 = 1; + a3 = 5; + return 24; + } else if((!(a5==1)&&((a6==1)&&((((!(a15==1)&&((!(a4==1)&&((input==6)&&((((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==5)))||(((a22==1)&&(a18==1))&&(a3==6)))))&&!(a0==1)))&&(a20==1))&&(a27==1))&&(a12==11))))){ + a0 = 1; + a22 = 1; + a18 = 0; + a6 = 0; + a12 = 10; + a5 = 1; + a3 = 8; + return 26; + } else if(((a12==11)&&((a5==1)&&((a6==1)&&((((((((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a27==1))&&(a4==1))&&!(a15==1))&&(a20==1))&&(a3==7))&&(a0==1)))))){ + a3 = 8; + a15 = 1; + a22 = 1; + a12 = 10; + a18 = 1; + a4 = 0; + return 21; + } else if(((a5==1)&&(!(a27==1)&&((a20==1)&&(((a0==1)&&(((((a18==1)&&(((a3==4)&&(input==1))&&(a4==1)))&&!(a6==1))&&(a12==10))&&(a15==1)))&&!(a22==1)))))){ + a22 = 1; + a27 = 1; + a18 = 0; + a3 = 8; + a4 = 0; + return 26; + } else if(((a3==8)&&(((a27==1)&&(!(a4==1)&&(((((a12==11)&&((a5==1)&&(!(a15==1)&&((a18==1)&&(input==2)))))&&(a6==1))&&(a0==1))&&!(a22==1))))&&(a20==1)))){ + a22 = 1; + a18 = 0; + return -1; + } else if(((a0==1)&&(!(a6==1)&&((a27==1)&&(((((a5==1)&&((((((a18==1)||!(a18==1))&&(input==5))&&(a20==1))&&(a15==1))&&!(a22==1)))&&(a12==12))&&!(a4==1))&&(a3==8)))))){ + a4 = 1; + a12 = 8; + a3 = 4; + a6 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((a3==5)&&((((((a27==1)&&((((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==2))&&(a20==1))&&!(a0==1))&&!(a4==1)))&&!(a15==1))&&!(a6==1))&&(a12==8))&&!(a5==1)))){ + a6 = 1; + a12 = 12; + a22 = 0; + a3 = 7; + a27 = 0; + a5 = 1; + a0 = 1; + a4 = 1; + a18 = 0; + return 21; + } else if(((a12==9)&&((a5==1)&&(!(a4==1)&&(!(a15==1)&&(((!(a22==1)&&((a18==1)&&(!(a0==1)&&((a20==1)&&((a6==1)&&(input==2))))))&&(a3==4))&&!(a27==1))))))){ + a18 = 0; + a4 = 1; + a12 = 8; + a0 = 1; + return 26; + } else if((((a12==10)&&((a5==1)&&((a22==1)&&(!(a0==1)&&(!(a18==1)&&((!(a15==1)&&(((!(a27==1)&&(input==3))&&(a3==4))&&(a4==1)))&&(a20==1)))))))&&!(a6==1))){ + if((a20==1)){ + a18 = 1; + a5 = 0; + a4 = 0; + a3 = 6; + a27 = 1; + a12 = 9; + a6 = 1; + }else{ + a18 = 1; + a5 = 0; + a4 = 0; + a3 = 6; + } + return 26; + } else if((!(a5==1)&&((a22==1)&&(((a27==1)&&(((((a20==1)&&((a3==8)&&(!(a0==1)&&((input==6)&&(a12==8)))))&&!(a4==1))&&!(a15==1))&&!(a18==1)))&&(a6==1))))){ + a15 = 1; + a3 = 4; + a18 = 1; + a5 = 1; + a4 = 1; + a0 = 1; + return -1; + } else if(((!(a6==1)&&(((((a20==1)&&((a12==8)&&((a3==8)&&(((input==5)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&!(a15==1)))))&&(a5==1))&&(a27==1))&&(a4==1)))&&!(a0==1))){ + a18 = 0; + a3 = 4; + a15 = 1; + a12 = 11; + a22 = 0; + a4 = 0; + a0 = 1; + return 21; + } else if(((a22==1)&&((a3==8)&&(((((!(a4==1)&&(((a5==1)&&((a27==1)&&((a20==1)&&(input==3))))&&!(a18==1)))&&!(a6==1))&&!(a0==1))&&!(a15==1))&&(a12==8))))){ + a18 = 1; + a15 = 1; + a4 = 1; + a12 = 9; + a5 = 0; + a3 = 7; + return 21; + } else if((((((a12==10)&&((a22==1)&&((a6==1)&&((!(a18==1)&&((((input==3)&&(a0==1))&&(a27==1))&&!(a15==1)))&&(a3==6)))))&&!(a5==1))&&(a4==1))&&(a20==1))){ + a3 = 4; + a5 = 1; + return -1; + } else if((!(a15==1)&&((a6==1)&&((!(a22==1)&&(((((((a0==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&!(a4==1))&&!(a27==1))&&(a3==4))&&(a12==9))&&(a20==1)))&&!(a5==1))))){ + a12 = 8; + a18 = 1; + a15 = 1; + a5 = 1; + a0 = 0; + a27 = 1; + return 26; + } else if((!(a18==1)&&(((((a3==5)&&((a6==1)&&((!(a22==1)&&((!(a27==1)&&(!(a0==1)&&(input==1)))&&(a20==1)))&&(a5==1))))&&(a12==8))&&!(a15==1))&&!(a4==1)))){ + if((a22==1)){ + a15 = 1; + a18 = 1; + a0 = 1; + a22 = 1; + a12 = 11; + a5 = 0; + a27 = 1; + }else{ + a4 = 1; + a15 = 1; + a27 = 1; + a3 = 8; + } + return 21; + } else if(((!(a4==1)&&(((a3==8)&&((a20==1)&&((!(a0==1)&&(((a22==1)&&((a12==8)&&((input==3)&&((a18==1)||!(a18==1)))))&&!(a6==1)))&&!(a15==1))))&&!(a27==1)))&&(a5==1))){ + if((a6==1)){ + a27 = 1; + a6 = 1; + a18 = 1; + a12 = 11; + }else{ + a27 = 1; + a15 = 1; + a18 = 0; + a3 = 5; + a4 = 1; + a6 = 1; + a0 = 1; + a22 = 0; + } + return 26; + } else if((((((a0==1)&&(!(a6==1)&&(!(a4==1)&&(!(a27==1)&&(((a3==4)&&((input==5)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a12==10))))))&&(a5==1))&&!(a15==1))&&(a20==1))){ + a18 = 0; + a12 = 9; + a4 = 1; + a22 = 0; + a3 = 7; + return -1; + } else if(((a3==7)&&((!(a0==1)&&((!(a4==1)&&(!(a6==1)&&(((a27==1)&&(!(a15==1)&&((((a18==1)||!(a18==1))&&(input==3))&&!(a22==1))))&&(a20==1))))&&(a12==10)))&&(a5==1)))){ + a5 = 0; + a18 = 1; + a15 = 1; + a4 = 1; + a12 = 11; + a22 = 1; + a6 = 1; + a0 = 1; + return 24; + } else if(((((((a4==1)&&(((!(a27==1)&&((a22==1)&&((((a18==1)||!(a18==1))&&(input==6))&&!(a6==1))))&&(a12==9))&&!(a15==1)))&&!(a5==1))&&(a3==8))&&(a0==1))&&(a20==1))){ + a27 = 1; + a3 = 7; + a12 = 11; + a15 = 1; + a18 = 1; + return -1; + } else if(((a22==1)&&((a18==1)&&((a27==1)&&(((a3==6)&&(((((a15==1)&&((a4==1)&&((input==4)&&(a0==1))))&&(a20==1))&&(a6==1))&&(a12==11)))&&(a5==1)))))){ + a12 = 8; + a3 = 4; + return -1; + } else if(((!(a27==1)&&(((a12==11)&&(((a18==1)&&((a3==7)&&(((a15==1)&&(((a5==1)&&(input==5))&&(a0==1)))&&(a20==1))))&&(a22==1)))&&!(a4==1)))&&(a6==1))){ + a12 = 8; + a6 = 0; + a22 = 0; + a4 = 1; + a18 = 0; + a3 = 8; + a15 = 0; + a5 = 0; + return 26; + } else if(((a0==1)&&((a15==1)&&((a20==1)&&((a3==4)&&(((!(a5==1)&&(((a4==1)&&((a12==8)&&((input==5)&&((a18==1)||!(a18==1)))))&&(a22==1)))&&(a27==1))&&(a6==1))))))){ + if((a12==11)){ + a12 = 10; + a4 = 0; + a22 = 0; + a3 = 5; + a0 = 0; + a5 = 1; + a15 = 0; + a18 = 1; + }else{ + a18 = 1; + a3 = 8; + a12 = 9; + a4 = 0; + a22 = 0; + } + return 21; + } else if(((a22==1)&&((!(a15==1)&&(((((a6==1)&&((a20==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&!(a4==1))&&(a12==8))))&&(a5==1))&&(a27==1))&&!(a0==1)))&&(a3==5)))){ + a4 = 1; + a15 = 1; + a18 = 0; + a12 = 10; + a22 = 0; + a0 = 1; + return 21; + } else if(((a12==8)&&(!(a18==1)&&(((a4==1)&&(((a20==1)&&(((a0==1)&&((((a3==4)&&(input==2))&&!(a5==1))&&!(a15==1)))&&!(a6==1)))&&(a27==1)))&&(a22==1))))){ + a12 = 11; + a22 = 0; + a0 = 0; + a4 = 0; + a5 = 1; + a18 = 1; + a3 = 6; + return 21; + } else if(((((!(a15==1)&&((a6==1)&&(!(a27==1)&&((a5==1)&&(((input==5)&&(((a3==6)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1))))))&&(a4==1))))))&&(a20==1))&&(a0==1))&&(a12==11))){ + a22 = 0; + a4 = 0; + a12 = 8; + a6 = 0; + a15 = 1; + a18 = 1; + a3 = 7; + return -1; + } else if(((a12==11)&&((((((a5==1)&&(!(a15==1)&&(!(a4==1)&&((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==4))&&(a20==1)))))&&(a6==1))&&(a27==1))&&(a3==5))&&!(a0==1)))){ + a4 = 1; + a0 = 1; + a15 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((a4==1)&&((a3==4)&&((((((a20==1)&&((a0==1)&&(((((a18==1)||!(a18==1))&&(input==1))&&(a5==1))&&(a22==1))))&&!(a27==1))&&(a12==11))&&!(a6==1))&&!(a15==1))))){ + a18 = 1; + a3 = 5; + a27 = 1; + a12 = 8; + a15 = 1; + a22 = 0; + return -1; + } else if(((a3==8)&&((!(a0==1)&&((((((a15==1)&&(((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==2))&&(a27==1)))&&(a12==9))&&!(a4==1))&&!(a6==1))&&!(a5==1)))&&(a20==1)))){ + a5 = 1; + a18 = 1; + a12 = 10; + a22 = 1; + a0 = 1; + a15 = 0; + return -1; + } else if(((((a5==1)&&((((((a3==4)&&((a22==1)&&(((input==1)&&(a15==1))&&(a12==8))))&&!(a0==1))&&!(a4==1))&&!(a18==1))&&(a20==1)))&&!(a27==1))&&!(a6==1))){ + a22 = 0; + a27 = 1; + a4 = 1; + a15 = 0; + a5 = 0; + a12 = 11; + a3 = 6; + return -1; + } else if(((a22==1)&&((a12==9)&&((!(a5==1)&&(!(a27==1)&&((((a3==4)&&(((a6==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a4==1)))&&(a20==1))&&!(a15==1))))&&!(a0==1))))){ + a4 = 0; + a15 = 1; + a5 = 1; + a0 = 1; + a18 = 1; + a27 = 1; + a3 = 6; + a12 = 8; + return 26; + } else if(((a20==1)&&((a15==1)&&((!(a5==1)&&((((input==6)&&((((a3==4)&&(!(a4==1)&&(!(a18==1)&&(a22==1))))&&(a6==1))||((!(a6==1)&&(((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8)))||(((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1)))&&(a6==1)))))&&(a12==10))&&(a0==1)))&&!(a27==1))))){ + a22 = 1; + a6 = 1; + a3 = 4; + a18 = 0; + a5 = 1; + a4 = 0; + a27 = 1; + return 21; + } else if((!(a27==1)&&(((a3==4)&&(!(a15==1)&&((!(a4==1)&&(!(a5==1)&&((a0==1)&&((a12==12)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==4))))))&&(a20==1))))&&(a6==1)))){ + a18 = 1; + a22 = 0; + a3 = 7; + a5 = 1; + a12 = 10; + a6 = 0; + a27 = 1; + return 21; + } else if((!(a18==1)&&(((((a20==1)&&(!(a6==1)&&((a27==1)&&(((((input==1)&&!(a4==1))&&(a3==5))&&(a15==1))&&(a22==1)))))&&!(a0==1))&&(a5==1))&&(a12==9)))){ + a3 = 4; + a0 = 1; + a18 = 1; + a4 = 1; + a12 = 10; + a22 = 0; + a5 = 0; + return -1; + } else if(((a20==1)&&((!(a4==1)&&(((!(a15==1)&&((((a22==1)&&((((a18==1)||!(a18==1))&&(input==2))&&(a5==1)))&&!(a6==1))&&(a0==1)))&&(a3==4))&&!(a27==1)))&&(a12==9)))){ + a15 = 1; + a18 = 0; + a12 = 8; + a3 = 6; + a6 = 1; + return -1; + } else if((((!(a6==1)&&(!(a15==1)&&((a20==1)&&(((a3==8)&&((a12==9)&&((a0==1)&&((a22==1)&&((a18==1)&&(input==6))))))&&!(a5==1)))))&&!(a27==1))&&!(a4==1))){ + a6 = 1; + a18 = 0; + a3 = 7; + return 21; + } else if((((a3==4)&&((a20==1)&&((a6==1)&&((a12==10)&&((a27==1)&&(((a4==1)&&(!(a15==1)&&((a5==1)&&((input==3)&&((a18==1)||!(a18==1))))))&&(a0==1)))))))&&!(a22==1))){ + a4 = 0; + a3 = 5; + a6 = 0; + a15 = 1; + a18 = 1; + return -1; + } else if(((((!(a15==1)&&(((a0==1)&&((((((!(a18==1)&&(a22==1))&&(a3==5))||(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1)))))&&(input==6))&&!(a6==1))&&(a20==1)))&&!(a27==1)))&&(a5==1))&&(a4==1))&&(a12==11))){ + a18 = 0; + a15 = 1; + a22 = 0; + a27 = 1; + a3 = 4; + a12 = 10; + return 26; + } else if((!(a5==1)&&((!(a4==1)&&((a3==6)&&(!(a18==1)&&(((a12==9)&&((!(a0==1)&&(((a22==1)&&(input==1))&&!(a27==1)))&&!(a15==1)))&&(a20==1)))))&&(a6==1)))){ + if((a6==1)){ + a3 = 5; + a0 = 1; + a5 = 1; + a12 = 10; + a27 = 1; + }else{ + a12 = 10; + a5 = 1; + a27 = 1; + a0 = 1; + a3 = 7; + a6 = 0; + } + return 24; + } else if((!(a27==1)&&((((a6==1)&&(((a22==1)&&((a0==1)&&((((a4==1)&&((a12==11)&&(input==4)))&&(a3==7))&&(a18==1))))&&!(a5==1)))&&!(a15==1))&&(a20==1)))){ + if((a18==1)){ + a0 = 0; + a15 = 1; + a12 = 8; + a22 = 0; + a4 = 0; + a27 = 1; + a18 = 0; + }else{ + a22 = 0; + a3 = 4; + a0 = 0; + a4 = 0; + a27 = 1; + a12 = 10; + } + return 21; + } else if(((((((a12==9)&&((a6==1)&&((a0==1)&&(((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==4))&&!(a15==1))&&(a27==1)))))&&!(a5==1))&&(a4==1))&&(a20==1))&&(a3==4))){ + a4 = 0; + a12 = 8; + a27 = 0; + a18 = 0; + a22 = 1; + return 21; + } else if(((a12==12)&&((a27==1)&&(!(a4==1)&&((a0==1)&&(((a5==1)&&((a20==1)&&(((((input==5)&&!(a22==1))&&(a3==5))&&(a15==1))&&!(a18==1))))&&!(a6==1))))))){ + a15 = 0; + a3 = 7; + a12 = 9; + a5 = 0; + a18 = 1; + a22 = 1; + a0 = 0; + return -1; + } else if(((a20==1)&&(((a3==8)&&((a18==1)&&((a27==1)&&(!(a22==1)&&((a4==1)&&(((a5==1)&&(((a15==1)&&(input==5))&&!(a0==1)))&&(a12==10)))))))&&!(a6==1)))){ + a5 = 0; + a18 = 0; + a27 = 0; + a3 = 5; + a0 = 1; + a4 = 0; + return 26; + } else if(((!(a4==1)&&((!(a5==1)&&((((a20==1)&&((a6==1)&&((((a3==7)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7))))&&(input==5))))&&!(a27==1))&&(a12==10)))&&(a0==1)))&&(a15==1))){ + a4 = 1; + a15 = 0; + a18 = 0; + a22 = 1; + a5 = 1; + a3 = 5; + return -1; + } else if((((a12==12)&&(((a5==1)&&((a20==1)&&((a3==7)&&((a27==1)&&((a15==1)&&((a0==1)&&((a18==1)&&((input==1)&&(a6==1)))))))))&&!(a22==1)))&&(a4==1))){ + if((a22==1)){ + a4 = 0; + a0 = 0; + a3 = 6; + a18 = 0; + a5 = 0; + a12 = 11; + }else{ + a18 = 0; + a6 = 0; + a5 = 0; + a22 = 1; + a12 = 11; + a4 = 0; + } + return 21; + } else if(((((a0==1)&&(((((((a27==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==1)))&&(a6==1))&&(a12==9))&&(a15==1))&&(a3==4))&&(a4==1)))&&(a20==1))&&!(a5==1))){ + a5 = 1; + a18 = 0; + a27 = 0; + a15 = 0; + a22 = 1; + a12 = 8; + return 21; + } else if((!(a15==1)&&((a5==1)&&((!(a6==1)&&((a20==1)&&(((((input==5)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7))))&&!(a4==1))&&(a12==8))&&!(a0==1))))&&!(a27==1))))){ + if((a3==7)){ + a18 = 1; + a15 = 1; + a22 = 1; + a27 = 1; + a3 = 4; + a0 = 1; + a6 = 1; + }else{ + a3 = 6; + a18 = 0; + a15 = 1; + a22 = 0; + a6 = 1; + a27 = 1; + a0 = 1; + } + return -1; + } else if(((a22==1)&&((!(a0==1)&&(((a20==1)&&(((a12==8)&&(((((input==1)&&((a18==1)||!(a18==1)))&&!(a4==1))&&!(a27==1))&&(a3==8)))&&!(a15==1)))&&!(a6==1)))&&(a5==1)))){ + a15 = 1; + a6 = 1; + a3 = 4; + a27 = 1; + a18 = 0; + a0 = 1; + a4 = 1; + return 26; + } else if(((!(a4==1)&&((a20==1)&&(((a12==11)&&((a27==1)&&(((a15==1)&&((a3==8)&&((input==4)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))))&&(a5==1))))&&!(a0==1))))&&(a6==1))){ + a0 = 1; + a18 = 1; + a22 = 1; + a3 = 4; + a4 = 1; + a12 = 8; + return -1; + } else if(((((((a22==1)&&((a3==8)&&((!(a27==1)&&(((((a18==1)||!(a18==1))&&(input==1))&&(a6==1))&&(a15==1)))&&(a12==9))))&&(a20==1))&&!(a0==1))&&(a5==1))&&(a4==1))){ + if((a6==1)){ + a15 = 0; + a27 = 1; + a18 = 0; + a22 = 0; + a12 = 10; + a5 = 0; + }else{ + a22 = 0; + a6 = 0; + a15 = 0; + a12 = 11; + a3 = 7; + a18 = 1; + a5 = 0; + a4 = 0; + } + return -1; + } else if(((((((!(a15==1)&&((!(a4==1)&&(((input==5)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&(a5==1)))&&(a3==4)))&&(a20==1))&&!(a6==1))&&!(a0==1))&&(a12==12))&&(a27==1))){ + a27 = 0; + a18 = 1; + a22 = 1; + a12 = 11; + a6 = 1; + return -1; + } else if(((a20==1)&&((((a3==7)&&((((a12==10)&&(((a5==1)&&((input==6)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))&&!(a27==1)))&&(a4==1))&&(a6==1)))&&!(a15==1))&&(a0==1)))){ + a6 = 0; + a4 = 0; + a15 = 1; + a22 = 1; + a3 = 8; + a18 = 0; + return -1; + } else if((((a0==1)&&((!(a27==1)&&(((!(a15==1)&&(((input==6)&&((((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==5))))&&(a20==1)))&&(a12==9))&&!(a4==1)))&&!(a6==1)))&&!(a5==1))){ + a22 = 0; + a18 = 0; + a4 = 1; + a0 = 0; + a27 = 1; + a3 = 4; + a12 = 10; + a6 = 1; + return 26; + } else if((!(a15==1)&&((((((a5==1)&&((((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==6))&&(a20==1))&&(a12==8)))&&!(a27==1))&&!(a0==1))&&!(a6==1))&&!(a4==1)))){ + a18 = 0; + a22 = 0; + a3 = 8; + a27 = 1; + a12 = 9; + return 26; + } else if((!(a15==1)&&((a0==1)&&((!(a5==1)&&((((((a12==11)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==1)))&&!(a27==1))&&!(a4==1))&&(a3==8))&&(a20==1)))&&!(a6==1))))){ + a22 = 1; + a15 = 1; + a18 = 0; + a4 = 1; + a3 = 4; + a27 = 1; + return -1; + } else if(((a15==1)&&((a4==1)&&((((a22==1)&&((a20==1)&&((a0==1)&&(((!(a6==1)&&((input==6)&&(a5==1)))&&(a27==1))&&(a12==10)))))&&(a18==1))&&(a3==5))))){ + a6 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((((((((((a12==12)&&((((a18==1)||!(a18==1))&&(input==4))&&(a3==8)))&&(a5==1))&&!(a4==1))&&(a0==1))&&(a15==1))&&(a27==1))&&(a20==1))&&(a6==1))&&(a22==1))){ + a5 = 0; + a18 = 0; + a3 = 7; + a6 = 0; + a27 = 0; + a22 = 0; + a15 = 0; + return 21; + } else if(((a12==9)&&((!(a6==1)&&(!(a5==1)&&((a15==1)&&((!(a4==1)&&(((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==1))&&!(a27==1)))&&!(a0==1)))))&&(a20==1)))){ + a5 = 1; + a4 = 1; + a12 = 8; + a0 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + a27 = 1; + return -1; + } else if((((((a3==6)&&((a12==8)&&((a15==1)&&((!(a4==1)&&((!(a22==1)&&((a20==1)&&(input==5)))&&(a27==1)))&&!(a0==1)))))&&!(a6==1))&&(a18==1))&&(a5==1))){ + a4 = 1; + a3 = 4; + a0 = 1; + a5 = 0; + a18 = 0; + return 26; + } else if(((a20==1)&&((a12==8)&&((a15==1)&&((a3==8)&&(!(a4==1)&&((a22==1)&&(((a5==1)&&((a6==1)&&((a0==1)&&((input==6)&&!(a18==1)))))&&!(a27==1))))))))){ + a3 = 4; + a18 = 1; + a27 = 1; + a4 = 1; + return -1; + } else if((((a0==1)&&((a4==1)&&(!(a6==1)&&((!(a15==1)&&((a12==10)&&(!(a5==1)&&((input==4)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1))))))))&&!(a27==1)))))&&(a20==1))){ + a6 = 1; + a27 = 1; + a18 = 1; + a22 = 0; + a0 = 0; + a12 = 9; + a3 = 7; + a4 = 0; + return -1; + } else if((((a4==1)&&((((!(a5==1)&&((a6==1)&&(!(a15==1)&&((a20==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==5))))))&&!(a27==1))&&(a3==6))&&(a12==8)))&&!(a0==1))){ + a22 = 1; + a18 = 1; + a0 = 1; + a5 = 1; + a15 = 1; + a27 = 1; + a3 = 8; + return 26; + } else if((((a0==1)&&((((((((((a3==8)&&(!(a18==1)&&(a22==1)))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1)))))&&(input==3))&&!(a4==1))&&(a20==1))&&!(a6==1))&&(a12==8))&&(a15==1))&&!(a5==1)))&&(a27==1))){ + a6 = 1; + a22 = 1; + a18 = 1; + a4 = 1; + a5 = 1; + a3 = 4; + return -1; + } else if((((((a0==1)&&((((a12==8)&&((a4==1)&&(((input==6)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&(a3==8))))&&!(a6==1))&&(a15==1)))&&(a27==1))&&(a20==1))&&!(a5==1))){ + a3 = 6; + a12 = 10; + a5 = 1; + a22 = 1; + a18 = 0; + return 26; + } else if(((a27==1)&&((((((((((input==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&(a3==6))&&!(a0==1))&&(a5==1))&&(a12==9))&&(a15==1))&&(a6==1))&&!(a4==1))&&(a20==1)))){ + a0 = 1; + a3 = 5; + a4 = 1; + a12 = 12; + a22 = 1; + a18 = 0; + return 21; + } else if(((((a5==1)&&((!(a15==1)&&((a20==1)&&(((a12==9)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==6)))&&(a27==1))))&&!(a0==1)))&&(a4==1))&&!(a6==1))){ + a3 = 4; + a18 = 1; + a0 = 1; + a15 = 1; + a12 = 8; + a22 = 1; + a6 = 1; + return -1; + } else if((((((!(a15==1)&&((!(a5==1)&&(((((input==2)&&(a6==1))&&(a12==10))&&(a22==1))&&(a18==1)))&&(a3==8)))&&(a27==1))&&!(a4==1))&&(a20==1))&&!(a0==1))){ + a3 = 4; + a0 = 1; + a12 = 8; + a4 = 1; + a5 = 1; + a15 = 1; + return -1; + } else if(((a0==1)&&((((((!(a5==1)&&((a20==1)&&((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==5))&&(a3==7))))&&(a12==12))&&!(a27==1))&&(a15==1))&&!(a4==1))&&(a6==1)))){ + a3 = 5; + a27 = 1; + a22 = 0; + a15 = 0; + a18 = 0; + a6 = 0; + a12 = 10; + return 26; + } else if(((((!(a15==1)&&(!(a6==1)&&(((((((input==6)&&(a12==8))&&(a3==5))&&!(a0==1))&&(a20==1))&&!(a27==1))&&(a4==1))))&&!(a22==1))&&(a18==1))&&(a5==1))){ + a12 = 11; + a3 = 6; + a6 = 1; + a5 = 0; + return 26; + } else if((((a20==1)&&((!(a15==1)&&((a3==6)&&((a6==1)&&((a12==10)&&((((input==2)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a5==1))&&!(a4==1))))))&&(a0==1)))&&!(a27==1))){ + a15 = 1; + a3 = 4; + a12 = 8; + a4 = 1; + a22 = 1; + a27 = 1; + a18 = 1; + return -1; + } else if((!(a22==1)&&((a15==1)&&((((((a4==1)&&(!(a18==1)&&(((a3==8)&&((a20==1)&&(input==6)))&&(a27==1))))&&!(a5==1))&&(a12==11))&&(a6==1))&&(a0==1))))){ + a18 = 1; + a22 = 1; + a5 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((a15==1)&&((a0==1)&&((a3==4)&&((!(a27==1)&&((a20==1)&&((a22==1)&&((((a12==10)&&((input==2)&&(a4==1)))&&!(a5==1))&&!(a6==1)))))&&(a18==1)))))){ + a12 = 9; + a3 = 6; + a5 = 1; + a4 = 0; + a15 = 0; + return 21; + } else if(((((a12==8)&&(((a6==1)&&(((((((((a18==1)&&!(a22==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4)))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==1))&&(a15==1))&&(a27==1))&&!(a5==1)))&&(a4==1)))&&(a0==1))&&(a20==1))){ + a18 = 1; + a22 = 1; + a5 = 1; + a3 = 4; + return -1; + } else if((((((a27==1)&&(((a12==11)&&((a20==1)&&(((((a3==8)&&((a22==1)&&!(a18==1)))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8))))&&(input==4))&&!(a5==1))))&&(a15==1)))&&!(a6==1))&&!(a4==1))&&!(a0==1))){ + a0 = 1; + a15 = 0; + a3 = 6; + a18 = 0; + a22 = 0; + a6 = 1; + a5 = 1; + a4 = 1; + return -1; + } else if(((a18==1)&&((a12==11)&&((a15==1)&&(!(a27==1)&&((a20==1)&&(!(a5==1)&&((a4==1)&&((a3==4)&&((((input==3)&&(a0==1))&&!(a6==1))&&(a22==1))))))))))){ + if((a18==1)){ + a22 = 0; + a12 = 8; + a3 = 8; + a27 = 1; + a0 = 0; + a5 = 1; + }else{ + a18 = 0; + a0 = 0; + a3 = 7; + a4 = 0; + a27 = 1; + a22 = 0; + } + return 21; + } else if((((a3==8)&&((((!(a5==1)&&(!(a0==1)&&(!(a4==1)&&(!(a6==1)&&((a20==1)&&((input==4)&&!(a18==1)))))))&&(a22==1))&&!(a27==1))&&(a15==1)))&&(a12==11))){ + a22 = 0; + a5 = 1; + a6 = 1; + a0 = 1; + a4 = 1; + a3 = 7; + a27 = 1; + a18 = 1; + a12 = 8; + return 26; + } else if(((a3==4)&&((a22==1)&&((a4==1)&&(((a15==1)&&((((a6==1)&&((a20==1)&&((a27==1)&&(!(a18==1)&&(input==1)))))&&(a12==11))&&!(a5==1)))&&(a0==1)))))){ + a6 = 0; + a15 = 0; + a3 = 7; + a18 = 1; + a22 = 0; + a4 = 0; + a5 = 1; + return -1; + } else if((!(a27==1)&&(!(a6==1)&&((((a12==8)&&((!(a5==1)&&((a15==1)&&(((((a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==7))))&&(input==2))))&&(a0==1)))&&(a20==1))&&!(a4==1))))){ + a22 = 1; + a3 = 6; + a4 = 1; + a18 = 1; + a6 = 1; + a12 = 10; + return 21; + } else if(((((a27==1)&&(((!(a0==1)&&((a5==1)&&(((a6==1)&&((input==2)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&(a15==1))))&&(a12==11))&&(a4==1)))&&(a20==1))&&(a3==7))){ + a3 = 4; + a18 = 1; + a0 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if(((((a20==1)&&((a27==1)&&((a22==1)&&((a6==1)&&(!(a15==1)&&((!(a4==1)&&((a12==8)&&((input==5)&&((a18==1)||!(a18==1)))))&&(a5==1)))))))&&!(a0==1))&&(a3==5))){ + a0 = 1; + a15 = 1; + a3 = 4; + a18 = 1; + a4 = 1; + return -1; + } else if((((a22==1)&&((a12==9)&&(!(a5==1)&&(((a3==4)&&((a4==1)&&((a15==1)&&((a0==1)&&((((a18==1)||!(a18==1))&&(input==6))&&!(a27==1))))))&&(a6==1)))))&&(a20==1))){ + a6 = 0; + a18 = 0; + a12 = 11; + a3 = 5; + a27 = 1; + a22 = 0; + a4 = 0; + a0 = 0; + return 21; + } else if((((a20==1)&&(!(a4==1)&&((a15==1)&&(((((a5==1)&&((a12==11)&&(((input==5)&&((a18==1)||!(a18==1)))&&!(a6==1))))&&(a3==6))&&(a22==1))&&(a0==1)))))&&!(a27==1))){ + a18 = 0; + a6 = 1; + a3 = 5; + a12 = 8; + return -1; + } else if(((!(a4==1)&&((a20==1)&&(((a5==1)&&(((a0==1)&&((input==1)&&(((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1)))))&&(a27==1)))&&(a15==1))))&&(a12==11))){ + a22 = 1; + a3 = 4; + a6 = 1; + a12 = 8; + a4 = 1; + a18 = 1; + return -1; + } else if(((!(a5==1)&&(((((((!(a27==1)&&((input==1)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))&&(a6==1))&&(a0==1))&&(a20==1))&&(a12==11))&&!(a4==1))&&(a3==8)))&&(a15==1))){ + a6 = 0; + a22 = 0; + a18 = 0; + a0 = 0; + a12 = 8; + a27 = 1; + a4 = 1; + return -1; + } else if(((((a20==1)&&((a6==1)&&(((a15==1)&&((a0==1)&&(((input==1)&&((((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))||(((a18==1)&&(a22==1))&&(a3==5))))&&(a4==1))))&&(a12==11))))&&(a5==1))&&!(a27==1))){ + a6 = 0; + a22 = 1; + a27 = 1; + a4 = 0; + a5 = 0; + a18 = 0; + a3 = 4; + return 26; + } else if((((a12==8)&&(!(a4==1)&&((a3==7)&&(((((!(a0==1)&&((input==1)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&!(a27==1))&&(a20==1))&&(a15==1))&&!(a6==1)))))&&(a5==1))){ + a22 = 1; + a27 = 1; + a18 = 1; + a0 = 1; + a6 = 1; + return 26; + } else if(((((a15==1)&&(((a4==1)&&(!(a27==1)&&((a12==10)&&(((a20==1)&&((input==3)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))&&(a3==5)))))&&(a0==1)))&&!(a6==1))&&!(a5==1))){ + a18 = 1; + a27 = 1; + a22 = 1; + a3 = 6; + a4 = 0; + return 21; + } else if(((a5==1)&&(((((a18==1)&&((a4==1)&&((((((a15==1)&&(input==4))&&!(a22==1))&&!(a6==1))&&(a3==7))&&(a0==1))))&&(a27==1))&&(a20==1))&&(a12==9)))){ + a3 = 4; + a12 = 8; + a6 = 1; + a22 = 1; + return -1; + } else if(((a18==1)&&((a27==1)&&((a12==10)&&((((a20==1)&&((((((a6==1)&&(input==1))&&(a3==5))&&!(a5==1))&&(a22==1))&&!(a0==1)))&&(a4==1))&&!(a15==1)))))){ + a5 = 1; + a0 = 1; + a3 = 4; + a12 = 8; + a15 = 1; + return -1; + } else if(((!(a4==1)&&(((((a27==1)&&(!(a18==1)&&((a15==1)&&(((a22==1)&&((a3==7)&&(input==1)))&&(a12==9)))))&&(a20==1))&&!(a6==1))&&!(a0==1)))&&(a5==1))){ + if((a22==1)){ + a3 = 4; + a4 = 1; + a12 = 10; + a15 = 0; + }else{ + a3 = 4; + a12 = 8; + a5 = 0; + a0 = 1; + a15 = 0; + a18 = 1; + a27 = 0; + a4 = 1; + } + return 24; + } else if((((a12==10)&&((((a27==1)&&((a20==1)&&((!(a4==1)&&(((input==1)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&(a6==1)))&&!(a5==1))))&&!(a0==1))&&(a3==4)))&&(a15==1))){ + a5 = 1; + a3 = 6; + a0 = 1; + a15 = 0; + a27 = 0; + a18 = 0; + a22 = 0; + return 21; + } else if((((a22==1)&&(((!(a0==1)&&((!(a15==1)&&((!(a18==1)&&(((input==4)&&(a27==1))&&(a5==1)))&&(a12==12)))&&(a20==1)))&&(a3==7))&&(a6==1)))&&(a4==1))){ + a0 = 1; + a4 = 0; + a15 = 1; + a5 = 0; + a18 = 1; + a3 = 6; + a12 = 11; + return 21; + } else if((((a20==1)&&((a4==1)&&((((a3==4)&&((a27==1)&&(!(a6==1)&&(((a12==8)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a0==1)))))&&(a22==1))&&(a5==1))))&&!(a15==1))){ + a18 = 0; + a6 = 1; + a22 = 0; + a5 = 0; + return 26; + } else if((!(a4==1)&&((a3==4)&&((((a22==1)&&((a27==1)&&((a0==1)&&(((a15==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&!(a6==1)))&&(a5==1)))))&&(a12==10))&&(a20==1))))){ + a3 = 6; + a18 = 1; + a4 = 1; + return -1; + } else if(((a5==1)&&((((a6==1)&&((((a20==1)&&((!(a15==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==1)))&&!(a27==1)))&&(a12==11))&&(a4==1)))&&(a3==6))&&!(a0==1)))){ + if((a22==1)){ + a22 = 1; + a12 = 8; + a15 = 1; + a3 = 5; + a27 = 1; + a18 = 1; + a0 = 1; + }else{ + a15 = 1; + a18 = 1; + a22 = 1; + a12 = 8; + a6 = 0; + a0 = 1; + a27 = 1; + } + return 21; + } else if(((((((a0==1)&&(!(a6==1)&&(!(a27==1)&&(((a4==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==1)))&&(a3==7)))))&&!(a15==1))&&(a12==10))&&!(a5==1))&&(a20==1))){ + a3 = 4; + a5 = 1; + a22 = 1; + a15 = 1; + a6 = 1; + a12 = 8; + a27 = 1; + a18 = 1; + return -1; + } else if(((!(a5==1)&&((a15==1)&&((((!(a4==1)&&(((input==1)&&(((!(a18==1)&&(a22==1))&&(a3==8))||(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))))&&(a12==9)))&&(a20==1))&&(a0==1))&&(a6==1))))&&(a27==1))){ + a15 = 0; + a18 = 1; + a5 = 1; + a6 = 0; + a22 = 0; + a12 = 11; + a3 = 6; + return 24; + } else if(((((a20==1)&&((!(a6==1)&&(((a22==1)&&(!(a15==1)&&(((a3==7)&&((input==1)&&(a12==12)))&&!(a4==1))))&&(a27==1)))&&!(a0==1)))&&!(a18==1))&&!(a5==1))){ + a12 = 10; + a6 = 1; + a27 = 0; + a0 = 1; + a4 = 1; + a5 = 1; + return 26; + } else if(((((a27==1)&&((!(a0==1)&&((a4==1)&&((a20==1)&&((a15==1)&&((((a3==6)&&(!(a18==1)&&(a22==1)))||(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1)))))&&(input==2))))))&&(a12==10)))&&!(a5==1))&&!(a6==1))){ + a3 = 4; + a5 = 1; + a22 = 1; + a12 = 8; + a0 = 1; + a18 = 1; + a6 = 1; + return -1; + } else if(((((((!(a22==1)&&(((!(a15==1)&&((a3==8)&&(((a18==1)||!(a18==1))&&(input==1))))&&(a20==1))&&(a4==1)))&&(a0==1))&&!(a6==1))&&!(a5==1))&&(a12==8))&&!(a27==1))){ + if((a18==1)){ + a22 = 1; + a27 = 1; + a12 = 11; + a0 = 0; + a4 = 0; + a15 = 1; + a3 = 6; + a18 = 0; + }else{ + a6 = 1; + a5 = 1; + a4 = 0; + a3 = 7; + a27 = 1; + a12 = 11; + a18 = 0; + } + return -1; + } else if((((a12==8)&&((!(a0==1)&&((((!(a4==1)&&((a5==1)&&((input==3)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))))&&(a3==4))&&!(a15==1))&&(a20==1)))&&(a27==1)))&&(a6==1))){ + if((a27==1)){ + a18 = 0; + a15 = 1; + a4 = 1; + a22 = 0; + a12 = 10; + a5 = 0; + }else{ + a4 = 1; + a3 = 6; + a0 = 1; + a12 = 11; + a15 = 1; + a22 = 1; + a18 = 0; + a5 = 0; + } + return -1; + } else if(((((((a12==8)&&(((!(a5==1)&&(!(a6==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==5))))&&(a20==1))&&(a27==1)))&&!(a0==1))&&(a3==6))&&(a4==1))&&!(a15==1))){ + a5 = 1; + a12 = 12; + a27 = 0; + a15 = 1; + a6 = 1; + a4 = 0; + a0 = 1; + a22 = 0; + a18 = 0; + return 21; + } else if(((a12==9)&&((a20==1)&&(((a6==1)&&(((((!(a4==1)&&((a5==1)&&((input==2)&&(a3==4))))&&!(a0==1))&&(a22==1))&&(a15==1))&&(a27==1)))&&!(a18==1))))){ + a3 = 7; + a0 = 1; + a12 = 12; + return 21; + } else if(((((a20==1)&&(((((((((input==2)&&((a18==1)||!(a18==1)))&&(a5==1))&&!(a15==1))&&!(a22==1))&&!(a27==1))&&(a6==1))&&(a12==10))&&(a4==1)))&&(a0==1))&&(a3==5))){ + a5 = 0; + a18 = 1; + a27 = 1; + a0 = 0; + a3 = 4; + return 26; + } else if((((a15==1)&&((a12==12)&&((a0==1)&&((!(a4==1)&&((!(a27==1)&&((a5==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a20==1))))&&!(a22==1)))&&(a6==1)))))&&(a3==4))){ + a22 = 1; + a4 = 1; + a27 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if((((!(a6==1)&&((a12==8)&&((!(a15==1)&&((((a3==5)&&((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a27==1))&&!(a4==1)))&&(a20==1))))&&(a5==1))&&!(a0==1))){ + a0 = 1; + a18 = 0; + a6 = 1; + a22 = 0; + a27 = 1; + a4 = 1; + a3 = 7; + a15 = 1; + return -1; + } else if(((a20==1)&&((!(a0==1)&&((((((a15==1)&&((((input==5)&&((a18==1)||!(a18==1)))&&!(a6==1))&&(a12==9)))&&(a5==1))&&!(a4==1))&&!(a22==1))&&(a3==7)))&&(a27==1)))){ + a5 = 0; + a0 = 1; + a6 = 1; + a18 = 0; + a3 = 6; + a4 = 1; + a12 = 12; + return 21; + } else if((!(a0==1)&&(!(a15==1)&&((a20==1)&&(!(a6==1)&&(((((((((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a18==1)&&(a22==1))))||((!(a18==1)&&(a22==1))&&(a3==6)))&&(input==6))&&(a12==11))&&!(a5==1))&&!(a4==1))&&(a27==1))))))){ + a22 = 0; + a3 = 8; + a18 = 1; + a4 = 1; + a5 = 1; + a0 = 1; + a27 = 0; + return 21; + } else if((((a18==1)&&((a22==1)&&(((a20==1)&&(((!(a6==1)&&(!(a5==1)&&((a4==1)&&((input==4)&&(a15==1)))))&&(a3==7))&&(a12==9)))&&(a27==1))))&&(a0==1))){ + if((a27==1)){ + a6 = 1; + a4 = 0; + a12 = 10; + a3 = 8; + a15 = 0; + a0 = 0; + }else{ + a15 = 0; + a12 = 11; + a4 = 0; + a3 = 4; + a18 = 0; + } + return 26; + } else if(((a6==1)&&((((((((((a27==1)&&((a0==1)&&(input==6)))&&(a5==1))&&!(a18==1))&&(a20==1))&&!(a15==1))&&(a3==4))&&(a22==1))&&!(a4==1))&&(a12==12)))){ + a18 = 1; + a4 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if((!(a15==1)&&((!(a0==1)&&(((a12==9)&&(!(a4==1)&&(((((((a18==1)||!(a18==1))&&(input==4))&&(a20==1))&&(a3==4))&&!(a5==1))&&!(a27==1))))&&!(a6==1)))&&!(a22==1)))){ + if((a20==1)){ + a3 = 7; + a5 = 1; + a27 = 1; + a15 = 1; + a6 = 1; + a4 = 1; + a12 = 8; + a18 = 0; + a0 = 1; + }else{ + a18 = 1; + a12 = 8; + a4 = 1; + } + return -1; + } else if(((!(a15==1)&&(((a3==6)&&((a20==1)&&(((a6==1)&&((!(a0==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==5)))&&!(a4==1)))&&(a12==8))))&&!(a27==1)))&&!(a5==1))){ + a4 = 1; + a3 = 5; + a12 = 11; + a22 = 0; + a18 = 0; + return -1; + } else if(((a12==10)&&(!(a27==1)&&((!(a5==1)&&((!(a4==1)&&(((!(a6==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==6)))&&(a20==1))&&!(a15==1)))&&(a0==1)))&&(a3==8))))){ + a18 = 1; + a22 = 1; + a3 = 4; + a6 = 1; + a5 = 1; + a27 = 1; + a15 = 1; + a4 = 1; + a12 = 8; + return -1; + } else if(((!(a6==1)&&((((a0==1)&&((!(a15==1)&&((a12==12)&&(((((!(a22==1)&&(a18==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==4))))&&(a4==1)))&&(a20==1))&&!(a27==1)))&&(a5==1))){ + if((a5==1)){ + a6 = 1; + a0 = 0; + a27 = 1; + a22 = 0; + a3 = 4; + a15 = 1; + a12 = 11; + a18 = 0; + }else{ + a12 = 8; + a22 = 0; + a27 = 1; + a0 = 0; + a6 = 1; + a18 = 0; + a4 = 0; + a3 = 5; + } + return -1; + } else if(((((a20==1)&&(((a3==4)&&(((((((input==3)&&(a0==1))&&(a12==8))&&(a4==1))&&!(a27==1))&&!(a22==1))&&(a5==1)))&&(a15==1)))&&(a18==1))&&!(a6==1))){ + if((a4==1)){ + a3 = 7; + a0 = 0; + a22 = 1; + a15 = 0; + a6 = 1; + a27 = 1; + a5 = 0; + a12 = 9; + }else{ + a22 = 1; + a27 = 1; + a15 = 0; + a4 = 0; + } + return -1; + } else if(((a0==1)&&((a3==8)&&((((a18==1)&&(((a6==1)&&(((((input==3)&&(a4==1))&&!(a5==1))&&(a22==1))&&!(a15==1)))&&(a27==1)))&&(a20==1))&&(a12==12))))){ + a27 = 0; + a18 = 0; + a5 = 1; + a12 = 9; + a6 = 0; + a3 = 5; + return 26; + } else if(((((a22==1)&&((a20==1)&&((a12==12)&&(((a15==1)&&(((((input==6)&&((a18==1)||!(a18==1)))&&!(a6==1))&&(a0==1))&&(a4==1)))&&(a5==1)))))&&(a27==1))&&(a3==7))){ + a3 = 4; + a6 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((a3==5)&&((a0==1)&&((a20==1)&&((((((a12==9)&&((a15==1)&&((a27==1)&&((input==3)&&((a18==1)||!(a18==1))))))&&!(a4==1))&&!(a6==1))&&!(a5==1))&&(a22==1)))))){ + a15 = 0; + a3 = 6; + a4 = 1; + a12 = 11; + a18 = 1; + return 24; + } else if(((a12==10)&&((((a0==1)&&((a22==1)&&(((((((input==3)&&((a18==1)||!(a18==1)))&&(a3==6))&&!(a6==1))&&!(a15==1))&&(a20==1))&&(a27==1))))&&!(a5==1))&&!(a4==1)))){ + a5 = 1; + a15 = 1; + a6 = 1; + a18 = 1; + a12 = 8; + a4 = 1; + a3 = 4; + return -1; + } else if(((a12==9)&&((a27==1)&&(!(a6==1)&&(!(a15==1)&&((a20==1)&&((a0==1)&&((a4==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==5))&&!(a5==1)))))))))){ + a3 = 5; + a22 = 1; + a5 = 1; + a18 = 1; + a15 = 1; + a27 = 0; + a6 = 1; + return 21; + } else if(((a3==8)&&(!(a5==1)&&(!(a0==1)&&((!(a15==1)&&((a27==1)&&(!(a4==1)&&((!(a6==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==3)))&&(a12==8)))))&&(a20==1)))))){ + a0 = 1; + a6 = 1; + a18 = 1; + a4 = 1; + a22 = 1; + a15 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if((((!(a5==1)&&(((!(a27==1)&&((a20==1)&&((((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7)))||((a3==7)&&(!(a18==1)&&(a22==1))))&&(input==4))&&(a15==1))))&&!(a0==1))&&!(a4==1)))&&(a12==9))&&!(a6==1))){ + a4 = 1; + a12 = 10; + a18 = 0; + a3 = 5; + a5 = 1; + a22 = 1; + a6 = 1; + a15 = 0; + return -1; + } else if(((((a27==1)&&((a20==1)&&(((!(a5==1)&&((!(a15==1)&&((a0==1)&&(((a18==1)||!(a18==1))&&(input==6))))&&(a3==4)))&&!(a22==1))&&!(a4==1))))&&!(a6==1))&&(a12==11))){ + a12 = 10; + a18 = 1; + a15 = 1; + a4 = 1; + a3 = 7; + return -1; + } else if(((((((a4==1)&&((((((((a22==1)&&(a18==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==4))))&&(input==6))&&!(a5==1))&&(a12==8))&&(a15==1)))&&(a0==1))&&(a6==1))&&!(a27==1))&&(a20==1))){ + a3 = 6; + a0 = 0; + a6 = 0; + a22 = 1; + a12 = 11; + a18 = 1; + a15 = 0; + a27 = 1; + return 26; + } else if(((a0==1)&&(((a20==1)&&(((((a18==1)&&(!(a27==1)&&((((a15==1)&&(input==5))&&(a12==12))&&!(a4==1))))&&!(a5==1))&&!(a22==1))&&(a3==5)))&&(a6==1)))){ + a5 = 1; + a15 = 0; + a22 = 1; + a6 = 0; + a18 = 0; + a12 = 9; + a3 = 6; + return 21; + } else if(((a27==1)&&((((((!(a0==1)&&(!(a4==1)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==6))))&&!(a15==1))&&!(a6==1))&&(a12==8))&&(a20==1))&&!(a5==1)))){ + a18 = 1; + a0 = 1; + a22 = 1; + a27 = 0; + a15 = 1; + a3 = 5; + return 26; + } else if((((a4==1)&&(((((!(a15==1)&&(((a27==1)&&(!(a6==1)&&((a20==1)&&(input==4))))&&!(a5==1)))&&!(a18==1))&&(a3==8))&&(a22==1))&&!(a0==1)))&&(a12==12))){ + if((a27==1)){ + a6 = 1; + a3 = 6; + a15 = 1; + a0 = 1; + a5 = 1; + a12 = 8; + }else{ + a12 = 9; + a15 = 1; + a3 = 5; + a5 = 1; + a18 = 1; + a27 = 0; + } + return 21; + } else if((!(a22==1)&&((a20==1)&&(!(a0==1)&&(((a6==1)&&(((a27==1)&&(!(a15==1)&&((a4==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a5==1)))))&&(a12==11)))&&(a3==5)))))){ + a22 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a0 = 1; + a15 = 1; + return -1; + } else if((((a12==8)&&((((a5==1)&&((a15==1)&&(((a6==1)&&((input==4)&&((((a22==1)&&(a18==1))&&(a3==6))||(((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a18==1)&&!(a22==1)))))))&&!(a27==1))))&&(a20==1))&&!(a4==1)))&&!(a0==1))){ + if((a3==7)){ + a6 = 0; + a0 = 1; + a4 = 1; + a22 = 0; + a12 = 11; + a5 = 0; + a27 = 1; + a3 = 6; + a18 = 0; + }else{ + a18 = 1; + a0 = 1; + a3 = 6; + a22 = 1; + a4 = 1; + a27 = 1; + } + return 21; + } else if(((((a12==10)&&((((a20==1)&&((a27==1)&&((a6==1)&&((a15==1)&&((a0==1)&&(((a18==1)||!(a18==1))&&(input==2)))))))&&!(a4==1))&&!(a22==1)))&&(a5==1))&&(a3==8))){ + if((a0==1)){ + a0 = 0; + a3 = 4; + a4 = 1; + a18 = 0; + a22 = 1; + }else{ + a18 = 1; + a22 = 1; + a3 = 7; + a6 = 0; + a4 = 1; + } + return -1; + } else if((((a12==10)&&(((a20==1)&&((!(a15==1)&&((!(a0==1)&&(((((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==6)))&&!(a4==1)))&&(a27==1)))&&!(a6==1)))&&(a5==1))){ + if((a0==1)){ + a18 = 0; + a3 = 5; + a12 = 11; + a5 = 0; + a6 = 1; + a22 = 1; + }else{ + a3 = 5; + a15 = 1; + a0 = 1; + a4 = 1; + a6 = 1; + a12 = 12; + a5 = 0; + a22 = 1; + a18 = 1; + } + return 26; + } else if(((a27==1)&&((a6==1)&&((((a3==8)&&(((((a4==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==4)))&&!(a5==1))&&!(a0==1))&&(a12==8)))&&(a20==1))&&!(a15==1))))){ + a15 = 1; + a0 = 1; + a18 = 1; + a22 = 1; + a5 = 1; + a3 = 4; + return -1; + } else if(((((((((a0==1)&&((((input==6)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a3==4))&&(a15==1)))&&(a12==10))&&(a4==1))&&(a5==1))&&(a6==1))&&(a20==1))&&(a27==1))){ + a6 = 0; + a12 = 9; + a27 = 0; + a4 = 0; + a15 = 0; + a18 = 1; + a22 = 0; + return 26; + } else if(((!(a15==1)&&(!(a5==1)&&((!(a0==1)&&(((a6==1)&&((((a12==9)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a22==1))&&(a20==1)))&&(a4==1)))&&(a27==1))))&&(a3==8))){ + a18 = 1; + a0 = 1; + a15 = 1; + a12 = 8; + a3 = 4; + a5 = 1; + return -1; + } else if(((!(a5==1)&&((a3==6)&&(((!(a27==1)&&(((a15==1)&&((!(a22==1)&&((input==6)&&!(a0==1)))&&(a12==11)))&&(a4==1)))&&(a20==1))&&!(a6==1))))&&!(a18==1))){ + if((a18==1)){ + a22 = 1; + a4 = 0; + a5 = 1; + a6 = 1; + a0 = 1; + a18 = 1; + a27 = 1; + a12 = 8; + a3 = 8; + }else{ + a6 = 1; + a4 = 0; + a3 = 5; + a15 = 0; + a12 = 9; + a27 = 1; + a22 = 1; + a5 = 1; + } + return 21; + } else if((!(a27==1)&&(((a20==1)&&(((a5==1)&&(!(a4==1)&&((a6==1)&&(!(a15==1)&&((input==5)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1))))||((a3==6)&&(!(a18==1)&&(a22==1)))))))))&&!(a0==1)))&&(a12==11)))){ + a4 = 1; + a0 = 1; + a3 = 8; + a6 = 0; + a22 = 0; + a27 = 1; + a12 = 8; + a15 = 1; + a18 = 0; + return 21; + } else if(((((a15==1)&&((a20==1)&&((a0==1)&&(!(a6==1)&&((((!(a27==1)&&((input==4)&&!(a22==1)))&&(a3==4))&&!(a5==1))&&(a18==1))))))&&!(a4==1))&&(a12==12))){ + a6 = 1; + a22 = 1; + a5 = 1; + a4 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if((((((a6==1)&&((a3==7)&&(((a5==1)&&(((a0==1)&&((a12==9)&&((a4==1)&&(input==4))))&&!(a22==1)))&&(a27==1))))&&(a18==1))&&(a20==1))&&(a15==1))){ + a3 = 8; + a18 = 0; + a12 = 12; + a22 = 1; + a0 = 0; + return 26; + } else if((!(a27==1)&&((!(a18==1)&&(((a0==1)&&(!(a5==1)&&((a12==8)&&(!(a22==1)&&((a15==1)&&(((a4==1)&&(input==1))&&(a3==6)))))))&&(a6==1)))&&(a20==1)))){ + a3 = 4; + a15 = 0; + a6 = 0; + a27 = 1; + a12 = 11; + return 26; + } else if((!(a27==1)&&(!(a0==1)&&((a12==11)&&((!(a15==1)&&((a4==1)&&((a20==1)&&(((input==3)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1)))))&&(a6==1)))))&&(a5==1)))))){ + a22 = 1; + a27 = 1; + a6 = 0; + a15 = 1; + a12 = 8; + a18 = 1; + a3 = 6; + a0 = 1; + return 26; + } else if((((a5==1)&&(((a0==1)&&(((a20==1)&&(((((input==1)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a3==8))&&!(a27==1))&&(a6==1)))&&(a15==1)))&&(a4==1)))&&(a12==8))){ + a27 = 1; + a3 = 6; + a18 = 0; + a12 = 12; + a22 = 1; + return -1; + } else if((((a4==1)&&(!(a15==1)&&((((a20==1)&&((!(a22==1)&&((a18==1)&&(((a3==4)&&(input==2))&&(a12==10))))&&!(a27==1)))&&!(a0==1))&&!(a6==1))))&&(a5==1))){ + a18 = 0; + a0 = 1; + a27 = 1; + a5 = 0; + a3 = 8; + a15 = 1; + return -1; + } else if(((!(a4==1)&&((((a12==12)&&(((a3==7)&&(((a20==1)&&(!(a22==1)&&(((a18==1)||!(a18==1))&&(input==4))))&&(a0==1)))&&!(a6==1)))&&!(a27==1))&&(a5==1)))&&!(a15==1))){ + a22 = 1; + a18 = 0; + return -1; + } else if(((((((((a0==1)&&((a18==1)&&((a5==1)&&(((input==1)&&!(a15==1))&&(a22==1)))))&&!(a6==1))&&!(a4==1))&&(a3==6))&&!(a27==1))&&(a20==1))&&(a12==9))){ + a18 = 0; + a4 = 1; + a5 = 0; + a22 = 0; + a3 = 4; + a6 = 1; + return 21; + } else if((!(a6==1)&&(!(a4==1)&&((a20==1)&&((a27==1)&&(((a12==11)&&((a18==1)&&((a5==1)&&(((a3==8)&&((input==2)&&(a22==1)))&&(a15==1)))))&&(a0==1))))))){ + a15 = 0; + a4 = 1; + a22 = 0; + a12 = 10; + a5 = 0; + return -1; + } else if(((a12==10)&&((a5==1)&&((a3==5)&&(((a22==1)&&((a4==1)&&(!(a6==1)&&(((a20==1)&&((a0==1)&&(!(a18==1)&&(input==3))))&&!(a15==1)))))&&!(a27==1)))))){ + a15 = 1; + a3 = 4; + a12 = 8; + a27 = 1; + a18 = 1; + a6 = 1; + return -1; + } else if(((!(a6==1)&&((a0==1)&&((a27==1)&&(((!(a5==1)&&(((a20==1)&&((input==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))))&&(a4==1)))&&(a3==7))&&(a12==11)))))&&!(a15==1))){ + a3 = 8; + a15 = 1; + a4 = 0; + a22 = 1; + a6 = 1; + a18 = 0; + return -1; + } else if((!(a5==1)&&((((a20==1)&&(!(a0==1)&&(((a27==1)&&(!(a4==1)&&((input==4)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||((a3==6)&&((a22==1)&&(a18==1)))))))&&(a6==1))))&&!(a15==1))&&(a12==8)))){ + a12 = 10; + a4 = 1; + a3 = 8; + a0 = 1; + a22 = 1; + a18 = 1; + a5 = 1; + a27 = 0; + return 21; + } else if((((((((a3==4)&&(((a12==11)&&((a5==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==5))))&&!(a15==1)))&&(a20==1))&&!(a27==1))&&!(a0==1))&&!(a6==1))&&(a4==1))){ + if((a15==1)){ + a6 = 1; + a15 = 1; + a22 = 1; + a3 = 5; + a18 = 0; + a12 = 8; + a27 = 1; + a0 = 1; + }else{ + a18 = 0; + a12 = 8; + a27 = 1; + a4 = 0; + a22 = 0; + a3 = 7; + } + return 21; + } else if(((((a0==1)&&((a12==10)&&(!(a6==1)&&(!(a5==1)&&((((input==2)&&((((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==7)))||((a3==8)&&((a18==1)&&(a22==1)))))&&!(a15==1))&&(a20==1))))))&&(a27==1))&&(a4==1))){ + a3 = 4; + a5 = 1; + a22 = 0; + a18 = 1; + a15 = 1; + a6 = 1; + return 26; + } else if((!(a4==1)&&(!(a15==1)&&((a12==8)&&(!(a0==1)&&((a20==1)&&((a27==1)&&((a5==1)&&((input==2)&&(((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1)))))))))))){ + a0 = 1; + a3 = 6; + a6 = 1; + a22 = 0; + a18 = 1; + a12 = 11; + a5 = 0; + return 26; + } else if(((((a6==1)&&((a18==1)&&((a5==1)&&(((a12==11)&&((a4==1)&&((a3==6)&&(((input==2)&&!(a22==1))&&(a0==1)))))&&(a20==1)))))&&!(a27==1))&&(a15==1))){ + a3 = 8; + a27 = 1; + a22 = 1; + a5 = 0; + a12 = 10; + a15 = 0; + return 21; + } else if((!(a6==1)&&(!(a0==1)&&(!(a27==1)&&((a5==1)&&((((a12==9)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5))&&(a3==5))&&!(a15==1)))&&!(a4==1))&&(a20==1))))))){ + a12 = 8; + a22 = 1; + a18 = 0; + a0 = 1; + a6 = 1; + a27 = 1; + a15 = 1; + a4 = 1; + a3 = 6; + return 21; + } else if((!(a6==1)&&(((a20==1)&&((!(a22==1)&&((((a12==8)&&((!(a27==1)&&((a4==1)&&(input==1)))&&(a3==5)))&&(a18==1))&&(a5==1)))&&(a0==1)))&&(a15==1)))){ + a6 = 1; + a3 = 4; + a27 = 1; + a22 = 1; + return -1; + } else if((((((a5==1)&&((a6==1)&&((a3==7)&&((!(a0==1)&&((a12==12)&&(!(a15==1)&&((input==5)&&(a4==1)))))&&(a22==1)))))&&(a27==1))&&(a20==1))&&!(a18==1))){ + a6 = 0; + a4 = 0; + a0 = 1; + a27 = 0; + a18 = 1; + a12 = 11; + a3 = 6; + a22 = 0; + return 26; + } else if((((((a12==11)&&(((!(a5==1)&&(!(a6==1)&&((a3==4)&&((input==1)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))))&&(a27==1))&&!(a0==1)))&&(a20==1))&&!(a15==1))&&(a4==1))){ + a12 = 12; + a4 = 0; + a18 = 1; + a22 = 1; + a0 = 1; + a3 = 7; + return 26; + } else if((((!(a6==1)&&((a4==1)&&((a12==8)&&((!(a5==1)&&(!(a0==1)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==1))))&&(a27==1)))))&&!(a15==1))&&(a20==1))){ + a18 = 1; + a22 = 1; + a4 = 0; + a12 = 11; + a3 = 4; + return -1; + } else if(((!(a15==1)&&(!(a18==1)&&((((a3==8)&&(!(a4==1)&&((((!(a5==1)&&(input==2))&&(a20==1))&&!(a27==1))&&(a0==1))))&&!(a22==1))&&(a12==11))))&&!(a6==1))){ + a5 = 1; + a27 = 1; + a22 = 1; + return 21; + } else if(((a0==1)&&(((a12==9)&&(!(a6==1)&&((a3==7)&&((a20==1)&&(!(a4==1)&&(!(a5==1)&&(!(a27==1)&&((input==3)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))))))))))&&(a15==1)))){ + a22 = 1; + a18 = 1; + a15 = 0; + a12 = 12; + return -1; + } else if(((a12==10)&&((a0==1)&&(((a15==1)&&(((a6==1)&&(((a3==5)&&((a5==1)&&((input==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))))&&(a27==1)))&&(a20==1)))&&!(a4==1))))){ + a22 = 1; + a3 = 4; + a4 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if((!(a6==1)&&(!(a15==1)&&(!(a18==1)&&(!(a22==1)&&((a5==1)&&((a3==7)&&(!(a0==1)&&(((a12==11)&&((a4==1)&&((a20==1)&&(input==5))))&&!(a27==1)))))))))){ + a6 = 1; + a15 = 1; + a12 = 8; + a27 = 1; + a3 = 8; + a4 = 0; + a18 = 1; + a0 = 1; + return 21; + } else if(((a5==1)&&((((((a27==1)&&(((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==1))&&!(a15==1))&&(a20==1))&&!(a4==1)))&&(a12==9))&&!(a6==1))&&!(a0==1))&&(a3==4)))){ + a0 = 1; + a18 = 1; + a5 = 0; + a3 = 7; + a12 = 10; + a22 = 0; + a6 = 1; + return 26; + } else if(((((a12==11)&&((((!(a15==1)&&((input==1)&&((((((a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1)))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1)))))&&(a27==1))&&!(a5==1))&&(a20==1)))&&(a0==1))&&(a4==1))){ + a6 = 1; + a5 = 1; + a18 = 0; + a12 = 10; + a3 = 8; + a22 = 0; + return -1; + } else if((((((((a4==1)&&(!(a15==1)&&((a0==1)&&((a3==6)&&((a20==1)&&((input==2)&&((a18==1)||!(a18==1))))))))&&(a5==1))&&(a12==10))&&!(a22==1))&&!(a27==1))&&(a6==1))){ + a12 = 8; + a15 = 1; + a18 = 1; + a22 = 1; + a27 = 1; + a3 = 4; + return -1; + } else if((((a0==1)&&((a12==8)&&(((((a6==1)&&(((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==1))&&(a3==4))&&!(a5==1)))&&!(a15==1))&&!(a4==1))&&!(a27==1))))&&(a20==1))){ + a4 = 1; + a27 = 1; + a5 = 1; + a18 = 1; + a22 = 1; + a15 = 1; + return -1; + } else if(((((((a4==1)&&(((a5==1)&&(((a27==1)&&(((input==1)&&(a22==1))&&(a3==8)))&&(a20==1)))&&(a0==1)))&&!(a18==1))&&!(a6==1))&&(a12==10))&&!(a15==1))){ + a27 = 0; + a5 = 0; + a4 = 0; + a6 = 1; + a22 = 0; + a12 = 9; + return 26; + } else if((!(a4==1)&&(((a20==1)&&((a5==1)&&((((a3==4)&&((a6==1)&&(((input==5)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a12==8))))&&(a27==1))&&!(a0==1))))&&!(a15==1)))){ + a18 = 1; + a22 = 1; + a15 = 1; + a4 = 1; + a0 = 1; + return -1; + } else if(((((a5==1)&&(!(a0==1)&&((a20==1)&&((a12==9)&&((!(a27==1)&&((input==2)&&(((a3==6)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1)))))))&&(a6==1))))))&&(a4==1))&&!(a15==1))){ + a12 = 8; + a22 = 0; + a15 = 1; + a3 = 5; + a18 = 1; + a4 = 0; + a6 = 0; + return -1; + } else if((((((a15==1)&&(!(a27==1)&&((a6==1)&&(((a20==1)&&((input==1)&&(((((a18==1)&&!(a22==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4)))||(((a18==1)&&(a22==1))&&(a3==5)))))&&!(a4==1)))))&&(a5==1))&&(a12==9))&&(a0==1))){ + a22 = 0; + a12 = 10; + a18 = 1; + a27 = 1; + a3 = 4; + return 26; + } else if(((a6==1)&&(((!(a5==1)&&((!(a15==1)&&((!(a4==1)&&((((!(a18==1)&&(a22==1))&&(a3==8))||(((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8))))&&(input==1)))&&(a20==1)))&&(a0==1)))&&(a27==1))&&(a12==10)))){ + a4 = 1; + a5 = 1; + a18 = 1; + a12 = 8; + a15 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if(((((a12==10)&&(((a6==1)&&(!(a27==1)&&(((a3==6)&&(((!(a22==1)&&(input==6))&&!(a15==1))&&!(a0==1)))&&(a5==1))))&&!(a18==1)))&&!(a4==1))&&(a20==1))){ + a0 = 1; + a15 = 1; + a18 = 1; + a3 = 4; + a6 = 0; + a5 = 0; + a27 = 1; + return -1; + } else if(((a0==1)&&((((a12==11)&&(!(a6==1)&&((a27==1)&&(!(a4==1)&&((((a5==1)&&(!(a18==1)&&(input==5)))&&(a3==7))&&!(a22==1))))))&&(a15==1))&&(a20==1)))){ + a3 = 8; + a15 = 0; + a12 = 10; + a4 = 1; + a22 = 1; + return -1; + } else if((((((a0==1)&&((a20==1)&&((((a3==5)&&((a12==8)&&((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&!(a4==1))&&!(a5==1))))&&(a27==1))&&(a15==1))&&!(a6==1))){ + if((a3==7)){ + a22 = 1; + a12 = 11; + a4 = 1; + a15 = 0; + a5 = 1; + a18 = 0; + a0 = 0; + }else{ + a12 = 10; + a3 = 7; + a15 = 0; + a22 = 1; + a18 = 1; + a5 = 1; + } + return 26; + } else if((!(a6==1)&&((!(a27==1)&&((a15==1)&&((a20==1)&&((a12==9)&&((a0==1)&&(!(a4==1)&&((input==4)&&(((a3==8)&&(!(a18==1)&&(a22==1)))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))))))))))&&(a5==1)))){ + if((a5==1)){ + a4 = 1; + a15 = 0; + a6 = 1; + a3 = 7; + a22 = 0; + a18 = 0; + a27 = 1; + a0 = 0; + }else{ + a12 = 11; + a15 = 0; + a3 = 7; + a18 = 0; + a22 = 1; + } + return 21; + } else if(((a20==1)&&(!(a6==1)&&((a5==1)&&(((((a27==1)&&(((a15==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==4)))&&(a3==5)))&&!(a4==1))&&(a12==10))&&(a0==1)))))){ + a6 = 1; + a4 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + a18 = 1; + return -1; + } else if((!(a27==1)&&((((((((a4==1)&&((a3==8)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2))))&&(a12==10))&&!(a0==1))&&!(a6==1))&&!(a5==1))&&(a20==1))&&!(a15==1)))){ + a3 = 5; + a4 = 0; + a12 = 11; + a18 = 0; + a22 = 1; + return -1; + } else if((((!(a6==1)&&((!(a4==1)&&((a20==1)&&((a12==9)&&((a5==1)&&((input==3)&&(((a3==7)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))))))))&&!(a0==1)))&&!(a27==1))&&(a15==1))){ + a4 = 1; + a5 = 0; + a18 = 0; + a22 = 1; + a12 = 8; + a15 = 0; + a3 = 8; + return -1; + } else if((((a27==1)&&(!(a6==1)&&(((a0==1)&&((!(a5==1)&&(!(a15==1)&&((input==5)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1))))||((a3==7)&&((a22==1)&&!(a18==1)))))))&&(a4==1)))&&(a20==1))))&&(a12==10))){ + a18 = 1; + a3 = 6; + a6 = 1; + a15 = 1; + a22 = 0; + a5 = 1; + return -1; + } else if((!(a27==1)&&(((!(a4==1)&&(!(a6==1)&&((((a5==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==1))&&(a15==1)))&&(a12==8))&&(a0==1))))&&(a20==1))&&(a3==5)))){ + a22 = 1; + a18 = 1; + a3 = 8; + a15 = 0; + a27 = 1; + a12 = 10; + return 26; + } else if((!(a4==1)&&((a12==11)&&(((!(a6==1)&&((a3==4)&&(((a15==1)&&(((input==4)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&!(a5==1)))&&!(a0==1))))&&(a20==1))&&(a27==1))))){ + a22 = 1; + a0 = 1; + a5 = 1; + a6 = 1; + a4 = 1; + a3 = 5; + a18 = 1; + a12 = 12; + a15 = 0; + return 24; + } else if((!(a27==1)&&((((((((a5==1)&&((a12==10)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==5))))&&!(a0==1))&&(a15==1))&&(a3==7))&&(a20==1))&&!(a6==1))&&(a4==1)))){ + a15 = 0; + a22 = 0; + a12 = 12; + a27 = 1; + a18 = 0; + a0 = 1; + return -1; + } else if(((!(a6==1)&&(!(a18==1)&&((a5==1)&&(((a22==1)&&((a27==1)&&((a12==10)&&((((input==6)&&(a20==1))&&!(a15==1))&&(a0==1)))))&&(a4==1)))))&&(a3==8))){ + a4 = 0; + a6 = 1; + a18 = 1; + a3 = 5; + a15 = 1; + return -1; + } else if(((!(a5==1)&&(((((a3==8)&&((a12==11)&&(((a20==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&!(a0==1)))&&!(a6==1))))&&!(a4==1))&&!(a27==1))&&!(a15==1)))&&(a22==1))){ + a15 = 1; + a3 = 4; + a12 = 9; + a22 = 0; + a6 = 1; + a18 = 0; + a4 = 1; + a27 = 1; + return -1; + } else if((((!(a5==1)&&((!(a4==1)&&((a20==1)&&((a15==1)&&(!(a22==1)&&((a27==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&!(a6==1)))))))&&(a3==5)))&&(a12==10))&&(a0==1))){ + a4 = 1; + a18 = 0; + a6 = 1; + a22 = 1; + return -1; + } else if((!(a4==1)&&(((((a27==1)&&((a20==1)&&((((input==2)&&((((a22==1)&&!(a18==1))&&(a3==5))||(((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==5)))))&&(a0==1))&&!(a5==1))))&&!(a15==1))&&(a12==10))&&(a6==1)))){ + a3 = 7; + a22 = 1; + a18 = 1; + return 26; + } else if((!(a27==1)&&(((!(a6==1)&&(!(a5==1)&&(((a15==1)&&(((input==4)&&(((a3==6)&&((a22==1)&&(a18==1)))||(((a3==5)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==5)))))&&(a20==1)))&&(a12==8))))&&!(a4==1))&&(a0==1)))){ + a5 = 1; + a6 = 1; + a22 = 1; + a27 = 1; + a18 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((a20==1)&&((a0==1)&&(((!(a27==1)&&((a12==10)&&((!(a6==1)&&((!(a22==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&!(a4==1)))&&(a3==5))))&&(a5==1))&&(a15==1))))){ + a4 = 1; + a15 = 0; + a3 = 4; + a18 = 1; + a6 = 1; + a22 = 1; + a5 = 0; + return 26; + } else if((((((a12==11)&&((a20==1)&&((input==3)&&(((!(a6==1)&&((a3==8)&&(!(a4==1)&&(((a18==1)&&!(a22==1))&&(a15==1)))))||(((!(a4==1)&&((!(a22==1)&&!(a18==1))&&(a15==1)))&&(a3==8))&&!(a6==1)))||((((((a18==1)&&(a22==1))&&!(a15==1))&&(a4==1))&&(a3==4))&&(a6==1))))))&&(a5==1))&&!(a0==1))&&(a27==1))){ + a3 = 5; + a0 = 1; + a6 = 1; + a15 = 0; + a4 = 1; + a12 = 10; + a22 = 0; + a18 = 1; + return -1; + } else if((!(a18==1)&&(((a5==1)&&(((!(a0==1)&&((a12==8)&&(((a22==1)&&(((a6==1)&&(input==5))&&(a20==1)))&&(a15==1))))&&!(a27==1))&&!(a4==1)))&&(a3==7)))){ + a0 = 1; + a3 = 8; + a27 = 1; + return 21; + } else if((((((!(a6==1)&&(((!(a27==1)&&((input==6)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))||(((a18==1)&&(a22==1))&&(a3==6)))))&&(a4==1))&&(a0==1)))&&(a20==1))&&(a12==8))&&(a15==1))&&!(a5==1))){ + a15 = 0; + a12 = 12; + a3 = 6; + a18 = 0; + a5 = 1; + a6 = 1; + a22 = 0; + a4 = 0; + a27 = 1; + return -1; + } else if(((a6==1)&&(!(a15==1)&&(!(a0==1)&&((((a20==1)&&(((a3==8)&&(((input==2)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&!(a27==1)))&&!(a4==1)))&&(a5==1))&&(a12==10)))))){ + if((a27==1)){ + a22 = 1; + a3 = 5; + a18 = 0; + a12 = 8; + a0 = 1; + a4 = 1; + a27 = 1; + a15 = 1; + }else{ + a0 = 1; + a27 = 1; + a12 = 8; + a15 = 1; + a22 = 0; + a3 = 6; + a18 = 1; + } + return 21; + } else if(((a3==8)&&((a22==1)&&(((!(a4==1)&&(((!(a6==1)&&((((input==4)&&!(a0==1))&&(a5==1))&&!(a27==1)))&&(a18==1))&&(a20==1)))&&(a12==9))&&!(a15==1))))){ + a5 = 0; + a27 = 1; + a0 = 1; + a18 = 0; + a12 = 10; + a22 = 0; + return 26; + } else if(((((((a12==10)&&((a3==5)&&((!(a6==1)&&((a20==1)&&(!(a22==1)&&(((a18==1)||!(a18==1))&&(input==5)))))&&(a15==1))))&&(a27==1))&&!(a5==1))&&!(a4==1))&&(a0==1))){ + a4 = 1; + a22 = 1; + a5 = 1; + a18 = 0; + a6 = 1; + a15 = 0; + return 26; + } else if((((a20==1)&&(((a5==1)&&((((((a12==10)&&((input==3)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))))&&!(a0==1))&&(a3==7))&&(a15==1))&&!(a27==1)))&&(a4==1)))&&!(a6==1))){ + a22 = 0; + a18 = 1; + a27 = 1; + a12 = 8; + a3 = 4; + a0 = 1; + return 21; + } else if(((((((!(a6==1)&&((a0==1)&&((a20==1)&&((((a3==5)&&((a22==1)&&(a18==1)))||(((a3==4)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==4))))&&(input==1)))))&&(a5==1))&&(a12==9))&&(a27==1))&&(a15==1))&&(a4==1))){ + a4 = 0; + a12 = 12; + a6 = 1; + a18 = 1; + a3 = 5; + a22 = 1; + return 24; + } return calculate_output53(input); + } + + int calculate_output53(int input) { + if(((a20==1)&&(!(a15==1)&&((a27==1)&&((a0==1)&&(((((!(a4==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&(a3==4)))&&(a6==1))&&!(a22==1))&&(a5==1))&&(a12==8))))))){ + a15 = 1; + a12 = 9; + a3 = 8; + a4 = 1; + a6 = 0; + a18 = 1; + return 24; + } else if(((a0==1)&&((a12==9)&&(((a15==1)&&((a20==1)&&((a6==1)&&(!(a4==1)&&((a18==1)&&((a3==8)&&(((input==1)&&!(a22==1))&&(a5==1))))))))&&!(a27==1))))){ + a3 = 5; + a27 = 1; + a5 = 0; + a0 = 0; + a15 = 0; + a12 = 8; + a6 = 0; + a4 = 1; + return -1; + } else if(((a27==1)&&((((((a6==1)&&(((!(a5==1)&&((a20==1)&&(((a18==1)||!(a18==1))&&(input==3))))&&(a0==1))&&(a22==1)))&&!(a15==1))&&(a3==6))&&(a12==12))&&!(a4==1)))){ + a15 = 1; + a22 = 0; + a12 = 9; + a5 = 1; + a18 = 1; + a27 = 0; + return 24; + } else if((!(a15==1)&&(((((a6==1)&&((((a3==8)&&(((a0==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a22==1)))&&(a4==1))&&!(a27==1)))&&(a12==12))&&(a5==1))&&(a20==1)))){ + a18 = 0; + a3 = 7; + a4 = 0; + a12 = 10; + a22 = 0; + return -1; + } else if((!(a5==1)&&((a3==6)&&(!(a6==1)&&(((!(a22==1)&&(((a27==1)&&((a20==1)&&(((a12==10)&&(input==5))&&(a15==1))))&&!(a18==1)))&&!(a4==1))&&!(a0==1)))))){ + a15 = 0; + a18 = 1; + a0 = 1; + a6 = 1; + a22 = 1; + return 26; + } else if((((!(a27==1)&&((!(a6==1)&&((!(a4==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==4))&&(a15==1)))&&(a5==1)))&&(a12==8)))&&(a0==1))&&(a20==1))){ + a22 = 0; + a4 = 1; + a12 = 9; + a18 = 0; + a3 = 7; + return 26; + } else if((!(a27==1)&&(!(a6==1)&&((((a4==1)&&(!(a5==1)&&((a0==1)&&(((a15==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a12==8)))&&(a3==4)))))&&(a20==1))&&(a22==1))))){ + a18 = 1; + a5 = 1; + a27 = 1; + a6 = 1; + return -1; + } else if((!(a27==1)&&(((((a20==1)&&((a12==8)&&(!(a5==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==5))&&!(a0==1)))))&&(a6==1))&&(a15==1))&&!(a4==1)))){ + if((a4==1)){ + a5 = 1; + a18 = 1; + a22 = 1; + a3 = 7; + a12 = 9; + a15 = 0; + }else{ + a4 = 1; + a12 = 11; + a0 = 1; + a3 = 8; + a18 = 1; + a22 = 1; + a6 = 0; + a15 = 0; + } + return -1; + } else if((((((((!(a4==1)&&(!(a22==1)&&(((a20==1)&&((input==4)&&(a12==11)))&&!(a6==1))))&&(a3==4))&&(a27==1))&&(a15==1))&&(a5==1))&&!(a18==1))&&!(a0==1))){ + a12 = 12; + a27 = 0; + a18 = 1; + a3 = 6; + a0 = 1; + a4 = 1; + return 26; + } else if(((((a12==10)&&((!(a18==1)&&(!(a4==1)&&(((a20==1)&&(!(a6==1)&&(((a3==6)&&(input==5))&&!(a15==1))))&&!(a5==1))))&&(a0==1)))&&!(a27==1))&&(a22==1))){ + a18 = 1; + a15 = 1; + a6 = 1; + a4 = 1; + a12 = 8; + a27 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if(((a0==1)&&(!(a5==1)&&((a20==1)&&((!(a27==1)&&((a6==1)&&((a15==1)&&((!(a4==1)&&((input==5)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))))&&(a3==6)))))&&(a12==10)))))){ + a12 = 8; + a27 = 1; + a22 = 1; + a5 = 1; + a18 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((!(a4==1)&&(!(a6==1)&&(((a12==8)&&((a27==1)&&((a5==1)&&(!(a15==1)&&((input==3)&&(((!(a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1))))))))))&&(a0==1))))&&(a20==1))){ + a12 = 9; + a3 = 6; + a22 = 0; + a18 = 0; + return 21; + } else if(((a12==10)&&(((a5==1)&&((a3==4)&&(((((((a15==1)&&((a0==1)&&(input==5)))&&(a4==1))&&!(a6==1))&&(a20==1))&&!(a18==1))&&!(a27==1))))&&!(a22==1)))){ + a18 = 1; + a6 = 1; + a15 = 0; + return 21; + } else if(((!(a5==1)&&(((a20==1)&&(((!(a4==1)&&(((a0==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==5)))&&!(a6==1)))&&!(a15==1))&&(a12==9)))&&!(a27==1)))&&(a3==6))){ + a22 = 1; + a4 = 1; + a12 = 8; + a27 = 1; + a6 = 1; + a5 = 1; + a15 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((!(a22==1)&&(!(a0==1)&&((((!(a6==1)&&(((a4==1)&&((a5==1)&&((input==1)&&((a18==1)||!(a18==1)))))&&!(a27==1)))&&(a3==5))&&(a15==1))&&(a12==11))))&&(a20==1))){ + a18 = 1; + a6 = 1; + a0 = 1; + a12 = 8; + a3 = 4; + a27 = 1; + return -1; + } else if(((a12==10)&&(!(a4==1)&&((a20==1)&&(!(a6==1)&&(!(a0==1)&&((a15==1)&&((a3==5)&&(!(a5==1)&&((a27==1)&&((input==2)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))))))))){ + a4 = 1; + a6 = 1; + a0 = 1; + a27 = 0; + a18 = 1; + a3 = 8; + a22 = 1; + return -1; + } else if(((a5==1)&&((a20==1)&&(((((a12==12)&&(!(a0==1)&&(((a15==1)&&((input==5)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a27==1))))&&(a6==1))&&(a3==4))&&(a4==1))))){ + a18 = 1; + a12 = 8; + a0 = 1; + a22 = 1; + return -1; + } else if(((((a5==1)&&((a20==1)&&((a4==1)&&(((a0==1)&&(!(a6==1)&&((input==6)&&(((a3==5)&&((a22==1)&&!(a18==1)))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5)))))))&&!(a15==1)))))&&(a12==8))&&!(a27==1))){ + a4 = 0; + a5 = 0; + a22 = 1; + a6 = 1; + a3 = 4; + a12 = 11; + a15 = 1; + a18 = 0; + return 26; + } else if((((a12==8)&&(((a15==1)&&(((a27==1)&&((((a20==1)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==6)))&&!(a4==1))&&(a6==1)))&&!(a5==1)))&&!(a0==1)))&&(a3==4))){ + a6 = 0; + a0 = 1; + a15 = 0; + a12 = 12; + a22 = 1; + a18 = 0; + a3 = 6; + return 21; + } else if(((((a27==1)&&((a20==1)&&((((a12==10)&&(((input==2)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8))))&&!(a6==1)))&&!(a4==1))&&!(a15==1))))&&!(a0==1))&&!(a5==1))){ + a22 = 1; + a18 = 1; + a12 = 8; + a5 = 1; + a0 = 1; + a6 = 1; + a4 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if((((!(a4==1)&&(((a20==1)&&((a6==1)&&(((a5==1)&&((input==1)&&((((a22==1)&&(a18==1))&&(a3==5))||((((a18==1)&&!(a22==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4))))))&&(a12==9))))&&!(a0==1)))&&(a27==1))&&!(a15==1))){ + a3 = 4; + a0 = 1; + a15 = 1; + a12 = 8; + a18 = 1; + a4 = 1; + a22 = 1; + return -1; + } else if((!(a6==1)&&((a0==1)&&(((!(a4==1)&&((a27==1)&&((a20==1)&&((!(a22==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a15==1)))&&(a5==1)))))&&(a12==9))&&(a3==6))))){ + a5 = 0; + a3 = 4; + a4 = 1; + a15 = 0; + a12 = 12; + a6 = 1; + a18 = 0; + return 26; + } else if((!(a27==1)&&((a12==11)&&((a3==8)&&((a0==1)&&((a5==1)&&((a20==1)&&((a4==1)&&(!(a15==1)&&((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==5))&&(a6==1))))))))))){ + a22 = 1; + a27 = 1; + a15 = 1; + a5 = 0; + a18 = 0; + a4 = 0; + a12 = 10; + a6 = 0; + return 26; + } else if((((a5==1)&&((((a12==9)&&((a20==1)&&((a15==1)&&(!(a18==1)&&((a3==6)&&((a4==1)&&(!(a27==1)&&(input==2))))))))&&(a6==1))&&(a22==1)))&&(a0==1))){ + a6 = 0; + a12 = 8; + a4 = 0; + a3 = 8; + a18 = 1; + return 21; + } else if(((a20==1)&&((a0==1)&&((a4==1)&&(!(a6==1)&&((!(a27==1)&&(((((input==5)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&!(a5==1))&&(a12==10))&&(a3==4)))&&(a15==1))))))){ + a22 = 1; + a6 = 1; + a3 = 6; + a18 = 1; + return -1; + } else if((!(a22==1)&&((((a15==1)&&((a18==1)&&(((((((input==3)&&(a3==8))&&!(a5==1))&&(a12==12))&&!(a4==1))&&(a0==1))&&(a6==1))))&&(a20==1))&&!(a27==1)))){ + a5 = 1; + a4 = 1; + a3 = 4; + a27 = 1; + return 21; + } else if((((a0==1)&&((((a4==1)&&(((((!(a15==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a22==1))&&!(a5==1))&&(a6==1))&&(a20==1)))&&(a3==6))&&!(a27==1)))&&(a12==11))){ + a5 = 1; + a18 = 0; + a3 = 5; + return -1; + } else if((((!(a4==1)&&((a15==1)&&((a12==8)&&(!(a6==1)&&(!(a0==1)&&((((a27==1)&&((a3==8)&&(input==3)))&&!(a22==1))&&(a5==1)))))))&&!(a18==1))&&(a20==1))){ + a18 = 1; + a3 = 4; + a0 = 1; + a6 = 1; + a4 = 1; + a22 = 1; + return -1; + } else if((((a4==1)&&((((a3==8)&&(((a5==1)&&((a0==1)&&((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==3))&&(a12==12))))&&!(a6==1)))&&(a27==1))&&!(a15==1)))&&(a20==1))){ + a0 = 0; + a12 = 10; + a6 = 1; + a18 = 0; + a22 = 1; + a5 = 0; + a15 = 1; + return -1; + } else if((((a27==1)&&(!(a22==1)&&((a0==1)&&((((!(a6==1)&&((!(a15==1)&&((a20==1)&&(input==5)))&&(a18==1)))&&(a5==1))&&!(a4==1))&&(a3==4)))))&&(a12==11))){ + a3 = 7; + a6 = 1; + a22 = 1; + a4 = 1; + a18 = 0; + return -1; + } else if(((a0==1)&&((((a4==1)&&(!(a6==1)&&((a20==1)&&((a12==10)&&((a15==1)&&(((((a3==7)&&((a18==1)&&!(a22==1)))||((a3==7)&&(!(a22==1)&&!(a18==1))))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==6)))))))&&(a5==1))&&!(a27==1)))){ + a15 = 0; + a5 = 0; + a6 = 1; + a18 = 0; + a27 = 1; + a3 = 8; + a22 = 1; + return 26; + } else if(((a22==1)&&((a3==8)&&(!(a4==1)&&(!(a0==1)&&(((a5==1)&&(!(a18==1)&&((((a12==11)&&(!(a27==1)&&(input==3)))&&(a15==1))&&!(a6==1))))&&(a20==1))))))){ + a27 = 1; + a5 = 0; + a3 = 7; + a6 = 1; + a18 = 1; + a0 = 1; + a22 = 0; + return 21; + } else if(((((a3==8)&&((a15==1)&&((a20==1)&&(!(a5==1)&&((!(a18==1)&&(((a12==9)&&(!(a27==1)&&(input==1)))&&!(a6==1)))&&!(a0==1))))))&&(a4==1))&&(a22==1))){ + a5 = 1; + a22 = 0; + a12 = 8; + a0 = 1; + a27 = 1; + a3 = 7; + return -1; + } else if((!(a4==1)&&((a20==1)&&((a5==1)&&(((((((((a3==7)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6))))&&(input==6))&&(a27==1))&&!(a6==1))&&!(a0==1))&&(a15==1))&&(a12==11)))))){ + a18 = 1; + a5 = 0; + a12 = 9; + a0 = 1; + a22 = 1; + a27 = 0; + a3 = 4; + return -1; + } else if(((((a6==1)&&((((((a12==12)&&((((a4==1)&&(input==1))&&!(a22==1))&&(a0==1)))&&!(a15==1))&&(a3==7))&&(a20==1))&&!(a5==1)))&&!(a27==1))&&!(a18==1))){ + if((a4==1)){ + a12 = 10; + a3 = 5; + a4 = 0; + a27 = 1; + a0 = 0; + }else{ + a27 = 1; + a3 = 4; + a22 = 1; + a12 = 10; + a5 = 1; + } + return 21; + } else if(((a27==1)&&(((a20==1)&&(((a3==4)&&((a22==1)&&(((a12==9)&&(!(a6==1)&&(!(a0==1)&&(((a18==1)||!(a18==1))&&(input==2)))))&&!(a4==1))))&&!(a15==1)))&&!(a5==1)))){ + a15 = 1; + a18 = 1; + a6 = 1; + a0 = 1; + a5 = 1; + a3 = 5; + return 21; + } else if((((a12==11)&&(!(a6==1)&&((((a0==1)&&((((input==1)&&(((a3==6)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))))&&(a5==1))&&(a15==1)))&&(a27==1))&&(a20==1))))&&(a4==1))){ + a3 = 7; + a22 = 1; + a5 = 0; + a18 = 0; + a0 = 0; + a12 = 9; + return 21; + } else if((((!(a4==1)&&((a0==1)&&((a5==1)&&(((!(a15==1)&&((a12==10)&&((((a18==1)||!(a18==1))&&(input==4))&&(a20==1))))&&(a22==1))&&(a3==6)))))&&(a6==1))&&(a27==1))){ + a5 = 0; + a18 = 1; + a12 = 9; + a6 = 0; + a27 = 0; + return 21; + } else if((((((((((a20==1)&&((input==4)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))||((a3==6)&&(!(a18==1)&&(a22==1))))))&&(a12==12))&&(a5==1))&&(a27==1))&&(a6==1))&&!(a0==1))&&!(a15==1))&&!(a4==1))){ + a3 = 8; + a15 = 1; + a12 = 11; + a18 = 0; + a22 = 1; + a27 = 0; + return 21; + } else if(((a4==1)&&((a5==1)&&(((!(a27==1)&&((!(a0==1)&&(((((a6==1)&&((a3==8)&&((a18==1)&&!(a22==1))))||(((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1)))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4))))&&(input==6)))&&(a20==1)))&&(a15==1))&&(a12==9))))){ + if((a18==1)){ + a6 = 1; + a5 = 0; + a27 = 1; + a3 = 4; + a4 = 0; + a0 = 1; + a22 = 0; + a15 = 0; + a18 = 1; + a12 = 11; + }else{ + a18 = 0; + a12 = 12; + a6 = 0; + a22 = 1; + a4 = 0; + a3 = 8; + a15 = 0; + a0 = 1; + } + return 21; + } else if(((a20==1)&&((a0==1)&&(((((((((a3==8)&&((input==6)&&((a18==1)||!(a18==1))))&&(a22==1))&&(a6==1))&&!(a5==1))&&(a27==1))&&(a15==1))&&(a12==11))&&!(a4==1))))){ + a18 = 0; + a4 = 1; + a3 = 4; + return 21; + } else if((((a5==1)&&(((a27==1)&&(!(a15==1)&&((!(a4==1)&&((((((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a18==1)&&!(a22==1))))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==2))&&(a12==9)))&&(a20==1))))&&!(a6==1)))&&!(a0==1))){ + a27 = 0; + a15 = 1; + a18 = 1; + a0 = 1; + a6 = 1; + a22 = 1; + a12 = 11; + a5 = 0; + a3 = 8; + return 21; + } else if(((!(a4==1)&&((!(a5==1)&&((((a6==1)&&(((input==2)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8))))&&(a12==11)))&&(a0==1))&&(a27==1)))&&(a20==1)))&&!(a15==1))){ + a22 = 0; + a4 = 1; + a5 = 1; + a18 = 0; + a12 = 10; + a3 = 4; + return -1; + } else if((((a6==1)&&((a27==1)&&(!(a4==1)&&((a5==1)&&((((a12==9)&&((((a3==5)&&((a18==1)&&(a22==1)))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a18==1)&&!(a22==1)))))&&(input==5)))&&!(a0==1))&&!(a15==1))))))&&(a20==1))){ + a22 = 0; + a15 = 1; + a12 = 12; + a0 = 1; + a5 = 0; + a3 = 5; + a4 = 1; + a18 = 1; + return -1; + } else if(((((a12==12)&&(((a3==4)&&(!(a5==1)&&(((a6==1)&&((a0==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==2))))&&!(a4==1))))&&(a15==1)))&&(a20==1))&&!(a27==1))){ + a27 = 1; + a12 = 11; + a5 = 1; + a3 = 7; + a4 = 1; + a22 = 0; + a18 = 1; + return 26; + } else if((((((a27==1)&&((a15==1)&&(!(a6==1)&&(!(a4==1)&&(((a5==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==1)))&&(a12==9))))))&&!(a0==1))&&(a3==4))&&(a20==1))){ + a4 = 1; + a18 = 1; + a22 = 1; + a6 = 1; + a12 = 8; + a0 = 1; + return -1; + } else if((!(a18==1)&&(((((a12==11)&&(!(a15==1)&&(((((a0==1)&&((input==5)&&(a6==1)))&&!(a22==1))&&(a3==7))&&(a20==1))))&&(a5==1))&&(a4==1))&&(a27==1)))){ + a12 = 8; + a18 = 1; + a22 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if(((a0==1)&&((a5==1)&&(((a3==6)&&((a22==1)&&((((((!(a4==1)&&(input==1))&&(a6==1))&&!(a18==1))&&(a27==1))&&(a20==1))&&(a12==9))))&&(a15==1))))){ + a5 = 0; + a12 = 12; + a4 = 1; + return 26; + } else if(((a20==1)&&((((((!(a22==1)&&((((a15==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a27==1))&&(a12==12)))&&(a4==1))&&!(a0==1))&&!(a5==1))&&!(a6==1))&&(a3==4)))){ + a0 = 1; + a22 = 1; + a12 = 8; + a5 = 1; + a3 = 5; + a18 = 0; + return 26; + } else if(((((a0==1)&&((a20==1)&&(!(a4==1)&&((a3==5)&&(((a27==1)&&((((input==5)&&!(a6==1))&&!(a22==1))&&(a18==1)))&&(a12==12))))))&&!(a5==1))&&!(a15==1))){ + a5 = 1; + a12 = 8; + a22 = 1; + a4 = 1; + a15 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if((!(a27==1)&&(((((a3==6)&&((a4==1)&&((a0==1)&&((a5==1)&&((a20==1)&&(!(a22==1)&&((input==4)&&!(a15==1))))))))&&(a6==1))&&(a18==1))&&(a12==12)))){ + if((a5==1)){ + a6 = 0; + a27 = 1; + a0 = 0; + a12 = 9; + a15 = 1; + a18 = 0; + a5 = 0; + a3 = 8; + }else{ + a3 = 7; + a27 = 1; + a4 = 0; + a5 = 0; + a22 = 1; + a12 = 10; + } + return 26; + } else if(((a3==4)&&(!(a0==1)&&((((a27==1)&&((a12==11)&&(((!(a5==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&!(a15==1)))&&(a4==1))&&(a20==1))))&&(a6==1))&&(a22==1))))){ + a18 = 0; + a6 = 0; + a0 = 1; + return -1; + } else if((!(a5==1)&&(((a27==1)&&((a15==1)&&((((a12==10)&&((!(a0==1)&&((!(a18==1)&&(input==3))&&!(a6==1)))&&(a20==1)))&&!(a22==1))&&(a3==7))))&&!(a4==1)))){ + a0 = 1; + a18 = 1; + a12 = 9; + a15 = 0; + a4 = 1; + a5 = 1; + return 21; + } else if(((a20==1)&&(((((a12==11)&&(((a15==1)&&((((input==1)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a5==1))&&(a0==1)))&&(a27==1)))&&(a3==7))&&!(a6==1))&&(a4==1)))){ + a22 = 1; + a3 = 6; + a18 = 0; + return 21; + } else if((((a20==1)&&(!(a4==1)&&((a5==1)&&((a12==9)&&(((((input==1)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5))))&&!(a27==1))&&!(a0==1))&&!(a15==1))))))&&(a6==1))){ + a6 = 0; + a12 = 8; + a3 = 8; + a27 = 1; + a4 = 1; + a22 = 1; + a18 = 1; + a5 = 0; + return 21; + } else if((!(a0==1)&&((a6==1)&&(((a20==1)&&((a12==10)&&((a4==1)&&(!(a15==1)&&(((input==1)&&(((a3==7)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6)))))&&(a5==1))))))&&(a27==1))))){ + a0 = 1; + a18 = 0; + a3 = 5; + a22 = 0; + a4 = 0; + a15 = 1; + a6 = 0; + a12 = 12; + return 26; + } else if(((a0==1)&&(!(a6==1)&&((a20==1)&&((((!(a5==1)&&((a15==1)&&((!(a4==1)&&((input==2)&&((a18==1)||!(a18==1))))&&(a12==10))))&&(a22==1))&&(a3==8))&&!(a27==1)))))){ + a5 = 1; + a22 = 0; + a3 = 4; + a27 = 1; + a18 = 0; + a15 = 0; + return 26; + } else if((!(a0==1)&&((!(a15==1)&&(!(a4==1)&&(((((a20==1)&&((input==4)&&(((a3==7)&&(!(a18==1)&&(a22==1)))||(((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1)))))))&&!(a27==1))&&!(a6==1))&&(a12==10))))&&!(a5==1)))){ + a0 = 1; + a6 = 1; + a15 = 1; + a5 = 1; + a22 = 1; + a12 = 8; + a27 = 1; + a3 = 6; + a18 = 0; + return 21; + } else if(((a20==1)&&(!(a4==1)&&(((((((a27==1)&&((((input==2)&&((a18==1)||!(a18==1)))&&(a22==1))&&(a5==1)))&&!(a0==1))&&!(a15==1))&&!(a6==1))&&(a3==8))&&(a12==12))))){ + a6 = 1; + a15 = 1; + a12 = 8; + a0 = 1; + a18 = 1; + return 26; + } else if(((a4==1)&&(((a20==1)&&(!(a15==1)&&(!(a27==1)&&(((((((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1))||(((((a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))))&&(input==4))&&!(a0==1))&&!(a5==1)))))&&(a12==10)))){ + if((a3==4)){ + a0 = 1; + a5 = 1; + a3 = 8; + a22 = 0; + a15 = 1; + a6 = 0; + a27 = 1; + a18 = 1; + a12 = 8; + }else{ + a3 = 4; + a15 = 1; + a22 = 1; + a5 = 1; + a12 = 8; + a18 = 1; + a27 = 1; + a6 = 1; + a0 = 1; + a4 = 0; + } + return -1; + } else if((((((a4==1)&&(!(a6==1)&&(!(a5==1)&&((a12==9)&&((((input==1)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a3==8))&&(a0==1))))))&&(a20==1))&&!(a15==1))&&(a27==1))){ + a18 = 1; + a22 = 0; + a3 = 5; + a15 = 1; + a12 = 11; + a4 = 0; + a6 = 1; + return 26; + } else if((!(a4==1)&&(((((((!(a6==1)&&(((((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1))))||((a3==6)&&(!(a18==1)&&(a22==1))))&&(input==5)))&&(a20==1))&&(a0==1))&&(a27==1))&&(a5==1))&&(a12==8))&&!(a15==1)))){ + a12 = 9; + a3 = 6; + a18 = 1; + a22 = 0; + return 26; + } else if(((((((((!(a4==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))||((a3==6)&&(!(a18==1)&&(a22==1))))&&(input==1)))&&!(a27==1))&&(a12==9))&&!(a5==1))&&(a0==1))&&(a20==1))&&(a15==1))&&!(a6==1))){ + a12 = 12; + a5 = 1; + a22 = 0; + a18 = 0; + a15 = 0; + a3 = 8; + a4 = 1; + a6 = 1; + return 26; + } else if(((!(a18==1)&&((a4==1)&&(!(a6==1)&&(((a5==1)&&(!(a22==1)&&(((a3==8)&&(!(a0==1)&&((input==5)&&(a20==1))))&&(a27==1))))&&(a12==8)))))&&(a15==1))){ + a0 = 1; + a18 = 1; + a6 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if((((!(a18==1)&&(((a6==1)&&((a4==1)&&((((a0==1)&&((a20==1)&&((a22==1)&&(input==2))))&&(a5==1))&&!(a27==1))))&&(a15==1)))&&(a12==11))&&(a3==5))){ + a0 = 0; + a12 = 8; + a18 = 1; + a27 = 1; + a4 = 0; + a3 = 7; + return -1; + } else if((((!(a0==1)&&((!(a4==1)&&(((!(a6==1)&&(((a5==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a27==1)))&&!(a15==1))&&(a3==5)))&&(a12==9)))&&(a20==1))&&(a22==1))){ + a12 = 11; + a0 = 1; + a3 = 7; + a18 = 0; + a22 = 0; + return 21; + } else if((((!(a4==1)&&((a15==1)&&((a20==1)&&(!(a27==1)&&((a0==1)&&((a12==9)&&(((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a22==1)&&(a18==1))))||(((a22==1)&&!(a18==1))&&(a3==8)))&&(input==6))))))))&&!(a5==1))&&!(a6==1))){ + a22 = 0; + a18 = 0; + a12 = 10; + a6 = 1; + a3 = 4; + return 26; + } else if((!(a15==1)&&((((a27==1)&&((a12==12)&&(!(a5==1)&&((((a20==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==5)))&&(a3==5))&&!(a4==1)))))&&(a6==1))&&(a0==1)))){ + a22 = 1; + a5 = 1; + a12 = 11; + a15 = 1; + a18 = 1; + a27 = 0; + a6 = 0; + a3 = 6; + return 24; + } else if((!(a0==1)&&(((a27==1)&&(((a12==8)&&(((a15==1)&&((a4==1)&&((a6==1)&&((input==4)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))&&(a3==6)))&&!(a5==1)))&&(a20==1)))){ + a0 = 1; + a22 = 1; + a5 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((!(a4==1)&&(!(a15==1)&&((!(a5==1)&&(((a3==4)&&((!(a22==1)&&(!(a6==1)&&(((a18==1)||!(a18==1))&&(input==6))))&&!(a27==1)))&&(a0==1)))&&(a12==11))))&&(a20==1))){ + a18 = 1; + a4 = 1; + a6 = 1; + a12 = 10; + a27 = 1; + a22 = 1; + a3 = 7; + return 26; + } else if(((((a15==1)&&((a3==6)&&((a18==1)&&(!(a5==1)&&((a27==1)&&(((!(a4==1)&&((input==4)&&!(a0==1)))&&!(a6==1))&&!(a22==1)))))))&&(a12==11))&&(a20==1))){ + a3 = 7; + a6 = 1; + a22 = 1; + a0 = 1; + return 26; + } else if(((a3==7)&&((a12==12)&&((a0==1)&&(((a4==1)&&((a27==1)&&((!(a15==1)&&((a6==1)&&((input==6)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))&&(a20==1))))&&(a5==1)))))){ + a18 = 1; + a3 = 4; + a4 = 0; + a12 = 8; + a22 = 0; + return 21; + } else if(((!(a0==1)&&(((a20==1)&&((a15==1)&&((((((input==3)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&!(a6==1))&&(a12==9))&&(a3==6))&&(a5==1))))&&!(a27==1)))&&!(a4==1))){ + a3 = 8; + a0 = 1; + a12 = 8; + a18 = 0; + a22 = 0; + a4 = 1; + a27 = 1; + return -1; + } else if((!(a27==1)&&((a15==1)&&((a12==9)&&(((((a5==1)&&(!(a6==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==6))&&(a3==5))))&&(a20==1))&&(a4==1))&&(a0==1)))))){ + a18 = 1; + a12 = 8; + a6 = 1; + a3 = 4; + a27 = 1; + a22 = 1; + return -1; + } else if((((!(a4==1)&&((((!(a5==1)&&((!(a6==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==3)))&&(a20==1)))&&(a12==9))&&(a3==6))&&!(a27==1)))&&!(a0==1))&&!(a15==1))){ + a3 = 7; + a22 = 1; + a18 = 0; + a15 = 1; + a12 = 10; + a4 = 1; + return 21; + } else if(((!(a4==1)&&(((((a27==1)&&((a5==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4))))&&(input==2))))&&(a20==1))&&(a12==9))&&(a15==1)))&&(a0==1))){ + a6 = 1; + a22 = 1; + a12 = 8; + a18 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if(((((!(a22==1)&&((((((a20==1)&&((a4==1)&&((a3==5)&&(input==3))))&&(a12==8))&&(a27==1))&&(a18==1))&&!(a0==1)))&&!(a15==1))&&(a6==1))&&(a5==1))){ + a0 = 1; + a15 = 1; + a12 = 12; + a22 = 1; + return 26; + } else if((((a3==6)&&(((a20==1)&&(!(a22==1)&&((!(a5==1)&&(!(a0==1)&&(((((a18==1)||!(a18==1))&&(input==1))&&!(a15==1))&&(a12==12))))&&!(a4==1))))&&(a27==1)))&&(a6==1))){ + a0 = 1; + a12 = 9; + a3 = 8; + a18 = 1; + a22 = 1; + a5 = 1; + return 21; + } else if((((a0==1)&&((a12==12)&&(!(a22==1)&&((a4==1)&&((((a3==6)&&(!(a5==1)&&(!(a27==1)&&((input==3)&&((a18==1)||!(a18==1))))))&&!(a15==1))&&(a20==1))))))&&(a6==1))){ + a22 = 1; + a18 = 1; + a12 = 10; + a4 = 0; + return 21; + } else if((((!(a15==1)&&((a4==1)&&((((a3==4)&&(((a0==1)&&((input==6)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))&&(a5==1)))&&(a27==1))&&(a20==1))))&&(a12==10))&&!(a6==1))){ + a5 = 0; + a22 = 1; + a12 = 9; + a18 = 0; + a27 = 0; + a3 = 7; + return 26; + } else if((!(a18==1)&&((((!(a0==1)&&(((a3==8)&&((a20==1)&&((a6==1)&&(((a5==1)&&(input==3))&&(a12==10)))))&&(a15==1)))&&!(a4==1))&&(a22==1))&&!(a27==1)))){ + a12 = 12; + a3 = 5; + a6 = 0; + a27 = 1; + return -1; + } else if(((((((a4==1)&&(((((input==5)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))||((!(a18==1)&&(a22==1))&&(a3==8))))&&(a5==1))&&!(a15==1))&&!(a27==1)))&&(a12==8))&&(a6==1))&&(a20==1))&&!(a0==1))){ + a6 = 0; + a15 = 1; + a22 = 1; + a18 = 1; + a12 = 10; + a0 = 1; + a3 = 8; + a4 = 0; + return -1; + } else if((((!(a5==1)&&((a20==1)&&(((a3==6)&&(((a6==1)&&((((input==5)&&!(a4==1))&&!(a22==1))&&(a27==1)))&&(a15==1)))&&(a18==1))))&&(a12==9))&&(a0==1))){ + a3 = 4; + a22 = 1; + a12 = 11; + a18 = 0; + a5 = 1; + return 21; + } else if((!(a4==1)&&((a20==1)&&((a15==1)&&((((((((input==4)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&(a3==4))&&!(a6==1))&&(a27==1))&&(a12==9))&&!(a5==1))&&(a0==1)))))){ + a18 = 0; + a3 = 8; + a5 = 1; + a12 = 11; + a15 = 0; + a4 = 1; + a22 = 1; + return 21; + } else if(((((!(a15==1)&&((((a4==1)&&((!(a27==1)&&((input==4)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a0==1)))&&(a5==1))&&(a3==8)))&&(a12==8))&&(a20==1))&&!(a6==1))){ + a27 = 1; + a18 = 1; + a22 = 0; + a0 = 1; + a6 = 1; + a12 = 10; + a3 = 5; + return 21; + } else if(((a27==1)&&(((a15==1)&&((a12==11)&&(!(a4==1)&&((a0==1)&&((a5==1)&&((((input==4)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&!(a6==1))&&(a20==1)))))))&&(a3==5)))){ + if((a20==1)){ + a18 = 1; + a0 = 0; + a12 = 10; + a5 = 0; + a22 = 0; + a6 = 1; + a4 = 1; + }else{ + a22 = 1; + a15 = 0; + a12 = 10; + a6 = 1; + a18 = 1; + } + return -1; + } else if(((!(a27==1)&&(((a4==1)&&(!(a22==1)&&((a15==1)&&((((((a12==11)&&(input==2))&&(a20==1))&&(a3==8))&&!(a6==1))&&(a5==1)))))&&!(a0==1)))&&!(a18==1))){ + a18 = 1; + a12 = 8; + a0 = 1; + a3 = 5; + a27 = 1; + a4 = 0; + a6 = 1; + a5 = 0; + return -1; + } else if((((a5==1)&&(((!(a0==1)&&(((a12==8)&&(!(a4==1)&&((input==2)&&((((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))||((a3==7)&&((a22==1)&&(a18==1)))))))&&(a20==1)))&&(a27==1))&&(a6==1)))&&!(a15==1))){ + a3 = 4; + a4 = 1; + a15 = 1; + a0 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if((((a5==1)&&(!(a15==1)&&(((((a12==8)&&((((input==3)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a0==1))&&!(a6==1)))&&(a4==1))&&(a3==6))&&(a27==1))))&&(a20==1))){ + a15 = 1; + a6 = 1; + a22 = 1; + a0 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((a20==1)&&(((a12==12)&&(!(a5==1)&&((a27==1)&&(!(a4==1)&&((a18==1)&&(((a6==1)&&(((input==5)&&(a3==6))&&!(a0==1)))&&!(a15==1)))))))&&(a22==1)))){ + if((a15==1)){ + a12 = 8; + a5 = 1; + a15 = 1; + }else{ + a15 = 1; + a4 = 1; + a12 = 8; + a22 = 0; + a5 = 1; + a3 = 4; + a6 = 0; + } + return 21; + } else if((((a22==1)&&(((!(a15==1)&&(!(a0==1)&&((a27==1)&&((a20==1)&&(!(a4==1)&&((a18==1)&&((input==2)&&(a5==1))))))))&&!(a6==1))&&(a3==8)))&&(a12==8))){ + a27 = 0; + a18 = 0; + a6 = 1; + a4 = 1; + a0 = 1; + a3 = 4; + return 21; + } else if(((!(a6==1)&&(((!(a18==1)&&(((a12==11)&&(!(a0==1)&&(!(a4==1)&&((a15==1)&&(!(a22==1)&&(input==1))))))&&(a5==1)))&&(a20==1))&&(a27==1)))&&(a3==4))){ + a15 = 0; + a0 = 1; + a18 = 1; + a27 = 0; + a3 = 7; + a12 = 9; + a6 = 1; + a22 = 1; + a4 = 1; + return -1; + } else if(((a3==8)&&((a22==1)&&(!(a6==1)&&((((a4==1)&&((((a0==1)&&((a5==1)&&((input==6)&&((a18==1)||!(a18==1)))))&&!(a27==1))&&(a12==8)))&&(a20==1))&&!(a15==1)))))){ + a15 = 1; + a6 = 1; + a3 = 4; + a27 = 1; + a18 = 1; + return -1; + } else if(((a6==1)&&((a18==1)&&(((a0==1)&&(!(a5==1)&&((a4==1)&&(((!(a22==1)&&(!(a15==1)&&((input==6)&&(a20==1))))&&(a12==10))&&(a3==4)))))&&!(a27==1))))){ + a3 = 7; + a27 = 1; + a15 = 1; + a4 = 0; + return 21; + } else if(((a20==1)&&(((((a3==7)&&(((!(a6==1)&&(((input==4)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a12==8)))&&!(a5==1))&&(a15==1)))&&!(a0==1))&&!(a27==1))&&(a4==1)))){ + a18 = 0; + a27 = 1; + a22 = 0; + a6 = 1; + a12 = 11; + a15 = 0; + return -1; + } else if(((a4==1)&&((((a5==1)&&((a27==1)&&(((((a12==12)&&(!(a0==1)&&((input==3)&&(a3==4))))&&!(a18==1))&&(a6==1))&&(a20==1))))&&(a15==1))&&!(a22==1)))){ + a3 = 6; + a6 = 0; + a22 = 1; + a27 = 0; + a0 = 1; + a5 = 0; + a12 = 10; + return 21; + } else if(((a3==4)&&(((((((((a20==1)&&((input==1)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a12==8))&&!(a15==1))&&(a6==1))&&!(a27==1))&&(a4==1))&&!(a5==1))&&(a0==1)))){ + if((a4==1)){ + a12 = 11; + a0 = 0; + a4 = 0; + a6 = 0; + a27 = 1; + a18 = 1; + a5 = 1; + a3 = 8; + a22 = 0; + }else{ + a22 = 1; + a27 = 1; + a12 = 10; + a18 = 1; + } + return 26; + } else if((((a15==1)&&(((a27==1)&&((((a6==1)&&(((input==2)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))||((!(a18==1)&&(a22==1))&&(a3==6))))&&(a12==10)))&&(a4==1))&&(a5==1)))&&(a20==1)))&&!(a0==1))){ + a4 = 0; + a22 = 0; + a3 = 8; + a18 = 1; + a15 = 0; + a12 = 11; + a0 = 1; + a6 = 0; + return 21; + } else if((!(a6==1)&&((((!(a4==1)&&(!(a0==1)&&((a12==10)&&((a20==1)&&((((a3==6)&&((a22==1)&&!(a18==1)))||(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6))))&&(input==6))))))&&(a5==1))&&!(a27==1))&&(a15==1)))){ + a3 = 8; + a18 = 1; + a22 = 0; + a6 = 1; + a12 = 8; + return 21; + } else if((!(a6==1)&&((((((a4==1)&&(((a20==1)&&((((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==6)))&&!(a15==1)))&&(a12==11))&&(a0==1))&&(a5==1))&&(a27==1)))){ + a22 = 1; + a27 = 0; + a3 = 7; + a6 = 1; + a18 = 1; + a15 = 1; + return 26; + } else if(((a3==7)&&((!(a6==1)&&(!(a4==1)&&((a20==1)&&(!(a15==1)&&((!(a0==1)&&(!(a22==1)&&((a12==10)&&((input==5)&&((a18==1)||!(a18==1))))))&&(a27==1))))))&&(a5==1)))){ + a18 = 0; + a12 = 12; + a4 = 1; + a15 = 1; + a0 = 1; + return 21; + } else if((((a20==1)&&((a18==1)&&((a27==1)&&((((a15==1)&&((a6==1)&&((a3==7)&&((!(a22==1)&&(input==1))&&(a5==1)))))&&(a0==1))&&!(a4==1)))))&&(a12==10))){ + a18 = 0; + a3 = 4; + a4 = 1; + a12 = 12; + return 26; + } else if(((!(a0==1)&&((a3==6)&&(((!(a5==1)&&((a20==1)&&((a4==1)&&((a15==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a12==10))))))&&(a6==1))&&(a22==1))))&&!(a27==1))){ + a27 = 1; + a3 = 8; + a5 = 1; + a4 = 0; + a18 = 1; + a12 = 8; + a0 = 1; + a22 = 0; + return 21; + } else if(((a27==1)&&(!(a18==1)&&((a22==1)&&(!(a5==1)&&(((a12==10)&&(((a20==1)&&((a4==1)&&(((input==1)&&(a15==1))&&(a0==1))))&&(a6==1)))&&(a3==7))))))){ + a4 = 0; + a27 = 0; + a5 = 1; + a3 = 5; + return 26; + } else if(((a20==1)&&(((((((((!(a15==1)&&((!(a22==1)&&!(a18==1))&&!(a5==1)))&&(a12==11))&&!(a4==1))&&(a3==8))&&!(a6==1))||(((a3==4)&&(((((a5==1)&&((a18==1)&&(a22==1)))&&(a15==1))&&(a12==12))&&(a4==1)))&&(a6==1)))&&(input==1))&&(a27==1))&&!(a0==1)))){ + a22 = 0; + a6 = 0; + a5 = 1; + a15 = 1; + a12 = 10; + a3 = 8; + a18 = 1; + a4 = 0; + a0 = 1; + return 26; + } else if(((((((input==6)&&(((a6==1)&&((a3==4)&&((a4==1)&&((a15==1)&&(!(a5==1)&&(!(a18==1)&&(a22==1)))))))||(((((((!(a22==1)&&!(a18==1))&&(a5==1))&&!(a15==1))&&!(a4==1))&&(a3==8))&&!(a6==1))||(((a3==4)&&(((!(a5==1)&&((a22==1)&&(a18==1)))&&(a15==1))&&(a4==1)))&&(a6==1)))))&&(a20==1))&&(a12==10))&&(a0==1))&&(a27==1))){ + a18 = 1; + a15 = 1; + a5 = 1; + a4 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if(((a5==1)&&(!(a15==1)&&((!(a6==1)&&((a12==12)&&((a20==1)&&((a4==1)&&((((input==3)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&(a0==1))&&(a27==1))))))&&(a3==6))))){ + a18 = 1; + a22 = 0; + a4 = 0; + a27 = 0; + a15 = 1; + a3 = 7; + return 24; + } else if(((((((a12==9)&&((!(a6==1)&&(((a0==1)&&((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a3==6)))&&(a20==1)))&&!(a4==1))&&(a27==1))&&!(a15==1))&&!(a5==1))){ + a6 = 1; + a3 = 5; + a5 = 1; + a22 = 1; + a27 = 0; + a18 = 1; + return 24; + } else if((!(a4==1)&&((a20==1)&&(!(a15==1)&&((!(a27==1)&&(((!(a6==1)&&((((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==3)))&&!(a5==1))&&(a12==12)))&&(a0==1)))))){ + a6 = 1; + a18 = 0; + a4 = 1; + a27 = 1; + a22 = 0; + a5 = 1; + a15 = 1; + a3 = 7; + return 26; + } else if((!(a4==1)&&((a5==1)&&(((a20==1)&&(((!(a15==1)&&((((((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==1))&&!(a27==1)))&&!(a0==1))&&(a12==8)))&&!(a6==1))))){ + a27 = 1; + a22 = 1; + a6 = 1; + a0 = 1; + a18 = 0; + a15 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if((!(a27==1)&&((a6==1)&&(((a5==1)&&((((((((input==2)&&!(a15==1))&&!(a22==1))&&(a12==12))&&!(a18==1))&&(a3==6))&&(a20==1))&&(a0==1)))&&(a4==1))))){ + a22 = 1; + a12 = 8; + a3 = 4; + a15 = 1; + a27 = 1; + a18 = 1; + return -1; + } else if((((!(a18==1)&&((!(a15==1)&&(!(a0==1)&&((a12==11)&&((((a20==1)&&((a3==8)&&(input==6)))&&!(a4==1))&&(a27==1)))))&&(a5==1)))&&(a6==1))&&!(a22==1))){ + a6 = 0; + a4 = 1; + a15 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if((!(a6==1)&&((a20==1)&&(!(a15==1)&&(((a22==1)&&((a27==1)&&(!(a18==1)&&((!(a0==1)&&(!(a5==1)&&((a12==12)&&(input==3))))&&(a4==1)))))&&(a3==8)))))){ + a12 = 10; + a6 = 1; + a22 = 0; + a27 = 0; + a4 = 0; + a5 = 1; + a3 = 7; + return 24; + } else if((!(a15==1)&&((((!(a4==1)&&((a20==1)&&(!(a6==1)&&((a12==11)&&((a27==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==6)))))))&&(a3==5))&&(a0==1))&&!(a5==1)))){ + a18 = 1; + a4 = 1; + a6 = 1; + a3 = 8; + a22 = 0; + a12 = 10; + return -1; + } else if(((a27==1)&&((((a0==1)&&((a12==11)&&((((a15==1)&&((a20==1)&&((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&!(a5==1))&&(a4==1))))&&(a3==8))&&(a6==1)))){ + a5 = 1; + a12 = 10; + a4 = 0; + a22 = 0; + a18 = 1; + return -1; + } else if((((((a20==1)&&(!(a0==1)&&(((!(a5==1)&&((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==5))&&(a15==1)))&&(a3==7))&&(a12==11))))&&(a6==1))&&!(a4==1))&&!(a27==1))){ + a18 = 1; + a12 = 12; + a3 = 6; + a27 = 1; + a0 = 1; + a22 = 0; + return -1; + } else if((((a27==1)&&((a4==1)&&(((a3==5)&&(!(a15==1)&&(!(a0==1)&&((a22==1)&&((((a20==1)&&(input==2))&&(a6==1))&&(a18==1))))))&&!(a5==1))))&&(a12==10))){ + a5 = 1; + a18 = 0; + a15 = 1; + a0 = 1; + a4 = 0; + a22 = 0; + a3 = 6; + a6 = 0; + return 26; + } else if(((a12==8)&&(!(a22==1)&&(((((!(a15==1)&&(((a20==1)&&((a5==1)&&((input==6)&&((a18==1)||!(a18==1)))))&&!(a27==1)))&&!(a4==1))&&(a0==1))&&(a6==1))&&(a3==5))))){ + a3 = 4; + a27 = 1; + a22 = 1; + a4 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if(((a12==10)&&(((a3==6)&&(!(a27==1)&&(((a20==1)&&(!(a4==1)&&((a5==1)&&((a0==1)&&((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))))&&!(a15==1))))&&(a6==1)))){ + a6 = 0; + a4 = 1; + a27 = 1; + a18 = 0; + a3 = 8; + a12 = 11; + a15 = 1; + a22 = 0; + return 26; + } else if(((((!(a22==1)&&((a4==1)&&((a15==1)&&(((a6==1)&&((((input==3)&&((a18==1)||!(a18==1)))&&(a12==10))&&(a27==1)))&&(a0==1)))))&&(a5==1))&&(a20==1))&&(a3==8))){ + a22 = 1; + a5 = 0; + a27 = 0; + a12 = 9; + a3 = 6; + a18 = 0; + return 26; + } else if((((a20==1)&&(!(a6==1)&&(!(a27==1)&&((!(a5==1)&&((a15==1)&&(((a0==1)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==5)))&&(a3==4))))&&!(a4==1)))))&&(a12==8))){ + a22 = 0; + a12 = 9; + a18 = 1; + a6 = 1; + a3 = 7; + return 26; + } else if(((a27==1)&&((a18==1)&&(((a15==1)&&((a6==1)&&(((a22==1)&&((((a3==6)&&((input==4)&&(a5==1)))&&!(a0==1))&&(a12==9)))&&!(a4==1))))&&(a20==1))))){ + a0 = 1; + a3 = 4; + a12 = 10; + a18 = 0; + a15 = 0; + return -1; + } else if(((a3==8)&&(!(a15==1)&&((a4==1)&&(((a0==1)&&(((a27==1)&&((((a5==1)&&((input==2)&&!(a22==1)))&&!(a18==1))&&(a20==1)))&&(a12==12)))&&!(a6==1)))))){ + a6 = 1; + a22 = 1; + a3 = 6; + a27 = 0; + return 26; + } else if(((a20==1)&&((!(a0==1)&&((a12==10)&&(!(a15==1)&&((((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==6))&&(a6==1))&&!(a5==1))&&!(a4==1))&&(a3==8)))))&&!(a27==1)))){ + if((a0==1)){ + a5 = 1; + a22 = 1; + a15 = 1; + a3 = 7; + a0 = 1; + a18 = 1; + a12 = 8; + a27 = 1; + }else{ + a22 = 1; + a27 = 1; + a18 = 1; + a5 = 1; + a3 = 4; + a15 = 1; + a12 = 8; + a0 = 1; + } + return -1; + } else if((((((a4==1)&&(!(a15==1)&&((!(a6==1)&&(((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==2))&&(a5==1))&&(a3==4)))&&!(a0==1))))&&(a20==1))&&(a27==1))&&(a12==11))){ + a12 = 10; + a3 = 5; + a5 = 0; + a0 = 1; + a15 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((a0==1)&&(!(a15==1)&&(((a4==1)&&(!(a5==1)&&(((a12==11)&&(((input==6)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5))))&&(a6==1)))&&(a20==1))))&&(a27==1))))){ + a18 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + a5 = 1; + a15 = 1; + return -1; + } else if((((!(a27==1)&&((a20==1)&&((a0==1)&&(((a15==1)&&((a12==9)&&((input==3)&&(((a3==5)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))))))&&!(a4==1)))))&&(a6==1))&&(a5==1))){ + a4 = 1; + a12 = 8; + a27 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + return -1; + } else if(((((!(a4==1)&&((a27==1)&&(!(a15==1)&&((((input==2)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5))))&&!(a5==1))&&(a6==1)))))&&(a0==1))&&(a20==1))&&(a12==12))){ + a4 = 1; + a15 = 1; + a22 = 0; + a18 = 1; + a5 = 1; + a3 = 7; + a6 = 0; + return 26; + } else if(((((a3==7)&&(!(a15==1)&&((((a12==10)&&(((a6==1)&&((input==2)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))&&!(a5==1)))&&(a20==1))&&!(a0==1))))&&(a27==1))&&(a4==1))){ + a18 = 1; + a6 = 0; + a12 = 11; + a0 = 1; + a22 = 1; + a3 = 8; + a5 = 1; + a4 = 0; + return 21; + } else if(((a12==8)&&(!(a15==1)&&((((a0==1)&&((a5==1)&&(((a6==1)&&((((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==4)))&&(a4==1))))&&(a27==1))&&(a20==1))))){ + a3 = 4; + a22 = 0; + a18 = 1; + a15 = 1; + a5 = 0; + return 24; + } else if((!(a5==1)&&(!(a6==1)&&((a4==1)&&((a20==1)&&(((a0==1)&&((((((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==1))&&(a15==1))&&(a12==9)))&&!(a27==1))))))){ + a18 = 1; + a5 = 1; + a22 = 1; + a3 = 4; + a6 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if(((a20==1)&&((!(a6==1)&&((((a12==8)&&((a15==1)&&((a27==1)&&((input==3)&&(((!(a18==1)&&(a22==1))&&(a3==8))||(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8))))))))&&!(a0==1))&&(a5==1)))&&(a4==1)))){ + a3 = 4; + a0 = 1; + a22 = 1; + a18 = 1; + a6 = 1; + return -1; + } else if(((!(a4==1)&&(((a6==1)&&((!(a18==1)&&(((a20==1)&&((a3==8)&&(((a22==1)&&(input==3))&&(a5==1))))&&!(a0==1)))&&!(a15==1)))&&!(a27==1)))&&(a12==8))){ + a3 = 4; + a15 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if(((!(a0==1)&&((((a15==1)&&(((a5==1)&&((((a3==8)&&((input==6)&&(a6==1)))&&(a20==1))&&!(a18==1)))&&(a12==8)))&&!(a27==1))&&(a4==1)))&&(a22==1))){ + if((a0==1)){ + a27 = 1; + a3 = 7; + a15 = 0; + a6 = 0; + a12 = 11; + a4 = 0; + a18 = 1; + }else{ + a4 = 0; + a3 = 4; + a12 = 11; + a15 = 0; + a27 = 1; + a5 = 0; + } + return 24; + } else if(((a20==1)&&((a0==1)&&((a15==1)&&((a12==10)&&((!(a4==1)&&(((input==3)&&((!(a6==1)&&(((a22==1)&&!(a18==1))&&(a3==4)))||(((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1)))))&&(a27==1)))&&!(a5==1))))))){ + a5 = 1; + a18 = 1; + a6 = 0; + a15 = 0; + a3 = 5; + a22 = 0; + return 21; + } else if(((a12==10)&&((a0==1)&&(((a6==1)&&(((!(a27==1)&&(((((a3==5)&&(input==1))&&(a18==1))&&!(a5==1))&&!(a4==1)))&&(a20==1))&&!(a15==1)))&&!(a22==1))))){ + a12 = 8; + a3 = 4; + a4 = 1; + a15 = 1; + a18 = 0; + return 26; + } else if(((a0==1)&&((a5==1)&&((((a20==1)&&((a27==1)&&(((((input==3)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a3==5))&&(a15==1))&&(a12==10))))&&(a6==1))&&!(a4==1))))){ + a22 = 0; + a18 = 0; + a3 = 6; + a12 = 9; + a0 = 0; + a6 = 0; + a15 = 0; + return 21; + } else if(((a22==1)&&((a0==1)&&((a20==1)&&((((a12==11)&&((a27==1)&&((a15==1)&&((a6==1)&&((!(a18==1)&&(input==1))&&(a5==1))))))&&(a3==8))&&(a4==1)))))){ + a5 = 0; + a3 = 4; + a15 = 0; + a22 = 0; + a12 = 10; + a6 = 0; + return -1; + } else if((((!(a15==1)&&((((a4==1)&&((a3==7)&&(((a27==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==2)))&&(a12==9))))&&!(a0==1))&&(a20==1)))&&(a6==1))&&(a5==1))){ + a0 = 1; + a4 = 0; + a3 = 5; + a18 = 1; + a22 = 0; + a6 = 0; + a27 = 0; + return -1; + } else if((!(a15==1)&&((a0==1)&&(!(a5==1)&&((a6==1)&&(((((a20==1)&&(((((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1))))||((a3==5)&&((a22==1)&&!(a18==1))))&&(input==5)))&&!(a27==1))&&!(a4==1))&&(a12==12))))))){ + a12 = 10; + a22 = 1; + a4 = 1; + a3 = 7; + a18 = 1; + a15 = 1; + a5 = 1; + a27 = 1; + return -1; + } else if(((!(a4==1)&&(((a6==1)&&((!(a5==1)&&((!(a15==1)&&((a12==9)&&((a3==6)&&(!(a18==1)&&(input==3)))))&&!(a0==1)))&&(a27==1)))&&(a22==1)))&&(a20==1))){ + a15 = 1; + a0 = 1; + a4 = 1; + a18 = 1; + a22 = 0; + a3 = 8; + a27 = 0; + return 21; + } else if((!(a6==1)&&(!(a5==1)&&((a20==1)&&(!(a15==1)&&((a27==1)&&((((((a22==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a4==1))&&(a0==1))&&(a3==5))&&(a12==10)))))))){ + a12 = 8; + a3 = 4; + a5 = 1; + a6 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if((((!(a15==1)&&(((a12==11)&&((!(a4==1)&&(((!(a18==1)&&((input==2)&&(a20==1)))&&(a0==1))&&(a5==1)))&&!(a27==1)))&&(a22==1)))&&!(a6==1))&&(a3==8))){ + a18 = 1; + a27 = 1; + a3 = 5; + a15 = 1; + a6 = 1; + return -1; + } else if(((a12==8)&&((a0==1)&&((a4==1)&&(!(a27==1)&&((!(a5==1)&&((a20==1)&&(((((!(a18==1)&&(a22==1))&&(a3==5))||(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5))))&&(input==5))&&!(a15==1))))&&(a6==1))))))){ + a22 = 0; + a15 = 1; + a18 = 1; + a3 = 4; + a6 = 0; + a12 = 10; + a4 = 0; + return 21; + } else if((!(a5==1)&&((((a20==1)&&(((!(a4==1)&&((((((a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==7))))&&(input==1))&&(a12==10)))&&(a15==1))&&(a27==1)))&&(a0==1))&&!(a6==1)))){ + if((a18==1)){ + a5 = 1; + a18 = 0; + a15 = 0; + a22 = 0; + a3 = 8; + a0 = 0; + }else{ + a22 = 1; + a3 = 7; + a4 = 1; + a6 = 1; + a18 = 0; + } + return -1; + } else if((((!(a27==1)&&((!(a6==1)&&((((a3==4)&&((a18==1)&&(!(a4==1)&&((input==1)&&!(a0==1)))))&&(a15==1))&&(a22==1)))&&(a5==1)))&&(a12==8))&&(a20==1))){ + a3 = 5; + a0 = 1; + a27 = 1; + a22 = 0; + a4 = 1; + a6 = 1; + return 26; + } else if((!(a15==1)&&(((a6==1)&&((a27==1)&&((a12==12)&&((a3==5)&&(((a4==1)&&(((input==5)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&(a20==1)))&&(a0==1))))))&&!(a5==1)))){ + a3 = 7; + a15 = 1; + a22 = 0; + a12 = 11; + a18 = 0; + return -1; + } else if((!(a18==1)&&((a22==1)&&(((!(a5==1)&&((((a12==8)&&((a4==1)&&(((input==5)&&(a3==4))&&(a20==1))))&&(a6==1))&&!(a0==1)))&&(a27==1))&&!(a15==1))))){ + a12 = 11; + a27 = 0; + a0 = 1; + a4 = 0; + a22 = 0; + a15 = 1; + return -1; + } else if((!(a6==1)&&((a12==11)&&(!(a4==1)&&((a20==1)&&(!(a5==1)&&((a0==1)&&(((((((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==4))&&!(a15==1))&&!(a27==1))))))))){ + a15 = 1; + a27 = 1; + a22 = 1; + a6 = 1; + a4 = 1; + a5 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((a4==1)&&((((((!(a22==1)&&((a20==1)&&((((input==1)&&(a15==1))&&(a12==12))&&(a3==6))))&&!(a18==1))&&(a6==1))&&!(a5==1))&&!(a27==1))&&(a0==1)))){ + a15 = 0; + a4 = 0; + a3 = 7; + a6 = 0; + return -1; + } else if(((a6==1)&&((!(a27==1)&&(((!(a5==1)&&((a15==1)&&((a3==5)&&(((a4==1)&&((input==1)&&((a18==1)||!(a18==1))))&&!(a0==1)))))&&!(a22==1))&&(a20==1)))&&(a12==8)))){ + a18 = 1; + a3 = 7; + a15 = 0; + a22 = 1; + a4 = 0; + return -1; + } else if((!(a0==1)&&((a3==8)&&(((((((((input==4)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a12==12))&&!(a6==1))&&(a20==1))&&!(a4==1))&&!(a5==1))&&(a27==1))&&!(a15==1))))){ + a15 = 1; + a18 = 0; + a5 = 1; + a12 = 8; + a0 = 1; + a22 = 1; + a4 = 1; + return 21; + } else if(((a0==1)&&(!(a5==1)&&(((a20==1)&&(((((a3==5)&&((((input==1)&&!(a6==1))&&(a12==8))&&(a27==1)))&&(a4==1))&&!(a15==1))&&(a18==1)))&&(a22==1))))){ + a15 = 1; + a5 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if(((a27==1)&&((a20==1)&&(!(a4==1)&&(!(a22==1)&&(((a15==1)&&(!(a5==1)&&((a6==1)&&((a12==11)&&(!(a0==1)&&(((a18==1)||!(a18==1))&&(input==5)))))))&&(a3==5))))))){ + a6 = 0; + a0 = 1; + a12 = 10; + a3 = 6; + a22 = 1; + a18 = 1; + return 21; + } else if(((!(a6==1)&&(((a3==7)&&(!(a4==1)&&((!(a0==1)&&(((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==3))&&(a15==1))&&(a5==1)))&&(a27==1))))&&(a12==10)))&&(a20==1))){ + a12 = 12; + a0 = 1; + a4 = 1; + a18 = 1; + a22 = 1; + return 21; + } else if((!(a0==1)&&((a5==1)&&((a6==1)&&(!(a27==1)&&((a20==1)&&(!(a15==1)&&((a12==9)&&(!(a4==1)&&((input==6)&&((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6)))||((a3==6)&&((a22==1)&&!(a18==1)))))))))))))){ + a5 = 0; + a3 = 8; + a0 = 1; + a15 = 1; + a6 = 0; + a12 = 10; + a18 = 0; + a22 = 1; + return 21; + } else if(((((a15==1)&&(((a20==1)&&(((!(a0==1)&&((input==5)&&((((a22==1)&&(a18==1))&&(a3==8))||(((a3==7)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==7))))))&&!(a4==1))&&(a5==1)))&&(a27==1)))&&(a6==1))&&(a12==12))){ + a22 = 0; + a0 = 1; + a12 = 10; + a27 = 0; + a18 = 1; + a3 = 4; + a6 = 0; + a5 = 0; + a4 = 1; + return 21; + } else if((!(a22==1)&&((((a20==1)&&(((((((a6==1)&&((a4==1)&&(input==6)))&&(a18==1))&&!(a0==1))&&!(a15==1))&&(a5==1))&&!(a27==1)))&&(a12==11))&&(a3==5)))){ + a22 = 1; + a18 = 0; + a12 = 8; + a15 = 1; + a6 = 0; + a3 = 7; + a27 = 1; + a0 = 1; + return 21; + } else if(((a27==1)&&(!(a0==1)&&((((a12==8)&&(((a15==1)&&(!(a4==1)&&((a6==1)&&((input==4)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))))&&(a20==1)))&&(a3==5))&&!(a5==1))))){ + a3 = 8; + a6 = 0; + a0 = 1; + a18 = 0; + a27 = 0; + a12 = 11; + a22 = 0; + return 21; + } else if((!(a6==1)&&((a4==1)&&((a0==1)&&(!(a15==1)&&(((a3==7)&&((a20==1)&&((a5==1)&&(((input==5)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&!(a27==1)))))&&(a12==9))))))){ + a18 = 1; + a22 = 1; + a12 = 8; + a6 = 1; + a27 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if((!(a27==1)&&(((!(a6==1)&&((a20==1)&&(((!(a0==1)&&(((!(a22==1)&&(input==2))&&(a4==1))&&(a12==11)))&&(a3==6))&&(a18==1))))&&(a5==1))&&!(a15==1)))){ + a5 = 0; + a15 = 1; + a27 = 1; + a0 = 1; + a12 = 9; + a18 = 0; + return -1; + } else if((((!(a5==1)&&((a18==1)&&((a12==8)&&((((((a20==1)&&((a4==1)&&(input==6)))&&(a22==1))&&(a27==1))&&(a0==1))&&(a3==8)))))&&(a6==1))&&!(a15==1))){ + a22 = 0; + a12 = 10; + a6 = 0; + return 21; + } else if((((a22==1)&&((a12==9)&&(((((((!(a27==1)&&(!(a4==1)&&(input==2)))&&!(a18==1))&&(a6==1))&&(a3==5))&&(a0==1))&&(a20==1))&&(a5==1))))&&(a15==1))){ + a12 = 10; + a27 = 1; + a6 = 0; + a22 = 0; + a15 = 0; + return 21; + } else if(((a0==1)&&(!(a18==1)&&(((!(a5==1)&&(!(a15==1)&&((a4==1)&&((a3==4)&&((a27==1)&&(((input==4)&&!(a6==1))&&!(a22==1)))))))&&(a12==8))&&(a20==1))))){ + a18 = 1; + a5 = 1; + a15 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if(((a20==1)&&((a6==1)&&(((((a3==8)&&((a5==1)&&((a18==1)&&((((a12==10)&&(input==4))&&(a22==1))&&(a15==1)))))&&(a4==1))&&(a27==1))&&(a0==1))))){ + a6 = 0; + a5 = 0; + a15 = 0; + a4 = 0; + a12 = 9; + return -1; + } else if((!(a4==1)&&(!(a5==1)&&(((((a12==10)&&(((((a27==1)&&((a20==1)&&(input==3)))&&!(a6==1))&&!(a0==1))&&!(a22==1)))&&(a3==4))&&!(a18==1))&&!(a15==1))))){ + a15 = 1; + a3 = 6; + a22 = 1; + a4 = 1; + a6 = 1; + a0 = 1; + a5 = 1; + return -1; + } else if(((((a3==4)&&((((a27==1)&&(((((input==5)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a12==9))&&(a0==1))&&(a20==1)))&&!(a6==1))&&!(a15==1)))&&(a5==1))&&(a4==1))){ + a15 = 1; + a18 = 1; + a12 = 8; + a22 = 1; + a6 = 1; + return -1; + } else if((((a3==8)&&((!(a0==1)&&((((!(a15==1)&&(!(a4==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4))))&&!(a6==1))&&!(a27==1))&&(a20==1)))&&!(a5==1)))&&(a12==8))){ + a3 = 7; + a22 = 1; + a18 = 0; + a15 = 1; + a0 = 1; + a4 = 1; + a27 = 1; + a5 = 1; + return 21; + } else if(((a3==5)&&(((a27==1)&&(((a20==1)&&(((((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==2))&&(a0==1))&&(a12==9))&&!(a4==1))&&!(a15==1)))&&(a6==1)))&&(a5==1)))){ + a4 = 1; + a12 = 8; + a22 = 1; + a15 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a0==1)&&(((((!(a15==1)&&(((((((a3==8)&&(!(a22==1)&&(a18==1)))&&(a6==1))||((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1)))))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1)))&&(input==5))&&(a20==1)))&&(a12==11))&&!(a5==1))&&(a4==1))&&(a27==1)))){ + a18 = 0; + a3 = 7; + a22 = 0; + a6 = 1; + return -1; + } else if(((((a27==1)&&((a18==1)&&(((((a6==1)&&((a0==1)&&(((a12==11)&&(input==3))&&!(a5==1))))&&(a3==7))&&(a4==1))&&(a20==1))))&&(a15==1))&&!(a22==1))){ + if((a6==1)){ + a3 = 6; + a18 = 0; + a0 = 0; + a22 = 1; + a5 = 1; + a12 = 10; + a15 = 0; + }else{ + a18 = 0; + a15 = 0; + a5 = 1; + a6 = 0; + a22 = 1; + a4 = 0; + } + return -1; + } else if((((((a3==6)&&((((!(a4==1)&&((((a15==1)&&(input==2))&&!(a18==1))&&(a6==1)))&&(a27==1))&&!(a22==1))&&(a0==1)))&&!(a5==1))&&(a20==1))&&(a12==8))){ + if((a3==5)){ + a15 = 0; + a22 = 1; + a3 = 8; + a27 = 0; + a12 = 12; + }else{ + a18 = 1; + a4 = 1; + a12 = 10; + a15 = 0; + a5 = 1; + a3 = 5; + } + return 21; + } else if(((((((a20==1)&&(((!(a27==1)&&(((((a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==4))))&&(input==3)))&&(a0==1))&&(a4==1)))&&(a15==1))&&(a6==1))&&(a5==1))&&(a12==10))){ + a22 = 0; + a12 = 9; + a6 = 0; + a18 = 0; + a3 = 7; + return 21; + } else if(((!(a18==1)&&(((!(a4==1)&&((!(a15==1)&&((((!(a6==1)&&(input==3))&&(a20==1))&&!(a5==1))&&(a22==1)))&&(a3==7)))&&(a27==1))&&(a12==12)))&&!(a0==1))){ + a15 = 1; + a18 = 1; + a0 = 1; + a5 = 1; + a12 = 8; + a4 = 1; + a6 = 1; + a3 = 5; + return 26; + } else if(((!(a15==1)&&(((!(a5==1)&&(!(a6==1)&&((a27==1)&&((a12==12)&&((input==2)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5))))))))&&!(a0==1))&&!(a4==1)))&&(a20==1))){ + a3 = 6; + a15 = 1; + a18 = 0; + a5 = 1; + a22 = 1; + a27 = 0; + a12 = 8; + return 21; + } else if(((a5==1)&&((a6==1)&&((a18==1)&&((((a12==12)&&(!(a22==1)&&((a27==1)&&((a4==1)&&((a15==1)&&((input==6)&&(a3==7)))))))&&(a0==1))&&(a20==1)))))){ + a3 = 8; + a22 = 1; + a12 = 10; + a15 = 0; + a5 = 0; + a18 = 0; + return -1; + } else if((((a6==1)&&((a12==11)&&((a15==1)&&(((((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4))&&(a3==6))&&!(a4==1))&&!(a0==1))&&(a20==1))&&!(a27==1)))))&&(a5==1))){ + if((a0==1)){ + a3 = 4; + a0 = 1; + a27 = 1; + a22 = 1; + a12 = 8; + a4 = 1; + a18 = 0; + }else{ + a22 = 1; + a27 = 1; + a4 = 1; + a18 = 0; + a0 = 1; + a12 = 8; + a3 = 7; + } + return 21; + } else if((((!(a4==1)&&(((((a20==1)&&((a12==9)&&(!(a22==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&!(a6==1)))))&&(a3==8))&&!(a5==1))&&!(a27==1)))&&(a15==1))&&(a0==1))){ + a27 = 1; + a22 = 1; + a4 = 1; + a12 = 10; + a18 = 0; + a3 = 6; + return 26; + } else if((!(a6==1)&&(((a0==1)&&(!(a5==1)&&(((a12==12)&&((a20==1)&&((a3==6)&&((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==3))&&!(a4==1)))))&&!(a27==1))))&&(a15==1)))){ + a12 = 10; + a5 = 1; + a18 = 0; + a3 = 4; + a27 = 1; + a22 = 1; + return 24; + } else if(((a12==10)&&(((((!(a22==1)&&((((a15==1)&&((a0==1)&&((input==1)&&!(a4==1))))&&!(a27==1))&&!(a6==1)))&&(a20==1))&&(a18==1))&&!(a5==1))&&(a3==8)))){ + a22 = 1; + a4 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + a27 = 1; + a6 = 1; + return -1; + } else if(((a6==1)&&(!(a4==1)&&(((((a12==10)&&((a20==1)&&((((input==1)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a5==1))&&!(a0==1))))&&(a15==1))&&(a27==1))&&(a3==8))))){ + a6 = 0; + a18 = 1; + a15 = 0; + a12 = 11; + a0 = 1; + a22 = 0; + a3 = 4; + a4 = 1; + return -1; + } else if((((a12==11)&&(((((!(a27==1)&&(!(a15==1)&&((input==2)&&(((!(a18==1)&&(a22==1))&&(a3==6))||(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))))))&&!(a0==1))&&(a6==1))&&(a5==1))&&(a20==1)))&&!(a4==1))){ + a22 = 1; + a0 = 1; + a12 = 8; + a15 = 1; + a18 = 0; + a3 = 4; + a27 = 1; + a6 = 0; + a4 = 1; + return 26; + } else if(((a15==1)&&((!(a27==1)&&((a5==1)&&((a12==10)&&(!(a6==1)&&((!(a0==1)&&((input==4)&&(((a3==6)&&((a18==1)&&(a22==1)))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a18==1)&&!(a22==1)))))))&&(a4==1))))))&&(a20==1)))){ + a18 = 0; + a5 = 0; + a6 = 1; + a3 = 7; + a4 = 0; + a22 = 1; + a0 = 1; + a12 = 9; + return 21; + } else if(((a20==1)&&((a18==1)&&((((a3==4)&&((((a4==1)&&((a0==1)&&(((input==2)&&(a15==1))&&(a6==1))))&&(a12==10))&&!(a22==1)))&&!(a5==1))&&(a27==1))))){ + a22 = 1; + a12 = 8; + a5 = 1; + return -1; + } else if(((((((a3==8)&&(!(a5==1)&&((!(a0==1)&&((a20==1)&&((((a18==1)||!(a18==1))&&(input==6))&&!(a4==1))))&&(a15==1))))&&(a6==1))&&(a22==1))&&(a12==11))&&(a27==1))){ + a22 = 0; + a18 = 0; + a3 = 6; + a0 = 1; + a4 = 1; + return 21; + } else if(((a4==1)&&((((a20==1)&&(!(a0==1)&&((!(a27==1)&&(((input==5)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6))))&&!(a6==1)))&&(a12==10))))&&!(a5==1))&&!(a15==1)))){ + a5 = 1; + a22 = 0; + a15 = 1; + a27 = 1; + a18 = 1; + a0 = 1; + a12 = 8; + a3 = 6; + return 26; + } else if(((a4==1)&&((a12==8)&&((((a20==1)&&(((a3==7)&&(((a5==1)&&((input==1)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))&&(a0==1)))&&!(a27==1)))&&(a15==1))&&(a6==1))))){ + a5 = 0; + a22 = 0; + a27 = 1; + a18 = 0; + a12 = 11; + a3 = 5; + a4 = 0; + return 24; + } else if((((!(a15==1)&&((((((a27==1)&&((input==2)&&(((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))))&&(a6==1))&&(a20==1))&&(a12==9))&&!(a5==1)))&&!(a4==1))&&(a0==1))){ + a6 = 0; + a5 = 1; + a3 = 5; + a18 = 1; + a22 = 0; + a15 = 1; + a27 = 0; + return 26; + } else if((!(a0==1)&&((a5==1)&&((a4==1)&&((((((a12==8)&&(((a3==6)&&((input==6)&&!(a22==1)))&&!(a6==1)))&&!(a27==1))&&!(a18==1))&&(a20==1))&&(a15==1)))))){ + if((a3==8)){ + a27 = 1; + a6 = 1; + a18 = 1; + a0 = 1; + }else{ + a22 = 1; + a15 = 0; + a12 = 11; + a27 = 1; + a3 = 8; + } + return 21; + } else if((((!(a4==1)&&(((a27==1)&&((a0==1)&&((((input==1)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1)))))&&(a6==1))&&(a12==11))))&&!(a5==1)))&&(a20==1))&&!(a15==1))){ + a18 = 1; + a22 = 1; + a6 = 0; + a3 = 7; + a4 = 1; + return -1; + } else if((((a12==10)&&(!(a15==1)&&((a5==1)&&((!(a27==1)&&((((((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8))&&!(a6==1))||(((a3==4)&&(!(a4==1)&&((a22==1)&&(a18==1))))&&(a6==1)))&&(input==2)))&&(a20==1)))))&&(a0==1))){ + a6 = 1; + a22 = 1; + a18 = 1; + a12 = 8; + a4 = 1; + a15 = 1; + a27 = 1; + a3 = 4; + return -1; + } else if(((((((((a15==1)&&(((a12==8)&&(((input==3)&&(a3==6))&&(a4==1)))&&(a20==1)))&&(a0==1))&&!(a27==1))&&!(a22==1))&&(a18==1))&&!(a6==1))&&(a5==1))){ + a15 = 0; + a3 = 4; + a12 = 9; + a18 = 0; + a5 = 0; + return 24; + } else if(((((((a5==1)&&(!(a18==1)&&((a6==1)&&((a4==1)&&((((input==5)&&(a20==1))&&!(a0==1))&&!(a27==1))))))&&(a3==8))&&!(a15==1))&&(a12==11))&&!(a22==1))){ + a0 = 1; + a15 = 1; + a27 = 1; + a3 = 6; + a12 = 8; + a22 = 1; + return 26; + } else if((!(a6==1)&&((a0==1)&&((!(a4==1)&&((a5==1)&&((a22==1)&&((((((a3==7)&&(input==4))&&(a12==11))&&!(a18==1))&&(a20==1))&&!(a27==1)))))&&!(a15==1))))){ + a15 = 1; + a22 = 0; + a27 = 1; + return -1; + } else if((!(a22==1)&&(((!(a15==1)&&((a20==1)&&((a27==1)&&((a4==1)&&((a0==1)&&((a18==1)&&((a12==10)&&((a3==5)&&(input==4)))))))))&&(a5==1))&&(a6==1)))){ + a27 = 0; + a5 = 0; + a12 = 9; + return 21; + } else if((((!(a6==1)&&((a12==8)&&(((!(a27==1)&&(((a5==1)&&((input==1)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a0==1)))&&(a20==1))&&(a15==1))))&&!(a4==1))&&(a3==7))){ + a22 = 1; + a3 = 4; + a6 = 1; + a27 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if(((a6==1)&&((!(a5==1)&&((((((a0==1)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==5)))&&(a12==11))&&(a20==1))&&(a27==1))&&(a15==1)))&&!(a4==1)))){ + a27 = 0; + a18 = 0; + a22 = 0; + a3 = 4; + a4 = 1; + return 21; + } else if(((a4==1)&&((a20==1)&&((a5==1)&&(((a6==1)&&((a12==12)&&(!(a15==1)&&((a27==1)&&((!(a22==1)&&((a3==4)&&(input==2)))&&(a0==1))))))&&(a18==1)))))){ + a18 = 0; + a12 = 11; + a0 = 0; + a6 = 0; + a3 = 5; + a22 = 1; + return 21; + } else if(((a4==1)&&((a12==12)&&(!(a27==1)&&((a0==1)&&((a6==1)&&(!(a5==1)&&((!(a15==1)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==1)))&&(a20==1))))))))){ + a27 = 1; + a12 = 10; + a3 = 6; + a0 = 0; + a22 = 1; + a4 = 0; + a18 = 1; + return 26; + } else if((((!(a27==1)&&(((a20==1)&&((((((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))||((a3==8)&&(!(a18==1)&&(a22==1))))&&(input==5))&&(a4==1))&&!(a6==1))&&(a5==1)))&&(a12==12)))&&!(a15==1))&&(a0==1))){ + a3 = 4; + a15 = 1; + a22 = 1; + a12 = 8; + a27 = 1; + a18 = 1; + a6 = 1; + return -1; + } else if((!(a6==1)&&((((a20==1)&&((a22==1)&&((a12==11)&&(!(a4==1)&&(((a0==1)&&((a3==7)&&((input==2)&&((a18==1)||!(a18==1)))))&&(a27==1))))))&&(a15==1))&&(a5==1)))){ + a15 = 0; + a12 = 10; + a18 = 1; + a3 = 4; + a5 = 0; + a27 = 0; + return 26; + } else if(((a20==1)&&((a15==1)&&((!(a4==1)&&(!(a0==1)&&(((a6==1)&&(!(a27==1)&&((input==6)&&((((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))||(((a22==1)&&(a18==1))&&(a3==5))))))&&(a5==1))))&&(a12==8))))){ + a3 = 5; + a27 = 1; + a0 = 1; + a22 = 0; + a18 = 1; + return -1; + } else if((!(a27==1)&&((a20==1)&&(!(a0==1)&&((a12==10)&&((input==6)&&(((a6==1)&&(((a4==1)&&((!(a5==1)&&((a22==1)&&!(a18==1)))&&(a15==1)))&&(a3==4)))||((!(a6==1)&&(((!(a15==1)&&((a5==1)&&(!(a22==1)&&!(a18==1))))&&!(a4==1))&&(a3==8)))||((a6==1)&&(((a4==1)&&((a15==1)&&(!(a5==1)&&((a18==1)&&(a22==1)))))&&(a3==4))))))))))){ + a0 = 1; + a22 = 0; + a3 = 6; + a4 = 1; + a18 = 1; + a6 = 0; + a5 = 1; + a12 = 8; + a27 = 1; + a15 = 1; + return -1; + } else if((!(a6==1)&&(!(a4==1)&&((((a12==9)&&((a5==1)&&((a3==8)&&(((a27==1)&&((input==2)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))))&&(a0==1)))))&&(a20==1))&&(a15==1))))){ + a18 = 1; + a22 = 1; + a4 = 1; + a12 = 8; + a6 = 1; + a3 = 4; + return -1; + } else if((!(a15==1)&&(!(a6==1)&&(!(a5==1)&&(((a20==1)&&(((!(a0==1)&&((((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==1)))&&(a27==1))&&(a4==1)))&&(a12==11)))))){ + a5 = 1; + a12 = 12; + a18 = 1; + a22 = 0; + a15 = 1; + a0 = 1; + a6 = 1; + a3 = 6; + return 26; + } else if(((a6==1)&&((((!(a4==1)&&(((a5==1)&&((a12==10)&&((input==6)&&(((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8))))))&&(a20==1)))&&!(a15==1))&&(a27==1))&&(a0==1)))){ + a22 = 1; + a5 = 0; + a18 = 0; + a3 = 7; + a6 = 0; + a27 = 0; + a12 = 9; + return 26; + } else if((((a3==5)&&(!(a15==1)&&(!(a27==1)&&((a6==1)&&((((a12==10)&&((!(a22==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&!(a5==1)))&&(a4==1))&&(a20==1))))))&&!(a0==1))){ + if((a6==1)){ + a5 = 1; + a3 = 4; + a0 = 1; + a27 = 1; + a4 = 0; + a18 = 0; + a15 = 1; + a12 = 8; + }else{ + a12 = 8; + a0 = 1; + a18 = 0; + a3 = 6; + a5 = 1; + a15 = 1; + a27 = 1; + } + return -1; + } else if(((((a20==1)&&((((((a0==1)&&(!(a5==1)&&((a22==1)&&(!(a4==1)&&(input==3)))))&&(a15==1))&&(a12==12))&&!(a6==1))&&(a18==1)))&&(a3==8))&&!(a27==1))){ + a15 = 0; + a22 = 0; + a12 = 11; + a5 = 1; + a3 = 6; + return 21; + } else if((((a3==8)&&(((!(a0==1)&&((!(a6==1)&&(((a12==8)&&((a15==1)&&(!(a22==1)&&(input==1))))&&(a20==1)))&&(a27==1)))&&(a18==1))&&(a5==1)))&&(a4==1))){ + a3 = 4; + a22 = 1; + a0 = 1; + a6 = 1; + return -1; + } else if(((a4==1)&&(((!(a5==1)&&((a6==1)&&(!(a15==1)&&((a27==1)&&((a12==8)&&((input==1)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))||((a3==6)&&((a22==1)&&!(a18==1))))))))))&&(a0==1))&&(a20==1)))){ + a3 = 6; + a22 = 0; + a15 = 1; + a6 = 0; + a4 = 0; + a18 = 0; + a12 = 10; + return 21; + } else if(((a0==1)&&((a12==9)&&(((a20==1)&&(!(a5==1)&&((((!(a6==1)&&((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1)))))||(((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1)))&&(a6==1)))&&(input==2))&&(a27==1))))&&(a15==1))))){ + a4 = 0; + a18 = 1; + a5 = 1; + a22 = 1; + a15 = 0; + a12 = 10; + a6 = 1; + a3 = 8; + return 26; + } else if((!(a6==1)&&((!(a5==1)&&((a0==1)&&((a3==4)&&(((((a12==11)&&((input==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))))&&(a4==1))&&(a20==1))&&!(a15==1)))))&&(a27==1)))){ + a15 = 1; + a18 = 0; + a12 = 10; + a22 = 0; + a4 = 0; + a6 = 1; + a3 = 7; + return 21; + } else if(((a3==8)&&(!(a5==1)&&((a0==1)&&(((((a18==1)&&((a15==1)&&((a4==1)&&((a20==1)&&((a12==12)&&(input==1))))))&&!(a6==1))&&!(a22==1))&&!(a27==1)))))){ + a5 = 1; + a6 = 1; + a18 = 0; + a15 = 0; + a27 = 1; + return -1; + } else if(((((a20==1)&&(!(a0==1)&&(((a5==1)&&(((((((a22==1)&&!(a18==1))&&(a3==8))||(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8))))&&(input==4))&&(a15==1))&&(a27==1)))&&(a12==9))))&&!(a6==1))&&(a4==1))){ + if((a27==1)){ + a22 = 1; + a4 = 0; + a3 = 7; + a18 = 0; + a5 = 0; + a12 = 11; + }else{ + a18 = 0; + a22 = 1; + a5 = 0; + a12 = 11; + a0 = 1; + a3 = 6; + } + return 21; + } else if((!(a6==1)&&((a0==1)&&(!(a27==1)&&(((((((a12==10)&&((input==1)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))))&&!(a15==1))&&(a20==1))&&!(a5==1))&&(a4==1))&&(a3==8)))))){ + a12 = 9; + a3 = 7; + a22 = 0; + a5 = 1; + a18 = 1; + return 26; + } else if((((a20==1)&&((((((((((input==6)&&(a0==1))&&(a15==1))&&(a3==6))&&(a12==10))&&!(a18==1))&&!(a22==1))&&!(a5==1))&&(a27==1))&&!(a6==1)))&&!(a4==1))){ + a22 = 1; + a5 = 1; + a4 = 1; + a18 = 1; + a12 = 8; + a6 = 1; + a3 = 4; + return -1; + } else if(((a15==1)&&((a3==7)&&((a6==1)&&(((((a20==1)&&((((input==3)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&!(a4==1))&&!(a5==1)))&&!(a0==1))&&(a12==11))&&(a27==1)))))){ + a3 = 5; + a22 = 1; + a4 = 1; + a12 = 10; + a15 = 0; + a0 = 1; + a18 = 1; + return -1; + } else if((((a20==1)&&(((a6==1)&&((!(a0==1)&&((((input==6)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))||(((a22==1)&&!(a18==1))&&(a3==6))))&&(a15==1))&&(a5==1)))&&(a12==10)))&&(a27==1)))&&!(a4==1))){ + a0 = 1; + a12 = 8; + a3 = 4; + a4 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if((((a6==1)&&((a5==1)&&((((a12==10)&&((((input==5)&&(((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7))))&&(a20==1))&&!(a15==1)))&&(a0==1))&&!(a27==1))))&&!(a4==1))){ + a15 = 1; + a3 = 6; + a6 = 0; + a22 = 1; + a27 = 1; + a18 = 1; + a5 = 0; + a4 = 1; + return -1; + } else if(((((a20==1)&&(!(a6==1)&&(((a5==1)&&((((input==2)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7))))&&!(a4==1))&&!(a27==1)))&&(a12==10))))&&(a15==1))&&(a0==1))){ + a4 = 1; + a6 = 1; + a3 = 4; + a22 = 1; + a15 = 0; + a5 = 0; + a18 = 1; + return 26; + } return calculate_output54(input); + } + + int calculate_output54(int input) { + if((!(a15==1)&&(((a27==1)&&(((!(a0==1)&&(((a5==1)&&((a12==12)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==4))))&&(a20==1)))&&(a6==1))&&!(a4==1)))&&(a3==5)))){ + if((a4==1)){ + a22 = 0; + a18 = 1; + a4 = 1; + a3 = 8; + a0 = 1; + a5 = 0; + }else{ + a18 = 0; + a4 = 1; + a22 = 0; + a3 = 4; + a0 = 1; + a15 = 1; + a12 = 8; + a27 = 0; + } + return -1; + } else if((((((a0==1)&&((!(a27==1)&&(((a12==12)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==4)))&&!(a15==1)))&&!(a5==1)))&&(a4==1))&&(a6==1))&&(a20==1))){ + a6 = 0; + a4 = 0; + a27 = 1; + a12 = 10; + a15 = 1; + a18 = 0; + a3 = 7; + a22 = 1; + return -1; + } else if((!(a6==1)&&((((((!(a5==1)&&(((input==1)&&((((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==6))))&&(a12==10)))&&!(a4==1))&&!(a27==1))&&(a0==1))&&(a20==1))&&!(a15==1)))){ + a4 = 1; + a22 = 0; + a18 = 1; + a15 = 1; + a12 = 9; + a3 = 6; + return -1; + } else if(((((a6==1)&&((a20==1)&&(((a15==1)&&(((a5==1)&&(!(a18==1)&&(!(a22==1)&&((input==1)&&(a12==8)))))&&(a3==6)))&&!(a0==1))))&&(a27==1))&&!(a4==1))){ + a0 = 1; + a22 = 1; + a4 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((!(a15==1)&&((((a4==1)&&((a27==1)&&(((a20==1)&&((input==5)&&((((a22==1)&&(a18==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a22==1)&&!(a18==1)))))))&&(a0==1))))&&(a12==9))&&(a5==1)))&&(a6==1))){ + a3 = 8; + a12 = 10; + a22 = 0; + a6 = 0; + a18 = 1; + a4 = 0; + return 21; + } else if(((a15==1)&&(((a18==1)&&((a4==1)&&((a12==11)&&((a5==1)&&(!(a6==1)&&(((((input==1)&&(a3==4))&&!(a0==1))&&!(a22==1))&&(a27==1)))))))&&(a20==1)))){ + a12 = 12; + a0 = 1; + a27 = 0; + a6 = 1; + a4 = 0; + return 26; + } else if(((((((a0==1)&&(((a27==1)&&(((((input==2)&&((a18==1)||!(a18==1)))&&(a15==1))&&(a3==8))&&!(a22==1)))&&!(a5==1)))&&(a12==8))&&(a20==1))&&(a4==1))&&(a6==1))){ + a22 = 1; + a4 = 0; + a18 = 0; + a15 = 0; + a3 = 7; + a12 = 9; + return 21; + } else if(((a12==10)&&(!(a6==1)&&(((a4==1)&&(!(a27==1)&&(((a0==1)&&(!(a5==1)&&((a3==4)&&((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))&&(a20==1))))&&!(a15==1))))){ + a6 = 1; + a18 = 1; + a22 = 1; + a15 = 1; + a5 = 1; + a12 = 8; + a27 = 1; + return -1; + } else if(((a12==12)&&((a20==1)&&(!(a15==1)&&((((a4==1)&&((((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==3))&&(a6==1))&&!(a27==1)))&&(a0==1))&&!(a5==1)))))){ + a12 = 10; + a3 = 5; + a27 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if((!(a5==1)&&(!(a4==1)&&((a20==1)&&((a27==1)&&(((!(a0==1)&&((a15==1)&&((input==5)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a18==1)&&(a22==1)))))))&&!(a6==1))&&(a12==12))))))){ + a18 = 1; + a3 = 6; + a22 = 0; + a5 = 1; + a6 = 1; + return 21; + } else if(((((a0==1)&&((!(a6==1)&&((a5==1)&&((a20==1)&&((((input==2)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&(a27==1))&&(a3==8)))))&&(a12==12)))&&(a4==1))&&!(a15==1))){ + a4 = 0; + a18 = 0; + a5 = 0; + a3 = 4; + a6 = 1; + a22 = 1; + a27 = 0; + return -1; + } else if(((a5==1)&&(((a12==11)&&(!(a4==1)&&((a0==1)&&((a20==1)&&(((!(a22==1)&&(!(a18==1)&&((input==2)&&(a6==1))))&&(a3==7))&&!(a15==1))))))&&(a27==1)))){ + a12 = 8; + a4 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + a15 = 1; + return -1; + } else if(((a20==1)&&((((!(a4==1)&&(!(a0==1)&&((a12==8)&&((a27==1)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==3))))))&&(a15==1))&&!(a5==1))&&!(a6==1)))){ + a15 = 0; + a4 = 1; + a12 = 9; + a5 = 1; + a3 = 6; + a27 = 0; + a22 = 0; + a0 = 1; + a18 = 0; + return 26; + } else if((((!(a27==1)&&(((a4==1)&&(!(a5==1)&&((a12==10)&&((((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))||((!(a18==1)&&(a22==1))&&(a3==7)))&&(input==3))&&!(a6==1)))))&&(a20==1)))&&!(a15==1))&&!(a0==1))){ + a3 = 7; + a15 = 1; + a22 = 0; + a18 = 1; + a12 = 11; + a27 = 1; + a6 = 1; + a4 = 0; + return 21; + } else if((((a20==1)&&(((((a12==11)&&((a27==1)&&((input==6)&&(((((a22==1)&&!(a18==1))&&(a3==4))&&!(a6==1))||(((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1)))))))&&(a15==1))&&(a4==1))&&!(a5==1)))&&!(a0==1))){ + a5 = 1; + a0 = 1; + a27 = 0; + a4 = 0; + a3 = 6; + a6 = 1; + a12 = 12; + a18 = 0; + a22 = 1; + a15 = 0; + return 21; + } else if(((a20==1)&&(!(a5==1)&&((a12==11)&&(!(a15==1)&&(!(a27==1)&&((!(a6==1)&&((!(a0==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==1)))&&(a3==4)))&&!(a4==1)))))))){ + if((a22==1)){ + a12 = 12; + a6 = 1; + a22 = 1; + a4 = 1; + a18 = 1; + a3 = 7; + a0 = 1; + a15 = 1; + }else{ + a6 = 1; + a3 = 5; + a22 = 1; + a12 = 8; + a4 = 1; + a0 = 1; + a18 = 1; + } + return 24; + } else if((((a20==1)&&((a3==7)&&((a5==1)&&(!(a27==1)&&((a6==1)&&((((a15==1)&&((input==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))))&&(a4==1))&&(a0==1)))))))&&(a12==11))){ + a5 = 0; + a15 = 0; + a3 = 8; + a18 = 1; + a22 = 1; + return 21; + } else if((!(a5==1)&&(((a3==8)&&(((a0==1)&&((a15==1)&&(((a4==1)&&((((input==6)&&((a18==1)||!(a18==1)))&&(a12==10))&&(a6==1)))&&(a20==1))))&&(a22==1)))&&(a27==1)))){ + a3 = 7; + a18 = 0; + a22 = 0; + a4 = 0; + return 21; + } else if((!(a27==1)&&((!(a4==1)&&(!(a15==1)&&((a20==1)&&((a12==11)&&((!(a0==1)&&((((input==1)&&((a18==1)||!(a18==1)))&&(a22==1))&&!(a6==1)))&&!(a5==1))))))&&(a3==5)))){ + a15 = 1; + a5 = 1; + a27 = 1; + a4 = 1; + a22 = 0; + a3 = 7; + a0 = 1; + a12 = 8; + a18 = 1; + a6 = 1; + return -1; + } else if((((a12==10)&&((a3==4)&&((((!(a22==1)&&((!(a18==1)&&(((input==5)&&!(a6==1))&&!(a4==1)))&&(a5==1)))&&(a27==1))&&(a0==1))&&(a20==1))))&&!(a15==1))){ + if((a15==1)){ + a6 = 1; + a15 = 1; + a3 = 5; + a18 = 1; + a0 = 0; + a12 = 11; + }else{ + a4 = 1; + a18 = 1; + a15 = 1; + a6 = 1; + a3 = 8; + a27 = 0; + } + return 21; + } else if((((a15==1)&&((((a4==1)&&(((a6==1)&&((a20==1)&&((input==1)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6))))))&&(a12==10)))&&!(a0==1))&&!(a5==1)))&&(a27==1))){ + a22 = 1; + a18 = 1; + a3 = 4; + a5 = 1; + a0 = 1; + a12 = 8; + return -1; + } else if((!(a18==1)&&((!(a4==1)&&(((a27==1)&&((a20==1)&&((a3==4)&&(!(a22==1)&&((a12==10)&&(((input==1)&&(a15==1))&&!(a5==1)))))))&&!(a0==1)))&&(a6==1)))){ + a18 = 1; + a15 = 0; + a4 = 1; + a5 = 1; + a0 = 1; + a3 = 8; + a22 = 1; + a12 = 11; + return 24; + } else if(((a5==1)&&((a12==9)&&((((a15==1)&&(((((((input==2)&&(a18==1))&&(a20==1))&&!(a4==1))&&(a0==1))&&(a3==6))&&!(a22==1)))&&(a6==1))&&!(a27==1))))){ + a12 = 11; + a27 = 1; + a18 = 0; + a0 = 0; + a5 = 0; + return 21; + } else if(((a3==7)&&((a6==1)&&(((a20==1)&&(!(a4==1)&&((a12==12)&&(!(a0==1)&&(((a15==1)&&((a27==1)&&(((a18==1)||!(a18==1))&&(input==1))))&&(a5==1))))))&&(a22==1))))){ + a12 = 8; + a27 = 0; + a15 = 0; + a3 = 5; + a0 = 1; + a18 = 1; + return 21; + } else if((((!(a5==1)&&((a20==1)&&(!(a15==1)&&(!(a4==1)&&(((input==2)&&((((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4)))))&&(a27==1))))))&&(a12==12))&&(a0==1))){ + a15 = 1; + a18 = 1; + a5 = 1; + a6 = 0; + a12 = 9; + a22 = 0; + a27 = 0; + a3 = 5; + return 21; + } else if((!(a15==1)&&(((((a12==9)&&((a3==8)&&(((((input==4)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&(a0==1))&&(a6==1))&&!(a27==1))))&&(a20==1))&&(a5==1))&&(a4==1)))){ + a18 = 0; + a5 = 0; + a6 = 0; + a3 = 6; + a4 = 0; + a12 = 8; + a27 = 1; + a22 = 1; + a0 = 0; + return 24; + } else if((((((((input==2)&&((((a3==4)&&((!(a15==1)&&((a22==1)&&(a18==1)))&&(a4==1)))&&(a6==1))||((((a3==8)&&(!(a4==1)&&((a15==1)&&((a18==1)&&!(a22==1)))))&&!(a6==1))||(((a3==8)&&(!(a4==1)&&((!(a22==1)&&!(a18==1))&&(a15==1))))&&!(a6==1)))))&&(a20==1))&&(a5==1))&&(a12==9))&&!(a0==1))&&!(a27==1))){ + a27 = 1; + a12 = 8; + a0 = 1; + a6 = 1; + a18 = 0; + a22 = 0; + a3 = 4; + a15 = 1; + a4 = 1; + return -1; + } else if((((a27==1)&&((a6==1)&&(((((!(a5==1)&&((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==6))&&!(a15==1)))&&(a0==1))&&(a4==1))&&(a3==7))&&(a12==10))))&&(a20==1))){ + a5 = 1; + a22 = 0; + a15 = 1; + a12 = 11; + a18 = 0; + a3 = 8; + a6 = 0; + return 26; + } else if(((a0==1)&&(((!(a5==1)&&(((a3==4)&&(((a18==1)&&((((a12==8)&&(input==1))&&(a20==1))&&!(a6==1)))&&(a22==1)))&&!(a15==1)))&&(a27==1))&&(a4==1)))){ + if((a5==1)){ + a18 = 0; + a3 = 7; + a4 = 0; + a6 = 1; + a0 = 0; + a12 = 11; + }else{ + a4 = 0; + a22 = 0; + a15 = 1; + a5 = 1; + a12 = 12; + a0 = 0; + a3 = 8; + a6 = 1; + } + return 26; + } else if(((((a3==6)&&((((!(a6==1)&&((a12==11)&&((a27==1)&&((!(a0==1)&&(input==4))&&!(a15==1)))))&&!(a18==1))&&(a22==1))&&(a20==1)))&&!(a5==1))&&(a4==1))){ + a6 = 1; + a0 = 1; + a18 = 1; + a22 = 0; + a12 = 10; + a3 = 7; + a15 = 1; + return 26; + } else if((!(a15==1)&&(!(a4==1)&&((a27==1)&&((a12==9)&&((((((a3==8)&&((input==2)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))))&&!(a0==1))&&!(a6==1))&&(a20==1))&&!(a5==1))))))){ + a6 = 1; + a27 = 0; + a4 = 1; + a18 = 1; + a5 = 1; + a0 = 1; + a3 = 5; + a15 = 1; + a22 = 0; + return 26; + } else if(((a27==1)&&(((a12==11)&&((a20==1)&&((((a15==1)&&(!(a18==1)&&((a22==1)&&(((input==6)&&!(a4==1))&&(a3==8)))))&&!(a5==1))&&!(a6==1))))&&(a0==1)))){ + a6 = 1; + a22 = 0; + a3 = 6; + a27 = 0; + a18 = 1; + return 26; + } else if(((a12==9)&&(((((a3==8)&&(((a5==1)&&((a20==1)&&(!(a0==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a22==1)))))&&!(a15==1)))&&!(a6==1))&&(a27==1))&&!(a4==1)))){ + a15 = 1; + a3 = 4; + a4 = 1; + a0 = 1; + a18 = 0; + return 21; + } else if(((a15==1)&&((a3==8)&&((a20==1)&&(((a12==8)&&(((!(a5==1)&&(((input==1)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&!(a27==1)))&&(a4==1))&&!(a6==1)))&&(a0==1)))))){ + a27 = 1; + a3 = 5; + a4 = 0; + a22 = 1; + a18 = 0; + a5 = 1; + a12 = 12; + return 21; + } else if((((a3==4)&&(((a15==1)&&((!(a27==1)&&((((a22==1)&&(((a5==1)&&(input==1))&&(a4==1)))&&(a12==10))&&(a20==1)))&&(a6==1)))&&!(a18==1)))&&!(a0==1))){ + a3 = 8; + a22 = 0; + a27 = 1; + a18 = 1; + a12 = 11; + return 26; + } else if(((((!(a5==1)&&(((a12==8)&&((a4==1)&&(!(a0==1)&&((a27==1)&&((input==3)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))))&&!(a15==1)))&&(a20==1))&&(a6==1))&&(a3==6))){ + a0 = 1; + a12 = 10; + a15 = 1; + a27 = 0; + a22 = 1; + a18 = 0; + a3 = 7; + return 26; + } else if((!(a4==1)&&((a12==11)&&((a6==1)&&(!(a27==1)&&((!(a18==1)&&(((a20==1)&&(((a22==1)&&((input==4)&&!(a0==1)))&&(a3==8)))&&!(a15==1)))&&!(a5==1))))))){ + a3 = 7; + a12 = 8; + a27 = 1; + a18 = 1; + a15 = 1; + a5 = 1; + a0 = 1; + return 21; + } else if((((a0==1)&&((((a4==1)&&((a6==1)&&(((a20==1)&&(!(a27==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==4))))&&!(a15==1))))&&(a3==8))&&!(a5==1)))&&(a12==11))){ + a3 = 4; + a12 = 8; + a15 = 1; + a18 = 1; + a27 = 1; + a5 = 1; + a22 = 1; + return -1; + } else if((!(a4==1)&&(((((!(a15==1)&&(!(a0==1)&&((a12==11)&&((((a3==8)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==7))||((a3==7)&&(!(a18==1)&&!(a22==1)))))&&(input==2)))))&&!(a5==1))&&(a6==1))&&(a20==1))&&!(a27==1)))){ + if((a20==1)){ + a3 = 4; + a27 = 1; + a12 = 8; + a22 = 0; + a18 = 1; + a15 = 1; + a4 = 1; + a5 = 1; + a0 = 1; + }else{ + a0 = 1; + a22 = 1; + a18 = 1; + a3 = 7; + a5 = 1; + a12 = 8; + a15 = 1; + a27 = 1; + } + return -1; + } else if((!(a15==1)&&(((((a6==1)&&((a3==7)&&((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&!(a5==1))&&!(a27==1))&&(a4==1))))&&(a12==8))&&(a0==1))&&(a20==1)))){ + a6 = 0; + a3 = 8; + a12 = 12; + a4 = 0; + a18 = 1; + a22 = 1; + return 26; + } else if((((a0==1)&&(((!(a5==1)&&((!(a6==1)&&(((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==6))&&(a3==5))&&!(a4==1)))&&(a15==1)))&&(a20==1))&&!(a27==1)))&&(a12==11))){ + a3 = 6; + a18 = 1; + a4 = 1; + a12 = 10; + a22 = 1; + a6 = 1; + return -1; + } else if(((((!(a6==1)&&((a4==1)&&(!(a5==1)&&(!(a15==1)&&(((input==3)&&(((!(a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5)))))&&(a0==1))))))&&(a12==11))&&(a20==1))&&!(a27==1))){ + a0 = 0; + a22 = 0; + a27 = 1; + a12 = 10; + a3 = 7; + a4 = 0; + a18 = 1; + return -1; + } else if(((a12==12)&&((((((!(a15==1)&&(((((input==1)&&(a3==8))&&(a0==1))&&(a20==1))&&!(a18==1)))&&(a4==1))&&(a6==1))&&!(a5==1))&&!(a22==1))&&(a27==1)))){ + a6 = 0; + a12 = 11; + a4 = 0; + a5 = 1; + a3 = 5; + return 24; + } else if(((((((a27==1)&&(!(a4==1)&&(!(a6==1)&&(!(a0==1)&&(((input==2)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&!(a15==1))))))&&(a3==4))&&(a5==1))&&(a20==1))&&(a12==12))){ + if((a5==1)){ + a22 = 0; + a3 = 7; + a27 = 0; + a15 = 1; + a18 = 0; + a6 = 1; + a12 = 11; + }else{ + a18 = 0; + a3 = 6; + a12 = 8; + a0 = 1; + a4 = 1; + a22 = 0; + a15 = 1; + } + return -1; + } else if(((a22==1)&&((a4==1)&&(((!(a27==1)&&((((a0==1)&&(((a12==11)&&((input==1)&&(a6==1)))&&(a20==1)))&&(a15==1))&&(a3==7)))&&!(a5==1))&&!(a18==1))))){ + a12 = 9; + a6 = 0; + a27 = 1; + a0 = 0; + a18 = 1; + return 26; + } else if((((a4==1)&&(((((a15==1)&&((a27==1)&&(((input==5)&&((((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==6)))||((a3==7)&&((a22==1)&&(a18==1)))))&&(a6==1))))&&(a0==1))&&(a20==1))&&!(a5==1)))&&(a12==12))){ + a0 = 0; + a6 = 0; + a18 = 0; + a22 = 0; + a3 = 5; + a15 = 0; + a5 = 1; + a12 = 11; + return 26; + } else if(((a12==11)&&(!(a4==1)&&(!(a5==1)&&(!(a15==1)&&((a0==1)&&(((((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==4))&&(a6==1))&&(a20==1))&&(a27==1)))))))){ + a18 = 1; + a4 = 1; + a22 = 1; + a5 = 1; + a12 = 8; + a3 = 4; + a15 = 1; + return -1; + } else if(((((a22==1)&&(((a18==1)&&((((a20==1)&&((a0==1)&&(((a4==1)&&(input==3))&&(a15==1))))&&(a12==9))&&(a27==1)))&&(a5==1)))&&!(a6==1))&&(a3==8))){ + a3 = 6; + a6 = 1; + a15 = 0; + a12 = 12; + return 24; + } else if((((((a6==1)&&((((a12==8)&&((((!(a18==1)&&(input==1))&&(a22==1))&&!(a0==1))&&(a15==1)))&&(a3==8))&&(a20==1)))&&(a5==1))&&(a4==1))&&!(a27==1))){ + if((a27==1)){ + a4 = 0; + a3 = 7; + a27 = 1; + a0 = 1; + }else{ + a15 = 0; + a18 = 1; + a6 = 0; + a3 = 6; + a4 = 0; + } + return -1; + } else if(((a15==1)&&(((((!(a27==1)&&(!(a5==1)&&((input==6)&&((((!(a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))||((((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1)))))))&&!(a0==1))&&!(a4==1))&&(a20==1))&&(a12==11)))){ + a12 = 8; + a5 = 1; + a27 = 1; + a18 = 0; + a0 = 1; + a4 = 1; + a6 = 1; + a22 = 1; + a3 = 8; + return 26; + } else if((!(a5==1)&&((!(a15==1)&&(((a12==11)&&((a20==1)&&((((input==3)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7))))&&(a0==1))&&(a4==1))))&&(a27==1)))&&!(a6==1)))){ + a3 = 4; + a6 = 1; + a18 = 0; + a12 = 10; + a5 = 1; + a22 = 1; + return 26; + } else if(((a27==1)&&((!(a4==1)&&(((a20==1)&&((a15==1)&&(!(a5==1)&&(!(a0==1)&&((input==4)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1)))))))))&&(a12==8)))&&!(a6==1)))){ + a3 = 4; + a18 = 0; + a4 = 1; + a12 = 12; + a0 = 1; + a22 = 1; + return 26; + } else if(((a22==1)&&(((a20==1)&&((((a0==1)&&(!(a15==1)&&(((((input==1)&&((a18==1)||!(a18==1)))&&(a12==11))&&(a5==1))&&(a6==1))))&&(a4==1))&&!(a27==1)))&&(a3==5)))){ + a6 = 0; + a12 = 12; + a3 = 8; + a18 = 1; + a27 = 1; + return 24; + } else if((!(a6==1)&&((a3==6)&&((((a12==10)&&(!(a18==1)&&((a27==1)&&((a15==1)&&((((input==1)&&(a20==1))&&(a0==1))&&(a22==1))))))&&(a4==1))&&!(a5==1))))){ + if((a0==1)){ + a5 = 1; + a0 = 0; + a12 = 11; + a22 = 0; + a4 = 0; + a3 = 4; + a18 = 1; + a15 = 0; + }else{ + a22 = 0; + a18 = 1; + a3 = 7; + a5 = 1; + } + return -1; + } else if((((a0==1)&&(((a20==1)&&((a3==6)&&((a4==1)&&(((a12==11)&&((a27==1)&&(!(a5==1)&&((input==5)&&!(a15==1)))))&&(a18==1)))))&&!(a6==1)))&&!(a22==1))){ + a27 = 0; + a6 = 1; + a3 = 7; + a22 = 1; + return 26; + } else if(((!(a5==1)&&((a3==4)&&((a6==1)&&(((((!(a15==1)&&((input==5)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))&&(a12==8))&&(a27==1))&&(a20==1))&&!(a4==1)))))&&(a0==1))){ + a3 = 7; + a4 = 1; + a5 = 1; + a22 = 1; + a18 = 1; + a12 = 11; + return 26; + } else if(((a15==1)&&((!(a6==1)&&((((a12==11)&&((a0==1)&&(!(a27==1)&&((a5==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&(a22==1))))))&&!(a4==1))&&(a3==5)))&&(a20==1)))){ + a4 = 1; + a12 = 9; + a22 = 0; + a5 = 0; + a3 = 7; + a18 = 1; + return -1; + } else if((!(a5==1)&&((a4==1)&&((((a20==1)&&((a6==1)&&(!(a27==1)&&((a0==1)&&((input==4)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5))))))))&&(a12==11))&&(a15==1))))){ + a18 = 1; + a5 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + a27 = 1; + return -1; + } else if((((a0==1)&&((a5==1)&&(((a12==9)&&(((a15==1)&&(((a4==1)&&((((a18==1)||!(a18==1))&&(input==2))&&!(a22==1)))&&(a3==8)))&&(a6==1)))&&!(a27==1))))&&(a20==1))){ + a5 = 0; + a12 = 12; + a27 = 1; + a3 = 6; + a6 = 0; + a18 = 1; + return 21; + } else if(((a5==1)&&(!(a4==1)&&((a6==1)&&(((a20==1)&&((!(a0==1)&&((a12==11)&&((((!(a18==1)&&(a22==1))&&(a3==6))||(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1)))))&&(input==3))))&&!(a15==1)))&&!(a27==1)))))){ + a3 = 4; + a27 = 1; + a22 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + a15 = 1; + return 21; + } else if((!(a6==1)&&(((a15==1)&&((a12==9)&&((a22==1)&&((a18==1)&&((a4==1)&&((a5==1)&&((((input==4)&&!(a0==1))&&(a3==6))&&!(a27==1))))))))&&(a20==1)))){ + if((a0==1)){ + a12 = 8; + a0 = 1; + a22 = 0; + a27 = 1; + a18 = 0; + }else{ + a15 = 0; + a5 = 0; + a0 = 1; + } + return 21; + } else if((!(a15==1)&&((((a27==1)&&(((a20==1)&&((((((input==3)&&(a12==11))&&!(a4==1))&&!(a18==1))&&!(a5==1))&&(a3==4)))&&(a6==1)))&&!(a22==1))&&(a0==1)))){ + a4 = 1; + a18 = 1; + a27 = 0; + a22 = 1; + a6 = 0; + a3 = 8; + return 26; + } else if((((!(a0==1)&&((a4==1)&&((((((a27==1)&&(((input==2)&&!(a6==1))&&(a3==8)))&&(a22==1))&&(a15==1))&&(a5==1))&&(a18==1))))&&(a12==12))&&(a20==1))){ + a22 = 0; + a6 = 1; + a3 = 6; + a12 = 11; + a5 = 0; + a0 = 1; + a15 = 0; + a4 = 0; + return 26; + } else if(((a6==1)&&((a12==10)&&(((((a27==1)&&(((a3==7)&&((!(a0==1)&&((a22==1)&&(input==5)))&&(a4==1)))&&!(a5==1)))&&(a18==1))&&(a20==1))&&(a15==1))))){ + a27 = 0; + a6 = 0; + a0 = 1; + a3 = 6; + a22 = 0; + a4 = 0; + a12 = 9; + a15 = 0; + a5 = 1; + return 21; + } else if(((((!(a15==1)&&(((a6==1)&&((!(a0==1)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==1)))&&(a12==9)))&&(a5==1)))&&(a4==1))&&(a20==1))&&!(a27==1))){ + if((a22==1)){ + a22 = 0; + a3 = 5; + a12 = 10; + a15 = 1; + a18 = 0; + }else{ + a27 = 1; + a15 = 1; + a18 = 1; + a12 = 8; + a3 = 6; + a22 = 1; + a0 = 1; + } + return -1; + } else if((((a3==6)&&((a4==1)&&((!(a5==1)&&((!(a27==1)&&(((!(a15==1)&&((a12==9)&&(input==6)))&&(a22==1))&&(a20==1)))&&!(a6==1)))&&(a0==1))))&&!(a18==1))){ + a5 = 1; + a4 = 0; + a18 = 1; + a22 = 0; + a6 = 1; + return -1; + } else if((((((((((a6==1)&&((!(a27==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a5==1)))&&!(a22==1))&&!(a4==1))&&(a15==1))&&(a3==8))&&(a20==1))&&(a12==8))&&(a0==1))){ + a27 = 1; + a12 = 12; + a4 = 1; + a15 = 0; + a18 = 0; + a6 = 0; + return -1; + } else if(((((!(a0==1)&&((a20==1)&&((a27==1)&&(((!(a15==1)&&((((a18==1)||!(a18==1))&&(input==6))&&(a3==8)))&&(a5==1))&&(a12==9)))))&&(a6==1))&&!(a4==1))&&!(a22==1))){ + a18 = 1; + a3 = 4; + a4 = 1; + a0 = 1; + a22 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if(((a0==1)&&((!(a4==1)&&(((((((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==5))&&(a12==12))&&(a6==1))&&!(a27==1))&&(a20==1))&&(a15==1))&&(a3==8)))&&(a5==1)))){ + a12 = 11; + a27 = 1; + a18 = 1; + a6 = 0; + a22 = 1; + return 21; + } else if((((a3==8)&&((a0==1)&&(((a12==12)&&((((a15==1)&&((a22==1)&&(!(a27==1)&&((input==1)&&!(a6==1)))))&&(a4==1))&&!(a5==1)))&&(a20==1))))&&(a18==1))){ + a12 = 8; + a6 = 1; + a3 = 4; + a22 = 0; + a18 = 0; + a5 = 1; + return -1; + } else if(((!(a27==1)&&((a20==1)&&(((!(a15==1)&&((((a5==1)&&((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a4==1))&&(a12==11)))&&(a3==8))&&(a6==1))))&&!(a0==1))){ + a3 = 4; + a22 = 1; + a15 = 1; + a27 = 1; + a0 = 1; + a6 = 0; + a18 = 0; + a12 = 8; + return -1; + } else if((((a20==1)&&(((a5==1)&&(!(a4==1)&&((a3==5)&&((a18==1)&&((((a27==1)&&((a6==1)&&(input==6)))&&(a12==12))&&(a0==1))))))&&!(a22==1)))&&!(a15==1))){ + a22 = 1; + a27 = 0; + a4 = 1; + a6 = 0; + a3 = 4; + return 26; + } else if((((a20==1)&&((a5==1)&&(((!(a18==1)&&((a15==1)&&(!(a6==1)&&((a4==1)&&((a3==4)&&((input==4)&&(a22==1)))))))&&(a0==1))&&!(a27==1))))&&(a12==8))){ + a0 = 0; + a27 = 1; + a12 = 11; + a3 = 5; + a5 = 0; + a4 = 0; + a22 = 0; + return 24; + } else if((!(a5==1)&&(!(a6==1)&&((a3==6)&&((a0==1)&&((a20==1)&&(!(a18==1)&&((((a4==1)&&(((input==2)&&(a15==1))&&(a12==10)))&&(a27==1))&&(a22==1))))))))){ + a6 = 1; + a4 = 0; + a3 = 4; + a5 = 1; + return -1; + } else if(((a3==8)&&(!(a6==1)&&((a27==1)&&((((a15==1)&&(((a5==1)&&((a12==8)&&((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&(a20==1)))&&!(a4==1))&&!(a0==1)))))){ + a18 = 1; + a3 = 6; + a6 = 1; + a22 = 1; + a0 = 1; + a5 = 0; + return 21; + } else if((!(a22==1)&&(((a0==1)&&((((a20==1)&&((((((input==6)&&((a18==1)||!(a18==1)))&&(a12==10))&&!(a27==1))&&(a6==1))&&!(a15==1)))&&!(a4==1))&&(a3==4)))&&!(a5==1)))){ + a3 = 6; + a12 = 11; + a6 = 0; + a15 = 1; + a18 = 0; + a4 = 1; + return 21; + } else if(((((a12==8)&&(!(a4==1)&&((a27==1)&&(!(a0==1)&&((a20==1)&&((a5==1)&&(((((a22==1)&&!(a18==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==7))))&&(input==6))))))))&&!(a6==1))&&(a15==1))){ + a12 = 10; + a18 = 0; + a3 = 6; + a4 = 1; + a5 = 0; + a22 = 0; + a0 = 1; + return 21; + } else if(((((a20==1)&&(!(a5==1)&&((a15==1)&&((a12==10)&&((a6==1)&&(!(a0==1)&&(!(a4==1)&&((input==3)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))))))))&&(a27==1))&&(a3==6))){ + a3 = 5; + a12 = 11; + a22 = 1; + a18 = 1; + a0 = 1; + a4 = 1; + return -1; + } else if(((a4==1)&&(((((a15==1)&&(((((input==3)&&((((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==6))))&&(a6==1))&&(a5==1))&&!(a27==1)))&&(a12==11))&&(a0==1))&&(a20==1)))){ + a12 = 8; + a18 = 1; + a27 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if((!(a0==1)&&(((a3==6)&&(((a5==1)&&(!(a18==1)&&(((!(a4==1)&&(((a15==1)&&(input==2))&&(a20==1)))&&!(a22==1))&&(a12==12))))&&(a27==1)))&&(a6==1)))){ + a4 = 1; + a15 = 0; + a6 = 0; + a27 = 0; + a0 = 1; + a22 = 1; + return 26; + } else if(((((a12==9)&&((a3==4)&&(((a0==1)&&((!(a4==1)&&((a6==1)&&(!(a15==1)&&((input==1)&&(a20==1)))))&&!(a18==1)))&&!(a5==1))))&&!(a27==1))&&(a22==1))){ + a18 = 1; + a5 = 1; + a15 = 1; + a27 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if(((((a0==1)&&((a20==1)&&((a27==1)&&((!(a6==1)&&((a5==1)&&(!(a22==1)&&(!(a15==1)&&(((a18==1)||!(a18==1))&&(input==4))))))&&(a3==8)))))&&!(a4==1))&&(a12==9))){ + a18 = 0; + a3 = 5; + a5 = 0; + a22 = 1; + a4 = 1; + a12 = 10; + return 26; + } else if((((((((a20==1)&&((a12==8)&&(((a3==6)&&((a15==1)&&((input==5)&&!(a0==1))))&&(a18==1))))&&!(a5==1))&&(a22==1))&&(a4==1))&&!(a27==1))&&(a6==1))){ + a22 = 0; + a0 = 1; + a3 = 4; + a6 = 0; + return -1; + } else if(((((a20==1)&&((a0==1)&&((a4==1)&&(!(a6==1)&&(!(a5==1)&&(((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==4))&&!(a15==1))&&(a12==8)))))))&&(a3==7))&&(a27==1))){ + a15 = 1; + a12 = 11; + a3 = 4; + a5 = 1; + a22 = 1; + a4 = 0; + a18 = 0; + return 26; + } else if(((a20==1)&&(((a4==1)&&((a12==8)&&((((((a15==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==5)))&&!(a0==1))&&(a3==4))&&!(a5==1))&&(a27==1))))&&!(a6==1)))){ + if((a12==9)){ + a5 = 1; + a12 = 11; + a3 = 5; + a18 = 1; + a6 = 1; + a22 = 0; + a4 = 0; + }else{ + a12 = 10; + a3 = 8; + a5 = 1; + a6 = 1; + a27 = 0; + a22 = 0; + a0 = 1; + a18 = 1; + } + return 21; + } else if((((a4==1)&&(((a15==1)&&((a3==8)&&((((a27==1)&&(!(a5==1)&&((input==4)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))))&&(a6==1))&&(a20==1))))&&(a12==11)))&&!(a0==1))){ + a5 = 1; + a22 = 1; + a3 = 4; + a0 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((a3==7)&&((!(a0==1)&&((((a18==1)&&((a5==1)&&(((!(a4==1)&&((a20==1)&&(input==4)))&&(a15==1))&&(a22==1))))&&(a12==9))&&(a27==1)))&&(a6==1)))){ + a12 = 8; + a3 = 8; + a5 = 0; + a0 = 1; + a6 = 0; + return 26; + } else if(((((a4==1)&&((a6==1)&&((a20==1)&&((a15==1)&&((a5==1)&&(((((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==3))&&(a27==1)))))))&&(a12==8))&&!(a0==1))){ + a3 = 4; + a22 = 1; + a18 = 1; + a0 = 1; + return -1; + } else if(((((((!(a5==1)&&((a20==1)&&((a27==1)&&((a3==7)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==1))))))&&(a4==1))&&(a12==10))&&(a15==1))&&(a0==1))&&!(a6==1))){ + a3 = 6; + a4 = 0; + a27 = 0; + a5 = 1; + a18 = 1; + a22 = 0; + return 21; + } else if((!(a4==1)&&(!(a18==1)&&(((((((a3==5)&&((((a0==1)&&(input==5))&&!(a15==1))&&(a5==1)))&&(a27==1))&&(a12==11))&&!(a22==1))&&(a20==1))&&!(a6==1))))){ + a4 = 1; + a6 = 1; + a3 = 4; + a15 = 1; + a12 = 8; + a22 = 1; + a18 = 1; + return -1; + } else if(((a20==1)&&((((((!(a27==1)&&((!(a5==1)&&((input==6)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))))&&(a3==7)))&&!(a15==1))&&(a4==1))&&(a12==9))&&!(a6==1))&&!(a0==1)))){ + if((a0==1)){ + a15 = 1; + a4 = 0; + a27 = 1; + a12 = 8; + a3 = 8; + a22 = 1; + a6 = 1; + a5 = 1; + a0 = 1; + a18 = 0; + }else{ + a22 = 0; + a3 = 8; + a18 = 0; + a0 = 1; + a12 = 11; + } + return -1; + } else if(((a3==6)&&((((a12==9)&&(((!(a27==1)&&(((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==6))&&(a20==1))&&!(a5==1)))&&!(a0==1))&&(a4==1)))&&(a15==1))&&(a6==1)))){ + if((a22==1)){ + a27 = 1; + a0 = 1; + a22 = 1; + a12 = 8; + a5 = 1; + a6 = 0; + a3 = 8; + a18 = 1; + }else{ + a12 = 8; + a22 = 0; + a6 = 0; + a0 = 1; + a27 = 1; + a18 = 0; + a3 = 5; + a5 = 1; + } + return 26; + } else if(((((a4==1)&&(((((a12==8)&&((((a0==1)&&((a18==1)&&(input==6)))&&(a20==1))&&(a5==1)))&&!(a15==1))&&(a27==1))&&!(a6==1)))&&(a22==1))&&(a3==6))){ + if((a6==1)){ + a12 = 9; + a0 = 0; + a15 = 1; + a4 = 0; + }else{ + a3 = 4; + a6 = 1; + a18 = 0; + a5 = 0; + a4 = 0; + } + return 24; + } else if(((a0==1)&&(((((a27==1)&&(((a12==11)&&((!(a6==1)&&((!(a22==1)&&(input==5))&&(a20==1)))&&!(a15==1)))&&(a18==1)))&&!(a4==1))&&(a3==8))&&(a5==1)))){ + a3 = 4; + a18 = 0; + a15 = 1; + a22 = 1; + a12 = 8; + a6 = 1; + a0 = 0; + return -1; + } else if((!(a0==1)&&((!(a15==1)&&((((((a3==6)&&((((input==1)&&!(a6==1))&&(a4==1))&&(a20==1)))&&(a22==1))&&!(a18==1))&&(a5==1))&&!(a27==1)))&&(a12==8)))){ + if((a5==1)){ + a18 = 1; + a22 = 0; + a3 = 4; + a12 = 12; + a0 = 1; + }else{ + a27 = 1; + a5 = 0; + a4 = 0; + a22 = 0; + a12 = 10; + } + return -1; + } else if((!(a5==1)&&((((a12==11)&&(!(a15==1)&&((a3==5)&&(((a4==1)&&(((((a18==1)||!(a18==1))&&(input==1))&&!(a6==1))&&(a27==1)))&&(a20==1)))))&&!(a0==1))&&(a22==1)))){ + a22 = 0; + a18 = 1; + a0 = 1; + a12 = 9; + a3 = 7; + a4 = 0; + return -1; + } else if(((a20==1)&&(!(a6==1)&&(((a3==4)&&((a5==1)&&((((((input==6)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a0==1))&&(a12==12))&&(a4==1))&&(a15==1))))&&(a27==1))))){ + a12 = 11; + a22 = 0; + a18 = 1; + a15 = 0; + a4 = 0; + a0 = 1; + a5 = 0; + return 26; + } else if((((a6==1)&&((a20==1)&&(!(a4==1)&&((a22==1)&&((a12==9)&&(!(a0==1)&&(!(a5==1)&&(((a27==1)&&((input==2)&&((a18==1)||!(a18==1))))&&(a3==7)))))))))&&!(a15==1))){ + a18 = 1; + a12 = 8; + a15 = 1; + a4 = 1; + a3 = 4; + a5 = 1; + a0 = 1; + return -1; + } else if((((((a12==8)&&((((a4==1)&&((a0==1)&&(((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6)))||((a3==6)&&((a22==1)&&!(a18==1))))&&(input==1))))&&(a15==1))&&!(a27==1)))&&(a5==1))&&(a20==1))&&!(a6==1))){ + a5 = 0; + a3 = 7; + a18 = 0; + a15 = 0; + a12 = 9; + a22 = 1; + return 26; + } else if((((a22==1)&&((a6==1)&&(((a3==6)&&((a5==1)&&(((a20==1)&&((((input==2)&&((a18==1)||!(a18==1)))&&!(a4==1))&&(a27==1)))&&(a12==11))))&&!(a0==1))))&&!(a15==1))){ + a0 = 1; + a18 = 1; + a15 = 1; + a4 = 1; + return 21; + } else if(((a15==1)&&(((((a4==1)&&(((((!(a27==1)&&((input==5)&&((a18==1)||!(a18==1))))&&!(a22==1))&&(a20==1))&&(a5==1))&&!(a0==1)))&&(a6==1))&&(a3==4))&&(a12==9)))){ + if((a12==11)){ + a3 = 8; + a12 = 8; + a18 = 0; + a27 = 1; + a0 = 1; + }else{ + a3 = 7; + a27 = 1; + a18 = 1; + a6 = 0; + a12 = 8; + a0 = 1; + } + return -1; + } else if((!(a5==1)&&((a20==1)&&((((a6==1)&&((!(a4==1)&&(!(a15==1)&&((input==3)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8))))))&&(a12==11)))&&(a27==1))&&(a0==1))))){ + a4 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a5 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if(((a12==9)&&((((a5==1)&&(!(a6==1)&&(((a15==1)&&((a3==4)&&(((input==5)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a4==1))))&&(a20==1))))&&!(a27==1))&&(a0==1)))){ + a18 = 1; + a12 = 8; + a27 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if(((!(a0==1)&&((a27==1)&&((a20==1)&&(((a12==8)&&((!(a22==1)&&((a3==5)&&(((input==1)&&((a18==1)||!(a18==1)))&&!(a15==1))))&&!(a5==1)))&&(a4==1)))))&&!(a6==1))){ + a3 = 4; + a6 = 1; + a0 = 1; + a15 = 1; + a18 = 1; + a22 = 1; + a5 = 1; + return -1; + } else if((((a20==1)&&(!(a22==1)&&(((a3==8)&&((a0==1)&&((((a5==1)&&(!(a4==1)&&((input==3)&&((a18==1)||!(a18==1)))))&&!(a6==1))&&!(a27==1))))&&(a12==11))))&&!(a15==1))){ + a18 = 0; + a6 = 1; + a4 = 1; + a15 = 1; + return -1; + } else if((((a20==1)&&((((a12==12)&&(!(a5==1)&&((a15==1)&&(((!(a0==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a4==1))&&(a3==4)))))&&(a22==1))&&!(a6==1)))&&(a27==1))){ + if((a22==1)){ + a12 = 10; + a22 = 0; + a18 = 1; + a27 = 0; + a0 = 1; + a3 = 6; + a6 = 1; + a5 = 1; + }else{ + a5 = 1; + a3 = 5; + a12 = 8; + a22 = 0; + a18 = 0; + a0 = 1; + } + return 21; + } else if((!(a0==1)&&(((a12==11)&&((a27==1)&&((a15==1)&&(((input==4)&&((!(a6==1)&&(((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8)))||((a6==1)&&((a3==4)&&(!(a4==1)&&((a22==1)&&(a18==1)))))))&&(a5==1)))))&&(a20==1)))){ + a22 = 1; + a4 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + a6 = 1; + a0 = 1; + return -1; + } else if(((a15==1)&&((a12==8)&&((((((((input==3)&&(((((a18==1)&&!(a22==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6)))||((a3==7)&&((a22==1)&&(a18==1)))))&&(a27==1))&&(a20==1))&&!(a6==1))&&!(a5==1))&&(a0==1))&&(a4==1))))){ + a22 = 0; + a12 = 10; + a6 = 1; + a18 = 0; + a3 = 7; + a5 = 1; + return 21; + } else if((!(a4==1)&&(((((a20==1)&&((a3==4)&&((!(a5==1)&&((((input==3)&&(a15==1))&&(a12==9))&&(a22==1)))&&(a6==1))))&&!(a0==1))&&!(a27==1))&&(a18==1)))){ + if((a20==1)){ + a0 = 1; + a3 = 5; + a4 = 1; + a18 = 0; + a27 = 1; + a12 = 8; + a5 = 1; + }else{ + a27 = 1; + a12 = 8; + a0 = 1; + a5 = 1; + } + return 26; + } else if(((a6==1)&&(((a20==1)&&((a3==8)&&((a0==1)&&(!(a15==1)&&(!(a4==1)&&(((a27==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==4)))&&!(a5==1)))))))&&(a12==11)))){ + a5 = 1; + a22 = 0; + a18 = 0; + a0 = 0; + a3 = 6; + return 26; + } else if((((!(a18==1)&&(((a5==1)&&((a20==1)&&((((a4==1)&&((a22==1)&&((a3==4)&&(input==2))))&&(a15==1))&&!(a6==1))))&&!(a27==1)))&&(a12==8))&&(a0==1))){ + a0 = 0; + a15 = 0; + a3 = 8; + a27 = 1; + a4 = 0; + a22 = 0; + a12 = 10; + return 26; + } else if(((((a4==1)&&((a3==8)&&(((a18==1)&&((a12==9)&&((!(a0==1)&&(((a6==1)&&(input==4))&&(a27==1)))&&!(a22==1))))&&(a15==1))))&&(a20==1))&&(a5==1))){ + a3 = 4; + a0 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if(((a3==7)&&((a12==9)&&(!(a6==1)&&((((a0==1)&&((!(a22==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&!(a5==1))&&(a4==1)))&&!(a27==1)))&&!(a15==1))&&(a20==1)))))){ + a4 = 0; + a27 = 1; + a12 = 10; + a6 = 1; + a18 = 1; + a3 = 6; + a0 = 0; + a22 = 1; + return 26; + } else if((!(a27==1)&&((((((((((input==3)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&(a5==1))&&(a12==8))&&(a20==1))&&(a6==1))&&(a0==1))&&!(a15==1))&&(a4==1))&&(a3==7)))){ + a3 = 4; + a6 = 0; + a15 = 1; + a12 = 10; + a22 = 0; + a18 = 0; + return 26; + } else if(((a12==9)&&(((!(a4==1)&&(!(a27==1)&&((a20==1)&&((((((input==5)&&!(a0==1))&&(a6==1))&&(a5==1))&&(a3==6))&&(a22==1)))))&&(a18==1))&&(a15==1)))){ + if((a4==1)){ + a3 = 4; + a6 = 0; + a27 = 1; + a4 = 1; + a0 = 1; + a12 = 8; + }else{ + a12 = 10; + a5 = 0; + a18 = 0; + a3 = 7; + a22 = 0; + } + return 26; + } else if(((((a3==8)&&(!(a0==1)&&((a12==9)&&((a20==1)&&(((a6==1)&&(!(a4==1)&&((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&!(a15==1))))))&&(a5==1))&&!(a27==1))){ + a3 = 5; + a12 = 8; + a18 = 0; + a27 = 1; + a22 = 0; + a15 = 1; + a4 = 1; + a0 = 1; + return 26; + } else if(((!(a6==1)&&(!(a5==1)&&((a20==1)&&(((a15==1)&&((((((input==3)&&(a0==1))&&(a3==8))&&(a22==1))&&!(a4==1))&&(a12==11)))&&(a18==1)))))&&(a27==1))){ + if((a18==1)){ + a5 = 1; + a18 = 0; + a0 = 0; + a6 = 1; + a3 = 7; + a22 = 0; + a12 = 12; + }else{ + a15 = 0; + a6 = 1; + a12 = 10; + a3 = 5; + a18 = 0; + } + return 26; + } else if((!(a4==1)&&((a20==1)&&((a12==9)&&((!(a27==1)&&((((!(a5==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==2)))&&(a6==1))&&!(a15==1))&&!(a0==1)))&&(a3==7)))))){ + a18 = 1; + a27 = 1; + a15 = 1; + a12 = 12; + a22 = 0; + return 21; + } else if(((a22==1)&&(!(a5==1)&&(((a15==1)&&(((a3==6)&&((!(a6==1)&&(((((a18==1)||!(a18==1))&&(input==1))&&!(a27==1))&&(a0==1)))&&(a4==1)))&&(a12==12)))&&(a20==1))))){ + a12 = 8; + a4 = 0; + a18 = 1; + a15 = 0; + a3 = 5; + a22 = 0; + return -1; + } else if(((a22==1)&&(((a12==10)&&((!(a27==1)&&((a18==1)&&(((!(a0==1)&&((a20==1)&&((input==1)&&!(a5==1))))&&(a15==1))&&(a3==7))))&&!(a4==1)))&&(a6==1)))){ + a15 = 0; + a3 = 4; + a4 = 1; + a0 = 1; + return -1; + } else if(((!(a22==1)&&((a20==1)&&((a12==12)&&((((a4==1)&&(((((input==3)&&!(a6==1))&&(a18==1))&&(a0==1))&&(a15==1)))&&(a3==7))&&(a5==1)))))&&(a27==1))){ + a12 = 10; + a18 = 0; + a4 = 0; + a6 = 1; + a5 = 0; + return -1; + } else if(((a27==1)&&(!(a5==1)&&(!(a15==1)&&((a12==9)&&(((a4==1)&&((!(a0==1)&&((((input==4)&&((a18==1)||!(a18==1)))&&(a20==1))&&(a3==7)))&&(a22==1)))&&!(a6==1))))))){ + a5 = 1; + a6 = 1; + a15 = 1; + a3 = 4; + a18 = 1; + a0 = 1; + a12 = 8; + return -1; + } else if(((!(a4==1)&&((a0==1)&&((((((a20==1)&&((input==3)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))||((a3==7)&&(!(a18==1)&&(a22==1))))))&&!(a5==1))&&(a15==1))&&(a27==1))&&(a12==9))))&&!(a6==1))){ + a22 = 1; + a6 = 1; + a5 = 1; + a18 = 1; + a12 = 12; + a15 = 0; + a3 = 8; + return 21; + } else if((!(a5==1)&&(!(a4==1)&&(((a0==1)&&((!(a15==1)&&(((a6==1)&&((input==4)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7)))))&&!(a27==1)))&&(a20==1)))&&(a12==12))))){ + a18 = 0; + a15 = 1; + a12 = 9; + a4 = 1; + a3 = 8; + a22 = 0; + a0 = 0; + a6 = 0; + a27 = 1; + return -1; + } else if((!(a5==1)&&(((((((a0==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1)))))&&(input==6)))&&!(a4==1))&&(a12==11))&&!(a27==1))&&(a20==1))&&(a15==1)))){ + if((a12==8)){ + a0 = 0; + a3 = 4; + a27 = 1; + a22 = 1; + a12 = 10; + a18 = 1; + a6 = 1; + }else{ + a12 = 10; + a22 = 0; + a6 = 1; + a18 = 0; + a3 = 4; + a15 = 0; + a27 = 1; + a4 = 1; + } + return 21; + } else if(((a3==7)&&((((a12==10)&&(!(a4==1)&&((((a20==1)&&(!(a0==1)&&((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&(a6==1))&&(a5==1))))&&(a15==1))&&(a27==1)))){ + a15 = 0; + a0 = 1; + a5 = 0; + a18 = 0; + a22 = 1; + return -1; + } else if(((a20==1)&&(((!(a0==1)&&((a6==1)&&((((((((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a18==1)&&!(a22==1))))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==2))&&(a12==8))&&!(a5==1))&&(a15==1))))&&!(a4==1))&&!(a27==1)))){ + a0 = 1; + a4 = 1; + a5 = 1; + a18 = 0; + a27 = 1; + a3 = 8; + a22 = 0; + return -1; + } else if(((a5==1)&&((a20==1)&&(!(a4==1)&&(!(a6==1)&&(((!(a27==1)&&(!(a0==1)&&(((((a3==7)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==7)))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==4))))&&(a12==10))&&!(a15==1))))))){ + a0 = 1; + a12 = 8; + a15 = 1; + a4 = 1; + a6 = 1; + a3 = 8; + a27 = 1; + a22 = 1; + a18 = 0; + return 26; + } else if((((!(a5==1)&&((!(a27==1)&&((a4==1)&&(((((input==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&(a12==8))&&!(a6==1))&&(a15==1))))&&(a3==5)))&&(a20==1))&&!(a0==1))){ + if((a22==1)){ + a3 = 4; + a18 = 1; + a0 = 1; + a22 = 0; + a27 = 1; + }else{ + a27 = 1; + a18 = 1; + a22 = 1; + a0 = 1; + a3 = 4; + a5 = 1; + a6 = 1; + } + return 21; + } else if(((((((a4==1)&&((((a0==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==2))&&!(a27==1)))&&(a20==1))&&!(a6==1)))&&(a5==1))&&(a15==1))&&(a3==8))&&(a12==10))){ + a18 = 0; + a3 = 5; + a22 = 1; + a6 = 1; + a15 = 0; + a27 = 1; + return 21; + } else if((((a18==1)&&(((!(a22==1)&&((((a27==1)&&((a20==1)&&((a12==9)&&(!(a6==1)&&(input==3)))))&&!(a15==1))&&!(a4==1)))&&(a0==1))&&(a5==1)))&&(a3==6))){ + a15 = 1; + a3 = 8; + a6 = 1; + a12 = 8; + a27 = 0; + a22 = 1; + return 26; + } else if((((((a15==1)&&((!(a27==1)&&(((((a3==4)&&(!(a4==1)&&(!(a18==1)&&(a22==1))))&&(a6==1))||((((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1))))&&!(a6==1))||((a6==1)&&((((a22==1)&&(a18==1))&&!(a4==1))&&(a3==4)))))&&(input==3)))&&(a0==1)))&&(a5==1))&&(a20==1))&&(a12==12))){ + a3 = 5; + a6 = 0; + a4 = 1; + a27 = 1; + a0 = 0; + a22 = 0; + a18 = 0; + return -1; + } else if((((a12==11)&&((a20==1)&&((a4==1)&&((a15==1)&&(!(a6==1)&&((a5==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==2))&&!(a0==1))))))))&&(a27==1))){ + a0 = 1; + a22 = 1; + a12 = 9; + a18 = 0; + a3 = 8; + a27 = 0; + a15 = 0; + return -1; + } else if((!(a27==1)&&((a5==1)&&(((((a12==12)&&((a20==1)&&(!(a4==1)&&((((a3==6)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1)))))&&(input==1)))))&&!(a6==1))&&!(a15==1))&&(a0==1))))){ + a3 = 6; + a6 = 1; + a18 = 0; + a4 = 1; + a22 = 0; + return -1; + } else if((!(a15==1)&&((((a4==1)&&(((a20==1)&&(!(a27==1)&&(!(a5==1)&&((a0==1)&&((input==3)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))))&&(a3==7)))&&(a12==12))&&(a6==1)))){ + a15 = 1; + a5 = 1; + a18 = 0; + a12 = 10; + a3 = 8; + a4 = 0; + a22 = 1; + a6 = 0; + a27 = 1; + return 26; + } else if(((a20==1)&&((((((!(a27==1)&&(((a12==8)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==6)))&&!(a5==1)))&&(a3==8))&&(a0==1))&&!(a15==1))&&(a6==1))&&(a4==1)))){ + a22 = 0; + a27 = 1; + a5 = 1; + a15 = 1; + a6 = 0; + a18 = 1; + return -1; + } else if(((a5==1)&&(!(a4==1)&&((a15==1)&&((a12==8)&&((a3==6)&&((!(a6==1)&&((((input==3)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&(a27==1))&&(a20==1)))&&(a0==1)))))))){ + a15 = 0; + a22 = 0; + a3 = 4; + a18 = 1; + a4 = 1; + return 21; + } else if((((a20==1)&&(((a6==1)&&((a22==1)&&((a12==12)&&((a15==1)&&((a27==1)&&((a3==7)&&(((input==6)&&((a18==1)||!(a18==1)))&&!(a4==1))))))))&&!(a0==1)))&&(a5==1))){ + a27 = 0; + a3 = 6; + a12 = 8; + a22 = 0; + a0 = 1; + a15 = 0; + a18 = 1; + return 21; + } else if((((a3==7)&&(((a12==8)&&(((a6==1)&&((!(a27==1)&&(((input==3)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&(a5==1)))&&!(a0==1)))&&!(a4==1)))&&(a20==1)))&&!(a15==1))){ + if((a3==6)){ + a5 = 0; + a22 = 1; + a12 = 9; + a3 = 4; + a18 = 1; + a6 = 0; + a4 = 1; + }else{ + a27 = 1; + a6 = 0; + a3 = 5; + a15 = 1; + a0 = 1; + a4 = 1; + a22 = 1; + a18 = 0; + } + return -1; + } else if(((a3==4)&&((((a20==1)&&(!(a4==1)&&(!(a18==1)&&((!(a27==1)&&((((a0==1)&&(input==4))&&!(a5==1))&&(a12==12)))&&(a15==1)))))&&!(a22==1))&&!(a6==1)))){ + a27 = 1; + a5 = 1; + a6 = 1; + a22 = 1; + a4 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if((((a0==1)&&((a20==1)&&((a12==11)&&(!(a6==1)&&((((!(a4==1)&&(!(a18==1)&&((input==5)&&(a3==8))))&&(a27==1))&&!(a15==1))&&!(a5==1))))))&&(a22==1))){ + a12 = 10; + a4 = 1; + a6 = 1; + a3 = 5; + return 26; + } else if(((a3==8)&&(((a0==1)&&((a15==1)&&(!(a6==1)&&((((a12==9)&&(!(a4==1)&&((input==4)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))))&&(a20==1))&&!(a5==1)))))&&(a27==1)))){ + if((a20==1)){ + a15 = 0; + a3 = 7; + a6 = 1; + a27 = 0; + a18 = 1; + a4 = 1; + a12 = 12; + a22 = 1; + }else{ + a18 = 1; + a4 = 1; + a27 = 0; + a12 = 8; + a22 = 0; + a3 = 5; + a15 = 0; + } + return 21; + } else if((((!(a6==1)&&((a4==1)&&((a22==1)&&((a3==8)&&(((a20==1)&&((((input==3)&&((a18==1)||!(a18==1)))&&!(a0==1))&&!(a27==1)))&&(a12==10))))))&&!(a15==1))&&(a5==1))){ + a18 = 0; + a4 = 0; + a0 = 1; + a15 = 1; + a12 = 8; + a27 = 1; + a6 = 1; + return 26; + } else if(((a12==12)&&(!(a15==1)&&((a20==1)&&(!(a5==1)&&((((!(a22==1)&&(((((a18==1)||!(a18==1))&&(input==6))&&!(a4==1))&&(a0==1)))&&!(a27==1))&&!(a6==1))&&(a3==8))))))){ + a5 = 1; + a18 = 1; + a12 = 8; + a22 = 1; + a3 = 7; + a6 = 1; + return -1; + } else if((((a6==1)&&((((a12==9)&&(((a3==6)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1))&&(a4==1))&&(a5==1)))&&!(a27==1)))&&!(a15==1))&&(a0==1)))&&(a20==1))){ + a18 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + a15 = 1; + a27 = 1; + return -1; + } else if(((((((!(a5==1)&&((a12==12)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a4==1))&&(a20==1))))&&(a3==5))&&(a15==1))&&(a6==1))&&!(a27==1))&&(a0==1))){ + a3 = 4; + a27 = 1; + a5 = 1; + a22 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if(((a3==7)&&((!(a18==1)&&((a0==1)&&(((a12==8)&&(!(a5==1)&&((!(a27==1)&&(((input==6)&&!(a15==1))&&!(a6==1)))&&!(a22==1))))&&(a20==1))))&&!(a4==1)))){ + if((a12==8)){ + a4 = 1; + a12 = 10; + a6 = 1; + a27 = 1; + a0 = 0; + a3 = 8; + a5 = 1; + }else{ + a18 = 1; + a5 = 1; + a27 = 1; + a12 = 11; + a3 = 5; + a4 = 1; + } + return 26; + } else if((((a22==1)&&((((a12==12)&&((!(a6==1)&&((a3==5)&&((a0==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a4==1)))))&&(a27==1)))&&!(a5==1))&&(a20==1)))&&!(a15==1))){ + a18 = 1; + a12 = 11; + a6 = 1; + a15 = 1; + a3 = 4; + return 26; + } else if(((((!(a18==1)&&((((!(a15==1)&&((((a12==12)&&(input==1))&&!(a5==1))&&(a20==1)))&&(a4==1))&&(a0==1))&&(a22==1)))&&(a3==5))&&(a6==1))&&!(a27==1))){ + a15 = 1; + a27 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + a5 = 1; + return -1; + } else if((!(a4==1)&&((a15==1)&&((((!(a6==1)&&(((a12==12)&&(((a0==1)&&((input==6)&&((a18==1)||!(a18==1))))&&!(a22==1)))&&(a20==1)))&&(a3==8))&&(a27==1))&&(a5==1))))){ + a6 = 1; + a12 = 10; + a5 = 0; + a4 = 1; + a18 = 0; + return -1; + } else if(((a0==1)&&((a12==8)&&(((a20==1)&&(!(a15==1)&&(((!(a6==1)&&(((((a22==1)&&(a18==1))&&(a3==8))||((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a22==1)&&!(a18==1)))))&&(input==5)))&&!(a5==1))&&(a27==1))))&&!(a4==1))))){ + if((a20==1)){ + a18 = 1; + a0 = 0; + a15 = 1; + a4 = 1; + a3 = 8; + a12 = 11; + a22 = 1; + }else{ + a15 = 1; + a18 = 0; + a12 = 11; + a22 = 1; + a6 = 1; + a3 = 5; + } + return 26; + } else if(((a12==11)&&((a20==1)&&((((a6==1)&&(!(a4==1)&&((!(a5==1)&&((input==3)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))))&&(a0==1))))&&(a15==1))&&(a27==1))))){ + a15 = 0; + a0 = 0; + a3 = 5; + a22 = 1; + a18 = 0; + a6 = 0; + a4 = 1; + return -1; + } else if(((!(a6==1)&&((a12==11)&&(((a20==1)&&(!(a27==1)&&((a5==1)&&(((a3==6)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==2)))&&!(a4==1)))))&&!(a0==1))))&&!(a15==1))){ + a18 = 1; + a15 = 1; + a12 = 9; + a27 = 1; + a22 = 0; + a6 = 1; + a4 = 1; + return -1; + } else if(((((((((((!(a6==1)&&((((a18==1)&&!(a22==1))&&(a4==1))&&(a3==8)))||(((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1))))&&!(a6==1)))||((a6==1)&&((((a18==1)&&(a22==1))&&!(a4==1))&&(a3==4))))&&(input==6))&&!(a15==1))&&(a20==1))&&(a27==1))&&(a0==1))&&(a5==1))&&(a12==10))){ + a22 = 1; + a6 = 1; + a18 = 0; + a5 = 0; + a27 = 0; + a12 = 12; + a3 = 5; + a4 = 1; + return -1; + } else if((((a12==12)&&(!(a5==1)&&(!(a0==1)&&((((a15==1)&&((a3==5)&&((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==2))&&(a27==1))))&&(a6==1))&&!(a4==1)))))&&(a20==1))){ + a27 = 0; + a22 = 0; + a3 = 6; + a12 = 11; + a5 = 1; + a18 = 1; + a4 = 1; + a15 = 0; + a6 = 0; + return 26; + } else if(((a0==1)&&(!(a15==1)&&((!(a5==1)&&(((!(a27==1)&&(((a20==1)&&((input==2)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))))&&(a3==4)))&&(a12==8))&&!(a4==1)))&&(a6==1))))){ + a3 = 8; + a22 = 0; + a27 = 1; + a5 = 1; + a15 = 1; + a18 = 1; + a0 = 0; + return 26; + } else if((!(a6==1)&&(((a0==1)&&((a5==1)&&((((a12==12)&&((a3==4)&&((a27==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==1)))))&&(a20==1))&&(a15==1))))&&(a4==1)))){ + a18 = 0; + a12 = 10; + a3 = 6; + a5 = 0; + a22 = 0; + return -1; + } else if(((((a5==1)&&((((!(a0==1)&&((a20==1)&&(((input==1)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&!(a27==1))))&&(a12==11))&&(a15==1))&&(a6==1)))&&!(a4==1))&&(a3==4))){ + if((a6==1)){ + a5 = 0; + a18 = 1; + a0 = 1; + a22 = 1; + a12 = 12; + a27 = 1; + }else{ + a18 = 1; + a4 = 1; + a22 = 1; + a27 = 1; + a0 = 1; + a12 = 8; + } + return 21; + } else if(((a20==1)&&((a12==9)&&(((a4==1)&&(((((input==3)&&((((a6==1)&&((!(a22==1)&&(a18==1))&&(a3==8)))||((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1)))))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4)))))&&(a15==1))&&(a5==1))&&!(a0==1)))&&!(a27==1))))){ + a3 = 4; + a6 = 0; + a22 = 0; + a18 = 1; + a12 = 10; + a4 = 0; + return 21; + } else if(((a4==1)&&((a0==1)&&((!(a5==1)&&((a27==1)&&((((a12==10)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==4)))&&(a20==1))&&(a15==1))))&&(a6==1))))){ + a6 = 0; + a22 = 1; + a3 = 8; + a27 = 0; + a5 = 1; + a18 = 1; + return 21; + } else if(((!(a4==1)&&((!(a5==1)&&((a12==10)&&(((a0==1)&&(((input==2)&&((((!(a22==1)&&(a18==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7)))||(((a18==1)&&(a22==1))&&(a3==8))))&&!(a27==1)))&&!(a6==1))))&&!(a15==1)))&&(a20==1))){ + a3 = 7; + a22 = 1; + a5 = 1; + a4 = 1; + a18 = 0; + a27 = 1; + return 21; + } else if((!(a27==1)&&(((a3==5)&&(!(a22==1)&&((a4==1)&&(!(a18==1)&&((a12==8)&&(((a6==1)&&(((input==6)&&!(a15==1))&&!(a0==1)))&&(a20==1)))))))&&!(a5==1)))){ + a15 = 1; + a5 = 1; + a0 = 1; + a27 = 1; + return 26; + } else if((!(a4==1)&&(((a22==1)&&(!(a0==1)&&((!(a15==1)&&((((((input==1)&&(a20==1))&&(a27==1))&&!(a18==1))&&!(a5==1))&&(a12==8)))&&!(a6==1))))&&(a3==4)))){ + a6 = 1; + a18 = 1; + a15 = 1; + a0 = 1; + a4 = 1; + a5 = 1; + return -1; + } else if(((a5==1)&&(((a15==1)&&(((a22==1)&&(!(a27==1)&&((a6==1)&&(!(a4==1)&&((a18==1)&&((a12==9)&&((input==6)&&(a0==1))))))))&&(a3==6)))&&(a20==1)))){ + a4 = 1; + a12 = 8; + a27 = 1; + a3 = 4; + return -1; + } else if(((!(a0==1)&&((a20==1)&&(!(a4==1)&&((((((((input==4)&&!(a15==1))&&(a5==1))&&!(a6==1))&&(a12==11))&&!(a27==1))&&(a3==6))&&!(a22==1)))))&&!(a18==1))){ + a15 = 1; + a12 = 12; + a4 = 1; + a22 = 1; + a5 = 0; + a27 = 1; + a0 = 1; + a3 = 7; + a6 = 1; + return 21; + } else if(((a27==1)&&(!(a0==1)&&((a20==1)&&(((!(a6==1)&&((a3==8)&&(((!(a15==1)&&((!(a22==1)&&!(a18==1))&&!(a5==1)))&&(a12==9))&&!(a4==1))))||((a6==1)&&((a3==4)&&((a4==1)&&((((a5==1)&&((a22==1)&&(a18==1)))&&(a15==1))&&(a12==10))))))&&(input==5)))))){ + a15 = 1; + a6 = 1; + a4 = 1; + a12 = 11; + a18 = 1; + a3 = 7; + a0 = 1; + a5 = 0; + a22 = 1; + return -1; + } else if(((!(a4==1)&&((a12==11)&&(!(a5==1)&&(((a3==7)&&((((a15==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==5)))&&!(a6==1))&&!(a0==1)))&&(a20==1)))))&&(a27==1))){ + a15 = 0; + a22 = 1; + a0 = 1; + a4 = 1; + a6 = 1; + a12 = 10; + a3 = 8; + a5 = 1; + a18 = 1; + return -1; + } else if((((!(a15==1)&&((((a20==1)&&((((((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==6))&&!(a5==1))&&!(a27==1)))&&(a4==1))&&!(a0==1)))&&(a12==10))&&(a6==1))){ + a5 = 1; + a0 = 1; + a4 = 0; + a12 = 11; + a27 = 1; + a3 = 8; + a18 = 0; + a22 = 0; + return -1; + } else if((((a27==1)&&((!(a15==1)&&((!(a5==1)&&((a20==1)&&(((input==4)&&((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==5)))||(((a22==1)&&!(a18==1))&&(a3==5))))&&!(a4==1))))&&(a0==1)))&&!(a6==1)))&&(a12==12))){ + a18 = 1; + a6 = 1; + a12 = 9; + a0 = 0; + a3 = 4; + a15 = 1; + a22 = 1; + return 21; + } else if(((a20==1)&&(((a0==1)&&((a27==1)&&((a12==9)&&(!(a15==1)&&(((a6==1)&&(((input==2)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a3==6)))&&!(a4==1))))))&&(a5==1)))){ + a18 = 1; + a4 = 1; + a15 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((a4==1)&&(!(a27==1)&&(((a12==12)&&((a5==1)&&((a6==1)&&((a0==1)&&(((input==1)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6))))&&(a20==1))))))&&!(a15==1))))){ + a22 = 0; + a18 = 1; + a3 = 6; + a12 = 8; + a6 = 0; + return -1; + } else if((!(a27==1)&&(((((((a5==1)&&((a15==1)&&(((a12==11)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a0==1))))&&(a22==1))&&(a3==7))&&!(a6==1))&&(a20==1))&&(a4==1)))){ + if((a15==1)){ + a15 = 0; + a6 = 1; + a18 = 0; + a3 = 6; + a5 = 0; + a27 = 1; + a0 = 0; + }else{ + a18 = 1; + a12 = 12; + a22 = 0; + a5 = 0; + } + return 26; + } else if((!(a15==1)&&(((a6==1)&&((((a27==1)&&(((!(a18==1)&&(!(a0==1)&&((input==1)&&!(a5==1))))&&!(a4==1))&&(a20==1)))&&!(a22==1))&&(a3==8)))&&(a12==9)))){ + a22 = 1; + a0 = 1; + a15 = 1; + a18 = 1; + a12 = 8; + a4 = 1; + a5 = 1; + a3 = 4; + return -1; + } else if(((!(a4==1)&&(((a15==1)&&((a5==1)&&((a3==5)&&(!(a22==1)&&(((a12==8)&&(((input==4)&&(a0==1))&&(a6==1)))&&!(a18==1))))))&&(a20==1)))&&!(a27==1))){ + a18 = 1; + a6 = 0; + a4 = 1; + a3 = 7; + a22 = 1; + a12 = 11; + a5 = 0; + return 26; + } else if(((((a4==1)&&(((a0==1)&&((!(a18==1)&&((!(a22==1)&&((!(a27==1)&&(input==2))&&(a3==6)))&&(a5==1)))&&(a15==1)))&&(a6==1)))&&(a12==12))&&(a20==1))){ + a3 = 4; + a12 = 10; + a6 = 0; + a5 = 0; + a18 = 1; + return -1; + } else if((!(a15==1)&&((!(a5==1)&&(((a0==1)&&((a22==1)&&((a20==1)&&(!(a6==1)&&((a18==1)&&((a12==9)&&((a3==8)&&(input==6))))))))&&(a4==1)))&&(a27==1)))){ + a5 = 1; + a27 = 0; + a18 = 0; + a15 = 1; + a3 = 6; + return 26; + } else if((((a15==1)&&((a20==1)&&((((!(a0==1)&&((a5==1)&&((((a3==5)&&((a18==1)&&(a22==1)))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a18==1)&&!(a22==1)))))&&(input==6))))&&!(a27==1))&&(a6==1))&&(a12==10))))&&(a4==1))){ + if((a5==1)){ + a0 = 1; + a12 = 8; + a22 = 0; + a3 = 5; + a18 = 0; + a27 = 1; + a6 = 0; + }else{ + a27 = 1; + a22 = 0; + a18 = 0; + a0 = 1; + a6 = 0; + a12 = 8; + a3 = 5; + } + return -1; + } else if((((a6==1)&&((a22==1)&&(!(a5==1)&&(!(a0==1)&&(!(a27==1)&&((a12==11)&&(!(a4==1)&&(((((a18==1)||!(a18==1))&&(input==1))&&(a20==1))&&(a15==1)))))))))&&(a3==8))){ + a3 = 6; + a4 = 1; + a12 = 8; + a5 = 1; + a18 = 1; + a0 = 1; + a27 = 1; + return -1; + } else if(((((((a20==1)&&((a4==1)&&((a3==5)&&(((!(a27==1)&&((a22==1)&&(input==2)))&&(a18==1))&&(a12==8)))))&&(a15==1))&&!(a6==1))&&!(a0==1))&&(a5==1))){ + a12 = 11; + a22 = 0; + a6 = 1; + return -1; + } else if(((a12==11)&&((a0==1)&&((a27==1)&&((a5==1)&&((((a4==1)&&((a20==1)&&(((input==4)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&!(a15==1))))&&(a6==1))&&(a3==8))))))){ + a22 = 1; + a18 = 0; + a12 = 10; + a4 = 0; + a3 = 4; + a15 = 1; + return -1; + } else if((((!(a18==1)&&(((((((!(a6==1)&&((input==6)&&!(a0==1)))&&(a20==1))&&(a5==1))&&(a12==9))&&(a27==1))&&(a22==1))&&!(a4==1)))&&(a15==1))&&(a3==7))){ + a15 = 0; + a0 = 1; + a6 = 1; + a4 = 1; + a27 = 0; + return 21; + } else if((((a12==10)&&(!(a15==1)&&(!(a5==1)&&(((a20==1)&&((a27==1)&&((((input==6)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a4==1))&&(a0==1))))&&!(a6==1)))))&&(a3==6))){ + a6 = 1; + a22 = 1; + a5 = 1; + a15 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + return -1; + } else if(((((a6==1)&&((((((a0==1)&&(((((!(a22==1)&&(a18==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==2)))&&(a27==1))&&(a12==12))&&!(a15==1))&&(a20==1)))&&(a5==1))&&(a4==1))){ + a22 = 1; + a3 = 4; + a12 = 8; + a15 = 1; + a18 = 1; + return -1; + } else if((((a27==1)&&((a20==1)&&(!(a22==1)&&((((((!(a6==1)&&((input==5)&&(a3==8)))&&!(a18==1))&&!(a15==1))&&(a12==11))&&!(a4==1))&&!(a0==1)))))&&(a5==1))){ + a18 = 1; + a27 = 0; + a0 = 1; + a3 = 7; + return 21; + } else if(((((a20==1)&&((a5==1)&&((a12==12)&&((a15==1)&&((((input==4)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a18==1)&&(a22==1))))||((a3==6)&&((a22==1)&&!(a18==1)))))&&(a0==1))&&!(a4==1))))))&&!(a6==1))&&!(a27==1))){ + if((a3==6)){ + a3 = 6; + a18 = 0; + a12 = 11; + a0 = 0; + a6 = 1; + a22 = 1; + a27 = 1; + }else{ + a12 = 8; + a0 = 0; + a5 = 0; + a22 = 1; + a27 = 1; + a18 = 0; + a3 = 4; + a15 = 0; + } + return -1; + } else if((!(a4==1)&&((a3==4)&&(((a12==10)&&(!(a15==1)&&(((a20==1)&&(((((a18==1)&&(input==6))&&!(a5==1))&&!(a6==1))&&(a27==1)))&&!(a22==1))))&&(a0==1))))){ + a5 = 1; + a6 = 1; + a15 = 1; + a12 = 8; + a22 = 1; + a4 = 1; + return -1; + } else if((!(a0==1)&&((a15==1)&&((((((input==3)&&(((a6==1)&&((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1)))))||((((a3==8)&&((!(a22==1)&&(a18==1))&&(a4==1)))&&!(a6==1))||(!(a6==1)&&(((a4==1)&&(!(a22==1)&&!(a18==1)))&&(a3==8))))))&&!(a5==1))&&!(a27==1))&&(a20==1))&&(a12==11))))){ + if((a22==1)){ + a22 = 1; + a3 = 7; + a0 = 1; + a6 = 1; + a4 = 1; + a12 = 8; + a5 = 1; + a27 = 1; + a18 = 0; + }else{ + a27 = 1; + a0 = 1; + a22 = 1; + a6 = 1; + a3 = 7; + a12 = 8; + a4 = 0; + a18 = 1; + a5 = 1; + } + return -1; + } else if((((((a3==7)&&((a6==1)&&((a20==1)&&((a15==1)&&(!(a27==1)&&((a0==1)&&((((a18==1)||!(a18==1))&&(input==5))&&(a4==1))))))))&&(a5==1))&&(a22==1))&&(a12==9))){ + a4 = 0; + a3 = 5; + a6 = 0; + a27 = 1; + a12 = 10; + a18 = 0; + a22 = 0; + a5 = 0; + return 21; + } else if((!(a18==1)&&(((a0==1)&&(((a4==1)&&(!(a27==1)&&((a22==1)&&(!(a5==1)&&((a20==1)&&(((input==5)&&(a12==8))&&(a6==1)))))))&&(a3==6)))&&(a15==1)))){ + a3 = 8; + a15 = 0; + a12 = 11; + a27 = 1; + return 24; + } else if((((a0==1)&&(!(a15==1)&&(!(a4==1)&&(((a20==1)&&((((input==1)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1)))))&&(a5==1))&&!(a27==1)))&&!(a6==1)))))&&(a12==10))){ + a3 = 8; + a22 = 1; + a5 = 0; + a18 = 0; + a15 = 1; + return 26; + } else if((((((a12==11)&&((a0==1)&&((a20==1)&&((((((((a18==1)&&!(a22==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5)))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==6))&&(a5==1))&&(a4==1)))))&&!(a6==1))&&(a27==1))&&!(a15==1))){ + a3 = 4; + a22 = 1; + a18 = 1; + a12 = 8; + a15 = 1; + a6 = 1; + return -1; + } else if((!(a27==1)&&((a20==1)&&(((a15==1)&&((a12==10)&&((a0==1)&&(((((a3==4)&&((!(a18==1)&&(a22==1))&&!(a4==1)))&&(a6==1))||(((((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8))&&!(a6==1))||(((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))&&(a6==1))))&&(input==3)))))&&!(a5==1))))){ + a22 = 1; + a6 = 1; + a4 = 1; + a18 = 1; + a3 = 4; + a27 = 1; + a5 = 1; + a12 = 8; + return -1; + } else if(((a20==1)&&((a4==1)&&(!(a0==1)&&((!(a27==1)&&((a6==1)&&((a15==1)&&((a5==1)&&((((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a18==1)&&!(a22==1))))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==3))))))&&(a12==11)))))){ + a12 = 8; + a22 = 1; + a3 = 5; + a27 = 1; + a0 = 1; + a18 = 0; + a4 = 0; + return -1; + } else if(((((((a20==1)&&(((!(a4==1)&&((a6==1)&&((input==4)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))))&&!(a0==1))&&!(a15==1)))&&(a5==1))&&(a27==1))&&(a12==8))&&(a3==4))){ + a22 = 1; + a18 = 1; + a27 = 0; + a0 = 1; + a15 = 1; + a5 = 0; + a4 = 1; + a12 = 9; + return -1; + } else if(((a12==8)&&((a27==1)&&(((a6==1)&&((((((input==6)&&((((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1))))||((a3==5)&&((a22==1)&&(a18==1)))))&&(a15==1))&&!(a5==1))&&(a4==1))&&(a20==1)))&&(a0==1))))){ + a5 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + return -1; + } else if(((a15==1)&&(((!(a5==1)&&((((a12==10)&&((((((!(a22==1)&&(a18==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==6))&&!(a6==1)))&&(a4==1))&&(a0==1)))&&!(a27==1))&&(a20==1)))){ + a12 = 8; + a5 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + a27 = 1; + return -1; + } else if(((!(a15==1)&&((a12==9)&&((a5==1)&&(!(a0==1)&&((((a6==1)&&((a20==1)&&((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&!(a27==1))&&!(a4==1))))))&&(a3==7))){ + a22 = 1; + a0 = 1; + a3 = 6; + a5 = 0; + a15 = 1; + a18 = 0; + return 26; + } else if((!(a27==1)&&((!(a15==1)&&(!(a4==1)&&(!(a5==1)&&((((a6==1)&&((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==5))&&(a3==8)))&&(a0==1))&&(a20==1)))))&&(a12==9)))){ + a18 = 1; + a22 = 1; + a15 = 1; + a27 = 1; + a5 = 1; + a4 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((a27==1)&&((a18==1)&&((!(a5==1)&&((((a6==1)&&((a12==9)&&((((a4==1)&&(input==6))&&(a20==1))&&(a3==7))))&&(a0==1))&&!(a22==1)))&&(a15==1))))){ + a27 = 0; + a5 = 1; + a18 = 0; + a15 = 0; + a22 = 1; + a3 = 5; + a12 = 8; + a6 = 0; + return 26; + } else if((((((a12==9)&&((!(a0==1)&&(!(a22==1)&&((a20==1)&&((a3==5)&&(((a6==1)&&(input==1))&&!(a15==1))))))&&(a27==1)))&&!(a18==1))&&(a5==1))&&!(a4==1))){ + a3 = 4; + a22 = 1; + a15 = 1; + a18 = 1; + a12 = 8; + a4 = 1; + a0 = 1; + return -1; + } else if((((((a4==1)&&((!(a27==1)&&(((!(a5==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==5)))&&(a0==1))&&(a12==11)))&&(a20==1)))&&!(a15==1))&&(a6==1))&&(a3==7))){ + if((a0==1)){ + a18 = 1; + a15 = 1; + a12 = 8; + a27 = 1; + a4 = 0; + a22 = 0; + a3 = 5; + a0 = 0; + a5 = 1; + }else{ + a27 = 1; + a4 = 0; + a3 = 4; + a6 = 0; + a22 = 0; + a18 = 1; + } + return -1; + } else if(((((((!(a6==1)&&(((a18==1)&&((((input==3)&&!(a0==1))&&!(a15==1))&&!(a27==1)))&&(a3==8)))&&(a12==11))&&(a20==1))&&!(a22==1))&&(a4==1))&&(a5==1))){ + if((a6==1)){ + a22 = 1; + a3 = 6; + a4 = 0; + a12 = 9; + a5 = 0; + }else{ + a4 = 0; + a15 = 1; + a3 = 7; + a6 = 1; + a0 = 1; + a22 = 1; + } + return 21; + } else if((!(a27==1)&&(((a20==1)&&(!(a6==1)&&((a5==1)&&((a3==4)&&(!(a4==1)&&((a15==1)&&(!(a0==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a12==10)))))))))&&(a22==1)))){ + a0 = 1; + a3 = 5; + a27 = 1; + a4 = 1; + a6 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if(((a0==1)&&(((((((!(a5==1)&&((input==6)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))||(((a22==1)&&!(a18==1))&&(a3==7)))))&&!(a4==1))&&(a20==1))&&(a27==1))&&(a6==1))&&(a12==8))&&!(a15==1)))){ + a3 = 7; + a18 = 1; + a22 = 1; + a5 = 1; + a12 = 11; + return 26; + } else if(((!(a27==1)&&((a12==9)&&(((a20==1)&&((a0==1)&&((a5==1)&&((!(a4==1)&&((input==4)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))))&&!(a15==1)))))&&(a3==4))))&&(a6==1))){ + a18 = 0; + a15 = 1; + a27 = 1; + a22 = 0; + a12 = 10; + a4 = 1; + a6 = 0; + return 26; + } else if((((a5==1)&&(((!(a6==1)&&(((a12==11)&&(!(a0==1)&&((input==1)&&((((a22==1)&&(a18==1))&&(a3==5))||(((a3==4)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))))))&&(a15==1)))&&(a4==1))&&!(a27==1)))&&(a20==1))){ + a18 = 1; + a3 = 8; + a4 = 0; + a0 = 1; + a22 = 0; + a6 = 1; + a27 = 1; + a12 = 8; + return 21; + } else if((!(a5==1)&&(((!(a15==1)&&((((a20==1)&&((((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==2))&&!(a4==1))&&(a6==1)))&&(a3==5))&&(a27==1)))&&(a12==9))&&!(a0==1)))){ + a12 = 8; + a5 = 1; + a15 = 1; + a18 = 1; + a4 = 1; + a22 = 1; + a0 = 1; + a3 = 4; + return -1; + } else if(((a6==1)&&(!(a18==1)&&((((a22==1)&&((a5==1)&&(((a27==1)&&((a12==10)&&((a4==1)&&((input==6)&&(a0==1)))))&&(a15==1))))&&(a20==1))&&(a3==8))))){ + a15 = 0; + a12 = 8; + a3 = 6; + return 26; + } else if((!(a4==1)&&((a27==1)&&(((a3==6)&&(!(a6==1)&&(!(a18==1)&&(!(a22==1)&&((a20==1)&&(((a12==11)&&(!(a0==1)&&(input==2)))&&(a15==1)))))))&&!(a5==1))))){ + a5 = 1; + a18 = 1; + a0 = 1; + a22 = 1; + a4 = 1; + a12 = 8; + a3 = 4; + a6 = 1; + return -1; + } else if(((!(a22==1)&&((a15==1)&&(!(a0==1)&&((a20==1)&&((a12==10)&&(((!(a4==1)&&((a6==1)&&((input==4)&&((a18==1)||!(a18==1)))))&&!(a5==1))&&(a3==7)))))))&&!(a27==1))){ + a27 = 1; + a6 = 0; + a4 = 1; + a12 = 8; + a3 = 8; + a22 = 1; + a5 = 1; + a0 = 1; + a18 = 1; + return -1; + } else if((((a12==11)&&((!(a27==1)&&((a18==1)&&(!(a22==1)&&(((a4==1)&&((a0==1)&&(!(a5==1)&&((a15==1)&&(input==1)))))&&(a20==1)))))&&!(a6==1)))&&(a3==7))){ + a12 = 12; + a15 = 0; + a5 = 1; + a18 = 0; + a27 = 1; + a3 = 6; + return -1; + } else if(((a4==1)&&((((a12==8)&&((((((!(a6==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a3==8))&&!(a15==1))&&!(a22==1))&&!(a27==1))&&(a0==1)))&&!(a5==1))&&(a20==1)))){ + a22 = 1; + a3 = 4; + a15 = 1; + a6 = 1; + a5 = 1; + a18 = 1; + a27 = 1; + return -1; + } else if(((a5==1)&&(!(a4==1)&&(((((a20==1)&&((!(a27==1)&&(((a15==1)&&((input==6)&&(a3==4)))&&!(a0==1)))&&!(a18==1)))&&(a6==1))&&(a12==11))&&!(a22==1))))){ + if((a3==6)){ + a27 = 1; + a4 = 1; + a22 = 1; + a0 = 1; + a6 = 0; + a3 = 7; + a12 = 8; + }else{ + a12 = 8; + a0 = 1; + a27 = 1; + a22 = 1; + a18 = 1; + a3 = 5; + } + return -1; + } else if((((a3==6)&&((((!(a4==1)&&(((!(a15==1)&&(!(a22==1)&&((input==6)&&((a18==1)||!(a18==1)))))&&!(a27==1))&&(a20==1)))&&(a6==1))&&!(a5==1))&&(a12==8)))&&(a0==1))){ + a18 = 1; + a22 = 1; + a15 = 1; + a5 = 1; + a3 = 4; + a4 = 1; + a27 = 1; + return -1; + } else if((!(a0==1)&&((a3==4)&&((a12==9)&&(!(a15==1)&&((!(a27==1)&&((((!(a5==1)&&((input==5)&&((a18==1)||!(a18==1))))&&!(a6==1))&&(a20==1))&&(a4==1)))&&(a22==1))))))){ + a3 = 7; + a5 = 1; + a6 = 1; + a27 = 1; + a18 = 1; + a12 = 8; + a0 = 1; + a15 = 1; + return -1; + } else if((((((((!(a0==1)&&((((!(a18==1)&&(input==2))&&!(a4==1))&&(a12==9))&&!(a22==1)))&&!(a27==1))&&(a6==1))&&!(a5==1))&&(a20==1))&&!(a15==1))&&(a3==7))){ + if((a5==1)){ + a3 = 8; + a15 = 1; + a4 = 1; + a22 = 1; + }else{ + a5 = 1; + a15 = 1; + a12 = 8; + a0 = 1; + a22 = 1; + a18 = 1; + } + return 24; + } else if((!(a18==1)&&(!(a22==1)&&(!(a5==1)&&(((((((((a6==1)&&(input==1))&&(a15==1))&&!(a27==1))&&(a3==7))&&!(a4==1))&&(a20==1))&&(a12==11))&&!(a0==1)))))){ + a3 = 5; + a12 = 8; + a0 = 1; + a5 = 1; + a27 = 1; + a22 = 1; + return 21; + } else if(((((!(a4==1)&&((!(a0==1)&&((a27==1)&&((a20==1)&&(((((a3==6)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==4)))))&&!(a6==1)))&&(a5==1))&&(a12==10))&&!(a15==1))){ + a6 = 1; + a0 = 1; + a22 = 1; + a18 = 1; + a15 = 1; + a3 = 4; + a4 = 1; + a12 = 8; + return -1; + } else if((((a4==1)&&(((a3==5)&&(!(a6==1)&&((((((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a20==1))&&(a27==1))&&!(a15==1))&&!(a0==1))))&&(a12==8)))&&(a5==1))){ + a18 = 1; + a15 = 1; + a22 = 1; + a3 = 4; + a6 = 1; + a0 = 1; + return -1; + } else if((((a12==9)&&(((a20==1)&&((!(a0==1)&&((a27==1)&&(!(a6==1)&&((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==2)))))&&!(a4==1)))&&(a5==1)))&&(a15==1))){ + a18 = 0; + a3 = 7; + a12 = 12; + a22 = 0; + a4 = 1; + a5 = 0; + a0 = 1; + return 26; + } return calculate_output55(input); + } + + int calculate_output55(int input) { + if(((((a4==1)&&((a27==1)&&((a20==1)&&((a12==9)&&((((!(a6==1)&&((a3==4)&&((a22==1)&&!(a18==1))))||(((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1))))&&(input==3))&&(a0==1))))))&&!(a5==1))&&(a15==1))){ + a18 = 1; + a12 = 10; + a3 = 5; + a4 = 0; + a15 = 0; + a6 = 0; + a5 = 1; + a22 = 1; + return 26; + } else if((((!(a0==1)&&(!(a6==1)&&((a15==1)&&(((!(a27==1)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==3)))&&(a5==1))&&(a4==1)))))&&(a20==1))&&(a12==10))){ + a27 = 1; + a6 = 1; + a12 = 8; + a0 = 1; + a18 = 1; + a22 = 0; + a4 = 0; + a3 = 5; + return 26; + } else if((!(a15==1)&&((a20==1)&&(!(a5==1)&&(((((((!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4)))||((((a3==8)&&(!(a22==1)&&(a18==1)))&&(a6==1))||((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))))&&(input==1))&&(a12==11))&&!(a0==1))&&(a27==1))&&(a4==1)))))){ + a12 = 9; + a0 = 1; + a27 = 0; + a15 = 1; + a18 = 1; + a3 = 5; + a5 = 1; + a22 = 1; + a6 = 1; + return 21; + } else if(((a27==1)&&((((((a20==1)&&((a12==8)&&((!(a22==1)&&(((input==5)&&(a6==1))&&(a15==1)))&&!(a4==1))))&&!(a5==1))&&!(a18==1))&&(a3==8))&&(a0==1)))){ + a4 = 1; + a22 = 1; + a12 = 10; + a15 = 0; + a6 = 0; + a5 = 1; + return 24; + } else if(((a3==4)&&(!(a4==1)&&((a12==9)&&((((!(a5==1)&&((((input==6)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&(a27==1))&&(a15==1)))&&!(a6==1))&&(a20==1))&&(a0==1)))))){ + a0 = 0; + a12 = 11; + a15 = 0; + a4 = 1; + a3 = 8; + a5 = 1; + a22 = 1; + a18 = 1; + a6 = 1; + return 21; + } else if((((a3==4)&&(!(a4==1)&&(!(a6==1)&&(((((a12==11)&&((((a15==1)&&(input==4))&&(a22==1))&&(a18==1)))&&(a5==1))&&(a27==1))&&(a20==1)))))&&!(a0==1))){ + if((a27==1)){ + a4 = 1; + a18 = 0; + a15 = 0; + a3 = 8; + }else{ + a27 = 0; + a4 = 1; + a12 = 10; + a5 = 0; + a22 = 0; + a0 = 1; + a6 = 1; + a18 = 0; + } + return 21; + } else if((((((a12==12)&&(!(a27==1)&&((a20==1)&&(((a0==1)&&((input==6)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))))&&(a15==1)))))&&!(a5==1))&&(a6==1))&&(a4==1))){ + a18 = 0; + a3 = 5; + a27 = 1; + a22 = 0; + a12 = 11; + a5 = 1; + return 26; + } else if((((!(a15==1)&&((a18==1)&&((a0==1)&&((a3==8)&&(((a20==1)&&(((a27==1)&&((a22==1)&&(input==3)))&&(a4==1)))&&(a6==1))))))&&(a5==1))&&(a12==11))){ + a15 = 1; + a12 = 12; + a18 = 0; + a3 = 7; + return 26; + } else if(((a20==1)&&((a5==1)&&(!(a0==1)&&(!(a15==1)&&(((((((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==1))&&(a27==1))&&!(a4==1))&&(a12==12))&&(a3==5))&&(a6==1))))))){ + a6 = 0; + a22 = 0; + a15 = 1; + a12 = 8; + a18 = 0; + a4 = 1; + a0 = 1; + return 26; + } else if(((a27==1)&&(((a0==1)&&((((((a5==1)&&((a6==1)&&((a22==1)&&((input==3)&&(a20==1)))))&&(a12==10))&&(a3==7))&&(a4==1))&&(a15==1)))&&(a18==1)))){ + a12 = 9; + a4 = 0; + a6 = 0; + a3 = 8; + a15 = 0; + a27 = 0; + return 24; + } else if(((a5==1)&&((a15==1)&&((a6==1)&&(((((((!(a4==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a0==1))&&(a20==1))&&!(a22==1))&&!(a27==1))&&(a12==10))&&(a3==6)))))){ + a27 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + a4 = 1; + return -1; + } else if(((((!(a5==1)&&((a4==1)&&((a6==1)&&(((((((a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a18==1)&&!(a22==1)))))&&(input==1))&&(a20==1))&&(a15==1)))))&&!(a0==1))&&!(a27==1))&&(a12==9))){ + if((a15==1)){ + a6 = 0; + a27 = 1; + a3 = 7; + a15 = 0; + a12 = 12; + a22 = 1; + a18 = 1; + a0 = 1; + a5 = 1; + }else{ + a3 = 8; + a22 = 0; + a18 = 1; + a4 = 0; + a0 = 1; + a12 = 8; + a5 = 1; + a27 = 1; + } + return -1; + } else if(((a3==5)&&(((a20==1)&&((!(a18==1)&&(((a4==1)&&(((a15==1)&&(((input==4)&&!(a0==1))&&!(a5==1)))&&(a22==1)))&&(a6==1)))&&(a27==1)))&&(a12==11)))){ + a3 = 6; + a0 = 1; + a5 = 1; + a18 = 1; + return 21; + } else if(((((a20==1)&&((!(a5==1)&&((((a6==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&!(a0==1)))&&(a12==8))&&!(a4==1)))&&(a15==1)))&&(a3==6))&&(a27==1))){ + a5 = 1; + a0 = 1; + a18 = 1; + a22 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((a4==1)&&((((a12==10)&&(((((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==1))&&!(a27==1))&&!(a5==1))&&(a20==1))&&(a15==1))&&!(a6==1)))&&(a0==1))&&(a3==7)))){ + a27 = 1; + a22 = 0; + a4 = 0; + a3 = 4; + a6 = 1; + a18 = 0; + return 21; + } else if(((((a3==7)&&((!(a4==1)&&(((a5==1)&&((a22==1)&&((!(a15==1)&&((input==6)&&(a12==9)))&&!(a0==1))))&&(a6==1)))&&!(a18==1)))&&(a27==1))&&(a20==1))){ + a12 = 8; + a4 = 1; + a3 = 5; + a0 = 1; + a6 = 0; + return 21; + } else if(((a4==1)&&(!(a15==1)&&((((a20==1)&&(((!(a6==1)&&(((((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==5)))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==6)))&&!(a5==1))&&(a0==1)))&&(a12==11))&&!(a27==1))))){ + if((a20==1)){ + a22 = 1; + a4 = 0; + a12 = 12; + a18 = 1; + a3 = 7; + }else{ + a3 = 4; + a18 = 1; + a15 = 1; + a5 = 1; + a27 = 1; + a22 = 0; + a6 = 1; + } + return 26; + } else if(((((a22==1)&&(((a20==1)&&(!(a15==1)&&((!(a4==1)&&(((a5==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a12==9)))&&!(a6==1))))&&(a0==1)))&&(a27==1))&&(a3==6))){ + a4 = 1; + a15 = 1; + a3 = 4; + a12 = 8; + a6 = 1; + a18 = 1; + return -1; + } else if(((a6==1)&&(((!(a0==1)&&(((((((a18==1)&&((input==5)&&(a3==6)))&&(a20==1))&&(a27==1))&&(a5==1))&&(a4==1))&&(a22==1)))&&(a12==9))&&!(a15==1)))){ + a22 = 0; + a18 = 0; + a3 = 4; + a4 = 0; + a12 = 12; + a0 = 1; + return 21; + } else if((!(a27==1)&&((a5==1)&&((((a3==5)&&((a4==1)&&((a20==1)&&((((input==3)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&!(a0==1))&&(a6==1)))))&&(a12==8))&&(a15==1))))){ + if((a15==1)){ + a18 = 0; + a27 = 1; + a0 = 1; + a22 = 0; + a3 = 6; + a6 = 0; + }else{ + a0 = 1; + a3 = 7; + a4 = 0; + a22 = 1; + a6 = 0; + a15 = 0; + a18 = 1; + a12 = 11; + a27 = 1; + } + return 24; + } else if((!(a5==1)&&(!(a6==1)&&(!(a27==1)&&((((a20==1)&&((!(a0==1)&&(((((a18==1)||!(a18==1))&&(input==6))&&(a12==9))&&(a22==1)))&&!(a15==1)))&&!(a4==1))&&(a3==7)))))){ + a27 = 1; + a3 = 8; + a5 = 1; + a18 = 0; + a12 = 8; + return -1; + } else if((!(a27==1)&&((a3==5)&&((a6==1)&&(((a12==11)&&((!(a5==1)&&(((a4==1)&&((a20==1)&&((input==6)&&(a0==1))))&&!(a18==1)))&&!(a15==1)))&&!(a22==1)))))){ + a5 = 1; + a6 = 0; + a22 = 1; + a12 = 10; + a27 = 1; + a4 = 0; + return 26; + } else if((((a12==12)&&((((a3==8)&&((a0==1)&&(((!(a15==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2)))&&(a27==1))&&(a6==1))))&&(a4==1))&&(a20==1)))&&!(a5==1))){ + a15 = 1; + a5 = 1; + a3 = 4; + a22 = 0; + a12 = 11; + a18 = 0; + a4 = 0; + a6 = 0; + return 21; + } else if((((a20==1)&&((((!(a6==1)&&((((!(a15==1)&&((!(a22==1)&&!(a18==1))&&!(a5==1)))&&(a12==9))&&!(a4==1))&&(a3==8)))||(((a3==4)&&(((a12==10)&&(((a5==1)&&((a18==1)&&(a22==1)))&&(a15==1)))&&(a4==1)))&&(a6==1)))&&(input==6))&&(a27==1)))&&!(a0==1))){ + a6 = 1; + a5 = 1; + a12 = 8; + a22 = 1; + a18 = 1; + a3 = 4; + a15 = 1; + a0 = 1; + a4 = 1; + return -1; + } else if(((a6==1)&&((((a3==7)&&((a12==12)&&((a15==1)&&(((a20==1)&&((a22==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a27==1))))&&(a0==1)))))&&!(a4==1))&&(a5==1)))){ + a18 = 1; + a12 = 8; + a4 = 1; + a3 = 4; + return -1; + } else if((!(a18==1)&&((!(a27==1)&&(!(a15==1)&&(!(a4==1)&&((((a6==1)&&((a3==5)&&(((a20==1)&&(input==5))&&(a0==1))))&&(a5==1))&&(a12==12)))))&&(a22==1)))){ + a15 = 1; + a12 = 8; + a22 = 0; + a3 = 4; + a4 = 1; + return -1; + } else if(((a5==1)&&((a4==1)&&(((a20==1)&&((a6==1)&&(((((input==4)&&(((a3==5)&&((a18==1)&&(a22==1)))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))))&&(a27==1))&&!(a0==1))&&(a12==9))))&&!(a15==1))))){ + a6 = 0; + a15 = 1; + a3 = 4; + a4 = 0; + a5 = 0; + a0 = 1; + a18 = 0; + a22 = 1; + a12 = 11; + return -1; + } else if(((a27==1)&&((a12==12)&&((!(a0==1)&&(!(a5==1)&&((a4==1)&&((((input==4)&&(((!(a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a18==1)&&(a22==1))))))&&(a20==1))&&!(a15==1)))))&&!(a6==1))))){ + if((a12==11)){ + a27 = 0; + a22 = 0; + a18 = 0; + a0 = 1; + a12 = 9; + a5 = 1; + a3 = 5; + a4 = 0; + a15 = 1; + a6 = 1; + }else{ + a27 = 0; + a18 = 1; + a0 = 1; + a4 = 0; + a22 = 1; + a3 = 5; + } + return -1; + } else if((((((a27==1)&&(!(a15==1)&&(((a5==1)&&((a20==1)&&((a4==1)&&(((input==3)&&(a0==1))&&!(a22==1)))))&&!(a18==1))))&&(a12==8))&&!(a6==1))&&(a3==5))){ + a18 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if(((a15==1)&&((!(a6==1)&&(((((((a20==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==6)))&&!(a4==1))&&!(a0==1))&&(a3==5))&&(a27==1))&&!(a5==1)))&&(a12==8)))){ + a4 = 1; + a15 = 0; + a0 = 1; + a12 = 10; + a3 = 8; + a22 = 0; + a18 = 0; + return 21; + } else if((((((a20==1)&&(!(a27==1)&&((a0==1)&&((a5==1)&&(!(a6==1)&&((input==4)&&((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))||((a3==7)&&(!(a18==1)&&(a22==1))))))))))&&(a15==1))&&(a4==1))&&(a12==12))){ + a3 = 8; + a4 = 0; + a12 = 9; + a22 = 1; + a18 = 0; + a27 = 1; + a15 = 0; + a5 = 0; + return 26; + } else if((((((((a5==1)&&((((input==3)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1)))))&&!(a27==1))&&!(a15==1)))&&(a6==1))&&(a20==1))&&(a4==1))&&(a0==1))&&(a12==9))){ + a27 = 1; + a6 = 0; + a3 = 5; + a18 = 0; + a22 = 1; + a12 = 10; + return 24; + } else if((!(a0==1)&&((a3==4)&&((a20==1)&&((a6==1)&&((!(a5==1)&&(((a4==1)&&((!(a27==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a15==1)))&&!(a22==1)))&&(a12==9))))))){ + a22 = 1; + a4 = 0; + a0 = 1; + a3 = 7; + a18 = 1; + a27 = 1; + a6 = 0; + a12 = 12; + a15 = 0; + return 21; + } else if(((!(a4==1)&&((a12==10)&&((a27==1)&&((a0==1)&&(((a5==1)&&((a20==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&!(a6==1))))&&(a3==7))))))&&(a15==1))){ + a3 = 6; + a18 = 0; + a22 = 0; + a27 = 0; + a5 = 0; + a12 = 9; + return 26; + } else if(((((a6==1)&&((a0==1)&&((a5==1)&&((a12==9)&&(((a20==1)&&((input==3)&&(((a3==8)&&(!(a18==1)&&(a22==1)))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1)))))))&&!(a15==1))))))&&!(a4==1))&&(a27==1))){ + a4 = 1; + a3 = 4; + a15 = 1; + a22 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if(((a6==1)&&((((!(a27==1)&&((a4==1)&&(((a12==12)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4))&&(a20==1)))&&(a3==5))))&&(a15==1))&&!(a5==1))&&(a0==1)))){ + a22 = 1; + a27 = 1; + a5 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + return -1; + } else if((((a0==1)&&(((!(a27==1)&&((a15==1)&&((input==6)&&((!(a6==1)&&((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1))))||(((((a18==1)&&(a22==1))&&!(a4==1))&&(a3==4))&&(a6==1))))))&&(a20==1))&&(a12==8)))&&!(a5==1))){ + a18 = 1; + a22 = 0; + a12 = 10; + a6 = 1; + a3 = 8; + a4 = 1; + a27 = 1; + return 21; + } else if(((a15==1)&&((((a20==1)&&(((a6==1)&&(((a3==6)&&(((input==1)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a0==1)))&&!(a5==1)))&&(a12==9)))&&(a27==1))&&!(a4==1)))){ + a12 = 11; + a15 = 0; + a3 = 8; + a4 = 1; + a22 = 1; + a0 = 1; + a5 = 1; + a18 = 1; + return 24; + } else if(((a0==1)&&(!(a22==1)&&((a12==10)&&(!(a18==1)&&((a15==1)&&((a3==5)&&((a20==1)&&((a6==1)&&((!(a4==1)&&((input==5)&&(a27==1)))&&!(a5==1))))))))))){ + if((a6==1)){ + a22 = 1; + a5 = 1; + a12 = 8; + a0 = 0; + a3 = 7; + a18 = 1; + }else{ + a5 = 1; + a15 = 0; + a3 = 7; + a18 = 1; + a4 = 1; + a6 = 0; + a22 = 1; + } + return -1; + } else if((((a12==11)&&(((a4==1)&&((((((!(a5==1)&&(!(a22==1)&&(input==1)))&&(a3==8))&&!(a6==1))&&!(a0==1))&&(a20==1))&&!(a27==1)))&&(a18==1)))&&!(a15==1))){ + a3 = 4; + a5 = 1; + a6 = 1; + a12 = 8; + a27 = 1; + a15 = 1; + a0 = 1; + a22 = 1; + a4 = 0; + return -1; + } else if((!(a18==1)&&((a12==11)&&(((a5==1)&&((!(a15==1)&&(((((!(a27==1)&&(input==1))&&(a4==1))&&(a3==4))&&!(a6==1))&&(a20==1)))&&!(a0==1)))&&!(a22==1))))){ + a27 = 1; + a15 = 1; + a0 = 1; + a12 = 8; + a3 = 5; + a18 = 1; + a22 = 1; + return 21; + } else if(((((a6==1)&&(((((a12==11)&&(((a3==7)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==5)))&&!(a4==1)))&&(a0==1))&&(a15==1))&&!(a27==1)))&&(a20==1))&&!(a5==1))){ + a18 = 1; + a12 = 8; + a3 = 4; + a4 = 1; + a27 = 1; + a5 = 1; + a22 = 1; + return -1; + } else if((((((!(a27==1)&&((a0==1)&&(!(a4==1)&&(((input==5)&&((((a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a22==1)&&!(a18==1))))))&&!(a15==1)))))&&(a20==1))&&(a6==1))&&(a12==9))&&(a5==1))){ + a3 = 7; + a6 = 0; + a22 = 0; + a15 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if((((a12==11)&&((!(a4==1)&&((((((a3==5)&&((input==1)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a6==1))&&!(a27==1))&&!(a0==1))&&(a20==1)))&&!(a5==1)))&&!(a15==1))){ + if((a18==1)){ + a18 = 0; + a3 = 6; + a22 = 0; + a0 = 1; + a12 = 8; + a4 = 1; + a27 = 1; + a15 = 1; + a6 = 0; + a5 = 1; + }else{ + a0 = 1; + a12 = 9; + a22 = 1; + a15 = 1; + a6 = 0; + a18 = 0; + a27 = 1; + a3 = 6; + a5 = 1; + } + return 21; + } else if((((a6==1)&&(!(a15==1)&&((a20==1)&&(((a3==5)&&((!(a27==1)&&((a12==11)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3))))&&(a0==1)))&&(a4==1)))))&&!(a5==1))){ + a0 = 0; + a15 = 1; + a27 = 1; + a18 = 0; + a22 = 1; + a3 = 7; + return 26; + } else if(((!(a27==1)&&(((!(a4==1)&&(((((input==4)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))||((a3==8)&&((a22==1)&&!(a18==1)))))&&!(a0==1))&&(a12==10))&&(a20==1)))&&!(a15==1))&&!(a5==1)))&&!(a6==1))){ + if((a6==1)){ + a27 = 1; + a15 = 1; + a18 = 1; + a22 = 1; + a0 = 1; + a12 = 12; + a3 = 7; + a5 = 1; + }else{ + a3 = 5; + a22 = 0; + a18 = 1; + a12 = 11; + } + return -1; + } else if(((a0==1)&&(((a5==1)&&(!(a4==1)&&((a27==1)&&((a12==9)&&(!(a6==1)&&(((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==6))&&(a20==1))&&(a3==5)))))))&&(a15==1)))){ + a3 = 6; + a6 = 1; + a4 = 1; + a18 = 1; + a22 = 1; + a12 = 11; + return 26; + } else if((((a4==1)&&((((a12==12)&&((((((((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==5)))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==4))&&!(a6==1))&&!(a5==1))&&(a0==1)))&&(a20==1))&&(a15==1)))&&(a27==1))){ + a3 = 8; + a22 = 1; + a6 = 1; + a18 = 1; + a27 = 0; + return 26; + } else if(((((!(a6==1)&&((((!(a0==1)&&(((a18==1)&&((input==4)&&!(a4==1)))&&!(a22==1)))&&(a15==1))&&(a12==12))&&(a20==1)))&&(a5==1))&&(a27==1))&&(a3==7))){ + a5 = 0; + a22 = 1; + a12 = 11; + a3 = 8; + a0 = 1; + a4 = 1; + return 26; + } else if(((!(a27==1)&&((a18==1)&&(!(a6==1)&&(((a5==1)&&((a3==5)&&((a20==1)&&((a4==1)&&((!(a0==1)&&(input==1))&&(a15==1))))))&&(a12==8)))))&&(a22==1))){ + a22 = 0; + a3 = 7; + a12 = 11; + a18 = 0; + a0 = 1; + a4 = 0; + return 21; + } else if(((!(a0==1)&&((a5==1)&&((a6==1)&&((((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6))&&(a4==1))&&(a15==1))&&(a12==10))&&(a20==1))&&!(a27==1)))))&&(a3==6))){ + if((a27==1)){ + a6 = 0; + a18 = 0; + a12 = 12; + a3 = 8; + a22 = 1; + a0 = 1; + a15 = 0; + a5 = 0; + }else{ + a22 = 1; + a27 = 1; + a18 = 1; + a0 = 1; + a12 = 8; + a4 = 0; + } + return 26; + } else if(((((((((a12==8)&&(!(a15==1)&&(!(a22==1)&&((a0==1)&&((input==2)&&((a18==1)||!(a18==1)))))))&&(a20==1))&&!(a5==1))&&(a3==8))&&!(a6==1))&&(a4==1))&&!(a27==1))){ + a22 = 1; + a18 = 1; + a12 = 10; + a4 = 0; + a15 = 1; + a27 = 1; + a3 = 6; + return 21; + } else if((((((!(a5==1)&&(((((((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==1))&&!(a15==1))&&!(a27==1))&&(a0==1)))&&(a20==1))&&!(a6==1))&&(a12==12))&&(a4==1))){ + a3 = 8; + a12 = 11; + a22 = 1; + a18 = 1; + a27 = 1; + a6 = 1; + return 21; + } else if(((a15==1)&&((a12==10)&&(((a27==1)&&((!(a4==1)&&((a0==1)&&(((((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==5))&&!(a6==1))))&&!(a5==1)))&&(a20==1))))){ + a6 = 1; + a22 = 1; + a3 = 4; + a18 = 0; + a5 = 1; + return -1; + } else if(((!(a15==1)&&((a20==1)&&(((a0==1)&&(!(a4==1)&&((a12==10)&&(!(a5==1)&&((((!(a18==1)&&(a22==1))&&(a3==8))||(((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8))))&&(input==4))))))&&(a27==1))))&&(a6==1))){ + if((a27==1)){ + a0 = 0; + a15 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + }else{ + a3 = 4; + a4 = 1; + a18 = 1; + a22 = 0; + } + return -1; + } else if(((!(a15==1)&&((a12==11)&&((a20==1)&&((!(a4==1)&&(((a6==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))||((!(a18==1)&&(a22==1))&&(a3==8)))&&(input==6)))&&!(a27==1)))&&(a5==1)))))&&!(a0==1))){ + if((a12==11)){ + a27 = 1; + a22 = 1; + a12 = 8; + a18 = 0; + a0 = 1; + a3 = 5; + a5 = 0; + a15 = 1; + }else{ + a3 = 6; + a18 = 0; + a22 = 0; + a6 = 0; + a0 = 1; + a12 = 10; + } + return -1; + } else if(((a5==1)&&(((a20==1)&&((a12==10)&&((((a15==1)&&((a4==1)&&((input==5)&&((((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a22==1)&&!(a18==1))))||((a3==5)&&((a22==1)&&(a18==1)))))))&&(a6==1))&&!(a27==1))))&&(a0==1)))){ + if((a27==1)){ + a12 = 12; + a3 = 7; + a18 = 1; + a5 = 0; + a22 = 0; + a15 = 0; + }else{ + a12 = 12; + a3 = 6; + a18 = 1; + a15 = 0; + a4 = 0; + a22 = 0; + } + return 26; + } else if(((((a12==8)&&(((((!(a4==1)&&((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==5))&&!(a6==1)))&&(a3==5))&&(a27==1))&&(a0==1))&&(a5==1)))&&(a15==1))&&(a20==1))){ + a18 = 0; + a4 = 1; + a15 = 0; + a22 = 1; + a6 = 1; + return 21; + } else if(((a20==1)&&(!(a15==1)&&((a5==1)&&(!(a6==1)&&(!(a4==1)&&(((a22==1)&&((a18==1)&&((((a27==1)&&(input==1))&&(a12==8))&&(a0==1))))&&(a3==4)))))))){ + a12 = 9; + a22 = 0; + a6 = 1; + a18 = 0; + return 26; + } else if((!(a15==1)&&((a3==5)&&((a4==1)&&(((((a0==1)&&((!(a22==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a12==8)))&&(a20==1)))&&!(a27==1))&&!(a6==1))&&(a5==1)))))){ + if((a15==1)){ + a0 = 0; + a27 = 1; + a15 = 1; + a6 = 1; + a12 = 11; + a3 = 7; + a18 = 1; + a5 = 0; + }else{ + a12 = 12; + a4 = 0; + a3 = 6; + a18 = 0; + a22 = 1; + a27 = 1; + } + return 21; + } else if((((a5==1)&&((a4==1)&&(((!(a6==1)&&((((input==1)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1)))))&&!(a0==1))&&(a12==8)))&&!(a27==1))&&!(a15==1))))&&(a20==1))){ + a18 = 0; + a0 = 1; + a15 = 1; + a27 = 1; + a6 = 1; + a3 = 5; + a22 = 0; + return 26; + } else if((!(a6==1)&&((((a20==1)&&((!(a27==1)&&((a0==1)&&((a12==10)&&(((a22==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a3==4)))))&&!(a5==1)))&&!(a15==1))&&!(a4==1)))){ + a22 = 0; + a6 = 1; + a18 = 1; + a3 = 6; + return 26; + } else if(((!(a4==1)&&(((a15==1)&&((((a20==1)&&(((input==6)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1)))))&&(a0==1)))&&!(a5==1))&&(a12==11)))&&(a27==1)))&&(a6==1))){ + a22 = 1; + a3 = 5; + a27 = 0; + a18 = 0; + a4 = 1; + return 24; + } else if(((((a3==7)&&(((a20==1)&&(((a5==1)&&(((!(a0==1)&&((a12==10)&&(input==6)))&&!(a22==1))&&!(a6==1)))&&!(a18==1)))&&!(a4==1)))&&(a15==1))&&(a27==1))){ + a5 = 0; + a0 = 1; + a6 = 1; + a4 = 1; + a22 = 1; + return -1; + } else if(((a18==1)&&(!(a6==1)&&(((((!(a15==1)&&(((((a12==11)&&(input==3))&&(a22==1))&&(a4==1))&&(a5==1)))&&!(a27==1))&&(a3==5))&&!(a0==1))&&(a20==1))))){ + a3 = 8; + a18 = 0; + a12 = 12; + a0 = 1; + a4 = 0; + a22 = 0; + a6 = 1; + return 21; + } else if(((a27==1)&&((a12==11)&&((a15==1)&&((a6==1)&&((a22==1)&&((a5==1)&&((((!(a4==1)&&((input==4)&&((a18==1)||!(a18==1))))&&(a3==7))&&(a20==1))&&(a0==1))))))))){ + a4 = 1; + a15 = 0; + a3 = 8; + a18 = 0; + a12 = 10; + a22 = 0; + return -1; + } else if(((a12==10)&&(!(a0==1)&&(((!(a27==1)&&(!(a22==1)&&((a15==1)&&(((!(a18==1)&&((a20==1)&&(input==5)))&&(a5==1))&&!(a4==1)))))&&(a6==1))&&(a3==6))))){ + a12 = 8; + a18 = 1; + a0 = 1; + a27 = 1; + return 21; + } else if((((a20==1)&&((a12==9)&&((((!(a4==1)&&(!(a6==1)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==6))))&&!(a15==1))&&(a5==1))&&(a0==1))))&&!(a27==1))){ + a4 = 1; + a15 = 1; + a6 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a27 = 1; + a22 = 1; + return -1; + } else if((!(a15==1)&&((a20==1)&&(!(a6==1)&&((((((a12==8)&&(((((a22==1)&&(a18==1))&&(a3==7))||((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1)))))&&(input==3)))&&(a27==1))&&(a4==1))&&!(a5==1))&&(a0==1)))))){ + if((a0==1)){ + a27 = 0; + a6 = 1; + a18 = 1; + a22 = 0; + a3 = 6; + a12 = 12; + }else{ + a22 = 0; + a18 = 0; + a4 = 0; + a0 = 0; + a6 = 1; + a12 = 10; + a3 = 7; + a15 = 1; + } + return 21; + } else if((((a4==1)&&((a27==1)&&((a12==8)&&(((a3==7)&&(((!(a5==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==1)))&&!(a15==1))&&(a20==1)))&&(a0==1)))))&&(a6==1))){ + if((a5==1)){ + a22 = 0; + a18 = 0; + a0 = 0; + a3 = 5; + a12 = 11; + }else{ + a22 = 0; + a12 = 10; + a18 = 0; + } + return 21; + } else if(((a12==12)&&(((((((((((!(a18==1)&&(a22==1))&&!(a4==1))&&(a3==4))&&(a6==1))||((!(a6==1)&&(((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8)))||(((a3==4)&&(!(a4==1)&&((a22==1)&&(a18==1))))&&(a6==1))))&&(input==1))&&!(a27==1))&&(a0==1))&&(a5==1))&&(a15==1))&&(a20==1)))){ + a27 = 1; + a18 = 1; + a12 = 10; + a15 = 0; + a4 = 1; + a22 = 1; + a6 = 0; + a3 = 5; + return 24; + } else if(((a20==1)&&(((a15==1)&&(!(a4==1)&&(!(a0==1)&&(((a3==5)&&((!(a5==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==5)))&&!(a27==1)))&&(a12==11)))))&&!(a6==1)))){ + if((a27==1)){ + a18 = 1; + a3 = 8; + a4 = 1; + a27 = 1; + a6 = 1; + a12 = 8; + a5 = 1; + a22 = 1; + a0 = 1; + }else{ + a12 = 12; + a22 = 1; + a3 = 4; + a27 = 1; + a15 = 0; + a4 = 1; + a18 = 0; + } + return 26; + } else if(((a3==6)&&(((a27==1)&&(((a4==1)&&(!(a6==1)&&(((!(a15==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==5)))&&(a5==1))&&(a12==12))))&&!(a0==1)))&&(a20==1)))){ + if((a15==1)){ + a22 = 0; + a18 = 1; + a12 = 10; + a3 = 4; + a4 = 0; + a27 = 0; + a0 = 1; + }else{ + a15 = 1; + a18 = 1; + a6 = 1; + a3 = 4; + a12 = 8; + a22 = 0; + a0 = 1; + } + return 24; + } else if(((((a0==1)&&(!(a4==1)&&((!(a5==1)&&(((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a27==1))&&(a3==8))&&(a12==9)))&&(a6==1))))&&!(a15==1))&&(a20==1))){ + a18 = 0; + a5 = 1; + a15 = 1; + a12 = 10; + a4 = 1; + a22 = 0; + a3 = 7; + return 21; + } else if(((a12==11)&&((!(a4==1)&&(!(a0==1)&&((a3==7)&&((a15==1)&&((((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==2))&&!(a5==1))&&!(a27==1))&&!(a6==1))))))&&(a20==1)))){ + a18 = 1; + a4 = 1; + a6 = 1; + a22 = 0; + a5 = 1; + a0 = 1; + a12 = 8; + a3 = 8; + a27 = 1; + return 21; + } else if(((a20==1)&&(!(a18==1)&&(((!(a0==1)&&((!(a4==1)&&((a27==1)&&((((a12==10)&&(input==2))&&!(a5==1))&&!(a22==1))))&&(a3==5)))&&(a6==1))&&(a15==1))))){ + a15 = 0; + a6 = 0; + a0 = 1; + a4 = 1; + return -1; + } else if(((a20==1)&&((!(a5==1)&&((a12==12)&&((a6==1)&&((((((!(a4==1)&&(input==4))&&(a15==1))&&(a27==1))&&(a0==1))&&!(a22==1))&&(a3==4)))))&&(a18==1)))){ + a18 = 0; + a12 = 9; + a4 = 1; + a0 = 0; + return 21; + } else if((((a4==1)&&(!(a15==1)&&((a3==4)&&((a0==1)&&(!(a6==1)&&(((((input==2)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a20==1))&&(a5==1))&&(a12==8)))))))&&!(a27==1))){ + a6 = 1; + a27 = 1; + a22 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if(((a20==1)&&((a12==9)&&((a6==1)&&(((a15==1)&&(!(a27==1)&&((!(a4==1)&&((a22==1)&&(!(a5==1)&&(!(a18==1)&&(input==3)))))&&(a3==4))))&&(a0==1)))))){ + a22 = 0; + a3 = 7; + a6 = 0; + a12 = 8; + a18 = 1; + return 26; + } else if((!(a6==1)&&(((a5==1)&&(((((a27==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==5))&&!(a15==1)))&&(a20==1))&&(a12==12))&&!(a0==1)))&&(a4==1)))){ + a22 = 0; + a12 = 8; + a15 = 1; + a18 = 0; + a3 = 8; + a0 = 1; + return 21; + } else if(((a3==4)&&((!(a15==1)&&((a22==1)&&(((!(a6==1)&&((a20==1)&&((a0==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a5==1)))))&&(a12==8))&&(a27==1))))&&(a4==1)))){ + a15 = 1; + a18 = 1; + a6 = 1; + return -1; + } else if(((a12==9)&&((((!(a15==1)&&((!(a27==1)&&((a20==1)&&((a4==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a5==1)))))&&(a0==1)))&&(a22==1))&&(a3==4))&&(a6==1)))){ + a18 = 1; + a12 = 11; + a6 = 0; + a5 = 0; + a27 = 1; + return 26; + } else if((((((a27==1)&&(((a0==1)&&(((a3==5)&&((a22==1)&&(!(a15==1)&&((input==6)&&!(a4==1)))))&&!(a5==1)))&&(a12==9)))&&!(a6==1))&&(a18==1))&&(a20==1))){ + a27 = 0; + a3 = 7; + a18 = 0; + a5 = 1; + a6 = 1; + a4 = 1; + return 24; + } else if((((a27==1)&&((!(a6==1)&&(((a20==1)&&(((a5==1)&&((a15==1)&&((input==4)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))))&&(a3==7)))&&(a12==11)))&&!(a0==1)))&&!(a4==1))){ + a22 = 1; + a12 = 10; + a0 = 1; + a15 = 0; + a4 = 1; + a18 = 1; + return -1; + } else if(((((!(a27==1)&&((!(a6==1)&&(((a5==1)&&(((((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1))))||(((a22==1)&&!(a18==1))&&(a3==5)))&&(input==2)))&&(a0==1)))&&(a15==1)))&&(a12==9))&&(a20==1))&&!(a4==1))){ + a6 = 1; + a12 = 11; + a18 = 1; + a3 = 5; + a27 = 1; + a22 = 1; + return 21; + } else if((((a12==10)&&((!(a4==1)&&(((!(a27==1)&&((input==5)&&((((a6==1)&&((!(a22==1)&&(a18==1))&&(a3==8)))||(((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1)))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4))))))&&(a0==1))&&!(a5==1)))&&(a20==1)))&&(a15==1))){ + a5 = 1; + a27 = 1; + a12 = 11; + a18 = 1; + a6 = 0; + a3 = 6; + a22 = 0; + return -1; + } else if((!(a5==1)&&((((((a15==1)&&(((((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1))))&&!(a6==1))||(((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1)))&&(a6==1)))&&(input==4)))&&!(a27==1))&&(a20==1))&&(a0==1))&&(a12==8)))){ + a4 = 0; + a18 = 1; + a12 = 12; + a0 = 0; + a3 = 8; + a27 = 1; + a5 = 1; + a6 = 1; + a22 = 1; + return 21; + } else if(((a12==8)&&((a20==1)&&(((a27==1)&&((a15==1)&&((a0==1)&&((!(a6==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==6)))&&(input==2)))&&!(a5==1)))))&&(a4==1))))){ + a6 = 1; + a22 = 0; + a3 = 4; + a5 = 1; + a18 = 1; + a12 = 10; + return 21; + } else if(((!(a27==1)&&((((a5==1)&&((a3==8)&&(!(a4==1)&&(((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==2))&&!(a6==1))&&(a0==1)))))&&(a20==1))&&!(a15==1)))&&(a12==8))){ + a12 = 12; + a15 = 1; + a27 = 1; + a4 = 1; + a22 = 1; + a6 = 1; + a18 = 0; + return 21; + } else if(((a3==4)&&((a20==1)&&((a12==12)&&(((!(a22==1)&&(((a5==1)&&((a15==1)&&(!(a4==1)&&(((a18==1)||!(a18==1))&&(input==1)))))&&(a0==1)))&&!(a6==1))&&(a27==1)))))){ + a18 = 1; + a4 = 1; + a27 = 0; + a3 = 8; + return 21; + } else if((!(a6==1)&&((a15==1)&&(((a12==8)&&(!(a27==1)&&((((((((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1))))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==5))&&!(a4==1))&&(a20==1))&&!(a0==1))))&&(a5==1))))){ + if((a5==1)){ + a12 = 11; + a22 = 1; + a3 = 6; + a4 = 1; + a6 = 1; + a18 = 1; + }else{ + a6 = 1; + a22 = 0; + a4 = 1; + a3 = 8; + a18 = 0; + a0 = 1; + a27 = 1; + } + return 21; + } else if((((a12==10)&&(((a27==1)&&((a20==1)&&((!(a4==1)&&(!(a0==1)&&((a3==5)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==2)))))&&(a6==1))))&&!(a5==1)))&&(a15==1))){ + a0 = 1; + a15 = 0; + a3 = 6; + a6 = 0; + a12 = 12; + a22 = 1; + a18 = 0; + a4 = 1; + a5 = 1; + a27 = 0; + return 26; + } else if(((((a20==1)&&((a15==1)&&((((!(a4==1)&&((input==1)&&((((!(a22==1)&&(a18==1))&&(a3==7))||((a3==7)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==8)))))&&(a27==1))&&!(a0==1))&&(a5==1))))&&(a12==8))&&!(a6==1))){ + a6 = 1; + a4 = 1; + a3 = 4; + a22 = 1; + a0 = 1; + a18 = 1; + return -1; + } else if(((((a12==9)&&((a15==1)&&((((input==1)&&(((((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8))&&!(a6==1))||((a6==1)&&((a3==4)&&(!(a4==1)&&((a22==1)&&(a18==1)))))))&&(a27==1))&&(a20==1))))&&(a0==1))&&!(a5==1))){ + a6 = 0; + a22 = 1; + a3 = 5; + a12 = 10; + a15 = 0; + a4 = 1; + a18 = 0; + return 21; + } else if(((((a12==11)&&(((!(a27==1)&&(!(a0==1)&&((a20==1)&&(((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a15==1)))))&&(a4==1))&&(a6==1)))&&(a5==1))&&(a3==8))){ + a22 = 0; + a18 = 0; + a27 = 1; + a12 = 8; + a3 = 5; + a0 = 1; + return 21; + } else if(((a20==1)&&(((a12==9)&&((!(a6==1)&&(!(a4==1)&&(!(a15==1)&&((a3==5)&&(!(a0==1)&&((input==6)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))))))&&!(a5==1)))&&(a27==1)))){ + a6 = 1; + a0 = 1; + a4 = 1; + a15 = 1; + a18 = 1; + a5 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + return -1; + } else if(((a12==9)&&(!(a27==1)&&(((a3==6)&&((!(a22==1)&&((a4==1)&&((!(a5==1)&&((a20==1)&&(!(a18==1)&&(input==2))))&&(a0==1))))&&(a15==1)))&&!(a6==1))))){ + a12 = 8; + a3 = 4; + a5 = 1; + a6 = 1; + a27 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if((!(a0==1)&&(((a27==1)&&((!(a6==1)&&((a20==1)&&((((((input==1)&&(a5==1))&&!(a22==1))&&(a3==6))&&(a4==1))&&!(a15==1))))&&(a12==12)))&&!(a18==1)))){ + if((a5==1)){ + a15 = 1; + a3 = 7; + a12 = 8; + a0 = 1; + a6 = 1; + }else{ + a12 = 8; + a15 = 1; + a0 = 1; + a3 = 5; + a6 = 1; + } + return 21; + } else if((((a12==12)&&(!(a0==1)&&((a3==6)&&(((!(a15==1)&&((((input==3)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a20==1))&&(a6==1)))&&(a27==1))&&(a4==1)))))&&!(a5==1))){ + a5 = 1; + a6 = 0; + a27 = 0; + a12 = 11; + a22 = 1; + a18 = 0; + a0 = 1; + a3 = 4; + return -1; + } else if(((a3==8)&&(!(a5==1)&&(((((a0==1)&&((a27==1)&&((((input==2)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&(a12==8))&&!(a6==1))))&&!(a15==1))&&(a4==1))&&(a20==1))))){ + a3 = 4; + a6 = 1; + a5 = 1; + a22 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if((!(a15==1)&&(((a3==7)&&(!(a6==1)&&((((a4==1)&&((a12==9)&&((a5==1)&&(((input==3)&&(a20==1))&&!(a18==1)))))&&(a27==1))&&(a0==1))))&&(a22==1)))){ + a6 = 1; + a27 = 0; + a18 = 1; + a3 = 4; + a15 = 1; + a12 = 8; + a22 = 0; + return 26; + } else if(((a20==1)&&(((a27==1)&&(!(a22==1)&&((!(a15==1)&&(((a18==1)&&((a3==8)&&(((input==6)&&(a12==11))&&!(a6==1))))&&(a5==1)))&&!(a0==1))))&&!(a4==1)))){ + a0 = 1; + a3 = 6; + a15 = 1; + return 21; + } else if(((a0==1)&&((a20==1)&&(!(a27==1)&&((!(a5==1)&&((a12==11)&&((!(a4==1)&&(((((a22==1)&&(a18==1))&&(a3==7))||((((a18==1)&&!(a22==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6))))&&(input==2)))&&(a6==1))))&&(a15==1)))))){ + a18 = 1; + a4 = 1; + a12 = 8; + a3 = 4; + a5 = 1; + a22 = 1; + a27 = 1; + return -1; + } else if((!(a5==1)&&(((!(a27==1)&&(!(a6==1)&&(((((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==5))&&(a15==1))&&(a3==6))&&!(a0==1))&&!(a4==1))))&&(a20==1))&&(a12==8)))){ + a6 = 1; + a15 = 0; + a12 = 9; + a22 = 0; + a3 = 4; + a4 = 1; + a27 = 1; + a18 = 1; + return 21; + } else if(((a3==7)&&(!(a0==1)&&(((a22==1)&&(((!(a15==1)&&(!(a4==1)&&((a20==1)&&((a27==1)&&((input==3)&&!(a5==1))))))&&(a18==1))&&(a12==10)))&&!(a6==1))))){ + a15 = 1; + a6 = 1; + a0 = 1; + a12 = 12; + a5 = 1; + return 26; + } else if(((a3==4)&&(!(a0==1)&&((a20==1)&&((a27==1)&&((a12==8)&&((!(a6==1)&&((a15==1)&&(((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a5==1))))&&!(a4==1)))))))){ + a0 = 1; + a22 = 0; + a3 = 6; + a18 = 0; + a4 = 1; + a12 = 12; + return 26; + } else if((!(a27==1)&&((((a3==4)&&((a4==1)&&(!(a6==1)&&((!(a0==1)&&((a5==1)&&((a15==1)&&((input==2)&&(a20==1)))))&&(a12==8)))))&&(a18==1))&&(a22==1)))){ + a5 = 0; + a0 = 1; + a6 = 1; + a18 = 0; + a22 = 0; + return -1; + } else if((((a27==1)&&((!(a5==1)&&(((a12==11)&&(((input==4)&&((!(a6==1)&&(((a22==1)&&!(a18==1))&&(a3==4)))||(((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1)))))&&(a4==1)))&&(a20==1)))&&(a15==1)))&&!(a0==1))){ + a15 = 0; + a12 = 12; + a22 = 0; + a18 = 0; + a3 = 6; + a4 = 0; + a6 = 1; + a5 = 1; + a0 = 1; + a27 = 0; + return 21; + } else if(((a6==1)&&(((((!(a5==1)&&(!(a15==1)&&(!(a4==1)&&((a20==1)&&((input==4)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))))))&&!(a27==1))&&(a3==8))&&(a0==1))&&(a12==10)))){ + a18 = 0; + a6 = 0; + a12 = 9; + a3 = 4; + a22 = 1; + a5 = 1; + return -1; + } else if(((((((((a15==1)&&(!(a0==1)&&((a27==1)&&((a5==1)&&(!(a22==1)&&(input==2))))))&&(a3==7))&&!(a4==1))&&(a12==12))&&!(a6==1))&&(a20==1))&&!(a18==1))){ + a22 = 1; + a12 = 10; + a5 = 0; + a0 = 1; + return 21; + } else if(((a0==1)&&(!(a5==1)&&((a20==1)&&(((!(a15==1)&&((a12==11)&&(((input==1)&&(((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1))))||((a3==5)&&((a22==1)&&(a18==1)))))&&(a6==1))))&&(a4==1))&&!(a27==1)))))){ + a22 = 1; + a3 = 8; + a18 = 0; + a27 = 1; + return -1; + } else if((!(a27==1)&&(!(a4==1)&&((a5==1)&&(((a20==1)&&((((((input==2)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&(a0==1))&&(a3==8))&&(a12==12))&&(a6==1)))&&(a15==1)))))){ + if((a3==5)){ + a15 = 0; + a6 = 0; + a18 = 0; + a5 = 0; + a4 = 1; + a22 = 1; + a3 = 7; + }else{ + a6 = 0; + a3 = 4; + a4 = 1; + a12 = 11; + a22 = 1; + a27 = 1; + a18 = 0; + } + return 21; + } else if((((((a22==1)&&(((a18==1)&&((a20==1)&&((((!(a15==1)&&(input==1))&&!(a27==1))&&(a3==6))&&(a4==1))))&&!(a5==1)))&&!(a0==1))&&!(a6==1))&&(a12==8))){ + a4 = 0; + a22 = 0; + a3 = 5; + a27 = 1; + a6 = 1; + a0 = 1; + a15 = 1; + a5 = 1; + return -1; + } else if((!(a15==1)&&(!(a0==1)&&((a12==11)&&(((a4==1)&&(!(a6==1)&&((a20==1)&&(((input==6)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7))))&&!(a27==1)))))&&!(a5==1)))))){ + a15 = 1; + a5 = 1; + a12 = 12; + a18 = 0; + a3 = 4; + a0 = 1; + a22 = 1; + return -1; + } else if((!(a18==1)&&((a0==1)&&(!(a22==1)&&(!(a27==1)&&(((a15==1)&&(!(a5==1)&&((a6==1)&&((a20==1)&&(((input==1)&&(a12==10))&&!(a4==1))))))&&(a3==5))))))){ + a27 = 1; + a18 = 1; + a5 = 1; + a3 = 4; + a4 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if(((a0==1)&&((!(a6==1)&&((((((a5==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a15==1)))&&(a27==1))&&(a3==4))&&!(a4==1))&&(a12==11)))&&(a20==1)))){ + a5 = 0; + a15 = 0; + a18 = 0; + a22 = 1; + a6 = 1; + a27 = 0; + a3 = 6; + a12 = 10; + return 21; + } else if(((a0==1)&&(((((!(a22==1)&&(((a27==1)&&((!(a6==1)&&((input==4)&&!(a5==1)))&&(a12==10)))&&!(a18==1)))&&(a3==6))&&(a20==1))&&(a15==1))&&!(a4==1)))){ + if((a15==1)){ + a0 = 0; + a5 = 1; + a4 = 1; + a22 = 1; + a3 = 5; + }else{ + a18 = 1; + a6 = 1; + a22 = 1; + a27 = 0; + a5 = 1; + a15 = 0; + a3 = 4; + } + return 26; + } else if((((!(a5==1)&&((a4==1)&&((a12==8)&&(((a27==1)&&(((a3==5)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1)))&&!(a0==1)))&&!(a6==1)))))&&(a20==1))&&(a15==1))){ + a6 = 1; + a12 = 10; + a4 = 0; + a22 = 0; + a5 = 1; + a18 = 0; + a0 = 1; + a3 = 4; + return 26; + } else if(((((!(a0==1)&&((a12==10)&&(((!(a4==1)&&(((input==5)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&!(a6==1)))&&(a27==1))&&!(a5==1))))&&(a15==1))&&(a20==1))&&(a3==7))){ + a4 = 1; + a5 = 1; + a3 = 4; + a6 = 1; + a12 = 8; + a0 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((a0==1)&&(((((a12==12)&&(!(a4==1)&&(((((a6==1)&&((input==4)&&!(a22==1)))&&!(a15==1))&&(a27==1))&&(a3==5))))&&(a20==1))&&(a18==1))&&(a5==1)))){ + a12 = 10; + a22 = 1; + a5 = 0; + a4 = 1; + a3 = 4; + return -1; + } else if(((a12==9)&&((!(a5==1)&&(((((!(a27==1)&&((((a4==1)&&(input==6))&&(a22==1))&&(a3==7)))&&!(a18==1))&&(a20==1))&&(a6==1))&&(a0==1)))&&!(a15==1)))){ + a3 = 5; + return 26; + } else if((((a0==1)&&((a27==1)&&((!(a15==1)&&(!(a22==1)&&((a5==1)&&((a20==1)&&((a12==10)&&((((a18==1)||!(a18==1))&&(input==4))&&(a3==4)))))))&&(a6==1))))&&(a4==1))){ + a15 = 1; + a6 = 0; + a3 = 8; + a18 = 1; + a4 = 0; + return -1; + } else if((!(a15==1)&&((a5==1)&&((a20==1)&&(((a4==1)&&(((a6==1)&&(((a0==1)&&((input==6)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))&&(a27==1)))&&(a3==4)))&&(a12==11)))))){ + a12 = 8; + a18 = 1; + a22 = 1; + a15 = 1; + return -1; + } else if(((((!(a15==1)&&((((((a3==5)&&((a12==11)&&((a4==1)&&(input==3))))&&!(a18==1))&&(a5==1))&&(a22==1))&&(a27==1)))&&(a20==1))&&(a6==1))&&(a0==1))){ + a15 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((((a5==1)&&(((((!(a22==1)&&((a4==1)&&(!(a0==1)&&(!(a6==1)&&(input==5)))))&&(a27==1))&&(a12==12))&&(a20==1))&&!(a15==1)))&&!(a18==1))&&(a3==6))){ + if((a15==1)){ + a18 = 1; + a4 = 0; + a3 = 4; + a0 = 1; + }else{ + a0 = 1; + a3 = 8; + a12 = 8; + a15 = 1; + } + return 24; + } else if((((a0==1)&&(((((a20==1)&&(!(a27==1)&&(((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==6))&&!(a6==1))))&&!(a5==1))&&!(a4==1))&&!(a15==1)))&&(a12==11))){ + a4 = 1; + a27 = 1; + a5 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + a15 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if(((a22==1)&&(((a0==1)&&(!(a27==1)&&((a18==1)&&(((a3==5)&&(((a5==1)&&(((a15==1)&&(input==2))&&(a12==12)))&&(a6==1)))&&(a4==1)))))&&(a20==1)))){ + a4 = 0; + a22 = 0; + a12 = 11; + a27 = 1; + return 26; + } else if((((a15==1)&&(((a20==1)&&(((a4==1)&&((a6==1)&&((a0==1)&&((input==2)&&(((a3==6)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6))))))))&&(a12==9)))&&!(a5==1)))&&(a27==1))){ + a3 = 7; + a22 = 1; + a12 = 8; + a15 = 0; + a27 = 0; + a18 = 0; + a5 = 1; + return 21; + } else if(((a3==5)&&(((a27==1)&&((a22==1)&&((!(a5==1)&&(!(a18==1)&&(!(a0==1)&&((a4==1)&&(((a20==1)&&(input==5))&&!(a6==1))))))&&(a15==1))))&&(a12==10)))){ + a0 = 1; + a6 = 1; + a12 = 9; + a3 = 7; + a22 = 0; + a18 = 1; + return 26; + } else if((!(a0==1)&&(((a12==10)&&(((((a20==1)&&(((a15==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==3)))&&!(a27==1)))&&!(a4==1))&&(a3==5))&&(a6==1)))&&(a5==1)))){ + if((a12==9)){ + a6 = 0; + a18 = 0; + a22 = 0; + a0 = 1; + a4 = 1; + }else{ + a4 = 1; + a15 = 0; + a12 = 8; + a22 = 1; + a3 = 8; + a18 = 1; + } + return -1; + } else if((((((a0==1)&&(((((a12==10)&&((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==4)))&&(a5==1))&&(a4==1))&&!(a27==1)))&&!(a15==1))&&!(a6==1))&&(a20==1))){ + a22 = 1; + a4 = 0; + a18 = 1; + a12 = 8; + a3 = 6; + return 26; + } else if(((a12==9)&&((!(a5==1)&&(((a20==1)&&(((a4==1)&&(((input==4)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))||((!(a18==1)&&(a22==1))&&(a3==5))))&&(a6==1)))&&(a15==1)))&&!(a0==1)))&&(a27==1)))){ + a18 = 1; + a12 = 11; + a0 = 1; + a22 = 1; + a3 = 6; + return -1; + } else if(((((a4==1)&&(!(a6==1)&&(((a5==1)&&((((((a3==6)&&((a22==1)&&!(a18==1)))||(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1)))))&&(input==1))&&!(a15==1))&&!(a27==1)))&&(a20==1))))&&(a12==10))&&(a0==1))){ + a0 = 0; + a3 = 5; + a22 = 1; + a6 = 1; + a18 = 0; + a12 = 9; + a27 = 1; + a4 = 0; + return 26; + } else if(((!(a0==1)&&((a20==1)&&((!(a15==1)&&((((a12==11)&&(((input==2)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&!(a5==1)))&&!(a6==1))&&(a3==8)))&&(a27==1))))&&(a4==1))){ + a22 = 1; + a18 = 0; + a12 = 9; + a27 = 0; + a0 = 1; + a3 = 7; + return 21; + } else if((((a0==1)&&(((!(a5==1)&&(!(a22==1)&&((!(a4==1)&&(((a12==10)&&(((a18==1)||!(a18==1))&&(input==5)))&&!(a15==1)))&&!(a27==1))))&&(a6==1))&&(a20==1)))&&(a3==7))){ + a18 = 1; + a15 = 1; + a4 = 1; + a3 = 4; + a5 = 1; + a27 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if(((((!(a5==1)&&((a20==1)&&(((((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==6))&&!(a4==1))&&(a3==4))&&!(a6==1))&&(a15==1))))&&(a12==9))&&!(a0==1))&&(a27==1))){ + a22 = 0; + a15 = 0; + a0 = 1; + a3 = 7; + a6 = 1; + a5 = 1; + a18 = 1; + return 21; + } else if((((((a3==8)&&(!(a6==1)&&((a0==1)&&((a4==1)&&((a12==9)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&!(a5==1)))))))&&(a27==1))&&(a20==1))&&!(a15==1))){ + a18 = 1; + a6 = 1; + a12 = 12; + a5 = 1; + a22 = 1; + return 21; + } else if(((!(a0==1)&&(((((((((!(a15==1)&&(input==1))&&(a22==1))&&!(a18==1))&&(a3==4))&&(a12==8))&&!(a27==1))&&!(a6==1))&&(a20==1))&&(a4==1)))&&(a5==1))){ + if((a5==1)){ + a27 = 1; + a3 = 5; + a6 = 1; + a5 = 0; + a4 = 0; + a22 = 0; + }else{ + a0 = 1; + a18 = 1; + a27 = 1; + a6 = 1; + a4 = 0; + a15 = 1; + a22 = 0; + a3 = 6; + } + return 26; + } else if((!(a0==1)&&(((((a20==1)&&(((((a6==1)&&((a3==4)&&(!(a4==1)&&(!(a18==1)&&(a22==1)))))||(((((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8))&&!(a6==1))||((a6==1)&&((!(a4==1)&&((a18==1)&&(a22==1)))&&(a3==4)))))&&(input==6))&&!(a27==1)))&&(a5==1))&&!(a15==1))&&(a12==9)))){ + if((a4==1)){ + a3 = 4; + a12 = 12; + a5 = 0; + a0 = 1; + a6 = 1; + a18 = 1; + a22 = 0; + a4 = 1; + }else{ + a18 = 0; + a6 = 1; + a3 = 8; + a27 = 1; + a4 = 0; + a22 = 0; + a15 = 1; + a0 = 1; + a12 = 8; + } + return 26; + } else if(((a20==1)&&((!(a4==1)&&(((!(a6==1)&&(((a12==9)&&((a5==1)&&((input==2)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))&&!(a0==1)))&&(a15==1))&&!(a27==1)))&&(a3==4)))){ + if((a5==1)){ + a22 = 0; + a27 = 1; + a18 = 1; + a12 = 11; + a15 = 0; + a5 = 0; + a4 = 1; + }else{ + a27 = 1; + a0 = 1; + a6 = 1; + a12 = 11; + a22 = 0; + a5 = 0; + a3 = 6; + a18 = 0; + } + return 21; + } else if((((a20==1)&&((a12==11)&&((((a27==1)&&(((((a4==1)&&(!(a15==1)&&(input==4)))&&!(a0==1))&&(a3==7))&&!(a22==1)))&&(a5==1))&&(a6==1))))&&(a18==1))){ + a3 = 8; + a0 = 1; + a15 = 1; + return 26; + } else if(((!(a15==1)&&(((a27==1)&&(!(a0==1)&&((a20==1)&&(!(a5==1)&&(((input==5)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8))))&&!(a6==1))))))&&(a4==1)))&&(a12==10))){ + a22 = 0; + a5 = 1; + a12 = 11; + a6 = 1; + a4 = 0; + a3 = 6; + a0 = 1; + a18 = 0; + return 21; + } else if(((a6==1)&&(((((((a27==1)&&(((((input==2)&&((a18==1)||!(a18==1)))&&!(a15==1))&&(a3==4))&&(a0==1)))&&(a12==8))&&(a20==1))&&(a4==1))&&(a5==1))&&(a22==1)))){ + a18 = 1; + a3 = 8; + a4 = 0; + return 21; + } else if((((((a12==11)&&(((((((!(a18==1)&&(input==6))&&(a27==1))&&!(a6==1))&&!(a15==1))&&!(a5==1))&&!(a4==1))&&(a3==8)))&&(a20==1))&&(a0==1))&&(a22==1))){ + a15 = 1; + a18 = 1; + a4 = 1; + a3 = 4; + a5 = 1; + a12 = 8; + a6 = 1; + return -1; + } else if(((a4==1)&&((((a12==8)&&((a27==1)&&((((((a20==1)&&(!(a6==1)&&(input==3)))&&(a15==1))&&(a3==7))&&!(a22==1))&&!(a0==1))))&&!(a18==1))&&!(a5==1)))){ + a18 = 1; + a22 = 1; + a3 = 4; + a5 = 1; + a6 = 1; + a0 = 1; + return -1; + } else if((((a3==6)&&(((a27==1)&&((((!(a6==1)&&(!(a0==1)&&((input==4)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&(a5==1))&&(a12==9))&&(a20==1)))&&!(a15==1)))&&!(a4==1))){ + a18 = 0; + a12 = 8; + a0 = 1; + a15 = 1; + a3 = 5; + a22 = 0; + return 24; + } else if(((a3==7)&&(((a20==1)&&(!(a5==1)&&(!(a6==1)&&((a27==1)&&((!(a0==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==6))&&!(a4==1)))&&(a12==8))))))&&(a15==1)))){ + a0 = 1; + a3 = 6; + a5 = 1; + a22 = 0; + a18 = 0; + return -1; + } else if(((a27==1)&&((a15==1)&&(((a12==9)&&((a5==1)&&(((((((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1)))))&&(input==1))&&(a0==1))&&(a20==1))))&&!(a4==1))))){ + a12 = 12; + a22 = 0; + a5 = 0; + a18 = 0; + a3 = 5; + a6 = 1; + return 26; + } else if((((a6==1)&&((a3==7)&&((!(a18==1)&&(((a22==1)&&(((a12==8)&&((a15==1)&&((input==2)&&(a0==1))))&&!(a4==1)))&&(a5==1)))&&!(a27==1))))&&(a20==1))){ + a4 = 1; + a27 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a20==1)&&(!(a5==1)&&(!(a27==1)&&(!(a15==1)&&(((((!(a0==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4)))&&(a4==1))&&(a12==11))&&!(a6==1))&&(a3==6))))))){ + if((a27==1)){ + a6 = 1; + a12 = 8; + a15 = 1; + a5 = 1; + a0 = 1; + a3 = 7; + a22 = 0; + a18 = 0; + a27 = 1; + }else{ + a27 = 1; + a15 = 1; + a12 = 12; + a5 = 1; + a18 = 1; + a22 = 0; + a3 = 4; + } + return -1; + } else if(((a20==1)&&(((a0==1)&&((((!(a22==1)&&(!(a15==1)&&(((a6==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a5==1))))&&(a4==1))&&(a27==1))&&(a12==10)))&&(a3==4)))){ + if((a5==1)){ + a18 = 0; + a4 = 0; + a5 = 0; + a0 = 0; + a22 = 1; + a12 = 9; + a3 = 6; + }else{ + a3 = 7; + a15 = 1; + a18 = 0; + a6 = 0; + } + return -1; + } else if(((((a15==1)&&((a12==8)&&(((a0==1)&&((a20==1)&&(((input==3)&&((((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==4)))||((a3==5)&&((a18==1)&&(a22==1)))))&&(a4==1))))&&!(a27==1))))&&(a6==1))&&!(a5==1))){ + if((a6==1)){ + a4 = 0; + a18 = 0; + a0 = 0; + a27 = 1; + a12 = 11; + a3 = 7; + a22 = 1; + a6 = 0; + }else{ + a18 = 0; + a6 = 0; + a22 = 0; + a3 = 6; + a27 = 1; + a12 = 11; + } + return 21; + } else if(((a3==6)&&(!(a18==1)&&((a4==1)&&((a15==1)&&(((!(a5==1)&&((!(a27==1)&&(((a12==11)&&(input==1))&&(a20==1)))&&(a0==1)))&&(a22==1))&&!(a6==1))))))){ + a18 = 1; + a3 = 4; + a27 = 1; + a12 = 8; + a6 = 1; + a5 = 1; + return -1; + } else if(((((a3==8)&&(!(a15==1)&&((a20==1)&&(((((((input==2)&&((a18==1)||!(a18==1)))&&(a4==1))&&!(a27==1))&&(a6==1))&&(a0==1))&&(a22==1)))))&&(a12==12))&&(a5==1))){ + a3 = 4; + a12 = 10; + a27 = 1; + a18 = 1; + return 21; + } else if(((a0==1)&&((a27==1)&&(((a5==1)&&((((((((a3==7)&&((a22==1)&&(a18==1)))||(((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a22==1)&&!(a18==1)))))&&(input==3))&&!(a4==1))&&(a20==1))&&(a12==10))&&(a15==1)))&&!(a6==1))))){ + a18 = 0; + a22 = 1; + a3 = 4; + a12 = 11; + return 21; + } else if((((a27==1)&&((a12==8)&&((!(a6==1)&&((!(a4==1)&&((a15==1)&&((input==6)&&((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7)))||((a3==7)&&((a22==1)&&!(a18==1)))))))&&(a20==1)))&&(a5==1))))&&(a0==1))){ + a15 = 0; + a4 = 1; + a18 = 0; + a3 = 6; + a22 = 0; + return 24; + } else if(((a27==1)&&(((((((a15==1)&&((a3==5)&&((a0==1)&&((input==5)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))))&&!(a6==1))&&(a12==10))&&(a5==1))&&(a4==1))&&(a20==1)))){ + a3 = 4; + a12 = 8; + a6 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((a12==8)&&((a0==1)&&(!(a22==1)&&(!(a15==1)&&((a20==1)&&((!(a5==1)&&((a3==8)&&((((a6==1)&&(input==2))&&(a4==1))&&(a27==1))))&&!(a18==1)))))))){ + a4 = 0; + a18 = 1; + a12 = 10; + a22 = 1; + return 21; + } else if((((a3==8)&&((!(a22==1)&&((a20==1)&&(!(a27==1)&&(!(a6==1)&&((a5==1)&&((a12==8)&&((((a18==1)||!(a18==1))&&(input==4))&&(a4==1))))))))&&(a15==1)))&&!(a0==1))){ + if((a0==1)){ + a5 = 0; + a12 = 11; + a4 = 0; + a18 = 1; + }else{ + a15 = 0; + a3 = 4; + a0 = 1; + a6 = 1; + a18 = 0; + } + return 21; + } else if((!(a15==1)&&((a5==1)&&((!(a27==1)&&((a20==1)&&((a12==10)&&((((input==4)&&(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8))))&&(a0==1))&&(a4==1)))))&&(a6==1))))){ + a3 = 7; + a22 = 0; + a12 = 11; + a18 = 0; + return 21; + } else if(((!(a27==1)&&((((a6==1)&&(((((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==3))&&(a20==1))&&!(a15==1))&&!(a5==1)))&&(a4==1))&&!(a0==1)))&&(a12==8))){ + a27 = 1; + a5 = 1; + a22 = 0; + a6 = 0; + a3 = 8; + a18 = 1; + a0 = 1; + a15 = 1; + return -1; + } else if(((((a5==1)&&((a15==1)&&((a20==1)&&((((!(a6==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==4)))&&(a0==1))&&(a12==11))&&(a27==1)))))&&(a4==1))&&(a3==4))){ + a18 = 1; + a3 = 6; + a6 = 1; + a12 = 10; + a22 = 1; + return -1; + } else if(((((((!(a5==1)&&(((a27==1)&&(((((a18==1)&&(a22==1))&&(a3==7))||(((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a22==1)&&!(a18==1)))))&&(input==1)))&&!(a15==1)))&&(a0==1))&&(a6==1))&&(a4==1))&&(a12==10))&&(a20==1))){ + a5 = 1; + a18 = 1; + a15 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + return -1; + } else if(((a15==1)&&((!(a6==1)&&((((a3==8)&&(!(a4==1)&&(!(a0==1)&&((((a22==1)&&(input==3))&&(a12==10))&&(a20==1)))))&&(a18==1))&&!(a5==1)))&&!(a27==1)))){ + if((a18==1)){ + a4 = 1; + a0 = 1; + a12 = 8; + a22 = 0; + a27 = 1; + a3 = 7; + a6 = 1; + a5 = 1; + }else{ + a5 = 1; + a0 = 1; + a4 = 1; + a27 = 1; + a12 = 8; + } + return -1; + } else if((((!(a27==1)&&((a4==1)&&((a5==1)&&((((a20==1)&&(((((a18==1)&&(a22==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1)))))&&(input==3)))&&(a12==9))&&!(a15==1)))))&&!(a0==1))&&!(a6==1))){ + a15 = 1; + a3 = 6; + a18 = 0; + a0 = 1; + a27 = 1; + a12 = 8; + a22 = 0; + return 21; + } else if((!(a22==1)&&(((a4==1)&&(!(a0==1)&&(((a20==1)&&((((((input==1)&&!(a6==1))&&(a12==8))&&(a3==8))&&!(a18==1))&&(a27==1)))&&!(a15==1))))&&(a5==1)))){ + a3 = 6; + a12 = 12; + a0 = 1; + return -1; + } else if((!(a6==1)&&((a27==1)&&((a0==1)&&((((((a20==1)&&(((input==6)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&!(a15==1)))&&!(a4==1))&&(a5==1))&&(a3==5))&&(a12==8)))))){ + if((a0==1)){ + a3 = 7; + a0 = 0; + a5 = 0; + a4 = 1; + a15 = 1; + a18 = 1; + a22 = 1; + }else{ + a12 = 9; + a3 = 4; + a18 = 0; + a22 = 1; + } + return 21; + } else if((!(a0==1)&&((((a4==1)&&((!(a15==1)&&(((((input==4)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&(a3==6))&&(a27==1))&&!(a5==1)))&&(a6==1)))&&(a12==10))&&(a20==1)))){ + a18 = 1; + a15 = 1; + a3 = 4; + a0 = 1; + a12 = 8; + a5 = 1; + a22 = 1; + return -1; + } else if(((((a5==1)&&((!(a15==1)&&((!(a27==1)&&(((a3==6)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a22==1)))&&!(a0==1)))&&(a20==1)))&&(a12==8)))&&(a6==1))&&!(a4==1))){ + a4 = 1; + a12 = 9; + a5 = 0; + a0 = 1; + a15 = 1; + a18 = 1; + a22 = 0; + a3 = 4; + return 24; + } else if(((((!(a27==1)&&(((a0==1)&&(((a12==12)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==5)))&&(a4==1)))&&!(a5==1)))&&(a20==1))&&!(a15==1))&&!(a6==1))){ + a5 = 1; + a12 = 10; + a22 = 1; + a18 = 0; + a3 = 6; + a27 = 1; + a6 = 1; + return 21; + } else if(((a15==1)&&((a0==1)&&(!(a27==1)&&(!(a5==1)&&((a4==1)&&((a20==1)&&(((((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))||((!(a18==1)&&(a22==1))&&(a3==8)))&&(input==2))&&(a6==1))&&(a12==9))))))))){ + a3 = 6; + a18 = 1; + a5 = 1; + a12 = 12; + a22 = 1; + return 21; + } else if((((((((!(a27==1)&&(((((a3==4)&&((a22==1)&&!(a18==1)))&&!(a6==1))||(((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4)))))&&(input==5)))&&!(a5==1))&&(a4==1))&&!(a0==1))&&(a20==1))&&(a12==9))&&(a15==1))){ + a18 = 1; + a12 = 10; + a22 = 0; + a3 = 8; + a0 = 1; + a15 = 0; + a5 = 1; + a6 = 1; + a27 = 1; + return -1; + } else if(((a4==1)&&(((((!(a27==1)&&((a3==4)&&(!(a0==1)&&((a12==9)&&((a6==1)&&((input==2)&&(a20==1)))))))&&!(a18==1))&&!(a5==1))&&(a22==1))&&(a15==1)))){ + a27 = 1; + a0 = 1; + a5 = 1; + a12 = 8; + a4 = 0; + a22 = 0; + a3 = 8; + a18 = 1; + return -1; + } else if(((a12==12)&&((a27==1)&&((a5==1)&&((a20==1)&&((((a3==5)&&((a6==1)&&((!(a22==1)&&((input==2)&&!(a15==1)))&&!(a4==1))))&&(a18==1))&&(a0==1))))))){ + a22 = 1; + a5 = 0; + a6 = 0; + a3 = 7; + a18 = 0; + a12 = 10; + a15 = 1; + return -1; + } else if(((((a27==1)&&(!(a22==1)&&(((a12==11)&&(((a15==1)&&((((input==5)&&((a18==1)||!(a18==1)))&&(a0==1))&&!(a5==1)))&&!(a6==1)))&&(a20==1))))&&(a3==5))&&!(a4==1))){ + a27 = 0; + a4 = 1; + a18 = 1; + return 21; + } else if((((!(a5==1)&&(!(a4==1)&&((a15==1)&&((a0==1)&&(!(a27==1)&&((!(a6==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2)))&&(a20==1)))))))&&(a12==11))&&(a3==8))){ + if((a27==1)){ + a12 = 12; + a6 = 1; + a15 = 0; + a3 = 5; + a18 = 1; + a22 = 0; + }else{ + a12 = 12; + a22 = 0; + a18 = 0; + a27 = 1; + a5 = 1; + } + return 26; + } else if((((a20==1)&&((a3==4)&&((a0==1)&&((((!(a27==1)&&(!(a6==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==3))))&&!(a4==1))&&(a15==1))&&(a12==9)))))&&!(a5==1))){ + a4 = 1; + a6 = 1; + a22 = 1; + a27 = 1; + a18 = 1; + a12 = 8; + a5 = 1; + return -1; + } else if(((((a6==1)&&(!(a0==1)&&((a27==1)&&((((a3==7)&&((a20==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3))))&&(a12==8))&&(a15==1)))))&&(a5==1))&&(a4==1))){ + a12 = 11; + a5 = 0; + a18 = 0; + a22 = 1; + a0 = 1; + a3 = 8; + return -1; + } else if(((a20==1)&&(((!(a27==1)&&(((!(a15==1)&&((((input==4)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a12==9))&&!(a0==1)))&&!(a5==1))&&(a3==6)))&&(a4==1))&&!(a6==1)))){ + a5 = 1; + a22 = 0; + a0 = 1; + a3 = 8; + a15 = 1; + a18 = 1; + return 24; + } else if(((a20==1)&&(((((a5==1)&&(!(a4==1)&&(((a27==1)&&((((a3==5)&&((a22==1)&&(a18==1)))||(((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a22==1)&&!(a18==1)))))&&(input==3)))&&(a15==1))))&&!(a0==1))&&!(a6==1))&&(a12==10)))){ + a18 = 0; + a3 = 7; + a12 = 12; + a0 = 1; + a4 = 1; + a5 = 0; + a22 = 0; + return 26; + } else if(((((a22==1)&&((a0==1)&&((a18==1)&&((a15==1)&&(((!(a27==1)&&(!(a6==1)&&((input==2)&&(a20==1))))&&(a12==12))&&!(a5==1))))))&&(a3==8))&&(a4==1))){ + a15 = 0; + a6 = 1; + a27 = 1; + a3 = 4; + a12 = 11; + a4 = 0; + a22 = 0; + return -1; + } else if((!(a27==1)&&(((a4==1)&&(((((!(a22==1)&&(((!(a5==1)&&(input==1))&&(a3==7))&&!(a6==1)))&&(a15==1))&&(a0==1))&&(a12==12))&&!(a18==1)))&&(a20==1)))){ + a12 = 8; + a22 = 1; + a6 = 1; + a5 = 1; + a3 = 4; + a27 = 1; + a18 = 1; + return -1; + } else if(((((a12==8)&&(!(a22==1)&&((((a4==1)&&(!(a15==1)&&((a20==1)&&((a0==1)&&(!(a18==1)&&(input==4))))))&&(a3==8))&&!(a5==1))))&&(a27==1))&&(a6==1))){ + a5 = 1; + a15 = 1; + a18 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if(((a12==11)&&(((!(a5==1)&&(((a0==1)&&(!(a27==1)&&(((((input==3)&&((a18==1)||!(a18==1)))&&(a20==1))&&(a22==1))&&!(a15==1))))&&(a3==4)))&&!(a6==1))&&!(a4==1)))){ + a5 = 1; + a27 = 1; + a6 = 1; + a4 = 1; + a15 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((a0==1)&&((a20==1)&&(((!(a27==1)&&((((a6==1)&&((a3==4)&&((((a22==1)&&(a18==1))&&!(a15==1))&&(a4==1))))||((!(a6==1)&&((((a15==1)&&((a18==1)&&!(a22==1)))&&!(a4==1))&&(a3==8)))||(((a3==8)&&(!(a4==1)&&((a15==1)&&(!(a18==1)&&!(a22==1)))))&&!(a6==1))))&&(input==4)))&&(a12==11))&&(a5==1))))){ + a6 = 0; + a12 = 10; + a18 = 0; + a5 = 0; + a0 = 0; + a15 = 1; + a4 = 0; + a22 = 0; + a27 = 1; + a3 = 8; + return 21; + } else if((((a15==1)&&((a20==1)&&(((a0==1)&&(!(a27==1)&&((a5==1)&&((input==2)&&(((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1)))))))&&(a4==1))))&&(a12==8))){ + a6 = 0; + a12 = 12; + a3 = 6; + a27 = 1; + a18 = 0; + a22 = 0; + a0 = 0; + return 21; + } else if(((a6==1)&&((a12==9)&&(!(a4==1)&&(((!(a0==1)&&((a22==1)&&((a20==1)&&((((input==6)&&(a3==8))&&(a18==1))&&!(a15==1)))))&&(a5==1))&&!(a27==1)))))){ + a0 = 1; + a15 = 1; + a22 = 0; + a12 = 8; + a27 = 1; + a4 = 1; + return -1; + } else if(((a27==1)&&((a5==1)&&(((a15==1)&&(((a18==1)&&(((a20==1)&&(!(a6==1)&&(!(a0==1)&&((input==1)&&!(a4==1)))))&&(a3==5)))&&(a12==11)))&&(a22==1))))){ + a12 = 10; + a22 = 0; + a0 = 1; + a18 = 0; + a5 = 0; + return 21; + } else if(((a5==1)&&(!(a0==1)&&((((((a22==1)&&(((((a15==1)&&(input==3))&&(a20==1))&&(a27==1))&&(a6==1)))&&(a12==10))&&(a3==8))&&(a4==1))&&(a18==1))))){ + a12 = 8; + a0 = 1; + a3 = 4; + return -1; + } else if((((a22==1)&&(!(a0==1)&&((!(a5==1)&&((a3==5)&&((a20==1)&&((a27==1)&&((a4==1)&&((((a18==1)||!(a18==1))&&(input==2))&&(a12==11)))))))&&!(a15==1))))&&!(a6==1))){ + a5 = 1; + a4 = 0; + a3 = 7; + a0 = 1; + a18 = 1; + a15 = 1; + a22 = 0; + a6 = 1; + return -1; + } else if((((a6==1)&&((!(a5==1)&&((((((a4==1)&&((input==1)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a0==1))&&(a12==10))&&(a20==1))&&(a3==8)))&&(a27==1)))&&!(a15==1))){ + a15 = 1; + a0 = 1; + a18 = 1; + a22 = 1; + a5 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if((!(a27==1)&&((a12==10)&&(((((((a6==1)&&((((input==1)&&!(a18==1))&&(a22==1))&&!(a0==1)))&&(a20==1))&&(a15==1))&&(a5==1))&&(a3==5))&&(a4==1))))){ + a27 = 1; + a22 = 0; + a12 = 12; + a15 = 0; + a5 = 0; + a4 = 0; + a3 = 8; + return -1; + } else if((((((a0==1)&&(!(a22==1)&&(((a5==1)&&((a20==1)&&(((a6==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a3==6))))&&!(a4==1))))&&(a12==11))&&!(a15==1))&&(a27==1))){ + a18 = 1; + a4 = 1; + a6 = 0; + a15 = 1; + return -1; + } else if(((a12==9)&&((!(a6==1)&&((((((!(a15==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==5)))&&(a0==1))&&(a20==1))&&!(a4==1))&&!(a27==1))&&(a3==4)))&&!(a5==1)))){ + a6 = 1; + a3 = 7; + a27 = 1; + a5 = 1; + a15 = 1; + a4 = 1; + a12 = 11; + a18 = 0; + a22 = 0; + return 21; + } else if((((a20==1)&&((a3==6)&&(((a0==1)&&(((((a15==1)&&((input==6)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))))&&(a6==1))&&(a4==1))&&(a12==11)))&&(a27==1))))&&(a5==1))){ + a3 = 4; + a18 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if(((a5==1)&&(!(a27==1)&&(((a6==1)&&((a12==11)&&(((((input==4)&&((((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1))))||((!(a18==1)&&(a22==1))&&(a3==5))))&&(a20==1))&&(a15==1))&&(a4==1))))&&!(a0==1))))){ + a3 = 4; + a22 = 0; + a18 = 0; + a12 = 8; + a0 = 1; + a27 = 1; + return 21; + } else if(((!(a0==1)&&(!(a4==1)&&(((((a3==6)&&((a27==1)&&((((input==6)&&!(a15==1))&&(a6==1))&&(a20==1))))&&!(a5==1))&&(a12==12))&&(a22==1))))&&(a18==1))){ + if((a5==1)){ + a12 = 11; + a27 = 0; + a6 = 0; + a15 = 1; + a3 = 4; + }else{ + a18 = 0; + a4 = 1; + a3 = 5; + a5 = 1; + a0 = 1; + a22 = 0; + a6 = 0; + } + return -1; + } else if(((!(a27==1)&&(((a5==1)&&(((a3==7)&&((a6==1)&&(!(a15==1)&&((a4==1)&&((input==2)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))))))&&(a0==1)))&&(a20==1)))&&(a12==10))){ + a5 = 0; + a6 = 0; + a22 = 1; + a18 = 1; + a27 = 1; + return 21; + } else if(((a5==1)&&((!(a15==1)&&((((a20==1)&&((a0==1)&&((a12==12)&&((a4==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==5))))))&&(a27==1))&&(a3==8)))&&(a6==1)))){ + a22 = 0; + a4 = 0; + a3 = 5; + a27 = 0; + a6 = 0; + a18 = 1; + a15 = 1; + return 21; + } else if(((a20==1)&&((a27==1)&&(!(a5==1)&&(((a12==9)&&((a4==1)&&(!(a0==1)&&((a6==1)&&((input==6)&&(((a3==5)&&(!(a18==1)&&(a22==1)))||(((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1))))))))))&&(a15==1)))))){ + a5 = 1; + a3 = 8; + a22 = 0; + a4 = 0; + a12 = 10; + a0 = 1; + a18 = 0; + return -1; + } else if(((!(a0==1)&&(((!(a15==1)&&((a27==1)&&((a20==1)&&((a5==1)&&((a6==1)&&((((a18==1)||!(a18==1))&&(input==3))&&(a22==1)))))))&&(a12==8))&&(a4==1)))&&(a3==7))){ + a0 = 1; + a18 = 0; + a3 = 5; + a27 = 0; + return -1; + } else if((((a4==1)&&(!(a15==1)&&((a20==1)&&((((a6==1)&&(!(a27==1)&&((input==6)&&(((((a18==1)&&!(a22==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5)))||(((a18==1)&&(a22==1))&&(a3==6))))))&&(a0==1))&&!(a5==1)))))&&(a12==8))){ + if((a27==1)){ + a4 = 0; + a18 = 0; + a22 = 1; + a27 = 1; + a0 = 0; + a12 = 11; + a3 = 5; + }else{ + a12 = 12; + a5 = 1; + a22 = 1; + a18 = 1; + a15 = 1; + a0 = 0; + a27 = 1; + a3 = 8; + } + return 26; + } else if(((a6==1)&&((((a20==1)&&(((a5==1)&&((((a4==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1)))&&(a3==4))&&(a0==1)))&&(a15==1)))&&(a12==10))&&(a27==1)))){ + a18 = 0; + a22 = 1; + return 21; + } else if(((((a20==1)&&((!(a5==1)&&(((((a22==1)&&((a15==1)&&((a6==1)&&(input==3))))&&(a18==1))&&(a0==1))&&(a4==1)))&&(a12==11)))&&(a3==4))&&!(a27==1))){ + a15 = 0; + a12 = 9; + a4 = 0; + a3 = 5; + a18 = 0; + a6 = 0; + a5 = 1; + return -1; + } else if(((a20==1)&&(((((a27==1)&&(!(a15==1)&&((((a12==12)&&((input==1)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a4==1))&&(a3==5))))&&!(a6==1))&&(a0==1))&&(a5==1)))){ + if((a4==1)){ + a0 = 0; + a12 = 10; + a3 = 6; + a22 = 1; + a18 = 0; + a6 = 1; + }else{ + a3 = 7; + a4 = 0; + a12 = 11; + a18 = 0; + a22 = 1; + } + return -1; + } else if(((a6==1)&&((((a12==11)&&((a0==1)&&(((((((input==4)&&((a18==1)||!(a18==1)))&&(a20==1))&&!(a27==1))&&!(a15==1))&&(a22==1))&&(a4==1))))&&(a5==1))&&(a3==7)))){ + a18 = 1; + a4 = 0; + a22 = 0; + a6 = 0; + a5 = 0; + a3 = 6; + a12 = 8; + return -1; + } else if(((a6==1)&&(((a12==8)&&((!(a15==1)&&((a20==1)&&(((a27==1)&&(((((a18==1)||!(a18==1))&&(input==6))&&!(a22==1))&&(a3==7)))&&(a0==1))))&&(a5==1)))&&!(a4==1)))){ + a18 = 1; + a12 = 9; + a3 = 5; + a4 = 1; + a6 = 0; + return 26; + } else if(((a20==1)&&((a5==1)&&(((a6==1)&&(!(a27==1)&&(((a12==10)&&((!(a0==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==2)))&&!(a4==1)))&&(a3==4))))&&(a15==1))))){ + a18 = 1; + a3 = 8; + a12 = 8; + a0 = 1; + a27 = 1; + a22 = 1; + return -1; + } else if((((((a12==10)&&((((a0==1)&&(((a6==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==2)))&&!(a27==1)))&&(a20==1))&&(a3==6)))&&!(a5==1))&&!(a4==1))&&(a15==1))){ + a5 = 1; + a27 = 1; + a22 = 0; + a15 = 0; + a18 = 1; + a4 = 1; + return -1; + } else if(((a4==1)&&(((((((a0==1)&&((((((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==5)))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==6))&&(a5==1)))&&(a6==1))&&(a27==1))&&!(a15==1))&&(a20==1))&&(a12==11)))){ + a12 = 10; + a6 = 0; + a18 = 1; + a15 = 1; + a3 = 8; + a22 = 0; + return 24; + } else if((((((!(a6==1)&&((a20==1)&&(!(a0==1)&&(!(a4==1)&&((!(a15==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a22==1))))))&&(a3==6))&&(a12==8))&&!(a5==1))&&!(a27==1))){ + a0 = 1; + a4 = 1; + a22 = 0; + a15 = 1; + a18 = 1; + a3 = 5; + a6 = 1; + a5 = 1; + a27 = 1; + return -1; + } else if(((a12==10)&&((((a4==1)&&(((a20==1)&&((a15==1)&&((input==5)&&((((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))))))&&(a27==1)))&&!(a5==1))&&!(a0==1)))){ + a3 = 6; + a18 = 1; + a27 = 0; + a12 = 8; + a22 = 1; + a6 = 0; + a0 = 1; + return 21; + } else if(((((a12==12)&&(((((((a5==1)&&(((input==2)&&!(a15==1))&&(a20==1)))&&(a22==1))&&!(a18==1))&&(a6==1))&&(a0==1))&&(a3==4)))&&!(a4==1))&&(a27==1))){ + a12 = 8; + a15 = 1; + a18 = 1; + a4 = 1; + return -1; + } else if(((a3==4)&&((a6==1)&&((a0==1)&&(((!(a4==1)&&((a15==1)&&((a22==1)&&((a20==1)&&(!(a18==1)&&(!(a27==1)&&(input==5)))))))&&!(a5==1))&&(a12==9)))))){ + a3 = 6; + a4 = 1; + a22 = 0; + a27 = 1; + a12 = 11; + return 21; + } else if((((a20==1)&&((a6==1)&&(((!(a15==1)&&(((a27==1)&&((a4==1)&&(((input==4)&&(a12==12))&&!(a5==1))))&&(a3==8)))&&(a0==1))&&(a22==1))))&&(a18==1))){ + a5 = 1; + a18 = 0; + a3 = 7; + return 26; + } else if((!(a27==1)&&(!(a5==1)&&(!(a4==1)&&((a12==8)&&(((((!(a15==1)&&((input==1)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&(a6==1))&&(a3==5))&&(a20==1))&&!(a0==1))))))){ + if((a18==1)){ + a18 = 1; + a15 = 1; + a22 = 1; + a4 = 1; + a5 = 1; + a6 = 0; + a0 = 1; + a27 = 1; + }else{ + a22 = 0; + a6 = 0; + a18 = 1; + a15 = 1; + a27 = 1; + a0 = 1; + a5 = 1; + a4 = 1; + } + return -1; + } else if((((a12==10)&&((!(a6==1)&&(!(a27==1)&&((!(a0==1)&&(((input==4)&&(((!(a18==1)&&(a22==1))&&(a3==8))||(((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))))&&(a5==1)))&&(a20==1))))&&(a15==1)))&&!(a4==1))){ + a0 = 1; + a18 = 0; + a22 = 0; + a15 = 0; + a3 = 8; + a6 = 1; + return 21; + } else if(((a22==1)&&((a27==1)&&(((((((a0==1)&&((!(a4==1)&&((a20==1)&&(input==1)))&&(a5==1)))&&!(a18==1))&&(a3==4))&&!(a15==1))&&!(a6==1))&&(a12==11))))){ + a15 = 1; + a12 = 8; + a4 = 1; + a6 = 1; + a18 = 1; + return -1; + } else if((((!(a6==1)&&((a4==1)&&(((a15==1)&&((((a20==1)&&((input==6)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a12==12))&&!(a5==1)))&&(a27==1))))&&(a0==1))&&(a3==8))){ + a22 = 1; + a27 = 0; + a18 = 1; + return 21; + } else if(((!(a4==1)&&((a20==1)&&(((a6==1)&&((a3==6)&&((a5==1)&&((a15==1)&&(((a0==1)&&((a12==12)&&(input==2)))&&(a22==1))))))&&(a18==1))))&&!(a27==1))){ + a3 = 4; + a15 = 0; + a6 = 0; + a12 = 10; + a18 = 0; + a5 = 0; + return -1; + } return calculate_output56(input); + } + + int calculate_output56(int input) { + if(((!(a5==1)&&((a20==1)&&(!(a4==1)&&((a15==1)&&(((a12==12)&&((a6==1)&&((input==4)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5))))))&&(a0==1))))))&&(a27==1))){ + a18 = 1; + a22 = 1; + a4 = 1; + a5 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((((!(a18==1)&&((!(a6==1)&&(((!(a15==1)&&(((a0==1)&&((input==4)&&(a22==1)))&&(a20==1)))&&(a12==10))&&!(a27==1)))&&!(a4==1)))&&!(a5==1))&&(a3==5))){ + a3 = 4; + a6 = 1; + a4 = 1; + return 26; + } else if((((((a20==1)&&(!(a5==1)&&((!(a15==1)&&((a0==1)&&((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==5))))&&(a6==1))))&&!(a4==1))&&!(a27==1))&&(a12==9))){ + a18 = 1; + a15 = 1; + a27 = 1; + a4 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + a5 = 1; + return -1; + } else if(((a6==1)&&((((((((a12==11)&&((input==4)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))))&&(a4==1))&&(a5==1))&&!(a27==1))&&(a20==1))&&!(a0==1))&&(a15==1)))){ + a12 = 8; + a4 = 0; + a5 = 0; + a3 = 4; + a18 = 0; + a22 = 1; + a0 = 1; + return 24; + } else if(((((a27==1)&&(((!(a4==1)&&(((a20==1)&&(!(a15==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&(a5==1))))&&(a0==1)))&&(a3==4))&&(a6==1)))&&(a22==1))&&(a12==8))){ + a6 = 0; + a22 = 0; + a4 = 1; + a18 = 0; + a12 = 9; + a3 = 7; + a15 = 1; + return 21; + } else if((!(a0==1)&&(!(a5==1)&&(((((a4==1)&&((a12==10)&&((a20==1)&&((a3==5)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==2))))))&&!(a27==1))&&!(a6==1))&&!(a15==1))))){ + if((a22==1)){ + a6 = 1; + a27 = 1; + a15 = 1; + a5 = 1; + a18 = 1; + a4 = 0; + a0 = 1; + a12 = 8; + a3 = 7; + a22 = 1; + }else{ + a22 = 1; + a5 = 1; + a12 = 11; + a15 = 1; + a6 = 1; + a4 = 0; + a18 = 1; + } + return -1; + } else if(((!(a22==1)&&(!(a4==1)&&(((a27==1)&&(!(a6==1)&&((a3==5)&&((!(a5==1)&&(((input==3)&&(a0==1))&&!(a15==1)))&&(a20==1)))))&&(a18==1))))&&(a12==9))){ + a3 = 6; + a4 = 1; + a27 = 0; + a5 = 1; + return 21; + } else if(((a5==1)&&(!(a27==1)&&((a20==1)&&((a0==1)&&((((input==4)&&((!(a6==1)&&(((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8)))||((a6==1)&&((!(a4==1)&&((a22==1)&&(a18==1)))&&(a3==4)))))&&(a12==9))&&!(a15==1))))))){ + a3 = 7; + a27 = 1; + a18 = 1; + a6 = 1; + a15 = 1; + a12 = 8; + a22 = 1; + a4 = 0; + return -1; + } else if(((a0==1)&&((((!(a18==1)&&((!(a5==1)&&((a3==6)&&(!(a27==1)&&((a20==1)&&((a22==1)&&(input==6))))))&&!(a15==1)))&&(a12==10))&&!(a6==1))&&!(a4==1)))){ + a12 = 12; + a5 = 1; + a27 = 1; + a3 = 4; + a18 = 1; + a4 = 1; + return 21; + } else if((!(a15==1)&&(!(a4==1)&&(((a27==1)&&((a12==11)&&(((a18==1)&&((((a6==1)&&((a0==1)&&(input==5)))&&(a3==5))&&(a5==1)))&&(a20==1))))&&!(a22==1))))){ + a15 = 1; + a18 = 0; + a22 = 1; + a27 = 0; + return 26; + } else if((((a3==4)&&((!(a22==1)&&((a0==1)&&((a4==1)&&((a5==1)&&(((((input==4)&&(a15==1))&&(a6==1))&&!(a18==1))&&(a12==11))))))&&(a27==1)))&&(a20==1))){ + a15 = 0; + a4 = 0; + a6 = 0; + a3 = 7; + a12 = 10; + return 21; + } else if((((((((!(a5==1)&&(((a12==11)&&((a20==1)&&((input==4)&&((a18==1)||!(a18==1)))))&&(a3==4)))&&!(a15==1))&&!(a27==1))&&!(a22==1))&&(a6==1))&&(a0==1))&&!(a4==1))){ + a5 = 1; + a12 = 8; + a27 = 1; + a18 = 1; + a15 = 1; + a22 = 1; + a4 = 1; + return -1; + } else if(((a15==1)&&((((!(a27==1)&&((a20==1)&&((((input==5)&&((((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))||((a3==7)&&((a18==1)&&(a22==1)))))&&(a12==9))&&(a6==1))))&&(a4==1))&&!(a0==1))&&(a5==1)))){ + a27 = 1; + a18 = 0; + a3 = 7; + a22 = 0; + a12 = 8; + a0 = 1; + a6 = 0; + return 24; + } else if((!(a4==1)&&(((((a20==1)&&((((a12==9)&&((((input==5)&&(a22==1))&&!(a0==1))&&!(a5==1)))&&(a18==1))&&!(a15==1)))&&!(a6==1))&&(a3==7))&&(a27==1)))){ + a15 = 1; + a4 = 1; + a18 = 0; + a3 = 6; + a0 = 1; + a5 = 1; + return 26; + } else if((((a6==1)&&((((!(a15==1)&&((!(a27==1)&&(((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a22==1)&&(a18==1))))||((!(a18==1)&&(a22==1))&&(a3==8)))&&(input==3)))&&(a20==1)))&&(a5==1))&&(a0==1))&&(a12==9)))&&!(a4==1))){ + a12 = 8; + a22 = 1; + a18 = 1; + a27 = 1; + a15 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if(((a4==1)&&(!(a15==1)&&((((((a0==1)&&(((a20==1)&&(((input==5)&&(a5==1))&&(a27==1)))&&(a12==11)))&&!(a18==1))&&(a3==5))&&(a6==1))&&(a22==1))))){ + a12 = 8; + a3 = 4; + a18 = 1; + a15 = 1; + return -1; + } else if(((!(a0==1)&&(((a12==9)&&(!(a5==1)&&((a4==1)&&(((a6==1)&&(((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==2))&&(a3==4)))&&(a27==1)))))&&(a15==1)))&&(a20==1))){ + a3 = 5; + a12 = 10; + a18 = 0; + a0 = 1; + a5 = 1; + a22 = 1; + a15 = 0; + return -1; + } else if((((((((a20==1)&&(((((a3==8)&&((a4==1)&&(!(a22==1)&&!(a18==1))))&&!(a6==1))||(((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1)))&&(a6==1)))&&(input==6)))&&!(a0==1))&&(a27==1))&&(a5==1))&&(a15==1))&&(a12==12))){ + a18 = 1; + a6 = 0; + a3 = 4; + a22 = 1; + a4 = 1; + a0 = 1; + a15 = 0; + return 21; + } else if(((a0==1)&&(((((((a20==1)&&(((a3==5)&&((a4==1)&&(((a18==1)||!(a18==1))&&(input==2))))&&!(a5==1)))&&(a27==1))&&(a12==10))&&!(a15==1))&&!(a6==1))&&(a22==1)))){ + a22 = 0; + a6 = 1; + a18 = 0; + return -1; + } else if(((((a20==1)&&(((a3==7)&&((a22==1)&&((a5==1)&&((((a27==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&!(a6==1))&&(a12==12)))))&&!(a4==1)))&&!(a0==1))&&(a15==1))){ + a18 = 1; + a6 = 1; + a12 = 10; + a3 = 4; + a0 = 1; + return -1; + } else if(((((((!(a6==1)&&((a20==1)&&((a0==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))||((a3==7)&&((a22==1)&&!(a18==1))))&&(input==2)))))&&(a27==1))&&(a15==1))&&(a12==9))&&(a4==1))&&(a5==1))){ + a3 = 6; + a18 = 1; + a4 = 0; + a12 = 12; + a22 = 1; + return 26; + } else if(((a6==1)&&(!(a15==1)&&((((!(a0==1)&&((a5==1)&&((a12==11)&&((input==6)&&((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7)))||((!(a18==1)&&(a22==1))&&(a3==7)))))))&&(a4==1))&&(a20==1))&&(a27==1))))){ + a15 = 1; + a0 = 1; + a22 = 0; + a18 = 0; + a3 = 5; + return 26; + } else if(((a4==1)&&(!(a15==1)&&((((!(a27==1)&&((((a12==8)&&((input==6)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a3==6))&&!(a5==1)))&&(a20==1))&&(a6==1))&&(a0==1))))){ + a3 = 5; + a22 = 0; + a18 = 1; + a12 = 12; + return 21; + } else if(((!(a15==1)&&((a12==11)&&((a5==1)&&(((a20==1)&&(((!(a6==1)&&((a3==8)&&((!(a22==1)&&!(a18==1))&&(a4==1))))||(((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1)))&&(a6==1)))&&(input==6)))&&!(a0==1)))))&&!(a27==1))){ + a22 = 1; + a6 = 0; + a0 = 1; + a3 = 5; + a27 = 1; + a4 = 1; + a18 = 0; + return -1; + } else if((!(a4==1)&&((a3==7)&&((a27==1)&&(!(a5==1)&&((a6==1)&&(!(a15==1)&&((a20==1)&&((a0==1)&&((((input==1)&&((a18==1)||!(a18==1)))&&(a12==8))&&!(a22==1))))))))))){ + a3 = 8; + a18 = 1; + a22 = 1; + a5 = 1; + a12 = 11; + return 26; + } else if(((a20==1)&&((((a0==1)&&((a5==1)&&((a12==11)&&((a15==1)&&(((!(a27==1)&&((input==4)&&((a18==1)||!(a18==1))))&&(a22==1))&&(a3==6))))))&&(a6==1))&&!(a4==1)))){ + a27 = 1; + a4 = 1; + a3 = 5; + a12 = 12; + a18 = 1; + return -1; + } else if((((a4==1)&&((a3==6)&&((a5==1)&&(((!(a6==1)&&(((a0==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==6)))&&(a27==1)))&&(a20==1))&&(a15==1)))))&&(a12==10))){ + a6 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if(((!(a5==1)&&((a12==11)&&((a15==1)&&(((a27==1)&&(((input==1)&&(((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))||(((a6==1)&&(((a18==1)&&!(a22==1))&&(a3==8)))||(((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1)))))&&(a0==1)))&&(a20==1)))))&&!(a4==1))){ + a22 = 1; + a27 = 0; + a18 = 0; + a3 = 7; + a4 = 1; + a6 = 1; + return 26; + } else if(((a6==1)&&((!(a0==1)&&((a15==1)&&((a20==1)&&(((!(a4==1)&&((a18==1)&&((a3==6)&&(!(a5==1)&&(input==5)))))&&(a27==1))&&(a22==1)))))&&(a12==8)))){ + a5 = 1; + a0 = 1; + a18 = 0; + a27 = 0; + a12 = 11; + a3 = 7; + return 24; + } else if((((a15==1)&&((((a4==1)&&((a0==1)&&(((!(a5==1)&&((input==3)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a3==8))&&(a6==1))))&&(a12==12))&&(a27==1)))&&(a20==1))){ + a18 = 1; + a5 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + return -1; + } else if(((a15==1)&&(((!(a6==1)&&(!(a0==1)&&((a27==1)&&((((input==3)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a18==1)&&(a22==1)))))&&(a12==8))&&(a5==1)))))&&!(a4==1))&&(a20==1)))){ + a6 = 1; + a0 = 1; + a3 = 4; + a18 = 1; + a4 = 1; + a22 = 1; + return -1; + } else if(((!(a6==1)&&(((((a27==1)&&(!(a4==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==4))&&(a20==1))))&&!(a0==1))&&(a5==1))&&!(a15==1)))&&(a12==8))){ + a22 = 0; + a18 = 1; + a15 = 1; + a12 = 11; + a0 = 1; + a4 = 1; + a3 = 8; + return -1; + } else if((!(a15==1)&&((a22==1)&&(((!(a4==1)&&((a5==1)&&((a12==9)&&((a6==1)&&((((input==3)&&!(a0==1))&&(a20==1))&&(a3==7))))))&&!(a18==1))&&(a27==1))))){ + a12 = 8; + a3 = 4; + a4 = 1; + a15 = 1; + a18 = 1; + a0 = 1; + return -1; + } else if(((((!(a5==1)&&(((!(a15==1)&&(((a3==6)&&((!(a18==1)&&(input==2))&&!(a4==1)))&&(a20==1)))&&!(a27==1))&&(a0==1)))&&(a22==1))&&!(a6==1))&&(a12==10))){ + a15 = 1; + a6 = 1; + a27 = 1; + a18 = 1; + a12 = 8; + a4 = 1; + a5 = 1; + a3 = 4; + return -1; + } else if(((a18==1)&&((a0==1)&&((a20==1)&&(((((((((a5==1)&&(input==5))&&!(a27==1))&&(a15==1))&&!(a4==1))&&(a3==8))&&(a6==1))&&!(a22==1))&&(a12==9)))))){ + a0 = 0; + a6 = 0; + a3 = 7; + a4 = 1; + a5 = 0; + a27 = 1; + a22 = 1; + return 24; + } else if(((a0==1)&&(((!(a6==1)&&(((a27==1)&&((((a15==1)&&(((input==3)&&(a3==8))&&(a4==1)))&&!(a5==1))&&!(a18==1)))&&(a12==9)))&&(a22==1))&&(a20==1)))){ + a22 = 0; + a6 = 1; + a12 = 11; + return 26; + } else if((((a12==10)&&((a4==1)&&((!(a0==1)&&((!(a15==1)&&(!(a5==1)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==1))))&&!(a6==1)))&&(a27==1))))&&(a20==1))){ + a15 = 1; + a12 = 11; + a22 = 1; + a4 = 0; + a0 = 1; + a5 = 1; + a18 = 0; + a3 = 7; + return 21; + } else if((((a27==1)&&((((((a12==10)&&(!(a15==1)&&((a20==1)&&((a6==1)&&((a0==1)&&(input==3))))))&&(a18==1))&&(a22==1))&&!(a4==1))&&(a3==5)))&&(a5==1))){ + a15 = 1; + a12 = 8; + a4 = 1; + a3 = 4; + return -1; + } else if((((!(a4==1)&&((!(a5==1)&&((a3==8)&&(((!(a6==1)&&((input==3)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))))&&(a12==12))&&(a0==1))))&&(a20==1)))&&(a27==1))&&(a15==1))){ + a15 = 0; + a5 = 1; + a22 = 0; + a6 = 1; + a3 = 7; + a18 = 1; + a4 = 1; + return 24; + } else if(((a4==1)&&((a15==1)&&((!(a27==1)&&((a12==10)&&((a20==1)&&(((a5==1)&&((input==2)&&((((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))||((a3==7)&&((a18==1)&&(a22==1))))))&&(a6==1)))))&&(a0==1))))){ + a12 = 11; + a3 = 7; + a15 = 0; + a18 = 0; + a27 = 1; + a22 = 1; + a0 = 0; + return 21; + } else if((((((a6==1)&&((a12==11)&&((a20==1)&&((((input==4)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6))))&&(a27==1))&&(a4==1)))))&&!(a5==1))&&!(a0==1))&&(a15==1))){ + a5 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + a0 = 1; + a22 = 1; + return -1; + } else if(((((!(a27==1)&&((a15==1)&&((((a20==1)&&(((input==6)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a5==1)))&&!(a0==1))&&(a12==11))))&&(a6==1))&&(a3==4))&&(a4==1))){ + a5 = 1; + a0 = 1; + a4 = 0; + a18 = 1; + a22 = 1; + a27 = 1; + a12 = 8; + return 26; + } else if(((a0==1)&&(!(a5==1)&&((a20==1)&&((((((a15==1)&&(((((a18==1)||!(a18==1))&&(input==3))&&(a12==10))&&!(a27==1)))&&!(a6==1))&&!(a4==1))&&(a22==1))&&(a3==6)))))){ + a22 = 0; + a4 = 1; + a5 = 1; + a3 = 5; + a27 = 1; + a18 = 0; + a6 = 1; + return 21; + } else if((!(a15==1)&&((((!(a22==1)&&((a3==4)&&((!(a4==1)&&((a5==1)&&((!(a6==1)&&(input==6))&&!(a0==1))))&&(a27==1))))&&(a20==1))&&(a12==8))&&!(a18==1)))){ + a0 = 1; + a22 = 1; + a6 = 1; + a15 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if(((a12==8)&&((a20==1)&&((!(a15==1)&&((!(a4==1)&&(!(a5==1)&&(((!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1))))||((((!(a22==1)&&(a18==1))&&(a3==8))&&(a6==1))||(((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))))&&(input==4))))&&(a27==1)))&&!(a0==1))))){ + a5 = 1; + a6 = 1; + a15 = 1; + a3 = 7; + a18 = 0; + a0 = 1; + a12 = 10; + a22 = 0; + a4 = 1; + return -1; + } else if((!(a6==1)&&((((a4==1)&&((a12==9)&&((a20==1)&&((a5==1)&&(((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a0==1))&&!(a27==1))))))&&(a3==7))&&(a15==1)))){ + a12 = 10; + a15 = 0; + a3 = 4; + a22 = 0; + a27 = 1; + a18 = 0; + return 24; + } else if(((a20==1)&&(((a15==1)&&(((((!(a6==1)&&(!(a27==1)&&((input==6)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))))&&!(a4==1))&&!(a5==1))&&(a0==1))&&(a12==9)))&&(a3==7)))){ + a22 = 0; + a18 = 1; + a15 = 0; + return 26; + } else if((((!(a4==1)&&(!(a5==1)&&(((a6==1)&&((a12==10)&&((((input==2)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&!(a15==1))&&(a3==8))))&&!(a0==1))))&&(a20==1))&&!(a27==1))){ + if((a27==1)){ + a6 = 0; + a15 = 1; + a4 = 1; + a22 = 0; + a5 = 1; + a12 = 8; + a27 = 1; + a3 = 6; + a18 = 0; + a0 = 1; + }else{ + a15 = 1; + a18 = 0; + a6 = 0; + a12 = 8; + a22 = 0; + a4 = 1; + a0 = 1; + a5 = 1; + a27 = 1; + a3 = 5; + } + return -1; + } else if((!(a5==1)&&((((a12==9)&&((!(a18==1)&&(((a6==1)&&(((a20==1)&&(!(a4==1)&&(input==1)))&&!(a15==1)))&&!(a0==1)))&&!(a22==1)))&&(a3==7))&&!(a27==1)))){ + a27 = 1; + a18 = 1; + a5 = 1; + a12 = 10; + a3 = 6; + a4 = 1; + a0 = 1; + a6 = 0; + return -1; + } else if((!(a4==1)&&((a12==11)&&(!(a0==1)&&((a3==8)&&(((!(a15==1)&&((a20==1)&&(((input==5)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&!(a6==1))))&&(a5==1))&&!(a27==1))))))){ + a0 = 1; + a22 = 1; + a15 = 1; + a18 = 1; + a6 = 1; + a12 = 8; + a27 = 1; + return 24; + } else if((((a5==1)&&((a12==9)&&(((!(a6==1)&&((((a3==6)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==6)))&&(a20==1))&&!(a0==1)))&&!(a27==1))&&!(a15==1))))&&(a4==1))){ + a22 = 0; + a18 = 0; + a5 = 0; + a27 = 1; + a3 = 7; + a4 = 0; + return -1; + } else if(((((((((a0==1)&&((((((a18==1)||!(a18==1))&&(input==5))&&(a6==1))&&(a22==1))&&(a3==7)))&&!(a27==1))&&(a20==1))&&(a15==1))&&!(a4==1))&&(a12==10))&&(a5==1))){ + a27 = 1; + a3 = 4; + a12 = 8; + a4 = 1; + a18 = 1; + return -1; + } else if((((a27==1)&&(!(a18==1)&&(!(a4==1)&&(((((a3==4)&&((a0==1)&&(((a20==1)&&(input==1))&&(a5==1))))&&(a12==12))&&!(a15==1))&&(a22==1)))))&&(a6==1))){ + a22 = 0; + a15 = 1; + a6 = 0; + a3 = 8; + a12 = 10; + return -1; + } else if((((a27==1)&&((a15==1)&&((((a0==1)&&((a20==1)&&((a4==1)&&((((a3==6)&&((a22==1)&&!(a18==1)))||(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6))))&&(input==6)))))&&(a12==12))&&(a5==1))))&&!(a6==1))){ + a3 = 4; + a12 = 10; + a18 = 0; + a4 = 0; + a22 = 1; + return 24; + } else if(((a0==1)&&(((!(a6==1)&&((a12==8)&&((a22==1)&&(((a20==1)&&(((a5==1)&&((input==1)&&(a27==1)))&&(a3==7)))&&!(a4==1)))))&&(a18==1))&&!(a15==1)))){ + a22 = 0; + a15 = 1; + a3 = 6; + a4 = 1; + a6 = 1; + a12 = 9; + a5 = 0; + return 26; + } else if((((!(a4==1)&&((a0==1)&&((((a20==1)&&((!(a18==1)&&((a15==1)&&(!(a22==1)&&(input==6))))&&!(a5==1)))&&(a12==11))&&(a6==1))))&&(a3==4))&&!(a27==1))){ + a3 = 7; + a18 = 1; + a22 = 1; + a27 = 1; + a4 = 1; + return 26; + } else if((((((((!(a5==1)&&(((a6==1)&&((input==6)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&!(a4==1)))&&(a3==4))&&(a27==1))&&!(a0==1))&&(a20==1))&&!(a15==1))&&(a12==9))){ + if((a15==1)){ + a5 = 1; + a6 = 0; + a18 = 1; + a22 = 1; + a3 = 7; + a12 = 12; + a15 = 1; + }else{ + a18 = 0; + a3 = 6; + a22 = 1; + a5 = 1; + a12 = 11; + a0 = 1; + } + return 21; + } else if(((a6==1)&&(((a22==1)&&(!(a0==1)&&((!(a5==1)&&(!(a27==1)&&((a3==5)&&(!(a4==1)&&(((a18==1)&&(input==4))&&(a20==1))))))&&(a12==8))))&&!(a15==1)))){ + a12 = 9; + a22 = 0; + return 21; + } else if(((((((!(a27==1)&&(((!(a6==1)&&((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a15==1))&&(a3==5)))&&(a20==1))&&(a0==1))&&(a12==10))&&(a4==1))&&!(a5==1))){ + a5 = 1; + a18 = 1; + a27 = 1; + a4 = 0; + a3 = 6; + a22 = 1; + a12 = 12; + return 26; + } else if((((!(a5==1)&&(((a12==11)&&((a27==1)&&(((a0==1)&&(((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==3))&&(a6==1)))&&(a3==4))))&&(a4==1)))&&!(a15==1))&&(a20==1))){ + a12 = 12; + a22 = 0; + a4 = 0; + a3 = 5; + a27 = 0; + a18 = 1; + return 26; + } else if(((a15==1)&&((((((!(a27==1)&&((a20==1)&&(!(a6==1)&&((input==6)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))))))&&(a5==1))&&!(a4==1))&&(a3==7))&&(a0==1))&&(a12==9)))){ + a6 = 1; + a4 = 1; + a3 = 6; + a5 = 0; + a12 = 10; + a15 = 0; + a22 = 0; + a18 = 1; + return 26; + } else if((((a20==1)&&((((a15==1)&&(((a12==10)&&(((((a3==7)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6))))&&(input==2))&&!(a27==1)))&&!(a6==1)))&&(a5==1))&&!(a0==1)))&&!(a4==1))){ + if((a18==1)){ + a27 = 1; + a22 = 0; + a0 = 1; + a3 = 8; + a18 = 0; + a4 = 1; + a12 = 8; + a6 = 1; + }else{ + a6 = 1; + a0 = 1; + a3 = 4; + a4 = 1; + a22 = 0; + a12 = 8; + a18 = 1; + a27 = 1; + } + return -1; + } else if((!(a0==1)&&(((a27==1)&&((a15==1)&&((a4==1)&&(((a20==1)&&(((a3==7)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==3)))&&(a12==10)))&&!(a5==1)))))&&!(a6==1)))){ + a18 = 1; + a6 = 1; + a0 = 1; + a12 = 12; + a22 = 0; + a3 = 6; + return 24; + } else if((!(a5==1)&&((!(a27==1)&&((a12==9)&&(((!(a0==1)&&(((input==6)&&(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8))))&&!(a6==1)))&&(a15==1))&&!(a4==1))))&&(a20==1)))){ + a18 = 1; + a22 = 0; + a6 = 1; + a15 = 0; + a3 = 5; + a5 = 1; + a12 = 8; + return 21; + } else if((!(a15==1)&&((a20==1)&&((a12==9)&&(!(a22==1)&&((!(a5==1)&&((!(a0==1)&&((a27==1)&&(!(a6==1)&&((input==4)&&((a18==1)||!(a18==1))))))&&!(a4==1)))&&(a3==6))))))){ + a18 = 1; + a3 = 4; + a5 = 1; + a0 = 1; + a6 = 1; + a22 = 1; + a4 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if(((a20==1)&&(((a6==1)&&(((a12==8)&&((a5==1)&&(((a3==5)&&(((a0==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&!(a27==1)))&&(a15==1))))&&(a4==1)))&&(a22==1)))){ + a18 = 1; + a5 = 0; + a12 = 10; + a15 = 0; + a22 = 0; + return 21; + } else if((!(a6==1)&&(((!(a27==1)&&(!(a15==1)&&((a5==1)&&((a20==1)&&((a3==4)&&((a0==1)&&((input==3)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))))))&&!(a4==1))&&(a12==8)))){ + if((a4==1)){ + a12 = 11; + a5 = 0; + a0 = 0; + a22 = 1; + a18 = 1; + a15 = 1; + a27 = 1; + a3 = 5; + a6 = 1; + }else{ + a3 = 7; + a27 = 1; + a12 = 11; + a22 = 0; + a18 = 0; + a5 = 0; + a6 = 1; + } + return 21; + } else if((((a15==1)&&((a20==1)&&((((((a12==8)&&((((a6==1)&&(input==5))&&!(a27==1))&&!(a18==1)))&&(a22==1))&&(a5==1))&&!(a4==1))&&(a0==1))))&&(a3==7))){ + a27 = 1; + a3 = 4; + a18 = 1; + a4 = 1; + return -1; + } else if(((a20==1)&&(!(a5==1)&&((a22==1)&&((a12==8)&&((!(a6==1)&&((a0==1)&&(!(a4==1)&&(!(a15==1)&&((a27==1)&&(((a18==1)||!(a18==1))&&(input==6)))))))&&(a3==5))))))){ + if((a12==10)){ + a6 = 1; + a12 = 10; + a15 = 1; + a4 = 1; + a3 = 4; + a22 = 0; + a0 = 0; + a18 = 0; + }else{ + a6 = 1; + a22 = 0; + a3 = 6; + a12 = 11; + a4 = 1; + a18 = 1; + a15 = 1; + } + return 24; + } else if(((a4==1)&&(((a12==11)&&((a27==1)&&(!(a0==1)&&((((a15==1)&&((a3==6)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==6))))&&!(a6==1))&&(a20==1)))))&&!(a5==1)))){ + a6 = 1; + a5 = 1; + a15 = 0; + a18 = 0; + a22 = 0; + a4 = 0; + a0 = 1; + a12 = 12; + a3 = 4; + return -1; + } else if((!(a15==1)&&((((a20==1)&&((a5==1)&&(!(a0==1)&&((((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==5))&&(a12==10))&&(a27==1)))))&&(a6==1))&&(a4==1)))){ + a15 = 1; + a12 = 11; + a3 = 5; + a18 = 1; + a22 = 0; + a0 = 1; + a6 = 0; + a5 = 0; + a27 = 0; + return 21; + } else if(((!(a15==1)&&((a0==1)&&(((a12==12)&&((!(a5==1)&&((a20==1)&&((((input==3)&&(a3==4))&&!(a6==1))&&(a4==1))))&&(a27==1)))&&(a22==1))))&&(a18==1))){ + a18 = 0; + a12 = 9; + a22 = 0; + a15 = 1; + a27 = 0; + return 21; + } else if(((((a0==1)&&((a12==10)&&((a4==1)&&((a22==1)&&((a3==4)&&((((((a18==1)||!(a18==1))&&(input==2))&&!(a27==1))&&(a6==1))&&(a5==1)))))))&&(a20==1))&&(a15==1))){ + if((a27==1)){ + a18 = 0; + a0 = 0; + a27 = 1; + a3 = 8; + a15 = 0; + a6 = 0; + }else{ + a4 = 0; + a18 = 1; + a22 = 0; + a15 = 0; + a12 = 12; + a3 = 8; + } + return 26; + } else if(((((a15==1)&&((!(a6==1)&&((a3==5)&&(((a5==1)&&(((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a4==1)))&&(a27==1))))&&(a20==1)))&&!(a0==1))&&(a12==10))){ + a12 = 12; + a22 = 0; + a3 = 8; + a15 = 0; + a18 = 0; + a0 = 1; + return 21; + } else if((((a0==1)&&((!(a4==1)&&(!(a27==1)&&(((a3==5)&&(!(a6==1)&&(!(a5==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==4)))))&&(a20==1))))&&(a15==1)))&&(a12==9))){ + a12 = 10; + a15 = 0; + a18 = 1; + a27 = 1; + a3 = 4; + a4 = 1; + a22 = 0; + return 21; + } else if(((((a12==9)&&((!(a0==1)&&(((a27==1)&&(((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==5))&&(a20==1))&&(a4==1)))&&(a3==5)))&&(a15==1)))&&!(a5==1))&&!(a6==1))){ + a18 = 1; + a4 = 0; + a3 = 7; + a22 = 1; + a15 = 0; + return -1; + } else if((((((a20==1)&&(((!(a5==1)&&(!(a0==1)&&((input==6)&&((((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))||((a3==5)&&((a18==1)&&(a22==1)))))))&&!(a6==1))&&(a12==11)))&&!(a4==1))&&!(a27==1))&&(a15==1))){ + a12 = 9; + a4 = 1; + a18 = 0; + a5 = 1; + a27 = 1; + a6 = 1; + a3 = 8; + a22 = 0; + return -1; + } else if(((((a4==1)&&(((((a0==1)&&(((((a3==6)&&((a22==1)&&(a18==1)))||(((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a18==1)&&!(a22==1)))))&&(input==2))&&!(a27==1)))&&(a6==1))&&(a20==1))&&(a5==1)))&&!(a15==1))&&(a12==11))){ + a3 = 8; + a15 = 1; + a22 = 0; + a12 = 10; + a5 = 0; + a18 = 1; + return -1; + } else if(((a5==1)&&(((!(a27==1)&&((a6==1)&&((!(a15==1)&&(((((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==6))&&(a12==11)))&&!(a0==1))))&&(a20==1))&&!(a4==1)))){ + a18 = 0; + a3 = 8; + a6 = 0; + a5 = 0; + a4 = 1; + a0 = 1; + a15 = 1; + a12 = 8; + a22 = 1; + return 26; + } else if((((a12==12)&&((((a6==1)&&(((a4==1)&&((((input==2)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a27==1))&&(a20==1)))&&(a3==8)))&&!(a5==1))&&!(a15==1)))&&!(a0==1))){ + a18 = 0; + a12 = 8; + a3 = 5; + a15 = 1; + a22 = 1; + return 21; + } else if((((a6==1)&&((a12==11)&&((a5==1)&&((!(a27==1)&&(((((((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==6)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==6))&&!(a15==1))&&!(a0==1)))&&!(a4==1)))))&&(a20==1))){ + a22 = 1; + a18 = 1; + a12 = 8; + a27 = 1; + a15 = 1; + a0 = 1; + a3 = 6; + return 26; + } else if((((((a12==12)&&(((!(a4==1)&&(((((a3==5)&&(!(a18==1)&&(a22==1)))||(((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a22==1)&&(a18==1)))))&&(input==2))&&(a27==1)))&&!(a6==1))&&(a20==1)))&&(a0==1))&&!(a5==1))&&(a15==1))){ + a6 = 1; + a18 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + a4 = 1; + a5 = 1; + return -1; + } else if((((a15==1)&&(!(a4==1)&&(!(a27==1)&&(((((a6==1)&&((((input==2)&&(a12==8))&&(a5==1))&&(a20==1)))&&(a0==1))&&(a18==1))&&(a22==1)))))&&(a3==5))){ + a0 = 0; + a18 = 0; + a27 = 1; + a12 = 10; + a6 = 0; + a22 = 0; + a5 = 0; + a3 = 4; + a15 = 0; + return 26; + } else if((((!(a5==1)&&((a4==1)&&((a12==11)&&((!(a27==1)&&(!(a0==1)&&((!(a6==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a20==1))))&&(a3==5)))))&&!(a15==1))&&(a22==1))){ + a5 = 1; + a12 = 8; + a18 = 0; + a4 = 0; + return -1; + } else if((((!(a15==1)&&(!(a5==1)&&((a22==1)&&(((!(a6==1)&&((((input==3)&&((a18==1)||!(a18==1)))&&(a20==1))&&(a12==9)))&&(a3==8))&&!(a27==1)))))&&(a4==1))&&!(a0==1))){ + a5 = 1; + a27 = 1; + a3 = 4; + a15 = 1; + a0 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if((((((((a6==1)&&((a27==1)&&((a12==10)&&((a3==7)&&(((input==1)&&(a0==1))&&!(a4==1))))))&&!(a22==1))&&!(a5==1))&&(a18==1))&&(a20==1))&&(a15==1))){ + a3 = 4; + a12 = 8; + a4 = 1; + a5 = 1; + a22 = 1; + return -1; + } else if(((((a20==1)&&((a6==1)&&(!(a5==1)&&(((a12==10)&&(((input==1)&&(((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1))))||((a3==7)&&((a18==1)&&(a22==1)))))&&!(a15==1)))&&!(a0==1)))))&&!(a27==1))&&!(a4==1))){ + if((a4==1)){ + a18 = 0; + a0 = 1; + a27 = 1; + a15 = 1; + a3 = 4; + a22 = 1; + a5 = 1; + a12 = 8; + }else{ + a0 = 1; + a15 = 1; + a22 = 0; + a27 = 1; + a4 = 1; + a5 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + } + return -1; + } else if((!(a22==1)&&((a0==1)&&((a15==1)&&(!(a4==1)&&(((((((a12==8)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a6==1))&&(a20==1))&&!(a5==1))&&(a3==5))&&(a27==1))))))){ + a12 = 10; + a6 = 0; + a22 = 1; + a5 = 1; + a18 = 0; + a3 = 8; + return 26; + } else if(((a20==1)&&(!(a15==1)&&((((((!(a5==1)&&((input==5)&&((((a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a18==1)&&!(a22==1)))))))&&(a12==8))&&!(a4==1))&&(a0==1))&&(a6==1))&&!(a27==1))))){ + a15 = 1; + a3 = 7; + a5 = 1; + a18 = 0; + a22 = 1; + a12 = 11; + return 24; + } else if((((((a27==1)&&((a0==1)&&((a15==1)&&((a4==1)&&((a3==7)&&(!(a5==1)&&((a12==12)&&((input==1)&&((a18==1)||!(a18==1))))))))))&&!(a22==1))&&(a6==1))&&(a20==1))){ + a12 = 10; + a3 = 6; + a5 = 1; + a18 = 0; + a4 = 0; + return 26; + } else if(((a6==1)&&((((a20==1)&&((a5==1)&&((a27==1)&&(!(a22==1)&&((!(a15==1)&&(!(a4==1)&&((input==2)&&((a18==1)||!(a18==1)))))&&(a3==8))))))&&(a12==10))&&(a0==1)))){ + a15 = 1; + a12 = 8; + a3 = 4; + a4 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((a0==1)&&((a15==1)&&((a27==1)&&((!(a5==1)&&(((((!(a6==1)&&((a3==4)&&(!(a18==1)&&(a22==1))))||(((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4)))))&&(input==2))&&(a20==1))&&(a12==10)))&&!(a4==1)))))){ + a12 = 8; + a22 = 1; + a5 = 1; + a18 = 1; + a4 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if(((((((a20==1)&&((a6==1)&&((((input==4)&&((((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==5)))||((a3==6)&&((a22==1)&&(a18==1)))))&&!(a27==1))&&!(a15==1))))&&(a0==1))&&(a4==1))&&!(a5==1))&&(a12==8))){ + a3 = 4; + a18 = 1; + a22 = 1; + a27 = 1; + a5 = 1; + a15 = 1; + return -1; + } else if(((a0==1)&&(!(a22==1)&&(!(a15==1)&&((!(a6==1)&&(!(a4==1)&&((((a12==12)&&((a3==7)&&(((a18==1)||!(a18==1))&&(input==1))))&&!(a5==1))&&(a20==1))))&&!(a27==1)))))){ + a27 = 1; + a3 = 6; + a18 = 1; + a4 = 1; + a5 = 1; + return 24; + } else if((((!(a6==1)&&((!(a15==1)&&(!(a27==1)&&((!(a4==1)&&((a12==10)&&(!(a22==1)&&(((a18==1)||!(a18==1))&&(input==1)))))&&(a20==1))))&&(a3==6)))&&!(a5==1))&&(a0==1))){ + a6 = 1; + a18 = 0; + a5 = 1; + a12 = 11; + a15 = 1; + return 24; + } else if(((((a27==1)&&(((a22==1)&&((((((((a18==1)||!(a18==1))&&(input==3))&&(a3==5))&&(a0==1))&&(a4==1))&&!(a6==1))&&(a5==1)))&&(a20==1)))&&!(a15==1))&&(a12==9))){ + a12 = 10; + a18 = 0; + return 24; + } else if((((a27==1)&&((((a4==1)&&((((a12==9)&&((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a20==1)))&&!(a0==1))&&(a5==1)))&&!(a15==1))&&(a3==7)))&&!(a6==1))){ + a6 = 1; + a12 = 11; + a18 = 0; + a22 = 0; + a15 = 1; + a3 = 5; + return -1; + } else if((((a5==1)&&((a3==7)&&(((a0==1)&&((!(a22==1)&&((((a12==11)&&(!(a4==1)&&(input==4)))&&(a20==1))&&!(a15==1)))&&(a6==1)))&&(a18==1))))&&!(a27==1))){ + a15 = 1; + a12 = 8; + a22 = 1; + a4 = 1; + a3 = 4; + a27 = 1; + return -1; + } else if(((a20==1)&&((a0==1)&&((((a5==1)&&((a15==1)&&((((!(a27==1)&&((input==1)&&(a6==1)))&&(a12==8))&&!(a4==1))&&!(a22==1))))&&(a3==7))&&!(a18==1))))){ + a3 = 5; + a15 = 0; + a18 = 1; + a5 = 0; + a6 = 0; + a12 = 11; + a27 = 1; + return 26; + } else if((((!(a27==1)&&(((a3==4)&&(((a5==1)&&((!(a18==1)&&(((input==4)&&(a20==1))&&(a15==1)))&&(a4==1)))&&!(a0==1)))&&(a6==1)))&&(a12==12))&&(a22==1))){ + a22 = 0; + a5 = 0; + a12 = 11; + a6 = 0; + a3 = 5; + return -1; + } else if(((((!(a27==1)&&(((a20==1)&&(!(a6==1)&&((a15==1)&&((((input==3)&&(a4==1))&&(a12==9))&&(a3==6)))))&&!(a18==1)))&&!(a22==1))&&(a0==1))&&!(a5==1))){ + a18 = 1; + a22 = 1; + a12 = 8; + a27 = 1; + a5 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if((!(a27==1)&&((!(a0==1)&&((a5==1)&&(!(a15==1)&&(((a20==1)&&(((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4))))&&(input==3)))&&!(a4==1)))))&&(a12==9)))){ + a6 = 0; + a12 = 8; + a0 = 1; + a15 = 1; + a18 = 0; + a22 = 0; + a27 = 1; + a3 = 7; + a4 = 1; + return -1; + } else if((((a22==1)&&(((a15==1)&&((a6==1)&&(((((a4==1)&&((a0==1)&&((a3==6)&&(input==5))))&&(a12==10))&&!(a18==1))&&!(a27==1))))&&(a20==1)))&&(a5==1))){ + a4 = 0; + a6 = 0; + a15 = 0; + a27 = 1; + a3 = 4; + a12 = 11; + a5 = 0; + return -1; + } else if((!(a6==1)&&((a12==10)&&(((((!(a15==1)&&((((a3==8)&&((input==2)&&(a0==1)))&&(a18==1))&&(a4==1)))&&(a5==1))&&(a27==1))&&(a22==1))&&(a20==1))))){ + if((a22==1)){ + a5 = 0; + a6 = 1; + a18 = 0; + a12 = 12; + a4 = 0; + a27 = 0; + }else{ + a22 = 0; + a3 = 5; + a6 = 1; + } + return -1; + } else if((((a12==8)&&(((((a4==1)&&((((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==5))&&!(a0==1))&&!(a5==1)))&&!(a27==1))&&(a6==1))&&!(a15==1)))&&(a20==1))){ + a22 = 0; + a18 = 0; + a5 = 1; + a15 = 1; + a27 = 1; + a3 = 4; + a0 = 1; + return 26; + } else if(((a12==10)&&((a20==1)&&((!(a27==1)&&((a3==7)&&((!(a5==1)&&(((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==4))&&!(a0==1))&&!(a15==1)))&&(a4==1))))&&(a6==1))))){ + a12 = 12; + a22 = 0; + a18 = 1; + a27 = 1; + a4 = 0; + a3 = 8; + a6 = 0; + return -1; + } else if((((a3==7)&&(!(a15==1)&&((((!(a6==1)&&((a5==1)&&(((a27==1)&&((input==5)&&!(a18==1)))&&(a4==1))))&&(a0==1))&&(a12==8))&&(a20==1))))&&!(a22==1))){ + if((a5==1)){ + a15 = 1; + a18 = 1; + a3 = 8; + a5 = 0; + a12 = 9; + a6 = 1; + a0 = 0; + }else{ + a27 = 0; + a22 = 1; + a18 = 1; + a12 = 12; + a5 = 0; + a3 = 5; + } + return 24; + } else if((!(a4==1)&&((((!(a6==1)&&((((a3==8)&&(!(a5==1)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==1))))&&(a0==1))&&(a27==1)))&&(a20==1))&&(a15==1))&&(a12==12)))){ + a22 = 1; + a15 = 0; + a18 = 0; + a27 = 0; + a3 = 6; + a4 = 1; + a12 = 9; + return 24; + } else if((((((a4==1)&&((a15==1)&&((a20==1)&&((a12==12)&&((a3==6)&&((((input==4)&&!(a6==1))&&(a5==1))&&(a27==1)))))))&&(a18==1))&&!(a0==1))&&(a22==1))){ + a3 = 7; + a0 = 1; + return -1; + } else if(((a0==1)&&((!(a6==1)&&((((a20==1)&&(((!(a4==1)&&(!(a5==1)&&(((a18==1)||!(a18==1))&&(input==1))))&&(a3==5))&&(a27==1)))&&(a22==1))&&!(a15==1)))&&(a12==10)))){ + a5 = 1; + a18 = 0; + a12 = 12; + a3 = 6; + return 26; + } else if(((a20==1)&&((a0==1)&&(!(a4==1)&&(!(a5==1)&&(((a15==1)&&((a22==1)&&((a27==1)&&((a6==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a3==6))))))&&(a12==10))))))){ + a5 = 1; + a12 = 8; + a4 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a20==1)&&(!(a5==1)&&((a6==1)&&((((a0==1)&&((((input==1)&&((((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==5)))||(((a18==1)&&(a22==1))&&(a3==6))))&&!(a27==1))&&!(a15==1)))&&(a4==1))&&(a12==12)))))){ + a6 = 0; + a18 = 0; + a12 = 10; + a3 = 8; + a22 = 1; + return 21; + } else if((((!(a18==1)&&(!(a0==1)&&(((a5==1)&&((((((a3==8)&&(input==6))&&(a20==1))&&(a27==1))&&(a6==1))&&(a15==1)))&&!(a22==1))))&&(a4==1))&&(a12==9))){ + a12 = 8; + a0 = 1; + a4 = 0; + a3 = 6; + a18 = 1; + return -1; + } else if((((a20==1)&&((((a15==1)&&(!(a0==1)&&((a12==11)&&((((input==3)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a3==7))&&(a6==1)))))&&(a27==1))&&(a4==1)))&&(a5==1))){ + a22 = 1; + a18 = 1; + a12 = 12; + a4 = 0; + a6 = 0; + a27 = 0; + a0 = 1; + a3 = 8; + return 21; + } else if((((((a20==1)&&((a4==1)&&((!(a5==1)&&((a6==1)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==6))))&&!(a0==1))))&&(a12==8))&&!(a27==1))&&!(a15==1))){ + a22 = 0; + a15 = 1; + a27 = 1; + a5 = 1; + a18 = 1; + a3 = 6; + a0 = 1; + return 21; + } else if((((((a6==1)&&(((!(a4==1)&&((!(a15==1)&&((input==5)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))))&&!(a5==1)))&&(a12==9))&&!(a0==1)))&&(a20==1))&&(a3==8))&&(a27==1))){ + a12 = 10; + a18 = 1; + a15 = 1; + a3 = 4; + a22 = 0; + a5 = 1; + a0 = 1; + return -1; + } else if(((a20==1)&&(((a12==10)&&((a3==4)&&(((a6==1)&&((!(a5==1)&&((a27==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==2))))&&(a15==1)))&&!(a0==1))))&&(a4==1)))){ + a12 = 8; + a0 = 1; + a18 = 1; + a5 = 1; + a22 = 1; + return -1; + } else if((((a12==10)&&((a4==1)&&(((((a3==7)&&((a20==1)&&(!(a6==1)&&((input==6)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))))&&(a27==1))&&!(a0==1))&&(a15==1))))&&(a5==1))){ + a4 = 0; + a5 = 0; + a0 = 1; + a22 = 0; + a18 = 0; + a3 = 4; + return -1; + } else if(((!(a22==1)&&(((a4==1)&&((a18==1)&&(((a5==1)&&(((!(a0==1)&&(!(a6==1)&&(input==5)))&&(a3==5))&&(a20==1)))&&!(a15==1))))&&(a12==8)))&&!(a27==1))){ + a27 = 1; + a15 = 1; + a22 = 1; + a0 = 1; + a6 = 1; + a18 = 0; + a5 = 0; + a3 = 4; + return -1; + } else if(((a18==1)&&((((a5==1)&&((a27==1)&&(((((((input==4)&&!(a22==1))&&(a3==6))&&!(a0==1))&&(a12==12))&&!(a6==1))&&!(a15==1))))&&(a20==1))&&!(a4==1)))){ + if((a22==1)){ + a0 = 1; + a6 = 1; + a22 = 1; + a12 = 8; + a15 = 1; + a18 = 0; + a3 = 7; + }else{ + a4 = 1; + a0 = 1; + a3 = 5; + a15 = 1; + a18 = 0; + a6 = 1; + a12 = 8; + } + return -1; + } else if(((a5==1)&&(((a20==1)&&((((((!(a0==1)&&(((a27==1)&&(input==4))&&!(a4==1)))&&(a3==8))&&(a12==11))&&(a18==1))&&(a15==1))&&(a22==1)))&&(a6==1)))){ + a4 = 1; + a0 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if((!(a0==1)&&((((((((((input==2)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&!(a5==1))&&!(a15==1))&&(a12==8))&&!(a6==1))&&!(a4==1))&&(a3==8))&&(a20==1))&&(a27==1)))){ + a12 = 11; + a22 = 1; + a3 = 6; + a0 = 1; + a15 = 1; + a4 = 1; + a5 = 1; + a18 = 0; + return 26; + } else if(((((a3==5)&&(!(a6==1)&&(((a12==10)&&((((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==3))&&!(a5==1))&&(a15==1))&&!(a0==1)))&&(a4==1))))&&(a20==1))&&!(a27==1))){ + a22 = 1; + a3 = 6; + a12 = 9; + a18 = 0; + a5 = 1; + return 21; + } else if((!(a6==1)&&((((a3==4)&&((a20==1)&&(!(a27==1)&&(((((input==6)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a5==1))&&(a12==8))&&!(a4==1)))))&&(a0==1))&&!(a15==1)))){ + a12 = 12; + a6 = 1; + a18 = 1; + a27 = 1; + a22 = 0; + return -1; + } else if((!(a0==1)&&(!(a18==1)&&(!(a5==1)&&((a20==1)&&(((!(a4==1)&&((a3==6)&&((((input==1)&&!(a22==1))&&(a27==1))&&!(a6==1))))&&(a12==10))&&!(a15==1))))))){ + a0 = 1; + a12 = 9; + a3 = 5; + a22 = 1; + a27 = 0; + a6 = 1; + return 21; + } else if(((a20==1)&&((((a4==1)&&(!(a5==1)&&((a12==9)&&((a6==1)&&((a0==1)&&((((input==3)&&(a22==1))&&(a3==4))&&(a27==1)))))))&&(a15==1))&&(a18==1)))){ + a0 = 0; + a6 = 0; + a15 = 0; + a18 = 0; + a22 = 0; + a3 = 6; + a12 = 10; + return 21; + } else if(((a0==1)&&((((input==3)&&(((a6==1)&&((a3==4)&&((a4==1)&&((((!(a18==1)&&(a22==1))&&(a5==1))&&(a15==1))&&(a12==11)))))||((!(a6==1)&&((a3==8)&&(!(a4==1)&&((a12==10)&&(!(a15==1)&&(!(a5==1)&&(!(a22==1)&&!(a18==1))))))))||((((a4==1)&&((a12==11)&&(((a5==1)&&((a22==1)&&(a18==1)))&&(a15==1))))&&(a3==4))&&(a6==1)))))&&(a20==1))&&!(a27==1)))){ + a5 = 0; + a15 = 0; + a4 = 1; + a3 = 6; + a18 = 1; + a6 = 0; + a12 = 8; + a22 = 1; + return 21; + } else if(((!(a15==1)&&(((((a5==1)&&(((((!(a4==1)&&((a18==1)&&(a22==1)))&&(a3==4))&&(a6==1))||((!(a6==1)&&(((a4==1)&&((a18==1)&&!(a22==1)))&&(a3==8)))||(((a3==8)&&((!(a22==1)&&!(a18==1))&&(a4==1)))&&!(a6==1))))&&(input==5)))&&(a12==10))&&(a20==1))&&(a27==1)))&&(a0==1))){ + a22 = 0; + a6 = 0; + a4 = 1; + a18 = 0; + a3 = 8; + a12 = 12; + return 21; + } else if((((a15==1)&&((a12==12)&&((!(a27==1)&&((a0==1)&&((a6==1)&&(((a3==5)&&((input==2)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))))&&(a5==1)))))&&!(a4==1))))&&(a20==1))){ + a22 = 0; + a3 = 7; + a27 = 1; + a18 = 1; + a12 = 10; + a5 = 0; + return -1; + } else if((!(a18==1)&&((!(a0==1)&&((a15==1)&&((a6==1)&&((a27==1)&&((a20==1)&&((a5==1)&&((a4==1)&&(((input==6)&&(a3==8))&&(a22==1)))))))))&&(a12==12)))){ + a0 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((!(a0==1)&&((a6==1)&&(((a4==1)&&(((((a3==6)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==6)))&&(a5==1))&&(a27==1))&&(a20==1)))&&(a12==12))))&&!(a15==1))){ + a27 = 0; + a5 = 0; + a3 = 7; + a0 = 1; + a18 = 1; + a12 = 11; + a4 = 0; + a22 = 0; + return 21; + } else if((((a15==1)&&(((((a4==1)&&((a12==9)&&(((a22==1)&&((a3==5)&&((input==3)&&((a18==1)||!(a18==1)))))&&!(a0==1))))&&!(a5==1))&&(a20==1))&&(a6==1)))&&!(a27==1))){ + if((a27==1)){ + a12 = 8; + a3 = 6; + a4 = 0; + a18 = 1; + a5 = 1; + a6 = 0; + a15 = 0; + a0 = 1; + }else{ + a5 = 1; + a22 = 0; + a27 = 1; + a0 = 1; + a12 = 8; + a6 = 0; + a18 = 0; + } + return 26; + } else if(((((((a12==11)&&(!(a15==1)&&(((((input==3)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&(a6==1))&&(a20==1))&&(a5==1))))&&(a4==1))&&!(a27==1))&&(a3==4))&&(a0==1))){ + a27 = 1; + a5 = 0; + a3 = 8; + a22 = 1; + a18 = 0; + return 21; + } else if((((a15==1)&&(((a6==1)&&((((a12==11)&&((a27==1)&&((a20==1)&&((input==4)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))))))&&!(a4==1))&&(a3==6)))&&(a5==1)))&&(a0==1))){ + a27 = 0; + a15 = 0; + a18 = 0; + a22 = 1; + a4 = 1; + a6 = 0; + a5 = 0; + a12 = 10; + a3 = 7; + return 26; + } else if((((a6==1)&&((a4==1)&&((a27==1)&&((!(a0==1)&&((a3==7)&&(!(a15==1)&&(((a20==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&!(a5==1)))))&&(a12==9)))))&&!(a22==1))){ + a12 = 10; + a3 = 8; + a0 = 1; + a5 = 1; + a18 = 1; + return 21; + } else if((((!(a27==1)&&((a6==1)&&((a12==10)&&(((a0==1)&&(((((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==2))&&(a4==1)))&&(a20==1)))))&&!(a5==1))&&!(a15==1))){ + a3 = 7; + a18 = 0; + a6 = 0; + a4 = 0; + a5 = 1; + a22 = 1; + return 26; + } else if((((!(a5==1)&&(!(a0==1)&&((a12==8)&&((a4==1)&&((((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==5))&&(a6==1))&&!(a27==1))&&(a15==1))))))&&(a20==1))&&(a3==8))){ + a3 = 7; + a5 = 1; + a22 = 0; + a18 = 0; + a27 = 1; + a0 = 1; + return 26; + } else if((((a5==1)&&(!(a6==1)&&(((a12==11)&&((a3==8)&&((a20==1)&&(!(a4==1)&&(((input==5)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a27==1))))))&&(a15==1))))&&(a0==1))){ + a6 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + a4 = 1; + a18 = 1; + return -1; + } else if((((a12==11)&&(((a3==4)&&(((a15==1)&&((a6==1)&&((((input==3)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&!(a0==1))&&!(a5==1))))&&!(a27==1)))&&(a20==1)))&&(a4==1))){ + if((a0==1)){ + a18 = 1; + a6 = 0; + a0 = 1; + a27 = 1; + a5 = 1; + a3 = 8; + a22 = 1; + a12 = 8; + }else{ + a22 = 1; + a18 = 0; + a27 = 1; + a3 = 5; + a5 = 1; + a12 = 8; + a0 = 1; + a4 = 0; + } + return -1; + } else if(((!(a6==1)&&(!(a4==1)&&((!(a0==1)&&((((a5==1)&&((input==4)&&(((a3==7)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1)))))))&&(a12==12))&&(a27==1)))&&!(a15==1))))&&(a20==1))){ + if((a4==1)){ + a22 = 0; + a5 = 0; + a0 = 1; + a15 = 1; + a3 = 4; + a18 = 0; + a12 = 10; + }else{ + a0 = 1; + a3 = 8; + a18 = 0; + a4 = 1; + a12 = 11; + a22 = 0; + } + return -1; + } else if(((((a6==1)&&(((!(a5==1)&&((a3==4)&&((a15==1)&&((!(a27==1)&&(!(a18==1)&&(input==1)))&&(a20==1)))))&&!(a22==1))&&(a12==9)))&&!(a4==1))&&!(a0==1))){ + if((a18==1)){ + a12 = 8; + a3 = 5; + a4 = 1; + a27 = 1; + a22 = 1; + a0 = 1; + a5 = 1; + }else{ + a18 = 1; + a3 = 8; + } + return 21; + } else if((!(a27==1)&&(((a20==1)&&((a0==1)&&(((!(a15==1)&&((a3==6)&&((((a5==1)&&(input==2))&&(a22==1))&&(a6==1))))&&(a12==8))&&(a4==1))))&&!(a18==1)))){ + a5 = 0; + a12 = 10; + a27 = 1; + a3 = 7; + a6 = 0; + return -1; + } else if(((a3==5)&&((a0==1)&&((a27==1)&&(((a20==1)&&(!(a15==1)&&((a6==1)&&(!(a4==1)&&(((((a18==1)||!(a18==1))&&(input==1))&&!(a22==1))&&(a12==9))))))&&!(a5==1)))))){ + a5 = 1; + a3 = 4; + a18 = 1; + a15 = 1; + a12 = 8; + a22 = 1; + a4 = 1; + return -1; + } else if(((a4==1)&&((a0==1)&&((a5==1)&&((!(a6==1)&&(((a22==1)&&((!(a15==1)&&((((a18==1)||!(a18==1))&&(input==6))&&!(a27==1)))&&(a3==8)))&&(a12==11)))&&(a20==1)))))){ + a18 = 1; + a12 = 8; + a0 = 0; + a3 = 5; + a27 = 1; + a5 = 0; + a15 = 1; + return 24; + } else if(((((a12==8)&&(((a20==1)&&(!(a0==1)&&(!(a4==1)&&(((a6==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==4)))&&(a15==1)))))&&!(a27==1)))&&(a3==6))&&!(a5==1))){ + if((a22==1)){ + a5 = 1; + a18 = 0; + a0 = 1; + a4 = 1; + a22 = 1; + a27 = 1; + a6 = 0; + }else{ + a4 = 1; + a12 = 9; + a22 = 1; + a3 = 8; + a18 = 1; + } + return -1; + } else if(((a3==6)&&(((!(a15==1)&&((((a20==1)&&(!(a5==1)&&(!(a6==1)&&(((input==4)&&!(a27==1))&&!(a4==1)))))&&(a12==11))&&!(a0==1)))&&(a22==1))&&(a18==1)))){ + a3 = 7; + a22 = 0; + a6 = 1; + a18 = 0; + a12 = 8; + return 21; + } else if((((a20==1)&&((!(a4==1)&&((a12==8)&&(!(a27==1)&&((a0==1)&&((a6==1)&&(((input==2)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&!(a5==1)))))))&&(a15==1)))&&(a3==8))){ + a3 = 5; + a18 = 1; + a4 = 1; + a6 = 0; + a22 = 0; + a12 = 11; + return 26; + } else if((((((a5==1)&&(((!(a4==1)&&((a12==9)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1))&&(a27==1))))&&(a15==1))&&!(a6==1)))&&(a3==6))&&(a20==1))&&!(a0==1))){ + a3 = 4; + a18 = 0; + a12 = 10; + a0 = 1; + a4 = 1; + a5 = 0; + a22 = 0; + a15 = 0; + return 26; + } else if(((a15==1)&&((a4==1)&&((!(a6==1)&&(((a20==1)&&((a12==9)&&((a5==1)&&((((a3==8)&&((a22==1)&&!(a18==1)))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1)))))&&(input==3)))))&&!(a0==1)))&&(a27==1))))){ + a6 = 1; + a22 = 1; + a12 = 8; + a0 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((((a6==1)&&((((!(a5==1)&&(((a3==6)&&(((input==6)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a20==1)))&&(a0==1)))&&(a27==1))&&(a12==9))&&!(a15==1)))&&(a4==1))){ + a18 = 1; + a22 = 1; + a12 = 8; + a5 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if((((a12==10)&&(!(a6==1)&&(!(a0==1)&&((((a5==1)&&(((input==4)&&(((a3==7)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))))&&(a20==1)))&&(a4==1))&&(a27==1)))))&&(a15==1))){ + a6 = 1; + a0 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + a22 = 1; + return -1; + } else if((!(a5==1)&&((a12==10)&&((a3==6)&&(!(a22==1)&&(!(a4==1)&&((((((a27==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a20==1))&&!(a6==1))&&!(a15==1))&&(a0==1)))))))){ + if((a27==1)){ + a4 = 1; + a6 = 1; + a3 = 4; + a5 = 1; + a12 = 12; + a18 = 0; + a0 = 0; + a15 = 1; + }else{ + a18 = 0; + a12 = 8; + a6 = 1; + a0 = 0; + a5 = 1; + a4 = 1; + a3 = 8; + } + return 21; + } else if((((a27==1)&&((!(a5==1)&&(!(a15==1)&&(!(a6==1)&&((a3==8)&&(((a20==1)&&((input==3)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&!(a0==1))))))&&(a12==8)))&&(a4==1))){ + a0 = 1; + a5 = 1; + a18 = 0; + a22 = 0; + a15 = 1; + a12 = 11; + a3 = 6; + return -1; + } else if(((((a3==4)&&(((((((a20==1)&&(((a5==1)&&(input==5))&&!(a6==1)))&&(a4==1))&&!(a15==1))&&!(a22==1))&&!(a27==1))&&(a18==1)))&&(a12==10))&&!(a0==1))){ + a4 = 0; + a18 = 0; + a15 = 1; + a3 = 5; + a5 = 0; + a12 = 12; + a0 = 1; + return -1; + } else if(((a6==1)&&((a12==11)&&((a27==1)&&((a15==1)&&((!(a22==1)&&((a20==1)&&(((a18==1)&&((a5==1)&&((input==2)&&(a0==1))))&&(a3==7))))&&!(a4==1))))))){ + a3 = 4; + a4 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if(((a20==1)&&(((((a3==5)&&((a12==11)&&((((((a18==1)&&(input==4))&&!(a22==1))&&(a15==1))&&!(a6==1))&&(a0==1))))&&!(a5==1))&&!(a27==1))&&(a4==1)))){ + a5 = 1; + a3 = 4; + a27 = 1; + a6 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if((((((a4==1)&&((((a3==6)&&((a20==1)&&(!(a15==1)&&(((input==1)&&!(a6==1))&&!(a5==1)))))&&(a12==11))&&(a18==1)))&&(a27==1))&&!(a22==1))&&(a0==1))){ + if((a4==1)){ + a3 = 7; + a5 = 1; + a15 = 1; + a4 = 0; + a18 = 0; + a0 = 0; + a12 = 10; + a6 = 1; + }else{ + a15 = 1; + a4 = 0; + a18 = 0; + a12 = 10; + a3 = 5; + } + return 21; + } else if(((((a3==6)&&(!(a18==1)&&((a12==10)&&((a5==1)&&(!(a0==1)&&((!(a27==1)&&((!(a4==1)&&(input==1))&&(a6==1)))&&!(a15==1)))))))&&(a20==1))&&!(a22==1))){ + a3 = 7; + a22 = 1; + a12 = 9; + a5 = 0; + a4 = 1; + a18 = 1; + a0 = 1; + a27 = 1; + return -1; + } else if(((((a12==9)&&((a3==6)&&((a4==1)&&(!(a5==1)&&(!(a6==1)&&((a20==1)&&(((a15==1)&&((input==2)&&((a18==1)||!(a18==1))))&&!(a0==1))))))))&&!(a27==1))&&!(a22==1))){ + a3 = 7; + a27 = 1; + a0 = 1; + a12 = 8; + a22 = 1; + a18 = 0; + a4 = 0; + a6 = 1; + a5 = 1; + return 26; + } else if(((a0==1)&&((!(a15==1)&&((a5==1)&&((a27==1)&&((a12==12)&&(((a4==1)&&((a20==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a3==4))))&&(a22==1))))))&&(a6==1)))){ + a18 = 1; + a6 = 0; + a12 = 11; + a3 = 5; + return 26; + } else if(((a5==1)&&(((((a3==4)&&((a6==1)&&(((((input==6)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&(a12==8))&&!(a0==1))&&(a20==1))))&&(a27==1))&&!(a4==1))&&(a15==1)))){ + a0 = 1; + a4 = 1; + a18 = 0; + a12 = 10; + a22 = 1; + a6 = 0; + a5 = 0; + return 26; + } else if((((((a12==10)&&(!(a0==1)&&((a27==1)&&((a5==1)&&(!(a4==1)&&(((a22==1)&&((input==6)&&(a3==7)))&&!(a15==1)))))))&&(a20==1))&&!(a6==1))&&!(a18==1))){ + a0 = 1; + a22 = 0; + a3 = 5; + a12 = 11; + return 24; + } else if(((a15==1)&&(((a6==1)&&(((a27==1)&&((a12==8)&&((a4==1)&&(!(a0==1)&&((input==2)&&(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8))))))))&&(a20==1)))&&(a5==1)))){ + a18 = 1; + a6 = 0; + a22 = 1; + a12 = 10; + a3 = 8; + a5 = 0; + return -1; + } else if(((a15==1)&&((a3==7)&&(((a4==1)&&((((((a22==1)&&(((input==6)&&(a12==9))&&!(a5==1)))&&!(a27==1))&&(a20==1))&&!(a6==1))&&(a18==1)))&&(a0==1))))){ + a3 = 6; + a18 = 0; + a12 = 12; + a5 = 1; + a4 = 0; + a27 = 1; + a22 = 0; + return 21; + } else if((((a27==1)&&((!(a5==1)&&((a15==1)&&(!(a0==1)&&(((input==5)&&((!(a6==1)&&((a3==4)&&((a22==1)&&!(a18==1))))||((((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1)))))&&(a4==1)))))&&(a12==11)))&&(a20==1))){ + a5 = 1; + a12 = 10; + a3 = 5; + a22 = 1; + a18 = 0; + a0 = 1; + a4 = 0; + a6 = 0; + return 21; + } else if(((a12==12)&&((a0==1)&&((a27==1)&&(((a4==1)&&(!(a15==1)&&((((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==3))&&(a20==1))&&(a6==1))&&!(a5==1))))&&(a3==6)))))){ + a27 = 0; + a22 = 1; + a3 = 4; + a4 = 0; + a18 = 1; + a12 = 9; + return 24; + } else if((!(a15==1)&&(!(a4==1)&&((!(a0==1)&&((!(a5==1)&&(((a20==1)&&((a12==12)&&(((input==2)&&(a22==1))&&(a27==1))))&&!(a18==1)))&&(a3==7)))&&!(a6==1))))){ + a18 = 1; + a5 = 1; + a12 = 8; + a22 = 0; + a4 = 1; + a3 = 5; + a0 = 1; + a15 = 1; + return 21; + } else if((((((!(a4==1)&&(((a12==8)&&((((((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==5)))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==4))&&(a5==1)))&&(a27==1)))&&!(a15==1))&&(a20==1))&&(a6==1))&&!(a0==1))){ + a22 = 0; + a12 = 12; + a27 = 0; + a0 = 1; + a15 = 1; + a18 = 0; + a3 = 6; + return 26; + } else if((((a5==1)&&(((a4==1)&&(!(a27==1)&&((!(a6==1)&&((a20==1)&&((((a3==6)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1)))))&&(input==4))))&&!(a15==1))))&&(a0==1)))&&(a12==11))){ + a15 = 1; + a3 = 4; + a27 = 1; + a6 = 1; + a12 = 8; + a22 = 1; + a18 = 1; + return -1; + } else if((((((a22==1)&&((a15==1)&&((a3==4)&&(((a12==9)&&(((a4==1)&&((input==4)&&((a18==1)||!(a18==1))))&&(a20==1)))&&!(a27==1)))))&&(a6==1))&&(a0==1))&&!(a5==1))){ + if((a20==1)){ + a5 = 1; + a18 = 1; + a27 = 1; + a3 = 8; + a0 = 0; + a6 = 0; + a15 = 0; + }else{ + a18 = 1; + a4 = 0; + } + return 24; + } else if(((a22==1)&&(!(a15==1)&&(!(a27==1)&&((((a4==1)&&(((((((a18==1)||!(a18==1))&&(input==3))&&(a0==1))&&(a5==1))&&(a20==1))&&(a6==1)))&&(a3==5))&&(a12==10)))))){ + a5 = 0; + a3 = 6; + a27 = 1; + a22 = 0; + a18 = 1; + a12 = 11; + return 21; + } else if(((((a20==1)&&(!(a5==1)&&(((a6==1)&&(((((input==2)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&(a3==8))&&!(a4==1))&&(a27==1)))&&(a12==8))))&&(a15==1))&&(a0==1))){ + a5 = 1; + a6 = 0; + a22 = 0; + a3 = 6; + a4 = 1; + a18 = 0; + a12 = 10; + a15 = 0; + return 21; + } else if((!(a0==1)&&(!(a15==1)&&((a12==11)&&(!(a4==1)&&((a6==1)&&((a27==1)&&(!(a5==1)&&(((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==1))&&(a20==1)))))))))){ + a15 = 1; + a5 = 1; + a22 = 1; + a6 = 0; + a0 = 1; + a3 = 5; + a4 = 1; + a18 = 0; + return 26; + } else if(((a3==6)&&((a5==1)&&((a15==1)&&(((a27==1)&&((a6==1)&&((a20==1)&&((!(a4==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==1)))&&(a0==1)))))&&(a12==10)))))){ + a3 = 4; + a18 = 0; + a22 = 0; + a4 = 1; + a6 = 0; + return -1; + } else if((!(a4==1)&&(((a12==11)&&((a20==1)&&(!(a27==1)&&(!(a5==1)&&((a0==1)&&((a18==1)&&((a15==1)&&((a22==1)&&((a3==8)&&(input==3))))))))))&&!(a6==1)))){ + a12 = 12; + a5 = 1; + a3 = 5; + a27 = 1; + a4 = 1; + return 21; + } else if((((a12==9)&&(((((a20==1)&&(((a27==1)&&((a3==6)&&((input==6)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))))&&!(a0==1)))&&(a4==1))&&(a15==1))&&(a5==1)))&&(a6==1))){ + a5 = 0; + a22 = 0; + a12 = 11; + a0 = 1; + a6 = 0; + a15 = 0; + a18 = 1; + a4 = 0; + a3 = 4; + return 26; + } else if(((a15==1)&&((a20==1)&&((((!(a4==1)&&((((((a27==1)&&(input==6))&&(a12==11))&&!(a5==1))&&!(a22==1))&&!(a0==1)))&&!(a6==1))&&(a3==6))&&!(a18==1))))){ + a6 = 1; + a3 = 4; + a18 = 1; + a5 = 1; + a0 = 1; + a4 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if(((!(a4==1)&&(!(a27==1)&&((a20==1)&&((a3==7)&&(((a12==11)&&((a15==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==6))&&(a6==1))))&&(a0==1))))))&&(a5==1))){ + a3 = 4; + a27 = 1; + a22 = 1; + a18 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if((((((a12==8)&&(!(a15==1)&&(((a0==1)&&((a20==1)&&(!(a6==1)&&((input==6)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))&&(a3==6))))&&!(a27==1))&&!(a5==1))&&!(a4==1))){ + a3 = 4; + a15 = 1; + a27 = 1; + a12 = 10; + a22 = 0; + a18 = 0; + return 26; + } else if((!(a15==1)&&(((!(a27==1)&&((a12==9)&&(((input==3)&&(((a6==1)&&((a3==4)&&(!(a4==1)&&((a22==1)&&!(a18==1)))))||((!(a6==1)&&(((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8)))||((a6==1)&&((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1))))))))&&(a5==1))))&&!(a0==1))&&(a20==1)))){ + if((a20==1)){ + a3 = 6; + a12 = 12; + a18 = 1; + a22 = 1; + a6 = 1; + a4 = 0; + a0 = 1; + }else{ + a27 = 1; + a12 = 12; + a22 = 0; + a6 = 1; + a18 = 0; + a4 = 1; + a3 = 4; + a15 = 1; + } + return 26; + } else if(((a20==1)&&(!(a27==1)&&(((a15==1)&&((a4==1)&&((a12==9)&&((((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1)))&&(input==1))&&!(a5==1)))))&&(a0==1))))){ + a3 = 4; + a6 = 0; + a12 = 8; + a22 = 0; + a0 = 0; + a18 = 0; + a4 = 0; + a27 = 1; + return 21; + } else if((!(a18==1)&&((((!(a4==1)&&(!(a6==1)&&(((!(a22==1)&&((a12==11)&&((input==5)&&(a20==1))))&&(a15==1))&&(a27==1))))&&(a5==1))&&(a3==4))&&(a0==1)))){ + a0 = 0; + a18 = 1; + a4 = 1; + a6 = 1; + a3 = 5; + a12 = 10; + return -1; + } else if(((((!(a27==1)&&(!(a0==1)&&(((a3==7)&&(((a22==1)&&(((a20==1)&&(input==1))&&(a4==1)))&&(a15==1)))&&(a12==8))))&&!(a18==1))&&(a5==1))&&(a6==1))){ + a27 = 1; + a3 = 5; + a6 = 0; + a12 = 10; + a18 = 1; + a4 = 0; + a15 = 0; + return 21; + } else if((!(a15==1)&&((!(a4==1)&&((a3==5)&&((a5==1)&&((a0==1)&&((((a12==12)&&(!(a27==1)&&((input==2)&&!(a6==1))))&&(a22==1))&&(a20==1))))))&&!(a18==1)))){ + a0 = 0; + a6 = 1; + a5 = 0; + a27 = 1; + a12 = 10; + a22 = 0; + a15 = 1; + return 26; + } else if((!(a0==1)&&((a6==1)&&((((((((a5==1)&&(((input==1)&&(a3==4))&&(a22==1)))&&(a27==1))&&(a20==1))&&(a12==11))&&!(a15==1))&&!(a18==1))&&!(a4==1))))){ + a0 = 1; + a18 = 1; + a3 = 8; + return 21; + } else if((((a12==10)&&(((a20==1)&&((!(a0==1)&&((((((a4==1)&&(!(a22==1)&&!(a18==1)))&&(a3==8))&&!(a6==1))||((a6==1)&&((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))))&&(input==4)))&&(a5==1)))&&(a27==1)))&&(a15==1))){ + a3 = 6; + a18 = 0; + a22 = 1; + a5 = 0; + a4 = 1; + a12 = 11; + a6 = 1; + return 21; + } else if(((a20==1)&&((a3==6)&&((((((!(a6==1)&&(!(a4==1)&&((input==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))))&&(a12==12))&&(a15==1))&&(a0==1))&&(a27==1))&&(a5==1))))){ + a22 = 1; + a4 = 1; + a5 = 0; + a18 = 1; + a3 = 5; + a12 = 11; + a15 = 0; + return -1; + } else if(((((((a20==1)&&((a27==1)&&((a12==10)&&(((input==4)&&((((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a18==1)&&!(a22==1))))||((a3==5)&&((a22==1)&&(a18==1)))))&&(a15==1)))))&&!(a4==1))&&!(a0==1))&&!(a5==1))&&!(a6==1))){ + a18 = 1; + a6 = 1; + a22 = 0; + a3 = 6; + a27 = 0; + a15 = 0; + a0 = 1; + return 26; + } else if(((((a5==1)&&((((((!(a15==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a27==1)))&&(a22==1))&&(a0==1))&&(a12==10))&&!(a4==1))&&(a6==1)))&&(a20==1))&&(a3==6))){ + a3 = 7; + a6 = 0; + a15 = 1; + a22 = 0; + a18 = 0; + return -1; + } else if(((((((!(a0==1)&&(((a5==1)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==2)))&&(a20==1)))&&(a15==1))&&!(a6==1))&&!(a27==1))&&(a12==9))&&!(a4==1))){ + a0 = 1; + a18 = 0; + a5 = 0; + a15 = 0; + a3 = 8; + a27 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if(((!(a0==1)&&((a15==1)&&((a12==9)&&(((a5==1)&&((((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==4))&&!(a4==1))&&!(a27==1)))&&(a20==1)))))&&!(a6==1))){ + a27 = 1; + a18 = 1; + a22 = 1; + a15 = 0; + a3 = 7; + a0 = 1; + a12 = 8; + return 26; + } else if((((!(a6==1)&&((a0==1)&&((((a4==1)&&((a5==1)&&((input==4)&&((((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==7)))||(((a22==1)&&(a18==1))&&(a3==8))))))&&!(a27==1))&&(a12==10))))&&(a15==1))&&(a20==1))){ + a12 = 8; + a6 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a27 = 1; + return -1; + } else if((!(a6==1)&&(((a0==1)&&((a3==7)&&((a12==9)&&(((a20==1)&&((a5==1)&&(!(a4==1)&&((input==1)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))))&&!(a27==1)))))&&(a15==1)))){ + a18 = 0; + a4 = 1; + a15 = 0; + a22 = 1; + a12 = 10; + a27 = 1; + a3 = 4; + return 21; + } else if((!(a4==1)&&(((((a15==1)&&((a6==1)&&((a27==1)&&((a22==1)&&(((((a18==1)||!(a18==1))&&(input==4))&&(a20==1))&&(a12==12))))))&&(a3==7))&&!(a0==1))&&(a5==1)))){ + a22 = 0; + a0 = 1; + a27 = 0; + a12 = 8; + a3 = 4; + a18 = 1; + a15 = 0; + return 26; + } else if((((((((a5==1)&&((!(a0==1)&&(!(a4==1)&&((a3==6)&&((input==3)&&!(a15==1)))))&&(a27==1)))&&(a22==1))&&(a6==1))&&(a20==1))&&(a12==8))&&!(a18==1))){ + a3 = 4; + a4 = 1; + a0 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if((!(a27==1)&&((!(a0==1)&&((!(a5==1)&&(!(a6==1)&&((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1))&&(a3==8))&&(a20==1))&&!(a4==1))))&&!(a15==1)))&&(a12==8)))){ + a3 = 6; + a6 = 1; + a0 = 1; + a12 = 12; + a22 = 1; + a5 = 1; + a4 = 1; + a18 = 0; + return 21; + } else if(((a12==10)&&((!(a4==1)&&((((a20==1)&&(((((input==1)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a3==8))&&(a15==1))&&(a0==1)))&&(a27==1))&&(a5==1)))&&!(a6==1)))){ + a3 = 6; + a22 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if(((!(a0==1)&&(!(a27==1)&&((a4==1)&&((((a20==1)&&(!(a5==1)&&((input==5)&&((((a3==4)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))||((a3==5)&&((a22==1)&&(a18==1)))))))&&!(a6==1))&&!(a15==1)))))&&(a12==8))){ + a22 = 1; + a18 = 0; + a6 = 1; + a15 = 1; + a5 = 1; + a3 = 4; + a27 = 1; + a4 = 0; + a0 = 1; + return -1; + } else if((!(a6==1)&&(!(a4==1)&&(((a12==8)&&((a27==1)&&((a15==1)&&(!(a5==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==5))&&(a20==1))))))&&!(a0==1))))){ + a12 = 11; + a18 = 1; + a5 = 1; + a0 = 1; + a15 = 0; + a3 = 8; + a22 = 0; + a6 = 1; + return -1; + } else if((((((a0==1)&&((((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==4))&&(a12==9))&&(a4==1))&&(a20==1))&&!(a5==1))&&(a27==1)))&&!(a15==1))&&(a3==8))&&!(a6==1))){ + if((a3==8)){ + a6 = 1; + a0 = 0; + a18 = 1; + a5 = 1; + a22 = 0; + }else{ + a12 = 12; + a27 = 0; + a18 = 0; + a22 = 0; + a4 = 0; + a15 = 1; + a6 = 1; + } + return 26; + } else if(((((a5==1)&&(((a22==1)&&((((((a15==1)&&((input==5)&&(a20==1)))&&(a3==4))&&(a6==1))&&!(a4==1))&&(a12==8)))&&!(a27==1)))&&!(a0==1))&&!(a18==1))){ + if((a15==1)){ + a12 = 9; + a3 = 6; + a18 = 1; + a5 = 0; + }else{ + a12 = 10; + a27 = 1; + a6 = 0; + a3 = 6; + } + return 26; + } else if(((a3==7)&&((a4==1)&&(((a20==1)&&((a12==8)&&(((a27==1)&&((a15==1)&&((a5==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==3)))))&&!(a6==1))))&&!(a0==1))))){ + a12 = 10; + a6 = 1; + a0 = 1; + a18 = 0; + a22 = 0; + return 21; + } else if(((a3==7)&&(((a15==1)&&(((a20==1)&&((a6==1)&&((((a5==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==6)))&&!(a0==1))&&!(a4==1))))&&(a12==10)))&&(a27==1)))){ + a22 = 1; + a0 = 1; + a4 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + return -1; + } else if(((a12==11)&&(!(a27==1)&&((((a15==1)&&((a18==1)&&(!(a22==1)&&(((!(a6==1)&&((input==4)&&(a0==1)))&&(a20==1))&&(a3==6)))))&&!(a5==1))&&(a4==1))))){ + a6 = 1; + a5 = 1; + a18 = 0; + a22 = 1; + a3 = 7; + return -1; + } else if(((((((!(a5==1)&&((a3==6)&&((a22==1)&&(!(a4==1)&&(((a18==1)&&(input==4))&&(a6==1))))))&&!(a15==1))&&!(a0==1))&&(a12==9))&&(a27==1))&&(a20==1))){ + a6 = 0; + a5 = 1; + a12 = 12; + a15 = 1; + a0 = 1; + a22 = 0; + a3 = 5; + return 21; + } else if(((a6==1)&&(((a3==5)&&((((((a20==1)&&(!(a0==1)&&(((input==2)&&(a5==1))&&!(a27==1))))&&(a12==11))&&!(a22==1))&&(a18==1))&&(a4==1)))&&!(a15==1)))){ + a18 = 0; + a5 = 0; + a15 = 1; + a0 = 1; + a3 = 4; + return -1; + } else if((((a20==1)&&(!(a22==1)&&(!(a4==1)&&((!(a27==1)&&((a12==12)&&((a0==1)&&(((a18==1)&&((a3==4)&&(input==5)))&&(a15==1)))))&&!(a5==1)))))&&!(a6==1))){ + a15 = 0; + a27 = 1; + a6 = 1; + a12 = 9; + a22 = 1; + a5 = 1; + return 24; + } else if(((((((!(a4==1)&&(!(a0==1)&&(!(a27==1)&&((input==5)&&((((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a22==1)&&!(a18==1))))||((a3==6)&&((a18==1)&&(a22==1))))))))&&(a20==1))&&!(a15==1))&&(a6==1))&&(a12==9))&&!(a5==1))){ + if((a6==1)){ + a22 = 1; + a12 = 11; + a18 = 0; + a3 = 5; + a0 = 1; + a15 = 1; + a27 = 1; + }else{ + a12 = 11; + a15 = 1; + a4 = 1; + a3 = 6; + a18 = 0; + a22 = 0; + a5 = 1; + } + return 26; + } else if(((((a5==1)&&(((!(a0==1)&&((a4==1)&&(!(a6==1)&&(((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1))))||((a3==7)&&((a22==1)&&!(a18==1))))&&(input==4)))))&&(a27==1))&&(a20==1)))&&(a12==11))&&(a15==1))){ + a3 = 8; + a22 = 1; + a18 = 1; + a12 = 12; + a0 = 1; + return 26; + } else if(((((a15==1)&&(((!(a0==1)&&((((!(a5==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a6==1))&&(a20==1))&&(a3==5)))&&(a12==9))&&!(a27==1)))&&(a22==1))&&(a4==1))){ + a0 = 1; + a3 = 7; + a5 = 1; + a18 = 1; + a22 = 0; + a27 = 1; + a12 = 8; + return -1; + } else if(((a6==1)&&((a5==1)&&((a15==1)&&(!(a0==1)&&((((a20==1)&&(!(a27==1)&&(!(a4==1)&&((input==4)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))))))&&(a3==6))&&(a12==10))))))){ + if((a27==1)){ + a6 = 0; + a18 = 0; + a22 = 1; + a27 = 1; + a0 = 1; + a12 = 9; + a3 = 8; + a4 = 1; + }else{ + a0 = 1; + a22 = 0; + a4 = 1; + a18 = 1; + a15 = 0; + a5 = 0; + a3 = 4; + } + return 21; + } else if(((a20==1)&&((!(a5==1)&&(((a0==1)&&(((((!(a18==1)&&(!(a27==1)&&(input==1)))&&(a12==10))&&!(a6==1))&&(a22==1))&&!(a15==1)))&&(a3==6)))&&(a4==1)))){ + a12 = 8; + a18 = 1; + a3 = 4; + a5 = 1; + a15 = 1; + a27 = 1; + a6 = 1; + return -1; + } else if((((!(a4==1)&&(((a27==1)&&(((a5==1)&&((a20==1)&&((a15==1)&&((input==2)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))&&(a3==4)))&&(a12==10)))&&(a6==1))&&!(a0==1))){ + a22 = 1; + a6 = 0; + a5 = 0; + a4 = 1; + a0 = 1; + a18 = 0; + return 26; + } else if(((a20==1)&&((a6==1)&&((a4==1)&&((a15==1)&&(((a3==6)&&((((a0==1)&&((input==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))))&&(a12==10))&&(a27==1)))&&!(a5==1))))))){ + a27 = 0; + a5 = 1; + a3 = 4; + a22 = 0; + a18 = 0; + a4 = 0; + return 26; + } else if((!(a4==1)&&(((a5==1)&&((a27==1)&&((!(a0==1)&&((a15==1)&&(((input==1)&&((((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==5)))||(((a22==1)&&(a18==1))&&(a3==6))))&&(a12==9))))&&!(a6==1))))&&(a20==1)))){ + a15 = 0; + a3 = 7; + a22 = 0; + a18 = 1; + a12 = 11; + a6 = 1; + a0 = 1; + a4 = 1; + return 26; + } else if((!(a5==1)&&(!(a27==1)&&((a15==1)&&(((a3==4)&&(((a20==1)&&(((((input==1)&&((a18==1)||!(a18==1)))&&!(a4==1))&&(a0==1))&&(a12==12)))&&(a22==1)))&&!(a6==1)))))){ + a3 = 5; + a22 = 0; + a15 = 0; + a27 = 1; + a18 = 1; + a12 = 9; + return 21; + } else if(((!(a18==1)&&((((!(a0==1)&&((a3==8)&&((a4==1)&&(((a6==1)&&((input==4)&&!(a27==1)))&&!(a15==1)))))&&(a12==11))&&(a20==1))&&(a5==1)))&&!(a22==1))){ + a12 = 8; + a3 = 6; + a4 = 0; + a0 = 1; + return 26; + } else if(((((a20==1)&&((a3==4)&&(((((((a22==1)&&((input==3)&&!(a4==1)))&&(a12==10))&&!(a15==1))&&(a0==1))&&(a5==1))&&(a6==1))))&&!(a18==1))&&!(a27==1))){ + a27 = 1; + a15 = 1; + a4 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((a12==10)&&((!(a4==1)&&((a5==1)&&(((((((((a22==1)&&!(a18==1))&&(a3==6))||(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1)))))&&(input==3))&&(a27==1))&&(a20==1))&&!(a0==1))&&!(a15==1))))&&!(a6==1)))){ + a3 = 6; + a5 = 0; + a18 = 0; + a22 = 1; + a6 = 1; + return 21; + } else if(((((!(a27==1)&&((((((a5==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==6)))&&(a6==1))&&!(a0==1))&&!(a4==1))&&(a20==1)))&&(a3==5))&&(a12==11))&&(a15==1))){ + if((a4==1)){ + a4 = 1; + a0 = 1; + a12 = 8; + a22 = 0; + a18 = 0; + }else{ + a3 = 8; + a12 = 8; + a0 = 1; + a22 = 0; + a4 = 1; + a27 = 1; + a18 = 1; + a6 = 0; + } + return -1; + } return calculate_output57(input); + } + + int calculate_output57(int input) { + if((!(a22==1)&&(((!(a6==1)&&((a0==1)&&((a20==1)&&((a27==1)&&((a3==4)&&(!(a15==1)&&(!(a4==1)&&((input==4)&&(a12==10)))))))))&&!(a18==1))&&(a5==1)))){ + if((a22==1)){ + a12 = 8; + a18 = 1; + a22 = 1; + a3 = 5; + a5 = 0; + a0 = 0; + a4 = 1; + }else{ + a6 = 1; + a12 = 8; + a18 = 1; + a3 = 8; + a4 = 1; + } + return 21; + } else if((((a12==8)&&((a0==1)&&((a15==1)&&((((a3==4)&&(((((input==2)&&((a18==1)||!(a18==1)))&&(a4==1))&&!(a27==1))&&(a20==1)))&&!(a5==1))&&(a6==1)))))&&(a22==1))){ + a12 = 10; + a6 = 0; + a27 = 1; + a3 = 8; + a18 = 1; + return 26; + } else if(((a12==12)&&(((((((a20==1)&&((a27==1)&&(((((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a22==1)&&!(a18==1))))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==5))))&&(a15==1))&&(a6==1))&&(a4==1))&&!(a5==1))&&!(a0==1)))){ + if((a15==1)){ + a18 = 1; + a3 = 5; + a12 = 9; + a4 = 0; + a22 = 1; + }else{ + a4 = 0; + a22 = 1; + a5 = 1; + a3 = 6; + a18 = 1; + a0 = 1; + a12 = 8; + } + return 21; + } else if((!(a15==1)&&((((a5==1)&&((!(a22==1)&&(((((!(a27==1)&&(input==2))&&(a20==1))&&(a18==1))&&(a0==1))&&!(a6==1)))&&!(a4==1)))&&(a12==12))&&(a3==8)))){ + a22 = 1; + a27 = 1; + a15 = 1; + a12 = 10; + return 21; + } else if((((((a12==12)&&(((a20==1)&&(!(a6==1)&&(((a4==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==6)))&&(a27==1))))&&(a15==1)))&&(a5==1))&&(a0==1))&&(a3==5))){ + a18 = 0; + a6 = 1; + a12 = 11; + a5 = 0; + a22 = 1; + a3 = 6; + a15 = 0; + return -1; + } else if(((a5==1)&&(!(a0==1)&&(((a4==1)&&((a18==1)&&((((a27==1)&&((a3==8)&&(((input==1)&&(a20==1))&&(a6==1))))&&(a22==1))&&(a12==9))))&&!(a15==1))))){ + if((a20==1)){ + a3 = 7; + a15 = 1; + a5 = 0; + a6 = 0; + }else{ + a12 = 11; + a15 = 1; + a4 = 0; + a3 = 7; + a0 = 1; + a6 = 0; + } + return 24; + } else if((((((a3==6)&&((a12==12)&&((a27==1)&&((a5==1)&&(((a20==1)&&(((input==4)&&!(a0==1))&&!(a18==1)))&&(a4==1))))))&&!(a22==1))&&(a6==1))&&(a15==1))){ + a0 = 1; + a18 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((((!(a5==1)&&(!(a15==1)&&((((a4==1)&&(((((input==2)&&((a18==1)||!(a18==1)))&&(a20==1))&&(a27==1))&&(a3==4)))&&(a6==1))&&!(a22==1))))&&(a12==8))&&!(a0==1))){ + a5 = 1; + a27 = 0; + a18 = 1; + a0 = 1; + a3 = 7; + a22 = 1; + a12 = 12; + return 26; + } else if((!(a5==1)&&((!(a4==1)&&(!(a27==1)&&(((a6==1)&&((((((input==6)&&((a18==1)||!(a18==1)))&&(a3==4))&&!(a15==1))&&(a12==11))&&(a20==1)))&&!(a22==1))))&&(a0==1)))){ + a3 = 8; + a27 = 1; + a12 = 10; + a15 = 1; + a18 = 1; + a22 = 1; + return 21; + } else if(((a12==11)&&(!(a4==1)&&((!(a6==1)&&(((!(a0==1)&&(!(a27==1)&&((a3==8)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1)))))&&!(a15==1))&&(a20==1)))&&(a5==1))))){ + if((a4==1)){ + a18 = 1; + a15 = 1; + a0 = 1; + a22 = 0; + a27 = 1; + a6 = 1; + }else{ + a22 = 0; + a4 = 1; + a27 = 1; + a3 = 7; + a12 = 8; + a15 = 1; + a0 = 1; + a18 = 1; + } + return -1; + } else if(((((a0==1)&&(((input==2)&&((((a3==8)&&((!(a15==1)&&((!(a18==1)&&!(a22==1))&&(a5==1)))&&!(a4==1)))&&!(a6==1))||((a6==1)&&((a3==4)&&(((!(a5==1)&&((a22==1)&&(a18==1)))&&(a15==1))&&(a4==1))))))&&(a20==1)))&&(a27==1))&&(a12==12))){ + a6 = 0; + a4 = 0; + a22 = 0; + a18 = 1; + a3 = 7; + a12 = 11; + a15 = 0; + a5 = 1; + return -1; + } else if(((a0==1)&&((((a20==1)&&(!(a27==1)&&(((((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==3))&&!(a5==1))&&(a3==8))&&(a6==1))&&(a12==11))))&&(a15==1))&&(a4==1)))){ + a22 = 1; + a18 = 1; + a5 = 1; + a3 = 4; + a27 = 1; + a12 = 8; + return -1; + } else if((!(a18==1)&&((a12==11)&&(((a20==1)&&((((!(a5==1)&&(((!(a6==1)&&(input==5))&&(a0==1))&&(a3==6)))&&(a4==1))&&!(a22==1))&&(a15==1)))&&!(a27==1))))){ + a27 = 1; + a15 = 0; + a6 = 1; + a22 = 1; + a12 = 10; + a5 = 1; + return -1; + } else if(((a12==12)&&((((!(a15==1)&&((((a6==1)&&((a20==1)&&(!(a18==1)&&((input==2)&&(a3==4)))))&&(a4==1))&&!(a27==1)))&&(a0==1))&&(a5==1))&&!(a22==1)))){ + a22 = 1; + a12 = 9; + a6 = 0; + a3 = 5; + a4 = 0; + return -1; + } else if(((!(a27==1)&&((a6==1)&&(!(a5==1)&&((((a20==1)&&(!(a4==1)&&((input==6)&&((((a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a18==1)&&!(a22==1))))))))&&(a12==9))&&(a15==1)))))&&(a0==1))){ + a3 = 7; + a12 = 12; + a15 = 0; + a18 = 1; + a27 = 1; + a22 = 0; + a4 = 1; + return 21; + } else if(((a20==1)&&((a27==1)&&(((!(a6==1)&&(((a0==1)&&((((a3==4)&&(((a18==1)||!(a18==1))&&(input==1)))&&!(a15==1))&&(a4==1)))&&(a12==8)))&&(a22==1))&&(a5==1))))){ + a3 = 5; + a18 = 1; + a22 = 0; + a6 = 1; + a5 = 0; + return 21; + } else if((!(a27==1)&&(((a15==1)&&(((((input==2)&&(((!(a6==1)&&((((a18==1)&&!(a22==1))&&(a4==1))&&(a3==8)))||((((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8))&&!(a6==1)))||((a6==1)&&((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1))))))&&(a12==11))&&(a20==1))&&!(a5==1)))&&!(a0==1)))){ + a3 = 8; + a18 = 1; + a0 = 1; + a12 = 8; + a5 = 1; + a22 = 1; + a27 = 1; + a4 = 1; + a6 = 0; + return -1; + } else if(((a27==1)&&((a20==1)&&((a5==1)&&(((((input==3)&&((((a3==8)&&((!(a22==1)&&!(a18==1))&&(a4==1)))&&!(a6==1))||((a6==1)&&((a3==4)&&(!(a4==1)&&((a22==1)&&(a18==1)))))))&&(a15==1))&&(a0==1))&&(a12==9)))))){ + a6 = 1; + a15 = 0; + a18 = 1; + a12 = 12; + a22 = 1; + a3 = 4; + a4 = 0; + return 21; + } else if(((a27==1)&&((((!(a5==1)&&(((((a6==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2)))&&(a20==1))&&(a4==1))&&(a15==1)))&&(a3==6))&&(a12==8))&&(a0==1)))){ + a12 = 9; + a3 = 7; + a18 = 1; + a15 = 0; + a22 = 0; + return 21; + } else if((((((a18==1)&&(((a4==1)&&((!(a22==1)&&((a3==5)&&(((input==1)&&(a0==1))&&!(a5==1))))&&!(a27==1)))&&(a6==1)))&&(a20==1))&&(a12==9))&&!(a15==1))){ + a27 = 1; + a15 = 1; + a6 = 0; + a12 = 12; + a4 = 0; + a3 = 4; + return 26; + } else if(((a18==1)&&(!(a4==1)&&(((a15==1)&&((a6==1)&&(!(a22==1)&&((a3==6)&&(((a12==8)&&(((input==1)&&(a5==1))&&(a20==1)))&&!(a0==1))))))&&(a27==1))))){ + a22 = 1; + a5 = 0; + a6 = 0; + a15 = 0; + a27 = 0; + a3 = 4; + a0 = 1; + a4 = 1; + return 24; + } else if((((!(a0==1)&&(((((((((a6==1)&&(input==2))&&!(a27==1))&&(a5==1))&&!(a18==1))&&(a15==1))&&(a4==1))&&(a12==8))&&(a3==8)))&&(a20==1))&&(a22==1))){ + a27 = 1; + a18 = 1; + a4 = 0; + a22 = 0; + a0 = 1; + a3 = 6; + return -1; + } else if((((((!(a6==1)&&((!(a0==1)&&(((input==1)&&(((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8))))&&!(a5==1)))&&(a12==8)))&&(a27==1))&&!(a4==1))&&!(a15==1))&&(a20==1))){ + a18 = 0; + a3 = 4; + a15 = 1; + a0 = 1; + a27 = 0; + a22 = 1; + return 21; + } else if(((!(a0==1)&&((a20==1)&&(((a5==1)&&((!(a15==1)&&(((a3==5)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1)))&&!(a4==1)))&&(a6==1)))&&(a12==9))))&&(a27==1))){ + a4 = 1; + a18 = 0; + a22 = 0; + a3 = 8; + a6 = 0; + a15 = 1; + a0 = 1; + a12 = 11; + return 26; + } else if(((a20==1)&&((!(a0==1)&&((a27==1)&&(((a15==1)&&(!(a5==1)&&((a6==1)&&(((input==6)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a3==8)))))&&(a4==1))))&&(a12==11)))){ + a22 = 0; + a5 = 1; + a12 = 10; + a15 = 0; + a0 = 1; + a3 = 6; + a18 = 1; + return -1; + } else if(((((((a12==11)&&((a6==1)&&(!(a15==1)&&(((input==1)&&(((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==5))))&&(a0==1)))))&&!(a27==1))&&(a20==1))&&(a5==1))&&!(a4==1))){ + a18 = 1; + a27 = 1; + a3 = 4; + a15 = 1; + a12 = 8; + a22 = 1; + a4 = 1; + return -1; + } else if(((((a5==1)&&(((a6==1)&&(((a20==1)&&(((((input==6)&&((a18==1)||!(a18==1)))&&(a27==1))&&(a12==12))&&!(a4==1)))&&(a0==1)))&&(a3==8)))&&!(a15==1))&&!(a22==1))){ + a27 = 0; + a5 = 0; + a18 = 1; + a6 = 0; + a3 = 7; + return -1; + } else if(((((((((a12==8)&&((!(a0==1)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==1)))&&!(a27==1)))&&(a3==7))&&(a6==1))&&(a4==1))&&(a20==1))&&!(a15==1))&&!(a5==1))){ + a3 = 6; + a27 = 1; + a5 = 1; + a22 = 1; + a18 = 0; + a15 = 1; + a0 = 1; + return 21; + } else if(((a6==1)&&((((!(a15==1)&&(!(a5==1)&&(((a12==10)&&((input==4)&&(((a3==5)&&(!(a18==1)&&(a22==1)))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1)))))))&&!(a0==1))))&&!(a4==1))&&(a20==1))&&(a27==1)))){ + a3 = 4; + a0 = 1; + a18 = 1; + a4 = 1; + a15 = 1; + a12 = 11; + a5 = 1; + a22 = 0; + return 26; + } else if(((a5==1)&&((a4==1)&&((a27==1)&&(((a20==1)&&((!(a22==1)&&(((a0==1)&&((a12==10)&&((a6==1)&&(input==3))))&&(a18==1)))&&!(a15==1)))&&(a3==6)))))){ + a15 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((a12==11)&&(((a20==1)&&((((a22==1)&&(!(a27==1)&&((a4==1)&&((a0==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a6==1))))))&&!(a15==1))&&(a3==6)))&&!(a5==1)))){ + a4 = 0; + a27 = 1; + a12 = 12; + a5 = 1; + a15 = 1; + a18 = 0; + a6 = 0; + return 21; + } else if(((a0==1)&&(((!(a4==1)&&(((((((a27==1)&&((input==5)&&(a22==1)))&&!(a6==1))&&(a3==4))&&(a12==8))&&(a5==1))&&(a20==1)))&&!(a15==1))&&(a18==1)))){ + a18 = 0; + a4 = 1; + a22 = 0; + a12 = 9; + a3 = 8; + return 24; + } else if(((a3==5)&&(((a15==1)&&((!(a18==1)&&(!(a22==1)&&(((!(a5==1)&&((a6==1)&&((a20==1)&&(input==2))))&&(a12==10))&&!(a4==1))))&&(a0==1)))&&!(a27==1)))){ + a12 = 8; + a3 = 4; + a27 = 1; + a5 = 1; + a4 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((a0==1)&&(((a27==1)&&(((!(a22==1)&&((((((a18==1)&&(input==5))&&(a6==1))&&(a20==1))&&(a4==1))&&!(a5==1)))&&(a3==4))&&(a12==10)))&&(a15==1)))){ + a4 = 0; + a5 = 1; + a15 = 0; + a3 = 7; + a22 = 1; + return -1; + } else if((((a12==9)&&((a20==1)&&((a22==1)&&(((((a6==1)&&((a5==1)&&((a0==1)&&(((a18==1)||!(a18==1))&&(input==4)))))&&!(a27==1))&&!(a15==1))&&(a3==4)))))&&(a4==1))){ + a12 = 8; + a15 = 1; + a18 = 1; + a27 = 1; + return -1; + } else if((!(a15==1)&&(((a20==1)&&(!(a5==1)&&((((a3==8)&&((((input==3)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a12==9))&&(a6==1)))&&(a4==1))&&(a0==1))))&&!(a27==1)))){ + a18 = 0; + a5 = 1; + a22 = 1; + a12 = 12; + a3 = 4; + a27 = 1; + return -1; + } else if((((a18==1)&&(((a5==1)&&(!(a0==1)&&(((a20==1)&&((((!(a27==1)&&(input==5))&&(a3==7))&&(a4==1))&&(a12==9)))&&!(a22==1))))&&(a6==1)))&&!(a15==1))){ + a3 = 4; + a12 = 8; + a27 = 1; + a6 = 0; + a15 = 1; + a0 = 1; + return -1; + } else if(((a3==4)&&((a20==1)&&((a4==1)&&(!(a15==1)&&((((((((input==2)&&((a18==1)||!(a18==1)))&&(a6==1))&&(a22==1))&&(a12==12))&&!(a5==1))&&(a27==1))&&!(a0==1))))))){ + a22 = 0; + a3 = 7; + a18 = 0; + return 26; + } else if((((!(a4==1)&&((a12==11)&&((a3==4)&&(((a18==1)&&((a20==1)&&((((input==3)&&(a6==1))&&!(a15==1))&&!(a22==1))))&&!(a5==1)))))&&!(a27==1))&&!(a0==1))){ + if((a27==1)){ + a3 = 6; + a22 = 1; + a5 = 1; + a6 = 0; + a4 = 1; + a12 = 10; + a0 = 1; + }else{ + a4 = 1; + a3 = 8; + a18 = 0; + a0 = 1; + a5 = 1; + a6 = 0; + a12 = 8; + a27 = 1; + a15 = 1; + } + return -1; + } else if(((a4==1)&&(!(a6==1)&&((((a0==1)&&(!(a18==1)&&((((!(a27==1)&&((input==5)&&(a20==1)))&&!(a22==1))&&!(a15==1))&&(a12==9))))&&(a3==4))&&!(a5==1))))){ + a3 = 8; + a5 = 1; + a22 = 1; + a4 = 0; + a12 = 8; + return -1; + } else if((((!(a27==1)&&((!(a5==1)&&((((((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a12==10))&&!(a4==1))&&(a20==1))&&(a15==1)))&&(a3==8)))&&!(a0==1))&&!(a6==1))){ + a27 = 1; + a22 = 0; + a18 = 1; + a15 = 0; + a3 = 6; + a12 = 12; + return 21; + } else if(((a20==1)&&(((((!(a5==1)&&((a15==1)&&(((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==6))&&(a27==1))))&&!(a4==1))&&(a0==1))&&(a12==8))&&!(a6==1)))){ + if((a18==1)){ + a15 = 0; + a18 = 0; + a12 = 12; + a6 = 1; + a4 = 1; + a27 = 0; + a3 = 8; + a22 = 1; + }else{ + a18 = 1; + a4 = 1; + a3 = 4; + a22 = 1; + a0 = 0; + a12 = 10; + a15 = 0; + } + return 26; + } else if((!(a27==1)&&(!(a0==1)&&((a15==1)&&(((a20==1)&&((a3==7)&&(!(a4==1)&&((a6==1)&&((((input==4)&&((a18==1)||!(a18==1)))&&(a22==1))&&(a5==1))))))&&(a12==10)))))){ + if((a20==1)){ + a18 = 0; + a3 = 4; + a27 = 1; + }else{ + a27 = 1; + a0 = 1; + a3 = 4; + a12 = 8; + a4 = 1; + a18 = 0; + } + return 26; + } else if(((a6==1)&&(!(a18==1)&&((a5==1)&&(!(a15==1)&&((!(a22==1)&&(((a12==10)&&(!(a4==1)&&(((a3==6)&&(input==1))&&(a20==1))))&&!(a0==1)))&&(a27==1))))))){ + a3 = 4; + a12 = 8; + a15 = 1; + a4 = 1; + a22 = 1; + a0 = 1; + a18 = 1; + return -1; + } else if(((((a20==1)&&(((a0==1)&&((!(a5==1)&&(((a3==8)&&((input==6)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))))&&!(a27==1)))&&!(a15==1)))&&(a4==1)))&&!(a6==1))&&(a12==10))){ + a3 = 4; + a5 = 1; + a22 = 1; + a15 = 1; + a6 = 1; + a12 = 8; + a27 = 1; + a18 = 1; + return -1; + } else if((((((a6==1)&&((!(a27==1)&&((!(a0==1)&&((((a3==4)&&(input==5))&&!(a18==1))&&(a20==1)))&&(a12==9)))&&(a15==1)))&&!(a4==1))&&!(a5==1))&&(a22==1))){ + a27 = 1; + a4 = 1; + a3 = 8; + a12 = 8; + a0 = 1; + a5 = 1; + return 21; + } else if((((a3==7)&&((a12==8)&&((!(a15==1)&&(((a5==1)&&(!(a0==1)&&(!(a6==1)&&(!(a18==1)&&((input==6)&&(a22==1))))))&&(a27==1)))&&(a4==1))))&&(a20==1))){ + a0 = 1; + a12 = 11; + a22 = 0; + a3 = 5; + a18 = 1; + a15 = 1; + return 21; + } else if(((a6==1)&&((a12==8)&&((((((a3==8)&&((a0==1)&&(!(a4==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==6)))))&&!(a27==1))&&!(a5==1))&&!(a15==1))&&(a20==1))))){ + a15 = 1; + a3 = 7; + a22 = 1; + a6 = 0; + a12 = 10; + a4 = 1; + a18 = 0; + a27 = 1; + return 21; + } else if(((a6==1)&&(((a18==1)&&(((!(a27==1)&&(!(a5==1)&&((a20==1)&&((a4==1)&&((a22==1)&&((input==2)&&(a12==12)))))))&&!(a15==1))&&(a3==7)))&&(a0==1)))){ + a27 = 1; + a15 = 1; + a5 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((((((a15==1)&&(((((a27==1)&&((((input==1)&&(a6==1))&&!(a22==1))&&!(a18==1)))&&(a20==1))&&!(a0==1))&&!(a5==1)))&&(a12==9))&&(a4==1))&&(a3==8))){ + a12 = 10; + a15 = 0; + a18 = 1; + a0 = 1; + a22 = 1; + a6 = 0; + a3 = 6; + return 26; + } else if(((a20==1)&&(!(a27==1)&&(!(a5==1)&&(!(a15==1)&&(!(a0==1)&&((a4==1)&&(!(a6==1)&&((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==3))&&(a12==11))&&(a3==7)))))))))){ + if((a6==1)){ + a5 = 1; + a22 = 0; + a4 = 0; + a6 = 1; + a3 = 5; + a27 = 1; + a12 = 12; + a18 = 1; + a15 = 1; + }else{ + a18 = 0; + a12 = 8; + a0 = 1; + a3 = 4; + a5 = 1; + a15 = 1; + a27 = 1; + a22 = 1; + } + return -1; + } else if((((a0==1)&&((!(a4==1)&&((!(a15==1)&&(((a12==9)&&(!(a27==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==5))))&&(a6==1)))&&(a5==1)))&&(a3==4)))&&(a20==1))){ + a4 = 1; + a5 = 0; + a27 = 1; + a18 = 1; + a12 = 11; + a3 = 8; + a22 = 1; + return 21; + } else if(((((((a3==6)&&((a18==1)&&(((a15==1)&&((((input==4)&&(a0==1))&&(a6==1))&&(a12==9)))&&!(a27==1))))&&(a4==1))&&(a20==1))&&(a5==1))&&(a22==1))){ + a27 = 1; + a12 = 11; + return 26; + } else if((!(a15==1)&&(!(a0==1)&&((((a12==11)&&((a4==1)&&((a20==1)&&(((((a22==1)&&(input==5))&&(a3==5))&&(a27==1))&&(a5==1)))))&&!(a18==1))&&(a6==1))))){ + a18 = 1; + a15 = 1; + a0 = 1; + a22 = 0; + a5 = 0; + a3 = 8; + a12 = 10; + return 21; + } else if((!(a4==1)&&(!(a27==1)&&(!(a5==1)&&(!(a6==1)&&((a20==1)&&((((a15==1)&&(((input==4)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&(a12==12)))&&(a0==1))&&(a3==6)))))))){ + a27 = 1; + a5 = 1; + a18 = 1; + a22 = 1; + a12 = 10; + a3 = 5; + return -1; + } else if((!(a6==1)&&(((a12==8)&&((((((((((a18==1)&&(a22==1))&&(a3==5))||(((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1)))))&&(input==3))&&!(a15==1))&&(a5==1))&&!(a4==1))&&!(a27==1))&&!(a0==1)))&&(a20==1)))){ + a3 = 4; + a0 = 1; + a4 = 1; + a22 = 0; + a15 = 1; + a18 = 0; + a27 = 1; + return -1; + } else if(((((((((!(a15==1)&&((input==2)&&(((a3==5)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1)))))))&&!(a5==1))&&(a27==1))&&(a20==1))&&(a12==11))&&(a6==1))&&(a4==1))&&!(a0==1))){ + a12 = 8; + a18 = 1; + a22 = 1; + a3 = 4; + a0 = 1; + a5 = 1; + a15 = 1; + return -1; + } else if(((a0==1)&&((((!(a4==1)&&(((((input==2)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))||((a3==8)&&(!(a18==1)&&(a22==1)))))&&(a20==1))&&(a15==1))&&!(a5==1)))&&!(a27==1))&&(a6==1))&&(a12==9)))){ + a3 = 5; + a18 = 1; + a22 = 0; + a12 = 8; + a5 = 1; + a15 = 0; + return 21; + } else if(((!(a4==1)&&(((!(a6==1)&&((a27==1)&&(((a15==1)&&(!(a0==1)&&((a20==1)&&((input==1)&&(a3==7)))))&&!(a22==1))))&&(a5==1))&&(a12==12)))&&(a18==1))){ + a3 = 4; + a0 = 1; + a4 = 1; + a22 = 1; + a5 = 0; + a6 = 1; + return 21; + } else if((((a12==10)&&(!(a22==1)&&((((((a6==1)&&((a3==6)&&(!(a4==1)&&((input==5)&&!(a15==1)))))&&(a20==1))&&(a27==1))&&!(a0==1))&&!(a18==1))))&&(a5==1))){ + a3 = 4; + a15 = 1; + a0 = 1; + a22 = 1; + a12 = 8; + a4 = 1; + a18 = 1; + return -1; + } else if((((((a0==1)&&(!(a6==1)&&((a12==8)&&((a5==1)&&(((input==1)&&(((!(a18==1)&&(a22==1))&&(a3==7))||(((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a22==1)&&(a18==1))))))&&(a15==1))))))&&(a27==1))&&!(a4==1))&&(a20==1))){ + a22 = 1; + a3 = 6; + a15 = 0; + a18 = 1; + a4 = 1; + a0 = 0; + a12 = 10; + return 24; + } else if((!(a6==1)&&((a5==1)&&(((a3==4)&&(((a27==1)&&((a20==1)&&((a0==1)&&((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==4))&&(a12==8)))))&&!(a15==1)))&&!(a4==1))))){ + a3 = 6; + a18 = 0; + a22 = 1; + a12 = 9; + a6 = 1; + return 21; + } else if((((a5==1)&&(((a18==1)&&((a6==1)&&((a0==1)&&((!(a27==1)&&((((input==3)&&(a4==1))&&(a20==1))&&(a22==1)))&&!(a15==1)))))&&(a3==6)))&&(a12==9))){ + a18 = 0; + a3 = 7; + a15 = 1; + a12 = 11; + a5 = 0; + return 21; + } else if((!(a27==1)&&((a12==11)&&((!(a15==1)&&((a5==1)&&((a0==1)&&(((a6==1)&&((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==6))&&(a20==1)))&&(a3==8)))))&&!(a4==1))))){ + a22 = 1; + a27 = 1; + a3 = 4; + a4 = 1; + a18 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if((!(a4==1)&&((a20==1)&&((a6==1)&&((!(a5==1)&&((a12==12)&&(((a0==1)&&((input==6)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1))))))&&(a15==1))))&&!(a27==1)))))){ + a18 = 1; + a22 = 0; + a15 = 0; + a3 = 4; + a0 = 0; + a27 = 1; + a12 = 8; + return 26; + } else if(((a20==1)&&((a4==1)&&((!(a27==1)&&(!(a15==1)&&((!(a6==1)&&(!(a5==1)&&((a12==8)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3)))))&&(a3==8))))&&!(a0==1))))){ + if((a18==1)){ + a18 = 0; + a5 = 1; + a0 = 1; + a3 = 7; + a27 = 1; + a22 = 0; + a15 = 1; + }else{ + a15 = 1; + a22 = 1; + a4 = 0; + a12 = 11; + a18 = 1; + a6 = 1; + a3 = 6; + } + return -1; + } else if(((((((a4==1)&&((a18==1)&&(!(a5==1)&&(((a3==5)&&(((input==6)&&!(a27==1))&&!(a22==1)))&&(a0==1)))))&&(a12==9))&&!(a15==1))&&(a20==1))&&(a6==1))){ + if((a0==1)){ + a0 = 0; + a27 = 1; + a3 = 6; + a12 = 11; + }else{ + a18 = 0; + a3 = 7; + a12 = 10; + a15 = 1; + a27 = 1; + } + return 26; + } else if((((a12==8)&&((a27==1)&&(((((((input==2)&&((((a3==6)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==6)))||(((a22==1)&&(a18==1))&&(a3==7))))&&(a4==1))&&!(a15==1))&&(a6==1))&&!(a5==1))&&(a20==1))))&&(a0==1))){ + a18 = 1; + a12 = 10; + a3 = 6; + a22 = 1; + return 21; + } else if((((((((a27==1)&&(((a12==12)&&((a15==1)&&(!(a22==1)&&(((a18==1)||!(a18==1))&&(input==3)))))&&(a3==8)))&&!(a4==1))&&!(a6==1))&&(a20==1))&&(a5==1))&&!(a0==1))){ + a0 = 1; + a12 = 11; + a3 = 4; + a18 = 1; + return 21; + } else if((((a27==1)&&((((((a3==4)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6))&&!(a0==1))&&(a12==11)))&&(a15==1))&&(a5==1))&&(a20==1))&&!(a6==1)))&&!(a4==1))){ + a0 = 1; + a6 = 1; + a4 = 1; + a18 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if((((((a22==1)&&((a3==6)&&(((a20==1)&&((a15==1)&&(((a18==1)&&((input==1)&&!(a27==1)))&&(a4==1))))&&(a6==1))))&&!(a5==1))&&(a12==10))&&(a0==1))){ + a12 = 9; + a3 = 5; + a22 = 0; + a15 = 0; + return -1; + } else if(((a6==1)&&((!(a15==1)&&((((a22==1)&&(((a5==1)&&((a20==1)&&(((input==2)&&(a12==9))&&(a3==6))))&&!(a4==1)))&&(a27==1))&&(a0==1)))&&(a18==1)))){ + a18 = 0; + a3 = 4; + a12 = 8; + a22 = 0; + a0 = 0; + a15 = 1; + return 26; + } else if(((a20==1)&&(!(a4==1)&&(((a6==1)&&(!(a27==1)&&(!(a15==1)&&(!(a5==1)&&(((input==5)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6))))&&(a0==1))))))&&(a12==10))))){ + a27 = 1; + a12 = 12; + a3 = 7; + a22 = 0; + a5 = 1; + a18 = 0; + return -1; + } else if((((!(a4==1)&&(((((a0==1)&&((((a12==9)&&((a20==1)&&(input==2)))&&(a3==7))&&!(a22==1)))&&(a18==1))&&(a27==1))&&(a5==1)))&&!(a6==1))&&!(a15==1))){ + a12 = 11; + a3 = 8; + return 21; + } else if(((((((!(a22==1)&&((a3==6)&&((a12==9)&&((a4==1)&&(!(a15==1)&&((a0==1)&&(input==4)))))))&&!(a6==1))&&!(a27==1))&&!(a18==1))&&(a5==1))&&(a20==1))){ + a27 = 1; + a18 = 1; + a12 = 12; + return 21; + } else if((((a27==1)&&((a12==10)&&((((a3==4)&&((!(a6==1)&&(((a22==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a4==1)))&&(a0==1)))&&!(a5==1))&&!(a15==1))))&&(a20==1))){ + a5 = 1; + a18 = 1; + a27 = 0; + a3 = 7; + a4 = 0; + return 21; + } else if((((a3==7)&&((((a4==1)&&((((a15==1)&&(!(a22==1)&&(((a0==1)&&(input==1))&&!(a18==1))))&&!(a6==1))&&(a12==9)))&&(a27==1))&&(a5==1)))&&(a20==1))){ + a15 = 0; + a3 = 4; + a6 = 1; + a12 = 12; + return 21; + } else if(((a27==1)&&((!(a0==1)&&((a20==1)&&(!(a5==1)&&((((((input==5)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a3==6))&&(a12==8))&&(a15==1))&&(a6==1)))))&&(a4==1)))){ + a18 = 1; + a22 = 1; + a0 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if(((a20==1)&&((((a0==1)&&(!(a5==1)&&((a15==1)&&(((a12==12)&&((!(a6==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&!(a4==1)))&&(a22==1)))))&&!(a27==1))&&(a3==4)))){ + a18 = 1; + a3 = 6; + a27 = 1; + a12 = 9; + a15 = 0; + a22 = 0; + return 21; + } else if(((((((a3==5)&&((((a27==1)&&(((input==3)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a15==1)))&&!(a0==1))&&(a12==10)))&&(a20==1))&&!(a4==1))&&(a5==1))&&!(a6==1))){ + a6 = 1; + a5 = 0; + a22 = 1; + a18 = 0; + a3 = 6; + return -1; + } else if(((a0==1)&&(((((a3==6)&&((a5==1)&&(((!(a6==1)&&(((a22==1)&&(input==2))&&(a20==1)))&&(a18==1))&&(a12==10))))&&(a4==1))&&!(a27==1))&&(a15==1)))){ + a5 = 0; + a27 = 1; + a12 = 12; + a6 = 1; + a3 = 7; + a15 = 0; + return 26; + } else if(((a12==9)&&((a5==1)&&((a20==1)&&(((a0==1)&&((((a15==1)&&(!(a4==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&(a27==1))))&&(a3==7))&&(a22==1)))&&!(a6==1)))))){ + if((a18==1)){ + a5 = 0; + a12 = 12; + a18 = 0; + a27 = 0; + }else{ + a3 = 6; + a12 = 12; + a18 = 0; + a4 = 1; + a15 = 0; + a5 = 0; + a6 = 1; + } + return 26; + } else if((!(a6==1)&&(((((a15==1)&&((!(a18==1)&&((a20==1)&&((a12==8)&&((a3==6)&&((a4==1)&&(input==2))))))&&(a27==1)))&&(a22==1))&&!(a0==1))&&(a5==1)))){ + a0 = 1; + a3 = 4; + a6 = 1; + a18 = 1; + return -1; + } else if((!(a5==1)&&(!(a18==1)&&(!(a15==1)&&((((!(a27==1)&&(((a6==1)&&(!(a22==1)&&((a3==6)&&(input==4))))&&!(a4==1)))&&(a12==10))&&(a0==1))&&(a20==1)))))){ + a3 = 8; + a6 = 0; + a27 = 1; + a0 = 0; + a4 = 1; + a18 = 1; + a22 = 1; + a15 = 1; + return 26; + } else if(((a3==5)&&((((((((!(a0==1)&&((a5==1)&&(((a18==1)||!(a18==1))&&(input==4))))&&!(a15==1))&&(a20==1))&&(a4==1))&&!(a27==1))&&(a6==1))&&(a12==10))&&!(a22==1)))){ + a3 = 7; + a18 = 0; + a15 = 1; + a27 = 1; + a12 = 12; + return 26; + } else if(((!(a0==1)&&((((a3==4)&&(!(a4==1)&&((a5==1)&&(((a27==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==6)))&&(a6==1)))))&&(a12==8))&&!(a15==1)))&&(a20==1))){ + a4 = 1; + a0 = 1; + a22 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if((!(a5==1)&&((a12==10)&&(((a0==1)&&(((((((((!(a22==1)&&!(a18==1))&&(a4==1))&&(a3==8))&&!(a6==1))||(((((a22==1)&&(a18==1))&&!(a4==1))&&(a3==4))&&(a6==1)))||(((a3==4)&&(!(a4==1)&&((a22==1)&&!(a18==1))))&&(a6==1)))&&(input==4))&&(a15==1))&&!(a27==1)))&&(a20==1))))){ + a3 = 4; + a18 = 0; + a4 = 0; + a5 = 1; + a22 = 0; + a27 = 1; + a6 = 0; + a12 = 11; + return 26; + } else if(((a12==11)&&(!(a27==1)&&((a22==1)&&(((a6==1)&&(!(a18==1)&&(!(a4==1)&&((a3==5)&&((((a15==1)&&(input==3))&&(a5==1))&&(a20==1))))))&&(a0==1)))))){ + a18 = 1; + a4 = 1; + a27 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if((((!(a5==1)&&(((a15==1)&&(((a20==1)&&((a12==9)&&((a4==1)&&((input==2)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))))))&&(a3==5)))&&!(a6==1)))&&!(a0==1))&&(a27==1))){ + a5 = 1; + a22 = 0; + a3 = 7; + a18 = 0; + a12 = 12; + return 26; + } else if((((!(a27==1)&&((a5==1)&&(!(a6==1)&&((a4==1)&&(((a12==9)&&((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==4))&&(a3==6)))&&(a0==1))))))&&(a20==1))&&(a15==1))){ + a22 = 1; + a4 = 0; + a27 = 1; + a18 = 1; + a12 = 11; + a6 = 1; + a3 = 8; + a15 = 0; + return 24; + } else if(((a12==10)&&(((a5==1)&&((a15==1)&&((a18==1)&&((a20==1)&&(((a0==1)&&((!(a4==1)&&((input==5)&&!(a27==1)))&&(a6==1)))&&(a3==5))))))&&(a22==1)))){ + a27 = 1; + a18 = 0; + a22 = 0; + a6 = 0; + a5 = 0; + a4 = 1; + return 26; + } else if(((((a6==1)&&(((((!(a18==1)&&((a5==1)&&((a3==8)&&((input==3)&&(a27==1)))))&&(a12==11))&&!(a15==1))&&!(a0==1))&&!(a22==1)))&&(a4==1))&&(a20==1))){ + a15 = 1; + a22 = 1; + a0 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((a15==1)&&((((!(a5==1)&&((a3==8)&&(((((input==6)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&(a27==1))&&(a12==10))&&(a0==1))))&&!(a6==1))&&(a4==1))&&(a20==1)))){ + a5 = 1; + a22 = 0; + a3 = 5; + a6 = 1; + a0 = 0; + a18 = 0; + a4 = 0; + a12 = 9; + return -1; + } else if((((((a5==1)&&(!(a0==1)&&((a27==1)&&(!(a6==1)&&(!(a15==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2))&&(a12==8)))))))&&(a20==1))&&(a3==5))&&(a4==1))){ + a18 = 0; + a0 = 1; + a5 = 0; + a3 = 7; + a12 = 10; + a4 = 0; + a22 = 0; + return -1; + } else if((((a20==1)&&((a0==1)&&(((((a5==1)&&(!(a15==1)&&((((input==1)&&!(a22==1))&&!(a27==1))&&!(a4==1))))&&(a18==1))&&(a6==1))&&(a12==11))))&&(a3==6))){ + a22 = 1; + a15 = 1; + a3 = 4; + a12 = 8; + a4 = 1; + a27 = 1; + return -1; + } else if((!(a5==1)&&(((a3==4)&&(((a6==1)&&((a0==1)&&((!(a15==1)&&(((a20==1)&&((input==1)&&((a18==1)||!(a18==1))))&&!(a4==1)))&&!(a22==1))))&&!(a27==1)))&&(a12==11)))){ + a18 = 0; + a3 = 5; + a5 = 1; + a0 = 0; + a27 = 1; + a12 = 9; + a22 = 1; + return -1; + } else if((((!(a5==1)&&((a12==11)&&((((a27==1)&&((((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1)))&&(input==5)))&&!(a4==1))&&!(a0==1))))&&(a15==1))&&(a20==1))){ + a3 = 4; + a6 = 1; + a12 = 8; + a22 = 1; + a0 = 1; + a5 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if(((a0==1)&&((a3==8)&&((a20==1)&&((a12==11)&&((!(a27==1)&&(!(a6==1)&&((a5==1)&&((a4==1)&&((input==1)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))))&&(a15==1))))))){ + a22 = 0; + a3 = 7; + a15 = 0; + a18 = 0; + a12 = 10; + a0 = 0; + a27 = 1; + return 21; + } else if((((((a6==1)&&((!(a15==1)&&(((a5==1)&&((a3==7)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==3))))&&(a27==1)))&&(a20==1)))&&(a12==11))&&(a0==1))&&(a4==1))){ + a4 = 0; + a18 = 0; + a15 = 1; + a6 = 0; + a3 = 8; + a22 = 0; + return -1; + } else if(((a20==1)&&((a4==1)&&(!(a27==1)&&((a15==1)&&((!(a0==1)&&((!(a5==1)&&((a12==10)&&((input==1)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))))&&(a3==5)))&&!(a6==1))))))){ + a12 = 8; + a18 = 0; + a0 = 1; + a3 = 8; + a6 = 1; + a22 = 1; + a27 = 1; + a5 = 1; + return 21; + } else if((((a0==1)&&(((!(a4==1)&&((a5==1)&&((!(a27==1)&&((a20==1)&&((a22==1)&&((input==1)&&((a18==1)||!(a18==1))))))&&(a3==5))))&&!(a6==1))&&(a12==12)))&&(a15==1))){ + if((a18==1)){ + a4 = 1; + a15 = 0; + a5 = 0; + a22 = 0; + a3 = 7; + a18 = 1; + }else{ + a12 = 11; + a5 = 0; + a3 = 4; + a6 = 1; + a0 = 0; + a18 = 0; + a4 = 1; + a27 = 1; + } + return -1; + } else if(((((a4==1)&&(!(a0==1)&&((a12==8)&&((((a5==1)&&((input==4)&&(((a3==8)&&((a22==1)&&!(a18==1)))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1)))))))&&!(a6==1))&&!(a27==1)))))&&(a20==1))&&(a15==1))){ + a27 = 1; + a6 = 1; + a22 = 0; + a18 = 0; + a12 = 10; + a4 = 0; + a0 = 1; + a5 = 0; + a3 = 5; + return -1; + } else if((((a20==1)&&(!(a27==1)&&((a3==6)&&((!(a6==1)&&((a0==1)&&((!(a5==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==1)))&&(a12==11))))&&(a4==1)))))&&!(a15==1))){ + a22 = 1; + a18 = 1; + a5 = 1; + a27 = 1; + a6 = 1; + a3 = 4; + a15 = 1; + a12 = 8; + return -1; + } else if(((!(a6==1)&&((((a0==1)&&((a4==1)&&((!(a15==1)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==1)))&&(a12==9))))&&!(a27==1))&&(a20==1)))&&!(a5==1))){ + a12 = 12; + a4 = 0; + a27 = 1; + a3 = 5; + a22 = 0; + a18 = 0; + a6 = 1; + return -1; + } else if((((a12==9)&&((a3==8)&&(!(a27==1)&&((!(a0==1)&&(((a20==1)&&(((a22==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a4==1)))&&(a6==1)))&&(a5==1)))))&&(a15==1))){ + a12 = 8; + a3 = 4; + a5 = 0; + a18 = 0; + a22 = 0; + a0 = 1; + return 24; + } else if((!(a15==1)&&(!(a5==1)&&(((a0==1)&&(((((a20==1)&&((((!(a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1)))))&&(input==2)))&&(a27==1))&&!(a4==1))&&(a12==9)))&&!(a6==1))))){ + a18 = 0; + a6 = 1; + a3 = 7; + a5 = 1; + a27 = 0; + a22 = 0; + return 21; + } else if((!(a0==1)&&(((a18==1)&&((a4==1)&&((a20==1)&&(!(a5==1)&&((a12==12)&&(((a27==1)&&((a3==5)&&((input==3)&&!(a15==1))))&&!(a22==1)))))))&&(a6==1)))){ + a3 = 4; + a4 = 0; + a15 = 1; + a18 = 0; + a0 = 1; + a5 = 1; + a12 = 8; + return 24; + } else if(((a12==11)&&(!(a5==1)&&((((a0==1)&&((a15==1)&&((((!(a6==1)&&(((a4==1)&&(!(a22==1)&&(a18==1)))&&(a3==8)))||(!(a6==1)&&((a3==8)&&((a4==1)&&(!(a22==1)&&!(a18==1))))))||((a6==1)&&((!(a4==1)&&((a18==1)&&(a22==1)))&&(a3==4))))&&(input==2))))&&!(a27==1))&&(a20==1))))){ + a0 = 0; + a18 = 1; + a27 = 1; + a4 = 1; + a6 = 0; + a12 = 10; + a3 = 8; + a22 = 1; + return -1; + } else if(((a12==10)&&(!(a4==1)&&((a27==1)&&(((((a0==1)&&(((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==5))&&(a6==1)))&&(a5==1))&&!(a15==1))&&(a20==1)))))){ + a3 = 6; + a22 = 1; + a4 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if(((a20==1)&&((!(a5==1)&&((a0==1)&&(((a4==1)&&(((a3==5)&&((a15==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==6))))&&!(a27==1)))&&(a6==1))))&&(a12==12)))){ + a3 = 6; + a12 = 10; + a22 = 1; + a5 = 1; + a18 = 1; + a27 = 1; + a4 = 0; + return -1; + } else if((((((a0==1)&&(((((((((a22==1)&&(a18==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a18==1)&&!(a22==1)))))&&(input==3))&&(a27==1))&&(a5==1))&&!(a6==1))&&(a12==9)))&&(a15==1))&&(a4==1))&&(a20==1))){ + a3 = 8; + a18 = 1; + a12 = 12; + a22 = 1; + return 21; + } else if((!(a15==1)&&(((a27==1)&&((((a5==1)&&(!(a6==1)&&((a4==1)&&((a12==10)&&((a18==1)&&((input==6)&&!(a0==1)))))))&&(a3==8))&&(a20==1)))&&(a22==1)))){ + a12 = 11; + a22 = 0; + a0 = 1; + a15 = 1; + a4 = 0; + return -1; + } else if((((a12==11)&&((a3==6)&&((a27==1)&&((a15==1)&&((a20==1)&&((a4==1)&&((((input==3)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a5==1))&&!(a6==1))))))))&&!(a0==1))){ + a3 = 5; + a6 = 1; + a22 = 1; + a4 = 0; + a18 = 1; + return 21; + } else if((((((a27==1)&&((!(a4==1)&&((a20==1)&&((input==2)&&(((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1)))||(!(a6==1)&&(((a22==1)&&!(a18==1))&&(a3==4)))))))&&!(a15==1)))&&(a5==1))&&!(a0==1))&&(a12==10))){ + a12 = 8; + a6 = 1; + a4 = 1; + a3 = 4; + a0 = 1; + a18 = 1; + a15 = 1; + a22 = 1; + return -1; + } else if((((((!(a0==1)&&((!(a5==1)&&((a12==9)&&((((input==1)&&(a20==1))&&(a3==4))&&!(a6==1))))&&(a27==1)))&&(a15==1))&&(a4==1))&&(a22==1))&&(a18==1))){ + a6 = 1; + a5 = 1; + a15 = 0; + a18 = 0; + a22 = 0; + a4 = 0; + a0 = 1; + return 26; + } else if(((a6==1)&&((((a15==1)&&((((a0==1)&&((((input==4)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a27==1))&&(a20==1)))&&!(a5==1))&&(a3==8)))&&(a4==1))&&(a12==11)))){ + a4 = 0; + a12 = 10; + a3 = 6; + a0 = 0; + a18 = 1; + a22 = 0; + return -1; + } else if(((a0==1)&&((a6==1)&&((((((a3==8)&&((((input==3)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a5==1))&&(a12==12)))&&(a20==1))&&(a4==1))&&!(a15==1))&&(a27==1))))){ + a18 = 0; + a6 = 0; + a22 = 1; + a15 = 1; + a4 = 0; + a27 = 0; + a12 = 11; + return 21; + } else if(((!(a15==1)&&(((a20==1)&&((!(a0==1)&&((a12==9)&&((a27==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==3))&&(a3==6)))))&&(a5==1)))&&!(a4==1)))&&!(a6==1))){ + a4 = 1; + a0 = 1; + a22 = 1; + a12 = 8; + a6 = 1; + a18 = 1; + a3 = 7; + return -1; + } else if(((a18==1)&&((a20==1)&&(((!(a15==1)&&((a3==8)&&(!(a6==1)&&(((!(a22==1)&&((a12==12)&&(input==5)))&&(a0==1))&&(a4==1)))))&&!(a5==1))&&!(a27==1))))){ + a12 = 11; + a18 = 0; + a5 = 1; + a3 = 6; + a15 = 1; + a27 = 1; + a0 = 0; + a22 = 1; + return -1; + } else if(((!(a22==1)&&((((a3==4)&&((a15==1)&&(((a0==1)&&(!(a27==1)&&(!(a6==1)&&(((a18==1)||!(a18==1))&&(input==2)))))&&(a12==11))))&&!(a4==1))&&(a20==1)))&&(a5==1))){ + a18 = 0; + a27 = 1; + a6 = 1; + a22 = 1; + a3 = 6; + return 21; + } else if((!(a22==1)&&(((a12==8)&&((((((a20==1)&&((!(a5==1)&&(!(a27==1)&&(input==3)))&&(a0==1)))&&(a15==1))&&(a6==1))&&!(a18==1))&&!(a4==1)))&&(a3==8)))){ + a4 = 1; + a3 = 4; + a5 = 1; + a22 = 1; + a27 = 1; + a18 = 1; + return -1; + } else if(((a5==1)&&(!(a6==1)&&(!(a4==1)&&(((a12==9)&&((a20==1)&&((a0==1)&&((!(a15==1)&&((input==3)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))))&&(a3==6)))))&&!(a27==1)))))){ + a5 = 0; + a27 = 1; + a18 = 1; + a3 = 7; + a6 = 1; + a22 = 0; + a12 = 12; + return 21; + } else if(((a20==1)&&((a0==1)&&((a12==8)&&(((a15==1)&&(!(a5==1)&&((a4==1)&&(((a3==5)&&((input==6)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))&&!(a27==1)))))&&(a6==1)))))){ + a18 = 1; + a22 = 0; + a27 = 1; + a5 = 1; + a3 = 4; + return -1; + } else if(((((a12==10)&&((a20==1)&&((a27==1)&&(((!(a0==1)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==2)))&&!(a5==1))&&(a4==1)))))&&!(a15==1))&&!(a6==1))){ + a0 = 1; + a12 = 8; + a3 = 4; + a6 = 1; + a15 = 1; + a22 = 1; + a18 = 1; + a5 = 1; + return -1; + } else if(((((((a20==1)&&((a15==1)&&((a12==8)&&(((((input==2)&&(a22==1))&&(a0==1))&&!(a6==1))&&!(a4==1)))))&&!(a18==1))&&(a27==1))&&!(a5==1))&&(a3==6))){ + a6 = 1; + a4 = 1; + a18 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if((((a6==1)&&((!(a4==1)&&(((((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4))&&(a5==1))&&(a12==10))&&(a20==1))&&(a15==1))&&!(a0==1)))&&(a27==1)))&&(a3==4))){ + a22 = 1; + a4 = 1; + a18 = 1; + a0 = 1; + a12 = 8; + return -1; + } else if(((a20==1)&&(((a4==1)&&(((a3==4)&&(!(a18==1)&&(((a15==1)&&((a6==1)&&(!(a5==1)&&((a27==1)&&(input==2)))))&&!(a22==1))))&&!(a0==1)))&&(a12==10)))){ + a6 = 0; + a15 = 0; + a27 = 0; + a18 = 1; + a0 = 1; + a12 = 11; + a5 = 1; + return 26; + } else if(((a5==1)&&(!(a0==1)&&(((!(a4==1)&&((((a3==6)&&((a6==1)&&(((input==6)&&(a18==1))&&(a27==1))))&&!(a15==1))&&(a12==10)))&&!(a22==1))&&(a20==1))))){ + a0 = 1; + a4 = 1; + return -1; + } else if(((a12==8)&&((a5==1)&&((a20==1)&&(((((a15==1)&&(((input==5)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==7))))&&!(a6==1)))&&!(a27==1))&&!(a4==1))&&(a0==1)))))){ + a3 = 8; + a22 = 1; + a18 = 1; + a12 = 10; + a6 = 1; + a5 = 0; + return 26; + } else if((((((a27==1)&&((a4==1)&&((a3==7)&&((!(a6==1)&&((a5==1)&&((a18==1)&&(!(a15==1)&&(input==4)))))&&(a20==1)))))&&(a12==10))&&(a0==1))&&(a22==1))){ + a15 = 1; + a3 = 5; + a18 = 0; + a4 = 0; + return -1; + } else if(((((((((!(a5==1)&&((a3==5)&&(((input==4)&&!(a6==1))&&(a22==1))))&&!(a27==1))&&!(a18==1))&&(a15==1))&&(a20==1))&&(a12==8))&&(a0==1))&&!(a4==1))){ + a6 = 1; + a15 = 0; + a3 = 6; + a4 = 1; + a5 = 1; + return -1; + } else if(((!(a4==1)&&((!(a27==1)&&((a12==10)&&((a15==1)&&(((a3==6)&&(!(a5==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==5))))&&(a20==1)))))&&(a6==1)))&&!(a0==1))){ + a5 = 1; + a3 = 5; + a6 = 0; + a18 = 1; + a22 = 1; + a12 = 9; + return 21; + } else if((((a4==1)&&(!(a5==1)&&((!(a0==1)&&((!(a15==1)&&((a12==11)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==3))))&&(a20==1)))&&!(a27==1))))&&(a6==1))){ + if((a15==1)){ + a27 = 1; + a18 = 1; + a12 = 12; + a3 = 5; + a22 = 1; + a0 = 1; + a5 = 1; + a15 = 1; + }else{ + a4 = 0; + a6 = 0; + a3 = 7; + a0 = 1; + a27 = 1; + a15 = 1; + a22 = 1; + a18 = 0; + } + return 21; + } else if((((((a4==1)&&((a12==9)&&((((a15==1)&&((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==2))&&(a3==6)))&&!(a0==1))&&(a20==1))))&&(a27==1))&&(a5==1))&&(a6==1))){ + a3 = 5; + a22 = 1; + a18 = 1; + a0 = 1; + a27 = 0; + return -1; + } else if(((((a3==7)&&((a15==1)&&(((((a6==1)&&((a22==1)&&(!(a27==1)&&((input==1)&&((a18==1)||!(a18==1))))))&&!(a4==1))&&!(a5==1))&&(a20==1))))&&(a12==8))&&!(a0==1))){ + if((a18==1)){ + a5 = 1; + a0 = 1; + a3 = 4; + a22 = 0; + a27 = 1; + a18 = 0; + }else{ + a0 = 1; + a18 = 1; + a3 = 8; + a15 = 0; + a12 = 10; + } + return -1; + } else if((((a5==1)&&(((((a4==1)&&(!(a0==1)&&((((input==4)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&(a3==4))&&!(a6==1))))&&(a12==9))&&(a20==1))&&!(a27==1)))&&!(a15==1))){ + a15 = 1; + a18 = 1; + a27 = 1; + a22 = 0; + a12 = 8; + a3 = 6; + a0 = 1; + return 26; + } else if(((a6==1)&&(!(a27==1)&&(((a12==11)&&(((!(a15==1)&&((a4==1)&&((input==4)&&(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1)))))))&&(a20==1))&&(a5==1)))&&!(a0==1))))){ + a0 = 1; + a15 = 1; + a27 = 1; + a3 = 4; + a12 = 8; + a22 = 0; + a18 = 0; + return 21; + } else if((!(a22==1)&&((a12==11)&&(!(a15==1)&&(((a4==1)&&(!(a27==1)&&(((a18==1)&&((((input==1)&&!(a0==1))&&(a20==1))&&(a3==7)))&&(a6==1))))&&(a5==1)))))){ + a5 = 0; + a3 = 8; + a12 = 10; + a15 = 1; + a18 = 0; + a22 = 1; + a0 = 1; + return -1; + } else if(((a6==1)&&(!(a18==1)&&(((a12==8)&&((a15==1)&&(!(a0==1)&&(((a3==7)&&(((a22==1)&&((input==4)&&(a5==1)))&&!(a27==1)))&&(a4==1)))))&&(a20==1))))){ + a27 = 1; + a3 = 4; + a5 = 0; + a12 = 9; + a0 = 1; + a18 = 1; + return -1; + } else if((!(a27==1)&&(((((((!(a4==1)&&((!(a6==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a22==1)))&&(a5==1))&&!(a0==1))&&(a15==1))&&(a3==4))&&(a20==1))&&(a12==10)))){ + a0 = 1; + a4 = 1; + a27 = 1; + a18 = 1; + a3 = 5; + a12 = 8; + a22 = 0; + return 26; + } else if(((a3==7)&&(((a0==1)&&((((a20==1)&&((a27==1)&&(((!(a5==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a4==1))&&(a12==12))))&&!(a15==1))&&!(a6==1)))&&(a22==1)))){ + a6 = 1; + a22 = 0; + a18 = 0; + a4 = 0; + a12 = 11; + return 26; + } else if(((a12==11)&&(((((((a20==1)&&(((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==1))&&(a27==1)))&&!(a0==1))&&(a6==1))&&(a15==1))&&(a4==1))&&(a5==1)))){ + if((a12==11)){ + a5 = 0; + a4 = 0; + a18 = 0; + a22 = 0; + a3 = 5; + a6 = 0; + }else{ + a18 = 0; + a0 = 1; + a22 = 0; + a4 = 0; + a3 = 7; + a15 = 0; + } + return -1; + } else if(((((((((a6==1)&&((((((a18==1)||!(a18==1))&&(input==2))&&(a22==1))&&!(a0==1))&&(a3==8)))&&!(a15==1))&&(a5==1))&&(a12==10))&&(a4==1))&&(a20==1))&&(a27==1))){ + a18 = 0; + a3 = 6; + a0 = 1; + a5 = 0; + a6 = 0; + return 21; + } else if(((((a6==1)&&(((!(a0==1)&&(((((input==1)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a20==1))&&(a3==6))&&(a5==1)))&&!(a27==1))&&(a4==1)))&&(a12==10))&&(a15==1))){ + a22 = 0; + a6 = 0; + a5 = 0; + a27 = 1; + a3 = 7; + a12 = 8; + a4 = 0; + a18 = 0; + a15 = 0; + return 24; + } else if(((((a15==1)&&(((a27==1)&&(((a5==1)&&(!(a4==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6))&&(a6==1))))&&(a3==4)))&&(a12==12)))&&(a20==1))&&(a0==1))){ + a3 = 8; + a18 = 1; + a4 = 1; + a22 = 1; + a5 = 0; + return 21; + } else if((!(a6==1)&&(!(a27==1)&&(!(a5==1)&&(!(a4==1)&&((((((a15==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==2)))&&(a3==7))&&(a0==1))&&(a12==9))&&(a20==1))))))){ + a5 = 1; + a12 = 8; + a27 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + a4 = 1; + a6 = 1; + return -1; + } else if((((a4==1)&&((a6==1)&&((a20==1)&&(!(a0==1)&&((((a27==1)&&((input==4)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a18==1)&&(a22==1))))))&&!(a15==1))&&(a12==12))))))&&!(a5==1))){ + a12 = 8; + a27 = 0; + a5 = 1; + a0 = 1; + a18 = 0; + a3 = 5; + a22 = 0; + return 26; + } else if((((!(a4==1)&&(!(a5==1)&&((a20==1)&&((a6==1)&&((((((!(a18==1)&&(a22==1))&&(a3==5))||(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5))))&&(input==6))&&!(a0==1))&&!(a15==1))))))&&(a27==1))&&(a12==10))){ + a12 = 9; + a18 = 1; + a15 = 1; + a3 = 4; + a6 = 0; + a0 = 1; + a27 = 0; + a22 = 1; + return -1; + } else if(((a4==1)&&(((a12==12)&&((((a0==1)&&((((a3==8)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a20==1)))&&!(a5==1))&&!(a27==1)))&&(a6==1))&&(a15==1)))&&(a22==1)))){ + a3 = 6; + a12 = 8; + a18 = 0; + a15 = 0; + a4 = 0; + return -1; + } else if((!(a27==1)&&(!(a15==1)&&((a3==5)&&((!(a5==1)&&(!(a4==1)&&((((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==1))&&!(a0==1))&&(a12==8))&&!(a6==1))))&&(a20==1)))))){ + a22 = 0; + a15 = 1; + a0 = 1; + a6 = 1; + a12 = 9; + a18 = 1; + a5 = 1; + return -1; + } else if((((!(a27==1)&&((a6==1)&&(((a4==1)&&(((a3==6)&&(((a20==1)&&((input==6)&&!(a5==1)))&&(a0==1)))&&(a15==1)))&&(a12==8))))&&(a22==1))&&(a18==1))){ + a4 = 0; + a12 = 11; + a3 = 4; + a27 = 1; + return 26; + } else if((((a27==1)&&((a4==1)&&((a18==1)&&(((a15==1)&&(((a5==1)&&((a3==6)&&(((input==3)&&!(a0==1))&&!(a6==1))))&&(a12==12)))&&(a20==1)))))&&!(a22==1))){ + a0 = 1; + a5 = 0; + a4 = 0; + a27 = 0; + a3 = 7; + a6 = 1; + a12 = 8; + return -1; + } else if(((!(a6==1)&&((a0==1)&&(((a3==8)&&(((a22==1)&&((((a27==1)&&((input==4)&&(a20==1)))&&!(a18==1))&&!(a5==1)))&&(a15==1)))&&!(a4==1))))&&(a12==11))){ + a12 = 12; + a18 = 1; + a6 = 1; + a3 = 6; + a5 = 1; + return 26; + } else if((((((!(a6==1)&&(!(a15==1)&&(((a5==1)&&((input==1)&&((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7)))||(((a22==1)&&!(a18==1))&&(a3==7)))))&&!(a4==1))))&&(a27==1))&&(a12==8))&&!(a0==1))&&(a20==1))){ + a18 = 1; + a4 = 1; + a0 = 1; + a15 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if(((a0==1)&&((a20==1)&&((((((!(a4==1)&&((a12==12)&&((!(a5==1)&&(!(a18==1)&&(!(a22==1)&&(a27==1))))&&!(a15==1))))&&(a3==8))&&!(a6==1))||((((a4==1)&&(((((a18==1)&&((a22==1)&&!(a27==1)))&&(a5==1))&&(a15==1))&&(a12==8)))&&(a3==4))&&(a6==1)))||((a6==1)&&(((a4==1)&&(((((!(a27==1)&&(a22==1))&&!(a18==1))&&(a5==1))&&(a15==1))&&(a12==8)))&&(a3==4))))&&(input==6))))){ + a27 = 1; + a6 = 1; + a4 = 1; + a18 = 0; + a15 = 1; + a0 = 0; + a5 = 0; + a22 = 0; + a3 = 6; + a12 = 9; + return 21; + } else if(((((a4==1)&&(((!(a0==1)&&((a27==1)&&(((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==1))&&(a20==1))&&(a5==1))))&&(a12==12))&&!(a15==1)))&&!(a6==1))&&(a3==7))){ + a3 = 5; + a15 = 1; + a22 = 1; + a12 = 8; + a0 = 1; + a18 = 0; + return -1; + } else if((((a20==1)&&(((((((((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))||(((a22==1)&&!(a18==1))&&(a3==7)))&&(input==6))&&!(a27==1))&&!(a6==1))&&!(a4==1))&&(a15==1))&&!(a0==1))&&(a12==9)))&&(a5==1))){ + if((a12==9)){ + a22 = 1; + a3 = 4; + a12 = 10; + a15 = 0; + a5 = 0; + a18 = 0; + }else{ + a0 = 1; + a5 = 0; + a6 = 1; + a27 = 1; + a15 = 0; + a22 = 1; + a4 = 1; + a18 = 1; + a3 = 4; + } + return -1; + } else if((((!(a27==1)&&((a15==1)&&(((a0==1)&&((!(a5==1)&&((input==2)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1))))))&&(a20==1)))&&(a4==1))))&&(a6==1))&&(a12==11))){ + a4 = 0; + a18 = 0; + a22 = 1; + a3 = 7; + a12 = 10; + return -1; + } else if((((((a4==1)&&(((a12==12)&&((((a5==1)&&((a20==1)&&(!(a0==1)&&(input==6))))&&(a22==1))&&(a6==1)))&&!(a18==1)))&&(a3==4))&&!(a27==1))&&(a15==1))){ + if((a27==1)){ + a22 = 0; + a15 = 0; + a4 = 0; + a12 = 11; + a3 = 8; + a27 = 1; + }else{ + a6 = 0; + a0 = 1; + a3 = 8; + a27 = 1; + a18 = 1; + a22 = 0; + a12 = 8; + } + return -1; + } else if(((a20==1)&&((((a3==5)&&((!(a15==1)&&((!(a4==1)&&((a0==1)&&((input==6)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&(a5==1)))&&!(a27==1)))&&(a12==11))&&(a6==1)))){ + a12 = 8; + a4 = 1; + a3 = 6; + a18 = 0; + a15 = 1; + a22 = 0; + a27 = 1; + return -1; + } else if(((a3==8)&&((((!(a4==1)&&((a5==1)&&((((!(a18==1)&&((a12==9)&&(input==3)))&&(a15==1))&&(a6==1))&&(a20==1))))&&(a22==1))&&(a0==1))&&!(a27==1)))){ + a12 = 12; + a3 = 7; + a4 = 1; + a27 = 1; + return 26; + } else if((!(a15==1)&&(((((a3==8)&&(!(a0==1)&&(((a20==1)&&(!(a6==1)&&(!(a4==1)&&((input==6)&&((a18==1)||!(a18==1))))))&&(a12==10))))&&!(a22==1))&&!(a5==1))&&(a27==1)))){ + a4 = 1; + a18 = 0; + a6 = 1; + a22 = 1; + a0 = 1; + a12 = 12; + return 26; + } else if((((a20==1)&&((a12==8)&&((((!(a15==1)&&(((!(a22==1)&&((input==3)&&(a5==1)))&&(a18==1))&&(a3==5)))&&!(a6==1))&&!(a0==1))&&!(a27==1))))&&(a4==1))){ + a0 = 1; + a6 = 1; + a4 = 0; + a18 = 0; + a22 = 1; + a15 = 1; + a27 = 1; + return 24; + } else if(((((a6==1)&&((a20==1)&&(((!(a27==1)&&((a12==9)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==6))))&&!(a15==1))&&(a5==1))))&&!(a0==1))&&(a4==1))){ + a6 = 0; + a15 = 1; + a4 = 0; + a0 = 1; + a22 = 0; + a27 = 1; + a3 = 6; + a18 = 1; + a12 = 12; + return -1; + } else if(((a20==1)&&(((a15==1)&&((((a3==5)&&((!(a5==1)&&((a6==1)&&((input==4)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))))&&!(a4==1)))&&(a12==10))&&!(a0==1)))&&(a27==1)))){ + a4 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + a5 = 1; + a18 = 1; + a0 = 1; + return -1; + } else if(((!(a5==1)&&((a22==1)&&(((a3==7)&&((!(a6==1)&&(((a27==1)&&(((input==6)&&(a20==1))&&!(a15==1)))&&!(a4==1)))&&(a18==1)))&&(a12==11))))&&!(a0==1))){ + a22 = 0; + a0 = 1; + a5 = 1; + a12 = 10; + a15 = 1; + a6 = 1; + return 21; + } else if((((!(a5==1)&&(((a27==1)&&((a3==4)&&((a0==1)&&((((input==3)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a6==1))&&!(a15==1)))))&&(a12==10)))&&(a20==1))&&!(a4==1))){ + a27 = 0; + a3 = 7; + a15 = 1; + a4 = 1; + a22 = 0; + a18 = 1; + return 21; + } else if(((!(a0==1)&&((a4==1)&&((a12==8)&&((a20==1)&&((((a5==1)&&(((input==6)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a15==1)))&&(a27==1))&&(a3==6))))))&&!(a6==1))){ + a3 = 4; + a0 = 1; + a18 = 1; + a6 = 1; + a15 = 1; + a22 = 1; + return -1; + } else if((((((!(a27==1)&&((a12==9)&&(((a5==1)&&((input==2)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7)))))&&(a0==1))))&&(a6==1))&&!(a4==1))&&(a20==1))&&(a15==1))){ + a12 = 8; + a18 = 1; + a4 = 1; + a22 = 1; + a3 = 4; + a27 = 1; + return -1; + } else if(((a27==1)&&(!(a4==1)&&(((((!(a5==1)&&((a12==10)&&((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==5))&&(a3==4))))&&(a20==1))&&(a6==1))&&!(a0==1))&&(a15==1))))){ + a0 = 1; + a15 = 0; + a6 = 0; + a18 = 0; + a22 = 1; + a4 = 1; + a12 = 11; + return 21; + } else if(((a20==1)&&((a12==9)&&(!(a6==1)&&(((!(a27==1)&&(!(a4==1)&&(!(a0==1)&&((input==1)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6)))))))&&!(a5==1))&&!(a15==1)))))){ + if((a22==1)){ + a3 = 4; + a15 = 1; + a12 = 8; + a6 = 1; + a22 = 0; + a18 = 1; + a27 = 1; + a5 = 1; + a4 = 1; + a0 = 1; + }else{ + a4 = 1; + a5 = 1; + a27 = 1; + a0 = 1; + a12 = 8; + a3 = 6; + a22 = 0; + a18 = 1; + a15 = 1; + } + return -1; + } else if(((a12==8)&&(!(a6==1)&&(((!(a27==1)&&(!(a15==1)&&(!(a0==1)&&((a4==1)&&((input==2)&&((((a3==7)&&((a18==1)&&!(a22==1)))||((a3==7)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==8))))))))&&(a20==1))&&!(a5==1))))){ + a5 = 1; + a12 = 11; + a18 = 1; + a22 = 0; + a3 = 6; + return -1; + } else if((!(a6==1)&&(!(a15==1)&&((a3==5)&&(((a5==1)&&((!(a0==1)&&((a12==12)&&((a27==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==2)))))&&(a20==1)))&&!(a4==1)))))){ + a18 = 1; + a3 = 8; + a27 = 0; + a12 = 9; + a15 = 1; + a0 = 1; + a6 = 1; + a22 = 0; + return 26; + } else if(((a27==1)&&(((a0==1)&&(((a12==9)&&(((((a3==7)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==6)))&&(a15==1))&&(a20==1))&&!(a4==1)))&&(a6==1)))&&(a5==1)))){ + a6 = 0; + a22 = 0; + a5 = 0; + a4 = 1; + a12 = 12; + a3 = 8; + a18 = 1; + return 21; + } else if((((a4==1)&&((a18==1)&&(((a20==1)&&((a3==4)&&((a12==11)&&((a22==1)&&(((!(a15==1)&&(input==5))&&!(a0==1))&&!(a27==1))))))&&(a5==1))))&&(a6==1))){ + if((a6==1)){ + a12 = 8; + a22 = 0; + a15 = 1; + a0 = 1; + a27 = 1; + a4 = 0; + a3 = 7; + }else{ + a18 = 0; + a22 = 0; + a12 = 8; + a5 = 0; + a6 = 0; + a15 = 1; + a3 = 7; + } + return -1; + } else if((((a12==8)&&((!(a15==1)&&((!(a0==1)&&(((((((a18==1)||!(a18==1))&&(input==4))&&(a20==1))&&(a5==1))&&(a6==1))&&!(a4==1)))&&(a3==6)))&&!(a27==1)))&&(a22==1))){ + a22 = 0; + a3 = 5; + a18 = 1; + a4 = 1; + a12 = 12; + a27 = 1; + a0 = 1; + return 26; + } else if(((((a12==8)&&((((!(a15==1)&&(!(a27==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==3))&&(a5==1))))&&(a3==7))&&!(a4==1))&&!(a6==1)))&&(a20==1))&&!(a0==1))){ + if((a27==1)){ + a18 = 1; + a27 = 1; + a4 = 1; + a22 = 1; + a0 = 1; + a3 = 5; + a15 = 1; + }else{ + a18 = 0; + a22 = 1; + a0 = 1; + a27 = 1; + a4 = 1; + a15 = 1; + } + return 24; + } else if(((a15==1)&&(!(a22==1)&&((!(a4==1)&&((a3==8)&&((a20==1)&&(!(a0==1)&&(((((input==4)&&((a18==1)||!(a18==1)))&&(a12==12))&&(a27==1))&&(a6==1))))))&&!(a5==1))))){ + a6 = 0; + a12 = 8; + a3 = 4; + a18 = 1; + a4 = 1; + a5 = 1; + a0 = 1; + return -1; + } else if(((a0==1)&&(((((a20==1)&&((a18==1)&&((a15==1)&&((a12==8)&&((a5==1)&&((a22==1)&&((input==2)&&(a6==1))))))))&&!(a27==1))&&(a3==8))&&(a4==1)))){ + a15 = 0; + a4 = 0; + a18 = 0; + a12 = 11; + a3 = 5; + return 26; + } else if(((a6==1)&&((a12==10)&&(((a0==1)&&((!(a27==1)&&((a20==1)&&((a5==1)&&((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==5))&&(a3==4)))))&&(a15==1)))&&!(a4==1))))){ + a15 = 0; + a12 = 8; + a27 = 1; + a22 = 1; + a5 = 0; + a0 = 0; + a3 = 5; + a6 = 0; + a18 = 0; + return 26; + } else if((((a0==1)&&(!(a5==1)&&(!(a15==1)&&((a6==1)&&((a4==1)&&((a20==1)&&((!(a22==1)&&((a27==1)&&(((a18==1)||!(a18==1))&&(input==6))))&&(a12==12))))))))&&(a3==7))){ + a18 = 1; + a4 = 0; + a6 = 0; + a3 = 6; + a12 = 11; + a5 = 1; + a22 = 1; + return 24; + } else if((((a4==1)&&((!(a0==1)&&(!(a6==1)&&(((((input==4)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1)))))&&(a20==1))&&(a15==1))&&!(a27==1))))&&(a5==1)))&&(a12==8))){ + if((a12==12)){ + a3 = 6; + a6 = 1; + a27 = 1; + a18 = 1; + a0 = 1; + a22 = 0; + }else{ + a4 = 0; + a18 = 1; + a5 = 0; + a3 = 7; + a22 = 1; + a12 = 10; + a6 = 1; + } + return 26; + } else if(((a4==1)&&(((a3==6)&&(((((a18==1)&&(!(a5==1)&&((a20==1)&&((a22==1)&&((input==5)&&!(a6==1))))))&&!(a27==1))&&(a0==1))&&!(a15==1)))&&(a12==8)))){ + a27 = 1; + a3 = 4; + a6 = 1; + a5 = 1; + a15 = 1; + return -1; + } else if(((a12==9)&&(!(a4==1)&&((a6==1)&&(!(a27==1)&&((a3==6)&&(((((!(a22==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a20==1))&&(a5==1))&&(a0==1))&&!(a15==1)))))))){ + a18 = 1; + a5 = 0; + a12 = 8; + return 21; + } else if(((a12==8)&&(((((((a6==1)&&(((a3==4)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==5)))&&!(a27==1)))&&(a20==1))&&!(a15==1))&&!(a5==1))&&!(a0==1))&&(a4==1)))){ + a0 = 1; + a3 = 6; + a5 = 1; + a27 = 1; + a22 = 0; + a18 = 0; + a15 = 1; + return -1; + } else if(((!(a22==1)&&((a27==1)&&(((a12==10)&&(((a5==1)&&((!(a15==1)&&(((a4==1)&&(input==6))&&!(a18==1)))&&(a0==1)))&&(a3==6)))&&(a20==1))))&&!(a6==1))){ + a3 = 4; + a18 = 1; + return -1; + } else if((!(a15==1)&&(!(a0==1)&&((a27==1)&&((a6==1)&&(!(a4==1)&&(((a12==12)&&((a5==1)&&((((!(a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1)))))&&(input==1))))&&(a20==1)))))))){ + a3 = 5; + a22 = 0; + a0 = 1; + a12 = 8; + a18 = 0; + a15 = 1; + return -1; + } else if((((((((!(a5==1)&&(!(a4==1)&&((a6==1)&&(((input==6)&&(a15==1))&&!(a0==1)))))&&(a12==12))&&(a20==1))&&(a3==7))&&!(a18==1))&&(a22==1))&&(a27==1))){ + a4 = 1; + a5 = 1; + a12 = 8; + a3 = 5; + a0 = 1; + return 26; + } else if(((a27==1)&&((a3==7)&&(!(a0==1)&&((a12==11)&&((!(a4==1)&&((a5==1)&&((a20==1)&&(!(a6==1)&&((input==5)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))))))&&!(a15==1))))))){ + a0 = 1; + a5 = 0; + a3 = 5; + a22 = 0; + a6 = 1; + a27 = 0; + a15 = 1; + a18 = 0; + return 26; + } else if(((a12==8)&&((((((a5==1)&&((((a6==1)&&((a3==4)&&(!(a4==1)&&(!(a18==1)&&(a22==1)))))||(((((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8))&&!(a6==1))||((a6==1)&&((((a22==1)&&(a18==1))&&!(a4==1))&&(a3==4)))))&&(input==1)))&&(a20==1))&&!(a15==1))&&!(a0==1))&&!(a27==1)))){ + if((a22==1)){ + a15 = 1; + a27 = 1; + a3 = 6; + a4 = 1; + a0 = 1; + a6 = 1; + a18 = 0; + a22 = 1; + }else{ + a0 = 1; + a6 = 0; + a15 = 1; + a4 = 1; + a18 = 1; + a5 = 0; + a22 = 1; + a3 = 7; + } + return 26; + } else if(((a4==1)&&((a15==1)&&((a5==1)&&(((a20==1)&&((((a6==1)&&((input==1)&&(((!(a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5))))))&&(a27==1))&&(a12==9)))&&(a0==1)))))){ + a3 = 4; + a18 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if(((a12==10)&&((((((input==3)&&((((a3==8)&&(!(a4==1)&&((a15==1)&&(!(a18==1)&&!(a22==1)))))&&!(a6==1))||((a6==1)&&((a3==4)&&((a4==1)&&(((a18==1)&&(a22==1))&&!(a15==1)))))))&&!(a27==1))&&(a0==1))&&(a20==1))&&(a5==1)))){ + a4 = 1; + a18 = 1; + a15 = 1; + a3 = 7; + a22 = 1; + a6 = 0; + return -1; + } else if(((a5==1)&&(!(a15==1)&&((a12==11)&&((!(a6==1)&&((a0==1)&&((!(a27==1)&&((((a3==6)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1)))))&&(input==6)))&&(a20==1))))&&(a4==1)))))){ + a3 = 8; + a18 = 0; + a6 = 1; + a5 = 0; + a22 = 1; + a27 = 1; + a12 = 10; + a15 = 1; + return -1; + } else if(((a6==1)&&((((((((a4==1)&&(!(a22==1)&&(((a15==1)&&(input==1))&&(a3==4))))&&(a12==10))&&!(a5==1))&&!(a0==1))&&!(a27==1))&&(a18==1))&&(a20==1)))){ + a4 = 0; + a27 = 1; + a0 = 1; + a12 = 8; + a22 = 1; + a5 = 1; + return 26; + } else if((!(a27==1)&&(((a0==1)&&(((((((a3==6)&&((a4==1)&&((input==2)&&((a18==1)||!(a18==1)))))&&(a15==1))&&(a20==1))&&(a12==9))&&!(a22==1))&&(a5==1)))&&(a6==1)))){ + a18 = 1; + a12 = 8; + a3 = 7; + a5 = 0; + a15 = 0; + a22 = 1; + a4 = 0; + a6 = 0; + return 21; + } else if((((a4==1)&&((a3==5)&&((!(a0==1)&&((!(a22==1)&&((!(a18==1)&&((a12==8)&&((input==3)&&!(a15==1))))&&!(a27==1)))&&!(a5==1)))&&(a20==1))))&&(a6==1))){ + a3 = 6; + a5 = 1; + a12 = 10; + return 26; + } else if((!(a15==1)&&((a5==1)&&(!(a6==1)&&((a0==1)&&((a12==12)&&((a27==1)&&((a4==1)&&((a20==1)&&(((a3==7)&&((input==4)&&((a18==1)||!(a18==1))))&&!(a22==1))))))))))){ + a12 = 11; + a3 = 8; + a18 = 0; + a4 = 0; + a5 = 0; + a15 = 1; + return -1; + } else if((!(a0==1)&&((((a20==1)&&((((a4==1)&&(((a5==1)&&((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a12==8)))&&(a6==1))&&!(a27==1)))&&(a3==4))&&(a15==1)))){ + a0 = 1; + a27 = 1; + a3 = 7; + a18 = 0; + a22 = 0; + a12 = 11; + return 26; + } else if((!(a18==1)&&((((a27==1)&&((a12==11)&&((a22==1)&&(!(a15==1)&&((a6==1)&&((a0==1)&&((a20==1)&&((a4==1)&&(input==4)))))))))&&(a3==6))&&!(a5==1)))){ + a3 = 8; + a18 = 1; + a15 = 1; + a4 = 0; + return -1; + } else if((((((((!(a6==1)&&(((a15==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==1)))&&!(a0==1)))&&!(a27==1))&&!(a4==1))&&(a3==5))&&(a12==11))&&(a5==1))&&(a20==1))){ + a0 = 1; + a22 = 0; + a18 = 0; + a3 = 7; + a27 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if(((((a20==1)&&(((a27==1)&&((a12==11)&&((a3==4)&&(!(a0==1)&&(!(a4==1)&&((input==6)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))))))&&!(a5==1)))&&(a15==1))&&(a6==1))){ + a12 = 8; + a4 = 1; + a22 = 1; + a5 = 1; + a18 = 1; + a0 = 1; + return -1; + } else if(((a4==1)&&((((a20==1)&&(!(a15==1)&&(!(a5==1)&&((a6==1)&&(((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==2))&&(a27==1))&&!(a0==1))))))&&(a3==7))&&(a12==12)))){ + a6 = 0; + a18 = 0; + a27 = 0; + a4 = 0; + a3 = 6; + a12 = 8; + a22 = 1; + return -1; + } else if((((a12==9)&&((a27==1)&&((a20==1)&&(!(a4==1)&&(((a5==1)&&(((input==6)&&((((a18==1)&&(a22==1))&&(a3==6))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))))&&!(a6==1)))&&!(a15==1))))))&&!(a0==1))){ + a6 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a4 = 1; + a0 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if((((a20==1)&&(!(a5==1)&&(!(a0==1)&&(!(a15==1)&&(((a6==1)&&(((a27==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==3)))&&(a4==1)))&&(a12==11))))))&&(a3==5))){ + a6 = 0; + a5 = 1; + a12 = 10; + a22 = 0; + a4 = 0; + a27 = 0; + a18 = 1; + a0 = 1; + return 26; + } else if(((a3==8)&&(!(a27==1)&&((((a18==1)&&(((a4==1)&&(((a0==1)&&(!(a6==1)&&((input==1)&&(a20==1))))&&(a5==1)))&&!(a22==1)))&&!(a15==1))&&(a12==12))))){ + if((a6==1)){ + a4 = 0; + a15 = 1; + a0 = 0; + a22 = 1; + a3 = 4; + a12 = 8; + a27 = 1; + }else{ + a3 = 6; + a22 = 1; + a5 = 0; + a12 = 10; + a18 = 0; + } + return -1; + } else if(((a5==1)&&(((a20==1)&&(((!(a6==1)&&(!(a15==1)&&(!(a4==1)&&((a3==8)&&(((input==4)&&((a18==1)||!(a18==1)))&&!(a22==1))))))&&(a0==1))&&(a12==11)))&&!(a27==1)))){ + a6 = 1; + a12 = 10; + a3 = 4; + a15 = 1; + a27 = 1; + a18 = 0; + return -1; + } else if((((a20==1)&&(!(a4==1)&&((a22==1)&&(!(a5==1)&&((((a12==8)&&(!(a18==1)&&(!(a6==1)&&((input==3)&&(a0==1)))))&&(a15==1))&&(a3==6))))))&&(a27==1))){ + a4 = 1; + a12 = 10; + a3 = 5; + a6 = 1; + a22 = 0; + return 21; + } else if(((((!(a22==1)&&((((a6==1)&&(!(a4==1)&&(((a0==1)&&((input==1)&&!(a15==1)))&&!(a18==1))))&&(a20==1))&&(a3==6)))&&!(a5==1))&&(a12==10))&&!(a27==1))){ + a27 = 1; + a3 = 7; + a18 = 1; + return 21; + } else if((!(a4==1)&&((a6==1)&&((!(a0==1)&&((!(a22==1)&&((a20==1)&&((a12==12)&&(!(a15==1)&&((a3==7)&&(((a18==1)||!(a18==1))&&(input==5)))))))&&(a27==1)))&&!(a5==1))))){ + a5 = 1; + a0 = 1; + a12 = 8; + a18 = 0; + a4 = 1; + a6 = 0; + a15 = 1; + return -1; + } else if((((((((((a4==1)&&((a12==11)&&(((!(a18==1)&&(a22==1))&&(a5==1))&&(a15==1))))&&(a3==4))&&(a6==1))||((((a3==8)&&(((!(a15==1)&&((!(a22==1)&&!(a18==1))&&!(a5==1)))&&(a12==10))&&!(a4==1)))&&!(a6==1))||(((((a12==11)&&((a15==1)&&(((a18==1)&&(a22==1))&&(a5==1))))&&(a4==1))&&(a3==4))&&(a6==1))))&&(input==1))&&(a0==1))&&(a27==1))&&(a20==1))){ + a3 = 8; + a22 = 1; + a4 = 0; + a12 = 10; + a5 = 1; + a6 = 1; + a0 = 0; + a15 = 1; + a18 = 1; + return -1; + } else if(((!(a15==1)&&(!(a6==1)&&((a0==1)&&(!(a22==1)&&((a18==1)&&((((((input==4)&&!(a27==1))&&(a5==1))&&(a3==6))&&(a4==1))&&(a20==1)))))))&&(a12==8))){ + a5 = 0; + a12 = 11; + a27 = 1; + a3 = 8; + a15 = 1; + return 26; + } else if(((a5==1)&&(((!(a27==1)&&((a0==1)&&((((a6==1)&&(((a4==1)&&(!(a15==1)&&((a18==1)&&(a22==1))))&&(a3==4)))||(((((((a18==1)&&!(a22==1))&&(a15==1))&&!(a4==1))&&(a3==8))&&!(a6==1))||(!(a6==1)&&((a3==8)&&(!(a4==1)&&((a15==1)&&(!(a22==1)&&!(a18==1))))))))&&(input==2))))&&(a12==11))&&(a20==1)))){ + a4 = 1; + a27 = 1; + a18 = 1; + a22 = 1; + a6 = 1; + a3 = 4; + a15 = 1; + a12 = 8; + return -1; + } else if((((!(a22==1)&&((((a27==1)&&(((!(a4==1)&&((a5==1)&&((input==6)&&!(a6==1))))&&(a20==1))&&(a0==1)))&&(a3==4))&&!(a15==1)))&&!(a18==1))&&(a12==10))){ + a15 = 1; + a4 = 1; + a3 = 8; + a5 = 0; + return 26; + } else if((!(a6==1)&&(!(a15==1)&&((a3==7)&&((a4==1)&&(!(a0==1)&&((a5==1)&&(((((input==6)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&!(a27==1))&&(a12==10))&&(a20==1))))))))){ + if((a0==1)){ + a27 = 1; + a3 = 8; + a12 = 8; + a18 = 0; + a0 = 1; + a22 = 0; + a15 = 1; + }else{ + a12 = 8; + a18 = 1; + a27 = 1; + a15 = 1; + a4 = 0; + a6 = 1; + a22 = 0; + a0 = 1; + a3 = 4; + } + return 21; + } else if(((a12==9)&&(!(a5==1)&&(!(a0==1)&&(((!(a27==1)&&(((a20==1)&&(((input==5)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&(a3==4)))&&!(a15==1)))&&(a6==1))&&!(a4==1)))))){ + a15 = 1; + a0 = 1; + a27 = 1; + a12 = 8; + a3 = 6; + a22 = 1; + a18 = 0; + a5 = 1; + return -1; + } else if(((a12==10)&&(((a18==1)&&(!(a6==1)&&(!(a4==1)&&((!(a27==1)&&(!(a5==1)&&(((!(a15==1)&&(input==5))&&(a20==1))&&!(a22==1))))&&(a3==7)))))&&!(a0==1)))){ + a27 = 1; + a4 = 1; + a6 = 1; + a22 = 1; + a12 = 8; + a15 = 1; + a3 = 5; + return 24; + } else if((((a5==1)&&(!(a4==1)&&(!(a15==1)&&((((!(a27==1)&&((a3==7)&&((input==4)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))))&&(a0==1))&&(a12==9))&&(a20==1)))))&&(a6==1))){ + a22 = 1; + a4 = 1; + a3 = 4; + a15 = 1; + a27 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if(((a15==1)&&((a3==7)&&((((!(a22==1)&&(((a20==1)&&((((input==4)&&((a18==1)||!(a18==1)))&&(a5==1))&&(a4==1)))&&(a12==10)))&&(a27==1))&&!(a6==1))&&(a0==1))))){ + a3 = 5; + a18 = 1; + return -1; + } else if((((!(a15==1)&&((!(a4==1)&&(((((((input==1)&&(a3==5))&&!(a22==1))&&(a20==1))&&(a27==1))&&(a12==8))&&(a18==1)))&&(a6==1)))&&(a0==1))&&(a5==1))){ + a22 = 1; + a15 = 1; + a12 = 9; + a3 = 8; + return 26; + } else if((!(a5==1)&&((a12==10)&&(((((a27==1)&&(!(a6==1)&&((a0==1)&&(((input==1)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&!(a15==1)))))&&(a3==8))&&(a4==1))&&(a20==1))))){ + a18 = 1; + a15 = 1; + a22 = 0; + a12 = 12; + a3 = 7; + a5 = 1; + a6 = 1; + return 26; + } return calculate_output58(input); + } + + int calculate_output58(int input) { + if((((a27==1)&&((((!(a22==1)&&((a12==12)&&((a15==1)&&(!(a18==1)&&(!(a0==1)&&((input==4)&&(a20==1)))))))&&!(a5==1))&&(a3==7))&&!(a4==1)))&&!(a6==1))){ + a5 = 1; + a4 = 1; + a12 = 8; + a0 = 1; + a3 = 4; + a18 = 1; + return 21; + } else if(((!(a5==1)&&(!(a15==1)&&(((a12==9)&&((((a0==1)&&((input==6)&&((((a18==1)&&(a22==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a22==1)&&!(a18==1)))))))&&(a20==1))&&!(a27==1)))&&!(a6==1))))&&(a4==1))){ + a12 = 8; + a22 = 1; + a3 = 4; + a15 = 1; + a27 = 1; + a6 = 1; + a18 = 1; + a5 = 1; + return -1; + } else if(((a3==7)&&((((!(a6==1)&&(((a27==1)&&((a15==1)&&((a20==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==3)))))&&(a12==9)))&&(a5==1))&&(a4==1))&&!(a0==1)))){ + a6 = 1; + a22 = 1; + a0 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + return -1; + } else if(((!(a0==1)&&(((a6==1)&&((a12==8)&&(!(a5==1)&&((a15==1)&&(!(a4==1)&&((a27==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==4))))))))&&(a3==4)))&&(a20==1))){ + a0 = 1; + a18 = 1; + a5 = 1; + a4 = 1; + a22 = 1; + return -1; + } else if(((a27==1)&&(((a15==1)&&((!(a0==1)&&((!(a6==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2))&&(a12==8))&&(a20==1)))&&!(a5==1)))&&(a4==1)))&&(a3==5)))){ + a5 = 1; + a4 = 0; + a15 = 0; + a0 = 1; + a18 = 1; + a22 = 0; + a27 = 0; + a12 = 11; + a6 = 1; + return 26; + } else if(((!(a0==1)&&((((a12==12)&&((((input==2)&&((((a6==1)&&(((a18==1)&&!(a22==1))&&(a3==8)))||((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8))))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4)))))&&(a27==1))&&(a5==1)))&&(a20==1))&&(a15==1)))&&(a4==1))){ + a4 = 0; + a18 = 0; + a5 = 0; + a12 = 10; + a22 = 0; + a3 = 4; + a0 = 1; + a6 = 0; + return 21; + } else if(((((a3==4)&&((a5==1)&&((a12==12)&&(((((a0==1)&&((input==6)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))&&(a20==1))&&(a15==1))&&(a27==1)))))&&(a6==1))&&(a4==1))){ + a22 = 1; + a4 = 0; + a27 = 0; + a18 = 0; + a6 = 0; + a15 = 0; + a5 = 0; + a3 = 7; + return 26; + } else if(((a0==1)&&((a6==1)&&(((a15==1)&&((((a20==1)&&((a3==6)&&(!(a5==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4)))))&&(a12==11))&&(a27==1)))&&(a4==1))))){ + a12 = 8; + a22 = 1; + a3 = 4; + a5 = 1; + a18 = 1; + return -1; + } else if(((a20==1)&&((a12==11)&&(!(a0==1)&&((a3==8)&&(!(a5==1)&&(((a4==1)&&(((a27==1)&&((input==3)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))))&&(a15==1)))&&(a6==1)))))))){ + a22 = 1; + a0 = 1; + a5 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((((((a27==1)&&((a4==1)&&((((((((a18==1)&&(a22==1))&&(a3==6))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1)))))&&(input==5))&&(a6==1))&&!(a15==1))&&(a0==1))))&&!(a5==1))&&(a12==10))&&(a20==1))){ + a6 = 0; + a3 = 5; + a15 = 1; + a18 = 0; + a22 = 1; + a4 = 0; + return 26; + } else if(((((a27==1)&&((!(a0==1)&&(!(a15==1)&&((a6==1)&&(((input==4)&&((((a18==1)&&(a22==1))&&(a3==5))||(((!(a22==1)&&(a18==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))))&&(a5==1)))))&&!(a4==1)))&&(a12==9))&&(a20==1))){ + a0 = 1; + a22 = 1; + a3 = 7; + a12 = 12; + a18 = 0; + return 26; + } else if((((a18==1)&&((a4==1)&&((a0==1)&&((!(a6==1)&&((((a3==6)&&(((input==3)&&!(a15==1))&&(a27==1)))&&(a12==11))&&(a20==1)))&&!(a5==1)))))&&!(a22==1))){ + a0 = 0; + a6 = 1; + a3 = 7; + a12 = 8; + return -1; + } else if(((!(a27==1)&&((a22==1)&&((((a12==8)&&((a20==1)&&(!(a6==1)&&((a5==1)&&((a0==1)&&(((a18==1)||!(a18==1))&&(input==4)))))))&&(a4==1))&&!(a15==1))))&&(a3==6))){ + a18 = 1; + a27 = 1; + a22 = 0; + a3 = 7; + a12 = 12; + return 21; + } else if(((((!(a6==1)&&((a0==1)&&((a15==1)&&((a4==1)&&(((input==2)&&(((!(a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6)))))&&!(a27==1))))))&&(a20==1))&&(a12==10))&&!(a5==1))){ + a18 = 1; + a3 = 8; + a22 = 0; + a27 = 1; + a15 = 0; + a12 = 11; + return -1; + } else if((!(a27==1)&&(((((a12==9)&&((a20==1)&&(((a4==1)&&((input==3)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))))&&(a5==1))))&&!(a6==1))&&(a15==1))&&(a0==1)))){ + a3 = 6; + a12 = 11; + a18 = 0; + a22 = 0; + a27 = 1; + a15 = 0; + return -1; + } else if((((a27==1)&&(((a15==1)&&((!(a6==1)&&((((!(a4==1)&&((input==4)&&((a18==1)||!(a18==1))))&&!(a0==1))&&(a3==8))&&!(a22==1)))&&(a20==1)))&&(a5==1)))&&(a12==12))){ + a0 = 1; + a3 = 4; + a12 = 10; + a18 = 0; + a15 = 0; + return 26; + } else if((((!(a27==1)&&((!(a0==1)&&(((a12==11)&&((a20==1)&&((a6==1)&&((input==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))))))&&(a3==6)))&&(a5==1)))&&(a4==1))&&(a15==1))){ + a4 = 0; + a22 = 0; + a5 = 0; + a18 = 0; + return 21; + } else if(((a15==1)&&(!(a4==1)&&((a5==1)&&(((a3==5)&&((a6==1)&&((((a20==1)&&((input==1)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))))&&!(a27==1))&&!(a0==1))))&&(a12==11)))))){ + a12 = 8; + a18 = 0; + a15 = 0; + a22 = 0; + a0 = 1; + return -1; + } else if(((a12==9)&&(((((a27==1)&&((!(a6==1)&&((a5==1)&&(!(a4==1)&&((input==1)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))))&&(a3==7)))&&!(a15==1))&&(a20==1))&&!(a0==1)))){ + a18 = 0; + a27 = 0; + a0 = 1; + a22 = 0; + a5 = 0; + return -1; + } else if(((a12==11)&&((a6==1)&&((((a5==1)&&((a4==1)&&(!(a0==1)&&(((((((a18==1)&&!(a22==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7)))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==4))&&!(a27==1)))))&&(a15==1))&&(a20==1))))){ + a3 = 6; + a0 = 1; + a18 = 1; + a12 = 8; + a22 = 0; + a27 = 1; + return -1; + } else if((((!(a5==1)&&(((a12==12)&&(((a6==1)&&((((a22==1)&&((a3==6)&&(input==2)))&&!(a18==1))&&!(a15==1)))&&(a20==1)))&&!(a27==1)))&&(a0==1))&&(a4==1))){ + a27 = 1; + a5 = 1; + a6 = 0; + a3 = 7; + return 26; + } else if(((!(a6==1)&&((a15==1)&&(!(a4==1)&&((a0==1)&&((((((input==1)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&(a27==1))&&(a20==1))&&(a12==9))&&(a3==8))))))&&(a5==1))){ + a22 = 1; + a3 = 7; + a12 = 11; + a18 = 0; + a6 = 1; + return 24; + } else if((!(a6==1)&&((((!(a27==1)&&((a12==11)&&((((input==2)&&((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))||((a3==7)&&(!(a18==1)&&(a22==1)))))&&!(a0==1))&&!(a15==1))))&&!(a4==1))&&(a20==1))&&!(a5==1)))){ + if((a5==1)){ + a22 = 1; + a27 = 1; + a12 = 8; + a15 = 1; + a5 = 1; + a3 = 4; + a4 = 1; + a0 = 1; + a18 = 1; + }else{ + a22 = 1; + a6 = 1; + a15 = 1; + a5 = 1; + a3 = 7; + a18 = 1; + } + return 26; + } else if((((!(a5==1)&&((((((((a12==9)&&((input==4)&&!(a4==1)))&&(a3==4))&&(a6==1))&&!(a27==1))&&(a0==1))&&(a20==1))&&!(a18==1)))&&(a22==1))&&(a15==1))){ + a12 = 10; + a15 = 0; + a5 = 1; + a27 = 1; + return -1; + } else if(((a22==1)&&(!(a27==1)&&(((((a15==1)&&((a6==1)&&((a3==8)&&((a18==1)&&((a0==1)&&((input==6)&&(a12==8)))))))&&(a20==1))&&(a5==1))&&(a4==1))))){ + a27 = 1; + a3 = 6; + a0 = 0; + a12 = 9; + return 26; + } else if(((a12==9)&&((((!(a0==1)&&(!(a27==1)&&((((((input==3)&&((a18==1)||!(a18==1)))&&(a20==1))&&!(a6==1))&&!(a5==1))&&(a3==4))))&&!(a15==1))&&!(a4==1))&&!(a22==1)))){ + if((a22==1)){ + a22 = 1; + a3 = 5; + a15 = 1; + a18 = 1; + a12 = 11; + a27 = 1; + a6 = 1; + }else{ + a5 = 1; + a18 = 1; + a6 = 1; + a27 = 1; + a3 = 5; + a12 = 8; + a0 = 1; + a15 = 1; + } + return 21; + } else if((!(a22==1)&&(((!(a5==1)&&((a3==5)&&(((a20==1)&&((((!(a27==1)&&(input==1))&&(a6==1))&&!(a18==1))&&(a12==11)))&&(a4==1))))&&!(a0==1))&&(a15==1)))){ + if((a4==1)){ + a22 = 1; + a12 = 9; + a4 = 0; + a27 = 1; + a3 = 8; + }else{ + a5 = 1; + a12 = 9; + a18 = 1; + a6 = 0; + a3 = 6; + } + return -1; + } else if(((!(a15==1)&&((a22==1)&&((a20==1)&&(((a5==1)&&((a4==1)&&(((a3==7)&&(((a0==1)&&(input==4))&&!(a6==1)))&&(a12==9))))&&(a27==1)))))&&!(a18==1))){ + a4 = 0; + a3 = 8; + a12 = 12; + a18 = 1; + return 21; + } else if((((((((((!(a18==1)&&(((a6==1)&&(input==5))&&(a12==8)))&&!(a0==1))&&(a22==1))&&(a20==1))&&(a15==1))&&(a3==6))&&!(a4==1))&&!(a27==1))&&(a5==1))){ + if((a3==4)){ + a4 = 1; + a3 = 8; + a27 = 1; + a0 = 1; + a6 = 0; + a22 = 0; + }else{ + a22 = 0; + a27 = 1; + a18 = 1; + a6 = 0; + a0 = 1; + a4 = 1; + } + return -1; + } else if(((((!(a27==1)&&(((a3==4)&&((a0==1)&&((a12==8)&&((a6==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==5))))))&&(a5==1)))&&(a20==1))&&!(a4==1))&&!(a15==1))){ + a15 = 1; + a6 = 0; + a27 = 1; + a18 = 1; + a3 = 6; + a22 = 1; + return 21; + } else if(((a12==8)&&(((a27==1)&&(((a4==1)&&((((((((!(a22==1)&&(a18==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==3))&&(a15==1))&&!(a5==1))&&(a20==1)))&&(a0==1)))&&(a6==1)))){ + a18 = 1; + a3 = 4; + a5 = 1; + a22 = 1; + return -1; + } else if((((((a20==1)&&(!(a27==1)&&((a3==4)&&(!(a5==1)&&(!(a0==1)&&(!(a4==1)&&((input==4)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))))))))&&(a12==10))&&!(a6==1))&&!(a15==1))){ + if((a5==1)){ + a15 = 1; + a27 = 1; + a22 = 0; + a6 = 1; + a4 = 1; + a18 = 0; + a0 = 1; + a5 = 1; + a12 = 8; + a3 = 7; + }else{ + a15 = 1; + a27 = 1; + a3 = 7; + a18 = 0; + a4 = 1; + a22 = 0; + a0 = 1; + } + return 26; + } else if((((a20==1)&&((a12==10)&&(((a4==1)&&(!(a6==1)&&(!(a15==1)&&((a0==1)&&((input==3)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1)))))))))&&!(a27==1))))&&!(a5==1))){ + a15 = 1; + a22 = 1; + a12 = 8; + a6 = 1; + a5 = 1; + a3 = 4; + a18 = 1; + a27 = 1; + return -1; + } else if(((!(a0==1)&&(((a27==1)&&((((a6==1)&&((a20==1)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==1))))&&(a4==1))&&(a12==8)))&&!(a5==1)))&&(a15==1))){ + a6 = 0; + a4 = 0; + a12 = 10; + a18 = 1; + a3 = 6; + a22 = 1; + a0 = 1; + return 26; + } else if(((!(a6==1)&&((a15==1)&&(((a0==1)&&((((a12==9)&&(((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))||((!(a18==1)&&(a22==1))&&(a3==7)))&&(input==1)))&&(a20==1))&&!(a4==1)))&&(a27==1))))&&!(a5==1))){ + a22 = 0; + a12 = 11; + a3 = 8; + a4 = 1; + a18 = 0; + a6 = 1; + return 24; + } else if((!(a0==1)&&((a3==8)&&(!(a6==1)&&(!(a22==1)&&((!(a15==1)&&(((((a12==10)&&((input==1)&&((a18==1)||!(a18==1))))&&(a5==1))&&(a4==1))&&!(a27==1)))&&(a20==1))))))){ + a15 = 1; + a18 = 1; + a12 = 8; + a27 = 1; + a0 = 1; + return 21; + } else if(((a27==1)&&(((a3==4)&&(((((!(a22==1)&&(!(a0==1)&&((a12==9)&&(((a18==1)||!(a18==1))&&(input==1)))))&&(a6==1))&&!(a4==1))&&(a15==1))&&(a20==1)))&&(a5==1)))){ + a12 = 10; + a15 = 0; + a0 = 1; + a3 = 8; + a6 = 0; + a18 = 1; + return 26; + } else if(((a3==7)&&(((((!(a6==1)&&((a27==1)&&((!(a0==1)&&((a12==10)&&((input==2)&&!(a18==1))))&&(a15==1))))&&!(a22==1))&&!(a5==1))&&!(a4==1))&&(a20==1)))){ + a6 = 1; + a5 = 1; + a3 = 4; + a4 = 1; + a18 = 1; + a0 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if(((a22==1)&&(((((!(a15==1)&&((a6==1)&&((a3==8)&&(((a4==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a27==1)))))&&(a12==11))&&!(a5==1))&&!(a0==1))&&(a20==1)))){ + a5 = 1; + a15 = 1; + a18 = 1; + a3 = 4; + a0 = 1; + a12 = 8; + return -1; + } else if((!(a5==1)&&(((a12==8)&&(((a27==1)&&((input==2)&&(((((!(a15==1)&&((a22==1)&&(a18==1)))&&(a4==1))&&(a3==4))&&(a6==1))||((!(a6==1)&&((((a15==1)&&(!(a22==1)&&(a18==1)))&&!(a4==1))&&(a3==8)))||(!(a6==1)&&((a3==8)&&(!(a4==1)&&((a15==1)&&(!(a22==1)&&!(a18==1))))))))))&&(a0==1)))&&(a20==1)))){ + a22 = 0; + a12 = 10; + a6 = 0; + a18 = 1; + a3 = 7; + a15 = 1; + a4 = 1; + return 26; + } else if(((a12==11)&&(((!(a27==1)&&(!(a4==1)&&((a0==1)&&(!(a15==1)&&((((input==5)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&!(a6==1))&&(a3==7))))))&&(a20==1))&&!(a5==1)))){ + a18 = 1; + a4 = 1; + a27 = 1; + a12 = 8; + a6 = 1; + a3 = 4; + a22 = 1; + a5 = 1; + a15 = 1; + return -1; + } else if(((((a3==5)&&(!(a15==1)&&((a20==1)&&((a5==1)&&(!(a4==1)&&((!(a27==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==6)))&&(a6==1)))))))&&(a12==9))&&!(a0==1))){ + a27 = 1; + a12 = 12; + a3 = 4; + a4 = 1; + a6 = 0; + a22 = 1; + a15 = 1; + a18 = 0; + return 26; + } else if((((a3==8)&&((!(a4==1)&&((a6==1)&&((((!(a0==1)&&((input==2)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))&&!(a5==1))&&(a20==1))&&(a12==9))))&&(a27==1)))&&!(a15==1))){ + a12 = 10; + a0 = 1; + a6 = 0; + a18 = 1; + a5 = 1; + a22 = 0; + a15 = 1; + return 26; + } else if(((a3==4)&&((((!(a5==1)&&(!(a6==1)&&((((!(a4==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a20==1))&&(a12==9))&&(a27==1))))&&!(a15==1))&&(a22==1))&&!(a0==1)))){ + if((a27==1)){ + a6 = 1; + a3 = 6; + a15 = 1; + a22 = 0; + a18 = 1; + a12 = 10; + a5 = 1; + a4 = 1; + }else{ + a6 = 1; + a0 = 1; + a15 = 1; + a12 = 10; + a18 = 1; + a3 = 5; + } + return -1; + } else if((!(a15==1)&&((a22==1)&&((a20==1)&&((a0==1)&&((a3==5)&&((a4==1)&&(((a27==1)&&((((input==6)&&((a18==1)||!(a18==1)))&&(a5==1))&&(a12==9)))&&!(a6==1))))))))){ + a18 = 1; + a5 = 0; + a6 = 1; + a3 = 4; + a4 = 0; + a12 = 11; + a15 = 1; + return 26; + } else if((!(a5==1)&&((a20==1)&&(!(a6==1)&&((a4==1)&&(!(a0==1)&&((a27==1)&&((a3==5)&&(((!(a15==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a12==12))&&(a22==1)))))))))){ + if((a22==1)){ + a4 = 0; + a12 = 10; + a18 = 0; + a5 = 1; + a3 = 7; + a15 = 1; + a0 = 1; + }else{ + a22 = 0; + a3 = 8; + a15 = 1; + a4 = 0; + a18 = 1; + a12 = 8; + a0 = 1; + } + return 26; + } else if((!(a5==1)&&(((((((a4==1)&&((((a3==8)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a22==1))&&(a20==1)))&&(a12==12))&&(a0==1))&&(a6==1))&&!(a27==1))&&(a15==1)))){ + a18 = 1; + a5 = 1; + a3 = 4; + a27 = 1; + a12 = 8; + return -1; + } else if(((a15==1)&&(((a20==1)&&((a4==1)&&(((a5==1)&&(!(a27==1)&&((input==2)&&((((a6==1)&&((!(a22==1)&&(a18==1))&&(a3==8)))||((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1)))))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1))))))))&&(a12==9))))&&!(a0==1)))){ + a3 = 5; + a6 = 0; + a12 = 8; + a0 = 1; + a22 = 1; + a18 = 1; + a27 = 1; + return 26; + } else if(((a15==1)&&((a4==1)&&(!(a6==1)&&((a0==1)&&((((((a27==1)&&((input==2)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a12==9))&&(a20==1))&&!(a5==1))&&(a3==5))))))){ + a22 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + a6 = 1; + a18 = 1; + return -1; + } else if((((((a6==1)&&((a12==11)&&((((((((a18==1)||!(a18==1))&&(input==6))&&!(a22==1))&&(a4==1))&&!(a0==1))&&(a27==1))&&!(a5==1))))&&(a20==1))&&(a3==6))&&!(a15==1))){ + a3 = 7; + a12 = 10; + a22 = 1; + a6 = 0; + a18 = 1; + a0 = 1; + return 21; + } else if(((a20==1)&&(((a27==1)&&((a3==7)&&(((!(a4==1)&&(((((input==5)&&(a12==9))&&!(a5==1))&&!(a22==1))&&!(a0==1)))&&(a15==1))&&!(a18==1))))&&!(a6==1)))){ + a0 = 1; + a12 = 11; + a5 = 1; + a18 = 1; + a22 = 1; + a3 = 5; + a6 = 1; + return -1; + } else if(((a12==12)&&(((a20==1)&&(!(a27==1)&&(!(a15==1)&&((a5==1)&&((((a6==1)&&((a3==4)&&((!(a18==1)&&(a22==1))&&!(a4==1))))||(((((a4==1)&&(!(a22==1)&&!(a18==1)))&&(a3==8))&&!(a6==1))||((a6==1)&&((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1))))))&&(input==1))))))&&(a0==1)))){ + a15 = 1; + a3 = 4; + a27 = 1; + a22 = 1; + a4 = 1; + a6 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((((a4==1)&&((a20==1)&&(((!(a27==1)&&(!(a15==1)&&((input==5)&&(((a3==7)&&((a22==1)&&!(a18==1)))||(((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))))))&&(a6==1))&&!(a0==1))))&&(a12==11))&&(a5==1))){ + if((a22==1)){ + a3 = 5; + a12 = 9; + a22 = 0; + a0 = 1; + a18 = 0; + }else{ + a3 = 7; + a22 = 0; + a12 = 8; + a0 = 1; + a18 = 1; + a27 = 1; + a15 = 1; + } + return 21; + } else if((((a15==1)&&((a12==10)&&(!(a0==1)&&(((a27==1)&&((input==2)&&(((((a4==1)&&(!(a22==1)&&!(a18==1)))&&(a3==8))&&!(a6==1))||((a6==1)&&((!(a4==1)&&((a18==1)&&(a22==1)))&&(a3==4))))))&&(a20==1)))))&&(a5==1))){ + a22 = 1; + a0 = 1; + a18 = 0; + a15 = 0; + a4 = 0; + a6 = 0; + a3 = 6; + return -1; + } else if((((((a6==1)&&(((a3==8)&&((a27==1)&&((((input==5)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&!(a0==1))&&(a12==10))))&&(a15==1)))&&(a4==1))&&(a20==1))&&!(a5==1))){ + a0 = 1; + a22 = 1; + a3 = 4; + a5 = 1; + a18 = 1; + a4 = 0; + return -1; + } else if((((a6==1)&&((a3==7)&&(((a0==1)&&((((!(a4==1)&&(((input==5)&&(a20==1))&&(a18==1)))&&(a15==1))&&(a12==8))&&!(a22==1)))&&(a5==1))))&&!(a27==1))){ + a12 = 10; + a4 = 1; + a3 = 5; + a22 = 1; + return 21; + } else if(((a27==1)&&(((a6==1)&&(((!(a0==1)&&(!(a4==1)&&(((input==4)&&((((!(a22==1)&&(a18==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4)))||((a3==5)&&((a22==1)&&(a18==1)))))&&(a12==11))))&&!(a15==1))&&(a5==1)))&&(a20==1)))){ + a3 = 6; + a12 = 10; + a18 = 0; + a22 = 0; + a4 = 1; + a0 = 1; + a6 = 0; + return 21; + } else if((((a4==1)&&(!(a22==1)&&((a18==1)&&(((a0==1)&&((((a6==1)&&(((input==3)&&(a3==5))&&(a27==1)))&&!(a15==1))&&(a12==12)))&&(a20==1)))))&&(a5==1))){ + a12 = 8; + a3 = 4; + a15 = 1; + a22 = 1; + return -1; + } else if(((a3==8)&&((a15==1)&&((a4==1)&&((a27==1)&&((((a0==1)&&(((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==4))&&(a12==10))&&!(a5==1)))&&(a20==1))&&!(a6==1))))))){ + a22 = 0; + a18 = 1; + a3 = 5; + return -1; + } else if((((!(a22==1)&&(((((a6==1)&&(!(a27==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&!(a4==1))&&(a12==11))))&&!(a0==1))&&(a20==1))&&!(a15==1)))&&(a3==8))&&!(a5==1))){ + a6 = 0; + a5 = 1; + a15 = 1; + a18 = 1; + a27 = 1; + a0 = 1; + a4 = 1; + a12 = 8; + a3 = 5; + return -1; + } else if(((a5==1)&&(!(a15==1)&&((a20==1)&&(!(a6==1)&&((a4==1)&&(!(a27==1)&&(((a0==1)&&((input==4)&&(((a3==6)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6))))))&&(a12==10))))))))){ + a22 = 1; + a18 = 1; + a15 = 1; + a6 = 1; + a3 = 4; + a27 = 1; + a12 = 8; + return -1; + } else if(((a27==1)&&(!(a4==1)&&(((a22==1)&&((a3==4)&&(((((a12==10)&&(((a15==1)&&(input==2))&&!(a5==1)))&&!(a6==1))&&(a20==1))&&!(a0==1))))&&!(a18==1))))){ + a6 = 1; + a5 = 1; + a4 = 1; + a0 = 1; + return 21; + } else if((((((!(a6==1)&&((((a22==1)&&(((a0==1)&&((input==5)&&!(a27==1)))&&(a12==8)))&&(a20==1))&&(a15==1)))&&!(a18==1))&&(a4==1))&&(a5==1))&&(a3==4))){ + a22 = 0; + a18 = 1; + a5 = 0; + a27 = 1; + a12 = 11; + a3 = 8; + return 24; + } else if(((a6==1)&&(((a20==1)&&((!(a18==1)&&(((a15==1)&&(((!(a27==1)&&((input==3)&&(a22==1)))&&(a0==1))&&!(a4==1)))&&(a3==5)))&&(a12==8)))&&!(a5==1)))){ + a12 = 12; + a22 = 0; + a3 = 7; + a18 = 1; + a15 = 0; + return 26; + } else if(((!(a4==1)&&((a5==1)&&((a3==7)&&(((a27==1)&&((a20==1)&&(((((a18==1)&&(input==6))&&!(a6==1))&&!(a15==1))&&(a12==8))))&&!(a22==1)))))&&!(a0==1))){ + a0 = 1; + a22 = 1; + a18 = 0; + a12 = 9; + a6 = 1; + a15 = 1; + a5 = 0; + return 24; + } else if((((((a6==1)&&((!(a5==1)&&(((a20==1)&&((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==4))&&!(a27==1)))&&(a3==7)))&&!(a15==1)))&&!(a0==1))&&!(a4==1))&&(a12==9))){ + if((a0==1)){ + a27 = 1; + a3 = 4; + a22 = 1; + a4 = 1; + a0 = 1; + a6 = 0; + a18 = 1; + a15 = 1; + a5 = 1; + a12 = 8; + }else{ + a18 = 1; + a12 = 11; + a0 = 1; + a22 = 1; + a15 = 1; + } + return 26; + } else if(((a15==1)&&(!(a18==1)&&((a20==1)&&((((a4==1)&&(!(a5==1)&&((a6==1)&&((!(a27==1)&&(!(a22==1)&&(input==2)))&&(a0==1)))))&&(a3==6))&&(a12==8)))))){ + a4 = 0; + a6 = 0; + a15 = 0; + a3 = 7; + return 26; + } else if(((a3==8)&&(((a6==1)&&(!(a5==1)&&((a12==8)&&((((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==6))&&(a4==1))&&!(a27==1))&&!(a0==1))&&(a15==1)))))&&(a20==1)))){ + if((a27==1)){ + a18 = 1; + a22 = 0; + a5 = 1; + a3 = 5; + a4 = 0; + a12 = 11; + a27 = 1; + }else{ + a5 = 1; + a22 = 1; + a18 = 0; + a6 = 0; + a3 = 4; + a12 = 10; + } + return -1; + } else if(((!(a6==1)&&((a20==1)&&(((a3==8)&&((a12==10)&&((a5==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6))&&!(a4==1))&&!(a27==1)))))&&(a0==1))))&&(a15==1))){ + a22 = 1; + a3 = 4; + a4 = 1; + a18 = 1; + a27 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if((((a6==1)&&((((a5==1)&&(((a15==1)&&(((input==2)&&((((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))||(((a18==1)&&(a22==1))&&(a3==7))))&&(a12==9)))&&!(a27==1)))&&(a20==1))&&(a4==1)))&&!(a0==1))){ + a18 = 0; + a12 = 8; + a0 = 1; + a4 = 0; + a22 = 0; + a27 = 1; + a3 = 6; + return -1; + } else if((!(a4==1)&&((!(a5==1)&&((a0==1)&&((((!(a15==1)&&((a6==1)&&((a12==11)&&(((a18==1)||!(a18==1))&&(input==3)))))&&!(a22==1))&&(a20==1))&&(a3==4))))&&!(a27==1)))){ + a22 = 1; + a15 = 1; + a4 = 1; + a18 = 1; + a3 = 6; + a12 = 10; + return -1; + } else if(((a0==1)&&(!(a6==1)&&(((a3==7)&&((a12==8)&&(!(a15==1)&&(((a4==1)&&((a27==1)&&((input==4)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&(a20==1)))))&&(a5==1))))){ + a18 = 0; + a4 = 0; + a5 = 0; + a22 = 1; + return 21; + } else if(((a5==1)&&((!(a27==1)&&(!(a6==1)&&((!(a0==1)&&((a3==4)&&(((a4==1)&&((input==3)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a15==1))))&&(a20==1))))&&(a12==10)))){ + if((a4==1)){ + a12 = 8; + a0 = 1; + a18 = 0; + a22 = 0; + a27 = 1; + a3 = 5; + a6 = 1; + }else{ + a3 = 8; + a18 = 0; + a12 = 8; + a27 = 1; + a6 = 1; + a22 = 0; + a0 = 1; + } + return 21; + } else if(((a12==10)&&((a20==1)&&(!(a15==1)&&((a4==1)&&((((((!(a18==1)&&(!(a27==1)&&(input==3)))&&(a5==1))&&!(a22==1))&&(a3==6))&&(a6==1))&&!(a0==1))))))){ + a27 = 1; + a22 = 1; + a6 = 0; + a0 = 1; + a12 = 11; + a5 = 0; + return 26; + } else if((((((a20==1)&&((a5==1)&&(((((((input==1)&&((a18==1)||!(a18==1)))&&(a6==1))&&(a22==1))&&(a12==11))&&!(a4==1))&&(a3==6))))&&!(a15==1))&&!(a27==1))&&(a0==1))){ + if((a3==8)){ + a27 = 1; + a18 = 1; + a12 = 10; + a0 = 0; + a3 = 7; + a15 = 1; + a4 = 1; + }else{ + a3 = 4; + a15 = 1; + a6 = 0; + a18 = 0; + a22 = 0; + a4 = 1; + a12 = 9; + } + return -1; + } else if(((a15==1)&&((a4==1)&&((!(a0==1)&&((a12==11)&&(((a20==1)&&((input==3)&&(((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||(!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1)))))||((((a22==1)&&!(a18==1))&&(a3==4))&&!(a6==1)))))&&(a27==1))))&&!(a5==1))))){ + a0 = 1; + a3 = 4; + a5 = 1; + a18 = 1; + a12 = 8; + a22 = 1; + a6 = 1; + return -1; + } else if(((a3==8)&&((a0==1)&&((a20==1)&&(((((((a5==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==3)))&&!(a27==1))&&(a4==1))&&!(a6==1))&&(a12==10))&&(a15==1)))))){ + if((a22==1)){ + a18 = 1; + a5 = 0; + a0 = 0; + a4 = 0; + a3 = 7; + a6 = 1; + a27 = 1; + a22 = 1; + }else{ + a22 = 0; + a0 = 0; + a12 = 8; + a18 = 0; + a3 = 5; + a6 = 1; + a27 = 1; + } + return 26; + } else if(((!(a15==1)&&(!(a0==1)&&((a12==9)&&((a3==7)&&((!(a5==1)&&(!(a22==1)&&((!(a18==1)&&((a6==1)&&(input==4)))&&!(a4==1))))&&!(a27==1))))))&&(a20==1))){ + a0 = 1; + a5 = 1; + a3 = 8; + a22 = 1; + a27 = 1; + a12 = 8; + a15 = 1; + a18 = 1; + return -1; + } else if(((((!(a4==1)&&(!(a0==1)&&(((!(a27==1)&&((((a3==8)&&((a22==1)&&!(a18==1)))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8))))&&(input==1)))&&(a6==1))&&(a20==1))))&&(a12==8))&&(a15==1))&&(a5==1))){ + a18 = 0; + a6 = 0; + a0 = 1; + a22 = 0; + a4 = 1; + a3 = 8; + a27 = 1; + return -1; + } else if((!(a27==1)&&((a20==1)&&(!(a0==1)&&(((!(a5==1)&&(((a3==7)&&(((input==6)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&!(a6==1)))&&(a15==1)))&&!(a4==1))&&(a12==11)))))){ + if((a4==1)){ + a5 = 1; + a12 = 8; + a6 = 1; + a18 = 1; + a0 = 1; + a22 = 0; + a4 = 1; + a27 = 1; + }else{ + a22 = 1; + a0 = 1; + a6 = 1; + a3 = 4; + a18 = 0; + a5 = 1; + a15 = 0; + a12 = 8; + } + return 26; + } else if((((!(a5==1)&&(!(a22==1)&&(((a0==1)&&((a3==4)&&((((((a18==1)||!(a18==1))&&(input==4))&&(a4==1))&&!(a6==1))&&(a12==10))))&&(a20==1))))&&!(a15==1))&&(a27==1))){ + a15 = 1; + a18 = 1; + a5 = 1; + a6 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if((((((!(a0==1)&&(((a3==6)&&(!(a5==1)&&((((input==3)&&(a22==1))&&(a20==1))&&(a18==1))))&&(a12==11)))&&!(a15==1))&&(a4==1))&&!(a27==1))&&!(a6==1))){ + a0 = 1; + a5 = 1; + a22 = 0; + a27 = 1; + a12 = 8; + a15 = 1; + a3 = 7; + return -1; + } else if(((((((a20==1)&&((a27==1)&&((((((a3==5)&&(input==2))&&(a6==1))&&!(a15==1))&&(a4==1))&&!(a5==1))))&&!(a18==1))&&(a12==11))&&(a22==1))&&(a0==1))){ + a4 = 0; + a3 = 4; + a12 = 10; + a5 = 1; + a15 = 1; + return 26; + } else if(((((a0==1)&&(!(a4==1)&&(!(a6==1)&&(((((a3==6)&&(((input==5)&&!(a18==1))&&!(a27==1)))&&!(a22==1))&&(a12==12))&&(a20==1)))))&&(a5==1))&&(a15==1))){ + a3 = 4; + a4 = 1; + a12 = 9; + a18 = 1; + a5 = 0; + a15 = 0; + return -1; + } else if(((((a3==6)&&(!(a15==1)&&((a6==1)&&(((!(a22==1)&&(((a5==1)&&((a27==1)&&(input==4)))&&(a18==1)))&&!(a0==1))&&(a20==1)))))&&!(a4==1))&&(a12==10))){ + a4 = 1; + a22 = 1; + a15 = 1; + a0 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if((((a20==1)&&((!(a15==1)&&((((((a22==1)&&(((input==1)&&(a0==1))&&!(a27==1)))&&!(a6==1))&&!(a18==1))&&(a5==1))&&(a4==1)))&&(a12==9)))&&(a3==5))){ + a12 = 12; + a27 = 1; + a18 = 1; + a6 = 1; + a22 = 0; + a3 = 4; + return 21; + } else if(((a3==5)&&((a6==1)&&((a12==12)&&((a22==1)&&(!(a27==1)&&((a15==1)&&((a20==1)&&(!(a18==1)&&(!(a5==1)&&((a0==1)&&(!(a4==1)&&(input==3))))))))))))){ + if((a15==1)){ + a0 = 0; + a27 = 1; + a12 = 11; + a15 = 0; + a18 = 1; + a3 = 6; + a5 = 1; + }else{ + a4 = 1; + a3 = 8; + a18 = 1; + a27 = 1; + } + return 21; + } else if(((a20==1)&&((!(a15==1)&&((a18==1)&&((a22==1)&&((a4==1)&&((((a0==1)&&(((input==1)&&(a12==8))&&!(a6==1)))&&(a5==1))&&(a3==6))))))&&(a27==1)))){ + a5 = 0; + a18 = 0; + a22 = 0; + return 21; + } else if(((a15==1)&&((((!(a4==1)&&((a20==1)&&(!(a22==1)&&(((((input==3)&&!(a18==1))&&(a5==1))&&!(a6==1))&&(a27==1)))))&&(a12==12))&&(a3==5))&&(a0==1)))){ + a3 = 7; + a22 = 1; + a12 = 10; + a6 = 1; + return -1; + } else if(((a0==1)&&((a18==1)&&(!(a15==1)&&((a4==1)&&((a5==1)&&(((a6==1)&&(((a27==1)&&((a20==1)&&((a12==11)&&(input==4))))&&(a22==1)))&&(a3==8)))))))){ + a3 = 4; + a12 = 8; + a15 = 1; + return -1; + } else if((((!(a4==1)&&(((a6==1)&&((((a27==1)&&((((input==3)&&!(a22==1))&&(a15==1))&&(a3==5)))&&(a12==10))&&!(a0==1)))&&(a5==1)))&&(a20==1))&&(a18==1))){ + a4 = 1; + a12 = 12; + a0 = 1; + return 21; + } else if(((((a12==11)&&((a20==1)&&((((((!(a18==1)&&((input==4)&&!(a27==1)))&&(a6==1))&&!(a4==1))&&(a3==7))&&!(a22==1))&&(a15==1))))&&(a5==1))&&!(a0==1))){ + if((a27==1)){ + a12 = 8; + a22 = 1; + a4 = 1; + }else{ + a18 = 1; + a0 = 1; + a3 = 5; + a27 = 1; + a12 = 8; + } + return 21; + } else if(((a20==1)&&(((a6==1)&&(!(a4==1)&&(((a3==4)&&(((((a18==1)&&(!(a27==1)&&(input==2)))&&(a22==1))&&(a15==1))&&!(a0==1)))&&(a12==9))))&&!(a5==1)))){ + if((a15==1)){ + a6 = 0; + a3 = 6; + a22 = 0; + a27 = 1; + a12 = 10; + a18 = 0; + a5 = 1; + a0 = 1; + }else{ + a0 = 1; + a27 = 1; + a22 = 0; + a3 = 8; + a5 = 1; + a12 = 8; + a18 = 0; + } + return 21; + } else if(((((a12==11)&&(((a20==1)&&((a3==6)&&((a22==1)&&((((a5==1)&&((input==2)&&(a27==1)))&&!(a18==1))&&!(a15==1)))))&&(a0==1)))&&(a6==1))&&!(a4==1))){ + a12 = 10; + a18 = 1; + a3 = 8; + a6 = 0; + return -1; + } else if(((!(a5==1)&&(((a22==1)&&((a20==1)&&((a15==1)&&(!(a0==1)&&((a6==1)&&(!(a27==1)&&((a3==4)&&((input==6)&&!(a4==1)))))))))&&!(a18==1)))&&(a12==9))){ + a5 = 1; + a12 = 8; + a0 = 1; + a27 = 1; + a3 = 7; + a22 = 0; + a18 = 1; + return -1; + } else if((!(a5==1)&&((a20==1)&&(!(a18==1)&&((a3==6)&&(((a12==10)&&(((((a27==1)&&(!(a22==1)&&(input==2)))&&!(a6==1))&&!(a15==1))&&!(a0==1)))&&!(a4==1))))))){ + a18 = 1; + a6 = 1; + a3 = 4; + a12 = 8; + a4 = 1; + a22 = 1; + a15 = 1; + a0 = 1; + a5 = 1; + return -1; + } else if(((a12==8)&&(!(a5==1)&&((a6==1)&&((!(a15==1)&&((a4==1)&&(!(a27==1)&&(((a20==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==3)))&&(a3==7)))))&&(a0==1)))))){ + a27 = 1; + a15 = 1; + a5 = 1; + a18 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if(((((a0==1)&&((a5==1)&&(((a6==1)&&((a3==6)&&(!(a27==1)&&((a15==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a12==11))))))&&(a22==1))))&&!(a4==1))&&(a20==1))){ + a4 = 1; + a27 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + return -1; + } else if(((a12==8)&&(((((a6==1)&&((!(a5==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==3))&&!(a0==1)))&&(a27==1)))&&!(a4==1))&&(a20==1))&&!(a15==1)))){ + a12 = 10; + a15 = 1; + a6 = 0; + a18 = 1; + a3 = 6; + a0 = 1; + a22 = 1; + return 21; + } else if(((!(a5==1)&&(((a3==7)&&(((a20==1)&&((a6==1)&&(((a0==1)&&((!(a22==1)&&(input==5))&&!(a4==1)))&&(a18==1))))&&(a27==1)))&&(a12==9)))&&(a15==1))){ + a5 = 1; + a3 = 4; + a12 = 8; + a4 = 1; + a22 = 1; + return -1; + } else if(((a20==1)&&((((((a27==1)&&(!(a22==1)&&((a5==1)&&((a15==1)&&(!(a18==1)&&((a0==1)&&(input==5)))))))&&(a3==6))&&(a6==1))&&(a4==1))&&(a12==9)))){ + a15 = 0; + a12 = 11; + a3 = 4; + a18 = 1; + a5 = 0; + a4 = 0; + return 26; + } else if(((((a5==1)&&((a15==1)&&(((a4==1)&&((a20==1)&&(((input==4)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))||((a3==6)&&(!(a18==1)&&(a22==1)))))&&(a6==1))))&&(a27==1))))&&(a12==10))&&!(a0==1))){ + a6 = 0; + a0 = 1; + a15 = 0; + a18 = 1; + a3 = 4; + a22 = 0; + return -1; + } else if((!(a15==1)&&((((a12==9)&&((a3==6)&&(((((((input==5)&&(a18==1))&&!(a4==1))&&!(a22==1))&&(a20==1))&&(a6==1))&&(a27==1))))&&!(a5==1))&&!(a0==1)))){ + if((a3==6)){ + a18 = 0; + a3 = 8; + a6 = 0; + }else{ + a18 = 0; + a3 = 4; + a0 = 1; + a12 = 12; + } + return -1; + } else if((!(a0==1)&&(((a3==5)&&(!(a4==1)&&(((a27==1)&&((a20==1)&&((((input==2)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a15==1))&&!(a6==1))))&&(a12==12))))&&(a5==1)))){ + a18 = 0; + a0 = 1; + a15 = 0; + a22 = 0; + a3 = 8; + a12 = 11; + return 26; + } else if((!(a15==1)&&((a4==1)&&(((a5==1)&&((!(a22==1)&&((((a6==1)&&((a20==1)&&(((a18==1)||!(a18==1))&&(input==4))))&&(a3==4))&&(a0==1)))&&(a12==9)))&&!(a27==1))))){ + a22 = 1; + a15 = 1; + a12 = 8; + a27 = 1; + a18 = 1; + return -1; + } else if(((a6==1)&&((a3==6)&&((a5==1)&&((!(a4==1)&&((a27==1)&&(((a12==10)&&(((a22==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&!(a0==1)))&&(a20==1))))&&!(a15==1)))))){ + a15 = 1; + a4 = 1; + a0 = 1; + a22 = 0; + a5 = 0; + a18 = 0; + a12 = 11; + return 21; + } else if((((a20==1)&&(!(a6==1)&&((a12==12)&&((a3==4)&&(((!(a15==1)&&(!(a4==1)&&(!(a22==1)&&(!(a5==1)&&(input==3)))))&&(a27==1))&&(a18==1))))))&&!(a0==1))){ + a4 = 1; + a3 = 5; + a15 = 1; + a12 = 8; + a5 = 1; + a0 = 1; + return -1; + } else if((((a0==1)&&((a4==1)&&(((((((((a6==1)&&((!(a22==1)&&(a18==1))&&(a3==8)))||(((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1)))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1)))&&(input==5))&&(a12==12))&&!(a27==1))&&!(a5==1))&&(a20==1))))&&!(a15==1))){ + a12 = 10; + a6 = 0; + a22 = 0; + a3 = 5; + a4 = 0; + a18 = 0; + return 21; + } else if((((a0==1)&&(((a4==1)&&(((a20==1)&&(((((input==3)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&!(a5==1))&&!(a6==1))&&!(a15==1)))&&(a12==10)))&&(a3==8)))&&!(a27==1))){ + a3 = 4; + a5 = 1; + a18 = 1; + a22 = 1; + a15 = 1; + a12 = 8; + a6 = 1; + a27 = 1; + return -1; + } else if(((a27==1)&&((((a5==1)&&((!(a4==1)&&(((((a0==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a15==1))&&(a6==1))&&(a20==1)))&&(a3==8)))&&(a22==1))&&(a12==12)))){ + a15 = 0; + a18 = 1; + a12 = 11; + a3 = 7; + return -1; + } else if(((a20==1)&&(((a3==5)&&(!(a15==1)&&(!(a5==1)&&((((!(a22==1)&&(!(a4==1)&&((input==4)&&(a12==11))))&&(a6==1))&&!(a18==1))&&!(a0==1)))))&&!(a27==1)))){ + a5 = 1; + a4 = 1; + a27 = 1; + a3 = 7; + a0 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if(((!(a22==1)&&(!(a15==1)&&((((a27==1)&&((a20==1)&&(((a4==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a5==1)))&&(a12==11))))&&(a3==6))&&!(a6==1))))&&!(a0==1))){ + a6 = 1; + a15 = 1; + a12 = 8; + a22 = 1; + a18 = 1; + a0 = 1; + a3 = 4; + return -1; + } else if((((a27==1)&&(!(a5==1)&&((((a0==1)&&(!(a4==1)&&((a3==4)&&(!(a6==1)&&(((a18==1)&&(input==2))&&(a12==10))))))&&!(a22==1))&&(a20==1))))&&(a15==1))){ + a3 = 5; + return 21; + } else if((!(a4==1)&&(((a6==1)&&((((!(a5==1)&&(((a3==6)&&((input==6)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))&&(a20==1)))&&(a15==1))&&(a12==8))&&!(a27==1)))&&(a0==1)))){ + a6 = 0; + a4 = 1; + a27 = 1; + a18 = 1; + a22 = 1; + a15 = 0; + a5 = 1; + a3 = 4; + a12 = 12; + return -1; + } else if((!(a0==1)&&((a27==1)&&(((!(a18==1)&&((a5==1)&&(((a3==8)&&(((a22==1)&&((input==6)&&!(a4==1)))&&!(a6==1)))&&(a20==1))))&&(a12==8))&&!(a15==1))))){ + a6 = 1; + a0 = 1; + a15 = 1; + a12 = 11; + a5 = 0; + a3 = 5; + return 24; + } else if(((a12==11)&&(!(a27==1)&&((a3==4)&&((a6==1)&&((!(a15==1)&&((!(a5==1)&&(((a20==1)&&((input==1)&&((a18==1)||!(a18==1))))&&!(a0==1)))&&(a4==1)))&&!(a22==1))))))){ + a4 = 0; + a15 = 1; + a5 = 1; + a3 = 6; + a18 = 1; + a0 = 1; + return 21; + } else if(((((((a0==1)&&(((a20==1)&&(!(a4==1)&&((a12==8)&&((input==5)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))))))&&(a15==1)))&&(a27==1))&&!(a5==1))&&!(a6==1))&&(a3==7))){ + a3 = 4; + a12 = 10; + a18 = 0; + a22 = 1; + a4 = 1; + return 26; + } else if(((a20==1)&&(!(a15==1)&&((a4==1)&&((a3==4)&&(((a5==1)&&((a22==1)&&(!(a18==1)&&(!(a27==1)&&((a6==1)&&((input==6)&&(a0==1)))))))&&(a12==10))))))){ + a12 = 8; + a15 = 1; + a18 = 1; + a27 = 1; + return -1; + } else if((!(a5==1)&&((a3==8)&&((a20==1)&&((a0==1)&&((((a4==1)&&((((input==4)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a6==1))&&!(a15==1)))&&(a27==1))&&(a12==10))))))){ + a27 = 0; + a18 = 1; + a22 = 1; + a3 = 7; + a6 = 1; + a15 = 1; + return 26; + } else if(((a20==1)&&((a0==1)&&((a5==1)&&(((a12==8)&&(((!(a27==1)&&(!(a4==1)&&((input==2)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&(a3==4))&&!(a15==1)))&&(a6==1)))))){ + a5 = 0; + a27 = 1; + a3 = 6; + a4 = 1; + a12 = 10; + a22 = 1; + a18 = 0; + return -1; + } else if(((!(a0==1)&&((a27==1)&&((a5==1)&&((a20==1)&&(!(a4==1)&&(((a3==8)&&(((input==3)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a12==12)))&&!(a15==1)))))))&&(a6==1))){ + a15 = 1; + a12 = 9; + a22 = 0; + a18 = 0; + a6 = 0; + a3 = 6; + return -1; + } else if((((!(a5==1)&&(((a12==12)&&(((a0==1)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==6))&&(a27==1))&&!(a15==1)))&&(a20==1)))&&(a6==1)))&&(a3==8))&&!(a4==1))){ + a3 = 4; + a5 = 1; + a15 = 1; + a18 = 1; + a4 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if((((a5==1)&&(((((a12==12)&&((((a4==1)&&((input==6)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))&&!(a6==1))&&(a20==1)))&&(a27==1))&&(a3==8))&&!(a0==1)))&&!(a15==1))){ + a22 = 0; + a6 = 1; + a0 = 1; + a18 = 1; + a3 = 6; + a15 = 1; + a12 = 8; + return -1; + } else if((!(a4==1)&&(!(a5==1)&&(((a12==9)&&(((a15==1)&&(((a27==1)&&((input==5)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))))&&(a0==1)))&&(a6==1)))&&(a20==1))))){ + a4 = 1; + a18 = 1; + a0 = 0; + a22 = 1; + a5 = 1; + a12 = 11; + a3 = 7; + a6 = 0; + return 21; + } else if(((!(a4==1)&&(((a12==10)&&((a3==7)&&(!(a6==1)&&((a27==1)&&((a15==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a5==1)))))))&&(a20==1)))&&(a0==1))){ + a18 = 1; + a4 = 1; + a22 = 0; + a3 = 6; + return -1; + } else if(((a27==1)&&(((a22==1)&&(((!(a4==1)&&(((((a6==1)&&((a3==6)&&(input==1)))&&(a18==1))&&(a12==9))&&!(a5==1)))&&!(a0==1))&&(a15==1)))&&(a20==1)))){ + if((a6==1)){ + a5 = 1; + a15 = 0; + a18 = 0; + a12 = 10; + a4 = 1; + }else{ + a3 = 7; + a12 = 11; + a15 = 0; + a0 = 1; + a6 = 0; + a5 = 1; + } + return 24; + } else if(((((a20==1)&&(!(a15==1)&&(((((!(a5==1)&&((!(a27==1)&&(input==6))&&(a0==1)))&&!(a6==1))&&(a4==1))&&(a3==6))&&(a12==11))))&&!(a22==1))&&!(a18==1))){ + a15 = 1; + a3 = 4; + a6 = 1; + a12 = 8; + a22 = 1; + a5 = 1; + a27 = 1; + a18 = 1; + return -1; + } else if(((((a12==10)&&((((a20==1)&&((a4==1)&&(!(a6==1)&&(((a18==1)&&(!(a5==1)&&(input==3)))&&(a3==4)))))&&(a22==1))&&!(a0==1)))&&(a15==1))&&!(a27==1))){ + if((a3==7)){ + a3 = 8; + a12 = 9; + a0 = 1; + a4 = 0; + a22 = 0; + }else{ + a6 = 1; + a5 = 1; + a4 = 0; + a27 = 1; + a12 = 8; + a18 = 0; + a3 = 8; + } + return 21; + } else if(((a12==8)&&((((a4==1)&&(((a15==1)&&(!(a0==1)&&((input==3)&&(((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))))))&&(a27==1)))&&(a5==1))&&(a20==1)))){ + if((a22==1)){ + a12 = 12; + a3 = 4; + a6 = 1; + a18 = 1; + a22 = 1; + }else{ + a22 = 0; + a0 = 1; + a5 = 0; + a4 = 0; + a6 = 1; + a3 = 5; + a18 = 0; + } + return 26; + } else if((((a3==5)&&((a20==1)&&(((!(a0==1)&&(((a15==1)&&(!(a5==1)&&((input==5)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))))&&(a12==11)))&&!(a6==1))&&(a4==1))))&&!(a27==1))){ + a12 = 8; + a27 = 1; + a0 = 1; + a18 = 1; + a3 = 6; + a5 = 1; + a22 = 1; + a6 = 1; + return 26; + } else if((((a4==1)&&((((a20==1)&&(!(a5==1)&&(!(a15==1)&&(((a3==8)&&((a6==1)&&((a18==1)&&(input==2))))&&(a22==1)))))&&(a12==10))&&(a27==1)))&&(a0==1))){ + a6 = 0; + a3 = 7; + a5 = 1; + a4 = 0; + a22 = 0; + a15 = 1; + return 26; + } else if(((((!(a6==1)&&(((a3==5)&&((!(a4==1)&&(!(a22==1)&&(!(a0==1)&&((input==4)&&(a20==1)))))&&(a15==1)))&&(a12==8)))&&!(a18==1))&&!(a27==1))&&!(a5==1))){ + a5 = 1; + a22 = 1; + a12 = 9; + a3 = 8; + a15 = 0; + a0 = 1; + a4 = 1; + a6 = 1; + return -1; + } else if(((a0==1)&&((((a20==1)&&((((a5==1)&&((input==6)&&((((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1)))))&&(a27==1))&&(a12==11)))&&!(a4==1))&&(a15==1)))){ + a18 = 0; + a22 = 0; + a15 = 0; + a3 = 5; + a12 = 10; + a6 = 0; + a5 = 0; + return -1; + } else if((!(a4==1)&&(((!(a15==1)&&((a5==1)&&(((((input==3)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||((a3==6)&&((a22==1)&&(a18==1)))))&&!(a0==1))&&(a6==1))&&!(a27==1))))&&(a20==1))&&(a12==10)))){ + if((a20==1)){ + a0 = 1; + a3 = 5; + a15 = 1; + a22 = 1; + a12 = 8; + a18 = 0; + a27 = 1; + a4 = 1; + }else{ + a0 = 1; + a12 = 8; + a22 = 0; + a15 = 1; + a6 = 0; + a4 = 1; + a18 = 1; + a3 = 5; + a27 = 1; + } + return -1; + } else if(((a4==1)&&((a27==1)&&(((!(a0==1)&&((a15==1)&&((a12==12)&&(((input==6)&&(((a3==6)&&((a22==1)&&(a18==1)))||(((a3==5)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==5)))))&&!(a5==1)))))&&(a20==1))&&(a6==1))))){ + if((a6==1)){ + a3 = 4; + a27 = 0; + a18 = 0; + a12 = 11; + a6 = 0; + a22 = 0; + a0 = 1; + }else{ + a22 = 1; + a3 = 6; + a12 = 9; + a27 = 0; + a4 = 0; + a5 = 1; + a18 = 1; + } + return -1; + } else if(((a5==1)&&(!(a4==1)&&((((((((((input==3)&&((a18==1)||!(a18==1)))&&(a15==1))&&!(a22==1))&&(a0==1))&&(a12==12))&&(a20==1))&&(a6==1))&&(a3==7))&&!(a27==1))))){ + if((a27==1)){ + a4 = 1; + a3 = 5; + a22 = 1; + a0 = 0; + a18 = 1; + a6 = 0; + a27 = 1; + a12 = 11; + }else{ + a18 = 0; + a12 = 11; + a3 = 5; + a4 = 1; + } + return -1; + } else if((!(a15==1)&&((((((a27==1)&&(!(a0==1)&&((a3==4)&&(!(a6==1)&&((input==3)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))))))&&(a12==9))&&!(a4==1))&&(a5==1))&&(a20==1)))){ + a12 = 8; + a15 = 1; + a6 = 1; + a18 = 1; + a22 = 1; + a0 = 1; + a4 = 1; + return -1; + } else if((!(a5==1)&&((a3==7)&&(!(a6==1)&&((a4==1)&&((!(a0==1)&&(((a27==1)&&((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==2))&&(a15==1)))&&(a12==10)))&&(a20==1))))))){ + a0 = 1; + a18 = 0; + a12 = 11; + a4 = 0; + a3 = 8; + a22 = 1; + a5 = 1; + a15 = 0; + a6 = 1; + return -1; + } else if((!(a4==1)&&((a20==1)&&((((((a3==7)&&(((a12==12)&&((((a18==1)||!(a18==1))&&(input==3))&&(a6==1)))&&!(a22==1)))&&!(a5==1))&&(a0==1))&&(a27==1))&&(a15==1))))){ + a18 = 1; + a5 = 1; + a4 = 1; + return 26; + } else if((((!(a4==1)&&(!(a15==1)&&(((a12==12)&&(!(a0==1)&&(((input==6)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1)))))&&(a27==1))))&&!(a6==1))))&&(a20==1))&&(a5==1))){ + a22 = 1; + a0 = 1; + a4 = 1; + a15 = 1; + a6 = 1; + a12 = 8; + a18 = 0; + a3 = 6; + return 24; + } else if(((!(a5==1)&&((((!(a0==1)&&((((input==3)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1)))))&&(a20==1))&&(a6==1)))&&!(a15==1))&&!(a4==1))&&(a27==1)))&&(a12==10))){ + a3 = 4; + a4 = 1; + a12 = 8; + a18 = 1; + a5 = 1; + a15 = 1; + a22 = 1; + a0 = 1; + return -1; + } else if((((!(a0==1)&&(((!(a15==1)&&((((((a20==1)&&(input==3))&&!(a27==1))&&(a18==1))&&(a12==11))&&!(a6==1)))&&(a4==1))&&!(a22==1)))&&(a3==6))&&(a5==1))){ + a15 = 1; + a22 = 1; + a18 = 0; + a0 = 1; + a27 = 1; + return -1; + } else if((((a20==1)&&((((a12==11)&&(((((((a3==7)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1)))))&&(input==6))&&!(a6==1))&&(a4==1))&&(a15==1)))&&!(a27==1))&&(a5==1)))&&!(a0==1))){ + a18 = 1; + a12 = 10; + a4 = 0; + a15 = 0; + a3 = 7; + a0 = 1; + a22 = 1; + return 21; + } else if(((a15==1)&&(((a5==1)&&((a20==1)&&(((!(a27==1)&&(((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==5))&&!(a6==1)))&&!(a4==1))&&(a0==1))))&&(a12==10)))){ + a18 = 1; + a3 = 6; + a5 = 0; + a22 = 1; + a27 = 1; + return 21; + } else if((((!(a0==1)&&(!(a5==1)&&(!(a4==1)&&(!(a27==1)&&((a15==1)&&(((input==4)&&(((a3==8)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7)))))&&(a12==9)))))))&&(a20==1))&&(a6==1))){ + if((a4==1)){ + a3 = 6; + a22 = 0; + a0 = 1; + a12 = 8; + a27 = 1; + a4 = 1; + a5 = 1; + a18 = 1; + }else{ + a18 = 0; + a3 = 5; + a15 = 0; + a5 = 1; + a22 = 1; + } + return -1; + } else if((((a12==10)&&((a15==1)&&((((((input==3)&&(((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))))&&(a4==1))&&(a20==1))&&!(a0==1))&&!(a5==1))))&&(a27==1))){ + a0 = 1; + a6 = 1; + a12 = 8; + a3 = 4; + a5 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((a22==1)&&((((a0==1)&&((((!(a6==1)&&(!(a5==1)&&((a3==4)&&((input==6)&&(a20==1)))))&&(a12==11))&&!(a27==1))&&(a4==1)))&&(a18==1))&&(a15==1)))){ + a27 = 1; + a6 = 1; + a5 = 1; + a12 = 8; + return -1; + } else if((!(a4==1)&&((((a18==1)&&(((a15==1)&&((a27==1)&&(((a6==1)&&(((a3==8)&&(input==2))&&!(a22==1)))&&(a20==1))))&&(a12==8)))&&(a5==1))&&!(a0==1)))){ + a5 = 0; + a22 = 1; + a12 = 11; + a3 = 5; + return -1; + } else if(((a20==1)&&(!(a5==1)&&((a3==5)&&(((a12==10)&&(((a6==1)&&(!(a0==1)&&((a22==1)&&((a27==1)&&((input==4)&&(a4==1))))))&&!(a15==1)))&&(a18==1)))))){ + a18 = 0; + a3 = 7; + a5 = 1; + a0 = 1; + return -1; + } else if(((a12==10)&&((!(a4==1)&&(((!(a27==1)&&((!(a5==1)&&((!(a0==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&!(a6==1)))&&(a22==1)))&&(a15==1))&&(a3==4)))&&(a20==1)))){ + a4 = 1; + a18 = 1; + a22 = 0; + a27 = 1; + a5 = 1; + a12 = 8; + a3 = 8; + a0 = 1; + return 26; + } else if((((!(a4==1)&&((((a3==7)&&((a18==1)&&((((a20==1)&&((input==2)&&(a6==1)))&&!(a5==1))&&!(a22==1))))&&(a27==1))&&(a15==1)))&&(a12==12))&&!(a0==1))){ + a3 = 6; + a6 = 0; + a27 = 0; + a12 = 10; + return 26; + } else if((((a20==1)&&((((((((a3==7)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==2)))&&(a12==8))&&!(a5==1))&&!(a15==1))&&!(a0==1))&&(a4==1))&&!(a27==1)))&&(a6==1))){ + a15 = 1; + a3 = 4; + a18 = 1; + a4 = 0; + a0 = 1; + a22 = 1; + a5 = 1; + a27 = 1; + return -1; + } else if((((((a12==10)&&(!(a27==1)&&((a0==1)&&(((a22==1)&&(((a20==1)&&(!(a4==1)&&(input==3)))&&(a18==1)))&&!(a15==1)))))&&!(a5==1))&&(a6==1))&&(a3==5))){ + a5 = 1; + a27 = 1; + a12 = 8; + a15 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if((((((!(a5==1)&&(!(a0==1)&&((a15==1)&&(((((a4==1)&&(input==1))&&(a20==1))&&(a27==1))&&(a3==5)))))&&(a12==10))&&(a22==1))&&!(a18==1))&&!(a6==1))){ + a6 = 1; + a22 = 0; + a0 = 1; + a12 = 9; + a3 = 6; + return 26; + } else if((((a5==1)&&(((((a27==1)&&((((((a3==6)&&(input==2))&&(a4==1))&&!(a0==1))&&(a22==1))&&(a20==1)))&&(a15==1))&&(a6==1))&&(a12==9)))&&(a18==1))){ + a18 = 0; + a12 = 10; + a4 = 0; + a27 = 0; + a0 = 1; + a15 = 0; + a6 = 0; + return 21; + } else if((!(a27==1)&&(((a0==1)&&((((!(a4==1)&&(!(a5==1)&&((a20==1)&&((a3==7)&&(((a18==1)||!(a18==1))&&(input==3))))))&&(a12==12))&&!(a22==1))&&!(a6==1)))&&(a15==1)))){ + a12 = 8; + a4 = 1; + a18 = 0; + return -1; + } else if(((!(a0==1)&&(((a5==1)&&((a27==1)&&((input==1)&&(((((a3==8)&&(((a15==1)&&(!(a22==1)&&(a18==1)))&&!(a4==1)))&&!(a6==1))||(!(a6==1)&&((a3==8)&&(!(a4==1)&&((!(a18==1)&&!(a22==1))&&(a15==1))))))||((a6==1)&&((a3==4)&&((a4==1)&&(((a18==1)&&(a22==1))&&!(a15==1)))))))))&&(a12==11)))&&(a20==1))){ + a12 = 10; + a22 = 0; + a6 = 1; + a27 = 0; + a18 = 0; + a4 = 0; + a3 = 5; + a15 = 1; + a0 = 1; + return 21; + } else if((((a6==1)&&(((a12==9)&&((((a3==8)&&(((a20==1)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==2)))&&!(a4==1)))&&(a27==1))&&(a15==1)))&&(a5==1)))&&(a0==1))){ + a3 = 4; + a5 = 0; + a18 = 1; + a22 = 1; + a12 = 12; + return 21; + } else if(((a22==1)&&((a12==9)&&((a18==1)&&(!(a4==1)&&((((!(a27==1)&&((a0==1)&&((a15==1)&&((a6==1)&&(input==3)))))&&(a3==6))&&(a20==1))&&!(a5==1))))))){ + a4 = 1; + a3 = 4; + a18 = 0; + a6 = 0; + a12 = 12; + a27 = 1; + return 21; + } else if(((!(a27==1)&&((a20==1)&&((a5==1)&&(((a3==7)&&(!(a22==1)&&((a4==1)&&((a12==10)&&((((a18==1)||!(a18==1))&&(input==6))&&!(a15==1))))))&&!(a6==1)))))&&(a0==1))){ + a22 = 1; + a4 = 0; + a15 = 1; + a5 = 0; + a3 = 8; + a18 = 1; + a6 = 1; + a27 = 1; + return 21; + } else if((!(a15==1)&&((((((a0==1)&&(((!(a4==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3)))&&(a5==1))&&!(a27==1)))&&(a12==12))&&(a6==1))&&(a3==6))&&(a20==1)))){ + a22 = 1; + a15 = 1; + a12 = 10; + a18 = 0; + a27 = 1; + a6 = 0; + a3 = 8; + return 26; + } else if(((((a20==1)&&(((((a6==1)&&((a3==6)&&(!(a18==1)&&((!(a22==1)&&(input==3))&&(a15==1)))))&&(a27==1))&&(a5==1))&&(a12==12)))&&!(a0==1))&&(a4==1))){ + a22 = 1; + a4 = 0; + a3 = 8; + a6 = 0; + a0 = 1; + return 24; + } else if((((a4==1)&&((((a12==10)&&((a0==1)&&((a20==1)&&((a15==1)&&(((((a22==1)&&(a18==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==5))))&&(input==4))))))&&(a6==1))&&(a27==1)))&&(a5==1))){ + a5 = 0; + a18 = 1; + a3 = 7; + a15 = 0; + a22 = 1; + return 21; + } else if((((a12==12)&&((((a4==1)&&(!(a22==1)&&(((!(a18==1)&&(!(a0==1)&&((input==2)&&(a3==7))))&&(a5==1))&&!(a15==1))))&&(a27==1))&&(a20==1)))&&!(a6==1))){ + a6 = 1; + a3 = 5; + a27 = 0; + a12 = 11; + a5 = 0; + a4 = 0; + return 21; + } else if((!(a22==1)&&((a20==1)&&((a27==1)&&(!(a18==1)&&(!(a4==1)&&((((a0==1)&&((!(a5==1)&&((input==4)&&(a3==4)))&&(a12==9)))&&(a15==1))&&!(a6==1)))))))){ + a0 = 0; + a12 = 10; + a18 = 1; + a3 = 8; + a4 = 1; + return 26; + } else if((!(a15==1)&&(!(a27==1)&&((a4==1)&&(!(a6==1)&&((((((input==3)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))||(((a22==1)&&!(a18==1))&&(a3==5))))&&!(a0==1))&&(a12==9))&&(a5==1))&&(a20==1))))))){ + a27 = 1; + a15 = 1; + a22 = 0; + a3 = 7; + a18 = 0; + a12 = 8; + a0 = 1; + a6 = 1; + return 26; + } else if((!(a6==1)&&(!(a27==1)&&((((!(a5==1)&&((!(a15==1)&&(((((a18==1)||!(a18==1))&&(input==3))&&(a0==1))&&!(a4==1)))&&(a22==1)))&&(a3==7))&&(a20==1))&&(a12==10))))){ + a18 = 0; + a5 = 1; + a22 = 0; + a3 = 6; + a15 = 1; + a6 = 1; + a12 = 12; + return 26; + } else if((!(a15==1)&&(((a20==1)&&((((((((a18==1)&&((a0==1)&&(input==3)))&&(a3==5))&&!(a4==1))&&(a5==1))&&(a12==12))&&(a27==1))&&(a6==1)))&&!(a22==1)))){ + a18 = 0; + a12 = 11; + a4 = 1; + a0 = 0; + return 21; + } else if(((a4==1)&&((((((!(a15==1)&&((((a22==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&!(a6==1))&&(a20==1)))&&(a3==5))&&!(a5==1))&&(a0==1))&&(a27==1))&&(a12==12)))){ + a12 = 8; + a22 = 0; + a4 = 0; + a0 = 0; + a18 = 1; + a15 = 1; + a6 = 1; + a3 = 8; + a5 = 1; + return 26; + } else if(((((a20==1)&&(((a0==1)&&(((((((a3==4)&&((a22==1)&&!(a18==1)))&&!(a6==1))||(((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))))&&(input==2))&&(a5==1))&&!(a15==1)))&&!(a27==1)))&&(a12==11))&&!(a4==1))){ + a3 = 4; + a12 = 8; + a27 = 1; + a18 = 1; + a4 = 1; + a22 = 1; + a6 = 1; + a15 = 1; + return -1; + } else if((!(a18==1)&&(!(a4==1)&&(!(a15==1)&&(!(a5==1)&&(((a6==1)&&(((((!(a27==1)&&(input==4))&&!(a22==1))&&(a0==1))&&(a12==8))&&(a3==8)))&&(a20==1))))))){ + a3 = 6; + a27 = 1; + a12 = 11; + return 26; + } else if(((a20==1)&&(((a0==1)&&((((((a15==1)&&((a22==1)&&((a3==6)&&(!(a27==1)&&(input==1)))))&&(a4==1))&&(a6==1))&&!(a18==1))&&(a5==1)))&&(a12==11)))){ + a6 = 0; + a12 = 12; + a27 = 1; + a22 = 0; + a15 = 0; + return 26; + } else if(((a5==1)&&(((a20==1)&&((((a12==9)&&(((a3==7)&&((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==4))&&(a0==1)))&&(a15==1)))&&(a4==1))&&!(a27==1)))&&!(a6==1)))){ + a18 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + a27 = 1; + a6 = 1; + return -1; + } else if((((((!(a4==1)&&(((((a27==1)&&((a20==1)&&((input==1)&&!(a22==1))))&&!(a6==1))&&!(a15==1))&&!(a0==1)))&&(a5==1))&&(a3==8))&&(a18==1))&&(a12==11))){ + a4 = 1; + a6 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + a15 = 1; + a0 = 1; + return -1; + } else if(((!(a6==1)&&((a15==1)&&(((!(a5==1)&&((a12==9)&&(!(a4==1)&&(((input==4)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a20==1)))))&&(a3==5))&&!(a27==1))))&&!(a0==1))){ + a18 = 0; + a12 = 12; + a3 = 8; + a6 = 1; + a15 = 0; + a0 = 1; + a22 = 1; + return -1; + } else if((!(a27==1)&&(((((a0==1)&&(!(a6==1)&&((!(a4==1)&&((a12==9)&&((input==1)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))))&&(a20==1))))&&(a15==1))&&!(a5==1))&&(a3==5)))){ + a18 = 1; + a12 = 8; + a27 = 1; + a4 = 1; + a3 = 4; + a22 = 1; + a5 = 1; + a6 = 1; + return -1; + } else if((!(a6==1)&&((a3==8)&&((a4==1)&&((a5==1)&&(((a20==1)&&(((a0==1)&&(((a22==1)&&((input==4)&&((a18==1)||!(a18==1))))&&!(a15==1)))&&(a12==9)))&&!(a27==1))))))){ + a3 = 4; + a6 = 1; + a18 = 1; + a27 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if(((a4==1)&&((!(a18==1)&&((a3==8)&&((!(a0==1)&&(!(a22==1)&&((a12==10)&&(!(a5==1)&&((a27==1)&&((a20==1)&&(input==3)))))))&&(a6==1))))&&!(a15==1)))){ + a0 = 1; + a12 = 11; + a3 = 7; + return 21; + } else if(((a27==1)&&(((a3==7)&&((!(a5==1)&&((!(a0==1)&&(!(a6==1)&&((a12==11)&&((input==5)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))))))&&!(a15==1)))&&(a4==1)))&&(a20==1)))){ + a0 = 1; + a3 = 4; + a5 = 1; + a4 = 0; + a18 = 0; + a22 = 1; + a6 = 1; + return 24; + } else if((((a0==1)&&(((a5==1)&&((a12==10)&&((((a20==1)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==4)))&&(a6==1))&&!(a15==1))))&&!(a4==1)))&&(a27==1))){ + a6 = 0; + a3 = 8; + a5 = 0; + a12 = 9; + a18 = 1; + a22 = 1; + a27 = 0; + return 26; + } else if(((!(a15==1)&&(((!(a27==1)&&((a20==1)&&((a6==1)&&((a4==1)&&(!(a0==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==3)))))))&&(a12==10))&&!(a5==1)))&&(a3==4))){ + a15 = 1; + a5 = 1; + a0 = 1; + a12 = 8; + a18 = 0; + a6 = 0; + a27 = 1; + a3 = 8; + a22 = 0; + return -1; + } else if(((((a4==1)&&(((a20==1)&&((!(a15==1)&&(((input==3)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5))))&&(a12==10)))&&!(a5==1)))&&(a27==1)))&&!(a6==1))&&!(a0==1))){ + a0 = 1; + a12 = 9; + a15 = 1; + a27 = 0; + a18 = 0; + a3 = 7; + a6 = 1; + a22 = 1; + return -1; + } else if(((a4==1)&&((!(a5==1)&&(((a20==1)&&((((((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a0==1))&&(a12==8))&&(a27==1))&&(a15==1)))&&(a3==5)))&&!(a6==1)))){ + a18 = 1; + a3 = 7; + a4 = 0; + a22 = 0; + return 24; + } else if((((((a3==6)&&((a15==1)&&(!(a4==1)&&(!(a5==1)&&(((a0==1)&&((a27==1)&&((input==5)&&!(a18==1))))&&(a12==8))))))&&(a22==1))&&!(a6==1))&&(a20==1))){ + a3 = 5; + a12 = 10; + a6 = 1; + a4 = 1; + return 26; + } else if(((a18==1)&&((((a5==1)&&((a20==1)&&(((((a4==1)&&((a6==1)&&((a3==5)&&(input==1))))&&(a15==1))&&(a22==1))&&!(a0==1))))&&(a12==9))&&!(a27==1)))){ + if((a4==1)){ + a0 = 1; + a4 = 0; + a5 = 0; + a12 = 10; + }else{ + a12 = 10; + a22 = 0; + a3 = 7; + a5 = 0; + a0 = 1; + a18 = 0; + a4 = 0; + a6 = 0; + } + return -1; + } else if(((!(a6==1)&&((a0==1)&&((a12==9)&&((a15==1)&&(((((input==2)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))||(((a22==1)&&!(a18==1))&&(a3==8))))&&!(a4==1))&&(a5==1))&&(a20==1))))))&&!(a27==1))){ + a22 = 1; + a3 = 4; + a4 = 1; + a18 = 1; + a27 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if((((a5==1)&&((((a12==11)&&((a27==1)&&((!(a6==1)&&((a4==1)&&((a20==1)&&(((a18==1)||!(a18==1))&&(input==1)))))&&!(a22==1))))&&(a15==1))&&(a3==6)))&&(a0==1))){ + a12 = 10; + a3 = 8; + a27 = 0; + a6 = 1; + a18 = 1; + a5 = 0; + a15 = 0; + a22 = 1; + return 26; + } else if(((!(a6==1)&&(!(a15==1)&&((a5==1)&&((a20==1)&&((a12==10)&&((((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==3))&&!(a0==1))&&!(a4==1)))))))&&(a27==1))){ + a0 = 1; + a6 = 1; + a15 = 1; + a18 = 1; + a4 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + return -1; + } else if((!(a4==1)&&((((((((!(a15==1)&&((a22==1)&&((input==5)&&!(a5==1))))&&(a18==1))&&!(a6==1))&&(a12==10))&&(a20==1))&&(a3==7))&&!(a0==1))&&(a27==1)))){ + a5 = 1; + a3 = 5; + a4 = 1; + a12 = 11; + a18 = 0; + return -1; + } else if((((a12==10)&&(!(a4==1)&&(((((((!(a0==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&!(a27==1))&&(a15==1))&&(a3==6))&&!(a5==1))&&(a20==1))&&!(a6==1))))&&(a22==1))){ + a12 = 8; + a18 = 0; + a27 = 1; + a5 = 1; + a3 = 4; + a4 = 1; + a0 = 1; + return 21; + } else if((!(a0==1)&&((a20==1)&&((a4==1)&&(((!(a5==1)&&((a3==5)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==5))&&!(a27==1))&&!(a6==1))))&&(a12==8))&&!(a15==1)))))){ + a15 = 1; + a22 = 0; + a0 = 1; + a18 = 1; + a5 = 1; + a3 = 6; + a27 = 1; + return 21; + } else if(((!(a18==1)&&(!(a15==1)&&(((a4==1)&&(((a0==1)&&(((a3==7)&&(((input==4)&&(a20==1))&&!(a27==1)))&&!(a6==1)))&&!(a22==1)))&&(a5==1))))&&(a12==8))){ + a6 = 1; + a3 = 4; + a12 = 11; + return 24; + } else if(((a3==8)&&((((a5==1)&&(!(a0==1)&&(!(a15==1)&&((a12==8)&&((a27==1)&&((a18==1)&&((a20==1)&&((input==3)&&(a22==1)))))))))&&!(a6==1))&&!(a4==1)))){ + a12 = 11; + a15 = 1; + a5 = 0; + a0 = 1; + a3 = 6; + a18 = 0; + a22 = 0; + return 21; + } else if(((((a5==1)&&((((((!(a27==1)&&((a20==1)&&(((a18==1)||!(a18==1))&&(input==5))))&&(a12==8))&&(a4==1))&&(a0==1))&&(a15==1))&&!(a22==1)))&&(a3==4))&&(a6==1))){ + a18 = 0; + a12 = 12; + a3 = 7; + a22 = 1; + a5 = 0; + a27 = 1; + a6 = 0; + a15 = 0; + a4 = 0; + return -1; + } else if((((!(a5==1)&&((a4==1)&&((((a20==1)&&(((((a3==5)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1)))))&&(input==5))&&(a15==1)))&&!(a0==1))&&(a27==1))))&&(a6==1))&&(a12==11))){ + a12 = 9; + a3 = 6; + a27 = 0; + a4 = 0; + a0 = 1; + a22 = 1; + a5 = 1; + a18 = 0; + a15 = 0; + return 26; + } else if(((((((!(a27==1)&&((((a3==7)&&(((a4==1)&&(input==3))&&!(a6==1)))&&(a12==9))&&(a22==1)))&&(a15==1))&&!(a0==1))&&!(a5==1))&&(a18==1))&&(a20==1))){ + a5 = 1; + a27 = 1; + a3 = 6; + a12 = 8; + a22 = 0; + a0 = 1; + return 26; + } else if((!(a5==1)&&(((a15==1)&&(!(a6==1)&&(!(a27==1)&&(((((input==2)&&((((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==5)))||((a3==6)&&((a22==1)&&(a18==1)))))&&(a0==1))&&(a12==8))&&(a4==1)))))&&(a20==1)))){ + a18 = 0; + a27 = 1; + a12 = 12; + a3 = 4; + a5 = 1; + a4 = 0; + a22 = 1; + a15 = 0; + return 21; + } else if(((a5==1)&&(((a3==6)&&((!(a18==1)&&(((a12==11)&&(!(a0==1)&&(((!(a27==1)&&(input==3))&&!(a15==1))&&(a4==1))))&&!(a22==1)))&&!(a6==1)))&&(a20==1)))){ + a27 = 1; + a3 = 7; + a12 = 8; + a0 = 1; + a4 = 0; + a6 = 1; + a15 = 1; + a22 = 1; + return 24; + } else if((((a12==10)&&((a5==1)&&(((a6==1)&&((((((a20==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a4==1))&&(a22==1))&&(a3==4))&&!(a27==1)))&&(a15==1))))&&(a0==1))){ + a3 = 6; + a6 = 0; + a18 = 0; + a12 = 11; + a15 = 0; + a5 = 0; + a27 = 1; + return 26; + } else if((((((a3==7)&&(!(a6==1)&&((a0==1)&&(((((input==4)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&!(a4==1))&&(a15==1))&&!(a5==1)))))&&(a27==1))&&(a20==1))&&(a12==12))){ + if((a12==10)){ + a3 = 5; + a18 = 0; + a0 = 0; + a22 = 0; + a12 = 9; + a4 = 1; + }else{ + a4 = 1; + a22 = 0; + a27 = 0; + a6 = 1; + a18 = 1; + a5 = 1; + } + return 21; + } else if(((a6==1)&&((a0==1)&&((!(a15==1)&&(((a3==8)&&((((a4==1)&&(((a12==10)&&(input==3))&&!(a5==1)))&&(a22==1))&&(a18==1)))&&(a27==1)))&&(a20==1))))){ + a12 = 8; + a3 = 4; + a5 = 1; + a15 = 1; + return -1; + } else if(((a12==11)&&((a0==1)&&(((a20==1)&&((a5==1)&&(!(a15==1)&&(!(a6==1)&&((!(a27==1)&&((input==1)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&(a3==6))))))&&(a4==1))))){ + a5 = 0; + a18 = 0; + a12 = 10; + a15 = 1; + a27 = 1; + a22 = 1; + return 26; + } else if(((!(a15==1)&&((a20==1)&&(!(a0==1)&&((a3==7)&&((!(a4==1)&&((((a27==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a5==1))&&(a12==10)))&&(a22==1))))))&&(a6==1))){ + a3 = 6; + a27 = 0; + a15 = 1; + a0 = 1; + a18 = 1; + a5 = 0; + a4 = 1; + return -1; + } else if((((a27==1)&&(!(a5==1)&&((!(a15==1)&&(((a4==1)&&(((((((a18==1)&&!(a22==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==3))&&!(a0==1)))&&!(a6==1)))&&(a20==1))))&&(a12==11))){ + a0 = 1; + a6 = 1; + a18 = 0; + a12 = 10; + a15 = 1; + a5 = 1; + a3 = 7; + a22 = 0; + return -1; + } else if(((a3==4)&&(((!(a6==1)&&(((((a20==1)&&((!(a27==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&!(a4==1)))&&(a0==1))&&!(a15==1))&&(a12==12)))&&(a5==1))&&(a22==1)))){ + a18 = 1; + a27 = 1; + a3 = 6; + a15 = 1; + a12 = 8; + a22 = 0; + return 21; + } else if((!(a5==1)&&((a15==1)&&((!(a4==1)&&(!(a27==1)&&((a12==9)&&((a3==8)&&((a6==1)&&(!(a0==1)&&((input==3)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))))))))&&(a20==1))))){ + a3 = 6; + a5 = 1; + a22 = 0; + a27 = 1; + a12 = 8; + a18 = 1; + a0 = 1; + a4 = 1; + a6 = 0; + return -1; + } else if(((a5==1)&&((((a15==1)&&((a6==1)&&((a20==1)&&((a0==1)&&((((((a22==1)&&(a18==1))&&(a3==8))||((((a18==1)&&!(a22==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7))))&&(input==4))&&!(a4==1))))))&&(a12==10))&&!(a27==1)))){ + a15 = 0; + a4 = 1; + a3 = 6; + a18 = 1; + a6 = 0; + a22 = 0; + return 26; + } else if((!(a15==1)&&((a0==1)&&((a20==1)&&(((a12==10)&&((a5==1)&&((((a6==1)&&((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1))))||((!(a6==1)&&(((a4==1)&&(!(a22==1)&&(a18==1)))&&(a3==8)))||(!(a6==1)&&((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1)))))))&&(input==2))))&&(a27==1)))))){ + a6 = 1; + a15 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + a4 = 1; + return -1; + } else if((!(a5==1)&&((a15==1)&&(!(a0==1)&&((((((!(a6==1)&&((a3==8)&&((!(a22==1)&&!(a18==1))&&(a4==1))))||(((!(a4==1)&&((a22==1)&&(a18==1)))&&(a3==4))&&(a6==1)))&&(input==5))&&(a20==1))&&(a27==1))&&(a12==12)))))){ + a18 = 1; + a6 = 0; + a15 = 0; + a5 = 1; + a4 = 1; + a3 = 4; + a22 = 1; + return 21; + } else if(((a12==11)&&((a18==1)&&((a15==1)&&((a4==1)&&((((a22==1)&&(((a20==1)&&(!(a27==1)&&((a6==1)&&(input==4))))&&(a0==1)))&&(a3==4))&&!(a5==1))))))){ + if((a22==1)){ + a4 = 0; + a6 = 0; + a18 = 0; + a3 = 7; + a15 = 0; + a12 = 12; + }else{ + a5 = 1; + a27 = 1; + a22 = 0; + } + return 26; + } else if((((!(a0==1)&&((((a6==1)&&((a12==8)&&(((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==1))&&!(a4==1))))&&(a27==1))&&!(a15==1)))&&(a20==1))&&!(a5==1))){ + a22 = 1; + a0 = 1; + a4 = 1; + a3 = 4; + a15 = 1; + a18 = 1; + a5 = 1; + return -1; + } else if(((a20==1)&&((a4==1)&&(((!(a15==1)&&(((!(a0==1)&&((a3==7)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1))))&&(a5==1))&&(a12==8)))&&!(a6==1))&&!(a27==1))))){ + a12 = 10; + a18 = 1; + a27 = 1; + a22 = 1; + a4 = 0; + return 26; + } else if((((((a15==1)&&((((a20==1)&&((((input==2)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&!(a4==1))&&(a12==12)))&&(a3==6))&&(a0==1)))&&!(a5==1))&&!(a6==1))&&(a27==1))){ + a5 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + a6 = 1; + a22 = 1; + a4 = 1; + return -1; + } else if((!(a0==1)&&((a20==1)&&((a4==1)&&((!(a6==1)&&((((a15==1)&&((((a3==5)&&((a22==1)&&(a18==1)))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a22==1)&&!(a18==1)))))&&(input==1)))&&(a12==9))&&(a5==1)))&&!(a27==1)))))){ + a12 = 8; + a22 = 0; + a18 = 1; + a3 = 5; + a0 = 1; + a27 = 1; + return -1; + } else if(((a22==1)&&((a6==1)&&(((a12==10)&&(((((a4==1)&&((((input==1)&&(a20==1))&&!(a0==1))&&(a27==1)))&&!(a15==1))&&(a3==4))&&!(a5==1)))&&!(a18==1))))){ + if((a0==1)){ + a15 = 1; + a18 = 1; + a3 = 8; + a12 = 12; + a6 = 0; + a5 = 1; + }else{ + a6 = 0; + a27 = 0; + a0 = 1; + a4 = 0; + a22 = 0; + a15 = 1; + a3 = 6; + } + return 21; + } else if((!(a0==1)&&(((a3==4)&&(((((a12==11)&&((((a27==1)&&((input==4)&&(a6==1)))&&(a5==1))&&(a22==1)))&&!(a15==1))&&(a20==1))&&(a4==1)))&&!(a18==1)))){ + a12 = 8; + a15 = 1; + a18 = 1; + a0 = 1; + return -1; + } else if((((!(a0==1)&&((a5==1)&&(((!(a27==1)&&(((input==5)&&((((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==6)))||((a3==7)&&((a22==1)&&(a18==1)))))&&(a12==11)))&&!(a4==1))&&(a15==1))))&&!(a6==1))&&(a20==1))){ + a12 = 8; + a3 = 7; + a22 = 1; + a27 = 1; + a18 = 0; + a0 = 1; + a6 = 1; + return 26; + } else if((!(a4==1)&&(!(a6==1)&&(((a20==1)&&((!(a15==1)&&((!(a0==1)&&((((input==4)&&!(a18==1))&&!(a5==1))&&!(a22==1)))&&(a12==12)))&&(a27==1)))&&(a3==6))))){ + a4 = 1; + a6 = 1; + a15 = 1; + a3 = 7; + a12 = 8; + a0 = 1; + a5 = 1; + a18 = 1; + return -1; + } else if(((((((a3==6)&&((((a22==1)&&((((input==3)&&(a12==9))&&!(a27==1))&&(a5==1)))&&!(a15==1))&&!(a4==1)))&&(a20==1))&&(a18==1))&&(a0==1))&&!(a6==1))){ + a15 = 1; + a3 = 7; + a6 = 1; + a5 = 0; + a4 = 1; + return 21; + } else if(((((a12==9)&&(((((a5==1)&&(((a18==1)&&(((input==4)&&(a0==1))&&(a3==7)))&&!(a6==1)))&&(a20==1))&&!(a4==1))&&(a27==1)))&&!(a22==1))&&!(a15==1))){ + a12 = 8; + a3 = 4; + a15 = 1; + a27 = 0; + return 21; + } return calculate_output59(input); + } + + int calculate_output59(int input) { + if((((((((a15==1)&&((!(a22==1)&&(((a12==11)&&(!(a5==1)&&(input==5)))&&!(a18==1)))&&(a3==6)))&&(a6==1))&&(a0==1))&&(a27==1))&&(a20==1))&&(a4==1))){ + a0 = 0; + a12 = 10; + a5 = 1; + a4 = 0; + a18 = 1; + a3 = 8; + return 21; + } else if(((a5==1)&&((!(a0==1)&&((((!(a22==1)&&((a27==1)&&((((a18==1)&&(input==5))&&(a3==8))&&(a20==1))))&&(a15==1))&&(a6==1))&&(a12==11)))&&(a4==1)))){ + if((a4==1)){ + a15 = 0; + a6 = 0; + a22 = 1; + a3 = 6; + }else{ + a15 = 0; + a3 = 5; + a6 = 0; + a18 = 0; + a0 = 1; + a22 = 1; + } + return 26; + } else if((!(a27==1)&&(((a15==1)&&((!(a4==1)&&((a20==1)&&(((((a22==1)&&(!(a0==1)&&(input==1)))&&(a12==11))&&!(a6==1))&&(a3==8))))&&!(a18==1)))&&(a5==1)))){ + a4 = 1; + a12 = 8; + a0 = 1; + a27 = 1; + a18 = 1; + a22 = 0; + a3 = 6; + return -1; + } else if(((a20==1)&&(((a18==1)&&(((((a6==1)&&(!(a27==1)&&(((a0==1)&&((a3==5)&&(input==1)))&&(a4==1))))&&(a15==1))&&!(a22==1))&&(a5==1)))&&(a12==8)))){ + a3 = 4; + a27 = 1; + a22 = 1; + return -1; + } else if(((!(a0==1)&&((((a3==4)&&(!(a15==1)&&(!(a18==1)&&(((((a4==1)&&(input==2))&&(a6==1))&&(a5==1))&&(a12==9)))))&&(a22==1))&&(a20==1)))&&!(a27==1))){ + if((a27==1)){ + a3 = 6; + a27 = 1; + a22 = 0; + a12 = 11; + a15 = 1; + }else{ + a12 = 11; + a0 = 1; + a6 = 0; + a5 = 0; + } + return 26; + } else if(((a6==1)&&((((a12==11)&&((a0==1)&&((((a4==1)&&((a20==1)&&(((a27==1)&&(input==1))&&(a15==1))))&&(a3==6))&&(a22==1))))&&(a5==1))&&(a18==1)))){ + a12 = 10; + a5 = 0; + a27 = 0; + a4 = 0; + a6 = 0; + a18 = 0; + a3 = 8; + a22 = 0; + return 26; + } else if(((a5==1)&&((a27==1)&&(((!(a6==1)&&((a12==9)&&(((a0==1)&&((input==4)&&((((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==5)))))&&(a20==1))))&&(a15==1))&&(a4==1))))){ + a18 = 1; + a12 = 12; + a22 = 0; + a3 = 8; + return 24; + } else if((!(a22==1)&&(!(a15==1)&&(((a27==1)&&((a0==1)&&((!(a6==1)&&((((a5==1)&&((input==1)&&(a3==8)))&&(a18==1))&&!(a4==1)))&&(a12==11))))&&(a20==1))))){ + a3 = 5; + a18 = 0; + a0 = 0; + a12 = 12; + a15 = 1; + return 21; + } else if(((a4==1)&&(((a15==1)&&((!(a27==1)&&((((((input==3)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a6==1))&&(a12==10))&&(a3==8))&&!(a5==1)))&&(a20==1)))&&(a0==1)))){ + a3 = 4; + a12 = 11; + a27 = 1; + a18 = 0; + a22 = 1; + return 26; + } else if((((a0==1)&&((a5==1)&&((a20==1)&&((a12==12)&&((((!(a27==1)&&(!(a6==1)&&((a3==4)&&(input==4))))&&!(a4==1))&&(a18==1))&&!(a22==1))))))&&(a15==1))){ + a22 = 1; + a4 = 1; + a27 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if((((a12==12)&&((a27==1)&&(!(a15==1)&&((a4==1)&&((a20==1)&&((!(a0==1)&&((input==2)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1))))))&&!(a6==1)))))))&&(a5==1))){ + a4 = 0; + a12 = 8; + a6 = 1; + a3 = 4; + a0 = 1; + a18 = 1; + a15 = 1; + a22 = 0; + return 24; + } else if((!(a6==1)&&((a3==7)&&((((a5==1)&&((((a22==1)&&((a12==12)&&((a20==1)&&((a27==1)&&(input==3)))))&&!(a18==1))&&(a15==1)))&&!(a0==1))&&(a4==1))))){ + a3 = 4; + a18 = 1; + a6 = 1; + a0 = 1; + a12 = 8; + return -1; + } else if(((a3==8)&&((!(a0==1)&&((((a6==1)&&(!(a22==1)&&(!(a5==1)&&((((a4==1)&&(input==1))&&!(a15==1))&&(a12==9)))))&&(a20==1))&&!(a27==1)))&&!(a18==1)))){ + a18 = 1; + a3 = 7; + a22 = 1; + a12 = 12; + a5 = 1; + a0 = 1; + return -1; + } else if((((!(a4==1)&&((!(a0==1)&&((a20==1)&&((a12==8)&&(!(a5==1)&&((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==1))&&(a15==1))))))&&!(a27==1)))&&(a3==4))&&!(a6==1))){ + a27 = 1; + a6 = 1; + a3 = 6; + a18 = 1; + a0 = 1; + a22 = 0; + a4 = 1; + return 21; + } else if(((((a20==1)&&((a0==1)&&(!(a4==1)&&(!(a6==1)&&((a12==9)&&(((((a3==5)&&((a22==1)&&!(a18==1)))||(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1)))))&&(input==3))&&(a5==1)))))))&&(a15==1))&&!(a27==1))){ + a15 = 0; + a6 = 1; + a27 = 1; + a5 = 0; + a12 = 11; + a18 = 1; + a3 = 8; + a22 = 0; + return 26; + } else if((!(a0==1)&&((a20==1)&&((a27==1)&&((input==3)&&((((((a12==11)&&(!(a15==1)&&(!(a5==1)&&(!(a22==1)&&!(a18==1)))))&&!(a4==1))&&(a3==8))&&!(a6==1))||(((a3==4)&&((a4==1)&&(((((a22==1)&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==12))))&&(a6==1)))))))){ + a5 = 1; + a12 = 10; + a3 = 7; + a6 = 0; + a0 = 1; + a18 = 0; + a4 = 0; + a15 = 1; + a22 = 1; + return 26; + } else if(((((a6==1)&&(((!(a0==1)&&(((a4==1)&&(((input==3)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a12==9)))&&(a3==6)))&&(a15==1))&&(a20==1)))&&!(a27==1))&&!(a5==1))){ + if((a0==1)){ + a4 = 0; + a5 = 1; + a15 = 0; + a18 = 1; + a6 = 0; + a12 = 10; + a22 = 0; + a3 = 4; + a27 = 1; + }else{ + a0 = 1; + a12 = 8; + a4 = 0; + a3 = 8; + a5 = 1; + a22 = 1; + a18 = 0; + a27 = 1; + } + return 26; + } else if((((((((a3==8)&&((a27==1)&&(!(a6==1)&&(((!(a4==1)&&(input==6))&&!(a15==1))&&(a0==1)))))&&(a5==1))&&(a22==1))&&(a20==1))&&(a18==1))&&(a12==10))){ + a22 = 0; + a3 = 5; + return 21; + } else if(((!(a0==1)&&((a20==1)&&((((a12==8)&&(!(a18==1)&&(!(a4==1)&&((((input==4)&&(a27==1))&&(a3==7))&&!(a22==1)))))&&(a5==1))&&!(a6==1))))&&!(a15==1))){ + a15 = 1; + a5 = 0; + a12 = 11; + a18 = 1; + a3 = 4; + a0 = 1; + return 26; + } else if((!(a22==1)&&((((a12==11)&&((a20==1)&&((!(a5==1)&&(!(a6==1)&&((((input==2)&&!(a0==1))&&(a4==1))&&(a15==1))))&&(a3==6))))&&(a18==1))&&!(a27==1)))){ + a27 = 1; + a12 = 9; + a3 = 4; + return 26; + } else if(((((a20==1)&&((a4==1)&&(!(a22==1)&&((a15==1)&&(((!(a6==1)&&((((a18==1)||!(a18==1))&&(input==2))&&!(a5==1)))&&(a27==1))&&!(a0==1))))))&&(a3==4))&&(a12==12))){ + if((a0==1)){ + a18 = 0; + a5 = 1; + a27 = 0; + a6 = 1; + a12 = 9; + a22 = 1; + a4 = 0; + }else{ + a6 = 1; + a3 = 5; + a0 = 1; + a18 = 1; + a5 = 1; + a12 = 8; + } + return -1; + } else if((((((a0==1)&&(((a12==10)&&((a4==1)&&(((((a3==7)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1)))))&&(input==4))&&(a20==1))))&&!(a27==1)))&&!(a5==1))&&!(a15==1))&&!(a6==1))){ + a18 = 1; + a27 = 1; + a3 = 6; + a4 = 0; + a22 = 1; + a12 = 11; + a15 = 1; + return 26; + } else if(((!(a27==1)&&((a3==6)&&(!(a0==1)&&((!(a22==1)&&(((a20==1)&&((a12==11)&&((!(a5==1)&&(input==4))&&(a4==1))))&&(a18==1)))&&(a15==1)))))&&!(a6==1))){ + a5 = 1; + a27 = 1; + a18 = 0; + a0 = 1; + a3 = 7; + a4 = 0; + a6 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if((!(a15==1)&&(!(a22==1)&&(((a0==1)&&(!(a5==1)&&(((a3==7)&&((a27==1)&&((a20==1)&&((a6==1)&&((a4==1)&&(input==2))))))&&(a12==9))))&&(a18==1))))){ + a15 = 1; + a5 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + return -1; + } else if(((((!(a4==1)&&((!(a15==1)&&((a20==1)&&((((((a3==8)&&(!(a22==1)&&(a18==1)))&&(a6==1))||(((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1)))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4))))&&(input==3))))&&(a27==1)))&&(a0==1))&&(a12==10))&&!(a5==1))){ + a15 = 1; + a6 = 1; + a27 = 0; + a18 = 1; + a22 = 0; + a3 = 4; + return 26; + } else if((((!(a5==1)&&(((a6==1)&&(((((((!(a18==1)&&(a22==1))&&(a3==7))||(((!(a18==1)&&!(a22==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7))))&&(input==5))&&(a12==10))&&!(a0==1))&&(a15==1)))&&(a20==1)))&&!(a4==1))&&(a27==1))){ + a0 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + a4 = 1; + a5 = 1; + return -1; + } else if(((a4==1)&&(((a12==10)&&((!(a6==1)&&(((((input==6)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6))))&&(a20==1))&&(a0==1))&&!(a5==1)))&&!(a27==1)))&&!(a15==1)))){ + a3 = 7; + a22 = 0; + a5 = 1; + a18 = 0; + a4 = 0; + a27 = 1; + return 21; + } else if(((a12==9)&&((a18==1)&&((a3==4)&&(!(a5==1)&&((a20==1)&&((a15==1)&&((a4==1)&&(!(a0==1)&&((a6==1)&&((a22==1)&&(!(a27==1)&&(input==1))))))))))))){ + if((a15==1)){ + a0 = 1; + a3 = 6; + a27 = 1; + a12 = 8; + a5 = 1; + a18 = 0; + }else{ + a12 = 8; + a0 = 1; + a5 = 1; + a3 = 7; + a27 = 1; + } + return -1; + } else if(((((((a3==6)&&((a5==1)&&((a12==11)&&((a6==1)&&(((!(a15==1)&&(input==2))&&(a20==1))&&(a18==1))))))&&!(a27==1))&&(a0==1))&&!(a22==1))&&!(a4==1))){ + a3 = 4; + a15 = 1; + a27 = 1; + a12 = 8; + a4 = 1; + a22 = 1; + return -1; + } else if(((((a27==1)&&(((a20==1)&&(!(a5==1)&&((!(a4==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==6))&&!(a6==1)))&&(a12==11))))&&!(a15==1)))&&!(a0==1))&&(a3==7))){ + a15 = 1; + a0 = 1; + a6 = 1; + a22 = 0; + a18 = 1; + a12 = 10; + a3 = 8; + a5 = 1; + return -1; + } else if((((!(a18==1)&&(((((((a22==1)&&((a6==1)&&((input==5)&&(a0==1))))&&(a12==10))&&(a15==1))&&(a20==1))&&(a3==4))&&!(a27==1)))&&!(a5==1))&&(a4==1))){ + if((a27==1)){ + a3 = 8; + a27 = 1; + a0 = 0; + a6 = 0; + a22 = 0; + a12 = 8; + }else{ + a12 = 11; + a22 = 0; + a18 = 1; + a3 = 7; + a27 = 1; + a15 = 0; + a6 = 0; + } + return 21; + } else if(((((a6==1)&&((!(a18==1)&&(!(a22==1)&&(!(a5==1)&&((((a12==10)&&((a27==1)&&(input==1)))&&(a0==1))&&(a15==1)))))&&(a3==5)))&&(a20==1))&&!(a4==1))){ + a15 = 0; + a4 = 1; + a22 = 1; + a5 = 1; + a18 = 1; + a27 = 0; + return 26; + } else if((((a5==1)&&((a15==1)&&((a4==1)&&(!(a27==1)&&((a12==8)&&((a0==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4))))&&(input==6))))))))&&(a20==1))){ + a4 = 0; + a3 = 4; + a12 = 10; + a22 = 1; + a6 = 0; + a27 = 1; + a18 = 0; + return 26; + } else if(((a6==1)&&(((a3==5)&&(((a22==1)&&((a0==1)&&((((a12==10)&&(!(a18==1)&&(!(a27==1)&&(input==5))))&&!(a15==1))&&!(a4==1))))&&(a20==1)))&&!(a5==1)))){ + a22 = 0; + a27 = 1; + a4 = 1; + a12 = 12; + a15 = 1; + a3 = 6; + return 21; + } else if(((a0==1)&&(!(a4==1)&&((a12==8)&&((a20==1)&&(!(a15==1)&&(((a27==1)&&((((((!(a22==1)&&(a18==1))&&(a3==8))&&(a6==1))||(((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1)))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1)))))&&(input==3)))&&!(a5==1)))))))){ + a6 = 0; + a5 = 1; + a12 = 11; + a18 = 0; + a3 = 5; + a22 = 0; + return 21; + } else if(((a20==1)&&(!(a0==1)&&((((a12==10)&&((a3==7)&&(!(a6==1)&&(!(a18==1)&&((((a27==1)&&(input==1))&&(a4==1))&&!(a22==1))))))&&!(a15==1))&&(a5==1))))){ + a5 = 0; + a0 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((!(a6==1)&&(!(a0==1)&&(!(a4==1)&&((a20==1)&&(!(a15==1)&&(((a3==6)&&((((input==3)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&(a27==1))&&(a12==12)))&&!(a5==1)))))))){ + if((a18==1)){ + a6 = 1; + a5 = 1; + a18 = 0; + a15 = 1; + a0 = 1; + a22 = 1; + a4 = 1; + a3 = 7; + a12 = 8; + }else{ + a15 = 1; + a18 = 1; + a6 = 1; + a0 = 1; + a12 = 8; + a22 = 0; + a5 = 1; + } + return 21; + } else if(((((a20==1)&&(!(a0==1)&&((!(a6==1)&&((a12==10)&&((a5==1)&&((((!(a18==1)&&(a22==1))&&(a3==6))||(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6))))&&(input==6)))))&&!(a4==1))))&&(a27==1))&&(a15==1))){ + a0 = 1; + a3 = 4; + a6 = 1; + a22 = 1; + a12 = 8; + a4 = 1; + a18 = 1; + return -1; + } else if(((((a20==1)&&((!(a4==1)&&(((a27==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==6))&&!(a0==1)))&&(a6==1)))&&(a5==1)))&&(a12==12))&&!(a15==1))){ + a4 = 1; + a6 = 0; + a15 = 1; + a22 = 1; + a3 = 5; + a0 = 1; + a12 = 8; + a18 = 0; + return 21; + } else if((((((a20==1)&&((a3==4)&&((a5==1)&&(((a27==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1))&&(a12==10)))&&!(a0==1)))))&&(a6==1))&&(a15==1))&&!(a4==1))){ + a12 = 12; + a22 = 0; + a0 = 1; + a18 = 1; + a3 = 7; + a15 = 0; + return -1; + } else if((((a12==11)&&((((a6==1)&&((a27==1)&&((((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==4))&&(a5==1))&&(a20==1))&&(a4==1))))&&(a0==1))&&(a15==1)))&&(a3==6))){ + a4 = 0; + a3 = 8; + a22 = 0; + a6 = 0; + a5 = 0; + a18 = 0; + a12 = 10; + return -1; + } else if(((a0==1)&&(((((((a15==1)&&((a4==1)&&((a12==8)&&((input==3)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))))))&&(a20==1))&&(a6==1))&&!(a5==1))&&(a3==5))&&!(a27==1)))){ + a22 = 1; + a18 = 0; + a3 = 8; + a12 = 12; + return 24; + } else if(((a20==1)&&(((((a4==1)&&(((a22==1)&&((((a5==1)&&((a27==1)&&(input==5)))&&!(a15==1))&&(a3==4)))&&(a12==10)))&&(a18==1))&&!(a6==1))&&!(a0==1)))){ + a15 = 1; + a6 = 1; + a5 = 0; + a22 = 0; + a0 = 1; + a3 = 8; + return 21; + } else if(((((!(a4==1)&&(!(a27==1)&&((((a3==7)&&(((input==6)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&(a15==1)))&&(a6==1))&&(a12==12))))&&(a0==1))&&!(a5==1))&&(a20==1))){ + if((a0==1)){ + a18 = 0; + a0 = 0; + a27 = 1; + a15 = 0; + a12 = 9; + a22 = 1; + a5 = 1; + }else{ + a15 = 0; + a12 = 10; + a18 = 0; + a6 = 0; + a22 = 0; + a27 = 1; + } + return -1; + } else if(((a0==1)&&(((((!(a5==1)&&((a20==1)&&(((((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==5))&&(a27==1))))&&(a12==8))&&(a15==1))&&(a6==1))&&(a4==1)))){ + a12 = 9; + a15 = 0; + a22 = 1; + a18 = 0; + a3 = 5; + return 24; + } else if(((((!(a15==1)&&(((a12==10)&&((a4==1)&&((a6==1)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==3)))))&&!(a5==1)))&&!(a0==1))&&!(a27==1))&&(a20==1))){ + if((a5==1)){ + a3 = 7; + a5 = 1; + a6 = 0; + a18 = 1; + a22 = 1; + a12 = 9; + }else{ + a0 = 1; + a22 = 0; + a15 = 1; + a3 = 7; + a12 = 8; + a6 = 0; + a18 = 1; + a27 = 1; + a5 = 1; + } + return -1; + } else if(((a5==1)&&(!(a0==1)&&((a27==1)&&((a12==8)&&(((a15==1)&&((!(a4==1)&&(((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1))))||((!(a18==1)&&(a22==1))&&(a3==7)))&&(input==1)))&&(a20==1)))&&!(a6==1))))))){ + a22 = 1; + a0 = 1; + a6 = 1; + a3 = 4; + a18 = 1; + a4 = 1; + return -1; + } else if(((a18==1)&&((((((a5==1)&&((a6==1)&&((a15==1)&&((a0==1)&&((a22==1)&&((input==5)&&(a4==1)))))))&&(a12==9))&&!(a27==1))&&(a20==1))&&(a3==5)))){ + a27 = 1; + a22 = 0; + a6 = 0; + a5 = 0; + a3 = 6; + a12 = 10; + return 26; + } else if(((a3==6)&&((!(a6==1)&&(((a12==10)&&(!(a5==1)&&((a4==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5))&&(a20==1))&&!(a15==1)))))&&!(a27==1)))&&!(a0==1)))){ + if((a4==1)){ + a12 = 8; + a3 = 7; + a6 = 1; + a22 = 0; + a4 = 0; + a0 = 1; + a15 = 1; + a5 = 1; + a18 = 0; + a27 = 1; + }else{ + a18 = 0; + a3 = 7; + a12 = 11; + a6 = 1; + a22 = 1; + a4 = 0; + a0 = 1; + } + return 21; + } else if(((a6==1)&&((((a5==1)&&(((a15==1)&&((a20==1)&&(((input==1)&&(((a3==7)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1))))))&&(a12==9))))&&!(a4==1)))&&(a27==1))&&(a0==1)))){ + a22 = 0; + a3 = 4; + a6 = 0; + a12 = 12; + a4 = 1; + a5 = 0; + a18 = 0; + return 24; + } else if((((!(a4==1)&&((((a15==1)&&(((a12==9)&&((((a3==6)&&((a18==1)&&(a22==1)))||(((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a18==1)&&!(a22==1)))))&&(input==2)))&&(a27==1)))&&!(a5==1))&&!(a0==1)))&&!(a6==1))&&(a20==1))){ + a18 = 0; + a4 = 1; + a3 = 6; + a22 = 0; + a5 = 1; + a0 = 1; + a12 = 11; + return 26; + } else if((((((a12==9)&&(!(a15==1)&&((a3==8)&&(!(a0==1)&&((a27==1)&&(!(a6==1)&&((input==3)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))))))))&&(a20==1))&&!(a5==1))&&!(a4==1))){ + a4 = 1; + a22 = 0; + a18 = 0; + a3 = 4; + a0 = 1; + a6 = 1; + a27 = 0; + a5 = 1; + a15 = 1; + return 21; + } else if((((((a12==12)&&(!(a4==1)&&(((a6==1)&&((((((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))||((a3==7)&&((a22==1)&&!(a18==1))))&&(input==1))&&!(a27==1)))&&(a5==1))))&&(a20==1))&&(a0==1))&&(a15==1))){ + a5 = 0; + a27 = 1; + a3 = 8; + a18 = 0; + a4 = 1; + a12 = 11; + a22 = 0; + return 24; + } else if((!(a15==1)&&((((a3==5)&&(((((a20==1)&&((((input==1)&&!(a5==1))&&(a22==1))&&(a27==1)))&&!(a4==1))&&(a6==1))&&(a12==11)))&&!(a0==1))&&!(a18==1)))){ + a12 = 10; + a0 = 1; + a18 = 1; + a15 = 1; + return 26; + } else if(((a5==1)&&(((a20==1)&&(((((!(a0==1)&&((input==1)&&(((a3==7)&&((a18==1)&&(a22==1)))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a18==1)&&!(a22==1)))))))&&(a27==1))&&(a12==12))&&!(a4==1))&&!(a15==1)))&&(a6==1)))){ + a22 = 0; + a4 = 1; + a12 = 8; + a3 = 7; + a18 = 1; + return 26; + } else if(((a4==1)&&((((((a3==4)&&(!(a15==1)&&(!(a22==1)&&(!(a18==1)&&((a12==9)&&((a20==1)&&(input==6)))))))&&(a6==1))&&(a0==1))&&(a5==1))&&(a27==1)))){ + a3 = 5; + a15 = 1; + a5 = 0; + a12 = 11; + a4 = 0; + a22 = 1; + return 24; + } else if(((!(a5==1)&&(((a20==1)&&(!(a27==1)&&(!(a18==1)&&(((a6==1)&&((!(a22==1)&&((a3==8)&&(input==1)))&&!(a4==1)))&&(a0==1)))))&&(a12==8)))&&(a15==1))){ + a22 = 1; + a12 = 11; + a3 = 5; + a15 = 0; + a4 = 1; + a27 = 1; + return 26; + } else if((((((!(a22==1)&&(((a3==7)&&(((a4==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&!(a27==1)))&&(a12==11)))&&(a5==1)))&&!(a6==1))&&(a20==1))&&!(a0==1))&&(a15==1))){ + a3 = 5; + a0 = 1; + a18 = 1; + a12 = 8; + a4 = 0; + a27 = 1; + a6 = 1; + return 21; + } else if(((a15==1)&&((a3==7)&&((a27==1)&&((((a4==1)&&(!(a0==1)&&((((input==3)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a6==1))&&!(a5==1))))&&(a12==12))&&(a20==1)))))){ + a18 = 0; + a5 = 1; + a27 = 0; + a22 = 0; + a12 = 8; + return 21; + } else if(((!(a27==1)&&(((a3==7)&&((a15==1)&&((a12==8)&&((!(a4==1)&&(!(a5==1)&&((input==5)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))))&&(a20==1)))))&&(a0==1)))&&(a6==1))){ + if((a0==1)){ + a12 = 9; + a18 = 0; + a3 = 4; + a27 = 1; + a22 = 1; + a0 = 0; + }else{ + a4 = 1; + a22 = 0; + a18 = 1; + a12 = 11; + a15 = 0; + a3 = 4; + } + return 24; + } else if((((a4==1)&&(((((a27==1)&&(((!(a5==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==4)))&&(a12==8))&&!(a6==1)))&&!(a0==1))&&(a3==5))&&(a15==1)))&&(a20==1))){ + a6 = 1; + a22 = 0; + a4 = 0; + a12 = 10; + a3 = 4; + a5 = 1; + a18 = 0; + return 26; + } else if(((a12==9)&&(((a15==1)&&(((a0==1)&&(((a4==1)&&((a3==7)&&(((input==3)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&!(a5==1))))&&(a20==1)))&&!(a27==1)))&&!(a6==1)))){ + a5 = 1; + a18 = 1; + a4 = 0; + a22 = 1; + a3 = 8; + a12 = 10; + a27 = 1; + return 21; + } else if((!(a15==1)&&(((((((a20==1)&&((((input==3)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&!(a6==1))&&(a12==12)))&&(a3==4))&&(a5==1))&&(a27==1))&&!(a0==1))&&(a4==1)))){ + a22 = 0; + a0 = 1; + a3 = 5; + a15 = 1; + a4 = 0; + a6 = 1; + a12 = 8; + a18 = 0; + return 26; + } else if(((a20==1)&&(((a6==1)&&((((((a12==9)&&(!(a5==1)&&(!(a0==1)&&((input==5)&&(a3==6)))))&&!(a18==1))&&!(a27==1))&&!(a15==1))&&!(a4==1)))&&(a22==1)))){ + if((a4==1)){ + a27 = 1; + a0 = 1; + a15 = 1; + a4 = 1; + a12 = 8; + a18 = 1; + a5 = 1; + a6 = 0; + }else{ + a5 = 1; + a27 = 1; + a15 = 1; + a12 = 10; + a18 = 1; + } + return -1; + } else if(((a12==12)&&((!(a5==1)&&((((a4==1)&&((a3==5)&&((a6==1)&&((a15==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==5))))))&&(a0==1))&&!(a27==1)))&&(a20==1)))){ + a18 = 1; + a3 = 4; + a12 = 8; + a27 = 1; + a22 = 1; + a5 = 1; + return -1; + } else if(((!(a15==1)&&((!(a0==1)&&(((((a4==1)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==2)))&&!(a27==1))&&(a6==1))&&(a5==1)))&&(a12==9)))&&(a20==1))){ + a27 = 1; + a12 = 8; + a6 = 0; + a0 = 1; + a3 = 6; + a22 = 1; + a15 = 1; + a18 = 0; + return -1; + } else if(((!(a4==1)&&(((a5==1)&&((a3==6)&&((a20==1)&&(!(a0==1)&&((!(a27==1)&&(((input==5)&&!(a18==1))&&!(a6==1)))&&!(a22==1))))))&&!(a15==1)))&&(a12==11))){ + a12 = 9; + a27 = 1; + a5 = 0; + a3 = 4; + a0 = 1; + a15 = 1; + return 21; + } else if(((a0==1)&&((a4==1)&&(!(a15==1)&&((((a20==1)&&(!(a5==1)&&((((((a3==7)&&(!(a22==1)&&(a18==1)))||((a3==7)&&(!(a18==1)&&!(a22==1))))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==3))&&(a12==12))))&&!(a6==1))&&(a27==1)))))){ + a18 = 1; + a6 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + a15 = 1; + a5 = 1; + return -1; + } else if((((a6==1)&&((a0==1)&&((!(a5==1)&&((a20==1)&&((!(a4==1)&&((a27==1)&&((input==3)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))))&&(a12==12))))&&!(a15==1))))&&(a3==7))){ + a15 = 1; + a4 = 1; + a18 = 0; + a12 = 10; + a27 = 0; + a3 = 8; + a22 = 1; + return 26; + } else if(((((((((((((input==2)&&((a18==1)||!(a18==1)))&&!(a5==1))&&(a20==1))&&!(a27==1))&&(a3==7))&&(a0==1))&&!(a15==1))&&!(a22==1))&&!(a4==1))&&(a6==1))&&(a12==10))){ + a18 = 0; + a27 = 1; + a12 = 12; + a6 = 0; + a3 = 8; + a5 = 1; + return 26; + } else if((!(a5==1)&&(((a12==8)&&((a0==1)&&((!(a27==1)&&(((((a3==8)&&((a4==1)&&(!(a22==1)&&!(a18==1))))&&!(a6==1))||((a6==1)&&((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1))))))&&(input==3)))&&(a20==1))))&&(a15==1)))){ + a6 = 1; + a4 = 1; + a3 = 4; + a22 = 0; + a18 = 1; + a12 = 10; + a15 = 0; + a5 = 1; + return 26; + } else if((((!(a22==1)&&((a20==1)&&(!(a4==1)&&(!(a6==1)&&((((a27==1)&&((a5==1)&&((input==3)&&(a3==4))))&&(a18==1))&&(a12==10))))))&&!(a0==1))&&!(a15==1))){ + a12 = 12; + a15 = 1; + a4 = 1; + a5 = 0; + a0 = 1; + a3 = 5; + a6 = 1; + return 26; + } else if(((((a20==1)&&((!(a27==1)&&(((a4==1)&&((a0==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5))&&(a12==10))))&&!(a5==1)))&&!(a15==1)))&&(a3==5))&&!(a6==1))){ + a3 = 4; + a15 = 1; + a22 = 0; + a18 = 0; + a5 = 1; + a4 = 0; + return -1; + } else if((((a12==10)&&((((a20==1)&&((a6==1)&&((a27==1)&&((!(a5==1)&&((input==6)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))))&&!(a0==1)))))&&(a4==1))&&(a3==8)))&&(a15==1))){ + a22 = 1; + a18 = 1; + a5 = 1; + a3 = 4; + a12 = 8; + a0 = 1; + return -1; + } else if(((a4==1)&&((a27==1)&&(((((((((((!(a22==1)&&(a18==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==4))&&(a6==1))&&!(a0==1))&&(a12==12))&&!(a15==1))&&(a20==1))&&(a5==1))))){ + a27 = 0; + a3 = 8; + a18 = 1; + a15 = 1; + a0 = 1; + a22 = 1; + return 21; + } else if(((a27==1)&&((a6==1)&&(((a3==7)&&((a5==1)&&((a12==10)&&((a20==1)&&((a0==1)&&((a4==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==2))))))))&&(a15==1))))){ + a27 = 0; + a22 = 0; + a12 = 9; + a5 = 0; + a18 = 1; + a3 = 4; + return 21; + } else if(((((!(a6==1)&&((a3==8)&&((a12==9)&&((a5==1)&&((!(a15==1)&&((a20==1)&&(!(a27==1)&&(input==5))))&&(a18==1))))))&&!(a4==1))&&!(a0==1))&&(a22==1))){ + a18 = 0; + a5 = 0; + a6 = 1; + a15 = 1; + a0 = 1; + a3 = 4; + return 21; + } else if(((a15==1)&&((a22==1)&&((a12==12)&&(!(a0==1)&&((((!(a4==1)&&(!(a18==1)&&(((a3==4)&&(input==2))&&(a5==1))))&&(a20==1))&&(a6==1))&&(a27==1))))))){ + a15 = 0; + a0 = 1; + a5 = 0; + a27 = 0; + a6 = 0; + a4 = 1; + a12 = 10; + a3 = 6; + return 26; + } else if((((!(a4==1)&&(!(a6==1)&&(((a3==5)&&(((a12==11)&&(!(a5==1)&&((a27==1)&&((input==6)&&((a18==1)||!(a18==1))))))&&!(a22==1)))&&(a0==1))))&&(a20==1))&&(a15==1))){ + a12 = 10; + a15 = 0; + a5 = 1; + a18 = 0; + a22 = 1; + a3 = 4; + return 21; + } else if((!(a6==1)&&(((!(a27==1)&&((((a12==11)&&(!(a5==1)&&((a15==1)&&((input==6)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))))&&!(a4==1))&&(a0==1)))&&(a20==1))&&(a3==8)))){ + a4 = 1; + a3 = 4; + a18 = 1; + a22 = 0; + a5 = 1; + return -1; + } else if(((a0==1)&&(!(a15==1)&&((a4==1)&&((a20==1)&&((((a12==9)&&(((input==2)&&((((a3==6)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))||(((a22==1)&&(a18==1))&&(a3==7))))&&!(a27==1)))&&!(a5==1))&&!(a6==1))))))){ + a18 = 1; + a3 = 4; + a15 = 1; + a22 = 1; + a27 = 1; + a6 = 1; + a12 = 8; + a5 = 1; + return -1; + } else if((((((((a3==8)&&(!(a27==1)&&(!(a4==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==1))&&!(a0==1)))))&&(a20==1))&&(a6==1))&&!(a5==1))&&!(a15==1))&&(a12==10))){ + if((a4==1)){ + a5 = 1; + a27 = 1; + a12 = 8; + a22 = 1; + a15 = 1; + a0 = 1; + a18 = 0; + }else{ + a15 = 1; + a12 = 12; + a5 = 1; + a4 = 1; + a18 = 0; + a27 = 1; + a6 = 0; + a3 = 6; + a22 = 0; + } + return 24; + } else if(((a5==1)&&((a4==1)&&((!(a22==1)&&((!(a0==1)&&(!(a18==1)&&(!(a27==1)&&((a6==1)&&((a12==11)&&((input==2)&&!(a15==1)))))))&&(a3==8)))&&(a20==1))))){ + a27 = 1; + a0 = 1; + a6 = 0; + a12 = 8; + a3 = 7; + a15 = 1; + return -1; + } else if(((((a20==1)&&(!(a5==1)&&((a6==1)&&((a15==1)&&(((a0==1)&&(((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8)))||((a3==8)&&((a22==1)&&!(a18==1))))&&(input==5)))&&(a4==1))))))&&!(a27==1))&&(a12==9))){ + if((a4==1)){ + a18 = 1; + a22 = 0; + a5 = 1; + a6 = 0; + a0 = 0; + a27 = 1; + a12 = 8; + a15 = 0; + a3 = 8; + }else{ + a6 = 0; + a3 = 6; + a18 = 1; + a12 = 12; + a22 = 0; + } + return 26; + } else if((((((!(a22==1)&&(((((((a0==1)&&(input==6))&&(a12==9))&&(a18==1))&&(a20==1))&&!(a6==1))&&(a3==8)))&&!(a27==1))&&!(a15==1))&&(a5==1))&&(a4==1))){ + if((a22==1)){ + a15 = 1; + a5 = 0; + a0 = 0; + a12 = 11; + a27 = 1; + }else{ + a3 = 4; + a6 = 1; + a27 = 1; + a18 = 0; + a5 = 0; + a12 = 11; + } + return 26; + } else if(((a12==8)&&((a6==1)&&(!(a5==1)&&((((((a27==1)&&(((a4==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a0==1)))&&(a3==5))&&(a20==1))&&!(a15==1))&&(a22==1)))))){ + a18 = 1; + a12 = 10; + a6 = 0; + a4 = 0; + a15 = 1; + a3 = 4; + a22 = 0; + return 26; + } else if(((a12==11)&&(!(a0==1)&&((a20==1)&&((!(a5==1)&&(((((a6==1)&&((((a22==1)&&!(a18==1))&&!(a4==1))&&(a3==4)))||((!(a6==1)&&(((!(a22==1)&&!(a18==1))&&(a4==1))&&(a3==8)))||((a6==1)&&((!(a4==1)&&((a22==1)&&(a18==1)))&&(a3==4)))))&&(input==3))&&!(a15==1)))&&!(a27==1)))))){ + a15 = 1; + a18 = 1; + a4 = 1; + a3 = 7; + a12 = 8; + a22 = 0; + a6 = 1; + a27 = 1; + return 21; + } else if((!(a5==1)&&((a15==1)&&(((((a6==1)&&((a12==12)&&((a3==7)&&((a27==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&!(a4==1))))))&&(a20==1))&&(a0==1))&&(a22==1))))){ + a18 = 0; + a5 = 1; + a3 = 4; + return -1; + } else if((((a12==12)&&(((a15==1)&&((a3==7)&&(!(a4==1)&&((a27==1)&&(!(a5==1)&&((a0==1)&&((input==1)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))))))&&(a20==1)))&&!(a6==1))){ + a3 = 5; + a12 = 10; + a18 = 1; + a22 = 1; + return 21; + } else if(((!(a15==1)&&(((a3==6)&&((!(a18==1)&&(((a27==1)&&((a4==1)&&((a20==1)&&((input==2)&&(a22==1)))))&&!(a0==1)))&&(a5==1)))&&(a6==1)))&&(a12==10))){ + a18 = 1; + a0 = 1; + a6 = 0; + a4 = 0; + a3 = 8; + return -1; + } else if(((a15==1)&&(!(a5==1)&&(!(a4==1)&&((((a20==1)&&((a0==1)&&((a12==12)&&((((a3==6)&&((a22==1)&&(a18==1)))||(((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a18==1)&&!(a22==1)))))&&(input==6)))))&&(a27==1))&&!(a6==1)))))){ + a12 = 8; + a3 = 4; + a18 = 1; + a5 = 1; + a22 = 1; + a6 = 1; + a4 = 1; + return -1; + } else if(((a5==1)&&((!(a15==1)&&((((a12==9)&&(((a27==1)&&((a20==1)&&((input==1)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))))&&!(a0==1)))&&!(a6==1))&&(a3==7)))&&(a4==1)))){ + a15 = 1; + a4 = 0; + a12 = 12; + a18 = 1; + a0 = 1; + a3 = 5; + a6 = 1; + a22 = 1; + return 24; + } else if(((!(a6==1)&&(!(a15==1)&&(!(a0==1)&&((a20==1)&&(!(a27==1)&&((((input==6)&&(((a3==5)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1))))))&&(a12==8))&&(a5==1)))))))&&!(a4==1))){ + if((a27==1)){ + a18 = 0; + a3 = 5; + a0 = 1; + a22 = 1; + a27 = 1; + a4 = 1; + a15 = 1; + }else{ + a27 = 1; + a0 = 1; + a4 = 1; + a3 = 6; + a15 = 1; + a22 = 0; + a18 = 1; + } + return -1; + } else if(((a0==1)&&((a4==1)&&((((((!(a18==1)&&((((input==1)&&(a5==1))&&!(a15==1))&&!(a22==1)))&&(a12==11))&&(a6==1))&&!(a27==1))&&(a20==1))&&(a3==6))))){ + a27 = 1; + a15 = 1; + a3 = 7; + a4 = 0; + a18 = 1; + return -1; + } else if((((a12==11)&&(!(a5==1)&&(!(a27==1)&&((((((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==3))&&(a15==1))&&(a0==1))&&(a3==7))&&!(a4==1))&&(a20==1)))))&&!(a6==1))){ + a12 = 10; + a3 = 6; + a18 = 1; + a22 = 1; + a27 = 1; + return 26; + } else if((!(a15==1)&&((a20==1)&&(((a4==1)&&(((a0==1)&&(!(a5==1)&&((a12==12)&&((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==5))&&!(a6==1)))))&&!(a27==1)))&&(a3==6))))){ + a4 = 0; + a12 = 9; + a18 = 1; + a22 = 0; + a6 = 1; + a15 = 1; + a3 = 5; + return -1; + } else if((((((a3==4)&&((a20==1)&&((!(a5==1)&&((a22==1)&&(((((a18==1)||!(a18==1))&&(input==5))&&(a4==1))&&!(a27==1))))&&(a12==9))))&&(a15==1))&&(a0==1))&&(a6==1))){ + a12 = 8; + a18 = 1; + a5 = 1; + a27 = 1; + return -1; + } else if(((a4==1)&&((a12==12)&&((a27==1)&&(((a20==1)&&((!(a6==1)&&((a3==6)&&((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==6))&&(a5==1))))&&!(a15==1)))&&(a0==1)))))){ + a3 = 5; + a12 = 10; + a18 = 1; + a22 = 1; + return -1; + } else if((!(a0==1)&&((!(a5==1)&&((((!(a27==1)&&((a4==1)&&((a15==1)&&((input==3)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))&&(a20==1))&&(a3==5))&&(a12==11)))&&(a6==1)))){ + if((a15==1)){ + a5 = 1; + a4 = 0; + a22 = 0; + a12 = 9; + a18 = 0; + a15 = 0; + a27 = 1; + }else{ + a18 = 1; + a27 = 1; + a22 = 1; + a15 = 0; + a5 = 1; + a12 = 10; + a3 = 4; + } + return -1; + } else if(((((a12==8)&&((a27==1)&&(((a20==1)&&((a4==1)&&(!(a5==1)&&(((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==4))&&(a3==8)))))&&(a0==1))))&&(a15==1))&&!(a6==1))){ + if((a22==1)){ + a5 = 1; + a4 = 0; + a22 = 0; + a0 = 0; + a18 = 0; + a12 = 10; + }else{ + a12 = 10; + a18 = 1; + a3 = 7; + a22 = 1; + a5 = 1; + } + return 21; + } else if((((a27==1)&&((!(a5==1)&&(!(a4==1)&&(((!(a0==1)&&((input==2)&&((((a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&(a18==1)))||((a3==7)&&(!(a18==1)&&!(a22==1)))))))&&(a20==1))&&(a12==10))))&&(a6==1)))&&(a15==1))){ + a18 = 1; + a4 = 1; + a5 = 1; + a22 = 1; + a3 = 4; + a0 = 1; + a12 = 8; + return -1; + } else if(((a27==1)&&((((a4==1)&&((a15==1)&&((((input==3)&&((!(a6==1)&&(((a22==1)&&!(a18==1))&&(a3==4)))||(((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1)))))&&!(a0==1))&&(a5==1))))&&(a12==11))&&(a20==1)))){ + a3 = 8; + a4 = 0; + a0 = 1; + a6 = 0; + a15 = 0; + a22 = 0; + a18 = 1; + a12 = 10; + return -1; + } else if((!(a5==1)&&(!(a0==1)&&((a6==1)&&((a3==5)&&(!(a27==1)&&((a20==1)&&(!(a4==1)&&((a15==1)&&((a12==8)&&((input==5)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))))))))){ + if((a18==1)){ + a5 = 1; + a18 = 0; + a0 = 1; + a22 = 1; + a3 = 7; + a27 = 1; + }else{ + a27 = 1; + a6 = 0; + a5 = 1; + a0 = 1; + a4 = 1; + a22 = 1; + a3 = 6; + a18 = 0; + } + return 26; + } else if(((((a18==1)&&(((((a4==1)&&((!(a15==1)&&(((a3==4)&&(input==1))&&(a27==1)))&&!(a6==1)))&&(a22==1))&&(a20==1))&&!(a0==1)))&&(a12==10))&&(a5==1))){ + a5 = 0; + a18 = 0; + a12 = 11; + a0 = 1; + a3 = 7; + a27 = 0; + a22 = 0; + return -1; + } else if(((a18==1)&&(((!(a5==1)&&((a22==1)&&(((a0==1)&&((a20==1)&&(!(a4==1)&&(((input==4)&&(a27==1))&&(a15==1)))))&&!(a6==1))))&&(a12==10))&&(a3==6)))){ + a12 = 8; + a6 = 1; + a5 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if(((!(a0==1)&&(!(a4==1)&&(((a15==1)&&(!(a27==1)&&((a12==9)&&(((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==3))&&!(a6==1)))))&&(a20==1))))&&!(a5==1))){ + a18 = 1; + a0 = 1; + a12 = 11; + a22 = 1; + a15 = 0; + a3 = 6; + a6 = 1; + a27 = 1; + return 21; + } else if(((a15==1)&&((a22==1)&&((a27==1)&&((a12==11)&&((a3==5)&&((a18==1)&&((!(a5==1)&&((!(a4==1)&&((a6==1)&&(input==2)))&&(a20==1)))&&!(a0==1))))))))){ + a12 = 10; + a3 = 4; + a22 = 0; + a15 = 0; + a4 = 1; + a5 = 1; + a18 = 0; + a0 = 1; + return -1; + } else if(((a15==1)&&((((a0==1)&&(((a27==1)&&(((a4==1)&&((((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==6)))&&(a5==1)))&&(a20==1)))&&!(a6==1))&&(a12==12)))){ + if((a3==5)){ + a4 = 0; + a22 = 1; + a0 = 0; + a18 = 0; + a3 = 4; + a12 = 11; + }else{ + a12 = 11; + a6 = 1; + a5 = 0; + a3 = 5; + a18 = 0; + a22 = 1; + a15 = 0; + } + return -1; + } else if((((a6==1)&&(((a3==4)&&((a22==1)&&(((a20==1)&&(!(a27==1)&&((!(a15==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&!(a5==1))))&&!(a4==1))))&&(a0==1)))&&(a12==11))){ + a12 = 8; + a15 = 1; + a27 = 1; + a18 = 1; + a5 = 1; + a4 = 1; + return -1; + } else if(((a20==1)&&((a3==8)&&(((((a6==1)&&(((!(a0==1)&&((input==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))))&&(a4==1))&&!(a5==1)))&&!(a27==1))&&(a12==8))&&(a15==1))))){ + a4 = 0; + a3 = 6; + a5 = 1; + a0 = 1; + a22 = 0; + a27 = 1; + a18 = 0; + return -1; + } else if((!(a5==1)&&(((((((a15==1)&&((!(a4==1)&&((input==5)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a12==11)))&&(a20==1))&&!(a6==1))&&(a0==1))&&(a3==8))&&!(a27==1)))){ + a18 = 1; + a22 = 0; + a4 = 1; + a3 = 7; + a6 = 1; + a27 = 1; + return 24; + } else if(((((((((!(a0==1)&&((input==5)&&((((a22==1)&&(a18==1))&&(a3==6))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1)))))))&&!(a15==1))&&(a12==11))&&!(a5==1))&&(a20==1))&&(a27==1))&&(a6==1))&&!(a4==1))){ + a22 = 1; + a15 = 1; + a3 = 4; + a27 = 0; + a18 = 1; + a0 = 1; + a12 = 8; + return -1; + } else if((((a6==1)&&((!(a22==1)&&(((((!(a0==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&(a20==1)))&&!(a27==1))&&(a5==1))&&(a12==9))&&!(a15==1)))&&(a3==4)))&&(a4==1))){ + a3 = 6; + a6 = 0; + a12 = 11; + a18 = 0; + a5 = 0; + return 26; + } else if(((a6==1)&&((a12==9)&&((a20==1)&&(((a0==1)&&(!(a4==1)&&(((a3==4)&&(!(a15==1)&&(((input==4)&&(a18==1))&&(a22==1))))&&!(a5==1))))&&!(a27==1)))))){ + a12 = 8; + a4 = 1; + a27 = 1; + a15 = 1; + a5 = 1; + return -1; + } else if(((((a27==1)&&(!(a0==1)&&(((a6==1)&&(!(a22==1)&&((a3==7)&&(!(a4==1)&&((((a18==1)||!(a18==1))&&(input==2))&&!(a15==1))))))&&(a20==1))))&&(a12==12))&&!(a5==1))){ + if((a15==1)){ + a12 = 8; + a27 = 0; + a18 = 1; + a15 = 1; + a22 = 1; + a3 = 5; + }else{ + a18 = 0; + a5 = 1; + a12 = 8; + a22 = 1; + a15 = 1; + a4 = 1; + a0 = 1; + } + return -1; + } else if(((a12==11)&&((((a5==1)&&(((!(a18==1)&&((a4==1)&&(!(a6==1)&&((a22==1)&&((input==4)&&(a0==1))))))&&(a20==1))&&(a3==6)))&&!(a27==1))&&(a15==1)))){ + a3 = 7; + a15 = 0; + a27 = 1; + a12 = 12; + a6 = 1; + return 24; + } else if((((a20==1)&&(((!(a4==1)&&(((a15==1)&&(!(a0==1)&&((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==6))&&(a6==1))))&&(a5==1)))&&(a27==1))&&(a3==8)))&&(a12==10))){ + a3 = 4; + a18 = 0; + a6 = 0; + a4 = 1; + a22 = 0; + a0 = 1; + return 26; + } else if((((a20==1)&&((!(a15==1)&&(!(a27==1)&&(((((a5==1)&&((((a18==1)||!(a18==1))&&(input==3))&&(a0==1)))&&(a22==1))&&(a12==10))&&(a3==6))))&&(a6==1)))&&(a4==1))){ + a4 = 0; + a3 = 5; + a22 = 0; + a27 = 1; + a6 = 0; + a18 = 1; + return 21; + } else if((!(a5==1)&&((a4==1)&&(((a0==1)&&((((a20==1)&&(!(a6==1)&&((input==4)&&((((a22==1)&&(a18==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&(a18==1)))||((a3==7)&&(!(a22==1)&&!(a18==1))))))))&&(a27==1))&&!(a15==1)))&&(a12==12))))){ + a5 = 1; + a22 = 1; + a18 = 0; + a3 = 7; + a12 = 10; + return 21; + } else if(((a20==1)&&((!(a27==1)&&(((((a3==7)&&((((input==1)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a15==1))&&(a12==9)))&&(a4==1))&&(a0==1))&&!(a5==1)))&&!(a6==1)))){ + a27 = 1; + a18 = 1; + a5 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + a6 = 1; + return -1; + } else if((((a4==1)&&(!(a0==1)&&(((a27==1)&&((((a12==11)&&((a3==6)&&((((a18==1)||!(a18==1))&&(input==1))&&(a20==1))))&&(a5==1))&&!(a15==1)))&&(a22==1))))&&(a6==1))){ + a12 = 10; + a18 = 0; + a15 = 1; + a0 = 1; + a3 = 4; + return -1; + } else if(((a20==1)&&((!(a5==1)&&((((((((a3==8)&&((a12==8)&&(input==6)))&&!(a4==1))&&!(a22==1))&&!(a27==1))&&!(a6==1))&&!(a15==1))&&(a0==1)))&&!(a18==1)))){ + if((a6==1)){ + a0 = 0; + a3 = 6; + a6 = 1; + a27 = 1; + a22 = 1; + a12 = 10; + }else{ + a18 = 1; + a12 = 11; + a3 = 6; + a27 = 1; + } + return 26; + } else if((((a27==1)&&(((a20==1)&&((((((a12==12)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==4)))&&(a15==1))&&(a4==1))&&(a0==1))&&!(a6==1)))&&(a3==4)))&&!(a5==1))){ + a22 = 1; + a3 = 7; + a18 = 0; + a12 = 11; + return 26; + } else if((((a0==1)&&((((((!(a4==1)&&((a5==1)&&((a12==10)&&((input==3)&&!(a6==1)))))&&!(a18==1))&&(a20==1))&&(a22==1))&&(a27==1))&&!(a15==1)))&&(a3==8))){ + a27 = 0; + a3 = 7; + a4 = 1; + a15 = 1; + a18 = 1; + return 21; + } else if(((a20==1)&&(!(a15==1)&&((!(a0==1)&&(((((((((a22==1)&&!(a18==1))&&!(a4==1))&&(a3==4))&&(a6==1))||((((a3==8)&&((a4==1)&&(!(a22==1)&&!(a18==1))))&&!(a6==1))||((a6==1)&&((((a22==1)&&(a18==1))&&!(a4==1))&&(a3==4)))))&&(input==3))&&(a5==1))&&(a27==1)))&&(a12==9))))){ + a15 = 1; + a22 = 1; + a12 = 8; + a4 = 1; + a3 = 4; + a6 = 1; + a0 = 1; + a18 = 1; + return -1; + } else if((!(a5==1)&&((a6==1)&&((!(a0==1)&&((((a20==1)&&(((a12==12)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==1)))&&!(a15==1)))&&(a27==1))&&(a3==8)))&&(a4==1))))){ + a0 = 1; + a27 = 0; + a12 = 11; + a18 = 0; + a4 = 0; + a6 = 0; + a3 = 7; + a22 = 0; + a5 = 1; + return 21; + } else if(((a12==8)&&(!(a15==1)&&((a3==7)&&((((a6==1)&&(!(a0==1)&&((!(a4==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==5)))&&(a5==1))))&&(a20==1))&&!(a27==1)))))){ + if((a22==1)){ + a18 = 0; + a27 = 1; + a22 = 0; + a0 = 1; + a15 = 1; + a4 = 1; + }else{ + a12 = 11; + a5 = 0; + a22 = 0; + a3 = 8; + a6 = 0; + a0 = 1; + a18 = 1; + } + return -1; + } else if((((!(a6==1)&&((a18==1)&&((a3==6)&&(!(a27==1)&&((((a12==10)&&(!(a15==1)&&((input==2)&&(a5==1))))&&!(a22==1))&&(a4==1))))))&&!(a0==1))&&(a20==1))){ + a12 = 8; + a6 = 1; + a15 = 1; + a3 = 8; + a27 = 1; + a4 = 0; + a0 = 1; + return 21; + } else if((((((a5==1)&&((!(a27==1)&&((a0==1)&&(!(a4==1)&&((((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==5)))))&&!(a6==1)))&&!(a15==1))&&(a12==11))&&(a20==1))){ + a22 = 0; + a12 = 10; + a6 = 1; + a15 = 1; + a3 = 7; + a18 = 0; + a4 = 1; + return -1; + } else if((!(a15==1)&&(!(a6==1)&&(!(a5==1)&&((((!(a0==1)&&((a27==1)&&((input==5)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5)))||((a3==6)&&((a22==1)&&(a18==1)))))))&&(a12==9))&&(a20==1))&&(a4==1)))))){ + a12 = 11; + a15 = 1; + a3 = 6; + a0 = 1; + a22 = 1; + a18 = 1; + return 24; + } else if(((((a20==1)&&((a6==1)&&(((a4==1)&&(((a5==1)&&(((a18==1)&&((a3==4)&&(input==6)))&&(a27==1)))&&!(a0==1)))&&!(a15==1))))&&(a12==8))&&!(a22==1))){ + a6 = 0; + a18 = 0; + a0 = 1; + a4 = 0; + a15 = 1; + return 24; + } else if(((a15==1)&&(!(a6==1)&&(((a12==10)&&((((((input==4)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1)))))&&!(a0==1))&&(a20==1))&&(a27==1))&&!(a5==1)))&&(a4==1))))){ + a15 = 0; + a4 = 0; + a3 = 4; + a22 = 1; + a0 = 1; + a12 = 11; + a18 = 1; + a27 = 0; + return 26; + } else if((((a27==1)&&(((input==3)&&(((((a3==8)&&(!(a4==1)&&((a12==10)&&((!(a5==1)&&(!(a22==1)&&!(a18==1)))&&!(a15==1)))))&&!(a6==1))||(((a3==4)&&((a4==1)&&(((a15==1)&&(((a22==1)&&(a18==1))&&(a5==1)))&&(a12==11))))&&(a6==1)))||(((a3==4)&&((a4==1)&&((((!(a18==1)&&(a22==1))&&(a5==1))&&(a15==1))&&(a12==11))))&&(a6==1))))&&(a20==1)))&&(a0==1))){ + a4 = 1; + a5 = 1; + a22 = 1; + a15 = 1; + a6 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((((a15==1)&&((((((!(a27==1)&&(!(a0==1)&&(!(a18==1)&&((input==6)&&(a12==9)))))&&!(a6==1))&&(a5==1))&&(a3==6))&&(a20==1))&&(a4==1)))&&(a22==1))){ + if((a18==1)){ + a6 = 1; + a12 = 8; + a0 = 1; + a27 = 1; + }else{ + a27 = 1; + a4 = 0; + a12 = 8; + a22 = 0; + a0 = 1; + a6 = 1; + } + return 21; + } else if(((!(a15==1)&&(!(a6==1)&&((a12==8)&&(!(a0==1)&&((!(a4==1)&&(((a27==1)&&((a3==5)&&((input==6)&&((a18==1)||!(a18==1)))))&&(a22==1)))&&(a5==1))))))&&(a20==1))){ + a3 = 4; + a4 = 1; + a15 = 1; + a0 = 1; + a18 = 1; + a6 = 1; + return -1; + } else if(((a22==1)&&((((((a12==9)&&((((((input==1)&&!(a27==1))&&!(a18==1))&&(a4==1))&&!(a5==1))&&!(a0==1)))&&(a20==1))&&!(a6==1))&&(a15==1))&&(a3==6)))){ + if((a18==1)){ + a6 = 1; + a12 = 12; + a0 = 1; + a27 = 1; + }else{ + a12 = 8; + a3 = 4; + a15 = 0; + a5 = 1; + a6 = 1; + } + return -1; + } else if(((a12==12)&&((a27==1)&&((((!(a18==1)&&((((((a22==1)&&(input==6))&&(a15==1))&&(a4==1))&&(a0==1))&&!(a5==1)))&&(a3==7))&&(a6==1))&&(a20==1))))){ + a5 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((!(a5==1)&&(((a6==1)&&(!(a4==1)&&((a0==1)&&((a15==1)&&(((((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==4))&&(a3==8))&&(a12==8))&&(a20==1))))))&&!(a27==1)))){ + a18 = 1; + a12 = 11; + a5 = 1; + a15 = 0; + a4 = 1; + a22 = 1; + a27 = 1; + return 26; + } else if((((((!(a6==1)&&(((a3==6)&&(!(a15==1)&&((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==4))&&(a27==1))))&&(a12==8)))&&!(a5==1))&&(a20==1))&&(a4==1))&&!(a0==1))){ + a6 = 1; + a0 = 1; + a18 = 1; + a22 = 1; + a3 = 4; + a5 = 1; + a15 = 1; + return -1; + } else if(((a20==1)&&((a5==1)&&(!(a22==1)&&(((a12==10)&&((((a18==1)&&((((a0==1)&&(input==6))&&!(a4==1))&&!(a15==1)))&&(a3==5))&&!(a6==1)))&&!(a27==1)))))){ + a15 = 1; + a22 = 1; + return 21; + } else if(((((((((((a22==1)&&(((input==5)&&(a5==1))&&(a12==10)))&&(a6==1))&&!(a0==1))&&(a20==1))&&!(a15==1))&&!(a18==1))&&!(a4==1))&&(a3==5))&&!(a27==1))){ + if((a0==1)){ + a22 = 0; + a15 = 1; + a4 = 1; + a0 = 1; + a12 = 8; + a6 = 0; + a18 = 1; + a27 = 1; + }else{ + a5 = 0; + a22 = 0; + a4 = 1; + a3 = 4; + a15 = 1; + a27 = 1; + a12 = 9; + } + return -1; + } else if((!(a5==1)&&(((!(a27==1)&&((a12==8)&&(((a20==1)&&((a15==1)&&((input==5)&&(((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1))))||((a3==5)&&((a22==1)&&(a18==1)))))))&&(a6==1))))&&(a4==1))&&(a0==1)))){ + a18 = 0; + a5 = 1; + a4 = 0; + a12 = 12; + a27 = 1; + a22 = 0; + a3 = 7; + a15 = 0; + return -1; + } else if(((a4==1)&&((a20==1)&&(!(a15==1)&&(((a3==7)&&((a5==1)&&(((a27==1)&&(!(a6==1)&&((a0==1)&&((input==6)&&((a18==1)||!(a18==1))))))&&(a22==1))))&&(a12==12)))))){ + a12 = 8; + a18 = 1; + a6 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if(((((((((((input==3)&&(((a3==5)&&((a18==1)&&(a22==1)))||(((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a22==1)&&!(a18==1))))))&&!(a6==1))&&(a4==1))&&(a20==1))&&!(a0==1))&&(a15==1))&&(a5==1))&&(a12==11))&&!(a27==1))){ + a12 = 8; + a18 = 1; + a3 = 6; + a27 = 1; + a6 = 1; + a22 = 0; + a0 = 1; + return -1; + } else if((((((a3==5)&&((a12==9)&&(((!(a0==1)&&((a27==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==3))))&&(a6==1))&&(a15==1))))&&!(a4==1))&&(a20==1))&&(a5==1))){ + a22 = 1; + a4 = 1; + a3 = 4; + a0 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if((((((a4==1)&&((!(a6==1)&&((a15==1)&&((a20==1)&&(!(a5==1)&&((input==1)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))))))&&(a27==1)))&&(a12==9))&&!(a0==1))&&(a3==5))){ + a5 = 1; + a0 = 1; + a6 = 1; + a4 = 0; + a22 = 0; + a18 = 0; + a12 = 12; + a3 = 4; + return -1; + } else if((!(a5==1)&&((a18==1)&&((a15==1)&&((a27==1)&&((a0==1)&&((a20==1)&&((((((input==1)&&(a3==7))&&(a4==1))&&(a6==1))&&(a22==1))&&(a12==10))))))))){ + a5 = 1; + a3 = 8; + a6 = 0; + a4 = 0; + return -1; + } else if((!(a0==1)&&((a15==1)&&(!(a5==1)&&(((((a4==1)&&(!(a6==1)&&((((((a18==1)&&!(a22==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==6))))&&(a12==9))&&(a20==1))&&!(a27==1)))))){ + a5 = 1; + a6 = 1; + a27 = 1; + a18 = 1; + a22 = 1; + a12 = 8; + a0 = 1; + a3 = 5; + return -1; + } else if(((a12==11)&&(((a27==1)&&(((((((a20==1)&&((input==3)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))))&&(a4==1))&&!(a5==1))&&!(a0==1))&&(a3==7))&&(a15==1)))&&(a6==1)))){ + a18 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + a0 = 1; + a22 = 1; + return -1; + } else if((!(a15==1)&&((a5==1)&&(!(a4==1)&&(!(a6==1)&&(!(a27==1)&&((a20==1)&&(((a3==5)&&((a12==9)&&((input==6)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&!(a0==1))))))))){ + a0 = 1; + a22 = 1; + a15 = 1; + a3 = 8; + a18 = 1; + a5 = 0; + a12 = 12; + a27 = 1; + return 26; + } else if(((((a20==1)&&((a12==10)&&(((a18==1)&&(!(a4==1)&&(((!(a27==1)&&((a3==8)&&(input==4)))&&!(a6==1))&&!(a0==1))))&&!(a5==1))))&&(a15==1))&&(a22==1))){ + a5 = 1; + a18 = 0; + a12 = 8; + a0 = 1; + a27 = 1; + a4 = 1; + return 21; + } else if(((a12==8)&&((a3==7)&&((a20==1)&&((a15==1)&&(!(a4==1)&&(((!(a5==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==5))&&!(a6==1)))&&(a27==1))&&!(a0==1)))))))){ + a6 = 1; + a4 = 1; + a18 = 1; + a22 = 1; + a5 = 1; + a3 = 4; + a0 = 1; + return -1; + } else if(((a3==7)&&((!(a0==1)&&(!(a15==1)&&((a12==9)&&(!(a5==1)&&(((!(a4==1)&&(!(a6==1)&&((a20==1)&&(input==6))))&&(a27==1))&&(a18==1))))))&&(a22==1)))){ + if((a20==1)){ + a22 = 0; + a3 = 6; + a12 = 10; + a6 = 1; + a4 = 1; + a5 = 1; + }else{ + a0 = 1; + a15 = 1; + a3 = 6; + a4 = 1; + a22 = 0; + a5 = 1; + a18 = 0; + } + return 21; + } else if(((a27==1)&&((((a15==1)&&((((a12==11)&&(((input==5)&&(((!(a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))))&&(a20==1)))&&(a4==1))&&!(a6==1)))&&(a5==1))&&(a0==1)))){ + a18 = 1; + a6 = 1; + a5 = 0; + a22 = 1; + a12 = 10; + a3 = 5; + a15 = 0; + return -1; + } else if(((a3==4)&&(!(a15==1)&&((!(a5==1)&&((((((a20==1)&&((a12==12)&&(!(a22==1)&&(input==4))))&&!(a27==1))&&(a0==1))&&!(a6==1))&&(a18==1)))&&!(a4==1))))){ + a3 = 7; + a12 = 10; + a15 = 1; + a18 = 0; + return 21; + } else if(((a4==1)&&((a20==1)&&((a15==1)&&(!(a27==1)&&((a6==1)&&(((!(a18==1)&&((a12==11)&&(((a0==1)&&(input==4))&&(a3==5))))&&(a22==1))&&(a5==1)))))))){ + a12 = 8; + a3 = 4; + a18 = 1; + a27 = 1; + return -1; + } else if((((a12==8)&&((a5==1)&&((a15==1)&&(((a6==1)&&(!(a4==1)&&(((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==4))&&(a20==1))))&&!(a0==1)))))&&!(a27==1))){ + if((a4==1)){ + a3 = 5; + a4 = 1; + a6 = 0; + a22 = 0; + a12 = 9; + a18 = 0; + a27 = 1; + }else{ + a22 = 1; + a3 = 4; + a27 = 1; + a0 = 1; + a18 = 0; + } + return 26; + } else if(((((((a20==1)&&(((a6==1)&&((a4==1)&&((a27==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&!(a15==1)))))&&!(a5==1)))&&(a22==1))&&(a12==12))&&(a3==5))&&!(a0==1))){ + a4 = 0; + a15 = 1; + a3 = 8; + a12 = 8; + a18 = 0; + a5 = 1; + a0 = 1; + return 26; + } else if((!(a27==1)&&(((a4==1)&&((a12==8)&&(!(a15==1)&&(((a0==1)&&((a3==6)&&((a6==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==4)))))&&(a20==1)))))&&!(a5==1)))){ + a18 = 0; + a22 = 1; + a5 = 1; + a3 = 8; + a4 = 0; + a15 = 1; + return -1; + } else if(((a0==1)&&(((a27==1)&&(!(a22==1)&&((a15==1)&&((a6==1)&&((a12==10)&&((!(a5==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a3==7)))&&(a4==1)))))))&&(a20==1)))){ + a15 = 0; + a6 = 0; + a18 = 0; + a22 = 1; + return 21; + } else if(((a3==5)&&(((a12==9)&&((a5==1)&&(((a15==1)&&((!(a0==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==4))&&(a27==1)))&&(a6==1)))&&(a20==1))))&&(a4==1)))){ + a18 = 0; + a0 = 1; + a6 = 0; + a5 = 0; + a12 = 11; + a3 = 8; + a22 = 0; + return 21; + } else if(((((!(a22==1)&&((a27==1)&&(((a0==1)&&((a6==1)&&((a3==8)&&((a20==1)&&((a18==1)&&(input==4))))))&&!(a4==1))))&&(a15==1))&&(a12==11))&&(a5==1))){ + a3 = 4; + a4 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if(((a5==1)&&(((a6==1)&&((((((a3==7)&&(!(a15==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==6))))&&(a12==12))&&!(a0==1))&&(a20==1))&&(a27==1)))&&!(a4==1)))){ + a6 = 0; + a22 = 1; + a18 = 0; + a15 = 1; + a12 = 10; + a4 = 1; + return 21; + } else if(((!(a4==1)&&(!(a15==1)&&(((!(a0==1)&&(((a22==1)&&((((a18==1)&&(input==4))&&(a20==1))&&(a12==8)))&&(a3==4)))&&!(a5==1))&&(a6==1))))&&(a27==1))){ + a0 = 1; + a15 = 1; + a5 = 1; + a4 = 1; + return -1; + } else if(((a20==1)&&(((a0==1)&&((a12==9)&&(((a4==1)&&(((a15==1)&&((a3==7)&&((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&!(a6==1)))&&!(a27==1))))&&!(a5==1)))){ + a12 = 8; + a18 = 1; + a6 = 1; + a5 = 1; + a3 = 4; + a22 = 1; + a27 = 1; + return -1; + } else if(((((((a3==6)&&((a27==1)&&((a15==1)&&((a20==1)&&(((input==6)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&!(a5==1))))))&&(a12==11))&&!(a4==1))&&(a0==1))&&(a6==1))){ + a6 = 0; + a18 = 0; + a3 = 8; + a22 = 1; + return 26; + } else if((!(a0==1)&&((a27==1)&&((!(a18==1)&&(!(a15==1)&&(((a22==1)&&(((a20==1)&&(((a5==1)&&(input==2))&&(a3==8)))&&!(a6==1)))&&(a12==10))))&&(a4==1))))){ + a4 = 0; + a3 = 7; + a0 = 1; + a12 = 12; + return -1; + } else if(((a20==1)&&(!(a27==1)&&((a15==1)&&((a4==1)&&(((a12==10)&&(!(a5==1)&&(((a3==5)&&((input==4)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))))&&!(a6==1))))&&(a0==1))))))){ + a6 = 1; + a3 = 4; + a5 = 1; + a18 = 1; + a22 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if((((((((a6==1)&&(((!(a27==1)&&((a12==9)&&(((a18==1)||!(a18==1))&&(input==3))))&&(a5==1))&&(a22==1)))&&(a4==1))&&(a0==1))&&!(a15==1))&&(a3==4))&&(a20==1))){ + a5 = 0; + a27 = 1; + a3 = 6; + a18 = 1; + a12 = 12; + a22 = 0; + return 24; + } else if(((((a6==1)&&((((!(a0==1)&&(((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==2))&&(a5==1)))&&(a20==1))&&(a12==11))&&!(a27==1)))&&(a4==1))&&!(a15==1))){ + a12 = 9; + a27 = 1; + a18 = 0; + a4 = 0; + a22 = 1; + a5 = 0; + a3 = 5; + return -1; + } else if((((!(a4==1)&&((a3==4)&&((a20==1)&&(((a0==1)&&((((input==3)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a27==1))&&(a12==12)))&&!(a5==1)))))&&(a6==1))&&(a15==1))){ + a18 = 1; + a5 = 1; + a12 = 8; + a22 = 1; + a4 = 1; + a27 = 1; + return -1; + } else if(((((a0==1)&&((!(a6==1)&&((a20==1)&&((!(a27==1)&&((input==6)&&((((a22==1)&&(a18==1))&&(a3==5))||((((a18==1)&&!(a22==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4))))))&&(a4==1))))&&(a5==1)))&&(a12==10))&&!(a15==1))){ + if((a12==12)){ + a22 = 1; + a3 = 7; + a6 = 1; + a12 = 12; + a18 = 1; + a0 = 0; + a27 = 1; + }else{ + a4 = 0; + a22 = 0; + a3 = 7; + a18 = 1; + a27 = 1; + a5 = 0; + } + return -1; + } else if(((a12==10)&&(((a22==1)&&((a15==1)&&((a18==1)&&(((a6==1)&&(((a3==7)&&((a5==1)&&(!(a0==1)&&(input==6))))&&(a20==1)))&&(a27==1)))))&&(a4==1)))){ + a15 = 0; + a3 = 5; + a18 = 0; + a5 = 0; + a6 = 0; + a12 = 11; + return -1; + } else if((!(a5==1)&&(((a0==1)&&(((a22==1)&&((a3==6)&&((a18==1)&&(((((a6==1)&&(input==2))&&(a12==10))&&(a4==1))&&!(a27==1)))))&&(a20==1)))&&(a15==1)))){ + a5 = 1; + a27 = 1; + a12 = 11; + return -1; + } else if(((a15==1)&&((a3==4)&&(((a6==1)&&((a20==1)&&((a5==1)&&((a12==12)&&(((a27==1)&&((input==3)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a0==1))))))&&!(a4==1))))){ + a4 = 1; + a22 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((a6==1)&&(!(a5==1)&&((a3==7)&&(((!(a27==1)&&((a12==8)&&((a20==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&!(a0==1)))))&&!(a15==1))&&!(a4==1)))))){ + a3 = 4; + a0 = 1; + a5 = 1; + a15 = 1; + a4 = 1; + a6 = 0; + a22 = 1; + a27 = 1; + a18 = 0; + return -1; + } else if(((a12==10)&&((!(a5==1)&&((!(a4==1)&&((a0==1)&&((((((a3==6)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5))))&&(input==3))&&(a20==1))&&!(a27==1))))&&!(a6==1)))&&!(a15==1)))){ + a4 = 1; + a12 = 12; + a15 = 1; + a5 = 1; + a3 = 7; + a22 = 1; + a18 = 0; + return 21; + } else if((!(a22==1)&&((((a3==7)&&((a18==1)&&((((a0==1)&&((a6==1)&&((!(a4==1)&&(input==4))&&(a15==1))))&&(a12==10))&&(a5==1))))&&(a20==1))&&(a27==1)))){ + a3 = 8; + a18 = 0; + a4 = 1; + return -1; + } else if((((a12==12)&&(!(a4==1)&&(!(a0==1)&&(((a5==1)&&(((((((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==3))&&(a20==1))&&(a15==1)))&&(a27==1)))))&&(a6==1))){ + a6 = 0; + a22 = 0; + a15 = 0; + a12 = 10; + a18 = 1; + a3 = 5; + a0 = 1; + a27 = 0; + return 26; + } else if((((a5==1)&&((((((((((input==1)&&!(a6==1))&&(a15==1))&&!(a22==1))&&(a0==1))&&(a20==1))&&(a27==1))&&(a3==7))&&(a12==12))&&(a18==1)))&&(a4==1))){ + a6 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + return -1; + } else if(((a15==1)&&(((a5==1)&&((a20==1)&&(!(a6==1)&&((a12==12)&&(!(a0==1)&&(((!(a4==1)&&((input==4)&&((a18==1)||!(a18==1))))&&(a27==1))&&(a22==1)))))))&&(a3==4)))){ + a3 = 7; + a12 = 8; + a18 = 1; + a0 = 1; + return 24; + } else if((((((!(a4==1)&&(!(a6==1)&&((a15==1)&&((a12==10)&&((a0==1)&&((input==1)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))))&&(a27==1))&&!(a5==1))&&(a3==8))&&(a20==1))){ + a5 = 1; + a3 = 7; + a18 = 1; + a15 = 0; + a22 = 0; + return -1; + } else if(((a3==8)&&(((a27==1)&&((((!(a5==1)&&(((a12==11)&&((input==3)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a4==1)))&&!(a0==1))&&!(a15==1))&&(a20==1)))&&(a6==1)))){ + a3 = 7; + a12 = 12; + a22 = 0; + a4 = 1; + a18 = 1; + a6 = 0; + a0 = 1; + return -1; + } else if(((!(a0==1)&&((!(a27==1)&&((a20==1)&&((a12==11)&&(!(a6==1)&&(!(a18==1)&&((a4==1)&&((!(a22==1)&&(input==3))&&!(a5==1))))))))&&(a15==1)))&&(a3==6))){ + a18 = 1; + a12 = 9; + a27 = 1; + a3 = 7; + a4 = 0; + a6 = 1; + return -1; + } else if(((a22==1)&&(!(a27==1)&&((((a0==1)&&(((!(a4==1)&&((((input==4)&&(a20==1))&&(a18==1))&&(a3==8)))&&(a12==10))&&!(a15==1)))&&!(a6==1))&&(a5==1))))){ + a3 = 6; + a4 = 1; + a18 = 0; + a6 = 1; + a12 = 11; + return 26; + } else if((((a3==4)&&(!(a15==1)&&((a22==1)&&((a4==1)&&((a6==1)&&(((a27==1)&&((((input==2)&&((a18==1)||!(a18==1)))&&(a20==1))&&!(a0==1)))&&(a12==11)))))))&&!(a5==1))){ + a12 = 8; + a5 = 1; + a15 = 1; + a18 = 1; + a0 = 1; + return -1; + } else if(((a5==1)&&((a12==11)&&((((((((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==3))&&!(a0==1))&&(a27==1))&&(a4==1))&&(a20==1))&&!(a15==1))&&(a6==1))))){ + a3 = 7; + a27 = 0; + a22 = 0; + a15 = 1; + a18 = 0; + a6 = 0; + a0 = 1; + a12 = 8; + a5 = 0; + return -1; + } else if((((!(a15==1)&&((((((((a18==1)&&((a4==1)&&(input==4)))&&(a5==1))&&!(a27==1))&&(a12==9))&&(a3==7))&&!(a0==1))&&(a20==1)))&&!(a22==1))&&(a6==1))){ + if((a18==1)){ + a12 = 10; + a5 = 0; + a4 = 0; + a6 = 0; + a3 = 6; + }else{ + a3 = 5; + a15 = 1; + a12 = 11; + a6 = 0; + a4 = 0; + a22 = 1; + a27 = 1; + } + return -1; + } else if((((((a4==1)&&(!(a0==1)&&(!(a15==1)&&(!(a6==1)&&((((a3==5)&&((a12==11)&&(input==6)))&&!(a22==1))&&(a27==1))))))&&!(a18==1))&&(a20==1))&&(a5==1))){ + a6 = 1; + a27 = 0; + a0 = 1; + a5 = 0; + a12 = 8; + a15 = 1; + a3 = 7; + a18 = 1; + a22 = 1; + return -1; + } else if(((a15==1)&&(((a3==5)&&((a20==1)&&(!(a5==1)&&(!(a6==1)&&((((a12==11)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==4)))&&!(a27==1))&&(a4==1))))))&&!(a0==1)))){ + if((a0==1)){ + a27 = 1; + a12 = 8; + a5 = 1; + a0 = 1; + a22 = 1; + a18 = 1; + }else{ + a12 = 8; + a18 = 0; + a0 = 1; + a3 = 6; + a5 = 1; + a4 = 0; + a6 = 1; + a27 = 1; + a22 = 1; + } + return 26; + } else if((((a15==1)&&((a0==1)&&(((!(a4==1)&&((a20==1)&&((a12==8)&&(((((a18==1)&&(a22==1))&&(a3==8))||(((!(a22==1)&&(a18==1))&&(a3==7))||((a3==7)&&(!(a18==1)&&!(a22==1)))))&&(input==5)))))&&!(a5==1))&&!(a6==1))))&&!(a27==1))){ + a22 = 0; + a4 = 1; + a5 = 1; + a3 = 6; + a12 = 12; + a6 = 1; + a18 = 0; + return 26; + } else if((!(a0==1)&&(((a27==1)&&(!(a5==1)&&(((a15==1)&&(((a20==1)&&((a12==11)&&((input==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))))&&(a6==1)))&&!(a4==1))))&&(a3==4)))){ + a15 = 0; + a4 = 1; + a22 = 1; + a3 = 5; + a12 = 10; + a18 = 1; + a0 = 1; + return 21; + } else if((((!(a6==1)&&(!(a15==1)&&(((((((!(a18==1)&&(input==4))&&(a27==1))&&!(a22==1))&&(a3==6))&&(a20==1))&&!(a4==1))&&(a12==10))))&&!(a5==1))&&!(a0==1))){ + a0 = 1; + a15 = 1; + a3 = 8; + return 26; + } else if((!(a5==1)&&((a20==1)&&(((!(a27==1)&&((a6==1)&&((a15==1)&&((a12==11)&&((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==5))&&(a3==8))))))&&(a0==1))&&(a4==1))))){ + a3 = 4; + a27 = 1; + a18 = 1; + a12 = 8; + a22 = 1; + a5 = 1; + return -1; + } else if((!(a0==1)&&(!(a5==1)&&(((((a27==1)&&((a4==1)&&(((a15==1)&&(((a3==5)&&(input==2))&&(a18==1)))&&(a12==10))))&&!(a6==1))&&!(a22==1))&&(a20==1))))){ + a0 = 1; + a18 = 0; + a3 = 6; + a22 = 1; + a6 = 1; + return -1; + } else if((!(a0==1)&&(((a3==8)&&((a6==1)&&((a22==1)&&((a4==1)&&((a15==1)&&((a12==9)&&((a27==1)&&((((a18==1)||!(a18==1))&&(input==5))&&!(a5==1)))))))))&&(a20==1)))){ + a18 = 0; + a22 = 0; + a27 = 0; + a5 = 1; + a4 = 0; + a3 = 4; + a6 = 0; + a12 = 10; + a0 = 1; + return 21; + } else if((!(a15==1)&&((a12==8)&&((!(a0==1)&&((((a3==6)&&((!(a4==1)&&((input==2)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&!(a6==1)))&&(a5==1))&&(a27==1)))&&(a20==1))))){ + if((a4==1)){ + a3 = 5; + a15 = 1; + a18 = 0; + a22 = 0; + a5 = 0; + a6 = 1; + a12 = 10; + }else{ + a12 = 11; + a18 = 0; + a22 = 1; + } + return 21; + } else if(((a27==1)&&((a22==1)&&(((a5==1)&&(!(a18==1)&&((((a12==10)&&(!(a6==1)&&(((input==1)&&(a20==1))&&(a3==5))))&&!(a15==1))&&(a0==1))))&&(a4==1))))){ + a3 = 8; + return 21; + } else if(((a27==1)&&(((a12==9)&&(((a0==1)&&(!(a5==1)&&(((a3==5)&&((((input==6)&&((a18==1)||!(a18==1)))&&!(a15==1))&&(a6==1)))&&!(a4==1))))&&(a20==1)))&&!(a22==1)))){ + a18 = 1; + a12 = 8; + a3 = 4; + a15 = 1; + a5 = 1; + a4 = 1; + a22 = 1; + return -1; + } else if(((a27==1)&&((((a12==11)&&(((!(a4==1)&&((((input==2)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a6==1))&&(a20==1)))&&!(a0==1))&&(a5==1)))&&(a15==1))&&(a3==4)))){ + a22 = 1; + a6 = 1; + a18 = 0; + a12 = 10; + a0 = 1; + return 26; + } else if((((a0==1)&&((a5==1)&&(((((a27==1)&&(!(a6==1)&&((input==4)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==8)))||(((a22==1)&&!(a18==1))&&(a3==8))))))&&!(a4==1))&&(a20==1))&&(a12==12))))&&(a15==1))){ + a18 = 1; + a22 = 1; + a27 = 0; + a6 = 1; + a3 = 6; + return 21; + } else if(((a12==12)&&(!(a5==1)&&(((a27==1)&&(((a0==1)&&(((a6==1)&&((input==6)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))))&&(a20==1)))&&!(a4==1)))&&!(a15==1))))){ + a5 = 1; + a15 = 1; + a18 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((a12==11)&&((!(a6==1)&&(!(a5==1)&&(((a15==1)&&((a0==1)&&(((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==1))&&!(a4==1))&&(a3==5))))&&!(a27==1))))&&(a20==1)))){ + a27 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + a22 = 1; + a4 = 1; + a6 = 1; + a5 = 1; + return -1; + } else if(((a6==1)&&((a20==1)&&((((a12==12)&&(((!(a0==1)&&((input==4)&&(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a22==1)&&(a18==1))))))&&(a5==1))&&!(a15==1)))&&!(a4==1))&&(a27==1))))){ + a4 = 1; + a6 = 0; + a3 = 5; + a22 = 0; + a12 = 8; + a15 = 1; + a0 = 1; + a18 = 1; + return -1; + } else if(((((!(a27==1)&&(((a12==8)&&((((((!(a18==1)&&!(a22==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==4))&&!(a4==1))&&(a20==1)))&&(a5==1)))&&(a0==1))&&!(a6==1))&&(a15==1))){ + a3 = 7; + a27 = 1; + a0 = 0; + a22 = 0; + a18 = 1; + a12 = 10; + a5 = 0; + a15 = 0; + return 21; + } else if(((((((a3==7)&&((a27==1)&&(!(a0==1)&&(((a15==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==5)))&&!(a4==1)))))&&(a12==8))&&(a5==1))&&(a20==1))&&(a6==1))){ + a0 = 1; + a15 = 0; + a5 = 0; + a12 = 9; + a27 = 0; + a18 = 0; + a22 = 1; + return 21; + } else if(((a5==1)&&(!(a15==1)&&((a4==1)&&(!(a27==1)&&(!(a0==1)&&((!(a6==1)&&((a12==11)&&((((a3==6)&&(input==5))&&(a20==1))&&!(a18==1))))&&!(a22==1)))))))){ + if((a6==1)){ + a3 = 7; + a6 = 1; + a12 = 8; + a15 = 1; + a0 = 1; + a18 = 1; + a27 = 1; + a22 = 1; + }else{ + a4 = 0; + a6 = 1; + a27 = 1; + a3 = 5; + a15 = 1; + a22 = 1; + a0 = 1; + a12 = 8; + } + return -1; + } else if(((((!(a15==1)&&(((((((((a18==1)||!(a18==1))&&(input==6))&&(a0==1))&&!(a5==1))&&(a22==1))&&(a20==1))&&!(a27==1))&&(a6==1)))&&(a4==1))&&(a3==4))&&(a12==10))){ + if((a0==1)){ + a18 = 1; + a4 = 0; + a12 = 12; + a3 = 7; + a22 = 0; + a15 = 1; + }else{ + a6 = 0; + a5 = 1; + a18 = 1; + a22 = 0; + a3 = 5; + } + return 21; + } else if((((a0==1)&&(((a22==1)&&(((a3==8)&&(((!(a27==1)&&((a20==1)&&((input==2)&&!(a6==1))))&&(a15==1))&&(a5==1)))&&!(a4==1)))&&(a18==1)))&&(a12==10))){ + a15 = 0; + a18 = 0; + a5 = 0; + a12 = 8; + return -1; + } else if(((!(a5==1)&&(!(a6==1)&&((!(a4==1)&&(((((input==4)&&((((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))||((!(a18==1)&&(a22==1))&&(a3==7))))&&!(a15==1))&&(a12==11))&&!(a0==1)))&&(a20==1))))&&!(a27==1))){ + a18 = 0; + a15 = 1; + a12 = 8; + a6 = 1; + a5 = 1; + a27 = 1; + a22 = 1; + a0 = 1; + a3 = 5; + return 21; + } else if(((!(a27==1)&&((((a20==1)&&((((a4==1)&&((((input==6)&&((a18==1)||!(a18==1)))&&!(a0==1))&&(a5==1)))&&!(a22==1))&&(a15==1)))&&(a3==8))&&(a12==8)))&&(a6==1))){ + a4 = 0; + a12 = 11; + a15 = 0; + a18 = 1; + a6 = 0; + a5 = 0; + return 26; + } else if(((!(a0==1)&&((a12==10)&&(!(a15==1)&&(((a27==1)&&((((input==6)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5))))&&(a4==1))&&(a6==1)))&&(a5==1)))))&&(a20==1))){ + a0 = 1; + a4 = 0; + a3 = 4; + a22 = 1; + a18 = 0; + a6 = 0; + return 21; + } else if(((a5==1)&&(!(a4==1)&&((a20==1)&&((a3==6)&&(((a0==1)&&(((!(a27==1)&&((input==6)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))&&!(a6==1))&&!(a15==1)))&&(a12==9))))))){ + a27 = 1; + a5 = 0; + a18 = 1; + a6 = 1; + a4 = 1; + a22 = 0; + a3 = 4; + a12 = 10; + a15 = 1; + return 21; + } else if(((a12==12)&&(!(a22==1)&&(((a20==1)&&(((((!(a6==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a15==1)))&&(a4==1))&&(a5==1))&&(a0==1))&&(a27==1)))&&(a3==6))))){ + a18 = 1; + a3 = 8; + a0 = 0; + a12 = 10; + return -1; + } else if(((!(a0==1)&&((a5==1)&&((((!(a15==1)&&((input==5)&&((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1)))))&&(a20==1))&&!(a4==1))&&!(a27==1))))&&(a12==9))){ + a0 = 1; + a27 = 1; + a18 = 0; + a6 = 0; + a22 = 0; + a15 = 1; + a3 = 4; + a12 = 8; + a4 = 1; + return -1; + } else if(((a20==1)&&((a3==7)&&(!(a15==1)&&(((a5==1)&&(((a27==1)&&((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==3))&&!(a4==1))&&(a12==12)))&&(a0==1)))&&!(a6==1)))))){ + a3 = 4; + a18 = 1; + a27 = 0; + a22 = 0; + return 21; + } else if((!(a6==1)&&((a4==1)&&((((a20==1)&&(!(a5==1)&&(((!(a18==1)&&(((a22==1)&&(input==1))&&(a12==11)))&&(a0==1))&&(a3==6))))&&!(a15==1))&&(a27==1))))){ + a12 = 10; + a4 = 0; + a3 = 4; + a22 = 0; + a15 = 1; + a6 = 1; + return -1; + } else if((!(a0==1)&&((a3==4)&&(!(a27==1)&&((a5==1)&&((a12==9)&&(!(a4==1)&&((((a20==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==1)))&&!(a6==1))&&(a15==1))))))))){ + if((a5==1)){ + a22 = 0; + a12 = 8; + a0 = 1; + a6 = 1; + a27 = 1; + a18 = 1; + }else{ + a12 = 8; + a27 = 1; + a18 = 1; + a22 = 0; + a4 = 1; + a0 = 1; + } + return 21; + } else if(((((!(a4==1)&&(((a3==4)&&((a12==9)&&((((input==4)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&!(a27==1))&&(a0==1))))&&!(a5==1)))&&!(a6==1))&&(a20==1))&&!(a15==1))){ + a18 = 0; + a12 = 11; + a5 = 1; + a15 = 1; + a22 = 0; + return 21; + } else if(((a5==1)&&((((!(a6==1)&&(((a0==1)&&(!(a4==1)&&((input==4)&&(((a3==5)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))))))&&(a12==9)))&&(a27==1))&&(a20==1))&&(a15==1)))){ + a22 = 1; + a5 = 0; + a3 = 8; + a12 = 12; + a18 = 0; + a6 = 1; + return 24; + } return calculate_output60(input); + } + + int calculate_output60(int input) { + if((!(a22==1)&&((a3==5)&&((!(a4==1)&&(((a12==9)&&((a20==1)&&(((!(a0==1)&&((a27==1)&&(input==4)))&&!(a18==1))&&(a6==1))))&&!(a15==1)))&&(a5==1))))){ + a3 = 4; + a22 = 1; + a12 = 11; + a6 = 0; + a4 = 1; + a0 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if(((!(a15==1)&&((((((a12==8)&&(!(a4==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a0==1))))&&(a20==1))&&(a3==4))&&!(a27==1))&&(a5==1)))&&!(a6==1))){ + a12 = 11; + a6 = 1; + a18 = 0; + a22 = 1; + a15 = 1; + a4 = 1; + a5 = 0; + a27 = 1; + return 26; + } else if(((((!(a4==1)&&((a3==6)&&(((a0==1)&&(((a12==12)&&(((input==5)&&((a18==1)||!(a18==1)))&&!(a5==1)))&&!(a6==1)))&&!(a15==1))))&&(a27==1))&&!(a22==1))&&(a20==1))){ + a5 = 1; + a6 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + a15 = 1; + a4 = 1; + a12 = 8; + return -1; + } else if((!(a6==1)&&((a4==1)&&(!(a27==1)&&(((((a12==9)&&(!(a5==1)&&((a0==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==1)))))&&(a3==5))&&(a20==1))&&(a15==1)))))){ + a5 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + a27 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if((!(a27==1)&&((a0==1)&&(((a15==1)&&((!(a4==1)&&((((a12==8)&&(((input==4)&&((a18==1)||!(a18==1)))&&(a20==1)))&&(a22==1))&&(a5==1)))&&(a6==1)))&&(a3==6))))){ + a12 = 12; + a18 = 0; + return 26; + } else if((!(a4==1)&&((a6==1)&&(!(a5==1)&&(!(a0==1)&&((((a27==1)&&((a15==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))||((a3==7)&&((a22==1)&&!(a18==1))))&&(input==4))))&&(a20==1))&&(a12==8))))))){ + a22 = 1; + a18 = 1; + a12 = 10; + a3 = 6; + a4 = 1; + a5 = 1; + a0 = 1; + return -1; + } else if((!(a27==1)&&(!(a5==1)&&((a20==1)&&((a12==8)&&((!(a0==1)&&((a6==1)&&((a22==1)&&((((input==5)&&((a18==1)||!(a18==1)))&&(a3==7))&&!(a4==1)))))&&(a15==1))))))){ + if((a5==1)){ + a6 = 0; + a22 = 0; + a4 = 1; + a12 = 9; + a27 = 1; + a18 = 1; + }else{ + a22 = 0; + a15 = 0; + a6 = 0; + a18 = 1; + } + return 21; + } else if((((((!(a18==1)&&((a6==1)&&((!(a22==1)&&((a20==1)&&(((input==2)&&(a5==1))&&!(a27==1))))&&(a15==1))))&&(a12==8))&&(a3==5))&&!(a4==1))&&(a0==1))){ + a6 = 0; + a0 = 0; + a27 = 1; + a12 = 9; + a5 = 0; + a4 = 1; + return 26; + } else if(((a12==8)&&(!(a15==1)&&(((a20==1)&&(((((a18==1)&&((((input==2)&&!(a4==1))&&(a5==1))&&(a3==8)))&&!(a27==1))&&!(a6==1))&&(a22==1)))&&(a0==1))))){ + a15 = 1; + a27 = 1; + a6 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if((((a15==1)&&(((a3==5)&&((a12==11)&&(!(a5==1)&&(!(a27==1)&&((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==4))&&(a6==1))&&(a20==1))))))&&(a0==1)))&&!(a4==1))){ + a3 = 8; + a18 = 1; + a6 = 0; + a22 = 1; + a12 = 10; + a27 = 1; + a5 = 1; + a15 = 0; + return 21; + } else if(((a15==1)&&(!(a0==1)&&((!(a27==1)&&(((a5==1)&&((a12==10)&&((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==1))&&(a4==1))&&(a3==6))))&&!(a6==1)))&&(a20==1))))){ + if((a20==1)){ + a27 = 1; + a22 = 0; + a3 = 7; + a12 = 11; + a18 = 0; + }else{ + a6 = 1; + a4 = 0; + a12 = 8; + a18 = 1; + a0 = 1; + a22 = 0; + a3 = 8; + a27 = 1; + } + return 26; + } else if(((((a5==1)&&(!(a22==1)&&((a12==12)&&((a20==1)&&((!(a27==1)&&(!(a4==1)&&((a6==1)&&(((a18==1)||!(a18==1))&&(input==4)))))&&(a15==1))))))&&(a3==7))&&(a0==1))){ + if((a12==9)){ + a22 = 1; + a27 = 1; + a0 = 0; + a12 = 10; + a18 = 1; + a15 = 0; + a3 = 4; + }else{ + a12 = 11; + a27 = 1; + a18 = 0; + a6 = 0; + } + return -1; + } else if((((((a3==4)&&((a6==1)&&((((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==6))&&!(a15==1))&&(a20==1))&&(a12==9))&&(a0==1))))&&(a4==1))&&(a27==1))&&(a5==1))){ + a15 = 1; + a18 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if((((a0==1)&&((a5==1)&&((!(a15==1)&&(((a20==1)&&(!(a27==1)&&((a4==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&!(a6==1)))))&&(a12==12)))&&(a3==6))))&&!(a22==1))){ + a12 = 11; + a27 = 1; + a3 = 8; + a4 = 0; + a18 = 0; + a5 = 0; + return -1; + } else if((((a27==1)&&(((((a5==1)&&(!(a22==1)&&((!(a15==1)&&((a18==1)&&((a20==1)&&(input==6))))&&(a3==4))))&&(a12==8))&&(a0==1))&&(a4==1)))&&(a6==1))){ + a6 = 0; + a3 = 5; + a22 = 1; + a4 = 0; + return 26; + } else if((((a4==1)&&((a3==6)&&(((a22==1)&&((a0==1)&&((((a12==12)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a5==1)))&&!(a6==1))&&(a15==1))))&&(a20==1))))&&!(a27==1))){ + a0 = 0; + a27 = 1; + a15 = 0; + a22 = 0; + a12 = 9; + a3 = 4; + a18 = 1; + return -1; + } else if(((a6==1)&&((a0==1)&&((((!(a15==1)&&((a3==7)&&((a5==1)&&(((input==3)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&!(a27==1)))))&&(a12==10))&&(a20==1))&&!(a4==1))))){ + a12 = 8; + a4 = 1; + a15 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a27 = 1; + return -1; + } else if(((a5==1)&&((a6==1)&&((((a0==1)&&(!(a27==1)&&(!(a4==1)&&((a12==10)&&(((((a3==7)&&(!(a22==1)&&(a18==1)))||((a3==7)&&(!(a18==1)&&!(a22==1))))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==6))))))&&(a15==1))&&(a20==1))))){ + a18 = 1; + a22 = 1; + a27 = 1; + a4 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((((!(a5==1)&&((((a22==1)&&(((!(a27==1)&&((a4==1)&&(((a18==1)||!(a18==1))&&(input==4))))&&!(a15==1))&&(a3==4)))&&(a12==9))&&(a6==1)))&&(a20==1))&&!(a0==1))){ + a0 = 1; + a15 = 1; + a18 = 1; + a3 = 5; + a5 = 1; + a22 = 0; + a12 = 10; + a27 = 1; + a4 = 0; + return -1; + } else if(((a22==1)&&((a12==12)&&(((!(a6==1)&&((a15==1)&&(((((a3==5)&&(((a18==1)||!(a18==1))&&(input==6)))&&!(a5==1))&&(a20==1))&&(a27==1))))&&(a0==1))&&(a4==1))))){ + a27 = 0; + a6 = 1; + a18 = 1; + a3 = 7; + return 26; + } else if(((a12==10)&&((a20==1)&&((a3==7)&&(((!(a6==1)&&((((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==2))&&(a15==1))&&!(a27==1))&&(a4==1)))&&(a0==1))&&!(a5==1)))))){ + a5 = 1; + a22 = 1; + a3 = 5; + a18 = 0; + a6 = 1; + return 21; + } else if(((((a0==1)&&((((a5==1)&&((((a3==6)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==4)))&&(a4==1))&&(a15==1)))&&(a6==1))&&(a27==1)))&&(a12==9))&&(a20==1))){ + a3 = 8; + a5 = 0; + a6 = 0; + a18 = 1; + a22 = 0; + a15 = 0; + a12 = 11; + return 21; + } else if(((((!(a0==1)&&(((!(a15==1)&&((a20==1)&&(!(a22==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&!(a5==1)))))&&(a6==1))&&(a3==5)))&&!(a27==1))&&(a4==1))&&(a12==10))){ + a27 = 1; + a3 = 7; + a18 = 0; + a22 = 1; + a4 = 0; + a12 = 8; + a5 = 1; + a0 = 1; + a15 = 1; + return -1; + } else if(((!(a15==1)&&(!(a22==1)&&((((((a12==11)&&(!(a0==1)&&((a5==1)&&((input==1)&&((a18==1)||!(a18==1))))))&&(a27==1))&&(a3==6))&&!(a6==1))&&(a20==1))))&&(a4==1))){ + a4 = 0; + a15 = 1; + a3 = 7; + a18 = 1; + a6 = 1; + a0 = 1; + return -1; + } else if((((a18==1)&&((!(a22==1)&&((a12==9)&&((a4==1)&&((a15==1)&&(((a27==1)&&(!(a0==1)&&((input==3)&&(a6==1))))&&(a20==1))))))&&(a3==8)))&&(a5==1))){ + a12 = 8; + a0 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if((((((a12==9)&&(((a4==1)&&((((!(a27==1)&&((input==5)&&(a3==7)))&&(a15==1))&&(a20==1))&&(a18==1)))&&!(a6==1)))&&(a22==1))&&!(a5==1))&&(a0==1))){ + a5 = 1; + a12 = 8; + a27 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if(((((a22==1)&&((a15==1)&&((a20==1)&&(((((a6==1)&&(!(a27==1)&&(!(a5==1)&&(input==2))))&&(a3==6))&&!(a4==1))&&(a12==11)))))&&(a18==1))&&!(a0==1))){ + a3 = 4; + a5 = 1; + a6 = 0; + a27 = 1; + a12 = 8; + a0 = 1; + return 26; + } else if((((((!(a27==1)&&(!(a4==1)&&((a12==11)&&(((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==3))&&(a20==1))&&!(a0==1)))))&&(a15==1))&&(a5==1))&&(a3==5))&&!(a6==1))){ + a3 = 4; + a22 = 0; + a6 = 1; + a12 = 12; + a4 = 1; + a18 = 0; + a27 = 1; + a0 = 1; + return 24; + } else if(((((a20==1)&&(!(a0==1)&&(((a3==6)&&(((!(a5==1)&&((input==4)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))))&&(a4==1))&&(a15==1)))&&(a6==1))))&&!(a27==1))&&(a12==9))){ + if((a22==1)){ + a0 = 1; + a3 = 5; + a18 = 1; + a15 = 0; + a5 = 1; + a12 = 8; + a22 = 0; + }else{ + a4 = 0; + a0 = 1; + a22 = 1; + a3 = 4; + a18 = 0; + } + return 24; + } else if(((a4==1)&&(!(a5==1)&&((((!(a6==1)&&((a12==8)&&((!(a0==1)&&(((input==5)&&!(a22==1))&&(a27==1)))&&!(a18==1))))&&(a20==1))&&(a3==7))&&(a15==1))))){ + a5 = 1; + a18 = 1; + a6 = 1; + a0 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if((((a3==8)&&((((!(a6==1)&&(!(a5==1)&&((a12==8)&&(!(a27==1)&&((input==6)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))))))&&!(a4==1))&&(a15==1))&&(a0==1)))&&(a20==1))){ + a6 = 1; + a22 = 1; + a5 = 1; + a18 = 0; + a3 = 6; + return -1; + } else if(((((!(a18==1)&&(((a12==9)&&(((a22==1)&&((((input==6)&&!(a0==1))&&!(a27==1))&&(a15==1)))&&!(a6==1)))&&(a3==6)))&&(a4==1))&&!(a5==1))&&(a20==1))){ + a5 = 1; + a15 = 0; + a3 = 7; + a6 = 1; + return -1; + } else if(((a20==1)&&((a3==5)&&((a27==1)&&(!(a15==1)&&(((a6==1)&&((a0==1)&&((((((a18==1)||!(a18==1))&&(input==6))&&(a12==9))&&(a22==1))&&!(a5==1))))&&(a4==1))))))){ + a4 = 0; + a18 = 0; + a12 = 10; + a5 = 1; + a3 = 4; + a6 = 0; + a15 = 1; + return 26; + } else if(((!(a15==1)&&((a20==1)&&(!(a6==1)&&(!(a27==1)&&(((a4==1)&&((a12==10)&&((input==6)&&(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1)))))))&&!(a0==1))))))&&(a5==1))){ + if((a5==1)){ + a12 = 8; + a6 = 1; + a22 = 1; + a27 = 1; + a3 = 5; + a0 = 1; + a15 = 1; + a18 = 1; + }else{ + a12 = 8; + a3 = 6; + a18 = 0; + a22 = 0; + a5 = 0; + a15 = 1; + a0 = 1; + a4 = 0; + a6 = 1; + a27 = 1; + } + return -1; + } else if((((((a5==1)&&((a4==1)&&(!(a0==1)&&((a22==1)&&((((!(a27==1)&&(input==4))&&(a18==1))&&(a20==1))&&(a12==8))))))&&(a3==5))&&!(a6==1))&&(a15==1))){ + a3 = 7; + a27 = 1; + a22 = 0; + a6 = 1; + a0 = 1; + return -1; + } else if(((a27==1)&&(!(a15==1)&&((((a0==1)&&(((a20==1)&&((((a3==8)&&((input==1)&&!(a22==1)))&&(a6==1))&&(a18==1)))&&(a5==1)))&&(a4==1))&&(a12==8))))){ + a5 = 0; + a15 = 1; + a4 = 0; + a3 = 4; + a6 = 0; + return 26; + } else if(((a5==1)&&((((a0==1)&&((!(a27==1)&&((a4==1)&&(((!(a22==1)&&((a20==1)&&(input==1)))&&(a12==11))&&(a18==1))))&&!(a15==1)))&&!(a6==1))&&(a3==4)))){ + a15 = 1; + a3 = 6; + a0 = 0; + a27 = 1; + return -1; + } else if(((!(a4==1)&&(((!(a27==1)&&((a12==11)&&(((((input==1)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a0==1))&&(a5==1))&&!(a15==1))))&&(a20==1))&&(a3==5)))&&!(a6==1))){ + a3 = 4; + a27 = 1; + a6 = 1; + a4 = 1; + a15 = 1; + a18 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if(((a12==12)&&(((a27==1)&&(((!(a0==1)&&(((a3==6)&&(!(a6==1)&&((a5==1)&&((a18==1)&&(input==5)))))&&!(a15==1)))&&(a20==1))&&!(a4==1)))&&(a22==1)))){ + a22 = 0; + a15 = 1; + a4 = 1; + a0 = 1; + a12 = 8; + a3 = 4; + return 24; + } else if(((a0==1)&&((((((!(a15==1)&&(!(a6==1)&&((a20==1)&&((a27==1)&&((input==2)&&!(a18==1))))))&&(a12==8))&&!(a4==1))&&(a5==1))&&(a3==8))&&!(a22==1)))){ + a15 = 1; + a22 = 1; + a12 = 9; + a6 = 1; + a5 = 0; + a3 = 5; + return 21; + } else if(((a12==10)&&((!(a22==1)&&(!(a18==1)&&((a3==8)&&((((a5==1)&&(!(a6==1)&&(!(a15==1)&&((input==4)&&(a20==1)))))&&!(a4==1))&&(a27==1)))))&&!(a0==1)))){ + a5 = 0; + a3 = 6; + return -1; + } else if(((((((a4==1)&&(!(a18==1)&&(((!(a5==1)&&((a12==11)&&((a27==1)&&(input==2))))&&(a22==1))&&(a3==6))))&&!(a6==1))&&!(a15==1))&&(a20==1))&&!(a0==1))){ + a22 = 0; + a3 = 5; + a5 = 1; + a12 = 10; + a6 = 1; + a0 = 1; + a4 = 0; + return -1; + } else if(((a27==1)&&(((a20==1)&&((((a5==1)&&((((a18==1)&&(!(a22==1)&&((a3==7)&&(input==3))))&&!(a4==1))&&(a6==1)))&&(a0==1))&&(a12==11)))&&(a15==1)))){ + a3 = 4; + a12 = 8; + a4 = 1; + a22 = 1; + return -1; + } else if(((((!(a6==1)&&((!(a18==1)&&((a20==1)&&(((a15==1)&&(((input==3)&&!(a4==1))&&!(a22==1)))&&!(a5==1))))&&(a27==1)))&&(a12==12))&&(a3==8))&&!(a0==1))){ + a3 = 6; + a0 = 1; + a6 = 1; + a27 = 0; + a15 = 0; + a18 = 1; + return -1; + } else if(((((((a22==1)&&((a3==5)&&(((a5==1)&&(((a6==1)&&((input==2)&&(a12==10)))&&(a27==1)))&&(a20==1))))&&!(a15==1))&&(a4==1))&&!(a18==1))&&!(a0==1))){ + a5 = 0; + a6 = 0; + a3 = 8; + a0 = 1; + a12 = 11; + a4 = 0; + a22 = 0; + a18 = 1; + return 26; + } else if((((a12==9)&&(((a15==1)&&((a20==1)&&(((((((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==3))&&(a27==1))&&(a6==1))&&(a0==1))))&&!(a4==1)))&&!(a5==1))){ + a18 = 1; + a22 = 1; + a4 = 1; + a3 = 4; + a5 = 1; + a12 = 8; + return -1; + } else if(((a20==1)&&(!(a4==1)&&(!(a6==1)&&((a27==1)&&(!(a5==1)&&(!(a0==1)&&((!(a15==1)&&((((((a18==1)&&!(a22==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7)))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==2)))&&(a12==12))))))))){ + a3 = 4; + a15 = 1; + a5 = 1; + a0 = 1; + a18 = 1; + a6 = 1; + a4 = 1; + a12 = 8; + a22 = 1; + return 26; + } else if(((a20==1)&&(((a4==1)&&(((a12==8)&&(!(a0==1)&&((a6==1)&&(!(a5==1)&&((input==2)&&((((a22==1)&&(a18==1))&&(a3==8))||(((!(a22==1)&&(a18==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7)))))))))&&(a15==1)))&&!(a27==1)))){ + a18 = 1; + a0 = 1; + a27 = 1; + a3 = 4; + a5 = 1; + a22 = 1; + return 21; + } else if(((a12==11)&&((!(a27==1)&&(!(a15==1)&&((((input==4)&&(((a6==1)&&((!(a4==1)&&((a18==1)&&(a22==1)))&&(a3==4)))||((!(a6==1)&&(((a4==1)&&((a18==1)&&!(a22==1)))&&(a3==8)))||((((!(a22==1)&&!(a18==1))&&(a4==1))&&(a3==8))&&!(a6==1)))))&&(a20==1))&&(a0==1))))&&(a5==1)))){ + a6 = 1; + a3 = 4; + a15 = 1; + a22 = 1; + a27 = 1; + a12 = 8; + a4 = 1; + a18 = 1; + return -1; + } else if((!(a4==1)&&(!(a6==1)&&((((!(a27==1)&&((a3==6)&&(((a12==8)&&((((a18==1)||!(a18==1))&&(input==5))&&!(a15==1)))&&!(a0==1))))&&(a22==1))&&!(a5==1))&&(a20==1))))){ + if((a27==1)){ + a3 = 7; + a18 = 0; + a12 = 10; + a27 = 1; + a0 = 1; + }else{ + a3 = 4; + a0 = 1; + a15 = 1; + a18 = 1; + a5 = 1; + a27 = 1; + } + return 21; + } else if(((a5==1)&&(!(a18==1)&&((a6==1)&&((a20==1)&&((a3==5)&&((a27==1)&&(!(a15==1)&&((a22==1)&&((a0==1)&&((a12==8)&&((input==2)&&!(a4==1))))))))))))){ + if((a18==1)){ + a15 = 1; + a3 = 4; + a18 = 1; + a5 = 0; + a6 = 0; + a0 = 0; + a22 = 0; + }else{ + a3 = 7; + a18 = 1; + a22 = 0; + a15 = 1; + a12 = 9; + } + return 21; + } else if((((a20==1)&&(((a12==9)&&(((a27==1)&&(((a6==1)&&(((input==4)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&(a15==1)))&&(a3==6)))&&(a5==1)))&&!(a0==1)))&&(a4==1))){ + a12 = 8; + a22 = 1; + a3 = 4; + a0 = 1; + a18 = 1; + return -1; + } else if((((a20==1)&&(((a12==9)&&((a3==7)&&((((a6==1)&&((a5==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==3))))&&!(a27==1))&&(a15==1))))&&(a0==1)))&&!(a4==1))){ + a27 = 1; + a18 = 1; + a4 = 1; + a12 = 10; + a15 = 0; + a22 = 1; + return -1; + } else if((((a5==1)&&(!(a4==1)&&(((!(a6==1)&&((a15==1)&&((a12==8)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==4))&&(a20==1)))))&&(a3==7))&&(a0==1))))&&!(a27==1))){ + a18 = 1; + a22 = 0; + a12 = 9; + a5 = 0; + a3 = 8; + return 21; + } else if(((!(a27==1)&&((!(a0==1)&&((input==1)&&((((a3==8)&&(!(a4==1)&&(((a5==1)&&(!(a22==1)&&!(a18==1)))&&!(a15==1))))&&!(a6==1))||((a6==1)&&((a3==4)&&(((a15==1)&&(((a18==1)&&(a22==1))&&!(a5==1)))&&(a4==1)))))))&&(a12==11)))&&(a20==1))){ + a27 = 1; + a15 = 1; + a4 = 0; + a0 = 1; + a12 = 8; + a5 = 1; + a3 = 4; + a22 = 1; + a6 = 1; + a18 = 0; + return 26; + } else if((((a4==1)&&(((a3==5)&&(((a0==1)&&((a20==1)&&((a5==1)&&(!(a15==1)&&(!(a27==1)&&(((a18==1)||!(a18==1))&&(input==6)))))))&&(a22==1)))&&(a12==10)))&&(a6==1))){ + a15 = 1; + a4 = 0; + a3 = 4; + a27 = 1; + a22 = 0; + a6 = 0; + a12 = 12; + a18 = 1; + return -1; + } else if(((((a6==1)&&(((a5==1)&&((a4==1)&&(((a20==1)&&((a3==5)&&((input==1)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))&&!(a0==1))))&&(a27==1)))&&!(a15==1))&&(a12==9))){ + a27 = 0; + a0 = 1; + a12 = 10; + a22 = 1; + a4 = 0; + a3 = 6; + a18 = 1; + a15 = 1; + a5 = 0; + return 21; + } else if((!(a0==1)&&((a15==1)&&(!(a27==1)&&((((!(a6==1)&&((a12==8)&&((a20==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a3==6)))))&&(a22==1))&&(a4==1))&&!(a5==1)))))){ + if((a22==1)){ + a5 = 1; + a0 = 1; + a18 = 0; + }else{ + a12 = 11; + a0 = 1; + a15 = 0; + a5 = 1; + a18 = 0; + a3 = 5; + a6 = 1; + a27 = 1; + } + return -1; + } else if(((a0==1)&&((a15==1)&&((a3==6)&&((a6==1)&&(((((!(a27==1)&&((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a20==1))&&(a4==1))&&(a12==12))&&!(a5==1))))))){ + a12 = 8; + a22 = 1; + a5 = 1; + a27 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((a20==1)&&((!(a6==1)&&((!(a22==1)&&(!(a4==1)&&((a18==1)&&((((a15==1)&&((input==4)&&!(a27==1)))&&(a12==8))&&!(a5==1)))))&&!(a0==1)))&&(a3==7)))){ + a18 = 0; + a6 = 1; + a22 = 1; + a3 = 5; + return -1; + } else if((((a20==1)&&((a12==11)&&((a15==1)&&(!(a18==1)&&((((((!(a6==1)&&(input==1))&&(a3==8))&&(a22==1))&&!(a0==1))&&!(a5==1))&&(a4==1))))))&&!(a27==1))){ + a15 = 0; + a0 = 1; + a22 = 0; + a4 = 0; + a3 = 4; + a12 = 9; + a18 = 1; + return 24; + } else if((!(a27==1)&&(!(a6==1)&&(!(a0==1)&&(!(a4==1)&&((a15==1)&&(((a20==1)&&(((input==5)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6))))&&(a5==1)))&&(a12==8)))))))){ + a3 = 4; + a22 = 0; + a27 = 1; + a4 = 1; + a0 = 1; + a18 = 0; + return -1; + } else if((((((((a20==1)&&((a12==12)&&((((input==1)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a27==1))&&(a0==1))))&&(a4==1))&&!(a6==1))&&(a15==1))&&(a5==1))&&(a3==5))){ + a6 = 1; + a22 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((((!(a27==1)&&((a12==10)&&(((!(a6==1)&&(((((input==3)&&(a18==1))&&(a15==1))&&!(a22==1))&&(a20==1)))&&(a3==7))&&!(a0==1))))&&(a4==1))&&!(a5==1))){ + a5 = 1; + a3 = 6; + a4 = 0; + a12 = 8; + a0 = 1; + a27 = 1; + a6 = 1; + return -1; + } else if(((a20==1)&&((((a12==12)&&((((a6==1)&&((!(a5==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2)))&&(a3==5)))&&(a0==1))&&!(a27==1)))&&(a4==1))&&(a15==1)))){ + a18 = 0; + a4 = 0; + a6 = 0; + a27 = 1; + a5 = 1; + a22 = 1; + a12 = 10; + a3 = 8; + a15 = 0; + return 26; + } else if(((((a15==1)&&((a4==1)&&(((a27==1)&&((((((input==6)&&!(a0==1))&&!(a6==1))&&(a5==1))&&(a18==1))&&(a22==1)))&&(a3==6))))&&(a12==12))&&(a20==1))){ + a22 = 0; + a12 = 11; + a6 = 1; + a5 = 0; + a0 = 1; + a3 = 7; + return 26; + } else if(((a4==1)&&((!(a0==1)&&(!(a6==1)&&(((((!(a15==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1)))&&(a27==1))&&(a3==7))&&!(a5==1))&&(a20==1))))&&(a12==12)))){ + if((a27==1)){ + a5 = 1; + a6 = 1; + a15 = 1; + a22 = 1; + a18 = 0; + a0 = 1; + a3 = 5; + a12 = 8; + }else{ + a18 = 0; + a22 = 1; + a5 = 1; + a15 = 1; + a12 = 8; + a0 = 1; + a3 = 6; + a6 = 1; + } + return 21; + } else if(((a0==1)&&(((a3==8)&&((((a20==1)&&((!(a15==1)&&(!(a4==1)&&((a27==1)&&((input==3)&&((a18==1)||!(a18==1))))))&&(a5==1)))&&!(a6==1))&&(a12==11)))&&(a22==1)))){ + a3 = 7; + a18 = 0; + a4 = 1; + a12 = 10; + return 26; + } else if((!(a4==1)&&((a12==8)&&((a5==1)&&(((a3==5)&&(!(a15==1)&&((a0==1)&&((a20==1)&&(!(a6==1)&&((input==1)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))))))&&(a27==1)))))){ + a12 = 9; + a3 = 4; + a18 = 0; + a22 = 0; + return 21; + } else if(((a0==1)&&((((a15==1)&&(!(a6==1)&&(((((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==4))&&(a20==1))&&(a5==1))&&(a12==9))&&(a3==6))))&&(a4==1))&&(a27==1)))){ + a12 = 12; + a6 = 1; + a18 = 0; + a4 = 0; + a22 = 1; + a3 = 8; + return 24; + } else if((((((a12==10)&&((((a27==1)&&((((!(a15==1)&&(input==5))&&(a4==1))&&(a22==1))&&(a6==1)))&&(a20==1))&&!(a5==1)))&&(a3==4))&&(a18==1))&&!(a0==1))){ + a5 = 1; + a22 = 0; + a6 = 0; + a3 = 5; + a15 = 1; + a0 = 1; + return 21; + } else if(((a15==1)&&(((a6==1)&&((a0==1)&&((a20==1)&&((((a27==1)&&((((input==2)&&!(a22==1))&&(a18==1))&&(a3==4)))&&(a12==12))&&!(a5==1)))))&&!(a4==1)))){ + a12 = 8; + a5 = 1; + a27 = 0; + a18 = 0; + a3 = 7; + return 26; + } else if((!(a4==1)&&((a15==1)&&((a20==1)&&((a12==10)&&((a6==1)&&(((a5==1)&&((a3==4)&&((!(a22==1)&&((a0==1)&&(input==2)))&&(a27==1))))&&(a18==1)))))))){ + a4 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if((!(a15==1)&&(((a22==1)&&((a4==1)&&((a3==6)&&((((a12==11)&&(!(a6==1)&&(!(a27==1)&&((a18==1)&&(input==2)))))&&(a20==1))&&!(a5==1)))))&&!(a0==1)))){ + a5 = 1; + a6 = 1; + a27 = 1; + a3 = 8; + a15 = 1; + a12 = 8; + a0 = 1; + return -1; + } else if((!(a6==1)&&((a27==1)&&(((a12==11)&&((!(a15==1)&&((a4==1)&&(((a3==8)&&((input==2)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))))&&(a20==1))))&&(a0==1)))&&!(a5==1))))){ + a18 = 0; + a22 = 1; + a12 = 10; + a6 = 1; + return -1; + } else if(((a0==1)&&((a12==8)&&(!(a27==1)&&(!(a6==1)&&((a3==8)&&((a5==1)&&((((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==5))&&!(a4==1))&&(a20==1))&&(a15==1))))))))){ + a5 = 0; + a27 = 1; + a18 = 0; + a15 = 0; + a3 = 4; + a22 = 0; + a12 = 10; + a0 = 0; + return 21; + } else if(((a5==1)&&((a4==1)&&(((a20==1)&&((((a6==1)&&(((a27==1)&&((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a3==8)))&&!(a0==1))&&!(a15==1)))&&(a12==12))))){ + a0 = 1; + a22 = 1; + a3 = 4; + a15 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if((((a15==1)&&((((a20==1)&&((a12==9)&&(!(a6==1)&&((a27==1)&&(((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a3==6))))))&&!(a5==1))&&!(a0==1)))&&(a4==1))){ + a22 = 1; + a5 = 1; + a12 = 10; + a3 = 5; + a18 = 0; + a15 = 0; + a0 = 1; + return -1; + } else if((!(a15==1)&&(((a4==1)&&((a5==1)&&(!(a6==1)&&((a20==1)&&(((a12==11)&&((((!(a18==1)&&(a22==1))&&(a3==7))||(((!(a18==1)&&!(a22==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7))))&&(input==2)))&&(a0==1))))))&&(a27==1)))){ + if((a4==1)){ + a18 = 0; + a6 = 1; + a15 = 1; + a12 = 10; + a3 = 6; + a0 = 0; + a22 = 1; + }else{ + a18 = 0; + a4 = 0; + a3 = 8; + a22 = 0; + a12 = 10; + } + return 21; + } else if(((((a15==1)&&((!(a5==1)&&(((a27==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==6))&&(a6==1)))&&(a12==12)))&&(a4==1)))&&(a20==1))&&(a0==1))){ + a3 = 8; + a18 = 1; + a22 = 0; + a27 = 0; + a15 = 0; + a6 = 0; + a4 = 0; + a5 = 1; + return 26; + } else if((((a15==1)&&(((a20==1)&&(((((a12==11)&&(((a27==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a3==5)))&&(a4==1))&&(a6==1))&&(a5==1)))&&(a0==1)))&&!(a22==1))){ + a12 = 8; + a22 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a12==9)&&((!(a4==1)&&((a20==1)&&((a3==8)&&(((!(a27==1)&&((a0==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2))))&&!(a6==1))&&!(a15==1)))))&&!(a5==1)))){ + a22 = 1; + a5 = 1; + a18 = 1; + a6 = 1; + a15 = 1; + return -1; + } else if(((a0==1)&&((a20==1)&&((a4==1)&&(((!(a18==1)&&((((((input==5)&&(a5==1))&&(a12==9))&&!(a15==1))&&!(a27==1))&&!(a22==1)))&&(a3==6))&&!(a6==1)))))){ + a27 = 1; + a22 = 1; + a15 = 1; + a6 = 1; + a12 = 12; + a3 = 7; + return 26; + } else if((((((a12==8)&&((!(a5==1)&&((a20==1)&&((((!(a15==1)&&(input==2))&&!(a4==1))&&(a6==1))&&(a27==1))))&&(a22==1)))&&!(a0==1))&&(a18==1))&&(a3==4))){ + a22 = 0; + a0 = 1; + a3 = 8; + a15 = 1; + a12 = 10; + a6 = 0; + a27 = 0; + return 26; + } else if(((!(a22==1)&&((a0==1)&&((a20==1)&&((!(a27==1)&&((((a12==12)&&((((a18==1)||!(a18==1))&&(input==1))&&!(a5==1)))&&(a3==6))&&(a6==1)))&&(a4==1)))))&&!(a15==1))){ + a22 = 1; + a27 = 1; + a3 = 4; + a18 = 1; + a5 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if(((!(a15==1)&&(((((a12==10)&&((((a5==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a20==1)))&&(a0==1))&&!(a4==1)))&&(a3==6))&&(a6==1))&&(a27==1)))&&!(a22==1))){ + if((a4==1)){ + a18 = 0; + a4 = 1; + a22 = 1; + a12 = 12; + a3 = 5; + a5 = 0; + a27 = 0; + }else{ + a15 = 1; + a22 = 1; + a18 = 0; + a0 = 0; + a4 = 1; + a3 = 4; + } + return -1; + } else if((((((((a5==1)&&(!(a15==1)&&((a4==1)&&(!(a6==1)&&(((a27==1)&&(input==1))&&(a12==10))))))&&!(a22==1))&&(a0==1))&&(a18==1))&&(a3==5))&&(a20==1))){ + a4 = 0; + a27 = 0; + a12 = 9; + a3 = 4; + a22 = 1; + a5 = 0; + a6 = 1; + a18 = 0; + return 24; + } else if(((((a15==1)&&(((((a27==1)&&((!(a5==1)&&(((a12==9)&&(input==1))&&(a6==1)))&&(a20==1)))&&(a3==7))&&(a22==1))&&(a4==1)))&&(a0==1))&&!(a18==1))){ + a12 = 8; + a3 = 5; + a6 = 0; + a18 = 1; + a0 = 0; + return 24; + } else if((!(a15==1)&&(!(a5==1)&&((a27==1)&&((a12==11)&&(((!(a6==1)&&((a20==1)&&(((input==3)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a4==1))))&&(a3==7))&&(a0==1))))))){ + if((a0==1)){ + a22 = 1; + a18 = 0; + a3 = 6; + a0 = 0; + a12 = 10; + a6 = 1; + }else{ + a3 = 6; + a18 = 1; + a22 = 0; + } + return -1; + } else if(((a15==1)&&(((a12==8)&&((((!(a6==1)&&((a20==1)&&(!(a5==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==2)))))&&!(a27==1))&&(a0==1))&&(a3==8)))&&!(a4==1)))){ + a3 = 5; + a18 = 0; + a27 = 1; + a22 = 1; + a12 = 10; + return -1; + } else if(((a5==1)&&((a20==1)&&((((((((input==6)&&((((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==7))))&&(a27==1))&&(a4==1))&&(a12==8))&&(a0==1))&&!(a15==1))&&!(a6==1))))){ + a6 = 1; + a5 = 0; + a18 = 0; + a4 = 0; + a3 = 7; + a22 = 0; + return 26; + } else if(((a22==1)&&(((a4==1)&&(((a20==1)&&(!(a0==1)&&(!(a15==1)&&((a18==1)&&(!(a6==1)&&(((a12==10)&&(input==3))&&(a27==1)))))))&&(a3==8)))&&(a5==1)))){ + a3 = 4; + a12 = 11; + a0 = 1; + a22 = 0; + return 21; + } else if(((!(a27==1)&&((a5==1)&&(((((((input==4)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6))))&&(a12==8))&&(a20==1))&&!(a0==1))&&!(a6==1))&&!(a15==1))))&&!(a4==1))){ + if((a4==1)){ + a0 = 1; + a6 = 1; + a27 = 1; + a3 = 4; + a18 = 1; + a15 = 1; + a22 = 0; + }else{ + a27 = 1; + a18 = 1; + a6 = 1; + a0 = 1; + a3 = 8; + a22 = 0; + a15 = 1; + } + return 21; + } else if((((a20==1)&&((a5==1)&&(((a27==1)&&((a3==6)&&(((!(a4==1)&&((input==6)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))))&&!(a15==1))&&(a12==11))))&&!(a6==1))))&&!(a0==1))){ + a5 = 0; + a22 = 0; + a4 = 1; + a3 = 8; + a0 = 1; + a18 = 0; + a15 = 1; + a12 = 10; + return -1; + } else if(((!(a15==1)&&((a20==1)&&(!(a5==1)&&((a4==1)&&((!(a6==1)&&(((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==1))&&(a12==9))&&(a27==1)))&&!(a0==1))))))&&(a3==6))){ + a6 = 1; + a12 = 8; + a22 = 1; + a5 = 1; + a3 = 4; + a18 = 1; + a15 = 1; + a0 = 1; + return -1; + } else if((((a18==1)&&((a15==1)&&((((!(a5==1)&&((a20==1)&&((((input==1)&&(a12==11))&&!(a0==1))&&!(a22==1))))&&!(a4==1))&&!(a27==1))&&(a3==8))))&&(a6==1))){ + a5 = 1; + a15 = 0; + a4 = 1; + a18 = 0; + return 24; + } else if(((((a18==1)&&((!(a6==1)&&(((a20==1)&&(!(a27==1)&&(((a12==12)&&((input==1)&&(a22==1)))&&!(a4==1))))&&(a15==1)))&&(a0==1)))&&!(a5==1))&&(a3==7))){ + a12 = 8; + a27 = 1; + a3 = 5; + a5 = 1; + a22 = 0; + return -1; + } else if((((a12==9)&&((((((a5==1)&&((a3==4)&&(!(a15==1)&&((a20==1)&&((input==5)&&((a18==1)||!(a18==1)))))))&&!(a27==1))&&(a0==1))&&(a4==1))&&(a6==1)))&&(a22==1))){ + a18 = 0; + a5 = 0; + a27 = 1; + a3 = 8; + a12 = 12; + a6 = 0; + return -1; + } else if((!(a6==1)&&(((a3==6)&&((!(a15==1)&&(!(a0==1)&&((a5==1)&&(!(a4==1)&&(((input==6)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a20==1))))))&&(a27==1)))&&(a12==8)))){ + a12 = 10; + a18 = 0; + a0 = 1; + a5 = 0; + a22 = 1; + a3 = 7; + return 26; + } else if((!(a27==1)&&((((!(a0==1)&&(((a15==1)&&((a3==8)&&((a5==1)&&((input==3)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))))&&!(a4==1)))&&(a12==11))&&(a6==1))&&(a20==1)))){ + a5 = 0; + a3 = 7; + a4 = 1; + a12 = 9; + a6 = 0; + a18 = 0; + a22 = 1; + return -1; + } else if(((!(a4==1)&&((a27==1)&&(((a20==1)&&((a0==1)&&((((a12==10)&&(!(a5==1)&&((input==3)&&(a6==1))))&&(a3==5))&&(a22==1))))&&(a18==1))))&&(a15==1))){ + a3 = 8; + a6 = 0; + a5 = 1; + a27 = 0; + a18 = 0; + return 26; + } else if(((a12==10)&&(((((((!(a27==1)&&((a6==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==3))))&&!(a5==1))&&!(a0==1))&&(a3==7))&&!(a15==1))&&(a20==1))&&!(a4==1)))){ + if((a15==1)){ + a12 = 8; + a0 = 1; + a22 = 1; + a5 = 1; + a15 = 1; + a27 = 1; + a18 = 0; + }else{ + a12 = 8; + a4 = 1; + a22 = 1; + a18 = 1; + a15 = 1; + a5 = 1; + } + return -1; + } else if(((!(a4==1)&&(((a20==1)&&(((a0==1)&&((((((!(a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1)))))&&(input==6))&&(a15==1))&&(a27==1)))&&(a12==8)))&&!(a6==1)))&&!(a5==1))){ + a3 = 6; + a18 = 1; + a4 = 1; + a12 = 10; + a22 = 0; + return 26; + } else if(((a12==8)&&((((((((a20==1)&&((a27==1)&&(!(a15==1)&&(((a18==1)||!(a18==1))&&(input==6)))))&&!(a5==1))&&!(a22==1))&&(a3==5))&&(a6==1))&&!(a4==1))&&(a0==1)))){ + a18 = 1; + a12 = 11; + a5 = 1; + a4 = 1; + a22 = 1; + a6 = 0; + return 21; + } else if(((a5==1)&&(((((a20==1)&&((a0==1)&&((((((input==1)&&((a18==1)||!(a18==1)))&&!(a27==1))&&!(a22==1))&&!(a4==1))&&(a12==12))))&&(a6==1))&&!(a15==1))&&(a3==8)))){ + a22 = 1; + a18 = 1; + a27 = 1; + a6 = 0; + return 21; + } else if(((a20==1)&&(((a5==1)&&(!(a15==1)&&((((input==5)&&(((!(a6==1)&&((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1)))))||(((((a22==1)&&(a18==1))&&!(a4==1))&&(a3==4))&&(a6==1)))||(((a3==4)&&(!(a4==1)&&((a22==1)&&!(a18==1))))&&(a6==1))))&&!(a27==1))&&(a12==8))))&&!(a0==1)))){ + a6 = 1; + a18 = 1; + a0 = 1; + a27 = 1; + a15 = 1; + a4 = 0; + a3 = 7; + a22 = 1; + return -1; + } else if((!(a27==1)&&((((((a20==1)&&((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1))&&!(a5==1))&&(a15==1))&&(a12==8)))&&!(a0==1))&&(a4==1))&&(a3==7))&&!(a6==1)))){ + a12 = 12; + a18 = 1; + a0 = 1; + a6 = 1; + a22 = 0; + a4 = 0; + return 26; + } else if(((a6==1)&&(((a5==1)&&((a20==1)&&((a3==4)&&((a15==1)&&((a12==10)&&(((a4==1)&&(!(a22==1)&&((input==3)&&(a27==1))))&&(a18==1)))))))&&!(a0==1)))){ + a0 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if(((!(a15==1)&&((a18==1)&&(((a20==1)&&(!(a0==1)&&((((a12==10)&&(!(a5==1)&&((a6==1)&&(input==1))))&&(a4==1))&&(a22==1))))&&(a27==1))))&&(a3==6))){ + a12 = 8; + a3 = 4; + a0 = 1; + a5 = 1; + a15 = 1; + return -1; + } else if((((a20==1)&&((!(a5==1)&&((a6==1)&&(((a4==1)&&(!(a27==1)&&((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==3))))&&!(a15==1))))&&(a12==10)))&&(a0==1))){ + a3 = 7; + a18 = 0; + a22 = 0; + a12 = 12; + return 21; + } else if((!(a22==1)&&(((((((a27==1)&&((a12==8)&&((a18==1)&&((a4==1)&&((input==6)&&!(a5==1))))))&&(a0==1))&&(a15==1))&&(a3==5))&&!(a6==1))&&(a20==1)))){ + a6 = 1; + a3 = 4; + a5 = 1; + a22 = 1; + return -1; + } else if((!(a0==1)&&((!(a5==1)&&(((a20==1)&&((a18==1)&&(!(a22==1)&&((a12==10)&&((a15==1)&&(((input==4)&&!(a27==1))&&(a6==1)))))))&&(a4==1)))&&(a3==4)))){ + if((a4==1)){ + a3 = 6; + a4 = 0; + a27 = 1; + a0 = 1; + a12 = 8; + a5 = 1; + a22 = 1; + a18 = 0; + }else{ + a12 = 12; + a27 = 1; + a15 = 0; + a3 = 7; + a22 = 1; + } + return 26; + } else if(((((a12==8)&&(((a22==1)&&((a0==1)&&((a27==1)&&((a20==1)&&((((input==2)&&!(a18==1))&&!(a15==1))&&(a4==1))))))&&!(a6==1)))&&(a3==5))&&!(a5==1))){ + a22 = 0; + a3 = 6; + a5 = 1; + a15 = 1; + a12 = 11; + return 21; + } else if(((!(a6==1)&&((!(a0==1)&&(((((a4==1)&&((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==2))&&(a20==1)))&&!(a5==1))&&(a27==1))&&(a12==12)))&&(a15==1)))&&(a3==6))){ + if((a15==1)){ + a18 = 1; + a5 = 1; + a0 = 1; + a22 = 0; + a12 = 8; + }else{ + a18 = 1; + a22 = 0; + a12 = 8; + a5 = 1; + a0 = 1; + a3 = 4; + } + return 21; + } else if((!(a5==1)&&((!(a4==1)&&((!(a15==1)&&((a0==1)&&((!(a6==1)&&(((a12==12)&&((input==3)&&((a18==1)||!(a18==1))))&&!(a27==1)))&&(a20==1))))&&!(a22==1)))&&(a3==7)))){ + a22 = 1; + a27 = 1; + a5 = 1; + a4 = 1; + a15 = 1; + a6 = 1; + a18 = 1; + a12 = 10; + return -1; + } else if(((a5==1)&&((!(a27==1)&&((!(a6==1)&&((a4==1)&&((a15==1)&&(!(a0==1)&&(((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))||((!(a18==1)&&(a22==1))&&(a3==8)))&&(input==1))))))&&(a20==1)))&&(a12==8)))){ + a4 = 0; + a5 = 0; + a3 = 5; + a22 = 0; + a12 = 9; + a27 = 1; + a18 = 0; + return -1; + } else if(((a0==1)&&((a27==1)&&((!(a4==1)&&(((!(a5==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==3))&&(a20==1)))&&(a12==10))&&(a15==1)))&&!(a6==1))))){ + a12 = 12; + a3 = 5; + a22 = 0; + a0 = 0; + a18 = 0; + a5 = 1; + return -1; + } else if((!(a27==1)&&(((a22==1)&&(((a20==1)&&(((!(a18==1)&&(((a12==10)&&(!(a4==1)&&(input==2)))&&!(a0==1)))&&(a15==1))&&!(a5==1)))&&(a3==7)))&&(a6==1)))){ + a27 = 1; + a18 = 1; + a5 = 1; + a12 = 8; + a0 = 1; + return 21; + } else if(((((a6==1)&&((((((((((a18==1)||!(a18==1))&&(input==2))&&(a4==1))&&(a12==9))&&(a22==1))&&!(a27==1))&&(a3==5))&&!(a15==1))&&(a0==1)))&&(a5==1))&&(a20==1))){ + a0 = 0; + a3 = 6; + a18 = 1; + a5 = 0; + a15 = 1; + a27 = 1; + a22 = 0; + return 21; + } else if(((((a22==1)&&((((((!(a5==1)&&((a0==1)&&(!(a4==1)&&(input==5))))&&(a20==1))&&(a6==1))&&(a3==5))&&!(a15==1))&&!(a27==1)))&&(a18==1))&&(a12==10))){ + a12 = 11; + a3 = 8; + a4 = 1; + a15 = 1; + return 24; + } else if(((((!(a0==1)&&((a12==11)&&((a6==1)&&((a22==1)&&(!(a15==1)&&(!(a4==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a3==7))))))))&&(a20==1))&&(a5==1))&&(a27==1))){ + a0 = 1; + a18 = 1; + a4 = 1; + a15 = 1; + a6 = 0; + a5 = 0; + a3 = 6; + return 24; + } else if(((((a20==1)&&(!(a27==1)&&((!(a5==1)&&((!(a15==1)&&((a0==1)&&((input==2)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&!(a6==1)))&&!(a4==1))))&&(a3==7))&&(a12==8))){ + a18 = 0; + a15 = 1; + a4 = 1; + a6 = 1; + a12 = 9; + a22 = 1; + return 26; + } else if(((!(a4==1)&&(!(a0==1)&&(((a3==5)&&((a15==1)&&((a20==1)&&((((input==6)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a12==8))&&!(a5==1)))))&&(a6==1))))&&(a27==1))){ + a0 = 1; + a3 = 6; + a22 = 1; + a18 = 0; + a27 = 0; + a12 = 9; + return 26; + } else if((!(a5==1)&&((((a27==1)&&(((a4==1)&&((((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==2))&&(a6==1))&&(a3==8))&&(a12==9)))&&(a20==1)))&&(a0==1))&&(a15==1)))){ + a5 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((((a3==6)&&((a27==1)&&((a12==9)&&((a20==1)&&((((a5==1)&&((a0==1)&&((input==4)&&!(a4==1))))&&!(a15==1))&&(a18==1))))))&&(a6==1))&&(a22==1))){ + if((a6==1)){ + a0 = 0; + a5 = 0; + a12 = 10; + a3 = 8; + a15 = 1; + a4 = 1; + a6 = 0; + }else{ + a18 = 0; + a15 = 1; + a6 = 0; + a27 = 0; + a12 = 8; + a4 = 1; + } + return 21; + } else if(((((((((a0==1)&&((a20==1)&&((a27==1)&&((input==2)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))))&&(a3==6))&&!(a15==1))&&!(a6==1))&&(a12==12))&&!(a5==1))&&(a4==1))){ + a18 = 0; + a15 = 1; + a5 = 1; + a12 = 9; + a6 = 1; + a3 = 7; + a27 = 0; + a22 = 1; + return 21; + } else if(((a3==7)&&((((a0==1)&&((((a12==12)&&(!(a4==1)&&((a20==1)&&((input==4)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))))))&&(a27==1))&&!(a5==1)))&&!(a6==1))&&!(a15==1)))){ + a22 = 0; + a18 = 1; + a12 = 11; + a5 = 1; + a15 = 1; + a6 = 1; + return -1; + } else if((!(a22==1)&&((((a20==1)&&(((a6==1)&&(((a15==1)&&((((input==1)&&(a27==1))&&(a3==4))&&(a5==1)))&&!(a4==1)))&&(a12==10)))&&(a18==1))&&(a0==1)))){ + return 26; + } else if((((((((!(a0==1)&&(!(a22==1)&&((((input==5)&&!(a5==1))&&(a4==1))&&!(a27==1))))&&(a20==1))&&(a3==5))&&(a15==1))&&(a18==1))&&!(a6==1))&&(a12==9))){ + a6 = 1; + a3 = 8; + a0 = 1; + a18 = 0; + a12 = 8; + a4 = 0; + a27 = 1; + a5 = 1; + return 21; + } else if(((((a27==1)&&((a3==6)&&(((((!(a4==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6)))&&(a20==1))&&!(a0==1))&&(a5==1))&&!(a6==1))))&&(a15==1))&&(a12==9))){ + a18 = 0; + a5 = 0; + a0 = 1; + a12 = 11; + a4 = 1; + a3 = 4; + a6 = 1; + a22 = 1; + return 21; + } else if((!(a15==1)&&(((a22==1)&&(((a27==1)&&((a12==8)&&((((((a20==1)&&(input==3))&&(a4==1))&&!(a5==1))&&(a0==1))&&!(a6==1))))&&(a3==5)))&&!(a18==1)))){ + a3 = 6; + a15 = 1; + a12 = 11; + a5 = 1; + return 21; + } else if((((a4==1)&&((a20==1)&&((a3==7)&&(((a27==1)&&((((a12==10)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==4)))&&(a5==1))&&!(a0==1)))&&!(a6==1)))))&&!(a15==1))){ + a0 = 1; + a5 = 0; + a15 = 1; + a12 = 11; + a3 = 5; + a6 = 1; + a22 = 0; + a18 = 1; + return -1; + } else if(((a0==1)&&(((((a4==1)&&((a15==1)&&((((((!(a18==1)&&!(a22==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==3))&&(a6==1))&&!(a27==1))))&&(a12==9))&&(a20==1))&&!(a5==1)))){ + if((a4==1)){ + a0 = 0; + a27 = 1; + a5 = 1; + a3 = 4; + a4 = 0; + a22 = 1; + a12 = 10; + a18 = 0; + }else{ + a15 = 0; + a4 = 0; + a18 = 0; + a22 = 0; + a6 = 0; + a12 = 12; + a3 = 6; + a27 = 1; + } + return 26; + } else if(((a0==1)&&((a5==1)&&((((((a3==8)&&((!(a4==1)&&(((input==3)&&(a20==1))&&!(a27==1)))&&(a12==9)))&&(a18==1))&&(a15==1))&&(a22==1))&&(a6==1))))){ + a12 = 11; + a22 = 0; + a15 = 0; + a6 = 0; + a4 = 1; + a27 = 1; + a3 = 5; + return 21; + } else if((((((((a20==1)&&((a22==1)&&((a18==1)&&(!(a4==1)&&(((input==1)&&(a27==1))&&(a6==1))))))&&!(a0==1))&&(a5==1))&&(a15==1))&&(a3==6))&&(a12==9))){ + a3 = 4; + a15 = 0; + a12 = 11; + a22 = 0; + a6 = 0; + a0 = 1; + return -1; + } else if((!(a27==1)&&((a18==1)&&((((a0==1)&&((((a6==1)&&((a12==11)&&(!(a4==1)&&((input==1)&&(a5==1)))))&&(a3==7))&&(a15==1)))&&(a22==1))&&(a20==1))))){ + a12 = 8; + a3 = 4; + a27 = 1; + a4 = 1; + return -1; + } else if(((a12==8)&&(!(a15==1)&&((a20==1)&&((!(a27==1)&&(((((((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1)))||(((a3==4)&&(!(a18==1)&&(a22==1)))&&!(a6==1)))&&(input==2))&&!(a5==1))&&!(a0==1)))&&(a4==1)))))){ + a22 = 1; + a4 = 0; + a15 = 1; + a27 = 1; + a5 = 1; + a0 = 1; + a3 = 4; + a18 = 0; + a6 = 1; + return -1; + } else if(((a12==10)&&((a0==1)&&(!(a27==1)&&(((((((a3==8)&&(!(a4==1)&&(!(a15==1)&&((a5==1)&&((a18==1)&&!(a22==1))))))&&!(a6==1))||(!(a6==1)&&((a3==8)&&((!(a15==1)&&((!(a22==1)&&!(a18==1))&&(a5==1)))&&!(a4==1)))))||((a6==1)&&(((a4==1)&&((((a18==1)&&(a22==1))&&!(a5==1))&&(a15==1)))&&(a3==4))))&&(input==5))&&(a20==1)))))){ + a5 = 0; + a4 = 1; + a15 = 1; + a0 = 0; + a22 = 0; + a6 = 1; + a3 = 6; + a18 = 0; + a12 = 9; + a27 = 1; + return 21; + } else if((((a27==1)&&((((!(a22==1)&&((a3==8)&&(((((input==5)&&((a18==1)||!(a18==1)))&&(a5==1))&&!(a6==1))&&(a20==1))))&&(a4==1))&&!(a15==1))&&!(a0==1)))&&(a12==11))){ + a6 = 1; + a0 = 1; + a18 = 0; + a4 = 0; + a3 = 4; + a12 = 9; + a22 = 1; + return 24; + } else if((((((a3==8)&&((a20==1)&&(((a5==1)&&(!(a0==1)&&((((input==2)&&(a18==1))&&!(a4==1))&&!(a15==1))))&&!(a27==1))))&&(a22==1))&&(a12==9))&&!(a6==1))){ + a18 = 0; + a4 = 1; + a3 = 6; + a15 = 1; + a6 = 1; + a27 = 1; + a0 = 1; + a12 = 8; + return 21; + } else if(((((((((a6==1)&&(((input==3)&&((((a18==1)&&(a22==1))&&(a3==7))||(((!(a22==1)&&(a18==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))))&&!(a15==1)))&&(a12==11))&&!(a5==1))&&!(a4==1))&&(a27==1))&&(a0==1))&&(a20==1))){ + a12 = 10; + a3 = 4; + a5 = 1; + a4 = 1; + a18 = 1; + a22 = 0; + return 26; + } else if((!(a27==1)&&(((a20==1)&&(!(a15==1)&&((((a5==1)&&((a0==1)&&((input==6)&&((((a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a22==1)&&!(a18==1))))))))&&(a12==10))&&!(a4==1))))&&(a6==1)))){ + a4 = 1; + a6 = 0; + a18 = 0; + a27 = 1; + a3 = 7; + a22 = 1; + return -1; + } else if((!(a15==1)&&((a20==1)&&(((a12==8)&&(!(a27==1)&&(!(a5==1)&&(((((((a18==1)&&(a22==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==6))))&&(input==6))&&!(a4==1))&&!(a6==1)))))&&!(a0==1))))){ + a18 = 1; + a22 = 0; + a15 = 1; + a3 = 4; + return 26; + } else if((((a20==1)&&(((((a0==1)&&((!(a18==1)&&(!(a6==1)&&((!(a5==1)&&(input==5))&&(a15==1))))&&(a12==10)))&&!(a22==1))&&!(a4==1))&&(a3==8)))&&!(a27==1))){ + a3 = 6; + a22 = 1; + a12 = 11; + a27 = 1; + a5 = 1; + return 26; + } else if((!(a18==1)&&(((a0==1)&&(!(a15==1)&&((((((((a20==1)&&(input==4))&&!(a5==1))&&(a27==1))&&(a12==11))&&(a4==1))&&(a22==1))&&(a6==1))))&&(a3==5)))){ + a3 = 6; + a12 = 10; + a22 = 0; + a18 = 1; + a15 = 1; + a6 = 0; + return -1; + } else if(((a6==1)&&((a27==1)&&(((!(a4==1)&&((a0==1)&&(((((input==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&!(a5==1))&&(a3==6))&&(a12==10))))&&!(a15==1))&&(a20==1))))){ + a6 = 0; + a22 = 0; + a4 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if((((!(a22==1)&&((a12==10)&&((!(a5==1)&&((a27==1)&&(((a4==1)&&((a20==1)&&((input==2)&&((a18==1)||!(a18==1)))))&&!(a6==1))))&&(a0==1))))&&(a3==4))&&!(a15==1))){ + a18 = 0; + a3 = 6; + a5 = 1; + return -1; + } else if(((!(a15==1)&&(((a20==1)&&((a12==12)&&((((a6==1)&&(!(a0==1)&&((((a18==1)||!(a18==1))&&(input==2))&&(a27==1))))&&!(a22==1))&&!(a5==1))))&&(a3==6)))&&!(a4==1))){ + a18 = 0; + a15 = 1; + a4 = 1; + a3 = 8; + a12 = 10; + return -1; + } else if(((!(a6==1)&&((((a12==10)&&(((((a20==1)&&(!(a27==1)&&(!(a15==1)&&(input==6))))&&(a3==5))&&(a18==1))&&(a0==1)))&&(a5==1))&&!(a22==1)))&&(a4==1))){ + a4 = 0; + a27 = 1; + a3 = 7; + a18 = 0; + a5 = 0; + return -1; + } else if(((!(a0==1)&&((a12==8)&&((((((a3==5)&&(!(a18==1)&&(((input==1)&&!(a6==1))&&!(a27==1))))&&!(a15==1))&&!(a5==1))&&!(a4==1))&&!(a22==1))))&&(a20==1))){ + if((a15==1)){ + a0 = 1; + a15 = 1; + a3 = 8; + a12 = 10; + a18 = 1; + }else{ + a18 = 1; + a4 = 1; + a3 = 8; + a5 = 1; + a12 = 12; + a27 = 1; + a6 = 1; + } + return 21; + } else if(((a3==7)&&(((a12==12)&&((a0==1)&&(!(a4==1)&&(!(a5==1)&&(((a15==1)&&(!(a6==1)&&(((a27==1)&&(input==5))&&(a22==1))))&&(a20==1))))))&&(a18==1)))){ + a27 = 0; + a18 = 0; + a5 = 1; + a4 = 1; + return 26; + } else if(((a0==1)&&((((a12==11)&&((a20==1)&&((input==6)&&(((((!(a15==1)&&((a22==1)&&!(a18==1)))&&(a4==1))&&(a3==4))&&(a6==1))||((((!(a4==1)&&((a15==1)&&(!(a22==1)&&!(a18==1))))&&(a3==8))&&!(a6==1))||((((!(a15==1)&&((a18==1)&&(a22==1)))&&(a4==1))&&(a3==4))&&(a6==1)))))))&&!(a27==1))&&!(a5==1)))){ + if((a3==7)){ + a0 = 0; + a18 = 1; + a27 = 1; + a15 = 1; + a4 = 0; + a22 = 1; + a6 = 0; + a3 = 6; + }else{ + a5 = 1; + a18 = 0; + a27 = 1; + a15 = 0; + a22 = 0; + a4 = 0; + a3 = 7; + a6 = 1; + } + return 21; + } else if((((((((!(a15==1)&&((a6==1)&&(!(a22==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&(a12==12)))))&&(a0==1))&&(a20==1))&&(a3==7))&&(a27==1))&&(a4==1))&&!(a5==1))){ + if((a18==1)){ + a6 = 0; + a0 = 0; + a3 = 6; + a12 = 11; + a18 = 0; + }else{ + a22 = 1; + a5 = 1; + a15 = 1; + a4 = 0; + a3 = 8; + a18 = 1; + } + return 21; + } else if((!(a0==1)&&((a15==1)&&(((a12==10)&&((a4==1)&&((a20==1)&&(((a5==1)&&(((((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==3)))&&!(a27==1)))))&&(a6==1))))){ + a18 = 1; + a6 = 0; + a15 = 0; + a22 = 0; + a27 = 1; + a12 = 12; + a4 = 0; + a3 = 6; + return 26; + } else if(((a20==1)&&(!(a0==1)&&((a27==1)&&((input==4)&&((!(a6==1)&&((a3==8)&&(!(a4==1)&&((a12==9)&&(!(a15==1)&&((!(a18==1)&&!(a22==1))&&!(a5==1)))))))||(((a3==4)&&(((a12==10)&&(((a5==1)&&((a22==1)&&(a18==1)))&&(a15==1)))&&(a4==1)))&&(a6==1)))))))){ + a6 = 1; + a18 = 1; + a15 = 1; + a12 = 8; + a5 = 1; + a22 = 1; + a0 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if((!(a27==1)&&(!(a0==1)&&(((((a5==1)&&((a15==1)&&(!(a4==1)&&(((input==2)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&(a12==9)))))&&(a20==1))&&(a3==6))&&!(a6==1))))){ + a12 = 12; + a3 = 4; + a22 = 1; + a5 = 0; + a15 = 0; + a18 = 1; + a27 = 1; + a6 = 1; + a0 = 1; + return -1; + } else if((!(a6==1)&&((!(a15==1)&&(((((((!(a27==1)&&(!(a18==1)&&(input==2)))&&(a12==12))&&(a22==1))&&(a0==1))&&!(a4==1))&&(a3==5))&&!(a5==1)))&&(a20==1)))){ + a18 = 1; + a3 = 7; + a4 = 1; + a6 = 1; + a27 = 1; + return 26; + } else if(((((a0==1)&&((a12==8)&&((a22==1)&&(((a18==1)&&(((a20==1)&&((a27==1)&&((input==4)&&!(a15==1))))&&!(a5==1)))&&(a3==4)))))&&(a4==1))&&!(a6==1))){ + if((a5==1)){ + a6 = 1; + a5 = 1; + a22 = 0; + a12 = 9; + a3 = 5; + a0 = 0; + }else{ + a12 = 9; + a15 = 1; + a3 = 7; + a4 = 0; + a0 = 0; + } + return 26; + } else if(((a4==1)&&((((((a3==4)&&((!(a5==1)&&(((a0==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a15==1)))&&!(a27==1)))&&(a6==1))&&(a22==1))&&(a20==1))&&(a12==8)))){ + a15 = 0; + a12 = 10; + a18 = 1; + a5 = 1; + a3 = 8; + a22 = 0; + a27 = 1; + return 26; + } else if((((((a20==1)&&((((((((input==5)&&!(a15==1))&&!(a18==1))&&(a0==1))&&!(a27==1))&&(a22==1))&&!(a6==1))&&(a5==1)))&&(a3==6))&&(a12==12))&&(a4==1))){ + a18 = 1; + a4 = 0; + a5 = 0; + a27 = 1; + a22 = 0; + a12 = 10; + a3 = 7; + return 26; + } else if(((a4==1)&&((((a6==1)&&((a20==1)&&(((((input==6)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1)))))&&!(a27==1))&&!(a5==1))&&!(a15==1))))&&(a12==10))&&(a0==1)))){ + a5 = 1; + a3 = 4; + a27 = 1; + a12 = 8; + a15 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((a3==8)&&(((a22==1)&&(((((a20==1)&&(!(a18==1)&&((((input==5)&&(a27==1))&&!(a15==1))&&!(a0==1))))&&(a4==1))&&!(a6==1))&&(a5==1)))&&(a12==10)))){ + a3 = 7; + a18 = 1; + a6 = 1; + a15 = 1; + a12 = 8; + a5 = 0; + a0 = 1; + return 21; + } else if(((!(a5==1)&&((((a20==1)&&(!(a27==1)&&((((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==4))&&!(a6==1))&&(a0==1))))&&!(a4==1))&&(a12==10)))&&(a15==1))){ + a18 = 0; + a5 = 1; + a22 = 0; + a3 = 8; + a12 = 8; + return 21; + } else if(((a12==9)&&(!(a4==1)&&((((((!(a6==1)&&((a3==6)&&((input==4)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))))&&(a20==1))&&!(a27==1))&&!(a15==1))&&(a0==1))&&(a5==1))))){ + a27 = 1; + a3 = 7; + a6 = 1; + a12 = 8; + a0 = 0; + a5 = 0; + a4 = 1; + a22 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if((((((a20==1)&&((a3==8)&&((a6==1)&&(((a22==1)&&((a4==1)&&(!(a5==1)&&(((a18==1)||!(a18==1))&&(input==4)))))&&!(a0==1)))))&&!(a15==1))&&!(a27==1))&&(a12==11))){ + a3 = 7; + a6 = 0; + a5 = 1; + a4 = 0; + a12 = 8; + a0 = 1; + a18 = 1; + a27 = 1; + a22 = 0; + return 21; + } else if((!(a15==1)&&((((((a5==1)&&(((a20==1)&&((input==1)&&((((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1))))||((a3==7)&&((a22==1)&&(a18==1))))))&&!(a0==1)))&&(a6==1))&&(a27==1))&&(a4==1))&&(a12==9)))){ + a3 = 6; + a18 = 0; + a12 = 10; + a5 = 0; + a22 = 1; + a0 = 1; + return 26; + } else if(((a12==9)&&(!(a5==1)&&((a4==1)&&((((a20==1)&&((((input==2)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))||(((a22==1)&&!(a18==1))&&(a3==6))))&&(a27==1))&&!(a6==1)))&&(a0==1))&&(a15==1)))))){ + a18 = 1; + a6 = 1; + a5 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + return -1; + } else if(((((((input==6)&&(((((a3==8)&&((!(a15==1)&&(((a18==1)&&!(a22==1))&&(a5==1)))&&!(a4==1)))&&!(a6==1))||((((!(a15==1)&&((a5==1)&&(!(a22==1)&&!(a18==1))))&&!(a4==1))&&(a3==8))&&!(a6==1)))||(((a3==4)&&(((!(a5==1)&&((a18==1)&&(a22==1)))&&(a15==1))&&(a4==1)))&&(a6==1))))&&(a0==1))&&(a12==10))&&!(a27==1))&&(a20==1))){ + a0 = 0; + a12 = 8; + a6 = 1; + a27 = 1; + a22 = 0; + a5 = 1; + a4 = 1; + a18 = 1; + a15 = 0; + a3 = 7; + return 21; + } else if(((a6==1)&&(((a3==7)&&((a12==8)&&((((a27==1)&&(((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==5))&&(a15==1))&&(a20==1)))&&!(a5==1))&&(a0==1))))&&(a4==1)))){ + a22 = 0; + a15 = 0; + a18 = 0; + a6 = 0; + a12 = 9; + return 21; + } else if((((a3==8)&&(((a4==1)&&((a27==1)&&(((!(a6==1)&&((((input==1)&&((a18==1)||!(a18==1)))&&(a5==1))&&!(a22==1)))&&(a12==12))&&(a0==1))))&&(a20==1)))&&(a15==1))){ + a15 = 0; + a6 = 1; + a18 = 1; + a3 = 4; + return 26; + } else if((((a4==1)&&((a3==4)&&((a20==1)&&((a5==1)&&((a27==1)&&(!(a0==1)&&(!(a15==1)&&(((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&!(a6==1)))))))))&&(a12==12))){ + a15 = 1; + a12 = 8; + a22 = 1; + a3 = 8; + a0 = 1; + a18 = 1; + return -1; + } else if((((!(a18==1)&&((a20==1)&&(((!(a6==1)&&((((a3==7)&&((a12==11)&&(input==3)))&&!(a27==1))&&(a15==1)))&&(a5==1))&&!(a0==1))))&&!(a4==1))&&(a22==1))){ + a18 = 1; + a3 = 4; + a27 = 1; + a6 = 1; + a12 = 8; + a0 = 1; + return -1; + } else if(((a12==10)&&(((a20==1)&&(((a4==1)&&((!(a27==1)&&(((a0==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&!(a15==1)))&&(a6==1)))&&(a3==5)))&&!(a22==1)))&&(a5==1)))){ + a22 = 1; + a15 = 1; + a6 = 0; + a4 = 0; + a18 = 0; + a27 = 1; + return -1; + } else if((((((!(a5==1)&&((((a20==1)&&(((input==5)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&(a3==5)))&&!(a15==1))&&(a12==8)))&&(a4==1))&&!(a0==1))&&!(a27==1))&&(a6==1))){ + a22 = 1; + a15 = 1; + a18 = 0; + a12 = 12; + a0 = 1; + a4 = 0; + a5 = 1; + a3 = 7; + a27 = 1; + return -1; + } else if((((a6==1)&&((((a0==1)&&(!(a18==1)&&((((a22==1)&&(((input==3)&&(a12==12))&&(a4==1)))&&(a3==5))&&(a20==1))))&&!(a15==1))&&!(a27==1)))&&!(a5==1))){ + a6 = 0; + a5 = 1; + a27 = 1; + a22 = 0; + a3 = 6; + a15 = 1; + a12 = 10; + return -1; + } else if(((a0==1)&&(!(a4==1)&&(((a3==4)&&(((!(a22==1)&&((a6==1)&&((a12==10)&&(!(a15==1)&&((input==3)&&((a18==1)||!(a18==1)))))))&&!(a5==1))&&!(a27==1)))&&(a20==1))))){ + a12 = 11; + a6 = 0; + a3 = 8; + a18 = 1; + a22 = 1; + a4 = 1; + return 26; + } else if(((a0==1)&&(((!(a5==1)&&(!(a4==1)&&((a20==1)&&((((a22==1)&&((a3==5)&&(((a18==1)||!(a18==1))&&(input==6))))&&!(a15==1))&&!(a27==1)))))&&(a6==1))&&(a12==9)))){ + a5 = 1; + a4 = 1; + a12 = 12; + a3 = 7; + a18 = 1; + return 26; + } else if(((((a4==1)&&((a22==1)&&((a15==1)&&((((a20==1)&&((a3==8)&&(!(a5==1)&&((input==4)&&(a6==1)))))&&!(a18==1))&&(a27==1)))))&&(a12==12))&&!(a0==1))){ + a15 = 0; + a22 = 0; + a12 = 8; + a4 = 0; + a6 = 0; + a5 = 1; + return 21; + } else if(((a20==1)&&(!(a0==1)&&((((((a15==1)&&(!(a5==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))||((a3==5)&&((a22==1)&&!(a18==1))))&&(input==1))))&&(a6==1))&&!(a27==1))&&(a12==10))&&(a4==1))))){ + a12 = 12; + a18 = 1; + a0 = 1; + a5 = 1; + a3 = 4; + a22 = 1; + return 26; + } else if((!(a6==1)&&(((!(a27==1)&&((a15==1)&&(((a20==1)&&((a22==1)&&((a4==1)&&(!(a0==1)&&((a18==1)&&(input==1))))))&&(a12==9))))&&(a3==6))&&(a5==1)))){ + a0 = 1; + a12 = 8; + a6 = 1; + a3 = 5; + a27 = 1; + return 26; + } else if(((a3==4)&&(!(a4==1)&&(((((a5==1)&&((a12==10)&&((((a27==1)&&((a0==1)&&(input==3)))&&!(a22==1))&&(a6==1))))&&(a20==1))&&(a18==1))&&(a15==1))))){ + a6 = 0; + a3 = 5; + a4 = 1; + a22 = 1; + return -1; + } else if((!(a0==1)&&((a4==1)&&(((a12==11)&&(!(a15==1)&&(!(a5==1)&&(((a20==1)&&((input==5)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7)))))&&!(a6==1)))))&&!(a27==1))))){ + a18 = 1; + a3 = 4; + a27 = 1; + a12 = 9; + a22 = 0; + a0 = 1; + return -1; + } else if((((a6==1)&&((!(a4==1)&&(!(a0==1)&&(!(a5==1)&&((a15==1)&&(((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==5))&&(a3==4))&&(a12==8))))))&&(a20==1)))&&(a27==1))){ + a12 = 11; + a0 = 1; + a22 = 1; + a18 = 0; + a4 = 1; + a3 = 7; + return 21; + } else if((((((((a5==1)&&(((a15==1)&&((a20==1)&&((a27==1)&&((a4==1)&&(input==2)))))&&(a6==1)))&&!(a0==1))&&!(a18==1))&&(a22==1))&&(a12==11))&&(a3==8))){ + a15 = 0; + a18 = 1; + a5 = 0; + a0 = 1; + a6 = 0; + return 21; + } else if(((((!(a27==1)&&(((((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2))&&(a3==7))&&(a20==1))&&(a4==1))&&(a15==1))&&(a12==12)))&&(a0==1))&&!(a5==1))&&!(a6==1))){ + a6 = 1; + a18 = 1; + a27 = 1; + a5 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((a5==1)&&(((a12==9)&&(((a3==4)&&((a15==1)&&((((((input==4)&&(a6==1))&&!(a27==1))&&(a0==1))&&!(a22==1))&&!(a18==1))))&&(a20==1)))&&(a4==1)))){ + a3 = 8; + a22 = 1; + a15 = 0; + a12 = 11; + a4 = 0; + a27 = 1; + return -1; + } else if((((a20==1)&&((a22==1)&&(((((((!(a0==1)&&((input==2)&&((a18==1)||!(a18==1))))&&(a3==5))&&!(a6==1))&&!(a5==1))&&(a27==1))&&(a4==1))&&(a12==8))))&&!(a15==1))){ + a15 = 1; + a0 = 1; + a4 = 0; + a22 = 0; + a18 = 0; + return 21; + } else if(((a27==1)&&(((a6==1)&&((a3==5)&&(((a4==1)&&((a12==11)&&(((a5==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a0==1)))&&!(a22==1))))&&(a15==1))))&&(a20==1)))){ + if((a20==1)){ + a15 = 0; + a0 = 0; + a6 = 0; + a3 = 7; + a5 = 0; + a12 = 9; + a18 = 1; + }else{ + a6 = 0; + a18 = 1; + a15 = 0; + a12 = 8; + a5 = 0; + a3 = 4; + } + return 26; + } else if((((a20==1)&&(((((a12==11)&&((a15==1)&&(!(a4==1)&&((((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1))))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==4)))))&&(a0==1))&&!(a6==1))&&!(a5==1)))&&!(a27==1))){ + if((a5==1)){ + a27 = 1; + a0 = 0; + a3 = 8; + a4 = 1; + a12 = 9; + a18 = 0; + a22 = 0; + }else{ + a27 = 1; + a22 = 1; + a18 = 0; + a6 = 1; + a12 = 10; + a3 = 7; + a15 = 0; + } + return -1; + } else if(((a4==1)&&(((((a20==1)&&((a6==1)&&((a12==11)&&(!(a0==1)&&(((input==6)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a5==1))))))&&(a3==7))&&!(a27==1))&&(a15==1)))){ + a22 = 0; + a5 = 1; + a3 = 6; + a27 = 1; + a0 = 1; + a6 = 0; + a18 = 1; + a12 = 8; + return 21; + } else if(((a5==1)&&((a27==1)&&((((((a15==1)&&(((((a12==10)&&(input==1))&&(a4==1))&&(a3==7))&&(a22==1)))&&(a6==1))&&(a18==1))&&(a0==1))&&(a20==1))))){ + a12 = 8; + a6 = 0; + a5 = 0; + return 21; + } else if(((((((a27==1)&&(!(a4==1)&&((a0==1)&&(((input==5)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1)))))&&(a6==1)))))&&(a12==11))&&(a20==1))&&(a5==1))&&!(a15==1))){ + a3 = 6; + a18 = 1; + a12 = 10; + a6 = 0; + a15 = 1; + a22 = 1; + return -1; + } else if(((a0==1)&&((((!(a4==1)&&(!(a5==1)&&(((a20==1)&&((input==2)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))))&&(a15==1))))&&(a12==10))&&!(a6==1))&&(a27==1)))){ + if((a6==1)){ + a22 = 0; + a18 = 1; + a3 = 4; + a15 = 0; + a27 = 0; + a12 = 12; + }else{ + a22 = 0; + a3 = 8; + a18 = 0; + a15 = 0; + } + return 26; + } else if(((!(a22==1)&&((a20==1)&&(((a12==10)&&(((!(a6==1)&&((a3==7)&&(!(a27==1)&&((input==4)&&((a18==1)||!(a18==1))))))&&(a4==1))&&!(a15==1)))&&(a5==1))))&&(a0==1))){ + a27 = 1; + a5 = 0; + a12 = 11; + a3 = 8; + a6 = 1; + a4 = 0; + a18 = 0; + return -1; + } else if((!(a18==1)&&((a20==1)&&(((a3==4)&&((a6==1)&&((((a12==8)&&((a27==1)&&((!(a5==1)&&(input==1))&&(a22==1))))&&!(a0==1))&&!(a15==1))))&&(a4==1))))){ + a6 = 0; + a22 = 0; + a5 = 1; + a3 = 6; + a27 = 0; + a18 = 1; + a0 = 1; + return -1; + } else if(((a0==1)&&((((!(a15==1)&&(((a12==8)&&(!(a6==1)&&(((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a20==1))))&&(a3==6)))&&!(a4==1))&&!(a5==1))&&!(a27==1)))){ + a22 = 1; + a3 = 4; + a15 = 1; + a5 = 1; + a4 = 1; + a6 = 1; + a27 = 1; + a18 = 1; + return -1; + } else if((!(a27==1)&&((!(a4==1)&&((((((a12==10)&&((!(a0==1)&&((a6==1)&&(input==4)))&&(a22==1)))&&(a15==1))&&(a20==1))&&(a3==4))&&!(a5==1)))&&(a18==1)))){ + if((a27==1)){ + a4 = 1; + a12 = 8; + a27 = 1; + a18 = 0; + a6 = 0; + a0 = 1; + a5 = 1; + }else{ + a5 = 1; + a4 = 1; + a3 = 8; + a27 = 1; + a0 = 1; + a18 = 0; + } + return -1; + } else if(((a3==4)&&((((((a5==1)&&(((((input==3)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&!(a15==1))&&(a4==1))&&(a12==11)))&&(a27==1))&&(a0==1))&&(a20==1))&&(a6==1)))){ + a5 = 0; + a22 = 0; + a18 = 1; + a3 = 7; + a4 = 0; + a12 = 9; + a6 = 0; + return -1; + } else if(((((((((a4==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1)))))&&(input==4)))&&(a20==1))&&!(a0==1))&&!(a27==1))&&(a5==1))&&(a12==8))&&!(a15==1))){ + if((a18==1)){ + a12 = 10; + a6 = 1; + a22 = 0; + a18 = 0; + a3 = 4; + a15 = 1; + a5 = 0; + a4 = 0; + }else{ + a12 = 9; + a22 = 1; + a3 = 5; + a4 = 0; + a6 = 1; + a18 = 0; + } + return 26; + } else if((((a4==1)&&(((((!(a5==1)&&((!(a27==1)&&(((input==2)&&!(a15==1))&&(a12==11)))&&!(a6==1)))&&(a20==1))&&(a3==8))&&(a18==1))&&(a0==1)))&&(a22==1))){ + a15 = 1; + a27 = 1; + a12 = 8; + a6 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if((((!(a4==1)&&(((!(a15==1)&&(((((a12==9)&&((input==1)&&((a18==1)||!(a18==1))))&&(a6==1))&&!(a22==1))&&!(a0==1)))&&(a27==1))&&(a20==1)))&&(a3==7))&&!(a5==1))){ + a0 = 1; + a3 = 5; + a6 = 0; + a4 = 1; + a5 = 1; + a12 = 8; + a18 = 0; + return 26; + } else if((((a0==1)&&(((a20==1)&&(((!(a5==1)&&(((input==6)&&((((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==7)))||(((a22==1)&&(a18==1))&&(a3==8))))&&!(a27==1)))&&(a12==10))&&!(a15==1)))&&!(a6==1)))&&!(a4==1))){ + if((a18==1)){ + a0 = 0; + a27 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + a18 = 0; + }else{ + a3 = 5; + a27 = 1; + a5 = 1; + a12 = 11; + a0 = 0; + a6 = 1; + a18 = 0; + a22 = 0; + a15 = 1; + } + return 26; + } else if(((a27==1)&&(!(a6==1)&&(!(a4==1)&&(((a5==1)&&(((((a12==8)&&((input==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))&&(a20==1))&&(a3==8))&&(a15==1)))&&(a0==1)))))){ + if((a22==1)){ + a18 = 1; + a6 = 1; + a12 = 9; + a22 = 0; + a0 = 0; + a4 = 1; + }else{ + a15 = 0; + a0 = 0; + a22 = 1; + a18 = 1; + a3 = 6; + a4 = 1; + } + return 21; + } else if(((a5==1)&&(!(a0==1)&&((a15==1)&&((a6==1)&&(((a27==1)&&((!(a22==1)&&(((a18==1)&&((a12==8)&&(input==4)))&&(a20==1)))&&!(a4==1)))&&(a3==6))))))){ + if((a4==1)){ + a12 = 10; + a22 = 1; + a4 = 1; + a3 = 8; + }else{ + a6 = 0; + a12 = 10; + a22 = 1; + a4 = 1; + a5 = 0; + a3 = 4; + } + return 26; + } else if(((a0==1)&&(((a6==1)&&(((((!(a27==1)&&(((input==4)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a3==4)))&&(a20==1))&&!(a15==1))&&(a5==1))&&!(a4==1)))&&(a12==11)))){ + a12 = 10; + a18 = 1; + a22 = 0; + a15 = 1; + a27 = 1; + a3 = 7; + return 26; + } else if(((!(a5==1)&&((!(a15==1)&&(!(a6==1)&&(((a0==1)&&(!(a27==1)&&((a12==12)&&((!(a18==1)&&(input==2))&&!(a22==1)))))&&(a4==1))))&&(a3==8)))&&(a20==1))){ + a22 = 1; + a6 = 1; + a3 = 5; + a15 = 1; + a12 = 11; + a4 = 0; + a18 = 1; + return -1; + } else if(((!(a6==1)&&((!(a22==1)&&(((a12==11)&&((a20==1)&&((((((a18==1)||!(a18==1))&&(input==4))&&(a0==1))&&(a3==7))&&!(a15==1))))&&(a5==1)))&&(a27==1)))&&!(a4==1))){ + a4 = 1; + a18 = 1; + a15 = 1; + a22 = 1; + a6 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((((((a12==8)&&((((input==2)&&(((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1))))&&!(a27==1))&&(a0==1)))&&!(a15==1))&&(a20==1))&&(a5==1))&&(a4==1))){ + a27 = 1; + a3 = 4; + a6 = 1; + a18 = 1; + a15 = 1; + a22 = 1; + return -1; + } else if((!(a5==1)&&((a20==1)&&(((((a6==1)&&((a27==1)&&(((a0==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&(a3==7)))&&(a15==1))))&&!(a22==1))&&(a12==12))&&!(a4==1))))){ + a6 = 0; + a4 = 1; + a3 = 6; + a27 = 0; + a12 = 10; + a18 = 1; + a22 = 1; + return 26; + } else if(((a20==1)&&((((!(a5==1)&&((a4==1)&&(((a27==1)&&(((((a18==1)||!(a18==1))&&(input==1))&&(a12==12))&&(a22==1)))&&!(a15==1))))&&!(a6==1))&&(a0==1))&&(a3==5)))){ + a4 = 0; + a12 = 11; + a18 = 1; + return 21; + } else if(((a12==11)&&((a0==1)&&(((((!(a15==1)&&((!(a18==1)&&((a4==1)&&(!(a5==1)&&(input==5))))&&(a22==1)))&&(a27==1))&&(a6==1))&&(a3==5))&&(a20==1))))){ + a4 = 0; + a3 = 4; + a12 = 10; + a6 = 0; + return -1; + } else if((((((a15==1)&&(((a6==1)&&(!(a5==1)&&((a20==1)&&((input==1)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1))))))))&&(a12==9)))&&!(a0==1))&&(a27==1))&&!(a4==1))){ + a18 = 1; + a0 = 1; + a12 = 10; + a22 = 0; + a3 = 7; + a15 = 0; + return 26; + } else if((!(a4==1)&&(((!(a27==1)&&((a20==1)&&((a0==1)&&((a6==1)&&((a12==8)&&(((input==1)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&!(a5==1)))))))&&(a15==1))&&(a3==8)))){ + a18 = 1; + a3 = 5; + a5 = 1; + a4 = 1; + a22 = 0; + a6 = 0; + return 24; + } else if(((!(a6==1)&&((((a20==1)&&((a12==11)&&(((a0==1)&&((((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==2)))&&!(a15==1))))&&(a27==1))&&(a4==1)))&&!(a5==1))){ + if((a5==1)){ + a27 = 0; + a6 = 1; + a4 = 0; + a18 = 1; + a12 = 12; + a3 = 5; + a15 = 1; + a22 = 1; + }else{ + a5 = 1; + a6 = 1; + a12 = 10; + a22 = 0; + a3 = 6; + a18 = 1; + } + return -1; + } else if((!(a6==1)&&((a3==4)&&(!(a4==1)&&((a27==1)&&((a18==1)&&(!(a22==1)&&((!(a5==1)&&((a20==1)&&(((a15==1)&&(input==5))&&(a0==1))))&&(a12==10))))))))){ + a15 = 0; + a5 = 1; + return -1; + } else if((((a18==1)&&(!(a27==1)&&((a20==1)&&(((((a12==11)&&(((a5==1)&&(!(a0==1)&&(input==2)))&&!(a15==1)))&&(a22==1))&&(a6==1))&&(a4==1)))))&&(a3==4))){ + a15 = 1; + a12 = 8; + a3 = 6; + a4 = 0; + a27 = 1; + a0 = 1; + return 24; + } else if(((!(a6==1)&&((!(a15==1)&&(!(a0==1)&&((a3==8)&&((a20==1)&&(!(a27==1)&&(((input==4)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a12==11)))))))&&(a5==1)))&&!(a4==1))){ + if((a3==5)){ + a0 = 1; + a12 = 8; + a4 = 1; + a27 = 1; + a18 = 1; + a22 = 0; + a15 = 1; + }else{ + a0 = 1; + a12 = 8; + a3 = 7; + a22 = 1; + a27 = 1; + a15 = 1; + a18 = 1; + a4 = 1; + } + return 26; + } else if(((a3==4)&&(((a20==1)&&(!(a27==1)&&((!(a0==1)&&((((((input==4)&&((a18==1)||!(a18==1)))&&!(a5==1))&&!(a4==1))&&(a12==9))&&(a22==1)))&&!(a15==1))))&&!(a6==1)))){ + if((a6==1)){ + a27 = 1; + a3 = 8; + a18 = 0; + a4 = 1; + a12 = 11; + a22 = 0; + }else{ + a15 = 1; + a5 = 1; + a6 = 1; + a0 = 1; + a12 = 8; + a27 = 1; + a3 = 6; + a18 = 1; + a4 = 1; + } + return 24; + } else if(((a20==1)&&((!(a4==1)&&((!(a6==1)&&(((a22==1)&&(!(a5==1)&&((a27==1)&&((a18==1)&&((a3==5)&&(input==3))))))&&(a12==9)))&&(a0==1)))&&!(a15==1)))){ + a12 = 10; + a18 = 0; + a4 = 1; + a5 = 1; + a3 = 4; + a22 = 0; + return 24; + } else if((((a27==1)&&(!(a22==1)&&((((!(a18==1)&&(((((a12==8)&&(input==3))&&(a0==1))&&(a20==1))&&(a6==1)))&&(a15==1))&&(a3==8))&&!(a5==1))))&&!(a4==1))){ + a3 = 4; + a18 = 1; + a4 = 1; + a5 = 1; + a22 = 1; + return -1; + } return calculate_output61(input); + } + + int calculate_output61(int input) { + if(((a5==1)&&(!(a15==1)&&(((a3==6)&&(((((a12==8)&&(!(a27==1)&&((a20==1)&&(((a18==1)||!(a18==1))&&(input==1)))))&&(a4==1))&&!(a22==1))&&(a6==1)))&&(a0==1))))){ + a3 = 4; + a22 = 1; + a18 = 1; + a15 = 1; + a27 = 1; + return -1; + } else if((((a5==1)&&(!(a15==1)&&(((a3==7)&&((((a0==1)&&((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==2))&&(a12==9)))&&(a20==1))&&!(a27==1)))&&!(a6==1))))&&!(a4==1))){ + a22 = 1; + a3 = 5; + a12 = 10; + a18 = 0; + a27 = 1; + return 21; + } else if(((a6==1)&&((a3==7)&&((a12==10)&&(!(a5==1)&&((a15==1)&&(((a4==1)&&(((!(a22==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a27==1))&&(a20==1)))&&(a0==1)))))))){ + a5 = 1; + a18 = 1; + a12 = 12; + a6 = 0; + return 26; + } else if((!(a27==1)&&((a3==4)&&(((!(a22==1)&&(((a18==1)&&((((a0==1)&&((input==4)&&(a4==1)))&&!(a15==1))&&(a20==1)))&&(a5==1)))&&(a12==12))&&!(a6==1))))){ + if((a0==1)){ + a5 = 0; + a4 = 0; + }else{ + a15 = 1; + a6 = 1; + a12 = 11; + a22 = 1; + a27 = 1; + } + return 26; + } else if((!(a4==1)&&(((a6==1)&&(((((a12==10)&&(((a20==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2)))&&!(a15==1)))&&(a3==6))&&!(a5==1))&&(a0==1)))&&!(a27==1)))){ + a22 = 1; + a5 = 1; + a15 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + a4 = 1; + a27 = 1; + return -1; + } else if((((a12==12)&&((((a20==1)&&(!(a0==1)&&((a4==1)&&(((input==5)&&(((a3==5)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4)))))&&!(a27==1)))))&&(a5==1))&&(a6==1)))&&(a15==1))){ + a27 = 1; + a22 = 1; + a18 = 0; + a0 = 1; + a3 = 6; + a4 = 0; + a12 = 8; + return -1; + } else if(((((a20==1)&&((((a3==7)&&(((a12==8)&&((a4==1)&&((input==2)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&!(a27==1)))&&!(a0==1))&&!(a5==1)))&&!(a6==1))&&(a15==1))){ + a22 = 1; + a5 = 1; + a0 = 1; + a6 = 1; + a18 = 1; + a27 = 1; + a3 = 8; + a4 = 0; + return -1; + } else if((!(a0==1)&&(!(a15==1)&&((((a4==1)&&((!(a27==1)&&(((a6==1)&&((((a18==1)||!(a18==1))&&(input==4))&&!(a5==1)))&&!(a22==1)))&&(a3==4)))&&(a12==9))&&(a20==1))))){ + a27 = 1; + a6 = 0; + a4 = 0; + a3 = 7; + a0 = 1; + a18 = 0; + return -1; + } else if(((((!(a4==1)&&((((!(a0==1)&&((a6==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==2))))&&(a27==1))&&(a20==1))&&(a3==8)))&&!(a5==1))&&(a12==11))&&!(a15==1))){ + a18 = 1; + a22 = 1; + a6 = 0; + a3 = 7; + a27 = 0; + a12 = 8; + a0 = 1; + return 21; + } else if((((((a12==10)&&((((a4==1)&&((input==6)&&(((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))||((((a3==8)&&(!(a22==1)&&(a18==1)))&&(a6==1))||((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))))))&&!(a5==1))&&(a0==1)))&&(a27==1))&&(a20==1))&&(a15==1))){ + a12 = 8; + a22 = 0; + a3 = 6; + a6 = 0; + a5 = 1; + a18 = 1; + a4 = 0; + return 21; + } else if((((a12==8)&&((a3==7)&&((a5==1)&&((a22==1)&&(!(a27==1)&&((!(a4==1)&&(((a6==1)&&((input==3)&&(a15==1)))&&!(a18==1)))&&!(a0==1)))))))&&(a20==1))){ + if((a4==1)){ + a4 = 1; + a18 = 1; + a15 = 0; + a3 = 6; + a12 = 11; + a5 = 0; + }else{ + a27 = 1; + a3 = 8; + a4 = 1; + a0 = 1; + a18 = 1; + } + return -1; + } else if(((!(a5==1)&&(((((a0==1)&&(((a20==1)&&(!(a15==1)&&((!(a18==1)&&(input==5))&&(a22==1))))&&!(a27==1)))&&(a4==1))&&(a6==1))&&(a3==7)))&&(a12==10))){ + a18 = 1; + a15 = 1; + a27 = 1; + a5 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((((a15==1)&&((a27==1)&&(((((a12==8)&&((a0==1)&&(((input==3)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a4==1))))&&(a3==7))&&!(a6==1))&&(a20==1))))&&!(a5==1))){ + a22 = 0; + a3 = 4; + a5 = 1; + a12 = 10; + a18 = 1; + return 24; + } else if(((a3==6)&&(!(a15==1)&&((((!(a0==1)&&(!(a18==1)&&(!(a4==1)&&(!(a27==1)&&(((input==1)&&(a5==1))&&(a12==9))))))&&!(a6==1))&&(a20==1))&&(a22==1))))){ + a4 = 1; + a27 = 1; + a15 = 1; + a22 = 0; + a3 = 4; + a12 = 8; + a0 = 1; + return -1; + } else if((!(a5==1)&&(!(a22==1)&&(((((a3==4)&&(((((a0==1)&&((input==6)&&(a15==1)))&&(a4==1))&&(a6==1))&&(a18==1)))&&(a20==1))&&(a12==9))&&!(a27==1))))){ + a15 = 0; + a12 = 8; + a22 = 1; + a4 = 0; + a5 = 1; + return 21; + } else if((((((!(a5==1)&&((a4==1)&&(((a22==1)&&(((((a18==1)||!(a18==1))&&(input==1))&&(a3==4))&&(a15==1)))&&!(a6==1))))&&!(a27==1))&&(a12==8))&&(a20==1))&&(a0==1))){ + a18 = 1; + a12 = 11; + a5 = 1; + a22 = 0; + a3 = 5; + return 24; + } else if(((a20==1)&&((((((a0==1)&&(((a4==1)&&(((((a22==1)&&!(a18==1))&&(a3==5))||(((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1)))))&&(input==3)))&&(a12==11)))&&!(a6==1))&&(a5==1))&&!(a15==1))&&!(a27==1)))){ + if((a5==1)){ + a27 = 1; + a22 = 0; + a18 = 0; + a12 = 9; + a0 = 0; + a4 = 0; + a3 = 4; + a15 = 1; + }else{ + a0 = 0; + a15 = 1; + a12 = 9; + a27 = 1; + a18 = 0; + a5 = 0; + a22 = 1; + a3 = 5; + a6 = 1; + } + return -1; + } else if((((a12==9)&&((a6==1)&&(!(a5==1)&&((a27==1)&&(((((a15==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a22==1)))&&(a20==1))&&!(a4==1))&&!(a0==1))))))&&(a3==4))){ + a12 = 10; + a22 = 0; + a0 = 1; + a5 = 1; + a18 = 1; + return -1; + } else if(((((a12==12)&&((((!(a6==1)&&(!(a4==1)&&((((input==1)&&((a18==1)||!(a18==1)))&&(a20==1))&&(a27==1))))&&!(a15==1))&&(a22==1))&&!(a5==1)))&&(a3==6))&&(a0==1))){ + a5 = 1; + a18 = 0; + a22 = 0; + a3 = 8; + return 21; + } else if((!(a0==1)&&((a3==7)&&(!(a15==1)&&((!(a5==1)&&((a20==1)&&(((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==5))&&(a12==10))&&!(a6==1))&&(a27==1))))&&(a4==1)))))){ + a18 = 1; + a6 = 1; + a3 = 6; + a22 = 1; + a27 = 0; + a0 = 1; + a4 = 0; + a12 = 8; + return 21; + } else if((((a27==1)&&((((!(a4==1)&&((a15==1)&&(((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==2))&&(a5==1))&&!(a0==1))))&&(a3==7))&&(a12==11))&&!(a6==1)))&&(a20==1))){ + a18 = 1; + a0 = 1; + a22 = 0; + a3 = 5; + a6 = 1; + return 26; + } else if(((!(a18==1)&&(!(a15==1)&&((a5==1)&&((a3==4)&&(((a22==1)&&((a6==1)&&((a27==1)&&(((input==1)&&(a0==1))&&(a12==10)))))&&(a20==1))))))&&(a4==1))){ + a12 = 8; + a18 = 1; + a15 = 1; + return -1; + } else if(((a5==1)&&(!(a6==1)&&((a0==1)&&(((a20==1)&&(!(a15==1)&&((((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==4))&&!(a27==1))&&!(a4==1))))&&(a12==11)))))){ + a4 = 1; + a6 = 1; + a18 = 1; + a3 = 7; + a12 = 10; + a5 = 0; + a22 = 1; + a27 = 1; + a15 = 1; + return -1; + } else if(((a3==5)&&(((a4==1)&&(!(a18==1)&&(((((a22==1)&&((((a5==1)&&(input==5))&&!(a0==1))&&!(a27==1)))&&!(a15==1))&&(a20==1))&&!(a6==1))))&&(a12==8)))){ + a12 = 9; + a6 = 1; + a3 = 7; + a5 = 0; + a4 = 0; + return 21; + } else if(((a6==1)&&(!(a0==1)&&(!(a4==1)&&((a12==10)&&(!(a27==1)&&((!(a15==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==6))&&!(a5==1)))&&(a20==1)))))))){ + a15 = 1; + a4 = 1; + a0 = 1; + a22 = 0; + a18 = 1; + a5 = 1; + a3 = 6; + a27 = 1; + a12 = 8; + return 26; + } else if(((((a12==12)&&((((a3==7)&&(((((a0==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a4==1))&&(a22==1))&&(a5==1)))&&(a20==1))&&!(a27==1)))&&(a15==1))&&(a6==1))){ + a27 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((a6==1)&&((a4==1)&&(((a3==4)&&(((a20==1)&&((a12==12)&&((a0==1)&&((a15==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==2))))))&&(a27==1)))&&(a5==1))))){ + a22 = 0; + a3 = 6; + a18 = 0; + a12 = 11; + a6 = 0; + return 26; + } else if((!(a22==1)&&((((a3==7)&&((a27==1)&&(((a20==1)&&((a0==1)&&(((((a18==1)||!(a18==1))&&(input==5))&&!(a15==1))&&!(a6==1))))&&!(a5==1))))&&(a12==10))&&!(a4==1)))){ + a18 = 1; + a15 = 1; + a27 = 0; + return 21; + } else if((((((!(a15==1)&&(((a20==1)&&(!(a6==1)&&((((a0==1)&&(input==6))&&(a5==1))&&!(a4==1))))&&(a18==1)))&&(a22==1))&&(a27==1))&&(a3==7))&&(a12==8))){ + a5 = 0; + a15 = 1; + a3 = 6; + a4 = 1; + a6 = 1; + a12 = 9; + return 21; + } else if(((((((!(a15==1)&&((a0==1)&&(!(a22==1)&&(!(a4==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a20==1))))))&&!(a5==1))&&(a6==1))&&(a3==7))&&(a12==8))&&(a27==1))){ + a22 = 1; + a3 = 8; + a18 = 0; + a5 = 1; + a12 = 11; + return 21; + } else if(((((a20==1)&&((a5==1)&&(((((!(a0==1)&&((a4==1)&&(((a18==1)||!(a18==1))&&(input==6))))&&!(a22==1))&&(a12==10))&&(a3==4))&&!(a15==1))))&&(a6==1))&&!(a27==1))){ + a18 = 0; + a12 = 12; + a3 = 6; + a22 = 1; + a4 = 0; + a27 = 1; + return -1; + } else if(((((a0==1)&&((!(a4==1)&&((!(a27==1)&&(((((a3==6)&&((a22==1)&&!(a18==1)))||(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1)))))&&(input==2))&&(a20==1)))&&!(a5==1)))&&(a15==1)))&&(a12==11))&&!(a6==1))){ + a3 = 5; + a22 = 1; + a6 = 1; + a18 = 0; + return -1; + } else if((!(a15==1)&&(((((a20==1)&&((!(a4==1)&&(((input==5)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8))))&&(a6==1)))&&(a5==1)))&&!(a0==1))&&(a27==1))&&(a12==12)))){ + if((a6==1)){ + a18 = 1; + a0 = 1; + a3 = 5; + a22 = 0; + a15 = 1; + a12 = 8; + }else{ + a22 = 0; + a18 = 1; + a3 = 7; + a6 = 0; + a12 = 10; + a4 = 1; + a27 = 0; + a5 = 0; + } + return 26; + } else if(((a15==1)&&((!(a6==1)&&((a27==1)&&((a5==1)&&((((a12==9)&&((input==2)&&(((a3==6)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1)))))))&&(a20==1))&&!(a0==1)))))&&!(a4==1)))){ + a18 = 1; + a12 = 8; + a22 = 1; + a6 = 1; + a4 = 1; + a0 = 1; + a3 = 4; + return -1; + } else if((((((a0==1)&&((a15==1)&&((((((((!(a22==1)&&(a18==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==4))&&(a20==1))&&(a12==11))&&(a27==1))))&&(a6==1))&&(a4==1))&&!(a5==1))){ + a18 = 1; + a3 = 8; + a12 = 9; + a22 = 1; + a0 = 0; + a6 = 0; + a4 = 0; + return -1; + } else if(((((!(a0==1)&&((a20==1)&&(!(a15==1)&&(!(a4==1)&&((a6==1)&&((input==2)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))))))))&&(a12==9))&&(a5==1))&&(a27==1))){ + a18 = 1; + a6 = 0; + a12 = 10; + a3 = 5; + a0 = 1; + a15 = 1; + a22 = 0; + return 26; + } else if(((!(a27==1)&&((a0==1)&&((a3==6)&&((((!(a15==1)&&(((a4==1)&&((input==4)&&(a20==1)))&&!(a5==1)))&&!(a22==1))&&!(a18==1))&&(a12==11)))))&&!(a6==1))){ + a4 = 0; + a15 = 1; + a18 = 1; + a22 = 1; + a27 = 1; + a6 = 1; + a3 = 5; + a5 = 1; + return 26; + } else if(((!(a0==1)&&(!(a27==1)&&((((!(a15==1)&&((!(a5==1)&&(((a20==1)&&(input==3))&&!(a6==1)))&&(a12==10)))&&(a3==7))&&(a18==1))&&!(a22==1))))&&(a4==1))){ + a18 = 0; + a4 = 0; + a5 = 1; + a6 = 1; + a3 = 5; + a0 = 1; + a15 = 1; + a12 = 8; + a27 = 1; + return -1; + } else if(((((((input==2)&&(((!(a6==1)&&((a3==8)&&(!(a4==1)&&(!(a15==1)&&((a5==1)&&(!(a18==1)&&!(a22==1)))))))||((a6==1)&&(((a4==1)&&((!(a5==1)&&((a18==1)&&(a22==1)))&&(a15==1)))&&(a3==4))))||((a6==1)&&(((a4==1)&&((!(a5==1)&&(!(a18==1)&&(a22==1)))&&(a15==1)))&&(a3==4)))))&&(a0==1))&&(a20==1))&&(a12==10))&&(a27==1))){ + a4 = 0; + a3 = 8; + a6 = 0; + a18 = 1; + a12 = 11; + a5 = 1; + a15 = 0; + a22 = 0; + return 21; + } else if(((!(a5==1)&&(!(a27==1)&&((a22==1)&&(!(a18==1)&&((a0==1)&&(((a15==1)&&((((input==2)&&!(a6==1))&&(a12==8))&&!(a4==1)))&&(a3==5)))))))&&(a20==1))){ + a12 = 11; + a3 = 6; + a22 = 0; + a5 = 1; + a27 = 1; + a4 = 1; + return -1; + } else if((!(a15==1)&&(!(a18==1)&&((a6==1)&&(((a4==1)&&((a3==6)&&(!(a22==1)&&((a27==1)&&((a5==1)&&((a12==10)&&((a0==1)&&(input==3))))))))&&(a20==1)))))){ + a0 = 0; + a5 = 0; + a18 = 1; + a15 = 1; + a3 = 5; + a12 = 11; + return 24; + } else if(((a27==1)&&((a0==1)&&((a6==1)&&(!(a15==1)&&((!(a5==1)&&((a4==1)&&(((input==2)&&(((a3==7)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))))&&(a12==11))))&&(a20==1))))))){ + a3 = 4; + a12 = 10; + a15 = 1; + a18 = 1; + a22 = 0; + return 21; + } else if(((a12==8)&&((a27==1)&&(((a22==1)&&(!(a15==1)&&((a4==1)&&((((((input==2)&&((a18==1)||!(a18==1)))&&(a5==1))&&(a20==1))&&(a3==7))&&(a6==1)))))&&!(a0==1))))){ + a15 = 1; + a5 = 0; + a18 = 1; + a12 = 10; + a27 = 0; + a3 = 6; + a0 = 1; + return -1; + } else if((!(a4==1)&&(!(a18==1)&&(((a27==1)&&(!(a6==1)&&((((a12==9)&&((((a0==1)&&(input==5))&&(a15==1))&&(a22==1)))&&(a20==1))&&(a3==6))))&&(a5==1))))){ + a5 = 0; + a3 = 7; + a12 = 12; + a18 = 1; + return 24; + } else if(((a6==1)&&(((a12==10)&&((a20==1)&&((!(a4==1)&&(((((((a18==1)||!(a18==1))&&(input==4))&&(a3==7))&&(a27==1))&&!(a0==1))&&!(a15==1)))&&(a5==1))))&&!(a22==1)))){ + a15 = 1; + a4 = 1; + a18 = 0; + a12 = 11; + a3 = 4; + a0 = 1; + return 21; + } else if(((((a6==1)&&((a12==9)&&(((a4==1)&&((!(a0==1)&&((((input==6)&&!(a27==1))&&(a3==8))&&!(a15==1)))&&(a20==1)))&&!(a5==1))))&&(a22==1))&&(a18==1))){ + a22 = 0; + a0 = 1; + a12 = 8; + a18 = 0; + a27 = 1; + a15 = 1; + a3 = 7; + a5 = 1; + return 21; + } else if((((a0==1)&&((!(a27==1)&&((a15==1)&&(!(a4==1)&&((a20==1)&&(!(a5==1)&&((input==6)&&((((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==7)))||((a3==8)&&((a22==1)&&(a18==1))))))))))&&!(a6==1)))&&(a12==8))){ + if((a6==1)){ + a5 = 1; + a0 = 0; + a22 = 1; + a12 = 9; + a3 = 8; + a18 = 1; + a4 = 1; + a27 = 1; + }else{ + a6 = 1; + a4 = 1; + a12 = 9; + a22 = 0; + a18 = 1; + a3 = 5; + } + return 21; + } else if(((((((!(a22==1)&&((((!(a0==1)&&((input==2)&&((a18==1)||!(a18==1))))&&(a3==8))&&(a20==1))&&(a27==1)))&&(a5==1))&&(a12==9))&&!(a4==1))&&(a6==1))&&(a15==1))){ + a5 = 0; + a4 = 1; + a0 = 1; + a15 = 0; + a18 = 0; + a3 = 6; + a12 = 10; + a22 = 1; + return -1; + } else if((((((a20==1)&&(((a6==1)&&((((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==3))&&(a12==12))&&!(a4==1))&&(a3==5)))&&!(a5==1)))&&!(a0==1))&&(a27==1))&&(a15==1))){ + a0 = 1; + a4 = 1; + a22 = 1; + a18 = 1; + a3 = 7; + a5 = 1; + a12 = 8; + return -1; + } else if((((a15==1)&&((!(a6==1)&&((!(a0==1)&&((a4==1)&&((a12==12)&&(!(a5==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a20==1))))))&&(a3==5)))&&(a22==1)))&&(a27==1))){ + a3 = 7; + a18 = 0; + a22 = 0; + a12 = 8; + a5 = 1; + a0 = 1; + a6 = 1; + a4 = 0; + return 21; + } else if(((a22==1)&&(!(a5==1)&&((((a4==1)&&((((a20==1)&&((!(a15==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a6==1)))&&(a12==9))&&(a27==1)))&&(a3==8))&&!(a0==1))))){ + a0 = 1; + a4 = 0; + a27 = 0; + a5 = 1; + a18 = 0; + a6 = 0; + a12 = 10; + return 21; + } else if(((!(a4==1)&&(((a5==1)&&(((((a6==1)&&((input==5)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6)))))&&!(a27==1))&&!(a0==1))&&(a15==1)))&&(a20==1)))&&(a12==11))){ + a12 = 12; + a22 = 0; + a3 = 6; + a18 = 0; + a27 = 1; + return -1; + } else if((!(a5==1)&&((a3==5)&&(((((((((input==2)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a20==1))&&!(a15==1))&&!(a0==1))&&(a6==1))&&(a27==1))&&(a12==11))&&(a4==1))))){ + a15 = 1; + a12 = 8; + a5 = 1; + a3 = 4; + a0 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if((!(a15==1)&&(!(a0==1)&&((a12==8)&&(((a3==7)&&((((((!(a27==1)&&(input==1))&&!(a4==1))&&!(a5==1))&&(a18==1))&&(a20==1))&&(a6==1)))&&(a22==1)))))){ + a15 = 1; + a4 = 1; + a3 = 8; + a27 = 1; + a0 = 1; + a5 = 1; + return 21; + } else if(((!(a5==1)&&(!(a4==1)&&((a12==12)&&(!(a15==1)&&((a20==1)&&((!(a6==1)&&((input==5)&&((((a22==1)&&(a18==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&(a18==1)))||((a3==7)&&(!(a18==1)&&!(a22==1)))))))&&!(a0==1)))))))&&(a27==1))){ + a15 = 1; + a0 = 1; + a6 = 1; + a12 = 8; + a18 = 1; + a5 = 1; + a22 = 1; + a3 = 7; + return -1; + } else if(((a15==1)&&((a20==1)&&(((((a27==1)&&(!(a5==1)&&((!(a6==1)&&((input==4)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))))&&(a12==11))))&&(a3==6))&&(a4==1))&&!(a0==1))))){ + a18 = 1; + a5 = 1; + a0 = 1; + a22 = 1; + a4 = 0; + a6 = 1; + return 21; + } else if((!(a6==1)&&(((a5==1)&&((a4==1)&&((((((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a12==10))&&!(a27==1))&&(a20==1))&&!(a0==1))&&(a3==8))))&&(a15==1)))){ + a15 = 0; + a0 = 1; + a27 = 1; + a22 = 0; + a3 = 5; + a18 = 1; + a6 = 1; + a12 = 11; + a4 = 0; + return -1; + } else if((((!(a27==1)&&((a3==5)&&((a15==1)&&((((!(a0==1)&&(((input==2)&&(a22==1))&&!(a5==1)))&&(a6==1))&&(a12==8))&&(a20==1)))))&&(a4==1))&&(a18==1))){ + a6 = 0; + a3 = 8; + a5 = 1; + a12 = 9; + a18 = 0; + return -1; + } else if(((a20==1)&&(((((((!(a5==1)&&(((input==6)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a3==7)))&&(a0==1))&&!(a15==1))&&(a12==11))&&(a27==1))&&!(a4==1))&&(a6==1)))){ + a18 = 0; + a6 = 0; + a27 = 0; + a4 = 1; + a3 = 8; + a22 = 0; + return 21; + } else if((!(a0==1)&&(!(a4==1)&&(!(a6==1)&&(((((a27==1)&&(((((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==3))&&!(a15==1)))&&(a12==11))&&(a20==1))&&(a5==1)))))){ + a0 = 1; + a22 = 0; + a3 = 5; + a18 = 0; + return -1; + } else if((((a3==4)&&(!(a22==1)&&(((a0==1)&&(((a18==1)&&((((a15==1)&&((a20==1)&&(input==6)))&&(a12==9))&&!(a4==1)))&&!(a5==1)))&&(a27==1))))&&(a6==1))){ + a5 = 1; + a22 = 1; + a4 = 1; + a12 = 8; + return -1; + } else if((((a27==1)&&(!(a15==1)&&((a12==11)&&(!(a4==1)&&((((!(a6==1)&&((a0==1)&&((input==6)&&((a18==1)||!(a18==1)))))&&(a3==8))&&(a22==1))&&(a20==1))))))&&(a5==1))){ + a22 = 0; + a12 = 10; + a6 = 1; + a5 = 0; + a3 = 7; + a18 = 1; + return -1; + } else if((((((a5==1)&&((a3==7)&&(!(a6==1)&&((a20==1)&&((!(a22==1)&&((((a18==1)||!(a18==1))&&(input==5))&&(a0==1)))&&(a15==1))))))&&(a12==9))&&!(a4==1))&&(a27==1))){ + a18 = 1; + a4 = 1; + a3 = 8; + a15 = 0; + a6 = 1; + a5 = 0; + a12 = 12; + a22 = 1; + return 26; + } else if((((!(a6==1)&&((a4==1)&&(!(a15==1)&&((a27==1)&&((a12==10)&&(((input==3)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1)))))&&!(a0==1)))))))&&!(a5==1))&&(a20==1))){ + a18 = 1; + a22 = 0; + a0 = 1; + a12 = 11; + a3 = 5; + a27 = 0; + a4 = 0; + return 21; + } else if((!(a5==1)&&(((((a15==1)&&((((a6==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1))&&(a27==1)))&&(a12==8))&&(a20==1)))&&(a3==8))&&!(a0==1))&&(a4==1)))){ + a4 = 0; + a0 = 1; + a12 = 11; + a22 = 0; + a3 = 7; + a18 = 1; + return 26; + } else if(((((a27==1)&&((((a18==1)&&((!(a5==1)&&(((a20==1)&&((input==1)&&!(a6==1)))&&(a3==4)))&&!(a22==1)))&&(a4==1))&&(a15==1)))&&!(a0==1))&&(a12==11))){ + a12 = 8; + a0 = 1; + a5 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if(((a6==1)&&((((((((a4==1)&&((((input==1)&&((a18==1)||!(a18==1)))&&!(a15==1))&&(a27==1)))&&(a0==1))&&(a3==7))&&!(a22==1))&&(a20==1))&&(a12==12))&&!(a5==1)))){ + a5 = 1; + a22 = 1; + a18 = 0; + return 26; + } else if((!(a6==1)&&(((a20==1)&&((a27==1)&&((((((a4==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==3)))&&!(a5==1))&&(a12==9))&&(a15==1))&&(a3==4))))&&!(a0==1)))){ + a15 = 0; + a22 = 0; + a18 = 0; + a3 = 6; + a12 = 10; + a0 = 1; + a5 = 1; + return -1; + } else if(((a4==1)&&((a20==1)&&((((!(a18==1)&&((a3==6)&&(((!(a22==1)&&((input==3)&&(a12==9)))&&(a5==1))&&(a6==1))))&&(a27==1))&&(a15==1))&&(a0==1))))){ + a18 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((!(a5==1)&&((((a20==1)&&((((a0==1)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==4)))&&!(a15==1))&&(a12==9)))&&(a27==1))&&(a4==1)))&&!(a6==1))){ + a15 = 1; + a12 = 8; + a5 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a6 = 1; + return -1; + } else if(((((a27==1)&&((((!(a6==1)&&(((input==3)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==8)))||((a3==8)&&(!(a18==1)&&(a22==1)))))&&!(a4==1)))&&(a0==1))&&(a15==1))&&(a5==1)))&&(a20==1))&&(a12==12))){ + a12 = 11; + a5 = 0; + a6 = 1; + a3 = 6; + a18 = 0; + a4 = 1; + a22 = 0; + return -1; + } else if((!(a15==1)&&((a3==7)&&((((a20==1)&&((((!(a27==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==5)))&&!(a5==1))&&!(a6==1))&&(a0==1)))&&(a12==9))&&!(a4==1))))){ + a12 = 10; + a27 = 1; + a4 = 1; + a15 = 1; + a3 = 4; + a18 = 0; + a22 = 1; + return 26; + } else if(((a27==1)&&((a12==12)&&((((((input==4)&&((!(a6==1)&&(((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8)))||(((((a18==1)&&(a22==1))&&!(a4==1))&&(a3==4))&&(a6==1))))&&!(a15==1))&&(a20==1))&&!(a0==1))&&(a5==1))))){ + a22 = 1; + a18 = 0; + a4 = 1; + a0 = 1; + a12 = 8; + a15 = 1; + a3 = 7; + a6 = 0; + return -1; + } else if((!(a4==1)&&((!(a15==1)&&(!(a6==1)&&((a27==1)&&(((a0==1)&&(((input==5)&&((((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==6))))&&(a12==8)))&&!(a5==1)))))&&(a20==1)))){ + a22 = 1; + a6 = 1; + a5 = 1; + a15 = 1; + a18 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((a3==8)&&((a20==1)&&((a27==1)&&(!(a22==1)&&(((a12==10)&&((a4==1)&&(!(a5==1)&&(!(a15==1)&&((a6==1)&&((input==4)&&!(a0==1)))))))&&!(a18==1))))))){ + a22 = 1; + a15 = 1; + a18 = 1; + a0 = 1; + a5 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((((((a6==1)&&((((a0==1)&&((a12==10)&&((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==2))&&(a5==1))))&&!(a4==1))&&(a27==1)))&&(a15==1))&&(a20==1))&&(a3==6))){ + a22 = 0; + a3 = 5; + a6 = 0; + a18 = 0; + a4 = 1; + return -1; + } else if((((a12==11)&&((a3==4)&&((((!(a27==1)&&((a15==1)&&(!(a5==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4)))))&&(a6==1))&&(a0==1))&&(a4==1))))&&(a20==1))){ + a22 = 0; + a0 = 0; + a27 = 1; + a18 = 0; + a12 = 9; + a4 = 0; + return -1; + } else if(((a20==1)&&((a0==1)&&((a12==10)&&(!(a6==1)&&(!(a5==1)&&((!(a15==1)&&(((a3==8)&&((input==4)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))))&&(a27==1)))&&!(a4==1)))))))){ + a5 = 1; + a6 = 1; + a15 = 1; + a22 = 1; + a3 = 4; + a4 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if(((a27==1)&&((a5==1)&&(((!(a0==1)&&(((a12==8)&&(((input==6)&&((((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1))))||((a3==7)&&((a18==1)&&(a22==1)))))&&(a6==1)))&&!(a4==1)))&&!(a15==1))&&(a20==1))))){ + a18 = 1; + a3 = 4; + a4 = 1; + a0 = 1; + a15 = 1; + a22 = 1; + return -1; + } else if((((((a12==10)&&(!(a18==1)&&(((a3==5)&&(((a27==1)&&(((a20==1)&&(input==4))&&!(a6==1)))&&(a0==1)))&&!(a4==1))))&&!(a15==1))&&!(a22==1))&&!(a5==1))){ + a5 = 1; + a4 = 1; + a15 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + a6 = 1; + return -1; + } else if((((a22==1)&&((a27==1)&&(((!(a4==1)&&((((a12==12)&&((((a18==1)||!(a18==1))&&(input==2))&&(a0==1)))&&(a20==1))&&(a3==6)))&&!(a15==1))&&(a6==1))))&&!(a5==1))){ + a6 = 0; + a15 = 1; + a27 = 0; + a5 = 1; + a22 = 0; + a18 = 1; + return 21; + } else if(((!(a0==1)&&((((a18==1)&&((a12==11)&&((a6==1)&&(!(a15==1)&&(((a22==1)&&((input==2)&&(a27==1)))&&(a20==1))))))&&(a5==1))&&!(a4==1)))&&(a3==4))){ + a3 = 5; + a27 = 0; + a18 = 0; + a0 = 1; + return 21; + } else if((((((!(a4==1)&&(((a3==6)&&((a12==9)&&((!(a15==1)&&((input==5)&&!(a0==1)))&&!(a5==1))))&&(a18==1)))&&(a6==1))&&(a20==1))&&(a27==1))&&(a22==1))){ + a3 = 4; + a5 = 1; + a15 = 1; + a12 = 8; + a0 = 1; + a4 = 1; + return -1; + } else if(((a0==1)&&(((((!(a6==1)&&(!(a4==1)&&(!(a27==1)&&((a12==12)&&((!(a18==1)&&(input==3))&&(a3==6))))))&&(a5==1))&&!(a22==1))&&(a15==1))&&(a20==1)))){ + a6 = 1; + a18 = 1; + a12 = 8; + a27 = 1; + a3 = 4; + a4 = 1; + a22 = 1; + return -1; + } else if(((a4==1)&&((((((((a20==1)&&(((input==1)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&(a12==12)))&&!(a15==1))&&(a5==1))&&!(a27==1))&&(a3==4))&&(a6==1))&&(a0==1)))){ + a22 = 0; + a6 = 0; + a12 = 8; + a18 = 0; + a3 = 5; + a4 = 0; + a5 = 0; + return -1; + } else if(((((((a5==1)&&((a27==1)&&(!(a22==1)&&((a20==1)&&(((a4==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a6==1))))))&&!(a0==1))&&!(a15==1))&&(a12==10))&&(a3==8))){ + a12 = 11; + a27 = 0; + a15 = 1; + a3 = 7; + a22 = 1; + a18 = 0; + a0 = 1; + return 21; + } else if(((((a12==8)&&((((!(a15==1)&&(((!(a27==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&!(a4==1))&&(a0==1)))&&(a20==1))&&(a3==5))&&!(a22==1)))&&(a5==1))&&!(a6==1))){ + a12 = 11; + a22 = 1; + a18 = 0; + a5 = 0; + a27 = 1; + return 21; + } else if((((a18==1)&&(!(a22==1)&&((a27==1)&&(!(a4==1)&&((a5==1)&&(((a20==1)&&((a3==4)&&(((input==4)&&(a12==8))&&!(a0==1))))&&(a15==1)))))))&&!(a6==1))){ + a3 = 6; + a5 = 0; + a12 = 10; + a0 = 1; + a18 = 0; + a4 = 1; + return -1; + } else if((((!(a15==1)&&(((a3==8)&&((a27==1)&&(((a0==1)&&((((input==3)&&(a4==1))&&(a20==1))&&!(a5==1)))&&(a22==1))))&&!(a18==1)))&&(a12==12))&&!(a6==1))){ + a6 = 1; + a4 = 0; + a27 = 0; + a15 = 1; + a3 = 7; + a5 = 1; + a22 = 0; + return 21; + } else if(((a4==1)&&(((a15==1)&&((!(a22==1)&&(((((a27==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a12==12)))&&!(a6==1))&&(a0==1))&&(a5==1)))&&(a3==8)))&&(a20==1)))){ + a18 = 0; + a22 = 1; + a12 = 11; + a15 = 0; + return 24; + } else if((((!(a0==1)&&(((a12==8)&&(((!(a6==1)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==6)))&&(a27==1))&&!(a4==1)))&&!(a5==1)))&&(a20==1))&&(a15==1))){ + a5 = 1; + a3 = 5; + a18 = 0; + a22 = 0; + a0 = 1; + return 24; + } else if((((((((((((a4==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&!(a5==1))&&(a3==4))&&!(a22==1))&&(a12==11))&&!(a0==1))&&!(a15==1))&&(a6==1))&&(a20==1))&&!(a27==1))){ + if((a20==1)){ + a0 = 1; + a3 = 5; + a27 = 1; + a15 = 1; + a12 = 8; + a4 = 0; + a5 = 1; + a18 = 0; + }else{ + a4 = 0; + a18 = 0; + a12 = 10; + a3 = 7; + } + return -1; + } else if(((a4==1)&&(((a0==1)&&(((((a27==1)&&((a12==9)&&((((a3==8)&&(!(a18==1)&&(a22==1)))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1)))))&&(input==5))))&&(a20==1))&&(a5==1))&&(a15==1)))&&(a6==1)))){ + a12 = 8; + a18 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((a5==1)&&(!(a4==1)&&(!(a22==1)&&((((!(a18==1)&&(((((a15==1)&&(input==2))&&(a3==8))&&(a12==12))&&(a6==1)))&&(a20==1))&&(a27==1))&&!(a0==1)))))){ + a15 = 0; + a0 = 1; + a18 = 1; + a12 = 9; + a27 = 0; + a6 = 0; + a3 = 6; + a22 = 1; + return 21; + } else if(((a3==6)&&(!(a4==1)&&(((a20==1)&&((((((!(a0==1)&&((a5==1)&&(input==5)))&&!(a27==1))&&!(a6==1))&&(a22==1))&&!(a18==1))&&(a12==9)))&&!(a15==1))))){ + if((a27==1)){ + a4 = 1; + a15 = 1; + a3 = 5; + a22 = 0; + a6 = 1; + }else{ + a27 = 1; + a12 = 10; + a15 = 1; + a3 = 8; + a0 = 1; + a5 = 0; + } + return -1; + } else if(((((a3==5)&&((a12==11)&&(!(a4==1)&&((a0==1)&&(((!(a15==1)&&((input==3)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))))&&!(a5==1))&&!(a27==1))))))&&(a6==1))&&(a20==1))){ + a18 = 1; + a4 = 1; + a5 = 1; + a22 = 0; + a3 = 8; + return -1; + } else if(((a20==1)&&((a5==1)&&((a0==1)&&(!(a6==1)&&((a4==1)&&((a12==9)&&(((((((a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==5))))&&(input==1))&&!(a15==1))&&!(a27==1))))))))){ + a3 = 8; + a27 = 1; + a15 = 1; + a18 = 1; + a5 = 0; + a4 = 0; + a22 = 1; + a12 = 12; + return -1; + } else if(((((!(a27==1)&&(!(a0==1)&&(((a20==1)&&(((input==3)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1)))))&&!(a15==1)))&&(a5==1))))&&!(a6==1))&&!(a4==1))&&(a12==8))){ + if((a3==6)){ + a15 = 1; + a27 = 1; + a12 = 9; + a3 = 7; + a18 = 0; + a5 = 0; + a22 = 0; + }else{ + a18 = 1; + a4 = 1; + a3 = 5; + a12 = 10; + a22 = 1; + } + return -1; + } else if(((!(a5==1)&&((a0==1)&&(((a12==8)&&(!(a4==1)&&(!(a15==1)&&((!(a6==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==6)))&&(a3==4)))))&&(a20==1))))&&(a27==1))){ + a12 = 11; + a6 = 1; + a15 = 1; + a22 = 1; + a18 = 0; + a4 = 1; + return 26; + } else if((!(a5==1)&&(!(a4==1)&&(((((a18==1)&&((!(a15==1)&&((a12==9)&&(((a22==1)&&(input==5))&&(a0==1))))&&!(a6==1)))&&(a27==1))&&(a20==1))&&(a3==5))))){ + a4 = 1; + a5 = 1; + a18 = 0; + a3 = 4; + a27 = 0; + return 24; + } else if((((((((!(a6==1)&&((a3==4)&&(((a5==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a27==1))))&&(a12==12))&&(a15==1))&&!(a4==1))&&(a20==1))&&(a22==1))&&(a0==1))){ + a6 = 1; + a12 = 8; + a18 = 1; + a4 = 1; + return -1; + } else if((!(a15==1)&&((a12==9)&&(((a20==1)&&(!(a27==1)&&(((a0==1)&&((((input==4)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&!(a5==1))&&!(a4==1)))&&(a3==6))))&&!(a6==1))))){ + a3 = 5; + a22 = 1; + a18 = 1; + a15 = 1; + a12 = 8; + a4 = 1; + a5 = 1; + return -1; + } else if(((a5==1)&&((a27==1)&&(!(a0==1)&&((((a15==1)&&(((a3==5)&&(((a22==1)&&(!(a6==1)&&(input==6)))&&(a18==1)))&&!(a4==1)))&&(a20==1))&&(a12==11)))))){ + a6 = 1; + a12 = 8; + a3 = 4; + a4 = 1; + a0 = 1; + return -1; + } else if(((a20==1)&&(((!(a15==1)&&((((((a12==9)&&((a3==4)&&((input==6)&&(a4==1))))&&!(a27==1))&&!(a18==1))&&!(a5==1))&&!(a22==1)))&&(a0==1))&&!(a6==1)))){ + a12 = 8; + a18 = 1; + a15 = 1; + a5 = 1; + a27 = 1; + a22 = 1; + a6 = 1; + return -1; + } else if((((((((!(a0==1)&&((a12==10)&&(((!(a6==1)&&(input==2))&&(a22==1))&&!(a5==1))))&&!(a4==1))&&(a27==1))&&!(a18==1))&&!(a15==1))&&(a20==1))&&(a3==8))){ + a12 = 8; + a6 = 1; + a18 = 1; + a0 = 1; + a15 = 1; + a5 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((((((a12==12)&&((!(a15==1)&&((a0==1)&&((input==1)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))||((!(a18==1)&&(a22==1))&&(a3==6))))))&&(a20==1)))&&(a6==1))&&(a4==1))&&(a5==1))&&(a27==1))){ + a12 = 8; + a18 = 1; + a22 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if((((a0==1)&&((!(a5==1)&&((((a12==8)&&(((input==1)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1)))))&&(a4==1)))&&(a20==1))&&(a6==1)))&&(a27==1)))&&(a15==1))){ + a15 = 0; + a18 = 1; + a3 = 4; + a12 = 9; + a22 = 1; + return 24; + } else if((((a4==1)&&((((((((!(a18==1)&&((a3==4)&&(input==6)))&&(a5==1))&&(a22==1))&&(a6==1))&&!(a27==1))&&(a15==1))&&(a12==10))&&(a20==1)))&&!(a0==1))){ + if((a18==1)){ + a5 = 0; + a18 = 1; + a22 = 0; + a3 = 6; + a12 = 12; + a0 = 1; + a6 = 0; + }else{ + a0 = 1; + a3 = 7; + a12 = 8; + a18 = 1; + a27 = 1; + } + return 21; + } else if(((((a6==1)&&((a20==1)&&((!(a5==1)&&((a4==1)&&((((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a0==1))&&(a12==8))))&&(a15==1))))&&(a3==8))&&(a27==1))){ + a15 = 0; + a3 = 6; + a18 = 0; + a4 = 0; + a5 = 1; + a22 = 1; + a12 = 9; + a0 = 1; + a27 = 0; + return 26; + } else if((((((a20==1)&&((a4==1)&&((((((a15==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a12==11))&&!(a6==1))&&!(a27==1))&&!(a5==1))))&&!(a0==1))&&!(a22==1))&&(a3==4))){ + if((a4==1)){ + a18 = 0; + a0 = 1; + a12 = 8; + a6 = 1; + a22 = 1; + a5 = 1; + a27 = 1; + }else{ + a27 = 1; + a5 = 1; + a0 = 1; + a6 = 1; + a12 = 8; + a18 = 0; + a3 = 7; + } + return 21; + } else if((((a12==8)&&(!(a5==1)&&((a0==1)&&((!(a4==1)&&(((input==1)&&((((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1))||(((a6==1)&&((a3==8)&&(!(a22==1)&&(a18==1))))||((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8))))))&&(a20==1)))&&!(a15==1)))))&&(a27==1))){ + a18 = 0; + a5 = 1; + a6 = 0; + a12 = 11; + a22 = 1; + a3 = 6; + return 26; + } else if(((!(a0==1)&&(((((((a20==1)&&((((input==3)&&(a12==11))&&(a5==1))&&!(a15==1)))&&!(a4==1))&&(a6==1))&&!(a18==1))&&!(a27==1))&&(a3==4)))&&(a22==1))){ + if((a18==1)){ + a15 = 1; + a12 = 8; + a3 = 5; + a27 = 1; + a0 = 1; + a4 = 1; + }else{ + a15 = 1; + a0 = 1; + a12 = 8; + a27 = 1; + a4 = 1; + a18 = 1; + a3 = 8; + } + return -1; + } else if((!(a5==1)&&(!(a0==1)&&((a6==1)&&(((((a3==7)&&((!(a15==1)&&((((a18==1)||!(a18==1))&&(input==3))&&(a22==1)))&&(a20==1)))&&(a27==1))&&(a12==9))&&!(a4==1)))))){ + a12 = 10; + a22 = 0; + a0 = 1; + a15 = 1; + a18 = 1; + a4 = 1; + a3 = 8; + return 26; + } else if(((!(a4==1)&&(!(a15==1)&&((a12==11)&&((a6==1)&&(((((!(a22==1)&&((input==4)&&(a3==4)))&&(a18==1))&&!(a0==1))&&(a20==1))&&!(a27==1))))))&&!(a5==1))){ + if((a5==1)){ + a27 = 1; + a0 = 1; + a3 = 8; + a15 = 1; + a4 = 1; + a6 = 0; + a5 = 1; + }else{ + a12 = 8; + a5 = 1; + a0 = 1; + a18 = 0; + a3 = 6; + a22 = 1; + a27 = 1; + a15 = 1; + } + return 26; + } else if((!(a0==1)&&((a12==11)&&((((a5==1)&&((a20==1)&&((a3==6)&&((!(a6==1)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==4)))&&(a4==1)))))&&(a15==1))&&(a27==1))))){ + a22 = 1; + a0 = 1; + a3 = 4; + a18 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if(((!(a15==1)&&((((((a12==10)&&((a0==1)&&((a20==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==5)))))&&!(a5==1))&&(a4==1))&&(a3==8))&&!(a6==1)))&&!(a27==1))){ + a27 = 1; + a18 = 1; + a22 = 0; + a12 = 11; + a4 = 0; + a6 = 1; + a0 = 0; + a5 = 1; + return 26; + } else if(((a12==10)&&((!(a0==1)&&((a20==1)&&(!(a15==1)&&(((!(a27==1)&&((((a22==1)&&(input==4))&&(a4==1))&&(a18==1)))&&!(a5==1))&&(a3==6)))))&&(a6==1)))){ + if((a22==1)){ + a12 = 12; + a4 = 0; + a27 = 1; + a5 = 1; + a0 = 1; + a3 = 5; + a22 = 0; + }else{ + a6 = 0; + a22 = 0; + a3 = 5; + a5 = 1; + a12 = 11; + } + return -1; + } else if(((a15==1)&&(((!(a5==1)&&((a3==7)&&((a20==1)&&((((a4==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1)))&&(a12==12))&&!(a6==1)))))&&!(a27==1))&&(a0==1)))){ + if((a22==1)){ + a3 = 6; + a27 = 1; + a22 = 1; + a15 = 0; + a6 = 1; + a12 = 11; + a0 = 0; + a18 = 0; + }else{ + a18 = 1; + a22 = 0; + } + return 26; + } else if((!(a27==1)&&(((((((a12==11)&&(!(a5==1)&&((input==1)&&((((a18==1)&&(a22==1))&&(a3==7))||(((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a22==1)&&!(a18==1))))))))&&(a15==1))&&!(a4==1))&&(a0==1))&&(a20==1))&&(a6==1)))){ + a12 = 8; + a3 = 7; + a18 = 0; + a27 = 1; + a6 = 0; + a15 = 0; + a4 = 1; + a5 = 1; + a22 = 0; + return 26; + } else if((!(a6==1)&&((a3==5)&&((((a27==1)&&(!(a4==1)&&(!(a15==1)&&(((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==5))&&(a20==1))&&!(a5==1)))))&&(a12==8))&&!(a0==1))))){ + a18 = 0; + a22 = 1; + a4 = 1; + a3 = 4; + a0 = 1; + a5 = 1; + a12 = 12; + return 26; + } else if((!(a22==1)&&((a20==1)&&((a15==1)&&((a12==9)&&((((a3==7)&&((a4==1)&&(!(a18==1)&&(!(a27==1)&&((a5==1)&&(input==4))))))&&!(a6==1))&&(a0==1))))))){ + a12 = 11; + a5 = 0; + a22 = 1; + a4 = 0; + a18 = 1; + a3 = 6; + return 21; + } else if(((((a0==1)&&(!(a4==1)&&((((((input==5)&&(((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||((a3==6)&&((a22==1)&&(a18==1)))))&&!(a6==1))&&!(a27==1))&&!(a15==1))&&(a12==8))))&&(a20==1))&&!(a5==1))){ + a5 = 1; + a15 = 1; + a12 = 10; + a22 = 0; + a18 = 1; + a3 = 6; + return 21; + } else if((!(a22==1)&&(((a27==1)&&((((a3==5)&&(((a5==1)&&((((input==2)&&!(a18==1))&&!(a6==1))&&(a4==1)))&&(a0==1)))&&(a20==1))&&(a12==12)))&&!(a15==1)))){ + a18 = 1; + a12 = 11; + a3 = 4; + a5 = 0; + return -1; + } else if(((((((((a4==1)&&((!(a22==1)&&(((input==2)&&(a5==1))&&(a3==6)))&&(a20==1)))&&(a0==1))&&!(a15==1))&&!(a18==1))&&!(a6==1))&&(a12==9))&&!(a27==1))){ + a15 = 1; + a22 = 1; + a12 = 8; + a27 = 1; + a6 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((((!(a0==1)&&((a3==4)&&(((((a27==1)&&((a6==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==5))))&&(a15==1))&&!(a5==1))&&(a12==10))))&&(a20==1))&&(a4==1))){ + a18 = 1; + a3 = 6; + a12 = 11; + a22 = 1; + a0 = 1; + return 26; + } else if((!(a6==1)&&((((a15==1)&&((a20==1)&&((((a5==1)&&((!(a22==1)&&(!(a0==1)&&(input==3)))&&(a4==1)))&&(a27==1))&&(a3==8))))&&(a12==8))&&(a18==1)))){ + a3 = 4; + a0 = 1; + a12 = 10; + a4 = 0; + return -1; + } else if(((a20==1)&&(((a6==1)&&(!(a5==1)&&((((((a18==1)&&(!(a15==1)&&((a0==1)&&(input==2))))&&!(a4==1))&&(a12==12))&&!(a27==1))&&!(a22==1))))&&(a3==8)))){ + a18 = 0; + a15 = 1; + a12 = 11; + a27 = 1; + a4 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((((((a12==12)&&(((a6==1)&&(((a20==1)&&((input==2)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))))&&(a27==1)))&&(a3==6)))&&(a15==1))&&(a5==1))&&!(a0==1))&&!(a4==1))){ + a27 = 0; + a3 = 7; + a15 = 0; + a22 = 0; + a12 = 10; + a18 = 0; + a5 = 0; + a0 = 1; + return 26; + } else if((((!(a0==1)&&(!(a4==1)&&((a27==1)&&((a12==8)&&((a22==1)&&((!(a15==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a20==1)))&&!(a5==1)))))))&&(a6==1))&&(a3==5))){ + a3 = 4; + a12 = 11; + a18 = 1; + a4 = 1; + a15 = 1; + return 21; + } else if(((a20==1)&&(((a15==1)&&(!(a22==1)&&(((a0==1)&&((((((a3==8)&&(input==4))&&!(a5==1))&&(a6==1))&&!(a4==1))&&!(a27==1)))&&(a12==8))))&&!(a18==1)))){ + a12 = 11; + a27 = 1; + a3 = 4; + a4 = 1; + a5 = 1; + a18 = 1; + return 26; + } else if(((a22==1)&&((a5==1)&&(((a15==1)&&((a27==1)&&(!(a4==1)&&(((a0==1)&&((a12==9)&&(((a6==1)&&(input==5))&&(a20==1))))&&(a3==5)))))&&!(a18==1))))){ + if((a18==1)){ + a5 = 0; + a18 = 1; + a0 = 0; + a12 = 10; + a3 = 6; + a4 = 1; + }else{ + a18 = 1; + a15 = 0; + a12 = 12; + a6 = 0; + a3 = 7; + } + return 26; + } else if(((a15==1)&&((a20==1)&&(((!(a5==1)&&(((a27==1)&&(((a3==6)&&(((input==4)&&!(a6==1))&&(a12==12)))&&(a22==1)))&&!(a18==1)))&&(a0==1))&&(a4==1))))){ + a12 = 11; + a0 = 0; + a5 = 1; + a15 = 0; + return -1; + } else if((((a20==1)&&((a12==8)&&(((a15==1)&&(((a4==1)&&(((input==6)&&(((a3==6)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))))&&(a5==1)))&&!(a6==1)))&&!(a0==1))))&&(a27==1))){ + a15 = 0; + a3 = 5; + a4 = 0; + a0 = 1; + a18 = 0; + a6 = 1; + a5 = 0; + a22 = 1; + return 24; + } else if(((a0==1)&&((((((((a4==1)&&((a6==1)&&((input==4)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))))&&(a3==8))&&!(a27==1))&&(a20==1))&&!(a5==1))&&!(a15==1))&&(a12==9)))){ + if((a22==1)){ + a3 = 5; + a22 = 1; + a6 = 0; + a18 = 0; + a12 = 11; + a0 = 0; + a27 = 1; + }else{ + a3 = 5; + a27 = 1; + a12 = 11; + a18 = 1; + a15 = 1; + a22 = 0; + } + return 24; + } else if(((a6==1)&&(((a20==1)&&(((((a27==1)&&(((input==2)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1)))))&&(a5==1)))&&(a15==1))&&(a12==11))&&!(a4==1)))&&!(a0==1)))){ + a4 = 1; + a0 = 1; + a18 = 1; + a15 = 0; + a6 = 0; + a3 = 6; + a22 = 0; + a12 = 10; + a27 = 0; + return -1; + } else if(((a15==1)&&(((!(a18==1)&&((((((!(a4==1)&&((a22==1)&&(input==2)))&&(a12==10))&&(a3==8))&&(a0==1))&&!(a27==1))&&(a20==1)))&&!(a5==1))&&(a6==1)))){ + a27 = 1; + a3 = 6; + a12 = 11; + a22 = 0; + a5 = 1; + return 21; + } else if((((a27==1)&&((a5==1)&&(((a12==9)&&(!(a4==1)&&(((!(a15==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==3)))&&(a0==1))&&(a6==1))))&&(a3==6))))&&(a20==1))){ + a4 = 1; + a6 = 0; + a27 = 0; + a3 = 7; + a15 = 1; + a12 = 8; + a18 = 0; + a22 = 1; + return 21; + } else if(((!(a15==1)&&(((a3==7)&&(((a4==1)&&(((!(a5==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==3)))&&(a6==1))&&(a12==8)))&&!(a0==1)))&&!(a27==1)))&&(a20==1))){ + a27 = 1; + a18 = 1; + a5 = 1; + a3 = 8; + a15 = 1; + a22 = 1; + a0 = 1; + return 26; + } else if(((a27==1)&&((a5==1)&&(((a15==1)&&(!(a0==1)&&(((a20==1)&&(((input==1)&&(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1)))))&&!(a6==1)))&&(a12==12))))&&(a4==1))))){ + a3 = 5; + a0 = 1; + a22 = 0; + a12 = 10; + a15 = 0; + a18 = 0; + return 26; + } else if(((a27==1)&&((((a20==1)&&(!(a18==1)&&((a22==1)&&(((a6==1)&&((!(a0==1)&&((input==6)&&(a3==4)))&&(a12==11)))&&(a15==1)))))&&(a4==1))&&!(a5==1)))){ + a18 = 1; + a5 = 1; + a12 = 8; + a0 = 1; + return -1; + } else if(((a0==1)&&((a15==1)&&(!(a4==1)&&(!(a27==1)&&((!(a22==1)&&(((!(a6==1)&&(((input==6)&&(a3==6))&&!(a18==1)))&&(a20==1))&&(a12==12)))&&(a5==1))))))){ + a6 = 1; + a15 = 0; + a27 = 1; + return 21; + } else if((((a27==1)&&(((a15==1)&&(((a4==1)&&(!(a0==1)&&((((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a20==1))&&(a5==1))))&&!(a6==1)))&&(a3==4)))&&(a12==12))){ + a0 = 1; + a18 = 1; + a6 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if((((a4==1)&&(!(a5==1)&&((a12==9)&&((a18==1)&&((a22==1)&&(((((a27==1)&&((input==5)&&(a15==1)))&&(a0==1))&&(a20==1))&&(a3==7)))))))&&!(a6==1))){ + if((a20==1)){ + a12 = 11; + a22 = 0; + a3 = 8; + a0 = 0; + a5 = 1; + }else{ + a18 = 0; + a12 = 11; + a3 = 6; + a0 = 0; + a22 = 0; + } + return 21; + } else if(((a5==1)&&(((a3==6)&&((((a15==1)&&(!(a4==1)&&((a12==9)&&((a6==1)&&((a22==1)&&(!(a0==1)&&(input==3)))))))&&(a18==1))&&(a20==1)))&&(a27==1)))){ + a12 = 8; + a5 = 0; + a22 = 0; + a3 = 7; + a18 = 0; + a27 = 0; + a6 = 0; + a0 = 1; + return 26; + } else if(((!(a0==1)&&(!(a27==1)&&(((a4==1)&&((!(a6==1)&&(((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==1))&&!(a5==1))&&(a3==5)))&&(a20==1)))&&(a15==1))))&&(a12==11))){ + a3 = 6; + a12 = 8; + a18 = 0; + a5 = 1; + a27 = 1; + a0 = 1; + a22 = 1; + return -1; + } else if(((a20==1)&&((a12==8)&&(!(a27==1)&&(!(a18==1)&&((a6==1)&&(((a22==1)&&((a5==1)&&((a3==5)&&((a15==1)&&((input==3)&&!(a4==1))))))&&!(a0==1)))))))){ + a5 = 0; + a0 = 1; + a6 = 0; + a18 = 1; + a3 = 4; + a12 = 12; + a22 = 0; + return 21; + } else if(((a22==1)&&((!(a18==1)&&(!(a0==1)&&((a5==1)&&((a20==1)&&((a15==1)&&((a4==1)&&(((a12==9)&&((a3==6)&&(input==4)))&&!(a27==1))))))))&&!(a6==1)))){ + a22 = 0; + a6 = 1; + a0 = 1; + a15 = 0; + a12 = 11; + a3 = 7; + a4 = 0; + return 26; + } else if((((a4==1)&&(((a6==1)&&((a27==1)&&(((a3==5)&&((a12==9)&&((a5==1)&&((!(a15==1)&&(input==3))&&(a20==1)))))&&(a0==1))))&&!(a18==1)))&&!(a22==1))){ + a4 = 0; + a22 = 1; + a12 = 11; + a3 = 7; + return 26; + } else if((((((a4==1)&&(((a3==8)&&((a0==1)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&(a27==1))&&(a20==1))))&&(a15==1)))&&(a12==11))&&!(a5==1))&&!(a6==1))){ + a12 = 8; + a18 = 1; + a3 = 4; + a22 = 1; + a6 = 1; + a5 = 1; + return -1; + } else if(((a0==1)&&(!(a5==1)&&(((a27==1)&&((!(a15==1)&&((input==1)&&(((!(a6==1)&&((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1)))))||(((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))&&(a6==1)))||((((!(a18==1)&&(a22==1))&&!(a4==1))&&(a3==4))&&(a6==1)))))&&(a12==11)))&&(a20==1))))){ + a6 = 1; + a3 = 4; + a4 = 1; + a15 = 1; + a22 = 1; + a18 = 1; + a12 = 8; + a5 = 1; + return -1; + } else if(((a3==8)&&(((a4==1)&&((a12==12)&&(!(a0==1)&&((a20==1)&&(((!(a15==1)&&((a27==1)&&((input==3)&&((a18==1)||!(a18==1)))))&&!(a5==1))&&!(a6==1))))))&&!(a22==1)))){ + a12 = 8; + a18 = 0; + a15 = 1; + a6 = 1; + a0 = 1; + a5 = 1; + return -1; + } else if(((!(a5==1)&&((((((((a27==1)&&(!(a22==1)&&(((a18==1)||!(a18==1))&&(input==6))))&&(a6==1))&&!(a4==1))&&(a15==1))&&(a3==7))&&(a20==1))&&!(a0==1)))&&(a12==8))){ + a18 = 1; + a0 = 1; + a27 = 0; + a3 = 8; + a12 = 11; + return 21; + } else if(((a5==1)&&(((a4==1)&&((!(a6==1)&&(!(a27==1)&&((a15==1)&&(((input==5)&&((((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==5))))&&(a0==1)))))&&(a20==1)))&&(a12==12)))){ + a3 = 4; + a22 = 1; + a6 = 1; + a12 = 8; + a18 = 1; + a27 = 1; + return -1; + } else if((!(a6==1)&&(((a12==8)&&(((a3==8)&&((a20==1)&&((a0==1)&&((!(a15==1)&&((input==6)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))))&&(a27==1)))))&&(a5==1)))&&!(a4==1)))){ + a18 = 1; + a6 = 1; + a4 = 1; + a3 = 4; + a15 = 1; + a22 = 1; + return -1; + } else if(((((((((a12==8)&&(((!(a0==1)&&((input==1)&&(a22==1)))&&(a6==1))&&(a27==1)))&&!(a18==1))&&(a20==1))&&!(a15==1))&&(a3==6))&&!(a4==1))&&(a5==1))){ + a4 = 1; + a12 = 10; + return 24; + } else if((((a27==1)&&(!(a4==1)&&((a22==1)&&(((a3==4)&&(((!(a15==1)&&(((input==1)&&!(a5==1))&&(a20==1)))&&(a18==1))&&(a0==1)))&&!(a6==1)))))&&(a12==9))){ + a5 = 1; + a4 = 1; + a22 = 0; + a27 = 0; + a6 = 1; + return 21; + } else if((((a20==1)&&(((((a15==1)&&(((a5==1)&&((a3==6)&&(((input==6)&&(a12==12))&&(a0==1))))&&!(a27==1)))&&(a6==1))&&(a4==1))&&(a18==1)))&&(a22==1))){ + a27 = 1; + a3 = 8; + a12 = 11; + a4 = 0; + a6 = 0; + a15 = 0; + return 21; + } else if(((((a27==1)&&(!(a0==1)&&(!(a15==1)&&(!(a5==1)&&(!(a6==1)&&((a20==1)&&(((((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==3))))))))&&(a4==1))&&(a12==12))){ + if((a22==1)){ + a3 = 6; + a5 = 1; + a12 = 10; + a27 = 0; + a18 = 1; + a4 = 0; + a22 = 0; + }else{ + a22 = 0; + a18 = 0; + a12 = 9; + a3 = 7; + a5 = 1; + a0 = 1; + } + return -1; + } else if(((a20==1)&&((((a3==4)&&((a27==1)&&((!(a15==1)&&(((a6==1)&&((((a18==1)||!(a18==1))&&(input==6))&&(a5==1)))&&(a12==12)))&&(a22==1))))&&(a0==1))&&(a4==1)))){ + a18 = 0; + a3 = 7; + a6 = 0; + a15 = 1; + a4 = 0; + a22 = 0; + a12 = 11; + return -1; + } else if((((a15==1)&&((!(a0==1)&&((!(a5==1)&&(((a20==1)&&((input==5)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7)))))&&(a4==1)))&&(a27==1)))&&!(a6==1)))&&(a12==9))){ + a0 = 1; + a18 = 1; + a12 = 8; + a5 = 1; + a3 = 4; + a6 = 1; + a22 = 1; + return -1; + } else if((!(a6==1)&&(!(a0==1)&&(((a5==1)&&((a20==1)&&((a4==1)&&(!(a22==1)&&(((a3==7)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a27==1)))&&(a12==12))))))&&(a15==1))))){ + a5 = 0; + a18 = 1; + a0 = 1; + a12 = 9; + a27 = 0; + return 21; + } else if(((((a12==8)&&(((a15==1)&&((((((((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1))))||((a3==6)&&((a22==1)&&!(a18==1))))&&(input==1))&&(a20==1))&&(a4==1))&&(a27==1)))&&!(a6==1)))&&!(a5==1))&&(a0==1))){ + a6 = 1; + a5 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + return -1; + } else if((!(a6==1)&&(((a0==1)&&((((a4==1)&&(((a3==5)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a15==1)))&&!(a5==1)))&&(a12==9))&&(a27==1)))&&(a20==1)))){ + a4 = 0; + a6 = 1; + a3 = 8; + a27 = 0; + a22 = 1; + a12 = 8; + a15 = 0; + a18 = 1; + a5 = 1; + return 21; + } else if((!(a4==1)&&((a22==1)&&((((a12==8)&&(((a3==8)&&(((a0==1)&&((a6==1)&&((input==2)&&((a18==1)||!(a18==1)))))&&(a27==1)))&&!(a15==1)))&&!(a5==1))&&(a20==1))))){ + a3 = 4; + a5 = 1; + a12 = 11; + a18 = 0; + a6 = 0; + return 26; + } else if((!(a0==1)&&(((a20==1)&&((a6==1)&&((a3==8)&&(((a5==1)&&((a12==8)&&((((input==2)&&((a18==1)||!(a18==1)))&&(a15==1))&&!(a27==1))))&&!(a22==1)))))&&!(a4==1)))){ + a3 = 7; + a27 = 1; + a4 = 1; + a0 = 1; + a18 = 1; + return 21; + } else if((!(a18==1)&&((a15==1)&&((a5==1)&&(((((a3==4)&&(((a20==1)&&((a0==1)&&((a4==1)&&(input==1))))&&!(a27==1)))&&(a6==1))&&!(a22==1))&&(a12==9)))))){ + a4 = 0; + a22 = 1; + a15 = 0; + a12 = 11; + a6 = 0; + a27 = 1; + return -1; + } else if(((a27==1)&&(((((a5==1)&&(((a15==1)&&((((input==5)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&(a3==6))&&!(a6==1)))&&(a20==1)))&&(a12==10))&&(a0==1))&&(a4==1)))){ + a3 = 5; + a18 = 1; + a6 = 1; + a22 = 0; + return -1; + } else if((!(a4==1)&&((a22==1)&&((a20==1)&&(!(a5==1)&&((((!(a15==1)&&((!(a18==1)&&((input==4)&&!(a0==1)))&&(a3==7)))&&!(a6==1))&&!(a27==1))&&(a12==8))))))){ + a12 = 9; + a3 = 4; + a5 = 1; + return 21; + } else if(((((((!(a6==1)&&(((a12==11)&&(((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a15==1)))&&(a27==1)))&&(a3==7))&&(a20==1))&&!(a5==1))&&!(a4==1))&&!(a0==1))){ + a6 = 1; + a5 = 1; + a18 = 1; + a0 = 1; + a12 = 10; + a3 = 8; + a22 = 0; + return -1; + } else if(((a12==8)&&(!(a27==1)&&(((a20==1)&&(((a15==1)&&((!(a5==1)&&(((input==1)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a3==6)))&&(a4==1)))&&(a6==1)))&&!(a0==1))))){ + if((a5==1)){ + a27 = 1; + a22 = 1; + a0 = 1; + a3 = 7; + a5 = 1; + a18 = 0; + }else{ + a4 = 0; + a3 = 7; + a0 = 1; + a5 = 1; + a18 = 1; + a22 = 1; + a27 = 1; + } + return 24; + } else if((((a4==1)&&(!(a5==1)&&(!(a0==1)&&(((a12==10)&&(((a27==1)&&((a3==6)&&((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&!(a6==1)))&&(a20==1)))))&&!(a15==1))){ + a22 = 1; + a0 = 1; + a12 = 11; + a4 = 0; + a18 = 0; + a3 = 5; + return 21; + } else if(((((!(a6==1)&&(!(a15==1)&&(!(a4==1)&&((((input==4)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5))))&&(a5==1))&&(a20==1)))))&&!(a0==1))&&(a12==12))&&(a27==1))){ + if((a5==1)){ + a18 = 1; + a4 = 1; + a22 = 0; + a15 = 1; + a0 = 1; + a3 = 6; + a12 = 8; + }else{ + a4 = 1; + a18 = 1; + a22 = 1; + a6 = 1; + a3 = 4; + } + return 21; + } else if((((a27==1)&&(((a0==1)&&((!(a18==1)&&(!(a6==1)&&((((!(a15==1)&&(input==6))&&(a12==8))&&(a20==1))&&(a22==1))))&&(a3==6)))&&(a5==1)))&&(a4==1))){ + a3 = 8; + a12 = 10; + a15 = 1; + a5 = 0; + a4 = 0; + a22 = 0; + a0 = 0; + return 21; + } else if((((((a0==1)&&((a4==1)&&((((!(a5==1)&&((a20==1)&&((input==3)&&(a15==1))))&&(a18==1))&&(a12==11))&&!(a6==1))))&&!(a22==1))&&(a3==5))&&!(a27==1))){ + a6 = 1; + a4 = 0; + a22 = 1; + a18 = 0; + a3 = 7; + a27 = 1; + a15 = 0; + a12 = 10; + return 26; + } else if(((((((((a12==10)&&(((((input==6)&&!(a5==1))&&(a18==1))&&(a6==1))&&(a22==1)))&&(a4==1))&&(a27==1))&&(a3==5))&&!(a0==1))&&(a20==1))&&!(a15==1))){ + a0 = 1; + a15 = 1; + a12 = 8; + a5 = 1; + a3 = 4; + return -1; + } else if((!(a27==1)&&(((((((!(a5==1)&&(!(a0==1)&&((input==4)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))))&&!(a15==1))&&!(a6==1))&&(a3==7))&&(a12==9))&&(a20==1))&&(a4==1)))){ + a5 = 1; + a18 = 0; + a4 = 0; + a0 = 1; + a12 = 8; + a15 = 1; + a3 = 6; + a22 = 0; + a27 = 1; + a6 = 1; + return 21; + } else if((((((a15==1)&&((a27==1)&&(!(a6==1)&&((a3==8)&&((a18==1)&&((a5==1)&&(((a12==10)&&(input==1))&&!(a22==1))))))))&&(a20==1))&&(a4==1))&&!(a0==1))){ + if((a3==4)){ + a18 = 0; + a3 = 7; + a4 = 0; + }else{ + a0 = 1; + a18 = 0; + a15 = 0; + a5 = 0; + a6 = 1; + a3 = 4; + } + return -1; + } else if((!(a15==1)&&((((((a5==1)&&(!(a4==1)&&((!(a27==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5)))&&(a6==1))))&&(a12==11))&&(a20==1))&&(a3==5))&&!(a0==1)))){ + a15 = 1; + a6 = 0; + a18 = 1; + a12 = 8; + a3 = 7; + a22 = 0; + a27 = 1; + a0 = 1; + a4 = 1; + return -1; + } else if((((!(a6==1)&&(!(a15==1)&&((!(a4==1)&&((((a12==11)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==4)))&&(a3==6))&&(a20==1)))&&!(a0==1))))&&(a27==1))&&(a5==1))){ + a4 = 1; + a6 = 1; + a15 = 1; + a18 = 1; + a0 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + return -1; + } else if(((a15==1)&&((a12==8)&&(((!(a22==1)&&(((a3==4)&&(((a4==1)&&(!(a18==1)&&((input==6)&&(a20==1))))&&!(a5==1)))&&!(a6==1)))&&(a27==1))&&!(a0==1))))){ + if((a20==1)){ + a15 = 0; + a22 = 1; + a3 = 6; + a12 = 11; + a18 = 1; + }else{ + a3 = 8; + a22 = 1; + a0 = 1; + a12 = 11; + a4 = 0; + } + return 26; + } else if(((a3==6)&&(!(a6==1)&&(((a12==12)&&((!(a4==1)&&((((((input==4)&&(a15==1))&&(a5==1))&&!(a22==1))&&(a0==1))&&(a20==1)))&&!(a18==1)))&&!(a27==1))))){ + a22 = 1; + a27 = 1; + a3 = 5; + a4 = 1; + a0 = 0; + return -1; + } else if(((a5==1)&&((!(a18==1)&&((a3==6)&&(!(a15==1)&&(((!(a22==1)&&((((input==4)&&!(a4==1))&&(a0==1))&&(a12==12)))&&!(a27==1))&&(a20==1)))))&&(a6==1)))){ + a18 = 1; + a5 = 0; + a22 = 1; + a15 = 1; + a3 = 5; + return -1; + } else if((((((a12==12)&&(!(a4==1)&&(!(a27==1)&&((((((((a18==1)&&!(a22==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==5))&&(a20==1))&&!(a15==1)))))&&!(a6==1))&&!(a5==1))&&(a0==1))){ + a15 = 1; + a5 = 1; + a22 = 1; + a18 = 1; + a27 = 1; + a6 = 1; + a3 = 4; + a4 = 1; + a12 = 8; + return -1; + } else if(((a5==1)&&(!(a6==1)&&((a20==1)&&(((!(a15==1)&&((a4==1)&&(((((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==6))&&(a0==1))))&&(a27==1))&&(a12==10)))))){ + a15 = 1; + a18 = 1; + a6 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + return -1; + } else if((!(a4==1)&&(((((a0==1)&&(((a3==7)&&(!(a15==1)&&((a12==12)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==2)))))&&!(a27==1)))&&(a5==1))&&(a6==1))&&(a20==1)))){ + a4 = 1; + a5 = 0; + a18 = 0; + a3 = 6; + a6 = 0; + a12 = 11; + a22 = 0; + return -1; + } else if(((a12==10)&&(!(a0==1)&&((a20==1)&&((((((input==1)&&(((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1))))))&&!(a5==1))&&(a15==1))&&!(a4==1))&&(a27==1)))))){ + a0 = 1; + a22 = 1; + a18 = 1; + a15 = 0; + a12 = 11; + a6 = 1; + a5 = 1; + a3 = 8; + a4 = 1; + return 26; + } else if((!(a15==1)&&((a4==1)&&((!(a6==1)&&((a5==1)&&(((((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==2))&&!(a0==1))&&(a20==1))&&(a3==6))&&(a27==1))))&&(a12==8))))){ + a18 = 0; + a27 = 0; + a3 = 4; + a12 = 12; + a22 = 0; + a4 = 0; + a0 = 1; + return 26; + } else if(((a4==1)&&(!(a5==1)&&((a12==9)&&((a3==4)&&((((((a20==1)&&((input==2)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a0==1))&&!(a27==1))&&(a6==1))&&!(a15==1))))))){ + a22 = 0; + a0 = 0; + a27 = 1; + a18 = 1; + a15 = 1; + a3 = 6; + a12 = 10; + return 21; + } else if(((a27==1)&&((!(a4==1)&&(((a12==10)&&(!(a15==1)&&((a5==1)&&(!(a22==1)&&((a20==1)&&(!(a0==1)&&((input==6)&&((a18==1)||!(a18==1)))))))))&&(a6==1)))&&(a3==7)))){ + a5 = 0; + a18 = 0; + a12 = 12; + a6 = 0; + a22 = 1; + a3 = 8; + a0 = 1; + return 21; + } else if(((a12==9)&&((((a5==1)&&((a4==1)&&((((((a3==7)&&(!(a18==1)&&(input==4)))&&!(a6==1))&&(a20==1))&&(a0==1))&&(a27==1))))&&!(a22==1))&&!(a15==1)))){ + a12 = 8; + a27 = 0; + a6 = 1; + a18 = 1; + a3 = 5; + a15 = 1; + return 24; + } else if((((!(a0==1)&&((!(a27==1)&&((a12==8)&&(((a20==1)&&((input==1)&&(((a3==8)&&((a22==1)&&(a18==1)))||(((a3==7)&&((a18==1)&&!(a22==1)))||((a3==7)&&(!(a18==1)&&!(a22==1)))))))&&(a6==1))))&&(a15==1)))&&!(a5==1))&&(a4==1))){ + a4 = 0; + a12 = 10; + a27 = 1; + a18 = 1; + a22 = 0; + a5 = 1; + a3 = 8; + a0 = 1; + return 21; + } else if((((a0==1)&&((a6==1)&&((a5==1)&&((!(a27==1)&&(((a4==1)&&(((((a18==1)||!(a18==1))&&(input==1))&&(a3==7))&&(a12==11)))&&(a20==1)))&&!(a15==1)))))&&(a22==1))){ + a15 = 1; + a4 = 0; + a27 = 1; + a18 = 1; + a22 = 0; + return 21; + } else if(((((!(a4==1)&&((((a12==10)&&(((((input==5)&&((a18==1)||!(a18==1)))&&(a5==1))&&!(a22==1))&&!(a0==1)))&&(a15==1))&&(a3==6)))&&(a27==1))&&!(a6==1))&&(a20==1))){ + a12 = 9; + a22 = 1; + a18 = 1; + a0 = 1; + return 24; + } else if(((a12==8)&&(!(a4==1)&&((((((a0==1)&&(((((input==4)&&((a18==1)||!(a18==1)))&&(a3==5))&&(a15==1))&&!(a27==1)))&&(a20==1))&&!(a22==1))&&(a6==1))&&!(a5==1))))){ + if((a22==1)){ + a18 = 0; + a4 = 1; + a0 = 0; + a27 = 1; + a3 = 8; + }else{ + a27 = 1; + a18 = 0; + a4 = 1; + a0 = 0; + a6 = 0; + a22 = 1; + a3 = 7; + } + return 24; + } else if(((((a20==1)&&(!(a0==1)&&(!(a15==1)&&(((((a27==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2)))&&(a3==6))&&!(a5==1))&&(a6==1)))))&&(a12==12))&&(a4==1))){ + if((a22==1)){ + a22 = 0; + a3 = 4; + a6 = 0; + a12 = 11; + a0 = 1; + a5 = 1; + a18 = 1; + a4 = 0; + }else{ + a12 = 8; + a3 = 4; + a18 = 1; + a5 = 1; + a6 = 0; + a15 = 1; + a22 = 0; + a0 = 1; + } + return 21; + } else if((!(a18==1)&&((((a4==1)&&(!(a5==1)&&((a3==5)&&(((a15==1)&&(!(a0==1)&&(((input==3)&&(a6==1))&&(a20==1))))&&(a22==1)))))&&!(a27==1))&&(a12==8)))){ + a3 = 6; + a27 = 1; + a5 = 1; + a18 = 1; + a0 = 1; + a22 = 0; + a6 = 0; + return -1; + } else if((((a20==1)&&(((((a12==10)&&(((!(a4==1)&&((a3==6)&&(((a18==1)||!(a18==1))&&(input==2))))&&!(a0==1))&&(a5==1)))&&(a6==1))&&(a27==1))&&!(a15==1)))&&(a22==1))){ + a0 = 1; + a18 = 1; + a22 = 0; + a3 = 5; + a12 = 8; + a27 = 0; + a6 = 0; + return 21; + } else if((!(a27==1)&&(!(a18==1)&&(((((a15==1)&&((a5==1)&&(((((a20==1)&&(input==6))&&(a12==12))&&!(a22==1))&&!(a4==1))))&&!(a6==1))&&(a0==1))&&(a3==4))))){ + a5 = 0; + a4 = 1; + a22 = 1; + a3 = 6; + a18 = 1; + a27 = 1; + a12 = 11; + return 24; + } else if((((a18==1)&&((((a20==1)&&(((((a4==1)&&(((a0==1)&&(input==6))&&!(a22==1)))&&(a6==1))&&(a5==1))&&(a3==8)))&&(a15==1))&&(a12==9)))&&(a27==1))){ + a22 = 1; + a12 = 12; + a3 = 6; + return 24; + } else if(((a20==1)&&(!(a22==1)&&((a3==7)&&((a12==8)&&((a5==1)&&(!(a15==1)&&(!(a4==1)&&((a0==1)&&((a27==1)&&((a6==1)&&(((a18==1)||!(a18==1))&&(input==2))))))))))))){ + a22 = 1; + a15 = 1; + a3 = 4; + a18 = 1; + a4 = 1; + return -1; + } else if(((a20==1)&&(((!(a15==1)&&(((a0==1)&&((a6==1)&&(!(a5==1)&&((((a3==5)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1)))))&&(input==5)))))&&(a27==1)))&&!(a4==1))&&(a12==8)))){ + a12 = 11; + a5 = 1; + a4 = 1; + a22 = 0; + a18 = 0; + a3 = 7; + return 21; + } else if(((a0==1)&&((a12==11)&&(((((!(a27==1)&&(!(a15==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==3))&&(a5==1))))&&(a3==6))&&(a6==1))&&(a4==1))&&(a20==1))))){ + a5 = 0; + a18 = 1; + a4 = 0; + a6 = 0; + a15 = 1; + a12 = 10; + a22 = 1; + a27 = 1; + return 26; + } else if((((a27==1)&&(((((a12==10)&&(((a20==1)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==2)))&&(a5==1)))&&!(a4==1))&&(a0==1))&&(a6==1)))&&!(a15==1))){ + a6 = 0; + a15 = 1; + a3 = 4; + a5 = 0; + a22 = 0; + a18 = 0; + a12 = 8; + return 26; + } else if((((a20==1)&&(!(a27==1)&&(!(a4==1)&&(!(a0==1)&&((a15==1)&&(!(a5==1)&&(((((((a18==1)&&!(a22==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==5))&&(a12==10))))))))&&!(a6==1))){ + if((a5==1)){ + a12 = 8; + a3 = 7; + a22 = 1; + a27 = 1; + a6 = 1; + a18 = 0; + a0 = 1; + a5 = 1; + }else{ + a12 = 11; + a6 = 1; + a22 = 0; + a4 = 1; + a18 = 1; + a3 = 6; + a27 = 1; + } + return 21; + } else if((!(a6==1)&&((a20==1)&&((a3==8)&&((a0==1)&&(!(a27==1)&&((!(a22==1)&&((a12==12)&&((a18==1)&&((a4==1)&&((a15==1)&&(input==2))))))&&!(a5==1)))))))){ + if((a18==1)){ + a15 = 0; + a5 = 1; + a12 = 10; + a3 = 4; + a0 = 0; + a4 = 0; + a27 = 1; + }else{ + a4 = 0; + a22 = 1; + a3 = 4; + a5 = 1; + a15 = 0; + } + return 21; + } else if(((a20==1)&&(!(a18==1)&&(((a15==1)&&((((((a3==6)&&((a4==1)&&((input==6)&&(a5==1))))&&!(a22==1))&&(a12==12))&&!(a27==1))&&(a6==1)))&&(a0==1))))){ + a3 = 8; + a12 = 11; + a6 = 0; + a5 = 0; + a27 = 1; + a4 = 0; + a18 = 1; + return 24; + } else if((!(a15==1)&&(!(a0==1)&&((((((a27==1)&&(!(a22==1)&&(((!(a6==1)&&(input==1))&&!(a18==1))&&(a5==1))))&&(a12==8))&&(a3==7))&&!(a4==1))&&(a20==1))))){ + a0 = 1; + a4 = 1; + a3 = 4; + a22 = 1; + a27 = 0; + a15 = 1; + return 21; + } else if((!(a6==1)&&(!(a4==1)&&((((a20==1)&&(((a0==1)&&(!(a27==1)&&((a3==6)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==2)))))&&(a12==12)))&&!(a15==1))&&!(a5==1))))){ + a27 = 1; + a12 = 10; + a18 = 0; + a22 = 0; + a0 = 0; + a6 = 1; + a3 = 5; + return 26; + } else if((!(a15==1)&&((((a6==1)&&((((a0==1)&&(((((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==3))&&(a4==1)))&&!(a27==1))&&(a20==1)))&&(a5==1))&&(a12==8)))){ + a15 = 1; + a27 = 1; + a22 = 1; + a12 = 10; + a3 = 4; + a18 = 0; + a4 = 0; + return 21; + } else if(((!(a4==1)&&((a22==1)&&(((a3==8)&&((((((((a18==1)||!(a18==1))&&(input==2))&&(a27==1))&&(a20==1))&&(a15==1))&&(a12==9))&&!(a6==1)))&&(a5==1))))&&!(a0==1))){ + a6 = 1; + a3 = 4; + a12 = 8; + a0 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if(((!(a0==1)&&((!(a5==1)&&((a4==1)&&((!(a27==1)&&((a6==1)&&(((((a22==1)&&!(a18==1))&&(a3==7))||(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1)))))&&(input==1))))&&(a12==8))))&&(a20==1)))&&(a15==1))){ + a5 = 1; + a22 = 0; + a4 = 0; + a18 = 1; + a15 = 0; + a12 = 11; + a3 = 6; + return -1; + } else if((!(a4==1)&&((a20==1)&&((a18==1)&&((a0==1)&&((a27==1)&&((!(a6==1)&&(!(a5==1)&&((((input==3)&&!(a22==1))&&!(a15==1))&&(a12==11))))&&(a3==8)))))))){ + a22 = 1; + return 21; + } else if((((a27==1)&&(!(a6==1)&&((a15==1)&&(((a12==11)&&((a0==1)&&((a5==1)&&((((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==5)))))&&(a20==1)))))&&(a4==1))){ + a3 = 5; + a18 = 0; + a0 = 0; + a12 = 8; + a6 = 1; + a4 = 0; + a22 = 0; + return 26; + } else if((!(a6==1)&&((a27==1)&&(((a12==11)&&((a22==1)&&((((a0==1)&&(!(a15==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a3==5))))&&!(a5==1))&&(a4==1))))&&(a20==1))))){ + a18 = 0; + a6 = 1; + a15 = 1; + a3 = 8; + a22 = 0; + return 24; + } else if((((a27==1)&&(!(a5==1)&&((!(a0==1)&&(((a4==1)&&((a6==1)&&((input==1)&&(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1)))))))&&(a12==9)))&&(a15==1))))&&(a20==1))){ + a15 = 0; + a18 = 1; + a6 = 0; + a22 = 1; + a4 = 0; + a3 = 4; + return 21; + } else if(((a3==8)&&((a18==1)&&(((a20==1)&&(((a12==9)&&(((!(a27==1)&&(((input==5)&&(a6==1))&&!(a4==1)))&&!(a0==1))&&(a5==1)))&&!(a15==1)))&&(a22==1))))){ + if((a0==1)){ + a6 = 0; + a15 = 1; + a4 = 1; + a12 = 8; + a3 = 7; + a22 = 0; + a27 = 1; + }else{ + a3 = 7; + a4 = 1; + a12 = 8; + a15 = 1; + a0 = 1; + a6 = 0; + a27 = 1; + } + return 21; + } else if(((a12==11)&&((a0==1)&&(!(a27==1)&&((a15==1)&&(((a4==1)&&(!(a6==1)&&((a3==8)&&((a5==1)&&((input==5)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))))&&(a20==1))))))){ + a4 = 0; + a15 = 0; + a27 = 1; + a5 = 0; + a22 = 0; + a18 = 0; + a6 = 1; + return -1; + } else if(((a27==1)&&((a6==1)&&((!(a15==1)&&(((!(a5==1)&&(((input==5)&&(((a3==8)&&((a22==1)&&!(a18==1)))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8)))))&&(a20==1)))&&(a0==1))&&!(a4==1)))&&(a12==10))))){ + a6 = 0; + a4 = 1; + a3 = 8; + a18 = 1; + a22 = 0; + a27 = 0; + a15 = 1; + return 26; + } else if(((a0==1)&&((a20==1)&&((!(a4==1)&&((!(a27==1)&&((((a3==8)&&(((a12==11)&&(input==2))&&(a6==1)))&&!(a15==1))&&!(a18==1)))&&!(a5==1)))&&!(a22==1))))){ + a18 = 1; + a5 = 1; + a3 = 4; + a27 = 1; + a4 = 1; + a22 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if((((((((a22==1)&&((!(a27==1)&&((((input==6)&&(a18==1))&&(a15==1))&&(a4==1)))&&(a5==1)))&&!(a6==1))&&!(a0==1))&&(a3==5))&&(a20==1))&&(a12==8))){ + if((a20==1)){ + a0 = 1; + a3 = 8; + a22 = 0; + a27 = 1; + a6 = 1; + a4 = 0; + }else{ + a3 = 7; + a15 = 0; + a18 = 0; + a12 = 9; + a5 = 0; + a22 = 0; + } + return -1; + } return calculate_output62(input); + } + + int calculate_output62(int input) { + if(((a12==11)&&((a27==1)&&(((a0==1)&&((input==4)&&((((a3==8)&&(!(a4==1)&&(((!(a18==1)&&!(a22==1))&&(a5==1))&&!(a15==1))))&&!(a6==1))||((a6==1)&&((a3==4)&&((a4==1)&&((((a18==1)&&(a22==1))&&!(a5==1))&&(a15==1))))))))&&(a20==1))))){ + a18 = 0; + a3 = 8; + a22 = 1; + a15 = 0; + a5 = 1; + a6 = 1; + a27 = 0; + a4 = 1; + return 26; + } else if((((((a12==9)&&(!(a4==1)&&((a5==1)&&((a20==1)&&((((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1)))))&&(input==6))))))&&!(a15==1))&&!(a27==1))&&!(a0==1))){ + if((a3==4)){ + a0 = 1; + a3 = 5; + a6 = 0; + a22 = 1; + a15 = 1; + a18 = 1; + a12 = 8; + a27 = 1; + a4 = 1; + }else{ + a15 = 1; + a12 = 8; + a3 = 4; + a27 = 1; + a0 = 1; + a18 = 1; + a22 = 0; + a6 = 1; + } + return 21; + } else if((!(a4==1)&&((((a12==9)&&((a3==6)&&((a6==1)&&((((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==2))&&!(a5==1))&&!(a0==1))&&(a15==1)))))&&(a27==1))&&(a20==1)))){ + a15 = 0; + a3 = 8; + a0 = 1; + a4 = 1; + a18 = 1; + a12 = 10; + a22 = 0; + return 21; + } else if(((a12==11)&&((a27==1)&&(!(a4==1)&&((a5==1)&&((((a3==7)&&((((input==4)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&(a0==1))&&(a20==1)))&&(a6==1))&&!(a15==1))))))){ + a12 = 8; + a4 = 1; + a18 = 1; + a15 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((a4==1)&&(((a12==9)&&((a27==1)&&((a6==1)&&((!(a15==1)&&((a0==1)&&(((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1))))||((!(a18==1)&&(a22==1))&&(a3==8)))&&(input==4))))&&!(a5==1)))))&&(a20==1)))){ + if((a3==4)){ + a3 = 8; + a12 = 12; + a4 = 0; + a22 = 1; + a18 = 1; + a0 = 0; + a15 = 1; + a5 = 1; + }else{ + a12 = 10; + a22 = 0; + a3 = 4; + a4 = 0; + a18 = 0; + } + return 21; + } else if(((a3==4)&&(((a4==1)&&((((((a12==8)&&(!(a0==1)&&((a15==1)&&(!(a22==1)&&(input==1)))))&&(a6==1))&&!(a18==1))&&(a20==1))&&!(a5==1)))&&!(a27==1)))){ + a3 = 8; + a18 = 1; + a5 = 1; + a15 = 0; + return 21; + } else if(((!(a5==1)&&((a20==1)&&(!(a15==1)&&((a12==11)&&(((a27==1)&&((input==5)&&((!(a6==1)&&((a3==4)&&(!(a18==1)&&(a22==1))))||((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4)))))))&&!(a4==1))))))&&!(a0==1))){ + a4 = 1; + a12 = 8; + a18 = 1; + a0 = 1; + a6 = 1; + a3 = 4; + a15 = 1; + a5 = 1; + a22 = 1; + return -1; + } else if((((((a12==9)&&((a20==1)&&(((!(a5==1)&&(((a22==1)&&(!(a15==1)&&(input==2)))&&(a3==5)))&&(a27==1))&&!(a6==1))))&&(a18==1))&&!(a4==1))&&(a0==1))){ + a22 = 0; + a3 = 7; + a5 = 1; + a4 = 1; + a6 = 1; + a27 = 0; + return 21; + } else if(((!(a0==1)&&(((a12==8)&&(!(a6==1)&&((a20==1)&&((!(a4==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2))&&!(a5==1)))&&(a3==8)))))&&!(a27==1)))&&!(a15==1))){ + a22 = 0; + a3 = 7; + a6 = 1; + a15 = 1; + a18 = 0; + a4 = 1; + return -1; + } else if(((a12==11)&&(((a0==1)&&(((a5==1)&&(((!(a6==1)&&((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==4))&&(a15==1)))&&(a20==1))&&!(a27==1)))&&(a4==1)))&&(a3==8)))){ + a3 = 5; + a4 = 0; + a15 = 0; + a18 = 1; + a22 = 0; + a6 = 1; + return 21; + } else if((!(a27==1)&&(!(a4==1)&&(((((!(a5==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==1))&&(a12==12)))&&(a6==1))&&(a0==1))&&(a15==1))&&(a20==1))))){ + a3 = 7; + a27 = 1; + a22 = 1; + a4 = 1; + a12 = 10; + a18 = 0; + return -1; + } else if((!(a0==1)&&((((a15==1)&&((a3==8)&&((!(a4==1)&&((a5==1)&&((a6==1)&&((input==3)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))))&&(a27==1))))&&(a12==10))&&(a20==1)))){ + a4 = 1; + a12 = 11; + a18 = 0; + a0 = 1; + a22 = 1; + a5 = 0; + return -1; + } else if(((a5==1)&&(((((a20==1)&&((a22==1)&&((a18==1)&&(((a12==12)&&(((input==6)&&!(a6==1))&&(a27==1)))&&!(a15==1)))))&&(a0==1))&&!(a4==1))&&(a3==7)))){ + if((a3==5)){ + a0 = 0; + a3 = 8; + a4 = 1; + a18 = 0; + a12 = 10; + }else{ + a3 = 8; + a22 = 0; + a27 = 0; + a6 = 1; + } + return 21; + } else if(((a4==1)&&((a5==1)&&((a6==1)&&((a12==11)&&(((a20==1)&&(((a0==1)&&(((input==2)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&(a15==1)))&&(a3==8)))&&!(a27==1))))))){ + a22 = 1; + a12 = 10; + a18 = 0; + a15 = 0; + a3 = 4; + a5 = 0; + a27 = 1; + a6 = 0; + return 26; + } else if(((a4==1)&&((((((((a20==1)&&((input==3)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6)))))&&!(a6==1))&&(a12==8))&&!(a27==1))&&(a5==1))&&!(a15==1))&&!(a0==1)))){ + a0 = 1; + a18 = 1; + a3 = 8; + a27 = 1; + a15 = 1; + a4 = 0; + a22 = 0; + return -1; + } else if(((((!(a5==1)&&((((input==2)&&(((((((a18==1)&&!(a22==1))&&(a4==1))&&(a3==8))&&!(a6==1))||((((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8))&&!(a6==1)))||(((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1)))&&(a6==1))))&&(a20==1))&&(a27==1)))&&(a12==12))&&!(a15==1))&&(a0==1))){ + a3 = 8; + a4 = 0; + a27 = 0; + a15 = 1; + a22 = 1; + a18 = 0; + a6 = 1; + a12 = 11; + return 21; + } else if(((a20==1)&&(!(a0==1)&&(((a12==8)&&((!(a27==1)&&(((((a6==1)&&((a4==1)&&(input==6)))&&(a5==1))&&(a18==1))&&(a3==6)))&&(a15==1)))&&(a22==1))))){ + a12 = 11; + a15 = 0; + a4 = 0; + a6 = 0; + a18 = 0; + a27 = 1; + a5 = 0; + a0 = 1; + return 26; + } else if(((((a12==8)&&((!(a15==1)&&((!(a22==1)&&((!(a18==1)&&((a20==1)&&(!(a27==1)&&(input==4))))&&(a3==8)))&&!(a6==1)))&&!(a4==1)))&&!(a5==1))&&(a0==1))){ + a3 = 7; + a12 = 10; + a4 = 1; + a6 = 1; + a22 = 1; + a18 = 1; + a27 = 1; + a15 = 1; + return 26; + } else if((((a5==1)&&((a4==1)&&((a12==8)&&(((a27==1)&&((a6==1)&&((a3==5)&&((((input==5)&&((a18==1)||!(a18==1)))&&!(a15==1))&&(a20==1)))))&&(a0==1)))))&&!(a22==1))){ + a22 = 1; + a5 = 0; + a15 = 1; + a6 = 0; + a18 = 0; + return 26; + } else if(((!(a27==1)&&((a3==5)&&(((a0==1)&&((((!(a5==1)&&((a18==1)&&((a22==1)&&(input==2))))&&(a15==1))&&(a6==1))&&!(a4==1)))&&(a20==1))))&&(a12==11))){ + a3 = 4; + a27 = 1; + a4 = 1; + a5 = 1; + a12 = 8; + return -1; + } else if((((a18==1)&&((((a3==6)&&((((a5==1)&&(((a12==12)&&(!(a27==1)&&(input==1)))&&(a20==1)))&&(a6==1))&&!(a22==1)))&&(a0==1))&&!(a15==1)))&&(a4==1))){ + a12 = 8; + a3 = 4; + a22 = 1; + a15 = 1; + a27 = 1; + return -1; + } else if(((a27==1)&&(((a20==1)&&(!(a5==1)&&(((((a12==10)&&((a3==6)&&(!(a4==1)&&((input==6)&&((a18==1)||!(a18==1))))))&&(a6==1))&&(a0==1))&&(a22==1))))&&(a15==1)))){ + a4 = 1; + a5 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((((((((a4==1)&&((a27==1)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==3))&&(a12==8))))&&(a3==6))&&!(a15==1))&&!(a0==1))&&(a5==1))&&(a20==1))&&(a6==1))){ + a3 = 5; + a18 = 1; + a6 = 0; + a22 = 0; + a4 = 0; + a12 = 10; + a0 = 1; + return 21; + } else if((((a20==1)&&(((!(a5==1)&&((a27==1)&&(((a12==11)&&((input==5)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))))&&!(a4==1))))&&!(a15==1))&&(a6==1)))&&(a0==1))){ + a3 = 6; + a22 = 0; + a4 = 1; + a6 = 0; + a18 = 0; + return -1; + } else if((((a12==10)&&((((a15==1)&&((((a22==1)&&(!(a6==1)&&((a3==8)&&((input==5)&&((a18==1)||!(a18==1))))))&&(a20==1))&&!(a5==1)))&&(a4==1))&&(a27==1)))&&!(a0==1))){ + a3 = 4; + a18 = 1; + a12 = 8; + a5 = 1; + a6 = 1; + a0 = 1; + return -1; + } else if((!(a0==1)&&(((a3==5)&&((a20==1)&&(((a15==1)&&(!(a4==1)&&((!(a5==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2)))&&(a12==11))))&&(a27==1))))&&!(a6==1)))){ + a0 = 1; + a3 = 6; + a5 = 1; + a15 = 0; + a18 = 1; + a22 = 1; + a12 = 9; + a27 = 0; + return 21; + } else if(((a4==1)&&(((((((a15==1)&&(!(a6==1)&&(((((a18==1)||!(a18==1))&&(input==6))&&(a3==6))&&(a12==10))))&&(a27==1))&&!(a5==1))&&!(a0==1))&&(a20==1))&&!(a22==1)))){ + a5 = 1; + a4 = 0; + a18 = 1; + a0 = 1; + a12 = 8; + return 21; + } else if(((!(a22==1)&&((a3==5)&&(!(a18==1)&&(((a0==1)&&((a5==1)&&(!(a27==1)&&((a15==1)&&((a20==1)&&((a6==1)&&(input==3)))))))&&(a12==8)))))&&!(a4==1))){ + a22 = 1; + a3 = 4; + a4 = 1; + a18 = 1; + a27 = 1; + return -1; + } else if((((!(a27==1)&&((((a12==9)&&((a5==1)&&(((a3==7)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==2)))&&!(a0==1))))&&!(a4==1))&&!(a6==1)))&&(a20==1))&&!(a15==1))){ + a4 = 1; + a18 = 1; + a0 = 1; + a27 = 1; + a22 = 1; + a12 = 8; + a6 = 1; + a3 = 4; + a15 = 1; + return 21; + } else if((((((((!(a15==1)&&(!(a4==1)&&(!(a22==1)&&((a20==1)&&(!(a6==1)&&(input==1))))))&&(a3==4))&&(a12==8))&&(a27==1))&&(a5==1))&&!(a0==1))&&!(a18==1))){ + a18 = 1; + a0 = 1; + a12 = 11; + return 24; + } else if(((((a0==1)&&(!(a5==1)&&(((((((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1)))||(!(a6==1)&&((a3==4)&&((a22==1)&&!(a18==1)))))&&(input==1))&&!(a15==1))&&(a20==1))&&(a27==1))))&&(a12==11))&&!(a4==1))){ + a5 = 1; + a6 = 1; + a15 = 1; + a22 = 1; + a12 = 8; + a4 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a6==1)&&((!(a27==1)&&((a5==1)&&(((((a0==1)&&((a3==7)&&((input==2)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&!(a15==1))&&(a20==1))&&!(a4==1))))&&(a12==10)))){ + a3 = 4; + a15 = 1; + a22 = 1; + a12 = 8; + a4 = 1; + a18 = 1; + a27 = 1; + return -1; + } else if((!(a27==1)&&((!(a5==1)&&((a0==1)&&((a20==1)&&(!(a15==1)&&(((a6==1)&&((input==4)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8)))||((a3==8)&&((a22==1)&&!(a18==1))))))&&(a12==11))))))&&!(a4==1)))){ + a27 = 1; + a4 = 1; + a5 = 1; + a15 = 1; + a22 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((!(a6==1)&&((a20==1)&&((a15==1)&&((((a27==1)&&(!(a22==1)&&((a5==1)&&((a4==1)&&(((input==5)&&(a3==6))&&!(a0==1))))))&&(a12==9))&&!(a18==1)))))){ + a22 = 1; + a0 = 1; + a27 = 0; + a12 = 10; + a3 = 5; + a6 = 1; + a15 = 0; + return -1; + } else if((((((((a18==1)&&((a3==8)&&(((((input==6)&&(a22==1))&&!(a4==1))&&!(a27==1))&&(a6==1))))&&(a20==1))&&(a5==1))&&(a0==1))&&(a12==8))&&(a15==1))){ + a4 = 1; + a5 = 0; + a12 = 10; + a27 = 1; + a6 = 0; + a22 = 0; + a3 = 5; + return -1; + } else if(((((((((a27==1)&&(!(a5==1)&&((a15==1)&&((input==3)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))))))&&(a6==1))&&(a20==1))&&(a3==8))&&(a12==10))&&!(a0==1))&&(a4==1))){ + a0 = 1; + a18 = 1; + a12 = 8; + a5 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if((((((a20==1)&&(!(a27==1)&&((((((((a4==1)&&(!(a22==1)&&(a18==1)))&&(a3==8))&&!(a6==1))||(!(a6==1)&&((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1))))))||((a6==1)&&((a3==4)&&(!(a4==1)&&((a22==1)&&(a18==1))))))&&(input==3))&&(a0==1))))&&!(a5==1))&&(a12==11))&&(a15==1))){ + a18 = 1; + a22 = 0; + a27 = 1; + a6 = 1; + a4 = 1; + a3 = 6; + return -1; + } else if(((a12==8)&&((a0==1)&&(((!(a6==1)&&((((((((a18==1)||!(a18==1))&&(input==4))&&(a20==1))&&(a3==7))&&!(a27==1))&&(a5==1))&&(a22==1)))&&(a4==1))&&(a15==1))))){ + a3 = 6; + a15 = 0; + a12 = 9; + a18 = 0; + return 24; + } else if((((!(a5==1)&&(!(a15==1)&&((a4==1)&&((((input==6)&&(((((a22==1)&&!(a18==1))&&(a3==4))&&!(a6==1))||(((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4))))))&&!(a27==1))&&(a20==1)))))&&!(a0==1))&&(a12==8))){ + if((a0==1)){ + a4 = 0; + a6 = 1; + a22 = 0; + a5 = 1; + a12 = 9; + a18 = 1; + a3 = 4; + }else{ + a0 = 1; + a18 = 1; + a15 = 1; + a27 = 1; + a5 = 1; + a3 = 6; + a6 = 1; + a22 = 1; + } + return 24; + } else if((((a3==4)&&(((!(a15==1)&&((a0==1)&&((a22==1)&&(((a5==1)&&((a20==1)&&(!(a4==1)&&(input==1))))&&!(a6==1)))))&&(a18==1))&&(a12==12)))&&(a27==1))){ + a4 = 1; + a3 = 8; + a22 = 0; + a15 = 1; + a6 = 1; + return -1; + } else if(((a27==1)&&((a4==1)&&((!(a15==1)&&(((a12==10)&&(!(a0==1)&&((a5==1)&&((input==2)&&(((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a22==1)&&(a18==1))))))))&&(a20==1)))&&(a6==1))))){ + a18 = 1; + a4 = 0; + a22 = 0; + a3 = 6; + return 21; + } else if((((!(a5==1)&&(!(a0==1)&&(((a3==5)&&(((!(a4==1)&&((a27==1)&&((a15==1)&&(input==1))))&&!(a18==1))&&(a20==1)))&&!(a6==1))))&&!(a22==1))&&(a12==10))){ + a3 = 8; + a0 = 1; + a12 = 8; + a18 = 1; + return 21; + } else if((((a6==1)&&((((a27==1)&&((a5==1)&&(((((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))||((a3==6)&&(!(a18==1)&&(a22==1))))&&(input==3))&&!(a4==1))&&(a12==8))))&&(a20==1))&&(a0==1)))&&!(a15==1))){ + a18 = 1; + a3 = 4; + a22 = 1; + a4 = 1; + a15 = 1; + return -1; + } else if((((a6==1)&&(!(a5==1)&&((((((a12==12)&&((a27==1)&&((a20==1)&&(((a18==1)||!(a18==1))&&(input==1)))))&&(a22==1))&&!(a4==1))&&(a15==1))&&(a0==1))))&&(a3==8))){ + a4 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if(((a6==1)&&(!(a4==1)&&((a27==1)&&((!(a18==1)&&((a15==1)&&((!(a22==1)&&((a20==1)&&(((a12==12)&&(input==1))&&!(a0==1))))&&(a5==1))))&&(a3==6)))))){ + a3 = 4; + a18 = 1; + a22 = 1; + a12 = 8; + a0 = 1; + a4 = 1; + return -1; + } else if((((a0==1)&&((!(a27==1)&&((a15==1)&&((a20==1)&&(!(a4==1)&&((((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4))))&&(input==1))))))&&!(a5==1)))&&(a12==11))){ + a22 = 0; + a18 = 0; + a6 = 0; + a3 = 6; + a12 = 8; + a5 = 1; + return -1; + } else if(((a15==1)&&(((a3==6)&&(((!(a6==1)&&((((!(a27==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&!(a0==1))&&!(a5==1))&&!(a4==1)))&&(a20==1))&&(a12==10)))&&(a22==1)))){ + a15 = 0; + a27 = 1; + a18 = 1; + a3 = 8; + a4 = 1; + return 26; + } else if(((((a5==1)&&(!(a18==1)&&((((a20==1)&&((a3==8)&&(((a12==8)&&(!(a0==1)&&(input==1)))&&(a22==1))))&&!(a4==1))&&(a15==1))))&&(a6==1))&&(a27==1))){ + a5 = 0; + a4 = 1; + a12 = 10; + a3 = 7; + a0 = 1; + return -1; + } else if(((a20==1)&&((((a6==1)&&(!(a15==1)&&((((a12==9)&&((input==4)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))))&&(a0==1))&&!(a4==1))))&&!(a27==1))&&!(a5==1)))){ + a15 = 1; + a18 = 0; + a22 = 1; + a12 = 10; + a6 = 0; + a3 = 6; + return 26; + } else if(((a20==1)&&(((a0==1)&&(((((a12==10)&&(!(a27==1)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==3))))&&!(a5==1))&&!(a4==1))&&(a6==1)))&&!(a15==1)))){ + a22 = 0; + a18 = 0; + a5 = 1; + a4 = 1; + a12 = 9; + a3 = 4; + a6 = 0; + return 26; + } else if((!(a5==1)&&((a27==1)&&(((a0==1)&&(((((((((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==7)))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==2))&&(a12==9))&&!(a6==1))&&(a15==1))&&(a20==1)))&&(a4==1))))){ + a12 = 8; + a18 = 1; + a22 = 1; + a5 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if((((a5==1)&&(((a22==1)&&(((a3==4)&&((((a12==12)&&((!(a4==1)&&(input==4))&&!(a18==1)))&&!(a15==1))&&(a20==1)))&&(a0==1)))&&(a27==1)))&&!(a6==1))){ + a12 = 8; + a6 = 1; + a4 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if((!(a15==1)&&(!(a5==1)&&(((a3==6)&&(((!(a6==1)&&((a20==1)&&((a12==8)&&((input==6)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))))&&!(a27==1))&&!(a0==1)))&&(a4==1))))){ + if((a3==5)){ + a6 = 1; + a18 = 1; + a0 = 1; + a4 = 0; + a5 = 1; + a22 = 0; + a12 = 10; + a27 = 1; + }else{ + a18 = 0; + a5 = 1; + a27 = 1; + a6 = 1; + a0 = 1; + a22 = 0; + a3 = 7; + a4 = 0; + a15 = 1; + } + return -1; + } else if((!(a5==1)&&((((a15==1)&&((a12==11)&&(((a3==7)&&(!(a22==1)&&((((input==1)&&((a18==1)||!(a18==1)))&&!(a6==1))&&(a0==1))))&&(a20==1))))&&!(a4==1))&&(a27==1)))){ + a4 = 1; + a27 = 0; + a18 = 1; + return 24; + } else if(((!(a15==1)&&((((a27==1)&&((a6==1)&&((a20==1)&&(!(a5==1)&&((a12==10)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6)))))))&&(a3==8))&&!(a0==1)))&&(a4==1))){ + a0 = 1; + a22 = 0; + a18 = 1; + a4 = 0; + a5 = 1; + a12 = 11; + return 26; + } else if((((((a20==1)&&((a12==12)&&((!(a27==1)&&((a5==1)&&(((a6==1)&&((input==6)&&((a18==1)||!(a18==1))))&&!(a4==1))))&&(a3==8))))&&(a0==1))&&!(a15==1))&&!(a22==1))){ + a12 = 10; + a4 = 1; + a0 = 0; + a18 = 0; + a27 = 1; + return 26; + } else if((!(a18==1)&&(((!(a6==1)&&(((a3==6)&&((((((input==6)&&(a27==1))&&(a22==1))&&!(a5==1))&&(a15==1))&&(a0==1)))&&(a4==1)))&&(a12==10))&&(a20==1)))){ + a6 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + a5 = 1; + return -1; + } else if((((((((a27==1)&&((a5==1)&&((((a12==8)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a4==1))&&(a3==7))))&&!(a15==1))&&(a22==1))&&!(a0==1))&&(a20==1))&&(a6==1))){ + a15 = 1; + a3 = 4; + a18 = 1; + a0 = 1; + return -1; + } else if((!(a4==1)&&((a27==1)&&(!(a0==1)&&((a20==1)&&((a12==10)&&((a6==1)&&(((a5==1)&&((((a3==6)&&(input==6))&&!(a15==1))&&!(a18==1)))&&!(a22==1))))))))){ + a12 = 11; + a18 = 1; + a15 = 1; + a4 = 1; + a0 = 1; + a3 = 5; + return 26; + } else if(((((!(a15==1)&&((a4==1)&&(!(a18==1)&&((a12==10)&&((a22==1)&&(!(a6==1)&&(((a20==1)&&(input==4))&&(a3==5))))))))&&(a5==1))&&!(a27==1))&&(a0==1))){ + a6 = 1; + a27 = 1; + a5 = 0; + a12 = 11; + a4 = 0; + a3 = 4; + a18 = 1; + return 26; + } else if((!(a4==1)&&((((a3==5)&&((((((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==3))&&(a12==11))&&(a27==1))&&!(a15==1))&&!(a0==1))&&(a20==1)))&&(a5==1))&&(a6==1)))){ + a22 = 0; + a18 = 1; + a6 = 0; + a12 = 10; + a0 = 1; + return 21; + } else if(((a4==1)&&(((((((a12==10)&&(((a18==1)&&((a20==1)&&((a27==1)&&(input==2))))&&(a3==7)))&&(a0==1))&&(a6==1))&&(a22==1))&&!(a5==1))&&(a15==1)))){ + a0 = 0; + a3 = 4; + a15 = 0; + a4 = 0; + a22 = 0; + a12 = 8; + a18 = 0; + a5 = 1; + return 21; + } else if((!(a0==1)&&((a12==9)&&((((((((a3==7)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a15==1)))&&!(a27==1))&&(a20==1))&&!(a5==1))&&(a6==1))&&!(a4==1))&&(a22==1))))){ + a3 = 6; + a18 = 0; + a0 = 1; + a27 = 1; + a22 = 0; + a6 = 0; + a4 = 1; + a5 = 1; + a12 = 8; + return -1; + } else if((((!(a0==1)&&((a12==11)&&((a22==1)&&(((((a18==1)&&(((input==1)&&(a6==1))&&!(a4==1)))&&(a5==1))&&(a27==1))&&(a20==1)))))&&!(a15==1))&&(a3==4))){ + a0 = 1; + a12 = 8; + a3 = 7; + a27 = 0; + return -1; + } else if((!(a0==1)&&((!(a27==1)&&(((((!(a5==1)&&((((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==3)))&&!(a4==1))&&(a20==1))&&(a6==1))&&(a12==8)))&&(a15==1)))){ + a3 = 4; + a22 = 1; + a18 = 0; + a12 = 10; + a4 = 1; + a6 = 0; + return 21; + } else if((((a20==1)&&(((a3==8)&&((((a27==1)&&(((a12==9)&&((input==1)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))))&&(a15==1)))&&!(a4==1))&&(a6==1)))&&(a5==1)))&&(a0==1))){ + a18 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + a4 = 1; + return -1; + } else if(((((a27==1)&&((((a6==1)&&(!(a4==1)&&(((((input==5)&&!(a15==1))&&(a12==11))&&(a20==1))&&(a5==1))))&&(a22==1))&&(a0==1)))&&!(a18==1))&&(a3==8))){ + a3 = 4; + a18 = 1; + a4 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if((!(a27==1)&&(((((a20==1)&&((a5==1)&&((a3==8)&&((!(a15==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1)))&&!(a0==1)))))&&(a4==1))&&(a12==11))&&(a6==1)))){ + if((a20==1)){ + a12 = 8; + a27 = 1; + a0 = 1; + a5 = 0; + a18 = 0; + a22 = 1; + a3 = 5; + }else{ + a22 = 1; + a6 = 0; + a18 = 0; + a12 = 8; + a27 = 1; + a3 = 7; + a15 = 1; + a0 = 1; + } + return 26; + } else if((!(a6==1)&&(((a3==6)&&(((a20==1)&&((a0==1)&&((a5==1)&&(!(a15==1)&&(((a27==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&!(a4==1))))))&&(a12==8)))&&!(a22==1)))){ + a22 = 1; + a3 = 4; + a4 = 1; + a5 = 0; + a18 = 1; + a15 = 1; + a12 = 9; + a6 = 1; + return 26; + } else if((!(a6==1)&&((a20==1)&&(((((a12==12)&&(((((a4==1)&&(!(a18==1)&&(input==2)))&&(a5==1))&&(a3==6))&&!(a15==1)))&&(a22==1))&&!(a27==1))&&(a0==1))))){ + a12 = 8; + a15 = 1; + a6 = 1; + a18 = 1; + a3 = 4; + a27 = 1; + return -1; + } else if(((!(a6==1)&&(((a12==11)&&((!(a15==1)&&((a27==1)&&(!(a0==1)&&(!(a18==1)&&(((a5==1)&&(input==4))&&(a4==1))))))&&(a20==1)))&&!(a22==1)))&&(a3==4))){ + a22 = 1; + a0 = 1; + a3 = 7; + a6 = 1; + return 24; + } else if((((a12==11)&&(((((a20==1)&&((a18==1)&&(!(a27==1)&&(!(a4==1)&&((!(a6==1)&&(input==1))&&!(a22==1))))))&&!(a15==1))&&(a5==1))&&(a3==6)))&&(a0==1))){ + a27 = 1; + a6 = 1; + a15 = 1; + a4 = 1; + a12 = 12; + return 21; + } else if(((a27==1)&&(!(a4==1)&&(((a5==1)&&((a20==1)&&((a18==1)&&((a3==5)&&((((a22==1)&&((a15==1)&&(input==5)))&&(a12==9))&&(a0==1))))))&&(a6==1))))){ + a18 = 0; + a12 = 12; + a15 = 0; + a6 = 0; + return 26; + } else if((((a20==1)&&((((a4==1)&&(!(a5==1)&&((((a27==1)&&((a18==1)&&((input==2)&&(a12==12))))&&!(a0==1))&&!(a22==1))))&&!(a15==1))&&(a6==1)))&&(a3==5))){ + if((a4==1)){ + a4 = 0; + a0 = 1; + a3 = 6; + a15 = 1; + a12 = 9; + }else{ + a0 = 1; + a15 = 1; + a5 = 1; + a12 = 8; + a6 = 0; + } + return 21; + } else if(((a3==6)&&((a12==8)&&((a0==1)&&(((!(a4==1)&&((a20==1)&&((!(a5==1)&&((input==4)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&!(a15==1))))&&!(a6==1))&&(a27==1)))))){ + a22 = 0; + a15 = 1; + a3 = 4; + a0 = 0; + a18 = 0; + a4 = 1; + a12 = 9; + a6 = 1; + return 21; + } else if(((a12==11)&&((((!(a15==1)&&((a20==1)&&((((a4==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==4)))&&(a5==1))&&!(a0==1))))&&(a3==4))&&!(a6==1))&&!(a27==1)))){ + if((a15==1)){ + a6 = 1; + a0 = 1; + a18 = 1; + a4 = 0; + a3 = 6; + a12 = 8; + a27 = 1; + a15 = 1; + a22 = 1; + }else{ + a22 = 1; + a4 = 0; + a3 = 6; + a18 = 1; + a12 = 10; + a27 = 1; + a15 = 1; + a5 = 0; + a0 = 1; + } + return -1; + } else if(((a20==1)&&((!(a4==1)&&(!(a0==1)&&((!(a5==1)&&((!(a15==1)&&((input==5)&&((((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==7)))))&&(a27==1)))&&(a12==10))))&&(a6==1)))){ + a15 = 1; + a27 = 0; + a5 = 1; + a18 = 0; + a22 = 1; + a4 = 1; + a3 = 8; + a0 = 1; + return 21; + } else if((((a20==1)&&((((a5==1)&&(((a12==11)&&((((a15==1)&&((input==3)&&((a18==1)||!(a18==1))))&&!(a4==1))&&!(a6==1)))&&!(a27==1)))&&(a0==1))&&(a22==1)))&&(a3==5))){ + if((a6==1)){ + a18 = 0; + a6 = 1; + a3 = 6; + a27 = 1; + a0 = 0; + a12 = 9; + a22 = 0; + }else{ + a3 = 6; + a18 = 0; + a15 = 0; + a22 = 0; + a27 = 1; + a5 = 0; + a4 = 1; + } + return -1; + } else if((((!(a0==1)&&((a20==1)&&((a4==1)&&((!(a5==1)&&((((input==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&(a3==7))&&!(a15==1)))&&!(a27==1)))))&&(a12==11))&&!(a6==1))){ + if((a0==1)){ + a15 = 1; + a4 = 0; + a22 = 1; + a6 = 1; + a12 = 10; + a18 = 0; + a5 = 1; + }else{ + a22 = 0; + a0 = 1; + a18 = 0; + a12 = 12; + a4 = 0; + a15 = 1; + a5 = 1; + } + return -1; + } else if(((a12==10)&&(!(a5==1)&&((!(a0==1)&&((((((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==6))&&!(a4==1))&&(a15==1))&&(a20==1))&&!(a6==1)))&&!(a27==1))))){ + a18 = 0; + a0 = 1; + a6 = 1; + a22 = 0; + a5 = 1; + a27 = 1; + a12 = 8; + a3 = 5; + return -1; + } else if(((a15==1)&&((((a27==1)&&(!(a4==1)&&((a3==6)&&(!(a0==1)&&((a20==1)&&((a12==12)&&((input==3)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))))))&&!(a6==1))&&(a5==1)))){ + a18 = 1; + a12 = 11; + a15 = 0; + a27 = 0; + a22 = 0; + a0 = 1; + a3 = 7; + return 21; + } else if(((((a15==1)&&((((a6==1)&&(((a12==12)&&((input==2)&&(((a3==8)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a22==1)&&!(a18==1)))))))&&(a20==1)))&&(a0==1))&&(a4==1)))&&!(a27==1))&&(a5==1))){ + if((a18==1)){ + a12 = 10; + a27 = 1; + a3 = 5; + a22 = 0; + a18 = 0; + a0 = 0; + a5 = 0; + a15 = 0; + }else{ + a22 = 0; + a5 = 0; + a18 = 1; + a27 = 1; + a6 = 0; + a15 = 0; + a12 = 10; + a3 = 7; + } + return -1; + } else if(((a4==1)&&(((a3==6)&&((((a0==1)&&(((a5==1)&&(((((a18==1)||!(a18==1))&&(input==3))&&!(a15==1))&&(a22==1)))&&(a20==1)))&&(a6==1))&&(a27==1)))&&(a12==9)))){ + a22 = 0; + a4 = 0; + a0 = 0; + a18 = 1; + a3 = 5; + a6 = 0; + return 26; + } else if(((a22==1)&&((!(a0==1)&&(((a18==1)&&((a3==5)&&((a5==1)&&((a27==1)&&((a20==1)&&(((input==2)&&(a12==9))&&!(a6==1)))))))&&(a15==1)))&&!(a4==1)))){ + a0 = 1; + a4 = 1; + a6 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if((((a15==1)&&((a3==7)&&((a27==1)&&((((a12==12)&&(((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==5))&&(a20==1))&&(a6==1)))&&!(a0==1))&&(a4==1)))))&&!(a5==1))){ + if((a6==1)){ + a6 = 0; + a12 = 8; + a0 = 1; + a22 = 0; + a18 = 1; + a5 = 1; + }else{ + a6 = 0; + a12 = 10; + a5 = 1; + a22 = 1; + a18 = 0; + a27 = 0; + a3 = 4; + a15 = 0; + a0 = 1; + } + return 21; + } else if(((a0==1)&&((a20==1)&&((input==1)&&(((((!(a4==1)&&(((((!(a22==1)&&(a27==1))&&!(a18==1))&&!(a5==1))&&!(a15==1))&&(a12==12)))&&(a3==8))&&!(a6==1))||((a6==1)&&((a3==4)&&(((a12==8)&&((a15==1)&&(((!(a27==1)&&(a22==1))&&(a18==1))&&(a5==1))))&&(a4==1)))))||((a6==1)&&(((a4==1)&&((((a5==1)&&(!(a18==1)&&((a22==1)&&!(a27==1))))&&(a15==1))&&(a12==8)))&&(a3==4)))))))){ + a18 = 1; + a22 = 0; + a4 = 1; + a27 = 1; + a6 = 1; + a15 = 1; + a5 = 1; + a3 = 5; + a12 = 8; + return -1; + } else if(((a20==1)&&(!(a15==1)&&((a4==1)&&(!(a5==1)&&(!(a6==1)&&((a27==1)&&(((a0==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==3))&&(a12==11)))&&(a3==7))))))))){ + a18 = 1; + a5 = 1; + a12 = 8; + a6 = 1; + a22 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if(((!(a5==1)&&((a15==1)&&(((a22==1)&&((a0==1)&&((((a18==1)&&((a6==1)&&((input==4)&&(a27==1))))&&(a20==1))&&(a4==1))))&&(a3==7))))&&(a12==10))){ + a5 = 1; + a4 = 0; + a15 = 0; + a18 = 0; + a6 = 0; + a3 = 8; + return -1; + } else if((((!(a6==1)&&(((((a22==1)&&((a5==1)&&(((a20==1)&&((a0==1)&&(input==4)))&&(a15==1))))&&!(a4==1))&&(a18==1))&&!(a27==1)))&&(a12==10))&&(a3==8))){ + a6 = 1; + a3 = 5; + return 21; + } else if(((a3==7)&&(!(a5==1)&&((a27==1)&&((((((a12==10)&&(((((a18==1)||!(a18==1))&&(input==1))&&(a6==1))&&(a22==1)))&&(a20==1))&&!(a4==1))&&(a0==1))&&!(a15==1)))))){ + a5 = 1; + a4 = 1; + a18 = 1; + a12 = 8; + a15 = 1; + a3 = 4; + return -1; + } else if((((((a6==1)&&((!(a15==1)&&((a27==1)&&((a22==1)&&(!(a5==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a4==1))))))&&(a20==1)))&&(a12==10))&&(a0==1))&&(a3==5))){ + a5 = 1; + a15 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + return -1; + } else if((((((((a20==1)&&(!(a15==1)&&((((input==4)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a27==1))&&!(a4==1))))&&!(a0==1))&&(a12==11))&&(a6==1))&&(a3==8))&&!(a5==1))){ + a3 = 4; + a0 = 1; + a5 = 1; + a12 = 8; + a15 = 1; + a22 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if(((!(a18==1)&&((!(a5==1)&&(((a12==12)&&((((a15==1)&&((a22==1)&&(!(a4==1)&&(input==4))))&&!(a0==1))&&(a27==1)))&&(a20==1)))&&(a3==7)))&&(a6==1))){ + a4 = 1; + a3 = 8; + a15 = 0; + a27 = 0; + a12 = 11; + a5 = 1; + a22 = 0; + return -1; + } else if(((a4==1)&&((a27==1)&&(((((a12==11)&&(!(a15==1)&&(!(a0==1)&&((a20==1)&&((input==1)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))))))&&!(a5==1))&&!(a6==1))&&(a3==8))))){ + a18 = 0; + a22 = 1; + a4 = 0; + a0 = 1; + a5 = 1; + a12 = 10; + return 21; + } else if((!(a6==1)&&((a20==1)&&(((a27==1)&&((a5==1)&&(!(a15==1)&&(((!(a0==1)&&((a12==8)&&((input==1)&&(a3==8))))&&(a22==1))&&!(a18==1)))))&&!(a4==1))))){ + a0 = 1; + a3 = 6; + a22 = 0; + a4 = 1; + a6 = 1; + a12 = 10; + return 21; + } else if(((!(a4==1)&&((a12==11)&&((a0==1)&&((a15==1)&&(((a20==1)&&(!(a5==1)&&(((input==1)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a3==7))))&&!(a27==1))))))&&(a6==1))){ + a18 = 1; + a5 = 1; + a15 = 0; + a22 = 1; + a27 = 1; + a12 = 12; + return 21; + } else if(((!(a22==1)&&((a3==6)&&((((a15==1)&&((!(a4==1)&&(!(a0==1)&&((a6==1)&&((input==1)&&((a18==1)||!(a18==1))))))&&(a12==11)))&&(a27==1))&&(a20==1))))&&(a5==1))){ + a4 = 1; + a6 = 0; + a22 = 1; + a12 = 12; + a3 = 5; + a18 = 1; + a0 = 1; + return 26; + } else if(((!(a15==1)&&((a6==1)&&((a20==1)&&((((((((input==4)&&(a0==1))&&!(a27==1))&&(a18==1))&&(a12==10))&&(a22==1))&&!(a4==1))&&!(a5==1)))))&&(a3==5))){ + a27 = 1; + a15 = 1; + a5 = 1; + a4 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if((((a12==9)&&(((a20==1)&&(((((((input==5)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&!(a4==1))&&(a3==4))&&(a0==1))&&(a27==1))&&!(a5==1)))&&!(a6==1)))&&(a15==1))){ + a27 = 0; + a18 = 0; + a22 = 1; + a3 = 7; + a12 = 8; + return 26; + } else if(((((a4==1)&&((((!(a6==1)&&(((a12==10)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==3)))&&(a20==1)))&&!(a15==1))&&(a27==1))&&(a5==1)))&&(a3==7))&&!(a0==1))){ + a12 = 8; + a15 = 1; + a0 = 1; + a18 = 1; + a6 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((a6==1)&&(((a22==1)&&((!(a27==1)&&(((a3==7)&&((a0==1)&&((((input==6)&&((a18==1)||!(a18==1)))&&(a12==9))&&(a5==1))))&&(a20==1)))&&(a15==1)))&&(a4==1)))){ + a22 = 0; + a12 = 10; + a4 = 0; + a18 = 1; + a3 = 6; + a27 = 1; + a5 = 0; + return -1; + } else if((((a0==1)&&((a4==1)&&((!(a15==1)&&((a5==1)&&(!(a27==1)&&((a20==1)&&((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==3))))))&&(a12==10))))&&!(a6==1))){ + a6 = 1; + a12 = 9; + a3 = 7; + a18 = 1; + a5 = 0; + a15 = 1; + a22 = 0; + return -1; + } else if(((((a6==1)&&((!(a4==1)&&((a12==11)&&((a5==1)&&(!(a15==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&(a27==1))&&!(a0==1))))))&&(a20==1)))&&!(a22==1))&&(a3==7))){ + a15 = 1; + a18 = 1; + a22 = 1; + a6 = 0; + a3 = 6; + a0 = 1; + a12 = 10; + a5 = 0; + return 21; + } else if(((a27==1)&&((!(a5==1)&&(((a20==1)&&((a15==1)&&(!(a6==1)&&((((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==2))&&!(a4==1))&&(a12==12)))))&&(a3==4)))&&!(a0==1)))){ + a6 = 1; + a5 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + a3 = 8; + a0 = 1; + return 26; + } else if((!(a5==1)&&(((a0==1)&&((a20==1)&&((((!(a6==1)&&((!(a4==1)&&((!(a22==1)&&!(a18==1))&&(a15==1)))&&(a3==8)))||((((((a18==1)&&(a22==1))&&!(a15==1))&&(a4==1))&&(a3==4))&&(a6==1)))&&(input==2))&&(a27==1))))&&(a12==10)))){ + a3 = 4; + a15 = 1; + a5 = 1; + a12 = 11; + a4 = 0; + a22 = 1; + a18 = 1; + a6 = 0; + return 21; + } else if(((a15==1)&&(((((a20==1)&&((a6==1)&&(((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4))&&!(a4==1))&&(a12==10))&&(a0==1))))&&!(a5==1))&&(a27==1))&&(a3==8)))){ + a3 = 5; + a4 = 1; + a18 = 1; + a22 = 0; + a5 = 1; + return -1; + } else if(((!(a4==1)&&((!(a5==1)&&(((a15==1)&&((((((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1)))))||(((a3==4)&&(!(a18==1)&&(a22==1)))&&!(a6==1)))&&(input==1))&&!(a0==1)))&&(a20==1)))&&!(a27==1)))&&(a12==11))){ + a22 = 1; + a4 = 1; + a3 = 4; + a18 = 0; + a6 = 1; + return 21; + } else if(((((a4==1)&&(((!(a6==1)&&(((a0==1)&&(((((a18==1)&&(a22==1))&&(a3==8))||(((!(a22==1)&&(a18==1))&&(a3==7))||((a3==7)&&(!(a22==1)&&!(a18==1)))))&&(input==6)))&&(a20==1)))&&(a12==12))&&!(a5==1)))&&(a27==1))&&!(a15==1))){ + a15 = 1; + a4 = 0; + a22 = 1; + a12 = 11; + a18 = 1; + a6 = 1; + a3 = 8; + return -1; + } else if(((a27==1)&&((((a5==1)&&(((!(a18==1)&&(!(a6==1)&&((!(a4==1)&&((input==1)&&(a3==8)))&&!(a0==1))))&&(a12==8))&&(a15==1)))&&(a20==1))&&!(a22==1)))){ + a0 = 1; + a6 = 1; + a3 = 5; + a22 = 1; + a15 = 0; + a12 = 11; + a5 = 0; + return 21; + } else if(((a12==10)&&((((a15==1)&&(((!(a22==1)&&((a20==1)&&((((a6==1)&&(input==3))&&!(a18==1))&&(a3==5))))&&!(a5==1))&&!(a4==1)))&&!(a27==1))&&(a0==1)))){ + a12 = 12; + a18 = 1; + a4 = 1; + a5 = 1; + a27 = 1; + a6 = 0; + a22 = 1; + return 21; + } else if((!(a15==1)&&(((a12==12)&&(!(a6==1)&&(((a5==1)&&((((input==1)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1)))))&&!(a0==1))&&(a27==1)))&&(a20==1))))&&(a4==1)))){ + if((a15==1)){ + a12 = 8; + a22 = 0; + a4 = 0; + a6 = 1; + a15 = 1; + a18 = 0; + a3 = 5; + a0 = 1; + }else{ + a0 = 1; + a12 = 11; + a18 = 0; + a3 = 4; + a22 = 0; + a27 = 0; + a15 = 1; + } + return -1; + } else if((((((a27==1)&&(!(a0==1)&&((a20==1)&&((a3==5)&&((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==3))&&(a15==1))&&(a5==1))))))&&!(a6==1))&&!(a4==1))&&(a12==11))){ + a0 = 1; + a3 = 7; + a22 = 0; + a18 = 1; + a4 = 1; + return -1; + } else if(((a0==1)&&(((a5==1)&&(!(a4==1)&&((a27==1)&&((a12==11)&&((a15==1)&&(((input==3)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1)))))&&(a6==1)))))))&&(a20==1)))){ + a5 = 0; + a18 = 1; + a12 = 10; + a22 = 1; + a3 = 5; + return 26; + } else if((((a3==8)&&(((!(a0==1)&&((a15==1)&&((!(a4==1)&&(((a12==12)&&((input==1)&&(a27==1)))&&(a20==1)))&&!(a18==1))))&&(a6==1))&&(a5==1)))&&!(a22==1))){ + a12 = 11; + a0 = 1; + a3 = 5; + return 21; + } else if((!(a5==1)&&((((a27==1)&&((a15==1)&&(!(a4==1)&&((a3==5)&&((a0==1)&&(((a20==1)&&((input==3)&&!(a18==1)))&&(a6==1)))))))&&!(a22==1))&&(a12==10)))){ + a6 = 0; + a15 = 0; + a18 = 1; + a22 = 1; + a3 = 8; + return 26; + } else if(((a0==1)&&(((!(a5==1)&&(((a27==1)&&((((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==4))&&(a20==1))&&!(a6==1)))&&(a12==9)))&&!(a15==1))&&(a4==1)))){ + a4 = 0; + a18 = 1; + a12 = 10; + a3 = 8; + a22 = 1; + a5 = 1; + return 26; + } else if((!(a6==1)&&((a15==1)&&((a12==11)&&(((a5==1)&&(((a20==1)&&(!(a0==1)&&((input==4)&&((((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==5))))))&&!(a27==1)))&&(a4==1)))))){ + a15 = 0; + a5 = 0; + a0 = 1; + a22 = 1; + a18 = 0; + a12 = 10; + a3 = 5; + return 24; + } else if(((((a20==1)&&(!(a22==1)&&(((a12==10)&&((a3==4)&&((((a6==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a0==1))&&!(a15==1))))&&!(a27==1))))&&(a5==1))&&(a4==1))){ + a15 = 1; + a4 = 0; + a18 = 1; + a22 = 1; + return -1; + } else if(((((!(a5==1)&&((((a15==1)&&((a6==1)&&((a4==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a20==1)))))&&(a3==4))&&!(a27==1)))&&!(a0==1))&&!(a22==1))&&(a12==9))){ + a6 = 0; + a18 = 0; + a12 = 10; + a3 = 8; + return -1; + } else if((((((((a12==8)&&(!(a27==1)&&(((input==2)&&((((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5)))||((a3==5)&&((a22==1)&&!(a18==1)))))&&!(a6==1))))&&!(a15==1))&&(a5==1))&&(a20==1))&&!(a4==1))&&(a0==1))){ + a27 = 1; + a18 = 0; + a12 = 10; + a22 = 1; + a3 = 8; + return 21; + } else if((((((a20==1)&&((a4==1)&&(((a12==8)&&(((a6==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==1)))&&!(a27==1)))&&(a0==1))))&&!(a5==1))&&(a3==6))&&!(a15==1))){ + a12 = 11; + a27 = 1; + a18 = 1; + a22 = 1; + a6 = 0; + a0 = 0; + a4 = 0; + return -1; + } else if((((a22==1)&&(((((((a12==11)&&((((a0==1)&&(input==2))&&(a18==1))&&(a20==1)))&&!(a27==1))&&(a3==8))&&(a4==1))&&!(a5==1))&&(a6==1)))&&!(a15==1))){ + a3 = 5; + a22 = 0; + a4 = 0; + a5 = 1; + a27 = 1; + a12 = 10; + return 26; + } else if(((a6==1)&&((a4==1)&&((a0==1)&&(((a20==1)&&((((a15==1)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==3)))&&!(a5==1))&&(a27==1)))&&(a12==11)))))){ + a18 = 1; + a12 = 8; + a3 = 4; + a5 = 1; + a22 = 1; + return -1; + } else if(((a4==1)&&((!(a15==1)&&(((a12==9)&&(!(a0==1)&&((((((a3==8)&&((a22==1)&&(a18==1)))||(((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==7))))&&(input==3))&&(a27==1))&&!(a5==1))))&&(a20==1)))&&!(a6==1)))){ + a0 = 1; + a22 = 0; + a5 = 1; + a3 = 4; + a12 = 11; + a6 = 1; + a18 = 0; + a15 = 1; + return 21; + } else if((!(a6==1)&&((a15==1)&&(!(a4==1)&&((((a20==1)&&((((input==5)&&(((((a18==1)&&!(a22==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7)))||(((a18==1)&&(a22==1))&&(a3==8))))&&(a5==1))&&(a27==1)))&&!(a0==1))&&(a12==8)))))){ + if((a12==8)){ + a18 = 1; + a22 = 0; + a5 = 0; + a3 = 7; + }else{ + a4 = 1; + a0 = 1; + a6 = 1; + a22 = 1; + a12 = 11; + a18 = 0; + a3 = 5; + a15 = 0; + } + return 21; + } else if(((a6==1)&&((((!(a4==1)&&(((a12==11)&&(((input==3)&&((((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a18==1)&&!(a22==1))))||((a3==6)&&((a18==1)&&(a22==1)))))&&!(a5==1)))&&(a27==1)))&&(a20==1))&&!(a0==1))&&!(a15==1)))){ + a3 = 7; + a6 = 0; + a18 = 1; + a4 = 1; + a0 = 1; + a22 = 0; + return 21; + } else if(((a3==7)&&(!(a6==1)&&(((a20==1)&&((a12==10)&&((((!(a4==1)&&((input==6)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))))&&(a0==1))&&!(a5==1))&&!(a27==1))))&&(a15==1))))){ + a3 = 4; + a18 = 1; + a22 = 1; + a27 = 1; + a6 = 1; + a5 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if(((a27==1)&&(!(a4==1)&&((((a3==7)&&((a12==11)&&((a20==1)&&(((a6==1)&&((a0==1)&&(!(a22==1)&&(input==3))))&&!(a15==1)))))&&(a5==1))&&!(a18==1))))){ + a15 = 1; + a18 = 1; + a27 = 0; + a22 = 1; + return 21; + } else if((!(a22==1)&&(!(a0==1)&&((((a6==1)&&(((((a20==1)&&(((a3==6)&&(input==3))&&!(a15==1)))&&!(a27==1))&&(a5==1))&&!(a4==1)))&&(a12==10))&&!(a18==1))))){ + if((a12==8)){ + a6 = 0; + a12 = 9; + a15 = 1; + a0 = 1; + a18 = 1; + a22 = 1; + }else{ + a3 = 5; + a12 = 11; + a5 = 0; + a4 = 1; + } + return -1; + } else if((((a12==8)&&((a20==1)&&(((a3==6)&&(!(a5==1)&&((((a15==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==1)))&&(a6==1))&&!(a4==1))))&&!(a27==1))))&&!(a0==1))){ + a0 = 1; + a22 = 1; + a15 = 0; + a27 = 1; + a4 = 1; + a18 = 1; + a6 = 0; + return 24; + } else if(((((a12==12)&&((a6==1)&&(((a0==1)&&((a20==1)&&(((a15==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==1)))&&(a27==1))))&&!(a5==1))))&&(a3==6))&&!(a4==1))){ + a3 = 8; + a18 = 0; + a15 = 0; + a12 = 11; + a22 = 0; + a4 = 1; + return 21; + } else if(((a20==1)&&((a4==1)&&(!(a5==1)&&((!(a15==1)&&(((a3==5)&&(((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==4))&&(a12==11))&&!(a0==1)))&&(a6==1)))&&(a27==1)))))){ + a5 = 1; + a0 = 1; + a22 = 0; + a12 = 10; + a6 = 0; + a18 = 0; + a4 = 0; + a27 = 0; + return 21; + } else if((!(a22==1)&&(!(a27==1)&&((a3==8)&&(((a15==1)&&(!(a5==1)&&((a4==1)&&(((a20==1)&&((a6==1)&&(((a18==1)||!(a18==1))&&(input==5))))&&!(a0==1)))))&&(a12==10)))))){ + a5 = 1; + a27 = 1; + a6 = 0; + a15 = 0; + a0 = 1; + a18 = 1; + return -1; + } else if(((((((((((a3==7)&&(((input==2)&&(a18==1))&&!(a5==1)))&&(a6==1))&&(a22==1))&&!(a15==1))&&!(a4==1))&&!(a27==1))&&(a12==8))&&!(a0==1))&&(a20==1))){ + a0 = 1; + a15 = 1; + a18 = 0; + a5 = 1; + a27 = 1; + a4 = 1; + a12 = 11; + a3 = 8; + return -1; + } else if(((((a3==4)&&((a6==1)&&(!(a27==1)&&(!(a15==1)&&((((!(a4==1)&&((input==2)&&((a18==1)||!(a18==1))))&&(a20==1))&&(a12==10))&&(a0==1))))))&&!(a5==1))&&!(a22==1))){ + a12 = 8; + a3 = 5; + a18 = 1; + a22 = 1; + a4 = 1; + a5 = 1; + return 21; + } else if((((a4==1)&&(((!(a0==1)&&(!(a6==1)&&(((!(a18==1)&&(!(a27==1)&&((a20==1)&&(input==3))))&&(a22==1))&&(a15==1))))&&(a5==1))&&(a12==9)))&&(a3==6))){ + a27 = 1; + a5 = 0; + a15 = 0; + a12 = 11; + a3 = 8; + return -1; + } else if(((a20==1)&&((a5==1)&&(!(a15==1)&&((a27==1)&&((((!(a0==1)&&((input==6)&&((((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))||(((a18==1)&&(a22==1))&&(a3==7)))))&&(a6==1))&&(a4==1))&&(a12==10))))))){ + a22 = 0; + a12 = 12; + a3 = 6; + a15 = 1; + a6 = 0; + a4 = 0; + a18 = 0; + a0 = 1; + return 24; + } else if((!(a27==1)&&((a20==1)&&(!(a0==1)&&(((!(a5==1)&&(((a4==1)&&(((((a22==1)&&!(a18==1))&&(a3==6))||(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6))))&&(input==6)))&&(a12==10)))&&!(a6==1))&&(a15==1)))))){ + a22 = 1; + a27 = 1; + a0 = 1; + a18 = 1; + a12 = 8; + a3 = 5; + a5 = 1; + return 26; + } else if((!(a15==1)&&(((a0==1)&&((a4==1)&&(!(a27==1)&&((!(a6==1)&&(((input==4)&&(((a3==6)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5)))))&&(a20==1)))&&(a5==1)))))&&(a12==9)))){ + a15 = 1; + a18 = 1; + a3 = 4; + a6 = 1; + a22 = 1; + a12 = 8; + a27 = 1; + return -1; + } else if(((a20==1)&&((a12==12)&&((a27==1)&&(!(a0==1)&&((input==5)&&(((a6==1)&&(((a4==1)&&((a15==1)&&(!(a5==1)&&((a18==1)&&(a22==1)))))&&(a3==4)))||((!(a6==1)&&((a3==8)&&(!(a4==1)&&(((!(a22==1)&&(a18==1))&&(a5==1))&&!(a15==1)))))||(!(a6==1)&&((a3==8)&&((((a5==1)&&(!(a22==1)&&!(a18==1)))&&!(a15==1))&&!(a4==1)))))))))))){ + if((a27==1)){ + a3 = 8; + a22 = 0; + a6 = 0; + a5 = 1; + a18 = 0; + a4 = 1; + a0 = 1; + a12 = 8; + a15 = 1; + }else{ + a27 = 0; + a18 = 1; + a12 = 10; + a4 = 0; + a6 = 1; + a0 = 1; + a3 = 4; + a22 = 1; + a15 = 1; + a5 = 1; + } + return 24; + } else if((!(a0==1)&&((a27==1)&&((((a3==4)&&(!(a15==1)&&((a22==1)&&(((a20==1)&&((a4==1)&&(((a18==1)||!(a18==1))&&(input==6))))&&(a5==1)))))&&(a6==1))&&(a12==9))))){ + if((a15==1)){ + a4 = 0; + a12 = 12; + a18 = 1; + a15 = 1; + a3 = 8; + }else{ + a3 = 5; + a4 = 0; + a12 = 10; + a0 = 1; + a18 = 0; + a5 = 0; + } + return 26; + } else if((((a5==1)&&(((((a27==1)&&((a20==1)&&((input==3)&&(((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4)))))))&&(a12==8))&&!(a15==1))&&!(a4==1)))&&!(a0==1))){ + a4 = 1; + a0 = 1; + a15 = 1; + a22 = 1; + a3 = 4; + a6 = 1; + a18 = 1; + return -1; + } else if(((a27==1)&&(((((((((input==5)&&((((a18==1)&&(a22==1))&&(a3==5))||(((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1))))))&&(a6==1))&&(a20==1))&&(a15==1))&&!(a5==1))&&!(a4==1))&&(a12==11))&&(a0==1)))){ + a18 = 1; + a4 = 1; + a3 = 4; + a5 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if((((((!(a15==1)&&(((!(a27==1)&&(((a20==1)&&((input==3)&&(a12==10)))&&!(a6==1)))&&(a18==1))&&(a5==1)))&&(a0==1))&&(a3==8))&&(a4==1))&&(a22==1))){ + if((a6==1)){ + a12 = 9; + a27 = 1; + a0 = 0; + a22 = 0; + }else{ + a4 = 0; + a3 = 5; + a18 = 0; + a12 = 11; + a6 = 1; + a22 = 0; + } + return 26; + } else if(((a3==8)&&(!(a6==1)&&(!(a18==1)&&(((a0==1)&&(((a15==1)&&((((a20==1)&&(!(a4==1)&&(input==3)))&&(a12==12))&&!(a27==1)))&&!(a22==1)))&&(a5==1)))))){ + a4 = 1; + a12 = 8; + a5 = 0; + a15 = 0; + return -1; + } else if(((a4==1)&&(!(a6==1)&&((!(a27==1)&&((a12==8)&&((!(a15==1)&&((a5==1)&&((input==1)&&((((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1))))||((a3==5)&&((a22==1)&&!(a18==1)))))))&&(a20==1))))&&(a0==1))))){ + a3 = 7; + a12 = 11; + a6 = 1; + a27 = 1; + a18 = 0; + a22 = 1; + return 24; + } else if((((!(a27==1)&&(((((!(a15==1)&&((a12==8)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==4))))&&(a5==1))&&(a3==7))&&!(a6==1))&&!(a4==1)))&&(a20==1))&&!(a0==1))){ + a22 = 1; + a3 = 6; + a18 = 1; + a27 = 1; + a15 = 1; + a4 = 1; + a0 = 1; + return 26; + } else if(((!(a15==1)&&((!(a18==1)&&((a12==12)&&(((a3==6)&&((!(a22==1)&&(!(a0==1)&&((input==3)&&!(a5==1))))&&(a27==1)))&&!(a6==1))))&&!(a4==1)))&&(a20==1))){ + if((a20==1)){ + a0 = 1; + a5 = 1; + a6 = 1; + a18 = 1; + a15 = 1; + a12 = 8; + a4 = 1; + }else{ + a18 = 1; + a12 = 10; + a5 = 1; + a0 = 1; + a27 = 0; + a3 = 5; + } + return 21; + } else if((((((((a6==1)&&((!(a0==1)&&(((input==4)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&(a20==1)))&&!(a15==1)))&&(a12==12))&&(a3==4))&&!(a4==1))&&(a27==1))&&!(a5==1))){ + a6 = 0; + a12 = 11; + a22 = 1; + a3 = 5; + a18 = 0; + a5 = 1; + a27 = 0; + return -1; + } else if(((((!(a6==1)&&(((((a5==1)&&((((a27==1)&&(input==1))&&!(a22==1))&&(a15==1)))&&(a4==1))&&(a0==1))&&!(a18==1)))&&(a3==6))&&(a12==10))&&(a20==1))){ + a3 = 5; + a6 = 1; + return -1; + } else if((!(a6==1)&&(((((!(a27==1)&&(!(a4==1)&&(!(a5==1)&&(((input==3)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&(a3==5)))))&&!(a15==1))&&!(a0==1))&&(a12==8))&&(a20==1)))){ + a3 = 4; + a27 = 1; + a12 = 10; + a6 = 1; + a22 = 0; + a0 = 1; + a18 = 1; + return 24; + } else if(((a3==8)&&(((a20==1)&&(((a0==1)&&(!(a4==1)&&((a5==1)&&((a12==8)&&(((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==2))&&(a27==1))))))&&(a6==1)))&&!(a15==1)))){ + a22 = 1; + a5 = 0; + a12 = 11; + a18 = 0; + a4 = 1; + a6 = 0; + a0 = 0; + a3 = 4; + return 26; + } else if(((!(a6==1)&&(((a12==11)&&(((!(a0==1)&&((a27==1)&&((input==2)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7))))))&&(a4==1))&&(a20==1)))&&!(a15==1)))&&!(a5==1))){ + a15 = 1; + a0 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + a18 = 1; + a22 = 1; + a6 = 1; + return -1; + } else if(((!(a5==1)&&(((a27==1)&&(((((a0==1)&&((a6==1)&&(((input==1)&&(a18==1))&&(a12==12))))&&(a15==1))&&(a22==1))&&(a4==1)))&&(a20==1)))&&(a3==5))){ + if((a22==1)){ + a12 = 10; + a3 = 6; + a22 = 0; + a0 = 0; + a5 = 1; + }else{ + a12 = 10; + a4 = 0; + } + return 26; + } else if((((!(a22==1)&&((a6==1)&&((!(a18==1)&&(!(a4==1)&&(((a20==1)&&(((a15==1)&&(input==2))&&(a3==6)))&&!(a27==1))))&&(a0==1))))&&(a12==11))&&(a5==1))){ + a4 = 1; + a27 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + return -1; + } else if((((a20==1)&&((a5==1)&&(!(a4==1)&&((!(a6==1)&&((((input==1)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))||(((a22==1)&&!(a18==1))&&(a3==7))))&&!(a0==1))&&(a27==1)))&&!(a15==1)))))&&(a12==12))){ + if((a20==1)){ + a18 = 1; + a6 = 1; + a22 = 0; + a15 = 1; + a3 = 7; + a12 = 8; + a0 = 1; + }else{ + a6 = 1; + a22 = 0; + a3 = 4; + a5 = 0; + a18 = 0; + a15 = 1; + a0 = 1; + a12 = 10; + } + return -1; + } else if(((a0==1)&&(!(a6==1)&&((a20==1)&&((a3==7)&&((a12==11)&&(!(a5==1)&&(((a27==1)&&(!(a15==1)&&((input==2)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&!(a4==1))))))))){ + a22 = 0; + a27 = 0; + a18 = 1; + a3 = 8; + a6 = 1; + return 21; + } else if(((a0==1)&&((!(a4==1)&&((a12==12)&&((a20==1)&&(((!(a6==1)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==3)))&&(a15==1))&&!(a27==1)))))&&(a5==1)))){ + a6 = 1; + a27 = 1; + a12 = 10; + a18 = 0; + a22 = 0; + a3 = 7; + return 21; + } else if(((a0==1)&&(!(a15==1)&&(((a5==1)&&(!(a6==1)&&((a22==1)&&(((((!(a18==1)&&(input==5))&&(a20==1))&&!(a4==1))&&(a27==1))&&(a12==12)))))&&(a3==4))))){ + a6 = 1; + a27 = 0; + return 21; + } else if((((!(a0==1)&&(((a20==1)&&(((((a6==1)&&((a3==4)&&((!(a18==1)&&(a22==1))&&!(a4==1))))||((!(a6==1)&&(((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8)))||((a6==1)&&((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1))))))&&(input==3))&&(a12==8)))&&(a5==1)))&&!(a15==1))&&!(a27==1))){ + a18 = 1; + a4 = 1; + a27 = 1; + a12 = 11; + a3 = 8; + a22 = 1; + a6 = 1; + a15 = 1; + return 21; + } else if((((!(a4==1)&&(((a15==1)&&(((!(a5==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&(a0==1))&&(a3==5)))&&(a12==8))&&(a20==1)))&&(a27==1)))&&!(a22==1))&&(a6==1))){ + a22 = 1; + a4 = 1; + a5 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((a12==8)&&(((a4==1)&&((((!(a15==1)&&(((((input==6)&&!(a27==1))&&(a3==6))&&!(a5==1))&&!(a0==1)))&&(a22==1))&&!(a6==1))&&(a20==1)))&&(a18==1)))){ + if((a18==1)){ + a3 = 8; + a22 = 0; + a15 = 1; + a6 = 1; + a5 = 1; + a12 = 11; + a18 = 0; + a4 = 0; + }else{ + a5 = 1; + a6 = 1; + a3 = 4; + a27 = 1; + a0 = 1; + a15 = 1; + } + return 26; + } else if((((((a27==1)&&((a12==12)&&(!(a5==1)&&((!(a0==1)&&((((input==2)&&((a18==1)||!(a18==1)))&&!(a22==1))&&(a15==1)))&&(a4==1)))))&&(a6==1))&&(a20==1))&&(a3==6))){ + if((a22==1)){ + a18 = 0; + a0 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + a5 = 1; + }else{ + a0 = 1; + a3 = 8; + a22 = 1; + a18 = 1; + a12 = 8; + a5 = 1; + } + return -1; + } else if(((((!(a0==1)&&(((((a12==12)&&(!(a15==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==6))))&&(a20==1))&&(a27==1))&&(a3==6)))&&(a6==1))&&!(a5==1))&&(a4==1))){ + if((a5==1)){ + a3 = 5; + a12 = 10; + a18 = 0; + a15 = 1; + a27 = 0; + a22 = 0; + }else{ + a3 = 4; + a22 = 1; + a5 = 1; + a12 = 8; + a15 = 1; + a6 = 0; + a18 = 0; + a0 = 1; + } + return -1; + } else if((((((a5==1)&&((a27==1)&&(((!(a0==1)&&((a20==1)&&((input==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))))&&!(a15==1))&&(a12==12))))&&(a6==1))&&!(a4==1))&&(a3==8))){ + a6 = 0; + a22 = 1; + a15 = 1; + a18 = 0; + a3 = 7; + a12 = 11; + return -1; + } else if((((a20==1)&&((((a3==5)&&((((a0==1)&&((a6==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&!(a4==1))))&&!(a5==1))&&!(a27==1)))&&(a12==8))&&(a22==1)))&&!(a15==1))){ + a18 = 1; + a15 = 1; + a4 = 1; + a3 = 4; + a5 = 1; + a27 = 1; + return -1; + } else if((((a12==8)&&(!(a4==1)&&((a5==1)&&((((!(a6==1)&&((input==2)&&(((((a18==1)&&!(a22==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7)))||((a3==8)&&((a22==1)&&(a18==1))))))&&(a15==1))&&(a27==1))&&(a20==1)))))&&!(a0==1))){ + a22 = 1; + a15 = 0; + a6 = 1; + a3 = 4; + a5 = 0; + a18 = 1; + return -1; + } else if((((a12==9)&&((a6==1)&&(((((a20==1)&&(((input==5)&&((((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==7))))&&!(a0==1)))&&!(a5==1))&&(a27==1))&&(a4==1))))&&!(a15==1))){ + a5 = 1; + a3 = 4; + a0 = 1; + a4 = 0; + a22 = 1; + a18 = 0; + return 24; + } else if(((a15==1)&&((a6==1)&&(((a3==7)&&((((a5==1)&&(!(a0==1)&&((a20==1)&&((input==2)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))))&&(a12==9))&&(a4==1)))&&(a27==1))))){ + a3 = 6; + a0 = 1; + a18 = 0; + a22 = 0; + a5 = 0; + a12 = 10; + a4 = 0; + a15 = 0; + return 26; + } else if((((a15==1)&&((((a6==1)&&((((((((!(a22==1)&&(a18==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7)))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==6))&&!(a0==1))&&(a20==1))&&(a12==12)))&&!(a4==1))&&(a5==1)))&&(a27==1))){ + a5 = 0; + a22 = 0; + a18 = 1; + a3 = 8; + a12 = 10; + a4 = 1; + a27 = 0; + a0 = 1; + return 21; + } else if((((a12==9)&&((a20==1)&&((a0==1)&&(!(a15==1)&&(((((input==5)&&((((a3==4)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==4)))||(((a22==1)&&(a18==1))&&(a3==5))))&&!(a4==1))&&!(a6==1))&&(a5==1))))))&&!(a27==1))){ + a15 = 1; + a18 = 0; + a27 = 1; + a22 = 0; + a3 = 5; + a12 = 10; + a5 = 0; + a6 = 1; + return 26; + } else if((!(a27==1)&&((a4==1)&&((a5==1)&&((a0==1)&&((((a15==1)&&(((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==3))&&!(a6==1))&&(a12==10)))&&(a3==5))&&(a20==1))))))){ + a3 = 4; + a6 = 1; + a12 = 8; + a18 = 1; + a27 = 1; + a22 = 1; + return -1; + } else if((((((((a6==1)&&((a12==10)&&(((input==2)&&(((a3==6)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1))))))&&(a4==1))))&&(a15==1))&&(a27==1))&&(a0==1))&&!(a5==1))&&(a20==1))){ + if((a15==1)){ + a3 = 5; + a22 = 1; + a18 = 0; + a15 = 0; + a12 = 9; + a0 = 0; + }else{ + a22 = 0; + a3 = 8; + a18 = 0; + a12 = 8; + a15 = 0; + a5 = 1; + } + return 21; + } else if(((a0==1)&&((a6==1)&&((a27==1)&&((a4==1)&&((a12==12)&&(((a20==1)&&(!(a15==1)&&((a5==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==4)))))&&(a3==8)))))))){ + a12 = 8; + a22 = 1; + a18 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if((((a4==1)&&((a12==8)&&(((!(a5==1)&&(((a20==1)&&((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==4))&&!(a0==1)))&&(a27==1)))&&(a15==1))&&!(a6==1))))&&(a3==6))){ + a18 = 0; + a22 = 1; + a12 = 9; + a27 = 0; + a6 = 1; + a0 = 1; + return 24; + } else if((((!(a15==1)&&(((a5==1)&&(!(a0==1)&&(((a3==4)&&(((a12==9)&&((a22==1)&&(input==4)))&&!(a27==1)))&&(a6==1))))&&(a20==1)))&&(a4==1))&&!(a18==1))){ + a4 = 0; + a18 = 1; + a3 = 5; + a12 = 8; + a0 = 1; + a27 = 1; + a15 = 1; + return -1; + } else if(((!(a0==1)&&((a15==1)&&(!(a6==1)&&(((a3==8)&&(!(a5==1)&&(((a22==1)&&(!(a27==1)&&((input==4)&&(a12==9))))&&(a18==1))))&&(a20==1)))))&&(a4==1))){ + if((a5==1)){ + a22 = 0; + a15 = 0; + a5 = 1; + a27 = 1; + a3 = 7; + a6 = 1; + a12 = 12; + }else{ + a0 = 1; + a27 = 1; + a12 = 8; + a5 = 1; + } + return -1; + } else if((!(a27==1)&&(((((((((!(a15==1)&&((input==2)&&((a18==1)||!(a18==1))))&&(a6==1))&&(a5==1))&&(a4==1))&&(a3==5))&&(a0==1))&&!(a22==1))&&(a12==9))&&(a20==1)))){ + a3 = 6; + a5 = 0; + a12 = 10; + a27 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if((((a12==12)&&((((((a4==1)&&((a20==1)&&(((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a3==4))))&&!(a27==1))&&(a0==1))&&!(a15==1))&&!(a6==1)))&&!(a5==1))){ + a5 = 1; + a22 = 1; + a27 = 1; + a18 = 0; + return 26; + } else if(((((((a4==1)&&(!(a6==1)&&((((input==3)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6))))&&(a20==1))&&(a0==1))))&&!(a15==1))&&!(a27==1))&&(a12==9))&&!(a5==1))){ + if((a4==1)){ + a22 = 0; + a12 = 12; + a3 = 8; + a15 = 1; + a18 = 1; + }else{ + a22 = 1; + a5 = 1; + a18 = 1; + a3 = 7; + a6 = 1; + } + return -1; + } else if((((a22==1)&&(!(a6==1)&&(((a5==1)&&((a20==1)&&((a12==12)&&(!(a15==1)&&((a3==8)&&((a0==1)&&(((a18==1)||!(a18==1))&&(input==5))))))))&&!(a27==1))))&&!(a4==1))){ + a22 = 0; + a3 = 7; + a4 = 1; + a18 = 0; + a12 = 10; + a0 = 0; + a27 = 1; + return 26; + } else if(((((!(a0==1)&&(!(a5==1)&&((!(a6==1)&&(((a3==6)&&((input==5)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))))&&(a12==12)))&&(a20==1))))&&(a4==1))&&(a27==1))&&(a15==1))){ + if((a4==1)){ + a5 = 1; + a27 = 0; + a0 = 1; + a22 = 0; + a18 = 1; + a6 = 1; + }else{ + a22 = 0; + a18 = 0; + a0 = 1; + a5 = 1; + a12 = 10; + a27 = 0; + a15 = 0; + a3 = 8; + } + return -1; + } else if(((a27==1)&&(((!(a18==1)&&((a6==1)&&((((a4==1)&&(((a0==1)&&((a5==1)&&(input==3)))&&(a12==11)))&&(a20==1))&&(a15==1))))&&(a22==1))&&(a3==8)))){ + a12 = 10; + a18 = 1; + a6 = 0; + a5 = 0; + a22 = 0; + a3 = 6; + return -1; + } else if((!(a22==1)&&(!(a27==1)&&((((!(a4==1)&&((!(a0==1)&&(!(a18==1)&&(((a3==5)&&(input==4))&&(a6==1))))&&(a20==1)))&&(a12==10))&&!(a5==1))&&!(a15==1))))){ + a4 = 1; + a12 = 12; + a0 = 1; + a27 = 1; + return 21; + } else if(((!(a22==1)&&((a6==1)&&((a20==1)&&(((!(a27==1)&&((a18==1)&&(((a4==1)&&((input==6)&&(a12==9)))&&(a5==1))))&&(a15==1))&&(a0==1)))))&&(a3==4))){ + a12 = 11; + a22 = 1; + a3 = 8; + a5 = 0; + a27 = 1; + a6 = 0; + a15 = 0; + return -1; + } else if(((((a3==4)&&(((a6==1)&&((!(a15==1)&&(!(a5==1)&&(!(a27==1)&&((input==3)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))&&(a4==1)))&&(a20==1)))&&(a12==9))&&(a0==1))){ + a22 = 0; + a3 = 6; + a15 = 1; + a18 = 1; + a12 = 11; + return 26; + } else if((!(a6==1)&&((a20==1)&&((a0==1)&&((a12==9)&&((a27==1)&&((a15==1)&&(!(a5==1)&&(((input==3)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))||((a3==6)&&(!(a18==1)&&(a22==1)))))&&(a4==1)))))))))){ + a22 = 0; + a15 = 0; + a4 = 0; + a18 = 0; + a12 = 8; + a3 = 7; + a5 = 1; + return 26; + } else if(((a6==1)&&((a12==9)&&((((a20==1)&&((a5==1)&&((((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==4))&&(a3==5))&&(a27==1))&&!(a15==1))))&&!(a0==1))&&(a4==1))))){ + a15 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + a0 = 1; + a22 = 1; + return -1; + } else if(((((a20==1)&&(!(a5==1)&&((((a4==1)&&((a0==1)&&(((((a3==4)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==4)))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==5))))&&!(a27==1))&&(a15==1))))&&!(a6==1))&&(a12==12))){ + a3 = 6; + a22 = 1; + a12 = 11; + a27 = 1; + a18 = 0; + a4 = 0; + a5 = 1; + return 21; + } else if(((a4==1)&&((a3==8)&&((a12==11)&&(!(a6==1)&&(((!(a27==1)&&((a0==1)&&((a20==1)&&((input==6)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))))))&&(a5==1))&&(a15==1))))))){ + if((a15==1)){ + a0 = 0; + a18 = 1; + a22 = 1; + a27 = 1; + a3 = 6; + a4 = 0; + }else{ + a12 = 10; + a18 = 0; + a5 = 0; + a3 = 6; + a22 = 1; + } + return -1; + } else if(((a4==1)&&(((!(a6==1)&&((a27==1)&&(!(a0==1)&&((a15==1)&&((((a12==11)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a22==1))&&(a3==8))))))&&(a5==1))&&(a20==1)))){ + a12 = 8; + a18 = 1; + a0 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if(((!(a6==1)&&((a4==1)&&((a3==6)&&(((((a22==1)&&((a12==11)&&((!(a18==1)&&(input==6))&&(a20==1))))&&(a0==1))&&!(a15==1))&&(a27==1)))))&&!(a5==1))){ + if((a22==1)){ + a12 = 8; + a18 = 1; + a3 = 8; + a22 = 0; + a0 = 0; + a4 = 0; + }else{ + a6 = 1; + a22 = 0; + a18 = 1; + a12 = 10; + a5 = 1; + } + return -1; + } else if((!(a27==1)&&((a4==1)&&((a22==1)&&(((a5==1)&&(((((a15==1)&&(((a0==1)&&(input==4))&&(a20==1)))&&(a18==1))&&(a3==6))&&!(a6==1)))&&(a12==9)))))){ + a0 = 0; + a27 = 1; + a4 = 0; + a18 = 0; + a3 = 5; + a12 = 8; + return -1; + } else if(((a27==1)&&((((a5==1)&&((!(a4==1)&&(((a20==1)&&((input==1)&&(((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==5)))))&&(a12==11)))&&!(a0==1)))&&!(a15==1))&&!(a6==1)))){ + a5 = 0; + a18 = 1; + a3 = 6; + a15 = 1; + a22 = 1; + return -1; + } else if((((((!(a15==1)&&(((a27==1)&&((a4==1)&&(((a3==6)&&((a6==1)&&(input==3)))&&!(a5==1))))&&!(a0==1)))&&(a18==1))&&(a20==1))&&(a12==10))&&(a22==1))){ + a0 = 1; + a6 = 0; + a15 = 1; + a4 = 0; + a5 = 1; + a3 = 4; + return 24; + } else if((!(a5==1)&&((((((!(a15==1)&&(((a3==4)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==4)))&&(a20==1)))&&(a27==1))&&(a4==1))&&!(a0==1))&&(a12==12))&&!(a6==1)))){ + if((a18==1)){ + a18 = 1; + a6 = 1; + a15 = 1; + a0 = 1; + a12 = 8; + a5 = 1; + a22 = 1; + }else{ + a22 = 0; + a27 = 0; + a3 = 6; + a12 = 9; + a5 = 1; + a18 = 0; + a15 = 1; + } + return 26; + } else if(((((((((((a4==1)&&(((!(a18==1)&&(a22==1))&&!(a5==1))&&(a15==1)))&&(a3==4))&&(a6==1))||((!(a6==1)&&(((!(a15==1)&&((a5==1)&&(!(a18==1)&&!(a22==1))))&&!(a4==1))&&(a3==8)))||((((a4==1)&&((((a22==1)&&(a18==1))&&!(a5==1))&&(a15==1)))&&(a3==4))&&(a6==1))))&&(input==1))&&(a20==1))&&(a27==1))&&(a12==10))&&(a0==1))){ + a5 = 1; + a0 = 0; + a18 = 1; + a15 = 1; + a3 = 8; + a22 = 1; + a4 = 0; + a6 = 1; + return 21; + } else if((((a12==12)&&(((a15==1)&&(!(a6==1)&&(((!(a4==1)&&(((((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a22==1)&&!(a18==1))))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==3)))&&(a20==1))&&!(a5==1))))&&(a27==1)))&&(a0==1))){ + a6 = 1; + a5 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if((!(a5==1)&&((a20==1)&&((a0==1)&&((((a27==1)&&((((((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8))&&!(a6==1))||((a6==1)&&((a3==4)&&(!(a4==1)&&((a22==1)&&(a18==1))))))&&(input==1)))&&(a12==11))&&(a15==1)))))){ + a6 = 1; + a22 = 0; + a4 = 1; + a3 = 8; + a18 = 0; + return -1; + } else if(((((a15==1)&&((a3==6)&&(!(a5==1)&&((a0==1)&&(!(a4==1)&&(((!(a22==1)&&((input==2)&&((a18==1)||!(a18==1))))&&(a27==1))&&(a12==8)))))))&&!(a6==1))&&(a20==1))){ + a4 = 1; + a12 = 10; + a18 = 0; + a6 = 1; + return 21; + } else if(((a6==1)&&(!(a4==1)&&(((a20==1)&&((a5==1)&&(!(a15==1)&&((((input==2)&&(((a3==5)&&((a22==1)&&!(a18==1)))||(((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==5)))))&&(a0==1))&&(a12==8)))))&&!(a27==1))))){ + a22 = 1; + a3 = 4; + a12 = 10; + a27 = 1; + a6 = 0; + a18 = 0; + return -1; + } else if((((((a20==1)&&((a15==1)&&((a3==6)&&((!(a22==1)&&(((a4==1)&&((input==3)&&((a18==1)||!(a18==1))))&&!(a6==1)))&&(a12==9)))))&&!(a5==1))&&!(a27==1))&&!(a0==1))){ + if((a5==1)){ + a12 = 8; + a22 = 1; + a5 = 1; + a3 = 5; + a18 = 1; + a27 = 1; + a0 = 1; + }else{ + a3 = 4; + a22 = 1; + a6 = 1; + a18 = 1; + } + return 21; + } else if((((((a3==8)&&(((!(a0==1)&&((a15==1)&&(!(a6==1)&&(!(a4==1)&&(((a18==1)||!(a18==1))&&(input==2))))))&&(a12==11))&&(a27==1)))&&(a20==1))&&!(a5==1))&&!(a22==1))){ + a4 = 1; + a22 = 1; + a18 = 1; + a0 = 1; + a27 = 0; + a5 = 1; + return 26; + } else if(((a4==1)&&(((a12==11)&&((((!(a15==1)&&((a20==1)&&(((((a3==6)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==6)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==2))))&&(a6==1))&&(a5==1))&&(a0==1)))&&(a27==1)))){ + a18 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if(((!(a22==1)&&(((a12==10)&&((!(a4==1)&&((((a5==1)&&(!(a15==1)&&((input==1)&&((a18==1)||!(a18==1)))))&&!(a27==1))&&(a3==7)))&&(a20==1)))&&!(a0==1)))&&(a6==1))){ + a5 = 0; + a27 = 1; + a12 = 8; + a15 = 1; + a18 = 0; + a3 = 8; + return 21; + } else if((((a12==10)&&((((a15==1)&&((a20==1)&&(!(a27==1)&&(!(a0==1)&&((a3==7)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3)))))))&&!(a5==1))&&(a4==1)))&&(a6==1))){ + a0 = 1; + a5 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + a3 = 6; + a27 = 1; + return -1; + } else if(((a0==1)&&(((a27==1)&&(!(a5==1)&&((a15==1)&&(((a12==8)&&(!(a4==1)&&((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==2))&&(a3==4))))&&(a20==1)))))&&(a6==1)))){ + a3 = 5; + a18 = 1; + a12 = 10; + a22 = 0; + a5 = 1; + return 21; + } else if(((a5==1)&&(((((((!(a22==1)&&((a0==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a15==1))))&&(a27==1))&&(a12==10))&&!(a4==1))&&(a20==1))&&(a3==8))&&(a6==1)))){ + a27 = 0; + a5 = 0; + a3 = 6; + a22 = 1; + a18 = 0; + a12 = 9; + return 24; + } else if((!(a0==1)&&(!(a27==1)&&(((a5==1)&&((a12==8)&&((((a20==1)&&((a3==6)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a6==1))))&&!(a15==1))&&(a4==1))))&&(a22==1))))){ + a0 = 1; + a15 = 1; + a3 = 4; + a27 = 1; + a18 = 0; + return 21; + } else if(((a12==8)&&((a5==1)&&((a0==1)&&((((!(a27==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&(a3==4))&&!(a6==1)))&&(a20==1))&&!(a15==1))&&!(a4==1)))))){ + if((a15==1)){ + a22 = 0; + a15 = 1; + a27 = 1; + a0 = 0; + a4 = 1; + a12 = 10; + a18 = 0; + }else{ + a15 = 1; + a18 = 1; + a3 = 8; + a22 = 0; + } + return 21; + } else if(((a20==1)&&((a3==4)&&(((a15==1)&&(!(a5==1)&&(!(a0==1)&&((a4==1)&&(((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==2))&&(a6==1))&&(a12==11))))))&&!(a27==1))))){ + a18 = 1; + a3 = 7; + a5 = 1; + a0 = 1; + a27 = 1; + a4 = 0; + a12 = 8; + a22 = 0; + return 21; + } else if((((a5==1)&&((a22==1)&&((a15==1)&&((a18==1)&&((a3==8)&&(((a20==1)&&(!(a6==1)&&((!(a27==1)&&(input==6))&&(a0==1))))&&(a12==11)))))))&&(a4==1))){ + a5 = 0; + a18 = 0; + a6 = 1; + a27 = 1; + a3 = 7; + return 21; + } else if((!(a4==1)&&(!(a22==1)&&((((a12==9)&&(((a6==1)&&(((!(a27==1)&&((input==2)&&((a18==1)||!(a18==1))))&&!(a15==1))&&(a3==6)))&&!(a0==1)))&&(a20==1))&&!(a5==1))))){ + a18 = 1; + a0 = 1; + a3 = 4; + a27 = 1; + a12 = 12; + return -1; + } else if(((a27==1)&&(((!(a5==1)&&(((((a15==1)&&(((!(a6==1)&&(input==1))&&!(a22==1))&&!(a0==1)))&&!(a4==1))&&(a20==1))&&!(a18==1)))&&(a12==12))&&(a3==8)))){ + a6 = 1; + a15 = 0; + a27 = 0; + a12 = 9; + a3 = 7; + return -1; + } else if(((!(a6==1)&&(((!(a15==1)&&(((a0==1)&&((a3==4)&&((((input==1)&&((a18==1)||!(a18==1)))&&!(a5==1))&&(a20==1))))&&(a27==1)))&&(a4==1))&&(a22==1)))&&(a12==10))){ + a5 = 1; + a6 = 1; + a18 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if((!(a6==1)&&(((a0==1)&&(((a12==9)&&((((((a27==1)&&((input==2)&&(a5==1)))&&!(a22==1))&&(a3==7))&&!(a18==1))&&(a15==1)))&&(a4==1)))&&(a20==1)))){ + a6 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if((((((a22==1)&&((a12==8)&&(!(a18==1)&&((!(a5==1)&&(!(a15==1)&&(!(a4==1)&&((input==4)&&(a20==1)))))&&(a0==1)))))&&(a3==8))&&(a27==1))&&!(a6==1))){ + a12 = 11; + a15 = 1; + a3 = 6; + a22 = 0; + a6 = 1; + return 26; + } else if((!(a15==1)&&((a4==1)&&(((a20==1)&&((a12==11)&&(!(a27==1)&&((((!(a0==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&!(a22==1))&&!(a5==1))&&(a3==5)))))&&!(a6==1))))){ + a5 = 1; + a0 = 1; + a15 = 1; + a4 = 0; + a18 = 0; + a3 = 7; + a12 = 8; + a6 = 1; + a27 = 1; + return 24; + } else if(((a0==1)&&((a20==1)&&((a4==1)&&(((a6==1)&&(!(a27==1)&&((((a15==1)&&(!(a22==1)&&((input==6)&&(a3==6))))&&(a5==1))&&!(a18==1))))&&(a12==11)))))){ + a22 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + a27 = 1; + return -1; + } else if(((a27==1)&&((((!(a4==1)&&(!(a15==1)&&((a5==1)&&(((a0==1)&&((a20==1)&&((input==3)&&!(a18==1))))&&(a3==4)))))&&(a12==10))&&!(a22==1))&&!(a6==1)))){ + if((a20==1)){ + a6 = 1; + a4 = 1; + a0 = 0; + a22 = 1; + a12 = 11; + a3 = 6; + }else{ + a18 = 1; + a4 = 1; + a6 = 1; + a22 = 1; + } + return -1; + } return calculate_output63(input); + } + + int calculate_output63(int input) { + if(((((((((a3==5)&&((a20==1)&&((((input==3)&&((a18==1)||!(a18==1)))&&(a12==12))&&!(a15==1))))&&!(a22==1))&&!(a27==1))&&(a6==1))&&(a5==1))&&!(a4==1))&&(a0==1))){ + a22 = 1; + a4 = 1; + a18 = 0; + a27 = 1; + a15 = 1; + return 26; + } else if((!(a5==1)&&(((((!(a15==1)&&((a12==11)&&((input==4)&&((!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4)))||((((a3==8)&&(!(a22==1)&&(a18==1)))&&(a6==1))||(((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1)))))))&&(a4==1))&&(a20==1))&&!(a0==1))&&(a27==1)))){ + a15 = 1; + a3 = 4; + a0 = 1; + a22 = 1; + a5 = 1; + a12 = 8; + a18 = 1; + a6 = 1; + return -1; + } else if((!(a5==1)&&(!(a15==1)&&(((a27==1)&&((a12==9)&&((a3==6)&&(((a0==1)&&((a6==1)&&(!(a4==1)&&(((a18==1)||!(a18==1))&&(input==2)))))&&(a20==1)))))&&(a22==1))))){ + if((a0==1)){ + a18 = 0; + a12 = 10; + a0 = 0; + a22 = 0; + a6 = 0; + }else{ + a12 = 10; + a6 = 0; + a5 = 1; + a4 = 1; + a18 = 0; + } + return 26; + } else if(((a3==8)&&((a0==1)&&(!(a4==1)&&(((a20==1)&&((!(a6==1)&&(((a27==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==3)))&&(a15==1)))&&(a12==9)))&&!(a5==1)))))){ + a6 = 1; + a18 = 1; + a12 = 11; + a22 = 0; + a3 = 5; + return 21; + } else if(((((a5==1)&&(!(a27==1)&&((a20==1)&&((a4==1)&&((a0==1)&&((a6==1)&&((input==5)&&((((a3==7)&&((a18==1)&&!(a22==1)))||((a3==7)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==8))))))))))&&!(a15==1))&&(a12==9))){ + a18 = 1; + a5 = 0; + a27 = 1; + a22 = 0; + a6 = 0; + a4 = 0; + a12 = 10; + a3 = 4; + return 21; + } else if((!(a6==1)&&(!(a15==1)&&((a12==8)&&(!(a22==1)&&((a3==4)&&((a0==1)&&((((((input==4)&&(a18==1))&&(a20==1))&&!(a5==1))&&(a27==1))&&(a4==1))))))))){ + a3 = 6; + a6 = 1; + a12 = 11; + a5 = 1; + a15 = 1; + a22 = 1; + return 21; + } else if(((((a20==1)&&(((a27==1)&&((a12==9)&&((a15==1)&&(!(a4==1)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==2))))))&&!(a5==1)))&&!(a0==1))&&!(a6==1))){ + a0 = 1; + a12 = 10; + a27 = 0; + a22 = 1; + a6 = 1; + a18 = 0; + a3 = 7; + return 26; + } else if(((a4==1)&&(!(a6==1)&&((a5==1)&&((a0==1)&&((((a20==1)&&((((((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a22==1)&&(a18==1))))||((!(a18==1)&&(a22==1))&&(a3==5)))&&(input==3))&&!(a27==1)))&&!(a15==1))&&(a12==8))))))){ + a27 = 1; + a3 = 6; + a12 = 11; + a22 = 1; + a18 = 0; + return -1; + } else if((((a4==1)&&((a22==1)&&(((((((a6==1)&&(((a3==7)&&(input==5))&&!(a27==1)))&&(a5==1))&&(a18==1))&&(a12==8))&&(a20==1))&&!(a0==1))))&&(a15==1))){ + a3 = 5; + a5 = 0; + a18 = 0; + a12 = 9; + a6 = 0; + return -1; + } else if(((a22==1)&&((!(a27==1)&&(((a5==1)&&(((((((input==3)&&(a6==1))&&(a15==1))&&(a3==6))&&(a18==1))&&(a20==1))&&!(a4==1)))&&(a0==1)))&&(a12==12)))){ + a4 = 1; + a12 = 8; + a27 = 1; + a3 = 4; + return -1; + } else if(((a15==1)&&((a0==1)&&((!(a4==1)&&((a12==8)&&((!(a5==1)&&(((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==3))&&(a27==1)))&&(a20==1))))&&!(a6==1))))){ + a3 = 4; + a18 = 1; + a15 = 0; + a22 = 1; + a12 = 10; + a5 = 1; + return 26; + } else if(((a27==1)&&(((a5==1)&&(((a20==1)&&(!(a0==1)&&((!(a6==1)&&((input==3)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1))))||((a3==7)&&((a22==1)&&!(a18==1))))))&&(a15==1))))&&(a12==8)))&&!(a4==1)))){ + a3 = 6; + a18 = 1; + a5 = 0; + a12 = 10; + a0 = 1; + a22 = 1; + return 21; + } else if((((!(a6==1)&&(!(a4==1)&&((a27==1)&&((a15==1)&&((a5==1)&&(((((a12==12)&&(input==2))&&!(a22==1))&&!(a18==1))&&(a0==1)))))))&&(a20==1))&&(a3==5))){ + a12 = 10; + a18 = 1; + a6 = 1; + return 26; + } else if((!(a27==1)&&((((!(a15==1)&&((!(a4==1)&&((((a20==1)&&((input==1)&&!(a0==1)))&&(a12==11))&&(a6==1)))&&(a3==5)))&&!(a22==1))&&!(a5==1))&&!(a18==1)))){ + if((a20==1)){ + a4 = 1; + a12 = 10; + a27 = 1; + a5 = 1; + }else{ + a0 = 1; + a18 = 1; + a5 = 1; + a12 = 8; + a3 = 7; + a15 = 1; + a27 = 1; + } + return -1; + } else if(((a5==1)&&(!(a4==1)&&((a12==11)&&(((((a0==1)&&((((((a22==1)&&!(a18==1))&&(a3==4))&&!(a6==1))||((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1))))&&(input==5)))&&(a15==1))&&(a20==1))&&!(a27==1)))))){ + a27 = 1; + a22 = 1; + a3 = 5; + a18 = 0; + a6 = 0; + a5 = 0; + a4 = 1; + return 21; + } else if(((((a27==1)&&((a12==9)&&((a20==1)&&((a5==1)&&((((a3==4)&&((a6==1)&&(((a18==1)||!(a18==1))&&(input==5))))&&!(a0==1))&&!(a15==1))))))&&(a22==1))&&(a4==1))){ + a4 = 0; + a22 = 0; + a0 = 1; + a3 = 5; + a12 = 10; + a5 = 0; + a18 = 0; + return 26; + } else if((((((a12==8)&&(!(a5==1)&&((a20==1)&&(((!(a6==1)&&(((a4==1)&&(!(a22==1)&&!(a18==1)))&&(a3==8)))||((a6==1)&&((((a18==1)&&(a22==1))&&!(a4==1))&&(a3==4))))&&(input==4)))))&&!(a0==1))&&!(a15==1))&&!(a27==1))){ + if((a20==1)){ + a0 = 1; + a27 = 1; + a18 = 0; + a5 = 1; + a3 = 8; + a6 = 0; + a15 = 1; + a22 = 0; + a4 = 1; + }else{ + a6 = 1; + a12 = 9; + a22 = 0; + a27 = 1; + a4 = 0; + a15 = 1; + a3 = 7; + a18 = 1; + } + return 26; + } else if(((a12==9)&&(!(a27==1)&&(!(a15==1)&&(((a0==1)&&((((!(a5==1)&&(((input==6)&&(a20==1))&&(a18==1)))&&(a3==5))&&!(a4==1))&&!(a22==1)))&&!(a6==1)))))){ + a27 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + a15 = 1; + a5 = 1; + a4 = 1; + return -1; + } else if((((((a4==1)&&((((!(a0==1)&&(((input==3)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a12==9)))&&!(a27==1))&&(a15==1))&&(a5==1)))&&(a3==5))&&(a20==1))&&!(a6==1))){ + a18 = 1; + a0 = 1; + a3 = 8; + a22 = 1; + a5 = 0; + a12 = 12; + a6 = 1; + a15 = 0; + return 21; + } else if(((a3==4)&&(((!(a15==1)&&((a4==1)&&((a6==1)&&((((a12==10)&&((input==2)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&!(a5==1))&&!(a0==1)))))&&(a20==1))&&!(a27==1)))){ + a4 = 0; + a27 = 1; + a15 = 1; + a3 = 6; + a22 = 0; + a12 = 11; + a18 = 1; + return 21; + } else if((!(a6==1)&&((a0==1)&&((a5==1)&&(!(a15==1)&&((a20==1)&&(!(a27==1)&&((a12==9)&&((a4==1)&&(((((a22==1)&&(a18==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a18==1)&&!(a22==1)))))&&(input==6))))))))))){ + a15 = 1; + a5 = 0; + a22 = 1; + a18 = 1; + a12 = 11; + a3 = 4; + return 26; + } else if((!(a27==1)&&((a20==1)&&((a4==1)&&((a3==4)&&(((a15==1)&&(!(a22==1)&&(((a12==8)&&((a0==1)&&((input==1)&&((a18==1)||!(a18==1)))))&&!(a5==1))))&&!(a6==1))))))){ + a5 = 1; + a22 = 1; + a27 = 1; + a18 = 1; + a6 = 1; + return -1; + } else if((((((!(a4==1)&&((a12==9)&&(((!(a15==1)&&(!(a0==1)&&((input==3)&&(a22==1))))&&(a27==1))&&!(a5==1))))&&(a18==1))&&(a20==1))&&!(a6==1))&&(a3==7))){ + a12 = 12; + a3 = 6; + a22 = 0; + a5 = 1; + a4 = 1; + a18 = 0; + a6 = 1; + a15 = 1; + return 24; + } else if(((a3==4)&&((((!(a15==1)&&((a4==1)&&((a20==1)&&(!(a5==1)&&(((input==2)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a6==1))))))&&(a12==9))&&(a27==1))&&(a0==1)))){ + a22 = 0; + a15 = 1; + a3 = 5; + a12 = 10; + a18 = 1; + a6 = 0; + return 21; + } else if((!(a27==1)&&(((!(a5==1)&&((((a4==1)&&(!(a6==1)&&((((input==5)&&((a18==1)||!(a18==1)))&&(a15==1))&&!(a22==1))))&&(a0==1))&&(a20==1)))&&(a12==8))&&(a3==4)))){ + a12 = 11; + a15 = 0; + a18 = 1; + a22 = 1; + a27 = 1; + a3 = 5; + return 21; + } else if((((!(a4==1)&&((a18==1)&&(!(a22==1)&&(((a20==1)&&(!(a15==1)&&((a3==8)&&(((input==1)&&(a5==1))&&!(a6==1)))))&&(a27==1)))))&&!(a0==1))&&(a12==10))){ + a12 = 8; + a15 = 1; + a6 = 1; + a0 = 1; + a4 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((a15==1)&&(((((!(a22==1)&&(!(a5==1)&&((a6==1)&&(((a27==1)&&((input==3)&&!(a4==1)))&&(a20==1)))))&&(a18==1))&&(a12==12))&&(a0==1))&&(a3==4)))){ + a22 = 1; + a4 = 1; + a3 = 8; + return 21; + } else if(((a15==1)&&(!(a0==1)&&(((a12==8)&&(!(a4==1)&&(((!(a5==1)&&((input==1)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))))&&(a27==1))&&(a20==1))))&&!(a6==1))))){ + a12 = 12; + a22 = 1; + a18 = 0; + a4 = 1; + a0 = 1; + a3 = 6; + a6 = 1; + return -1; + } else if(((a3==7)&&((((((a15==1)&&(!(a5==1)&&(((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==3))&&!(a6==1))&&(a27==1))))&&(a0==1))&&!(a4==1))&&(a12==12))&&(a20==1)))){ + a6 = 1; + a18 = 1; + a0 = 0; + a3 = 5; + a12 = 11; + a22 = 0; + return 21; + } else if(((((!(a0==1)&&((a27==1)&&((a12==10)&&(!(a6==1)&&(((a20==1)&&((input==1)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))&&(a4==1))))))&&!(a5==1))&&(a15==1))&&(a3==7))){ + a6 = 1; + a4 = 0; + a18 = 0; + a22 = 0; + a5 = 1; + a0 = 1; + a3 = 4; + return -1; + } else if((((a5==1)&&((a27==1)&&((!(a15==1)&&((a12==12)&&((a0==1)&&((input==5)&&((((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1)))))))))&&(a20==1))))&&(a4==1))){ + a22 = 1; + a6 = 1; + a15 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if((!(a27==1)&&((a15==1)&&((a12==8)&&((a3==4)&&((!(a4==1)&&((!(a6==1)&&((a0==1)&&((input==3)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))))&&(a20==1)))&&(a5==1))))))){ + a6 = 1; + a4 = 1; + a12 = 12; + a18 = 0; + a5 = 0; + a22 = 1; + a27 = 1; + return 26; + } else if((((a27==1)&&((a15==1)&&((((a0==1)&&(((a12==10)&&((((!(a18==1)&&(a22==1))&&(a3==7))||(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1)))))&&(input==6)))&&(a6==1)))&&!(a4==1))&&!(a5==1))))&&(a20==1))){ + a5 = 1; + a22 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + a4 = 1; + return -1; + } else if((!(a15==1)&&((a12==11)&&(((a6==1)&&((((((a22==1)&&(!(a27==1)&&(((a18==1)||!(a18==1))&&(input==1))))&&(a20==1))&&(a3==6))&&!(a0==1))&&!(a5==1)))&&(a4==1))))){ + if((a4==1)){ + a12 = 12; + a27 = 1; + a4 = 0; + a5 = 1; + a3 = 5; + a18 = 0; + }else{ + a15 = 1; + a0 = 1; + a22 = 0; + a4 = 0; + a18 = 0; + a12 = 8; + } + return 24; + } else if(((a3==7)&&(!(a0==1)&&((((a4==1)&&((((a12==12)&&((a27==1)&&((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&(a20==1))&&!(a6==1)))&&!(a5==1))&&!(a15==1))))){ + a15 = 1; + a5 = 1; + a4 = 0; + a22 = 1; + a18 = 0; + a3 = 8; + return 21; + } else if(((((((a20==1)&&(((a22==1)&&(!(a5==1)&&(((a4==1)&&((input==4)&&(a6==1)))&&!(a18==1))))&&(a15==1)))&&(a12==12))&&(a27==1))&&(a0==1))&&(a3==6))){ + a18 = 1; + a12 = 8; + a3 = 4; + a5 = 1; + return -1; + } else if(((a20==1)&&(((!(a18==1)&&((!(a27==1)&&(!(a4==1)&&((((a3==8)&&(!(a22==1)&&(input==3)))&&!(a15==1))&&(a12==10))))&&(a6==1)))&&!(a5==1))&&!(a0==1)))){ + if((a18==1)){ + a0 = 1; + a18 = 1; + }else{ + a18 = 1; + a4 = 1; + a5 = 1; + a3 = 7; + a27 = 1; + a12 = 9; + a6 = 0; + } + return 21; + } else if((((a6==1)&&(((!(a5==1)&&(((a20==1)&&(!(a4==1)&&(((input==2)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a15==1))))&&(a27==1)))&&(a0==1))&&(a3==8)))&&(a12==10))){ + a3 = 4; + a12 = 8; + a18 = 1; + a5 = 1; + a22 = 1; + a4 = 1; + return -1; + } else if((((a27==1)&&(!(a5==1)&&((!(a15==1)&&(!(a6==1)&&((!(a0==1)&&((input==2)&&((((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a22==1)&&!(a18==1))))||((a3==6)&&((a22==1)&&(a18==1))))))&&(a20==1))))&&(a4==1))))&&(a12==11))){ + a27 = 0; + a18 = 0; + a3 = 7; + a6 = 1; + a15 = 1; + a22 = 0; + a4 = 0; + a0 = 1; + return 21; + } else if((!(a27==1)&&((a12==10)&&((!(a15==1)&&((((a6==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==2))&&!(a5==1)))&&(a0==1))&&(a4==1)))&&(a20==1))))){ + a15 = 1; + a27 = 1; + a18 = 1; + a3 = 4; + a5 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if((((a15==1)&&((!(a18==1)&&((a0==1)&&(((a12==9)&&(((a3==8)&&((a27==1)&&((a20==1)&&(input==1))))&&!(a6==1)))&&!(a5==1))))&&(a4==1)))&&(a22==1))){ + a3 = 4; + a12 = 8; + a6 = 1; + a27 = 0; + return 26; + } else if((((a20==1)&&((((((((input==2)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))||((!(a18==1)&&(a22==1))&&(a3==8))))&&(a6==1))&&(a5==1))&&!(a0==1))&&(a15==1))&&!(a4==1))&&!(a27==1)))&&(a12==9))){ + a3 = 4; + a4 = 1; + a22 = 1; + a6 = 0; + a18 = 1; + return 26; + } else if((!(a4==1)&&((a12==8)&&((a15==1)&&(((((a5==1)&&(((input==3)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6))))&&!(a6==1)))&&!(a27==1))&&!(a0==1))&&(a20==1)))))){ + if((a3==5)){ + a3 = 8; + a5 = 0; + a4 = 1; + a22 = 0; + a6 = 1; + a15 = 0; + a12 = 9; + a18 = 0; + }else{ + a27 = 1; + a3 = 5; + a22 = 0; + a18 = 1; + a12 = 9; + a6 = 1; + a5 = 0; + } + return -1; + } else if((((a27==1)&&(!(a6==1)&&(((a5==1)&&((a12==11)&&((a15==1)&&((a0==1)&&(!(a4==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==1)))))))&&(a20==1))))&&(a3==8))){ + a22 = 0; + a4 = 1; + a12 = 10; + a6 = 1; + a3 = 6; + a15 = 0; + a18 = 0; + return -1; + } else if(((a12==9)&&((!(a22==1)&&(!(a27==1)&&(!(a18==1)&&(((!(a6==1)&&((a5==1)&&(((input==1)&&(a20==1))&&(a4==1))))&&(a0==1))&&!(a15==1)))))&&(a3==6)))){ + a6 = 1; + a15 = 1; + a18 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + a27 = 1; + return -1; + } else if((!(a27==1)&&((((a6==1)&&((a3==5)&&((a20==1)&&(((a4==1)&&((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==5))&&!(a5==1)))&&(a0==1)))))&&(a12==9))&&(a15==1)))){ + a27 = 1; + a5 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + a22 = 1; + return -1; + } else if(((a4==1)&&((!(a5==1)&&(((((((input==2)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))||((a3==7)&&(!(a18==1)&&(a22==1)))))&&!(a0==1))&&(a20==1))&&!(a6==1))&&!(a27==1))&&(a12==10)))&&!(a15==1)))){ + a6 = 1; + a3 = 6; + a5 = 1; + a18 = 0; + a15 = 1; + a4 = 0; + a0 = 1; + a22 = 1; + a12 = 12; + return 21; + } else if(((a20==1)&&(((((!(a6==1)&&(((a0==1)&&((a3==6)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==2))))&&(a12==11)))&&!(a4==1))&&(a5==1))&&!(a15==1))&&(a27==1)))){ + a12 = 8; + a6 = 1; + a18 = 1; + a22 = 1; + a15 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if((!(a0==1)&&(((a12==8)&&(((a27==1)&&(((!(a6==1)&&(((((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==6)))&&!(a4==1))&&!(a15==1)))&&!(a5==1)))&&(a20==1)))){ + a22 = 1; + a18 = 1; + a0 = 1; + a3 = 6; + a15 = 1; + a6 = 1; + return 21; + } else if(((((((a5==1)&&(!(a15==1)&&(((a0==1)&&((((a3==7)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1)))))&&(input==3)))&&(a4==1))))&&(a12==12))&&(a27==1))&&(a20==1))&&(a6==1))){ + a15 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if((((a0==1)&&((a6==1)&&(((a12==11)&&((!(a15==1)&&((a20==1)&&((!(a18==1)&&((input==1)&&!(a27==1)))&&!(a4==1))))&&!(a22==1)))&&(a5==1))))&&(a3==5))){ + a27 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a15 = 1; + a22 = 1; + a4 = 1; + return -1; + } else if((((!(a18==1)&&(!(a0==1)&&(((((a4==1)&&((((a27==1)&&(input==1))&&(a12==12))&&(a5==1)))&&(a22==1))&&(a3==7))&&(a20==1))))&&!(a15==1))&&(a6==1))){ + a0 = 1; + a12 = 8; + a15 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a6==1)&&(((!(a5==1)&&(((((((input==4)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&!(a4==1))&&!(a27==1))&&(a3==6))&&(a20==1))&&!(a0==1)))&&(a12==11))&&!(a15==1)))){ + if((a5==1)){ + a18 = 1; + a3 = 7; + a5 = 1; + a6 = 0; + a12 = 8; + a15 = 1; + a22 = 1; + }else{ + a18 = 0; + a4 = 1; + a22 = 0; + a5 = 1; + a27 = 1; + a3 = 4; + a0 = 1; + a12 = 9; + } + return -1; + } else if((((!(a6==1)&&(((a5==1)&&((a0==1)&&((((input==2)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))||(((a22==1)&&!(a18==1))&&(a3==7))))&&(a15==1))&&(a4==1))))&&!(a27==1)))&&(a12==12))&&(a20==1))){ + a22 = 0; + a6 = 1; + a27 = 1; + a12 = 11; + a18 = 1; + a3 = 7; + a4 = 0; + return 21; + } else if(((a3==7)&&(((((((((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==6))&&(a12==11))&&!(a4==1))&&(a20==1))&&!(a0==1))&&(a15==1))&&(a6==1))&&(a27==1))&&!(a5==1)))){ + a6 = 0; + a12 = 10; + a4 = 1; + a18 = 1; + a3 = 6; + a22 = 1; + a0 = 1; + return -1; + } else if(((a3==7)&&((!(a4==1)&&((a27==1)&&((!(a5==1)&&((a6==1)&&((a20==1)&&(((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a15==1)))))&&(a0==1))))&&(a12==11)))){ + a6 = 0; + a12 = 10; + a5 = 1; + a22 = 1; + a18 = 0; + a4 = 1; + return 21; + } else if((((a3==6)&&(!(a0==1)&&(((((a22==1)&&(!(a27==1)&&((a15==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&!(a4==1)))))&&(a12==11))&&!(a6==1))&&!(a5==1))))&&(a20==1))){ + if((a27==1)){ + a12 = 8; + a0 = 1; + a18 = 1; + a6 = 1; + a22 = 0; + a3 = 7; + a15 = 0; + a5 = 1; + a27 = 1; + }else{ + a0 = 1; + a22 = 0; + a15 = 0; + a3 = 7; + a18 = 1; + a12 = 9; + a5 = 1; + a6 = 1; + } + return 26; + } else if(((a20==1)&&((((a12==10)&&(((!(a6==1)&&(((a0==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==1)))&&!(a4==1)))&&(a27==1))&&(a5==1)))&&(a3==7))&&!(a15==1)))){ + a3 = 6; + a4 = 1; + a0 = 0; + a22 = 0; + a12 = 8; + a18 = 0; + return 21; + } else if((((a15==1)&&((((a20==1)&&((a0==1)&&((a3==6)&&((a5==1)&&(((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a6==1))))))&&!(a27==1))&&(a12==12)))&&!(a4==1))){ + a22 = 1; + a27 = 1; + a4 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if((((a12==8)&&(((a27==1)&&((a5==1)&&(((a6==1)&&(((input==6)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))||(((a22==1)&&!(a18==1))&&(a3==5))))&&!(a15==1)))&&(a20==1))))&&(a4==1)))&&!(a0==1))){ + a18 = 0; + a3 = 5; + a12 = 11; + a4 = 0; + a6 = 0; + a22 = 0; + a0 = 1; + return 24; + } else if(((!(a0==1)&&((((((a12==11)&&(!(a15==1)&&(((input==4)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a3==7))))&&!(a6==1))&&(a20==1))&&!(a5==1))&&(a4==1)))&&!(a27==1))){ + a0 = 1; + a22 = 0; + a3 = 4; + a15 = 1; + a27 = 1; + a18 = 0; + a12 = 9; + return -1; + } else if((((((((a20==1)&&((((input==6)&&((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6)))||((a3==6)&&((a22==1)&&!(a18==1)))))&&!(a15==1))&&(a6==1)))&&(a5==1))&&!(a4==1))&&!(a27==1))&&!(a0==1))&&(a12==11))){ + a4 = 1; + a0 = 1; + a3 = 5; + a27 = 1; + a18 = 1; + a22 = 0; + a12 = 8; + a15 = 1; + return -1; + } else if(((a22==1)&&((a18==1)&&((((((a12==8)&&((!(a5==1)&&((a15==1)&&(!(a0==1)&&(input==6))))&&(a27==1)))&&(a3==7))&&!(a6==1))&&(a4==1))&&(a20==1))))){ + a4 = 0; + a0 = 1; + a3 = 6; + a27 = 0; + a6 = 1; + a5 = 1; + return 21; + } else if(((a27==1)&&((a20==1)&&(((a6==1)&&((a12==10)&&((a4==1)&&((a18==1)&&(((((input==4)&&(a3==7))&&(a15==1))&&(a5==1))&&!(a0==1))))))&&(a22==1))))){ + a22 = 0; + a12 = 12; + a3 = 5; + a18 = 0; + a0 = 1; + a15 = 0; + return -1; + } else if((!(a15==1)&&((((a5==1)&&(((a12==10)&&((!(a27==1)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==2)))&&!(a6==1)))&&!(a4==1)))&&(a20==1))&&(a0==1)))){ + a3 = 4; + a18 = 1; + a15 = 1; + a22 = 0; + a27 = 1; + a4 = 1; + a5 = 0; + a6 = 1; + return 21; + } else if((!(a4==1)&&((a0==1)&&((a5==1)&&(((a12==9)&&(((a27==1)&&((((((a22==1)&&(a18==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a18==1)&&!(a22==1)))))&&(input==6))&&(a6==1)))&&(a20==1)))&&(a15==1)))))){ + a12 = 8; + a0 = 0; + a18 = 1; + a3 = 5; + a22 = 1; + a4 = 1; + return 26; + } else if(((a6==1)&&(((a0==1)&&((((a18==1)&&((a20==1)&&((a3==4)&&((a12==8)&&((!(a27==1)&&(input==4))&&(a15==1))))))&&(a5==1))&&!(a4==1)))&&(a22==1)))){ + a27 = 1; + a15 = 0; + a18 = 0; + a3 = 6; + a4 = 1; + a12 = 12; + return 26; + } else if(((((!(a15==1)&&((a0==1)&&((a27==1)&&(!(a6==1)&&((a4==1)&&((input==6)&&(((!(a18==1)&&(a22==1))&&(a3==6))||(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6))))))))))&&(a5==1))&&(a12==9))&&(a20==1))){ + a4 = 0; + a22 = 1; + a18 = 0; + a3 = 6; + a12 = 12; + a5 = 0; + return 21; + } else if(((!(a0==1)&&(((a3==5)&&((a18==1)&&(!(a15==1)&&(!(a4==1)&&(((!(a5==1)&&((a27==1)&&(input==4)))&&!(a6==1))&&(a12==10))))))&&(a22==1)))&&(a20==1))){ + a3 = 4; + a12 = 8; + a0 = 1; + a4 = 1; + a6 = 1; + a5 = 1; + a15 = 1; + return -1; + } else if((!(a0==1)&&((a15==1)&&((a12==8)&&(!(a5==1)&&(((a20==1)&&((input==1)&&((((((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8))&&!(a6==1))||(((((a22==1)&&(a18==1))&&!(a4==1))&&(a3==4))&&(a6==1)))||(((!(a4==1)&&(!(a18==1)&&(a22==1)))&&(a3==4))&&(a6==1)))))&&!(a27==1))))))){ + a3 = 4; + a18 = 1; + a6 = 0; + a22 = 1; + a4 = 0; + a27 = 1; + a5 = 1; + a12 = 12; + return -1; + } else if(((a20==1)&&(((a0==1)&&((a4==1)&&((a12==11)&&((a6==1)&&((!(a27==1)&&(((((a22==1)&&(a18==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==4))))&&(input==5)))&&!(a5==1))))))&&!(a15==1)))){ + a6 = 0; + a18 = 0; + a15 = 1; + a22 = 1; + a4 = 0; + a5 = 1; + a27 = 1; + a12 = 12; + a3 = 8; + return 26; + } else if((!(a18==1)&&(((a6==1)&&((a3==8)&&((((!(a4==1)&&((((input==2)&&(a0==1))&&!(a15==1))&&(a22==1)))&&(a20==1))&&(a12==12))&&!(a27==1))))&&!(a5==1)))){ + a27 = 1; + a12 = 8; + a4 = 1; + a5 = 1; + a18 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if(((!(a0==1)&&((a12==11)&&((!(a5==1)&&((a20==1)&&((a15==1)&&((((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1)))&&(input==2)))))&&(a27==1))))&&!(a4==1))){ + a0 = 1; + a22 = 0; + a6 = 1; + a12 = 12; + a18 = 0; + a4 = 1; + a3 = 5; + return 26; + } else if((((!(a18==1)&&((a12==10)&&((a4==1)&&(((a22==1)&&((((a5==1)&&((a6==1)&&(input==2)))&&!(a27==1))&&!(a0==1)))&&(a3==5)))))&&(a20==1))&&(a15==1))){ + a18 = 1; + a12 = 12; + a3 = 4; + return 21; + } else if(((a4==1)&&(((((a27==1)&&((a12==11)&&((((input==3)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1)))))&&(a5==1))&&(a20==1))))&&(a6==1))&&!(a0==1))&&(a15==1)))){ + a3 = 5; + a6 = 0; + a22 = 0; + a18 = 0; + a15 = 0; + a4 = 0; + a0 = 1; + return -1; + } else if(((a27==1)&&(((a20==1)&&(((a3==5)&&((a6==1)&&(((!(a15==1)&&(((a4==1)&&(input==5))&&(a18==1)))&&!(a5==1))&&(a0==1))))&&!(a22==1)))&&(a12==8)))){ + a22 = 1; + a3 = 4; + a15 = 1; + a5 = 1; + return -1; + } else if(((!(a15==1)&&((((((a22==1)&&((((((a18==1)||!(a18==1))&&(input==2))&&(a27==1))&&(a5==1))&&!(a0==1)))&&(a3==8))&&(a6==1))&&(a12==8))&&(a20==1)))&&(a4==1))){ + a12 = 10; + a5 = 0; + a6 = 0; + a22 = 0; + a18 = 0; + a3 = 5; + a0 = 1; + return 21; + } else if(((a12==10)&&(!(a4==1)&&((a20==1)&&((((a5==1)&&(!(a15==1)&&(((input==3)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1)))))&&(a27==1))))&&(a0==1))&&!(a6==1)))))){ + a18 = 1; + a4 = 1; + a15 = 1; + a6 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + return -1; + } else if(((((!(a27==1)&&((a5==1)&&((a12==9)&&((input==6)&&((((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1))))&&!(a6==1))||(((((a22==1)&&(a18==1))&&!(a4==1))&&(a3==4))&&(a6==1)))))))&&(a15==1))&&(a20==1))&&(a0==1))){ + a22 = 0; + a18 = 1; + a3 = 4; + a6 = 1; + a12 = 8; + a4 = 0; + return -1; + } else if((((((a6==1)&&(((a15==1)&&((a4==1)&&(((((a3==6)&&((a18==1)&&(a22==1)))||(((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a22==1)&&!(a18==1)))))&&(input==4))&&(a12==12))))&&(a5==1)))&&!(a0==1))&&(a27==1))&&(a20==1))){ + a0 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + return -1; + } else if(((((((((input==6)&&((!(a6==1)&&(((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8)))||((a6==1)&&((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1)))))))&&!(a5==1))&&(a0==1))&&(a15==1))&&(a20==1))&&(a12==9))&&(a27==1))){ + a12 = 10; + a22 = 1; + a4 = 0; + a18 = 0; + a6 = 0; + a3 = 8; + return 26; + } else if((!(a5==1)&&((((a6==1)&&(!(a0==1)&&((a20==1)&&(((a27==1)&&((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==1))&&(a12==11)))&&(a3==5)))))&&!(a15==1))&&(a4==1)))){ + a12 = 8; + a5 = 1; + a18 = 1; + a3 = 4; + a0 = 1; + a15 = 1; + a22 = 1; + return -1; + } else if(((a15==1)&&((a12==11)&&(((a6==1)&&((a5==1)&&(((!(a18==1)&&((a3==8)&&(((a4==1)&&(input==3))&&!(a22==1))))&&!(a27==1))&&(a20==1))))&&(a0==1))))){ + a12 = 8; + a15 = 0; + a3 = 5; + a18 = 1; + a6 = 0; + return 24; + } else if((((!(a0==1)&&((!(a6==1)&&(((((a20==1)&&(((a12==10)&&(input==6))&&!(a5==1)))&&(a22==1))&&(a4==1))&&(a3==4)))&&!(a27==1)))&&(a18==1))&&(a15==1))){ + a18 = 0; + a5 = 1; + a27 = 1; + a6 = 1; + a4 = 0; + a3 = 7; + a12 = 11; + a22 = 0; + return 26; + } else if((((!(a4==1)&&(!(a6==1)&&(!(a15==1)&&(!(a0==1)&&((((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==1))&&(a3==8))&&(a20==1))&&(a27==1))))))&&!(a5==1))&&(a12==8))){ + a6 = 1; + a0 = 1; + a22 = 1; + a18 = 1; + a12 = 11; + a3 = 5; + return 21; + } else if(((a20==1)&&(!(a0==1)&&((a27==1)&&((input==2)&&((((!(a4==1)&&((a12==11)&&(((!(a22==1)&&!(a18==1))&&!(a5==1))&&!(a15==1))))&&(a3==8))&&!(a6==1))||((a6==1)&&((a3==4)&&((((((a18==1)&&(a22==1))&&(a5==1))&&(a15==1))&&(a12==12))&&(a4==1)))))))))){ + a3 = 4; + a15 = 1; + a4 = 1; + a5 = 1; + a0 = 1; + a6 = 1; + a18 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if((!(a0==1)&&(((a3==7)&&(((((((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==4))&&(a20==1))&&(a12==9))&&!(a6==1))&&(a15==1))&&(a4==1))&&(a27==1)))&&(a5==1)))){ + a18 = 1; + a22 = 1; + a12 = 8; + a0 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if((((!(a6==1)&&(!(a27==1)&&((a20==1)&&(!(a5==1)&&(!(a4==1)&&((a0==1)&&((input==6)&&(((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==7))))))))))&&(a15==1))&&(a12==11))){ + a6 = 1; + a12 = 10; + a18 = 1; + a22 = 0; + a5 = 1; + a4 = 1; + a3 = 5; + a27 = 1; + return 26; + } else if(((!(a5==1)&&((((a0==1)&&((a12==12)&&((((a3==7)&&((input==1)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))&&(a27==1))&&(a20==1))))&&!(a4==1))&&(a6==1)))&&!(a15==1))){ + a12 = 10; + a18 = 1; + a22 = 1; + return 26; + } else if((((a0==1)&&((a22==1)&&(((!(a15==1)&&((a5==1)&&((a12==8)&&((a4==1)&&((a3==8)&&((input==6)&&((a18==1)||!(a18==1))))))))&&(a20==1))&&(a27==1))))&&(a6==1))){ + a15 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((((a27==1)&&((((a20==1)&&(!(a4==1)&&(((input==1)&&(((a3==7)&&((a22==1)&&!(a18==1)))||(((!(a18==1)&&!(a22==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))))&&(a15==1))))&&(a0==1))&&(a12==10)))&&(a6==1))&&!(a5==1))){ + a4 = 1; + a5 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + return -1; + } else if(((a18==1)&&(!(a22==1)&&(!(a4==1)&&(((a20==1)&&((a5==1)&&(!(a15==1)&&(((a3==6)&&((a0==1)&&(!(a6==1)&&(input==6))))&&(a27==1)))))&&(a12==9)))))){ + a27 = 0; + a15 = 1; + a6 = 1; + a3 = 7; + a12 = 8; + a18 = 0; + return 21; + } else if(((((a20==1)&&((a6==1)&&((((a12==10)&&(!(a27==1)&&(((((a18==1)&&(a22==1))&&(a3==7))||(((!(a22==1)&&(a18==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6))))&&(input==5))))&&(a4==1))&&!(a5==1))))&&(a15==1))&&!(a0==1))){ + if((a22==1)){ + a22 = 0; + a5 = 1; + a4 = 0; + a18 = 1; + a15 = 0; + a3 = 6; + a12 = 9; + }else{ + a12 = 9; + a0 = 1; + a5 = 1; + a22 = 0; + a18 = 1; + a3 = 7; + a27 = 1; + } + return 26; + } else if((((a4==1)&&((a5==1)&&(!(a15==1)&&(!(a27==1)&&((a12==8)&&((!(a6==1)&&(((((a18==1)&&(a22==1))&&(a3==5))||(((!(a22==1)&&(a18==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4))))&&(input==4)))&&!(a0==1)))))))&&(a20==1))){ + a3 = 6; + a18 = 1; + a4 = 0; + a22 = 1; + return -1; + } else if((!(a0==1)&&(((a15==1)&&(((a4==1)&&((a27==1)&&((a5==1)&&((a20==1)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==6))))))&&(a12==11)))&&(a6==1)))){ + a12 = 8; + a18 = 1; + a3 = 4; + a22 = 1; + a0 = 1; + return -1; + } else if(((a12==9)&&(!(a6==1)&&(((a27==1)&&(!(a4==1)&&(!(a5==1)&&((a0==1)&&(((a15==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==5)))&&(a3==8))))))&&(a20==1))))){ + a22 = 0; + a18 = 0; + a6 = 1; + a3 = 7; + a12 = 11; + return 21; + } else if(((((a5==1)&&(((a4==1)&&(((a20==1)&&(((((input==2)&&((a18==1)||!(a18==1)))&&(a0==1))&&!(a15==1))&&!(a27==1)))&&(a3==7)))&&!(a6==1)))&&!(a22==1))&&(a12==11))){ + a27 = 1; + a18 = 0; + a15 = 1; + a3 = 6; + return 26; + } else if((((((!(a0==1)&&((a5==1)&&(((a20==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a27==1)))&&(a3==5))))&&(a4==1))&&(a15==1))&&(a12==9))&&!(a6==1))){ + a18 = 1; + a22 = 1; + a5 = 0; + a12 = 11; + a6 = 1; + a4 = 0; + return 21; + } else if(((a12==10)&&((a4==1)&&((a3==8)&&((a20==1)&&((((((a6==1)&&((input==6)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&!(a27==1))&&!(a5==1))&&(a0==1))&&(a15==1))))))){ + a3 = 4; + a12 = 8; + a18 = 1; + a5 = 1; + a22 = 1; + a27 = 1; + return -1; + } else if((((a4==1)&&((a12==10)&&(!(a27==1)&&(((a3==6)&&(!(a5==1)&&(((a15==1)&&((a20==1)&&(((a18==1)||!(a18==1))&&(input==2))))&&!(a0==1))))&&!(a6==1)))))&&!(a22==1))){ + if((a20==1)){ + a6 = 1; + a18 = 0; + a12 = 11; + a15 = 0; + a27 = 1; + a0 = 1; + a3 = 5; + a5 = 1; + }else{ + a27 = 1; + a12 = 8; + a0 = 1; + a5 = 1; + a3 = 7; + a18 = 0; + } + return 21; + } else if((!(a27==1)&&((a12==12)&&(((a20==1)&&((((a6==1)&&((a3==4)&&((a4==1)&&((a15==1)&&(!(a5==1)&&(!(a18==1)&&(a22==1)))))))||((!(a6==1)&&(((!(a15==1)&&((!(a22==1)&&!(a18==1))&&(a5==1)))&&!(a4==1))&&(a3==8)))||(((a3==4)&&((a4==1)&&((a15==1)&&(!(a5==1)&&((a22==1)&&(a18==1))))))&&(a6==1))))&&(input==6)))&&(a0==1))))){ + a4 = 0; + a18 = 1; + a12 = 10; + a5 = 0; + a3 = 5; + a6 = 0; + a22 = 1; + a15 = 0; + return -1; + } else if(((a22==1)&&(((a18==1)&&(((a4==1)&&((((a3==6)&&((a15==1)&&(((input==3)&&(a12==8))&&(a5==1))))&&(a6==1))&&!(a0==1)))&&!(a27==1)))&&(a20==1)))){ + a3 = 8; + a27 = 1; + a0 = 1; + a6 = 0; + return -1; + } else if(((((a3==5)&&((!(a0==1)&&((!(a5==1)&&(((a27==1)&&((input==2)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&(a20==1)))&&(a15==1)))&&!(a4==1)))&&(a12==12))&&!(a6==1))){ + a22 = 0; + a18 = 0; + a3 = 4; + a0 = 1; + a5 = 1; + a12 = 8; + a6 = 1; + a4 = 1; + return -1; + } else if((!(a0==1)&&((!(a15==1)&&(((!(a4==1)&&((a27==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a20==1))&&(a6==1))))&&(a3==5))&&(a12==9)))&&(a5==1)))){ + a12 = 12; + a5 = 0; + a15 = 1; + a0 = 1; + a18 = 1; + a22 = 1; + a6 = 0; + a3 = 7; + a4 = 1; + return 26; + } else if(((a12==8)&&(!(a18==1)&&(((a27==1)&&(((a5==1)&&(!(a6==1)&&(!(a0==1)&&(((a4==1)&&((a15==1)&&(input==6)))&&(a20==1)))))&&(a3==6)))&&(a22==1))))){ + a6 = 1; + a4 = 0; + a12 = 10; + a18 = 1; + a3 = 4; + a0 = 1; + a27 = 0; + return -1; + } else if(((a12==10)&&(!(a6==1)&&(!(a4==1)&&((a15==1)&&(!(a27==1)&&((a0==1)&&(((a5==1)&&((a3==7)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==6))))&&(a20==1))))))))){ + a22 = 1; + a12 = 8; + a27 = 1; + a6 = 1; + a3 = 4; + a4 = 1; + a18 = 1; + return -1; + } else if((((a0==1)&&(!(a5==1)&&((a12==12)&&(((!(a4==1)&&((((input==1)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a20==1))&&(a3==8)))&&!(a15==1))&&(a6==1)))))&&(a27==1))){ + a4 = 1; + a5 = 1; + a6 = 0; + a3 = 4; + a12 = 11; + a22 = 0; + a18 = 0; + return -1; + } else if(((a0==1)&&(!(a6==1)&&((((((a27==1)&&(!(a5==1)&&(((((a18==1)||!(a18==1))&&(input==3))&&!(a22==1))&&(a3==7))))&&!(a4==1))&&(a20==1))&&!(a15==1))&&(a12==10))))){ + a15 = 1; + a22 = 1; + a3 = 4; + a6 = 1; + a18 = 1; + a12 = 8; + a4 = 1; + a5 = 1; + return -1; + } else if((((a0==1)&&((a20==1)&&(!(a15==1)&&((a12==12)&&(!(a27==1)&&((input==5)&&((((!(a4==1)&&(!(a18==1)&&(a22==1)))&&(a3==4))&&(a6==1))||(((((a4==1)&&(!(a22==1)&&!(a18==1)))&&(a3==8))&&!(a6==1))||(((((a22==1)&&(a18==1))&&!(a4==1))&&(a3==4))&&(a6==1))))))))))&&(a5==1))){ + a4 = 1; + a3 = 7; + a22 = 1; + a6 = 0; + a18 = 0; + a12 = 9; + return -1; + } else if(((!(a18==1)&&(((a3==5)&&((a4==1)&&(!(a27==1)&&((((a6==1)&&(((input==6)&&!(a22==1))&&(a15==1)))&&(a20==1))&&(a12==8)))))&&(a5==1)))&&(a0==1))){ + a3 = 4; + a18 = 1; + a27 = 1; + a22 = 1; + return -1; + } else if(((((a3==7)&&(((a27==1)&&(!(a5==1)&&(((a20==1)&&(!(a0==1)&&((a12==11)&&(((a18==1)||!(a18==1))&&(input==6)))))&&(a4==1))))&&!(a22==1)))&&!(a15==1))&&(a6==1))){ + a22 = 1; + a5 = 1; + a12 = 10; + a0 = 1; + a18 = 0; + return 26; + } else if((!(a15==1)&&((((a6==1)&&((((((!(a27==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a12==10))&&!(a4==1))&&(a20==1))&&!(a22==1))&&(a0==1)))&&!(a5==1))&&(a3==7)))){ + a6 = 0; + a3 = 8; + a18 = 0; + a15 = 1; + a12 = 8; + return 26; + } else if((((((a18==1)&&(((a20==1)&&((!(a27==1)&&((a3==6)&&((a4==1)&&((input==6)&&!(a6==1)))))&&(a22==1)))&&(a0==1)))&&(a15==1))&&(a12==11))&&!(a5==1))){ + a15 = 0; + a3 = 4; + a4 = 0; + a27 = 1; + a12 = 8; + a0 = 0; + a22 = 0; + return -1; + } else if(((((a0==1)&&(((((!(a4==1)&&((((a5==1)&&(input==3))&&(a18==1))&&!(a22==1)))&&!(a6==1))&&(a12==10))&&(a20==1))&&!(a27==1)))&&(a15==1))&&(a3==4))){ + a0 = 0; + a27 = 1; + a18 = 0; + a3 = 7; + return 26; + } else if((!(a5==1)&&(((a4==1)&&((a27==1)&&((((((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==5))&&(a15==1))&&(a20==1))&&!(a0==1))&&(a12==12))&&!(a6==1))))&&(a3==8)))){ + if((a27==1)){ + a0 = 1; + a3 = 4; + a18 = 0; + a4 = 0; + a22 = 0; + a15 = 0; + a12 = 11; + }else{ + a18 = 0; + a5 = 1; + a3 = 4; + a0 = 1; + a22 = 1; + a12 = 8; + } + return 26; + } else if(((((!(a15==1)&&((a22==1)&&((((((a12==10)&&((a4==1)&&(input==3)))&&(a5==1))&&(a0==1))&&(a27==1))&&(a3==5))))&&(a18==1))&&(a6==1))&&(a20==1))){ + a3 = 4; + a15 = 1; + a12 = 8; + return -1; + } else if(((((a4==1)&&((a0==1)&&(((!(a15==1)&&(((a3==7)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a5==1)))&&(a20==1)))&&(a6==1))&&(a12==11))))&&(a22==1))&&!(a27==1))){ + a18 = 1; + a3 = 4; + a27 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if(((a20==1)&&(!(a0==1)&&(((a12==10)&&((input==2)&&(((((a4==1)&&((((a22==1)&&!(a18==1))&&!(a5==1))&&(a15==1)))&&(a3==4))&&(a6==1))||((((!(a4==1)&&(((!(a22==1)&&!(a18==1))&&(a5==1))&&!(a15==1)))&&(a3==8))&&!(a6==1))||(((a3==4)&&(((a15==1)&&(((a22==1)&&(a18==1))&&!(a5==1)))&&(a4==1)))&&(a6==1))))))&&!(a27==1))))){ + if((a6==1)){ + a5 = 1; + a6 = 1; + a12 = 8; + a27 = 1; + a0 = 1; + a18 = 1; + a3 = 8; + a15 = 1; + a22 = 1; + a4 = 0; + }else{ + a15 = 1; + a0 = 1; + a12 = 8; + a4 = 0; + a6 = 1; + a5 = 1; + a22 = 0; + a3 = 4; + a18 = 1; + a27 = 1; + } + return 21; + } else if(((a3==8)&&(!(a6==1)&&(!(a22==1)&&((a5==1)&&((a20==1)&&(((a27==1)&&((!(a15==1)&&(!(a0==1)&&(((a18==1)||!(a18==1))&&(input==3))))&&(a4==1)))&&(a12==11)))))))){ + a12 = 8; + a0 = 1; + a3 = 4; + a6 = 1; + a22 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if(((((((((((input==1)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1)))))&&(a12==8))&&(a15==1))&&!(a5==1))&&!(a6==1))&&(a20==1))&&!(a27==1))&&!(a4==1))&&(a0==1))){ + a6 = 1; + a27 = 1; + a0 = 0; + a15 = 0; + a12 = 9; + a22 = 1; + a3 = 4; + a18 = 0; + return 21; + } else if(((a12==11)&&((((a3==4)&&((a5==1)&&(((a4==1)&&(((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==2))&&(a0==1))&&!(a15==1)))&&!(a27==1))))&&(a6==1))&&(a20==1)))){ + a4 = 0; + a27 = 1; + a3 = 5; + a18 = 1; + a6 = 0; + a0 = 0; + a22 = 0; + a12 = 10; + return -1; + } else if((!(a4==1)&&(!(a0==1)&&(!(a22==1)&&(((((!(a5==1)&&((((input==6)&&(a27==1))&&(a20==1))&&(a12==10)))&&(a3==4))&&!(a15==1))&&!(a6==1))&&!(a18==1)))))){ + a0 = 1; + a22 = 1; + a5 = 1; + a3 = 8; + return -1; + } else if((((a12==10)&&((!(a27==1)&&((((a20==1)&&(!(a5==1)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==1))))&&(a15==1))&&!(a4==1)))&&!(a6==1)))&&(a0==1))){ + a3 = 6; + a22 = 0; + a12 = 8; + a6 = 1; + a4 = 1; + a18 = 0; + return -1; + } else if((!(a15==1)&&((a12==12)&&(!(a18==1)&&(((a20==1)&&((a22==1)&&((((((input==5)&&(a0==1))&&!(a27==1))&&!(a5==1))&&(a6==1))&&(a4==1))))&&(a3==5)))))){ + a12 = 10; + a6 = 0; + a5 = 1; + a22 = 0; + a3 = 6; + a27 = 1; + a15 = 1; + return -1; + } else if(((a22==1)&&(!(a15==1)&&(!(a27==1)&&(((a5==1)&&((a3==8)&&((a0==1)&&((!(a4==1)&&(!(a6==1)&&((input==3)&&((a18==1)||!(a18==1)))))&&(a12==12)))))&&(a20==1)))))){ + a6 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a15 = 1; + a4 = 1; + a27 = 1; + return -1; + } else if(((a20==1)&&((!(a15==1)&&((a12==8)&&((!(a0==1)&&((((!(a4==1)&&((input==6)&&(a27==1)))&&(a3==6))&&!(a18==1))&&(a22==1)))&&(a5==1))))&&(a6==1)))){ + a4 = 1; + a0 = 1; + a3 = 7; + a12 = 10; + a22 = 0; + return 26; + } else if(((!(a18==1)&&((a27==1)&&((!(a5==1)&&((a20==1)&&(!(a15==1)&&((((a0==1)&&((a4==1)&&(input==6)))&&(a6==1))&&(a22==1)))))&&(a3==6))))&&(a12==11))){ + a3 = 5; + a6 = 0; + a27 = 0; + a15 = 1; + a18 = 1; + a4 = 0; + return 26; + } else if(((a27==1)&&((a0==1)&&((((a6==1)&&(!(a5==1)&&(((a12==11)&&((input==6)&&((((a22==1)&&(a18==1))&&(a3==5))||((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1)))))))&&(a15==1))))&&(a20==1))&&(a4==1))))){ + a5 = 1; + a15 = 0; + a18 = 1; + a12 = 10; + a3 = 7; + a22 = 0; + return 24; + } else if((((!(a0==1)&&((a12==8)&&((a15==1)&&((a4==1)&&(((a3==5)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==4))&&(a20==1)))&&!(a5==1))))))&&!(a6==1))&&!(a27==1))){ + a22 = 1; + a27 = 1; + a5 = 1; + a0 = 1; + a18 = 0; + return 24; + } else if(((a5==1)&&((a20==1)&&((a0==1)&&((a12==8)&&((((((a3==7)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==6)))&&(a6==1))&&!(a4==1))&&!(a27==1))&&!(a15==1))))))){ + a4 = 1; + a22 = 0; + a12 = 11; + a18 = 0; + a6 = 0; + a3 = 8; + return 21; + } else if(((a27==1)&&(((a4==1)&&(!(a5==1)&&(((a0==1)&&(((a15==1)&&(((((!(a22==1)&&(a18==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5)))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==3)))&&(a12==12)))&&(a20==1))))&&!(a6==1)))){ + a27 = 0; + a6 = 1; + a22 = 0; + a3 = 8; + a18 = 1; + return 26; + } else if(((!(a15==1)&&((((a3==5)&&(!(a5==1)&&(((a6==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==3))&&!(a0==1)))&&(a4==1))))&&(a20==1))&&(a27==1)))&&(a12==9))){ + a0 = 1; + a12 = 8; + a3 = 6; + a18 = 0; + a4 = 0; + a22 = 0; + a15 = 1; + a6 = 0; + return 26; + } else if(((a15==1)&&(((!(a27==1)&&((((a3==6)&&((((a0==1)&&((input==6)&&(a12==9)))&&(a20==1))&&!(a18==1)))&&(a22==1))&&(a5==1)))&&!(a4==1))&&(a6==1)))){ + a4 = 1; + a22 = 0; + a18 = 1; + a27 = 1; + a5 = 0; + a12 = 10; + return 26; + } else if(((!(a5==1)&&(((a3==5)&&((a6==1)&&(((a15==1)&&((((input==2)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&!(a4==1))&&(a27==1)))&&(a0==1))))&&(a20==1)))&&(a12==10))){ + a18 = 1; + a12 = 8; + a4 = 1; + a3 = 4; + a5 = 1; + a22 = 1; + return -1; + } else if(((a12==10)&&((((a22==1)&&(!(a6==1)&&((((a3==8)&&(!(a18==1)&&((a27==1)&&((input==5)&&(a4==1)))))&&(a0==1))&&(a20==1))))&&!(a15==1))&&(a5==1)))){ + a3 = 6; + a15 = 1; + a4 = 0; + return 24; + } else if(((((a4==1)&&((a12==12)&&(((!(a15==1)&&(!(a5==1)&&((input==6)&&((((a18==1)&&(a22==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5)))))))&&(a20==1))&&(a27==1))))&&!(a6==1))&&(a0==1))){ + if((a5==1)){ + a3 = 7; + a4 = 0; + a15 = 1; + a0 = 0; + a5 = 1; + a22 = 1; + a18 = 1; + }else{ + a18 = 0; + a6 = 1; + a12 = 11; + a5 = 1; + a4 = 0; + a3 = 6; + a22 = 1; + } + return 21; + } else if(((((a0==1)&&(!(a4==1)&&(!(a6==1)&&(!(a15==1)&&((a12==8)&&(((input==1)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6)))||((a3==6)&&((a22==1)&&!(a18==1)))))&&(a20==1)))))))&&(a27==1))&&(a5==1))){ + a22 = 1; + a4 = 1; + a3 = 4; + a15 = 1; + a18 = 1; + a6 = 1; + return -1; + } else if((!(a4==1)&&((a3==6)&&((a15==1)&&((a20==1)&&(((a12==8)&&(((a27==1)&&((!(a18==1)&&(!(a6==1)&&(input==4)))&&!(a5==1)))&&(a0==1)))&&(a22==1))))))){ + a22 = 0; + a6 = 1; + a3 = 4; + a12 = 10; + a4 = 1; + return 21; + } else if(((((!(a0==1)&&((((((a12==12)&&((a3==4)&&(((a18==1)||!(a18==1))&&(input==4))))&&(a5==1))&&(a6==1))&&!(a22==1))&&(a20==1)))&&!(a4==1))&&!(a15==1))&&(a27==1))){ + a6 = 0; + a15 = 1; + a4 = 1; + a0 = 1; + a18 = 0; + a12 = 8; + return -1; + } else if(((a5==1)&&(!(a0==1)&&(((a20==1)&&(((!(a6==1)&&(((((input==3)&&(a3==7))&&(a12==8))&&!(a27==1))&&(a18==1)))&&(a4==1))&&(a15==1)))&&!(a22==1))))){ + a0 = 1; + a3 = 6; + a18 = 0; + a27 = 1; + return 21; + } else if((!(a0==1)&&((a4==1)&&((a3==5)&&(((a15==1)&&(((a6==1)&&((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==6))&&(a20==1))&&(a5==1)))&&!(a27==1)))&&(a12==8)))))){ + a6 = 0; + a18 = 1; + a0 = 1; + a22 = 1; + a27 = 1; + return 26; + } else if(((((a0==1)&&((!(a15==1)&&(((a20==1)&&(((((a3==6)&&(!(a18==1)&&(a22==1)))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1)))))&&(input==4))&&(a5==1)))&&(a27==1)))&&(a12==12)))&&(a4==1))&&(a6==1))){ + a22 = 0; + a6 = 0; + a3 = 4; + a15 = 1; + a18 = 0; + a4 = 0; + a12 = 10; + return 21; + } else if((((((a6==1)&&((!(a27==1)&&(((!(a15==1)&&((input==6)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&!(a0==1))&&(a20==1)))&&(a12==10)))&&!(a5==1))&&(a4==1))&&(a3==7))){ + a4 = 0; + a27 = 1; + a0 = 1; + a22 = 1; + a15 = 1; + a12 = 8; + a3 = 8; + a5 = 1; + a18 = 0; + return -1; + } else if((((((a4==1)&&((!(a5==1)&&((a6==1)&&((a15==1)&&((input==6)&&(((a3==6)&&((a18==1)&&(a22==1)))||(((a3==5)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==5))))))))&&(a0==1)))&&(a20==1))&&(a27==1))&&(a12==10))){ + if((a20==1)){ + a22 = 1; + a5 = 1; + a3 = 4; + a0 = 0; + a18 = 0; + }else{ + a18 = 0; + a6 = 0; + a5 = 1; + a22 = 1; + a3 = 7; + } + return -1; + } else if((!(a5==1)&&(((!(a0==1)&&(((a27==1)&&(((input==3)&&(((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1))))&&(a20==1)))&&(a15==1)))&&!(a4==1))&&(a12==10)))){ + a4 = 1; + a5 = 1; + a3 = 5; + a15 = 0; + a6 = 0; + a18 = 0; + a22 = 1; + a0 = 1; + return 24; + } else if((!(a18==1)&&(((((!(a22==1)&&((a12==10)&&(!(a15==1)&&(!(a6==1)&&(((input==3)&&(a5==1))&&(a3==7))))))&&!(a27==1))&&(a20==1))&&!(a0==1))&&(a4==1)))){ + a12 = 8; + a0 = 1; + a27 = 1; + a22 = 1; + a3 = 6; + a18 = 1; + a4 = 0; + a15 = 1; + a6 = 1; + return -1; + } else if((((!(a27==1)&&((((((a5==1)&&(((input==4)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&!(a6==1)))&&!(a0==1))&&(a12==9))&&(a15==1))&&(a3==5)))&&(a20==1))&&!(a4==1))){ + if((a3==5)){ + a18 = 1; + a22 = 0; + a12 = 8; + a6 = 1; + a0 = 1; + a4 = 1; + a27 = 1; + a3 = 4; + }else{ + a12 = 8; + a0 = 1; + a27 = 1; + a4 = 1; + a22 = 0; + a18 = 1; + a6 = 1; + } + return -1; + } else if(((((a5==1)&&((a3==5)&&(((a20==1)&&(((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==6))&&!(a6==1))&&!(a27==1))&&(a15==1)))&&(a0==1))))&&(a12==8))&&!(a4==1))){ + a0 = 0; + a4 = 1; + a27 = 1; + a18 = 1; + a3 = 8; + a22 = 0; + a12 = 10; + return 26; + } else if((((a12==12)&&(!(a6==1)&&((a27==1)&&(!(a5==1)&&(!(a22==1)&&(!(a4==1)&&(((a18==1)&&(((input==6)&&(a20==1))&&!(a0==1)))&&(a15==1))))))))&&(a3==8))){ + a12 = 8; + a3 = 4; + a4 = 1; + a22 = 1; + a15 = 0; + a27 = 0; + return -1; + } else if((!(a18==1)&&((((((a12==11)&&((((((a6==1)&&(input==2))&&(a20==1))&&(a22==1))&&!(a4==1))&&(a3==4)))&&(a27==1))&&(a15==1))&&(a0==1))&&!(a5==1)))){ + a22 = 0; + a6 = 0; + a15 = 0; + a3 = 6; + a27 = 0; + a5 = 1; + return 26; + } else if(((a5==1)&&(((a0==1)&&(((a12==11)&&(((a20==1)&&(!(a4==1)&&(((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1))))||((a3==7)&&(!(a18==1)&&(a22==1))))&&(input==3))))&&(a27==1)))&&!(a15==1)))&&!(a6==1)))){ + a27 = 0; + a22 = 1; + a6 = 1; + a3 = 4; + a4 = 1; + a18 = 0; + return 24; + } else if(((((((a0==1)&&((a22==1)&&(!(a18==1)&&((!(a27==1)&&((!(a6==1)&&(input==1))&&(a12==11)))&&(a3==7)))))&&(a5==1))&&(a20==1))&&!(a15==1))&&!(a4==1))){ + a22 = 0; + a5 = 0; + a27 = 1; + a18 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if((((!(a0==1)&&(!(a6==1)&&((((a22==1)&&(!(a27==1)&&((!(a4==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a12==9))))&&(a20==1))&&!(a5==1))))&&!(a15==1))&&(a3==4))){ + a27 = 1; + a4 = 1; + a3 = 8; + a15 = 1; + a0 = 1; + a12 = 8; + a18 = 0; + a6 = 1; + a5 = 1; + return 26; + } else if(((((((a20==1)&&((a12==11)&&((a22==1)&&((a15==1)&&(((a18==1)&&(!(a27==1)&&(input==6)))&&(a3==7))))))&&!(a4==1))&&(a0==1))&&(a5==1))&&(a6==1))){ + a22 = 0; + a12 = 9; + a18 = 0; + return 24; + } else if((!(a22==1)&&(((a12==10)&&(!(a15==1)&&(((a20==1)&&((((a3==7)&&(((input==4)&&((a18==1)||!(a18==1)))&&(a5==1)))&&(a6==1))&&!(a27==1)))&&!(a4==1))))&&!(a0==1)))){ + a15 = 1; + a12 = 8; + a4 = 1; + a27 = 1; + a0 = 1; + a3 = 4; + a6 = 0; + a18 = 1; + return -1; + } else if((((a0==1)&&(!(a5==1)&&(!(a4==1)&&(((a27==1)&&((!(a15==1)&&((input==6)&&(((!(a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8))))))&&(a20==1)))&&(a12==9)))))&&!(a6==1))){ + a22 = 1; + a15 = 1; + a4 = 1; + a5 = 1; + a6 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + return -1; + } else if(((!(a0==1)&&((a15==1)&&(((!(a6==1)&&((a4==1)&&((((input==6)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&(a5==1))&&(a20==1))))&&(a3==6))&&(a27==1))))&&(a12==9))){ + a22 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + a0 = 1; + a6 = 1; + return -1; + } else if((((a15==1)&&(((a27==1)&&(!(a5==1)&&((a22==1)&&((a4==1)&&(((a18==1)&&(((a20==1)&&(input==3))&&(a12==10)))&&!(a0==1))))))&&(a6==1)))&&(a3==7))){ + a0 = 1; + a12 = 8; + a3 = 4; + a5 = 1; + return -1; + } else if(((!(a27==1)&&(!(a0==1)&&((a3==8)&&((a20==1)&&(((((a5==1)&&(((input==3)&&(a22==1))&&(a15==1)))&&(a12==8))&&!(a18==1))&&(a4==1))))))&&(a6==1))){ + if((a4==1)){ + a27 = 1; + a6 = 0; + a0 = 1; + a3 = 4; + }else{ + a3 = 5; + a0 = 1; + a22 = 0; + a12 = 11; + a15 = 0; + } + return 21; + } else if(((((a20==1)&&(!(a6==1)&&((!(a5==1)&&(((a27==1)&&((!(a0==1)&&(!(a4==1)&&(input==5)))&&!(a22==1)))&&!(a15==1)))&&(a12==12))))&&!(a18==1))&&(a3==6))){ + a3 = 7; + a15 = 1; + a5 = 1; + a6 = 1; + a4 = 1; + a12 = 8; + a0 = 1; + return 21; + } else if(((a6==1)&&((((((a15==1)&&((a4==1)&&((a0==1)&&((((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==1)))))&&(a20==1))&&(a12==10))&&!(a27==1))&&(a5==1)))){ + if((a12==12)){ + a27 = 1; + a22 = 0; + a18 = 1; + a3 = 7; + a15 = 0; + a0 = 0; + a5 = 0; + a12 = 8; + }else{ + a3 = 6; + a12 = 11; + a18 = 0; + a27 = 1; + a22 = 0; + } + return 21; + } else if(((a15==1)&&((a20==1)&&((!(a0==1)&&(((a6==1)&&((a3==5)&&(((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==1))&&!(a4==1))&&!(a5==1))))&&!(a27==1)))&&(a12==9))))){ + a6 = 0; + a3 = 4; + a0 = 1; + a12 = 11; + a18 = 1; + a4 = 1; + a22 = 1; + return -1; + } else if((((a12==12)&&((a4==1)&&((a20==1)&&(((!(a6==1)&&(((input==6)&&(((a3==7)&&((a22==1)&&(a18==1)))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))))&&!(a0==1)))&&!(a5==1))&&(a27==1)))))&&!(a15==1))){ + a18 = 0; + a4 = 0; + a22 = 1; + a15 = 1; + a12 = 10; + a6 = 1; + a0 = 1; + a3 = 7; + a5 = 1; + return 21; + } else if(((((((a12==12)&&((a27==1)&&((a0==1)&&(!(a4==1)&&((input==5)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1)))))))))&&!(a5==1))&&(a6==1))&&!(a15==1))&&(a20==1))){ + a22 = 1; + a4 = 1; + a15 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if(((a27==1)&&((a20==1)&&(((a12==9)&&((((a15==1)&&((input==5)&&((((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))||(!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1)))))||(((a3==4)&&((a22==1)&&!(a18==1)))&&!(a6==1)))))&&!(a5==1))&&(a4==1)))&&(a0==1))))){ + a22 = 1; + a18 = 0; + a12 = 11; + a5 = 1; + a6 = 1; + a3 = 8; + return 26; + } else if(((a27==1)&&((a4==1)&&(((a12==12)&&((a20==1)&&((!(a15==1)&&((a3==6)&&(((input==2)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&!(a5==1))))&&(a6==1))))&&(a0==1))))){ + a18 = 1; + a12 = 10; + a5 = 1; + a15 = 1; + a6 = 0; + a22 = 0; + a4 = 0; + a3 = 8; + return 26; + } else if(((((a12==11)&&(!(a0==1)&&((a20==1)&&((!(a5==1)&&((a6==1)&&((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==2))&&!(a4==1))))&&(a3==5)))))&&!(a27==1))&&(a15==1))){ + a0 = 1; + a12 = 8; + a22 = 0; + a5 = 1; + a18 = 0; + a27 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if(((((a6==1)&&(((!(a4==1)&&((!(a15==1)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==6)))&&!(a0==1)))&&(a20==1))&&!(a5==1)))&&(a27==1))&&(a12==10))){ + a22 = 0; + a3 = 5; + a4 = 1; + a12 = 11; + a18 = 0; + a0 = 1; + return 26; + } else if(((a15==1)&&(!(a5==1)&&((a6==1)&&((!(a18==1)&&(((((((input==5)&&!(a27==1))&&(a3==6))&&(a12==11))&&!(a4==1))&&!(a0==1))&&(a20==1)))&&(a22==1)))))){ + a18 = 1; + a5 = 1; + a12 = 10; + return 26; + } else if((((a20==1)&&(!(a22==1)&&(!(a0==1)&&((a6==1)&&(!(a18==1)&&(((!(a4==1)&&((a5==1)&&((a12==11)&&(input==2))))&&(a3==7))&&(a15==1)))))))&&(a27==1))){ + a12 = 12; + a6 = 0; + a18 = 1; + a0 = 1; + a3 = 4; + return 26; + } else if((((a4==1)&&(((a20==1)&&((a6==1)&&((a15==1)&&(!(a0==1)&&(((input==6)&&((((a18==1)&&(a22==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5)))))&&(a12==12))))))&&(a27==1)))&&(a5==1))){ + a18 = 1; + a27 = 0; + a15 = 0; + a12 = 10; + a5 = 0; + a22 = 0; + a0 = 1; + a3 = 4; + return 21; + } else if(((!(a5==1)&&(!(a6==1)&&((a0==1)&&(((a12==9)&&(!(a27==1)&&(((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==5))&&(a3==5))&&(a15==1))))&&!(a4==1)))))&&(a20==1))){ + a6 = 1; + a4 = 1; + a5 = 1; + a27 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + a22 = 1; + return -1; + } else if(((((a12==10)&&((a0==1)&&((a5==1)&&((a4==1)&&((a20==1)&&((!(a15==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==4)))&&(a3==7)))))))&&(a27==1))&&(a6==1))){ + a12 = 8; + a18 = 1; + a15 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if(((!(a4==1)&&((a20==1)&&(((a6==1)&&((((((input==4)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&(a0==1))&&!(a27==1))&&!(a5==1))&&!(a15==1)))&&(a3==7))))&&(a12==11))){ + a6 = 0; + a27 = 1; + a18 = 0; + a4 = 1; + a22 = 0; + a15 = 1; + return 26; + } else if(((((a4==1)&&(((a3==7)&&(((((a18==1)&&((a15==1)&&((input==5)&&(a27==1))))&&(a12==10))&&(a5==1))&&!(a0==1)))&&(a20==1)))&&(a6==1))&&(a22==1))){ + a22 = 0; + a6 = 0; + a4 = 0; + a0 = 1; + a27 = 0; + a12 = 8; + a15 = 0; + return 26; + } else if(((a27==1)&&(!(a0==1)&&(((a3==5)&&((((a4==1)&&((a20==1)&&(!(a15==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a6==1)))))&&!(a5==1))&&(a12==8)))&&(a22==1))))){ + a15 = 1; + a4 = 0; + a6 = 0; + a3 = 7; + a0 = 1; + a12 = 12; + a18 = 1; + return -1; + } else if(((((a0==1)&&((!(a5==1)&&((((a12==10)&&(((((a22==1)&&(a18==1))&&(a3==7))||(((!(a22==1)&&(a18==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6))))&&(input==3)))&&!(a27==1))&&(a15==1)))&&!(a6==1)))&&(a4==1))&&(a20==1))){ + a4 = 0; + a27 = 1; + a3 = 6; + a18 = 0; + a0 = 0; + a22 = 0; + return 21; + } else if((((a0==1)&&(((a3==8)&&((a12==12)&&((a4==1)&&((((a5==1)&&(!(a27==1)&&(((a18==1)||!(a18==1))&&(input==1))))&&(a6==1))&&!(a15==1)))))&&!(a22==1)))&&(a20==1))){ + a3 = 4; + a12 = 8; + a15 = 1; + a22 = 1; + a18 = 1; + a27 = 1; + return -1; + } else if((!(a5==1)&&((!(a0==1)&&((a6==1)&&(((a27==1)&&(((a12==11)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==6)))&&!(a4==1)))&&!(a15==1))))&&(a20==1)))){ + a3 = 4; + a12 = 8; + a5 = 1; + a4 = 1; + a15 = 1; + a0 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((!(a18==1)&&((!(a15==1)&&((a12==9)&&(((a3==7)&&((a27==1)&&((a4==1)&&(((input==5)&&!(a6==1))&&(a20==1)))))&&(a5==1))))&&(a22==1)))&&(a0==1))){ + a5 = 0; + a3 = 8; + a4 = 0; + a12 = 12; + a22 = 0; + return 21; + } else if(((a20==1)&&((((a15==1)&&(!(a5==1)&&(((!(a6==1)&&((a4==1)&&((input==4)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))))&&(a12==10))&&(a3==4))))&&!(a0==1))&&!(a27==1)))){ + a12 = 8; + a27 = 1; + a22 = 1; + a0 = 1; + a18 = 1; + a5 = 1; + a3 = 7; + return -1; + } else if(((a12==12)&&(((a20==1)&&((a4==1)&&(!(a5==1)&&(((a27==1)&&((!(a6==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a3==4)))&&!(a22==1)))&&!(a0==1)))))&&(a15==1)))){ + a12 = 8; + a4 = 0; + a18 = 0; + a27 = 0; + a15 = 0; + a3 = 5; + return 26; + } else if(((a5==1)&&((((a3==6)&&((a18==1)&&(((a6==1)&&(((((a4==1)&&(input==5))&&(a20==1))&&(a0==1))&&!(a27==1)))&&(a22==1))))&&(a15==1))&&(a12==12)))){ + a15 = 0; + a3 = 5; + a18 = 0; + a12 = 10; + a4 = 0; + return -1; + } else if(((a0==1)&&(((a12==8)&&((a20==1)&&((((a5==1)&&(((input==3)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1)))))&&(a27==1)))&&!(a15==1))&&(a6==1))))&&(a4==1)))){ + a22 = 1; + a5 = 0; + a15 = 1; + a3 = 4; + a18 = 1; + return 21; + } else if(((a5==1)&&(!(a0==1)&&((((a3==7)&&(((!(a6==1)&&(!(a15==1)&&((input==3)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&(a20==1))&&(a12==10)))&&!(a27==1))&&(a4==1))))){ + a0 = 1; + a22 = 0; + a18 = 1; + a12 = 8; + a3 = 8; + a15 = 1; + a27 = 1; + return -1; + } else if(((a20==1)&&((a4==1)&&(((a0==1)&&((a6==1)&&((!(a5==1)&&((((input==1)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a3==8))&&(a27==1)))&&(a12==8))))&&!(a15==1))))){ + a15 = 1; + a22 = 1; + a18 = 1; + a5 = 1; + a3 = 4; + return -1; + } else if(((a27==1)&&((!(a22==1)&&(!(a18==1)&&(((!(a4==1)&&((a12==9)&&(!(a15==1)&&(((input==1)&&(a3==6))&&(a20==1)))))&&(a6==1))&&!(a0==1))))&&!(a5==1)))){ + a0 = 1; + a5 = 1; + a3 = 4; + a6 = 0; + a18 = 1; + a27 = 0; + a22 = 1; + return 26; + } else if(((((((((((a4==1)&&(((a18==1)&&(input==3))&&(a27==1)))&&!(a0==1))&&!(a6==1))&&(a20==1))&&(a15==1))&&!(a5==1))&&(a12==9))&&!(a22==1))&&(a3==7))){ + a5 = 1; + a12 = 10; + a0 = 1; + a3 = 6; + a18 = 0; + return -1; + } else if(((a6==1)&&((((a0==1)&&((((a3==4)&&(!(a5==1)&&((a20==1)&&(((a4==1)&&(input==4))&&(a18==1)))))&&(a27==1))&&(a12==9)))&&(a22==1))&&!(a15==1)))){ + a6 = 0; + a27 = 0; + a12 = 8; + a3 = 6; + return 26; + } else if(((a15==1)&&((a6==1)&&(!(a22==1)&&((a0==1)&&(((a5==1)&&((a3==6)&&(((((input==3)&&((a18==1)||!(a18==1)))&&(a12==10))&&!(a4==1))&&(a20==1))))&&!(a27==1))))))){ + if((a15==1)){ + a22 = 1; + a0 = 0; + a6 = 0; + a4 = 1; + a5 = 0; + a27 = 1; + a18 = 0; + a12 = 8; + a3 = 8; + }else{ + a12 = 11; + a27 = 1; + a18 = 1; + a4 = 1; + a3 = 4; + a6 = 0; + } + return 21; + } else if((!(a4==1)&&((a0==1)&&((((a27==1)&&((((a3==6)&&(((a20==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a12==10)))&&!(a5==1))&&!(a6==1)))&&(a22==1))&&!(a15==1))))){ + if((a22==1)){ + a3 = 4; + a6 = 1; + a0 = 0; + a15 = 1; + a18 = 0; + }else{ + a3 = 4; + a6 = 1; + a22 = 0; + a18 = 1; + a4 = 1; + } + return -1; + } else if(((!(a22==1)&&(!(a5==1)&&(!(a15==1)&&((a18==1)&&((a20==1)&&(!(a27==1)&&((!(a0==1)&&(((a3==7)&&(input==4))&&!(a6==1)))&&!(a4==1))))))))&&(a12==11))){ + a4 = 1; + a18 = 0; + a5 = 1; + a3 = 8; + a27 = 1; + a0 = 1; + a15 = 1; + a12 = 8; + a6 = 1; + a22 = 1; + return -1; + } else if(((((a12==11)&&((((!(a15==1)&&(((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==1))&&!(a0==1))&&(a20==1)))&&!(a4==1))&&(a3==8))&&!(a6==1)))&&(a27==1))&&!(a5==1))){ + a22 = 0; + a4 = 1; + a15 = 1; + a0 = 1; + a27 = 0; + a3 = 4; + a18 = 1; + return 26; + } else if(((((a12==8)&&(((!(a5==1)&&((((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==5))&&!(a0==1))&&(a3==5))&&!(a4==1)))&&(a27==1))&&(a15==1)))&&(a6==1))&&(a20==1))){ + a5 = 1; + a3 = 4; + a0 = 1; + a22 = 0; + a18 = 0; + a12 = 12; + return 21; + } else if(((((((((((a3==8)&&((a12==11)&&((a6==1)&&(input==6))))&&!(a5==1))&&!(a0==1))&&!(a27==1))&&!(a22==1))&&(a18==1))&&(a15==1))&&(a20==1))&&!(a4==1))){ + a27 = 1; + a12 = 8; + a6 = 0; + a4 = 1; + a5 = 1; + a0 = 1; + return -1; + } else if(((((((((a4==1)&&((a0==1)&&((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==5))&&(a12==12))))&&(a3==5))&&(a15==1))&&(a5==1))&&(a20==1))&&!(a27==1))&&!(a6==1))){ + a22 = 1; + a6 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + a27 = 1; + return -1; + } else if((((((a6==1)&&((((a15==1)&&((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==4))&&(a12==10))&&(a5==1)))&&(a4==1))&&(a27==1)))&&(a20==1))&&(a3==8))&&!(a0==1))){ + a6 = 0; + a27 = 0; + a0 = 1; + a3 = 5; + a18 = 1; + a22 = 0; + a12 = 12; + return 21; + } else if((((a6==1)&&((((a15==1)&&((a20==1)&&(((a4==1)&&((((a3==6)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5))))&&(input==4)))&&(a12==12))))&&!(a5==1))&&!(a0==1)))&&(a27==1))){ + a3 = 8; + a22 = 0; + a18 = 0; + a15 = 0; + a5 = 1; + return 21; + } else if(((!(a27==1)&&((a3==4)&&(((a20==1)&&((((((input==4)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&!(a15==1))&&!(a0==1))&&(a4==1))&&!(a5==1)))&&(a6==1))))&&(a12==8))){ + if((a20==1)){ + a6 = 0; + a15 = 1; + a3 = 7; + a12 = 9; + a22 = 1; + a0 = 1; + a18 = 1; + }else{ + a15 = 1; + a22 = 0; + a4 = 0; + a27 = 1; + a5 = 1; + a0 = 1; + a3 = 7; + a18 = 1; + } + return -1; + } else if(((a18==1)&&((!(a27==1)&&((a5==1)&&(((!(a4==1)&&(((((input==6)&&!(a22==1))&&(a12==9))&&!(a15==1))&&!(a0==1)))&&(a3==4))&&(a6==1))))&&(a20==1)))){ + a5 = 0; + a15 = 1; + a3 = 6; + a6 = 0; + return -1; + } else if((!(a5==1)&&((((a20==1)&&((((((((input==2)&&!(a4==1))&&(a27==1))&&!(a6==1))&&(a3==8))&&!(a0==1))&&!(a18==1))&&!(a22==1)))&&(a15==1))&&(a12==12)))){ + a5 = 1; + a12 = 8; + a22 = 1; + a18 = 1; + a3 = 4; + a0 = 1; + a4 = 1; + a6 = 1; + return -1; + } else if(((a3==6)&&((((a18==1)&&((((a0==1)&&((a27==1)&&(((a5==1)&&(!(a4==1)&&(input==4)))&&(a22==1))))&&(a12==9))&&(a20==1)))&&(a15==1))&&!(a6==1)))){ + if((a20==1)){ + a4 = 1; + a12 = 10; + a18 = 0; + a3 = 4; + a0 = 0; + a5 = 0; + }else{ + a0 = 0; + a15 = 0; + a18 = 0; + a3 = 7; + a12 = 10; + a22 = 0; + } + return 24; + } else if(((a20==1)&&(!(a6==1)&&((a12==8)&&((!(a5==1)&&((a3==4)&&(!(a4==1)&&(!(a27==1)&&(((input==1)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&!(a15==1))))))&&(a0==1)))))){ + a0 = 0; + a22 = 0; + a12 = 10; + a18 = 1; + a3 = 5; + a27 = 1; + a15 = 1; + a4 = 1; + return 26; + } else if(((a20==1)&&(((((a12==9)&&((!(a4==1)&&((a15==1)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==5))))&&(a27==1)))&&!(a0==1))&&(a6==1))&&!(a5==1)))){ + a18 = 1; + a3 = 4; + a22 = 1; + a6 = 0; + a15 = 0; + a0 = 1; + a12 = 10; + return 26; + } else if((((((a22==1)&&(((a5==1)&&(((!(a0==1)&&(((a15==1)&&(input==4))&&(a6==1)))&&!(a18==1))&&(a20==1)))&&(a4==1)))&&(a3==4))&&(a27==1))&&(a12==10))){ + a6 = 0; + a0 = 1; + a12 = 8; + a3 = 8; + a5 = 0; + return 26; + } else if((((a4==1)&&(((a12==10)&&((((a20==1)&&(((input==6)&&(((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1)))))&&!(a0==1)))&&!(a5==1))&&(a15==1)))&&(a27==1)))&&!(a6==1))){ + a0 = 1; + a6 = 1; + a22 = 0; + a18 = 1; + a3 = 4; + a4 = 0; + return 26; + } else if((!(a18==1)&&((a20==1)&&((((a3==7)&&(!(a6==1)&&((((a4==1)&&(((a0==1)&&(input==5))&&!(a22==1)))&&(a27==1))&&!(a15==1))))&&(a5==1))&&(a12==9))))){ + a12 = 8; + a3 = 4; + a15 = 1; + a18 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if((((a0==1)&&((a20==1)&&(((((!(a4==1)&&(!(a22==1)&&((!(a18==1)&&(input==6))&&!(a6==1))))&&(a12==9))&&(a3==8))&&!(a5==1))&&!(a15==1))))&&!(a27==1))){ + a3 = 4; + a22 = 1; + a12 = 8; + a18 = 1; + a6 = 1; + a15 = 1; + a27 = 1; + a5 = 1; + a4 = 1; + return -1; + } else if((!(a22==1)&&((a5==1)&&((a4==1)&&(((a15==1)&&((a20==1)&&((((a3==6)&&(((a0==1)&&(input==3))&&!(a18==1)))&&!(a27==1))&&(a6==1))))&&(a12==12)))))){ + a22 = 1; + a3 = 7; + a12 = 11; + a4 = 0; + a27 = 1; + return 26; + } else if((!(a27==1)&&((a15==1)&&((a12==12)&&((a0==1)&&(((a20==1)&&(((input==3)&&((((a3==4)&&(!(a18==1)&&(a22==1)))&&!(a6==1))||(((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||(!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1)))))))&&!(a5==1)))&&(a4==1))))))){ + if((a27==1)){ + a3 = 7; + a0 = 0; + a12 = 9; + a22 = 0; + a27 = 1; + a18 = 0; + a6 = 1; + }else{ + a15 = 0; + a27 = 1; + a12 = 11; + a4 = 0; + a18 = 1; + a22 = 0; + a3 = 5; + a6 = 1; + } + return 21; + } else if(((!(a27==1)&&((((((a3==7)&&((((a0==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&!(a4==1))&&(a22==1)))&&(a6==1))&&(a5==1))&&(a15==1))&&(a20==1)))&&(a12==10))){ + a4 = 1; + a12 = 8; + a27 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((((((a15==1)&&(!(a22==1)&&((a12==8)&&((!(a18==1)&&(!(a6==1)&&(((input==3)&&(a3==6))&&!(a0==1))))&&!(a27==1)))))&&(a5==1))&&(a20==1))&&(a4==1))){ + if((a5==1)){ + a27 = 1; + a0 = 1; + a3 = 7; + a18 = 1; + a6 = 1; + }else{ + a6 = 1; + a4 = 0; + a22 = 1; + a12 = 11; + } + return 21; + } else if(((((a4==1)&&(((a3==7)&&((a0==1)&&((a20==1)&&((a5==1)&&((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==6))&&!(a27==1))))))&&(a12==9)))&&(a15==1))&&!(a6==1))){ + a18 = 1; + a12 = 8; + a6 = 1; + a22 = 1; + a3 = 4; + a27 = 1; + return -1; + } else if((((((a6==1)&&((((a4==1)&&((a15==1)&&(((input==5)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a12==9))))&&!(a0==1))&&!(a5==1)))&&(a20==1))&&(a3==4))&&(a27==1))){ + a18 = 1; + a5 = 1; + a0 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if(((a6==1)&&(!(a0==1)&&(((a5==1)&&((((a20==1)&&((!(a4==1)&&((input==1)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))&&(a3==7)))&&(a27==1))&&(a12==8)))&&(a15==1))))){ + a12 = 10; + a22 = 1; + a4 = 1; + a0 = 1; + a3 = 4; + a15 = 0; + a18 = 0; + return -1; + } else if(((((((!(a4==1)&&((((a22==1)&&(!(a27==1)&&((input==1)&&((a18==1)||!(a18==1)))))&&(a3==4))&&(a20==1)))&&(a0==1))&&!(a5==1))&&!(a6==1))&&!(a15==1))&&(a12==10))){ + a3 = 6; + a6 = 1; + a27 = 1; + a18 = 1; + a5 = 1; + a12 = 11; + a22 = 0; + a0 = 0; + return 21; + } else if(((a5==1)&&((((a0==1)&&((a20==1)&&((a3==6)&&((((((input==4)&&!(a15==1))&&(a4==1))&&!(a22==1))&&(a12==10))&&(a27==1)))))&&!(a6==1))&&(a18==1)))){ + a4 = 0; + a15 = 1; + a5 = 0; + a22 = 1; + return 21; + } else if(((!(a27==1)&&(!(a4==1)&&((a6==1)&&(((a20==1)&&(!(a18==1)&&((((a5==1)&&((input==3)&&(a3==8)))&&!(a0==1))&&(a12==11))))&&(a15==1)))))&&!(a22==1))){ + a12 = 8; + a4 = 1; + a0 = 1; + a27 = 1; + a3 = 5; + return 21; + } else if(((((!(a27==1)&&(((((a12==10)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==4)))&&(a0==1))&&(a6==1))&&!(a5==1)))&&!(a4==1))&&!(a15==1))&&(a20==1))){ + a22 = 0; + a3 = 7; + a0 = 0; + a18 = 0; + a6 = 0; + a12 = 11; + a27 = 1; + a4 = 1; + a5 = 1; + return 26; + } else if(((a20==1)&&(((((a3==8)&&((a12==11)&&((a5==1)&&((!(a6==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&!(a4==1)))&&(a0==1)))))&&!(a27==1))&&!(a22==1))&&!(a15==1)))){ + a18 = 0; + a15 = 1; + a12 = 12; + a3 = 6; + a27 = 1; + a22 = 1; + return 21; + } return calculate_output64(input); + } + + int calculate_output64(int input) { + if(((!(a18==1)&&(((a20==1)&&((a3==5)&&((a12==10)&&(((((a6==1)&&((input==4)&&(a22==1)))&&(a5==1))&&(a4==1))&&!(a15==1)))))&&(a27==1)))&&(a0==1))){ + if((a12==12)){ + a5 = 0; + a27 = 0; + a12 = 12; + }else{ + a6 = 0; + a3 = 7; + a18 = 1; + a12 = 9; + a22 = 0; + a15 = 1; + a0 = 0; + a5 = 0; + } + return -1; + } else if((((!(a6==1)&&(((((((a20==1)&&(((a3==4)&&(input==5))&&(a12==9)))&&(a15==1))&&!(a22==1))&&!(a4==1))&&(a27==1))&&!(a18==1)))&&!(a0==1))&&(a5==1))){ + a12 = 10; + a22 = 1; + a4 = 1; + a3 = 5; + a18 = 1; + a0 = 1; + return -1; + } else if(((!(a18==1)&&((a5==1)&&(((a20==1)&&(!(a22==1)&&(((a4==1)&&((a6==1)&&(((input==4)&&(a3==4))&&(a15==1))))&&!(a0==1))))&&(a12==12))))&&(a27==1))){ + a0 = 1; + a22 = 1; + a6 = 0; + a18 = 1; + a12 = 10; + a15 = 0; + a3 = 6; + return -1; + } else if((!(a0==1)&&(((!(a15==1)&&((a27==1)&&(((((a12==9)&&((a3==6)&&((a6==1)&&(input==1))))&&(a18==1))&&!(a22==1))&&(a20==1))))&&!(a5==1))&&!(a4==1)))){ + a18 = 0; + a4 = 1; + a0 = 1; + a12 = 12; + a3 = 8; + a6 = 0; + a22 = 1; + return -1; + } else if(((a27==1)&&(((a20==1)&&((a12==9)&&(((!(a15==1)&&((((((a18==1)||!(a18==1))&&(input==2))&&!(a6==1))&&!(a5==1))&&!(a22==1)))&&!(a4==1))&&!(a0==1))))&&(a3==4)))){ + a18 = 0; + a12 = 10; + a0 = 1; + a6 = 1; + a3 = 8; + a4 = 1; + return 21; + } else if((((a4==1)&&(((a15==1)&&((a5==1)&&(((a20==1)&&((((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1)))&&(input==6)))&&(a0==1))))&&(a27==1)))&&(a12==9))){ + a12 = 12; + a6 = 0; + a3 = 4; + a22 = 1; + a18 = 1; + return 21; + } else if((((a27==1)&&((a20==1)&&(((a4==1)&&(((a15==1)&&((a12==12)&&((a3==8)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2)))))&&!(a6==1)))&&!(a5==1))))&&(a0==1))){ + a12 = 10; + a18 = 1; + a22 = 0; + a3 = 4; + a5 = 1; + a6 = 1; + return -1; + } else if((!(a0==1)&&((a6==1)&&((a12==9)&&((!(a15==1)&&((((a5==1)&&(((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==7)))||((a3==7)&&(!(a18==1)&&(a22==1))))&&(input==5)))&&(a4==1))&&(a20==1)))&&!(a27==1)))))){ + if((a0==1)){ + a4 = 0; + a3 = 6; + a18 = 1; + a12 = 8; + a15 = 1; + a27 = 1; + a22 = 0; + a0 = 1; + }else{ + a0 = 1; + a3 = 5; + a12 = 8; + a18 = 1; + a27 = 1; + a22 = 0; + a15 = 1; + } + return -1; + } else if((((a4==1)&&(!(a15==1)&&((((a0==1)&&((a5==1)&&((a6==1)&&(((input==5)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a12==11)))))&&!(a27==1))&&(a20==1))))&&(a3==6))){ + a3 = 7; + a22 = 1; + a27 = 1; + a18 = 1; + a5 = 0; + a12 = 10; + return 26; + } else if(((a15==1)&&((a20==1)&&(!(a4==1)&&((a27==1)&&((((!(a0==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a6==1)))&&(a12==12))&&(a5==1))&&(a3==8))))))){ + a22 = 0; + a0 = 1; + a15 = 0; + a12 = 10; + a6 = 0; + a18 = 1; + return -1; + } else if(((a5==1)&&(!(a6==1)&&(!(a0==1)&&(!(a18==1)&&((a22==1)&&(((!(a27==1)&&((a4==1)&&((a20==1)&&((input==1)&&!(a15==1)))))&&(a3==5))&&(a12==8)))))))){ + a4 = 0; + a15 = 1; + a18 = 1; + a3 = 6; + a0 = 1; + a27 = 1; + a5 = 0; + return 21; + } else if((!(a6==1)&&(((a20==1)&&(((a12==8)&&((a4==1)&&((((a3==5)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3)))&&(a5==1))&&!(a15==1))))&&(a27==1)))&&!(a0==1)))){ + a27 = 0; + a5 = 0; + a0 = 1; + a12 = 9; + a18 = 0; + a22 = 1; + a3 = 6; + return -1; + } else if(((((a22==1)&&((((a3==5)&&((a18==1)&&((a12==11)&&(!(a6==1)&&((!(a0==1)&&(input==2))&&(a15==1))))))&&(a27==1))&&(a20==1)))&&!(a5==1))&&!(a4==1))){ + a12 = 8; + a4 = 1; + a3 = 4; + a6 = 1; + a5 = 1; + a0 = 1; + return -1; + } else if(((a4==1)&&((a3==8)&&(!(a27==1)&&(((!(a15==1)&&(((a20==1)&&((a6==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==3))))&&(a0==1)))&&(a5==1))&&(a12==10)))))){ + if((a4==1)){ + a12 = 8; + a0 = 0; + a6 = 0; + a22 = 0; + a18 = 0; + a5 = 0; + a27 = 1; + }else{ + a3 = 5; + a5 = 0; + a6 = 0; + a22 = 1; + a18 = 0; + } + return 21; + } else if(((((a15==1)&&((((((a27==1)&&((((input==5)&&((a18==1)||!(a18==1)))&&(a3==7))&&(a4==1)))&&(a5==1))&&(a12==10))&&(a20==1))&&(a0==1)))&&(a22==1))&&!(a6==1))){ + a18 = 0; + a3 = 6; + a22 = 0; + return -1; + } else if(((a27==1)&&((a0==1)&&((a12==12)&&((a4==1)&&(!(a6==1)&&((a20==1)&&(!(a15==1)&&((a3==6)&&((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==1))&&(a5==1))))))))))){ + a18 = 0; + a5 = 0; + a4 = 0; + a6 = 1; + a15 = 1; + a12 = 11; + a22 = 0; + return -1; + } else if(((((a0==1)&&((a6==1)&&((a27==1)&&((((a12==8)&&(((input==3)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&!(a4==1)))&&!(a5==1))&&(a3==6)))))&&(a20==1))&&(a15==1))){ + a18 = 1; + a12 = 10; + a3 = 4; + a5 = 1; + a22 = 0; + a15 = 0; + a4 = 1; + return 26; + } else if((((((((a6==1)&&(!(a0==1)&&(((a12==11)&&((a22==1)&&((input==2)&&(a20==1))))&&(a3==5))))&&(a5==1))&&!(a18==1))&&(a27==1))&&!(a15==1))&&(a4==1))){ + a3 = 7; + a22 = 0; + a12 = 12; + a0 = 1; + a6 = 0; + a5 = 0; + a18 = 1; + a15 = 1; + return -1; + } else if(((((((a15==1)&&((a6==1)&&((a27==1)&&(((a5==1)&&(!(a18==1)&&((input==2)&&(a3==8))))&&(a12==8)))))&&!(a4==1))&&(a20==1))&&!(a0==1))&&(a22==1))){ + a22 = 0; + a0 = 1; + a12 = 10; + a3 = 4; + a5 = 0; + a18 = 1; + a4 = 1; + a6 = 0; + return -1; + } else if(((a3==5)&&((a12==8)&&((!(a6==1)&&((!(a27==1)&&((a5==1)&&(!(a15==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&!(a4==1)))))&&(a20==1)))&&!(a0==1))))){ + if((a27==1)){ + a18 = 0; + a0 = 1; + a4 = 1; + a3 = 7; + a22 = 0; + a15 = 1; + a27 = 1; + }else{ + a27 = 1; + a0 = 1; + a22 = 1; + a6 = 1; + a18 = 1; + a3 = 8; + a15 = 1; + } + return 21; + } else if(((a3==7)&&((a27==1)&&(!(a4==1)&&((a20==1)&&((((a15==1)&&(!(a0==1)&&(!(a5==1)&&((input==2)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))&&(a12==11))&&!(a6==1))))))){ + a27 = 0; + a22 = 0; + a3 = 4; + a15 = 0; + a18 = 0; + a5 = 1; + a0 = 1; + return 21; + } else if(((a0==1)&&(((a4==1)&&((((a12==11)&&(((a5==1)&&(!(a6==1)&&((((a18==1)||!(a18==1))&&(input==6))&&(a22==1))))&&!(a15==1)))&&(a3==7))&&!(a27==1)))&&(a20==1)))){ + a4 = 0; + a3 = 4; + a27 = 1; + a6 = 1; + a15 = 1; + a22 = 0; + a18 = 0; + a12 = 10; + return 24; + } else if(((a27==1)&&((((((((!(a15==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==2)))&&!(a4==1))&&!(a6==1))&&(a5==1))&&(a0==1))&&(a3==4))&&(a12==10))&&(a20==1)))){ + a12 = 8; + a22 = 0; + a15 = 1; + a5 = 0; + a18 = 0; + return -1; + } else if(((((a20==1)&&((a12==11)&&(((a6==1)&&(!(a4==1)&&(((a15==1)&&(!(a5==1)&&(((a18==1)||!(a18==1))&&(input==6))))&&(a3==5))))&&(a0==1))))&&(a27==1))&&!(a22==1))){ + a4 = 1; + a12 = 8; + a5 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((((a5==1)&&((a12==9)&&((a20==1)&&(((!(a27==1)&&(!(a6==1)&&((a0==1)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==2)))))&&(a4==1))&&(a15==1)))))&&(a3==7))){ + a3 = 4; + a12 = 10; + a27 = 1; + a15 = 0; + a18 = 0; + a22 = 0; + a6 = 1; + return 26; + } else if((((((a3==4)&&((!(a5==1)&&((a20==1)&&(!(a27==1)&&((a12==8)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==5))))))&&!(a0==1)))&&!(a4==1))&&!(a15==1))&&!(a6==1))){ + a3 = 7; + a22 = 0; + a15 = 1; + a5 = 1; + a27 = 1; + a18 = 0; + a6 = 1; + a0 = 1; + return 24; + } else if((!(a5==1)&&((a12==8)&&(((a4==1)&&(((a20==1)&&(((!(a27==1)&&(!(a6==1)&&(!(a15==1)&&(input==4))))&&!(a22==1))&&(a3==5)))&&!(a0==1)))&&!(a18==1))))){ + a4 = 0; + a6 = 1; + a5 = 1; + a12 = 9; + return -1; + } else if((!(a5==1)&&(((a6==1)&&(!(a27==1)&&(!(a15==1)&&(!(a4==1)&&((((input==5)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))||((!(a18==1)&&(a22==1))&&(a3==7))))&&(a20==1))&&!(a0==1))))))&&(a12==11)))){ + a6 = 0; + a27 = 1; + a15 = 1; + a3 = 7; + a4 = 1; + a12 = 12; + a5 = 1; + a18 = 0; + a22 = 0; + return 26; + } else if(((a0==1)&&((((a6==1)&&(((a27==1)&&(!(a15==1)&&((a3==5)&&(((input==6)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a5==1)))))&&(a12==9)))&&(a20==1))&&!(a4==1)))){ + a12 = 8; + a22 = 0; + a15 = 1; + a6 = 0; + a18 = 1; + a27 = 0; + a4 = 1; + return 24; + } else if((!(a4==1)&&(!(a15==1)&&((a5==1)&&((((a3==8)&&((a12==9)&&((((((a18==1)||!(a18==1))&&(input==5))&&!(a0==1))&&(a20==1))&&!(a6==1))))&&(a27==1))&&!(a22==1)))))){ + a0 = 1; + a6 = 1; + a18 = 0; + a12 = 11; + a15 = 1; + a4 = 1; + a27 = 0; + a3 = 4; + return 26; + } else if(((a27==1)&&(((a5==1)&&(!(a0==1)&&((a3==4)&&(((!(a15==1)&&((a12==10)&&(((input==6)&&!(a6==1))&&!(a22==1))))&&!(a4==1))&&(a18==1)))))&&(a20==1)))){ + a3 = 5; + a0 = 1; + a18 = 0; + a27 = 0; + a12 = 8; + a15 = 1; + return -1; + } else if(((!(a27==1)&&((((!(a15==1)&&(!(a5==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==4))&&(a20==1))))&&!(a6==1))&&(a12==10))&&!(a0==1)))&&(a4==1))){ + a15 = 1; + a5 = 1; + a3 = 4; + a22 = 1; + a27 = 1; + a0 = 1; + a18 = 0; + a12 = 8; + return 26; + } else if(((a0==1)&&((!(a5==1)&&(((!(a4==1)&&((a3==7)&&((!(a15==1)&&((input==6)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&!(a27==1))))&&(a20==1))&&!(a6==1)))&&(a12==8)))){ + a12 = 11; + a22 = 1; + a3 = 4; + a15 = 1; + a5 = 1; + a27 = 1; + a0 = 0; + a18 = 0; + return -1; + } else if((((((((!(a6==1)&&(((input==4)&&(((a3==6)&&((a22==1)&&!(a18==1)))||(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))))&&(a20==1)))&&(a12==11))&&(a15==1))&&(a5==1))&&(a27==1))&&(a0==1))&&!(a4==1))){ + a18 = 1; + a4 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + a6 = 1; + return -1; + } else if((!(a0==1)&&((a20==1)&&((a27==1)&&(((a22==1)&&(!(a5==1)&&((a15==1)&&((a6==1)&&((a4==1)&&((a3==8)&&(((a18==1)||!(a18==1))&&(input==6))))))))&&(a12==9)))))){ + a5 = 1; + a18 = 0; + a12 = 12; + a6 = 0; + a3 = 4; + a15 = 0; + a0 = 1; + return 26; + } else if(((!(a6==1)&&((a0==1)&&(((a27==1)&&(!(a4==1)&&(((a12==11)&&((((a3==6)&&(!(a18==1)&&(a22==1)))||(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6))))&&(input==6)))&&!(a15==1))))&&!(a5==1))))&&(a20==1))){ + a15 = 1; + a4 = 1; + a18 = 1; + a6 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + a5 = 1; + return -1; + } else if((!(a6==1)&&((a15==1)&&((((a12==9)&&(((!(a27==1)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==2)))&&(a20==1))&&!(a5==1)))&&!(a0==1))&&(a4==1))))){ + if((a0==1)){ + a12 = 8; + a0 = 1; + a5 = 1; + a3 = 6; + a22 = 1; + a18 = 1; + a27 = 1; + }else{ + a27 = 1; + a12 = 8; + a4 = 0; + a3 = 8; + a18 = 0; + a6 = 1; + a5 = 1; + a22 = 0; + a0 = 1; + } + return 26; + } else if(((!(a22==1)&&(!(a27==1)&&((((a12==9)&&((((((a5==1)&&(input==6))&&!(a18==1))&&(a20==1))&&(a6==1))&&(a15==1)))&&(a0==1))&&(a3==4))))&&(a4==1))){ + a27 = 1; + a12 = 8; + a22 = 1; + a18 = 1; + return -1; + } else if(((a0==1)&&((((a6==1)&&((a3==7)&&((a5==1)&&((a20==1)&&((a4==1)&&(!(a15==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==1))))))))&&(a12==9))&&(a27==1)))){ + a4 = 0; + a22 = 1; + a12 = 10; + a18 = 0; + a5 = 0; + return 21; + } else if(((a12==12)&&(!(a5==1)&&((a15==1)&&(((a3==7)&&(((!(a6==1)&&((a22==1)&&(!(a27==1)&&((input==6)&&(a20==1)))))&&!(a4==1))&&(a0==1)))&&(a18==1)))))){ + a12 = 8; + a5 = 1; + a27 = 1; + a4 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if(((a6==1)&&((!(a5==1)&&((a3==4)&&(!(a15==1)&&((a0==1)&&((a18==1)&&((((!(a27==1)&&(input==5))&&(a20==1))&&(a12==10))&&(a4==1)))))))&&!(a22==1)))){ + a5 = 1; + a3 = 5; + a18 = 0; + a6 = 0; + return 21; + } else if(((a15==1)&&(!(a5==1)&&(((a18==1)&&((((((a12==10)&&((!(a6==1)&&(input==2))&&!(a4==1)))&&!(a27==1))&&(a20==1))&&(a0==1))&&!(a22==1)))&&(a3==8))))){ + a5 = 1; + a27 = 1; + a12 = 8; + a4 = 1; + a22 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if((((a5==1)&&(!(a0==1)&&(!(a6==1)&&(((a12==10)&&((a20==1)&&(((input==1)&&((((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==6))))&&(a4==1))))&&(a15==1)))))&&!(a27==1))){ + a18 = 0; + a0 = 1; + a3 = 4; + a22 = 1; + a27 = 1; + a12 = 8; + return 21; + } else if((((a20==1)&&(!(a4==1)&&((!(a15==1)&&((a27==1)&&((((input==5)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))||((a3==6)&&((a22==1)&&!(a18==1)))))&&(a6==1))&&(a12==12))))&&(a0==1))))&&(a5==1))){ + a18 = 0; + a3 = 6; + a4 = 1; + a22 = 1; + a12 = 11; + return 26; + } else if(((a6==1)&&(((a4==1)&&(!(a0==1)&&(((!(a15==1)&&((a12==11)&&((a20==1)&&((input==3)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))))))&&!(a27==1))&&(a3==7))))&&!(a5==1)))){ + a15 = 1; + a22 = 0; + a6 = 0; + a27 = 1; + a5 = 1; + a18 = 1; + a12 = 8; + a0 = 1; + return 21; + } else if((((a22==1)&&((a12==10)&&(((a27==1)&&(((a15==1)&&(((!(a6==1)&&((input==3)&&(a18==1)))&&!(a0==1))&&(a20==1)))&&!(a5==1)))&&(a3==8))))&&!(a4==1))){ + a22 = 0; + a18 = 0; + a5 = 1; + a12 = 11; + a0 = 1; + a15 = 0; + a3 = 5; + return -1; + } else if((((a0==1)&&((((a20==1)&&((a12==9)&&((input==3)&&((!(a6==1)&&((a3==8)&&((a4==1)&&(!(a22==1)&&!(a18==1)))))||((a6==1)&&((((a22==1)&&(a18==1))&&!(a4==1))&&(a3==4)))))))&&(a5==1))&&!(a27==1)))&&(a15==1))){ + a6 = 0; + a18 = 0; + a27 = 1; + a4 = 0; + a22 = 1; + a12 = 10; + a3 = 6; + return 24; + } else if(((!(a27==1)&&((a20==1)&&(((((a15==1)&&((!(a4==1)&&((input==2)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))))&&(a0==1)))&&!(a6==1))&&(a12==12))&&(a5==1))))&&(a3==7))){ + a22 = 1; + a3 = 5; + a27 = 1; + a4 = 1; + a18 = 1; + a5 = 0; + a12 = 10; + a15 = 0; + return 26; + } else if((!(a4==1)&&(((((a3==8)&&(!(a22==1)&&((a12==9)&&((a0==1)&&((a15==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&!(a27==1)))))))&&!(a6==1))&&!(a5==1))&&(a20==1)))){ + a6 = 1; + a3 = 5; + a12 = 12; + a27 = 1; + a4 = 1; + a18 = 0; + return 26; + } else if(((((a0==1)&&((((!(a15==1)&&(((a3==5)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a12==12)))&&(a6==1)))&&!(a4==1))&&(a5==1))&&(a20==1)))&&(a22==1))&&(a27==1))){ + a3 = 8; + a22 = 0; + a4 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if((((a3==7)&&(((((((a4==1)&&(!(a27==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a5==1))))&&!(a6==1))&&(a20==1))&&!(a22==1))&&!(a0==1))&&(a15==1)))&&(a12==11))){ + if((a15==1)){ + a22 = 1; + a3 = 8; + a27 = 1; + a18 = 0; + a0 = 1; + a12 = 8; + }else{ + a12 = 10; + a3 = 5; + a18 = 0; + a4 = 0; + a6 = 1; + a0 = 1; + a15 = 0; + } + return -1; + } else if((((((a3==7)&&(((((((a20==1)&&((a0==1)&&(input==3)))&&(a4==1))&&(a6==1))&&(a22==1))&&(a27==1))&&!(a18==1)))&&(a15==1))&&(a12==9))&&!(a5==1))){ + a3 = 8; + a12 = 12; + a5 = 1; + a4 = 0; + a15 = 0; + a22 = 0; + return 26; + } else if(((a0==1)&&(((a20==1)&&((a12==8)&&(!(a22==1)&&(((a3==7)&&(((!(a6==1)&&((input==1)&&(a27==1)))&&!(a15==1))&&(a4==1)))&&(a5==1)))))&&!(a18==1)))){ + a3 = 4; + a22 = 1; + a12 = 9; + a6 = 1; + a15 = 1; + return 26; + } else if(((a12==8)&&((a15==1)&&((a20==1)&&(((a27==1)&&(!(a6==1)&&((a0==1)&&(((input==1)&&((((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1))))||((!(a18==1)&&(a22==1))&&(a3==5))))&&!(a5==1)))))&&(a4==1)))))){ + a18 = 1; + a15 = 0; + a22 = 0; + a12 = 9; + a4 = 0; + a3 = 5; + return 21; + } else if((!(a0==1)&&((a27==1)&&((!(a15==1)&&((a6==1)&&((a20==1)&&((a4==1)&&(((a5==1)&&((((a18==1)||!(a18==1))&&(input==5))&&(a22==1)))&&(a12==8))))))&&(a3==7))))){ + a18 = 1; + a0 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if(((a5==1)&&((a15==1)&&((a20==1)&&(((((!(a27==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2))&&!(a4==1)))&&(a6==1))&&(a3==7))&&(a0==1))&&(a12==11)))))){ + a12 = 12; + a22 = 1; + a5 = 0; + a4 = 1; + a18 = 0; + return 26; + } else if((((((a5==1)&&(((a22==1)&&(!(a18==1)&&((a20==1)&&((((input==5)&&(a12==11))&&!(a4==1))&&(a3==8)))))&&(a0==1)))&&!(a27==1))&&!(a15==1))&&!(a6==1))){ + a12 = 12; + a3 = 7; + a27 = 1; + a6 = 1; + a15 = 1; + a22 = 0; + return -1; + } else if(((a12==8)&&(!(a22==1)&&(((!(a6==1)&&((!(a15==1)&&(((a4==1)&&((!(a5==1)&&(input==6))&&(a3==5)))&&!(a18==1)))&&(a20==1)))&&!(a27==1))&&!(a0==1))))){ + a22 = 1; + a27 = 1; + a15 = 1; + a0 = 1; + a5 = 1; + a18 = 1; + return 26; + } else if((((((!(a6==1)&&((((!(a0==1)&&((((a18==1)||!(a18==1))&&(input==3))&&(a20==1)))&&(a22==1))&&(a5==1))&&(a15==1)))&&(a3==6))&&(a12==11))&&!(a4==1))&&(a27==1))){ + a3 = 4; + a0 = 1; + a4 = 1; + a18 = 1; + a12 = 8; + a6 = 1; + return -1; + } else if((((((!(a0==1)&&(!(a6==1)&&((a5==1)&&((!(a15==1)&&((a22==1)&&(((a18==1)||!(a18==1))&&(input==2))))&&!(a4==1)))))&&!(a27==1))&&(a20==1))&&(a12==8))&&(a3==8))){ + a6 = 1; + a27 = 1; + a3 = 4; + a22 = 0; + a18 = 1; + a0 = 1; + a4 = 1; + a15 = 1; + return 21; + } else if(((a12==11)&&((((((a15==1)&&(((!(a6==1)&&(((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8)))||(((a3==4)&&(!(a4==1)&&((a22==1)&&(a18==1))))&&(a6==1)))&&(input==3)))&&!(a0==1))&&(a20==1))&&(a27==1))&&(a5==1)))){ + a15 = 0; + a5 = 0; + a6 = 0; + a18 = 1; + a0 = 1; + a12 = 10; + a3 = 5; + a22 = 0; + a4 = 1; + return 21; + } else if(((((((!(a6==1)&&((a5==1)&&((((a20==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a4==1))&&(a12==11))))&&!(a0==1))&&!(a27==1))&&!(a15==1))&&(a3==8))&&(a22==1))){ + a3 = 5; + a6 = 1; + a15 = 1; + a0 = 1; + a4 = 0; + a12 = 8; + a22 = 0; + a27 = 1; + a18 = 0; + return -1; + } else if((((a20==1)&&((a18==1)&&((a12==11)&&((((((((input==1)&&(a15==1))&&(a6==1))&&(a22==1))&&!(a4==1))&&!(a5==1))&&(a3==5))&&!(a0==1)))))&&(a27==1))){ + a22 = 0; + a0 = 1; + a3 = 6; + a4 = 1; + a15 = 0; + a6 = 0; + a18 = 0; + return -1; + } else if(((!(a15==1)&&(((a4==1)&&(((a5==1)&&((a3==4)&&((!(a0==1)&&((input==4)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))))&&(a20==1))))&&(a27==1)))&&!(a6==1)))&&(a12==11))){ + a18 = 0; + a3 = 5; + a22 = 1; + return -1; + } else if((((a15==1)&&(((a20==1)&&(((!(a0==1)&&((a6==1)&&((a12==12)&&((input==2)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))&&(a3==4))&&!(a4==1)))&&!(a5==1)))&&(a27==1))){ + a15 = 0; + a27 = 0; + a18 = 0; + a6 = 0; + a12 = 10; + a22 = 0; + a3 = 6; + return -1; + } else if((((a4==1)&&(((!(a6==1)&&(!(a5==1)&&((!(a15==1)&&((((a3==5)&&(!(a18==1)&&(a22==1)))||(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5))))&&(input==6)))&&(a12==11))))&&!(a27==1))&&(a20==1)))&&(a0==1))){ + a3 = 7; + a18 = 1; + a22 = 0; + a5 = 1; + a4 = 0; + return -1; + } else if((((a20==1)&&((a3==4)&&((a6==1)&&((!(a27==1)&&((a5==1)&&(((a12==8)&&(!(a22==1)&&((input==4)&&((a18==1)||!(a18==1)))))&&(a4==1))))&&(a0==1)))))&&(a15==1))){ + a22 = 1; + a5 = 0; + a27 = 1; + a6 = 0; + a18 = 0; + a12 = 10; + return 26; + } else if(((a5==1)&&((a12==9)&&(((a20==1)&&((((((a15==1)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==3)))&&(a27==1))&&(a6==1))&&(a4==1))&&!(a0==1)))&&(a3==7))))){ + a6 = 0; + a4 = 0; + a15 = 0; + a22 = 0; + a12 = 10; + a5 = 0; + a3 = 6; + a18 = 0; + a0 = 1; + return 26; + } else if(((a12==10)&&((a20==1)&&(((!(a0==1)&&((a3==6)&&(!(a15==1)&&(((a27==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==6)))&&!(a6==1)))))&&!(a5==1))&&(a4==1))))){ + a0 = 1; + a5 = 1; + a12 = 11; + a3 = 4; + a4 = 0; + a22 = 1; + a18 = 0; + return 21; + } else if((((a20==1)&&((a0==1)&&(!(a5==1)&&(((a3==7)&&((!(a6==1)&&(!(a4==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a12==11))))&&(a15==1)))&&(a22==1)))))&&(a27==1))){ + a18 = 0; + a27 = 0; + a4 = 1; + return 26; + } else if((((a3==4)&&(!(a15==1)&&((a12==11)&&((a6==1)&&((((((input==2)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&(a27==1))&&!(a5==1))&&(a4==1))&&(a20==1))))))&&(a0==1))){ + a5 = 1; + a22 = 1; + a12 = 8; + a15 = 1; + a18 = 1; + return -1; + } else if((!(a4==1)&&(!(a6==1)&&((a12==11)&&(!(a27==1)&&((!(a18==1)&&((a5==1)&&((a20==1)&&((((a3==7)&&(input==2))&&(a22==1))&&(a0==1)))))&&!(a15==1))))))){ + a12 = 9; + a3 = 5; + return -1; + } else if((((a27==1)&&(((((a12==11)&&((input==4)&&((((((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8))&&!(a6==1))||(((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))&&(a6==1)))||(((a3==4)&&(((a22==1)&&!(a18==1))&&!(a4==1)))&&(a6==1)))))&&(a20==1))&&(a0==1))&&!(a5==1)))&&!(a15==1))){ + if((a15==1)){ + a12 = 10; + a18 = 0; + a15 = 1; + a0 = 0; + a22 = 1; + a3 = 5; + a4 = 0; + a6 = 0; + }else{ + a6 = 0; + a18 = 0; + a22 = 1; + a4 = 1; + a27 = 0; + a3 = 6; + } + return 21; + } else if((!(a27==1)&&((a0==1)&&((((((a22==1)&&(((!(a5==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&!(a6==1))&&(a12==12)))&&!(a15==1))&&!(a4==1))&&(a3==7))&&(a20==1))))){ + a18 = 1; + a6 = 1; + a4 = 1; + a3 = 4; + a5 = 1; + a27 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if(((a0==1)&&((a20==1)&&((a6==1)&&(((a12==12)&&((((((((a18==1)||!(a18==1))&&(input==3))&&(a5==1))&&!(a4==1))&&(a22==1))&&!(a15==1))&&(a3==8)))&&(a27==1)))))){ + if((a15==1)){ + a0 = 0; + a3 = 7; + a15 = 1; + a6 = 0; + a18 = 1; + }else{ + a12 = 11; + a18 = 0; + a3 = 6; + } + return -1; + } else if(((((!(a5==1)&&((((((input==1)&&(((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8))))&&(a20==1))&&!(a15==1))&&!(a0==1))&&!(a4==1)))&&(a6==1))&&(a12==10))&&!(a27==1))){ + a3 = 6; + a18 = 0; + a15 = 1; + a4 = 1; + a27 = 1; + a0 = 1; + a22 = 0; + a12 = 8; + a5 = 1; + return -1; + } else if(((a4==1)&&(((((a5==1)&&((a15==1)&&((a12==10)&&((a0==1)&&((!(a6==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a20==1))))))&&(a27==1))&&(a22==1))&&(a3==7)))){ + a3 = 6; + a18 = 0; + a22 = 0; + return -1; + } else if(((((a27==1)&&(!(a5==1)&&(!(a22==1)&&((a12==10)&&(((!(a4==1)&&((a18==1)&&((input==1)&&!(a15==1))))&&(a6==1))&&(a0==1))))))&&(a20==1))&&(a3==7))){ + a4 = 1; + a15 = 1; + a3 = 5; + return -1; + } else if((((a12==12)&&(((a15==1)&&((a0==1)&&((((!(a6==1)&&(((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8)))||(((a3==4)&&(!(a4==1)&&((a22==1)&&(a18==1))))&&(a6==1)))&&(input==2))&&!(a27==1))))&&(a20==1)))&&!(a5==1))){ + a5 = 1; + a4 = 1; + a22 = 0; + a12 = 8; + a27 = 1; + a18 = 1; + a15 = 0; + a6 = 1; + a3 = 6; + a0 = 0; + return 21; + } else if((((a20==1)&&(!(a6==1)&&(((a15==1)&&((((a4==1)&&((input==2)&&(((a3==5)&&((a18==1)&&(a22==1)))||(((a3==4)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==4))))))&&(a5==1))&&!(a0==1)))&&(a12==9))))&&!(a27==1))){ + a5 = 0; + a22 = 0; + a3 = 4; + a15 = 0; + a18 = 1; + a4 = 0; + return 21; + } else if((((a20==1)&&((a12==10)&&((a15==1)&&((((a4==1)&&(((a3==8)&&((input==4)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))&&!(a6==1)))&&!(a5==1))&&!(a27==1)))))&&(a0==1))){ + a18 = 1; + a3 = 4; + a5 = 1; + a6 = 1; + a27 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if(((!(a6==1)&&(((a20==1)&&(!(a4==1)&&((((a27==1)&&((a3==8)&&((input==6)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))))&&!(a0==1))&&!(a15==1))))&&!(a5==1)))&&(a12==11))){ + a18 = 0; + a0 = 1; + a4 = 1; + a5 = 1; + a22 = 0; + a12 = 12; + a6 = 1; + return 21; + } else if((!(a15==1)&&((a20==1)&&((!(a27==1)&&((a3==8)&&((((a0==1)&&(((input==3)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&!(a5==1)))&&!(a4==1))&&(a12==8))))&&!(a6==1))))){ + a27 = 1; + a5 = 1; + a15 = 1; + a22 = 1; + a3 = 4; + a6 = 1; + a18 = 1; + a4 = 1; + return -1; + } else if(((a0==1)&&(!(a27==1)&&(!(a6==1)&&(((!(a5==1)&&(!(a4==1)&&((((((a22==1)&&!(a18==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a18==1)&&(a22==1)))))&&(input==3))&&(a12==9))))&&!(a15==1))&&(a20==1)))))){ + a5 = 1; + a27 = 1; + a18 = 0; + a22 = 1; + a12 = 12; + a4 = 1; + a3 = 4; + return 26; + } else if((((!(a0==1)&&((a15==1)&&(((((a5==1)&&((a3==8)&&((input==1)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))))&&(a4==1))&&!(a6==1))&&(a12==10))))&&!(a27==1))&&(a20==1))){ + a18 = 0; + a12 = 11; + a4 = 0; + a15 = 0; + a3 = 7; + a22 = 0; + a0 = 1; + return 26; + } else if(((a12==11)&&(((a20==1)&&((((((!(a4==1)&&((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a15==1))&&(a0==1))&&!(a27==1))&&!(a6==1))&&!(a5==1)))&&(a3==8)))){ + if((a12==8)){ + a27 = 1; + a18 = 0; + a4 = 1; + a0 = 0; + a22 = 0; + a3 = 6; + a12 = 8; + a5 = 1; + }else{ + a27 = 1; + a6 = 1; + a5 = 1; + a3 = 5; + a12 = 9; + a4 = 1; + a18 = 1; + a22 = 1; + } + return 21; + } else if(((a12==8)&&(((!(a15==1)&&((a18==1)&&((a20==1)&&((a5==1)&&(((a4==1)&&((a0==1)&&((a3==4)&&(input==5))))&&(a27==1))))))&&(a6==1))&&!(a22==1)))){ + a15 = 1; + a22 = 1; + return -1; + } else if(((a15==1)&&((((a5==1)&&((a4==1)&&(((a0==1)&&((a12==12)&&(((((a22==1)&&!(a18==1))&&(a3==6))||(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1)))))&&(input==6))))&&(a27==1))))&&(a20==1))&&(a6==1)))){ + a3 = 4; + a5 = 0; + a12 = 11; + a18 = 0; + a22 = 0; + return -1; + } else if(((!(a6==1)&&((a15==1)&&((a4==1)&&((!(a5==1)&&(((a3==7)&&(((input==2)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&(a0==1)))&&(a12==10)))&&(a20==1)))))&&(a27==1))){ + a12 = 11; + a3 = 4; + a5 = 1; + a4 = 0; + a6 = 1; + a18 = 1; + a22 = 1; + return 21; + } else if(((((((a3==5)&&((a12==12)&&(((((input==5)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a27==1))&&(a15==1))&&!(a4==1))))&&!(a5==1))&&(a20==1))&&(a6==1))&&(a0==1))){ + a22 = 1; + a3 = 7; + a18 = 0; + a12 = 10; + a5 = 1; + return 26; + } else if(((a4==1)&&((!(a18==1)&&(!(a22==1)&&((a3==5)&&((!(a6==1)&&(!(a5==1)&&((a15==1)&&((a0==1)&&((a20==1)&&(input==6))))))&&!(a27==1)))))&&(a12==11)))){ + a3 = 8; + a4 = 0; + a6 = 1; + a27 = 1; + a22 = 1; + return 26; + } else if(((a22==1)&&(!(a15==1)&&(((a6==1)&&(((((a3==7)&&(!(a4==1)&&(!(a0==1)&&(((a18==1)||!(a18==1))&&(input==2)))))&&(a5==1))&&(a27==1))&&(a12==11)))&&(a20==1))))){ + a18 = 1; + a3 = 6; + a27 = 0; + a12 = 9; + a4 = 1; + a15 = 1; + a6 = 0; + a0 = 1; + return 26; + } else if((!(a15==1)&&(((((((a12==11)&&((((a6==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a22==1))&&!(a4==1)))&&(a0==1))&&!(a27==1))&&(a20==1))&&(a3==4))&&!(a5==1)))){ + a5 = 1; + a18 = 1; + a15 = 1; + a27 = 1; + a4 = 1; + a12 = 8; + return -1; + } else if(((a4==1)&&(((!(a0==1)&&((((!(a15==1)&&(((input==4)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a3==5)))&&(a27==1))&&(a12==12))&&(a6==1)))&&(a5==1))&&(a20==1)))){ + a3 = 8; + a0 = 1; + a18 = 1; + a22 = 1; + a5 = 0; + a15 = 1; + return 21; + } else if(((!(a6==1)&&(!(a0==1)&&((((a5==1)&&(((!(a22==1)&&((a15==1)&&((input==4)&&((a18==1)||!(a18==1)))))&&!(a27==1))&&(a4==1)))&&(a12==11))&&(a20==1))))&&(a3==5))){ + if((a5==1)){ + a12 = 9; + a15 = 0; + a18 = 1; + a3 = 8; + a5 = 0; + a22 = 1; + }else{ + a3 = 6; + a22 = 1; + a18 = 0; + a0 = 1; + a27 = 1; + a12 = 12; + } + return -1; + } else if(((a6==1)&&(((!(a15==1)&&((a5==1)&&((a20==1)&&((a27==1)&&((a12==8)&&((a0==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==1))))))))&&!(a4==1))&&(a3==8)))){ + a22 = 1; + a3 = 4; + a18 = 1; + a15 = 1; + a4 = 1; + return -1; + } else if((((!(a6==1)&&((!(a4==1)&&(((a20==1)&&((a0==1)&&((a27==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==1)))))&&(a3==4)))&&(a12==12)))&&!(a15==1))&&!(a5==1))){ + a15 = 1; + a12 = 11; + a4 = 1; + a22 = 1; + a18 = 1; + a6 = 1; + a3 = 7; + return 26; + } else if((!(a5==1)&&(!(a4==1)&&(!(a0==1)&&((a12==11)&&(((a20==1)&&(((((input==4)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a6==1))&&(a15==1))&&!(a27==1)))&&(a3==5))))))){ + if((a15==1)){ + a4 = 1; + a12 = 10; + a18 = 0; + a22 = 1; + a5 = 1; + a15 = 0; + a0 = 1; + a3 = 4; + }else{ + a4 = 1; + a5 = 1; + a12 = 12; + a0 = 1; + a3 = 6; + a18 = 0; + a15 = 0; + a22 = 1; + a6 = 1; + } + return -1; + } else if(((a15==1)&&(((((((!(a27==1)&&((input==2)&&(((a3==5)&&((a22==1)&&(a18==1)))||(((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a18==1)&&!(a22==1)))))))&&(a20==1))&&!(a6==1))&&(a12==12))&&(a5==1))&&(a0==1))&&(a4==1)))){ + a18 = 1; + a12 = 8; + a3 = 4; + a27 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if(((a6==1)&&(((((!(a27==1)&&((a20==1)&&((a12==9)&&((((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==1)))))&&(a0==1))&&!(a5==1))&&(a4==1))&&(a15==1)))){ + a6 = 0; + a3 = 7; + a22 = 1; + a5 = 1; + a18 = 0; + return 24; + } else if((((((a15==1)&&(((a27==1)&&((a0==1)&&((a3==8)&&((!(a22==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a4==1)))))&&(a12==12)))&&(a5==1))&&(a6==1))&&(a20==1))){ + a18 = 1; + a22 = 1; + a3 = 5; + a27 = 0; + return 21; + } else if((((!(a5==1)&&(((((input==3)&&(((((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8))&&!(a6==1))||((a6==1)&&((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1))))))&&(a0==1))&&(a12==12))&&(a15==1)))&&(a20==1))&&!(a27==1))){ + a22 = 1; + a5 = 1; + a18 = 1; + a6 = 1; + a4 = 0; + a12 = 10; + a3 = 8; + return 21; + } else if(((!(a4==1)&&((a5==1)&&(((a20==1)&&((a3==5)&&((((a27==1)&&((a6==1)&&(!(a15==1)&&(input==6))))&&(a18==1))&&(a12==11))))&&(a0==1))))&&!(a22==1))){ + a3 = 4; + a15 = 1; + a27 = 0; + a18 = 0; + return 26; + } else if(((((!(a27==1)&&((a6==1)&&((((a12==10)&&((!(a4==1)&&((input==5)&&!(a15==1)))&&(a20==1)))&&!(a5==1))&&!(a18==1))))&&(a0==1))&&!(a22==1))&&(a3==6))){ + a27 = 1; + a5 = 1; + a15 = 1; + a3 = 4; + a12 = 11; + return 21; + } else if((((a20==1)&&((a12==10)&&((a27==1)&&((((!(a5==1)&&(!(a6==1)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==1))))&&(a3==8))&&(a15==1))&&(a4==1)))))&&(a0==1))){ + a15 = 0; + a3 = 5; + a12 = 12; + a18 = 1; + a6 = 1; + a5 = 1; + a22 = 1; + a4 = 0; + return 26; + } else if((((((a6==1)&&(((!(a18==1)&&(!(a5==1)&&((((input==5)&&!(a4==1))&&(a27==1))&&(a12==8))))&&(a20==1))&&!(a15==1)))&&(a3==8))&&!(a0==1))&&(a22==1))){ + a4 = 1; + a0 = 1; + a12 = 12; + a5 = 1; + return 26; + } else if(((!(a0==1)&&((a6==1)&&((a20==1)&&(!(a4==1)&&(((((input==5)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8)))||((a3==8)&&(!(a18==1)&&(a22==1)))))&&(a5==1))&&!(a27==1))&&(a12==11))))))&&!(a15==1))){ + a18 = 1; + a12 = 8; + a0 = 1; + a3 = 6; + a4 = 1; + a6 = 0; + a27 = 1; + a22 = 1; + a15 = 1; + return 21; + } else if((((((a20==1)&&((a3==7)&&((a12==9)&&((((a27==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==2)))&&!(a15==1))&&(a6==1)))))&&!(a4==1))&&(a0==1))&&(a5==1))){ + a22 = 1; + a12 = 8; + a3 = 4; + a15 = 1; + a18 = 1; + a4 = 1; + return -1; + } else if(((a12==8)&&(!(a15==1)&&(!(a6==1)&&(((!(a27==1)&&((a20==1)&&(!(a5==1)&&((input==4)&&((((a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&(a18==1)))||((a3==7)&&(!(a22==1)&&!(a18==1)))))))))&&(a4==1))&&!(a0==1)))))){ + a22 = 1; + a3 = 7; + a6 = 1; + a18 = 0; + a4 = 0; + a12 = 11; + return 26; + } else if((((((a12==10)&&(!(a22==1)&&(((a4==1)&&((!(a15==1)&&((!(a0==1)&&(input==2))&&!(a18==1)))&&(a3==7)))&&!(a6==1))))&&(a5==1))&&!(a27==1))&&(a20==1))){ + a15 = 1; + a4 = 0; + a22 = 1; + a12 = 8; + a18 = 1; + a27 = 1; + a0 = 1; + a3 = 4; + return 21; + } else if((!(a15==1)&&((((((a12==9)&&((input==2)&&(((!(a6==1)&&((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1))))||(((!(a4==1)&&((a18==1)&&(a22==1)))&&(a3==4))&&(a6==1)))||(((!(a4==1)&&((a22==1)&&!(a18==1)))&&(a3==4))&&(a6==1)))))&&(a20==1))&&(a5==1))&&(a27==1))&&!(a0==1)))){ + a12 = 12; + a6 = 1; + a15 = 1; + a4 = 1; + a18 = 1; + a22 = 0; + a0 = 1; + a5 = 0; + a3 = 6; + a27 = 0; + return 26; + } else if((!(a27==1)&&(!(a0==1)&&(((a15==1)&&(!(a6==1)&&((a12==10)&&(((a20==1)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==3)))&&!(a5==1)))))&&(a4==1))))){ + a5 = 1; + a18 = 0; + a6 = 1; + a3 = 6; + a0 = 1; + a4 = 0; + a12 = 8; + a22 = 0; + a27 = 1; + return -1; + } else if((((a27==1)&&(((a4==1)&&((a12==11)&&((((a6==1)&&((((a3==5)&&((a22==1)&&(a18==1)))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a22==1)&&!(a18==1)))))&&(input==1)))&&!(a0==1))&&!(a5==1))))&&!(a15==1)))&&(a20==1))){ + a18 = 1; + a15 = 1; + a6 = 0; + a22 = 0; + a0 = 1; + a3 = 6; + return 26; + } else if((((a27==1)&&(((a6==1)&&(((a12==12)&&(!(a0==1)&&((a20==1)&&((a15==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==5))))))&&(a5==1)))&&!(a4==1)))&&(a3==6))){ + a18 = 1; + a4 = 1; + a22 = 0; + a12 = 11; + a3 = 7; + a5 = 0; + a15 = 0; + a6 = 0; + a0 = 1; + return 21; + } else if(((((a3==6)&&((a0==1)&&(((!(a4==1)&&((a27==1)&&(((input==6)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&(a20==1))))&&(a15==1))&&(a12==8))))&&!(a6==1))&&(a5==1))){ + a4 = 1; + a3 = 5; + a15 = 0; + a22 = 1; + a0 = 0; + a18 = 1; + a5 = 0; + return 21; + } else if((!(a22==1)&&((a5==1)&&((((a20==1)&&(((((((input==2)&&((a18==1)||!(a18==1)))&&(a12==10))&&(a3==7))&&!(a4==1))&&(a6==1))&&!(a0==1)))&&(a27==1))&&!(a15==1))))){ + if((a15==1)){ + a12 = 11; + a18 = 0; + a15 = 1; + a3 = 5; + a4 = 1; + a5 = 0; + a22 = 1; + }else{ + a18 = 1; + a12 = 12; + a0 = 1; + a15 = 1; + a3 = 8; + a4 = 1; + a27 = 0; + } + return 26; + } else if((((((a6==1)&&(((a22==1)&&(!(a5==1)&&(((!(a0==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a4==1))&&(a3==5))))&&!(a15==1)))&&(a12==12))&&(a20==1))&&(a27==1))){ + if((a0==1)){ + a3 = 6; + a12 = 9; + a18 = 0; + a5 = 1; + }else{ + a6 = 0; + a18 = 1; + a15 = 1; + a12 = 8; + a0 = 1; + a5 = 1; + a3 = 7; + } + return 21; + } else if(((a3==5)&&(((((!(a18==1)&&((((a0==1)&&(((a4==1)&&(input==5))&&(a12==10)))&&(a15==1))&&!(a27==1)))&&(a5==1))&&(a20==1))&&(a6==1))&&(a22==1)))){ + a22 = 0; + a6 = 0; + a27 = 1; + a12 = 11; + a15 = 0; + a3 = 8; + a18 = 1; + a4 = 0; + return 21; + } else if(((((!(a4==1)&&((!(a0==1)&&(((input==6)&&((((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4)))))&&!(a27==1)))&&(a20==1)))&&(a5==1))&&(a12==10))&&!(a15==1))){ + a27 = 1; + a0 = 1; + a15 = 1; + a3 = 6; + a6 = 1; + a22 = 1; + a12 = 8; + a18 = 0; + return -1; + } else if(((a15==1)&&((a6==1)&&((((a20==1)&&((a18==1)&&((((a3==8)&&(!(a0==1)&&((input==3)&&!(a4==1))))&&(a12==11))&&(a27==1))))&&(a5==1))&&(a22==1))))){ + a12 = 10; + a18 = 0; + a0 = 1; + a27 = 0; + a22 = 0; + a6 = 0; + return 26; + } else if((!(a6==1)&&(!(a5==1)&&(!(a15==1)&&((((((!(a4==1)&&((a3==6)&&((input==2)&&(a22==1))))&&(a20==1))&&!(a0==1))&&!(a18==1))&&(a12==8))&&(a27==1)))))){ + a0 = 1; + a18 = 1; + a15 = 1; + a3 = 4; + a22 = 0; + a6 = 1; + a12 = 10; + a4 = 1; + return 21; + } else if((((!(a6==1)&&(((a27==1)&&((a0==1)&&(!(a4==1)&&((a12==11)&&((a3==5)&&((input==4)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))))))))&&(a20==1)))&&!(a15==1))&&(a5==1))){ + a6 = 1; + a4 = 1; + a15 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + return -1; + } else if(((a4==1)&&((a12==11)&&((a3==4)&&((a20==1)&&((!(a0==1)&&((((a5==1)&&((input==6)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))))&&!(a6==1))&&!(a27==1)))&&!(a15==1))))))){ + if((a18==1)){ + a0 = 1; + a27 = 1; + a18 = 1; + a3 = 7; + a15 = 1; + a22 = 1; + a12 = 8; + a6 = 1; + }else{ + a0 = 1; + a18 = 0; + a22 = 1; + a12 = 8; + a6 = 1; + a27 = 1; + a15 = 1; + a3 = 7; + a4 = 0; + } + return 24; + } else if((((a15==1)&&(!(a6==1)&&(((a20==1)&&((a12==10)&&((((input==2)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1)))))&&!(a0==1))&&!(a5==1))))&&!(a27==1))))&&(a4==1))){ + if((a20==1)){ + a22 = 1; + a18 = 0; + a12 = 9; + a3 = 8; + }else{ + a0 = 1; + a15 = 0; + a27 = 1; + a22 = 1; + a3 = 4; + a6 = 1; + a5 = 1; + a18 = 1; + } + return 21; + } else if(((a27==1)&&(!(a5==1)&&(((a20==1)&&((a0==1)&&((((a6==1)&&((a3==4)&&((!(a15==1)&&((a18==1)&&(a22==1)))&&(a4==1))))||((((((a15==1)&&(!(a22==1)&&(a18==1)))&&!(a4==1))&&(a3==8))&&!(a6==1))||(((a3==8)&&(!(a4==1)&&((!(a18==1)&&!(a22==1))&&(a15==1))))&&!(a6==1))))&&(input==1))))&&(a12==8))))){ + a6 = 1; + a18 = 1; + a5 = 1; + a22 = 1; + a4 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if((!(a5==1)&&((a20==1)&&(!(a15==1)&&(((a12==9)&&(!(a0==1)&&(((((((!(a22==1)&&(a18==1))&&(a4==1))&&(a3==8))&&!(a6==1))||(!(a6==1)&&(((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8))))||(((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))&&(a6==1)))&&(input==4))))&&(a27==1)))))){ + a6 = 1; + a3 = 4; + a5 = 1; + a22 = 1; + a18 = 1; + a0 = 1; + a15 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if(((a3==6)&&(((((a15==1)&&((((a27==1)&&(!(a18==1)&&(!(a0==1)&&((input==5)&&(a12==12)))))&&!(a22==1))&&(a20==1)))&&(a4==1))&&(a5==1))&&(a6==1)))){ + a18 = 1; + a22 = 1; + a3 = 7; + a0 = 1; + a4 = 0; + a6 = 0; + return 24; + } else if((!(a5==1)&&((a27==1)&&((a6==1)&&((a20==1)&&((!(a4==1)&&((((input==4)&&(((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==5))))&&(a15==1))&&!(a0==1)))&&(a12==12))))))){ + a5 = 1; + a22 = 0; + a27 = 0; + a3 = 7; + a6 = 0; + a18 = 1; + a0 = 1; + a15 = 0; + return -1; + } else if(((!(a0==1)&&(((!(a6==1)&&((!(a22==1)&&(!(a18==1)&&((a3==6)&&(((input==5)&&(a5==1))&&!(a27==1)))))&&(a20==1)))&&(a4==1))&&(a12==8)))&&(a15==1))){ + a0 = 1; + a27 = 1; + a3 = 7; + return -1; + } else if((((((a20==1)&&((((!(a27==1)&&(((a3==8)&&((input==6)&&((a18==1)||!(a18==1))))&&(a12==12)))&&(a0==1))&&(a22==1))&&!(a15==1)))&&!(a5==1))&&!(a4==1))&&!(a6==1))){ + a3 = 6; + a22 = 0; + a5 = 1; + a18 = 0; + a12 = 10; + return -1; + } else if((((!(a15==1)&&((a27==1)&&(((a6==1)&&(((a20==1)&&((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==4))&&(a5==1)))&&(a0==1)))&&(a3==4))))&&(a4==1))&&(a12==11))){ + a22 = 0; + a12 = 12; + a6 = 0; + a18 = 0; + a3 = 7; + a15 = 1; + return 26; + } else if(((a6==1)&&((a20==1)&&((((((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==4))&&!(a27==1))&&(a3==8))&&(a4==1))&&(a0==1))&&!(a15==1))&&!(a5==1))&&(a12==8))))){ + a3 = 4; + a5 = 1; + a18 = 1; + a22 = 1; + a15 = 1; + a27 = 1; + return -1; + } else if((((!(a15==1)&&((a20==1)&&(!(a6==1)&&(((a5==1)&&(((((a3==5)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4))))&&(input==2))&&(a12==8)))&&!(a0==1)))))&&!(a4==1))&&!(a27==1))){ + a4 = 1; + a15 = 1; + a6 = 1; + a18 = 0; + a3 = 4; + a0 = 1; + a22 = 0; + a27 = 1; + return -1; + } else if(((!(a15==1)&&(((((a12==10)&&((((((a3==8)&&((a4==1)&&(!(a22==1)&&!(a18==1))))&&!(a6==1))||((a6==1)&&((((a18==1)&&(a22==1))&&!(a4==1))&&(a3==4))))||((a6==1)&&((!(a4==1)&&((a22==1)&&!(a18==1)))&&(a3==4))))&&(input==2)))&&!(a5==1))&&(a0==1))&&(a20==1)))&&!(a27==1))){ + a22 = 1; + a4 = 0; + a27 = 1; + a18 = 0; + a6 = 1; + a15 = 1; + a3 = 5; + return 21; + } else if(((a15==1)&&((((a4==1)&&((a5==1)&&(!(a6==1)&&((a0==1)&&(((a20==1)&&((((a18==1)||!(a18==1))&&(input==2))&&(a22==1)))&&(a3==4))))))&&(a12==11))&&!(a27==1)))){ + a18 = 0; + a12 = 12; + a15 = 0; + return 21; + } else if(((a3==7)&&((a12==8)&&(!(a0==1)&&(((a5==1)&&((a20==1)&&(!(a6==1)&&(!(a4==1)&&(((input==4)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&!(a27==1))))))&&(a15==1)))))){ + if((a4==1)){ + a5 = 0; + a22 = 1; + a0 = 1; + a18 = 0; + a15 = 0; + a12 = 12; + a27 = 1; + a3 = 6; + }else{ + a4 = 1; + a15 = 0; + a18 = 1; + a22 = 1; + a27 = 1; + } + return 24; + } else if(((a3==4)&&(((a6==1)&&(((((((a12==8)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==3)))&&(a20==1))&&!(a0==1))&&!(a27==1))&&(a15==1))&&(a4==1)))&&(a5==1)))){ + if((a4==1)){ + a22 = 1; + a0 = 1; + a27 = 1; + a3 = 8; + a18 = 0; + }else{ + a3 = 8; + a18 = 0; + a4 = 0; + a15 = 0; + a5 = 0; + a12 = 9; + a22 = 0; + a0 = 1; + } + return 21; + } else if((((a20==1)&&(((((((a5==1)&&(((input==2)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&(a0==1)))&&(a3==6))&&!(a4==1))&&(a12==9))&&!(a15==1))&&!(a6==1)))&&!(a27==1))){ + a12 = 10; + a22 = 0; + a4 = 1; + a27 = 1; + a5 = 0; + a18 = 0; + return 21; + } else if(((!(a15==1)&&((((a20==1)&&((!(a27==1)&&((((((!(a22==1)&&(a18==1))&&(a3==7))||((a3==7)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==5))&&(a6==1)))&&(a4==1)))&&!(a5==1))&&(a0==1)))&&(a12==10))){ + a22 = 1; + a15 = 1; + a3 = 4; + a27 = 1; + a18 = 1; + a5 = 1; + a12 = 8; + return -1; + } else if(((!(a5==1)&&((((a12==12)&&((a15==1)&&((a0==1)&&(((((input==2)&&(a3==6))&&!(a6==1))&&!(a18==1))&&!(a22==1)))))&&(a20==1))&&(a4==1)))&&(a27==1))){ + a18 = 1; + a3 = 4; + a5 = 1; + a12 = 8; + a6 = 1; + a22 = 1; + return -1; + } else if(((((a12==8)&&((a27==1)&&(((a4==1)&&((a0==1)&&((a5==1)&&((a3==5)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==4))))))&&!(a6==1))))&&(a20==1))&&!(a15==1))){ + a0 = 0; + a4 = 0; + a18 = 1; + a22 = 0; + a3 = 6; + return 26; + } else if(((((a20==1)&&((a3==8)&&((a12==11)&&(((a15==1)&&(!(a5==1)&&(((input==2)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&!(a27==1))))&&(a0==1)))))&&!(a4==1))&&(a6==1))){ + a5 = 1; + a12 = 8; + a22 = 1; + a18 = 1; + a3 = 4; + a27 = 1; + a4 = 1; + return -1; + } else if(((!(a22==1)&&(!(a18==1)&&((a6==1)&&(((!(a4==1)&&(((((input==2)&&!(a5==1))&&(a20==1))&&(a3==4))&&(a0==1)))&&!(a15==1))&&(a27==1)))))&&(a12==11))){ + a15 = 1; + a4 = 1; + a18 = 1; + a12 = 8; + a5 = 1; + a22 = 1; + return -1; + } else if(((a15==1)&&((((a5==1)&&(((a4==1)&&(!(a0==1)&&((a20==1)&&((a22==1)&&((a12==12)&&(((a18==1)||!(a18==1))&&(input==3)))))))&&(a3==5)))&&(a6==1))&&(a27==1)))){ + a15 = 0; + a18 = 0; + a0 = 1; + a3 = 6; + a12 = 10; + return -1; + } else if(((!(a27==1)&&((a5==1)&&((a20==1)&&((a12==12)&&((a0==1)&&((a15==1)&&(!(a4==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))||((!(a18==1)&&(a22==1))&&(a3==6)))&&(input==1)))))))))&&!(a6==1))){ + a15 = 0; + a3 = 6; + a6 = 1; + a12 = 11; + a22 = 0; + a27 = 1; + a18 = 0; + return 26; + } else if(((a5==1)&&(((a12==8)&&((a4==1)&&((a22==1)&&((a20==1)&&((a27==1)&&((a0==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&(a6==1))&&(a3==6))))))))&&!(a15==1)))){ + a18 = 1; + a5 = 0; + a6 = 0; + a15 = 1; + return 26; + } else if(((a22==1)&&((!(a5==1)&&(((((a27==1)&&((a3==5)&&(!(a6==1)&&((a12==9)&&(((a18==1)||!(a18==1))&&(input==1))))))&&!(a4==1))&&(a20==1))&&(a0==1)))&&(a15==1)))){ + if((a12==8)){ + a12 = 12; + a5 = 1; + a0 = 0; + a3 = 7; + a18 = 1; + }else{ + a5 = 1; + a6 = 1; + a15 = 0; + a18 = 0; + a3 = 6; + a12 = 11; + } + return 24; + } else if((((a12==10)&&(((a6==1)&&((a22==1)&&(!(a5==1)&&((a3==5)&&((a4==1)&&((((input==4)&&((a18==1)||!(a18==1)))&&(a20==1))&&!(a0==1)))))))&&!(a15==1)))&&!(a27==1))){ + if((a3==8)){ + a5 = 1; + a15 = 1; + a27 = 1; + a0 = 1; + a18 = 0; + a12 = 8; + a22 = 0; + }else{ + a15 = 1; + a0 = 1; + a22 = 0; + a18 = 0; + a6 = 0; + a5 = 1; + a27 = 1; + a3 = 7; + a12 = 8; + } + return 26; + } else if(((a15==1)&&((a3==8)&&((!(a6==1)&&((a20==1)&&(!(a5==1)&&(!(a27==1)&&((a12==8)&&(((((a18==1)||!(a18==1))&&(input==5))&&(a22==1))&&!(a4==1)))))))&&!(a0==1))))){ + if((a6==1)){ + a6 = 1; + a15 = 0; + a3 = 6; + a27 = 1; + a0 = 1; + a18 = 1; + a22 = 0; + a5 = 1; + }else{ + a3 = 7; + a18 = 1; + a22 = 0; + a6 = 1; + a0 = 1; + a27 = 1; + a12 = 10; + a5 = 1; + a4 = 1; + a15 = 0; + } + return -1; + } else if((((a18==1)&&((a0==1)&&(((((((a6==1)&&((a3==8)&&((input==3)&&!(a15==1))))&&!(a22==1))&&(a20==1))&&!(a4==1))&&(a27==1))&&(a5==1))))&&(a12==11))){ + a12 = 12; + a5 = 0; + a3 = 6; + a15 = 1; + a4 = 1; + return 24; + } else if(((a0==1)&&((((((((a12==8)&&(((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))||((a3==5)&&(!(a18==1)&&(a22==1))))&&(input==2)))&&!(a27==1))&&(a20==1))&&(a4==1))&&!(a15==1))&&(a6==1))&&!(a5==1)))){ + a18 = 1; + a3 = 4; + a5 = 1; + a22 = 1; + a27 = 1; + a15 = 1; + return -1; + } else if((((!(a5==1)&&((((((a15==1)&&((((a4==1)&&(input==1))&&(a18==1))&&(a0==1)))&&(a3==4))&&!(a22==1))&&(a20==1))&&(a12==10)))&&(a27==1))&&(a6==1))){ + a5 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if((!(a5==1)&&((a6==1)&&(!(a27==1)&&(((a4==1)&&((((a0==1)&&(!(a15==1)&&(((a3==8)&&(input==5))&&(a12==12))))&&!(a18==1))&&(a22==1)))&&(a20==1)))))){ + a18 = 1; + a27 = 1; + a3 = 4; + a15 = 1; + a5 = 1; + a12 = 8; + return -1; + } else if((((a20==1)&&((a3==8)&&(((!(a27==1)&&((a22==1)&&((!(a18==1)&&((a5==1)&&(!(a4==1)&&(input==5))))&&(a0==1))))&&(a15==1))&&(a12==8))))&&(a6==1))){ + a18 = 1; + a5 = 0; + a15 = 0; + a12 = 12; + a6 = 0; + a27 = 1; + a3 = 7; + return -1; + } else if(((a12==8)&&((((a4==1)&&((((!(a15==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))||(((a22==1)&&!(a18==1))&&(a3==8)))&&(input==4)))&&!(a27==1))&&(a5==1))&&(a20==1)))&&!(a0==1))&&(a6==1)))){ + a0 = 1; + a3 = 7; + a15 = 1; + a18 = 1; + a22 = 1; + a27 = 1; + return -1; + } else if(((a27==1)&&(!(a5==1)&&((a3==8)&&((((a20==1)&&((a4==1)&&(!(a15==1)&&((((input==3)&&!(a18==1))&&!(a22==1))&&!(a6==1)))))&&!(a0==1))&&(a12==10)))))){ + a5 = 1; + a15 = 1; + a3 = 6; + a0 = 1; + a12 = 11; + a4 = 0; + return 26; + } else if(((!(a15==1)&&((a0==1)&&(((a3==5)&&(((a27==1)&&(((!(a6==1)&&((a5==1)&&(input==4)))&&(a12==12))&&(a4==1)))&&(a20==1)))&&!(a18==1))))&&!(a22==1))){ + if((a18==1)){ + a12 = 11; + a0 = 0; + a15 = 1; + a18 = 1; + a3 = 7; + a5 = 0; + }else{ + a4 = 0; + a22 = 1; + a6 = 1; + a15 = 1; + a12 = 11; + a5 = 0; + } + return -1; + } else if(((((!(a27==1)&&(!(a15==1)&&(!(a6==1)&&(!(a5==1)&&(((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==3))&&(a12==8))&&!(a4==1))))))&&(a3==4))&&!(a0==1))&&(a20==1))){ + a22 = 0; + a3 = 6; + a6 = 1; + a18 = 1; + a0 = 1; + a27 = 1; + a15 = 1; + a5 = 1; + return -1; + } else if((!(a6==1)&&(!(a5==1)&&(!(a0==1)&&((((a15==1)&&((((a18==1)&&(((a3==7)&&(input==5))&&(a20==1)))&&!(a22==1))&&!(a27==1)))&&!(a4==1))&&(a12==8)))))){ + a18 = 0; + a0 = 1; + a4 = 1; + a6 = 1; + a5 = 1; + a27 = 1; + return 21; + } else if((((!(a22==1)&&(((a15==1)&&((a3==5)&&((a27==1)&&((a12==10)&&(((a6==1)&&((a5==1)&&(input==2)))&&(a18==1))))))&&(a20==1)))&&!(a0==1))&&(a4==1))){ + a0 = 1; + a6 = 0; + a3 = 8; + a15 = 0; + return -1; + } else if(((!(a4==1)&&(!(a0==1)&&((a20==1)&&((a12==11)&&((a5==1)&&((a3==7)&&((a27==1)&&((a22==1)&&((((a18==1)||!(a18==1))&&(input==6))&&!(a15==1))))))))))&&(a6==1))){ + a4 = 1; + a3 = 5; + a15 = 1; + a12 = 9; + a0 = 1; + a6 = 0; + a27 = 0; + a18 = 0; + return 26; + } else if(((((a22==1)&&((!(a4==1)&&((a27==1)&&((a3==6)&&(!(a18==1)&&(!(a5==1)&&(!(a6==1)&&((input==4)&&!(a0==1))))))))&&!(a15==1)))&&(a12==8))&&(a20==1))){ + a6 = 1; + a15 = 1; + a5 = 1; + a0 = 1; + a3 = 4; + a4 = 1; + a18 = 1; + return -1; + } else if(((!(a4==1)&&((a20==1)&&((a3==7)&&(((((((((a18==1)||!(a18==1))&&(input==4))&&!(a6==1))&&!(a0==1))&&(a15==1))&&(a27==1))&&(a12==9))&&(a5==1)))))&&!(a22==1))){ + if((a6==1)){ + a6 = 1; + a12 = 11; + a18 = 1; + a5 = 0; + a15 = 0; + a3 = 4; + }else{ + a27 = 0; + a18 = 0; + a3 = 8; + a0 = 1; + a12 = 11; + } + return 21; + } else if(((a20==1)&&(((!(a0==1)&&(((a5==1)&&((a12==8)&&(!(a4==1)&&((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==4))&&(a15==1)))))&&!(a6==1)))&&(a3==8))&&!(a27==1)))){ + a3 = 5; + a0 = 1; + a27 = 1; + a6 = 1; + a4 = 1; + a22 = 1; + a18 = 0; + return -1; + } else if((((a4==1)&&(((a5==1)&&(((a20==1)&&(((a12==11)&&((((input==2)&&((a18==1)||!(a18==1)))&&(a3==5))&&(a22==1)))&&(a27==1)))&&!(a6==1)))&&(a15==1)))&&(a0==1))){ + a3 = 6; + a18 = 0; + return 26; + } else if(((a12==12)&&((((a3==4)&&((a20==1)&&((a0==1)&&(!(a4==1)&&((a15==1)&&(((input==5)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&!(a27==1)))))))&&!(a5==1))&&(a6==1)))){ + a5 = 1; + a22 = 1; + a18 = 1; + a4 = 1; + a3 = 5; + a12 = 10; + a15 = 0; + return -1; + } else if(((a12==12)&&(!(a5==1)&&(((!(a4==1)&&(((((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==2))&&(a27==1))&&!(a0==1))&&(a6==1)))&&(a20==1))&&(a15==1))))){ + a22 = 1; + a18 = 0; + a0 = 1; + a12 = 8; + a3 = 4; + a5 = 1; + return -1; + } else if((((a0==1)&&(((((a27==1)&&(!(a6==1)&&((a20==1)&&(((input==6)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a3==5)))))&&(a15==1))&&(a12==9))&&!(a5==1)))&&(a4==1))){ + a0 = 0; + a4 = 0; + a3 = 7; + a15 = 0; + a5 = 1; + a12 = 11; + a18 = 0; + a22 = 0; + return 26; + } else if(((a3==4)&&((((a15==1)&&((a4==1)&&((a20==1)&&(!(a22==1)&&(((a18==1)&&(((input==2)&&(a27==1))&&!(a5==1)))&&(a12==10))))))&&!(a0==1))&&!(a6==1)))){ + a18 = 0; + a3 = 5; + a0 = 1; + a6 = 1; + a4 = 0; + a15 = 0; + return 21; + } else if((!(a0==1)&&((a5==1)&&((a12==11)&&((a3==6)&&(!(a15==1)&&(((a27==1)&&(((a20==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==1)))&&!(a4==1)))&&!(a6==1)))))))){ + a4 = 1; + a18 = 1; + a5 = 0; + a22 = 1; + a6 = 1; + a0 = 1; + a12 = 10; + a3 = 8; + return -1; + } else if(((a3==7)&&(((a6==1)&&(((a0==1)&&((a15==1)&&((!(a27==1)&&((a22==1)&&((a4==1)&&((input==6)&&((a18==1)||!(a18==1))))))&&(a12==10))))&&(a20==1)))&&!(a5==1)))){ + a18 = 1; + a12 = 11; + a4 = 0; + a3 = 8; + return 26; + } else if((((((!(a0==1)&&((a12==10)&&(!(a6==1)&&((((((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))||((!(a18==1)&&(a22==1))&&(a3==8)))&&(input==6))&&!(a27==1)))))&&(a20==1))&&!(a4==1))&&(a15==1))&&(a5==1))){ + a27 = 1; + a3 = 5; + a18 = 0; + a6 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if(((!(a27==1)&&(((a4==1)&&((!(a6==1)&&(((!(a5==1)&&((((a18==1)||!(a18==1))&&(input==2))&&(a22==1)))&&(a20==1))&&(a0==1)))&&(a3==5)))&&(a12==11)))&&(a15==1))){ + a12 = 10; + a18 = 0; + a6 = 1; + a15 = 0; + a3 = 8; + a4 = 0; + return -1; + } else if((!(a18==1)&&((a27==1)&&((((a20==1)&&(((((a12==9)&&(((a4==1)&&(input==1))&&!(a22==1)))&&(a6==1))&&(a0==1))&&!(a15==1)))&&(a5==1))&&(a3==4))))){ + a12 = 10; + a3 = 6; + return 21; + } else if(((a20==1)&&((a27==1)&&(!(a0==1)&&((a12==8)&&(!(a5==1)&&((input==3)&&((!(a6==1)&&((a3==8)&&(!(a4==1)&&((a15==1)&&(!(a18==1)&&!(a22==1))))))||((a6==1)&&(((a4==1)&&(((a18==1)&&(a22==1))&&!(a15==1)))&&(a3==4))))))))))){ + a12 = 9; + a4 = 0; + a3 = 6; + a27 = 0; + a6 = 1; + a0 = 1; + a15 = 1; + a18 = 1; + a5 = 1; + a22 = 0; + return 24; + } else if((((!(a4==1)&&((a12==11)&&((a20==1)&&((!(a0==1)&&(((input==2)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1)))))&&!(a15==1)))&&(a6==1)))))&&(a5==1))&&!(a27==1))){ + a0 = 1; + a12 = 8; + a6 = 0; + a4 = 1; + a3 = 6; + a22 = 1; + a15 = 1; + a27 = 1; + a18 = 0; + return -1; + } else if((!(a0==1)&&(!(a15==1)&&(((a27==1)&&(((!(a6==1)&&(((input==5)&&((((a3==4)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))||((a3==5)&&((a22==1)&&(a18==1)))))&&(a4==1)))&&(a20==1))&&(a12==10)))&&(a5==1))))){ + a22 = 0; + a18 = 1; + a4 = 0; + a0 = 1; + a3 = 8; + return 21; + } else if((!(a6==1)&&((!(a18==1)&&((a4==1)&&(((a5==1)&&(((((a3==6)&&((a0==1)&&(input==5)))&&(a15==1))&&(a12==10))&&!(a22==1)))&&(a27==1))))&&(a20==1)))){ + return 26; + } else if(((((a6==1)&&(((a20==1)&&((a0==1)&&(!(a5==1)&&(!(a15==1)&&((a12==8)&&(((input==4)&&(a3==5))&&(a4==1)))))))&&(a27==1)))&&(a18==1))&&!(a22==1))){ + a12 = 10; + a3 = 6; + a6 = 0; + a15 = 1; + a4 = 0; + a22 = 1; + return 21; + } else if((((a0==1)&&(((!(a27==1)&&((((a12==11)&&((a3==5)&&(!(a5==1)&&(((a18==1)||!(a18==1))&&(input==4)))))&&!(a6==1))&&(a22==1)))&&(a15==1))&&(a4==1)))&&(a20==1))){ + a12 = 10; + a18 = 1; + a3 = 6; + a22 = 0; + a15 = 0; + a5 = 1; + return -1; + } else if((!(a0==1)&&((a12==11)&&(!(a4==1)&&((a20==1)&&(((((a15==1)&&(!(a27==1)&&((input==2)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))))&&(a6==1))&&(a5==1))&&(a3==4))))))){ + a22 = 1; + a12 = 12; + a27 = 1; + a5 = 0; + a15 = 0; + a3 = 8; + a18 = 0; + a0 = 1; + return -1; + } else if(((a12==10)&&((a20==1)&&((a5==1)&&(!(a27==1)&&((a4==1)&&(!(a15==1)&&(((!(a6==1)&&((input==2)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))&&(a3==5))&&!(a0==1))))))))){ + a12 = 11; + a3 = 7; + a27 = 1; + a22 = 1; + a4 = 0; + a18 = 0; + return 26; + } else if((!(a5==1)&&((((((!(a27==1)&&((a4==1)&&(((input==4)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a3==5))))&&(a20==1))&&(a0==1))&&(a6==1))&&(a12==9))&&(a15==1)))){ + a27 = 1; + a22 = 0; + a18 = 1; + a3 = 6; + a12 = 11; + a6 = 0; + return 21; + } else if(((a12==9)&&(((!(a27==1)&&((!(a15==1)&&(!(a4==1)&&((a20==1)&&((((a3==7)&&((a18==1)&&(a22==1)))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==6))))&&(input==1)))))&&(a5==1)))&&(a6==1))&&!(a0==1)))){ + if((a3==6)){ + a0 = 1; + a3 = 4; + a4 = 1; + a18 = 0; + a15 = 1; + a27 = 1; + a12 = 8; + a22 = 1; + }else{ + a27 = 1; + a15 = 1; + a22 = 1; + a12 = 11; + a18 = 1; + a3 = 8; + a0 = 1; + } + return -1; + } else if((((a12==12)&&((((a5==1)&&((a4==1)&&(!(a6==1)&&(((a20==1)&&((input==1)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a3==8)))))&&(a27==1))&&!(a0==1)))&&(a15==1))){ + a18 = 0; + a27 = 0; + a12 = 9; + a3 = 7; + a0 = 1; + a22 = 1; + a15 = 0; + return 26; + } else if(((a20==1)&&((a6==1)&&((((((((a0==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==5)))&&!(a27==1))&&(a3==7))&&(a4==1))&&(a5==1))&&(a15==1))&&(a12==10))))){ + a5 = 0; + a27 = 1; + a3 = 5; + a22 = 1; + a18 = 0; + return 26; + } else if((((!(a0==1)&&(!(a5==1)&&(((((!(a15==1)&&((input==2)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&(a3==7))&&!(a27==1))&&!(a6==1))&&(a4==1))))&&(a12==11))&&(a20==1))){ + a5 = 1; + a27 = 1; + a0 = 1; + a18 = 0; + a15 = 1; + a12 = 8; + a6 = 1; + a22 = 0; + a3 = 8; + return -1; + } else if(((((((a12==11)&&(((!(a4==1)&&((input==1)&&((((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1))))||((a3==7)&&((a18==1)&&(a22==1))))))&&!(a27==1))&&(a0==1)))&&!(a6==1))&&!(a5==1))&&(a15==1))&&(a20==1))){ + if((a22==1)){ + a18 = 0; + a0 = 0; + a12 = 8; + a3 = 8; + a5 = 1; + a6 = 1; + a22 = 1; + a27 = 1; + }else{ + a18 = 0; + a27 = 1; + a22 = 0; + a3 = 7; + a12 = 10; + } + return -1; + } else if(((a5==1)&&((a27==1)&&(((!(a22==1)&&(((a3==7)&&((!(a4==1)&&((!(a6==1)&&(input==3))&&(a20==1)))&&(a12==11)))&&(a18==1)))&&(a15==1))&&(a0==1))))){ + a22 = 1; + a6 = 1; + a4 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((!(a4==1)&&(((((a20==1)&&(((a3==7)&&((!(a18==1)&&((a0==1)&&((input==4)&&(a12==9))))&&!(a27==1)))&&(a6==1)))&&(a5==1))&&!(a22==1))&&(a15==1)))){ + a5 = 0; + a3 = 5; + a15 = 0; + a12 = 12; + a27 = 1; + a18 = 1; + a22 = 1; + a4 = 1; + return -1; + } else if((((a12==10)&&(!(a4==1)&&(((((a3==4)&&((!(a0==1)&&((a6==1)&&((input==6)&&(a15==1))))&&(a20==1)))&&!(a18==1))&&!(a5==1))&&!(a22==1))))&&(a27==1))){ + a15 = 0; + a18 = 1; + a3 = 8; + a4 = 1; + a12 = 12; + a0 = 1; + a22 = 1; + return -1; + } else if((!(a22==1)&&((!(a5==1)&&((!(a4==1)&&((a12==10)&&(!(a27==1)&&((((((a18==1)||!(a18==1))&&(input==5))&&!(a6==1))&&(a20==1))&&(a3==6)))))&&(a15==1)))&&(a0==1)))){ + a15 = 0; + a12 = 8; + a18 = 1; + a4 = 1; + a3 = 8; + a5 = 1; + return -1; + } else if((((((((((input==3)&&((((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1))||(((a6==1)&&((!(a22==1)&&(a18==1))&&(a3==8)))||((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1)))))))&&(a27==1))&&(a20==1))&&(a4==1))&&!(a5==1))&&!(a0==1))&&!(a15==1))&&(a12==11))){ + a5 = 1; + a12 = 9; + a6 = 1; + a3 = 7; + a22 = 0; + a0 = 1; + a4 = 0; + a18 = 0; + a27 = 0; + return 21; + } else if(((a6==1)&&((a15==1)&&((!(a5==1)&&(!(a4==1)&&(!(a27==1)&&(((a12==10)&&((input==4)&&(((!(a18==1)&&(a22==1))&&(a3==7))||(((!(a18==1)&&!(a22==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7))))))&&(a20==1)))))&&(a0==1))))){ + a18 = 1; + a12 = 9; + a6 = 0; + a15 = 0; + a3 = 6; + a22 = 1; + a5 = 1; + return -1; + } else if(((!(a22==1)&&((((a0==1)&&((a3==6)&&(((a15==1)&&((((input==6)&&((a18==1)||!(a18==1)))&&!(a5==1))&&(a12==10)))&&!(a27==1))))&&!(a6==1))&&(a20==1)))&&!(a4==1))){ + a12 = 11; + a6 = 1; + a3 = 5; + a5 = 1; + a4 = 1; + a18 = 0; + a27 = 1; + return 26; + } else if(((a5==1)&&(!(a27==1)&&((a18==1)&&(((a4==1)&&((((a20==1)&&((a3==6)&&((a6==1)&&((input==5)&&(a22==1)))))&&(a15==1))&&(a12==8)))&&!(a0==1)))))){ + a3 = 4; + a0 = 1; + a27 = 1; + a18 = 0; + a5 = 0; + return -1; + } else if((!(a18==1)&&(((a0==1)&&((a4==1)&&((a27==1)&&((a3==8)&&((!(a5==1)&&((!(a15==1)&&((input==2)&&(a6==1)))&&(a12==12)))&&!(a22==1))))))&&(a20==1)))){ + a5 = 1; + a12 = 10; + a3 = 5; + a22 = 1; + return -1; + } else if(((((a6==1)&&(!(a15==1)&&((a20==1)&&((a5==1)&&((((a27==1)&&((input==2)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))))&&(a12==10))&&!(a4==1))))))&&(a0==1))&&(a3==4))){ + a4 = 1; + a18 = 1; + a3 = 6; + a15 = 1; + a22 = 1; + a5 = 0; + a12 = 12; + return 26; + } else if((!(a5==1)&&((((((a0==1)&&(((a12==8)&&((((a3==5)&&(!(a18==1)&&(a22==1)))||(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1)))))&&(input==5)))&&(a4==1)))&&(a15==1))&&(a27==1))&&(a20==1))&&!(a6==1)))){ + a4 = 0; + a3 = 6; + a18 = 0; + a22 = 1; + a15 = 0; + a12 = 9; + return 21; + } else if((!(a27==1)&&(((a20==1)&&((((a12==11)&&((((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==6))&&!(a5==1))&&(a4==1)))&&(a15==1))&&!(a6==1)))&&!(a0==1)))){ + a22 = 1; + a5 = 1; + a18 = 1; + a3 = 4; + a0 = 1; + return 26; + } else if((((a3==7)&&((a27==1)&&(((!(a4==1)&&((a5==1)&&((((input==2)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&!(a15==1))&&(a0==1))))&&(a12==12))&&(a20==1))))&&(a6==1))){ + a6 = 0; + a18 = 0; + a12 = 10; + a0 = 0; + a22 = 0; + a15 = 1; + return -1; + } else if(((((((a5==1)&&((a12==12)&&(((((a20==1)&&((a0==1)&&(input==3)))&&(a18==1))&&(a22==1))&&(a4==1))))&&(a15==1))&&(a3==4))&&!(a27==1))&&(a6==1))){ + a4 = 0; + a15 = 0; + a18 = 0; + a27 = 1; + a12 = 10; + a22 = 0; + a3 = 7; + return 26; + } else if(((((((((((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==5))&&(a0==1))&&(a12==9))&&(a4==1))&&(a15==1))&&(a3==5))&&!(a6==1))&&(a20==1))&&(a27==1))&&(a5==1))){ + a0 = 0; + a22 = 0; + a12 = 8; + a18 = 0; + a3 = 7; + a5 = 0; + return 24; + } else if(((((((a12==10)&&((((a0==1)&&((a6==1)&&((!(a4==1)&&(input==2))&&(a5==1))))&&!(a27==1))&&(a22==1)))&&(a3==5))&&(a20==1))&&(a15==1))&&(a18==1))){ + a22 = 0; + a4 = 1; + a27 = 1; + a3 = 6; + a5 = 0; + a18 = 0; + a15 = 0; + a6 = 0; + return 21; + } else if((((a6==1)&&(((a18==1)&&(((((((a3==4)&&((input==4)&&(a12==11)))&&(a20==1))&&!(a4==1))&&(a27==1))&&!(a5==1))&&!(a15==1)))&&!(a22==1)))&&(a0==1))){ + a4 = 1; + a3 = 5; + a6 = 0; + a12 = 10; + return 21; + } else if((!(a27==1)&&(!(a6==1)&&((!(a5==1)&&(!(a15==1)&&((a12==11)&&(!(a4==1)&&(((a20==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a22==1)))&&!(a0==1))))))&&(a3==5))))){ + a18 = 0; + a12 = 8; + a6 = 1; + a3 = 6; + a5 = 1; + a22 = 0; + a0 = 1; + return 26; + } else if(((a12==11)&&(((a27==1)&&(((a3==6)&&(((a20==1)&&((a15==1)&&((a0==1)&&((a5==1)&&((input==5)&&((a18==1)||!(a18==1)))))))&&!(a6==1)))&&(a4==1)))&&!(a22==1)))){ + a18 = 0; + a12 = 10; + a5 = 0; + a22 = 1; + a27 = 0; + a15 = 0; + a6 = 1; + a3 = 7; + return 26; + } else if((((a6==1)&&((a0==1)&&((!(a22==1)&&(((a12==12)&&(((a3==8)&&((!(a27==1)&&(input==1))&&!(a5==1)))&&(a18==1)))&&(a4==1)))&&(a15==1))))&&(a20==1))){ + a12 = 11; + a3 = 7; + a4 = 0; + a27 = 1; + return 21; + } else if((!(a22==1)&&((a5==1)&&((!(a6==1)&&((a4==1)&&(!(a27==1)&&((a3==6)&&(((!(a0==1)&&((input==1)&&((a18==1)||!(a18==1))))&&!(a15==1))&&(a12==8))))))&&(a20==1))))){ + a27 = 1; + a0 = 1; + a15 = 1; + a3 = 5; + a6 = 1; + a18 = 0; + a22 = 1; + return 21; + } else if(((!(a5==1)&&((((a20==1)&&((a12==9)&&((((((input==2)&&(a3==5))&&(a0==1))&&(a18==1))&&!(a22==1))&&!(a27==1))))&&(a6==1))&&!(a15==1)))&&!(a4==1))){ + a12 = 8; + a3 = 4; + a22 = 1; + a5 = 1; + a4 = 1; + a15 = 1; + a27 = 1; + return -1; + } else if(((((!(a5==1)&&(!(a27==1)&&((a12==8)&&(!(a22==1)&&(((a20==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a3==5)))&&(a4==1))))))&&(a15==1))&&!(a0==1))&&(a6==1))){ + a0 = 1; + a5 = 1; + a3 = 8; + a27 = 1; + a18 = 0; + return -1; + } else if((!(a22==1)&&((a20==1)&&(((((!(a15==1)&&(!(a4==1)&&((a3==5)&&(((a12==11)&&(input==3))&&!(a0==1)))))&&!(a18==1))&&!(a27==1))&&!(a5==1))&&(a6==1))))){ + a27 = 1; + a6 = 0; + a3 = 8; + a5 = 1; + a15 = 1; + a4 = 1; + a0 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if(((a12==11)&&((a6==1)&&((a15==1)&&((a20==1)&&((!(a27==1)&&(((((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==6))&&!(a4==1))&&(a3==8))&&!(a0==1)))&&(a5==1))))))){ + a18 = 0; + a27 = 1; + a22 = 1; + a4 = 1; + a12 = 8; + a0 = 1; + a3 = 7; + return 21; + } else if((((a20==1)&&((((a0==1)&&(((!(a4==1)&&((input==1)&&((((a22==1)&&!(a18==1))&&(a3==8))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1)))))))&&(a27==1))&&(a5==1)))&&(a12==12))&&(a15==1)))&&!(a6==1))){ + a6 = 1; + a4 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if((((!(a6==1)&&(((a3==4)&&((a4==1)&&(((((a5==1)&&((input==5)&&!(a15==1)))&&!(a18==1))&&(a20==1))&&(a22==1))))&&!(a27==1)))&&(a12==10))&&!(a0==1))){ + a3 = 7; + a4 = 0; + a5 = 0; + a18 = 1; + a6 = 1; + a27 = 1; + a15 = 1; + a12 = 8; + return 21; + } else if((((a22==1)&&(!(a15==1)&&(!(a5==1)&&(((a12==9)&&(((!(a0==1)&&(!(a6==1)&&((input==6)&&((a18==1)||!(a18==1)))))&&!(a27==1))&&(a20==1)))&&!(a4==1)))))&&(a3==4))){ + if((a22==1)){ + a12 = 11; + a3 = 7; + a18 = 0; + a5 = 1; + a4 = 1; + a27 = 1; + a22 = 0; + }else{ + a18 = 0; + a22 = 0; + a5 = 1; + a12 = 10; + } + return -1; + } else if(((a4==1)&&((a18==1)&&((a12==9)&&((a5==1)&&(((a3==6)&&(!(a15==1)&&((a20==1)&&((a22==1)&&((a6==1)&&((a0==1)&&(input==1)))))))&&!(a27==1))))))){ + a12 = 8; + a3 = 4; + a27 = 1; + a15 = 1; + return -1; + } else if((((((a15==1)&&(((((a6==1)&&((input==5)&&((((a22==1)&&(a18==1))&&(a3==7))||((((a18==1)&&!(a22==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6))))))&&!(a27==1))&&!(a4==1))&&(a20==1)))&&!(a5==1))&&(a0==1))&&(a12==11))){ + a18 = 0; + a12 = 9; + a22 = 1; + a5 = 1; + a3 = 8; + return -1; + } else if((((a12==8)&&((a3==8)&&(!(a15==1)&&(!(a0==1)&&((a4==1)&&((((a20==1)&&((!(a22==1)&&(input==2))&&(a6==1)))&&!(a27==1))&&(a18==1)))))))&&(a5==1))){ + a3 = 4; + a15 = 1; + a22 = 1; + a0 = 1; + a6 = 0; + a27 = 1; + return -1; + } else if((((!(a15==1)&&(((a4==1)&&(((a0==1)&&((a5==1)&&((a20==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==5)))))&&!(a27==1)))&&(a3==5)))&&(a6==1))&&(a12==12))){ + a22 = 0; + a12 = 11; + a3 = 7; + a18 = 1; + a27 = 1; + return 24; + } return calculate_output65(input); + } + + int calculate_output65(int input) { + if(((a27==1)&&(!(a0==1)&&((a15==1)&&((a3==5)&&((((!(a4==1)&&(((input==1)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&!(a6==1)))&&(a12==10))&&!(a5==1))&&(a20==1))))))){ + a18 = 1; + a5 = 1; + a6 = 1; + a3 = 4; + a12 = 8; + a4 = 1; + a22 = 1; + a0 = 1; + return -1; + } else if(((a4==1)&&((a0==1)&&((a12==8)&&((a3==5)&&(!(a6==1)&&((!(a27==1)&&(((a5==1)&&((((a18==1)||!(a18==1))&&(input==2))&&(a20==1)))&&(a15==1)))&&(a22==1)))))))){ + a3 = 4; + a18 = 1; + a6 = 1; + a27 = 1; + return -1; + } else if(((!(a15==1)&&(((a27==1)&&((((((((input==2)&&(a18==1))&&!(a5==1))&&(a3==8))&&(a4==1))&&(a6==1))&&(a22==1))&&(a20==1)))&&(a0==1)))&&(a12==8))){ + if((a4==1)){ + a12 = 9; + a0 = 0; + a22 = 0; + a15 = 1; + a3 = 5; + }else{ + a12 = 11; + a5 = 1; + a0 = 0; + a6 = 0; + a15 = 1; + a3 = 4; + a4 = 0; + } + return 26; + } else if((!(a0==1)&&(((a4==1)&&((a27==1)&&((a18==1)&&((a5==1)&&((a3==5)&&(!(a6==1)&&((a12==8)&&(((a22==1)&&(input==6))&&(a20==1)))))))))&&(a15==1)))){ + a6 = 1; + a0 = 1; + a3 = 6; + a12 = 12; + a4 = 0; + a22 = 0; + a15 = 0; + return -1; + } else if(((a5==1)&&(!(a15==1)&&((a3==6)&&((((a12==11)&&((a6==1)&&(!(a0==1)&&(!(a4==1)&&((((a18==1)||!(a18==1))&&(input==5))&&(a20==1))))))&&(a22==1))&&(a27==1)))))){ + a0 = 1; + a3 = 4; + a12 = 8; + a4 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if((!(a4==1)&&((a6==1)&&(((((!(a0==1)&&((a20==1)&&(((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==7)))||((a3==7)&&((a22==1)&&!(a18==1))))&&(input==3))))&&(a12==8))&&(a15==1))&&(a27==1))&&!(a5==1))))){ + a3 = 4; + a4 = 1; + a22 = 1; + a12 = 10; + a6 = 0; + a15 = 0; + a5 = 1; + a0 = 1; + a18 = 0; + return -1; + } else if(((a12==9)&&(!(a15==1)&&((((a20==1)&&(!(a27==1)&&((a5==1)&&((a4==1)&&((input==1)&&(((((a18==1)&&!(a22==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4)))||(((a18==1)&&(a22==1))&&(a3==5))))))))&&!(a6==1))&&(a0==1))))){ + a6 = 1; + a22 = 1; + a5 = 0; + a18 = 1; + a15 = 1; + a27 = 1; + a3 = 7; + a12 = 11; + return 24; + } else if((!(a4==1)&&((a12==9)&&(!(a6==1)&&(((a20==1)&&((a0==1)&&((a15==1)&&((a3==8)&&(((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==3))&&(a27==1))))))&&(a5==1)))))){ + a4 = 1; + a18 = 1; + a22 = 0; + a3 = 4; + a12 = 12; + a5 = 0; + return 24; + } else if((((a20==1)&&(((a4==1)&&((a15==1)&&((a6==1)&&(((!(a22==1)&&((((a18==1)||!(a18==1))&&(input==1))&&!(a5==1)))&&!(a0==1))&&(a12==9)))))&&!(a27==1)))&&(a3==4))){ + a15 = 0; + a3 = 5; + a18 = 0; + a5 = 1; + a12 = 8; + a4 = 0; + return 21; + } else if((((a15==1)&&((a5==1)&&((a20==1)&&((((a6==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==6))&&(a27==1)))&&(a12==11))&&!(a4==1)))))&&(a0==1))){ + a3 = 4; + a22 = 1; + a4 = 1; + a18 = 1; + a0 = 0; + a15 = 0; + return -1; + } else if(((!(a22==1)&&((a20==1)&&(((!(a6==1)&&((((((a0==1)&&(input==6))&&(a18==1))&&(a12==11))&&(a5==1))&&(a27==1)))&&(a3==7))&&!(a4==1))))&&(a15==1))){ + a6 = 1; + a12 = 10; + return -1; + } else if((((!(a5==1)&&(((a12==10)&&(!(a6==1)&&((a0==1)&&(((input==1)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5))))&&(a27==1)))))&&!(a4==1)))&&(a15==1))&&(a20==1))){ + a3 = 4; + a27 = 0; + a5 = 1; + a4 = 1; + a15 = 0; + a18 = 1; + a22 = 1; + return 21; + } else if(((!(a6==1)&&((a3==7)&&(((!(a27==1)&&(((((((a18==1)||!(a18==1))&&(input==6))&&(a4==1))&&(a20==1))&&(a15==1))&&(a12==11)))&&(a22==1))&&!(a5==1))))&&!(a0==1))){ + a27 = 1; + a18 = 0; + a5 = 1; + a0 = 1; + a3 = 4; + a12 = 8; + return 21; + } else if(((!(a4==1)&&((!(a27==1)&&(((!(a5==1)&&(((a12==12)&&((((a18==1)||!(a18==1))&&(input==6))&&(a0==1)))&&(a22==1)))&&!(a6==1))&&(a20==1)))&&(a3==4)))&&(a15==1))){ + a27 = 1; + a15 = 0; + a18 = 0; + a12 = 9; + a22 = 0; + return 21; + } else if(((!(a15==1)&&(((a6==1)&&(!(a0==1)&&(!(a5==1)&&(((a12==11)&&(((((a18==1)||!(a18==1))&&(input==1))&&!(a22==1))&&(a20==1)))&&!(a27==1)))))&&!(a4==1)))&&(a3==8))){ + if((a18==1)){ + a18 = 1; + a22 = 1; + a15 = 1; + a5 = 1; + a12 = 8; + a27 = 1; + a3 = 4; + }else{ + a0 = 1; + a3 = 5; + a12 = 12; + a18 = 1; + a6 = 0; + } + return -1; + } else if((!(a6==1)&&((!(a4==1)&&(((a3==6)&&((a0==1)&&((!(a5==1)&&((a12==12)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==1))))&&(a20==1))))&&(a15==1)))&&!(a27==1)))){ + a27 = 1; + a12 = 11; + a18 = 0; + a3 = 8; + a6 = 1; + a22 = 0; + a4 = 1; + return 24; + } else if(((a12==9)&&((a5==1)&&((a20==1)&&((!(a0==1)&&(((input==2)&&((((((!(a22==1)&&!(a18==1))&&(a4==1))&&(a3==8))&&!(a6==1))||(((!(a4==1)&&((a18==1)&&(a22==1)))&&(a3==4))&&(a6==1)))||(((!(a4==1)&&(!(a18==1)&&(a22==1)))&&(a3==4))&&(a6==1))))&&!(a27==1)))&&!(a15==1)))))){ + a6 = 0; + a22 = 1; + a18 = 0; + a0 = 1; + a12 = 8; + a15 = 1; + a27 = 1; + a3 = 7; + a4 = 1; + return 26; + } else if((!(a0==1)&&((((a6==1)&&((a20==1)&&((!(a22==1)&&(!(a5==1)&&(!(a27==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a15==1)))))&&(a3==8))))&&(a12==10))&&(a4==1)))){ + a4 = 0; + a0 = 1; + a18 = 1; + a22 = 1; + a15 = 0; + a12 = 12; + return -1; + } else if(((((a20==1)&&((!(a0==1)&&(((a12==8)&&((a27==1)&&((input==2)&&(((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7))))))&&!(a4==1)))&&!(a15==1)))&&(a6==1))&&!(a5==1))){ + a6 = 0; + a18 = 0; + a22 = 1; + a3 = 8; + return -1; + } else if((((((a3==6)&&((a5==1)&&(((a27==1)&&((a6==1)&&(((a18==1)&&((input==4)&&!(a15==1)))&&(a12==9))))&&(a20==1))))&&(a22==1))&&(a4==1))&&!(a0==1))){ + a12 = 10; + a6 = 0; + a22 = 0; + a0 = 1; + a18 = 0; + return 21; + } else if((!(a5==1)&&((a12==9)&&(((!(a6==1)&&((((a3==6)&&(!(a27==1)&&(!(a0==1)&&(((a18==1)||!(a18==1))&&(input==5)))))&&(a20==1))&&(a4==1)))&&(a15==1))&&!(a22==1))))){ + a4 = 0; + a5 = 1; + a22 = 1; + a6 = 1; + a18 = 0; + return -1; + } else if(((!(a6==1)&&(((((a12==10)&&(((a20==1)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==1)))&&!(a0==1)))&&!(a15==1))&&!(a5==1))&&!(a27==1)))&&(a4==1))){ + a3 = 4; + a6 = 1; + a18 = 0; + a12 = 9; + a22 = 0; + a0 = 1; + a4 = 0; + a15 = 1; + return 21; + } else if((((!(a5==1)&&(((a6==1)&&((a15==1)&&(((((input==4)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a0==1))&&!(a4==1))&&(a3==8))))&&(a12==9)))&&(a20==1))&&!(a27==1))){ + a12 = 10; + a22 = 0; + a18 = 1; + a3 = 4; + a15 = 0; + a27 = 1; + return -1; + } else if((((((a4==1)&&(!(a27==1)&&(((((a12==9)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a22==1)))&&(a0==1))&&(a5==1))&&!(a15==1))))&&!(a6==1))&&(a3==8))&&(a20==1))){ + a6 = 1; + a12 = 8; + a3 = 4; + a27 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if(((a4==1)&&((a12==12)&&((((a0==1)&&((a20==1)&&((a15==1)&&((((input==4)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&(a6==1))&&(a27==1)))))&&(a5==1))&&(a3==4))))){ + a3 = 6; + a6 = 0; + a12 = 11; + a18 = 0; + a22 = 1; + return -1; + } else if((!(a6==1)&&(!(a27==1)&&(((a12==8)&&((a0==1)&&(((a20==1)&&((a15==1)&&((input==6)&&(((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==5))))))&&!(a4==1))))&&(a5==1))))){ + if((a3==7)){ + a3 = 8; + a18 = 0; + a27 = 1; + a0 = 0; + a5 = 0; + a15 = 0; + a22 = 0; + }else{ + a3 = 6; + a22 = 0; + a12 = 10; + a6 = 1; + a27 = 1; + a15 = 0; + a18 = 1; + a4 = 1; + } + return 26; + } else if((((a3==5)&&(((a5==1)&&((!(a27==1)&&(!(a22==1)&&((!(a6==1)&&((a20==1)&&((input==3)&&((a18==1)||!(a18==1)))))&&!(a4==1))))&&(a12==10)))&&(a15==1)))&&(a0==1))){ + a3 = 6; + a6 = 1; + a15 = 0; + a5 = 0; + a12 = 9; + a4 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if((((((a20==1)&&(((a12==9)&&(((a0==1)&&((input==2)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))))&&!(a15==1)))&&!(a27==1)))&&(a4==1))&&!(a6==1))&&!(a5==1))){ + a27 = 1; + a6 = 1; + a15 = 1; + a3 = 4; + a22 = 1; + a18 = 0; + a12 = 11; + return -1; + } else if(((a3==6)&&((a6==1)&&((a12==8)&&(!(a22==1)&&(((!(a27==1)&&((a5==1)&&((a0==1)&&((a20==1)&&((input==5)&&((a18==1)||!(a18==1)))))))&&(a4==1))&&!(a15==1))))))){ + a18 = 0; + a6 = 0; + a12 = 12; + a22 = 1; + a27 = 1; + a3 = 4; + return 26; + } else if(((a12==9)&&((((((a3==4)&&((((a6==1)&&(((input==4)&&(a20==1))&&(a0==1)))&&(a18==1))&&!(a5==1)))&&!(a27==1))&&!(a15==1))&&(a4==1))&&(a22==1)))){ + a5 = 1; + a15 = 1; + a12 = 8; + a27 = 1; + return -1; + } else if(((!(a5==1)&&(((a3==6)&&((a27==1)&&((a0==1)&&(!(a18==1)&&((((a4==1)&&((input==2)&&(a20==1)))&&!(a22==1))&&(a15==1))))))&&(a6==1)))&&(a12==11))){ + a5 = 1; + a18 = 1; + a15 = 0; + a22 = 1; + a6 = 0; + a27 = 0; + return 21; + } else if((((a20==1)&&(!(a27==1)&&((((a4==1)&&((a15==1)&&((((((a3==6)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==1))&&!(a5==1))))&&(a6==1))&&!(a0==1))))&&(a12==10))){ + a5 = 1; + a0 = 1; + a4 = 0; + a22 = 1; + a12 = 11; + a18 = 0; + a3 = 7; + a15 = 0; + a6 = 0; + return 26; + } else if(((((a0==1)&&(!(a5==1)&&((a6==1)&&((a3==7)&&((a20==1)&&(((((input==4)&&(a4==1))&&!(a27==1))&&(a18==1))&&(a15==1)))))))&&(a22==1))&&(a12==12))){ + a27 = 1; + a4 = 0; + a12 = 10; + a6 = 0; + a22 = 0; + a15 = 0; + a5 = 1; + a3 = 8; + return 21; + } else if(((a20==1)&&(((a27==1)&&(((!(a4==1)&&((!(a22==1)&&((a0==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a3==5))))&&(a12==9)))&&!(a15==1))&&(a6==1)))&&!(a5==1)))){ + a3 = 6; + a27 = 0; + a18 = 1; + a15 = 1; + a5 = 1; + return 21; + } else if(((a4==1)&&((!(a18==1)&&(!(a6==1)&&((a3==7)&&(!(a27==1)&&((a20==1)&&((!(a5==1)&&(((input==1)&&(a0==1))&&(a22==1)))&&(a12==9)))))))&&!(a15==1)))){ + a18 = 1; + a6 = 1; + a27 = 1; + a4 = 0; + a12 = 12; + a5 = 1; + return -1; + } else if((((a20==1)&&(!(a5==1)&&(((a27==1)&&((!(a0==1)&&((a15==1)&&((a3==4)&&((input==4)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))))&&!(a4==1)))&&(a6==1))))&&(a12==11))){ + a18 = 0; + a3 = 5; + a0 = 1; + a5 = 1; + a27 = 0; + a12 = 10; + a22 = 1; + return 21; + } else if(((a6==1)&&((a0==1)&&(((a20==1)&&(((!(a15==1)&&((!(a27==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5)))&&(a4==1)))&&(a12==8))&&(a3==5)))&&(a5==1))))){ + a22 = 1; + a18 = 0; + a12 = 11; + a5 = 0; + a27 = 1; + return -1; + } else if(((a12==11)&&((((a5==1)&&(!(a0==1)&&((a20==1)&&((a4==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==1))&&(a27==1))))))&&(a15==1))&&(a6==1)))){ + a22 = 0; + a12 = 12; + a0 = 1; + a3 = 5; + a18 = 0; + a4 = 0; + a6 = 0; + return -1; + } else if(((a15==1)&&(((a6==1)&&(((a27==1)&&(!(a5==1)&&((a18==1)&&((a0==1)&&((((a22==1)&&(input==4))&&(a3==7))&&(a20==1))))))&&(a12==11)))&&(a4==1)))){ + a3 = 4; + a12 = 8; + a5 = 1; + return -1; + } else if((((((a0==1)&&(((((((((a22==1)&&!(a18==1))&&!(a5==1))&&(a15==1))&&(a4==1))&&(a3==4))&&(a6==1))||(((((((a5==1)&&(!(a18==1)&&!(a22==1)))&&!(a15==1))&&!(a4==1))&&(a3==8))&&!(a6==1))||((a6==1)&&(((a4==1)&&((!(a5==1)&&((a18==1)&&(a22==1)))&&(a15==1)))&&(a3==4)))))&&(input==5)))&&(a20==1))&&(a27==1))&&(a12==10))){ + a4 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + a22 = 1; + a15 = 1; + a18 = 1; + a6 = 1; + return -1; + } else if(((a0==1)&&(!(a22==1)&&(((a12==10)&&(((a20==1)&&(((!(a15==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&(a4==1)))&&(a5==1))&&(a6==1)))&&(a3==4)))&&!(a27==1))))){ + if((a18==1)){ + a0 = 0; + a18 = 0; + a4 = 0; + a3 = 5; + a15 = 1; + a12 = 8; + a27 = 1; + }else{ + a27 = 1; + a6 = 0; + a18 = 1; + a5 = 0; + a12 = 11; + a4 = 0; + } + return 26; + } else if(((a0==1)&&((a20==1)&&((((!(a22==1)&&((!(a15==1)&&(!(a5==1)&&(((a27==1)&&(input==3))&&(a4==1))))&&(a6==1)))&&(a3==6))&&(a12==11))&&(a18==1))))){ + a4 = 0; + a12 = 10; + a3 = 5; + a18 = 0; + a6 = 0; + return -1; + } else if(((((a15==1)&&(!(a5==1)&&(!(a27==1)&&((a20==1)&&((a6==1)&&((a4==1)&&((input==6)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a18==1)&&(a22==1)))))))))))&&(a12==9))&&(a0==1))){ + a3 = 7; + a15 = 0; + a5 = 1; + a18 = 0; + a22 = 0; + a6 = 0; + return -1; + } else if(((((!(a0==1)&&((a4==1)&&((a3==5)&&(((a12==8)&&((a27==1)&&((a15==1)&&((input==5)&&(a20==1)))))&&(a5==1)))))&&(a18==1))&&!(a6==1))&&(a22==1))){ + a6 = 1; + a0 = 1; + a12 = 10; + a22 = 0; + a18 = 0; + a4 = 0; + a3 = 4; + return 26; + } else if(((((((a12==10)&&((a3==8)&&(((((input==3)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a27==1))&&!(a4==1))&&(a15==1))))&&(a6==1))&&!(a5==1))&&(a0==1))&&(a20==1))){ + a3 = 4; + a18 = 1; + a6 = 0; + a5 = 1; + a4 = 1; + a22 = 0; + a15 = 0; + return -1; + } else if((((a27==1)&&(((a4==1)&&(!(a0==1)&&((((a12==12)&&((a20==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==2))))&&(a5==1))&&!(a6==1))))&&(a3==8)))&&(a15==1))){ + a3 = 4; + a6 = 1; + a0 = 1; + a22 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((a15==1)&&((((((a20==1)&&((a12==11)&&((a27==1)&&(!(a0==1)&&((input==3)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))))&&(a6==1))&&(a5==1))&&(a3==8))&&!(a4==1)))){ + a3 = 4; + a22 = 0; + a15 = 0; + a5 = 0; + a0 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if((!(a5==1)&&(((a20==1)&&((a12==9)&&(!(a22==1)&&(((!(a15==1)&&(!(a0==1)&&((((a18==1)||!(a18==1))&&(input==6))&&!(a27==1))))&&(a3==4))&&(a4==1)))))&&!(a6==1)))){ + if((a3==5)){ + a12 = 10; + a0 = 1; + a18 = 0; + a27 = 1; + a3 = 5; + a15 = 1; + }else{ + a3 = 6; + a22 = 1; + a12 = 11; + a6 = 1; + a18 = 1; + a27 = 1; + } + return 21; + } else if((((((a15==1)&&(!(a5==1)&&((a20==1)&&(!(a4==1)&&((((a22==1)&&(!(a18==1)&&(input==1)))&&!(a27==1))&&(a3==4))))))&&(a6==1))&&!(a0==1))&&(a12==9))){ + if((a15==1)){ + a27 = 1; + a18 = 1; + a3 = 8; + a5 = 1; + a22 = 0; + a12 = 8; + a0 = 1; + }else{ + a12 = 8; + a5 = 1; + a6 = 0; + a27 = 1; + a22 = 0; + a0 = 1; + a4 = 1; + } + return -1; + } else if((!(a0==1)&&(((((a3==6)&&((a12==8)&&(((a20==1)&&((a5==1)&&((input==4)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))))&&(a4==1))))&&(a27==1))&&(a15==1))&&(a6==1)))){ + a15 = 0; + a5 = 0; + a4 = 0; + a0 = 1; + a18 = 0; + a22 = 0; + a12 = 11; + a3 = 7; + return 26; + } else if((!(a5==1)&&((a20==1)&&(!(a6==1)&&((a3==8)&&(((a15==1)&&(((((input==6)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a27==1))&&!(a4==1))&&(a12==9)))&&(a0==1))))))){ + a0 = 0; + a4 = 1; + a5 = 1; + a18 = 0; + a22 = 1; + a3 = 4; + a15 = 0; + a12 = 10; + return 21; + } else if(((a15==1)&&((!(a5==1)&&((a22==1)&&(!(a0==1)&&((((a3==5)&&(!(a18==1)&&((a6==1)&&((input==6)&&!(a27==1)))))&&(a12==8))&&(a4==1)))))&&(a20==1)))){ + a18 = 1; + a6 = 0; + a22 = 0; + a27 = 1; + a3 = 7; + a0 = 1; + return -1; + } else if((((!(a0==1)&&((a3==7)&&((((((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==4))&&(a4==1))&&(a5==1))&&(a15==1))&&(a27==1))&&(a6==1))))&&(a12==10))&&(a20==1))){ + a22 = 1; + a0 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + return -1; + } else if(((a20==1)&&(!(a0==1)&&((!(a27==1)&&((((a15==1)&&((!(a22==1)&&(((input==5)&&(a6==1))&&(a12==9)))&&!(a5==1)))&&(a3==4))&&!(a18==1)))&&!(a4==1))))){ + if((a15==1)){ + a3 = 6; + a12 = 8; + a5 = 1; + a0 = 1; + a27 = 1; + }else{ + a3 = 7; + a12 = 8; + a0 = 1; + a27 = 1; + a5 = 1; + } + return 21; + } else if((((a15==1)&&((a5==1)&&((!(a0==1)&&((a6==1)&&(!(a4==1)&&(((input==6)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8)))||((a3==8)&&((a22==1)&&!(a18==1)))))&&(a12==9)))))&&(a20==1))))&&(a27==1))){ + a3 = 4; + a12 = 12; + a18 = 0; + a5 = 0; + a6 = 0; + a22 = 0; + a4 = 1; + a0 = 1; + return 26; + } else if(((a5==1)&&(((!(a15==1)&&(!(a27==1)&&((a20==1)&&((((input==4)&&(((!(a18==1)&&!(a22==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8))))&&(a4==1))&&!(a6==1)))))&&!(a0==1))&&(a12==8)))){ + a22 = 1; + a3 = 6; + a0 = 1; + a18 = 1; + a27 = 1; + return 26; + } else if(((!(a15==1)&&((!(a27==1)&&((!(a5==1)&&(((a20==1)&&((input==6)&&((((a3==6)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==6)))||(((a18==1)&&(a22==1))&&(a3==7)))))&&(a6==1)))&&!(a4==1)))&&(a12==10)))&&!(a0==1))){ + a12 = 8; + a15 = 1; + a3 = 6; + a0 = 1; + a27 = 1; + a5 = 1; + a22 = 1; + a18 = 0; + return 26; + } else if(((a20==1)&&((((!(a27==1)&&((a12==9)&&((!(a0==1)&&(((a15==1)&&((a6==1)&&(input==5)))&&(a5==1)))&&(a22==1))))&&(a3==6))&&(a4==1))&&!(a18==1)))){ + if((a6==1)){ + a22 = 0; + a6 = 0; + a12 = 12; + a3 = 7; + a5 = 0; + a0 = 1; + }else{ + a3 = 8; + a15 = 0; + a5 = 0; + a0 = 1; + a18 = 1; + a12 = 12; + } + return 26; + } else if((((!(a0==1)&&(((a20==1)&&(((a12==11)&&((a5==1)&&((!(a27==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a22==1))))&&(a3==8)))&&!(a6==1)))&&!(a15==1))&&(a4==1))){ + if((a15==1)){ + a6 = 1; + a12 = 8; + a27 = 1; + a15 = 1; + a18 = 0; + a0 = 1; + a4 = 0; + }else{ + a18 = 0; + a15 = 1; + a22 = 0; + a6 = 1; + a27 = 1; + a3 = 4; + } + return 24; + } else if((!(a0==1)&&((((a27==1)&&(!(a15==1)&&(((a12==9)&&(((a3==6)&&(((input==5)&&(a20==1))&&!(a18==1)))&&!(a4==1)))&&!(a22==1))))&&!(a5==1))&&(a6==1)))){ + a15 = 1; + a0 = 1; + a6 = 0; + a12 = 10; + a22 = 1; + a3 = 5; + a5 = 1; + a4 = 1; + return 21; + } else if((!(a0==1)&&((a12==11)&&((((!(a22==1)&&((a5==1)&&(!(a4==1)&&((((input==6)&&(a3==8))&&(a20==1))&&(a6==1)))))&&!(a27==1))&&!(a18==1))&&(a15==1))))){ + a22 = 1; + a6 = 0; + a4 = 1; + a18 = 1; + a0 = 1; + a12 = 8; + a27 = 1; + return 26; + } else if((((a0==1)&&(!(a5==1)&&(((!(a4==1)&&((((input==4)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8))))&&!(a27==1))&&(a20==1)))&&!(a15==1))&&(a12==12))))&&(a6==1))){ + a5 = 1; + a3 = 6; + a4 = 1; + a6 = 0; + a15 = 1; + a22 = 1; + a18 = 0; + a12 = 11; + a27 = 1; + return -1; + } else if(((a4==1)&&((a12==9)&&((a20==1)&&(!(a5==1)&&(((((a0==1)&&(!(a18==1)&&(!(a6==1)&&(!(a22==1)&&(input==4)))))&&(a3==4))&&!(a27==1))&&(a15==1))))))){ + a12 = 8; + a18 = 1; + a5 = 1; + a22 = 1; + a27 = 1; + a6 = 1; + return -1; + } else if(((!(a4==1)&&((a20==1)&&((a22==1)&&((a3==5)&&((a18==1)&&((a6==1)&&((a15==1)&&((a0==1)&&(((a5==1)&&(input==4))&&!(a27==1))))))))))&&(a12==10))){ + a3 = 8; + a4 = 1; + a15 = 0; + a5 = 0; + a12 = 11; + return 21; + } else if((((((a12==8)&&(((a20==1)&&(((a27==1)&&((((a3==7)&&((a18==1)&&(a22==1)))||(((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a18==1)&&!(a22==1)))))&&(input==1)))&&!(a6==1)))&&!(a15==1)))&&!(a4==1))&&!(a5==1))&&!(a0==1))){ + a18 = 0; + a15 = 1; + a3 = 6; + a0 = 1; + a6 = 1; + a22 = 0; + return 26; + } else if((((a3==5)&&((((((a12==10)&&((((input==6)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a6==1))&&(a20==1)))&&!(a4==1))&&!(a0==1))&&(a5==1))&&(a15==1)))&&(a27==1))){ + if((a20==1)){ + a5 = 0; + a22 = 1; + a3 = 6; + a15 = 0; + a18 = 0; + a6 = 1; + }else{ + a0 = 1; + a5 = 0; + a3 = 7; + a12 = 11; + a22 = 1; + a18 = 1; + a15 = 0; + } + return 26; + } else if(((a0==1)&&(!(a27==1)&&((((a3==8)&&(((a5==1)&&((a22==1)&&((((a6==1)&&(input==4))&&(a18==1))&&(a20==1))))&&(a12==12)))&&!(a4==1))&&(a15==1))))){ + a12 = 10; + a27 = 1; + a3 = 5; + a6 = 0; + return -1; + } else if((!(a5==1)&&((a27==1)&&(((a22==1)&&((a18==1)&&((((a0==1)&&((((a6==1)&&(input==2))&&(a20==1))&&!(a15==1)))&&(a12==8))&&!(a4==1))))&&(a3==6))))){ + if((a20==1)){ + a18 = 0; + a4 = 1; + a15 = 1; + a12 = 11; + a0 = 0; + a6 = 0; + a3 = 7; + }else{ + a5 = 1; + a3 = 7; + a12 = 11; + a4 = 1; + a22 = 0; + a0 = 0; + } + return 21; + } else if((((a0==1)&&(((((a5==1)&&(!(a6==1)&&(((input==1)&&((((a22==1)&&!(a18==1))&&(a3==5))||(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))))&&!(a4==1))))&&(a20==1))&&(a12==10))&&(a15==1)))&&!(a27==1))){ + if((a27==1)){ + a12 = 8; + a18 = 0; + a3 = 6; + a0 = 0; + a4 = 1; + a6 = 1; + a5 = 0; + a22 = 0; + a27 = 1; + }else{ + a22 = 1; + a6 = 1; + a18 = 1; + a3 = 4; + a27 = 1; + a5 = 0; + } + return 26; + } else if(((a4==1)&&(!(a18==1)&&(((((((a0==1)&&((((input==6)&&(a20==1))&&(a15==1))&&(a12==10)))&&(a22==1))&&!(a5==1))&&(a6==1))&&(a3==5))&&(a27==1))))){ + a12 = 8; + a3 = 4; + a5 = 1; + a18 = 1; + return -1; + } else if(((a4==1)&&((((a15==1)&&((!(a27==1)&&(((((((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==2))&&(a0==1))&&(a20==1)))&&(a5==1)))&&(a6==1))&&(a12==10)))){ + a18 = 1; + a22 = 1; + a12 = 8; + a27 = 1; + a3 = 4; + return -1; + } else if(((a12==10)&&((((a4==1)&&(!(a6==1)&&((a22==1)&&(((a20==1)&&(((!(a18==1)&&(input==3))&&(a27==1))&&(a3==8)))&&!(a15==1)))))&&!(a0==1))&&(a5==1)))){ + a0 = 1; + a4 = 0; + return -1; + } else if(((a27==1)&&((a0==1)&&((((((((input==3)&&(((a3==5)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))))&&!(a15==1))&&(a4==1))&&(a5==1))&&(a20==1))&&(a12==8))&&!(a6==1))))){ + if((a15==1)){ + a22 = 0; + a15 = 1; + a4 = 0; + a18 = 1; + a3 = 5; + a0 = 0; + a5 = 0; + }else{ + a22 = 1; + a0 = 0; + a3 = 4; + a6 = 1; + a12 = 11; + a18 = 0; + a4 = 0; + a15 = 1; + } + return 26; + } else if((!(a15==1)&&(((a6==1)&&((a20==1)&&(!(a18==1)&&(!(a4==1)&&(((a5==1)&&((a27==1)&&(!(a22==1)&&((a12==8)&&(input==4)))))&&(a3==8))))))&&(a0==1)))){ + a18 = 1; + a22 = 1; + a12 = 9; + a6 = 0; + a4 = 1; + return 21; + } else if((((a12==9)&&(!(a27==1)&&((!(a4==1)&&((a20==1)&&(((((a5==1)&&((input==3)&&((a18==1)||!(a18==1))))&&!(a15==1))&&(a3==4))&&(a22==1))))&&(a0==1))))&&!(a6==1))){ + a6 = 1; + a12 = 8; + a18 = 1; + a4 = 1; + a27 = 1; + a15 = 1; + return -1; + } else if(((a3==5)&&((((a4==1)&&((a6==1)&&((a12==11)&&((!(a5==1)&&((((input==6)&&(a22==1))&&(a15==1))&&(a18==1)))&&!(a27==1)))))&&(a20==1))&&!(a0==1)))){ + if((a27==1)){ + a5 = 1; + a4 = 0; + a18 = 0; + a22 = 0; + a3 = 4; + a0 = 1; + a15 = 0; + a12 = 8; + }else{ + a4 = 0; + a5 = 1; + a12 = 8; + a0 = 1; + a22 = 0; + a18 = 0; + a27 = 1; + } + return 26; + } else if(((!(a0==1)&&((a22==1)&&(((a12==9)&&((a15==1)&&((((a4==1)&&(!(a5==1)&&((input==1)&&(a20==1))))&&!(a6==1))&&!(a18==1))))&&(a27==1))))&&(a3==7))){ + a3 = 6; + a15 = 0; + a22 = 0; + return -1; + } else if((((!(a15==1)&&((((a3==7)&&((((a6==1)&&((a27==1)&&((input==3)&&((a18==1)||!(a18==1)))))&&(a12==12))&&!(a22==1)))&&!(a5==1))&&(a4==1)))&&(a20==1))&&(a0==1))){ + a18 = 1; + a3 = 4; + a15 = 1; + a12 = 10; + a5 = 1; + a4 = 0; + return -1; + } else if((((((((a6==1)&&((a3==4)&&((a4==1)&&(((a15==1)&&((!(a18==1)&&(a22==1))&&(a5==1)))&&(a12==11)))))||((!(a6==1)&&((a3==8)&&(((((!(a18==1)&&!(a22==1))&&!(a5==1))&&!(a15==1))&&(a12==10))&&!(a4==1))))||((((((((a22==1)&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==11))&&(a4==1))&&(a3==4))&&(a6==1))))&&(input==2))&&(a20==1))&&(a27==1))&&(a0==1))){ + a5 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + a4 = 1; + a6 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if((((a0==1)&&(((a6==1)&&((a5==1)&&(((a4==1)&&(((((input==3)&&(a3==7))&&!(a22==1))&&(a27==1))&&!(a15==1)))&&(a20==1))))&&!(a18==1)))&&(a12==10))){ + a3 = 4; + a0 = 0; + a5 = 0; + a15 = 1; + return 21; + } else if((!(a5==1)&&((!(a15==1)&&((a6==1)&&((!(a0==1)&&((((a12==8)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==3)))&&(a20==1))&&(a3==6)))&&!(a27==1))))&&(a4==1)))){ + a15 = 1; + a0 = 1; + a5 = 1; + a22 = 0; + a18 = 0; + a3 = 4; + a27 = 1; + return 26; + } else if(((a20==1)&&((a18==1)&&(((a0==1)&&((((((a15==1)&&((a5==1)&&((a12==9)&&(input==3))))&&(a27==1))&&!(a22==1))&&(a4==1))&&!(a6==1)))&&(a3==8))))){ + a15 = 0; + a18 = 0; + a12 = 12; + a3 = 5; + return 21; + } else if((((a18==1)&&((a6==1)&&(((!(a4==1)&&(!(a27==1)&&((a15==1)&&(((a5==1)&&((input==1)&&(a22==1)))&&(a20==1)))))&&(a0==1))&&(a3==5))))&&(a12==8))){ + a18 = 0; + a3 = 8; + a4 = 1; + return 26; + } else if(((!(a15==1)&&(!(a22==1)&&((a27==1)&&(((!(a18==1)&&(((a4==1)&&(((a3==4)&&(input==6))&&!(a5==1)))&&(a20==1)))&&(a12==8))&&!(a6==1)))))&&!(a0==1))){ + a27 = 0; + a6 = 1; + a18 = 1; + a12 = 9; + a15 = 1; + a3 = 5; + a5 = 1; + a0 = 1; + return -1; + } else if(((a15==1)&&((a12==8)&&((a3==6)&&(!(a4==1)&&((a0==1)&&(((!(a6==1)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==1))&&!(a27==1)))&&(a20==1))&&!(a5==1)))))))){ + a27 = 1; + a18 = 1; + a5 = 1; + a4 = 1; + a12 = 10; + a22 = 1; + a3 = 8; + return 24; + } else if((((a12==11)&&(((a20==1)&&((a15==1)&&(!(a6==1)&&(!(a0==1)&&((((((a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==5))))&&(input==4))&&(a27==1))))))&&(a4==1)))&&!(a5==1))){ + a12 = 8; + a6 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + a5 = 1; + a0 = 1; + return -1; + } else if(((a15==1)&&(!(a6==1)&&(((a20==1)&&(((!(a4==1)&&(((a27==1)&&((input==5)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))&&(a0==1)))&&(a12==12))&&(a3==8)))&&!(a5==1))))){ + a18 = 1; + a15 = 0; + a6 = 1; + a27 = 0; + a12 = 9; + a22 = 0; + a3 = 7; + a4 = 1; + return 24; + } else if(((a12==11)&&(!(a4==1)&&((a0==1)&&(((a18==1)&&((a20==1)&&((a15==1)&&((a27==1)&&((((a22==1)&&(input==6))&&(a3==8))&&(a5==1))))))&&!(a6==1)))))){ + a12 = 10; + a15 = 0; + a6 = 1; + a4 = 1; + a18 = 0; + return -1; + } else if((!(a27==1)&&((a20==1)&&(((!(a0==1)&&((((a15==1)&&((input==4)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a22==1)&&(a18==1))))))&&!(a4==1))&&!(a5==1)))&&(a6==1))&&(a12==8))))){ + a27 = 1; + a22 = 0; + a0 = 1; + a5 = 1; + a18 = 0; + a3 = 7; + return -1; + } else if(((a27==1)&&(((a6==1)&&((a12==9)&&(((a3==8)&&((a22==1)&&(((a0==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a20==1)))&&!(a15==1))))&&(a5==1))))&&(a4==1)))){ + if((a18==1)){ + a12 = 11; + a3 = 6; + a5 = 0; + a0 = 0; + a6 = 0; + a18 = 0; + a22 = 0; + }else{ + a15 = 1; + a12 = 12; + a4 = 0; + a18 = 1; + } + return 21; + } else if(((a4==1)&&((a22==1)&&((a20==1)&&(((a0==1)&&(((a3==4)&&((a12==8)&&((((input==4)&&((a18==1)||!(a18==1)))&&!(a5==1))&&(a6==1))))&&(a27==1)))&&(a15==1)))))){ + a3 = 7; + a5 = 1; + a12 = 9; + a0 = 0; + a18 = 0; + a4 = 0; + return 24; + } else if((((a0==1)&&(((a20==1)&&((!(a6==1)&&((a12==10)&&((((((a3==7)&&(!(a22==1)&&(a18==1)))||((a3==7)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==1))&&(a4==1))))&&!(a15==1)))&&(a27==1)))&&!(a5==1))){ + a4 = 0; + a15 = 1; + a5 = 1; + a3 = 8; + a18 = 0; + a22 = 1; + return -1; + } else if(((a12==10)&&((a3==7)&&(!(a0==1)&&(!(a18==1)&&((a20==1)&&((!(a22==1)&&(((!(a15==1)&&((input==5)&&!(a5==1)))&&(a27==1))&&(a6==1)))&&!(a4==1)))))))){ + a18 = 1; + a27 = 0; + a0 = 1; + a3 = 8; + a12 = 11; + a15 = 1; + return -1; + } else if(((((a0==1)&&((((a20==1)&&(((a4==1)&&((!(a18==1)&&((a3==5)&&(input==2)))&&(a27==1)))&&(a22==1)))&&!(a6==1))&&!(a15==1)))&&(a12==11))&&(a5==1))){ + a4 = 0; + a15 = 1; + a18 = 1; + return 26; + } else if(((a12==12)&&((((((!(a6==1)&&((a3==4)&&(!(a15==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&!(a5==1)))))&&(a22==1))&&!(a0==1))&&!(a4==1))&&(a20==1))&&(a27==1)))){ + if((a15==1)){ + a4 = 1; + a0 = 1; + a22 = 0; + a3 = 5; + a15 = 1; + a12 = 8; + a5 = 1; + a18 = 0; + }else{ + a15 = 1; + a18 = 1; + a22 = 0; + a12 = 8; + a0 = 1; + a6 = 1; + a5 = 1; + } + return -1; + } else if(((((a15==1)&&((((a5==1)&&((a4==1)&&((a12==12)&&((a0==1)&&((input==3)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))))&&(a20==1))&&(a3==5)))&&(a27==1))&&!(a6==1))){ + a18 = 1; + a27 = 0; + a22 = 1; + a3 = 6; + a6 = 1; + return 21; + } else if(((((!(a22==1)&&((a15==1)&&((a3==6)&&((!(a6==1)&&((a5==1)&&((a27==1)&&(!(a0==1)&&(input==6)))))&&(a20==1)))))&&(a4==1))&&(a18==1))&&(a12==12))){ + a6 = 1; + a3 = 4; + a0 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if(((((a0==1)&&(!(a15==1)&&(!(a22==1)&&((a4==1)&&((((((input==1)&&((a18==1)||!(a18==1)))&&(a27==1))&&(a12==9))&&(a6==1))&&!(a5==1))))))&&(a3==8))&&(a20==1))){ + a3 = 7; + a4 = 0; + a0 = 0; + a18 = 0; + a12 = 8; + a15 = 1; + return 26; + } else if(((((a12==12)&&(((a0==1)&&((a4==1)&&((((a3==5)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==2)))&&!(a27==1))&&(a6==1))))&&(a20==1)))&&(a15==1))&&(a5==1))){ + a22 = 0; + a15 = 0; + a3 = 7; + a5 = 0; + a4 = 0; + a18 = 0; + return 21; + } else if(((a3==8)&&((a20==1)&&(((((!(a4==1)&&(((!(a6==1)&&((input==5)&&((a18==1)||!(a18==1))))&&!(a22==1))&&!(a15==1)))&&(a12==12))&&!(a5==1))&&(a0==1))&&!(a27==1))))){ + a22 = 1; + a3 = 7; + a12 = 8; + a18 = 1; + a6 = 1; + return -1; + } else if(((((((a12==9)&&(((((a20==1)&&((!(a27==1)&&(input==6))&&(a18==1)))&&!(a6==1))&&(a4==1))&&(a0==1)))&&(a5==1))&&(a15==1))&&(a22==1))&&(a3==6))){ + a15 = 0; + a18 = 0; + a22 = 0; + a4 = 0; + a6 = 1; + a3 = 8; + a5 = 0; + a12 = 12; + return 21; + } else if((!(a6==1)&&((a5==1)&&(((((a12==12)&&((a27==1)&&(((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a20==1))&&(a0==1))))&&(a15==1))&&(a3==7))&&!(a4==1))))){ + a22 = 1; + a4 = 1; + a18 = 1; + a6 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if((((((a5==1)&&((a18==1)&&(((!(a27==1)&&(!(a6==1)&&((a4==1)&&(!(a0==1)&&(input==2)))))&&!(a15==1))&&(a22==1))))&&(a3==4))&&(a20==1))&&(a12==10))){ + if((a6==1)){ + a12 = 12; + a4 = 0; + a27 = 1; + a5 = 0; + }else{ + a12 = 8; + a6 = 1; + a3 = 7; + a0 = 1; + a4 = 0; + a15 = 1; + a27 = 1; + } + return -1; + } else if((((a4==1)&&(!(a6==1)&&(((((a27==1)&&(((a20==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==5)))&&(a0==1)))&&(a5==1))&&(a3==6))&&!(a15==1))))&&(a12==11))){ + a3 = 7; + a15 = 1; + a22 = 1; + a12 = 10; + a6 = 1; + a18 = 1; + return -1; + } else if((((((!(a6==1)&&(!(a4==1)&&((a12==10)&&((!(a15==1)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==4)))&&(a20==1)))))&&(a0==1))&&(a5==1))&&(a3==4))&&(a27==1))){ + if((a15==1)){ + a3 = 7; + a6 = 1; + a15 = 1; + a18 = 0; + a0 = 0; + a22 = 1; + a12 = 11; + }else{ + a27 = 0; + a15 = 1; + a6 = 1; + a22 = 1; + a18 = 0; + a3 = 7; + a4 = 1; + } + return 26; + } else if((!(a4==1)&&(((((!(a18==1)&&(((((a22==1)&&((input==2)&&(a6==1)))&&(a5==1))&&!(a0==1))&&(a27==1)))&&(a3==4))&&(a12==12))&&!(a15==1))&&(a20==1)))){ + a27 = 0; + a0 = 1; + a3 = 6; + a22 = 0; + a4 = 1; + a6 = 0; + a12 = 10; + return 26; + } else if(((a6==1)&&((((!(a5==1)&&((a12==8)&&((a27==1)&&(((((!(a18==1)&&(a22==1))&&(a3==7))||(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1)))))&&(input==5))&&(a20==1)))))&&(a15==1))&&!(a4==1))&&!(a0==1)))){ + a0 = 1; + a18 = 1; + a12 = 10; + a3 = 4; + a4 = 1; + a6 = 0; + a22 = 1; + return 21; + } else if((((!(a4==1)&&((a12==8)&&(((a27==1)&&(((a3==5)&&((a20==1)&&((input==5)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&!(a6==1)))&&(a15==1))))&&!(a5==1))&&(a0==1))){ + a22 = 0; + a15 = 0; + a18 = 0; + a12 = 10; + a5 = 1; + a3 = 4; + return 26; + } else if((((a5==1)&&((a15==1)&&((((a20==1)&&((((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==5))&&(a3==6))&&(a12==10))&&!(a27==1)))&&(a4==1))&&!(a0==1))))&&!(a6==1))){ + a6 = 1; + a12 = 8; + a27 = 1; + a0 = 1; + a22 = 0; + a18 = 1; + a3 = 5; + return -1; + } else if((((!(a4==1)&&((((a12==10)&&(((!(a5==1)&&((!(a27==1)&&(input==2))&&(a15==1)))&&(a3==8))&&!(a18==1)))&&(a20==1))&&!(a22==1)))&&(a0==1))&&!(a6==1))){ + a12 = 11; + a18 = 1; + a6 = 1; + a27 = 1; + a3 = 5; + a5 = 1; + return 21; + } else if((((a12==8)&&(!(a5==1)&&((((a6==1)&&(((a27==1)&&(((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==2))&&(a20==1)))&&(a0==1)))&&(a15==1))&&!(a4==1))))&&(a3==6))){ + a15 = 0; + a18 = 1; + a12 = 11; + a22 = 1; + a0 = 0; + a5 = 1; + a4 = 1; + return 21; + } else if((((a12==11)&&(((((((input==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4))))||(!(a6==1)&&((a3==4)&&(!(a18==1)&&(a22==1))))))&&!(a0==1))&&(a27==1))&&(a15==1))&&!(a5==1))&&(a4==1)))&&(a20==1))){ + a5 = 1; + a22 = 1; + a0 = 1; + a6 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((((a12==8)&&((a6==1)&&(((a4==1)&&((!(a0==1)&&(((((((a18==1)&&!(a22==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7)))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==5))&&!(a27==1)))&&(a20==1)))&&(a5==1))))&&(a15==1))){ + a22 = 0; + a4 = 0; + a15 = 0; + a18 = 1; + a3 = 7; + a12 = 10; + a0 = 1; + return -1; + } else if(((!(a22==1)&&(((a18==1)&&((a15==1)&&(((((((input==5)&&!(a27==1))&&(a20==1))&&!(a4==1))&&(a12==10))&&!(a6==1))&&(a3==6))))&&(a5==1)))&&(a0==1))){ + a27 = 1; + a4 = 1; + a3 = 5; + a18 = 0; + a22 = 1; + return -1; + } else if(((!(a15==1)&&((((a0==1)&&((!(a18==1)&&((a12==10)&&(((a3==7)&&((input==5)&&(a6==1)))&&(a27==1))))&&!(a22==1)))&&(a4==1))&&(a20==1)))&&(a5==1))){ + a15 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if((!(a4==1)&&((!(a18==1)&&(((a15==1)&&((a12==10)&&((a20==1)&&(((((input==1)&&(a3==4))&&!(a6==1))&&!(a5==1))&&!(a0==1)))))&&(a22==1)))&&(a27==1)))){ + a5 = 1; + a6 = 1; + a4 = 1; + a12 = 8; + a0 = 1; + a18 = 1; + return -1; + } else if(((a5==1)&&(((((a27==1)&&(((input==3)&&(((!(a6==1)&&(((!(a22==1)&&(a18==1))&&(a4==1))&&(a3==8)))||(((a3==8)&&((a4==1)&&(!(a22==1)&&!(a18==1))))&&!(a6==1)))||(((((a18==1)&&(a22==1))&&!(a4==1))&&(a3==4))&&(a6==1))))&&(a12==10)))&&(a20==1))&&(a15==1))&&(a0==1)))){ + a4 = 0; + a3 = 5; + a12 = 8; + a22 = 1; + a18 = 0; + a6 = 0; + return -1; + } else if((((a20==1)&&((!(a4==1)&&(!(a5==1)&&((a12==12)&&(!(a22==1)&&(((((input==3)&&((a18==1)||!(a18==1)))&&(a3==7))&&(a27==1))&&!(a0==1))))))&&!(a15==1)))&&(a6==1))){ + a0 = 1; + a22 = 1; + a15 = 1; + a4 = 1; + a18 = 1; + a5 = 1; + a12 = 8; + return 26; + } else if(((!(a6==1)&&(((a12==11)&&((((a0==1)&&(((((a15==1)&&(input==3))&&(a22==1))&&(a3==6))&&!(a5==1)))&&(a4==1))&&(a18==1)))&&(a27==1)))&&(a20==1))){ + a5 = 1; + a15 = 0; + a18 = 0; + a3 = 7; + a12 = 8; + return 21; + } else if(((((((a3==4)&&((!(a15==1)&&(((!(a5==1)&&((input==5)&&!(a18==1)))&&!(a4==1))&&!(a22==1)))&&(a20==1)))&&(a12==10))&&(a0==1))&&(a27==1))&&!(a6==1))){ + a15 = 1; + a6 = 1; + a3 = 7; + a27 = 0; + return 26; + } else if(((((a22==1)&&((a0==1)&&(((a3==7)&&(((a12==10)&&(!(a27==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&!(a15==1))))&&(a20==1)))&&!(a5==1))))&&!(a6==1))&&!(a4==1))){ + a22 = 0; + a4 = 1; + a18 = 0; + a12 = 9; + a3 = 4; + return 21; + } else if(((((!(a5==1)&&(((((a27==1)&&(!(a15==1)&&((a0==1)&&((a20==1)&&(input==4)))))&&(a22==1))&&(a3==8))&&(a6==1)))&&(a18==1))&&(a4==1))&&(a12==10))){ + a3 = 4; + a5 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if(((((a12==8)&&(((((a6==1)&&(!(a5==1)&&((((((a18==1)&&!(a22==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==2))))&&(a27==1))&&!(a15==1))&&!(a0==1)))&&(a20==1))&&!(a4==1))){ + if((a27==1)){ + a18 = 1; + a6 = 0; + a3 = 5; + a5 = 1; + a12 = 10; + a22 = 0; + }else{ + a3 = 7; + a12 = 11; + a0 = 1; + a18 = 1; + a6 = 0; + a22 = 0; + } + return 21; + } else if(((a3==7)&&(!(a0==1)&&(!(a6==1)&&((((a5==1)&&((a22==1)&&((a12==10)&&((a20==1)&&((!(a15==1)&&(input==6))&&!(a27==1))))))&&!(a18==1))&&!(a4==1)))))){ + a6 = 1; + a3 = 8; + a12 = 8; + a0 = 1; + a15 = 1; + a27 = 1; + return 24; + } else if((((((a20==1)&&((a12==11)&&(((!(a5==1)&&(((((a18==1)||!(a18==1))&&(input==6))&&!(a15==1))&&!(a0==1)))&&!(a6==1))&&!(a22==1))))&&(a4==1))&&!(a27==1))&&(a3==5))){ + a3 = 8; + a27 = 1; + a18 = 1; + a0 = 1; + a12 = 8; + a15 = 1; + a5 = 1; + return -1; + } else if(((a22==1)&&(((a3==8)&&(!(a6==1)&&((a5==1)&&(((a27==1)&&((a4==1)&&((a20==1)&&((a12==10)&&(!(a15==1)&&(input==3))))))&&(a18==1)))))&&(a0==1)))){ + a18 = 0; + a6 = 1; + return -1; + } else if(((a20==1)&&((a5==1)&&((((((a0==1)&&((a6==1)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==6))))&&(a27==1))&&(a12==11))&&!(a4==1))&&!(a15==1))))){ + a18 = 1; + a3 = 7; + a5 = 0; + a6 = 0; + a22 = 0; + a12 = 9; + return 24; + } else if((((((a4==1)&&(!(a5==1)&&((!(a22==1)&&(((a20==1)&&((!(a0==1)&&(input==5))&&(a3==7)))&&!(a18==1)))&&(a12==10))))&&(a27==1))&&(a15==1))&&!(a6==1))){ + a12 = 11; + a18 = 1; + a6 = 1; + a27 = 0; + a3 = 6; + a5 = 1; + a0 = 1; + return -1; + } else if(((a5==1)&&(((a20==1)&&((((a0==1)&&((a27==1)&&(((a12==8)&&((input==3)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))))&&!(a6==1))))&&(a3==8))&&!(a4==1)))&&!(a15==1)))){ + a22 = 0; + a15 = 1; + a4 = 1; + a5 = 0; + a12 = 9; + a18 = 1; + return 21; + } else if((((((a6==1)&&(((((((a3==7)&&(!(a22==1)&&(input==2)))&&!(a27==1))&&(a4==1))&&!(a15==1))&&!(a5==1))&&(a0==1)))&&(a20==1))&&(a12==8))&&!(a18==1))){ + a3 = 5; + a4 = 0; + a27 = 1; + a12 = 10; + return -1; + } else if(((a15==1)&&((((!(a6==1)&&(((((((input==1)&&((a18==1)||!(a18==1)))&&(a0==1))&&(a22==1))&&(a3==8))&&(a5==1))&&(a12==10)))&&(a27==1))&&(a20==1))&&(a4==1)))){ + a5 = 0; + a12 = 9; + a18 = 0; + a4 = 0; + a15 = 0; + return -1; + } else if(((a20==1)&&((a12==10)&&((a15==1)&&((!(a0==1)&&((a27==1)&&(!(a5==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1)))&&(input==4)))))&&!(a4==1)))))){ + a6 = 1; + a0 = 1; + a22 = 1; + a3 = 8; + a27 = 0; + a15 = 0; + a12 = 8; + a18 = 1; + return 24; + } else if((!(a5==1)&&(!(a15==1)&&((((a6==1)&&(!(a4==1)&&((a0==1)&&(((input==1)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8))))&&(a27==1)))))&&(a20==1))&&(a12==9))))){ + a3 = 5; + a15 = 1; + a5 = 1; + a6 = 0; + a27 = 0; + a22 = 1; + a18 = 0; + return 26; + } else if((((!(a5==1)&&((a0==1)&&((!(a15==1)&&(((a12==12)&&((input==3)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))))&&!(a6==1)))&&!(a27==1))))&&(a4==1))&&(a20==1))){ + a18 = 0; + a12 = 11; + a22 = 0; + a3 = 5; + a27 = 1; + return 24; + } else if((((((a3==5)&&((((a15==1)&&((a27==1)&&(((input==2)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a6==1))))&&(a0==1))&&(a20==1)))&&(a5==1))&&(a12==12))&&!(a4==1))){ + a22 = 1; + a18 = 1; + a3 = 4; + a4 = 1; + a12 = 8; + return -1; + } else if((((a4==1)&&((!(a6==1)&&(((a20==1)&&((a5==1)&&((((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))||((!(a18==1)&&(a22==1))&&(a3==5)))&&(input==1))&&(a0==1))))&&!(a15==1)))&&(a12==11)))&&!(a27==1))){ + a22 = 0; + a18 = 0; + a27 = 1; + a12 = 12; + a3 = 6; + return 26; + } else if(((a3==6)&&(!(a5==1)&&((a12==8)&&((a27==1)&&((a20==1)&&(((!(a15==1)&&((a0==1)&&(((a18==1)&&(input==1))&&!(a4==1))))&&(a6==1))&&(a22==1)))))))){ + a22 = 0; + a5 = 1; + a12 = 11; + a4 = 1; + a6 = 0; + a3 = 8; + return 21; + } else if((!(a27==1)&&((a4==1)&&((a20==1)&&((((a15==1)&&(!(a6==1)&&(!(a22==1)&&((((input==5)&&((a18==1)||!(a18==1)))&&!(a0==1))&&(a12==11)))))&&(a5==1))&&(a3==7)))))){ + a22 = 1; + a5 = 0; + a15 = 0; + a4 = 0; + a12 = 9; + a18 = 1; + return 26; + } else if(((a6==1)&&(!(a4==1)&&((a12==8)&&(((a27==1)&&((a3==8)&&(((a20==1)&&((a5==1)&&((input==4)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))))&&!(a15==1))))&&!(a0==1)))))){ + if((a3==6)){ + a12 = 11; + a5 = 0; + a3 = 6; + a18 = 0; + a4 = 1; + a15 = 1; + a22 = 1; + }else{ + a0 = 1; + a12 = 11; + a3 = 4; + a5 = 0; + a22 = 0; + a18 = 0; + } + return 21; + } else if((((a0==1)&&((!(a27==1)&&((a12==12)&&(((a4==1)&&(((((a3==6)&&((a22==1)&&(a18==1)))||(((a3==5)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==5))))&&(input==2))&&(a20==1)))&&!(a15==1))))&&(a6==1)))&&!(a5==1))){ + a27 = 1; + a22 = 1; + a18 = 0; + a12 = 10; + a6 = 0; + a3 = 8; + return -1; + } else if(((a12==10)&&((((((!(a5==1)&&((a20==1)&&((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==5))))&&(a4==1))&&!(a15==1))&&!(a0==1))&&(a27==1))&&!(a6==1)))){ + a18 = 1; + a4 = 0; + a22 = 0; + a27 = 0; + a3 = 4; + a12 = 11; + a0 = 1; + return 21; + } else if(((((a22==1)&&((((((((((a18==1)||!(a18==1))&&(input==5))&&!(a5==1))&&(a12==11))&&(a20==1))&&!(a27==1))&&!(a6==1))&&!(a15==1))&&(a3==5)))&&(a4==1))&&!(a0==1))){ + if((a20==1)){ + a6 = 1; + a3 = 6; + a4 = 0; + a5 = 1; + a18 = 0; + a12 = 10; + a22 = 0; + }else{ + a12 = 8; + a27 = 1; + a15 = 1; + a6 = 1; + a22 = 0; + a0 = 1; + a18 = 0; + a5 = 1; + } + return -1; + } else if(((a22==1)&&(((a6==1)&&((a20==1)&&(((a3==8)&&(!(a0==1)&&(!(a5==1)&&(!(a27==1)&&((a15==1)&&(((a18==1)||!(a18==1))&&(input==1)))))))&&(a12==10))))&&!(a4==1)))){ + a5 = 1; + a12 = 8; + a18 = 0; + a4 = 1; + a3 = 7; + a0 = 1; + a27 = 1; + a22 = 0; + return -1; + } else if((!(a22==1)&&((a12==10)&&(!(a5==1)&&(((((a4==1)&&((a27==1)&&(!(a15==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&!(a0==1)))))&&(a20==1))&&(a3==4))&&(a6==1)))))){ + a0 = 1; + a4 = 0; + a6 = 0; + a27 = 0; + a12 = 9; + a18 = 0; + a22 = 1; + a3 = 5; + a5 = 1; + return 26; + } else if((!(a4==1)&&(!(a22==1)&&(!(a27==1)&&(!(a15==1)&&(((a20==1)&&(((a12==11)&&(!(a5==1)&&((a0==1)&&(((a18==1)||!(a18==1))&&(input==5)))))&&(a3==4)))&&!(a6==1))))))){ + a6 = 1; + a15 = 1; + a4 = 1; + a18 = 1; + a12 = 8; + a22 = 1; + a5 = 1; + a27 = 1; + return -1; + } else if(((!(a0==1)&&(((a20==1)&&((a12==9)&&(!(a5==1)&&((input==4)&&((((a3==4)&&(!(a4==1)&&((a22==1)&&(a18==1))))&&(a6==1))||((!(a6==1)&&(((a4==1)&&(!(a22==1)&&(a18==1)))&&(a3==8)))||(((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1)))&&!(a6==1))))))))&&!(a27==1)))&&!(a15==1))){ + a22 = 1; + a4 = 0; + a18 = 0; + a0 = 1; + a27 = 1; + a15 = 1; + a6 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + return -1; + } else if(((a12==8)&&((a5==1)&&(((((a6==1)&&((a0==1)&&(((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==4))&&(a4==1))))&&!(a15==1))&&(a20==1))&&!(a27==1))))){ + a15 = 1; + a22 = 1; + a3 = 4; + a27 = 1; + a18 = 1; + return -1; + } else if((((((a3==7)&&(((!(a4==1)&&((a6==1)&&(((input==4)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a20==1))))&&(a5==1))&&(a0==1)))&&!(a27==1))&&(a12==11))&&(a15==1))){ + a18 = 1; + a15 = 0; + a3 = 8; + a4 = 1; + a22 = 1; + a12 = 9; + a5 = 0; + return 24; + } else if((((a3==4)&&(((((!(a6==1)&&((a27==1)&&((a20==1)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==1)))))&&!(a0==1))&&(a5==1))&&(a4==1))&&(a12==9)))&&!(a15==1))){ + a3 = 8; + a22 = 0; + a4 = 0; + a18 = 0; + a12 = 12; + a15 = 1; + return 21; + } else if(((((((!(a0==1)&&((((a15==1)&&((input==2)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))))&&!(a5==1))&&(a4==1)))&&(a3==8))&&!(a6==1))&&(a20==1))&&(a27==1))&&(a12==8))){ + a12 = 10; + a4 = 0; + a15 = 0; + a18 = 1; + a0 = 1; + a22 = 0; + a3 = 5; + return -1; + } else if((((a12==12)&&(((a15==1)&&((a0==1)&&((a20==1)&&(!(a6==1)&&((a4==1)&&(((input==5)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&!(a5==1)))))))&&(a3==7)))&&!(a27==1))){ + a3 = 8; + a22 = 0; + a15 = 0; + a12 = 11; + a18 = 1; + a27 = 1; + return -1; + } else if((((!(a0==1)&&((a15==1)&&(((a12==10)&&((a18==1)&&((((a3==5)&&(!(a6==1)&&(input==5)))&&!(a22==1))&&!(a5==1))))&&(a27==1))))&&(a4==1))&&(a20==1))){ + a5 = 1; + a0 = 1; + a22 = 1; + a12 = 8; + a6 = 1; + a3 = 4; + return -1; + } else if(((((((a6==1)&&((((a12==12)&&(((a18==1)&&((a20==1)&&(input==5)))&&!(a22==1)))&&(a0==1))&&(a3==6)))&&(a4==1))&&(a15==1))&&(a27==1))&&(a5==1))){ + a3 = 4; + a22 = 1; + a12 = 8; + return -1; + } else if(((((!(a4==1)&&(((!(a5==1)&&(((input==4)&&((((a3==7)&&((a18==1)&&!(a22==1)))||((a3==7)&&(!(a22==1)&&!(a18==1))))||((a3==8)&&((a18==1)&&(a22==1)))))&&!(a27==1)))&&(a12==11))&&(a6==1)))&&!(a15==1))&&!(a0==1))&&(a20==1))){ + if((a12==11)){ + a3 = 4; + a15 = 1; + a12 = 8; + a18 = 0; + a22 = 0; + a27 = 1; + }else{ + a15 = 1; + a3 = 5; + a0 = 1; + a22 = 0; + a4 = 1; + a5 = 1; + a27 = 1; + a18 = 0; + a12 = 8; + } + return -1; + } else if(((a12==8)&&((!(a5==1)&&(!(a0==1)&&(!(a15==1)&&(((a20==1)&&(!(a4==1)&&((input==3)&&((((a18==1)&&(a22==1))&&(a3==8))||((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a22==1)&&!(a18==1))))))))&&!(a27==1)))))&&!(a6==1)))){ + if((a15==1)){ + a22 = 1; + a18 = 0; + a5 = 1; + a3 = 8; + }else{ + a3 = 7; + a6 = 1; + a5 = 1; + a22 = 0; + a15 = 1; + a18 = 1; + } + return 21; + } else if((!(a0==1)&&(((a20==1)&&(!(a6==1)&&((a22==1)&&((((((((a18==1)||!(a18==1))&&(input==5))&&(a4==1))&&(a12==10))&&(a3==8))&&(a27==1))&&(a5==1)))))&&(a15==1)))){ + a12 = 8; + a6 = 1; + a0 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((a0==1)&&(((a4==1)&&((a20==1)&&(((((((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4))))&&(input==4))&&(a15==1))&&(a5==1))&&(a12==9))))&&(a27==1)))){ + a18 = 1; + a6 = 0; + a3 = 5; + a12 = 12; + a22 = 1; + return 26; + } else if((((!(a22==1)&&(!(a6==1)&&(((!(a27==1)&&((!(a5==1)&&(((a12==11)&&(input==1))&&(a3==6)))&&!(a15==1)))&&!(a18==1))&&(a4==1))))&&(a20==1))&&(a0==1))){ + a12 = 10; + a4 = 0; + a22 = 1; + a18 = 1; + a3 = 8; + a6 = 1; + return -1; + } else if(((((a0==1)&&(!(a5==1)&&(!(a4==1)&&((a12==12)&&(((((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4))))&&(input==6))&&!(a27==1))))))&&!(a15==1))&&(a20==1))){ + a22 = 1; + a18 = 1; + a12 = 8; + a27 = 1; + a4 = 1; + a15 = 1; + a3 = 4; + a6 = 1; + a5 = 1; + return -1; + } else if((!(a0==1)&&(((a20==1)&&((!(a27==1)&&((a5==1)&&((a15==1)&&((a12==11)&&(((a4==1)&&((input==5)&&!(a18==1)))&&(a3==5))))))&&!(a6==1)))&&(a22==1)))){ + a0 = 1; + a3 = 4; + a22 = 0; + a18 = 1; + a12 = 8; + a27 = 1; + return -1; + } else if(((a12==8)&&(((a6==1)&&((a27==1)&&(!(a22==1)&&(((!(a0==1)&&((a18==1)&&(!(a4==1)&&((a20==1)&&(input==3)))))&&(a15==1))&&(a5==1)))))&&(a3==6)))){ + a0 = 1; + a6 = 0; + a3 = 5; + a12 = 12; + a22 = 1; + return 21; + } else if(((a6==1)&&(((a20==1)&&(!(a15==1)&&(((a27==1)&&((a4==1)&&(((input==1)&&(((a3==7)&&((a22==1)&&(a18==1)))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))))&&(a0==1))))&&(a5==1))))&&(a12==8)))){ + a5 = 0; + a0 = 0; + a12 = 10; + a22 = 0; + a6 = 0; + a18 = 1; + a3 = 4; + return 26; + } else if((((!(a4==1)&&((a12==10)&&((a3==6)&&((a20==1)&&((((!(a0==1)&&((a15==1)&&(input==6)))&&!(a22==1))&&!(a5==1))&&!(a6==1))))))&&!(a18==1))&&(a27==1))){ + if((a18==1)){ + a18 = 1; + a5 = 1; + a3 = 8; + a12 = 12; + a22 = 1; + a6 = 1; + }else{ + a15 = 0; + a0 = 1; + a3 = 4; + a6 = 1; + } + return 26; + } else if((((a12==9)&&((a20==1)&&(!(a5==1)&&((((input==3)&&(((((!(a22==1)&&!(a18==1))&&(a4==1))&&(a3==8))&&!(a6==1))||(((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1)))&&(a6==1))))&&(a0==1))&&(a15==1)))))&&(a27==1))){ + a22 = 0; + a6 = 1; + a4 = 1; + a18 = 0; + a12 = 11; + a3 = 5; + a5 = 1; + return 26; + } else if(((a3==6)&&((!(a4==1)&&((a22==1)&&(!(a27==1)&&(((a18==1)&&(((a20==1)&&(((input==5)&&(a6==1))&&!(a0==1)))&&!(a5==1)))&&(a12==11)))))&&(a15==1)))){ + if((a5==1)){ + a6 = 0; + a12 = 12; + a3 = 5; + a27 = 1; + a5 = 1; + a4 = 1; + }else{ + a6 = 0; + a3 = 7; + a4 = 1; + a5 = 1; + a22 = 0; + a12 = 9; + } + return -1; + } else if(((a18==1)&&((a0==1)&&((a20==1)&&((!(a22==1)&&(((((a12==11)&&(((input==1)&&(a27==1))&&(a3==6)))&&(a4==1))&&!(a5==1))&&(a6==1)))&&!(a15==1)))))){ + a12 = 10; + return -1; + } else if(((a12==9)&&((((a0==1)&&((a27==1)&&((a15==1)&&((a20==1)&&(((input==5)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))||((a3==8)&&((a22==1)&&!(a18==1)))))&&!(a5==1))))))&&(a6==1))&&!(a4==1)))){ + a4 = 1; + a22 = 0; + a5 = 1; + a18 = 1; + a3 = 6; + a12 = 12; + return 21; + } else if(((!(a6==1)&&((a5==1)&&((a3==8)&&((a15==1)&&((!(a4==1)&&(((a27==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==4)))&&(a20==1)))&&(a0==1))))))&&(a12==11))){ + a12 = 10; + a3 = 4; + a22 = 0; + a6 = 1; + a18 = 1; + return 24; + } else if(((((a12==11)&&((!(a22==1)&&((a5==1)&&(!(a15==1)&&((((a6==1)&&((a27==1)&&(input==6)))&&(a18==1))&&(a3==8)))))&&(a0==1)))&&!(a4==1))&&(a20==1))){ + a22 = 1; + a6 = 0; + a12 = 12; + a3 = 4; + a4 = 1; + return 21; + } else if(((!(a0==1)&&(((a4==1)&&((a3==6)&&(!(a22==1)&&(!(a6==1)&&(((a12==9)&&(((input==5)&&(a15==1))&&(a5==1)))&&!(a27==1))))))&&(a20==1)))&&(a18==1))){ + if((a0==1)){ + a27 = 1; + a0 = 1; + a3 = 5; + a12 = 8; + }else{ + a3 = 5; + a18 = 0; + a22 = 1; + a4 = 0; + a0 = 1; + a27 = 1; + a12 = 8; + a6 = 1; + } + return -1; + } else if(((a4==1)&&((((a5==1)&&((a12==9)&&(((!(a22==1)&&(((((a18==1)||!(a18==1))&&(input==6))&&(a3==4))&&!(a15==1)))&&(a6==1))&&(a20==1))))&&(a0==1))&&!(a27==1)))){ + a4 = 0; + a15 = 1; + a18 = 0; + a3 = 5; + a12 = 8; + a5 = 0; + return 26; + } else if((!(a5==1)&&((a15==1)&&((((((a20==1)&&(((input==4)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1)))))&&(a12==12)))&&!(a4==1))&&(a27==1))&&!(a0==1))&&(a6==1))))){ + if((a27==1)){ + a4 = 1; + a5 = 1; + a6 = 0; + a0 = 1; + a3 = 5; + a18 = 1; + a22 = 0; + a12 = 8; + }else{ + a0 = 1; + a12 = 8; + a18 = 1; + a5 = 1; + a22 = 0; + a3 = 8; + } + return 21; + } else if((((a5==1)&&((!(a27==1)&&((((((a22==1)&&((a3==6)&&((input==5)&&(a15==1))))&&(a0==1))&&!(a6==1))&&(a12==11))&&(a4==1)))&&!(a18==1)))&&(a20==1))){ + a12 = 10; + a4 = 0; + a27 = 1; + a6 = 1; + return 21; + } else if((((a3==6)&&(((a0==1)&&(((a15==1)&&(((((a22==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a5==1))&&!(a27==1))&&(a20==1)))&&(a6==1)))&&(a12==10)))&&!(a4==1))){ + a4 = 1; + a3 = 8; + a12 = 11; + a18 = 0; + a27 = 1; + a15 = 0; + return -1; + } else if((((a27==1)&&(!(a5==1)&&(!(a15==1)&&(!(a22==1)&&(((((a20==1)&&((a12==10)&&((input==5)&&((a18==1)||!(a18==1)))))&&(a3==4))&&!(a0==1))&&(a4==1))))))&&(a6==1))){ + a4 = 0; + a27 = 0; + a0 = 1; + a18 = 0; + a6 = 0; + a5 = 1; + return 26; + } else if(((a20==1)&&(!(a0==1)&&((((((a3==8)&&((a12==8)&&((a6==1)&&((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))&&(a27==1))&&(a5==1))&&(a4==1))&&(a15==1))))){ + a3 = 5; + a4 = 0; + a18 = 0; + a22 = 0; + a12 = 9; + return 26; + } else if((((!(a18==1)&&((a4==1)&&(((!(a22==1)&&(((a27==1)&&((a0==1)&&((input==6)&&(a20==1))))&&(a5==1)))&&!(a6==1))&&(a12==10))))&&(a15==1))&&(a3==6))){ + a12 = 9; + a27 = 0; + a5 = 0; + a3 = 7; + a6 = 1; + a18 = 1; + return 21; + } else if(((!(a5==1)&&((a6==1)&&((!(a15==1)&&(!(a0==1)&&((!(a4==1)&&(((input==2)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&(a20==1)))&&(a3==4))))&&(a27==1))))&&(a12==11))){ + a0 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + a5 = 1; + a15 = 1; + a4 = 1; + return -1; + } else if(((((((((a15==1)&&(((a3==8)&&(!(a18==1)&&(!(a6==1)&&(input==2))))&&!(a27==1)))&&(a20==1))&&(a12==11))&&!(a4==1))&&(a5==1))&&(a22==1))&&!(a0==1))){ + if((a22==1)){ + a3 = 7; + a0 = 1; + a18 = 1; + a12 = 8; + a4 = 1; + a6 = 1; + a27 = 1; + }else{ + a12 = 8; + a27 = 1; + a0 = 1; + a6 = 1; + a22 = 0; + } + return -1; + } else if(((!(a22==1)&&(!(a18==1)&&(((a15==1)&&((!(a6==1)&&((a12==12)&&((!(a4==1)&&((a20==1)&&(input==2)))&&!(a27==1))))&&(a0==1)))&&!(a5==1))))&&(a3==4))){ + a6 = 1; + a0 = 0; + a18 = 1; + a3 = 5; + a12 = 11; + a27 = 1; + a22 = 1; + return 26; + } else if(((a27==1)&&(!(a5==1)&&((((((((input==3)&&(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1)))))&&(a12==8))&&!(a0==1))&&(a6==1))&&(a15==1))&&(a20==1))&&(a4==1))))){ + if((a20==1)){ + a22 = 0; + a18 = 0; + a3 = 8; + a6 = 0; + }else{ + a12 = 11; + a3 = 7; + a15 = 0; + a0 = 1; + a6 = 0; + a22 = 0; + a18 = 1; + } + return 21; + } else if(((a6==1)&&((a4==1)&&((((a20==1)&&(((((input==3)&&(((a3==7)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6)))))&&(a12==10))&&(a27==1))&&!(a0==1)))&&(a5==1))&&!(a15==1))))){ + a22 = 1; + a12 = 8; + a0 = 1; + a15 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((!(a15==1)&&(((a12==11)&&(((((a6==1)&&((a20==1)&&((((input==2)&&((a18==1)||!(a18==1)))&&!(a0==1))&&(a3==7))))&&!(a5==1))&&(a27==1))&&(a22==1)))&&(a4==1)))){ + a15 = 1; + a18 = 1; + a5 = 1; + a0 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if((((a12==11)&&((((!(a0==1)&&((((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==6))&&!(a15==1))&&(a5==1)))&&(a27==1))&&(a6==1))&&(a4==1)))&&(a20==1))){ + a3 = 7; + a18 = 0; + a12 = 12; + a15 = 1; + a0 = 1; + a22 = 0; + a6 = 0; + return 26; + } else if(((a20==1)&&(((!(a15==1)&&(((a0==1)&&((((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==2))&&(a3==8))&&!(a6==1))&&(a5==1)))&&!(a4==1)))&&!(a27==1))&&(a12==9)))){ + a3 = 5; + a5 = 0; + a22 = 1; + a12 = 12; + a4 = 1; + a6 = 1; + a18 = 0; + return -1; + } else if(((((a15==1)&&((a4==1)&&((((a0==1)&&(((input==2)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6))))&&!(a5==1)))&&(a20==1))&&(a12==9))))&&!(a27==1))&&!(a6==1))){ + if((a3==4)){ + a22 = 0; + a6 = 1; + a0 = 0; + a27 = 1; + a18 = 0; + a3 = 8; + }else{ + a18 = 1; + a3 = 4; + a22 = 1; + a6 = 1; + a4 = 0; + a12 = 8; + } + return 26; + } else if(((a20==1)&&(((!(a27==1)&&(((a5==1)&&(!(a0==1)&&(((a12==8)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==4)))&&(a4==1))))&&(a6==1)))&&(a3==7))&&!(a15==1)))){ + a18 = 0; + a3 = 4; + a0 = 1; + a27 = 1; + a22 = 1; + a6 = 0; + a15 = 1; + return 26; + } else if((((((((!(a5==1)&&(((a3==5)&&(!(a15==1)&&(!(a27==1)&&(input==3))))&&(a6==1)))&&(a18==1))&&(a22==1))&&(a12==9))&&!(a0==1))&&(a20==1))&&(a4==1))){ + if((a18==1)){ + a27 = 1; + a15 = 1; + a5 = 1; + a12 = 8; + a6 = 0; + a0 = 1; + a18 = 0; + }else{ + a22 = 0; + a0 = 1; + a27 = 1; + a12 = 8; + a15 = 1; + a3 = 4; + a5 = 1; + a4 = 0; + } + return -1; + } else if(((a12==9)&&(!(a0==1)&&((a27==1)&&(!(a5==1)&&((((a4==1)&&(((((a3==5)&&(!(a18==1)&&(a22==1)))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5))))&&(input==1))&&(a20==1)))&&(a15==1))&&(a6==1))))))){ + a22 = 1; + a4 = 0; + a6 = 0; + a3 = 8; + a18 = 0; + return -1; + } else if(((((a4==1)&&((!(a6==1)&&(!(a15==1)&&(((a20==1)&&(!(a27==1)&&((a12==8)&&((input==3)&&((a18==1)||!(a18==1))))))&&!(a5==1))))&&(a0==1)))&&(a3==8))&&!(a22==1))){ + a18 = 1; + a22 = 1; + a3 = 6; + a12 = 12; + a27 = 1; + a6 = 1; + return -1; + } else if((((a20==1)&&((a0==1)&&(!(a15==1)&&(!(a4==1)&&(((((((input==5)&&(a3==6))&&!(a6==1))&&(a18==1))&&(a5==1))&&!(a22==1))&&(a12==9))))))&&(a27==1))){ + a3 = 8; + a22 = 1; + a12 = 10; + return 21; + } else if(((a12==11)&&((((((a20==1)&&((a27==1)&&((a6==1)&&((input==6)&&(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a22==1)&&(a18==1))))))))&&(a5==1))&&(a4==1))&&(a0==1))&&(a15==1)))){ + a22 = 0; + a3 = 4; + a15 = 0; + a12 = 10; + a18 = 1; + a6 = 0; + return -1; + } else if(((a12==9)&&((!(a5==1)&&(!(a0==1)&&(!(a27==1)&&(((a15==1)&&(!(a4==1)&&((((a3==6)&&((a22==1)&&!(a18==1)))||(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1)))))&&(input==1))))&&(a20==1)))))&&!(a6==1)))){ + if((a12==8)){ + a12 = 8; + a3 = 4; + a6 = 1; + a27 = 1; + a22 = 0; + a18 = 1; + a5 = 1; + a0 = 1; + }else{ + a18 = 1; + a0 = 1; + a5 = 1; + a22 = 1; + a4 = 1; + a3 = 5; + } + return -1; + } else if((!(a22==1)&&((a20==1)&&((((!(a6==1)&&((a12==8)&&((a5==1)&&((!(a27==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&!(a0==1)))))&&(a4==1))&&!(a15==1))&&(a3==6))))){ + if((a18==1)){ + a15 = 1; + a12 = 9; + a6 = 1; + a27 = 1; + a3 = 5; + a18 = 0; + a0 = 1; + a22 = 1; + a5 = 0; + a4 = 0; + }else{ + a0 = 1; + a4 = 0; + a18 = 0; + a15 = 1; + a12 = 9; + a27 = 1; + } + return -1; + } else if(((a6==1)&&((((((((a3==6)&&((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==2))&&(a4==1)))&&!(a5==1))&&(a15==1))&&(a12==9))&&(a0==1))&&!(a27==1))&&(a20==1)))){ + if((a4==1)){ + a3 = 4; + a6 = 0; + a18 = 1; + a15 = 0; + a4 = 0; + a22 = 1; + a0 = 0; + a27 = 1; + }else{ + a15 = 0; + a5 = 1; + a12 = 12; + a4 = 0; + a6 = 0; + a18 = 0; + a3 = 5; + a27 = 1; + a22 = 0; + } + return 21; + } else if((((((a20==1)&&(((!(a6==1)&&(((input==4)&&((((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==7))))&&(a5==1)))&&(a12==11))&&!(a0==1)))&&!(a4==1))&&(a27==1))&&(a15==1))){ + a3 = 4; + a0 = 1; + a4 = 1; + a22 = 0; + a18 = 1; + a6 = 1; + return 26; + } else if(((((a20==1)&&(((((a12==9)&&((((input==5)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a4==1))&&!(a5==1)))&&!(a15==1))&&(a27==1))&&!(a0==1)))&&!(a6==1))&&(a3==7))){ + a22 = 1; + a18 = 1; + a6 = 1; + a3 = 5; + a0 = 1; + a12 = 11; + a15 = 1; + a5 = 1; + return 21; + } else if((!(a4==1)&&((a27==1)&&(!(a15==1)&&((a12==8)&&((((a5==1)&&((input==5)&&(((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||(!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1)))))))&&(a20==1))&&!(a0==1))))))){ + a6 = 1; + a4 = 1; + a0 = 1; + a22 = 1; + a18 = 1; + a27 = 0; + a12 = 10; + a3 = 5; + return -1; + } else if(((((((a3==4)&&((a6==1)&&(((!(a4==1)&&((input==2)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a27==1))&&(a12==10))))&&!(a5==1))&&!(a0==1))&&(a15==1))&&(a20==1))){ + a12 = 9; + a0 = 1; + a18 = 0; + a3 = 7; + a22 = 1; + a4 = 1; + a6 = 0; + a5 = 1; + a27 = 1; + return 26; + } else if(((a22==1)&&((a12==8)&&((!(a4==1)&&((a18==1)&&(((a27==1)&&((a6==1)&&(!(a0==1)&&((a20==1)&&((a15==1)&&(input==1))))))&&(a3==6))))&&!(a5==1))))){ + a0 = 1; + a12 = 12; + return 21; + } else if(((!(a27==1)&&((a15==1)&&(((((a0==1)&&(!(a5==1)&&(((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1))))||((a3==8)&&((a22==1)&&!(a18==1))))&&(input==6))))&&(a20==1))&&!(a4==1))&&(a6==1))))&&(a12==12))){ + a6 = 0; + a27 = 1; + a22 = 1; + a15 = 0; + a18 = 0; + a3 = 6; + return 21; + } else if(((a18==1)&&(((a12==10)&&((a20==1)&&(((a15==1)&&(((a22==1)&&((!(a5==1)&&((a3==8)&&(input==4)))&&(a27==1)))&&!(a6==1)))&&!(a0==1))))&&!(a4==1)))){ + a3 = 5; + a15 = 0; + a0 = 1; + a4 = 1; + a5 = 1; + return -1; + } else if(((((a3==5)&&((!(a5==1)&&((a0==1)&&(((a27==1)&&((a20==1)&&((a15==1)&&(((a18==1)||!(a18==1))&&(input==3)))))&&!(a22==1))))&&!(a4==1)))&&(a12==11))&&!(a6==1))){ + if((a15==1)){ + a18 = 0; + a12 = 9; + a6 = 1; + a0 = 0; + }else{ + a3 = 4; + a5 = 1; + a12 = 12; + a18 = 1; + } + return 21; + } else if((((a20==1)&&((((a12==8)&&(!(a5==1)&&(!(a4==1)&&(((input==4)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1)))))&&(a0==1)))))&&(a15==1))&&!(a6==1)))&&(a27==1))){ + a3 = 7; + a22 = 0; + a15 = 0; + a5 = 1; + a12 = 10; + a18 = 0; + a6 = 1; + return 21; + } else if((((((a20==1)&&((a15==1)&&(((((input==6)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1)))))&&(a4==1))&&(a12==10))&&(a6==1))))&&(a27==1))&&!(a5==1))&&!(a0==1))){ + a0 = 1; + a5 = 1; + a22 = 0; + a15 = 0; + a4 = 0; + a27 = 0; + a3 = 8; + a18 = 0; + a12 = 12; + return 21; + } else if((((a20==1)&&(((!(a5==1)&&(((a12==9)&&((a27==1)&&((a0==1)&&(((input==2)&&!(a15==1))&&!(a4==1)))))&&(a3==5)))&&!(a6==1))&&!(a22==1)))&&(a18==1))){ + a22 = 1; + a3 = 4; + a4 = 1; + a6 = 1; + a5 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if(((((a4==1)&&((a0==1)&&(((a15==1)&&((!(a5==1)&&(((((a22==1)&&(a18==1))&&(a3==5))||(((a3==4)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==4))))&&(input==2)))&&(a12==10)))&&(a20==1))))&&(a27==1))&&!(a6==1))){ + if((a22==1)){ + a22 = 1; + a15 = 0; + a6 = 1; + a0 = 0; + a12 = 11; + a18 = 0; + a3 = 6; + a5 = 1; + }else{ + a6 = 1; + a18 = 1; + a5 = 1; + a22 = 1; + a3 = 4; + a15 = 0; + } + return -1; + } else if((((a6==1)&&((((((((input==1)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1)))))&&(a12==11))&&(a0==1))&&(a15==1))&&(a4==1))&&!(a5==1))&&(a20==1)))&&!(a27==1))){ + a27 = 1; + a22 = 1; + a12 = 8; + a5 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((((a15==1)&&(((((((a27==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==4))&&(a3==7)))&&(a4==1))&&!(a5==1))&&!(a0==1))&&(a20==1))&&(a6==1)))&&(a12==8))){ + a18 = 1; + a4 = 0; + a22 = 1; + a12 = 11; + a6 = 0; + a3 = 5; + a0 = 1; + a5 = 1; + return 26; + } else if(((a22==1)&&(!(a4==1)&&((!(a5==1)&&(((a12==8)&&((a27==1)&&((a3==8)&&((a0==1)&&((((a18==1)||!(a18==1))&&(input==6))&&(a6==1))))))&&!(a15==1)))&&(a20==1))))){ + a18 = 1; + a3 = 4; + a15 = 1; + a5 = 1; + a4 = 1; + return -1; + } else if(((!(a0==1)&&((a18==1)&&((!(a6==1)&&(((a20==1)&&(!(a15==1)&&((a3==8)&&(((input==5)&&(a27==1))&&(a12==11)))))&&!(a22==1)))&&(a5==1))))&&!(a4==1))){ + a15 = 1; + a0 = 1; + a3 = 4; + a6 = 1; + a22 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if(((!(a0==1)&&((a6==1)&&((((a12==10)&&((((a4==1)&&((input==6)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))))&&!(a27==1))&&(a5==1)))&&!(a15==1))&&(a3==8))))&&(a20==1))){ + if((a15==1)){ + a0 = 1; + a22 = 1; + a12 = 8; + a27 = 1; + a4 = 0; + a18 = 1; + a3 = 6; + a15 = 1; + }else{ + a3 = 5; + a18 = 1; + a22 = 1; + a15 = 1; + a12 = 8; + a0 = 1; + a27 = 1; + } + return 26; + } else if(((!(a0==1)&&(!(a15==1)&&(((a6==1)&&(((a5==1)&&(((!(a22==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a4==1))&&!(a27==1)))&&(a20==1)))&&(a12==10))))&&(a3==4))){ + a18 = 1; + a6 = 0; + a3 = 8; + a27 = 1; + a0 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if((!(a18==1)&&((!(a6==1)&&((a15==1)&&((a12==12)&&(!(a27==1)&&(((((a0==1)&&((a4==1)&&(input==4)))&&(a22==1))&&(a20==1))&&(a3==8))))))&&!(a5==1)))){ + a3 = 7; + a6 = 1; + a18 = 1; + a27 = 1; + a12 = 11; + return 24; + } else if((!(a18==1)&&(((a20==1)&&(!(a15==1)&&(((a5==1)&&((a22==1)&&((a3==8)&&((((a4==1)&&(input==4))&&(a27==1))&&(a12==11)))))&&!(a6==1))))&&!(a0==1)))){ + a0 = 1; + a6 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if(((a20==1)&&(!(a6==1)&&((((a27==1)&&((a15==1)&&(!(a0==1)&&((((input==6)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&(a5==1))&&!(a4==1)))))&&(a12==9))&&(a3==4))))){ + a22 = 1; + a6 = 1; + a18 = 1; + a4 = 1; + a12 = 8; + a0 = 1; + return -1; + } else if(((((!(a4==1)&&((a12==10)&&((a6==1)&&((a5==1)&&(((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==6))&&(a20==1))&&(a3==5))))))&&(a15==1))&&!(a27==1))&&!(a0==1))){ + a12 = 9; + a22 = 1; + a18 = 0; + a15 = 0; + a3 = 6; + return 21; + } else if((!(a4==1)&&(!(a0==1)&&((a12==9)&&((((a27==1)&&((((a6==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==2)))&&(a15==1))&&(a5==1)))&&(a3==5))&&(a20==1)))))){ + a4 = 1; + a12 = 10; + a0 = 1; + a15 = 0; + a18 = 1; + a22 = 0; + return -1; + } else if((((a20==1)&&(((a15==1)&&((a6==1)&&((a4==1)&&((((input==4)&&(((!(a18==1)&&!(a22==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8))))&&(a12==12))&&(a5==1)))))&&!(a0==1)))&&(a27==1))){ + a4 = 0; + a22 = 1; + a15 = 0; + a3 = 6; + a12 = 11; + a5 = 0; + a18 = 1; + a6 = 0; + a0 = 1; + return 21; + } else if(((((!(a27==1)&&((((((a20==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==4)))&&!(a5==1))&&(a3==5))&&(a12==11))&&(a4==1)))&&!(a0==1))&&(a15==1))&&(a6==1))){ + a22 = 0; + a12 = 8; + a5 = 1; + a4 = 0; + a3 = 8; + a0 = 1; + a27 = 1; + a18 = 0; + return 21; + } return calculate_output66(input); + } + + int calculate_output66(int input) { + if((((((!(a0==1)&&(((a12==8)&&(((a6==1)&&((a18==1)&&((input==3)&&!(a27==1))))&&(a20==1)))&&(a15==1)))&&(a3==5))&&(a22==1))&&!(a5==1))&&(a4==1))){ + if((a18==1)){ + a27 = 1; + a0 = 1; + a5 = 1; + a18 = 0; + a3 = 6; + }else{ + a27 = 1; + a4 = 0; + a5 = 1; + a3 = 6; + a0 = 1; + } + return -1; + } else if(((((((((a22==1)&&(((((input==3)&&(a5==1))&&(a3==4))&&(a15==1))&&(a20==1)))&&(a12==9))&&(a0==1))&&!(a4==1))&&(a6==1))&&!(a27==1))&&!(a18==1))){ + a18 = 1; + a4 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if((((a3==5)&&((a18==1)&&((!(a4==1)&&((!(a0==1)&&((!(a15==1)&&(!(a22==1)&&((input==4)&&(a27==1))))&&!(a5==1)))&&(a6==1)))&&(a20==1))))&&(a12==10))){ + a3 = 4; + a5 = 1; + a15 = 1; + a0 = 1; + a12 = 8; + a22 = 1; + a4 = 1; + return -1; + } else if(((!(a27==1)&&((((a3==5)&&((((!(a4==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==4)))&&(a0==1))&&!(a15==1))&&!(a6==1)))&&!(a5==1))&&(a12==11)))&&(a20==1))){ + a3 = 6; + a27 = 1; + a6 = 1; + a22 = 0; + a4 = 1; + a15 = 1; + a0 = 0; + a12 = 9; + a18 = 0; + return -1; + } else if((((!(a5==1)&&(((!(a0==1)&&(!(a15==1)&&((((((!(a22==1)&&(a18==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==4))&&(a20==1))))&&(a12==10))&&(a6==1)))&&!(a27==1))&&!(a4==1))){ + a18 = 0; + a12 = 8; + a22 = 1; + a5 = 1; + a3 = 6; + a4 = 1; + a6 = 0; + return 26; + } else if((((a20==1)&&(!(a4==1)&&((a12==10)&&((((a0==1)&&(!(a27==1)&&((input==3)&&(((((a18==1)&&!(a22==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7)))||((a3==8)&&((a22==1)&&(a18==1)))))))&&(a6==1))&&(a15==1)))))&&(a5==1))){ + a4 = 1; + a15 = 0; + a22 = 0; + a3 = 7; + a6 = 0; + a5 = 0; + a18 = 0; + return 26; + } else if(((a20==1)&&((((a3==7)&&((((a27==1)&&((((!(a5==1)&&(input==3))&&!(a4==1))&&!(a22==1))&&!(a6==1)))&&!(a18==1))&&(a12==9)))&&!(a0==1))&&(a15==1)))){ + a12 = 10; + a27 = 0; + a22 = 1; + a4 = 1; + a6 = 1; + a0 = 1; + a3 = 6; + return -1; + } else if(((((!(a6==1)&&(((((a20==1)&&((a5==1)&&((input==5)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&(a12==9))&&!(a4==1))&&!(a0==1)))&&(a27==1))&&(a3==6))&&(a15==1))){ + a12 = 11; + a18 = 0; + a4 = 1; + a3 = 8; + a22 = 0; + a0 = 1; + return 26; + } else if(((a3==8)&&(!(a0==1)&&((!(a6==1)&&(((a4==1)&&((!(a22==1)&&((a15==1)&&((a12==11)&&((a20==1)&&(input==6)))))&&(a27==1)))&&(a18==1)))&&(a5==1))))){ + a15 = 0; + a3 = 4; + a4 = 0; + a12 = 12; + a6 = 1; + a0 = 1; + return -1; + } else if(((a15==1)&&(!(a22==1)&&((((!(a27==1)&&(!(a5==1)&&((((a3==8)&&(((a18==1)||!(a18==1))&&(input==5)))&&!(a6==1))&&(a20==1))))&&!(a4==1))&&(a0==1))&&(a12==9))))){ + a15 = 0; + a22 = 1; + a12 = 8; + a0 = 0; + a5 = 1; + a27 = 1; + a4 = 1; + a18 = 1; + return 21; + } else if((!(a4==1)&&((a6==1)&&((a15==1)&&((((((a27==1)&&((input==5)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))))&&(a20==1))&&(a12==11))&&(a0==1))&&(a5==1)))))){ + a4 = 1; + a15 = 0; + a12 = 8; + a3 = 5; + a6 = 0; + a22 = 0; + a18 = 0; + return -1; + } else if(((((a27==1)&&((!(a6==1)&&((a12==10)&&((a20==1)&&(((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==4))&&!(a5==1)))))&&!(a15==1)))&&!(a0==1))&&(a4==1))){ + a22 = 1; + a27 = 0; + a12 = 8; + a18 = 0; + a4 = 0; + a3 = 6; + a0 = 1; + a5 = 1; + return 26; + } else if(((!(a0==1)&&((((!(a5==1)&&(((a4==1)&&((input==4)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))))&&(a27==1)))&&(a12==9))&&(a15==1))&&(a20==1)))&&!(a6==1))){ + a22 = 1; + a3 = 4; + a0 = 1; + a6 = 1; + a12 = 8; + a5 = 1; + a18 = 1; + return -1; + } else if((((a20==1)&&(((a27==1)&&((((!(a6==1)&&((a3==8)&&((!(a15==1)&&(((a18==1)&&!(a22==1))&&(a5==1)))&&!(a4==1))))||(((a3==8)&&((!(a15==1)&&((!(a18==1)&&!(a22==1))&&(a5==1)))&&!(a4==1)))&&!(a6==1)))||((a6==1)&&((((a15==1)&&(!(a5==1)&&((a22==1)&&(a18==1))))&&(a4==1))&&(a3==4))))&&(input==2)))&&(a12==8)))&&!(a0==1))){ + a0 = 1; + a12 = 11; + a15 = 1; + a5 = 1; + a22 = 0; + a3 = 4; + a6 = 1; + a18 = 1; + a4 = 1; + return -1; + } else if(((((((!(a15==1)&&((a0==1)&&(((a3==8)&&(((a22==1)&&(input==2))&&!(a4==1)))&&(a6==1))))&&(a18==1))&&(a27==1))&&(a20==1))&&(a5==1))&&(a12==11))){ + a4 = 1; + a12 = 10; + a3 = 5; + a22 = 0; + a18 = 0; + return 21; + } else if((((a27==1)&&((!(a5==1)&&(!(a0==1)&&((!(a6==1)&&((a12==8)&&((a20==1)&&((input==5)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))))&&!(a15==1))))&&(a4==1)))&&(a3==4))){ + a22 = 1; + a5 = 1; + a6 = 1; + a0 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if(((!(a6==1)&&(!(a5==1)&&(((a0==1)&&((a12==11)&&((((a27==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a22==1)))&&!(a4==1))&&(a3==7))))&&(a20==1))))&&(a15==1))){ + a4 = 1; + a22 = 0; + a18 = 0; + a27 = 0; + a3 = 6; + return 21; + } else if((((a6==1)&&(((a3==4)&&(((a5==1)&&((a4==1)&&(((((a22==1)&&(input==5))&&(a20==1))&&!(a27==1))&&!(a18==1))))&&!(a0==1)))&&(a15==1)))&&(a12==10))){ + a6 = 0; + a5 = 0; + a3 = 6; + a12 = 8; + a15 = 0; + return -1; + } else if(((!(a5==1)&&((((((((a6==1)&&(((a15==1)&&(input==3))&&(a22==1)))&&(a12==12))&&(a4==1))&&(a3==5))&&(a20==1))&&(a27==1))&&(a0==1)))&&(a18==1))){ + if((a3==8)){ + a22 = 0; + a0 = 0; + a3 = 4; + a12 = 10; + a5 = 1; + }else{ + a3 = 7; + a15 = 0; + a6 = 0; + a5 = 1; + a4 = 0; + a27 = 0; + } + return 26; + } else if((((a5==1)&&(!(a15==1)&&((a12==9)&&((((((input==2)&&((((a3==4)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==4)))||((a3==5)&&((a18==1)&&(a22==1)))))&&(a6==1))&&!(a4==1))&&(a27==1))&&!(a0==1)))))&&(a20==1))){ + a15 = 1; + a27 = 0; + a18 = 1; + a5 = 0; + a12 = 10; + a4 = 1; + a3 = 7; + a22 = 0; + a0 = 1; + return -1; + } else if((((a5==1)&&((((a3==5)&&((((a12==11)&&((!(a15==1)&&(!(a4==1)&&(input==2)))&&(a6==1)))&&!(a27==1))&&(a20==1)))&&(a0==1))&&!(a22==1)))&&!(a18==1))){ + a27 = 1; + a18 = 1; + a22 = 1; + a12 = 8; + a15 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((((a12==11)&&(((a3==8)&&((a15==1)&&((((!(a4==1)&&((a18==1)&&(input==3)))&&(a22==1))&&(a27==1))&&(a5==1))))&&!(a6==1)))&&(a0==1))&&(a20==1))){ + a27 = 0; + a5 = 0; + a12 = 10; + a3 = 6; + a15 = 0; + return 24; + } else if(((a5==1)&&((((a20==1)&&((!(a6==1)&&(((!(a15==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==1)))&&(a12==8))&&(a27==1)))&&(a3==6)))&&!(a0==1))&&(a4==1)))){ + a3 = 5; + a0 = 1; + a12 = 11; + a15 = 1; + a22 = 1; + a18 = 1; + return 26; + } else if(((a12==9)&&((((a20==1)&&((a5==1)&&((a6==1)&&((((a0==1)&&(((a18==1)&&(input==2))&&(a22==1)))&&(a4==1))&&!(a27==1)))))&&!(a15==1))&&(a3==6)))){ + a6 = 0; + a27 = 1; + a4 = 0; + a18 = 0; + a12 = 10; + a3 = 4; + return -1; + } else if((((a5==1)&&(!(a15==1)&&(((((a20==1)&&(((a22==1)&&((a27==1)&&((input==4)&&(a18==1))))&&!(a4==1)))&&(a6==1))&&(a3==4))&&!(a0==1))))&&(a12==11))){ + a4 = 1; + a12 = 8; + a15 = 1; + a0 = 1; + return -1; + } else if(((a12==9)&&((a0==1)&&(((a27==1)&&(((a5==1)&&(((!(a6==1)&&((a18==1)&&((a3==8)&&(input==1))))&&(a4==1))&&(a20==1)))&&!(a22==1)))&&(a15==1))))){ + a15 = 0; + a12 = 12; + a3 = 7; + return 26; + } else if(((((((a20==1)&&(((((a12==10)&&(((input==5)&&!(a15==1))&&!(a4==1)))&&(a0==1))&&(a3==8))&&(a27==1)))&&(a5==1))&&(a18==1))&&!(a6==1))&&(a22==1))){ + a6 = 1; + a18 = 0; + return -1; + } else if(((((a4==1)&&((((a12==11)&&((a3==6)&&((a15==1)&&(!(a6==1)&&((a0==1)&&(!(a27==1)&&(input==1)))))))&&!(a18==1))&&(a22==1)))&&(a20==1))&&(a5==1))){ + a0 = 0; + a27 = 1; + a15 = 0; + a6 = 1; + a22 = 0; + a18 = 1; + a4 = 0; + a12 = 9; + a5 = 0; + return 26; + } else if((!(a4==1)&&((a20==1)&&((!(a0==1)&&((a15==1)&&(((a6==1)&&(((input==6)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a22==1)&&(a18==1)))))&&!(a27==1)))&&!(a5==1))))&&(a12==8))))){ + if((a15==1)){ + a22 = 1; + a4 = 1; + a27 = 1; + a5 = 1; + a18 = 0; + a0 = 1; + a3 = 6; + }else{ + a3 = 8; + a22 = 1; + a15 = 0; + a12 = 9; + a0 = 1; + a18 = 1; + a4 = 1; + } + return -1; + } else if(((a5==1)&&(((((a22==1)&&(((!(a18==1)&&((((a15==1)&&(input==1))&&(a12==8))&&!(a6==1)))&&(a3==4))&&(a0==1)))&&(a27==1))&&!(a4==1))&&(a20==1)))){ + a22 = 0; + a18 = 1; + a3 = 7; + return 24; + } else if((((a15==1)&&((!(a6==1)&&((((a5==1)&&((a0==1)&&((input==5)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))||((!(a18==1)&&(a22==1))&&(a3==6))))))&&(a20==1))&&(a27==1)))&&!(a4==1)))&&(a12==10))){ + a3 = 4; + a22 = 0; + a6 = 1; + a18 = 0; + return -1; + } else if(((!(a4==1)&&(!(a15==1)&&(!(a0==1)&&(!(a5==1)&&((a6==1)&&((a12==11)&&((a27==1)&&(((((a3==7)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==7)))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==1)))))))))&&(a20==1))){ + a3 = 4; + a18 = 1; + a22 = 1; + a27 = 0; + a4 = 1; + a15 = 1; + a0 = 1; + a12 = 8; + return 21; + } else if(((((a6==1)&&(((!(a22==1)&&(!(a0==1)&&((a12==9)&&((a15==1)&&(!(a5==1)&&((input==2)&&(a20==1)))))))&&(a18==1))&&(a27==1)))&&(a3==5))&&(a4==1))){ + a12 = 10; + a6 = 0; + return -1; + } else if((!(a6==1)&&(((a27==1)&&(((((a3==6)&&(((((input==6)&&((a18==1)||!(a18==1)))&&(a12==8))&&(a22==1))&&!(a15==1)))&&(a4==1))&&(a20==1))&&!(a5==1)))&&(a0==1)))){ + a6 = 1; + a5 = 1; + a4 = 0; + a18 = 0; + a12 = 11; + a15 = 1; + a22 = 0; + return 26; + } else if(((a15==1)&&((((a12==10)&&((a6==1)&&((!(a22==1)&&((a27==1)&&((((input==6)&&(a20==1))&&!(a5==1))&&(a18==1))))&&(a0==1))))&&!(a4==1))&&(a3==6)))){ + a5 = 1; + a15 = 0; + a18 = 0; + a6 = 0; + a3 = 8; + a22 = 1; + return -1; + } else if(((((a6==1)&&(((!(a5==1)&&((!(a4==1)&&((((a3==7)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1)))))&&(input==4)))&&(a0==1)))&&(a20==1))&&(a12==8)))&&!(a15==1))&&(a27==1))){ + if((a20==1)){ + a22 = 0; + a4 = 1; + a12 = 10; + a0 = 0; + a15 = 1; + a18 = 1; + a3 = 8; + }else{ + a12 = 11; + a3 = 6; + a22 = 1; + a18 = 0; + a5 = 1; + } + return 24; + } else if((!(a4==1)&&(!(a6==1)&&((((a12==12)&&((a20==1)&&((((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==5))&&(a3==6))&&!(a5==1))&&(a0==1))))&&!(a27==1))&&(a15==1))))){ + a3 = 5; + a15 = 0; + a27 = 1; + a18 = 1; + a4 = 1; + a12 = 11; + a22 = 0; + return 24; + } else if(((((!(a27==1)&&((a12==9)&&(((a4==1)&&(((((((a18==1)&&!(a22==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==2))&&!(a15==1)))&&!(a6==1))))&&(a5==1))&&(a20==1))&&(a0==1))){ + a18 = 0; + a5 = 0; + a15 = 1; + a22 = 0; + a3 = 6; + a12 = 8; + return 21; + } else if((((a18==1)&&((!(a4==1)&&((!(a27==1)&&((a6==1)&&((a3==7)&&(!(a15==1)&&((a22==1)&&((input==3)&&(a12==8)))))))&&!(a5==1)))&&!(a0==1)))&&(a20==1))){ + a12 = 12; + a15 = 1; + a4 = 1; + a27 = 1; + return -1; + } else if(((a18==1)&&((((((((a20==1)&&(((a15==1)&&((input==2)&&(a27==1)))&&!(a0==1)))&&(a5==1))&&(a22==1))&&(a12==11))&&!(a4==1))&&(a3==4))&&!(a6==1)))){ + a3 = 6; + a15 = 0; + a22 = 0; + a6 = 1; + a5 = 0; + a4 = 1; + a18 = 0; + return -1; + } else if(((a12==10)&&((a5==1)&&((a4==1)&&(((a0==1)&&((a20==1)&&(((((((a18==1)||!(a18==1))&&(input==2))&&(a15==1))&&(a27==1))&&!(a6==1))&&(a22==1))))&&(a3==8)))))){ + a5 = 0; + a6 = 1; + a3 = 5; + a18 = 1; + a15 = 0; + return 21; + } else if((((!(a4==1)&&((a15==1)&&((a12==9)&&((a20==1)&&((((input==5)&&((((a22==1)&&!(a18==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5)))))&&!(a27==1))&&!(a0==1))))))&&(a6==1))&&(a5==1))){ + a3 = 5; + a18 = 1; + a22 = 1; + a5 = 0; + a12 = 12; + a0 = 1; + return 26; + } else if(((!(a27==1)&&(!(a0==1)&&((a12==9)&&((((((a3==6)&&(!(a6==1)&&((input==2)&&((a18==1)||!(a18==1)))))&&(a20==1))&&!(a22==1))&&!(a15==1))&&(a5==1)))))&&!(a4==1))){ + if((a3==8)){ + a12 = 12; + a22 = 1; + a18 = 0; + a5 = 0; + a6 = 1; + a15 = 1; + a0 = 1; + a3 = 8; + a4 = 1; + }else{ + a12 = 8; + a18 = 0; + a0 = 1; + a27 = 1; + a3 = 8; + a6 = 1; + a15 = 1; + a22 = 1; + } + return 26; + } else if((!(a5==1)&&(((a3==8)&&((a6==1)&&(!(a4==1)&&(((a20==1)&&((!(a15==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==3)))&&(a12==10)))&&!(a27==1)))))&&!(a0==1)))){ + a5 = 1; + a4 = 1; + a15 = 1; + a18 = 1; + a0 = 1; + a22 = 0; + a12 = 9; + return -1; + } else if((((a22==1)&&((a20==1)&&(!(a15==1)&&((a3==8)&&((a0==1)&&(((a27==1)&&((a4==1)&&((a12==8)&&((input==5)&&((a18==1)||!(a18==1))))))&&(a6==1)))))))&&(a5==1))){ + a18 = 1; + a5 = 0; + a0 = 0; + a12 = 11; + a3 = 7; + a22 = 0; + return 21; + } else if((((a18==1)&&((a6==1)&&(!(a27==1)&&((a22==1)&&(((((a3==6)&&((a4==1)&&(!(a0==1)&&(input==5))))&&!(a15==1))&&!(a5==1))&&(a12==10))))))&&(a20==1))){ + a5 = 1; + a27 = 1; + a15 = 1; + a3 = 4; + a18 = 0; + a22 = 0; + a0 = 1; + a12 = 8; + a4 = 0; + return -1; + } else if(((a4==1)&&(((a20==1)&&((a0==1)&&((a27==1)&&((!(a15==1)&&(!(a5==1)&&(!(a6==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2)))))&&(a12==9)))))&&(a3==6)))){ + a3 = 7; + a27 = 0; + a6 = 1; + a22 = 0; + a5 = 1; + a15 = 1; + a18 = 0; + return 26; + } else if((((a12==12)&&((!(a6==1)&&(((!(a18==1)&&((!(a15==1)&&(((a20==1)&&(input==6))&&!(a27==1)))&&(a5==1)))&&(a4==1))&&(a22==1)))&&(a3==6)))&&(a0==1))){ + a5 = 0; + a18 = 1; + a22 = 0; + a27 = 1; + a12 = 11; + a6 = 1; + a0 = 0; + return 26; + } else if(((a5==1)&&((((a20==1)&&((a3==4)&&(((a0==1)&&((a12==8)&&(!(a15==1)&&((((a18==1)||!(a18==1))&&(input==6))&&!(a4==1)))))&&(a6==1))))&&!(a22==1))&&(a27==1)))){ + a3 = 8; + a18 = 1; + a22 = 1; + a15 = 1; + a12 = 9; + a6 = 0; + a4 = 1; + return 26; + } else if((((a20==1)&&((((a12==10)&&(((((a6==1)&&(((!(a18==1)&&(a22==1))&&!(a4==1))&&(a3==4)))||((!(a6==1)&&((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1)))))||(((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1))))&&(a6==1))))&&(input==4))&&!(a0==1)))&&!(a27==1))&&!(a15==1)))&&!(a5==1))){ + a3 = 5; + a22 = 0; + a4 = 0; + a6 = 0; + a18 = 0; + return 26; + } else if((!(a6==1)&&(!(a5==1)&&(!(a22==1)&&((a3==6)&&(((a27==1)&&(((a18==1)&&((((a20==1)&&(input==5))&&(a12==9))&&(a0==1)))&&(a15==1)))&&!(a4==1))))))){ + a4 = 1; + a12 = 12; + a6 = 1; + return 24; + } else if(((a12==11)&&((a20==1)&&(!(a6==1)&&((a3==7)&&(!(a15==1)&&((!(a5==1)&&((((input==4)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a0==1))&&!(a4==1)))&&!(a27==1)))))))){ + if((a20==1)){ + a27 = 1; + a0 = 0; + a18 = 0; + a6 = 1; + a5 = 1; + a12 = 10; + a4 = 1; + a22 = 1; + }else{ + a4 = 1; + a22 = 1; + a18 = 0; + a0 = 0; + a27 = 1; + a5 = 1; + a15 = 1; + a3 = 8; + } + return 24; + } else if(((a15==1)&&(((!(a5==1)&&((((!(a4==1)&&(((a18==1)&&((a20==1)&&(input==3)))&&(a3==4)))&&(a12==12))&&(a0==1))&&!(a22==1)))&&!(a6==1))&&!(a27==1)))){ + a27 = 1; + a5 = 1; + a6 = 1; + a12 = 8; + a22 = 1; + a4 = 1; + return -1; + } else if(((((a3==4)&&((!(a27==1)&&((a22==1)&&((a20==1)&&(!(a4==1)&&((((input==2)&&((a18==1)||!(a18==1)))&&!(a15==1))&&(a0==1))))))&&!(a6==1)))&&(a5==1))&&(a12==12))){ + a6 = 1; + a15 = 1; + a4 = 1; + a18 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if((((a4==1)&&((a6==1)&&((a20==1)&&((((((a27==1)&&((((a18==1)||!(a18==1))&&(input==1))&&!(a0==1)))&&(a22==1))&&!(a15==1))&&(a3==4))&&(a5==1)))))&&(a12==9))){ + a12 = 8; + a18 = 1; + a15 = 1; + a0 = 1; + return -1; + } else if(((a12==10)&&((!(a6==1)&&(((!(a0==1)&&((!(a15==1)&&((input==2)&&((((a22==1)&&!(a18==1))&&(a3==7))||(((!(a18==1)&&!(a22==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7))))))&&!(a27==1)))&&(a20==1))&&!(a4==1)))&&!(a5==1)))){ + a5 = 1; + a6 = 1; + a0 = 1; + a15 = 1; + a18 = 1; + a22 = 0; + a3 = 4; + a12 = 8; + a27 = 1; + return 26; + } else if(((a12==10)&&(((a15==1)&&((a20==1)&&(!(a27==1)&&((((((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1)))&&!(a6==1))||(((!(a4==1)&&((a18==1)&&(a22==1)))&&(a3==4))&&(a6==1)))&&(input==1))&&(a5==1)))))&&!(a0==1)))){ + a4 = 0; + a27 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a22 = 1; + a6 = 1; + a0 = 1; + return 26; + } else if((((((((((a12==11)&&(!(a4==1)&&(((a5==1)&&(input==3))&&!(a6==1))))&&(a15==1))&&(a20==1))&&(a22==1))&&!(a0==1))&&!(a27==1))&&(a3==8))&&(a18==1))){ + if((a0==1)){ + a12 = 8; + a18 = 0; + a4 = 1; + a22 = 0; + a3 = 4; + a27 = 1; + a0 = 1; + }else{ + a3 = 7; + a27 = 1; + a4 = 1; + a12 = 8; + a6 = 1; + a0 = 1; + } + return -1; + } else if(((a12==10)&&(((((a5==1)&&(((a15==1)&&(((input==6)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7))))&&(a20==1)))&&!(a6==1)))&&!(a4==1))&&(a0==1))&&!(a27==1)))){ + if((a3==5)){ + a18 = 0; + a12 = 11; + a27 = 1; + a4 = 1; + a0 = 0; + a22 = 1; + a15 = 0; + a3 = 6; + a5 = 0; + }else{ + a6 = 1; + a18 = 0; + a22 = 1; + a27 = 1; + a3 = 7; + a5 = 0; + } + return 21; + } else if(((a5==1)&&((!(a4==1)&&((((a12==10)&&(!(a0==1)&&((((((a22==1)&&!(a18==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1)))))&&(input==2))&&!(a6==1))))&&(a20==1))&&(a15==1)))&&!(a27==1)))){ + a3 = 8; + a12 = 8; + a22 = 0; + a0 = 1; + a27 = 1; + a6 = 1; + a18 = 1; + a4 = 1; + return -1; + } else if((((a3==8)&&(((a12==10)&&(!(a0==1)&&(((!(a4==1)&&((a15==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5))))&&!(a27==1))&&!(a6==1))))&&(a20==1)))&&!(a5==1))){ + a18 = 0; + a6 = 1; + a27 = 1; + a3 = 4; + a22 = 1; + a12 = 9; + a5 = 1; + return -1; + } else if(((a4==1)&&(!(a15==1)&&(!(a6==1)&&(!(a27==1)&&(!(a5==1)&&((((a12==8)&&((((a3==8)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7))))&&(input==6)))&&!(a0==1))&&(a20==1)))))))){ + a0 = 1; + a4 = 0; + a5 = 1; + a12 = 12; + a18 = 1; + a3 = 5; + a27 = 1; + a22 = 0; + a15 = 1; + return -1; + } else if((!(a15==1)&&((!(a0==1)&&(((((a5==1)&&(!(a6==1)&&(((input==1)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a20==1))))&&(a3==5))&&(a12==10))&&(a4==1)))&&!(a27==1)))){ + a0 = 1; + a27 = 1; + a18 = 0; + a6 = 1; + a3 = 4; + a15 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if(((a20==1)&&((a3==8)&&((!(a27==1)&&(((!(a0==1)&&(((a5==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2)))&&(a4==1)))&&(a12==11))&&(a6==1)))&&(a15==1))))){ + a15 = 0; + a3 = 6; + a5 = 0; + a0 = 1; + a22 = 1; + a27 = 1; + a4 = 0; + a18 = 1; + return 26; + } else if(((!(a27==1)&&(!(a0==1)&&(!(a5==1)&&(((a20==1)&&((a12==9)&&((a15==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==6))&&(a6==1)))))&&!(a4==1)))))&&(a3==6))){ + if((a20==1)){ + a0 = 1; + a22 = 1; + a12 = 8; + a6 = 0; + a18 = 1; + }else{ + a5 = 1; + a4 = 1; + a18 = 0; + a22 = 1; + a6 = 0; + a12 = 8; + a0 = 1; + a27 = 1; + } + return 21; + } else if(((a15==1)&&((a0==1)&&(!(a4==1)&&((((a20==1)&&((a27==1)&&(!(a6==1)&&((((!(a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==8))))&&(input==6)))))&&(a5==1))&&(a12==12)))))){ + a15 = 0; + a22 = 1; + a6 = 1; + a4 = 1; + a18 = 0; + a3 = 5; + return 21; + } else if((((a0==1)&&((((a27==1)&&((a20==1)&&((((input==6)&&((((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==7))))&&(a4==1))&&(a12==12))))&&(a5==1))&&(a6==1)))&&!(a15==1))){ + a4 = 0; + a6 = 0; + a15 = 1; + a3 = 4; + a27 = 0; + a22 = 1; + a18 = 1; + return 26; + } else if((((a27==1)&&((((((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1))&&(a0==1))&&!(a4==1))&&(a12==11))&&(a3==4))&&(a20==1))&&!(a6==1))&&!(a5==1)))&&(a15==1))){ + a4 = 1; + a6 = 1; + a22 = 1; + a12 = 8; + a18 = 1; + a5 = 1; + return -1; + } else if(((a12==9)&&((!(a15==1)&&(((a0==1)&&(((a27==1)&&((((input==6)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a5==1))&&(a3==5)))&&(a4==1)))&&(a20==1)))&&!(a6==1)))){ + a6 = 1; + a3 = 6; + a5 = 1; + a27 = 0; + a22 = 1; + a18 = 1; + a15 = 1; + return 21; + } else if((!(a27==1)&&(((a0==1)&&(((a5==1)&&((a4==1)&&(((((a20==1)&&((input==4)&&((a18==1)||!(a18==1))))&&!(a15==1))&&!(a6==1))&&(a3==7))))&&!(a22==1)))&&(a12==11)))){ + a22 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + a15 = 1; + a6 = 1; + a27 = 1; + return -1; + } else if((((((a3==7)&&(((a20==1)&&((a5==1)&&((((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==3))&&(a15==1))&&!(a4==1))))&&(a12==9)))&&!(a0==1))&&!(a27==1))&&(a6==1))){ + a0 = 1; + a3 = 6; + a22 = 1; + a18 = 1; + return -1; + } else if((!(a0==1)&&(((a4==1)&&(!(a15==1)&&((a3==6)&&(((a20==1)&&(!(a5==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&(a27==1))&&!(a22==1))))&&(a12==11)))))&&(a6==1)))){ + a0 = 1; + a18 = 0; + a15 = 1; + a12 = 10; + return -1; + } else if(((a3==7)&&(!(a15==1)&&(!(a6==1)&&((a0==1)&&((!(a22==1)&&((a4==1)&&((a12==9)&&(((a27==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a20==1)))))&&!(a5==1))))))){ + a15 = 1; + a5 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if(((a15==1)&&((a20==1)&&((a3==7)&&(!(a5==1)&&(((a0==1)&&((a22==1)&&((a6==1)&&((((input==2)&&((a18==1)||!(a18==1)))&&!(a4==1))&&(a12==8)))))&&(a27==1))))))){ + a18 = 1; + a5 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if((!(a5==1)&&(((a6==1)&&(((((((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==1))&&(a4==1))&&(a12==11))&&(a20==1))&&(a27==1))&&!(a15==1)))&&(a0==1)))){ + a3 = 4; + a12 = 8; + a22 = 1; + a15 = 1; + a18 = 1; + a5 = 1; + return -1; + } else if((((((a6==1)&&((((!(a0==1)&&(((((a3==6)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==6)))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==3)))&&(a4==1))&&(a12==9))&&!(a15==1)))&&(a20==1))&&(a27==1))&&(a5==1))){ + a0 = 1; + a18 = 0; + a3 = 5; + a22 = 1; + a12 = 10; + return 26; + } else if((((a20==1)&&(((a27==1)&&((!(a4==1)&&(!(a5==1)&&((a3==7)&&((!(a18==1)&&((a15==1)&&(input==2)))&&!(a0==1)))))&&(a12==12)))&&!(a22==1)))&&!(a6==1))){ + a15 = 0; + a12 = 8; + a27 = 0; + a3 = 8; + a5 = 1; + a22 = 1; + return 24; + } else if((!(a0==1)&&((a12==11)&&((!(a15==1)&&((a27==1)&&((a20==1)&&((a6==1)&&((a3==8)&&(((input==1)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a4==1)))))))&&(a5==1))))){ + a4 = 0; + a22 = 1; + a6 = 0; + a18 = 0; + a0 = 1; + a3 = 4; + return -1; + } else if((!(a4==1)&&((a12==10)&&(!(a6==1)&&((!(a15==1)&&((((((input==2)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&(a20==1))&&!(a27==1))&&!(a0==1))&&(a3==5)))&&!(a5==1)))))){ + a15 = 1; + a27 = 1; + a4 = 1; + a0 = 1; + a18 = 0; + a12 = 8; + a3 = 8; + a22 = 0; + a5 = 1; + return -1; + } else if(((!(a4==1)&&(((a12==9)&&((a3==7)&&(((!(a5==1)&&(!(a22==1)&&(((input==3)&&(a6==1))&&(a27==1))))&&(a20==1))&&(a18==1))))&&(a15==1)))&&(a0==1))){ + a12 = 11; + a3 = 6; + a22 = 1; + a4 = 1; + a6 = 0; + return 24; + } else if(((((a20==1)&&((!(a5==1)&&(!(a0==1)&&((a6==1)&&(!(a27==1)&&((((a3==5)&&((a18==1)&&(a22==1)))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==4))))&&(input==6))))))&&(a15==1)))&&!(a4==1))&&(a12==8))){ + if((a22==1)){ + a4 = 1; + a6 = 0; + a22 = 1; + a3 = 7; + a18 = 1; + }else{ + a22 = 1; + a0 = 1; + a27 = 1; + a18 = 1; + a5 = 1; + a4 = 1; + a3 = 7; + } + return -1; + } else if((!(a6==1)&&(((!(a27==1)&&(((a20==1)&&(((((((a22==1)&&(a18==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==5))))&&(input==2))&&(a12==11))&&(a5==1)))&&(a15==1)))&&(a4==1))&&(a0==1)))){ + a15 = 0; + a3 = 6; + a4 = 0; + a22 = 1; + a12 = 12; + a18 = 0; + a27 = 1; + return 26; + } else if(((a12==9)&&((!(a4==1)&&(!(a15==1)&&((!(a27==1)&&((((a6==1)&&((input==2)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&(a5==1))&&(a0==1)))&&(a3==4))))&&(a20==1)))){ + a12 = 10; + a22 = 0; + a3 = 8; + a5 = 0; + a27 = 1; + a18 = 0; + a4 = 1; + return 21; + } else if((((a27==1)&&((((a20==1)&&((a4==1)&&((!(a0==1)&&((((input==6)&&((a18==1)||!(a18==1)))&&!(a6==1))&&(a12==8)))&&(a22==1))))&&(a3==5))&&!(a15==1)))&&!(a5==1))){ + a15 = 1; + a4 = 0; + a18 = 0; + a22 = 0; + a3 = 4; + a0 = 1; + return 26; + } else if((!(a4==1)&&((!(a5==1)&&(((a12==8)&&((a20==1)&&(!(a6==1)&&((a0==1)&&(((input==6)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&(a3==4))))))&&(a27==1)))&&(a15==1)))){ + if((a27==1)){ + a6 = 1; + a18 = 0; + a3 = 7; + a12 = 10; + a0 = 0; + a22 = 1; + }else{ + a5 = 1; + a3 = 5; + a22 = 0; + a0 = 0; + a4 = 1; + a6 = 1; + a18 = 1; + } + return 26; + } else if((((a3==6)&&(((a12==10)&&((a20==1)&&((((a5==1)&&(((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==4))&&(a15==1)))&&(a27==1))&&(a0==1))))&&(a4==1)))&&!(a6==1))){ + a22 = 0; + a12 = 11; + a18 = 1; + a6 = 1; + a3 = 4; + return 26; + } else if((((!(a27==1)&&(((a20==1)&&(!(a0==1)&&((((a5==1)&&((a15==1)&&((input==4)&&!(a4==1))))&&(a3==4))&&(a12==8))))&&(a6==1)))&&(a22==1))&&(a18==1))){ + a4 = 1; + a6 = 0; + a0 = 1; + a18 = 0; + a3 = 5; + a27 = 1; + return -1; + } else if((((a20==1)&&((a27==1)&&((((a5==1)&&((((a3==7)&&((input==4)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))&&(a15==1))&&(a6==1)))&&!(a4==1))&&!(a0==1))))&&(a12==8))){ + a3 = 5; + a12 = 10; + a22 = 1; + a18 = 0; + a6 = 0; + a0 = 1; + return -1; + } else if((((a5==1)&&(((((((!(a22==1)&&(!(a6==1)&&(!(a4==1)&&(input==5))))&&!(a18==1))&&(a15==1))&&!(a0==1))&&!(a27==1))&&(a12==9))&&(a3==5)))&&(a20==1))){ + a27 = 1; + a6 = 1; + a5 = 0; + a12 = 11; + a3 = 6; + return -1; + } else if(((a3==4)&&((a20==1)&&((a0==1)&&(((!(a4==1)&&((!(a6==1)&&((a15==1)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==2))))&&(a5==1)))&&(a12==8))&&!(a27==1)))))){ + a6 = 1; + a4 = 1; + a27 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if((((!(a4==1)&&((a22==1)&&((a3==4)&&((a27==1)&&((a5==1)&&(!(a0==1)&&(!(a6==1)&&((a15==1)&&(((a18==1)||!(a18==1))&&(input==1))))))))))&&(a20==1))&&(a12==10))){ + a0 = 1; + a4 = 1; + a5 = 0; + a6 = 1; + a22 = 0; + a27 = 0; + a3 = 6; + a18 = 1; + return 21; + } else if(((((a12==11)&&(!(a5==1)&&(!(a4==1)&&(((!(a0==1)&&((a20==1)&&((a3==8)&&((input==5)&&((a18==1)||!(a18==1))))))&&!(a15==1))&&(a22==1)))))&&!(a6==1))&&!(a27==1))){ + a5 = 1; + a0 = 1; + a15 = 1; + a27 = 1; + a18 = 0; + a12 = 8; + a3 = 6; + a4 = 1; + a6 = 1; + return -1; + } else if((((a4==1)&&((a15==1)&&(((((a12==9)&&((a20==1)&&((input==5)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6))))))&&!(a5==1))&&!(a0==1))&&!(a6==1))))&&!(a27==1))){ + a18 = 0; + a5 = 1; + a0 = 1; + a22 = 1; + a3 = 4; + a4 = 0; + return 21; + } else if(((a0==1)&&(((a12==8)&&(((((((input==6)&&(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8))))&&!(a27==1))&&(a4==1))&&(a20==1))&&!(a15==1))&&(a6==1)))&&(a5==1)))){ + a22 = 1; + a18 = 1; + a3 = 4; + a15 = 1; + a27 = 1; + return -1; + } else if(((a4==1)&&((!(a22==1)&&(((a0==1)&&((a5==1)&&((a12==11)&&(((!(a15==1)&&((a27==1)&&(input==1)))&&(a3==8))&&(a18==1)))))&&(a20==1)))&&!(a6==1)))){ + a27 = 0; + a3 = 6; + a18 = 0; + a15 = 1; + return 26; + } else if((((((a12==10)&&((((((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==1))&&!(a27==1))&&(a4==1))&&!(a15==1))&&(a5==1))&&(a0==1)))&&(a6==1))&&(a3==8))&&(a20==1))){ + a6 = 0; + a5 = 0; + a4 = 0; + a15 = 1; + a18 = 0; + a27 = 1; + a3 = 5; + a22 = 1; + return -1; + } else if(((a3==6)&&((a12==8)&&((!(a0==1)&&(((a22==1)&&(((((((a18==1)||!(a18==1))&&(input==2))&&!(a15==1))&&!(a6==1))&&!(a4==1))&&!(a27==1)))&&!(a5==1)))&&(a20==1))))){ + if((a15==1)){ + a27 = 1; + a18 = 1; + a15 = 1; + a3 = 7; + a0 = 1; + a5 = 1; + a4 = 1; + }else{ + a6 = 1; + a18 = 1; + a27 = 1; + a15 = 1; + a5 = 1; + a3 = 5; + a4 = 1; + a0 = 1; + } + return -1; + } else if((((a20==1)&&((!(a6==1)&&((a0==1)&&(((!(a4==1)&&(!(a15==1)&&((a22==1)&&((input==1)&&((a18==1)||!(a18==1))))))&&!(a5==1))&&(a3==7))))&&(a12==12)))&&!(a27==1))){ + a4 = 1; + a12 = 10; + a6 = 1; + a27 = 1; + a3 = 5; + a18 = 0; + return 26; + } else if((((!(a6==1)&&(((((a3==8)&&((a0==1)&&((a5==1)&&(((a12==8)&&(input==6))&&(a27==1)))))&&(a4==1))&&(a20==1))&&!(a22==1)))&&!(a18==1))&&!(a15==1))){ + a22 = 1; + a12 = 9; + a3 = 5; + a18 = 1; + a15 = 1; + return 24; + } else if(((((a15==1)&&((a12==8)&&((a20==1)&&(!(a5==1)&&((a27==1)&&(!(a6==1)&&((input==3)&&(((!(a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6)))))))))))&&(a0==1))&&(a4==1))){ + a22 = 1; + a6 = 1; + a18 = 1; + a3 = 6; + a5 = 1; + a12 = 10; + return 21; + } else if((((!(a4==1)&&(((a12==9)&&((a20==1)&&((!(a6==1)&&(!(a27==1)&&((input==1)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))))&&!(a15==1))))&&(a3==5)))&&!(a0==1))&&!(a5==1))){ + a0 = 1; + a4 = 1; + a27 = 1; + a3 = 6; + a22 = 1; + a18 = 1; + a15 = 1; + a5 = 1; + a12 = 8; + return 26; + } else if(((a3==4)&&((a27==1)&&(((a20==1)&&(((a12==8)&&(!(a4==1)&&(((!(a18==1)&&((a6==1)&&(input==5)))&&!(a15==1))&&!(a0==1))))&&(a5==1)))&&!(a22==1))))){ + a18 = 1; + a22 = 1; + a0 = 1; + a15 = 1; + a4 = 1; + return -1; + } else if((!(a6==1)&&(((a27==1)&&((((a12==10)&&((a3==8)&&(!(a5==1)&&((a0==1)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==3))))))&&(a15==1))&&(a4==1)))&&(a20==1)))){ + if((a5==1)){ + a6 = 1; + a18 = 0; + a4 = 0; + a3 = 7; + a22 = 1; + a0 = 0; + }else{ + a5 = 1; + a18 = 1; + a3 = 5; + a22 = 0; + a12 = 8; + a0 = 0; + a6 = 1; + } + return -1; + } else if((((a20==1)&&((((a12==10)&&(!(a22==1)&&(((a3==5)&&((((input==1)&&!(a4==1))&&!(a0==1))&&(a18==1)))&&(a15==1))))&&(a5==1))&&(a6==1)))&&(a27==1))){ + a0 = 1; + a12 = 11; + a3 = 4; + a18 = 0; + a6 = 0; + return 21; + } else if(((a12==9)&&(!(a27==1)&&((((a3==7)&&((!(a5==1)&&(!(a15==1)&&((a4==1)&&((a20==1)&&((input==3)&&!(a6==1))))))&&(a0==1)))&&!(a18==1))&&(a22==1))))){ + a5 = 1; + a22 = 0; + a3 = 5; + a27 = 1; + a4 = 0; + a18 = 1; + a12 = 10; + return 21; + } else if(((a4==1)&&((!(a27==1)&&((a3==8)&&((a15==1)&&((a5==1)&&((a12==9)&&(((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==6))&&(a20==1))&&(a0==1)))))))&&!(a6==1)))){ + a22 = 0; + a6 = 1; + a3 = 4; + a18 = 1; + a4 = 0; + a5 = 0; + return 26; + } else if(((!(a0==1)&&(!(a5==1)&&((((((!(a4==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==1)))&&(a3==4))&&(a12==9))&&(a27==1))&&(a6==1))&&!(a15==1))))&&(a20==1))){ + a18 = 1; + a4 = 1; + a22 = 0; + a12 = 8; + a3 = 7; + a0 = 1; + a5 = 1; + a6 = 0; + a27 = 0; + return 24; + } else if(((!(a22==1)&&(!(a15==1)&&((((((a12==10)&&(((a5==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a4==1)))&&(a20==1))&&(a0==1))&&(a27==1))&&!(a6==1))))&&(a3==7))){ + a3 = 6; + a22 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if(((a3==8)&&((((!(a4==1)&&((a27==1)&&((a12==12)&&(((a20==1)&&((input==2)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a15==1)))))&&(a6==1))&&!(a5==1))&&(a0==1)))){ + a12 = 10; + a5 = 1; + a3 = 4; + a4 = 1; + a18 = 1; + a27 = 0; + a6 = 0; + a22 = 0; + return 26; + } else if(((!(a4==1)&&(!(a5==1)&&(((((((input==5)&&(((a3==5)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4)))))&&!(a0==1))&&(a12==10))&&!(a6==1))&&(a15==1))&&(a27==1))))&&(a20==1))){ + a22 = 1; + a27 = 0; + a5 = 1; + a4 = 1; + a0 = 1; + a15 = 0; + a3 = 6; + a18 = 0; + return -1; + } else if(((a6==1)&&(((a0==1)&&(((!(a5==1)&&((a15==1)&&((((input==4)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&!(a4==1))&&(a12==10))))&&(a20==1))&&(a3==6)))&&!(a27==1)))){ + a6 = 0; + a22 = 1; + a5 = 1; + a12 = 8; + a18 = 0; + return 26; + } else if(((((a4==1)&&((!(a27==1)&&(((((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==6))&&!(a15==1))&&(a12==9))&&(a5==1)))&&(a0==1)))&&(a6==1))&&(a20==1))){ + a27 = 1; + a12 = 11; + a3 = 6; + a6 = 0; + a22 = 1; + a18 = 0; + return 21; + } else if(((((a5==1)&&((((a0==1)&&((((((input==2)&&((a18==1)||!(a18==1)))&&(a20==1))&&!(a15==1))&&!(a27==1))&&(a4==1)))&&!(a6==1))&&!(a22==1)))&&(a12==12))&&(a3==6))){ + a27 = 1; + a3 = 4; + a18 = 1; + a12 = 10; + a6 = 1; + a15 = 1; + return 26; + } else if(((!(a18==1)&&((a20==1)&&((a27==1)&&((a3==5)&&(!(a15==1)&&(((!(a6==1)&&((a4==1)&&((input==3)&&(a5==1))))&&!(a0==1))&&!(a22==1)))))))&&(a12==11))){ + a18 = 1; + a0 = 1; + a3 = 6; + a27 = 0; + a12 = 10; + a5 = 0; + a4 = 0; + return -1; + } else if((((!(a5==1)&&((a6==1)&&((a0==1)&&((a12==9)&&((((a4==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==6)))&&(a3==4))&&!(a15==1))))))&&(a20==1))&&!(a27==1))){ + a12 = 12; + a22 = 1; + a6 = 0; + a18 = 1; + a27 = 1; + a15 = 1; + a3 = 7; + return 26; + } else if(((!(a4==1)&&((a18==1)&&((((a22==1)&&((a5==1)&&(((a3==5)&&((a15==1)&&((a6==1)&&(input==4))))&&(a12==9))))&&(a20==1))&&(a0==1))))&&(a27==1))){ + if((a12==12)){ + a15 = 0; + a6 = 0; + a0 = 0; + a3 = 4; + a5 = 0; + }else{ + a18 = 0; + a12 = 12; + a22 = 0; + a6 = 0; + a15 = 0; + } + return 21; + } else if((!(a5==1)&&(((a15==1)&&((a4==1)&&((a20==1)&&(!(a27==1)&&((!(a22==1)&&(((a12==11)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a6==1)))&&(a3==6))))))&&!(a0==1)))){ + if((a22==1)){ + a4 = 0; + a6 = 0; + a5 = 1; + a12 = 12; + a18 = 1; + a27 = 1; + }else{ + a18 = 0; + a5 = 1; + a27 = 1; + a22 = 1; + a0 = 1; + a3 = 7; + a12 = 8; + } + return -1; + } else if(((((((a0==1)&&((((!(a22==1)&&((a20==1)&&((input==4)&&!(a18==1))))&&(a4==1))&&(a5==1))&&(a12==11)))&&(a6==1))&&!(a27==1))&&(a15==1))&&(a3==8))){ + a18 = 1; + a4 = 0; + a12 = 9; + a3 = 5; + return 21; + } else if(((a12==10)&&((!(a0==1)&&(!(a22==1)&&((a6==1)&&((!(a15==1)&&((a20==1)&&(((a4==1)&&((input==4)&&(a27==1)))&&(a3==4))))&&(a18==1)))))&&(a5==1)))){ + if((a18==1)){ + a12 = 12; + }else{ + a5 = 0; + a12 = 12; + a0 = 1; + a6 = 0; + a18 = 0; + a4 = 0; + a3 = 7; + a15 = 1; + } + return -1; + } else if((((!(a6==1)&&(((!(a22==1)&&((a12==12)&&((a27==1)&&((!(a4==1)&&(!(a18==1)&&(input==1)))&&(a15==1)))))&&(a20==1))&&(a5==1)))&&(a0==1))&&(a3==5))){ + a6 = 1; + a3 = 4; + return -1; + } else if(((a5==1)&&((a0==1)&&(((a6==1)&&(!(a4==1)&&((a12==9)&&((a3==7)&&(((a27==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==1)))&&(a15==1))))))&&(a20==1))))){ + a4 = 1; + a22 = 0; + a6 = 0; + a5 = 0; + a18 = 0; + a12 = 12; + return 21; + } else if((((((a15==1)&&((a20==1)&&(((((!(a6==1)&&((a3==8)&&((a4==1)&&((a18==1)&&!(a22==1)))))||(!(a6==1)&&(((!(a22==1)&&!(a18==1))&&(a4==1))&&(a3==8))))||((a6==1)&&((!(a4==1)&&((a22==1)&&(a18==1)))&&(a3==4))))&&(input==3))&&(a5==1))))&&(a12==9))&&(a27==1))&&!(a0==1))){ + a22 = 1; + a6 = 1; + a3 = 7; + a18 = 0; + a12 = 12; + a0 = 1; + a27 = 0; + a4 = 0; + return 26; + } else if((((a20==1)&&(((a27==1)&&(((((a6==1)&&((input==6)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))))&&(a4==1))&&(a12==11))&&!(a0==1)))&&(a15==1)))&&!(a5==1))){ + a0 = 1; + a3 = 4; + a22 = 1; + a5 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if(((a20==1)&&(((!(a5==1)&&(!(a0==1)&&((!(a6==1)&&((((input==3)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a12==11))&&!(a15==1)))&&(a3==4))))&&(a4==1))&&(a27==1)))){ + a22 = 0; + a18 = 1; + a4 = 0; + a12 = 12; + a0 = 1; + a3 = 7; + return 26; + } else if((((a27==1)&&(!(a5==1)&&(!(a4==1)&&((((((input==4)&&(((!(a18==1)&&(a22==1))&&(a3==7))||(((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))))&&(a6==1))&&(a20==1))&&(a0==1))&&(a12==10)))))&&(a15==1))){ + a4 = 1; + a3 = 5; + a0 = 0; + a22 = 0; + a18 = 1; + a6 = 0; + return 26; + } else if((((!(a0==1)&&(((a27==1)&&(((a3==6)&&(!(a22==1)&&((((input==1)&&!(a5==1))&&!(a6==1))&&!(a4==1))))&&!(a18==1)))&&(a12==12)))&&(a20==1))&&!(a15==1))){ + a27 = 0; + a4 = 1; + a12 = 10; + a5 = 1; + a15 = 1; + a22 = 1; + return 26; + } else if(((!(a4==1)&&((((((a3==8)&&(!(a22==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&(a0==1))&&(a6==1))))&&(a12==8))&&!(a27==1))&&(a20==1))&&(a15==1)))&&(a5==1))){ + a27 = 1; + a12 = 10; + a15 = 0; + a18 = 0; + a22 = 1; + return 26; + } else if((((((a15==1)&&((a6==1)&&((a20==1)&&((a4==1)&&((a12==11)&&(((input==1)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&!(a5==1)))))))&&(a27==1))&&(a0==1))&&(a3==6))){ + a15 = 0; + a3 = 7; + a22 = 1; + a18 = 1; + a12 = 8; + a5 = 1; + a6 = 0; + return 24; + } else if(((a20==1)&&(((!(a15==1)&&((a12==9)&&(!(a5==1)&&((a22==1)&&(!(a0==1)&&(!(a4==1)&&((((a18==1)||!(a18==1))&&(input==5))&&(a3==7))))))))&&(a27==1))&&(a6==1)))){ + a6 = 0; + a0 = 1; + a4 = 1; + a15 = 1; + a12 = 10; + a18 = 0; + a3 = 4; + return 26; + } else if((!(a5==1)&&((a15==1)&&((!(a4==1)&&(((a12==9)&&((a27==1)&&(((((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==2))&&(a0==1))))&&(a20==1)))&&(a6==1))))){ + a3 = 4; + a18 = 1; + a5 = 1; + a12 = 8; + a4 = 1; + a22 = 1; + return -1; + } else if((!(a5==1)&&((a20==1)&&((a15==1)&&(((!(a27==1)&&((!(a0==1)&&((((a3==6)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1)))))&&(input==1)))&&(a12==10)))&&(a4==1))&&!(a6==1)))))){ + if((a18==1)){ + a3 = 8; + a6 = 1; + a22 = 1; + a5 = 1; + a12 = 8; + a18 = 0; + a27 = 1; + a0 = 1; + }else{ + a18 = 1; + a22 = 0; + a0 = 1; + a27 = 1; + a3 = 5; + a12 = 8; + a6 = 1; + a4 = 0; + a5 = 1; + } + return 21; + } else if(((a3==8)&&((((a6==1)&&((a20==1)&&(((!(a27==1)&&((a15==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a5==1))))&&(a22==1))&&(a4==1))))&&!(a0==1))&&(a12==9)))){ + if((a22==1)){ + a18 = 0; + a6 = 0; + a0 = 1; + a12 = 8; + a27 = 1; + a3 = 4; + }else{ + a5 = 0; + a3 = 6; + a18 = 0; + a0 = 1; + a22 = 0; + } + return -1; + } else if((((a3==8)&&((a6==1)&&(((a27==1)&&(!(a5==1)&&(((!(a0==1)&&((input==2)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a12==10))&&(a15==1))))&&(a20==1))))&&!(a4==1))){ + a5 = 1; + a22 = 1; + a0 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + a4 = 1; + return -1; + } else if(((a20==1)&&(((a4==1)&&((a12==8)&&((((((a27==1)&&((input==3)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))&&(a3==8))&&!(a6==1))&&(a0==1))&&!(a5==1))))&&(a15==1)))){ + a18 = 1; + a5 = 1; + a22 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if(((a0==1)&&((a20==1)&&(((a12==12)&&((!(a6==1)&&(((a3==5)&&((!(a18==1)&&((input==3)&&(a27==1)))&&!(a22==1)))&&!(a15==1)))&&(a4==1)))&&(a5==1))))){ + a18 = 1; + a22 = 1; + a3 = 6; + return 21; + } else if(((!(a22==1)&&((a6==1)&&((!(a15==1)&&(((a20==1)&&(((((input==4)&&((a18==1)||!(a18==1)))&&!(a5==1))&&(a3==5))&&!(a27==1)))&&!(a0==1)))&&(a12==10))))&&(a4==1))){ + a18 = 0; + a6 = 0; + a15 = 1; + a4 = 0; + a0 = 1; + a27 = 1; + a5 = 1; + a3 = 6; + a12 = 9; + a22 = 1; + return -1; + } else if(((!(a27==1)&&(!(a5==1)&&((((((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&!(a6==1))&&!(a15==1))&&!(a0==1))&&(a3==5))&&(a4==1))&&(a20==1))))&&(a12==8))){ + a15 = 1; + a0 = 1; + a22 = 1; + a4 = 0; + a27 = 1; + a5 = 1; + a3 = 8; + a18 = 1; + a6 = 1; + return 26; + } else if((!(a15==1)&&((((a22==1)&&(!(a5==1)&&(((a20==1)&&(((a6==1)&&(!(a4==1)&&((input==5)&&(a3==8))))&&(a12==12)))&&(a0==1))))&&!(a18==1))&&!(a27==1)))){ + a6 = 0; + a5 = 1; + a15 = 1; + a27 = 1; + a0 = 0; + a22 = 0; + return -1; + } else if(((a15==1)&&(!(a27==1)&&((((((a4==1)&&(((input==1)&&((((a18==1)&&(a22==1))&&(a3==5))||(((!(a22==1)&&(a18==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))))&&(a12==10)))&&(a20==1))&&(a0==1))&&!(a5==1))&&(a6==1))))){ + if((a22==1)){ + a0 = 0; + a18 = 0; + a3 = 5; + a27 = 1; + a22 = 0; + }else{ + a6 = 0; + a3 = 7; + a15 = 0; + a27 = 1; + a5 = 1; + a22 = 1; + a12 = 12; + a18 = 1; + a4 = 0; + } + return 26; + } else if(((((a4==1)&&((!(a6==1)&&(((a20==1)&&((a27==1)&&((((a3==5)&&((a22==1)&&(a18==1)))||(((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a22==1)&&!(a18==1)))))&&(input==4))))&&(a12==9)))&&(a15==1)))&&!(a5==1))&&(a0==1))){ + a6 = 1; + a0 = 0; + a5 = 1; + a3 = 8; + a4 = 0; + a18 = 1; + a22 = 0; + return 26; + } else if(((!(a5==1)&&((((((a15==1)&&(((((input==2)&&((a18==1)||!(a18==1)))&&(a3==7))&&(a0==1))&&(a20==1)))&&!(a4==1))&&(a27==1))&&(a12==11))&&!(a6==1)))&&!(a22==1))){ + a3 = 6; + a12 = 10; + a4 = 1; + a15 = 0; + a5 = 1; + a18 = 1; + return -1; + } else if(((a3==8)&&((((a15==1)&&((!(a6==1)&&((a12==11)&&((a22==1)&&((a20==1)&&(((input==3)&&!(a5==1))&&!(a18==1))))))&&!(a0==1)))&&!(a27==1))&&!(a4==1)))){ + if((a15==1)){ + a3 = 5; + a18 = 1; + a12 = 8; + a5 = 1; + a22 = 0; + a0 = 1; + a4 = 1; + a27 = 1; + }else{ + a6 = 1; + a3 = 5; + a4 = 1; + a18 = 1; + } + return 26; + } else if((((a27==1)&&((a3==7)&&(!(a4==1)&&((((a12==11)&&((!(a0==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==1)))&&!(a15==1)))&&(a20==1))&&!(a5==1)))))&&!(a6==1))){ + a5 = 1; + a0 = 1; + a18 = 0; + a22 = 1; + return -1; + } else if(((!(a4==1)&&(((a12==12)&&((((a20==1)&&((((a3==4)&&((input==2)&&((a18==1)||!(a18==1))))&&(a27==1))&&!(a6==1)))&&(a5==1))&&(a22==1)))&&!(a0==1)))&&(a15==1))){ + a3 = 7; + a0 = 1; + a15 = 0; + a18 = 1; + return -1; + } else if(((!(a4==1)&&(!(a15==1)&&((a20==1)&&(!(a27==1)&&((((a6==1)&&((((((a18==1)&&!(a22==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==1)))&&!(a0==1))&&!(a5==1))))))&&(a12==9))){ + if((a12==10)){ + a15 = 1; + a27 = 1; + a5 = 1; + a22 = 0; + a3 = 5; + a6 = 0; + a4 = 1; + a0 = 1; + a18 = 1; + a12 = 8; + }else{ + a0 = 1; + a15 = 1; + a12 = 8; + a22 = 0; + a3 = 8; + a5 = 1; + a27 = 1; + a18 = 0; + } + return -1; + } else if(((!(a27==1)&&(((a3==4)&&((!(a22==1)&&(!(a5==1)&&((((a20==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a6==1))&&!(a15==1))))&&(a12==9)))&&(a4==1)))&&!(a0==1))){ + a3 = 6; + a27 = 1; + a18 = 1; + a0 = 1; + a5 = 1; + a12 = 8; + a15 = 1; + a6 = 0; + return 26; + } else if(((a12==11)&&(((a20==1)&&(((a27==1)&&((a5==1)&&((((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1)))&&(input==5))&&(a0==1))))&&!(a15==1)))&&!(a4==1)))){ + a18 = 1; + a6 = 1; + a3 = 4; + a22 = 1; + return 24; + } else if((!(a6==1)&&(((!(a22==1)&&((a3==7)&&((a12==11)&&(((a18==1)&&((a5==1)&&((a4==1)&&((a15==1)&&(input==6)))))&&!(a0==1)))))&&(a20==1))&&(a27==1)))){ + a0 = 1; + a3 = 6; + a15 = 0; + a6 = 1; + a12 = 10; + a18 = 0; + return -1; + } else if(((a20==1)&&((a3==8)&&(!(a0==1)&&(((a12==8)&&((a15==1)&&((a27==1)&&(!(a5==1)&&(!(a6==1)&&((input==5)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))))))))&&(a4==1)))))){ + a27 = 0; + a0 = 1; + a15 = 0; + a18 = 1; + a22 = 1; + a3 = 5; + a6 = 1; + a12 = 10; + return 21; + } else if((!(a27==1)&&(!(a22==1)&&(((a3==7)&&(!(a4==1)&&(((a20==1)&&((((!(a15==1)&&(input==4))&&!(a0==1))&&(a18==1))&&(a12==9)))&&!(a5==1))))&&!(a6==1))))){ + a6 = 1; + a5 = 1; + a3 = 6; + a27 = 1; + a4 = 1; + a12 = 8; + a0 = 1; + a15 = 1; + return -1; + } else if(((a27==1)&&(!(a6==1)&&((a3==6)&&((!(a4==1)&&(!(a0==1)&&(!(a5==1)&&((a12==10)&&((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==2))&&!(a15==1))))))&&(a20==1)))))){ + a15 = 1; + a4 = 1; + a0 = 1; + a18 = 1; + a6 = 1; + a12 = 8; + a5 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if(((!(a5==1)&&(!(a4==1)&&((!(a6==1)&&((a20==1)&&((!(a18==1)&&(((a3==4)&&(!(a22==1)&&(input==1)))&&!(a0==1)))&&(a27==1))))&&!(a15==1))))&&(a12==10))){ + a4 = 1; + a5 = 1; + a6 = 1; + a0 = 1; + a3 = 5; + a27 = 0; + a18 = 1; + return 26; + } else if(((((a20==1)&&(((!(a27==1)&&((((((a3==6)&&(!(a18==1)&&(a22==1)))||(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1)))))&&(input==5))&&!(a6==1))&&(a4==1)))&&(a12==10))&&!(a5==1)))&&(a15==1))&&(a0==1))){ + a18 = 1; + a22 = 1; + a5 = 1; + a27 = 1; + a6 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((((((a4==1)&&((((a18==1)&&((a15==1)&&(!(a5==1)&&((input==5)&&(a12==11)))))&&!(a6==1))&&(a3==6)))&&!(a22==1))&&(a20==1))&&!(a0==1))&&!(a27==1))){ + a6 = 1; + a22 = 1; + a12 = 8; + a0 = 1; + a27 = 1; + a5 = 1; + a3 = 7; + return 26; + } else if((!(a27==1)&&((a3==7)&&((!(a22==1)&&(((a12==9)&&((a20==1)&&(((a5==1)&&(!(a0==1)&&((a6==1)&&(input==1))))&&(a4==1))))&&(a18==1)))&&!(a15==1))))){ + a22 = 1; + a15 = 1; + a12 = 12; + a3 = 8; + a27 = 1; + return -1; + } else if(((a12==11)&&(((a4==1)&&((((a3==7)&&(((a6==1)&&(((((a18==1)||!(a18==1))&&(input==3))&&!(a27==1))&&(a15==1)))&&(a5==1)))&&(a22==1))&&(a20==1)))&&!(a0==1)))){ + if((a27==1)){ + a12 = 8; + a18 = 1; + a5 = 0; + a4 = 0; + a6 = 0; + }else{ + a6 = 0; + a18 = 0; + a0 = 1; + a27 = 1; + a12 = 8; + } + return 26; + } else if(((a12==9)&&((a0==1)&&((a15==1)&&((a27==1)&&(((((!(a18==1)&&(((a3==4)&&(input==2))&&(a22==1)))&&(a20==1))&&!(a4==1))&&!(a6==1))&&(a5==1))))))){ + a4 = 1; + a18 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if((!(a27==1)&&((a0==1)&&((a5==1)&&(((a12==11)&&(!(a4==1)&&((!(a15==1)&&(((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6)))||(((a22==1)&&!(a18==1))&&(a3==6)))&&(input==3)))&&!(a6==1))))&&(a20==1)))))){ + a27 = 1; + a15 = 1; + a3 = 8; + a12 = 10; + a18 = 1; + a4 = 1; + a5 = 0; + a22 = 0; + a0 = 0; + return -1; + } else if(((a15==1)&&((a12==12)&&(((a6==1)&&(((((a4==1)&&((input==3)&&((((a3==5)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==5)))||(((a18==1)&&(a22==1))&&(a3==6)))))&&!(a0==1))&&(a27==1))&&(a20==1)))&&!(a5==1))))){ + a0 = 1; + a18 = 0; + a12 = 8; + a3 = 5; + a6 = 0; + a22 = 1; + a15 = 0; + return 26; + } else if((!(a0==1)&&((a5==1)&&((a3==8)&&((a20==1)&&((!(a4==1)&&(((((input==4)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&(a6==1))&&(a27==1))&&(a15==1)))&&(a12==10))))))){ + a18 = 1; + a4 = 1; + a0 = 1; + a22 = 0; + a12 = 12; + a15 = 0; + a3 = 4; + return 26; + } else if(((a20==1)&&((a12==11)&&(((((((((a3==4)&&(!(a4==1)&&(!(a18==1)&&(a22==1))))&&(a6==1))||(((((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8))&&!(a6==1))||(((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1))))&&(a6==1))))&&(input==6))&&!(a5==1))&&!(a27==1))&&!(a15==1))&&!(a0==1))))){ + a15 = 1; + a5 = 1; + a0 = 1; + a22 = 0; + a27 = 1; + a6 = 0; + a18 = 0; + a3 = 5; + a4 = 1; + a12 = 8; + return 21; + } else if(((((a4==1)&&(((a5==1)&&((a20==1)&&(((a6==1)&&((((a3==6)&&(!(a18==1)&&(a22==1)))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a22==1)&&(a18==1)))))&&(input==1)))&&!(a15==1))))&&(a12==10)))&&(a27==1))&&(a0==1))){ + a15 = 1; + a22 = 0; + a3 = 5; + a18 = 0; + return -1; + } else if(((a12==9)&&((a4==1)&&((a15==1)&&(((a20==1)&&((a27==1)&&((((a6==1)&&((a18==1)&&((a0==1)&&(input==2))))&&!(a22==1))&&(a3==7))))&&(a5==1)))))){ + a4 = 0; + a15 = 0; + a12 = 11; + a6 = 0; + a18 = 0; + a5 = 0; + a22 = 1; + return 26; + } else if((((((a6==1)&&(((a20==1)&&((!(a5==1)&&((a4==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==4))))&&!(a15==1)))&&(a27==1)))&&(a12==10))&&(a3==7))&&(a0==1))){ + if((a18==1)){ + a18 = 1; + a5 = 1; + a22 = 0; + a3 = 4; + a4 = 0; + a0 = 0; + }else{ + a6 = 0; + a27 = 0; + a22 = 0; + a5 = 1; + a18 = 0; + a3 = 5; + a4 = 0; + } + return 21; + } else if(((a6==1)&&(((a5==1)&&((!(a27==1)&&(((!(a0==1)&&((input==5)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a18==1)&&(a22==1))))))&&!(a4==1))&&(a12==8)))&&(a20==1)))&&(a15==1)))){ + a0 = 1; + a3 = 4; + a4 = 1; + a18 = 0; + a22 = 1; + return 26; + } else if((((a15==1)&&((!(a4==1)&&(!(a5==1)&&((a0==1)&&((a6==1)&&((((((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a18==1)&&(a22==1))))||((!(a18==1)&&(a22==1))&&(a3==7)))&&(input==1))&&(a12==9))))))&&(a20==1)))&&(a27==1))){ + a12 = 8; + a27 = 0; + a22 = 0; + a3 = 5; + a18 = 1; + return 24; + } else if((!(a15==1)&&(((!(a4==1)&&((a12==11)&&(((((!(a6==1)&&((a27==1)&&(input==4)))&&!(a22==1))&&!(a0==1))&&(a3==8))&&(a5==1))))&&(a20==1))&&!(a18==1)))){ + a3 = 4; + a0 = 1; + a18 = 1; + a6 = 1; + a22 = 1; + a5 = 0; + return 26; + } else if((((((a22==1)&&((a4==1)&&((((!(a0==1)&&(((a6==1)&&(input==1))&&!(a18==1)))&&(a20==1))&&!(a5==1))&&(a12==9))))&&!(a27==1))&&(a15==1))&&(a3==4))){ + a3 = 5; + a6 = 0; + a27 = 1; + a18 = 1; + a12 = 8; + a4 = 0; + return 26; + } else if((((a3==4)&&((a27==1)&&(((a20==1)&&((((a5==1)&&(((a22==1)&&((input==3)&&((a18==1)||!(a18==1))))&&!(a4==1)))&&(a12==12))&&!(a6==1)))&&(a15==1))))&&(a0==1))){ + a12 = 8; + a18 = 1; + a4 = 1; + a6 = 1; + return -1; + } else if((((a3==4)&&((a20==1)&&(((((((a12==9)&&((input==2)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))&&(a15==1))&&(a5==1))&&(a27==1))&&!(a6==1))&&!(a4==1))))&&!(a0==1))){ + a18 = 1; + a12 = 8; + a22 = 1; + a0 = 1; + a4 = 1; + a6 = 1; + return -1; + } else if(((a20==1)&&((!(a6==1)&&(((a3==4)&&((((!(a4==1)&&((input==6)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a15==1))&&(a0==1))&&(a12==10)))&&(a5==1)))&&!(a27==1)))){ + a22 = 0; + a6 = 1; + a12 = 12; + a4 = 1; + a3 = 6; + a18 = 0; + return 21; + } else if(((a0==1)&&((a27==1)&&((((input==5)&&((!(a6==1)&&((a3==8)&&((((a5==1)&&(!(a18==1)&&!(a22==1)))&&!(a15==1))&&!(a4==1))))||(((a3==4)&&((a4==1)&&((((a18==1)&&(a22==1))&&!(a5==1))&&(a15==1))))&&(a6==1))))&&(a12==11))&&(a20==1))))){ + a15 = 1; + a18 = 1; + a6 = 1; + a5 = 1; + a22 = 1; + a3 = 4; + a4 = 1; + a12 = 8; + return -1; + } else if(((a6==1)&&(((((a4==1)&&((!(a0==1)&&((((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&!(a5==1))&&(a3==7)))&&!(a27==1)))&&(a15==1))&&(a12==10))&&(a20==1)))){ + a4 = 0; + a27 = 1; + a18 = 0; + a12 = 9; + a22 = 0; + a6 = 0; + return -1; + } else if(((a27==1)&&(!(a6==1)&&((((((((a12==10)&&(!(a15==1)&&((input==6)&&(a4==1))))&&(a20==1))&&(a22==1))&&!(a18==1))&&(a5==1))&&!(a0==1))&&(a3==8))))){ + a3 = 6; + a12 = 11; + a0 = 1; + a18 = 1; + return 26; + } else if((((a0==1)&&((((!(a15==1)&&(((((input==1)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a5==1))&&(a20==1))&&(a3==5)))&&!(a6==1))&&(a12==9))&&(a4==1)))&&(a27==1))){ + a15 = 1; + a22 = 1; + a27 = 0; + a5 = 1; + a6 = 1; + a18 = 0; + a3 = 6; + return 26; + } else if(((((a18==1)&&(!(a22==1)&&(((((a12==9)&&((((a3==7)&&(input==4))&&!(a4==1))&&(a20==1)))&&!(a27==1))&&!(a0==1))&&!(a6==1))))&&(a15==1))&&!(a5==1))){ + a22 = 1; + a5 = 1; + a3 = 8; + a27 = 1; + a12 = 11; + a18 = 0; + return -1; + } else if(((!(a27==1)&&((a22==1)&&(((a20==1)&&(((!(a15==1)&&(((!(a5==1)&&(input==6))&&!(a0==1))&&(a3==6)))&&(a12==11))&&!(a6==1)))&&(a4==1))))&&(a18==1))){ + a12 = 8; + a0 = 1; + a5 = 1; + a3 = 7; + a6 = 1; + a15 = 1; + a27 = 1; + return -1; + } else if(((a0==1)&&(((a27==1)&&((((a20==1)&&((((input==5)&&(((!(a18==1)&&(a22==1))&&(a3==7))||(((!(a18==1)&&!(a22==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))))&&!(a15==1))&&!(a4==1)))&&(a5==1))&&(a12==9)))&&!(a6==1)))){ + a15 = 1; + a3 = 4; + a6 = 1; + a12 = 12; + a22 = 1; + a4 = 1; + a18 = 1; + a5 = 0; + return 26; + } else if(((!(a0==1)&&((!(a6==1)&&(((a27==1)&&((a5==1)&&(((a12==9)&&((input==6)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))))&&(a3==6))))&&(a4==1)))&&(a20==1)))&&!(a15==1))){ + a18 = 1; + a3 = 4; + a6 = 1; + a12 = 8; + a22 = 1; + a0 = 1; + a15 = 1; + return -1; + } else if((!(a4==1)&&(((((a12==12)&&((a20==1)&&(((((input==3)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a27==1))&&(a3==4))&&(a5==1))))&&!(a15==1))&&!(a0==1))&&!(a6==1)))){ + a27 = 0; + a22 = 0; + a12 = 9; + a18 = 1; + return 21; + } else if(((!(a27==1)&&(!(a0==1)&&((((a3==6)&&(((a5==1)&&(((input==6)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a12==9)))&&(a6==1)))&&!(a4==1))&&(a20==1))))&&(a15==1))){ + a4 = 1; + a0 = 1; + a12 = 11; + a3 = 5; + a5 = 0; + a18 = 0; + a27 = 1; + a22 = 1; + return 21; + } else if(((a15==1)&&((((a27==1)&&((((((a12==9)&&(((input==1)&&(a18==1))&&!(a22==1)))&&(a20==1))&&(a3==6))&&(a6==1))&&!(a5==1)))&&!(a4==1))&&(a0==1)))){ + a27 = 0; + a12 = 8; + a3 = 4; + a18 = 0; + a22 = 1; + return 21; + } else if((!(a27==1)&&(!(a5==1)&&(!(a6==1)&&(!(a0==1)&&((((!(a15==1)&&((((a3==8)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a22==1)&&!(a18==1)))))&&(input==4)))&&(a12==8))&&!(a4==1))&&(a20==1))))))){ + if((a22==1)){ + a12 = 10; + a15 = 1; + a5 = 1; + a3 = 8; + a18 = 1; + a22 = 1; + a6 = 1; + a27 = 1; + a4 = 1; + }else{ + a18 = 1; + a4 = 1; + a22 = 0; + a3 = 5; + } + return -1; + } else if((!(a15==1)&&(!(a0==1)&&((a27==1)&&(((a20==1)&&((a3==6)&&((!(a18==1)&&((!(a5==1)&&((a12==11)&&(input==3)))&&(a22==1)))&&(a4==1))))&&!(a6==1)))))){ + a0 = 1; + a12 = 10; + a3 = 7; + a5 = 1; + a18 = 1; + return -1; + } else if((!(a6==1)&&(((a27==1)&&(!(a5==1)&&(((a20==1)&&((!(a15==1)&&(!(a4==1)&&((((a18==1)||!(a18==1))&&(input==5))&&(a3==6))))&&!(a0==1)))&&!(a22==1))))&&(a12==9)))){ + a22 = 1; + a6 = 1; + a15 = 1; + a0 = 1; + a5 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if((((a3==6)&&(!(a15==1)&&(((a4==1)&&(((a27==1)&&((a18==1)&&(((a5==1)&&((input==3)&&(a20==1)))&&!(a0==1))))&&!(a6==1)))&&(a22==1))))&&(a12==10))){ + a0 = 1; + a5 = 0; + a3 = 8; + a12 = 8; + a18 = 0; + return 26; + } else if((((!(a27==1)&&(((a12==11)&&((((a6==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))||((a3==7)&&(!(a18==1)&&(a22==1))))&&(input==3)))&&(a20==1))&&(a5==1)))&&!(a4==1)))&&(a15==1))&&!(a0==1))){ + if((a27==1)){ + a0 = 1; + a3 = 8; + a18 = 0; + a22 = 0; + a5 = 0; + a12 = 12; + a15 = 0; + }else{ + a5 = 0; + a0 = 1; + a12 = 12; + a3 = 8; + a4 = 1; + a22 = 0; + a18 = 1; + a27 = 1; + } + return -1; + } else if(((a3==7)&&((a20==1)&&((a12==9)&&((((a15==1)&&(!(a5==1)&&((a0==1)&&(((input==2)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&!(a6==1)))))&&!(a27==1))&&(a4==1)))))){ + a18 = 1; + a12 = 10; + a3 = 4; + a22 = 0; + a27 = 1; + return 21; + } else if(((a15==1)&&(!(a27==1)&&(((a3==6)&&((!(a5==1)&&(((((a12==8)&&((a6==1)&&(input==3)))&&!(a18==1))&&(a22==1))&&(a4==1)))&&(a20==1)))&&(a0==1))))){ + a27 = 1; + a4 = 0; + a12 = 11; + a5 = 1; + a22 = 0; + a15 = 0; + a3 = 5; + a6 = 0; + return -1; + } else if(((a18==1)&&((((a3==8)&&(!(a4==1)&&((!(a27==1)&&((!(a6==1)&&((a0==1)&&((a20==1)&&(input==3))))&&(a5==1)))&&!(a15==1))))&&(a12==8))&&(a22==1)))){ + a4 = 1; + a3 = 5; + a15 = 1; + a6 = 1; + a12 = 11; + return 21; + } else if(((!(a6==1)&&((a20==1)&&(((a4==1)&&(((!(a0==1)&&(((a5==1)&&((input==2)&&(a27==1)))&&!(a22==1)))&&!(a18==1))&&!(a15==1)))&&(a12==12))))&&(a3==5))){ + if((a27==1)){ + a12 = 9; + a0 = 1; + a22 = 1; + a15 = 1; + a3 = 4; + }else{ + a3 = 8; + a6 = 1; + a0 = 1; + a18 = 1; + a12 = 8; + a15 = 1; + a4 = 0; + } + return -1; + } else if(((((((a6==1)&&((!(a15==1)&&((((((a18==1)||!(a18==1))&&(input==6))&&!(a4==1))&&(a27==1))&&!(a5==1)))&&!(a22==1)))&&!(a0==1))&&(a3==7))&&(a20==1))&&(a12==12))){ + a12 = 8; + a15 = 1; + a3 = 4; + a18 = 1; + a6 = 0; + a5 = 1; + a0 = 1; + a22 = 1; + return -1; + } else if(((((((a4==1)&&((a12==9)&&(!(a6==1)&&(((a3==4)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==1)))&&(a0==1)))))&&(a20==1))&&!(a27==1))&&!(a5==1))&&!(a15==1))){ + a5 = 1; + a27 = 1; + a3 = 8; + a18 = 1; + a22 = 0; + a4 = 0; + a6 = 1; + a15 = 1; + a12 = 10; + return 24; + } else if(((a6==1)&&((a12==8)&&((((a5==1)&&((a3==4)&&(((a0==1)&&((a20==1)&&((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&!(a15==1))))&&(a4==1))&&!(a27==1))))){ + if((a18==1)){ + a4 = 0; + a18 = 0; + a27 = 1; + a15 = 1; + a3 = 6; + a12 = 11; + a5 = 0; + a0 = 0; + a22 = 0; + }else{ + a12 = 11; + a5 = 0; + a18 = 0; + a27 = 1; + a22 = 1; + a4 = 0; + a3 = 7; + a6 = 0; + a15 = 1; + } + return 21; + } else if(((((a12==10)&&((!(a5==1)&&(!(a4==1)&&((((a20==1)&&((a6==1)&&((input==3)&&((a18==1)||!(a18==1)))))&&(a22==1))&&(a0==1))))&&(a3==7)))&&!(a15==1))&&!(a27==1))){ + a6 = 0; + a22 = 0; + a15 = 1; + a18 = 0; + return -1; + } else if((!(a6==1)&&((a12==10)&&(((((a18==1)&&((((a3==7)&&(((input==1)&&!(a27==1))&&(a15==1)))&&(a4==1))&&!(a0==1)))&&(a5==1))&&(a22==1))&&(a20==1))))){ + a0 = 1; + a18 = 0; + a12 = 8; + a27 = 1; + a6 = 1; + return 26; + } else if(((a12==8)&&(((((a20==1)&&(((((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==1))&&(a15==1))&&!(a0==1))&&!(a5==1))&&!(a4==1)))&&(a27==1))&&(a3==4))&&(a6==1)))){ + a5 = 1; + a0 = 1; + a18 = 1; + a4 = 1; + a22 = 1; + return -1; + } else if((((a15==1)&&((a12==8)&&(!(a0==1)&&((a5==1)&&((a3==4)&&((a22==1)&&(((a20==1)&&(!(a27==1)&&((input==3)&&(a18==1))))&&(a6==1))))))))&&!(a4==1))){ + if((a15==1)){ + a0 = 1; + a22 = 0; + a3 = 8; + a27 = 1; + }else{ + a12 = 10; + a4 = 1; + a6 = 0; + a15 = 0; + a27 = 1; + a0 = 1; + a3 = 7; + a22 = 0; + } + return 24; + } else if(((((a4==1)&&((((!(a5==1)&&(!(a27==1)&&((((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==5))))&&(a0==1))&&(a20==1))&&(a6==1)))&&(a12==8))&&!(a15==1))){ + a22 = 1; + a27 = 1; + a3 = 4; + a18 = 1; + a5 = 1; + a12 = 10; + return 21; + } else if((((a12==12)&&(((a20==1)&&((!(a4==1)&&((!(a15==1)&&((((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==5)))&&!(a27==1)))&&(a6==1)))&&(a0==1)))&&!(a5==1))){ + a3 = 4; + a15 = 1; + a27 = 1; + a22 = 1; + a12 = 8; + a4 = 1; + a5 = 1; + a18 = 1; + return -1; + } else if(((a12==9)&&(!(a6==1)&&(((a5==1)&&(!(a0==1)&&((a15==1)&&((a3==8)&&(!(a22==1)&&(((a27==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a20==1)))))))&&!(a4==1))))){ + a12 = 11; + a6 = 1; + a18 = 0; + a0 = 1; + a27 = 0; + a3 = 5; + return 26; + } else if((((a20==1)&&(((((a6==1)&&(!(a22==1)&&((((!(a15==1)&&(input==6))&&(a0==1))&&!(a5==1))&&!(a18==1))))&&!(a4==1))&&(a12==9))&&(a3==8)))&&(a27==1))){ + a15 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + a4 = 1; + a12 = 8; + a5 = 1; + return -1; + } else if(((((((a6==1)&&((a12==8)&&(!(a0==1)&&((a27==1)&&((a4==1)&&((input==3)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))))))&&(a15==1))&&(a3==8))&&!(a5==1))&&(a20==1))){ + a22 = 1; + a3 = 4; + a0 = 1; + a18 = 1; + a5 = 1; + return -1; + } else if(((((a6==1)&&((a20==1)&&((a27==1)&&((((a0==1)&&((input==2)&&(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8)))))&&!(a15==1))&&!(a5==1)))))&&!(a4==1))&&(a12==12))){ + if((a4==1)){ + a18 = 1; + a0 = 0; + a22 = 0; + a3 = 4; + a5 = 1; + a15 = 1; + a12 = 10; + }else{ + a22 = 0; + a18 = 0; + a6 = 0; + a3 = 6; + } + return 26; + } else if(((((a20==1)&&((!(a0==1)&&(((!(a6==1)&&((input==2)&&(((!(a18==1)&&(a22==1))&&(a3==7))||(((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7))))))&&(a12==11))&&(a15==1)))&&(a4==1)))&&(a5==1))&&(a27==1))){ + a18 = 1; + a12 = 10; + a15 = 0; + a3 = 6; + a0 = 1; + a22 = 0; + return -1; + } else if((!(a5==1)&&(((((((((!(a6==1)&&((input==1)&&!(a0==1)))&&!(a18==1))&&(a12==10))&&(a15==1))&&(a20==1))&&(a3==7))&&!(a22==1))&&(a27==1))&&!(a4==1)))){ + a4 = 1; + a0 = 1; + a12 = 9; + a15 = 0; + a3 = 8; + a5 = 1; + a18 = 1; + return 26; + } else if((((((a20==1)&&((a12==10)&&(!(a27==1)&&((((a0==1)&&((input==6)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a15==1))&&!(a5==1)))))&&(a3==4))&&!(a4==1))&&!(a6==1))){ + if((a3==5)){ + a15 = 0; + a27 = 1; + a0 = 0; + a6 = 1; + a5 = 1; + a22 = 1; + a3 = 7; + a18 = 1; + }else{ + a4 = 1; + a18 = 1; + a22 = 0; + } + return -1; + } else if(((a12==11)&&(((((!(a27==1)&&((a6==1)&&((a20==1)&&((input==3)&&((((a18==1)&&(a22==1))&&(a3==5))||((((a18==1)&&!(a22==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4))))))))&&(a0==1))&&!(a5==1))&&(a4==1))&&!(a15==1)))){ + a0 = 0; + a27 = 1; + a3 = 4; + a15 = 1; + a18 = 0; + a22 = 0; + a12 = 10; + return 21; + } else if((((!(a27==1)&&((a22==1)&&((a12==9)&&(((a3==7)&&((a15==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&(a20==1))&&(a6==1))))&&!(a4==1)))))&&!(a0==1))&&!(a5==1))){ + a18 = 1; + a22 = 0; + a4 = 1; + a5 = 1; + a3 = 4; + a12 = 8; + a0 = 1; + a27 = 1; + return 24; + } else if((((a12==10)&&(!(a4==1)&&((a20==1)&&(!(a27==1)&&((!(a15==1)&&((a5==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a0==1))))&&(a3==6))))))&&!(a6==1))){ + a15 = 1; + a12 = 12; + a22 = 0; + a18 = 1; + a6 = 1; + return 21; + } else if(((((a20==1)&&((((((((a12==8)&&((input==5)&&((a18==1)||!(a18==1))))&&(a15==1))&&(a5==1))&&(a4==1))&&!(a27==1))&&(a0==1))&&!(a22==1)))&&!(a6==1))&&(a3==8))){ + a6 = 1; + a27 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((!(a0==1)&&((((a4==1)&&(((a3==8)&&((a12==8)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==4))&&!(a27==1))&&!(a6==1))))&&!(a5==1)))&&(a20==1))&&(a15==1)))){ + a22 = 0; + a6 = 1; + a18 = 1; + a5 = 1; + a27 = 1; + a0 = 1; + return -1; + } else if(((!(a18==1)&&(((((a3==4)&&(((!(a4==1)&&(((input==2)&&!(a15==1))&&!(a0==1)))&&(a22==1))&&(a20==1)))&&(a5==1))&&(a12==11))&&(a27==1)))&&(a6==1))){ + a3 = 5; + a12 = 10; + a22 = 0; + a0 = 1; + return 26; + } else if((!(a22==1)&&(!(a18==1)&&(!(a15==1)&&((((a12==12)&&(((a5==1)&&((((a20==1)&&(input==3))&&(a0==1))&&!(a4==1)))&&(a3==5)))&&(a27==1))&&!(a6==1)))))){ + if((a27==1)){ + a15 = 1; + a3 = 6; + a12 = 10; + a0 = 0; + a6 = 1; + a4 = 1; + a18 = 1; + }else{ + a6 = 1; + a12 = 10; + a5 = 0; + a15 = 1; + a22 = 1; + a18 = 1; + } + return -1; + } else if((!(a5==1)&&((a20==1)&&((a4==1)&&((a0==1)&&(!(a22==1)&&((((a3==8)&&((!(a27==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a6==1)))&&(a15==1))&&(a12==8)))))))){ + a18 = 1; + a3 = 4; + a22 = 1; + a27 = 1; + a5 = 1; + return -1; + } else if((((((((((((a12==12)&&((input==4)&&((a18==1)||!(a18==1))))&&!(a0==1))&&(a3==5))&&(a6==1))&&(a20==1))&&(a5==1))&&(a22==1))&&(a27==1))&&(a15==1))&&(a4==1))){ + a12 = 10; + a3 = 4; + a18 = 1; + a22 = 0; + a0 = 1; + return -1; + } else if((((((a6==1)&&((a3==4)&&(!(a22==1)&&((((a0==1)&&(!(a18==1)&&((a27==1)&&(input==5))))&&(a4==1))&&(a12==11)))))&&(a15==1))&&(a5==1))&&(a20==1))){ + if((a12==8)){ + a5 = 0; + a0 = 0; + a22 = 1; + a3 = 7; + a18 = 1; + a12 = 8; + }else{ + a5 = 0; + a22 = 1; + a12 = 10; + a18 = 1; + a4 = 0; + } + return -1; + } else if((!(a15==1)&&((a4==1)&&((((a5==1)&&((a3==7)&&((a27==1)&&(((a12==9)&&((input==6)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))&&(a20==1)))))&&(a6==1))&&!(a0==1))))){ + a3 = 4; + a22 = 1; + a15 = 1; + a18 = 1; + a12 = 8; + a0 = 1; + return -1; + } else if((((a20==1)&&((a4==1)&&(!(a15==1)&&((((a5==1)&&(((a27==1)&&((input==2)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))))&&(a12==10)))&&!(a0==1))&&(a3==7)))))&&(a6==1))){ + a3 = 6; + a18 = 0; + a0 = 1; + a22 = 1; + return -1; + } else if(((!(a15==1)&&((((a27==1)&&((a5==1)&&(!(a0==1)&&(((input==2)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6))))&&(a20==1)))))&&!(a6==1))&&(a12==8)))&&(a4==1))){ + a18 = 0; + a22 = 1; + a15 = 1; + a0 = 1; + a4 = 0; + a12 = 9; + a3 = 5; + return 21; + } return calculate_output67(input); + } + + int calculate_output67(int input) { + if(((a22==1)&&((a20==1)&&(!(a6==1)&&((a0==1)&&((a4==1)&&((a27==1)&&((((a3==7)&&(((input==3)&&(a18==1))&&(a15==1)))&&(a12==9))&&!(a5==1))))))))){ + a12 = 8; + a18 = 0; + a3 = 5; + a27 = 0; + a4 = 0; + a15 = 0; + a5 = 1; + return 26; + } else if((((a12==9)&&((!(a5==1)&&(!(a4==1)&&((a3==8)&&(((a20==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==5))&&!(a15==1)))&&(a0==1)))))&&!(a6==1)))&&!(a27==1))){ + a22 = 1; + a12 = 8; + a18 = 1; + a4 = 1; + a15 = 1; + a5 = 1; + a27 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if(((!(a4==1)&&((a5==1)&&((a0==1)&&((a3==5)&&(((a20==1)&&(!(a27==1)&&(((a6==1)&&((input==5)&&!(a22==1)))&&!(a18==1))))&&(a12==12))))))&&(a15==1))){ + a27 = 1; + a15 = 0; + a12 = 11; + a6 = 0; + return -1; + } else if((((((((a12==11)&&((((input==6)&&(((!(a18==1)&&(a22==1))&&(a3==7))||(((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))))&&!(a15==1))&&(a0==1)))&&(a27==1))&&(a4==1))&&(a20==1))&&(a5==1))&&!(a6==1))){ + a3 = 4; + a22 = 1; + a18 = 0; + a12 = 10; + a15 = 1; + a4 = 0; + return -1; + } else if((((!(a5==1)&&(!(a4==1)&&((a20==1)&&((((a15==1)&&(((input==4)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a12==12)))&&!(a27==1))&&(a3==8)))))&&(a0==1))&&!(a6==1))){ + a4 = 1; + a22 = 1; + a27 = 1; + a18 = 1; + a5 = 1; + a6 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((((((a0==1)&&((!(a4==1)&&((((a27==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6)))&&(a5==1))&&!(a6==1)))&&(a3==8)))&&(a20==1))&&(a12==12))&&!(a15==1))){ + a22 = 1; + a3 = 5; + a18 = 0; + a27 = 0; + return 21; + } else if(((a3==4)&&(((a15==1)&&((((((a12==12)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a4==1)))&&(a20==1))&&(a27==1))&&!(a0==1))&&(a5==1)))&&!(a6==1)))){ + a15 = 0; + a4 = 0; + a18 = 1; + a3 = 6; + a22 = 1; + a0 = 1; + return 26; + } else if((!(a5==1)&&((a15==1)&&((a27==1)&&((a4==1)&&((((a12==8)&&(((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==5))&&(a3==4))&&!(a6==1)))&&(a20==1))&&(a0==1))))))){ + a6 = 1; + a18 = 1; + a5 = 1; + a22 = 1; + return -1; + } else if(((a20==1)&&((a27==1)&&((a12==10)&&((((((((input==3)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a4==1))&&(a3==6))&&(a15==1))&&!(a5==1))&&(a6==1))&&(a0==1)))))){ + a5 = 1; + a22 = 1; + a6 = 0; + a15 = 0; + a3 = 7; + a18 = 0; + return -1; + } else if((((a5==1)&&(((a20==1)&&(!(a18==1)&&((a6==1)&&(((a27==1)&&((a15==1)&&(((input==1)&&(a4==1))&&(a22==1))))&&(a12==9)))))&&(a0==1)))&&(a3==4))){ + a12 = 8; + a18 = 1; + return -1; + } else if(((!(a27==1)&&((a3==5)&&((!(a6==1)&&(!(a22==1)&&(((a20==1)&&((a12==8)&&((a0==1)&&((input==1)&&((a18==1)||!(a18==1))))))&&(a4==1))))&&!(a15==1))))&&(a5==1))){ + a27 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + a6 = 1; + a15 = 1; + return -1; + } else if(((!(a27==1)&&(((a12==9)&&((a15==1)&&((((!(a22==1)&&((a3==6)&&((input==5)&&(a6==1))))&&!(a4==1))&&(a0==1))&&(a20==1))))&&(a5==1)))&&(a18==1))){ + if((a0==1)){ + a12 = 8; + a5 = 0; + a4 = 1; + a3 = 8; + a15 = 0; + a27 = 1; + a22 = 1; + a0 = 0; + }else{ + a0 = 0; + a6 = 0; + a18 = 0; + a3 = 8; + a27 = 1; + } + return 26; + } else if(((a20==1)&&(((((((((!(a15==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&!(a5==1))&&(a0==1))&&!(a4==1))&&!(a27==1))&&(a12==11))&&!(a22==1))&&(a6==1))&&(a3==6)))){ + a22 = 1; + a15 = 1; + a12 = 9; + a3 = 8; + a18 = 1; + a5 = 1; + return -1; + } else if(((((a12==9)&&((!(a15==1)&&(!(a0==1)&&((((a20==1)&&((a27==1)&&((input==6)&&(a6==1))))&&!(a4==1))&&(a3==5))))&&!(a22==1)))&&!(a18==1))&&(a5==1))){ + a4 = 1; + a27 = 0; + a12 = 11; + a22 = 1; + a0 = 1; + a3 = 7; + return -1; + } else if(((a4==1)&&((((a12==8)&&(!(a27==1)&&(((((input==1)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))||(((a22==1)&&!(a18==1))&&(a3==8))))&&(a20==1))&&(a5==1))&&(a0==1))))&&(a15==1))&&!(a6==1)))){ + if((a27==1)){ + a22 = 1; + a3 = 5; + a18 = 1; + a0 = 0; + a15 = 0; + a27 = 1; + }else{ + a4 = 0; + a27 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + a15 = 0; + a0 = 0; + a5 = 0; + } + return 26; + } else if(((a4==1)&&((((!(a6==1)&&((a12==9)&&((a27==1)&&(!(a0==1)&&((a20==1)&&((input==5)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))))))&&(a3==8))&&!(a5==1))&&(a15==1)))){ + a22 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + a5 = 1; + a0 = 1; + a6 = 1; + return -1; + } else if(((((a20==1)&&((a5==1)&&((((!(a15==1)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==5)))&&(a12==8))&&(a4==1))&&!(a27==1))))&&(a0==1))&&(a6==1))){ + a18 = 1; + a27 = 1; + a3 = 4; + a15 = 1; + a22 = 1; + return -1; + } else if(((a12==8)&&(!(a22==1)&&((a6==1)&&((!(a4==1)&&(((a3==7)&&(!(a5==1)&&((!(a0==1)&&((input==4)&&((a18==1)||!(a18==1))))&&(a27==1))))&&(a20==1)))&&(a15==1)))))){ + a0 = 1; + a18 = 1; + a5 = 1; + a22 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((((a4==1)&&(((a27==1)&&(((((a20==1)&&(((input==6)&&!(a5==1))&&(a0==1)))&&(a3==4))&&(a22==1))&&(a12==9)))&&(a6==1)))&&!(a15==1))&&(a18==1))){ + a12 = 8; + a18 = 0; + a0 = 0; + a22 = 0; + a3 = 5; + a6 = 0; + return 21; + } else if((((a15==1)&&((a3==6)&&((!(a0==1)&&(!(a4==1)&&(((a27==1)&&((a6==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4))))&&(a12==8))))&&(a20==1))))&&!(a5==1))){ + a15 = 0; + a22 = 0; + a27 = 0; + a0 = 1; + a4 = 1; + a12 = 10; + a5 = 1; + a18 = 1; + a3 = 4; + return 21; + } else if(((a12==11)&&(!(a4==1)&&((a3==7)&&((a0==1)&&((a15==1)&&((a5==1)&&(((a22==1)&&(((((a18==1)||!(a18==1))&&(input==1))&&(a27==1))&&(a20==1)))&&(a6==1))))))))){ + a12 = 8; + a18 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((a27==1)&&((a20==1)&&((a12==11)&&((a3==4)&&((((a15==1)&&((a5==1)&&((a0==1)&&((input==3)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))))&&!(a6==1))&&(a4==1))))))){ + a22 = 1; + a5 = 0; + a12 = 8; + a15 = 0; + a18 = 1; + a3 = 5; + return -1; + } else if(((a15==1)&&((a20==1)&&(!(a4==1)&&((a0==1)&&((a3==4)&&((((a27==1)&&((a12==10)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==5))))&&!(a5==1))&&(a6==1)))))))){ + a18 = 0; + a22 = 1; + a5 = 1; + a6 = 0; + a15 = 0; + a3 = 8; + return 21; + } else if(((a6==1)&&(((a12==11)&&((a27==1)&&((!(a5==1)&&((((a3==8)&&((a4==1)&&(((a18==1)||!(a18==1))&&(input==1))))&&!(a15==1))&&(a22==1)))&&!(a0==1))))&&(a20==1)))){ + a3 = 5; + a18 = 0; + a12 = 8; + a22 = 0; + a6 = 0; + a5 = 1; + a0 = 1; + return 26; + } else if(((a0==1)&&(!(a27==1)&&(((((a18==1)&&(((a15==1)&&((a20==1)&&(((input==5)&&!(a4==1))&&(a22==1))))&&!(a5==1)))&&(a3==5))&&(a12==11))&&(a6==1))))){ + a18 = 0; + a27 = 1; + a5 = 1; + a3 = 6; + a6 = 0; + a12 = 8; + return 26; + } else if((((a27==1)&&((a12==9)&&(((!(a4==1)&&(((((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1))))||((a3==8)&&(!(a18==1)&&(a22==1))))&&(input==5))&&(a20==1))&&(a15==1)))&&(a5==1))&&(a6==1))))&&!(a0==1))){ + a18 = 0; + a22 = 1; + a6 = 0; + a4 = 1; + a3 = 6; + a12 = 11; + a5 = 0; + a0 = 1; + return 21; + } else if((((a15==1)&&(((!(a5==1)&&((a12==12)&&((a27==1)&&(!(a0==1)&&((a3==6)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==4)))))))&&!(a6==1))&&(a20==1)))&&!(a4==1))){ + a4 = 1; + a18 = 0; + a12 = 8; + a3 = 7; + a15 = 0; + a5 = 1; + a0 = 1; + a22 = 0; + return 26; + } else if((!(a4==1)&&((((a20==1)&&(((((!(a15==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==6)))&&(a12==10))&&(a5==1))&&!(a27==1))&&(a3==6)))&&(a6==1))&&!(a0==1)))){ + if((a4==1)){ + a4 = 1; + a0 = 1; + a22 = 0; + a18 = 1; + a15 = 1; + a27 = 1; + a6 = 0; + a12 = 8; + a3 = 4; + }else{ + a5 = 0; + a18 = 0; + a22 = 1; + a15 = 1; + a4 = 1; + } + return 26; + } else if(((!(a4==1)&&(((a3==8)&&(!(a18==1)&&((a6==1)&&(!(a27==1)&&(((a20==1)&&(!(a15==1)&&((input==2)&&(a12==8))))&&(a0==1))))))&&!(a5==1)))&&!(a22==1))){ + a12 = 10; + a4 = 1; + a5 = 1; + a6 = 0; + a15 = 1; + a3 = 6; + a27 = 1; + return -1; + } else if(((a6==1)&&(!(a27==1)&&((a20==1)&&(((a12==10)&&(((((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==5))&&(a3==7))&&!(a15==1))&&(a4==1))&&(a5==1)))&&(a0==1)))))){ + a12 = 11; + a4 = 0; + a27 = 1; + a3 = 8; + a18 = 1; + a5 = 0; + a22 = 1; + a6 = 0; + return 21; + } else if(((((a5==1)&&(((a27==1)&&((input==2)&&((((a3==4)&&((a4==1)&&(((a18==1)&&(a22==1))&&!(a15==1))))&&(a6==1))||((((((a15==1)&&((a18==1)&&!(a22==1)))&&!(a4==1))&&(a3==8))&&!(a6==1))||(((a3==8)&&(!(a4==1)&&((a15==1)&&(!(a22==1)&&!(a18==1)))))&&!(a6==1))))))&&(a12==11)))&&(a20==1))&&!(a0==1))){ + a18 = 0; + a12 = 10; + a22 = 1; + a0 = 1; + a6 = 1; + a3 = 6; + a15 = 1; + a4 = 1; + a5 = 0; + return -1; + } else if(((a6==1)&&(((a0==1)&&((((a12==9)&&((a4==1)&&(!(a15==1)&&((((!(a18==1)&&(a22==1))&&(a3==5))||(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5))))&&(input==2)))))&&(a20==1))&&!(a27==1)))&&!(a5==1)))){ + a12 = 12; + a6 = 0; + a22 = 0; + a3 = 7; + a15 = 1; + a27 = 1; + a18 = 0; + return 26; + } else if(((!(a22==1)&&(((a18==1)&&(!(a4==1)&&((!(a5==1)&&(((((input==6)&&!(a0==1))&&(a15==1))&&(a12==8))&&!(a27==1)))&&(a20==1))))&&(a3==7)))&&!(a6==1))){ + a0 = 1; + a3 = 6; + a6 = 1; + a27 = 1; + a5 = 1; + return 21; + } else if(((a0==1)&&(((a22==1)&&((a12==12)&&(((((!(a27==1)&&(((input==3)&&(a4==1))&&(a20==1)))&&(a6==1))&&(a5==1))&&(a3==7))&&(a18==1))))&&!(a15==1)))){ + a3 = 4; + a27 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if((((!(a6==1)&&(((((((input==1)&&(((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==5))))&&(a15==1))&&!(a4==1))&&!(a0==1))&&(a20==1))&&(a5==1)))&&(a12==12))&&(a27==1))){ + a27 = 0; + a3 = 8; + a12 = 9; + a4 = 1; + a22 = 1; + a5 = 0; + a18 = 0; + a0 = 1; + a6 = 1; + return -1; + } else if(((!(a4==1)&&((((a5==1)&&(((a20==1)&&((((((a18==1)&&(a22==1))&&(a3==5))||((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1)))))&&(input==6))&&(a27==1)))&&(a15==1)))&&!(a0==1))&&(a12==12)))&&(a6==1))){ + a6 = 0; + a4 = 1; + a0 = 1; + a18 = 1; + a12 = 11; + a22 = 0; + a3 = 8; + return 26; + } else if(((a20==1)&&((a12==8)&&((a15==1)&&(!(a0==1)&&((a27==1)&&((((a6==1)&&((input==2)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5)))))&&!(a4==1))&&!(a5==1)))))))){ + a3 = 8; + a15 = 0; + a22 = 1; + a18 = 1; + a12 = 10; + return -1; + } else if(((a6==1)&&(((a27==1)&&((((((a12==11)&&((a20==1)&&((!(a5==1)&&(input==4))&&!(a22==1))))&&!(a0==1))&&(a3==5))&&(a4==1))&&(a18==1)))&&(a15==1)))){ + a6 = 0; + a22 = 1; + a15 = 0; + a18 = 0; + return 24; + } else if((((a12==11)&&(!(a0==1)&&(((a5==1)&&(((a15==1)&&(((((!(a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))||(((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))||(!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1))))))&&(input==1)))&&(a4==1)))&&(a27==1))))&&(a20==1))){ + a0 = 1; + a22 = 0; + a3 = 7; + a18 = 0; + a6 = 1; + return 21; + } else if(((((a5==1)&&(!(a15==1)&&(((a6==1)&&(((!(a27==1)&&((input==4)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&(a3==7))&&(a20==1)))&&(a12==8))))&&(a0==1))&&!(a4==1))){ + a18 = 1; + a12 = 10; + a6 = 0; + a3 = 5; + a22 = 1; + return 26; + } else if((!(a0==1)&&((a12==9)&&(((a20==1)&&((((a3==8)&&((((input==6)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a4==1))&&!(a6==1)))&&!(a15==1))&&!(a27==1)))&&(a5==1))))){ + if((a22==1)){ + a6 = 1; + a3 = 6; + a12 = 8; + a22 = 0; + a18 = 0; + a15 = 1; + a27 = 1; + a0 = 1; + }else{ + a0 = 1; + a3 = 7; + a22 = 0; + a12 = 8; + a6 = 1; + a15 = 1; + a18 = 0; + a4 = 1; + } + return -1; + } else if((((a12==12)&&(!(a6==1)&&((!(a27==1)&&(((a22==1)&&((a3==4)&&((a0==1)&&((a20==1)&&(((a18==1)||!(a18==1))&&(input==4))))))&&!(a4==1)))&&(a15==1))))&&!(a5==1))){ + a3 = 5; + a15 = 0; + a12 = 9; + a18 = 1; + a27 = 1; + return 26; + } else if((((a12==9)&&((a0==1)&&(((a6==1)&&(!(a22==1)&&(((a4==1)&&((a15==1)&&((a5==1)&&(((a18==1)||!(a18==1))&&(input==4)))))&&!(a27==1))))&&(a20==1))))&&(a3==6))){ + a12 = 11; + a5 = 0; + a15 = 0; + a4 = 0; + a27 = 1; + a22 = 1; + a6 = 0; + a18 = 0; + a3 = 5; + return 21; + } else if((((a27==1)&&((a3==4)&&(((((((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==3))&&(a20==1))&&!(a0==1))&&(a4==1))&&!(a5==1))&&(a12==10))&&(a6==1))))&&(a15==1))){ + a22 = 0; + a0 = 1; + a18 = 0; + a12 = 11; + a3 = 8; + return 26; + } else if(((((!(a15==1)&&((a4==1)&&((a12==12)&&((a20==1)&&((a3==7)&&(((((a18==1)||!(a18==1))&&(input==5))&&(a0==1))&&(a5==1)))))))&&(a27==1))&&!(a6==1))&&(a22==1))){ + a18 = 1; + a15 = 1; + a12 = 8; + a6 = 1; + a3 = 4; + return -1; + } else if(((a12==11)&&((!(a0==1)&&((a5==1)&&((a15==1)&&(((a4==1)&&(((input==3)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6))))&&(a20==1)))&&(a6==1)))))&&!(a27==1)))){ + a0 = 1; + a4 = 0; + a12 = 8; + a27 = 1; + a22 = 0; + a18 = 0; + a3 = 4; + return 26; + } else if((((!(a6==1)&&((a18==1)&&((((!(a0==1)&&(((a3==5)&&((a15==1)&&(input==6)))&&(a22==1)))&&(a4==1))&&!(a5==1))&&(a12==8))))&&(a20==1))&&!(a27==1))){ + if((a3==8)){ + a3 = 4; + a27 = 1; + a6 = 1; + a12 = 11; + a4 = 0; + a18 = 0; + a0 = 1; + }else{ + a3 = 4; + a4 = 0; + a12 = 9; + a6 = 1; + a27 = 1; + a15 = 0; + } + return -1; + } else if(((((a22==1)&&(!(a27==1)&&((a5==1)&&((a15==1)&&((a12==10)&&((a4==1)&&(!(a18==1)&&((!(a0==1)&&(input==2))&&(a20==1)))))))))&&(a3==4))&&(a6==1))){ + a22 = 0; + a27 = 1; + a12 = 8; + a18 = 1; + a0 = 1; + return -1; + } else if((((a12==10)&&((!(a4==1)&&((a27==1)&&(((a20==1)&&((a6==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))||((a3==7)&&(!(a18==1)&&(a22==1))))&&(input==2))))&&(a0==1))))&&(a5==1)))&&(a15==1))){ + a22 = 1; + a18 = 0; + a4 = 1; + a3 = 6; + return -1; + } else if((((!(a15==1)&&((a12==12)&&((!(a4==1)&&(!(a6==1)&&(((a3==7)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==1)))&&(a27==1))))&&(a20==1))))&&(a0==1))&&!(a5==1))){ + a12 = 8; + a18 = 1; + a3 = 4; + a15 = 1; + a4 = 1; + a22 = 1; + a6 = 1; + a5 = 1; + return -1; + } else if((((a5==1)&&(((a27==1)&&(((a15==1)&&(!(a0==1)&&(((a3==7)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==1)))&&(a20==1))))&&(a6==1)))&&(a4==1)))&&(a12==12))){ + a5 = 0; + a12 = 11; + a22 = 1; + a0 = 1; + a18 = 1; + return 26; + } else if(((a12==10)&&(!(a27==1)&&((a5==1)&&(((a3==7)&&((a20==1)&&(!(a6==1)&&((a4==1)&&(!(a15==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a0==1)))))))&&!(a22==1)))))){ + a6 = 1; + a22 = 1; + a12 = 11; + a27 = 1; + a18 = 1; + a4 = 0; + a15 = 1; + a3 = 5; + return 26; + } else if(((a15==1)&&(((!(a4==1)&&((((a12==8)&&((a20==1)&&((input==2)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5))))))&&!(a0==1))&&(a27==1)))&&(a5==1))&&!(a6==1)))){ + a3 = 5; + a0 = 1; + a22 = 1; + a12 = 10; + a6 = 1; + a15 = 0; + a18 = 0; + return 26; + } else if((!(a15==1)&&(((a20==1)&&((!(a27==1)&&((a12==11)&&(!(a22==1)&&(((a4==1)&&((!(a0==1)&&(input==4))&&(a6==1)))&&!(a5==1)))))&&(a3==6)))&&(a18==1)))){ + a27 = 1; + a6 = 0; + a0 = 1; + a3 = 7; + a22 = 1; + a12 = 8; + a5 = 1; + a15 = 1; + return -1; + } else if((!(a18==1)&&(!(a27==1)&&(!(a5==1)&&(!(a0==1)&&((a15==1)&&((((a22==1)&&((a20==1)&&((a3==7)&&((input==4)&&(a4==1)))))&&!(a6==1))&&(a12==9)))))))){ + if((a4==1)){ + a0 = 1; + a5 = 1; + a27 = 1; + a12 = 8; + a18 = 1; + a3 = 5; + }else{ + a12 = 8; + a22 = 0; + a3 = 5; + a5 = 1; + a0 = 1; + a27 = 1; + } + return 21; + } else if((((!(a0==1)&&((a12==10)&&(((a5==1)&&(!(a18==1)&&(((!(a22==1)&&((input==6)&&!(a4==1)))&&(a15==1))&&(a27==1))))&&!(a6==1))))&&(a20==1))&&(a3==8))){ + a0 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + a4 = 1; + a6 = 1; + return -1; + } else if((((a6==1)&&((a4==1)&&((a20==1)&&((((a0==1)&&((((a27==1)&&((input==2)&&((a18==1)||!(a18==1))))&&(a22==1))&&(a12==9)))&&(a3==6))&&(a5==1)))))&&!(a15==1))){ + a6 = 0; + a5 = 0; + a22 = 0; + a3 = 5; + a18 = 0; + a12 = 10; + a4 = 0; + return 26; + } else if(((a4==1)&&((((a12==9)&&(((a15==1)&&(!(a5==1)&&((a3==6)&&((a20==1)&&(!(a0==1)&&((input==1)&&(a6==1)))))))&&(a22==1)))&&(a18==1))&&(a27==1)))){ + a22 = 0; + a27 = 0; + a18 = 0; + a0 = 1; + return -1; + } else if((!(a27==1)&&((a0==1)&&((!(a15==1)&&((((!(a22==1)&&(((a20==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&!(a4==1)))&&(a6==1))&&(a5==1))&&(a3==5)))&&(a12==12))))){ + a6 = 0; + a3 = 8; + a22 = 1; + a5 = 0; + a18 = 0; + a12 = 8; + return -1; + } else if((((a27==1)&&(((a12==11)&&((a20==1)&&(!(a5==1)&&((((input==1)&&(((a3==6)&&(!(a18==1)&&(a22==1)))||(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))))&&!(a6==1))&&!(a4==1)))))&&!(a15==1)))&&(a0==1))){ + a4 = 1; + a3 = 4; + a22 = 0; + a18 = 1; + return -1; + } else if(((!(a22==1)&&((a20==1)&&(((a3==4)&&((a12==10)&&((((((a0==1)&&(input==4))&&!(a27==1))&&(a4==1))&&(a18==1))&&(a15==1))))&&(a5==1))))&&!(a6==1))){ + a6 = 1; + a15 = 0; + a18 = 0; + a3 = 6; + return 21; + } else if((((a6==1)&&(!(a22==1)&&(!(a18==1)&&((a15==1)&&((((a3==8)&&((((a12==11)&&(input==4))&&!(a5==1))&&(a0==1)))&&(a20==1))&&(a27==1))))))&&(a4==1))){ + a12 = 8; + a18 = 1; + a22 = 1; + a5 = 1; + a3 = 4; + return -1; + } else if((!(a15==1)&&(((a20==1)&&(((a12==10)&&(!(a6==1)&&((a4==1)&&((a3==8)&&(!(a18==1)&&((a27==1)&&(!(a5==1)&&(input==5))))))))&&!(a0==1)))&&!(a22==1)))){ + a18 = 1; + a22 = 1; + a0 = 1; + a12 = 11; + a4 = 0; + a5 = 1; + a15 = 1; + a3 = 4; + return 21; + } else if((!(a27==1)&&((((!(a5==1)&&((a12==11)&&((a15==1)&&(((a20==1)&&(((a3==7)&&(input==2))&&!(a4==1)))&&!(a22==1)))))&&!(a0==1))&&!(a18==1))&&(a6==1)))){ + a18 = 1; + a0 = 1; + a22 = 1; + a15 = 0; + a3 = 5; + a12 = 10; + return 21; + } else if((((a5==1)&&((a15==1)&&(!(a27==1)&&((a12==9)&&(!(a6==1)&&((!(a4==1)&&((((a3==5)&&(!(a18==1)&&(a22==1)))||(((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1)))))&&(input==5)))&&(a20==1)))))))&&(a0==1))){ + if((a27==1)){ + a18 = 1; + a3 = 8; + a27 = 1; + a6 = 1; + a15 = 0; + a22 = 0; + a0 = 0; + }else{ + a5 = 0; + a22 = 1; + a27 = 1; + a18 = 1; + a6 = 1; + a12 = 12; + a3 = 4; + a15 = 0; + } + return -1; + } else if((!(a4==1)&&(((a3==8)&&(((!(a15==1)&&((a22==1)&&(((a20==1)&&(((input==3)&&!(a0==1))&&!(a5==1)))&&!(a18==1))))&&(a6==1))&&(a12==8)))&&(a27==1)))){ + a12 = 11; + a22 = 0; + a0 = 1; + a4 = 1; + a3 = 6; + a15 = 1; + return 21; + } else if(((a6==1)&&(!(a4==1)&&(!(a5==1)&&((((((((a27==1)&&(!(a15==1)&&(input==4)))&&(a22==1))&&!(a18==1))&&(a20==1))&&!(a0==1))&&(a12==8))&&(a3==8)))))){ + a3 = 6; + a18 = 1; + a15 = 1; + a27 = 0; + a0 = 1; + return -1; + } else if((!(a18==1)&&((a12==11)&&(!(a15==1)&&((a0==1)&&((((!(a6==1)&&((a20==1)&&(!(a5==1)&&((a22==1)&&(input==2)))))&&(a3==6))&&!(a4==1))&&!(a27==1))))))){ + a5 = 1; + a27 = 1; + a15 = 1; + a3 = 8; + a6 = 1; + a22 = 0; + return -1; + } else if((!(a4==1)&&((a3==5)&&(((a12==10)&&((a0==1)&&(!(a5==1)&&((((a15==1)&&((input==3)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a20==1))&&!(a6==1)))))&&!(a27==1))))){ + a27 = 1; + a3 = 7; + a15 = 0; + a18 = 0; + a4 = 1; + a5 = 1; + a22 = 1; + return 21; + } else if((((a20==1)&&((a3==4)&&(((a0==1)&&(!(a18==1)&&((((((input==1)&&!(a4==1))&&(a27==1))&&!(a5==1))&&!(a6==1))&&!(a15==1))))&&(a12==10))))&&!(a22==1))){ + a22 = 1; + a18 = 1; + a15 = 1; + a3 = 5; + return -1; + } else if((((a6==1)&&((!(a4==1)&&((((((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==3))&&(a5==1))&&(a15==1))&&(a20==1))&&!(a27==1))&&(a3==4)))&&!(a0==1)))&&(a12==10))){ + a18 = 0; + a0 = 1; + a12 = 8; + a3 = 8; + a27 = 1; + a22 = 0; + return -1; + } else if(((a12==8)&&((a20==1)&&((a6==1)&&(!(a27==1)&&(((a0==1)&&((!(a15==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))||((a3==5)&&(!(a18==1)&&(a22==1))))&&(input==1)))&&!(a5==1)))&&(a4==1))))))){ + a3 = 5; + a18 = 1; + a27 = 1; + a15 = 1; + a22 = 1; + a4 = 0; + a12 = 11; + a5 = 1; + return 21; + } else if(((a6==1)&&(((!(a15==1)&&((a12==12)&&((a27==1)&&((!(a5==1)&&(((input==3)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&!(a4==1)))&&(a20==1)))))&&(a3==8))&&!(a0==1)))){ + if((a4==1)){ + a15 = 1; + a3 = 6; + a0 = 1; + a22 = 0; + a5 = 1; + a18 = 0; + a12 = 8; + }else{ + a15 = 1; + a4 = 1; + a22 = 1; + a3 = 6; + a18 = 0; + a12 = 8; + a5 = 1; + } + return -1; + } else if((((a15==1)&&((a5==1)&&((!(a27==1)&&((a6==1)&&((((a20==1)&&((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a0==1))&&!(a4==1))))&&(a3==7))))&&(a12==9))){ + a15 = 0; + a18 = 0; + a5 = 0; + a3 = 8; + a22 = 1; + a4 = 1; + a6 = 0; + return 24; + } else if(((!(a22==1)&&(((a15==1)&&(((a12==10)&&((!(a0==1)&&((a20==1)&&(!(a6==1)&&((input==6)&&!(a27==1)))))&&!(a18==1)))&&!(a5==1)))&&(a3==8)))&&!(a4==1))){ + a12 = 9; + a27 = 1; + a3 = 7; + a0 = 1; + a4 = 1; + a5 = 1; + a15 = 0; + return 21; + } else if((!(a27==1)&&(!(a18==1)&&((((!(a5==1)&&((((!(a15==1)&&((input==5)&&(a3==6)))&&(a20==1))&&(a0==1))&&!(a6==1)))&&(a22==1))&&!(a4==1))&&(a12==11))))){ + a3 = 4; + a15 = 1; + a5 = 1; + a18 = 1; + a6 = 1; + a4 = 1; + a12 = 8; + a27 = 1; + return -1; + } else if(((!(a5==1)&&((((a3==6)&&((!(a4==1)&&(((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==6))&&(a20==1))&&(a12==10)))&&(a27==1)))&&(a6==1))&&!(a0==1)))&&(a15==1))){ + a5 = 1; + a0 = 1; + a18 = 1; + a3 = 7; + a22 = 0; + return -1; + } else if((((a15==1)&&((((((a0==1)&&((a5==1)&&(((input==1)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a4==1))))&&!(a6==1))&&(a3==8))&&(a12==10))&&(a20==1)))&&!(a27==1))){ + a6 = 1; + a5 = 0; + a12 = 11; + a15 = 0; + a18 = 0; + a3 = 5; + a22 = 1; + return 21; + } else if(((((!(a6==1)&&((a20==1)&&(((a27==1)&&(((a5==1)&&((input==3)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a12==9)))&&(a3==8))))&&(a4==1))&&!(a0==1))&&!(a15==1))){ + a22 = 0; + a18 = 0; + a12 = 11; + a5 = 0; + return -1; + } else if(((a20==1)&&(((a5==1)&&((((a0==1)&&(!(a15==1)&&(((((((a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1)))||(!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1)))))&&(input==2))))&&!(a4==1))&&!(a27==1)))&&(a12==8)))){ + if((a0==1)){ + a3 = 4; + a18 = 1; + a12 = 10; + a4 = 1; + a0 = 0; + a5 = 0; + a27 = 1; + a22 = 1; + a6 = 0; + }else{ + a3 = 6; + a27 = 1; + a18 = 1; + a22 = 1; + a15 = 1; + a4 = 1; + a0 = 0; + a12 = 10; + a6 = 1; + } + return 26; + } else if(((a12==11)&&((((!(a4==1)&&((!(a6==1)&&((a20==1)&&((input==1)&&((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))||((a3==7)&&((a22==1)&&!(a18==1)))))))&&!(a0==1)))&&!(a15==1))&&!(a27==1))&&!(a5==1)))){ + a4 = 1; + a12 = 9; + a18 = 0; + a3 = 5; + a22 = 1; + return 26; + } else if((((a27==1)&&((a12==11)&&((!(a5==1)&&(((!(a15==1)&&(((((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1))))||(((a22==1)&&!(a18==1))&&(a3==6)))&&(input==4)))&&!(a6==1))&&!(a0==1)))&&!(a4==1))))&&(a20==1))){ + a12 = 10; + a27 = 0; + a18 = 1; + a5 = 1; + a0 = 1; + a3 = 5; + a22 = 1; + return 26; + } else if(((a20==1)&&((a5==1)&&(((a12==10)&&(((!(a15==1)&&((a0==1)&&((input==3)&&(((a3==6)&&(!(a18==1)&&(a22==1)))||(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))))))&&!(a27==1))&&!(a6==1)))&&(a4==1))))){ + a18 = 0; + a22 = 1; + a3 = 7; + a4 = 0; + a5 = 0; + a12 = 12; + return 26; + } else if(((((a20==1)&&((a12==9)&&(!(a6==1)&&((!(a4==1)&&(((((a3==8)&&(!(a18==1)&&(a22==1)))||(((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1)))))&&(input==1))&&(a27==1)))&&(a0==1)))))&&!(a5==1))&&!(a15==1))){ + a12 = 8; + a18 = 1; + a22 = 0; + a3 = 5; + a15 = 1; + a4 = 1; + return 26; + } else if(((((a3==7)&&((a12==8)&&(((a27==1)&&((a6==1)&&(((a5==1)&&((input==1)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&(a0==1))))&&!(a15==1))))&&(a20==1))&&(a4==1))){ + a15 = 1; + a3 = 6; + a22 = 0; + a5 = 0; + a18 = 0; + a4 = 0; + return 26; + } else if(((a4==1)&&((a6==1)&&(((a5==1)&&(((a12==11)&&((((a3==4)&&((input==4)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a15==1))&&!(a0==1)))&&(a20==1)))&&!(a27==1))))){ + a18 = 1; + a3 = 5; + a6 = 0; + a22 = 1; + a12 = 8; + a0 = 1; + a27 = 1; + return -1; + } else if((((((!(a5==1)&&((a4==1)&&((a3==8)&&((a18==1)&&(!(a27==1)&&(!(a22==1)&&((input==6)&&(a20==1))))))))&&(a6==1))&&(a15==1))&&(a12==11))&&!(a0==1))){ + if((a15==1)){ + a12 = 8; + a18 = 0; + a5 = 1; + a27 = 1; + a3 = 5; + a0 = 1; + a6 = 0; + }else{ + a12 = 8; + a5 = 1; + a0 = 1; + a22 = 1; + a3 = 7; + a6 = 0; + a27 = 1; + } + return -1; + } else if((((a27==1)&&((((a20==1)&&(((!(a0==1)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==2)))&&(a4==1))&&(a5==1)))&&!(a15==1))&&(a6==1)))&&(a12==11))){ + a0 = 1; + a22 = 1; + a18 = 1; + a12 = 8; + a15 = 1; + a3 = 4; + return -1; + } else if((((!(a6==1)&&(((((!(a22==1)&&((((input==6)&&((a18==1)||!(a18==1)))&&!(a0==1))&&(a3==7)))&&(a15==1))&&(a5==1))&&(a12==9))&&!(a4==1)))&&(a27==1))&&(a20==1))){ + if((a22==1)){ + a12 = 11; + a3 = 8; + a15 = 0; + a6 = 1; + a18 = 0; + }else{ + a18 = 1; + a12 = 8; + a6 = 1; + a4 = 1; + a27 = 0; + a0 = 1; + a15 = 0; + a3 = 8; + a5 = 0; + } + return 26; + } else if(((!(a0==1)&&((!(a22==1)&&(((a3==5)&&((a4==1)&&((!(a5==1)&&((a12==11)&&(!(a18==1)&&(input==2))))&&(a20==1))))&&(a6==1)))&&!(a15==1)))&&!(a27==1))){ + a0 = 1; + a5 = 1; + a12 = 8; + a27 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if((((((a20==1)&&((((((!(a5==1)&&(!(a22==1)&&(input==1)))&&(a3==8))&&!(a6==1))&&!(a18==1))&&!(a15==1))&&(a4==1)))&&(a0==1))&&!(a27==1))&&(a12==12))){ + a4 = 0; + a22 = 1; + a6 = 1; + a18 = 1; + a15 = 1; + a5 = 1; + a12 = 11; + return -1; + } else if((((a4==1)&&(((a15==1)&&((!(a5==1)&&((a6==1)&&(!(a22==1)&&((((a0==1)&&(input==6))&&!(a18==1))&&(a12==11)))))&&(a27==1)))&&(a3==6)))&&(a20==1))){ + a18 = 1; + a3 = 4; + a22 = 1; + a5 = 1; + a12 = 8; + return -1; + } else if(((((((a3==8)&&(((a12==9)&&((!(a15==1)&&((((a18==1)||!(a18==1))&&(input==3))&&(a5==1)))&&(a27==1)))&&!(a4==1)))&&!(a6==1))&&!(a0==1))&&(a20==1))&&(a22==1))){ + a12 = 8; + a6 = 1; + a15 = 1; + a18 = 1; + a0 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((a27==1)&&((a20==1)&&((a5==1)&&((((((a3==8)&&((((a18==1)&&(input==1))&&!(a0==1))&&!(a22==1)))&&(a6==1))&&(a4==1))&&(a12==9))&&(a15==1)))))){ + a4 = 0; + a3 = 4; + a18 = 0; + a5 = 0; + a6 = 0; + a12 = 11; + return 21; + } else if((((a3==7)&&((a4==1)&&((((a0==1)&&((a6==1)&&((a20==1)&&((a12==8)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==4))))))&&(a27==1))&&!(a15==1))))&&(a5==1))){ + a18 = 1; + a3 = 4; + a22 = 1; + a15 = 1; + return -1; + } else if((!(a6==1)&&((a3==7)&&(!(a4==1)&&((a15==1)&&((((!(a0==1)&&(((input==5)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&(a27==1)))&&!(a5==1))&&(a12==12))&&(a20==1))))))){ + a12 = 8; + a6 = 1; + a18 = 1; + a5 = 1; + a0 = 1; + a3 = 6; + a22 = 0; + return 21; + } else if((!(a15==1)&&((!(a6==1)&&(((a20==1)&&((a4==1)&&((a5==1)&&((a3==7)&&((a12==8)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1)))))))&&(a27==1)))&&(a0==1)))){ + a22 = 0; + a18 = 1; + a4 = 0; + a5 = 0; + return 21; + } else if(((((a12==11)&&((a22==1)&&(((!(a15==1)&&((!(a18==1)&&(!(a0==1)&&((input==5)&&(a4==1))))&&(a20==1)))&&(a3==4))&&(a27==1))))&&(a6==1))&&(a5==1))){ + a3 = 8; + a12 = 12; + a0 = 1; + return 21; + } else if(((((((a0==1)&&((a4==1)&&(((a3==7)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==4))&&(a5==1)))&&!(a15==1))))&&(a20==1))&&(a12==12))&&(a6==1))&&(a27==1))){ + a15 = 1; + a22 = 1; + a18 = 0; + a3 = 5; + a6 = 0; + a27 = 0; + a4 = 0; + return 21; + } else if(((a27==1)&&((((((((((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))||((a3==6)&&((a22==1)&&!(a18==1))))&&(input==5))&&(a20==1))&&!(a5==1))&&!(a6==1))&&(a0==1))&&(a12==8))&&(a4==1))&&(a15==1)))){ + a3 = 4; + a5 = 1; + a6 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if((((a5==1)&&(!(a6==1)&&((!(a4==1)&&((((a20==1)&&((input==3)&&((((a22==1)&&(a18==1))&&(a3==5))||((((a18==1)&&!(a22==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4))))))&&!(a27==1))&&!(a15==1)))&&(a12==12))))&&(a0==1))){ + a4 = 1; + a18 = 1; + a15 = 1; + a6 = 1; + a12 = 9; + a22 = 0; + a3 = 4; + return -1; + } else if(((!(a5==1)&&((((a3==5)&&(!(a15==1)&&((a20==1)&&(((a12==9)&&(((input==4)&&(a22==1))&&!(a18==1)))&&(a4==1)))))&&!(a6==1))&&!(a0==1)))&&!(a27==1))){ + if((a3==4)){ + a18 = 1; + a15 = 1; + a22 = 0; + a6 = 1; + a27 = 1; + a5 = 1; + a0 = 1; + a12 = 8; + }else{ + a5 = 1; + a12 = 10; + a27 = 1; + a6 = 1; + a4 = 0; + a3 = 8; + } + return 26; + } else if(((((a20==1)&&((a12==12)&&(((((input==4)&&(((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4)))))&&!(a0==1))&&!(a15==1))&&(a5==1))))&&(a4==1))&&(a27==1))){ + if((a22==1)){ + a6 = 1; + a18 = 0; + a0 = 1; + a22 = 1; + a3 = 8; + a12 = 8; + a15 = 1; + }else{ + a3 = 5; + a18 = 1; + a12 = 8; + a4 = 0; + a0 = 1; + a6 = 1; + a15 = 1; + a22 = 0; + } + return 21; + } else if((!(a0==1)&&(((a5==1)&&(((a22==1)&&(!(a4==1)&&(((a3==6)&&(!(a6==1)&&(((a27==1)&&(input==6))&&(a12==12))))&&(a20==1))))&&!(a15==1)))&&(a18==1)))){ + a3 = 4; + a12 = 8; + a0 = 1; + a15 = 1; + a6 = 1; + return 24; + } else if(((a3==6)&&(((a12==8)&&((a20==1)&&((a6==1)&&(!(a0==1)&&(!(a27==1)&&(!(a4==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==6))&&!(a15==1))))))))&&!(a5==1)))){ + a0 = 1; + a18 = 1; + a22 = 1; + a15 = 1; + a3 = 7; + a4 = 1; + return 21; + } else if((((a12==12)&&(!(a22==1)&&((a3==6)&&((a20==1)&&((!(a0==1)&&(!(a18==1)&&(!(a6==1)&&((a27==1)&&((input==2)&&!(a15==1))))))&&!(a5==1))))))&&!(a4==1))){ + if((a6==1)){ + a27 = 0; + a12 = 9; + a15 = 1; + a6 = 1; + a5 = 1; + }else{ + a22 = 1; + a15 = 1; + a3 = 8; + a6 = 1; + a12 = 10; + } + return -1; + } else if(((((((a4==1)&&((a20==1)&&((a12==12)&&((a6==1)&&((input==4)&&((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7)))||(((a22==1)&&!(a18==1))&&(a3==7))))))))&&!(a5==1))&&(a27==1))&&!(a15==1))&&(a0==1))){ + a5 = 1; + a4 = 0; + a18 = 1; + a3 = 8; + a22 = 1; + a6 = 0; + return 21; + } else if((!(a27==1)&&((!(a4==1)&&((a20==1)&&((!(a6==1)&&((((input==5)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))||((a3==6)&&(!(a18==1)&&(a22==1)))))&&!(a15==1))&&!(a5==1)))&&!(a0==1))))&&(a12==10)))){ + if((a12==10)){ + a3 = 7; + a27 = 1; + a12 = 9; + a18 = 0; + a5 = 1; + a22 = 1; + a6 = 1; + }else{ + a15 = 1; + a3 = 8; + a22 = 0; + a6 = 1; + a5 = 1; + a27 = 1; + a0 = 1; + a12 = 8; + a18 = 0; + } + return 26; + } else if(((a20==1)&&((a12==11)&&(!(a27==1)&&((a6==1)&&(!(a5==1)&&(((a3==7)&&(((a4==1)&&((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a0==1)))&&(a15==1)))))))){ + a27 = 1; + a0 = 1; + a3 = 6; + a22 = 1; + a5 = 1; + a18 = 0; + a12 = 8; + a6 = 0; + return -1; + } else if((((((a27==1)&&((((a20==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==3))&&!(a4==1))&&(a6==1)))&&(a5==1))&&(a15==1)))&&(a12==11))&&(a3==5))&&(a0==1))){ + a15 = 0; + a0 = 0; + a18 = 1; + a4 = 1; + a22 = 0; + a6 = 0; + return -1; + } else if((((a3==6)&&(!(a27==1)&&(((((a22==1)&&(((((input==6)&&(a0==1))&&(a6==1))&&!(a18==1))&&(a20==1)))&&(a4==1))&&!(a15==1))&&!(a5==1))))&&(a12==12))){ + a12 = 10; + a6 = 0; + a5 = 1; + a27 = 1; + a22 = 0; + return 26; + } else if(((a5==1)&&((a15==1)&&((a22==1)&&((!(a6==1)&&(((a0==1)&&((a3==6)&&((((a20==1)&&(input==2))&&(a18==1))&&(a4==1))))&&(a12==9)))&&!(a27==1)))))){ + a3 = 8; + a22 = 0; + a27 = 1; + a15 = 0; + a12 = 11; + a4 = 0; + return 21; + } else if((!(a27==1)&&((a5==1)&&((a4==1)&&(((a20==1)&&(!(a6==1)&&(!(a15==1)&&((!(a0==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==5)))&&(a3==5)))))&&(a12==10)))))){ + if((a5==1)){ + a12 = 8; + a15 = 1; + a0 = 1; + a18 = 0; + a22 = 1; + a4 = 0; + a27 = 1; + a6 = 1; + }else{ + a3 = 7; + a6 = 1; + a22 = 0; + a18 = 1; + a12 = 11; + a4 = 0; + a5 = 0; + a15 = 1; + } + return -1; + } else if((((a12==9)&&(((a20==1)&&(((a27==1)&&(!(a0==1)&&(!(a5==1)&&(((input==3)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&!(a6==1)))))&&(a15==1)))&&(a3==7)))&&!(a4==1))){ + a22 = 1; + a3 = 4; + a18 = 1; + a0 = 1; + a12 = 8; + a4 = 1; + a6 = 1; + a5 = 1; + return -1; + } else if(((((((!(a27==1)&&((a15==1)&&((a12==10)&&(!(a4==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a22==1))))))&&!(a6==1))&&!(a5==1))&&(a20==1))&&(a3==4))&&!(a0==1))){ + if((a20==1)){ + a4 = 1; + a5 = 1; + a0 = 1; + a6 = 1; + a27 = 1; + a18 = 1; + a12 = 8; + }else{ + a3 = 8; + a5 = 1; + a4 = 1; + a27 = 1; + a18 = 0; + a12 = 8; + a22 = 0; + a0 = 1; + a6 = 1; + } + return 26; + } else if(((((((((a6==1)&&((a4==1)&&((a5==1)&&((a27==1)&&((input==1)&&!(a18==1))))))&&!(a0==1))&&!(a22==1))&&(a15==1))&&(a12==11))&&(a3==5))&&(a20==1))){ + a3 = 8; + a18 = 1; + a12 = 10; + a0 = 1; + return -1; + } else if(((a0==1)&&(((a27==1)&&((((((a6==1)&&((a4==1)&&((input==3)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))))&&(a20==1))&&!(a5==1))&&(a3==7))&&(a12==8)))&&(a15==1)))){ + a12 = 9; + a3 = 4; + a15 = 0; + a22 = 1; + a4 = 0; + a18 = 0; + return 21; + } else if((((a20==1)&&(!(a5==1)&&(!(a6==1)&&(((((a3==4)&&(((((a18==1)||!(a18==1))&&(input==5))&&!(a4==1))&&(a22==1)))&&(a12==9))&&!(a15==1))&&(a27==1)))))&&!(a0==1))){ + a3 = 5; + a0 = 1; + a18 = 0; + a12 = 10; + a22 = 0; + return -1; + } else if((!(a4==1)&&((a5==1)&&((a6==1)&&(!(a18==1)&&(!(a27==1)&&((a22==1)&&(((a20==1)&&(((a15==1)&&(!(a0==1)&&(input==6)))&&(a12==10)))&&(a3==8))))))))){ + a27 = 1; + a22 = 0; + a5 = 0; + a15 = 0; + a3 = 5; + a6 = 0; + a4 = 1; + return 26; + } else if((!(a27==1)&&(!(a6==1)&&(!(a15==1)&&((a3==7)&&(!(a5==1)&&(((a4==1)&&(((a12==11)&&((input==6)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))))&&!(a0==1)))&&(a20==1)))))))){ + a3 = 5; + a18 = 0; + a27 = 1; + a0 = 1; + a4 = 0; + a6 = 1; + a22 = 0; + a5 = 1; + return -1; + } else if(((((!(a4==1)&&(!(a22==1)&&((a12==10)&&(((a5==1)&&(!(a0==1)&&(((input==5)&&!(a15==1))&&(a3==8))))&&!(a6==1)))))&&(a20==1))&&(a18==1))&&(a27==1))){ + a0 = 1; + a3 = 4; + a4 = 1; + a22 = 1; + a12 = 11; + return 24; + } else if((!(a5==1)&&((!(a4==1)&&((a22==1)&&(((a18==1)&&(((a15==1)&&((a20==1)&&((a3==8)&&((input==5)&&!(a6==1)))))&&!(a27==1)))&&!(a0==1))))&&(a12==10)))){ + if((a12==11)){ + a3 = 4; + a0 = 1; + a12 = 8; + a27 = 1; + a6 = 1; + a5 = 1; + a22 = 0; + }else{ + a0 = 1; + a5 = 1; + a12 = 11; + a27 = 1; + a3 = 5; + a18 = 0; + } + return 21; + } else if(((a20==1)&&(!(a27==1)&&(((a12==10)&&((a15==1)&&(!(a0==1)&&(((!(a6==1)&&(((a4==1)&&(!(a22==1)&&!(a18==1)))&&(a3==8)))||(((((a18==1)&&(a22==1))&&!(a4==1))&&(a3==4))&&(a6==1)))&&(input==5)))))&&(a5==1))))){ + if((a0==1)){ + a27 = 1; + a18 = 1; + a0 = 1; + a22 = 0; + a4 = 0; + a3 = 5; + a6 = 1; + a12 = 8; + }else{ + a22 = 1; + a0 = 1; + a3 = 8; + a4 = 1; + a6 = 1; + a18 = 1; + a27 = 1; + a12 = 8; + } + return -1; + } else if((((a27==1)&&(!(a5==1)&&((((((a15==1)&&((input==1)&&(((a3==6)&&((a22==1)&&!(a18==1)))||(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6))))))&&(a12==11))&&(a20==1))&&!(a0==1))&&!(a4==1))))&&!(a6==1))){ + a5 = 1; + a22 = 0; + a0 = 1; + a18 = 0; + a3 = 7; + return -1; + } else if(((a6==1)&&((a12==10)&&((a5==1)&&((a0==1)&&((!(a27==1)&&((a15==1)&&((((input==3)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a20==1))&&!(a4==1))))&&(a3==8))))))){ + a22 = 0; + a18 = 0; + a6 = 0; + a5 = 0; + a3 = 5; + a4 = 1; + a12 = 11; + return 21; + } else if(((((!(a27==1)&&(((a15==1)&&((a0==1)&&((a5==1)&&((a12==10)&&(((a4==1)&&(input==3))&&(a3==5))))))&&(a20==1)))&&(a22==1))&&!(a18==1))&&(a6==1))){ + a27 = 1; + a15 = 0; + a18 = 1; + a3 = 7; + a5 = 0; + return -1; + } else if(((a15==1)&&(((a6==1)&&(!(a4==1)&&((a12==9)&&((((a5==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==3))&&(a3==6)))&&(a20==1))&&!(a27==1)))))&&!(a0==1)))){ + a0 = 1; + a4 = 1; + a12 = 8; + a22 = 0; + a18 = 1; + a3 = 7; + a27 = 1; + return 21; + } else if(((a3==6)&&(!(a22==1)&&((a6==1)&&((a4==1)&&((!(a5==1)&&((a12==11)&&(((((input==5)&&((a18==1)||!(a18==1)))&&!(a27==1))&&(a20==1))&&(a15==1))))&&!(a0==1))))))){ + if((a12==9)){ + a27 = 1; + a18 = 1; + a5 = 1; + a12 = 8; + a0 = 1; + a3 = 4; + }else{ + a12 = 8; + a4 = 0; + a3 = 4; + a5 = 1; + a0 = 1; + a18 = 0; + a27 = 1; + } + return -1; + } else if((!(a4==1)&&(((((a5==1)&&(!(a27==1)&&(((a20==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))||((a3==6)&&(!(a18==1)&&(a22==1))))&&(input==1)))&&!(a0==1))))&&(a15==1))&&(a12==11))&&!(a6==1)))){ + a0 = 1; + a3 = 6; + a22 = 1; + a6 = 1; + a12 = 8; + a18 = 0; + a27 = 1; + return -1; + } else if(((a3==7)&&(((a6==1)&&((a27==1)&&(((!(a4==1)&&((((input==1)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&(a5==1))&&(a20==1)))&&!(a15==1))&&(a12==9))))&&(a0==1)))){ + a22 = 0; + a27 = 0; + a18 = 0; + a6 = 0; + a12 = 8; + a4 = 1; + a15 = 1; + return 21; + } else if(((a3==6)&&((a12==10)&&((a6==1)&&(((a0==1)&&(!(a5==1)&&((a18==1)&&((((a27==1)&&(!(a22==1)&&(input==4)))&&(a15==1))&&!(a4==1)))))&&(a20==1)))))){ + a3 = 5; + a22 = 1; + return -1; + } else if(((!(a0==1)&&((a15==1)&&(!(a27==1)&&(((a3==4)&&((a12==11)&&((a5==1)&&(((input==5)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a6==1)))))&&(a20==1)))))&&(a4==1))){ + a27 = 1; + a18 = 1; + a6 = 0; + a0 = 1; + a3 = 5; + a12 = 8; + a22 = 1; + return -1; + } else if(((a20==1)&&((a5==1)&&(((((a27==1)&&((input==1)&&(((((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8))&&!(a6==1))||((a6==1)&&((!(a4==1)&&((a22==1)&&(a18==1)))&&(a3==4))))))&&(a15==1))&&(a12==11))&&!(a0==1))))){ + a22 = 1; + a6 = 1; + a3 = 4; + a4 = 1; + a18 = 1; + a12 = 8; + a0 = 1; + return -1; + } else if(((a12==10)&&((a6==1)&&((((((a27==1)&&((a15==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==5))&&(a0==1))))&&(a5==1))&&(a20==1))&&(a3==6))&&(a4==1))))){ + a22 = 1; + a3 = 4; + a18 = 0; + return -1; + } else if(((a15==1)&&((!(a6==1)&&((a5==1)&&((a22==1)&&(((a20==1)&&(((a3==4)&&(!(a27==1)&&((input==4)&&((a18==1)||!(a18==1)))))&&!(a4==1)))&&(a0==1)))))&&(a12==12)))){ + a27 = 1; + a6 = 1; + a12 = 8; + a4 = 1; + a18 = 1; + return -1; + } else if(((!(a0==1)&&(((((!(a6==1)&&((((((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==4))&&(a20==1)))&&!(a4==1))&&!(a15==1))&&(a5==1))&&!(a27==1)))&&(a12==8))){ + if((a22==1)){ + a4 = 1; + a18 = 0; + a27 = 1; + a0 = 1; + a15 = 1; + a3 = 6; + a6 = 1; + a22 = 1; + }else{ + a15 = 1; + a3 = 7; + a22 = 0; + a18 = 0; + a4 = 1; + a0 = 1; + a27 = 1; + } + return 21; + } else if((!(a4==1)&&((a27==1)&&(!(a5==1)&&((!(a6==1)&&((((a12==12)&&(((input==3)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&(a0==1)))&&!(a15==1))&&(a20==1)))&&(a3==8)))))){ + a22 = 0; + a3 = 5; + a12 = 11; + a4 = 1; + a18 = 0; + a6 = 1; + return -1; + } else if((!(a27==1)&&(((!(a6==1)&&(!(a15==1)&&(((a5==1)&&(((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==3))&&(a20==1))&&!(a0==1)))&&!(a4==1))))&&(a12==9))&&(a3==8)))){ + if((a4==1)){ + a0 = 1; + a6 = 1; + a27 = 1; + a3 = 4; + a12 = 8; + a4 = 1; + a22 = 0; + a15 = 1; + a18 = 0; + }else{ + a0 = 1; + a12 = 8; + a27 = 1; + a18 = 0; + a3 = 5; + a15 = 1; + a6 = 1; + a4 = 1; + a22 = 0; + } + return 26; + } else if((((((a27==1)&&(((!(a5==1)&&((input==6)&&(((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4))))))&&(a20==1))&&!(a4==1)))&&!(a15==1))&&(a0==1))&&(a12==12))){ + a22 = 1; + a27 = 0; + a12 = 9; + a5 = 1; + a4 = 1; + a3 = 7; + a6 = 1; + a18 = 0; + return 21; + } else if(((((a15==1)&&(((((a20==1)&&(!(a6==1)&&((a0==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==5)))))&&!(a4==1))&&(a27==1))&&(a5==1)))&&(a3==5))&&(a12==9))){ + a3 = 6; + a22 = 1; + a18 = 0; + a4 = 1; + a6 = 1; + a12 = 10; + return 26; + } else if(((((a5==1)&&(((((a20==1)&&(!(a15==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))||((a3==5)&&(!(a18==1)&&(a22==1))))&&(input==3))))&&(a12==12))&&!(a27==1))&&(a4==1)))&&(a0==1))&&!(a6==1))){ + a6 = 1; + a22 = 0; + a15 = 1; + a3 = 8; + a12 = 11; + a18 = 1; + return -1; + } else if(((a15==1)&&((!(a0==1)&&((a6==1)&&(((a5==1)&&(((a3==8)&&((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==6))&&(a20==1)))&&(a27==1)))&&(a12==10))))&&(a4==1)))){ + a18 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + a0 = 1; + return -1; + } else if(((!(a4==1)&&((((a6==1)&&(((((a3==7)&&((a12==11)&&(((a18==1)||!(a18==1))&&(input==1))))&&(a20==1))&&(a27==1))&&!(a15==1)))&&!(a5==1))&&(a22==1)))&&!(a0==1))){ + a18 = 0; + a22 = 0; + a12 = 10; + a6 = 0; + a0 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if(((a15==1)&&(((a12==10)&&((a5==1)&&((a6==1)&&(((a0==1)&&(((a3==5)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==3)))&&!(a4==1)))&&(a20==1)))))&&!(a27==1)))){ + a18 = 1; + a3 = 4; + a12 = 8; + a4 = 1; + a22 = 1; + a27 = 1; + return -1; + } else if((!(a5==1)&&(((((a0==1)&&(((((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a15==1))&&(a27==1))&&(a12==8))&&(a20==1)))&&!(a6==1))&&(a3==4))&&!(a4==1)))){ + a6 = 1; + a12 = 10; + a5 = 1; + a3 = 5; + a18 = 1; + a15 = 0; + a22 = 0; + return 21; + } else if((((a6==1)&&((a20==1)&&((a0==1)&&(!(a5==1)&&(((((input==3)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))||(((a22==1)&&!(a18==1))&&(a3==8))))&&(a27==1))&&(a12==10))&&!(a4==1))))))&&!(a15==1))){ + a3 = 4; + a12 = 8; + a15 = 1; + a4 = 1; + a18 = 1; + a5 = 1; + a22 = 1; + return -1; + } else if((!(a5==1)&&(((a15==1)&&((a20==1)&&(((a18==1)&&(!(a27==1)&&((((a12==12)&&((input==6)&&(a4==1)))&&(a3==8))&&(a6==1))))&&!(a22==1))))&&(a0==1)))){ + a27 = 1; + a5 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((a27==1)&&((((((a0==1)&&(!(a6==1)&&((a20==1)&&((input==4)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))))))&&(a12==10))&&!(a5==1))&&(a15==1))&&!(a4==1)))){ + a15 = 0; + a5 = 1; + a22 = 1; + a18 = 0; + a3 = 7; + return -1; + } else if((!(a5==1)&&(((a0==1)&&(((!(a4==1)&&(((a12==9)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==4)))&&!(a15==1)))&&(a27==1))&&(a20==1)))&&(a6==1)))){ + a18 = 0; + a3 = 5; + a22 = 1; + a5 = 1; + a12 = 10; + return 26; + } else if(((a12==9)&&(((a20==1)&&((((!(a15==1)&&(((a27==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3)))&&(a3==6)))&&!(a6==1))&&(a0==1))&&!(a5==1)))&&(a4==1)))){ + a22 = 1; + a5 = 1; + a6 = 1; + a15 = 1; + a3 = 8; + a18 = 1; + a27 = 0; + return 21; + } else if(((((((!(a15==1)&&(!(a4==1)&&((!(a27==1)&&((input==3)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))&&!(a5==1))))&&(a20==1))&&!(a0==1))&&!(a6==1))&&(a3==5))&&(a12==10))){ + a0 = 1; + a5 = 1; + a15 = 1; + a3 = 6; + a18 = 0; + a22 = 1; + return 21; + } else if(((a5==1)&&((a12==10)&&((a0==1)&&(!(a27==1)&&(((a20==1)&&((((input==3)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1)))))&&!(a15==1))&&(a4==1)))&&(a6==1))))))){ + a15 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + a27 = 1; + return -1; + } else if(((a20==1)&&((((a0==1)&&(!(a5==1)&&((a3==5)&&((a6==1)&&((a27==1)&&((a4==1)&&((input==5)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))))))&&(a12==8))&&(a15==1)))){ + a12 = 9; + a6 = 0; + a22 = 0; + a18 = 1; + a3 = 6; + a4 = 0; + return 24; + } else if(((!(a27==1)&&((((a15==1)&&(((((input==2)&&(((a3==8)&&((a22==1)&&(a18==1)))||(((a3==7)&&(!(a22==1)&&(a18==1)))||((a3==7)&&(!(a22==1)&&!(a18==1))))))&&!(a4==1))&&(a5==1))&&(a20==1)))&&(a12==10))&&(a0==1)))&&(a6==1))){ + a5 = 0; + a18 = 0; + a12 = 9; + a22 = 0; + a3 = 5; + a15 = 0; + return 26; + } else if((!(a27==1)&&((a12==10)&&((((a3==6)&&((((a20==1)&&((a5==1)&&((input==1)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&!(a0==1))&&!(a15==1)))&&(a6==1))&&!(a4==1))))){ + if((a4==1)){ + a3 = 4; + a27 = 1; + a4 = 1; + a18 = 1; + a22 = 1; + a5 = 0; + }else{ + a3 = 4; + a18 = 1; + a22 = 0; + a4 = 1; + } + return 21; + } else if((((a27==1)&&((((a3==8)&&(((a15==1)&&(((a12==9)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==4)))&&!(a4==1)))&&(a0==1)))&&(a20==1))&&(a5==1)))&&!(a6==1))){ + a4 = 1; + a15 = 0; + a12 = 11; + a18 = 0; + a6 = 1; + a3 = 5; + a22 = 1; + return 26; + } else if(((((a20==1)&&(!(a5==1)&&((a3==5)&&(((((a15==1)&&((((a18==1)||!(a18==1))&&(input==5))&&(a4==1)))&&(a22==1))&&(a12==8))&&!(a27==1)))))&&(a0==1))&&!(a6==1))){ + a6 = 1; + a18 = 1; + a5 = 1; + a3 = 6; + a15 = 0; + a4 = 0; + a12 = 11; + return 21; + } else if((!(a5==1)&&((((a12==9)&&(((a27==1)&&(!(a4==1)&&((a0==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&(a20==1)))))&&(a6==1)))&&(a3==7))&&!(a15==1)))){ + a3 = 4; + a18 = 1; + a15 = 1; + a22 = 1; + a5 = 1; + a6 = 0; + a27 = 0; + return 21; + } else if(((a20==1)&&((!(a0==1)&&(((!(a6==1)&&((!(a5==1)&&((a27==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==4))))&&(a3==7)))&&!(a4==1))&&!(a15==1)))&&(a12==10)))){ + a22 = 1; + a15 = 1; + a4 = 1; + a12 = 12; + a0 = 1; + a18 = 0; + return -1; + } else if((((a15==1)&&((!(a27==1)&&((((!(a4==1)&&((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==3))&&(a12==9)))&&(a20==1))&&(a3==6))&&!(a0==1)))&&!(a5==1)))&&(a6==1))){ + a3 = 8; + a4 = 1; + a22 = 1; + a18 = 1; + a5 = 1; + a0 = 1; + a12 = 8; + a27 = 1; + a6 = 0; + return 24; + } else if((((a0==1)&&(((a15==1)&&(((((((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7)))||((!(a18==1)&&(a22==1))&&(a3==7)))&&(input==2))&&(a20==1))&&!(a5==1))&&(a27==1))&&!(a6==1)))&&!(a4==1)))&&(a12==9))){ + a22 = 0; + a27 = 0; + a18 = 0; + a15 = 0; + a6 = 1; + a12 = 8; + a3 = 7; + a4 = 1; + return 26; + } else if((((a0==1)&&((a12==9)&&((a20==1)&&(!(a15==1)&&((!(a5==1)&&(((((input==1)&&!(a27==1))&&(a4==1))&&!(a18==1))&&(a3==7)))&&(a6==1))))))&&(a22==1))){ + a18 = 1; + a27 = 1; + a5 = 1; + a3 = 4; + a15 = 1; + a12 = 8; + return -1; + } else if(((a20==1)&&(!(a0==1)&&(!(a27==1)&&((input==3)&&((!(a6==1)&&(((((!(a5==1)&&(!(a22==1)&&!(a18==1)))&&!(a15==1))&&(a12==9))&&!(a4==1))&&(a3==8)))||(((a3==4)&&((a4==1)&&((a12==10)&&((a15==1)&&((a5==1)&&((a18==1)&&(a22==1)))))))&&(a6==1)))))))){ + a22 = 0; + a12 = 8; + a3 = 5; + a6 = 0; + a18 = 1; + a0 = 1; + a4 = 1; + a5 = 1; + a15 = 1; + a27 = 1; + return -1; + } else if(((a20==1)&&((((((a27==1)&&(!(a4==1)&&(!(a15==1)&&(((a22==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a6==1)))))&&(a12==12))&&!(a5==1))&&(a0==1))&&(a3==6)))){ + a15 = 1; + a12 = 11; + a18 = 1; + a3 = 5; + a22 = 0; + return -1; + } else if(((a6==1)&&(((((((a27==1)&&(!(a4==1)&&((a18==1)&&(((a22==1)&&(input==3))&&(a3==5)))))&&(a20==1))&&!(a0==1))&&(a5==1))&&(a15==1))&&(a12==9)))){ + a3 = 7; + a5 = 0; + a12 = 12; + a0 = 1; + a22 = 0; + return -1; + } else if((((a12==11)&&(((a5==1)&&((a3==5)&&(!(a6==1)&&(!(a0==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&(a4==1))&&!(a27==1))))))&&!(a15==1)))&&(a20==1))){ + a12 = 8; + a0 = 1; + a22 = 0; + a6 = 1; + a27 = 1; + a3 = 8; + a4 = 0; + a15 = 1; + a18 = 1; + return -1; + } else if((((a4==1)&&(!(a22==1)&&(!(a15==1)&&((((((!(a6==1)&&((a20==1)&&(input==3)))&&(a18==1))&&!(a5==1))&&(a3==4))&&(a27==1))&&(a12==10)))))&&!(a0==1))){ + a4 = 0; + a6 = 1; + a0 = 1; + a15 = 1; + a5 = 1; + a18 = 0; + return 24; + } else if(((((a20==1)&&(!(a18==1)&&(((a22==1)&&((((a0==1)&&((a3==6)&&(!(a6==1)&&(input==4))))&&(a4==1))&&(a12==10)))&&!(a5==1))))&&!(a27==1))&&!(a15==1))){ + a18 = 1; + a22 = 0; + a15 = 1; + a3 = 5; + a27 = 1; + a6 = 1; + a5 = 1; + return 26; + } else if((((a0==1)&&((((a27==1)&&((a4==1)&&((a12==9)&&((((input==6)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&(a20==1))&&!(a5==1)))))&&(a3==4))&&!(a15==1)))&&!(a6==1))){ + a5 = 1; + a18 = 1; + a22 = 1; + a15 = 1; + a6 = 1; + a27 = 0; + return 26; + } else if((((!(a27==1)&&((!(a5==1)&&(((((((input==1)&&(a12==9))&&(a3==7))&&!(a6==1))&&(a20==1))&&!(a15==1))&&(a4==1)))&&!(a0==1)))&&!(a22==1))&&!(a18==1))){ + a6 = 1; + a3 = 5; + a18 = 1; + return -1; + } else if(((!(a15==1)&&(((a20==1)&&((((((((a3==7)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1)))))&&(input==1))&&(a0==1))&&(a12==9))&&!(a4==1))&&!(a5==1)))&&(a27==1)))&&!(a6==1))){ + a22 = 0; + a12 = 11; + a18 = 0; + a15 = 1; + a6 = 1; + a3 = 7; + return 26; + } else if((((a3==8)&&((a6==1)&&(((a18==1)&&(((((a0==1)&&((a12==11)&&(!(a27==1)&&(input==5))))&&(a20==1))&&!(a15==1))&&!(a5==1)))&&!(a4==1))))&&!(a22==1))){ + a15 = 1; + a12 = 10; + a18 = 0; + a6 = 0; + a3 = 4; + return -1; + } else if((((((a12==10)&&((a20==1)&&(!(a6==1)&&(!(a0==1)&&(!(a27==1)&&((input==5)&&((((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a22==1)&&(a18==1))))||((a3==6)&&((a22==1)&&!(a18==1))))))))))&&(a15==1))&&(a5==1))&&!(a4==1))){ + a12 = 8; + a6 = 1; + a18 = 1; + a3 = 6; + a27 = 1; + a22 = 1; + a0 = 1; + return 21; + } else if((!(a27==1)&&(((((a0==1)&&((a20==1)&&((((a12==8)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==5)))&&!(a4==1))&&!(a15==1))))&&(a6==1))&&(a3==7))&&(a5==1)))){ + a27 = 1; + a12 = 11; + a18 = 0; + a6 = 0; + a3 = 8; + a22 = 1; + return 26; + } else if(((a3==6)&&(((a6==1)&&(((a0==1)&&(!(a5==1)&&((a20==1)&&((a15==1)&&((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==1))&&!(a27==1))))))&&!(a4==1)))&&(a12==10)))){ + a27 = 1; + a5 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if(((a5==1)&&(((a0==1)&&((!(a6==1)&&((((a4==1)&&(((input==6)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&!(a27==1)))&&(a3==6))&&!(a15==1)))&&(a12==11)))&&(a20==1)))){ + a18 = 0; + a3 = 7; + a12 = 9; + a22 = 1; + return -1; + } else if((!(a0==1)&&((a6==1)&&((a27==1)&&((a12==8)&&(((a4==1)&&((a20==1)&&((a15==1)&&((input==4)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a18==1)&&(a22==1))))))))&&!(a5==1))))))){ + a22 = 1; + a3 = 4; + a18 = 1; + a5 = 1; + a0 = 1; + return -1; + } else if(((a5==1)&&(!(a27==1)&&((a18==1)&&((a22==1)&&((a4==1)&&(!(a6==1)&&((a20==1)&&((a12==8)&&((a3==7)&&((!(a0==1)&&(input==1))&&!(a15==1)))))))))))){ + a3 = 6; + a15 = 1; + a0 = 1; + a22 = 0; + a27 = 1; + return -1; + } else if((!(a0==1)&&(((a20==1)&&((input==5)&&((((!(a4==1)&&((a12==11)&&(((!(a22==1)&&!(a18==1))&&!(a5==1))&&!(a15==1))))&&(a3==8))&&!(a6==1))||(((a3==4)&&((a4==1)&&((((a5==1)&&((a18==1)&&(a22==1)))&&(a15==1))&&(a12==12))))&&(a6==1)))))&&(a27==1)))){ + a18 = 1; + a12 = 8; + a3 = 4; + a15 = 1; + a0 = 1; + a22 = 1; + a6 = 1; + a4 = 1; + a5 = 1; + return -1; + } else if((!(a0==1)&&(!(a15==1)&&(((a6==1)&&(!(a27==1)&&((a3==5)&&((a5==1)&&((((input==4)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a12==8))&&(a4==1))))))&&(a20==1))))){ + a0 = 1; + a18 = 1; + a22 = 1; + a15 = 1; + a27 = 1; + a3 = 8; + return -1; + } else if(((a22==1)&&(((a12==11)&&((a5==1)&&(((((a3==5)&&((a4==1)&&((((a18==1)||!(a18==1))&&(input==5))&&!(a15==1))))&&(a6==1))&&!(a27==1))&&(a20==1))))&&(a0==1)))){ + a3 = 4; + a15 = 1; + a18 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if((!(a4==1)&&((a18==1)&&(((a3==4)&&((((a6==1)&&((a15==1)&&(!(a22==1)&&(((input==4)&&!(a27==1))&&(a20==1)))))&&(a12==9))&&!(a0==1)))&&(a5==1))))){ + a27 = 1; + a3 = 7; + a12 = 8; + a0 = 1; + return 26; + } else if(((a6==1)&&(!(a18==1)&&(((a3==6)&&(!(a27==1)&&((!(a0==1)&&(((a12==10)&&(((input==1)&&(a4==1))&&(a20==1)))&&!(a22==1)))&&!(a15==1))))&&(a5==1))))){ + a5 = 0; + a3 = 8; + a12 = 11; + a0 = 1; + return 26; + } else if(((!(a4==1)&&(((((a20==1)&&((a0==1)&&((((((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==7)))&&(input==3))&&(a27==1))))&&(a6==1))&&(a15==1))&&!(a5==1)))&&(a12==9))){ + a12 = 8; + a22 = 1; + a3 = 6; + a27 = 0; + a18 = 0; + return 26; + } else if((((((((a5==1)&&((a22==1)&&(!(a15==1)&&((((input==2)&&((a18==1)||!(a18==1)))&&(a6==1))&&!(a0==1)))))&&(a4==1))&&(a27==1))&&(a3==4))&&(a12==12))&&(a20==1))){ + a15 = 1; + a12 = 8; + a0 = 1; + a18 = 1; + return -1; + } else if((!(a6==1)&&(!(a4==1)&&((!(a27==1)&&((a5==1)&&((a20==1)&&((((a3==5)&&((a12==11)&&((input==5)&&((a18==1)||!(a18==1)))))&&(a0==1))&&(a22==1)))))&&(a15==1))))){ + a4 = 1; + a6 = 1; + a12 = 8; + a22 = 0; + a5 = 0; + a18 = 0; + a3 = 8; + return -1; + } else if((!(a6==1)&&((a4==1)&&(((((a15==1)&&(!(a5==1)&&((!(a27==1)&&((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a3==8))))&&(a20==1))&&(a12==8))&&!(a0==1))))){ + a27 = 1; + a3 = 7; + a18 = 1; + a22 = 0; + a5 = 1; + a0 = 1; + return 26; + } else if((((((!(a18==1)&&((!(a22==1)&&(!(a6==1)&&(((a15==1)&&((input==4)&&(a3==5)))&&!(a0==1))))&&!(a27==1)))&&(a12==9))&&(a5==1))&&(a20==1))&&!(a4==1))){ + if((a6==1)){ + a27 = 1; + a0 = 1; + a4 = 1; + a22 = 1; + a12 = 8; + a6 = 1; + }else{ + a6 = 1; + a15 = 0; + a18 = 1; + a3 = 6; + a12 = 10; + a22 = 1; + } + return -1; + } else if((((a15==1)&&((!(a0==1)&&((a27==1)&&(((((a12==12)&&((a22==1)&&((input==3)&&((a18==1)||!(a18==1)))))&&(a20==1))&&!(a5==1))&&(a3==8))))&&!(a4==1)))&&!(a6==1))){ + a0 = 1; + a5 = 1; + a12 = 8; + a6 = 1; + a18 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if(((a18==1)&&(!(a5==1)&&((a20==1)&&((!(a27==1)&&(!(a15==1)&&(!(a6==1)&&((a4==1)&&((!(a22==1)&&((a12==12)&&(input==3)))&&(a0==1))))))&&(a3==8)))))){ + a3 = 4; + a6 = 1; + a27 = 1; + a15 = 1; + return 26; + } else if(((a6==1)&&((a27==1)&&(((a20==1)&&((a4==1)&&((a12==8)&&(((((((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==3))&&!(a15==1))&&(a0==1)))))&&(a5==1))))){ + if((a5==1)){ + a3 = 4; + a12 = 9; + a22 = 1; + a18 = 1; + a6 = 0; + a0 = 0; + a4 = 0; + }else{ + a4 = 0; + a12 = 9; + a3 = 8; + a18 = 1; + a22 = 1; + a0 = 0; + } + return 24; + } else if(((a5==1)&&(!(a27==1)&&((a20==1)&&((a12==12)&&(((a0==1)&&((((((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1)))||((((a22==1)&&!(a18==1))&&(a3==4))&&!(a6==1)))&&(input==4))&&(a15==1)))&&(a4==1))))))){ + a22 = 0; + a4 = 0; + a3 = 8; + a18 = 0; + a12 = 10; + a6 = 0; + a5 = 0; + return -1; + } else if((((!(a0==1)&&((a20==1)&&(((!(a22==1)&&(((a4==1)&&((a27==1)&&((input==1)&&!(a5==1))))&&!(a18==1)))&&(a3==8))&&(a6==1))))&&!(a15==1))&&(a12==10))){ + a18 = 1; + a0 = 1; + a3 = 5; + a5 = 1; + a12 = 12; + a22 = 1; + return 21; + } else if(((!(a4==1)&&(((a0==1)&&(!(a22==1)&&(!(a15==1)&&(((a3==5)&&((((input==2)&&((a18==1)||!(a18==1)))&&(a6==1))&&!(a27==1)))&&(a20==1)))))&&(a12==8)))&&(a5==1))){ + a3 = 8; + a4 = 1; + a18 = 1; + a15 = 1; + a27 = 1; + a12 = 11; + a6 = 0; + return 26; + } else if(((a0==1)&&((!(a6==1)&&(!(a15==1)&&((a3==8)&&(!(a27==1)&&((((!(a4==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a5==1))&&!(a22==1))&&(a20==1))))))&&(a12==11)))){ + a22 = 1; + a6 = 1; + a3 = 4; + a4 = 1; + a12 = 8; + a15 = 1; + a18 = 1; + a27 = 1; + return -1; + } else if((((a15==1)&&(!(a22==1)&&(((((a20==1)&&((((a27==1)&&(!(a18==1)&&(input==2)))&&!(a4==1))&&!(a6==1)))&&(a5==1))&&!(a0==1))&&(a12==9))))&&(a3==4))){ + a0 = 1; + a12 = 11; + return -1; + } else if(((a27==1)&&((!(a6==1)&&(((a3==7)&&(!(a4==1)&&(((!(a15==1)&&((input==6)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))&&(a20==1))&&(a5==1))))&&(a12==11)))&&!(a0==1)))){ + a4 = 1; + a0 = 1; + a3 = 4; + a6 = 1; + a18 = 1; + a15 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if(((a20==1)&&(!(a15==1)&&(((a3==6)&&((!(a27==1)&&(!(a6==1)&&(((!(a0==1)&&((a12==10)&&(input==1)))&&(a5==1))&&!(a22==1))))&&(a18==1)))&&(a4==1))))){ + a15 = 1; + a27 = 1; + a0 = 1; + a12 = 8; + a18 = 0; + a3 = 7; + a22 = 1; + return 21; + } else if(((a4==1)&&((a12==10)&&((a5==1)&&((a15==1)&&((!(a27==1)&&((a0==1)&&(((input==3)&&(((!(a18==1)&&(a22==1))&&(a3==7))||(((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))))&&(a20==1))))&&!(a6==1))))))){ + a6 = 1; + a27 = 1; + a12 = 12; + a5 = 0; + a22 = 0; + a18 = 0; + a3 = 5; + return 21; + } else if((((((!(a4==1)&&(((((a12==9)&&((!(a22==1)&&(input==1))&&!(a5==1)))&&(a20==1))&&(a0==1))&&(a3==7)))&&!(a15==1))&&(a27==1))&&!(a6==1))&&(a18==1))){ + a22 = 1; + a5 = 1; + a6 = 1; + a3 = 6; + a12 = 10; + a15 = 1; + return 21; + } else if(((((a3==4)&&((((!(a27==1)&&((((a15==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a0==1))&&(a5==1)))&&(a6==1))&&(a22==1))&&!(a4==1)))&&(a20==1))&&(a12==11))){ + a3 = 5; + a18 = 0; + a12 = 12; + a27 = 1; + a6 = 0; + return 26; + } else if(((((a12==8)&&(!(a22==1)&&(!(a0==1)&&(!(a5==1)&&(!(a18==1)&&((((!(a27==1)&&(input==3))&&!(a6==1))&&!(a4==1))&&(a15==1)))))))&&(a20==1))&&(a3==5))){ + a0 = 1; + a6 = 1; + a12 = 9; + a15 = 0; + a3 = 8; + a27 = 1; + a4 = 1; + return -1; + } else if(((!(a4==1)&&((((a5==1)&&((a12==10)&&((a3==6)&&(((a20==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==3)))&&(a6==1)))))&&!(a27==1))&&!(a0==1)))&&!(a15==1))){ + if((a4==1)){ + a6 = 0; + a3 = 4; + a5 = 0; + a12 = 8; + a22 = 0; + a18 = 0; + a0 = 1; + }else{ + a27 = 1; + a0 = 1; + a15 = 1; + a12 = 8; + a3 = 7; + a4 = 1; + a22 = 1; + a18 = 1; + } + return 26; + } else if((((a5==1)&&(((((a12==10)&&(((a6==1)&&(((((a18==1)||!(a18==1))&&(input==1))&&!(a27==1))&&!(a15==1)))&&(a0==1)))&&(a3==5))&&!(a4==1))&&(a22==1)))&&(a20==1))){ + a12 = 8; + a4 = 1; + a3 = 4; + a18 = 1; + a27 = 1; + a15 = 1; + return -1; + } else if(((a20==1)&&(((!(a27==1)&&((((a0==1)&&(!(a4==1)&&((input==1)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==8)))||((!(a18==1)&&(a22==1))&&(a3==8))))))&&!(a15==1))&&(a12==10)))&&(a5==1))&&(a6==1)))){ + a27 = 1; + a22 = 1; + a15 = 1; + a12 = 11; + a3 = 8; + a5 = 0; + a18 = 0; + return -1; + } else if((!(a15==1)&&((a27==1)&&(((a5==1)&&(((((a12==11)&&((input==6)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))))&&(a20==1))&&(a0==1))&&(a4==1)))&&(a6==1))))){ + a3 = 8; + a4 = 0; + a6 = 0; + a5 = 0; + a12 = 10; + a27 = 0; + a22 = 1; + a18 = 0; + return 26; + } else if(((a12==12)&&((!(a6==1)&&(((!(a22==1)&&((((a0==1)&&(((a3==8)&&(input==4))&&(a18==1)))&&!(a27==1))&&!(a5==1)))&&(a15==1))&&(a20==1)))&&(a4==1)))){ + a18 = 0; + a15 = 0; + a3 = 4; + a5 = 1; + a6 = 1; + return 26; + } else if((((a0==1)&&((a5==1)&&((a20==1)&&((!(a22==1)&&(((a3==8)&&((((input==1)&&((a18==1)||!(a18==1)))&&(a27==1))&&!(a4==1)))&&(a6==1)))&&(a15==1)))))&&(a12==10))){ + a12 = 12; + a18 = 1; + a15 = 0; + a3 = 5; + a4 = 1; + return 21; + } else if((!(a15==1)&&((a0==1)&&((a20==1)&&((!(a27==1)&&((a5==1)&&(((a22==1)&&((((input==4)&&((a18==1)||!(a18==1)))&&(a3==5))&&(a6==1)))&&!(a4==1))))&&(a12==10)))))){ + a4 = 1; + a5 = 0; + a27 = 1; + a18 = 0; + return -1; + } else if(((a20==1)&&(((a27==1)&&((a3==5)&&((!(a5==1)&&(((a12==9)&&(!(a6==1)&&((!(a15==1)&&(input==2))&&(a22==1))))&&!(a18==1)))&&(a0==1))))&&!(a4==1)))){ + if((a12==8)){ + a22 = 0; + a0 = 0; + }else{ + a6 = 1; + a0 = 0; + a15 = 1; + a4 = 1; + a12 = 11; + a3 = 6; + } + return 26; + } else if((((((a12==12)&&(((a27==1)&&((((input==2)&&(((a3==7)&&((a18==1)&&(a22==1)))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==6)))))&&(a20==1))&&!(a5==1)))&&(a6==1)))&&(a4==1))&&(a15==1))&&(a0==1))){ + a22 = 1; + a18 = 1; + a5 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((a20==1)&&((((a18==1)&&((a0==1)&&((a3==5)&&(!(a22==1)&&((a12==12)&&(((!(a27==1)&&(input==4))&&!(a4==1))&&(a5==1)))))))&&(a15==1))&&!(a6==1)))){ + a3 = 7; + a0 = 0; + a27 = 1; + a5 = 0; + a12 = 8; + return 21; + } else if(((a6==1)&&((((a0==1)&&((((a20==1)&&(((((a3==8)&&((a22==1)&&!(a18==1)))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8))))&&(input==1))&&(a4==1)))&&(a12==9))&&(a27==1)))&&(a5==1))&&(a15==1)))){ + a5 = 0; + a15 = 0; + a3 = 7; + a22 = 0; + a6 = 0; + a18 = 0; + a12 = 11; + a4 = 0; + return 21; + } else if(((((((!(a6==1)&&(((((input==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&(a3==4))&&(a20==1))&&(a0==1)))&&!(a27==1))&&(a12==11))&&(a15==1))&&!(a5==1))&&(a4==1))){ + a22 = 0; + a12 = 12; + a27 = 1; + a18 = 1; + return 21; + } else if((((a20==1)&&(!(a5==1)&&((a27==1)&&((((a15==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==3))&&(a6==1)))&&(a12==12))&&!(a0==1)))))&&!(a4==1))){ + a18 = 1; + a12 = 8; + a5 = 1; + a22 = 0; + a27 = 0; + a3 = 8; + return -1; + } else if((!(a6==1)&&((!(a27==1)&&(!(a0==1)&&((((a4==1)&&(((a3==7)&&((input==1)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))&&!(a5==1)))&&!(a15==1))&&(a12==9))))&&(a20==1)))){ + a5 = 1; + a0 = 1; + a27 = 1; + a18 = 0; + a12 = 8; + a6 = 1; + a3 = 8; + a22 = 0; + a15 = 1; + return -1; + } else if(((a4==1)&&((!(a6==1)&&((a3==7)&&((((a15==1)&&(((a22==1)&&((a20==1)&&((input==3)&&((a18==1)||!(a18==1)))))&&(a0==1)))&&!(a5==1))&&(a27==1))))&&(a12==11)))){ + a5 = 1; + a6 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + return -1; + } else if(((a20==1)&&(((a15==1)&&((a27==1)&&((a0==1)&&((((a3==5)&&(((input==6)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&!(a6==1)))&&(a5==1))&&(a12==11)))))&&!(a4==1)))){ + a12 = 8; + a6 = 1; + a3 = 4; + a4 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((((!(a5==1)&&(!(a0==1)&&((!(a4==1)&&((((((a3==7)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==7)))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==5))&&(a6==1)))&&(a27==1))))&&(a12==10))&&(a15==1))&&(a20==1))){ + a18 = 1; + a0 = 1; + a27 = 0; + a3 = 5; + a15 = 0; + a22 = 0; + return 24; + } else if(((a27==1)&&((a12==12)&&((a3==4)&&(((a6==1)&&((a20==1)&&(((((((a18==1)||!(a18==1))&&(input==1))&&!(a15==1))&&(a4==1))&&!(a0==1))&&!(a5==1))))&&(a22==1)))))){ + a4 = 0; + a18 = 0; + a0 = 1; + a12 = 8; + a5 = 1; + a3 = 6; + a22 = 0; + return -1; + } return calculate_output68(input); + } + + int calculate_output68(int input) { + if((((!(a4==1)&&(!(a15==1)&&(((a12==8)&&(((a27==1)&&((a6==1)&&(!(a22==1)&&((input==3)&&((a18==1)||!(a18==1))))))&&!(a5==1)))&&(a20==1))))&&(a0==1))&&(a3==7))){ + a18 = 0; + a12 = 11; + a5 = 1; + return 24; + } else if(((!(a5==1)&&((!(a0==1)&&((((a20==1)&&((a15==1)&&((a27==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==1)))))&&!(a4==1))&&!(a6==1)))&&(a3==8)))&&(a12==10))){ + a18 = 1; + a12 = 11; + a15 = 0; + a22 = 0; + a0 = 1; + a5 = 1; + a4 = 1; + return 21; + } else if(((((((a12==9)&&((a20==1)&&(!(a4==1)&&((!(a5==1)&&((a15==1)&&(((a18==1)||!(a18==1))&&(input==6))))&&(a3==4)))))&&!(a0==1))&&(a27==1))&&(a6==1))&&(a22==1))){ + a18 = 0; + a3 = 5; + a6 = 0; + a15 = 0; + a4 = 1; + a12 = 12; + a22 = 0; + a0 = 1; + return -1; + } else if((((((!(a0==1)&&(((a22==1)&&(((((a15==1)&&(input==3))&&!(a6==1))&&(a3==8))&&(a12==9)))&&(a20==1)))&&(a4==1))&&!(a27==1))&&!(a18==1))&&!(a5==1))){ + a18 = 1; + a12 = 10; + a3 = 6; + a6 = 1; + a27 = 1; + return -1; + } else if(((a0==1)&&((a12==9)&&((a6==1)&&((a4==1)&&(((!(a5==1)&&((a3==5)&&(!(a27==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==6)))))&&(a15==1))&&(a20==1))))))){ + a18 = 0; + a5 = 1; + a22 = 0; + a6 = 0; + a12 = 11; + return 21; + } else if(((a0==1)&&((((!(a5==1)&&(!(a4==1)&&((((((input==1)&&!(a18==1))&&(a12==11))&&(a6==1))&&!(a27==1))&&!(a22==1))))&&(a15==1))&&(a20==1))&&(a3==4)))){ + a27 = 1; + a12 = 12; + a3 = 7; + a5 = 1; + return -1; + } else if(((a5==1)&&(((a4==1)&&(((a12==9)&&(((((((input==5)&&((a18==1)||!(a18==1)))&&(a0==1))&&!(a22==1))&&!(a27==1))&&(a3==8))&&(a20==1)))&&(a6==1)))&&(a15==1)))){ + a22 = 1; + a3 = 4; + a12 = 12; + a18 = 0; + return 21; + } else if(((a3==8)&&((a15==1)&&((((a12==12)&&((a22==1)&&((!(a5==1)&&(!(a4==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a20==1))))&&(a6==1))))&&(a27==1))&&(a0==1))))){ + a5 = 1; + a15 = 0; + a18 = 0; + a6 = 0; + a3 = 4; + a27 = 0; + return 21; + } else if((((!(a22==1)&&((a3==6)&&((a20==1)&&((a12==10)&&((a6==1)&&((((a5==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&!(a0==1))&&(a27==1)))))))&&(a15==1))&&(a4==1))){ + a22 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + a0 = 1; + return -1; + } else if(((a27==1)&&((a3==6)&&((a6==1)&&(((((((!(a5==1)&&((input==6)&&!(a15==1)))&&!(a22==1))&&(a18==1))&&!(a0==1))&&!(a4==1))&&(a20==1))&&(a12==9)))))){ + a22 = 1; + a3 = 4; + a5 = 1; + a12 = 10; + a0 = 1; + a6 = 0; + a15 = 1; + return 24; + } else if((((a5==1)&&(((a27==1)&&((a6==1)&&(((!(a0==1)&&((a3==8)&&(((a18==1)&&(input==5))&&(a12==8))))&&!(a4==1))&&(a20==1))))&&!(a22==1)))&&(a15==1))){ + a27 = 0; + a4 = 1; + a0 = 1; + a12 = 9; + a6 = 0; + a15 = 0; + return -1; + } else if(((!(a0==1)&&((((a27==1)&&((a12==12)&&((a6==1)&&((a15==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==6))&&!(a4==1))))))&&(a20==1))&&(a3==8)))&&(a5==1))){ + a3 = 7; + a12 = 10; + a22 = 1; + a0 = 1; + a18 = 0; + a6 = 0; + return -1; + } else if(((((a4==1)&&((a20==1)&&(((!(a0==1)&&(((input==2)&&((((a18==1)&&(a22==1))&&(a3==8))||(((!(a22==1)&&(a18==1))&&(a3==7))||((a3==7)&&(!(a18==1)&&!(a22==1))))))&&(a12==12)))&&!(a15==1))&&(a6==1))))&&(a5==1))&&(a27==1))){ + a6 = 0; + a22 = 1; + a3 = 7; + a18 = 0; + a0 = 1; + return 26; + } else if((((((a12==11)&&(((a20==1)&&(!(a27==1)&&((((a3==7)&&(!(a6==1)&&(input==6)))&&!(a4==1))&&(a15==1))))&&!(a18==1)))&&!(a0==1))&&(a5==1))&&(a22==1))){ + if((a27==1)){ + a18 = 1; + a0 = 1; + a12 = 8; + a27 = 1; + a6 = 1; + a3 = 4; + }else{ + a12 = 8; + a18 = 1; + a4 = 1; + a27 = 1; + a0 = 1; + a6 = 1; + a3 = 5; + } + return 26; + } else if((((!(a15==1)&&((a20==1)&&((a12==9)&&(!(a0==1)&&(((((!(a4==1)&&((a18==1)&&(a22==1)))&&(a3==4))&&(a6==1))||((!(a6==1)&&((a3==8)&&((a4==1)&&((a18==1)&&!(a22==1)))))||(!(a6==1)&&((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1))))))&&(input==2))))))&&!(a5==1))&&!(a27==1))){ + a15 = 1; + a3 = 7; + a6 = 1; + a22 = 1; + a5 = 1; + a27 = 1; + a4 = 0; + a0 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if((((((a27==1)&&((((a20==1)&&(((a6==1)&&((a3==7)&&((a12==11)&&(input==5))))&&(a0==1)))&&!(a22==1))&&!(a15==1)))&&(a4==1))&&!(a5==1))&&(a18==1))){ + a18 = 0; + a15 = 1; + a4 = 0; + return -1; + } else if((((a12==12)&&((a27==1)&&((a20==1)&&((!(a15==1)&&(((((input==5)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a6==1))&&!(a0==1))&&(a3==8)))&&!(a4==1)))))&&(a5==1))){ + a18 = 1; + a22 = 1; + a15 = 1; + a3 = 6; + a12 = 8; + a4 = 1; + a0 = 1; + return -1; + } else if((((a27==1)&&(((!(a5==1)&&(((a15==1)&&((a20==1)&&(((input==6)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a6==1))))&&(a3==7)))&&!(a0==1))&&(a12==10)))&&(a4==1))){ + a15 = 0; + a12 = 12; + a22 = 1; + a3 = 8; + a0 = 1; + a18 = 1; + return -1; + } else if(((!(a6==1)&&(!(a22==1)&&((((a4==1)&&(((((!(a0==1)&&(input==4))&&(a18==1))&&(a27==1))&&(a15==1))&&(a20==1)))&&(a12==10))&&(a3==4))))&&!(a5==1))){ + a6 = 1; + a0 = 1; + a27 = 0; + a12 = 9; + a18 = 0; + a3 = 8; + return 24; + } else if(((a15==1)&&((a20==1)&&((a0==1)&&((a3==7)&&(((((((input==4)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a12==12))&&!(a5==1))&&(a6==1))&&!(a27==1))&&!(a4==1))))))){ + a4 = 1; + a12 = 10; + a22 = 0; + a27 = 1; + a5 = 1; + a3 = 5; + a18 = 0; + return 21; + } else if((!(a0==1)&&((a6==1)&&((a3==4)&&(!(a5==1)&&(!(a4==1)&&((a27==1)&&((a15==1)&&((a20==1)&&(((input==2)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&(a12==11))))))))))){ + a22 = 1; + a12 = 8; + a0 = 1; + a4 = 1; + a18 = 1; + a5 = 1; + return -1; + } else if(((a4==1)&&((a20==1)&&(((a12==8)&&(((a6==1)&&(!(a0==1)&&(((a3==6)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==5)))&&(a27==1))))&&(a5==1)))&&!(a15==1))))){ + a27 = 0; + a22 = 1; + a0 = 1; + a12 = 10; + a5 = 0; + a3 = 4; + a6 = 0; + a18 = 0; + return 21; + } else if((((!(a18==1)&&((a27==1)&&((a22==1)&&(((a12==9)&&(((a4==1)&&(!(a15==1)&&((a6==1)&&(input==3))))&&!(a0==1)))&&(a5==1)))))&&(a3==6))&&(a20==1))){ + a3 = 7; + a12 = 10; + a22 = 0; + a0 = 1; + return 26; + } else if(((a12==9)&&((a6==1)&&(((a20==1)&&(((a5==1)&&(!(a4==1)&&(!(a27==1)&&((input==1)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a22==1)&&(a18==1))))||((a3==8)&&(!(a18==1)&&(a22==1))))))))&&!(a15==1)))&&(a0==1))))){ + a12 = 12; + a27 = 1; + a3 = 5; + a6 = 0; + a22 = 1; + a18 = 1; + return 26; + } else if((!(a15==1)&&(((((a20==1)&&(((a4==1)&&(((input==1)&&((((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))||((a3==7)&&((a18==1)&&(a22==1)))))&&!(a5==1)))&&(a12==12)))&&!(a0==1))&&!(a6==1))&&(a27==1)))){ + a15 = 1; + a18 = 1; + a22 = 1; + a6 = 1; + a4 = 0; + a12 = 11; + a3 = 7; + return 24; + } else if(((a4==1)&&((a20==1)&&(!(a5==1)&&(((((a6==1)&&((((((a22==1)&&(a18==1))&&(a3==5))||(((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a18==1)&&!(a22==1)))))&&(input==4))&&(a12==8)))&&(a0==1))&&!(a27==1))&&(a15==1)))))){ + a3 = 8; + a15 = 0; + a27 = 1; + a18 = 0; + a5 = 1; + a12 = 12; + a22 = 1; + return 21; + } else if(((a12==12)&&(!(a5==1)&&(!(a15==1)&&((a4==1)&&((a0==1)&&((a27==1)&&(!(a6==1)&&(((a3==4)&&((input==3)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))&&(a20==1)))))))))){ + if((a27==1)){ + a6 = 1; + a3 = 8; + a0 = 0; + a12 = 9; + a5 = 1; + a22 = 0; + a15 = 1; + a18 = 1; + a4 = 0; + }else{ + a12 = 8; + a5 = 1; + a22 = 0; + a18 = 1; + a4 = 0; + a27 = 0; + a6 = 1; + } + return 21; + } else if(((!(a27==1)&&((a20==1)&&(((!(a4==1)&&(((((((a3==6)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==2))&&(a0==1))&&!(a15==1)))&&(a12==11))&&!(a6==1))))&&!(a5==1))){ + a22 = 1; + a12 = 8; + a6 = 1; + a4 = 1; + a5 = 1; + a27 = 1; + a15 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((((a4==1)&&((!(a0==1)&&((((a12==12)&&(((a20==1)&&((input==3)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))&&(a6==1)))&&(a3==8))&&(a27==1)))&&!(a15==1)))&&!(a5==1))){ + if((a5==1)){ + a18 = 0; + a12 = 10; + a27 = 0; + a0 = 1; + a22 = 0; + a4 = 0; + a3 = 5; + }else{ + a12 = 8; + a4 = 0; + a15 = 1; + a3 = 4; + a18 = 0; + a0 = 1; + a5 = 1; + a22 = 0; + } + return 26; + } else if((!(a6==1)&&((a5==1)&&(!(a27==1)&&((a3==6)&&(!(a22==1)&&((a4==1)&&((a0==1)&&(((!(a15==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a12==12))&&(a20==1)))))))))){ + if((a20==1)){ + a22 = 1; + a4 = 0; + a18 = 1; + a6 = 1; + a3 = 8; + a5 = 0; + }else{ + a6 = 1; + a3 = 4; + a15 = 1; + a27 = 1; + a22 = 1; + a18 = 1; + } + return 21; + } else if((!(a6==1)&&(((!(a15==1)&&(((((((a0==1)&&((a12==9)&&(input==3)))&&(a4==1))&&!(a22==1))&&(a5==1))&&!(a27==1))&&(a20==1)))&&(a18==1))&&(a3==8)))){ + a6 = 1; + a22 = 1; + a27 = 1; + a0 = 0; + a3 = 7; + return 26; + } else if(((((a3==6)&&(((!(a4==1)&&((a12==8)&&((((input==2)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a0==1))&&!(a15==1))))&&(a20==1))&&!(a27==1)))&&!(a5==1))&&!(a6==1))){ + a3 = 8; + a18 = 0; + a27 = 1; + a12 = 11; + a22 = 0; + return 26; + } else if((((a0==1)&&((a20==1)&&(((!(a6==1)&&(((a27==1)&&((a12==9)&&((a3==7)&&(((a18==1)||!(a18==1))&&(input==5)))))&&!(a15==1)))&&!(a5==1))&&!(a22==1))))&&(a4==1))){ + a6 = 1; + a0 = 0; + a5 = 1; + a4 = 0; + a18 = 0; + a3 = 8; + a12 = 10; + a22 = 1; + return 24; + } else if(((((!(a6==1)&&(((a12==10)&&((((input==4)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1)))))&&(a27==1))&&!(a15==1)))&&(a5==1)))&&(a20==1))&&(a4==1))&&(a0==1))){ + a22 = 1; + a15 = 1; + a6 = 1; + a4 = 0; + a18 = 0; + a3 = 7; + return -1; + } else if((((a6==1)&&((!(a27==1)&&((!(a18==1)&&((a22==1)&&((((!(a4==1)&&(input==3))&&(a12==9))&&(a5==1))&&(a0==1))))&&(a20==1)))&&!(a15==1)))&&(a3==6))){ + a27 = 1; + a15 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a4 = 1; + return -1; + } else if((!(a18==1)&&(((a27==1)&&(((((((((input==2)&&(a12==11))&&(a15==1))&&(a5==1))&&!(a4==1))&&(a3==4))&&!(a22==1))&&!(a6==1))&&(a0==1)))&&(a20==1)))){ + a6 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((a27==1)&&((((((a0==1)&&((a22==1)&&(((!(a18==1)&&((a20==1)&&(input==6)))&&(a3==4))&&!(a4==1))))&&(a15==1))&&(a6==1))&&!(a5==1))&&(a12==12)))){ + a27 = 0; + a6 = 0; + a5 = 1; + a3 = 7; + return 26; + } else if(((a12==12)&&((a0==1)&&(((a22==1)&&((a6==1)&&((a5==1)&&(!(a15==1)&&((a18==1)&&(!(a27==1)&&((a20==1)&&((a3==6)&&(input==6)))))))))&&!(a4==1))))){ + a4 = 1; + a22 = 0; + a12 = 10; + a5 = 0; + a27 = 1; + return 26; + } else if(((a27==1)&&((a20==1)&&(!(a15==1)&&(!(a5==1)&&((((a22==1)&&((((!(a18==1)&&(input==1))&&!(a6==1))&&(a3==8))&&(a12==8)))&&!(a4==1))&&(a0==1))))))){ + a18 = 1; + a22 = 0; + a3 = 4; + a15 = 1; + a12 = 11; + return 24; + } else if((((a5==1)&&((((((a0==1)&&(!(a4==1)&&(((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==6))&&(a3==6))))&&(a27==1))&&(a20==1))&&(a12==10))&&(a6==1)))&&(a15==1))){ + a27 = 0; + a5 = 0; + a18 = 1; + a12 = 9; + a6 = 0; + a22 = 0; + a3 = 8; + a4 = 1; + return 24; + } else if((!(a5==1)&&(((!(a0==1)&&((a18==1)&&((a15==1)&&((a22==1)&&((a20==1)&&(((a3==5)&&(!(a27==1)&&(input==1)))&&(a12==11)))))))&&(a6==1))&&(a4==1)))){ + a3 = 8; + a22 = 0; + a12 = 9; + a18 = 0; + a15 = 0; + return -1; + } else if(((a20==1)&&(((!(a5==1)&&(((a12==12)&&(((!(a4==1)&&((!(a22==1)&&(input==6))&&!(a0==1)))&&(a27==1))&&(a3==5)))&&!(a15==1)))&&!(a6==1))&&(a18==1)))){ + a3 = 6; + a22 = 1; + a5 = 1; + a6 = 1; + a15 = 1; + a12 = 9; + a4 = 1; + return -1; + } else if(((a12==12)&&(!(a15==1)&&((!(a27==1)&&((a6==1)&&((a3==4)&&(((((input==1)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&(a20==1))&&!(a5==1))&&(a0==1)))))&&!(a4==1))))){ + if((a27==1)){ + a6 = 0; + a18 = 1; + a22 = 0; + }else{ + a27 = 1; + a3 = 8; + a18 = 0; + a12 = 10; + a6 = 0; + a22 = 0; + } + return -1; + } else if(((a3==5)&&((((a0==1)&&((a6==1)&&((a20==1)&&(!(a27==1)&&(((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==2))&&(a15==1))&&!(a5==1))))))&&(a4==1))&&(a12==11)))){ + a18 = 1; + a6 = 0; + a27 = 1; + a22 = 1; + a5 = 1; + return 26; + } else if(((a12==8)&&((a22==1)&&((((((((a6==1)&&((!(a27==1)&&(input==6))&&(a15==1)))&&(a3==4))&&(a5==1))&&!(a0==1))&&(a18==1))&&(a20==1))&&(a4==1))))){ + a27 = 1; + a6 = 0; + a0 = 1; + a18 = 0; + a3 = 7; + return -1; + } else if(((!(a27==1)&&(((a0==1)&&((a4==1)&&(!(a5==1)&&(((a6==1)&&((input==4)&&((((a3==7)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==7)))||((a3==8)&&((a18==1)&&(a22==1))))))&&!(a15==1)))))&&(a12==9)))&&(a20==1))){ + a18 = 0; + a6 = 0; + a5 = 1; + a15 = 1; + a22 = 0; + a3 = 5; + return -1; + } else if(((!(a0==1)&&((a20==1)&&(!(a27==1)&&((((((!(a4==1)&&((a15==1)&&(!(a18==1)&&!(a22==1))))&&(a3==8))&&!(a6==1))||((((!(a15==1)&&((a22==1)&&(a18==1)))&&(a4==1))&&(a3==4))&&(a6==1)))&&(input==6))&&(a12==8)))))&&(a5==1))){ + a22 = 0; + a0 = 1; + a15 = 1; + a3 = 8; + a6 = 1; + a27 = 1; + a4 = 1; + a18 = 0; + return -1; + } else if((!(a5==1)&&(((!(a15==1)&&((a18==1)&&((((a22==1)&&((((a0==1)&&(input==5))&&!(a4==1))&&(a3==8)))&&(a20==1))&&!(a6==1))))&&!(a27==1))&&(a12==9)))){ + if((a15==1)){ + a3 = 5; + a4 = 1; + a5 = 1; + a12 = 10; + a27 = 1; + a15 = 1; + a22 = 0; + a0 = 0; + }else{ + a6 = 1; + a5 = 1; + a12 = 10; + a3 = 4; + } + return 26; + } else if(((((a5==1)&&(((a20==1)&&((a22==1)&&(!(a4==1)&&((a3==8)&&(((!(a6==1)&&(input==6))&&(a12==8))&&(a0==1))))))&&!(a27==1)))&&!(a15==1))&&(a18==1))){ + a18 = 0; + a6 = 1; + a4 = 1; + a27 = 1; + a12 = 10; + a22 = 0; + return 21; + } else if(((a12==12)&&(((((((a20==1)&&((!(a15==1)&&(!(a0==1)&&(((a18==1)||!(a18==1))&&(input==2))))&&!(a22==1)))&&(a3==8))&&(a4==1))&&!(a6==1))&&!(a5==1))&&(a27==1)))){ + if((a15==1)){ + a15 = 1; + a18 = 0; + a3 = 5; + a0 = 1; + }else{ + a22 = 1; + a4 = 0; + a18 = 1; + a12 = 8; + a0 = 1; + a3 = 4; + a15 = 1; + a5 = 1; + a6 = 1; + } + return 21; + } else if((!(a4==1)&&((a3==7)&&((a5==1)&&(((a20==1)&&((a6==1)&&((a27==1)&&((a12==11)&&((((input==6)&&!(a0==1))&&!(a18==1))&&(a15==1))))))&&!(a22==1)))))){ + a18 = 1; + a0 = 1; + a6 = 0; + a12 = 12; + return 24; + } else if(((a27==1)&&(((a20==1)&&(((a0==1)&&(!(a5==1)&&(!(a15==1)&&((a12==12)&&(((input==6)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&!(a4==1))))))&&(a6==1)))&&(a3==7)))){ + a18 = 1; + a22 = 1; + a5 = 1; + a3 = 4; + return 21; + } else if(((a5==1)&&((((((((!(a18==1)&&((!(a15==1)&&(input==6))&&!(a0==1)))&&!(a22==1))&&(a27==1))&&(a12==9))&&(a20==1))&&(a4==1))&&(a3==8))&&(a6==1)))){ + a4 = 0; + a22 = 1; + a12 = 8; + a3 = 4; + a5 = 0; + a0 = 1; + return 24; + } else if((!(a4==1)&&((a27==1)&&(((a6==1)&&(((a15==1)&&(!(a0==1)&&((((((a18==1)&&(a22==1))&&(a3==7))||((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1)))))&&(input==5))&&(a20==1))))&&!(a5==1)))&&(a12==11))))){ + a18 = 0; + a6 = 0; + a0 = 1; + a22 = 0; + a3 = 6; + a27 = 0; + a4 = 1; + return 21; + } else if(((a6==1)&&((a12==10)&&((a0==1)&&(!(a5==1)&&((((((!(a4==1)&&((input==2)&&((a18==1)||!(a18==1))))&&!(a15==1))&&(a3==7))&&!(a27==1))&&(a20==1))&&(a22==1))))))){ + a22 = 0; + a27 = 1; + a12 = 11; + a6 = 0; + a4 = 1; + a3 = 6; + a18 = 1; + return 26; + } else if((((a12==8)&&((a6==1)&&(((a0==1)&&(!(a27==1)&&(!(a15==1)&&((!(a5==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5)))&&(a20==1)))))&&(a3==4))))&&(a4==1))){ + a6 = 0; + a12 = 12; + a4 = 0; + a27 = 1; + a3 = 7; + a18 = 1; + a22 = 1; + return 21; + } else if((((((a20==1)&&((((((a12==9)&&(!(a15==1)&&((input==2)&&(a22==1))))&&(a3==7))&&(a18==1))&&(a5==1))&&!(a6==1)))&&(a4==1))&&!(a27==1))&&!(a0==1))){ + if((a6==1)){ + a12 = 12; + a18 = 0; + a6 = 1; + a3 = 4; + a5 = 0; + a27 = 1; + a15 = 1; + a4 = 0; + }else{ + a4 = 0; + a0 = 1; + a5 = 0; + a12 = 10; + a3 = 4; + } + return -1; + } else if((((((a27==1)&&((a15==1)&&(!(a0==1)&&((a3==5)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==6))&&!(a4==1))&&!(a6==1))))))&&(a5==1))&&(a20==1))&&(a12==8))){ + a4 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + a6 = 1; + a0 = 1; + return -1; + } else if(((a3==6)&&((((a15==1)&&((!(a18==1)&&((a0==1)&&(!(a6==1)&&((a22==1)&&(!(a5==1)&&((input==6)&&(a12==8)))))))&&!(a4==1)))&&(a27==1))&&(a20==1)))){ + a18 = 1; + a5 = 1; + a6 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if(((((((!(a27==1)&&(((a18==1)&&(((a20==1)&&((input==5)&&(a22==1)))&&(a12==11)))&&(a3==6)))&&!(a5==1))&&!(a15==1))&&(a4==1))&&!(a6==1))&&!(a0==1))){ + a6 = 1; + a3 = 7; + a18 = 0; + a0 = 1; + a12 = 8; + a15 = 1; + a4 = 0; + a5 = 1; + a27 = 1; + return -1; + } else if((((((a3==7)&&((a12==11)&&((a4==1)&&((a5==1)&&((((a20==1)&&((a15==1)&&(input==2)))&&!(a22==1))&&(a18==1))))))&&!(a6==1))&&!(a0==1))&&(a27==1))){ + a15 = 0; + a4 = 0; + a12 = 10; + a0 = 1; + a18 = 0; + return 21; + } else if((((!(a15==1)&&((a5==1)&&((a27==1)&&((a20==1)&&((((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==4))&&!(a4==1))&&(a12==10))))))&&!(a6==1))&&!(a0==1))){ + a6 = 1; + a22 = 1; + a15 = 1; + a4 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a0 = 1; + return -1; + } else if(((((a6==1)&&(((a3==5)&&((a15==1)&&(((a20==1)&&((a18==1)&&(((a0==1)&&(input==6))&&!(a27==1))))&&(a12==8))))&&!(a4==1)))&&(a5==1))&&(a22==1))){ + a4 = 1; + a27 = 1; + a3 = 4; + return -1; + } else if((((a5==1)&&(((a12==11)&&((a27==1)&&(!(a15==1)&&(((a0==1)&&((a6==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==3))))&&(a3==7)))))&&(a20==1)))&&!(a4==1))){ + a3 = 4; + a12 = 8; + a18 = 1; + a4 = 1; + a22 = 1; + a15 = 1; + return -1; + } else if(((((a0==1)&&((((a6==1)&&(((a20==1)&&((a27==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a15==1))))&&!(a4==1)))&&(a12==9))&&(a3==5)))&&!(a22==1))&&!(a5==1))){ + a12 = 12; + a5 = 1; + a15 = 0; + a18 = 0; + return 24; + } else if(((((a20==1)&&((a4==1)&&((a27==1)&&(((a12==9)&&(((input==4)&&((((a3==6)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))||((a3==7)&&((a18==1)&&(a22==1)))))&&!(a0==1)))&&(a5==1)))))&&!(a15==1))&&(a6==1))){ + a0 = 1; + a22 = 1; + a15 = 1; + a27 = 0; + a6 = 0; + a12 = 11; + a3 = 7; + a18 = 0; + return 26; + } else if(((!(a4==1)&&((((a20==1)&&((((a0==1)&&(!(a5==1)&&((a12==8)&&((a6==1)&&(input==6)))))&&(a3==8))&&!(a22==1)))&&(a15==1))&&!(a18==1)))&&!(a27==1))){ + a12 = 10; + a27 = 1; + a3 = 5; + a6 = 0; + a22 = 1; + a4 = 1; + return 21; + } else if((((a22==1)&&(!(a4==1)&&(((a18==1)&&(((a20==1)&&((a6==1)&&(!(a0==1)&&((a27==1)&&((a3==5)&&(input==5))))))&&(a12==9)))&&(a5==1))))&&(a15==1))){ + a0 = 1; + a15 = 0; + a22 = 0; + a6 = 0; + a18 = 0; + a12 = 8; + a3 = 7; + a5 = 0; + a27 = 0; + return 21; + } else if(((a5==1)&&(((a22==1)&&((a0==1)&&((!(a6==1)&&((a12==10)&&(((a20==1)&&((((a18==1)||!(a18==1))&&(input==2))&&(a3==4)))&&(a15==1))))&&!(a4==1))))&&!(a27==1)))){ + a18 = 0; + a3 = 5; + a27 = 1; + return 21; + } else if(((a18==1)&&(((a22==1)&&(((a20==1)&&((((a27==1)&&((!(a0==1)&&((input==2)&&(a15==1)))&&(a12==12)))&&(a4==1))&&(a3==7)))&&!(a5==1)))&&(a6==1)))){ + a0 = 1; + a5 = 1; + a12 = 8; + a3 = 8; + return -1; + } else if(((a6==1)&&(((a15==1)&&((a12==9)&&(((a22==1)&&(((a20==1)&&((((input==4)&&!(a0==1))&&(a5==1))&&(a18==1)))&&(a3==5)))&&(a4==1))))&&!(a27==1)))){ + a12 = 10; + a6 = 0; + a3 = 7; + return 26; + } else if(((!(a0==1)&&(!(a4==1)&&((((((a20==1)&&((a6==1)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==2))))&&!(a5==1))&&(a12==10))&&(a15==1))&&(a27==1))))&&(a3==4))){ + a4 = 1; + a22 = 1; + a18 = 1; + a0 = 1; + a5 = 1; + a12 = 8; + return -1; + } else if((((((((!(a0==1)&&((input==2)&&((((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4))))||(!(a6==1)&&((a3==4)&&((a22==1)&&!(a18==1)))))))&&!(a5==1))&&(a20==1))&&(a27==1))&&!(a4==1))&&!(a15==1))&&(a12==11))){ + a6 = 1; + a22 = 0; + a27 = 0; + a3 = 5; + a18 = 0; + a12 = 9; + a0 = 1; + return -1; + } else if((((((((!(a5==1)&&((((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4))))&&(input==5)))&&(a20==1))&&!(a15==1))&&(a27==1))&&(a12==12))&&(a4==1))&&!(a0==1))){ + a3 = 8; + a18 = 1; + a5 = 1; + a12 = 8; + a15 = 1; + a6 = 0; + a22 = 1; + a0 = 1; + return -1; + } else if(((!(a5==1)&&(((((((a4==1)&&(((((a22==1)&&!(a18==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8))))&&(input==2)))&&(a6==1))&&(a20==1))&&!(a15==1))&&(a12==9))&&(a27==1)))&&(a0==1))){ + a12 = 8; + a15 = 1; + a3 = 4; + a5 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((a15==1)&&((a20==1)&&((a5==1)&&(!(a27==1)&&((a3==6)&&((!(a4==1)&&(((((a12==9)&&(input==3))&&(a6==1))&&(a0==1))&&!(a18==1)))&&(a22==1)))))))){ + a18 = 1; + a15 = 0; + a5 = 0; + a27 = 1; + a3 = 7; + a12 = 11; + return 21; + } else if((((a4==1)&&(!(a18==1)&&(!(a22==1)&&((((a15==1)&&((a27==1)&&((!(a6==1)&&((input==2)&&(a20==1)))&&(a12==9))))&&(a3==5))&&!(a0==1)))))&&(a5==1))){ + a27 = 0; + a3 = 7; + a0 = 1; + return 26; + } else if((!(a4==1)&&(((a6==1)&&((a12==11)&&(!(a5==1)&&(((a20==1)&&(!(a0==1)&&((a3==6)&&((input==3)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))))))&&(a27==1)))))&&!(a15==1)))){ + a18 = 0; + a5 = 1; + a15 = 1; + a12 = 10; + a6 = 0; + a22 = 1; + a3 = 8; + a4 = 1; + a0 = 1; + return -1; + } else if((((((a27==1)&&((a6==1)&&(!(a5==1)&&((((input==3)&&((((!(a22==1)&&(a18==1))&&(a3==7))||((a3==7)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==8))))&&!(a0==1))&&(a12==11)))))&&!(a15==1))&&(a20==1))&&!(a4==1))){ + a4 = 1; + a12 = 12; + a5 = 1; + a3 = 7; + a0 = 1; + a15 = 1; + a22 = 1; + a18 = 0; + return 26; + } else if((((a20==1)&&(((((a6==1)&&((!(a0==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==5))&&(a12==11)))&&!(a5==1)))&&(a4==1))&&(a15==1))&&(a3==7)))&&(a27==1))){ + a18 = 0; + a22 = 1; + a5 = 1; + a15 = 0; + a3 = 5; + a0 = 1; + a12 = 10; + return 21; + } else if(((((a0==1)&&((a6==1)&&((a3==5)&&(!(a15==1)&&(((a4==1)&&(!(a27==1)&&((a12==9)&&(((a18==1)||!(a18==1))&&(input==3)))))&&(a5==1))))))&&(a20==1))&&(a22==1))){ + a27 = 1; + a22 = 0; + a15 = 1; + a18 = 0; + a3 = 6; + a5 = 0; + a12 = 11; + return 21; + } else if(((a27==1)&&((((((((a3==8)&&(((a12==11)&&(((a18==1)||!(a18==1))&&(input==6)))&&!(a6==1)))&&(a5==1))&&(a20==1))&&(a4==1))&&!(a0==1))&&!(a22==1))&&!(a15==1)))){ + a22 = 1; + a3 = 5; + a18 = 1; + a0 = 1; + a6 = 1; + a4 = 0; + a12 = 9; + return 26; + } else if(((a20==1)&&(((((a3==5)&&((a4==1)&&((a0==1)&&(!(a22==1)&&(((((a18==1)||!(a18==1))&&(input==6))&&(a12==9))&&(a15==1))))))&&(a27==1))&&(a6==1))&&(a5==1)))){ + a6 = 0; + a3 = 4; + a12 = 11; + a5 = 0; + a15 = 0; + a18 = 1; + a22 = 1; + return 21; + } else if((!(a5==1)&&((a27==1)&&((a12==8)&&((!(a6==1)&&((a20==1)&&((a3==4)&&(!(a4==1)&&((a15==1)&&((input==2)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))))&&!(a0==1)))))){ + a4 = 1; + a12 = 12; + a0 = 1; + a3 = 7; + a22 = 1; + a18 = 1; + return 21; + } else if(((a3==5)&&((a20==1)&&((!(a6==1)&&((a0==1)&&(((a27==1)&&((!(a15==1)&&((input==5)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a12==9)))&&(a4==1))))&&!(a5==1))))){ + a22 = 1; + a12 = 11; + a4 = 0; + a18 = 1; + a15 = 1; + a5 = 1; + a6 = 1; + return 21; + } else if((!(a6==1)&&(!(a15==1)&&((a4==1)&&((a5==1)&&(!(a0==1)&&(((a12==10)&&(((((a3==6)&&(!(a18==1)&&(a22==1)))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a18==1)&&(a22==1)))))&&(input==3))&&!(a27==1)))&&(a20==1)))))))){ + a27 = 1; + a22 = 0; + a3 = 6; + a0 = 1; + a15 = 1; + a12 = 8; + a6 = 1; + a18 = 1; + return 24; + } else if((((a12==8)&&(((!(a27==1)&&((!(a6==1)&&(((input==1)&&(((a3==7)&&((a18==1)&&(a22==1)))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))))&&(a5==1)))&&(a20==1)))&&!(a4==1))&&(a0==1)))&&!(a15==1))){ + a4 = 1; + a18 = 0; + a22 = 0; + a0 = 0; + a5 = 0; + a3 = 8; + a12 = 10; + a15 = 1; + a27 = 1; + return -1; + } else if(((!(a27==1)&&(((((a12==9)&&((a3==4)&&(!(a15==1)&&((a5==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5))))))&&!(a4==1))&&(a20==1))&&!(a6==1)))&&!(a0==1))){ + a6 = 1; + a4 = 1; + a22 = 0; + a27 = 1; + a12 = 8; + a18 = 0; + a0 = 1; + a15 = 1; + a3 = 8; + return -1; + } else if(((a20==1)&&((((a12==8)&&((((!(a6==1)&&(((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a5==1)))&&(a4==1))&&!(a0==1))&&!(a27==1)))&&!(a15==1))&&(a3==8)))){ + a6 = 1; + a4 = 0; + a0 = 1; + a22 = 1; + a27 = 1; + a5 = 1; + a3 = 4; + a18 = 1; + a15 = 1; + return -1; + } else if(((!(a4==1)&&((!(a6==1)&&(((((a22==1)&&(!(a27==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a20==1))))&&!(a15==1))&&!(a5==1))&&(a12==9)))&&(a3==7)))&&!(a0==1))){ + a3 = 5; + a15 = 1; + a6 = 1; + a18 = 1; + a27 = 1; + a12 = 8; + a5 = 1; + a0 = 1; + return -1; + } else if((((a12==11)&&(((a6==1)&&(!(a0==1)&&((a20==1)&&((a3==5)&&(((a18==1)&&((a15==1)&&((a5==1)&&(input==1))))&&!(a22==1))))))&&(a4==1)))&&!(a27==1))){ + a27 = 1; + a18 = 0; + a22 = 1; + a12 = 8; + a3 = 4; + return 21; + } else if((((a4==1)&&((a15==1)&&((!(a18==1)&&(!(a6==1)&&((((!(a0==1)&&((input==5)&&!(a5==1)))&&(a12==9))&&(a22==1))&&!(a27==1))))&&(a3==8))))&&(a20==1))){ + a27 = 1; + a5 = 1; + a0 = 1; + a22 = 0; + a3 = 5; + a6 = 1; + a4 = 0; + a12 = 8; + return 26; + } else if(((a20==1)&&((a15==1)&&((!(a27==1)&&((((a0==1)&&(((input==5)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a18==1)&&(a22==1)))))&&(a12==8)))&&(a5==1))&&!(a6==1)))&&!(a4==1))))){ + a18 = 0; + a4 = 1; + a15 = 0; + a12 = 12; + a22 = 0; + a3 = 8; + a27 = 1; + return -1; + } else if(((a20==1)&&((((!(a5==1)&&(((!(a4==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==2))&&(a15==1)))&&!(a6==1))&&(a3==7)))&&!(a27==1))&&!(a0==1))&&(a12==10)))){ + if((a22==1)){ + a22 = 0; + a12 = 11; + a27 = 1; + a18 = 0; + a0 = 1; + }else{ + a0 = 1; + a22 = 0; + a27 = 1; + a18 = 1; + a3 = 4; + a4 = 1; + a12 = 8; + a5 = 1; + } + return -1; + } else if((((a6==1)&&((a5==1)&&((!(a27==1)&&((a4==1)&&((a3==8)&&((((input==6)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&!(a0==1))&&!(a15==1)))))&&(a12==9))))&&(a20==1))){ + a18 = 1; + a6 = 0; + a3 = 7; + a15 = 1; + a27 = 1; + a4 = 0; + a5 = 0; + a22 = 1; + return 21; + } else if(((a18==1)&&((!(a15==1)&&((a6==1)&&(((a4==1)&&((a12==8)&&((((!(a22==1)&&(input==4))&&(a20==1))&&!(a27==1))&&!(a0==1))))&&(a5==1))))&&(a3==8)))){ + a3 = 7; + a22 = 1; + a27 = 1; + a0 = 1; + a15 = 1; + a18 = 0; + return 26; + } else if((((a3==7)&&((!(a0==1)&&(((!(a15==1)&&(((a5==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==4)))&&(a20==1)))&&!(a27==1))&&(a12==9)))&&!(a6==1)))&&!(a4==1))){ + a27 = 1; + a22 = 1; + a18 = 0; + a15 = 1; + a0 = 1; + a4 = 1; + a12 = 8; + return 21; + } else if(((a5==1)&&((!(a4==1)&&((a0==1)&&(((a20==1)&&(((input==3)&&((!(a6==1)&&((!(a18==1)&&(a22==1))&&(a3==4)))||(((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1)))))))&&(a12==11)))&&!(a15==1))))&&!(a27==1)))){ + a27 = 1; + a4 = 1; + a12 = 9; + a18 = 1; + a22 = 1; + a0 = 0; + a15 = 1; + a6 = 0; + a3 = 8; + return -1; + } else if((((a4==1)&&(!(a0==1)&&((!(a5==1)&&((a15==1)&&((((a3==8)&&((input==2)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&(a20==1))&&(a12==9))))&&!(a6==1))))&&(a27==1))){ + a18 = 0; + a3 = 5; + a5 = 1; + a22 = 0; + a12 = 11; + a6 = 1; + a0 = 1; + return 26; + } else if((((a15==1)&&(((!(a22==1)&&((a3==6)&&(!(a4==1)&&(((((input==6)&&(a5==1))&&!(a0==1))&&!(a6==1))&&(a20==1)))))&&(a18==1))&&(a27==1)))&&(a12==8))){ + if((a4==1)){ + a22 = 1; + a18 = 0; + a4 = 1; + a12 = 9; + a5 = 0; + a3 = 7; + a15 = 0; + }else{ + a0 = 1; + a4 = 1; + a18 = 0; + a5 = 0; + a6 = 1; + a3 = 8; + } + return 24; + } else if((((a4==1)&&((!(a5==1)&&(((!(a27==1)&&(((((input==4)&&!(a0==1))&&(a15==1))&&(a12==9))&&(a20==1)))&&(a6==1))&&(a18==1)))&&(a3==7)))&&(a22==1))){ + if((a18==1)){ + a0 = 1; + a3 = 8; + }else{ + a6 = 0; + a5 = 1; + a12 = 10; + } + return 21; + } else if(((a27==1)&&(!(a0==1)&&((!(a5==1)&&((((a20==1)&&((a18==1)&&(!(a4==1)&&((!(a22==1)&&(input==1))&&(a12==11)))))&&(a15==1))&&(a6==1)))&&(a3==8))))){ + a18 = 0; + a4 = 1; + a3 = 4; + a0 = 1; + return -1; + } else if((((a27==1)&&((((a6==1)&&((a12==8)&&(!(a0==1)&&(!(a4==1)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==5))))))&&(a15==1))&&(a20==1)))&&!(a5==1))){ + a6 = 0; + a3 = 8; + a12 = 11; + a22 = 1; + a0 = 1; + a18 = 0; + a5 = 1; + a15 = 0; + return 26; + } else if((((a15==1)&&(((((!(a22==1)&&((a12==9)&&((a0==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a3==5)))))&&(a20==1))&&!(a4==1))&&(a27==1))&&!(a5==1)))&&(a6==1))){ + a18 = 1; + a27 = 0; + a12 = 8; + a3 = 8; + a6 = 0; + a4 = 1; + return 24; + } else if(((a4==1)&&((a3==7)&&((a12==9)&&((a0==1)&&(!(a6==1)&&(((a20==1)&&(!(a22==1)&&((!(a15==1)&&((input==4)&&((a18==1)||!(a18==1))))&&!(a5==1))))&&(a27==1)))))))){ + a18 = 1; + a15 = 1; + a4 = 0; + a5 = 1; + a22 = 1; + a3 = 8; + a12 = 11; + return 21; + } else if(((((!(a18==1)&&(((((a12==10)&&(((a20==1)&&((input==4)&&(a3==5)))&&(a27==1)))&&(a15==1))&&!(a0==1))&&!(a5==1)))&&!(a4==1))&&!(a6==1))&&!(a22==1))){ + a3 = 8; + a18 = 1; + a0 = 1; + a12 = 8; + a22 = 1; + return 26; + } else if((!(a5==1)&&((a0==1)&&(((a27==1)&&((((input==2)&&((((a3==4)&&(((a22==1)&&!(a18==1))&&!(a4==1)))&&(a6==1))||((((a3==8)&&((a4==1)&&(!(a22==1)&&!(a18==1))))&&!(a6==1))||(((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1)))&&(a6==1)))))&&!(a15==1))&&(a20==1)))&&(a12==11))))){ + a12 = 10; + a5 = 1; + a3 = 5; + a15 = 1; + a0 = 0; + a18 = 1; + a4 = 1; + a6 = 1; + a22 = 0; + return -1; + } else if((((!(a18==1)&&(!(a5==1)&&(!(a4==1)&&((a15==1)&&(((a20==1)&&((a12==11)&&((a22==1)&&((input==3)&&!(a0==1)))))&&(a3==6))))))&&!(a27==1))&&(a6==1))){ + if((a5==1)){ + a5 = 1; + a27 = 1; + a3 = 4; + a0 = 1; + a12 = 10; + }else{ + a3 = 7; + a5 = 1; + a0 = 1; + a4 = 1; + a27 = 1; + a12 = 8; + } + return -1; + } else if(((((a6==1)&&(((a3==6)&&(((((((input==3)&&((a18==1)||!(a18==1)))&&(a15==1))&&!(a0==1))&&(a20==1))&&!(a27==1))&&!(a4==1)))&&!(a22==1)))&&!(a5==1))&&(a12==11))){ + if((a3==4)){ + a27 = 1; + a3 = 5; + a12 = 8; + a0 = 1; + a5 = 1; + a4 = 1; + a18 = 0; + }else{ + a0 = 1; + a12 = 8; + a5 = 1; + a3 = 7; + a18 = 0; + a4 = 1; + a27 = 1; + } + return 26; + } else if(((((a20==1)&&(!(a5==1)&&(((a15==1)&&((a12==10)&&(!(a27==1)&&((a6==1)&&((!(a4==1)&&(input==1))&&(a3==8))))))&&(a0==1))))&&(a22==1))&&!(a18==1))){ + a3 = 4; + a4 = 1; + a5 = 1; + a12 = 9; + return -1; + } else if((!(a27==1)&&((!(a5==1)&&((!(a4==1)&&((((a6==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==4))&&(a3==4)))&&(a15==1))&&(a0==1)))&&(a12==8)))&&(a20==1)))){ + if((a3==6)){ + a18 = 1; + a22 = 1; + a0 = 0; + a27 = 1; + a5 = 1; + a3 = 5; + }else{ + a18 = 0; + a5 = 1; + a3 = 5; + a22 = 0; + a27 = 1; + a12 = 11; + } + return 26; + } else if((((a20==1)&&((!(a0==1)&&((((!(a6==1)&&((a4==1)&&((a12==8)&&((input==3)&&(a22==1)))))&&!(a15==1))&&(a5==1))&&!(a27==1)))&&(a3==6)))&&!(a18==1))){ + a0 = 1; + a3 = 8; + a27 = 1; + a15 = 1; + a18 = 1; + a22 = 0; + return -1; + } else if((((a0==1)&&(((a6==1)&&((a15==1)&&(((((((a3==7)&&(!(a18==1)&&(a22==1)))||(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1)))))&&(input==3))&&!(a4==1))&&(a5==1))&&(a27==1))))&&(a12==10)))&&(a20==1))){ + a22 = 1; + a12 = 8; + a4 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((a4==1)&&((((a6==1)&&(((((a27==1)&&((input==1)&&(((a3==5)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4))))))&&!(a0==1))&&!(a15==1))&&(a20==1)))&&(a5==1))&&(a12==9)))){ + a12 = 8; + a3 = 4; + a0 = 1; + a15 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((a4==1)&&(((((a20==1)&&(!(a6==1)&&((((((input==3)&&!(a18==1))&&!(a5==1))&&(a0==1))&&!(a15==1))&&(a27==1))))&&(a22==1))&&(a12==8))&&(a3==4)))){ + a4 = 0; + a22 = 0; + a18 = 1; + a12 = 12; + a27 = 0; + return 26; + } else if(((a5==1)&&(((((!(a15==1)&&(!(a22==1)&&((a3==6)&&(!(a0==1)&&((a20==1)&&(((a18==1)||!(a18==1))&&(input==4)))))))&&(a6==1))&&!(a4==1))&&(a12==8))&&!(a27==1)))){ + a12 = 11; + a6 = 0; + a18 = 0; + a15 = 1; + a5 = 0; + return -1; + } else if(((a0==1)&&((a12==11)&&(((a4==1)&&((a22==1)&&(!(a15==1)&&(((a6==1)&&(((a3==6)&&(!(a18==1)&&(input==2)))&&(a27==1)))&&(a20==1)))))&&!(a5==1))))){ + a12 = 12; + a4 = 0; + a22 = 0; + a27 = 0; + return 26; + } else if((!(a6==1)&&(((a27==1)&&((a12==9)&&(((!(a5==1)&&(!(a15==1)&&((input==3)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a18==1)&&(a22==1)))))))&&(a4==1))&&(a20==1))))&&(a0==1)))){ + if((a5==1)){ + a18 = 1; + a6 = 1; + a12 = 11; + a22 = 0; + a0 = 0; + a3 = 8; + a5 = 1; + }else{ + a27 = 0; + a22 = 0; + a12 = 12; + a3 = 8; + a18 = 0; + a15 = 1; + } + return 21; + } else if(((!(a15==1)&&((a27==1)&&((a12==9)&&((a18==1)&&((a0==1)&&((!(a22==1)&&((!(a4==1)&&((a20==1)&&(input==6)))&&(a3==5)))&&!(a5==1)))))))&&!(a6==1))){ + if((a3==8)){ + a0 = 0; + a4 = 1; + a12 = 11; + a5 = 1; + a15 = 1; + a3 = 7; + }else{ + a6 = 1; + a15 = 1; + a12 = 11; + a3 = 7; + a4 = 1; + } + return 21; + } else if((((a15==1)&&((a6==1)&&((!(a0==1)&&(((a3==4)&&(!(a4==1)&&(((input==4)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a12==11))))&&(a27==1)))&&(a5==1))))&&(a20==1))){ + a22 = 0; + a12 = 10; + a4 = 1; + a15 = 0; + a18 = 0; + a3 = 5; + a5 = 0; + a0 = 1; + a6 = 0; + return 21; + } else if(((a0==1)&&((a20==1)&&(((!(a5==1)&&((a3==8)&&((a4==1)&&(((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==4))&&(a12==11))&&(a6==1)))))&&!(a27==1))&&(a15==1))))){ + a22 = 0; + a5 = 1; + a3 = 6; + a4 = 0; + a18 = 1; + a12 = 12; + a15 = 0; + a27 = 1; + return -1; + } else if((!(a0==1)&&((a15==1)&&(!(a5==1)&&(((((a20==1)&&(((!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4)))||((((!(a22==1)&&(a18==1))&&(a3==8))&&(a6==1))||(((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))))&&(input==6)))&&(a27==1))&&(a12==9))&&!(a4==1)))))){ + a4 = 1; + a22 = 1; + a0 = 1; + a18 = 1; + a6 = 1; + a5 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((a20==1)&&(((a0==1)&&((((a3==6)&&((((!(a4==1)&&((input==4)&&(a27==1)))&&!(a6==1))&&!(a18==1))&&(a22==1)))&&(a5==1))&&(a12==9)))&&(a15==1)))){ + a15 = 0; + a12 = 12; + a4 = 1; + a6 = 1; + a3 = 5; + a18 = 1; + return 24; + } else if(((((a3==7)&&(((a5==1)&&((a6==1)&&(((a12==9)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==3))&&(a27==1)))&&(a20==1))))&&!(a4==1)))&&(a0==1))&&(a15==1))){ + a22 = 0; + a18 = 1; + a12 = 12; + a5 = 0; + a6 = 0; + a4 = 1; + a3 = 6; + return 21; + } else if((((a4==1)&&((a12==12)&&(((a27==1)&&((!(a15==1)&&(((input==6)&&((((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a18==1)&&!(a22==1))))||((a3==5)&&((a22==1)&&(a18==1)))))&&!(a6==1)))&&(a0==1)))&&(a5==1))))&&(a20==1))){ + a18 = 0; + a15 = 1; + a3 = 6; + a22 = 1; + a4 = 0; + a6 = 1; + return -1; + } else if(((a0==1)&&((a15==1)&&(((!(a4==1)&&((a20==1)&&((((a12==9)&&((a27==1)&&((input==1)&&((a18==1)||!(a18==1)))))&&!(a6==1))&&(a5==1))))&&(a3==7))&&!(a22==1))))){ + a12 = 10; + a6 = 1; + a22 = 1; + a4 = 1; + a18 = 1; + return 21; + } else if(((!(a5==1)&&(!(a27==1)&&(((!(a4==1)&&((a12==8)&&(!(a0==1)&&(((((a3==4)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==4)))))&&(a15==1))&&(a6==1))))&&(a20==1))){ + a27 = 1; + a22 = 0; + a18 = 1; + a4 = 1; + a0 = 1; + a5 = 1; + a3 = 5; + return -1; + } else if(((a5==1)&&(((a6==1)&&((a4==1)&&(((!(a0==1)&&(((a20==1)&&((input==6)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&!(a27==1)))&&(a15==1))&&(a12==8))))&&(a3==4)))){ + a18 = 0; + a22 = 1; + a27 = 1; + a0 = 1; + a3 = 6; + return 26; + } else if(((((!(a4==1)&&(((a3==6)&&(((a15==1)&&(((input==1)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&(a27==1)))&&(a5==1)))&&(a0==1)))&&!(a6==1))&&(a20==1))&&(a12==8))){ + a22 = 0; + a3 = 5; + a18 = 0; + a15 = 0; + a4 = 1; + return 26; + } else if(((((a5==1)&&((a3==5)&&(!(a27==1)&&(((!(a4==1)&&((a6==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3))))&&(a20==1))&&!(a15==1)))))&&(a0==1))&&(a12==11))){ + a27 = 1; + a4 = 1; + a22 = 0; + a15 = 1; + a18 = 1; + a12 = 10; + return 21; + } else if((((a15==1)&&(!(a4==1)&&(((((a0==1)&&(((a12==8)&&((((a18==1)||!(a18==1))&&(input==6))&&(a27==1)))&&(a3==5)))&&(a6==1))&&!(a5==1))&&!(a22==1))))&&(a20==1))){ + a18 = 1; + a6 = 0; + a3 = 8; + a22 = 1; + a5 = 1; + a12 = 10; + return 21; + } else if((((a27==1)&&((a0==1)&&((((a4==1)&&((!(a6==1)&&((a5==1)&&((input==5)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))))&&(a12==11)))&&(a20==1))&&(a15==1))))&&(a3==4))){ + if((a22==1)){ + a3 = 8; + a18 = 0; + a22 = 1; + a27 = 0; + a12 = 12; + a5 = 0; + a4 = 0; + a15 = 0; + }else{ + a22 = 0; + a18 = 0; + a6 = 1; + a5 = 0; + a12 = 10; + a15 = 0; + a27 = 0; + } + return 21; + } else if(((((((a27==1)&&((a18==1)&&((!(a0==1)&&((a22==1)&&(((input==5)&&(a12==10))&&(a3==6))))&&!(a15==1))))&&!(a5==1))&&(a6==1))&&(a4==1))&&(a20==1))){ + a0 = 1; + a3 = 4; + a5 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if(((a4==1)&&((a0==1)&&(((a6==1)&&(((a27==1)&&((a20==1)&&(((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==3))&&!(a5==1))&&(a3==7))))&&(a12==8)))&&!(a15==1))))){ + a22 = 1; + a18 = 0; + a6 = 0; + a3 = 4; + a12 = 10; + return 21; + } else if((!(a6==1)&&(((a0==1)&&(((a4==1)&&((a20==1)&&((a5==1)&&((((((a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a18==1)&&!(a22==1)))))&&(input==5))&&(a12==8)))))&&(a27==1)))&&!(a15==1)))){ + if((a4==1)){ + a0 = 0; + a4 = 0; + a12 = 9; + a18 = 1; + a22 = 0; + a5 = 0; + a3 = 4; + }else{ + a18 = 0; + a22 = 0; + a6 = 1; + a5 = 0; + a3 = 7; + } + return 26; + } else if(((((a20==1)&&(((a12==9)&&((a27==1)&&((input==2)&&((((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1)))&&!(a6==1))||((a6==1)&&((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1)))))))))&&(a5==1)))&&(a0==1))&&(a15==1))){ + if((a12==11)){ + a5 = 0; + a12 = 8; + a18 = 0; + a6 = 0; + a0 = 0; + a3 = 5; + a4 = 0; + a15 = 0; + a22 = 1; + }else{ + a12 = 12; + a4 = 0; + a18 = 0; + a6 = 1; + a22 = 1; + a15 = 0; + a3 = 5; + } + return 26; + } else if((((((a12==10)&&((a27==1)&&((!(a4==1)&&(((input==5)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8))))&&(a20==1)))&&!(a6==1))))&&!(a5==1))&&!(a15==1))&&!(a0==1))){ + a6 = 1; + a0 = 1; + a3 = 6; + a5 = 1; + a18 = 1; + a22 = 0; + return -1; + } else if(((a15==1)&&(((a12==12)&&((((((a20==1)&&((input==1)&&((((a22==1)&&!(a18==1))&&(a3==5))||(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1)))))))&&(a27==1))&&!(a4==1))&&!(a6==1))&&(a0==1)))&&!(a5==1)))){ + a4 = 1; + a22 = 0; + a18 = 0; + a3 = 8; + a5 = 1; + return 24; + } else if((((!(a4==1)&&((a3==8)&&((((((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==6))&&(a12==8))&&(a27==1))&&(a20==1))&&!(a6==1))&&(a5==1))))&&(a15==1))&&(a0==1))){ + a6 = 1; + a15 = 0; + a3 = 5; + a22 = 0; + a18 = 1; + return 26; + } else if((!(a27==1)&&(!(a5==1)&&(((a6==1)&&((a20==1)&&((a0==1)&&(((a12==10)&&((!(a22==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a3==4)))&&(a15==1)))))&&!(a4==1))))){ + a18 = 0; + a3 = 5; + a27 = 1; + a6 = 0; + return 21; + } else if((!(a27==1)&&((((!(a4==1)&&(!(a0==1)&&(((a20==1)&&((input==4)&&(((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==5)))))&&(a15==1))))&&(a6==1))&&!(a5==1))&&(a12==10)))){ + a0 = 1; + a18 = 0; + a22 = 1; + a6 = 0; + a27 = 1; + a12 = 12; + a15 = 0; + a4 = 1; + a3 = 8; + return -1; + } else if((!(a5==1)&&((!(a6==1)&&((a3==6)&&((a27==1)&&(((a15==1)&&((a12==12)&&(((input==3)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&(a20==1))))&&!(a0==1)))))&&(a4==1)))){ + if((a20==1)){ + a5 = 1; + a3 = 7; + a6 = 1; + a22 = 0; + a18 = 0; + a0 = 1; + a12 = 8; + }else{ + a22 = 0; + a5 = 1; + a27 = 0; + a12 = 8; + a3 = 5; + a18 = 1; + a4 = 0; + a15 = 0; + } + return -1; + } else if(((a15==1)&&(((a0==1)&&(((a3==7)&&((a22==1)&&((a20==1)&&(((a5==1)&&((((a18==1)||!(a18==1))&&(input==6))&&!(a6==1)))&&!(a4==1)))))&&(a27==1)))&&(a12==9)))){ + a4 = 1; + a0 = 0; + a5 = 0; + a18 = 1; + a3 = 6; + a12 = 10; + return 26; + } else if(((a5==1)&&((a20==1)&&((!(a6==1)&&((a3==8)&&(((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5))&&!(a27==1))&&!(a15==1))&&(a12==8))&&!(a0==1))))&&(a4==1))))){ + if((a0==1)){ + a27 = 1; + a4 = 0; + a3 = 4; + a15 = 1; + a22 = 0; + a0 = 1; + a6 = 1; + a18 = 0; + }else{ + a3 = 6; + a6 = 1; + a22 = 1; + a12 = 10; + a0 = 1; + a18 = 1; + a4 = 0; + a27 = 1; + } + return 26; + } else if((((a3==4)&&(!(a22==1)&&(((a15==1)&&(((((((input==3)&&(a12==9))&&!(a0==1))&&!(a4==1))&&!(a5==1))&&!(a27==1))&&!(a18==1)))&&(a6==1))))&&(a20==1))){ + a5 = 1; + a15 = 0; + a0 = 1; + a4 = 1; + a18 = 1; + a22 = 1; + a27 = 1; + a3 = 7; + return -1; + } else if(((a22==1)&&((a0==1)&&((a12==9)&&((a27==1)&&((a6==1)&&(((((((input==5)&&((a18==1)||!(a18==1)))&&!(a15==1))&&(a5==1))&&(a20==1))&&(a3==8))&&(a4==1)))))))){ + a22 = 0; + a0 = 0; + a4 = 0; + a18 = 0; + a5 = 0; + a6 = 0; + return 21; + } else if(((a27==1)&&(((((((((a12==12)&&((a4==1)&&(((a18==1)||!(a18==1))&&(input==3))))&&!(a15==1))&&(a5==1))&&!(a6==1))&&!(a22==1))&&(a3==7))&&(a20==1))&&(a0==1)))){ + a3 = 5; + a18 = 1; + a27 = 0; + a6 = 1; + return 21; + } else if((((!(a4==1)&&(((a5==1)&&(((a15==1)&&(!(a27==1)&&(((((a22==1)&&(a18==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==4))))&&(input==6))))&&(a20==1)))&&(a0==1)))&&(a6==1))&&(a12==11))){ + a3 = 4; + a18 = 0; + a5 = 0; + a22 = 0; + a4 = 1; + a12 = 12; + a15 = 0; + a27 = 1; + return 24; + } else if((((((a0==1)&&((a5==1)&&((((a27==1)&&((a12==10)&&((a4==1)&&((a20==1)&&(input==3)))))&&!(a18==1))&&!(a6==1))))&&!(a22==1))&&(a3==4))&&(a15==1))){ + a4 = 0; + a3 = 5; + a18 = 1; + a12 = 8; + return -1; + } else if(((a12==10)&&((a20==1)&&((a0==1)&&((!(a4==1)&&(!(a5==1)&&((a27==1)&&((a3==4)&&((a18==1)&&(((input==3)&&(a15==1))&&!(a6==1)))))))&&!(a22==1)))))){ + a18 = 0; + a3 = 7; + a5 = 1; + return -1; + } else if(((a12==10)&&(((((a5==1)&&(((a18==1)&&((a15==1)&&((a6==1)&&(((a20==1)&&(input==2))&&(a27==1)))))&&!(a22==1)))&&(a3==7))&&(a0==1))&&!(a4==1)))){ + a22 = 1; + a4 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if((!(a27==1)&&((a6==1)&&((a20==1)&&((a3==6)&&(((!(a4==1)&&(!(a5==1)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==2))&&(a15==1))))&&!(a0==1))&&(a12==10))))))){ + if((a6==1)){ + a22 = 1; + a18 = 0; + a5 = 1; + a6 = 0; + a27 = 1; + a12 = 8; + a0 = 1; + a3 = 5; + a4 = 1; + }else{ + a5 = 1; + a18 = 0; + a0 = 1; + a22 = 0; + a4 = 1; + a3 = 5; + a27 = 1; + a12 = 8; + } + return 26; + } else if(((a3==7)&&(!(a6==1)&&(((((a12==10)&&((((a27==1)&&((input==6)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&(a0==1))&&(a15==1)))&&(a20==1))&&(a4==1))&&!(a5==1))))){ + a18 = 1; + a12 = 11; + a3 = 8; + a22 = 1; + return 26; + } else if(((((a12==9)&&((a15==1)&&(((a3==6)&&((a18==1)&&((a5==1)&&(((a4==1)&&((input==1)&&(a6==1)))&&(a0==1)))))&&(a20==1))))&&!(a27==1))&&(a22==1))){ + a15 = 0; + a18 = 0; + a4 = 0; + a3 = 7; + a6 = 0; + a5 = 0; + a22 = 0; + return 26; + } else if(((a12==11)&&((a4==1)&&(((a15==1)&&((!(a0==1)&&(!(a27==1)&&((a20==1)&&((input==6)&&((((a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==7))))))))&&(a5==1)))&&(a6==1))))){ + a27 = 1; + a3 = 6; + a4 = 0; + a22 = 0; + a12 = 8; + a0 = 1; + a18 = 0; + return 26; + } else if(((a20==1)&&(((a3==4)&&((a5==1)&&(((a4==1)&&((((a12==9)&&((a6==1)&&((input==2)&&((a18==1)||!(a18==1)))))&&(a22==1))&&!(a0==1)))&&(a27==1))))&&!(a15==1)))){ + a0 = 1; + a12 = 10; + a3 = 6; + a18 = 0; + a22 = 0; + a4 = 0; + a5 = 0; + return 26; + } else if(((a5==1)&&(!(a0==1)&&(((a12==8)&&((a3==4)&&((((a15==1)&&(!(a6==1)&&((input==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))))&&!(a27==1))&&(a20==1))))&&(a4==1))))){ + a3 = 8; + a18 = 0; + a5 = 0; + a27 = 1; + a22 = 1; + return 26; + } else if((((a12==9)&&((a15==1)&&((a0==1)&&((a20==1)&&(((a27==1)&&(!(a5==1)&&((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a4==1))))&&(a6==1))))))&&(a3==8))){ + a5 = 1; + a18 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + return -1; + } else if((((a0==1)&&((!(a15==1)&&((((!(a5==1)&&((a20==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5))))&&(a6==1))&&(a12==12))&&(a4==1)))&&!(a27==1)))&&(a3==7))){ + a22 = 0; + a3 = 6; + a12 = 10; + a27 = 1; + a18 = 0; + a6 = 0; + return 21; + } else if((!(a15==1)&&((a20==1)&&(!(a0==1)&&(!(a27==1)&&(((((input==2)&&((((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1))||((((a3==8)&&((a18==1)&&!(a22==1)))&&(a6==1))||((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8))))))&&(a5==1))&&!(a4==1))&&(a12==11))))))){ + a18 = 1; + a6 = 0; + a0 = 1; + a3 = 7; + a22 = 1; + a12 = 8; + a15 = 1; + return 24; + } else if((!(a4==1)&&((a12==9)&&(((a20==1)&&(!(a27==1)&&((a5==1)&&((a6==1)&&(!(a15==1)&&(((input==5)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&!(a0==1)))))))&&(a3==7))))){ + a15 = 1; + a22 = 0; + a12 = 11; + a27 = 1; + a0 = 1; + a3 = 8; + a18 = 1; + return -1; + } else if(((((a20==1)&&((a5==1)&&((!(a4==1)&&(((a0==1)&&((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==1))&&(a27==1)))&&(a6==1)))&&(a12==10))))&&(a3==5))&&!(a15==1))){ + a18 = 1; + a22 = 0; + a3 = 6; + a4 = 1; + a5 = 0; + return 21; + } else if(((a6==1)&&(((!(a5==1)&&(!(a18==1)&&((a15==1)&&((!(a4==1)&&((a27==1)&&(((input==5)&&(a12==9))&&(a22==1))))&&(a3==8)))))&&(a20==1))&&!(a0==1)))){ + a4 = 1; + a12 = 8; + a0 = 1; + a3 = 4; + a18 = 1; + a5 = 1; + return -1; + } else if(((((a20==1)&&(!(a0==1)&&(!(a27==1)&&((((a5==1)&&((a6==1)&&((a12==9)&&((input==6)&&((a18==1)||!(a18==1))))))&&(a3==4))&&(a4==1)))))&&!(a22==1))&&(a15==1))){ + if((a0==1)){ + a5 = 0; + a18 = 0; + a12 = 10; + a3 = 8; + a4 = 0; + a6 = 0; + }else{ + a0 = 1; + a27 = 1; + a18 = 1; + a4 = 0; + a3 = 7; + a12 = 8; + } + return 21; + } else if(((((a6==1)&&(((((a27==1)&&((((((a18==1)&&(a22==1))&&(a3==5))||(((!(a22==1)&&(a18==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4))))&&(input==5))&&!(a15==1)))&&(a0==1))&&(a20==1))&&(a12==9)))&&!(a4==1))&&!(a5==1))){ + a5 = 1; + a3 = 4; + a18 = 0; + a22 = 0; + a6 = 0; + a15 = 1; + a0 = 0; + return 21; + } else if((!(a0==1)&&((((a4==1)&&((((((((input==4)&&(a12==8))&&!(a27==1))&&(a15==1))&&(a18==1))&&(a20==1))&&(a3==4))&&(a5==1)))&&(a6==1))&&(a22==1)))){ + if((a0==1)){ + a18 = 0; + a3 = 6; + a0 = 1; + a22 = 0; + a6 = 0; + a27 = 1; + }else{ + a0 = 1; + a3 = 8; + a22 = 0; + a18 = 0; + a27 = 1; + a4 = 0; + } + return -1; + } else if(((a3==5)&&((!(a5==1)&&(((((!(a15==1)&&((a27==1)&&((input==5)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))&&(a20==1))&&!(a0==1))&&!(a6==1))&&!(a4==1)))&&(a12==10)))){ + a12 = 8; + a6 = 1; + a0 = 1; + a5 = 1; + a3 = 4; + a15 = 1; + a18 = 1; + a4 = 1; + a22 = 1; + return -1; + } else if((!(a6==1)&&(!(a15==1)&&(((a3==6)&&((((((a20==1)&&((a27==1)&&(((a18==1)||!(a18==1))&&(input==1))))&&!(a0==1))&&!(a4==1))&&!(a5==1))&&!(a22==1)))&&(a12==11))))){ + a12 = 9; + a18 = 0; + a0 = 1; + a22 = 1; + a4 = 1; + a6 = 1; + return 21; + } else if(((a20==1)&&((!(a27==1)&&((a22==1)&&(((a5==1)&&((a12==11)&&(((((input==4)&&!(a0==1))&&(a18==1))&&(a4==1))&&(a3==4))))&&!(a15==1))))&&(a6==1)))){ + if((a12==11)){ + a27 = 1; + a4 = 0; + a0 = 1; + a12 = 10; + a15 = 1; + a5 = 0; + a3 = 8; + }else{ + a15 = 1; + a3 = 6; + a27 = 1; + a12 = 8; + a0 = 1; + a18 = 0; + } + return 21; + } else if(((a27==1)&&(((((!(a6==1)&&(((a3==8)&&((a5==1)&&((((a18==1)||!(a18==1))&&(input==3))&&(a20==1))))&&(a0==1)))&&(a15==1))&&(a12==12))&&!(a22==1))&&(a4==1)))){ + if((a5==1)){ + a18 = 1; + a3 = 7; + a5 = 0; + a4 = 0; + a22 = 1; + a27 = 0; + }else{ + a3 = 5; + a12 = 10; + a18 = 1; + a22 = 1; + } + return -1; + } else if(((!(a0==1)&&((a12==10)&&((((a22==1)&&(((((a6==1)&&((input==1)&&(a20==1)))&&!(a27==1))&&!(a5==1))&&(a4==1)))&&(a3==6))&&!(a15==1))))&&(a18==1))){ + a3 = 8; + a0 = 1; + a15 = 1; + a6 = 0; + a18 = 0; + a12 = 8; + a27 = 1; + a5 = 1; + return -1; + } else if((!(a5==1)&&(((a3==7)&&(!(a0==1)&&((a4==1)&&((a15==1)&&(((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4))&&(a12==8))&&!(a6==1))&&(a27==1))))))&&(a20==1)))){ + a22 = 0; + a12 = 10; + a5 = 1; + a3 = 4; + a18 = 0; + a0 = 1; + return -1; + } else if(((a27==1)&&((a12==8)&&(!(a4==1)&&(((a20==1)&&(((!(a0==1)&&(((input==3)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a3==8)))&&(a5==1))&&(a15==1)))&&!(a6==1)))))){ + a22 = 0; + a15 = 0; + a18 = 0; + a12 = 11; + a5 = 0; + return 26; + } else if(((((a22==1)&&((a0==1)&&((a20==1)&&((a18==1)&&(!(a4==1)&&(!(a5==1)&&((((a12==11)&&(input==4))&&(a15==1))&&!(a27==1))))))))&&(a6==1))&&(a3==5))){ + a12 = 8; + a3 = 4; + a5 = 1; + a27 = 1; + a4 = 1; + return -1; + } else if((((((a27==1)&&((a3==6)&&(((((a15==1)&&((a4==1)&&((input==1)&&!(a0==1))))&&(a20==1))&&!(a18==1))&&(a22==1))))&&!(a6==1))&&(a12==8))&&(a5==1))){ + a5 = 0; + a3 = 8; + a27 = 0; + a15 = 0; + a18 = 1; + a12 = 11; + a0 = 1; + return 21; + } else if(((a15==1)&&(((a5==1)&&(!(a0==1)&&((((a27==1)&&(((a3==6)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==6)))&&(a6==1)))&&(a4==1))&&(a12==11))))&&(a20==1)))){ + a18 = 1; + a22 = 1; + a0 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((a22==1)&&(!(a0==1)&&((a4==1)&&((a6==1)&&(!(a5==1)&&((((a15==1)&&((a3==4)&&(((input==5)&&(a12==9))&&!(a18==1))))&&(a20==1))&&!(a27==1)))))))){ + a12 = 8; + a5 = 1; + a3 = 8; + a0 = 1; + a27 = 1; + a4 = 0; + return 26; + } else if((((a6==1)&&(!(a15==1)&&((a4==1)&&((!(a0==1)&&((((a20==1)&&((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a5==1))&&(a3==8)))&&(a12==10)))))&&(a27==1))){ + a12 = 12; + a15 = 1; + a0 = 1; + a18 = 1; + a22 = 1; + a27 = 0; + return 26; + } else if(((a5==1)&&((!(a18==1)&&(!(a22==1)&&((a12==8)&&((a20==1)&&((a0==1)&&(((!(a6==1)&&((a15==1)&&(input==5)))&&!(a27==1))&&(a3==6)))))))&&(a4==1)))){ + a5 = 0; + a18 = 1; + a15 = 0; + a6 = 1; + a3 = 8; + a27 = 1; + a12 = 12; + return 21; + } else if((((a0==1)&&((a15==1)&&(!(a6==1)&&(((((a5==1)&&(!(a4==1)&&((input==2)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&(a12==11))&&(a27==1))&&(a3==4)))))&&(a20==1))){ + a4 = 1; + a22 = 1; + a6 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if((((a15==1)&&((!(a4==1)&&((a12==9)&&(((a0==1)&&((((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1)))&&(input==4)))&&(a27==1))))&&(a20==1)))&&(a5==1))){ + if((a22==1)){ + a22 = 0; + a4 = 1; + a18 = 0; + a5 = 0; + a3 = 4; + a6 = 0; + a0 = 0; + a12 = 8; + }else{ + a5 = 0; + a12 = 8; + a4 = 1; + a22 = 0; + a18 = 0; + a3 = 5; + a0 = 0; + a6 = 0; + } + return 21; + } else if((((a20==1)&&((a4==1)&&(((((a6==1)&&(!(a27==1)&&(((((a18==1)||!(a18==1))&&(input==6))&&(a3==6))&&!(a5==1))))&&!(a0==1))&&(a22==1))&&(a15==1))))&&(a12==10))){ + a27 = 1; + a12 = 8; + a3 = 7; + a18 = 1; + a22 = 0; + a5 = 1; + a0 = 1; + a6 = 0; + return 21; + } else if(((((((((((((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8))&&!(a6==1))||((a6==1)&&((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1))))))&&(input==4))&&(a5==1))&&(a12==10))&&!(a15==1))&&(a0==1))&&!(a27==1))&&(a20==1))){ + a22 = 1; + a6 = 1; + a27 = 1; + a4 = 1; + a3 = 4; + a15 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if(((((a4==1)&&(((a22==1)&&((((a0==1)&&((!(a27==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a5==1)))&&(a6==1))&&(a12==10)))&&(a15==1)))&&(a20==1))&&(a3==4))){ + a27 = 1; + a5 = 0; + a18 = 1; + a3 = 7; + a4 = 0; + return 26; + } else if(((a12==12)&&((a15==1)&&((a27==1)&&(((((((a3==6)&&(!(a4==1)&&((a22==1)&&(input==3))))&&(a20==1))&&(a18==1))&&(a5==1))&&!(a0==1))&&!(a6==1)))))){ + a3 = 4; + a0 = 1; + return 26; + } else if((!(a5==1)&&((!(a27==1)&&(((a15==1)&&(!(a0==1)&&(((a3==7)&&((a20==1)&&((a4==1)&&((input==1)&&!(a6==1)))))&&(a18==1))))&&(a12==11)))&&!(a22==1)))){ + a18 = 0; + a5 = 1; + a3 = 4; + a4 = 0; + a6 = 1; + a12 = 8; + a22 = 1; + a0 = 1; + a27 = 1; + return -1; + } else if((((((a15==1)&&((a22==1)&&(((((a18==1)&&((a3==4)&&((input==4)&&(a20==1))))&&(a6==1))&&(a27==1))&&!(a5==1))))&&(a0==1))&&(a12==9))&&(a4==1))){ + if((a3==6)){ + a3 = 5; + a12 = 10; + a5 = 1; + a6 = 0; + a0 = 0; + }else{ + a5 = 1; + a12 = 8; + a18 = 0; + a6 = 0; + a3 = 8; + a4 = 0; + a27 = 0; + } + return 21; + } else if(((((((a3==8)&&(!(a27==1)&&((a6==1)&&(((((input==2)&&(a0==1))&&!(a15==1))&&(a20==1))&&(a4==1)))))&&!(a18==1))&&(a22==1))&&!(a5==1))&&(a12==12))){ + a22 = 0; + a12 = 11; + a18 = 1; + a27 = 1; + a4 = 0; + a6 = 0; + a5 = 1; + return 21; + } else if((((((a0==1)&&((((((input==2)&&(((a3==8)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7)))))&&(a6==1))&&(a15==1))&&(a20==1))&&!(a27==1)))&&!(a5==1))&&(a4==1))&&(a12==10))){ + a15 = 0; + a12 = 12; + a27 = 1; + a18 = 1; + a6 = 0; + a3 = 4; + a22 = 0; + return -1; + } else if((((a12==8)&&((a0==1)&&(!(a6==1)&&((a15==1)&&((a3==5)&&(((((input==3)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&(a5==1))&&(a27==1))&&!(a4==1)))))))&&(a20==1))){ + a4 = 1; + a22 = 1; + a18 = 0; + a3 = 8; + a15 = 0; + a6 = 1; + return 24; + } else if(((a0==1)&&((a20==1)&&(!(a5==1)&&((a12==12)&&((a15==1)&&(((a27==1)&&((a6==1)&&((input==2)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6))))))&&!(a4==1)))))))){ + a15 = 0; + a27 = 0; + a18 = 0; + a4 = 1; + a3 = 8; + a12 = 10; + a22 = 1; + return 26; + } else if(((a20==1)&&(((((a12==10)&&((a6==1)&&((a5==1)&&((((((a22==1)&&!(a18==1))&&(a3==7))||(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1)))))&&(input==5))&&(a27==1)))))&&(a0==1))&&!(a4==1))&&(a15==1)))){ + a27 = 0; + a3 = 4; + a5 = 0; + a18 = 1; + a12 = 9; + a22 = 0; + return 24; + } else if(((a0==1)&&((((a5==1)&&((a27==1)&&((((a3==4)&&(((input==1)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a12==8)))&&!(a4==1))&&!(a15==1))))&&!(a6==1))&&(a20==1)))){ + a12 = 9; + a3 = 8; + a22 = 0; + a6 = 1; + a18 = 1; + return 21; + } else if(((a20==1)&&(!(a27==1)&&((a3==5)&&((a6==1)&&((((a18==1)&&((a0==1)&&(!(a22==1)&&(((a12==12)&&(input==6))&&!(a4==1)))))&&!(a5==1))&&(a15==1))))))){ + a3 = 4; + a22 = 1; + a12 = 8; + a27 = 1; + a5 = 1; + a4 = 1; + return -1; + } else if((((a4==1)&&((a12==12)&&(((a18==1)&&(((a0==1)&&((((a3==6)&&((input==1)&&!(a5==1)))&&(a15==1))&&!(a22==1)))&&(a27==1)))&&(a20==1))))&&!(a6==1))){ + a18 = 0; + a12 = 11; + a4 = 0; + return -1; + } else if(((a20==1)&&((!(a15==1)&&((((a0==1)&&((!(a6==1)&&(((((a3==5)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==5)))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==3)))&&(a12==8)))&&!(a4==1))&&!(a5==1)))&&(a27==1)))){ + a22 = 0; + a15 = 1; + a6 = 1; + a4 = 1; + a12 = 11; + a3 = 6; + a18 = 0; + return 24; + } else if(((a5==1)&&((!(a27==1)&&((a12==12)&&(((a3==5)&&((((a0==1)&&((input==6)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))&&(a20==1))&&!(a15==1)))&&(a6==1))))&&(a4==1)))){ + a18 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + a15 = 1; + a27 = 1; + return -1; + } else if(((!(a4==1)&&(!(a15==1)&&(((a12==11)&&(!(a5==1)&&(((((((a3==6)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==3))&&(a0==1))&&!(a6==1))))&&(a20==1))))&&!(a27==1))){ + a3 = 5; + a22 = 0; + a15 = 1; + a6 = 1; + a18 = 1; + a27 = 1; + a5 = 1; + return -1; + } else if(((a12==10)&&((a27==1)&&((a15==1)&&((a0==1)&&((((a6==1)&&((a20==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a3==4))))&&(a5==1))&&(a4==1))))))){ + a18 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if(((((a27==1)&&(((((a4==1)&&(((a20==1)&&((input==5)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))&&(a15==1)))&&(a6==1))&&(a12==12))&&(a0==1)))&&(a3==4))&&!(a5==1))){ + a22 = 1; + a3 = 7; + a12 = 10; + a6 = 0; + a18 = 0; + a15 = 0; + return -1; + } else if((((!(a6==1)&&(((((!(a4==1)&&((input==1)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1))))))&&!(a27==1))&&(a0==1))&&!(a15==1))&&!(a5==1)))&&(a20==1))&&(a12==12))){ + a15 = 1; + a27 = 1; + a4 = 1; + a6 = 1; + a5 = 1; + a18 = 0; + a22 = 0; + a3 = 8; + return 26; + } else if((!(a0==1)&&((((!(a15==1)&&((a4==1)&&((a27==1)&&((((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7)))||(((a22==1)&&!(a18==1))&&(a3==7)))&&(input==1))&&(a20==1)))))&&(a12==11))&&(a6==1))&&(a5==1)))){ + a0 = 1; + a22 = 1; + a15 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((a5==1)&&((a0==1)&&((!(a15==1)&&(((a3==7)&&(((a20==1)&&(((a22==1)&&((input==2)&&(a27==1)))&&!(a6==1)))&&(a4==1)))&&!(a18==1)))&&(a12==10))))){ + if((a6==1)){ + a27 = 0; + a12 = 12; + a5 = 0; + a6 = 1; + a3 = 5; + }else{ + a12 = 9; + a0 = 0; + a5 = 0; + a22 = 0; + a18 = 1; + a15 = 1; + } + return 21; + } else if((!(a5==1)&&((a6==1)&&(((((!(a4==1)&&((a12==8)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==1))))&&!(a0==1))&&(a15==1))&&(a20==1))&&!(a27==1))))){ + if((a3==7)){ + a18 = 0; + a6 = 0; + a3 = 7; + a22 = 0; + a5 = 1; + a0 = 1; + a4 = 1; + a27 = 1; + }else{ + a3 = 6; + a22 = 1; + a5 = 1; + a18 = 0; + } + return -1; + } else if(((!(a27==1)&&((((a15==1)&&((a4==1)&&((((((input==2)&&(a12==10))&&(a20==1))&&(a3==4))&&!(a6==1))&&(a22==1))))&&(a18==1))&&!(a0==1)))&&!(a5==1))){ + if((a0==1)){ + a3 = 5; + a12 = 8; + a27 = 1; + a5 = 1; + a4 = 0; + a0 = 1; + a6 = 1; + a22 = 0; + }else{ + a0 = 1; + a12 = 8; + a27 = 1; + a3 = 7; + a5 = 1; + } + return -1; + } else if(((a12==11)&&(((a5==1)&&((a22==1)&&(((!(a15==1)&&((a3==8)&&(((!(a18==1)&&(input==2))&&(a27==1))&&(a4==1))))&&!(a0==1))&&(a20==1))))&&!(a6==1)))){ + a5 = 0; + a3 = 7; + a12 = 10; + a6 = 1; + a4 = 0; + a0 = 1; + return -1; + } else if((((((((a12==10)&&((a3==7)&&(((a0==1)&&(((input==2)&&(a4==1))&&!(a18==1)))&&(a22==1))))&&(a20==1))&&!(a5==1))&&(a6==1))&&!(a27==1))&&!(a15==1))){ + a3 = 5; + a6 = 0; + a27 = 1; + a12 = 11; + a0 = 0; + a5 = 1; + return 26; + } else if((!(a15==1)&&(((!(a0==1)&&(!(a6==1)&&(((a5==1)&&((a20==1)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==3))))&&(a12==8))))&&(a27==1))&&(a4==1)))){ + a15 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + a6 = 1; + a0 = 1; + return -1; + } else if((((((a5==1)&&((!(a4==1)&&((a12==12)&&((a22==1)&&(((a15==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a20==1)))))&&(a0==1)))&&(a6==1))&&(a27==1))&&(a3==7))){ + a22 = 0; + a18 = 0; + a4 = 1; + a5 = 0; + a3 = 5; + a12 = 10; + return -1; + } else if(((a12==11)&&((((!(a0==1)&&((((a20==1)&&((((a3==6)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1)))))&&(input==2)))&&(a27==1))&&!(a5==1)))&&!(a4==1))&&!(a6==1))&&!(a15==1)))){ + a3 = 8; + a22 = 0; + a0 = 1; + a18 = 0; + a6 = 1; + return -1; + } else if(((a5==1)&&((a4==1)&&(((a3==7)&&(((a6==1)&&((((a20==1)&&((input==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))))&&(a15==1))&&!(a27==1)))&&(a12==9)))&&!(a0==1))))){ + if((a27==1)){ + a18 = 1; + a27 = 1; + a4 = 0; + a0 = 1; + a12 = 8; + a3 = 5; + a22 = 1; + }else{ + a4 = 0; + a27 = 1; + a3 = 6; + a22 = 1; + a18 = 0; + a0 = 1; + a12 = 8; + } + return -1; + } else if((((!(a15==1)&&((a22==1)&&((a18==1)&&(((((a3==7)&&(((a20==1)&&(input==2))&&!(a6==1)))&&(a12==9))&&!(a4==1))&&!(a0==1)))))&&!(a5==1))&&(a27==1))){ + a3 = 4; + a5 = 1; + a12 = 8; + a4 = 1; + a0 = 1; + a15 = 1; + a6 = 1; + return -1; + } else if(((!(a22==1)&&(((a12==11)&&((a0==1)&&(((a20==1)&&((!(a6==1)&&(!(a5==1)&&(!(a27==1)&&(input==6))))&&(a15==1)))&&(a4==1))))&&(a3==6)))&&!(a18==1))){ + a3 = 8; + a22 = 1; + a5 = 1; + a4 = 0; + a15 = 0; + a27 = 1; + return 21; + } else if(((a6==1)&&((a4==1)&&((((((a3==4)&&(!(a22==1)&&((!(a15==1)&&((a5==1)&&(input==1)))&&(a20==1))))&&(a27==1))&&(a12==12))&&(a18==1))&&(a0==1))))){ + a12 = 8; + a22 = 1; + a15 = 1; + return -1; + } else if((((a15==1)&&(((!(a5==1)&&((a18==1)&&(!(a27==1)&&((a0==1)&&((((input==6)&&!(a22==1))&&(a12==9))&&(a20==1))))))&&(a4==1))&&(a3==8)))&&(a6==1))){ + a27 = 1; + a6 = 0; + a5 = 1; + a12 = 11; + a18 = 0; + return 21; + } else if((((!(a4==1)&&((((a6==1)&&((((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==4))&&!(a0==1))&&(a20==1))&&(a15==1)))&&(a3==6))&&!(a5==1)))&&(a27==1))&&(a12==10))){ + a6 = 0; + a15 = 0; + a12 = 11; + a22 = 0; + a3 = 4; + a4 = 1; + a5 = 1; + a0 = 1; + a18 = 1; + return -1; + } else if((((a27==1)&&((a4==1)&&(!(a0==1)&&(((a20==1)&&(((a6==1)&&(!(a15==1)&&((((a18==1)||!(a18==1))&&(input==6))&&(a12==9))))&&!(a5==1)))&&(a22==1)))))&&(a3==8))){ + a4 = 0; + a18 = 1; + a15 = 1; + a12 = 10; + a3 = 4; + a22 = 0; + return 21; + } else if(((((a12==10)&&(!(a5==1)&&((((a6==1)&&(!(a27==1)&&((input==1)&&(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1)))))))&&(a4==1))&&(a20==1))))&&(a0==1))&&!(a15==1))){ + a22 = 0; + a5 = 1; + a6 = 0; + a27 = 1; + a12 = 11; + a15 = 1; + a3 = 7; + a18 = 1; + return 21; + } else if((!(a6==1)&&((((!(a0==1)&&(((!(a22==1)&&(!(a27==1)&&((((a18==1)||!(a18==1))&&(input==5))&&!(a15==1))))&&(a5==1))&&(a12==9)))&&!(a4==1))&&(a3==6))&&(a20==1)))){ + a15 = 1; + a12 = 8; + a0 = 1; + a4 = 1; + a3 = 4; + a27 = 1; + a18 = 0; + return 21; + } else if((!(a0==1)&&(((a20==1)&&(((a5==1)&&((a15==1)&&((a27==1)&&((a4==1)&&((input==3)&&(((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a22==1)&&(a18==1)))))))))&&(a12==11)))&&!(a6==1)))){ + a6 = 1; + a12 = 8; + a0 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + return -1; + } return calculate_output69(input); + } + + int calculate_output69(int input) { + if(((a20==1)&&((a12==10)&&((a5==1)&&(!(a6==1)&&((!(a0==1)&&((!(a4==1)&&((input==1)&&((((a18==1)&&(a22==1))&&(a3==7))||(((a3==6)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==6))))))&&!(a27==1)))&&(a15==1))))))){ + a5 = 0; + a22 = 1; + a15 = 0; + a18 = 0; + a12 = 12; + a3 = 6; + a6 = 1; + a27 = 1; + return 21; + } else if(((a20==1)&&((!(a0==1)&&((((!(a6==1)&&(((((!(a5==1)&&((a18==1)&&!(a22==1)))&&!(a15==1))&&(a12==10))&&!(a4==1))&&(a3==8)))||(!(a6==1)&&((a3==8)&&(!(a4==1)&&((a12==10)&&((!(a5==1)&&(!(a22==1)&&!(a18==1)))&&!(a15==1)))))))||((a6==1)&&(((a4==1)&&(((a15==1)&&(((a18==1)&&(a22==1))&&(a5==1)))&&(a12==11)))&&(a3==4))))&&(input==1)))&&!(a27==1)))){ + a18 = 1; + a6 = 1; + a0 = 1; + a15 = 1; + a22 = 1; + a4 = 1; + a5 = 1; + a12 = 8; + a3 = 4; + return 26; + } else if((!(a15==1)&&(!(a27==1)&&(!(a18==1)&&(((a12==10)&&((a22==1)&&(((a5==1)&&((!(a0==1)&&((input==5)&&(a3==7)))&&!(a6==1)))&&!(a4==1))))&&(a20==1)))))){ + a15 = 1; + a12 = 8; + a27 = 1; + a4 = 1; + a0 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if((((a6==1)&&(((a5==1)&&((a12==10)&&((((((input==3)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&(a20==1))&&!(a15==1))&&(a27==1))&&(a3==5))))&&(a0==1)))&&!(a4==1))){ + a3 = 4; + a18 = 1; + a15 = 1; + a12 = 8; + a4 = 1; + a22 = 1; + return -1; + } else if((!(a4==1)&&((((a3==8)&&(!(a0==1)&&((!(a5==1)&&((a15==1)&&((a12==8)&&((input==6)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))))&&(a27==1))))&&(a6==1))&&(a20==1)))){ + a22 = 1; + a0 = 1; + a12 = 12; + a6 = 0; + a15 = 0; + a5 = 1; + a18 = 0; + a3 = 6; + a27 = 0; + return 26; + } else if((((a15==1)&&(!(a27==1)&&((!(a5==1)&&((((a12==11)&&((input==2)&&(((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))))&&!(a0==1))&&!(a6==1)))&&(a20==1))))&&!(a4==1))){ + a4 = 1; + a3 = 8; + a22 = 1; + a27 = 1; + a6 = 1; + a12 = 8; + a0 = 1; + a18 = 0; + a5 = 1; + return 24; + } else if(((a12==12)&&(((a5==1)&&((a0==1)&&((!(a4==1)&&((((a20==1)&&((!(a6==1)&&(input==6))&&!(a18==1)))&&(a22==1))&&(a3==4)))&&!(a15==1))))&&(a27==1)))){ + if((a20==1)){ + a15 = 1; + a22 = 0; + a0 = 0; + a3 = 8; + a12 = 8; + }else{ + a27 = 0; + a22 = 0; + a6 = 1; + } + return 21; + } else if((!(a15==1)&&(((a18==1)&&((a3==5)&&((!(a22==1)&&((a12==8)&&((a5==1)&&(((a6==1)&&((input==6)&&(a27==1)))&&!(a4==1)))))&&(a20==1))))&&(a0==1)))){ + a18 = 0; + a6 = 0; + a12 = 9; + a15 = 1; + a3 = 4; + return 24; + } else if((!(a0==1)&&(!(a6==1)&&(!(a27==1)&&((!(a4==1)&&((a12==9)&&((a15==1)&&((a20==1)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==1))))))&&(a5==1)))))){ + if((a4==1)){ + a3 = 4; + a5 = 0; + a22 = 1; + a6 = 1; + a0 = 1; + a4 = 1; + a18 = 1; + a12 = 12; + }else{ + a6 = 1; + a15 = 0; + a0 = 1; + a3 = 6; + a22 = 1; + a18 = 1; + a12 = 10; + } + return 26; + } else if((((a3==8)&&(((((((((input==6)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&!(a6==1))&&!(a15==1))&&(a4==1))&&(a12==11))&&!(a5==1))&&(a0==1))&&(a20==1)))&&(a27==1))){ + if((a22==1)){ + a3 = 5; + a22 = 1; + a18 = 0; + a12 = 9; + a0 = 0; + }else{ + a27 = 0; + a22 = 0; + a3 = 4; + a18 = 0; + } + return 26; + } else if((!(a4==1)&&((a20==1)&&((!(a27==1)&&(!(a15==1)&&((((a5==1)&&((a12==8)&&((((a18==1)||!(a18==1))&&(input==3))&&(a3==6))))&&(a0==1))&&!(a6==1))))&&(a22==1))))){ + a6 = 1; + a18 = 1; + a27 = 1; + a15 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if((!(a0==1)&&((a5==1)&&((((a6==1)&&(((((((a3==7)&&((a22==1)&&!(a18==1)))||(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1)))))&&(input==4))&&(a27==1))&&(a12==11))&&!(a15==1)))&&(a20==1))&&(a4==1))))){ + a15 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + a0 = 1; + a3 = 4; + return -1; + } else if(((a20==1)&&((((((a0==1)&&((input==6)&&((((a3==4)&&(!(a4==1)&&((a22==1)&&!(a18==1))))&&(a6==1))||((!(a6==1)&&((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1))))||(((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))&&(a6==1))))))&&(a12==11))&&!(a5==1))&&!(a15==1))&&(a27==1)))){ + a22 = 1; + a3 = 4; + a18 = 1; + a5 = 1; + a4 = 1; + a15 = 1; + a12 = 8; + a6 = 1; + return -1; + } else if(((!(a27==1)&&(((a15==1)&&((a22==1)&&((a3==4)&&(((a12==11)&&(((((a18==1)||!(a18==1))&&(input==5))&&!(a4==1))&&(a5==1)))&&(a6==1)))))&&(a20==1)))&&(a0==1))){ + a27 = 1; + a18 = 1; + a4 = 1; + a12 = 8; + return -1; + } else if(((a27==1)&&(((((a0==1)&&(!(a15==1)&&((a12==11)&&((input==4)&&((((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||(!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1)))))||(!(a6==1)&&((!(a18==1)&&(a22==1))&&(a3==4))))))))&&!(a4==1))&&(a20==1))&&!(a5==1)))){ + if((a12==10)){ + a12 = 12; + a3 = 8; + a15 = 1; + a6 = 1; + a18 = 1; + a5 = 1; + a22 = 1; + a0 = 0; + }else{ + a3 = 5; + a18 = 1; + a22 = 1; + a12 = 10; + a6 = 1; + } + return -1; + } else if((!(a4==1)&&(((a15==1)&&(((a0==1)&&((((a6==1)&&((input==6)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))))&&(a20==1))&&(a27==1)))&&(a12==12)))&&(a5==1)))){ + a4 = 1; + a22 = 0; + a6 = 0; + a15 = 0; + a3 = 4; + a18 = 0; + a12 = 11; + return -1; + } else if(((a3==5)&&(!(a15==1)&&(!(a27==1)&&((!(a0==1)&&((a5==1)&&(!(a6==1)&&(((a20==1)&&((input==6)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))&&(a4==1)))))&&(a12==10)))))){ + a6 = 1; + a0 = 1; + a27 = 1; + a18 = 0; + a12 = 8; + a4 = 0; + a15 = 1; + a22 = 0; + return 21; + } else if(((a12==8)&&((a4==1)&&(((a5==1)&&(!(a22==1)&&((!(a6==1)&&(((a20==1)&&(((a27==1)&&(input==5))&&(a15==1)))&&(a18==1)))&&!(a0==1))))&&(a3==8))))){ + a0 = 1; + a22 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if((((!(a5==1)&&((!(a6==1)&&((((((input==6)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a20==1))&&(a12==12))&&(a0==1))&&(a3==5)))&&!(a15==1)))&&!(a27==1))&&(a4==1))){ + a22 = 1; + a3 = 4; + a0 = 0; + a12 = 8; + a18 = 0; + a5 = 1; + a27 = 1; + a6 = 1; + return 26; + } else if(((!(a0==1)&&((!(a15==1)&&(!(a6==1)&&((((((a5==1)&&((input==3)&&(a12==8)))&&(a3==8))&&!(a22==1))&&(a4==1))&&(a20==1))))&&!(a18==1)))&&(a27==1))){ + a0 = 1; + a22 = 1; + a4 = 0; + a15 = 1; + a3 = 5; + return -1; + } else if((((!(a5==1)&&((a20==1)&&((a0==1)&&((a27==1)&&(!(a15==1)&&((a12==12)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==4))&&!(a4==1))))))))&&(a6==1))&&(a3==8))){ + a5 = 1; + a6 = 0; + a22 = 1; + a12 = 11; + a18 = 0; + a4 = 1; + return 24; + } else if(((a27==1)&&(((((((!(a4==1)&&((input==1)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))||((!(a18==1)&&(a22==1))&&(a3==7)))))&&(a0==1))&&!(a6==1))&&!(a15==1))&&(a12==11))&&(a20==1))&&(a5==1)))){ + a22 = 0; + a4 = 1; + a3 = 6; + a18 = 0; + a12 = 12; + return 26; + } else if(((!(a22==1)&&(!(a6==1)&&(!(a4==1)&&((((a5==1)&&((((a27==1)&&((a18==1)&&(input==5)))&&(a3==7))&&(a12==9)))&&!(a15==1))&&(a20==1)))))&&(a0==1))){ + a12 = 8; + a3 = 4; + a6 = 1; + a4 = 1; + a22 = 1; + a15 = 1; + return -1; + } else if(((a15==1)&&((!(a27==1)&&((((((!(a6==1)&&(!(a5==1)&&((input==5)&&(a3==8))))&&!(a4==1))&&!(a22==1))&&(a12==10))&&!(a18==1))&&!(a0==1)))&&(a20==1)))){ + a22 = 1; + a5 = 1; + a4 = 1; + a18 = 1; + a3 = 6; + return 21; + } else if((!(a15==1)&&(!(a5==1)&&(!(a27==1)&&((a12==10)&&((((((a3==4)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==3)))&&!(a4==1))&&(a20==1))&&!(a0==1))&&!(a6==1))))))){ + a18 = 0; + a12 = 12; + a15 = 1; + a4 = 1; + a27 = 1; + a22 = 1; + a6 = 1; + return -1; + } else if(((((((((a22==1)&&((((a20==1)&&((a15==1)&&(input==6)))&&(a18==1))&&!(a6==1)))&&(a3==4))&&!(a4==1))&&!(a27==1))&&(a5==1))&&(a12==11))&&!(a0==1))){ + a18 = 0; + a15 = 0; + a3 = 8; + a4 = 1; + a12 = 12; + a22 = 0; + a5 = 0; + a0 = 1; + return 26; + } else if((!(a5==1)&&((a27==1)&&((((a20==1)&&(((a12==11)&&(((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==4))&&(a4==1))&&(a0==1)))&&!(a15==1)))&&!(a6==1))&&(a3==4))))){ + a22 = 1; + a18 = 0; + a6 = 1; + a3 = 5; + a27 = 0; + return 26; + } else if((((a27==1)&&((a12==12)&&((!(a18==1)&&((a20==1)&&((((a3==8)&&((a15==1)&&((input==6)&&!(a22==1))))&&!(a4==1))&&!(a5==1))))&&!(a0==1))))&&!(a6==1))){ + if((a18==1)){ + a6 = 1; + a12 = 8; + a0 = 1; + a5 = 1; + a3 = 5; + }else{ + a12 = 8; + a6 = 1; + a5 = 1; + a0 = 1; + a3 = 5; + a22 = 1; + a4 = 1; + } + return -1; + } else if((((!(a0==1)&&(!(a15==1)&&((((((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==3))&&!(a6==1))&&(a3==5))&&(a20==1))&&(a5==1))&&(a12==11))))&&(a27==1))&&(a4==1))){ + a3 = 6; + a15 = 1; + a18 = 0; + a0 = 1; + a12 = 10; + a22 = 0; + return -1; + } else if((((((!(a0==1)&&((a4==1)&&((a27==1)&&(((input==1)&&((((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==5))))&&(a5==1)))))&&!(a6==1))&&(a12==10))&&(a20==1))&&(a15==1))){ + a15 = 0; + a0 = 1; + a18 = 0; + a5 = 0; + a22 = 1; + a3 = 7; + return 21; + } else if((((((a12==8)&&((a4==1)&&((a20==1)&&(!(a5==1)&&((a15==1)&&((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==4)))))))&&(a6==1))&&(a0==1))&&(a27==1))){ + a6 = 0; + a12 = 9; + a4 = 0; + a18 = 0; + a0 = 0; + a22 = 0; + a3 = 7; + a15 = 0; + return 21; + } else if(((!(a6==1)&&((!(a15==1)&&((a12==9)&&((a20==1)&&((a22==1)&&(((((input==5)&&((a18==1)||!(a18==1)))&&(a4==1))&&(a27==1))&&(a3==5))))))&&(a5==1)))&&(a0==1))){ + a3 = 6; + a18 = 0; + a12 = 12; + return 24; + } else if((((a3==6)&&((a0==1)&&((a22==1)&&((((a15==1)&&(((!(a5==1)&&((input==4)&&((a18==1)||!(a18==1))))&&(a20==1))&&(a12==11)))&&(a6==1))&&!(a27==1)))))&&!(a4==1))){ + a12 = 12; + a22 = 0; + a5 = 1; + a27 = 1; + a15 = 0; + a18 = 0; + a4 = 1; + a3 = 4; + return 24; + } else if(((a15==1)&&((a12==10)&&(!(a4==1)&&(((!(a18==1)&&((a3==5)&&((a20==1)&&((a6==1)&&((a27==1)&&(!(a5==1)&&(input==6)))))))&&!(a0==1))&&!(a22==1)))))){ + a0 = 1; + a6 = 0; + a4 = 1; + a3 = 8; + return -1; + } else if((((a5==1)&&((!(a0==1)&&((a15==1)&&((a4==1)&&((a12==8)&&((a6==1)&&((a27==1)&&((input==5)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))))))&&(a3==7)))&&(a20==1))){ + a0 = 1; + a3 = 5; + a27 = 0; + a22 = 1; + a12 = 9; + a18 = 0; + a15 = 0; + a4 = 0; + return -1; + } else if(((a12==10)&&((((a5==1)&&((!(a0==1)&&(!(a27==1)&&(((input==4)&&((((a18==1)&&(a22==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))))&&(a15==1))))&&(a20==1)))&&(a6==1))&&(a4==1)))){ + if((a27==1)){ + a6 = 0; + a3 = 6; + a12 = 8; + a5 = 0; + a15 = 0; + a22 = 1; + a18 = 1; + }else{ + a0 = 1; + a12 = 8; + a27 = 1; + a22 = 0; + a3 = 5; + a18 = 1; + } + return -1; + } else if(((((((((a5==1)&&(!(a22==1)&&((!(a18==1)&&((input==4)&&(a27==1)))&&(a6==1))))&&!(a4==1))&&(a12==10))&&(a20==1))&&(a15==1))&&(a0==1))&&(a3==4))){ + return -1; + } else if(((a27==1)&&(((a6==1)&&(((a3==8)&&(!(a5==1)&&((a22==1)&&((((a4==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a12==10))&&(a15==1)))))&&(a20==1)))&&(a0==1)))){ + a27 = 0; + a5 = 1; + a4 = 0; + a3 = 6; + a18 = 0; + return 21; + } else if(((a4==1)&&((a20==1)&&((a0==1)&&((a27==1)&&((a15==1)&&(!(a5==1)&&(((input==2)&&((((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1)))||(!(a6==1)&&((!(a18==1)&&(a22==1))&&(a3==4)))))&&(a12==9))))))))){ + a6 = 0; + a15 = 0; + a27 = 0; + a22 = 0; + a12 = 8; + a5 = 1; + a3 = 8; + a18 = 1; + return 26; + } else if((!(a6==1)&&(((a12==9)&&((a27==1)&&((!(a5==1)&&(((a3==7)&&(!(a4==1)&&((input==1)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))&&!(a15==1)))&&!(a0==1))))&&(a20==1)))){ + a18 = 0; + a22 = 1; + a5 = 1; + a6 = 1; + a3 = 6; + a4 = 1; + a0 = 1; + a27 = 0; + a15 = 1; + return 26; + } else if(((a3==8)&&((((a27==1)&&((a18==1)&&(((((((input==2)&&(a0==1))&&(a15==1))&&(a20==1))&&!(a5==1))&&(a22==1))&&!(a6==1))))&&(a12==11))&&!(a4==1)))){ + a27 = 0; + a6 = 1; + a3 = 5; + return 26; + } else if((((a15==1)&&((((((a5==1)&&((a12==8)&&((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==3))&&(a27==1))))&&!(a0==1))&&(a6==1))&&(a3==4))&&(a20==1)))&&(a4==1))){ + if((a3==7)){ + a18 = 1; + a6 = 0; + a22 = 0; + a12 = 11; + a4 = 0; + }else{ + a3 = 5; + a0 = 1; + a18 = 0; + a12 = 11; + a22 = 1; + a15 = 0; + a5 = 0; + } + return 26; + } else if(((!(a0==1)&&(!(a6==1)&&((((a15==1)&&(((((!(a4==1)&&(input==2))&&(a5==1))&&(a27==1))&&(a18==1))&&(a20==1)))&&(a3==6))&&(a12==8))))&&!(a22==1))){ + a4 = 1; + a18 = 0; + a0 = 1; + a6 = 1; + a5 = 0; + return 26; + } else if((!(a22==1)&&(((a4==1)&&(!(a0==1)&&(((a12==11)&&((!(a18==1)&&(!(a6==1)&&(((a3==7)&&(input==3))&&(a20==1))))&&(a15==1)))&&(a5==1))))&&(a27==1)))){ + a4 = 0; + a22 = 1; + a0 = 1; + a18 = 1; + a3 = 6; + return 21; + } else if(((((a15==1)&&(((a3==5)&&((!(a5==1)&&(!(a0==1)&&((a12==9)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==1)))))&&(a20==1)))&&(a6==1)))&&(a27==1))&&!(a4==1))){ + a27 = 0; + a5 = 1; + a18 = 0; + a22 = 1; + a6 = 0; + a4 = 1; + a3 = 8; + a0 = 1; + a12 = 12; + return 21; + } else if(((!(a6==1)&&(!(a27==1)&&(!(a4==1)&&(((((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==1))&&(a15==1))&&!(a0==1))&&(a12==9))&&!(a5==1))&&(a3==5)))))&&(a20==1))){ + a15 = 0; + a3 = 8; + a18 = 1; + a22 = 0; + a12 = 10; + a4 = 1; + a27 = 1; + return 21; + } else if((((a3==6)&&(((a0==1)&&((((a22==1)&&((a5==1)&&((a20==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&!(a27==1)))))&&(a12==8))&&!(a15==1)))&&!(a6==1)))&&!(a4==1))){ + a5 = 0; + a6 = 1; + a22 = 0; + a27 = 1; + a18 = 0; + a12 = 10; + return 26; + } else if(((a3==7)&&(((((a18==1)&&(!(a0==1)&&((((a6==1)&&((a4==1)&&((input==2)&&!(a5==1))))&&(a15==1))&&(a22==1))))&&(a20==1))&&!(a27==1))&&(a12==9)))){ + a12 = 8; + a3 = 6; + a5 = 1; + return -1; + } else if((((((((a27==1)&&((((input==4)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a18==1)&&(a22==1)))))&&(a20==1))&&!(a0==1)))&&!(a4==1))&&(a5==1))&&(a15==1))&&(a12==11))&&(a6==1))){ + a18 = 1; + a15 = 0; + a3 = 8; + a22 = 0; + a12 = 12; + a0 = 1; + return 24; + } else if(((a20==1)&&((a0==1)&&(((a6==1)&&((!(a15==1)&&((!(a5==1)&&((((a4==1)&&(input==1))&&(a22==1))&&(a18==1)))&&(a3==4)))&&(a12==8)))&&!(a27==1))))){ + a4 = 0; + a3 = 8; + a6 = 0; + a5 = 1; + a12 = 10; + a22 = 0; + a27 = 1; + return 26; + } else if(((((!(a27==1)&&((a3==8)&&(((!(a5==1)&&((a4==1)&&(((a18==1)&&(input==1))&&(a0==1))))&&(a20==1))&&(a22==1))))&&(a12==11))&&(a6==1))&&!(a15==1))){ + a27 = 1; + a12 = 8; + a15 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if(((a3==4)&&(!(a6==1)&&(!(a15==1)&&((a4==1)&&(!(a0==1)&&((a20==1)&&((a12==8)&&((((input==6)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&(a5==1))&&(a27==1)))))))))){ + a22 = 1; + a18 = 0; + a4 = 0; + a0 = 1; + a12 = 10; + a15 = 1; + return 26; + } else if(((a5==1)&&((a12==11)&&(!(a27==1)&&(((a6==1)&&((((a20==1)&&(((((a3==7)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==7)))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==1)))&&!(a15==1))&&(a0==1)))&&(a4==1)))))){ + a4 = 0; + a5 = 0; + a18 = 0; + a22 = 1; + a3 = 7; + a12 = 12; + return -1; + } else if((!(a18==1)&&((a6==1)&&(((a27==1)&&((((((a0==1)&&(!(a4==1)&&(!(a5==1)&&(input==4))))&&(a15==1))&&(a22==1))&&(a12==11))&&(a3==4)))&&(a20==1))))){ + a22 = 0; + a5 = 1; + a3 = 8; + a4 = 1; + a12 = 10; + a18 = 1; + return -1; + } else if(((a4==1)&&(((((a12==9)&&((!(a5==1)&&((a6==1)&&((a15==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==4)))))&&(a3==8)))&&(a27==1))&&(a0==1))&&(a20==1)))){ + a12 = 8; + a22 = 0; + a3 = 7; + a15 = 0; + a5 = 1; + a6 = 0; + a27 = 0; + a18 = 0; + return 21; + } else if(((!(a4==1)&&((a3==4)&&(((a22==1)&&((((a5==1)&&(!(a18==1)&&((!(a15==1)&&(input==2))&&!(a6==1))))&&(a12==8))&&!(a0==1)))&&(a20==1))))&&(a27==1))){ + a0 = 1; + a15 = 1; + a6 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if((((a5==1)&&((a20==1)&&((a12==12)&&((a22==1)&&((!(a0==1)&&((a18==1)&&(((a15==1)&&((input==5)&&(a27==1)))&&!(a6==1))))&&(a3==8))))))&&(a4==1))){ + a12 = 8; + a0 = 1; + a15 = 0; + a3 = 4; + a27 = 0; + a4 = 0; + a6 = 1; + return -1; + } else if(((a3==8)&&((a5==1)&&((!(a18==1)&&(!(a22==1)&&(!(a0==1)&&((((a12==11)&&((a15==1)&&((input==4)&&!(a4==1))))&&!(a27==1))&&(a20==1)))))&&(a6==1))))){ + a3 = 4; + a6 = 0; + a12 = 8; + a27 = 1; + a4 = 1; + a0 = 1; + a18 = 1; + return -1; + } else if(((a20==1)&&(((!(a15==1)&&(((a22==1)&&(((a3==4)&&((!(a18==1)&&((a5==1)&&(input==3)))&&(a6==1)))&&(a12==10)))&&(a4==1)))&&!(a27==1))&&(a0==1)))){ + a15 = 1; + a3 = 5; + a18 = 1; + a12 = 9; + return -1; + } else if(((a22==1)&&((a12==8)&&((!(a0==1)&&((a6==1)&&((a3==4)&&((a20==1)&&((a18==1)&&((a5==1)&&(((a15==1)&&(input==5))&&!(a27==1))))))))&&!(a4==1))))){ + a0 = 1; + a22 = 0; + a3 = 5; + a4 = 1; + a18 = 0; + a27 = 1; + return -1; + } else if(((a3==4)&&((a20==1)&&(((((a12==8)&&(((a6==1)&&((a5==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==3))))&&(a27==1)))&&!(a4==1))&&!(a0==1))&&(a15==1))))){ + a22 = 0; + a0 = 1; + a6 = 0; + a4 = 1; + a18 = 0; + a15 = 0; + return -1; + } else if(((a0==1)&&(((a22==1)&&(((((a3==7)&&(((a6==1)&&(!(a5==1)&&(((a18==1)||!(a18==1))&&(input==4))))&&(a12==10)))&&(a15==1))&&(a4==1))&&(a20==1)))&&!(a27==1)))){ + a18 = 0; + a6 = 0; + a15 = 0; + a22 = 0; + a3 = 8; + return 26; + } else if(((a12==9)&&(!(a15==1)&&(!(a0==1)&&((a3==7)&&((!(a27==1)&&((a20==1)&&(!(a6==1)&&((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==3))&&!(a4==1)))))&&(a5==1))))))){ + a5 = 0; + a3 = 4; + a22 = 0; + a27 = 1; + a6 = 1; + a4 = 1; + a15 = 1; + a18 = 0; + return 24; + } else if(((a15==1)&&((!(a27==1)&&((a6==1)&&((a12==11)&&(((((input==6)&&((((a3==6)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==6)))||(((a22==1)&&(a18==1))&&(a3==7))))&&!(a4==1))&&(a0==1))&&!(a5==1)))))&&(a20==1)))){ + a6 = 0; + a12 = 12; + a18 = 0; + a27 = 1; + a22 = 1; + a3 = 7; + a5 = 1; + return 24; + } else if((((a4==1)&&(((((((!(a5==1)&&(!(a27==1)&&((a18==1)&&(input==5))))&&(a15==1))&&(a20==1))&&(a22==1))&&(a3==4))&&!(a6==1))&&(a0==1)))&&(a12==10))){ + a12 = 9; + a3 = 6; + a4 = 0; + return 26; + } else if((((a6==1)&&((a12==10)&&((!(a22==1)&&(((((a15==1)&&(((a27==1)&&(input==4))&&(a4==1)))&&!(a0==1))&&(a18==1))&&(a20==1)))&&(a5==1))))&&(a3==4))){ + if((a4==1)){ + a3 = 5; + a22 = 1; + a15 = 0; + a18 = 0; + }else{ + a5 = 0; + a6 = 0; + a27 = 0; + a15 = 0; + a12 = 11; + a22 = 1; + a0 = 1; + a4 = 0; + } + return -1; + } else if((((a4==1)&&((a0==1)&&(!(a5==1)&&((a3==8)&&(((!(a18==1)&&((a15==1)&&((!(a22==1)&&(input==3))&&(a6==1))))&&(a12==11))&&(a27==1))))))&&(a20==1))){ + a5 = 1; + a4 = 0; + a15 = 0; + a3 = 4; + return -1; + } else if((!(a15==1)&&(((((a5==1)&&((a4==1)&&((((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==2))&&!(a0==1))&&!(a27==1))&&(a12==9))))&&(a3==8))&&(a20==1))&&(a6==1)))){ + a27 = 1; + a12 = 8; + a0 = 1; + a3 = 7; + a22 = 1; + a18 = 1; + a15 = 1; + return 21; + } else if((!(a27==1)&&((a0==1)&&(!(a6==1)&&((a20==1)&&(((a22==1)&&((((a12==12)&&((a5==1)&&((input==1)&&((a18==1)||!(a18==1)))))&&(a4==1))&&(a15==1)))&&(a3==6))))))){ + a6 = 1; + a18 = 0; + a3 = 8; + a27 = 1; + a15 = 0; + return 21; + } else if(((a0==1)&&((!(a4==1)&&(((a6==1)&&((((a15==1)&&((a18==1)&&(((a22==1)&&(input==3))&&(a5==1))))&&(a20==1))&&!(a27==1)))&&(a3==8)))&&(a12==12)))){ + a27 = 1; + a12 = 10; + a3 = 4; + a6 = 0; + return 24; + } else if(((((a20==1)&&((a18==1)&&(!(a22==1)&&((a6==1)&&(((((!(a15==1)&&(input==3))&&(a27==1))&&!(a0==1))&&(a3==7))&&(a4==1))))))&&(a5==1))&&(a12==11))){ + a15 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + a0 = 1; + return -1; + } else if((((a22==1)&&(((a4==1)&&(((a20==1)&&((a12==12)&&(!(a5==1)&&((((input==6)&&(a0==1))&&!(a27==1))&&(a15==1)))))&&!(a6==1)))&&(a18==1)))&&(a3==8))){ + a27 = 1; + a3 = 6; + a5 = 1; + a12 = 11; + a6 = 1; + return 21; + } else if(((a3==6)&&((a15==1)&&((!(a0==1)&&(((a27==1)&&((a12==11)&&(((a4==1)&&((input==3)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))))&&(a20==1))))&&(a6==1)))&&(a5==1))))){ + a3 = 8; + a15 = 0; + a5 = 0; + a18 = 1; + a0 = 1; + a12 = 8; + a22 = 0; + return 21; + } else if(((((!(a22==1)&&(!(a15==1)&&(((a4==1)&&(((!(a0==1)&&(!(a5==1)&&(input==3)))&&(a12==11))&&(a20==1)))&&!(a6==1))))&&!(a27==1))&&(a18==1))&&(a3==8))){ + if((a3==7)){ + a18 = 0; + a12 = 8; + a15 = 1; + a27 = 1; + a6 = 1; + a22 = 1; + }else{ + a12 = 8; + a15 = 1; + a22 = 1; + a5 = 1; + a3 = 7; + a27 = 1; + a0 = 1; + } + return 21; + } else if(((a3==7)&&(((!(a4==1)&&(!(a6==1)&&((a20==1)&&((a27==1)&&(((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==4))&&(a12==12))&&(a0==1))))))&&!(a15==1))&&(a5==1)))){ + a12 = 10; + a22 = 0; + a3 = 6; + a18 = 0; + return -1; + } else if(((a15==1)&&(!(a27==1)&&((a3==5)&&((a6==1)&&(((a20==1)&&(((a12==10)&&(((input==2)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&!(a4==1)))&&!(a5==1)))&&(a0==1))))))){ + a4 = 1; + a18 = 0; + a12 = 8; + a22 = 0; + a3 = 4; + a15 = 0; + return -1; + } else if(((a15==1)&&((!(a22==1)&&(!(a5==1)&&(((a20==1)&&((a4==1)&&(!(a0==1)&&((((a27==1)&&(input==3))&&(a12==9))&&(a6==1)))))&&!(a18==1))))&&(a3==8)))){ + a0 = 1; + a12 = 10; + a15 = 0; + a5 = 1; + a27 = 0; + a3 = 4; + return 26; + } else if((((a6==1)&&(!(a27==1)&&((a15==1)&&((a4==1)&&(!(a0==1)&&(((a20==1)&&((input==2)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6)))))&&(a5==1)))))))&&(a12==11))){ + if((a12==11)){ + a4 = 0; + a12 = 10; + a6 = 0; + a22 = 1; + a3 = 5; + a18 = 1; + a15 = 0; + a27 = 1; + a5 = 0; + }else{ + a3 = 4; + a27 = 1; + a12 = 9; + a22 = 1; + a6 = 0; + a18 = 0; + a4 = 0; + } + return -1; + } else if((((a3==7)&&((a0==1)&&(((((a5==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5))&&(a6==1))&&!(a4==1)))&&(a12==11))&&(a20==1))&&!(a27==1))))&&(a15==1))){ + a22 = 1; + a27 = 1; + a4 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + return -1; + } else if((((a3==4)&&(((a27==1)&&((a5==1)&&((!(a15==1)&&((!(a6==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==2)))&&(a20==1)))&&(a0==1))))&&(a12==10)))&&(a4==1))){ + a22 = 0; + a18 = 0; + a5 = 0; + a3 = 6; + a12 = 9; + a27 = 0; + return 26; + } else if((!(a4==1)&&((!(a22==1)&&((a12==8)&&(!(a18==1)&&((a20==1)&&((((a3==8)&&(((input==5)&&(a6==1))&&!(a5==1)))&&!(a27==1))&&(a15==1))))))&&(a0==1)))){ + a18 = 1; + a4 = 1; + a5 = 1; + a27 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if(((a12==9)&&((((a3==7)&&(!(a4==1)&&(((a20==1)&&(((a5==1)&&(!(a0==1)&&((input==2)&&((a18==1)||!(a18==1)))))&&!(a22==1)))&&!(a6==1))))&&(a27==1))&&(a15==1)))){ + a0 = 1; + a12 = 11; + a4 = 1; + a18 = 1; + a3 = 4; + a6 = 1; + return 26; + } else if(((((a0==1)&&((((a6==1)&&(((a12==11)&&(!(a4==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==1))))&&!(a5==1)))&&(a20==1))&&!(a15==1)))&&(a3==8))&&(a27==1))){ + a15 = 1; + a3 = 4; + a6 = 0; + a5 = 1; + a22 = 0; + a18 = 0; + return -1; + } else if(((!(a15==1)&&(((a12==9)&&((a6==1)&&(((a0==1)&&((a22==1)&&((((input==4)&&((a18==1)||!(a18==1)))&&(a20==1))&&!(a27==1))))&&(a3==5))))&&(a5==1)))&&(a4==1))){ + a12 = 8; + a5 = 0; + a3 = 6; + a4 = 0; + a18 = 1; + a15 = 1; + return -1; + } else if(((((a4==1)&&((a12==8)&&((a5==1)&&(!(a15==1)&&(((a0==1)&&((a3==5)&&((input==1)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&!(a6==1))))))&&(a27==1))&&(a20==1))){ + if((a6==1)){ + a12 = 9; + a3 = 7; + a0 = 0; + a22 = 0; + a5 = 0; + a18 = 1; + }else{ + a3 = 4; + a22 = 0; + a18 = 1; + a5 = 0; + } + return 26; + } else if(((a27==1)&&(((!(a15==1)&&((a12==9)&&((((a3==8)&&((a5==1)&&((a20==1)&&(((a18==1)||!(a18==1))&&(input==2)))))&&!(a22==1))&&!(a4==1))))&&!(a6==1))&&(a0==1)))){ + a18 = 0; + a6 = 1; + a15 = 1; + a12 = 12; + a22 = 1; + a3 = 5; + a4 = 1; + return 26; + } else if((((a20==1)&&((a27==1)&&(((a15==1)&&((a4==1)&&((a0==1)&&(!(a6==1)&&((input==5)&&(((a3==5)&&((a22==1)&&(a18==1)))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))))))))&&!(a5==1))))&&(a12==10))){ + a12 = 8; + a5 = 1; + a6 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + return -1; + } else if(((a0==1)&&((((((((a20==1)&&((input==2)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))||(((a18==1)&&(a22==1))&&(a3==6)))))&&(a6==1))&&(a12==10))&&!(a15==1))&&(a27==1))&&(a4==1))&&!(a5==1)))){ + a27 = 0; + a3 = 8; + a22 = 1; + a4 = 0; + a5 = 1; + a18 = 1; + return 26; + } else if(((a20==1)&&(!(a4==1)&&((a27==1)&&((((a15==1)&&((a12==8)&&(!(a6==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))||((a3==7)&&(!(a18==1)&&(a22==1))))&&(input==5)))))&&(a5==1))&&(a0==1)))))){ + a3 = 7; + a15 = 0; + a4 = 1; + a22 = 0; + a18 = 0; + return 26; + } else if(((!(a15==1)&&(((a0==1)&&((((a4==1)&&(((a12==10)&&((a3==6)&&(((a18==1)||!(a18==1))&&(input==6))))&&(a22==1)))&&(a6==1))&&!(a5==1)))&&(a20==1)))&&!(a27==1))){ + a18 = 0; + a3 = 8; + a4 = 0; + a12 = 11; + return 26; + } else if(((a5==1)&&((a3==7)&&(((((((a12==11)&&((((a20==1)&&(input==1))&&(a15==1))&&(a6==1)))&&!(a27==1))&&!(a4==1))&&(a18==1))&&!(a22==1))&&!(a0==1))))){ + a18 = 0; + a12 = 8; + a3 = 4; + a27 = 1; + a0 = 1; + return -1; + } else if((((a12==9)&&((!(a27==1)&&((((((a20==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==3)))&&(a6==1))&&!(a5==1))&&(a3==4))&&!(a0==1)))&&!(a4==1)))&&!(a15==1))){ + a22 = 1; + a27 = 1; + a3 = 5; + a12 = 8; + a18 = 1; + a15 = 1; + return 26; + } else if((((a4==1)&&((!(a22==1)&&(!(a0==1)&&(((a12==10)&&((!(a15==1)&&((a6==1)&&((input==3)&&((a18==1)||!(a18==1)))))&&(a27==1)))&&(a3==8))))&&(a5==1)))&&(a20==1))){ + a0 = 1; + a12 = 8; + a15 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((((a0==1)&&(((a5==1)&&((!(a4==1)&&(((input==5)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1)))))&&(a12==10)))&&!(a27==1)))&&!(a15==1)))&&!(a6==1))&&(a20==1))){ + if((a18==1)){ + a5 = 0; + a0 = 0; + a22 = 1; + a12 = 11; + a18 = 0; + a3 = 4; + a27 = 1; + }else{ + a5 = 0; + a15 = 1; + a18 = 0; + a22 = 1; + a3 = 5; + } + return 21; + } else if(((a12==8)&&((((((((a15==1)&&((input==1)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7)))))&&!(a5==1))&&(a20==1))&&(a27==1))&&(a4==1))&&!(a0==1))&&(a6==1)))){ + a22 = 0; + a3 = 4; + a6 = 0; + a12 = 9; + a18 = 0; + return -1; + } else if(((((a0==1)&&((a12==12)&&((!(a27==1)&&((a3==8)&&(((!(a6==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&!(a22==1))&&(a20==1))))&&!(a5==1))))&&!(a4==1))&&!(a15==1))){ + a3 = 4; + a22 = 1; + a12 = 8; + a4 = 1; + a15 = 1; + a18 = 1; + a27 = 1; + a5 = 1; + a6 = 1; + return -1; + } else if(((((((((a20==1)&&((((a22==1)&&((input==4)&&!(a0==1)))&&(a4==1))&&!(a18==1)))&&!(a5==1))&&!(a6==1))&&(a3==5))&&!(a27==1))&&(a12==9))&&(a15==1))){ + a4 = 0; + a12 = 8; + a3 = 4; + a15 = 0; + a5 = 1; + return -1; + } else if((((a6==1)&&((((((a3==8)&&(((a27==1)&&(!(a5==1)&&(((a18==1)||!(a18==1))&&(input==3))))&&!(a0==1)))&&(a22==1))&&(a15==1))&&(a4==1))&&(a12==9)))&&(a20==1))){ + a3 = 6; + a0 = 1; + a18 = 0; + a22 = 0; + a6 = 0; + a15 = 0; + a12 = 10; + a4 = 0; + return 26; + } else if(((!(a15==1)&&((a27==1)&&(!(a6==1)&&((a5==1)&&(((a20==1)&&((a3==7)&&((a4==1)&&((input==5)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))))))&&!(a0==1))))))&&(a12==11))){ + a12 = 10; + a22 = 1; + a0 = 1; + a18 = 0; + a3 = 5; + return 24; + } else if((!(a0==1)&&(((((a15==1)&&((a20==1)&&((((a12==8)&&((input==5)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))))&&!(a6==1))&&!(a27==1))))&&!(a5==1))&&(a3==4))&&!(a4==1)))){ + a3 = 5; + a15 = 0; + a18 = 0; + a4 = 1; + a6 = 1; + a22 = 1; + a12 = 10; + return 26; + } else if((!(a6==1)&&(((a15==1)&&((((((a0==1)&&((input==4)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))||((a3==8)&&((a22==1)&&!(a18==1))))))&&(a27==1))&&(a5==1))&&(a4==1))&&(a12==12)))&&(a20==1)))){ + a18 = 1; + a22 = 1; + a6 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((((((!(a27==1)&&((a20==1)&&((a6==1)&&((input==4)&&(((a3==7)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6))))))))&&!(a0==1))&&(a4==1))&&(a12==10))&&!(a5==1))&&(a15==1))){ + a6 = 0; + a3 = 8; + a12 = 8; + a18 = 1; + a5 = 1; + a22 = 1; + a0 = 1; + a27 = 1; + return 21; + } else if(((a20==1)&&(((a12==8)&&(!(a4==1)&&((a5==1)&&((!(a27==1)&&(((((a6==1)&&(((a18==1)&&!(a22==1))&&(a3==8)))||(((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1)))||(!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1)))))&&(input==3)))&&!(a0==1)))))&&!(a15==1)))){ + if((a22==1)){ + a3 = 4; + a22 = 0; + a18 = 0; + a4 = 1; + a6 = 0; + }else{ + a5 = 0; + a6 = 0; + a3 = 6; + a0 = 1; + a22 = 1; + a18 = 0; + a12 = 9; + a27 = 1; + a15 = 1; + } + return -1; + } else if((!(a22==1)&&((((a5==1)&&((a4==1)&&((a20==1)&&((a6==1)&&((a0==1)&&((!(a15==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a12==8)))))))&&(a3==6))&&!(a27==1)))){ + if((a20==1)){ + a12 = 12; + a4 = 0; + a15 = 1; + a5 = 0; + a18 = 0; + a3 = 5; + }else{ + a27 = 1; + a3 = 7; + a5 = 0; + a15 = 1; + a6 = 0; + a18 = 0; + a4 = 0; + a12 = 10; + } + return -1; + } else if(((((a20==1)&&((a3==7)&&((a15==1)&&((((a4==1)&&((a27==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a12==10))))&&!(a6==1))&&(a5==1)))))&&(a22==1))&&(a0==1))){ + a12 = 8; + a5 = 0; + a18 = 0; + a3 = 8; + return 26; + } else if(((a6==1)&&((a12==8)&&((!(a18==1)&&((a27==1)&&((a0==1)&&((a3==8)&&(!(a15==1)&&(!(a4==1)&&((!(a22==1)&&(input==1))&&(a5==1))))))))&&(a20==1))))){ + a4 = 1; + a18 = 1; + a6 = 0; + a12 = 9; + return 26; + } else if((!(a0==1)&&(((!(a5==1)&&(((a3==7)&&(!(a27==1)&&(((((input==4)&&(a6==1))&&(a15==1))&&(a22==1))&&!(a4==1))))&&(a12==10)))&&(a20==1))&&(a18==1)))){ + a12 = 11; + a4 = 1; + a3 = 5; + a0 = 1; + a6 = 0; + return 26; + } else if((!(a5==1)&&((a6==1)&&(!(a4==1)&&(((a27==1)&&((((((input==5)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&!(a15==1))&&!(a0==1))&&(a20==1))&&(a12==12)))&&(a3==5)))))){ + a4 = 1; + a12 = 8; + a22 = 0; + a18 = 0; + a15 = 1; + a6 = 0; + a5 = 1; + a0 = 1; + return -1; + } else if(((a20==1)&&((a22==1)&&(((!(a6==1)&&(((a12==10)&&((((a15==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a27==1))&&!(a4==1)))&&!(a5==1)))&&(a3==7))&&(a0==1))))){ + a6 = 1; + a4 = 1; + a3 = 4; + a18 = 1; + a5 = 1; + a12 = 8; + return -1; + } else if((((a20==1)&&(((((a15==1)&&(!(a0==1)&&(((input==1)&&((((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a22==1)&&!(a18==1))))||((a3==6)&&((a18==1)&&(a22==1)))))&&(a6==1))))&&!(a27==1))&&(a5==1))&&(a4==1)))&&(a12==10))){ + if((a22==1)){ + a27 = 1; + a22 = 0; + a3 = 8; + a18 = 0; + a12 = 8; + a0 = 1; + }else{ + a5 = 0; + a6 = 0; + a12 = 11; + a4 = 0; + a18 = 1; + a22 = 1; + a3 = 6; + a0 = 1; + } + return 26; + } else if((!(a0==1)&&(((((a5==1)&&((a12==9)&&(((a4==1)&&((input==4)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))))&&(a27==1))))&&(a20==1))&&!(a6==1))&&!(a15==1)))){ + if((a18==1)){ + a3 = 6; + a12 = 10; + a18 = 0; + a6 = 1; + a22 = 1; + }else{ + a12 = 11; + a18 = 1; + a0 = 1; + a22 = 1; + a4 = 0; + a3 = 7; + } + return 26; + } else if(((a12==11)&&((!(a27==1)&&((a20==1)&&((a15==1)&&((((a3==4)&&(((input==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&!(a6==1)))&&!(a4==1))&&!(a0==1)))))&&(a5==1)))){ + a6 = 1; + a5 = 0; + a18 = 1; + a15 = 0; + a0 = 1; + a22 = 1; + a27 = 1; + return -1; + } else if((((((a5==1)&&((!(a0==1)&&((!(a6==1)&&((((a3==8)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7))))&&(input==2)))&&(a12==10)))&&!(a4==1)))&&(a20==1))&&!(a27==1))&&!(a15==1))){ + a18 = 1; + a3 = 7; + a5 = 0; + a22 = 1; + a4 = 1; + a27 = 1; + a6 = 1; + a0 = 1; + a15 = 1; + return 26; + } else if((((a20==1)&&((a12==11)&&(((a27==1)&&((((((input==1)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&(a3==5))&&(a4==1))&&!(a15==1))&&!(a6==1)))&&!(a0==1))))&&(a5==1))){ + a12 = 10; + a18 = 1; + a15 = 1; + a4 = 0; + a0 = 1; + a22 = 0; + a3 = 7; + return -1; + } else if(((!(a27==1)&&(((((a4==1)&&(((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==6))&&(a0==1))&&(a15==1))&&(a20==1)))&&(a3==5))&&(a5==1))&&(a12==12)))&&(a6==1))){ + a3 = 7; + a6 = 0; + a4 = 0; + a22 = 1; + a15 = 0; + a12 = 10; + a18 = 1; + return -1; + } else if((!(a27==1)&&(!(a4==1)&&(((a18==1)&&((((a20==1)&&(((a5==1)&&(((input==4)&&(a22==1))&&!(a6==1)))&&(a15==1)))&&(a12==11))&&!(a0==1)))&&(a3==8))))){ + a12 = 12; + a3 = 4; + a0 = 1; + a15 = 0; + return 21; + } else if(((((!(a0==1)&&((a5==1)&&((a20==1)&&((((a3==8)&&((input==1)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a4==1))&&(a27==1)))))&&(a12==8))&&!(a6==1))&&(a15==1))){ + a3 = 6; + a6 = 1; + a18 = 0; + a5 = 0; + a0 = 1; + a22 = 0; + return 26; + } else if((!(a0==1)&&((a3==6)&&(!(a27==1)&&(((a12==11)&&((a4==1)&&(((!(a15==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5)))&&(a5==1))&&(a20==1))))&&(a6==1)))))){ + a0 = 1; + a4 = 0; + a15 = 1; + a18 = 0; + a3 = 7; + a12 = 8; + a22 = 0; + a27 = 1; + return 26; + } else if((!(a15==1)&&((!(a5==1)&&(((a20==1)&&((a0==1)&&((a12==8)&&((a27==1)&&(((((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==2))))))&&!(a4==1)))&&!(a6==1)))){ + if((a5==1)){ + a4 = 1; + a0 = 0; + a12 = 9; + a6 = 1; + a18 = 0; + a22 = 0; + a3 = 6; + a15 = 1; + }else{ + a4 = 1; + a3 = 7; + a18 = 0; + a22 = 1; + a15 = 1; + a12 = 11; + a6 = 1; + } + return 21; + } else if(((((((((a22==1)&&((a12==11)&&(((!(a18==1)&&(input==6))&&(a27==1))&&!(a0==1))))&&!(a6==1))&&!(a5==1))&&(a4==1))&&(a20==1))&&!(a15==1))&&(a3==6))){ + a0 = 1; + a3 = 4; + a6 = 1; + a12 = 8; + a5 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if((!(a5==1)&&((a3==4)&&((!(a0==1)&&((a18==1)&&((((a4==1)&&((((input==3)&&(a22==1))&&(a20==1))&&!(a15==1)))&&(a6==1))&&(a27==1))))&&(a12==10))))){ + if((a18==1)){ + a3 = 6; + a5 = 1; + a6 = 0; + a12 = 11; + a4 = 0; + }else{ + a12 = 9; + a22 = 0; + a3 = 8; + a18 = 0; + a5 = 1; + a0 = 1; + a27 = 0; + a4 = 0; + } + return 26; + } else if(((a5==1)&&((a20==1)&&((((a6==1)&&((a3==8)&&(!(a0==1)&&((a12==11)&&(!(a15==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4)))))))&&(a27==1))&&(a4==1))))){ + a18 = 0; + a22 = 1; + a4 = 0; + a0 = 1; + return -1; + } else if((!(a4==1)&&(((a3==6)&&((a6==1)&&((a12==9)&&(((a27==1)&&((a15==1)&&((a5==1)&&(((a20==1)&&(input==6))&&(a22==1)))))&&!(a18==1)))))&&(a0==1)))){ + if((a6==1)){ + a12 = 11; + a0 = 0; + a15 = 0; + a18 = 1; + }else{ + a12 = 12; + a5 = 0; + a18 = 1; + a3 = 8; + a4 = 1; + } + return 26; + } else if((!(a0==1)&&(!(a6==1)&&(!(a15==1)&&(((a20==1)&&(((((((a3==6)&&(!(a18==1)&&(a22==1)))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a22==1)&&(a18==1)))))&&(input==6))&&(a12==9))&&!(a4==1))&&(a27==1)))&&!(a5==1)))))){ + a12 = 11; + a4 = 1; + a3 = 7; + a18 = 0; + a27 = 0; + a22 = 0; + a0 = 1; + return 26; + } else if((!(a4==1)&&(((a0==1)&&((!(a15==1)&&((a12==9)&&(((a6==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==6))&&(a20==1)))&&!(a5==1))))&&(a3==6)))&&!(a27==1)))){ + a15 = 1; + a3 = 4; + a18 = 1; + a4 = 1; + a22 = 1; + a12 = 8; + a27 = 1; + a5 = 1; + return -1; + } else if(((!(a0==1)&&((a3==8)&&((a20==1)&&(!(a18==1)&&(((a12==11)&&(!(a4==1)&&((!(a15==1)&&((input==1)&&!(a27==1)))&&(a6==1))))&&(a22==1))))))&&!(a5==1))){ + if((a6==1)){ + a6 = 0; + a3 = 4; + a4 = 1; + a5 = 1; + a15 = 1; + a0 = 1; + a27 = 1; + a12 = 8; + }else{ + a15 = 1; + a12 = 8; + a18 = 1; + a3 = 6; + } + return -1; + } else if(((a15==1)&&((a12==12)&&(((((a27==1)&&((a5==1)&&(!(a6==1)&&((input==4)&&(((!(a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1)))))))))&&(a4==1))&&!(a0==1))&&(a20==1))))){ + a0 = 1; + a22 = 1; + a3 = 5; + a15 = 0; + a4 = 0; + a18 = 1; + a6 = 1; + a12 = 11; + return -1; + } else if((((!(a5==1)&&((((a3==4)&&((a15==1)&&(((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==6))&&(a4==1))&&(a27==1))))&&!(a6==1))&&(a20==1)))&&(a12==11))&&(a0==1))){ + a6 = 1; + a4 = 0; + a3 = 5; + a18 = 0; + a22 = 1; + a27 = 0; + a15 = 0; + a5 = 1; + return 26; + } else if(((a12==11)&&(!(a4==1)&&((((((((a22==1)&&((a27==1)&&((input==6)&&(a0==1))))&&(a15==1))&&!(a18==1))&&!(a5==1))&&(a6==1))&&(a20==1))&&(a3==7))))){ + a4 = 1; + a3 = 4; + a18 = 1; + a5 = 1; + a12 = 8; + return -1; + } else if(((((((((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a20==1))&&(a12==11))&&(a0==1))&&(a6==1))&&(a15==1))&&(a4==1))&&!(a5==1))&&(a3==5))&&(a27==1))){ + a18 = 1; + a12 = 9; + a3 = 7; + a22 = 0; + a15 = 0; + a6 = 0; + a4 = 0; + return -1; + } else if((!(a5==1)&&((a4==1)&&((a12==9)&&((((a20==1)&&(((a15==1)&&((a3==6)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==3))))&&!(a0==1)))&&(a27==1))&&(a6==1)))))){ + a0 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + a22 = 1; + return -1; + } else if((((a20==1)&&(((a4==1)&&(((a0==1)&&((a6==1)&&((((input==4)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&(a3==5))&&(a15==1))))&&!(a5==1)))&&(a27==1)))&&(a12==9))){ + a22 = 0; + a18 = 0; + a27 = 0; + a5 = 1; + a12 = 8; + a15 = 0; + a3 = 6; + return 21; + } else if(((a12==8)&&(((a0==1)&&(((((!(a6==1)&&((((input==3)&&(a3==6))&&(a22==1))&&(a20==1)))&&!(a27==1))&&(a18==1))&&!(a5==1))&&(a4==1)))&&!(a15==1)))){ + a27 = 1; + a3 = 4; + a5 = 1; + a6 = 1; + a15 = 1; + return -1; + } else if((((a20==1)&&(!(a27==1)&&(((a0==1)&&((a4==1)&&((a5==1)&&(((a12==12)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==1)))&&(a6==1)))))&&!(a15==1))))&&(a3==7))){ + a27 = 1; + a22 = 1; + a3 = 4; + a15 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((!(a18==1)&&((a6==1)&&(!(a5==1)&&((a20==1)&&(((a12==11)&&((!(a0==1)&&(((input==5)&&(a15==1))&&(a22==1)))&&(a3==5)))&&(a27==1))))))&&!(a4==1))){ + a12 = 10; + a0 = 1; + a18 = 1; + a22 = 0; + a5 = 1; + return -1; + } else if((!(a27==1)&&((a3==6)&&((a0==1)&&(((a20==1)&&(!(a4==1)&&((a12==8)&&(!(a15==1)&&((a5==1)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==6)))))))&&(a6==1)))))){ + a4 = 1; + a3 = 4; + a27 = 1; + a15 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((!(a0==1)&&((a22==1)&&(!(a6==1)&&(!(a15==1)&&((a27==1)&&((a20==1)&&(!(a5==1)&&(!(a4==1)&&(((a3==5)&&(input==1))&&(a12==12))))))))))&&!(a18==1))){ + a5 = 1; + a12 = 8; + a4 = 1; + a3 = 7; + a6 = 1; + a18 = 1; + a15 = 1; + a0 = 1; + return 26; + } else if(((((a3==6)&&((!(a6==1)&&(((((a0==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==5)))&&(a12==11))&&(a20==1))&&!(a15==1)))&&(a5==1)))&&(a4==1))&&!(a27==1))){ + a18 = 1; + a5 = 0; + a3 = 7; + a12 = 9; + a4 = 0; + a22 = 1; + return -1; + } else if((((a20==1)&&(((a12==8)&&((a5==1)&&(((a15==1)&&((((input==4)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&!(a4==1))&&(a27==1)))&&(a6==1))))&&(a3==4)))&&!(a0==1))){ + a15 = 0; + a5 = 0; + a18 = 1; + a6 = 0; + a0 = 1; + a4 = 1; + a12 = 10; + a22 = 1; + return -1; + } else if((((!(a5==1)&&((a27==1)&&((a3==5)&&(!(a0==1)&&((a15==1)&&((((a12==10)&&((input==3)&&(a4==1)))&&!(a18==1))&&(a20==1)))))))&&(a22==1))&&!(a6==1))){ + a12 = 9; + a0 = 1; + a3 = 8; + a18 = 1; + a6 = 1; + return 21; + } else if((((!(a6==1)&&((((((a12==11)&&((input==6)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))))&&!(a4==1))&&!(a0==1))&&(a15==1))&&(a20==1)))&&!(a27==1))&&!(a5==1))){ + a4 = 1; + a18 = 0; + a6 = 1; + a12 = 10; + a15 = 0; + a22 = 0; + a27 = 1; + a3 = 7; + return 21; + } else if((((!(a5==1)&&((a20==1)&&((!(a4==1)&&(((((input==5)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&(a3==6))&&!(a15==1))&&(a12==10)))&&!(a6==1))))&&(a27==1))&&!(a0==1))){ + a6 = 1; + a22 = 1; + a27 = 0; + a18 = 0; + a15 = 1; + a5 = 1; + a12 = 9; + a3 = 7; + a0 = 1; + return -1; + } else if((((a18==1)&&((!(a0==1)&&(!(a6==1)&&((a12==12)&&((a4==1)&&((a27==1)&&(!(a5==1)&&((!(a22==1)&&(input==5))&&(a3==5))))))))&&(a15==1)))&&(a20==1))){ + if((a4==1)){ + a3 = 7; + a6 = 1; + a15 = 0; + a4 = 0; + a12 = 10; + a18 = 0; + }else{ + a5 = 1; + a15 = 0; + a3 = 4; + a4 = 0; + a12 = 8; + } + return 24; + } else if(((a12==12)&&(((!(a27==1)&&((!(a4==1)&&((a0==1)&&(!(a15==1)&&((a3==7)&&((input==1)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))))))&&(a20==1)))&&(a5==1))&&(a6==1)))){ + a3 = 4; + a27 = 1; + a22 = 0; + a18 = 1; + return -1; + } else if(((((a12==12)&&((a15==1)&&((a20==1)&&((!(a27==1)&&((a4==1)&&((a6==1)&&((input==6)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))))&&(a0==1)))))&&(a3==6))&&!(a5==1))){ + a12 = 8; + a18 = 1; + a27 = 1; + a3 = 4; + a22 = 1; + a5 = 1; + return -1; + } else if(((a0==1)&&((a12==12)&&((a20==1)&&(((a15==1)&&((a27==1)&&((!(a5==1)&&((input==4)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))))&&!(a6==1))))&&(a4==1)))))){ + a3 = 6; + a22 = 1; + a18 = 0; + a15 = 0; + a0 = 0; + a12 = 11; + a6 = 1; + return 26; + } else if(((a3==5)&&((a6==1)&&((a27==1)&&((((((a5==1)&&((a15==1)&&((input==3)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))))&&(a20==1))&&(a12==9))&&(a4==1))&&!(a0==1)))))){ + a22 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + a0 = 1; + return -1; + } else if(((a15==1)&&((a3==7)&&((((!(a6==1)&&((((a5==1)&&((((a18==1)||!(a18==1))&&(input==2))&&!(a22==1)))&&(a4==1))&&(a12==11)))&&(a20==1))&&!(a27==1))&&!(a0==1))))){ + if((a15==1)){ + a27 = 1; + a15 = 0; + a12 = 12; + a3 = 5; + a5 = 0; + a18 = 1; + a6 = 1; + }else{ + a3 = 8; + a12 = 8; + a18 = 1; + a15 = 0; + a5 = 0; + a4 = 0; + a22 = 1; + a27 = 1; + } + return 26; + } else if(((!(a0==1)&&((a27==1)&&(((a3==6)&&(((a6==1)&&(((((input==4)&&!(a15==1))&&(a12==10))&&(a5==1))&&!(a18==1)))&&(a22==1)))&&(a20==1))))&&(a4==1))){ + a0 = 1; + a3 = 5; + a12 = 11; + a27 = 0; + return 24; + } else if(((a27==1)&&(((((a22==1)&&((a4==1)&&((((!(a5==1)&&((a12==8)&&(input==6)))&&!(a18==1))&&(a20==1))&&(a3==5))))&&(a0==1))&&!(a15==1))&&!(a6==1)))){ + a18 = 1; + a12 = 11; + a3 = 6; + a5 = 1; + a15 = 1; + return 21; + } else if((!(a6==1)&&((a12==9)&&((a0==1)&&(((a3==7)&&((!(a27==1)&&(((a20==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==5)))&&(a15==1)))&&(a4==1)))&&(a5==1)))))){ + a3 = 4; + a18 = 0; + a22 = 1; + a5 = 0; + a4 = 0; + a15 = 0; + a27 = 1; + a12 = 12; + return -1; + } else if((((a15==1)&&(!(a0==1)&&(((((a27==1)&&((a20==1)&&((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==6))&&(a6==1))))&&!(a4==1))&&!(a5==1))&&(a3==5))))&&(a12==10))){ + a22 = 0; + a18 = 1; + a3 = 8; + a15 = 0; + a0 = 1; + a4 = 1; + return 26; + } else if((((a4==1)&&(((a6==1)&&((((((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==5))&&!(a27==1))&&(a12==11))&&!(a0==1))&&(a20==1)))&&!(a15==1)))&&(a5==1))){ + a22 = 0; + a27 = 1; + a3 = 4; + a18 = 1; + a6 = 0; + return -1; + } else if(((a15==1)&&((a5==1)&&(((a4==1)&&(((((a20==1)&&(((input==2)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a27==1)))&&(a3==7))&&(a6==1))&&(a12==8)))&&!(a0==1))))){ + a4 = 0; + a18 = 0; + a12 = 10; + a22 = 0; + a3 = 8; + a6 = 0; + a0 = 1; + return 26; + } else if((((!(a6==1)&&((a0==1)&&((((a3==5)&&((a12==10)&&((a5==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3)))))&&(a15==1))&&!(a4==1))))&&(a20==1))&&(a27==1))){ + if((a6==1)){ + a0 = 0; + a18 = 0; + a4 = 1; + a3 = 7; + a12 = 8; + a22 = 0; + a15 = 0; + }else{ + a18 = 0; + a3 = 6; + a5 = 0; + a15 = 0; + a22 = 0; + a0 = 0; + } + return 21; + } else if((((a3==4)&&(!(a27==1)&&(((a15==1)&&(!(a5==1)&&(((a12==10)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&!(a0==1)))&&(a20==1))))&&!(a4==1))))&&(a6==1))){ + a4 = 1; + a6 = 0; + a3 = 7; + a22 = 0; + a27 = 1; + a12 = 8; + a18 = 0; + a0 = 1; + a5 = 1; + return 26; + } else if(((a15==1)&&((a12==10)&&(((((((!(a0==1)&&(!(a4==1)&&((input==1)&&(a6==1))))&&!(a27==1))&&(a5==1))&&!(a18==1))&&(a20==1))&&(a3==8))&&(a22==1))))){ + if((a0==1)){ + a15 = 0; + a22 = 0; + a12 = 8; + a27 = 1; + a3 = 7; + a5 = 0; + a4 = 1; + a0 = 1; + }else{ + a27 = 1; + a6 = 0; + a3 = 4; + a12 = 11; + a15 = 0; + a22 = 0; + } + return -1; + } else if(((a20==1)&&(!(a0==1)&&((!(a5==1)&&((a3==4)&&(!(a27==1)&&((((((input==2)&&((a18==1)||!(a18==1)))&&(a4==1))&&!(a6==1))&&!(a22==1))&&(a12==9)))))&&!(a15==1))))){ + if((a0==1)){ + a0 = 1; + a5 = 1; + a15 = 1; + a18 = 1; + a3 = 7; + a27 = 1; + a12 = 8; + a6 = 1; + a22 = 1; + }else{ + a5 = 1; + a18 = 0; + a12 = 8; + a15 = 1; + a27 = 1; + a0 = 1; + a3 = 5; + } + return 26; + } else if(((((((a20==1)&&((a0==1)&&((a12==10)&&(((a6==1)&&((a22==1)&&((input==6)&&(a18==1))))&&!(a5==1)))))&&!(a15==1))&&(a27==1))&&(a3==8))&&(a4==1))){ + a5 = 1; + a18 = 0; + a3 = 4; + return -1; + } else if((((a20==1)&&(((((a3==8)&&((!(a18==1)&&((a27==1)&&((a6==1)&&((input==3)&&!(a4==1)))))&&(a5==1)))&&(a12==11))&&!(a15==1))&&(a22==1)))&&(a0==1))){ + a12 = 8; + a18 = 1; + a3 = 4; + a4 = 1; + a15 = 1; + return -1; + } else if(((a20==1)&&(((((a4==1)&&((a12==8)&&(((a15==1)&&((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==4))&&!(a0==1)))&&(a6==1))))&&(a3==4))&&(a5==1))&&(a27==1)))){ + a3 = 7; + a22 = 0; + a0 = 1; + a6 = 0; + a12 = 9; + a27 = 0; + a18 = 0; + return 26; + } else if((!(a6==1)&&((((!(a5==1)&&(((((a27==1)&&((a4==1)&&((a15==1)&&(input==5))))&&!(a0==1))&&(a22==1))&&(a20==1)))&&!(a18==1))&&(a12==9))&&(a3==7)))){ + a3 = 4; + a18 = 1; + a0 = 1; + a6 = 1; + a12 = 8; + a5 = 1; + return -1; + } else if(((a20==1)&&(((((((((a6==1)&&((!(a4==1)&&((a18==1)&&(a22==1)))&&(a3==4)))||((((a3==8)&&(((a18==1)&&!(a22==1))&&(a4==1)))&&!(a6==1))||(((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1))))&&!(a6==1))))&&(input==2))&&!(a15==1))&&(a5==1))&&(a12==8))&&!(a27==1))&&(a0==1)))){ + a6 = 1; + a12 = 10; + a27 = 1; + a18 = 0; + a4 = 1; + a15 = 1; + a22 = 0; + a3 = 5; + return 21; + } else if(((a4==1)&&((a27==1)&&((((((((((input==6)&&((a18==1)||!(a18==1)))&&!(a6==1))&&(a12==12))&&(a20==1))&&!(a22==1))&&(a5==1))&&(a3==7))&&!(a15==1))&&(a0==1))))){ + if((a20==1)){ + a12 = 10; + a18 = 0; + a0 = 0; + a3 = 8; + }else{ + a12 = 11; + a15 = 1; + a4 = 0; + a18 = 0; + } + return -1; + } else if(((a27==1)&&(!(a4==1)&&(!(a22==1)&&(((a5==1)&&((((((a20==1)&&((input==6)&&((a18==1)||!(a18==1))))&&!(a0==1))&&!(a15==1))&&(a12==12))&&(a3==4)))&&(a6==1)))))){ + if((a3==7)){ + a18 = 0; + a27 = 0; + a3 = 8; + a12 = 11; + a15 = 1; + }else{ + a4 = 1; + a12 = 8; + a6 = 0; + a18 = 1; + a0 = 1; + a3 = 8; + a15 = 1; + } + return 26; + } else if(((((a0==1)&&((((((((input==2)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&(a27==1))&&(a5==1))&&!(a4==1))&&(a20==1))&&(a12==8))&&(a3==4)))&&!(a6==1))&&!(a15==1))){ + a6 = 1; + a22 = 1; + a3 = 8; + a18 = 0; + a12 = 9; + a0 = 0; + return 26; + } else if((((a20==1)&&((!(a4==1)&&(((a6==1)&&((a15==1)&&(((!(a22==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a12==11))&&(a5==1))))&&(a27==1)))&&!(a0==1)))&&(a3==6))){ + a0 = 1; + a3 = 4; + a6 = 0; + a18 = 0; + a22 = 1; + a15 = 0; + return 21; + } else if((!(a5==1)&&(((a27==1)&&(!(a22==1)&&(((((a12==11)&&((a20==1)&&((((a18==1)||!(a18==1))&&(input==3))&&!(a0==1))))&&(a4==1))&&!(a15==1))&&(a3==6))))&&(a6==1)))){ + a0 = 1; + a12 = 10; + a3 = 5; + a18 = 1; + a5 = 1; + return -1; + } else if((!(a6==1)&&(!(a5==1)&&(!(a4==1)&&((a27==1)&&(!(a15==1)&&((a12==12)&&(!(a0==1)&&((a20==1)&&((input==3)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5))))))))))))){ + a22 = 1; + a3 = 8; + a18 = 0; + a4 = 1; + a12 = 11; + a27 = 0; + a0 = 1; + return -1; + } else if(((((a20==1)&&((a0==1)&&(((a27==1)&&(!(a15==1)&&((a5==1)&&((a3==6)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==4))))))&&!(a6==1))))&&(a12==11))&&!(a4==1))){ + a18 = 0; + a22 = 1; + a6 = 1; + a3 = 8; + a12 = 10; + a4 = 1; + return -1; + } else if(((((((!(a5==1)&&(((input==1)&&((((((a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1)))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4)))))&&(a15==1)))&&(a27==1))&&(a20==1))&&(a0==1))&&(a12==10))&&(a4==1))){ + a5 = 1; + a3 = 7; + a4 = 0; + a18 = 1; + a27 = 0; + a6 = 1; + a22 = 1; + return 21; + } else if((!(a15==1)&&(!(a5==1)&&(!(a0==1)&&(((!(a27==1)&&((a12==11)&&(((a18==1)&&((!(a22==1)&&(input==1))&&(a3==7)))&&(a20==1))))&&!(a4==1))&&!(a6==1)))))){ + if((a6==1)){ + a15 = 1; + a6 = 1; + a5 = 1; + a3 = 5; + a22 = 1; + a27 = 1; + a12 = 8; + a18 = 0; + a4 = 1; + a0 = 1; + }else{ + a22 = 1; + a12 = 8; + a15 = 1; + a27 = 1; + a5 = 1; + a0 = 1; + a4 = 1; + a3 = 8; + a6 = 1; + } + return 21; + } else if(((a12==10)&&((a27==1)&&(!(a6==1)&&(!(a15==1)&&(!(a4==1)&&((a20==1)&&(!(a5==1)&&(!(a0==1)&&(((input==3)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&(a3==4))))))))))){ + a6 = 1; + a5 = 1; + a15 = 1; + a18 = 0; + a0 = 1; + a22 = 0; + a3 = 5; + a12 = 11; + a27 = 0; + return 26; + } else if((((((a27==1)&&((a15==1)&&(!(a0==1)&&(((!(a6==1)&&((a3==8)&&((a4==1)&&(!(a22==1)&&!(a18==1)))))||((a6==1)&&((((a22==1)&&(a18==1))&&!(a4==1))&&(a3==4))))&&(input==1)))))&&!(a5==1))&&(a12==12))&&(a20==1))){ + if((a22==1)){ + a6 = 0; + a18 = 0; + a0 = 1; + a4 = 1; + a12 = 11; + a27 = 0; + a22 = 0; + a3 = 4; + }else{ + a12 = 8; + a0 = 1; + a6 = 1; + a5 = 1; + a18 = 1; + a22 = 1; + a3 = 6; + a4 = 1; + } + return -1; + } else if(((a6==1)&&(!(a27==1)&&(!(a5==1)&&((a4==1)&&(((a3==8)&&(((a20==1)&&(!(a0==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==2))))&&(a12==9)))&&(a15==1))))))){ + if((a0==1)){ + a6 = 0; + a5 = 1; + a27 = 1; + a18 = 1; + a22 = 1; + a3 = 7; + a4 = 0; + }else{ + a15 = 0; + a0 = 1; + a4 = 0; + a18 = 1; + a12 = 11; + a22 = 0; + } + return -1; + } else if(((((a12==8)&&(((((a5==1)&&(((input==4)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))||((a3==6)&&((a22==1)&&!(a18==1)))))&&!(a15==1)))&&!(a6==1))&&(a0==1))&&!(a4==1)))&&(a27==1))&&(a20==1))){ + a3 = 4; + a15 = 1; + a18 = 1; + a6 = 1; + a22 = 1; + a4 = 1; + return -1; + } else if((!(a22==1)&&(((a0==1)&&((((a20==1)&&((!(a4==1)&&((a5==1)&&((a15==1)&&((input==5)&&((a18==1)||!(a18==1))))))&&!(a6==1)))&&(a12==12))&&(a3==4)))&&(a27==1)))){ + a12 = 10; + a15 = 0; + a22 = 1; + a3 = 5; + a5 = 0; + a18 = 1; + return -1; + } else if(((a6==1)&&((!(a5==1)&&((a20==1)&&((a3==4)&&(((a18==1)&&((((!(a15==1)&&(input==6))&&(a12==8))&&(a22==1))&&(a4==1)))&&(a0==1)))))&&!(a27==1)))){ + a5 = 1; + a6 = 0; + a15 = 1; + a4 = 0; + a12 = 9; + return 26; + } else if(((!(a5==1)&&(((((a20==1)&&((a22==1)&&(!(a27==1)&&(!(a0==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a12==8))))))&&!(a6==1))&&(a4==1))&&!(a15==1)))&&(a3==7))){ + if((a6==1)){ + a27 = 1; + a3 = 8; + a18 = 0; + a5 = 1; + a12 = 10; + }else{ + a15 = 1; + a18 = 0; + a12 = 10; + a3 = 4; + a27 = 1; + a5 = 1; + a6 = 1; + } + return -1; + } else if(((a20==1)&&(((a27==1)&&((!(a15==1)&&((a12==12)&&((((input==1)&&((((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a22==1)&&!(a18==1))))||((a3==5)&&((a18==1)&&(a22==1)))))&&(a5==1))&&!(a0==1))))&&(a6==1)))&&(a4==1)))){ + a22 = 0; + a4 = 0; + a3 = 4; + a18 = 0; + a6 = 0; + a12 = 10; + a15 = 1; + a0 = 1; + a5 = 0; + return 21; + } else if((((a4==1)&&((!(a27==1)&&(((a6==1)&&(!(a0==1)&&(((a15==1)&&(((input==5)&&(a18==1))&&(a3==7)))&&(a22==1))))&&(a20==1)))&&!(a5==1)))&&(a12==9))){ + if((a18==1)){ + a4 = 0; + a5 = 1; + a27 = 1; + a22 = 0; + a0 = 1; + a12 = 8; + }else{ + a12 = 8; + a5 = 1; + a0 = 1; + a4 = 0; + a27 = 1; + } + return -1; + } else if((!(a27==1)&&((a12==8)&&((!(a15==1)&&((a6==1)&&(((((((a4==1)&&(input==1))&&(a3==5))&&(a22==1))&&(a18==1))&&(a5==1))&&!(a0==1))))&&(a20==1))))){ + a4 = 0; + a27 = 1; + a6 = 0; + a18 = 0; + a12 = 9; + a3 = 4; + a22 = 0; + a0 = 1; + return -1; + } else if(((((a20==1)&&((a0==1)&&((a5==1)&&((a4==1)&&((((a12==11)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==6)))&&(a15==1))&&(a3==8))))))&&(a6==1))&&!(a27==1))){ + a6 = 0; + a12 = 9; + a18 = 0; + a15 = 0; + a27 = 1; + a3 = 7; + a22 = 0; + a5 = 0; + a4 = 0; + return 26; + } else if((!(a4==1)&&((a5==1)&&(!(a0==1)&&(((a20==1)&&((a3==4)&&((a6==1)&&((((input==5)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&(a12==10))&&!(a27==1)))))&&(a15==1)))))){ + if((a4==1)){ + a4 = 1; + a15 = 0; + a0 = 1; + a18 = 0; + a22 = 0; + a3 = 7; + }else{ + a18 = 1; + a3 = 7; + a22 = 0; + a0 = 1; + a6 = 0; + a5 = 0; + a27 = 1; + } + return 21; + } else if((!(a5==1)&&(!(a15==1)&&(!(a6==1)&&((a27==1)&&(((((((((!(a22==1)&&(a18==1))&&(a3==7))||((a3==7)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==6))&&(a0==1))&&(a20==1))&&(a12==10))&&(a4==1))))))){ + a3 = 4; + a18 = 0; + a15 = 1; + a22 = 1; + return 26; + } else if((((((a27==1)&&((a5==1)&&(((((a12==12)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a20==1)))&&(a4==1))&&(a0==1))&&!(a22==1))))&&(a3==8))&&(a15==1))&&(a6==1))){ + a3 = 4; + a27 = 0; + a18 = 1; + return 21; + } else if(((a20==1)&&(!(a5==1)&&((!(a6==1)&&(!(a18==1)&&(!(a27==1)&&(((!(a0==1)&&((a12==9)&&((input==6)&&(a3==4))))&&(a22==1))&&(a15==1)))))&&!(a4==1))))){ + a12 = 8; + a3 = 8; + a27 = 1; + a22 = 0; + a5 = 1; + a6 = 1; + a0 = 1; + return -1; + } else if((!(a18==1)&&((a5==1)&&(((a3==4)&&(!(a6==1)&&((((a20==1)&&((a12==8)&&((!(a4==1)&&(input==2))&&!(a0==1))))&&(a22==1))&&!(a27==1))))&&(a15==1))))){ + a27 = 1; + a6 = 1; + a3 = 7; + a4 = 1; + a0 = 1; + return -1; + } else if(((!(a4==1)&&((a3==6)&&((a20==1)&&((a12==11)&&(((((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==6))&&(a27==1))&&(a6==1))&&!(a0==1))&&!(a15==1))))))&&!(a5==1))){ + a5 = 1; + a22 = 0; + a15 = 1; + a12 = 8; + a6 = 0; + a0 = 1; + a3 = 5; + a18 = 1; + return 24; + } else if(((((!(a0==1)&&((a20==1)&&(!(a6==1)&&((!(a27==1)&&((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==6))&&!(a4==1)))&&(a3==4)))))&&(a5==1))&&!(a15==1))&&(a12==11))){ + a0 = 1; + a6 = 1; + a27 = 1; + a22 = 1; + a12 = 8; + a18 = 1; + a3 = 8; + a15 = 1; + a4 = 1; + return -1; + } else if((((a12==11)&&((a20==1)&&((((((((((a22==1)&&(a18==1))&&!(a4==1))&&(a3==4))&&(a6==1))||((!(a6==1)&&(((a4==1)&&(!(a22==1)&&(a18==1)))&&(a3==8)))||(((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1)))&&!(a6==1))))&&(input==3))&&(a27==1))&&!(a0==1))&&!(a5==1))))&&(a15==1))){ + a0 = 1; + a12 = 10; + a15 = 0; + a22 = 1; + a6 = 0; + a3 = 6; + a18 = 1; + a4 = 1; + return -1; + } else if(((a27==1)&&((a6==1)&&((((a20==1)&&((a5==1)&&((((((input==2)&&((a18==1)||!(a18==1)))&&!(a15==1))&&(a3==6))&&(a12==12))&&!(a4==1))))&&(a0==1))&&!(a22==1))))){ + a12 = 10; + a22 = 1; + a18 = 1; + a6 = 0; + a5 = 0; + a15 = 1; + return 21; + } else if(((((a0==1)&&(((a12==10)&&(((a27==1)&&((a15==1)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==3))))&&(a6==1)))&&!(a5==1)))&&(a4==1))&&(a20==1))){ + a12 = 8; + a18 = 1; + a22 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if(((a22==1)&&((a6==1)&&((a3==5)&&(((!(a4==1)&&((((a0==1)&&(!(a18==1)&&((a27==1)&&(input==3))))&&(a20==1))&&(a12==8)))&&!(a15==1))&&(a5==1)))))){ + a3 = 6; + a12 = 9; + a15 = 1; + return 24; + } else if((((!(a6==1)&&(((a4==1)&&((a5==1)&&((((input==1)&&((((a18==1)&&(a22==1))&&(a3==8))||(((!(a22==1)&&(a18==1))&&(a3==7))||((a3==7)&&(!(a22==1)&&!(a18==1))))))&&(a12==8))&&(a20==1))))&&(a27==1)))&&!(a0==1))&&!(a15==1))){ + a12 = 9; + a4 = 0; + a22 = 1; + a3 = 5; + a6 = 1; + a27 = 0; + a5 = 0; + a18 = 1; + a0 = 1; + return 21; + } else if((((!(a22==1)&&(((((a4==1)&&(((a6==1)&&(((input==5)&&!(a5==1))&&(a3==4)))&&(a0==1)))&&(a18==1))&&!(a27==1))&&(a15==1)))&&(a12==9))&&(a20==1))){ + a6 = 0; + a12 = 11; + a27 = 1; + a18 = 0; + a15 = 0; + return 26; + } else if((((a6==1)&&((a22==1)&&((a0==1)&&((((!(a4==1)&&((((a5==1)&&(input==4))&&(a12==10))&&!(a15==1)))&&(a18==1))&&(a20==1))&&(a27==1)))))&&(a3==5))){ + a4 = 1; + a12 = 8; + a3 = 4; + a15 = 1; + return -1; + } else if((((((!(a6==1)&&((((a5==1)&&((((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==6)))&&(a12==8))&&!(a27==1)))&&!(a0==1))&&!(a15==1))&&(a4==1))&&(a20==1))){ + a12 = 12; + a4 = 0; + a18 = 0; + a22 = 0; + a6 = 1; + a27 = 1; + a3 = 7; + return 26; + } else if((!(a15==1)&&(((a27==1)&&(!(a4==1)&&((a18==1)&&(((a3==7)&&((((a5==1)&&((input==5)&&!(a22==1)))&&!(a0==1))&&!(a6==1)))&&(a12==8)))))&&(a20==1)))){ + if((a27==1)){ + a18 = 0; + a3 = 5; + a12 = 10; + a6 = 1; + a22 = 1; + }else{ + a0 = 1; + a15 = 1; + a6 = 1; + a5 = 0; + a3 = 8; + a12 = 9; + } + return 21; + } else if((((((a18==1)&&(((a3==4)&&((((a0==1)&&(((input==6)&&!(a4==1))&&!(a27==1)))&&!(a5==1))&&!(a6==1)))&&(a20==1)))&&(a12==9))&&(a22==1))&&(a15==1))){ + a27 = 1; + a12 = 8; + a5 = 1; + a6 = 1; + a4 = 1; + return -1; + } else if(((a5==1)&&((a3==6)&&((a12==12)&&(!(a4==1)&&((a6==1)&&((a15==1)&&((a0==1)&&(!(a27==1)&&(((input==6)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a20==1))))))))))){ + a3 = 4; + a12 = 10; + a22 = 0; + a15 = 0; + a18 = 1; + return -1; + } else if(((a22==1)&&(((a4==1)&&(((!(a6==1)&&(((a3==4)&&((a20==1)&&((a12==10)&&((input==3)&&(a27==1)))))&&(a15==1)))&&!(a5==1))&&!(a18==1)))&&(a0==1)))){ + a22 = 0; + a3 = 5; + a5 = 1; + a6 = 1; + return -1; + } else if((((a27==1)&&((((a20==1)&&(!(a6==1)&&(((((a22==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&!(a0==1))&&(a5==1))&&!(a4==1))))&&(a12==9))&&(a15==1)))&&(a3==8))){ + a18 = 0; + a0 = 1; + a12 = 12; + a6 = 1; + a3 = 7; + a15 = 0; + return 21; + } else if(((a20==1)&&((a5==1)&&((((((((input==3)&&((((a3==7)&&((a18==1)&&!(a22==1)))||((a3==7)&&(!(a18==1)&&!(a22==1))))||((a3==8)&&((a22==1)&&(a18==1)))))&&(a12==8))&&(a6==1))&&!(a0==1))&&(a15==1))&&(a4==1))&&!(a27==1))))){ + if((a12==11)){ + a0 = 1; + a6 = 0; + a18 = 1; + a22 = 0; + a27 = 1; + a3 = 8; + }else{ + a18 = 1; + a0 = 1; + a3 = 7; + a27 = 1; + a12 = 10; + a22 = 1; + a5 = 0; + } + return 21; + } else if(((a20==1)&&((a3==5)&&((a22==1)&&((!(a5==1)&&(((a6==1)&&(((a12==12)&&(((input==5)&&(a4==1))&&(a15==1)))&&(a18==1)))&&(a27==1)))&&(a0==1)))))){ + a4 = 0; + a22 = 0; + a15 = 0; + a27 = 0; + a3 = 7; + a5 = 1; + a6 = 0; + return 21; + } else if((((((a12==10)&&((((a18==1)&&(((a27==1)&&((a20==1)&&((input==1)&&(a22==1))))&&(a4==1)))&&!(a6==1))&&(a15==1)))&&(a5==1))&&(a0==1))&&(a3==5))){ + a18 = 0; + a12 = 8; + a22 = 0; + a4 = 0; + return -1; + } else if(((a4==1)&&((((a20==1)&&(!(a5==1)&&((((a12==11)&&((a3==5)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==5))))&&!(a27==1))&&(a0==1))))&&(a6==1))&&!(a15==1)))){ + a22 = 1; + a12 = 8; + a18 = 1; + a5 = 1; + a27 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if((((((a20==1)&&((!(a0==1)&&((!(a4==1)&&(!(a6==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==6))))&&(a3==4)))&&(a27==1)))&&(a5==1))&&(a12==9))&&!(a15==1))){ + a22 = 1; + a12 = 10; + a0 = 1; + a18 = 0; + a5 = 0; + return 26; + } else if((!(a6==1)&&(!(a5==1)&&((!(a27==1)&&(((((!(a4==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==6)))&&(a0==1))&&(a3==6))&&(a20==1))&&(a12==12)))&&(a15==1))))){ + a5 = 1; + a15 = 0; + a27 = 1; + a18 = 0; + a12 = 11; + a3 = 5; + a22 = 0; + return 21; + } else if(((a15==1)&&(!(a18==1)&&(((a12==12)&&(!(a4==1)&&((a20==1)&&((a22==1)&&((((a0==1)&&((input==6)&&(a6==1)))&&!(a27==1))&&!(a5==1))))))&&(a3==5))))){ + if((a5==1)){ + a15 = 0; + a5 = 1; + a3 = 8; + a22 = 0; + a12 = 11; + a0 = 0; + a27 = 1; + }else{ + a22 = 0; + a4 = 1; + a15 = 0; + a3 = 8; + a18 = 1; + a12 = 8; + } + return 26; + } else if((((!(a5==1)&&((a15==1)&&(!(a6==1)&&((!(a27==1)&&(((a3==8)&&((input==6)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))))&&(a0==1)))&&(a4==1)))))&&(a20==1))&&(a12==10))){ + a5 = 1; + a22 = 1; + a3 = 4; + a27 = 1; + a12 = 12; + a15 = 0; + a18 = 0; + a6 = 1; + a4 = 0; + return 21; + } else if((((a22==1)&&((a20==1)&&((((a3==4)&&(!(a4==1)&&(((((input==2)&&((a18==1)||!(a18==1)))&&(a27==1))&&(a12==12))&&!(a0==1))))&&!(a15==1))&&!(a6==1))))&&!(a5==1))){ + a18 = 1; + a27 = 0; + a6 = 1; + a3 = 7; + a4 = 1; + a12 = 9; + a0 = 1; + return -1; + } else if(((a6==1)&&(((a5==1)&&(((a20==1)&&(((((input==3)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6))))&&(a4==1))&&!(a15==1))&&!(a0==1)))&&(a27==1)))&&(a12==8)))){ + a22 = 0; + a3 = 7; + a12 = 12; + a0 = 1; + a15 = 1; + a18 = 1; + return 26; + } else if(((a12==9)&&(!(a27==1)&&((((a0==1)&&((!(a6==1)&&(((((a3==6)&&(!(a18==1)&&(a22==1)))||(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1)))))&&(input==4))&&!(a4==1)))&&(a15==1)))&&(a20==1))&&(a5==1))))){ + a22 = 0; + a18 = 1; + a12 = 12; + a4 = 1; + a3 = 7; + a15 = 0; + a6 = 1; + a27 = 1; + return 24; + } else if(((((((((!(a5==1)&&(((a20==1)&&(!(a4==1)&&(input==2)))&&!(a0==1)))&&(a18==1))&&!(a15==1))&&(a3==5))&&(a12==10))&&(a27==1))&&(a6==1))&&!(a22==1))){ + a6 = 0; + a18 = 0; + a12 = 8; + a5 = 1; + a3 = 7; + a0 = 1; + return 26; + } else if(((a15==1)&&(((a20==1)&&(((!(a4==1)&&(((a27==1)&&(!(a0==1)&&((((a18==1)||!(a18==1))&&(input==2))&&(a6==1))))&&(a3==7)))&&(a12==12))&&(a5==1)))&&(a22==1)))){ + a3 = 4; + a12 = 10; + a0 = 1; + a15 = 0; + a18 = 1; + return 21; + } else if(((a12==12)&&(!(a6==1)&&(((a20==1)&&((a27==1)&&((((((((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a22==1)&&(a18==1))))||((a3==6)&&((a22==1)&&!(a18==1))))&&(input==6))&&!(a0==1))&&(a4==1))&&!(a5==1))))&&!(a15==1))))){ + a6 = 1; + a15 = 1; + a3 = 6; + a12 = 10; + a4 = 0; + a0 = 1; + a22 = 0; + a18 = 0; + return 24; + } else if(((((((!(a0==1)&&(((((((a18==1)||!(a18==1))&&(input==1))&&(a5==1))&&(a12==10))&&(a3==4))&&(a22==1)))&&!(a15==1))&&!(a27==1))&&(a4==1))&&(a6==1))&&(a20==1))){ + if((a0==1)){ + a0 = 1; + a22 = 0; + a12 = 8; + a6 = 0; + a18 = 0; + a27 = 1; + a3 = 6; + a15 = 1; + }else{ + a6 = 0; + a0 = 1; + a27 = 1; + a18 = 1; + a3 = 5; + a15 = 1; + a12 = 8; + } + return 21; + } else if((((!(a27==1)&&((a6==1)&&(((a12==8)&&(((a20==1)&&((a3==6)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a0==1))))&&(a4==1)))&&(a5==1))))&&!(a22==1))&&(a15==1))){ + a4 = 0; + a3 = 8; + a22 = 1; + a15 = 0; + a18 = 0; + return 26; + } else if(((!(a0==1)&&(((!(a4==1)&&(!(a27==1)&&((!(a18==1)&&(((!(a6==1)&&(input==2))&&(a22==1))&&(a20==1)))&&(a3==4))))&&!(a5==1))&&(a12==9)))&&(a15==1))){ + a12 = 10; + a0 = 1; + a22 = 0; + a27 = 1; + a15 = 0; + return 21; + } return calculate_output70(input); + } + + int calculate_output70(int input) { + if((((((a0==1)&&(((((a6==1)&&((a12==11)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==1))))&&(a3==4))&&(a5==1))&&!(a15==1)))&&(a20==1))&&(a4==1))&&(a27==1))){ + a18 = 0; + a15 = 1; + a4 = 0; + a3 = 5; + a22 = 0; + a12 = 10; + a6 = 0; + return -1; + } else if(((a15==1)&&((((((!(a22==1)&&((a6==1)&&(!(a4==1)&&((a5==1)&&(((a18==1)||!(a18==1))&&(input==2))))))&&(a20==1))&&(a0==1))&&(a3==4))&&!(a27==1))&&(a12==8)))){ + a12 = 10; + a18 = 1; + a3 = 5; + a27 = 1; + return 26; + } else if((((a22==1)&&(!(a18==1)&&((a3==6)&&(((a4==1)&&((a20==1)&&(!(a27==1)&&((a0==1)&&(((input==3)&&(a5==1))&&(a15==1))))))&&(a12==9)))))&&(a6==1))){ + a3 = 4; + a18 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if((((a20==1)&&((((!(a4==1)&&(!(a15==1)&&(((a0==1)&&(((a3==4)&&(input==1))&&!(a27==1)))&&!(a6==1))))&&(a22==1))&&!(a5==1))&&!(a18==1)))&&(a12==12))){ + a6 = 1; + a4 = 1; + a15 = 1; + a18 = 1; + a5 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if(((((((((((((a6==1)&&(((a18==1)&&!(a22==1))&&(a3==8)))||((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1)))))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4))))&&(input==2))&&(a20==1))&&(a27==1))&&!(a0==1))&&!(a5==1))&&(a12==8))&&!(a15==1))&&!(a4==1))){ + a18 = 1; + a3 = 8; + a22 = 0; + a6 = 0; + return 26; + } else if(((((a20==1)&&(((a27==1)&&((a15==1)&&(!(a6==1)&&(!(a5==1)&&((input==1)&&(((!(a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6)))))))))&&!(a0==1)))&&(a12==10))&&(a4==1))){ + a0 = 1; + a18 = 1; + a5 = 1; + a22 = 0; + a3 = 7; + a15 = 0; + a12 = 12; + a6 = 1; + return 26; + } else if((((a20==1)&&((a3==5)&&(!(a4==1)&&(!(a18==1)&&((a12==9)&&(((!(a6==1)&&((a15==1)&&((input==6)&&(a22==1))))&&(a5==1))&&!(a0==1)))))))&&(a27==1))){ + a4 = 1; + a0 = 1; + a3 = 8; + a12 = 11; + a5 = 0; + a27 = 0; + a15 = 0; + return 21; + } else if(((((((a20==1)&&(((a22==1)&&((((a4==1)&&((input==1)&&(a15==1)))&&(a6==1))&&!(a5==1)))&&(a3==6)))&&(a18==1))&&(a0==1))&&(a12==11))&&!(a27==1))){ + if((a0==1)){ + a18 = 0; + a6 = 0; + a12 = 12; + a22 = 0; + a4 = 0; + a3 = 5; + }else{ + a0 = 0; + a27 = 1; + a18 = 0; + a12 = 10; + a4 = 0; + } + return -1; + } else if(((((a4==1)&&(((a3==8)&&(((a15==1)&&(((a12==10)&&((input==5)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&(a20==1)))&&!(a0==1)))&&(a5==1)))&&(a6==1))&&(a27==1))){ + a12 = 12; + a3 = 4; + a0 = 1; + a15 = 0; + a22 = 1; + a18 = 1; + return 24; + } else if(((((a20==1)&&(((a5==1)&&(!(a6==1)&&(!(a4==1)&&((a15==1)&&(!(a0==1)&&((input==2)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))))))))&&(a27==1)))&&(a12==10))&&(a3==7))){ + a18 = 1; + a4 = 1; + a0 = 1; + a3 = 8; + a27 = 0; + a6 = 1; + a12 = 9; + a22 = 0; + return 21; + } else if(((a22==1)&&(((a27==1)&&((a0==1)&&(!(a5==1)&&(((a3==8)&&(((a20==1)&&(((input==2)&&(a18==1))&&(a12==9)))&&!(a6==1)))&&(a4==1)))))&&!(a15==1)))){ + a15 = 1; + a22 = 0; + a3 = 7; + a5 = 1; + a18 = 0; + a27 = 0; + return 26; + } else if((((((a6==1)&&(((a20==1)&&((a5==1)&&((a4==1)&&((input==2)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7)))))))&&(a12==8)))&&(a27==1))&&(a15==1))&&!(a0==1))){ + a5 = 0; + a12 = 10; + a0 = 1; + a4 = 0; + a3 = 5; + a18 = 1; + a22 = 1; + return 21; + } else if(((((((!(a15==1)&&(!(a0==1)&&((a12==8)&&(!(a6==1)&&((input==6)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))))))&&(a20==1))&&(a5==1))&&(a3==7))&&!(a27==1))&&!(a4==1))){ + if((a12==10)){ + a27 = 1; + a0 = 1; + a6 = 1; + a22 = 0; + a18 = 1; + a3 = 4; + a4 = 1; + a15 = 1; + }else{ + a27 = 1; + a4 = 1; + a0 = 1; + a22 = 0; + a15 = 1; + a18 = 0; + a3 = 6; + a6 = 1; + } + return 21; + } else if(((a6==1)&&(((((a15==1)&&((a3==6)&&((!(a5==1)&&(((input==1)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a0==1)))&&(a27==1))))&&(a20==1))&&(a4==1))&&(a12==8)))){ + a22 = 1; + a18 = 0; + a12 = 9; + a15 = 0; + return 21; + } else if(((((((a12==10)&&((a20==1)&&((a4==1)&&(((a3==7)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a15==1)))&&!(a6==1)))))&&(a22==1))&&!(a5==1))&&!(a27==1))&&!(a0==1))){ + a5 = 1; + a27 = 1; + a12 = 12; + a18 = 1; + a0 = 1; + a4 = 0; + a3 = 8; + return 26; + } else if(((!(a6==1)&&(!(a22==1)&&((((a20==1)&&((a27==1)&&((((((a18==1)||!(a18==1))&&(input==2))&&(a3==8))&&!(a0==1))&&(a12==9))))&&!(a15==1))&&(a5==1))))&&!(a4==1))){ + a18 = 1; + a12 = 8; + a3 = 4; + a15 = 1; + a0 = 1; + a6 = 1; + a4 = 1; + a22 = 1; + return -1; + } else if(((((a22==1)&&((a3==7)&&((a0==1)&&((((!(a27==1)&&((a6==1)&&((input==4)&&((a18==1)||!(a18==1)))))&&(a12==8))&&(a4==1))&&(a20==1)))))&&!(a5==1))&&(a15==1))){ + a5 = 1; + a18 = 0; + a22 = 0; + a12 = 11; + a6 = 0; + return 26; + } else if((((a0==1)&&(!(a15==1)&&((((!(a18==1)&&(!(a5==1)&&((a22==1)&&((a12==9)&&((a20==1)&&(input==3))))))&&(a6==1))&&(a4==1))&&(a3==7))))&&!(a27==1))){ + if((a0==1)){ + a0 = 0; + a27 = 1; + a4 = 0; + a18 = 1; + a22 = 0; + }else{ + a12 = 11; + a3 = 8; + a0 = 0; + a27 = 1; + } + return -1; + } else if(((a5==1)&&((((a12==8)&&(((((((input==1)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a0==1))&&!(a27==1))&&(a15==1))&&(a20==1))&&!(a6==1)))&&(a3==5))&&!(a4==1)))){ + if((a15==1)){ + a22 = 1; + a27 = 1; + a6 = 1; + a3 = 4; + a0 = 1; + a4 = 1; + a18 = 1; + }else{ + a3 = 8; + a0 = 1; + a22 = 1; + a18 = 0; + a27 = 1; + a4 = 1; + } + return 26; + } else if(((!(a27==1)&&((a6==1)&&((a3==7)&&(!(a15==1)&&((a20==1)&&((((((input==2)&&((a18==1)||!(a18==1)))&&(a4==1))&&(a22==1))&&(a0==1))&&(a5==1)))))))&&(a12==11))){ + if((a22==1)){ + a18 = 0; + a12 = 12; + a15 = 1; + a22 = 0; + a3 = 8; + a5 = 0; + a4 = 0; + a6 = 0; + }else{ + a15 = 1; + a27 = 1; + a4 = 0; + a18 = 1; + a3 = 4; + a6 = 0; + a22 = 0; + } + return 21; + } else if(((!(a0==1)&&(!(a15==1)&&((a20==1)&&((a5==1)&&((a4==1)&&((a12==8)&&(((((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1))||((((!(a22==1)&&(a18==1))&&(a3==8))&&(a6==1))||((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))))&&(input==4))))))))&&(a27==1))){ + if((a20==1)){ + a22 = 0; + a3 = 7; + a6 = 0; + a18 = 1; + }else{ + a3 = 6; + a4 = 0; + a5 = 0; + a18 = 0; + a22 = 0; + a12 = 10; + a6 = 0; + } + return -1; + } else if(((!(a18==1)&&(!(a22==1)&&((!(a5==1)&&(((((((input==4)&&!(a4==1))&&(a20==1))&&(a0==1))&&!(a6==1))&&(a12==12))&&!(a15==1)))&&(a27==1))))&&(a3==5))){ + a3 = 6; + a5 = 1; + a12 = 11; + a22 = 1; + a27 = 0; + a15 = 1; + return 26; + } else if(((!(a0==1)&&((a12==9)&&((a20==1)&&(((((((((a15==1)&&((a18==1)&&!(a22==1)))&&!(a4==1))&&(a3==8))&&!(a6==1))||(!(a6==1)&&((a3==8)&&(((a15==1)&&(!(a18==1)&&!(a22==1)))&&!(a4==1)))))||((a6==1)&&(((((a22==1)&&(a18==1))&&!(a15==1))&&(a4==1))&&(a3==4))))&&(input==6))&&!(a27==1)))))&&(a5==1))){ + if((a6==1)){ + a15 = 1; + a0 = 1; + a3 = 6; + a22 = 0; + a12 = 8; + a27 = 1; + a18 = 0; + a4 = 1; + a6 = 0; + }else{ + a6 = 1; + a3 = 4; + a4 = 0; + a0 = 1; + a22 = 0; + a15 = 1; + a18 = 1; + a12 = 8; + a27 = 1; + } + return 24; + } else if((!(a18==1)&&(((a12==10)&&((a3==5)&&(!(a4==1)&&((a0==1)&&((a27==1)&&(!(a6==1)&&((a20==1)&&((!(a5==1)&&(input==1))&&(a22==1)))))))))&&(a15==1)))){ + a15 = 0; + a18 = 1; + a3 = 4; + a5 = 1; + a12 = 12; + return 21; + } else if((!(a15==1)&&((a12==9)&&(((((((!(a4==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==5)))&&!(a5==1))&&!(a27==1))&&(a3==8))&&!(a0==1))&&!(a6==1))&&(a20==1))))){ + a22 = 0; + a12 = 8; + a5 = 1; + a4 = 1; + a15 = 1; + a3 = 4; + a0 = 1; + a27 = 1; + a18 = 0; + return -1; + } else if(((((a3==6)&&((a20==1)&&(!(a22==1)&&((!(a27==1)&&((!(a4==1)&&((a5==1)&&((input==1)&&(a0==1))))&&(a12==9)))&&(a15==1)))))&&(a18==1))&&(a6==1))){ + if((a0==1)){ + a6 = 0; + a0 = 0; + a3 = 8; + a15 = 0; + a27 = 1; + }else{ + a4 = 1; + a18 = 0; + a27 = 1; + a15 = 0; + a12 = 11; + } + return -1; + } else if(((!(a4==1)&&((a12==12)&&((a0==1)&&((((a3==8)&&(((a20==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==5)))&&!(a6==1)))&&!(a15==1))&&(a27==1)))))&&(a5==1))){ + if((a5==1)){ + a15 = 1; + a12 = 11; + a5 = 0; + a22 = 1; + a6 = 1; + a18 = 1; + a4 = 1; + a0 = 0; + }else{ + a22 = 0; + a6 = 1; + a0 = 0; + a12 = 10; + a3 = 6; + a18 = 1; + } + return 26; + } else if(((a20==1)&&((a12==10)&&(!(a0==1)&&(!(a5==1)&&((a15==1)&&((a6==1)&&(((!(a27==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==6)))&&(a3==6))&&!(a4==1))))))))){ + a18 = 0; + a22 = 0; + a27 = 1; + a0 = 1; + a6 = 0; + a12 = 8; + a5 = 1; + a3 = 4; + return 24; + } else if(((!(a4==1)&&((((a27==1)&&(((a12==12)&&((a3==8)&&((a20==1)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==1)))))&&!(a6==1)))&&!(a15==1))&&(a0==1)))&&!(a5==1))){ + a22 = 1; + a5 = 1; + a4 = 1; + a3 = 4; + a15 = 1; + a6 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((((a20==1)&&((((!(a27==1)&&(((!(a6==1)&&(((a22==1)&&!(a18==1))&&(a3==4)))||((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1))))&&(input==2)))&&(a15==1))&&!(a4==1))&&!(a5==1)))&&!(a0==1))&&(a12==11))){ + if((a27==1)){ + a6 = 1; + a22 = 0; + a5 = 1; + a18 = 0; + a3 = 7; + }else{ + a27 = 1; + a15 = 0; + a12 = 10; + a18 = 0; + a6 = 0; + a5 = 1; + a3 = 8; + a22 = 1; + } + return 21; + } else if(((!(a6==1)&&((a12==12)&&(((((!(a0==1)&&((a27==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==1))))&&(a3==6))&&(a20==1))&&!(a5==1))&&!(a15==1))))&&!(a4==1))){ + if((a15==1)){ + a6 = 1; + a4 = 1; + a15 = 1; + a22 = 0; + a18 = 1; + a3 = 7; + a5 = 1; + a0 = 1; + a12 = 8; + }else{ + a15 = 1; + a18 = 0; + a5 = 1; + a0 = 1; + a12 = 8; + a6 = 1; + a22 = 0; + } + return -1; + } else if(((a27==1)&&((((a3==4)&&((a6==1)&&(!(a0==1)&&((a12==9)&&((a15==1)&&((((a22==1)&&(input==5))&&!(a4==1))&&(a20==1)))))))&&!(a18==1))&&(a5==1)))){ + a12 = 8; + a4 = 1; + a0 = 1; + a18 = 1; + return -1; + } else if((((((!(a27==1)&&(!(a22==1)&&((((a6==1)&&((a12==8)&&((input==1)&&((a18==1)||!(a18==1)))))&&(a3==6))&&(a4==1))))&&(a20==1))&&(a0==1))&&(a15==1))&&(a5==1))){ + if((a18==1)){ + a3 = 8; + a6 = 0; + a12 = 11; + a18 = 1; + a22 = 1; + a5 = 0; + a27 = 1; + a0 = 0; + }else{ + a3 = 5; + a27 = 1; + a12 = 11; + a22 = 1; + a18 = 0; + a5 = 0; + a4 = 0; + } + return -1; + } else if(((a12==8)&&(!(a15==1)&&((((a0==1)&&(((a20==1)&&((!(a27==1)&&(!(a22==1)&&(((a18==1)||!(a18==1))&&(input==4))))&&(a6==1)))&&(a4==1)))&&(a5==1))&&(a3==6))))){ + a4 = 0; + a22 = 1; + a12 = 10; + a5 = 0; + a18 = 1; + a0 = 0; + a27 = 1; + a3 = 8; + return 26; + } else if(((a5==1)&&(!(a6==1)&&(((((a12==12)&&((a3==7)&&((a27==1)&&(((a20==1)&&((input==3)&&((a18==1)||!(a18==1))))&&!(a15==1)))))&&!(a0==1))&&!(a22==1))&&!(a4==1))))){ + a3 = 8; + a27 = 0; + a22 = 1; + a0 = 1; + a18 = 0; + return 21; + } else if((((a3==7)&&((a0==1)&&(!(a5==1)&&((a18==1)&&((a12==12)&&((((a6==1)&&(((input==5)&&(a4==1))&&(a22==1)))&&(a20==1))&&(a15==1)))))))&&!(a27==1))){ + a22 = 0; + a3 = 6; + a4 = 0; + a6 = 0; + a5 = 1; + a12 = 8; + return -1; + } else if((((((a0==1)&&(((a6==1)&&((((((a20==1)&&(input==5))&&!(a18==1))&&!(a22==1))&&(a5==1))&&!(a15==1)))&&(a12==12)))&&!(a4==1))&&!(a27==1))&&(a3==6))){ + a27 = 1; + a0 = 0; + a18 = 1; + a3 = 8; + a12 = 8; + return 21; + } else if(((((a3==7)&&((a20==1)&&(!(a22==1)&&(!(a5==1)&&(!(a0==1)&&(!(a6==1)&&(((a12==9)&&((input==2)&&!(a4==1)))&&!(a27==1))))))))&&(a18==1))&&!(a15==1))){ + a3 = 4; + a5 = 1; + a18 = 0; + a4 = 1; + a22 = 1; + a12 = 10; + return 21; + } else if(((a20==1)&&(!(a5==1)&&((((a12==12)&&(((input==6)&&((((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1)))&&(a6==1))||((!(a6==1)&&((((a18==1)&&!(a22==1))&&(a4==1))&&(a3==8)))||((((a4==1)&&(!(a22==1)&&!(a18==1)))&&(a3==8))&&!(a6==1)))))&&(a0==1)))&&!(a15==1))&&(a27==1))))){ + a15 = 1; + a22 = 1; + a6 = 1; + a18 = 1; + a4 = 1; + a5 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((!(a6==1)&&((!(a27==1)&&((!(a0==1)&&((((!(a5==1)&&((a20==1)&&(input==4)))&&(a15==1))&&(a22==1))&&(a18==1)))&&(a4==1)))&&(a12==9)))&&(a3==7))){ + a22 = 0; + a0 = 1; + a3 = 4; + a15 = 0; + a18 = 0; + return -1; + } else if((!(a4==1)&&((a6==1)&&((a3==5)&&(((a5==1)&&((a0==1)&&(!(a18==1)&&(((!(a27==1)&&((a20==1)&&(input==2)))&&(a22==1))&&!(a15==1)))))&&(a12==12)))))){ + a15 = 1; + a18 = 1; + a5 = 0; + a12 = 11; + a3 = 8; + a27 = 1; + return -1; + } else if(((!(a4==1)&&((a15==1)&&(((((a12==8)&&(((((a18==1)&&(input==4))&&!(a22==1))&&!(a0==1))&&(a6==1)))&&(a5==1))&&(a20==1))&&(a3==6))))&&!(a27==1))){ + a12 = 12; + a15 = 0; + a3 = 7; + a0 = 1; + a5 = 0; + a22 = 1; + return -1; + } else if(((a5==1)&&((a4==1)&&((((((((a22==1)&&((a20==1)&&((input==4)&&(a15==1))))&&(a12==11))&&(a3==6))&&(a0==1))&&(a27==1))&&!(a18==1))&&!(a6==1))))){ + a18 = 1; + a12 = 8; + a3 = 4; + a6 = 1; + return -1; + } else if(((a4==1)&&((((((((((a15==1)&&((a22==1)&&(input==5)))&&!(a6==1))&&(a12==9))&&(a20==1))&&!(a0==1))&&!(a18==1))&&(a3==6))&&!(a27==1))&&!(a5==1)))){ + if((a3==5)){ + a4 = 0; + a0 = 1; + a3 = 7; + a18 = 1; + }else{ + a22 = 0; + a12 = 8; + a27 = 1; + a0 = 1; + a3 = 8; + a5 = 1; + } + return -1; + } else if((((a0==1)&&(((a18==1)&&(!(a27==1)&&(!(a22==1)&&((a3==6)&&(((a12==12)&&(!(a4==1)&&((input==3)&&!(a6==1))))&&(a5==1))))))&&(a20==1)))&&(a15==1))){ + a18 = 0; + a3 = 8; + a27 = 1; + a4 = 1; + a6 = 1; + return 21; + } else if(((a3==8)&&((((a22==1)&&((((a5==1)&&(((((input==4)&&!(a27==1))&&(a0==1))&&(a4==1))&&(a18==1)))&&(a20==1))&&!(a6==1)))&&(a12==10))&&!(a15==1)))){ + a27 = 1; + a4 = 0; + a18 = 0; + a22 = 0; + a15 = 1; + return 26; + } else if((((a18==1)&&(((a27==1)&&((a3==7)&&((a0==1)&&(((a4==1)&&(!(a22==1)&&(((input==6)&&!(a15==1))&&(a12==9))))&&(a20==1)))))&&(a5==1)))&&!(a6==1))){ + a22 = 1; + a6 = 1; + a12 = 8; + a3 = 4; + a15 = 1; + return -1; + } else if(((a20==1)&&(((!(a0==1)&&(((a4==1)&&((a27==1)&&((a12==8)&&((input==1)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))))))&&(a6==1)))&&(a15==1))&&(a5==1)))){ + if((a18==1)){ + a3 = 8; + a5 = 0; + a22 = 1; + a18 = 1; + a12 = 10; + a6 = 0; + a4 = 0; + }else{ + a18 = 1; + a12 = 11; + a22 = 1; + a3 = 7; + } + return -1; + } else if(((((!(a6==1)&&(((!(a4==1)&&((((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a27==1))&&!(a5==1)))&&(a15==1))&&(a12==8)))&&(a3==5))&&(a20==1))&&!(a0==1))){ + a4 = 1; + a22 = 1; + a6 = 1; + a5 = 1; + a0 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((((a27==1)&&(((a12==10)&&((((((input==6)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a3==6))&&!(a5==1))&&!(a15==1))&&(a0==1)))&&(a20==1)))&&!(a4==1))&&(a6==1))){ + a4 = 1; + a15 = 1; + a22 = 0; + a6 = 0; + a18 = 1; + return -1; + } else if(((((a27==1)&&(!(a15==1)&&((a6==1)&&(((!(a0==1)&&((a12==8)&&((input==6)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&(a20==1))&&(a3==6)))))&&!(a4==1))&&!(a5==1))){ + a15 = 1; + a22 = 1; + a5 = 1; + a18 = 1; + a3 = 4; + a4 = 1; + a0 = 1; + return -1; + } else if(((a6==1)&&((a15==1)&&((!(a27==1)&&(((((((((a18==1)||!(a18==1))&&(input==3))&&(a12==9))&&(a0==1))&&(a20==1))&&(a5==1))&&(a4==1))&&(a3==4)))&&(a22==1))))){ + a22 = 0; + a18 = 0; + a27 = 1; + a0 = 0; + a6 = 0; + a15 = 0; + return 26; + } else if((((((a12==8)&&(((((a0==1)&&(((input==2)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&!(a27==1)))&&(a15==1))&&(a20==1))&&(a3==7)))&&!(a5==1))&&(a6==1))&&!(a4==1))){ + a27 = 1; + a5 = 1; + a18 = 1; + a3 = 4; + a4 = 1; + a22 = 1; + return -1; + } else if((!(a0==1)&&((a12==12)&&(!(a5==1)&&((a15==1)&&((a20==1)&&((a4==1)&&((a3==5)&&(((a27==1)&&(((input==3)&&!(a6==1))&&!(a18==1)))&&!(a22==1)))))))))){ + if((a18==1)){ + a12 = 9; + a6 = 1; + a3 = 8; + a5 = 1; + a18 = 1; + a22 = 1; + }else{ + a6 = 1; + a0 = 1; + a5 = 1; + a12 = 10; + a22 = 1; + a3 = 6; + } + return 26; + } else if(((((a15==1)&&((a6==1)&&((((a27==1)&&((a5==1)&&(((((a22==1)&&!(a18==1))&&(a3==6))||(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6))))&&(input==4))))&&(a4==1))&&(a12==12))))&&(a20==1))&&(a0==1))){ + a5 = 0; + a3 = 6; + a22 = 1; + a18 = 0; + return 26; + } else if(((a22==1)&&((((a20==1)&&((((!(a18==1)&&((((a3==5)&&(input==5))&&!(a15==1))&&(a0==1)))&&!(a27==1))&&!(a6==1))&&(a12==10)))&&(a4==1))&&(a5==1)))){ + a3 = 8; + a18 = 1; + a4 = 0; + a12 = 11; + return 21; + } else if((!(a5==1)&&(((a18==1)&&((a22==1)&&(((a6==1)&&((a20==1)&&(((a12==12)&&((a0==1)&&((input==3)&&(a3==8))))&&(a4==1))))&&(a27==1))))&&(a15==1)))){ + a4 = 0; + a0 = 0; + a6 = 0; + a12 = 10; + return -1; + } else if(((((a12==10)&&((((a3==6)&&(!(a15==1)&&(((((input==2)&&((a18==1)||!(a18==1)))&&(a0==1))&&!(a4==1))&&(a6==1))))&&!(a22==1))&&(a27==1)))&&(a20==1))&&(a5==1))){ + a5 = 0; + a18 = 1; + a27 = 0; + a22 = 1; + a3 = 7; + a12 = 9; + a6 = 0; + return 21; + } else if(((a27==1)&&(!(a6==1)&&(((!(a5==1)&&((a3==6)&&((a20==1)&&(!(a4==1)&&(!(a0==1)&&((input==3)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))))))))&&(a15==1))&&(a12==12))))){ + a22 = 1; + a0 = 1; + a5 = 1; + a4 = 1; + a12 = 8; + a18 = 1; + return 26; + } else if((!(a5==1)&&((a3==4)&&(((a27==1)&&((!(a6==1)&&((((a15==1)&&((input==5)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&(a20==1))&&!(a4==1)))&&(a12==9)))&&!(a0==1))))){ + a22 = 0; + a3 = 5; + a0 = 1; + a15 = 0; + a18 = 0; + a6 = 1; + a5 = 1; + return 24; + } else if(((((((!(a15==1)&&((a20==1)&&((a4==1)&&(((a12==11)&&((input==2)&&((a18==1)||!(a18==1))))&&!(a5==1)))))&&(a3==7))&&!(a22==1))&&(a27==1))&&!(a0==1))&&(a6==1))){ + a22 = 1; + a12 = 8; + a3 = 4; + a0 = 1; + a18 = 1; + a15 = 1; + a5 = 1; + return -1; + } else if((!(a0==1)&&((((a4==1)&&((a5==1)&&(((a20==1)&&((input==5)&&(((((a22==1)&&!(a18==1))&&(a3==4))&&!(a6==1))||(((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1))))))&&(a12==11))))&&!(a27==1))&&(a15==1)))){ + a0 = 1; + a22 = 1; + a27 = 1; + a12 = 8; + a3 = 7; + a6 = 1; + a18 = 1; + a4 = 0; + return -1; + } else if((((!(a5==1)&&((a12==8)&&(!(a15==1)&&((a20==1)&&(!(a27==1)&&(((a3==8)&&((input==3)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a6==1)))))))&&!(a0==1))&&!(a4==1))){ + a0 = 1; + a3 = 5; + a18 = 0; + a22 = 1; + return 26; + } else if(((a12==10)&&(!(a27==1)&&(!(a5==1)&&((a3==5)&&((a6==1)&&(((a20==1)&&(((a4==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==1)))&&(a0==1)))&&(a15==1)))))))){ + a27 = 1; + a18 = 1; + a6 = 0; + a22 = 0; + a4 = 0; + a15 = 0; + a12 = 11; + return 21; + } else if(((a3==7)&&((a4==1)&&(((a12==11)&&((a0==1)&&((a15==1)&&((a20==1)&&(((a27==1)&&((input==4)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))&&(a5==1))))))&&(a6==1))))){ + a12 = 8; + a3 = 4; + a18 = 1; + a22 = 1; + return -1; + } else if(((a6==1)&&((((((a3==8)&&(!(a22==1)&&((((a27==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a20==1))&&(a12==10))))&&!(a15==1))&&(a0==1))&&(a4==1))&&(a5==1)))){ + a3 = 5; + a18 = 0; + a5 = 0; + a27 = 0; + a6 = 0; + a12 = 9; + return 24; + } else if((((a20==1)&&(((((((((input==3)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a27==1))&&!(a5==1))&&(a15==1))&&!(a4==1))&&!(a6==1))&&!(a0==1))&&(a12==10)))&&(a3==8))){ + a0 = 1; + a4 = 1; + a12 = 11; + a5 = 1; + a18 = 0; + a22 = 1; + a15 = 0; + return 26; + } else if(((a12==11)&&((a5==1)&&(!(a4==1)&&(((!(a15==1)&&((((input==4)&&((((a22==1)&&(a18==1))&&(a3==6))||(((!(a22==1)&&(a18==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5)))))&&!(a27==1))&&(a20==1)))&&!(a0==1))&&!(a6==1)))))){ + a27 = 1; + a18 = 0; + a4 = 1; + a3 = 7; + a15 = 1; + a12 = 8; + a22 = 0; + a0 = 1; + return 26; + } else if((!(a4==1)&&((!(a0==1)&&((a20==1)&&(!(a6==1)&&(!(a15==1)&&((a12==8)&&((((input==1)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a3==6))&&(a27==1)))))))&&(a5==1)))){ + if((a18==1)){ + a5 = 0; + a6 = 1; + a4 = 1; + a18 = 0; + a3 = 4; + a12 = 10; + a22 = 1; + }else{ + a22 = 1; + a18 = 0; + a3 = 7; + a12 = 9; + a6 = 1; + } + return 21; + } else if((((((a3==5)&&((!(a15==1)&&((((a12==8)&&(!(a5==1)&&((input==3)&&((a18==1)||!(a18==1)))))&&(a4==1))&&!(a0==1)))&&!(a22==1)))&&(a20==1))&&(a27==1))&&!(a6==1))){ + a6 = 1; + a18 = 1; + a15 = 1; + a22 = 1; + a0 = 1; + a5 = 1; + a3 = 4; + return -1; + } else if(((((a20==1)&&(!(a0==1)&&(!(a5==1)&&((input==4)&&((((a3==8)&&(((!(a18==1)&&!(a22==1))&&(a15==1))&&!(a4==1)))&&!(a6==1))||(((a3==4)&&((a4==1)&&(((a18==1)&&(a22==1))&&!(a15==1))))&&(a6==1)))))))&&(a27==1))&&(a12==8))){ + a18 = 1; + a5 = 1; + a4 = 1; + a6 = 1; + a3 = 4; + a15 = 1; + a0 = 1; + a22 = 1; + return -1; + } else if(((!(a5==1)&&((!(a4==1)&&((((((a12==9)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==5)))&&!(a0==1))&&!(a27==1))&&!(a6==1))&&(a3==6)))&&!(a15==1)))&&(a20==1))){ + if((a18==1)){ + a15 = 1; + a4 = 1; + a22 = 0; + a5 = 1; + a27 = 1; + a18 = 0; + a0 = 1; + a12 = 8; + a6 = 1; + a3 = 8; + }else{ + a15 = 1; + a27 = 1; + a22 = 0; + a18 = 0; + a0 = 1; + a12 = 12; + } + return 21; + } else if(((((((((((a20==1)&&((input==6)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))&&(a3==5))&&(a12==10))&&!(a6==1))&&(a4==1))&&(a15==1))&&!(a5==1))&&!(a27==1))&&!(a0==1))){ + a18 = 0; + a22 = 0; + a0 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if(((((((a27==1)&&((a4==1)&&((a12==8)&&(((input==5)&&(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1)))))&&(a5==1)))))&&(a20==1))&&(a6==1))&&(a15==1))&&!(a0==1))){ + a22 = 0; + a3 = 5; + a12 = 10; + a18 = 1; + return 26; + } else if(((a15==1)&&((a12==12)&&((a5==1)&&((((((((((a3==7)&&(!(a22==1)&&(a18==1)))||((a3==7)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==1))&&(a4==1))&&(a0==1))&&!(a27==1))&&!(a6==1))&&(a20==1)))))){ + a27 = 1; + a6 = 1; + a18 = 0; + a0 = 0; + a12 = 9; + a22 = 1; + a5 = 0; + a3 = 5; + return 26; + } else if(((a22==1)&&((a5==1)&&((a6==1)&&((a27==1)&&(((((a12==8)&&(!(a4==1)&&((a3==6)&&((input==6)&&((a18==1)||!(a18==1))))))&&(a15==1))&&!(a0==1))&&(a20==1))))))){ + a0 = 1; + a6 = 0; + a18 = 1; + a3 = 4; + a12 = 11; + a4 = 1; + return 26; + } else if(((a3==6)&&((a6==1)&&(((a15==1)&&((a12==8)&&((!(a27==1)&&((a0==1)&&(!(a4==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==4)))))&&(a20==1))))&&!(a5==1))))){ + a15 = 0; + a18 = 0; + a22 = 0; + return 26; + } else if((!(a4==1)&&((a5==1)&&(((((((!(a27==1)&&((input==2)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a3==7))&&!(a15==1))&&(a20==1))&&(a12==10))&&(a0==1))&&!(a6==1))))){ + a12 = 8; + a18 = 1; + a3 = 4; + a22 = 1; + a4 = 1; + a27 = 1; + a15 = 1; + a6 = 1; + return -1; + } else if((!(a15==1)&&((a27==1)&&(!(a4==1)&&(((a3==5)&&((((!(a6==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==4)))&&(a12==10))&&(a0==1))&&(a5==1)))&&(a20==1)))))){ + a6 = 1; + a22 = 0; + a4 = 1; + a3 = 4; + a18 = 1; + a15 = 1; + return -1; + } else if(((((a12==9)&&((a3==5)&&(!(a0==1)&&(((!(a5==1)&&(((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a4==1)))&&(a15==1))&&(a20==1)))))&&!(a6==1))&&!(a27==1))){ + a3 = 6; + a12 = 8; + a0 = 1; + a15 = 0; + a18 = 0; + a22 = 1; + a4 = 1; + return -1; + } else if((((((a15==1)&&((a20==1)&&((((((a27==1)&&((a0==1)&&(input==1)))&&!(a6==1))&&(a12==11))&&(a22==1))&&(a3==8))))&&!(a4==1))&&(a18==1))&&!(a5==1))){ + if((a15==1)){ + a0 = 0; + a12 = 12; + a22 = 0; + a5 = 1; + }else{ + a12 = 10; + a3 = 7; + a5 = 1; + } + return -1; + } else if(((a15==1)&&(((!(a0==1)&&(((a27==1)&&(((a12==12)&&((a6==1)&&((input==6)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&(a3==6)))&&(a20==1)))&&(a4==1))&&(a5==1)))){ + a22 = 0; + a6 = 0; + a0 = 1; + a3 = 5; + a18 = 1; + a15 = 0; + return -1; + } else if((((((a20==1)&&(((a12==10)&&((a6==1)&&(!(a15==1)&&((((((a18==1)&&!(a22==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==2)))))&&!(a27==1)))&&!(a0==1))&&(a5==1))&&!(a4==1))){ + a27 = 1; + a18 = 0; + a15 = 1; + a22 = 1; + a4 = 1; + a3 = 7; + a5 = 0; + a6 = 0; + return -1; + } else if((!(a0==1)&&((a5==1)&&((a15==1)&&(((a3==6)&&(((a12==10)&&(((a20==1)&&(!(a27==1)&&(!(a4==1)&&(input==3))))&&!(a22==1)))&&!(a18==1)))&&(a6==1)))))){ + if((a5==1)){ + a12 = 8; + a27 = 1; + a0 = 1; + a3 = 5; + }else{ + a12 = 8; + a4 = 1; + a18 = 1; + a0 = 1; + a27 = 1; + } + return 21; + } else if(((!(a6==1)&&((!(a0==1)&&((a20==1)&&((((!(a15==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==6)))&&(a5==1))&&(a4==1))&&(a3==7))))&&(a27==1)))&&(a12==9))){ + a6 = 1; + a12 = 8; + a0 = 1; + a18 = 1; + a22 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if(((a5==1)&&((a27==1)&&((((a20==1)&&((a12==12)&&(((input==5)&&((((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4)))))&&(a4==1))))&&!(a0==1))&&!(a15==1))))){ + a22 = 0; + a0 = 1; + a3 = 6; + a18 = 0; + a4 = 0; + a15 = 1; + a6 = 1; + return -1; + } else if((((a27==1)&&((((a15==1)&&(((((input==1)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))||((a3==8)&&((a22==1)&&!(a18==1)))))&&(a12==12))&&(a5==1))&&(a0==1)))&&(a4==1))&&(a6==1)))&&(a20==1))){ + a5 = 0; + a3 = 8; + a18 = 1; + a27 = 0; + a15 = 0; + a4 = 0; + a12 = 11; + a6 = 0; + a22 = 0; + return 26; + } else if(((a5==1)&&((a20==1)&&((a27==1)&&((a12==12)&&(((a15==1)&&((!(a0==1)&&(((input==5)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a3==5)))&&(a6==1)))&&!(a4==1))))))){ + a18 = 1; + a6 = 0; + a22 = 0; + a3 = 7; + a0 = 1; + a27 = 0; + a12 = 8; + return -1; + } else if((!(a18==1)&&(!(a0==1)&&((((!(a22==1)&&(((a12==9)&&((a20==1)&&((a3==7)&&((input==3)&&!(a27==1)))))&&(a6==1)))&&!(a15==1))&&!(a5==1))&&!(a4==1))))){ + a0 = 1; + a27 = 1; + a3 = 8; + return 21; + } else if(((((((a6==1)&&(!(a0==1)&&((((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==2))&&!(a5==1))&&!(a15==1))))&&(a4==1))&&(a12==12))&&(a20==1))&&(a27==1))){ + if((a15==1)){ + a3 = 7; + a22 = 1; + a15 = 1; + a18 = 0; + a12 = 11; + }else{ + a22 = 1; + a4 = 0; + a3 = 5; + a6 = 0; + a18 = 0; + } + return -1; + } else if(((a12==10)&&((a15==1)&&((a4==1)&&((a27==1)&&((((((input==3)&&(((((a18==1)&&!(a22==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))||((a3==5)&&((a18==1)&&(a22==1)))))&&(a5==1))&&!(a0==1))&&!(a6==1))&&(a20==1))))))){ + a5 = 0; + a0 = 1; + a6 = 1; + a3 = 6; + a15 = 0; + a18 = 0; + a22 = 1; + return -1; + } else if(((a20==1)&&(((a15==1)&&(!(a4==1)&&(((!(a5==1)&&((a0==1)&&(((input==5)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&(a12==8))))&&!(a6==1))&&(a3==4))))&&(a27==1)))){ + a5 = 1; + a22 = 1; + a4 = 1; + a6 = 1; + a18 = 1; + return -1; + } else if((!(a5==1)&&((a4==1)&&(((a27==1)&&((a0==1)&&(((a6==1)&&((a20==1)&&((((!(a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1)))))&&(input==5))))&&(a12==11))))&&!(a15==1))))){ + a6 = 0; + a22 = 1; + a3 = 6; + a18 = 1; + return 24; + } else if(((a5==1)&&((a27==1)&&((a3==4)&&((a6==1)&&((a18==1)&&((!(a22==1)&&(((((a12==11)&&(input==4))&&(a20==1))&&(a15==1))&&(a4==1)))&&!(a0==1)))))))){ + a27 = 0; + a18 = 0; + a12 = 9; + a0 = 1; + a4 = 0; + a3 = 5; + return -1; + } else if(((a3==8)&&((((a20==1)&&((!(a0==1)&&((a4==1)&&((a22==1)&&((((a27==1)&&(input==2))&&!(a6==1))&&(a12==10)))))&&(a18==1)))&&(a5==1))&&!(a15==1)))){ + a3 = 6; + a18 = 0; + a5 = 0; + a6 = 1; + a4 = 0; + a0 = 1; + return -1; + } else if(((a3==4)&&((((a27==1)&&((a4==1)&&((((a20==1)&&((a12==9)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==2))))&&!(a15==1))&&!(a0==1))))&&!(a6==1))&&(a5==1)))){ + a5 = 0; + a12 = 10; + a0 = 1; + a18 = 0; + a22 = 0; + a3 = 6; + return -1; + } else if(((!(a0==1)&&(((((a15==1)&&((a27==1)&&((a12==9)&&(((input==4)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&(a20==1)))))&&(a3==7))&&(a6==1))&&(a5==1)))&&(a4==1))){ + a12 = 10; + a0 = 1; + a15 = 0; + a3 = 5; + a22 = 0; + a4 = 0; + a18 = 1; + return -1; + } else if(((a5==1)&&((((a20==1)&&(((((a4==1)&&((input==6)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5)))))&&(a27==1))&&(a12==8))&&!(a15==1)))&&(a6==1))&&(a0==1)))){ + a4 = 0; + a6 = 0; + a3 = 8; + a18 = 0; + a22 = 1; + return 24; + } else if((!(a18==1)&&((a5==1)&&((a6==1)&&((a22==1)&&(((a12==9)&&((a20==1)&&(((!(a0==1)&&((a4==1)&&(input==4)))&&!(a15==1))&&(a3==6))))&&(a27==1))))))){ + a3 = 4; + a0 = 1; + a18 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if((((!(a4==1)&&((((((a3==6)&&((!(a0==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a6==1)))&&(a5==1))&&(a22==1))&&(a15==1))&&(a12==8)))&&(a27==1))&&(a20==1))){ + a22 = 0; + a5 = 0; + a0 = 1; + a18 = 0; + a4 = 1; + a3 = 4; + a12 = 10; + a15 = 0; + return 26; + } else if(((a20==1)&&(((a5==1)&&((a4==1)&&((!(a15==1)&&((((a0==1)&&(((a18==1)&&(input==2))&&(a27==1)))&&(a3==4))&&(a22==1)))&&(a6==1))))&&(a12==10)))){ + a12 = 8; + a15 = 1; + return -1; + } else if((((((a20==1)&&(((input==3)&&(((((a3==8)&&(((!(a18==1)&&!(a22==1))&&(a15==1))&&!(a4==1)))&&!(a6==1))||((((((a22==1)&&(a18==1))&&!(a15==1))&&(a4==1))&&(a3==4))&&(a6==1)))||((a6==1)&&(((((a22==1)&&!(a18==1))&&!(a15==1))&&(a4==1))&&(a3==4)))))&&(a12==12)))&&(a0==1))&&!(a5==1))&&(a27==1))){ + a4 = 1; + a15 = 1; + a12 = 8; + a6 = 0; + a0 = 0; + a3 = 5; + a22 = 0; + a18 = 0; + return 24; + } else if(((a0==1)&&((((((((a12==9)&&(!(a4==1)&&((input==5)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))&&(a20==1))&&(a6==1))&&(a15==1))&&(a3==5))&&!(a5==1))&&!(a27==1)))){ + a3 = 4; + a18 = 1; + a27 = 1; + a12 = 8; + a22 = 1; + a4 = 1; + a5 = 1; + return -1; + } else if((((a15==1)&&(((!(a4==1)&&(!(a5==1)&&(!(a0==1)&&(((((a3==8)&&(!(a18==1)&&(a22==1)))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8))))&&(input==3))&&(a6==1)))))&&(a20==1))&&(a12==12)))&&(a27==1))){ + a22 = 1; + a3 = 5; + a12 = 8; + a18 = 0; + a0 = 1; + a5 = 1; + a4 = 1; + return 21; + } else if(((a3==8)&&(((a20==1)&&((!(a5==1)&&(((a4==1)&&((a6==1)&&((a12==12)&&((input==5)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))&&(a27==1)))&&!(a15==1)))&&(a0==1)))){ + a18 = 1; + a15 = 1; + a5 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + return -1; + } else if((((a3==7)&&(((a22==1)&&((a15==1)&&(((a4==1)&&((a12==8)&&((a5==1)&&(((input==4)&&(a18==1))&&!(a27==1)))))&&!(a0==1))))&&(a6==1)))&&(a20==1))){ + if((a5==1)){ + a22 = 0; + a18 = 0; + a27 = 1; + a12 = 12; + a4 = 0; + a0 = 1; + a6 = 0; + }else{ + a0 = 1; + a18 = 0; + a3 = 5; + a6 = 0; + a22 = 0; + a27 = 1; + } + return 26; + } else if(((a0==1)&&((a27==1)&&((a20==1)&&((((((a4==1)&&((((a5==1)&&((a22==1)&&(a18==1)))&&(a15==1))&&(a12==9)))&&(a3==4))&&(a6==1))||((!(a6==1)&&((((((!(a22==1)&&(a18==1))&&!(a5==1))&&!(a15==1))&&(a12==8))&&!(a4==1))&&(a3==8)))||(!(a6==1)&&(((((!(a5==1)&&(!(a18==1)&&!(a22==1)))&&!(a15==1))&&(a12==8))&&!(a4==1))&&(a3==8)))))&&(input==3)))))){ + a15 = 1; + a18 = 0; + a4 = 0; + a6 = 0; + a22 = 1; + a12 = 11; + a3 = 5; + a5 = 0; + return 21; + } else if(((!(a6==1)&&(((a3==4)&&(!(a18==1)&&(((((a27==1)&&(((input==3)&&(a22==1))&&!(a4==1)))&&(a5==1))&&(a0==1))&&(a12==9))))&&(a15==1)))&&(a20==1))){ + a3 = 8; + a5 = 0; + a4 = 1; + a12 = 11; + a22 = 0; + a6 = 1; + return 24; + } else if(((((a3==5)&&(!(a4==1)&&(((!(a5==1)&&((((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a6==1))&&(a12==10)))&&(a0==1))&&(a20==1))))&&(a27==1))&&(a15==1))){ + a5 = 1; + a4 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + return -1; + } else if(((!(a15==1)&&(((a0==1)&&((a27==1)&&((((a22==1)&&((a20==1)&&((a18==1)&&((input==6)&&(a3==5)))))&&!(a5==1))&&!(a6==1))))&&(a12==11)))&&!(a4==1))){ + a6 = 1; + a12 = 8; + a15 = 1; + a4 = 1; + a5 = 1; + a3 = 4; + return -1; + } else if((!(a27==1)&&(!(a6==1)&&(((a22==1)&&((!(a15==1)&&((a0==1)&&(((a12==12)&&((((a18==1)||!(a18==1))&&(input==5))&&(a20==1)))&&!(a4==1))))&&(a3==4)))&&(a5==1))))){ + a6 = 1; + a4 = 1; + a15 = 1; + a27 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if((!(a5==1)&&(((a15==1)&&(((a3==4)&&(((a18==1)&&(!(a4==1)&&((a6==1)&&(!(a22==1)&&((input==2)&&(a12==9))))))&&(a20==1)))&&(a27==1)))&&(a0==1)))){ + a4 = 1; + a18 = 0; + a27 = 0; + a3 = 8; + a12 = 8; + return 26; + } else if((((a0==1)&&((((a15==1)&&((a6==1)&&(((a12==9)&&((((input==3)&&(a20==1))&&!(a18==1))&&(a3==7)))&&!(a27==1))))&&!(a22==1))&&!(a4==1)))&&(a5==1))){ + a5 = 0; + a22 = 1; + a12 = 8; + return -1; + } else if((((a27==1)&&(!(a6==1)&&(((a20==1)&&(!(a22==1)&&((a15==1)&&((a5==1)&&((a12==8)&&((a18==1)&&(!(a0==1)&&(input==6))))))))&&(a3==4))))&&!(a4==1))){ + a4 = 1; + a12 = 10; + a0 = 1; + a3 = 7; + a5 = 0; + return -1; + } else if(((a3==6)&&((a12==10)&&(((a15==1)&&((((((a20==1)&&((((a18==1)||!(a18==1))&&(input==3))&&(a27==1)))&&(a6==1))&&!(a5==1))&&!(a4==1))&&(a22==1)))&&(a0==1))))){ + a18 = 1; + a12 = 8; + a5 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if(((((((((((!(a18==1)&&((input==3)&&(a3==4)))&&(a22==1))&&(a5==1))&&!(a15==1))&&!(a0==1))&&(a27==1))&&(a6==1))&&(a12==11))&&(a20==1))&&(a4==1))){ + a3 = 7; + a5 = 0; + a0 = 1; + a12 = 8; + a27 = 0; + a15 = 1; + a22 = 0; + a6 = 0; + return -1; + } else if(((a0==1)&&((((a3==6)&&(((((a6==1)&&((a12==9)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==6))))&&(a20==1))&&!(a4==1))&&!(a15==1)))&&(a5==1))&&(a27==1)))){ + a6 = 0; + a15 = 1; + a3 = 7; + a22 = 0; + a4 = 1; + a12 = 8; + a27 = 0; + a18 = 1; + return 24; + } else if(((a20==1)&&((((a0==1)&&((a12==11)&&((a5==1)&&((a4==1)&&(((((((a18==1)&&!(a22==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5)))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==5))&&!(a27==1))))))&&!(a15==1))&&!(a6==1)))){ + a3 = 4; + a15 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + a27 = 1; + a6 = 1; + return -1; + } else if((((!(a5==1)&&(!(a22==1)&&(((!(a27==1)&&((a3==7)&&((a20==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&!(a4==1)))))&&!(a6==1))&&(a15==1))))&&(a0==1))&&(a12==12))){ + a4 = 1; + a3 = 4; + a5 = 1; + a18 = 1; + a22 = 1; + a27 = 1; + a12 = 8; + a6 = 1; + return -1; + } else if((((a12==9)&&(((a0==1)&&((((((((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8))&&!(a6==1))||((a6==1)&&((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))))&&(input==2))&&!(a15==1))&&(a20==1)))&&!(a27==1)))&&(a5==1))){ + a3 = 4; + a4 = 0; + a18 = 0; + a15 = 1; + a12 = 10; + a22 = 1; + a6 = 1; + return 21; + } else if((((((a20==1)&&((!(a4==1)&&((((((a6==1)&&((a3==8)&&((a18==1)&&!(a22==1))))||((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1)))))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4))))&&(input==6))&&(a5==1)))&&!(a15==1)))&&!(a27==1))&&(a12==10))&&(a0==1))){ + a6 = 1; + a27 = 1; + a3 = 8; + a4 = 1; + a18 = 0; + a5 = 0; + a22 = 1; + return 21; + } else if(((a20==1)&&(((a3==5)&&(((a0==1)&&(!(a15==1)&&(((a5==1)&&(((a12==12)&&((input==1)&&!(a6==1)))&&!(a4==1)))&&!(a22==1))))&&(a18==1)))&&(a27==1)))){ + a12 = 8; + a15 = 1; + a22 = 1; + a4 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if(((!(a6==1)&&(((a3==8)&&(!(a15==1)&&((((a27==1)&&((a20==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==5))))&&(a4==1))&&!(a5==1))))&&!(a0==1)))&&(a12==10))){ + a0 = 1; + a6 = 1; + a12 = 12; + a22 = 0; + a18 = 1; + return 21; + } else if((((a20==1)&&(!(a4==1)&&((((!(a27==1)&&((a3==8)&&((!(a18==1)&&((input==1)&&(a15==1)))&&(a6==1))))&&(a12==11))&&!(a0==1))&&(a5==1))))&&!(a22==1))){ + a3 = 4; + a22 = 1; + a4 = 1; + a0 = 1; + a18 = 1; + a12 = 8; + a27 = 1; + return -1; + } else if(((!(a15==1)&&(!(a27==1)&&(!(a5==1)&&((a20==1)&&(((input==3)&&((((((a4==1)&&(!(a22==1)&&(a18==1)))&&(a3==8))&&!(a6==1))||((((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8))&&!(a6==1)))||(((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))&&(a6==1))))&&!(a0==1))))))&&(a12==9))){ + a5 = 1; + a0 = 1; + a15 = 1; + a18 = 1; + a27 = 1; + a22 = 1; + a12 = 8; + a6 = 1; + a3 = 8; + a4 = 1; + return 24; + } else if(((a6==1)&&((a5==1)&&((a15==1)&&(!(a0==1)&&(((a27==1)&&(((a3==5)&&((!(a18==1)&&(!(a22==1)&&(input==3)))&&(a4==1)))&&(a20==1)))&&(a12==11))))))){ + a27 = 0; + a4 = 0; + a22 = 1; + a18 = 1; + a0 = 1; + a5 = 0; + a15 = 0; + a12 = 10; + return 24; + } else if(((a27==1)&&((a6==1)&&((a4==1)&&(((((!(a15==1)&&((a20==1)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==1))))&&(a0==1))&&(a12==12))&&!(a5==1))&&(a3==6)))))){ + a3 = 8; + a22 = 0; + a12 = 10; + a5 = 1; + a18 = 1; + return -1; + } else if((!(a27==1)&&(!(a22==1)&&((a20==1)&&((a4==1)&&((((a0==1)&&((a12==9)&&((a18==1)&&((a5==1)&&((input==2)&&(a3==7))))))&&(a6==1))&&(a15==1))))))){ + a3 = 8; + a15 = 0; + a12 = 10; + a5 = 0; + a22 = 1; + a27 = 1; + return 26; + } else if(((((((!(a4==1)&&(((((input==5)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&!(a6==1))&&(a3==4))&&(a0==1)))&&(a15==1))&&!(a27==1))&&(a12==9))&&(a20==1))&&!(a5==1))){ + a12 = 11; + a3 = 5; + a18 = 0; + a22 = 0; + a4 = 1; + return 26; + } else if((((a0==1)&&((a6==1)&&(((!(a27==1)&&((a20==1)&&(!(a18==1)&&((a15==1)&&(((input==3)&&(a3==6))&&(a4==1))))))&&(a12==11))&&!(a22==1))))&&(a5==1))){ + a3 = 7; + a6 = 0; + a5 = 0; + a12 = 12; + a27 = 1; + return 26; + } else if(((((a20==1)&&(!(a6==1)&&((a22==1)&&((a12==8)&&((a15==1)&&((((a5==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&!(a0==1))&&(a3==7)))))))&&(a4==1))&&!(a27==1))){ + if((a4==1)){ + a4 = 0; + a12 = 11; + a6 = 1; + a18 = 0; + a0 = 1; + a3 = 6; + }else{ + a22 = 0; + a6 = 1; + a12 = 10; + a4 = 0; + a18 = 1; + } + return 21; + } else if((((a12==11)&&((a5==1)&&(!(a18==1)&&((!(a0==1)&&((((((a20==1)&&(input==3))&&(a6==1))&&!(a4==1))&&!(a22==1))&&!(a27==1)))&&(a15==1)))))&&(a3==7))){ + if((a0==1)){ + a22 = 1; + a27 = 1; + a6 = 0; + a12 = 8; + a4 = 1; + a0 = 1; + a3 = 4; + a18 = 1; + }else{ + a22 = 1; + a3 = 6; + a4 = 1; + a18 = 1; + a0 = 1; + a27 = 1; + a12 = 8; + } + return -1; + } else if(((!(a6==1)&&((a3==5)&&((!(a4==1)&&(!(a15==1)&&((!(a22==1)&&((!(a0==1)&&((input==2)&&((a18==1)||!(a18==1))))&&(a20==1)))&&(a5==1))))&&(a12==10))))&&!(a27==1))){ + a15 = 1; + a4 = 1; + a18 = 0; + a27 = 1; + a3 = 4; + a0 = 1; + return 26; + } else if((((a0==1)&&((((((a4==1)&&(!(a6==1)&&((!(a18==1)&&((input==5)&&(a5==1)))&&(a3==8))))&&!(a15==1))&&(a20==1))&&(a27==1))&&(a12==12)))&&!(a22==1))){ + a18 = 1; + a12 = 8; + a15 = 1; + a22 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if(((a27==1)&&(!(a15==1)&&(((a12==9)&&((a4==1)&&(!(a0==1)&&((a20==1)&&((input==2)&&((((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1))||((((!(a22==1)&&(a18==1))&&(a3==8))&&(a6==1))||(((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1)))))))))&&!(a5==1))))){ + a22 = 0; + a5 = 1; + a6 = 0; + a3 = 5; + a27 = 0; + a0 = 1; + a4 = 0; + a15 = 1; + a18 = 1; + return 21; + } else if((!(a4==1)&&((((a3==5)&&(((a12==8)&&((a18==1)&&((a5==1)&&((a27==1)&&(!(a0==1)&&((input==5)&&(a20==1)))))))&&!(a6==1)))&&!(a15==1))&&!(a22==1)))){ + a5 = 0; + return 21; + } else if((!(a15==1)&&(!(a4==1)&&((a12==11)&&((((((a6==1)&&(((((a18==1)&&(a22==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a22==1)&&!(a18==1)))))&&(input==3)))&&(a5==1))&&!(a0==1))&&!(a27==1))&&(a20==1)))))){ + a27 = 1; + a3 = 5; + a18 = 0; + a22 = 0; + a4 = 1; + a15 = 1; + a12 = 12; + return -1; + } else if((((a12==9)&&((a15==1)&&((a27==1)&&((((a5==1)&&((((((a3==4)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==4))&&(a6==1)))&&(a4==1))&&(a20==1)))))&&!(a0==1))){ + a0 = 1; + a18 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + return -1; + } else if(((((((a15==1)&&((a20==1)&&((((((input==5)&&((a18==1)||!(a18==1)))&&(a27==1))&&(a5==1))&&(a12==11))&&(a22==1))))&&(a3==4))&&(a4==1))&&(a6==1))&&!(a0==1))){ + a6 = 0; + a5 = 0; + a18 = 1; + a3 = 5; + a12 = 12; + a0 = 1; + a22 = 0; + return 24; + } else if(((a18==1)&&((!(a4==1)&&((a0==1)&&(((a20==1)&&(((((a6==1)&&((input==4)&&(a3==8)))&&(a12==9))&&(a5==1))&&!(a27==1)))&&!(a22==1))))&&(a15==1)))){ + a4 = 1; + a3 = 5; + a12 = 8; + a6 = 0; + return 21; + } else if(((((a15==1)&&(((a22==1)&&(((a20==1)&&((a3==4)&&((((a6==1)&&(input==6))&&(a0==1))&&!(a18==1))))&&(a12==10)))&&(a4==1)))&&!(a5==1))&&!(a27==1))){ + a22 = 0; + a6 = 0; + a0 = 0; + a12 = 9; + a3 = 8; + a18 = 1; + a27 = 1; + return -1; + } else if(((((a0==1)&&((!(a15==1)&&((a20==1)&&(((!(a5==1)&&((input==3)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))))&&!(a4==1))&&!(a27==1))))&&!(a6==1)))&&(a3==4))&&(a12==9))){ + a12 = 8; + a6 = 1; + a4 = 1; + a5 = 1; + a27 = 1; + a18 = 1; + a22 = 1; + a15 = 1; + return -1; + } else if(((a20==1)&&(((((a3==5)&&(((!(a27==1)&&(((input==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&(a0==1)))&&(a5==1))&&(a12==9)))&&!(a4==1))&&!(a6==1))&&!(a15==1)))){ + a15 = 1; + a22 = 1; + a4 = 1; + a3 = 4; + a18 = 1; + a27 = 1; + a12 = 8; + a6 = 1; + return -1; + } else if((((!(a15==1)&&((!(a4==1)&&(((((!(a22==1)&&((a5==1)&&(input==1)))&&(a20==1))&&(a27==1))&&!(a0==1))&&(a12==8)))&&(a6==1)))&&(a3==4))&&!(a18==1))){ + a12 = 11; + a3 = 5; + a5 = 0; + a22 = 1; + a4 = 1; + a18 = 1; + a0 = 1; + return 26; + } else if(((a3==6)&&(((!(a15==1)&&((a6==1)&&((((!(a4==1)&&(!(a18==1)&&((input==4)&&(a22==1))))&&(a20==1))&&!(a5==1))&&(a12==8))))&&(a0==1))&&!(a27==1)))){ + a3 = 7; + a6 = 0; + a12 = 11; + a5 = 1; + a27 = 1; + return 24; + } else if(((!(a15==1)&&((!(a0==1)&&(!(a27==1)&&((a4==1)&&(!(a6==1)&&(((a5==1)&&((input==5)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))&&(a3==4))))))&&(a20==1)))&&(a12==9))){ + a12 = 10; + a22 = 0; + a18 = 0; + a27 = 1; + return -1; + } else if(((a15==1)&&(!(a0==1)&&(((!(a4==1)&&((a12==10)&&((a20==1)&&(((input==5)&&(((a3==5)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1))))))&&(a5==1)))))&&(a27==1))&&!(a6==1))))){ + a3 = 4; + a22 = 1; + a6 = 1; + a4 = 1; + a18 = 1; + a0 = 1; + a12 = 8; + return -1; + } else if((((((a12==9)&&(((a3==6)&&((a0==1)&&(((((input==1)&&(a20==1))&&!(a18==1))&&!(a5==1))&&(a15==1))))&&!(a6==1)))&&(a22==1))&&!(a4==1))&&(a27==1))){ + a3 = 5; + a18 = 1; + a4 = 1; + a12 = 10; + a5 = 1; + a22 = 0; + return 26; + } else if(((a18==1)&&((a22==1)&&((((a27==1)&&((!(a6==1)&&((a3==5)&&(!(a5==1)&&(((a20==1)&&(input==6))&&(a4==1)))))&&!(a15==1)))&&(a0==1))&&(a12==8))))){ + a0 = 0; + a5 = 1; + a3 = 7; + a18 = 0; + a12 = 10; + a22 = 0; + return 21; + } else if((((a20==1)&&(((a27==1)&&((((a15==1)&&(((((a3==7)&&((a18==1)&&(a22==1)))||(((a3==6)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==6))))&&(input==4))&&!(a0==1)))&&(a4==1))&&(a6==1)))&&(a12==11)))&&!(a5==1))){ + a0 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + a5 = 1; + return -1; + } else if((!(a27==1)&&((a4==1)&&(((a12==9)&&((a15==1)&&(((a20==1)&&(((((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==6))&&(a0==1)))&&(a6==1))))&&!(a5==1))))){ + a27 = 1; + a12 = 8; + a5 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + return -1; + } else if((!(a5==1)&&((!(a6==1)&&((((a12==8)&&((!(a27==1)&&(((input==1)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&!(a15==1)))&&!(a0==1)))&&(a3==5))&&(a4==1)))&&(a20==1)))){ + if((a20==1)){ + a18 = 0; + a5 = 1; + a27 = 1; + a0 = 1; + a15 = 1; + a3 = 4; + a22 = 0; + }else{ + a15 = 1; + a5 = 1; + a0 = 1; + a6 = 1; + a22 = 1; + a18 = 0; + a3 = 8; + a27 = 1; + } + return -1; + } else if(((a12==9)&&((((a20==1)&&((a5==1)&&(((a15==1)&&((a3==5)&&((a6==1)&&(!(a0==1)&&((input==2)&&((a18==1)||!(a18==1)))))))&&!(a27==1))))&&!(a4==1))&&!(a22==1)))){ + if((a6==1)){ + a22 = 1; + a12 = 8; + a18 = 0; + a0 = 1; + a6 = 0; + a4 = 1; + a27 = 1; + }else{ + a6 = 0; + a27 = 1; + a18 = 0; + a4 = 1; + a12 = 8; + a3 = 4; + a0 = 1; + } + return -1; + } else if((!(a27==1)&&((a20==1)&&((a15==1)&&((a22==1)&&(!(a0==1)&&((a6==1)&&((((a12==9)&&((((a18==1)||!(a18==1))&&(input==6))&&(a4==1)))&&!(a5==1))&&(a3==5))))))))){ + a27 = 1; + a3 = 8; + a0 = 1; + a4 = 0; + a12 = 8; + a18 = 0; + a5 = 1; + return -1; + } else if((((a20==1)&&(((!(a5==1)&&(((a3==7)&&((a12==12)&&(((a27==1)&&(!(a0==1)&&(input==4)))&&(a18==1))))&&(a15==1)))&&(a4==1))&&(a6==1)))&&(a22==1))){ + a3 = 5; + a12 = 9; + a18 = 0; + a15 = 0; + a5 = 1; + a22 = 0; + a27 = 0; + return 21; + } else if(((a3==6)&&((((a12==8)&&(!(a0==1)&&((((a20==1)&&((a15==1)&&((input==3)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))&&!(a5==1))&&(a4==1))))&&!(a6==1))&&(a27==1)))){ + a3 = 7; + a12 = 10; + a18 = 1; + a0 = 1; + a5 = 1; + a15 = 0; + a6 = 1; + a22 = 1; + return -1; + } else if(((a15==1)&&((!(a5==1)&&((a12==9)&&((!(a4==1)&&((((a27==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==1)))&&(a0==1))&&(a20==1)))&&!(a6==1))))&&(a3==4)))){ + if((a5==1)){ + a5 = 1; + a4 = 1; + a18 = 1; + a12 = 10; + a22 = 1; + a0 = 0; + }else{ + a18 = 1; + a22 = 1; + a12 = 8; + a27 = 0; + a3 = 6; + } + return 24; + } else if(((a15==1)&&((((((a3==5)&&(!(a4==1)&&(((a12==9)&&((input==6)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))&&!(a5==1))))&&(a6==1))&&(a20==1))&&!(a27==1))&&!(a0==1)))){ + a4 = 1; + a27 = 1; + a12 = 8; + a6 = 0; + a18 = 1; + a5 = 1; + a22 = 0; + a0 = 1; + return 24; + } else if((!(a27==1)&&((a22==1)&&((a20==1)&&((a12==12)&&((!(a18==1)&&((((a6==1)&&((a3==8)&&((input==1)&&!(a15==1))))&&(a0==1))&&(a4==1)))&&!(a5==1))))))){ + a12 = 10; + a5 = 1; + a3 = 7; + a4 = 0; + a22 = 0; + a0 = 0; + a15 = 1; + a27 = 1; + return 21; + } else if((((((((a20==1)&&((a12==10)&&((!(a6==1)&&((input==2)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&!(a27==1))))&&!(a5==1))&&(a15==1))&&(a0==1))&&(a4==1))&&(a3==4))){ + a27 = 1; + a5 = 1; + a6 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + return -1; + } else if(((a20==1)&&(!(a5==1)&&((!(a27==1)&&((a3==5)&&(((!(a15==1)&&(((input==2)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&!(a0==1)))&&(a6==1))&&!(a4==1))))&&(a12==10))))){ + if((a27==1)){ + a3 = 7; + a18 = 1; + a15 = 1; + a12 = 11; + a0 = 1; + a22 = 1; + }else{ + a18 = 1; + a0 = 1; + a22 = 0; + a12 = 11; + a5 = 1; + } + return 21; + } else if(((!(a27==1)&&(!(a15==1)&&((!(a5==1)&&(((a6==1)&&((((((a3==7)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==7)))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==1))&&(a12==9)))&&(a4==1)))&&(a0==1))))&&(a20==1))){ + a6 = 0; + a12 = 12; + a5 = 1; + a27 = 1; + a18 = 1; + a3 = 7; + a22 = 0; + return 24; + } else if((!(a0==1)&&(!(a6==1)&&(((a15==1)&&((a4==1)&&((a27==1)&&(((((a12==12)&&(!(a22==1)&&(input==2)))&&!(a18==1))&&(a20==1))&&!(a5==1)))))&&(a3==5))))){ + if((a20==1)){ + a6 = 1; + a12 = 8; + a3 = 8; + a18 = 1; + a5 = 1; + a0 = 1; + }else{ + a5 = 1; + a3 = 4; + a12 = 8; + a0 = 1; + } + return 24; + } else if(((((a12==11)&&((a4==1)&&((a0==1)&&(!(a15==1)&&((!(a5==1)&&(((input==1)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&(a3==8)))&&(a20==1))))))&&!(a6==1))&&(a27==1))){ + a18 = 1; + a5 = 1; + a4 = 0; + a12 = 10; + a6 = 1; + a3 = 6; + a0 = 0; + a22 = 0; + return 26; + } else if((((!(a5==1)&&((((a3==4)&&((a12==10)&&((((a4==1)&&((input==5)&&(a27==1)))&&(a22==1))&&!(a18==1))))&&(a20==1))&&!(a0==1)))&&(a15==1))&&!(a6==1))){ + a0 = 1; + a3 = 8; + a12 = 12; + a5 = 1; + return 21; + } else if(((!(a0==1)&&(((a22==1)&&(((a4==1)&&((((a20==1)&&((a12==9)&&(((a18==1)||!(a18==1))&&(input==3))))&&(a3==5))&&(a6==1)))&&!(a27==1)))&&!(a15==1)))&&(a5==1))){ + if((a5==1)){ + a6 = 0; + a0 = 1; + a15 = 1; + a12 = 8; + a18 = 0; + a27 = 1; + }else{ + a18 = 1; + a0 = 1; + a6 = 0; + a15 = 1; + a27 = 1; + a12 = 8; + a3 = 8; + } + return 21; + } else if(((((a12==10)&&(!(a4==1)&&(((a0==1)&&((a20==1)&&(((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==4))&&(a15==1))))&&!(a5==1))))&&(a6==1))&&(a27==1))){ + if((a4==1)){ + a0 = 0; + a3 = 7; + a15 = 0; + a12 = 8; + a4 = 1; + a18 = 0; + a6 = 0; + a5 = 1; + a22 = 0; + }else{ + a6 = 0; + a15 = 0; + a0 = 0; + a22 = 0; + a3 = 6; + a18 = 0; + } + return -1; + } else if(((((((!(a15==1)&&((((((input==3)&&!(a6==1))&&(a27==1))&&(a3==7))&&(a20==1))&&(a5==1)))&&!(a22==1))&&(a12==8))&&(a18==1))&&!(a0==1))&&!(a4==1))){ + a3 = 8; + a0 = 1; + a5 = 0; + a6 = 1; + a15 = 1; + a22 = 1; + a18 = 0; + a12 = 9; + return 26; + } else if(((a0==1)&&((!(a6==1)&&((a5==1)&&((a3==4)&&((a4==1)&&((a20==1)&&(((a12==10)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==5)))&&(a27==1)))))))&&!(a15==1)))){ + a18 = 1; + a22 = 0; + return 26; + } else if((((a3==7)&&((!(a4==1)&&(((((a27==1)&&(((((a18==1)||!(a18==1))&&(input==4))&&(a5==1))&&(a0==1)))&&(a20==1))&&(a6==1))&&(a12==12)))&&(a15==1)))&&(a22==1))){ + a3 = 4; + a18 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if((!(a6==1)&&(((a27==1)&&((a5==1)&&(((((a0==1)&&(((a22==1)&&((input==3)&&((a18==1)||!(a18==1))))&&!(a15==1)))&&(a20==1))&&!(a4==1))&&(a3==6))))&&(a12==9)))){ + a4 = 1; + a6 = 1; + a18 = 0; + a3 = 8; + a22 = 0; + a12 = 12; + a15 = 1; + return 21; + } else if(((a0==1)&&(!(a27==1)&&(!(a22==1)&&((a3==6)&&(((a15==1)&&((a6==1)&&((((a18==1)&&((input==1)&&!(a5==1)))&&(a4==1))&&(a12==8))))&&(a20==1))))))){ + a27 = 1; + a5 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if((((((a12==9)&&(((a6==1)&&((a5==1)&&(!(a15==1)&&((a3==7)&&(((a22==1)&&(input==2))&&!(a18==1))))))&&(a20==1)))&&!(a4==1))&&!(a0==1))&&(a27==1))){ + a22 = 0; + a12 = 10; + a4 = 1; + a3 = 5; + a5 = 0; + a0 = 1; + a6 = 0; + return -1; + } else if((((((!(a27==1)&&((((a6==1)&&(((a20==1)&&((input==6)&&((a18==1)||!(a18==1))))&&!(a0==1)))&&!(a15==1))&&(a12==11)))&&(a22==1))&&(a3==8))&&(a4==1))&&!(a5==1))){ + a0 = 1; + a3 = 4; + a27 = 1; + a5 = 1; + a15 = 1; + a12 = 8; + a6 = 0; + a18 = 1; + return 21; + } else if((!(a6==1)&&((!(a15==1)&&((!(a0==1)&&(((!(a5==1)&&((input==6)&&((((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a22==1)&&!(a18==1))))||((a3==6)&&((a18==1)&&(a22==1))))))&&(a4==1))&&(a27==1)))&&(a20==1)))&&(a12==9)))){ + a3 = 5; + a5 = 1; + a4 = 0; + a22 = 0; + a12 = 11; + a18 = 0; + a0 = 1; + a27 = 0; + return 21; + } else if(((a15==1)&&(((a27==1)&&(!(a18==1)&&((a12==10)&&(((a3==7)&&(((a4==1)&&(((a20==1)&&(input==2))&&!(a5==1)))&&(a6==1)))&&(a22==1)))))&&(a0==1)))){ + a15 = 0; + a4 = 0; + a3 = 6; + a18 = 1; + a22 = 0; + a5 = 1; + return -1; + } else if((!(a4==1)&&(!(a6==1)&&((((a20==1)&&((a15==1)&&((a27==1)&&((!(a22==1)&&((a12==9)&&((a3==7)&&(input==2))))&&!(a0==1)))))&&!(a5==1))&&!(a18==1))))){ + a6 = 1; + a3 = 8; + a15 = 0; + a18 = 1; + a22 = 1; + a4 = 1; + return -1; + } else if(((a4==1)&&((a5==1)&&((a12==11)&&((a20==1)&&(!(a15==1)&&((a27==1)&&(((a0==1)&&((input==1)&&(((a3==7)&&(!(a18==1)&&(a22==1)))||(((!(a18==1)&&!(a22==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7))))))&&!(a6==1))))))))){ + a6 = 1; + a15 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + return -1; + } else if(((((a6==1)&&((!(a0==1)&&((a5==1)&&((((input==2)&&(((a3==5)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4)))))&&(a15==1))&&!(a4==1))))&&(a20==1)))&&(a12==8))&&!(a27==1))){ + if((a27==1)){ + a6 = 0; + a22 = 0; + a5 = 0; + a15 = 0; + a3 = 7; + a18 = 0; + }else{ + a5 = 0; + a22 = 1; + a3 = 4; + a27 = 1; + a6 = 0; + a18 = 1; + } + return -1; + } else if(((a5==1)&&(!(a15==1)&&(((a22==1)&&(((a3==8)&&((((a0==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&(a4==1)))&&(a6==1))&&(a12==12)))&&!(a27==1)))&&(a20==1))))){ + a18 = 1; + a27 = 1; + a12 = 10; + a6 = 0; + a3 = 7; + return 26; + } else if(((((((!(a27==1)&&((a15==1)&&(!(a5==1)&&((((a3==6)&&((a22==1)&&!(a18==1)))||(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1)))))&&(input==2)))))&&!(a4==1))&&!(a0==1))&&(a20==1))&&!(a6==1))&&(a12==9))){ + a18 = 1; + a12 = 8; + a15 = 0; + a3 = 8; + a22 = 0; + a4 = 1; + a6 = 1; + return 21; + } else if((((a6==1)&&((a0==1)&&((((a20==1)&&(!(a22==1)&&((a12==12)&&(!(a4==1)&&(!(a27==1)&&((input==5)&&(a18==1)))))))&&(a3==8))&&(a15==1))))&&!(a5==1))){ + a22 = 1; + a4 = 1; + a5 = 1; + a3 = 4; + a12 = 8; + a27 = 1; + return -1; + } else if(((a12==11)&&(!(a4==1)&&((!(a0==1)&&((a5==1)&&((a6==1)&&(((a20==1)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==1)))&&!(a27==1)))))&&(a15==1))))){ + if((a18==1)){ + a27 = 1; + a18 = 0; + a3 = 8; + a12 = 8; + a0 = 1; + a22 = 0; + }else{ + a22 = 1; + a18 = 0; + a0 = 1; + a3 = 6; + a27 = 1; + a12 = 8; + } + return 21; + } else if((((!(a15==1)&&((a20==1)&&(!(a5==1)&&(((a12==12)&&((((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a27==1))&&!(a6==1)))&&(a0==1)))))&&(a3==4))&&!(a4==1))){ + a12 = 11; + a5 = 1; + a3 = 8; + a6 = 1; + a18 = 0; + a22 = 0; + return 24; + } else if((((a15==1)&&((a6==1)&&(!(a18==1)&&(((!(a27==1)&&(((a3==5)&&((a22==1)&&((input==3)&&(a5==1))))&&(a4==1)))&&!(a0==1))&&(a12==10)))))&&(a20==1))){ + if((a22==1)){ + a12 = 8; + a15 = 0; + a0 = 1; + a18 = 1; + a4 = 0; + a22 = 0; + a3 = 6; + a27 = 1; + }else{ + a3 = 6; + a0 = 1; + a12 = 8; + a27 = 1; + } + return 26; + } else if(((!(a15==1)&&((a5==1)&&(((!(a6==1)&&((a20==1)&&(((a3==6)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==6)))&&(a4==1))))&&(a27==1))&&(a12==10))))&&!(a0==1))){ + a22 = 1; + a12 = 8; + a15 = 1; + a6 = 1; + a0 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((((a12==11)&&(((a6==1)&&(!(a4==1)&&((((a20==1)&&((input==1)&&((((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a22==1)&&(a18==1))))||((a3==6)&&(!(a18==1)&&(a22==1))))))&&(a5==1))&&!(a15==1))))&&!(a27==1)))&&!(a0==1))){ + if((a22==1)){ + a4 = 1; + a6 = 0; + a3 = 8; + a18 = 0; + a27 = 1; + a12 = 8; + a0 = 1; + a15 = 1; + a22 = 0; + }else{ + a15 = 1; + a27 = 1; + a22 = 0; + a6 = 0; + a18 = 1; + a3 = 6; + a12 = 8; + a4 = 1; + a0 = 1; + } + return 26; + } else if((((a12==12)&&(((((((((((a18==1)||!(a18==1))&&(input==3))&&(a20==1))&&!(a4==1))&&!(a27==1))&&(a3==7))&&(a0==1))&&!(a6==1))&&!(a22==1))&&!(a15==1)))&&(a5==1))){ + a5 = 0; + a12 = 10; + a15 = 1; + a22 = 1; + a3 = 5; + a18 = 0; + a27 = 1; + return -1; + } else if(((a12==12)&&((a5==1)&&((((a27==1)&&(!(a22==1)&&((((a15==1)&&((a18==1)&&((input==4)&&(a3==6))))&&(a6==1))&&(a20==1))))&&(a0==1))&&(a4==1))))){ + a18 = 0; + a3 = 7; + a12 = 10; + return -1; + } else if(((((a0==1)&&((((a20==1)&&((a12==11)&&((!(a4==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a5==1)))&&(a15==1))))&&!(a27==1))&&(a22==1)))&&(a3==6))&&(a6==1))){ + a15 = 0; + a27 = 1; + a18 = 0; + a12 = 10; + a5 = 0; + a4 = 1; + a3 = 5; + return 21; + } else if(((!(a15==1)&&(!(a5==1)&&(((((!(a6==1)&&(((a12==12)&&(((a18==1)||!(a18==1))&&(input==3)))&&!(a27==1)))&&(a20==1))&&!(a4==1))&&(a22==1))&&(a0==1))))&&(a3==7))){ + a3 = 4; + a4 = 1; + a6 = 1; + a5 = 1; + a12 = 8; + a15 = 1; + a27 = 1; + a18 = 1; + return -1; + } else if(((((a3==7)&&(((((a20==1)&&(!(a18==1)&&((a12==10)&&(((input==5)&&!(a6==1))&&!(a27==1)))))&&!(a15==1))&&(a0==1))&&(a4==1)))&&(a5==1))&&(a22==1))){ + a18 = 1; + a12 = 8; + return 21; + } else if((!(a0==1)&&((a12==10)&&((a20==1)&&((a27==1)&&(((a4==1)&&((a5==1)&&((((((a18==1)&&(a22==1))&&(a3==7))||(((a3==6)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==6))))&&(input==2))&&!(a6==1))))&&(a15==1))))))){ + a18 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + a0 = 1; + return -1; + } else if(((((a3==4)&&(!(a4==1)&&((((a15==1)&&(((a27==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==6)))&&!(a5==1)))&&(a12==10))&&(a6==1))))&&(a20==1))&&!(a0==1))){ + a4 = 1; + a22 = 1; + a0 = 1; + a3 = 7; + a18 = 0; + return -1; + } else if((!(a15==1)&&((a3==4)&&((a20==1)&&((!(a27==1)&&(((((a0==1)&&((input==4)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&!(a4==1))&&!(a6==1))&&(a5==1)))&&(a12==8)))))){ + a12 = 10; + a3 = 6; + a4 = 1; + a18 = 0; + a0 = 0; + a5 = 0; + a27 = 1; + a6 = 1; + a22 = 1; + return 21; + } else if(((a20==1)&&((!(a0==1)&&((((a3==4)&&(!(a22==1)&&((((a27==1)&&((a12==8)&&(input==4)))&&(a4==1))&&!(a15==1))))&&(a5==1))&&(a18==1)))&&(a6==1)))){ + if((a6==1)){ + a6 = 0; + a4 = 0; + a22 = 1; + a5 = 0; + a3 = 6; + a18 = 0; + }else{ + a0 = 1; + a3 = 6; + a5 = 0; + a12 = 11; + a18 = 0; + } + return -1; + } else if(((!(a18==1)&&((a12==12)&&(!(a15==1)&&(((a0==1)&&(!(a6==1)&&((a3==8)&&(((a4==1)&&((a20==1)&&(input==4)))&&!(a5==1)))))&&!(a22==1)))))&&!(a27==1))){ + a6 = 1; + a12 = 9; + a18 = 1; + a15 = 1; + return -1; + } else if(((a0==1)&&((a3==5)&&((a18==1)&&((!(a6==1)&&(((!(a5==1)&&((a22==1)&&(((input==1)&&!(a4==1))&&(a27==1))))&&(a20==1))&&(a12==11)))&&!(a15==1)))))){ + if((a22==1)){ + a12 = 9; + a0 = 0; + a3 = 6; + a4 = 1; + a22 = 0; + }else{ + a15 = 1; + a5 = 1; + a3 = 4; + } + return -1; + } else if((((((a3==8)&&(((((((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a12==11))&&(a6==1))&&!(a4==1))&&!(a0==1))&&!(a15==1)))&&!(a5==1))&&(a27==1))&&(a20==1))){ + a22 = 1; + a4 = 1; + a3 = 6; + a27 = 0; + a15 = 1; + a5 = 1; + a6 = 0; + a18 = 0; + a0 = 1; + a12 = 10; + return 21; + } else if(((!(a15==1)&&((((a27==1)&&((((a12==12)&&((((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==1)))&&(a20==1))&&(a6==1)))&&!(a5==1))&&(a4==1)))&&!(a0==1))){ + a12 = 8; + a3 = 5; + a6 = 0; + a5 = 1; + a18 = 1; + a27 = 0; + a22 = 0; + return 24; + } else if((((a0==1)&&((a20==1)&&(!(a15==1)&&((a12==10)&&(((((input==6)&&((((a22==1)&&!(a18==1))&&(a3==6))||(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))))&&(a4==1))&&!(a6==1))&&(a5==1))))))&&!(a27==1))){ + a27 = 1; + a22 = 1; + a15 = 1; + a18 = 1; + a3 = 4; + a6 = 1; + a12 = 8; + return -1; + } else if((!(a6==1)&&((a0==1)&&((((a12==10)&&((((a3==6)&&((a5==1)&&((input==2)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))))&&(a20==1))&&(a27==1)))&&(a15==1))&&(a4==1))))){ + a22 = 1; + a18 = 0; + a3 = 8; + a12 = 8; + a5 = 0; + return -1; + } else if((((a20==1)&&(((a15==1)&&(!(a4==1)&&(!(a27==1)&&((a5==1)&&(((a6==1)&&((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a12==12))))))&&(a3==6)))&&(a0==1))){ + a3 = 4; + a22 = 1; + a18 = 1; + a27 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if(((a20==1)&&((a12==10)&&((a5==1)&&((((a3==5)&&((a27==1)&&(!(a15==1)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==2))&&(a0==1)))))&&(a6==1))&&!(a4==1)))))){ + a22 = 0; + a5 = 0; + a6 = 0; + a12 = 9; + a27 = 0; + a18 = 1; + return 26; + } else if(((((a3==5)&&(((((a12==9)&&((!(a4==1)&&((input==2)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))))&&(a6==1)))&&!(a5==1))&&(a15==1))&&(a20==1)))&&(a27==1))&&!(a0==1))){ + a12 = 10; + a18 = 1; + a4 = 1; + a22 = 1; + a3 = 6; + a0 = 1; + return -1; + } else if((!(a22==1)&&((a27==1)&&((((a15==1)&&((a12==9)&&((a3==7)&&((((a0==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&!(a4==1))&&(a5==1)))))&&!(a6==1))&&(a20==1))))){ + if((a22==1)){ + a3 = 5; + a22 = 1; + a18 = 0; + a0 = 0; + a5 = 0; + a6 = 1; + }else{ + a12 = 12; + a18 = 0; + a3 = 4; + } + return 26; + } else if((((a4==1)&&((((a5==1)&&((a6==1)&&(!(a0==1)&&((((((a18==1)||!(a18==1))&&(input==5))&&(a20==1))&&!(a15==1))&&(a3==4)))))&&(a27==1))&&(a22==1)))&&(a12==8))){ + a0 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if(((a20==1)&&((a22==1)&&(((((a6==1)&&(!(a4==1)&&((a0==1)&&(!(a27==1)&&(((input==5)&&(a5==1))&&(a12==11))))))&&(a3==5))&&(a15==1))&&!(a18==1))))){ + a22 = 0; + a3 = 4; + a18 = 1; + return 24; + } else if((((a20==1)&&((!(a0==1)&&(((a15==1)&&(((a4==1)&&((a12==8)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==5))))&&!(a6==1)))&&!(a5==1)))&&(a3==4)))&&!(a27==1))){ + if((a12==10)){ + a3 = 5; + a0 = 1; + a22 = 1; + a18 = 0; + a5 = 1; + a27 = 1; + }else{ + a4 = 0; + a15 = 0; + a18 = 0; + a6 = 1; + a22 = 0; + a27 = 1; + a5 = 1; + } + return 26; + } else if((!(a22==1)&&((a20==1)&&((!(a4==1)&&(((a5==1)&&((a12==10)&&((a15==1)&&((a3==6)&&((!(a6==1)&&(input==1))&&(a18==1))))))&&(a0==1)))&&!(a27==1))))){ + a27 = 1; + a15 = 0; + a3 = 8; + a22 = 1; + return 26; + } else if(((a22==1)&&((!(a15==1)&&((a3==4)&&(!(a18==1)&&((((a27==1)&&((((input==3)&&!(a6==1))&&!(a5==1))&&(a12==10)))&&(a20==1))&&!(a4==1)))))&&(a0==1)))){ + a22 = 0; + a6 = 1; + a3 = 6; + a12 = 11; + a0 = 0; + a15 = 1; + return 21; + } else if(((a6==1)&&(((!(a18==1)&&(!(a4==1)&&((a15==1)&&((a12==12)&&((a0==1)&&(((a22==1)&&((input==5)&&(a3==4)))&&!(a5==1)))))))&&(a27==1))&&(a20==1)))){ + a4 = 1; + a5 = 1; + a22 = 0; + a3 = 8; + a18 = 1; + a15 = 0; + return 21; + } else if(((((a20==1)&&(!(a0==1)&&((a4==1)&&((!(a6==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==5))&&!(a5==1))&&(a27==1)))&&(a3==7)))))&&(a12==8))&&(a15==1))){ + a12 = 11; + a18 = 1; + a3 = 6; + a4 = 0; + a22 = 1; + return -1; + } else if((((a12==8)&&((!(a5==1)&&((((a6==1)&&((a15==1)&&((input==1)&&(((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7))))))&&(a20==1))&&(a27==1)))&&(a0==1)))&&(a4==1))){ + a18 = 1; + a22 = 1; + a3 = 4; + a12 = 9; + a6 = 0; + a15 = 0; + return 21; + } else if(((a20==1)&&(!(a15==1)&&(!(a6==1)&&((!(a27==1)&&(((a0==1)&&((!(a22==1)&&((a4==1)&&((a12==11)&&(input==3))))&&(a3==6)))&&!(a18==1)))&&!(a5==1)))))){ + a27 = 1; + a4 = 0; + a12 = 12; + a3 = 7; + a15 = 1; + a5 = 1; + a22 = 1; + a6 = 1; + return 26; + } else if(((((!(a15==1)&&(((!(a27==1)&&((a5==1)&&(((((a3==7)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==7)))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==6))))&&(a20==1))&&(a4==1)))&&(a12==9))&&(a0==1))&&(a6==1))){ + a22 = 1; + a18 = 1; + a12 = 8; + a27 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if((((((a4==1)&&((((a12==12)&&(((((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==4))&&!(a15==1)))&&(a6==1))&&(a20==1)))&&(a5==1))&&!(a0==1))&&(a27==1))){ + a0 = 1; + a15 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((((a20==1)&&(!(a4==1)&&(((a27==1)&&((a15==1)&&((((((a18==1)||!(a18==1))&&(input==5))&&(a12==12))&&(a3==8))&&(a5==1))))&&(a22==1))))&&(a6==1))&&(a0==1))){ + a12 = 8; + a18 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((a4==1)&&((!(a5==1)&&((a3==4)&&((a27==1)&&(!(a15==1)&&(((a12==10)&&((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==2))&&(a0==1)))&&(a6==1))))))&&(a20==1)))){ + a12 = 8; + a15 = 1; + a5 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((((a20==1)&&((a3==8)&&((!(a6==1)&&((!(a4==1)&&((!(a27==1)&&((a5==1)&&(input==5)))&&(a0==1)))&&!(a15==1)))&&(a18==1))))&&(a12==12))&&!(a22==1))){ + a22 = 1; + a4 = 1; + a12 = 8; + a3 = 4; + a6 = 1; + a27 = 1; + a15 = 1; + return -1; + } return calculate_output71(input); + } + + int calculate_output71(int input) { + if(((((a20==1)&&((((a3==4)&&((a4==1)&&((a22==1)&&((a12==8)&&(((input==5)&&!(a0==1))&&(a15==1))))))&&!(a6==1))&&!(a27==1)))&&(a5==1))&&(a18==1))){ + a15 = 0; + a18 = 0; + a3 = 6; + a22 = 0; + a4 = 0; + a12 = 10; + return 26; + } else if(((a3==8)&&((a5==1)&&(((a12==11)&&((!(a0==1)&&(((((input==4)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&!(a4==1))&&!(a27==1))&&(a20==1)))&&(a15==1)))&&(a6==1))))){ + a15 = 0; + a22 = 0; + a12 = 12; + a18 = 1; + a0 = 1; + a5 = 0; + a3 = 7; + return -1; + } else if(((a20==1)&&((!(a18==1)&&((((a4==1)&&((a3==8)&&((!(a15==1)&&(!(a5==1)&&((a12==10)&&(input==1))))&&!(a22==1))))&&!(a0==1))&&!(a6==1)))&&(a27==1)))){ + a3 = 5; + a5 = 1; + a15 = 1; + a18 = 1; + a0 = 1; + a4 = 0; + a12 = 11; + return 21; + } else if((((!(a15==1)&&((a12==9)&&((a20==1)&&(((a6==1)&&(!(a27==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==1))&&!(a0==1))))&&(a3==8)))))&&(a4==1))&&!(a5==1))){ + a6 = 0; + a18 = 1; + a12 = 8; + a3 = 4; + a0 = 1; + a27 = 1; + a5 = 1; + a15 = 1; + a22 = 0; + return -1; + } else if((((a5==1)&&(!(a0==1)&&(((!(a6==1)&&(((a27==1)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==2)))&&(a12==11)))&&!(a15==1))&&(a20==1))))&&!(a4==1))){ + a18 = 1; + a0 = 1; + a12 = 12; + a3 = 4; + a22 = 1; + return 21; + } else if(((((a3==6)&&((a20==1)&&((!(a15==1)&&((a0==1)&&((a22==1)&&((((a6==1)&&(input==5))&&(a4==1))&&!(a27==1)))))&&(a12==12))))&&(a5==1))&&!(a18==1))){ + a3 = 7; + a4 = 0; + a22 = 0; + a12 = 9; + return -1; + } else if(((a3==8)&&((!(a6==1)&&((a12==11)&&(((!(a18==1)&&(((((input==3)&&!(a22==1))&&(a5==1))&&!(a4==1))&&!(a15==1)))&&!(a0==1))&&(a27==1))))&&(a20==1)))){ + a0 = 1; + a15 = 1; + a3 = 4; + a12 = 8; + a4 = 1; + a6 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((((a4==1)&&(!(a27==1)&&((((a22==1)&&((a5==1)&&((a3==6)&&((a12==9)&&(!(a15==1)&&(input==6))))))&&!(a0==1))&&(a6==1))))&&(a20==1))&&!(a18==1))){ + a12 = 8; + a22 = 0; + a0 = 1; + a3 = 4; + a15 = 1; + a27 = 1; + a18 = 1; + return 21; + } else if(((((a20==1)&&((a4==1)&&(((a6==1)&&(((a22==1)&&((!(a15==1)&&((a3==5)&&(input==1)))&&(a12==11)))&&(a5==1)))&&!(a18==1))))&&(a0==1))&&(a27==1))){ + a3 = 4; + a15 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if(((!(a5==1)&&(((a20==1)&&((a27==1)&&(((((input==6)&&((((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))||((a3==7)&&((a18==1)&&(a22==1)))))&&!(a15==1))&&(a0==1))&&!(a6==1))))&&(a4==1)))&&(a12==8))){ + a22 = 1; + a6 = 1; + a18 = 1; + a15 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if(((a0==1)&&(((a3==5)&&((a12==8)&&((a20==1)&&(((((a4==1)&&((a18==1)&&((input==3)&&!(a22==1))))&&(a27==1))&&!(a5==1))&&!(a6==1)))))&&(a15==1)))){ + a12 = 9; + a18 = 0; + a3 = 7; + a15 = 0; + a4 = 0; + return 24; + } else if((((a20==1)&&(!(a4==1)&&((a0==1)&&((a15==1)&&(!(a27==1)&&((a12==12)&&((a5==1)&&((a3==7)&&((input==6)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))))))))))&&!(a6==1))){ + a22 = 1; + a27 = 1; + a18 = 1; + a12 = 8; + a6 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if(((a5==1)&&((a12==9)&&((((!(a4==1)&&(((a20==1)&&((!(a22==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a0==1)))&&(a27==1)))&&(a3==4))&&(a6==1))&&!(a15==1))))){ + a12 = 8; + a18 = 1; + a4 = 1; + a22 = 1; + a15 = 1; + return -1; + } else if(((!(a15==1)&&((!(a6==1)&&((((((input==1)&&((((!(a22==1)&&(a18==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7)))||(((a22==1)&&(a18==1))&&(a3==8))))&&(a20==1))&&!(a27==1))&&!(a5==1))&&(a12==8)))&&!(a0==1)))&&(a4==1))){ + if((a4==1)){ + a15 = 1; + a12 = 10; + a3 = 6; + a22 = 0; + a6 = 1; + a18 = 0; + }else{ + a15 = 1; + a3 = 4; + a0 = 1; + a18 = 0; + a22 = 0; + a4 = 0; + } + return -1; + } else if((!(a5==1)&&(!(a0==1)&&(((!(a15==1)&&((a20==1)&&((((a6==1)&&((!(a4==1)&&((a22==1)&&!(a18==1)))&&(a3==4)))||((((a3==8)&&((!(a22==1)&&!(a18==1))&&(a4==1)))&&!(a6==1))||((a6==1)&&((((a22==1)&&(a18==1))&&!(a4==1))&&(a3==4)))))&&(input==2))))&&(a12==10))&&!(a27==1))))){ + if((a27==1)){ + a18 = 0; + a3 = 4; + a5 = 1; + a6 = 1; + a15 = 1; + a12 = 8; + a4 = 1; + a27 = 1; + a0 = 1; + a22 = 1; + }else{ + a22 = 0; + a27 = 1; + a6 = 1; + a18 = 1; + a12 = 8; + a5 = 1; + a0 = 1; + a15 = 1; + a3 = 5; + a4 = 0; + } + return 26; + } else if((((((a15==1)&&(((a27==1)&&(((a3==6)&&((a0==1)&&((input==6)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&(a12==10)))&&!(a5==1)))&&(a20==1))&&!(a4==1))&&!(a6==1))){ + a5 = 1; + a22 = 0; + a4 = 1; + a27 = 0; + a15 = 0; + a18 = 1; + a3 = 7; + return 21; + } else if(((((a6==1)&&((a20==1)&&((!(a15==1)&&((a5==1)&&((a3==7)&&((a12==9)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==3))))))&&!(a0==1))))&&(a27==1))&&(a4==1))){ + a3 = 4; + a12 = 8; + a15 = 1; + a0 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((a27==1)&&((!(a5==1)&&((a15==1)&&((((a12==8)&&(((a20==1)&&((input==3)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))))&&!(a6==1)))&&!(a4==1))&&(a3==4))))&&(a0==1)))){ + a6 = 1; + a3 = 5; + a12 = 10; + a4 = 1; + a0 = 0; + a22 = 1; + a18 = 0; + return 21; + } else if((((!(a27==1)&&((((((((!(a15==1)&&(input==6))&&(a4==1))&&!(a18==1))&&(a0==1))&&(a12==11))&&(a20==1))&&!(a6==1))&&(a3==7)))&&!(a22==1))&&!(a5==1))){ + a27 = 1; + a15 = 1; + a18 = 1; + a12 = 12; + a3 = 6; + return 21; + } else if((!(a6==1)&&((!(a4==1)&&((a20==1)&&(!(a0==1)&&(((a15==1)&&((a12==10)&&(!(a27==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a3==8)))))&&(a5==1)))))&&!(a22==1)))){ + a6 = 1; + a0 = 1; + a12 = 8; + a4 = 1; + a3 = 5; + a18 = 0; + a27 = 1; + return -1; + } else if((!(a4==1)&&((a6==1)&&((a12==11)&&((((a5==1)&&(((a0==1)&&((input==2)&&(((!(a18==1)&&(a22==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==7))))))&&!(a15==1)))&&(a20==1))&&!(a27==1)))))){ + a15 = 1; + a5 = 0; + a3 = 7; + a22 = 0; + a12 = 10; + a18 = 1; + return -1; + } else if((((!(a0==1)&&((!(a6==1)&&((((a27==1)&&(!(a22==1)&&(!(a4==1)&&((a3==6)&&(input==2)))))&&(a12==12))&&(a15==1)))&&!(a18==1)))&&!(a5==1))&&(a20==1))){ + if((a6==1)){ + a0 = 1; + a5 = 1; + a6 = 1; + a3 = 7; + a12 = 9; + a4 = 1; + }else{ + a4 = 1; + a5 = 1; + a18 = 1; + a22 = 1; + a12 = 8; + a3 = 5; + a6 = 1; + } + return -1; + } else if((!(a6==1)&&(!(a15==1)&&((a4==1)&&(!(a27==1)&&((a20==1)&&((!(a5==1)&&(((a12==10)&&((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a0==1)))&&(a3==6)))))))){ + a18 = 1; + a4 = 0; + a22 = 1; + a5 = 1; + a0 = 1; + a3 = 8; + a12 = 8; + return 26; + } else if((!(a6==1)&&((((((a20==1)&&(!(a18==1)&&((((a22==1)&&((input==4)&&(a0==1)))&&!(a5==1))&&(a12==12))))&&(a3==5))&&!(a27==1))&&!(a15==1))&&!(a4==1)))){ + a18 = 1; + a4 = 1; + a15 = 1; + a27 = 1; + a3 = 4; + a6 = 1; + a5 = 1; + a12 = 8; + return -1; + } else if((((a15==1)&&((a12==12)&&(((a5==1)&&((a6==1)&&(((a4==1)&&((input==1)&&(((!(a18==1)&&(a22==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7))))))&&(a20==1))))&&(a27==1))))&&(a0==1))){ + a3 = 4; + a22 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if((((a0==1)&&((!(a4==1)&&((a6==1)&&((a12==11)&&((!(a27==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&!(a5==1))&&!(a15==1)))&&(a20==1)))))&&(a3==6)))&&!(a22==1))){ + if((a15==1)){ + a27 = 1; + a0 = 0; + a18 = 0; + a12 = 9; + a22 = 1; + }else{ + a6 = 0; + a3 = 7; + a15 = 1; + a4 = 1; + a5 = 1; + a18 = 1; + a12 = 10; + a27 = 1; + } + return -1; + } else if(((a20==1)&&(((!(a5==1)&&(((a3==5)&&((!(a22==1)&&((a6==1)&&((a12==10)&&(!(a18==1)&&(input==5)))))&&!(a0==1)))&&!(a4==1)))&&(a27==1))&&(a15==1)))){ + a3 = 6; + a15 = 0; + a0 = 1; + a4 = 1; + a6 = 0; + a18 = 1; + a5 = 1; + return -1; + } else if((!(a6==1)&&((((a5==1)&&((((a20==1)&&((!(a27==1)&&(((input==6)&&(a12==10))&&(a3==4)))&&!(a18==1)))&&!(a22==1))&&(a15==1)))&&(a0==1))&&(a4==1)))){ + a18 = 1; + a4 = 0; + a3 = 8; + a5 = 0; + a22 = 1; + return 26; + } else if(((((!(a0==1)&&((a20==1)&&(!(a15==1)&&((a5==1)&&(((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==4))&&!(a4==1))))))&&!(a6==1))&&(a12==11))&&!(a27==1))){ + if((a12==11)){ + a15 = 1; + a0 = 1; + a6 = 1; + a22 = 1; + a3 = 6; + a12 = 8; + a27 = 1; + a18 = 0; + a4 = 1; + }else{ + a18 = 0; + a4 = 1; + a12 = 8; + a27 = 1; + a3 = 7; + a15 = 1; + a22 = 1; + a6 = 1; + a0 = 1; + } + return 24; + } else if((!(a4==1)&&((((a22==1)&&((((a12==8)&&((((((a18==1)||!(a18==1))&&(input==1))&&(a0==1))&&(a5==1))&&(a20==1)))&&!(a15==1))&&(a3==4)))&&(a6==1))&&(a27==1)))){ + a22 = 0; + a6 = 0; + a4 = 1; + a12 = 9; + a18 = 0; + a3 = 5; + a15 = 1; + return 26; + } else if((((a0==1)&&(((((a4==1)&&((a20==1)&&(((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==6))&&(a12==12))&&!(a5==1))))&&(a3==4))&&(a15==1))&&(a27==1)))&&!(a6==1))){ + a6 = 1; + a22 = 1; + a3 = 6; + a18 = 0; + return 24; + } else if((((a4==1)&&(((a15==1)&&(((((a27==1)&&((a20==1)&&(((input==4)&&!(a18==1))&&(a22==1))))&&(a6==1))&&(a3==6))&&(a12==12)))&&!(a5==1)))&&!(a0==1))){ + if((a20==1)){ + a3 = 5; + a5 = 1; + a4 = 0; + a18 = 1; + a15 = 0; + a22 = 0; + a12 = 11; + a6 = 0; + }else{ + a0 = 1; + a22 = 0; + a3 = 7; + a12 = 8; + a5 = 1; + } + return -1; + } else if((!(a15==1)&&((a20==1)&&((a12==9)&&(((a3==8)&&(!(a18==1)&&(((((a27==1)&&((a4==1)&&(input==4)))&&(a5==1))&&(a6==1))&&!(a22==1))))&&!(a0==1)))))){ + a12 = 8; + a22 = 1; + a0 = 1; + a5 = 0; + a3 = 5; + a4 = 0; + return 24; + } else if(((a20==1)&&((a6==1)&&((a3==7)&&(((a4==1)&&((a12==11)&&((!(a5==1)&&((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==4))&&!(a0==1)))&&!(a15==1))))&&!(a27==1)))))){ + a15 = 1; + a0 = 1; + a22 = 0; + a5 = 1; + a18 = 0; + a3 = 5; + a27 = 1; + a12 = 8; + return 21; + } else if((((a15==1)&&(((a5==1)&&((a27==1)&&((a12==11)&&((a4==1)&&(((input==6)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5))))&&(a20==1))))))&&!(a0==1)))&&(a6==1))){ + a6 = 0; + a0 = 1; + a3 = 7; + a18 = 0; + a22 = 0; + a4 = 0; + return -1; + } else if((((a4==1)&&((((((a12==11)&&(((a5==1)&&((input==4)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))))&&!(a27==1)))&&!(a0==1))&&!(a6==1))&&(a15==1))&&(a3==8)))&&(a20==1))){ + if((a18==1)){ + a12 = 8; + a3 = 5; + a18 = 1; + a6 = 1; + a22 = 0; + a27 = 1; + a0 = 1; + }else{ + a22 = 1; + a6 = 1; + a12 = 8; + a18 = 0; + a27 = 1; + a3 = 5; + a0 = 1; + } + return -1; + } else if((((!(a0==1)&&((a27==1)&&((((a20==1)&&(((a4==1)&&(!(a18==1)&&(!(a5==1)&&(input==3))))&&(a6==1)))&&(a3==5))&&(a15==1))))&&!(a22==1))&&(a12==9))){ + a12 = 10; + a18 = 1; + a22 = 1; + a6 = 0; + a27 = 0; + a15 = 0; + a0 = 1; + return -1; + } else if(((!(a15==1)&&((a12==9)&&((a3==4)&&(!(a6==1)&&(((a0==1)&&((a27==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==4))&&!(a4==1))))&&(a20==1))))))&&!(a5==1))){ + a6 = 1; + a3 = 6; + a4 = 1; + a5 = 1; + a18 = 1; + a27 = 0; + a22 = 1; + return 21; + } else if(((!(a18==1)&&(!(a22==1)&&(((a4==1)&&((a0==1)&&(((a3==6)&&((!(a5==1)&&((a20==1)&&(input==4)))&&(a12==12)))&&(a27==1))))&&!(a6==1))))&&(a15==1))){ + a12 = 10; + a3 = 7; + a15 = 0; + a6 = 1; + a0 = 0; + a4 = 0; + return 26; + } else if((((a4==1)&&((((a20==1)&&(((((((input==5)&&(a6==1))&&(a3==5))&&!(a22==1))&&!(a0==1))&&(a18==1))&&(a15==1)))&&!(a27==1))&&(a12==11)))&&(a5==1))){ + a6 = 0; + a22 = 1; + a12 = 8; + a0 = 1; + a18 = 0; + a27 = 1; + return 21; + } else if(((((a5==1)&&((a6==1)&&((a12==9)&&(((a20==1)&&((((((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a18==1)&&(a22==1))))||((!(a18==1)&&(a22==1))&&(a3==6)))&&(input==1))&&!(a15==1)))&&!(a27==1)))))&&!(a0==1))&&!(a4==1))){ + if((a15==1)){ + a0 = 1; + a6 = 0; + a18 = 0; + a22 = 1; + a3 = 8; + a12 = 8; + }else{ + a22 = 1; + a0 = 1; + a6 = 0; + a3 = 6; + a4 = 1; + a27 = 1; + a15 = 1; + a18 = 0; + a12 = 8; + } + return -1; + } else if(((a0==1)&&((a27==1)&&(!(a22==1)&&((a20==1)&&((a12==8)&&((a15==1)&&((a3==6)&&((((((a18==1)||!(a18==1))&&(input==1))&&!(a4==1))&&!(a5==1))&&!(a6==1)))))))))){ + if((a5==1)){ + a12 = 10; + a18 = 0; + a3 = 8; + a5 = 1; + a0 = 0; + a15 = 0; + }else{ + a22 = 1; + a4 = 1; + a3 = 7; + a6 = 1; + a12 = 10; + a18 = 0; + } + return 21; + } else if((((a12==9)&&((a20==1)&&((a0==1)&&(((a5==1)&&(!(a6==1)&&((((input==3)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a3==5))&&(a15==1))))&&!(a4==1)))))&&(a27==1))){ + a18 = 1; + a3 = 8; + a22 = 0; + a12 = 10; + return 26; + } else if((((a3==7)&&((a4==1)&&((a12==8)&&(((a20==1)&&((((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==2))&&!(a0==1))&&!(a6==1))&&!(a5==1)))&&(a27==1)))))&&!(a15==1))){ + a3 = 4; + a15 = 1; + a22 = 1; + a0 = 1; + a6 = 1; + a5 = 1; + a18 = 1; + return -1; + } else if((!(a4==1)&&((((a20==1)&&(!(a5==1)&&((((((a12==10)&&((input==3)&&((a18==1)||!(a18==1))))&&(a6==1))&&!(a15==1))&&!(a0==1))&&(a22==1))))&&!(a27==1))&&(a3==6)))){ + a27 = 1; + a5 = 1; + a18 = 0; + a15 = 1; + a0 = 1; + a12 = 8; + return 26; + } else if(((a12==10)&&(((a5==1)&&(((a20==1)&&((a15==1)&&(!(a27==1)&&(!(a4==1)&&((a22==1)&&((a0==1)&&((input==3)&&((a18==1)||!(a18==1)))))))))&&(a3==6)))&&(a6==1)))){ + a12 = 8; + a27 = 1; + a18 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if(((((((a12==12)&&(((!(a0==1)&&((input==3)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))))&&(a27==1))&&(a6==1)))&&!(a5==1))&&(a20==1))&&!(a15==1))&&!(a4==1))){ + a15 = 1; + a22 = 1; + a27 = 0; + a5 = 1; + a12 = 11; + a3 = 4; + a0 = 1; + a4 = 1; + a18 = 1; + return 26; + } else if(((a12==9)&&(((((a15==1)&&(!(a5==1)&&((a0==1)&&(((input==2)&&((((a22==1)&&!(a18==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7)))))&&(a6==1)))))&&!(a4==1))&&(a20==1))&&(a27==1)))){ + a3 = 5; + a12 = 8; + a18 = 0; + a27 = 0; + a22 = 1; + return 21; + } else if(((a3==5)&&((a4==1)&&(!(a6==1)&&(((a12==11)&&(((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==4))&&!(a0==1))&&!(a15==1))&&(a5==1))&&(a20==1)))&&!(a27==1)))))){ + if((a18==1)){ + a22 = 1; + a0 = 1; + a5 = 0; + a15 = 1; + a3 = 6; + a18 = 0; + a12 = 9; + a4 = 0; + }else{ + a22 = 1; + a3 = 4; + a4 = 0; + a15 = 1; + a27 = 1; + a18 = 0; + a12 = 8; + a5 = 0; + } + return 26; + } else if(((a3==8)&&(!(a6==1)&&((a22==1)&&((((a15==1)&&(((((!(a27==1)&&(input==1))&&(a0==1))&&!(a5==1))&&(a4==1))&&!(a18==1)))&&(a12==12))&&(a20==1)))))){ + a22 = 0; + a6 = 1; + a27 = 1; + a12 = 11; + return 24; + } else if((((a3==7)&&(!(a27==1)&&((!(a4==1)&&((a20==1)&&(((a12==11)&&(((input==3)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&(a6==1)))&&(a15==1))))&&!(a0==1))))&&!(a5==1))){ + a18 = 1; + a12 = 8; + a22 = 1; + a5 = 1; + a27 = 1; + a4 = 1; + a0 = 1; + return -1; + } else if((!(a6==1)&&((((a20==1)&&((((a22==1)&&((((a0==1)&&((a12==11)&&(input==3)))&&(a15==1))&&(a27==1)))&&(a4==1))&&!(a18==1)))&&(a3==6))&&(a5==1)))){ + a0 = 0; + a22 = 0; + a3 = 7; + a4 = 0; + a12 = 12; + a6 = 1; + return 21; + } else if((((a15==1)&&(((((((a6==1)&&(!(a5==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==1))))&&!(a4==1))&&!(a27==1))&&(a12==9))&&(a0==1))&&(a20==1)))&&(a3==5))){ + a3 = 7; + a18 = 1; + a6 = 0; + a22 = 1; + a4 = 1; + return 21; + } else if((((!(a6==1)&&((a4==1)&&((((((a3==7)&&((input==4)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))))&&(a12==12))&&(a5==1))&&(a0==1))&&!(a27==1))))&&(a20==1))&&!(a15==1))){ + a22 = 1; + a27 = 1; + a15 = 1; + a3 = 4; + a18 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if(((a15==1)&&((((a3==6)&&(!(a5==1)&&((!(a6==1)&&(((a27==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==4)))&&(a12==9)))&&!(a0==1))))&&(a20==1))&&!(a4==1)))){ + a12 = 12; + a22 = 1; + a4 = 1; + a0 = 1; + a18 = 1; + a6 = 1; + a3 = 7; + return 24; + } else if(((a22==1)&&((!(a5==1)&&(!(a27==1)&&(((a4==1)&&((a20==1)&&((((a12==11)&&((input==5)&&((a18==1)||!(a18==1))))&&(a3==7))&&!(a6==1))))&&(a15==1))))&&(a0==1)))){ + if((a27==1)){ + a6 = 1; + a12 = 10; + a22 = 0; + a4 = 0; + a18 = 0; + a0 = 0; + a27 = 1; + a3 = 5; + }else{ + a18 = 1; + a27 = 1; + a0 = 0; + a4 = 0; + a3 = 6; + a5 = 1; + a15 = 0; + a22 = 0; + } + return 26; + } else if((!(a0==1)&&((!(a5==1)&&(((((((input==6)&&(((a3==8)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a18==1)&&!(a22==1))))))&&(a6==1))&&!(a4==1))&&(a12==11))&&(a20==1))&&!(a15==1)))&&(a27==1)))){ + a22 = 0; + a12 = 12; + a5 = 1; + a0 = 1; + a18 = 0; + a4 = 1; + a6 = 0; + a3 = 6; + return 26; + } else if((((a12==10)&&(!(a15==1)&&(((!(a6==1)&&(((a0==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==4))&&!(a5==1)))&&(a3==5)))&&(a4==1))&&!(a27==1))))&&(a20==1))){ + a3 = 8; + a12 = 9; + a5 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((a3==6)&&(((!(a27==1)&&(((a18==1)&&((a15==1)&&(((a12==9)&&(!(a4==1)&&((a20==1)&&(input==3))))&&(a0==1))))&&(a5==1)))&&(a22==1))&&(a6==1)))){ + a12 = 8; + a4 = 1; + a3 = 4; + a27 = 1; + return -1; + } else if((!(a15==1)&&(!(a4==1)&&(!(a5==1)&&(!(a27==1)&&(!(a0==1)&&((a3==4)&&(((!(a22==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a12==10)))&&(a6==1))&&(a20==1))))))))){ + if((a12==11)){ + a12 = 8; + a18 = 1; + a3 = 6; + a15 = 1; + a5 = 1; + a0 = 1; + a4 = 1; + a27 = 1; + }else{ + a15 = 1; + a18 = 0; + a12 = 8; + a27 = 1; + a4 = 1; + a3 = 6; + a0 = 1; + a5 = 1; + } + return -1; + } else if((((a20==1)&&((a0==1)&&(((((a12==8)&&(((((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==3))&&(a6==1)))&&!(a5==1))&&!(a4==1))&&(a15==1))))&&!(a27==1))){ + if((a20==1)){ + a22 = 0; + a18 = 0; + a0 = 0; + a3 = 4; + a4 = 1; + a27 = 1; + a6 = 0; + }else{ + a6 = 0; + a0 = 0; + a27 = 1; + a3 = 6; + a22 = 1; + a18 = 1; + a12 = 10; + } + return -1; + } else if(((a5==1)&&((a4==1)&&((a12==9)&&(((a6==1)&&(((!(a27==1)&&((input==1)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==7)))||(((a22==1)&&!(a18==1))&&(a3==7)))))&&!(a0==1))&&(a20==1)))&&!(a15==1)))))){ + a22 = 0; + a15 = 1; + a18 = 0; + a12 = 8; + a3 = 4; + a27 = 1; + a0 = 1; + return -1; + } else if(((a20==1)&&((a27==1)&&(((a22==1)&&((((((a3==4)&&(((a6==1)&&(input==1))&&!(a18==1)))&&(a12==11))&&(a15==1))&&!(a5==1))&&!(a4==1)))&&(a0==1))))){ + a5 = 1; + a12 = 12; + a3 = 6; + a22 = 0; + a4 = 1; + a6 = 0; + a15 = 0; + return 24; + } else if((!(a22==1)&&((a27==1)&&((a0==1)&&(((a12==12)&&((a20==1)&&((a5==1)&&((a6==1)&&((((input==6)&&((a18==1)||!(a18==1)))&&(a3==6))&&!(a4==1))))))&&!(a15==1)))))){ + if((a15==1)){ + a0 = 0; + a6 = 0; + a4 = 1; + a15 = 1; + a22 = 1; + a3 = 7; + a18 = 1; + a5 = 0; + a12 = 9; + }else{ + a22 = 1; + a12 = 11; + a3 = 7; + a6 = 0; + a18 = 1; + a15 = 1; + } + return 26; + } else if(((!(a27==1)&&((a6==1)&&(((a20==1)&&(((a5==1)&&((a15==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==4))&&!(a4==1))))&&(a3==8)))&&(a12==12))))&&(a0==1))){ + a5 = 0; + a12 = 11; + a18 = 1; + a22 = 0; + a6 = 0; + a27 = 1; + return -1; + } else if(((a3==7)&&(!(a5==1)&&((((!(a6==1)&&(((!(a15==1)&&((input==5)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))))&&(a27==1))&&(a12==8)))&&(a20==1))&&!(a0==1))&&(a4==1))))){ + a15 = 1; + a22 = 0; + a12 = 12; + a5 = 1; + a18 = 0; + a0 = 1; + return 21; + } else if(((a27==1)&&((((a22==1)&&((a0==1)&&(((a15==1)&&((a3==7)&&(((((a18==1)||!(a18==1))&&(input==6))&&!(a6==1))&&(a12==10))))&&(a5==1))))&&(a20==1))&&(a4==1)))){ + a3 = 4; + a12 = 8; + a18 = 1; + a6 = 1; + return -1; + } else if((((a15==1)&&(!(a27==1)&&((((((((a3==7)&&((input==4)&&(a0==1)))&&(a22==1))&&!(a18==1))&&(a12==12))&&!(a4==1))&&!(a6==1))&&(a20==1))))&&!(a5==1))){ + a3 = 6; + a22 = 0; + a4 = 1; + a27 = 1; + a12 = 11; + return 21; + } else if((((a20==1)&&(!(a5==1)&&((!(a27==1)&&((a12==8)&&((a4==1)&&(((((a3==5)&&((a22==1)&&(a18==1)))||(((a3==4)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==4))))&&(input==6))&&(a0==1)))))&&!(a15==1))))&&!(a6==1))){ + a5 = 1; + a3 = 4; + a6 = 1; + a27 = 1; + a22 = 1; + a15 = 1; + a12 = 11; + a18 = 0; + a4 = 0; + return 21; + } else if((((((a27==1)&&((a20==1)&&((a12==11)&&(!(a15==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6))&&(a3==8))&&!(a5==1))))))&&!(a4==1))&&(a6==1))&&!(a0==1))){ + a22 = 0; + a0 = 1; + a15 = 1; + a12 = 12; + a4 = 1; + a18 = 1; + return 21; + } else if((((!(a4==1)&&(((a20==1)&&((!(a5==1)&&((((!(a27==1)&&(input==3))&&!(a15==1))&&(a12==8))&&(a3==7)))&&(a0==1)))&&!(a6==1)))&&!(a22==1))&&!(a18==1))){ + a3 = 4; + a12 = 10; + a15 = 1; + a27 = 1; + return 26; + } else if(((a15==1)&&((a3==7)&&((a12==8)&&((a0==1)&&((!(a6==1)&&((a4==1)&&((a27==1)&&(((input==4)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a5==1)))))&&(a20==1))))))){ + a3 = 4; + a22 = 0; + a18 = 0; + a12 = 10; + a5 = 1; + return 26; + } else if(((!(a27==1)&&((a22==1)&&((((!(a4==1)&&((((a0==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a20==1))&&(a12==12)))&&(a3==7))&&!(a6==1))&&(a5==1))))&&!(a15==1))){ + a12 = 8; + a4 = 1; + a18 = 1; + a6 = 1; + a3 = 4; + a27 = 1; + a15 = 1; + return -1; + } else if((((a4==1)&&(((!(a6==1)&&(!(a27==1)&&(((a5==1)&&(((input==6)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&(a0==1)))&&(a20==1))))&&(a15==1))&&(a12==9)))&&(a3==6))){ + a12 = 8; + a22 = 1; + a3 = 4; + a6 = 1; + a27 = 1; + a18 = 1; + return -1; + } else if((((!(a5==1)&&((((a12==11)&&(((input==1)&&((((!(a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))||((((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1)))))))&&!(a0==1)))&&!(a15==1))&&(a27==1)))&&(a20==1))&&!(a4==1))){ + a15 = 1; + a12 = 8; + a18 = 1; + a6 = 1; + a22 = 1; + a4 = 1; + a5 = 1; + a3 = 4; + a0 = 1; + return -1; + } else if((!(a4==1)&&((((a12==10)&&((a5==1)&&((a3==6)&&((a15==1)&&((a20==1)&&(((input==1)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&!(a27==1)))))))&&!(a0==1))&&(a6==1)))){ + a18 = 0; + a12 = 8; + a4 = 1; + a0 = 1; + a6 = 0; + a22 = 0; + a27 = 1; + return -1; + } else if(((a27==1)&&(!(a4==1)&&((a15==1)&&((a12==11)&&((a20==1)&&((a0==1)&&((((a5==1)&&(((a3==7)&&(input==5))&&!(a6==1)))&&!(a22==1))&&(a18==1))))))))){ + if((a18==1)){ + a4 = 1; + a0 = 0; + a3 = 4; + a6 = 1; + a12 = 9; + }else{ + a12 = 9; + a0 = 0; + a6 = 1; + a15 = 0; + } + return -1; + } else if(((((!(a4==1)&&((a6==1)&&(!(a5==1)&&((a12==12)&&(((a15==1)&&((input==4)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))&&!(a27==1))))))&&(a20==1))&&(a0==1))&&(a3==6))){ + a27 = 1; + a22 = 1; + a4 = 1; + a12 = 8; + a5 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a6==1)&&((a5==1)&&((a0==1)&&((a4==1)&&((a22==1)&&((a3==6)&&(!(a27==1)&&(!(a15==1)&&((a12==10)&&((a20==1)&&((input==6)&&((a18==1)||!(a18==1)))))))))))))){ + a18 = 1; + a15 = 1; + a3 = 4; + a27 = 1; + a12 = 8; + return -1; + } else if((((a4==1)&&((((!(a5==1)&&(!(a15==1)&&((((a12==8)&&((input==3)&&!(a22==1)))&&(a6==1))&&(a0==1))))&&(a20==1))&&(a3==8))&&(a27==1)))&&!(a18==1))){ + a3 = 4; + a22 = 1; + a15 = 1; + a18 = 1; + a5 = 1; + return -1; + } else if(((a27==1)&&(((a4==1)&&((a3==7)&&((a0==1)&&(((a5==1)&&(!(a15==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==2))&&(a20==1))))&&(a12==8)))))&&(a6==1)))){ + a3 = 4; + a18 = 1; + a15 = 1; + a22 = 1; + return -1; + } else if(((((a20==1)&&((a3==4)&&((a15==1)&&(((a12==11)&&((!(a0==1)&&((a18==1)&&((input==2)&&!(a5==1))))&&!(a22==1)))&&(a27==1)))))&&(a4==1))&&!(a6==1))){ + a0 = 1; + a6 = 1; + a5 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if(((a0==1)&&((!(a27==1)&&((((input==4)&&((((!(a4==1)&&((a15==1)&&(!(a18==1)&&!(a22==1))))&&(a3==8))&&!(a6==1))||((a6==1)&&(((!(a15==1)&&((a22==1)&&(a18==1)))&&(a4==1))&&(a3==4)))))&&(a5==1))&&(a12==10)))&&(a20==1)))){ + a22 = 0; + a18 = 0; + a27 = 1; + a15 = 1; + a6 = 0; + a5 = 0; + a4 = 1; + a3 = 6; + return 26; + } else if(((((a20==1)&&((!(a15==1)&&(!(a27==1)&&(((((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==1))&&(a4==1))&&(a12==8))&&(a3==7))))&&!(a5==1)))&&(a0==1))&&!(a6==1))){ + a12 = 11; + a15 = 1; + a27 = 1; + a22 = 1; + a3 = 6; + a18 = 1; + return 24; + } else if((((((((a5==1)&&((!(a27==1)&&(((a18==1)&&((input==5)&&(a12==9)))&&(a0==1)))&&!(a15==1)))&&(a3==8))&&!(a6==1))&&(a20==1))&&(a4==1))&&!(a22==1))){ + a5 = 0; + a18 = 0; + a15 = 1; + a4 = 0; + return 26; + } else if((!(a0==1)&&(!(a15==1)&&(((((((a20==1)&&(((a27==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a4==1)))&&(a5==1))&&(a3==8))&&(a22==1))&&(a12==8))&&(a6==1))))){ + a12 = 10; + a0 = 1; + a18 = 0; + a3 = 6; + a22 = 0; + return 21; + } else if(((a27==1)&&(!(a15==1)&&((((a0==1)&&((((((a3==4)&&(!(a4==1)&&(!(a18==1)&&(a22==1))))&&(a6==1))||((!(a6==1)&&((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1)))))||(((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1)))&&(a6==1))))&&(input==5))&&(a20==1)))&&(a12==9))&&(a5==1))))){ + a4 = 0; + a3 = 7; + a22 = 0; + a15 = 1; + a12 = 10; + a18 = 1; + a6 = 1; + return 21; + } else if((((((((a0==1)&&(((((a20==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&!(a4==1))&&!(a27==1))&&(a15==1)))&&(a6==1))&&(a5==1))&&!(a22==1))&&(a12==12))&&(a3==7))){ + a6 = 0; + a4 = 1; + a18 = 0; + a3 = 6; + a12 = 9; + a15 = 0; + return -1; + } else if(((!(a18==1)&&((a12==10)&&((a5==1)&&((a3==7)&&(((a0==1)&&(((a27==1)&&(((input==6)&&!(a15==1))&&(a6==1)))&&!(a22==1)))&&(a4==1))))))&&(a20==1))){ + a15 = 1; + a3 = 5; + a22 = 1; + a4 = 0; + a6 = 0; + a12 = 8; + return -1; + } else if((!(a4==1)&&(!(a15==1)&&(((a27==1)&&((a0==1)&&(((a3==5)&&((a12==12)&&(((((a18==1)||!(a18==1))&&(input==1))&&(a20==1))&&(a5==1))))&&(a22==1))))&&(a6==1))))){ + a18 = 0; + a4 = 1; + a27 = 0; + a22 = 0; + a3 = 8; + return 21; + } else if(((((a0==1)&&(((a20==1)&&((a12==12)&&(!(a15==1)&&((a4==1)&&(!(a27==1)&&((a18==1)&&((input==5)&&(a3==6))))))))&&(a6==1)))&&!(a22==1))&&(a5==1))){ + a6 = 0; + a3 = 8; + a4 = 0; + a12 = 10; + a15 = 1; + a27 = 1; + return 26; + } else if(((a20==1)&&((((a3==5)&&((a6==1)&&((!(a22==1)&&(((((input==5)&&(a27==1))&&(a12==9))&&!(a18==1))&&!(a15==1)))&&(a0==1))))&&(a4==1))&&(a5==1)))){ + a5 = 0; + a15 = 1; + a3 = 8; + a6 = 0; + a12 = 11; + return 21; + } else if(((a4==1)&&(((((a5==1)&&((a12==12)&&((((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==6))&&!(a0==1))&&(a15==1))))&&(a20==1))&&(a6==1))&&(a27==1)))){ + a6 = 0; + a3 = 5; + a18 = 0; + a4 = 0; + a0 = 1; + a22 = 0; + a15 = 0; + return -1; + } else if(((!(a27==1)&&((a20==1)&&(((((a0==1)&&((((input==1)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a12==12))&&(a15==1)))&&!(a4==1))&&!(a5==1))&&(a3==7))))&&(a6==1))){ + a22 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a27 = 1; + a5 = 1; + a4 = 1; + return -1; + } else if(((a4==1)&&(!(a15==1)&&(((a3==4)&&((a20==1)&&(((a12==9)&&((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==5))&&!(a6==1))&&!(a0==1)))&&!(a5==1))))&&(a27==1))))){ + a6 = 1; + a12 = 8; + a5 = 1; + a0 = 1; + a15 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if((!(a6==1)&&((!(a5==1)&&(((a12==9)&&((((a22==1)&&((a15==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a3==5))))&&(a0==1))&&!(a4==1)))&&(a27==1)))&&(a20==1)))){ + a12 = 8; + a4 = 1; + a18 = 1; + a5 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if((((((!(a5==1)&&(((((input==6)&&((((a22==1)&&(a18==1))&&(a3==5))||((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1))))))&&!(a4==1))&&!(a27==1))&&!(a15==1)))&&(a20==1))&&(a12==10))&&(a0==1))&&!(a6==1))){ + a4 = 1; + a12 = 12; + a3 = 8; + a15 = 1; + a5 = 1; + a22 = 0; + a18 = 0; + return 26; + } else if(((((((!(a0==1)&&(!(a18==1)&&((((a22==1)&&((a5==1)&&(input==2)))&&!(a27==1))&&(a20==1))))&&(a4==1))&&(a12==8))&&!(a6==1))&&(a3==5))&&!(a15==1))){ + if((a22==1)){ + a22 = 0; + a0 = 1; + a6 = 1; + a27 = 1; + a15 = 1; + }else{ + a15 = 1; + a6 = 1; + a4 = 0; + a3 = 8; + a27 = 1; + a0 = 1; + } + return -1; + } else if(((!(a27==1)&&((((a3==5)&&(!(a5==1)&&((a22==1)&&((((a6==1)&&((input==3)&&(a12==10)))&&!(a18==1))&&(a20==1)))))&&(a15==1))&&!(a4==1)))&&!(a0==1))){ + if((a4==1)){ + a4 = 1; + a12 = 8; + a3 = 8; + a27 = 1; + a6 = 0; + a0 = 1; + a5 = 1; + a18 = 1; + a22 = 0; + }else{ + a12 = 8; + a18 = 1; + a22 = 0; + a27 = 1; + a5 = 1; + a3 = 4; + a0 = 1; + } + return 24; + } else if(((a12==10)&&(((((a3==8)&&((((a4==1)&&((a20==1)&&(!(a0==1)&&((input==4)&&((a18==1)||!(a18==1))))))&&(a6==1))&&!(a15==1)))&&(a5==1))&&(a22==1))&&(a27==1)))){ + a3 = 4; + a12 = 8; + a0 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if(((a20==1)&&((a22==1)&&(!(a0==1)&&((a5==1)&&(((a12==9)&&((a3==8)&&((a4==1)&&(((a18==1)&&((a6==1)&&(input==4)))&&!(a15==1)))))&&(a27==1))))))){ + a12 = 8; + a15 = 1; + a3 = 4; + a0 = 1; + return -1; + } else if((((a20==1)&&((((a6==1)&&(!(a27==1)&&((a5==1)&&(!(a15==1)&&(!(a4==1)&&((input==3)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))))&&(a12==9))&&(a3==5)))&&!(a0==1))){ + a22 = 0; + a27 = 1; + a3 = 7; + a12 = 8; + a0 = 1; + a4 = 1; + a18 = 1; + a15 = 1; + return 26; + } else if((!(a5==1)&&((a22==1)&&(((((((a4==1)&&((a0==1)&&((a20==1)&&(!(a15==1)&&(input==6)))))&&!(a27==1))&&!(a18==1))&&!(a6==1))&&(a3==6))&&(a12==10))))){ + a18 = 1; + a4 = 0; + a3 = 4; + a12 = 11; + a22 = 0; + return 26; + } else if(((((((!(a5==1)&&((((!(a6==1)&&(((a4==1)&&(!(a22==1)&&(a18==1)))&&(a3==8)))||((((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8))&&!(a6==1)))||((a6==1)&&((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))))&&(input==1)))&&(a12==11))&&(a27==1))&&!(a0==1))&&(a20==1))&&(a15==1))){ + a6 = 1; + a18 = 1; + a0 = 1; + a3 = 4; + a22 = 1; + a5 = 1; + a4 = 1; + a12 = 8; + return -1; + } else if((!(a15==1)&&((((a0==1)&&((a4==1)&&((a5==1)&&(!(a27==1)&&(!(a6==1)&&((a22==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&(a3==8))))))))&&(a20==1))&&(a12==8)))){ + a12 = 10; + a15 = 1; + a5 = 0; + a18 = 0; + a27 = 1; + a4 = 0; + return 26; + } else if((((a6==1)&&((((a20==1)&&((a3==5)&&((a12==8)&&(((a5==1)&&((input==1)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&(a4==1)))))&&!(a27==1))&&(a15==1)))&&!(a0==1))){ + a18 = 0; + a12 = 10; + a22 = 1; + a15 = 0; + a0 = 1; + a27 = 1; + a6 = 0; + return 21; + } else if(((a15==1)&&((((((a4==1)&&(((a12==12)&&((input==3)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))))&&(a27==1)))&&(a5==1))&&(a20==1))&&!(a6==1))&&!(a0==1)))){ + a6 = 1; + a18 = 1; + a22 = 0; + a15 = 0; + a3 = 7; + a12 = 10; + a4 = 0; + a5 = 0; + a0 = 1; + return -1; + } else if(((!(a6==1)&&(((((!(a4==1)&&(((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==2))&&(a5==1)))&&(a12==9))&&!(a15==1))&&(a20==1))&&(a0==1)))&&!(a27==1))){ + a18 = 1; + a22 = 1; + a6 = 1; + a27 = 1; + a3 = 4; + a12 = 8; + a4 = 1; + a15 = 1; + return -1; + } else if(((a27==1)&&((a15==1)&&(((a18==1)&&(((a12==10)&&((a3==7)&&(((a20==1)&&(((input==1)&&(a4==1))&&(a22==1)))&&!(a0==1))))&&(a5==1)))&&(a6==1))))){ + a3 = 5; + a27 = 0; + a12 = 8; + a18 = 0; + a4 = 0; + a0 = 1; + return 24; + } else if(((a4==1)&&(!(a6==1)&&(!(a22==1)&&(((((((((a15==1)&&(input==3))&&(a20==1))&&!(a5==1))&&(a3==4))&&!(a18==1))&&(a27==1))&&(a12==8))&&!(a0==1)))))){ + a22 = 1; + a4 = 0; + a0 = 1; + a3 = 5; + a12 = 11; + a6 = 1; + return -1; + } else if(((a15==1)&&((a6==1)&&(!(a4==1)&&(((a5==1)&&(!(a0==1)&&(((a20==1)&&((input==3)&&((((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1))))||((a3==5)&&(!(a18==1)&&(a22==1))))))&&(a12==8))))&&(a27==1)))))){ + a18 = 1; + a4 = 1; + a0 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if(((a22==1)&&((((a3==5)&&((!(a4==1)&&(!(a5==1)&&((a12==8)&&(((((a18==1)||!(a18==1))&&(input==4))&&(a20==1))&&!(a15==1)))))&&!(a6==1)))&&(a0==1))&&(a27==1)))){ + if((a4==1)){ + a0 = 0; + a6 = 1; + a15 = 1; + a18 = 0; + a3 = 6; + a12 = 10; + }else{ + a12 = 12; + a27 = 0; + a22 = 0; + a18 = 0; + a15 = 1; + } + return 21; + } else if((((a0==1)&&(((a15==1)&&(!(a5==1)&&(!(a27==1)&&(!(a4==1)&&((input==6)&&((!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1))))||((((a3==8)&&(!(a22==1)&&(a18==1)))&&(a6==1))||((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8))))))))))&&(a20==1)))&&(a12==10))){ + a3 = 6; + a18 = 1; + a6 = 0; + a27 = 1; + a12 = 12; + a15 = 0; + a5 = 1; + a22 = 1; + return 26; + } else if(((a20==1)&&(((a15==1)&&((((a27==1)&&(((a5==1)&&((!(a0==1)&&((input==2)&&((a18==1)||!(a18==1))))&&(a22==1)))&&(a12==11)))&&!(a4==1))&&(a3==6)))&&!(a6==1)))){ + a5 = 0; + a3 = 8; + a15 = 0; + a4 = 1; + a0 = 1; + a18 = 0; + return -1; + } else if((!(a27==1)&&(!(a4==1)&&(!(a15==1)&&((((a3==5)&&((a12==9)&&((((a6==1)&&((a18==1)&&(input==4)))&&(a0==1))&&(a22==1))))&&(a20==1))&&(a5==1)))))){ + a12 = 12; + a15 = 1; + a27 = 1; + a5 = 0; + a3 = 8; + return -1; + } else if(((((((((a12==12)&&(((a27==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a4==1)))&&!(a0==1)))&&(a20==1))&&(a6==1))&&!(a22==1))&&!(a5==1))&&!(a15==1))&&(a3==4))){ + a18 = 0; + a0 = 1; + a5 = 1; + a12 = 8; + a15 = 1; + a3 = 7; + return 26; + } else if(((a12==12)&&((a20==1)&&((!(a0==1)&&((a27==1)&&((((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4))&&(a3==5))&&!(a6==1))&&(a15==1))&&!(a4==1))))&&(a5==1))))){ + a22 = 1; + a12 = 8; + a15 = 0; + a6 = 1; + a27 = 0; + a0 = 1; + a3 = 8; + a18 = 1; + return 21; + } else if(((a5==1)&&((((!(a4==1)&&((((a20==1)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==3)))&&!(a0==1))&&(a12==8)))&&!(a27==1))&&!(a15==1))&&!(a6==1)))){ + a15 = 1; + a18 = 1; + a4 = 1; + a3 = 7; + a22 = 0; + a27 = 1; + a0 = 1; + return -1; + } else if((!(a6==1)&&(((((((!(a15==1)&&((a12==9)&&((((a18==1)||!(a18==1))&&(input==5))&&(a3==8))))&&(a20==1))&&!(a27==1))&&!(a5==1))&&(a0==1))&&(a4==1))&&(a22==1)))){ + a5 = 1; + a18 = 0; + a3 = 6; + a15 = 1; + return 24; + } else if(((a12==8)&&(((((a20==1)&&((a27==1)&&(!(a0==1)&&((((input==5)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&!(a4==1))&&!(a6==1)))))&&!(a5==1))&&(a15==1))&&(a3==8)))){ + if((a18==1)){ + a5 = 1; + a18 = 1; + a6 = 1; + a12 = 11; + a3 = 6; + a15 = 0; + a22 = 1; + }else{ + a6 = 1; + a4 = 1; + a18 = 1; + a12 = 12; + a0 = 1; + a22 = 1; + } + return 21; + } else if(((a20==1)&&(!(a4==1)&&((((a0==1)&&((a12==10)&&((a22==1)&&((a15==1)&&((a3==6)&&((a5==1)&&((input==4)&&((a18==1)||!(a18==1)))))))))&&!(a27==1))&&(a6==1))))){ + a12 = 11; + a15 = 0; + a3 = 8; + a22 = 0; + a6 = 0; + a27 = 1; + a18 = 1; + a5 = 0; + return 21; + } else if((!(a5==1)&&((a22==1)&&(!(a4==1)&&((((!(a27==1)&&((a6==1)&&(!(a0==1)&&((a18==1)&&((input==5)&&(a12==8))))))&&(a20==1))&&(a3==6))&&!(a15==1)))))){ + if((a22==1)){ + a4 = 1; + a6 = 0; + a15 = 1; + a5 = 1; + a0 = 1; + a22 = 0; + a27 = 1; + }else{ + a3 = 4; + a4 = 1; + a27 = 1; + a5 = 1; + a0 = 1; + a6 = 0; + a22 = 0; + a15 = 1; + } + return -1; + } else if((((a6==1)&&(!(a15==1)&&(!(a27==1)&&((((a20==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==5))&&(a12==10)))&&(a5==1))&&!(a0==1)))))&&(a4==1))){ + a18 = 1; + a22 = 1; + a27 = 1; + a0 = 1; + a12 = 12; + a3 = 4; + return 21; + } else if(((((a12==10)&&(((!(a6==1)&&((((a15==1)&&(((input==6)&&!(a27==1))&&(a4==1)))&&!(a0==1))&&(a3==5)))&&(a22==1))&&(a20==1)))&&(a5==1))&&!(a18==1))){ + a12 = 12; + a22 = 0; + a3 = 6; + a5 = 0; + a0 = 1; + a27 = 1; + return 26; + } else if(((((!(a15==1)&&((a5==1)&&((a20==1)&&(((a12==12)&&((input==5)&&(((((a18==1)&&!(a22==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4)))||(((a18==1)&&(a22==1))&&(a3==5)))))&&!(a6==1)))))&&(a4==1))&&(a0==1))&&(a27==1))){ + a12 = 8; + a22 = 1; + a15 = 1; + a18 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if(((a27==1)&&((!(a0==1)&&(!(a5==1)&&((!(a6==1)&&((a12==12)&&((a4==1)&&((a20==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==5))))))&&(a15==1))))&&(a3==7)))){ + a18 = 1; + a6 = 1; + a22 = 0; + a12 = 11; + return 26; + } else if((!(a6==1)&&((a0==1)&&((a4==1)&&(((a12==9)&&((!(a15==1)&&(((input==5)&&((((a22==1)&&(a18==1))&&(a3==7))||((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1))))))&&(a5==1)))&&(a20==1)))&&(a27==1)))))){ + a3 = 6; + a4 = 0; + a22 = 1; + a12 = 10; + a18 = 0; + return 26; + } else if((((a4==1)&&(!(a22==1)&&((a12==9)&&((((!(a27==1)&&(((a6==1)&&((input==4)&&((a18==1)||!(a18==1))))&&(a20==1)))&&(a0==1))&&(a5==1))&&(a3==8)))))&&(a15==1))){ + a18 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + a27 = 1; + return -1; + } else if(((a5==1)&&(((a3==6)&&(((a0==1)&&(((((a20==1)&&((input==4)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a4==1))&&!(a27==1))&&(a6==1)))&&!(a15==1)))&&(a12==12)))){ + a22 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + a15 = 1; + a4 = 1; + a27 = 1; + return -1; + } else if((!(a0==1)&&(((!(a4==1)&&((a20==1)&&(((((a15==1)&&((input==3)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))&&(a5==1))&&(a12==9))&&!(a6==1))))&&(a3==5))&&!(a27==1)))){ + if((a12==11)){ + a0 = 1; + a18 = 0; + a3 = 8; + a22 = 1; + a12 = 12; + a5 = 0; + }else{ + a12 = 8; + a6 = 1; + a3 = 4; + a0 = 1; + a27 = 1; + a4 = 1; + a22 = 0; + a18 = 1; + } + return -1; + } else if(((a12==10)&&((a27==1)&&(((a22==1)&&(((((a3==5)&&((((input==5)&&((a18==1)||!(a18==1)))&&(a6==1))&&(a20==1)))&&!(a5==1))&&(a4==1))&&(a0==1)))&&!(a15==1))))){ + a22 = 0; + a4 = 0; + a3 = 7; + a5 = 1; + a27 = 0; + a18 = 1; + return 26; + } else if(((a5==1)&&((a27==1)&&(((!(a4==1)&&(((((!(a6==1)&&((a3==4)&&(!(a18==1)&&(a22==1))))||((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))))&&(input==1))&&(a20==1))&&!(a15==1)))&&(a12==10))&&!(a0==1))))){ + a12 = 9; + a6 = 0; + a18 = 1; + a0 = 1; + a3 = 7; + a5 = 0; + a22 = 0; + return 21; + } else if(((a3==5)&&(!(a18==1)&&(((a22==1)&&((!(a4==1)&&((a6==1)&&((a12==10)&&((a0==1)&&(!(a5==1)&&((input==1)&&!(a27==1)))))))&&(a20==1)))&&!(a15==1))))){ + if((a15==1)){ + a18 = 1; + a27 = 1; + a15 = 1; + a4 = 1; + a6 = 0; + a3 = 4; + a0 = 0; + a22 = 0; + }else{ + a3 = 7; + a15 = 1; + a12 = 8; + a18 = 1; + } + return -1; + } else if(((!(a15==1)&&(((a20==1)&&((a6==1)&&(((a5==1)&&(!(a27==1)&&((input==3)&&(((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==5))))))&&(a0==1))))&&!(a4==1)))&&(a12==12))){ + a18 = 1; + a3 = 4; + a4 = 1; + a27 = 1; + a22 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if((!(a4==1)&&((a20==1)&&((!(a5==1)&&((!(a22==1)&&((!(a27==1)&&(((a3==6)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a12==11)))&&!(a6==1)))&&(a15==1)))&&!(a0==1))))){ + if((a0==1)){ + a0 = 1; + a6 = 1; + a5 = 1; + a18 = 1; + a27 = 1; + a4 = 1; + a12 = 8; + }else{ + a15 = 0; + a18 = 0; + a22 = 1; + a3 = 5; + a27 = 1; + } + return -1; + } else if((!(a18==1)&&(!(a27==1)&&((a20==1)&&((a22==1)&&(((!(a5==1)&&(((a4==1)&&(!(a15==1)&&((input==2)&&(a3==7))))&&!(a6==1)))&&(a0==1))&&(a12==9))))))){ + a3 = 4; + a27 = 1; + a15 = 1; + a12 = 10; + a5 = 1; + a6 = 1; + a4 = 0; + return -1; + } else if(((a6==1)&&((((!(a27==1)&&((!(a22==1)&&((a18==1)&&(((a12==11)&&((input==5)&&!(a0==1)))&&!(a4==1))))&&(a5==1)))&&(a20==1))&&(a3==4))&&!(a15==1)))){ + a4 = 1; + a6 = 0; + a15 = 1; + a18 = 0; + a3 = 6; + a22 = 1; + a0 = 1; + a27 = 1; + a12 = 8; + return 24; + } else if(((a3==5)&&(!(a27==1)&&(((a5==1)&&(((!(a15==1)&&((a0==1)&&(((!(a6==1)&&(input==4))&&(a12==9))&&(a22==1))))&&(a20==1))&&(a4==1)))&&!(a18==1))))){ + a27 = 1; + a4 = 0; + a15 = 1; + a18 = 1; + a12 = 12; + return 21; + } else if(((a4==1)&&(((a20==1)&&((((a12==9)&&((((((a3==4)&&(!(a18==1)&&(a22==1)))&&!(a6==1))||((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))))&&(input==4))&&(a0==1)))&&!(a5==1))&&(a27==1)))&&(a15==1)))){ + a6 = 1; + a22 = 1; + a12 = 11; + a18 = 0; + a15 = 0; + a3 = 6; + a4 = 0; + return 21; + } else if(((a6==1)&&((((a12==11)&&(!(a15==1)&&((!(a0==1)&&((a18==1)&&(((a3==7)&&((a27==1)&&(input==2)))&&!(a22==1))))&&(a20==1))))&&(a4==1))&&(a5==1)))){ + a3 = 8; + a12 = 10; + a18 = 0; + a4 = 0; + a0 = 1; + a22 = 1; + return -1; + } else if(((a3==7)&&(!(a22==1)&&(!(a5==1)&&(((a6==1)&&(((!(a15==1)&&((((input==5)&&!(a4==1))&&!(a27==1))&&(a12==9)))&&(a20==1))&&!(a18==1)))&&!(a0==1)))))){ + a12 = 8; + a4 = 1; + a5 = 1; + a15 = 1; + a22 = 1; + a0 = 1; + a27 = 1; + a6 = 0; + return -1; + } else if(((a3==7)&&(!(a5==1)&&((!(a4==1)&&(!(a0==1)&&((a20==1)&&((a27==1)&&((((!(a15==1)&&(input==4))&&(a12==12))&&(a22==1))&&!(a6==1))))))&&(a18==1))))){ + a27 = 0; + a12 = 8; + a18 = 0; + a15 = 1; + return 21; + } else if(((a20==1)&&(((!(a15==1)&&(!(a27==1)&&(!(a4==1)&&((a12==12)&&((input==4)&&((((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1))))))))&&!(a5==1))&&(a0==1)))){ + a6 = 1; + a22 = 0; + a18 = 1; + a4 = 1; + a27 = 1; + a5 = 1; + a3 = 5; + a12 = 10; + return 21; + } else if(((a3==4)&&((a12==8)&&(((a20==1)&&((a4==1)&&((a27==1)&&((((a6==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==4)))&&(a15==1))&&!(a0==1)))))&&!(a5==1))))){ + a18 = 0; + a0 = 1; + a3 = 5; + a4 = 0; + a22 = 1; + a27 = 0; + a12 = 9; + return 21; + } else if((((a12==9)&&(!(a0==1)&&((a20==1)&&(((a15==1)&&(!(a22==1)&&(!(a27==1)&&((a3==7)&&((!(a6==1)&&(input==6))&&(a18==1))))))&&!(a4==1)))))&&(a5==1))){ + if((a18==1)){ + a22 = 1; + a15 = 0; + a4 = 1; + a0 = 1; + a18 = 0; + a5 = 0; + a12 = 12; + a6 = 1; + a3 = 6; + }else{ + a3 = 4; + a27 = 1; + a0 = 1; + a12 = 8; + a6 = 1; + } + return 21; + } else if((((!(a6==1)&&(((((a0==1)&&(((a27==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&!(a22==1)))&&(a15==1)))&&!(a4==1))&&(a20==1))&&(a3==8)))&&(a12==11))&&!(a5==1))){ + a22 = 1; + a5 = 1; + a18 = 1; + a6 = 1; + a3 = 4; + a12 = 8; + a4 = 1; + return -1; + } else if(((!(a22==1)&&((a4==1)&&((!(a27==1)&&(((a0==1)&&((!(a15==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a5==1)))&&(a20==1)))&&(a12==12)))&&(a3==8))))&&(a6==1))){ + a27 = 1; + a12 = 8; + a15 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((a12==11)&&((a27==1)&&((((a5==1)&&(!(a22==1)&&((((a20==1)&&(((a4==1)&&(input==5))&&(a3==5)))&&!(a18==1))&&!(a0==1))))&&!(a15==1))&&!(a6==1))))){ + a6 = 1; + a0 = 1; + a18 = 1; + a12 = 8; + a4 = 0; + return 26; + } else if((!(a5==1)&&(!(a15==1)&&(((a4==1)&&((a0==1)&&(((a12==9)&&(((((a3==6)&&(!(a18==1)&&(a22==1)))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a22==1)&&(a18==1)))))&&(input==5))&&(a6==1)))&&!(a27==1))))&&(a20==1))))){ + a5 = 1; + a18 = 1; + a15 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + a27 = 1; + return -1; + } else if((((a27==1)&&((a5==1)&&((!(a4==1)&&((a3==8)&&((a12==10)&&((!(a22==1)&&((a20==1)&&((input==3)&&((a18==1)||!(a18==1)))))&&(a0==1)))))&&!(a15==1))))&&(a6==1))){ + a15 = 1; + a22 = 1; + a27 = 0; + a3 = 6; + a4 = 1; + a18 = 1; + return 26; + } else if(((a20==1)&&(((((a15==1)&&((!(a27==1)&&(((a5==1)&&((a3==4)&&((input==5)&&((a18==1)||!(a18==1)))))&&!(a22==1)))&&(a6==1)))&&!(a4==1))&&(a0==1))&&(a12==12)))){ + a12 = 10; + a27 = 1; + a3 = 7; + a18 = 1; + return 26; + } else if((((a6==1)&&((a5==1)&&(((a4==1)&&(((a0==1)&&((((((a3==7)&&(!(a22==1)&&(a18==1)))||((a3==7)&&(!(a22==1)&&!(a18==1))))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==1))&&!(a15==1)))&&!(a27==1)))&&(a20==1))))&&(a12==9))){ + a12 = 8; + a22 = 1; + a18 = 1; + a27 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if((((!(a0==1)&&(!(a27==1)&&(((a18==1)&&((((((a4==1)&&(input==1))&&!(a5==1))&&(a15==1))&&(a12==8))&&(a3==5)))&&(a20==1))))&&(a22==1))&&!(a6==1))){ + if((a5==1)){ + a3 = 4; + a0 = 1; + a5 = 1; + a18 = 0; + a27 = 1; + a6 = 1; + }else{ + a22 = 0; + a5 = 1; + a27 = 1; + a6 = 1; + a3 = 4; + a18 = 0; + a0 = 1; + } + return 26; + } else if((!(a0==1)&&(((a20==1)&&((((((a6==1)&&((a15==1)&&((a3==8)&&((input==4)&&((a18==1)||!(a18==1))))))&&(a4==1))&&(a5==1))&&(a12==9))&&(a22==1)))&&!(a27==1)))){ + a4 = 0; + a12 = 8; + a27 = 1; + a18 = 1; + a0 = 1; + a22 = 0; + a3 = 4; + return -1; + } else if(((a12==8)&&(!(a4==1)&&((!(a27==1)&&(!(a0==1)&&((a5==1)&&((a3==7)&&(!(a15==1)&&(!(a6==1)&&((input==2)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))))))&&(a20==1))))){ + a4 = 1; + a22 = 1; + a12 = 9; + a15 = 1; + a0 = 1; + a6 = 1; + a18 = 0; + a3 = 4; + a5 = 0; + return 24; + } else if((!(a0==1)&&((a6==1)&&(((a27==1)&&(((((a3==7)&&(((input==2)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&!(a5==1)))&&(a20==1))&&!(a4==1))&&(a15==1)))&&(a12==9))))){ + a0 = 1; + a27 = 0; + a5 = 1; + a22 = 0; + a18 = 0; + a4 = 1; + return 26; + } else if(((a12==10)&&(((!(a6==1)&&((a0==1)&&((((a4==1)&&(((((a22==1)&&(a18==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==6))))&&(input==5)))&&!(a15==1))&&!(a27==1))))&&!(a5==1))&&(a20==1)))){ + a12 = 12; + a22 = 0; + a4 = 0; + a18 = 1; + a6 = 1; + a3 = 5; + a27 = 1; + a5 = 1; + return 21; + } else if((!(a15==1)&&((a5==1)&&(((a12==9)&&(!(a27==1)&&(((a6==1)&&((((((a18==1)&&(a22==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5))))&&(input==4))&&!(a0==1)))&&(a20==1))))&&(a4==1))))){ + a3 = 4; + a15 = 1; + a5 = 0; + a4 = 0; + a27 = 1; + a22 = 0; + a12 = 10; + a0 = 1; + a18 = 1; + return 21; + } else if(((a18==1)&&(!(a4==1)&&((!(a6==1)&&(((a20==1)&&(((a0==1)&&(((a12==12)&&((input==3)&&(a3==4)))&&(a5==1)))&&!(a15==1)))&&(a27==1)))&&!(a22==1))))){ + a22 = 1; + a0 = 0; + a4 = 1; + a3 = 6; + a6 = 1; + a12 = 9; + a15 = 1; + a5 = 0; + return 21; + } else if(((((!(a6==1)&&(((a22==1)&&((a12==12)&&((((((a18==1)||!(a18==1))&&(input==3))&&(a4==1))&&!(a0==1))&&(a3==5))))&&(a27==1)))&&(a15==1))&&!(a5==1))&&(a20==1))){ + a12 = 10; + a6 = 1; + a15 = 0; + a0 = 1; + a5 = 1; + a18 = 0; + a27 = 0; + a22 = 0; + return -1; + } else if(((a12==9)&&(!(a27==1)&&((a20==1)&&(((((input==3)&&((!(a6==1)&&((a3==8)&&((!(a22==1)&&!(a18==1))&&(a4==1))))||((a6==1)&&((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1)))))))&&!(a15==1))&&(a5==1))&&(a0==1)))))){ + a22 = 1; + a12 = 11; + a3 = 4; + a5 = 0; + a4 = 1; + a18 = 1; + a15 = 1; + a6 = 1; + a27 = 1; + return -1; + } else if((((((((((a3==7)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==3))&&!(a27==1)))&&(a20==1))&&(a15==1))&&(a0==1))&&(a5==1))&&(a12==11))&&(a6==1))&&(a4==1))){ + a18 = 0; + a5 = 0; + a6 = 0; + a22 = 1; + a12 = 10; + a15 = 0; + return 21; + } else if((((a15==1)&&((a27==1)&&((a4==1)&&((a12==11)&&((a20==1)&&((((!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1))))||(((((a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))))&&(input==5))&&(a5==1)))))))&&(a0==1))){ + a3 = 6; + a6 = 0; + a4 = 0; + a22 = 0; + a12 = 10; + a18 = 1; + return -1; + } else if(((!(a27==1)&&((!(a6==1)&&((a4==1)&&(!(a0==1)&&(((a12==10)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==5)))&&(a20==1)))))&&!(a15==1)))&&(a5==1))){ + a15 = 1; + a18 = 0; + a0 = 1; + a12 = 8; + a27 = 1; + a22 = 1; + a3 = 6; + a4 = 0; + a6 = 1; + return 24; + } else if(((a6==1)&&((a0==1)&&(((a12==10)&&((!(a4==1)&&(!(a15==1)&&((a20==1)&&((!(a5==1)&&(!(a27==1)&&(input==4)))&&!(a18==1)))))&&(a3==8)))&&!(a22==1))))){ + a4 = 1; + a6 = 0; + a5 = 1; + a27 = 1; + a18 = 1; + a3 = 4; + a15 = 1; + return 24; + } else if(((a20==1)&&((a5==1)&&(!(a22==1)&&((((a3==5)&&((((a6==1)&&((a15==1)&&(((a18==1)||!(a18==1))&&(input==3))))&&!(a4==1))&&(a27==1)))&&(a12==8))&&!(a0==1)))))){ + a15 = 0; + a12 = 11; + a5 = 0; + a27 = 0; + a22 = 1; + a18 = 0; + a0 = 1; + return 26; + } else if(((a20==1)&&(!(a0==1)&&((((a5==1)&&((!(a6==1)&&(((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==2))&&!(a27==1)))&&(a12==10)))&&(a4==1))&&!(a15==1))))){ + if((a18==1)){ + a3 = 8; + a15 = 1; + a22 = 1; + a12 = 8; + a27 = 1; + a0 = 1; + a18 = 1; + }else{ + a3 = 4; + a18 = 1; + a12 = 8; + a15 = 1; + a6 = 1; + a22 = 0; + } + return -1; + } else if(((((a22==1)&&(!(a15==1)&&(((((((((a18==1)||!(a18==1))&&(input==2))&&(a0==1))&&!(a5==1))&&(a12==10))&&!(a6==1))&&!(a27==1))&&(a3==7))))&&(a20==1))&&!(a4==1))){ + a22 = 0; + a18 = 1; + a3 = 5; + a15 = 1; + a5 = 1; + return -1; + } else if((((a22==1)&&((!(a27==1)&&((!(a6==1)&&(((((!(a4==1)&&(input==1))&&(a20==1))&&!(a18==1))&&(a3==6))&&(a0==1)))&&(a12==12)))&&!(a15==1)))&&(a5==1))){ + a5 = 0; + a15 = 1; + a12 = 10; + a27 = 1; + a3 = 8; + a18 = 1; + return -1; + } else if(((a12==10)&&((a27==1)&&(((!(a15==1)&&((!(a4==1)&&((a6==1)&&(((((a3==6)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==4))))&&!(a0==1)))&&!(a5==1))&&(a20==1))))){ + a18 = 1; + a4 = 1; + a0 = 1; + a5 = 1; + a22 = 0; + a12 = 8; + a3 = 8; + return 21; + } else if((((a4==1)&&((((a6==1)&&(((((!(a15==1)&&((input==5)&&!(a18==1)))&&(a3==4))&&(a5==1))&&(a0==1))&&(a20==1)))&&(a27==1))&&(a22==1)))&&(a12==10))){ + a15 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if((!(a18==1)&&(((a4==1)&&((((a3==4)&&(!(a22==1)&&((!(a5==1)&&(((input==5)&&(a20==1))&&!(a6==1)))&&(a27==1))))&&(a12==8))&&(a15==1)))&&!(a0==1)))){ + a18 = 1; + a12 = 11; + a0 = 1; + a3 = 7; + a22 = 1; + return 21; + } else if(((((a4==1)&&((((a20==1)&&((((input==4)&&((((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a18==1)&&!(a22==1))))||((a3==6)&&((a22==1)&&(a18==1)))))&&!(a0==1))&&!(a15==1)))&&!(a6==1))&&(a12==9)))&&(a5==1))&&!(a27==1))){ + a22 = 1; + a0 = 1; + a3 = 8; + a18 = 0; + a27 = 1; + a15 = 1; + a12 = 8; + return 21; + } else if((!(a0==1)&&(((((a20==1)&&(((((a6==1)&&((((a18==1)&&(a22==1))&&!(a4==1))&&(a3==4)))||((((((a18==1)&&!(a22==1))&&(a4==1))&&(a3==8))&&!(a6==1))||((((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8))&&!(a6==1))))&&(input==2))&&(a12==9)))&&(a27==1))&&(a5==1))&&(a15==1)))){ + a4 = 0; + a0 = 1; + a22 = 0; + a6 = 0; + a18 = 1; + a27 = 0; + a3 = 5; + a12 = 10; + return -1; + } else if((((a4==1)&&(((a5==1)&&(((a0==1)&&(((a22==1)&&((a27==1)&&((a3==5)&&(((a18==1)||!(a18==1))&&(input==5)))))&&(a12==11)))&&(a15==1)))&&(a20==1)))&&!(a6==1))){ + a18 = 1; + a22 = 0; + a3 = 7; + a6 = 1; + return -1; + } else if((((a6==1)&&(((((a20==1)&&(!(a4==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==1))&&(a15==1))))&&!(a5==1))&&(a12==9))&&!(a27==1)))&&!(a0==1))){ + if((a6==1)){ + a4 = 1; + a0 = 1; + a3 = 5; + a22 = 1; + a18 = 1; + a6 = 0; + a12 = 8; + }else{ + a18 = 1; + a22 = 1; + a27 = 1; + a0 = 1; + a12 = 8; + a5 = 1; + a4 = 1; + a3 = 7; + } + return 21; + } else if((((a20==1)&&((((a12==11)&&((a6==1)&&(!(a15==1)&&(((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a27==1))&&!(a0==1)))))&&!(a4==1))&&(a3==4)))&&!(a5==1))){ + a22 = 1; + a6 = 0; + a18 = 1; + a5 = 1; + a15 = 1; + a0 = 1; + a3 = 7; + return 21; + } else if((((((a20==1)&&((a12==9)&&(!(a15==1)&&((((((a3==7)&&(!(a18==1)&&(a22==1)))||(((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a18==1)&&(a22==1)))))&&(input==4))&&!(a4==1))&&!(a5==1)))))&&(a0==1))&&!(a27==1))&&(a6==1))){ + a22 = 0; + a3 = 7; + a12 = 12; + a18 = 1; + return 21; + } else if(((!(a6==1)&&(((((a5==1)&&((!(a18==1)&&((a12==10)&&(((input==3)&&(a20==1))&&(a22==1))))&&(a3==7)))&&!(a4==1))&&!(a15==1))&&!(a0==1)))&&!(a27==1))){ + a22 = 0; + a3 = 4; + a6 = 1; + a18 = 1; + a5 = 0; + a15 = 1; + a27 = 1; + return -1; + } else if(((((a15==1)&&(!(a5==1)&&(!(a27==1)&&(((((input==6)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1)))))&&(a12==11))&&!(a0==1))&&(a20==1)))))&&(a4==1))&&(a6==1))){ + if((a12==9)){ + a22 = 0; + a27 = 1; + a3 = 8; + a18 = 1; + a6 = 0; + a12 = 8; + a0 = 1; + a5 = 1; + }else{ + a27 = 1; + a18 = 0; + a12 = 8; + a0 = 1; + a6 = 0; + a5 = 1; + a3 = 6; + a22 = 1; + } + return 21; + } else if((!(a5==1)&&(((a12==11)&&((a4==1)&&((a15==1)&&(((a6==1)&&(!(a27==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==6))&&(a20==1))))&&(a0==1)))))&&(a3==5)))){ + a22 = 1; + a5 = 1; + a6 = 0; + a12 = 8; + a18 = 1; + a27 = 1; + a4 = 0; + return 24; + } else if(((((a15==1)&&((a27==1)&&((a3==7)&&((a5==1)&&((a22==1)&&((a0==1)&&(((((a18==1)||!(a18==1))&&(input==4))&&!(a6==1))&&(a12==12))))))))&&(a20==1))&&(a4==1))){ + a3 = 5; + a22 = 0; + a18 = 0; + a15 = 0; + return 24; + } else if(((a27==1)&&((!(a6==1)&&((a0==1)&&((a4==1)&&((a20==1)&&(((((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==7)))||(((a22==1)&&!(a18==1))&&(a3==7)))&&(input==5))&&(a12==11))&&(a5==1))))))&&!(a15==1)))){ + a3 = 7; + a6 = 1; + a12 = 10; + a18 = 0; + a22 = 0; + return 26; + } else if((((!(a0==1)&&((!(a15==1)&&(!(a4==1)&&(((a5==1)&&((a12==8)&&((input==4)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))))&&(a20==1))))&&(a3==7)))&&!(a27==1))&&(a6==1))){ + a12 = 10; + a22 = 1; + a0 = 1; + a15 = 1; + a3 = 6; + a18 = 1; + return 21; + } else if((((a12==8)&&((a5==1)&&(((a4==1)&&(!(a6==1)&&((((((a3==7)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7))))&&(input==1))&&(a0==1))&&(a20==1))))&&!(a27==1))))&&!(a15==1))){ + a15 = 1; + a4 = 0; + a22 = 0; + a12 = 11; + a18 = 1; + a3 = 4; + return 26; + } else if((((a12==12)&&(((a6==1)&&((!(a5==1)&&(!(a15==1)&&((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==6))&&(a3==5))&&(a0==1))))&&!(a4==1)))&&(a27==1)))&&(a20==1))){ + if((a0==1)){ + a0 = 0; + a12 = 11; + a22 = 0; + a6 = 0; + a15 = 1; + a5 = 1; + a4 = 1; + a3 = 4; + a18 = 0; + }else{ + a15 = 1; + a12 = 11; + a27 = 0; + a18 = 0; + a5 = 1; + a4 = 1; + a22 = 0; + } + return 24; + } else if((!(a5==1)&&(!(a15==1)&&(!(a4==1)&&((((a20==1)&&((a12==8)&&(!(a6==1)&&((input==3)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))))))&&(a27==1))&&!(a0==1)))))){ + a0 = 1; + a15 = 1; + a6 = 1; + a4 = 1; + a5 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((((a27==1)&&((a12==9)&&(((((a4==1)&&(!(a0==1)&&((a20==1)&&((input==5)&&(a3==6)))))&&(a6==1))&&!(a18==1))&&(a5==1))))&&(a22==1))&&!(a15==1))){ + a12 = 8; + a18 = 1; + a15 = 1; + a3 = 4; + a0 = 1; + return -1; + } else if((((a12==8)&&(!(a22==1)&&((a4==1)&&((a20==1)&&((a6==1)&&(((!(a5==1)&&(!(a0==1)&&(((a18==1)||!(a18==1))&&(input==3))))&&!(a15==1))&&(a3==4)))))))&&(a27==1))){ + a18 = 1; + a0 = 1; + a5 = 1; + a22 = 1; + a15 = 1; + return -1; + } else if(((a20==1)&&(!(a15==1)&&((a12==10)&&(((a4==1)&&((a22==1)&&(!(a18==1)&&(((a5==1)&&((a27==1)&&(!(a6==1)&&(input==3))))&&!(a0==1)))))&&(a3==4)))))){ + a4 = 0; + a0 = 1; + a3 = 8; + a18 = 1; + a15 = 1; + a12 = 11; + a22 = 0; + return 24; + } else if((!(a27==1)&&(!(a18==1)&&((a12==9)&&((a15==1)&&((a3==4)&&(((a20==1)&&(!(a0==1)&&(((!(a5==1)&&(input==4))&&(a6==1))&&(a22==1))))&&(a4==1)))))))){ + if((a0==1)){ + a0 = 1; + a22 = 0; + a5 = 1; + a27 = 1; + a4 = 0; + a18 = 1; + a12 = 8; + a3 = 5; + }else{ + a12 = 8; + a0 = 1; + a5 = 1; + a4 = 0; + } + return 21; + } else if(((a6==1)&&((a12==8)&&((a5==1)&&((a27==1)&&(((!(a0==1)&&(((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==2))&&!(a4==1))&&(a3==7)))&&(a15==1))&&(a20==1))))))){ + a4 = 1; + a22 = 1; + a0 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((((a20==1)&&(((a27==1)&&(((a6==1)&&((a3==6)&&(!(a5==1)&&(((input==4)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&(a15==1)))))&&(a12==12)))&&!(a0==1)))&&!(a4==1))){ + a3 = 5; + a18 = 0; + a22 = 0; + a12 = 11; + a4 = 1; + a5 = 1; + return -1; + } else if(((((((!(a15==1)&&(((!(a6==1)&&((a27==1)&&((input==6)&&(a20==1))))&&!(a0==1))&&(a4==1)))&&(a3==5))&&(a18==1))&&(a12==12))&&!(a22==1))&&!(a5==1))){ + a3 = 7; + a6 = 1; + a15 = 1; + a4 = 0; + a12 = 8; + a5 = 1; + return 21; + } else if(((!(a0==1)&&(!(a4==1)&&(!(a27==1)&&((a20==1)&&((!(a6==1)&&(((((a3==6)&&(!(a18==1)&&(a22==1)))||(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1)))))&&(input==4))&&(a15==1)))&&(a12==9))))))&&!(a5==1))){ + a27 = 1; + a22 = 0; + a15 = 0; + a18 = 0; + a4 = 1; + a6 = 1; + a3 = 8; + a12 = 10; + return 21; + } else if(((((a3==5)&&((a15==1)&&((a5==1)&&((!(a6==1)&&(((a22==1)&&(((input==3)&&(a12==9))&&!(a18==1)))&&(a20==1)))&&!(a4==1)))))&&!(a0==1))&&(a27==1))){ + a12 = 10; + a0 = 1; + a3 = 4; + a22 = 0; + a5 = 0; + a15 = 0; + return 21; + } else if(((!(a0==1)&&(((a12==9)&&((a3==8)&&(((a15==1)&&((a4==1)&&((a6==1)&&((a18==1)&&((a20==1)&&(input==5))))))&&(a27==1))))&&(a5==1)))&&!(a22==1))){ + a15 = 0; + a18 = 0; + a4 = 0; + a5 = 0; + a3 = 5; + return 24; + } else if(((a12==11)&&(!(a4==1)&&((!(a5==1)&&((a27==1)&&((a20==1)&&(!(a6==1)&&(((a0==1)&&((input==3)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a15==1))))))&&(a3==5))))){ + a3 = 8; + a12 = 8; + a4 = 1; + a5 = 1; + a22 = 1; + a0 = 0; + a18 = 1; + return -1; + } else if((!(a27==1)&&((a20==1)&&(((((a5==1)&&((a6==1)&&(((input==6)&&((((a22==1)&&(a18==1))&&(a3==7))||((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1))))))&&(a12==8))))&&!(a4==1))&&(a0==1))&&(a15==1))))){ + a18 = 0; + a22 = 1; + a12 = 10; + a27 = 1; + a3 = 4; + return -1; + } else if(((!(a6==1)&&(((!(a4==1)&&(((((a0==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==2)))&&!(a27==1))&&!(a5==1))&&(a3==7)))&&(a20==1))&&(a12==11)))&&!(a15==1))){ + a22 = 0; + a18 = 1; + a6 = 1; + a3 = 6; + a27 = 1; + a5 = 1; + return 26; + } else if((((((((a3==4)&&((a18==1)&&(!(a5==1)&&((!(a27==1)&&((a0==1)&&(input==5)))&&(a15==1)))))&&(a20==1))&&(a22==1))&&!(a6==1))&&!(a4==1))&&(a12==9))){ + a22 = 0; + a6 = 1; + a12 = 8; + a15 = 0; + a27 = 1; + a0 = 0; + return 21; + } else if((!(a6==1)&&(((a20==1)&&(!(a4==1)&&((!(a27==1)&&((a12==8)&&((!(a5==1)&&((a15==1)&&(((a18==1)||!(a18==1))&&(input==3))))&&(a3==7))))&&(a22==1))))&&(a0==1)))){ + a3 = 4; + a5 = 1; + a18 = 1; + a6 = 1; + a4 = 1; + a27 = 1; + return -1; + } else if(((a0==1)&&((((((((a20==1)&&((((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==6)))&&(a15==1))&&!(a5==1))&&(a4==1))&&(a6==1))&&(a12==10))&&(a27==1)))){ + a4 = 0; + a22 = 1; + a18 = 1; + a6 = 0; + a5 = 1; + a3 = 8; + return -1; + } else if((!(a22==1)&&(!(a0==1)&&(((a27==1)&&((a12==11)&&((a5==1)&&((a6==1)&&(((((input==5)&&(a4==1))&&(a18==1))&&(a3==7))&&!(a15==1))))))&&(a20==1))))){ + a0 = 1; + a3 = 8; + a6 = 0; + a12 = 10; + return -1; + } else if(((a12==9)&&((a20==1)&&((!(a18==1)&&((((((!(a6==1)&&((a0==1)&&(input==1)))&&(a3==8))&&!(a27==1))&&!(a22==1))&&!(a5==1))&&!(a15==1)))&&!(a4==1))))){ + a6 = 1; + a12 = 8; + a5 = 1; + a3 = 6; + return -1; + } else if((!(a27==1)&&((a15==1)&&((a12==8)&&((a20==1)&&((a6==1)&&(!(a0==1)&&((((input==1)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7))))&&!(a4==1))&&(a5==1))))))))){ + if((a22==1)){ + a0 = 1; + a22 = 1; + a18 = 1; + a6 = 0; + a27 = 1; + a3 = 4; + }else{ + a18 = 1; + a27 = 1; + a22 = 1; + a0 = 1; + a3 = 7; + } + return -1; + } else if(((!(a0==1)&&((a22==1)&&(!(a15==1)&&((a3==7)&&(((a12==8)&&((a5==1)&&(!(a6==1)&&((a20==1)&&((input==2)&&(a18==1))))))&&(a4==1))))))&&!(a27==1))){ + a6 = 1; + a3 = 6; + a18 = 0; + a0 = 1; + a22 = 0; + a15 = 1; + a27 = 1; + return -1; + } else if((!(a6==1)&&(!(a4==1)&&((a3==8)&&((a5==1)&&(((((!(a27==1)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==6)))&&!(a0==1))&&(a15==1))&&(a20==1))&&(a12==8))))))){ + a3 = 6; + a12 = 9; + a27 = 1; + a22 = 0; + a0 = 1; + a15 = 0; + a18 = 1; + return -1; + } else if((((a20==1)&&((a22==1)&&(!(a18==1)&&(((a12==10)&&(!(a6==1)&&((a3==7)&&((a4==1)&&((a27==1)&&(!(a15==1)&&(input==3)))))))&&(a0==1)))))&&(a5==1))){ + a12 = 8; + a15 = 1; + a3 = 4; + a6 = 1; + a18 = 1; + return -1; + } else if((((((a20==1)&&((!(a5==1)&&((((((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==4))&&(a0==1))&&(a15==1)))&&(a12==12)))&&(a4==1))&&(a27==1))&&(a6==1))){ + a12 = 10; + a15 = 0; + a4 = 0; + a22 = 0; + a18 = 0; + a3 = 5; + return -1; + } else if(((a3==6)&&(((a20==1)&&(!(a0==1)&&((!(a27==1)&&(((a12==9)&&(((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==1))&&!(a6==1)))&&(a5==1)))&&!(a4==1))))&&(a15==1)))){ + a3 = 4; + a0 = 1; + a5 = 0; + a4 = 1; + a6 = 1; + a22 = 1; + a18 = 1; + a27 = 1; + return -1; + } else if((((a12==9)&&(!(a4==1)&&((a20==1)&&(((a5==1)&&((!(a0==1)&&((((!(a18==1)&&(a22==1))&&(a3==8))||(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8))))&&(input==1)))&&(a27==1)))&&(a15==1)))))&&(a6==1))){ + a6 = 0; + a12 = 12; + a15 = 0; + a3 = 6; + a22 = 0; + a18 = 0; + a0 = 1; + a4 = 1; + return 26; + } else if(((!(a15==1)&&((!(a0==1)&&(!(a22==1)&&((((a3==4)&&((a6==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a20==1))))&&!(a5==1))&&(a12==8))))&&!(a4==1)))&&(a27==1))){ + a18 = 0; + a12 = 10; + a0 = 1; + a4 = 1; + a3 = 6; + return 21; + } else if(((a20==1)&&(((!(a6==1)&&((a3==7)&&((!(a4==1)&&((a5==1)&&((a15==1)&&((input==1)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))&&(a12==11))))&&(a0==1))&&!(a27==1)))){ + a3 = 4; + a6 = 1; + a22 = 0; + a5 = 0; + a12 = 8; + a18 = 0; + a4 = 1; + return -1; + } else if((!(a5==1)&&((a0==1)&&(((((((a20==1)&&((((!(a18==1)&&(a22==1))&&(a3==7))||(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1)))))&&(input==6)))&&(a12==9))&&!(a15==1))&&!(a4==1))&&(a6==1))&&!(a27==1))))){ + a12 = 11; + a18 = 0; + a27 = 1; + a3 = 4; + a22 = 1; + return 26; + } else if(((!(a5==1)&&((a27==1)&&(((a3==6)&&((a20==1)&&(!(a6==1)&&((a4==1)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==1))&&!(a0==1))))))&&(a15==1))))&&(a12==8))){ + a3 = 4; + a6 = 1; + a18 = 1; + a0 = 1; + a5 = 1; + a22 = 1; + return -1; + } else if((!(a6==1)&&(((((((!(a0==1)&&((((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==5)))&&(a4==1))&&(a12==9))&&!(a15==1))&&(a5==1))&&(a27==1))&&(a20==1)))){ + a0 = 1; + a22 = 1; + a3 = 5; + a18 = 1; + a15 = 1; + a4 = 0; + a12 = 12; + return 21; + } else if(((a27==1)&&((a5==1)&&((((a12==10)&&((!(a18==1)&&(!(a22==1)&&((!(a15==1)&&((a3==6)&&(input==2)))&&(a6==1))))&&(a20==1)))&&!(a4==1))&&!(a0==1))))){ + a27 = 0; + a4 = 1; + a0 = 1; + a3 = 4; + a15 = 1; + a12 = 9; + return -1; + } else if((!(a27==1)&&(!(a18==1)&&(((((((a3==6)&&(((a12==9)&&((input==1)&&(a4==1)))&&!(a22==1)))&&!(a6==1))&&!(a5==1))&&(a20==1))&&(a0==1))&&(a15==1))))){ + if((a27==1)){ + a15 = 0; + a0 = 0; + a4 = 0; + a12 = 8; + a27 = 1; + a22 = 1; + }else{ + a27 = 1; + a12 = 11; + a22 = 1; + a6 = 1; + a3 = 7; + a15 = 0; + } + return 24; + } else if(((!(a27==1)&&((a5==1)&&(((!(a15==1)&&(((a22==1)&&((!(a0==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a12==10)))&&(a6==1)))&&!(a4==1))&&(a3==7))))&&(a20==1))){ + a12 = 11; + a18 = 1; + a0 = 1; + a3 = 6; + a15 = 1; + return 21; + } return calculate_output72(input); + } + + int calculate_output72(int input) { + if((((a12==11)&&((a20==1)&&((a4==1)&&(((a15==1)&&(((input==1)&&((((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1)))||(!(a6==1)&&((a3==4)&&(!(a18==1)&&(a22==1))))))&&(a5==1)))&&!(a27==1)))))&&!(a0==1))){ + a3 = 4; + a22 = 1; + a18 = 1; + a0 = 1; + a4 = 0; + a27 = 1; + a12 = 8; + a6 = 1; + return -1; + } else if(((a20==1)&&((((!(a27==1)&&(!(a5==1)&&((a15==1)&&(!(a4==1)&&(!(a0==1)&&(((input==5)&&(a3==6))&&!(a22==1)))))))&&!(a6==1))&&(a18==1))&&(a12==9)))){ + if((a20==1)){ + a3 = 8; + a12 = 10; + a27 = 1; + }else{ + a12 = 10; + a22 = 1; + a3 = 8; + } + return 26; + } else if(((a3==8)&&((((a18==1)&&((a27==1)&&((a0==1)&&((!(a5==1)&&((!(a15==1)&&((input==3)&&(a20==1)))&&(a12==9)))&&(a4==1)))))&&!(a6==1))&&(a22==1)))){ + a18 = 0; + a5 = 1; + a15 = 1; + a12 = 12; + a3 = 4; + a4 = 0; + return 26; + } else if(((a15==1)&&((a5==1)&&(((a20==1)&&(((a4==1)&&((((input==3)&&((((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==5))))&&(a12==12))&&!(a27==1)))&&!(a6==1)))&&(a0==1))))){ + a4 = 0; + a27 = 1; + a12 = 10; + a22 = 0; + a6 = 1; + a3 = 4; + a18 = 1; + return 24; + } else if(((a27==1)&&(((!(a4==1)&&(((a6==1)&&(((((input==3)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a15==1))&&(a12==12))&&(a3==4)))&&!(a0==1)))&&!(a5==1))&&(a20==1)))){ + a12 = 8; + a5 = 1; + a18 = 0; + a0 = 1; + a22 = 0; + a4 = 1; + return 21; + } else if(((((a20==1)&&(((!(a15==1)&&(!(a5==1)&&((a6==1)&&(!(a18==1)&&((a4==1)&&(!(a27==1)&&(input==4)))))))&&(a22==1))&&!(a0==1)))&&(a12==10))&&(a3==8))){ + a12 = 12; + a4 = 0; + a27 = 1; + a3 = 6; + return -1; + } else if(((((a6==1)&&(((a3==8)&&(((((!(a15==1)&&((a0==1)&&(input==6)))&&!(a22==1))&&!(a4==1))&&!(a5==1))&&(a20==1)))&&!(a27==1)))&&(a18==1))&&(a12==11))){ + a12 = 10; + a4 = 1; + a27 = 1; + a3 = 4; + a15 = 1; + return 21; + } else if(((!(a18==1)&&(!(a22==1)&&(!(a5==1)&&(((!(a15==1)&&(!(a27==1)&&((!(a4==1)&&((input==2)&&(a0==1)))&&(a12==10))))&&(a3==8))&&(a6==1)))))&&(a20==1))){ + a3 = 6; + a18 = 1; + a12 = 11; + a4 = 1; + a5 = 1; + return 21; + } else if(((!(a18==1)&&(((a27==1)&&(((a0==1)&&((!(a22==1)&&((a3==6)&&(((input==3)&&(a12==11))&&(a15==1))))&&!(a6==1)))&&!(a5==1)))&&!(a4==1)))&&(a20==1))){ + if((a27==1)){ + a22 = 1; + a0 = 0; + a3 = 4; + a6 = 1; + a18 = 1; + a12 = 10; + }else{ + a12 = 10; + a18 = 1; + a4 = 1; + a15 = 0; + a6 = 1; + a3 = 4; + } + return 21; + } else if(((a5==1)&&(!(a15==1)&&((!(a18==1)&&((a27==1)&&(((a20==1)&&((a0==1)&&(((a6==1)&&((input==4)&&(a3==6)))&&!(a22==1))))&&(a4==1))))&&(a12==10))))){ + a12 = 12; + a3 = 7; + a18 = 1; + return 24; + } else if(((a27==1)&&((((((((!(a6==1)&&((input==6)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&(a3==8))&&(a0==1))&&(a5==1))&&(a20==1))&&(a15==1))&&!(a4==1))&&(a12==10)))){ + a18 = 1; + a22 = 0; + a3 = 5; + return -1; + } else if((!(a22==1)&&(((((((((a20==1)&&(!(a5==1)&&((a3==7)&&(input==5))))&&(a4==1))&&!(a15==1))&&(a0==1))&&(a6==1))&&(a18==1))&&(a27==1))&&(a12==9)))){ + a3 = 4; + a15 = 1; + a22 = 1; + a12 = 8; + a5 = 1; + return -1; + } else if((((!(a4==1)&&(((a15==1)&&((a5==1)&&((!(a27==1)&&((a12==11)&&((input==5)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))))&&(a20==1))))&&!(a0==1)))&&!(a6==1))&&(a3==5))){ + a6 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + a5 = 0; + a15 = 0; + a4 = 1; + return 21; + } else if((((((!(a0==1)&&((a3==6)&&(((a20==1)&&((((input==4)&&((a18==1)||!(a18==1)))&&(a5==1))&&!(a6==1)))&&(a27==1))))&&(a12==11))&&(a22==1))&&!(a4==1))&&(a15==1))){ + a12 = 10; + a18 = 1; + a5 = 0; + a6 = 1; + a22 = 0; + a3 = 5; + a0 = 1; + return 21; + } else if((((a27==1)&&(!(a6==1)&&((((a15==1)&&(!(a0==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==6))&&(a5==1))))&&(a12==9))&&!(a4==1))))&&(a20==1))){ + a12 = 11; + a27 = 0; + a6 = 1; + a3 = 8; + a0 = 1; + a22 = 0; + a18 = 1; + a15 = 0; + return -1; + } else if(((((a12==11)&&((a3==6)&&((a15==1)&&((((a22==1)&&((a4==1)&&((a20==1)&&((a27==1)&&(input==6)))))&&(a5==1))&&(a0==1)))))&&(a6==1))&&(a18==1))){ + a22 = 0; + a6 = 0; + a3 = 7; + a4 = 0; + a0 = 0; + return 26; + } else if((((a6==1)&&(!(a22==1)&&(((((a5==1)&&(((a20==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&!(a15==1)))&&(a4==1)))&&(a3==4))&&(a12==10))&&!(a0==1))))&&!(a27==1))){ + if((a18==1)){ + a3 = 6; + a12 = 9; + a5 = 0; + a18 = 0; + a27 = 1; + a4 = 0; + }else{ + a3 = 7; + a18 = 1; + a27 = 1; + a0 = 1; + a15 = 1; + a22 = 1; + a12 = 8; + } + return 26; + } else if(((a3==6)&&(((!(a15==1)&&((a4==1)&&((((a5==1)&&((a27==1)&&((a20==1)&&(((a18==1)||!(a18==1))&&(input==6)))))&&(a0==1))&&(a12==8))))&&(a22==1))&&(a6==1)))){ + a15 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((!(a4==1)&&(((((a20==1)&&(((!(a15==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==3)))&&!(a5==1))&&(a3==4)))&&(a6==1))&&(a12==12))&&!(a27==1)))&&(a0==1))){ + a5 = 1; + a22 = 1; + a15 = 1; + a4 = 1; + a18 = 1; + a12 = 8; + a27 = 1; + return -1; + } else if(((!(a4==1)&&(((a12==10)&&(!(a27==1)&&((((!(a15==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==1)))&&(a20==1))&&(a3==7))&&(a0==1))))&&(a6==1)))&&(a5==1))){ + a22 = 1; + a5 = 0; + a27 = 1; + a6 = 0; + a12 = 11; + a18 = 1; + a15 = 1; + return 26; + } else if((((!(a22==1)&&((((((a20==1)&&((a18==1)&&(((input==6)&&(a15==1))&&(a5==1))))&&(a3==6))&&(a12==11))&&(a6==1))&&(a0==1)))&&!(a27==1))&&(a4==1))){ + a12 = 9; + a6 = 0; + a15 = 0; + return 24; + } else if((((!(a4==1)&&(((a12==10)&&(!(a27==1)&&(!(a15==1)&&((((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))||((((a3==8)&&(!(a22==1)&&(a18==1)))&&(a6==1))||((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))))&&(input==1)))))&&(a20==1)))&&(a5==1))&&(a0==1))){ + a18 = 1; + a3 = 5; + a22 = 0; + a6 = 1; + return 26; + } else if((((((((!(a5==1)&&((((input==4)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a12==11))&&!(a27==1)))&&!(a4==1))&&(a20==1))&&!(a0==1))&&(a3==4))&&!(a15==1))&&!(a6==1))){ + a0 = 1; + a22 = 1; + a18 = 0; + a6 = 1; + a3 = 8; + a12 = 8; + a5 = 1; + return -1; + } else if(((!(a4==1)&&((a3==5)&&(((((a6==1)&&((!(a15==1)&&((input==6)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))&&(a20==1)))&&(a12==10))&&!(a27==1))&&!(a5==1))))&&!(a0==1))){ + if((a12==10)){ + a18 = 0; + a0 = 1; + a5 = 1; + a15 = 1; + a27 = 1; + a3 = 6; + a12 = 8; + a22 = 0; + }else{ + a22 = 0; + a27 = 1; + a5 = 1; + a15 = 1; + a18 = 0; + a12 = 8; + a3 = 8; + a0 = 1; + } + return -1; + } else if((!(a6==1)&&(((((a20==1)&&((a12==8)&&(!(a15==1)&&(!(a5==1)&&((a0==1)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==4)))))))&&!(a27==1))&&!(a4==1))&&(a3==8)))){ + a12 = 10; + a18 = 0; + a22 = 0; + a6 = 1; + a3 = 4; + return 26; + } else if((!(a15==1)&&((!(a5==1)&&((!(a6==1)&&((a12==10)&&(((a0==1)&&(((input==4)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&(a20==1)))&&(a3==8))))&&!(a27==1)))&&(a4==1)))){ + a22 = 1; + a15 = 1; + a5 = 1; + a18 = 1; + a12 = 11; + a27 = 1; + a3 = 4; + return 26; + } else if(((a12==10)&&((!(a0==1)&&((a3==7)&&(((!(a6==1)&&((!(a15==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4)))&&(a20==1)))&&!(a5==1))&&(a27==1))))&&(a4==1)))){ + a5 = 1; + a18 = 0; + a22 = 0; + a6 = 1; + a12 = 12; + a0 = 1; + a15 = 1; + a4 = 0; + return -1; + } else if((!(a4==1)&&(!(a15==1)&&((((a6==1)&&(((a12==9)&&((((a20==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a5==1))&&(a0==1)))&&(a3==6)))&&!(a27==1))&&!(a22==1))))){ + a18 = 1; + a15 = 1; + a0 = 0; + a3 = 7; + a12 = 11; + a4 = 1; + a27 = 1; + a6 = 0; + return 24; + } else if(((a15==1)&&((a4==1)&&(((((a12==10)&&(!(a6==1)&&((!(a22==1)&&(((input==6)&&(a3==6))&&!(a5==1)))&&(a18==1))))&&(a27==1))&&(a0==1))&&(a20==1))))){ + a22 = 1; + a4 = 0; + a12 = 8; + a18 = 0; + a5 = 1; + return -1; + } else if(((a15==1)&&((a12==10)&&(!(a5==1)&&(((a4==1)&&((a3==4)&&((a6==1)&&(((a20==1)&&(!(a18==1)&&(!(a0==1)&&(input==5))))&&!(a22==1)))))&&(a27==1)))))){ + a5 = 1; + a12 = 8; + a22 = 1; + a18 = 1; + a0 = 1; + return -1; + } else if(((a18==1)&&((a20==1)&&(!(a4==1)&&(((((!(a22==1)&&((((a0==1)&&(input==2))&&(a15==1))&&!(a6==1)))&&(a5==1))&&(a12==10))&&!(a27==1))&&(a3==4)))))){ + a3 = 7; + a12 = 9; + a4 = 1; + a22 = 1; + a15 = 0; + return 21; + } else if(((a15==1)&&((a5==1)&&((((a3==4)&&(!(a27==1)&&(((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a12==11))&&(a4==1))&&(a6==1))))&&(a20==1))&&!(a0==1))))){ + if((a6==1)){ + a0 = 1; + a27 = 1; + a22 = 0; + a3 = 6; + a18 = 0; + a12 = 8; + a6 = 0; + }else{ + a22 = 0; + a3 = 8; + a6 = 0; + a12 = 8; + a0 = 1; + a18 = 0; + a27 = 1; + } + return -1; + } else if((((a12==12)&&((a20==1)&&((a0==1)&&((a3==5)&&((((a15==1)&&(!(a5==1)&&((input==1)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))))&&!(a4==1))&&!(a27==1))))))&&!(a6==1))){ + a12 = 10; + a3 = 6; + a15 = 0; + a18 = 0; + a4 = 1; + a22 = 0; + a27 = 1; + return 21; + } else if((!(a18==1)&&((a20==1)&&((a15==1)&&(((a12==9)&&(!(a4==1)&&((a0==1)&&(!(a27==1)&&((a6==1)&&(((a3==6)&&(input==5))&&(a5==1)))))))&&(a22==1)))))){ + a12 = 8; + a3 = 4; + a4 = 1; + a27 = 1; + a18 = 1; + return -1; + } else if(((!(a5==1)&&(((!(a0==1)&&(((a12==8)&&((a27==1)&&((a3==7)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==6)))))&&(a20==1)))&&(a6==1))&&(a4==1)))&&!(a15==1))){ + a15 = 1; + a22 = 1; + a18 = 1; + a5 = 1; + a3 = 4; + a0 = 1; + return -1; + } else if(((a6==1)&&(((a15==1)&&(!(a5==1)&&((a12==11)&&((((a20==1)&&(((((a18==1)||!(a18==1))&&(input==1))&&(a3==8))&&(a27==1)))&&(a0==1))&&!(a4==1)))))&&(a22==1)))){ + a3 = 4; + a5 = 1; + a12 = 8; + a18 = 1; + a4 = 1; + return -1; + } else if(((!(a15==1)&&((((a20==1)&&((a4==1)&&((a5==1)&&((a6==1)&&((((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==5))))))&&(a12==11))&&(a0==1)))&&!(a27==1))){ + a15 = 1; + a18 = 0; + a22 = 0; + a27 = 1; + a4 = 0; + a3 = 5; + a6 = 0; + return -1; + } else if((((a20==1)&&(((a3==7)&&(!(a15==1)&&((((a12==8)&&(!(a5==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a27==1))))&&(a0==1))&&(a6==1))))&&!(a22==1)))&&!(a4==1))){ + a22 = 1; + a12 = 10; + a6 = 0; + a4 = 1; + a15 = 1; + a18 = 0; + a0 = 0; + return 21; + } else if((!(a22==1)&&(!(a27==1)&&(((a3==8)&&(((a20==1)&&((a15==1)&&(!(a5==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&(a12==9))&&!(a4==1)))))&&!(a6==1)))&&(a0==1))))){ + a6 = 1; + a12 = 12; + a4 = 1; + a5 = 1; + a15 = 0; + a18 = 0; + a22 = 1; + return 26; + } else if(((!(a27==1)&&(((a12==8)&&((a6==1)&&((a15==1)&&(((((((a18==1)||!(a18==1))&&(input==6))&&(a20==1))&&!(a22==1))&&(a4==1))&&(a0==1)))))&&(a3==6)))&&(a5==1))){ + a18 = 0; + a4 = 0; + a12 = 12; + a5 = 0; + a27 = 1; + a22 = 1; + return -1; + } else if(((a20==1)&&(((((!(a5==1)&&(!(a4==1)&&(!(a6==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))||((a3==5)&&((a22==1)&&!(a18==1))))&&(input==1)))))&&!(a15==1))&&(a0==1))&&!(a27==1))&&(a12==9)))){ + if((a27==1)){ + a27 = 1; + a15 = 1; + a3 = 6; + a12 = 8; + a0 = 0; + a6 = 1; + a5 = 1; + a18 = 0; + a22 = 0; + }else{ + a3 = 5; + a12 = 12; + a22 = 0; + a4 = 1; + a18 = 0; + a15 = 1; + } + return 21; + } else if((((a15==1)&&(!(a0==1)&&(!(a27==1)&&(!(a5==1)&&((a12==11)&&(((input==6)&&((((a3==4)&&((a22==1)&&!(a18==1)))&&!(a6==1))||((((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1)))))))&&(a20==1)))))))&&(a4==1))){ + a18 = 1; + a6 = 0; + a22 = 0; + a12 = 10; + a5 = 1; + a3 = 5; + a15 = 0; + a0 = 1; + a27 = 1; + return -1; + } else if(((a4==1)&&(((((((a22==1)&&((((((a18==1)||!(a18==1))&&(input==4))&&!(a5==1))&&!(a27==1))&&(a20==1)))&&(a6==1))&&(a3==4))&&(a0==1))&&(a15==1))&&(a12==8)))){ + a12 = 12; + a5 = 1; + a4 = 0; + a18 = 1; + a3 = 8; + a27 = 1; + a22 = 0; + a15 = 0; + return -1; + } else if((((!(a15==1)&&((((a12==8)&&((((a5==1)&&(!(a27==1)&&(((a18==1)||!(a18==1))&&(input==3))))&&(a20==1))&&!(a4==1)))&&(a0==1))&&(a3==5)))&&!(a22==1))&&!(a6==1))){ + a4 = 1; + a6 = 1; + a27 = 1; + a15 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((((a12==12)&&((a6==1)&&((((!(a4==1)&&((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==2)))&&(a27==1))&&(a15==1))&&(a20==1))))&&!(a0==1))&&!(a5==1))){ + if((a20==1)){ + a0 = 1; + a22 = 0; + a27 = 0; + a4 = 1; + a15 = 0; + a6 = 0; + a5 = 1; + a12 = 10; + a3 = 8; + a18 = 1; + }else{ + a5 = 1; + a18 = 0; + a0 = 1; + a3 = 4; + a4 = 1; + a22 = 0; + a12 = 11; + a15 = 0; + } + return -1; + } else if(((a20==1)&&(((!(a4==1)&&((a12==10)&&((a6==1)&&(((!(a22==1)&&(!(a15==1)&&(((a18==1)||!(a18==1))&&(input==5))))&&(a0==1))&&(a27==1)))))&&(a3==6))&&(a5==1)))){ + a18 = 0; + a6 = 0; + a4 = 1; + a12 = 11; + a3 = 4; + a15 = 1; + return 21; + } else if(((((((a15==1)&&(!(a4==1)&&(((((a12==10)&&((input==6)&&(a0==1)))&&(a3==5))&&!(a5==1))&&(a20==1))))&&!(a27==1))&&!(a18==1))&&(a6==1))&&!(a22==1))){ + a15 = 0; + a3 = 4; + a22 = 1; + a5 = 1; + a6 = 0; + a4 = 1; + return -1; + } else if(((((a12==8)&&(((a6==1)&&((!(a15==1)&&((a4==1)&&((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==4))&&(a3==6))))&&(a20==1)))&&!(a0==1)))&&!(a27==1))&&!(a5==1))){ + a3 = 8; + a4 = 0; + a18 = 0; + a22 = 0; + a5 = 1; + a27 = 1; + return 26; + } else if(((a3==8)&&(((a12==9)&&((((a15==1)&&(((!(a4==1)&&((input==1)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&!(a0==1))&&!(a6==1)))&&!(a5==1))&&(a20==1)))&&!(a27==1)))){ + a27 = 1; + a4 = 1; + a3 = 7; + a22 = 1; + a6 = 1; + a12 = 8; + a0 = 1; + a18 = 0; + return -1; + } else if(((((((a12==9)&&(((!(a0==1)&&((input==4)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))))&&(a5==1))&&(a20==1)))&&!(a15==1))&&(a27==1))&&(a4==1))&&!(a6==1))){ + a6 = 1; + a27 = 0; + a4 = 0; + a12 = 8; + a3 = 7; + a0 = 1; + a5 = 0; + a22 = 0; + a18 = 1; + return 24; + } else if(((a12==8)&&(((a0==1)&&((((a6==1)&&((a4==1)&&((a20==1)&&(((((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==4)))))&&(a27==1))&&(a15==1)))&&!(a5==1)))){ + a6 = 0; + a22 = 1; + a3 = 5; + a18 = 0; + a4 = 0; + a12 = 9; + return 26; + } else if(((a20==1)&&((a15==1)&&((a0==1)&&((a12==11)&&(((a3==7)&&((a27==1)&&((a4==1)&&((a6==1)&&((!(a22==1)&&(input==5))&&!(a5==1))))))&&(a18==1))))))){ + a15 = 0; + a27 = 0; + a5 = 1; + a6 = 0; + return 21; + } else if(((a12==11)&&((a4==1)&&((a3==8)&&((((a15==1)&&(!(a27==1)&&((a5==1)&&((a6==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4))))))&&(a20==1))&&!(a0==1)))))){ + a22 = 1; + a18 = 0; + a4 = 0; + a12 = 9; + a3 = 4; + return 21; + } else if((((((a5==1)&&((!(a0==1)&&((!(a4==1)&&(((((a22==1)&&!(a18==1))&&(a3==5))||(((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==5))))&&(input==1)))&&(a20==1)))&&!(a15==1)))&&!(a27==1))&&!(a6==1))&&(a12==10))){ + a3 = 6; + a22 = 1; + a27 = 1; + a4 = 1; + a0 = 1; + a18 = 0; + a6 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if(((a15==1)&&((a20==1)&&(!(a0==1)&&(!(a6==1)&&(!(a5==1)&&((a22==1)&&((a12==12)&&(((a3==5)&&((a4==1)&&((input==4)&&((a18==1)||!(a18==1)))))&&(a27==1)))))))))){ + a0 = 1; + a12 = 8; + a3 = 8; + a4 = 0; + a18 = 1; + a5 = 1; + a6 = 1; + return 24; + } else if(((a20==1)&&(!(a15==1)&&(((a0==1)&&((a12==10)&&(!(a27==1)&&((((a6==1)&&(((!(a18==1)&&(a22==1))&&!(a4==1))&&(a3==4)))||((!(a6==1)&&(((a4==1)&&(!(a22==1)&&!(a18==1)))&&(a3==8)))||((a6==1)&&((a3==4)&&(!(a4==1)&&((a22==1)&&(a18==1)))))))&&(input==1)))))&&!(a5==1))))){ + a4 = 0; + a6 = 0; + a3 = 7; + a18 = 0; + a15 = 1; + a22 = 1; + a27 = 1; + return 26; + } else if(((!(a22==1)&&((a6==1)&&((a4==1)&&((((a20==1)&&(((!(a5==1)&&((a3==7)&&(input==1)))&&!(a18==1))&&(a27==1)))&&(a15==1))&&(a0==1)))))&&(a12==9))){ + a15 = 0; + a18 = 1; + a4 = 0; + a12 = 12; + a5 = 1; + return 21; + } else if((!(a15==1)&&((!(a6==1)&&(((a0==1)&&((a22==1)&&(((a12==8)&&((((input==1)&&((a18==1)||!(a18==1)))&&(a5==1))&&(a4==1)))&&(a3==6))))&&!(a27==1)))&&(a20==1)))){ + a6 = 1; + a0 = 0; + a5 = 0; + a15 = 1; + a22 = 0; + a3 = 8; + a12 = 10; + a27 = 1; + a18 = 1; + return 21; + } else if((((a6==1)&&((!(a15==1)&&((((a0==1)&&((a12==10)&&(!(a4==1)&&((input==6)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))&&(a20==1))&&!(a27==1)))&&(a5==1)))&&(a3==6))){ + a22 = 1; + a18 = 1; + a27 = 1; + a4 = 1; + a6 = 0; + a5 = 0; + a15 = 1; + return 21; + } else if((!(a4==1)&&((!(a27==1)&&(((!(a5==1)&&(((a3==7)&&((a20==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==2))))&&!(a15==1)))&&(a6==1))&&!(a0==1)))&&(a12==8)))){ + a15 = 1; + a22 = 0; + a3 = 8; + a0 = 1; + a5 = 1; + a18 = 1; + a27 = 1; + a4 = 1; + a12 = 11; + return -1; + } else if((!(a15==1)&&((a3==8)&&(!(a0==1)&&(((a27==1)&&((((!(a4==1)&&((input==5)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))))&&(a6==1))&&(a5==1))&&(a20==1)))&&(a12==10)))))){ + a4 = 1; + a18 = 0; + a3 = 5; + a5 = 0; + a0 = 1; + a12 = 11; + a22 = 1; + a6 = 0; + return 24; + } else if((!(a27==1)&&(((((!(a0==1)&&((a20==1)&&((a15==1)&&((a3==7)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==6))))))&&(a5==1))&&(a12==10))&&!(a4==1))&&!(a6==1)))){ + a18 = 1; + a0 = 1; + a12 = 8; + a27 = 1; + a3 = 6; + a6 = 1; + a22 = 0; + a4 = 1; + return 21; + } else if(((a5==1)&&((!(a4==1)&&((((a12==8)&&((a6==1)&&((a0==1)&&((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==3)))))&&!(a15==1))&&(a27==1)))&&(a20==1)))){ + a18 = 1; + a22 = 1; + a3 = 5; + a4 = 1; + a12 = 9; + return 24; + } else if((((a27==1)&&(((!(a0==1)&&(((a20==1)&&(((a4==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==2)))&&(a3==8)))&&!(a15==1)))&&(a12==8))&&!(a5==1)))&&!(a6==1))){ + a5 = 1; + a4 = 0; + a15 = 1; + a0 = 1; + a12 = 10; + a22 = 1; + a18 = 0; + return 26; + } else if((((a3==7)&&(((((!(a27==1)&&(((a0==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==1)))&&!(a4==1)))&&(a20==1))&&(a12==9))&&!(a6==1))&&(a15==1)))&&!(a5==1))){ + a27 = 1; + a12 = 12; + a5 = 1; + a4 = 1; + a22 = 0; + a6 = 1; + a18 = 1; + return 26; + } else if((!(a15==1)&&(((a27==1)&&(!(a6==1)&&((a22==1)&&((a3==4)&&(((((a12==12)&&((input==6)&&(a5==1)))&&(a18==1))&&(a0==1))&&(a20==1))))))&&!(a4==1)))){ + a22 = 0; + a3 = 8; + a4 = 1; + a27 = 0; + return 26; + } else if((!(a22==1)&&(((a27==1)&&(!(a5==1)&&(((a12==11)&&((a20==1)&&(!(a18==1)&&(!(a4==1)&&((a3==8)&&((input==6)&&!(a6==1)))))))&&(a0==1))))&&!(a15==1)))){ + a12 = 10; + a15 = 1; + a3 = 6; + a4 = 1; + a6 = 1; + return -1; + } else if(((((!(a15==1)&&(!(a0==1)&&((a5==1)&&(((a12==11)&&(!(a22==1)&&((!(a27==1)&&(input==6))&&(a20==1))))&&!(a6==1)))))&&(a4==1))&&(a3==6))&&!(a18==1))){ + a18 = 1; + a6 = 1; + a27 = 1; + a12 = 8; + a15 = 1; + a22 = 1; + return -1; + } else if(((a15==1)&&((((((a12==10)&&(!(a4==1)&&((input==2)&&(((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1))))))&&(a27==1))&&!(a0==1))&&(a20==1))&&!(a5==1)))){ + a5 = 1; + a18 = 0; + a0 = 1; + a22 = 0; + a6 = 1; + a4 = 1; + a3 = 5; + return 21; + } else if(((a12==9)&&(!(a6==1)&&((a27==1)&&((a20==1)&&(((a0==1)&&(!(a4==1)&&((a5==1)&&((((a3==5)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1)))))&&(input==2)))))&&(a15==1))))))){ + a6 = 1; + a18 = 1; + a22 = 0; + a3 = 7; + a12 = 12; + a5 = 0; + return 26; + } else if((!(a27==1)&&((a5==1)&&(((!(a22==1)&&((a3==6)&&((((((input==3)&&(a4==1))&&!(a15==1))&&(a6==1))&&(a20==1))&&!(a18==1))))&&(a12==12))&&(a0==1))))){ + a12 = 8; + a18 = 1; + a5 = 0; + return -1; + } else if(((a20==1)&&((!(a15==1)&&(((a4==1)&&((((a3==7)&&(((input==6)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a12==8)))&&!(a6==1))&&!(a27==1)))&&!(a0==1)))&&(a5==1)))){ + a6 = 1; + a3 = 4; + a22 = 1; + a27 = 1; + a0 = 1; + a12 = 9; + a18 = 0; + a15 = 1; + return -1; + } else if(((a22==1)&&((((((a6==1)&&((a0==1)&&((a20==1)&&(((a12==8)&&((a3==5)&&(input==5)))&&!(a4==1)))))&&(a18==1))&&!(a27==1))&&!(a5==1))&&(a15==1)))){ + a3 = 4; + a4 = 1; + a27 = 1; + a5 = 1; + return -1; + } else if(((!(a22==1)&&((a4==1)&&((a12==9)&&((a3==4)&&(((a6==1)&&((a20==1)&&((((input==1)&&((a18==1)||!(a18==1)))&&(a15==1))&&!(a27==1))))&&(a5==1))))))&&!(a0==1))){ + if((a22==1)){ + a6 = 0; + a12 = 12; + a15 = 0; + a5 = 0; + a3 = 5; + a27 = 1; + a18 = 0; + }else{ + a12 = 8; + a3 = 8; + a5 = 0; + a4 = 0; + a0 = 1; + a22 = 1; + a18 = 1; + a15 = 0; + } + return -1; + } else if((((a12==12)&&(!(a22==1)&&((a20==1)&&((!(a15==1)&&((a5==1)&&((a18==1)&&((a27==1)&&(((input==2)&&!(a4==1))&&(a0==1))))))&&!(a6==1)))))&&(a3==5))){ + a12 = 8; + a3 = 4; + a22 = 1; + a4 = 1; + a6 = 1; + a15 = 1; + return -1; + } else if((((((a20==1)&&(((a15==1)&&((((input==1)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==8))))&&!(a4==1))&&(a12==11)))&&(a5==1)))&&(a27==1))&&(a0==1))&&(a6==1))){ + a4 = 1; + a3 = 8; + a18 = 0; + a12 = 10; + a22 = 0; + return -1; + } else if(((!(a5==1)&&((a27==1)&&(!(a6==1)&&(!(a15==1)&&(((((a22==1)&&(!(a0==1)&&(((a18==1)||!(a18==1))&&(input==2))))&&(a12==9))&&(a3==7))&&(a4==1))))))&&(a20==1))){ + a18 = 0; + a6 = 1; + a4 = 0; + a0 = 1; + return 21; + } else if(((((((a5==1)&&(((!(a15==1)&&(((((a18==1)||!(a18==1))&&(input==5))&&!(a4==1))&&(a6==1)))&&(a27==1))&&(a12==12)))&&(a0==1))&&(a3==6))&&!(a22==1))&&(a20==1))){ + a12 = 8; + a15 = 1; + a3 = 4; + a4 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if((!(a5==1)&&((!(a18==1)&&(!(a27==1)&&((a4==1)&&((a20==1)&&((a12==9)&&((!(a0==1)&&(((a6==1)&&(input==6))&&!(a15==1)))&&(a3==8)))))))&&!(a22==1)))){ + a3 = 4; + a4 = 0; + return 24; + } else if((!(a4==1)&&((((((!(a15==1)&&(((a6==1)&&((input==2)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))&&(a0==1)))&&!(a5==1))&&(a12==10))&&(a3==8))&&(a20==1))&&!(a27==1)))){ + a12 = 12; + a18 = 1; + a22 = 1; + a3 = 4; + a6 = 0; + return 26; + } else if((((a5==1)&&((a12==10)&&(((((a22==1)&&(((a3==5)&&(((input==5)&&!(a15==1))&&(a27==1)))&&(a0==1)))&&!(a4==1))&&(a6==1))&&(a18==1))))&&(a20==1))){ + a12 = 8; + a15 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((((a20==1)&&((((!(a27==1)&&((a22==1)&&(!(a4==1)&&(!(a15==1)&&((input==4)&&!(a18==1))))))&&(a5==1))&&(a3==8))&&(a12==8)))&&(a6==1))&&!(a0==1))){ + a27 = 1; + a3 = 4; + a15 = 1; + a0 = 1; + a6 = 0; + a4 = 1; + a18 = 1; + return 26; + } else if((!(a15==1)&&(!(a5==1)&&((a4==1)&&(((a6==1)&&((a20==1)&&((((a3==6)&&((input==1)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))))&&(a12==8))&&!(a0==1))))&&!(a27==1)))))){ + if((a5==1)){ + a6 = 0; + a27 = 1; + a15 = 1; + a22 = 1; + a4 = 0; + a0 = 1; + a18 = 1; + a12 = 11; + }else{ + a3 = 8; + a5 = 1; + a0 = 1; + a18 = 1; + a15 = 1; + a27 = 1; + a22 = 0; + } + return -1; + } else if(((!(a15==1)&&((a12==10)&&((a20==1)&&(((((((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1))||((((a3==8)&&((a18==1)&&!(a22==1)))&&(a6==1))||(((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))))&&(input==5))&&(a27==1))&&!(a4==1))&&!(a5==1)))))&&(a0==1))){ + if((a4==1)){ + a3 = 8; + a18 = 0; + a12 = 8; + a5 = 1; + a22 = 1; + a6 = 1; + a0 = 0; + }else{ + a6 = 0; + a22 = 1; + a18 = 1; + a3 = 4; + a4 = 1; + a15 = 1; + } + return -1; + } else if((((a15==1)&&(!(a22==1)&&((a5==1)&&((a20==1)&&(((((((input==4)&&(a0==1))&&(a12==11))&&(a6==1))&&!(a4==1))&&!(a18==1))&&(a3==6))))))&&!(a27==1))){ + a6 = 0; + a22 = 1; + a3 = 8; + a0 = 0; + a27 = 1; + a5 = 0; + return -1; + } else if(((((a4==1)&&((a3==5)&&(((a27==1)&&(!(a6==1)&&((a15==1)&&(!(a5==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==6))))))&&!(a0==1))))&&(a20==1))&&(a12==9))){ + a5 = 1; + a27 = 0; + a0 = 1; + a6 = 1; + a22 = 0; + a4 = 0; + a3 = 4; + a12 = 12; + a18 = 1; + return 26; + } else if(((a3==4)&&((a22==1)&&((a20==1)&&(((((a12==8)&&(!(a0==1)&&(!(a18==1)&&(!(a6==1)&&((a5==1)&&(input==3))))))&&!(a15==1))&&!(a4==1))&&(a27==1)))))){ + a0 = 1; + a4 = 1; + a5 = 0; + a18 = 1; + a12 = 10; + a22 = 0; + a15 = 1; + a3 = 8; + a6 = 1; + return 26; + } else if(((((a12==8)&&(!(a15==1)&&((((!(a22==1)&&((((a6==1)&&(input==6))&&!(a4==1))&&(a20==1)))&&(a5==1))&&(a3==5))&&!(a27==1))))&&(a18==1))&&!(a0==1))){ + a6 = 0; + a22 = 1; + a12 = 9; + a3 = 7; + return 24; + } else if((((((a6==1)&&(((a22==1)&&(((a4==1)&&((((input==6)&&((a18==1)||!(a18==1)))&&(a3==7))&&!(a27==1)))&&(a15==1)))&&(a20==1)))&&(a0==1))&&(a12==8))&&!(a5==1))){ + a18 = 0; + a27 = 1; + a12 = 9; + a3 = 8; + a4 = 0; + a15 = 0; + a6 = 0; + return 26; + } else if(((((((a12==11)&&(((((a22==1)&&((((a18==1)||!(a18==1))&&(input==4))&&!(a27==1)))&&(a20==1))&&!(a6==1))&&(a4==1)))&&!(a15==1))&&(a3==4))&&(a0==1))&&(a5==1))){ + a4 = 0; + a12 = 8; + a15 = 1; + a18 = 1; + a27 = 1; + return -1; + } else if(((a12==11)&&((((a15==1)&&((a3==6)&&(!(a5==1)&&((a0==1)&&((a27==1)&&((a4==1)&&((input==6)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))))))))&&(a20==1))&&!(a6==1)))){ + a5 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if(((a20==1)&&(!(a15==1)&&((a4==1)&&((((a0==1)&&((a5==1)&&(!(a27==1)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==1)))))&&(a6==1))&&(a12==8)))))){ + a18 = 0; + a12 = 11; + a0 = 0; + a3 = 5; + a27 = 1; + a22 = 1; + return 21; + } else if(((a5==1)&&((((((a0==1)&&((a12==8)&&((a20==1)&&((!(a4==1)&&(!(a6==1)&&(input==3)))&&(a27==1)))))&&!(a15==1))&&(a3==8))&&!(a18==1))&&!(a22==1)))){ + a6 = 1; + a12 = 9; + a22 = 1; + a3 = 6; + a5 = 0; + a15 = 1; + return 24; + } else if(((a20==1)&&((((a4==1)&&(((a0==1)&&(!(a15==1)&&((a12==11)&&((((input==4)&&(a5==1))&&!(a22==1))&&(a6==1)))))&&!(a27==1)))&&(a3==6))&&!(a18==1)))){ + a3 = 4; + a12 = 8; + a15 = 1; + a27 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if((((a4==1)&&((((a6==1)&&((a5==1)&&((a15==1)&&((((((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))||((a3==7)&&((a22==1)&&!(a18==1))))&&(input==2))&&(a12==12)))))&&(a0==1))&&(a20==1)))&&(a27==1))){ + a3 = 4; + a18 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if(((((a5==1)&&(!(a27==1)&&((((a20==1)&&(((input==1)&&((((!(a22==1)&&(a18==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7)))||((a3==8)&&((a18==1)&&(a22==1)))))&&(a4==1)))&&(a0==1))&&!(a6==1))))&&(a15==1))&&(a12==10))){ + a3 = 4; + a12 = 8; + a27 = 1; + a22 = 1; + a6 = 1; + a18 = 1; + return -1; + } else if((((((!(a15==1)&&(!(a27==1)&&(((a6==1)&&((input==3)&&(((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==6)))))&&(a20==1))))&&!(a4==1))&&(a12==9))&&!(a5==1))&&!(a0==1))){ + if((a0==1)){ + a0 = 1; + a5 = 1; + a27 = 1; + a3 = 8; + a15 = 1; + a12 = 8; + a4 = 1; + a22 = 1; + a18 = 1; + }else{ + a3 = 8; + a5 = 1; + a18 = 0; + a27 = 1; + a22 = 1; + } + return 26; + } else if((((a20==1)&&(((a5==1)&&((a12==9)&&((((!(a0==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2)))&&(a4==1))&&(a27==1))&&!(a6==1))))&&(a3==5)))&&(a15==1))){ + a12 = 11; + a4 = 0; + a0 = 1; + a18 = 1; + a22 = 0; + a15 = 0; + a3 = 8; + return 21; + } else if(((a20==1)&&(!(a6==1)&&(!(a15==1)&&(((((a27==1)&&(((input==6)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6))))&&!(a0==1)))&&(a12==8))&&(a5==1))&&!(a4==1)))))){ + a4 = 1; + a12 = 9; + a27 = 0; + a18 = 0; + a0 = 1; + a3 = 7; + a22 = 1; + return -1; + } else if(((((a0==1)&&((a20==1)&&((a12==9)&&(((!(a6==1)&&((((!(a18==1)&&(a22==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1)))))&&(input==1)))&&(a4==1))&&(a27==1)))))&&!(a5==1))&&!(a15==1))){ + a6 = 1; + a15 = 1; + a3 = 4; + a4 = 0; + a22 = 0; + a5 = 1; + a12 = 10; + a18 = 0; + return 26; + } else if(((((a5==1)&&((a12==10)&&(((a27==1)&&(!(a6==1)&&((a20==1)&&((((a3==6)&&(!(a18==1)&&(a22==1)))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6))))&&(input==3)))))&&!(a15==1))))&&(a0==1))&&(a4==1))){ + a5 = 0; + a27 = 0; + a4 = 0; + a3 = 5; + a12 = 12; + a18 = 1; + a22 = 1; + a6 = 1; + a15 = 1; + return -1; + } else if((!(a6==1)&&(((!(a5==1)&&(((a12==11)&&((((input==1)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a22==1)&&(a18==1))))||((a3==8)&&((a22==1)&&!(a18==1)))))&&(a27==1))&&(a20==1)))&&!(a0==1)))&&!(a4==1))&&(a15==1)))){ + a6 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + a3 = 4; + a5 = 1; + a4 = 1; + a0 = 1; + return -1; + } else if(((a15==1)&&((a18==1)&&(((a20==1)&&(!(a5==1)&&(!(a4==1)&&(!(a27==1)&&(!(a6==1)&&(((a3==4)&&((a12==10)&&(input==4)))&&!(a0==1)))))))&&!(a22==1))))){ + if((a6==1)){ + a27 = 1; + a6 = 1; + a12 = 8; + a3 = 8; + a4 = 1; + a0 = 1; + a18 = 0; + a5 = 1; + }else{ + a0 = 1; + a12 = 8; + a4 = 1; + a22 = 1; + a27 = 1; + a3 = 5; + a18 = 0; + a5 = 1; + } + return -1; + } else if((((a6==1)&&((a27==1)&&(((a20==1)&&((a22==1)&&(((a3==4)&&(((((a18==1)||!(a18==1))&&(input==4))&&!(a0==1))&&(a12==10)))&&!(a15==1))))&&!(a5==1))))&&!(a4==1))){ + a12 = 8; + a18 = 1; + a3 = 8; + a0 = 1; + a6 = 0; + a27 = 0; + return -1; + } else if((((a12==9)&&((a15==1)&&((!(a4==1)&&(((!(a5==1)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==2)))&&!(a6==1))&&(a20==1)))&&!(a0==1))))&&!(a27==1))){ + a18 = 1; + a4 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + a5 = 1; + a0 = 1; + a6 = 1; + a27 = 1; + return -1; + } else if(((a20==1)&&((a27==1)&&(((a6==1)&&((!(a15==1)&&(((a22==1)&&(!(a5==1)&&(((input==2)&&!(a4==1))&&(a3==6))))&&!(a0==1)))&&(a12==9)))&&(a18==1))))){ + a18 = 0; + a3 = 7; + a27 = 0; + a12 = 8; + a0 = 1; + return 26; + } else if((!(a27==1)&&(!(a5==1)&&((((a12==11)&&(!(a4==1)&&(((!(a6==1)&&((input==3)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a0==1))&&(a3==6))))&&(a20==1))&&!(a15==1))))){ + a12 = 8; + a6 = 1; + a5 = 1; + a22 = 0; + a18 = 1; + a0 = 1; + a15 = 1; + a27 = 1; + return 21; + } else if(((((a6==1)&&((a3==7)&&(!(a0==1)&&(!(a5==1)&&((a20==1)&&(((a15==1)&&((input==4)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))&&!(a4==1)))))))&&(a12==11))&&(a27==1))){ + a6 = 0; + a0 = 1; + a12 = 10; + a18 = 0; + a22 = 1; + return -1; + } else if(((a15==1)&&(((a20==1)&&((a12==8)&&((!(a6==1)&&(!(a22==1)&&(((a5==1)&&((a27==1)&&((input==6)&&(a3==8))))&&!(a0==1))))&&!(a18==1))))&&!(a4==1)))){ + a12 = 10; + a6 = 1; + a0 = 1; + a3 = 4; + a22 = 1; + return 21; + } else if((((((a0==1)&&(!(a5==1)&&((input==1)&&((!(a6==1)&&((((a15==1)&&(!(a18==1)&&!(a22==1)))&&!(a4==1))&&(a3==8)))||(((a3==4)&&((!(a15==1)&&((a18==1)&&(a22==1)))&&(a4==1)))&&(a6==1))))))&&(a20==1))&&(a12==10))&&(a27==1))){ + a3 = 4; + a5 = 1; + a4 = 1; + a22 = 1; + a15 = 1; + a6 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if(((!(a4==1)&&(((!(a27==1)&&((a6==1)&&((((a20==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&!(a5==1)))&&(a3==6))&&!(a15==1))))&&(a12==10))&&(a22==1)))&&!(a0==1))){ + if((a20==1)){ + a12 = 8; + a22 = 0; + a0 = 1; + a27 = 1; + a5 = 1; + a18 = 1; + a3 = 7; + a15 = 1; + }else{ + a18 = 0; + a3 = 4; + a5 = 1; + a4 = 1; + a15 = 1; + a12 = 8; + a0 = 1; + a6 = 0; + a27 = 1; + } + return 26; + } else if((((a12==12)&&((a27==1)&&(((a15==1)&&((a4==1)&&(((a6==1)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==2)))&&(a5==1))))&&!(a0==1))))&&(a20==1))){ + a0 = 1; + a4 = 0; + a22 = 0; + a18 = 1; + a6 = 0; + a15 = 0; + a3 = 6; + a27 = 0; + return 26; + } else if(((!(a5==1)&&(((!(a4==1)&&((a22==1)&&((a0==1)&&(((!(a27==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a20==1))&&!(a6==1)))))&&(a3==8))&&(a12==10)))&&(a15==1))){ + a6 = 1; + a12 = 8; + a27 = 1; + a18 = 1; + a5 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if((((a27==1)&&((!(a4==1)&&((a20==1)&&((!(a6==1)&&(((!(a0==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a5==1))&&(a3==6)))&&(a22==1))))&&(a12==11)))&&(a15==1))){ + a3 = 4; + a12 = 8; + a6 = 1; + a18 = 1; + a4 = 1; + a0 = 1; + return -1; + } else if(((((a4==1)&&(((a20==1)&&((!(a6==1)&&(((input==3)&&(((((a18==1)&&!(a22==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))||(((a22==1)&&(a18==1))&&(a3==7))))&&(a0==1)))&&!(a27==1)))&&!(a5==1)))&&(a12==9))&&!(a15==1))){ + a22 = 0; + a3 = 8; + a18 = 0; + a4 = 0; + return 26; + } else if(((!(a0==1)&&((((((((a4==1)&&((input==2)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&(a20==1))&&!(a5==1))&&(a3==4))&&(a12==12))&&(a27==1))&&!(a6==1)))&&!(a15==1))){ + if((a18==1)){ + a22 = 0; + a12 = 11; + a4 = 0; + a0 = 1; + a18 = 0; + }else{ + a12 = 11; + a22 = 0; + a0 = 1; + a18 = 0; + a5 = 1; + } + return -1; + } else if((((((a20==1)&&((((a0==1)&&((a3==8)&&((a12==10)&&(((a27==1)&&(input==5))&&(a5==1)))))&&!(a4==1))&&!(a22==1)))&&(a18==1))&&!(a15==1))&&!(a6==1))){ + a6 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + a4 = 1; + a15 = 1; + return -1; + } else if(((a20==1)&&((((a15==1)&&(((!(a27==1)&&(((((((a18==1)&&!(a22==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==1))&&(a6==1)))&&!(a0==1))&&!(a4==1)))&&(a12==8))&&(a5==1)))){ + if((a27==1)){ + a27 = 1; + a3 = 5; + a18 = 0; + a4 = 1; + a22 = 0; + a0 = 1; + }else{ + a3 = 8; + a27 = 1; + a22 = 1; + a0 = 1; + a18 = 1; + a4 = 1; + } + return -1; + } else if((((a18==1)&&(!(a27==1)&&(((a15==1)&&((((a4==1)&&(((a3==7)&&((a20==1)&&(input==6)))&&(a5==1)))&&(a6==1))&&(a22==1)))&&(a0==1))))&&(a12==11))){ + a3 = 4; + a27 = 1; + a12 = 8; + return -1; + } else if((!(a0==1)&&((a4==1)&&((a20==1)&&((a5==1)&&(!(a6==1)&&((!(a27==1)&&(((a12==8)&&(((input==6)&&((a18==1)||!(a18==1)))&&!(a22==1)))&&(a3==8)))&&(a15==1)))))))){ + if((a15==1)){ + a27 = 1; + a22 = 1; + a5 = 0; + a18 = 0; + a4 = 0; + a6 = 1; + a12 = 9; + a0 = 1; + a3 = 6; + }else{ + a27 = 1; + a6 = 1; + a4 = 0; + a3 = 6; + a18 = 0; + a0 = 1; + a22 = 1; + } + return 26; + } else if(((a20==1)&&(!(a15==1)&&(!(a4==1)&&(!(a5==1)&&((a27==1)&&(((((input==1)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==5))))&&(a6==1))&&(a0==1))&&(a12==8)))))))){ + a18 = 1; + a15 = 1; + a22 = 1; + a4 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if((((a0==1)&&(((a15==1)&&(((a6==1)&&(((((input==1)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&(a20==1))&&(a3==4))&&(a12==8)))&&(a27==1)))&&!(a4==1)))&&!(a5==1))){ + a18 = 1; + a22 = 0; + a12 = 10; + a5 = 1; + a3 = 7; + return 21; + } else if((!(a27==1)&&(!(a4==1)&&((a20==1)&&((((a6==1)&&((a0==1)&&(((a3==7)&&(!(a15==1)&&(((a18==1)||!(a18==1))&&(input==6))))&&!(a22==1))))&&(a12==10))&&!(a5==1)))))){ + a4 = 1; + a15 = 1; + a5 = 1; + a12 = 11; + a18 = 0; + a27 = 1; + return 21; + } else if((((a12==10)&&(((((a0==1)&&(!(a6==1)&&((a5==1)&&((a3==7)&&((((a18==1)||!(a18==1))&&(input==1))&&(a20==1))))))&&(a22==1))&&(a27==1))&&(a4==1)))&&(a15==1))){ + a3 = 4; + a18 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if((!(a4==1)&&(!(a6==1)&&(((a12==9)&&((a3==4)&&((((!(a27==1)&&((input==6)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a5==1))&&(a15==1))&&(a0==1))))&&(a20==1))))){ + a6 = 1; + a27 = 1; + a3 = 7; + a22 = 1; + a12 = 11; + a15 = 0; + a5 = 0; + a18 = 1; + return -1; + } else if(((!(a4==1)&&((a20==1)&&((a3==4)&&((((!(a6==1)&&(!(a27==1)&&((a5==1)&&((input==5)&&((a18==1)||!(a18==1))))))&&(a0==1))&&(a12==9))&&(a22==1)))))&&!(a15==1))){ + a27 = 1; + a15 = 1; + a12 = 8; + a6 = 1; + a18 = 1; + a4 = 1; + return -1; + } else if((((a3==7)&&(!(a22==1)&&(!(a4==1)&&((a5==1)&&((!(a15==1)&&(((!(a6==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a27==1))&&(a20==1)))&&(a12==11))))))&&(a0==1))){ + a6 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if((((((!(a27==1)&&(((a12==10)&&(((((a18==1)&&(input==2))&&!(a0==1))&&(a6==1))&&(a3==4)))&&(a22==1)))&&!(a5==1))&&(a4==1))&&!(a15==1))&&(a20==1))){ + a5 = 1; + a0 = 1; + a15 = 1; + a3 = 8; + a4 = 0; + a12 = 8; + a27 = 1; + return 24; + } else if((((a27==1)&&((a4==1)&&((a12==8)&&(((a6==1)&&((((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==4))&&!(a0==1))&&(a20==1)))&&(a5==1)))))&&!(a15==1))){ + a18 = 1; + a22 = 0; + a3 = 6; + a0 = 1; + a5 = 0; + a12 = 11; + a4 = 0; + return 26; + } else if(((((!(a6==1)&&((a20==1)&&((!(a27==1)&&((a0==1)&&(((input==2)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&(a12==10))))&&!(a15==1))))&&(a3==8))&&(a4==1))&&!(a5==1))){ + a22 = 1; + a12 = 8; + a6 = 1; + a18 = 1; + a27 = 1; + a5 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if((((a5==1)&&((((a20==1)&&(!(a6==1)&&((!(a27==1)&&((input==6)&&((((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a22==1)&&!(a18==1))))||((a3==7)&&((a18==1)&&(a22==1))))))&&(a15==1))))&&(a12==10))&&!(a4==1)))&&!(a0==1))){ + a18 = 1; + a0 = 1; + a12 = 11; + a3 = 4; + a4 = 1; + a22 = 0; + return 21; + } else if(((((((!(a5==1)&&((a12==9)&&((a3==5)&&((a4==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a27==1))))))&&!(a6==1))&&(a22==1))&&!(a0==1))&&!(a15==1))&&(a20==1))){ + a6 = 1; + a18 = 0; + a12 = 11; + a22 = 0; + a0 = 1; + return -1; + } else if((!(a5==1)&&((a0==1)&&((((a3==7)&&(((a20==1)&&(!(a22==1)&&((((input==1)&&(a4==1))&&(a18==1))&&(a12==11))))&&(a6==1)))&&(a27==1))&&!(a15==1))))){ + a22 = 1; + a15 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + return -1; + } else if(((a0==1)&&((((((a3==8)&&(!(a4==1)&&((((input==4)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&!(a5==1))&&!(a27==1))))&&!(a15==1))&&(a6==1))&&(a12==9))&&(a20==1)))){ + if((a18==1)){ + a6 = 0; + a4 = 1; + a3 = 7; + a0 = 0; + a18 = 0; + a22 = 0; + a27 = 1; + a12 = 12; + a5 = 1; + a15 = 1; + }else{ + a3 = 5; + a12 = 10; + a27 = 1; + a18 = 0; + a22 = 1; + a5 = 1; + a15 = 1; + } + return 26; + } else if(((((a12==9)&&(((a0==1)&&((a5==1)&&((a18==1)&&((a20==1)&&((a6==1)&&(((input==2)&&(a15==1))&&(a27==1)))))))&&!(a22==1)))&&(a4==1))&&(a3==4))){ + if((a20==1)){ + a12 = 11; + a5 = 0; + a18 = 0; + a3 = 8; + a6 = 0; + a0 = 0; + }else{ + a22 = 1; + a12 = 11; + a5 = 0; + a3 = 5; + a15 = 0; + } + return 26; + } else if((((((!(a4==1)&&((a0==1)&&((!(a15==1)&&(!(a5==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==1))))&&(a3==8))))&&(a20==1))&&!(a6==1))&&(a12==8))&&!(a27==1))){ + a3 = 4; + a4 = 1; + a18 = 1; + a22 = 1; + a5 = 1; + a15 = 1; + a27 = 1; + a6 = 1; + return -1; + } else if(((a12==8)&&((a20==1)&&(((!(a27==1)&&((a3==5)&&(!(a0==1)&&(((a6==1)&&((a18==1)&&((a15==1)&&(input==1))))&&!(a5==1)))))&&(a22==1))&&(a4==1))))){ + if((a0==1)){ + a3 = 6; + a18 = 0; + a12 = 11; + a15 = 0; + }else{ + a15 = 0; + a12 = 10; + a3 = 6; + } + return -1; + } else if((((a22==1)&&(!(a4==1)&&(!(a6==1)&&(((a12==11)&&((a15==1)&&(!(a0==1)&&((a3==6)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a27==1))))))&&(a20==1)))))&&(a5==1))){ + a15 = 0; + a4 = 1; + a3 = 5; + a5 = 0; + a6 = 1; + a0 = 1; + a12 = 10; + a18 = 0; + return 26; + } else if((!(a5==1)&&(((a3==5)&&(!(a22==1)&&(((a20==1)&&((((a12==12)&&((a4==1)&&((input==1)&&!(a18==1))))&&(a27==1))&&(a15==1)))&&!(a0==1))))&&!(a6==1)))){ + if((a12==9)){ + a27 = 0; + a6 = 1; + a3 = 8; + a18 = 1; + a5 = 1; + a12 = 11; + a4 = 0; + a22 = 1; + }else{ + a12 = 11; + a3 = 4; + a18 = 1; + a5 = 1; + a4 = 0; + } + return -1; + } else if(((((a20==1)&&((a15==1)&&((!(a5==1)&&((a22==1)&&(((a12==9)&&((!(a4==1)&&(input==4))&&!(a27==1)))&&(a3==4))))&&(a18==1))))&&!(a0==1))&&(a6==1))){ + a18 = 0; + a3 = 8; + a12 = 10; + a22 = 0; + return 21; + } else if(((((!(a27==1)&&((a3==4)&&((a5==1)&&(!(a0==1)&&((((input==4)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a12==11))&&(a20==1))))))&&(a6==1))&&!(a4==1))&&(a15==1))){ + a12 = 8; + a18 = 0; + a3 = 5; + a0 = 1; + a4 = 1; + a22 = 0; + a27 = 1; + return -1; + } else if((((a27==1)&&(!(a6==1)&&(((a4==1)&&(!(a15==1)&&(((((((a3==4)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==4)))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==6))&&(a5==1))&&(a12==10))))&&(a20==1))))&&!(a0==1))){ + a5 = 0; + a12 = 12; + a22 = 0; + a6 = 1; + a0 = 1; + a18 = 1; + a3 = 4; + a4 = 0; + return 21; + } else if((!(a15==1)&&(((a27==1)&&((!(a6==1)&&(((((((input==3)&&((a18==1)||!(a18==1)))&&!(a5==1))&&(a12==11))&&(a20==1))&&(a4==1))&&(a3==5)))&&(a22==1)))&&!(a0==1)))){ + a15 = 1; + a3 = 4; + a0 = 1; + a12 = 8; + a18 = 1; + a5 = 1; + a6 = 1; + return -1; + } else if(((a20==1)&&(((a27==1)&&((a15==1)&&(((a0==1)&&(((((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1)))))&&(input==3))&&(a5==1)))&&!(a4==1))))&&(a12==11)))){ + a6 = 1; + a4 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + return -1; + } else if(((a6==1)&&((a12==10)&&(((a5==1)&&((!(a15==1)&&(((a3==8)&&(((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==5))&&!(a4==1)))&&(a20==1)))&&!(a27==1)))&&!(a0==1))))){ + a12 = 8; + a22 = 1; + a15 = 1; + a0 = 1; + a4 = 1; + a18 = 0; + a27 = 1; + a3 = 4; + return -1; + } else if(((a4==1)&&((a0==1)&&((a3==6)&&((!(a27==1)&&((a22==1)&&(((((a20==1)&&((a15==1)&&(input==3)))&&(a12==9))&&(a5==1))&&(a18==1))))&&(a6==1)))))){ + a27 = 1; + a15 = 0; + a3 = 8; + a12 = 10; + a18 = 0; + a4 = 0; + return 26; + } else if((((!(a15==1)&&(!(a18==1)&&((a12==12)&&((!(a27==1)&&(((((input==4)&&!(a4==1))&&(a3==6))&&(a5==1))&&!(a6==1)))&&(a0==1)))))&&(a22==1))&&(a20==1))){ + a27 = 1; + a6 = 1; + a3 = 4; + a15 = 1; + a12 = 8; + a4 = 1; + a18 = 1; + return -1; + } else if(((!(a4==1)&&((((!(a15==1)&&(((a6==1)&&((((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1))))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==3)))&&!(a27==1)))&&!(a5==1))&&(a12==10))&&(a20==1)))&&!(a0==1))){ + a12 = 8; + a22 = 1; + a0 = 1; + a3 = 4; + a6 = 0; + a5 = 1; + a18 = 0; + return 21; + } else if((((a0==1)&&((((a20==1)&&((a15==1)&&(((a4==1)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==4)))&&(a27==1))))&&!(a6==1))&&(a12==10)))&&!(a5==1))){ + a22 = 0; + a18 = 1; + a3 = 6; + a5 = 1; + a15 = 0; + return -1; + } else if(((a0==1)&&((((!(a6==1)&&(!(a5==1)&&((a27==1)&&((((a20==1)&&((input==3)&&(a22==1)))&&!(a18==1))&&(a3==5)))))&&(a12==10))&&!(a4==1))&&(a15==1)))){ + a27 = 0; + a15 = 0; + a5 = 1; + a4 = 1; + return 21; + } else if(((a12==9)&&((a20==1)&&((!(a4==1)&&((((((input==1)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6))))&&!(a5==1))&&!(a6==1))&&!(a15==1))&&!(a27==1)))&&(a0==1))))){ + a12 = 8; + a5 = 1; + a6 = 1; + a18 = 1; + a15 = 1; + a27 = 1; + a22 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((a4==1)&&((((!(a6==1)&&((!(a15==1)&&((a20==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==4))&&(a3==5))))&&(a27==1)))&&(a12==12))&&(a0==1))&&(a5==1)))){ + a18 = 0; + a12 = 10; + a3 = 8; + a22 = 1; + return -1; + } else if(((a6==1)&&((!(a27==1)&&(!(a22==1)&&(((!(a4==1)&&(((((input==4)&&(a18==1))&&(a20==1))&&(a3==5))&&!(a0==1)))&&(a12==8))&&(a5==1))))&&!(a15==1)))){ + if((a20==1)){ + a0 = 1; + a27 = 1; + a3 = 4; + a18 = 0; + a22 = 1; + a15 = 1; + }else{ + a4 = 1; + a22 = 1; + a27 = 1; + a15 = 1; + a3 = 4; + a0 = 1; + } + return 24; + } else if((!(a27==1)&&((a20==1)&&((a12==10)&&((a5==1)&&(!(a4==1)&&(!(a6==1)&&((a0==1)&&(((a18==1)&&(((input==5)&&!(a15==1))&&(a3==8)))&&(a22==1)))))))))){ + a22 = 0; + a4 = 1; + a15 = 1; + a12 = 11; + a27 = 1; + a18 = 0; + return 26; + } else if(((a3==4)&&(((a4==1)&&((((a6==1)&&(((a20==1)&&(((input==2)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&(a5==1)))&&(a27==1)))&&(a0==1))&&!(a15==1)))&&(a12==11)))){ + a12 = 10; + a22 = 0; + a6 = 0; + a18 = 1; + a3 = 6; + return -1; + } else if((((((a15==1)&&(!(a22==1)&&(((a12==11)&&(((a27==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a6==1)))&&(a20==1)))&&(a3==5))))&&!(a4==1))&&!(a0==1))&&!(a5==1))){ + a0 = 1; + a15 = 0; + a18 = 0; + a4 = 1; + a3 = 4; + a27 = 0; + a12 = 10; + return 26; + } else if(((a6==1)&&(!(a5==1)&&((a3==6)&&((a20==1)&&(((!(a4==1)&&(((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==3))&&!(a0==1))&&!(a27==1)))&&(a15==1))&&(a12==8))))))){ + a22 = 1; + a6 = 0; + a15 = 0; + a18 = 1; + a3 = 8; + a0 = 1; + return 21; + } else if(((((a18==1)&&((a4==1)&&((!(a5==1)&&(((a20==1)&&(((a3==7)&&((a15==1)&&(input==3)))&&!(a6==1)))&&(a22==1)))&&(a12==9))))&&(a0==1))&&!(a27==1))){ + a27 = 1; + a22 = 0; + a15 = 0; + a12 = 11; + a6 = 1; + return -1; + } else if(((((a0==1)&&((a20==1)&&(!(a4==1)&&(((((a12==12)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==3)))&&(a27==1))&&(a3==8))&&(a5==1)))))&&!(a15==1))&&!(a6==1))){ + a6 = 1; + a3 = 4; + a15 = 1; + a4 = 1; + a12 = 8; + a22 = 1; + a18 = 1; + return -1; + } else if(((((a22==1)&&(((a3==5)&&((a27==1)&&(((((!(a18==1)&&(input==1))&&!(a4==1))&&!(a15==1))&&(a12==11))&&(a0==1))))&&(a6==1)))&&(a20==1))&&(a5==1))){ + a4 = 1; + a22 = 0; + a3 = 7; + a5 = 0; + return 21; + } else if(((((((a6==1)&&((((a20==1)&&(((input==2)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&(a4==1)))&&!(a5==1))&&(a27==1)))&&(a12==10))&&!(a0==1))&&(a15==1))&&(a3==5))){ + a5 = 1; + a22 = 1; + a4 = 0; + a0 = 1; + a18 = 0; + return -1; + } else if(((((((!(a6==1)&&(((a27==1)&&(!(a0==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==4))))&&!(a15==1)))&&(a20==1))&&(a3==6))&&(a5==1))&&(a12==10))&&(a4==1))){ + a6 = 1; + a15 = 1; + a0 = 1; + a12 = 12; + a3 = 7; + a18 = 0; + a22 = 0; + a27 = 0; + return 21; + } else if(((a0==1)&&((a12==10)&&((a4==1)&&((!(a6==1)&&(((a5==1)&&(((a15==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==2)))&&(a20==1)))&&(a27==1)))&&(a3==5)))))){ + a12 = 9; + a3 = 6; + a5 = 0; + a27 = 0; + a22 = 0; + a6 = 1; + a18 = 0; + return 21; + } else if((((!(a27==1)&&(!(a15==1)&&((a6==1)&&((a5==1)&&((a12==8)&&((a3==7)&&(!(a4==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==2)))))))))&&(a20==1))&&(a0==1))){ + if((a15==1)){ + a5 = 0; + a18 = 1; + a3 = 8; + a27 = 1; + a22 = 1; + a12 = 10; + a0 = 0; + }else{ + a22 = 0; + a12 = 11; + a18 = 0; + a5 = 0; + a3 = 8; + a27 = 1; + } + return -1; + } else if(((((a3==8)&&((a4==1)&&(!(a0==1)&&((a6==1)&&((a12==8)&&((a20==1)&&(!(a5==1)&&((a15==1)&&((input==3)&&!(a22==1))))))))))&&(a27==1))&&!(a18==1))){ + a18 = 1; + a22 = 1; + a3 = 4; + a5 = 1; + a0 = 1; + return -1; + } else if(((a22==1)&&(!(a0==1)&&((((a18==1)&&((a12==10)&&(((a6==1)&&((a15==1)&&(((a20==1)&&(input==3))&&(a3==7))))&&!(a4==1))))&&!(a27==1))&&!(a5==1))))){ + if((a6==1)){ + a3 = 4; + a4 = 1; + a5 = 1; + a12 = 11; + }else{ + a0 = 1; + a4 = 1; + a6 = 0; + a18 = 0; + a12 = 8; + a5 = 1; + a3 = 4; + a27 = 1; + } + return -1; + } else if((!(a5==1)&&(((!(a6==1)&&(!(a27==1)&&(((((input==3)&&((((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==4)))||(((a18==1)&&(a22==1))&&(a3==5))))&&(a15==1))&&(a20==1))&&(a12==9))))&&(a4==1))&&!(a0==1)))){ + if((a4==1)){ + a22 = 0; + a3 = 4; + a27 = 1; + a18 = 1; + a12 = 10; + a6 = 1; + a5 = 1; + a0 = 1; + }else{ + a4 = 0; + a6 = 1; + a12 = 10; + a3 = 4; + a15 = 0; + a18 = 1; + a22 = 1; + a5 = 1; + } + return 26; + } else if((((((((a27==1)&&(!(a15==1)&&(!(a6==1)&&(!(a5==1)&&((input==5)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))))&&!(a0==1))&&(a12==10))&&(a20==1))&&(a3==6))&&(a4==1))){ + a22 = 1; + a4 = 0; + a3 = 4; + a15 = 1; + a0 = 1; + a18 = 0; + a6 = 1; + return 21; + } else if(((((((a22==1)&&(!(a27==1)&&(!(a15==1)&&(!(a18==1)&&((((input==3)&&(a12==12))&&!(a4==1))&&!(a5==1))))))&&(a3==8))&&(a6==1))&&(a0==1))&&(a20==1))){ + a27 = 1; + a15 = 1; + a5 = 1; + a12 = 8; + a18 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if(((a0==1)&&(!(a15==1)&&((((a27==1)&&((a12==10)&&((a18==1)&&(!(a4==1)&&((!(a5==1)&&((input==4)&&!(a6==1)))&&!(a22==1))))))&&(a3==5))&&(a20==1))))){ + a5 = 1; + a15 = 1; + a3 = 7; + return -1; + } else if((((a15==1)&&((a12==9)&&((a4==1)&&(!(a0==1)&&((a20==1)&&(!(a27==1)&&(((((((a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8))))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1)))&&(input==1))))))))&&(a5==1))){ + if((a20==1)){ + a22 = 1; + a6 = 0; + a18 = 1; + a15 = 0; + a5 = 0; + a12 = 8; + a3 = 4; + }else{ + a0 = 1; + a6 = 1; + a27 = 1; + a18 = 0; + a3 = 5; + a22 = 1; + a12 = 8; + a4 = 0; + } + return 26; + } else if(((!(a6==1)&&(((((a12==11)&&((((a4==1)&&((a22==1)&&((input==1)&&(a3==4))))&&(a0==1))&&(a20==1)))&&(a18==1))&&!(a5==1))&&!(a27==1)))&&(a15==1))){ + a3 = 8; + a27 = 1; + a22 = 0; + return -1; + } else if((((a20==1)&&((a15==1)&&(((a18==1)&&((!(a27==1)&&(((((input==3)&&!(a5==1))&&(a22==1))&&!(a4==1))&&(a6==1)))&&!(a0==1)))&&(a3==4))))&&(a12==10))){ + a27 = 1; + a18 = 0; + a5 = 1; + a3 = 7; + a0 = 1; + a12 = 8; + return -1; + } else if(((((a12==10)&&(!(a5==1)&&(((a22==1)&&((a27==1)&&(((!(a18==1)&&((a15==1)&&(input==2)))&&(a3==5))&&(a20==1))))&&(a0==1))))&&(a6==1))&&(a4==1))){ + if((a12==10)){ + a4 = 0; + a0 = 0; + a18 = 1; + a15 = 0; + a3 = 7; + }else{ + a6 = 0; + a15 = 0; + a5 = 1; + a3 = 4; + a22 = 0; + a4 = 0; + } + return -1; + } else if(((a3==5)&&((a12==11)&&((((!(a4==1)&&(((!(a22==1)&&((a27==1)&&((a20==1)&&(input==1))))&&(a0==1))&&(a5==1)))&&(a6==1))&&!(a15==1))&&(a18==1))))){ + a4 = 1; + a15 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((a6==1)&&((a5==1)&&((((a4==1)&&(((((a20==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==5)))&&(a12==12))&&(a3==7))&&!(a15==1)))&&!(a27==1))&&(a0==1))))){ + a15 = 1; + a27 = 1; + a3 = 8; + a5 = 0; + a18 = 1; + a6 = 0; + a22 = 1; + return 26; + } else if(((a4==1)&&(((a12==10)&&((a20==1)&&(!(a15==1)&&(((((a6==1)&&((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a0==1))&&!(a5==1))&&(a3==6)))))&&!(a27==1)))){ + if((a12==8)){ + a18 = 0; + a12 = 12; + a3 = 8; + a27 = 1; + a15 = 1; + a22 = 0; + }else{ + a22 = 1; + a15 = 1; + a0 = 1; + a12 = 8; + a3 = 7; + a18 = 1; + } + return -1; + } else if((((a4==1)&&(!(a15==1)&&((!(a0==1)&&(!(a5==1)&&(!(a6==1)&&((a12==11)&&(((a22==1)&&((input==4)&&((a18==1)||!(a18==1))))&&(a20==1))))))&&(a3==5))))&&!(a27==1))){ + a27 = 1; + a15 = 1; + a5 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + return 21; + } else if((!(a15==1)&&((((!(a4==1)&&(!(a0==1)&&(!(a6==1)&&((a20==1)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==3))))))&&!(a5==1))&&(a27==1))&&(a12==10)))){ + a4 = 1; + a22 = 0; + a3 = 8; + a6 = 1; + a0 = 1; + a15 = 1; + a27 = 0; + a18 = 0; + return 26; + } else if((((a12==11)&&(((!(a15==1)&&(((a20==1)&&(((((a3==6)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5))))&&(input==5))&&!(a5==1)))&&!(a0==1)))&&(a27==1))&&!(a6==1)))&&(a4==1))){ + a5 = 1; + a15 = 1; + a18 = 0; + a12 = 12; + a22 = 0; + a4 = 0; + a3 = 6; + a0 = 1; + return 21; + } else if((((a12==11)&&((a27==1)&&((a20==1)&&(!(a5==1)&&((a4==1)&&((a6==1)&&((a15==1)&&((input==1)&&(((a3==5)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1)))))))))))))&&!(a0==1))){ + a22 = 0; + a18 = 0; + a3 = 7; + a0 = 1; + a4 = 0; + return 26; + } else if((!(a15==1)&&(((a12==10)&&((a5==1)&&(((a3==7)&&(((a20==1)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==4))&&!(a6==1)))&&(a27==1)))&&(a0==1))))&&!(a4==1)))){ + if((a18==1)){ + a18 = 0; + a0 = 0; + a12 = 12; + a15 = 1; + a22 = 0; + a3 = 8; + }else{ + a18 = 1; + a22 = 1; + a15 = 1; + } + return -1; + } else if((!(a4==1)&&(((a20==1)&&((a0==1)&&(!(a5==1)&&((a15==1)&&(!(a6==1)&&(!(a27==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))||((a3==6)&&(!(a18==1)&&(a22==1))))&&(input==2))))))))&&(a12==9)))){ + a27 = 1; + a22 = 1; + a5 = 1; + a4 = 1; + a18 = 1; + a12 = 8; + a6 = 1; + a3 = 4; + return -1; + } else if(((a4==1)&&((((((a15==1)&&((a0==1)&&((a12==9)&&((((input==2)&&!(a27==1))&&!(a22==1))&&(a3==4)))))&&(a20==1))&&!(a18==1))&&!(a5==1))&&!(a6==1)))){ + a22 = 1; + a27 = 1; + a5 = 1; + a18 = 1; + a12 = 8; + a6 = 1; + return -1; + } else if((!(a6==1)&&((((a20==1)&&(!(a15==1)&&((((a0==1)&&((((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==1)))&&(a12==11))&&(a5==1))))&&!(a27==1))&&!(a4==1)))){ + a6 = 1; + a22 = 1; + a12 = 8; + a18 = 1; + a27 = 1; + a4 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if((((((input==6)&&((!(a6==1)&&((a3==8)&&(!(a4==1)&&((!(a15==1)&&(!(a5==1)&&(!(a22==1)&&!(a18==1))))&&(a12==11)))))||((a6==1)&&((((a12==12)&&((a15==1)&&((a5==1)&&((a18==1)&&(a22==1)))))&&(a4==1))&&(a3==4)))))&&!(a0==1))&&(a27==1))&&(a20==1))){ + a0 = 1; + a22 = 0; + a5 = 1; + a6 = 0; + a12 = 10; + a4 = 0; + a15 = 1; + a3 = 7; + a18 = 0; + return 21; + } else if((((a3==4)&&((a4==1)&&((((a15==1)&&((a20==1)&&((((a6==1)&&((input==6)&&(a12==11)))&&(a22==1))&&!(a5==1))))&&(a27==1))&&(a0==1))))&&!(a18==1))){ + a5 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if((!(a15==1)&&(((a4==1)&&((((((a20==1)&&((input==3)&&(((a3==8)&&(!(a18==1)&&(a22==1)))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8))))))&&(a6==1))&&(a0==1))&&(a12==11))&&(a27==1)))&&!(a5==1)))){ + a22 = 1; + a18 = 1; + a15 = 1; + a3 = 4; + a5 = 1; + a12 = 8; + return -1; + } else if((!(a27==1)&&(((!(a0==1)&&((a12==10)&&((a5==1)&&((a20==1)&&((input==4)&&(((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||(!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1))))))))))&&!(a15==1))&&!(a4==1)))){ + a22 = 0; + a15 = 1; + a6 = 1; + a4 = 1; + a27 = 1; + a18 = 1; + a3 = 8; + a12 = 8; + a0 = 1; + return -1; + } else if(((a18==1)&&((a5==1)&&((!(a4==1)&&((a12==10)&&(((a0==1)&&((a20==1)&&(((!(a15==1)&&(input==4))&&!(a6==1))&&!(a22==1))))&&(a3==8))))&&(a27==1))))){ + a15 = 1; + a4 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + a6 = 1; + return -1; + } else if(((!(a4==1)&&((((a6==1)&&((a0==1)&&(((a12==10)&&((input==6)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))))&&!(a27==1))))&&!(a5==1))&&(a20==1)))&&!(a15==1))){ + if((a18==1)){ + a3 = 7; + a22 = 0; + a27 = 1; + a6 = 0; + a15 = 1; + a18 = 0; + a4 = 1; + a0 = 0; + a12 = 8; + }else{ + a22 = 0; + a3 = 6; + a5 = 1; + a12 = 12; + a18 = 1; + a27 = 1; + a15 = 1; + } + return 24; + } else if((((a5==1)&&(((((a0==1)&&((!(a6==1)&&(((a18==1)&&((a12==11)&&(input==5)))&&(a20==1)))&&(a3==4)))&&(a4==1))&&!(a15==1))&&!(a27==1)))&&!(a22==1))){ + a27 = 1; + a3 = 5; + a18 = 0; + a12 = 10; + a6 = 1; + a22 = 1; + return -1; + } else if(((!(a22==1)&&(((a5==1)&&((a6==1)&&((a15==1)&&(!(a27==1)&&((((a20==1)&&(!(a18==1)&&(input==4)))&&!(a4==1))&&(a3==4))))))&&(a12==11)))&&!(a0==1))){ + a3 = 6; + a27 = 1; + a12 = 8; + a0 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((a12==10)&&((((a6==1)&&((((!(a5==1)&&((((a3==5)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1)))))&&(input==5)))&&(a27==1))&&!(a4==1))&&(a0==1)))&&(a20==1))&&!(a15==1)))){ + a3 = 7; + a22 = 1; + a0 = 0; + a18 = 1; + a5 = 1; + return 21; + } else if(((a12==12)&&(((((a22==1)&&((((a3==5)&&((a6==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&!(a4==1))))&&!(a15==1))&&(a5==1)))&&(a20==1))&&(a27==1))&&(a0==1)))){ + a3 = 8; + a4 = 1; + a6 = 0; + a22 = 0; + a18 = 0; + return -1; + } else if(((((a20==1)&&((a0==1)&&((a15==1)&&(!(a5==1)&&((a12==12)&&((!(a22==1)&&((((a18==1)||!(a18==1))&&(input==2))&&(a27==1)))&&(a4==1)))))))&&(a6==1))&&(a3==7))){ + a12 = 8; + a18 = 1; + a22 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if(((a3==5)&&((a0==1)&&((((((a20==1)&&(((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==3))&&(a15==1))&&(a12==12)))&&(a27==1))&&!(a6==1))&&!(a4==1))&&(a5==1))))){ + a22 = 1; + a12 = 8; + a18 = 1; + a3 = 8; + return -1; + } else if(((a0==1)&&((!(a4==1)&&((((a5==1)&&((a20==1)&&((a22==1)&&((((a12==9)&&(input==4))&&(a15==1))&&!(a18==1)))))&&!(a27==1))&&(a3==5)))&&(a6==1)))){ + a18 = 1; + a3 = 7; + a12 = 11; + a6 = 0; + a4 = 1; + return 26; + } else if(((a0==1)&&(((a12==8)&&((((a4==1)&&(((a6==1)&&((a27==1)&&((input==4)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))&&!(a15==1)))&&(a20==1))&&!(a5==1)))&&(a3==7)))){ + a22 = 0; + a3 = 4; + a6 = 0; + a18 = 0; + a12 = 10; + return 26; + } else if(((a20==1)&&((((((((a0==1)&&(((((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==6)))&&!(a27==1))&&(a15==1))&&(a4==1))&&(a6==1))&&(a12==10))&&(a5==1)))){ + a12 = 8; + a22 = 1; + a3 = 4; + a27 = 1; + a18 = 1; + return -1; + } else if(((a27==1)&&(((a3==6)&&((a20==1)&&((((((((input==6)&&(a6==1))&&!(a4==1))&&!(a18==1))&&!(a5==1))&&(a22==1))&&!(a15==1))&&!(a0==1))))&&(a12==12)))){ + if((a6==1)){ + a18 = 1; + a5 = 1; + a15 = 1; + a0 = 1; + a3 = 7; + a12 = 8; + }else{ + a12 = 8; + a22 = 0; + a3 = 4; + a27 = 0; + a0 = 1; + a4 = 1; + a18 = 1; + a6 = 0; + a15 = 1; + } + return -1; + } else if((((a12==8)&&(((a27==1)&&(!(a6==1)&&(!(a15==1)&&(((a3==8)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==5))&&!(a5==1)))&&(a20==1)))))&&(a4==1)))&&!(a0==1))){ + a3 = 5; + a5 = 1; + a4 = 0; + a12 = 10; + a15 = 1; + a0 = 1; + a18 = 1; + a22 = 1; + a27 = 0; + return -1; + } else if(((a4==1)&&((!(a22==1)&&((a12==11)&&((((((a0==1)&&(!(a15==1)&&(!(a27==1)&&(input==2))))&&(a5==1))&&(a20==1))&&(a3==4))&&!(a6==1))))&&(a18==1)))){ + a27 = 1; + a4 = 0; + a18 = 0; + return -1; + } else if((((a27==1)&&((a12==8)&&((!(a22==1)&&(!(a4==1)&&((((((input==4)&&(a5==1))&&(a3==8))&&(a15==1))&&!(a18==1))&&(a20==1))))&&!(a0==1))))&&!(a6==1))){ + a4 = 1; + a12 = 12; + a18 = 1; + a6 = 1; + a3 = 4; + a0 = 1; + return 26; + } else if(((a0==1)&&((a27==1)&&((((input==2)&&((!(a6==1)&&((a3==8)&&(!(a4==1)&&(!(a15==1)&&((a5==1)&&(!(a22==1)&&!(a18==1)))))))||((((a4==1)&&((a15==1)&&(!(a5==1)&&((a18==1)&&(a22==1)))))&&(a3==4))&&(a6==1))))&&(a12==11))&&(a20==1))))){ + a18 = 0; + a6 = 1; + a15 = 1; + a12 = 10; + a4 = 0; + a3 = 4; + a22 = 0; + a5 = 0; + return -1; + } else if((!(a22==1)&&(((!(a18==1)&&((a15==1)&&((a20==1)&&(((a4==1)&&(((a12==10)&&((input==1)&&!(a27==1)))&&(a0==1)))&&!(a6==1)))))&&(a5==1))&&(a3==4)))){ + a3 = 5; + a4 = 0; + a0 = 0; + a27 = 1; + a12 = 11; + return -1; + } else if((!(a15==1)&&((((a6==1)&&((a20==1)&&(!(a5==1)&&(!(a27==1)&&((((input==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a0==1))&&(a12==11))))))&&(a3==8))&&(a4==1)))){ + a27 = 1; + a5 = 1; + a12 = 12; + a3 = 4; + a15 = 1; + a22 = 0; + a18 = 0; + a0 = 0; + return 26; + } else if((((((a6==1)&&((a4==1)&&(((((a20==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a5==1)))&&(a3==5))&&(a0==1))&&!(a22==1))))&&!(a15==1))&&(a12==10))&&!(a27==1))){ + a4 = 0; + a15 = 1; + a18 = 0; + a3 = 8; + a12 = 8; + a5 = 0; + return -1; + } else if(((!(a4==1)&&(!(a6==1)&&((a27==1)&&(((!(a15==1)&&(((input==6)&&(((!(a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a18==1)&&(a22==1))))))&&(a5==1)))&&(a20==1))&&(a12==8)))))&&(a0==1))){ + a12 = 9; + a3 = 6; + a18 = 0; + a22 = 1; + return 21; + } else if(((a20==1)&&(((a5==1)&&(!(a27==1)&&(((a0==1)&&((((a12==12)&&((a3==6)&&(((a18==1)||!(a18==1))&&(input==5))))&&!(a15==1))&&!(a22==1)))&&!(a4==1))))&&!(a6==1)))){ + if((a12==9)){ + a22 = 1; + a27 = 1; + a3 = 8; + a0 = 0; + a5 = 0; + a12 = 9; + a6 = 1; + a18 = 1; + a4 = 1; + }else{ + a12 = 9; + a3 = 7; + a4 = 1; + a15 = 1; + a18 = 1; + a6 = 1; + } + return -1; + } else if(((a3==8)&&(!(a27==1)&&((a12==9)&&(((!(a15==1)&&(((((input==3)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a20==1))&&!(a0==1))&&!(a4==1)))&&!(a6==1))&&!(a5==1)))))){ + a5 = 1; + a27 = 1; + a0 = 1; + a22 = 0; + a6 = 1; + a3 = 4; + a12 = 11; + a18 = 0; + return 26; + } else if((((a15==1)&&(((a27==1)&&((((a4==1)&&(!(a5==1)&&((!(a6==1)&&((input==3)&&(a0==1)))&&(a3==8))))&&!(a22==1))&&(a20==1)))&&(a12==9)))&&(a18==1))){ + a12 = 8; + a3 = 6; + a6 = 1; + a22 = 1; + a27 = 0; + return 21; + } else if(((a5==1)&&(((a27==1)&&((a6==1)&&((a4==1)&&((a15==1)&&((!(a22==1)&&(!(a18==1)&&(((input==2)&&(a20==1))&&(a12==12))))&&(a3==4))))))&&(a0==1)))){ + a15 = 0; + a22 = 1; + a4 = 0; + a12 = 11; + a3 = 6; + a5 = 0; + return 21; + } else if((!(a6==1)&&((!(a5==1)&&((((a12==10)&&(((((((a18==1)||!(a18==1))&&(input==1))&&!(a22==1))&&(a15==1))&&(a3==6))&&!(a4==1)))&&(a20==1))&&(a0==1)))&&!(a27==1)))){ + a3 = 7; + a4 = 1; + a18 = 0; + a5 = 1; + a6 = 1; + a12 = 9; + return -1; + } else if((((((!(a22==1)&&(((a12==11)&&((((a0==1)&&(!(a15==1)&&(input==4)))&&(a20==1))&&!(a4==1)))&&(a3==4)))&&(a5==1))&&!(a6==1))&&!(a18==1))&&(a27==1))){ + if((a15==1)){ + a15 = 1; + a22 = 1; + a5 = 0; + a6 = 1; + a0 = 0; + a3 = 5; + }else{ + a22 = 1; + a12 = 10; + a3 = 6; + a18 = 1; + } + return -1; + } else if((((((a0==1)&&((((!(a5==1)&&((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==2))&&!(a4==1)))&&(a15==1))&&(a20==1))&&(a12==10)))&&(a6==1))&&(a27==1))&&(a3==4))){ + a22 = 0; + a12 = 11; + a18 = 1; + return 26; + } else if((((((a4==1)&&((!(a18==1)&&(!(a15==1)&&((((a3==4)&&((input==1)&&(a22==1)))&&!(a0==1))&&(a20==1))))&&!(a5==1)))&&(a12==11))&&!(a27==1))&&(a6==1))){ + if((a20==1)){ + a3 = 5; + a5 = 1; + a6 = 0; + a22 = 0; + a4 = 0; + a12 = 9; + a27 = 1; + a18 = 1; + }else{ + a3 = 6; + a12 = 10; + a0 = 1; + a22 = 0; + a4 = 0; + a5 = 1; + } + return 21; + } else if(((a20==1)&&(!(a5==1)&&(!(a27==1)&&((a15==1)&&((((!(a22==1)&&((a0==1)&&((((a18==1)||!(a18==1))&&(input==3))&&(a6==1))))&&(a12==8))&&(a4==1))&&(a3==7))))))){ + a22 = 1; + a5 = 1; + a27 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((!(a5==1)&&(((a15==1)&&((a27==1)&&((a0==1)&&(((!(a6==1)&&(((a3==8)&&((input==2)&&(a12==8)))&&(a20==1)))&&!(a18==1))&&(a4==1)))))&&!(a22==1)))){ + a22 = 1; + a3 = 4; + a6 = 1; + a12 = 10; + a4 = 0; + a5 = 1; + return 21; + } else if(((!(a4==1)&&((((!(a5==1)&&((!(a15==1)&&((input==4)&&(((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==8)))))&&!(a6==1)))&&(a0==1))&&(a12==8))&&(a20==1)))&&(a27==1))){ + a18 = 1; + a15 = 1; + a12 = 11; + a6 = 1; + a3 = 5; + a22 = 0; + return 24; + } return calculate_output73(input); + } + + int calculate_output73(int input) { + if(((a27==1)&&(((a12==9)&&((!(a0==1)&&(!(a15==1)&&(((a20==1)&&(((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==4))&&(a4==1)))&&!(a6==1))))&&(a3==4)))&&(a5==1)))){ + if((a4==1)){ + a6 = 1; + a22 = 1; + a18 = 0; + a3 = 5; + a12 = 10; + }else{ + a22 = 1; + a5 = 0; + a12 = 11; + a27 = 0; + a4 = 0; + a0 = 1; + a18 = 0; + } + return 26; + } else if(((!(a5==1)&&((((((!(a6==1)&&((a0==1)&&((input==2)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))))&&(a4==1))&&(a3==7))&&(a12==11))&&(a20==1))&&!(a15==1)))&&!(a27==1))){ + if((a4==1)){ + a6 = 1; + a4 = 0; + a27 = 1; + a0 = 0; + a3 = 5; + a12 = 8; + a5 = 1; + a15 = 1; + a18 = 1; + a22 = 0; + }else{ + a4 = 0; + a22 = 0; + a18 = 0; + a3 = 4; + a27 = 1; + } + return 21; + } else if(((a27==1)&&((a4==1)&&((!(a5==1)&&(!(a0==1)&&((a20==1)&&(!(a15==1)&&((((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7)))||((!(a18==1)&&(a22==1))&&(a3==7)))&&(input==4))&&(a6==1))))))&&(a12==9))))){ + a12 = 8; + a15 = 1; + a18 = 1; + a5 = 1; + a22 = 1; + a0 = 1; + a3 = 4; + return -1; + } else if((((((a22==1)&&((a12==12)&&((a20==1)&&((a4==1)&&(!(a15==1)&&((a5==1)&&((((a18==1)||!(a18==1))&&(input==3))&&(a6==1))))))))&&(a0==1))&&(a3==8))&&!(a27==1))){ + a4 = 0; + a27 = 1; + a18 = 1; + a22 = 0; + a12 = 10; + a6 = 0; + a5 = 0; + a3 = 5; + return -1; + } else if((((a27==1)&&((a20==1)&&((a12==9)&&(!(a4==1)&&((a3==6)&&(!(a15==1)&&(!(a0==1)&&(((!(a18==1)&&(input==2))&&(a6==1))&&(a22==1)))))))))&&!(a5==1))){ + a0 = 1; + a12 = 10; + a4 = 1; + a5 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if((((a20==1)&&(((!(a27==1)&&((!(a5==1)&&(((a12==8)&&((input==4)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&!(a4==1)))&&(a3==8)))&&!(a15==1))&&(a0==1)))&&(a6==1))){ + a5 = 1; + a4 = 1; + a22 = 1; + a27 = 1; + a3 = 4; + a15 = 1; + a18 = 1; + return -1; + } else if(((a27==1)&&((a18==1)&&((((a3==6)&&((((a22==1)&&((((input==4)&&(a20==1))&&(a6==1))&&(a4==1)))&&!(a5==1))&&(a12==10)))&&!(a15==1))&&!(a0==1))))){ + a15 = 1; + a5 = 1; + a0 = 1; + a4 = 0; + a3 = 8; + return 26; + } else if(((a0==1)&&((a20==1)&&((((!(a15==1)&&(!(a6==1)&&(!(a5==1)&&(((((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1))))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==2)))))&&!(a27==1))&&(a12==10))&&!(a4==1))))){ + a27 = 1; + a5 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a15 = 1; + a6 = 1; + a4 = 1; + a12 = 8; + return -1; + } else if(((((((a20==1)&&((!(a15==1)&&(!(a6==1)&&(!(a18==1)&&((!(a27==1)&&(input==1))&&(a12==11)))))&&(a0==1)))&&(a3==7))&&!(a22==1))&&!(a5==1))&&(a4==1))){ + a12 = 9; + a4 = 0; + a22 = 1; + return -1; + } else if((((((!(a15==1)&&(((!(a5==1)&&(((a3==4)&&((input==1)&&((a18==1)||!(a18==1))))&&!(a27==1)))&&(a12==9))&&!(a4==1)))&&(a0==1))&&(a6==1))&&(a20==1))&&!(a22==1))){ + a27 = 1; + a22 = 1; + a18 = 1; + a6 = 0; + a3 = 8; + a5 = 1; + a12 = 10; + return -1; + } else if(((a20==1)&&((!(a0==1)&&(((a12==10)&&((a5==1)&&(!(a4==1)&&((a27==1)&&((input==3)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))||((a3==6)&&(!(a18==1)&&(a22==1)))))))))&&(a15==1)))&&!(a6==1)))){ + a18 = 0; + a0 = 1; + a27 = 0; + a12 = 11; + a22 = 0; + a5 = 0; + a3 = 5; + a4 = 1; + return 21; + } else if(((!(a27==1)&&((!(a0==1)&&(!(a6==1)&&((a15==1)&&(!(a5==1)&&(((((a3==6)&&((a22==1)&&!(a18==1)))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6))))&&(input==5))&&(a12==10))))))&&(a4==1)))&&(a20==1))){ + a6 = 1; + a12 = 8; + a0 = 1; + a5 = 1; + a3 = 8; + a18 = 1; + a22 = 1; + a27 = 1; + return 21; + } else if(((a12==9)&&((a5==1)&&(((a27==1)&&(((a15==1)&&((((!(a6==1)&&((a3==8)&&((a4==1)&&((a18==1)&&!(a22==1)))))||(!(a6==1)&&((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1))))))||(((((a22==1)&&(a18==1))&&!(a4==1))&&(a3==4))&&(a6==1)))&&(input==5)))&&!(a0==1)))&&(a20==1))))){ + a3 = 6; + a6 = 0; + a22 = 0; + a18 = 0; + a5 = 0; + a12 = 12; + a4 = 0; + a0 = 1; + return -1; + } else if(((a3==5)&&(((((((a22==1)&&((a12==9)&&((!(a6==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a15==1))))&&(a27==1))&&(a20==1))&&!(a5==1))&&(a0==1))&&!(a4==1)))){ + a27 = 0; + a18 = 1; + a12 = 8; + a22 = 0; + a3 = 7; + return 24; + } else if(((((a15==1)&&(((a5==1)&&(!(a4==1)&&((a3==6)&&((a27==1)&&((a20==1)&&((input==3)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))))))))&&(a12==11)))&&(a0==1))&&(a6==1))){ + a4 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + return -1; + } else if((((((((a4==1)&&((!(a0==1)&&((a6==1)&&(!(a5==1)&&((input==6)&&!(a18==1)))))&&(a22==1)))&&(a20==1))&&(a3==6))&&(a15==1))&&(a27==1))&&(a12==11))){ + a3 = 7; + a15 = 0; + a27 = 0; + a22 = 0; + a6 = 0; + a0 = 1; + return 26; + } else if((((!(a0==1)&&(((((a12==9)&&((a15==1)&&((a20==1)&&((input==3)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))))))&&!(a5==1))&&(a4==1))&&(a3==8)))&&(a6==1))&&!(a27==1))){ + if((a4==1)){ + a22 = 1; + a12 = 8; + a27 = 1; + a0 = 1; + a5 = 1; + a6 = 0; + a18 = 0; + }else{ + a27 = 1; + a22 = 0; + a3 = 4; + a18 = 1; + a5 = 1; + a12 = 8; + a0 = 1; + } + return -1; + } else if((!(a4==1)&&((a12==8)&&(!(a0==1)&&((a27==1)&&((a20==1)&&(!(a22==1)&&(((a3==6)&&((a6==1)&&(((input==6)&&(a5==1))&&(a18==1))))&&(a15==1))))))))){ + a0 = 1; + a15 = 0; + a22 = 1; + a4 = 1; + a12 = 9; + a18 = 0; + a27 = 0; + a3 = 7; + return 21; + } else if((((a4==1)&&((((a15==1)&&(((a12==11)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==3))&&!(a0==1))&&!(a27==1)))&&(a5==1)))&&(a3==4))&&(a6==1)))&&(a20==1))){ + if((a12==11)){ + a3 = 5; + a12 = 8; + a0 = 1; + a27 = 1; + a22 = 1; + a18 = 1; + }else{ + a0 = 1; + a12 = 8; + a22 = 0; + a27 = 1; + a18 = 1; + } + return 21; + } else if((!(a0==1)&&(((!(a5==1)&&(((((a15==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a4==1)))&&(a12==9))&&(a27==1))&&(a3==6)))&&!(a6==1))&&(a20==1)))){ + a18 = 1; + a6 = 1; + a5 = 1; + a12 = 10; + a4 = 0; + a22 = 1; + a3 = 8; + a0 = 1; + return -1; + } else if((((((a4==1)&&((a3==4)&&(((a0==1)&&(((((input==2)&&((a18==1)||!(a18==1)))&&(a5==1))&&(a12==10))&&!(a15==1)))&&(a20==1))))&&!(a22==1))&&(a27==1))&&(a6==1))){ + a18 = 0; + return 26; + } else if((((a12==12)&&((((a20==1)&&(((((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==2))&&(a0==1))&&!(a27==1))&&(a4==1))&&!(a6==1)))&&(a3==5))&&!(a15==1)))&&!(a5==1))){ + a5 = 1; + a18 = 0; + a4 = 0; + a22 = 1; + a27 = 1; + a12 = 10; + a3 = 8; + return 26; + } else if(((((!(a27==1)&&((!(a6==1)&&(((((((a18==1)||!(a18==1))&&(input==4))&&(a3==5))&&(a5==1))&&!(a4==1))&&(a0==1)))&&(a12==10)))&&(a15==1))&&!(a22==1))&&(a20==1))){ + a18 = 1; + a15 = 0; + a3 = 6; + a6 = 1; + a4 = 1; + a12 = 9; + a27 = 1; + a0 = 0; + a22 = 1; + return 26; + } else if(((a15==1)&&(((a12==11)&&(!(a27==1)&&((a0==1)&&(!(a4==1)&&((a5==1)&&(((((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1)))||(!(a6==1)&&((a3==4)&&((a22==1)&&!(a18==1)))))&&(input==1)))))))&&(a20==1)))){ + a6 = 0; + a5 = 0; + a15 = 0; + a12 = 8; + a22 = 1; + a18 = 0; + a4 = 1; + a27 = 1; + a0 = 0; + a3 = 7; + return -1; + } else if((((((!(a0==1)&&((!(a4==1)&&((a6==1)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==4))))&&!(a15==1)))&&(a5==1))&&(a27==1))&&(a20==1))&&(a12==9))){ + a12 = 12; + a18 = 1; + a0 = 1; + a3 = 8; + a22 = 0; + return -1; + } else if(((a20==1)&&((a3==5)&&(!(a6==1)&&(((!(a5==1)&&(((!(a15==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==6)))&&!(a0==1))&&!(a27==1)))&&(a12==10))&&(a4==1)))))){ + a12 = 11; + a6 = 1; + a18 = 1; + a3 = 6; + a27 = 1; + a15 = 1; + a4 = 0; + a22 = 0; + return 26; + } else if((!(a18==1)&&(!(a15==1)&&((a0==1)&&((((a3==8)&&((((a4==1)&&(((a12==12)&&(input==3))&&!(a5==1)))&&(a20==1))&&(a22==1)))&&(a6==1))&&!(a27==1)))))){ + a27 = 1; + a5 = 1; + a15 = 1; + a12 = 10; + a3 = 4; + return 21; + } else if(((a20==1)&&(!(a6==1)&&(((((a3==8)&&(((a12==11)&&(!(a15==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==3))))&&(a0==1)))&&!(a5==1))&&!(a4==1))&&!(a27==1))))){ + a22 = 0; + a18 = 0; + a6 = 1; + a12 = 8; + a15 = 1; + a5 = 1; + return -1; + } else if((!(a22==1)&&(!(a6==1)&&((((a3==6)&&(((a4==1)&&(((((a20==1)&&(input==6))&&(a5==1))&&(a12==8))&&!(a27==1)))&&!(a15==1)))&&(a18==1))&&(a0==1))))){ + a3 = 7; + a5 = 0; + a27 = 1; + a18 = 0; + a12 = 12; + a22 = 1; + return 26; + } else if(((a12==10)&&((a20==1)&&(((a4==1)&&((a0==1)&&(((a3==8)&&((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==4))&&!(a27==1))&&(a5==1)))&&(a15==1))))&&!(a6==1))))){ + a3 = 5; + a12 = 8; + a18 = 1; + a22 = 1; + a4 = 0; + return -1; + } else if((((a15==1)&&((((a4==1)&&(((a12==11)&&(((((a3==8)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7))))&&(input==5))&&!(a5==1)))&&!(a6==1)))&&!(a0==1))&&(a20==1)))&&(a27==1))){ + a18 = 1; + a6 = 1; + a4 = 0; + a3 = 8; + a5 = 1; + a0 = 1; + a15 = 0; + a22 = 1; + return -1; + } else if(((a5==1)&&(((a20==1)&&(((((((((a3==6)&&(!(a18==1)&&(a22==1)))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a18==1)&&(a22==1)))))&&(input==6))&&(a12==10))&&(a4==1))&&!(a27==1))&&!(a6==1))&&!(a15==1)))&&!(a0==1)))){ + if((a5==1)){ + a15 = 1; + a4 = 0; + a18 = 1; + a5 = 0; + a22 = 0; + a0 = 1; + a3 = 7; + a12 = 11; + a27 = 1; + }else{ + a27 = 1; + a22 = 0; + a0 = 1; + a3 = 7; + a18 = 0; + a12 = 8; + a15 = 1; + } + return -1; + } else if((((a3==4)&&((((((a6==1)&&((!(a15==1)&&((input==3)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a12==8)))&&(a4==1))&&(a20==1))&&!(a27==1))&&!(a5==1)))&&(a0==1))){ + a15 = 1; + a5 = 1; + a22 = 1; + a18 = 1; + a27 = 1; + return -1; + } else if(((a3==7)&&((((!(a15==1)&&((a20==1)&&((a5==1)&&((((input==3)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a27==1))&&(a4==1)))))&&(a6==1))&&!(a0==1))&&(a12==8)))){ + a12 = 9; + a15 = 1; + a4 = 0; + a22 = 1; + a18 = 0; + a3 = 6; + a0 = 1; + return 24; + } else if(((!(a4==1)&&((((((!(a0==1)&&((((a6==1)&&(input==2))&&(a20==1))&&(a12==8)))&&!(a5==1))&&(a18==1))&&!(a27==1))&&(a3==6))&&(a22==1)))&&!(a15==1))){ + a22 = 0; + a0 = 1; + a4 = 1; + a3 = 4; + a27 = 1; + a5 = 1; + return -1; + } else if(((((a20==1)&&(!(a27==1)&&((((a12==8)&&((a4==1)&&((a3==4)&&((!(a0==1)&&(input==3))&&(a22==1)))))&&!(a18==1))&&!(a15==1))))&&(a5==1))&&!(a6==1))){ + a0 = 1; + a15 = 1; + a22 = 0; + a27 = 1; + a4 = 0; + a6 = 1; + a18 = 1; + a3 = 5; + return 21; + } else if((((a27==1)&&((((!(a18==1)&&(((a3==8)&&((a20==1)&&((a6==1)&&(!(a0==1)&&(input==1)))))&&(a4==1)))&&(a12==11))&&!(a22==1))&&(a5==1)))&&!(a15==1))){ + a0 = 1; + a3 = 7; + a6 = 0; + a12 = 10; + return 21; + } else if(((a3==4)&&((a27==1)&&((!(a5==1)&&(((a20==1)&&(((a0==1)&&(((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==4))&&(a6==1)))&&(a15==1)))&&(a12==10)))&&!(a4==1))))){ + a12 = 8; + a4 = 1; + a22 = 1; + a18 = 1; + a5 = 1; + return -1; + } else if(((a12==11)&&((((((!(a6==1)&&(((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==3))&&(a27==1)))&&!(a0==1))&&!(a15==1))&&(a4==1))&&(a20==1))&&(a5==1)))){ + a0 = 1; + a18 = 1; + a3 = 4; + a22 = 0; + return 21; + } else if(((a20==1)&&(!(a27==1)&&((!(a4==1)&&(!(a18==1)&&((((!(a15==1)&&(((a5==1)&&(input==4))&&(a22==1)))&&(a12==12))&&(a0==1))&&(a3==5))))&&!(a6==1))))){ + a5 = 0; + a4 = 1; + a12 = 9; + a22 = 0; + a3 = 6; + return -1; + } else if((((((a20==1)&&((a0==1)&&((a6==1)&&(((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2))&&(a12==12))&&(a3==8))&&(a27==1)))))&&(a15==1))&&!(a5==1))&&(a4==1))){ + a22 = 1; + a5 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + return -1; + } else if((((a5==1)&&(((((((!(a0==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==4)))&&(a20==1))&&(a3==5))&&(a4==1))&&!(a27==1))&&(a12==8))&&!(a6==1)))&&(a15==1))){ + a27 = 1; + a3 = 4; + a22 = 0; + a6 = 1; + a0 = 1; + a18 = 0; + return 26; + } else if((!(a0==1)&&((((a27==1)&&((a5==1)&&((((((a18==1)&&(!(a15==1)&&(input==6)))&&!(a6==1))&&(a3==4))&&!(a4==1))&&!(a22==1))))&&(a20==1))&&(a12==8)))){ + a4 = 1; + a3 = 8; + a15 = 1; + a0 = 1; + return -1; + } else if(((((a0==1)&&((a12==9)&&((a22==1)&&(((a18==1)&&((a5==1)&&((a6==1)&&((a3==6)&&((a20==1)&&(input==6))))))&&!(a15==1)))))&&(a4==1))&&!(a27==1))){ + if((a15==1)){ + a5 = 0; + a12 = 12; + a6 = 0; + }else{ + a27 = 1; + a5 = 0; + a3 = 7; + a15 = 1; + a6 = 0; + a12 = 11; + a4 = 0; + a0 = 0; + } + return 26; + } else if((!(a15==1)&&((a3==7)&&((((a6==1)&&(((a0==1)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==6))&&!(a5==1))&&!(a4==1)))&&(a20==1)))&&(a27==1))&&(a12==9))))){ + a18 = 0; + a15 = 1; + a3 = 4; + a12 = 11; + a6 = 0; + a22 = 0; + a5 = 1; + return 26; + } else if(((!(a0==1)&&((!(a22==1)&&(!(a5==1)&&(((a12==9)&&(((a4==1)&&((a20==1)&&((a15==1)&&(input==3))))&&(a6==1)))&&(a27==1))))&&(a3==8)))&&(a18==1))){ + a22 = 1; + a0 = 1; + a15 = 0; + a12 = 11; + a3 = 6; + a6 = 0; + return 24; + } else if(((a3==7)&&((a6==1)&&((a12==11)&&((a20==1)&&(((a27==1)&&(((a15==1)&&((((input==5)&&(a22==1))&&!(a18==1))&&!(a5==1)))&&!(a4==1)))&&(a0==1))))))){ + a5 = 1; + a12 = 10; + a15 = 0; + a4 = 1; + a18 = 1; + return -1; + } else if((((a20==1)&&((((!(a15==1)&&(((a3==5)&&((a4==1)&&((input==4)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&(a0==1)))&&!(a5==1))&&(a27==1))&&(a12==9)))&&!(a6==1))){ + a22 = 0; + a12 = 11; + a15 = 1; + a18 = 0; + a5 = 1; + a6 = 1; + a3 = 8; + return 21; + } else if(((a4==1)&&((a27==1)&&(((a15==1)&&(((((a12==10)&&((input==1)&&(((a3==7)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6))))))&&!(a0==1))&&(a20==1))&&!(a6==1)))&&(a5==1))))){ + a0 = 1; + a5 = 0; + a18 = 1; + a22 = 0; + a3 = 4; + a12 = 11; + a27 = 0; + return 26; + } else if((!(a15==1)&&((!(a27==1)&&((a5==1)&&((a12==12)&&((a20==1)&&(!(a18==1)&&((a6==1)&&((((a0==1)&&(input==6))&&(a3==4))&&(a4==1))))))))&&!(a22==1)))){ + a22 = 1; + a18 = 1; + a12 = 11; + return -1; + } else if((((a20==1)&&(((a15==1)&&(((a3==4)&&(((!(a18==1)&&(!(a4==1)&&(!(a5==1)&&(input==2))))&&(a6==1))&&(a12==10)))&&(a27==1)))&&!(a22==1)))&&!(a0==1))){ + a4 = 1; + a15 = 0; + a18 = 1; + a3 = 8; + a0 = 1; + return 21; + } else if(((a3==6)&&(((a4==1)&&(!(a22==1)&&((!(a6==1)&&((((a20==1)&&((((a18==1)||!(a18==1))&&(input==5))&&!(a27==1)))&&(a12==10))&&(a15==1)))&&!(a0==1))))&&!(a5==1)))){ + a18 = 1; + a4 = 0; + a12 = 11; + a0 = 1; + a3 = 8; + return -1; + } else if((((a3==7)&&(!(a22==1)&&((a5==1)&&((((((a0==1)&&((!(a27==1)&&(input==6))&&!(a18==1)))&&(a12==10))&&!(a4==1))&&(a20==1))&&!(a6==1)))))&&!(a15==1))){ + a5 = 0; + a27 = 1; + a3 = 4; + a22 = 1; + return 21; + } else if((((a12==9)&&(((!(a4==1)&&(((a6==1)&&((a3==7)&&((a0==1)&&((input==3)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))))&&!(a5==1)))&&(a20==1))&&!(a27==1)))&&(a15==1))){ + a0 = 0; + a22 = 1; + a4 = 1; + a3 = 4; + a12 = 8; + a27 = 1; + a18 = 1; + return -1; + } else if(((a12==12)&&((((!(a27==1)&&((((((input==1)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&(a0==1))&&(a20==1))&&(a15==1))&&!(a6==1)))&&(a5==1))&&(a3==7))&&!(a4==1)))){ + a4 = 1; + a3 = 8; + a18 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if(((((a6==1)&&((a5==1)&&(((!(a0==1)&&((a12==10)&&((((input==1)&&((a18==1)||!(a18==1)))&&(a20==1))&&!(a22==1))))&&(a27==1))&&(a3==8))))&&(a4==1))&&!(a15==1))){ + a4 = 0; + a0 = 1; + a3 = 4; + a22 = 1; + a15 = 1; + a18 = 1; + a12 = 11; + a6 = 0; + return -1; + } else if((((a12==8)&&(!(a27==1)&&(!(a22==1)&&((a3==4)&&(!(a5==1)&&((((a20==1)&&((a0==1)&&((input==3)&&!(a4==1))))&&(a15==1))&&(a6==1)))))))&&!(a18==1))){ + a3 = 6; + a5 = 1; + a18 = 1; + a22 = 1; + a12 = 10; + a4 = 1; + a15 = 0; + return 26; + } else if((!(a22==1)&&((((!(a15==1)&&((a3==5)&&(!(a5==1)&&(((a12==9)&&(((input==1)&&!(a18==1))&&!(a4==1)))&&!(a0==1)))))&&(a20==1))&&(a6==1))&&(a27==1)))){ + a0 = 1; + a18 = 1; + a12 = 12; + a15 = 1; + a6 = 0; + return 24; + } else if(((a20==1)&&(((!(a6==1)&&(((a0==1)&&(!(a27==1)&&(((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==6))&&(a15==1))&&(a3==8))))&&(a4==1)))&&!(a5==1))&&(a12==8)))){ + a6 = 1; + a3 = 5; + a18 = 1; + a12 = 12; + a22 = 1; + return 24; + } else if((((a3==5)&&((a12==9)&&((((a5==1)&&((a0==1)&&(!(a27==1)&&((a18==1)&&(((a4==1)&&(input==2))&&(a22==1))))))&&(a6==1))&&(a15==1))))&&(a20==1))){ + if((a5==1)){ + a3 = 6; + a0 = 0; + a27 = 1; + a5 = 0; + }else{ + a4 = 0; + a15 = 0; + a18 = 0; + a12 = 12; + } + return 26; + } else if(((a4==1)&&(((a3==7)&&((a20==1)&&((((!(a5==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==2))&&(a15==1)))&&!(a0==1))&&(a12==9))&&(a6==1))))&&!(a27==1)))){ + a5 = 1; + a22 = 1; + a0 = 1; + a3 = 8; + a18 = 0; + a15 = 0; + a12 = 12; + return -1; + } else if(((a4==1)&&(!(a15==1)&&(!(a27==1)&&((a5==1)&&(!(a0==1)&&((!(a6==1)&&((a12==8)&&((((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==5))))&&(a20==1)))))))){ + a22 = 1; + a3 = 6; + a6 = 1; + a18 = 1; + a27 = 1; + a0 = 1; + a15 = 1; + return -1; + } else if(((a15==1)&&((((a6==1)&&((!(a4==1)&&((((a0==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a22==1)))&&!(a27==1))&&(a12==11)))&&(a20==1)))&&(a3==6))&&(a5==1)))){ + a12 = 10; + a18 = 1; + a27 = 1; + a15 = 0; + a3 = 8; + a5 = 0; + return -1; + } else if((!(a22==1)&&((!(a18==1)&&((!(a15==1)&&((a3==8)&&(((a5==1)&&((a20==1)&&(((input==5)&&!(a4==1))&&(a6==1))))&&(a27==1))))&&!(a0==1)))&&(a12==11)))){ + a12 = 8; + a3 = 5; + a4 = 1; + a15 = 1; + a22 = 1; + a0 = 1; + return -1; + } else if((((a5==1)&&((a0==1)&&(((a12==11)&&((a15==1)&&(((a20==1)&&(((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==8)))||((a3==8)&&((a22==1)&&!(a18==1))))&&(input==2)))&&!(a6==1))))&&(a27==1))))&&(a4==1))){ + a22 = 1; + a12 = 8; + a6 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((!(a5==1)&&((a6==1)&&(!(a15==1)&&((a20==1)&&(((((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==4))&&!(a0==1))&&!(a27==1))&&!(a4==1))))))&&(a12==10))){ + a22 = 1; + a5 = 1; + a27 = 1; + a18 = 1; + a3 = 8; + a15 = 1; + a0 = 1; + a12 = 8; + return 26; + } else if(((!(a27==1)&&(!(a0==1)&&((!(a15==1)&&(((!(a22==1)&&((((input==5)&&!(a5==1))&&(a4==1))&&!(a18==1)))&&(a6==1))&&(a3==7)))&&(a20==1))))&&(a12==9))){ + a15 = 1; + a18 = 1; + a27 = 1; + a0 = 1; + a5 = 1; + a12 = 8; + a4 = 0; + return -1; + } else if(((a15==1)&&((a12==11)&&(!(a4==1)&&(((a20==1)&&((!(a27==1)&&((a0==1)&&(((((!(a22==1)&&(a18==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==1))))&&(a6==1)))&&(a5==1)))))){ + a22 = 1; + a3 = 6; + a18 = 0; + a27 = 1; + a15 = 0; + a4 = 1; + a6 = 0; + return -1; + } else if(((a0==1)&&(((!(a4==1)&&(((a12==9)&&(((a5==1)&&((a20==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==5))))&&(a6==1)))&&!(a27==1)))&&(a3==7))&&(a15==1)))){ + a6 = 0; + a22 = 1; + a5 = 0; + a3 = 5; + a18 = 1; + a12 = 8; + return -1; + } else if((((a20==1)&&(((a4==1)&&((a12==12)&&((a27==1)&&((((input==6)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1)))))&&(a15==1))&&!(a6==1)))))&&(a0==1)))&&!(a5==1))){ + a3 = 8; + a22 = 0; + a4 = 0; + a18 = 1; + a15 = 0; + a12 = 10; + a5 = 1; + return -1; + } else if((((!(a15==1)&&((a12==8)&&((a20==1)&&((!(a6==1)&&(!(a5==1)&&((((input==2)&&!(a18==1))&&(a4==1))&&!(a0==1))))&&!(a27==1)))))&&!(a22==1))&&(a3==5))){ + a15 = 1; + a3 = 7; + a18 = 1; + a6 = 1; + a0 = 1; + a5 = 1; + a27 = 1; + return -1; + } else if(((a3==5)&&((a22==1)&&(((a20==1)&&(((a12==9)&&(!(a4==1)&&((((a6==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&!(a15==1))&&!(a27==1))))&&!(a5==1)))&&!(a0==1))))){ + if((a0==1)){ + a18 = 0; + a4 = 1; + a3 = 7; + a15 = 1; + a6 = 0; + }else{ + a0 = 1; + a12 = 8; + a27 = 1; + a5 = 1; + a15 = 1; + a18 = 1; + a4 = 1; + a3 = 7; + a22 = 0; + } + return -1; + } else if((((((a12==12)&&(!(a15==1)&&(((a6==1)&&(((input==5)&&(((a3==8)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==7))||((a3==7)&&(!(a22==1)&&!(a18==1))))))&&(a5==1)))&&(a27==1))))&&(a4==1))&&!(a0==1))&&(a20==1))){ + a3 = 7; + a4 = 0; + a12 = 11; + a22 = 1; + a0 = 1; + a6 = 0; + a18 = 1; + a5 = 0; + return -1; + } else if((((a6==1)&&(!(a4==1)&&((((a15==1)&&((a12==8)&&((a3==7)&&((a0==1)&&((a20==1)&&((input==3)&&((a18==1)||!(a18==1))))))))&&(a27==1))&&(a22==1))))&&!(a5==1))){ + a12 = 10; + a22 = 0; + a15 = 0; + a18 = 0; + a5 = 1; + a4 = 1; + return 26; + } else if((((a4==1)&&((a20==1)&&((((a6==1)&&(((a0==1)&&(((((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1))))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==4)))&&!(a5==1)))&&(a27==1))&&(a12==12))))&&(a15==1))){ + a5 = 1; + a18 = 1; + a3 = 8; + a12 = 11; + a15 = 0; + a4 = 0; + a22 = 1; + return 24; + } else if(((a3==5)&&((!(a5==1)&&(!(a27==1)&&(((a4==1)&&(!(a6==1)&&((a15==1)&&((((a18==1)&&(input==3))&&!(a22==1))&&!(a0==1)))))&&(a20==1))))&&(a12==9)))){ + a27 = 1; + a22 = 1; + a15 = 0; + a12 = 12; + a6 = 1; + a5 = 1; + a3 = 4; + return -1; + } else if(((a20==1)&&((a6==1)&&(!(a15==1)&&((a27==1)&&((a12==11)&&(((((input==5)&&(((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a22==1)&&!(a18==1))))||((a3==8)&&((a18==1)&&(a22==1)))))&&!(a4==1))&&!(a5==1))&&!(a0==1)))))))){ + a0 = 1; + a22 = 0; + a3 = 8; + a18 = 1; + a15 = 1; + a5 = 1; + a12 = 12; + return 26; + } else if(((((a15==1)&&(((a20==1)&&(((a3==8)&&((a12==10)&&((a5==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&!(a0==1)))))&&(a22==1)))&&!(a6==1)))&&(a4==1))&&(a27==1))){ + a22 = 0; + a0 = 1; + a18 = 0; + a12 = 9; + a3 = 4; + return 24; + } else if(((((!(a18==1)&&((((!(a15==1)&&((((a0==1)&&(input==2))&&(a27==1))&&(a6==1)))&&!(a22==1))&&(a12==9))&&!(a5==1)))&&!(a4==1))&&(a20==1))&&(a3==8))){ + a5 = 1; + a15 = 1; + a6 = 0; + a27 = 0; + a3 = 7; + a22 = 1; + return 21; + } else if(((a27==1)&&((((a0==1)&&((a12==10)&&(((!(a4==1)&&(((input==3)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a20==1)))&&(a6==1))&&!(a5==1))))&&!(a15==1))&&(a3==6)))){ + if((a22==1)){ + a0 = 0; + a5 = 1; + a18 = 1; + a15 = 1; + a22 = 1; + a6 = 0; + a12 = 11; + }else{ + a18 = 1; + a27 = 0; + a6 = 0; + a22 = 1; + a15 = 1; + a4 = 1; + } + return 21; + } else if(((a27==1)&&(((a6==1)&&(((a0==1)&&((a3==8)&&((a22==1)&&(((a12==11)&&((a5==1)&&((input==3)&&(a18==1))))&&!(a15==1)))))&&(a20==1)))&&!(a4==1)))){ + a22 = 0; + a6 = 0; + a18 = 0; + a3 = 4; + a4 = 1; + a12 = 10; + return -1; + } else if(((((((((a3==6)&&((a22==1)&&((((input==4)&&(a12==11))&&(a18==1))&&(a6==1))))&&(a15==1))&&(a0==1))&&(a4==1))&&(a20==1))&&!(a5==1))&&!(a27==1))){ + a3 = 7; + a22 = 0; + a27 = 1; + a12 = 10; + a5 = 1; + a4 = 0; + return -1; + } else if(((a0==1)&&(((a5==1)&&((a12==8)&&((a3==6)&&((a15==1)&&(!(a6==1)&&((a20==1)&&(!(a27==1)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==1)))))))))&&!(a4==1)))){ + a18 = 1; + a22 = 1; + a6 = 1; + a3 = 4; + a4 = 1; + a27 = 1; + return -1; + } else if(((a20==1)&&(!(a15==1)&&(((a5==1)&&(!(a4==1)&&((a27==1)&&(((a0==1)&&((input==4)&&(((a3==7)&&((a22==1)&&!(a18==1)))||(((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7))))))&&!(a6==1)))))&&(a12==11))))){ + a18 = 1; + a22 = 1; + a4 = 1; + a3 = 5; + a6 = 1; + a27 = 0; + return 24; + } else if((((a12==11)&&((!(a15==1)&&((a27==1)&&(!(a4==1)&&((a20==1)&&(!(a0==1)&&((a3==5)&&((input==5)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))))))))&&(a6==1)))&&(a5==1))){ + a22 = 0; + a12 = 10; + a5 = 0; + a18 = 0; + a15 = 1; + a0 = 1; + return -1; + } else if((((a27==1)&&((!(a18==1)&&((((!(a22==1)&&((a20==1)&&((a3==6)&&((a5==1)&&(input==2)))))&&(a12==12))&&!(a6==1))&&(a4==1)))&&!(a15==1)))&&(a0==1))){ + a6 = 1; + a3 = 4; + a12 = 10; + a5 = 0; + a15 = 1; + a22 = 1; + return 21; + } else if(((a27==1)&&(((!(a22==1)&&(((a5==1)&&(((a12==9)&&((((input==6)&&((a18==1)||!(a18==1)))&&!(a6==1))&&(a20==1)))&&!(a4==1)))&&(a0==1)))&&!(a15==1))&&(a3==8)))){ + a3 = 7; + a12 = 8; + a15 = 1; + a27 = 0; + a18 = 0; + a22 = 1; + return 26; + } else if((((((a12==12)&&((a0==1)&&(!(a15==1)&&((a6==1)&&((((input==4)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a27==1))&&(a20==1))))))&&!(a5==1))&&(a3==5))&&!(a4==1))){ + a5 = 1; + a12 = 9; + a4 = 1; + a3 = 6; + a22 = 1; + a18 = 1; + a27 = 0; + return 24; + } else if((!(a15==1)&&((((a0==1)&&(((((a27==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&!(a22==1))&&(a4==1)))&&(a6==1))&&(a20==1))&&(a12==10)))&&(a3==8))&&(a5==1)))){ + a3 = 6; + a22 = 1; + a18 = 1; + a12 = 11; + a0 = 0; + return -1; + } else if((((a12==10)&&((a20==1)&&((a15==1)&&((!(a27==1)&&((((input==3)&&((((a3==7)&&(!(a22==1)&&(a18==1)))||((a3==7)&&(!(a18==1)&&!(a22==1))))||((a3==8)&&((a22==1)&&(a18==1)))))&&!(a6==1))&&(a4==1)))&&(a0==1)))))&&(a5==1))){ + a5 = 0; + a22 = 0; + a4 = 0; + a27 = 1; + a3 = 5; + a15 = 0; + a18 = 1; + a6 = 1; + return -1; + } else if(((!(a15==1)&&((a5==1)&&(!(a27==1)&&(((((a0==1)&&((input==3)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))))&&(a20==1))&&(a6==1))&&!(a4==1)))))&&(a12==11))){ + a22 = 1; + a5 = 0; + a15 = 1; + a27 = 1; + a12 = 10; + a4 = 1; + a3 = 4; + a18 = 0; + a6 = 0; + return 26; + } else if(((((((a6==1)&&((a12==9)&&(!(a5==1)&&((a20==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))||((!(a18==1)&&(a22==1))&&(a3==8)))&&(input==4))))))&&(a4==1))&&(a15==1))&&!(a27==1))&&(a0==1))){ + a27 = 1; + a4 = 0; + a12 = 8; + a0 = 0; + a18 = 0; + a3 = 4; + a22 = 0; + return -1; + } else if(((a15==1)&&((((((!(a0==1)&&(((a20==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==6)))&&!(a6==1)))&&(a5==1))&&!(a4==1))&&(a12==11))&&(a3==5))&&!(a27==1)))){ + a6 = 1; + a22 = 0; + a18 = 1; + a0 = 1; + a12 = 8; + a4 = 1; + a27 = 1; + a3 = 4; + return -1; + } else if(((((!(a15==1)&&(((!(a4==1)&&((((((a18==1)||!(a18==1))&&(input==4))&&(a20==1))&&(a22==1))&&(a27==1)))&&!(a6==1))&&(a0==1)))&&(a12==11))&&(a5==1))&&(a3==8))){ + if((a5==1)){ + a3 = 5; + a18 = 1; + a0 = 0; + a12 = 10; + a4 = 1; + a22 = 0; + a15 = 1; + a6 = 1; + }else{ + a18 = 1; + a3 = 6; + a5 = 0; + a12 = 10; + a6 = 1; + a15 = 1; + } + return -1; + } else if(((a5==1)&&((a15==1)&&(((a27==1)&&((a6==1)&&((((a22==1)&&(!(a0==1)&&(!(a4==1)&&(((a18==1)||!(a18==1))&&(input==4)))))&&(a12==8))&&(a3==6))))&&(a20==1))))){ + a22 = 0; + a18 = 1; + a0 = 1; + a6 = 0; + return 26; + } else if((((((a20==1)&&(((a27==1)&&(!(a18==1)&&(!(a4==1)&&((((a5==1)&&(input==1))&&(a3==8))&&!(a15==1)))))&&(a0==1)))&&(a12==10))&&(a6==1))&&(a22==1))){ + a4 = 1; + a18 = 1; + a22 = 0; + a27 = 0; + a15 = 1; + a3 = 4; + return 26; + } else if(((((a15==1)&&((((a20==1)&&((!(a18==1)&&(!(a4==1)&&(((input==5)&&(a12==10))&&!(a5==1))))&&!(a22==1)))&&(a6==1))&&(a27==1)))&&(a3==4))&&!(a0==1))){ + a15 = 0; + a18 = 1; + a12 = 11; + a22 = 1; + a0 = 1; + a3 = 8; + a4 = 1; + return 21; + } else if(((a0==1)&&(((a5==1)&&((((a12==10)&&((!(a4==1)&&(!(a27==1)&&(((a6==1)&&(input==4))&&(a3==4))))&&(a18==1)))&&(a20==1))&&(a15==1)))&&(a22==1)))){ + a5 = 0; + a12 = 9; + a27 = 1; + a3 = 5; + a0 = 0; + a4 = 1; + a18 = 0; + a15 = 0; + return -1; + } else if(((((a0==1)&&((a6==1)&&(!(a4==1)&&((((a3==8)&&((!(a22==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a5==1)))&&(a12==10))&&(a27==1)))))&&!(a15==1))&&(a20==1))){ + a12 = 8; + a4 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if((((a0==1)&&(!(a6==1)&&(!(a27==1)&&((a20==1)&&(((a12==12)&&(!(a22==1)&&((a18==1)&&(((input==6)&&(a5==1))&&(a4==1)))))&&(a3==6))))))&&(a15==1))){ + a12 = 8; + a27 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if(((((a5==1)&&((a20==1)&&((a4==1)&&(((a12==12)&&(((a15==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a22==1)))&&(a3==7)))&&(a0==1)))))&&(a6==1))&&!(a27==1))){ + a12 = 10; + a27 = 1; + a18 = 0; + a15 = 0; + a3 = 5; + return 26; + } else if(((a0==1)&&(((a20==1)&&(!(a15==1)&&(!(a27==1)&&((a12==10)&&(!(a5==1)&&((input==6)&&((((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1))||((((!(a22==1)&&(a18==1))&&(a3==8))&&(a6==1))||((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))))))))))&&(a4==1)))){ + a22 = 1; + a3 = 7; + a18 = 1; + a5 = 1; + a6 = 1; + a4 = 0; + a12 = 8; + return 26; + } else if((!(a22==1)&&((((a12==8)&&((!(a5==1)&&((a20==1)&&((!(a6==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a0==1)))&&!(a15==1))))&&!(a27==1)))&&(a4==1))&&(a3==8)))){ + a3 = 4; + a27 = 1; + a15 = 1; + a5 = 1; + a6 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if((!(a6==1)&&((a20==1)&&((a5==1)&&((((a4==1)&&((a12==8)&&(!(a27==1)&&((input==2)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))))))&&!(a0==1))&&!(a15==1)))))){ + if((a22==1)){ + a6 = 1; + a15 = 1; + a0 = 1; + a22 = 0; + a27 = 1; + a4 = 0; + a18 = 0; + a3 = 8; + }else{ + a5 = 0; + a4 = 0; + a0 = 1; + a6 = 1; + a3 = 4; + a22 = 0; + a18 = 0; + } + return 24; + } else if(((a0==1)&&(((a4==1)&&((((a12==10)&&((a15==1)&&(!(a18==1)&&(((a20==1)&&(!(a5==1)&&(input==5)))&&(a22==1)))))&&!(a6==1))&&(a27==1)))&&(a3==4)))){ + a3 = 7; + a4 = 0; + a12 = 8; + return 26; + } else if((!(a27==1)&&((a12==8)&&((!(a4==1)&&((a3==5)&&((((!(a5==1)&&((input==6)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))&&(a6==1))&&!(a15==1))&&(a20==1))))&&!(a0==1))))){ + a3 = 7; + a18 = 1; + a4 = 1; + a22 = 0; + a6 = 0; + a5 = 1; + a0 = 1; + return 21; + } else if(((a20==1)&&((!(a5==1)&&((!(a0==1)&&((((((a4==1)&&(!(a15==1)&&((a18==1)&&(a22==1))))&&(a3==4))&&(a6==1))||((((a3==8)&&((((a18==1)&&!(a22==1))&&(a15==1))&&!(a4==1)))&&!(a6==1))||(((!(a4==1)&&((a15==1)&&(!(a18==1)&&!(a22==1))))&&(a3==8))&&!(a6==1))))&&(input==4)))&&!(a27==1)))&&(a12==8)))){ + a15 = 0; + a12 = 10; + a3 = 8; + a27 = 1; + a4 = 0; + a6 = 0; + a18 = 0; + a22 = 1; + return -1; + } else if(((a20==1)&&(((((!(a4==1)&&((a6==1)&&(((a3==6)&&(((input==2)&&!(a18==1))&&!(a0==1)))&&!(a15==1))))&&(a27==1))&&!(a5==1))&&!(a22==1))&&(a12==9)))){ + a3 = 4; + a0 = 1; + a18 = 1; + a5 = 1; + a15 = 1; + a4 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if((((a5==1)&&((((a27==1)&&((a20==1)&&(((a12==10)&&(!(a15==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==1))))&&(a6==1))))&&!(a0==1))&&(a3==8)))&&!(a4==1))){ + a18 = 1; + a6 = 0; + a12 = 12; + a0 = 1; + a22 = 0; + a3 = 6; + a4 = 1; + return 24; + } else if(((a3==7)&&((((((a4==1)&&(((a5==1)&&((((input==6)&&!(a0==1))&&(a20==1))&&(a15==1)))&&!(a18==1)))&&(a12==11))&&!(a6==1))&&!(a22==1))&&(a27==1)))){ + a22 = 1; + a12 = 10; + a0 = 1; + a18 = 1; + a3 = 5; + a5 = 0; + a4 = 0; + return -1; + } else if(((a5==1)&&((!(a4==1)&&((a0==1)&&((a3==7)&&((a15==1)&&(!(a18==1)&&((a6==1)&&(((a12==8)&&((input==3)&&!(a27==1)))&&!(a22==1))))))))&&(a20==1)))){ + a3 = 4; + a18 = 1; + a27 = 1; + a22 = 1; + a4 = 1; + return -1; + } else if((!(a5==1)&&(!(a15==1)&&(!(a22==1)&&((((a20==1)&&(!(a27==1)&&(((a18==1)&&((!(a0==1)&&(input==1))&&(a12==11)))&&(a4==1))))&&(a6==1))&&(a3==6)))))){ + a22 = 1; + a12 = 9; + a3 = 8; + return 21; + } else if((((((((a0==1)&&((((a20==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==6)))&&!(a15==1))&&(a12==12)))&&!(a27==1))&&(a3==7))&&(a6==1))&&!(a4==1))&&!(a5==1))){ + a22 = 0; + a15 = 1; + a6 = 0; + a18 = 1; + a4 = 1; + a12 = 10; + return 26; + } else if(((a20==1)&&((a27==1)&&((((((a3==4)&&(((((a5==1)&&((a22==1)&&(a18==1)))&&(a15==1))&&(a12==9))&&(a4==1)))&&(a6==1))||((((a3==8)&&(((a12==8)&&(!(a15==1)&&(!(a5==1)&&(!(a22==1)&&(a18==1)))))&&!(a4==1)))&&!(a6==1))||(((!(a4==1)&&((!(a15==1)&&((!(a18==1)&&!(a22==1))&&!(a5==1)))&&(a12==8)))&&(a3==8))&&!(a6==1))))&&(input==5))&&(a0==1))))){ + a22 = 0; + a12 = 8; + a15 = 0; + a0 = 0; + a3 = 4; + a5 = 1; + a18 = 0; + a4 = 0; + a6 = 1; + return 21; + } else if((((!(a6==1)&&(((a15==1)&&(!(a5==1)&&(!(a4==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==6))&&(a20==1)))))&&(a27==1)))&&(a12==8))&&(a0==1))){ + a12 = 10; + a15 = 0; + a3 = 7; + a18 = 1; + a6 = 1; + a5 = 1; + a22 = 0; + return 21; + } else if(((a18==1)&&(((a15==1)&&((!(a22==1)&&((!(a6==1)&&((a3==8)&&(!(a27==1)&&(((input==3)&&!(a5==1))&&!(a4==1)))))&&(a12==10)))&&(a0==1)))&&(a20==1)))){ + if((a22==1)){ + a27 = 1; + a3 = 4; + a0 = 0; + a22 = 1; + a5 = 1; + }else{ + a12 = 9; + a22 = 1; + a18 = 0; + a4 = 1; + a3 = 4; + } + return 26; + } else if((!(a18==1)&&((a20==1)&&((a5==1)&&((a12==12)&&((((a3==4)&&((a15==1)&&(!(a6==1)&&((a0==1)&&(!(a22==1)&&(input==5))))))&&!(a27==1))&&!(a4==1))))))){ + a27 = 1; + a22 = 1; + a4 = 1; + a18 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if(((!(a4==1)&&(((a3==5)&&(((!(a6==1)&&((a12==9)&&(((a22==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a20==1))))&&!(a0==1))&&!(a15==1)))&&(a5==1)))&&(a27==1))){ + a6 = 1; + a0 = 1; + a4 = 1; + a15 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((((a22==1)&&(((((a3==6)&&((((a12==11)&&(!(a0==1)&&(((a18==1)||!(a18==1))&&(input==2))))&&(a15==1))&&(a4==1)))&&!(a27==1))&&(a6==1))&&!(a5==1)))&&(a20==1))){ + a5 = 1; + a27 = 1; + a18 = 0; + a0 = 1; + a12 = 8; + a6 = 0; + return -1; + } else if((((a20==1)&&((a5==1)&&(!(a15==1)&&(((a12==11)&&((a0==1)&&((a6==1)&&((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==4))&&!(a4==1)))))&&!(a27==1)))))&&(a3==8))){ + a22 = 1; + a18 = 1; + a4 = 1; + a15 = 1; + a12 = 8; + a27 = 1; + a3 = 4; + return -1; + } else if((((!(a27==1)&&((a4==1)&&(((!(a5==1)&&(((a20==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&!(a22==1)))&&(a3==7)))&&!(a6==1))&&(a0==1))))&&!(a15==1))&&(a12==9))){ + if((a22==1)){ + a18 = 0; + a22 = 1; + a6 = 1; + a3 = 8; + a12 = 12; + }else{ + a12 = 10; + a3 = 4; + a18 = 0; + a27 = 1; + a0 = 0; + a22 = 1; + } + return 21; + } else if((((a27==1)&&((!(a6==1)&&(!(a0==1)&&(((a12==12)&&(((input==3)&&((((a22==1)&&(a18==1))&&(a3==5))||(((a3==4)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))))&&!(a4==1)))&&(a15==1))))&&(a5==1)))&&(a20==1))){ + a0 = 1; + a6 = 1; + a4 = 1; + a18 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((!(a4==1)&&((a20==1)&&((((a5==1)&&((a6==1)&&(!(a22==1)&&((((input==3)&&(a3==6))&&(a12==12))&&(a15==1)))))&&(a27==1))&&!(a0==1))))&&!(a18==1))){ + a0 = 1; + a3 = 5; + a15 = 0; + a12 = 10; + a5 = 0; + return -1; + } else if(((!(a5==1)&&((a22==1)&&((a3==8)&&((a6==1)&&(((a4==1)&&(((!(a0==1)&&((a20==1)&&(input==5)))&&(a15==1))&&!(a27==1)))&&!(a18==1))))))&&(a12==11))){ + a22 = 0; + a18 = 1; + a5 = 1; + a27 = 1; + a0 = 1; + a12 = 8; + return 21; + } else if((((a15==1)&&(((!(a18==1)&&((!(a6==1)&&((a22==1)&&(((a12==9)&&((input==5)&&(a5==1)))&&!(a0==1))))&&(a3==4)))&&(a20==1))&&!(a27==1)))&&(a4==1))){ + if((a5==1)){ + a6 = 1; + a12 = 8; + a27 = 1; + a3 = 5; + a15 = 0; + a5 = 0; + a0 = 1; + a4 = 0; + }else{ + a6 = 1; + a3 = 5; + a12 = 8; + a0 = 1; + a18 = 1; + a22 = 0; + a27 = 1; + } + return 21; + } else if(((a5==1)&&(!(a27==1)&&((a15==1)&&((a12==9)&&((a20==1)&&((!(a4==1)&&((a6==1)&&((input==4)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))||(((a22==1)&&!(a18==1))&&(a3==8))))))&&!(a0==1)))))))){ + a22 = 1; + a18 = 0; + a0 = 1; + a27 = 1; + a3 = 7; + a12 = 8; + a4 = 1; + return 24; + } else if(((a12==10)&&((a3==8)&&((a5==1)&&((a20==1)&&((a6==1)&&((a0==1)&&((a27==1)&&((a4==1)&&((((input==2)&&(a15==1))&&(a22==1))&&(a18==1))))))))))){ + a22 = 0; + a3 = 4; + return -1; + } else if((((a27==1)&&(((a0==1)&&(((a20==1)&&((((((a3==6)&&((a18==1)&&(a22==1)))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a22==1)&&!(a18==1)))))&&(input==1))&&(a12==12))&&!(a4==1)))&&(a15==1)))&&!(a5==1)))&&!(a6==1))){ + a3 = 4; + a18 = 1; + a4 = 1; + a12 = 8; + a5 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if((!(a6==1)&&((a4==1)&&(!(a0==1)&&((((((a20==1)&&(((input==1)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a12==10)))&&(a15==1))&&(a27==1))&&(a3==7))&&(a5==1)))))){ + a18 = 1; + a22 = 1; + a15 = 0; + a5 = 0; + a0 = 1; + a3 = 8; + a6 = 1; + return 21; + } else if(((a20==1)&&((a12==9)&&((!(a0==1)&&(!(a15==1)&&((a27==1)&&((a4==1)&&((((((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==3))&&!(a5==1))))))&&(a6==1))))){ + a3 = 4; + a0 = 1; + a22 = 1; + a18 = 1; + a5 = 1; + return 21; + } else if((!(a18==1)&&((((a22==1)&&(((a15==1)&&(((a20==1)&&((((a3==4)&&(input==4))&&(a12==11))&&(a6==1)))&&!(a0==1)))&&(a4==1)))&&!(a5==1))&&(a27==1)))){ + a12 = 8; + a5 = 1; + a0 = 1; + a18 = 1; + return -1; + } else if((((!(a6==1)&&((a0==1)&&(((a27==1)&&(((a20==1)&&(!(a22==1)&&((a4==1)&&((input==4)&&(a12==10)))))&&(a5==1)))&&(a18==1))))&&(a3==5))&&!(a15==1))){ + if((a4==1)){ + a3 = 7; + a0 = 0; + a12 = 11; + a5 = 0; + }else{ + a12 = 11; + a4 = 0; + a3 = 8; + a18 = 0; + a6 = 1; + } + return 26; + } else if((((!(a27==1)&&((a0==1)&&(!(a5==1)&&((a6==1)&&((!(a4==1)&&((input==1)&&(((a3==7)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6))))))&&(a12==9))))))&&(a20==1))&&(a15==1))){ + if((a6==1)){ + a0 = 0; + a18 = 0; + a22 = 1; + a27 = 1; + a12 = 11; + a6 = 0; + a3 = 7; + }else{ + a3 = 6; + a22 = 0; + a18 = 0; + a6 = 0; + a4 = 1; + a12 = 11; + a27 = 1; + } + return 26; + } else if((!(a5==1)&&(((a6==1)&&((a3==7)&&((a20==1)&&((a4==1)&&((a12==10)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&(a15==1))&&!(a0==1)))))))&&!(a27==1)))){ + a3 = 8; + a12 = 8; + a18 = 0; + a4 = 0; + a27 = 1; + a5 = 1; + a22 = 0; + a0 = 1; + return 21; + } else if((((a12==9)&&(!(a5==1)&&(!(a4==1)&&(!(a27==1)&&((a6==1)&&(!(a0==1)&&(((a3==8)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==6)))&&(a15==1))))))))&&(a20==1))){ + if((a5==1)){ + a22 = 0; + a0 = 1; + a12 = 8; + a27 = 1; + a4 = 1; + a18 = 0; + a5 = 1; + a3 = 6; + }else{ + a27 = 1; + a5 = 1; + a22 = 0; + a4 = 1; + a12 = 8; + a18 = 0; + a3 = 4; + a0 = 1; + } + return 21; + } else if(((a5==1)&&(((a3==8)&&((((a20==1)&&((a6==1)&&((((input==2)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&!(a4==1))&&(a27==1))))&&(a12==11))&&(a15==1)))&&!(a0==1)))){ + a0 = 1; + a18 = 1; + a27 = 0; + a12 = 12; + a15 = 0; + a22 = 0; + return 26; + } else if(((a12==10)&&((!(a27==1)&&((a4==1)&&((a20==1)&&(((((input==5)&&((((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==7))))&&(a15==1))&&(a0==1))&&(a5==1)))))&&(a6==1)))){ + a22 = 1; + a27 = 1; + a12 = 11; + a18 = 0; + a4 = 0; + a3 = 8; + a15 = 0; + a5 = 0; + return 21; + } else if((!(a4==1)&&((((a12==8)&&((!(a15==1)&&((a5==1)&&((input==2)&&(((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1))||((((!(a22==1)&&(a18==1))&&(a3==8))&&(a6==1))||((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8))))))))&&!(a27==1)))&&(a20==1))&&!(a0==1)))){ + if((a6==1)){ + a15 = 1; + a18 = 1; + a6 = 1; + a3 = 6; + a0 = 1; + a22 = 1; + a27 = 1; + }else{ + a3 = 4; + a12 = 11; + a22 = 1; + a18 = 1; + a6 = 1; + a0 = 1; + } + return -1; + } else if((((a5==1)&&(((a12==12)&&((!(a27==1)&&((((a4==1)&&((a20==1)&&((a0==1)&&(input==5))))&&!(a22==1))&&!(a6==1)))&&(a18==1)))&&(a15==1)))&&(a3==6))){ + a4 = 0; + a3 = 7; + a5 = 0; + a6 = 1; + a12 = 9; + return -1; + } else if((((a20==1)&&(!(a6==1)&&((a3==6)&&((!(a27==1)&&((((a4==1)&&((((a18==1)||!(a18==1))&&(input==1))&&!(a5==1)))&&!(a0==1))&&(a12==8)))&&(a22==1)))))&&(a15==1))){ + a18 = 1; + a5 = 1; + a27 = 1; + a0 = 1; + a3 = 4; + a22 = 0; + return -1; + } else if(((((((a3==4)&&(((a12==8)&&(((!(a5==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a20==1))&&(a6==1)))&&!(a22==1)))&&(a27==1))&&!(a15==1))&&(a4==1))&&!(a0==1))){ + a0 = 1; + a18 = 1; + a5 = 1; + a15 = 1; + a22 = 1; + return -1; + } else if((!(a22==1)&&(((a0==1)&&((a4==1)&&((!(a18==1)&&(((a3==7)&&(((!(a15==1)&&(input==3))&&(a12==12))&&!(a5==1)))&&(a6==1)))&&!(a27==1))))&&(a20==1)))){ + a5 = 1; + a18 = 1; + a15 = 1; + a3 = 5; + a27 = 1; + return 26; + } else if(((a0==1)&&((a12==10)&&(!(a5==1)&&((a20==1)&&(!(a15==1)&&(!(a6==1)&&((a22==1)&&((((a3==7)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a27==1))&&!(a4==1)))))))))){ + a6 = 1; + a4 = 1; + a3 = 4; + a18 = 1; + a5 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if(((a5==1)&&(!(a6==1)&&(!(a15==1)&&((a0==1)&&((((a4==1)&&((a12==8)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&(a27==1))))&&(a3==5))&&(a20==1))))))){ + a6 = 1; + a22 = 1; + a18 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if(((!(a27==1)&&(((((a15==1)&&(((input==3)&&((((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1)))||((((a22==1)&&!(a18==1))&&(a3==4))&&!(a6==1))))&&!(a0==1)))&&(a4==1))&&(a12==9))&&!(a5==1)))&&(a20==1))){ + a15 = 0; + a6 = 0; + a22 = 0; + a27 = 1; + a18 = 0; + a0 = 1; + a3 = 4; + a5 = 1; + return 26; + } else if((!(a22==1)&&((a5==1)&&(((a12==12)&&((((((a6==1)&&((a15==1)&&((a0==1)&&(input==4))))&&!(a18==1))&&(a20==1))&&(a3==5))&&!(a27==1)))&&!(a4==1))))){ + a6 = 0; + a5 = 0; + a0 = 0; + a27 = 1; + a22 = 1; + a18 = 1; + a4 = 1; + a3 = 7; + a12 = 9; + return 24; + } else if((((a20==1)&&(!(a4==1)&&(((a27==1)&&(((a0==1)&&((a3==8)&&((a12==8)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==6)))))&&(a15==1)))&&!(a5==1))))&&(a6==1))){ + a12 = 10; + a22 = 1; + a15 = 0; + a5 = 1; + a6 = 0; + a4 = 1; + a18 = 0; + a3 = 7; + return 26; + } else if((!(a15==1)&&((a12==11)&&((!(a27==1)&&(((((a0==1)&&((input==4)&&(((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a18==1)&&!(a22==1))))||((a3==8)&&((a18==1)&&(a22==1))))))&&(a20==1))&&(a6==1))&&(a4==1)))&&(a5==1))))){ + a22 = 1; + a3 = 4; + a4 = 0; + a12 = 9; + a18 = 1; + return -1; + } else if(((a3==6)&&((a15==1)&&(((a27==1)&&((a12==12)&&((a0==1)&&((((a5==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&!(a22==1)))&&!(a6==1))&&(a4==1)))))&&(a20==1))))){ + a6 = 1; + a18 = 0; + a3 = 7; + a27 = 0; + a22 = 1; + return 26; + } else if((((a12==12)&&((!(a15==1)&&((a0==1)&&((a20==1)&&((!(a5==1)&&(((((a3==5)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==5)))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==1)))&&!(a27==1)))))&&!(a4==1)))&&!(a6==1))){ + if((a12==8)){ + a6 = 1; + a0 = 0; + a22 = 1; + a3 = 4; + a12 = 10; + a4 = 1; + a18 = 0; + a27 = 1; + }else{ + a27 = 1; + a6 = 1; + a22 = 1; + a18 = 0; + a5 = 1; + a3 = 7; + a0 = 0; + a12 = 9; + } + return -1; + } else if((!(a27==1)&&((((!(a6==1)&&((a5==1)&&(!(a0==1)&&((a3==6)&&((a20==1)&&((!(a18==1)&&(input==4))&&(a22==1)))))))&&(a12==8))&&(a4==1))&&!(a15==1)))){ + if((a20==1)){ + a27 = 1; + a6 = 1; + a12 = 11; + a4 = 0; + }else{ + a15 = 1; + a3 = 8; + a4 = 0; + a12 = 9; + } + return 24; + } else if((!(a6==1)&&((!(a5==1)&&((!(a22==1)&&((!(a15==1)&&(((((a3==5)&&(input==6))&&!(a0==1))&&(a20==1))&&!(a27==1)))&&(a12==8)))&&!(a18==1)))&&!(a4==1)))){ + if((a3==8)){ + a27 = 1; + a5 = 1; + a15 = 1; + a22 = 1; + a0 = 1; + a3 = 4; + a6 = 1; + }else{ + a18 = 1; + a27 = 1; + a22 = 1; + a15 = 1; + a0 = 1; + a3 = 4; + a5 = 1; + } + return -1; + } else if(((!(a27==1)&&(((a4==1)&&(((!(a5==1)&&((((a20==1)&&((input==4)&&((a18==1)||!(a18==1))))&&(a15==1))&&!(a22==1)))&&!(a6==1))&&(a3==8)))&&!(a0==1)))&&(a12==9))){ + if((a4==1)){ + a6 = 1; + a18 = 1; + a4 = 0; + a27 = 1; + a3 = 7; + }else{ + a6 = 1; + a18 = 0; + } + return -1; + } else if((!(a5==1)&&((a4==1)&&((!(a18==1)&&((a6==1)&&((((((!(a15==1)&&(input==2))&&!(a22==1))&&(a12==10))&&(a27==1))&&(a20==1))&&(a3==8))))&&!(a0==1))))){ + a3 = 4; + a12 = 8; + a0 = 1; + a22 = 1; + a15 = 1; + a18 = 1; + a5 = 1; + return -1; + } else if(((a4==1)&&(((((a12==10)&&((a27==1)&&((((a20==1)&&((input==4)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))))&&!(a0==1))&&(a6==1))))&&!(a15==1))&&!(a5==1))&&(a3==5)))){ + a22 = 1; + a18 = 1; + a3 = 4; + a6 = 0; + a0 = 1; + return -1; + } else if((!(a0==1)&&((a12==12)&&(!(a6==1)&&(!(a15==1)&&((((a4==1)&&(((a20==1)&&((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a27==1)))&&(a3==7))&&!(a5==1))))))){ + if((a18==1)){ + a22 = 1; + a4 = 0; + a12 = 8; + a18 = 0; + a3 = 8; + a6 = 1; + }else{ + a18 = 0; + a3 = 4; + a6 = 1; + a12 = 8; + a5 = 1; + a22 = 1; + a15 = 1; + a0 = 1; + } + return 21; + } else if(((((a6==1)&&(((a20==1)&&(!(a15==1)&&((a4==1)&&((!(a5==1)&&((a18==1)&&((input==6)&&(a12==10))))&&(a3==6)))))&&(a27==1)))&&(a22==1))&&!(a0==1))){ + a0 = 1; + a3 = 8; + a15 = 1; + a18 = 0; + a5 = 1; + a4 = 0; + a22 = 0; + return 26; + } else if((!(a6==1)&&(!(a5==1)&&((a12==11)&&(((a4==1)&&(!(a22==1)&&(!(a0==1)&&((a20==1)&&(((a15==1)&&((input==3)&&((a18==1)||!(a18==1))))&&!(a27==1))))))&&(a3==4)))))){ + if((a18==1)){ + a4 = 0; + a3 = 7; + a22 = 1; + a6 = 1; + a18 = 0; + a12 = 8; + a15 = 0; + }else{ + a0 = 1; + a3 = 8; + a4 = 0; + a15 = 0; + a5 = 1; + a12 = 12; + a18 = 1; + } + return -1; + } else if(((((((a12==12)&&((a4==1)&&(((a20==1)&&((a3==8)&&((input==2)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))))&&!(a0==1))))&&!(a6==1))&&!(a15==1))&&(a5==1))&&(a27==1))){ + a6 = 1; + a18 = 0; + a0 = 1; + a4 = 0; + a22 = 0; + a3 = 6; + return 26; + } else if((!(a27==1)&&((a6==1)&&((a12==8)&&(!(a0==1)&&(!(a15==1)&&((a4==1)&&((a20==1)&&((a5==1)&&((((((a18==1)&&!(a22==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==6))))))))))){ + a22 = 1; + a27 = 1; + a18 = 1; + a3 = 4; + a15 = 1; + a0 = 1; + return 21; + } else if((!(a4==1)&&(!(a22==1)&&(((((a27==1)&&(!(a5==1)&&((a18==1)&&((((a12==10)&&(input==2))&&!(a6==1))&&(a20==1)))))&&(a0==1))&&!(a15==1))&&(a3==5))))){ + a4 = 1; + a3 = 4; + a12 = 8; + a6 = 1; + a15 = 1; + a5 = 1; + a22 = 1; + return -1; + } else if(((a0==1)&&((a6==1)&&((a5==1)&&((a18==1)&&((((((a12==11)&&(!(a4==1)&&(!(a15==1)&&(input==4))))&&(a3==6))&&(a20==1))&&!(a27==1))&&!(a22==1))))))){ + a15 = 1; + a3 = 4; + a4 = 1; + a12 = 8; + a22 = 1; + a27 = 1; + return -1; + } else if(((!(a5==1)&&(((a22==1)&&(((a4==1)&&((!(a0==1)&&((((input==6)&&!(a18==1))&&(a12==9))&&(a27==1)))&&!(a6==1)))&&(a3==8)))&&(a20==1)))&&!(a15==1))){ + if((a0==1)){ + a12 = 11; + a18 = 1; + }else{ + a6 = 1; + a27 = 0; + a0 = 1; + a12 = 10; + a22 = 0; + a3 = 6; + } + return -1; + } else if((((a20==1)&&(((a0==1)&&(((a27==1)&&(!(a5==1)&&((input==6)&&(((((a3==8)&&(!(a22==1)&&(a18==1)))&&(a6==1))||(((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1)))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1))))))&&!(a4==1)))&&!(a15==1)))&&(a12==10))){ + a15 = 1; + a22 = 1; + a18 = 1; + a27 = 0; + a3 = 4; + a6 = 1; + return 21; + } else if((!(a4==1)&&(((a20==1)&&(((a3==4)&&(!(a5==1)&&((!(a15==1)&&((((input==5)&&((a18==1)||!(a18==1)))&&(a12==11))&&(a6==1)))&&!(a22==1))))&&!(a27==1)))&&(a0==1)))){ + a3 = 6; + a27 = 1; + a12 = 10; + a18 = 0; + a4 = 1; + a15 = 1; + return -1; + } else if((((((a0==1)&&(((!(a6==1)&&(((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==3))&&!(a15==1))&&!(a5==1)))&&(a12==12))&&(a3==6)))&&(a4==1))&&(a27==1))&&(a20==1))){ + a22 = 1; + a27 = 0; + a18 = 1; + a3 = 7; + a15 = 1; + a4 = 0; + return 24; + } else if(((!(a27==1)&&((a5==1)&&((a3==8)&&((a20==1)&&((a4==1)&&((!(a0==1)&&(!(a15==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==1))))&&(a12==9)))))))&&(a6==1))){ + if((a27==1)){ + a12 = 8; + a6 = 0; + a0 = 1; + a18 = 1; + a27 = 1; + a15 = 1; + a22 = 1; + a3 = 4; + }else{ + a3 = 5; + a12 = 8; + a15 = 1; + a18 = 1; + a27 = 1; + a4 = 0; + a22 = 1; + a0 = 1; + } + return -1; + } else if((((a12==8)&&((((a6==1)&&(((a0==1)&&(((((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==2))&&(a15==1)))&&!(a5==1)))&&(a27==1))&&(a20==1)))&&!(a4==1))){ + a4 = 1; + a22 = 1; + a5 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((((((a3==5)&&(!(a0==1)&&(((a22==1)&&(((a5==1)&&((a20==1)&&((input==6)&&!(a18==1))))&&(a6==1)))&&(a15==1))))&&!(a27==1))&&(a12==10))&&(a4==1))){ + a5 = 0; + a22 = 0; + a4 = 0; + a12 = 9; + a6 = 0; + return 21; + } else if((((!(a15==1)&&(((a6==1)&&(((a4==1)&&((a0==1)&&(((((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==1))))&&(a27==1)))&&(a12==11)))&&(a5==1))&&(a20==1))){ + a3 = 4; + a15 = 1; + a4 = 0; + a12 = 10; + a22 = 0; + a18 = 1; + return -1; + } else if((((!(a15==1)&&(((((a3==6)&&(!(a4==1)&&(((input==2)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a5==1))))&&(a12==10))&&!(a6==1))&&(a0==1)))&&(a20==1))&&!(a27==1))){ + a4 = 1; + a3 = 4; + a27 = 1; + a18 = 1; + a22 = 1; + a12 = 8; + a6 = 1; + a15 = 1; + return -1; + } else if((((a3==4)&&((a12==8)&&((a0==1)&&((a27==1)&&(!(a4==1)&&(!(a15==1)&&((a6==1)&&(((input==3)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&(a20==1)))))))))&&!(a5==1))){ + a4 = 1; + a18 = 1; + a3 = 5; + a5 = 1; + a22 = 0; + a12 = 11; + return 26; + } else if(((((((!(a0==1)&&((a4==1)&&((input==3)&&((((a3==4)&&((a22==1)&&!(a18==1)))&&!(a6==1))||(((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1)))))))&&!(a15==1))&&(a12==8))&&!(a27==1))&&!(a5==1))&&(a20==1))){ + a15 = 1; + a27 = 1; + a18 = 0; + a12 = 10; + a6 = 1; + a3 = 7; + a22 = 0; + a0 = 1; + return 26; + } else if(((a4==1)&&((a12==8)&&((a20==1)&&(!(a5==1)&&(!(a27==1)&&(((!(a0==1)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==2)))&&!(a6==1))&&(a15==1)))))))){ + a15 = 0; + a12 = 10; + a18 = 0; + a0 = 1; + a3 = 7; + a22 = 1; + return -1; + } else if(((((a12==11)&&((a3==6)&&((a27==1)&&(!(a5==1)&&((a20==1)&&(((((input==1)&&!(a4==1))&&(a15==1))&&!(a6==1))&&!(a22==1)))))))&&(a0==1))&&!(a18==1))){ + a3 = 4; + a15 = 0; + a4 = 1; + a6 = 1; + return 26; + } else if((!(a4==1)&&(!(a5==1)&&(((a20==1)&&((a15==1)&&((a27==1)&&(((a12==12)&&((a0==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6))))&&!(a6==1)))))&&(a3==4))))){ + a6 = 1; + a22 = 1; + a18 = 1; + a12 = 8; + a4 = 1; + a5 = 1; + return -1; + } else if(((!(a22==1)&&(((a27==1)&&((((((!(a4==1)&&((input==6)&&(a3==7)))&&!(a15==1))&&(a18==1))&&!(a5==1))&&(a0==1))&&(a12==10)))&&(a6==1)))&&(a20==1))){ + a6 = 0; + a4 = 1; + a22 = 1; + a27 = 0; + a18 = 0; + a15 = 1; + return 26; + } else if(((a0==1)&&((a3==4)&&(!(a27==1)&&(((!(a4==1)&&(!(a5==1)&&((!(a6==1)&&((input==3)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))&&(a12==8))))&&!(a15==1))&&(a20==1)))))){ + if((a18==1)){ + a27 = 1; + a22 = 1; + a18 = 1; + a3 = 5; + a4 = 1; + a0 = 0; + a12 = 9; + a5 = 1; + a15 = 1; + }else{ + a15 = 1; + a4 = 1; + a18 = 0; + a12 = 12; + a22 = 0; + a3 = 7; + } + return 21; + } else if((!(a6==1)&&((((a3==4)&&(((!(a27==1)&&((a12==10)&&(!(a0==1)&&(((input==5)&&!(a15==1))&&(a4==1)))))&&(a20==1))&&(a22==1)))&&(a5==1))&&(a18==1)))){ + a15 = 1; + a27 = 1; + a0 = 1; + a3 = 7; + a18 = 0; + a12 = 8; + return -1; + } else if(((a27==1)&&((!(a0==1)&&((!(a6==1)&&(((a20==1)&&((a12==10)&&(((a5==1)&&(!(a15==1)&&(input==4)))&&(a3==8))))&&(a22==1)))&&(a4==1)))&&!(a18==1)))){ + a27 = 0; + a4 = 0; + a6 = 1; + a12 = 12; + a3 = 6; + a0 = 1; + a22 = 0; + return -1; + } else if(((a5==1)&&((!(a4==1)&&(((((((a0==1)&&((input==5)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&(a27==1))&&!(a15==1))&&(a3==5))&&!(a6==1))&&(a12==9)))&&(a20==1)))){ + a12 = 8; + a15 = 1; + a22 = 1; + a3 = 4; + a4 = 1; + a6 = 1; + a18 = 1; + return -1; + } else if(((!(a15==1)&&(((a4==1)&&((((((input==2)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6))))&&(a0==1))&&(a12==12))&&(a6==1))&&!(a27==1)))&&(a5==1)))&&(a20==1))){ + a27 = 1; + a15 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + return -1; + } else if((((a4==1)&&(((a27==1)&&((((((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==6))&&(a12==9))&&(a20==1))&&!(a6==1))&&!(a15==1))&&(a5==1)))&&(a0==1)))&&(a3==4))){ + a15 = 1; + a12 = 8; + a6 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((a20==1)&&((!(a4==1)&&(((a18==1)&&((a22==1)&&((a0==1)&&(((a3==6)&&(((a15==1)&&(input==5))&&!(a5==1)))&&(a27==1)))))&&!(a6==1)))&&(a12==10)))){ + a6 = 1; + a5 = 1; + a3 = 4; + a0 = 0; + a18 = 0; + a4 = 1; + return -1; + } else if((((a6==1)&&(!(a4==1)&&((a12==12)&&(((a0==1)&&(((a3==4)&&((a20==1)&&((a15==1)&&((input==3)&&(a5==1)))))&&(a22==1)))&&(a18==1)))))&&(a27==1))){ + a3 = 5; + a12 = 10; + a0 = 0; + return 21; + } else if(((!(a15==1)&&((a27==1)&&(((((a6==1)&&(((((input==6)&&(a20==1))&&(a0==1))&&!(a22==1))&&(a12==10)))&&!(a18==1))&&(a4==1))&&(a3==6))))&&(a5==1))){ + a22 = 1; + a12 = 8; + a3 = 4; + a15 = 1; + a18 = 1; + return -1; + } else if((((a3==6)&&((a12==8)&&((((((((input==3)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&!(a5==1))&&!(a0==1))&&!(a15==1))&&(a20==1))&&(a27==1))&&!(a6==1))))&&(a4==1))){ + a27 = 0; + a12 = 12; + a4 = 0; + a5 = 1; + a0 = 1; + a22 = 0; + a3 = 7; + a15 = 1; + a18 = 0; + return 21; + } else if(((((!(a0==1)&&(!(a5==1)&&(!(a15==1)&&((a12==9)&&((((((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==5)))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==3))&&(a4==1))))))&&!(a6==1))&&(a20==1))&&(a27==1))){ + a5 = 1; + a3 = 4; + a22 = 1; + a0 = 1; + a4 = 0; + a18 = 1; + a15 = 1; + a12 = 10; + return 26; + } else if(((!(a15==1)&&(((a12==8)&&((((((input==5)&&((((a3==6)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))||((a3==7)&&((a22==1)&&(a18==1)))))&&(a27==1))&&!(a6==1))&&(a0==1))&&(a20==1)))&&!(a5==1)))&&(a4==1))){ + if((a6==1)){ + a18 = 0; + a0 = 0; + a15 = 1; + a22 = 0; + a6 = 1; + a3 = 5; + a5 = 1; + a12 = 11; + }else{ + a22 = 1; + a6 = 1; + a12 = 11; + a4 = 0; + a3 = 8; + a18 = 1; + a5 = 1; + a15 = 1; + } + return 24; + } else if((!(a6==1)&&((a20==1)&&((((a12==8)&&((((a27==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==6))&&(a3==5)))&&(a0==1))&&(a4==1)))&&(a5==1))&&!(a15==1))))){ + a5 = 0; + a3 = 4; + a22 = 1; + a18 = 1; + return 21; + } else if(((!(a0==1)&&((a6==1)&&((a27==1)&&(((((a12==12)&&((a3==7)&&(!(a5==1)&&(((a18==1)||!(a18==1))&&(input==1)))))&&!(a15==1))&&!(a4==1))&&(a22==1)))))&&(a20==1))){ + if((a18==1)){ + a4 = 1; + a3 = 6; + a22 = 0; + a12 = 8; + a15 = 1; + a0 = 1; + a5 = 1; + a18 = 0; + }else{ + a3 = 5; + a18 = 1; + a4 = 1; + a6 = 0; + } + return -1; + } else if((((a3==4)&&(((a27==1)&&(((a20==1)&&((a12==10)&&(((a0==1)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==6)))&&!(a6==1))))&&(a5==1)))&&!(a4==1)))&&!(a15==1))){ + a18 = 1; + a15 = 1; + a22 = 1; + a6 = 1; + a4 = 1; + a12 = 8; + return -1; + } else if((((!(a4==1)&&((a12==8)&&(((!(a15==1)&&(((((a3==5)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1)))))&&(input==5))&&!(a27==1)))&&!(a6==1))&&(a5==1))))&&!(a0==1))&&(a20==1))){ + a0 = 1; + a22 = 1; + a27 = 1; + a4 = 1; + a18 = 1; + a3 = 5; + a12 = 12; + return 26; + } else if((((((a27==1)&&(((a12==12)&&((a20==1)&&((a15==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&!(a22==1))&&!(a5==1)))))&&!(a0==1)))&&(a6==1))&&!(a4==1))&&(a3==8))){ + a3 = 4; + a6 = 0; + a18 = 0; + a5 = 1; + return -1; + } else if((((((((a5==1)&&((!(a4==1)&&((((a3==7)&&((a22==1)&&(a18==1)))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a22==1)&&!(a18==1)))))&&(input==3)))&&!(a6==1)))&&(a20==1))&&(a12==10))&&!(a0==1))&&!(a15==1))&&(a27==1))){ + a12 = 9; + a27 = 0; + a22 = 1; + a6 = 1; + a0 = 1; + a3 = 8; + a18 = 0; + return 21; + } else if(((!(a5==1)&&((a6==1)&&(!(a27==1)&&(!(a0==1)&&((a15==1)&&((((input==4)&&((((a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a22==1)&&!(a18==1))))))&&!(a4==1))&&(a12==10)))))))&&(a20==1))){ + a0 = 1; + a12 = 8; + a3 = 7; + a18 = 1; + a27 = 1; + a22 = 1; + a15 = 0; + a6 = 0; + return -1; + } else if(((((((a5==1)&&(((a20==1)&&(!(a4==1)&&(((a27==1)&&((input==6)&&(a3==4)))&&(a12==8))))&&!(a0==1)))&&!(a18==1))&&!(a15==1))&&!(a6==1))&&(a22==1))){ + a5 = 0; + a3 = 5; + a15 = 1; + a4 = 1; + a12 = 10; + a0 = 1; + return 21; + } else if(((!(a18==1)&&(((a6==1)&&(((a4==1)&&((((a15==1)&&(!(a27==1)&&((a22==1)&&(input==4))))&&(a20==1))&&!(a0==1)))&&(a12==10)))&&(a5==1)))&&(a3==5))){ + if((a15==1)){ + a5 = 0; + a0 = 1; + a12 = 8; + a3 = 4; + }else{ + a4 = 0; + a18 = 1; + a0 = 1; + a12 = 8; + a3 = 4; + a22 = 0; + a27 = 1; + } + return -1; + } else if((!(a15==1)&&(!(a27==1)&&(((!(a4==1)&&((!(a0==1)&&((a3==8)&&(!(a22==1)&&((((a18==1)||!(a18==1))&&(input==3))&&(a12==9)))))&&!(a5==1)))&&(a20==1))&&(a6==1))))){ + a22 = 1; + a4 = 1; + a5 = 1; + a27 = 1; + a18 = 0; + a15 = 1; + a3 = 6; + return -1; + } else if(((!(a6==1)&&((!(a0==1)&&(((a3==7)&&((a4==1)&&((a22==1)&&((a20==1)&&((!(a15==1)&&(input==3))&&(a5==1))))))&&!(a18==1)))&&(a27==1)))&&(a12==8))){ + a15 = 1; + a12 = 11; + a0 = 1; + a3 = 6; + return 21; + } else if(((a12==11)&&(!(a22==1)&&(!(a27==1)&&(((!(a4==1)&&(!(a5==1)&&(((((input==5)&&!(a0==1))&&(a18==1))&&(a6==1))&&(a15==1))))&&(a3==8))&&(a20==1)))))){ + if((a0==1)){ + a4 = 1; + a27 = 1; + a0 = 1; + a15 = 0; + a12 = 8; + a3 = 7; + }else{ + a3 = 7; + a22 = 1; + a5 = 1; + a4 = 1; + a15 = 0; + } + return 26; + } else if((!(a15==1)&&(((a12==10)&&((a20==1)&&(!(a6==1)&&(!(a4==1)&&((a0==1)&&((((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==5)))||((a3==5)&&(!(a18==1)&&(a22==1))))&&(input==6))&&!(a27==1)))))))&&(a5==1)))){ + a18 = 0; + a27 = 1; + a6 = 1; + a22 = 1; + a3 = 7; + return 26; + } else if((!(a5==1)&&(((a12==11)&&(((a15==1)&&((a27==1)&&((a20==1)&&((a0==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))||((a3==5)&&(!(a18==1)&&(a22==1))))&&(input==1))))))&&!(a6==1)))&&(a4==1)))){ + a5 = 1; + a18 = 1; + a22 = 1; + a15 = 0; + a27 = 0; + a6 = 1; + a4 = 0; + a3 = 6; + return 21; + } else if(((((a6==1)&&(!(a0==1)&&(((((a12==11)&&(!(a27==1)&&(!(a4==1)&&((input==4)&&((a18==1)||!(a18==1))))))&&!(a5==1))&&!(a15==1))&&(a3==8))))&&!(a22==1))&&(a20==1))){ + a22 = 1; + a6 = 0; + a18 = 0; + a3 = 5; + a15 = 1; + a27 = 1; + a0 = 1; + a4 = 1; + a5 = 1; + a12 = 8; + return -1; + } else if((!(a22==1)&&((a20==1)&&((((a0==1)&&((a12==12)&&((a4==1)&&((a5==1)&&((a3==4)&&(((a18==1)&&(input==6))&&!(a6==1)))))))&&!(a27==1))&&!(a15==1))))){ + a18 = 0; + a12 = 8; + a3 = 8; + return -1; + } else if((((((a15==1)&&((a6==1)&&((((a20==1)&&((input==4)&&((((!(a22==1)&&(a18==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6)))||((a3==7)&&((a22==1)&&(a18==1))))))&&(a4==1))&&!(a27==1))))&&!(a0==1))&&(a5==1))&&(a12==9))){ + if((a3==4)){ + a18 = 0; + a5 = 0; + a12 = 11; + a22 = 0; + a3 = 8; + }else{ + a3 = 6; + a22 = 0; + a4 = 0; + a18 = 0; + a12 = 8; + a0 = 1; + a27 = 1; + } + return 24; + } else if(((a20==1)&&((a12==10)&&(!(a15==1)&&((a6==1)&&(!(a0==1)&&((!(a4==1)&&(!(a27==1)&&(((((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1))))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==4))))&&(a5==1)))))))){ + a4 = 1; + a22 = 1; + a12 = 12; + a0 = 1; + a18 = 1; + a3 = 7; + return 21; + } else if((((a5==1)&&((a0==1)&&(!(a4==1)&&((a3==5)&&(((a20==1)&&(((a27==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==3)))&&(a12==11)))&&!(a15==1))))))&&!(a6==1))){ + a18 = 1; + a4 = 1; + a22 = 0; + a6 = 1; + return -1; + } else if((!(a15==1)&&(((a6==1)&&(((!(a0==1)&&((a12==10)&&((a27==1)&&(((((a22==1)&&(a18==1))&&(a3==6))||(((a3==5)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==5))))&&(input==4)))))&&(a5==1))&&(a4==1)))&&(a20==1)))){ + if((a22==1)){ + a3 = 7; + a15 = 1; + a6 = 0; + a22 = 1; + a4 = 0; + a18 = 0; + a12 = 11; + }else{ + a22 = 1; + a3 = 7; + a15 = 1; + a6 = 0; + a0 = 1; + a12 = 11; + a18 = 1; + } + return 26; + } else if((!(a18==1)&&(((a5==1)&&((a3==6)&&(((a6==1)&&(((((a0==1)&&((a12==9)&&(input==6)))&&(a15==1))&&(a22==1))&&(a20==1)))&&!(a27==1))))&&(a4==1)))){ + a27 = 1; + a3 = 8; + a0 = 0; + a6 = 0; + a5 = 0; + return 21; + } else if((!(a4==1)&&((((a3==8)&&((a27==1)&&((a6==1)&&((a22==1)&&((!(a15==1)&&((((a18==1)||!(a18==1))&&(input==4))&&!(a5==1)))&&(a12==8))))))&&(a0==1))&&(a20==1)))){ + a15 = 1; + a18 = 1; + a5 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if(((!(a6==1)&&(((a3==7)&&(((a27==1)&&(((((a20==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a12==12))&&!(a15==1))&&!(a0==1)))&&!(a4==1)))&&!(a22==1)))&&(a5==1))){ + a0 = 1; + a18 = 0; + a12 = 8; + a15 = 1; + a6 = 1; + return -1; + } else if((((a20==1)&&((((!(a4==1)&&(((((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a22==1)&&(a18==1))))||((a3==8)&&((a22==1)&&!(a18==1))))&&(input==2))&&!(a0==1))&&!(a27==1)))&&(a6==1))&&!(a15==1))&&!(a5==1)))&&(a12==8))){ + a22 = 0; + a4 = 1; + a0 = 1; + a18 = 0; + a5 = 1; + a27 = 1; + a3 = 6; + a12 = 11; + return -1; + } else if((((((a27==1)&&((!(a6==1)&&(((a15==1)&&((input==2)&&(((a3==5)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1)))))))&&(a5==1)))&&(a20==1)))&&!(a0==1))&&(a4==1))&&(a12==9))){ + a6 = 1; + a22 = 1; + a0 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((((((((a20==1)&&(((input==4)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))||((a3==8)&&((a22==1)&&!(a18==1)))))&&(a12==9)))&&(a6==1))&&(a27==1))&&!(a4==1))&&(a5==1))&&(a15==1))&&!(a0==1))){ + a3 = 8; + a18 = 1; + a15 = 0; + a22 = 0; + a12 = 12; + a0 = 1; + return 24; + } else if(((a27==1)&&((!(a15==1)&&((a6==1)&&((a3==4)&&((a20==1)&&((a12==8)&&((!(a4==1)&&((input==1)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))))&&(a0==1)))))))&&!(a5==1)))){ + a22 = 0; + a12 = 11; + a4 = 1; + a18 = 1; + a3 = 7; + a5 = 1; + return 26; + } else if((((a20==1)&&(((((a6==1)&&((a4==1)&&((a12==9)&&((((a3==8)&&((a22==1)&&!(a18==1)))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1)))))&&(input==4)))))&&(a27==1))&&!(a0==1))&&(a15==1)))&&(a5==1))){ + a4 = 0; + a22 = 0; + a27 = 0; + a12 = 12; + a3 = 6; + a6 = 0; + a0 = 1; + a18 = 0; + a15 = 0; + return 26; + } else if((!(a5==1)&&(((a27==1)&&(((a15==1)&&((a12==10)&&(((a20==1)&&((a3==6)&&(!(a6==1)&&((input==4)&&!(a4==1)))))&&!(a0==1))))&&!(a18==1)))&&!(a22==1)))){ + a3 = 7; + a22 = 1; + a0 = 1; + a6 = 1; + a15 = 0; + return 21; + } else if(((a3==8)&&((((a0==1)&&((a20==1)&&((a4==1)&&((!(a18==1)&&(((a22==1)&&((input==2)&&!(a6==1)))&&(a27==1)))&&!(a15==1)))))&&!(a5==1))&&(a12==12)))){ + a18 = 1; + a4 = 0; + a3 = 5; + a27 = 0; + a5 = 1; + a12 = 9; + return 26; + } else if(((a15==1)&&((a0==1)&&(((a20==1)&&((((a5==1)&&((a6==1)&&((((a3==5)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4))))&&(input==4))))&&(a12==9))&&!(a4==1)))&&!(a27==1))))){ + a12 = 8; + a18 = 1; + a27 = 1; + a22 = 1; + a4 = 1; + a3 = 4; + return -1; + } return calculate_output74(input); + } + + int calculate_output74(int input) { + if(((!(a15==1)&&(!(a5==1)&&((a12==11)&&((((a0==1)&&(((a27==1)&&((a6==1)&&((a3==5)&&(input==1))))&&!(a18==1)))&&(a4==1))&&(a22==1)))))&&(a20==1))){ + a5 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if(((((!(a4==1)&&((((a22==1)&&((a12==11)&&((a20==1)&&(!(a6==1)&&((a3==7)&&(input==3))))))&&!(a0==1))&&(a5==1)))&&!(a15==1))&&(a18==1))&&!(a27==1))){ + a22 = 0; + a4 = 1; + a15 = 1; + a3 = 6; + a0 = 1; + a12 = 8; + a27 = 1; + return -1; + } else if((!(a6==1)&&((!(a4==1)&&((a20==1)&&(((!(a27==1)&&(((a5==1)&&((input==4)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a15==1)))&&(a12==9))&&!(a0==1))))&&(a3==4)))){ + if((a27==1)){ + a5 = 0; + a22 = 1; + a6 = 1; + a0 = 1; + a18 = 0; + a15 = 1; + a12 = 12; + }else{ + a15 = 1; + a6 = 1; + a0 = 1; + a3 = 6; + a18 = 1; + a5 = 0; + a22 = 1; + } + return -1; + } else if((!(a5==1)&&(((a20==1)&&(((a27==1)&&(((a6==1)&&((a12==9)&&((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==4))))&&!(a4==1)))&&(a15==1)))&&(a0==1)))){ + if((a12==12)){ + a18 = 0; + a12 = 12; + a15 = 0; + a22 = 0; + a3 = 6; + a6 = 0; + a27 = 0; + }else{ + a6 = 0; + a27 = 0; + a18 = 0; + a12 = 8; + a4 = 1; + a3 = 6; + a22 = 1; + } + return 24; + } else if((((((a22==1)&&((a12==9)&&((a20==1)&&(((a5==1)&&(!(a18==1)&&((a27==1)&&((input==1)&&(a15==1)))))&&(a0==1)))))&&!(a4==1))&&(a3==5))&&(a6==1))){ + a12 = 12; + a22 = 0; + a15 = 0; + a6 = 0; + a18 = 1; + a3 = 8; + return 26; + } else if(((a20==1)&&(!(a27==1)&&((a6==1)&&((a0==1)&&(((!(a5==1)&&((a12==11)&&((a3==5)&&((input==4)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))))&&!(a4==1))&&!(a15==1))))))){ + a18 = 1; + a12 = 8; + a4 = 1; + a27 = 1; + a22 = 1; + a5 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if((((a6==1)&&(!(a5==1)&&(((((((a15==1)&&((a20==1)&&((input==5)&&(a27==1))))&&!(a0==1))&&!(a4==1))&&(a18==1))&&(a12==12))&&!(a22==1))))&&(a3==7))){ + if((a4==1)){ + a4 = 1; + a22 = 1; + a12 = 10; + a3 = 5; + a0 = 1; + }else{ + a15 = 0; + a12 = 11; + a18 = 0; + a3 = 4; + } + return 21; + } else if(((!(a22==1)&&(((a20==1)&&(((!(a18==1)&&((!(a4==1)&&((a6==1)&&((a12==9)&&(input==4))))&&!(a0==1)))&&(a3==7))&&!(a15==1)))&&(a5==1)))&&!(a27==1))){ + a4 = 1; + a0 = 1; + a3 = 6; + a12 = 8; + a27 = 1; + a15 = 1; + return 21; + } else if((((!(a5==1)&&((a20==1)&&(!(a6==1)&&((a12==8)&&((a3==6)&&((((a4==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a22==1))&&(a27==1)))))))&&(a0==1))&&!(a15==1))){ + a22 = 0; + a6 = 1; + a18 = 0; + a12 = 10; + a0 = 0; + return 26; + } else if(((((((!(a27==1)&&(((a12==10)&&((!(a4==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a20==1)))&&!(a15==1)))&&(a5==1))&&(a3==5))&&!(a22==1))&&!(a6==1))&&!(a0==1))){ + a12 = 8; + a18 = 1; + a27 = 1; + a3 = 4; + a15 = 1; + a4 = 1; + return 26; + } else if((!(a15==1)&&((a12==11)&&(!(a0==1)&&((a20==1)&&(((a3==5)&&((((a5==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==5)))&&!(a27==1))&&(a4==1)))&&!(a6==1))))))){ + if((a12==9)){ + a27 = 1; + a6 = 1; + a18 = 0; + a22 = 0; + a12 = 8; + a4 = 0; + }else{ + a6 = 1; + a18 = 0; + a3 = 8; + a5 = 0; + a22 = 0; + a4 = 0; + } + return 26; + } else if(((a0==1)&&((a3==7)&&(!(a5==1)&&((((a27==1)&&(((a20==1)&&((a12==10)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==3))))&&(a4==1)))&&(a15==1))&&!(a6==1)))))){ + a22 = 0; + a3 = 4; + a18 = 0; + a6 = 1; + return -1; + } else if(((a27==1)&&(!(a6==1)&&(!(a4==1)&&((!(a0==1)&&((((((((a18==1)&&(a22==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1)))))&&(input==4))&&!(a15==1))&&(a12==9))&&(a20==1)))&&(a5==1)))))){ + a12 = 10; + a15 = 1; + a18 = 1; + a3 = 5; + a5 = 0; + a22 = 1; + a0 = 1; + return -1; + } else if((!(a6==1)&&((a4==1)&&((a20==1)&&(!(a5==1)&&((a12==10)&&(!(a0==1)&&(((a15==1)&&((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==2))&&(a3==8)))&&!(a27==1))))))))){ + a12 = 9; + a3 = 6; + a22 = 0; + a0 = 1; + a18 = 0; + return -1; + } else if((!(a0==1)&&((a20==1)&&(((((((((((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==6))&&(a6==1))&&(a5==1))&&(a4==1))&&(a27==1))&&(a12==9))&&!(a15==1))))){ + a22 = 1; + a3 = 4; + a12 = 8; + a15 = 1; + a18 = 1; + a0 = 1; + return -1; + } else if(((!(a15==1)&&((a12==10)&&(!(a5==1)&&((a3==5)&&(((a27==1)&&(((a4==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==1)))&&(a20==1)))&&!(a0==1))))))&&!(a6==1))){ + a15 = 1; + a12 = 8; + a6 = 1; + a5 = 1; + a18 = 1; + a3 = 4; + a0 = 1; + a22 = 1; + return -1; + } else if(((a15==1)&&((a3==6)&&((a5==1)&&(((((a4==1)&&((a12==12)&&(((((a18==1)||!(a18==1))&&(input==6))&&(a20==1))&&(a22==1))))&&(a0==1))&&!(a6==1))&&!(a27==1)))))){ + a3 = 8; + a22 = 0; + a18 = 1; + a27 = 1; + a6 = 1; + a15 = 0; + a12 = 10; + return 21; + } else if(((a27==1)&&((a5==1)&&(((a12==9)&&(!(a4==1)&&(!(a6==1)&&((a20==1)&&(((input==3)&&(((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7))))&&(a15==1))))))&&!(a0==1))))){ + a3 = 8; + a0 = 1; + a4 = 1; + a12 = 11; + a6 = 1; + a27 = 0; + a18 = 1; + a22 = 0; + return -1; + } else if(((((a18==1)&&((a6==1)&&((a4==1)&&((((a3==6)&&((a15==1)&&((!(a27==1)&&(input==1))&&(a5==1))))&&!(a0==1))&&(a22==1)))))&&(a20==1))&&(a12==8))){ + if((a22==1)){ + a0 = 1; + a27 = 1; + a3 = 7; + a4 = 0; + }else{ + a3 = 4; + a22 = 0; + a6 = 0; + a0 = 1; + a27 = 1; + a18 = 0; + } + return 21; + } else if(((((a5==1)&&(((((!(a27==1)&&((input==2)&&(((!(a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8))))))&&(a15==1))&&(a12==8))&&!(a6==1))&&(a20==1)))&&!(a0==1))&&(a4==1))){ + a18 = 0; + a0 = 1; + a15 = 0; + a22 = 0; + a5 = 0; + a3 = 8; + a12 = 9; + return 26; + } else if(((a12==11)&&(!(a5==1)&&((a15==1)&&((!(a27==1)&&((a3==5)&&(!(a6==1)&&((((a0==1)&&((input==5)&&(a18==1)))&&(a20==1))&&(a4==1)))))&&!(a22==1)))))){ + if((a4==1)){ + a12 = 9; + a0 = 0; + a3 = 6; + a27 = 1; + a15 = 0; + }else{ + a3 = 4; + a22 = 1; + a27 = 1; + a4 = 0; + a5 = 1; + } + return 21; + } else if((((a3==8)&&((a18==1)&&(!(a15==1)&&(((a20==1)&&((a12==11)&&(!(a22==1)&&((a6==1)&&((a5==1)&&((input==1)&&(a27==1)))))))&&!(a4==1)))))&&(a0==1))){ + a12 = 10; + a18 = 0; + a3 = 4; + a15 = 1; + return -1; + } else if(((a27==1)&&((!(a6==1)&&((a12==12)&&(!(a5==1)&&((!(a4==1)&&((a20==1)&&(((input==3)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a0==1))))&&(a3==6)))))&&(a15==1)))){ + a3 = 4; + a12 = 8; + a18 = 0; + a4 = 1; + a27 = 0; + a22 = 0; + a5 = 1; + return 26; + } else if((((((a6==1)&&((a3==5)&&(((a0==1)&&((((!(a5==1)&&(input==3))&&(a20==1))&&(a12==9))&&(a18==1)))&&!(a22==1))))&&(a4==1))&&!(a27==1))&&!(a15==1))){ + a3 = 4; + a6 = 0; + a4 = 0; + a27 = 1; + a12 = 10; + a15 = 1; + return 26; + } else if(((((a3==6)&&((a15==1)&&(((a0==1)&&(((a12==9)&&((a5==1)&&((a20==1)&&((input==4)&&!(a4==1)))))&&(a22==1)))&&(a6==1))))&&!(a18==1))&&(a27==1))){ + a0 = 0; + a3 = 8; + a12 = 10; + a6 = 0; + a5 = 0; + a18 = 1; + return 26; + } else if(((a20==1)&&(!(a4==1)&&((a27==1)&&((!(a6==1)&&(((((((input==4)&&((a18==1)||!(a18==1)))&&!(a15==1))&&!(a22==1))&&(a12==10))&&!(a5==1))&&(a3==8)))&&!(a0==1)))))){ + a15 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + a5 = 1; + a0 = 1; + a4 = 1; + a22 = 1; + a6 = 1; + return -1; + } else if((((!(a0==1)&&(((!(a18==1)&&(((((a3==8)&&((input==1)&&(a15==1)))&&(a12==8))&&(a27==1))&&(a5==1)))&&!(a22==1))&&(a4==1)))&&!(a6==1))&&(a20==1))){ + a22 = 1; + a18 = 1; + a6 = 1; + a3 = 4; + a0 = 1; + return -1; + } else if((((a15==1)&&(!(a0==1)&&(((a20==1)&&(((((!(a6==1)&&((a22==1)&&(input==4)))&&(a3==5))&&(a27==1))&&(a5==1))&&(a4==1)))&&(a18==1))))&&(a12==8))){ + a5 = 0; + a4 = 0; + a3 = 4; + a12 = 9; + return 21; + } else if((((!(a6==1)&&((a12==10)&&(!(a4==1)&&((a27==1)&&((a20==1)&&(((input==5)&&((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6)))||((!(a18==1)&&(a22==1))&&(a3==6))))&&(a15==1)))))))&&(a5==1))&&!(a0==1))){ + a12 = 9; + a18 = 1; + a27 = 0; + a6 = 1; + a22 = 0; + a0 = 1; + a4 = 1; + a3 = 5; + return 21; + } else if(((a15==1)&&(((a3==8)&&(((a27==1)&&(((((((input==2)&&!(a6==1))&&!(a22==1))&&(a5==1))&&(a4==1))&&(a20==1))&&(a12==10)))&&(a18==1)))&&!(a0==1)))){ + a12 = 12; + a3 = 7; + a4 = 0; + a18 = 0; + a6 = 1; + return -1; + } else if(((a12==11)&&((((a15==1)&&((a3==5)&&((!(a6==1)&&((((a0==1)&&((input==2)&&((a18==1)||!(a18==1))))&&(a20==1))&&!(a5==1)))&&(a27==1))))&&!(a22==1))&&!(a4==1)))){ + if((a18==1)){ + a6 = 1; + a12 = 9; + a0 = 0; + a5 = 1; + a18 = 0; + }else{ + a5 = 1; + a3 = 7; + a15 = 0; + a4 = 1; + a12 = 10; + a18 = 0; + } + return 21; + } else if((!(a15==1)&&((a12==9)&&((!(a27==1)&&((!(a0==1)&&((a4==1)&&(!(a6==1)&&((input==1)&&((((a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a18==1)&&!(a22==1)))))))))&&!(a5==1)))&&(a20==1))))){ + a5 = 1; + a22 = 0; + a12 = 8; + a6 = 1; + a0 = 1; + a3 = 5; + a4 = 0; + a18 = 0; + a15 = 1; + return 26; + } else if((((((((a0==1)&&((((((a3==7)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7))))&&(input==6))&&(a4==1))&&!(a15==1)))&&(a20==1))&&(a27==1))&&(a6==1))&&(a12==9))&&!(a5==1))){ + a12 = 8; + a22 = 1; + a5 = 1; + a3 = 4; + a18 = 1; + a15 = 1; + return -1; + } else if(((a20==1)&&((a15==1)&&(((a5==1)&&((a4==1)&&((((((((a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==4))))&&(input==2))&&(a12==11))&&!(a27==1))&&(a0==1))))&&(a6==1))))){ + a27 = 1; + a18 = 0; + a22 = 0; + a15 = 0; + a3 = 4; + a5 = 0; + a6 = 0; + a12 = 10; + return -1; + } else if((((a6==1)&&(((!(a5==1)&&((a4==1)&&(!(a22==1)&&(((((input==3)&&(a0==1))&&(a20==1))&&(a12==8))&&!(a27==1)))))&&!(a18==1))&&(a3==7)))&&!(a15==1))){ + a22 = 1; + a12 = 10; + a18 = 1; + a3 = 6; + a0 = 0; + a4 = 0; + a27 = 1; + return -1; + } else if(((a27==1)&&(((a3==4)&&((a12==9)&&((((((a0==1)&&((input==6)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))))&&(a6==1))&&(a4==1))&&(a20==1))&&!(a5==1))))&&!(a15==1)))){ + a18 = 0; + a5 = 1; + a3 = 5; + a12 = 12; + a22 = 0; + return 21; + } else if(((a20==1)&&(!(a6==1)&&((a15==1)&&((a18==1)&&((((a12==8)&&(!(a22==1)&&(((a3==8)&&((a4==1)&&(input==4)))&&(a5==1))))&&(a27==1))&&!(a0==1))))))){ + a6 = 1; + a15 = 0; + a0 = 1; + a12 = 11; + a3 = 6; + return -1; + } else if(((a3==7)&&((!(a18==1)&&(((((!(a0==1)&&((((a4==1)&&(input==4))&&(a20==1))&&!(a5==1)))&&!(a6==1))&&(a15==1))&&(a12==8))&&(a27==1)))&&!(a22==1)))){ + a4 = 0; + a18 = 1; + a0 = 1; + a15 = 0; + a3 = 8; + a22 = 1; + a12 = 9; + return -1; + } else if(((!(a4==1)&&(((((a3==6)&&((!(a27==1)&&((a12==9)&&((!(a0==1)&&(input==4))&&!(a18==1))))&&!(a15==1)))&&(a20==1))&&!(a6==1))&&(a22==1)))&&(a5==1))){ + a15 = 1; + a6 = 1; + a27 = 1; + a12 = 8; + a0 = 1; + a22 = 0; + a4 = 1; + a3 = 4; + return -1; + } else if(((((a27==1)&&((a15==1)&&((a20==1)&&((!(a5==1)&&((a6==1)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==2))))&&(a12==8)))))&&(a0==1))&&(a4==1))){ + if((a12==9)){ + a0 = 0; + a12 = 9; + a22 = 1; + a15 = 0; + a3 = 8; + a6 = 0; + a18 = 1; + a4 = 0; + }else{ + a6 = 0; + a18 = 0; + a3 = 4; + a15 = 0; + a12 = 9; + a22 = 0; + } + return 26; + } else if((((a18==1)&&(!(a4==1)&&((((((!(a22==1)&&(((input==4)&&(a3==6))&&!(a6==1)))&&(a15==1))&&(a5==1))&&(a12==8))&&(a20==1))&&!(a0==1))))&&(a27==1))){ + a4 = 1; + a3 = 8; + a22 = 1; + a6 = 1; + a0 = 1; + a5 = 0; + return 26; + } else if(((((((((((((a3==7)&&(!(a18==1)&&(a22==1)))||(((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a22==1)&&(a18==1)))))&&(input==3))&&(a20==1))&&!(a4==1))&&(a12==12))&&(a15==1))&&!(a27==1))&&(a6==1))&&(a5==1))&&(a0==1))){ + a22 = 1; + a4 = 1; + a18 = 1; + a27 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((a5==1)&&((a18==1)&&(((((((((a3==8)&&((input==4)&&!(a4==1)))&&!(a27==1))&&(a6==1))&&(a0==1))&&(a20==1))&&!(a15==1))&&(a22==1))&&(a12==8))))){ + a18 = 0; + a4 = 1; + a3 = 7; + a12 = 11; + return 26; + } else if((!(a4==1)&&(((((((((a6==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2)))&&(a27==1))&&(a5==1))&&!(a15==1))&&(a20==1))&&!(a0==1))&&(a12==12))&&(a3==7)))){ + if((a5==1)){ + a0 = 1; + a6 = 0; + a12 = 8; + a22 = 1; + a18 = 0; + a3 = 5; + a4 = 1; + a15 = 1; + }else{ + a18 = 1; + a22 = 1; + a15 = 1; + a12 = 8; + a0 = 1; + a3 = 5; + a4 = 1; + } + return -1; + } else if(((a20==1)&&(((!(a0==1)&&(((!(a4==1)&&(!(a18==1)&&(((a5==1)&&(!(a15==1)&&(input==2)))&&(a3==7))))&&(a12==10))&&!(a27==1)))&&!(a6==1))&&(a22==1)))){ + a0 = 1; + a12 = 8; + a15 = 1; + a27 = 1; + a4 = 1; + return 24; + } else if(((a20==1)&&((((a12==8)&&(!(a15==1)&&((a4==1)&&(((a6==1)&&((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==1))&&!(a0==1)))&&(a5==1)))))&&(a3==5))&&!(a27==1)))){ + a22 = 0; + a3 = 6; + a18 = 0; + a27 = 1; + a15 = 1; + a0 = 1; + return 26; + } else if((((((((a15==1)&&((((input==6)&&(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8))))&&!(a0==1))&&(a20==1)))&&!(a5==1))&&!(a4==1))&&(a27==1))&&(a6==1))&&(a12==9))){ + a3 = 4; + a12 = 10; + a22 = 1; + a6 = 0; + a18 = 0; + a15 = 0; + a0 = 1; + return 26; + } else if((((a20==1)&&((a22==1)&&(((a27==1)&&((a0==1)&&(!(a15==1)&&(((a12==8)&&((a3==5)&&((input==3)&&((a18==1)||!(a18==1)))))&&!(a5==1)))))&&(a4==1))))&&(a6==1))){ + a15 = 1; + a3 = 4; + a5 = 1; + a18 = 1; + return -1; + } else if((((!(a22==1)&&(!(a27==1)&&((a20==1)&&(((a3==5)&&(((a12==8)&&(!(a15==1)&&((input==1)&&(a6==1))))&&!(a18==1)))&&!(a5==1)))))&&(a4==1))&&!(a0==1))){ + if((a5==1)){ + a4 = 0; + a27 = 1; + a5 = 1; + a15 = 1; + a18 = 1; + a0 = 1; + }else{ + a0 = 1; + a18 = 1; + a27 = 1; + a5 = 1; + a22 = 1; + a3 = 4; + } + return 21; + } else if(((!(a0==1)&&((a6==1)&&((a20==1)&&((!(a15==1)&&((a27==1)&&((((((a22==1)&&(a18==1))&&(a3==5))||(((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1)))))&&(input==6))&&(a5==1))))&&!(a4==1)))))&&(a12==11))){ + a3 = 8; + a18 = 0; + a0 = 1; + a15 = 1; + a4 = 1; + a22 = 1; + a12 = 10; + a5 = 0; + return -1; + } else if((!(a6==1)&&((a4==1)&&((a12==11)&&((!(a27==1)&&(!(a22==1)&&((a3==5)&&((a20==1)&&(!(a15==1)&&(!(a5==1)&&(((a18==1)||!(a18==1))&&(input==4))))))))&&!(a0==1)))))){ + a12 = 12; + a5 = 1; + a18 = 1; + a4 = 0; + a0 = 1; + a22 = 1; + a3 = 6; + return 26; + } else if((((!(a27==1)&&((((!(a4==1)&&(((((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==2))&&!(a0==1)))&&!(a5==1))&&(a20==1))&&!(a6==1)))&&(a12==9))&&!(a15==1))){ + if((a5==1)){ + a15 = 1; + a22 = 1; + a18 = 0; + a5 = 1; + a3 = 7; + }else{ + a4 = 1; + a5 = 1; + a18 = 0; + a15 = 1; + a3 = 6; + a0 = 1; + a22 = 1; + a12 = 8; + a27 = 1; + } + return 21; + } else if(((a27==1)&&((((((a12==11)&&(!(a4==1)&&((!(a18==1)&&((a6==1)&&((a5==1)&&(input==6))))&&!(a0==1))))&&!(a15==1))&&(a20==1))&&(a3==4))&&(a22==1)))){ + a18 = 1; + a0 = 1; + a12 = 8; + a27 = 0; + a3 = 5; + a15 = 1; + return -1; + } else if(((a12==10)&&(!(a27==1)&&((a20==1)&&((a3==6)&&(((a4==1)&&(!(a6==1)&&((a18==1)&&(((a0==1)&&((input==5)&&!(a15==1)))&&!(a22==1)))))&&(a5==1))))))){ + a15 = 1; + a4 = 0; + a27 = 1; + a3 = 5; + a5 = 0; + a22 = 1; + return 26; + } else if(((!(a4==1)&&((((a12==10)&&(((a20==1)&&(!(a0==1)&&((!(a18==1)&&((a27==1)&&(input==4)))&&!(a5==1))))&&!(a6==1)))&&!(a15==1))&&(a22==1)))&&(a3==8))){ + a0 = 1; + a5 = 1; + a4 = 1; + a22 = 0; + a12 = 9; + a15 = 1; + a27 = 0; + a3 = 7; + return 21; + } else if((!(a6==1)&&((a20==1)&&(((a0==1)&&(((a4==1)&&((((a18==1)&&(((a3==8)&&(input==2))&&!(a15==1)))&&(a27==1))&&(a5==1)))&&(a12==11)))&&!(a22==1))))){ + if((a27==1)){ + a0 = 0; + a12 = 8; + a4 = 0; + a6 = 1; + a3 = 5; + a15 = 1; + }else{ + a3 = 4; + a5 = 0; + a4 = 0; + } + return 21; + } else if(((a27==1)&&((((((((a6==1)&&(((!(a22==1)&&(input==3))&&(a5==1))&&(a20==1)))&&!(a0==1))&&(a4==1))&&(a12==9))&&!(a18==1))&&(a15==1))&&(a3==8)))){ + a0 = 1; + a3 = 7; + a27 = 0; + return 21; + } else if((!(a6==1)&&((a0==1)&&((a15==1)&&((a12==8)&&((!(a5==1)&&(((a4==1)&&(((((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==2)))&&(a20==1)))&&!(a27==1))))))){ + a12 = 11; + a4 = 0; + a18 = 0; + a22 = 0; + a15 = 0; + a3 = 8; + return 26; + } else if(((a12==12)&&((a20==1)&&(((a4==1)&&((a0==1)&&(((a3==4)&&(!(a5==1)&&(((input==5)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&!(a6==1))))&&(a27==1))))&&!(a15==1))))){ + a12 = 10; + a27 = 0; + a3 = 5; + a18 = 1; + a4 = 0; + a5 = 1; + a22 = 1; + return 26; + } else if(((a12==12)&&(((((a4==1)&&((a20==1)&&((a5==1)&&(!(a15==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==5)))&&(input==1))))))&&(a27==1))&&(a0==1))&&(a6==1)))){ + a22 = 0; + a5 = 0; + a12 = 11; + a3 = 8; + a18 = 0; + return -1; + } else if((((a12==12)&&((((((a0==1)&&((a3==8)&&(!(a4==1)&&((a20==1)&&((input==2)&&((a18==1)||!(a18==1)))))))&&(a5==1))&&(a6==1))&&(a27==1))&&!(a22==1)))&&!(a15==1))){ + a4 = 1; + a12 = 10; + a18 = 1; + a3 = 6; + a6 = 0; + return -1; + } else if(((((a4==1)&&(((!(a5==1)&&(((a12==11)&&(!(a22==1)&&((a3==7)&&((a15==1)&&(input==4)))))&&(a0==1)))&&(a18==1))&&(a20==1)))&&(a6==1))&&(a27==1))){ + a22 = 1; + a12 = 8; + a5 = 1; + a3 = 4; + return -1; + } else if(((a12==11)&&(!(a5==1)&&((a15==1)&&((a20==1)&&((a0==1)&&((((a27==1)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==6)))&&(a4==1))&&(a6==1)))))))){ + if((a20==1)){ + a5 = 1; + a0 = 0; + a3 = 4; + a18 = 1; + a12 = 9; + a22 = 0; + }else{ + a5 = 1; + a3 = 8; + a18 = 0; + a12 = 10; + a22 = 0; + a6 = 0; + } + return -1; + } else if(((a15==1)&&(((!(a4==1)&&((((a20==1)&&(((a5==1)&&((input==2)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&(a3==5)))&&!(a0==1))&&(a12==12)))&&(a6==1))&&(a27==1)))){ + a18 = 0; + a4 = 1; + a22 = 0; + a3 = 8; + a27 = 0; + a0 = 1; + a5 = 0; + a12 = 10; + return -1; + } else if((((a20==1)&&(!(a15==1)&&(((!(a0==1)&&((((input==2)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))||((!(a18==1)&&(a22==1))&&(a3==8))))&&!(a4==1))&&!(a27==1)))&&(a6==1))&&(a5==1))))&&(a12==11))){ + if((a22==1)){ + a0 = 1; + a3 = 7; + a27 = 1; + a12 = 8; + a15 = 1; + a4 = 1; + a6 = 0; + a22 = 1; + a18 = 0; + }else{ + a4 = 1; + a22 = 0; + a15 = 1; + a18 = 0; + a12 = 9; + a0 = 1; + a3 = 4; + } + return 24; + } else if((!(a0==1)&&(((a4==1)&&((!(a27==1)&&((a15==1)&&((((((input==6)&&(a18==1))&&(a20==1))&&(a5==1))&&!(a22==1))&&(a3==7))))&&(a6==1)))&&(a12==10)))){ + if((a20==1)){ + a15 = 0; + a22 = 1; + a12 = 9; + a5 = 0; + a3 = 6; + }else{ + a0 = 1; + a3 = 8; + a4 = 0; + a22 = 1; + a12 = 8; + a27 = 1; + } + return -1; + } else if(((a15==1)&&((a4==1)&&((((((((a22==1)&&((a5==1)&&((input==1)&&(a27==1))))&&(a6==1))&&(a3==8))&&(a20==1))&&!(a18==1))&&!(a0==1))&&(a12==12))))){ + a3 = 4; + a12 = 11; + a15 = 0; + a22 = 0; + a6 = 0; + a0 = 1; + a5 = 0; + return -1; + } else if(((a12==11)&&(((((((!(a0==1)&&((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==1))&&(a5==1)))&&(a3==6))&&!(a27==1))&&!(a6==1))&&(a20==1))&&(a4==1))&&(a15==1)))){ + a0 = 1; + a5 = 0; + a18 = 1; + a22 = 1; + a12 = 12; + a6 = 1; + a3 = 7; + return 24; + } else if((((!(a6==1)&&((((!(a5==1)&&((a20==1)&&((a3==5)&&((a18==1)&&((input==1)&&!(a0==1))))))&&(a12==12))&&(a4==1))&&!(a22==1)))&&(a15==1))&&(a27==1))){ + a12 = 8; + a5 = 1; + a0 = 1; + a3 = 6; + a22 = 1; + a6 = 1; + return 21; + } else if((((((a27==1)&&(((a20==1)&&(!(a0==1)&&(((((((a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1)))))||(!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1)))))&&(input==3))))&&(a12==9)))&&!(a5==1))&&(a15==1))&&!(a4==1))){ + a22 = 0; + a3 = 4; + a0 = 1; + a18 = 0; + a4 = 1; + a6 = 0; + a5 = 1; + a12 = 10; + return 26; + } else if(((a12==9)&&((a6==1)&&((!(a5==1)&&(((!(a4==1)&&((a20==1)&&((a27==1)&&((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))&&(a3==7))&&!(a15==1)))&&(a0==1))))){ + a18 = 1; + a12 = 8; + a3 = 4; + a4 = 1; + a22 = 1; + a5 = 1; + a15 = 1; + return -1; + } else if((!(a4==1)&&(((a22==1)&&(((!(a5==1)&&(((a3==5)&&(((a27==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a20==1)))&&(a15==1)))&&!(a6==1))&&!(a0==1)))&&(a12==9)))){ + a6 = 1; + a0 = 1; + a18 = 0; + a5 = 1; + a12 = 10; + a15 = 0; + a4 = 1; + a3 = 8; + return -1; + } else if((((a20==1)&&((a5==1)&&((a12==10)&&((a3==7)&&(((a0==1)&&(!(a6==1)&&(((input==2)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a27==1))))&&(a15==1))))))&&!(a4==1))){ + a3 = 4; + a18 = 0; + a22 = 1; + a4 = 1; + a5 = 0; + return 26; + } else if((((!(a27==1)&&((a20==1)&&(!(a0==1)&&((a4==1)&&(!(a15==1)&&((a12==8)&&((a5==1)&&((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))))))&&!(a6==1))&&(a3==7))){ + if((a20==1)){ + a6 = 1; + a18 = 1; + a4 = 0; + a3 = 6; + a22 = 0; + }else{ + a0 = 1; + a18 = 1; + a27 = 1; + a6 = 1; + a12 = 9; + a22 = 1; + a3 = 8; + } + return 26; + } else if(((!(a6==1)&&((((((a22==1)&&((((a12==10)&&(!(a18==1)&&(input==5)))&&!(a5==1))&&(a27==1)))&&(a15==1))&&(a0==1))&&(a3==5))&&(a20==1)))&&!(a4==1))){ + a6 = 1; + a5 = 1; + a3 = 8; + a15 = 0; + return -1; + } else if((((!(a6==1)&&((((a12==10)&&(!(a15==1)&&(((a20==1)&&((!(a22==1)&&(input==2))&&(a5==1)))&&(a0==1))))&&!(a4==1))&&(a3==5)))&&!(a27==1))&&(a18==1))){ + a15 = 1; + a0 = 0; + a18 = 0; + a12 = 9; + a27 = 1; + a6 = 1; + a5 = 0; + a4 = 1; + return 21; + } else if(((a6==1)&&(((a12==11)&&(((a15==1)&&(!(a0==1)&&((((a5==1)&&((a4==1)&&((input==4)&&(a3==8))))&&!(a18==1))&&(a22==1))))&&(a20==1)))&&(a27==1)))){ + a12 = 8; + a3 = 4; + a18 = 1; + a0 = 1; + return -1; + } else if(((((a0==1)&&((((a20==1)&&((((input==1)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1)))))&&(a5==1))&&(a27==1)))&&!(a15==1))&&(a6==1)))&&(a4==1))&&(a12==11))){ + if((a4==1)){ + a6 = 0; + a12 = 9; + a3 = 8; + a18 = 0; + a0 = 0; + a22 = 0; + a15 = 1; + }else{ + a4 = 0; + a27 = 0; + a18 = 1; + a12 = 10; + a22 = 1; + a3 = 7; + a6 = 0; + a5 = 0; + } + return 26; + } else if((((a12==8)&&(!(a22==1)&&(((!(a18==1)&&(!(a5==1)&&((a3==5)&&((((input==2)&&!(a15==1))&&!(a0==1))&&(a4==1)))))&&(a6==1))&&(a20==1))))&&!(a27==1))){ + a15 = 1; + a0 = 1; + a27 = 1; + a3 = 4; + a4 = 0; + a5 = 1; + a22 = 1; + return 21; + } else if(((a27==1)&&(!(a5==1)&&(((((((!(a6==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==6)))&&(a4==1))&&!(a15==1))&&(a20==1))&&(a12==12))&&(a3==4))&&(a0==1))))){ + a5 = 1; + a12 = 9; + a18 = 0; + a4 = 0; + a27 = 0; + a22 = 0; + a3 = 5; + return 26; + } else if(((a20==1)&&(((a12==10)&&((a5==1)&&((a18==1)&&((!(a6==1)&&(((!(a15==1)&&(!(a0==1)&&(input==4)))&&(a3==8))&&(a4==1)))&&(a27==1)))))&&(a22==1)))){ + a6 = 1; + a15 = 1; + a3 = 4; + a12 = 8; + a0 = 1; + return -1; + } else if(((!(a18==1)&&((a12==9)&&((((a15==1)&&((((a6==1)&&(!(a27==1)&&((input==4)&&(a22==1))))&&(a3==4))&&!(a0==1)))&&!(a4==1))&&(a20==1))))&&(a5==1))){ + a3 = 5; + a12 = 8; + a0 = 1; + a18 = 1; + a27 = 1; + return -1; + } else if((((a0==1)&&((!(a5==1)&&((a3==6)&&((a4==1)&&((a20==1)&&(((a12==9)&&((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==5)))&&(a15==1))))))&&!(a27==1)))&&(a6==1))){ + a4 = 0; + a12 = 8; + a22 = 0; + a3 = 7; + a18 = 1; + return 24; + } else if(((a27==1)&&((!(a15==1)&&((a12==10)&&((((a20==1)&&(((input==6)&&((((a22==1)&&(a18==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1))))))&&!(a5==1)))&&!(a4==1))&&(a6==1))))&&(a0==1)))){ + a12 = 8; + a5 = 1; + a3 = 4; + a18 = 1; + a4 = 1; + a15 = 1; + a22 = 1; + return -1; + } else if((!(a6==1)&&(!(a15==1)&&(!(a4==1)&&((((((a5==1)&&(((input==4)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&(a12==10)))&&(a20==1))&&!(a0==1))&&(a3==6))&&!(a27==1)))))){ + a12 = 11; + a0 = 1; + a22 = 1; + a15 = 1; + a18 = 1; + a4 = 1; + return 26; + } else if((((!(a0==1)&&(((((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2))&&(a20==1))&&(a3==8))&&!(a15==1))&&(a12==9))&&(a6==1))&&(a5==1)))&&(a4==1))&&(a27==1))){ + a3 = 5; + a18 = 0; + a22 = 1; + a15 = 1; + a12 = 11; + a0 = 1; + return -1; + } else if(((a6==1)&&(((((((a3==8)&&((a20==1)&&(!(a27==1)&&(!(a5==1)&&((input==3)&&!(a18==1))))))&&(a22==1))&&(a4==1))&&!(a0==1))&&(a12==10))&&!(a15==1)))){ + a6 = 0; + a27 = 1; + a22 = 0; + a3 = 5; + a12 = 11; + a18 = 1; + return -1; + } else if(((!(a4==1)&&((a20==1)&&(!(a27==1)&&((((!(a15==1)&&((a3==4)&&(!(a0==1)&&((input==6)&&(a18==1)))))&&(a6==1))&&(a12==8))&&!(a22==1)))))&&(a5==1))){ + a6 = 0; + a18 = 0; + a5 = 0; + a0 = 1; + a12 = 10; + return 26; + } else if((!(a6==1)&&((((a5==1)&&((a12==10)&&(((a0==1)&&(((input==1)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1)))))&&!(a15==1)))&&!(a4==1))))&&(a20==1))&&(a27==1)))){ + a18 = 0; + a15 = 1; + a6 = 1; + a4 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if((((a20==1)&&(!(a4==1)&&(!(a27==1)&&((a5==1)&&((a12==8)&&(!(a6==1)&&((a0==1)&&((input==2)&&(((a3==7)&&((a22==1)&&(a18==1)))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==6))))))))))))&&!(a15==1))){ + a12 = 9; + a22 = 1; + a0 = 0; + a5 = 0; + a4 = 1; + a3 = 7; + a15 = 1; + a18 = 0; + a27 = 1; + return 21; + } else if(((((a15==1)&&(((a20==1)&&((((((((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a18==1)&&!(a22==1))))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==5))&&!(a27==1))&&!(a0==1))&&(a6==1)))&&(a4==1)))&&!(a5==1))&&(a12==9))){ + a0 = 1; + a6 = 0; + a22 = 0; + a18 = 0; + a3 = 5; + return -1; + } else if((((!(a18==1)&&(((((((a4==1)&&((!(a22==1)&&(input==2))&&(a5==1)))&&!(a15==1))&&(a12==8))&&!(a6==1))&&(a27==1))&&(a0==1)))&&(a3==8))&&(a20==1))){ + a3 = 4; + a12 = 9; + a22 = 1; + a15 = 1; + a18 = 1; + return 26; + } else if(((a3==5)&&((a15==1)&&(((a20==1)&&(!(a5==1)&&(!(a4==1)&&((a22==1)&&((a0==1)&&((a6==1)&&((a12==11)&&(!(a18==1)&&(input==2)))))))))&&(a27==1))))){ + a12 = 10; + a15 = 0; + a6 = 0; + a18 = 1; + return -1; + } else if(((!(a5==1)&&(((((!(a6==1)&&((a4==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==4))&&(a3==4))))&&(a27==1))&&(a20==1))&&(a12==11))&&!(a0==1)))&&!(a15==1))){ + a4 = 0; + a22 = 0; + a18 = 0; + a12 = 10; + a6 = 1; + a3 = 8; + a0 = 1; + return 26; + } else if(((((!(a0==1)&&((((a20==1)&&((a3==6)&&(((input==4)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&(a5==1))))&&(a12==9))&&(a15==1)))&&!(a6==1))&&!(a4==1))&&!(a27==1))){ + if((a6==1)){ + a3 = 5; + a22 = 1; + a12 = 8; + a27 = 1; + a18 = 1; + a4 = 1; + }else{ + a12 = 10; + a15 = 0; + a0 = 1; + a6 = 1; + a22 = 0; + a18 = 0; + } + return -1; + } else if((((((a3==5)&&((a18==1)&&((!(a6==1)&&(!(a27==1)&&((!(a15==1)&&((a5==1)&&(input==4)))&&(a20==1))))&&(a22==1))))&&!(a0==1))&&(a4==1))&&(a12==11))){ + a3 = 8; + a5 = 0; + a15 = 1; + a22 = 0; + a0 = 1; + a4 = 0; + a12 = 10; + return 26; + } else if(((a4==1)&&((((((a6==1)&&((a12==9)&&(!(a5==1)&&((a3==4)&&(!(a27==1)&&((a20==1)&&(input==6)))))))&&(a18==1))&&(a15==1))&&(a22==1))&&!(a0==1)))){ + a22 = 0; + a12 = 8; + a5 = 1; + a3 = 6; + a4 = 0; + a27 = 1; + a0 = 1; + return 21; + } else if(((a0==1)&&(!(a6==1)&&((a20==1)&&((a3==6)&&(!(a4==1)&&((a27==1)&&((a5==1)&&(((a12==8)&&((input==4)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))))&&(a15==1)))))))))){ + a22 = 1; + a4 = 1; + a3 = 4; + a18 = 0; + a15 = 0; + return 21; + } else if((((a6==1)&&((!(a4==1)&&(((!(a27==1)&&(!(a0==1)&&(((a22==1)&&((input==3)&&!(a18==1)))&&!(a15==1))))&&(a12==9))&&(a20==1)))&&(a3==6)))&&!(a5==1))){ + a3 = 7; + a12 = 11; + a0 = 1; + return -1; + } else if(((!(a0==1)&&(!(a22==1)&&((a6==1)&&((((((a12==11)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a27==1)))&&(a5==1))&&(a4==1))&&(a20==1))&&!(a15==1)))))&&(a3==4))){ + a12 = 10; + a22 = 1; + a0 = 1; + a6 = 0; + a3 = 7; + a18 = 1; + a4 = 0; + a5 = 0; + a15 = 1; + return 26; + } else if((!(a15==1)&&((a12==11)&&((a4==1)&&(((a27==1)&&(!(a0==1)&&(((input==2)&&(((((a3==8)&&(!(a22==1)&&(a18==1)))&&(a6==1))||(((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1)))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1))))))&&!(a5==1))))&&(a20==1)))))){ + a12 = 10; + a18 = 0; + a22 = 0; + a5 = 1; + a0 = 1; + a27 = 0; + a3 = 6; + a6 = 0; + return 26; + } else if(((!(a0==1)&&(!(a6==1)&&((a4==1)&&((a3==5)&&(!(a27==1)&&(!(a15==1)&&((a20==1)&&((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==4))&&(a12==10)))))))))&&(a5==1))){ + a6 = 1; + a5 = 0; + a18 = 0; + a12 = 8; + a22 = 0; + a27 = 1; + a3 = 6; + return 26; + } else if((((a3==7)&&(!(a6==1)&&((a22==1)&&((!(a4==1)&&((a15==1)&&((a27==1)&&((a12==12)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a20==1))))))&&!(a0==1)))))&&(a5==1))){ + a12 = 11; + a15 = 0; + a18 = 1; + a6 = 1; + a0 = 1; + a4 = 1; + a3 = 8; + return -1; + } else if((((a3==5)&&((((a6==1)&&(((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==4))&&(a12==9))&&(a27==1))&&(a20==1))&&(a5==1)))&&!(a0==1))&&!(a15==1)))&&!(a4==1))){ + a18 = 1; + a4 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + a15 = 1; + a0 = 1; + return -1; + } else if(((!(a0==1)&&((a12==11)&&(!(a27==1)&&(((a5==1)&&(!(a6==1)&&((a15==1)&&((!(a22==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a3==7)))))&&!(a4==1)))))&&(a20==1))){ + if((a3==5)){ + a18 = 0; + a22 = 1; + a12 = 8; + a3 = 8; + }else{ + a4 = 1; + a12 = 8; + a18 = 1; + a0 = 1; + a27 = 1; + } + return 24; + } else if(((a27==1)&&((!(a15==1)&&((a20==1)&&(((a6==1)&&(!(a22==1)&&(((((input==4)&&((a18==1)||!(a18==1)))&&(a0==1))&&(a5==1))&&(a3==4))))&&!(a4==1))))&&(a12==12)))){ + a27 = 0; + a18 = 1; + a3 = 7; + a22 = 1; + a4 = 1; + return 21; + } else if(((a3==4)&&(!(a5==1)&&((a6==1)&&((a0==1)&&(((a15==1)&&((a4==1)&&(((a18==1)&&(!(a22==1)&&((a20==1)&&(input==2))))&&(a12==9))))&&!(a27==1))))))){ + a3 = 7; + a18 = 0; + a5 = 1; + a27 = 1; + a15 = 0; + a6 = 0; + a22 = 1; + a12 = 10; + return -1; + } else if((!(a27==1)&&(((((a3==8)&&((!(a0==1)&&(((a12==10)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==2)))&&!(a4==1)))&&!(a15==1)))&&!(a6==1))&&(a20==1))&&(a5==1)))){ + if((a18==1)){ + a5 = 0; + a12 = 9; + a0 = 1; + a3 = 6; + a6 = 1; + a15 = 1; + a18 = 0; + a22 = 1; + }else{ + a12 = 11; + a0 = 1; + a18 = 0; + a6 = 1; + a27 = 1; + a22 = 1; + } + return 21; + } else if(((!(a5==1)&&(((a0==1)&&((!(a15==1)&&((a12==9)&&((!(a22==1)&&((a20==1)&&(((a18==1)||!(a18==1))&&(input==3))))&&(a3==8))))&&(a4==1)))&&(a27==1)))&&(a6==1))){ + if((a0==1)){ + a15 = 1; + a3 = 5; + a5 = 1; + a12 = 10; + a0 = 0; + a18 = 1; + }else{ + a18 = 0; + a12 = 10; + a15 = 1; + a22 = 1; + a3 = 6; + a4 = 0; + } + return 26; + } else if(((!(a27==1)&&((a0==1)&&((!(a15==1)&&((((a5==1)&&((a22==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a4==1))))&&(a3==7))&&(a12==11)))&&!(a6==1))))&&(a20==1))){ + a27 = 1; + a15 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + a6 = 1; + return -1; + } else if(((a3==4)&&((a18==1)&&(((!(a22==1)&&((!(a27==1)&&((a0==1)&&((a12==10)&&(((a20==1)&&(input==1))&&(a5==1)))))&&(a15==1)))&&!(a6==1))&&!(a4==1))))){ + a4 = 1; + a22 = 1; + a27 = 1; + a5 = 0; + a15 = 0; + return -1; + } else if((((a5==1)&&(!(a0==1)&&((a12==9)&&(((((((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1)))&&!(a6==1))||((a6==1)&&((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1)))))&&(input==5))&&(a15==1))&&(a20==1)))))&&!(a27==1))){ + a0 = 1; + a27 = 1; + a4 = 1; + a6 = 1; + a12 = 8; + a18 = 0; + a3 = 6; + a22 = 0; + return -1; + } else if(((!(a5==1)&&((!(a27==1)&&((((a3==7)&&((a0==1)&&((((input==5)&&((a18==1)||!(a18==1)))&&(a20==1))&&!(a4==1))))&&!(a6==1))&&(a12==12)))&&!(a22==1)))&&(a15==1))){ + a18 = 1; + a27 = 1; + a6 = 1; + a3 = 8; + a15 = 0; + a5 = 1; + a4 = 1; + return 21; + } else if(((a12==11)&&((a15==1)&&(!(a27==1)&&((a20==1)&&((((a4==1)&&((input==4)&&((((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1)))||(((!(a18==1)&&(a22==1))&&(a3==4))&&!(a6==1)))))&&!(a0==1))&&(a5==1))))))){ + if((a27==1)){ + a5 = 0; + a12 = 8; + a4 = 0; + a18 = 1; + a0 = 1; + a6 = 1; + a22 = 0; + a3 = 7; + }else{ + a3 = 7; + a22 = 0; + a18 = 1; + a27 = 1; + a6 = 1; + a12 = 8; + a0 = 1; + } + return 21; + } else if((((a12==12)&&((a20==1)&&((a0==1)&&((((a3==4)&&(!(a15==1)&&((a4==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==1)))))&&(a27==1))&&!(a5==1)))))&&!(a6==1))){ + a6 = 1; + a18 = 1; + a12 = 8; + a22 = 1; + a5 = 1; + a15 = 1; + return -1; + } else if((((a12==9)&&((((((((a3==5)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==1)))&&!(a0==1))&&!(a5==1))&&(a20==1))&&!(a15==1))&&(a4==1))&&!(a27==1)))&&(a6==1))){ + if((a15==1)){ + a6 = 0; + a12 = 8; + a5 = 1; + a15 = 1; + a0 = 1; + a18 = 0; + a22 = 1; + a3 = 7; + a27 = 1; + }else{ + a6 = 0; + a3 = 7; + a0 = 1; + a12 = 8; + a15 = 1; + a27 = 1; + a18 = 0; + a22 = 0; + a5 = 1; + } + return -1; + } else if(((((a5==1)&&((a12==8)&&(!(a15==1)&&(((!(a4==1)&&(((((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==1)))&&(a20==1))&&(a6==1)))))&&(a27==1))&&!(a0==1))){ + if((a15==1)){ + a5 = 0; + a18 = 1; + a12 = 10; + a6 = 0; + a3 = 8; + a22 = 0; + }else{ + a5 = 0; + a18 = 0; + a12 = 11; + a6 = 0; + a15 = 1; + a22 = 0; + a4 = 1; + a3 = 4; + } + return -1; + } else if(((((((((a22==1)&&(!(a5==1)&&((!(a4==1)&&((a3==4)&&(input==4)))&&(a18==1))))&&(a20==1))&&!(a27==1))&&(a15==1))&&(a0==1))&&!(a6==1))&&(a12==9))){ + a22 = 0; + a27 = 1; + a12 = 11; + a5 = 1; + a3 = 5; + return 26; + } else if(((a4==1)&&((((!(a5==1)&&((a20==1)&&((a12==12)&&((a0==1)&&((a3==7)&&(((input==4)&&((a18==1)||!(a18==1)))&&!(a22==1)))))))&&(a15==1))&&(a27==1))&&(a6==1)))){ + a5 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if((((((((a27==1)&&(((!(a6==1)&&(((input==6)&&!(a0==1))&&!(a15==1)))&&(a3==8))&&(a12==10)))&&!(a5==1))&&(a20==1))&&!(a4==1))&&(a22==1))&&!(a18==1))){ + a4 = 1; + a5 = 1; + a3 = 7; + a0 = 1; + return -1; + } else if((!(a18==1)&&(!(a4==1)&&(!(a15==1)&&(((a27==1)&&((((a20==1)&&(!(a22==1)&&(((a3==5)&&(input==3))&&(a12==9))))&&(a5==1))&&!(a0==1)))&&(a6==1)))))){ + a22 = 1; + a12 = 10; + a4 = 1; + a15 = 1; + a3 = 4; + a18 = 1; + a5 = 0; + a0 = 1; + return 21; + } else if((((a20==1)&&((a12==11)&&(((!(a4==1)&&(((a5==1)&&((((a3==6)&&((a22==1)&&!(a18==1)))||(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6))))&&(input==3)))&&!(a6==1)))&&!(a0==1))&&!(a27==1))))&&(a15==1))){ + a0 = 1; + a3 = 7; + a27 = 1; + a4 = 1; + a6 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + return 26; + } else if(((a12==12)&&(!(a4==1)&&((a20==1)&&((a15==1)&&((a5==1)&&((((!(a27==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2)))&&(a0==1))&&(a3==6))&&(a6==1)))))))){ + a3 = 4; + a18 = 1; + a4 = 1; + a22 = 1; + a12 = 8; + a27 = 1; + return -1; + } else if((!(a5==1)&&((!(a15==1)&&(!(a4==1)&&((((((((!(a18==1)&&!(a22==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==6))&&(a6==1))&&(a20==1))&&!(a0==1))&&(a12==8))))&&(a27==1)))){ + a18 = 1; + a4 = 1; + a3 = 4; + a5 = 1; + a22 = 1; + a0 = 1; + a15 = 1; + return -1; + } else if((!(a4==1)&&(!(a15==1)&&((((a20==1)&&((a5==1)&&(((((input==1)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&!(a6==1))&&!(a0==1))&&(a12==8))))&&(a3==7))&&!(a27==1))))){ + a0 = 1; + a15 = 1; + a22 = 0; + a4 = 1; + a27 = 1; + a3 = 4; + a18 = 1; + return 26; + } else if((!(a6==1)&&((a4==1)&&(((a12==9)&&((a27==1)&&(((((((a3==7)&&((a22==1)&&!(a18==1)))||(((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a22==1)&&(a18==1)))))&&(input==6))&&(a20==1))&&(a15==1))&&(a5==1))))&&(a0==1))))){ + a3 = 6; + a18 = 1; + a12 = 12; + a4 = 0; + a22 = 0; + return 24; + } else if((((a27==1)&&((a20==1)&&((((!(a6==1)&&((a3==8)&&(((a12==9)&&(((!(a22==1)&&(a18==1))&&!(a5==1))&&!(a15==1)))&&!(a4==1))))||(!(a6==1)&&((((a12==9)&&(!(a15==1)&&(!(a5==1)&&(!(a22==1)&&!(a18==1)))))&&!(a4==1))&&(a3==8))))||(((a3==4)&&((a4==1)&&((((a5==1)&&((a18==1)&&(a22==1)))&&(a15==1))&&(a12==10))))&&(a6==1)))&&(input==3))))&&(a0==1))){ + a12 = 9; + a18 = 0; + a3 = 8; + a15 = 0; + a4 = 0; + a5 = 1; + a22 = 0; + a6 = 1; + a27 = 0; + return 26; + } else if(((a12==9)&&((a4==1)&&(!(a27==1)&&(!(a5==1)&&(!(a6==1)&&((a3==6)&&((a15==1)&&(!(a22==1)&&((!(a0==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a20==1))))))))))){ + if((a20==1)){ + a22 = 1; + a15 = 0; + a3 = 8; + a18 = 0; + a4 = 0; + a6 = 1; + a12 = 10; + }else{ + a3 = 7; + a27 = 1; + a6 = 1; + a12 = 8; + a18 = 1; + a5 = 1; + a0 = 1; + a22 = 1; + } + return -1; + } else if(((!(a0==1)&&((!(a27==1)&&((((((a3==7)&&(!(a15==1)&&(!(a18==1)&&(input==4))))&&!(a22==1))&&!(a5==1))&&!(a6==1))&&(a20==1)))&&!(a4==1)))&&(a12==11))){ + if((a3==7)){ + a6 = 1; + a12 = 8; + a4 = 1; + a27 = 1; + a3 = 8; + a15 = 1; + }else{ + a12 = 8; + a27 = 1; + a6 = 1; + a5 = 1; + a22 = 1; + a15 = 1; + a18 = 1; + a0 = 1; + a3 = 8; + } + return 21; + } else if(((a5==1)&&((a12==11)&&(!(a0==1)&&(((((((a18==1)&&((a6==1)&&((a3==4)&&(input==6))))&&!(a22==1))&&(a4==1))&&(a15==1))&&(a27==1))&&(a20==1)))))){ + a15 = 0; + a12 = 10; + a0 = 1; + a3 = 8; + return 21; + } else if(((a6==1)&&((((a12==10)&&((!(a4==1)&&(((((((a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==4))))&&(input==5))&&!(a0==1))&&!(a27==1)))&&!(a15==1)))&&(a5==1))&&(a20==1)))){ + a6 = 0; + a18 = 1; + a3 = 7; + a22 = 1; + a12 = 8; + a0 = 1; + a27 = 1; + return -1; + } else if(((((a12==8)&&((a0==1)&&(((a18==1)&&((a20==1)&&((!(a15==1)&&(((a27==1)&&(input==2))&&(a3==6)))&&!(a6==1))))&&(a5==1))))&&(a22==1))&&(a4==1))){ + a0 = 0; + a18 = 0; + a12 = 10; + a3 = 8; + a22 = 0; + a5 = 0; + return 26; + } else if((((a6==1)&&((((a12==8)&&(!(a27==1)&&(((a15==1)&&(!(a0==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==1))))&&(a5==1))))&&(a3==6))&&(a4==1)))&&(a20==1))){ + a6 = 0; + a0 = 1; + a18 = 0; + a27 = 1; + a22 = 0; + return -1; + } else if((!(a27==1)&&(((a15==1)&&(((a3==7)&&(((a12==11)&&((((input==1)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a6==1))&&(a5==1)))&&(a0==1)))&&!(a4==1)))&&(a20==1)))){ + a27 = 1; + a18 = 0; + a0 = 0; + a3 = 8; + a22 = 1; + a4 = 1; + return -1; + } else if((((a12==11)&&((a3==7)&&((!(a27==1)&&((a15==1)&&((a6==1)&&((((a18==1)&&((input==2)&&(a22==1)))&&(a0==1))&&(a20==1)))))&&!(a4==1))))&&(a5==1))){ + a27 = 1; + a12 = 8; + a4 = 1; + a3 = 4; + return -1; + } else if(((a5==1)&&(((!(a4==1)&&(((a0==1)&&((((((a20==1)&&(input==4))&&(a15==1))&&(a6==1))&&(a22==1))&&(a12==9)))&&(a3==8)))&&!(a18==1))&&!(a27==1)))){ + if((a6==1)){ + a5 = 0; + a4 = 1; + a12 = 10; + a27 = 1; + a0 = 0; + }else{ + a15 = 0; + a3 = 6; + a27 = 1; + a12 = 11; + } + return 21; + } else if(((((((!(a4==1)&&((a3==6)&&((a22==1)&&((((input==4)&&(a18==1))&&(a20==1))&&(a6==1)))))&&(a12==9))&&(a27==1))&&!(a0==1))&&!(a5==1))&&(a15==1))){ + a5 = 1; + a4 = 1; + a3 = 4; + a0 = 1; + a12 = 8; + return -1; + } else if(((a6==1)&&(!(a27==1)&&(((a15==1)&&(!(a4==1)&&((a3==6)&&((((a22==1)&&(((input==5)&&(a20==1))&&(a0==1)))&&(a12==9))&&!(a5==1)))))&&(a18==1))))){ + a18 = 0; + a4 = 1; + a12 = 8; + return 21; + } else if((((!(a27==1)&&((!(a0==1)&&(!(a18==1)&&((((a5==1)&&((a3==6)&&((a22==1)&&(input==2))))&&(a15==1))&&(a6==1))))&&(a12==8)))&&(a20==1))&&!(a4==1))){ + a12 = 12; + a5 = 0; + a0 = 1; + a18 = 1; + a6 = 0; + a3 = 7; + return 21; + } else if((((a6==1)&&(((a5==1)&&(!(a0==1)&&((a12==11)&&(((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==1))&&(a3==8))&&(a15==1))&&(a20==1)))))&&!(a27==1)))&&(a4==1))){ + a3 = 5; + a12 = 9; + a5 = 0; + a0 = 1; + a6 = 0; + a22 = 0; + a18 = 0; + return 24; + } else if((!(a15==1)&&((((!(a5==1)&&((a6==1)&&((((input==6)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7))))&&(a12==8))&&(a20==1))))&&(a4==1))&&!(a27==1))&&(a0==1)))){ + a6 = 0; + a18 = 0; + a4 = 0; + a5 = 1; + a22 = 1; + a3 = 6; + a15 = 1; + return 26; + } else if(((a12==11)&&(!(a15==1)&&(((((((input==1)&&((((((a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1)))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1))))&&(a4==1))&&!(a0==1))&&!(a27==1))&&!(a5==1))&&(a20==1))))){ + a6 = 1; + a22 = 0; + a18 = 1; + a27 = 1; + a15 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if((((((!(a27==1)&&((((a5==1)&&(((((!(a22==1)&&(a18==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==5)))&&(a0==1))&&(a12==8)))&&!(a4==1))&&(a6==1))&&(a20==1))&&(a15==1))){ + a4 = 1; + a27 = 1; + a18 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if(((!(a6==1)&&((a12==9)&&((!(a27==1)&&((a3==8)&&(((((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==6))&&(a20==1))&&(a5==1))&&!(a0==1))))&&!(a15==1))))&&(a4==1))){ + if((a22==1)){ + a0 = 1; + a3 = 7; + a18 = 1; + a27 = 1; + a22 = 0; + a15 = 1; + a12 = 8; + }else{ + a3 = 5; + a18 = 1; + a27 = 1; + a15 = 1; + a12 = 8; + a0 = 1; + a22 = 1; + } + return 26; + } else if(((a20==1)&&((a12==12)&&(((a5==1)&&((a4==1)&&(((((input==2)&&(((!(a18==1)&&(a22==1))&&(a3==8))||(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))))&&(a6==1))&&(a27==1))&&(a15==1))))&&(a0==1))))){ + a0 = 0; + a22 = 0; + a18 = 1; + a12 = 10; + a4 = 0; + a3 = 7; + return 21; + } else if((!(a4==1)&&(!(a5==1)&&((!(a6==1)&&((a3==5)&&(((a22==1)&&((!(a15==1)&&(!(a18==1)&&((input==3)&&(a12==12))))&&!(a0==1)))&&(a27==1))))&&(a20==1))))){ + a5 = 1; + a0 = 1; + a15 = 1; + a4 = 1; + a6 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((a0==1)&&(!(a22==1)&&(((((!(a4==1)&&((a6==1)&&(((a20==1)&&((a18==1)&&(input==5)))&&!(a15==1))))&&(a3==6))&&(a27==1))&&(a5==1))&&(a12==8))))){ + if((a18==1)){ + a15 = 1; + a0 = 0; + a12 = 11; + a18 = 0; + a3 = 7; + }else{ + a6 = 0; + a15 = 1; + a12 = 9; + a3 = 7; + } + return 24; + } else if((((a15==1)&&((a0==1)&&(((a27==1)&&((a18==1)&&((a22==1)&&(!(a4==1)&&((((a6==1)&&(input==1))&&(a3==5))&&(a12==10))))))&&(a20==1))))&&(a5==1))){ + a15 = 0; + a18 = 0; + a12 = 12; + a3 = 6; + a6 = 0; + a4 = 1; + return 24; + } else if(((!(a0==1)&&(((a27==1)&&((a3==7)&&((a12==8)&&((a4==1)&&((((input==3)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a20==1))&&!(a6==1))))))&&(a15==1)))&&!(a5==1))){ + a5 = 1; + a22 = 1; + a18 = 1; + a0 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if(((!(a15==1)&&(((a4==1)&&((a0==1)&&((a20==1)&&(!(a5==1)&&((a6==1)&&((((a3==6)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5))))&&(input==3)))))))&&(a12==10)))&&(a27==1))){ + if((a3==5)){ + a22 = 0; + a3 = 5; + a18 = 0; + a12 = 12; + a27 = 0; + }else{ + a18 = 0; + a4 = 0; + a5 = 1; + a3 = 6; + a22 = 0; + a12 = 11; + a15 = 1; + } + return 21; + } else if((((!(a27==1)&&((a12==9)&&((a15==1)&&(((a20==1)&&((input==2)&&(((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))||(((a6==1)&&(((a18==1)&&!(a22==1))&&(a3==8)))||((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))))))&&!(a4==1)))))&&!(a0==1))&&(a5==1))){ + a6 = 0; + a22 = 1; + a18 = 0; + a3 = 6; + a27 = 1; + a0 = 1; + return -1; + } else if(((a3==7)&&(((!(a4==1)&&((((a0==1)&&(!(a15==1)&&(((input==3)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&(a27==1))))&&!(a6==1))&&(a5==1)))&&(a12==8))&&(a20==1)))){ + a15 = 1; + a18 = 0; + a3 = 4; + a22 = 1; + a5 = 0; + a4 = 1; + a12 = 9; + return 21; + } else if((!(a15==1)&&((a22==1)&&((((((a12==9)&&(((a27==1)&&((((a18==1)||!(a18==1))&&(input==2))&&!(a5==1)))&&(a4==1)))&&(a20==1))&&(a6==1))&&(a3==5))&&(a0==1))))){ + a3 = 8; + a5 = 1; + a12 = 11; + a4 = 0; + a18 = 0; + return 26; + } else if((((a6==1)&&((!(a4==1)&&((a5==1)&&((a12==12)&&(((((((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==2))&&(a20==1))&&(a27==1)))))&&!(a15==1)))&&!(a0==1))){ + if((a4==1)){ + a3 = 6; + a0 = 1; + a22 = 1; + a18 = 0; + a27 = 0; + a6 = 0; + a4 = 1; + a5 = 0; + }else{ + a18 = 0; + a22 = 0; + a12 = 8; + a3 = 4; + a15 = 1; + a0 = 1; + a4 = 1; + } + return 21; + } else if(((a3==6)&&((a27==1)&&(!(a5==1)&&(!(a6==1)&&(!(a4==1)&&((!(a0==1)&&((((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==2))&&!(a15==1))&&(a20==1)))&&(a12==12)))))))){ + a27 = 0; + a22 = 0; + a3 = 7; + a18 = 0; + a15 = 1; + a6 = 1; + a12 = 11; + return 21; + } else if(((((a20==1)&&((a0==1)&&(!(a5==1)&&(!(a27==1)&&((a6==1)&&(!(a15==1)&&((a4==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==3)))))))))&&(a3==5))&&(a12==10))){ + a27 = 1; + a5 = 1; + a22 = 1; + a12 = 8; + a15 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a0==1)&&((((a3==5)&&((a4==1)&&(((a20==1)&&((a27==1)&&((a5==1)&&((input==5)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))&&!(a15==1))))&&!(a6==1))&&(a12==12)))){ + a12 = 11; + a18 = 0; + a4 = 0; + a15 = 1; + a5 = 0; + a22 = 1; + a3 = 4; + return -1; + } else if(((((((a3==6)&&((a27==1)&&((a20==1)&&((a12==11)&&((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==4))&&!(a15==1))))))&&!(a4==1))&&(a6==1))&&!(a0==1))&&!(a5==1))){ + a5 = 1; + a6 = 0; + a0 = 1; + a12 = 12; + a18 = 0; + a4 = 1; + a22 = 0; + return 24; + } else if(((a15==1)&&((a22==1)&&((a18==1)&&(((((!(a4==1)&&(((a20==1)&&(!(a0==1)&&(input==2)))&&(a12==11)))&&(a3==8))&&(a5==1))&&(a6==1))&&(a27==1)))))){ + a4 = 1; + a0 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((((a12==12)&&((a3==4)&&(!(a0==1)&&(!(a15==1)&&(!(a5==1)&&(((!(a22==1)&&((((a18==1)||!(a18==1))&&(input==5))&&(a4==1)))&&(a6==1))&&(a20==1)))))))&&(a27==1))){ + a5 = 1; + a12 = 8; + a18 = 0; + a0 = 1; + a3 = 6; + a4 = 0; + a6 = 0; + a22 = 1; + return 26; + } else if(((((a20==1)&&(!(a5==1)&&((a15==1)&&(!(a27==1)&&((((!(a6==1)&&((!(a18==1)&&(a22==1))&&(a3==4)))||((((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4)))))&&(input==5))&&(a4==1))))))&&(a12==12))&&(a0==1))){ + a12 = 11; + a3 = 8; + a18 = 1; + a4 = 0; + a6 = 1; + a22 = 1; + return -1; + } else if((((a12==11)&&((!(a27==1)&&(!(a0==1)&&((a15==1)&&((a4==1)&&((input==5)&&((!(a6==1)&&((a3==4)&&((a22==1)&&!(a18==1))))||(((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1)))))))))&&!(a5==1)))&&(a20==1))){ + if((a20==1)){ + a6 = 0; + a12 = 12; + a0 = 1; + a3 = 4; + a15 = 0; + a27 = 1; + a22 = 1; + a18 = 1; + a4 = 0; + a5 = 1; + }else{ + a6 = 1; + a4 = 0; + a12 = 9; + a27 = 1; + a22 = 1; + a3 = 7; + a5 = 1; + a18 = 0; + } + return 26; + } else if((!(a15==1)&&(((a6==1)&&(!(a4==1)&&(!(a5==1)&&((a27==1)&&((a0==1)&&(((a3==8)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3)))&&(a12==11)))))))&&(a20==1)))){ + if((a18==1)){ + a27 = 0; + a3 = 4; + a22 = 1; + a4 = 1; + a12 = 12; + a18 = 1; + }else{ + a3 = 6; + a22 = 1; + a18 = 0; + } + return -1; + } else if((((((a22==1)&&((a15==1)&&((a12==8)&&(!(a5==1)&&(((((a20==1)&&(input==2))&&!(a0==1))&&(a6==1))&&(a27==1))))))&&!(a4==1))&&(a18==1))&&(a3==6))){ + a22 = 0; + a15 = 0; + a3 = 4; + a0 = 1; + a12 = 11; + a18 = 0; + a6 = 0; + a5 = 1; + return 26; + } else if(((a4==1)&&((!(a27==1)&&(((a5==1)&&((a12==9)&&(!(a15==1)&&((a20==1)&&((input==6)&&(((a3==5)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))))))))&&!(a0==1)))&&!(a6==1)))){ + if((a6==1)){ + a12 = 8; + a27 = 1; + a18 = 0; + a0 = 1; + a6 = 1; + a22 = 1; + a3 = 5; + a15 = 1; + }else{ + a22 = 0; + a27 = 1; + a18 = 0; + a15 = 1; + a4 = 0; + a12 = 11; + a6 = 1; + a3 = 6; + } + return 21; + } else if((!(a4==1)&&((a12==9)&&(!(a5==1)&&((!(a0==1)&&((a20==1)&&(((a15==1)&&((a27==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1))))&&!(a6==1))))&&(a3==7)))))){ + a18 = 0; + a5 = 1; + a12 = 12; + a22 = 0; + a0 = 1; + return 26; + } else if((!(a4==1)&&(!(a27==1)&&((((a5==1)&&(!(a0==1)&&(!(a15==1)&&((!(a22==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a3==5)))&&(a12==10)))))&&(a20==1))&&!(a6==1))))){ + a12 = 12; + a0 = 1; + a18 = 0; + a3 = 8; + a15 = 1; + return 26; + } else if((!(a15==1)&&((a3==8)&&((a4==1)&&(((a27==1)&&((((a20==1)&&((!(a0==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&!(a5==1)))&&(a12==12))&&!(a6==1)))&&!(a22==1)))))){ + a5 = 1; + a6 = 1; + a18 = 1; + a22 = 1; + a0 = 1; + a15 = 1; + a3 = 4; + a12 = 8; + return 26; + } else if(((a12==10)&&((a18==1)&&((a3==5)&&((a15==1)&&(((a4==1)&&(((a27==1)&&(((!(a6==1)&&(input==4))&&(a20==1))&&(a5==1)))&&(a0==1)))&&(a22==1))))))){ + a4 = 0; + a12 = 8; + a18 = 0; + a22 = 0; + return 24; + } else if(((a20==1)&&(((a12==10)&&(!(a15==1)&&(((a5==1)&&(!(a27==1)&&((a4==1)&&((input==2)&&((((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a18==1)&&!(a22==1))))||((a3==5)&&((a22==1)&&(a18==1))))))))&&(a0==1))))&&!(a6==1)))){ + a22 = 1; + a6 = 1; + a12 = 8; + a27 = 1; + a18 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if((!(a0==1)&&(!(a15==1)&&(((a12==11)&&((a20==1)&&((a4==1)&&(((((input==6)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&!(a5==1))&&(a6==1))&&(a3==5)))))&&(a27==1))))){ + a18 = 1; + a5 = 1; + a22 = 0; + a3 = 8; + a15 = 1; + a6 = 0; + a0 = 1; + return 26; + } else if(((a0==1)&&(((a5==1)&&((((a22==1)&&((a20==1)&&((a27==1)&&((a4==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a3==4))))))&&!(a6==1))&&!(a15==1)))&&(a12==8)))){ + a15 = 1; + a6 = 1; + a18 = 1; + return -1; + } else if(((!(a4==1)&&(((a20==1)&&((a3==4)&&(((((((input==2)&&!(a27==1))&&!(a22==1))&&(a12==12))&&!(a6==1))&&!(a15==1))&&(a0==1))))&&(a18==1)))&&!(a5==1))){ + a27 = 1; + a15 = 1; + a12 = 8; + a5 = 1; + a4 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if((((((a27==1)&&((!(a15==1)&&(((a12==9)&&(!(a6==1)&&((input==4)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))))&&(a5==1)))&&(a20==1)))&&(a3==4))&&!(a0==1))&&!(a4==1))){ + a12 = 8; + a6 = 1; + a22 = 1; + a18 = 1; + a0 = 1; + a15 = 1; + a4 = 1; + return -1; + } else if(((a3==4)&&((!(a0==1)&&((((a12==10)&&((((((a6==1)&&(input==5))&&(a4==1))&&(a5==1))&&!(a22==1))&&(a18==1)))&&!(a15==1))&&(a27==1)))&&(a20==1)))){ + a5 = 0; + a15 = 1; + a0 = 1; + a6 = 0; + a12 = 11; + a18 = 0; + a3 = 5; + a27 = 0; + return 26; + } else if((((a12==11)&&(!(a5==1)&&(!(a27==1)&&((a20==1)&&(((!(a4==1)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==1)))&&!(a15==1))&&(a0==1))))))&&!(a6==1))){ + a18 = 0; + a3 = 5; + a4 = 1; + a27 = 1; + a22 = 0; + a5 = 1; + return 21; + } else if(((a27==1)&&(((a3==6)&&(((a20==1)&&((!(a6==1)&&((a0==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==4))&&!(a15==1))))&&(a12==9)))&&!(a5==1)))&&(a4==1)))){ + a12 = 10; + a6 = 1; + a0 = 0; + a18 = 1; + a22 = 1; + a4 = 0; + return 26; + } else if(((a12==11)&&(!(a6==1)&&(((a3==5)&&(((!(a0==1)&&((a20==1)&&((a5==1)&&((((a18==1)||!(a18==1))&&(input==1))&&!(a27==1)))))&&!(a4==1))&&!(a15==1)))&&(a22==1))))){ + if((a3==4)){ + a3 = 8; + a27 = 1; + a12 = 8; + a4 = 1; + a15 = 1; + a22 = 0; + a6 = 1; + a18 = 0; + a0 = 1; + }else{ + a4 = 1; + a5 = 0; + a12 = 8; + a18 = 0; + } + return -1; + } else if(((a27==1)&&((((!(a6==1)&&(!(a0==1)&&(!(a15==1)&&((((input==5)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&!(a5==1))&&(a20==1)))))&&(a12==9))&&!(a4==1))&&(a3==8)))){ + a4 = 1; + a15 = 1; + a22 = 1; + a27 = 0; + a18 = 1; + a0 = 1; + a6 = 1; + a3 = 5; + a5 = 1; + return 21; + } else if((!(a4==1)&&(((a20==1)&&(!(a22==1)&&((!(a15==1)&&((a5==1)&&((a6==1)&&((a3==7)&&(((input==1)&&(a18==1))&&(a0==1))))))&&!(a27==1))))&&(a12==11)))){ + a27 = 1; + a15 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if((((a12==9)&&(!(a15==1)&&(!(a27==1)&&(!(a0==1)&&((a20==1)&&(((a5==1)&&((input==3)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7)))||((!(a18==1)&&(a22==1))&&(a3==7)))))&&(a6==1)))))))&&(a4==1))){ + if((a22==1)){ + a12 = 10; + a15 = 1; + a3 = 7; + a18 = 0; + a22 = 1; + }else{ + a3 = 5; + a6 = 0; + a15 = 1; + a22 = 1; + a12 = 8; + a27 = 1; + a18 = 1; + a0 = 1; + } + return -1; + } else if(((a6==1)&&((a20==1)&&((((a0==1)&&((a12==12)&&((a5==1)&&((a15==1)&&((input==1)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5))))))))&&(a27==1))&&!(a4==1))))){ + a12 = 8; + a4 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((!(a6==1)&&(!(a0==1)&&((!(a4==1)&&(((((a15==1)&&(((input==6)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a3==5)))&&!(a27==1))&&(a5==1))&&(a12==8)))&&(a20==1))))){ + a22 = 1; + a18 = 1; + a4 = 1; + a0 = 1; + a27 = 1; + a3 = 7; + a6 = 1; + return 26; + } else if(((((a22==1)&&((a4==1)&&(((a20==1)&&((((((input==4)&&((a18==1)||!(a18==1)))&&!(a0==1))&&(a5==1))&&(a12==8))&&!(a15==1)))&&(a6==1))))&&(a3==8))&&(a27==1))){ + a18 = 1; + a3 = 4; + a0 = 1; + a15 = 1; + return -1; + } else if(((!(a15==1)&&(!(a4==1)&&((a20==1)&&((a6==1)&&(!(a27==1)&&((((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==2))&&(a12==10))&&(a0==1)))))))&&(a5==1))){ + a3 = 7; + a27 = 1; + a18 = 0; + a6 = 0; + a12 = 12; + a4 = 1; + a22 = 1; + return -1; + } else if(((((a4==1)&&((a12==8)&&((a0==1)&&((a20==1)&&(((!(a27==1)&&((input==1)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a6==1))&&!(a15==1))))))&&(a5==1))&&(a3==8))){ + a18 = 1; + a12 = 9; + a5 = 0; + a22 = 1; + return 24; + } else if(((!(a18==1)&&((a5==1)&&((a27==1)&&((a3==8)&&(((((((a12==11)&&(input==4))&&!(a15==1))&&(a22==1))&&!(a6==1))&&(a20==1))&&(a4==1))))))&&(a0==1))){ + a18 = 1; + a12 = 8; + a6 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if((((a20==1)&&((((!(a4==1)&&(!(a5==1)&&((a6==1)&&((a27==1)&&(((a15==1)&&(input==2))&&!(a22==1))))))&&!(a18==1))&&(a12==10))&&(a3==4)))&&(a0==1))){ + a5 = 1; + a6 = 0; + a18 = 1; + a3 = 5; + return -1; + } else if(((a4==1)&&((a12==9)&&(((((a27==1)&&(((a0==1)&&((input==1)&&(((!(a18==1)&&(a22==1))&&(a3==6))||(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1)))))))&&(a5==1)))&&!(a6==1))&&(a20==1))&&!(a15==1))))){ + a15 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + a6 = 1; + a18 = 1; + return -1; + } else if(((((((!(a18==1)&&(((a6==1)&&((a12==8)&&((!(a27==1)&&(input==3))&&!(a22==1))))&&(a3==8)))&&(a20==1))&&!(a4==1))&&!(a15==1))&&!(a5==1))&&(a0==1))){ + a18 = 1; + a4 = 1; + a27 = 1; + a5 = 1; + a3 = 7; + a15 = 1; + a12 = 12; + return 26; + } else if((((((a6==1)&&(!(a27==1)&&((a3==8)&&((a0==1)&&((a20==1)&&((a12==12)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==6))))))))&&(a5==1))&&(a15==1))&&!(a4==1))){ + a3 = 6; + a18 = 0; + a12 = 10; + a22 = 0; + a27 = 1; + return -1; + } else if((((!(a27==1)&&((a12==8)&&(!(a22==1)&&((((((a20==1)&&((input==5)&&(a5==1)))&&(a15==1))&&(a3==7))&&(a4==1))&&!(a6==1)))))&&!(a0==1))&&(a18==1))){ + a0 = 1; + a18 = 0; + a3 = 8; + a27 = 1; + return -1; + } else if(((a15==1)&&((a20==1)&&((a3==8)&&(((((!(a6==1)&&((a12==10)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==5))))&&(a5==1))&&(a0==1))&&(a4==1))&&!(a27==1)))))){ + if((a5==1)){ + a12 = 8; + a18 = 1; + a22 = 0; + a6 = 1; + a0 = 0; + a27 = 1; + a4 = 0; + a3 = 5; + }else{ + a27 = 1; + a12 = 11; + a3 = 4; + a5 = 0; + a15 = 0; + a22 = 0; + a18 = 0; + a4 = 0; + } + return 21; + } else if((((a15==1)&&(((!(a0==1)&&((a4==1)&&((a12==11)&&((!(a6==1)&&((a20==1)&&((a18==1)&&(input==1))))&&(a3==6)))))&&!(a22==1))&&!(a5==1)))&&!(a27==1))){ + a3 = 4; + a0 = 1; + a22 = 1; + a5 = 1; + a18 = 0; + return 26; + } else if(((!(a15==1)&&((a27==1)&&((a18==1)&&((a12==9)&&(!(a6==1)&&(((!(a4==1)&&((a0==1)&&((a22==1)&&(input==1))))&&(a3==5))&&(a20==1)))))))&&!(a5==1))){ + a4 = 1; + a3 = 8; + a5 = 1; + a27 = 0; + a6 = 1; + a22 = 0; + return 26; + } else if((!(a27==1)&&(!(a15==1)&&(((((!(a6==1)&&(((a4==1)&&((a20==1)&&((a12==10)&&(input==4))))&&(a3==7)))&&(a0==1))&&(a5==1))&&!(a18==1))&&(a22==1))))){ + a27 = 1; + a15 = 1; + a3 = 4; + a12 = 8; + a6 = 1; + a18 = 1; + return -1; + } else if((!(a6==1)&&(!(a0==1)&&((a18==1)&&(((a4==1)&&(!(a15==1)&&((a3==6)&&((a20==1)&&((a5==1)&&(((input==6)&&(a12==10))&&!(a27==1)))))))&&!(a22==1)))))){ + a3 = 7; + a15 = 1; + a27 = 1; + a12 = 8; + a22 = 1; + a4 = 0; + a0 = 1; + a6 = 1; + return -1; + } else if(((a12==11)&&(((!(a0==1)&&((!(a5==1)&&((input==1)&&(((!(a6==1)&&((((a18==1)&&!(a22==1))&&(a4==1))&&(a3==8)))||(((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1))))&&!(a6==1)))||((a6==1)&&((((a18==1)&&(a22==1))&&!(a4==1))&&(a3==4))))))&&(a15==1)))&&(a20==1))&&!(a27==1)))){ + a6 = 1; + a27 = 1; + a22 = 0; + a3 = 4; + a0 = 1; + a5 = 1; + a4 = 0; + a12 = 9; + a18 = 0; + return 26; + } else if(((((((a27==1)&&((!(a15==1)&&((((((a22==1)&&!(a18==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6))))&&(input==6))&&(a12==11)))&&(a0==1)))&&!(a4==1))&&(a20==1))&&(a6==1))&&!(a5==1))){ + a18 = 0; + a0 = 0; + a12 = 9; + a3 = 5; + a6 = 0; + a22 = 0; + return -1; + } else if((!(a0==1)&&((a12==8)&&(!(a4==1)&&((a20==1)&&((((((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==4))&&(a27==1))&&!(a15==1))&&(a5==1))&&(a3==7))&&(a6==1))))))){ + a6 = 0; + a12 = 12; + a0 = 1; + a3 = 6; + a5 = 0; + a18 = 1; + a22 = 0; + a15 = 1; + return 21; + } else if(((a20==1)&&((a12==11)&&(!(a5==1)&&(!(a27==1)&&(((a6==1)&&(((a15==1)&&(((input==3)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a0==1)))&&(a3==7)))&&(a4==1))))))){ + if((a6==1)){ + a5 = 1; + a0 = 1; + a12 = 8; + a27 = 1; + a22 = 1; + a18 = 0; + }else{ + a12 = 8; + a18 = 0; + a5 = 1; + a27 = 1; + a22 = 0; + a0 = 1; + a3 = 6; + } + return 21; + } else if((((((a0==1)&&((a3==6)&&((((a15==1)&&(((a18==1)&&((input==2)&&(a27==1)))&&(a22==1)))&&!(a6==1))&&(a4==1))))&&(a12==10))&&(a20==1))&&!(a5==1))){ + a27 = 0; + a4 = 0; + a3 = 4; + a5 = 1; + a18 = 0; + a22 = 0; + return 21; + } else if((((a20==1)&&((a6==1)&&((!(a0==1)&&((a3==6)&&((a15==1)&&((a27==1)&&(!(a5==1)&&((input==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))))))&&(a4==1))))&&(a12==10))){ + a0 = 1; + a22 = 0; + a6 = 0; + a18 = 1; + a12 = 8; + a3 = 8; + a4 = 0; + return 21; + } else if((!(a6==1)&&(((a27==1)&&((a12==10)&&(((((a20==1)&&((((!(a18==1)&&(a22==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1)))))&&(input==2)))&&(a0==1))&&(a4==1))&&!(a5==1))))&&!(a15==1)))){ + a3 = 8; + a15 = 1; + a18 = 1; + a22 = 0; + return -1; + } else if((((a20==1)&&((a6==1)&&(((a3==7)&&((a4==1)&&(((a12==9)&&(!(a0==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==3))))&&(a5==1))))&&(a15==1))))&&!(a27==1))){ + a22 = 0; + a12 = 8; + a27 = 1; + a18 = 1; + a0 = 1; + return 21; + } else if((((((((a3==7)&&(((a15==1)&&((a5==1)&&((a22==1)&&((input==6)&&((a18==1)||!(a18==1))))))&&(a27==1)))&&(a0==1))&&!(a4==1))&&(a6==1))&&(a12==12))&&(a20==1))){ + if((a0==1)){ + a6 = 0; + a27 = 0; + a5 = 0; + a18 = 1; + a15 = 0; + }else{ + a18 = 1; + a3 = 4; + a22 = 0; + a4 = 1; + a12 = 11; + } + return -1; + } else if((((((((a3==4)&&((a4==1)&&(((a27==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==6)))&&!(a5==1))))&&!(a15==1))&&!(a6==1))&&(a12==11))&&!(a0==1))&&(a20==1))){ + a18 = 1; + a6 = 1; + a22 = 1; + a0 = 1; + a3 = 6; + return 26; + } else if((!(a0==1)&&((a12==8)&&(((a27==1)&&(((!(a4==1)&&((((((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==7)))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==4))&&(a5==1)))&&(a15==1))&&!(a6==1)))&&(a20==1))))){ + a3 = 7; + a6 = 1; + a22 = 0; + a15 = 0; + a0 = 1; + a4 = 1; + a18 = 1; + a12 = 10; + return -1; + } else if((((a20==1)&&(((a18==1)&&((a27==1)&&(!(a22==1)&&(!(a5==1)&&((a3==4)&&(!(a4==1)&&((!(a15==1)&&(input==4))&&!(a0==1))))))))&&!(a6==1)))&&(a12==12))){ + a12 = 8; + a4 = 1; + a3 = 8; + a5 = 1; + a0 = 1; + a6 = 1; + a15 = 1; + return 21; + } else if(((((a6==1)&&((a0==1)&&(((((((a5==1)&&((input==5)&&!(a27==1)))&&(a3==6))&&(a15==1))&&(a12==9))&&(a20==1))&&(a22==1))))&&(a4==1))&&!(a18==1))){ + a3 = 4; + a18 = 1; + a12 = 8; + a27 = 1; + return -1; + } else if(((a12==10)&&(((a3==6)&&((((a20==1)&&((a6==1)&&((((((a18==1)||!(a18==1))&&(input==1))&&!(a0==1))&&!(a5==1))&&!(a4==1))))&&!(a15==1))&&!(a27==1)))&&(a22==1)))){ + if((a5==1)){ + a12 = 8; + a3 = 7; + a27 = 1; + a4 = 1; + a18 = 1; + a15 = 1; + a0 = 1; + a5 = 1; + }else{ + a22 = 0; + a27 = 1; + a3 = 4; + a15 = 1; + a18 = 0; + } + return -1; + } else if(((a20==1)&&(!(a0==1)&&(!(a6==1)&&((!(a4==1)&&(!(a22==1)&&((a12==11)&&(((!(a27==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a3==8))&&!(a15==1)))))&&!(a5==1)))))){ + a0 = 1; + a12 = 8; + a15 = 1; + a4 = 1; + a27 = 1; + a6 = 1; + a18 = 1; + a5 = 1; + return -1; + } else if((((!(a27==1)&&(((!(a5==1)&&((input==4)&&((((a3==4)&&(!(a4==1)&&((a22==1)&&!(a18==1))))&&(a6==1))||((!(a6==1)&&(((!(a22==1)&&!(a18==1))&&(a4==1))&&(a3==8)))||((a6==1)&&((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1))))))))&&(a0==1))&&(a20==1)))&&!(a15==1))&&(a12==10))){ + a27 = 1; + a3 = 6; + a18 = 1; + a6 = 0; + a22 = 1; + a4 = 1; + a15 = 1; + return 21; + } else if(((a18==1)&&(!(a15==1)&&(!(a22==1)&&(((a20==1)&&((a4==1)&&((a27==1)&&((!(a6==1)&&((a5==1)&&((a12==10)&&(input==6))))&&(a3==6)))))&&(a0==1)))))){ + a18 = 0; + a15 = 1; + return 21; + } else if((!(a6==1)&&((a12==11)&&(((!(a15==1)&&(((a27==1)&&(((((a20==1)&&(input==4))&&!(a22==1))&&(a5==1))&&!(a0==1)))&&(a18==1)))&&(a3==8))&&!(a4==1))))){ + a15 = 1; + a4 = 1; + a0 = 1; + a6 = 1; + a12 = 10; + a3 = 4; + return -1; + } else if(((a12==11)&&(!(a4==1)&&((a15==1)&&((a20==1)&&((a6==1)&&(((a27==1)&&((((((a22==1)&&!(a18==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8))))&&(input==6))&&(a5==1)))&&(a0==1)))))))){ + if((a18==1)){ + a3 = 7; + a22 = 0; + a12 = 9; + a18 = 1; + a0 = 0; + a6 = 0; + }else{ + a18 = 0; + a5 = 0; + a12 = 12; + a22 = 1; + a3 = 5; + a27 = 0; + } + return 24; + } else if((!(a27==1)&&(((a15==1)&&(!(a0==1)&&((a12==8)&&((!(a4==1)&&(((a5==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==3)))&&!(a6==1)))&&(a3==8)))))&&(a20==1)))){ + if((a18==1)){ + a3 = 5; + a12 = 10; + a22 = 1; + a18 = 0; + a0 = 1; + a27 = 1; + }else{ + a18 = 1; + a3 = 6; + a0 = 1; + a22 = 1; + a27 = 1; + a6 = 1; + } + return -1; + } else if(((((a27==1)&&(((!(a15==1)&&((a20==1)&&((((a3==4)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a12==8))&&!(a22==1))))&&!(a5==1))&&!(a4==1)))&&!(a0==1))&&(a6==1))){ + a5 = 1; + a18 = 1; + a22 = 1; + a15 = 1; + a4 = 1; + a0 = 1; + return -1; + } else if(((!(a6==1)&&((((!(a4==1)&&((a12==9)&&((a20==1)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==4)))))&&!(a5==1))&&!(a15==1))&&!(a27==1)))&&!(a0==1))){ + a5 = 1; + a3 = 8; + a15 = 1; + a4 = 1; + a27 = 1; + a18 = 1; + a22 = 1; + a12 = 8; + a0 = 1; + a6 = 1; + return -1; + } else if(((!(a27==1)&&(((((((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4))&&!(a4==1))&&(a0==1))&&(a15==1))&&(a12==10))&&!(a5==1))&&(a20==1))&&(a3==5)))&&!(a6==1))){ + a6 = 1; + a22 = 0; + a18 = 0; + a12 = 8; + a5 = 1; + return -1; + } return calculate_output75(input); + } + + int calculate_output75(int input) { + if((!(a6==1)&&(((a12==11)&&((((a3==8)&&((((a22==1)&&((!(a0==1)&&(input==2))&&!(a5==1)))&&(a4==1))&&!(a18==1)))&&(a15==1))&&(a20==1)))&&!(a27==1)))){ + a3 = 7; + a22 = 0; + a18 = 1; + a12 = 9; + a5 = 1; + a27 = 1; + a0 = 1; + return 26; + } else if(((((((a12==12)&&((a0==1)&&((((input==6)&&(((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==6))))&&(a5==1))&&!(a27==1))))&&!(a6==1))&&(a4==1))&&(a20==1))&&!(a15==1))){ + a18 = 1; + a15 = 1; + a22 = 1; + a3 = 4; + a6 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if(((!(a27==1)&&((a20==1)&&(!(a15==1)&&(((((input==4)&&((!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4)))||(((a6==1)&&((a3==8)&&(!(a22==1)&&(a18==1))))||((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1)))))))&&(a0==1))&&(a5==1))&&(a12==10)))))&&!(a4==1))){ + if((a15==1)){ + a22 = 0; + a27 = 1; + a3 = 4; + a6 = 1; + a0 = 0; + a18 = 1; + a4 = 1; + a12 = 11; + }else{ + a6 = 0; + a18 = 1; + a3 = 7; + a22 = 0; + a12 = 12; + } + return 26; + } else if((((((((a3==4)&&(!(a0==1)&&((a6==1)&&(!(a4==1)&&(((input==6)&&(a5==1))&&!(a22==1))))))&&(a18==1))&&!(a27==1))&&(a20==1))&&(a12==11))&&!(a15==1))){ + a27 = 1; + a0 = 1; + a15 = 1; + a12 = 8; + a3 = 6; + return 21; + } else if(((a3==5)&&(!(a0==1)&&((a4==1)&&((a6==1)&&(((!(a5==1)&&((a12==11)&&(((input==5)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&!(a15==1))))&&(a27==1))&&(a20==1))))))){ + a22 = 1; + a15 = 1; + a18 = 0; + a6 = 0; + a4 = 0; + a3 = 7; + a0 = 1; + return 21; + } else if(((a12==10)&&((a27==1)&&(((!(a5==1)&&((!(a15==1)&&((((input==5)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a20==1))&&!(a6==1)))&&(a0==1)))&&(a3==8))&&!(a4==1))))){ + a22 = 0; + a3 = 6; + a5 = 1; + a18 = 1; + a4 = 1; + return -1; + } else if(((((((a12==12)&&(((((((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4))))&&(input==1))&&!(a15==1))&&(a27==1)))&&!(a0==1))&&(a4==1))&&(a20==1))&&!(a5==1))){ + a4 = 0; + a18 = 0; + a0 = 1; + a5 = 1; + a15 = 1; + a12 = 8; + a3 = 6; + a22 = 1; + a6 = 1; + return -1; + } else if(((a0==1)&&(!(a15==1)&&(((a27==1)&&((a20==1)&&((((a6==1)&&((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==4))&&!(a4==1)))&&!(a5==1))&&(a12==8))))&&(a3==4))))){ + a15 = 1; + a22 = 1; + a4 = 1; + a18 = 1; + a5 = 1; + return -1; + } else if(((((((a12==12)&&(((((a5==1)&&((a27==1)&&((a0==1)&&(input==1))))&&(a20==1))&&(a3==4))&&(a22==1)))&&!(a15==1))&&!(a18==1))&&!(a4==1))&&!(a6==1))){ + a6 = 1; + a15 = 1; + a18 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if((!(a5==1)&&((((a6==1)&&((((((input==6)&&((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))||((a3==7)&&(!(a18==1)&&(a22==1)))))&&(a27==1))&&(a4==1))&&(a12==9))&&!(a15==1)))&&!(a0==1))&&(a20==1)))){ + a22 = 1; + a3 = 5; + a5 = 1; + a4 = 0; + a18 = 1; + a0 = 1; + return 26; + } else if((((a5==1)&&((a3==7)&&((((a6==1)&&(!(a15==1)&&(((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==6))&&(a0==1))&&!(a4==1))))&&(a27==1))&&(a20==1))))&&(a12==11))){ + if((a6==1)){ + a18 = 0; + a3 = 8; + a15 = 1; + a12 = 9; + a6 = 0; + a0 = 0; + a22 = 0; + }else{ + a3 = 6; + a22 = 1; + a18 = 1; + } + return -1; + } else if((((a20==1)&&(!(a0==1)&&((((((a27==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))||((a3==5)&&((a22==1)&&!(a18==1))))&&(input==3)))&&!(a5==1))&&(a6==1))&&(a12==9))&&(a4==1))))&&(a15==1))){ + a22 = 0; + a18 = 0; + a3 = 6; + a12 = 11; + a0 = 1; + return -1; + } else if((((a4==1)&&(((a15==1)&&(((a20==1)&&((a5==1)&&(((((input==6)&&(a3==6))&&!(a27==1))&&(a6==1))&&(a12==10))))&&(a22==1)))&&!(a18==1)))&&(a0==1))){ + if((a3==8)){ + a22 = 0; + a12 = 9; + a0 = 0; + a27 = 1; + a6 = 0; + a4 = 0; + a5 = 0; + }else{ + a18 = 1; + a15 = 0; + a3 = 4; + a6 = 0; + a5 = 0; + a22 = 0; + a27 = 1; + a4 = 0; + } + return 26; + } else if((!(a5==1)&&((a3==4)&&((a6==1)&&((!(a15==1)&&((!(a0==1)&&((!(a22==1)&&(((a20==1)&&(input==4))&&(a27==1)))&&(a18==1)))&&(a12==10)))&&!(a4==1)))))){ + a5 = 1; + a22 = 1; + a12 = 8; + a15 = 1; + a4 = 1; + a0 = 1; + return -1; + } else if((((a6==1)&&(((a20==1)&&(!(a0==1)&&(((a27==1)&&(((((input==4)&&(a3==5))&&(a5==1))&&!(a22==1))&&(a4==1)))&&(a12==10))))&&(a15==1)))&&(a18==1))){ + a0 = 1; + a3 = 7; + a12 = 12; + return 26; + } else if(((((a20==1)&&(!(a0==1)&&((((((a4==1)&&(!(a27==1)&&(((a18==1)||!(a18==1))&&(input==2))))&&(a22==1))&&(a5==1))&&(a3==8))&&!(a15==1))))&&(a12==11))&&!(a6==1))){ + a3 = 6; + a4 = 0; + a15 = 1; + a6 = 1; + a18 = 1; + return 21; + } else if(((((!(a4==1)&&(!(a22==1)&&((a27==1)&&(((a20==1)&&((a18==1)&&(((input==5)&&(a12==12))&&!(a0==1))))&&!(a15==1)))))&&!(a5==1))&&!(a6==1))&&(a3==5))){ + a12 = 9; + a3 = 8; + a27 = 0; + a0 = 1; + return 24; + } else if(((a15==1)&&(!(a6==1)&&(((!(a0==1)&&((a18==1)&&((a20==1)&&(!(a27==1)&&((((a3==4)&&(input==4))&&(a5==1))&&(a12==8))))))&&(a22==1))&&(a4==1))))){ + if((a22==1)){ + a22 = 0; + a18 = 0; + a6 = 1; + a12 = 12; + a27 = 1; + a0 = 1; + a4 = 0; + }else{ + a15 = 0; + a12 = 9; + a4 = 0; + a0 = 1; + a5 = 0; + a27 = 1; + } + return 21; + } else if((((a12==10)&&(((a20==1)&&((a22==1)&&((a15==1)&&((((a4==1)&&(((input==3)&&(a27==1))&&(a6==1)))&&(a0==1))&&!(a5==1)))))&&(a3==7)))&&(a18==1))){ + a6 = 0; + a12 = 11; + a18 = 0; + a4 = 0; + a5 = 1; + a3 = 5; + return 26; + } else if((((a5==1)&&(!(a15==1)&&((a20==1)&&((!(a27==1)&&(((((!(a4==1)&&((a22==1)&&!(a18==1)))&&(a3==4))&&(a6==1))||(((((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8))&&!(a6==1))||(((((a18==1)&&(a22==1))&&!(a4==1))&&(a3==4))&&(a6==1))))&&(input==3)))&&(a12==12)))))&&(a0==1))){ + a18 = 0; + a3 = 7; + a4 = 1; + a6 = 1; + a22 = 0; + a15 = 1; + a27 = 1; + return 21; + } else if((!(a15==1)&&(((((a5==1)&&(!(a22==1)&&(((a6==1)&&((a3==7)&&(((input==3)&&(a12==11))&&(a27==1))))&&(a0==1))))&&(a20==1))&&!(a18==1))&&(a4==1)))){ + a0 = 0; + a3 = 4; + a6 = 0; + a15 = 1; + return 24; + } else if(((((a12==9)&&((a20==1)&&(((a3==8)&&((a6==1)&&((a5==1)&&(!(a15==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==3))))))&&!(a0==1))))&&!(a27==1))&&(a4==1))){ + if((a20==1)){ + a12 = 12; + a27 = 1; + a0 = 1; + a6 = 0; + a15 = 1; + a18 = 1; + a5 = 0; + a3 = 5; + a22 = 1; + }else{ + a18 = 0; + a0 = 1; + a22 = 0; + a3 = 7; + a27 = 1; + a12 = 8; + a4 = 0; + a15 = 1; + } + return -1; + } else if((((a4==1)&&(((((((!(a6==1)&&(((input==2)&&(a22==1))&&(a18==1)))&&(a20==1))&&(a5==1))&&(a12==12))&&(a27==1))&&!(a0==1))&&(a3==6)))&&(a15==1))){ + a6 = 1; + a12 = 8; + a3 = 4; + a0 = 1; + return -1; + } else if(((a27==1)&&(!(a6==1)&&(((a12==9)&&((a4==1)&&((!(a5==1)&&(((input==4)&&(((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==6))))&&!(a0==1)))&&(a20==1))))&&!(a15==1))))){ + a27 = 0; + a6 = 1; + a0 = 1; + a5 = 1; + a3 = 4; + a22 = 0; + a18 = 1; + return 21; + } else if((!(a5==1)&&((a12==12)&&((a27==1)&&(((!(a6==1)&&(((a20==1)&&((input==1)&&((((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==7)))||((a3==8)&&((a18==1)&&(a22==1))))))&&!(a0==1)))&&!(a15==1))&&!(a4==1)))))){ + a3 = 5; + a0 = 1; + a6 = 1; + a15 = 1; + a22 = 1; + a12 = 8; + a18 = 0; + a5 = 1; + return -1; + } else if((((a5==1)&&((!(a6==1)&&((!(a0==1)&&((!(a4==1)&&((input==2)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6)))))&&(a12==9)))&&!(a15==1)))&&!(a27==1)))&&(a20==1))){ + a27 = 1; + a3 = 7; + a22 = 1; + a12 = 8; + a4 = 1; + a18 = 1; + a0 = 1; + a6 = 1; + a15 = 1; + return 24; + } else if(((((a0==1)&&((a6==1)&&((((a3==5)&&(((!(a4==1)&&((a15==1)&&(input==6)))&&(a20==1))&&(a22==1)))&&!(a5==1))&&(a12==10))))&&(a18==1))&&(a27==1))){ + a18 = 0; + a6 = 0; + a4 = 1; + return 21; + } else if(((a5==1)&&((a3==5)&&((a4==1)&&(!(a0==1)&&(!(a6==1)&&(((a15==1)&&(((a20==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==1)))&&(a27==1)))&&(a12==11)))))))){ + a3 = 8; + a4 = 0; + a0 = 1; + a18 = 1; + a15 = 0; + a27 = 0; + a5 = 0; + a22 = 0; + return 21; + } else if(((((!(a0==1)&&((a15==1)&&((((((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1))))||((a3==7)&&(!(a18==1)&&(a22==1))))&&(input==5))&&!(a6==1))&&(a27==1))&&(a12==11))))&&(a4==1))&&(a5==1))&&(a20==1))){ + a3 = 6; + a5 = 0; + a18 = 0; + a15 = 0; + a0 = 1; + a4 = 0; + a12 = 10; + a27 = 0; + a22 = 0; + return 26; + } else if(((a20==1)&&((!(a0==1)&&((a6==1)&&((a5==1)&&(((!(a4==1)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==3)))&&(a12==10))&&(a27==1)))))&&(a15==1)))){ + a18 = 0; + a0 = 1; + a22 = 1; + a4 = 1; + a12 = 11; + a3 = 5; + return 26; + } else if(((a0==1)&&(((((a22==1)&&(!(a6==1)&&((a3==4)&&((a12==12)&&((!(a15==1)&&((input==2)&&(a5==1)))&&!(a4==1))))))&&(a27==1))&&!(a18==1))&&(a20==1)))){ + a15 = 1; + a6 = 1; + a4 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if((((a4==1)&&((((a20==1)&&(((a15==1)&&(((((a3==8)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7))))&&(input==3))&&(a0==1)))&&!(a27==1)))&&(a12==11))&&!(a5==1)))&&(a6==1))){ + if((a4==1)){ + a4 = 0; + a22 = 0; + a12 = 8; + a18 = 1; + a5 = 1; + a0 = 0; + a3 = 6; + a27 = 1; + }else{ + a27 = 1; + a12 = 8; + a5 = 1; + a3 = 5; + a22 = 1; + a18 = 0; + a0 = 0; + a6 = 0; + } + return -1; + } else if((((a5==1)&&((((a20==1)&&((a0==1)&&((((((a3==6)&&(!(a18==1)&&(a22==1)))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1)))))&&(input==2))&&(a27==1))&&!(a4==1))))&&(a12==8))&&!(a6==1)))&&!(a15==1))){ + a4 = 1; + a3 = 4; + a18 = 1; + a15 = 1; + a22 = 1; + a6 = 1; + return -1; + } else if(((!(a27==1)&&(((a12==9)&&(((a6==1)&&(!(a15==1)&&((a18==1)&&((a20==1)&&((a22==1)&&((a3==5)&&(input==6)))))))&&!(a0==1)))&&(a4==1)))&&!(a5==1))){ + if((a22==1)){ + a12 = 8; + a5 = 1; + a0 = 1; + a22 = 0; + a27 = 1; + a15 = 1; + a3 = 6; + }else{ + a27 = 1; + a6 = 0; + a18 = 0; + a4 = 0; + a22 = 0; + a15 = 1; + } + return -1; + } else if(((a20==1)&&((a4==1)&&(!(a6==1)&&(((a27==1)&&((((a5==1)&&(((a15==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a3==8)))&&(a12==10))&&(a22==1)))&&(a0==1)))))){ + a5 = 0; + a27 = 0; + a22 = 0; + a12 = 9; + a6 = 1; + a18 = 0; + return 21; + } else if(((a5==1)&&((!(a4==1)&&(!(a27==1)&&((a6==1)&&(!(a15==1)&&((((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==3))&&(a12==8))&&!(a0==1))))))&&(a20==1)))){ + a27 = 1; + a0 = 1; + a15 = 1; + a3 = 8; + a6 = 0; + a4 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((((((a4==1)&&(((!(a5==1)&&((input==3)&&(((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))))&&!(a0==1))&&(a20==1)))&&(a12==8))&&(a27==1))&&(a6==1))&&!(a15==1))){ + a15 = 1; + a4 = 0; + a27 = 0; + a5 = 1; + a12 = 11; + a22 = 0; + a3 = 5; + a18 = 1; + a0 = 1; + return 26; + } else if((!(a15==1)&&((a3==5)&&(((a0==1)&&((((((a4==1)&&((a22==1)&&((input==6)&&!(a18==1))))&&(a12==11))&&(a5==1))&&!(a6==1))&&(a20==1)))&&(a27==1))))){ + a12 = 8; + a6 = 1; + a3 = 4; + a18 = 1; + a15 = 1; + return -1; + } else if((!(a4==1)&&(!(a27==1)&&(!(a15==1)&&(((a12==10)&&((a6==1)&&(!(a5==1)&&((((a3==4)&&((input==4)&&((a18==1)||!(a18==1))))&&!(a22==1))&&(a20==1)))))&&!(a0==1)))))){ + if((a5==1)){ + a0 = 1; + a5 = 1; + a6 = 0; + a18 = 0; + a12 = 8; + a22 = 1; + a27 = 1; + a15 = 1; + a4 = 1; + }else{ + a18 = 1; + a0 = 1; + a5 = 1; + a12 = 8; + } + return -1; + } else if(((((a15==1)&&(!(a6==1)&&((a12==8)&&(((((a3==8)&&((a5==1)&&((a20==1)&&(input==2))))&&(a4==1))&&!(a22==1))&&(a18==1)))))&&(a27==1))&&!(a0==1))){ + a18 = 0; + a3 = 6; + a12 = 10; + a0 = 1; + return 21; + } else if((((a12==12)&&(((a3==5)&&(!(a27==1)&&(!(a5==1)&&((a0==1)&&((a6==1)&&((a18==1)&&(((a15==1)&&(input==1))&&!(a4==1))))))))&&(a20==1)))&&(a22==1))){ + if((a22==1)){ + a0 = 0; + a18 = 0; + a3 = 7; + a27 = 1; + a22 = 0; + a12 = 11; + }else{ + a3 = 7; + a22 = 0; + a27 = 1; + a12 = 9; + a18 = 0; + a0 = 0; + a4 = 1; + } + return 21; + } else if((((a22==1)&&((!(a27==1)&&(((a5==1)&&(((((a20==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a3==5))&&!(a15==1))&&(a4==1)))&&(a12==9)))&&(a6==1)))&&!(a0==1))){ + a18 = 1; + a12 = 8; + a27 = 1; + a6 = 0; + return 24; + } else if((!(a6==1)&&((((a18==1)&&(((!(a4==1)&&((a5==1)&&((a27==1)&&((a12==9)&&((a22==1)&&(input==6))))))&&!(a0==1))&&(a3==5)))&&(a15==1))&&(a20==1)))){ + a22 = 0; + a0 = 1; + a18 = 0; + a12 = 10; + a3 = 8; + a6 = 1; + a4 = 1; + a15 = 0; + return 21; + } else if(((a6==1)&&(!(a15==1)&&(!(a5==1)&&((a4==1)&&(!(a0==1)&&(((a20==1)&&(((a3==7)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==2)))&&!(a27==1)))&&(a12==9)))))))){ + a12 = 10; + a22 = 0; + a3 = 8; + a18 = 0; + a4 = 0; + a0 = 1; + a5 = 1; + return 21; + } else if((((a3==6)&&(!(a27==1)&&(((!(a15==1)&&((((((input==4)&&!(a0==1))&&(a12==8))&&(a4==1))&&!(a5==1))&&(a20==1)))&&(a18==1))&&(a22==1))))&&!(a6==1))){ + a27 = 1; + a18 = 0; + a3 = 7; + return -1; + } else if((!(a22==1)&&((a4==1)&&(((((a12==10)&&((((((input==3)&&!(a6==1))&&(a18==1))&&(a3==6))&&(a5==1))&&!(a27==1)))&&!(a0==1))&&!(a15==1))&&(a20==1))))){ + a15 = 1; + a6 = 1; + a4 = 0; + a0 = 1; + a12 = 8; + a27 = 1; + a22 = 1; + a3 = 8; + return -1; + } else if((!(a15==1)&&((!(a6==1)&&((((a3==5)&&((a4==1)&&((!(a5==1)&&((a12==12)&&((input==3)&&(a27==1))))&&(a18==1))))&&!(a22==1))&&!(a0==1)))&&(a20==1)))){ + a3 = 7; + a18 = 0; + a27 = 0; + a15 = 1; + a12 = 11; + return 24; + } else if(((!(a4==1)&&((a5==1)&&(((((!(a18==1)&&(((a15==1)&&((input==4)&&(a12==8)))&&(a22==1)))&&!(a27==1))&&(a20==1))&&(a3==8))&&(a6==1))))&&(a0==1))){ + a5 = 0; + a27 = 1; + a12 = 10; + a3 = 4; + a22 = 0; + a18 = 1; + return 26; + } else if((!(a15==1)&&((a5==1)&&(((a20==1)&&((a3==7)&&((a0==1)&&((a27==1)&&((a12==9)&&((a22==1)&&(!(a6==1)&&((a4==1)&&(input==2)))))))))&&!(a18==1))))){ + if((a5==1)){ + a3 = 5; + a12 = 8; + a18 = 1; + a4 = 0; + a22 = 0; + a0 = 0; + }else{ + a0 = 0; + a22 = 0; + a12 = 8; + a6 = 1; + } + return 26; + } else if((!(a4==1)&&(!(a6==1)&&(!(a27==1)&&(!(a5==1)&&((a20==1)&&((a0==1)&&((a12==9)&&(((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==2))&&!(a15==1)))))))))){ + a18 = 0; + a5 = 1; + a12 = 12; + a22 = 1; + a6 = 1; + a3 = 4; + return 26; + } else if((((a20==1)&&((a4==1)&&(!(a6==1)&&(((a0==1)&&(!(a15==1)&&((((((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==1))&&(a5==1))))&&(a12==11)))))&&(a27==1))){ + a4 = 0; + a15 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((((a12==8)&&((a27==1)&&((a22==1)&&((a0==1)&&((!(a4==1)&&(!(a5==1)&&(!(a6==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&!(a15==1)))))&&(a3==7))))))&&(a20==1))){ + a3 = 4; + a15 = 1; + a6 = 1; + a12 = 11; + a18 = 1; + return 24; + } else if(((a15==1)&&(((a18==1)&&(!(a27==1)&&(((!(a4==1)&&(!(a0==1)&&((((input==3)&&(a5==1))&&(a12==9))&&(a6==1))))&&(a3==4))&&(a20==1))))&&!(a22==1)))){ + if((a3==6)){ + a0 = 1; + a3 = 8; + a12 = 12; + a4 = 1; + a27 = 1; + }else{ + a4 = 1; + a27 = 1; + a12 = 8; + a0 = 1; + a22 = 1; + } + return -1; + } else if(((a12==12)&&((a27==1)&&((((a4==1)&&(((((a0==1)&&((input==1)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a5==1))&&(a15==1))&&(a20==1)))&&!(a6==1))&&(a3==8))))){ + a5 = 1; + a18 = 1; + a22 = 1; + a3 = 4; + a6 = 1; + a12 = 8; + return -1; + } else if(((((((a12==10)&&((!(a15==1)&&((a4==1)&&(!(a27==1)&&((input==4)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))))&&(a3==6)))&&!(a0==1))&&(a6==1))&&(a20==1))&&(a5==1))){ + if((a20==1)){ + a27 = 1; + a18 = 1; + a3 = 5; + a0 = 1; + a12 = 8; + a15 = 1; + a22 = 0; + a4 = 0; + }else{ + a3 = 5; + a15 = 1; + a27 = 1; + a18 = 1; + a0 = 1; + a22 = 1; + a12 = 8; + } + return -1; + } else if(((a0==1)&&((a3==8)&&((!(a27==1)&&((a12==10)&&(((a4==1)&&((((input==2)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&(a15==1))&&(a6==1)))&&(a20==1))))&&(a5==1))))){ + a22 = 1; + a3 = 4; + a27 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if(((a27==1)&&((a15==1)&&((a0==1)&&(((a12==12)&&((((!(a6==1)&&(((a4==1)&&(!(a22==1)&&!(a18==1)))&&(a3==8)))||((a6==1)&&((((a18==1)&&(a22==1))&&!(a4==1))&&(a3==4))))&&(input==1))&&(a20==1)))&&!(a5==1)))))){ + a3 = 5; + a0 = 0; + a22 = 1; + a12 = 9; + a18 = 0; + a6 = 0; + a5 = 1; + a4 = 0; + return -1; + } else if((((a3==4)&&(((a0==1)&&((a12==8)&&(!(a4==1)&&((!(a6==1)&&((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==4))&&(a20==1)))&&!(a27==1)))))&&!(a15==1)))&&!(a5==1))){ + a3 = 6; + a12 = 12; + a18 = 0; + a4 = 1; + a22 = 0; + return 26; + } else if(((a3==4)&&(!(a18==1)&&((a4==1)&&(((!(a5==1)&&((a15==1)&&((a27==1)&&((((input==4)&&!(a22==1))&&!(a0==1))&&(a6==1)))))&&(a20==1))&&(a12==10)))))){ + a5 = 1; + a18 = 1; + a12 = 8; + a0 = 1; + a22 = 1; + return -1; + } else if(((a18==1)&&((((a6==1)&&(!(a0==1)&&(((!(a22==1)&&(((a20==1)&&((input==1)&&!(a15==1)))&&(a3==6)))&&(a12==10))&&(a5==1))))&&!(a4==1))&&(a27==1)))){ + a22 = 1; + a15 = 1; + a6 = 0; + a4 = 1; + a0 = 1; + return -1; + } else if(((a5==1)&&(((!(a15==1)&&((a0==1)&&((a12==9)&&((a6==1)&&(!(a4==1)&&((((a3==8)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8))))&&(input==6)))))))&&(a20==1))&&(a27==1)))){ + if((a22==1)){ + a6 = 0; + a3 = 6; + a0 = 0; + a22 = 1; + a18 = 0; + a4 = 1; + }else{ + a3 = 4; + a22 = 1; + a18 = 0; + a27 = 0; + a15 = 1; + a12 = 8; + } + return 26; + } else if(((a15==1)&&(!(a5==1)&&((a20==1)&&(!(a6==1)&&(!(a27==1)&&(((a0==1)&&((((input==5)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&(a12==11))&&(a3==5)))&&!(a4==1)))))))){ + a27 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + a4 = 1; + a18 = 1; + a22 = 1; + a6 = 1; + return -1; + } else if(((!(a27==1)&&((a5==1)&&(((a15==1)&&(((a4==1)&&((((input==4)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a12==9))&&(a0==1)))&&!(a6==1)))&&(a20==1))))&&(a3==5))){ + a18 = 0; + a22 = 1; + a12 = 11; + a27 = 1; + a15 = 0; + a3 = 4; + return 26; + } else if((((((a5==1)&&((a20==1)&&(((((input==1)&&((((a18==1)&&(a22==1))&&(a3==7))||((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1))))))&&!(a0==1))&&(a27==1))&&!(a15==1))))&&!(a4==1))&&(a12==10))&&!(a6==1))){ + a6 = 1; + a0 = 1; + a18 = 1; + a4 = 1; + a12 = 9; + a15 = 1; + a3 = 5; + a22 = 1; + a27 = 0; + return 21; + } else if((((!(a22==1)&&(((a3==8)&&((((a27==1)&&((a15==1)&&((((a18==1)||!(a18==1))&&(input==5))&&!(a0==1))))&&!(a5==1))&&(a6==1)))&&(a12==12)))&&(a20==1))&&(a4==1))){ + if((a27==1)){ + a22 = 1; + a18 = 0; + a4 = 0; + a3 = 5; + a5 = 1; + a0 = 1; + a12 = 8; + }else{ + a18 = 0; + a12 = 8; + a0 = 1; + a6 = 0; + a5 = 1; + } + return 24; + } else if((!(a6==1)&&(!(a5==1)&&(!(a27==1)&&((a20==1)&&((a4==1)&&(((a0==1)&&((((((a22==1)&&(a18==1))&&(a3==7))||(((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1)))))&&(input==6))&&(a12==12)))&&(a15==1)))))))){ + a18 = 1; + a6 = 1; + a3 = 4; + a22 = 1; + a5 = 1; + a12 = 8; + return -1; + } else if(((!(a5==1)&&((a12==11)&&((!(a22==1)&&(!(a27==1)&&(((a0==1)&&(((a20==1)&&((input==2)&&(a3==7)))&&(a18==1)))&&!(a6==1))))&&(a4==1))))&&(a15==1))){ + a27 = 1; + a4 = 0; + a12 = 10; + a18 = 0; + a5 = 1; + a22 = 1; + a15 = 0; + return 21; + } else if(((a0==1)&&((a12==10)&&(((a6==1)&&(!(a27==1)&&((a3==8)&&(!(a5==1)&&(!(a4==1)&&(((input==3)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&!(a15==1)))))))&&(a20==1))))){ + if((a12==8)){ + a15 = 1; + a18 = 0; + a0 = 0; + a5 = 1; + a22 = 0; + a12 = 8; + a27 = 1; + }else{ + a3 = 6; + a18 = 0; + a6 = 0; + a22 = 1; + a4 = 1; + } + return -1; + } else if((((((!(a4==1)&&(!(a6==1)&&((a20==1)&&(((!(a22==1)&&((input==2)&&((a18==1)||!(a18==1))))&&(a3==7))&&(a15==1)))))&&!(a27==1))&&!(a5==1))&&(a12==12))&&(a0==1))){ + a22 = 1; + a6 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + a27 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if(((!(a6==1)&&(((((!(a22==1)&&(((a20==1)&&((a4==1)&&((input==4)&&((a18==1)||!(a18==1)))))&&(a15==1)))&&(a12==9))&&(a3==6))&&(a27==1))&&!(a5==1)))&&(a0==1))){ + a5 = 1; + a6 = 1; + a27 = 0; + a4 = 0; + a3 = 8; + a12 = 8; + a18 = 0; + a15 = 0; + return 26; + } else if((((((((a3==8)&&((a0==1)&&(!(a4==1)&&((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==3))&&(a12==9)))))&&(a6==1))&&(a27==1))&&(a5==1))&&(a20==1))&&(a15==1))){ + a22 = 1; + a5 = 0; + a18 = 0; + a3 = 4; + a12 = 12; + return 26; + } else if(((a4==1)&&((((a15==1)&&((a5==1)&&(((a12==11)&&((((a27==1)&&((a22==1)&&(input==1)))&&(a3==8))&&(a20==1)))&&!(a0==1))))&&(a6==1))&&(a18==1)))){ + a0 = 1; + a27 = 0; + a15 = 0; + a4 = 0; + a3 = 5; + a6 = 0; + a12 = 9; + return -1; + } else if((((a4==1)&&(((a20==1)&&(!(a27==1)&&(!(a0==1)&&((((!(a5==1)&&((a12==11)&&(input==5)))&&(a6==1))&&!(a18==1))&&!(a15==1)))))&&!(a22==1)))&&(a3==5))){ + a0 = 1; + a4 = 0; + a15 = 1; + a12 = 12; + a5 = 1; + return -1; + } else if((!(a5==1)&&(!(a0==1)&&((((a4==1)&&(!(a6==1)&&((((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==3))&&!(a15==1))&&(a20==1))))&&(a27==1))&&(a12==11))))){ + a12 = 8; + a18 = 1; + a6 = 1; + a15 = 1; + a3 = 4; + a22 = 1; + a0 = 1; + a5 = 1; + return -1; + } else if(((a3==5)&&(!(a0==1)&&(!(a22==1)&&(((!(a18==1)&&(((a12==12)&&(((a4==1)&&((input==6)&&!(a6==1)))&&(a20==1)))&&!(a15==1)))&&(a5==1))&&(a27==1)))))){ + if((a12==12)){ + a12 = 8; + a22 = 1; + a4 = 0; + a0 = 1; + a15 = 1; + a3 = 4; + a18 = 1; + }else{ + a12 = 10; + a6 = 1; + a18 = 1; + a3 = 7; + a22 = 1; + a15 = 1; + a0 = 1; + a5 = 0; + a4 = 0; + } + return 26; + } else if(((a3==6)&&((((a20==1)&&((a12==11)&&(!(a4==1)&&((a27==1)&&((((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==5))&&(a0==1))&&!(a6==1))))))&&!(a15==1))&&(a5==1)))){ + a12 = 8; + a22 = 1; + a15 = 1; + a18 = 1; + a3 = 7; + return 21; + } else if((!(a18==1)&&(((a27==1)&&((a22==1)&&(((((a3==4)&&((a0==1)&&((a4==1)&&((input==5)&&(a15==1)))))&&!(a5==1))&&(a6==1))&&(a20==1))))&&(a12==11)))){ + a4 = 0; + a3 = 8; + a5 = 1; + a12 = 10; + a15 = 0; + return -1; + } else if((((((!(a0==1)&&(!(a5==1)&&(((((input==3)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&!(a4==1))&&(a12==9))&&!(a27==1))))&&!(a15==1))&&!(a6==1))&&(a20==1))&&(a3==5))){ + a3 = 6; + a15 = 1; + a27 = 1; + a22 = 1; + a12 = 12; + a4 = 1; + a0 = 1; + a6 = 1; + a18 = 0; + return -1; + } else if(((a5==1)&&(!(a22==1)&&(((a4==1)&&((a6==1)&&((((!(a27==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a12==9)))&&(a3==4))&&(a0==1))&&(a20==1))))&&!(a15==1))))){ + a12 = 12; + a27 = 1; + a15 = 1; + a5 = 0; + a18 = 1; + a6 = 0; + return -1; + } else if(((a27==1)&&((a4==1)&&(!(a5==1)&&((a20==1)&&(((a12==8)&&(((a6==1)&&((input==3)&&(((a3==7)&&((a18==1)&&(a22==1)))||(((a3==6)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==6))))))&&!(a15==1)))&&(a0==1))))))){ + a18 = 1; + a12 = 10; + a3 = 6; + a22 = 0; + return 21; + } else if((((((!(a4==1)&&(((((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==2))&&!(a5==1))&&!(a6==1))&&(a27==1))&&!(a15==1)))&&(a20==1))&&(a0==1))&&(a3==8))&&(a12==12))){ + a15 = 1; + a27 = 0; + a12 = 8; + a5 = 1; + a22 = 1; + a6 = 1; + a18 = 1; + return 21; + } else if(((a4==1)&&((a6==1)&&((!(a5==1)&&(((((((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a20==1))&&(a3==4))&&!(a27==1))&&(a0==1))&&!(a15==1)))&&(a12==9))))){ + a18 = 0; + a22 = 1; + a15 = 1; + a6 = 0; + a27 = 1; + a12 = 10; + return 26; + } else if((!(a0==1)&&((a12==12)&&((!(a15==1)&&((((a4==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==6))&&(a6==1))&&(a5==1)))&&(a3==8))&&(a20==1)))&&(a27==1))))){ + a18 = 0; + a22 = 0; + a15 = 1; + a3 = 4; + a0 = 1; + return 24; + } else if(((a6==1)&&((((a15==1)&&(!(a5==1)&&(((((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==5))&&(a12==8))&&!(a0==1))&&(a4==1))))&&(a20==1))&&(a27==1)))){ + a22 = 1; + a0 = 1; + a27 = 0; + a18 = 1; + a3 = 4; + a4 = 0; + return -1; + } else if(((a5==1)&&(((!(a6==1)&&((!(a0==1)&&(((((input==2)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a20==1))&&(a15==1))&&!(a27==1)))&&(a4==1)))&&(a12==9))&&(a3==5)))){ + if((a27==1)){ + a3 = 4; + a22 = 0; + a18 = 0; + a27 = 1; + a4 = 0; + a5 = 0; + }else{ + a18 = 0; + a6 = 1; + a22 = 0; + a27 = 1; + a0 = 1; + a12 = 8; + } + return -1; + } else if(((a0==1)&&(((!(a5==1)&&(((a12==8)&&((a20==1)&&((a4==1)&&(!(a15==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==1))))))&&!(a6==1)))&&(a3==5))&&!(a27==1)))){ + a18 = 1; + a27 = 1; + a22 = 1; + a15 = 1; + a3 = 4; + a6 = 1; + a5 = 1; + return -1; + } else if(((((a15==1)&&(!(a4==1)&&((a20==1)&&((((((input==5)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&!(a27==1))&&!(a5==1))&&(a12==11))&&(a6==1)))))&&(a3==5))&&!(a0==1))){ + a3 = 4; + a4 = 1; + a18 = 1; + a5 = 1; + a22 = 1; + a15 = 0; + return 21; + } else if((!(a15==1)&&((a12==12)&&((((((a22==1)&&((((((a18==1)||!(a18==1))&&(input==1))&&(a5==1))&&(a20==1))&&!(a6==1)))&&(a27==1))&&(a4==1))&&(a0==1))&&(a3==7))))){ + a3 = 4; + a5 = 0; + a12 = 8; + a0 = 0; + a4 = 0; + a18 = 1; + a6 = 1; + return -1; + } else if(((a4==1)&&((a5==1)&&(((a15==1)&&((a3==6)&&(!(a6==1)&&((a0==1)&&(!(a27==1)&&((a12==10)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==5))))))))&&(a20==1))))){ + a18 = 1; + a22 = 0; + a27 = 1; + a4 = 0; + return 21; + } else if(((a18==1)&&((((a12==12)&&(((a22==1)&&(((((a20==1)&&((input==4)&&!(a4==1)))&&(a15==1))&&(a0==1))&&(a5==1)))&&(a3==6)))&&(a6==1))&&!(a27==1)))){ + a15 = 0; + a27 = 1; + a22 = 0; + a5 = 0; + return -1; + } else if((((a12==10)&&((((((a27==1)&&(((a0==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==2)))&&(a3==6)))&&!(a5==1))&&(a20==1))&&(a4==1))&&(a6==1)))&&(a15==1))){ + a18 = 1; + a22 = 1; + a3 = 4; + a15 = 0; + a6 = 0; + a5 = 1; + return -1; + } else if((((a3==6)&&(!(a27==1)&&(((((a12==10)&&((a0==1)&&((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==6))&&!(a4==1))))&&(a6==1))&&(a20==1))&&!(a5==1))))&&(a15==1))){ + a18 = 1; + a27 = 1; + a4 = 1; + a12 = 8; + a5 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((((((a20==1)&&((a4==1)&&((!(a22==1)&&((a3==7)&&((!(a18==1)&&(input==2))&&!(a15==1))))&&!(a6==1))))&&(a27==1))&&(a12==10))&&(a5==1))&&!(a0==1))){ + a5 = 0; + a18 = 1; + a0 = 1; + a3 = 6; + a6 = 1; + return -1; + } else if(((!(a5==1)&&((((a20==1)&&((a15==1)&&((a0==1)&&((a22==1)&&((a4==1)&&((a6==1)&&((input==6)&&((a18==1)||!(a18==1)))))))))&&!(a27==1))&&(a12==8)))&&(a3==8))){ + a0 = 0; + a18 = 0; + a12 = 10; + a27 = 1; + return 24; + } else if(((!(a4==1)&&(((((!(a18==1)&&(((!(a6==1)&&((input==4)&&!(a0==1)))&&(a15==1))&&(a3==7)))&&(a20==1))&&(a27==1))&&!(a22==1))&&(a12==12)))&&(a5==1))){ + a12 = 11; + a6 = 1; + a22 = 1; + a27 = 0; + a4 = 1; + a0 = 1; + a3 = 6; + a15 = 0; + return 26; + } else if(((a20==1)&&((((a12==9)&&(!(a0==1)&&(((((a5==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==6)))&&(a6==1))&&(a4==1))&&!(a15==1))))&&(a27==1))&&(a3==8)))){ + a12 = 12; + a27 = 0; + a22 = 1; + a18 = 0; + a3 = 7; + a6 = 0; + a15 = 1; + a0 = 1; + return 24; + } else if(((a20==1)&&(!(a6==1)&&((!(a5==1)&&(!(a15==1)&&((!(a4==1)&&((a27==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))||((!(a18==1)&&(a22==1))&&(a3==5)))&&(input==1))))&&(a0==1))))&&(a12==12))))){ + a18 = 0; + a22 = 1; + a3 = 6; + a6 = 1; + a15 = 1; + a4 = 1; + return -1; + } else if((((a22==1)&&((((a20==1)&&(((a6==1)&&((a3==4)&&((((input==2)&&(a15==1))&&(a12==12))&&(a27==1))))&&(a18==1)))&&(a5==1))&&!(a4==1)))&&(a0==1))){ + a4 = 1; + a12 = 8; + return -1; + } else if((((a15==1)&&(((a12==10)&&((a3==5)&&((!(a27==1)&&(!(a0==1)&&(!(a5==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==5)))))&&!(a4==1))))&&(a20==1)))&&!(a6==1))){ + a4 = 1; + a0 = 1; + a18 = 0; + a12 = 12; + a15 = 0; + a3 = 6; + a22 = 0; + return -1; + } else if(((a18==1)&&(((((a3==4)&&((((a20==1)&&((a27==1)&&(!(a22==1)&&(!(a15==1)&&(input==6)))))&&!(a4==1))&&(a12==10)))&&!(a0==1))&&!(a5==1))&&(a6==1)))){ + a27 = 0; + a3 = 8; + a0 = 1; + a15 = 1; + a12 = 11; + return 21; + } else if(((a27==1)&&((!(a6==1)&&(!(a0==1)&&((((a20==1)&&(!(a15==1)&&(((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8)))||(((a22==1)&&!(a18==1))&&(a3==8)))&&(input==5))))&&!(a4==1))&&(a5==1))))&&(a12==11)))){ + a22 = 1; + a0 = 1; + a18 = 1; + a3 = 8; + return 26; + } else if(((a0==1)&&((a3==7)&&((a4==1)&&(!(a6==1)&&((a12==12)&&((((a27==1)&&((a20==1)&&((input==1)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))))&&(a15==1))&&!(a5==1)))))))){ + a27 = 0; + a3 = 5; + a22 = 1; + a18 = 0; + return 21; + } else if(((a15==1)&&((a12==10)&&((((((input==5)&&(((((a3==8)&&((a4==1)&&(!(a22==1)&&(a18==1))))&&!(a6==1))||(!(a6==1)&&((a3==8)&&((a4==1)&&(!(a22==1)&&!(a18==1))))))||((a6==1)&&((a3==4)&&(!(a4==1)&&((a18==1)&&(a22==1)))))))&&(a20==1))&&(a5==1))&&(a0==1))&&(a27==1))))){ + a5 = 0; + a18 = 0; + a4 = 1; + a22 = 1; + a6 = 0; + a0 = 0; + a12 = 9; + a3 = 6; + return 24; + } else if(((a22==1)&&(!(a6==1)&&((!(a5==1)&&(((((((!(a15==1)&&(input==5))&&!(a0==1))&&(a12==10))&&(a18==1))&&(a20==1))&&(a27==1))&&!(a4==1)))&&(a3==5))))){ + a3 = 4; + a0 = 1; + return 26; + } else if((((a27==1)&&(!(a4==1)&&(!(a18==1)&&(((a12==8)&&((a6==1)&&((a3==7)&&((a20==1)&&((a5==1)&&(!(a15==1)&&(input==2)))))))&&(a22==1)))))&&(a0==1))){ + a3 = 4; + a18 = 1; + a4 = 1; + a15 = 1; + return -1; + } else if(((((a3==6)&&(((a20==1)&&(((((a12==10)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==5)))&&!(a0==1))&&!(a4==1))&&(a27==1)))&&(a15==1)))&&(a6==1))&&!(a5==1))){ + a0 = 1; + a22 = 1; + a18 = 0; + a5 = 1; + return -1; + } else if((!(a0==1)&&(((a20==1)&&(((a22==1)&&(((a3==5)&&((a12==8)&&((a27==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&!(a6==1)))))&&!(a15==1)))&&!(a4==1)))&&(a5==1)))){ + a22 = 0; + a3 = 7; + a12 = 11; + a0 = 1; + a18 = 1; + a4 = 1; + a6 = 1; + return 24; + } else if((!(a0==1)&&((a20==1)&&(((((a15==1)&&((!(a6==1)&&((input==4)&&((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==6)))||(((a22==1)&&!(a18==1))&&(a3==6)))))&&(a12==10)))&&(a5==1))&&(a27==1))&&!(a4==1))))){ + a6 = 1; + a3 = 4; + a4 = 1; + a18 = 0; + a15 = 0; + a27 = 0; + a22 = 0; + a0 = 1; + return 21; + } else if(((a4==1)&&((a3==8)&&((a27==1)&&(((a12==11)&&(((((a15==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&!(a6==1)))&&(a22==1))&&(a5==1))&&(a20==1)))&&!(a0==1)))))){ + a18 = 1; + a0 = 1; + a3 = 6; + a6 = 1; + a22 = 0; + a27 = 0; + return 24; + } else if((((a27==1)&&((a22==1)&&(((a0==1)&&((a5==1)&&(!(a15==1)&&((a12==10)&&((((input==4)&&(a20==1))&&(a3==7))&&(a18==1))))))&&!(a6==1))))&&!(a4==1))){ + a15 = 1; + a22 = 0; + a12 = 8; + a3 = 6; + return 21; + } else if((!(a4==1)&&(!(a5==1)&&((a12==12)&&(((((a27==1)&&((a20==1)&&((a0==1)&&((input==5)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))))&&(a3==7))&&!(a15==1))&&(a6==1)))))){ + a12 = 10; + a22 = 0; + a18 = 1; + a3 = 6; + a5 = 1; + return -1; + } else if(((a27==1)&&(((((((a20==1)&&((!(a0==1)&&((a4==1)&&((input==1)&&(a18==1))))&&(a12==10)))&&!(a15==1))&&(a3==4))&&!(a22==1))&&!(a6==1))&&!(a5==1)))){ + a3 = 6; + a4 = 0; + a6 = 1; + a18 = 0; + a12 = 11; + return 24; + } else if((((a27==1)&&((!(a5==1)&&(((((a6==1)&&((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==2))&&!(a0==1)))&&(a3==6))&&(a15==1))&&(a12==12)))&&!(a4==1)))&&(a20==1))){ + a0 = 1; + a22 = 1; + a12 = 8; + a4 = 1; + a3 = 4; + a5 = 1; + a18 = 0; + return -1; + } else if((((!(a18==1)&&(!(a6==1)&&(((a15==1)&&((((a3==8)&&((a20==1)&&((input==4)&&!(a0==1))))&&!(a5==1))&&(a27==1)))&&(a12==12))))&&!(a4==1))&&!(a22==1))){ + a15 = 0; + a3 = 5; + a0 = 1; + a12 = 11; + a5 = 1; + a4 = 1; + return -1; + } else if(((a27==1)&&(((a6==1)&&((((a3==7)&&((!(a15==1)&&((((input==6)&&!(a0==1))&&(a20==1))&&(a4==1)))&&(a12==12)))&&(a5==1))&&(a22==1)))&&!(a18==1)))){ + a0 = 1; + a6 = 0; + a5 = 0; + a12 = 8; + a22 = 0; + a27 = 0; + a3 = 5; + a18 = 1; + return 26; + } else if((((a15==1)&&(((((a4==1)&&((a3==7)&&(((a5==1)&&((a20==1)&&((input==1)&&(a18==1))))&&!(a0==1))))&&(a12==8))&&!(a6==1))&&!(a27==1)))&&!(a22==1))){ + a18 = 0; + a27 = 1; + a22 = 1; + a0 = 1; + a3 = 5; + return -1; + } else if((((a20==1)&&((((a4==1)&&(!(a0==1)&&(((a12==9)&&((input==3)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==7)))||((!(a18==1)&&(a22==1))&&(a3==7)))))&&(a27==1))))&&(a6==1))&&!(a15==1)))&&!(a5==1))){ + a12 = 8; + a5 = 1; + a22 = 1; + a18 = 1; + a15 = 1; + a3 = 4; + a0 = 1; + return -1; + } else if(((((a20==1)&&(((!(a6==1)&&((a3==8)&&(!(a4==1)&&((((!(a22==1)&&!(a18==1))&&!(a5==1))&&!(a15==1))&&(a12==11)))))||((((a4==1)&&(((a15==1)&&((a5==1)&&((a22==1)&&(a18==1))))&&(a12==12)))&&(a3==4))&&(a6==1)))&&(input==4)))&&(a27==1))&&!(a0==1))){ + a3 = 6; + a22 = 0; + a5 = 1; + a6 = 0; + a18 = 0; + a0 = 1; + a15 = 1; + a12 = 10; + a4 = 0; + return 21; + } else if((((((((((a20==1)&&(((input==1)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&(a12==8)))&&(a6==1))&&!(a0==1))&&(a27==1))&&(a15==1))&&!(a5==1))&&(a3==8))&&!(a4==1))){ + a15 = 0; + a18 = 0; + a22 = 1; + a3 = 4; + a0 = 1; + a12 = 11; + a4 = 1; + a6 = 0; + return 26; + } else if((((((!(a18==1)&&(((a0==1)&&((a6==1)&&((a27==1)&&((a20==1)&&((a22==1)&&(input==3))))))&&(a3==6)))&&!(a5==1))&&(a15==1))&&(a4==1))&&(a12==12))){ + a3 = 4; + a18 = 1; + a27 = 0; + return 24; + } else if((((((a6==1)&&(!(a0==1)&&((a27==1)&&((a5==1)&&((a4==1)&&((a12==10)&&((input==5)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))))))&&!(a15==1))&&(a20==1))&&(a3==7))){ + a0 = 1; + a22 = 1; + a18 = 0; + a15 = 1; + return -1; + } else if((!(a0==1)&&(((((((a6==1)&&(((a18==1)&&((a5==1)&&((a27==1)&&(input==3))))&&!(a22==1)))&&!(a4==1))&&(a20==1))&&(a3==5))&&(a15==1))&&(a12==11)))){ + a22 = 1; + a12 = 8; + a0 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if(((a6==1)&&((a12==10)&&((a4==1)&&(!(a15==1)&&((((((input==5)&&(((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7))))&&!(a0==1))&&!(a27==1))&&!(a5==1))&&(a20==1))))))){ + a0 = 1; + a4 = 0; + a22 = 1; + a3 = 8; + a18 = 0; + a15 = 1; + a12 = 9; + a5 = 1; + return -1; + } else if((((a20==1)&&((a4==1)&&((a15==1)&&((a5==1)&&((a3==5)&&((!(a6==1)&&((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==2))&&(a12==10)))&&!(a0==1)))))))&&(a27==1))){ + a12 = 8; + a6 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + a0 = 1; + return -1; + } else if(((a15==1)&&((a12==9)&&(!(a27==1)&&((((a0==1)&&((input==4)&&(((((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8))&&!(a6==1))||(((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))&&(a6==1)))))&&(a20==1))&&(a5==1)))))){ + a6 = 1; + a18 = 1; + a4 = 1; + a12 = 12; + a22 = 0; + a3 = 4; + a5 = 0; + return 21; + } else if(((a20==1)&&((a3==6)&&(!(a22==1)&&(!(a15==1)&&((((a12==10)&&(!(a0==1)&&(!(a27==1)&&((a4==1)&&((a5==1)&&(input==2))))))&&(a6==1))&&!(a18==1))))))){ + a27 = 1; + a5 = 0; + a22 = 1; + a15 = 1; + a6 = 0; + a12 = 9; + a3 = 7; + return 21; + } else if(((((((!(a15==1)&&((a20==1)&&((input==6)&&(((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1)))))||(((a3==4)&&((a22==1)&&!(a18==1)))&&!(a6==1))))))&&(a12==11))&&!(a4==1))&&(a27==1))&&(a0==1))&&!(a5==1))){ + a12 = 10; + a6 = 0; + a3 = 6; + a15 = 1; + a22 = 1; + a18 = 0; + a4 = 1; + return -1; + } else if(((((((!(a4==1)&&(((((input==1)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a12==8))&&(a0==1))&&(a20==1)))&&!(a6==1))&&(a27==1))&&(a5==1))&&!(a15==1))&&(a3==7))){ + if((a3==5)){ + a12 = 12; + a0 = 0; + a15 = 1; + a6 = 1; + a18 = 0; + a22 = 1; + }else{ + a4 = 1; + a22 = 0; + a12 = 9; + a15 = 1; + a3 = 4; + a5 = 0; + a18 = 1; + } + return 21; + } else if(((a4==1)&&(((!(a6==1)&&(!(a5==1)&&(((a12==11)&&(((input==2)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))||(((a22==1)&&!(a18==1))&&(a3==5))))&&(a27==1)))&&(a0==1))))&&(a15==1))&&(a20==1)))){ + if((a5==1)){ + a18 = 0; + a0 = 0; + a3 = 8; + a22 = 1; + a15 = 0; + a12 = 9; + }else{ + a27 = 0; + a6 = 1; + a3 = 7; + a18 = 1; + a15 = 0; + a22 = 1; + a4 = 0; + a5 = 1; + } + return 21; + } else if((!(a6==1)&&(((((a3==5)&&(!(a15==1)&&(((!(a0==1)&&((a5==1)&&((input==6)&&(a20==1))))&&(a18==1))&&!(a4==1))))&&!(a22==1))&&(a12==8))&&(a27==1)))){ + a0 = 1; + a3 = 7; + a12 = 11; + return 21; + } else if(((a15==1)&&((a0==1)&&(!(a4==1)&&(((a20==1)&&((a12==12)&&((a3==4)&&((a6==1)&&((a27==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==4)))))))&&(a5==1)))))){ + a12 = 8; + a4 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if(((((a27==1)&&(((a5==1)&&(!(a4==1)&&((a0==1)&&(((input==2)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))||(((a22==1)&&!(a18==1))&&(a3==6))))&&(a12==12)))))&&(a6==1)))&&(a20==1))&&(a15==1))){ + a18 = 1; + a12 = 11; + a4 = 1; + a3 = 5; + a22 = 0; + return 26; + } else if((!(a5==1)&&((a12==12)&&((a20==1)&&(!(a15==1)&&(((!(a0==1)&&(((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==2))&&(a27==1)))&&(a4==1))&&!(a6==1))))))){ + a22 = 1; + a12 = 8; + a3 = 6; + a18 = 0; + a0 = 1; + a15 = 1; + a5 = 1; + return 26; + } else if((((a4==1)&&((a20==1)&&((!(a0==1)&&(((a5==1)&&((input==5)&&((((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1))||(((((a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))))))&&(a15==1)))&&(a12==12))))&&(a27==1))){ + a6 = 1; + a0 = 1; + a22 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((((!(a4==1)&&((a15==1)&&(!(a5==1)&&((a0==1)&&((a6==1)&&((a3==4)&&((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==1))&&(a12==10))))))))&&(a20==1))&&(a27==1))){ + a12 = 9; + a22 = 1; + a18 = 0; + a4 = 1; + a6 = 0; + a0 = 0; + return -1; + } else if((((a12==12)&&(((!(a5==1)&&((a3==8)&&(!(a4==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5))&&(a6==1))&&(a0==1)))))&&!(a15==1))&&(a27==1)))&&(a20==1))){ + a18 = 1; + a15 = 1; + a5 = 1; + a4 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + return -1; + } else if((((!(a18==1)&&((((((((a3==5)&&((input==3)&&!(a22==1)))&&(a4==1))&&!(a15==1))&&!(a5==1))&&!(a0==1))&&(a12==11))&&!(a27==1)))&&(a20==1))&&(a6==1))){ + a27 = 1; + a0 = 1; + a5 = 1; + a22 = 1; + a3 = 8; + a12 = 8; + a18 = 1; + a15 = 1; + return -1; + } else if(((!(a18==1)&&(!(a0==1)&&(((!(a5==1)&&(((((a3==5)&&(!(a22==1)&&(input==2)))&&(a6==1))&&(a20==1))&&(a12==11)))&&!(a4==1))&&!(a27==1))))&&(a15==1))){ + if((a4==1)){ + a12 = 8; + a27 = 1; + a5 = 1; + a3 = 7; + a18 = 1; + a0 = 1; + }else{ + a6 = 0; + a22 = 1; + a3 = 8; + a5 = 1; + a12 = 8; + a4 = 1; + a15 = 0; + a0 = 1; + } + return -1; + } else if(((a15==1)&&((((a27==1)&&((a12==11)&&((a5==1)&&(((input==5)&&(((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1))))&&(a20==1)))))&&!(a4==1))&&(a0==1)))){ + a18 = 0; + a3 = 6; + a4 = 1; + a6 = 0; + a22 = 0; + return -1; + } else if(((!(a4==1)&&(((a20==1)&&((!(a15==1)&&((a12==11)&&((((input==5)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&(a5==1))&&(a6==1))))&&(a0==1)))&&(a3==7)))&&(a27==1))){ + a15 = 1; + a3 = 4; + a22 = 1; + a4 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if((!(a0==1)&&((a4==1)&&((a3==5)&&(((((a20==1)&&(((!(a15==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a27==1))&&(a6==1)))&&!(a5==1))&&(a12==8))&&(a22==1)))))){ + a12 = 12; + a4 = 0; + a22 = 0; + a18 = 0; + a0 = 1; + a5 = 1; + a6 = 0; + a3 = 6; + a15 = 1; + return 21; + } else if(((a15==1)&&(((a27==1)&&(((a4==1)&&(((((input==6)&&(((a3==5)&&(!(a18==1)&&(a22==1)))||(((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1))))))&&(a20==1))&&!(a6==1))&&!(a5==1)))&&(a12==11)))&&!(a0==1)))){ + a0 = 1; + a6 = 1; + a3 = 8; + a15 = 0; + a22 = 1; + a12 = 12; + a18 = 0; + return 26; + } else if(((!(a0==1)&&(!(a15==1)&&(((((a4==1)&&(((input==3)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6)))||((a3==6)&&((a22==1)&&!(a18==1)))))&&!(a27==1)))&&(a20==1))&&(a12==11))&&!(a6==1))))&&(a5==1))){ + a12 = 8; + a6 = 1; + a18 = 0; + a15 = 1; + a27 = 1; + a4 = 0; + a3 = 5; + a0 = 1; + a22 = 1; + return 21; + } else if(((a6==1)&&((((a20==1)&&(((a4==1)&&(!(a27==1)&&(((input==5)&&(((a3==5)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1))))))&&(a0==1))))&&(a15==1)))&&(a12==10))&&!(a5==1)))){ + a3 = 4; + a22 = 0; + a5 = 1; + a6 = 0; + a18 = 0; + a12 = 11; + return 26; + } else if((((a20==1)&&((a0==1)&&(((a4==1)&&((a3==6)&&((a15==1)&&((((!(a27==1)&&(input==2))&&(a18==1))&&(a12==8))&&!(a22==1)))))&&!(a5==1))))&&(a6==1))){ + if((a6==1)){ + a15 = 0; + a18 = 0; + a6 = 0; + a4 = 0; + a12 = 10; + a27 = 1; + a3 = 4; + a0 = 0; + }else{ + a4 = 0; + a27 = 1; + a12 = 10; + } + return 21; + } else if((!(a0==1)&&((a12==10)&&((((a20==1)&&((((a6==1)&&((a3==6)&&((((a18==1)||!(a18==1))&&(input==1))&&(a15==1))))&&(a5==1))&&(a27==1)))&&(a4==1))&&!(a22==1))))){ + a22 = 1; + a3 = 4; + a0 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if(((a12==10)&&(((((a0==1)&&((!(a5==1)&&(!(a6==1)&&((input==2)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a18==1)&&(a22==1)))))))&&(a4==1)))&&(a20==1))&&!(a15==1))&&!(a27==1)))){ + a5 = 1; + a18 = 1; + a4 = 0; + a3 = 6; + a22 = 1; + return 26; + } else if((((a6==1)&&(((a12==12)&&(!(a4==1)&&(!(a15==1)&&((a3==8)&&((a20==1)&&(((((a18==1)||!(a18==1))&&(input==5))&&(a5==1))&&(a0==1)))))))&&(a27==1)))&&!(a22==1))){ + a15 = 1; + a18 = 1; + a12 = 10; + a3 = 4; + return -1; + } else if(((((!(a18==1)&&((a4==1)&&((a20==1)&&((!(a5==1)&&((!(a27==1)&&((input==3)&&!(a0==1)))&&!(a6==1)))&&(a12==8)))))&&(a15==1))&&!(a22==1))&&(a3==4))){ + a5 = 1; + a3 = 5; + a12 = 12; + a18 = 1; + a22 = 1; + a4 = 0; + a0 = 1; + a27 = 1; + return -1; + } else if(((a6==1)&&((a3==8)&&(!(a0==1)&&((a20==1)&&(!(a22==1)&&((a27==1)&&(((a4==1)&&((a12==8)&&((!(a5==1)&&(input==4))&&(a15==1))))&&!(a18==1))))))))){ + a12 = 10; + a5 = 1; + a3 = 4; + a6 = 0; + a0 = 1; + return -1; + } else if(((a20==1)&&(((a12==9)&&((((a27==1)&&(!(a5==1)&&(((input==1)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6))))&&!(a6==1))))&&(a4==1))&&!(a15==1)))&&(a0==1)))){ + a12 = 10; + a4 = 0; + a15 = 1; + a18 = 1; + a3 = 6; + a22 = 1; + return 26; + } else if(((((a3==8)&&((a6==1)&&((a4==1)&&((a18==1)&&((a27==1)&&((!(a5==1)&&((a15==1)&&((a12==12)&&(input==4))))&&(a22==1)))))))&&(a20==1))&&!(a0==1))){ + a0 = 1; + a3 = 7; + a5 = 1; + a6 = 0; + a12 = 8; + return -1; + } else if(((a3==4)&&((a27==1)&&(!(a4==1)&&(!(a5==1)&&(!(a15==1)&&((a20==1)&&(!(a22==1)&&((((((a18==1)||!(a18==1))&&(input==4))&&!(a6==1))&&(a12==9))&&!(a0==1)))))))))){ + a12 = 10; + a4 = 1; + a18 = 1; + a0 = 1; + return 26; + } else if(((a12==12)&&(!(a5==1)&&((a3==5)&&((a15==1)&&(((a4==1)&&(((a0==1)&&(((input==3)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a20==1)))&&(a6==1)))&&(a27==1))))))){ + a4 = 0; + a12 = 11; + a18 = 0; + a3 = 8; + a22 = 1; + a15 = 0; + return -1; + } else if((((a12==8)&&(((a20==1)&&((a6==1)&&(!(a5==1)&&((a15==1)&&(((input==2)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1)))))&&(a27==1))))))&&!(a0==1)))&&(a4==1))){ + a0 = 1; + a18 = 1; + a4 = 0; + a3 = 4; + a22 = 0; + a12 = 11; + return 26; + } else if(((((!(a0==1)&&((a12==9)&&(((!(a27==1)&&((((a6==1)&&(input==6))&&(a22==1))&&!(a5==1)))&&!(a4==1))&&(a3==4))))&&(a18==1))&&(a20==1))&&(a15==1))){ + a18 = 0; + a27 = 1; + a5 = 1; + a15 = 0; + a12 = 11; + a6 = 0; + a0 = 1; + return 24; + } else if((((a22==1)&&((!(a5==1)&&(!(a15==1)&&((a20==1)&&(!(a6==1)&&((a3==4)&&(!(a0==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a4==1))))))))&&!(a27==1)))&&(a12==9))){ + if((a20==1)){ + a12 = 8; + a5 = 1; + a15 = 1; + a0 = 1; + a6 = 1; + a18 = 0; + a3 = 5; + a27 = 1; + }else{ + a15 = 1; + a5 = 1; + a18 = 1; + a12 = 8; + a27 = 1; + a22 = 0; + a3 = 6; + a0 = 1; + } + return 26; + } else if(((a0==1)&&(!(a4==1)&&((((a12==8)&&((a15==1)&&((!(a5==1)&&((((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==4)))&&(a20==1))))&&!(a27==1))&&(a6==1))))){ + a3 = 4; + a6 = 0; + a22 = 1; + a18 = 1; + a4 = 1; + a12 = 9; + return 24; + } else if((!(a27==1)&&((((((a12==11)&&((((input==4)&&((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6)))||((!(a18==1)&&(a22==1))&&(a3==6))))&&(a5==1))&&(a4==1)))&&(a20==1))&&!(a6==1))&&!(a0==1))&&!(a15==1)))){ + a22 = 1; + a3 = 7; + a15 = 1; + a5 = 0; + a12 = 10; + a18 = 1; + a4 = 0; + return -1; + } else if((((((!(a5==1)&&(((a20==1)&&((a12==8)&&((a3==4)&&((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))&&!(a27==1)))&&(a15==1))&&(a6==1))&&(a0==1))&&!(a4==1))){ + a5 = 1; + a18 = 0; + a12 = 10; + a4 = 1; + a22 = 0; + a3 = 5; + return 21; + } else if(((((((a3==4)&&(((((!(a15==1)&&((a12==10)&&(input==4)))&&!(a0==1))&&(a27==1))&&!(a6==1))&&(a18==1)))&&!(a22==1))&&(a20==1))&&(a4==1))&&!(a5==1))){ + a6 = 1; + a4 = 0; + a5 = 1; + a15 = 1; + a22 = 1; + a0 = 1; + return 24; + } else if((!(a5==1)&&(((!(a4==1)&&((a12==10)&&((((((((a22==1)&&!(a18==1))&&(a3==5))||(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5))))&&(input==4))&&(a6==1))&&(a0==1))&&(a27==1))))&&(a20==1))&&!(a15==1)))){ + a6 = 0; + a18 = 1; + a3 = 4; + a22 = 1; + a5 = 1; + return -1; + } else if((((a15==1)&&((a12==11)&&(((!(a22==1)&&((((!(a4==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&!(a6==1))&&!(a5==1))&&(a20==1)))&&(a0==1))&&(a27==1))))&&(a3==8))){ + a4 = 1; + a5 = 1; + a18 = 0; + a15 = 0; + a3 = 4; + return -1; + } else if(((((a6==1)&&((!(a15==1)&&(!(a5==1)&&(((((((a3==5)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==5)))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==2))&&!(a4==1))&&(a20==1))))&&(a0==1)))&&!(a27==1))&&(a12==8))){ + a22 = 0; + a18 = 0; + a6 = 0; + a27 = 1; + a12 = 11; + a3 = 4; + a5 = 1; + return 26; + } else if(((a3==7)&&((a6==1)&&(((!(a15==1)&&((((!(a4==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==1)))&&(a20==1))&&(a12==12))&&(a5==1)))&&(a27==1))&&!(a0==1))))){ + a6 = 0; + a0 = 1; + a18 = 1; + a12 = 9; + a22 = 1; + a3 = 5; + a4 = 1; + return 26; + } else if(((a20==1)&&(!(a4==1)&&((a22==1)&&((((((a12==9)&&(((!(a27==1)&&(input==2))&&(a5==1))&&(a3==8)))&&(a15==1))&&!(a18==1))&&(a6==1))&&(a0==1)))))){ + a22 = 0; + a3 = 6; + a12 = 11; + a18 = 1; + return 21; + } else if((((!(a5==1)&&(((a20==1)&&((!(a6==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==3))&&(a0==1))&&(a27==1)))&&(a15==1)))&&(a4==1)))&&(a3==8))&&(a12==12))){ + if((a0==1)){ + a12 = 9; + a22 = 0; + a3 = 4; + a5 = 1; + a18 = 1; + a0 = 0; + }else{ + a27 = 0; + a18 = 0; + a22 = 0; + a3 = 7; + } + return 21; + } else if(((!(a0==1)&&((((((((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==2))&&!(a6==1))&&(a12==12))&&(a4==1))&&(a20==1))&&(a15==1))&&!(a5==1))&&(a3==7)))&&(a27==1))){ + a12 = 8; + a5 = 1; + a6 = 1; + a4 = 0; + a3 = 5; + a18 = 1; + a0 = 1; + a22 = 1; + return -1; + } else if(((!(a6==1)&&((a12==10)&&(!(a4==1)&&((a5==1)&&(((a15==1)&&(!(a27==1)&&((input==3)&&(((a3==5)&&(!(a18==1)&&(a22==1)))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a18==1)&&(a22==1))))))))&&(a20==1))))))&&(a0==1))){ + a22 = 0; + a15 = 0; + a3 = 5; + a18 = 1; + a12 = 8; + return 21; + } else if((!(a27==1)&&((a3==4)&&((((((((a20==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==4)))&&(a0==1))&&(a6==1))&&(a12==11))&&(a4==1))&&(a5==1))&&!(a15==1))))){ + a12 = 8; + a27 = 1; + a22 = 1; + a15 = 1; + a18 = 1; + return -1; + } else if(((a4==1)&&(!(a6==1)&&(((((a20==1)&&(((a5==1)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==5)))&&(a27==1)))&&(a12==9))&&!(a0==1))&&!(a15==1))))){ + a4 = 0; + a0 = 1; + a12 = 12; + a3 = 4; + a15 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((a20==1)&&((!(a0==1)&&(!(a5==1)&&(((a3==4)&&((((a15==1)&&((!(a18==1)&&(input==1))&&(a27==1)))&&(a4==1))&&(a12==8)))&&!(a22==1))))&&!(a6==1)))){ + a22 = 1; + a5 = 1; + a3 = 6; + a12 = 10; + a0 = 1; + a18 = 1; + a6 = 1; + a4 = 0; + return 21; + } else if((!(a15==1)&&((((a20==1)&&((((!(a0==1)&&(((input==4)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&!(a6==1)))&&!(a5==1))&&(a4==1))&&(a12==10)))&&(a3==5))&&!(a27==1)))){ + a3 = 4; + a18 = 1; + a22 = 0; + a0 = 1; + a15 = 1; + a12 = 8; + a5 = 1; + a27 = 1; + return 26; + } else if((((((((a27==1)&&((a20==1)&&((a3==8)&&(!(a0==1)&&((input==4)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))))))&&!(a6==1))&&(a12==8))&&(a4==1))&&!(a15==1))&&!(a5==1))){ + a18 = 0; + a12 = 9; + a22 = 1; + a0 = 1; + a27 = 0; + a5 = 1; + return -1; + } else if((((a27==1)&&((!(a5==1)&&(!(a18==1)&&(((a20==1)&&((((a0==1)&&((a4==1)&&(input==4)))&&(a22==1))&&(a3==7)))&&(a12==10))))&&(a6==1)))&&(a15==1))){ + a18 = 1; + a6 = 0; + a5 = 1; + a0 = 0; + a3 = 8; + a12 = 8; + a15 = 0; + return -1; + } else if((!(a18==1)&&((!(a4==1)&&((a12==8)&&(((a5==1)&&((a27==1)&&(!(a15==1)&&((((input==5)&&!(a22==1))&&!(a6==1))&&!(a0==1)))))&&(a20==1))))&&(a3==4)))){ + a18 = 1; + a3 = 7; + a4 = 1; + a0 = 1; + a12 = 11; + a22 = 1; + return 24; + } else if(((!(a22==1)&&((a6==1)&&((a12==12)&&((((a27==1)&&(((a0==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a4==1)))&&(a15==1)))&&(a20==1))&&(a5==1)))))&&(a3==8))){ + a18 = 0; + a4 = 0; + a22 = 1; + a3 = 5; + a6 = 0; + a15 = 0; + a0 = 0; + a12 = 10; + return -1; + } else if(((a5==1)&&((a6==1)&&((a12==9)&&(!(a4==1)&&(!(a0==1)&&((!(a15==1)&&((a20==1)&&((input==5)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5))))))&&!(a27==1)))))))){ + a12 = 8; + a15 = 1; + a3 = 8; + a0 = 1; + a18 = 0; + a6 = 0; + a27 = 1; + a22 = 0; + a4 = 1; + return 21; + } else if(((a6==1)&&(!(a4==1)&&((a12==10)&&((a3==6)&&((!(a15==1)&&(!(a27==1)&&(((a20==1)&&((input==4)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a0==1))))&&(a5==1))))))){ + a12 = 8; + a27 = 1; + a3 = 4; + a22 = 1; + a15 = 1; + a18 = 1; + a4 = 1; + return -1; + } else if((((a22==1)&&(!(a4==1)&&(!(a15==1)&&((a3==8)&&((a20==1)&&(!(a0==1)&&(((a5==1)&&((((a18==1)||!(a18==1))&&(input==6))&&(a27==1)))&&!(a6==1))))))))&&(a12==12))){ + a15 = 1; + a18 = 1; + a6 = 1; + a12 = 8; + a0 = 1; + return -1; + } else if((((((!(a4==1)&&((a5==1)&&(!(a15==1)&&(((a3==7)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==6)))&&(a20==1)))))&&!(a27==1))&&!(a6==1))&&!(a0==1))&&(a12==11))){ + a0 = 1; + a27 = 1; + a12 = 8; + a18 = 0; + a15 = 1; + a6 = 1; + a22 = 0; + a3 = 4; + return -1; + } else if((((((a12==10)&&(((a5==1)&&(((!(a0==1)&&(((a18==1)&&(input==3))&&(a15==1)))&&(a27==1))&&!(a22==1)))&&(a3==5)))&&(a20==1))&&(a6==1))&&(a4==1))){ + a12 = 8; + a22 = 1; + a3 = 4; + a0 = 1; + return -1; + } else if((((a3==5)&&((a0==1)&&(((a20==1)&&((a22==1)&&((((a15==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&!(a27==1)))&&(a5==1))&&(a12==8))))&&!(a6==1))))&&(a4==1))){ + a12 = 11; + a18 = 0; + a22 = 0; + a27 = 1; + a3 = 4; + a4 = 0; + a15 = 0; + return 26; + } else if((((((a12==9)&&(!(a4==1)&&((a20==1)&&(((a3==7)&&(((input==4)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))&&(a27==1)))&&(a15==1)))))&&!(a5==1))&&!(a0==1))&&(a6==1))){ + a3 = 4; + a0 = 1; + a12 = 10; + a15 = 0; + a4 = 1; + a18 = 0; + a5 = 1; + a22 = 1; + return 26; + } else if((!(a15==1)&&(!(a4==1)&&(!(a6==1)&&((a27==1)&&(!(a0==1)&&(((a12==9)&&(!(a5==1)&&(((((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a18==1)&&(a22==1))))||((a3==6)&&(!(a18==1)&&(a22==1))))&&(input==3))))&&(a20==1)))))))){ + a22 = 1; + a12 = 11; + a0 = 1; + a18 = 1; + a3 = 8; + a4 = 1; + a27 = 0; + return 26; + } else if(((((a6==1)&&((!(a5==1)&&(!(a0==1)&&((((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==2))&&(a15==1))&&(a20==1))))&&(a12==10)))&&!(a4==1))&&!(a27==1))){ + a0 = 1; + a12 = 9; + a15 = 0; + a22 = 0; + a3 = 7; + a18 = 0; + return -1; + } else if((((((a3==4)&&(!(a27==1)&&((!(a15==1)&&((a20==1)&&(((input==2)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&!(a0==1))))&&!(a4==1))))&&(a12==11))&&(a5==1))&&!(a6==1))){ + a22 = 0; + a12 = 8; + a18 = 1; + a4 = 1; + a0 = 1; + a3 = 7; + a15 = 1; + a27 = 1; + return 21; + } else if((((((a5==1)&&((a12==8)&&((!(a15==1)&&(((a20==1)&&((a6==1)&&(((a18==1)||!(a18==1))&&(input==5))))&&!(a27==1)))&&!(a22==1))))&&!(a4==1))&&(a3==6))&&!(a0==1))){ + if((a15==1)){ + a5 = 0; + a3 = 5; + a0 = 1; + a12 = 10; + a18 = 1; + a22 = 1; + }else{ + a5 = 0; + a22 = 1; + a18 = 0; + a27 = 1; + a12 = 12; + } + return 26; + } else if(((!(a5==1)&&(!(a15==1)&&((((a3==7)&&(((a4==1)&&((a27==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==5))))&&(a20==1)))&&(a0==1))&&!(a6==1))))&&(a12==8))){ + if((a5==1)){ + a18 = 0; + a12 = 9; + a0 = 0; + a3 = 6; + a22 = 1; + }else{ + a15 = 1; + a22 = 0; + a6 = 1; + a12 = 11; + a4 = 0; + a5 = 1; + a18 = 0; + a3 = 8; + } + return 21; + } else if((((a20==1)&&(((!(a0==1)&&(!(a15==1)&&(((((input==1)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&!(a4==1))&&(a12==9))&&!(a6==1))))&&(a3==6))&&(a5==1)))&&(a27==1))){ + a12 = 8; + a15 = 1; + a0 = 1; + a22 = 0; + a18 = 1; + a3 = 5; + return -1; + } else if((!(a22==1)&&((!(a18==1)&&(!(a6==1)&&(((((a5==1)&&((((a3==7)&&(input==5))&&(a0==1))&&(a20==1)))&&(a12==9))&&!(a27==1))&&!(a15==1))))&&(a4==1)))){ + a5 = 0; + a3 = 4; + a22 = 1; + a27 = 1; + a12 = 10; + return 26; + } else if((!(a4==1)&&((!(a27==1)&&((a6==1)&&(!(a5==1)&&((!(a18==1)&&(((a12==9)&&(((input==1)&&(a3==4))&&(a20==1)))&&(a0==1)))&&(a15==1)))))&&(a22==1)))){ + a22 = 0; + a6 = 0; + a12 = 11; + a27 = 1; + a15 = 0; + a18 = 1; + a5 = 1; + return -1; + } else if(((a3==6)&&(((a12==10)&&((a6==1)&&(((a0==1)&&(!(a4==1)&&(((a20==1)&&((input==6)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a15==1))))&&!(a5==1))))&&!(a27==1)))){ + a15 = 1; + a4 = 1; + a3 = 8; + a18 = 1; + a5 = 1; + a22 = 0; + a6 = 0; + return -1; + } else if((((((((a20==1)&&((a3==5)&&(((((input==5)&&(a0==1))&&!(a4==1))&&!(a22==1))&&(a27==1))))&&!(a6==1))&&(a12==10))&&(a18==1))&&!(a15==1))&&!(a5==1))){ + a3 = 4; + a15 = 1; + a27 = 0; + return 26; + } else if(((((a15==1)&&(((a0==1)&&((a12==12)&&((a6==1)&&(!(a4==1)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==2))))))&&(a20==1)))&&!(a27==1))&&!(a5==1))){ + a3 = 5; + a4 = 1; + a6 = 0; + a27 = 1; + a12 = 10; + a22 = 1; + a18 = 1; + return -1; + } else if(((!(a18==1)&&((((a12==10)&&(((a0==1)&&(!(a27==1)&&(((a20==1)&&((a15==1)&&(input==5)))&&(a6==1))))&&(a3==5)))&&!(a4==1))&&!(a22==1)))&&(a5==1))){ + a12 = 11; + a27 = 1; + a18 = 1; + a6 = 0; + a22 = 1; + return -1; + } else if(((a0==1)&&((((a5==1)&&((a20==1)&&((!(a15==1)&&(((input==5)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1)))))&&(a4==1)))&&(a27==1))))&&(a12==8))&&(a6==1)))){ + a18 = 0; + a3 = 8; + a4 = 0; + a6 = 0; + a22 = 0; + return 21; + } else if(((a0==1)&&((a6==1)&&((a20==1)&&(!(a5==1)&&(((a3==7)&&((!(a22==1)&&(((a12==9)&&((input==6)&&((a18==1)||!(a18==1))))&&!(a15==1)))&&!(a27==1)))&&!(a4==1))))))){ + a18 = 0; + a15 = 1; + a4 = 1; + a27 = 1; + a5 = 1; + a3 = 5; + a12 = 11; + return 26; + } else if((((a15==1)&&(!(a5==1)&&(((a0==1)&&((a20==1)&&(((input==5)&&(((((!(a22==1)&&(a18==1))&&(a3==8))&&(a6==1))||((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8))))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4)))))&&(a27==1))))&&(a12==12))))&&!(a4==1))){ + a22 = 1; + a18 = 1; + a6 = 0; + a5 = 1; + a12 = 10; + a3 = 7; + a27 = 0; + a15 = 0; + return 26; + } else if((!(a22==1)&&((((((((a18==1)&&((a20==1)&&((!(a27==1)&&(input==6))&&(a6==1))))&&(a12==12))&&(a15==1))&&(a4==1))&&(a3==4))&&(a0==1))&&!(a5==1)))){ + a18 = 0; + a4 = 0; + a5 = 1; + return -1; + } else if((!(a4==1)&&((((((((a5==1)&&((a6==1)&&(!(a27==1)&&(((a18==1)||!(a18==1))&&(input==6)))))&&(a20==1))&&(a12==12))&&(a0==1))&&!(a22==1))&&!(a15==1))&&(a3==5)))){ + a4 = 1; + a27 = 1; + a0 = 0; + a18 = 0; + a12 = 10; + a22 = 1; + return -1; + } else if((!(a6==1)&&((a5==1)&&((a15==1)&&((a3==8)&&((a12==8)&&((((a0==1)&&((a20==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==1))))&&!(a4==1))&&!(a27==1)))))))){ + a3 = 6; + a4 = 1; + a15 = 0; + a18 = 0; + a22 = 0; + a5 = 0; + a27 = 1; + a12 = 10; + return 21; + } else if((!(a0==1)&&(((!(a6==1)&&(((a20==1)&&((a4==1)&&((((((a22==1)&&(a18==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5))))&&(input==2))&&!(a27==1))))&&!(a15==1)))&&(a12==9))&&(a5==1)))){ + if((a18==1)){ + a6 = 1; + a18 = 0; + a22 = 0; + a12 = 8; + a15 = 1; + a0 = 1; + a27 = 1; + a3 = 7; + }else{ + a5 = 0; + a6 = 1; + a22 = 1; + a3 = 4; + a18 = 0; + a15 = 1; + a12 = 10; + a27 = 1; + a0 = 1; + } + return -1; + } else if(((((!(a22==1)&&((!(a27==1)&&((a4==1)&&(((a15==1)&&(((input==5)&&(a12==11))&&(a20==1)))&&(a6==1))))&&!(a18==1)))&&(a0==1))&&(a3==8))&&(a5==1))){ + a18 = 1; + a12 = 12; + a27 = 1; + a3 = 6; + return 21; + } else if((((a4==1)&&((a20==1)&&((!(a27==1)&&((((((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7)))||((a3==7)&&(!(a18==1)&&(a22==1))))&&(input==5))&&!(a6==1))&&!(a15==1))&&(a5==1)))&&(a12==8))))&&(a0==1))){ + a4 = 0; + a12 = 9; + a22 = 0; + a18 = 1; + a5 = 0; + a3 = 4; + return 21; + } else if(((((!(a27==1)&&(!(a4==1)&&(((a6==1)&&(!(a0==1)&&((input==6)&&((((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a18==1)&&(a22==1))))||((!(a18==1)&&(a22==1))&&(a3==5))))))&&(a5==1))))&&(a15==1))&&(a20==1))&&(a12==9))){ + a3 = 6; + a18 = 0; + a27 = 1; + a6 = 0; + a4 = 1; + a12 = 12; + a22 = 0; + return 24; + } else if(((a20==1)&&(((((a27==1)&&(((a6==1)&&((!(a22==1)&&((a3==7)&&((a0==1)&&(input==3))))&&!(a15==1)))&&(a12==12)))&&!(a18==1))&&(a5==1))&&!(a4==1)))){ + a12 = 8; + a15 = 1; + a22 = 1; + a4 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((((a3==8)&&(!(a27==1)&&(((((((a12==8)&&((a4==1)&&((input==6)&&(a0==1))))&&(a22==1))&&(a20==1))&&!(a5==1))&&(a6==1))&&(a18==1))))&&!(a15==1))){ + a3 = 6; + a5 = 1; + a22 = 0; + a27 = 1; + a15 = 1; + a12 = 12; + return 21; + } else if(((a22==1)&&((a3==5)&&((a0==1)&&(((a5==1)&&(((!(a27==1)&&((((input==3)&&((a18==1)||!(a18==1)))&&!(a15==1))&&(a12==10)))&&!(a4==1))&&(a20==1)))&&(a6==1)))))){ + a18 = 1; + a4 = 1; + a22 = 0; + a15 = 1; + a3 = 7; + a5 = 0; + return 26; + } else if(((a27==1)&&(((a15==1)&&(((a4==1)&&((a12==8)&&(!(a0==1)&&((a5==1)&&(((((a22==1)&&!(a18==1))&&(a3==5))||(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1)))))&&(input==1))))))&&(a6==1)))&&(a20==1)))){ + a22 = 1; + a3 = 4; + a18 = 1; + a0 = 1; + return -1; + } else if(((a15==1)&&((((a0==1)&&(!(a4==1)&&(((!(a18==1)&&((((a20==1)&&(input==3))&&!(a5==1))&&!(a27==1)))&&!(a22==1))&&(a12==12))))&&(a3==8))&&(a6==1)))){ + a6 = 0; + a27 = 1; + a3 = 4; + a12 = 11; + a15 = 0; + a5 = 1; + a18 = 1; + return -1; + } else if((((a4==1)&&(((a6==1)&&((a20==1)&&(((a12==8)&&(((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==1))&&(a0==1)))&&!(a5==1))))&&!(a27==1)))&&!(a15==1))){ + a27 = 1; + a22 = 1; + a4 = 0; + a3 = 6; + a15 = 1; + a6 = 0; + a18 = 1; + a12 = 10; + return 26; + } else if(((a5==1)&&(!(a4==1)&&(((((a0==1)&&((a12==9)&&(!(a15==1)&&((input==2)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))||((!(a18==1)&&(a22==1))&&(a3==8)))))))&&(a20==1))&&!(a27==1))&&(a6==1))))){ + a12 = 10; + a5 = 0; + a27 = 1; + a3 = 5; + a22 = 0; + a18 = 0; + a15 = 1; + return 26; + } else if(((a15==1)&&(((((((((a4==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==6)))&&(a12==9))&&(a0==1))&&(a6==1))&&(a20==1))&&(a3==6))&&!(a27==1))&&!(a5==1)))){ + a15 = 0; + a12 = 12; + a22 = 0; + a5 = 1; + a18 = 0; + a27 = 1; + a3 = 5; + return -1; + } else if((((((a6==1)&&((((a27==1)&&(!(a0==1)&&(((input==3)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&!(a5==1))))&&(a3==4))&&!(a4==1)))&&!(a15==1))&&(a12==9))&&(a20==1))){ + a0 = 1; + a18 = 0; + a3 = 6; + a5 = 1; + a6 = 0; + a22 = 1; + a12 = 11; + return 24; + } else if(((((((a12==11)&&(((a27==1)&&(((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==6))&&!(a0==1)))&&!(a15==1)))&&(a4==1))&&!(a6==1))&&!(a5==1))&&(a20==1))){ + a4 = 0; + a6 = 1; + a22 = 0; + a5 = 1; + a3 = 7; + a18 = 1; + a0 = 1; + return -1; + } else if((((a6==1)&&(!(a4==1)&&((a20==1)&&((a27==1)&&((a15==1)&&(((((((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==1))&&!(a0==1))&&(a5==1)))))))&&(a12==10))){ + a12 = 8; + a27 = 0; + a4 = 1; + a18 = 0; + a22 = 1; + a0 = 1; + a3 = 8; + return 26; + } else if((!(a6==1)&&(((!(a5==1)&&((a15==1)&&((a27==1)&&(!(a0==1)&&(((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==4))&&(a4==1))))))&&(a20==1))&&(a12==9)))){ + if((a22==1)){ + a12 = 10; + a22 = 1; + a15 = 0; + a18 = 1; + a3 = 6; + }else{ + a18 = 1; + a15 = 0; + a22 = 1; + a0 = 1; + a12 = 8; + a3 = 8; + } + return 21; + } else if((((a22==1)&&(((a12==11)&&((a3==7)&&(!(a6==1)&&(((a15==1)&&(!(a0==1)&&(((a20==1)&&(input==1))&&!(a18==1))))&&!(a27==1)))))&&(a5==1)))&&!(a4==1))){ + a0 = 1; + a27 = 1; + a4 = 1; + a12 = 8; + a3 = 8; + return 21; + } else if((((a0==1)&&(!(a27==1)&&((a12==8)&&((!(a4==1)&&(((a3==7)&&(((input==5)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a6==1)))&&(a20==1)))&&(a5==1)))))&&!(a15==1))){ + a12 = 12; + a6 = 1; + a22 = 1; + a3 = 8; + a27 = 1; + a18 = 1; + return -1; + } return calculate_output76(input); + } + + int calculate_output76(int input) { + if(((a3==4)&&((a15==1)&&(!(a27==1)&&((a0==1)&&((!(a5==1)&&(!(a4==1)&&((!(a6==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==4)))&&(a20==1))))&&(a12==8))))))){ + a5 = 1; + a4 = 1; + a22 = 1; + a27 = 1; + a18 = 1; + a6 = 1; + return -1; + } else if((((a0==1)&&((a12==10)&&((a27==1)&&((a20==1)&&(((a15==1)&&(((a5==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==1)))&&(a6==1)))&&(a3==6))))))&&(a4==1))){ + a12 = 8; + a22 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a5==1)&&(!(a0==1)&&((a20==1)&&((((!(a18==1)&&(((!(a27==1)&&((input==6)&&(a22==1)))&&!(a6==1))&&(a3==4)))&&!(a4==1))&&(a12==8))&&(a15==1)))))){ + a0 = 1; + a6 = 1; + a18 = 1; + a3 = 6; + a4 = 1; + a27 = 1; + return 21; + } else if((((((a4==1)&&(((((a27==1)&&((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==1)))&&!(a5==1))&&(a20==1))&&(a12==9)))&&(a0==1))&&!(a6==1))&&!(a15==1))){ + a3 = 6; + a18 = 0; + a12 = 10; + a6 = 1; + a22 = 0; + return 26; + } else if(((((a0==1)&&((a12==12)&&(!(a5==1)&&((a3==7)&&(!(a27==1)&&((a20==1)&&((!(a15==1)&&((a22==1)&&(input==6)))&&(a4==1))))))))&&(a6==1))&&(a18==1))){ + a15 = 1; + a3 = 6; + a5 = 1; + a12 = 11; + return 21; + } else if((((((a5==1)&&(((!(a15==1)&&(!(a6==1)&&((a20==1)&&((input==2)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))&&(a12==8))&&(a3==8)))&&!(a27==1))&&(a4==1))&&!(a0==1))){ + if((a0==1)){ + a6 = 1; + a18 = 1; + a0 = 1; + a22 = 0; + a27 = 1; + a3 = 6; + a15 = 1; + }else{ + a18 = 1; + a27 = 1; + a6 = 1; + a15 = 1; + a3 = 7; + a0 = 1; + a22 = 0; + } + return -1; + } else if((!(a18==1)&&((((a3==6)&&(!(a0==1)&&(((((((input==1)&&(a20==1))&&(a12==10))&&!(a5==1))&&(a22==1))&&(a27==1))&&(a6==1))))&&!(a15==1))&&!(a4==1)))){ + a0 = 1; + a3 = 8; + a18 = 1; + a12 = 11; + a27 = 0; + return 26; + } else if((!(a5==1)&&((((a20==1)&&(!(a0==1)&&(!(a27==1)&&(!(a4==1)&&(!(a6==1)&&(!(a15==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a12==11))))))))&&(a3==8))&&(a22==1)))){ + a15 = 1; + a5 = 1; + a3 = 6; + a12 = 8; + a0 = 1; + a4 = 1; + a18 = 1; + a27 = 1; + return 21; + } else if(((!(a0==1)&&((a12==9)&&((((!(a27==1)&&((!(a15==1)&&((((a18==1)||!(a18==1))&&(input==2))&&(a6==1)))&&(a5==1)))&&(a4==1))&&(a22==1))&&(a3==5))))&&(a20==1))){ + a15 = 1; + a12 = 11; + a3 = 7; + a4 = 0; + a18 = 1; + a5 = 0; + a0 = 1; + return -1; + } else if((((a20==1)&&((!(a0==1)&&(!(a27==1)&&(!(a5==1)&&((((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==3))&&(a4==1))&&(a3==4))&&(a15==1)))))&&(a12==10)))&&!(a6==1))){ + a12 = 8; + a18 = 0; + a27 = 1; + a3 = 8; + a22 = 0; + a5 = 1; + a0 = 1; + return -1; + } else if((!(a15==1)&&(!(a6==1)&&((((a12==12)&&(!(a27==1)&&((((input==6)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1)))))&&(a4==1))&&!(a5==1))))&&(a0==1))&&(a20==1))))){ + a18 = 1; + a6 = 1; + a12 = 10; + a3 = 8; + a27 = 1; + a22 = 0; + return 26; + } else if(((((a12==9)&&(!(a15==1)&&(((((((((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8))&&!(a6==1))||(((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))&&(a6==1)))||((((!(a18==1)&&(a22==1))&&!(a4==1))&&(a3==4))&&(a6==1)))&&(input==5))&&!(a0==1))&&(a20==1))))&&(a27==1))&&(a5==1))){ + a0 = 1; + a4 = 1; + a22 = 0; + a18 = 0; + a5 = 0; + a12 = 12; + a3 = 6; + a27 = 0; + a6 = 1; + a15 = 1; + return 26; + } else if(((a15==1)&&((a3==5)&&(((!(a27==1)&&(((((a4==1)&&(((input==5)&&(a5==1))&&(a12==12)))&&(a0==1))&&(a20==1))&&(a22==1)))&&(a6==1))&&(a18==1))))){ + a27 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((((((a3==7)&&((((((!(a15==1)&&(input==1))&&(a22==1))&&(a12==12))&&(a20==1))&&!(a6==1))&&(a0==1)))&&!(a4==1))&&(a27==1))&&(a5==1))&&(a18==1))){ + a3 = 4; + a15 = 1; + a4 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if(((a20==1)&&((!(a4==1)&&(((a18==1)&&(((((!(a6==1)&&((a27==1)&&(input==4)))&&(a22==1))&&(a3==8))&&(a12==8))&&!(a0==1)))&&(a5==1)))&&!(a15==1)))){ + a27 = 0; + a6 = 1; + a3 = 7; + a18 = 0; + a12 = 11; + a0 = 1; + a4 = 1; + return 26; + } else if((((a3==4)&&(((((a12==8)&&((a20==1)&&(!(a18==1)&&((((input==5)&&(a22==1))&&!(a15==1))&&!(a0==1)))))&&!(a5==1))&&!(a4==1))&&!(a6==1)))&&(a27==1))){ + a5 = 1; + a4 = 1; + a15 = 1; + a18 = 1; + a6 = 1; + a0 = 1; + return -1; + } else if(((!(a27==1)&&((a18==1)&&(!(a0==1)&&((a5==1)&&(!(a15==1)&&((a6==1)&&(((a12==11)&&(((input==3)&&(a20==1))&&(a3==7)))&&!(a22==1))))))))&&(a4==1))){ + a5 = 0; + a0 = 1; + a12 = 8; + a4 = 0; + a6 = 0; + a18 = 0; + a3 = 8; + return 26; + } else if((((((a20==1)&&((a12==9)&&(((((input==1)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6)))||((!(a18==1)&&(a22==1))&&(a3==6))))&&!(a6==1))&&(a5==1))&&!(a4==1))))&&(a0==1))&&!(a27==1))&&(a15==1))){ + a3 = 8; + a27 = 1; + a5 = 0; + a12 = 10; + a22 = 0; + a18 = 0; + a15 = 0; + a0 = 0; + return -1; + } else if(((a12==12)&&((!(a4==1)&&(!(a6==1)&&((a15==1)&&((a20==1)&&((a3==6)&&((a27==1)&&(!(a0==1)&&((input==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))))))))))&&(a5==1)))){ + a18 = 1; + a0 = 1; + a3 = 4; + a4 = 1; + a22 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if(((a4==1)&&((a0==1)&&((((a20==1)&&((a6==1)&&((((input==3)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1)))))&&!(a27==1))&&!(a15==1))))&&!(a5==1))&&(a12==10))))){ + a12 = 8; + a27 = 1; + a15 = 1; + a3 = 4; + a18 = 1; + a5 = 1; + a22 = 1; + return -1; + } else if((((!(a4==1)&&((a20==1)&&((((a22==1)&&((!(a0==1)&&(((a5==1)&&(input==6))&&(a6==1)))&&!(a18==1)))&&(a12==8))&&!(a27==1))))&&(a15==1))&&(a3==7))){ + a27 = 1; + a15 = 0; + a3 = 8; + a22 = 0; + a5 = 0; + a6 = 0; + a12 = 9; + return 24; + } else if((!(a15==1)&&(!(a0==1)&&((((a12==10)&&(((a4==1)&&((a3==7)&&((a20==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==1)))))&&(a6==1)))&&!(a27==1))&&(a5==1))))){ + if((a5==1)){ + a3 = 8; + a15 = 1; + a6 = 0; + a12 = 8; + a22 = 0; + a18 = 1; + a27 = 1; + a0 = 1; + }else{ + a18 = 0; + a3 = 4; + a27 = 1; + a15 = 1; + a12 = 8; + a22 = 0; + a0 = 1; + } + return 21; + } else if(((((a4==1)&&((a12==12)&&(((a15==1)&&((a27==1)&&(!(a6==1)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==2)))))&&!(a5==1))))&&(a0==1))&&(a20==1))){ + a6 = 1; + a5 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if((!(a4==1)&&((a5==1)&&((a22==1)&&(!(a27==1)&&((((a15==1)&&(((((input==6)&&(a18==1))&&(a12==10))&&(a3==8))&&(a0==1)))&&(a20==1))&&!(a6==1))))))){ + a12 = 8; + a27 = 1; + a4 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if((!(a5==1)&&((a12==12)&&((((a6==1)&&((((a0==1)&&((((a3==8)&&(input==2))&&(a15==1))&&!(a18==1)))&&!(a22==1))&&!(a27==1)))&&!(a4==1))&&(a20==1))))){ + if((a4==1)){ + a18 = 1; + a22 = 1; + a27 = 1; + a12 = 8; + a15 = 0; + a0 = 0; + a3 = 4; + }else{ + a22 = 1; + a5 = 1; + a3 = 5; + a12 = 11; + a27 = 1; + a4 = 1; + } + return -1; + } else if(((a20==1)&&((a12==8)&&((!(a27==1)&&(!(a0==1)&&((!(a6==1)&&(!(a5==1)&&(((input==2)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a4==1))))&&(a3==8))))&&(a15==1))))){ + a27 = 1; + a6 = 1; + a18 = 1; + a0 = 1; + a5 = 1; + a22 = 1; + return 26; + } else if((!(a5==1)&&((((a15==1)&&(((a6==1)&&(!(a0==1)&&(((input==1)&&((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))||((!(a18==1)&&(a22==1))&&(a3==7))))&&(a20==1))))&&(a27==1)))&&(a12==10))&&!(a4==1)))){ + a0 = 1; + a5 = 1; + a15 = 0; + a3 = 5; + a22 = 1; + a18 = 1; + return -1; + } else if(((a15==1)&&(!(a4==1)&&(!(a18==1)&&(!(a22==1)&&(((((a12==11)&&((((input==5)&&(a20==1))&&(a3==4))&&(a27==1)))&&!(a6==1))&&(a5==1))&&!(a0==1))))))){ + a5 = 0; + a4 = 1; + a0 = 1; + a18 = 1; + a3 = 5; + a6 = 1; + return 24; + } else if(((a22==1)&&((((a12==12)&&(!(a0==1)&&((((!(a6==1)&&((a3==5)&&(((a18==1)||!(a18==1))&&(input==6))))&&(a20==1))&&(a27==1))&&!(a5==1))))&&!(a15==1))&&(a4==1)))){ + if((a27==1)){ + a6 = 1; + a3 = 8; + a12 = 10; + a4 = 0; + a18 = 1; + }else{ + a5 = 1; + a27 = 0; + a18 = 1; + a4 = 0; + a12 = 10; + a15 = 1; + } + return 21; + } else if((!(a27==1)&&(!(a5==1)&&(((a15==1)&&((!(a0==1)&&((a6==1)&&(((input==3)&&((((a22==1)&&(a18==1))&&(a3==8))||((((a18==1)&&!(a22==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7)))))&&(a20==1))))&&(a12==9)))&&!(a4==1))))){ + a3 = 5; + a5 = 1; + a27 = 1; + a12 = 8; + a6 = 0; + a4 = 1; + a0 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((a5==1)&&((a20==1)&&(((a3==8)&&(!(a22==1)&&(((a12==9)&&(((((input==2)&&!(a0==1))&&!(a18==1))&&(a27==1))&&(a6==1)))&&(a4==1))))&&(a15==1))))){ + a3 = 4; + a6 = 0; + a15 = 0; + a5 = 0; + a12 = 12; + a0 = 1; + return 26; + } else if((!(a15==1)&&(((!(a4==1)&&((a6==1)&&((a12==8)&&((!(a27==1)&&((a20==1)&&((input==2)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))))&&(a3==6)))))&&!(a0==1))&&!(a5==1)))){ + a5 = 1; + a0 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + a12 = 10; + a4 = 1; + a27 = 1; + return 26; + } else if(((a0==1)&&(((a3==8)&&(((a5==1)&&(((a6==1)&&(((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==5))&&!(a15==1))&&(a27==1)))&&(a12==8)))&&(a20==1)))&&!(a4==1)))){ + a15 = 1; + a18 = 1; + a4 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if((((a12==12)&&(((a27==1)&&(((a4==1)&&((a0==1)&&(((((a3==8)&&(!(a18==1)&&(a22==1)))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1)))))&&(input==6))&&(a6==1))))&&(a20==1)))&&(a5==1)))&&(a15==1))){ + a22 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + return -1; + } else if((((a3==5)&&(!(a22==1)&&(!(a6==1)&&((a4==1)&&((a0==1)&&(!(a5==1)&&(((a20==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a27==1)))&&!(a15==1))))))))&&(a12==8))){ + a6 = 1; + a15 = 1; + a18 = 1; + a5 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((!(a0==1)&&((((((a6==1)&&(!(a27==1)&&((a22==1)&&(((input==1)&&(a3==4))&&!(a5==1)))))&&(a12==10))&&(a18==1))&&!(a4==1))&&(a15==1)))&&(a20==1))){ + a3 = 7; + a4 = 1; + a18 = 0; + a12 = 8; + a5 = 1; + a0 = 1; + return 21; + } else if((((((!(a27==1)&&(((a4==1)&&((a12==10)&&((a20==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&!(a22==1)))))&&!(a5==1)))&&(a3==5))&&!(a0==1))&&(a6==1))&&(a15==1))){ + a18 = 0; + a15 = 0; + a3 = 6; + a27 = 1; + a5 = 1; + a22 = 1; + a12 = 9; + return 24; + } else if(((!(a15==1)&&((((((!(a27==1)&&((input==2)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1))))))&&!(a6==1))&&(a4==1))&&!(a5==1))&&(a12==12))&&(a0==1)))&&(a20==1))){ + a18 = 0; + a27 = 1; + a5 = 1; + a12 = 10; + a3 = 6; + a22 = 1; + a4 = 0; + return -1; + } else if((((a12==10)&&((((a5==1)&&((((a20==1)&&((input==2)&&(((a3==6)&&(!(a18==1)&&(a22==1)))||(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6))))))&&(a27==1))&&!(a0==1)))&&!(a15==1))&&!(a6==1)))&&!(a4==1))){ + a22 = 1; + a3 = 7; + a18 = 0; + a5 = 0; + a0 = 1; + a12 = 11; + return 26; + } else if((((!(a22==1)&&((a18==1)&&((a4==1)&&(!(a5==1)&&((((a15==1)&&(((input==6)&&!(a0==1))&&(a12==10)))&&!(a6==1))&&!(a27==1))))))&&(a3==7))&&(a20==1))){ + if((a12==12)){ + a27 = 1; + a0 = 1; + a12 = 12; + a6 = 1; + a3 = 8; + }else{ + a4 = 0; + a22 = 1; + a12 = 8; + a15 = 0; + } + return 21; + } else if(((a0==1)&&(((a3==5)&&(!(a15==1)&&(((!(a4==1)&&(!(a6==1)&&(!(a18==1)&&(((input==1)&&(a27==1))&&(a20==1)))))&&(a12==10))&&!(a5==1))))&&!(a22==1)))){ + a3 = 4; + a27 = 0; + a15 = 1; + return 26; + } else if(((a20==1)&&(!(a4==1)&&(!(a27==1)&&((((!(a5==1)&&(((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==3))&&(a12==11))&&!(a15==1)))&&(a0==1))&&(a6==1))&&(a3==7)))))){ + a6 = 0; + a0 = 0; + a3 = 4; + a18 = 0; + a27 = 1; + a22 = 0; + a12 = 10; + return -1; + } else if(((a15==1)&&(!(a4==1)&&((a20==1)&&((a3==8)&&((!(a27==1)&&((((((input==2)&&((a18==1)||!(a18==1)))&&!(a0==1))&&!(a22==1))&&(a12==10))&&(a6==1)))&&!(a5==1))))))){ + a22 = 1; + a18 = 1; + a12 = 11; + a15 = 0; + a3 = 5; + return 26; + } else if((!(a15==1)&&(((a5==1)&&((a0==1)&&(((a12==9)&&((a20==1)&&(((((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1)))||(((a3==4)&&((a22==1)&&!(a18==1)))&&!(a6==1)))&&(input==3))))&&(a27==1))))&&!(a4==1)))){ + a3 = 7; + a18 = 1; + a22 = 0; + a15 = 1; + a5 = 0; + a6 = 0; + a12 = 10; + a0 = 0; + return 21; + } else if((((a6==1)&&((((a27==1)&&(!(a22==1)&&(((a20==1)&&((a3==4)&&(!(a5==1)&&((input==3)&&((a18==1)||!(a18==1))))))&&!(a4==1))))&&!(a0==1))&&(a12==8)))&&!(a15==1))){ + a4 = 1; + a12 = 10; + a18 = 1; + a27 = 0; + a0 = 1; + a15 = 1; + a22 = 1; + a3 = 8; + return 26; + } else if((!(a4==1)&&(((a5==1)&&((((((a20==1)&&((a22==1)&&(((a3==4)&&(input==3))&&(a27==1))))&&(a18==1))&&(a12==9))&&!(a15==1))&&!(a6==1)))&&!(a0==1)))){ + a15 = 1; + a0 = 1; + a12 = 10; + a18 = 0; + a22 = 0; + return 24; + } else if((!(a5==1)&&(((a12==8)&&(((a0==1)&&(!(a27==1)&&(((a20==1)&&((((input==1)&&((a18==1)||!(a18==1)))&&(a15==1))&&(a6==1)))&&(a4==1))))&&(a3==8)))&&!(a22==1)))){ + a27 = 1; + a22 = 1; + a5 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if((((a12==10)&&(!(a4==1)&&(((a20==1)&&(((((((input==4)&&((a18==1)||!(a18==1)))&&(a27==1))&&!(a22==1))&&!(a15==1))&&!(a5==1))&&!(a6==1)))&&(a3==7))))&&(a0==1))){ + a15 = 1; + a6 = 1; + a22 = 1; + a5 = 1; + a18 = 1; + a3 = 4; + a4 = 1; + a12 = 8; + return -1; + } else if(((((a3==6)&&(!(a15==1)&&((a20==1)&&(!(a6==1)&&((a27==1)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&!(a4==1))&&(a12==9)))))))&&(a0==1))&&!(a5==1))){ + if((a15==1)){ + a15 = 1; + a6 = 1; + a22 = 0; + a3 = 7; + a0 = 0; + a12 = 10; + a4 = 1; + a18 = 1; + }else{ + a3 = 4; + a22 = 0; + a18 = 1; + a5 = 1; + a27 = 0; + a6 = 1; + } + return 21; + } else if(((a20==1)&&(!(a5==1)&&(((a0==1)&&((((a6==1)&&(((a12==8)&&((input==2)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))&&(a27==1)))&&!(a4==1))&&!(a15==1)))&&(a3==4))))){ + a15 = 1; + a22 = 1; + a18 = 1; + a4 = 1; + a5 = 1; + return -1; + } else if((((a12==10)&&(!(a0==1)&&((!(a27==1)&&((a20==1)&&((a3==7)&&(((!(a15==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a22==1))&&(a6==1)))))&&(a5==1))))&&!(a4==1))){ + a12 = 8; + a27 = 1; + a15 = 1; + a4 = 1; + a0 = 1; + a3 = 6; + a22 = 0; + a6 = 0; + a18 = 0; + return 26; + } else if((((a20==1)&&((a12==9)&&(!(a5==1)&&(((!(a6==1)&&((a4==1)&&(((((a18==1)||!(a18==1))&&(input==3))&&(a3==4))&&!(a0==1))))&&!(a22==1))&&!(a15==1)))))&&!(a27==1))){ + if((a3==4)){ + a3 = 7; + a27 = 1; + a0 = 1; + a18 = 1; + a22 = 1; + a12 = 8; + a6 = 1; + a15 = 1; + a5 = 1; + }else{ + a15 = 1; + a27 = 1; + a18 = 1; + a22 = 1; + a0 = 1; + a5 = 1; + a12 = 8; + a6 = 1; + a3 = 5; + } + return 26; + } else if(((!(a18==1)&&((a3==4)&&((a0==1)&&((((((((a22==1)&&(input==5))&&(a20==1))&&!(a4==1))&&(a6==1))&&(a12==10))&&(a15==1))&&(a5==1)))))&&(a27==1))){ + if((a4==1)){ + a15 = 0; + a3 = 6; + a5 = 0; + a12 = 9; + a0 = 0; + }else{ + a12 = 11; + a15 = 0; + a22 = 0; + a0 = 0; + a6 = 0; + a18 = 1; + } + return -1; + } else if(((a4==1)&&(((a12==12)&&((a0==1)&&((a3==4)&&(((a27==1)&&((a20==1)&&(!(a6==1)&&((input==3)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))))&&(a15==1)))))&&!(a5==1)))){ + a6 = 1; + a22 = 0; + a4 = 0; + a3 = 6; + a5 = 1; + a18 = 1; + a12 = 9; + return 24; + } else if(((a22==1)&&(((a15==1)&&((((a3==6)&&((a20==1)&&((a6==1)&&((a0==1)&&((!(a5==1)&&(input==2))&&!(a27==1))))))&&(a18==1))&&(a12==11)))&&(a4==1)))){ + a27 = 1; + a6 = 0; + a12 = 10; + a22 = 0; + return -1; + } else if((((a27==1)&&(((!(a0==1)&&(((((((input==6)&&!(a22==1))&&(a12==10))&&(a15==1))&&(a4==1))&&(a20==1))&&(a3==5)))&&(a5==1))&&(a6==1)))&&(a18==1))){ + a3 = 4; + a12 = 8; + a22 = 1; + a0 = 1; + return -1; + } else if(((((a6==1)&&(!(a5==1)&&(!(a0==1)&&((((((a20==1)&&((input==4)&&((a18==1)||!(a18==1))))&&!(a15==1))&&(a12==11))&&(a3==6))&&(a27==1)))))&&(a4==1))&&(a22==1))){ + a0 = 1; + a15 = 1; + a3 = 4; + a18 = 1; + a5 = 1; + a12 = 8; + return -1; + } else if((((a5==1)&&((a22==1)&&((a12==9)&&(!(a18==1)&&((a3==5)&&(!(a6==1)&&(!(a15==1)&&((a4==1)&&(((a0==1)&&(input==5))&&(a20==1))))))))))&&!(a27==1))){ + a22 = 0; + a5 = 0; + a4 = 0; + a12 = 12; + a15 = 1; + return 21; + } else if((!(a27==1)&&(((((a3==5)&&(((!(a15==1)&&((!(a5==1)&&((input==4)&&(a22==1)))&&(a12==10)))&&!(a4==1))&&(a20==1)))&&(a6==1))&&!(a18==1))&&(a0==1)))){ + a3 = 4; + a0 = 0; + a12 = 11; + a27 = 1; + return 21; + } else if((((a3==5)&&(((!(a6==1)&&((((!(a5==1)&&((input==3)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&(a20==1))&&(a15==1))&&(a4==1)))&&!(a0==1))&&!(a27==1)))&&(a12==8))){ + a5 = 1; + a0 = 1; + a3 = 8; + a27 = 1; + a6 = 1; + a22 = 1; + a18 = 0; + a4 = 0; + return -1; + } else if(((a0==1)&&((a20==1)&&((a22==1)&&((((!(a18==1)&&((!(a5==1)&&(!(a4==1)&&((input==6)&&(a12==8))))&&(a27==1)))&&(a3==8))&&!(a6==1))&&!(a15==1)))))){ + a12 = 11; + a3 = 4; + a15 = 1; + a18 = 1; + return 21; + } else if((!(a6==1)&&((((a12==12)&&(((((!(a27==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==2)))&&(a20==1))&&!(a5==1))&&(a4==1))&&(a3==5)))&&(a0==1))&&(a15==1)))){ + a4 = 0; + a22 = 1; + a3 = 6; + a27 = 1; + a18 = 0; + a12 = 11; + return 26; + } else if((((a0==1)&&((a5==1)&&((((!(a6==1)&&(((input==4)&&((((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1))))||((a3==5)&&((a18==1)&&(a22==1)))))&&!(a4==1)))&&(a15==1))&&(a12==10))&&(a27==1))))&&(a20==1))){ + a15 = 0; + a0 = 0; + a3 = 4; + a12 = 8; + a18 = 0; + a22 = 0; + return 26; + } else if(((((a15==1)&&((a5==1)&&(((a22==1)&&((((a12==10)&&((a20==1)&&((input==1)&&!(a18==1))))&&(a6==1))&&!(a27==1)))&&(a0==1))))&&(a4==1))&&(a3==6))){ + a27 = 1; + a12 = 11; + a22 = 0; + a3 = 7; + return 26; + } else if(((((a22==1)&&((a12==10)&&((a6==1)&&(!(a15==1)&&((((((input==5)&&(a5==1))&&(a3==5))&&!(a0==1))&&!(a18==1))&&!(a27==1))))))&&(a20==1))&&(a4==1))){ + a27 = 1; + a3 = 6; + a15 = 1; + a4 = 0; + a0 = 1; + a12 = 8; + return 24; + } else if(((a6==1)&&((a22==1)&&((((a12==12)&&(((a27==1)&&(((a3==4)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a5==1)))&&(a4==1)))&&!(a0==1)))&&!(a15==1))&&(a20==1))))){ + a0 = 1; + a12 = 8; + a18 = 1; + a15 = 1; + return -1; + } else if(((a15==1)&&((((((a3==8)&&((a12==11)&&((a6==1)&&(((!(a0==1)&&(input==3))&&(a4==1))&&!(a18==1)))))&&(a20==1))&&(a27==1))&&(a22==1))&&(a5==1)))){ + a3 = 4; + a18 = 1; + a0 = 1; + a12 = 8; + return -1; + } else if((((((((a27==1)&&((a18==1)&&(((((a22==1)&&(input==4))&&!(a5==1))&&!(a4==1))&&(a20==1))))&&!(a0==1))&&(a3==6))&&(a6==1))&&(a15==1))&&(a12==8))){ + a22 = 0; + a6 = 0; + a12 = 12; + a0 = 1; + a3 = 4; + a4 = 1; + return 26; + } else if((((a20==1)&&(!(a0==1)&&(!(a5==1)&&((((a4==1)&&(((input==4)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))||((a3==8)&&(!(a18==1)&&(a22==1)))))&&!(a27==1)))&&(a6==1))&&(a15==1)))))&&(a12==10))){ + if((a6==1)){ + a12 = 12; + a0 = 1; + a22 = 0; + a4 = 0; + a15 = 0; + a3 = 6; + a18 = 0; + a6 = 0; + }else{ + a4 = 0; + a27 = 1; + a18 = 1; + a22 = 1; + a3 = 6; + a12 = 9; + } + return -1; + } else if((!(a6==1)&&((a15==1)&&(!(a5==1)&&(((((a27==1)&&((a20==1)&&(((((a22==1)&&(a18==1))&&(a3==8))||(((a3==7)&&((a18==1)&&!(a22==1)))||((a3==7)&&(!(a22==1)&&!(a18==1)))))&&(input==1))))&&(a12==9))&&(a0==1))&&(a4==1)))))){ + a0 = 0; + a3 = 8; + a15 = 0; + a22 = 0; + a4 = 0; + a18 = 1; + a5 = 1; + return 24; + } else if((((a6==1)&&(!(a27==1)&&(!(a15==1)&&(((a4==1)&&((((a0==1)&&((input==2)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&(a5==1))&&(a12==9)))&&(a3==8)))))&&(a20==1))){ + a12 = 8; + a22 = 1; + a27 = 1; + a18 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if((((a20==1)&&((((((((a5==1)&&((((a18==1)||!(a18==1))&&(input==3))&&(a3==7)))&&(a6==1))&&!(a22==1))&&(a27==1))&&!(a4==1))&&!(a0==1))&&(a12==10)))&&!(a15==1))){ + a6 = 0; + a5 = 0; + a22 = 1; + a4 = 1; + a18 = 1; + a0 = 1; + a3 = 8; + return 26; + } else if((!(a4==1)&&((a3==5)&&(((a15==1)&&((a20==1)&&(((((a12==10)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==5)))&&(a5==1))&&!(a6==1))&&!(a27==1))))&&!(a0==1))))){ + if((a27==1)){ + a6 = 1; + a4 = 1; + a18 = 1; + a27 = 1; + a0 = 1; + a12 = 8; + a3 = 7; + a22 = 0; + }else{ + a18 = 0; + a22 = 1; + a0 = 1; + a3 = 7; + a4 = 1; + a12 = 8; + a27 = 1; + } + return 26; + } else if((((((a27==1)&&(!(a0==1)&&((a4==1)&&(!(a15==1)&&((((a20==1)&&((input==3)&&((a18==1)||!(a18==1))))&&(a3==4))&&(a12==12))))))&&(a6==1))&&(a22==1))&&!(a5==1))){ + if((a15==1)){ + a3 = 7; + a5 = 1; + a18 = 0; + a12 = 9; + a6 = 0; + a0 = 1; + a27 = 0; + a4 = 0; + }else{ + a22 = 0; + a12 = 11; + a3 = 5; + a6 = 0; + a18 = 1; + a15 = 1; + a27 = 0; + } + return 26; + } else if((!(a15==1)&&((a6==1)&&(((a4==1)&&(((a3==7)&&((((a27==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==5)))&&(a12==10))&&(a5==1)))&&(a20==1)))&&(a0==1))))){ + a18 = 0; + a6 = 0; + a15 = 1; + a3 = 5; + a4 = 0; + a22 = 1; + a12 = 8; + return -1; + } else if((!(a5==1)&&((!(a4==1)&&((a20==1)&&(((a12==12)&&((!(a0==1)&&((((!(a18==1)&&(a22==1))&&(a3==8))||(((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1)))))&&(input==2)))&&(a15==1)))&&(a27==1))))&&(a6==1)))){ + a5 = 1; + a0 = 1; + a4 = 1; + a12 = 8; + a3 = 4; + a18 = 0; + a22 = 0; + a6 = 0; + return -1; + } else if((!(a5==1)&&(((a20==1)&&((a6==1)&&((a27==1)&&(!(a0==1)&&((a15==1)&&(((((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==1))&&!(a4==1)))))))&&(a12==8)))){ + a5 = 1; + a22 = 1; + a15 = 0; + a18 = 0; + a0 = 1; + a12 = 12; + a3 = 4; + return -1; + } else if((((!(a0==1)&&((((a20==1)&&((input==5)&&(((((!(a22==1)&&!(a18==1))&&(a4==1))&&(a3==8))&&!(a6==1))||((a6==1)&&((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1)))))))&&(a12==11))&&!(a15==1)))&&!(a27==1))&&(a5==1))){ + if((a3==5)){ + a6 = 1; + a12 = 8; + a27 = 1; + a22 = 0; + a18 = 0; + a4 = 0; + a0 = 1; + a15 = 1; + a3 = 8; + }else{ + a18 = 0; + a6 = 0; + a0 = 1; + a12 = 8; + a15 = 1; + a27 = 1; + a4 = 1; + a22 = 0; + a3 = 7; + } + return 26; + } else if((((((a6==1)&&((a20==1)&&(!(a0==1)&&(((a27==1)&&((a15==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&!(a4==1))))&&!(a22==1)))))&&(a12==8))&&(a5==1))&&(a3==5))){ + a18 = 0; + a3 = 6; + a15 = 0; + a22 = 1; + a0 = 1; + a5 = 0; + a12 = 11; + a27 = 0; + return 21; + } else if((((a12==8)&&(((a5==1)&&((((((a4==1)&&((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a0==1))&&(a3==6))&&(a15==1))&&(a20==1)))&&!(a6==1)))&&!(a27==1))){ + a15 = 0; + a18 = 0; + a3 = 8; + a6 = 1; + a0 = 1; + a22 = 1; + a5 = 0; + a12 = 11; + a4 = 0; + return -1; + } else if(((a20==1)&&(((((a12==8)&&((((a22==1)&&((a4==1)&&(!(a5==1)&&((input==4)&&!(a27==1)))))&&!(a0==1))&&(a15==1)))&&!(a6==1))&&(a3==5))&&(a18==1)))){ + a5 = 1; + a22 = 0; + a18 = 0; + a3 = 7; + a27 = 1; + a6 = 1; + a0 = 1; + return -1; + } else if(((!(a6==1)&&((a5==1)&&((a15==1)&&((a12==10)&&((((a0==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))||(((a22==1)&&!(a18==1))&&(a3==6)))&&(input==4)))&&!(a4==1))&&(a20==1))))))&&(a27==1))){ + a18 = 1; + a22 = 1; + a3 = 7; + a4 = 1; + a6 = 1; + a15 = 0; + a12 = 8; + return -1; + } else if((((a20==1)&&(((a0==1)&&(((a12==9)&&((a27==1)&&(((((a3==4)&&(input==5))&&!(a6==1))&&!(a4==1))&&(a5==1))))&&!(a18==1)))&&(a15==1)))&&(a22==1))){ + a6 = 1; + a5 = 0; + a3 = 7; + a12 = 12; + a18 = 1; + return 26; + } else if((((a12==12)&&(((a4==1)&&(((!(a6==1)&&(((((!(a18==1)&&(a22==1))&&(a3==5))||(((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5))))&&(input==1))&&(a27==1)))&&(a5==1))&&(a15==1)))&&!(a0==1)))&&(a20==1))){ + a0 = 1; + a6 = 1; + a18 = 1; + a3 = 6; + a12 = 10; + a4 = 0; + a22 = 1; + return 21; + } else if(((a0==1)&&((a4==1)&&(!(a15==1)&&((a27==1)&&(!(a6==1)&&(!(a5==1)&&(((a20==1)&&((a3==4)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==6))))&&(a12==11))))))))){ + a22 = 0; + a27 = 0; + a6 = 1; + a18 = 0; + a3 = 5; + return 26; + } else if((!(a15==1)&&((a5==1)&&(!(a4==1)&&((a3==7)&&(((a12==12)&&((a6==1)&&((a0==1)&&((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==5))&&(a20==1)))))&&!(a27==1))))))){ + a0 = 0; + a22 = 0; + a5 = 0; + a12 = 10; + a6 = 0; + a3 = 6; + a18 = 0; + a27 = 1; + return 21; + } else if(((a27==1)&&((((a0==1)&&((a20==1)&&((a12==9)&&(((((((a22==1)&&!(a18==1))&&(a3==7))||(((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1)))))&&(input==1))&&(a15==1))&&!(a6==1)))))&&(a4==1))&&(a5==1)))){ + if((a22==1)){ + a5 = 0; + a22 = 1; + a3 = 5; + a18 = 1; + a0 = 0; + }else{ + a12 = 12; + a3 = 5; + a22 = 0; + a4 = 0; + a18 = 0; + } + return 26; + } else if((((a3==6)&&((a12==10)&&(!(a27==1)&&(((a15==1)&&((!(a22==1)&&(((a20==1)&&((input==6)&&((a18==1)||!(a18==1))))&&!(a6==1)))&&(a4==1)))&&!(a5==1)))))&&!(a0==1))){ + a12 = 8; + a0 = 1; + a22 = 1; + a3 = 8; + a18 = 1; + a27 = 1; + a5 = 1; + return 21; + } else if(((a22==1)&&((a12==11)&&((a4==1)&&(!(a5==1)&&((((a6==1)&&(((((input==6)&&((a18==1)||!(a18==1)))&&!(a0==1))&&(a3==6))&&(a20==1)))&&!(a15==1))&&(a27==1))))))){ + a6 = 0; + a4 = 0; + a12 = 10; + a18 = 1; + a15 = 1; + a5 = 1; + a27 = 0; + a0 = 1; + a3 = 7; + return -1; + } else if(((a0==1)&&(((a3==6)&&((a6==1)&&((a18==1)&&((!(a22==1)&&((a20==1)&&((a4==1)&&((!(a5==1)&&(input==4))&&(a12==11)))))&&!(a27==1)))))&&!(a15==1)))){ + a5 = 1; + a3 = 4; + a27 = 1; + a4 = 0; + return -1; + } else if(((a12==10)&&(((a5==1)&&((!(a27==1)&&((a4==1)&&((!(a6==1)&&(!(a22==1)&&(!(a0==1)&&((input==2)&&((a18==1)||!(a18==1))))))&&(a20==1))))&&!(a15==1)))&&(a3==8)))){ + if((a27==1)){ + a5 = 0; + a4 = 0; + a12 = 9; + a18 = 0; + a0 = 1; + }else{ + a22 = 1; + a0 = 1; + a15 = 1; + a6 = 1; + a5 = 0; + a12 = 11; + a3 = 4; + a18 = 1; + } + return 21; + } else if(((((a12==10)&&(!(a27==1)&&(((a4==1)&&(!(a6==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==3))&&!(a5==1))))&&(a20==1))))&&!(a0==1))&&!(a15==1))){ + a27 = 1; + a18 = 0; + a0 = 1; + a3 = 8; + a22 = 0; + a15 = 1; + a12 = 8; + a5 = 1; + return -1; + } else if(((a6==1)&&((!(a18==1)&&(((a12==10)&&(!(a5==1)&&((((a22==1)&&((a3==7)&&((input==6)&&(a0==1))))&&!(a27==1))&&!(a15==1))))&&(a4==1)))&&(a20==1)))){ + a4 = 0; + a5 = 1; + a27 = 1; + a3 = 4; + a12 = 12; + return 26; + } else if((!(a5==1)&&((((((a6==1)&&((((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==6))&&(a12==12))&&!(a15==1))&&(a4==1)))&&(a0==1))&&(a20==1))&&(a3==4))&&!(a27==1)))){ + a0 = 0; + a22 = 1; + a4 = 0; + a27 = 1; + a12 = 9; + a6 = 0; + a3 = 6; + a18 = 0; + return -1; + } else if(((a3==8)&&(((((a20==1)&&((((a12==12)&&(!(a4==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==5))))&&(a6==1))&&(a15==1)))&&(a27==1))&&!(a0==1))&&(a5==1)))){ + a27 = 0; + a5 = 0; + a0 = 1; + a12 = 10; + a3 = 7; + a18 = 1; + a22 = 0; + return 26; + } else if((((a20==1)&&(((a15==1)&&(((a5==1)&&((a12==9)&&((((((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==5))&&(a27==1))))&&(a6==1)))&&!(a4==1)))&&(a0==1))){ + a18 = 0; + a22 = 0; + a12 = 12; + a15 = 0; + a6 = 0; + a3 = 8; + return 21; + } else if((((((((a12==10)&&(((a4==1)&&((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==5))&&(a15==1)))&&!(a5==1)))&&(a20==1))&&(a6==1))&&!(a27==1))&&(a3==5))&&(a0==1))){ + a3 = 7; + a6 = 0; + a18 = 0; + a5 = 1; + a15 = 0; + a12 = 9; + a22 = 0; + return 21; + } else if(((((((((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5))&&!(a6==1))&&(a3==6))&&!(a4==1))&&(a12==9))&&(a20==1))&&!(a5==1))&&(a27==1))&&!(a0==1))&&(a15==1))){ + a22 = 1; + a3 = 4; + a4 = 1; + a6 = 1; + a18 = 1; + a12 = 8; + a0 = 1; + a5 = 1; + return -1; + } else if((!(a4==1)&&((a3==8)&&(((a27==1)&&((a12==10)&&(!(a15==1)&&((!(a6==1)&&((a20==1)&&((a22==1)&&(((a18==1)||!(a18==1))&&(input==2)))))&&!(a0==1)))))&&(a5==1))))){ + a12 = 8; + a4 = 1; + a15 = 1; + a6 = 1; + a18 = 1; + a3 = 4; + a0 = 1; + return -1; + } else if((((a12==8)&&((!(a0==1)&&((!(a4==1)&&((((((!(a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8))))&&(input==5))&&(a5==1))&&(a6==1)))&&!(a27==1)))&&(a15==1)))&&(a20==1))){ + if((a27==1)){ + a5 = 0; + a27 = 1; + a18 = 0; + a22 = 1; + a3 = 6; + a12 = 10; + a0 = 1; + }else{ + a18 = 1; + a4 = 1; + a3 = 4; + a22 = 1; + a27 = 1; + a0 = 1; + } + return -1; + } else if(((a20==1)&&(((a27==1)&&((a3==4)&&((a15==1)&&(((a4==1)&&((a12==10)&&(((!(a5==1)&&(input==1))&&!(a0==1))&&!(a6==1))))&&(a22==1)))))&&!(a18==1)))){ + a22 = 0; + a12 = 12; + a5 = 1; + a0 = 1; + a3 = 8; + return 24; + } else if((((!(a22==1)&&((a20==1)&&((a12==11)&&(((a27==1)&&(!(a15==1)&&((a3==4)&&((a4==1)&&(((a18==1)||!(a18==1))&&(input==2))))))&&(a5==1)))))&&(a6==1))&&!(a0==1))){ + a18 = 1; + a12 = 8; + a15 = 1; + a22 = 1; + a0 = 1; + return -1; + } else if(((((a20==1)&&(((((a3==6)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==4))&&!(a4==1))&&(a6==1)))&&(a12==9))&&(a0==1))&&!(a27==1)))&&!(a5==1))&&!(a15==1))){ + if((a4==1)){ + a27 = 1; + a22 = 0; + a4 = 1; + a0 = 0; + a12 = 11; + a18 = 1; + a5 = 1; + }else{ + a18 = 0; + a12 = 10; + a3 = 7; + a22 = 0; + } + return 21; + } else if(((a4==1)&&((a20==1)&&((a27==1)&&((((!(a0==1)&&(!(a5==1)&&((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==5))))&&!(a6==1))&&(a12==8))&&!(a15==1)))))){ + a0 = 1; + a12 = 9; + a22 = 0; + a27 = 0; + a15 = 1; + a6 = 1; + a3 = 8; + a5 = 1; + a4 = 0; + a18 = 0; + return -1; + } else if((((a4==1)&&(!(a15==1)&&((a5==1)&&((a12==12)&&((((input==3)&&(((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1))))&&(a27==1))&&(a0==1))))))&&(a20==1))){ + a18 = 0; + a6 = 1; + a12 = 11; + a22 = 0; + a3 = 5; + return 24; + } else if(((a0==1)&&(((a15==1)&&(!(a6==1)&&(((a20==1)&&((a12==10)&&(((((input==1)&&((a18==1)||!(a18==1)))&&(a5==1))&&!(a27==1))&&!(a4==1))))&&(a22==1))))&&(a3==6)))){ + a12 = 8; + a18 = 1; + a6 = 1; + a4 = 1; + a27 = 1; + a3 = 4; + return -1; + } else if(((((a3==5)&&(!(a15==1)&&((a20==1)&&((a12==11)&&((a0==1)&&(!(a4==1)&&((a27==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==2)))))))))&&(a6==1))&&!(a5==1))){ + a4 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + a22 = 1; + a5 = 1; + a15 = 1; + return -1; + } else if(((a3==4)&&(((a20==1)&&((a5==1)&&((((a12==11)&&(((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==1))&&!(a15==1))&&(a4==1)))&&!(a27==1))&&!(a6==1))))&&!(a0==1)))){ + a12 = 8; + a3 = 5; + a27 = 1; + a15 = 1; + a18 = 1; + a0 = 1; + a22 = 0; + return -1; + } else if((((a6==1)&&((a0==1)&&((a4==1)&&(((a12==11)&&(!(a5==1)&&((a20==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&(a27==1)))))&&(a3==5)))))&&(a15==1))){ + a18 = 1; + a5 = 1; + a3 = 7; + a4 = 0; + a22 = 0; + return -1; + } else if((!(a27==1)&&(((a22==1)&&((((((a20==1)&&((a18==1)&&((a0==1)&&(!(a6==1)&&(input==4)))))&&(a3==4))&&(a4==1))&&!(a5==1))&&(a15==1)))&&(a12==11)))){ + a27 = 1; + a5 = 1; + a12 = 8; + a6 = 1; + return -1; + } else if(((a15==1)&&((a27==1)&&(((((!(a0==1)&&(((input==1)&&((((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==6)))||(((a22==1)&&(a18==1))&&(a3==7))))&&!(a6==1)))&&!(a5==1))&&!(a4==1))&&(a12==8))&&(a20==1))))){ + a12 = 12; + a4 = 1; + a3 = 7; + a18 = 1; + a5 = 1; + a6 = 1; + a22 = 0; + a0 = 1; + return 26; + } else if(((a0==1)&&(((a4==1)&&((!(a27==1)&&(((((input==3)&&(((a3==6)&&((a18==1)&&(a22==1)))||(((a3==5)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==5)))))&&(a20==1))&&(a5==1))&&!(a15==1)))&&(a12==9)))&&!(a6==1)))){ + a15 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + a27 = 1; + return -1; + } else if(((((a12==8)&&((!(a0==1)&&((a20==1)&&((a4==1)&&((a27==1)&&((a6==1)&&((input==1)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))))))&&(a5==1)))&&(a3==8))&&(a15==1))){ + a18 = 1; + a0 = 1; + a22 = 1; + a12 = 10; + a6 = 0; + a4 = 0; + return 26; + } else if((((a12==9)&&((((a0==1)&&((a4==1)&&(((a15==1)&&((a27==1)&&((input==4)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&(a3==5))))&&(a20==1))&&!(a5==1)))&&!(a6==1))){ + a12 = 11; + a4 = 0; + a18 = 0; + a22 = 0; + a15 = 0; + a5 = 1; + a3 = 4; + return 26; + } else if((!(a27==1)&&((a12==9)&&((a15==1)&&((a5==1)&&((((((a3==5)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==1)))&&(a20==1))&&(a4==1))&&(a6==1))&&!(a0==1))))))){ + a22 = 1; + a0 = 1; + a12 = 8; + a3 = 7; + a18 = 1; + a27 = 1; + return 24; + } else if((((a3==6)&&((a5==1)&&(((a20==1)&&(!(a27==1)&&((((((input==1)&&(a0==1))&&(a18==1))&&!(a4==1))&&(a15==1))&&(a12==12))))&&!(a6==1))))&&!(a22==1))){ + a27 = 1; + a4 = 1; + a12 = 10; + a5 = 0; + a3 = 5; + a0 = 0; + return -1; + } else if((((a4==1)&&((a12==11)&&((a27==1)&&((((a20==1)&&(((input==6)&&((((a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a22==1)&&!(a18==1))))))&&!(a6==1)))&&!(a5==1))&&(a15==1)))))&&!(a0==1))){ + a15 = 0; + a3 = 4; + a5 = 1; + a4 = 0; + a18 = 1; + a22 = 1; + a12 = 12; + a0 = 1; + a6 = 1; + return 21; + } else if((!(a27==1)&&(((a5==1)&&((((((((((a18==1)||!(a18==1))&&(input==4))&&!(a4==1))&&(a3==5))&&!(a22==1))&&(a6==1))&&(a20==1))&&!(a0==1))&&(a12==9)))&&(a15==1)))){ + a0 = 1; + a18 = 0; + a3 = 4; + a27 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if(((!(a0==1)&&((a27==1)&&(((((((((input==3)&&((a18==1)||!(a18==1)))&&!(a15==1))&&!(a5==1))&&(a3==4))&&(a20==1))&&(a22==1))&&(a12==10))&&(a6==1))))&&!(a4==1))){ + a3 = 5; + a18 = 1; + a4 = 1; + a0 = 1; + a22 = 0; + a5 = 1; + a15 = 1; + a12 = 12; + return 26; + } else if((((a20==1)&&((!(a22==1)&&(!(a4==1)&&((((((a3==6)&&(((a18==1)||!(a18==1))&&(input==3)))&&!(a15==1))&&(a27==1))&&!(a5==1))&&!(a0==1))))&&(a12==9)))&&!(a6==1))){ + a6 = 1; + a18 = 0; + a15 = 1; + a0 = 1; + a22 = 1; + a5 = 1; + return 24; + } else if((((((a27==1)&&((a0==1)&&((a20==1)&&(((a22==1)&&((a4==1)&&(((input==1)&&!(a6==1))&&(a12==10))))&&(a18==1)))))&&!(a15==1))&&(a5==1))&&(a3==7))){ + if((a20==1)){ + a0 = 0; + a3 = 6; + a6 = 1; + a5 = 0; + a4 = 0; + }else{ + a3 = 4; + a6 = 1; + a18 = 0; + } + return -1; + } else if(((a4==1)&&((a27==1)&&((a18==1)&&(((a3==6)&&(((((!(a5==1)&&((a15==1)&&(input==1)))&&!(a6==1))&&(a22==1))&&(a20==1))&&(a12==11)))&&(a0==1)))))){ + if((a18==1)){ + a0 = 0; + a6 = 1; + a5 = 1; + a12 = 10; + a15 = 0; + a18 = 0; + }else{ + a3 = 7; + a4 = 0; + a5 = 1; + a15 = 0; + } + return -1; + } else if((!(a27==1)&&(((a4==1)&&(((a0==1)&&((((a3==6)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==6))&&!(a6==1)))&&!(a5==1))&&(a20==1)))&&(a15==1)))&&(a12==9)))){ + a3 = 4; + a12 = 8; + a5 = 1; + a18 = 1; + a27 = 1; + a22 = 1; + a6 = 1; + return -1; + } else if(((a0==1)&&(!(a15==1)&&(((a18==1)&&((((((((a27==1)&&(input==3))&&(a22==1))&&!(a4==1))&&(a20==1))&&(a12==8))&&(a6==1))&&(a3==6)))&&!(a5==1))))){ + a12 = 11; + a5 = 1; + a4 = 1; + a3 = 8; + a18 = 0; + a6 = 0; + return 26; + } else if(((((a15==1)&&((a20==1)&&((!(a27==1)&&(((a12==9)&&((a3==8)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==5))))&&(a6==1)))&&!(a0==1))))&&(a4==1))&&!(a5==1))){ + if((a27==1)){ + a18 = 1; + a22 = 1; + a3 = 6; + a27 = 1; + }else{ + a22 = 1; + a5 = 1; + a27 = 1; + a12 = 8; + a4 = 0; + a3 = 7; + a18 = 0; + a0 = 1; + } + return -1; + } else if(((a27==1)&&(!(a22==1)&&((a18==1)&&((a4==1)&&((a20==1)&&(!(a0==1)&&(((a3==8)&&(((a5==1)&&((input==2)&&(a6==1)))&&(a12==11)))&&(a15==1))))))))){ + a3 = 5; + a6 = 0; + a15 = 0; + a0 = 1; + return 26; + } else if((!(a15==1)&&((a22==1)&&((a5==1)&&(((a12==9)&&((!(a27==1)&&((a3==6)&&(!(a6==1)&&(((input==2)&&!(a0==1))&&!(a4==1)))))&&!(a18==1)))&&(a20==1)))))){ + if((a27==1)){ + a15 = 1; + a0 = 1; + a18 = 1; + a6 = 1; + a12 = 11; + a3 = 7; + a22 = 0; + }else{ + a4 = 1; + a27 = 1; + a15 = 1; + a3 = 5; + a12 = 8; + a0 = 1; + } + return 21; + } else if(((!(a27==1)&&((a3==4)&&(((((a12==12)&&((((input==4)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a20==1))&&(a15==1)))&&(a0==1))&&(a4==1))&&(a5==1))))&&(a6==1))){ + a22 = 0; + a18 = 0; + a12 = 10; + a6 = 0; + return -1; + } else if(((((a27==1)&&((a4==1)&&(!(a5==1)&&((((a20==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==5))&&(a0==1)))&&(a12==12))&&(a3==6)))))&&!(a15==1))&&!(a6==1))){ + a22 = 0; + a6 = 1; + a15 = 1; + a18 = 1; + return 21; + } else if((!(a4==1)&&((!(a15==1)&&(((a20==1)&&(((((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==4))&&(a12==11))&&(a0==1))&&!(a5==1))&&(a6==1)))&&(a27==1)))&&(a3==5)))){ + a3 = 7; + a18 = 0; + a15 = 1; + a12 = 10; + a6 = 0; + a22 = 1; + return -1; + } else if((((a20==1)&&(((((a6==1)&&((((((input==2)&&((a18==1)||!(a18==1)))&&(a22==1))&&!(a0==1))&&(a12==8))&&(a5==1)))&&!(a27==1))&&!(a15==1))&&(a3==6)))&&(a4==1))){ + if((a18==1)){ + a0 = 1; + a15 = 1; + a18 = 0; + a27 = 1; + a4 = 0; + a3 = 4; + }else{ + a18 = 1; + a12 = 11; + a3 = 5; + a22 = 0; + a5 = 0; + a4 = 0; + a15 = 1; + } + return 26; + } else if((((a6==1)&&((a18==1)&&((((a0==1)&&(((a12==11)&&(((a3==7)&&((a20==1)&&(input==1)))&&(a22==1)))&&(a4==1)))&&(a15==1))&&!(a27==1))))&&(a5==1))){ + a22 = 0; + a3 = 5; + a12 = 8; + return -1; + } else if((!(a5==1)&&(((a12==9)&&((((!(a6==1)&&(!(a27==1)&&((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==2))&&!(a0==1))))&&!(a15==1))&&(a3==5))&&(a20==1)))&&!(a4==1)))){ + a3 = 4; + a22 = 0; + a27 = 1; + a4 = 1; + a12 = 12; + a18 = 0; + return -1; + } else if(((((a0==1)&&(((a20==1)&&(!(a27==1)&&((a3==6)&&((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==1))&&(a15==1))&&!(a5==1)))))&&(a12==12)))&&!(a4==1))&&(a6==1))){ + a18 = 0; + a3 = 7; + a6 = 0; + a12 = 8; + a22 = 0; + a4 = 1; + return 26; + } else if(((((a4==1)&&(!(a5==1)&&(((((((input==5)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a0==1))&&(a15==1))&&(a3==4))&&!(a27==1))&&(a20==1))))&&(a12==11))&&!(a6==1))){ + a5 = 1; + a15 = 0; + a22 = 1; + a18 = 0; + a3 = 8; + a6 = 1; + a12 = 10; + a27 = 1; + return -1; + } else if(((!(a0==1)&&((((!(a5==1)&&(!(a4==1)&&((((input==3)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&(a12==8))&&(a15==1))))&&(a27==1))&&(a3==8))&&(a20==1)))&&!(a6==1))){ + a6 = 1; + a22 = 1; + a0 = 1; + a5 = 1; + a4 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((!(a0==1)&&((!(a4==1)&&((((((a12==8)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a20==1)))&&!(a27==1))&&(a15==1))&&!(a6==1))&&(a5==1)))&&(a3==5)))){ + if((a4==1)){ + a22 = 1; + a18 = 1; + a0 = 1; + a27 = 1; + a6 = 1; + }else{ + a22 = 0; + a6 = 1; + a27 = 1; + a4 = 1; + a0 = 1; + a18 = 0; + a3 = 7; + } + return 26; + } else if(((a3==7)&&(!(a22==1)&&(((((a12==11)&&(((((((a18==1)||!(a18==1))&&(input==6))&&!(a6==1))&&(a5==1))&&(a20==1))&&(a15==1)))&&!(a0==1))&&!(a27==1))&&!(a4==1))))){ + a22 = 1; + a3 = 6; + a4 = 1; + a0 = 1; + a18 = 0; + a27 = 1; + a12 = 8; + return -1; + } else if(((!(a0==1)&&(((((a12==8)&&(((((((a22==1)&&(a18==1))&&(a3==7))||(((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a22==1)&&!(a18==1)))))&&(input==5))&&(a4==1))&&!(a27==1)))&&(a5==1))&&!(a15==1))&&(a20==1)))&&(a6==1))){ + a18 = 1; + a5 = 0; + a12 = 9; + a22 = 0; + a0 = 1; + a27 = 1; + a3 = 4; + return 26; + } else if((((((a3==5)&&(((a20==1)&&(((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&(a12==9))&&(a5==1))&&!(a0==1)))&&!(a4==1)))&&!(a27==1))&&!(a15==1))&&!(a6==1))){ + if((a6==1)){ + a4 = 1; + a0 = 1; + a18 = 1; + a5 = 0; + a15 = 1; + a12 = 12; + a3 = 8; + a22 = 1; + a6 = 1; + }else{ + a22 = 0; + a6 = 1; + a3 = 4; + a18 = 0; + a12 = 11; + a27 = 1; + } + return -1; + } else if(((a15==1)&&((((a27==1)&&((a5==1)&&(((a0==1)&&(((input==3)&&((((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))||((!(a18==1)&&(a22==1))&&(a3==7))))&&(a12==12)))&&(a4==1))))&&(a20==1))&&(a6==1)))){ + a4 = 0; + a12 = 10; + a3 = 8; + a22 = 1; + a18 = 1; + return -1; + } else if(((((a4==1)&&(((a3==7)&&((!(a22==1)&&((!(a0==1)&&(((a18==1)&&(input==2))&&!(a15==1)))&&(a20==1)))&&!(a5==1)))&&(a12==10)))&&!(a27==1))&&!(a6==1))){ + if((a15==1)){ + a22 = 1; + a12 = 9; + a6 = 1; + a18 = 0; + a0 = 1; + }else{ + a3 = 5; + a6 = 1; + a18 = 0; + a0 = 1; + a15 = 1; + a27 = 1; + a5 = 1; + a4 = 0; + a12 = 8; + } + return -1; + } else if((((!(a5==1)&&(((a0==1)&&((a20==1)&&((a12==8)&&((a4==1)&&(((input==4)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&!(a6==1))))))&&(a3==8)))&&!(a27==1))&&(a15==1))){ + a22 = 1; + a12 = 10; + a18 = 0; + a5 = 1; + a27 = 1; + a15 = 0; + return 21; + } else if((!(a0==1)&&((((a3==6)&&(!(a4==1)&&((a15==1)&&(((a5==1)&&((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==5))&&(a20==1)))&&!(a27==1)))))&&(a6==1))&&(a12==10)))){ + a0 = 1; + a12 = 9; + a18 = 1; + a22 = 0; + a27 = 1; + a6 = 0; + a15 = 0; + a3 = 4; + return -1; + } else if(((a15==1)&&((((a20==1)&&((((a3==8)&&(((a12==10)&&((input==2)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))))&&(a0==1)))&&(a6==1))&&!(a4==1)))&&(a5==1))&&!(a27==1)))){ + a3 = 4; + a18 = 1; + a4 = 1; + a27 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if(((a4==1)&&((a3==4)&&((!(a0==1)&&((((((a15==1)&&((a22==1)&&((input==2)&&(a6==1))))&&(a27==1))&&(a18==1))&&(a12==11))&&(a20==1)))&&!(a5==1))))){ + a5 = 1; + a12 = 8; + a0 = 1; + return -1; + } else if((((((((((a3==4)&&(((((a18==1)||!(a18==1))&&(input==3))&&(a15==1))&&!(a27==1)))&&(a22==1))&&(a20==1))&&!(a4==1))&&(a5==1))&&!(a6==1))&&(a0==1))&&(a12==10))){ + a15 = 0; + a3 = 5; + a4 = 1; + a6 = 1; + a18 = 0; + a27 = 1; + return 21; + } else if(((((!(a27==1)&&((!(a4==1)&&((((((input==1)&&((a18==1)||!(a18==1)))&&!(a6==1))&&!(a22==1))&&(a20==1))&&!(a0==1)))&&(a3==4)))&&(a12==9))&&!(a5==1))&&!(a15==1))){ + a3 = 6; + a15 = 1; + a0 = 1; + a22 = 1; + a6 = 1; + a5 = 1; + a18 = 1; + return 26; + } else if((!(a0==1)&&((((((!(a27==1)&&((a20==1)&&((input==1)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1)))))))&&(a15==1))&&(a4==1))&&!(a5==1))&&!(a6==1))&&(a12==9)))){ + if((a22==1)){ + a6 = 1; + a0 = 1; + a3 = 5; + a12 = 8; + a5 = 1; + a27 = 1; + a18 = 1; + a22 = 0; + }else{ + a27 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a0 = 1; + a4 = 0; + a15 = 0; + a12 = 8; + } + return -1; + } else if(((a6==1)&&(((a4==1)&&((a3==7)&&((!(a27==1)&&((!(a0==1)&&(((input==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&(a15==1)))&&(a12==9)))&&!(a5==1))))&&(a20==1)))){ + if((a0==1)){ + a18 = 0; + a3 = 4; + a22 = 0; + a12 = 10; + a27 = 1; + a6 = 0; + }else{ + a12 = 8; + a22 = 0; + a27 = 1; + a0 = 1; + a3 = 6; + a18 = 0; + a5 = 1; + } + return -1; + } else if(((a20==1)&&((a6==1)&&((a12==9)&&((((((((!(a4==1)&&(input==5))&&(a3==6))&&(a27==1))&&(a0==1))&&(a22==1))&&!(a15==1))&&(a18==1))&&(a5==1)))))){ + a12 = 8; + a4 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if(((a12==11)&&((a6==1)&&((a4==1)&&((a15==1)&&(((a0==1)&&(((((input==2)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a20==1))&&!(a5==1))&&(a3==6)))&&(a27==1))))))){ + a27 = 0; + a18 = 1; + a22 = 0; + a5 = 1; + a6 = 0; + a15 = 0; + a3 = 4; + return 26; + } else if((!(a0==1)&&(((!(a5==1)&&((a20==1)&&((a15==1)&&(((a4==1)&&((((!(a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6))))&&(input==6)))&&!(a6==1)))))&&(a12==11))&&!(a27==1)))){ + if((a5==1)){ + a12 = 8; + a3 = 7; + a0 = 1; + a27 = 1; + a5 = 1; + a22 = 0; + a6 = 1; + a18 = 0; + }else{ + a22 = 0; + a6 = 1; + a3 = 4; + a12 = 8; + a4 = 0; + a27 = 1; + a0 = 1; + a18 = 1; + a5 = 1; + } + return -1; + } else if(((a20==1)&&(((a5==1)&&((a18==1)&&(((a3==7)&&(!(a0==1)&&((a4==1)&&((a22==1)&&(((input==6)&&!(a15==1))&&(a12==9))))))&&!(a6==1))))&&!(a27==1)))){ + a0 = 1; + a6 = 1; + a27 = 1; + a15 = 1; + a12 = 8; + return 26; + } else if((((a20==1)&&(!(a15==1)&&((a12==9)&&((!(a5==1)&&(!(a6==1)&&(((((a3==6)&&((a18==1)&&(a22==1)))||(((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a22==1)&&!(a18==1)))))&&(input==2))&&(a4==1))))&&!(a0==1)))))&&(a27==1))){ + a12 = 8; + a0 = 1; + a15 = 1; + a22 = 1; + a6 = 1; + a18 = 1; + a5 = 1; + a3 = 4; + return -1; + } else if((((a0==1)&&(((a27==1)&&(!(a5==1)&&((a15==1)&&((a12==11)&&((a20==1)&&((input==4)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))))))))&&(a4==1)))&&(a6==1))){ + a27 = 0; + a6 = 0; + a22 = 1; + a15 = 0; + a5 = 1; + a3 = 8; + a18 = 1; + return 21; + } else if(((a3==8)&&(((a6==1)&&((a20==1)&&((a12==9)&&(((((!(a15==1)&&((input==1)&&!(a5==1)))&&(a18==1))&&(a22==1))&&(a4==1))&&!(a0==1)))))&&!(a27==1)))){ + a27 = 1; + a5 = 1; + a15 = 1; + a3 = 7; + a0 = 1; + a12 = 8; + return -1; + } else if((((!(a4==1)&&(!(a0==1)&&(((!(a15==1)&&((((input==4)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a3==5))&&(a20==1)))&&(a27==1))&&(a12==10))))&&!(a6==1))&&(a5==1))){ + a4 = 1; + a0 = 1; + a6 = 1; + a18 = 0; + a3 = 8; + a12 = 11; + a22 = 1; + a15 = 1; + return -1; + } else if(((a12==10)&&(!(a4==1)&&((((((((a6==1)&&((!(a22==1)&&(input==5))&&(a27==1)))&&(a15==1))&&(a20==1))&&!(a5==1))&&(a0==1))&&(a3==6))&&(a18==1))))){ + a12 = 11; + a3 = 4; + a18 = 0; + a6 = 0; + a0 = 0; + a22 = 1; + a5 = 1; + return 26; + } else if((((a4==1)&&((a15==1)&&((((((((a3==8)&&((input==5)&&!(a22==1)))&&!(a0==1))&&!(a18==1))&&(a6==1))&&(a20==1))&&(a27==1))&&!(a5==1))))&&(a12==8))){ + a4 = 0; + a22 = 1; + a3 = 6; + a6 = 0; + a12 = 11; + return -1; + } else if((((a6==1)&&(!(a0==1)&&((a15==1)&&((a4==1)&&((((a20==1)&&((input==2)&&(((a3==7)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1)))))))&&(a12==11))&&(a27==1))))))&&!(a5==1))){ + a12 = 9; + a0 = 1; + a3 = 7; + a22 = 0; + a15 = 0; + a18 = 1; + return 21; + } else if((!(a6==1)&&((a3==6)&&((a18==1)&&(((a15==1)&&((!(a22==1)&&(!(a4==1)&&((((input==6)&&(a27==1))&&(a12==9))&&(a0==1))))&&(a20==1)))&&!(a5==1)))))){ + a12 = 12; + a22 = 1; + a3 = 8; + a4 = 1; + a5 = 1; + return 24; + } else if((!(a0==1)&&((a12==9)&&((a3==7)&&((((((a6==1)&&((a20==1)&&((input==4)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))))&&(a15==1))&&!(a27==1))&&(a4==1))&&!(a5==1)))))){ + if((a15==1)){ + a27 = 1; + a4 = 0; + a22 = 1; + a12 = 8; + a18 = 1; + a0 = 1; + a3 = 5; + a15 = 0; + a5 = 1; + }else{ + a5 = 1; + a18 = 1; + a22 = 0; + a12 = 8; + a0 = 1; + a27 = 1; + a4 = 0; + } + return 24; + } else if((((((a20==1)&&((!(a27==1)&&((!(a4==1)&&(((input==3)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&!(a6==1)))&&!(a5==1)))&&!(a15==1)))&&(a3==7))&&(a12==11))&&(a0==1))){ + a18 = 1; + a15 = 1; + a27 = 1; + a5 = 1; + a3 = 4; + a4 = 1; + a22 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if((!(a27==1)&&(((!(a6==1)&&(!(a22==1)&&(((((a12==11)&&((((a18==1)||!(a18==1))&&(input==4))&&(a15==1)))&&(a3==5))&&!(a4==1))&&(a0==1))))&&(a20==1))&&(a5==1)))){ + a6 = 1; + a3 = 4; + a4 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + a27 = 1; + return -1; + } else if(((!(a27==1)&&((a12==12)&&((a20==1)&&((input==3)&&(((a6==1)&&(((a4==1)&&((((a22==1)&&!(a18==1))&&!(a5==1))&&(a15==1)))&&(a3==4)))||(((((!(a15==1)&&((a5==1)&&(!(a18==1)&&!(a22==1))))&&!(a4==1))&&(a3==8))&&!(a6==1))||((a6==1)&&((a3==4)&&((a4==1)&&((!(a5==1)&&((a18==1)&&(a22==1)))&&(a15==1)))))))))))&&(a0==1))){ + a15 = 0; + a18 = 0; + a6 = 1; + a3 = 4; + a4 = 0; + a22 = 1; + a12 = 9; + a5 = 0; + return -1; + } else if(((a12==9)&&((((a20==1)&&((a27==1)&&(((a0==1)&&((a5==1)&&(((((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a22==1)&&(a18==1))))||((!(a18==1)&&(a22==1))&&(a3==8)))&&(input==4))))&&!(a15==1))))&&(a6==1))&&!(a4==1)))){ + a22 = 1; + a18 = 1; + a15 = 1; + a12 = 11; + a5 = 0; + a3 = 4; + return 21; + } else if((((a0==1)&&(!(a4==1)&&((((!(a27==1)&&(((a12==10)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==4)))&&!(a6==1)))&&(a15==1))&&(a20==1))&&(a3==4))))&&!(a5==1))){ + a22 = 1; + a6 = 1; + a18 = 0; + a15 = 0; + a12 = 12; + a5 = 1; + a27 = 1; + return -1; + } else if((((a0==1)&&((!(a6==1)&&((((a20==1)&&(!(a22==1)&&(((a3==6)&&((a18==1)&&(input==1)))&&(a15==1))))&&(a12==12))&&!(a27==1)))&&(a4==1)))&&(a5==1))){ + a12 = 10; + a18 = 0; + a3 = 8; + a22 = 1; + a27 = 1; + a6 = 1; + a4 = 0; + return 21; + } else if((!(a4==1)&&(((((a12==11)&&(!(a6==1)&&((((a3==7)&&((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&!(a0==1))&&!(a15==1))))&&(a5==1))&&!(a27==1))&&(a20==1)))){ + a15 = 1; + a22 = 1; + a3 = 5; + a6 = 1; + a0 = 1; + a18 = 1; + a12 = 8; + a27 = 1; + return 21; + } else if(((((!(a6==1)&&((((!(a5==1)&&((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==2))&&!(a0==1)))&&(a4==1))&&(a12==8))&&!(a27==1)))&&(a15==1))&&(a3==4))&&(a20==1))){ + a3 = 5; + a6 = 1; + a18 = 0; + a12 = 11; + a22 = 1; + a0 = 1; + a5 = 1; + return -1; + } else if(((a20==1)&&((((((((a12==10)&&((a22==1)&&((((a18==1)||!(a18==1))&&(input==4))&&(a6==1))))&&(a3==8))&&(a15==1))&&!(a27==1))&&!(a4==1))&&!(a0==1))&&!(a5==1)))){ + a5 = 1; + a18 = 1; + a22 = 0; + a0 = 1; + a4 = 1; + a12 = 8; + return -1; + } else if(((a12==12)&&(((a4==1)&&((a6==1)&&((((a20==1)&&(!(a0==1)&&((input==5)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7))))))&&!(a15==1))&&(a27==1))))&&(a5==1)))){ + a0 = 1; + a5 = 0; + a6 = 0; + a27 = 0; + a18 = 1; + a4 = 0; + a22 = 0; + a15 = 1; + a12 = 10; + a3 = 7; + return 21; + } else if(((a12==11)&&(((a6==1)&&((((((a22==1)&&((a20==1)&&((a3==4)&&(((a18==1)||!(a18==1))&&(input==6)))))&&!(a4==1))&&!(a27==1))&&(a0==1))&&(a15==1)))&&(a5==1)))){ + a22 = 0; + a27 = 1; + a12 = 10; + a18 = 1; + a3 = 7; + return 21; + } else if(((((!(a5==1)&&((!(a6==1)&&((a27==1)&&((((((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==7)))&&(input==6))&&(a20==1))))&&!(a15==1)))&&(a0==1))&&(a12==10))&&(a4==1))){ + a18 = 1; + a22 = 1; + a6 = 1; + a15 = 1; + a3 = 6; + a27 = 0; + return 21; + } else if(((((a20==1)&&((((a5==1)&&(((((((a22==1)&&!(a18==1))&&(a3==4))&&!(a6==1))||(((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1))))&&(input==5))&&!(a15==1)))&&(a27==1))&&(a0==1)))&&!(a4==1))&&(a12==9))){ + a22 = 1; + a6 = 0; + a12 = 11; + a3 = 7; + a5 = 0; + a18 = 0; + return 21; + } else if(((a20==1)&&(((!(a4==1)&&((a3==8)&&((a5==1)&&((a12==10)&&((a22==1)&&(!(a15==1)&&((a27==1)&&(!(a18==1)&&(input==5)))))))))&&(a0==1))&&(a6==1)))){ + a15 = 1; + a6 = 0; + return -1; + } else if(((a5==1)&&((((a12==10)&&((a0==1)&&((((((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==7)))||((a3==7)&&(!(a18==1)&&(a22==1))))&&(input==2))&&(a20==1))&&!(a6==1))&&(a4==1))))&&(a15==1))&&!(a27==1)))){ + a5 = 0; + a3 = 5; + a4 = 0; + a22 = 1; + a12 = 8; + a18 = 0; + return 26; + } else if((!(a0==1)&&(((((a20==1)&&(((!(a6==1)&&((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==1))&&(a5==1)))&&(a4==1))&&(a12==11)))&&(a3==7))&&!(a27==1))&&!(a15==1)))){ + a27 = 1; + a12 = 12; + a18 = 0; + a5 = 0; + a0 = 1; + a22 = 1; + a15 = 1; + a4 = 0; + a3 = 8; + a6 = 1; + return 26; + } else if(((a20==1)&&((((a3==8)&&(((a12==11)&&(((a22==1)&&((a15==1)&&((a27==1)&&((input==1)&&((a18==1)||!(a18==1))))))&&!(a0==1)))&&(a5==1)))&&(a4==1))&&!(a6==1)))){ + a15 = 0; + a3 = 6; + a18 = 0; + a6 = 1; + a0 = 1; + return -1; + } else if(((((((a12==11)&&(!(a27==1)&&((a5==1)&&(!(a22==1)&&(!(a6==1)&&((a3==5)&&(((a18==1)||!(a18==1))&&(input==2))))))))&&!(a4==1))&&(a0==1))&&(a20==1))&&(a15==1))){ + a27 = 1; + a18 = 0; + a5 = 0; + a15 = 0; + a3 = 7; + a12 = 10; + return -1; + } else if(((a4==1)&&((((a5==1)&&(((!(a27==1)&&(((a12==8)&&((input==3)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))&&(a3==5)))&&(a6==1))&&!(a0==1)))&&!(a15==1))&&(a20==1)))){ + a0 = 1; + a18 = 1; + a4 = 0; + a27 = 1; + a6 = 0; + a22 = 0; + a5 = 0; + return -1; + } else if((((a15==1)&&((a0==1)&&((((((a5==1)&&(((input==3)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a12==8)))&&(a20==1))&&(a3==8))&&!(a6==1))&&!(a27==1))))&&!(a4==1))){ + a18 = 0; + a3 = 6; + a15 = 0; + a6 = 1; + a4 = 1; + a12 = 10; + a27 = 1; + a22 = 1; + a5 = 0; + return -1; + } else if((!(a5==1)&&((a20==1)&&((a4==1)&&((((a12==11)&&((a15==1)&&((((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4))))||(!(a6==1)&&((a3==4)&&(!(a18==1)&&(a22==1)))))&&(input==1))))&&!(a27==1))&&!(a0==1)))))){ + if((a0==1)){ + a12 = 8; + a5 = 1; + a3 = 6; + a18 = 0; + a22 = 1; + a27 = 1; + a6 = 1; + a0 = 1; + }else{ + a12 = 8; + a5 = 1; + a3 = 5; + a22 = 1; + a6 = 1; + a0 = 1; + a18 = 0; + a27 = 1; + } + return -1; + } else if(((!(a27==1)&&(((a18==1)&&(!(a4==1)&&((((a15==1)&&((a3==4)&&(!(a6==1)&&((a20==1)&&(input==2)))))&&(a5==1))&&(a12==12))))&&(a0==1)))&&!(a22==1))){ + a18 = 0; + a15 = 0; + a0 = 0; + a12 = 9; + a3 = 7; + a22 = 1; + a27 = 1; + a6 = 1; + return -1; + } else if(((a3==8)&&((a12==11)&&(!(a15==1)&&(((((a4==1)&&(((a0==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==5)))&&(a20==1)))&&!(a5==1))&&!(a27==1))&&!(a6==1)))))){ + a15 = 1; + a27 = 1; + a6 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + a12 = 8; + a5 = 1; + return -1; + } else if((((a20==1)&&((((a5==1)&&(!(a4==1)&&(!(a6==1)&&((a27==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2))&&(a12==9))))))&&!(a0==1))&&!(a15==1)))&&(a3==6))){ + a15 = 1; + a0 = 1; + a12 = 10; + a22 = 1; + a3 = 4; + a18 = 0; + a6 = 1; + a4 = 1; + return -1; + } else if(((a27==1)&&((a12==8)&&((!(a18==1)&&((a3==5)&&((!(a15==1)&&((a5==1)&&((!(a4==1)&&((input==5)&&(a6==1)))&&(a0==1))))&&(a22==1))))&&(a20==1))))){ + a15 = 1; + a3 = 4; + a4 = 1; + a18 = 1; + return -1; + } else if(((a0==1)&&(((a12==9)&&((!(a27==1)&&(!(a6==1)&&((a4==1)&&((a3==6)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2))&&(a20==1))))))&&!(a5==1)))&&(a15==1)))){ + a18 = 1; + a12 = 8; + a6 = 1; + a5 = 1; + a27 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if(((((!(a22==1)&&(((a15==1)&&((((a12==9)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a20==1)))&&!(a5==1))&&(a3==8)))&&!(a6==1)))&&!(a27==1))&&!(a0==1))&&(a4==1))){ + if((a27==1)){ + a0 = 1; + a27 = 1; + a18 = 0; + a5 = 1; + a3 = 6; + a12 = 8; + }else{ + a12 = 12; + a22 = 1; + a18 = 0; + a27 = 1; + a3 = 6; + } + return 24; + } else if((((a27==1)&&((a5==1)&&(((((!(a15==1)&&(((((a18==1)||!(a18==1))&&(input==1))&&(a22==1))&&(a20==1)))&&(a0==1))&&!(a6==1))&&(a12==9))&&(a4==1))))&&(a3==5))){ + a6 = 1; + a4 = 0; + a18 = 1; + a3 = 6; + a0 = 0; + a15 = 1; + a12 = 8; + a22 = 0; + return 24; + } else if(((((!(a0==1)&&((a4==1)&&((a27==1)&&((a12==9)&&((((((a18==1)||!(a18==1))&&(input==2))&&(a15==1))&&(a3==8))&&!(a5==1))))))&&(a6==1))&&(a22==1))&&(a20==1))){ + a0 = 1; + a18 = 0; + a12 = 10; + a15 = 0; + a4 = 0; + a3 = 6; + return 26; + } else if((((a20==1)&&(!(a5==1)&&(!(a27==1)&&(((!(a0==1)&&(!(a4==1)&&((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==4))&&!(a15==1))))&&(a6==1))&&(a3==6)))))&&(a12==8))){ + if((a22==1)){ + a15 = 1; + a3 = 4; + a0 = 1; + a27 = 1; + a18 = 0; + a22 = 0; + a5 = 1; + }else{ + a3 = 5; + a5 = 1; + a18 = 0; + a15 = 1; + a22 = 1; + a0 = 1; + a27 = 1; + } + return 21; + } else if((((!(a0==1)&&((a20==1)&&((((((a5==1)&&((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a12==10))&&!(a15==1))&&(a3==4))&&!(a4==1))))&&!(a27==1))&&!(a6==1))){ + if((a3==6)){ + a18 = 0; + a27 = 1; + a5 = 0; + a22 = 1; + a12 = 9; + }else{ + a4 = 1; + a5 = 0; + a3 = 6; + a22 = 1; + a18 = 1; + } + return 21; + } else if(((!(a0==1)&&((a15==1)&&(((a3==6)&&(!(a18==1)&&((a20==1)&&((!(a27==1)&&(((a5==1)&&(input==2))&&(a12==10)))&&!(a4==1)))))&&!(a22==1))))&&(a6==1))){ + a4 = 1; + a3 = 8; + a22 = 1; + a12 = 8; + a27 = 1; + a18 = 1; + a0 = 1; + a6 = 0; + return -1; + } else if((((!(a0==1)&&((((a27==1)&&(!(a15==1)&&(((input==2)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1)))))&&!(a5==1))))&&(a6==1))&&!(a4==1)))&&(a20==1))&&(a12==11))){ + a5 = 1; + a22 = 1; + a12 = 12; + a3 = 5; + a6 = 0; + a18 = 1; + a0 = 1; + a27 = 0; + return 26; + } else if((!(a15==1)&&((a5==1)&&((a12==12)&&(!(a4==1)&&(!(a0==1)&&(((((((input==2)&&(a18==1))&&!(a6==1))&&(a27==1))&&(a20==1))&&(a22==1))&&(a3==6)))))))){ + a0 = 1; + a6 = 1; + a3 = 5; + a4 = 1; + a18 = 0; + a12 = 9; + return -1; + } else if((((!(a15==1)&&((((a6==1)&&((!(a0==1)&&((input==1)&&((((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a22==1)&&!(a18==1))))||((a3==7)&&((a18==1)&&(a22==1))))))&&(a12==8)))&&!(a27==1))&&(a20==1)))&&(a4==1))&&(a5==1))){ + if((a5==1)){ + a27 = 1; + a6 = 0; + a12 = 9; + a22 = 0; + a15 = 1; + a0 = 1; + a18 = 1; + a4 = 0; + a3 = 8; + }else{ + a22 = 1; + a15 = 1; + a18 = 1; + a27 = 1; + a0 = 1; + a3 = 5; + } + return -1; + } else if((((a27==1)&&((!(a6==1)&&((((((input==1)&&(((a3==7)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))))&&(a20==1))&&(a5==1))&&(a0==1))&&(a12==10)))&&!(a4==1)))&&(a15==1))){ + a12 = 9; + a27 = 0; + a5 = 0; + a3 = 6; + a22 = 1; + a18 = 1; + return 26; + } else if((((((a4==1)&&(((a3==8)&&(((((input==2)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a20==1))&&!(a15==1))&&!(a27==1)))&&(a6==1)))&&(a12==8))&&!(a5==1))&&(a0==1))){ + if((a15==1)){ + a15 = 1; + a0 = 0; + a18 = 0; + a22 = 0; + a27 = 1; + a5 = 1; + a4 = 0; + }else{ + a3 = 6; + a18 = 0; + a22 = 1; + a12 = 10; + a6 = 0; + } + return 26; + } else if((!(a15==1)&&(((!(a6==1)&&(((!(a5==1)&&((((((a18==1)||!(a18==1))&&(input==5))&&(a12==8))&&(a3==5))&&(a4==1)))&&(a27==1))&&(a20==1)))&&!(a0==1))&&(a22==1)))){ + a0 = 1; + a18 = 1; + a5 = 1; + a6 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if(((((a4==1)&&((((((a27==1)&&((a3==7)&&((input==3)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))))&&!(a15==1))&&(a6==1))&&(a20==1))&&(a0==1)))&&!(a5==1))&&(a12==10))){ + a6 = 0; + a27 = 0; + a22 = 0; + a3 = 5; + a4 = 0; + a5 = 1; + a18 = 1; + return 26; + } else if(((a5==1)&&((!(a22==1)&&(!(a0==1)&&((((a3==7)&&(((!(a6==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a20==1))&&(a27==1)))&&!(a4==1))&&(a12==12))))&&!(a15==1)))){ + a18 = 0; + a5 = 0; + a4 = 1; + a15 = 1; + a12 = 11; + return -1; + } else if((((!(a6==1)&&(((a3==7)&&(((!(a18==1)&&(((a0==1)&&(!(a27==1)&&(input==1)))&&(a12==10)))&&!(a5==1))&&(a15==1)))&&!(a22==1)))&&(a20==1))&&!(a4==1))){ + a18 = 1; + a12 = 11; + a6 = 1; + a22 = 1; + a15 = 0; + a27 = 1; + a3 = 4; + return 21; + } else if(((((a5==1)&&((a20==1)&&((a22==1)&&(!(a27==1)&&(((!(a4==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&!(a6==1)))&&(a12==10))&&(a3==4))))))&&(a0==1))&&(a15==1))){ + a5 = 0; + a15 = 0; + a22 = 0; + a27 = 1; + a0 = 0; + a4 = 1; + a18 = 1; + a12 = 8; + a6 = 1; + return -1; + } else if(((a0==1)&&(((((a12==11)&&((a15==1)&&((a6==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==1))&&(a20==1)))))&&!(a27==1))&&(a4==1))&&!(a5==1)))){ + a22 = 1; + a3 = 7; + a5 = 1; + a18 = 1; + return -1; + } else if(((a3==5)&&((a20==1)&&(((a27==1)&&(((((!(a0==1)&&((input==1)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))&&!(a15==1))&&(a12==10))&&(a6==1))&&!(a4==1)))&&(a5==1))))){ + a22 = 1; + a12 = 8; + a0 = 1; + a3 = 4; + a5 = 0; + a27 = 0; + a15 = 1; + a6 = 0; + a18 = 1; + return 21; + } else if(((a12==11)&&((!(a5==1)&&((((a20==1)&&((!(a4==1)&&(!(a27==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==5))))&&(a0==1)))&&(a15==1))&&(a3==4)))&&!(a6==1)))){ + a22 = 0; + a15 = 0; + a5 = 1; + a12 = 10; + a4 = 1; + a3 = 8; + a18 = 1; + return -1; + } else if((!(a6==1)&&(((a0==1)&&(((!(a15==1)&&((a4==1)&&((a12==8)&&((((a27==1)&&(input==3))&&!(a22==1))&&(a3==4)))))&&!(a18==1))&&!(a5==1)))&&(a20==1)))){ + if((a4==1)){ + a3 = 7; + a22 = 1; + a6 = 1; + a0 = 0; + }else{ + a6 = 1; + a3 = 6; + a15 = 1; + a5 = 1; + a12 = 11; + } + return 21; + } else if((!(a6==1)&&((!(a18==1)&&((a22==1)&&((((((((input==4)&&(a3==6))&&(a12==11))&&!(a27==1))&&(a0==1))&&!(a5==1))&&(a20==1))&&(a15==1))))&&(a4==1)))){ + a27 = 1; + a5 = 1; + a6 = 1; + a22 = 0; + a3 = 8; + return 26; + } else if((((((!(a4==1)&&((((a20==1)&&((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==1))&&(a27==1)))&&(a6==1))&&(a15==1)))&&!(a5==1))&&(a12==11))&&(a0==1))&&(a3==6))){ + a22 = 1; + a18 = 1; + a5 = 1; + a12 = 10; + return 21; + } else if((!(a15==1)&&((((a5==1)&&(((a12==8)&&((((((a3==8)&&(((a18==1)&&!(a22==1))&&(a4==1)))&&!(a6==1))||((((a4==1)&&(!(a22==1)&&!(a18==1)))&&(a3==8))&&!(a6==1)))||(((!(a4==1)&&((a22==1)&&(a18==1)))&&(a3==4))&&(a6==1)))&&(input==3)))&&(a0==1)))&&!(a27==1))&&(a20==1)))){ + a6 = 1; + a27 = 1; + a15 = 1; + a4 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if((((((a20==1)&&((a12==11)&&((a4==1)&&((!(a15==1)&&(((a27==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a6==1)))&&!(a5==1)))))&&(a22==1))&&(a3==4))&&!(a0==1))){ + a5 = 1; + a18 = 1; + a12 = 8; + a15 = 1; + a0 = 1; + return -1; + } else if(((a0==1)&&((a12==12)&&(!(a27==1)&&((a5==1)&&(((((a20==1)&&((a15==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==1))))&&(a3==5))&&(a4==1))&&!(a6==1))))))){ + a22 = 1; + a6 = 1; + a18 = 1; + a15 = 0; + a27 = 1; + return 21; + } else if((!(a5==1)&&((a0==1)&&((!(a27==1)&&(((input==4)&&(((((a4==1)&&(!(a15==1)&&((a22==1)&&!(a18==1))))&&(a3==4))&&(a6==1))||((!(a6==1)&&((((!(a18==1)&&!(a22==1))&&(a15==1))&&!(a4==1))&&(a3==8)))||(((a3==4)&&((((a18==1)&&(a22==1))&&!(a15==1))&&(a4==1)))&&(a6==1)))))&&(a12==11)))&&(a20==1))))){ + a18 = 0; + a15 = 1; + a22 = 1; + a3 = 7; + a27 = 1; + a6 = 0; + a4 = 1; + return 26; + } else if(((a20==1)&&(!(a0==1)&&(!(a27==1)&&(((a12==8)&&((!(a4==1)&&((a15==1)&&((input==4)&&((((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a22==1)&&!(a18==1))))||((a3==5)&&((a18==1)&&(a22==1)))))))&&!(a6==1)))&&(a5==1)))))){ + a22 = 0; + a0 = 1; + a4 = 1; + a27 = 1; + a18 = 1; + a3 = 5; + return -1; + } else if((((a27==1)&&(!(a0==1)&&(((a15==1)&&((a3==4)&&((((a20==1)&&((a4==1)&&(((a18==1)||!(a18==1))&&(input==3))))&&!(a5==1))&&!(a6==1))))&&(a22==1))))&&(a12==12))){ + if((a0==1)){ + a5 = 1; + a4 = 0; + a12 = 8; + a18 = 0; + a3 = 8; + a0 = 1; + a22 = 0; + a6 = 1; + }else{ + a18 = 0; + a6 = 1; + a0 = 1; + a5 = 1; + a12 = 10; + a3 = 8; + } + return 21; + } else if((!(a6==1)&&(((a3==7)&&(!(a4==1)&&((a27==1)&&(((a15==1)&&(((a0==1)&&((input==5)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&(a12==12)))&&!(a5==1)))))&&(a20==1)))){ + a22 = 0; + a18 = 1; + a12 = 11; + a3 = 6; + a15 = 0; + a4 = 1; + return 21; + } else if((!(a15==1)&&((a12==11)&&((((!(a27==1)&&((a4==1)&&(((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==2))&&(a20==1))))&&!(a5==1))&&!(a0==1))&&!(a6==1))))){ + a6 = 1; + a3 = 5; + a12 = 12; + a0 = 1; + a15 = 1; + a22 = 1; + a27 = 1; + a4 = 0; + a18 = 0; + return -1; + } else if((((a15==1)&&((a12==9)&&((((a4==1)&&(((a22==1)&&(!(a6==1)&&(!(a27==1)&&((a3==6)&&(input==3)))))&&!(a0==1)))&&(a20==1))&&(a5==1))))&&(a18==1))){ + a3 = 7; + a27 = 1; + a18 = 0; + a12 = 11; + a22 = 0; + a4 = 0; + return -1; + } return calculate_output77(input); + } + + int calculate_output77(int input) { + if((((a12==8)&&(!(a0==1)&&(((a20==1)&&((a6==1)&&(((a27==1)&&(!(a4==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==2))))&&(a3==4))))&&(a5==1))))&&!(a15==1))){ + a3 = 5; + a0 = 1; + a6 = 0; + a22 = 0; + a4 = 1; + a15 = 1; + a27 = 0; + a18 = 0; + return -1; + } else if((!(a15==1)&&((a20==1)&&((a27==1)&&((!(a0==1)&&(((a5==1)&&((((a12==11)&&((input==6)&&!(a4==1)))&&!(a6==1))&&!(a22==1)))&&(a3==8)))&&!(a18==1)))))){ + a18 = 1; + a5 = 0; + a0 = 1; + a15 = 1; + a12 = 12; + a6 = 1; + return -1; + } else if((((a12==9)&&(((a0==1)&&((a15==1)&&((a4==1)&&((((((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==4))&&(a6==1))&&!(a27==1)))))&&(a20==1)))&&!(a5==1))){ + a12 = 12; + a27 = 1; + a22 = 1; + a3 = 4; + a18 = 0; + a4 = 0; + a5 = 1; + return 26; + } else if(((a6==1)&&((((a0==1)&&(((a20==1)&&((((((a22==1)&&(input==1))&&(a12==12))&&(a27==1))&&!(a15==1))&&!(a5==1)))&&(a4==1)))&&(a3==8))&&(a18==1)))){ + a15 = 1; + a3 = 4; + a12 = 8; + a5 = 1; + return -1; + } else if(((a3==5)&&(!(a18==1)&&(((a20==1)&&(((a5==1)&&((a15==1)&&(((((a0==1)&&(input==6))&&!(a22==1))&&(a12==10))&&(a6==1))))&&!(a27==1)))&&!(a4==1))))){ + a12 = 8; + a27 = 1; + a3 = 4; + a22 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if((((a5==1)&&((a20==1)&&((!(a27==1)&&(!(a4==1)&&(((a12==12)&&(((((a18==1)||!(a18==1))&&(input==4))&&!(a6==1))&&(a22==1)))&&!(a15==1))))&&(a3==7))))&&(a0==1))){ + a18 = 0; + a3 = 4; + a12 = 11; + a5 = 0; + return -1; + } else if(((a20==1)&&(((!(a6==1)&&(((a12==9)&&((a5==1)&&((a0==1)&&((input==5)&&((((a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==4))))))))&&(a27==1)))&&(a15==1))&&!(a4==1)))){ + a6 = 1; + a3 = 6; + a22 = 0; + a12 = 10; + a18 = 0; + return 26; + } else if(((a5==1)&&((a12==10)&&((!(a27==1)&&((!(a15==1)&&(((a20==1)&&((input==1)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))))&&!(a0==1)))&&(a6==1)))&&(a4==1))))){ + a12 = 8; + a0 = 1; + a3 = 5; + a15 = 1; + a27 = 1; + a18 = 1; + a22 = 1; + return 26; + } else if((((a0==1)&&(((a12==10)&&(((a20==1)&&(!(a5==1)&&(!(a6==1)&&(((a22==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a15==1)))))&&(a3==6)))&&!(a4==1)))&&!(a27==1))){ + a12 = 8; + a6 = 1; + a27 = 1; + a5 = 1; + a18 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((a4==1)&&(!(a27==1)&&(((a12==9)&&(((a15==1)&&((((a5==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a3==6)))&&(a20==1))&&!(a22==1)))&&(a0==1)))&&(a6==1))))){ + a27 = 1; + a5 = 0; + a12 = 10; + a4 = 0; + a18 = 1; + a3 = 4; + a22 = 1; + return 21; + } else if((((!(a6==1)&&(((!(a4==1)&&((a12==8)&&((a20==1)&&((input==1)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6)))))))&&!(a0==1))&&!(a27==1)))&&!(a15==1))&&(a5==1))){ + if((a18==1)){ + a18 = 0; + a0 = 1; + a22 = 1; + a27 = 1; + a15 = 1; + a6 = 1; + a3 = 6; + }else{ + a15 = 1; + a18 = 1; + a22 = 1; + a0 = 1; + a27 = 1; + a3 = 4; + } + return 26; + } else if(((a0==1)&&((!(a5==1)&&(!(a15==1)&&((((a20==1)&&(!(a27==1)&&((a6==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==6)))))&&(a12==9))&&(a3==8))))&&(a4==1)))){ + a5 = 1; + a18 = 1; + a12 = 12; + a22 = 0; + a27 = 1; + a3 = 7; + return 26; + } else if(((((((a12==12)&&(!(a6==1)&&((((a22==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&!(a27==1)))&&!(a4==1))&&(a0==1))))&&(a3==4))&&!(a15==1))&&(a20==1))&&(a5==1))){ + a18 = 1; + a22 = 0; + a3 = 5; + a15 = 1; + a12 = 8; + return -1; + } else if((((((a3==4)&&((a4==1)&&((((a20==1)&&((((input==5)&&(a12==12))&&(a6==1))&&!(a27==1)))&&(a5==1))&&!(a0==1))))&&(a15==1))&&(a22==1))&&!(a18==1))){ + a12 = 8; + a3 = 5; + a4 = 0; + a6 = 0; + a0 = 1; + return 26; + } else if(((!(a4==1)&&((!(a5==1)&&(!(a15==1)&&((a0==1)&&(((((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))||((a3==5)&&((a22==1)&&!(a18==1))))&&(input==4))&&(a20==1))&&(a27==1)))))&&(a6==1)))&&(a12==8))){ + a3 = 4; + a15 = 1; + a5 = 1; + a18 = 1; + a4 = 1; + a22 = 1; + return -1; + } else if(((((a4==1)&&((!(a0==1)&&(!(a6==1)&&(((a20==1)&&((((a3==8)&&((a22==1)&&(a18==1)))||(((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==7))))&&(input==6)))&&(a5==1))))&&!(a15==1)))&&(a12==8))&&(a27==1))){ + a22 = 1; + a15 = 1; + a0 = 1; + a6 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((((a4==1)&&((a12==8)&&((a15==1)&&((a0==1)&&(((a3==7)&&((a6==1)&&(!(a5==1)&&(((a18==1)||!(a18==1))&&(input==6)))))&&(a20==1))))))&&!(a22==1))&&!(a27==1))){ + a18 = 1; + a22 = 1; + a3 = 4; + a27 = 1; + a5 = 1; + return -1; + } else if((((a15==1)&&((a0==1)&&((((a4==1)&&((a27==1)&&(((((a6==1)&&(((a18==1)&&!(a22==1))&&(a3==8)))||(((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1)))||(!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1)))))&&(input==1))))&&(a20==1))&&(a5==1))))&&(a12==11))){ + a18 = 1; + a3 = 5; + a0 = 0; + a12 = 8; + a15 = 0; + a5 = 0; + a6 = 0; + a22 = 0; + a4 = 0; + return 21; + } else if(((a5==1)&&((a12==12)&&((!(a22==1)&&(((a20==1)&&((a15==1)&&((a3==7)&&((a0==1)&&((a6==1)&&((a18==1)&&(input==4)))))))&&(a4==1)))&&(a27==1))))){ + a3 = 4; + a12 = 8; + a22 = 1; + return -1; + } else if(((a6==1)&&(((a0==1)&&(((a3==4)&&((a20==1)&&((((a15==1)&&((a12==9)&&((a4==1)&&(input==2))))&&(a22==1))&&(a18==1))))&&!(a5==1)))&&(a27==1)))){ + a15 = 0; + a5 = 1; + a12 = 8; + a27 = 0; + return 26; + } else if(((a6==1)&&((((((((((((a18==1)||!(a18==1))&&(input==2))&&(a20==1))&&!(a4==1))&&!(a15==1))&&(a0==1))&&!(a5==1))&&!(a27==1))&&(a12==8))&&(a3==7))&&(a22==1)))){ + a27 = 1; + a12 = 9; + a3 = 6; + a18 = 0; + a0 = 0; + return 26; + } else if((((a20==1)&&(!(a4==1)&&(!(a22==1)&&((a3==7)&&(!(a0==1)&&((a12==10)&&((((((a18==1)||!(a18==1))&&(input==1))&&(a5==1))&&(a27==1))&&(a6==1))))))))&&!(a15==1))){ + a27 = 0; + a4 = 1; + a18 = 1; + a0 = 1; + a12 = 9; + return 26; + } else if(((a6==1)&&((a18==1)&&(((!(a22==1)&&(!(a27==1)&&(((a3==5)&&((a20==1)&&(((input==5)&&(a0==1))&&(a15==1))))&&(a5==1))))&&(a4==1))&&(a12==8))))){ + a12 = 11; + a3 = 8; + a27 = 1; + a18 = 0; + a5 = 0; + return 26; + } else if(((a20==1)&&((!(a6==1)&&((a12==10)&&(((!(a27==1)&&(((((!(a18==1)&&(a22==1))&&(a3==5))||(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1)))))&&(input==5))&&!(a0==1)))&&!(a4==1))&&!(a15==1))))&&(a5==1)))){ + if((a5==1)){ + a18 = 1; + a0 = 1; + a27 = 1; + a4 = 1; + a22 = 1; + a3 = 5; + a12 = 12; + }else{ + a22 = 0; + a12 = 11; + a3 = 7; + a4 = 1; + a27 = 1; + a15 = 1; + a18 = 0; + } + return -1; + } else if((((a20==1)&&(!(a6==1)&&((a12==9)&&(!(a4==1)&&(((a3==6)&&(((a27==1)&&(((input==3)&&(a15==1))&&!(a5==1)))&&(a0==1)))&&!(a22==1))))))&&(a18==1))){ + a12 = 8; + a22 = 1; + a6 = 1; + a5 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if((((!(a27==1)&&((((input==1)&&(((((a4==1)&&(((a22==1)&&!(a18==1))&&!(a15==1)))&&(a3==4))&&(a6==1))||((((a3==8)&&(!(a4==1)&&((!(a22==1)&&!(a18==1))&&(a15==1))))&&!(a6==1))||((a6==1)&&((a3==4)&&((a4==1)&&(((a18==1)&&(a22==1))&&!(a15==1))))))))&&!(a5==1))&&(a12==11)))&&(a20==1))&&(a0==1))){ + a18 = 0; + a12 = 10; + a22 = 0; + a3 = 5; + a6 = 1; + a15 = 0; + a4 = 0; + return -1; + } else if((((a15==1)&&((a12==9)&&(((!(a5==1)&&(((a20==1)&&((input==2)&&((((a22==1)&&!(a18==1))&&(a3==7))||(((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1)))))))&&!(a27==1)))&&!(a6==1))&&!(a0==1))))&&!(a4==1))){ + a4 = 1; + a22 = 0; + a5 = 1; + a27 = 1; + a18 = 1; + a0 = 1; + a3 = 4; + a12 = 11; + return 24; + } else if((((a20==1)&&((a4==1)&&((((((((((a18==1)&&(a22==1))&&(a3==6))||(((!(a22==1)&&(a18==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5))))&&(input==3))&&!(a27==1))&&!(a6==1))&&(a15==1))&&(a0==1))&&(a5==1))))&&(a12==11))){ + if((a5==1)){ + a3 = 8; + a0 = 0; + a22 = 1; + a18 = 1; + a27 = 1; + a15 = 0; + }else{ + a0 = 0; + a12 = 10; + a18 = 1; + a3 = 8; + a22 = 1; + a27 = 1; + a15 = 0; + } + return 21; + } else if((((((a27==1)&&(((a15==1)&&(((a12==8)&&((input==6)&&(((a3==6)&&((a22==1)&&!(a18==1)))||(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1)))))))&&(a0==1)))&&!(a6==1)))&&(a4==1))&&(a20==1))&&!(a5==1))){ + a15 = 0; + a6 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + a0 = 0; + a12 = 10; + return 26; + } else if(((a6==1)&&((!(a0==1)&&(((((a5==1)&&(!(a4==1)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==5))))&&(a12==8))&&(a27==1))&&(a20==1)))&&(a15==1)))){ + a0 = 1; + a18 = 1; + a22 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((((!(a6==1)&&((a20==1)&&((a15==1)&&((!(a4==1)&&((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==1))&&(a12==9)))&&(a27==1)))))&&!(a0==1))&&!(a5==1))&&(a3==4))){ + a22 = 0; + a3 = 8; + a5 = 1; + a15 = 0; + a18 = 1; + a6 = 1; + a0 = 1; + return 21; + } else if(((((a12==10)&&((a20==1)&&(!(a5==1)&&(!(a18==1)&&((a0==1)&&((a3==7)&&(!(a22==1)&&(((input==3)&&!(a4==1))&&!(a27==1)))))))))&&!(a6==1))&&(a15==1))){ + a4 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + a6 = 1; + a27 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if((((a12==10)&&(((a5==1)&&((!(a0==1)&&((((!(a6==1)&&((a3==4)&&((a22==1)&&!(a18==1))))||(((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1))))&&(input==4))&&(a20==1)))&&(a27==1)))&&!(a15==1)))&&!(a4==1))){ + a18 = 1; + a15 = 1; + a4 = 1; + a0 = 1; + a3 = 4; + a6 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if(((a12==11)&&(!(a5==1)&&(!(a27==1)&&((a20==1)&&((a6==1)&&((a4==1)&&((!(a0==1)&&((input==2)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))))&&(a15==1))))))))){ + a27 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + a3 = 8; + a6 = 0; + a5 = 1; + a22 = 0; + return 26; + } else if((((((((((a12==8)&&(((((a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a18==1)&&!(a22==1)))))&&(input==4)))&&(a5==1))&&(a4==1))&&(a20==1))&&!(a15==1))&&!(a6==1))&&(a0==1))&&(a27==1))){ + a3 = 4; + a22 = 1; + a6 = 1; + a12 = 9; + a0 = 0; + a18 = 1; + return 21; + } else if((((((((a6==1)&&(((a3==4)&&((a0==1)&&(((input==2)&&(a12==10))&&!(a18==1))))&&(a4==1)))&&(a20==1))&&(a5==1))&&(a27==1))&&!(a15==1))&&(a22==1))){ + a5 = 0; + a4 = 0; + a3 = 7; + a18 = 1; + a12 = 12; + a27 = 0; + a6 = 0; + return 26; + } else if(((a4==1)&&((a5==1)&&((a3==7)&&(((a20==1)&&((((!(a0==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6)))&&(a27==1))&&(a12==8))&&(a15==1)))&&(a6==1)))))){ + a22 = 0; + a6 = 0; + a3 = 4; + a0 = 1; + a12 = 10; + a18 = 0; + return 26; + } else if(((a3==8)&&(((a0==1)&&(!(a6==1)&&((a20==1)&&((((a22==1)&&((a27==1)&&((a5==1)&&(((a18==1)||!(a18==1))&&(input==5)))))&&!(a15==1))&&(a12==9)))))&&(a4==1)))){ + a18 = 1; + a0 = 0; + a3 = 5; + a6 = 1; + return 21; + } else if(((((((((((input==2)&&(((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1)))))&&(a4==1))&&!(a27==1))&&(a20==1))&&(a12==8))&&!(a5==1))&&!(a15==1))&&(a6==1))&&!(a0==1))){ + a27 = 1; + a3 = 4; + a15 = 1; + a22 = 0; + a18 = 1; + a0 = 1; + a5 = 1; + return -1; + } else if((((!(a27==1)&&((a4==1)&&((((a12==11)&&(((input==4)&&((((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1))))||((a3==5)&&((a18==1)&&(a22==1)))))&&(a6==1)))&&(a20==1))&&(a0==1))))&&(a5==1))&&(a15==1))){ + a3 = 4; + a12 = 8; + a22 = 1; + a27 = 1; + a18 = 1; + return -1; + } else if(((a27==1)&&((a15==1)&&(((a3==6)&&(((((((input==3)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&!(a5==1))&&!(a4==1))&&(a0==1))&&(a20==1))&&(a6==1)))&&(a12==11))))){ + if((a0==1)){ + a4 = 1; + a3 = 7; + a0 = 0; + a18 = 0; + a22 = 0; + a6 = 0; + }else{ + a22 = 1; + a3 = 5; + a18 = 0; + } + return -1; + } else if((((a5==1)&&((((a6==1)&&((a0==1)&&((a12==12)&&((a20==1)&&((a4==1)&&(((input==1)&&!(a18==1))&&(a3==4)))))))&&!(a27==1))&&!(a22==1)))&&!(a15==1))){ + a27 = 1; + a6 = 0; + a5 = 0; + a12 = 11; + a15 = 1; + return 21; + } else if(((a3==5)&&((((((a12==8)&&(((a20==1)&&((a6==1)&&(!(a4==1)&&((input==4)&&!(a27==1)))))&&!(a15==1)))&&!(a18==1))&&(a5==1))&&!(a22==1))&&!(a0==1)))){ + a3 = 6; + a0 = 1; + a6 = 0; + a27 = 1; + return 21; + } else if(((((a4==1)&&(((!(a15==1)&&(((a6==1)&&((((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==6)))&&(a12==10)))&&(a20==1))&&!(a5==1)))&&(a0==1))&&!(a27==1))){ + a5 = 1; + a4 = 0; + a3 = 6; + a22 = 0; + a18 = 0; + a6 = 0; + return -1; + } else if((!(a22==1)&&(!(a5==1)&&((a20==1)&&(((a6==1)&&(((a12==9)&&(((((input==3)&&(a15==1))&&(a27==1))&&(a3==4))&&(a0==1)))&&!(a4==1)))&&(a18==1)))))){ + a6 = 0; + a12 = 8; + a27 = 0; + a4 = 1; + return 24; + } else if((((a0==1)&&((a4==1)&&(!(a18==1)&&((a27==1)&&(((a12==12)&&((a3==4)&&((((a22==1)&&(input==1))&&(a20==1))&&(a5==1))))&&!(a6==1))))))&&!(a15==1))){ + a27 = 0; + a3 = 6; + a18 = 1; + a4 = 0; + a22 = 0; + a15 = 1; + return 26; + } else if(((a20==1)&&(((a5==1)&&(!(a0==1)&&((a12==11)&&((a3==5)&&((a15==1)&&(((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==4))&&(a27==1))&&(a4==1)))))))&&!(a6==1)))){ + a12 = 8; + a0 = 1; + a6 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((((!(a6==1)&&((a4==1)&&((((a27==1)&&((input==5)&&((((a22==1)&&!(a18==1))&&(a3==8))||(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1)))))))&&(a20==1))&&(a12==12))))&&(a5==1))&&(a0==1))&&(a15==1))){ + a5 = 0; + a22 = 1; + a3 = 8; + a18 = 0; + a12 = 11; + return 21; + } else if(((a20==1)&&((a5==1)&&(((a15==1)&&(((a27==1)&&((((a6==1)&&((((a18==1)&&(a22==1))&&!(a4==1))&&(a3==4)))||((!(a6==1)&&(((a4==1)&&((a18==1)&&!(a22==1)))&&(a3==8)))||(!(a6==1)&&((a3==8)&&((!(a22==1)&&!(a18==1))&&(a4==1))))))&&(input==4)))&&(a12==10)))&&(a0==1))))){ + a4 = 1; + a6 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + return -1; + } else if(((a3==6)&&((a6==1)&&((a0==1)&&((((!(a27==1)&&(((a20==1)&&((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a4==1)))&&(a15==1))&&!(a5==1))&&(a12==12)))))){ + a15 = 0; + a18 = 0; + a3 = 7; + a12 = 9; + a6 = 0; + a4 = 0; + a22 = 0; + return -1; + } else if(((((a12==10)&&((a4==1)&&(((a5==1)&&((a27==1)&&((a20==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==4))&&!(a15==1)))))&&(a6==1))))&&(a3==7))&&!(a0==1))){ + a12 = 8; + a15 = 1; + a18 = 1; + a0 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((a20==1)&&((!(a6==1)&&(!(a5==1)&&((((a15==1)&&(((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==1))&&(a0==1))&&(a27==1)))&&(a3==4))&&(a12==8))))&&(a4==1)))){ + a15 = 0; + a4 = 0; + a22 = 1; + a18 = 1; + a12 = 9; + return 24; + } else if(((((a4==1)&&((a20==1)&&((a12==11)&&(((!(a6==1)&&((a15==1)&&((!(a27==1)&&(input==1))&&(a22==1))))&&(a5==1))&&!(a18==1)))))&&(a3==5))&&!(a0==1))){ + if((a6==1)){ + a6 = 1; + a3 = 6; + a0 = 1; + a12 = 8; + a5 = 0; + a15 = 0; + }else{ + a15 = 0; + a27 = 1; + a0 = 1; + a12 = 12; + a3 = 7; + } + return -1; + } else if((((((((a20==1)&&((a27==1)&&((a22==1)&&((((a18==1)&&(input==4))&&!(a5==1))&&(a3==7)))))&&!(a0==1))&&(a15==1))&&!(a6==1))&&(a12==11))&&!(a4==1))){ + a12 = 12; + a18 = 0; + a6 = 1; + a4 = 1; + a3 = 4; + a22 = 0; + a5 = 1; + a15 = 0; + a0 = 1; + return 24; + } else if((!(a0==1)&&(!(a22==1)&&((a5==1)&&((a15==1)&&(((a12==11)&&(((a18==1)&&((a6==1)&&((a4==1)&&((a3==5)&&(input==2)))))&&!(a27==1)))&&(a20==1))))))){ + a12 = 8; + a22 = 1; + a3 = 4; + a18 = 0; + a4 = 0; + a6 = 0; + a15 = 0; + return -1; + } else if(((((a5==1)&&((a20==1)&&((!(a4==1)&&((a15==1)&&(((a12==12)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==4)))&&!(a6==1))))&&(a27==1))))&&(a0==1))&&(a3==5))){ + if((a22==1)){ + a12 = 8; + a3 = 7; + a0 = 0; + a22 = 0; + a18 = 0; + a4 = 1; + a5 = 0; + }else{ + a6 = 1; + a18 = 1; + a22 = 0; + a3 = 6; + } + return -1; + } else if(((a22==1)&&((a12==10)&&((a6==1)&&((a3==5)&&(((!(a0==1)&&((a20==1)&&(((a18==1)&&((input==1)&&(a5==1)))&&(a4==1))))&&!(a15==1))&&!(a27==1))))))){ + a4 = 0; + a6 = 0; + a12 = 11; + a5 = 0; + a3 = 8; + a27 = 1; + a15 = 1; + a22 = 0; + return -1; + } else if((!(a4==1)&&((a6==1)&&((!(a22==1)&&((a3==5)&&((a20==1)&&((a5==1)&&(((((input==1)&&((a18==1)||!(a18==1)))&&(a12==11))&&(a0==1))&&(a15==1))))))&&!(a27==1))))){ + a12 = 8; + a3 = 4; + a18 = 0; + return 21; + } else if(((a27==1)&&(((((((((a15==1)&&(((input==6)&&(a12==11))&&(a18==1)))&&(a3==8))&&(a4==1))&&(a20==1))&&(a5==1))&&(a6==1))&&(a22==1))&&!(a0==1)))){ + a22 = 0; + a12 = 12; + a3 = 6; + a0 = 1; + a27 = 0; + a18 = 0; + a15 = 0; + return 21; + } else if((!(a0==1)&&((a20==1)&&(((!(a27==1)&&((((((a4==1)&&(((a18==1)&&(a22==1))&&!(a15==1)))&&(a3==4))&&(a6==1))||((!(a6==1)&&((a3==8)&&(((a15==1)&&((a18==1)&&!(a22==1)))&&!(a4==1))))||(((!(a4==1)&&((a15==1)&&(!(a22==1)&&!(a18==1))))&&(a3==8))&&!(a6==1))))&&(input==1)))&&!(a5==1))&&(a12==11))))){ + a0 = 1; + a22 = 1; + a12 = 8; + a6 = 1; + a15 = 1; + a18 = 0; + a4 = 0; + a3 = 8; + a27 = 1; + a5 = 1; + return 26; + } else if(((a0==1)&&((!(a18==1)&&(!(a5==1)&&((((((a3==8)&&((a22==1)&&(!(a27==1)&&(input==4))))&&(a12==10))&&(a20==1))&&!(a4==1))&&(a15==1))))&&(a6==1)))){ + a3 = 4; + a4 = 1; + a12 = 8; + a5 = 1; + a27 = 1; + a18 = 1; + return -1; + } else if((!(a4==1)&&((a3==5)&&(!(a22==1)&&(!(a6==1)&&((a20==1)&&((!(a15==1)&&((a18==1)&&((a12==10)&&(((input==4)&&(a5==1))&&(a0==1)))))&&!(a27==1)))))))){ + if((a15==1)){ + a0 = 0; + a22 = 1; + a27 = 1; + a3 = 4; + a18 = 0; + a4 = 1; + a12 = 11; + }else{ + a22 = 1; + a5 = 0; + a6 = 1; + a12 = 12; + a3 = 6; + a15 = 1; + } + return 26; + } else if((((!(a6==1)&&(!(a5==1)&&(!(a0==1)&&(((a4==1)&&(((input==3)&&(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6))))&&(a12==9)))&&(a15==1)))))&&(a20==1))&&!(a27==1))){ + a27 = 1; + a22 = 1; + a12 = 8; + a5 = 1; + a18 = 1; + a3 = 4; + a4 = 0; + a0 = 1; + return 26; + } else if((!(a0==1)&&((((a6==1)&&((a15==1)&&(!(a5==1)&&(((a22==1)&&((a27==1)&&(!(a4==1)&&((input==5)&&(a20==1)))))&&(a18==1)))))&&(a12==11))&&(a3==5)))){ + a6 = 0; + a0 = 1; + a3 = 7; + a15 = 0; + a4 = 1; + return -1; + } else if(((a20==1)&&((((((a4==1)&&((a5==1)&&(((input==5)&&((((a18==1)&&(a22==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))))&&(a12==11))))&&(a6==1))&&(a0==1))&&!(a15==1))&&(a27==1)))){ + a22 = 1; + a3 = 5; + a18 = 1; + a27 = 0; + a15 = 1; + return 26; + } else if((!(a0==1)&&(((a12==11)&&((a20==1)&&(!(a4==1)&&(((a15==1)&&(((((((a18==1)&&!(a22==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))||((a3==7)&&((a22==1)&&(a18==1))))&&(input==4))&&(a6==1)))&&!(a5==1)))))&&(a27==1)))){ + a0 = 1; + a12 = 10; + a22 = 0; + a4 = 1; + a18 = 0; + a15 = 0; + a3 = 5; + return -1; + } else if(((!(a5==1)&&((a4==1)&&((a20==1)&&((!(a27==1)&&(!(a15==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2))&&(a6==1))&&(a0==1))))&&(a3==5)))))&&(a12==11))){ + a6 = 0; + a3 = 6; + a18 = 0; + a15 = 1; + a22 = 1; + return -1; + } else if(((a4==1)&&((((a6==1)&&((((!(a27==1)&&((input==3)&&((((a18==1)&&(a22==1))&&(a3==6))||(((!(a22==1)&&(a18==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5))))))&&(a5==1))&&(a0==1))&&(a20==1)))&&(a15==1))&&(a12==10)))){ + a27 = 1; + a6 = 0; + a3 = 6; + a5 = 0; + a18 = 1; + a22 = 0; + return 26; + } else if((((a12==12)&&((a20==1)&&((a0==1)&&(((input==4)&&((((a3==4)&&((a4==1)&&(!(a15==1)&&(!(a18==1)&&(a22==1)))))&&(a6==1))||((((!(a4==1)&&((!(a22==1)&&!(a18==1))&&(a15==1)))&&(a3==8))&&!(a6==1))||((a6==1)&&(((a4==1)&&(((a18==1)&&(a22==1))&&!(a15==1)))&&(a3==4))))))&&(a27==1)))))&&!(a5==1))){ + a18 = 1; + a3 = 4; + a6 = 1; + a5 = 1; + a4 = 1; + a12 = 8; + a22 = 1; + a15 = 1; + return -1; + } else if((!(a4==1)&&((a15==1)&&((!(a6==1)&&((a20==1)&&((a27==1)&&((a5==1)&&((a12==8)&&(((((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a22==1)&&!(a18==1))))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==3)))))))&&(a0==1))))){ + a22 = 1; + a6 = 1; + a18 = 1; + a4 = 1; + a15 = 0; + a3 = 4; + return 26; + } else if((((a20==1)&&((!(a15==1)&&(((!(a27==1)&&((((input==6)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&(a6==1))&&!(a5==1)))&&(a4==1))&&!(a0==1)))&&(a12==8)))&&(a3==5))){ + if((a27==1)){ + a3 = 8; + a5 = 1; + a4 = 0; + a27 = 1; + a15 = 1; + a18 = 0; + a22 = 1; + a0 = 1; + }else{ + a3 = 8; + a0 = 1; + a27 = 1; + a6 = 0; + a22 = 1; + a18 = 1; + a5 = 1; + a12 = 10; + } + return 21; + } else if(((!(a5==1)&&((!(a27==1)&&((a6==1)&&((((a3==6)&&(((a0==1)&&((a4==1)&&(input==3)))&&!(a22==1)))&&(a18==1))&&(a20==1))))&&(a12==8)))&&(a15==1))){ + a3 = 4; + a27 = 1; + a22 = 1; + a5 = 1; + return -1; + } else if(((a22==1)&&((((((a5==1)&&((a12==10)&&(!(a0==1)&&(!(a18==1)&&(((input==6)&&(a20==1))&&(a15==1))))))&&(a4==1))&&(a3==4))&&(a6==1))&&(a27==1)))){ + a18 = 1; + a0 = 1; + a12 = 8; + return -1; + } else if(((a12==11)&&(((a20==1)&&((a6==1)&&(((a18==1)&&(!(a4==1)&&(!(a22==1)&&((a0==1)&&(((a3==7)&&(input==5))&&(a5==1))))))&&!(a27==1))))&&!(a15==1)))){ + a12 = 10; + a27 = 1; + a3 = 6; + a15 = 1; + return -1; + } else if(((!(a27==1)&&(((a6==1)&&((a20==1)&&((!(a15==1)&&(!(a4==1)&&(!(a5==1)&&((input==2)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))))&&(a3==6))))&&(a12==12)))&&(a0==1))){ + if((a0==1)){ + a18 = 1; + a27 = 1; + a4 = 1; + a22 = 0; + a0 = 0; + a3 = 4; + a12 = 10; + }else{ + a4 = 1; + a22 = 0; + a6 = 0; + a18 = 0; + a27 = 1; + a3 = 4; + } + return 26; + } else if(((a12==9)&&((!(a22==1)&&(!(a15==1)&&((a3==5)&&(((((a6==1)&&((!(a4==1)&&(input==3))&&!(a5==1)))&&(a0==1))&&!(a27==1))&&(a18==1)))))&&(a20==1)))){ + a4 = 1; + a5 = 1; + a12 = 8; + a15 = 1; + a22 = 1; + return 26; + } else if(((a15==1)&&(((a4==1)&&((((a12==12)&&(!(a5==1)&&((a3==7)&&((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==1))&&!(a0==1)))))&&(a27==1))&&!(a6==1)))&&(a20==1)))){ + a15 = 0; + a5 = 1; + a4 = 0; + a12 = 11; + a18 = 1; + a3 = 8; + a6 = 1; + a22 = 0; + return -1; + } else if(((a6==1)&&((a3==5)&&(((a27==1)&&(!(a5==1)&&((a12==9)&&(((!(a22==1)&&((a20==1)&&((input==6)&&((a18==1)||!(a18==1)))))&&!(a4==1))&&(a0==1)))))&&(a15==1))))){ + a3 = 4; + a12 = 8; + a18 = 1; + a22 = 1; + a4 = 1; + a5 = 1; + return -1; + } else if(((a27==1)&&((a20==1)&&((((a5==1)&&((a0==1)&&((a3==7)&&((a6==1)&&(((input==3)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&!(a15==1))))))&&(a4==1))&&(a12==9))))){ + a15 = 1; + a18 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + return -1; + } else if(((a0==1)&&((((a12==11)&&((a20==1)&&(((a3==5)&&((!(a5==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==2)))&&!(a27==1)))&&!(a6==1))))&&!(a4==1))&&(a15==1)))){ + a5 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + a27 = 1; + a6 = 1; + a4 = 1; + a22 = 1; + return -1; + } else if((!(a0==1)&&((a6==1)&&((a12==11)&&((a4==1)&&(!(a27==1)&&(((((input==6)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))||((a3==7)&&(!(a18==1)&&(a22==1)))))&&(a20==1))&&!(a15==1))&&(a5==1)))))))){ + a0 = 1; + a3 = 8; + a18 = 1; + a12 = 8; + a15 = 1; + a22 = 0; + a27 = 1; + return 21; + } else if((((a4==1)&&((!(a6==1)&&(((((a20==1)&&((input==5)&&((((a22==1)&&(a18==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1)))))))&&(a27==1))&&(a12==8))&&!(a0==1)))&&(a15==1)))&&(a5==1))){ + a0 = 1; + a3 = 4; + a18 = 1; + a22 = 1; + a6 = 1; + return -1; + } else if((((((a3==5)&&((((a5==1)&&((a22==1)&&((a27==1)&&(!(a6==1)&&((input==4)&&(a15==1))))))&&!(a0==1))&&(a20==1)))&&(a4==1))&&(a12==8))&&!(a18==1))){ + if((a6==1)){ + a18 = 1; + a5 = 0; + a3 = 4; + a12 = 10; + }else{ + a15 = 0; + a5 = 0; + a0 = 1; + a12 = 9; + a18 = 1; + a27 = 0; + } + return 26; + } else if(((a15==1)&&((a20==1)&&((a5==1)&&((a0==1)&&((((a12==8)&&(!(a27==1)&&(((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==5))&&!(a6==1))))&&(a3==4))&&!(a4==1))))))){ + a27 = 1; + a22 = 1; + a18 = 1; + a6 = 1; + a4 = 1; + return -1; + } else if(((((a4==1)&&((a0==1)&&((((((a22==1)&&(((input==5)&&(a12==8))&&!(a18==1)))&&(a27==1))&&!(a5==1))&&(a20==1))&&(a3==4))))&&!(a15==1))&&(a6==1))){ + a5 = 1; + a12 = 10; + a22 = 0; + a3 = 5; + a15 = 1; + a18 = 1; + a0 = 0; + return 26; + } else if((((a15==1)&&(((a3==8)&&(((a6==1)&&((!(a5==1)&&(((input==5)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&(a20==1)))&&(a12==11)))&&(a0==1)))&&!(a27==1)))&&!(a4==1))){ + if((a0==1)){ + a3 = 6; + a12 = 10; + a22 = 0; + a27 = 1; + a5 = 1; + a18 = 1; + a15 = 0; + a0 = 0; + }else{ + a0 = 0; + a27 = 1; + a18 = 1; + a4 = 1; + a22 = 0; + } + return 26; + } else if(((a20==1)&&(((!(a0==1)&&((((!(a6==1)&&(((((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==6))&&(a3==8)))&&(a15==1))&&(a4==1))&&!(a5==1)))&&(a12==8))&&(a27==1)))){ + a22 = 1; + a0 = 1; + a3 = 5; + a18 = 0; + a15 = 0; + a12 = 10; + a6 = 1; + a27 = 0; + return 21; + } else if((((a27==1)&&((!(a5==1)&&((a3==5)&&(((!(a4==1)&&((a15==1)&&(((a20==1)&&(input==6))&&(a12==11))))&&!(a18==1))&&!(a0==1))))&&(a22==1)))&&(a6==1))){ + a22 = 0; + a4 = 1; + a0 = 1; + a5 = 1; + a27 = 0; + a12 = 10; + a6 = 0; + a18 = 1; + a3 = 4; + return 21; + } else if(((a15==1)&&((a3==8)&&(((((a20==1)&&((((!(a0==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a5==1))&&!(a4==1))&&!(a27==1)))&&!(a6==1))&&!(a22==1))&&(a12==11))))){ + a0 = 1; + a4 = 1; + a3 = 7; + a18 = 1; + a12 = 8; + a27 = 1; + a22 = 1; + return 26; + } else if(((!(a0==1)&&((!(a27==1)&&((a4==1)&&((a12==11)&&(!(a15==1)&&((a20==1)&&(!(a6==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==5))))))))&&!(a5==1)))&&(a3==4))){ + if((a6==1)){ + a27 = 1; + a18 = 0; + a22 = 0; + a0 = 1; + a5 = 1; + a12 = 8; + a15 = 1; + }else{ + a15 = 1; + a6 = 1; + a27 = 1; + a22 = 1; + a12 = 8; + a18 = 0; + a3 = 7; + } + return 26; + } else if(((a12==11)&&(!(a22==1)&&(!(a15==1)&&((a4==1)&&(!(a0==1)&&((a3==7)&&((a6==1)&&(((((input==5)&&(a5==1))&&!(a27==1))&&(a18==1))&&(a20==1)))))))))){ + a4 = 0; + a12 = 9; + a18 = 0; + a3 = 4; + a0 = 1; + a22 = 1; + return -1; + } else if((((a6==1)&&((a27==1)&&((((a12==12)&&((a5==1)&&(((((input==5)&&!(a0==1))&&(a20==1))&&!(a18==1))&&(a22==1))))&&!(a15==1))&&(a3==4))))&&!(a4==1))){ + if((a3==7)){ + a27 = 0; + a18 = 1; + a15 = 1; + a3 = 8; + a12 = 11; + }else{ + a12 = 10; + a27 = 0; + a0 = 1; + a3 = 5; + a15 = 1; + } + return 21; + } else if((!(a0==1)&&(((a27==1)&&(((!(a6==1)&&((!(a4==1)&&((((!(a22==1)&&!(a18==1))&&!(a5==1))&&!(a15==1))&&(a12==9)))&&(a3==8)))||((a6==1)&&(((((((a18==1)&&(a22==1))&&(a5==1))&&(a15==1))&&(a12==10))&&(a4==1))&&(a3==4))))&&(input==2)))&&(a20==1)))){ + a15 = 1; + a12 = 12; + a0 = 1; + a4 = 1; + a18 = 1; + a5 = 1; + a3 = 7; + a6 = 0; + a22 = 0; + return 26; + } else if(((a20==1)&&(((a6==1)&&((!(a15==1)&&((((!(a27==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2)))&&(a5==1))&&!(a4==1))&&(a12==11)))&&(a3==4)))&&(a0==1)))){ + a4 = 1; + a3 = 8; + a18 = 1; + a22 = 1; + a12 = 10; + a6 = 0; + return -1; + } else if((!(a22==1)&&((a18==1)&&((a15==1)&&((a20==1)&&(((a6==1)&&(!(a4==1)&&((a0==1)&&((a27==1)&&(!(a5==1)&&((input==1)&&(a3==6)))))))&&(a12==10))))))){ + if((a20==1)){ + a18 = 0; + a12 = 12; + a22 = 1; + a15 = 0; + a27 = 0; + }else{ + a4 = 1; + a15 = 0; + a5 = 1; + a3 = 5; + a27 = 0; + } + return 26; + } else if((((a3==8)&&(((a18==1)&&((a20==1)&&((!(a5==1)&&(!(a15==1)&&((a22==1)&&(((a12==11)&&(input==4))&&(a0==1)))))&&(a4==1))))&&(a6==1)))&&!(a27==1))){ + a27 = 1; + a5 = 1; + a12 = 8; + a15 = 1; + a3 = 4; + return -1; + } else if(((!(a4==1)&&((((((a12==8)&&((input==5)&&((((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1)))))&&(a15==1))&&(a20==1))&&(a27==1))&&!(a5==1)))&&!(a0==1))){ + a0 = 1; + a6 = 1; + a12 = 10; + a3 = 6; + a15 = 0; + a22 = 1; + a18 = 0; + a4 = 1; + return 21; + } else if(((((a27==1)&&(((a20==1)&&((a22==1)&&(!(a15==1)&&((a0==1)&&(!(a4==1)&&((a6==1)&&(((a18==1)||!(a18==1))&&(input==6))))))))&&(a12==8)))&&(a5==1))&&(a3==4))){ + a4 = 1; + a3 = 6; + a0 = 0; + a22 = 0; + a12 = 10; + a18 = 1; + return 21; + } else if(((a3==4)&&((!(a15==1)&&(((!(a4==1)&&((a5==1)&&((((input==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a20==1))&&(a6==1))))&&(a0==1))&&!(a27==1)))&&(a12==9)))){ + if((a22==1)){ + a0 = 0; + a27 = 1; + a3 = 7; + a22 = 0; + a12 = 10; + a4 = 1; + a18 = 0; + }else{ + a18 = 1; + a27 = 1; + a12 = 11; + a22 = 1; + a4 = 1; + a3 = 8; + } + return 24; + } else if(((a6==1)&&((a18==1)&&(((!(a4==1)&&(((((a20==1)&&((a15==1)&&((input==6)&&(a12==11))))&&(a0==1))&&!(a27==1))&&(a5==1)))&&!(a22==1))&&(a3==8))))){ + a4 = 1; + a27 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((a3==7)&&((!(a6==1)&&(((a4==1)&&((a27==1)&&(((a0==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2))&&!(a15==1)))&&(a12==8))))&&(a5==1)))&&(a20==1)))){ + a3 = 4; + a22 = 1; + a15 = 1; + a6 = 1; + a12 = 9; + a18 = 1; + return 21; + } else if(((a20==1)&&(((a0==1)&&((!(a6==1)&&(!(a4==1)&&(!(a27==1)&&((a12==8)&&(((input==5)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a3==5))))))&&(a5==1)))&&(a15==1)))){ + a6 = 1; + a4 = 1; + a5 = 0; + a0 = 0; + a12 = 9; + a22 = 0; + a27 = 1; + a18 = 1; + return -1; + } else if((((((!(a0==1)&&((a5==1)&&(!(a6==1)&&((a20==1)&&((a3==8)&&((a12==8)&&((a15==1)&&(input==2))))))))&&!(a22==1))&&!(a18==1))&&(a27==1))&&!(a4==1))){ + a4 = 1; + a6 = 1; + a3 = 7; + a0 = 1; + a22 = 1; + a12 = 11; + return 26; + } else if((!(a18==1)&&((((a20==1)&&((a22==1)&&(((((((input==5)&&!(a15==1))&&!(a27==1))&&!(a4==1))&&(a6==1))&&(a3==4))&&(a12==9))))&&(a0==1))&&!(a5==1)))){ + a18 = 1; + a3 = 6; + a4 = 1; + a12 = 11; + a22 = 0; + return 26; + } else if((!(a27==1)&&((a4==1)&&((a15==1)&&((((a12==10)&&((((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==1))&&(a20==1))&&!(a6==1)))&&(a5==1))&&!(a0==1)))))){ + if((a4==1)){ + a22 = 0; + a15 = 0; + a4 = 0; + a12 = 12; + a18 = 0; + a6 = 1; + a3 = 8; + a27 = 1; + }else{ + a18 = 0; + a12 = 8; + a3 = 8; + a6 = 1; + a0 = 1; + a27 = 1; + a22 = 1; + } + return -1; + } else if((((a27==1)&&((a6==1)&&((a20==1)&&((a5==1)&&(((((a3==7)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==1)))&&(a12==8))&&!(a0==1))&&(a4==1))))))&&(a15==1))){ + a22 = 0; + a6 = 0; + a18 = 0; + a3 = 6; + a15 = 0; + a0 = 1; + a12 = 12; + return 26; + } else if((!(a15==1)&&((((((a4==1)&&((!(a27==1)&&((input==5)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))))&&(a12==8)))&&(a20==1))&&(a0==1))&&(a6==1))&&(a5==1)))){ + a0 = 0; + a5 = 0; + a4 = 0; + a27 = 1; + a22 = 0; + a3 = 7; + a15 = 1; + a18 = 1; + return -1; + } else if(((a12==11)&&(!(a6==1)&&(!(a27==1)&&(!(a4==1)&&((!(a15==1)&&((!(a0==1)&&((((input==4)&&((a18==1)||!(a18==1)))&&!(a5==1))&&!(a22==1)))&&(a20==1)))&&(a3==5))))))){ + a5 = 1; + a15 = 1; + a12 = 8; + a18 = 0; + a27 = 1; + a0 = 1; + a6 = 1; + return -1; + } else if(((!(a6==1)&&(!(a4==1)&&(((a3==5)&&(!(a18==1)&&((a12==12)&&((a5==1)&&((((input==6)&&(a20==1))&&(a27==1))&&!(a22==1))))))&&!(a15==1))))&&(a0==1))){ + a3 = 8; + a6 = 1; + a12 = 10; + a22 = 1; + return -1; + } else if(((a20==1)&&((a12==10)&&((((a0==1)&&(((((input==1)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1))))||(((a22==1)&&!(a18==1))&&(a3==6))))&&(a4==1))&&!(a6==1))&&(a5==1)))&&!(a15==1))&&(a27==1))))){ + if((a27==1)){ + a18 = 0; + a15 = 1; + a12 = 11; + a3 = 5; + a22 = 1; + a0 = 0; + a4 = 0; + }else{ + a18 = 0; + a22 = 1; + a4 = 0; + a3 = 5; + a5 = 0; + a12 = 9; + a27 = 0; + a6 = 1; + } + return 21; + } else if(((a3==8)&&((a18==1)&&(!(a22==1)&&((!(a6==1)&&((a5==1)&&((a4==1)&&((a15==1)&&((((a12==10)&&(input==6))&&!(a0==1))&&(a20==1))))))&&(a27==1)))))){ + a3 = 4; + a12 = 8; + a0 = 1; + a22 = 1; + a6 = 1; + return -1; + } else if((((a12==8)&&((a20==1)&&((a27==1)&&((!(a6==1)&&((a3==4)&&((a4==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==1))&&!(a0==1)))))&&(a15==1)))))&&(a5==1))){ + a18 = 1; + a6 = 1; + a22 = 1; + a0 = 1; + return -1; + } else if((!(a5==1)&&(((!(a6==1)&&((a12==12)&&((!(a27==1)&&((a20==1)&&((((input==5)&&((a18==1)||!(a18==1)))&&(a15==1))&&(a22==1))))&&(a3==6))))&&(a0==1))&&(a4==1)))){ + a12 = 11; + a18 = 0; + a0 = 0; + a27 = 1; + a4 = 0; + a5 = 1; + return -1; + } else if(((((a20==1)&&(!(a15==1)&&((((a12==10)&&(((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==2))&&!(a27==1)))&&!(a0==1))&&!(a5==1))))&&(a4==1))&&!(a6==1))){ + a22 = 0; + a3 = 7; + a12 = 8; + a18 = 1; + a4 = 0; + return -1; + } else if(((a3==5)&&((!(a15==1)&&((a12==8)&&(((((a18==1)&&((a20==1)&&(((input==6)&&!(a6==1))&&(a5==1))))&&(a4==1))&&(a22==1))&&!(a0==1))))&&(a27==1)))){ + a6 = 1; + a0 = 1; + a12 = 10; + a15 = 1; + a4 = 0; + a22 = 0; + a3 = 7; + return -1; + } else if((!(a5==1)&&((((a20==1)&&(((a15==1)&&((!(a27==1)&&(((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==5))&&(a0==1)))&&(a3==5)))&&!(a6==1)))&&(a4==1))&&(a12==10)))){ + a4 = 0; + a18 = 0; + a5 = 1; + a3 = 7; + a22 = 0; + a15 = 0; + a27 = 1; + return 21; + } else if(((a6==1)&&(((a20==1)&&(((a3==6)&&(!(a15==1)&&((!(a5==1)&&(((a27==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a22==1)))&&(a0==1))))&&(a12==9)))&&!(a4==1)))){ + a12 = 10; + a5 = 1; + a18 = 1; + a15 = 1; + return 21; + } else if(((a3==7)&&(!(a4==1)&&((a20==1)&&(!(a6==1)&&((a15==1)&&(((((a27==1)&&(((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==3)))&&(a12==8))&&(a0==1))&&!(a5==1)))))))){ + if((a12==11)){ + a15 = 0; + a18 = 1; + a6 = 1; + a22 = 1; + a3 = 8; + a5 = 1; + a0 = 0; + }else{ + a4 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + a12 = 10; + } + return 26; + } else if((((a22==1)&&((a4==1)&&((a3==6)&&((a15==1)&&((((a27==1)&&(((a20==1)&&((a12==8)&&(input==5)))&&(a5==1)))&&!(a18==1))&&!(a6==1))))))&&!(a0==1))){ + a0 = 1; + a3 = 8; + a6 = 1; + a15 = 0; + a4 = 0; + a12 = 11; + return 21; + } else if((!(a27==1)&&((((((a4==1)&&((a12==8)&&(((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==5))&&!(a0==1))))&&(a5==1))&&!(a6==1))&&(a20==1))&&!(a15==1)))){ + if((a12==8)){ + a3 = 8; + a18 = 1; + a12 = 9; + a22 = 1; + }else{ + a5 = 0; + a15 = 1; + a3 = 6; + a0 = 1; + a22 = 0; + a18 = 0; + a27 = 1; + a12 = 12; + } + return 21; + } else if(((a12==9)&&(((a3==7)&&((a6==1)&&(!(a27==1)&&((a4==1)&&((a0==1)&&((a20==1)&&(!(a5==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3)))))))))&&(a15==1)))){ + if((a27==1)){ + a15 = 0; + a22 = 0; + a18 = 1; + a12 = 12; + }else{ + a22 = 1; + a12 = 12; + a5 = 1; + a3 = 6; + a15 = 0; + a18 = 0; + a4 = 0; + } + return 26; + } else if(((a20==1)&&(!(a27==1)&&((!(a5==1)&&(!(a0==1)&&(((input==5)&&(((!(a6==1)&&((a3==8)&&(((a18==1)&&!(a22==1))&&(a4==1))))||((((a4==1)&&(!(a22==1)&&!(a18==1)))&&(a3==8))&&!(a6==1)))||(((a3==4)&&(!(a4==1)&&((a22==1)&&(a18==1))))&&(a6==1))))&&(a12==11))))&&(a15==1))))){ + a27 = 1; + a0 = 1; + a22 = 0; + a4 = 1; + a12 = 8; + a18 = 1; + a5 = 1; + a6 = 0; + a3 = 8; + return 21; + } else if((!(a15==1)&&((a27==1)&&(((((a20==1)&&((a12==12)&&(((a4==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a3==4)))&&!(a5==1))))&&!(a0==1))&&(a6==1))&&(a22==1))))){ + a27 = 0; + a3 = 6; + a12 = 9; + a18 = 1; + return 26; + } else if((!(a4==1)&&((a3==6)&&(!(a18==1)&&(!(a0==1)&&((a27==1)&&((a5==1)&&((((!(a22==1)&&((input==5)&&(a6==1)))&&(a15==1))&&(a20==1))&&(a12==8))))))))){ + a0 = 1; + a12 = 10; + a4 = 1; + a15 = 0; + a22 = 1; + return 21; + } else if(((a20==1)&&(!(a6==1)&&((a12==9)&&(((a0==1)&&(!(a27==1)&&(((a5==1)&&((((a3==8)&&((a22==1)&&!(a18==1)))||(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1)))))&&(input==1)))&&!(a4==1))))&&(a15==1)))))){ + a18 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + a27 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if(((((a27==1)&&(!(a0==1)&&((a3==5)&&(((((((input==3)&&((a18==1)||!(a18==1)))&&(a12==8))&&(a20==1))&&!(a15==1))&&(a6==1))&&(a22==1)))))&&(a5==1))&&!(a4==1))){ + a3 = 7; + a22 = 0; + a12 = 10; + a18 = 0; + a0 = 1; + return 26; + } else if(((a3==6)&&((a5==1)&&(((!(a6==1)&&(((((((input==5)&&((a18==1)||!(a18==1)))&&(a0==1))&&(a20==1))&&(a22==1))&&(a12==12))&&(a15==1)))&&!(a27==1))&&(a4==1))))){ + a4 = 0; + a3 = 8; + a5 = 0; + a12 = 9; + a15 = 0; + a18 = 1; + a27 = 1; + return 21; + } else if(((a22==1)&&((a6==1)&&((((((!(a0==1)&&(!(a27==1)&&(((input==4)&&!(a18==1))&&(a4==1))))&&(a20==1))&&(a5==1))&&(a3==6))&&(a15==1))&&(a12==9))))){ + if((a6==1)){ + a27 = 1; + a0 = 1; + a3 = 5; + a12 = 8; + a22 = 0; + a4 = 0; + }else{ + a3 = 5; + a27 = 1; + a4 = 0; + a12 = 8; + a0 = 1; + } + return -1; + } else if(((((a22==1)&&((((a6==1)&&((a20==1)&&(((a3==5)&&(((a12==9)&&(input==2))&&!(a4==1)))&&!(a15==1))))&&(a0==1))&&(a27==1)))&&(a18==1))&&(a5==1))){ + a12 = 8; + a18 = 0; + a27 = 0; + a15 = 1; + a4 = 1; + a6 = 0; + return 26; + } else if((!(a15==1)&&(((((!(a0==1)&&((((a12==12)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==1)))&&(a4==1))&&(a3==8)))&&!(a6==1))&&(a5==1))&&(a20==1))&&(a27==1)))){ + a18 = 0; + a15 = 1; + a0 = 1; + a12 = 9; + a3 = 7; + a27 = 0; + a22 = 1; + a5 = 0; + return 24; + } else if(((a20==1)&&((((a15==1)&&((a3==6)&&(((a12==9)&&((a27==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&(a0==1))&&!(a6==1))))&&(a5==1))))&&!(a4==1))&&!(a22==1)))){ + if((a22==1)){ + a18 = 1; + a12 = 10; + a15 = 0; + a6 = 1; + a0 = 0; + a3 = 8; + a4 = 1; + }else{ + a4 = 1; + a18 = 0; + a12 = 11; + a15 = 0; + a3 = 5; + } + return 26; + } else if(((((a20==1)&&(!(a27==1)&&(((a0==1)&&(((((((a22==1)&&(a18==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==4))))&&(input==4))&&!(a5==1))&&(a15==1)))&&(a12==12))))&&!(a6==1))&&(a4==1))){ + a18 = 0; + a4 = 0; + a22 = 1; + a6 = 1; + a15 = 0; + a3 = 4; + return -1; + } else if((!(a15==1)&&((a27==1)&&((((((((a12==9)&&((input==2)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))&&(a20==1))&&(a6==1))&&(a4==1))&&!(a0==1))&&(a3==5))&&!(a5==1))))){ + a18 = 0; + a0 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + return 21; + } else if((((a20==1)&&((!(a0==1)&&(((!(a22==1)&&((a12==11)&&((((a5==1)&&(input==2))&&!(a27==1))&&(a15==1))))&&(a3==7))&&!(a18==1)))&&(a6==1)))&&!(a4==1))){ + a3 = 6; + a6 = 0; + a0 = 1; + a4 = 1; + a15 = 0; + a5 = 0; + return 26; + } else if(((a22==1)&&(!(a0==1)&&((a5==1)&&(!(a4==1)&&(((!(a15==1)&&((a6==1)&&(!(a18==1)&&(((a12==8)&&(input==5))&&(a27==1)))))&&(a20==1))&&(a3==6))))))){ + a3 = 4; + a18 = 1; + a15 = 1; + a4 = 1; + a0 = 1; + return -1; + } else if(((!(a0==1)&&(((a27==1)&&((((a6==1)&&((a12==11)&&((input==6)&&((((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==5))))))&&(a15==1))&&(a4==1)))&&!(a5==1)))&&(a20==1))){ + a15 = 0; + a3 = 5; + a27 = 0; + a0 = 1; + a18 = 0; + a12 = 9; + a22 = 0; + a4 = 0; + a5 = 1; + return 24; + } else if((((a6==1)&&((((a12==12)&&(((a20==1)&&(((a3==6)&&((!(a18==1)&&(input==5))&&!(a15==1)))&&!(a4==1)))&&(a22==1)))&&!(a0==1))&&(a27==1)))&&!(a5==1))){ + if((a3==7)){ + a4 = 1; + a3 = 8; + a6 = 0; + a12 = 11; + a27 = 0; + }else{ + a22 = 0; + a4 = 1; + a27 = 0; + a15 = 1; + a18 = 1; + a12 = 9; + } + return 26; + } else if((((!(a6==1)&&(!(a27==1)&&(((a12==10)&&(((a4==1)&&(!(a5==1)&&((input==6)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))))&&(a3==5)))&&(a20==1))))&&(a15==1))&&(a0==1))){ + a27 = 1; + a22 = 0; + a18 = 0; + a3 = 6; + return 21; + } else if(((((((a0==1)&&(!(a27==1)&&((a3==8)&&((!(a5==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==5)))&&!(a4==1)))))&&!(a6==1))&&(a12==12))&&(a20==1))&&(a15==1))){ + if((a0==1)){ + a4 = 1; + a0 = 0; + a27 = 1; + a18 = 1; + a6 = 1; + a22 = 1; + a3 = 7; + a12 = 9; + }else{ + a18 = 0; + a6 = 1; + a27 = 1; + a22 = 1; + a3 = 7; + a4 = 1; + a12 = 11; + } + return 21; + } else if((((((a4==1)&&(!(a5==1)&&(((((input==2)&&((((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==4)))||(((a22==1)&&(a18==1))&&(a3==5))))&&(a20==1))&&(a27==1))&&(a6==1))))&&!(a0==1))&&(a15==1))&&(a12==11))){ + a18 = 1; + a3 = 4; + a5 = 1; + a12 = 8; + a22 = 1; + a0 = 1; + return -1; + } else if((((!(a5==1)&&(((a12==9)&&(!(a0==1)&&(!(a27==1)&&(!(a15==1)&&(!(a22==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a20==1)))))))&&!(a4==1)))&&!(a6==1))&&(a3==4))){ + if((a27==1)){ + a18 = 1; + a12 = 8; + a15 = 1; + a4 = 1; + a27 = 1; + a0 = 1; + a5 = 1; + a22 = 1; + }else{ + a15 = 1; + a27 = 1; + a18 = 0; + a0 = 1; + a5 = 1; + a4 = 1; + a3 = 6; + a12 = 8; + } + return -1; + } else if((((((a5==1)&&(((!(a6==1)&&(((((input==5)&&((a18==1)||!(a18==1)))&&(a22==1))&&(a3==8))&&(a12==10)))&&(a4==1))&&(a20==1)))&&!(a27==1))&&!(a15==1))&&!(a0==1))){ + if((a12==12)){ + a6 = 1; + a12 = 8; + a0 = 1; + a18 = 1; + a15 = 1; + a27 = 1; + }else{ + a0 = 1; + a3 = 4; + a15 = 1; + a27 = 1; + a18 = 0; + a12 = 8; + } + return 21; + } else if(((a3==6)&&((a4==1)&&((((!(a15==1)&&((a0==1)&&(((a20==1)&&(((input==3)&&(a22==1))&&(a12==10)))&&!(a27==1))))&&!(a6==1))&&!(a5==1))&&!(a18==1))))){ + if((a3==8)){ + a3 = 7; + a22 = 0; + a27 = 1; + a12 = 9; + a4 = 0; + a6 = 1; + a0 = 0; + }else{ + a3 = 5; + a27 = 1; + a12 = 9; + a0 = 0; + a18 = 1; + a4 = 0; + } + return 21; + } else if(((((a27==1)&&((a12==12)&&(((((a6==1)&&((a20==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==4))))&&(a4==1))&&(a15==1))&&(a3==4))))&&!(a5==1))&&!(a0==1))){ + a22 = 0; + a5 = 1; + a4 = 0; + a18 = 0; + a0 = 1; + a12 = 8; + return 26; + } else if(((a12==8)&&(!(a5==1)&&(!(a4==1)&&(!(a15==1)&&((a0==1)&&((a27==1)&&((a20==1)&&((input==4)&&((((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1))||(((((a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))))))))))))){ + a22 = 1; + a15 = 1; + a3 = 4; + a18 = 1; + a4 = 1; + a6 = 1; + a5 = 1; + return -1; + } else if((((a6==1)&&((a3==5)&&(!(a15==1)&&(((a20==1)&&(((a4==1)&&((a5==1)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==1))))&&(a0==1)))&&!(a27==1)))))&&(a12==12))){ + a15 = 1; + a3 = 7; + a18 = 1; + a4 = 0; + a27 = 1; + a22 = 0; + a12 = 10; + return 26; + } else if((((a12==11)&&((!(a15==1)&&((a6==1)&&(!(a5==1)&&(((a20==1)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==2)))&&!(a0==1)))))&&(a4==1)))&&!(a27==1))){ + a3 = 8; + a18 = 0; + a12 = 12; + a5 = 1; + a22 = 1; + a0 = 1; + return -1; + } else if(((((a5==1)&&((a3==8)&&(!(a4==1)&&(!(a6==1)&&((a22==1)&&(((a12==9)&&((((a18==1)||!(a18==1))&&(input==5))&&!(a15==1)))&&!(a0==1)))))))&&(a20==1))&&(a27==1))){ + a6 = 1; + a4 = 1; + a0 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + a15 = 1; + return -1; + } else if((((((a4==1)&&((!(a5==1)&&(((((a3==4)&&((input==4)&&((a18==1)||!(a18==1))))&&!(a6==1))&&(a0==1))&&!(a27==1)))&&(a12==8)))&&(a22==1))&&(a20==1))&&(a15==1))){ + a12 = 12; + a18 = 1; + a5 = 1; + a4 = 0; + a6 = 1; + a22 = 0; + a27 = 1; + return 24; + } else if((((((a20==1)&&((a3==8)&&((a5==1)&&(((!(a4==1)&&((input==1)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))&&!(a15==1))&&(a12==11)))))&&!(a27==1))&&(a6==1))&&(a0==1))){ + a22 = 1; + a18 = 0; + a3 = 6; + a5 = 0; + a12 = 8; + return -1; + } else if((((a20==1)&&((a4==1)&&((a15==1)&&((a27==1)&&(!(a0==1)&&(!(a6==1)&&(((a5==1)&&((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a12==8))))))))&&(a3==7))){ + a5 = 0; + a22 = 0; + a18 = 1; + a3 = 8; + a12 = 10; + return -1; + } else if(((a20==1)&&((!(a5==1)&&(((a12==12)&&((!(a4==1)&&(((input==2)&&(((!(a18==1)&&!(a22==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7))))&&(a0==1)))&&!(a27==1)))&&(a6==1)))&&!(a15==1)))){ + a22 = 0; + a6 = 0; + a18 = 1; + a12 = 10; + a3 = 5; + a27 = 1; + return 26; + } else if((!(a27==1)&&(((a3==5)&&(((!(a6==1)&&(((a20==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&(a0==1))&&(a12==10)))&&(a5==1)))&&!(a4==1))&&(a15==1)))&&!(a22==1)))){ + a6 = 1; + a3 = 7; + a12 = 8; + a18 = 0; + a22 = 1; + a27 = 1; + a0 = 0; + return -1; + } else if(((a20==1)&&(((!(a0==1)&&(!(a15==1)&&(!(a5==1)&&((a3==8)&&((!(a27==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==6)))&&!(a4==1))))))&&(a12==8))&&!(a6==1)))){ + a4 = 1; + a5 = 1; + a0 = 1; + a22 = 0; + a18 = 0; + a12 = 9; + a3 = 7; + return -1; + } else if(((!(a0==1)&&(!(a4==1)&&(((((a15==1)&&((((a6==1)&&((input==6)&&(a3==8)))&&(a12==12))&&(a5==1)))&&!(a22==1))&&(a20==1))&&(a27==1))))&&!(a18==1))){ + a12 = 10; + a3 = 5; + a22 = 1; + a6 = 0; + a27 = 0; + a0 = 1; + a15 = 0; + return 26; + } else if(((a27==1)&&(((a5==1)&&((a3==5)&&(!(a15==1)&&((((!(a0==1)&&((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a4==1))&&(a20==1))&&!(a6==1)))))&&(a12==9)))){ + a3 = 4; + a18 = 1; + a22 = 1; + a0 = 1; + a12 = 11; + return 24; + } else if(((((a22==1)&&((((a12==9)&&((!(a6==1)&&((((input==2)&&(a20==1))&&(a27==1))&&!(a4==1)))&&!(a18==1)))&&(a3==6))&&(a0==1)))&&(a5==1))&&(a15==1))){ + a0 = 0; + a22 = 0; + a3 = 5; + a12 = 8; + a18 = 1; + return 26; + } else if((!(a5==1)&&(!(a4==1)&&((a0==1)&&(!(a15==1)&&((a27==1)&&(((((input==3)&&((((a22==1)&&!(a18==1))&&(a3==6))||(((!(a22==1)&&!(a18==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))))&&(a20==1))&&(a12==11))&&!(a6==1)))))))){ + a0 = 0; + a4 = 1; + a18 = 1; + a15 = 1; + a12 = 9; + a3 = 8; + a22 = 0; + return -1; + } else if((!(a15==1)&&(!(a18==1)&&((((((!(a27==1)&&((((input==3)&&!(a22==1))&&(a3==8))&&(a0==1)))&&!(a5==1))&&(a20==1))&&!(a4==1))&&(a6==1))&&(a12==10))))){ + a18 = 1; + a22 = 1; + a3 = 6; + return 26; + } else if(((a18==1)&&(((a20==1)&&((a6==1)&&(((a4==1)&&((!(a5==1)&&(((a3==8)&&((input==5)&&!(a27==1)))&&!(a22==1)))&&(a0==1)))&&(a15==1))))&&(a12==9)))){ + a18 = 0; + a27 = 1; + a12 = 11; + a15 = 0; + a3 = 6; + a22 = 1; + return -1; + } else if((!(a4==1)&&((!(a0==1)&&((a12==8)&&(!(a5==1)&&(!(a15==1)&&((((((a3==7)&&((a22==1)&&(a18==1)))||(((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1)))))&&(input==3))&&(a20==1))&&!(a6==1))))))&&!(a27==1)))){ + a22 = 1; + a5 = 1; + a15 = 1; + a0 = 1; + a4 = 1; + a27 = 1; + a18 = 1; + a3 = 5; + return -1; + } else if(((a5==1)&&(!(a4==1)&&((a6==1)&&((a15==1)&&((a27==1)&&((((((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==4))&&(a3==6))&&(a12==12))&&!(a0==1))&&(a20==1)))))))){ + a0 = 1; + a18 = 1; + a22 = 1; + a27 = 0; + a3 = 4; + a4 = 1; + a12 = 9; + return -1; + } else if(((a5==1)&&(((a4==1)&&((!(a15==1)&&(((a12==10)&&((a0==1)&&((((a3==6)&&(input==2))&&!(a22==1))&&!(a18==1))))&&(a6==1)))&&(a20==1)))&&(a27==1)))){ + a4 = 0; + a15 = 1; + a6 = 0; + a3 = 8; + a22 = 1; + return -1; + } else if((!(a0==1)&&((a12==8)&&(!(a15==1)&&((a4==1)&&(!(a5==1)&&(((a6==1)&&((((((a22==1)&&(a18==1))&&(a3==6))||(((a3==5)&&(!(a22==1)&&(a18==1)))||((a3==5)&&(!(a18==1)&&!(a22==1)))))&&(input==1))&&(a20==1)))&&(a27==1)))))))){ + a12 = 9; + a18 = 1; + a3 = 8; + a6 = 0; + a5 = 1; + a22 = 0; + a0 = 1; + return 26; + } else if((!(a27==1)&&((a3==8)&&((((a15==1)&&(!(a6==1)&&(((((((a18==1)||!(a18==1))&&(input==2))&&!(a4==1))&&!(a0==1))&&(a12==8))&&(a22==1))))&&(a20==1))&&!(a5==1))))){ + if((a4==1)){ + a4 = 1; + a27 = 1; + a12 = 12; + a6 = 1; + a3 = 7; + a18 = 1; + }else{ + a5 = 1; + a18 = 0; + a22 = 0; + a3 = 4; + a15 = 0; + a6 = 1; + a12 = 11; + } + return -1; + } else if(((a12==12)&&(((a20==1)&&((a15==1)&&((((a5==1)&&((a27==1)&&((((a3==8)&&(!(a18==1)&&(a22==1)))||(((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1)))))&&(input==3))))&&(a6==1))&&(a4==1))))&&(a0==1)))){ + a0 = 0; + a22 = 1; + a3 = 5; + a12 = 8; + a18 = 0; + a15 = 0; + a4 = 0; + return 26; + } else if((!(a18==1)&&((((a4==1)&&(((a22==1)&&((a12==10)&&((a6==1)&&((((input==6)&&!(a5==1))&&(a0==1))&&(a20==1)))))&&(a27==1)))&&(a3==7))&&(a15==1)))){ + a3 = 8; + a4 = 0; + a5 = 1; + a15 = 0; + return -1; + } else if(((((a20==1)&&(!(a27==1)&&((a6==1)&&((((a18==1)&&(!(a15==1)&&(((a12==11)&&(input==2))&&(a4==1))))&&!(a22==1))&&(a3==7)))))&&(a5==1))&&!(a0==1))){ + a27 = 1; + a12 = 8; + a15 = 1; + a22 = 1; + a3 = 5; + a0 = 1; + return 21; + } else if((!(a0==1)&&(!(a4==1)&&(((a12==11)&&(((!(a22==1)&&((!(a15==1)&&((((a18==1)||!(a18==1))&&(input==6))&&!(a5==1)))&&!(a27==1)))&&(a20==1))&&!(a6==1)))&&(a3==5))))){ + a0 = 1; + a5 = 1; + a4 = 1; + a12 = 9; + a3 = 6; + a18 = 1; + a27 = 1; + a22 = 1; + return -1; + } else if((((a22==1)&&((a20==1)&&((a12==9)&&(((a18==1)&&((((((input==1)&&(a0==1))&&!(a15==1))&&(a5==1))&&(a6==1))&&(a3==5)))&&!(a4==1)))))&&!(a27==1))){ + a18 = 0; + a3 = 6; + a15 = 1; + a22 = 0; + a5 = 0; + a12 = 11; + a27 = 1; + return 21; + } else if((((!(a6==1)&&((a12==9)&&(((!(a27==1)&&(!(a15==1)&&((a5==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a3==8)))))&&(a0==1))&&(a4==1))))&&(a22==1))&&(a20==1))){ + a12 = 10; + a6 = 1; + a15 = 1; + a3 = 5; + a22 = 0; + a5 = 0; + a27 = 1; + a18 = 1; + return 21; + } else if(((!(a6==1)&&((a20==1)&&((a27==1)&&((((a5==1)&&((a3==5)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==4))&&!(a4==1))))&&!(a0==1))&&(a12==12)))))&&!(a15==1))){ + a18 = 1; + a12 = 8; + a0 = 1; + a15 = 1; + a3 = 6; + a22 = 0; + a6 = 1; + return 26; + } else if((!(a4==1)&&((((!(a5==1)&&((a3==5)&&((a12==8)&&((((a20==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a22==1))&&!(a15==1)))))&&(a0==1))&&(a6==1))&&!(a27==1)))){ + if((a18==1)){ + a4 = 1; + a0 = 0; + a15 = 1; + a12 = 10; + a18 = 0; + a27 = 1; + a22 = 0; + a6 = 0; + a3 = 8; + }else{ + a18 = 1; + a27 = 1; + a12 = 11; + a15 = 1; + a3 = 8; + a4 = 1; + } + return 21; + } else if((((a3==4)&&((((((a15==1)&&(((a0==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==4)))&&(a5==1)))&&(a12==10))&&(a4==1))&&(a6==1))&&(a27==1)))&&(a20==1))){ + a22 = 1; + a12 = 11; + a6 = 0; + a3 = 5; + a18 = 0; + return 26; + } else if(((((!(a22==1)&&(!(a27==1)&&(((a20==1)&&(((!(a6==1)&&((a12==10)&&(input==6)))&&!(a5==1))&&(a18==1)))&&(a3==7))))&&!(a15==1))&&(a4==1))&&!(a0==1))){ + a15 = 1; + a3 = 6; + a5 = 1; + a27 = 1; + a18 = 0; + return 26; + } else if((!(a15==1)&&((a12==9)&&((!(a5==1)&&((a6==1)&&((a0==1)&&((a3==6)&&(((a4==1)&&((input==3)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a27==1))))))&&(a20==1))))){ + a12 = 8; + a18 = 0; + a4 = 0; + a22 = 0; + a27 = 0; + return 24; + } else if((((a5==1)&&((((((((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==6))&&!(a4==1))&&!(a15==1))&&(a3==4))&&(a0==1))&&(a12==10))&&(a20==1))&&(a6==1)))&&(a27==1))){ + a3 = 8; + a4 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((((!(a0==1)&&(((a27==1)&&(!(a15==1)&&(!(a4==1)&&(((input==6)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&!(a5==1)))))&&(a3==6)))&&(a20==1))&&(a12==12))&&!(a6==1))){ + if((a12==9)){ + a0 = 1; + a12 = 8; + a22 = 1; + a15 = 1; + a6 = 1; + a4 = 1; + a5 = 1; + a18 = 0; + }else{ + a18 = 0; + a3 = 8; + a6 = 1; + a4 = 1; + a15 = 1; + a22 = 0; + a12 = 11; + } + return 21; + } else if((((a15==1)&&((a20==1)&&((a18==1)&&((!(a5==1)&&(((a3==6)&&((a0==1)&&((a12==11)&&((input==5)&&(a4==1)))))&&(a22==1)))&&!(a27==1)))))&&(a6==1))){ + a12 = 9; + a18 = 0; + a3 = 4; + a22 = 0; + a15 = 0; + a6 = 0; + return -1; + } else if((((a4==1)&&(((a3==8)&&((a27==1)&&(((((!(a18==1)&&((a12==10)&&(input==1)))&&!(a5==1))&&!(a22==1))&&!(a6==1))&&(a20==1))))&&(a15==1)))&&(a0==1))){ + a3 = 6; + a5 = 1; + a4 = 0; + a12 = 8; + a22 = 1; + return 21; + } else if(((a6==1)&&((!(a18==1)&&(!(a15==1)&&(((a5==1)&&((a27==1)&&(((a12==8)&&((a22==1)&&(!(a4==1)&&(input==4))))&&(a0==1))))&&(a20==1))))&&(a3==7)))){ + a18 = 1; + a3 = 4; + a15 = 1; + a4 = 1; + return -1; + } else if(((a15==1)&&(((a6==1)&&((a27==1)&&(((((a20==1)&&((((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==2)))&&(a4==1))&&(a5==1))&&(a12==11))))&&!(a0==1)))){ + a4 = 0; + a12 = 12; + a3 = 4; + a15 = 0; + a6 = 0; + a18 = 0; + a0 = 1; + a22 = 1; + return 26; + } else if(((a5==1)&&((((((((a6==1)&&((a3==4)&&(((input==1)&&!(a18==1))&&!(a15==1))))&&!(a27==1))&&(a4==1))&&(a12==10))&&(a0==1))&&(a22==1))&&(a20==1)))){ + a5 = 0; + a0 = 0; + a27 = 1; + a6 = 0; + a22 = 0; + a4 = 0; + return 21; + } else if(((a12==8)&&((!(a5==1)&&(!(a4==1)&&(((!(a0==1)&&(((a6==1)&&((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&(a20==1)))&&!(a15==1))&&!(a27==1))))&&(a3==7)))){ + if((a12==10)){ + a0 = 1; + a22 = 0; + a3 = 5; + a18 = 1; + a15 = 1; + a6 = 0; + a5 = 1; + a12 = 10; + }else{ + a3 = 8; + a22 = 1; + a5 = 1; + a6 = 0; + a4 = 1; + a15 = 1; + a18 = 1; + a0 = 1; + a27 = 1; + } + return 21; + } else if(((a6==1)&&(!(a27==1)&&((a5==1)&&(!(a22==1)&&(!(a0==1)&&(((a18==1)&&(((a20==1)&&(((input==3)&&(a4==1))&&!(a15==1)))&&(a12==11)))&&(a3==5)))))))){ + a5 = 0; + a6 = 0; + a4 = 0; + a18 = 0; + a0 = 1; + a12 = 12; + a15 = 1; + return 26; + } else if(((((((((a20==1)&&((a22==1)&&((a15==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a0==1)))))&&(a12==8))&&!(a5==1))&&(a4==1))&&(a3==5))&&!(a6==1))&&!(a27==1))){ + a27 = 1; + a12 = 11; + a5 = 1; + a15 = 0; + a18 = 0; + a3 = 7; + a6 = 1; + return 24; + } else if(((((!(a0==1)&&(!(a27==1)&&(((!(a5==1)&&(((input==1)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a15==1)))&&!(a4==1))&&(a3==6))))&&(a12==10))&&(a20==1))&&(a6==1))){ + if((a0==1)){ + a12 = 8; + a6 = 0; + a18 = 1; + a4 = 1; + a5 = 1; + a27 = 1; + a3 = 7; + a0 = 1; + a22 = 0; + }else{ + a5 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + a27 = 1; + a4 = 1; + a22 = 1; + } + return 21; + } else if(((!(a22==1)&&((((a0==1)&&((a20==1)&&(!(a6==1)&&((((!(a15==1)&&(input==5))&&(a27==1))&&(a12==12))&&(a18==1)))))&&(a3==4))&&!(a4==1)))&&(a5==1))){ + if((a15==1)){ + a6 = 1; + a4 = 1; + a15 = 1; + a18 = 0; + a22 = 1; + a3 = 8; + a0 = 0; + }else{ + a0 = 0; + a3 = 8; + a5 = 0; + a12 = 10; + a18 = 0; + a6 = 1; + a22 = 1; + a15 = 1; + } + return 26; + } else if((!(a15==1)&&((a5==1)&&(((((a0==1)&&((a20==1)&&(!(a4==1)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==6))&&(a3==8)))))&&!(a27==1))&&(a12==8))&&!(a6==1))))){ + a3 = 4; + a22 = 1; + a5 = 0; + a6 = 1; + a18 = 0; + a4 = 1; + a15 = 1; + return 24; + } else if((((((((((((a20==1)&&((input==5)&&!(a15==1)))&&!(a6==1))&&(a4==1))&&(a18==1))&&(a12==8))&&!(a0==1))&&(a27==1))&&(a3==7))&&(a5==1))&&(a22==1))){ + a0 = 1; + a5 = 0; + a18 = 0; + a3 = 5; + a12 = 11; + return 24; + } else if(((a20==1)&&((a0==1)&&((!(a27==1)&&((((((a12==11)&&(!(a5==1)&&((input==4)&&!(a4==1))))&&(a18==1))&&!(a15==1))&&(a3==8))&&!(a22==1)))&&(a6==1))))){ + a27 = 1; + a6 = 0; + a22 = 1; + return -1; + } else if(((a0==1)&&(!(a5==1)&&((((a12==9)&&((((((a3==8)&&((a4==1)&&(!(a18==1)&&!(a22==1))))&&!(a6==1))||(((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))&&(a6==1)))&&(input==4))&&(a20==1)))&&(a15==1))&&(a27==1))))){ + a12 = 12; + a18 = 0; + a22 = 1; + a6 = 0; + a3 = 7; + a4 = 1; + return 26; + } else if(((a4==1)&&((((a27==1)&&(((((a15==1)&&((input==4)&&((((!(a22==1)&&(a18==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6)))||(((a22==1)&&(a18==1))&&(a3==7)))))&&(a12==8))&&!(a5==1))&&(a20==1)))&&(a0==1))&&!(a6==1)))){ + a18 = 1; + a5 = 1; + a6 = 1; + a12 = 10; + a3 = 7; + a22 = 1; + return 24; + } else if(((((a6==1)&&((!(a22==1)&&((a20==1)&&((a18==1)&&(((((a0==1)&&(input==6))&&(a3==7))&&(a12==9))&&(a4==1)))))&&(a15==1)))&&!(a27==1))&&(a5==1))){ + if((a5==1)){ + a5 = 0; + a0 = 0; + a22 = 1; + a27 = 1; + a18 = 0; + a3 = 4; + a12 = 10; + a4 = 0; + }else{ + a27 = 1; + a15 = 0; + a5 = 0; + a3 = 4; + a12 = 10; + } + return 21; + } else if((!(a0==1)&&((!(a27==1)&&((input==4)&&(((((a3==8)&&(!(a4==1)&&((!(a15==1)&&((!(a22==1)&&!(a18==1))&&!(a5==1)))&&(a12==8))))&&!(a6==1))||((a6==1)&&((((a12==9)&&((a15==1)&&((a5==1)&&((a22==1)&&(a18==1)))))&&(a4==1))&&(a3==4))))||((a6==1)&&(((((a15==1)&&((a5==1)&&((a22==1)&&!(a18==1))))&&(a12==9))&&(a4==1))&&(a3==4))))))&&(a20==1)))){ + if((a15==1)){ + a3 = 7; + a15 = 0; + a6 = 0; + a22 = 1; + a4 = 0; + a5 = 0; + a12 = 8; + a18 = 0; + }else{ + a27 = 1; + a0 = 1; + a6 = 1; + a12 = 8; + a18 = 0; + a5 = 1; + a22 = 1; + a4 = 1; + a3 = 7; + a15 = 1; + } + return 26; + } else if(((((!(a0==1)&&((!(a6==1)&&(((a27==1)&&(((input==2)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a4==1)))&&(a12==10)))&&(a15==1)))&&(a20==1))&&(a5==1))&&(a3==7))){ + a3 = 8; + a0 = 1; + a27 = 0; + a18 = 0; + a6 = 1; + a22 = 1; + a5 = 0; + return -1; + } else if(((a12==12)&&((a20==1)&&((a4==1)&&(!(a5==1)&&(((a0==1)&&(((input==6)&&((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))))&&(a15==1)))&&(a27==1))))))){ + a3 = 4; + a6 = 1; + a22 = 1; + a12 = 8; + a5 = 1; + a18 = 1; + return -1; + } else if(((!(a18==1)&&(!(a15==1)&&(((((!(a5==1)&&(!(a27==1)&&(((input==2)&&(a6==1))&&!(a4==1))))&&(a22==1))&&(a3==8))&&(a20==1))&&(a12==11))))&&!(a0==1))){ + a0 = 1; + a15 = 1; + a22 = 0; + a12 = 8; + a5 = 1; + a3 = 5; + return 26; + } else if(((a20==1)&&((((((!(a27==1)&&((((input==3)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a4==1))&&(a3==6)))&&(a6==1))&&(a5==1))&&(a12==11))&&(a15==1))&&!(a0==1)))){ + if((a18==1)){ + a27 = 1; + a22 = 1; + a6 = 0; + a18 = 1; + a3 = 5; + }else{ + a0 = 1; + a15 = 0; + a22 = 1; + a4 = 1; + a18 = 1; + } + return 26; + } else if((!(a0==1)&&(((a20==1)&&((a5==1)&&((((((((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1))))||(!(a6==1)&&((a3==4)&&((a18==1)&&(a22==1)))))||(((!(a18==1)&&(a22==1))&&(a3==4))&&!(a6==1)))&&(input==3))&&(a12==11))&&(a4==1))&&!(a27==1))))&&(a15==1)))){ + a3 = 5; + a12 = 10; + a18 = 1; + a6 = 0; + a22 = 0; + a4 = 0; + return 21; + } else if(((((a5==1)&&(((((!(a4==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==3))&&(a3==6)))&&!(a6==1))&&!(a15==1))&&(a12==11))&&!(a27==1)))&&(a20==1))&&!(a0==1))){ + if((a18==1)){ + a22 = 1; + a0 = 1; + a15 = 1; + a12 = 9; + a4 = 1; + a3 = 8; + a18 = 0; + a5 = 0; + a27 = 1; + }else{ + a4 = 1; + a12 = 9; + a3 = 4; + a22 = 0; + a18 = 0; + a27 = 1; + } + return -1; + } else if((((a27==1)&&(!(a5==1)&&(((a20==1)&&(!(a6==1)&&((!(a0==1)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==4)))&&(a4==1))))&&(a12==12))))&&!(a15==1))){ + if((a18==1)){ + a22 = 1; + a0 = 1; + a18 = 0; + a12 = 11; + a3 = 8; + }else{ + a12 = 8; + a18 = 0; + a6 = 1; + a22 = 0; + a3 = 4; + } + return -1; + } else if((((a20==1)&&((((!(a0==1)&&((((input==4)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1)))))&&!(a27==1))&&!(a15==1)))&&!(a6==1))&&(a12==9))&&(a5==1)))&&!(a4==1))){ + a18 = 1; + a0 = 1; + a22 = 1; + a6 = 1; + a15 = 1; + a12 = 11; + a3 = 5; + a4 = 1; + return 21; + } else if(((((a4==1)&&((a20==1)&&(((a15==1)&&(!(a0==1)&&((a12==10)&&(((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))||(((a22==1)&&!(a18==1))&&(a3==8)))&&(input==2)))))&&!(a27==1))))&&!(a5==1))&&(a6==1))){ + a18 = 0; + a4 = 0; + a27 = 1; + a12 = 8; + a5 = 1; + a0 = 1; + a3 = 6; + a22 = 0; + return -1; + } else if(((a5==1)&&(((a0==1)&&(!(a6==1)&&(((a12==8)&&(((a3==6)&&(((a22==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a20==1)))&&!(a27==1)))&&(a4==1))))&&!(a15==1)))){ + a27 = 1; + a3 = 4; + a18 = 1; + a15 = 1; + a6 = 1; + return -1; + } else if(((a3==7)&&(((a15==1)&&(!(a5==1)&&((a20==1)&&((!(a27==1)&&((((input==2)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a6==1))&&(a0==1)))&&(a12==8)))))&&(a4==1)))){ + a3 = 4; + a5 = 1; + a18 = 1; + a27 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if(((!(a18==1)&&((((a6==1)&&((a3==7)&&((a22==1)&&((a27==1)&&(((a15==1)&&((a20==1)&&(input==4)))&&!(a5==1))))))&&!(a4==1))&&(a12==11)))&&(a0==1))){ + a3 = 4; + a5 = 1; + a12 = 8; + a4 = 1; + a18 = 1; + return -1; + } else if((!(a0==1)&&((!(a5==1)&&((((a27==1)&&((a15==1)&&(((((input==4)&&((a18==1)||!(a18==1)))&&(a20==1))&&!(a22==1))&&(a4==1))))&&(a12==12))&&(a3==6)))&&(a6==1)))){ + if((a18==1)){ + a27 = 0; + a3 = 8; + a18 = 1; + a6 = 0; + a0 = 1; + }else{ + a27 = 0; + a5 = 1; + a15 = 0; + a0 = 1; + a18 = 1; + a12 = 8; + } + return -1; + } else if((((a4==1)&&(!(a22==1)&&((!(a5==1)&&(((((a15==1)&&(((input==1)&&((a18==1)||!(a18==1)))&&(a6==1)))&&(a27==1))&&(a3==8))&&(a12==8)))&&(a20==1))))&&(a0==1))){ + a22 = 1; + a3 = 4; + a5 = 1; + a18 = 1; + return -1; + } else if(((((a20==1)&&((!(a27==1)&&(((!(a6==1)&&((((a5==1)&&(input==1))&&(a18==1))&&!(a0==1)))&&!(a22==1))&&!(a15==1)))&&(a4==1)))&&(a12==8))&&(a3==5))){ + if((a3==7)){ + a22 = 1; + a27 = 1; + a15 = 1; + a0 = 1; + a6 = 1; + a4 = 0; + }else{ + a6 = 1; + a22 = 1; + a12 = 10; + } + return 26; + } else if((!(a15==1)&&(((!(a22==1)&&((a12==8)&&((((a6==1)&&((a4==1)&&((((a18==1)||!(a18==1))&&(input==5))&&(a3==4))))&&!(a0==1))&&(a20==1))))&&(a27==1))&&!(a5==1)))){ + a0 = 1; + a6 = 0; + a18 = 1; + a12 = 12; + a22 = 1; + a4 = 0; + a3 = 7; + return 21; + } else if((!(a18==1)&&((a6==1)&&(!(a15==1)&&((a12==11)&&(!(a22==1)&&(((a3==5)&&((!(a5==1)&&(!(a0==1)&&((input==2)&&!(a27==1))))&&(a20==1)))&&!(a4==1)))))))){ + if((a3==6)){ + a12 = 8; + a3 = 6; + a5 = 1; + a0 = 1; + a15 = 1; + a27 = 1; + a4 = 1; + }else{ + a6 = 0; + a12 = 9; + a5 = 1; + } + return -1; + } else if(((!(a27==1)&&(!(a5==1)&&((a12==8)&&((!(a4==1)&&((a6==1)&&((a20==1)&&((input==3)&&((((a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&((a18==1)&&!(a22==1)))||((a3==7)&&(!(a18==1)&&!(a22==1)))))))))&&!(a15==1)))))&&(a0==1))){ + a4 = 1; + a15 = 1; + a18 = 1; + a5 = 1; + a3 = 4; + a27 = 1; + a22 = 1; + return -1; + } else if((((((a15==1)&&((a12==11)&&(((a0==1)&&((((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a20==1))&&(a3==7)))&&!(a4==1))))&&!(a6==1))&&!(a27==1))&&(a5==1))){ + a5 = 0; + a12 = 12; + a27 = 1; + a6 = 1; + a18 = 0; + a4 = 1; + a22 = 0; + a3 = 8; + a15 = 0; + return -1; + } else if((!(a0==1)&&(((a4==1)&&((((((((((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))||(((a22==1)&&!(a18==1))&&(a3==8)))&&(input==5))&&(a20==1))&&(a27==1))&&(a5==1))&&!(a6==1))&&(a15==1)))&&(a12==8)))){ + if((a0==1)){ + a22 = 1; + a3 = 8; + a18 = 0; + a15 = 0; + a12 = 11; + a4 = 0; + a6 = 1; + }else{ + a12 = 10; + a4 = 0; + a0 = 1; + a6 = 1; + a27 = 0; + a18 = 1; + a22 = 1; + a3 = 7; + } + return 26; + } else if((((a12==11)&&(((a0==1)&&((a20==1)&&((a5==1)&&((((a27==1)&&(!(a6==1)&&((a22==1)&&(input==5))))&&(a3==6))&&(a15==1)))))&&!(a18==1)))&&(a4==1))){ + a12 = 8; + a3 = 4; + a6 = 1; + a18 = 1; + return -1; + } else if(((a12==12)&&((a6==1)&&((((a22==1)&&((!(a4==1)&&((a15==1)&&(((a20==1)&&(!(a0==1)&&(input==5)))&&(a27==1))))&&!(a18==1)))&&!(a5==1))&&(a3==7))))){ + if((a3==5)){ + a4 = 1; + a0 = 1; + a5 = 1; + a12 = 8; + }else{ + a18 = 1; + a0 = 1; + a22 = 0; + a6 = 0; + a4 = 1; + a12 = 11; + } + return -1; + } else if(((a12==11)&&(((!(a27==1)&&((a6==1)&&((a5==1)&&((((input==2)&&(((a3==7)&&((a22==1)&&!(a18==1)))||(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1))))))&&(a4==1))&&!(a0==1)))))&&(a20==1))&&!(a15==1)))){ + if((a5==1)){ + a27 = 1; + a22 = 1; + a15 = 1; + a3 = 4; + a18 = 0; + a6 = 0; + a12 = 8; + a0 = 1; + }else{ + a3 = 6; + a18 = 0; + a0 = 1; + a4 = 0; + a22 = 0; + a15 = 1; + } + return 26; + } else if((!(a4==1)&&((a27==1)&&(((a3==5)&&(((((a22==1)&&(!(a15==1)&&(!(a5==1)&&((input==3)&&((a18==1)||!(a18==1))))))&&(a20==1))&&(a12==10))&&!(a6==1)))&&(a0==1))))){ + if((a18==1)){ + a22 = 0; + a18 = 1; + a6 = 1; + a3 = 4; + a0 = 0; + }else{ + a12 = 11; + a18 = 0; + a6 = 1; + a3 = 4; + a4 = 1; + } + return 21; + } else if(((a0==1)&&((a3==6)&&((((!(a27==1)&&((a20==1)&&((a12==8)&&((a5==1)&&((a22==1)&&(((a18==1)||!(a18==1))&&(input==1)))))))&&(a6==1))&&(a15==1))&&!(a4==1))))){ + a3 = 4; + a18 = 1; + a0 = 0; + a27 = 1; + return -1; + } return calculate_output78(input); + } + + int calculate_output78(int input) { + if(((a27==1)&&(((((a6==1)&&((a3==8)&&(((((a22==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&!(a4==1))&&(a20==1))&&(a12==12))))&&(a5==1))&&(a0==1))&&!(a15==1)))){ + a6 = 0; + a12 = 10; + a18 = 1; + return -1; + } else if((((!(a27==1)&&((a18==1)&&(((a20==1)&&((a3==8)&&((a4==1)&&((((a22==1)&&(input==4))&&(a0==1))&&(a6==1)))))&&(a5==1))))&&(a12==8))&&(a15==1))){ + a4 = 0; + a3 = 5; + a27 = 1; + a12 = 10; + a0 = 0; + return 26; + } else if((((((!(a27==1)&&(!(a15==1)&&((a3==5)&&(!(a0==1)&&((a12==10)&&((input==6)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))))))&&!(a6==1))&&(a20==1))&&!(a4==1))&&!(a5==1))){ + a0 = 1; + a3 = 6; + a15 = 1; + a22 = 1; + a18 = 1; + a12 = 12; + return 26; + } else if((!(a15==1)&&(!(a27==1)&&(!(a18==1)&&(!(a5==1)&&(((((a20==1)&&(((a0==1)&&((a6==1)&&(input==5)))&&!(a22==1)))&&(a4==1))&&(a12==11))&&(a3==6))))))){ + if((a27==1)){ + a3 = 7; + a12 = 10; + a0 = 0; + a6 = 0; + a27 = 1; + a5 = 1; + }else{ + a27 = 1; + a15 = 1; + a5 = 1; + a3 = 8; + a22 = 1; + } + return -1; + } else if(((((a0==1)&&((a4==1)&&((a12==10)&&((a5==1)&&((((input==2)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a18==1)&&(a22==1)))))&&(a20==1))&&!(a6==1))))))&&(a27==1))&&!(a15==1))){ + a18 = 1; + a3 = 6; + a4 = 0; + a0 = 0; + a6 = 1; + a22 = 1; + a12 = 11; + a15 = 1; + return 21; + } else if((((a20==1)&&(!(a4==1)&&((a15==1)&&((((a27==1)&&(((a12==9)&&(((input==1)&&((a18==1)||!(a18==1)))&&!(a6==1)))&&!(a5==1)))&&(a22==1))&&(a3==5)))))&&!(a0==1))){ + a22 = 0; + a18 = 1; + a3 = 7; + a0 = 1; + a15 = 0; + return -1; + } else if((((a15==1)&&(!(a5==1)&&((a12==10)&&(((a27==1)&&(((a6==1)&&(((((a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&((a18==1)&&!(a22==1)))||((a3==7)&&(!(a18==1)&&!(a22==1)))))&&(input==3)))&&!(a4==1)))&&(a20==1)))))&&!(a0==1))){ + a3 = 5; + a15 = 0; + a27 = 0; + a22 = 0; + a18 = 0; + a0 = 1; + return 21; + } else if(((!(a18==1)&&((((!(a4==1)&&(((a0==1)&&(((a27==1)&&((input==6)&&(a12==9)))&&(a5==1)))&&!(a6==1)))&&(a3==6))&&(a20==1))&&(a15==1)))&&(a22==1))){ + a4 = 1; + a3 = 5; + a15 = 0; + a12 = 12; + return 26; + } else if((((a6==1)&&(!(a27==1)&&((a12==11)&&((a18==1)&&(((!(a15==1)&&(!(a0==1)&&((a5==1)&&(!(a4==1)&&(input==3)))))&&!(a22==1))&&(a3==4))))))&&(a20==1))){ + a18 = 0; + a3 = 6; + a15 = 1; + a6 = 0; + a0 = 1; + a12 = 8; + a27 = 1; + a4 = 1; + return -1; + } else if(((a5==1)&&((a0==1)&&(((((a6==1)&&((!(a15==1)&&((input==3)&&((((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==7)))))&&(a4==1)))&&(a27==1))&&(a20==1))&&(a12==11))))){ + a3 = 8; + a18 = 0; + a22 = 1; + a12 = 10; + a15 = 1; + a4 = 0; + return -1; + } else if(((((a3==8)&&((a12==8)&&(((a4==1)&&((a6==1)&&((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==2))&&(a15==1))&&(a20==1))))&&!(a0==1))))&&!(a27==1))&&!(a5==1))){ + a18 = 1; + a5 = 1; + a0 = 1; + a27 = 1; + a4 = 0; + a3 = 7; + a22 = 1; + return -1; + } else if(((a12==12)&&((((a22==1)&&(((a20==1)&&(((a6==1)&&(((a3==6)&&((input==4)&&(a5==1)))&&!(a15==1)))&&!(a27==1)))&&(a18==1)))&&(a0==1))&&!(a4==1)))){ + a27 = 1; + a12 = 8; + a3 = 4; + a4 = 1; + a15 = 1; + return -1; + } else if(((!(a15==1)&&(!(a5==1)&&((((a3==4)&&((((a20==1)&&((a4==1)&&((input==2)&&((a18==1)||!(a18==1)))))&&(a12==10))&&(a27==1)))&&!(a0==1))&&!(a22==1))))&&(a6==1))){ + a3 = 6; + a12 = 11; + a0 = 1; + a18 = 1; + a15 = 1; + a5 = 1; + return -1; + } else if(((!(a5==1)&&((!(a4==1)&&((((!(a6==1)&&(((((a22==1)&&(a18==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a22==1)&&!(a18==1)))))&&(input==1)))&&(a0==1))&&(a20==1))&&(a12==11)))&&!(a15==1)))&&!(a27==1))){ + a5 = 1; + a4 = 1; + a27 = 1; + a18 = 1; + a22 = 1; + a6 = 1; + a3 = 4; + a15 = 1; + a12 = 8; + return -1; + } else if((((((a12==12)&&(((((a20==1)&&(((input==3)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&!(a4==1)))&&(a27==1))&&(a5==1))&&(a6==1)))&&(a3==6))&&(a15==1))&&!(a0==1))){ + a15 = 0; + a12 = 11; + a0 = 1; + a18 = 0; + a3 = 4; + a5 = 0; + a22 = 0; + a4 = 1; + return 26; + } else if((!(a27==1)&&((!(a22==1)&&(!(a15==1)&&(((a12==8)&&(((((a20==1)&&((a0==1)&&(input==3)))&&(a18==1))&&!(a6==1))&&(a4==1)))&&(a5==1))))&&(a3==7)))){ + a12 = 12; + a5 = 0; + a3 = 5; + a27 = 1; + a6 = 1; + a18 = 0; + return 24; + } else if((!(a4==1)&&((((!(a0==1)&&(((((a15==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==4)))&&!(a5==1))&&(a3==7))&&(a12==9)))&&!(a6==1))&&(a20==1))&&(a27==1)))){ + a3 = 5; + a0 = 1; + a4 = 1; + a5 = 1; + a12 = 12; + a18 = 0; + a15 = 0; + a22 = 0; + return -1; + } else if(((a12==9)&&((!(a6==1)&&((((((a4==1)&&((a20==1)&&((input==5)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))))&&!(a27==1))&&(a15==1))&&(a5==1))&&(a0==1)))&&(a3==5)))){ + a18 = 1; + a6 = 1; + a22 = 1; + a27 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((!(a27==1)&&(!(a6==1)&&((a4==1)&&(!(a15==1)&&((a0==1)&&(((a12==9)&&((a20==1)&&((a3==6)&&((a22==1)&&(input==4)))))&&!(a5==1)))))))&&!(a18==1))){ + a3 = 4; + a15 = 1; + a5 = 1; + a27 = 1; + a12 = 8; + a6 = 1; + a18 = 1; + return -1; + } else if(((((!(a5==1)&&(!(a4==1)&&((a0==1)&&((a27==1)&&((a20==1)&&(((a22==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a15==1)))))))&&(a3==7))&&(a12==11))&&!(a6==1))){ + a3 = 4; + a12 = 8; + a5 = 1; + a18 = 1; + a6 = 1; + a4 = 1; + return -1; + } else if((!(a27==1)&&((!(a4==1)&&((a15==1)&&((a20==1)&&(((a12==8)&&(((input==6)&&(((a3==6)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5)))))&&!(a5==1)))&&!(a6==1)))))&&(a0==1)))){ + a27 = 1; + a5 = 1; + a6 = 1; + a22 = 1; + a18 = 1; + a12 = 11; + a3 = 7; + return 24; + } else if(((((a12==8)&&(((a27==1)&&(!(a4==1)&&((!(a6==1)&&(((((a22==1)&&(a18==1))&&(a3==7))||(((a3==6)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==6))))&&(input==5)))&&!(a5==1))))&&!(a0==1)))&&(a15==1))&&(a20==1))){ + a5 = 1; + a6 = 1; + a12 = 12; + a18 = 1; + a22 = 0; + a0 = 1; + a4 = 1; + a3 = 5; + return 21; + } else if(((a20==1)&&((!(a27==1)&&((a15==1)&&((a4==1)&&((((a5==1)&&(((((a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==7))))&&(input==4)))&&(a0==1))&&(a12==12)))))&&(a6==1)))){ + a18 = 0; + a15 = 0; + a27 = 1; + a22 = 0; + a12 = 10; + a6 = 0; + a3 = 6; + return 26; + } else if((((a15==1)&&(((((a0==1)&&((a4==1)&&((a12==9)&&((input==6)&&(((a3==8)&&((a22==1)&&!(a18==1)))||(((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8))))))))&&(a5==1))&&(a20==1))&&(a27==1)))&&(a6==1))){ + a3 = 8; + a12 = 11; + a6 = 0; + a5 = 0; + a18 = 0; + a4 = 0; + a22 = 1; + a15 = 0; + return 21; + } else if((((((a6==1)&&(((a4==1)&&((a5==1)&&(((((a20==1)&&(input==5))&&(a27==1))&&(a3==5))&&!(a22==1))))&&(a12==12)))&&(a0==1))&&(a18==1))&&!(a15==1))){ + a12 = 8; + a3 = 4; + a18 = 0; + a4 = 0; + return -1; + } else if(((a20==1)&&(!(a5==1)&&(((((!(a22==1)&&((a27==1)&&(!(a6==1)&&(((a12==12)&&(input==6))&&(a3==6)))))&&!(a0==1))&&(a15==1))&&!(a4==1))&&!(a18==1))))){ + a3 = 7; + a15 = 0; + a4 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if(((!(a5==1)&&((((a20==1)&&((((!(a4==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&!(a0==1)))&&(a3==8))&&!(a27==1))&&(a6==1)))&&(a15==1))&&(a12==10)))&&!(a22==1))){ + a5 = 1; + a27 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + a22 = 1; + return -1; + } else if(((a12==8)&&((((a0==1)&&(!(a15==1)&&((((((input==6)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a27==1))&&!(a6==1))&&(a20==1))&&!(a5==1))))&&(a3==6))&&!(a4==1)))){ + a4 = 1; + a3 = 5; + a18 = 1; + a22 = 1; + a15 = 1; + a12 = 11; + return 26; + } else if(((a0==1)&&((a6==1)&&(((a20==1)&&(((a15==1)&&((((((input==4)&&!(a5==1))&&(a3==5))&&!(a27==1))&&(a12==10))&&!(a4==1)))&&!(a22==1)))&&!(a18==1))))){ + a22 = 1; + a5 = 1; + a4 = 1; + a3 = 4; + a27 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if((!(a0==1)&&(!(a6==1)&&((((!(a15==1)&&((a12==11)&&((!(a27==1)&&((input==3)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))))&&(a4==1))))&&!(a5==1))&&(a20==1))&&(a3==4))))){ + if((a15==1)){ + a27 = 1; + a18 = 1; + a5 = 1; + a15 = 1; + a22 = 0; + a0 = 1; + a3 = 8; + }else{ + a4 = 0; + a18 = 0; + a0 = 1; + a12 = 8; + a22 = 1; + a3 = 7; + } + return -1; + } else if(((((a12==8)&&(((a4==1)&&(((((a3==8)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==6)))&&(a5==1))&&(a15==1))&&(a0==1)))&&(a6==1)))&&!(a27==1))&&(a20==1))){ + a5 = 0; + a12 = 11; + a22 = 0; + a15 = 0; + a18 = 0; + a3 = 6; + a27 = 1; + return 26; + } else if(((a20==1)&&(!(a6==1)&&(!(a15==1)&&((!(a27==1)&&((a0==1)&&(!(a4==1)&&((a12==11)&&((((((a18==1)&&!(a22==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7)))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==3))))))&&(a5==1)))))){ + a15 = 1; + a18 = 0; + a22 = 0; + a3 = 8; + a12 = 8; + return -1; + } else if((!(a0==1)&&((a12==9)&&(!(a6==1)&&(((a5==1)&&(!(a27==1)&&((((input==6)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5)))||(((a18==1)&&(a22==1))&&(a3==6))))&&!(a15==1))&&(a4==1))))&&(a20==1)))))){ + if((a22==1)){ + a15 = 1; + a18 = 0; + a3 = 8; + a22 = 0; + a0 = 1; + a27 = 1; + a12 = 8; + }else{ + a3 = 6; + a15 = 1; + a12 = 8; + a18 = 0; + a0 = 1; + a27 = 1; + a22 = 0; + } + return 26; + } else if((!(a6==1)&&(((a0==1)&&((a5==1)&&((a20==1)&&(((!(a15==1)&&((!(a27==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&(a12==9)))&&(a3==4))&&(a22==1)))))&&!(a4==1)))){ + a18 = 0; + a22 = 0; + a12 = 11; + a27 = 1; + a3 = 8; + return 26; + } else if(((a12==8)&&((a20==1)&&((((a4==1)&&((!(a15==1)&&((((input==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a5==1))&&(a27==1)))&&(a6==1)))&&(a3==6))&&!(a0==1))))){ + a3 = 4; + a18 = 1; + a15 = 1; + a22 = 1; + a0 = 1; + return -1; + } else if(((((((((a27==1)&&(((input==5)&&(((a3==5)&&((a22==1)&&(a18==1)))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==4)))))&&(a5==1)))&&(a12==10))&&(a0==1))&&(a15==1))&&!(a4==1))&&!(a6==1))&&(a20==1))){ + a22 = 1; + a3 = 4; + a4 = 1; + a18 = 1; + a12 = 8; + a6 = 1; + return -1; + } else if((((a6==1)&&((!(a27==1)&&((!(a0==1)&&((!(a5==1)&&((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==6))&&(a12==11)))&&(a20==1)))&&(a3==5)))&&!(a4==1)))&&(a15==1))){ + a18 = 0; + a4 = 1; + a15 = 0; + a0 = 1; + a12 = 10; + a22 = 1; + a6 = 0; + return 21; + } else if(((a27==1)&&((a12==12)&&(!(a6==1)&&(((((((a15==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&!(a0==1)))&&(a5==1))&&!(a4==1))&&(a22==1))&&(a20==1))&&(a3==4)))))){ + a5 = 0; + a0 = 1; + a6 = 1; + a3 = 8; + a22 = 0; + a4 = 1; + a12 = 11; + a18 = 0; + return 24; + } else if(((a12==9)&&((((a6==1)&&(((!(a27==1)&&((((input==4)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&!(a15==1))&&!(a5==1)))&&!(a4==1))&&(a20==1)))&&(a3==4))&&!(a0==1)))){ + a5 = 1; + a22 = 0; + a12 = 8; + a15 = 1; + a3 = 7; + a27 = 1; + a0 = 1; + a18 = 0; + return 24; + } else if(((a22==1)&&((a0==1)&&(((a20==1)&&(((a4==1)&&(((((((a18==1)||!(a18==1))&&(input==6))&&(a3==7))&&!(a5==1))&&(a15==1))&&!(a6==1)))&&!(a27==1)))&&(a12==11))))){ + a15 = 0; + a27 = 1; + a22 = 0; + a4 = 0; + a3 = 8; + a18 = 1; + return -1; + } else if(((a5==1)&&(!(a27==1)&&((a15==1)&&(!(a6==1)&&((a20==1)&&((a12==9)&&(!(a0==1)&&((a4==1)&&((input==3)&&(((a3==8)&&((a22==1)&&(a18==1)))||(((a3==7)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==7)))))))))))))){ + a22 = 0; + a27 = 1; + a6 = 1; + a3 = 8; + a18 = 0; + a4 = 0; + a0 = 1; + a12 = 8; + return -1; + } else if(((a27==1)&&(!(a15==1)&&((a4==1)&&((!(a6==1)&&((((((((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a18==1)&&(a22==1))))||((a3==6)&&(!(a18==1)&&(a22==1))))&&(input==1))&&(a20==1))&&!(a0==1))&&(a12==12)))&&!(a5==1)))))){ + a0 = 1; + a18 = 1; + a15 = 1; + a12 = 8; + a3 = 7; + a5 = 1; + a22 = 1; + return 21; + } else if((((((a4==1)&&(((!(a15==1)&&((a18==1)&&((!(a22==1)&&(!(a27==1)&&(input==5)))&&(a0==1))))&&!(a6==1))&&(a5==1)))&&(a20==1))&&(a3==6))&&(a12==8))){ + a12 = 11; + a15 = 1; + a18 = 0; + a5 = 0; + a27 = 1; + a6 = 1; + return 21; + } else if(((((!(a22==1)&&((a20==1)&&((a0==1)&&((a18==1)&&((((a3==4)&&((a5==1)&&(input==3)))&&(a4==1))&&!(a27==1))))))&&(a15==1))&&!(a6==1))&&(a12==10))){ + a18 = 0; + a27 = 1; + a22 = 1; + a15 = 0; + a12 = 12; + return 26; + } else if((((!(a27==1)&&(!(a4==1)&&(((((((((a18==1)&&(a22==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5))))&&(input==4))&&!(a6==1))&&(a12==8))&&(a20==1))&&!(a5==1))))&&!(a15==1))&&(a0==1))){ + a15 = 1; + a5 = 1; + a12 = 11; + a22 = 0; + a18 = 0; + a4 = 1; + a3 = 8; + a27 = 1; + return 21; + } else if((((a12==11)&&((((a6==1)&&((a0==1)&&(!(a27==1)&&(((((a3==6)&&((a22==1)&&(a18==1)))||(((a3==5)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==5))))&&(input==4))&&(a5==1)))))&&(a20==1))&&(a4==1)))&&(a15==1))){ + a22 = 0; + a27 = 1; + a3 = 8; + a18 = 1; + a4 = 0; + a6 = 0; + return 24; + } else if(((!(a5==1)&&(!(a27==1)&&((((((a4==1)&&((input==1)&&((((a3==5)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==5)))||(((a18==1)&&(a22==1))&&(a3==6)))))&&!(a6==1))&&(a20==1))&&(a12==11))&&(a0==1))))&&!(a15==1))){ + a15 = 1; + a22 = 1; + a3 = 5; + a12 = 10; + a18 = 0; + a6 = 1; + return -1; + } else if(((((((((a0==1)&&(!(a22==1)&&(!(a6==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a20==1)))))&&!(a5==1))&&!(a15==1))&&(a12==9))&&(a4==1))&&(a27==1))&&(a3==7))){ + a3 = 5; + a5 = 1; + a18 = 0; + a22 = 1; + a15 = 1; + a27 = 0; + return 26; + } else if((!(a15==1)&&((((!(a6==1)&&((a20==1)&&(!(a4==1)&&(!(a27==1)&&((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==1))))))&&!(a0==1))&&(a5==1))&&(a12==8)))){ + a3 = 5; + a4 = 1; + a6 = 1; + a12 = 11; + a22 = 1; + a27 = 1; + a18 = 0; + return 21; + } else if(((a12==10)&&((a4==1)&&(((((a6==1)&&((a20==1)&&((a5==1)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==4)))))&&!(a27==1))&&!(a0==1))&&!(a15==1))))){ + a3 = 4; + a22 = 1; + a18 = 1; + a12 = 8; + a6 = 0; + a0 = 1; + a5 = 0; + a27 = 1; + return 21; + } else if((((a20==1)&&((a27==1)&&((!(a18==1)&&(((a22==1)&&(((a12==10)&&(((input==6)&&!(a6==1))&&(a15==1)))&&(a4==1)))&&(a3==4)))&&!(a5==1))))&&(a0==1))){ + a12 = 8; + a18 = 1; + a6 = 1; + a5 = 1; + return -1; + } else if(((a4==1)&&((!(a15==1)&&((!(a6==1)&&(((a20==1)&&((a5==1)&&((input==6)&&(((a3==6)&&(!(a18==1)&&(a22==1)))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a18==1)&&(a22==1))))))))&&!(a0==1)))&&!(a27==1)))&&(a12==11)))){ + if((a15==1)){ + a0 = 1; + a18 = 0; + a12 = 8; + a27 = 1; + a22 = 1; + a15 = 1; + a3 = 8; + a6 = 1; + }else{ + a0 = 1; + a27 = 1; + a18 = 1; + a3 = 8; + a12 = 8; + a22 = 1; + a15 = 1; + a6 = 1; + } + return 21; + } else if((!(a4==1)&&(!(a5==1)&&((a20==1)&&(!(a15==1)&&(((((((input==1)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a3==7))&&!(a0==1))&&(a12==9))&&(a6==1))&&!(a27==1))))))){ + a12 = 11; + a27 = 1; + a18 = 0; + a22 = 1; + a3 = 4; + a6 = 0; + a5 = 1; + return -1; + } else if(((a5==1)&&(!(a18==1)&&((((a12==9)&&(((a22==1)&&(!(a6==1)&&((a3==8)&&((a20==1)&&(!(a27==1)&&(input==4))))))&&!(a0==1)))&&!(a4==1))&&(a15==1))))){ + if((a20==1)){ + a18 = 1; + a12 = 8; + a22 = 0; + a27 = 1; + a0 = 1; + a6 = 1; + }else{ + a0 = 1; + a3 = 4; + a18 = 1; + a12 = 12; + a22 = 0; + } + return 24; + } else if(((((a12==10)&&((!(a6==1)&&((((a4==1)&&(((input==2)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&!(a5==1)))&&(a3==5))&&!(a15==1)))&&(a27==1)))&&!(a0==1))&&(a20==1))){ + a0 = 1; + a5 = 1; + a18 = 1; + a3 = 7; + a22 = 1; + return -1; + } else if((((a4==1)&&((a3==8)&&((a0==1)&&((((a12==8)&&(((a6==1)&&((input==4)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a15==1)))&&(a20==1))&&(a5==1)))))&&!(a27==1))){ + a18 = 1; + a27 = 1; + a3 = 6; + a22 = 0; + a12 = 12; + return -1; + } else if(((((((a20==1)&&((a15==1)&&(((((((!(a18==1)&&!(a22==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))||((!(a18==1)&&(a22==1))&&(a3==7)))&&(input==3))&&(a0==1))&&!(a6==1))))&&(a5==1))&&!(a4==1))&&(a27==1))&&(a12==8))){ + a18 = 0; + a3 = 7; + a4 = 1; + a15 = 0; + a22 = 1; + return 21; + } else if(((((a5==1)&&(((a20==1)&&((((a3==6)&&((((input==3)&&!(a27==1))&&(a15==1))&&(a4==1)))&&(a12==9))&&!(a22==1)))&&!(a6==1)))&&(a18==1))&&!(a0==1))){ + a3 = 7; + a12 = 8; + a0 = 1; + a6 = 1; + a27 = 1; + return -1; + } else if((!(a6==1)&&(((a27==1)&&((a4==1)&&(((a3==8)&&((a20==1)&&(((a12==8)&&((!(a15==1)&&(input==1))&&!(a0==1)))&&(a18==1))))&&(a22==1))))&&!(a5==1)))){ + a12 = 12; + a5 = 1; + a3 = 7; + a4 = 0; + a0 = 1; + a6 = 1; + return 21; + } else if((!(a6==1)&&((a12==12)&&((a0==1)&&(((((a5==1)&&(((a15==1)&&((input==4)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))&&(a3==7)))&&(a27==1))&&(a20==1))&&!(a4==1)))))){ + a18 = 0; + a15 = 0; + a22 = 1; + a12 = 11; + a6 = 1; + return -1; + } else if(((a12==12)&&(!(a6==1)&&(((a4==1)&&((a27==1)&&(((a5==1)&&(!(a15==1)&&((((a3==5)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1)))))&&(input==4))))&&(a0==1))))&&(a20==1))))){ + a6 = 1; + a18 = 1; + a22 = 1; + a15 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((((a3==4)&&((!(a22==1)&&((!(a6==1)&&(((a4==1)&&(((!(a18==1)&&(input==4))&&!(a5==1))&&!(a0==1)))&&!(a27==1)))&&(a20==1)))&&(a15==1)))&&(a12==8))){ + a12 = 11; + a27 = 1; + a3 = 5; + return 26; + } else if(((a22==1)&&((a6==1)&&(!(a5==1)&&(!(a4==1)&&(((((((((a18==1)||!(a18==1))&&(input==4))&&(a20==1))&&(a3==5))&&(a0==1))&&!(a27==1))&&!(a15==1))&&(a12==8))))))){ + a22 = 0; + a3 = 7; + a18 = 0; + a15 = 1; + a12 = 12; + a5 = 1; + a27 = 1; + return -1; + } else if(((a15==1)&&(((a12==8)&&((!(a27==1)&&((((!(a5==1)&&((input==3)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))))&&!(a4==1))&&(a20==1))&&(a0==1)))&&!(a6==1)))&&(a3==8)))){ + a4 = 1; + a22 = 1; + a27 = 1; + a5 = 1; + a6 = 1; + a3 = 4; + a18 = 1; + return -1; + } else if(((!(a5==1)&&((a12==9)&&(((!(a27==1)&&((!(a6==1)&&((a3==5)&&(((input==4)&&(a20==1))&&!(a15==1))))&&(a18==1)))&&(a4==1))&&(a22==1))))&&!(a0==1))){ + a3 = 4; + a0 = 1; + a5 = 1; + a12 = 8; + a6 = 1; + a27 = 1; + a15 = 1; + return 26; + } else if(((a20==1)&&((a5==1)&&(((!(a6==1)&&(((a3==8)&&(((a12==9)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==6)))&&(a0==1)))&&!(a15==1)))&&!(a27==1))&&!(a4==1))))){ + a0 = 0; + a15 = 1; + a4 = 1; + a18 = 1; + a6 = 1; + a27 = 1; + a22 = 1; + a12 = 10; + return 26; + } else if(((a6==1)&&((a4==1)&&((((((a27==1)&&(((input==4)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a18==1)&&(a22==1)))))&&!(a5==1)))&&(a20==1))&&(a12==11))&&(a0==1))&&(a15==1))))){ + a18 = 1; + a15 = 0; + a5 = 1; + a3 = 4; + a6 = 0; + a22 = 0; + return -1; + } else if((((((a20==1)&&(((a5==1)&&((a12==10)&&((((input==1)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&(a3==8))&&!(a4==1))))&&!(a0==1)))&&!(a15==1))&&(a6==1))&&!(a27==1))){ + if((a12==10)){ + a5 = 0; + a22 = 1; + a18 = 0; + a3 = 4; + a27 = 1; + a12 = 8; + }else{ + a22 = 0; + a5 = 0; + a3 = 7; + a6 = 0; + a18 = 1; + a15 = 1; + a12 = 11; + } + return -1; + } else if((!(a4==1)&&(!(a6==1)&&(((!(a27==1)&&(((a3==8)&&(!(a15==1)&&((a12==12)&&(!(a5==1)&&((input==4)&&((a18==1)||!(a18==1)))))))&&!(a22==1)))&&(a20==1))&&(a0==1))))){ + a3 = 4; + a27 = 1; + a4 = 1; + a6 = 1; + a22 = 1; + a5 = 1; + a15 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((((a4==1)&&((a20==1)&&((((!(a5==1)&&((a0==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==5))))&&(a12==10))&&(a6==1))&&!(a15==1))))&&(a3==4))&&(a27==1))){ + a18 = 0; + a6 = 0; + a12 = 11; + a22 = 0; + return 21; + } else if((!(a0==1)&&(((!(a6==1)&&((a5==1)&&((a4==1)&&(!(a15==1)&&(((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==5))&&(a20==1))&&(a3==5))))))&&(a27==1))&&(a12==10)))){ + a22 = 1; + a3 = 7; + a0 = 1; + a18 = 1; + a27 = 0; + a12 = 9; + a15 = 1; + return -1; + } else if(((a22==1)&&(((a12==11)&&((((((a6==1)&&((!(a0==1)&&((input==4)&&(a3==5)))&&(a18==1)))&&(a5==1))&&(a20==1))&&(a27==1))&&(a4==1)))&&!(a15==1)))){ + a12 = 8; + a15 = 1; + a0 = 1; + a3 = 4; + return -1; + } else if((((((((a15==1)&&(!(a6==1)&&(!(a4==1)&&((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==3))&&(a12==12)))))&&(a3==5))&&(a20==1))&&(a0==1))&&!(a5==1))&&!(a27==1))){ + a12 = 8; + a5 = 1; + a6 = 1; + a22 = 1; + a4 = 1; + a18 = 1; + a27 = 1; + a3 = 4; + return -1; + } else if(((((a4==1)&&(((a3==7)&&(((a12==12)&&(!(a0==1)&&((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==5))&&(a27==1))))&&(a5==1)))&&(a15==1)))&&(a6==1))&&(a20==1))){ + a18 = 1; + a12 = 11; + a3 = 8; + a15 = 0; + a0 = 1; + a22 = 1; + return 26; + } else if(((a27==1)&&((a5==1)&&((!(a15==1)&&((a0==1)&&(((((a22==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a20==1)))&&(a4==1))&&(a3==5))&&!(a6==1))))&&(a12==9))))){ + a3 = 4; + a4 = 0; + a15 = 1; + a22 = 0; + a12 = 11; + a18 = 0; + return 21; + } else if((((a0==1)&&(!(a18==1)&&(((((a12==10)&&((a4==1)&&((((input==1)&&!(a5==1))&&(a20==1))&&(a15==1))))&&(a3==4))&&(a22==1))&&(a6==1))))&&!(a27==1))){ + a15 = 0; + a3 = 7; + a27 = 1; + a6 = 0; + return 26; + } else if(((a20==1)&&((a12==8)&&(!(a27==1)&&((!(a4==1)&&(!(a15==1)&&(!(a0==1)&&((!(a6==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==6)))&&!(a5==1)))))&&(a3==4)))))){ + if((a18==1)){ + a27 = 1; + a4 = 1; + a18 = 1; + a15 = 1; + a5 = 1; + a0 = 1; + a3 = 8; + a22 = 0; + }else{ + a18 = 0; + a22 = 0; + a15 = 1; + a4 = 1; + a27 = 1; + a5 = 1; + a3 = 8; + a0 = 1; + } + return 21; + } else if((!(a22==1)&&(((a15==1)&&((a20==1)&&((((a5==1)&&((a27==1)&&((a4==1)&&(!(a18==1)&&((input==1)&&(a12==9))))))&&(a3==5))&&!(a0==1))))&&!(a6==1)))){ + a0 = 1; + a27 = 0; + a3 = 7; + a18 = 1; + return 21; + } else if((((a0==1)&&((((a3==5)&&((a12==12)&&((a20==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==4))&&!(a4==1))&&(a15==1)))))&&(a5==1))&&(a6==1)))&&(a27==1))){ + a22 = 0; + a4 = 1; + a18 = 0; + a27 = 0; + a6 = 0; + return 21; + } else if((((a22==1)&&(!(a5==1)&&(!(a15==1)&&((a3==4)&&((a27==1)&&(!(a18==1)&&(((((input==3)&&(a12==8))&&(a0==1))&&(a6==1))&&(a20==1))))))))&&(a4==1))){ + a18 = 1; + a15 = 1; + a5 = 1; + return -1; + } else if((((a0==1)&&(!(a6==1)&&((a4==1)&&(((a15==1)&&(((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2))&&(a12==9))&&!(a5==1))&&(a20==1)))&&!(a27==1)))))&&(a3==4))){ + a22 = 0; + a4 = 0; + a3 = 7; + a18 = 1; + a12 = 10; + a27 = 1; + a15 = 0; + return -1; + } else if((!(a0==1)&&((!(a22==1)&&((a18==1)&&((a20==1)&&((a15==1)&&((a3==8)&&((a5==1)&&(((a4==1)&&(!(a27==1)&&(input==5)))&&(a6==1))))))))&&(a12==10)))){ + a27 = 1; + a6 = 0; + a12 = 11; + a0 = 1; + a4 = 0; + a15 = 0; + return 21; + } else if((((a20==1)&&((a12==8)&&(((a4==1)&&((((((((a18==1)&&(a22==1))&&(a3==7))||((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a18==1)&&!(a22==1)))))&&(input==2))&&(a15==1))&&!(a5==1))&&(a0==1)))&&!(a6==1))))&&(a27==1))){ + a18 = 0; + a5 = 1; + a6 = 1; + a12 = 10; + a22 = 1; + a3 = 6; + return 21; + } else if((((!(a15==1)&&((((a27==1)&&((!(a18==1)&&(!(a6==1)&&(((input==4)&&(a4==1))&&(a3==7))))&&(a12==10)))&&(a0==1))&&(a22==1)))&&(a20==1))&&(a5==1))){ + a18 = 1; + a3 = 4; + a12 = 8; + a15 = 1; + a6 = 1; + return -1; + } else if((((((a6==1)&&((((a4==1)&&(!(a0==1)&&((a20==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==1)))))&&(a12==11))&&!(a5==1)))&&(a3==4))&&!(a27==1))&&(a15==1))){ + a18 = 0; + a27 = 1; + a22 = 0; + a15 = 0; + a12 = 9; + a4 = 0; + a3 = 6; + return -1; + } else if((!(a18==1)&&(!(a5==1)&&((((!(a22==1)&&((a12==11)&&((a6==1)&&(!(a4==1)&&(((input==4)&&!(a27==1))&&(a15==1))))))&&(a3==5))&&(a20==1))&&!(a0==1))))){ + a3 = 6; + a27 = 1; + a22 = 1; + a18 = 1; + a12 = 8; + a0 = 1; + a5 = 1; + return 26; + } else if(((a0==1)&&((a20==1)&&(!(a15==1)&&(((a12==12)&&(!(a6==1)&&((((a5==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==4)))&&(a27==1))&&!(a4==1))))&&(a3==8)))))){ + a4 = 1; + a15 = 1; + a22 = 1; + a18 = 1; + a6 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if(((a3==7)&&((a12==11)&&(!(a27==1)&&(!(a5==1)&&(((a20==1)&&((((a15==1)&&((input==2)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))&&!(a0==1))&&!(a4==1)))&&(a6==1))))))){ + a18 = 1; + a0 = 1; + a4 = 1; + a22 = 1; + a27 = 1; + a5 = 1; + a12 = 8; + a3 = 5; + return 26; + } else if((!(a6==1)&&((((a22==1)&&((a3==4)&&((((a20==1)&&((((input==3)&&((a18==1)||!(a18==1)))&&(a27==1))&&(a5==1)))&&(a15==1))&&!(a4==1))))&&(a12==10))&&!(a0==1)))){ + a18 = 1; + a0 = 1; + a6 = 1; + a4 = 1; + a12 = 8; + return -1; + } else if((!(a5==1)&&(!(a0==1)&&(((a18==1)&&(((a4==1)&&((((!(a22==1)&&(!(a15==1)&&(input==4)))&&!(a27==1))&&(a12==10))&&(a3==7)))&&!(a6==1)))&&(a20==1))))){ + a12 = 11; + a22 = 1; + a18 = 0; + a6 = 1; + a3 = 8; + a0 = 1; + return -1; + } else if(((a12==9)&&((a20==1)&&(!(a5==1)&&(!(a15==1)&&((((a27==1)&&(((a3==5)&&((a0==1)&&(!(a4==1)&&(input==1))))&&(a6==1)))&&(a22==1))&&!(a18==1))))))){ + a5 = 1; + a4 = 1; + a3 = 4; + a12 = 8; + a15 = 1; + a18 = 1; + return -1; + } else if(((((((!(a27==1)&&((((input==5)&&(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5))))&&(a20==1))&&(a5==1)))&&!(a4==1))&&!(a15==1))&&(a0==1))&&(a12==11))&&(a6==1))){ + a22 = 0; + a6 = 0; + a27 = 1; + a18 = 0; + a3 = 4; + return -1; + } else if(((((a12==8)&&(!(a6==1)&&(!(a27==1)&&((a20==1)&&(((((a5==1)&&((input==5)&&(a22==1)))&&(a3==4))&&!(a4==1))&&!(a0==1))))))&&!(a18==1))&&!(a15==1))){ + a27 = 1; + a22 = 0; + a3 = 8; + a12 = 12; + a5 = 0; + a6 = 1; + return -1; + } else if(((a4==1)&&((a12==10)&&(((a6==1)&&((a3==4)&&(((a20==1)&&(!(a27==1)&&((!(a15==1)&&((input==4)&&((a18==1)||!(a18==1))))&&(a5==1))))&&!(a0==1))))&&(a22==1))))){ + a0 = 1; + a18 = 1; + a27 = 1; + a3 = 5; + return -1; + } else if((((a22==1)&&(((!(a6==1)&&(((((!(a18==1)&&((a5==1)&&(input==4)))&&(a12==8))&&(a3==6))&&!(a27==1))&&(a20==1)))&&!(a0==1))&&!(a4==1)))&&(a15==1))){ + if((a5==1)){ + a3 = 5; + a6 = 1; + a18 = 1; + a27 = 1; + a0 = 1; + a4 = 1; + }else{ + a18 = 1; + a0 = 1; + a27 = 1; + a4 = 1; + a3 = 7; + } + return -1; + } else if(((((a0==1)&&((a15==1)&&(!(a6==1)&&(!(a4==1)&&(((((((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==4))&&(a5==1))&&(a12==8))))))&&(a20==1))&&(a27==1))){ + a4 = 1; + a6 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + return -1; + } else if((((((!(a15==1)&&((a0==1)&&(((a5==1)&&((((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1))))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==4)))&&(a6==1))))&&!(a4==1))&&(a20==1))&&!(a27==1))&&(a12==12))){ + a22 = 1; + a18 = 1; + a3 = 8; + a5 = 0; + return 26; + } else if((!(a6==1)&&((a15==1)&&((a4==1)&&((((a3==4)&&(((((input==4)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&!(a5==1))&&(a12==11))&&(a20==1)))&&(a27==1))&&(a0==1)))))){ + a22 = 0; + a15 = 0; + a4 = 0; + a12 = 10; + a18 = 1; + a6 = 1; + a3 = 7; + return -1; + } else if(((a0==1)&&(!(a5==1)&&((a12==10)&&((a20==1)&&((((((((a15==1)&&(!(a18==1)&&!(a22==1)))&&!(a4==1))&&(a3==8))&&!(a6==1))||(((a3==4)&&((!(a15==1)&&((a18==1)&&(a22==1)))&&(a4==1)))&&(a6==1)))&&(input==5))&&(a27==1))))))){ + a18 = 1; + a6 = 1; + a22 = 1; + a12 = 8; + a4 = 1; + a5 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if(((a3==6)&&((a4==1)&&(((!(a6==1)&&((a18==1)&&((((((input==3)&&(a22==1))&&(a5==1))&&(a27==1))&&(a0==1))&&(a12==8))))&&!(a15==1))&&(a20==1))))){ + a5 = 0; + a18 = 0; + a3 = 8; + return 26; + } else if(((!(a15==1)&&((a27==1)&&(((a20==1)&&((((!(a0==1)&&((input==2)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&!(a5==1))&&(a12==11))&&!(a6==1)))&&(a3==7))))&&(a4==1))){ + a5 = 1; + a18 = 1; + a0 = 1; + a15 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if(((a15==1)&&((a12==9)&&(((((((a4==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==5))&&!(a5==1)))&&(a27==1))&&(a6==1))&&(a3==4))&&(a20==1))&&(a0==1))))){ + a22 = 1; + a3 = 8; + a15 = 0; + a18 = 0; + a12 = 10; + return 26; + } else if(((a0==1)&&(((a12==12)&&((a15==1)&&((a20==1)&&(!(a22==1)&&(!(a6==1)&&((((a18==1)&&((a4==1)&&(input==3)))&&!(a5==1))&&(a3==6)))))))&&(a27==1)))){ + if((a0==1)){ + a12 = 9; + a3 = 7; + a6 = 1; + a22 = 1; + a0 = 0; + }else{ + a22 = 1; + a18 = 0; + a12 = 11; + a3 = 7; + a6 = 1; + } + return -1; + } else if(((!(a18==1)&&((a22==1)&&(((((a15==1)&&((a20==1)&&(!(a27==1)&&((a4==1)&&((input==3)&&(a12==9))))))&&!(a6==1))&&(a5==1))&&!(a0==1))))&&(a3==7))){ + a12 = 8; + a3 = 5; + a27 = 1; + a22 = 0; + a18 = 1; + a0 = 1; + a6 = 1; + return 21; + } else if(((a20==1)&&((a4==1)&&(!(a6==1)&&(((a18==1)&&(((((((a27==1)&&(input==5))&&(a22==1))&&(a3==4))&&(a0==1))&&!(a15==1))&&!(a5==1)))&&(a12==8)))))){ + a3 = 8; + a15 = 1; + a5 = 1; + a12 = 10; + a0 = 0; + a22 = 0; + return 26; + } else if(((((a20==1)&&(((a3==4)&&(((((!(a4==1)&&((a12==9)&&(input==2)))&&!(a27==1))&&!(a5==1))&&!(a6==1))&&(a22==1)))&&(a15==1)))&&(a0==1))&&(a18==1))){ + a3 = 6; + a5 = 1; + a22 = 0; + a6 = 1; + a12 = 12; + return 26; + } else if(((((((a3==6)&&(((a0==1)&&(((a20==1)&&(((input==4)&&!(a5==1))&&!(a4==1)))&&!(a15==1)))&&(a18==1)))&&(a27==1))&&(a6==1))&&(a12==8))&&(a22==1))){ + a3 = 4; + a15 = 1; + a5 = 1; + a4 = 1; + return -1; + } else if(((a3==7)&&(((a6==1)&&((!(a15==1)&&((((a12==9)&&((a20==1)&&((input==6)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))&&(a0==1))&&(a27==1)))&&(a4==1)))&&(a5==1)))){ + a18 = 0; + a22 = 1; + a15 = 1; + a5 = 0; + a0 = 0; + a3 = 8; + a6 = 0; + return 21; + } else if((((a12==12)&&((a0==1)&&((a6==1)&&(((a20==1)&&(((a27==1)&&((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==3))&&(a5==1)))&&(a3==7)))&&!(a15==1)))))&&(a4==1))){ + a4 = 0; + a3 = 4; + a18 = 0; + a15 = 1; + a27 = 0; + a22 = 0; + a6 = 0; + return 21; + } else if((((a4==1)&&((!(a0==1)&&((a22==1)&&((a6==1)&&(!(a5==1)&&((a27==1)&&(!(a15==1)&&((((a18==1)||!(a18==1))&&(input==3))&&(a20==1))))))))&&(a3==8)))&&(a12==11))){ + a3 = 6; + a0 = 1; + a12 = 10; + a15 = 1; + a6 = 0; + a18 = 1; + return -1; + } else if(((((a4==1)&&((a6==1)&&(((a3==7)&&(!(a27==1)&&(((a15==1)&&((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a20==1))))&&!(a0==1))))&&(a12==10))&&!(a5==1))){ + a22 = 0; + a18 = 1; + a15 = 0; + a0 = 1; + a12 = 12; + return 21; + } else if(((((a5==1)&&((!(a0==1)&&(!(a15==1)&&(((((((a4==1)&&(!(a22==1)&&!(a18==1)))&&(a3==8))&&!(a6==1))||((a6==1)&&((((a22==1)&&(a18==1))&&!(a4==1))&&(a3==4))))||((a6==1)&&((a3==4)&&(((a22==1)&&!(a18==1))&&!(a4==1)))))&&(input==4))))&&(a12==8)))&&!(a27==1))&&(a20==1))){ + a18 = 0; + a3 = 6; + a4 = 1; + a6 = 0; + a27 = 1; + a15 = 1; + a0 = 1; + a22 = 0; + return -1; + } else if((((!(a4==1)&&(!(a18==1)&&(((a12==9)&&((a27==1)&&(((a3==8)&&((a22==1)&&((input==6)&&(a6==1))))&&!(a5==1))))&&(a20==1))))&&(a15==1))&&!(a0==1))){ + a4 = 1; + a0 = 1; + a3 = 4; + a12 = 10; + a6 = 0; + return 26; + } else if(((a12==9)&&(((((a15==1)&&((!(a22==1)&&(((a0==1)&&((a5==1)&&((input==4)&&(a4==1))))&&(a3==7)))&&!(a27==1)))&&(a20==1))&&(a18==1))&&(a6==1)))){ + a27 = 1; + a3 = 5; + a22 = 1; + a12 = 11; + a4 = 0; + return -1; + } else if(((a0==1)&&((((a15==1)&&(!(a27==1)&&((a4==1)&&(((a20==1)&&((a3==6)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1))))&&(a12==12)))))&&(a5==1))&&(a6==1)))){ + if((a22==1)){ + a12 = 9; + a3 = 8; + a18 = 1; + a22 = 1; + a6 = 0; + a27 = 1; + a0 = 0; + }else{ + a5 = 0; + a3 = 5; + a22 = 1; + a18 = 0; + a12 = 9; + } + return -1; + } else if((!(a0==1)&&((((!(a22==1)&&((a3==8)&&((a12==11)&&(((((input==3)&&!(a15==1))&&!(a4==1))&&(a18==1))&&(a27==1)))))&&(a5==1))&&(a20==1))&&!(a6==1)))){ + a18 = 0; + a0 = 1; + a3 = 6; + a12 = 10; + a22 = 1; + a6 = 1; + a4 = 1; + return -1; + } else if(((a15==1)&&(((a6==1)&&((((a20==1)&&((!(a5==1)&&((a12==8)&&((a3==7)&&((input==1)&&((a18==1)||!(a18==1))))))&&!(a27==1)))&&(a4==1))&&(a0==1)))&&!(a22==1)))){ + a3 = 4; + a27 = 1; + a5 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if((!(a0==1)&&((((a12==9)&&(((a20==1)&&((a4==1)&&((a3==8)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1))&&(a5==1)))))&&!(a6==1)))&&(a15==1))&&!(a27==1)))){ + a22 = 1; + a18 = 1; + a4 = 0; + a6 = 1; + a12 = 8; + a0 = 1; + a27 = 1; + return -1; + } else if((!(a5==1)&&(((a20==1)&&(((((a0==1)&&((((a12==9)&&((input==2)&&(a22==1)))&&(a6==1))&&(a27==1)))&&!(a15==1))&&(a4==1))&&(a18==1)))&&(a3==4)))){ + a22 = 0; + a6 = 0; + a3 = 6; + a12 = 8; + a27 = 0; + return 26; + } else if((!(a15==1)&&(!(a0==1)&&((a12==8)&&(!(a4==1)&&((a6==1)&&(((a27==1)&&(((input==6)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8))))&&!(a5==1)))&&(a20==1)))))))){ + a12 = 10; + a3 = 5; + a15 = 1; + a18 = 1; + a6 = 0; + a0 = 1; + a22 = 0; + return 21; + } else if((((a6==1)&&((((!(a18==1)&&(!(a22==1)&&((a12==9)&&((a4==1)&&((a20==1)&&((input==6)&&(a3==5)))))))&&!(a0==1))&&!(a5==1))&&(a15==1)))&&(a27==1))){ + if((a3==4)){ + a15 = 0; + a6 = 0; + a18 = 1; + a3 = 8; + a22 = 1; + a12 = 10; + a4 = 0; + }else{ + a4 = 0; + a3 = 7; + a15 = 0; + a0 = 1; + a12 = 12; + a18 = 1; + a22 = 1; + } + return -1; + } else if(((a12==12)&&((a6==1)&&((!(a15==1)&&(((a20==1)&&((a0==1)&&(((input==1)&&(((!(a22==1)&&!(a18==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7))))&&!(a5==1))))&&!(a4==1)))&&!(a27==1))))){ + a0 = 0; + a12 = 8; + a22 = 1; + a15 = 1; + a18 = 0; + a3 = 8; + a5 = 1; + a27 = 1; + return -1; + } else if(((!(a0==1)&&((a12==9)&&((((a27==1)&&(!(a5==1)&&((((((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a22==1)&&(a18==1))&&(a3==5)))||((a3==5)&&(!(a18==1)&&(a22==1))))&&(input==2))&&(a4==1))))&&(a20==1))&&(a6==1))))&&(a15==1))){ + a5 = 1; + a18 = 0; + a0 = 1; + a6 = 0; + a4 = 0; + a3 = 4; + a12 = 11; + a22 = 0; + return -1; + } else if((((a12==10)&&(((a20==1)&&(!(a0==1)&&((!(a6==1)&&(((((a3==8)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1)))))&&(input==3))&&!(a15==1)))&&!(a27==1))))&&!(a5==1)))&&!(a4==1))){ + a4 = 1; + a0 = 1; + a27 = 1; + a15 = 1; + a22 = 0; + a5 = 1; + a12 = 8; + a18 = 1; + a3 = 6; + return -1; + } else if(((((((!(a6==1)&&(((a22==1)&&(((!(a0==1)&&(input==6))&&(a5==1))&&(a4==1)))&&(a12==8)))&&!(a27==1))&&(a18==1))&&!(a15==1))&&(a3==7))&&(a20==1))){ + if((a27==1)){ + a3 = 6; + a15 = 1; + a27 = 1; + a22 = 0; + a6 = 1; + a0 = 1; + }else{ + a22 = 0; + a15 = 1; + a3 = 5; + a27 = 1; + a0 = 1; + } + return 26; + } else if(((((a3==4)&&(!(a15==1)&&((!(a0==1)&&((a6==1)&&((a4==1)&&(((a20==1)&&((input==3)&&((a18==1)||!(a18==1))))&&!(a22==1)))))&&!(a5==1))))&&(a12==11))&&!(a27==1))){ + a27 = 1; + a0 = 1; + a18 = 0; + a3 = 6; + a6 = 0; + a15 = 1; + a12 = 8; + a5 = 1; + return 21; + } else if((((((a0==1)&&(((!(a4==1)&&(!(a27==1)&&((input==6)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6)))||((!(a18==1)&&(a22==1))&&(a3==6))))))&&(a5==1))&&(a12==9)))&&(a20==1))&&(a15==1))&&!(a6==1))){ + a6 = 1; + a4 = 1; + a27 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + a22 = 1; + return -1; + } else if(((a12==12)&&((((a4==1)&&((((a3==8)&&(!(a5==1)&&(!(a27==1)&&(!(a22==1)&&((input==2)&&(a0==1))))))&&(a18==1))&&(a20==1)))&&!(a15==1))&&!(a6==1)))){ + a6 = 1; + a12 = 11; + a18 = 0; + a3 = 4; + a27 = 1; + return 26; + } else if(((a4==1)&&(((a20==1)&&(((!(a6==1)&&(((a27==1)&&((input==4)&&((((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==7)))||(((a22==1)&&(a18==1))&&(a3==8)))))&&!(a15==1)))&&(a12==9))&&!(a5==1)))&&!(a0==1)))){ + a5 = 1; + a18 = 1; + a3 = 6; + a0 = 1; + a22 = 1; + a15 = 1; + a12 = 11; + a6 = 1; + return 21; + } else if(((((a5==1)&&(((!(a18==1)&&(!(a15==1)&&(!(a0==1)&&((((input==6)&&!(a27==1))&&(a3==6))&&!(a4==1)))))&&!(a6==1))&&(a22==1)))&&(a20==1))&&(a12==9))){ + a15 = 1; + a12 = 10; + a0 = 1; + a5 = 0; + a3 = 8; + a27 = 1; + return 26; + } else if(((a20==1)&&(((a4==1)&&(((((a3==6)&&(!(a15==1)&&(((!(a5==1)&&(input==6))&&(a12==11))&&(a0==1))))&&!(a18==1))&&!(a22==1))&&(a6==1)))&&!(a27==1)))){ + a12 = 10; + a27 = 1; + a3 = 8; + return 26; + } else if((((a5==1)&&((a27==1)&&(((!(a0==1)&&(!(a4==1)&&((a3==7)&&((a6==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2))))))&&(a12==9))&&(a20==1))))&&(a15==1))){ + a3 = 4; + a18 = 1; + a4 = 1; + a0 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if((((((a0==1)&&(((((((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||(!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1)))))&&(input==2))&&!(a27==1))&&!(a4==1))&&(a20==1)))&&(a5==1))&&(a15==1))&&(a12==9))){ + a12 = 10; + a15 = 0; + a6 = 1; + a18 = 0; + a3 = 8; + a22 = 1; + a27 = 1; + a5 = 0; + return -1; + } else if((!(a5==1)&&((a15==1)&&((a12==11)&&(((((((((input==2)&&((a18==1)||!(a18==1)))&&!(a4==1))&&(a6==1))&&(a3==6))&&(a22==1))&&(a20==1))&&!(a27==1))&&(a0==1)))))){ + if((a20==1)){ + a12 = 8; + a0 = 0; + a22 = 0; + a5 = 1; + a27 = 1; + a3 = 5; + a18 = 1; + a4 = 1; + a15 = 0; + }else{ + a3 = 5; + a4 = 1; + a18 = 0; + a12 = 12; + a15 = 0; + a6 = 0; + a22 = 0; + } + return -1; + } else if((!(a0==1)&&(!(a27==1)&&(((((a15==1)&&((a20==1)&&(((((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==4))&&!(a6==1))))&&!(a4==1))&&(a5==1))&&(a12==8))))){ + a3 = 6; + a0 = 1; + a18 = 0; + a12 = 10; + a5 = 0; + a22 = 0; + return -1; + } else if((!(a27==1)&&((a0==1)&&((a12==12)&&((((a6==1)&&((((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==2))&&(a3==4))&&!(a15==1))&&(a20==1)))&&(a5==1))&&(a4==1)))))){ + a12 = 10; + a18 = 0; + a27 = 1; + a3 = 7; + a15 = 1; + a5 = 0; + a6 = 0; + a4 = 0; + a22 = 1; + return 26; + } else if(((a4==1)&&(((a15==1)&&((a5==1)&&(((a3==5)&&((a0==1)&&(((a20==1)&&((input==2)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))))&&(a12==12))))&&!(a27==1))))&&!(a6==1)))){ + a12 = 8; + a22 = 1; + a3 = 4; + a6 = 1; + a27 = 1; + a18 = 1; + return -1; + } else if((((a5==1)&&((a3==7)&&((((((a20==1)&&(((input==3)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&!(a27==1)))&&(a12==8))&&!(a0==1))&&(a4==1))&&!(a6==1))))&&!(a15==1))){ + a15 = 1; + a0 = 1; + a3 = 4; + a22 = 0; + a6 = 1; + a27 = 1; + a18 = 1; + return -1; + } else if((((!(a15==1)&&(((a3==6)&&(!(a5==1)&&((((((input==6)&&!(a27==1))&&(a0==1))&&(a20==1))&&(a6==1))&&(a12==10))))&&!(a4==1)))&&!(a22==1))&&!(a18==1))){ + a6 = 0; + a18 = 1; + a12 = 8; + a15 = 1; + a22 = 1; + a3 = 7; + a5 = 1; + return 26; + } else if(((a12==12)&&((!(a18==1)&&((!(a22==1)&&((a0==1)&&(((a20==1)&&(!(a4==1)&&(((input==1)&&!(a27==1))&&!(a15==1))))&&(a6==1))))&&(a5==1)))&&(a3==6)))){ + a4 = 1; + a12 = 8; + a5 = 0; + a0 = 0; + a27 = 1; + return -1; + } else if((!(a15==1)&&((a20==1)&&((a12==11)&&(((!(a27==1)&&((a4==1)&&(((!(a18==1)&&((a3==5)&&(input==5)))&&!(a22==1))&&(a6==1))))&&(a0==1))&&!(a5==1)))))){ + a18 = 1; + a22 = 1; + a12 = 8; + a15 = 1; + a3 = 4; + a5 = 1; + a27 = 1; + return -1; + } else if(((a20==1)&&(((a6==1)&&((!(a15==1)&&(!(a4==1)&&((a3==7)&&((a22==1)&&(!(a0==1)&&((a5==1)&&(((a18==1)||!(a18==1))&&(input==2))))))))&&(a27==1)))&&(a12==10)))){ + a3 = 4; + a15 = 1; + a12 = 8; + a0 = 1; + a18 = 1; + a4 = 1; + return -1; + } else if((((a15==1)&&(((a27==1)&&(((!(a4==1)&&((((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(a12==8))&&(a5==1)))&&(a3==8))&&!(a6==1)))&&(a20==1)))&&!(a0==1))){ + a18 = 1; + a22 = 1; + a0 = 1; + a6 = 1; + a4 = 1; + a3 = 4; + return -1; + } else if(((!(a6==1)&&((a3==6)&&((a0==1)&&(((((a12==12)&&((!(a15==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a20==1)))&&!(a22==1))&&(a5==1))&&!(a4==1)))))&&!(a27==1))){ + a22 = 1; + a27 = 1; + a5 = 0; + a15 = 1; + a18 = 0; + a12 = 11; + return -1; + } else if(((!(a0==1)&&((((a12==10)&&(!(a6==1)&&(!(a15==1)&&(!(a5==1)&&((input==5)&&(((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1)))))))))&&(a20==1))&&(a27==1)))&&(a4==1))){ + a15 = 1; + a3 = 8; + a22 = 1; + a5 = 1; + a18 = 1; + a12 = 11; + a0 = 1; + a4 = 0; + return 24; + } else if((((((((a12==8)&&((((a15==1)&&((!(a6==1)&&(input==1))&&(a20==1)))&&!(a4==1))&&!(a22==1)))&&(a27==1))&&(a18==1))&&!(a0==1))&&(a5==1))&&(a3==6))){ + a5 = 0; + a4 = 1; + a0 = 1; + a22 = 1; + a3 = 4; + a18 = 0; + return 21; + } else if((((!(a15==1)&&(!(a0==1)&&((a27==1)&&((a12==11)&&((!(a4==1)&&((a20==1)&&(((input==5)&&(a22==1))&&!(a18==1))))&&(a5==1))))))&&(a6==1))&&(a3==4))){ + a18 = 1; + a3 = 6; + return 21; + } else if(((((a12==8)&&((a4==1)&&(((!(a6==1)&&(((input==1)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==6))))&&(a15==1)))&&(a20==1))&&(a27==1))))&&!(a0==1))&&!(a5==1))){ + a3 = 6; + a12 = 10; + a6 = 1; + a18 = 1; + a22 = 1; + a4 = 0; + a5 = 1; + a0 = 1; + return 21; + } else if(((a20==1)&&((((((((a5==1)&&((!(a27==1)&&((input==3)&&((a18==1)||!(a18==1))))&&!(a15==1)))&&!(a22==1))&&(a0==1))&&(a6==1))&&(a12==9))&&(a4==1))&&(a3==5)))){ + a4 = 0; + a15 = 1; + a18 = 0; + a12 = 11; + a3 = 7; + a27 = 1; + a5 = 0; + a22 = 1; + return 24; + } else if((((((a12==11)&&((a20==1)&&((a0==1)&&(((a5==1)&&((a3==4)&&((input==5)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))&&!(a15==1)))))&&(a6==1))&&(a4==1))&&!(a27==1))){ + a18 = 1; + a3 = 7; + a27 = 1; + a22 = 1; + a6 = 0; + return -1; + } else if((!(a5==1)&&(!(a0==1)&&(((a20==1)&&(((!(a4==1)&&((a27==1)&&((a12==11)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==6)))))&&!(a6==1))&&!(a15==1)))&&(a3==5))))){ + a27 = 0; + a12 = 9; + a0 = 1; + a3 = 7; + a5 = 1; + a18 = 0; + a22 = 1; + a6 = 1; + a4 = 1; + return 21; + } else if((((!(a6==1)&&(((((a3==8)&&(((a5==1)&&((input==2)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))))&&(a12==9)))&&(a20==1))&&!(a27==1))&&(a4==1)))&&(a15==1))&&(a0==1))){ + a22 = 1; + a18 = 1; + a12 = 11; + a3 = 7; + a5 = 0; + return 26; + } else if(((a22==1)&&((a20==1)&&(((!(a15==1)&&((((a27==1)&&(!(a18==1)&&(((input==4)&&(a3==8))&&!(a5==1))))&&!(a6==1))&&(a12==12)))&&(a4==1))&&(a0==1))))){ + a22 = 0; + a15 = 1; + a27 = 0; + a12 = 8; + a5 = 1; + a3 = 4; + return 24; + } else if(((a15==1)&&((a5==1)&&(!(a0==1)&&(((!(a27==1)&&(((((a12==11)&&((input==3)&&(a4==1)))&&!(a6==1))&&(a20==1))&&!(a22==1)))&&!(a18==1))&&(a3==8)))))){ + if((a15==1)){ + a6 = 1; + a27 = 1; + a4 = 0; + a3 = 6; + a22 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + }else{ + a12 = 8; + a3 = 7; + a27 = 1; + } + return -1; + } else if((((!(a4==1)&&(((((((input==5)&&(((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1))))||((a3==5)&&((a18==1)&&(a22==1)))))&&!(a27==1))&&(a15==1))&&!(a6==1))&&(a12==11))&&!(a5==1)))&&!(a0==1))&&(a20==1))){ + a3 = 8; + a6 = 1; + a22 = 0; + a12 = 10; + a18 = 0; + a0 = 1; + a15 = 0; + return -1; + } else if((!(a6==1)&&(!(a27==1)&&((a12==9)&&(((a4==1)&&(!(a0==1)&&(!(a15==1)&&((a22==1)&&((((input==4)&&((a18==1)||!(a18==1)))&&(a20==1))&&(a3==8))))))&&!(a5==1)))))){ + a18 = 1; + a3 = 5; + a6 = 1; + a27 = 1; + a15 = 1; + a5 = 1; + a0 = 1; + a12 = 8; + a4 = 0; + return 26; + } else if((!(a27==1)&&(!(a0==1)&&(((((((a20==1)&&((a12==8)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2))))&&(a6==1))&&(a4==1))&&!(a15==1))&&(a3==8))&&!(a5==1))))){ + if((a5==1)){ + a22 = 1; + a3 = 7; + a5 = 1; + a0 = 1; + a15 = 1; + a18 = 0; + a6 = 0; + a27 = 1; + }else{ + a4 = 0; + a18 = 0; + a0 = 1; + a22 = 1; + a15 = 1; + a12 = 11; + a3 = 5; + } + return -1; + } else if((!(a0==1)&&(!(a27==1)&&((((a12==8)&&(((!(a15==1)&&((a5==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==6))))&&(a3==5))&&(a6==1)))&&(a20==1))&&(a4==1))))){ + a27 = 1; + a22 = 0; + a5 = 0; + a0 = 1; + a3 = 6; + a12 = 9; + a18 = 0; + return 21; + } else if(((((!(a15==1)&&((((a27==1)&&((a12==12)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==2))))&&(a6==1))&&!(a5==1)))&&!(a0==1))&&(a20==1))&&!(a4==1))){ + a18 = 1; + a4 = 1; + a3 = 4; + a22 = 1; + a15 = 1; + a12 = 8; + a5 = 1; + a0 = 1; + return -1; + } else if(((((a3==4)&&(((a20==1)&&(((a4==1)&&(!(a6==1)&&(((input==2)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1))))&&(a12==8))))&&(a15==1)))&&(a5==1)))&&!(a0==1))&&(a27==1))){ + a0 = 1; + a15 = 0; + a4 = 0; + a6 = 1; + a12 = 10; + a18 = 0; + a3 = 7; + a22 = 1; + return -1; + } else if(((a12==12)&&(((a0==1)&&((((a27==1)&&((a4==1)&&((((input==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&!(a5==1))&&!(a6==1))))&&(a3==4))&&(a20==1)))&&(a15==1)))){ + a3 = 8; + a0 = 0; + a4 = 0; + a18 = 0; + a12 = 9; + a22 = 1; + return 24; + } else if(((a20==1)&&((a5==1)&&((a15==1)&&(((a4==1)&&((a12==8)&&(((a6==1)&&((input==2)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))))&&!(a27==1))))&&!(a0==1)))))){ + if((a5==1)){ + a15 = 0; + a12 = 9; + a4 = 0; + a3 = 6; + a22 = 0; + a18 = 0; + }else{ + a22 = 0; + a4 = 0; + a0 = 1; + a18 = 1; + a27 = 1; + a3 = 6; + } + return 26; + } else if(((((a15==1)&&((((a3==7)&&((a6==1)&&(((((input==3)&&((a18==1)||!(a18==1)))&&(a20==1))&&(a4==1))&&(a0==1))))&&(a12==12))&&(a27==1)))&&!(a22==1))&&!(a5==1))){ + a12 = 8; + a5 = 1; + a3 = 4; + a22 = 1; + a18 = 1; + return -1; + } else if(((!(a5==1)&&(!(a15==1)&&(((!(a0==1)&&(((a4==1)&&((input==4)&&(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1))))))&&(a12==10)))&&(a20==1))&&!(a6==1))))&&!(a27==1))){ + a6 = 1; + a3 = 4; + a12 = 9; + a5 = 1; + a22 = 1; + a18 = 0; + a27 = 1; + return 21; + } else if(((((((a5==1)&&(((a20==1)&&((((a22==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a4==1))&&(a3==7)))&&(a12==11)))&&!(a15==1))&&(a6==1))&&(a0==1))&&!(a27==1))){ + a3 = 6; + a18 = 1; + a12 = 10; + return -1; + } else if((!(a6==1)&&(!(a15==1)&&(!(a5==1)&&(((a4==1)&&((a12==10)&&((a0==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==2))&&(a20==1)))))&&!(a27==1)))))){ + a12 = 12; + a3 = 7; + a22 = 1; + a5 = 1; + a18 = 0; + a27 = 1; + return 26; + } else if(((((((a3==6)&&(((((a6==1)&&((input==1)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&(a27==1))&&(a20==1))&&(a12==12)))&&(a5==1))&&!(a0==1))&&(a4==1))&&(a15==1))){ + a22 = 1; + a18 = 1; + a12 = 8; + a0 = 1; + a3 = 4; + return -1; + } else if(((((!(a5==1)&&((((((((a3==8)&&((a22==1)&&(a18==1)))||(((a3==7)&&((a18==1)&&!(a22==1)))||((a3==7)&&(!(a22==1)&&!(a18==1)))))&&(input==3))&&(a0==1))&&(a4==1))&&(a12==10))&&!(a6==1)))&&!(a15==1))&&(a20==1))&&(a27==1))){ + a22 = 0; + a3 = 4; + a12 = 8; + a5 = 1; + a18 = 0; + return -1; + } else if((((((a0==1)&&(((!(a15==1)&&(((input==4)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7))))&&!(a5==1)))&&(a6==1))&&(a20==1)))&&!(a27==1))&&(a12==10))&&(a4==1))){ + a5 = 1; + a18 = 1; + a12 = 11; + a22 = 0; + a15 = 1; + a4 = 0; + a3 = 6; + return 21; + } else if(((a0==1)&&(!(a27==1)&&(!(a5==1)&&((a4==1)&&((((((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1)))&&(input==5))&&(a20==1))&&(a15==1))&&(a12==9))))))){ + a12 = 10; + a22 = 0; + a5 = 1; + a15 = 0; + a4 = 0; + a3 = 4; + a18 = 0; + a27 = 1; + a6 = 1; + return 21; + } else if(((((a18==1)&&((((((a4==1)&&((a15==1)&&(((a0==1)&&(input==1))&&(a20==1))))&&(a5==1))&&(a6==1))&&(a12==12))&&!(a27==1)))&&(a22==1))&&(a3==6))){ + a5 = 0; + a27 = 1; + a3 = 4; + a0 = 0; + a6 = 0; + a22 = 0; + a12 = 8; + return 26; + } else if((((!(a0==1)&&(((!(a5==1)&&(((!(a4==1)&&(((input==3)&&((a18==1)||!(a18==1)))&&(a20==1)))&&!(a27==1))&&(a6==1)))&&(a3==4))&&!(a22==1)))&&!(a15==1))&&(a12==10))){ + if((a27==1)){ + a27 = 1; + a6 = 0; + a18 = 0; + a3 = 5; + a0 = 1; + }else{ + a22 = 1; + a5 = 1; + a12 = 8; + a0 = 1; + a15 = 1; + a18 = 1; + a3 = 8; + a27 = 1; + } + return -1; + } else if((!(a6==1)&&(!(a0==1)&&((a20==1)&&((a18==1)&&((((a15==1)&&((a22==1)&&((!(a27==1)&&((input==3)&&(a3==5)))&&(a12==8))))&&(a5==1))&&(a4==1))))))){ + a22 = 0; + a5 = 0; + a27 = 1; + a0 = 1; + a15 = 0; + a18 = 0; + return -1; + } else if((((((!(a4==1)&&(((a12==9)&&(((input==2)&&((((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==6))))&&(a20==1)))&&!(a0==1)))&&!(a27==1))&&!(a15==1))&&!(a5==1))&&(a6==1))){ + if((a5==1)){ + a3 = 7; + a5 = 1; + a27 = 1; + a15 = 1; + a22 = 0; + a0 = 1; + a18 = 1; + a4 = 1; + a12 = 8; + }else{ + a4 = 1; + a3 = 4; + a22 = 0; + a12 = 11; + a15 = 1; + a18 = 1; + } + return -1; + } else if((!(a15==1)&&((((a20==1)&&((a5==1)&&((a12==9)&&(!(a4==1)&&((input==2)&&(((a6==1)&&((a3==8)&&(!(a22==1)&&!(a18==1))))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1))))))))&&!(a27==1))&&!(a0==1)))){ + a12 = 10; + a0 = 1; + a4 = 1; + a27 = 1; + a3 = 5; + a6 = 0; + a18 = 1; + a22 = 1; + return -1; + } else if(((((a27==1)&&(((a15==1)&&(((((((input==1)&&!(a5==1))&&(a6==1))&&!(a18==1))&&(a12==12))&&(a0==1))&&(a20==1)))&&(a3==6)))&&(a22==1))&&(a4==1))){ + a3 = 4; + a5 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if((!(a27==1)&&((a4==1)&&(!(a0==1)&&(!(a5==1)&&(((a15==1)&&((a6==1)&&((((((a18==1)&&(a22==1))&&(a3==8))||((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a22==1)&&!(a18==1)))))&&(input==4))&&(a12==8))))&&(a20==1))))))){ + a5 = 1; + a6 = 0; + a18 = 0; + a22 = 1; + a27 = 1; + a3 = 8; + a0 = 1; + return -1; + } else if((((a12==11)&&(((a5==1)&&((a6==1)&&((a0==1)&&((((a22==1)&&((a27==1)&&((input==5)&&((a18==1)||!(a18==1)))))&&(a20==1))&&!(a15==1)))))&&(a3==4)))&&!(a4==1))){ + a18 = 1; + a3 = 6; + a15 = 1; + a12 = 10; + return -1; + } else if(((a5==1)&&(((!(a15==1)&&(((((((input==4)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))&&!(a27==1))&&(a0==1))&&(a4==1))&&(a12==12))&&(a20==1)))&&(a6==1))&&(a3==7)))){ + a27 = 1; + a3 = 4; + a15 = 1; + a18 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if((!(a0==1)&&(((a12==8)&&((a5==1)&&((((((((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==2))&&(a27==1))&&!(a6==1))&&(a20==1))&&!(a15==1))))&&!(a4==1)))){ + a18 = 1; + a22 = 0; + a5 = 0; + a12 = 10; + a0 = 1; + a3 = 7; + a6 = 1; + a15 = 1; + a27 = 0; + return -1; + } else if((((a20==1)&&(((((a0==1)&&((a3==7)&&(((!(a22==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a4==1))&&(a15==1))))&&(a12==10))&&(a27==1))&&!(a6==1)))&&(a5==1))){ + a18 = 0; + a6 = 1; + a22 = 1; + a3 = 6; + return -1; + } else if(((a22==1)&&((a5==1)&&(!(a6==1)&&((a12==10)&&((!(a27==1)&&((a4==1)&&((((a3==8)&&((input==2)&&(a20==1)))&&(a18==1))&&(a0==1))))&&!(a15==1))))))){ + a27 = 1; + a0 = 0; + a12 = 8; + a6 = 1; + a3 = 4; + return -1; + } else if(((((!(a6==1)&&(!(a15==1)&&((a12==8)&&(!(a0==1)&&((((((a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a22==1)&&!(a18==1)))))&&(input==6))&&!(a5==1))))))&&(a4==1))&&!(a27==1))&&(a20==1))){ + if((a27==1)){ + a15 = 1; + a3 = 6; + a4 = 0; + a22 = 0; + a27 = 1; + a18 = 1; + }else{ + a22 = 0; + a0 = 1; + a15 = 1; + a6 = 1; + a3 = 8; + a18 = 1; + a27 = 1; + a5 = 1; + } + return 21; + } else if((!(a0==1)&&((a20==1)&&((((!(a5==1)&&(!(a6==1)&&(((input==1)&&(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1)))))&&(a12==10))))&&!(a15==1))&&(a27==1))&&(a4==1))))){ + a18 = 1; + a4 = 0; + a0 = 1; + a3 = 6; + a12 = 12; + a5 = 1; + a22 = 1; + return 21; + } else if(((a18==1)&&(!(a4==1)&&((((a3==7)&&((a5==1)&&(!(a0==1)&&((((!(a27==1)&&(input==1))&&(a15==1))&&(a20==1))&&!(a22==1)))))&&(a6==1))&&(a12==8))))){ + if((a27==1)){ + a3 = 5; + a0 = 1; + a22 = 1; + a12 = 9; + }else{ + a18 = 0; + a22 = 1; + a15 = 0; + a27 = 1; + a12 = 9; + a0 = 1; + a3 = 6; + a5 = 0; + } + return 24; + } else if((((((((input==1)&&(((a6==1)&&(((a4==1)&&(!(a15==1)&&((a22==1)&&!(a18==1))))&&(a3==4)))||((((a3==8)&&(((a15==1)&&(!(a18==1)&&!(a22==1)))&&!(a4==1)))&&!(a6==1))||((a6==1)&&((a3==4)&&((((a22==1)&&(a18==1))&&!(a15==1))&&(a4==1)))))))&&(a0==1))&&!(a5==1))&&(a27==1))&&(a12==12))&&(a20==1))){ + a5 = 1; + a3 = 4; + a4 = 1; + a15 = 1; + a22 = 0; + a18 = 0; + a6 = 1; + return 21; + } else if(((a20==1)&&(((a12==11)&&((!(a4==1)&&(((a5==1)&&(((input==2)&&((((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1))))||((a3==6)&&((a22==1)&&!(a18==1)))))&&!(a27==1)))&&!(a6==1)))&&(a0==1)))&&!(a15==1)))){ + a3 = 4; + a22 = 1; + a6 = 1; + a12 = 8; + a4 = 1; + a27 = 1; + a18 = 1; + a15 = 1; + return -1; + } else if((((a27==1)&&((!(a4==1)&&((a0==1)&&(((a3==5)&&(((a15==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&!(a22==1)))&&(a12==9)))&&!(a5==1))))&&(a6==1)))&&(a20==1))){ + a12 = 12; + a4 = 1; + a18 = 0; + a15 = 0; + a6 = 0; + a3 = 8; + a5 = 1; + return 26; + } else if((((a3==6)&&((a20==1)&&(!(a4==1)&&(((((a22==1)&&((!(a27==1)&&((input==2)&&((a18==1)||!(a18==1))))&&(a15==1)))&&!(a0==1))&&!(a5==1))&&(a12==10)))))&&!(a6==1))){ + a3 = 5; + a18 = 1; + a0 = 1; + a22 = 0; + a6 = 1; + a5 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if(((((a20==1)&&((a0==1)&&((a4==1)&&((a3==7)&&((((a5==1)&&((input==6)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))))&&(a6==1))&&(a12==8))))))&&!(a27==1))&&(a15==1))){ + a27 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((a20==1)&&((a3==4)&&(((!(a27==1)&&(((((((input==1)&&((a18==1)||!(a18==1)))&&(a0==1))&&(a5==1))&&(a4==1))&&(a15==1))&&(a12==9)))&&(a6==1))&&(a22==1))))){ + if((a18==1)){ + a4 = 0; + a27 = 1; + a18 = 0; + a0 = 0; + }else{ + a12 = 11; + a3 = 8; + a27 = 1; + a22 = 0; + a18 = 0; + a15 = 0; + a0 = 0; + } + return 26; + } else if((((((((((((a27==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a3==5))&&!(a6==1))&&(a20==1))&&(a22==1))&&!(a15==1))&&(a12==9))&&!(a0==1))&&(a4==1))&&!(a5==1))){ + a18 = 0; + a4 = 0; + a22 = 0; + a5 = 1; + a3 = 4; + a12 = 11; + a0 = 1; + return 26; + } else if(((a12==9)&&((((a15==1)&&((!(a27==1)&&((a20==1)&&(((((!(a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a18==1)&&(a22==1)))))&&(input==6))&&!(a6==1))))&&!(a5==1)))&&!(a4==1))&&!(a0==1)))){ + a3 = 8; + a6 = 1; + a22 = 1; + a18 = 0; + a5 = 1; + a27 = 1; + a0 = 1; + a12 = 8; + return -1; + } else if((!(a5==1)&&(!(a0==1)&&(((a15==1)&&((a22==1)&&((((a4==1)&&((a12==12)&&(((a6==1)&&(input==3))&&(a20==1))))&&(a27==1))&&(a3==6))))&&!(a18==1))))){ + if((a22==1)){ + a5 = 1; + a12 = 8; + a4 = 0; + a0 = 1; + a3 = 4; + }else{ + a5 = 1; + a0 = 1; + a3 = 8; + a12 = 8; + a22 = 0; + a18 = 1; + } + return -1; + } else if((((a27==1)&&((!(a4==1)&&((a5==1)&&((!(a15==1)&&((((a12==11)&&((input==6)&&(a0==1)))&&!(a22==1))&&!(a18==1)))&&!(a6==1))))&&(a20==1)))&&(a3==4))){ + a18 = 1; + a6 = 1; + a12 = 8; + a4 = 1; + a22 = 1; + a15 = 1; + return -1; + } else if(((a0==1)&&((a20==1)&&(((!(a15==1)&&((a4==1)&&(((((((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==1))&&(a12==12))&&(a27==1))))&&(a6==1))&&(a5==1))))){ + a22 = 1; + a3 = 8; + a27 = 0; + a18 = 0; + a4 = 0; + a15 = 1; + return 24; + } else if(((((((a20==1)&&(((((a27==1)&&(((input==3)&&(a18==1))&&(a12==9)))&&(a5==1))&&(a6==1))&&(a3==8)))&&(a22==1))&&!(a15==1))&&!(a0==1))&&(a4==1))){ + a18 = 0; + a12 = 10; + a0 = 1; + a22 = 0; + return 24; + } else if(((a3==8)&&((a12==11)&&((a4==1)&&(((((((a22==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&!(a0==1)))&&(a5==1))&&(a20==1))&&(a27==1))&&(a15==1))&&!(a6==1)))))){ + a3 = 7; + a18 = 1; + a0 = 1; + a12 = 10; + a6 = 1; + a22 = 0; + return -1; + } else if((((a20==1)&&((a27==1)&&((!(a0==1)&&((((((a12==9)&&((input==4)&&!(a18==1)))&&(a4==1))&&(a6==1))&&(a3==8))&&(a5==1)))&&!(a22==1))))&&(a15==1))){ + a3 = 5; + a12 = 10; + a6 = 0; + a0 = 1; + a22 = 1; + a4 = 0; + return -1; + } else if(((((a4==1)&&(((a0==1)&&(((a27==1)&&(!(a5==1)&&((input==1)&&(((a3==7)&&(!(a18==1)&&(a22==1)))||(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a18==1)&&(a22==1))))))))&&!(a15==1)))&&(a12==12)))&&(a6==1))&&(a20==1))){ + a3 = 7; + a12 = 8; + a0 = 0; + a22 = 1; + a5 = 1; + a18 = 0; + a15 = 1; + a4 = 0; + return 26; + } else if((!(a4==1)&&((a15==1)&&(((((((((input==3)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&(a20==1))&&!(a5==1))&&!(a27==1))&&(a3==5))&&!(a0==1))&&(a12==11))&&!(a6==1))))){ + a12 = 8; + a4 = 1; + a27 = 1; + a18 = 0; + a6 = 1; + a0 = 1; + a22 = 0; + a5 = 1; + a3 = 4; + return 26; + } else if((((((a0==1)&&((!(a4==1)&&((a12==10)&&((!(a6==1)&&(((input==1)&&!(a15==1))&&(a18==1)))&&(a3==8))))&&(a22==1)))&&(a20==1))&&(a5==1))&&!(a27==1))){ + a22 = 0; + a5 = 0; + a3 = 4; + a4 = 1; + a27 = 1; + return 26; + } else if(((!(a15==1)&&(((((!(a0==1)&&((a12==8)&&((a27==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a20==1)))))&&(a4==1))&&(a5==1))&&(a22==1))&&(a6==1)))&&(a3==8))){ + a12 = 12; + a3 = 5; + a22 = 0; + a5 = 0; + a0 = 1; + a18 = 0; + a6 = 0; + return 26; + } else if(((a5==1)&&(!(a27==1)&&((a4==1)&&(((a12==9)&&((a22==1)&&(((!(a6==1)&&(((a20==1)&&(input==6))&&(a0==1)))&&!(a18==1))&&(a3==5))))&&!(a15==1)))))){ + if((a22==1)){ + a15 = 1; + a0 = 0; + a22 = 0; + a5 = 0; + a3 = 7; + a27 = 1; + a12 = 8; + }else{ + a27 = 1; + a6 = 1; + a15 = 1; + a12 = 12; + a22 = 0; + a3 = 6; + a4 = 0; + } + return -1; + } else if((((a6==1)&&(!(a27==1)&&(((a22==1)&&((((a15==1)&&((a20==1)&&((a12==8)&&((input==4)&&!(a18==1)))))&&(a5==1))&&!(a4==1)))&&(a3==7))))&&!(a0==1))){ + if((a18==1)){ + a18 = 1; + a15 = 0; + a12 = 12; + a3 = 5; + a0 = 1; + a6 = 0; + }else{ + a0 = 1; + a18 = 1; + a3 = 8; + a27 = 1; + a4 = 1; + } + return -1; + } else if(((!(a27==1)&&(((a3==4)&&(((!(a0==1)&&((a4==1)&&((a20==1)&&((input==6)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))))&&!(a6==1))&&!(a5==1)))&&(a15==1)))&&(a12==10))){ + a12 = 8; + a22 = 0; + a27 = 1; + a0 = 1; + a18 = 1; + a5 = 1; + return 26; + } else if(((a0==1)&&(((a12==11)&&(((!(a27==1)&&(((a4==1)&&((a6==1)&&((input==6)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))&&!(a5==1)))&&(a3==8))&&(a15==1)))&&(a20==1)))){ + if((a15==1)){ + a6 = 0; + a22 = 1; + a5 = 1; + a3 = 7; + a18 = 1; + a15 = 0; + a12 = 8; + a27 = 1; + a0 = 0; + }else{ + a6 = 0; + a18 = 1; + a15 = 0; + a3 = 7; + a22 = 0; + a4 = 0; + a12 = 12; + } + return 21; + } else if(((a5==1)&&((((!(a22==1)&&(((a27==1)&&((!(a0==1)&&((a18==1)&&((a6==1)&&(input==3))))&&(a3==8)))&&(a12==8)))&&(a15==1))&&(a20==1))&&!(a4==1)))){ + a3 = 7; + a22 = 1; + a27 = 0; + a0 = 1; + a18 = 0; + a6 = 0; + return -1; + } else if(((a4==1)&&(((a3==5)&&((!(a5==1)&&((a0==1)&&(!(a15==1)&&((a20==1)&&((a27==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a22==1)))))))&&(a6==1)))&&(a12==10)))){ + a6 = 0; + a3 = 6; + a15 = 1; + a18 = 0; + a5 = 1; + return -1; + } else if((!(a15==1)&&((a12==12)&&((!(a6==1)&&(((!(a18==1)&&(((a5==1)&&(((input==3)&&(a3==8))&&(a4==1)))&&!(a22==1)))&&(a20==1))&&(a0==1)))&&(a27==1))))){ + a3 = 4; + a22 = 1; + a6 = 1; + a12 = 8; + a15 = 1; + a18 = 1; + return -1; + } else if((!(a6==1)&&((((((((a27==1)&&((a4==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==5))))&&(a3==4))&&!(a5==1))&&(a12==11))&&!(a15==1))&&!(a0==1))&&(a20==1)))){ + a22 = 1; + a3 = 6; + a12 = 10; + a5 = 1; + a4 = 0; + a18 = 0; + a0 = 1; + return 26; + } else if(((!(a4==1)&&((((!(a15==1)&&(((a0==1)&&((input==2)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))||((a3==6)&&((a22==1)&&!(a18==1))))))&&(a20==1)))&&(a6==1))&&(a12==11))&&(a27==1)))&&!(a5==1))){ + a22 = 1; + a15 = 1; + a6 = 0; + a3 = 8; + a18 = 0; + a12 = 10; + a5 = 1; + return -1; + } else if(((((((a18==1)&&(((!(a0==1)&&((((input==3)&&(a4==1))&&(a27==1))&&(a15==1)))&&(a3==8))&&(a12==11)))&&(a20==1))&&!(a22==1))&&(a6==1))&&(a5==1))){ + a0 = 1; + a15 = 0; + a6 = 0; + a18 = 0; + a3 = 6; + return 21; + } else if(((((((a0==1)&&(!(a4==1)&&((!(a6==1)&&((input==3)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))))&&!(a5==1))))&&(a20==1))&&!(a27==1))&&(a12==10))&&(a15==1))){ + if((a5==1)){ + a3 = 6; + a27 = 1; + a6 = 1; + a22 = 1; + a5 = 1; + a18 = 0; + a0 = 0; + }else{ + a12 = 11; + a18 = 0; + a22 = 0; + a15 = 0; + a3 = 5; + } + return 26; + } else if((((a5==1)&&((a0==1)&&(!(a15==1)&&(((a12==10)&&(((a20==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2))&&!(a27==1)))&&!(a6==1)))&&(a3==4)))))&&!(a4==1))){ + a18 = 0; + a22 = 1; + a3 = 8; + a27 = 1; + a6 = 1; + return 26; + } else if(((!(a18==1)&&(((a3==6)&&(((((((a4==1)&&((input==1)&&(a22==1)))&&(a27==1))&&(a5==1))&&(a12==9))&&(a20==1))&&!(a15==1)))&&(a6==1)))&&!(a0==1))){ + a22 = 0; + a12 = 10; + a0 = 1; + return 21; + } else if(((a0==1)&&((a18==1)&&(((a22==1)&&((((((a5==1)&&((!(a4==1)&&(input==5))&&(a20==1)))&&!(a6==1))&&(a12==9))&&!(a15==1))&&(a3==6)))&&!(a27==1))))){ + a3 = 4; + a18 = 0; + a27 = 1; + a12 = 10; + return 21; + } else if(((((a12==8)&&((((!(a27==1)&&(((a4==1)&&(!(a0==1)&&((input==2)&&(a22==1))))&&(a3==6)))&&(a20==1))&&!(a15==1))&&!(a6==1)))&&!(a5==1))&&(a18==1))){ + a15 = 1; + a3 = 7; + a0 = 1; + a6 = 1; + a27 = 1; + a22 = 0; + a4 = 0; + a5 = 1; + return -1; + } else if(((((!(a4==1)&&(((!(a18==1)&&(!(a0==1)&&((a22==1)&&((a12==9)&&((input==5)&&(a6==1))))))&&!(a5==1))&&(a20==1)))&&(a27==1))&&(a3==6))&&!(a15==1))){ + a5 = 1; + a22 = 0; + a4 = 1; + a15 = 1; + a6 = 0; + a0 = 1; + a18 = 1; + a12 = 10; + return -1; + } else if((((a6==1)&&(((!(a22==1)&&((a3==4)&&(!(a15==1)&&(!(a4==1)&&((((a20==1)&&(input==2))&&(a18==1))&&(a27==1))))))&&(a12==11))&&(a0==1)))&&!(a5==1))){ + a12 = 10; + a22 = 1; + a4 = 1; + a15 = 1; + a3 = 7; + return -1; + } return calculate_output79(input); + } + + int calculate_output79(int input) { + if(((a20==1)&&((!(a15==1)&&(((((a12==8)&&((a6==1)&&((((input==6)&&!(a18==1))&&!(a5==1))&&(a3==4))))&&(a22==1))&&(a27==1))&&(a0==1)))&&(a4==1)))){ + a3 = 5; + a15 = 1; + a12 = 10; + a4 = 0; + return 21; + } else if((!(a22==1)&&((((((a20==1)&&((((((input==5)&&(a3==6))&&!(a5==1))&&(a18==1))&&(a4==1))&&(a0==1)))&&(a12==10))&&!(a6==1))&&(a27==1))&&(a15==1)))){ + a5 = 1; + a22 = 1; + a3 = 4; + a6 = 1; + a12 = 8; + return -1; + } else if(((a12==8)&&((a15==1)&&((((a4==1)&&((a3==5)&&((a20==1)&&((a5==1)&&((!(a22==1)&&(((a18==1)||!(a18==1))&&(input==2)))&&!(a0==1))))))&&(a6==1))&&(a27==1))))){ + a22 = 1; + a6 = 0; + a12 = 10; + a0 = 1; + a18 = 1; + a3 = 8; + a4 = 0; + return -1; + } else if(((a3==6)&&(((a4==1)&&((a22==1)&&((a12==12)&&((a27==1)&&((((a15==1)&&(((input==2)&&!(a18==1))&&!(a5==1)))&&(a0==1))&&(a6==1))))))&&(a20==1)))){ + a3 = 7; + a12 = 10; + a5 = 1; + a6 = 0; + a15 = 0; + a18 = 1; + a22 = 0; + return -1; + } else if(((a15==1)&&((!(a4==1)&&(((a0==1)&&(((a5==1)&&((a27==1)&&((((((a18==1)&&!(a22==1))&&(a3==5))||((!(a18==1)&&!(a22==1))&&(a3==5)))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==6))))&&(a6==1)))&&(a12==9)))&&(a20==1)))){ + a4 = 1; + a18 = 0; + a22 = 0; + a5 = 0; + a12 = 12; + a3 = 5; + return 26; + } else if(((a15==1)&&((((a0==1)&&(!(a4==1)&&(((a12==9)&&(((input==6)&&((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==5)))||((!(a18==1)&&(a22==1))&&(a3==5))))&&(a5==1)))&&(a20==1))))&&!(a27==1))&&!(a6==1)))){ + a12 = 8; + a3 = 4; + a22 = 1; + a4 = 1; + a6 = 1; + a27 = 1; + a18 = 1; + return -1; + } else if(((!(a0==1)&&((a20==1)&&((a27==1)&&((a6==1)&&((a12==8)&&(((a15==1)&&((a3==8)&&((input==3)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))&&(a5==1)))))))&&(a4==1))){ + a12 = 11; + a22 = 0; + a6 = 0; + a18 = 0; + a15 = 0; + a0 = 1; + a4 = 0; + return 26; + } else if(((((a27==1)&&((((((a22==1)&&(!(a6==1)&&(!(a5==1)&&((a20==1)&&(input==3)))))&&(a4==1))&&!(a15==1))&&(a18==1))&&(a0==1)))&&(a3==5))&&(a12==8))){ + a12 = 11; + a3 = 4; + a15 = 1; + a5 = 1; + return 21; + } else if((!(a18==1)&&((!(a15==1)&&((a5==1)&&((a0==1)&&(((a22==1)&&((a27==1)&&((((input==6)&&(a4==1))&&(a6==1))&&(a20==1))))&&(a12==10)))))&&(a3==5)))){ + a12 = 11; + a3 = 6; + a0 = 0; + return -1; + } else if(((a27==1)&&((a15==1)&&((a20==1)&&((a4==1)&&((((a5==1)&&((a12==8)&&(((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))||((a3==5)&&((a22==1)&&!(a18==1))))&&(input==5))))&&(a6==1))&&!(a0==1))))))){ + a0 = 1; + a5 = 0; + a22 = 0; + a27 = 0; + a3 = 6; + a18 = 0; + a12 = 12; + return 26; + } else if(((!(a0==1)&&(!(a15==1)&&(((a3==7)&&(((((a4==1)&&((input==6)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))))&&(a12==10))&&(a5==1))&&(a6==1)))&&(a20==1))))&&!(a27==1))){ + if((a12==9)){ + a22 = 1; + a0 = 1; + a15 = 1; + a27 = 1; + a4 = 0; + a3 = 4; + a12 = 8; + a18 = 0; + }else{ + a22 = 1; + a3 = 8; + a27 = 1; + a18 = 1; + a15 = 1; + a0 = 1; + a12 = 8; + } + return 21; + } else if(((((((a0==1)&&((a12==11)&&((a5==1)&&(((((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==4))&&(a20==1)))))&&(a27==1))&&!(a4==1))&&(a15==1))&&(a6==1))){ + a3 = 4; + a22 = 1; + a12 = 8; + a4 = 1; + a18 = 1; + return -1; + } else if(((a3==8)&&((a12==11)&&(!(a5==1)&&(!(a4==1)&&((a0==1)&&((!(a27==1)&&((a20==1)&&((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==4))&&(a15==1))))&&(a6==1)))))))){ + a27 = 1; + a4 = 1; + a6 = 0; + a18 = 1; + a22 = 1; + a12 = 10; + return 26; + } else if(((a27==1)&&((a15==1)&&(!(a4==1)&&(((((((input==4)&&((((a22==1)&&!(a18==1))&&(a3==7))||(((a3==6)&&(!(a18==1)&&!(a22==1)))||((a3==7)&&((a18==1)&&(a22==1))))))&&(a5==1))&&(a12==10))&&(a20==1))&&(a0==1))&&(a6==1)))))){ + a3 = 6; + a22 = 0; + a18 = 1; + return -1; + } else if((((!(a0==1)&&(((((((input==2)&&(((a3==5)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))))&&(a5==1))&&(a4==1))&&(a6==1))&&(a15==1))&&!(a27==1)))&&(a12==11))&&(a20==1))){ + if((a3==5)){ + a27 = 1; + a0 = 1; + a6 = 0; + a3 = 8; + a18 = 1; + a22 = 1; + a12 = 8; + }else{ + a3 = 8; + a18 = 0; + a27 = 1; + a6 = 0; + a4 = 0; + a22 = 0; + a15 = 0; + a12 = 10; + } + return 24; + } else if(((!(a6==1)&&((a0==1)&&((a12==11)&&((!(a4==1)&&(((a20==1)&&(((input==1)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&(a5==1)))&&(a27==1)))&&(a3==6)))))&&!(a15==1))){ + a3 = 7; + a22 = 0; + a15 = 1; + a18 = 0; + a27 = 0; + return 26; + } else if(((a20==1)&&(((a0==1)&&(((a27==1)&&(!(a5==1)&&((a12==8)&&(((input==1)&&(((a3==7)&&(!(a18==1)&&(a22==1)))||(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7)))))&&(a6==1)))))&&!(a4==1)))&&!(a15==1)))){ + a4 = 1; + a22 = 1; + a18 = 1; + a5 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if(((a27==1)&&((((!(a4==1)&&((a15==1)&&((((a6==1)&&((((a18==1)||!(a18==1))&&(input==2))&&!(a22==1)))&&(a12==12))&&(a20==1))))&&(a0==1))&&(a5==1))&&(a3==6)))){ + a4 = 1; + a12 = 10; + a18 = 0; + return -1; + } else if(((a4==1)&&((a12==10)&&(!(a27==1)&&((!(a5==1)&&((a20==1)&&(((a0==1)&&((input==4)&&(((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))))&&!(a6==1))))&&!(a15==1)))))){ + a22 = 0; + a12 = 9; + a18 = 0; + a5 = 1; + a3 = 8; + return 21; + } else if((((a20==1)&&((a12==12)&&(!(a27==1)&&((!(a4==1)&&(((((a3==4)&&((input==4)&&((a18==1)||!(a18==1))))&&(a5==1))&&(a15==1))&&(a6==1)))&&(a0==1)))))&&!(a22==1))){ + a18 = 1; + a15 = 0; + a12 = 8; + a4 = 1; + a6 = 0; + a3 = 5; + return -1; + } else if((((a3==7)&&((!(a22==1)&&(((((((((a18==1)||!(a18==1))&&(input==6))&&(a27==1))&&(a12==11))&&(a20==1))&&!(a15==1))&&(a5==1))&&(a6==1)))&&!(a0==1)))&&!(a4==1))){ + a4 = 1; + a3 = 4; + a15 = 1; + a12 = 8; + a22 = 1; + a0 = 1; + a18 = 1; + return -1; + } else if(((a18==1)&&(((a12==9)&&((a27==1)&&((!(a22==1)&&(((a6==1)&&((a5==1)&&((a4==1)&&((a3==4)&&(input==3)))))&&(a15==1)))&&(a0==1))))&&(a20==1)))){ + a12 = 11; + a3 = 6; + a18 = 0; + a5 = 0; + a15 = 0; + a22 = 1; + return 26; + } else if(((a5==1)&&((a6==1)&&(((a0==1)&&((((a4==1)&&((a27==1)&&(((input==2)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a3==5))))&&!(a15==1))&&(a20==1)))&&(a12==9))))){ + a18 = 0; + a22 = 1; + a5 = 0; + a12 = 10; + a3 = 7; + a4 = 0; + return 26; + } else if((((a20==1)&&((a12==8)&&(((a4==1)&&((((((((a18==1)||!(a18==1))&&(input==5))&&!(a27==1))&&!(a5==1))&&(a3==7))&&!(a6==1))&&(a22==1)))&&!(a0==1))))&&!(a15==1))){ + a6 = 1; + a3 = 4; + a22 = 0; + a18 = 0; + a12 = 10; + a0 = 1; + a27 = 1; + return -1; + } else if((((a12==9)&&((((((a4==1)&&(((a27==1)&&(((a20==1)&&(input==6))&&!(a0==1)))&&(a3==6)))&&(a6==1))&&(a5==1))&&(a22==1))&&!(a15==1)))&&(a18==1))){ + a15 = 1; + a5 = 0; + a0 = 1; + a12 = 10; + a3 = 8; + return -1; + } else if(((a20==1)&&(((!(a0==1)&&((a12==9)&&((((a3==5)&&((a4==1)&&((input==1)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))))&&!(a27==1))&&(a15==1))))&&!(a6==1))&&(a5==1)))){ + a22 = 0; + a6 = 1; + a18 = 0; + a0 = 1; + a27 = 1; + a12 = 8; + return 24; + } else if((((a12==8)&&((a27==1)&&((!(a5==1)&&(((!(a6==1)&&((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==5))&&(a0==1)))&&(a20==1))&&!(a15==1)))&&(a4==1))))&&(a3==8))){ + a18 = 1; + a15 = 1; + a5 = 1; + a22 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if(((((!(a4==1)&&((a27==1)&&((a20==1)&&((((input==3)&&(((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==8))))&&!(a5==1))&&(a12==10)))))&&(a0==1))&&(a15==1))&&!(a6==1))){ + a3 = 4; + a27 = 0; + a22 = 0; + a6 = 1; + a18 = 1; + a5 = 1; + a15 = 0; + return 21; + } else if((!(a5==1)&&(((a4==1)&&((a27==1)&&(((a3==7)&&((a20==1)&&(((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==3))&&(a12==11))&&!(a15==1))))&&!(a0==1))))&&!(a6==1)))){ + a5 = 1; + a0 = 1; + a18 = 1; + a6 = 1; + a4 = 0; + a22 = 1; + a3 = 4; + return -1; + } else if(((((a15==1)&&((a20==1)&&(!(a27==1)&&((a4==1)&&((((!(a6==1)&&((!(a18==1)&&(a22==1))&&(a3==4)))||((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4)))))&&(input==4))&&(a12==9))))))&&!(a0==1))&&!(a5==1))){ + a22 = 0; + a6 = 1; + a18 = 1; + a0 = 1; + a3 = 7; + a12 = 10; + return 26; + } else if(((!(a0==1)&&((((((((((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a22==1)&&(a18==1))))&&(input==5))&&(a20==1))&&!(a4==1))&&(a5==1))&&!(a6==1))&&(a27==1))&&!(a15==1)))&&(a12==8))){ + a18 = 1; + a5 = 0; + a22 = 1; + a3 = 7; + a27 = 0; + a12 = 9; + a0 = 1; + return -1; + } else if((((!(a5==1)&&(((!(a27==1)&&(!(a0==1)&&(((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4))))&&(input==1))))&&!(a4==1))&&(a12==8)))&&(a15==1))&&(a20==1))){ + a18 = 1; + a0 = 1; + a3 = 4; + a27 = 1; + a5 = 1; + a6 = 0; + a4 = 1; + a22 = 0; + return 26; + } else if((!(a22==1)&&((a12==10)&&((a20==1)&&(((((a15==1)&&((a27==1)&&((!(a6==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&!(a5==1))))&&(a4==1))&&!(a0==1))&&(a3==8)))))){ + a4 = 0; + a22 = 1; + a3 = 4; + a0 = 1; + a5 = 1; + a6 = 1; + a18 = 1; + return -1; + } else if((!(a27==1)&&((!(a18==1)&&((((((((a12==11)&&(!(a4==1)&&(input==5)))&&!(a6==1))&&!(a0==1))&&!(a15==1))&&!(a22==1))&&(a20==1))&&(a3==7)))&&!(a5==1)))){ + a18 = 1; + a0 = 1; + a27 = 1; + a22 = 1; + a15 = 1; + a5 = 1; + a6 = 1; + a12 = 8; + return 26; + } else if((!(a6==1)&&((a15==1)&&((a20==1)&&(((((((((input==4)&&(a3==7))&&!(a0==1))&&!(a22==1))&&(a27==1))&&(a4==1))&&!(a18==1))&&(a12==10))&&!(a5==1)))))){ + a12 = 8; + a3 = 4; + a6 = 1; + a0 = 1; + a5 = 1; + a18 = 1; + a22 = 1; + return -1; + } else if((!(a4==1)&&(!(a5==1)&&((!(a0==1)&&((((a15==1)&&(((((a12==8)&&(input==4))&&(a20==1))&&(a22==1))&&!(a18==1)))&&(a3==6))&&(a27==1)))&&!(a6==1))))){ + a3 = 4; + a4 = 1; + a0 = 1; + a5 = 1; + a18 = 1; + a27 = 0; + return 21; + } else if(((a5==1)&&(((a12==8)&&(((a6==1)&&((((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==4))&&!(a27==1))&&(a20==1))&&(a3==5))&&!(a15==1)))&&(a4==1)))&&(a0==1)))){ + if((a12==10)){ + a18 = 1; + a12 = 10; + a22 = 1; + a0 = 0; + a3 = 4; + a27 = 1; + a5 = 0; + a4 = 0; + a15 = 1; + }else{ + a27 = 1; + a5 = 0; + a3 = 4; + a22 = 1; + a18 = 0; + a12 = 10; + } + return 21; + } else if((!(a5==1)&&((a20==1)&&((!(a0==1)&&((a6==1)&&((((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==6))&&(a4==1))&&!(a15==1))&&!(a27==1))&&(a12==10))))&&(a3==4))))){ + a5 = 1; + a22 = 0; + a18 = 1; + a3 = 6; + a0 = 1; + a12 = 8; + a27 = 1; + a15 = 1; + return 26; + } else if(((a12==8)&&((((((((a27==1)&&(!(a4==1)&&((a3==7)&&((input==4)&&(a0==1)))))&&(a20==1))&&(a5==1))&&(a22==1))&&!(a6==1))&&(a18==1))&&!(a15==1)))){ + a22 = 0; + a4 = 1; + a6 = 1; + a18 = 0; + a3 = 4; + a0 = 0; + return 26; + } else if((((!(a0==1)&&((a15==1)&&(((((!(a6==1)&&(((input==6)&&(a5==1))&&(a20==1)))&&(a27==1))&&(a4==1))&&(a12==8))&&!(a22==1))))&&!(a18==1))&&(a3==8))){ + a18 = 1; + a0 = 1; + a3 = 6; + a12 = 12; + a6 = 1; + return 21; + } else if((!(a15==1)&&((((((((a20==1)&&((input==5)&&((((!(a22==1)&&(a18==1))&&(a3==4))||((!(a22==1)&&!(a18==1))&&(a3==4)))||(((a22==1)&&(a18==1))&&(a3==5)))))&&!(a27==1))&&!(a4==1))&&(a0==1))&&(a5==1))&&(a12==12))&&(a6==1)))){ + a22 = 1; + a4 = 1; + a12 = 10; + a18 = 1; + a3 = 5; + return -1; + } else if(((a20==1)&&((((a12==8)&&((!(a0==1)&&(!(a15==1)&&(!(a27==1)&&(!(a5==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==2))))))&&(a4==1)))&&(a3==5))&&!(a6==1)))){ + if((a12==8)){ + a12 = 9; + a5 = 1; + a18 = 0; + a15 = 1; + a0 = 1; + a22 = 1; + }else{ + a22 = 1; + a6 = 1; + a12 = 9; + a27 = 1; + a18 = 0; + a0 = 1; + } + return -1; + } else if((((!(a27==1)&&(((a3==5)&&((a20==1)&&((((a0==1)&&((input==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))))&&!(a5==1))&&(a12==12))))&&(a4==1)))&&!(a6==1))&&!(a15==1))){ + if((a5==1)){ + a6 = 1; + a4 = 0; + a18 = 0; + a27 = 1; + a12 = 10; + a0 = 0; + a22 = 0; + }else{ + a27 = 1; + a22 = 1; + a5 = 1; + a3 = 4; + a6 = 1; + a18 = 0; + a12 = 10; + } + return 21; + } else if(((a5==1)&&((!(a0==1)&&((((((input==1)&&((((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1))||((((a3==8)&&((a18==1)&&!(a22==1)))&&(a6==1))||(((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1)))))&&!(a27==1))&&!(a4==1))&&(a20==1))&&(a12==9)))&&(a15==1)))){ + if((a27==1)){ + a27 = 1; + a3 = 7; + a18 = 0; + a4 = 1; + a22 = 0; + a12 = 8; + a6 = 0; + a0 = 1; + }else{ + a12 = 8; + a18 = 0; + a3 = 5; + a6 = 1; + a4 = 1; + a15 = 0; + a22 = 1; + a27 = 1; + a5 = 0; + } + return 24; + } else if((((((a15==1)&&((((((input==1)&&(((!(a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a18==1)&&(a22==1))))))&&(a20==1))&&(a5==1))&&(a12==11))&&!(a27==1)))&&!(a4==1))&&(a0==1))&&!(a6==1))){ + a27 = 1; + a22 = 0; + a3 = 5; + a15 = 0; + a18 = 0; + return 24; + } else if(((((a6==1)&&((a12==12)&&(((a0==1)&&(!(a4==1)&&((a20==1)&&((a3==6)&&((((a18==1)||!(a18==1))&&(input==3))&&(a5==1))))))&&!(a22==1))))&&!(a15==1))&&(a27==1))){ + a6 = 0; + a3 = 5; + a18 = 0; + a15 = 1; + return -1; + } else if(((a15==1)&&(((a12==11)&&((a6==1)&&((((a3==7)&&((a22==1)&&((!(a27==1)&&((input==2)&&(a20==1)))&&(a4==1))))&&!(a5==1))&&(a18==1))))&&!(a0==1)))){ + a3 = 6; + a27 = 1; + a5 = 1; + a18 = 0; + a22 = 0; + a6 = 0; + return -1; + } else if(((!(a15==1)&&((a3==4)&&(((((a0==1)&&(!(a5==1)&&((a22==1)&&(((input==3)&&(a12==9))&&!(a6==1)))))&&(a27==1))&&!(a4==1))&&(a20==1))))&&(a18==1))){ + a4 = 1; + a18 = 0; + a6 = 1; + a5 = 1; + a27 = 0; + return 26; + } else if((!(a22==1)&&((a0==1)&&(((a15==1)&&(((!(a5==1)&&((((a4==1)&&((input==1)&&(a6==1)))&&(a18==1))&&(a12==11)))&&(a20==1))&&(a27==1)))&&(a3==7))))){ + a6 = 0; + a12 = 9; + a4 = 0; + a0 = 0; + return 21; + } else if((((a20==1)&&(((a12==8)&&(!(a6==1)&&((a5==1)&&(!(a15==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))&&(input==2))&&!(a27==1))))))&&(a4==1)))&&!(a0==1))){ + if((a3==8)){ + a3 = 5; + a0 = 1; + a6 = 1; + a22 = 1; + a18 = 1; + a27 = 1; + a15 = 1; + }else{ + a0 = 1; + a15 = 1; + a18 = 0; + a6 = 1; + a22 = 1; + a3 = 8; + a27 = 1; + } + return -1; + } else if(((((a6==1)&&(((((a15==1)&&((a22==1)&&(((a5==1)&&((a3==6)&&(input==2)))&&(a20==1))))&&(a4==1))&&!(a27==1))&&(a12==11)))&&(a0==1))&&!(a18==1))){ + a15 = 0; + a6 = 0; + a22 = 0; + a12 = 10; + a18 = 1; + return -1; + } else if(((a15==1)&&((!(a5==1)&&(((a6==1)&&(((a0==1)&&(!(a4==1)&&((((input==2)&&(a3==5))&&(a12==8))&&(a22==1))))&&!(a18==1)))&&(a20==1)))&&!(a27==1)))){ + a3 = 4; + a27 = 1; + a22 = 0; + a18 = 1; + a12 = 10; + a4 = 1; + a5 = 1; + return 21; + } else if((!(a18==1)&&(((((a12==10)&&((a27==1)&&((!(a0==1)&&((((input==2)&&!(a15==1))&&!(a6==1))&&(a3==4)))&&(a20==1))))&&(a4==1))&&(a5==1))&&(a22==1)))){ + a27 = 0; + a3 = 8; + a0 = 1; + a12 = 8; + return -1; + } else if(((a12==11)&&((a22==1)&&((!(a0==1)&&((!(a15==1)&&((((((input==6)&&(a20==1))&&(a3==4))&&(a6==1))&&!(a27==1))&&!(a18==1)))&&(a5==1)))&&!(a4==1))))){ + a0 = 1; + a27 = 1; + a15 = 1; + a12 = 8; + return 21; + } else if((!(a15==1)&&((a12==11)&&((((a5==1)&&(((a20==1)&&(((a3==8)&&((input==2)&&(((a18==1)&&!(a22==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))))&&(a27==1)))&&(a6==1)))&&!(a4==1))&&!(a0==1))))){ + a22 = 0; + a27 = 0; + a0 = 1; + a18 = 1; + a5 = 0; + return 26; + } else if(((a22==1)&&((!(a27==1)&&(((((a15==1)&&((((a3==4)&&(!(a6==1)&&(input==5)))&&(a4==1))&&(a12==11)))&&!(a5==1))&&(a0==1))&&(a20==1)))&&(a18==1)))){ + a15 = 0; + a27 = 1; + a18 = 0; + a22 = 0; + a5 = 1; + a3 = 5; + a12 = 12; + return 21; + } else if(((a6==1)&&((a15==1)&&((((!(a4==1)&&(((a5==1)&&((((a3==7)&&((a22==1)&&(a18==1)))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==6))))&&(input==5)))&&(a12==10)))&&(a20==1))&&!(a0==1))&&(a27==1))))){ + a12 = 9; + a22 = 1; + a15 = 0; + a5 = 0; + a3 = 8; + a18 = 1; + a6 = 0; + a0 = 1; + return 26; + } else if((((((((((!(a5==1)&&(((a22==1)&&(input==1))&&(a20==1)))&&!(a15==1))&&!(a27==1))&&(a4==1))&&(a3==8))&&(a0==1))&&(a6==1))&&(a18==1))&&(a12==12))){ + a6 = 0; + a27 = 1; + a18 = 0; + a5 = 1; + a15 = 1; + a4 = 0; + a3 = 5; + return 24; + } else if((((!(a6==1)&&(!(a0==1)&&(((a20==1)&&(((((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a3==8))&&!(a27==1))&&(a4==1)))&&!(a5==1))))&&(a12==8))&&(a15==1))){ + a27 = 1; + a6 = 1; + a0 = 1; + a22 = 1; + a5 = 1; + a18 = 1; + a3 = 5; + return -1; + } else if(((a0==1)&&(((!(a5==1)&&(!(a27==1)&&((a15==1)&&((a20==1)&&((input==4)&&(((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1)))||(!(a6==1)&&((a3==4)&&((a22==1)&&!(a18==1))))))))))&&(a4==1))&&(a12==12)))){ + a6 = 1; + a18 = 1; + a12 = 9; + a22 = 0; + a3 = 8; + return -1; + } else if(((a3==8)&&(!(a6==1)&&((a20==1)&&((a5==1)&&(!(a0==1)&&(((a12==9)&&(((!(a4==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a15==1))&&(a27==1)))&&!(a22==1)))))))){ + a6 = 1; + a18 = 1; + a22 = 1; + a3 = 4; + a0 = 1; + a15 = 0; + a12 = 11; + return -1; + } else if(((a12==10)&&(((((((a20==1)&&((((input==1)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a0==1))&&(a5==1)))&&(a3==6))&&!(a4==1))&&!(a6==1))&&!(a15==1))&&(a27==1)))){ + a4 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + a15 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if(((((a0==1)&&((a3==7)&&((a4==1)&&(((a20==1)&&(((((a5==1)&&(input==4))&&!(a18==1))&&!(a15==1))&&!(a22==1)))&&(a12==11)))))&&(a6==1))&&(a27==1))){ + if((a27==1)){ + a15 = 1; + a18 = 1; + a3 = 8; + a22 = 1; + a0 = 0; + a12 = 9; + a4 = 0; + }else{ + a15 = 1; + a3 = 5; + a4 = 0; + a18 = 1; + a22 = 1; + a0 = 0; + } + return 26; + } else if(((a0==1)&&((a27==1)&&((a12==10)&&(((((a4==1)&&((a15==1)&&((a3==8)&&(((a6==1)&&(input==1))&&(a18==1)))))&&(a5==1))&&(a20==1))&&(a22==1)))))){ + a12 = 8; + a15 = 0; + a3 = 6; + return 26; + } else if(((a0==1)&&((a27==1)&&(!(a4==1)&&(((((!(a22==1)&&(((a5==1)&&((input==6)&&(a20==1)))&&!(a15==1)))&&(a3==7))&&(a12==9))&&!(a6==1))&&(a18==1)))))){ + a3 = 8; + a27 = 0; + a6 = 1; + a12 = 8; + a15 = 1; + return 21; + } else if((((a6==1)&&(((a20==1)&&((a12==9)&&(!(a0==1)&&(((((a27==1)&&(!(a22==1)&&(input==2)))&&!(a5==1))&&(a15==1))&&(a18==1)))))&&(a3==8)))&&(a4==1))){ + a12 = 11; + a6 = 0; + a0 = 1; + a3 = 4; + a18 = 0; + a15 = 0; + return 26; + } else if(((a22==1)&&(((!(a18==1)&&((!(a4==1)&&((!(a0==1)&&((!(a6==1)&&((input==4)&&(a12==9)))&&(a3==4)))&&!(a27==1)))&&(a15==1)))&&!(a5==1))&&(a20==1)))){ + if((a0==1)){ + a5 = 1; + a12 = 8; + a4 = 1; + a3 = 6; + a22 = 0; + a0 = 1; + }else{ + a12 = 12; + a3 = 8; + a27 = 1; + a5 = 1; + a22 = 0; + a15 = 0; + a4 = 1; + a6 = 1; + } + return 24; + } else if(((a4==1)&&((((a18==1)&&((a12==10)&&((a5==1)&&((((a0==1)&&((a3==7)&&((input==2)&&(a20==1))))&&(a6==1))&&(a22==1)))))&&(a27==1))&&(a15==1)))){ + a12 = 8; + a3 = 4; + return -1; + } else if((!(a6==1)&&(((!(a18==1)&&(!(a4==1)&&((a22==1)&&(((a5==1)&&((a20==1)&&((a3==4)&&((input==1)&&!(a0==1)))))&&(a12==8)))))&&(a27==1))&&!(a15==1)))){ + a22 = 0; + a0 = 1; + a5 = 0; + a4 = 1; + a15 = 1; + a12 = 10; + return 21; + } else if((!(a6==1)&&(((a0==1)&&(((a20==1)&&(((a12==9)&&(((input==4)&&(((!(a18==1)&&(a22==1))&&(a3==8))||(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))))&&!(a27==1)))&&!(a5==1)))&&(a4==1)))&&(a15==1)))){ + a3 = 7; + a12 = 8; + a18 = 1; + a22 = 1; + a5 = 1; + return -1; + } else if((!(a0==1)&&((((a15==1)&&((a4==1)&&(((!(a27==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3))&&(a20==1)))&&!(a6==1))&&!(a5==1))))&&(a12==8))&&(a3==7)))){ + if((a3==6)){ + a18 = 1; + a22 = 0; + a6 = 1; + a5 = 1; + a0 = 1; + a27 = 1; + }else{ + a5 = 1; + a0 = 1; + a27 = 1; + a3 = 4; + a22 = 1; + a18 = 0; + } + return 26; + } else if((!(a6==1)&&(((a3==4)&&(((((a27==1)&&(((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1))&&(a12==8))&&!(a0==1)))&&(a20==1))&&!(a5==1))&&(a15==1)))&&!(a4==1)))){ + a4 = 1; + a3 = 7; + a22 = 0; + a18 = 0; + a0 = 1; + a12 = 12; + return 21; + } else if((((a0==1)&&((((((a15==1)&&((((a22==1)&&(((a18==1)||!(a18==1))&&(input==4)))&&!(a6==1))&&(a3==7)))&&(a5==1))&&(a12==11))&&!(a4==1))&&(a27==1)))&&(a20==1))){ + if((a22==1)){ + a18 = 1; + a12 = 10; + a5 = 0; + a0 = 0; + a4 = 1; + a15 = 0; + a3 = 6; + }else{ + a15 = 0; + a3 = 8; + a4 = 1; + a5 = 0; + a18 = 1; + a12 = 8; + } + return 21; + } else if((!(a6==1)&&((!(a4==1)&&((((((!(a27==1)&&((a3==7)&&(!(a18==1)&&(input==5))))&&(a22==1))&&(a12==11))&&(a0==1))&&!(a15==1))&&(a5==1)))&&(a20==1)))){ + a22 = 0; + a12 = 9; + a3 = 6; + a6 = 1; + return -1; + } else if(((a20==1)&&(((a12==8)&&((a0==1)&&((a15==1)&&(!(a27==1)&&(((a5==1)&&((input==3)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))||((a3==6)&&((a22==1)&&!(a18==1))))))&&(a4==1))))))&&!(a6==1)))){ + a27 = 1; + a6 = 1; + a18 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if((!(a4==1)&&(((((((((a22==1)&&((a20==1)&&((input==2)&&((a18==1)||!(a18==1)))))&&(a12==11))&&(a5==1))&&(a6==1))&&(a3==6))&&(a0==1))&&!(a27==1))&&(a15==1)))){ + a15 = 0; + a4 = 1; + a12 = 9; + a3 = 7; + a18 = 0; + a5 = 0; + a6 = 0; + return 21; + } else if((((a20==1)&&((!(a6==1)&&((((a5==1)&&(((((a3==7)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==6))||((!(a22==1)&&!(a18==1))&&(a3==6))))&&(input==3))&&(a27==1)))&&(a12==8))&&(a0==1)))&&!(a15==1)))&&(a4==1))){ + a4 = 0; + a3 = 5; + a18 = 1; + a22 = 1; + a5 = 0; + return 21; + } else if(((a0==1)&&((a6==1)&&((a20==1)&&(((((((!(a5==1)&&((input==4)&&((a18==1)||!(a18==1))))&&!(a22==1))&&(a12==8))&&!(a27==1))&&(a15==1))&&(a4==1))&&(a3==7)))))){ + a27 = 1; + a18 = 1; + a5 = 1; + a15 = 0; + a12 = 10; + return -1; + } else if(((a0==1)&&((a27==1)&&(!(a15==1)&&(!(a5==1)&&((a4==1)&&(!(a6==1)&&((((((a3==7)&&(!(a18==1)&&(a22==1)))||(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7))))&&(input==6))&&(a20==1))&&(a12==9))))))))){ + a6 = 1; + a12 = 12; + a18 = 1; + a3 = 7; + a5 = 1; + a22 = 0; + return 26; + } else if(((a12==10)&&((a20==1)&&((((!(a4==1)&&(((a15==1)&&(((((!(a22==1)&&(a18==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7)))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==5)))&&(a6==1)))&&(a5==1))&&!(a27==1))&&(a0==1))))){ + a3 = 4; + a12 = 8; + a18 = 1; + a22 = 1; + a4 = 1; + a27 = 1; + return -1; + } else if(((a22==1)&&(((a6==1)&&(((((a3==6)&&((((a27==1)&&((input==4)&&((a18==1)||!(a18==1))))&&(a15==1))&&(a20==1)))&&!(a4==1))&&!(a5==1))&&(a0==1)))&&(a12==9)))){ + if((a20==1)){ + a12 = 11; + a22 = 0; + a0 = 0; + a6 = 0; + a5 = 1; + a18 = 1; + a4 = 1; + a3 = 7; + }else{ + a4 = 1; + a12 = 11; + a18 = 1; + a3 = 7; + a22 = 0; + } + return 24; + } else if(((a15==1)&&(!(a0==1)&&(!(a27==1)&&(((a6==1)&&((!(a4==1)&&(((input==2)&&(((!(a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8)))))&&(a5==1)))&&(a20==1)))&&(a12==8)))))){ + a3 = 6; + a18 = 0; + a22 = 0; + a15 = 0; + return -1; + } else if((!(a15==1)&&((((((a0==1)&&((((input==3)&&((((a3==4)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==4)))||(((a18==1)&&(a22==1))&&(a3==5))))&&!(a5==1))&&(a4==1)))&&!(a6==1))&&(a20==1))&&(a12==8))&&!(a27==1)))){ + a15 = 1; + a12 = 11; + a6 = 1; + a18 = 1; + a27 = 1; + a3 = 8; + a22 = 1; + a5 = 1; + return 21; + } else if((!(a27==1)&&((!(a0==1)&&(((a12==11)&&(((a5==1)&&(!(a6==1)&&((input==4)&&((((!(a22==1)&&(a18==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==7))))))&&(a20==1)))&&(a15==1)))&&!(a4==1)))){ + a0 = 1; + a3 = 4; + a18 = 0; + a27 = 1; + a12 = 8; + a22 = 1; + a6 = 1; + return -1; + } else if(((((((a12==12)&&((((!(a18==1)&&(((input==4)&&!(a5==1))&&(a15==1)))&&!(a6==1))&&(a4==1))&&!(a22==1)))&&(a20==1))&&(a0==1))&&!(a27==1))&&(a3==7))){ + a6 = 1; + a22 = 1; + a5 = 1; + a18 = 1; + a27 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((((((((((a5==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==2)))&&(a6==1))&&!(a27==1))&&(a4==1))&&!(a15==1))&&(a3==4))&&(a12==8))&&(a20==1))&&!(a0==1))){ + a15 = 1; + a0 = 1; + a3 = 8; + a22 = 0; + a4 = 0; + a18 = 1; + return 26; + } else if((((((((a22==1)&&(!(a0==1)&&(!(a5==1)&&(((((a18==1)||!(a18==1))&&(input==5))&&(a27==1))&&(a4==1)))))&&(a12==11))&&(a3==7))&&(a20==1))&&!(a6==1))&&(a15==1))){ + a4 = 0; + a15 = 0; + a18 = 1; + a3 = 4; + a12 = 10; + a0 = 1; + a5 = 1; + a6 = 1; + return -1; + } else if(((a20==1)&&((((input==4)&&(((((!(a4==1)&&((!(a15==1)&&(((a18==1)&&!(a22==1))&&!(a5==1)))&&(a12==9)))&&(a3==8))&&!(a6==1))||(!(a6==1)&&((a3==8)&&((((!(a5==1)&&(!(a22==1)&&!(a18==1)))&&!(a15==1))&&(a12==9))&&!(a4==1)))))||(((a3==4)&&((((a15==1)&&((a5==1)&&((a22==1)&&(a18==1))))&&(a12==10))&&(a4==1)))&&(a6==1))))&&(a27==1))&&(a0==1)))){ + a6 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + a5 = 1; + a15 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if(((a12==8)&&((a22==1)&&((!(a0==1)&&((((((((a5==1)&&(input==4))&&!(a4==1))&&(a20==1))&&!(a18==1))&&!(a6==1))&&(a3==6))&&!(a15==1)))&&!(a27==1))))){ + a0 = 1; + a27 = 1; + a6 = 1; + a15 = 1; + a4 = 1; + a22 = 0; + a3 = 4; + return -1; + } else if((!(a6==1)&&(!(a27==1)&&((a20==1)&&((a3==5)&&((a12==12)&&(!(a5==1)&&((((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==4))&&(a0==1))&&(a15==1))&&!(a4==1))))))))){ + a27 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + a4 = 1; + a6 = 1; + a5 = 1; + return -1; + } else if((!(a5==1)&&(!(a4==1)&&((a12==10)&&((a20==1)&&(!(a27==1)&&(!(a0==1)&&((a15==1)&&(!(a6==1)&&((input==1)&&(((a3==7)&&((a18==1)&&(a22==1)))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==6)))))))))))))){ + if((a18==1)){ + a0 = 1; + a6 = 1; + a22 = 1; + a5 = 1; + a18 = 0; + a3 = 6; + a12 = 8; + a27 = 1; + }else{ + a3 = 8; + a27 = 1; + a12 = 8; + a22 = 1; + a5 = 1; + a18 = 1; + a4 = 1; + a0 = 1; + } + return -1; + } else if(((a3==8)&&(!(a15==1)&&((((((((a0==1)&&(!(a4==1)&&((input==3)&&!(a27==1))))&&!(a6==1))&&(a5==1))&&(a12==12))&&(a18==1))&&!(a22==1))&&(a20==1))))){ + a4 = 1; + a15 = 1; + a22 = 1; + a12 = 10; + a6 = 1; + a3 = 4; + return -1; + } else if(((((a22==1)&&(((((a15==1)&&((a18==1)&&(!(a27==1)&&(((input==3)&&(a4==1))&&(a12==8)))))&&!(a6==1))&&(a3==4))&&(a20==1)))&&!(a0==1))&&(a5==1))){ + a27 = 1; + a3 = 6; + a5 = 0; + a6 = 1; + return -1; + } else if(((((((((a3==6)&&(!(a6==1)&&((a4==1)&&(((input==4)&&!(a0==1))&&(a20==1)))))&&!(a18==1))&&(a12==9))&&(a27==1))&&!(a22==1))&&(a5==1))&&(a15==1))){ + a12 = 11; + a15 = 0; + a3 = 8; + a0 = 1; + a4 = 0; + a18 = 1; + return -1; + } else if(((a3==8)&&(!(a15==1)&&((a12==9)&&(!(a22==1)&&((a5==1)&&(!(a4==1)&&((a20==1)&&(!(a0==1)&&((a27==1)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a6==1)))))))))))){ + a12 = 11; + a18 = 1; + a3 = 6; + a0 = 1; + return 21; + } else if((((((a3==4)&&(!(a22==1)&&(!(a15==1)&&(((a27==1)&&(((((a18==1)||!(a18==1))&&(input==3))&&!(a0==1))&&(a6==1)))&&(a12==12)))))&&(a20==1))&&(a4==1))&&!(a5==1))){ + a5 = 1; + a0 = 1; + a18 = 1; + a15 = 1; + a3 = 5; + a12 = 8; + a22 = 1; + return 21; + } else if((((a5==1)&&(!(a15==1)&&(((a12==10)&&((((a27==1)&&(((input==3)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1))))&&(a6==1)))&&(a0==1))&&(a3==4)))&&(a20==1))))&&!(a4==1))){ + a4 = 1; + a18 = 0; + a12 = 8; + a3 = 8; + a22 = 1; + return 24; + } else if(((a0==1)&&((a12==10)&&((((a4==1)&&(((a27==1)&&((a20==1)&&(((((a22==1)&&!(a18==1))&&(a3==5))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5))))&&(input==2))))&&(a6==1)))&&(a15==1))&&(a5==1))))){ + a3 = 4; + a18 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if(((((!(a27==1)&&((a4==1)&&((((((((a3==5)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==5)))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==4))&&(a0==1))&&(a12==12))&&!(a5==1))))&&(a20==1))&&!(a15==1))&&(a6==1))){ + a6 = 0; + a18 = 0; + a12 = 10; + a22 = 0; + a3 = 7; + return 26; + } else if(((((a27==1)&&((!(a6==1)&&((!(a18==1)&&((a4==1)&&((a3==8)&&((a5==1)&&((a20==1)&&(input==1))))))&&!(a15==1)))&&(a0==1)))&&(a12==11))&&(a22==1))){ + a22 = 0; + a18 = 1; + a27 = 0; + a15 = 1; + a3 = 5; + return 21; + } else if(((a6==1)&&((a0==1)&&(!(a27==1)&&((((!(a5==1)&&((a12==9)&&((input==6)&&((((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a22==1)&&!(a18==1))))||((a3==7)&&((a18==1)&&(a22==1)))))))&&(a20==1))&&(a15==1))&&!(a4==1)))))){ + a15 = 0; + a22 = 1; + a12 = 11; + a18 = 0; + a6 = 0; + a3 = 6; + a5 = 1; + return 21; + } else if((((a15==1)&&(!(a6==1)&&((a12==9)&&((a5==1)&&(!(a27==1)&&((((((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))&&(input==4))&&(a20==1))&&(a4==1)))))))&&!(a0==1))){ + a27 = 1; + a22 = 0; + a18 = 1; + a6 = 1; + a0 = 1; + a12 = 8; + a3 = 8; + return 26; + } else if(((((((((a20==1)&&(!(a27==1)&&((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==6))&&(a5==1))))&&(a12==11))&&!(a15==1))&&!(a0==1))&&(a3==7))&&(a4==1))&&!(a6==1))){ + if((a3==4)){ + a0 = 1; + a22 = 1; + a3 = 5; + a12 = 8; + a15 = 1; + a18 = 1; + }else{ + a12 = 10; + a3 = 5; + a18 = 1; + a27 = 1; + a0 = 1; + a22 = 0; + a15 = 1; + a6 = 1; + } + return 21; + } else if((((a12==9)&&(!(a18==1)&&((a6==1)&&((a20==1)&&((a22==1)&&(!(a27==1)&&((a3==4)&&((a0==1)&&(!(a15==1)&&((input==6)&&!(a4==1)))))))))))&&!(a5==1))){ + a15 = 1; + a18 = 1; + a5 = 1; + a27 = 1; + a12 = 10; + a22 = 0; + return 21; + } else if(((a20==1)&&((a12==11)&&(!(a5==1)&&((a6==1)&&((a4==1)&&(((!(a27==1)&&((a3==6)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5))))&&(a15==1))&&(a0==1)))))))){ + a22 = 0; + a12 = 10; + a5 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((((a12==9)&&(!(a15==1)&&((a4==1)&&((a5==1)&&((a27==1)&&((a20==1)&&((((input==4)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&!(a6==1))&&!(a0==1))))))))&&(a3==7))){ + a15 = 1; + a12 = 12; + a0 = 1; + a18 = 1; + a22 = 1; + return 21; + } else if((((((a12==8)&&((a3==7)&&((a5==1)&&(((a4==1)&&(((!(a6==1)&&(input==2))&&(a20==1))&&(a15==1)))&&!(a22==1)))))&&!(a0==1))&&(a18==1))&&!(a27==1))){ + a4 = 0; + a5 = 0; + a6 = 1; + a15 = 0; + a12 = 10; + a3 = 6; + return 21; + } else if(((a12==9)&&(!(a6==1)&&(!(a27==1)&&(!(a18==1)&&(((a15==1)&&((a4==1)&&((((a3==4)&&((input==5)&&!(a22==1)))&&(a20==1))&&!(a5==1))))&&(a0==1))))))){ + if((a15==1)){ + a12 = 8; + a27 = 1; + a3 = 7; + a0 = 0; + }else{ + a4 = 0; + a12 = 12; + a27 = 1; + a5 = 1; + a6 = 1; + a3 = 6; + } + return 24; + } else if((!(a5==1)&&((((a12==10)&&(((a20==1)&&((input==6)&&((((((!(a22==1)&&!(a18==1))&&(a4==1))&&(a3==8))&&!(a6==1))||(((!(a4==1)&&((a22==1)&&(a18==1)))&&(a3==4))&&(a6==1)))||((a6==1)&&((((a22==1)&&!(a18==1))&&!(a4==1))&&(a3==4))))))&&!(a15==1)))&&!(a27==1))&&!(a0==1)))){ + a3 = 4; + a22 = 1; + a5 = 1; + a12 = 8; + a15 = 1; + a0 = 1; + a18 = 1; + a6 = 0; + a4 = 0; + a27 = 1; + return 21; + } else if(((a6==1)&&(((((a12==11)&&((a20==1)&&(!(a4==1)&&((((((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1))))||((!(a18==1)&&(a22==1))&&(a3==6)))&&(input==2))&&!(a27==1)))))&&!(a5==1))&&(a0==1))&&!(a15==1)))){ + a22 = 0; + a18 = 1; + a12 = 12; + a3 = 5; + a5 = 1; + a27 = 1; + return -1; + } else if((((a0==1)&&((a22==1)&&(!(a6==1)&&(!(a18==1)&&(!(a4==1)&&((a12==11)&&((a5==1)&&(((!(a27==1)&&(input==4))&&(a20==1))&&(a3==8)))))))))&&!(a15==1))){ + a15 = 1; + a12 = 12; + a18 = 1; + a27 = 1; + a3 = 5; + return 24; + } else if((((a20==1)&&(!(a4==1)&&(((((a18==1)&&((a6==1)&&(!(a22==1)&&((a12==11)&&((input==2)&&(a15==1))))))&&!(a0==1))&&(a3==8))&&!(a27==1))))&&!(a5==1))){ + if((a27==1)){ + a3 = 7; + a0 = 1; + a5 = 1; + a12 = 8; + a22 = 1; + a27 = 1; + a4 = 1; + }else{ + a0 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + a5 = 1; + a27 = 1; + a6 = 0; + } + return 26; + } else if((((a4==1)&&(!(a0==1)&&(((a12==9)&&((!(a27==1)&&(!(a18==1)&&((a3==6)&&((a20==1)&&((input==2)&&(a5==1))))))&&(a22==1)))&&!(a15==1))))&&(a6==1))){ + if((a12==11)){ + a3 = 8; + a15 = 1; + a4 = 0; + a27 = 1; + }else{ + a27 = 1; + a12 = 8; + a4 = 0; + a15 = 1; + a0 = 1; + a3 = 4; + } + return 21; + } else if((((((a20==1)&&((a12==12)&&(((a15==1)&&((a6==1)&&((input==2)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))||(((a22==1)&&!(a18==1))&&(a3==8))))))&&!(a27==1))))&&!(a4==1))&&!(a5==1))&&(a0==1))){ + if((a15==1)){ + a18 = 0; + a12 = 10; + a27 = 1; + a0 = 0; + a5 = 1; + a22 = 1; + a3 = 4; + }else{ + a6 = 0; + a22 = 0; + a27 = 1; + a15 = 0; + a18 = 0; + a3 = 6; + } + return 26; + } else if((!(a5==1)&&((((a3==8)&&(((((((a20==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a12==9))&&!(a4==1))&&(a6==1))&&(a0==1))&&!(a27==1)))&&!(a22==1))&&(a15==1)))){ + if((a12==8)){ + a6 = 0; + a18 = 1; + a22 = 1; + a5 = 1; + a27 = 1; + a0 = 0; + a12 = 11; + }else{ + a6 = 0; + a18 = 1; + a5 = 1; + a27 = 1; + a3 = 4; + a12 = 11; + a15 = 0; + } + return 24; + } else if(((a0==1)&&(((a12==10)&&(((((a5==1)&&(((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==6))&&!(a4==1))&&(a20==1)))&&(a3==4))&&(a6==1))&&(a15==1)))&&!(a27==1)))){ + a12 = 8; + a15 = 0; + a4 = 1; + a22 = 0; + a18 = 1; + return 26; + } else if(((((((a18==1)&&(((a12==11)&&((a3==6)&&((a15==1)&&(((input==5)&&(a5==1))&&!(a27==1)))))&&!(a4==1)))&&(a0==1))&&(a20==1))&&(a6==1))&&!(a22==1))){ + a15 = 0; + a3 = 4; + a27 = 1; + a22 = 1; + a6 = 0; + a18 = 0; + return -1; + } else if(((a5==1)&&(((a12==9)&&((a15==1)&&((a20==1)&&(!(a27==1)&&(!(a0==1)&&((input==4)&&((((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1))||(((a6==1)&&((!(a22==1)&&(a18==1))&&(a3==8)))||((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))))))))))&&!(a4==1)))){ + a6 = 1; + a15 = 0; + a18 = 1; + a22 = 1; + a3 = 4; + a27 = 1; + a12 = 11; + return -1; + } else if(((!(a22==1)&&((!(a15==1)&&(((a0==1)&&((a5==1)&&((a3==7)&&(!(a4==1)&&((a6==1)&&((a27==1)&&(input==5)))))))&&(a12==12)))&&(a20==1)))&&!(a18==1))){ + a12 = 10; + a22 = 1; + a15 = 1; + return -1; + } else if((((((a12==8)&&((((a15==1)&&(!(a18==1)&&((a20==1)&&(((a6==1)&&(input==5))&&!(a27==1)))))&&(a22==1))&&!(a5==1)))&&(a4==1))&&(a3==5))&&!(a0==1))){ + a5 = 1; + a4 = 0; + a22 = 0; + a0 = 1; + a12 = 12; + a18 = 1; + a3 = 7; + return -1; + } else if(((((a3==5)&&((!(a27==1)&&(!(a0==1)&&((!(a4==1)&&(!(a5==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==6))))&&(a20==1))))&&(a12==8)))&&(a6==1))&&(a15==1))){ + a18 = 0; + a27 = 1; + a4 = 1; + a0 = 1; + a3 = 6; + a5 = 1; + a6 = 0; + a22 = 1; + return 21; + } else if(((((((a12==11)&&(((((a20==1)&&((input==1)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&!(a4==1))&&(a5==1))&&(a15==1)))&&(a6==1))&&(a3==8))&&!(a0==1))&&(a27==1))){ + a18 = 0; + a4 = 1; + a3 = 6; + a12 = 10; + a6 = 0; + a0 = 1; + a22 = 0; + return 21; + } else if(((((a12==10)&&((a20==1)&&((a0==1)&&((a5==1)&&((((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==4))&&(a27==1))&&(a15==1))))))&&!(a4==1))&&!(a6==1))){ + a4 = 1; + a22 = 1; + a18 = 1; + a3 = 6; + a6 = 1; + return 21; + } else if((!(a0==1)&&((((a15==1)&&((((((input==1)&&((((a3==4)&&((a18==1)&&!(a22==1)))||((a3==4)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==5))))&&!(a4==1))&&(a12==11))&&!(a27==1))&&(a20==1)))&&!(a5==1))&&!(a6==1)))){ + a3 = 7; + a0 = 1; + a12 = 8; + a15 = 0; + a6 = 1; + a5 = 1; + a27 = 1; + a4 = 1; + a22 = 0; + a18 = 0; + return -1; + } else if((!(a15==1)&&(((((((a3==8)&&((!(a5==1)&&(!(a6==1)&&((a22==1)&&(input==1))))&&(a0==1)))&&(a12==11))&&(a27==1))&&!(a18==1))&&!(a4==1))&&(a20==1)))){ + a18 = 1; + a5 = 1; + a12 = 8; + a6 = 1; + a15 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if((!(a5==1)&&((a27==1)&&((a12==10)&&((!(a6==1)&&((!(a0==1)&&((!(a4==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==1)))&&(a3==6)))&&(a20==1)))&&!(a15==1)))))){ + a18 = 1; + a6 = 1; + a22 = 1; + a5 = 1; + a15 = 1; + a3 = 4; + a0 = 1; + a12 = 8; + a4 = 1; + return -1; + } else if(((((((a20==1)&&((((((((a18==1)&&(a22==1))&&!(a15==1))&&(a4==1))&&(a3==4))&&(a6==1))||((!(a6==1)&&((a3==8)&&(!(a4==1)&&((a15==1)&&((a18==1)&&!(a22==1))))))||(!(a6==1)&&((a3==8)&&(((!(a18==1)&&!(a22==1))&&(a15==1))&&!(a4==1))))))&&(input==4)))&&(a5==1))&&!(a0==1))&&(a12==9))&&!(a27==1))){ + a6 = 1; + a4 = 1; + a15 = 1; + a3 = 4; + a22 = 0; + a18 = 0; + a12 = 12; + return -1; + } else if(((a6==1)&&((((a20==1)&&(((a12==11)&&(((a0==1)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==3)))&&(a27==1)))&&(a5==1)))&&(a15==1))&&!(a4==1)))){ + a3 = 4; + a12 = 8; + a4 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if(((a20==1)&&((a22==1)&&(((!(a27==1)&&((a15==1)&&((((((a0==1)&&(input==2))&&!(a18==1))&&!(a4==1))&&(a12==11))&&(a3==5))))&&(a5==1))&&(a6==1))))){ + a4 = 1; + a27 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + return -1; + } else if((((((a20==1)&&((!(a0==1)&&(!(a4==1)&&(!(a15==1)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==4)))))&&(a12==12)))&&(a6==1))&&!(a5==1))&&(a27==1))){ + if((a0==1)){ + a12 = 11; + a15 = 1; + a6 = 0; + a22 = 0; + a5 = 1; + a18 = 0; + a3 = 7; + a4 = 1; + }else{ + a5 = 1; + a22 = 0; + a3 = 5; + a18 = 0; + a0 = 1; + a6 = 0; + } + return 21; + } else if(((a5==1)&&((!(a0==1)&&((a12==9)&&((a6==1)&&(((((a20==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&(a27==1)))&&!(a15==1))&&(a4==1))&&(a22==1)))))&&(a3==4)))){ + a5 = 0; + a4 = 0; + a3 = 7; + a0 = 1; + a12 = 10; + a18 = 1; + return 21; + } else if((!(a4==1)&&((a20==1)&&((a18==1)&&((a3==4)&&(!(a27==1)&&(!(a5==1)&&((!(a0==1)&&(((a12==9)&&((input==6)&&!(a6==1)))&&(a22==1)))&&(a15==1))))))))){ + a18 = 0; + a22 = 0; + a15 = 0; + a0 = 1; + a12 = 11; + a27 = 1; + a5 = 1; + a3 = 8; + return 21; + } else if(((((((a20==1)&&((a27==1)&&((!(a5==1)&&((a12==8)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==3))))&&!(a0==1))))&&!(a15==1))&&!(a4==1))&&(a3==6))&&(a6==1))){ + a22 = 1; + a0 = 1; + a5 = 1; + a4 = 1; + a12 = 12; + a3 = 5; + a15 = 1; + a18 = 1; + return 21; + } else if(((a12==8)&&(((a6==1)&&((a4==1)&&((a20==1)&&(!(a27==1)&&((a3==4)&&(!(a5==1)&&(!(a0==1)&&((input==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))))))))))&&!(a15==1)))){ + a18 = 1; + a22 = 0; + a3 = 7; + a5 = 1; + a15 = 1; + a12 = 11; + return 21; + } else if((((a5==1)&&(((a3==8)&&(!(a0==1)&&((a20==1)&&((((((input==6)&&((a18==1)||!(a18==1)))&&(a4==1))&&(a22==1))&&!(a27==1))&&(a15==1)))))&&(a6==1)))&&(a12==9))){ + a3 = 5; + a6 = 0; + a18 = 0; + a12 = 8; + a27 = 1; + return -1; + } else if(((!(a27==1)&&((!(a6==1)&&(((a12==12)&&((!(a15==1)&&((input==6)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8)))||((!(a18==1)&&(a22==1))&&(a3==8)))))&&(a0==1)))&&(a20==1)))&&(a4==1)))&&!(a5==1))){ + a18 = 1; + a22 = 1; + a15 = 1; + a5 = 1; + a27 = 1; + a6 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if(((((a15==1)&&((((((((input==6)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))&&(a6==1))&&(a12==10))&&(a3==5))&&(a20==1))&&(a27==1))&&!(a5==1)))&&(a4==1))&&!(a0==1))){ + a12 = 9; + a4 = 0; + a22 = 1; + a15 = 0; + a0 = 1; + a6 = 0; + a18 = 0; + a27 = 0; + return 21; + } else if(((!(a15==1)&&((!(a0==1)&&((a3==7)&&(((!(a5==1)&&((a27==1)&&((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))))&&!(a4==1))&&(a12==10))))&&(a6==1)))&&(a20==1))){ + a4 = 1; + a15 = 1; + a3 = 6; + a18 = 1; + a6 = 0; + a22 = 1; + a12 = 11; + a0 = 1; + return 24; + } else if(((((((((a20==1)&&(((a5==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==3)))&&(a15==1)))&&!(a0==1))&&(a12==10))&&(a3==7))&&!(a6==1))&&!(a4==1))&&!(a27==1))){ + a3 = 4; + a0 = 1; + a22 = 1; + a12 = 8; + a27 = 1; + a18 = 1; + return -1; + } else if(((!(a6==1)&&(!(a4==1)&&(((a15==1)&&((a27==1)&&(((a0==1)&&((((a20==1)&&(input==2))&&(a22==1))&&(a12==12)))&&(a18==1))))&&(a3==7))))&&!(a5==1))){ + a5 = 1; + a12 = 8; + a3 = 4; + a6 = 1; + a4 = 1; + return -1; + } else if(((a6==1)&&((a20==1)&&((((a3==8)&&((((!(a4==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&(a27==1)))&&(a22==1))&&(a0==1))&&!(a5==1)))&&(a15==1))&&(a12==12))))){ + a22 = 0; + a12 = 11; + a5 = 1; + a27 = 0; + a6 = 0; + a3 = 6; + a15 = 0; + a18 = 1; + return 24; + } else if(((a0==1)&&((a4==1)&&((!(a6==1)&&((((a27==1)&&((a3==8)&&((a15==1)&&((a12==12)&&((input==2)&&((a18==1)||!(a18==1)))))))&&(a20==1))&&(a5==1)))&&!(a22==1))))){ + a3 = 4; + a18 = 1; + a12 = 8; + a6 = 1; + a22 = 1; + return -1; + } else if((!(a5==1)&&(((a27==1)&&((((!(a0==1)&&(((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==6))&&!(a6==1))&&!(a4==1)))&&(a20==1))&&(a3==6))&&(a15==1)))&&(a12==12)))){ + a22 = 1; + a0 = 1; + a6 = 1; + a4 = 1; + a12 = 10; + a18 = 0; + a3 = 8; + return 21; + } else if((((((a20==1)&&((!(a0==1)&&((a3==7)&&(((((input==6)&&((a18==1)||!(a18==1)))&&!(a4==1))&&!(a22==1))&&!(a15==1))))&&(a5==1)))&&(a6==1))&&(a12==10))&&!(a27==1))){ + a0 = 1; + a22 = 1; + a15 = 1; + a6 = 0; + a18 = 1; + a4 = 1; + a12 = 8; + a27 = 1; + return 21; + } else if(((((a20==1)&&(!(a4==1)&&((a12==10)&&((a15==1)&&(((((((a22==1)&&(a18==1))&&(a3==8))||(((!(a22==1)&&(a18==1))&&(a3==7))||((a3==7)&&(!(a18==1)&&!(a22==1)))))&&(input==1))&&(a6==1))&&(a5==1))))))&&(a0==1))&&!(a27==1))){ + if((a3==5)){ + a27 = 1; + a4 = 1; + a12 = 8; + a3 = 4; + a0 = 0; + a22 = 1; + a18 = 1; + }else{ + a12 = 8; + a22 = 1; + a3 = 5; + a18 = 1; + a6 = 0; + } + return -1; + } else if((((a22==1)&&(((((a6==1)&&(((a12==10)&&(((a27==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&(a0==1)))&&(a4==1)))&&(a15==1))&&(a20==1))&&!(a5==1)))&&(a3==8))){ + a6 = 0; + a18 = 1; + a15 = 0; + a22 = 0; + a5 = 1; + a4 = 0; + return -1; + } else if(((a20==1)&&((a12==8)&&((!(a4==1)&&((!(a5==1)&&(((a3==6)&&((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==3))&&!(a6==1)))&&!(a0==1)))&&!(a27==1)))&&(a15==1))))){ + if((a27==1)){ + a6 = 1; + a5 = 1; + a22 = 1; + a12 = 9; + a3 = 5; + a0 = 1; + a18 = 0; + }else{ + a18 = 1; + a12 = 9; + a22 = 1; + a6 = 1; + } + return 26; + } else if(((a12==12)&&((a20==1)&&((a22==1)&&(((((((a15==1)&&(((a3==4)&&(input==3))&&(a6==1)))&&!(a27==1))&&(a4==1))&&(a5==1))&&(a18==1))&&!(a0==1)))))){ + a12 = 9; + a22 = 0; + a5 = 0; + return -1; + } else if((!(a6==1)&&(((a22==1)&&((a5==1)&&(((a4==1)&&(((a27==1)&&((a18==1)&&((!(a0==1)&&(input==6))&&(a3==8))))&&(a12==12)))&&(a15==1))))&&(a20==1)))){ + a6 = 1; + a12 = 11; + a22 = 0; + a18 = 0; + a3 = 5; + a0 = 1; + return 26; + } else if(((a20==1)&&(!(a22==1)&&(((((a3==4)&&(((!(a4==1)&&(((input==3)&&(a12==8))&&!(a0==1)))&&(a27==1))&&!(a6==1)))&&!(a18==1))&&(a5==1))&&!(a15==1))))){ + a18 = 1; + a6 = 1; + a3 = 8; + a22 = 1; + a4 = 1; + a12 = 9; + return -1; + } else if(((a12==8)&&(((a20==1)&&((a3==4)&&((a6==1)&&(((a27==1)&&((a5==1)&&(!(a15==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==1)))))&&!(a4==1)))))&&!(a0==1)))){ + if((a4==1)){ + a18 = 0; + a6 = 0; + a12 = 11; + a22 = 0; + }else{ + a0 = 1; + a3 = 7; + a18 = 0; + a5 = 0; + a4 = 1; + a15 = 1; + a12 = 12; + a22 = 1; + } + return -1; + } else if(((a20==1)&&(((a3==7)&&(!(a6==1)&&(!(a0==1)&&((a15==1)&&(!(a5==1)&&((((input==5)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a12==9))&&(a27==1)))))))&&!(a4==1)))){ + a4 = 1; + a22 = 1; + a27 = 0; + a0 = 1; + a3 = 4; + a18 = 0; + a5 = 1; + return -1; + } else if(((!(a5==1)&&((((!(a22==1)&&(!(a27==1)&&((((a6==1)&&((a12==12)&&(input==3)))&&!(a4==1))&&(a20==1))))&&(a18==1))&&(a15==1))&&(a0==1)))&&(a3==5))){ + a22 = 1; + a12 = 8; + a27 = 1; + a5 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((a12==9)&&(((a6==1)&&(!(a4==1)&&((a27==1)&&((a3==5)&&(((a5==1)&&(!(a0==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==6))))&&(a20==1))))))&&(a15==1)))){ + a18 = 1; + a12 = 10; + a22 = 0; + a0 = 1; + a3 = 6; + a15 = 0; + a4 = 1; + return -1; + } else if(((((a20==1)&&((!(a0==1)&&(((a4==1)&&((a5==1)&&((a6==1)&&((a27==1)&&((input==4)&&((a18==1)||!(a18==1)))))))&&(a22==1)))&&!(a15==1)))&&(a3==7))&&(a12==8))){ + a18 = 1; + a0 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if((((a20==1)&&((((a15==1)&&((a22==1)&&((!(a6==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&!(a5==1))&&(a4==1)))&&(a12==10))))&&(a3==8))&&!(a0==1)))&&(a27==1))){ + if((a4==1)){ + a18 = 0; + a3 = 6; + a15 = 0; + a12 = 11; + }else{ + a4 = 0; + a3 = 7; + a6 = 1; + a0 = 1; + a18 = 0; + } + return 21; + } else if((((a12==12)&&((a0==1)&&(((((a5==1)&&((((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==1))&&(a27==1))&&(a6==1)))&&(a3==8))&&(a20==1))&&(a4==1))))&&!(a15==1))){ + a18 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + a15 = 1; + return -1; + } else if(((a20==1)&&((!(a6==1)&&(((a5==1)&&((a0==1)&&(!(a4==1)&&(!(a27==1)&&(((a12==11)&&((input==3)&&(a22==1)))&&!(a15==1))))))&&!(a18==1)))&&(a3==7)))){ + a3 = 4; + a18 = 1; + a12 = 8; + a15 = 1; + a6 = 1; + a27 = 1; + a4 = 1; + return -1; + } else if(((a20==1)&&((!(a27==1)&&((a6==1)&&(!(a15==1)&&((a4==1)&&(((!(a5==1)&&((input==6)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))))&&!(a0==1))&&(a3==5))))))&&(a12==11)))){ + a6 = 0; + a27 = 1; + a3 = 7; + a4 = 0; + a22 = 1; + a18 = 1; + a12 = 9; + a5 = 1; + return -1; + } else if((!(a5==1)&&((!(a15==1)&&((a12==9)&&(((a6==1)&&(!(a27==1)&&((a4==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==1))&&(a3==6)))))&&(a20==1))))&&!(a0==1)))){ + if((a12==11)){ + a4 = 0; + a18 = 0; + a27 = 1; + a0 = 1; + a22 = 0; + a5 = 1; + a12 = 12; + }else{ + a27 = 1; + a4 = 0; + a0 = 1; + a12 = 12; + a3 = 5; + a18 = 1; + a22 = 1; + } + return -1; + } else if((((a4==1)&&(!(a15==1)&&((!(a0==1)&&((!(a18==1)&&(((a5==1)&&(((a27==1)&&(input==5))&&(a3==4)))&&!(a6==1)))&&(a20==1)))&&(a12==10))))&&(a22==1))){ + a6 = 1; + a0 = 1; + a15 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if((((a3==6)&&(!(a6==1)&&(((a20==1)&&(((a27==1)&&(((a4==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==2)))&&(a15==1)))&&!(a0==1)))&&(a12==11))))&&!(a5==1))){ + a4 = 0; + a5 = 1; + a12 = 8; + a22 = 0; + a18 = 1; + a3 = 8; + a27 = 0; + a0 = 1; + return 21; + } else if((((a12==8)&&((!(a0==1)&&((!(a5==1)&&(((a27==1)&&((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==1)))&&(a4==1)))&&(a6==1)))&&!(a15==1)))&&(a20==1))){ + a0 = 1; + a4 = 0; + a12 = 11; + a18 = 1; + a22 = 1; + a3 = 4; + a5 = 1; + return -1; + } else if(((a5==1)&&((a6==1)&&((((a0==1)&&(((!(a15==1)&&((a3==8)&&((a20==1)&&((input==1)&&((a18==1)||!(a18==1))))))&&(a27==1))&&(a4==1)))&&(a22==1))&&(a12==9))))){ + a12 = 8; + a3 = 4; + a18 = 1; + a15 = 1; + return -1; + } else if(((a20==1)&&((a3==6)&&((((((((a27==1)&&((input==5)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))))&&(a15==1))&&!(a0==1))&&!(a5==1))&&(a12==8))&&!(a6==1))&&(a4==1))))){ + a0 = 1; + a22 = 0; + a27 = 0; + a18 = 0; + a3 = 4; + a4 = 0; + return -1; + } else if((!(a6==1)&&(!(a15==1)&&(((a20==1)&&(!(a4==1)&&(((a5==1)&&((a12==12)&&(!(a0==1)&&(!(a22==1)&&((a27==1)&&(input==6))))))&&(a18==1))))&&(a3==6))))){ + if((a12==9)){ + a5 = 0; + a15 = 1; + a3 = 4; + a12 = 9; + a27 = 0; + a6 = 1; + }else{ + a15 = 1; + a6 = 1; + a0 = 1; + a18 = 0; + a12 = 8; + a3 = 4; + } + return -1; + } else if((!(a5==1)&&((a15==1)&&((a3==6)&&(((a0==1)&&(!(a27==1)&&((a20==1)&&(((a6==1)&&((input==2)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a12==11)))))&&(a4==1)))))){ + if((a3==5)){ + a18 = 0; + a4 = 0; + a27 = 1; + a5 = 1; + a0 = 0; + a22 = 1; + }else{ + a22 = 0; + a18 = 0; + a6 = 0; + a3 = 7; + a12 = 9; + a15 = 0; + } + return -1; + } else if(((a22==1)&&((a5==1)&&((((!(a0==1)&&((a27==1)&&((((a4==1)&&((a6==1)&&(input==1)))&&!(a18==1))&&(a12==10))))&&(a20==1))&&(a15==1))&&(a3==4))))){ + a12 = 8; + a0 = 1; + a18 = 1; + return -1; + } else if((((a0==1)&&(!(a6==1)&&((!(a27==1)&&((a20==1)&&((((input==6)&&(((a3==7)&&((a22==1)&&!(a18==1)))||(((!(a18==1)&&!(a22==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1))))))&&(a12==12))&&(a4==1))))&&(a15==1))))&&(a5==1))){ + a4 = 0; + a22 = 0; + a18 = 1; + a27 = 1; + a3 = 4; + a12 = 8; + return 26; + } else if((!(a0==1)&&(((a20==1)&&(!(a27==1)&&(((((((((a22==1)&&(a18==1))&&!(a5==1))&&(a15==1))&&(a4==1))&&(a3==4))&&(a6==1))||((((!(a4==1)&&(((a5==1)&&((a18==1)&&!(a22==1)))&&!(a15==1)))&&(a3==8))&&!(a6==1))||(!(a6==1)&&(((((!(a18==1)&&!(a22==1))&&(a5==1))&&!(a15==1))&&!(a4==1))&&(a3==8)))))&&(input==4))))&&(a12==8)))){ + if((a5==1)){ + a22 = 1; + a15 = 1; + a5 = 1; + a6 = 1; + a27 = 1; + a3 = 6; + a0 = 1; + a4 = 0; + a18 = 1; + }else{ + a6 = 1; + a5 = 1; + a3 = 6; + a22 = 0; + a0 = 1; + a4 = 0; + a12 = 10; + a18 = 0; + a15 = 1; + } + return -1; + } else if((((!(a22==1)&&((a20==1)&&(!(a5==1)&&(!(a6==1)&&((a0==1)&&((((((a18==1)||!(a18==1))&&(input==6))&&(a27==1))&&(a3==8))&&(a12==11)))))))&&(a15==1))&&!(a4==1))){ + a22 = 1; + a5 = 1; + a4 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a6 = 1; + return -1; + } else if((((a0==1)&&(!(a4==1)&&((a20==1)&&(((a22==1)&&((((((input==5)&&(a5==1))&&(a27==1))&&!(a18==1))&&(a3==7))&&!(a15==1)))&&(a12==8)))))&&(a6==1))){ + a12 = 9; + a3 = 6; + a4 = 1; + return 26; + } else if((((((a3==4)&&(((((a27==1)&&((!(a6==1)&&((input==6)&&(a15==1)))&&!(a4==1)))&&(a12==9))&&!(a18==1))&&(a5==1)))&&(a20==1))&&(a0==1))&&(a22==1))){ + a3 = 7; + a6 = 1; + a18 = 1; + a12 = 10; + a22 = 0; + return 26; + } else if(((!(a6==1)&&(((!(a22==1)&&((a27==1)&&(((a4==1)&&((((input==4)&&((a18==1)||!(a18==1)))&&(a12==12))&&(a15==1)))&&(a3==5))))&&(a5==1))&&(a20==1)))&&!(a0==1))){ + a6 = 1; + a18 = 1; + a22 = 1; + a0 = 1; + a3 = 4; + a12 = 8; + return -1; + } else if((!(a6==1)&&(((((a12==9)&&((a0==1)&&((!(a27==1)&&((a3==6)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==5))))&&!(a15==1))))&&!(a4==1))&&(a5==1))&&(a20==1)))){ + a12 = 8; + a22 = 1; + a3 = 4; + a4 = 1; + a15 = 1; + a27 = 1; + a18 = 1; + a6 = 1; + return -1; + } else if(((a20==1)&&((a15==1)&&(((a4==1)&&((((a5==1)&&((((a6==1)&&((!(a18==1)&&!(a22==1))&&(a3==8)))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1)))&&(input==3)))&&(a12==9))&&(a27==1)))&&(a0==1))))){ + a18 = 0; + a6 = 1; + a3 = 8; + a22 = 1; + a12 = 12; + return 26; + } else if(((a20==1)&&(!(a6==1)&&(!(a0==1)&&(((((a15==1)&&((!(a4==1)&&(((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1)))&&(input==1)))&&!(a5==1)))&&(a3==4))&&(a12==12))&&(a27==1)))))){ + a6 = 1; + a5 = 1; + a18 = 0; + a15 = 0; + a4 = 1; + a12 = 11; + a22 = 0; + return 21; + } else if(((!(a5==1)&&((((((a27==1)&&((a6==1)&&(((input==2)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a0==1))))&&(a3==7))&&(a12==11))&&(a20==1))&&!(a4==1)))&&!(a15==1))){ + if((a6==1)){ + a22 = 1; + a0 = 0; + a5 = 1; + a3 = 8; + a15 = 1; + a12 = 8; + a18 = 0; + }else{ + a12 = 10; + a22 = 0; + a18 = 1; + a6 = 0; + a15 = 1; + } + return -1; + } else if(((a15==1)&&((a5==1)&&((((((a27==1)&&((a20==1)&&((a4==1)&&((input==3)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))))))&&(a3==8))&&(a6==1))&&!(a0==1))&&(a12==10))))){ + a6 = 0; + a12 = 12; + a15 = 0; + a22 = 0; + a3 = 6; + a18 = 0; + a0 = 1; + return 24; + } else if(((a3==4)&&((a12==9)&&(!(a6==1)&&((a20==1)&&((!(a0==1)&&((a18==1)&&(!(a27==1)&&((((a15==1)&&(input==1))&&!(a4==1))&&(a22==1)))))&&!(a5==1))))))){ + if((a5==1)){ + a3 = 5; + a18 = 0; + a12 = 12; + a4 = 1; + a15 = 0; + a27 = 1; + }else{ + a27 = 1; + a15 = 0; + a0 = 1; + a12 = 10; + a4 = 1; + a22 = 0; + a3 = 6; + a6 = 1; + a5 = 1; + } + return -1; + } else if(((a6==1)&&((((a12==11)&&(((!(a27==1)&&((a5==1)&&(((input==2)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&!(a4==1))))&&(a15==1))&&(a20==1)))&&(a3==8))&&!(a0==1)))){ + a5 = 0; + a18 = 0; + a6 = 0; + a0 = 1; + a4 = 1; + a3 = 4; + a15 = 0; + a22 = 0; + return 24; + } else if((((((a4==1)&&(!(a5==1)&&(!(a0==1)&&((a12==8)&&(((a27==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1)))&&(a6==1))))))&&(a15==1))&&(a3==6))&&(a20==1))){ + a27 = 0; + a22 = 0; + a6 = 0; + a0 = 1; + a18 = 0; + a12 = 11; + a3 = 4; + return 26; + } else if(((!(a15==1)&&(!(a0==1)&&((a20==1)&&((a12==9)&&(!(a27==1)&&((a6==1)&&((a5==1)&&(!(a22==1)&&((a3==4)&&(((a18==1)||!(a18==1))&&(input==6)))))))))))&&(a4==1))){ + a18 = 1; + a15 = 1; + a27 = 1; + a12 = 8; + a3 = 7; + a0 = 1; + return -1; + } else if(((a0==1)&&(((!(a15==1)&&(((a12==11)&&(!(a5==1)&&(((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==6))&&!(a6==1))))&&(a20==1)))&&!(a4==1))&&(a27==1)))){ + a3 = 8; + a18 = 1; + a22 = 1; + a12 = 10; + a15 = 1; + a4 = 1; + return -1; + } else if((((a5==1)&&(!(a6==1)&&(((!(a18==1)&&((a27==1)&&((a3==7)&&((((input==4)&&(a20==1))&&!(a0==1))&&!(a15==1)))))&&(a12==12))&&(a4==1))))&&!(a22==1))){ + a4 = 0; + a12 = 8; + a6 = 1; + a0 = 1; + a18 = 1; + a22 = 1; + a15 = 1; + a3 = 5; + return -1; + } else if(((a15==1)&&((a6==1)&&((a12==11)&&(((a3==6)&&((((a5==1)&&((a4==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==5))))&&(a0==1))&&(a20==1)))&&(a27==1)))))){ + a3 = 4; + a18 = 1; + a12 = 10; + a22 = 0; + a6 = 0; + a5 = 0; + return -1; + } else if(((((((!(a5==1)&&((((((a20==1)&&(input==4))&&!(a4==1))&&(a15==1))&&!(a18==1))&&(a0==1)))&&(a3==5))&&(a12==8))&&(a6==1))&&!(a27==1))&&(a22==1))){ + a18 = 1; + a5 = 1; + a27 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((((a12==8)&&(!(a5==1)&&(!(a18==1)&&((a15==1)&&(((a3==8)&&(((a20==1)&&((input==2)&&!(a6==1)))&&(a27==1)))&&!(a22==1))))))&&!(a0==1))&&(a4==1))){ + a15 = 0; + a27 = 0; + a18 = 1; + a0 = 1; + a12 = 11; + a6 = 1; + return 26; + } else if(((((((((a15==1)&&(((a20==1)&&(((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==5)))&&(a27==1)))&&!(a0==1))&&(a6==1))&&(a12==11))&&!(a5==1))&&(a3==7))&&!(a4==1))){ + a12 = 10; + a18 = 0; + a6 = 0; + a0 = 1; + a22 = 0; + a15 = 0; + a4 = 1; + a3 = 4; + return -1; + } else if((!(a15==1)&&((a0==1)&&((a12==8)&&((a5==1)&&((a6==1)&&((a4==1)&&((((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==2))&&(a20==1))&&(a27==1))))))))){ + a22 = 0; + a3 = 7; + a4 = 0; + a6 = 0; + a18 = 0; + return 21; + } else if(((((a12==9)&&(!(a27==1)&&(((a6==1)&&(!(a15==1)&&((((((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a22==1)&&(a18==1))))||((a3==6)&&((a22==1)&&!(a18==1))))&&(input==5))&&(a5==1))))&&!(a4==1))))&&(a20==1))&&!(a0==1))){ + if((a3==4)){ + a22 = 1; + a0 = 1; + a4 = 1; + a27 = 1; + a18 = 1; + a3 = 8; + a12 = 8; + a15 = 1; + }else{ + a18 = 0; + a3 = 6; + a15 = 1; + a4 = 1; + a6 = 0; + a22 = 0; + a12 = 8; + a27 = 1; + a0 = 1; + } + return 24; + } else if((((!(a15==1)&&(!(a6==1)&&((a20==1)&&((a18==1)&&(((a22==1)&&((((input==3)&&(a5==1))&&(a12==12))&&!(a4==1)))&&(a27==1))))))&&!(a0==1))&&(a3==6))){ + a12 = 11; + a15 = 1; + a22 = 0; + a3 = 8; + return -1; + } else if((!(a15==1)&&((!(a4==1)&&((((a3==6)&&((!(a18==1)&&((a12==8)&&(((a22==1)&&(input==4))&&(a6==1))))&&!(a0==1)))&&(a20==1))&&(a27==1)))&&(a5==1)))){ + a18 = 1; + a3 = 4; + a0 = 1; + a15 = 1; + a4 = 1; + return -1; + } else if((((a0==1)&&(((((a5==1)&&(!(a4==1)&&((a18==1)&&(!(a15==1)&&((a22==1)&&((a6==1)&&(input==3)))))))&&(a27==1))&&(a12==9))&&(a3==5)))&&(a20==1))){ + a3 = 6; + a12 = 11; + a0 = 0; + return 21; + } else if((((a12==8)&&((a20==1)&&((a6==1)&&((a3==7)&&(((a4==1)&&(!(a15==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5))&&!(a0==1))))&&(a5==1))))))&&!(a27==1))){ + a18 = 0; + a4 = 0; + a5 = 0; + a0 = 1; + a3 = 6; + a22 = 0; + a15 = 1; + return 21; + } else if((!(a5==1)&&(((((a20==1)&&(((!(a0==1)&&((((input==4)&&(a6==1))&&!(a18==1))&&(a4==1)))&&!(a22==1))&&(a3==4)))&&!(a27==1))&&(a12==8))&&(a15==1)))){ + a4 = 0; + a27 = 1; + a5 = 1; + a3 = 5; + a12 = 11; + a6 = 0; + a15 = 0; + return 21; + } else if((((((a6==1)&&((a3==4)&&((((!(a0==1)&&(!(a18==1)&&(!(a15==1)&&(input==3))))&&(a20==1))&&(a27==1))&&(a12==10))))&&(a22==1))&&!(a5==1))&&(a4==1))){ + a12 = 8; + a18 = 1; + a0 = 1; + a5 = 1; + a15 = 1; + return -1; + } else if(((a0==1)&&(((((a12==12)&&(!(a5==1)&&(!(a4==1)&&((a15==1)&&(((((a18==1)||!(a18==1))&&(input==2))&&(a3==4))&&!(a6==1))))))&&(a22==1))&&!(a27==1))&&(a20==1)))){ + a15 = 0; + a18 = 0; + a3 = 5; + a22 = 0; + a12 = 9; + a27 = 1; + return 21; + } else if((((a15==1)&&(((a3==7)&&((!(a6==1)&&((a12==11)&&(((a4==1)&&((a20==1)&&(((a18==1)||!(a18==1))&&(input==2))))&&(a27==1))))&&(a22==1)))&&!(a0==1)))&&!(a5==1))){ + a15 = 0; + a4 = 0; + a18 = 0; + a6 = 1; + a3 = 8; + a12 = 10; + a0 = 1; + a5 = 1; + return -1; + } else if((((a20==1)&&(((a15==1)&&(((a12==8)&&((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5))&&(a5==1))&&(a3==5))&&!(a4==1)))&&(a27==1)))&&!(a0==1)))&&!(a6==1))){ + a15 = 0; + a4 = 1; + a5 = 0; + a18 = 1; + a22 = 0; + a0 = 1; + a12 = 11; + a3 = 6; + return 21; + } else if(((a6==1)&&((a3==4)&&((!(a15==1)&&((a5==1)&&((((a12==11)&&((a20==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==5))))&&!(a27==1))&&!(a0==1))))&&(a4==1))))){ + if((a12==10)){ + a12 = 8; + a27 = 1; + a4 = 0; + a3 = 6; + a5 = 0; + a18 = 1; + a22 = 1; + a0 = 1; + }else{ + a12 = 9; + a27 = 1; + a22 = 1; + a5 = 0; + a3 = 7; + a0 = 1; + a18 = 1; + } + return 21; + } else if((!(a22==1)&&(((a5==1)&&((a12==12)&&((a15==1)&&((a6==1)&&((a20==1)&&((((((a18==1)||!(a18==1))&&(input==2))&&(a3==8))&&(a0==1))&&!(a4==1)))))))&&(a27==1)))){ + a3 = 4; + a0 = 0; + a18 = 1; + a12 = 8; + a15 = 0; + a22 = 1; + a5 = 0; + return -1; + } else if(((a12==8)&&(!(a4==1)&&(!(a18==1)&&((a3==8)&&(((a0==1)&&(!(a27==1)&&(!(a22==1)&&(!(a15==1)&&(((input==2)&&!(a6==1))&&(a20==1))))))&&!(a5==1))))))){ + a4 = 1; + a22 = 1; + a3 = 4; + a18 = 1; + a5 = 1; + a6 = 1; + a15 = 1; + a27 = 1; + return -1; + } else if((!(a6==1)&&(!(a4==1)&&((!(a5==1)&&(((a20==1)&&((((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==1))&&(a12==9))&&!(a27==1))&&(a3==6)))&&!(a0==1)))&&!(a15==1))))){ + a3 = 8; + a27 = 1; + a6 = 1; + a22 = 0; + a15 = 1; + a0 = 1; + a18 = 0; + a12 = 8; + a5 = 1; + return 21; + } else if(((a5==1)&&(!(a6==1)&&((a3==5)&&(!(a4==1)&&(((((!(a27==1)&&((input==4)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a20==1))&&!(a15==1))&&(a12==11))&&(a0==1))))))){ + a22 = 0; + a18 = 1; + a4 = 1; + a6 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if((!(a22==1)&&(!(a5==1)&&((((a12==11)&&(((!(a18==1)&&((((input==2)&&(a6==1))&&(a0==1))&&(a4==1)))&&(a20==1))&&(a3==6)))&&!(a27==1))&&!(a15==1))))){ + if((a18==1)){ + a18 = 1; + a5 = 1; + a27 = 1; + a12 = 10; + a4 = 0; + a0 = 0; + }else{ + a0 = 0; + a15 = 1; + a3 = 8; + a27 = 1; + a18 = 1; + } + return 26; + } else if(((a5==1)&&(((!(a27==1)&&(((((((a3==5)&&((a20==1)&&(input==4)))&&(a15==1))&&(a12==11))&&!(a0==1))&&(a4==1))&&!(a22==1)))&&(a6==1))&&(a18==1)))){ + a3 = 6; + a22 = 1; + a27 = 1; + a4 = 0; + a18 = 0; + a0 = 1; + a12 = 8; + return 21; + } else if(((a20==1)&&((a15==1)&&(!(a4==1)&&((!(a0==1)&&((a27==1)&&((((input==2)&&(((!(a18==1)&&(a22==1))&&(a3==7))||(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1))))))&&(a12==8))&&!(a5==1))))&&(a6==1)))))){ + a3 = 4; + a4 = 1; + a22 = 1; + a18 = 1; + a5 = 1; + a0 = 1; + return -1; + } else if(((!(a0==1)&&(!(a27==1)&&((a20==1)&&((a12==8)&&((a3==5)&&((a5==1)&&((((!(a15==1)&&(input==2))&&(a6==1))&&!(a4==1))&&(a18==1))))))))&&!(a22==1))){ + if((a12==12)){ + a27 = 1; + a18 = 0; + a12 = 12; + a4 = 1; + a6 = 0; + }else{ + a5 = 0; + a27 = 1; + a6 = 0; + a3 = 6; + a18 = 0; + a15 = 1; + a12 = 10; + a0 = 1; + } + return -1; + } else if(((a20==1)&&((((((a5==1)&&((a4==1)&&(((a22==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a15==1)))&&!(a27==1))))&&(a3==4))&&(a6==1))&&(a0==1))&&(a12==10)))){ + a18 = 0; + a3 = 6; + a27 = 1; + a6 = 0; + a22 = 0; + return 21; + } else if(((((a4==1)&&((a0==1)&&((((a20==1)&&((a12==9)&&(((input==2)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&(a15==1))))&&(a3==5))&&(a5==1))))&&!(a27==1))&&(a6==1))){ + a4 = 0; + a15 = 0; + a3 = 6; + a27 = 1; + a5 = 0; + a18 = 0; + a12 = 10; + a22 = 1; + return 26; + } else if(((a20==1)&&((((a5==1)&&(((a12==10)&&(((a6==1)&&((((input==3)&&(a0==1))&&(a22==1))&&!(a18==1)))&&!(a27==1)))&&(a4==1)))&&(a15==1))&&(a3==6)))){ + a12 = 11; + a15 = 0; + a27 = 1; + a5 = 0; + return 21; + } else if(((a6==1)&&((a12==11)&&((a15==1)&&((((a5==1)&&(((!(a0==1)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==4)))&&(a4==1))&&(a27==1)))&&(a20==1))&&(a3==6)))))){ + a27 = 0; + a22 = 1; + a18 = 1; + a12 = 9; + a0 = 1; + return -1; + } else if(((a27==1)&&((a20==1)&&((a0==1)&&((a15==1)&&(!(a5==1)&&(((a6==1)&&(((input==3)&&(((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a22==1)&&(a18==1)))))&&(a12==8)))&&(a4==1)))))))){ + a3 = 4; + a22 = 0; + a15 = 0; + a18 = 0; + a12 = 9; + return 26; + } else if((((a12==11)&&(!(a0==1)&&((((((a27==1)&&((a4==1)&&((input==2)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))))&&(a15==1))&&!(a5==1))&&(a20==1))&&(a6==1))))&&(a3==8))){ + a18 = 1; + a12 = 10; + a15 = 0; + a3 = 5; + a0 = 1; + a22 = 0; + a5 = 1; + return -1; + } else if(((a6==1)&&((a20==1)&&((((a4==1)&&(((!(a5==1)&&((a12==12)&&((input==1)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))))&&(a27==1))&&(a3==6)))&&!(a15==1))&&!(a0==1))))){ + a12 = 9; + a27 = 0; + a3 = 4; + a22 = 1; + a0 = 1; + a18 = 1; + return -1; + } else if(((!(a4==1)&&((a12==9)&&(!(a15==1)&&((a22==1)&&(((a3==5)&&((!(a6==1)&&((a5==1)&&((input==2)&&((a18==1)||!(a18==1)))))&&!(a0==1)))&&(a20==1))))))&&(a27==1))){ + a27 = 0; + a15 = 1; + a3 = 8; + a18 = 1; + a0 = 1; + a6 = 1; + a12 = 8; + return 21; + } else if((((!(a15==1)&&((a27==1)&&((a5==1)&&((a12==9)&&(!(a4==1)&&((((input==5)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))&&!(a6==1))&&(a20==1)))))))&&!(a0==1))&&(a3==7))){ + a0 = 1; + a5 = 0; + a6 = 1; + a27 = 0; + a18 = 0; + a15 = 1; + a3 = 5; + a12 = 10; + a22 = 0; + return -1; + } else if(((a4==1)&&(((a12==9)&&((a22==1)&&((a20==1)&&((!(a18==1)&&((a5==1)&&((a3==4)&&(!(a15==1)&&(!(a0==1)&&(input==3))))))&&(a6==1)))))&&!(a27==1)))){ + a12 = 8; + a3 = 6; + a0 = 1; + a15 = 1; + a18 = 1; + a27 = 1; + return 26; + } else if(((((((a15==1)&&(((!(a4==1)&&((a6==1)&&((a20==1)&&((a22==1)&&(input==3)))))&&(a27==1))&&(a0==1)))&&!(a18==1))&&(a3==5))&&!(a5==1))&&(a12==9))){ + a4 = 1; + a12 = 8; + a3 = 4; + a18 = 1; + a5 = 1; + return -1; + } return calculate_output80(input); + } + + int calculate_output80(int input) { + if(((((a6==1)&&(((a27==1)&&((a20==1)&&((((input==5)&&((((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1))))||((!(a18==1)&&(a22==1))&&(a3==5))))&&(a5==1))&&(a15==1))))&&(a12==10)))&&(a4==1))&&(a0==1))){ + a27 = 0; + a15 = 0; + a6 = 0; + a4 = 0; + a22 = 0; + a18 = 0; + a3 = 5; + a12 = 9; + return 26; + } else if(((a20==1)&&(!(a5==1)&&((!(a15==1)&&(((a12==9)&&((input==5)&&((((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))&&(a6==1))||((!(a6==1)&&(((a4==1)&&(!(a22==1)&&(a18==1)))&&(a3==8)))||((((!(a22==1)&&!(a18==1))&&(a4==1))&&(a3==8))&&!(a6==1))))))&&!(a0==1)))&&!(a27==1))))){ + a3 = 8; + a22 = 1; + a18 = 0; + a6 = 1; + a5 = 1; + a4 = 1; + return 21; + } else if(((a27==1)&&(!(a0==1)&&(!(a5==1)&&((a12==11)&&(!(a4==1)&&((((a20==1)&&((a6==1)&&((a3==7)&&(((a18==1)||!(a18==1))&&(input==2)))))&&!(a15==1))&&(a22==1)))))))){ + a3 = 5; + a0 = 1; + a18 = 0; + a22 = 0; + a12 = 10; + a15 = 1; + return -1; + } else if((((a20==1)&&(!(a6==1)&&(((((!(a5==1)&&(!(a22==1)&&(!(a15==1)&&((input==2)&&((a18==1)||!(a18==1))))))&&(a3==8))&&!(a0==1))&&(a27==1))&&(a12==10))))&&!(a4==1))){ + a12 = 12; + a3 = 7; + a4 = 1; + a18 = 0; + a0 = 1; + return 26; + } else if(((a12==12)&&((a20==1)&&(((((((!(a27==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5)))&&(a0==1))&&(a4==1))&&!(a15==1))&&!(a5==1))&&!(a6==1))&&(a3==4))))){ + a5 = 1; + a3 = 5; + a22 = 1; + a12 = 10; + a18 = 1; + a15 = 1; + a4 = 0; + return 21; + } else if(((a20==1)&&(((a12==8)&&((((a0==1)&&((((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==2))&&!(a27==1))&&(a3==5))&&(a5==1)))&&!(a4==1))&&(a15==1)))&&!(a6==1)))){ + a22 = 0; + a12 = 10; + a18 = 1; + a6 = 1; + a3 = 4; + a5 = 0; + return 21; + } else if((!(a6==1)&&(!(a5==1)&&(((((a3==6)&&((a22==1)&&((a12==8)&&(((!(a18==1)&&(input==6))&&!(a0==1))&&(a27==1)))))&&(a15==1))&&!(a4==1))&&(a20==1))))){ + a6 = 1; + a0 = 1; + a3 = 5; + a22 = 0; + a12 = 11; + a5 = 1; + a15 = 0; + a4 = 1; + a18 = 1; + return 26; + } else if(((a12==9)&&(!(a5==1)&&(!(a6==1)&&(((a0==1)&&(!(a27==1)&&((a15==1)&&((((input==3)&&((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1))))&&!(a4==1))&&(a3==5)))))&&(a20==1)))))){ + a4 = 1; + a27 = 1; + a18 = 1; + a5 = 1; + a3 = 4; + a6 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if(((a12==12)&&(((a0==1)&&((((a27==1)&&((input==5)&&((!(a6==1)&&(((!(a18==1)&&!(a22==1))&&(a4==1))&&(a3==8)))||(((!(a4==1)&&((a18==1)&&(a22==1)))&&(a3==4))&&(a6==1)))))&&(a15==1))&&!(a5==1)))&&(a20==1)))){ + a6 = 1; + a12 = 10; + a4 = 0; + a3 = 5; + a18 = 0; + a22 = 0; + return 26; + } else if((((((a15==1)&&((a0==1)&&((a12==9)&&(((a5==1)&&((a4==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==3))))&&(a3==5)))))&&!(a6==1))&&(a20==1))&&!(a27==1))){ + a18 = 0; + a4 = 0; + a3 = 6; + a22 = 1; + return 24; + } else if((((a5==1)&&((a4==1)&&((!(a22==1)&&(((((((input==2)&&!(a0==1))&&(a27==1))&&(a15==1))&&!(a18==1))&&(a3==4))&&(a20==1)))&&(a6==1))))&&(a12==12))){ + a22 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((a20==1)&&(((((!(a15==1)&&((a12==8)&&(((input==2)&&((((a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==4)))))&&!(a0==1))))&&(a4==1))&&!(a6==1))&&(a5==1))&&!(a27==1)))){ + a15 = 1; + a4 = 0; + a6 = 1; + a0 = 1; + a3 = 5; + a27 = 1; + a22 = 0; + a18 = 0; + return -1; + } else if((((((a20==1)&&((a12==10)&&(!(a15==1)&&((!(a22==1)&&(((!(a27==1)&&(input==3))&&(a5==1))&&(a4==1)))&&!(a0==1)))))&&(a3==4))&&!(a6==1))&&!(a18==1))){ + if((a12==11)){ + a27 = 1; + a0 = 1; + a3 = 7; + a6 = 1; + a15 = 1; + a12 = 8; + a22 = 1; + }else{ + a27 = 1; + a18 = 1; + a5 = 0; + a0 = 1; + a12 = 9; + } + return -1; + } else if((!(a6==1)&&((!(a22==1)&&(!(a4==1)&&(!(a15==1)&&((!(a5==1)&&((((((a18==1)||!(a18==1))&&(input==2))&&(a3==4))&&(a27==1))&&!(a0==1)))&&(a12==8)))))&&(a20==1)))){ + a4 = 1; + a0 = 1; + a15 = 1; + a5 = 1; + a18 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if((((((((a12==11)&&(!(a0==1)&&((a4==1)&&((((input==1)&&(a3==6))&&!(a6==1))&&!(a18==1)))))&&(a22==1))&&(a20==1))&&!(a15==1))&&(a27==1))&&!(a5==1))){ + a0 = 1; + a12 = 8; + a15 = 1; + a6 = 1; + a3 = 4; + a5 = 1; + a18 = 1; + return -1; + } else if(((((a5==1)&&((a4==1)&&((((a12==10)&&(((input==2)&&(((((a18==1)&&!(a22==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6)))||(((a22==1)&&(a18==1))&&(a3==7))))&&(a27==1)))&&!(a0==1))&&(a20==1))))&&!(a15==1))&&(a6==1))){ + a18 = 1; + a4 = 0; + a6 = 0; + a3 = 6; + a12 = 12; + a0 = 1; + a22 = 1; + a15 = 1; + return 26; + } else if((((a15==1)&&((((a6==1)&&(((a12==10)&&((a20==1)&&((a0==1)&&((input==4)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))))&&!(a5==1)))&&(a3==8))&&(a4==1)))&&!(a27==1))){ + a3 = 5; + a27 = 1; + a22 = 1; + a0 = 0; + a5 = 1; + a4 = 0; + a12 = 8; + a18 = 1; + return 21; + } else if(((a4==1)&&(((((a5==1)&&((a27==1)&&(((a22==1)&&((a15==1)&&(!(a6==1)&&((input==5)&&((a18==1)||!(a18==1))))))&&(a12==10))))&&!(a0==1))&&(a20==1))&&(a3==4)))){ + a6 = 1; + a18 = 0; + a12 = 12; + a3 = 6; + a5 = 0; + a0 = 1; + return 24; + } else if((((a3==8)&&((a22==1)&&((((((((a12==11)&&((input==1)&&(a4==1)))&&(a27==1))&&!(a18==1))&&!(a0==1))&&(a5==1))&&(a20==1))&&!(a6==1))))&&!(a15==1))){ + a18 = 1; + a12 = 12; + a4 = 0; + a3 = 7; + a0 = 1; + return 26; + } else if((((((a3==7)&&(((a12==8)&&(((((a5==1)&&((input==3)&&(a18==1)))&&(a27==1))&&(a22==1))&&(a20==1)))&&(a0==1)))&&!(a4==1))&&!(a15==1))&&!(a6==1))){ + a12 = 9; + a6 = 1; + a15 = 1; + a4 = 1; + a22 = 0; + a3 = 8; + a5 = 0; + return 21; + } else if(((((((a27==1)&&(((((((input==6)&&(a12==10))&&(a18==1))&&(a6==1))&&!(a4==1))&&!(a15==1))&&(a3==5)))&&(a22==1))&&(a5==1))&&(a0==1))&&(a20==1))){ + a22 = 0; + a18 = 0; + a3 = 4; + a12 = 9; + a5 = 0; + a27 = 0; + a6 = 0; + return 21; + } else if((((a3==8)&&(((((((a0==1)&&(((a4==1)&&((input==1)&&((a18==1)||!(a18==1))))&&(a6==1)))&&!(a15==1))&&(a5==1))&&!(a22==1))&&(a12==10))&&(a27==1)))&&(a20==1))){ + a18 = 1; + a3 = 4; + a12 = 8; + a15 = 1; + a22 = 1; + return -1; + } else if((((a27==1)&&((((((a3==6)&&(!(a6==1)&&(!(a4==1)&&((a20==1)&&(((a18==1)||!(a18==1))&&(input==2))))))&&(a5==1))&&!(a15==1))&&(a0==1))&&(a22==1)))&&(a12==9))){ + a12 = 12; + a18 = 1; + return 26; + } else if(((a0==1)&&((((((a27==1)&&((a22==1)&&(((((a6==1)&&(input==6))&&(a18==1))&&(a20==1))&&!(a4==1))))&&(a5==1))&&!(a15==1))&&(a12==9))&&(a3==6)))){ + if((a4==1)){ + a3 = 5; + a18 = 0; + a12 = 8; + a15 = 1; + a0 = 0; + }else{ + a15 = 1; + a12 = 11; + } + return 21; + } else if(((a4==1)&&(((a27==1)&&(((a6==1)&&((a3==4)&&(!(a0==1)&&(((a12==8)&&((a22==1)&&(((a18==1)||!(a18==1))&&(input==1))))&&!(a15==1)))))&&(a20==1)))&&(a5==1)))){ + a18 = 1; + a15 = 1; + a0 = 1; + return -1; + } else if(((a5==1)&&((a20==1)&&(((a3==5)&&((((a18==1)&&(!(a6==1)&&((((a12==8)&&(input==6))&&!(a27==1))&&!(a22==1))))&&(a0==1))&&(a15==1)))&&(a4==1))))){ + a27 = 1; + a12 = 12; + a3 = 4; + a18 = 0; + a15 = 0; + a6 = 1; + return 24; + } else if((((((((!(a5==1)&&((a0==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==6))&&!(a4==1))))&&(a20==1))&&(a15==1))&&(a6==1))&&(a27==1))&&(a12==10))&&(a3==5))){ + a18 = 0; + a6 = 0; + a12 = 11; + a22 = 1; + a15 = 0; + a3 = 4; + a4 = 1; + return 26; + } else if((((a5==1)&&(((a0==1)&&(!(a15==1)&&(((a4==1)&&(((input==5)&&((((a3==5)&&((a18==1)&&!(a22==1)))||((a3==5)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==6))))&&!(a27==1)))&&(a20==1))))&&!(a6==1)))&&(a12==12))){ + a18 = 0; + a15 = 1; + a22 = 1; + a4 = 0; + a27 = 1; + a3 = 6; + return 21; + } else if(((a12==8)&&(((!(a0==1)&&((a5==1)&&(((((((input==1)&&!(a4==1))&&!(a15==1))&&!(a22==1))&&(a18==1))&&(a3==6))&&!(a27==1))))&&!(a6==1))&&(a20==1)))){ + if((a5==1)){ + a18 = 0; + a3 = 5; + a5 = 0; + a4 = 1; + }else{ + a6 = 1; + a3 = 5; + a0 = 1; + a22 = 1; + a12 = 10; + a5 = 0; + } + return -1; + } else if(((a3==7)&&(((((a20==1)&&((!(a27==1)&&((!(a6==1)&&(!(a22==1)&&(((a18==1)||!(a18==1))&&(input==5))))&&(a4==1)))&&!(a15==1)))&&(a12==9))&&!(a5==1))&&(a0==1)))){ + a5 = 1; + a6 = 1; + a18 = 1; + a3 = 4; + a15 = 1; + a22 = 1; + a12 = 8; + a27 = 1; + return -1; + } else if((((a5==1)&&(((!(a27==1)&&((a20==1)&&((((a6==1)&&((a3==4)&&(((a22==1)&&!(a18==1))&&!(a4==1))))||((!(a6==1)&&((a3==8)&&((!(a18==1)&&!(a22==1))&&(a4==1))))||(((((a22==1)&&(a18==1))&&!(a4==1))&&(a3==4))&&(a6==1))))&&(input==5))))&&(a15==1))&&(a12==12)))&&(a0==1))){ + a22 = 1; + a27 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + a6 = 1; + a4 = 1; + return -1; + } else if(((!(a15==1)&&((a0==1)&&((a6==1)&&((a27==1)&&((((a3==4)&&((a4==1)&&((input==4)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))))))&&(a20==1))&&!(a5==1))))))&&(a12==11))){ + a15 = 1; + a22 = 1; + a5 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if(((a5==1)&&(((a4==1)&&(!(a0==1)&&(!(a15==1)&&(((((((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==6))&&(a12==9))&&(a20==1))&&(a27==1)))))&&!(a6==1)))){ + a5 = 0; + a18 = 1; + a0 = 1; + a3 = 5; + a6 = 1; + a12 = 10; + a22 = 1; + return 26; + } else if(((a15==1)&&(!(a6==1)&&(((((a27==1)&&(((a12==12)&&(((((!(a22==1)&&(a18==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==4)))&&(a0==1)))&&!(a5==1))&&(a20==1))&&!(a4==1))))){ + a6 = 1; + a22 = 1; + a18 = 0; + a3 = 5; + a27 = 0; + a12 = 9; + return 21; + } else if(((a3==6)&&(!(a4==1)&&((((((a15==1)&&(((a20==1)&&(((input==4)&&((a18==1)||!(a18==1)))&&!(a22==1)))&&(a0==1)))&&!(a6==1))&&(a27==1))&&!(a5==1))&&(a12==8))))){ + a4 = 1; + a0 = 0; + a12 = 10; + a18 = 1; + a3 = 5; + return 26; + } else if((((!(a27==1)&&(((a0==1)&&((((a5==1)&&((((a22==1)&&(input==4))&&(a3==6))&&(a18==1)))&&(a12==9))&&(a20==1)))&&!(a4==1)))&&(a6==1))&&(a15==1))){ + a18 = 0; + a12 = 10; + a3 = 4; + a27 = 1; + a22 = 0; + return 26; + } else if((!(a0==1)&&(((((input==1)&&((((((!(a15==1)&&(((a18==1)&&!(a22==1))&&(a5==1)))&&!(a4==1))&&(a3==8))&&!(a6==1))||(!(a6==1)&&((a3==8)&&((((!(a18==1)&&!(a22==1))&&(a5==1))&&!(a15==1))&&!(a4==1)))))||((a6==1)&&(((a4==1)&&((((a22==1)&&(a18==1))&&!(a5==1))&&(a15==1)))&&(a3==4)))))&&(a20==1))&&(a12==8))&&!(a27==1)))){ + a22 = 1; + a4 = 1; + a5 = 1; + a6 = 1; + a15 = 1; + a3 = 5; + a0 = 1; + a18 = 0; + a27 = 1; + return 21; + } else if(((((a20==1)&&(((a12==11)&&(!(a4==1)&&(!(a27==1)&&((((input==1)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a15==1))&&(a5==1)))))&&!(a0==1)))&&!(a6==1))&&(a3==7))){ + a22 = 1; + a3 = 5; + a12 = 12; + a18 = 1; + a0 = 1; + a5 = 0; + a4 = 1; + return 24; + } else if((((a20==1)&&(((((!(a15==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==4))&&(a0==1)))&&(a4==1))&&!(a27==1))&&!(a5==1))&&!(a6==1)))&&(a12==12))){ + a0 = 0; + a3 = 8; + a27 = 1; + a22 = 0; + a12 = 8; + a15 = 1; + a18 = 0; + return 26; + } else if((((((a5==1)&&((a22==1)&&((a12==10)&&(((a20==1)&&(!(a0==1)&&((a4==1)&&(((a18==1)||!(a18==1))&&(input==3)))))&&(a27==1)))))&&(a15==1))&&!(a6==1))&&(a3==8))){ + a6 = 1; + a12 = 8; + a0 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((a4==1)&&(((a5==1)&&(((a15==1)&&((a27==1)&&(((((((a22==1)&&!(a18==1))&&(a3==8))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a22==1)&&(a18==1)))))&&(input==3))&&!(a6==1))&&(a12==11))))&&(a0==1)))&&(a20==1)))){ + a12 = 10; + a18 = 1; + a22 = 1; + a5 = 0; + a3 = 6; + return -1; + } else if((((a4==1)&&(!(a6==1)&&((a3==6)&&((((!(a27==1)&&(((input==4)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a15==1)))&&(a12==11))&&!(a5==1))&&(a20==1)))))&&(a0==1))){ + a5 = 1; + a22 = 1; + a18 = 1; + a12 = 12; + a27 = 1; + a6 = 1; + a3 = 7; + a4 = 0; + return 26; + } else if(((!(a27==1)&&((a3==6)&&(!(a15==1)&&((a22==1)&&((a0==1)&&((a5==1)&&(((((a12==8)&&(input==4))&&(a20==1))&&(a6==1))&&!(a18==1))))))))&&(a4==1))){ + a12 = 10; + a0 = 0; + a3 = 5; + a27 = 1; + return 26; + } else if((!(a27==1)&&(!(a15==1)&&(((a12==10)&&(((((a6==1)&&((input==3)&&(((a3==6)&&((a22==1)&&(a18==1)))||(((a3==5)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==5))))))&&(a5==1))&&!(a4==1))&&(a0==1)))&&(a20==1))))){ + a18 = 1; + a22 = 1; + a3 = 4; + a4 = 1; + a15 = 1; + a27 = 1; + a12 = 8; + return -1; + } else if(((!(a15==1)&&((a27==1)&&((((((((input==5)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(a0==1))&&(a12==9))&&!(a6==1))&&(a4==1))&&(a20==1))&&!(a5==1))))&&(a3==6))){ + a18 = 0; + a15 = 1; + a27 = 0; + a5 = 1; + a6 = 1; + a3 = 7; + a22 = 1; + return 26; + } else if((((!(a5==1)&&(!(a6==1)&&((a12==8)&&(!(a0==1)&&(((a15==1)&&((((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a22==1)&&(a18==1))))&&(input==4)))&&(a27==1))))))&&!(a4==1))&&(a20==1))){ + if((a15==1)){ + a22 = 1; + a3 = 4; + a6 = 1; + a12 = 9; + a18 = 0; + }else{ + a22 = 1; + a3 = 5; + a12 = 11; + a27 = 0; + a4 = 1; + a0 = 1; + a15 = 0; + a18 = 1; + a6 = 1; + } + return 21; + } else if((((a12==12)&&((!(a27==1)&&(((((((!(a5==1)&&((a22==1)&&!(a18==1)))&&(a15==1))&&(a4==1))&&(a3==4))&&(a6==1))||((((!(a4==1)&&(!(a15==1)&&((a5==1)&&(!(a18==1)&&!(a22==1)))))&&(a3==8))&&!(a6==1))||((a6==1)&&((a3==4)&&(((!(a5==1)&&((a22==1)&&(a18==1)))&&(a15==1))&&(a4==1))))))&&(input==4)))&&(a20==1)))&&(a0==1))){ + a4 = 0; + a27 = 1; + a12 = 11; + a6 = 1; + a22 = 1; + a15 = 0; + a3 = 5; + a18 = 0; + a5 = 1; + return 24; + } else if((!(a15==1)&&(!(a0==1)&&((a12==8)&&((a4==1)&&((a27==1)&&((!(a5==1)&&(((input==4)&&(((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7))))&&(a20==1)))&&!(a6==1)))))))){ + a0 = 1; + a5 = 1; + a18 = 1; + a6 = 1; + a15 = 1; + a12 = 11; + a22 = 0; + a3 = 4; + return 26; + } else if((((a0==1)&&((a5==1)&&((((!(a15==1)&&((a3==6)&&((a12==10)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==3)))))&&!(a6==1))&&!(a4==1))&&(a20==1))))&&(a27==1))){ + if((a22==1)){ + a0 = 0; + a6 = 1; + a5 = 0; + a18 = 0; + a22 = 1; + }else{ + a12 = 12; + a6 = 1; + a0 = 0; + a18 = 0; + a4 = 1; + a22 = 1; + } + return 26; + } else if(((!(a0==1)&&(((((a27==1)&&((a3==8)&&((a6==1)&&((a4==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==5))))))&&(a12==8))&&(a20==1))&&!(a15==1)))&&!(a5==1))){ + a18 = 1; + a22 = 1; + a12 = 12; + a4 = 0; + a3 = 4; + a5 = 1; + a0 = 1; + a15 = 1; + return 24; + } else if(((a12==9)&&(!(a6==1)&&((a3==6)&&(((a20==1)&&((((a4==1)&&(((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==2))&&(a5==1)))&&(a0==1))&&(a27==1)))&&(a15==1)))))){ + if((a12==9)){ + a18 = 0; + a6 = 1; + a22 = 0; + a0 = 0; + a3 = 5; + a5 = 0; + a4 = 0; + }else{ + a22 = 0; + a4 = 0; + a3 = 4; + a18 = 1; + a12 = 12; + } + return 21; + } else if((((((a5==1)&&(!(a15==1)&&((!(a0==1)&&((a20==1)&&((a12==12)&&(!(a22==1)&&((input==4)&&!(a18==1))))))&&(a4==1))))&&(a27==1))&&(a3==6))&&!(a6==1))){ + a0 = 1; + a6 = 1; + a15 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((a15==1)&&((!(a5==1)&&((a27==1)&&((a3==7)&&(((a20==1)&&(((a4==1)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==1)))&&!(a6==1)))&&!(a0==1)))))&&(a12==8)))){ + a15 = 0; + a22 = 0; + a4 = 0; + a0 = 1; + a18 = 1; + a12 = 9; + return -1; + } else if(((((!(a4==1)&&((a15==1)&&((a0==1)&&(((((((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7)))||(((a22==1)&&!(a18==1))&&(a3==7)))&&(input==6))&&!(a27==1))&&(a20==1)))))&&(a12==10))&&!(a5==1))&&(a6==1))){ + a5 = 1; + a3 = 7; + a27 = 1; + a4 = 1; + a12 = 9; + a18 = 1; + a22 = 1; + a0 = 0; + a15 = 0; + return 21; + } else if((((a6==1)&&(!(a0==1)&&((a27==1)&&(((a12==9)&&((a3==8)&&(!(a15==1)&&((a20==1)&&((input==3)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))))))&&(a4==1)))))&&(a5==1))){ + a18 = 1; + a22 = 0; + a6 = 0; + a12 = 11; + a4 = 0; + a0 = 1; + a3 = 4; + return -1; + } else if((((!(a15==1)&&((!(a5==1)&&((a20==1)&&(((!(a0==1)&&(!(a6==1)&&(!(a18==1)&&(input==5))))&&(a27==1))&&!(a4==1))))&&(a3==8)))&&(a22==1))&&(a12==10))){ + a18 = 1; + a4 = 1; + a3 = 7; + a0 = 1; + a12 = 12; + a15 = 1; + return -1; + } else if(((((a12==9)&&(((!(a15==1)&&(((((a3==8)&&((a4==1)&&(!(a22==1)&&!(a18==1))))&&!(a6==1))||(((a3==4)&&(((a22==1)&&(a18==1))&&!(a4==1)))&&(a6==1)))&&(input==1)))&&(a20==1))&&(a0==1)))&&(a5==1))&&!(a27==1))){ + a3 = 7; + a22 = 0; + a6 = 1; + a4 = 0; + a18 = 1; + a12 = 10; + return 21; + } else if((!(a5==1)&&((((a0==1)&&(!(a4==1)&&(!(a27==1)&&((a12==10)&&(!(a6==1)&&((input==3)&&(((((a18==1)&&!(a22==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7)))||((a3==8)&&((a18==1)&&(a22==1))))))))))&&!(a15==1))&&(a20==1)))){ + a3 = 7; + a4 = 1; + a22 = 1; + a18 = 0; + a6 = 1; + a15 = 1; + return 26; + } else if((!(a5==1)&&((a27==1)&&((((!(a0==1)&&(((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==3))&&(a20==1))&&(a4==1))&&(a3==8)))&&(a12==11))&&!(a6==1))&&!(a15==1))))){ + a0 = 1; + a22 = 0; + a12 = 10; + a18 = 0; + a3 = 7; + a4 = 0; + a6 = 1; + return -1; + } else if((((!(a27==1)&&((((a12==9)&&((a6==1)&&((((((a18==1)||!(a18==1))&&(input==2))&&!(a15==1))&&(a22==1))&&(a0==1))))&&(a20==1))&&!(a4==1)))&&(a3==5))&&!(a5==1))){ + a22 = 0; + a27 = 1; + a5 = 1; + a15 = 1; + a12 = 11; + a6 = 0; + a18 = 1; + return 26; + } else if((((!(a18==1)&&((a12==9)&&((((a5==1)&&((a20==1)&&(!(a15==1)&&((a6==1)&&(!(a0==1)&&(input==3))))))&&(a3==8))&&!(a4==1))))&&(a22==1))&&(a27==1))){ + a6 = 0; + a4 = 1; + a22 = 0; + a0 = 1; + a12 = 10; + a15 = 1; + a5 = 0; + return 21; + } else if(((a20==1)&&((a6==1)&&((a4==1)&&(!(a0==1)&&(!(a27==1)&&(((a12==10)&&(!(a5==1)&&((input==6)&&((((a22==1)&&!(a18==1))&&(a3==8))||(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))))))&&(a15==1)))))))){ + a6 = 0; + a22 = 1; + a0 = 1; + a12 = 11; + a18 = 0; + a3 = 7; + return 21; + } else if(((!(a5==1)&&(((a22==1)&&(((((a12==9)&&((a3==7)&&((a20==1)&&(!(a18==1)&&(input==4)))))&&!(a27==1))&&(a4==1))&&!(a15==1)))&&(a0==1)))&&(a6==1))){ + a5 = 1; + a18 = 1; + a27 = 1; + a12 = 8; + a15 = 1; + a3 = 4; + return -1; + } else if(((a20==1)&&(!(a27==1)&&(!(a6==1)&&((a0==1)&&((a12==10)&&(!(a4==1)&&(((a15==1)&&((a5==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==3))))&&(a3==7))))))))){ + a12 = 8; + a4 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + a27 = 1; + a6 = 1; + return -1; + } else if((!(a4==1)&&((a5==1)&&(!(a0==1)&&((a12==9)&&((a3==6)&&((((a6==1)&&((a20==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==5))))&&(a27==1))&&(a15==1)))))))){ + a0 = 1; + a5 = 0; + a6 = 0; + a3 = 4; + a22 = 0; + a12 = 10; + a18 = 0; + return -1; + } else if((!(a5==1)&&(!(a15==1)&&((a3==6)&&((a6==1)&&((a27==1)&&((a0==1)&&((((a4==1)&&((a18==1)&&((a12==11)&&(input==5))))&&(a20==1))&&!(a22==1))))))))){ + if((a5==1)){ + a18 = 0; + a0 = 0; + a22 = 1; + a6 = 0; + a3 = 8; + a15 = 1; + }else{ + a27 = 0; + a3 = 7; + a6 = 0; + a4 = 0; + a15 = 1; + a18 = 0; + } + return 26; + } else if(((a15==1)&&((a3==5)&&((a18==1)&&(!(a5==1)&&(((a6==1)&&((a20==1)&&(((((a0==1)&&(input==1))&&(a27==1))&&(a12==10))&&!(a4==1))))&&(a22==1))))))){ + a4 = 1; + a3 = 4; + a5 = 1; + a12 = 8; + return -1; + } else if(((a20==1)&&(((!(a27==1)&&(!(a0==1)&&(((a6==1)&&(((((a3==7)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==6))||(((a18==1)&&(a22==1))&&(a3==7))))&&(input==2))&&(a12==11)))&&!(a15==1))))&&!(a5==1))&&!(a4==1)))){ + a18 = 0; + a22 = 0; + a15 = 1; + a4 = 1; + a3 = 6; + a5 = 1; + a12 = 9; + return 21; + } else if(((a20==1)&&((a27==1)&&(((a0==1)&&(((a5==1)&&((a12==12)&&((a6==1)&&((input==4)&&(((a3==7)&&((a18==1)&&(a22==1)))||(((a3==6)&&((a18==1)&&!(a22==1)))||((!(a22==1)&&!(a18==1))&&(a3==6))))))))&&(a4==1)))&&!(a15==1))))){ + a12 = 8; + a15 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((!(a15==1)&&((!(a5==1)&&((a6==1)&&(((a20==1)&&((((a12==8)&&(!(a27==1)&&(input==3)))&&(a22==1))&&(a3==5)))&&(a18==1))))&&!(a0==1)))&&!(a4==1))){ + if((a22==1)){ + a18 = 0; + a5 = 1; + a4 = 1; + a22 = 0; + a15 = 1; + a3 = 8; + a12 = 9; + }else{ + a18 = 0; + a5 = 1; + a27 = 1; + a4 = 1; + a22 = 0; + a0 = 1; + a3 = 6; + a15 = 1; + } + return -1; + } else if(((a3==5)&&((a0==1)&&(((((((((input==4)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&(a20==1))&&(a5==1))&&(a27==1))&&(a6==1))&&!(a4==1))&&(a12==10))&&(a15==1))))){ + a3 = 4; + a18 = 1; + a4 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if((((a4==1)&&((a12==10)&&((a18==1)&&(((a6==1)&&((((a3==5)&&(!(a0==1)&&((a5==1)&&(input==4))))&&(a20==1))&&!(a15==1)))&&(a22==1)))))&&!(a27==1))){ + if((a5==1)){ + a4 = 0; + a6 = 0; + a18 = 0; + }else{ + a27 = 1; + a18 = 0; + a3 = 7; + a22 = 0; + a4 = 0; + a6 = 0; + a15 = 1; + } + return -1; + } else if(((a6==1)&&((!(a27==1)&&((!(a0==1)&&((a12==10)&&((a4==1)&&(((input==5)&&(((a3==5)&&((a18==1)&&(a22==1)))||((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1))))))&&(a20==1)))))&&(a5==1)))&&(a15==1)))){ + a3 = 6; + a22 = 1; + a27 = 1; + a0 = 1; + a12 = 8; + a4 = 0; + a18 = 1; + return -1; + } else if((((((((!(a0==1)&&((a15==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==6))&&(a4==1))))&&!(a27==1))&&(a3==7))&&!(a6==1))&&(a12==8))&&!(a5==1))&&(a20==1))){ + a0 = 1; + a4 = 0; + a27 = 1; + a5 = 1; + a18 = 1; + a6 = 1; + a22 = 0; + return -1; + } else if(((a15==1)&&((a22==1)&&((((a0==1)&&((a3==4)&&((a20==1)&&(!(a5==1)&&((a27==1)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a6==1)))))))&&(a12==8))&&(a4==1))))){ + a3 = 7; + a4 = 0; + a12 = 9; + a18 = 1; + return 24; + } else if(((a20==1)&&(((a27==1)&&(!(a6==1)&&((a12==9)&&((a4==1)&&(((a0==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==6)))&&(input==1)))&&(a15==1))))))&&!(a5==1)))){ + a5 = 1; + a18 = 1; + a22 = 0; + a12 = 11; + a3 = 6; + return 21; + } else if(((a12==8)&&(!(a18==1)&&((a4==1)&&((((a20==1)&&(((!(a22==1)&&(((input==2)&&(a6==1))&&(a15==1)))&&(a3==8))&&!(a0==1)))&&(a27==1))&&!(a5==1)))))){ + a4 = 0; + a3 = 7; + a0 = 1; + a5 = 1; + a18 = 1; + a12 = 11; + return -1; + } else if((!(a0==1)&&((((a20==1)&&(((!(a4==1)&&((a12==9)&&((((!(a18==1)&&!(a22==1))&&(a3==6))||(((a22==1)&&(a18==1))&&(a3==7)))&&(input==5))))&&(a27==1))&&(a5==1)))&&(a15==1))&&!(a6==1)))){ + a12 = 11; + a22 = 1; + a18 = 0; + a3 = 7; + a5 = 0; + return 21; + } else if(((a20==1)&&(!(a0==1)&&((a3==4)&&(((a12==8)&&((!(a4==1)&&((a22==1)&&((((input==2)&&!(a15==1))&&!(a6==1))&&!(a18==1))))&&!(a27==1)))&&(a5==1)))))){ + a3 = 6; + a6 = 1; + a0 = 1; + a15 = 1; + a27 = 1; + return 21; + } else if(((a12==12)&&((a4==1)&&(((((a20==1)&&(((input==2)&&((!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1))))||(((((a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||(((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1)))))&&(a0==1)))&&!(a5==1))&&!(a27==1))&&!(a15==1))))){ + if((a12==9)){ + a22 = 1; + a6 = 1; + a5 = 1; + a3 = 5; + a15 = 1; + a0 = 0; + a18 = 1; + a27 = 1; + }else{ + a18 = 1; + a6 = 1; + a12 = 10; + a22 = 1; + a27 = 1; + a3 = 4; + } + return 21; + } else if(((a20==1)&&((a12==9)&&(!(a4==1)&&(!(a0==1)&&((!(a6==1)&&((((((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==5))&&!(a5==1))&&(a27==1))&&(a3==8)))&&(a15==1))))))){ + a27 = 0; + a5 = 1; + a12 = 11; + a0 = 1; + a22 = 0; + a18 = 0; + return 24; + } else if(((((((a12==11)&&((((((input==6)&&((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&!(a4==1))&&(a6==1))&&!(a0==1))&&(a5==1)))&&(a20==1))&&(a3==7))&&!(a15==1))&&!(a27==1))){ + a3 = 5; + a12 = 10; + a22 = 0; + a27 = 1; + a15 = 1; + a18 = 1; + return 26; + } else if(((a4==1)&&(!(a0==1)&&((a12==9)&&(((((a20==1)&&((a22==1)&&(((!(a6==1)&&(input==2))&&(a27==1))&&(a18==1))))&&(a15==1))&&(a3==4))&&!(a5==1)))))){ + a12 = 8; + a6 = 1; + a0 = 1; + a5 = 1; + return -1; + } else if((((a4==1)&&(((!(a0==1)&&((((!(a27==1)&&((((a18==1)||!(a18==1))&&(input==6))&&(a20==1)))&&!(a22==1))&&!(a5==1))&&(a12==9)))&&!(a15==1))&&(a6==1)))&&(a3==4))){ + if((a5==1)){ + a4 = 0; + a0 = 1; + a3 = 5; + a5 = 1; + a15 = 1; + a12 = 8; + a27 = 1; + a18 = 1; + }else{ + a18 = 1; + a15 = 1; + a12 = 11; + a0 = 1; + a3 = 8; + a5 = 1; + } + return -1; + } else if(((((a20==1)&&((a12==10)&&(((a22==1)&&((!(a15==1)&&(!(a27==1)&&(((input==1)&&!(a6==1))&&!(a0==1))))&&(a4==1)))&&!(a5==1))))&&(a3==4))&&!(a18==1))){ + a3 = 8; + a22 = 0; + a27 = 1; + a15 = 1; + a5 = 1; + a12 = 8; + a6 = 1; + a0 = 1; + return -1; + } else if(((a4==1)&&((a12==11)&&((((((((input==1)&&(((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1))))||((a3==7)&&((a18==1)&&(a22==1)))))&&(a6==1))&&(a15==1))&&!(a5==1))&&(a20==1))&&(a27==1))&&!(a0==1))))){ + a0 = 1; + a18 = 1; + a3 = 6; + a12 = 9; + a22 = 0; + a15 = 0; + return 21; + } else if(((a3==7)&&(!(a5==1)&&(!(a6==1)&&((a20==1)&&(((((a0==1)&&((a15==1)&&(!(a27==1)&&((input==6)&&((a18==1)||!(a18==1))))))&&(a12==12))&&!(a22==1))&&!(a4==1))))))){ + a18 = 0; + a27 = 1; + a5 = 1; + a4 = 1; + return 26; + } else if((((((((a0==1)&&((a12==12)&&(((((a3==4)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==3))&&(a15==1))))&&(a6==1))&&(a20==1))&&!(a27==1))&&(a4==1))&&!(a5==1))){ + a12 = 10; + a22 = 0; + a4 = 0; + a18 = 0; + a15 = 0; + a6 = 0; + a3 = 6; + return -1; + } else if((((a5==1)&&(((a27==1)&&(((!(a0==1)&&(!(a4==1)&&(((a20==1)&&((input==4)&&((a18==1)||!(a18==1))))&&(a3==4))))&&!(a22==1))&&(a12==9)))&&(a6==1)))&&(a15==1))){ + a3 = 7; + a22 = 1; + a18 = 0; + a15 = 0; + a12 = 12; + a4 = 1; + a5 = 0; + a0 = 1; + return 21; + } else if(((a6==1)&&((!(a15==1)&&(((a12==9)&&(((a5==1)&&((a0==1)&&((((a3==8)&&((a22==1)&&(a18==1)))||(((a3==7)&&(!(a22==1)&&(a18==1)))||((a3==7)&&(!(a22==1)&&!(a18==1)))))&&(input==2))))&&!(a27==1)))&&(a4==1)))&&(a20==1)))){ + a12 = 8; + a27 = 1; + a18 = 1; + a22 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if((!(a4==1)&&((a15==1)&&(!(a22==1)&&(((a12==11)&&((a5==1)&&((((((input==3)&&((a18==1)||!(a18==1)))&&(a3==6))&&!(a6==1))&&(a20==1))&&(a0==1))))&&(a27==1)))))){ + a22 = 1; + a18 = 1; + a6 = 1; + a27 = 0; + a15 = 0; + a5 = 0; + a12 = 10; + a3 = 8; + return 26; + } else if(((a22==1)&&(!(a5==1)&&((((((a4==1)&&((a12==11)&&(!(a15==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&!(a6==1)))))&&(a20==1))&&!(a27==1))&&(a3==8))&&!(a0==1))))){ + if((a5==1)){ + a5 = 1; + a27 = 1; + a18 = 1; + a15 = 1; + a3 = 4; + a4 = 0; + a0 = 1; + a12 = 8; + }else{ + a18 = 0; + a12 = 8; + a27 = 1; + a15 = 1; + a0 = 1; + a6 = 1; + a5 = 1; + a3 = 5; + } + return 26; + } else if((((a12==12)&&(!(a6==1)&&((a27==1)&&((((!(a4==1)&&(!(a15==1)&&((input==2)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))))&&(a5==1))&&(a3==7))&&(a20==1)))))&&(a0==1))){ + a12 = 11; + a3 = 8; + a22 = 1; + a18 = 0; + return 21; + } else if((((a3==6)&&((a15==1)&&((a6==1)&&(!(a4==1)&&(((((!(a27==1)&&((input==5)&&(a22==1)))&&(a0==1))&&(a5==1))&&(a18==1))&&(a20==1))))))&&(a12==9))){ + a6 = 0; + a18 = 0; + a4 = 1; + a22 = 0; + a5 = 0; + a3 = 4; + a12 = 8; + return 21; + } else if((!(a27==1)&&(!(a15==1)&&((((a6==1)&&(((((a3==5)&&(((a4==1)&&(input==5))&&!(a5==1)))&&!(a0==1))&&(a20==1))&&!(a22==1)))&&!(a18==1))&&(a12==8))))){ + a15 = 1; + a27 = 1; + a3 = 4; + a5 = 1; + a18 = 1; + a0 = 1; + return -1; + } else if(((a18==1)&&(((a27==1)&&((a6==1)&&(!(a22==1)&&((a15==1)&&(((a5==1)&&((((input==1)&&(a20==1))&&!(a4==1))&&(a0==1)))&&(a12==11))))))&&(a3==7)))){ + a22 = 1; + a5 = 0; + a15 = 0; + a27 = 0; + a3 = 4; + a12 = 10; + return 21; + } else if((!(a27==1)&&(((a6==1)&&((a15==1)&&((a4==1)&&((a0==1)&&((!(a5==1)&&((input==5)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))))&&(a20==1))))))&&(a12==11)))){ + a27 = 1; + a4 = 0; + a6 = 0; + a18 = 1; + a3 = 6; + a22 = 0; + a0 = 0; + return -1; + } else if(((a6==1)&&(((((a3==8)&&(((!(a15==1)&&((a0==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==2))))&&(a12==11))&&(a4==1)))&&!(a27==1))&&(a20==1))&&!(a5==1)))){ + a3 = 7; + a6 = 0; + a4 = 0; + a12 = 10; + a22 = 0; + a15 = 1; + a18 = 0; + return -1; + } else if((((a20==1)&&((!(a18==1)&&(((a6==1)&&(((!(a4==1)&&(((a5==1)&&(input==4))&&!(a0==1)))&&!(a15==1))&&(a27==1)))&&!(a22==1)))&&(a12==10)))&&(a3==5))){ + a5 = 0; + a4 = 1; + a3 = 4; + a15 = 1; + a12 = 12; + a27 = 0; + a18 = 1; + a0 = 1; + return 21; + } else if((((a27==1)&&(!(a0==1)&&((((a20==1)&&((((input==6)&&((((a22==1)&&!(a18==1))&&(a3==5))||(((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a22==1)&&(a18==1))))))&&(a6==1))&&(a4==1)))&&(a12==10))&&(a5==1))))&&(a15==1))){ + a22 = 0; + a6 = 0; + a0 = 1; + a12 = 11; + a18 = 0; + a3 = 8; + return 26; + } else if((!(a5==1)&&((((a12==10)&&((!(a6==1)&&(!(a27==1)&&((a4==1)&&(((input==4)&&((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))&&!(a0==1)))))&&(a20==1)))&&(a3==8))&&(a15==1)))){ + a6 = 1; + a12 = 8; + a0 = 1; + a18 = 0; + a5 = 1; + a22 = 0; + a3 = 6; + a27 = 1; + return -1; + } else if(((a27==1)&&(((a20==1)&&(!(a0==1)&&((((input==6)&&(((!(a6==1)&&((a3==8)&&(((a18==1)&&!(a22==1))&&(a4==1))))||(!(a6==1)&&((a3==8)&&((a4==1)&&(!(a22==1)&&!(a18==1))))))||((a6==1)&&((((a22==1)&&(a18==1))&&!(a4==1))&&(a3==4)))))&&!(a5==1))&&(a12==11))))&&(a15==1)))){ + a6 = 1; + a4 = 1; + a0 = 1; + a3 = 4; + a5 = 1; + a18 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if((!(a6==1)&&(!(a18==1)&&(!(a15==1)&&(((!(a0==1)&&(!(a27==1)&&((a12==9)&&((((input==3)&&(a3==6))&&!(a22==1))&&(a4==1)))))&&(a20==1))&&(a5==1)))))){ + if((a5==1)){ + a4 = 0; + a3 = 5; + a12 = 10; + a5 = 0; + a0 = 1; + a15 = 1; + }else{ + a5 = 0; + a3 = 5; + a4 = 0; + a18 = 1; + } + return -1; + } else if(((a3==5)&&((((a4==1)&&(((a15==1)&&(!(a0==1)&&((a18==1)&&(((a12==11)&&((input==6)&&(a20==1)))&&(a6==1)))))&&(a5==1)))&&!(a22==1))&&!(a27==1)))){ + if((a27==1)){ + a12 = 12; + a15 = 0; + a18 = 0; + a6 = 0; + a0 = 1; + a3 = 6; + }else{ + a3 = 4; + a12 = 8; + a27 = 1; + a6 = 0; + a0 = 1; + } + return -1; + } else if(((a20==1)&&(((!(a27==1)&&((a0==1)&&(((a5==1)&&(((input==1)&&((((a3==6)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==6)))||((a3==7)&&((a22==1)&&(a18==1)))))&&(a12==11)))&&(a15==1))))&&!(a6==1))&&!(a4==1)))){ + a18 = 1; + a3 = 4; + a4 = 1; + a22 = 1; + a27 = 1; + a6 = 1; + a5 = 0; + return 26; + } else if(((a3==7)&&(((a0==1)&&((((((((a4==1)&&((a20==1)&&(input==6)))&&(a27==1))&&!(a22==1))&&(a6==1))&&(a12==9))&&!(a5==1))&&(a18==1)))&&!(a15==1)))){ + a4 = 0; + a3 = 8; + a27 = 0; + a18 = 0; + a12 = 8; + return 26; + } else if(((!(a27==1)&&((!(a15==1)&&((a20==1)&&((a5==1)&&((!(a6==1)&&((a4==1)&&(((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))&&(input==2))))&&(a12==9)))))&&(a3==4)))&&!(a0==1))){ + a22 = 0; + a12 = 8; + a0 = 1; + a18 = 0; + a15 = 1; + a27 = 1; + return 26; + } else if(((a27==1)&&(((((a20==1)&&((((a0==1)&&((input==2)&&(((a3==7)&&((a18==1)&&(a22==1)))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a22==1)&&!(a18==1)))))))&&!(a5==1))&&!(a15==1)))&&(a4==1))&&(a6==1))&&(a12==10)))){ + a5 = 1; + a4 = 0; + a3 = 5; + a27 = 0; + a22 = 1; + a6 = 0; + a18 = 1; + return 26; + } else if(((a6==1)&&(((a15==1)&&((((a5==1)&&(((a22==1)&&((a0==1)&&(((input==1)&&(a12==10))&&(a20==1))))&&!(a4==1)))&&(a27==1))&&(a3==4)))&&!(a18==1)))){ + return -1; + } else if((((!(a15==1)&&((((((a4==1)&&((input==1)&&(((a3==7)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==6))||((a3==6)&&(!(a22==1)&&!(a18==1)))))))&&(a20==1))&&!(a5==1))&&!(a6==1))&&(a0==1)))&&!(a27==1))&&(a12==9))){ + a18 = 0; + a3 = 7; + a4 = 0; + a5 = 1; + a22 = 1; + return 21; + } else if(((((((a5==1)&&(!(a27==1)&&((a12==11)&&(((((a6==1)&&((a3==8)&&((a18==1)&&!(a22==1))))||(((!(a18==1)&&!(a22==1))&&(a3==8))&&(a6==1)))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1)))&&(input==6)))))&&!(a15==1))&&!(a4==1))&&(a20==1))&&!(a0==1))){ + a22 = 1; + a0 = 1; + a27 = 1; + a3 = 5; + a6 = 0; + a4 = 1; + a12 = 8; + a15 = 1; + a18 = 1; + return -1; + } else if((((a12==9)&&(!(a15==1)&&((!(a6==1)&&(((((((a3==6)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1)))))&&(input==3))&&(a5==1))&&!(a4==1))&&(a27==1)))&&(a20==1))))&&!(a0==1))){ + a15 = 1; + a12 = 8; + a22 = 1; + a6 = 1; + a18 = 1; + a0 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if(((((a20==1)&&(((((a12==12)&&((a5==1)&&((((input==6)&&((a18==1)||!(a18==1)))&&!(a27==1))&&(a15==1))))&&!(a22==1))&&(a0==1))&&!(a4==1)))&&(a6==1))&&(a3==7))){ + a22 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + a27 = 1; + a4 = 1; + return -1; + } else if((!(a15==1)&&((((((!(a5==1)&&((!(a6==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==6)))&&(a27==1)))&&(a20==1))&&(a12==9))&&(a3==6))&&(a0==1))&&(a4==1)))){ + a18 = 0; + a0 = 0; + a3 = 8; + a6 = 1; + a22 = 1; + return 26; + } else if(((a12==11)&&(!(a6==1)&&((!(a27==1)&&((((a4==1)&&((a5==1)&&((((a20==1)&&(input==4))&&!(a0==1))&&!(a22==1))))&&!(a15==1))&&!(a18==1)))&&(a3==7))))){ + a3 = 8; + a22 = 1; + a27 = 1; + return 21; + } else if(((a22==1)&&((a18==1)&&(!(a15==1)&&((!(a27==1)&&((a12==8)&&(((((a6==1)&&((a20==1)&&(input==5)))&&(a3==4))&&(a4==1))&&(a0==1))))&&!(a5==1)))))){ + a5 = 1; + a15 = 1; + a27 = 1; + return -1; + } else if(((((!(a5==1)&&((((a15==1)&&(((a4==1)&&((a20==1)&&((input==2)&&(a22==1))))&&!(a0==1)))&&(a6==1))&&(a12==9)))&&(a3==4))&&(a18==1))&&!(a27==1))){ + if((a15==1)){ + a27 = 1; + a3 = 8; + a18 = 0; + a5 = 1; + a4 = 0; + a0 = 1; + a12 = 8; + }else{ + a5 = 1; + a27 = 1; + a3 = 5; + a0 = 1; + a12 = 8; + a22 = 0; + } + return 26; + } else if(((((a18==1)&&((((a12==11)&&(!(a4==1)&&(!(a27==1)&&(((a3==8)&&((a20==1)&&(input==4)))&&(a0==1)))))&&!(a22==1))&&(a5==1)))&&(a6==1))&&(a15==1))){ + a22 = 1; + a3 = 4; + a12 = 12; + a6 = 0; + a4 = 1; + a15 = 0; + a27 = 1; + return 24; + } else if((!(a27==1)&&((((a12==9)&&(!(a15==1)&&(!(a6==1)&&((((a3==6)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==4)))&&!(a4==1))&&!(a5==1)))))&&(a20==1))&&!(a0==1)))){ + if((a0==1)){ + a0 = 1; + a18 = 0; + a22 = 0; + a27 = 1; + a5 = 1; + a15 = 1; + a6 = 1; + a4 = 1; + a12 = 8; + a3 = 5; + }else{ + a27 = 1; + a22 = 0; + a6 = 1; + a0 = 1; + a5 = 1; + a12 = 8; + a18 = 1; + a15 = 1; + a3 = 7; + } + return -1; + } else if(((!(a27==1)&&(((a20==1)&&(!(a22==1)&&(((a6==1)&&((a12==9)&&(!(a15==1)&&(((input==2)&&((a18==1)||!(a18==1)))&&(a4==1)))))&&(a3==4))))&&!(a5==1)))&&!(a0==1))){ + a18 = 1; + a6 = 0; + a22 = 1; + a5 = 1; + a3 = 6; + a15 = 1; + a12 = 8; + a27 = 1; + a0 = 1; + return 26; + } else if((!(a5==1)&&((((a3==7)&&((a15==1)&&((((((input==5)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))&&(a0==1))&&(a12==12))&&(a20==1))&&!(a27==1))))&&(a6==1))&&(a4==1)))){ + if((a5==1)){ + a18 = 1; + a22 = 0; + a3 = 8; + a12 = 10; + a5 = 1; + a0 = 0; + a27 = 1; + a15 = 0; + }else{ + a3 = 5; + a5 = 1; + a15 = 0; + a6 = 0; + a22 = 0; + a18 = 0; + a12 = 11; + a27 = 1; + } + return 26; + } else if((((a22==1)&&((a6==1)&&(((a5==1)&&((a0==1)&&(!(a27==1)&&((((((a18==1)||!(a18==1))&&(input==2))&&(a4==1))&&(a12==9))&&(a15==1)))))&&(a20==1))))&&(a3==4))){ + a27 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if(((!(a27==1)&&((a15==1)&&((a22==1)&&((a0==1)&&(((a12==8)&&((a20==1)&&((!(a4==1)&&((input==6)&&(a18==1)))&&(a3==5))))&&!(a5==1))))))&&(a6==1))){ + a12 = 9; + a3 = 6; + a5 = 1; + a4 = 1; + return 26; + } else if((((((a15==1)&&((!(a4==1)&&(!(a6==1)&&(((input==6)&&((((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==7)))||(((a18==1)&&(a22==1))&&(a3==8))))&&(a12==8))))&&(a20==1)))&&(a27==1))&&!(a0==1))&&(a5==1))){ + a4 = 1; + a27 = 0; + a12 = 12; + a22 = 1; + a0 = 1; + a18 = 1; + a3 = 7; + return 24; + } else if(((a0==1)&&((((a12==9)&&(((a3==7)&&(((((input==6)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&(a5==1))&&(a20==1))&&(a6==1)))&&!(a4==1)))&&!(a27==1))&&!(a15==1)))){ + a12 = 12; + a27 = 1; + a3 = 5; + a6 = 0; + a22 = 0; + a4 = 1; + a18 = 1; + return -1; + } else if((((a4==1)&&(((a20==1)&&((!(a6==1)&&((a27==1)&&((!(a5==1)&&(((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==2)))&&!(a0==1))))&&(a3==4)))&&(a12==8)))&&!(a15==1))){ + a6 = 1; + a3 = 7; + a12 = 10; + a5 = 1; + a27 = 0; + a18 = 1; + a0 = 1; + a4 = 0; + a22 = 0; + return 26; + } else if((((a0==1)&&((a3==5)&&((a20==1)&&((((!(a6==1)&&((((a18==1)&&(input==2))&&(a12==9))&&!(a27==1)))&&!(a4==1))&&!(a22==1))&&!(a5==1)))))&&!(a15==1))){ + if((a3==8)){ + a4 = 1; + a3 = 4; + a18 = 0; + a27 = 1; + a12 = 10; + a6 = 1; + a0 = 0; + }else{ + a27 = 1; + a12 = 12; + a4 = 1; + a3 = 4; + a18 = 0; + } + return 21; + } else if(((a20==1)&&(((!(a15==1)&&(((!(a0==1)&&((a12==8)&&(((!(a22==1)&&(input==3))&&(a6==1))&&(a18==1))))&&(a5==1))&&(a4==1)))&&(a3==4))&&(a27==1)))){ + if((a27==1)){ + a3 = 7; + a18 = 0; + a15 = 1; + a22 = 1; + a6 = 0; + a5 = 0; + a4 = 0; + }else{ + a0 = 1; + a3 = 5; + a22 = 1; + a12 = 11; + a18 = 0; + } + return 24; + } else if(((!(a15==1)&&((((((a20==1)&&((a27==1)&&((input==5)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8))))))&&!(a6==1))&&(a12==11))&&(a5==1))&&(a4==1)))&&!(a0==1))){ + a12 = 12; + a6 = 1; + a3 = 7; + a0 = 1; + a18 = 0; + a5 = 0; + a22 = 0; + return -1; + } else if((((a12==11)&&((((a6==1)&&(!(a15==1)&&((((((input==4)&&(a0==1))&&(a22==1))&&(a27==1))&&(a3==8))&&!(a4==1))))&&(a20==1))&&(a18==1)))&&(a5==1))){ + a22 = 0; + a3 = 5; + a4 = 1; + return -1; + } else if(((a12==8)&&((!(a4==1)&&((a5==1)&&(!(a6==1)&&(!(a27==1)&&(!(a0==1)&&((a15==1)&&((((((a18==1)&&!(a22==1))&&(a3==4))||((!(a18==1)&&!(a22==1))&&(a3==4)))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==6))))))))&&(a20==1)))){ + a18 = 1; + a27 = 1; + a22 = 1; + a0 = 1; + a3 = 4; + return -1; + } else if(((a12==11)&&(((a18==1)&&((a15==1)&&((a20==1)&&(((((a3==6)&&((a4==1)&&((input==5)&&(a0==1))))&&!(a5==1))&&!(a22==1))&&!(a27==1)))))&&!(a6==1)))){ + a3 = 5; + a5 = 1; + a27 = 1; + a18 = 0; + a4 = 0; + return 26; + } else if(((((((a5==1)&&((((a3==7)&&((a20==1)&&((a15==1)&&((input==1)&&(a12==11)))))&&(a0==1))&&!(a4==1)))&&!(a22==1))&&!(a6==1))&&(a18==1))&&(a27==1))){ + a18 = 0; + a5 = 0; + a27 = 0; + a3 = 4; + a12 = 10; + a15 = 0; + return 26; + } else if((((a15==1)&&(((a3==5)&&(!(a5==1)&&((a20==1)&&(((((input==1)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(a4==1))&&(a12==12))&&(a0==1)))))&&(a6==1)))&&(a27==1))){ + a18 = 1; + a12 = 8; + a5 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if(((!(a0==1)&&(((((a6==1)&&(!(a15==1)&&((a27==1)&&(((a5==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a4==1)))))&&(a22==1))&&(a20==1))&&(a12==10)))&&(a3==4))){ + a3 = 7; + a4 = 0; + a0 = 1; + a18 = 0; + a22 = 0; + return 26; + } else if((!(a4==1)&&(!(a27==1)&&(!(a6==1)&&(((a12==12)&&(((((a0==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==1)))&&(a15==1))&&(a3==8))&&!(a5==1)))&&(a20==1)))))){ + a3 = 6; + a12 = 10; + a22 = 1; + a6 = 1; + a18 = 0; + a15 = 0; + return 21; + } else if(((a4==1)&&((a0==1)&&((a20==1)&&((a18==1)&&(!(a22==1)&&((a3==8)&&((a15==1)&&((a5==1)&&((a12==9)&&(!(a6==1)&&((input==4)&&(a27==1))))))))))))){ + a3 = 6; + a15 = 0; + a12 = 12; + a18 = 0; + return 26; + } else if(((a12==11)&&((a20==1)&&((a4==1)&&((a22==1)&&((a3==6)&&((((a0==1)&&(!(a6==1)&&(((a15==1)&&(input==2))&&!(a5==1))))&&(a27==1))&&(a18==1)))))))){ + a6 = 1; + a12 = 10; + a22 = 0; + a18 = 0; + a3 = 5; + a4 = 0; + return -1; + } else if((((((a12==11)&&(((a3==5)&&((a0==1)&&((!(a5==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==4)))&&!(a4==1))))&&(a20==1)))&&!(a15==1))&&!(a6==1))&&(a27==1))){ + a3 = 4; + a22 = 0; + a5 = 1; + a18 = 0; + return -1; + } else if(((!(a5==1)&&(((((a20==1)&&((a3==5)&&(((a12==9)&&((input==5)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))))&&(a4==1))))&&(a6==1))&&(a0==1))&&(a27==1)))&&(a15==1))){ + a22 = 0; + a12 = 10; + a0 = 0; + a18 = 1; + a6 = 0; + return 26; + } else if(((!(a15==1)&&((!(a22==1)&&(((((((((a18==1)||!(a18==1))&&(input==1))&&(a12==9))&&(a20==1))&&!(a4==1))&&!(a27==1))&&!(a5==1))&&(a6==1)))&&(a3==8)))&&!(a0==1))){ + a18 = 1; + a15 = 1; + a27 = 1; + a0 = 1; + a12 = 8; + a3 = 5; + a5 = 1; + a4 = 1; + return -1; + } else if((((a5==1)&&(!(a15==1)&&((a20==1)&&((((a6==1)&&((a12==9)&&(((((a22==1)&&(a18==1))&&(a3==8))||(((!(a22==1)&&(a18==1))&&(a3==7))||((a3==7)&&(!(a22==1)&&!(a18==1)))))&&(input==3))))&&!(a27==1))&&(a4==1)))))&&(a0==1))){ + if((a20==1)){ + a27 = 1; + a6 = 0; + a0 = 0; + a4 = 0; + a18 = 0; + a3 = 5; + a22 = 0; + a5 = 0; + }else{ + a18 = 0; + a5 = 0; + a22 = 0; + a3 = 4; + a4 = 0; + a27 = 1; + a12 = 11; + } + return 21; + } else if(((a6==1)&&((a5==1)&&(((((((a27==1)&&((input==6)&&(((a3==5)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==4))||((a3==4)&&(!(a22==1)&&!(a18==1)))))))&&(a20==1))&&!(a0==1))&&!(a15==1))&&(a4==1))&&(a12==12))))){ + a18 = 1; + a15 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + a0 = 1; + return -1; + } else if((((a27==1)&&((a18==1)&&((!(a0==1)&&((a20==1)&&(!(a6==1)&&(((((a12==11)&&(input==3))&&(a15==1))&&(a5==1))&&!(a4==1)))))&&(a22==1))))&&(a3==4))){ + a5 = 0; + a4 = 1; + a12 = 10; + a3 = 6; + a0 = 1; + a15 = 0; + return 26; + } else if(((a27==1)&&((!(a6==1)&&(((a4==1)&&(((a5==1)&&((a20==1)&&(((input==2)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1))))&&!(a0==1))))&&(a15==1)))&&(a3==6)))&&(a12==9)))){ + a6 = 1; + a12 = 8; + a22 = 1; + a18 = 1; + a0 = 1; + a3 = 4; + return -1; + } else if((!(a27==1)&&(!(a5==1)&&(!(a15==1)&&((((a22==1)&&((a6==1)&&(((a3==6)&&((a20==1)&&((input==2)&&((a18==1)||!(a18==1)))))&&!(a0==1))))&&(a4==1))&&(a12==11)))))){ + a3 = 7; + a18 = 0; + a5 = 1; + a22 = 0; + return -1; + } else if((!(a27==1)&&(((a3==8)&&(!(a5==1)&&((a4==1)&&(((a15==1)&&((a20==1)&&((((input==1)&&(a6==1))&&!(a18==1))&&(a12==11))))&&!(a0==1)))))&&(a22==1)))){ + if((a5==1)){ + a5 = 1; + a15 = 0; + a3 = 6; + a12 = 12; + a22 = 0; + a0 = 1; + a27 = 1; + }else{ + a3 = 7; + a27 = 1; + a12 = 8; + a5 = 1; + a4 = 0; + } + return 26; + } else if(((a6==1)&&(!(a0==1)&&(((a3==8)&&(((!(a5==1)&&((a22==1)&&((((input==6)&&!(a15==1))&&(a27==1))&&(a18==1))))&&(a12==10))&&(a20==1)))&&!(a4==1))))){ + a18 = 0; + a4 = 1; + a15 = 1; + a6 = 0; + a3 = 6; + a0 = 1; + return -1; + } else if((((a6==1)&&((((a12==9)&&((a4==1)&&((a0==1)&&((a15==1)&&(((((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1))))||(((a22==1)&&!(a18==1))&&(a3==6)))&&(input==4))))))&&!(a5==1))&&(a20==1)))&&(a27==1))){ + a15 = 0; + a12 = 10; + a3 = 8; + a22 = 0; + a18 = 1; + a5 = 1; + return 21; + } else if((!(a4==1)&&((a0==1)&&(((((((a20==1)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==3)))&&!(a15==1))&&!(a27==1))&&!(a6==1))&&(a5==1))&&(a12==10))))){ + a6 = 1; + a3 = 8; + a22 = 0; + a4 = 1; + a18 = 1; + return 26; + } else if((!(a4==1)&&(((((a12==11)&&((((!(a6==1)&&(((a15==1)&&(input==5))&&(a22==1)))&&(a18==1))&&(a20==1))&&!(a5==1)))&&(a3==7))&&!(a0==1))&&(a27==1)))){ + a6 = 1; + a27 = 0; + a12 = 9; + a3 = 5; + a18 = 0; + a22 = 0; + a0 = 1; + return -1; + } else if(((a0==1)&&(((!(a5==1)&&((a15==1)&&((((a12==11)&&(((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))||((a3==8)&&((a22==1)&&!(a18==1))))&&(input==2)))&&(a20==1))&&!(a6==1))))&&(a4==1))&&!(a27==1)))){ + a27 = 1; + a22 = 1; + a18 = 1; + a5 = 1; + a3 = 4; + a6 = 1; + a4 = 0; + return 21; + } else if(((!(a5==1)&&(((((a20==1)&&(!(a4==1)&&((a22==1)&&(!(a18==1)&&(((input==4)&&(a12==12))&&!(a15==1))))))&&!(a27==1))&&!(a6==1))&&(a3==4)))&&(a0==1))){ + a3 = 6; + a5 = 1; + a18 = 1; + a15 = 1; + a12 = 8; + return 26; + } else if(((a27==1)&&(((!(a5==1)&&((((a20==1)&&(((((a3==4)&&(!(a18==1)&&(a22==1)))&&!(a6==1))||((((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1))))&&(input==1)))&&(a15==1))&&(a12==10)))&&(a0==1))&&!(a4==1)))){ + a18 = 1; + a4 = 1; + a22 = 0; + a15 = 0; + a6 = 1; + a5 = 1; + a3 = 7; + a27 = 0; + return 26; + } else if(((!(a22==1)&&(!(a4==1)&&((a12==8)&&((a6==1)&&(((a3==5)&&((a0==1)&&(!(a5==1)&&(!(a27==1)&&(((a18==1)||!(a18==1))&&(input==6))))))&&(a20==1))))))&&(a15==1))){ + a22 = 1; + a5 = 1; + a18 = 1; + a6 = 0; + a27 = 1; + return 21; + } else if((((a0==1)&&(((((!(a15==1)&&((a5==1)&&((a3==7)&&(((input==2)&&((a18==1)||!(a18==1)))&&!(a6==1)))))&&!(a22==1))&&(a20==1))&&!(a27==1))&&(a4==1)))&&(a12==10))){ + a3 = 5; + a18 = 1; + a15 = 1; + a22 = 1; + a4 = 0; + return 21; + } else if(((a4==1)&&((((((a3==4)&&((a0==1)&&(!(a5==1)&&((!(a15==1)&&(!(a6==1)&&(input==4)))&&(a20==1)))))&&(a18==1))&&(a22==1))&&(a27==1))&&(a12==12)))){ + a12 = 11; + a3 = 8; + a6 = 1; + a18 = 0; + a22 = 0; + return 26; + } else if(((((a20==1)&&((a3==8)&&(!(a15==1)&&((!(a0==1)&&(((a5==1)&&(!(a6==1)&&((input==1)&&!(a4==1))))&&(a22==1)))&&(a18==1)))))&&!(a27==1))&&(a12==9))){ + a4 = 1; + a12 = 12; + a27 = 1; + a22 = 0; + a6 = 1; + a18 = 0; + a3 = 7; + return -1; + } else if((!(a4==1)&&(!(a6==1)&&((a0==1)&&((a20==1)&&((a5==1)&&((((((((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a22==1)&&(a18==1))))||((!(a18==1)&&(a22==1))&&(a3==6)))&&(input==3))&&!(a27==1))&&(a12==12))&&(a15==1)))))))){ + a3 = 7; + a22 = 0; + a12 = 8; + a18 = 1; + return -1; + } else if((((!(a0==1)&&((a20==1)&&((((((input==5)&&(((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1)))))&&!(a6==1))&&(a12==12))&&(a5==1))&&(a27==1))))&&!(a15==1))&&!(a4==1))){ + a6 = 1; + a3 = 6; + a12 = 8; + a15 = 1; + a0 = 1; + a18 = 1; + a22 = 0; + return -1; + } else if((!(a15==1)&&((!(a0==1)&&((a3==7)&&((a20==1)&&((((a12==10)&&((a4==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==2))))&&(a27==1))&&!(a5==1)))))&&!(a6==1)))){ + a12 = 8; + a18 = 1; + a6 = 1; + a22 = 1; + a3 = 4; + a5 = 1; + a15 = 1; + a0 = 1; + return -1; + } else if(((!(a6==1)&&((a27==1)&&(((((a4==1)&&(((a0==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==4)))&&!(a15==1)))&&(a3==7))&&(a20==1))&&!(a5==1))))&&(a12==11))){ + a15 = 1; + a22 = 0; + a6 = 1; + a18 = 0; + a3 = 8; + a5 = 1; + a12 = 12; + return 21; + } else if(((((a20==1)&&(((a6==1)&&(((a4==1)&&((((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&!(a27==1))&&(a15==1)))&&(a3==7)))&&!(a5==1)))&&(a12==10))&&!(a0==1))){ + a12 = 8; + a18 = 1; + a22 = 0; + a5 = 1; + a0 = 1; + a27 = 1; + a4 = 0; + a3 = 6; + return -1; + } else if(((a12==8)&&((a4==1)&&(!(a27==1)&&(!(a0==1)&&(((a20==1)&&(!(a6==1)&&(!(a5==1)&&((input==5)&&(((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))))))&&(a15==1))))))){ + a18 = 0; + a22 = 1; + a12 = 11; + a4 = 0; + a0 = 1; + a3 = 4; + return 21; + } else if((((a27==1)&&((a6==1)&&((((a5==1)&&((a15==1)&&(!(a0==1)&&((a12==12)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==6))))))&&!(a4==1))&&(a3==5))))&&(a20==1))){ + a6 = 0; + a3 = 4; + a0 = 1; + a12 = 10; + a5 = 0; + a18 = 0; + a22 = 0; + return -1; + } else if(((a15==1)&&(!(a6==1)&&(!(a18==1)&&(((((a4==1)&&(((a0==1)&&(((a20==1)&&(input==5))&&(a3==7)))&&(a12==9)))&&(a5==1))&&!(a22==1))&&!(a27==1)))))){ + a3 = 4; + a22 = 1; + a6 = 1; + a12 = 8; + a27 = 1; + a18 = 1; + return -1; + } else if((((((((a5==1)&&(((a20==1)&&((a12==12)&&((((a18==1)||!(a18==1))&&(input==5))&&(a3==7))))&&!(a22==1)))&&!(a15==1))&&!(a27==1))&&!(a6==1))&&!(a4==1))&&(a0==1))){ + a18 = 1; + a22 = 1; + a12 = 10; + a15 = 1; + a27 = 1; + a5 = 0; + return 26; + } else if(((((!(a22==1)&&(((a3==4)&&(!(a6==1)&&((a0==1)&&((!(a5==1)&&(!(a27==1)&&(input==4)))&&!(a15==1)))))&&(a12==9)))&&(a20==1))&&(a4==1))&&!(a18==1))){ + a4 = 0; + a3 = 8; + a5 = 1; + a15 = 1; + a12 = 12; + return 26; + } else if(((!(a15==1)&&(((a22==1)&&(((((a20==1)&&((((input==5)&&!(a18==1))&&(a3==8))&&!(a0==1)))&&(a6==1))&&!(a27==1))&&(a4==1)))&&(a12==10)))&&!(a5==1))){ + a3 = 4; + a27 = 1; + a5 = 1; + a0 = 1; + a4 = 0; + a12 = 8; + a6 = 0; + return 26; + } else if(((a15==1)&&((a3==6)&&((!(a5==1)&&(((a12==11)&&(((a18==1)&&((((input==1)&&!(a22==1))&&(a4==1))&&!(a6==1)))&&(a0==1)))&&!(a27==1)))&&(a20==1))))){ + a18 = 0; + a5 = 1; + a27 = 1; + a4 = 0; + a3 = 8; + a15 = 0; + return 26; + } else if((!(a18==1)&&(((a12==10)&&(((((!(a0==1)&&((!(a6==1)&&((input==2)&&(a15==1)))&&(a4==1)))&&(a22==1))&&(a20==1))&&!(a5==1))&&(a27==1)))&&(a3==5)))){ + a12 = 9; + a0 = 1; + a6 = 1; + a3 = 7; + a22 = 0; + return 21; + } else if(((a5==1)&&(!(a6==1)&&(((a3==5)&&(((a20==1)&&(((a12==10)&&(!(a0==1)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==5))))&&(a15==1)))&&(a27==1)))&&!(a4==1))))){ + a5 = 0; + a0 = 1; + a3 = 7; + a22 = 0; + a15 = 0; + a4 = 1; + a18 = 0; + return 26; + } else if(((((a27==1)&&(((a20==1)&&((((((((a18==1)||!(a18==1))&&(input==5))&&(a3==6))&&(a5==1))&&(a12==11))&&!(a22==1))&&!(a4==1)))&&!(a0==1)))&&(a6==1))&&(a15==1))){ + a3 = 4; + a18 = 1; + a0 = 1; + a12 = 10; + a5 = 0; + return 21; + } else if((!(a27==1)&&(((!(a0==1)&&((((a15==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))&&(input==4))&&!(a4==1)))&&(a6==1))&&(a20==1)))&&!(a5==1))&&(a12==9)))){ + a5 = 1; + a12 = 11; + a18 = 0; + a15 = 0; + a3 = 5; + a4 = 1; + a27 = 1; + a22 = 0; + return 26; + } else if((((a5==1)&&((((a20==1)&&((a6==1)&&(((a12==8)&&(!(a27==1)&&((input==1)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))))))&&(a0==1))))&&!(a4==1))&&(a3==6)))&&!(a15==1))){ + a4 = 1; + a18 = 1; + a22 = 1; + a27 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if(((a3==4)&&((a6==1)&&(!(a22==1)&&((a4==1)&&((a12==10)&&(((!(a0==1)&&(((((a18==1)||!(a18==1))&&(input==1))&&(a20==1))&&!(a15==1)))&&!(a27==1))&&(a5==1)))))))){ + a3 = 7; + a0 = 1; + a12 = 8; + a15 = 1; + a27 = 1; + a22 = 1; + a18 = 1; + return -1; + } else if((!(a27==1)&&(((a0==1)&&(((a20==1)&&(!(a5==1)&&(((a12==9)&&(!(a6==1)&&(((input==6)&&!(a15==1))&&!(a18==1))))&&(a22==1))))&&(a3==7)))&&(a4==1)))){ + if((a20==1)){ + a18 = 1; + a3 = 6; + a5 = 1; + a0 = 0; + a6 = 1; + a12 = 11; + a27 = 1; + a22 = 0; + }else{ + a22 = 0; + a18 = 1; + a6 = 1; + a12 = 10; + a4 = 0; + } + return 26; + } else if(((((a12==9)&&(((a3==8)&&(!(a27==1)&&((a20==1)&&(!(a5==1)&&((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==1))&&(a6==1))))))&&!(a4==1)))&&(a15==1))&&!(a0==1))){ + if((a27==1)){ + a6 = 0; + a0 = 1; + a22 = 0; + a12 = 10; + a4 = 1; + a3 = 6; + a18 = 1; + a27 = 1; + }else{ + a12 = 8; + a6 = 0; + a18 = 1; + a22 = 1; + a3 = 4; + a4 = 1; + } + return -1; + } else if((((((a6==1)&&(((!(a0==1)&&((a27==1)&&(!(a4==1)&&(((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==1)))))&&(a5==1))&&(a15==1)))&&(a3==5))&&(a12==12))&&(a20==1))){ + a3 = 8; + a15 = 0; + a5 = 0; + a12 = 10; + a22 = 1; + a0 = 1; + a18 = 1; + a4 = 1; + return 21; + } else if(((((!(a4==1)&&((((((a3==4)&&(((input==5)&&((a18==1)||!(a18==1)))&&(a15==1)))&&(a12==11))&&(a20==1))&&!(a6==1))&&(a5==1)))&&!(a27==1))&&!(a22==1))&&(a0==1))){ + a15 = 0; + a12 = 10; + a27 = 1; + a18 = 1; + return 26; + } else if((((a0==1)&&(!(a6==1)&&((a4==1)&&((a12==12)&&(((!(a15==1)&&(((((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))||((a3==8)&&((a22==1)&&!(a18==1))))&&(input==3)))&&(a5==1))&&(a20==1))))))&&!(a27==1))){ + a3 = 4; + a18 = 0; + a4 = 0; + a22 = 1; + a12 = 9; + return -1; + } else if(((!(a5==1)&&(((!(a27==1)&&((a12==9)&&((((input==2)&&(((!(a18==1)&&(a22==1))&&(a3==8))||(((a3==7)&&(!(a18==1)&&!(a22==1)))||((a3==8)&&((a22==1)&&(a18==1))))))&&(a20==1))&&!(a4==1))))&&(a15==1))&&!(a6==1)))&&(a0==1))){ + a3 = 7; + a4 = 1; + a27 = 1; + a22 = 1; + a6 = 1; + a18 = 1; + a12 = 10; + return 26; + } else if(((a0==1)&&(!(a6==1)&&((a5==1)&&((((((((a15==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a3==7))&&(a27==1))&&(a12==9))&&(a20==1))&&(a22==1))&&!(a4==1)))))){ + a3 = 4; + a12 = 8; + a6 = 1; + a18 = 1; + a4 = 1; + return -1; + } else if(((!(a4==1)&&((a27==1)&&((a12==12)&&(!(a5==1)&&(!(a0==1)&&(((a3==8)&&((((a15==1)&&(input==2))&&!(a22==1))&&!(a6==1)))&&(a20==1)))))))&&(a18==1))){ + a27 = 0; + a12 = 11; + a0 = 1; + a18 = 0; + a3 = 6; + return 21; + } else if((((!(a5==1)&&(((((((a3==8)&&(((input==3)&&((a18==1)||!(a18==1)))&&!(a22==1)))&&(a27==1))&&(a15==1))&&!(a4==1))&&!(a0==1))&&(a20==1)))&&!(a6==1))&&(a12==11))){ + a0 = 1; + a18 = 1; + a12 = 8; + a3 = 7; + a27 = 0; + return 26; + } else if(((a4==1)&&(!(a0==1)&&(((a12==12)&&(((a15==1)&&(!(a5==1)&&((a20==1)&&(((((a22==1)&&!(a18==1))&&(a3==5))||(((!(a22==1)&&!(a18==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5))))&&(input==2)))))&&(a6==1)))&&(a27==1))))){ + if((a3==7)){ + a18 = 0; + a4 = 0; + a22 = 1; + a3 = 7; + a12 = 9; + }else{ + a6 = 0; + a0 = 1; + a22 = 0; + a12 = 8; + a5 = 1; + a18 = 0; + a3 = 4; + } + return 26; + } else if(((a4==1)&&(!(a6==1)&&(!(a5==1)&&(((((a15==1)&&((a0==1)&&((input==5)&&(((a3==5)&&((a18==1)&&(a22==1)))||(((!(a22==1)&&(a18==1))&&(a3==4))||((a3==4)&&(!(a18==1)&&!(a22==1))))))))&&(a27==1))&&(a20==1))&&(a12==9)))))){ + a27 = 0; + a6 = 1; + a5 = 1; + a18 = 1; + a3 = 5; + a12 = 8; + a22 = 0; + a4 = 0; + a15 = 0; + return 21; + } else if(((!(a22==1)&&((a27==1)&&(((a5==1)&&((a15==1)&&((((!(a0==1)&&(((a18==1)||!(a18==1))&&(input==3)))&&!(a4==1))&&(a20==1))&&(a3==4))))&&(a6==1))))&&(a12==9))){ + a0 = 1; + a22 = 1; + a3 = 7; + a12 = 11; + a4 = 1; + a27 = 0; + a18 = 0; + return 21; + } else if((((a20==1)&&((((a6==1)&&((a3==5)&&((((!(a15==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&!(a27==1))&&(a5==1))&&(a4==1))))&&(a0==1))&&(a12==9)))&&(a22==1))){ + a22 = 0; + a12 = 11; + a4 = 0; + a18 = 0; + a3 = 8; + return 21; + } else if((!(a27==1)&&((((a3==4)&&((a12==9)&&(!(a4==1)&&((!(a0==1)&&((((a18==1)&&(input==4))&&(a20==1))&&!(a5==1)))&&(a6==1)))))&&!(a22==1))&&(a15==1)))){ + if((a22==1)){ + a5 = 1; + a12 = 8; + a27 = 1; + a22 = 1; + a3 = 6; + a0 = 1; + a4 = 1; + }else{ + a3 = 5; + a27 = 1; + a12 = 8; + a22 = 1; + a15 = 0; + a0 = 1; + a6 = 0; + a18 = 0; + } + return 21; + } else if(((a18==1)&&((a3==8)&&((a12==8)&&(((a0==1)&&((a5==1)&&((a22==1)&&((a15==1)&&((a6==1)&&((a4==1)&&((a20==1)&&(input==1))))))))&&!(a27==1)))))){ + a4 = 0; + a27 = 1; + a18 = 0; + a22 = 0; + a3 = 4; + a12 = 10; + return 26; + } else if(((a6==1)&&((a3==7)&&(((!(a4==1)&&(((((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==3))&&!(a0==1))&&(a15==1))&&(a12==9))&&(a5==1)))&&(a27==1))&&(a20==1))))){ + a12 = 8; + a18 = 1; + a0 = 1; + a3 = 4; + a4 = 1; + a22 = 1; + return -1; + } else if(((a12==12)&&((a20==1)&&(((!(a0==1)&&(((((((!(a22==1)&&!(a18==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==3))&&(a6==1))&&(a5==1))&&(a27==1)))&&!(a15==1))&&!(a4==1))))){ + a18 = 1; + a6 = 0; + a3 = 7; + a0 = 1; + a12 = 9; + a22 = 0; + a4 = 1; + return 21; + } else if(((a15==1)&&((((((((((((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==4)))||((a3==5)&&((a18==1)&&(a22==1))))&&(input==6))&&(a5==1))&&(a27==1))&&(a20==1))&&(a12==10))&&!(a0==1))&&!(a4==1))&&!(a6==1)))){ + a18 = 1; + a6 = 1; + a22 = 1; + a12 = 8; + a4 = 1; + a0 = 1; + a3 = 4; + return -1; + } else if(((a0==1)&&(((!(a27==1)&&((((a15==1)&&(!(a6==1)&&((a3==7)&&((input==5)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))))))&&!(a5==1))&&(a12==10)))&&!(a4==1))&&(a20==1)))){ + a22 = 1; + a6 = 1; + a4 = 1; + a27 = 1; + a12 = 8; + a5 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if((!(a27==1)&&((!(a18==1)&&(!(a4==1)&&((a22==1)&&((a20==1)&&((((!(a15==1)&&((input==3)&&!(a5==1)))&&(a6==1))&&(a12==10))&&(a3==5))))))&&(a0==1)))){ + a27 = 1; + a5 = 1; + a12 = 11; + a3 = 6; + a0 = 0; + return 21; + } else if((!(a0==1)&&(((a20==1)&&((a12==10)&&((a27==1)&&((((a5==1)&&((input==6)&&(((!(a18==1)&&(a22==1))&&(a3==5))||(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5))))))&&(a15==1))&&(a6==1)))))&&!(a4==1)))){ + a4 = 1; + a22 = 1; + a0 = 1; + a3 = 7; + a12 = 12; + a18 = 1; + return -1; + } else if((((a20==1)&&((a12==9)&&((a15==1)&&(!(a5==1)&&(!(a6==1)&&((((input==3)&&((((!(a22==1)&&(a18==1))&&(a3==7))||((!(a22==1)&&!(a18==1))&&(a3==7)))||((a3==8)&&((a22==1)&&(a18==1)))))&&(a0==1))&&(a27==1)))))))&&!(a4==1))){ + a4 = 1; + a5 = 1; + a12 = 12; + a22 = 1; + a18 = 0; + a3 = 8; + return 24; + } else if(((!(a0==1)&&((a3==4)&&((((a15==1)&&((a20==1)&&((a5==1)&&(!(a6==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1)))&&(input==6))))))&&!(a27==1))&&(a12==9))))&&!(a4==1))){ + a4 = 1; + a22 = 1; + a27 = 1; + a0 = 1; + a12 = 8; + a3 = 5; + a18 = 1; + return 21; + } else if((((a20==1)&&(((a3==7)&&((a12==9)&&(((!(a0==1)&&((((input==6)&&((a18==1)||!(a18==1)))&&!(a4==1))&&(a27==1)))&&!(a22==1))&&!(a5==1))))&&!(a15==1)))&&(a6==1))){ + a5 = 1; + a4 = 1; + a15 = 1; + a18 = 1; + a22 = 1; + a12 = 8; + a3 = 4; + a0 = 1; + return -1; + } else if(((!(a15==1)&&((a0==1)&&(((a12==10)&&((a3==7)&&(!(a5==1)&&((((a6==1)&&((input==5)&&!(a22==1)))&&(a27==1))&&!(a4==1)))))&&(a20==1))))&&(a18==1))){ + a5 = 1; + a12 = 8; + a22 = 1; + a15 = 1; + a3 = 4; + a4 = 1; + return -1; + } else if((((((a12==11)&&(((a20==1)&&(!(a5==1)&&((a15==1)&&((a0==1)&&((a3==7)&&((input==4)&&((a18==1)||!(a18==1))))))))&&(a6==1)))&&!(a4==1))&&!(a22==1))&&(a27==1))){ + a6 = 0; + a4 = 1; + a18 = 0; + a3 = 8; + return -1; + } else if((!(a5==1)&&((!(a6==1)&&(!(a18==1)&&(((a22==1)&&(!(a27==1)&&((a4==1)&&((a15==1)&&(((input==5)&&(a20==1))&&(a3==6))))))&&(a0==1))))&&(a12==11)))){ + a6 = 1; + a12 = 8; + a3 = 4; + a5 = 1; + a18 = 1; + a27 = 1; + return -1; + } else if((((((!(a5==1)&&((a12==11)&&((a20==1)&&(!(a4==1)&&((input==2)&&((((a3==6)&&((a18==1)&&!(a22==1)))||((a3==6)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==7))))))))&&(a27==1))&&!(a15==1))&&!(a6==1))&&(a0==1))){ + a15 = 1; + a12 = 10; + a22 = 0; + a18 = 1; + a5 = 1; + a3 = 8; + return -1; + } else if((!(a4==1)&&(((a15==1)&&(((((((((a3==5)&&(!(a18==1)&&!(a22==1)))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==5))&&!(a5==1))&&(a20==1))&&!(a0==1))&&(a27==1))&&!(a6==1)))&&(a12==8)))){ + a27 = 0; + a12 = 11; + a5 = 1; + a18 = 0; + a0 = 1; + a22 = 1; + a3 = 7; + a6 = 1; + return 24; + } else if((((!(a4==1)&&(!(a27==1)&&(!(a0==1)&&((a3==5)&&(!(a6==1)&&((a12==8)&&(!(a15==1)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==1)))))))))&&(a5==1))&&(a20==1))){ + a22 = 1; + a18 = 1; + a0 = 1; + a4 = 1; + a6 = 1; + a15 = 1; + a3 = 6; + return -1; + } else if(((a22==1)&&((!(a15==1)&&(!(a5==1)&&((a12==11)&&((!(a0==1)&&((a20==1)&&(((a3==4)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a6==1))))&&(a27==1)))))&&(a4==1)))){ + a4 = 0; + a18 = 0; + a22 = 0; + a0 = 1; + a6 = 0; + return -1; + } else if(((a20==1)&&((a15==1)&&((((a12==9)&&(!(a5==1)&&((a3==6)&&(((a0==1)&&(!(a27==1)&&(!(a18==1)&&(input==4))))&&(a4==1)))))&&!(a6==1))&&!(a22==1))))){ + a12 = 12; + a27 = 1; + a5 = 1; + a22 = 1; + a3 = 5; + a15 = 0; + return -1; + } else if((!(a27==1)&&((a20==1)&&((!(a4==1)&&((a6==1)&&(((a3==4)&&((a5==1)&&(!(a0==1)&&((a18==1)&&((input==4)&&!(a22==1))))))&&(a12==9))))&&!(a15==1))))){ + if((a0==1)){ + a0 = 1; + a12 = 8; + a15 = 1; + a3 = 5; + a27 = 1; + }else{ + a0 = 1; + a18 = 0; + a12 = 8; + a27 = 1; + a15 = 1; + a4 = 1; + a3 = 5; + } + return -1; + } else if((!(a22==1)&&(((a12==10)&&((((a0==1)&&(((!(a18==1)&&(!(a27==1)&&((input==2)&&!(a4==1))))&&!(a5==1))&&(a20==1)))&&(a6==1))&&(a3==6)))&&!(a15==1)))){ + a5 = 1; + a3 = 4; + a18 = 1; + a4 = 1; + a15 = 1; + a12 = 12; + return 26; + } else if((((((!(a27==1)&&((((a15==1)&&(!(a4==1)&&((a20==1)&&((input==1)&&!(a22==1)))))&&!(a6==1))&&!(a18==1)))&&!(a5==1))&&(a12==10))&&!(a0==1))&&(a3==8))){ + a0 = 1; + a5 = 1; + a27 = 1; + a3 = 4; + a6 = 1; + a12 = 8; + return 21; + } else if((!(a6==1)&&((a4==1)&&(((((!(a5==1)&&(!(a0==1)&&(((a27==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a3==7))))&&(a22==1))&&(a12==9))&&(a20==1))&&!(a15==1))))){ + a18 = 0; + a4 = 0; + a3 = 6; + a0 = 1; + a6 = 1; + return 21; + } else if((((a5==1)&&(((a27==1)&&(!(a6==1)&&(!(a4==1)&&(((a15==1)&&((input==2)&&(((a3==5)&&((a18==1)&&(a22==1)))||(((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a22==1)&&!(a18==1)))))))&&(a12==8)))))&&(a0==1)))&&(a20==1))){ + a4 = 1; + a18 = 1; + a22 = 0; + a6 = 1; + a15 = 0; + a3 = 4; + return 21; + } else if(((((!(a0==1)&&((((a22==1)&&((!(a4==1)&&((a3==7)&&((input==2)&&(a18==1))))&&(a27==1)))&&(a20==1))&&(a12==9)))&&(a5==1))&&(a6==1))&&(a15==1))){ + a15 = 0; + a12 = 8; + a4 = 1; + a5 = 0; + a0 = 1; + a3 = 4; + a18 = 0; + return 21; + } else if(((a20==1)&&(((a4==1)&&((((a12==11)&&(!(a0==1)&&(((((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))||(!(a6==1)&&(((a22==1)&&(a18==1))&&(a3==4))))||(!(a6==1)&&((a3==4)&&(!(a18==1)&&(a22==1)))))&&(input==2))))&&(a5==1))&&!(a27==1)))&&(a15==1)))){ + if((a12==11)){ + a3 = 7; + a18 = 1; + a22 = 0; + a0 = 1; + a6 = 1; + a4 = 0; + a12 = 8; + a27 = 1; + }else{ + a6 = 1; + a22 = 0; + a18 = 0; + a12 = 8; + a3 = 7; + a27 = 1; + a4 = 0; + a0 = 1; + } + return -1; + } else if(((a4==1)&&((a15==1)&&(((a20==1)&&((a5==1)&&((((a0==1)&&((input==3)&&(((a3==8)&&((a22==1)&&(a18==1)))||(((a3==7)&&(!(a22==1)&&(a18==1)))||((a3==7)&&(!(a18==1)&&!(a22==1)))))))&&(a12==12))&&(a6==1))))&&!(a27==1))))){ + if((a12==12)){ + a27 = 1; + a0 = 0; + a18 = 1; + a22 = 0; + a3 = 5; + a4 = 0; + a6 = 0; + }else{ + a27 = 1; + a18 = 1; + a22 = 1; + a3 = 5; + a15 = 0; + a5 = 0; + a6 = 0; + } + return -1; + } else if((((a6==1)&&(((a20==1)&&((!(a22==1)&&(((a15==1)&&(!(a27==1)&&((((a18==1)||!(a18==1))&&(input==2))&&(a12==10))))&&(a0==1)))&&(a3==6)))&&(a5==1)))&&!(a4==1))){ + a18 = 1; + a12 = 11; + a15 = 0; + a27 = 1; + a6 = 0; + a3 = 8; + return 21; + } else if(((!(a0==1)&&(!(a22==1)&&((a20==1)&&(!(a6==1)&&(((!(a27==1)&&(((a4==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a15==1)))&&(a12==10))&&(a3==6))))))&&!(a5==1))){ + if((a3==8)){ + a4 = 0; + a3 = 7; + a6 = 1; + a12 = 9; + a18 = 0; + a0 = 1; + }else{ + a0 = 1; + a22 = 1; + a5 = 1; + a27 = 1; + a12 = 8; + a18 = 0; + } + return -1; + } else if((!(a18==1)&&(((a27==1)&&((a6==1)&&(((a20==1)&&((((((a15==1)&&(input==5))&&(a22==1))&&(a12==10))&&(a4==1))&&(a3==7)))&&(a0==1))))&&!(a5==1)))){ + a6 = 0; + a3 = 8; + a5 = 1; + a15 = 0; + a4 = 0; + a18 = 1; + return -1; + } else if((((a3==7)&&(!(a4==1)&&((a15==1)&&((((a20==1)&&(!(a18==1)&&((a27==1)&&(!(a6==1)&&(!(a5==1)&&(input==5))))))&&!(a0==1))&&!(a22==1)))))&&(a12==12))){ + a6 = 1; + a3 = 5; + a27 = 0; + a12 = 10; + a18 = 1; + a4 = 1; + a15 = 0; + a5 = 1; + return 24; + } return calculate_output81(input); + } + + int calculate_output81(int input) { + if(((!(a15==1)&&(!(a0==1)&&((((a5==1)&&((a12==11)&&(!(a27==1)&&((input==1)&&(((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a22==1)&&(a18==1))))))))&&!(a6==1))&&!(a4==1))))&&(a20==1))){ + a3 = 4; + a6 = 1; + a18 = 0; + a27 = 1; + a15 = 1; + a0 = 1; + a4 = 1; + a12 = 8; + a22 = 1; + return -1; + } else if(((a27==1)&&((((a12==12)&&(((((!(a6==1)&&((a3==8)&&((a4==1)&&(!(a22==1)&&!(a18==1)))))||(((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))&&(a6==1)))&&(input==2))&&(a20==1))&&!(a5==1)))&&(a15==1))&&(a0==1)))){ + a3 = 4; + a18 = 0; + a6 = 1; + a22 = 1; + a5 = 1; + a12 = 10; + a4 = 1; + return -1; + } else if(((((((a6==1)&&((!(a5==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==1))&&(a20==1))&&(a15==1)))&&(a0==1)))&&(a12==10))&&!(a4==1))&&(a3==8))&&(a27==1))){ + a4 = 1; + a22 = 0; + a18 = 0; + a5 = 1; + a15 = 0; + a6 = 0; + return -1; + } else if((!(a27==1)&&((a6==1)&&(((a5==1)&&((a12==10)&&(((a20==1)&&(((a15==1)&&((input==2)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1))))))&&(a3==6)))&&!(a4==1))))&&!(a0==1))))){ + a27 = 1; + a22 = 0; + a6 = 0; + a4 = 1; + a3 = 4; + a18 = 1; + return 21; + } else if((((a20==1)&&((a6==1)&&(((a3==5)&&(!(a0==1)&&(((a12==8)&&((((input==3)&&((a18==1)||!(a18==1)))&&!(a5==1))&&(a27==1)))&&(a22==1))))&&!(a15==1))))&&!(a4==1))){ + a15 = 1; + a5 = 1; + a4 = 1; + a0 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((!(a18==1)&&((a22==1)&&((a12==10)&&(((((((a3==8)&&((a27==1)&&(input==5)))&&!(a6==1))&&!(a15==1))&&!(a4==1))&&(a20==1))&&(a0==1)))))&&(a5==1))){ + a22 = 0; + a12 = 12; + a0 = 0; + a15 = 1; + a18 = 1; + return -1; + } else if((((a6==1)&&((((a3==5)&&((((((input==5)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))&&(a4==1))&&(a20==1))&&(a27==1))&&!(a5==1)))&&!(a15==1))&&(a12==9)))&&!(a0==1))){ + a12 = 8; + a0 = 1; + a18 = 0; + a22 = 1; + a3 = 6; + a4 = 0; + a6 = 0; + a15 = 1; + return 21; + } else if((((((a0==1)&&((a27==1)&&(!(a4==1)&&(((((input==2)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&!(a5==1))&&!(a15==1))&&(a20==1)))))&&(a3==6))&&(a6==1))&&(a12==8))){ + a5 = 1; + a22 = 1; + a18 = 1; + a3 = 4; + a15 = 1; + a4 = 1; + return -1; + } else if(((!(a0==1)&&((a27==1)&&(((input==1)&&(((!(a6==1)&&((a3==8)&&((!(a15==1)&&((a5==1)&&((a18==1)&&!(a22==1))))&&!(a4==1))))||(((!(a4==1)&&(((!(a22==1)&&!(a18==1))&&(a5==1))&&!(a15==1)))&&(a3==8))&&!(a6==1)))||((a6==1)&&((a3==4)&&((a4==1)&&((a15==1)&&(((a18==1)&&(a22==1))&&!(a5==1))))))))&&(a20==1))))&&(a12==8))){ + a18 = 1; + a15 = 1; + a6 = 0; + a5 = 1; + a22 = 0; + a4 = 1; + a3 = 5; + a27 = 0; + a12 = 11; + a0 = 1; + return 24; + } else if(((!(a27==1)&&((a20==1)&&((((((a18==1)&&((a12==8)&&((!(a0==1)&&(input==2))&&(a5==1))))&&(a4==1))&&(a22==1))&&(a6==1))&&!(a15==1))))&&(a3==5))){ + a27 = 1; + a6 = 0; + a0 = 1; + a3 = 6; + a15 = 1; + return -1; + } else if(((a15==1)&&((((!(a27==1)&&(((a4==1)&&(((input==4)&&(((!(a18==1)&&(a22==1))&&(a3==5))||(((a3==4)&&(!(a18==1)&&!(a22==1)))||((a3==5)&&((a18==1)&&(a22==1))))))&&!(a5==1)))&&(a12==10)))&&(a6==1))&&(a20==1))&&!(a0==1)))){ + if((a15==1)){ + a12 = 12; + a3 = 8; + a22 = 1; + a0 = 1; + a27 = 1; + a18 = 1; + }else{ + a5 = 1; + a0 = 1; + a27 = 1; + a22 = 1; + a3 = 5; + a6 = 0; + a12 = 8; + a18 = 0; + } + return -1; + } else if(((a27==1)&&((a5==1)&&((((((a12==10)&&((!(a18==1)&&(!(a15==1)&&((a4==1)&&(input==5))))&&(a3==6)))&&(a20==1))&&(a0==1))&&(a6==1))&&!(a22==1))))){ + a0 = 0; + a4 = 0; + a5 = 0; + a22 = 1; + a6 = 0; + a15 = 1; + a3 = 7; + a12 = 8; + return 24; + } else if((((a6==1)&&((a3==4)&&((a20==1)&&((((a0==1)&&(!(a15==1)&&((a12==12)&&((input==5)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))))))&&!(a5==1))&&!(a4==1)))))&&(a27==1))){ + a6 = 0; + a15 = 1; + a22 = 1; + a18 = 0; + return 21; + } else if(((((a12==11)&&(((a3==7)&&((!(a27==1)&&(((a22==1)&&(((input==1)&&!(a0==1))&&(a5==1)))&&!(a15==1)))&&!(a6==1)))&&(a18==1)))&&!(a4==1))&&(a20==1))){ + if((a18==1)){ + a22 = 0; + a27 = 1; + a6 = 1; + a15 = 1; + a0 = 1; + a12 = 8; + a3 = 5; + }else{ + a27 = 1; + a0 = 1; + a3 = 6; + a15 = 1; + a12 = 8; + a6 = 1; + a18 = 0; + } + return 26; + } else if((((a20==1)&&(!(a15==1)&&((((!(a4==1)&&(((((!(a18==1)&&!(a22==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==5))&&(a12==10)))&&(a27==1))&&(a0==1))&&(a5==1))))&&!(a6==1))){ + a18 = 1; + a12 = 12; + a4 = 1; + a0 = 0; + a22 = 0; + a3 = 7; + a15 = 1; + return -1; + } else if((((((a0==1)&&(((a3==5)&&(((a12==8)&&(!(a5==1)&&(((input==2)&&(a20==1))&&!(a22==1))))&&(a6==1)))&&!(a15==1)))&&(a18==1))&&(a27==1))&&(a4==1))){ + a15 = 1; + a3 = 4; + a22 = 1; + a5 = 1; + return -1; + } else if((!(a15==1)&&((a12==9)&&((a20==1)&&((!(a6==1)&&((!(a4==1)&&((a0==1)&&(((((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==7)))||((a3==7)&&(!(a18==1)&&(a22==1))))&&(input==2))))&&(a5==1)))&&(a27==1)))))){ + a22 = 1; + a27 = 0; + a3 = 8; + a12 = 8; + a15 = 1; + a18 = 0; + a6 = 1; + return 26; + } else if(((((a3==5)&&((a12==12)&&(((a15==1)&&((a5==1)&&((!(a6==1)&&((((a18==1)||!(a18==1))&&(input==6))&&(a20==1)))&&!(a0==1))))&&!(a22==1))))&&(a27==1))&&(a4==1))){ + a6 = 1; + a5 = 0; + a0 = 1; + a3 = 7; + a12 = 9; + a4 = 0; + a27 = 0; + a22 = 1; + a18 = 0; + return -1; + } else if((((((a20==1)&&((!(a6==1)&&((((a0==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==3)))&&(a3==5))&&!(a5==1)))&&(a4==1)))&&(a12==9))&&(a15==1))&&!(a27==1))){ + a3 = 6; + a22 = 0; + a4 = 0; + a12 = 12; + a5 = 1; + a18 = 0; + a27 = 1; + return 21; + } else if((((((((a20==1)&&(((a3==4)&&(((!(a0==1)&&(input==1))&&(a4==1))&&(a18==1)))&&(a5==1)))&&!(a22==1))&&!(a15==1))&&(a6==1))&&(a27==1))&&(a12==10))){ + if((a4==1)){ + a5 = 0; + a3 = 5; + a4 = 0; + a12 = 11; + a15 = 1; + a22 = 1; + }else{ + a5 = 0; + a4 = 0; + a0 = 1; + a18 = 0; + a3 = 7; + a12 = 11; + } + return 21; + } else if((((a20==1)&&((((!(a15==1)&&((!(a27==1)&&(((input==6)&&((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&!(a5==1)))&&!(a6==1)))&&(a4==1))&&(a12==12))&&(a3==6)))&&(a0==1))){ + a6 = 1; + a15 = 1; + a27 = 1; + a3 = 8; + a0 = 0; + a18 = 0; + a12 = 10; + a22 = 1; + return -1; + } else if(((!(a5==1)&&(((a22==1)&&(((a18==1)&&((!(a4==1)&&(!(a6==1)&&((a3==4)&&((input==4)&&!(a15==1)))))&&(a12==9)))&&(a0==1)))&&(a27==1)))&&(a20==1))){ + a22 = 0; + a12 = 11; + a15 = 1; + a4 = 1; + a6 = 1; + return 26; + } else if(((a4==1)&&((!(a6==1)&&((a20==1)&&(!(a18==1)&&(!(a5==1)&&((a27==1)&&((!(a15==1)&&((a3==6)&&((a0==1)&&(input==3))))&&(a22==1)))))))&&(a12==11)))){ + a3 = 8; + a4 = 0; + a0 = 0; + a18 = 1; + a22 = 0; + a5 = 1; + return -1; + } else if((((a0==1)&&((a20==1)&&(!(a6==1)&&((!(a4==1)&&((a12==12)&&((a27==1)&&(((((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a22==1)&&(a18==1))&&(a3==5)))||(((a22==1)&&!(a18==1))&&(a3==5)))&&(input==6)))))&&!(a15==1)))))&&!(a5==1))){ + a4 = 1; + a3 = 4; + a12 = 8; + a15 = 1; + a18 = 1; + a5 = 1; + a6 = 1; + a22 = 1; + return -1; + } else if((((a12==11)&&((a15==1)&&((((a18==1)&&((a3==8)&&((!(a4==1)&&((a22==1)&&((input==5)&&!(a6==1))))&&(a5==1))))&&!(a0==1))&&!(a27==1))))&&(a20==1))){ + if((a27==1)){ + a5 = 0; + a12 = 9; + a15 = 0; + a6 = 1; + a3 = 5; + }else{ + a6 = 1; + a22 = 0; + a0 = 1; + a15 = 0; + a5 = 0; + a3 = 7; + a12 = 10; + } + return 26; + } else if(((a0==1)&&((((!(a6==1)&&((a4==1)&&(!(a15==1)&&(!(a5==1)&&(((input==4)&&((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))))&&!(a27==1))))))&&(a3==8))&&(a20==1))&&(a12==11)))){ + a4 = 0; + a18 = 0; + a22 = 0; + a15 = 1; + a3 = 5; + return -1; + } else if(((a5==1)&&((a20==1)&&(!(a22==1)&&((((((((a0==1)&&((a3==5)&&(input==1)))&&!(a18==1))&&(a27==1))&&(a4==1))&&!(a15==1))&&(a12==9))&&(a6==1)))))){ + a6 = 0; + a5 = 0; + a12 = 12; + a22 = 1; + a3 = 8; + return 21; + } else if(((a3==5)&&(!(a4==1)&&((a20==1)&&((((a12==11)&&(!(a15==1)&&(((!(a6==1)&&((input==5)&&((a18==1)||!(a18==1))))&&!(a0==1))&&!(a27==1))))&&(a5==1))&&(a22==1)))))){ + a3 = 4; + a5 = 0; + a27 = 1; + a18 = 1; + a12 = 12; + return 21; + } else if(((a20==1)&&(((a27==1)&&(((a0==1)&&(!(a5==1)&&((a12==12)&&(((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==5))&&!(a6==1)))))&&(a15==1)))&&(a4==1)))){ + a22 = 1; + a3 = 4; + a5 = 1; + a18 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if(((a0==1)&&((!(a15==1)&&((a12==8)&&((!(a27==1)&&((((input==2)&&((((a22==1)&&!(a18==1))&&(a3==7))||(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a22==1)&&(a18==1))))))&&!(a6==1))&&(a4==1)))&&(a20==1))))&&(a5==1)))){ + a27 = 1; + a12 = 11; + a18 = 0; + a15 = 1; + a3 = 6; + a22 = 0; + return 21; + } else if(((a12==8)&&((a0==1)&&((((a20==1)&&(((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5))&&!(a27==1))&&!(a6==1))&&!(a5==1))&&!(a15==1)))&&(a3==7))&&!(a4==1))))){ + a18 = 1; + a5 = 1; + a22 = 0; + a3 = 8; + a6 = 1; + return 21; + } else if(((a20==1)&&((((a4==1)&&(((((a15==1)&&((a3==8)&&(((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==3))))&&!(a27==1))&&(a6==1))&&(a5==1)))&&(a12==12))&&(a0==1)))){ + a18 = 0; + a0 = 0; + a4 = 0; + a5 = 0; + a27 = 1; + a22 = 0; + a12 = 9; + a3 = 5; + return 21; + } else if(((a5==1)&&((a20==1)&&((a12==12)&&((a22==1)&&((!(a15==1)&&((a0==1)&&((((((a18==1)||!(a18==1))&&(input==6))&&(a3==7))&&!(a4==1))&&!(a27==1))))&&!(a6==1))))))){ + a22 = 0; + a12 = 10; + a3 = 4; + a15 = 1; + a6 = 1; + a27 = 1; + a5 = 0; + a18 = 0; + return 26; + } else if(((((a20==1)&&((a5==1)&&((!(a27==1)&&((((!(a4==1)&&((input==3)&&((a18==1)||!(a18==1))))&&!(a6==1))&&(a0==1))&&(a3==8)))&&(a15==1))))&&(a12==9))&&!(a22==1))){ + a3 = 5; + a6 = 1; + a12 = 12; + a22 = 1; + a15 = 0; + a18 = 0; + a27 = 1; + return 26; + } else if((((a12==9)&&((a20==1)&&(((a5==1)&&(((((!(a6==1)&&(((a4==1)&&(!(a18==1)&&!(a22==1)))&&(a3==8)))||((a6==1)&&((!(a4==1)&&((a18==1)&&(a22==1)))&&(a3==4))))||((a6==1)&&((a3==4)&&(!(a4==1)&&((a22==1)&&!(a18==1))))))&&(input==4))&&(a0==1)))&&(a27==1))))&&!(a15==1))){ + a3 = 4; + a15 = 1; + a22 = 0; + a5 = 0; + a12 = 11; + a4 = 0; + a18 = 1; + a6 = 0; + return 26; + } else if(((a12==8)&&(((a3==6)&&((a4==1)&&(!(a27==1)&&((a22==1)&&(!(a0==1)&&(!(a15==1)&&(((a20==1)&&((input==4)&&((a18==1)||!(a18==1))))&&(a5==1))))))))&&(a6==1)))){ + a22 = 0; + a27 = 1; + a15 = 1; + a0 = 1; + a18 = 1; + return 21; + } else if(((a12==11)&&((((((a15==1)&&((((input==1)&&((((a3==5)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==6)))||((a3==6)&&((a22==1)&&!(a18==1)))))&&!(a4==1))&&(a5==1)))&&(a0==1))&&!(a6==1))&&(a20==1))&&(a27==1)))){ + a22 = 1; + a6 = 1; + a12 = 10; + a27 = 0; + a15 = 0; + a5 = 0; + a3 = 7; + a18 = 1; + return 21; + } else if(((!(a15==1)&&((a20==1)&&((((a12==8)&&((((!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4)))||(((a6==1)&&((a3==8)&&(!(a22==1)&&(a18==1))))||(((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))))&&(input==5))&&!(a27==1)))&&!(a0==1))&&(a5==1))))&&!(a4==1))){ + if((a5==1)){ + a22 = 1; + a0 = 1; + a6 = 1; + a3 = 4; + a18 = 0; + a27 = 1; + a4 = 1; + a15 = 1; + }else{ + a3 = 6; + a0 = 1; + a15 = 1; + a6 = 1; + a18 = 1; + a27 = 1; + a22 = 0; + } + return -1; + } else if(((a27==1)&&(((!(a5==1)&&((a20==1)&&((((((a3==8)&&(((a15==1)&&((a18==1)&&!(a22==1)))&&!(a4==1)))&&!(a6==1))||(!(a6==1)&&((!(a4==1)&&((a15==1)&&(!(a22==1)&&!(a18==1))))&&(a3==8))))||((((a4==1)&&(((a18==1)&&(a22==1))&&!(a15==1)))&&(a3==4))&&(a6==1)))&&(input==5))))&&(a0==1))&&(a12==8)))){ + if((a3==6)){ + a4 = 1; + a22 = 0; + a6 = 1; + a15 = 1; + a3 = 6; + a0 = 0; + a18 = 0; + }else{ + a3 = 4; + a18 = 1; + a4 = 0; + a12 = 10; + a6 = 1; + a22 = 1; + a15 = 1; + } + return 21; + } else if(((((((a15==1)&&(!(a27==1)&&((((((input==6)&&((a18==1)||!(a18==1)))&&(a4==1))&&(a12==11))&&(a3==5))&&!(a0==1))))&&!(a6==1))&&(a20==1))&&!(a22==1))&&(a5==1))){ + if((a6==1)){ + a12 = 8; + a27 = 1; + a18 = 1; + a3 = 4; + a0 = 1; + }else{ + a4 = 0; + a18 = 0; + a15 = 0; + a27 = 1; + a3 = 4; + a6 = 1; + a22 = 1; + a12 = 12; + } + return -1; + } else if(((a6==1)&&((a4==1)&&((((a15==1)&&((((a3==6)&&((a20==1)&&(((input==5)&&(a27==1))&&!(a5==1))))&&(a12==12))&&(a22==1)))&&!(a18==1))&&(a0==1))))){ + a18 = 1; + a15 = 0; + a3 = 8; + a12 = 11; + return -1; + } else if((((((!(a15==1)&&(!(a0==1)&&((a22==1)&&((a12==11)&&(((a3==7)&&((input==4)&&((a18==1)||!(a18==1))))&&!(a4==1))))))&&(a20==1))&&(a6==1))&&(a27==1))&&!(a5==1))){ + a3 = 6; + a15 = 1; + a18 = 0; + a0 = 1; + a12 = 10; + a6 = 0; + a4 = 1; + a5 = 1; + return -1; + } else if((!(a15==1)&&((a27==1)&&(((a12==9)&&(!(a0==1)&&(((((!(a6==1)&&(((a4==1)&&(!(a22==1)&&!(a18==1)))&&(a3==8)))||(((!(a4==1)&&((a18==1)&&(a22==1)))&&(a3==4))&&(a6==1)))||(((!(a4==1)&&((a22==1)&&!(a18==1)))&&(a3==4))&&(a6==1)))&&(input==4))&&(a5==1))))&&(a20==1))))){ + a3 = 4; + a12 = 11; + a15 = 1; + a22 = 1; + a4 = 0; + a6 = 0; + a18 = 0; + a0 = 1; + a5 = 0; + return -1; + } else if(((a20==1)&&((a12==12)&&(!(a6==1)&&(!(a15==1)&&(((((((input==5)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&(a0==1))&&(a3==7))&&(a4==1))&&!(a27==1))&&(a5==1))))))){ + a3 = 8; + a22 = 1; + a18 = 1; + a4 = 0; + a12 = 11; + a27 = 1; + return 21; + } else if(((!(a15==1)&&(!(a27==1)&&((a3==6)&&(((a12==12)&&(!(a4==1)&&(!(a5==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==4))&&(a20==1)))))&&(a6==1)))))&&(a0==1))){ + a6 = 0; + a12 = 10; + a18 = 1; + a3 = 5; + a5 = 1; + a22 = 0; + a15 = 1; + a27 = 1; + return -1; + } else if((((a20==1)&&((a0==1)&&((!(a27==1)&&(((!(a4==1)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a22==1)&&(a18==1))&&(a3==8)))&&(input==1)))&&(a12==12))&&!(a6==1)))&&(a5==1))))&&(a15==1))){ + a15 = 0; + a4 = 1; + a6 = 1; + a22 = 0; + a3 = 6; + a12 = 11; + a18 = 1; + a27 = 1; + return 24; + } else if((((a20==1)&&(!(a6==1)&&((a27==1)&&(((a12==10)&&((a3==4)&&((((a22==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&!(a0==1))&&!(a5==1))))&&(a4==1)))))&&!(a15==1))){ + a6 = 1; + a12 = 8; + a0 = 1; + a18 = 1; + a15 = 1; + a5 = 1; + return -1; + } else if((((!(a0==1)&&(((((a4==1)&&((((((a3==7)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==8)))||(((a22==1)&&!(a18==1))&&(a3==8)))&&(input==6))&&(a27==1)))&&!(a6==1))&&(a5==1))&&(a12==8)))&&(a20==1))&&(a15==1))){ + a0 = 1; + a6 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + return -1; + } else if(((a5==1)&&(!(a4==1)&&((a3==5)&&((((a6==1)&&((a20==1)&&(!(a18==1)&&((!(a15==1)&&(!(a27==1)&&(input==4)))&&(a0==1)))))&&(a12==12))&&(a22==1)))))){ + if((a6==1)){ + a27 = 1; + a0 = 0; + a12 = 11; + a3 = 7; + a5 = 0; + a15 = 1; + a18 = 1; + }else{ + a27 = 1; + a15 = 1; + a6 = 0; + a12 = 11; + a3 = 7; + a18 = 1; + a5 = 0; + } + return 21; + } else if(((((((a12==11)&&(((a20==1)&&((a3==8)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==3))&&(a5==1))))&&!(a0==1)))&&!(a6==1))&&!(a27==1))&&!(a15==1))&&!(a4==1))){ + a27 = 1; + a6 = 1; + a22 = 1; + a12 = 12; + a5 = 0; + a18 = 1; + return -1; + } else if(((((((a12==10)&&(((!(a4==1)&&(!(a27==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==4))))&&(a3==5))&&(a20==1)))&&!(a5==1))&&!(a0==1))&&!(a15==1))&&(a6==1))){ + a18 = 0; + a5 = 1; + a22 = 1; + a3 = 6; + a27 = 1; + a0 = 1; + a15 = 1; + a12 = 8; + return 21; + } else if(((((a0==1)&&((((!(a6==1)&&((!(a4==1)&&((((a18==1)||!(a18==1))&&(input==3))&&!(a5==1)))&&(a3==6)))&&(a20==1))&&!(a27==1))&&!(a22==1)))&&(a15==1))&&(a12==10))){ + a18 = 1; + a4 = 1; + a0 = 0; + a27 = 1; + a3 = 7; + a12 = 9; + return 21; + } else if(((a4==1)&&(((a5==1)&&((a15==1)&&((a12==8)&&((((input==6)&&((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))))&&!(a0==1))&&(a27==1)))))&&(a20==1)))){ + a4 = 0; + a6 = 1; + a18 = 0; + a3 = 6; + a5 = 0; + a22 = 1; + a0 = 1; + return 21; + } else if(((a4==1)&&(!(a15==1)&&((a18==1)&&(((a3==4)&&((!(a5==1)&&((((a12==10)&&((a22==1)&&(input==6)))&&(a20==1))&&!(a27==1)))&&(a6==1)))&&!(a0==1)))))){ + if((a20==1)){ + a0 = 1; + a6 = 0; + a22 = 0; + a18 = 0; + a15 = 1; + a5 = 1; + a12 = 8; + a3 = 7; + a27 = 1; + }else{ + a3 = 6; + a27 = 1; + a18 = 0; + a15 = 1; + a12 = 8; + a5 = 1; + a0 = 1; + a22 = 0; + a4 = 0; + } + return 26; + } else if((((((a15==1)&&(!(a27==1)&&(!(a4==1)&&((a20==1)&&(((input==3)&&((((a3==4)&&(!(a22==1)&&(a18==1)))||((!(a18==1)&&!(a22==1))&&(a3==4)))||(((a18==1)&&(a22==1))&&(a3==5))))&&(a12==8))))))&&(a6==1))&&(a5==1))&&!(a0==1))){ + a22 = 0; + a6 = 0; + a4 = 1; + a15 = 0; + a27 = 1; + a18 = 1; + a12 = 9; + a3 = 8; + return 26; + } else if(((a5==1)&&(!(a6==1)&&(!(a4==1)&&((a20==1)&&((((!(a15==1)&&(!(a22==1)&&((a12==10)&&((a18==1)&&(input==1)))))&&(a3==5))&&!(a27==1))&&(a0==1))))))){ + a15 = 1; + a22 = 1; + a4 = 1; + a12 = 8; + a6 = 1; + a3 = 4; + a27 = 1; + return -1; + } else if(((!(a27==1)&&(((!(a5==1)&&(((!(a6==1)&&((a20==1)&&((input==2)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a18==1)&&!(a22==1))))))&&(a4==1))&&(a3==7)))&&(a0==1))&&!(a15==1)))&&(a12==10))){ + a3 = 4; + a18 = 1; + a27 = 1; + a22 = 1; + a5 = 1; + a15 = 1; + a6 = 1; + a12 = 8; + return -1; + } else if((!(a15==1)&&((a5==1)&&(!(a4==1)&&((a6==1)&&(((a12==8)&&(!(a22==1)&&((a3==4)&&((a27==1)&&(((input==3)&&!(a18==1))&&(a20==1))))))&&!(a0==1))))))){ + a6 = 0; + a3 = 7; + a12 = 10; + a15 = 1; + return 21; + } else if(((a0==1)&&(((!(a4==1)&&((a20==1)&&((((a22==1)&&((a5==1)&&(!(a18==1)&&((a6==1)&&(input==6)))))&&(a27==1))&&(a12==11))))&&!(a15==1))&&(a3==5)))){ + a15 = 1; + a6 = 0; + a3 = 7; + a12 = 8; + return 24; + } else if((((((a5==1)&&(!(a0==1)&&((a12==10)&&((((input==2)&&((((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1))))||((!(a18==1)&&(a22==1))&&(a3==5))))&&(a4==1))&&(a15==1)))))&&(a20==1))&&(a27==1))&&(a6==1))){ + a12 = 8; + a3 = 4; + a22 = 1; + a18 = 1; + a0 = 1; + return -1; + } else if((!(a22==1)&&((a0==1)&&((((a20==1)&&(!(a6==1)&&((!(a15==1)&&(((a5==1)&&((input==3)&&(a12==10)))&&(a27==1)))&&(a18==1))))&&(a3==5))&&(a4==1))))){ + a27 = 0; + a12 = 9; + a3 = 4; + a5 = 0; + a4 = 0; + a6 = 1; + a22 = 1; + return 21; + } else if(((((a27==1)&&((a6==1)&&(((a15==1)&&((((((!(a18==1)&&(a22==1))&&(a3==5))||(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1)))))&&(input==2))&&!(a0==1))&&(a20==1)))&&(a4==1))))&&(a5==1))&&(a12==8))){ + a5 = 0; + a0 = 1; + a12 = 12; + a27 = 0; + a22 = 0; + a18 = 1; + a3 = 6; + return 26; + } else if((((a22==1)&&((((!(a0==1)&&((((!(a5==1)&&((input==6)&&((a18==1)||!(a18==1))))&&(a27==1))&&(a3==5))&&(a20==1)))&&(a4==1))&&(a12==12))&&(a15==1)))&&!(a6==1))){ + a12 = 11; + a3 = 4; + a15 = 0; + a22 = 0; + a0 = 1; + a6 = 1; + a18 = 1; + a27 = 0; + return -1; + } else if((((a12==10)&&(((a22==1)&&(!(a15==1)&&(((((a3==4)&&(((a20==1)&&(input==1))&&!(a4==1)))&&!(a6==1))&&(a0==1))&&(a27==1))))&&!(a18==1)))&&!(a5==1))){ + a15 = 1; + a3 = 5; + a27 = 0; + a6 = 1; + return 21; + } else if(((a3==6)&&((a20==1)&&(!(a22==1)&&(!(a6==1)&&((a27==1)&&(((a4==1)&&((a0==1)&&(((a15==1)&&((input==2)&&(a18==1)))&&(a12==10))))&&!(a5==1)))))))){ + a15 = 0; + a5 = 1; + a4 = 0; + a22 = 1; + a3 = 8; + return 26; + } else if((((a12==12)&&((a6==1)&&((!(a15==1)&&((a0==1)&&((a27==1)&&(((a5==1)&&((a20==1)&&((a3==5)&&(input==5))))&&!(a22==1)))))&&!(a4==1))))&&(a18==1))){ + a22 = 1; + a15 = 1; + a5 = 0; + a4 = 1; + return 21; + } else if(((!(a5==1)&&((((((((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==2))&&(a27==1))&&!(a15==1))&&(a3==8))&&(a4==1))&&(a6==1))&&!(a0==1))&&(a20==1)))&&(a12==10))){ + a5 = 1; + a18 = 1; + a22 = 1; + a15 = 1; + a3 = 4; + a12 = 12; + a0 = 1; + return 21; + } else if((!(a4==1)&&((a5==1)&&((a27==1)&&((a6==1)&&(!(a0==1)&&((a3==8)&&(!(a22==1)&&((a15==1)&&((a12==8)&&(((a20==1)&&(input==4))&&(a18==1)))))))))))){ + a5 = 0; + a12 = 9; + a15 = 0; + a0 = 1; + a6 = 0; + a3 = 7; + a4 = 1; + a27 = 0; + a18 = 0; + return -1; + } else if((((a5==1)&&((!(a27==1)&&(((((a15==1)&&((input==2)&&((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))||(((a22==1)&&!(a18==1))&&(a3==5)))))&&!(a6==1))&&(a20==1))&&(a12==11)))&&(a0==1)))&&(a4==1))){ + a22 = 1; + a6 = 1; + a12 = 9; + a18 = 1; + a3 = 5; + return -1; + } else if((((a12==11)&&(!(a5==1)&&((a22==1)&&(!(a27==1)&&((a20==1)&&(((((a6==1)&&((a4==1)&&(input==3)))&&(a0==1))&&(a18==1))&&(a15==1)))))))&&(a3==6))){ + a18 = 0; + a12 = 12; + a27 = 1; + a15 = 0; + a5 = 1; + a3 = 7; + return 26; + } else if(((a0==1)&&((((a22==1)&&((((a6==1)&&((!(a15==1)&&((a3==7)&&(!(a27==1)&&(input==6))))&&(a18==1)))&&(a12==12))&&(a20==1)))&&(a4==1))&&(a5==1)))){ + a15 = 1; + a22 = 0; + a18 = 0; + a12 = 10; + a4 = 0; + a0 = 0; + a27 = 1; + return 21; + } else if(((a0==1)&&((!(a6==1)&&((((a12==11)&&((((input==4)&&(((a3==7)&&((a18==1)&&(a22==1)))||(((a3==6)&&(!(a22==1)&&(a18==1)))||((a3==6)&&(!(a18==1)&&!(a22==1))))))&&(a20==1))&&!(a27==1)))&&(a5==1))&&(a15==1)))&&!(a4==1)))){ + a6 = 1; + a22 = 1; + a3 = 4; + a12 = 8; + a27 = 1; + a4 = 1; + a18 = 1; + return -1; + } else if(((a27==1)&&((a6==1)&&((((a12==11)&&(((((a4==1)&&((input==2)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))))&&(a3==6))&&(a20==1))&&!(a0==1)))&&(a5==1))&&(a15==1))))){ + a22 = 0; + a0 = 1; + a15 = 0; + a3 = 5; + a12 = 10; + a18 = 1; + return 21; + } else if((((a20==1)&&(!(a0==1)&&(((((!(a22==1)&&((a3==8)&&(!(a15==1)&&(((a18==1)||!(a18==1))&&(input==3)))))&&!(a4==1))&&!(a6==1))&&!(a27==1))&&(a12==11))))&&!(a5==1))){ + a27 = 1; + a22 = 1; + a15 = 1; + a5 = 1; + a12 = 10; + a3 = 6; + a18 = 0; + a0 = 1; + return 21; + } else if(((a0==1)&&(((((a6==1)&&((a15==1)&&((a3==7)&&((a4==1)&&((a5==1)&&((input==2)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))))))))&&(a12==11))&&(a20==1))&&(a27==1)))){ + a22 = 1; + a12 = 8; + a18 = 1; + a3 = 4; + return -1; + } else if(((!(a6==1)&&((a20==1)&&((!(a18==1)&&((((a5==1)&&((a15==1)&&(((input==1)&&!(a27==1))&&!(a0==1))))&&(a12==8))&&!(a22==1)))&&(a3==6))))&&(a4==1))){ + a6 = 1; + a27 = 1; + a4 = 0; + a0 = 1; + return -1; + } else if(((((a20==1)&&(((a5==1)&&((!(a6==1)&&((a3==4)&&(((a4==1)&&((input==5)&&!(a22==1)))&&(a12==10))))&&!(a27==1)))&&!(a15==1)))&&!(a18==1))&&!(a0==1))){ + a18 = 1; + a0 = 1; + a3 = 5; + a22 = 1; + return 21; + } else if((!(a15==1)&&((!(a22==1)&&((a3==6)&&((((a20==1)&&(((((input==5)&&(a12==10))&&!(a4==1))&&!(a0==1))&&!(a6==1)))&&!(a27==1))&&!(a5==1))))&&(a18==1)))){ + a15 = 1; + a3 = 8; + a5 = 1; + a22 = 1; + a0 = 1; + a6 = 1; + a12 = 8; + a27 = 1; + return 21; + } else if((!(a27==1)&&(((((((a12==11)&&(((!(a6==1)&&(((a22==1)&&!(a18==1))&&(a3==4)))||((((!(a22==1)&&!(a18==1))&&(a3==8))&&(a6==1))||((((a22==1)&&(a18==1))&&(a3==4))&&!(a6==1))))&&(input==5)))&&(a20==1))&&(a0==1))&&!(a4==1))&&!(a15==1))&&(a5==1)))){ + a12 = 12; + a3 = 4; + a5 = 0; + a18 = 1; + a22 = 0; + a4 = 1; + a27 = 1; + a6 = 1; + return -1; + } else if(((a22==1)&&((a6==1)&&((!(a15==1)&&((a4==1)&&(((((a0==1)&&(((a5==1)&&(input==2))&&(a3==6)))&&!(a18==1))&&(a27==1))&&(a20==1))))&&(a12==11))))){ + a3 = 4; + a12 = 8; + a15 = 1; + a18 = 1; + return -1; + } else if(((((a6==1)&&((a20==1)&&((a27==1)&&(((((a12==9)&&((a3==7)&&((input==6)&&(a22==1))))&&!(a18==1))&&!(a5==1))&&(a0==1)))))&&(a15==1))&&(a4==1))){ + a12 = 11; + a6 = 0; + a3 = 5; + a22 = 0; + a15 = 0; + a5 = 1; + a4 = 0; + return 24; + } else if((((!(a6==1)&&(!(a15==1)&&((a12==9)&&((a27==1)&&((((((input==3)&&((a18==1)||!(a18==1)))&&!(a5==1))&&(a4==1))&&(a0==1))&&(a20==1))))))&&!(a22==1))&&(a3==7))){ + a3 = 6; + a18 = 1; + a22 = 1; + a12 = 11; + a15 = 1; + return 24; + } else if(((((a6==1)&&(((((!(a4==1)&&((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==6))&&(a5==1)))&&!(a15==1))&&!(a0==1))&&(a12==11))&&(a27==1)))&&(a20==1))&&(a3==5))){ + a22 = 1; + a4 = 1; + a15 = 1; + a3 = 4; + a18 = 1; + a12 = 8; + a0 = 1; + return -1; + } else if(((((a5==1)&&((a12==11)&&((!(a15==1)&&((!(a6==1)&&((input==5)&&(((a3==6)&&(!(a22==1)&&!(a18==1)))||((a3==7)&&((a22==1)&&(a18==1))))))&&!(a4==1)))&&(a20==1))))&&(a0==1))&&!(a27==1))){ + a4 = 1; + a27 = 1; + a22 = 1; + a3 = 6; + a18 = 0; + a15 = 1; + return -1; + } else if(((((a20==1)&&(!(a4==1)&&(!(a15==1)&&((a12==10)&&(!(a5==1)&&((a6==1)&&(!(a0==1)&&(!(a18==1)&&((a27==1)&&(input==5))))))))))&&(a3==6))&&(a22==1))){ + a4 = 1; + a0 = 1; + a18 = 1; + a5 = 1; + a3 = 4; + a12 = 8; + a15 = 1; + return -1; + } else if((((a12==11)&&((a27==1)&&((a0==1)&&((a5==1)&&(((a15==1)&&((input==3)&&((((((a18==1)&&!(a22==1))&&(a3==8))&&(a6==1))||((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8))))||(!(a6==1)&&(((a18==1)&&(a22==1))&&(a3==4))))))&&(a4==1))))))&&(a20==1))){ + a6 = 0; + a15 = 0; + a5 = 0; + a3 = 4; + a22 = 0; + a18 = 1; + a12 = 10; + return -1; + } else if(((a4==1)&&((a15==1)&&(((a12==11)&&((a27==1)&&(!(a6==1)&&(!(a0==1)&&(((((!(a18==1)&&(a22==1))&&(a3==7))||(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7))))&&(input==1))&&(a20==1))))))&&(a5==1))))){ + a3 = 6; + a18 = 1; + a4 = 0; + a22 = 1; + a12 = 10; + a0 = 1; + return -1; + } else if(((((!(a5==1)&&((!(a6==1)&&(!(a0==1)&&((a15==1)&&((((!(a22==1)&&!(a18==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==5)))))&&(a4==1)))&&(a20==1))&&(a12==9))&&(a27==1))){ + a5 = 1; + a3 = 6; + a6 = 1; + a0 = 1; + a27 = 0; + a18 = 1; + a22 = 0; + a12 = 11; + return -1; + } else if((!(a0==1)&&(!(a22==1)&&((!(a18==1)&&((a3==8)&&((!(a4==1)&&((a12==10)&&(!(a27==1)&&(((a20==1)&&(input==5))&&(a15==1)))))&&(a6==1))))&&(a5==1))))){ + a4 = 1; + a0 = 1; + a12 = 9; + return -1; + } else if(((!(a4==1)&&(((a6==1)&&(!(a0==1)&&((!(a22==1)&&((a27==1)&&(((((a18==1)||!(a18==1))&&(input==4))&&(a15==1))&&(a3==8))))&&(a12==9))))&&(a5==1)))&&(a20==1))){ + a4 = 1; + a18 = 1; + a0 = 1; + a12 = 8; + a22 = 1; + a3 = 4; + return -1; + } else if(((a27==1)&&(!(a5==1)&&((a12==11)&&(((a20==1)&&(!(a6==1)&&((a4==1)&&((a15==1)&&((input==5)&&((((a18==1)&&(a22==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))))))))&&!(a0==1)))))){ + a3 = 5; + a4 = 0; + a12 = 12; + a5 = 1; + a18 = 0; + a22 = 0; + return -1; + } else if((!(a27==1)&&((((((a20==1)&&((a3==4)&&(!(a0==1)&&(!(a5==1)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==1))))))&&!(a6==1))&&(a4==1))&&!(a15==1))&&(a12==11)))){ + if((a27==1)){ + a15 = 1; + a12 = 10; + a27 = 1; + a4 = 0; + a3 = 7; + a18 = 1; + a22 = 0; + a6 = 1; + }else{ + a4 = 0; + a27 = 1; + a0 = 1; + a3 = 6; + a5 = 1; + a12 = 9; + a18 = 0; + a22 = 1; + } + return -1; + } else if(((a0==1)&&(((((!(a15==1)&&(((((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))||((a3==5)&&(!(a18==1)&&(a22==1))))&&(input==5))&&!(a27==1))&&!(a6==1)))&&(a20==1))&&!(a4==1))&&(a12==10))&&(a5==1)))){ + a12 = 8; + a18 = 1; + a4 = 1; + a22 = 1; + a6 = 1; + a27 = 1; + a3 = 4; + a15 = 1; + return -1; + } else if(((a3==6)&&(!(a0==1)&&((!(a4==1)&&((a5==1)&&((a12==9)&&((((a27==1)&&(((!(a22==1)&&(a18==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==1)))&&(a20==1))&&!(a15==1)))))&&(a6==1))))){ + a0 = 1; + a18 = 1; + a22 = 0; + a27 = 0; + return 26; + } else if(((!(a0==1)&&(((a6==1)&&((!(a27==1)&&(!(a5==1)&&(((a12==10)&&((((a18==1)||!(a18==1))&&(input==2))&&(a20==1)))&&!(a4==1))))&&!(a22==1)))&&(a3==4)))&&!(a15==1))){ + a5 = 1; + a27 = 1; + a22 = 1; + a6 = 0; + a15 = 1; + a0 = 1; + a12 = 8; + a18 = 1; + return 26; + } else if((!(a27==1)&&((a3==7)&&(((a12==8)&&((a20==1)&&((((a5==1)&&((a0==1)&&((input==2)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))))&&!(a15==1))&&(a6==1))))&&(a4==1))))){ + a27 = 1; + a18 = 0; + a5 = 0; + a3 = 5; + a22 = 1; + a12 = 10; + a15 = 1; + a4 = 0; + a6 = 0; + return 26; + } else if((((!(a0==1)&&((a5==1)&&((a6==1)&&((((!(a27==1)&&(!(a22==1)&&((input==5)&&(a3==4))))&&(a20==1))&&(a12==8))&&!(a4==1)))))&&!(a15==1))&&(a18==1))){ + a6 = 0; + a3 = 8; + a4 = 1; + a27 = 1; + a22 = 1; + return 21; + } else if(((((a15==1)&&(!(a6==1)&&(((((((((!(a22==1)&&(a18==1))&&(a3==5))||((a3==5)&&(!(a22==1)&&!(a18==1))))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==4))&&(a12==9))&&(a20==1))&&!(a5==1))&&!(a4==1))))&&(a27==1))&&!(a0==1))){ + a6 = 1; + a0 = 1; + a22 = 1; + a5 = 1; + a3 = 4; + a12 = 8; + a18 = 1; + a4 = 1; + return -1; + } else if((!(a5==1)&&(((((a6==1)&&((((a0==1)&&((((input==5)&&!(a18==1))&&(a20==1))&&!(a27==1)))&&(a22==1))&&(a3==8)))&&(a15==1))&&!(a4==1))&&(a12==10)))){ + a12 = 11; + a15 = 0; + a27 = 1; + return 21; + } else if(((((((a15==1)&&((a12==11)&&(((a20==1)&&(((input==6)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&!(a4==1)))&&!(a0==1))))&&(a3==5))&&!(a6==1))&&!(a5==1))&&(a27==1))){ + a22 = 0; + a3 = 4; + a12 = 10; + a0 = 1; + a18 = 0; + a15 = 0; + a27 = 0; + a5 = 1; + return 26; + } else if(((a3==8)&&((a12==11)&&((!(a27==1)&&(((!(a0==1)&&((a4==1)&&(((input==3)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&!(a15==1))))&&(a5==1))&&(a6==1)))&&(a20==1))))){ + a12 = 8; + a22 = 1; + a15 = 1; + a0 = 1; + a6 = 0; + a27 = 1; + a3 = 6; + a18 = 1; + return 21; + } else if(((a3==5)&&((a27==1)&&((a5==1)&&(((a0==1)&&((!(a4==1)&&((a20==1)&&(((input==1)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&!(a15==1))))&&!(a6==1)))&&(a12==10)))))){ + a15 = 1; + a3 = 4; + a27 = 0; + a4 = 1; + a22 = 1; + a18 = 1; + return 21; + } else if((((((!(a4==1)&&(((a6==1)&&((a20==1)&&(((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==5))&&(a12==9))))&&!(a15==1)))&&(a5==1))&&(a27==1))&&(a3==5))&&!(a0==1))){ + a27 = 0; + a5 = 0; + a18 = 1; + a0 = 1; + a15 = 1; + a3 = 7; + a22 = 0; + a4 = 1; + return -1; + } else if((((a22==1)&&(((((a20==1)&&(((((a3==7)&&((input==3)&&((a18==1)||!(a18==1))))&&(a0==1))&&(a15==1))&&!(a6==1)))&&(a5==1))&&(a12==9))&&!(a4==1)))&&(a27==1))){ + a22 = 0; + a3 = 5; + a18 = 1; + a12 = 12; + return 24; + } else if(((a15==1)&&((a5==1)&&((((!(a6==1)&&(((a4==1)&&((((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==5)))&&!(a0==1)))&&(a20==1))&&(a12==8))&&!(a27==1))))){ + a22 = 1; + a12 = 11; + a18 = 0; + a3 = 7; + a0 = 1; + return -1; + } else if(((a15==1)&&((((a4==1)&&((a0==1)&&((!(a18==1)&&(!(a22==1)&&((a12==8)&&((!(a6==1)&&(input==3))&&(a27==1)))))&&(a3==8))))&&(a20==1))&&!(a5==1)))){ + a6 = 1; + a5 = 1; + a12 = 10; + a4 = 0; + a3 = 4; + return 24; + } else if(((a20==1)&&(!(a15==1)&&((a0==1)&&((a4==1)&&((a12==8)&&(!(a5==1)&&((a3==7)&&((a27==1)&&(!(a6==1)&&((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==1)))))))))))){ + a12 = 11; + a3 = 5; + a18 = 1; + a4 = 0; + a15 = 1; + a22 = 1; + a5 = 1; + return 21; + } else if((!(a4==1)&&((!(a6==1)&&(!(a5==1)&&((a0==1)&&(((a3==4)&&(((((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==6))&&(a20==1))&&!(a15==1)))&&(a12==9)))))&&!(a27==1)))){ + a12 = 8; + a6 = 1; + a3 = 7; + a18 = 0; + a5 = 1; + a22 = 1; + return 21; + } else if((!(a0==1)&&((!(a6==1)&&(!(a5==1)&&(((a12==8)&&((a20==1)&&(!(a4==1)&&(!(a15==1)&&((input==1)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1))))))))&&(a3==4))))&&!(a27==1)))){ + if((a0==1)){ + a5 = 1; + a0 = 1; + a15 = 1; + a27 = 1; + a4 = 1; + a22 = 0; + a18 = 1; + a6 = 1; + a3 = 5; + }else{ + a27 = 1; + a15 = 1; + a22 = 0; + a12 = 11; + a18 = 1; + a5 = 1; + } + return 26; + } else if(((((a12==9)&&((a20==1)&&((a3==7)&&((a5==1)&&((((((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==4))&&(a0==1))&&(a4==1))&&(a27==1))))))&&(a6==1))&&!(a15==1))){ + a18 = 1; + a15 = 1; + a3 = 4; + a12 = 8; + a22 = 1; + return -1; + } else if((((!(a0==1)&&((!(a4==1)&&((((a3==7)&&(!(a27==1)&&((input==4)&&((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))))&&(a12==10))&&(a15==1)))&&!(a6==1)))&&(a5==1))&&(a20==1))){ + a27 = 1; + a3 = 6; + a0 = 1; + a18 = 1; + a12 = 8; + a22 = 1; + a4 = 1; + return -1; + } else if(((a27==1)&&(!(a5==1)&&((a12==8)&&(((!(a0==1)&&((((input==6)&&((((a18==1)&&(a22==1))&&(a3==6))||((((a18==1)&&!(a22==1))&&(a3==5))||((!(a22==1)&&!(a18==1))&&(a3==5)))))&&(a20==1))&&!(a15==1)))&&(a6==1))&&(a4==1)))))){ + a18 = 1; + a3 = 4; + a22 = 1; + a15 = 1; + a5 = 1; + a0 = 1; + return -1; + } else if(((((a12==8)&&(((!(a6==1)&&(!(a15==1)&&((a0==1)&&((((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==3))&&(a20==1)))))&&(a4==1))&&(a3==8)))&&(a27==1))&&(a5==1))){ + a22 = 1; + a6 = 1; + a18 = 1; + a3 = 6; + a12 = 9; + a15 = 1; + return 26; + } else if((!(a0==1)&&((a4==1)&&((a12==11)&&((((a22==1)&&((a3==6)&&((a20==1)&&((a6==1)&&((a27==1)&&(((a18==1)||!(a18==1))&&(input==6)))))))&&!(a15==1))&&(a5==1)))))){ + a5 = 0; + a12 = 9; + a6 = 0; + a27 = 0; + a0 = 1; + a4 = 0; + a3 = 8; + a18 = 0; + a15 = 1; + return 26; + } else if((((a6==1)&&((!(a15==1)&&((a3==6)&&((a18==1)&&((a22==1)&&(((a20==1)&&(((a4==1)&&(input==6))&&!(a27==1)))&&!(a0==1))))))&&(a12==10)))&&!(a5==1))){ + a5 = 1; + a0 = 1; + a3 = 4; + a18 = 0; + a22 = 0; + a12 = 8; + a15 = 1; + a27 = 1; + return 26; + } else if(((a5==1)&&((a3==5)&&((a0==1)&&(!(a6==1)&&((a27==1)&&(((a15==1)&&((a20==1)&&(!(a4==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1))))&&(input==6)))))&&(a12==8)))))))){ + if((a20==1)){ + a0 = 0; + a22 = 0; + a3 = 6; + a18 = 1; + }else{ + a18 = 1; + a15 = 0; + a4 = 1; + a6 = 1; + a22 = 0; + } + return 21; + } else if(((a20==1)&&(!(a0==1)&&((a12==8)&&(!(a27==1)&&((((a6==1)&&((((((a22==1)&&(a18==1))&&!(a5==1))&&(a15==1))&&(a4==1))&&(a3==4)))||((((a3==8)&&(((((a18==1)&&!(a22==1))&&(a5==1))&&!(a15==1))&&!(a4==1)))&&!(a6==1))||(((!(a4==1)&&(!(a15==1)&&((!(a18==1)&&!(a22==1))&&(a5==1))))&&(a3==8))&&!(a6==1))))&&(input==3))))))){ + a6 = 1; + a4 = 0; + a5 = 1; + a15 = 1; + a18 = 1; + a3 = 7; + a27 = 1; + a22 = 1; + a0 = 1; + return -1; + } else if(((!(a22==1)&&(((a5==1)&&(!(a27==1)&&((((a12==12)&&((((input==1)&&(a3==5))&&!(a4==1))&&(a15==1)))&&(a0==1))&&!(a6==1))))&&(a20==1)))&&(a18==1))){ + a3 = 6; + a18 = 0; + a27 = 1; + a22 = 1; + a12 = 10; + return 21; + } else if(((((a4==1)&&((((a3==5)&&((a15==1)&&((((!(a27==1)&&(input==3))&&(a12==11))&&!(a0==1))&&(a20==1))))&&(a5==1))&&(a18==1)))&&!(a22==1))&&(a6==1))){ + a22 = 1; + a3 = 7; + a12 = 10; + a6 = 0; + a4 = 0; + a27 = 1; + return -1; + } else if(((a12==10)&&((!(a0==1)&&(((a4==1)&&((((a27==1)&&((((a3==7)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==8)))&&(input==4)))&&!(a15==1))&&!(a5==1)))&&(a20==1)))&&(a6==1)))){ + a3 = 7; + a22 = 0; + a4 = 0; + a15 = 1; + a5 = 1; + a12 = 11; + a18 = 1; + a6 = 0; + return 26; + } else if(((a6==1)&&(((((a12==10)&&((((a0==1)&&(((a20==1)&&(((a18==1)||!(a18==1))&&(input==5)))&&(a3==6)))&&(a15==1))&&!(a4==1)))&&(a22==1))&&(a5==1))&&!(a27==1)))){ + a27 = 1; + a18 = 0; + a22 = 0; + a3 = 7; + a4 = 1; + a12 = 11; + return 21; + } else if((!(a6==1)&&(!(a15==1)&&((((a20==1)&&((a5==1)&&(!(a0==1)&&(((input==1)&&((((a3==7)&&(!(a22==1)&&(a18==1)))||((!(a22==1)&&!(a18==1))&&(a3==7)))||(((a18==1)&&(a22==1))&&(a3==8))))&&!(a27==1)))))&&!(a4==1))&&(a12==10))))){ + a12 = 8; + a3 = 8; + a18 = 1; + a22 = 0; + a15 = 1; + return 21; + } else if((((a3==8)&&(!(a22==1)&&((((((((a12==12)&&(((a18==1)||!(a18==1))&&(input==4)))&&!(a4==1))&&(a5==1))&&(a27==1))&&!(a15==1))&&(a0==1))&&(a6==1))))&&(a20==1))){ + a15 = 1; + a4 = 1; + a3 = 4; + a18 = 0; + return -1; + } else if((!(a27==1)&&(((((((((((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==5))&&!(a6==1))&&!(a4==1))&&(a20==1))&&(a15==1))&&(a12==8))&&(a0==1))&&(a3==6))&&!(a5==1)))){ + a22 = 1; + a27 = 1; + a3 = 8; + a4 = 1; + a6 = 1; + a5 = 1; + a18 = 0; + a12 = 12; + a15 = 0; + return 21; + } else if(((((a12==11)&&((a22==1)&&((a3==6)&&((a5==1)&&(((a20==1)&&((((a4==1)&&(input==2))&&!(a18==1))&&(a0==1)))&&!(a6==1))))))&&(a27==1))&&(a15==1))){ + a12 = 12; + a18 = 1; + a22 = 0; + return 26; + } else if(((a3==7)&&(!(a27==1)&&(((a0==1)&&((a5==1)&&((a20==1)&&(((((input==6)&&(((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))))&&(a12==9))&&!(a15==1))&&!(a6==1)))))&&!(a4==1))))){ + a27 = 1; + a3 = 4; + a22 = 1; + a12 = 8; + a15 = 1; + a18 = 1; + a4 = 1; + a6 = 1; + return -1; + } else if((((!(a15==1)&&(((((!(a4==1)&&((a6==1)&&((a12==11)&&((input==3)&&!(a18==1)))))&&!(a27==1))&&!(a22==1))&&(a3==5))&&(a0==1)))&&(a20==1))&&(a5==1))){ + a3 = 8; + a5 = 0; + a4 = 1; + a27 = 1; + a0 = 0; + a6 = 0; + return -1; + } else if(((((a12==12)&&(((((((((input==2)&&((a18==1)||!(a18==1)))&&!(a4==1))&&!(a27==1))&&(a20==1))&&(a5==1))&&!(a22==1))&&!(a15==1))&&(a0==1)))&&(a3==5))&&(a6==1))){ + a18 = 0; + a6 = 0; + a27 = 1; + a3 = 7; + a5 = 0; + return -1; + } else if((!(a15==1)&&((a3==4)&&((a12==8)&&((!(a18==1)&&((a6==1)&&((a20==1)&&(((((input==6)&&(a4==1))&&(a27==1))&&(a22==1))&&!(a0==1)))))&&!(a5==1)))))){ + a18 = 1; + a5 = 1; + a15 = 1; + a0 = 1; + return -1; + } else if(((a5==1)&&((a20==1)&&(((a12==10)&&((a15==1)&&(!(a4==1)&&(!(a6==1)&&(((a3==6)&&(((input==6)&&((a18==1)||!(a18==1)))&&(a22==1)))&&(a0==1))))))&&!(a27==1))))){ + a3 = 7; + a15 = 0; + a4 = 1; + a18 = 0; + a12 = 9; + return 26; + } else if(((a27==1)&&((a15==1)&&((a20==1)&&((((a12==12)&&((((input==5)&&(((a3==6)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==7))))&&!(a6==1))&&(a4==1)))&&!(a0==1))&&(a5==1)))))){ + a12 = 10; + a6 = 1; + a27 = 0; + a18 = 1; + a0 = 1; + a22 = 0; + a3 = 4; + return -1; + } else if(((!(a5==1)&&((!(a15==1)&&((a3==5)&&(!(a6==1)&&((a27==1)&&(!(a4==1)&&((((a12==11)&&(input==2))&&(a18==1))&&(a0==1)))))))&&(a20==1)))&&(a22==1))){ + a15 = 1; + a4 = 1; + a5 = 1; + a3 = 6; + a18 = 0; + return -1; + } else if(((((a27==1)&&((a0==1)&&((((!(a6==1)&&(((input==4)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&(a12==11)))&&(a4==1))&&(a20==1))&&!(a15==1))))&&(a3==4))&&(a5==1))){ + a0 = 0; + a18 = 1; + a4 = 0; + a12 = 9; + a3 = 8; + a22 = 0; + return -1; + } else if(((a12==11)&&((((!(a27==1)&&(((((input==2)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||(((a18==1)&&(a22==1))&&(a3==8)))||((a3==8)&&((a22==1)&&!(a18==1)))))&&(a20==1))&&!(a4==1))&&(a0==1)))&&(a6==1))&&(a5==1))&&(a15==1)))){ + if((a3==4)){ + a18 = 1; + a3 = 5; + a27 = 1; + a4 = 1; + a6 = 0; + a12 = 9; + a0 = 0; + a22 = 0; + }else{ + a0 = 0; + a18 = 1; + a15 = 0; + a12 = 10; + a27 = 1; + a3 = 4; + a22 = 0; + a4 = 1; + } + return 26; + } else if(((a15==1)&&(!(a27==1)&&(!(a4==1)&&((((a3==6)&&((a20==1)&&((!(a22==1)&&(!(a5==1)&&(((a18==1)||!(a18==1))&&(input==4))))&&(a0==1))))&&!(a6==1))&&(a12==10)))))){ + a18 = 1; + a12 = 12; + a27 = 1; + a5 = 1; + a6 = 1; + a3 = 5; + a4 = 1; + return 26; + } else if((!(a0==1)&&((a6==1)&&((a15==1)&&((a12==10)&&(((!(a4==1)&&(((((!(a22==1)&&!(a18==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))&&(input==6))&&!(a5==1)))&&(a20==1))&&!(a27==1))))))){ + if((a5==1)){ + a22 = 0; + a6 = 0; + a27 = 1; + a18 = 1; + a15 = 0; + a0 = 1; + a3 = 7; + }else{ + a18 = 1; + a3 = 8; + a6 = 0; + a22 = 1; + a15 = 0; + a27 = 1; + a12 = 12; + } + return 21; + } else if((((a20==1)&&(!(a5==1)&&((a3==4)&&(!(a6==1)&&(((a27==1)&&((a15==1)&&(((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==1))&&(a12==11))))&&(a0==1))))))&&(a4==1))){ + a5 = 1; + a18 = 0; + a12 = 10; + a22 = 0; + a3 = 8; + a15 = 0; + return -1; + } else if((((a12==10)&&((((a27==1)&&(!(a15==1)&&((((!(a4==1)&&((input==5)&&((a18==1)||!(a18==1))))&&(a5==1))&&(a20==1))&&(a22==1))))&&(a0==1))&&(a3==6)))&&(a6==1))){ + a15 = 1; + a3 = 4; + a18 = 1; + a4 = 1; + a12 = 8; + return -1; + } else if((((a20==1)&&(!(a15==1)&&((a0==1)&&(!(a27==1)&&((a12==8)&&((a4==1)&&(((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==4))&&!(a6==1))&&(a3==5))))))))&&!(a5==1))){ + a5 = 1; + a27 = 1; + a3 = 8; + a12 = 11; + a18 = 0; + a22 = 1; + return 26; + } else if((((((a20==1)&&(((!(a5==1)&&(!(a15==1)&&((((((a18==1)&&!(a22==1))&&(a3==7))||((!(a18==1)&&!(a22==1))&&(a3==7)))||((a3==8)&&((a22==1)&&(a18==1))))&&(input==6))))&&(a12==8))&&!(a4==1)))&&!(a27==1))&&(a6==1))&&(a0==1))){ + a6 = 0; + a5 = 1; + a3 = 5; + a18 = 1; + a27 = 1; + a12 = 11; + a22 = 1; + return -1; + } else if(((a12==9)&&(((a22==1)&&((((a3==5)&&((((((a15==1)&&(input==2))&&(a0==1))&&(a27==1))&&!(a4==1))&&(a20==1)))&&(a6==1))&&!(a18==1)))&&(a5==1)))){ + a6 = 0; + a18 = 1; + a3 = 8; + a12 = 12; + a15 = 0; + return 26; + } else if(((((!(a15==1)&&(((a20==1)&&(!(a4==1)&&(((((((a18==1)&&!(a22==1))&&(a3==5))||((a3==5)&&(!(a18==1)&&!(a22==1))))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==1))&&(a6==1))))&&!(a27==1)))&&(a0==1))&&!(a5==1))&&(a12==8))){ + a12 = 12; + a18 = 0; + a27 = 1; + a3 = 5; + a15 = 1; + a22 = 0; + return 21; + } else if(((!(a4==1)&&(!(a6==1)&&((a0==1)&&(((!(a5==1)&&(((((a3==5)&&(!(a22==1)&&!(a18==1)))||((a3==6)&&((a18==1)&&(a22==1))))&&(input==5))&&(a20==1)))&&!(a15==1))&&!(a27==1)))))&&(a12==11))){ + if((a15==1)){ + a3 = 6; + a12 = 9; + a4 = 1; + a0 = 0; + a22 = 0; + a27 = 1; + a18 = 0; + }else{ + a15 = 1; + a18 = 0; + a5 = 1; + a6 = 1; + a27 = 1; + a3 = 8; + a22 = 0; + } + return 21; + } else if(((a5==1)&&((a12==12)&&(!(a15==1)&&(((((((a0==1)&&(!(a27==1)&&((input==6)&&((a18==1)||!(a18==1)))))&&(a22==1))&&(a4==1))&&(a20==1))&&(a6==1))&&(a3==8)))))){ + a18 = 1; + a5 = 0; + a6 = 0; + a27 = 1; + a3 = 7; + a12 = 10; + a0 = 0; + return 21; + } else if((!(a4==1)&&((a15==1)&&((a20==1)&&(!(a0==1)&&((a3==6)&&(!(a6==1)&&((a27==1)&&((((input==3)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&!(a5==1))&&(a12==9)))))))))){ + a18 = 0; + a0 = 1; + a12 = 8; + a3 = 5; + a5 = 1; + a22 = 0; + return -1; + } else if((((a15==1)&&(!(a6==1)&&((a3==6)&&(((a5==1)&&((a4==1)&&(((a27==1)&&(!(a22==1)&&(((a18==1)||!(a18==1))&&(input==6))))&&(a0==1))))&&(a12==12)))))&&(a20==1))){ + a22 = 1; + a18 = 1; + a5 = 0; + a0 = 0; + a12 = 9; + return 21; + } else if(((a12==8)&&((a20==1)&&(((a18==1)&&(((!(a6==1)&&(!(a0==1)&&((((a3==7)&&(input==2))&&!(a27==1))&&(a15==1))))&&!(a5==1))&&!(a22==1)))&&!(a4==1))))){ + if((a0==1)){ + a0 = 1; + a4 = 1; + a27 = 1; + a3 = 5; + a5 = 1; + }else{ + a3 = 6; + a4 = 1; + a27 = 1; + a5 = 1; + a0 = 1; + a6 = 1; + } + return 21; + } else if(((a3==6)&&((a12==11)&&((((((a0==1)&&(!(a5==1)&&((((input==6)&&((a18==1)||!(a18==1)))&&!(a4==1))&&(a15==1))))&&(a22==1))&&(a20==1))&&(a6==1))&&!(a27==1))))){ + a0 = 0; + a12 = 10; + a27 = 1; + a18 = 1; + a4 = 1; + a3 = 8; + return -1; + } else if(((a15==1)&&((!(a27==1)&&((a12==8)&&((((((a3==6)&&((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))&&(input==1)))&&!(a6==1))&&(a4==1))&&(a5==1))&&(a20==1))))&&!(a0==1)))){ + a27 = 1; + a6 = 1; + a22 = 0; + a18 = 1; + a3 = 5; + a0 = 1; + return 26; + } else if(((!(a18==1)&&((a6==1)&&((a0==1)&&(((a20==1)&&((((a27==1)&&((a22==1)&&((input==4)&&(a15==1))))&&!(a5==1))&&(a12==9)))&&(a3==4)))))&&!(a4==1))){ + a4 = 1; + a27 = 0; + a12 = 8; + a3 = 7; + a18 = 1; + return 26; + } else if((!(a6==1)&&((a20==1)&&(((a3==8)&&(!(a4==1)&&((a22==1)&&(((a27==1)&&(((a0==1)&&((input==4)&&!(a18==1)))&&!(a5==1)))&&(a12==11)))))&&!(a15==1))))){ + a12 = 10; + a3 = 5; + a6 = 1; + a22 = 0; + a15 = 1; + return -1; + } else if((!(a5==1)&&((a20==1)&&((((a27==1)&&((((!(a22==1)&&((!(a6==1)&&(input==2))&&(a18==1)))&&(a3==4))&&(a4==1))&&(a12==8)))&&!(a15==1))&&(a0==1))))){ + if((a12==12)){ + a27 = 0; + a18 = 0; + a22 = 1; + a12 = 12; + a4 = 0; + a3 = 7; + }else{ + a12 = 11; + a5 = 1; + a15 = 1; + a6 = 1; + } + return 21; + } else if(((a5==1)&&((a12==10)&&((a18==1)&&((!(a22==1)&&((a27==1)&&((a4==1)&&(!(a0==1)&&(((a3==4)&&(!(a15==1)&&(input==2)))&&(a6==1))))))&&(a20==1)))))){ + a12 = 11; + a6 = 0; + a0 = 1; + a4 = 0; + a3 = 8; + return 21; + } else if(((((a4==1)&&((a12==9)&&(((a3==6)&&(((!(a15==1)&&((a20==1)&&(!(a27==1)&&(input==5))))&&!(a22==1))&&(a5==1)))&&!(a0==1))))&&(a18==1))&&(a6==1))){ + a18 = 0; + a12 = 8; + a27 = 1; + a0 = 1; + a15 = 1; + a3 = 8; + return 21; + } else if(((((a3==7)&&((a12==10)&&(((a27==1)&&((((((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))&&(input==4))&&(a20==1))&&(a15==1))&&!(a4==1)))&&!(a5==1))))&&!(a6==1))&&!(a0==1))){ + a22 = 1; + a12 = 11; + a27 = 0; + a4 = 1; + a0 = 1; + a18 = 1; + return 26; + } else if((!(a4==1)&&(((a0==1)&&(!(a18==1)&&(!(a6==1)&&(((a3==8)&&((((a12==11)&&((a22==1)&&(input==3)))&&(a20==1))&&(a5==1)))&&!(a15==1)))))&&!(a27==1)))){ + a27 = 1; + a15 = 1; + a6 = 1; + a4 = 1; + a18 = 1; + a12 = 8; + a3 = 4; + return -1; + } else if((!(a4==1)&&(!(a27==1)&&(((a12==8)&&(((a5==1)&&((a20==1)&&(!(a6==1)&&((((a3==6)&&(!(a22==1)&&!(a18==1)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==3)))))&&(a0==1)))&&(a15==1))))){ + if((a27==1)){ + a18 = 0; + a6 = 1; + a0 = 0; + a22 = 1; + a12 = 11; + a15 = 0; + a3 = 5; + a27 = 1; + }else{ + a5 = 0; + a27 = 1; + a18 = 0; + a3 = 4; + a12 = 10; + a22 = 1; + } + return -1; + } else if(((((a6==1)&&(!(a22==1)&&((a12==10)&&((!(a4==1)&&(!(a27==1)&&(((((a18==1)||!(a18==1))&&(input==3))&&(a0==1))&&(a5==1))))&&!(a15==1)))))&&(a20==1))&&(a3==4))){ + a18 = 0; + a12 = 11; + a6 = 0; + a27 = 1; + a5 = 0; + return 21; + } else if(((!(a0==1)&&(((a3==4)&&(!(a27==1)&&((a4==1)&&(((a12==10)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a18==1)&&!(a22==1)))&&(input==4))&&!(a5==1)))&&(a6==1)))))&&(a20==1)))&&!(a15==1))){ + if((a20==1)){ + a12 = 8; + a18 = 1; + a3 = 6; + a0 = 1; + a15 = 1; + a6 = 0; + a27 = 1; + a5 = 1; + a22 = 0; + }else{ + a15 = 1; + a22 = 0; + a27 = 1; + a18 = 0; + a5 = 1; + } + return -1; + } else if((!(a0==1)&&(((a5==1)&&((a15==1)&&((a12==9)&&((((((a3==8)&&((!(a22==1)&&!(a18==1))&&(a4==1)))&&!(a6==1))||(((a3==4)&&(((a18==1)&&(a22==1))&&!(a4==1)))&&(a6==1)))&&(input==3))&&(a20==1)))))&&!(a27==1)))){ + a22 = 1; + a6 = 0; + a0 = 1; + a3 = 8; + a27 = 1; + a18 = 0; + a4 = 1; + a12 = 8; + return 21; + } else if(((((!(a6==1)&&(!(a4==1)&&((a12==8)&&((a0==1)&&(((((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))&&(input==3))&&(a27==1))&&(a15==1))))))&&(a20==1))&&(a3==5))&&!(a5==1))){ + a18 = 0; + a3 = 6; + a12 = 10; + a22 = 1; + a5 = 1; + a15 = 0; + return 26; + } else if((!(a0==1)&&((!(a22==1)&&((a27==1)&&((a12==10)&&((a6==1)&&(!(a15==1)&&((!(a4==1)&&(((a5==1)&&(input==4))&&(a20==1)))&&(a3==6)))))))&&!(a18==1)))){ + a12 = 8; + a4 = 1; + a15 = 1; + a18 = 1; + a3 = 4; + a22 = 1; + a0 = 1; + return -1; + } else if((!(a27==1)&&((((((((a3==4)&&((a20==1)&&(((!(a22==1)&&!(a18==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==3))))&&(a12==11))&&!(a0==1))&&!(a4==1))&&!(a6==1))&&(a5==1))&&!(a15==1)))){ + a27 = 1; + a22 = 0; + a15 = 1; + a6 = 1; + a0 = 1; + a12 = 8; + a4 = 1; + a18 = 0; + return 26; + } else if(((a20==1)&&((!(a18==1)&&((a27==1)&&((((!(a6==1)&&((a22==1)&&(((input==1)&&(a12==8))&&(a3==4))))&&(a0==1))&&!(a15==1))&&!(a5==1))))&&(a4==1)))){ + if((a22==1)){ + a12 = 10; + a6 = 1; + a0 = 0; + }else{ + a3 = 7; + a5 = 1; + a4 = 0; + a0 = 0; + a6 = 1; + a12 = 9; + } + return 21; + } else if(((a3==7)&&(((((((!(a4==1)&&((((input==2)&&!(a0==1))&&!(a6==1))&&(a12==8)))&&(a15==1))&&!(a22==1))&&!(a5==1))&&(a20==1))&&!(a18==1))&&(a27==1)))){ + a4 = 1; + a0 = 1; + a3 = 8; + a12 = 12; + a5 = 1; + a6 = 1; + return 21; + } else if((((!(a15==1)&&(((((a5==1)&&((a27==1)&&((((a4==1)&&(input==6))&&(a3==4))&&!(a0==1))))&&(a20==1))&&(a12==10))&&!(a6==1)))&&(a18==1))&&(a22==1))){ + a0 = 1; + a12 = 8; + a6 = 1; + a15 = 1; + return -1; + } else if(((a12==10)&&((((a20==1)&&((a15==1)&&(((a4==1)&&(((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||(((a3==4)&&((a18==1)&&(a22==1)))&&!(a6==1)))&&(input==6)))&&!(a27==1))))&&!(a0==1))&&(a5==1)))){ + a27 = 1; + a6 = 1; + a18 = 0; + a3 = 5; + a22 = 0; + a4 = 0; + a12 = 12; + return 26; + } else if((!(a5==1)&&(!(a27==1)&&((a0==1)&&((a22==1)&&(((a3==5)&&(!(a18==1)&&(!(a15==1)&&((a4==1)&&((a12==12)&&((a6==1)&&(input==2)))))))&&(a20==1))))))){ + a5 = 1; + a15 = 1; + a12 = 10; + a18 = 1; + a27 = 1; + a3 = 6; + return -1; + } else if(((a5==1)&&((a3==4)&&(((a27==1)&&(((a4==1)&&((((a12==11)&&(((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(input==6)))&&(a0==1))&&(a15==1)))&&!(a6==1)))&&(a20==1))))){ + a27 = 0; + a5 = 0; + a6 = 1; + a15 = 0; + a12 = 10; + a22 = 0; + a3 = 5; + a18 = 1; + return 21; + } else if(((a5==1)&&((((a3==5)&&(((!(a27==1)&&(((((!(a18==1)&&!(a22==1))||((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1))))&&(input==3))&&(a4==1))&&!(a6==1)))&&(a20==1))&&(a15==1)))&&(a12==12))&&(a0==1)))){ + a5 = 0; + a18 = 0; + a15 = 0; + a22 = 0; + a6 = 1; + a12 = 11; + a3 = 7; + a27 = 1; + return 21; + } else if(((a12==9)&&((a20==1)&&(!(a6==1)&&(((((((input==4)&&((((a3==4)&&(!(a22==1)&&(a18==1)))||((a3==4)&&(!(a22==1)&&!(a18==1))))||(((a18==1)&&(a22==1))&&(a3==5))))&&!(a0==1))&&(a15==1))&&(a27==1))&&(a4==1))&&(a5==1)))))){ + a12 = 8; + a0 = 1; + a22 = 1; + a18 = 1; + a6 = 1; + a3 = 4; + return -1; + } else if(((a15==1)&&(((!(a4==1)&&((((((((!(a18==1)&&!(a22==1))&&(a3==4))||(((a22==1)&&(a18==1))&&(a3==5)))&&(input==3))&&!(a6==1))&&!(a5==1))&&(a20==1))&&(a12==10)))&&!(a0==1))&&!(a27==1)))){ + a3 = 8; + a27 = 1; + a22 = 0; + a12 = 12; + a18 = 1; + return 26; + } else if(((!(a4==1)&&((((a0==1)&&((a20==1)&&(!(a18==1)&&((a3==4)&&((((a12==8)&&(input==3))&&!(a15==1))&&(a6==1))))))&&!(a5==1))&&!(a22==1)))&&!(a27==1))){ + if((a6==1)){ + a15 = 1; + a27 = 1; + a3 = 5; + a5 = 1; + a18 = 1; + a6 = 0; + a0 = 0; + a22 = 1; + a4 = 1; + }else{ + a3 = 5; + a4 = 1; + a15 = 1; + a6 = 0; + } + return 24; + } else if(((((((a20==1)&&(!(a15==1)&&(((a6==1)&&((input==1)&&(((!(a18==1)&&!(a22==1))&&(a3==4))||((a3==5)&&((a18==1)&&(a22==1))))))&&!(a27==1))))&&(a12==11))&&!(a5==1))&&!(a4==1))&&!(a0==1))){ + if((a20==1)){ + a27 = 1; + a22 = 1; + a3 = 5; + a5 = 1; + a15 = 1; + a18 = 0; + a12 = 8; + a0 = 1; + }else{ + a4 = 1; + a22 = 1; + a15 = 1; + a3 = 4; + a6 = 0; + a18 = 1; + a27 = 1; + a5 = 1; + a12 = 12; + } + return -1; + } else if(((a3==7)&&((!(a15==1)&&(!(a4==1)&&(!(a0==1)&&(!(a6==1)&&((a12==9)&&(((a20==1)&&((input==2)&&((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))))&&(a27==1)))))))&&!(a5==1)))){ + a5 = 1; + a12 = 8; + a6 = 1; + a18 = 1; + a15 = 1; + a22 = 1; + a4 = 1; + a3 = 4; + a0 = 1; + return -1; + } else if(((a3==8)&&(((((((a12==8)&&(!(a5==1)&&((((!(a18==1)&&(a22==1))||(!(a22==1)&&(a18==1)))&&(input==5))&&!(a15==1))))&&(a20==1))&&(a0==1))&&!(a27==1))&&(a4==1))&&(a6==1)))){ + a3 = 5; + a27 = 1; + a15 = 1; + a22 = 1; + a5 = 1; + a18 = 0; + return -1; + } else if(((a3==7)&&(((!(a6==1)&&((!(a0==1)&&((a27==1)&&((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))&&(input==2))&&(a12==8))&&(a15==1))))&&!(a4==1)))&&(a20==1))&&!(a5==1)))){ + a4 = 1; + a12 = 11; + a22 = 0; + a0 = 1; + a6 = 1; + a18 = 1; + a5 = 1; + return -1; + } else if(((a20==1)&&(((a3==8)&&((a4==1)&&((!(a15==1)&&(((!(a18==1)&&((!(a0==1)&&(input==5))&&!(a5==1)))&&(a6==1))&&(a27==1)))&&!(a22==1))))&&(a12==10)))){ + a18 = 1; + a3 = 4; + a22 = 1; + a5 = 1; + a0 = 1; + a15 = 1; + a12 = 8; + return -1; + } else if(((a6==1)&&(((((a20==1)&&(!(a5==1)&&((((a12==11)&&((((a18==1)||!(a18==1))&&(input==1))&&!(a15==1)))&&(a3==7))&&(a4==1))))&&!(a0==1))&&!(a22==1))&&(a27==1)))){ + a3 = 6; + a5 = 1; + a0 = 1; + a12 = 10; + a18 = 0; + return 21; + } else if((((!(a22==1)&&(((((((!(a15==1)&&(((a18==1)||!(a18==1))&&(input==1)))&&!(a4==1))&&(a6==1))&&(a20==1))&&!(a0==1))&&(a5==1))&&(a12==12)))&&(a3==4))&&(a27==1))){ + if((a6==1)){ + a12 = 8; + a18 = 0; + a27 = 0; + a22 = 1; + a15 = 1; + a3 = 6; + }else{ + a3 = 5; + a4 = 1; + a12 = 8; + a15 = 1; + a0 = 1; + a18 = 1; + } + return 21; + } else if(((a5==1)&&((a4==1)&&((((!(a27==1)&&((a20==1)&&(((input==5)&&((((!(a18==1)&&!(a22==1))&&(a3==7))||((a3==8)&&((a18==1)&&(a22==1))))||((a3==8)&&((a22==1)&&!(a18==1)))))&&(a15==1))))&&!(a0==1))&&(a12==10))&&(a6==1))))){ + a12 = 8; + a0 = 1; + a27 = 1; + a18 = 1; + a4 = 0; + a3 = 5; + a22 = 1; + return 21; + } else if((((a3==5)&&((!(a6==1)&&((((((((a12==10)&&(input==1))&&(a5==1))&&!(a27==1))&&(a4==1))&&(a20==1))&&(a15==1))&&!(a22==1)))&&(a0==1)))&&!(a18==1))){ + a12 = 11; + a22 = 1; + a27 = 1; + return 26; + } else if(((a4==1)&&((a6==1)&&(((a20==1)&&((a15==1)&&((a3==6)&&((!(a0==1)&&((((((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))||(!(a22==1)&&!(a18==1)))&&(input==1))&&(a27==1)))&&(a12==9)))))&&(a5==1))))){ + a6 = 0; + a18 = 1; + a15 = 0; + a0 = 1; + a4 = 0; + a12 = 12; + a22 = 1; + return 26; + } else if(((a27==1)&&(!(a4==1)&&((a20==1)&&(!(a5==1)&&((a12==11)&&((!(a15==1)&&((input==5)&&(((((a22==1)&&!(a18==1))&&(a3==4))&&!(a6==1))||((((a3==8)&&(!(a22==1)&&!(a18==1)))&&(a6==1))||(((a3==4)&&((a22==1)&&(a18==1)))&&!(a6==1))))))&&(a0==1)))))))){ + a6 = 1; + a12 = 10; + a22 = 1; + a3 = 8; + a18 = 0; + return 26; + } else if((!(a6==1)&&((a4==1)&&(((a5==1)&&((((!(a0==1)&&((a20==1)&&(((((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1)))||(!(a22==1)&&(a18==1)))&&(input==5))))&&(a27==1))&&(a12==12))&&!(a15==1)))&&(a3==7))))){ + if((a5==1)){ + a3 = 5; + a22 = 1; + a15 = 1; + a18 = 0; + a4 = 0; + a0 = 1; + a6 = 1; + a12 = 8; + }else{ + a6 = 1; + a3 = 5; + a18 = 0; + a12 = 8; + a4 = 0; + a0 = 1; + a22 = 1; + a15 = 1; + } + return -1; + } else if(((!(a6==1)&&(((((a27==1)&&(!(a18==1)&&((a15==1)&&(((a3==7)&&((a4==1)&&(input==4)))&&(a5==1)))))&&(a12==11))&&!(a22==1))&&!(a0==1)))&&(a20==1))){ + a15 = 0; + a18 = 1; + a0 = 1; + a27 = 0; + a4 = 0; + a12 = 10; + a22 = 1; + a3 = 5; + return -1; + } else if((((a27==1)&&(((!(a6==1)&&((a0==1)&&((((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==2))&&!(a4==1))&&(a5==1))&&(a12==10))))&&(a3==8))&&(a15==1)))&&(a20==1))){ + a4 = 1; + a6 = 1; + a12 = 11; + a3 = 6; + a18 = 1; + a22 = 1; + return 26; + } else if((((a20==1)&&(((!(a0==1)&&((a22==1)&&((!(a27==1)&&(!(a18==1)&&(((a5==1)&&(input==2))&&(a6==1))))&&(a12==8))))&&(a3==7))&&!(a4==1)))&&(a15==1))){ + a0 = 1; + a6 = 0; + a27 = 1; + a3 = 5; + a18 = 1; + a22 = 0; + a4 = 1; + return -1; + } else if(((!(a22==1)&&((a27==1)&&(((a12==9)&&((a5==1)&&((((a20==1)&&((a4==1)&&((a3==7)&&(input==3))))&&(a0==1))&&!(a6==1))))&&(a18==1))))&&!(a15==1))){ + if((a3==8)){ + a5 = 0; + a6 = 1; + a0 = 0; + a3 = 4; + a15 = 1; + a12 = 10; + a18 = 0; + }else{ + a6 = 1; + a5 = 0; + a15 = 1; + a3 = 6; + a12 = 11; + } + return 21; + } else if(((((!(a0==1)&&((a3==8)&&((a27==1)&&((((a12==9)&&(!(a22==1)&&(((a18==1)||!(a18==1))&&(input==1))))&&(a6==1))&&!(a15==1)))))&&(a20==1))&&!(a4==1))&&(a5==1))){ + a12 = 12; + a22 = 1; + a18 = 1; + a4 = 1; + a6 = 0; + a3 = 5; + a0 = 1; + a5 = 0; + return -1; + } else if((((((a0==1)&&(!(a5==1)&&((a12==12)&&(((input==4)&&((!(a6==1)&&((a3==4)&&((a22==1)&&(a18==1))))||((((a3==8)&&(!(a22==1)&&(a18==1)))&&(a6==1))||((a6==1)&&((a3==8)&&(!(a18==1)&&!(a22==1)))))))&&!(a4==1)))))&&(a20==1))&&(a27==1))&&(a15==1))){ + a6 = 1; + a12 = 11; + a18 = 0; + a15 = 0; + a3 = 5; + a22 = 0; + return 21; + } else if((!(a5==1)&&((a20==1)&&((((((((input==6)&&(((a3==8)&&((a22==1)&&(a18==1)))||((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a22==1)&&!(a18==1))))))&&!(a6==1))&&(a12==9))&&(a27==1))&&!(a15==1))&&(a4==1))&&!(a0==1))))){ + a5 = 1; + a15 = 1; + a12 = 8; + a22 = 1; + a0 = 1; + a6 = 1; + a18 = 1; + a3 = 4; + return -1; + } else if(((((a3==5)&&((a12==8)&&(((((a15==1)&&((a20==1)&&(((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==1))))&&(a27==1))&&!(a0==1))&&!(a5==1))))&&(a6==1))&&!(a4==1))){ + a0 = 1; + a12 = 10; + a3 = 4; + a6 = 0; + a18 = 1; + a5 = 1; + a22 = 1; + return 24; + } else if((((a6==1)&&((a5==1)&&((((a3==6)&&(((a12==8)&&(((input==2)&&((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))))&&(a4==1)))&&(a15==1)))&&(a27==1))&&(a20==1))))&&!(a0==1))){ + a3 = 5; + a27 = 0; + a12 = 10; + a0 = 1; + a18 = 1; + a15 = 0; + a22 = 0; + a6 = 0; + return 26; + } else if((((a20==1)&&(!(a6==1)&&((a3==5)&&((((a4==1)&&((((a15==1)&&((input==5)&&(a18==1)))&&!(a27==1))&&(a22==1)))&&(a12==8))&&(a5==1)))))&&!(a0==1))){ + if((a4==1)){ + a5 = 0; + a18 = 0; + a6 = 1; + a15 = 0; + a22 = 0; + }else{ + a3 = 6; + a0 = 1; + a18 = 0; + a27 = 1; + a22 = 0; + } + return 21; + } else if((((((((a3==5)&&((a27==1)&&((!(a15==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||((a22==1)&&!(a18==1))))&&(input==6)))&&!(a0==1))))&&!(a6==1))&&!(a4==1))&&(a20==1))&&(a12==8))&&!(a5==1))){ + a22 = 1; + a0 = 1; + a27 = 0; + a3 = 8; + a6 = 1; + a18 = 0; + a4 = 1; + a12 = 12; + a5 = 1; + return 26; + } else if(((a3==4)&&(((a6==1)&&(!(a4==1)&&((a20==1)&&((((a5==1)&&(((a12==8)&&(((a18==1)||!(a18==1))&&(input==1)))&&(a15==1)))&&!(a22==1))&&!(a27==1)))))&&(a0==1)))){ + a18 = 1; + a27 = 1; + a3 = 6; + a5 = 0; + a4 = 1; + a6 = 0; + a12 = 11; + return -1; + } else if(((!(a22==1)&&(((((a5==1)&&((a3==8)&&((a4==1)&&((((a20==1)&&(input==3))&&(a6==1))&&!(a0==1)))))&&!(a27==1))&&!(a15==1))&&(a18==1)))&&(a12==8))){ + if((a6==1)){ + a0 = 1; + a15 = 1; + a3 = 5; + a27 = 1; + a18 = 0; + }else{ + a3 = 6; + a27 = 1; + a18 = 0; + a0 = 1; + a15 = 1; + a6 = 0; + } + return -1; + } else if(((((a15==1)&&(!(a0==1)&&((a20==1)&&((!(a5==1)&&((a6==1)&&(((((a18==1)&&(a22==1))&&(a3==6))||(((a3==5)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==5))))&&(input==1))))&&!(a4==1)))))&&!(a27==1))&&(a12==10))){ + if((a18==1)){ + a22 = 1; + a5 = 1; + a18 = 0; + a3 = 7; + a0 = 1; + a27 = 1; + a12 = 8; + }else{ + a27 = 1; + a3 = 8; + a0 = 1; + a4 = 1; + a12 = 8; + a6 = 0; + a18 = 1; + a5 = 1; + a22 = 1; + } + return -1; + } else if((!(a0==1)&&((a27==1)&&((a3==7)&&((a20==1)&&(!(a5==1)&&((((a12==8)&&(((input==4)&&((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&!(a6==1)))&&!(a15==1))&&(a4==1)))))))){ + a4 = 0; + a18 = 0; + a0 = 1; + a22 = 1; + a15 = 1; + a6 = 1; + a12 = 11; + return 24; + } else if((((!(a6==1)&&(!(a27==1)&&(!(a5==1)&&((!(a0==1)&&(((a3==6)&&((input==1)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a4==1)))&&(a20==1)))))&&(a12==11))&&!(a15==1))){ + a4 = 0; + a22 = 1; + a5 = 1; + a3 = 4; + a6 = 1; + a12 = 8; + a18 = 1; + return -1; + } else if(((a18==1)&&(((!(a4==1)&&((((((a15==1)&&(!(a27==1)&&((a3==8)&&(input==5))))&&(a0==1))&&(a5==1))&&(a6==1))&&(a22==1)))&&(a12==8))&&(a20==1)))){ + a3 = 5; + a6 = 0; + a27 = 1; + a12 = 10; + a22 = 0; + return 26; + } else if(((a18==1)&&(((!(a22==1)&&(((((a20==1)&&((((input==2)&&(a3==4))&&(a5==1))&&!(a0==1)))&&(a12==8))&&(a4==1))&&(a27==1)))&&(a6==1))&&!(a15==1)))){ + a15 = 1; + a3 = 5; + a12 = 11; + a0 = 1; + a6 = 0; + a22 = 1; + return 26; + } else if(((((((a3==7)&&((!(a0==1)&&((!(a22==1)&&((((a18==1)||!(a18==1))&&(input==5))&&!(a15==1)))&&(a6==1)))&&!(a5==1)))&&(a12==11))&&(a20==1))&&(a27==1))&&(a4==1))){ + a18 = 1; + a0 = 1; + a15 = 1; + a12 = 8; + a5 = 1; + a22 = 1; + a3 = 4; + return -1; + } else if((((a5==1)&&((a12==9)&&((a20==1)&&(((a6==1)&&((((((a3==5)&&(!(a18==1)&&(a22==1)))||(((!(a22==1)&&!(a18==1))&&(a3==4))||((a3==5)&&((a22==1)&&(a18==1)))))&&(input==1))&&!(a0==1))&&!(a4==1)))&&(a15==1)))))&&!(a27==1))){ + if((a12==10)){ + a22 = 0; + a4 = 1; + a0 = 1; + a27 = 1; + a18 = 0; + a3 = 6; + a12 = 8; + }else{ + a18 = 0; + a0 = 1; + a22 = 0; + a3 = 7; + a12 = 8; + a4 = 1; + a15 = 0; + } + return -1; + } else if((!(a5==1)&&(((a4==1)&&(((((a3==4)&&(!(a6==1)&&(((a12==10)&&((input==1)&&((a18==1)||!(a18==1))))&&(a27==1))))&&!(a15==1))&&(a22==1))&&!(a0==1)))&&(a20==1)))){ + a4 = 0; + a22 = 0; + a0 = 1; + a15 = 1; + a18 = 1; + a3 = 5; + return 21; + } else if(((((a20==1)&&(((a3==8)&&((((a22==1)&&((a0==1)&&((a4==1)&&(((a18==1)||!(a18==1))&&(input==1)))))&&(a27==1))&&!(a6==1)))&&(a12==9)))&&(a5==1))&&!(a15==1))){ + a18 = 1; + a12 = 8; + a6 = 1; + a15 = 1; + a27 = 0; + a3 = 7; + a22 = 0; + return 21; + } else if(((a5==1)&&((((a4==1)&&(((((a3==7)&&(!(a6==1)&&((input==4)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))))&&(a0==1))&&!(a15==1))&&(a12==9)))&&!(a27==1))&&(a20==1)))){ + a5 = 0; + a15 = 1; + a3 = 5; + a18 = 0; + a0 = 0; + a27 = 1; + a22 = 1; + a6 = 1; + a4 = 0; + return 21; + } else if(((a12==9)&&(!(a22==1)&&((a4==1)&&((a6==1)&&((((a20==1)&&(!(a18==1)&&((!(a27==1)&&((input==3)&&(a5==1)))&&(a3==7))))&&(a15==1))&&(a0==1))))))){ + a6 = 0; + a12 = 10; + a3 = 6; + a27 = 1; + a5 = 0; + a0 = 0; + a15 = 0; + return 21; + } else if((!(a4==1)&&((a12==10)&&(((a5==1)&&((((!(a18==1)&&((((input==4)&&(a20==1))&&(a27==1))&&!(a15==1)))&&(a0==1))&&!(a6==1))&&(a3==8)))&&(a22==1))))){ + a4 = 1; + a3 = 6; + a27 = 0; + a15 = 1; + return 26; + } else if((!(a27==1)&&(((a6==1)&&((((a0==1)&&((a12==10)&&(((a3==5)&&((input==4)&&((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))))&&(a20==1))))&&!(a4==1))&&(a15==1)))&&!(a5==1)))){ + a12 = 12; + a4 = 1; + a22 = 1; + a18 = 1; + a27 = 1; + a6 = 0; + return 21; + } else if(((a5==1)&&(((a20==1)&&(((!(a0==1)&&((a4==1)&&((a27==1)&&((((!(a18==1)&&!(a22==1))||(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1))))&&(input==4))&&(a6==1)))))&&!(a15==1))&&(a12==8)))&&(a3==6)))){ + a6 = 0; + a5 = 0; + a0 = 1; + a15 = 1; + a22 = 1; + a12 = 12; + a3 = 5; + a18 = 1; + return -1; + } else if((((a4==1)&&(((a27==1)&&(!(a5==1)&&((a20==1)&&(((((a6==1)&&((!(a22==1)&&!(a18==1))&&(a3==8)))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1)))&&(input==4))&&(a15==1)))))&&!(a0==1)))&&(a12==10))){ + a12 = 9; + a18 = 0; + a3 = 6; + a15 = 0; + a4 = 0; + a6 = 1; + a5 = 1; + a0 = 1; + a22 = 0; + a27 = 0; + return -1; + } else if(((a20==1)&&((!(a0==1)&&(!(a5==1)&&((a4==1)&&((a22==1)&&(((((((a18==1)||!(a18==1))&&(input==3))&&(a12==10))&&(a3==5))&&(a6==1))&&!(a15==1))))))&&!(a27==1)))){ + a18 = 1; + a3 = 6; + a15 = 1; + a12 = 12; + a27 = 1; + return -1; + } else if(((!(a4==1)&&((((((((a3==8)&&(((input==4)&&(a27==1))&&!(a18==1)))&&(a15==1))&&(a20==1))&&(a6==1))&&(a22==1))&&!(a0==1))&&!(a5==1)))&&(a12==9))){ + a0 = 1; + a6 = 0; + a3 = 4; + a4 = 1; + a15 = 0; + a12 = 10; + return -1; + } else if(((((a27==1)&&(((a5==1)&&((((a12==10)&&(((a4==1)&&(!(a0==1)&&(input==2)))&&(a6==1)))&&(a15==1))&&!(a18==1)))&&(a20==1)))&&(a3==4))&&(a22==1))){ + a0 = 1; + a3 = 5; + a22 = 0; + return -1; + } else if(((a4==1)&&((a27==1)&&((((a15==1)&&((a5==1)&&((a22==1)&&((((a0==1)&&((a18==1)&&(input==2)))&&!(a6==1))&&(a12==9)))))&&(a3==8))&&(a20==1))))){ + a3 = 4; + a6 = 1; + a12 = 8; + return -1; + } else if((((a3==7)&&(!(a5==1)&&(!(a0==1)&&((((a4==1)&&((!(a15==1)&&((input==5)&&(((a22==1)&&!(a18==1))||(!(a22==1)&&(a18==1)))))&&(a12==12)))&&(a27==1))&&(a20==1)))))&&!(a6==1))){ + a18 = 1; + a27 = 0; + a0 = 1; + a15 = 1; + a6 = 1; + a12 = 8; + a3 = 6; + a22 = 1; + return -1; + } else if(((((a3==7)&&((a4==1)&&(!(a5==1)&&(!(a15==1)&&((((a12==8)&&((input==5)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1)))))&&!(a27==1))&&(a6==1))))))&&(a20==1))&&!(a0==1))){ + if((a20==1)){ + a18 = 1; + a3 = 5; + a22 = 0; + a27 = 1; + a6 = 0; + a15 = 1; + a0 = 1; + a5 = 1; + }else{ + a18 = 1; + a22 = 0; + a3 = 8; + a12 = 9; + a27 = 1; + a6 = 0; + } + return 24; + } else if((((a15==1)&&((a18==1)&&(!(a22==1)&&((a3==4)&&((a6==1)&&(!(a5==1)&&((a12==12)&&((!(a4==1)&&((a27==1)&&(input==6)))&&(a20==1)))))))))&&(a0==1))){ + a12 = 8; + a5 = 1; + a22 = 1; + a4 = 1; + return -1; + } return calculate_output82(input); + } + + int calculate_output82(int input) { + if((((a15==1)&&((a12==9)&&((((((((!(a5==1)&&(input==3))&&(a4==1))&&!(a6==1))&&(a27==1))&&!(a0==1))&&(a20==1))&&(a18==1))&&(a3==4))))&&(a22==1))){ + a0 = 1; + a12 = 8; + a6 = 1; + a5 = 1; + return -1; + } else if(((a18==1)&&(!(a5==1)&&((((a27==1)&&(((a3==6)&&(((a22==1)&&((a15==1)&&((a12==10)&&(input==3))))&&!(a6==1)))&&(a0==1)))&&(a20==1))&&!(a4==1))))){ + a27 = 0; + a15 = 0; + a5 = 1; + a4 = 1; + return 21; + } else if((!(a27==1)&&((a0==1)&&(((a12==9)&&((((a6==1)&&(((input==4)&&((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a18==1)&&(a22==1))&&(a3==6)))||((a3==6)&&(!(a18==1)&&(a22==1)))))&&!(a5==1)))&&!(a15==1))&&(a20==1)))&&(a4==1))))){ + a22 = 0; + a18 = 1; + a3 = 7; + a15 = 1; + return -1; + } else if(((a6==1)&&(((((a4==1)&&((((a3==6)&&(!(a15==1)&&(((input==2)&&(a12==10))&&!(a5==1))))&&!(a0==1))&&(a18==1)))&&(a20==1))&&!(a27==1))&&(a22==1)))){ + a3 = 7; + a5 = 1; + a4 = 0; + a27 = 1; + a15 = 1; + a22 = 0; + a0 = 1; + a12 = 8; + return -1; + } else if(((a6==1)&&(((a0==1)&&((((a5==1)&&((a15==1)&&((((input==1)&&(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1))))&&(a3==4))&&!(a4==1))))&&(a12==12))&&(a20==1)))&&(a27==1)))){ + a18 = 0; + a22 = 0; + return 26; + } else if((((((!(a4==1)&&((((a3==6)&&((!(a15==1)&&(((a18==1)||!(a18==1))&&(input==6)))&&(a20==1)))&&(a12==12))&&(a22==1)))&&!(a6==1))&&(a0==1))&&!(a5==1))&&(a27==1))){ + a18 = 1; + a12 = 8; + a4 = 1; + a5 = 1; + a3 = 4; + a15 = 1; + a6 = 1; + return -1; + } else if(((a27==1)&&((a12==8)&&(!(a5==1)&&(((a3==8)&&(!(a6==1)&&((a0==1)&&(((a4==1)&&((input==4)&&(((!(a18==1)&&(a22==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))))&&!(a15==1)))))&&(a20==1)))))){ + a5 = 1; + a22 = 0; + a12 = 11; + a3 = 4; + a6 = 1; + a18 = 0; + return 24; + } else if((!(a4==1)&&(((a12==12)&&((a20==1)&&(((((!(a0==1)&&((!(a5==1)&&(input==3))&&(a3==6)))&&!(a15==1))&&(a18==1))&&(a22==1))&&(a27==1))))&&(a6==1)))){ + if((a12==9)){ + a4 = 1; + a0 = 1; + a6 = 0; + a12 = 11; + a3 = 8; + a27 = 0; + }else{ + a4 = 1; + a0 = 1; + a15 = 1; + a5 = 1; + a12 = 8; + } + return 26; + } else if(((a3==8)&&((!(a6==1)&&((a12==9)&&(((((a20==1)&&((((input==3)&&((a18==1)||!(a18==1)))&&!(a4==1))&&(a15==1)))&&(a27==1))&&(a5==1))&&!(a0==1))))&&(a22==1)))){ + a3 = 7; + a27 = 0; + a15 = 0; + a12 = 8; + a18 = 1; + a0 = 1; + a4 = 1; + return 26; + } else if(((((!(a22==1)&&((!(a0==1)&&(((a12==11)&&((a27==1)&&((((a18==1)||!(a18==1))&&(input==1))&&(a6==1))))&&(a20==1)))&&!(a4==1)))&&(a3==7))&&(a5==1))&&!(a15==1))){ + a4 = 1; + a6 = 0; + a3 = 6; + a0 = 1; + a12 = 12; + a18 = 1; + return 24; + } else if(((!(a0==1)&&((a20==1)&&(((a27==1)&&(((a5==1)&&((((((!(a22==1)&&(a18==1))&&(a3==6))||((!(a18==1)&&!(a22==1))&&(a3==6)))||(((a18==1)&&(a22==1))&&(a3==7)))&&(input==5))&&(a6==1)))&&!(a15==1)))&&!(a4==1))))&&(a12==8))){ + a12 = 11; + a22 = 1; + a27 = 0; + a4 = 1; + a18 = 1; + a3 = 6; + a5 = 0; + a0 = 1; + return 26; + } else if((((a3==5)&&((a27==1)&&((a4==1)&&(((a6==1)&&(((a20==1)&&(!(a15==1)&&((input==3)&&((!(a22==1)&&!(a18==1))||(((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))))))&&!(a0==1)))&&(a5==1)))))&&(a12==12))){ + a22 = 0; + a27 = 0; + a0 = 1; + a12 = 8; + a6 = 0; + a18 = 1; + a15 = 1; + a3 = 8; + return 24; + } else if(((((((((a4==1)&&(((input==4)&&((((a22==1)&&!(a18==1))&&(a3==5))||(((!(a18==1)&&!(a22==1))&&(a3==4))||(((a18==1)&&(a22==1))&&(a3==5)))))&&(a5==1)))&&(a6==1))&&(a12==11))&&!(a27==1))&&!(a0==1))&&!(a15==1))&&(a20==1))){ + if((a12==8)){ + a12 = 8; + a15 = 1; + a3 = 4; + a22 = 1; + a0 = 1; + a27 = 1; + a4 = 0; + a18 = 0; + }else{ + a6 = 0; + a12 = 10; + a22 = 1; + a3 = 4; + a27 = 1; + a18 = 1; + a15 = 1; + } + return 21; + } else if(((!(a4==1)&&(((a12==11)&&(!(a0==1)&&((a15==1)&&(!(a5==1)&&((input==4)&&((((a3==8)&&(!(a18==1)&&!(a22==1)))&&(a6==1))||((((a18==1)&&(a22==1))&&(a3==4))&&!(a6==1))))))))&&(a27==1)))&&(a20==1))){ + a18 = 1; + a22 = 1; + a0 = 1; + a6 = 1; + a5 = 1; + a3 = 4; + a12 = 8; + a4 = 1; + return -1; + } else if((!(a15==1)&&((a12==10)&&((a0==1)&&((a27==1)&&(((a6==1)&&((a20==1)&&((((((a22==1)&&!(a18==1))&&(a3==6))||(((!(a22==1)&&!(a18==1))&&(a3==5))||((a3==6)&&((a22==1)&&(a18==1)))))&&(input==6))&&(a4==1))))&&(a5==1))))))){ + a3 = 4; + a15 = 1; + a22 = 1; + a18 = 1; + a12 = 8; + return -1; + } else if(((a15==1)&&((a20==1)&&(((!(a0==1)&&(((((((((a22==1)&&!(a18==1))||((a18==1)&&!(a22==1)))||(!(a22==1)&&!(a18==1)))&&(input==4))&&!(a6==1))&&!(a27==1))&&(a4==1))&&(a5==1)))&&(a12==10))&&(a3==6))))){ + a12 = 8; + a3 = 7; + a27 = 1; + a22 = 0; + a0 = 1; + a18 = 0; + return -1; + } else if(((a27==1)&&((((a3==7)&&((a6==1)&&((a4==1)&&((a20==1)&&((a5==1)&&((((!(a22==1)&&(a18==1))||(((a18==1)&&(a22==1))||((a22==1)&&!(a18==1))))&&(input==3))&&(a12==11)))))))&&(a0==1))&&(a15==1)))){ + if((a15==1)){ + a0 = 0; + a15 = 0; + a5 = 0; + a3 = 4; + a18 = 1; + a22 = 1; + }else{ + a5 = 0; + a4 = 0; + a6 = 0; + a22 = 1; + a15 = 0; + a3 = 6; + a18 = 1; + } + return 26; + } else if((((a20==1)&&((a12==12)&&((a5==1)&&((a15==1)&&(((!(a27==1)&&(((!(a18==1)&&(input==2))&&!(a6==1))&&(a3==8)))&&!(a22==1))&&!(a4==1))))))&&(a0==1))){ + if((a15==1)){ + a6 = 1; + a4 = 1; + a0 = 0; + a15 = 0; + a22 = 1; + a12 = 9; + a3 = 5; + a27 = 1; + }else{ + a12 = 9; + a5 = 0; + a27 = 1; + a3 = 6; + a0 = 0; + } + return -1; + } else if(((a12==9)&&((a27==1)&&((!(a5==1)&&(((a20==1)&&((((((!(a18==1)&&(a22==1))&&(a3==7))||(((!(a22==1)&&!(a18==1))&&(a3==6))||((a3==7)&&((a18==1)&&(a22==1)))))&&(input==1))&&(a4==1))&&(a6==1)))&&!(a15==1)))&&(a0==1))))){ + if((a27==1)){ + a15 = 1; + a3 = 8; + a5 = 1; + a12 = 11; + a0 = 0; + a18 = 0; + a22 = 1; + a6 = 0; + }else{ + a18 = 1; + a22 = 1; + a12 = 11; + a5 = 1; + a3 = 8; + } + return 26; + } else if((!(a15==1)&&(!(a27==1)&&(!(a0==1)&&(((!(a6==1)&&((a20==1)&&(((((a3==8)&&((a22==1)&&!(a18==1)))||(((a3==7)&&(!(a22==1)&&!(a18==1)))||((a3==8)&&((a22==1)&&(a18==1)))))&&(input==2))&&!(a5==1))))&&(a12==10))&&!(a4==1)))))){ + a6 = 1; + a3 = 6; + a4 = 1; + a22 = 1; + a18 = 1; + a5 = 1; + a12 = 9; + return -1; + } else if(((a12==8)&&((a15==1)&&((a0==1)&&(!(a5==1)&&((a6==1)&&((!(a4==1)&&((((input==5)&&((((a22==1)&&(a18==1))||((a22==1)&&!(a18==1)))||(!(a22==1)&&(a18==1))))&&(a20==1))&&(a3==6)))&&!(a27==1)))))))){ + if((a27==1)){ + a0 = 0; + a3 = 7; + a6 = 0; + a27 = 1; + a22 = 1; + a12 = 11; + a18 = 0; + a15 = 0; + }else{ + a22 = 0; + a27 = 1; + a12 = 11; + a3 = 8; + a18 = 1; + a4 = 1; + } + return 26; + } else if((((!(a22==1)&&(((((a6==1)&&((a15==1)&&(((a12==9)&&(((a18==1)||!(a18==1))&&(input==2)))&&(a3==4))))&&!(a4==1))&&(a27==1))&&(a20==1)))&&(a5==1))&&!(a0==1))){ + a4 = 1; + a18 = 1; + a0 = 1; + a22 = 1; + a12 = 8; + return -1; + } else if(((a15==1)&&((a0==1)&&((a3==4)&&((a5==1)&&((a27==1)&&((((!(a6==1)&&((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==2)))&&(a12==10))&&(a20==1))&&(a4==1)))))))){ + a6 = 1; + a3 = 6; + a18 = 0; + a22 = 1; + return -1; + } else if(((((((!(a6==1)&&(((a12==10)&&(!(a5==1)&&((input==6)&&((((a18==1)&&(a22==1))||(!(a18==1)&&(a22==1)))||((a18==1)&&!(a22==1))))))&&(a15==1)))&&(a20==1))&&!(a4==1))&&(a27==1))&&(a3==7))&&!(a0==1))){ + a18 = 1; + a3 = 6; + a22 = 1; + a0 = 1; + return 21; + } else if(((a5==1)&&(!(a6==1)&&(((a12==9)&&((a20==1)&&((a0==1)&&((a15==1)&&(((input==3)&&((((a3==4)&&((a18==1)&&!(a22==1)))||((!(a18==1)&&!(a22==1))&&(a3==4)))||(((a22==1)&&(a18==1))&&(a3==5))))&&(a27==1))))))&&!(a4==1))))){ + a12 = 8; + a22 = 1; + a18 = 1; + a3 = 4; + a6 = 1; + a4 = 1; + return -1; + } else if((!(a27==1)&&(((!(a15==1)&&((a5==1)&&((a12==11)&&((!(a4==1)&&((((((a18==1)&&(a22==1))||((a22==1)&&!(a18==1)))||((a18==1)&&!(a22==1)))&&(input==3))&&(a6==1)))&&(a0==1)))))&&(a3==8))&&(a20==1)))){ + a18 = 0; + a22 = 1; + a12 = 12; + a27 = 1; + a15 = 1; + a3 = 4; + return -1; + } else if(((a3==4)&&(((a5==1)&&(((a27==1)&&(((a12==8)&&(!(a22==1)&&(!(a4==1)&&((a15==1)&&((input==3)&&!(a6==1))))))&&(a20==1)))&&!(a0==1)))&&(a18==1)))){ + a12 = 11; + a27 = 0; + a3 = 7; + a15 = 0; + a0 = 1; + return 21; + } else if((!(a27==1)&&((a12==8)&&((!(a5==1)&&((((((input==2)&&((((a22==1)&&(a18==1))&&(a3==8))||((((a18==1)&&!(a22==1))&&(a3==7))||((a3==7)&&(!(a22==1)&&!(a18==1))))))&&(a0==1))&&(a20==1))&&!(a4==1))&&(a6==1)))&&!(a15==1))))){ + a15 = 1; + a4 = 1; + a5 = 1; + a22 = 1; + a18 = 1; + a27 = 1; + a3 = 4; + return -1; + } else if(((!(a6==1)&&(((a3==6)&&((a20==1)&&((((((((a18==1)&&!(a22==1))||(((a22==1)&&(a18==1))||(!(a18==1)&&(a22==1))))&&(input==3))&&(a5==1))&&(a27==1))&&!(a0==1))&&(a4==1))))&&!(a15==1)))&&(a12==12))){ + a12 = 11; + a18 = 0; + a0 = 1; + a3 = 7; + a22 = 0; + a5 = 0; + return 21; + } else if((((a0==1)&&((a27==1)&&(((a12==8)&&((((!(a4==1)&&((a3==8)&&((a20==1)&&(input==6))))&&!(a22==1))&&(a5==1))&&!(a15==1)))&&!(a18==1))))&&!(a6==1))){ + a18 = 1; + a15 = 1; + a5 = 0; + a12 = 9; + a3 = 5; + a6 = 1; + return 26; + } else if(((!(a4==1)&&((a6==1)&&((a20==1)&&((a15==1)&&(!(a0==1)&&((a27==1)&&((a5==1)&&((((a3==5)&&((a22==1)&&!(a18==1)))||(((a3==4)&&(!(a22==1)&&!(a18==1)))||((a3==5)&&((a18==1)&&(a22==1)))))&&(input==5)))))))))&&(a12==8))){ + a6 = 0; + a0 = 1; + a22 = 0; + a4 = 1; + a18 = 0; + a3 = 5; + a15 = 0; + return -1; + } else if(((a0==1)&&((a20==1)&&((a27==1)&&(((((a3==4)&&((a4==1)&&((a12==9)&&((((a22==1)&&(a18==1))&&(a5==1))&&(a15==1)))))&&(a6==1))||((((a3==8)&&(((a12==8)&&((!(a5==1)&&(!(a22==1)&&(a18==1)))&&!(a15==1)))&&!(a4==1)))&&!(a6==1))||(((((a12==8)&&((!(a5==1)&&(!(a22==1)&&!(a18==1)))&&!(a15==1)))&&!(a4==1))&&(a3==8))&&!(a6==1))))&&(input==4)))))){ + a12 = 11; + a5 = 0; + a3 = 6; + a22 = 0; + a15 = 1; + a6 = 0; + a4 = 0; + a18 = 1; + return 26; + } else if((((((((a12==12)&&((((((!(a18==1)&&!(a22==1))&&(a3==5))||(((a22==1)&&(a18==1))&&(a3==6)))&&(input==1))&&(a0==1))&&(a20==1)))&&!(a4==1))&&!(a5==1))&&(a6==1))&&(a15==1))&&(a27==1))){ + if((a15==1)){ + a18 = 0; + a0 = 0; + a22 = 1; + a3 = 7; + a12 = 11; + a6 = 0; + a15 = 0; + a4 = 1; + }else{ + a18 = 1; + a15 = 0; + a3 = 4; + a22 = 1; + a12 = 11; + a5 = 1; + a6 = 0; + } + return -1; + } else if((((a0==1)&&((a12==12)&&((a20==1)&&(!(a15==1)&&(((!(a6==1)&&((input==4)&&((((a22==1)&&!(a18==1))&&(a3==5))||(((a3==4)&&(!(a18==1)&&!(a22==1)))||(((a18==1)&&(a22==1))&&(a3==5))))))&&(a5==1))&&!(a4==1))))))&&(a27==1))){ + a27 = 0; + a18 = 1; + a3 = 5; + a22 = 0; + a6 = 1; + return 21; + } else if((((a20==1)&&((a4==1)&&(!(a27==1)&&(((a3==4)&&(((a18==1)&&((!(a22==1)&&(!(a6==1)&&(input==1)))&&(a12==8)))&&(a5==1)))&&(a0==1)))))&&(a15==1))){ + a27 = 1; + a22 = 1; + a12 = 10; + a18 = 0; + a4 = 0; + return 24; + } else if((!(a22==1)&&((((a27==1)&&(((a12==11)&&((((a4==1)&&(!(a0==1)&&((input==4)&&((a18==1)||!(a18==1)))))&&(a20==1))&&(a5==1)))&&!(a15==1)))&&(a3==4))&&(a6==1)))){ + a12 = 12; + a0 = 1; + a22 = 1; + a6 = 0; + a27 = 0; + a3 = 7; + a18 = 0; + a4 = 0; + return -1; + } + if((((((((((((a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&!(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&!(a4==1))&&(a3==6))&&(a6==1))){ + error_48: exit(0); + } + if(((((((((((!(a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&!(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==4))&&(a6==1))){ + error_2: exit(0); + } + if(((((((((((!(a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&!(a4==1))&&(a3==6))&&(a6==1))){ + error_49: exit(0); + } + if((((((((((((a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==8))&&(a6==1))){ + error_15: exit(0); + } + if((((((((((((a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==6))&&(a6==1))){ + error_7: exit(0); + } + if((((((((((((a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&!(a4==1))&&(a3==8))&&(a6==1))){ + error_55: exit(0); + } + if((((((((((((a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&!(a4==1))&&(a3==7))&&(a6==1))){ + error_51: exit(0); + } + if(((((((((((!(a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&!(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&!(a4==1))&&(a3==6))&&(a6==1))){ + error_50: exit(0); + } + if((((((((((((a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&!(a4==1))&&(a3==5))&&(a6==1))){ + error_43: exit(0); + } + if(((((((((((!(a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&!(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==6))&&(a6==1))){ + error_10: exit(0); + } + if(((((((((((!(a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==6))&&!(a6==1))){ + error_29: exit(0); + } + if((((((((((((a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&!(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==5))&&!(a6==1))){ + error_24: exit(0); + } + if(((((((((((!(a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==4))&&(a6==1))){ + error_1: exit(0); + } + if(((((((((((!(a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&!(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==5))&&!(a6==1))){ + error_26: exit(0); + } + if(((((((((((!(a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&!(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==5))&&(a6==1))){ + error_6: exit(0); + } + if(((((((((((!(a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==5))&&(a6==1))){ + error_5: exit(0); + } + if(((((((((((!(a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&!(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&!(a4==1))&&(a3==5))&&(a6==1))){ + error_46: exit(0); + } + if(((((((((((!(a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==7))&&(a6==1))){ + error_13: exit(0); + } + if((((((((((((a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&!(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==5))&&(a6==1))){ + error_4: exit(0); + } + if(((((((((((!(a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==8))&&!(a6==1))){ + error_37: exit(0); + } + if((((((((((((a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==4))&&(a6==1))){ + globalError: exit(0); + } + if(((((((((((!(a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&!(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==7))&&!(a6==1))){ + error_34: exit(0); + } + if(((((((((((!(a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==5))&&!(a6==1))){ + error_25: exit(0); + } + if((((((((((((a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&!(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==6))&&!(a6==1))){ + error_28: exit(0); + } + if((((((((((((a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&!(a4==1))&&(a3==4))&&!(a6==1))){ + error_59: exit(0); + } + if((((((((((((a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&!(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==4))&&!(a6==1))){ + error_20: exit(0); + } + if((((((((((((a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&!(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==7))&&!(a6==1))){ + error_32: exit(0); + } + if(((((((((((!(a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&!(a4==1))&&(a3==5))&&(a6==1))){ + error_45: exit(0); + } + if(((((((((((!(a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&!(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&!(a4==1))&&(a3==8))&&(a6==1))){ + error_58: exit(0); + } + if(((((((((((!(a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==6))&&(a6==1))){ + error_9: exit(0); + } + if(((((((((((!(a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&!(a4==1))&&(a3==4))&&(a6==1))){ + error_41: exit(0); + } + if((((((((((((a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&!(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&!(a4==1))&&(a3==4))&&(a6==1))){ + error_40: exit(0); + } + if((((((((((((a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==5))&&!(a6==1))){ + error_23: exit(0); + } + if((((((((((((a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&!(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==7))&&(a6==1))){ + error_12: exit(0); + } + if(((((((((((!(a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&!(a4==1))&&(a3==7))&&(a6==1))){ + error_53: exit(0); + } + if((((((((((((a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&!(a4==1))&&(a3==6))&&(a6==1))){ + error_47: exit(0); + } + if((((((((((((a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&!(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==6))&&(a6==1))){ + error_8: exit(0); + } + if((((((((((((a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&!(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==8))&&(a6==1))){ + error_16: exit(0); + } + if((((((((((((a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==4))&&!(a6==1))){ + error_19: exit(0); + } + if(((((((((((!(a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&!(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==8))&&!(a6==1))){ + error_38: exit(0); + } + if(((((((((((!(a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&!(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&!(a4==1))&&(a3==4))&&(a6==1))){ + error_42: exit(0); + } + if(((((((((((!(a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&!(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==7))&&(a6==1))){ + error_14: exit(0); + } + if(((((((((((!(a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&!(a4==1))&&(a3==8))&&(a6==1))){ + error_57: exit(0); + } + if((((((((((((a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&!(a4==1))&&(a3==4))&&(a6==1))){ + error_39: exit(0); + } + if(((((((((((!(a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==8))&&(a6==1))){ + error_17: exit(0); + } + if((((((((((((a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==6))&&!(a6==1))){ + error_27: exit(0); + } + if(((((((((((!(a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&!(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==6))&&!(a6==1))){ + error_30: exit(0); + } + if(((((((((((!(a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&!(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==8))&&(a6==1))){ + error_18: exit(0); + } + if(((((((((((!(a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==7))&&!(a6==1))){ + error_33: exit(0); + } + if((((((((((((a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&!(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==4))&&(a6==1))){ + error_0: __VERIFIER_error(); + } + if((((((((((((a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&!(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&!(a4==1))&&(a3==8))&&(a6==1))){ + error_56: exit(0); + } + if((((((((((((a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&!(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&!(a4==1))&&(a3==7))&&(a6==1))){ + error_52: exit(0); + } + if(((((((((((!(a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&!(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&!(a4==1))&&(a3==7))&&(a6==1))){ + error_54: exit(0); + } + if((((((((((((a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==7))&&(a6==1))){ + error_11: exit(0); + } + if(((((((((((!(a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&!(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==4))&&!(a6==1))){ + error_22: exit(0); + } + if((((((((((((a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&!(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&!(a4==1))&&(a3==5))&&(a6==1))){ + error_44: exit(0); + } + if((((((((((((a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==8))&&!(a6==1))){ + error_35: exit(0); + } + if((((((((((((a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==7))&&!(a6==1))){ + error_31: exit(0); + } + if((((((((((((a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==5))&&(a6==1))){ + error_3: exit(0); + } + if(((((((((((!(a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==4))&&!(a6==1))){ + error_21: exit(0); + } + if((((((((((((a22==1)&&(a20==1))&&(a0==1))&&(a27==1))&&!(a18==1))&&(a5==1))&&(a15==1))&&(a12==8))&&(a4==1))&&(a3==8))&&!(a6==1))){ + error_36: exit(0); + } + return -2; + } + +int main() +{ + // default output + int output = -1; + + // main i/o-loop + while(1) + { + // read input + int input; + input = __VERIFIER_nondet_int(); + if ((input != 1) && (input != 2) && (input != 3) && (input != 4) && (input != 5) && (input != 6)) return -2; + + // operate eca engine + output = calculate_output(input); + + } +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem09_label00_true-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem09_label00_true-unreach-call.c new file mode 100644 index 000000000..0e368a819 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem09_label00_true-unreach-call.c @@ -0,0 +1,184978 @@ +extern void __VERIFIER_error(void); +extern int __VERIFIER_nondet_int(void); +extern void exit(int); + + // inputs + int c= 3; + int d= 4; + int f= 6; + int e= 5; + int a= 1; + + // outputs + int u = 21; + int v = 22; + int w = 23; + int x = 24; + int y = 25; + int z = 26; + + + int a2 = 1; + int a11 = 1; + int a12 = 1; + int a28 = 1; + int a13 = 1; + int a3 = 1; + int a6 = 1; + int a23 = 1; + int a8 = 0; + int a26 = 0; + int a0 = 0; + int a18 = 0; + int a27 = 0; + int a4 = 0; + int a7 = 0; + int a14 = 0; + int a24 = 0; + int a25 = 1; + int a10 = 1; + int a15 = 1; + int a29 = 1; + int a22 = 1; + int a1 = 13; + int a5 = 5; + int a9 = 7; + int a17 = 2; + int a20 = 1; + int a16 = 7; + int a19 = 2; + int a21 = 10; + + int calculate_output2(int input); + int calculate_output3(int input); + int calculate_output4(int input); + int calculate_output5(int input); + int calculate_output6(int input); + int calculate_output7(int input); + int calculate_output8(int input); + int calculate_output9(int input); + int calculate_output10(int input); + int calculate_output11(int input); + int calculate_output12(int input); + int calculate_output13(int input); + int calculate_output14(int input); + int calculate_output15(int input); + int calculate_output16(int input); + int calculate_output17(int input); + int calculate_output18(int input); + int calculate_output19(int input); + int calculate_output20(int input); + int calculate_output21(int input); + int calculate_output22(int input); + int calculate_output23(int input); + int calculate_output24(int input); + int calculate_output25(int input); + int calculate_output26(int input); + int calculate_output27(int input); + int calculate_output28(int input); + int calculate_output29(int input); + int calculate_output30(int input); + int calculate_output31(int input); + int calculate_output32(int input); + int calculate_output33(int input); + int calculate_output34(int input); + int calculate_output35(int input); + int calculate_output36(int input); + int calculate_output37(int input); + int calculate_output38(int input); + int calculate_output39(int input); + int calculate_output40(int input); + int calculate_output41(int input); + int calculate_output42(int input); + int calculate_output43(int input); + int calculate_output44(int input); + int calculate_output45(int input); + int calculate_output46(int input); + int calculate_output47(int input); + int calculate_output48(int input); + int calculate_output49(int input); + int calculate_output50(int input); + int calculate_output51(int input); + int calculate_output52(int input); + int calculate_output53(int input); + int calculate_output54(int input); + int calculate_output55(int input); + int calculate_output56(int input); + int calculate_output57(int input); + int calculate_output58(int input); + int calculate_output59(int input); + int calculate_output60(int input); + int calculate_output61(int input); + int calculate_output62(int input); + int calculate_output63(int input); + int calculate_output64(int input); + int calculate_output65(int input); + int calculate_output66(int input); + int calculate_output67(int input); + int calculate_output68(int input); + int calculate_output69(int input); + int calculate_output70(int input); + int calculate_output71(int input); + int calculate_output72(int input); + int calculate_output73(int input); + int calculate_output74(int input); + int calculate_output75(int input); + + int calculate_output(int input) { + if((((a1==13)&&(!(a24==1)&&((a16==8)&&((a2==1)&&(a19==2)))))&&((((a21==11)&&((!(a4==1)&&((a17==2)&&((a20==1)&&((!(a0==1)&&(((a5==4)||(a5==5))&&(input==5)))&&!(a14==1)))))&&(a6==1)))&&(a9==10))&&!(a27==1)))){ + a6 = 1; + a5 = 4; + a21 = 10; + a0 = 0; + a9 = 7; + a18 = 0; + a19 = 1; + a16 = 7; + a1 = 12; + return -1; + } else if(((!(a8==1)&&((a16==10)&&((a17==2)&&(((!(a26==1)&&(((a6==1)&&!(a20==1))&&(a1==13)))&&(a19==4))||(a7==1)))))&&((a2==1)&&(((a21==12)&&(((a28==1)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))&&(a9==10)))&&!(a0==1))))){ + a21 = 10; + a25 = 0; + a9 = 9; + a5 = 5; + a4 = 1; + a20 = 1; + a28 = 0; + a16 = 7; + a19 = 1; + return -1; + } else if(((((a28==1)&&(((a17==2)&&(!(a26==1)&&((a12==1)&&(!(a18==1)&&(((a21==12)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1)))&&(a9==8))))))&&(a20==1)))&&(a12==1))&&(((a16==9)&&((a19==1)&&((a11==1)&&(a1==14))))||!(a23==1)))){ + a5 = 5; + a23 = 1; + a21 = 10; + a1 = 13; + a9 = 7; + a12 = 1; + a19 = 4; + a26 = 0; + a16 = 11; + return 23; + } else if((((((a9==11)&&(!(a18==1)&&((a16==7)&&(((input==3)&&((a5==4)||(a5==5)))&&(a23==1)))))&&(a21==12))&&(a17==2))&&((a20==1)&&((((((a3==1)&&((a6==1)&&!(a24==1)))||!(a11==1))||(a7==1))&&(a1==13))&&(a19==1))))){ + a5 = 4; + a21 = 10; + a6 = 1; + a18 = 0; + a1 = 12; + a9 = 7; + a13 = 1; + return -1; + } else if((((!(a8==1)&&((a11==1)&&((a16==8)&&((((((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8))))&&(input==4))&&(a21==12))&&(a2==1)))))&&!(a4==1))&&(!(a11==1)||(!(a2==1)||(((((a6==1)&&(a1==14))&&(a17==2))&&(a19==3))&&(a20==1)))))){ + a9 = 7; + a27 = 0; + a12 = 1; + a5 = 4; + a19 = 1; + a16 = 7; + a21 = 10; + a1 = 12; + a24 = 0; + return -1; + } else if((((a16==10)&&((a21==11)&&((!(a4==1)&&(((a9==10)&&((input==4)&&!(a20==1)))&&!(a24==1)))&&(a19==5))))&&((((a17==2)&&(((a1==12)&&(((a2==1)&&!(a27==1))||!(a11==1)))&&!(a7==1)))||(a26==1))&&(a5==4)))){ + a15 = 1; + a16 = 7; + a21 = 12; + a27 = 1; + a5 = 5; + a20 = 1; + a1 = 14; + return 25; + } else if((((a9==7)&&((a21==12)&&(((a3==1)&&((a1==12)&&(input==1)))&&(a17==2))))&&((!(a23==1)||((a6==1)&&((!(a26==1)&&((((!(a11==1)||(a2==1))&&(a5==4))&&(a16==8))&&!(a20==1)))&&(a19==1))))&&(a13==1)))){ + a11 = 0; + a9 = 11; + a20 = 1; + a8 = 1; + a16 = 7; + a25 = 1; + a5 = 5; + a21 = 10; + return 25; + } else if((((a5==4)&&((((a17==2)&&((a16==8)&&(!(a24==1)&&((a19==2)&&((a1==14)&&(input==3))))))&&(a9==9))&&(a20==1)))&&((!(a27==1)&&(((a8==1)||((a21==11)&&((a11==1)&&!(a14==1))))&&(a28==1)))||(a8==1)))){ + a0 = 0; + a24 = 0; + a19 = 4; + a7 = 0; + a21 = 10; + a16 = 10; + return 21; + } else if((((a16==9)&&((!(a24==1)&&(((a1==14)&&(!(a8==1)&&(((input==3)&&(a9==11))&&(a21==12))))&&(a17==2)))&&(a19==3)))&&(!(a20==1)&&((((a18==1)||((!(a23==1)||(a12==1))&&(a28==1)))&&!(a4==1))&&(a5==4))))){ + if((a2==1)){ + a25 = 1; + a1 = 12; + a0 = 1; + a16 = 7; + a21 = 10; + a14 = 1; + a20 = 1; + a19 = 2; + a9 = 10; + a5 = 6; + }else{ + a1 = 12; + a25 = 1; + a19 = 1; + a16 = 11; + a26 = 1; + a20 = 1; + a4 = 1; + a5 = 5; + } + return -1; + } else if((((((a17==2)&&(!(a12==1)||((a16==8)&&(!(a20==1)&&((a23==1)&&(a19==1))))))||(a8==1))&&(a21==12))&&((!(a18==1)&&(!(a8==1)&&(((a2==1)&&((a9==7)&&((a1==14)&&(input==6))))&&!(a27==1))))&&(a5==5)))){ + a1 = 12; + a9 = 8; + a25 = 1; + a5 = 6; + a2 = 0; + a19 = 5; + a16 = 9; + a27 = 1; + return -1; + } else if((((a16==10)&&((a17==2)&&((a8==1)||(!(a24==1)&&(a2==1)))))&&((a5==5)&&((a1==13)&&((a9==8)&&((a12==1)&&((!(a20==1)&&(((!(a26==1)&&((input==1)&&(a21==10)))&&!(a7==1))&&!(a18==1)))&&(a19==2)))))))){ + if((a28==1)){ + a16 = 7; + a6 = 0; + a5 = 4; + a15 = 1; + a1 = 12; + a20 = 1; + a24 = 1; + }else{ + a20 = 1; + a21 = 12; + a3 = 0; + a9 = 10; + a22 = 1; + a0 = 1; + a1 = 14; + } + return -1; + } else if((((a12==1)&&(!(a26==1)&&(((a16==8)&&(((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5)))&&(input==4)))&&(a13==1))))&&(!(a27==1)&&((a21==10)&&(((a19==5)&&((((a1==14)&&((a28==1)&&!(a24==1)))&&(a20==1))&&!(a8==1)))&&(a17==2)))))){ + a26 = 0; + a28 = 1; + a5 = 4; + a19 = 1; + a18 = 0; + a1 = 12; + a16 = 7; + a9 = 7; + return -1; + } else if((((a13==1)&&((!(a26==1)&&((((a6==1)&&(a17==2))&&(a21==10))&&!(a20==1)))&&(a16==7)))&&((((a12==1)&&(((!(a27==1)&&((input==6)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))))&&(a19==1))&&!(a0==1)))&&!(a18==1))&&(a1==13)))){ + a27 = 0; + a23 = 1; + a20 = 1; + a1 = 12; + a0 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if((((!(a27==1)&&(!(a18==1)&&(((a1==12)&&((a21==12)&&(((a23==1)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))&&(input==4)))&&(a17==2))))&&(a16==7))))&&!(a27==1))&&(((a24==1)||(((a28==1)&&!(a20==1))||!(a23==1)))&&(a19==3)))){ + a11 = 1; + a21 = 10; + a9 = 7; + a6 = 1; + a5 = 4; + a20 = 1; + a7 = 0; + a19 = 1; + return -1; + } else if((((a16==10)&&(((a21==10)&&((a1==14)&&((a14==1)||(a12==1))))&&(a23==1)))&&(((a3==1)&&(!(a20==1)&&(((a9==8)&&((!(a18==1)&&(((input==3)&&((a5==5)||(a5==6)))&&(a19==3)))&&!(a0==1)))&&(a17==2))))&&(a28==1)))){ + if((a12==1)){ + a1 = 12; + a21 = 11; + a26 = 1; + a4 = 1; + a19 = 2; + a18 = 1; + a5 = 6; + a9 = 7; + }else{ + a20 = 1; + a1 = 13; + a28 = 0; + a19 = 1; + a16 = 7; + a5 = 5; + a18 = 1; + a3 = 0; + } + return 25; + } else if(((((!(a8==1)&&((a5==5)&&((a12==1)&&((a3==1)&&(a11==1)))))||(a0==1))&&!(a0==1))&&((a1==12)&&((a21==12)&&((a17==2)&&((((a16==7)&&(((input==1)&&(a9==8))&&!(a14==1)))&&(a19==4))&&(a20==1))))))){ + a5 = 4; + a28 = 1; + a26 = 0; + a21 = 11; + a1 = 13; + a19 = 1; + a16 = 9; + return 22; + } else if((((((a19==3)&&((a1==14)&&((input==5)&&(a9==7))))&&(a21==10))&&(a17==2))&&((!(a0==1)&&(((!(a2==1)||(((((a13==1)||!(a6==1))&&(a5==4))||(a14==1))||!(a6==1)))&&!(a4==1))&&!(a20==1)))&&(a16==9)))){ + a26 = 1; + a20 = 1; + a18 = 1; + a16 = 7; + a9 = 11; + a1 = 12; + a29 = 0; + a19 = 2; + return -1; + } else if(((((((a21==10)&&(((a0==1)||((a3==1)&&!(a26==1)))&&(a17==2)))&&(a1==14))&&(a19==3))&&(a20==1))&&(((a28==1)&&(((!(a14==1)&&((input==4)&&((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4)))))&&(a16==7))&&(a6==1)))&&!(a0==1)))){ + a8 = 0; + a5 = 4; + a24 = 0; + a9 = 7; + a19 = 1; + a23 = 1; + a1 = 12; + return -1; + } else if(((((a5==6)&&(((((a6==1)&&(a17==2))||!(a23==1))&&(a21==11))&&!(a18==1)))&&(a1==14))&&((a20==1)&&(!(a24==1)&&(!(a4==1)&&((a16==7)&&(((((input==3)&&(a9==9))&&(a11==1))&&(a19==4))&&!(a27==1)))))))){ + a14 = 0; + a19 = 1; + a9 = 7; + a1 = 12; + a21 = 10; + a5 = 4; + a27 = 0; + return -1; + } else if(((((a17==2)&&((a20==1)&&((a21==11)&&(((a6==1)&&(!(a6==1)||((a28==1)&&(a11==1))))&&(a23==1)))))&&(a16==10))&&((a9==8)&&(((a6==1)&&((a1==12)&&((((a5==5)||(a5==6))&&(input==1))&&!(a0==1))))&&(a19==4))))){ + a12 = 1; + a19 = 5; + a16 = 7; + a26 = 0; + a24 = 0; + a5 = 4; + return -1; + } else if((((!(a14==1)&&((a21==11)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6)))))&&!(a24==1))&&(((a9==11)&&((a16==7)&&((a18==1)||(!(a20==1)&&(((((a1==13)&&((a19==3)&&(a11==1)))||(a24==1))&&!(a8==1))&&(a6==1))))))&&(a17==2)))){ + a21 = 10; + a2 = 1; + a1 = 12; + a9 = 7; + a19 = 1; + a0 = 0; + a20 = 1; + a11 = 1; + a5 = 4; + return -1; + } else if((((!(a20==1)&&((((input==3)&&((a5==4)||(a5==5)))&&(a17==2))&&(a1==14)))&&(a28==1))&&(!(a14==1)&&((!(a4==1)&&((((((a9==10)&&(!(a2==1)||(a2==1)))&&(a21==11))&&(a13==1))&&(a16==8))&&(a19==1)))&&!(a18==1))))){ + a18 = 0; + a16 = 7; + a5 = 4; + a11 = 1; + a9 = 7; + a20 = 1; + a1 = 12; + a21 = 10; + a2 = 1; + return -1; + } else if((((!(a28==1)||((a0==1)||((a12==1)&&((a21==12)&&((a11==1)&&(a17==2))))))&&(a20==1))&&((((a19==5)&&(!(a26==1)&&((((((a5==6)&&(a1==13))&&(a9==11))||((a9==7)&&((a1==14)&&(a5==4))))&&(input==4))&&(a16==7))))&&(a2==1))&&!(a0==1)))){ + a9 = 7; + a13 = 1; + a1 = 12; + a19 = 1; + a5 = 4; + a6 = 1; + a21 = 10; + a26 = 0; + return -1; + } else if((((a17==2)&&(!(a27==1)&&((!(a14==1)&&(!(a8==1)&&((a13==1)&&((input==6)&&(((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6))))))))&&(a13==1))))&&((a1==14)&&((!(a12==1)||((a21==12)&&(((a19==5)&&(a13==1))&&(a20==1))))&&(a16==10))))){ + a1 = 13; + a8 = 0; + a7 = 0; + a21 = 10; + a5 = 4; + a9 = 9; + a16 = 7; + a19 = 2; + a23 = 1; + return 25; + } else if((((!(a20==1)&&((a17==2)&&(((((a19==2)&&(input==1))&&(a21==11))&&(a16==10))&&(a3==1))))&&(a1==13))&&((a27==1)||(((a6==1)&&(((((a9==9)&&(a12==1))&&(a5==5))||!(a12==1))||(a7==1)))||!(a28==1))))){ + a20 = 1; + a19 = 4; + a9 = 8; + a16 = 11; + a14 = 1; + a26 = 1; + a1 = 12; + a5 = 4; + return -1; + } else if((((!(a8==1)&&(((((a2==1)&&((((input==6)&&(a17==2))&&(a1==13))&&(a19==5)))&&(a9==11))&&(a21==10))&&(a5==5)))&&!(a27==1))&&(((!(a20==1)&&(((a13==1)&&(a16==8))&&!(a8==1)))&&(a3==1))||(a8==1)))){ + a6 = 1; + a16 = 9; + a19 = 4; + a20 = 1; + a21 = 12; + a18 = 0; + a9 = 10; + a1 = 14; + a13 = 1; + return 25; + } else if((((a17==2)&&(((a1==13)&&(!(a11==1)||(a3==1)))||(a14==1)))&&(((((a3==1)&&((((a19==5)&&((a28==1)&&(((a21==10)&&(input==4))&&(a3==1))))&&(a16==9))&&(a23==1)))&&(a20==1))&&(a9==8))&&(a5==5)))){ + a16 = 7; + a5 = 4; + a7 = 0; + a9 = 7; + a19 = 1; + a1 = 12; + a14 = 0; + a27 = 0; + return -1; + } else if((((!(a4==1)&&(((((a21==10)&&((input==4)&&(a1==13)))&&(a2==1))&&(a2==1))&&!(a20==1)))&&(a5==6))&&((((a17==2)&&(((a19==4)&&(((a13==1)&&(a16==8))||!(a3==1)))&&(a23==1)))&&!(a24==1))&&(a9==10)))){ + a20 = 1; + a9 = 7; + a19 = 1; + a23 = 1; + a6 = 1; + a5 = 4; + a18 = 0; + a1 = 12; + a16 = 7; + return -1; + } else if(((((a23==1)&&(((a16==8)&&((!(a8==1)&&(a2==1))&&(a1==14)))&&(a17==2)))||(a0==1))&&((((!(a20==1)&&((a21==11)&&(((((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(input==6))&&(a28==1))))&&(a19==2))&&(a2==1))&&(a13==1)))){ + a16 = 7; + a5 = 4; + a9 = 7; + a26 = 0; + a19 = 1; + a27 = 0; + a20 = 1; + a8 = 0; + a1 = 12; + a21 = 10; + return -1; + } else if((((a23==1)&&((a17==2)&&((((a19==3)&&(((a2==1)&&(a21==10))&&!(a27==1)))&&(a16==10))&&!(a20==1))))&&((!(a18==1)&&(!(a24==1)&&((a13==1)&&(((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==4))&&(a1==14)))))&&!(a0==1)))){ + a19 = 2; + a28 = 0; + a9 = 9; + a25 = 0; + a16 = 9; + a5 = 6; + a0 = 1; + a1 = 12; + a21 = 12; + return -1; + } else if((((a21==11)&&(((((a27==1)||(a6==1))&&(a17==2))||(a18==1))&&(a19==4)))&&(((((a3==1)&&(!(a27==1)&&(((a1==12)&&(((a5==4)&&(input==5))&&(a20==1)))&&(a6==1))))&&!(a0==1))&&(a16==8))&&(a9==7)))){ + a16 = 10; + a7 = 0; + a13 = 1; + a19 = 2; + return 25; + } else if(((!(a27==1)&&((a13==1)&&((a6==1)&&((((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))&&(input==5))&&(a1==12)))))&&((a18==1)||((a19==5)&&((a21==10)&&((a17==2)&&((a6==1)&&((a16==7)&&(((a28==1)&&(a13==1))&&(a20==1)))))))))){ + a13 = 1; + a12 = 1; + a18 = 0; + a5 = 4; + a9 = 7; + a19 = 1; + return -1; + } else if((((a9==11)&&((a19==2)&&(!(a3==1)||((a21==10)&&(((a13==1)&&!(a20==1))||!(a23==1))))))&&((a5==6)&&((!(a27==1)&&(!(a26==1)&&(!(a4==1)&&((!(a14==1)&&((input==4)&&(a17==2)))&&(a1==14)))))&&(a16==10))))){ + if((a29==1)){ + a16 = 7; + a0 = 1; + a9 = 7; + a18 = 1; + a20 = 1; + a1 = 12; + a19 = 1; + a2 = 0; + a5 = 4; + }else{ + a2 = 0; + a20 = 1; + a24 = 1; + a1 = 12; + a5 = 5; + a19 = 1; + a9 = 10; + a16 = 7; + a29 = 1; + } + return 21; + } else if((((a21==11)&&(((a1==12)&&(((((a5==5)||(a5==6))&&(input==1))&&(a2==1))&&!(a14==1)))&&(a17==2)))&&((a20==1)&&(((a23==1)&&((a19==3)&&((!(a14==1)&&(((a3==1)&&(a23==1))&&(a16==10)))&&(a6==1))))&&(a9==11))))){ + a14 = 0; + a1 = 14; + a16 = 9; + a19 = 2; + a21 = 12; + a8 = 0; + a6 = 1; + a5 = 5; + return 21; + } else if((((a17==2)&&((a3==1)&&(!(a26==1)&&((!(a14==1)&&(!(a7==1)&&((a19==5)&&((a5==6)&&(input==3)))))&&(a1==13)))))&&((a21==12)&&((a20==1)&&(((!(a2==1)||((a23==1)&&(a13==1)))&&(a9==10))&&(a16==8)))))){ + a18 = 0; + a9 = 7; + a19 = 1; + a21 = 10; + a1 = 12; + a16 = 7; + a26 = 0; + a5 = 4; + return -1; + } else if(((((a12==1)&&((((a3==1)&&((a11==1)&&((a5==4)&&(input==3))))&&!(a0==1))&&(a9==9)))&&(a16==7))&&((((a20==1)&&(((a23==1)&&(((a2==1)&&!(a24==1))&&(a1==12)))&&(a19==2)))&&(a21==11))&&(a17==2)))){ + a9 = 8; + a3 = 1; + a7 = 0; + a16 = 8; + a5 = 5; + a8 = 0; + a1 = 14; + a21 = 10; + return 22; + } else if((((!(a26==1)&&((((((a28==1)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==1)))&&!(a0==1))&&(a21==10))&&(a16==11))&&(a17==2)))&&!(a27==1))&&((a14==1)||((a1==12)&&((((a19==4)&&(a13==1))&&!(a20==1))&&(a6==1)))))){ + if((a26==1)){ + a16 = 7; + a20 = 1; + a9 = 8; + a0 = 1; + a19 = 2; + a18 = 1; + a15 = 0; + a5 = 4; + }else{ + a19 = 2; + a20 = 1; + a4 = 1; + a6 = 0; + a5 = 6; + a16 = 7; + a29 = 1; + a9 = 7; + } + return 21; + } else if((((a1==13)&&((a21==11)&&((((a28==1)&&(!(a24==1)&&(a13==1)))&&(a11==1))&&!(a24==1))))&&(((!(a26==1)&&((((a19==3)&&(((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5)))&&(input==4)))&&(a6==1))&&(a16==9)))&&(a17==2))&&!(a20==1)))){ + if((a0==1)){ + a20 = 1; + a21 = 10; + a27 = 1; + a19 = 1; + a10 = 0; + a9 = 10; + a1 = 12; + a5 = 4; + a16 = 7; + }else{ + a10 = 0; + a7 = 1; + a19 = 1; + a16 = 7; + a9 = 8; + a29 = 1; + a20 = 1; + a21 = 10; + a5 = 4; + } + return -1; + } else if((((((((a2==1)&&(a28==1))&&(a21==11))&&(a16==9))&&(a17==2))&&(a1==12))&&((a19==1)&&(!(a27==1)&&(((((a6==1)&&((a6==1)&&((input==3)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))))&&(a6==1))&&!(a4==1))&&!(a20==1)))))){ + if((a5==4)){ + a5 = 6; + a16 = 7; + a21 = 10; + a22 = 1; + a11 = 0; + a9 = 9; + a20 = 1; + a1 = 14; + }else{ + a10 = 0; + a19 = 2; + a16 = 7; + a20 = 1; + a8 = 1; + a5 = 4; + a9 = 8; + a21 = 10; + } + return -1; + } else if((((a19==1)&&((!(a4==1)&&(((a16==10)&&(a12==1))&&(a21==12)))&&!(a20==1)))&&(!(a14==1)&&((a1==13)&&((((((a6==1)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==3)))&&!(a8==1))&&(a17==2))&&!(a4==1))&&(a3==1)))))){ + a16 = 9; + a21 = 11; + a9 = 8; + a20 = 1; + a6 = 0; + a5 = 6; + a19 = 3; + a29 = 1; + a1 = 14; + a12 = 0; + return -1; + } else if((((a12==1)&&(((((a5==5)&&(!(a7==1)&&((a1==12)&&(input==4))))&&(a9==7))&&(a16==9))&&(a11==1)))&&((!(a23==1)||((a2==1)&&((a21==12)&&(((a17==2)&&((a11==1)&&(a19==2)))&&!(a20==1)))))&&!(a26==1)))){ + a9 = 8; + a19 = 1; + a1 = 14; + a21 = 11; + a16 = 8; + a26 = 1; + a22 = 1; + return 21; + } else if(((!(a0==1)&&((a21==10)&&(((a13==1)||(a0==1))&&!(a20==1))))&&((a9==11)&&(!(a26==1)&&((a16==8)&&(((a23==1)&&((!(a27==1)&&(((a19==2)&&((input==3)&&(a1==14)))&&(a5==4)))&&!(a26==1)))&&(a17==2))))))){ + a27 = 0; + a9 = 9; + a7 = 0; + a13 = 1; + a5 = 5; + a19 = 5; + a20 = 1; + a1 = 13; + return 22; + } else if((((((a1==12)&&(((a4==1)||((a17==2)&&(a28==1)))&&(a19==2)))||!(a3==1))||(a4==1))&&(((!(a20==1)&&((a13==1)&&((a21==11)&&(((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==6))&&!(a14==1)))))&&(a28==1))&&(a16==8)))){ + a19 = 3; + a7 = 0; + a5 = 5; + a20 = 1; + a24 = 0; + a21 = 12; + a2 = 1; + a9 = 9; + a16 = 11; + return 21; + } else if((((a2==1)&&((a12==1)&&(a19==2)))&&(((a13==1)&&(!(a18==1)&&((a21==12)&&((a17==2)&&((((!(a27==1)&&(((input==4)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(a16==8)))&&(a1==14))&&(a23==1))&&!(a20==1))))))&&!(a14==1)))){ + if((a7==1)){ + a26 = 1; + a21 = 10; + a5 = 6; + a9 = 9; + a19 = 5; + a16 = 9; + a3 = 0; + a25 = 0; + }else{ + a1 = 12; + a21 = 10; + a25 = 1; + a16 = 7; + a29 = 0; + a20 = 1; + a5 = 5; + a9 = 8; + a15 = 1; + } + return -1; + } else if(((!(a4==1)&&(((a11==1)&&((((a17==2)&&(((input==3)&&!(a20==1))&&(a11==1)))&&!(a8==1))&&(a28==1)))&&!(a7==1)))&&((a19==3)&&(((a16==9)&&((a9==8)&&(((a21==11)&&(a12==1))&&(a5==4))))&&(a1==13))))){ + if((a4==1)){ + a5 = 6; + a29 = 1; + a16 = 7; + a9 = 7; + a7 = 1; + a20 = 1; + a3 = 0; + a21 = 10; + a1 = 14; + a19 = 1; + }else{ + a5 = 6; + a14 = 1; + a21 = 12; + a16 = 7; + a11 = 0; + a1 = 12; + a9 = 10; + } + return -1; + } else if(((((!(a26==1)&&(((a1==14)&&((a21==10)&&((a11==1)&&(a6==1))))&&!(a20==1)))||!(a2==1))||(a0==1))&&(!(a0==1)&&(!(a7==1)&&(((a17==2)&&((((input==4)&&(a5==4))&&(a19==1))&&(a16==8)))&&(a9==11)))))){ + a9 = 7; + a28 = 1; + a23 = 1; + a3 = 1; + a16 = 7; + a20 = 1; + a1 = 12; + return -1; + } else if(((((a16==10)&&((((input==1)&&((a5==4)||(a5==5)))&&!(a14==1))&&!(a20==1)))&&!(a18==1))&&(((((((a27==1)||((a17==2)&&(((a28==1)&&!(a18==1))||!(a11==1))))||(a14==1))&&(a1==14))&&(a9==8))&&(a21==12))&&(a19==1)))){ + a25 = 1; + a20 = 1; + a5 = 5; + a9 = 10; + a6 = 0; + a1 = 12; + a21 = 10; + a16 = 7; + return -1; + } else if((((a21==12)&&((((!(a14==1)&&(((input==5)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(a2==1)))&&(a6==1))&&!(a0==1))&&(a19==4)))&&(((!(a23==1)||(((a20==1)&&((a2==1)&&(a16==7)))&&(a1==12)))&&(a2==1))&&(a17==2)))){ + a23 = 1; + a1 = 13; + a5 = 6; + a21 = 11; + a9 = 9; + a19 = 1; + a4 = 0; + a27 = 0; + a16 = 9; + return 23; + } else if((((a19==4)&&(((a11==1)&&(((a27==1)||((a28==1)&&(a21==12)))&&(a16==9)))&&(a1==13)))&&((a17==2)&&((!(a26==1)&&(((a20==1)&&((a11==1)&&(((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a5==4)&&(a9==10)))&&(input==4))))&&(a2==1)))&&!(a8==1))))){ + a19 = 5; + a5 = 4; + a11 = 1; + a16 = 7; + a1 = 12; + a20 = 0; + a0 = 0; + a18 = 0; + a9 = 10; + return 25; + } else if((((!(a24==1)&&((a11==1)&&((a19==2)&&(((a2==1)&&(((a5==5)||(a5==6))&&(input==4)))&&(a16==10)))))&&!(a24==1))&&((a28==1)&&((a9==8)&&(((a20==1)&&(((a1==14)&&((a17==2)&&(a13==1)))&&(a21==12)))||(a24==1)))))){ + a9 = 7; + a21 = 10; + a27 = 0; + a11 = 1; + a19 = 1; + a7 = 0; + a1 = 12; + a16 = 7; + a5 = 4; + return -1; + } else if((((a8==1)||((((a21==10)&&(a11==1))&&(a1==13))||!(a3==1)))&&(!(a14==1)&&((a17==2)&&(!(a20==1)&&(((!(a14==1)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&!(a24==1))&&(a9==8))&&(a16==8)))&&(a19==3))&&!(a14==1))))))){ + a16 = 7; + a23 = 1; + a1 = 12; + a9 = 7; + a3 = 1; + a5 = 4; + a19 = 1; + a13 = 1; + a20 = 1; + return -1; + } else if((((a9==10)&&((a12==1)&&((a23==1)&&(((((((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&!(a0==1))&&(a12==1))&&!(a4==1))&&(a21==12))&&(a20==1)))))&&((a1==12)&&(((a4==1)||(((a17==2)&&(a28==1))&&(a16==9)))&&(a19==1))))){ + a24 = 0; + a11 = 1; + a21 = 10; + a19 = 3; + a5 = 6; + a1 = 13; + a16 = 7; + a7 = 0; + a9 = 7; + return 25; + } else if((((a21==11)&&((a17==2)&&((!(a27==1)&&((a16==8)&&((a28==1)&&(((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==1))&&(a6==1)))))&&!(a8==1))))&&((a19==2)&&((a1==13)&&(!(a6==1)||(!(a14==1)&&((a28==1)&&(a20==1)))))))){ + a9 = 7; + a5 = 4; + a21 = 10; + a1 = 12; + a18 = 0; + a16 = 7; + a19 = 1; + a3 = 1; + a2 = 1; + return -1; + } else if((((a1==13)&&((!(a2==1)||((((a9==10)&&(a3==1))&&!(a7==1))&&(a2==1)))&&!(a20==1)))&&((a16==9)&&((a21==11)&&(!(a7==1)&&((a13==1)&&((a28==1)&&((a17==2)&&((a19==2)&&(((a5==5)||(a5==6))&&(input==3))))))))))){ + if((a24==1)){ + a5 = 5; + a18 = 1; + a21 = 12; + a11 = 0; + a22 = 1; + a9 = 8; + a16 = 8; + a19 = 5; + }else{ + a5 = 5; + a7 = 1; + a8 = 1; + a19 = 5; + a1 = 12; + a9 = 7; + a21 = 10; + a3 = 0; + } + return 21; + } else if(((((a1==12)&&(((a13==1)&&(((!(a2==1)||(a11==1))&&(a12==1))&&(a9==11)))&&!(a20==1)))&&(a2==1))&&((a19==5)&&(((!(a4==1)&&((a23==1)&&((a17==2)&&((input==5)&&(a5==5)))))&&(a21==12))&&(a16==7))))){ + a19 = 4; + a18 = 0; + a26 = 0; + a9 = 10; + a5 = 6; + a21 = 10; + a16 = 8; + a28 = 1; + return 23; + } else if((((a20==1)&&((a17==2)&&(((a6==1)&&((a21==10)&&((a9==11)&&(((((a6==1)&&(a5==6))||!(a12==1))&&(a19==1))&&(a16==9)))))||!(a6==1))))&&(!(a18==1)&&((((a1==13)&&(input==6))&&(a3==1))&&!(a4==1))))){ + a19 = 4; + a3 = 1; + a24 = 0; + a23 = 1; + a16 = 8; + a5 = 5; + a1 = 12; + a9 = 7; + return 25; + } else if((((a16==10)&&((!(a3==1)||((a24==1)||(a23==1)))&&(a13==1)))&&((a17==2)&&((!(a26==1)&&((a6==1)&&((a13==1)&&((input==1)&&((((a21==11)&&((((a1==14)&&(a5==6))&&(a9==11))&&(a19==5)))||(((((a1==12)&&(a5==4))&&(a9==7))&&(a19==1))&&(a21==12)))||(((((a1==12)&&(a5==5))&&(a9==7))&&(a19==1))&&(a21==12)))))))&&(a20==1))))){ + a21 = 10; + a5 = 5; + a19 = 2; + a1 = 13; + a9 = 9; + a16 = 7; + a11 = 1; + a26 = 0; + return -1; + } else if((((a21==11)&&(((a14==1)||(((a2==1)||(a7==1))&&(a1==13)))||(a8==1)))&&(((a16==8)&&((a9==7)&&(!(a14==1)&&((a20==1)&&(!(a18==1)&&(((a3==1)&&((input==4)&&(a19==4)))&&(a5==6)))))))&&(a17==2)))){ + a21 = 10; + a7 = 0; + a5 = 4; + a18 = 0; + a19 = 1; + a1 = 12; + a6 = 1; + a16 = 7; + return -1; + } else if((((((a16==10)&&(((a9==7)&&((((a19==1)&&((a28==1)||(a8==1)))||(a18==1))&&(a12==1)))&&!(a4==1)))&&(a1==13))&&!(a4==1))&&((((a17==2)&&((a13==1)&&((a21==11)&&(input==6))))&&(a5==6))&&!(a20==1)))){ + a21 = 10; + a5 = 5; + a19 = 2; + a23 = 0; + a15 = 0; + a20 = 1; + a10 = 0; + a9 = 8; + a1 = 12; + a16 = 7; + return -1; + } else if((((a14==1)||(!(a24==1)&&((a17==2)&&(((a20==1)&&((a23==1)&&(a1==13)))&&(a21==10)))))&&((a16==7)&&(!(a4==1)&&((!(a8==1)&&((a23==1)&&(((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==1))&&(a19==3))))&&(a13==1)))))){ + a5 = 4; + a19 = 2; + a21 = 11; + a9 = 7; + a1 = 12; + a3 = 1; + a26 = 0; + a24 = 0; + return 23; + } else if(((((a4==1)||((((a17==2)&&(((a1==14)&&(a11==1))&&(a21==10)))&&(a28==1))&&(a12==1)))||(a0==1))&&((!(a8==1)&&((a16==9)&&((a20==1)&&((a19==4)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==3))))))&&!(a26==1)))){ + a23 = 1; + a5 = 4; + a16 = 7; + a2 = 1; + a1 = 12; + a9 = 7; + a3 = 1; + a19 = 1; + return -1; + } else if(((((((a21==11)&&((a16==7)&&(!(a26==1)&&((a18==1)||(a28==1)))))&&!(a20==1))&&!(a0==1))||!(a6==1))&&((a11==1)&&((a17==2)&&(((((input==3)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(a19==5))&&!(a18==1))&&(a1==12)))))){ + a6 = 1; + a9 = 7; + a24 = 0; + a5 = 4; + a19 = 1; + a21 = 10; + a20 = 1; + a13 = 1; + return -1; + } else if((((a19==4)&&(((a20==1)&&(((a17==2)&&(a12==1))&&!(a27==1)))&&(a16==10)))&&(((!(a27==1)&&(((a21==10)&&((!(a4==1)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==4)))&&(a1==13)))&&!(a26==1)))&&(a23==1))&&(a12==1)))){ + a9 = 7; + a3 = 1; + a19 = 1; + a11 = 1; + a16 = 7; + a13 = 1; + a5 = 4; + a1 = 12; + return -1; + } else if((((a20==1)&&((a28==1)&&(((((a19==4)&&(a12==1))&&!(a14==1))&&(a9==10))&&(a16==8))))&&((a21==10)&&(((a1==14)&&((a12==1)&&((a6==1)&&((a23==1)&&((a17==2)&&((input==6)&&((a5==6)||((a5==4)||(a5==5)))))))))&&(a12==1))))){ + a3 = 1; + a9 = 7; + a19 = 1; + a1 = 12; + a5 = 4; + a13 = 1; + a16 = 7; + a2 = 1; + return -1; + } else if((((((!(a20==1)&&(((a6==1)&&((a0==1)||((a21==12)&&(a12==1))))||!(a3==1)))&&(a5==5))||!(a6==1))&&(a28==1))&&(((((a16==7)&&((a19==3)&&((a9==11)&&(input==1))))&&(a17==2))&&(a1==12))&&(a28==1)))){ + a13 = 1; + a20 = 1; + a19 = 1; + a8 = 0; + a21 = 10; + a12 = 1; + a9 = 7; + a5 = 4; + return -1; + } else if(((((((a13==1)&&(((a21==10)&&((a17==2)&&((a23==1)&&(a16==8))))&&(a1==13)))||!(a12==1))&&!(a27==1))||(a14==1))&&(((a28==1)&&((a19==2)&&(!(a20==1)&&((((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(input==1)))))&&!(a0==1)))){ + a19 = 1; + a1 = 12; + a16 = 7; + a12 = 1; + a2 = 1; + a20 = 1; + a5 = 4; + a14 = 0; + a9 = 7; + return -1; + } else if(((((a1==14)&&(!(a0==1)&&((a16==9)&&(!(a0==1)&&((input==4)&&(((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))))))))&&!(a14==1))&&(!(a8==1)&&(((a17==2)&&(!(a2==1)||((((a6==1)&&!(a20==1))&&(a13==1))&&(a19==1))))&&(a21==10))))){ + a18 = 1; + a1 = 12; + a5 = 5; + a25 = 0; + a16 = 7; + a9 = 9; + return 21; + } else if((((((((a21==11)&&((((a5==4)||(a5==5))&&(input==1))&&!(a24==1)))&&!(a4==1))&&(a11==1))&&!(a18==1))&&(a16==10))&&((a9==7)&&(!(a20==1)&&((a17==2)&&((a1==12)&&(!(a24==1)&&((a3==1)&&((a12==1)&&(a19==2)))))))))){ + a5 = 6; + a1 = 14; + a25 = 1; + a20 = 1; + a22 = 0; + return 21; + } else if((((a19==5)&&((a17==2)&&((((((a1==12)&&(!(a20==1)&&(input==3)))&&!(a0==1))&&(a9==10))&&!(a14==1))&&(a5==5))))&&(((a21==12)&&((a13==1)&&((a27==1)||((a13==1)&&(!(a27==1)&&(a11==1))))))&&(a16==8)))){ + a29 = 0; + a28 = 0; + a11 = 0; + a21 = 10; + a20 = 1; + a5 = 6; + a9 = 7; + a16 = 7; + a19 = 1; + return -1; + } else if((((a6==1)&&(!(a4==1)&&(!(a26==1)&&(!(a20==1)&&((input==4)&&(((a21==10)&&((a19==1)&&((a16==9)&&(((a5==4)&&(a1==12))&&(a9==7)))))||((((a19==5)&&((a16==8)&&(((a1==14)&&(a5==5))&&(a9==11))))&&(a21==12))||((a21==12)&&((((a9==11)&&((a5==6)&&(a1==14)))&&(a16==8))&&(a19==5))))))))))&&(((((a23==1)&&(a17==2))||(a0==1))&&!(a18==1))&&!(a18==1)))){ + if((a14==1)){ + a0 = 1; + a20 = 1; + a5 = 5; + a16 = 7; + a25 = 0; + a9 = 7; + a21 = 10; + a1 = 12; + a19 = 2; + }else{ + a19 = 1; + a1 = 14; + a16 = 7; + a9 = 9; + a22 = 0; + a21 = 10; + a10 = 1; + a20 = 1; + a5 = 6; + } + return -1; + } else if((((a5==5)&&((((a17==2)&&(((a2==1)&&((a16==10)&&(a2==1)))&&!(a24==1)))&&(a1==12))&&(a12==1)))&&((a19==3)&&(((a9==10)&&((a21==12)&&((!(a27==1)&&((a20==1)&&(input==4)))&&!(a26==1))))&&(a6==1))))){ + a21 = 11; + a19 = 1; + a16 = 8; + a11 = 1; + a13 = 1; + a1 = 14; + a9 = 11; + a14 = 0; + return -1; + } else if((((((!(a7==1)&&(!(a18==1)&&((a17==2)&&((input==3)&&((a5==5)||(a5==6))))))&&(a9==11))&&!(a20==1))&&(a16==7))&&((a21==10)&&((a19==4)&&(((!(a6==1)||((a13==1)&&((a13==1)&&(a28==1))))&&(a6==1))&&(a1==12)))))){ + a20 = 1; + a23 = 1; + a5 = 4; + a19 = 1; + a9 = 7; + a0 = 0; + a28 = 1; + return -1; + } else if((((((input==4)&&(a16==10))&&(a21==11))&&(a5==6))&&((a20==1)&&((a17==2)&&(((!(a2==1)||(!(a2==1)||((((a26==1)||(((a11==1)&&(a19==1))&&(a2==1)))||(a14==1))&&(a13==1))))&&(a9==10))&&(a1==13)))))){ + a18 = 0; + a27 = 0; + a11 = 1; + a21 = 12; + a19 = 4; + a9 = 7; + a5 = 5; + return 25; + } else if((((a16==9)&&(((a20==1)&&((a9==11)&&(((a6==1)&&((input==5)&&(a21==12)))&&(a2==1))))&&(a17==2)))&&(((a27==1)||((a5==4)&&((((a13==1)&&(!(a7==1)&&(a23==1)))&&(a13==1))&&(a1==14))))&&(a19==5)))){ + a18 = 0; + a23 = 1; + a21 = 11; + a8 = 0; + a19 = 2; + a9 = 10; + return 21; + } else if((((((a23==1)&&((a6==1)&&(a16==10)))||!(a6==1))&&(a2==1))&&((!(a4==1)&&(!(a20==1)&&((a17==2)&&((a23==1)&&((a21==10)&&((((((a5==4)&&(a1==13))&&(a9==7))||((((a5==5)&&(a1==12))&&(a9==11))||(((a1==12)&&(a5==6))&&(a9==11))))&&(input==1))&&(a19==1)))))))&&(a28==1)))){ + a22 = 0; + a1 = 12; + a19 = 2; + a20 = 1; + a9 = 7; + a29 = 0; + a5 = 4; + a16 = 7; + return -1; + } else if((((a1==12)&&(((a16==9)&&((a4==1)||((!(a20==1)&&((a13==1)&&((a4==1)||(a6==1))))||(a0==1))))&&(a17==2)))&&((!(a14==1)&&((!(a27==1)&&((((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==6)))&&(a19==5)))&&(a21==12)))){ + a12 = 0; + a20 = 1; + a29 = 0; + a21 = 10; + a9 = 11; + a1 = 14; + a16 = 7; + a19 = 1; + a5 = 5; + a18 = 1; + return 23; + } else if(((((a13==1)&&(a2==1))||(a14==1))&&((a28==1)&&((a13==1)&&((a28==1)&&((a20==1)&&((((((((a19==1)&&((a9==7)&&((a5==4)&&(a1==12))))&&(a21==12))||((((a19==5)&&(((a1==14)&&(a5==5))&&(a9==11)))&&(a21==11))||((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==5))&&(a21==11))))&&(input==5))&&(a16==11))&&(a12==1))&&(a17==2)))))))){ + a19 = 1; + a1 = 12; + a5 = 4; + a8 = 0; + a9 = 7; + a16 = 7; + a13 = 1; + a21 = 10; + return -1; + } else if((((a19==5)&&(((a23==1)&&(((a12==1)&&((input==1)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))))&&!(a8==1)))&&!(a14==1)))&&(((a1==13)&&(((a21==11)&&((a3==1)&&(!(a20==1)&&((a23==1)&&(a16==9)))))&&(a17==2)))||(a24==1)))){ + a1 = 12; + a19 = 3; + a10 = 0; + a21 = 10; + a9 = 7; + a29 = 1; + a5 = 5; + a20 = 1; + a23 = 0; + return 25; + } else if((((a16==8)&&((a21==11)&&(((((!(a14==1)&&(!(a14==1)&&((a20==1)&&(!(a27==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&!(a27==1))))))&&!(a27==1))&&(a9==8))&&(a19==5))&&(a17==2))))&&((a0==1)||((a1==13)&&(a2==1))))){ + a16 = 10; + a0 = 0; + a13 = 1; + a9 = 9; + a5 = 5; + a18 = 0; + a19 = 3; + return 22; + } else if((((((a17==2)&&((!(a23==1)&&((a19==3)&&((((a5==5)||(a5==6))&&(input==1))&&!(a12==1))))&&!(a11==1)))&&(a1==12))&&(a9==9))&&(((((a0==1)&&((a16==7)&&((a24==1)&&(a2==1))))&&(a21==11))&&(a7==1))&&(a20==1)))){ + a29 = 0; + a26 = 1; + a1 = 13; + a19 = 1; + a15 = 0; + a9 = 8; + a21 = 12; + a5 = 4; + return -1; + } else if((((((a2==1)&&(!(a28==1)||((((a11==1)&&(a3==1))||!(a3==1))&&(a1==13))))&&!(a20==1))||(a7==1))&&(((((((((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6))))&&(input==5))&&(a21==10))&&(a16==11))&&(a12==1))&&(a17==2))&&(a19==2)))){ + a26 = 1; + a16 = 7; + a9 = 10; + a20 = 1; + a15 = 1; + a5 = 4; + a19 = 1; + a6 = 0; + return -1; + } else if((((((a12==1)&&(((!(a20==1)&&(a12==1))&&(a16==8))&&(a17==2)))&&(a3==1))||!(a6==1))&&((a3==1)&&((!(a24==1)&&((a21==10)&&((((a19==4)&&(((a1==14)&&(a5==6))&&(a9==11)))||(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==5)))&&(input==6))))&&(a2==1))))){ + a1 = 12; + a5 = 4; + a20 = 1; + a9 = 7; + a16 = 7; + a8 = 0; + a19 = 1; + a26 = 0; + return -1; + } else if(((((a1==12)&&(!(a20==1)&&((a19==1)&&(!(a27==1)&&(((a21==11)&&(input==4))&&!(a0==1))))))&&(a6==1))&&(((!(a8==1)&&((a17==2)&&(((a26==1)||((a5==5)&&(a23==1)))&&(a9==7))))&&(a16==9))&&!(a0==1)))){ + if((a21==12)){ + a21 = 10; + a29 = 0; + a20 = 1; + a1 = 13; + a23 = 0; + a12 = 0; + a5 = 6; + a9 = 10; + a16 = 7; + }else{ + a9 = 8; + a21 = 10; + a3 = 0; + a15 = 1; + a16 = 7; + a20 = 1; + a23 = 0; + } + return 26; + } else if((((a28==1)&&((a27==1)||(((a4==1)||((a17==2)&&((a19==3)&&((a23==1)&&(a1==14)))))&&(a16==11))))&&(((!(a20==1)&&(((a9==8)&&((a23==1)&&((input==5)&&((a5==6)||((a5==4)||(a5==5))))))&&(a28==1)))&&(a21==10))&&(a2==1)))){ + a16 = 9; + a9 = 11; + a21 = 11; + a23 = 0; + a18 = 1; + a5 = 6; + a19 = 4; + a14 = 1; + return -1; + } else if((((!(a23==1)||(((!(a4==1)&&((a13==1)&&(a21==12)))&&(a9==9))&&!(a8==1)))&&(a13==1))&&(((a17==2)&&((a1==13)&&(!(a20==1)&&((!(a7==1)&&(((a16==9)&&(input==6))&&(a5==4)))&&(a11==1)))))&&(a19==2)))){ + a19 = 1; + a6 = 0; + a25 = 1; + a21 = 10; + a20 = 1; + a16 = 7; + a7 = 1; + a1 = 14; + a9 = 10; + return -1; + } else if((((a8==1)||((a19==2)&&((!(a6==1)||(a28==1))&&(a21==10))))&&((((a1==13)&&((((((((input==4)&&((a5==5)||(a5==6)))&&(a17==2))&&(a23==1))&&(a16==10))&&(a3==1))&&(a9==10))&&!(a20==1)))&&!(a14==1))&&(a23==1)))){ + if((a18==1)){ + a26 = 1; + a14 = 1; + a5 = 5; + a0 = 1; + a19 = 4; + a9 = 11; + a21 = 12; + }else{ + a20 = 1; + a21 = 11; + a16 = 7; + a5 = 4; + a11 = 0; + a1 = 12; + a24 = 1; + a9 = 7; + a3 = 0; + } + return -1; + } else if(((((((a13==1)&&(a21==12))&&(a20==1))||!(a11==1))&&(a19==2))&&(((a23==1)&&((!(a26==1)&&((a28==1)&&((a1==13)&&((a17==2)&&((a12==1)&&(((a5==5)&&(input==5))&&!(a26==1)))))))&&(a9==11)))&&(a16==7)))){ + a5 = 4; + a13 = 1; + a21 = 10; + a1 = 12; + a3 = 1; + a23 = 1; + a19 = 1; + a9 = 7; + return -1; + } else if((((((a17==2)&&((a6==1)&&(((a19==3)&&((a16==9)&&((a5==4)&&((a27==1)||(a11==1)))))&&(a1==14))))&&(a21==10))||(a14==1))&&((a13==1)&&((a9==7)&&((a23==1)&&(((a20==1)&&(input==1))&&!(a26==1))))))){ + a1 = 12; + a16 = 7; + a3 = 1; + a0 = 0; + a2 = 1; + a19 = 1; + return -1; + } else if((((a5==6)&&(((a9==7)&&((a19==3)&&(!(a12==1)&&((a21==12)&&((a16==8)&&(input==4))))))&&(a17==2)))&&((a1==14)&&((((!(a28==1)&&((a14==1)&&((a2==1)&&!(a11==1))))&&(a20==1))&&(a18==1))&&!(a2==1))))){ + a5 = 5; + a19 = 1; + a9 = 10; + a1 = 12; + a21 = 10; + a10 = 0; + a16 = 7; + return 25; + } else if((((((((!(a13==1)||(((a9==9)&&(a3==1))&&(a1==13)))&&!(a20==1))||(a0==1))&&!(a24==1))||!(a6==1))&&(a17==2))&&(((a11==1)&&((a28==1)&&(((a16==9)&&((input==1)&&(a19==5)))&&(a5==5))))&&(a21==11)))){ + a20 = 1; + a7 = 1; + a1 = 14; + a9 = 7; + a22 = 0; + a5 = 4; + a13 = 0; + a19 = 4; + return 23; + } else if((((((((((input==5)&&(a9==10))&&(a19==1))&&!(a20==1))&&!(a4==1))&&(a3==1))&&!(a24==1))&&!(a27==1))&&((a17==2)&&((a1==12)&&((a21==10)&&((a7==1)||((((a13==1)&&(a5==6))&&!(a0==1))&&(a16==7)))))))){ + a18 = 0; + a19 = 2; + a27 = 0; + a23 = 1; + a9 = 9; + return 22; + } else if(((((a11==1)&&(((a1==14)&&((a11==1)&&(a2==1)))||(a27==1)))&&(a19==5))&&(((!(a7==1)&&((!(a24==1)&&((a20==1)&&(((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))&&(input==5))&&(a21==11))))&&(a16==10)))&&!(a0==1))&&(a17==2)))){ + a2 = 1; + a5 = 4; + a19 = 2; + a28 = 1; + a26 = 0; + a21 = 10; + a1 = 13; + a9 = 9; + a16 = 7; + return 25; + } else if((((((a21==11)&&(((((a27==1)||(a13==1))&&(a19==3))&&(a20==1))||(a24==1)))&&(a16==7))||(a26==1))&&((a1==14)&&(!(a8==1)&&((a9==7)&&(((a17==2)&&((((a5==5)||(a5==6))&&(input==1))&&!(a4==1)))&&(a2==1))))))){ + a1 = 12; + a19 = 1; + a21 = 10; + a26 = 0; + a23 = 1; + a11 = 1; + a5 = 4; + return -1; + } else if(((((a21==12)&&((((((input==4)&&(a16==8))&&!(a18==1))&&!(a4==1))&&(a2==1))&&!(a8==1)))&&(a19==3))&&(!(a20==1)&&((!(a27==1)&&((a5==4)&&(((!(a24==1)&&(a6==1))&&(a17==2))&&(a9==8))))&&(a1==12))))){ + a19 = 1; + a21 = 10; + a20 = 1; + a9 = 11; + a26 = 1; + a23 = 0; + a10 = 0; + return -1; + } else if((((a11==1)&&((a16==9)&&(((a21==12)&&((a9==9)&&((a12==1)&&(((((a5==4)&&(input==5))&&!(a7==1))&&(a17==2))&&(a20==1)))))&&(a12==1))))&&((((a1==12)&&((a2==1)&&(a19==3)))&&(a11==1))||!(a6==1)))){ + a1 = 13; + a11 = 1; + a16 = 7; + a27 = 0; + a12 = 1; + a9 = 10; + a19 = 2; + a5 = 5; + a21 = 10; + return -1; + } else if(((((a1==12)&&(!(a18==1)&&(((((input==6)&&(((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))))&&(a23==1))&&(a21==12))&&(a19==4))))&&(a13==1))&&(((a11==1)&&((((a20==1)&&((a17==2)&&(a3==1)))&&(a16==9))&&!(a18==1)))||!(a28==1)))){ + a5 = 4; + a9 = 9; + a19 = 3; + a28 = 1; + a11 = 1; + a2 = 1; + return 21; + } else if((((a19==1)&&(!(a20==1)&&(((a1==12)&&(!(a14==1)&&(!(a18==1)&&(((input==1)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&!(a7==1)))))&&(a6==1))))&&((a21==11)&&((a17==2)&&((a16==9)&&(!(a7==1)&&((a11==1)||!(a6==1)))))))){ + a20 = 1; + a8 = 1; + a16 = 7; + a5 = 5; + a13 = 0; + a21 = 10; + a19 = 2; + a3 = 0; + a9 = 8; + return 25; + } else if((((!(a7==1)&&((a26==1)||((!(a13==1)||((!(a3==1)||((a19==2)&&(a28==1)))&&(a21==12)))||!(a12==1))))&&(a17==2))&&((a16==8)&&((((((a1==13)&&(input==4))&&!(a4==1))&&(a9==10))&&(a5==5))&&!(a20==1))))){ + if((a11==1)){ + a21 = 11; + a27 = 1; + a5 = 4; + a16 = 9; + a9 = 7; + a19 = 5; + a10 = 0; + a20 = 1; + }else{ + a1 = 12; + a25 = 0; + a18 = 1; + a20 = 1; + a9 = 11; + a5 = 4; + a19 = 5; + a16 = 9; + a22 = 1; + } + return -1; + } else if((((a19==1)&&(((((((input==6)&&((a5==4)||(a5==5)))&&(a21==10))&&!(a26==1))&&(a9==10))&&!(a26==1))&&(a20==1)))&&((a1==12)&&(((a17==2)&&((a23==1)&&((a12==1)&&(((a2==1)||(a7==1))||!(a13==1)))))&&(a16==10))))){ + a16 = 7; + a5 = 4; + a11 = 1; + a9 = 7; + a23 = 1; + return -1; + } else if((((a17==2)&&(!(a8==1)&&(((a1==14)&&((((input==5)&&((a5==4)||(a5==5)))&&(a23==1))&&(a23==1)))&&(a28==1))))&&((((a21==11)&&(((((a13==1)&&(a16==8))||(a26==1))&&(a19==4))&&(a9==11)))||!(a3==1))&&!(a20==1)))){ + a21 = 12; + a16 = 9; + a1 = 12; + a5 = 6; + a4 = 0; + a9 = 8; + a19 = 1; + a20 = 1; + a28 = 1; + return 25; + } else if(((((a21==11)&&((a23==1)&&(((a20==1)&&((a26==1)||(((a23==1)||(a0==1))&&(a9==10))))&&(a17==2))))&&!(a24==1))&&((a16==10)&&(!(a0==1)&&((a19==3)&&(((((a5==5)||(a5==6))&&(input==3))&&(a1==13))&&!(a4==1))))))){ + a5 = 4; + a1 = 12; + a19 = 1; + a9 = 7; + a16 = 7; + a13 = 1; + a21 = 10; + a18 = 0; + a26 = 0; + return -1; + } else if((((((a20==1)&&(((a19==4)&&(((input==6)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(a12==1)))&&(a11==1)))&&(a1==13))&&(a6==1))&&((a17==2)&&((((a23==1)&&((a16==7)&&((a21==11)&&(a12==1))))||!(a11==1))&&!(a0==1))))){ + a13 = 1; + a5 = 5; + a3 = 1; + a27 = 0; + a9 = 8; + a1 = 12; + a16 = 8; + return 23; + } else if((((a17==2)&&(((a21==12)&&((a16==7)&&(((input==4)&&((((a5==5)&&(a1==13))&&(a9==7))||((((a1==12)&&(a5==6))&&(a9==11))||(((a5==4)&&(a1==13))&&(a9==7)))))&&!(a27==1))))&&(a19==5)))&&(((((((a12==1)||!(a11==1))&&(a23==1))&&(a23==1))&&(a12==1))||!(a28==1))&&!(a20==1)))){ + a9 = 7; + a2 = 1; + a24 = 0; + a11 = 1; + a20 = 1; + a19 = 1; + a21 = 10; + a1 = 12; + a5 = 4; + return -1; + } else if((((a12==1)&&((!(a8==1)&&(!(a27==1)&&((a27==1)||((a20==1)&&((!(a3==1)||(a3==1))&&(a1==12))))))||!(a13==1)))&&(((a21==11)&&((a19==2)&&((a16==9)&&((a9==11)&&(((a5==5)||(a5==6))&&(input==1))))))&&(a17==2)))){ + a4 = 0; + a19 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + a11 = 1; + a21 = 10; + a23 = 1; + return -1; + } else if((((a16==10)&&(((((((input==3)&&((a5==5)||(a5==6)))&&(a1==13))&&(a12==1))&&(a3==1))&&!(a8==1))&&(a21==10)))&&((!(a20==1)&&((((a19==4)&&(((a12==1)||(a0==1))&&(a17==2)))&&!(a18==1))&&!(a8==1)))&&(a9==10)))){ + if((a2==1)){ + a7 = 1; + a20 = 1; + a29 = 1; + a16 = 7; + a10 = 1; + a19 = 1; + a5 = 5; + a9 = 11; + }else{ + a12 = 0; + a19 = 2; + a1 = 14; + a24 = 1; + a20 = 1; + a28 = 0; + a5 = 5; + a16 = 11; + } + return 25; + } else if((((((!(a6==1)||(((a13==1)&&(a17==2))||(a18==1)))&&(a1==13))||(a27==1))&&(a2==1))&&((a16==7)&&((a21==10)&&((a19==2)&&(((!(a20==1)&&((input==1)&&(((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6))))))&&!(a26==1))&&(a11==1))))))){ + a5 = 5; + a19 = 3; + a24 = 0; + a9 = 7; + a3 = 1; + a8 = 0; + a1 = 12; + return 26; + } else if(((((a1==12)&&(((a16==9)&&((a11==1)&&(!(a27==1)&&(!(a0==1)&&(((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4)))&&(input==3))))))&&(a21==12)))&&(a3==1))&&((a17==2)&&(!(a4==1)&&((a24==1)||((a19==2)&&((a20==1)&&(a2==1)))))))){ + a13 = 1; + a7 = 0; + a16 = 7; + a5 = 4; + a19 = 1; + a0 = 0; + a9 = 7; + a21 = 10; + return -1; + } else if(((((a23==1)&&(!(a8==1)&&(((a19==2)&&((a21==10)&&((a16==9)&&((a1==13)&&((a9==10)&&((a12==1)&&!(a20==1)))))))||(a26==1))))&&(a13==1))&&((((((a5==4)||(a5==5))&&(input==1))&&!(a14==1))&&(a11==1))&&(a17==2)))){ + a1 = 12; + a3 = 0; + a20 = 1; + a5 = 6; + a9 = 7; + a16 = 7; + a19 = 1; + a14 = 1; + return -1; + } else if(((((a9==10)&&((a21==12)&&(((a3==1)&&(a17==2))&&!(a27==1))))&&(a1==14))&&(!(a20==1)&&((((a12==1)&&((a28==1)&&((a16==7)&&(((a6==1)&&((input==5)&&((a5==5)||(a5==6))))&&(a2==1)))))&&(a23==1))&&(a19==4))))){ + a21 = 10; + a13 = 1; + a23 = 1; + a9 = 7; + a2 = 1; + a20 = 1; + a19 = 1; + a5 = 4; + a1 = 12; + return -1; + } else if((((a6==1)&&((a3==1)&&((((a19==1)&&((((((a9==11)&&((a1==13)&&(a5==5)))||(((a1==13)&&(a5==6))&&(a9==11)))||(((a5==4)&&(a1==14))&&(a9==7)))&&(input==1))&&!(a20==1)))&&(a17==2))&&!(a27==1))))&&((a16==9)&&((((!(a28==1)||(a6==1))&&(a2==1))&&(a21==12))&&(a28==1))))){ + a16 = 7; + a15 = 1; + a20 = 1; + a4 = 1; + a5 = 6; + a1 = 12; + a21 = 10; + a9 = 9; + return -1; + } else if((((a21==12)&&(!(a20==1)&&(!(a28==1)||(((a11==1)&&(a1==13))&&(a11==1)))))&&(((!(a7==1)&&((((a16==7)&&((((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5)))&&(input==5))&&(a19==1)))&&!(a4==1))&&(a17==2)))&&!(a7==1))&&!(a8==1)))){ + a16 = 8; + a9 = 9; + a19 = 5; + a5 = 4; + a1 = 12; + a28 = 1; + a7 = 0; + a20 = 1; + a13 = 1; + a21 = 10; + return 25; + } else if(((((a2==1)&&(!(a26==1)&&(((a17==2)&&(((input==1)&&(((a9==11)&&((a5==6)&&(a1==12)))||((a9==7)&&((a5==4)&&(a1==13)))))&&(a21==11)))&&(a16==9))))&&(a23==1))&&(!(a7==1)&&(((((a19==4)&&(a12==1))&&!(a18==1))&&!(a20==1))||!(a23==1))))){ + a20 = 1; + a16 = 11; + a3 = 0; + a1 = 13; + a28 = 0; + a9 = 9; + a19 = 1; + a21 = 10; + a5 = 6; + a14 = 1; + return -1; + } else if(((((a1==14)&&(((!(a23==1)||((a5==4)&&((a6==1)||!(a13==1))))&&(a13==1))&&(a9==7)))&&(a16==10))&&((a21==10)&&((a20==1)&&(((a23==1)&&((!(a0==1)&&((a19==2)&&(input==3)))&&!(a0==1)))&&(a17==2)))))){ + a19 = 1; + a18 = 0; + a1 = 12; + a11 = 1; + a28 = 1; + a16 = 7; + return -1; + } else if((((a16==7)&&(((!(a8==1)&&(((a3==1)&&((a21==11)&&((((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a3==1))&&!(a7==1))))&&(a1==13)))&&(a20==1))&&(a19==1)))&&((((!(a12==1)||(a23==1))&&(a9==8))&&!(a24==1))&&(a17==2)))){ + a14 = 0; + a24 = 0; + a5 = 4; + a9 = 7; + a1 = 12; + a21 = 10; + a12 = 1; + return -1; + } else if(((!(a18==1)&&((a19==1)&&((a17==2)&&((a21==10)&&(!(a20==1)&&((a27==1)||(a2==1)))))))&&((a12==1)&&(((!(a18==1)&&((a2==1)&&((a16==7)&&((input==5)&&((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4)))))))&&(a1==13))&&!(a0==1))))){ + a12 = 1; + a5 = 6; + a20 = 1; + a8 = 0; + a9 = 8; + a21 = 12; + a11 = 1; + a1 = 12; + a16 = 9; + return 25; + } else if((((!(a4==1)&&(((((a3==1)&&((a9==9)&&(((input==6)&&(a16==10))&&(a1==12))))&&(a17==2))&&(a19==2))&&!(a7==1)))&&!(a14==1))&&(((a21==11)&&((!(a12==1)||((a20==1)&&(a13==1)))&&(a5==4)))||!(a23==1)))){ + a9 = 7; + a24 = 0; + a16 = 7; + a19 = 1; + a3 = 1; + a18 = 0; + a21 = 10; + return -1; + } else if(((((a5==5)&&(((a19==5)&&(!(a6==1)||((a20==1)&&(((a8==1)||(a2==1))&&!(a27==1)))))||!(a2==1)))&&(a21==12))&&((a9==9)&&((a17==2)&&(((a16==9)&&((a13==1)&&((input==4)&&(a1==14))))&&!(a4==1)))))){ + a16 = 8; + a9 = 8; + a1 = 13; + a21 = 11; + a19 = 1; + a7 = 0; + a5 = 6; + a18 = 0; + a26 = 0; + return 25; + } else if((((a28==1)&&((((a3==1)&&(((((a28==1)&&((input==1)&&((a5==5)||(a5==6))))&&(a19==1))&&!(a0==1))&&(a17==2)))&&(a9==7))&&(a2==1)))&&(((a16==9)&&((a1==13)&&((!(a3==1)||(a3==1))&&(a21==10))))&&!(a20==1)))){ + if((a11==1)){ + a16 = 8; + a27 = 1; + a18 = 1; + a1 = 14; + a7 = 1; + a19 = 4; + a21 = 11; + a9 = 10; + a20 = 1; + a5 = 6; + }else{ + a5 = 4; + a29 = 0; + a16 = 10; + a9 = 9; + a21 = 11; + a7 = 1; + a11 = 0; + a19 = 3; + a20 = 1; + } + return 21; + } else if((((a9==10)&&((((((((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&!(a4==1))&&(a16==7))&&(a21==12))&&(a17==2))&&!(a24==1))&&!(a4==1)))&&((a13==1)&&((a20==1)&&(((((a19==5)&&(a28==1))&&(a1==14))||!(a12==1))||!(a6==1)))))){ + a9 = 7; + a0 = 0; + a1 = 12; + a19 = 1; + a21 = 10; + a3 = 1; + a14 = 0; + a5 = 4; + return -1; + } else if(((((a16==7)&&(!(a4==1)&&((((a20==1)&&((a11==1)&&(a12==1)))&&(a6==1))&&!(a18==1))))||!(a23==1))&&(((a1==13)&&(!(a27==1)&&((((a9==10)&&(((a5==4)||(a5==5))&&(input==3)))&&(a21==11))&&(a19==3))))&&(a17==2)))){ + a21 = 10; + a9 = 7; + a12 = 1; + a5 = 4; + a1 = 12; + a19 = 1; + a13 = 1; + a14 = 0; + return -1; + } else if(((((a26==1)||((a5==4)&&(!(a3==1)||(((a13==1)&&!(a4==1))&&(a21==10)))))&&(a28==1))&&((((a1==13)&&((a9==11)&&(((a16==9)&&(((a19==2)&&(input==3))&&(a20==1)))&&(a28==1))))&&(a17==2))&&(a13==1)))){ + a1 = 14; + a14 = 0; + a19 = 5; + a8 = 0; + a2 = 1; + a21 = 11; + return 21; + } else if(((!(a24==1)&&(((a1==12)&&((a28==1)&&((((a5==5)||(a5==6))&&(input==5))&&(a23==1))))&&(a2==1)))&&((a21==10)&&((a6==1)&&((((a9==8)&&(((a16==10)&&((a19==1)&&(a28==1)))&&!(a8==1)))&&(a17==2))&&!(a20==1)))))){ + a18 = 1; + a16 = 7; + a19 = 2; + a5 = 4; + a22 = 0; + a13 = 0; + a20 = 1; + return 26; + } else if((((((((a27==1)&&(a28==1))&&(a16==7))&&(a14==1))&&(a17==2))&&(a19==1))&&(((a27==1)&&(((a21==12)&&((a14==1)&&(!(a13==1)&&(((((a5==6)&&(a1==13))&&(a9==11))||(((a1==14)&&(a5==4))&&(a9==7)))&&(input==5)))))&&(a0==1)))&&(a20==1)))){ + a10 = 0; + a21 = 10; + a9 = 10; + a22 = 0; + a29 = 1; + a5 = 6; + a1 = 13; + return -1; + } else if(((!(a26==1)&&((a11==1)&&(((!(a24==1)&&((a16==8)&&(input==3)))&&(a5==4))&&!(a20==1))))&&(!(a11==1)||((((a1==12)&&(!(a24==1)&&(((a21==12)&&((a9==7)&&(a28==1)))&&(a17==2))))&&(a19==2))||(a14==1))))){ + a24 = 1; + a1 = 14; + a28 = 0; + a10 = 0; + a9 = 9; + a19 = 1; + a16 = 7; + a21 = 10; + a20 = 1; + return -1; + } else if((((((a20==1)&&(((a16==10)&&(!(a27==1)&&((((input==3)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(a17==2))&&(a23==1))))&&(a1==14)))&&(a3==1))&&(a21==11))&&(!(a2==1)||(((a7==1)||((a23==1)&&(a19==4)))&&(a2==1))))){ + a11 = 1; + a5 = 4; + a21 = 10; + a3 = 1; + a9 = 10; + return -1; + } else if(((((((((a13==1)&&(((input==6)&&(a19==3))&&(a9==8)))&&(a17==2))&&!(a14==1))&&(a23==1))&&!(a27==1))&&(a1==12))&&(((a21==12)&&((a23==1)&&((!(a14==1)&&((a5==4)&&(a2==1)))&&!(a20==1))))&&(a16==8)))){ + a15 = 0; + a3 = 0; + a19 = 4; + a21 = 10; + a20 = 1; + a16 = 10; + a9 = 11; + a5 = 5; + a25 = 1; + return -1; + } else if((((a20==1)&&(((a0==1)||(!(a6==1)||((!(a2==1)||(!(a26==1)&&(a11==1)))&&!(a14==1))))&&(a9==7)))&&((((a17==2)&&((a21==12)&&((((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a28==1))&&(a1==14))))&&(a16==10))&&(a19==4)))){ + a6 = 1; + a13 = 1; + a9 = 10; + a16 = 7; + a12 = 1; + a5 = 4; + a21 = 10; + return 25; + } else if((((a19==1)&&(((a3==1)&&(((a1==14)&&(!(a7==1)&&((a23==1)&&!(a24==1))))&&(a13==1)))&&(a9==9)))&&((((a17==2)&&((a21==11)&&((((input==6)&&((a5==4)||(a5==5)))&&!(a24==1))&&(a6==1))))&&(a16==10))&&(a20==1)))){ + a9 = 10; + a28 = 1; + a5 = 5; + a19 = 3; + a16 = 8; + a27 = 0; + a11 = 1; + return 21; + } else if((((a1==14)&&((((a28==1)&&((a27==1)||(a11==1)))&&(a20==1))&&(a17==2)))&&(((a16==9)&&((((!(a0==1)&&(((input==6)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(a28==1)))&&!(a26==1))&&(a6==1))&&(a19==5)))&&(a21==12)))){ + a23 = 1; + a7 = 0; + a19 = 4; + a14 = 0; + a21 = 10; + a5 = 4; + a9 = 7; + return -1; + } else if((((a9==9)&&(((((a16==10)&&((a3==1)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a11==1))&&(a3==1))))&&(a11==1))&&(a1==12))&&(a17==2)))&&((a20==1)&&(((a21==12)&&(!(a2==1)||((a2==1)&&!(a14==1))))&&(a19==4))))){ + a21 = 10; + a7 = 0; + a5 = 4; + a4 = 0; + a9 = 7; + a24 = 0; + a16 = 7; + a19 = 1; + return -1; + } else if((((a19==3)&&((a16==8)&&((a3==1)&&((a28==1)&&((a11==1)&&((a20==1)&&(((((a9==7)&&((a5==4)&&(a1==13)))||(((a9==11)&&((a1==12)&&(a5==5)))||((a9==11)&&((a5==6)&&(a1==12)))))&&(input==1))&&(a2==1))))))))&&((a21==11)&&(!(a4==1)&&(!(a28==1)||((a17==2)&&(a12==1))))))){ + a0 = 0; + a1 = 14; + a19 = 5; + a14 = 0; + a21 = 10; + a16 = 10; + a5 = 5; + a9 = 8; + a4 = 0; + return 25; + } else if((((a21==10)&&((a9==10)&&(((a1==14)&&((a2==1)&&((a16==9)&&((a12==1)&&(((a18==1)||(a28==1))&&!(a7==1))))))||!(a2==1))))&&(!(a20==1)&&((a17==2)&&(((a2==1)&&((input==4)&&((a5==6)||((a5==4)||(a5==5)))))&&(a19==5)))))){ + a6 = 0; + a21 = 11; + a4 = 1; + a20 = 1; + a5 = 4; + a19 = 4; + a16 = 11; + a9 = 8; + a23 = 0; + return 25; + } else if(((!(a20==1)&&((!(a8==1)&&((a6==1)&&((a13==1)&&((a17==2)&&(((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4)))&&(input==5))))))&&(a19==5)))&&(((((a3==1)&&(((a13==1)&&(a21==12))&&(a1==12)))&&(a23==1))&&(a16==8))||(a24==1)))){ + if((a5==5)){ + a2 = 0; + a21 = 11; + a1 = 13; + a16 = 9; + a5 = 5; + a20 = 1; + a9 = 7; + a15 = 1; + a6 = 0; + a19 = 4; + }else{ + a5 = 5; + a20 = 1; + a1 = 13; + a19 = 1; + a21 = 10; + a9 = 7; + a26 = 1; + a8 = 1; + a16 = 7; + a13 = 0; + } + return 23; + } else if((((a1==12)&&(!(a2==1)||((((a14==1)||((a16==7)&&((a6==1)&&(a3==1))))&&(a19==1))&&!(a20==1))))&&((a17==2)&&((a21==12)&&(((!(a24==1)&&(((a9==8)&&(input==6))&&!(a7==1)))&&(a3==1))&&(a5==4)))))){ + a16 = 10; + a27 = 0; + a20 = 1; + a1 = 13; + a19 = 2; + a5 = 5; + a26 = 0; + a9 = 9; + a21 = 11; + a23 = 1; + return 21; + } else if((((!(a28==1)||((a16==11)&&(a28==1)))&&(a21==10))&&((a19==2)&&(((a17==2)&&(((a9==9)&&((((((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a3==1))&&(a1==13))&&(a20==1))&&!(a8==1))&&!(a4==1)))&&(a6==1)))&&(a2==1))))){ + a19 = 1; + a1 = 12; + a14 = 0; + a3 = 1; + a5 = 4; + a8 = 0; + a16 = 7; + a9 = 7; + return -1; + } else if((((((!(a8==1)&&(((((a17==2)&&((a23==1)&&(a19==2)))&&(a16==10))||(a7==1))&&!(a24==1)))&&(a11==1))&&(a21==10))&&(a20==1))&&(((!(a8==1)&&((((a5==5)||(a5==6))&&(input==5))&&(a1==12)))&&(a12==1))&&(a9==7)))){ + a19 = 3; + a18 = 0; + a5 = 4; + a12 = 1; + a9 = 10; + a16 = 7; + a21 = 11; + a0 = 0; + return -1; + } else if((((((a28==1)&&((a19==5)&&(!(a4==1)&&((!(a20==1)&&((input==5)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))))&&(a12==1)))))&&(a17==2))&&!(a14==1))&&((((((a2==1)&&(a1==13))&&(a16==10))&&!(a14==1))&&(a21==10))||!(a2==1)))){ + a2 = 0; + a3 = 0; + a24 = 1; + a19 = 1; + a1 = 12; + a9 = 9; + a20 = 1; + a16 = 7; + a5 = 4; + return -1; + } else if((((a9==9)&&((a26==1)||((((a6==1)&&(a16==8))&&(a21==12))||(a24==1))))&&(((a13==1)&&((a6==1)&&((a19==3)&&((((!(a27==1)&&((input==4)&&((a5==4)||(a5==5))))&&(a1==14))&&(a17==2))&&!(a20==1)))))&&!(a24==1)))){ + a25 = 1; + a19 = 5; + a5 = 4; + a4 = 1; + a8 = 1; + a21 = 10; + a1 = 12; + a16 = 7; + return 23; + } else if((((a20==1)&&((((a6==1)&&(a11==1))||(a26==1))&&(a1==13)))&&(!(a27==1)&&((a21==12)&&((a3==1)&&(!(a7==1)&&((a19==4)&&((a16==9)&&((a17==2)&&(!(a14==1)&&((input==3)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))))))))))))){ + if((a4==1)){ + a9 = 10; + a21 = 10; + a20 = 0; + a26 = 0; + a5 = 5; + a16 = 8; + a19 = 3; + a23 = 1; + a24 = 0; + }else{ + a27 = 0; + a13 = 1; + a5 = 5; + a1 = 14; + a9 = 7; + a21 = 10; + a2 = 1; + a19 = 1; + } + return -1; + } else if((((((a23==1)&&((a19==3)&&(!(a27==1)&&((a12==1)&&(a28==1)))))&&(a1==13))&&!(a20==1))&&(((a17==2)&&((((a16==9)&&(((a23==1)&&((input==5)&&((a5==5)||(a5==6))))&&(a21==12)))&&(a13==1))&&!(a0==1)))&&(a9==9)))){ + if((a16==11)){ + a21 = 11; + a11 = 0; + a20 = 1; + a5 = 6; + a1 = 12; + a19 = 1; + a16 = 10; + a10 = 0; + }else{ + a9 = 8; + a21 = 10; + a20 = 1; + a15 = 1; + a16 = 7; + a19 = 1; + a11 = 0; + a5 = 4; + a12 = 0; + } + return -1; + } else if(((((a1==13)&&(((a9==9)&&(((a19==2)&&(((a28==1)&&!(a0==1))&&(a3==1)))&&!(a20==1)))&&(a21==10)))&&(a16==11))&&((((a11==1)&&((((input==1)&&(a17==2))&&!(a0==1))&&!(a26==1)))&&(a2==1))&&(a5==6)))){ + a10 = 0; + a20 = 1; + a19 = 1; + a28 = 0; + a16 = 7; + a2 = 0; + return -1; + } else if(((((a16==9)&&((a0==1)||((a18==1)||((a14==1)||(!(a18==1)&&((a12==1)&&(((a1==13)&&(a3==1))&&(a21==10))))))))&&(a19==4))&&((((a9==11)&&((a5==4)&&((a20==1)&&(input==5))))&&!(a27==1))&&(a17==2)))){ + a12 = 1; + a23 = 1; + a1 = 12; + a3 = 1; + a19 = 1; + a9 = 7; + a16 = 7; + return -1; + } else if((((a16==11)&&(((!(a26==1)&&(((a21==10)&&((a28==1)||!(a11==1)))&&(a2==1)))||!(a12==1))&&(a19==3)))&&(((a17==2)&&(((a2==1)&&((a23==1)&&(!(a20==1)&&((input==4)&&((a5==6)||((a5==4)||(a5==5)))))))&&(a9==9)))&&(a1==14)))){ + if((a17==2)){ + a16 = 7; + a20 = 1; + a1 = 12; + a19 = 2; + a24 = 1; + a0 = 1; + a5 = 4; + a12 = 0; + }else{ + a20 = 1; + a16 = 10; + a14 = 1; + a21 = 11; + a5 = 4; + a10 = 1; + a9 = 8; + a4 = 1; + } + return 23; + } else if(((!(a0==1)&&(((a20==1)&&((a1==12)&&((a12==1)&&(a19==2))))&&(a17==2)))&&(((a23==1)&&((((a16==9)&&((a6==1)&&((((input==1)&&((a5==5)||(a5==6)))&&(a9==9))&&(a21==12))))&&(a3==1))&&!(a18==1)))&&(a13==1)))){ + a5 = 4; + a9 = 7; + a16 = 7; + a19 = 1; + a21 = 10; + a23 = 1; + a26 = 0; + return -1; + } else if((((a16==8)&&(((a14==1)||((a17==2)&&((a20==1)&&(!(a3==1)||((a28==1)||!(a28==1))))))&&(a1==13)))&&((a28==1)&&(((((a21==11)&&((a28==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4))))&&(a9==9))&&!(a24==1))&&(a19==1))))){ + a4 = 0; + a1 = 12; + a5 = 4; + a21 = 10; + a9 = 7; + a16 = 7; + return -1; + } else if((((a1==13)&&((a27==1)||((((a6==1)&&(a2==1))||(a18==1))&&!(a18==1))))&&((a20==1)&&(((a6==1)&&(!(a7==1)&&((a16==10)&&((a21==10)&&(((input==1)&&((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9))))&&(a19==4))))))&&(a17==2))))){ + a13 = 1; + a19 = 2; + a16 = 8; + a21 = 11; + a9 = 9; + a5 = 4; + a4 = 0; + a3 = 1; + return 21; + } else if(((((a9==11)&&(!(a0==1)&&(((((a20==1)&&(a12==1))&&(a23==1))||!(a28==1))&&(a5==6))))&&(a16==9))&&((a1==12)&&((a19==5)&&((((a11==1)&&(((a17==2)&&(input==4))&&(a3==1)))&&(a2==1))&&(a21==10)))))){ + a6 = 1; + a5 = 5; + a1 = 14; + a19 = 1; + a0 = 0; + a18 = 0; + a16 = 10; + return 25; + } else if((((!(a20==1)&&(!(a4==1)&&((((input==3)&&(((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))))&&(a23==1))&&(a16==9))))&&(a17==2))&&((a19==3)&&(((a28==1)&&((!(a7==1)&&((a24==1)||((a1==12)&&(a23==1))))||(a27==1)))&&(a21==12))))){ + a20 = 1; + a15 = 0; + a9 = 7; + a25 = 0; + a5 = 5; + a29 = 0; + a1 = 14; + return -1; + } else if((((((((a12==1)&&((input==1)&&(a9==9)))&&!(a27==1))&&(a2==1))&&(a1==12))&&(a5==6))&&((a17==2)&&((a20==1)&&(((a16==10)&&(!(a3==1)||((a21==10)&&(((a28==1)&&(a28==1))||(a24==1)))))&&(a19==3)))))){ + a5 = 4; + a19 = 1; + a12 = 1; + a27 = 0; + a16 = 7; + a3 = 1; + a9 = 7; + return -1; + } else if((((!(a0==1)&&((a17==2)&&(((a6==1)&&(!(a8==1)&&((a20==1)&&((input==1)&&(((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))))))&&(a19==5))))&&(a16==10))&&(!(a23==1)||(((((a13==1)&&(a21==12))&&!(a14==1))&&(a6==1))&&(a1==14))))){ + a9 = 9; + a1 = 13; + a16 = 7; + a19 = 2; + a12 = 1; + a2 = 1; + a21 = 10; + a14 = 0; + a5 = 5; + return 25; + } else if((((a5==5)&&((a9==7)&&((((a1==13)&&((a23==1)&&((a17==2)&&((a3==1)&&((!(a18==1)&&((input==6)&&(a19==4)))&&(a16==9))))))&&!(a26==1))&&(a21==12))))&&(!(a3==1)||(!(a20==1)&&((a28==1)||!(a2==1)))))){ + a9 = 10; + a23 = 0; + a27 = 1; + a16 = 7; + a5 = 6; + a21 = 10; + a19 = 1; + a22 = 0; + a1 = 12; + a20 = 1; + return -1; + } else if(((((a18==1)||(((a19==4)&&((a9==11)&&((a5==4)&&(((((a23==1)&&!(a26==1))&&(a1==12))&&(a21==12))&&(a20==1)))))||(a24==1)))&&(a17==2))&&((!(a0==1)&&((a13==1)&&((input==1)&&(a16==9))))&&!(a4==1)))){ + a1 = 14; + a19 = 2; + a27 = 0; + a18 = 0; + a5 = 5; + return 21; + } else if((((!(a7==1)&&(((a6==1)&&(a19==2))&&(a9==8)))&&(a16==10))&&((a23==1)&&((a6==1)&&(((((a17==2)&&(((a1==13)&&((a5==6)&&((input==4)&&!(a20==1))))&&(a2==1)))&&(a21==10))&&!(a26==1))&&!(a0==1)))))){ + a19 = 4; + a22 = 0; + a9 = 11; + a16 = 7; + a1 = 12; + a21 = 12; + a27 = 1; + return 21; + } else if((((a1==13)&&((((!(a11==1)||(a12==1))&&(a20==1))||!(a2==1))&&(a21==12)))&&((((a11==1)&&(((a16==11)&&((a11==1)&&((a11==1)&&((a17==2)&&(((a5==4)||(a5==5))&&(input==3))))))&&!(a0==1)))&&(a19==4))&&(a9==9)))){ + a16 = 7; + a28 = 1; + a19 = 1; + a9 = 7; + a24 = 0; + a5 = 4; + a1 = 12; + a26 = 0; + a21 = 10; + return -1; + } else if((((((a6==1)&&(((a3==1)&&(!(a7==1)&&((input==4)&&(a19==4))))&&(a20==1)))&&(a3==1))&&(a6==1))&&((a21==10)&&((!(a7==1)&&((a5==6)&&((a17==2)&&(((a2==1)&&(a16==11))&&(a9==8)))))&&(a1==14))))){ + a1 = 12; + a12 = 1; + a3 = 1; + a9 = 7; + a16 = 7; + a5 = 4; + a28 = 1; + a19 = 1; + return -1; + } else if(((((!(a24==1)&&((((a19==4)&&((a9==8)&&((a21==12)&&(input==1))))&&(a16==9))&&(a23==1)))&&!(a8==1))&&!(a8==1))&&(((a26==1)||((((a17==2)&&(!(a26==1)&&(a2==1)))&&(a1==13))&&(a5==5)))&&!(a20==1)))){ + a19 = 2; + a29 = 1; + a9 = 10; + a16 = 8; + a2 = 0; + a21 = 11; + a5 = 6; + a28 = 0; + a1 = 12; + a20 = 1; + return -1; + } else if((((((a21==12)&&((input==6)&&((a5==5)||(a5==6))))&&(a13==1))&&(a19==1))&&(!(a20==1)&&((a17==2)&&(((!(a23==1)||((!(a4==1)&&((((a3==1)&&(a1==12))||!(a23==1))&&!(a8==1)))&&(a2==1)))&&(a16==10))&&(a9==7)))))){ + if((a7==1)){ + a20 = 1; + a12 = 0; + a1 = 13; + a7 = 1; + a5 = 5; + a16 = 7; + a23 = 0; + a21 = 10; + a9 = 8; + }else{ + a20 = 1; + a21 = 10; + a9 = 8; + a14 = 1; + a5 = 5; + a15 = 1; + a4 = 1; + a16 = 7; + } + return -1; + } else if((((a19==3)&&(((a2==1)&&(a21==12))||(a14==1)))&&((a11==1)&&((!(a4==1)&&((a16==8)&&((a17==2)&&(((a1==14)&&(!(a20==1)&&((a9==7)&&(((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&!(a27==1)))))&&(a23==1)))))&&(a13==1))))){ + a12 = 0; + a9 = 11; + a19 = 1; + a10 = 0; + a4 = 1; + a16 = 7; + a20 = 1; + a1 = 12; + a21 = 10; + a5 = 5; + return 21; + } else if((((a21==11)&&((a16==9)&&((a17==2)&&(((a1==14)&&((!(a14==1)&&(!(a24==1)&&(((a5==4)||(a5==5))&&(input==6))))&&!(a26==1)))&&(a9==8)))))&&((((((a11==1)||!(a12==1))&&(a12==1))&&(a2==1))&&!(a20==1))&&(a19==1)))){ + a22 = 0; + a10 = 1; + a9 = 11; + a19 = 2; + a16 = 7; + a1 = 12; + a20 = 1; + a5 = 5; + a21 = 10; + a8 = 1; + return -1; + } else if((((a9==7)&&((a21==12)&&((((a19==3)&&((((input==4)&&(a1==12))&&(a2==1))&&(a28==1)))&&!(a24==1))&&(a17==2))))&&((!(a14==1)&&((a26==1)||((((a13==1)&&!(a20==1))&&(a5==6))&&(a16==9))))&&!(a26==1)))){ + a16 = 7; + a20 = 1; + a21 = 10; + a27 = 1; + a2 = 0; + a24 = 1; + a19 = 2; + return -1; + } else if((((a16==7)&&(((a17==2)&&(((!(a20==1)&&(((a6==1)&&(!(a24==1)&&((!(a8==1)&&((a19==2)&&(input==5)))&&!(a14==1))))&&!(a18==1)))&&!(a18==1))&&(a5==6)))&&(a1==14)))&&(((a9==7)&&(a2==1))&&(a21==11)))){ + a1 = 12; + a4 = 0; + a13 = 1; + a5 = 4; + a12 = 1; + a20 = 1; + a21 = 10; + a19 = 1; + return -1; + } else if((((a12==1)&&((a9==7)&&(((a21==12)&&((input==1)&&(a5==5)))&&!(a24==1))))&&((a14==1)||(!(a27==1)&&(((a1==12)&&(!(a7==1)&&(((a0==1)||((a19==2)&&((a12==1)&&(a20==1))))&&(a17==2))))&&(a16==9)))))){ + a2 = 1; + a1 = 13; + a0 = 0; + a21 = 11; + a16 = 7; + a18 = 0; + a19 = 1; + a9 = 8; + return -1; + } else if((((a18==1)||((a3==1)&&(((((a5==4)&&((a11==1)&&!(a14==1)))&&(a17==2))&&(a19==1))||!(a13==1))))&&(!(a0==1)&&((a9==7)&&(((a21==12)&&((((a16==8)&&(input==1))&&(a1==14))&&(a11==1)))&&!(a20==1)))))){ + a12 = 0; + a20 = 1; + a8 = 1; + a16 = 7; + a24 = 1; + a21 = 10; + a9 = 10; + a1 = 12; + a5 = 5; + return 21; + } else if(((((((a6==1)&&(((a1==14)&&(a2==1))||(a4==1)))&&(a28==1))&&(a21==10))&&(a19==5))&&((a20==1)&&((a17==2)&&(((!(a8==1)&&((a16==7)&&((input==1)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8))))))&&!(a18==1))&&(a6==1)))))){ + a21 = 12; + a11 = 1; + a5 = 4; + a9 = 9; + a1 = 13; + a2 = 1; + a7 = 0; + a19 = 4; + return 23; + } else if((((a20==1)&&(!(a14==1)&&((((a1==14)&&((a23==1)&&((!(a0==1)&&((a11==1)&&(a17==2)))&&(a16==9))))&&(a21==10))&&(a19==1))))&&(((((((a5==4)||(a5==5))&&(input==3))&&(a9==7))&&(a28==1))&&(a2==1))&&!(a4==1)))){ + a16 = 8; + a7 = 0; + a5 = 4; + a19 = 2; + a12 = 1; + a9 = 11; + a21 = 12; + a0 = 0; + return 22; + } else if(((!(a11==1)||(!(a28==1)||((((a19==1)&&((a17==2)&&((a21==10)&&(a23==1))))&&(a9==10))&&(a2==1))))&&(((a3==1)&&((((a12==1)&&(((a16==11)&&(input==3))&&!(a20==1)))&&(a5==5))&&(a1==12)))&&!(a26==1)))){ + a18 = 1; + a9 = 9; + a15 = 1; + a16 = 7; + a20 = 1; + return 21; + } else if(((((a19==5)&&(!(a0==1)&&((((((a21==10)&&(((a17==2)&&(input==3))&&(a2==1)))&&(a12==1))&&(a5==6))&&(a1==14))&&!(a4==1))))&&(a16==7))&&(((a9==7)&&(((a12==1)&&(a6==1))||(a0==1)))&&!(a20==1)))){ + a20 = 1; + a26 = 0; + a4 = 0; + a2 = 1; + a1 = 12; + a5 = 4; + a19 = 1; + return -1; + } else if((((a17==2)&&(!(a11==1)||((a26==1)||(!(a4==1)&&(((a1==12)&&(a11==1))&&(a5==5))))))&&(((a9==11)&&(((((a6==1)&&(((input==1)&&(a21==10))&&(a20==1)))&&(a2==1))&&(a16==11))&&!(a0==1)))&&(a19==3)))){ + a0 = 0; + a5 = 4; + a9 = 7; + a16 = 7; + a2 = 1; + a28 = 1; + a19 = 1; + return -1; + } else if((((a19==5)&&((((a16==9)&&(!(a27==1)&&((a28==1)&&(!(a0==1)&&(((input==4)&&((a5==5)||(a5==6)))&&(a3==1))))))&&!(a20==1))&&(a17==2)))&&(((a1==13)&&((a13==1)&&(((a13==1)&&(a13==1))&&(a9==11))))&&(a21==10)))){ + if((a24==1)){ + a24 = 1; + a16 = 7; + a22 = 0; + a25 = 0; + a19 = 1; + a9 = 7; + a5 = 6; + }else{ + a1 = 12; + a23 = 0; + a2 = 0; + a4 = 1; + a19 = 4; + a16 = 10; + a20 = 1; + a21 = 12; + a9 = 10; + a5 = 5; + } + return -1; + } else if(((((a11==1)&&(((a17==2)&&(!(a26==1)&&((a13==1)&&((input==3)&&((a5==4)||(a5==5))))))&&(a20==1)))&&(a21==12))&&((a13==1)&&(((((((a28==1)&&(a16==9))||(a0==1))&&(a19==3))&&(a9==9))&&(a1==14))&&!(a0==1))))){ + a24 = 0; + a1 = 12; + a21 = 10; + a4 = 0; + a9 = 7; + a16 = 7; + a19 = 1; + a5 = 4; + a8 = 0; + return -1; + } else if((((a4==1)||((!(a13==1)||((a3==1)&&(((a21==12)&&(((a23==1)&&(a19==4))&&(a9==11)))&&(a16==10))))&&(a11==1)))&&((!(a24==1)&&((a1==13)&&((!(a20==1)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6))))&&(a17==2))))&&!(a0==1)))){ + if((a17==2)){ + a21 = 10; + a20 = 1; + a1 = 12; + a2 = 0; + a16 = 7; + a19 = 1; + a5 = 5; + a6 = 0; + a9 = 7; + a4 = 1; + }else{ + a15 = 0; + a20 = 1; + a19 = 3; + a4 = 1; + a16 = 8; + a5 = 4; + a0 = 1; + a21 = 10; + } + return -1; + } else if((((a20==1)&&(((a0==1)||((a2==1)||(a7==1)))&&(a9==9)))&&((a1==13)&&((a13==1)&&(!(a14==1)&&((a21==12)&&(((((a16==11)&&(((input==6)&&((a5==5)||(a5==6)))&&(a19==3)))&&!(a27==1))&&(a17==2))&&!(a27==1)))))))){ + a3 = 1; + a1 = 12; + a5 = 4; + a28 = 1; + a21 = 10; + a16 = 7; + a19 = 1; + a9 = 7; + a8 = 0; + return -1; + } else if(((((a9==7)&&((a5==5)&&((!(a20==1)&&((a13==1)||!(a3==1)))&&(a16==8))))||(a26==1))&&((a19==5)&&(!(a24==1)&&((a17==2)&&((a23==1)&&((a1==14)&&((!(a14==1)&&((input==6)&&(a21==12)))&&(a28==1))))))))){ + a7 = 1; + a9 = 10; + a12 = 0; + a5 = 4; + a19 = 1; + a23 = 0; + a20 = 1; + return 25; + } else if(((((a20==1)&&((a19==5)&&((!(a26==1)&&(((input==4)&&(a1==12))&&(a21==12)))&&!(a26==1))))&&(a5==4))&&((a9==10)&&(((a16==7)&&(((!(a26==1)&&((a6==1)||!(a2==1)))&&!(a18==1))&&!(a0==1)))&&(a17==2))))){ + a9 = 7; + a0 = 0; + a21 = 10; + a7 = 0; + a23 = 1; + a19 = 1; + return -1; + } else if((((((a16==7)&&(((((input==3)&&(a21==11))&&(a23==1))&&(a9==10))&&(a17==2)))&&(a28==1))&&(a5==4))&&((((((a1==12)&&(((a28==1)&&(a13==1))&&(a23==1)))&&!(a27==1))&&(a19==4))&&!(a20==1))||(a0==1)))){ + a21 = 10; + a13 = 1; + a9 = 7; + a8 = 0; + a19 = 1; + a11 = 1; + a20 = 1; + return -1; + } else if(((((a0==1)||((a6==1)&&(a16==7)))||(a18==1))&&((a28==1)&&(((a1==12)&&(!(a14==1)&&((a21==10)&&((a17==2)&&((a19==5)&&(!(a20==1)&&(((input==5)&&(((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))))&&!(a14==1))))))))&&(a11==1))))){ + a5 = 4; + a19 = 1; + a6 = 1; + a8 = 0; + a9 = 8; + a13 = 1; + a20 = 1; + return -1; + } else if(((((((a9==8)&&((a17==2)&&((a6==1)&&((input==5)&&((a5==5)||(a5==6))))))&&(a11==1))&&(a19==2))&&(a20==1))&&(((a8==1)||((a8==1)||(((((a1==14)&&(a11==1))||!(a23==1))&&(a21==10))&&!(a27==1))))&&(a16==9)))){ + a14 = 0; + a5 = 4; + a19 = 1; + a2 = 1; + a9 = 7; + a16 = 7; + a1 = 12; + a27 = 0; + return -1; + } else if(((!(a20==1)&&(((a27==1)||((!(a23==1)||(a6==1))&&!(a7==1)))&&(a17==2)))&&((a1==13)&&((a3==1)&&((a19==5)&&((a21==10)&&(!(a27==1)&&((((((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(input==5))&&(a16==10))&&!(a24==1))))))))){ + a16 = 7; + a20 = 1; + a18 = 1; + a11 = 0; + a9 = 10; + a5 = 4; + a10 = 0; + a1 = 14; + a19 = 1; + return 21; + } else if((((a20==1)&&((a1==12)&&(((a21==10)&&((a17==2)&&(((a2==1)&&!(a23==1))&&!(a3==1))))&&!(a12==1))))&&((a19==4)&&((a8==1)&&((a16==10)&&(((a27==1)&&((input==1)&&(((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))))&&!(a12==1))))))){ + a13 = 0; + a14 = 1; + a21 = 11; + a16 = 7; + a5 = 5; + a20 = 0; + a9 = 7; + a19 = 1; + a6 = 0; + return 25; + } else if((((((((a6==1)&&(((((a5==5)||(a5==6))&&(input==3))&&(a19==2))&&!(a24==1)))&&(a9==8))&&(a11==1))&&(a21==11))&&(a3==1))&&(!(a2==1)||((((!(a2==1)||((a23==1)&&(a16==8)))&&(a20==1))&&(a1==14))&&(a17==2))))){ + a7 = 0; + a19 = 1; + a1 = 12; + a18 = 0; + a3 = 1; + a16 = 7; + a9 = 7; + a21 = 10; + a5 = 4; + return -1; + } else if(((((a21==10)&&((a17==2)&&(a13==1)))&&(a9==10))&&(((a16==10)&&(((!(a0==1)&&((a19==1)&&(((((a1==13)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))&&(a12==1))&&!(a0==1))&&!(a20==1))))&&(a13==1))&&(a11==1)))&&(a3==1)))){ + a5 = 6; + a26 = 1; + a21 = 11; + a1 = 12; + a9 = 9; + a25 = 0; + a22 = 0; + return -1; + } else if((((a21==12)&&((!(a6==1)||(((a20==1)&&(a6==1))&&(a1==13)))&&(a9==8)))&&((a17==2)&&((((((((a23==1)&&(((a5==4)||(a5==5))&&(input==5)))&&!(a24==1))&&(a12==1))&&!(a7==1))&&!(a14==1))&&(a19==4))&&(a16==8))))){ + a0 = 0; + a16 = 7; + a9 = 7; + a19 = 1; + a5 = 4; + a21 = 10; + a12 = 1; + a14 = 0; + a1 = 12; + return -1; + } else if((((!(a20==1)&&(!(a27==1)&&((input==4)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9))))))&&!(a18==1))&&(!(a7==1)&&(((!(a4==1)&&((a16==7)&&(((a28==1)&&(((a1==13)&&(a2==1))&&(a17==2)))&&(a19==3))))&&(a21==11))&&!(a26==1))))){ + a3 = 1; + a20 = 1; + a21 = 10; + a9 = 7; + a0 = 0; + a19 = 1; + a5 = 4; + a13 = 1; + a1 = 12; + return -1; + } else if((((((a17==2)&&((a12==1)&&(a19==3)))||!(a2==1))||(a24==1))&&((a20==1)&&(((a1==12)&&(((a6==1)&&(!(a8==1)&&((a16==11)&&((a21==12)&&(((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))&&(input==4))))))&&(a23==1)))&&(a3==1))))){ + a21 = 10; + a5 = 4; + a19 = 1; + a23 = 1; + a11 = 1; + a16 = 7; + a4 = 0; + a9 = 7; + return -1; + } else if(((((!(a2==1)||((a8==1)||(a6==1)))&&(a21==12))&&(a19==5))&&((a11==1)&&(!(a7==1)&&((a3==1)&&((a16==10)&&((a1==12)&&(!(a24==1)&&(((a17==2)&&((input==6)&&(((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10))))))&&!(a20==1)))))))))){ + a20 = 1; + a25 = 1; + a5 = 4; + a29 = 0; + a16 = 7; + a9 = 11; + a4 = 1; + a21 = 10; + a19 = 2; + return -1; + } else if(((((a20==1)&&((a16==10)&&(((a14==1)||(a2==1))&&(a19==5))))&&(a17==2))&&((a1==14)&&(((a11==1)&&((((!(a24==1)&&((((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(input==5)))&&!(a7==1))&&(a2==1))&&(a12==1)))&&(a21==10))))){ + a1 = 12; + a11 = 1; + a16 = 7; + a28 = 1; + a5 = 4; + a19 = 1; + a9 = 7; + a18 = 0; + return -1; + } else if((((a17==2)&&((a3==1)&&(((((a14==1)||((a6==1)&&(a16==8)))&&(a1==13))&&!(a20==1))&&(a6==1))))&&(((((a21==11)&&((a9==8)&&(!(a8==1)&&((input==5)&&((a5==4)||(a5==5))))))&&(a19==2))&&(a28==1))&&(a6==1)))){ + a26 = 0; + a20 = 1; + a5 = 4; + a9 = 7; + a3 = 1; + a21 = 10; + a19 = 1; + a4 = 0; + a16 = 7; + a1 = 12; + return -1; + } else if((((((((a1==12)&&(!(a8==1)&&((a12==1)&&((a5==6)&&(input==5)))))&&(a11==1))&&(a16==11))&&(a6==1))&&(a17==2))&&((((((a20==1)&&(!(a2==1)||(a11==1)))&&!(a18==1))&&(a19==5))&&(a9==11))&&(a21==10)))){ + a9 = 9; + a27 = 0; + a21 = 11; + a19 = 4; + a13 = 1; + a1 = 14; + a5 = 4; + a0 = 0; + return 21; + } else if((((a17==2)&&((((a19==2)&&((a1==13)&&(a2==1)))&&(a16==8))&&(a21==10)))&&((a9==11)&&((a20==1)&&((((a3==1)&&(((a28==1)&&((a23==1)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a23==1)))&&(a2==1))&&(a6==1)))))){ + a9 = 7; + a4 = 0; + a13 = 1; + a1 = 12; + a19 = 1; + a5 = 4; + a16 = 7; + a23 = 1; + return -1; + } else if(((((((((a21==11)&&((a16==7)&&((a20==1)&&((a5==6)&&(a2==1)))))&&(a1==12))&&!(a26==1))||(a7==1))&&!(a4==1))&&!(a0==1))&&((a6==1)&&(((((input==4)&&(a17==2))&&(a12==1))&&(a9==9))&&(a19==1))))){ + a9 = 7; + a5 = 4; + a21 = 10; + a7 = 0; + a14 = 0; + return -1; + } else if(((((a19==2)&&((a6==1)&&!(a24==1)))&&(a21==11))&&((a17==2)&&(!(a20==1)&&((((a16==7)&&(((((a1==12)&&((input==1)&&(((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))))&&!(a4==1))&&(a3==1))&&!(a0==1)))&&!(a18==1))&&!(a0==1)))))){ + a5 = 6; + a19 = 3; + a21 = 12; + a1 = 13; + a3 = 1; + a20 = 1; + a13 = 1; + a16 = 8; + a23 = 1; + a9 = 9; + return 26; + } else if((((a1==13)&&(((a2==1)&&((a21==10)&&((a9==11)&&((a5==6)&&(a23==1)))))&&!(a20==1)))&&((((a17==2)&&((!(a7==1)&&(((a12==1)&&((input==4)&&(a16==10)))&&!(a18==1)))&&!(a8==1)))&&(a19==1))&&!(a7==1)))){ + a20 = 1; + a3 = 0; + a1 = 14; + a9 = 8; + a16 = 9; + a10 = 0; + a22 = 1; + a19 = 5; + return 21; + } else if(((!(a28==1)||((((a5==4)&&((a4==1)||(((((a0==1)||(a11==1))&&!(a27==1))&&(a16==8))&&(a19==4))))&&!(a0==1))&&(a1==14)))&&((((a9==7)&&((a20==1)&&((input==3)&&(a17==2))))&&(a21==12))&&!(a7==1)))){ + a9 = 8; + a27 = 0; + a11 = 1; + a1 = 13; + a19 = 1; + a21 = 11; + return -1; + } else if(((((a21==12)&&((a23==1)&&((((a16==7)&&(a6==1))&&(a19==2))&&(a23==1))))&&(a12==1))&&((!(a8==1)&&(((a17==2)&&(((a20==1)&&(((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5)))&&(input==6)))&&(a1==12)))&&!(a18==1)))&&!(a14==1)))){ + a21 = 10; + a12 = 1; + a9 = 7; + a5 = 4; + a27 = 0; + a11 = 1; + a16 = 9; + a1 = 14; + return 21; + } else if(((!(a27==1)&&((((a17==2)&&(((a16==10)&&((a23==1)&&((a9==9)&&(((a20==1)&&(input==5))&&(a6==1)))))&&(a5==5)))&&!(a8==1))&&(a3==1)))&&((a21==11)&&((!(a4==1)&&((a13==1)&&(a19==5)))&&(a1==12))))){ + a4 = 0; + a3 = 1; + a16 = 7; + a19 = 1; + a24 = 0; + a5 = 4; + a21 = 10; + a9 = 7; + return -1; + } else if((((((a1==14)&&((a13==1)||(a27==1)))&&!(a20==1))&&(a17==2))&&(((a19==5)&&(((!(a0==1)&&((((a5==4)&&(((input==5)&&(a16==8))&&(a28==1)))&&!(a8==1))&&(a28==1)))&&!(a27==1))&&(a21==10)))&&(a9==11)))){ + a20 = 1; + a28 = 1; + a19 = 2; + a1 = 13; + a23 = 1; + a3 = 1; + a16 = 7; + a9 = 9; + return -1; + } else if((((a17==2)&&((a16==9)&&((a23==1)&&((!(a26==1)&&(((a23==1)&&(((a11==1)&&((a5==5)&&(input==1)))&&(a1==12)))&&!(a24==1)))&&(a21==11)))))&&(!(a20==1)&&((a19==1)&&(((a9==9)&&(a28==1))||(a7==1)))))){ + a21 = 12; + a1 = 14; + a20 = 1; + a19 = 5; + a0 = 1; + a12 = 0; + a16 = 10; + a29 = 0; + a9 = 7; + return 21; + } else if((((((!(a0==1)&&((!(a14==1)&&(!(a4==1)&&(((a19==3)&&(((a5==5)||(a5==6))&&(input==3)))&&(a20==1))))&&!(a18==1)))&&(a11==1))&&(a1==12))&&(a16==11))&&((a9==8)&&((a21==10)&&(!(a26==1)&&((a12==1)&&(a17==2))))))){ + a9 = 7; + a19 = 1; + a0 = 0; + a16 = 7; + a5 = 4; + a11 = 1; + return -1; + } else if(((!(a6==1)||(((a0==1)||((a3==1)||!(a13==1)))&&(a1==14)))&&((a21==11)&&((((a11==1)&&((a19==1)&&(!(a27==1)&&(((a9==9)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a17==2)))&&(a16==9)))))&&!(a20==1))&&(a28==1))))){ + if((a4==1)){ + a2 = 0; + a5 = 6; + a1 = 12; + a26 = 1; + a9 = 10; + a16 = 7; + a21 = 10; + a20 = 1; + a12 = 0; + }else{ + a19 = 4; + a5 = 4; + a21 = 10; + a1 = 13; + a6 = 0; + a2 = 0; + a10 = 1; + a9 = 7; + } + return 21; + } else if((((a21==11)&&((!(a24==1)&&(!(a2==1)||(!(a11==1)||((((a27==1)||((a12==1)&&(a3==1)))&&!(a24==1))&&(a20==1)))))&&(a19==1)))&&(((a1==12)&&((((a17==2)&&(input==3))&&(a16==7))&&(a9==9)))&&(a5==6)))){ + a24 = 0; + a12 = 1; + a13 = 1; + a21 = 10; + a9 = 7; + a5 = 4; + return -1; + } else if((((((((a17==2)&&((a12==1)&&!(a18==1)))&&(a19==1))&&(a11==1))&&!(a20==1))||(a14==1))&&((a9==11)&&(((a6==1)&&((a1==13)&&((((a21==12)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5)))&&!(a0==1))&&(a16==8))))&&!(a24==1))))){ + a23 = 0; + a16 = 7; + a1 = 12; + a28 = 0; + a5 = 4; + a6 = 0; + a20 = 1; + a21 = 10; + return 26; + } else if(((!(a20==1)&&((((a9==8)&&((!(a8==1)&&(((a5==5)||(a5==6))&&(input==1)))&&!(a14==1)))&&(a17==2))&&(a21==10)))&&(((a16==11)&&((a1==14)&&(!(a11==1)||((((a2==1)&&!(a8==1))&&!(a4==1))&&(a28==1)))))&&(a19==1)))){ + a5 = 5; + a9 = 7; + a16 = 7; + a19 = 3; + a14 = 1; + a10 = 0; + a18 = 1; + return 21; + } else if((((a17==2)&&((a1==12)&&((a0==1)||((((a3==1)&&(a3==1))||!(a3==1))||!(a2==1)))))&&(((a21==11)&&((!(a26==1)&&(((a6==1)&&(((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4)))&&(input==5)))&&(a20==1)))&&(a19==5)))&&(a16==7)))){ + a9 = 11; + a5 = 4; + a1 = 13; + a19 = 1; + a21 = 12; + a6 = 1; + a28 = 1; + a26 = 0; + a16 = 8; + return 25; + } else if((((((a9==8)&&((a23==1)&&(((a17==2)&&(!(a14==1)&&((input==3)&&(a21==11))))&&(a19==5))))&&(a20==1))&&(a2==1))&&((a1==12)&&((((((a2==1)||(a0==1))&&!(a26==1))&&(a16==7))&&(a5==4))||!(a6==1))))){ + a13 = 1; + a0 = 0; + a9 = 7; + a19 = 1; + a21 = 10; + a14 = 0; + return -1; + } else if((((!(a13==1)||(((a9==11)&&(!(a2==1)||((a0==1)||(a28==1))))&&(a19==4)))&&(a21==12))&&((a16==7)&&((a1==13)&&(((a23==1)&&(!(a24==1)&&(!(a24==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a20==1)))))&&(a17==2)))))){ + a5 = 4; + a1 = 12; + a4 = 0; + a11 = 1; + a9 = 7; + a21 = 10; + a18 = 0; + a19 = 1; + return -1; + } else if((((((a11==1)&&(a19==1))||(a7==1))&&(a16==9))&&((((!(a18==1)&&((a1==12)&&((a21==10)&&(((!(a27==1)&&(((input==3)&&((a5==4)||(a5==5)))&&!(a4==1)))&&!(a7==1))&&(a9==8)))))&&!(a26==1))&&(a17==2))&&!(a20==1)))){ + a3 = 0; + a1 = 14; + a19 = 2; + a5 = 6; + a29 = 1; + a9 = 7; + return 26; + } else if((((((a6==1)&&((a16==7)&&((a21==10)&&(((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==3))&&(a1==12)))))&&(a19==5))&&!(a20==1))&&(((a17==2)&&((a23==1)&&((((a28==1)||(a18==1))&&!(a24==1))||(a8==1))))||(a24==1)))){ + a5 = 4; + a20 = 1; + a9 = 7; + a0 = 0; + a19 = 1; + a6 = 1; + return -1; + } else if((((a5==5)&&((((!(a28==1)||(!(a11==1)||(a13==1)))&&!(a4==1))&&!(a24==1))&&(a1==14)))&&((a21==12)&&((a20==1)&&((a19==4)&&((((a12==1)&&(((a16==8)&&(input==4))&&!(a27==1)))&&(a17==2))&&(a9==8))))))){ + a21 = 10; + a8 = 0; + a19 = 2; + a9 = 9; + a16 = 7; + a0 = 0; + a13 = 1; + a1 = 13; + return 23; + } else if((((a16==10)&&((((a18==1)||(a6==1))||(a27==1))&&(a21==10)))&&((a20==1)&&((a9==7)&&((a1==12)&&((a19==1)&&(((a23==1)&&((!(a18==1)&&(((input==5)&&((a5==4)||(a5==5)))&&!(a8==1)))&&!(a14==1)))&&(a17==2)))))))){ + a16 = 7; + a1 = 14; + a3 = 1; + a5 = 6; + a8 = 0; + a21 = 11; + a9 = 8; + a19 = 2; + return 25; + } else if((((a18==1)||(((!(a7==1)&&((a23==1)&&(a19==1)))&&!(a8==1))&&(a1==12)))&&((a11==1)&&((a13==1)&&((((a16==8)&&(((a20==1)&&((((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==1)))&&(a17==2)))&&(a21==10))&&(a11==1)))))){ + a5 = 4; + a23 = 1; + a9 = 7; + a16 = 7; + a0 = 0; + return -1; + } else if(((((a1==12)&&((((a9==9)&&((a7==1)||(!(a4==1)&&((a28==1)&&(a12==1)))))&&!(a24==1))&&(a28==1)))&&(a21==12))&&((a16==8)&&((a3==1)&&((((a17==2)&&((a19==5)&&(input==6)))&&(a5==6))&&!(a20==1)))))){ + a20 = 1; + a25 = 1; + a21 = 10; + a29 = 0; + a19 = 1; + a16 = 7; + a0 = 1; + a5 = 5; + a9 = 11; + return -1; + } else if((((a13==1)&&(((a7==1)||(!(a24==1)&&((a21==12)&&(((a20==1)&&(a13==1))&&(a17==2)))))&&!(a24==1)))&&((a11==1)&&((((a19==5)&&((a5==6)&&((a1==13)&&((input==1)&&(a9==10)))))&&(a16==8))&&(a12==1))))){ + a5 = 4; + a8 = 0; + a6 = 1; + a16 = 7; + a1 = 12; + a27 = 0; + a21 = 10; + a19 = 1; + a9 = 7; + return -1; + } else if((((a17==2)&&((a26==1)||((a9==9)&&(((a21==11)&&((a3==1)&&!(a24==1)))&&(a16==7)))))&&((((a11==1)&&((((!(a4==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&(a1==13))&&(a28==1))&&!(a27==1)))&&(a19==1))&&(a20==1)))){ + a21 = 10; + a9 = 7; + a1 = 12; + a5 = 4; + a14 = 0; + a26 = 0; + a27 = 0; + return -1; + } else if((((a1==13)&&((a11==1)&&(((a14==1)||(a12==1))&&(a16==8))))&&(!(a8==1)&&((((a21==10)&&(!(a20==1)&&(!(a26==1)&&((a11==1)&&((a17==2)&&((a13==1)&&((input==1)&&((a5==5)||(a5==6)))))))))&&(a9==10))&&(a19==3))))){ + a19 = 4; + a24 = 0; + a20 = 1; + a9 = 7; + a4 = 0; + a5 = 4; + a16 = 10; + a21 = 12; + a18 = 0; + return 25; + } else if((((a11==1)&&((((((a2==1)&&(((a5==5)||(a5==6))&&(input==3)))&&(a9==7))&&(a17==2))&&(a13==1))&&(a28==1)))&&((a16==10)&&(((((a21==12)&&(!(a27==1)&&((a23==1)&&!(a18==1))))&&(a1==12))&&!(a20==1))&&(a19==1))))){ + a5 = 5; + a13 = 0; + a1 = 14; + a9 = 11; + a19 = 4; + a16 = 8; + a2 = 0; + a11 = 0; + a21 = 10; + return -1; + } else if(((!(a27==1)&&(!(a7==1)&&(((((a17==2)&&(input==1))&&(a21==10))&&(a28==1))&&(a9==10))))&&((!(a3==1)||((a20==1)&&((a1==13)&&(((a16==7)&&(((a12==1)&&(a5==4))&&(a19==2)))&&!(a18==1)))))&&!(a4==1)))){ + a19 = 3; + a13 = 1; + a8 = 0; + a9 = 7; + a26 = 0; + a5 = 5; + return 25; + } else if(((((a7==1)||((((a19==4)&&((a12==1)||(a0==1)))&&(a5==5))&&(a1==14)))&&(a16==8))&&((a21==11)&&((a17==2)&&(((!(a14==1)&&((a20==1)&&(((a9==10)&&(input==5))&&(a3==1))))&&!(a4==1))&&(a12==1)))))){ + a9 = 11; + a18 = 0; + a19 = 2; + a16 = 10; + a8 = 0; + a4 = 0; + a5 = 4; + return 22; + } else if(((((((a13==1)&&((a19==2)&&((a11==1)&&(a17==2))))&&(a16==8))||(a0==1))&&(a1==12))&&(((a20==1)&&((a21==10)&&((((a12==1)&&(((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))&&(input==4)))&&!(a14==1))&&!(a18==1))))&&(a12==1)))){ + a5 = 4; + a9 = 7; + a23 = 1; + a16 = 7; + a3 = 1; + a19 = 1; + return -1; + } else if(((((a21==10)&&(!(a8==1)&&((((a9==10)&&((!(a20==1)&&(input==5))&&(a1==14)))&&(a12==1))&&(a17==2))))&&(a19==2))&&(!(a18==1)&&((!(a8==1)&&(!(a24==1)&&(((a5==5)&&(a23==1))&&(a3==1))))&&(a16==8))))){ + a19 = 3; + a20 = 1; + a9 = 9; + a16 = 7; + a23 = 1; + a6 = 1; + a4 = 0; + return 23; + } else if(((((((((a13==1)&&(a28==1))||(a14==1))&&(a13==1))&&!(a14==1))&&(a19==5))&&(a9==7))&&((a17==2)&&((((a20==1)&&((a16==10)&&((a3==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a1==12)))))&&!(a8==1))&&(a21==10))))){ + a24 = 0; + a5 = 4; + a19 = 1; + a6 = 1; + a16 = 7; + a12 = 1; + return -1; + } return calculate_output2(input); + } + + int calculate_output2(int input) { + if(((!(a26==1)&&(!(a4==1)&&((a16==11)&&(((a5==5)&&(!(a7==1)&&(((input==4)&&(a21==10))&&(a12==1))))&&(a19==5)))))&&((a17==2)&&((a27==1)||((a1==13)&&((((a11==1)&&(a9==9))&&(a20==1))&&!(a8==1))))))){ + a19 = 1; + a5 = 4; + a9 = 7; + a24 = 0; + a26 = 0; + a16 = 7; + a1 = 12; + return -1; + } else if((((!(a18==1)&&((((a19==4)&&((input==5)&&(a9==8)))&&(a17==2))&&(a20==1)))&&!(a7==1))&&(!(a11==1)||(((a23==1)&&(!(a6==1)||(((a16==8)&&((!(a13==1)||(a2==1))&&(a5==6)))&&(a21==12))))&&(a1==12))))){ + a2 = 1; + a19 = 3; + a16 = 10; + a23 = 1; + a9 = 7; + a1 = 13; + a13 = 1; + return 22; + } else if((((((a4==1)&&(((input==6)&&((a5==5)||(a5==6)))&&(a20==1)))&&(a16==10))&&(a4==1))&&((a9==11)&&((a1==12)&&((!(a3==1)&&(!(a12==1)&&((((a7==1)&&((a21==10)&&(a13==1)))&&(a17==2))&&(a19==3))))&&(a14==1)))))){ + a9 = 7; + a4 = 1; + a19 = 2; + a21 = 11; + a5 = 4; + a20 = 0; + a1 = 13; + a16 = 8; + a15 = 0; + return 25; + } else if(((!(a11==1)&&((((a19==5)&&((a20==1)&&(!(a11==1)&&(((a5==6)&&(input==4))&&(a8==1)))))&&!(a13==1))&&(a21==12)))&&(!(a23==1)&&((((((a2==1)&&(a1==14))&&(a17==2))&&(a9==7))&&(a18==1))&&(a16==8))))){ + a9 = 11; + a25 = 0; + a1 = 13; + a16 = 7; + a0 = 1; + a21 = 10; + a19 = 1; + a29 = 1; + return -1; + } else if((((((a21==10)&&(((a5==6)&&(!(a12==1)||(((a12==1)&&(a17==2))&&(a9==7))))&&(a19==2)))||(a8==1))&&!(a4==1))&&(((a28==1)&&(((a6==1)&&((!(a20==1)&&(input==5))&&(a1==12)))&&(a16==10)))&&!(a26==1)))){ + if((a16==9)){ + a16 = 7; + a8 = 1; + a9 = 11; + a10 = 0; + a20 = 1; + a11 = 0; + }else{ + a1 = 13; + a20 = 1; + a9 = 10; + a22 = 0; + a16 = 9; + a3 = 0; + a29 = 0; + a21 = 11; + } + return -1; + } else if((((a17==2)&&(((!(a13==1)||(a6==1))&&(a23==1))&&!(a14==1)))&&(!(a27==1)&&(!(a20==1)&&(((a16==8)&&((a21==10)&&(((((a9==7)&&(((a5==5)||(a5==6))&&(input==6)))&&(a23==1))&&(a19==5))&&(a1==13))))&&(a2==1)))))){ + a19 = 3; + a24 = 0; + a20 = 1; + a13 = 1; + a5 = 4; + a12 = 1; + a9 = 10; + a21 = 11; + return 22; + } else if((((a19==5)&&((a16==11)&&((a21==11)&&(!(a14==1)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a12==1))&&!(a0==1))))))&&(((a20==1)&&((a1==13)&&((a9==10)&&((((a3==1)||(a27==1))||(a24==1))&&!(a24==1)))))&&(a17==2)))){ + a19 = 3; + a9 = 8; + a13 = 1; + a5 = 4; + a21 = 12; + a27 = 0; + a14 = 0; + return 22; + } else if((((!(a2==1)||((((a0==1)||(((a28==1)&&(a2==1))&&(a16==7)))&&!(a20==1))||!(a11==1)))&&(a21==11))&&((a19==3)&&(((a17==2)&&((!(a26==1)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))&&(input==6)))&&(a1==14)))&&!(a8==1))))){ + a5 = 4; + a19 = 1; + a3 = 1; + a20 = 1; + a28 = 1; + a9 = 7; + a1 = 12; + a7 = 0; + a21 = 10; + return -1; + } else if((((a21==12)&&((((((a20==1)&&(((a2==1)&&(a9==11))||(a26==1)))&&(a28==1))&&(a17==2))||(a8==1))||!(a28==1)))&&(((a16==11)&&(((((input==6)&&((a5==4)||(a5==5)))&&(a1==13))&&!(a24==1))&&(a11==1)))&&(a19==4)))){ + if((a2==1)){ + a9 = 10; + a3 = 1; + a1 = 12; + a21 = 11; + a16 = 8; + a7 = 0; + a18 = 0; + a19 = 5; + a5 = 4; + a20 = 0; + }else{ + a2 = 1; + a13 = 1; + a21 = 10; + a5 = 6; + a3 = 1; + a16 = 10; + a19 = 1; + } + return 21; + } else if((((!(a18==1)&&((a28==1)&&((a21==11)&&(a28==1))))||!(a2==1))&&(((a16==10)&&(!(a7==1)&&((((a19==1)&&((a20==1)&&((a1==12)&&((((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==3)))))&&(a17==2))&&!(a26==1))))&&!(a14==1)))){ + a5 = 4; + a24 = 0; + a9 = 7; + a21 = 10; + a27 = 0; + a16 = 7; + a0 = 0; + return -1; + } else if(((!(a24==1)&&((a23==1)&&((a17==2)&&((a5==6)&&(((((input==5)&&(a19==2))&&(a3==1))&&!(a26==1))&&(a21==12))))))&&(((a1==12)&&((a9==10)&&((a16==9)&&((!(a12==1)||(a2==1))||!(a3==1)))))&&(a20==1)))){ + a19 = 5; + a23 = 1; + a21 = 10; + a5 = 4; + a12 = 1; + a2 = 1; + return 25; + } else if((((a12==1)&&((a9==8)&&(((a16==8)&&((((a0==1)||(a6==1))||!(a11==1))&&(a1==14)))&&(a17==2))))&&(!(a18==1)&&((a19==3)&&((!(a26==1)&&(!(a20==1)&&((a21==11)&&((input==1)&&(a5==6)))))&&(a6==1)))))){ + a16 = 7; + a5 = 4; + a1 = 12; + a19 = 1; + a23 = 1; + a20 = 1; + a9 = 7; + a28 = 1; + a27 = 0; + a21 = 10; + return -1; + } else if((((a20==1)&&((a1==13)&&((((a9==7)&&(((a23==1)&&((a16==9)&&((((a5==5)||(a5==6))&&(input==1))&&(a13==1))))&&(a6==1)))&&(a21==10))&&(a19==5))))&&((a17==2)&&(!(a27==1)&&(((a12==1)||(a24==1))||!(a13==1)))))){ + a5 = 4; + a26 = 0; + a16 = 7; + a27 = 0; + a1 = 12; + a18 = 0; + a19 = 1; + return -1; + } else if((((((((a3==1)&&((a28==1)&&(((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))&&(input==5))))&&!(a8==1))&&(a2==1))&&(a16==9))&&(a20==1))&&((a19==4)&&(((a14==1)||(!(a4==1)&&(((a21==11)&&(a23==1))&&(a1==13))))&&(a17==2))))){ + if((a11==1)){ + a5 = 5; + a13 = 1; + a9 = 8; + a16 = 8; + a20 = 0; + a3 = 1; + a1 = 12; + a28 = 1; + }else{ + a9 = 10; + a19 = 2; + a27 = 0; + a0 = 0; + a5 = 4; + a16 = 7; + a21 = 10; + a6 = 1; + } + return 21; + } else if(((!(a8==1)&&(((a19==5)&&((a12==1)&&((a17==2)&&((a2==1)&&(((((a5==5)||(a5==6))&&(input==1))&&(a23==1))&&!(a20==1))))))&&(a16==10)))&&(!(a18==1)&&((a9==7)&&(!(a7==1)&&(((a12==1)&&(a21==10))&&(a1==14))))))){ + if((a23==1)){ + a0 = 1; + a25 = 1; + a16 = 7; + a19 = 1; + a5 = 6; + a20 = 1; + a27 = 1; + }else{ + a5 = 6; + a20 = 1; + a16 = 7; + a15 = 1; + a29 = 0; + a19 = 1; + a22 = 1; + } + return -1; + } else if((((a1==12)&&((!(a0==1)&&(((input==6)&&(((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))))&&(a3==1)))&&(a12==1)))&&((((a21==12)&&((((a11==1)&&((a0==1)||((a24==1)||(a2==1))))&&(a17==2))&&(a19==4)))&&!(a20==1))&&(a16==9)))){ + if((a21==12)){ + a5 = 5; + a9 = 8; + a0 = 1; + a12 = 0; + a20 = 1; + a16 = 7; + a19 = 2; + a21 = 10; + a29 = 1; + }else{ + a19 = 5; + a10 = 1; + a1 = 14; + a6 = 0; + a21 = 10; + a5 = 4; + a16 = 8; + a9 = 8; + a24 = 1; + } + return -1; + } else if((((a21==12)&&((!(a4==1)&&(!(a4==1)&&(!(a18==1)&&((((a19==5)&&((a1==13)&&((input==6)&&!(a20==1))))&&!(a4==1))&&(a16==10)))))&&(a17==2)))&&(((((a28==1)||(a8==1))&&(a5==6))&&(a9==9))&&(a12==1)))){ + a9 = 7; + a21 = 10; + a16 = 11; + a25 = 0; + a1 = 12; + a19 = 3; + a29 = 1; + a5 = 5; + a8 = 1; + return -1; + } else if(((((a16==8)&&((((a9==11)&&(!(a11==1)||((a1==12)&&(((a2==1)&&!(a20==1))&&(a21==10)))))&&(a17==2))&&(a23==1)))&&(a19==1))&&(!(a24==1)&&(((a3==1)&&((a6==1)&&((input==6)&&((a5==5)||(a5==6)))))&&!(a0==1))))){ + a4 = 0; + a14 = 0; + a3 = 1; + a20 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + return -1; + } else if((((((a5==6)&&(((input==6)&&(a1==14))&&!(a7==1)))&&(a19==2))&&(a9==7))&&((((a2==1)&&((!(a27==1)&&((a16==8)&&(!(a11==1)||(((a11==1)||(a7==1))&&(a13==1)))))&&(a17==2)))&&(a21==12))&&!(a20==1)))){ + a25 = 0; + a9 = 11; + a21 = 11; + a28 = 0; + a5 = 4; + a20 = 1; + a16 = 7; + a29 = 0; + return -1; + } else if((((a20==1)&&((!(a14==1)&&((((((a12==1)&&(a1==13))||(a26==1))&&!(a18==1))&&(a17==2))&&(a9==9)))||(a8==1)))&&(((a19==1)&&((!(a14==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a21==12)))&&!(a18==1)))&&(a16==8)))){ + a16 = 10; + a5 = 4; + a19 = 5; + a28 = 1; + a9 = 10; + a13 = 1; + a1 = 12; + a21 = 11; + a2 = 1; + return 25; + } else if(((!(a26==1)&&((a19==4)&&(!(a14==1)&&(!(a14==1)&&(((a6==1)&&((a1==13)&&(((a5==4)||(a5==5))&&(input==5))))&&(a16==11))))))&&((a24==1)||((!(a20==1)&&((a9==9)&&(((a17==2)&&(a6==1))&&(a12==1))))&&(a21==10))))){ + a26 = 1; + a15 = 1; + a20 = 1; + a9 = 7; + a1 = 14; + a5 = 4; + a16 = 7; + a11 = 0; + a19 = 1; + return -1; + } else if((((a1==12)&&(!(a6==1)||((((a0==1)||((a17==2)&&(a6==1)))&&(a16==9))&&(a21==11))))&&(((a2==1)&&(!(a26==1)&&((a11==1)&&((a9==7)&&(((((a5==5)||(a5==6))&&(input==3))&&!(a20==1))&&!(a4==1))))))&&(a19==3)))){ + a19 = 1; + a5 = 4; + a20 = 1; + a15 = 0; + a21 = 10; + a16 = 7; + a13 = 0; + a10 = 0; + return -1; + } else if(((!(a14==1)&&((a16==7)&&(((a17==2)&&((a27==1)||(!(a3==1)||(!(a4==1)&&(a28==1)))))&&(a21==10))))&&(((a3==1)&&((a20==1)&&((a19==4)&&(((((a5==5)&&(a1==13))&&(a9==7))||((((a5==6)&&(a1==12))&&(a9==11))||(((a5==4)&&(a1==13))&&(a9==7))))&&(input==1)))))&&(a2==1)))){ + a1 = 12; + a19 = 1; + a27 = 0; + a0 = 0; + a5 = 4; + a18 = 0; + a9 = 7; + return -1; + } else if(((((!(a2==1)&&(!(a11==1)&&(((a14==1)&&(((a8==1)&&((a19==3)&&(a13==1)))&&(a1==13)))&&(a9==10))))&&(a21==12))&&(a16==7))&&((a17==2)&&((((a24==1)&&((input==4)&&(a20==1)))&&(a27==1))&&(a5==5))))){ + a26 = 1; + a1 = 12; + a21 = 10; + a14 = 1; + a9 = 11; + a19 = 1; + a10 = 1; + a5 = 6; + return -1; + } else if((((((a13==1)&&(((a16==7)&&(((a9==8)&&((a21==12)&&((a1==13)&&(a23==1))))&&(a2==1)))&&!(a20==1)))&&!(a7==1))||(a26==1))&&((((a17==2)&&((a19==1)&&(((a5==4)||(a5==5))&&(input==3))))&&(a6==1))&&(a3==1)))){ + a21 = 10; + a9 = 7; + a5 = 4; + a18 = 0; + a20 = 1; + a1 = 12; + a12 = 1; + a0 = 0; + return -1; + } else if((((a1==12)&&(!(a20==1)&&(((((a19==1)&&((a9==7)&&((a5==4)&&(input==5))))&&(a16==10))&&!(a14==1))&&(a12==1))))&&(((a7==1)||(((!(a24==1)&&((a6==1)&&(a17==2)))||!(a13==1))&&!(a0==1)))&&(a21==12)))){ + a21 = 10; + a9 = 10; + a20 = 1; + a14 = 1; + a26 = 1; + a5 = 5; + a16 = 7; + a25 = 1; + a19 = 2; + return 21; + } else if((((a19==4)&&((a1==12)&&(!(a24==1)&&(((!(a13==1)||((a17==2)&&((a2==1)&&(a16==9))))||(a7==1))&&(a20==1)))))&&(!(a24==1)&&(((a6==1)&&(!(a8==1)&&((a9==10)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6))))))&&(a21==10))))){ + a16 = 7; + a5 = 4; + a19 = 1; + a3 = 1; + a27 = 0; + a9 = 7; + a8 = 0; + return -1; + } else if((((a5==4)&&((a1==13)&&((a20==1)&&(!(a26==1)&&(((a19==5)&&(input==1))&&(a13==1))))))&&((a9==9)&&(((a16==9)&&((a11==1)&&((a7==1)||(((a17==2)&&((a2==1)&&!(a27==1)))&&(a2==1)))))&&(a21==10))))){ + a9 = 8; + a18 = 0; + a14 = 0; + a19 = 1; + a5 = 6; + a12 = 1; + return -1; + } else if(((((((((a16==10)&&((a21==12)&&((input==5)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11))))))&&!(a18==1))&&(a3==1))&&(a23==1))&&(a17==2))&&!(a27==1))&&((((a19==4)&&(((a3==1)||(a4==1))&&(a1==14)))&&(a2==1))&&(a20==1)))){ + a18 = 0; + a16 = 7; + a2 = 1; + a21 = 10; + a19 = 2; + a9 = 11; + a5 = 4; + a28 = 1; + return 21; + } else if(((!(a26==1)&&((a11==1)&&((a11==1)&&(a1==14))))&&((a23==1)&&((a6==1)&&((((a9==7)&&(!(a4==1)&&(((((a20==1)&&((a19==4)&&(input==3)))&&(a17==2))&&(a5==5))&&(a16==7))))&&(a21==12))&&!(a4==1)))))){ + a21 = 10; + a18 = 0; + a5 = 4; + a19 = 1; + a26 = 0; + a1 = 12; + a23 = 1; + return -1; + } else if(((((a20==1)&&(!(a4==1)&&(((a16==10)&&(((a19==5)&&((((a9==7)&&((a5==4)&&(a1==14)))||((((a1==13)&&(a5==5))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==13)))))&&(input==1)))&&(a21==11)))&&(a17==2))))&&(a3==1))&&(((((a11==1)&&!(a8==1))&&!(a8==1))||!(a13==1))&&(a23==1)))){ + a12 = 1; + a1 = 13; + a14 = 0; + a27 = 0; + a9 = 10; + a5 = 5; + a21 = 10; + a19 = 4; + a16 = 7; + return 25; + } else if((((a9==11)&&((a17==2)&&((a16==10)&&((a19==3)&&(((a13==1)&&(a21==10))||!(a11==1))))))&&(!(a18==1)&&((a12==1)&&(!(a18==1)&&(((a1==13)&&(((a20==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4)))&&!(a0==1)))&&(a6==1))))))){ + a1 = 14; + a16 = 8; + a9 = 8; + a5 = 6; + a7 = 0; + a19 = 5; + a21 = 12; + a27 = 0; + a0 = 0; + return -1; + } else if(((((!(a20==1)&&((!(a14==1)&&((input==3)&&(a5==4)))&&(a21==12)))&&!(a8==1))&&!(a8==1))&&((a19==3)&&(((a16==7)&&((a13==1)&&((a17==2)&&((a1==13)&&(!(a26==1)&&(!(a13==1)||(a3==1)))))))&&(a9==11))))){ + a9 = 9; + a20 = 1; + a19 = 2; + a11 = 1; + a5 = 5; + a14 = 0; + a8 = 0; + a21 = 10; + return -1; + } else if((((a1==14)&&(!(a8==1)&&((a6==1)&&((((a9==8)&&((a19==3)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&!(a0==1))))&&!(a8==1))&&(a23==1)))))&&(!(a20==1)&&((((a16==7)&&(!(a13==1)||(a12==1)))&&(a21==11))&&(a17==2))))){ + a21 = 10; + a8 = 0; + a1 = 13; + a20 = 1; + a7 = 0; + a9 = 9; + a19 = 2; + a5 = 4; + a4 = 0; + return 25; + } else if((((a1==14)&&((((((a6==1)&&(((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4)))&&(input==1)))&&!(a4==1))&&(a11==1))&&(a16==7))&&(a28==1)))&&((a19==1)&&((!(a7==1)&&((a23==1)&&(((a13==1)&&(a17==2))&&!(a20==1))))&&(a21==11))))){ + a23 = 1; + a7 = 0; + a12 = 1; + a9 = 10; + a19 = 2; + a20 = 1; + a5 = 6; + a21 = 10; + return 21; + } else if((((a17==2)&&(!(a13==1)||((a2==1)&&!(a20==1))))&&(((a21==11)&&(!(a0==1)&&((a19==1)&&(!(a18==1)&&(!(a7==1)&&((a2==1)&&((a16==7)&&((((a9==11)&&((a1==12)&&(a5==6)))||((a9==7)&&((a1==13)&&(a5==4))))&&(input==3)))))))))&&(a2==1)))){ + a12 = 1; + a27 = 0; + a5 = 4; + a9 = 7; + a1 = 12; + a6 = 1; + a21 = 10; + a20 = 1; + return -1; + } else if((((a20==1)&&((a17==2)&&((!(a24==1)&&(((a21==12)&&((input==5)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))))&&(a12==1)))&&!(a24==1))))&&((((a1==13)&&(!(a2==1)||((a12==1)&&((a13==1)||!(a6==1)))))&&(a19==3))&&(a16==10)))){ + a21 = 10; + a7 = 0; + a19 = 5; + a5 = 4; + a23 = 1; + a20 = 0; + a1 = 12; + a9 = 11; + a26 = 0; + a16 = 8; + return 21; + } else if((((!(a11==1)&&(((((a5==6)&&((a17==2)&&((a4==1)&&(a12==1))))&&(a1==14))&&(a16==7))&&!(a23==1)))&&!(a23==1))&&(!(a20==1)&&((a24==1)&&((a21==12)&&((a9==8)&&((a8==1)&&((input==3)&&(a19==5))))))))){ + a19 = 2; + a20 = 1; + a1 = 12; + a6 = 0; + a9 = 7; + a5 = 5; + a21 = 10; + a3 = 0; + a25 = 1; + return -1; + } else if((((!(a13==1)||((a17==2)&&((((a28==1)&&!(a20==1))&&(a21==11))&&(a16==8))))||!(a11==1))&&((((!(a0==1)&&((input==6)&&(((a19==3)&&((a9==11)&&((a1==14)&&(a5==6))))||((a19==4)&&(((a1==12)&&(a5==4))&&(a9==7))))))&&!(a26==1))&&(a2==1))&&(a13==1)))){ + a21 = 10; + a20 = 1; + a3 = 1; + a1 = 12; + a14 = 0; + a28 = 1; + a9 = 7; + a19 = 1; + a16 = 7; + a5 = 4; + return -1; + } else if((((((a27==1)||((a19==5)&&((!(a20==1)&&((a9==8)&&(a2==1)))&&(a17==2))))||(a24==1))||!(a2==1))&&((a12==1)&&((((((a16==8)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6))))&&(a21==12))&&(a3==1))&&(a2==1))&&(a1==14))))){ + a5 = 4; + a28 = 0; + a19 = 1; + a20 = 1; + a24 = 1; + a16 = 7; + a11 = 0; + a1 = 12; + a9 = 9; + a21 = 10; + return 23; + } else if(((!(a18==1)&&(((a11==1)&&(((a28==1)||(a26==1))&&(a1==12)))||!(a2==1)))&&((((a5==4)&&((a21==11)&&((((a16==11)&&(((input==3)&&(a19==1))&&(a9==11)))&&(a17==2))&&(a12==1))))&&(a20==1))&&(a28==1)))){ + a9 = 7; + a24 = 0; + a16 = 7; + a21 = 10; + a7 = 0; + return -1; + } else if(((((((((a13==1)&&((((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&(a28==1))&&(a17==2)))&&(a20==1))&&(a19==3))&&(a1==13))&&(a21==10))&&(a16==11))&&((((a6==1)&&((a14==1)||((a9==10)&&(a6==1))))&&!(a26==1))&&!(a27==1)))){ + a26 = 0; + a16 = 7; + a9 = 7; + a12 = 1; + a5 = 4; + a19 = 1; + a1 = 12; + a8 = 0; + return -1; + } else if(((((!(a4==1)&&(!(a26==1)&&(((a19==5)&&((a5==6)&&(input==4)))&&(a23==1))))&&(a13==1))&&(a21==11))&&((a16==8)&&((a9==11)&&((((!(a7==1)&&(!(a12==1)||(a23==1)))&&(a17==2))&&(a1==14))&&(a20==1)))))){ + a21 = 10; + a2 = 1; + a5 = 4; + a19 = 1; + a12 = 1; + a1 = 12; + a11 = 1; + a9 = 7; + a16 = 7; + return -1; + } else if((((!(a28==1)||(((((a1==14)&&(!(a7==1)&&((a26==1)||(a11==1))))&&(a12==1))&&(a17==2))||(a24==1)))&&(a21==10))&&((a19==2)&&(((((a6==1)&&(((a5==4)||(a5==5))&&(input==3)))&&(a16==9))&&!(a20==1))&&(a9==7))))){ + a16 = 7; + a19 = 1; + a5 = 5; + a15 = 0; + a20 = 1; + a6 = 0; + a10 = 0; + a1 = 12; + return -1; + } else if((((!(a6==1)||(((a3==1)&&((a16==7)&&(a2==1)))&&!(a26==1)))&&(a20==1))&&((a17==2)&&(((((((((a9==7)&&((a1==14)&&(a5==5)))||(((a9==11)&&((a1==13)&&(a5==6)))||((a9==7)&&((a1==14)&&(a5==4)))))&&(input==3))&&(a12==1))&&!(a8==1))&&(a21==12))&&!(a24==1))&&(a19==2))))){ + a26 = 0; + a28 = 1; + a5 = 4; + a21 = 10; + a19 = 1; + a1 = 12; + a9 = 7; + a24 = 0; + return -1; + } else if((((a11==1)&&(((a5==6)&&(((a9==11)&&((a21==11)&&(a2==1)))&&!(a24==1)))&&(a16==9)))&&(!(a14==1)&&((a17==2)&&(!(a8==1)&&(((a1==12)&&(((!(a20==1)&&(input==6))&&(a3==1))&&(a6==1)))&&(a19==1))))))){ + a20 = 1; + a29 = 0; + a21 = 10; + a1 = 14; + a16 = 7; + a10 = 0; + a27 = 1; + return 25; + } else if((((a5==6)&&((!(a12==1)&&((a19==2)&&(!(a20==1)&&((!(a11==1)&&(!(a2==1)&&((a21==11)&&(input==6))))&&(a17==2)))))&&(a9==9)))&&((a1==12)&&((a7==1)&&((a4==1)&&((a0==1)&&((a16==8)&&(a6==1)))))))){ + a14 = 1; + a20 = 1; + a11 = 0; + a21 = 10; + a3 = 0; + a1 = 13; + a19 = 4; + a16 = 10; + return -1; + } else if(((((a17==2)&&((!(a0==1)&&(((input==4)&&((a5==5)||(a5==6)))&&(a2==1)))&&(a13==1)))&&(a9==11))&&((a28==1)&&((a21==10)&&((a20==1)&&((!(a28==1)||((((a3==1)||(a4==1))&&(a16==9))&&(a1==13)))&&(a19==5))))))){ + a16 = 7; + a19 = 1; + a14 = 0; + a9 = 7; + a1 = 12; + a5 = 4; + a3 = 1; + a27 = 0; + return -1; + } else if(((((a21==10)&&(((((!(a12==1)||(a3==1))&&(a20==1))&&(a5==6))||(a24==1))&&(a17==2)))||(a0==1))&&(!(a14==1)&&((a1==13)&&(!(a8==1)&&(((((input==4)&&(a16==9))&&(a9==8))&&(a19==5))&&!(a8==1))))))){ + a19 = 1; + a5 = 4; + a9 = 7; + a1 = 12; + a26 = 0; + a2 = 1; + a13 = 1; + a16 = 7; + return -1; + } else if(((((a9==10)&&((a1==14)&&(((((a13==1)||(a18==1))&&!(a8==1))||!(a13==1))||(a18==1))))&&(a19==2))&&(((a21==10)&&((a17==2)&&(((a11==1)&&(((input==1)&&((a5==4)||(a5==5)))&&(a12==1)))&&(a20==1))))&&(a16==10)))){ + a5 = 4; + a19 = 5; + a16 = 11; + a9 = 7; + a24 = 0; + a12 = 1; + a0 = 0; + return 25; + } else if(((((a11==1)&&((a17==2)&&((a21==10)&&((a20==1)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==3))))))&&(a19==3))&&((a26==1)||((((a16==11)&&((a23==1)&&(!(a11==1)||((a12==1)&&!(a7==1)))))&&(a1==13))&&(a23==1))))){ + a5 = 4; + a9 = 7; + a19 = 1; + a1 = 12; + a12 = 1; + a16 = 7; + a18 = 0; + return -1; + } else if((((a21==12)&&((((a16==10)&&(!(a14==1)&&(((!(a8==1)&&((a17==2)&&(!(a27==1)&&((a9==11)&&((a5==5)&&(input==4))))))&&(a19==4))&&!(a27==1))))&&(a12==1))&&!(a20==1)))&&(((a23==1)&&(a1==12))||!(a28==1)))){ + if((a18==1)){ + a11 = 0; + a20 = 1; + a9 = 7; + a21 = 11; + a19 = 2; + a7 = 1; + a12 = 0; + a1 = 13; + a16 = 8; + a5 = 4; + }else{ + a7 = 1; + a19 = 2; + a21 = 10; + a9 = 9; + a24 = 1; + a0 = 1; + a16 = 7; + a20 = 1; + } + return -1; + } else if((((a28==1)&&((!(a11==1)||(((a19==4)&&(a13==1))&&(a1==12)))&&(a2==1)))&&(!(a18==1)&&((a23==1)&&((a9==9)&&((a5==5)&&((((a21==11)&&((a17==2)&&((input==5)&&(a20==1))))&&(a16==7))&&(a11==1)))))))){ + a9 = 7; + a21 = 10; + a3 = 1; + a28 = 1; + a19 = 1; + a5 = 4; + return -1; + } else if(((((((a21==12)&&(((a7==1)||(((a1==12)&&((a19==1)&&((a11==1)&&!(a8==1))))&&(a16==8)))&&(a17==2)))&&!(a20==1))&&!(a27==1))||!(a12==1))&&(!(a7==1)&&((a9==10)&&(!(a7==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4))))))){ + a16 = 11; + a3 = 0; + a19 = 4; + a7 = 1; + a9 = 9; + a5 = 4; + a21 = 10; + a28 = 0; + a20 = 1; + return -1; + } else if((((((((((a17==2)&&((input==6)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))))&&(a28==1))&&(a2==1))&&!(a26==1))&&(a11==1))&&(a20==1))&&(a21==11))&&((((((a11==1)&&!(a24==1))&&(a19==5))&&!(a26==1))&&(a1==12))&&(a16==7)))){ + a9 = 8; + a19 = 1; + a21 = 12; + a14 = 0; + a16 = 8; + a5 = 5; + a1 = 13; + a11 = 1; + a13 = 1; + return 21; + } else if((((a21==12)&&(((a11==1)&&!(a26==1))&&(a16==8)))&&((((!(a18==1)&&((!(a7==1)&&(((a17==2)&&((a5==5)&&((a19==5)&&((a9==8)&&(input==6)))))&&(a1==12)))&&(a20==1)))&&!(a18==1))&&(a23==1))&&(a2==1)))){ + a16 = 7; + a21 = 10; + a3 = 1; + a11 = 1; + a19 = 1; + a28 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if((((a17==2)&&(!(a2==1)||(!(a4==1)&&(((a7==1)||(a3==1))&&(a21==11)))))&&(!(a4==1)&&((a16==10)&&(((a20==1)&&(((input==3)&&(((((a1==12)&&(a5==5))&&(a9==7))&&(a19==2))||(((((a1==14)&&(a5==6))&&(a9==11))&&(a19==1))||((((a5==4)&&(a1==12))&&(a9==7))&&(a19==2)))))&&(a6==1)))&&!(a0==1)))))){ + a21 = 10; + a1 = 12; + a9 = 7; + a28 = 1; + a5 = 4; + a16 = 7; + a3 = 1; + a19 = 1; + return -1; + } else if((((((a16==8)&&((((a3==1)&&((((a17==2)&&(a3==1))&&(a9==9))&&(a20==1)))||(a27==1))&&(a3==1)))&&(a19==3))&&(a1==13))&&((a5==6)&&((a13==1)&&(!(a0==1)&&(((input==6)&&(a21==11))&&!(a7==1))))))){ + a8 = 0; + a19 = 1; + a9 = 7; + a1 = 12; + a23 = 1; + a21 = 10; + a4 = 0; + a5 = 4; + a16 = 7; + return -1; + } else if((((((a9==11)&&((a5==6)&&(a1==13)))||((a9==7)&&((a5==4)&&(a1==14))))&&(input==6))&&((a16==8)&&(((a19==4)&&(((a21==12)&&((((((a23==1)&&(!(a20==1)&&(a12==1)))&&!(a8==1))&&!(a14==1))||(a27==1))&&!(a24==1)))&&(a17==2)))&&!(a18==1))))){ + a18 = 1; + a9 = 11; + a20 = 1; + a12 = 0; + a22 = 1; + a19 = 1; + a21 = 10; + a16 = 7; + a5 = 6; + a1 = 13; + return -1; + } else if(((((((a17==2)&&((a23==1)&&!(a6==1)))&&!(a20==1))&&(a0==1))&&(a1==12))&&((!(a13==1)&&((a9==8)&&((a27==1)&&(!(a11==1)&&((a19==5)&&(((((a5==5)||(a5==6))&&(input==4))&&(a16==7))&&!(a28==1)))))))&&(a21==11)))){ + a24 = 1; + a21 = 10; + a12 = 0; + a19 = 2; + a20 = 1; + a5 = 6; + a3 = 0; + a9 = 11; + return -1; + } else if((((a6==1)&&(((a9==9)&&(!(a0==1)&&(((a16==11)&&((input==3)&&((a5==4)||(a5==5))))&&(a1==13))))&&!(a7==1)))&&(((a17==2)&&(!(a14==1)&&(((a21==10)&&(((a2==1)&&(a19==3))&&(a11==1)))||(a24==1))))&&!(a20==1)))){ + a16 = 7; + a1 = 14; + a20 = 1; + a5 = 5; + a0 = 1; + a24 = 1; + a7 = 1; + a19 = 1; + return -1; + } else if((((a0==1)||(((((a17==2)&&((a20==1)&&((a5==6)&&((a13==1)&&!(a7==1)))))&&(a9==11))&&!(a27==1))&&!(a26==1)))&&(!(a14==1)&&(((a16==10)&&(((a19==4)&&((input==1)&&(a1==13)))&&(a21==11)))&&(a3==1))))){ + a6 = 1; + a2 = 1; + a5 = 4; + a16 = 7; + a27 = 0; + a1 = 12; + a21 = 10; + a9 = 7; + a19 = 1; + return -1; + } else if(((((a3==1)&&(((a20==1)&&((a21==11)&&((a16==7)&&((a28==1)||(a27==1)))))&&(a17==2)))&&(a19==3))&&(!(a4==1)&&((a23==1)&&(((a1==14)&&(((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==4))&&!(a7==1)))&&(a6==1)))))){ + a1 = 12; + a23 = 1; + a21 = 10; + a3 = 1; + a5 = 4; + a19 = 1; + a9 = 7; + return -1; + } else if((((!(a0==1)&&(((a19==1)&&(!(a24==1)&&((a1==12)&&((a20==1)&&(((a9==8)&&(((a5==5)||(a5==6))&&(input==1)))&&!(a18==1))))))&&!(a7==1)))&&(a16==8))&&((a17==2)&&((a21==11)&&((a12==1)&&((a11==1)||!(a23==1))))))){ + a16 = 7; + a7 = 0; + a23 = 1; + a13 = 1; + a5 = 4; + a21 = 10; + a9 = 7; + return -1; + } else if(((((a16==11)&&(((a28==1)&&((a3==1)&&(((((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7))))&&(input==1))&&(a17==2))))&&(a19==1)))&&(a1==12))&&((!(a7==1)&&((((a26==1)||((a21==11)&&(a28==1)))||!(a6==1))&&(a23==1)))&&(a20==1)))){ + a5 = 4; + a21 = 10; + a11 = 1; + a24 = 0; + a9 = 7; + a26 = 0; + a16 = 7; + return -1; + } else if((((a20==1)&&((a16==7)&&((a19==3)&&(((a6==1)&&((((a5==6)&&(((a6==1)||(a7==1))||!(a12==1)))&&(a11==1))&&(a9==10)))||(a0==1)))))&&((a1==12)&&((a21==12)&&((a11==1)&&((a17==2)&&(input==1))))))){ + a12 = 1; + a16 = 9; + a1 = 14; + a21 = 10; + a19 = 4; + a4 = 0; + a28 = 1; + return 22; + } else if(((((a17==2)&&((!(a27==1)&&((input==5)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))&&(a1==12)))&&(a20==1))&&(((((a19==2)&&(((a21==12)&&(((a11==1)&&!(a18==1))||(a7==1)))&&!(a8==1)))&&(a16==9))||(a14==1))||(a7==1)))){ + a5 = 5; + a12 = 1; + a13 = 1; + a9 = 7; + return 21; + } else if((((a1==13)&&(((!(a14==1)&&(!(a24==1)&&((a17==2)&&(input==3))))&&(a11==1))&&(a16==8)))&&((((a19==3)&&(((a5==5)&&((!(a3==1)||((a28==1)&&(a11==1)))&&(a21==12)))&&(a9==9)))&&!(a20==1))||!(a11==1)))){ + if((a28==1)){ + a19 = 1; + a18 = 1; + a20 = 1; + a2 = 0; + a10 = 1; + a16 = 7; + a9 = 11; + a21 = 10; + a5 = 4; + }else{ + a21 = 10; + a19 = 2; + a27 = 1; + a20 = 1; + a25 = 1; + a9 = 10; + a5 = 4; + a1 = 12; + a16 = 7; + a15 = 0; + } + return -1; + } else if((((((((a28==1)&&((a1==14)&&(input==3)))&&!(a4==1))&&!(a24==1))&&(a11==1))&&(a5==6))&&((!(a20==1)&&(((a16==9)&&((((a9==8)&&((a23==1)&&(a17==2)))||!(a3==1))&&(a19==3)))||(a4==1)))&&(a21==11)))){ + a16 = 7; + a25 = 0; + a20 = 1; + a19 = 2; + a4 = 1; + a26 = 1; + a1 = 12; + a9 = 7; + a21 = 10; + return -1; + } else if(((((a16==9)&&((a9==11)&&((a2==1)&&((a3==1)&&((((a5==5)||(a5==6))&&(input==5))&&!(a18==1))))))&&(a23==1))&&((((a12==1)&&(((a14==1)||(((a28==1)&&(a17==2))&&(a19==5)))&&(a21==11)))&&(a20==1))&&(a1==12)))){ + a20 = 0; + a9 = 8; + a28 = 1; + a16 = 8; + a19 = 4; + a0 = 0; + a12 = 1; + a5 = 5; + return 21; + } else if(((((((a1==12)&&((a17==2)&&(input==3)))&&!(a20==1))&&!(a27==1))&&!(a18==1))&&(!(a26==1)&&((((!(a7==1)&&(((((a3==1)&&(a28==1))&&(a5==6))||(a14==1))&&(a16==9)))&&(a21==10))&&(a9==10))&&(a19==4))))){ + a13 = 0; + a27 = 1; + a20 = 1; + a5 = 4; + a1 = 14; + a0 = 1; + a9 = 9; + a21 = 11; + a16 = 11; + return -1; + } else if(((!(a12==1)&&(((a20==1)&&((a18==1)&&(!(a2==1)&&((((a1==13)&&((a21==10)&&(input==1)))&&!(a12==1))&&(a5==6)))))&&(a14==1)))&&(((a9==10)&&((a17==2)&&((a19==2)&&((a16==7)&&(a3==1)))))&&(a26==1)))){ + a9 = 7; + a14 = 1; + a18 = 1; + a12 = 0; + a19 = 1; + return 25; + } else if((((a3==1)&&((a13==1)&&((((((a9==11)&&((a1==12)&&(a5==6)))||(((a5==4)&&(a1==13))&&(a9==7)))||((a9==7)&&((a5==5)&&(a1==13))))&&(input==4))&&(a20==1))))&&(((((a16==9)&&(((((a28==1)&&(a3==1))&&(a19==3))&&!(a14==1))&&(a21==10)))&&(a17==2))||!(a13==1))||!(a12==1)))){ + a5 = 4; + a16 = 7; + a1 = 12; + a13 = 1; + a19 = 1; + a7 = 0; + a9 = 7; + a12 = 1; + return -1; + } else if(((((a9==10)&&((!(a20==1)&&(!(a6==1)||(!(a7==1)&&((a14==1)||((a21==10)&&(a3==1))))))&&(a16==9)))&&(a19==3))&&((((a5==6)&&(((a11==1)&&((input==1)&&(a1==14)))&&!(a4==1)))&&(a6==1))&&(a17==2)))){ + a25 = 1; + a20 = 1; + a19 = 2; + a27 = 1; + a16 = 11; + a21 = 11; + a1 = 13; + a9 = 11; + return 21; + } else if((((a19==4)&&(!(a6==1)||(((a17==2)&&(((a12==1)&&(a2==1))&&(a21==12)))&&(a12==1))))&&((!(a7==1)&&((a16==8)&&(((a1==13)&&((a9==7)&&((!(a20==1)&&(input==1))&&!(a0==1))))&&(a11==1))))&&(a5==4)))){ + if((a4==1)){ + a6 = 0; + a22 = 0; + a9 = 11; + a4 = 1; + a1 = 12; + a19 = 1; + a20 = 1; + a21 = 10; + }else{ + a19 = 3; + a9 = 10; + a5 = 6; + a25 = 1; + a16 = 11; + a1 = 14; + a14 = 1; + a20 = 1; + } + return -1; + } else if((((a21==12)&&((((a28==1)&&((input==3)&&(((a9==11)&&((a1==12)&&(a5==6)))||((a9==7)&&((a5==4)&&(a1==13))))))&&(a19==2))&&(a17==2)))&&((!(a23==1)||((((a16==7)&&(((a23==1)&&(a23==1))&&(a11==1)))&&(a3==1))&&!(a20==1)))||(a14==1)))){ + a19 = 1; + a4 = 0; + a18 = 0; + a1 = 12; + a5 = 4; + a21 = 10; + a9 = 7; + a0 = 0; + a20 = 1; + return -1; + } else if(((((a1==13)&&(((a16==7)&&((((a17==2)&&((((input==3)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(a2==1))&&(a21==10)))&&(a28==1))&&(a12==1)))&&!(a0==1)))&&(a20==1))&&((((a19==3)&&(a12==1))||(a0==1))||!(a28==1)))){ + a1 = 12; + a23 = 1; + a5 = 4; + a9 = 7; + a19 = 1; + a26 = 0; + a28 = 1; + return -1; + } else if(((((a17==2)&&((a9==9)&&(!(a27==1)&&((a19==2)&&(((!(a14==1)&&(!(a18==1)&&((a2==1)&&((a1==12)&&(input==5)))))&&(a12==1))&&(a16==10))))))&&(a21==12))&&((a12==1)&&((a20==1)&&((a6==1)&&(a5==4)))))){ + a11 = 1; + a1 = 13; + a7 = 0; + a16 = 7; + a21 = 10; + a12 = 1; + a5 = 5; + return 25; + } else if(((!(a14==1)&&(((a19==4)&&(!(a8==1)&&((a3==1)&&((a16==9)&&((((((((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(input==6))&&(a17==2))&&!(a8==1))&&(a21==12))&&!(a20==1))))))&&(a23==1)))&&(((a1==12)&&(a2==1))&&!(a7==1)))){ + a15 = 0; + a19 = 1; + a8 = 1; + a20 = 1; + a21 = 10; + a16 = 7; + a9 = 11; + a29 = 0; + a5 = 4; + return 25; + } else if((((((a28==1)&&((a13==1)&&((((a5==5)||(a5==6))&&(input==6))&&(a20==1))))&&!(a24==1))&&!(a18==1))&&((a18==1)||((a12==1)&&((a9==7)&&((a19==1)&&(((((a13==1)&&(a21==12))&&(a17==2))&&(a16==11))&&(a1==14)))))))){ + a23 = 1; + a21 = 10; + a5 = 4; + a16 = 7; + a14 = 0; + a1 = 12; + a11 = 1; + return -1; + } else if(((((a20==1)&&(((((a28==1)&&((a3==1)||(a26==1)))||!(a6==1))||!(a3==1))||!(a13==1)))&&(a1==13))&&((((a19==5)&&((a13==1)&&((a21==11)&&((((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(input==4)))))&&(a17==2))&&(a16==11)))){ + a21 = 10; + a19 = 1; + a16 = 7; + a12 = 1; + a8 = 0; + a24 = 0; + a5 = 4; + a1 = 12; + a9 = 7; + return -1; + } else if((((a11==1)&&(((a19==1)&&(!(a20==1)&&((((a6==1)&&((a17==2)&&(input==3)))&&(a2==1))&&!(a26==1))))&&(a1==13)))&&(((a5==4)&&((a16==8)&&(((a21==11)&&(!(a3==1)||(a28==1)))||(a26==1))))&&(a9==10)))){ + a1 = 14; + a20 = 1; + a5 = 6; + a19 = 5; + a9 = 8; + a18 = 0; + a21 = 12; + a2 = 1; + return 22; + } else if(((((((((!(a8==1)&&(a6==1))&&(a12==1))||!(a3==1))&&(a9==10))&&(a21==10))&&(a1==13))&&(a16==11))&&(((a20==1)&&((!(a4==1)&&(((a17==2)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a26==1)))&&(a3==1)))&&(a19==3)))){ + a16 = 9; + a5 = 4; + a21 = 12; + a0 = 0; + a11 = 1; + a9 = 9; + a1 = 12; + return 21; + } else if((((a1==13)&&(((!(a3==1)||((!(a2==1)||(((a12==1)&&(a17==2))&&(a20==1)))&&(a28==1)))&&(a12==1))&&(a21==10)))&&((a9==10)&&((a19==3)&&((!(a24==1)&&(((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&(a28==1)))&&(a16==10)))))){ + a19 = 1; + a9 = 9; + a16 = 9; + a11 = 1; + a5 = 5; + a1 = 12; + a21 = 11; + a26 = 0; + a6 = 1; + return -1; + } else if((((a13==1)&&((!(a27==1)&&((a9==10)&&((((a20==1)&&(a28==1))&&(a1==14))&&(a19==5))))&&(a21==10)))&&((a16==7)&&(!(a18==1)&&(!(a18==1)&&((((((a5==4)||(a5==5))&&(input==4))&&(a17==2))&&!(a26==1))&&!(a24==1))))))){ + a1 = 12; + a9 = 7; + a19 = 1; + a13 = 1; + a18 = 0; + a5 = 4; + a11 = 1; + return -1; + } else if(((!(a26==1)&&((a26==1)||(((a2==1)&&(a6==1))||(a26==1))))&&(((((a2==1)&&(((a17==2)&&((a19==2)&&(((a1==14)&&(((a5==4)||(a5==5))&&(input==6)))&&(a21==10))))&&(a16==9)))&&(a20==1))&&!(a27==1))&&(a9==9)))){ + a5 = 6; + a19 = 4; + a21 = 11; + a1 = 12; + a9 = 7; + a4 = 0; + a28 = 1; + return 21; + } else if((((!(a27==1)&&(!(a20==1)&&(((a2==1)&&((((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==1))&&(a21==11))&&(a16==7)))&&(a17==2))))&&(a13==1))&&(((a19==2)&&((((a18==1)||(a3==1))&&(a11==1))&&(a1==12)))||!(a12==1)))){ + a21 = 10; + a9 = 7; + a19 = 1; + a20 = 1; + a3 = 1; + a5 = 4; + a24 = 0; + a28 = 1; + return -1; + } else if(((!(a12==1)||((a1==13)&&(((a12==1)&&(a28==1))&&(a9==10))))&&(((a23==1)&&(!(a14==1)&&((a3==1)&&(((a17==2)&&(((((a5==4)&&(input==3))&&!(a20==1))&&(a16==9))&&(a21==11)))&&(a19==4)))))&&!(a7==1)))){ + if((a22==1)){ + a18 = 1; + a29 = 0; + a16 = 7; + a19 = 1; + a21 = 10; + a1 = 12; + a9 = 8; + a0 = 1; + a20 = 1; + }else{ + a21 = 10; + a22 = 1; + a20 = 1; + a1 = 12; + a3 = 0; + a9 = 7; + a5 = 5; + a26 = 1; + a19 = 5; + } + return 23; + } else if(((((a3==1)&&((a16==7)&&((a28==1)&&(((a21==11)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a17==2)))&&(a13==1)))))&&(a9==7))&&((!(a20==1)&&(((((a2==1)&&!(a27==1))&&!(a7==1))&&(a1==14))||!(a3==1)))&&(a19==3)))){ + a19 = 5; + a16 = 8; + a9 = 10; + a14 = 0; + a5 = 4; + a21 = 10; + a20 = 1; + a7 = 0; + a12 = 1; + a1 = 12; + return 25; + } else if((((!(a7==1)&&(!(a20==1)&&((a16==10)&&(((a21==12)&&((((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(input==1)))&&!(a4==1)))))&&!(a18==1))&&(((a2==1)&&(!(a7==1)&&((a1==12)&&((a19==4)&&((a28==1)&&(a17==2))))))&&!(a27==1)))){ + if((a5==6)){ + a16 = 7; + a11 = 0; + a29 = 0; + a19 = 5; + a5 = 4; + a9 = 10; + a1 = 13; + a7 = 1; + }else{ + a5 = 6; + a1 = 14; + a9 = 8; + a18 = 1; + a22 = 1; + a21 = 10; + a16 = 7; + a19 = 1; + a26 = 1; + a20 = 1; + } + return -1; + } else if(((!(a0==1)&&((((input==5)&&(((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))))&&(a19==3))&&!(a8==1)))&&(!(a27==1)&&((a23==1)&&(((((a28==1)&&((((a1==13)&&(a23==1))&&(a21==12))&&(a16==9)))&&(a17==2))&&!(a24==1))&&!(a20==1)))))){ + if((a27==1)){ + a14 = 1; + a16 = 7; + a19 = 1; + a9 = 7; + a5 = 4; + a20 = 1; + a2 = 0; + a21 = 10; + a3 = 0; + }else{ + a29 = 0; + a19 = 2; + a9 = 11; + a23 = 0; + a1 = 12; + a20 = 1; + a26 = 1; + a16 = 7; + a21 = 10; + a5 = 5; + } + return 23; + } else if((((a21==12)&&(((!(a2==1)||(((a11==1)||(a7==1))&&(a3==1)))||(a18==1))&&(a20==1)))&&((a1==13)&&((a9==9)&&(((a17==2)&&((a23==1)&&((a3==1)&&(((a5==5)&&(input==5))&&(a16==7)))))&&(a19==4)))))){ + a5 = 4; + a12 = 1; + a19 = 1; + a8 = 0; + a1 = 12; + a21 = 10; + a9 = 7; + a18 = 0; + return -1; + } else if((((((a21==11)&&(((a16==9)&&((input==6)&&(((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))))&&(a1==13)))&&!(a27==1))&&(a13==1))&&(((((((a19==5)&&((a17==2)&&(a23==1)))&&(a20==1))&&!(a26==1))&&!(a4==1))||(a7==1))&&!(a4==1)))){ + a20 = 0; + a28 = 1; + a0 = 0; + a5 = 5; + a16 = 8; + a8 = 0; + a9 = 8; + a19 = 4; + a1 = 12; + return 21; + } else if(((((((!(a14==1)&&(((a17==2)&&(a28==1))||(a4==1)))&&(a6==1))||!(a13==1))&&(a9==11))&&(a1==12))&&((a20==1)&&((a21==12)&&((a19==4)&&((a13==1)&&((a16==8)&&((((a5==5)||(a5==6))&&(input==1))&&(a11==1))))))))){ + a4 = 0; + a21 = 10; + a0 = 0; + a16 = 7; + a9 = 7; + a19 = 1; + a13 = 1; + a5 = 4; + return -1; + } else if((((((a16==9)&&((a20==1)&&((a12==1)&&(a19==1))))&&!(a0==1))&&(a21==10))&&((!(a8==1)&&((a1==14)&&((((((a2==1)&&((a17==2)&&(input==3)))&&(a3==1))&&!(a27==1))&&(a9==7))&&(a13==1))))&&(a5==6)))){ + a5 = 5; + a0 = 0; + a19 = 5; + a12 = 1; + a16 = 8; + a21 = 12; + a6 = 1; + return -1; + } else if((((((a27==1)||(((a23==1)&&!(a18==1))&&(a1==12)))||!(a13==1))&&(a19==5))&&(((a17==2)&&((!(a20==1)&&((a16==9)&&((a21==10)&&(!(a24==1)&&(((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))&&(input==4))))))&&!(a26==1)))&&(a6==1)))){ + if((a13==1)){ + a12 = 0; + a20 = 1; + a19 = 1; + a3 = 0; + a5 = 5; + a16 = 7; + a6 = 0; + a9 = 9; + }else{ + a5 = 5; + a20 = 1; + a4 = 1; + a16 = 7; + a9 = 11; + a19 = 1; + a27 = 1; + a22 = 1; + } + return 25; + } else if(((((a16==10)&&(((a12==1)&&((a11==1)&&(((input==3)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5))))&&(a6==1))))&&(a21==12)))&&!(a0==1))&&((a17==2)&&((((a20==1)&&(((a18==1)||(a2==1))&&(a1==13)))&&(a19==4))||!(a2==1))))){ + a16 = 7; + a4 = 0; + a6 = 1; + a5 = 4; + a19 = 1; + a1 = 12; + a7 = 0; + a21 = 10; + a9 = 7; + return -1; + } else if(((((a3==1)&&(a21==12))&&(a28==1))&&((!(a20==1)&&(((a17==2)&&((((a3==1)&&(((((input==5)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&!(a0==1))&&(a16==9))&&(a1==13)))&&(a6==1))&&!(a14==1)))&&!(a7==1)))&&(a19==4)))){ + a20 = 1; + a4 = 1; + a5 = 4; + a18 = 1; + a1 = 14; + a15 = 0; + a9 = 10; + a16 = 8; + a21 = 11; + return 21; + } else if(((!(a7==1)&&((a21==10)&&(!(a18==1)&&((((a19==4)&&((((((a5==4)||(a5==5))&&(input==1))&&(a17==2))&&!(a8==1))&&(a1==14)))&&(a12==1))&&(a23==1)))))&&(!(a27==1)&&(((a9==11)&&((a6==1)&&(a20==1)))&&(a16==11))))){ + if((a24==1)){ + a5 = 5; + a27 = 0; + a7 = 0; + a20 = 0; + a16 = 8; + a9 = 10; + a19 = 2; + }else{ + a7 = 0; + a24 = 0; + a19 = 2; + a16 = 7; + a26 = 0; + a5 = 4; + a1 = 13; + } + return -1; + } else if((((a21==12)&&((a16==7)&&((!(a14==1)&&(((a6==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))&&!(a18==1)))&&(a1==13))))&&((a17==2)&&((((a3==1)&&((((a13==1)&&(a11==1))&&(a20==1))&&(a3==1)))&&(a19==4))&&(a9==11))))){ + a9 = 7; + a5 = 5; + a2 = 1; + a13 = 1; + a21 = 11; + a1 = 12; + a28 = 1; + a16 = 9; + a19 = 3; + return 22; + } else if(((((a9==8)&&(((a5==6)&&((a28==1)&&((a3==1)||!(a28==1))))&&(a13==1)))&&(a20==1))&&((a17==2)&&((((a16==11)&&((!(a0==1)&&(((a19==3)&&(input==3))&&(a21==11)))&&!(a18==1)))&&(a3==1))&&(a1==14))))){ + a4 = 0; + a16 = 7; + a19 = 1; + a1 = 12; + a23 = 1; + a5 = 4; + a9 = 7; + a21 = 10; + return -1; + } else if(((!(a20==1)&&(((((a19==2)&&(((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))&&(input==3)))&&(a28==1))&&(a17==2))&&(a2==1)))&&(!(a3==1)||((a6==1)&&((a16==8)&&((a21==12)&&((a1==13)&&(((a28==1)||(a27==1))||!(a6==1))))))))){ + a19 = 4; + a1 = 14; + a9 = 8; + a23 = 0; + a10 = 1; + a5 = 5; + a13 = 0; + a21 = 11; + return 26; + } else if(((!(a20==1)&&((!(a8==1)&&((((a3==1)&&(a9==10))&&(a21==12))||!(a28==1)))&&(a2==1)))&&((a19==3)&&((((((((input==6)&&((a5==4)||(a5==5)))&&!(a0==1))&&(a16==10))&&!(a8==1))&&(a2==1))&&(a17==2))&&(a1==12))))){ + a5 = 5; + a9 = 9; + a20 = 1; + a16 = 9; + a25 = 0; + a1 = 13; + a28 = 0; + a12 = 0; + a21 = 11; + return 25; + } else if((((!(a20==1)&&((!(a26==1)&&((a1==14)&&((a2==1)&&(a2==1))))&&(a17==2)))&&(a21==12))&&((a19==1)&&(!(a7==1)&&(!(a27==1)&&(((a12==1)&&(!(a27==1)&&((input==1)&&(((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))))))&&(a16==9))))))){ + a20 = 1; + a5 = 4; + a6 = 0; + a8 = 1; + a10 = 1; + a21 = 10; + a9 = 11; + a1 = 12; + a16 = 7; + return -1; + } else if(((!(a24==1)&&(((((a1==13)&&(!(a20==1)&&((a16==9)&&((((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&(input==1)))))&&!(a27==1))&&(a12==1))&&(a6==1)))&&((a19==1)&&(((((a21==11)&&(a28==1))||!(a23==1))&&(a17==2))||(a24==1))))){ + a18 = 1; + a9 = 8; + a16 = 7; + a12 = 0; + a5 = 5; + a20 = 1; + a21 = 10; + a4 = 1; + return -1; + } else if(((((a19==5)&&((a3==1)&&((a1==14)&&((!(a0==1)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==6)))&&!(a14==1)))))&&!(a20==1))&&((a17==2)&&((((((a16==10)&&(a11==1))||!(a28==1))&&!(a0==1))&&!(a4==1))&&(a21==11))))){ + a20 = 1; + a25 = 1; + a9 = 8; + a16 = 7; + a19 = 1; + a13 = 0; + a5 = 5; + a1 = 12; + a21 = 10; + return -1; + } else if(((!(a14==1)&&(((a26==1)||((a21==11)&&((a14==1)||((a28==1)&&(a19==3)))))&&(a16==7)))&&(((a28==1)&&((((a12==1)&&((input==1)&&(((((a1==12)&&(a5==5))&&(a9==11))||(((a1==12)&&(a5==6))&&(a9==11)))||(((a1==13)&&(a5==4))&&(a9==7)))))&&(a23==1))&&(a17==2)))&&(a20==1)))){ + a1 = 14; + a26 = 0; + a21 = 10; + a2 = 1; + a9 = 7; + a16 = 8; + a19 = 5; + a5 = 4; + a14 = 0; + return 26; + } else if((((!(a8==1)&&(((a12==1)&&!(a20==1))&&(a1==14)))&&(a9==7))&&(((a12==1)&&((a2==1)&&(((((a12==1)&&((a17==2)&&((a21==10)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))))&&(a19==3))&&(a23==1))&&!(a4==1))))&&(a16==11)))){ + a21 = 12; + a12 = 0; + a5 = 5; + a9 = 11; + a14 = 1; + a19 = 5; + a27 = 1; + a16 = 7; + a1 = 13; + return 21; + } else if((((((a20==1)&&((a21==12)&&((((a6==1)&&((a16==10)&&((a12==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))))&&(a19==4))&&(a1==12))))&&(a17==2))&&(a9==9))&&(((!(a28==1)||((a13==1)||(a7==1)))&&!(a24==1))&&(a6==1)))){ + a28 = 1; + a6 = 1; + a9 = 7; + a12 = 1; + a19 = 1; + a16 = 7; + a21 = 10; + a5 = 4; + return -1; + } else if((((a11==1)&&((a11==1)&&(((a28==1)&&((a21==10)&&(((((((a9==7)&&((a5==5)&&(a1==12)))&&(a19==2))||(((((a5==6)&&(a1==14))&&(a9==11))&&(a19==1))||((a19==2)&&(((a1==12)&&(a5==4))&&(a9==7)))))&&(input==4))&&!(a20==1))&&(a17==2))))&&(a16==9))))&&((((a27==1)||(a13==1))||!(a3==1))&&!(a24==1)))){ + a16 = 7; + a29 = 0; + a1 = 13; + a9 = 7; + a19 = 2; + a10 = 1; + a5 = 4; + a25 = 0; + a20 = 1; + return -1; + } else if(((!(a20==1)&&((a19==4)&&((((((a23==1)&&((!(a7==1)&&(a13==1))||!(a3==1)))||(a18==1))&&!(a7==1))&&(a17==2))&&(a21==12))))&&(((((((a5==6)&&(a1==13))&&(a9==11))||(((a5==4)&&(a1==14))&&(a9==7)))&&(input==5))&&(a3==1))&&(a16==8)))){ + if((a12==1)){ + a21 = 11; + a24 = 1; + a1 = 12; + a16 = 10; + a20 = 1; + a19 = 3; + a9 = 7; + a5 = 4; + a15 = 1; + a6 = 0; + }else{ + a9 = 7; + a5 = 6; + a16 = 7; + a19 = 1; + a15 = 0; + a1 = 12; + a26 = 1; + a7 = 1; + a21 = 10; + } + return 21; + } else if((((a3==1)&&((a28==1)&&((a9==7)&&((a20==1)&&((((a21==11)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a19==1)))&&(a2==1))&&(a16==10))))))&&(((a1==14)&&((a12==1)&&((a17==2)&&(!(a0==1)&&(a12==1)))))||!(a12==1)))){ + a5 = 5; + a1 = 13; + a16 = 7; + a7 = 0; + a26 = 0; + a4 = 0; + a19 = 4; + return 25; + } else if((((((a21==10)&&(!(a7==1)&&(((input==5)&&((a5==5)||(a5==6)))&&(a3==1))))&&!(a8==1))&&(a20==1))&&((a1==14)&&((a19==4)&&(((!(a4==1)&&(!(a4==1)&&((!(a0==1)&&(a28==1))&&(a16==10))))&&(a9==7))&&(a17==2)))))){ + a19 = 1; + a5 = 4; + a12 = 1; + a1 = 12; + a16 = 7; + a2 = 1; + a27 = 0; + return -1; + } else if(((((a28==1)&&(((a16==10)&&((((((a1==12)&&(a5==5))&&(a9==7))&&(a19==2))||(((((a5==6)&&(a1==14))&&(a9==11))&&(a19==1))||((a19==2)&&((a9==7)&&((a1==12)&&(a5==4))))))&&(input==3)))&&(a21==10)))&&(a2==1))&&(!(a13==1)||((a23==1)&&(!(a20==1)&&(((a3==1)&&((a17==2)&&(a3==1)))&&(a6==1))))))){ + a19 = 3; + a29 = 1; + a1 = 14; + a5 = 5; + a4 = 1; + a16 = 11; + a22 = 0; + a9 = 9; + a21 = 11; + a20 = 1; + return -1; + } else if(((((a19==2)&&((a18==1)&&((a17==2)&&((a27==1)&&(((a5==5)||(a5==6))&&(input==6))))))&&!(a13==1))&&(((a16==8)&&((((a26==1)&&(!(a20==1)&&(((a11==1)&&(a14==1))&&(a9==7))))&&(a1==13))&&(a7==1)))&&(a21==10)))){ + a20 = 1; + a16 = 9; + a5 = 6; + a0 = 1; + a1 = 12; + a24 = 1; + a14 = 1; + a21 = 12; + return -1; + } else if(((((((a3==1)&&(((a2==1)&&(((((input==1)&&((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8))))&&!(a18==1))&&(a17==2))&&(a1==14)))&&(a19==3)))&&(a21==12))&&!(a20==1))&&(a16==7))&&((a4==1)||(!(a11==1)||(!(a23==1)||(a6==1)))))){ + a19 = 1; + a21 = 10; + a20 = 1; + a9 = 7; + a18 = 0; + a16 = 10; + a5 = 4; + a7 = 0; + return 21; + } else if(((!(a27==1)&&((a5==5)&&((a1==13)&&((((((a7==1)||(a3==1))&&(a21==10))&&(a3==1))&&(a9==7))&&!(a7==1)))))&&((a16==10)&&((a20==1)&&((a19==1)&&(!(a27==1)&&(!(a14==1)&&((input==1)&&(a17==2))))))))){ + a14 = 0; + a8 = 0; + a26 = 0; + a1 = 12; + a16 = 7; + a5 = 4; + return -1; + } else if(((((a16==9)&&(!(a0==1)&&((a9==10)&&(((a5==4)||(a5==5))&&(input==1)))))&&(a19==3))&&(((((a21==12)&&(!(a28==1)||(((a18==1)||(((a23==1)||!(a11==1))&&(a6==1)))&&(a1==13))))&&(a17==2))&&!(a20==1))&&(a28==1)))){ + a21 = 10; + a20 = 1; + a1 = 12; + a9 = 8; + a25 = 1; + a12 = 0; + a5 = 4; + a16 = 7; + a10 = 0; + a19 = 1; + return -1; + } else if((((((!(a20==1)&&(!(a24==1)&&((input==1)&&(a9==9))))&&!(a8==1))&&(a1==12))&&(a17==2))&&(((((((a14==1)||(((a3==1)&&(a21==10))&&(a16==10)))&&(a28==1))&&(a6==1))&&(a11==1))&&(a5==6))&&(a19==4)))){ + if((a11==1)){ + a1 = 14; + a28 = 0; + a5 = 4; + a20 = 1; + a18 = 1; + a19 = 1; + a25 = 0; + a9 = 7; + a16 = 7; + }else{ + a24 = 1; + a20 = 1; + a19 = 1; + a15 = 1; + a9 = 7; + a16 = 7; + a5 = 5; + a23 = 0; + a1 = 14; + } + return -1; + } else if(((((((((a19==4)&&((((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))&&(input==3))&&(a23==1)))&&(a1==14))&&(a17==2))&&(a21==12))&&(a3==1))&&(a6==1))&&(((((a23==1)&&((a13==1)&&!(a20==1)))&&(a16==9))&&(a28==1))||!(a2==1)))){ + a21 = 10; + a19 = 2; + a10 = 1; + a0 = 1; + a16 = 7; + a9 = 11; + a1 = 12; + a25 = 0; + a20 = 1; + a5 = 6; + return -1; + } else if((((((((a19==5)&&((a11==1)||(a26==1)))||!(a6==1))&&(a1==12))&&(a17==2))&&!(a7==1))&&((a21==12)&&((a5==5)&&((!(a26==1)&&((!(a20==1)&&(((a16==10)&&(input==5))&&(a13==1)))&&(a9==8)))&&(a2==1)))))){ + a5 = 4; + a1 = 14; + a11 = 0; + a21 = 11; + a24 = 1; + a7 = 1; + return 23; + } else if(((((((a19==1)&&((((((a21==12)&&((a17==2)&&((input==5)&&((a5==5)||(a5==6)))))&&(a12==1))&&!(a8==1))&&(a16==11))&&(a20==1)))&&(a9==7))&&(a2==1))&&(a23==1))&&((a23==1)&&(!(a13==1)||((a1==14)&&(a6==1)))))){ + a14 = 0; + a2 = 1; + a1 = 12; + a5 = 6; + a19 = 4; + return 26; + } else if((((a16==7)&&((a9==7)&&((a11==1)&&((input==5)&&((a5==5)||(a5==6))))))&&(!(a20==1)&&((!(a6==1)||((((a21==12)&&((((a19==2)&&(!(a8==1)&&(a23==1)))&&(a11==1))&&(a1==14)))||!(a2==1))||(a7==1)))&&(a17==2))))){ + a11 = 1; + a28 = 1; + a1 = 12; + a16 = 11; + a4 = 0; + a19 = 4; + a21 = 10; + a9 = 8; + a20 = 1; + a5 = 4; + return 21; + } else if(((((!(a8==1)&&(((a1==12)&&(((input==4)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(a16==10)))&&!(a14==1)))&&(a21==10))&&!(a20==1))&&((a19==2)&&((a6==1)&&((a17==2)&&(!(a11==1)||(!(a11==1)||((a13==1)||!(a2==1))))))))){ + a23 = 0; + a26 = 1; + a29 = 0; + a16 = 7; + a9 = 11; + a20 = 1; + a5 = 5; + return -1; + } else if((((a17==2)&&(((((a28==1)&&(a5==4))&&!(a8==1))&&(a1==13))&&(a16==7)))&&((a9==8)&&((a28==1)&&((a21==10)&&(!(a20==1)&&(!(a18==1)&&((a2==1)&&((((input==5)&&(a19==1))&&!(a18==1))&&!(a14==1)))))))))){ + a19 = 2; + a3 = 1; + a4 = 0; + a9 = 11; + a1 = 12; + return 23; + } else if((((a19==2)&&((a16==11)&&(((a5==5)&&((a11==1)&&((((!(a24==1)&&((a9==9)&&(input==1)))&&(a21==10))&&(a2==1))&&!(a24==1))))&&(a17==2))))&&((((!(a3==1)||(a3==1))&&(a1==12))&&!(a27==1))&&(a20==1)))){ + a5 = 4; + a16 = 7; + a9 = 7; + a18 = 0; + a19 = 1; + a23 = 1; + a27 = 0; + return -1; + } else if((((a18==1)||((a1==13)&&(((a14==1)||(!(a26==1)&&((a3==1)&&(a21==10))))&&(a9==11))))&&(!(a0==1)&&((a28==1)&&((a11==1)&&((((a17==2)&&((a19==3)&&((input==4)&&((a5==6)||((a5==4)||(a5==5))))))&&(a16==9))&&!(a20==1))))))){ + a20 = 1; + a1 = 14; + a5 = 4; + a9 = 10; + a7 = 1; + a19 = 1; + a6 = 0; + a16 = 7; + a26 = 1; + return -1; + } else if((((a27==1)||(((((a1==13)&&((a27==1)||(((a21==10)&&(a23==1))||(a8==1))))&&(a19==1))||!(a28==1))&&!(a24==1)))&&((!(a20==1)&&(((a17==2)&&(((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4)))&&(input==5)))&&(a16==9)))&&(a6==1)))){ + if((a5==5)){ + a2 = 0; + a6 = 0; + a16 = 8; + a19 = 3; + a21 = 11; + a3 = 0; + a20 = 1; + a9 = 11; + a5 = 4; + }else{ + a5 = 4; + a9 = 7; + a22 = 1; + a16 = 7; + a27 = 1; + a10 = 0; + a20 = 1; + } + return -1; + } else if(((((a16==11)&&((a14==1)||(((a4==1)||((a20==1)&&(a3==1)))&&(a21==11))))||!(a11==1))&&(!(a8==1)&&(((a17==2)&&(((((a19==5)&&((a9==7)&&((a5==5)&&(a1==12))))||((((a9==11)&&((a1==14)&&(a5==6)))&&(a19==4))||((a19==5)&&(((a5==4)&&(a1==12))&&(a9==7)))))&&(input==6))&&(a23==1)))&&(a2==1))))){ + a16 = 9; + a27 = 0; + a5 = 4; + a24 = 0; + a19 = 5; + a1 = 14; + a7 = 0; + a9 = 11; + return 21; + } else if(((((a3==1)&&((a3==1)&&((!(a20==1)&&((((a23==1)&&(a16==8))||(a8==1))&&(a17==2)))||!(a28==1))))||(a4==1))&&((((a5==4)&&(!(a4==1)&&(((input==3)&&(a1==12))&&(a9==11))))&&(a21==10))&&(a19==2)))){ + a16 = 7; + a28 = 1; + a18 = 0; + a24 = 0; + a19 = 1; + a20 = 1; + a9 = 7; + return -1; + } else if((((a19==1)&&((a20==1)&&((a5==4)&&(((a1==12)&&((!(a27==1)&&((input==6)&&(a21==11)))&&(a2==1)))&&(a16==9)))))&&(((!(a13==1)||((a8==1)||((!(a11==1)||(a6==1))||!(a6==1))))&&(a17==2))&&(a9==7)))){ + a19 = 4; + a16 = 7; + a6 = 1; + a23 = 1; + a20 = 0; + a24 = 0; + return 23; + } else if(((!(a11==1)||(((a1==14)&&(((a12==1)&&((a11==1)&&(a19==3)))&&(a28==1)))&&(a21==10)))&&((a6==1)&&((a17==2)&&(((a16==9)&&((((input==1)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9))))&&(a3==1))&&(a11==1)))&&(a20==1)))))){ + a1 = 13; + a9 = 7; + a5 = 6; + a6 = 1; + a12 = 1; + a16 = 11; + a19 = 2; + a13 = 1; + return 25; + } else if(((((!(a23==1)||(((a20==1)&&(((a6==1)&&(a1==12))&&(a9==8)))&&(a21==10)))||!(a2==1))&&(a17==2))&&((a2==1)&&((a3==1)&&(((a2==1)&&((a28==1)&&(((input==3)&&((a5==4)||(a5==5)))&&(a19==4))))&&(a16==8)))))){ + a16 = 7; + a5 = 4; + a9 = 7; + a23 = 1; + a19 = 1; + a28 = 1; + return -1; + } else if(((((!(a26==1)&&((a28==1)||!(a23==1)))&&(a20==1))||!(a13==1))&&((a3==1)&&(((((a6==1)&&((a28==1)&&((a9==11)&&(((a1==13)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6))))&&(a16==10)))))&&(a19==1))&&(a21==10))&&(a17==2))))){ + a16 = 7; + a3 = 1; + a0 = 0; + a1 = 12; + a9 = 7; + a11 = 1; + a5 = 4; + return -1; + } else if((((((((a9==10)&&(((a11==1)&&(((a20==1)&&(input==5))&&!(a4==1)))&&(a5==5)))&&(a12==1))&&(a23==1))&&(a17==2))&&(a19==3))&&((a21==10)&&(!(a27==1)&&((a16==8)&&((a11==1)&&((a2==1)&&(a1==14)))))))){ + a16 = 7; + a5 = 4; + a9 = 7; + a11 = 1; + a0 = 0; + a1 = 12; + a19 = 1; + return -1; + } else if((((a16==10)&&(((a1==14)&&((!(a8==1)&&(((!(a4==1)&&((((input==1)&&(a5==4))&&(a12==1))&&(a9==11)))&&!(a14==1))&&(a20==1)))&&!(a26==1)))&&!(a8==1)))&&((a19==1)&&((a21==12)&&((a6==1)&&(a17==2)))))){ + a21 = 10; + a19 = 2; + a9 = 9; + a1 = 13; + a2 = 1; + a16 = 7; + a24 = 0; + a5 = 5; + return -1; + } else if(((((a7==1)||((((a28==1)&&(a21==10))&&(a17==2))||!(a13==1)))&&(a23==1))&&(((a12==1)&&(!(a20==1)&&(!(a4==1)&&((((((a9==11)&&((a1==14)&&(a5==6)))&&(a19==3))||((a19==4)&&((a9==7)&&((a5==4)&&(a1==12)))))&&(input==6))&&(a16==7)))))&&!(a0==1)))){ + a13 = 1; + a19 = 5; + a9 = 9; + a6 = 1; + a21 = 12; + a1 = 14; + a8 = 0; + a16 = 8; + a5 = 4; + a20 = 1; + return 22; + } else if(((((!(a27==1)&&((a16==9)&&((a5==4)&&((a9==10)&&(!(a24==1)&&((input==3)&&(a1==13)))))))&&!(a0==1))&&(a21==10))&&(((!(a26==1)&&((a2==1)&&(!(a7==1)&&((a13==1)&&(a17==2)))))&&(a19==2))&&(a20==1)))){ + a18 = 0; + a19 = 5; + a5 = 6; + a14 = 0; + a1 = 14; + a16 = 8; + a21 = 12; + return 26; + } else if(((((a1==12)&&((((input==4)&&(a9==11))&&!(a27==1))&&(a5==6)))&&!(a26==1))&&((a16==11)&&((a21==10)&&((a19==5)&&((!(a11==1)||((a17==2)&&((a13==1)&&(((a2==1)&&(a20==1))||(a24==1)))))&&!(a24==1))))))){ + a24 = 0; + a16 = 7; + a19 = 1; + a9 = 7; + a2 = 1; + a26 = 0; + a5 = 4; + return -1; + } else if(((((a13==1)&&((a17==2)&&((!(a24==1)&&(!(a6==1)||(a6==1)))&&(a20==1))))&&!(a24==1))&&((a19==3)&&((a16==11)&&((((((((a9==11)&&((a1==12)&&(a5==6)))||(((a5==4)&&(a1==13))&&(a9==7)))||(((a5==5)&&(a1==13))&&(a9==7)))&&(input==4))&&(a21==10))&&(a11==1))&&(a3==1)))))){ + a9 = 7; + a14 = 0; + a1 = 12; + a0 = 0; + a5 = 4; + a19 = 1; + a23 = 1; + a16 = 7; + return -1; + } else if((((a17==2)&&((a19==1)&&((!(a18==1)&&((!(a20==1)&&((a2==1)||(a26==1)))||(a14==1)))&&(a1==13))))&&((a16==10)&&((!(a24==1)&&(((((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11)))&&(input==4))&&!(a26==1))&&(a21==12)))&&!(a7==1))))){ + if((a20==1)){ + a28 = 0; + a9 = 7; + a16 = 8; + a5 = 5; + a10 = 1; + a13 = 0; + a21 = 10; + a1 = 14; + a19 = 5; + }else{ + a12 = 0; + a21 = 10; + a25 = 1; + a20 = 1; + a23 = 0; + a9 = 9; + a5 = 6; + } + return 25; + } else if((((a17==2)&&(((!(a3==1)||((a12==1)&&(a19==2)))&&(a20==1))||!(a11==1)))&&(((((a9==8)&&(((a1==12)&&(!(a14==1)&&(((a16==10)&&(input==1))&&!(a8==1))))&&(a2==1)))&&(a3==1))&&(a5==6))&&(a21==11)))){ + a1 = 14; + a14 = 0; + a13 = 1; + a19 = 1; + a28 = 1; + a9 = 10; + a5 = 4; + a16 = 8; + return -1; + } else if(((((((((((a19==3)&&((a9==11)&&((a5==6)&&(a1==14))))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==4)))&&(input==1))&&(a28==1))&&(a16==8))&&(a3==1))&&!(a14==1))&&(a13==1))&&((a6==1)&&(!(a20==1)&&((((a14==1)||(a12==1))&&(a17==2))&&(a21==12)))))){ + if((a18==1)){ + a16 = 9; + a24 = 1; + a9 = 7; + a5 = 6; + a20 = 1; + a22 = 0; + a19 = 1; + a1 = 13; + a21 = 11; + }else{ + a20 = 1; + a5 = 6; + a15 = 1; + a11 = 0; + a19 = 1; + a29 = 1; + a21 = 10; + a9 = 10; + a16 = 7; + a1 = 13; + } + return -1; + } else if((((a17==2)&&((a2==1)&&(!(a18==1)&&(!(a12==1)||((((a21==12)&&(a23==1))||(a18==1))&&(a19==2))))))&&((a20==1)&&(((a1==13)&&((a11==1)&&(!(a8==1)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==4)))))&&(a16==10))))){ + a9 = 7; + a5 = 4; + a4 = 0; + a19 = 1; + a1 = 12; + a16 = 7; + a26 = 0; + a21 = 10; + a8 = 0; + return -1; + } else if((((a16==7)&&((a19==3)&&((((a18==1)||(!(a20==1)&&(a11==1)))&&(a2==1))&&!(a18==1))))&&(((a17==2)&&((a9==8)&&((((!(a14==1)&&(((a5==5)||(a5==6))&&(input==1)))&&(a1==14))&&(a13==1))&&(a21==12))))&&(a13==1)))){ + a20 = 1; + a9 = 7; + a1 = 12; + a5 = 4; + a23 = 1; + a19 = 1; + a2 = 1; + a7 = 0; + a21 = 10; + return -1; + } else if(((((a20==1)&&((!(a14==1)&&((!(a24==1)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6))))&&(a19==1)))&&(a9==8)))&&(a1==14))&&(!(a7==1)&&((a17==2)&&(((((a16==10)&&(!(a2==1)||(a2==1)))&&(a21==10))&&(a3==1))&&(a28==1)))))){ + a7 = 0; + a18 = 0; + a3 = 1; + a5 = 4; + a9 = 7; + a1 = 12; + a16 = 7; + return -1; + } else if((((a11==1)&&((a17==2)&&(((a1==13)&&(a11==1))&&(a21==12))))&&(!(a14==1)&&((!(a0==1)&&(((a23==1)&&(((((a20==1)&&(((a5==4)||(a5==5))&&(input==3)))&&!(a4==1))&&(a9==9))&&(a19==3)))&&(a16==8)))&&!(a4==1))))){ + a19 = 1; + a16 = 7; + a26 = 0; + a1 = 12; + a9 = 7; + a5 = 4; + a23 = 1; + a21 = 10; + return -1; + } else if((((((((a17==2)&&((a3==1)&&(((a23==1)&&(a11==1))&&(a16==7))))&&(a5==6))&&(a19==3))&&(a3==1))||(a0==1))&&(((((a21==10)&&(!(a4==1)&&(!(a20==1)&&(input==1))))&&(a13==1))&&(a1==12))&&(a9==11)))){ + a9 = 7; + a20 = 1; + a26 = 0; + a12 = 1; + a19 = 1; + a27 = 0; + a5 = 4; + return -1; + } else if((((a16==7)&&((a6==1)&&(!(a4==1)&&(((((((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7))))&&(input==1))&&(a19==5))&&!(a26==1))&&!(a20==1)))))&&(((a13==1)&&((a21==11)&&((a1==12)&&(!(a8==1)&&((a13==1)&&(a12==1))))))&&(a17==2)))){ + a23 = 1; + a19 = 1; + a20 = 1; + a5 = 4; + a12 = 1; + a0 = 0; + a21 = 10; + a9 = 7; + return -1; + } else if(((!(a27==1)&&((a21==11)&&(((a6==1)&&(a16==8))&&(a12==1))))&&(((a6==1)&&(!(a20==1)&&((a19==3)&&((!(a4==1)&&(((input==5)&&(((((a5==6)&&(a1==12))&&(a9==11))||((a9==7)&&((a1==13)&&(a5==4))))||((a9==7)&&((a5==5)&&(a1==13)))))&&!(a27==1)))&&(a17==2)))))&&!(a8==1)))){ + a9 = 7; + a5 = 6; + a20 = 1; + a26 = 0; + a21 = 10; + a4 = 0; + a23 = 1; + a1 = 14; + a19 = 2; + a16 = 10; + return 21; + } else if(((((a17==2)&&(((a14==1)||(!(a12==1)||((a1==13)&&(((a6==1)&&(a19==1))&&(a16==10)))))&&(a21==11)))&&(a9==8))&&(((a11==1)&&(((!(a20==1)&&((input==1)&&((a5==4)||(a5==5))))&&(a2==1))&&!(a14==1)))&&!(a24==1)))){ + a5 = 5; + a21 = 10; + a16 = 7; + a9 = 10; + a0 = 1; + a20 = 1; + a1 = 14; + a25 = 0; + return -1; + } else if((((a6==1)&&((!(a18==1)&&((a21==12)&&((a1==12)&&(((a16==9)&&(((input==4)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8))))&&(a19==2)))&&(a17==2)))))&&(a23==1)))&&(!(a14==1)&&(((!(a20==1)&&(a28==1))&&!(a14==1))&&(a11==1))))){ + a1 = 13; + a21 = 10; + a9 = 8; + a5 = 6; + a27 = 1; + a20 = 1; + a13 = 0; + a15 = 1; + a16 = 7; + a19 = 1; + return -1; + } else if((((a1==13)&&((a20==1)&&((a17==2)&&((((a11==1)&&(a19==4))&&(a21==11))||(a24==1)))))&&(((((a9==11)&&(((a13==1)&&((((a5==5)||(a5==6))&&(input==1))&&!(a26==1)))&&!(a4==1)))&&(a23==1))&&!(a27==1))&&(a16==11)))){ + a19 = 2; + a5 = 5; + a21 = 10; + a16 = 10; + a9 = 10; + a11 = 1; + a1 = 12; + a23 = 1; + return 25; + } else if((((a5==5)&&((a17==2)&&((((((a6==1)&&((a0==1)||((a9==7)&&((a0==1)||(a3==1)))))&&(a1==12))&&!(a20==1))&&(a19==5))&&(a21==10))))&&((a2==1)&&((!(a7==1)&&((input==4)&&(a16==8)))&&(a13==1))))){ + a5 = 4; + a11 = 1; + a6 = 1; + a19 = 1; + a8 = 0; + a20 = 1; + a16 = 7; + return -1; + } else if(((((!(a26==1)&&((!(a3==1)||(a12==1))&&(a17==2)))&&(a2==1))&&(a21==12))&&((((!(a7==1)&&(((((((a9==11)&&((a1==12)&&(a5==6)))||((a9==7)&&((a1==13)&&(a5==4))))||((a9==7)&&((a1==13)&&(a5==5))))&&(input==5))&&(a19==3))&&(a20==1)))&&(a16==7))&&(a23==1))&&(a23==1)))){ + a16 = 9; + a1 = 12; + a21 = 10; + a9 = 9; + a19 = 5; + a28 = 1; + a14 = 0; + a5 = 5; + return 21; + } else if(((!(a2==1)&&(!(a11==1)&&((a0==1)&&((a19==4)&&((a16==10)&&((input==6)&&(((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))))))))&&((a17==2)&&(!(a23==1)&&(((a24==1)&&((((a21==11)&&(a2==1))&&!(a6==1))&&(a20==1)))&&(a1==14)))))){ + a21 = 10; + a1 = 12; + a6 = 0; + a5 = 5; + a9 = 10; + a16 = 7; + a19 = 1; + a29 = 0; + a11 = 0; + return -1; + } else if(((!(a13==1)&&(!(a13==1)&&((a8==1)&&((a19==5)&&(a2==1)))))&&((a24==1)&&((a16==11)&&(((((a17==2)&&((((input==5)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(a20==1))&&!(a23==1)))&&(a0==1))&&(a1==14))&&(a21==11)))))){ + a5 = 6; + a21 = 10; + a22 = 1; + a1 = 13; + a9 = 11; + a2 = 0; + a19 = 1; + a15 = 0; + a16 = 7; + return 22; + } else if((((a19==5)&&(((((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==1))&&(a13==1))&&!(a8==1))&&(a16==7)))&&(((((((((a7==1)||(a23==1))&&!(a20==1))||!(a3==1))||!(a11==1))||!(a2==1))&&(a17==2))&&(a21==12))&&(a1==13)))){ + a0 = 0; + a19 = 1; + a5 = 4; + a21 = 10; + a9 = 7; + a1 = 12; + a8 = 0; + a20 = 1; + a11 = 1; + return -1; + } else if(((((a19==1)&&((a7==1)||(!(a27==1)&&((a5==5)&&((a2==1)||(a14==1))))))&&(a21==10))&&((a20==1)&&((((a2==1)&&((a23==1)&&((a23==1)&&((a9==10)&&((a1==13)&&(input==1))))))&&(a16==10))&&(a17==2))))){ + a9 = 7; + a16 = 7; + a1 = 12; + a5 = 4; + a28 = 1; + a0 = 0; + a2 = 1; + return -1; + } else if((((a16==8)&&(!(a28==1)||((a7==1)||(((a12==1)&&!(a20==1))||!(a12==1)))))&&((!(a26==1)&&((!(a8==1)&&(((input==6)&&((((((a5==6)&&(a1==14))&&(a9==11))&&(a19==3))||(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==4)))||(((a9==7)&&((a5==5)&&(a1==12)))&&(a19==4))))&&(a21==10)))&&(a17==2)))&&(a11==1)))){ + a5 = 4; + a3 = 1; + a19 = 1; + a1 = 12; + a6 = 1; + a9 = 7; + a20 = 1; + a16 = 7; + a12 = 1; + return -1; + } else if((((a17==2)&&(((a23==1)&&((a3==1)&&((a3==1)&&(((input==3)&&((a5==4)||(a5==5)))&&(a21==11)))))&&!(a20==1)))&&((a1==14)&&((a9==11)&&(!(a24==1)&&(!(a28==1)||((((a19==4)&&(a11==1))||(a27==1))&&(a16==10)))))))){ + if((a4==1)){ + a3 = 0; + a21 = 12; + a20 = 1; + a6 = 0; + a5 = 5; + a9 = 9; + a16 = 9; + a13 = 0; + a19 = 2; + }else{ + a19 = 5; + a20 = 1; + a23 = 0; + a1 = 12; + a9 = 9; + a27 = 1; + a5 = 6; + a21 = 12; + } + return 21; + } else if(((((a9==10)&&(((((a18==1)||(((a5==4)&&((a0==1)||(a6==1)))&&(a1==13)))&&(a20==1))||!(a12==1))&&!(a27==1)))&&(a16==10))&&((a19==1)&&(((((input==4)&&(a21==12))&&!(a4==1))&&(a17==2))&&(a28==1))))){ + a4 = 0; + a11 = 1; + a21 = 10; + a28 = 1; + a1 = 12; + a16 = 7; + a9 = 7; + return -1; + } else if((((a6==1)&&((a23==1)&&((((a1==14)&&(a3==1))&&!(a8==1))||(a14==1))))&&(!(a26==1)&&((a21==12)&&(!(a20==1)&&((a3==1)&&(((a16==9)&&((a17==2)&&((((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(input==5))))&&(a19==3)))))))){ + a18 = 1; + a21 = 11; + a10 = 1; + a1 = 12; + a9 = 8; + a5 = 6; + return 23; + } else if((((((a13==1)&&(((((((input==5)&&((a5==4)||(a5==5)))&&!(a4==1))&&!(a27==1))&&(a11==1))&&(a9==8))&&(a21==10)))&&(a16==11))&&(a19==1))&&((a1==14)&&(((((a23==1)&&(a20==1))||!(a23==1))&&(a23==1))&&(a17==2))))){ + a1 = 12; + a16 = 7; + a12 = 1; + a9 = 7; + a5 = 4; + a18 = 0; + return -1; + } else if((((!(a0==1)&&((a9==10)&&(((((a5==4)||(a5==5))&&(input==6))&&(a17==2))&&(a16==7))))&&!(a18==1))&&(!(a4==1)&&((a12==1)&&((a20==1)&&((a1==13)&&(((a23==1)&&(!(a28==1)||((a19==3)&&(a13==1))))&&(a21==10)))))))){ + a5 = 6; + a13 = 1; + a19 = 1; + a27 = 0; + a28 = 1; + a21 = 11; + a1 = 14; + return 21; + } else if(((((a21==12)&&((((a9==11)&&((a13==1)&&(((((input==3)&&(a17==2))&&(a19==5))&&!(a7==1))&&(a13==1))))&&(a16==8))&&(a5==4)))&&!(a18==1))&&(!(a20==1)&&(((a1==14)&&(!(a26==1)&&(a23==1)))&&!(a18==1))))){ + a28 = 0; + a1 = 13; + a3 = 0; + a19 = 1; + a16 = 7; + a9 = 9; + a26 = 1; + a21 = 10; + a20 = 1; + return 23; + } else if(((((!(a4==1)&&((a19==4)&&((a21==12)&&((a3==1)&&(a13==1)))))&&(a20==1))&&(a3==1))&&(((a16==11)&&((a9==11)&&(!(a24==1)&&((((((a5==5)||(a5==6))&&(input==5))&&!(a26==1))&&(a1==12))&&(a17==2)))))&&!(a4==1)))){ + a7 = 0; + a16 = 7; + a5 = 4; + a9 = 7; + a12 = 1; + a21 = 10; + a6 = 1; + a19 = 1; + return -1; + } else if(((((((a21==11)&&((a11==1)&&(a9==7)))&&(a16==9))&&!(a20==1))||(a0==1))&&((a13==1)&&((((a1==12)&&((a12==1)&&(!(a7==1)&&((a23==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&!(a26==1))))))&&(a17==2))&&(a19==4))))){ + a11 = 0; + a1 = 13; + a21 = 12; + a9 = 11; + a29 = 1; + a19 = 2; + a5 = 5; + a27 = 1; + return -1; + } else if((((a20==1)&&((a26==1)||((a1==13)&&((a19==3)&&(((a16==10)&&(((a26==1)||(a23==1))&&!(a18==1)))||!(a11==1))))))&&((a23==1)&&(!(a27==1)&&(((a21==12)&&((((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(input==6)))&&(a17==2)))))){ + a16 = 7; + a11 = 1; + a9 = 9; + a2 = 1; + a5 = 4; + a19 = 2; + a21 = 10; + return 25; + } else if((((a8==1)||(((a27==1)||((((a19==2)&&(a6==1))&&(a16==7))&&(a17==2)))&&!(a7==1)))&&((a6==1)&&((a21==11)&&(!(a8==1)&&((a2==1)&&((a20==1)&&((a1==14)&&((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))&&(input==4)))))))))){ + a28 = 1; + a5 = 4; + a21 = 10; + a4 = 0; + a1 = 12; + a7 = 0; + a9 = 7; + a19 = 1; + return -1; + } else if(((((a21==10)&&((((a2==1)&&(a1==13))&&!(a20==1))&&(a17==2)))&&(a13==1))&&(((!(a0==1)&&((a12==1)&&(((((((a5==4)||(a5==5))&&(input==6))&&(a28==1))&&(a9==11))&&(a19==1))&&(a16==10))))&&!(a8==1))&&(a3==1)))){ + a9 = 9; + a5 = 6; + a2 = 0; + a25 = 1; + a13 = 0; + return 25; + } else if((((((a20==1)&&((a1==12)&&((((a16==7)&&((input==6)&&((a5==5)||(a5==6))))&&!(a4==1))&&(a9==11))))&&(a2==1))&&(a17==2))&&(!(a27==1)&&((a21==11)&&((a19==5)&&(!(a4==1)&&(((a2==1)||(a7==1))||!(a2==1)))))))){ + a18 = 0; + a13 = 1; + a16 = 8; + a9 = 8; + a1 = 14; + a21 = 12; + a23 = 1; + a19 = 1; + a5 = 4; + return 26; + } else if((((((((((a5==4)&&(input==1))&&(a19==2))&&!(a0==1))&&!(a4==1))&&(a2==1))&&(a21==12))&&!(a14==1))&&((a28==1)&&(((a1==12)&&((a16==10)&&((a17==2)&&((!(a8==1)&&(a2==1))&&(a9==9)))))&&!(a20==1))))){ + a5 = 6; + a7 = 1; + a24 = 1; + a19 = 1; + a9 = 10; + a21 = 11; + a3 = 0; + a1 = 13; + a16 = 9; + return 21; + } else if((((!(a18==1)&&((a24==1)||(((a1==12)&&(a11==1))&&(a20==1))))&&(a9==7))&&((a6==1)&&((a5==4)&&((a21==11)&&(((a16==10)&&(((((input==5)&&(a19==3))&&(a2==1))&&!(a14==1))&&(a17==2)))&&!(a26==1))))))){ + a0 = 0; + a19 = 1; + a18 = 0; + a16 = 7; + a21 = 10; + return -1; + } else if(((((a21==12)&&((a17==2)&&(!(a24==1)&&((((a16==8)&&(a2==1))&&(a19==2))&&(a9==9)))))||!(a6==1))&&((((a23==1)&&((((((a5==4)||(a5==5))&&(input==3))&&(a1==13))&&(a11==1))&&(a20==1)))&&(a6==1))&&!(a4==1)))){ + a19 = 1; + a7 = 0; + a8 = 0; + a21 = 10; + a23 = 1; + a5 = 4; + a9 = 7; + a1 = 12; + a16 = 7; + return -1; + } else if((((a1==12)&&((a16==8)&&((!(a0==1)&&((a23==1)&&((a21==12)&&((input==6)&&(((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10))))))))&&(a2==1))))&&(!(a20==1)&&((a17==2)&&((!(a3==1)||(!(a8==1)&&((a11==1)&&(a23==1))))&&(a19==4)))))){ + if((a19==5)){ + a8 = 1; + a16 = 7; + a9 = 11; + a21 = 10; + a13 = 0; + a19 = 2; + a25 = 0; + a5 = 4; + a20 = 1; + }else{ + a21 = 10; + a25 = 1; + a7 = 1; + a11 = 0; + a1 = 13; + a19 = 5; + a5 = 5; + a16 = 11; + a9 = 10; + a20 = 1; + } + return 26; + } else if(((((a21==10)&&(((a17==2)&&(((a3==1)&&((a0==1)||((a2==1)||(a27==1))))&&(a6==1)))&&!(a0==1)))&&(a16==8))&&((a1==14)&&((a20==1)&&(((((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))&&(input==1))&&(a13==1))&&(a19==5)))))){ + a12 = 1; + a19 = 1; + a16 = 7; + a1 = 12; + a2 = 1; + a5 = 4; + a28 = 1; + a9 = 7; + return -1; + } else if(((((a17==2)&&((input==4)&&(((((a1==12)&&(a5==5))&&(a9==11))||(((a1==12)&&(a5==6))&&(a9==11)))||(((a1==13)&&(a5==4))&&(a9==7)))))&&(a19==2))&&(((((((a21==10)&&((((a28==1)&&(a3==1))&&!(a24==1))||(a4==1)))||!(a13==1))&&(a16==10))&&(a13==1))||(a18==1))&&!(a20==1)))){ + a19 = 5; + a4 = 1; + a1 = 14; + a16 = 8; + a29 = 0; + a7 = 1; + a5 = 5; + a9 = 10; + return -1; + } else if((((a3==1)&&(((a21==11)&&((a19==4)&&((a17==2)&&((a2==1)&&(((a16==8)&&((input==5)&&((a5==6)||((a5==4)||(a5==5)))))&&(a20==1))))))&&(a28==1)))&&(((((a1==13)&&((a3==1)&&(a9==10)))&&(a12==1))||!(a23==1))||(a4==1)))){ + a2 = 1; + a19 = 2; + a0 = 0; + a21 = 10; + a9 = 9; + a6 = 1; + a16 = 7; + a5 = 4; + return -1; + } else if(((((a19==2)&&((a21==12)&&(((input==3)&&((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4))))&&(a16==8))))&&(a1==12))&&((a7==1)||((a28==1)&&(!(a11==1)||((((a17==2)&&(!(a12==1)||((a28==1)&&!(a8==1))))&&!(a14==1))&&(a20==1))))))){ + a13 = 1; + a19 = 1; + a9 = 7; + a21 = 10; + a24 = 0; + a16 = 7; + a5 = 4; + a6 = 1; + return -1; + } else if((((a23==1)&&(((a5==6)&&((a3==1)&&(((a17==2)&&((a21==10)&&((input==6)&&(a19==1))))&&!(a14==1))))&&(a3==1)))&&((a7==1)||(((a13==1)&&((a9==7)&&(((a16==7)&&(a2==1))&&(a1==13))))&&!(a20==1))))){ + a18 = 0; + a20 = 1; + a13 = 1; + a1 = 12; + a5 = 4; + a4 = 0; + return -1; + } else if((((a20==1)&&((a23==1)&&((((a17==2)&&((a28==1)&&((a16==7)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6))))))&&!(a4==1))&&(a3==1))))&&((((!(a4==1)&&((a28==1)&&((a23==1)&&(a21==11))))&&(a1==13))&&(a19==4))&&(a9==11)))){ + a1 = 12; + a5 = 4; + a19 = 1; + a2 = 1; + a12 = 1; + a9 = 7; + a18 = 0; + a21 = 10; + return -1; + } else if((((((((((a1==14)&&(a23==1))&&!(a0==1))&&(a17==2))&&!(a20==1))&&(a19==5))&&(a21==10))&&(a5==4))&&((((!(a8==1)&&((a12==1)&&(!(a26==1)&&((input==4)&&(a9==11)))))&&(a11==1))&&(a16==8))&&(a2==1)))){ + a28 = 1; + a13 = 1; + a2 = 1; + a9 = 7; + a20 = 1; + a19 = 1; + a1 = 12; + a16 = 7; + return -1; + } else if(((((((a23==1)&&(((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5)))&&(input==3)))&&(a17==2))&&(a12==1))&&(a16==10))&&(((a11==1)&&((a21==11)&&(((a13==1)&&((((a6==1)&&(a1==14))&&!(a20==1))||(a4==1)))||(a24==1))))&&(a19==1)))){ + a1 = 12; + a9 = 8; + a5 = 4; + a20 = 1; + a27 = 1; + a16 = 7; + a3 = 0; + a14 = 1; + a21 = 10; + return -1; + } else if((((a16==7)&&(((a27==1)||((a14==1)||(a11==1)))&&!(a20==1)))&&(((((a19==3)&&(!(a8==1)&&((a12==1)&&((((((a5==4)&&(a1==14))&&(a9==7))||(((a9==11)&&((a1==13)&&(a5==5)))||((a9==11)&&((a1==13)&&(a5==6)))))&&(input==1))&&(a21==12)))))&&(a6==1))&&!(a4==1))&&(a17==2)))){ + a0 = 0; + a5 = 4; + a1 = 12; + a9 = 7; + a20 = 1; + a4 = 0; + a6 = 1; + a19 = 1; + a21 = 10; + return -1; + } else if((((a12==1)&&(((a19==4)&&((a17==2)&&((a21==10)&&((a12==1)||(a8==1)))))||(a14==1)))&&(((!(a20==1)&&((a16==9)&&((((input==1)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(a11==1))&&(a23==1))))&&(a1==13))&&(a23==1)))){ + if((a9==7)){ + a5 = 4; + a19 = 1; + a9 = 8; + a28 = 0; + a20 = 1; + a26 = 1; + a16 = 7; + a1 = 14; + a10 = 1; + }else{ + a3 = 0; + a22 = 1; + a19 = 1; + a1 = 14; + a21 = 12; + a5 = 4; + a9 = 11; + a16 = 10; + a23 = 0; + } + return -1; + } else if(((((((((a6==1)||!(a2==1))&&(a6==1))&&(a21==10))&&(a1==12))&&(a19==4))&&(a16==9))&&((a9==10)&&((((((!(a4==1)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6))))&&(a6==1))&&(a20==1))&&!(a14==1))&&(a17==2))&&!(a18==1))))){ + a18 = 0; + a7 = 0; + a11 = 1; + a19 = 1; + a9 = 7; + a16 = 7; + a5 = 4; + return -1; + } else if(((!(a20==1)&&((((((((a9==7)&&((a11==1)&&((a6==1)&&(a13==1))))&&(a17==2))&&(a1==14))&&!(a24==1))&&(a16==9))&&(a21==11))||(a14==1)))&&((a19==1)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&!(a7==1))&&!(a7==1))))){ + if((a18==1)){ + a22 = 1; + a0 = 1; + a5 = 5; + a16 = 7; + a9 = 9; + a20 = 1; + a19 = 2; + a1 = 12; + a21 = 10; + }else{ + a9 = 9; + a21 = 10; + a11 = 0; + a28 = 0; + a16 = 7; + a5 = 6; + a20 = 1; + a1 = 13; + a7 = 1; + } + return -1; + } else if((((((((a6==1)&&(((input==3)&&((a5==4)||(a5==5)))&&!(a26==1)))&&(a17==2))&&!(a24==1))&&(a16==11))&&!(a0==1))&&((a21==12)&&(((a1==12)&&((a9==9)&&((!(a18==1)&&((a20==1)&&(a11==1)))||(a4==1))))&&(a19==1))))){ + a12 = 1; + a9 = 8; + a13 = 1; + a5 = 6; + a0 = 0; + a19 = 3; + return 21; + } else if(((((!(a23==1)||((a19==1)&&((a20==1)&&(((a17==2)&&(a6==1))||!(a3==1)))))&&(a2==1))||(a14==1))&&((a13==1)&&((a16==10)&&((((a1==13)&&((input==5)&&((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4)))))&&(a21==12))&&(a3==1)))))){ + a24 = 0; + a16 = 7; + a9 = 9; + a19 = 2; + a12 = 1; + a21 = 10; + a5 = 5; + a23 = 1; + return -1; + } else if((((a9==11)&&((((a8==1)&&((a8==1)&&(((!(a13==1)&&(a28==1))&&!(a20==1))&&(a21==10))))&&(a27==1))&&(a1==13)))&&((a17==2)&&((a16==8)&&((!(a6==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a14==1)))&&(a19==4)))))){ + a9 = 9; + a10 = 0; + a5 = 6; + a1 = 12; + a6 = 0; + a19 = 1; + a20 = 1; + a16 = 7; + return 21; + } else if((((a17==2)&&((a19==1)&&((!(a7==1)&&(!(a27==1)&&((((a1==13)&&((input==6)&&((a5==4)||(a5==5))))&&!(a26==1))&&!(a7==1))))&&(a21==12))))&&(((!(a0==1)&&((!(a20==1)&&(a28==1))&&(a9==8)))||(a27==1))&&(a16==10)))){ + a19 = 4; + a1 = 12; + a16 = 9; + a6 = 0; + a23 = 0; + a5 = 4; + a9 = 7; + a20 = 1; + a4 = 1; + return -1; + } else if((((a5==5)&&((a9==9)&&(!(a7==1)&&((a19==5)&&((a1==13)&&((a12==1)&&!(a18==1)))))))&&((a21==10)&&(((a17==2)&&(((a12==1)&&((a16==8)&&(((input==3)&&!(a20==1))&&(a6==1))))&&!(a18==1)))&&!(a24==1))))){ + a5 = 4; + a28 = 1; + a26 = 0; + a23 = 1; + a20 = 1; + return 26; + } else if(((((((((a17==2)&&(a3==1))&&(a5==4))&&(a9==11))&&!(a14==1))&&(a16==11))||!(a23==1))&&(((a21==12)&&(((((((input==5)&&(a20==1))&&(a13==1))&&(a19==2))&&(a23==1))&&!(a4==1))&&(a23==1)))&&(a1==12)))){ + a21 = 10; + a16 = 7; + a8 = 0; + a19 = 1; + a18 = 0; + a9 = 7; + a23 = 1; + return -1; + } else if((((a26==1)||(((a20==1)&&((a16==8)&&((((a14==1)||(a2==1))&&!(a0==1))&&(a21==11))))||(a18==1)))&&(!(a7==1)&&(((a17==2)&&((input==5)&&((((a9==7)&&((a5==5)&&(a1==12)))&&(a19==5))||(((a19==4)&&((a9==11)&&((a5==6)&&(a1==14))))||((a19==5)&&(((a1==12)&&(a5==4))&&(a9==7)))))))&&!(a18==1))))){ + a12 = 1; + a1 = 12; + a19 = 3; + a5 = 4; + a9 = 7; + a26 = 0; + a16 = 10; + return 23; + } else if(((((a16==11)&&(!(a0==1)&&(((a2==1)&&!(a26==1))&&(a20==1))))&&(a21==12))&&((a28==1)&&((((a17==2)&&((a1==14)&&((((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==6))&&!(a7==1))&&!(a14==1))))&&(a3==1))&&(a19==2))))){ + a21 = 11; + a12 = 1; + a6 = 1; + a14 = 0; + a5 = 5; + a1 = 13; + a9 = 7; + return 21; + } else if(((((a8==1)||((((a1==14)&&(!(a8==1)&&(a3==1)))&&(a19==2))&&(a21==11)))||!(a23==1))&&(!(a0==1)&&(!(a20==1)&&(((((a17==2)&&(((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5)))&&(input==4)))&&(a3==1))&&!(a7==1))&&(a16==7)))))){ + a5 = 4; + a20 = 1; + a21 = 10; + a1 = 12; + a19 = 1; + a7 = 0; + a9 = 7; + a13 = 1; + return -1; + } else if(((((a14==1)||(((a16==7)&&((a0==1)||((a1==12)&&(a28==1))))&&(a9==11)))&&(a23==1))&&(!(a27==1)&&((a17==2)&&((!(a20==1)&&((((a21==11)&&((a5==5)&&(input==4)))&&(a19==4))&&(a23==1)))&&!(a4==1)))))){ + a9 = 7; + a24 = 0; + a19 = 1; + a28 = 1; + a4 = 0; + a21 = 10; + a20 = 1; + a5 = 4; + return -1; + } else if(((((a21==10)&&((a3==1)&&((a9==10)&&((((a5==4)||(a5==5))&&(input==4))&&(a19==2)))))&&(a17==2))&&(((!(a13==1)||((a3==1)&&((!(a20==1)&&((!(a3==1)||(a13==1))||!(a3==1)))&&(a16==7))))||!(a2==1))&&(a1==12)))){ + a26 = 0; + a19 = 1; + a6 = 1; + a20 = 1; + a0 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if((((((a12==1)&&((a1==13)&&((a21==12)&&(((a13==1)&&(a16==9))&&!(a20==1)))))||!(a6==1))&&(a12==1))&&((((a12==1)&&(((a17==2)&&((input==4)&&(((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))))&&(a19==3)))&&!(a8==1))&&!(a18==1)))){ + a20 = 1; + a22 = 0; + a19 = 2; + a6 = 0; + a5 = 6; + a18 = 1; + a9 = 10; + a16 = 10; + return -1; + } else if((((!(a4==1)&&((a13==1)&&(a9==11)))&&(a19==4))&&(((((((((a5==4)&&(!(a7==1)&&(((input==5)&&(a1==13))&&(a20==1))))&&(a2==1))&&!(a24==1))&&!(a7==1))&&(a17==2))&&!(a14==1))&&(a16==8))&&(a21==11)))){ + a6 = 1; + a16 = 7; + a9 = 7; + a11 = 1; + a21 = 10; + a27 = 0; + a19 = 1; + a1 = 12; + return -1; + } else if((((a3==1)&&(((((a1==12)&&((((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==1))&&!(a26==1))&&(a19==1)))&&!(a20==1))&&(a13==1))&&(a16==11)))&&((((a17==2)&&(((a21==10)&&(a28==1))&&(a2==1)))||!(a23==1))||!(a12==1)))){ + a1 = 13; + a5 = 5; + a20 = 1; + a27 = 1; + a14 = 1; + a15 = 0; + a9 = 11; + a16 = 10; + a19 = 2; + a21 = 11; + return -1; + } else if(((((a16==9)&&(((a20==1)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))&&(a19==3)))&&!(a26==1))&&(!(a23==1)||((a1==13)&&((((a9==9)&&((a2==1)&&(((a17==2)&&((a6==1)&&!(a8==1)))||(a18==1))))||(a27==1))&&(a21==10)))))){ + a24 = 0; + a5 = 6; + a16 = 11; + a6 = 1; + a1 = 12; + a18 = 0; + a19 = 2; + a9 = 7; + return 26; + } else if(((!(a14==1)&&((a16==10)&&((a17==2)&&((((a19==5)&&(a11==1))&&(a12==1))&&!(a26==1)))))&&((a1==14)&&((a23==1)&&((((((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==1))&&!(a20==1))&&(a3==1))&&(a21==12))&&!(a14==1)))))){ + if((a19==5)){ + a16 = 9; + a1 = 12; + a4 = 1; + a19 = 2; + a9 = 11; + a8 = 1; + a5 = 5; + }else{ + a1 = 13; + a9 = 11; + a5 = 6; + a29 = 1; + a25 = 0; + a20 = 1; + a19 = 1; + a16 = 7; + } + return 22; + } else if((((((a9==10)&&(a3==1))&&(a19==2))||(a7==1))&&(!(a26==1)&&(((a17==2)&&((a1==14)&&(((((a21==11)&&((a20==1)&&(!(a24==1)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))))&&!(a4==1))&&(a12==1))&&(a16==9))))&&!(a0==1))))){ + a0 = 0; + a26 = 0; + a20 = 0; + a19 = 4; + a9 = 8; + a5 = 5; + a3 = 1; + a16 = 8; + a1 = 12; + return -1; + } else if(((((a9==10)&&((a17==2)&&((a21==12)&&((a20==1)&&((!(a13==1)&&((!(a3==1)&&(!(a13==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5))))&&!(a12==1)))&&(a16==9))))))&&(a19==5))&&((!(a11==1)&&(!(a3==1)&&(a28==1)))&&(a1==13)))){ + a1 = 12; + a5 = 5; + a0 = 1; + a21 = 10; + a19 = 2; + a9 = 8; + a26 = 1; + a25 = 0; + a16 = 7; + return -1; + } else if((((((a6==1)&&((a20==1)&&(!(a26==1)&&((a21==12)&&(((a16==10)&&(input==3))&&!(a18==1))))))&&(a17==2))&&(a12==1))&&((a9==9)&&((!(a13==1)||((((a19==5)&&(a13==1))&&(a5==5))||!(a12==1)))&&(a1==14))))){ + a5 = 4; + a16 = 7; + a4 = 0; + a27 = 0; + a21 = 10; + a19 = 1; + a9 = 7; + a2 = 1; + a1 = 12; + return -1; + } else if(((((a2==1)&&((a23==1)&&((a16==7)&&(((a1==14)&&((a6==1)&&(((input==1)&&(((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))))&&(a17==2))))&&(a21==10)))))&&!(a20==1))&&((a2==1)&&((!(a18==1)&&((a19==2)&&(a12==1)))||(a27==1))))){ + a19 = 1; + a21 = 11; + a18 = 0; + a1 = 13; + a16 = 8; + a11 = 1; + a9 = 11; + a23 = 1; + a5 = 4; + return 25; + } else if(((((((((a21==10)&&(!(a20==1)&&((input==6)&&(a19==5))))&&(a12==1))&&(a5==5))&&(a1==13))&&(a9==11))&&(a2==1))&&(((a16==7)&&(((!(a13==1)||((a26==1)||(a13==1)))&&!(a7==1))&&(a28==1)))&&(a17==2)))){ + a9 = 7; + a27 = 0; + a5 = 4; + a6 = 1; + a11 = 1; + a20 = 1; + a19 = 1; + a1 = 12; + return -1; + } else if((((((a28==1)&&(a21==11))&&!(a12==1))&&!(a13==1))&&((a9==10)&&((a20==1)&&(((((((((a16==11)&&((input==4)&&(a17==2)))&&!(a11==1))&&!(a2==1))&&(a14==1))&&(a1==13))&&(a8==1))&&(a19==2))&&(a5==5)))))){ + a9 = 8; + a24 = 1; + a16 = 7; + a3 = 0; + a28 = 0; + a1 = 14; + a5 = 4; + return 21; + } else if((((((!(a8==1)&&((a21==11)&&(((a5==4)||(a5==5))&&(input==6))))&&(a12==1))&&(a1==14))&&!(a20==1))&&(!(a4==1)&&((a3==1)&&((a9==8)&&(((((a19==4)&&((a6==1)||!(a12==1)))&&(a16==9))&&(a17==2))&&!(a27==1))))))){ + if((a27==1)){ + a19 = 2; + a5 = 5; + a22 = 1; + a1 = 13; + a21 = 10; + a15 = 0; + a9 = 11; + }else{ + a19 = 3; + a16 = 7; + a24 = 1; + a8 = 1; + a21 = 12; + a22 = 0; + a9 = 10; + a5 = 4; + } + return -1; + } else if((((((!(a20==1)&&((a1==14)&&(((input==5)&&((a5==5)||(a5==6)))&&(a21==11))))&&!(a27==1))&&(a6==1))&&(a9==7))&&((a16==10)&&((((!(a14==1)&&(((a12==1)&&(a17==2))||(a27==1)))&&(a19==3))&&!(a0==1))&&!(a4==1))))){ + if((a20==1)){ + a9 = 8; + a21 = 10; + a5 = 5; + a16 = 7; + a23 = 0; + a1 = 12; + a19 = 1; + a4 = 1; + a0 = 1; + a20 = 1; + }else{ + a9 = 10; + a21 = 12; + a15 = 1; + a5 = 5; + a20 = 1; + a19 = 1; + a23 = 0; + a10 = 0; + a1 = 13; + a16 = 8; + } + return -1; + } else if((((((a28==1)&&((((a11==1)&&(a16==9))||(a26==1))&&(a19==3)))&&(a13==1))&&(a9==8))&&((((a5==6)&&((((((input==3)&&(a17==2))&&!(a27==1))&&(a21==10))&&(a1==13))&&!(a26==1)))&&(a20==1))&&(a2==1)))){ + a16 = 7; + a9 = 7; + a2 = 1; + a4 = 0; + a26 = 0; + a5 = 4; + a19 = 1; + a1 = 12; + return -1; + } else if(((!(a11==1)||((((a7==1)||((a1==14)&&((a28==1)&&(a17==2))))&&(a19==2))&&(a13==1)))&&(!(a18==1)&&((a20==1)&&(((((a13==1)&&((a21==11)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1))))&&!(a18==1))&&(a9==9))&&(a16==9)))))){ + a7 = 0; + a5 = 4; + a0 = 0; + a9 = 8; + a21 = 10; + a18 = 0; + a16 = 10; + return 21; + } else if((((!(a7==1)&&((a11==1)&&((a12==1)&&(((a17==2)&&(a23==1))&&(a5==5)))))&&!(a4==1))&&((a9==9)&&((((!(a26==1)&&((a19==2)&&((a16==11)&&((input==1)&&(a21==12)))))&&(a20==1))&&(a3==1))&&(a1==14))))){ + a16 = 7; + a19 = 1; + a11 = 1; + a21 = 10; + a13 = 1; + a9 = 7; + a7 = 0; + a1 = 12; + a5 = 4; + return -1; + } else if(((((((((a23==1)||(a27==1))||(a24==1))&&!(a0==1))&&(a20==1))&&(a9==9))&&(a1==13))&&((a17==2)&&(!(a18==1)&&((a12==1)&&(!(a18==1)&&((a16==9)&&(((a21==12)&&((a19==5)&&(input==3)))&&(a5==6))))))))){ + a9 = 7; + a16 = 7; + a27 = 0; + a14 = 0; + a1 = 12; + a3 = 1; + a19 = 1; + a5 = 4; + a21 = 10; + return -1; + } else if(((!(a23==1)||(((a11==1)&&((a17==2)&&((((a11==1)&&(!(a2==1)||(a11==1)))&&(a20==1))||(a4==1))))&&(a21==12)))&&((((((((a5==6)&&(a1==13))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==14))))&&(input==5))&&(a16==9))&&(a12==1))&&(a19==4)))){ + a16 = 7; + a13 = 1; + a9 = 7; + a21 = 10; + a19 = 1; + a5 = 4; + a2 = 1; + a1 = 12; + return -1; + } else if((((a19==1)&&(!(a20==1)&&(((a9==10)&&((a17==2)&&((a21==10)&&(a6==1))))&&!(a0==1))))&&((a1==13)&&(!(a0==1)&&(!(a26==1)&&(!(a24==1)&&(((a6==1)&&(((input==6)&&(a16==11))&&(a5==4)))&&(a2==1)))))))){ + a20 = 1; + a9 = 7; + a16 = 7; + a1 = 12; + a5 = 5; + a14 = 1; + a0 = 1; + a28 = 0; + return -1; + } else if((((((a2==1)&&(((!(a20==1)&&((a17==2)&&((a21==12)&&(input==6))))&&(a19==4))&&(a28==1)))&&(a13==1))&&(a23==1))&&(((a16==9)&&((a1==12)&&((((a5==5)&&(a12==1))&&(a9==7))&&!(a0==1))))&&!(a24==1)))){ + a28 = 0; + a11 = 0; + a16 = 7; + a1 = 13; + a21 = 11; + a9 = 10; + a14 = 1; + a5 = 6; + return -1; + } else if(((((a14==1)||(((((a28==1)&&(a20==1))&&(a1==12))||(a7==1))||(a18==1)))||(a0==1))&&((((((a9==7)&&((((input==4)&&(a19==3))&&!(a4==1))&&(a17==2)))&&(a21==12))&&(a16==11))&&(a5==5))&&(a28==1)))){ + a21 = 10; + a19 = 1; + a3 = 1; + a26 = 0; + a16 = 7; + a5 = 4; + a6 = 1; + return -1; + } return calculate_output3(input); + } + + int calculate_output3(int input) { + if(((!(a0==1)&&((a12==1)&&((((a19==1)&&(((a17==2)&&((input==1)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))))&&(a21==10)))&&(a1==12))&&!(a8==1))))&&(!(a2==1)||(((((a16==7)&&(a11==1))&&!(a20==1))&&(a2==1))||(a18==1))))){ + if((a26==1)){ + a1 = 13; + a23 = 1; + a27 = 0; + a21 = 11; + a9 = 7; + a5 = 4; + a6 = 1; + }else{ + a3 = 1; + a5 = 4; + a9 = 9; + a19 = 2; + a2 = 1; + } + return 25; + } else if(((((((a23==1)&&(((a16==10)&&((a20==1)&&(((((a5==4)||(a5==5))&&(input==1))&&(a11==1))&&!(a14==1))))&&(a21==10)))&&(a9==7))&&(a17==2))&&(a1==12))&&((!(a23==1)||((a4==1)||((a11==1)&&(a2==1))))&&(a19==1)))){ + a2 = 1; + a9 = 9; + a19 = 3; + a1 = 14; + a5 = 6; + a16 = 7; + a3 = 1; + a13 = 1; + return 23; + } else if((((((a16==7)&&(a3==1))&&(a17==2))&&(a13==1))&&((a19==2)&&(!(a20==1)&&((!(a18==1)&&((!(a7==1)&&(((a21==12)&&((((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&!(a26==1))&&(a12==1)))&&(a9==8)))&&!(a4==1)))&&(a1==14)))))){ + a5 = 4; + a9 = 7; + a23 = 1; + a4 = 0; + a21 = 10; + a19 = 1; + a20 = 1; + a1 = 12; + a12 = 1; + return -1; + } else if((((((a20==1)&&(((a19==2)&&((a16==7)&&((input==1)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))))&&!(a0==1)))&&!(a14==1))&&!(a26==1))&&((!(a2==1)||((a1==14)&&((a21==12)&&(((a11==1)||(a24==1))&&(a17==2)))))||!(a28==1)))){ + a19 = 3; + a3 = 1; + a5 = 6; + a16 = 9; + a21 = 10; + a27 = 0; + a9 = 11; + a6 = 1; + return 21; + } else if((((a1==13)&&(((((!(a4==1)&&(((a5==5)||(a5==6))&&(input==3)))&&(a11==1))&&!(a7==1))&&(a16==8))&&!(a8==1)))&&((a17==2)&&(((((a9==8)&&(!(a8==1)&&((a21==12)&&(a3==1))))||(a14==1))&&(a20==1))&&(a19==2))))){ + a5 = 4; + a12 = 1; + a21 = 10; + a16 = 7; + a9 = 7; + a1 = 12; + a26 = 0; + a19 = 1; + a23 = 1; + return -1; + } else if(((((a16==7)&&((((a17==2)&&((a19==5)&&((a6==1)||!(a2==1))))&&(a28==1))||(a24==1)))||(a8==1))&&(((!(a20==1)&&(((a23==1)&&((input==5)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))))&&(a21==10)))&&(a1==12))&&(a6==1)))){ + a19 = 1; + a5 = 4; + a9 = 7; + a20 = 1; + a0 = 0; + a27 = 0; + a3 = 1; + return -1; + } else if((((a17==2)&&((!(a4==1)&&((a12==1)&&((a23==1)&&((a19==3)&&(input==3)))))&&!(a7==1)))&&((a5==4)&&(!(a20==1)&&(((a16==9)&&(((a1==14)&&((!(a23==1)||(a11==1))&&(a21==10)))&&(a11==1)))&&(a9==7)))))){ + if((a5==6)){ + a26 = 1; + a5 = 6; + a16 = 11; + a4 = 1; + a3 = 0; + a19 = 5; + a20 = 1; + a9 = 10; + a21 = 11; + }else{ + a5 = 6; + a26 = 1; + a16 = 7; + a25 = 0; + a1 = 12; + a29 = 1; + a19 = 1; + a20 = 1; + } + return 21; + } else if(((!(a24==1)&&((a20==1)&&((a6==1)||(a7==1))))&&(!(a8==1)&&(!(a26==1)&&((a9==7)&&(!(a14==1)&&((a28==1)&&(((a21==11)&&((a5==6)&&((((input==1)&&(a19==2))&&(a17==2))&&(a16==10))))&&(a1==12))))))))){ + a11 = 1; + a1 = 13; + a7 = 0; + a13 = 1; + a9 = 9; + return 21; + } else if(((!(a27==1)&&((a23==1)&&(((a21==11)&&((a12==1)&&((a9==11)&&((a19==3)&&(!(a20==1)&&((input==5)&&(a17==2)))))))&&(a5==6))))&&(!(a18==1)&&(((a16==10)&&(((a13==1)||(a14==1))&&(a1==14)))||!(a3==1))))){ + a9 = 8; + a8 = 1; + a16 = 7; + a19 = 2; + a5 = 5; + a21 = 10; + a18 = 1; + a0 = 1; + return -1; + } else if((((a16==8)&&((a17==2)&&(((a2==1)&&((a9==11)&&((((a6==1)&&(a11==1))&&(a11==1))&&(a21==10))))&&(a1==13))))&&(((a19==4)&&(((((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a6==1))&&(a23==1))&&(a2==1)))&&!(a20==1)))){ + a26 = 0; + a9 = 7; + a19 = 1; + a5 = 4; + a3 = 1; + a1 = 12; + a16 = 7; + a20 = 1; + a23 = 1; + return -1; + } else if((((a28==1)&&(((a16==8)&&(!(a18==1)&&(!(a20==1)&&(((a6==1)&&!(a7==1))&&(a21==12)))))&&(a17==2)))&&(((a28==1)&&((a5==6)&&(((!(a8==1)&&((a9==10)&&(input==3)))&&(a1==13))&&(a19==3))))&&!(a27==1)))){ + a9 = 11; + a19 = 1; + a12 = 0; + a13 = 0; + a16 = 9; + a1 = 14; + a21 = 10; + a28 = 0; + a20 = 1; + return -1; + } else if((((((a17==2)&&(((a1==13)&&(a13==1))&&(a28==1)))&&!(a4==1))&&(a19==4))&&(!(a0==1)&&((a6==1)&&((a20==1)&&(((a16==11)&&((((input==6)&&(((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))&&!(a26==1))&&(a21==11)))&&!(a8==1))))))){ + a1 = 12; + a9 = 7; + a28 = 1; + a19 = 1; + a12 = 1; + a5 = 4; + a21 = 10; + a16 = 7; + a18 = 0; + return -1; + } else if(((((a21==11)&&((a3==1)&&((((a2==1)&&(((input==4)&&((a5==4)||(a5==5)))&&(a20==1)))&&!(a26==1))&&(a16==11))))&&(a23==1))&&(((a17==2)&&(((((a3==1)&&(a9==8))&&(a19==3))&&(a12==1))&&(a23==1)))&&(a1==12)))){ + a3 = 1; + a19 = 1; + a7 = 0; + a21 = 10; + a9 = 7; + a28 = 1; + a5 = 4; + a16 = 7; + return -1; + } else if(((!(a6==1)||(((a11==1)&&(a16==9))&&(a19==3)))&&(((!(a7==1)&&(((a3==1)&&((a21==11)&&(!(a27==1)&&((a20==1)&&((a3==1)&&(((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))&&(input==3)))))))&&(a17==2)))&&(a1==12))&&!(a24==1)))){ + a9 = 7; + a13 = 1; + a19 = 1; + a21 = 10; + a16 = 7; + a5 = 4; + a28 = 1; + a3 = 1; + return -1; + } else if(((((!(a11==1)&&(((a12==1)&&(a8==1))&&(a26==1)))&&!(a28==1))&&!(a23==1))&&(((((a20==1)&&((a17==2)&&((a19==3)&&(((((a5==6)&&(a1==13))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==14))))&&(input==3)))))&&(a16==10))&&(a24==1))&&(a21==12)))){ + a16 = 7; + a19 = 2; + a29 = 0; + a20 = 0; + a1 = 13; + a9 = 11; + a10 = 0; + a18 = 1; + a5 = 5; + return 23; + } else if(((!(a27==1)&&((a19==5)&&((a16==9)&&((a9==7)&&(!(a18==1)&&((a17==2)&&(((a5==4)||(a5==5))&&(input==3))))))))&&(!(a4==1)&&((!(a20==1)&&(((a4==1)||(((a21==10)&&(a6==1))&&(a2==1)))||(a27==1)))&&(a1==13))))){ + if((a7==1)){ + a5 = 5; + a19 = 1; + a1 = 14; + a25 = 1; + a16 = 7; + a18 = 1; + a20 = 1; + a8 = 1; + a9 = 10; + }else{ + a1 = 14; + a10 = 0; + a9 = 9; + a25 = 0; + a26 = 1; + a5 = 4; + a20 = 1; + } + return 21; + } else if((((a17==2)&&((a9==10)&&(((((!(a8==1)&&(((!(a8==1)&&(a13==1))&&(a20==1))&&(a21==11)))&&(a5==4))||!(a28==1))&&!(a8==1))||!(a6==1))))&&(((a16==7)&&(!(a14==1)&&((a1==12)&&(input==4))))&&(a19==3)))){ + a23 = 1; + a12 = 1; + a21 = 10; + a19 = 5; + a9 = 9; + a8 = 0; + a16 = 8; + return 25; + } else if(((((a28==1)&&((((a9==7)&&((a19==2)&&(((input==4)&&(a21==12))&&!(a24==1))))&&(a17==2))&&!(a18==1)))&&(a16==10))&&((a1==13)&&(((a26==1)||((a4==1)||(((a5==4)&&(a28==1))||!(a12==1))))&&(a20==1))))){ + a1 = 12; + a16 = 7; + a7 = 0; + a24 = 0; + a21 = 10; + a13 = 1; + a19 = 1; + return -1; + } else if((((a21==10)&&((a5==4)&&(!(a24==1)&&(!(a12==1)||(a23==1)))))&&(((((a16==8)&&((a23==1)&&((a17==2)&&((((a12==1)&&((a9==8)&&(input==4)))&&!(a27==1))&&!(a20==1)))))&&!(a27==1))&&(a1==12))&&(a19==3)))){ + a18 = 0; + a4 = 0; + a16 = 7; + a19 = 1; + a3 = 1; + a20 = 1; + a9 = 7; + return -1; + } else if((((((((a23==1)&&(a9==7))||(a24==1))&&(a17==2))&&(a16==11))&&(a1==13))&&((a19==1)&&(((a20==1)&&(((a6==1)&&(!(a27==1)&&((!(a24==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5)))&&!(a24==1))))&&(a21==10)))&&!(a4==1))))){ + a5 = 4; + a23 = 1; + a24 = 0; + a16 = 7; + a11 = 1; + a1 = 12; + return -1; + } else if((((((a0==1)&&(((a18==1)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6))))&&(a18==1)))&&(a9==9))&&!(a23==1))&&((a19==1)&&((a20==1)&&((a27==1)&&(((((a16==8)&&((a21==12)&&(a12==1)))&&(a17==2))&&(a1==13))&&!(a28==1))))))){ + a24 = 1; + a21 = 10; + a23 = 0; + a9 = 7; + a1 = 12; + a16 = 7; + a5 = 4; + a12 = 0; + a19 = 2; + return -1; + } else if((((a11==1)&&((((a11==1)&&((!(a14==1)&&((!(a20==1)&&(a6==1))&&!(a7==1)))||!(a23==1)))&&(a13==1))&&(a17==2)))&&((a19==3)&&(((a9==7)&&((a21==10)&&(((a16==10)&&(input==3))&&(a1==12))))&&(a5==4))))){ + a1 = 13; + a19 = 1; + a16 = 7; + a29 = 1; + a26 = 1; + a20 = 1; + a25 = 0; + a5 = 5; + a9 = 11; + return -1; + } else if(((((((!(a23==1)||((a24==1)||(a28==1)))&&(a3==1))||(a24==1))&&(a21==10))&&(a1==13))&&(((a16==8)&&(((((a13==1)&&((a20==1)&&(((a5==4)||(a5==5))&&(input==1))))&&(a13==1))&&(a19==5))&&(a9==9)))&&(a17==2)))){ + a6 = 1; + a5 = 4; + a8 = 0; + a1 = 12; + a19 = 1; + a16 = 7; + a12 = 1; + a9 = 7; + return -1; + } else if((((a17==2)&&((a2==1)&&((((a12==1)&&(a5==5))||(a27==1))||!(a11==1))))&&((a21==12)&&((a12==1)&&((a1==12)&&((a16==9)&&(!(a20==1)&&(((a2==1)&&(((input==5)&&(a19==2))&&(a9==10)))&&(a6==1))))))))){ + a10 = 1; + a9 = 11; + a21 = 10; + a20 = 1; + a16 = 7; + a19 = 1; + a29 = 0; + a5 = 4; + a15 = 1; + return 25; + } else if((((a17==2)&&((a16==9)&&(!(a11==1)||((a13==1)&&(a21==11)))))&&(((((!(a18==1)&&(!(a0==1)&&((a19==1)&&(!(a18==1)&&(((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4)))&&(input==4))))))&&(a1==14))&&!(a24==1))&&(a2==1))&&(a20==1)))){ + a21 = 10; + a16 = 7; + a12 = 1; + a26 = 0; + a1 = 12; + a9 = 7; + a3 = 1; + a5 = 4; + return -1; + } else if(((!(a20==1)&&((a12==1)&&((!(a26==1)&&((((((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(input==3))&&(a12==1))&&(a19==5)))&&(a1==13))))&&((a16==7)&&((a17==2)&&((a6==1)&&((((a3==1)&&(a21==12))&&!(a0==1))&&(a28==1))))))){ + a16 = 10; + a5 = 4; + a1 = 12; + a9 = 8; + a24 = 0; + a20 = 1; + a7 = 0; + a8 = 0; + return 21; + } else if((((((((input==1)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5))))&&(a20==1))&&(a17==2))&&(a12==1))&&(a19==2))&&(!(a18==1)&&((a3==1)&&((a1==12)&&(!(a28==1)||((((a16==7)&&((a3==1)||!(a6==1)))&&(a21==12))||!(a13==1)))))))){ + a7 = 0; + a16 = 9; + a5 = 6; + a2 = 1; + a21 = 10; + a1 = 13; + a9 = 11; + a14 = 0; + return 21; + } else if(((!(a4==1)&&((a17==2)&&(!(a8==1)&&((a2==1)&&(!(a20==1)&&((input==1)&&(a19==2)))))))&&(((a5==5)&&((a9==10)&&(((!(a28==1)||((a16==9)&&((a21==10)&&(a6==1))))&&!(a27==1))&&!(a24==1))))&&(a1==12)))){ + a20 = 1; + a27 = 1; + a9 = 7; + a5 = 4; + a25 = 1; + a16 = 8; + a21 = 12; + a11 = 0; + a1 = 14; + a19 = 3; + return 25; + } else if((((((((a2==1)&&((a11==1)&&((((a9==7)&&((a5==4)&&(a1==13)))||(((a9==11)&&((a1==12)&&(a5==5)))||(((a1==12)&&(a5==6))&&(a9==11))))&&(input==1))))&&(a17==2))&&!(a4==1))&&(a20==1))&&(a21==11))&&((((((a12==1)&&(a16==11))&&(a6==1))&&(a13==1))&&(a11==1))&&(a19==4)))){ + a9 = 7; + a5 = 4; + a19 = 1; + a4 = 0; + a16 = 10; + a18 = 0; + a3 = 1; + a21 = 10; + a1 = 12; + return 21; + } else if(((!(a26==1)&&((!(a4==1)&&(((input==4)&&(a5==4))&&(a1==13)))&&!(a8==1)))&&(((((a9==8)&&((a16==7)&&((a17==2)&&(((a21==12)&&((a12==1)&&(a20==1)))&&(a19==5)))))&&(a2==1))||!(a23==1))||!(a28==1)))){ + a21 = 10; + a9 = 7; + a4 = 0; + a1 = 12; + a27 = 0; + a24 = 0; + a19 = 1; + return -1; + } else if((((((a1==13)&&(!(a8==1)&&((a14==1)||((a23==1)&&(((a3==1)&&(a2==1))&&(a17==2))))))&&(a16==9))&&!(a4==1))&&(((a5==4)&&(((a9==10)&&(((a21==10)&&(input==1))&&(a19==3)))&&!(a7==1)))&&(a20==1)))){ + a19 = 1; + a16 = 7; + a8 = 0; + a23 = 1; + a1 = 12; + a14 = 0; + a9 = 7; + return -1; + } else if((((a19==5)&&(((((a1==13)&&((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))&&(input==5)))&&(a17==2))&&(a21==11))&&!(a27==1)))&&((((((!(a20==1)&&((a13==1)||!(a12==1)))&&(a16==8))&&!(a4==1))||!(a11==1))&&(a6==1))&&!(a27==1)))){ + a1 = 14; + a16 = 7; + a22 = 0; + a19 = 1; + a9 = 10; + a20 = 1; + a21 = 10; + a5 = 4; + a3 = 0; + return 22; + } else if((((a1==12)&&(((a2==1)&&(!(a8==1)&&((input==5)&&(a5==6))))&&(a9==9)))&&(((a19==2)&&((a16==11)&&((((((a21==11)&&((a28==1)&&(a23==1)))||(a24==1))||(a24==1))||(a26==1))&&(a20==1))))&&(a17==2)))){ + a3 = 1; + a21 = 10; + a19 = 1; + a16 = 7; + a9 = 7; + a7 = 0; + a5 = 4; + a2 = 1; + return -1; + } else if(((((((!(a4==1)&&(((!(a0==1)&&((a21==12)&&((a23==1)&&((a1==13)&&((input==4)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))))))&&(a16==9))&&!(a0==1)))&&!(a18==1))&&(a6==1))&&(a19==2))&&(a17==2))&&((a23==1)&&(a20==1)))){ + a2 = 1; + a16 = 7; + a11 = 1; + a21 = 10; + a9 = 7; + a5 = 4; + a19 = 1; + a0 = 0; + a1 = 12; + return -1; + } else if((((a1==13)&&(((a17==2)&&(!(a24==1)&&((a19==2)&&(!(a0==1)&&(a11==1)))))&&(a16==7)))&&((a9==9)&&(((a2==1)&&((((a21==10)&&((a23==1)&&((a5==6)&&(input==4))))&&!(a27==1))&&!(a27==1)))&&(a20==1))))){ + a19 = 1; + a9 = 7; + a12 = 1; + a1 = 12; + a7 = 0; + a5 = 4; + a14 = 0; + return -1; + } else if((((a16==10)&&((((a2==1)&&((!(a14==1)&&((input==3)&&(a5==5)))&&(a19==5)))&&(a17==2))&&(a1==12)))&&((a27==1)||(((a2==1)&&((a18==1)||(!(a20==1)&&(((a28==1)&&(a9==8))||!(a28==1)))))&&(a21==11))))){ + if((a26==1)){ + a9 = 7; + a15 = 0; + a16 = 7; + a20 = 1; + a10 = 1; + a1 = 14; + a21 = 10; + a19 = 1; + }else{ + a5 = 4; + a9 = 11; + a3 = 0; + a10 = 1; + a1 = 14; + a19 = 1; + a21 = 10; + a16 = 7; + a20 = 1; + a4 = 1; + } + return -1; + } else if((((a8==1)||((a9==8)&&((a11==1)&&((a17==2)&&(((a16==10)&&((a6==1)&&!(a20==1)))&&(a1==12))))))&&(!(a4==1)&&((a13==1)&&((a5==4)&&((a19==4)&&((a23==1)&&((a11==1)&&((a21==10)&&(input==3)))))))))){ + if((a13==1)){ + a18 = 1; + a5 = 5; + a21 = 11; + a1 = 14; + a20 = 1; + a12 = 0; + a29 = 1; + }else{ + a21 = 12; + a25 = 0; + a19 = 3; + a5 = 6; + a1 = 14; + a27 = 1; + a9 = 11; + a10 = 1; + } + return 25; + } else if((((a5==4)&&((a12==1)&&((((!(a8==1)&&(a2==1))&&!(a20==1))&&(a23==1))&&(a21==12))))&&((a1==13)&&((a17==2)&&((a9==11)&&((!(a18==1)&&((((a19==4)&&(input==3))&&!(a24==1))&&(a11==1)))&&(a16==9))))))){ + a14 = 1; + a4 = 1; + a9 = 8; + a19 = 1; + a1 = 12; + a5 = 5; + a25 = 0; + return -1; + } else if(((((a4==1)||((a16==8)&&(((a1==12)&&(((a19==4)&&(a6==1))||!(a2==1)))||!(a3==1))))||(a18==1))&&((a13==1)&&((((a17==2)&&((a21==12)&&((((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(input==3))))&&(a20==1))&&(a6==1))))){ + a5 = 4; + a19 = 1; + a9 = 7; + a13 = 1; + a26 = 0; + a21 = 10; + a16 = 7; + return -1; + } else if((((a9==7)&&((a11==1)||!(a6==1)))&&((a17==2)&&(!(a0==1)&&(!(a7==1)&&((((a20==1)&&((a12==1)&&((a1==14)&&((((a21==10)&&((a16==7)&&(input==6)))&&(a19==5))&&(a5==5)))))&&(a2==1))&&(a11==1))))))){ + a21 = 11; + a27 = 0; + a1 = 13; + a16 = 8; + a9 = 9; + a19 = 1; + a20 = 0; + a8 = 0; + a0 = 0; + return 21; + } else if((((((a1==14)&&((a19==2)&&((a23==1)&&((a21==11)&&(input==6)))))&&!(a4==1))&&(a9==8))&&((a17==2)&&((((((a5==5)&&(((a28==1)&&(a28==1))&&!(a7==1)))&&(a16==8))||!(a11==1))||!(a11==1))&&!(a20==1))))){ + a20 = 1; + a1 = 13; + a21 = 12; + a16 = 10; + a6 = 1; + a13 = 1; + a14 = 0; + return 21; + } else if(((!(a26==1)&&((a21==11)&&(!(a0==1)&&((((input==4)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(a16==7))&&(a1==12)))))&&(((a7==1)||((a0==1)||((a19==2)&&(((!(a20==1)&&(a6==1))||(a14==1))||!(a11==1)))))&&(a17==2)))){ + a24 = 0; + a26 = 0; + a5 = 4; + a19 = 1; + a21 = 10; + a18 = 0; + a20 = 1; + a9 = 7; + return -1; + } else if(((!(a28==1)||(!(a28==1)||(!(a28==1)||((!(a24==1)&&((a16==10)&&(a11==1)))&&!(a20==1)))))&&((((((input==3)&&(((a19==2)&&(((a1==12)&&(a5==5))&&(a9==7)))||(((a19==1)&&((a9==11)&&((a1==14)&&(a5==6))))||((a19==2)&&(((a1==12)&&(a5==4))&&(a9==7))))))&&!(a27==1))&&!(a26==1))&&(a17==2))&&(a21==12)))){ + a22 = 1; + a24 = 1; + a5 = 4; + a0 = 1; + a19 = 3; + a21 = 10; + a1 = 14; + a9 = 8; + return -1; + } else if(((((((a5==4)&&(((((a1==12)&&(input==3))&&(a13==1))&&(a19==2))&&(a21==12)))&&!(a14==1))&&(a17==2))&&(a13==1))&&(((((a9==11)&&((a14==1)||((a6==1)&&(a12==1))))&&(a16==8))||(a0==1))&&!(a20==1)))){ + a20 = 1; + a16 = 7; + a19 = 1; + a21 = 10; + a29 = 0; + a9 = 9; + a3 = 0; + a26 = 1; + return -1; + } else if((((((a17==2)&&((!(a18==1)&&((a12==1)&&(a21==10)))&&(a3==1)))&&(a20==1))&&(a9==9))&&(((a19==1)&&((((a3==1)&&((((input==5)&&((a5==4)||(a5==5)))&&!(a18==1))&&(a6==1)))&&(a16==11))&&(a1==14)))&&(a6==1)))){ + a9 = 7; + a6 = 1; + a11 = 1; + a1 = 12; + a24 = 0; + a5 = 4; + a16 = 7; + return -1; + } else if((((a16==9)&&((a17==2)&&(!(a27==1)&&(((a21==12)&&(((a20==1)&&((input==1)&&(a5==4)))&&!(a8==1)))&&(a3==1)))))&&(((a1==14)&&(((!(a7==1)&&(!(a11==1)||(a28==1)))&&(a9==11))||(a7==1)))&&(a19==3)))){ + a9 = 7; + a1 = 12; + a3 = 1; + a14 = 0; + a19 = 1; + a21 = 10; + a16 = 7; + return -1; + } else if((((a21==11)&&((a12==1)&&((a9==10)&&(((a28==1)&&(!(a24==1)&&((a20==1)&&(((a5==4)||(a5==5))&&(input==3)))))&&(a11==1)))))&&((((a17==2)&&((a2==1)&&((a1==12)&&((a19==4)&&(a3==1)))))&&(a16==9))&&!(a0==1)))){ + a9 = 7; + a21 = 10; + a16 = 7; + a12 = 1; + a14 = 0; + a5 = 4; + a19 = 1; + a3 = 1; + return -1; + } else if((((((a1==13)&&((a6==1)&&((a16==9)&&((a17==2)&&((input==1)&&(((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))))))))&&!(a7==1))&&(a19==4))&&((!(a20==1)&&((a24==1)||((a26==1)||(((a12==1)&&!(a7==1))&&(a21==10)))))&&!(a7==1)))){ + a10 = 0; + a16 = 7; + a9 = 11; + a19 = 1; + a5 = 4; + a25 = 1; + a20 = 1; + a1 = 12; + return 25; + } else if(((((((input==5)&&((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5))))&&!(a24==1))&&(a3==1))&&(a19==1))&&((((a24==1)||((a16==7)&&(((((a17==2)&&((a12==1)&&!(a20==1)))&&!(a27==1))&&(a21==12))&&(a1==14))))||(a26==1))&&!(a4==1)))){ + a1 = 12; + a2 = 1; + a21 = 10; + a5 = 4; + a20 = 1; + a7 = 0; + a9 = 7; + a11 = 1; + return -1; + } else if((((a1==13)&&((!(a14==1)&&((a13==1)&&((a6==1)&&((input==6)&&(((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6))))))))&&(a3==1)))&&(((!(a28==1)||(((a20==1)&&((a21==11)&&((a19==5)&&(a23==1))))||(a0==1)))&&(a17==2))&&(a16==7)))){ + a14 = 0; + a26 = 0; + a21 = 12; + a5 = 5; + a19 = 2; + a9 = 8; + a18 = 0; + a16 = 8; + a1 = 12; + return 22; + } else if(((!(a14==1)&&((a17==2)&&((a1==12)&&(((!(a20==1)&&(input==3))&&(a5==4))&&(a11==1)))))&&(((a19==4)&&(((a21==12)&&((a9==7)&&((!(a27==1)&&((a3==1)&&!(a14==1)))&&(a16==10))))||!(a13==1)))&&(a23==1)))){ + if((a6==1)){ + a9 = 9; + a19 = 3; + a21 = 10; + a26 = 1; + a1 = 13; + a16 = 11; + a28 = 0; + }else{ + a7 = 1; + a19 = 3; + a20 = 1; + a4 = 1; + a9 = 8; + a1 = 14; + a21 = 10; + a14 = 1; + a16 = 9; + } + return 21; + } else if((((a17==2)&&((a9==11)&&((a20==1)&&((((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a16==7))&&!(a27==1)))))&&((a1==13)&&(!(a13==1)||((!(a7==1)&&((a21==11)&&((((a19==4)&&(a6==1))||(a7==1))&&(a13==1))))||(a7==1)))))){ + a12 = 1; + a1 = 12; + a19 = 1; + a23 = 1; + a21 = 10; + a9 = 7; + a27 = 0; + a5 = 4; + return -1; + } else if((((a8==1)||((!(a4==1)&&(!(a27==1)&&((a27==1)||(a2==1))))&&(a16==10)))&&((a21==10)&&(((a13==1)&&(((((a19==1)&&((((a5==4)||(a5==5))&&(input==4))&&!(a26==1)))&&(a1==12))&&(a17==2))&&(a9==8)))&&(a20==1))))){ + a16 = 7; + a0 = 0; + a9 = 7; + a5 = 4; + a4 = 0; + a2 = 1; + return -1; + } else if((((a13==1)&&((((a19==3)&&(((((input==6)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(a1==13))&&(a16==11))&&!(a20==1)))&&(a21==10))&&(a11==1)))&&(((((a2==1)&&((a11==1)||(a27==1)))&&(a17==2))||(a18==1))||!(a3==1)))){ + a28 = 0; + a16 = 7; + a20 = 1; + a23 = 0; + a19 = 1; + a15 = 0; + a1 = 12; + a9 = 10; + a5 = 6; + return 25; + } else if((((a13==1)&&((((a19==2)&&(!(a24==1)&&(((a17==2)&&(!(a20==1)&&((input==6)&&((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4))))))&&(a1==12))))&&(a16==8))&&!(a18==1)))&&((a26==1)||((a21==12)&&(!(a23==1)||((a2==1)||!(a12==1))))))){ + a4 = 1; + a5 = 4; + a19 = 1; + a9 = 10; + a21 = 10; + a10 = 0; + a20 = 1; + a15 = 0; + a16 = 7; + a1 = 14; + return 21; + } else if((((a1==12)&&((((((a6==1)||(a26==1))||(a26==1))&&(a6==1))&&(a9==8))&&(a19==5)))&&(((a13==1)&&((a21==11)&&((((a3==1)&&((((a5==5)||(a5==6))&&(input==1))&&!(a20==1)))&&(a17==2))&&(a16==7))))&&!(a0==1)))){ + if((a3==1)){ + a1 = 14; + a5 = 4; + a11 = 1; + a18 = 0; + a28 = 1; + a9 = 9; + }else{ + a4 = 0; + a9 = 7; + a7 = 0; + a13 = 1; + a1 = 13; + a19 = 3; + a20 = 1; + a5 = 6; + a16 = 8; + } + return 25; + } else if((((a1==12)&&((((((a6==1)&&(a11==1))||(a0==1))||!(a6==1))&&(a11==1))&&(a20==1)))&&((a5==5)&&((a19==2)&&((a9==9)&&(((a21==12)&&((((input==4)&&(a16==8))&&(a11==1))&&(a3==1)))&&(a17==2))))))){ + a19 = 1; + a21 = 10; + a24 = 0; + a0 = 0; + a16 = 7; + a5 = 4; + a9 = 7; + a7 = 0; + return -1; + } else if((((a19==3)&&(((a16==9)&&((a12==1)&&(!(a7==1)&&((a17==2)&&(!(a20==1)&&(input==4))))))&&(a9==8)))&&((((!(a28==1)||((a1==14)&&((!(a8==1)&&(a3==1))||!(a28==1))))&&(a5==5))&&!(a14==1))&&(a21==10)))){ + if((a23==1)){ + a29 = 1; + a10 = 1; + a2 = 0; + a9 = 11; + a1 = 13; + }else{ + a1 = 12; + a5 = 6; + a16 = 7; + a29 = 0; + a11 = 0; + a19 = 1; + a2 = 0; + a20 = 1; + a9 = 9; + } + return -1; + } else if(((((a17==2)&&((a12==1)&&!(a20==1)))&&(a21==11))&&((!(a7==1)&&((a5==4)&&((((a9==9)&&((((((a19==3)&&(input==1))&&(a6==1))&&!(a8==1))&&(a23==1))&&(a28==1)))&&!(a0==1))&&(a1==14))))&&(a16==8)))){ + a4 = 0; + a24 = 0; + a19 = 1; + a21 = 10; + a16 = 7; + a9 = 7; + a1 = 12; + a20 = 1; + return -1; + } else if((((a2==1)&&((((a21==11)&&(a6==1))&&(a19==2))||!(a11==1)))&&(!(a27==1)&&(((!(a20==1)&&((a5==4)&&((((((input==1)&&(a17==2))&&(a3==1))&&(a16==10))&&!(a4==1))&&(a1==14))))&&(a9==11))&&(a23==1))))){ + if((a4==1)){ + a9 = 7; + a2 = 0; + a13 = 0; + a15 = 0; + a5 = 6; + a21 = 12; + }else{ + a19 = 5; + a1 = 13; + a6 = 0; + a5 = 6; + a21 = 10; + a2 = 0; + a20 = 1; + a9 = 7; + a23 = 0; + } + return -1; + } else if((((a21==11)&&(((a1==14)&&((!(a14==1)&&(!(a20==1)&&(((((input==6)&&(((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))&&(a17==2))&&(a16==9))&&(a3==1))))&&(a12==1)))&&(a2==1)))&&(((a8==1)||((a23==1)||(a18==1)))&&(a19==2)))){ + a5 = 4; + a26 = 1; + a16 = 7; + a21 = 10; + a9 = 7; + a24 = 1; + a1 = 12; + a20 = 1; + a13 = 0; + return -1; + } else if(((!(a7==1)&&(((a16==10)&&(!(a20==1)&&((((!(a24==1)&&(a13==1))&&(a12==1))&&(a11==1))&&(a19==1))))&&(a17==2)))&&((a9==9)&&((a21==11)&&((a1==14)&&(!(a0==1)&&(((input==5)&&((a5==4)||(a5==5)))&&(a13==1)))))))){ + a9 = 11; + a5 = 5; + a12 = 0; + a7 = 1; + a25 = 0; + a20 = 1; + a19 = 4; + return 26; + } else if((((a16==7)&&(((((a11==1)&&((a2==1)&&(!(a12==1)||(((a13==1)||(a4==1))&&(a21==11)))))&&(a1==14))&&(a9==7))&&(a17==2)))&&((!(a0==1)&&((((a5==4)&&(input==5))&&(a20==1))&&!(a4==1)))&&(a19==3)))){ + a2 = 1; + a16 = 8; + a7 = 0; + a28 = 1; + a5 = 6; + a1 = 12; + a19 = 2; + return 26; + } else if(((((a16==9)&&((a14==1)&&((a1==12)&&(((a21==10)&&((a17==2)&&(((a13==1)&&(a18==1))&&!(a2==1))))&&(a7==1)))))&&!(a2==1))&&((((a19==3)&&((((a5==4)||(a5==5))&&(input==1))&&(a9==11)))&&(a20==1))&&(a26==1)))){ + a23 = 0; + a16 = 7; + a4 = 1; + a19 = 1; + a18 = 1; + a9 = 9; + a1 = 13; + a5 = 4; + return 21; + } else if(((((((((a1==13)&&(input==6))&&(a11==1))&&(a13==1))&&(a11==1))&&(a19==5))&&(a12==1))&&((a16==8)&&((a17==2)&&((a9==11)&&((a21==10)&&(((((a2==1)&&!(a20==1))||(a4==1))&&(a5==6))||!(a28==1)))))))){ + a11 = 1; + a27 = 0; + a19 = 3; + a5 = 5; + a9 = 10; + a8 = 0; + a1 = 12; + a20 = 1; + a16 = 9; + a21 = 12; + return 21; + } else if(((((a4==1)||((a20==1)&&((a21==11)&&(((a13==1)&&(a12==1))&&(a6==1)))))&&(a1==14))&&(((a17==2)&&((a16==8)&&((a12==1)&&((!(a7==1)&&((input==3)&&((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9)))))&&!(a7==1)))))&&(a19==4)))){ + a21 = 10; + a9 = 7; + a5 = 4; + a19 = 1; + a0 = 0; + a16 = 7; + a28 = 1; + a1 = 12; + a2 = 1; + return -1; + } else if((((!(a23==1)||((a1==12)&&(((a23==1)&&(a21==10))&&(a23==1))))&&(a9==7))&&((((a3==1)&&((a19==4)&&(!(a0==1)&&((((a16==7)&&(((a5==4)||(a5==5))&&(input==6)))&&!(a26==1))&&(a17==2)))))&&!(a26==1))&&(a20==1)))){ + a19 = 3; + a21 = 11; + a5 = 4; + a27 = 0; + a13 = 1; + a0 = 0; + a9 = 11; + return 25; + } else if((((!(a2==1)||(((a23==1)&&!(a24==1))&&(a1==12)))||(a0==1))&&((((((((((((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6))))&&(input==3))&&(a17==2))&&(a21==10))&&(a16==11))&&!(a27==1))&&!(a26==1))&&!(a7==1))&&(a19==4))&&(a20==1)))){ + a14 = 0; + a0 = 0; + a12 = 1; + a9 = 7; + a16 = 7; + a19 = 1; + a5 = 4; + return -1; + } else if(((((((!(a20==1)&&((a28==1)||!(a12==1)))&&(a21==10))&&(a17==2))&&(a19==1))||(a27==1))&&((a3==1)&&(((a1==12)&&(((a11==1)&&(((((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(input==3))&&(a3==1)))&&!(a26==1)))&&(a16==7))))){ + a14 = 0; + a20 = 1; + a24 = 0; + a9 = 7; + a5 = 4; + a26 = 0; + return -1; + } else if(((((a21==11)&&((a1==12)&&((a12==1)&&((a17==2)&&((a20==1)&&(!(a8==1)&&((input==6)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))))))))&&!(a4==1))&&(!(a11==1)||(((((a11==1)&&(a13==1))&&(a16==10))&&!(a18==1))&&(a19==5))))){ + a21 = 10; + a16 = 7; + a2 = 1; + a4 = 0; + a19 = 1; + a23 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if(((((a6==1)&&((a1==12)&&(((input==4)&&(((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))))&&(a11==1))))&&!(a26==1))&&((((((!(a20==1)&&((a16==11)&&((a4==1)||(a13==1))))&&(a19==2))||(a8==1))&&(a17==2))&&(a21==10))||(a7==1)))){ + a3 = 0; + a10 = 0; + a20 = 1; + a19 = 1; + a16 = 7; + a9 = 10; + a5 = 5; + a11 = 0; + return 25; + } else if(((!(a24==1)&&(!(a18==1)&&((a28==1)&&(((input==4)&&(a9==9))&&!(a20==1)))))&&(((a1==12)&&((!(a28==1)||(((a19==3)&&((((a5==4)&&(a28==1))&&(a13==1))&&(a21==12)))&&(a17==2)))&&!(a26==1)))&&(a16==9)))){ + if((a18==1)){ + a20 = 1; + a21 = 11; + a5 = 6; + a9 = 11; + a12 = 0; + a16 = 7; + a18 = 1; + a10 = 1; + a19 = 1; + }else{ + a18 = 1; + a10 = 1; + a9 = 11; + a2 = 0; + a21 = 10; + a20 = 1; + } + return 23; + } else if((((a20==1)&&((a1==13)&&(((a21==12)&&((a28==1)&&(((a2==1)&&((input==5)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))))&&!(a4==1))))&&(a16==8))))&&((a17==2)&&((!(a0==1)&&(((a23==1)&&!(a7==1))&&(a19==2)))||!(a11==1))))){ + a9 = 8; + a3 = 1; + a1 = 14; + a16 = 7; + a21 = 10; + a5 = 5; + a20 = 0; + a8 = 0; + a19 = 5; + a12 = 1; + return 23; + } else if((((a1==13)&&((a20==1)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==4))))&&(((((a23==1)&&((a18==1)||((((a19==3)&&((a21==10)&&((a16==7)&&(a28==1))))&&(a23==1))&&(a17==2))))||(a26==1))||!(a12==1))||(a18==1)))){ + a19 = 1; + a28 = 1; + a9 = 7; + a5 = 4; + a8 = 0; + a1 = 12; + a11 = 1; + return -1; + } else if(((((a12==1)&&((a3==1)&&((((input==1)&&(a17==2))&&(a19==2))&&(a20==1))))&&!(a18==1))&&(((((a1==14)&&(((a5==5)&&(((a4==1)||(a6==1))&&!(a14==1)))&&(a16==10)))&&(a9==9))||(a18==1))&&(a21==12)))){ + a16 = 7; + a1 = 13; + a21 = 10; + a3 = 1; + a13 = 1; + a11 = 1; + return 25; + } else if((((a2==1)&&((a16==11)&&(((a20==1)&&((((a5==5)||(a5==6))&&(input==4))&&!(a4==1)))&&(a9==9))))&&(((!(a14==1)&&(((a1==14)&&(!(a23==1)||((a19==3)&&((a2==1)&&!(a4==1)))))&&(a17==2)))&&(a21==11))&&(a11==1)))){ + a3 = 1; + a21 = 10; + a27 = 0; + a23 = 1; + a9 = 7; + a5 = 4; + a16 = 7; + a1 = 12; + a19 = 1; + return -1; + } else if((((((a27==1)&&(((!(a3==1)&&(a13==1))&&(a24==1))&&(a27==1)))&&(a16==7))&&!(a20==1))&&(!(a28==1)&&((((a17==2)&&((!(a12==1)&&((a9==8)&&((input==5)&&((a5==4)||(a5==5)))))&&(a1==14)))&&(a21==12))&&(a19==5))))){ + a3 = 0; + a28 = 0; + a20 = 1; + a21 = 10; + a5 = 4; + a14 = 1; + a9 = 10; + a19 = 1; + return 21; + } else if((((a16==8)&&((a12==1)&&((a23==1)&&((a18==1)||(!(a26==1)&&(((a28==1)&&!(a20==1))&&(a13==1)))))))&&((a17==2)&&((a19==5)&&(((((((a5==6)&&(a1==12))&&(a9==11))||(((a1==13)&&(a5==4))&&(a9==7)))&&(input==6))&&!(a7==1))&&(a21==12)))))){ + a16 = 7; + a20 = 1; + a5 = 5; + a1 = 12; + a28 = 0; + a22 = 1; + a9 = 10; + a18 = 1; + return 21; + } else if(((((a16==7)&&((a9==10)&&((a1==13)&&((((input==6)&&(a19==4))&&(a20==1))&&(a21==10)))))&&!(a8==1))&&((!(a11==1)||(((!(a14==1)&&(!(a27==1)&&((a5==5)&&(a12==1))))&&(a17==2))&&!(a14==1)))||(a18==1)))){ + a21 = 11; + a4 = 0; + a3 = 1; + a19 = 5; + a9 = 7; + a27 = 0; + a5 = 4; + return 25; + } else if(((((a16==7)&&(!(a13==1)||((a1==12)&&(a6==1))))&&!(a8==1))&&((((a12==1)&&(((((a3==1)&&((a6==1)&&((((a5==5)||(a5==6))&&(input==5))&&(a9==11))))&&(a19==5))&&!(a27==1))&&(a20==1)))&&(a17==2))&&(a21==10)))){ + a4 = 0; + a26 = 0; + a21 = 12; + a14 = 0; + a1 = 13; + a5 = 6; + a19 = 2; + return 21; + } else if((((((a19==4)&&((a5==5)&&((a9==7)&&((a26==1)||((a23==1)&&(a11==1))))))&&(a1==14))&&(a21==10))&&((a6==1)&&((a11==1)&&(!(a7==1)&&(!(a4==1)&&((((input==5)&&(a17==2))&&!(a20==1))&&(a16==9)))))))){ + a11 = 0; + a3 = 0; + a19 = 2; + a16 = 7; + a9 = 11; + a1 = 12; + a25 = 1; + a20 = 1; + return -1; + } else if((((a19==1)&&((((((a12==1)&&(!(a4==1)&&(((((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5)))&&(input==3))&&!(a18==1))&&!(a0==1))))&&(a17==2))&&(a21==10))&&(a2==1))&&!(a20==1)))&&(((!(a2==1)||(a2==1))&&(a16==7))&&(a1==14)))){ + a9 = 7; + a1 = 12; + a2 = 1; + a28 = 1; + a11 = 1; + a5 = 4; + a20 = 1; + return -1; + } else if(((((a21==10)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==4)))&&(a19==1))&&(((a17==2)&&(((a16==9)&&((!(a6==1)||(((((a0==1)||(a3==1))||(a4==1))||!(a11==1))&&(a1==14)))||(a8==1)))&&(a20==1)))||!(a12==1)))){ + a16 = 7; + a3 = 1; + a9 = 7; + a11 = 1; + a23 = 1; + a5 = 4; + a1 = 12; + return -1; + } else if(((!(a18==1)&&(((((((a1==14)&&(input==1))&&(a19==1))&&(a5==6))&&!(a20==1))&&(a21==11))&&!(a4==1)))&&((a24==1)||(((a9==11)&&(((((a12==1)&&(a28==1))||(a27==1))&&(a16==10))&&(a17==2)))||!(a28==1))))){ + a16 = 7; + a3 = 0; + a27 = 1; + a21 = 10; + a28 = 0; + a20 = 1; + return -1; + } else if(((!(a11==1)||(((a19==3)&&((!(a11==1)||((a1==12)&&((a21==11)&&((((a16==10)&&(a2==1))&&!(a4==1))&&(a17==2)))))&&!(a18==1)))||!(a13==1)))&&((a9==10)&&((((input==6)&&((a5==4)||(a5==5)))&&(a13==1))&&(a20==1))))){ + a16 = 7; + a21 = 10; + a5 = 4; + a3 = 1; + a28 = 1; + a9 = 7; + a19 = 1; + a23 = 1; + return -1; + } else if(((((((((a9==9)&&((((input==6)&&(a5==6))&&(a21==12))&&(a17==2)))&&!(a27==1))&&(a6==1))&&(a19==3))&&!(a4==1))&&(a16==9))&&((((a2==1)&&((a11==1)&&((a1==14)&&(a13==1))))&&!(a14==1))&&!(a20==1)))){ + a10 = 1; + a1 = 12; + a9 = 8; + a5 = 5; + a19 = 4; + a11 = 0; + a0 = 1; + return 21; + } else if((((a5==6)&&((a9==10)&&((a19==2)&&((a16==9)&&(!(a20==1)&&(((a27==1)||((!(a28==1)||((!(a2==1)||(a13==1))&&!(a4==1)))&&!(a18==1)))&&(a21==12)))))))&&((((input==5)&&(a17==2))&&(a1==12))&&!(a7==1)))){ + if((a24==1)){ + a16 = 7; + a20 = 1; + a11 = 0; + a29 = 1; + a6 = 0; + a21 = 10; + a5 = 4; + }else{ + a19 = 1; + a5 = 5; + a21 = 10; + a12 = 0; + a16 = 7; + a9 = 7; + a1 = 13; + a20 = 1; + a6 = 0; + a28 = 0; + } + return -1; + } else if(((((((a8==1)&&((a20==1)&&(a11==1)))&&(a0==1))&&(a19==3))&&(a17==2))&&((((((!(a11==1)&&(!(a13==1)&&((((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(input==5))))&&(a0==1))&&!(a2==1))&&(a1==12))&&(a16==11))&&(a21==11)))){ + a16 = 7; + a21 = 10; + a8 = 1; + a9 = 8; + a1 = 13; + a10 = 0; + a5 = 4; + a19 = 5; + a11 = 0; + a20 = 0; + return 25; + } else if(((((((((a11==1)&&(((a16==10)&&((a3==1)&&(((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&!(a26==1))))&&(a9==10)))&&!(a7==1))&&(a2==1))&&(a21==12))&&(a19==4))&&(a20==1))&&((a17==2)&&((!(a14==1)&&(a13==1))&&(a1==12))))){ + a19 = 2; + a8 = 0; + a5 = 4; + a1 = 13; + a9 = 9; + a16 = 7; + a21 = 10; + a3 = 1; + a27 = 0; + return 25; + } else if((((((!(a0==1)&&(((a3==1)&&((a23==1)&&((input==4)&&(((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))))))&&(a20==1)))&&(a19==4))&&!(a14==1))&&(a17==2))&&(((a21==11)&&(!(a3==1)||(((a23==1)&&(a2==1))&&(a16==8))))&&(a1==12)))){ + a9 = 8; + a0 = 0; + a5 = 6; + a19 = 1; + a2 = 1; + a1 = 13; + return 25; + } else if((((a9==7)&&((a17==2)&&((a16==11)&&(((!(a14==1)&&(a6==1))&&(a1==13))||(a26==1)))))&&((a19==3)&&((a3==1)&&(((a12==1)&&(((a13==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a20==1)))&&(a21==11)))&&(a23==1)))))){ + a5 = 4; + a28 = 1; + a8 = 0; + a19 = 5; + a16 = 8; + a20 = 0; + a1 = 12; + a9 = 8; + return 21; + } else if((((a21==10)&&((a17==2)&&(((a13==1)&&(((a3==1)&&((input==5)&&(((a9==11)&&((a1==12)&&(a5==6)))||(((a1==13)&&(a5==4))&&(a9==7)))))&&(a20==1)))&&(a16==11))))&&(!(a8==1)&&((a19==4)&&((a2==1)&&(((a3==1)||(a27==1))&&!(a0==1))))))){ + a16 = 7; + a24 = 0; + a1 = 12; + a7 = 0; + a9 = 7; + a19 = 1; + a3 = 1; + a5 = 4; + return -1; + } else if((((a21==11)&&((((!(a14==1)&&(((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))&&(input==6)))&&!(a14==1))&&!(a20==1))&&(a19==3)))&&(((a14==1)||((a11==1)&&((a17==2)&&(!(a7==1)&&((a16==7)&&((a3==1)||!(a2==1)))))))&&(a1==13)))){ + a1 = 12; + a23 = 1; + a4 = 0; + a9 = 7; + a14 = 0; + a21 = 10; + a20 = 1; + a5 = 4; + a19 = 1; + return -1; + } else if(((((a17==2)&&(((a19==2)&&(a6==1))&&(a1==14)))&&(a14==1))&&(((((a16==11)&&((((a21==12)&&(((input==3)&&(((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))))&&(a4==1)))&&!(a12==1))&&(a20==1)))&&(a26==1))&&(a14==1))&&!(a28==1)))){ + a19 = 5; + a9 = 8; + a28 = 0; + a29 = 1; + a1 = 13; + a5 = 6; + a16 = 7; + return -1; + } else if(((((a16==7)&&(!(a20==1)&&(((((a1==13)&&((((a5==5)||(a5==6))&&(input==3))&&(a6==1)))&&!(a0==1))&&(a28==1))&&(a9==7))))&&(a19==3))&&((a17==2)&&(((a21==12)&&((a14==1)||(!(a2==1)||(a28==1))))||!(a28==1))))){ + a20 = 1; + a5 = 4; + a19 = 1; + a4 = 0; + a11 = 1; + a24 = 0; + a21 = 10; + a1 = 12; + return -1; + } else if((((a17==2)&&((((a24==1)||((a16==7)&&(a12==1)))&&(a3==1))&&(a12==1)))&&(!(a0==1)&&(!(a24==1)&&(((a20==1)&&(!(a14==1)&&((input==4)&&(((a19==3)&&(((a1==12)&&(a5==4))&&(a9==7)))||(((a19==2)&&(((a5==5)&&(a1==14))&&(a9==11)))||((((a5==6)&&(a1==14))&&(a9==11))&&(a19==2)))))))&&(a21==11)))))){ + a11 = 1; + a21 = 10; + a5 = 4; + a2 = 1; + a19 = 1; + a1 = 12; + a3 = 1; + a9 = 7; + return -1; + } else if((((a21==12)&&((a19==1)&&(((a20==1)&&(((a12==1)&&(((input==1)&&(((a9==11)&&((a1==12)&&(a5==6)))||(((a5==4)&&(a1==13))&&(a9==7))))&&(a2==1)))&&!(a24==1)))&&(a3==1))))&&((a16==7)&&(((a18==1)||((a17==2)&&(a28==1)))&&(a6==1))))){ + a9 = 9; + a1 = 12; + a23 = 1; + a6 = 1; + a19 = 5; + a16 = 8; + a13 = 1; + a5 = 4; + return 25; + } else if(((((((a3==1)&&((((a19==5)&&(!(a14==1)&&((a6==1)&&((input==6)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))))))&&!(a26==1))&&(a1==13)))&&(a12==1))&&(a21==10))&&(a17==2))&&(((a20==1)&&((a3==1)&&(a12==1)))&&(a16==11)))){ + a27 = 0; + a8 = 0; + a9 = 7; + a23 = 1; + a5 = 4; + a19 = 1; + a16 = 7; + a1 = 12; + return -1; + } else if((((a16==11)&&((a6==1)&&((a9==10)&&(((a20==1)&&((((a13==1)&&((input==4)&&((a5==6)||((a5==4)||(a5==5)))))&&(a17==2))&&!(a4==1)))&&(a1==14)))))&&(((a19==4)&&((a21==11)&&(((a6==1)&&!(a14==1))&&(a11==1))))&&(a3==1)))){ + a19 = 1; + a6 = 1; + a5 = 4; + a13 = 1; + a21 = 10; + a1 = 12; + a9 = 7; + a8 = 0; + a16 = 7; + return -1; + } else if(((!(a0==1)&&((a19==1)&&(!(a26==1)&&((a16==7)&&((a17==2)&&((a21==11)&&((a9==10)&&(!(a4==1)&&(((a1==12)&&((input==6)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a20==1))))))))))&&(!(a4==1)&&(((a13==1)&&(a23==1))||!(a2==1))))){ + a16 = 9; + a20 = 1; + a3 = 1; + a19 = 4; + a9 = 9; + a5 = 5; + a1 = 14; + a23 = 1; + a21 = 10; + return 23; + } else if((((a19==4)&&((((a6==1)&&(a28==1))&&(a17==2))||!(a23==1)))&&((((a2==1)&&(!(a0==1)&&((a20==1)&&(!(a18==1)&&((((input==3)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(a21==10))&&(a16==10))))))&&(a13==1))&&(a1==12)))){ + a13 = 1; + a28 = 1; + a16 = 7; + a14 = 0; + a19 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if(((((a13==1)&&((a5==5)&&((((a20==1)&&((a16==8)&&((a23==1)&&(((input==6)&&(a9==9))&&(a11==1)))))&&(a28==1))&&(a1==12))))&&!(a0==1))&&(((a21==12)&&((a12==1)&&((a19==3)&&(a23==1))))&&(a17==2)))){ + a24 = 0; + a9 = 11; + a20 = 0; + a21 = 10; + a19 = 5; + a3 = 1; + a0 = 0; + return 21; + } else if((((a21==12)&&((a19==3)&&(!(a26==1)&&(!(a3==1)||((a17==2)&&((a24==1)||(a6==1)))))))&&((a1==14)&&((a16==11)&&((!(a0==1)&&((((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))&&(input==1))&&(a2==1))&&(a20==1)))&&!(a0==1)))))){ + a21 = 10; + a24 = 0; + a19 = 1; + a4 = 0; + a9 = 7; + a5 = 4; + a1 = 12; + a16 = 7; + return -1; + } else if((((a1==12)&&((a21==10)&&(!(a7==1)&&((a19==2)&&((a9==10)&&(((a12==1)&&((a17==2)&&(input==3)))&&!(a24==1)))))))&&(((a5==5)&&((a20==1)&&((!(a6==1)||((a23==1)||!(a6==1)))&&(a28==1))))&&(a16==10)))){ + a8 = 0; + a11 = 1; + return -1; + } else if((((a27==1)||((((a19==3)&&(((a7==1)||((((a12==1)&&(a17==2))&&(a5==6))&&(a21==10)))&&(a16==9)))&&!(a14==1))||!(a3==1)))&&((((a9==11)&&(((a20==1)&&(input==4))&&!(a18==1)))&&(a1==13))&&(a28==1)))){ + a12 = 1; + a5 = 4; + a28 = 1; + a9 = 7; + a8 = 0; + return 25; + } else if(((((!(a2==1)||(a28==1))||(a8==1))&&(a20==1))&&(((a21==10)&&((a1==12)&&(((((!(a4==1)&&((((a9==8)&&(input==4))&&(a19==1))&&(a12==1)))&&(a17==2))&&(a12==1))&&!(a8==1))&&(a16==11))))&&(a5==4)))){ + a3 = 1; + a1 = 14; + a19 = 4; + a9 = 11; + a16 = 7; + a13 = 1; + a14 = 0; + return 25; + } else if((((!(a20==1)&&(((a19==4)&&((!(a3==1)||(((a23==1)&&(!(a13==1)||((a1==12)&&(a11==1))))&&(a2==1)))&&(a5==5)))&&(a16==10)))&&(a17==2))&&(((!(a7==1)&&((input==5)&&(a21==12)))&&!(a14==1))&&(a9==11)))){ + if((a4==1)){ + a15 = 0; + a9 = 7; + a27 = 1; + a20 = 1; + a5 = 6; + a21 = 10; + a12 = 0; + a1 = 13; + a16 = 7; + a19 = 1; + }else{ + a9 = 10; + a29 = 0; + a1 = 14; + a20 = 1; + a16 = 9; + a12 = 0; + a24 = 1; + a19 = 5; + } + return -1; + } else if((((a17==2)&&(((a6==1)||!(a3==1))||!(a6==1)))&&((a16==11)&&(((a1==12)&&((!(a14==1)&&(((a19==3)&&((a21==11)&&(((input==4)&&(((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))&&!(a18==1))))&&!(a7==1)))&&!(a18==1)))&&(a20==1))))){ + a13 = 1; + a21 = 10; + a5 = 4; + a16 = 7; + a6 = 1; + a9 = 7; + a3 = 1; + a19 = 1; + return -1; + } else if((((a17==2)&&(!(a0==1)&&(!(a20==1)&&(!(a27==1)&&(a23==1)))))&&(((a1==13)&&((!(a18==1)&&(((((a16==7)&&((((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6))))&&(input==5)))&&(a28==1))&&(a13==1))&&(a3==1)))&&(a21==10)))&&(a19==2)))){ + a19 = 3; + a26 = 0; + a9 = 8; + a4 = 0; + a1 = 12; + a5 = 5; + a18 = 0; + return 21; + } else if((((((((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8))))&&(input==6))&&(a2==1))&&(a21==12))&&((!(a27==1)&&((((a28==1)&&((a28==1)&&(!(a20==1)&&((a17==2)&&((a4==1)||((a19==3)&&(a6==1)))))))&&(a16==10))||(a18==1)))&&(a1==14)))){ + if((a25==1)){ + a1 = 12; + a16 = 7; + a28 = 0; + a19 = 2; + a21 = 10; + a11 = 0; + a9 = 7; + a5 = 4; + a20 = 1; + a0 = 1; + }else{ + a23 = 0; + a5 = 4; + a9 = 8; + a25 = 1; + a19 = 1; + a20 = 1; + a21 = 10; + a27 = 1; + a16 = 7; + } + return -1; + } else if(((!(a7==1)&&((((a11==1)&&(a17==2))&&(a21==10))&&(a16==10)))&&((!(a4==1)&&((!(a20==1)&&((((a1==13)&&((a23==1)&&((a23==1)&&(((a5==5)||(a5==6))&&(input==4)))))&&(a9==8))&&(a19==3)))&&(a12==1)))&&(a6==1)))){ + a1 = 14; + a16 = 7; + a9 = 9; + a7 = 1; + a20 = 1; + a29 = 1; + a19 = 1; + a5 = 4; + a10 = 0; + return 21; + } else if((((a19==2)&&((a24==1)||((a17==2)&&((((a20==1)&&(((a2==1)||(a26==1))&&!(a24==1)))&&(a5==6))||!(a23==1)))))&&(((a13==1)&&((((a9==7)&&((input==5)&&(a21==11)))&&(a1==14))&&(a16==8)))&&!(a27==1)))){ + a24 = 0; + a9 = 8; + a21 = 12; + a19 = 1; + a6 = 1; + return 21; + } else if((((a20==1)&&((a16==10)&&((!(a18==1)&&(!(a11==1)||((a8==1)||((a19==1)&&(a28==1)))))&&(a23==1))))&&((((!(a8==1)&&((!(a8==1)&&((input==1)&&((a5==4)||(a5==5))))&&(a1==13)))&&(a17==2))&&(a21==12))&&(a9==7)))){ + a19 = 2; + a9 = 9; + a5 = 4; + a16 = 7; + a23 = 1; + a4 = 0; + a21 = 10; + a0 = 0; + return 25; + } else if((((a21==12)&&((a9==9)&&(((a19==5)&&(!(a12==1)||(!(a0==1)&&(((a3==1)||!(a2==1))&&(a5==6)))))&&(a17==2))))&&((((!(a14==1)&&(((input==5)&&(a16==7))&&(a12==1)))&&(a1==14))&&!(a18==1))&&(a20==1)))){ + a19 = 1; + a5 = 4; + a21 = 10; + a1 = 12; + a2 = 1; + a9 = 7; + a11 = 1; + return -1; + } else if(((!(a7==1)&&(((a13==1)&&((((input==5)&&(a5==4))&&(a17==2))&&(a21==12)))&&(a19==2)))&&((a20==1)&&(!(a4==1)&&((a16==7)&&((a1==13)&&(((a0==1)||((a3==1)&&((a9==9)&&(a6==1))))||!(a28==1)))))))){ + a28 = 1; + a21 = 10; + a1 = 12; + a3 = 1; + a16 = 9; + a5 = 5; + a19 = 3; + return 21; + } else if((((a23==1)&&(((((((((a1==14)&&((a19==3)&&(((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8)))&&(input==1))))&&!(a7==1))&&!(a18==1))&&(a21==10))&&!(a20==1))&&!(a4==1))&&(a16==7))&&!(a18==1)))&&(((a11==1)||!(a13==1))&&(a17==2)))){ + a1 = 12; + a28 = 1; + a0 = 0; + a19 = 4; + a9 = 7; + a3 = 1; + a5 = 6; + return 26; + } else if(((!(a11==1)||((a28==1)&&(!(a26==1)&&(((a13==1)&&(((a16==10)&&((a17==2)&&(a28==1)))&&(a1==12)))&&(a19==3)))))&&(((((a21==10)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==6)))&&!(a18==1))&&!(a20==1))&&!(a26==1)))){ + if((a18==1)){ + a22 = 1; + a0 = 1; + a15 = 1; + a5 = 6; + a16 = 7; + a19 = 1; + a1 = 14; + a20 = 1; + a9 = 10; + }else{ + a1 = 14; + a29 = 0; + a6 = 0; + a2 = 0; + a19 = 1; + a5 = 4; + a9 = 10; + a16 = 7; + a20 = 1; + } + return -1; + } else if(((((a5==6)&&((a11==1)&&((a6==1)||!(a11==1))))&&(a6==1))&&((a16==8)&&((a9==8)&&(((a20==1)&&((a11==1)&&((((a6==1)&&(((input==4)&&(a21==12))&&(a1==14)))&&(a17==2))&&!(a7==1))))&&(a19==1)))))){ + if((a11==1)){ + a16 = 7; + a11 = 1; + a27 = 0; + a3 = 1; + a9 = 7; + a20 = 0; + }else{ + a6 = 1; + a9 = 11; + a16 = 10; + a19 = 5; + a2 = 1; + a21 = 11; + a5 = 4; + a1 = 13; + a14 = 0; + } + return 22; + } else if((((a28==1)&&((((a21==10)&&((a23==1)&&(a19==3)))&&(a9==9))&&(a17==2)))&&((a28==1)&&((!(a8==1)&&(((a1==13)&&((a20==1)&&((a23==1)&&(!(a0==1)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6)))))))&&(a16==9)))&&!(a26==1))))){ + a9 = 7; + a1 = 12; + a18 = 0; + a19 = 1; + a11 = 1; + a23 = 1; + a16 = 7; + a5 = 4; + return -1; + } else if((((a23==1)&&((a21==10)&&((((((a5==5)&&(input==4))&&!(a4==1))&&(a1==12))&&!(a4==1))&&(a19==1))))&&((!(a7==1)&&((a2==1)&&((a17==2)&&((a9==8)&&((a16==11)&&(!(a13==1)||(a2==1)))))))&&!(a20==1)))){ + if((a19==3)){ + a16 = 7; + a19 = 4; + a5 = 4; + a1 = 13; + a25 = 1; + a20 = 1; + a4 = 1; + a12 = 0; + a9 = 11; + a21 = 12; + }else{ + a25 = 0; + a15 = 1; + a1 = 13; + a13 = 0; + a16 = 7; + a5 = 4; + a20 = 1; + } + return 25; + } else if((((a5==5)&&((a17==2)&&((a21==10)&&((((((a4==1)||((a12==1)&&((a3==1)&&(a19==3))))&&(a9==7))||!(a28==1))||(a27==1))&&!(a24==1)))))&&((a1==14)&&((((a16==10)&&(input==3))&&(a20==1))&&(a12==1))))){ + a19 = 1; + a1 = 12; + a16 = 7; + a5 = 4; + a11 = 1; + a0 = 0; + a18 = 0; + return -1; + } else if(((((a1==12)&&(((a23==1)&&(((((((a2==1)&&(a13==1))&&(a20==1))&&(a21==10))&&(a23==1))&&(a19==1))&&!(a26==1)))&&(a16==9)))&&(a17==2))&&((!(a7==1)&&(((input==6)&&((a5==5)||(a5==6)))&&(a9==9)))&&!(a7==1)))){ + if((a9==8)){ + a16 = 8; + a2 = 1; + a20 = 0; + a5 = 4; + a8 = 0; + a0 = 0; + a9 = 7; + a19 = 3; + }else{ + a9 = 8; + a5 = 5; + a23 = 1; + a7 = 0; + a16 = 11; + a28 = 1; + } + return 26; + } else if((((a28==1)&&((a19==4)&&(((a1==14)&&(((((!(a14==1)&&(((a5==5)||(a5==6))&&(input==4)))&&!(a0==1))&&(a3==1))&&(a11==1))&&(a20==1)))&&(a17==2))))&&((((a21==12)&&((a3==1)&&(a9==9)))&&(a16==9))||!(a28==1)))){ + a19 = 1; + a1 = 12; + a5 = 4; + a3 = 1; + a9 = 7; + a13 = 1; + a16 = 7; + a21 = 10; + return -1; + } else if((((!(a24==1)&&((a17==2)&&(((a16==10)&&((input==4)&&(((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))))&&!(a20==1))))&&(a19==5))&&(!(a28==1)||((!(a13==1)||(!(a18==1)&&((a21==10)&&((!(a26==1)&&(a12==1))&&(a6==1)))))&&(a1==12))))){ + a25 = 0; + a22 = 1; + a19 = 1; + a20 = 1; + a16 = 7; + a9 = 8; + a5 = 4; + a26 = 1; + return 21; + } else if((((a9==8)&&((a6==1)&&((a13==1)&&((a6==1)&&(((a20==1)&&((a21==12)&&((a17==2)&&(((a5==5)||(a5==6))&&(input==6)))))&&(a16==9))))))&&(((a13==1)&&((a1==14)&&((a18==1)||((a28==1)&&(a11==1)))))&&(a19==3)))){ + a1 = 12; + a9 = 7; + a21 = 10; + a19 = 1; + a12 = 1; + a16 = 7; + a7 = 0; + a24 = 0; + a5 = 4; + return -1; + } else if((((((!(a14==1)&&(((a19==4)&&(a11==1))&&(a1==12)))||(a7==1))&&(a9==8))&&(a21==11))&&((!(a26==1)&&((a28==1)&&((a16==10)&&((a5==5)&&((a6==1)&&(((a17==2)&&(input==4))&&!(a20==1)))))))&&(a23==1)))){ + a3 = 0; + a20 = 1; + a16 = 7; + a14 = 1; + a11 = 0; + a9 = 9; + a19 = 1; + a21 = 10; + a1 = 13; + return -1; + } else if(((((a3==1)&&((a21==12)&&((a24==1)||(!(a4==1)&&(!(a28==1)||(!(a13==1)||(a6==1)))))))&&(a19==5))&&((a17==2)&&(((((a1==12)&&((a9==8)&&(((a5==5)||(a5==6))&&(input==4))))&&(a16==7))&&(a28==1))&&!(a20==1))))){ + a19 = 1; + a3 = 1; + a28 = 1; + a20 = 1; + a21 = 10; + a9 = 7; + a8 = 0; + a5 = 4; + return -1; + } else if((((a19==4)&&((((a28==1)&&((a21==12)&&(((a16==10)&&((a28==1)&&(a6==1)))||!(a3==1))))&&!(a0==1))||!(a2==1)))&&((((!(a4==1)&&((a9==9)&&(((a5==4)||(a5==5))&&(input==3))))&&(a20==1))&&(a17==2))&&(a1==14)))){ + a5 = 4; + a21 = 10; + a24 = 0; + a27 = 0; + a19 = 1; + a16 = 7; + a12 = 1; + a9 = 7; + a1 = 12; + return -1; + } else if((((!(a8==1)&&(((a16==8)&&(!(a4==1)&&((a20==1)&&(input==3))))&&(a17==2)))&&(a23==1))&&((((((a19==2)&&((a21==11)&&((a7==1)||((a13==1)&&(a9==10)))))&&(a1==14))&&(a5==5))&&!(a27==1))||(a26==1)))){ + a16 = 10; + a19 = 5; + a1 = 12; + a28 = 1; + a5 = 4; + a7 = 0; + a21 = 10; + a2 = 1; + return 22; + } else if((((((!(a4==1)&&((a13==1)&&(((a12==1)&&((input==3)&&(a9==9)))&&!(a24==1))))&&(a1==14))&&(a16==7))&&(a20==1))&&(((!(a24==1)&&((a19==5)&&((a5==6)&&((a17==2)&&(a3==1)))))&&!(a0==1))&&(a21==10)))){ + a1 = 12; + a26 = 0; + a19 = 1; + a24 = 0; + a18 = 0; + a5 = 4; + a9 = 7; + return -1; + } else if((((((((a5==4)||(a5==5))&&(input==5))&&(a16==9))&&(a9==8))&&(a1==14))&&(!(a24==1)&&(((((a19==2)&&((a11==1)&&(((a21==10)&&((a17==2)&&((a27==1)||(a28==1))))&&!(a20==1))))||!(a3==1))&&(a28==1))&&(a13==1))))){ + a21 = 11; + a9 = 10; + a5 = 6; + a1 = 13; + a24 = 1; + a10 = 1; + a16 = 7; + a20 = 1; + return -1; + } else if((((a19==2)&&((a17==2)&&(((!(a20==1)&&(!(a18==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5))))))&&(a1==13))&&(a23==1))))&&((((a6==1)&&(!(a3==1)||(!(a28==1)||((a21==10)&&((a16==9)&&(a28==1))))))&&(a11==1))&&(a9==11)))){ + a28 = 0; + a19 = 1; + a22 = 1; + a20 = 1; + a16 = 7; + a2 = 0; + a5 = 5; + a9 = 7; + return -1; + } else if((((((a1==14)&&((!(a3==1)||(a3==1))&&(a21==12)))&&(a17==2))&&(a19==1))&&((a16==10)&&((a9==10)&&((a20==1)&&((!(a4==1)&&(((((input==6)&&((a5==5)||(a5==6)))&&!(a14==1))&&!(a14==1))&&(a11==1)))&&(a28==1))))))){ + a6 = 1; + a13 = 1; + a1 = 13; + a5 = 4; + a19 = 2; + a21 = 10; + a26 = 0; + a16 = 7; + a9 = 9; + return 25; + } else if((((a6==1)&&(((a3==1)&&((a19==1)&&((a17==2)&&(((a9==7)&&((input==5)&&((a5==5)||(a5==6))))&&(a11==1)))))&&(a1==14)))&&(((a21==12)&&((((a8==1)||((a12==1)&&!(a20==1)))||(a26==1))&&(a16==10)))||(a0==1)))){ + a16 = 8; + a9 = 9; + a1 = 12; + a5 = 6; + a23 = 0; + a29 = 1; + a21 = 11; + a20 = 1; + a2 = 0; + return -1; + } else if((((a20==1)&&(((!(a0==1)&&((a16==8)&&(((((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5)))&&(input==1))&&!(a27==1))&&(a3==1))))&&(a19==4))&&(a6==1)))&&(((a1==13)&&((((a2==1)&&(a21==10))||(a26==1))&&!(a24==1)))&&(a17==2)))){ + a12 = 1; + a5 = 4; + a19 = 1; + a8 = 0; + a1 = 12; + a16 = 7; + a9 = 7; + a26 = 0; + return -1; + } else if((((((a19==3)&&((((a12==1)&&(a1==14))&&!(a8==1))&&(a21==12)))&&(a17==2))&&(a13==1))&&(((((((((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a16==10))&&(a20==1))&&!(a8==1))&&!(a0==1))&&!(a24==1))&&(a9==8))&&!(a24==1)))){ + a27 = 0; + a16 = 7; + a9 = 7; + a5 = 4; + a19 = 1; + a21 = 10; + a1 = 12; + a14 = 0; + return -1; + } else if((((!(a24==1)&&(((a20==1)&&((a28==1)&&(!(a7==1)&&(((a19==3)&&((a17==2)&&((a21==12)&&((input==5)&&((((a9==11)&&((a1==13)&&(a5==5)))||((a9==11)&&((a1==13)&&(a5==6))))||(((a5==4)&&(a1==14))&&(a9==7)))))))&&(a2==1)))))&&(a16==8)))&&!(a4==1))&&(!(a11==1)||(a28==1)))){ + a5 = 4; + a24 = 0; + a23 = 1; + a28 = 1; + a1 = 12; + a9 = 7; + a21 = 10; + a19 = 1; + a16 = 7; + return -1; + } else if((((((a20==1)&&(!(a26==1)&&((((a5==4)||(a5==5))&&(input==5))&&(a1==14))))&&(a16==9))&&(a19==3))&&((a17==2)&&((((a21==11)&&((((a28==1)&&((a12==1)||!(a6==1)))&&!(a27==1))&&(a12==1)))&&!(a18==1))&&(a9==7))))){ + a21 = 12; + a18 = 0; + a5 = 6; + a26 = 0; + a23 = 1; + a1 = 12; + a9 = 9; + return 21; + } else if((((!(a6==1)||(((a0==1)||((a16==9)&&((a1==13)&&((a5==5)&&(!(a8==1)&&((!(a20==1)&&(a11==1))&&(a21==11)))))))||(a7==1)))||!(a12==1))&&((a19==5)&&((!(a18==1)&&((input==3)&&(a9==9)))&&(a17==2))))){ + a7 = 1; + a20 = 1; + a5 = 6; + a9 = 8; + a16 = 7; + a27 = 1; + a1 = 12; + a21 = 10; + a19 = 2; + a12 = 0; + return -1; + } else if(((((a11==1)&&((a16==9)&&(((a6==1)&&((a19==4)&&(input==1)))&&(a5==4))))&&(a1==12))&&(((a17==2)&&((a9==8)&&(!(a6==1)||(((a0==1)||(((a11==1)&&(a3==1))&&(a21==11)))&&(a23==1)))))&&(a20==1)))){ + a9 = 9; + a19 = 2; + a16 = 10; + a1 = 14; + a23 = 1; + a28 = 1; + a21 = 10; + a13 = 1; + return 21; + } else if((((a20==1)&&((((a7==1)||((a17==2)&&(((a21==11)&&(a6==1))&&!(a7==1))))||(a7==1))&&(a19==1)))&&((((!(a24==1)&&((a1==14)&&((((a5==4)||(a5==5))&&(input==3))&&!(a7==1))))&&(a23==1))&&(a16==10))&&(a9==11)))){ + a1 = 12; + a21 = 10; + a16 = 8; + a5 = 6; + a9 = 9; + a11 = 1; + a23 = 1; + a19 = 5; + return 26; + } else if((((((a7==1)||(a11==1))&&(a20==1))&&!(a14==1))&&((a23==1)&&(((((a6==1)&&(!(a4==1)&&((a17==2)&&((a19==3)&&((input==3)&&((((a1==14)&&(a5==5))&&(a9==7))||((((a5==6)&&(a1==13))&&(a9==11))||((a9==7)&&((a1==14)&&(a5==4))))))))))&&(a16==11))&&!(a7==1))&&(a21==11))))){ + a13 = 1; + a8 = 0; + a1 = 12; + a21 = 10; + a19 = 1; + a16 = 7; + a9 = 7; + a5 = 4; + a7 = 0; + return -1; + } else if((((a1==12)&&(((a21==12)&&(!(a7==1)&&((a17==2)&&((input==4)&&(a20==1)))))&&(a28==1)))&&((a9==10)&&(!(a12==1)||((!(a2==1)||((a19==1)&&(((a14==1)||((a3==1)&&(a2==1)))&&(a5==5))))&&(a16==11)))))){ + a16 = 7; + a4 = 0; + a23 = 1; + a21 = 10; + a28 = 1; + a9 = 7; + a5 = 4; + return -1; + } else if((((a6==1)&&(((((a19==2)&&((a16==11)&&((((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4)))&&(input==6))&&(a17==2))))&&!(a14==1))&&!(a4==1))&&(a13==1)))&&(!(a4==1)&&((a21==10)&&(((a1==12)&&(!(a4==1)&&(a11==1)))&&!(a20==1)))))){ + a20 = 1; + a1 = 13; + a9 = 10; + a29 = 0; + a16 = 7; + a11 = 0; + a5 = 6; + a27 = 1; + return 25; + } else if(((((((((((a5==5)&&(a1==14))&&(a9==7))||((((a5==6)&&(a1==13))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==14)))))&&(input==1))&&(a16==9))&&(a19==4))&&(a12==1))&&!(a18==1))&&((a0==1)||(!(a6==1)||(((a21==12)&&(!(a20==1)&&((!(a27==1)&&(a28==1))&&(a17==2))))&&(a23==1)))))){ + a28 = 0; + a22 = 0; + a14 = 1; + a16 = 11; + a1 = 13; + a19 = 1; + a9 = 7; + a5 = 5; + a21 = 10; + a20 = 1; + return 25; + } else if(((((((a13==1)&&(!(a4==1)&&((a20==1)&&((a11==1)&&(((((a21==12)&&(input==5))&&(a23==1))&&(a6==1))&&(a16==8))))))&&(a19==2))&&(a17==2))&&(a9==9))&&(((a1==12)&&((a28==1)&&(a6==1)))&&(a5==5)))){ + a14 = 0; + a16 = 7; + a2 = 1; + a19 = 1; + a9 = 7; + a13 = 1; + a5 = 4; + a21 = 10; + return -1; + } else if(((((a9==9)&&((((a2==1)&&((a17==2)&&((input==3)&&(a16==10))))&&(a28==1))&&(a21==11)))&&(a19==5))&&(((((a23==1)&&(!(a11==1)||(((a3==1)&&(a20==1))||!(a11==1))))||!(a11==1))&&(a1==13))&&(a5==4)))){ + a19 = 1; + a12 = 1; + a9 = 7; + a4 = 0; + a1 = 12; + a16 = 7; + a3 = 1; + a21 = 10; + return -1; + } else if((((((!(a6==1)||(!(a12==1)||((a12==1)||!(a23==1))))&&(a1==13))&&!(a18==1))&&(a19==3))&&((!(a27==1)&&((((a17==2)&&(((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==3))&&(a16==7)))&&!(a4==1))&&!(a20==1)))&&(a21==10)))){ + a5 = 4; + a20 = 1; + a1 = 12; + a12 = 1; + a13 = 1; + a14 = 0; + a9 = 7; + a19 = 1; + return -1; + } else if(((((a27==1)||((a17==2)&&(!(a20==1)&&(((a13==1)&&!(a4==1))&&!(a27==1)))))&&(a21==10))&&(((a13==1)&&(((((!(a27==1)&&((input==5)&&((a5==4)||(a5==5))))&&(a16==9))&&(a11==1))&&(a9==8))&&(a1==12)))&&(a19==3)))){ + a20 = 1; + a25 = 1; + a26 = 1; + a19 = 1; + a21 = 12; + a8 = 1; + a5 = 6; + a9 = 11; + return 25; + } else if((((((a11==1)&&(((a16==10)&&((a2==1)||!(a3==1)))&&!(a14==1)))||(a26==1))&&(a1==12))&&(!(a20==1)&&((a21==10)&&((((a11==1)&&((a17==2)&&((((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(input==3))))&&!(a26==1))&&(a19==3)))))){ + a6 = 0; + a9 = 9; + a15 = 1; + a18 = 1; + a5 = 4; + a16 = 11; + a19 = 2; + return -1; + } else if(((!(a0==1)&&(((((a1==13)&&((a21==12)&&((a19==5)&&(!(a4==1)&&(a6==1)))))&&(a17==2))&&(a9==7))||(a27==1)))&&(!(a4==1)&&(!(a18==1)&&(((a20==1)&&((a16==11)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1))))&&(a3==1)))))){ + if((a0==1)){ + a21 = 10; + a18 = 0; + a27 = 0; + a19 = 3; + a16 = 8; + a20 = 0; + a1 = 12; + a13 = 1; + a9 = 10; + a5 = 6; + }else{ + a6 = 1; + a4 = 0; + a5 = 4; + a16 = 10; + a21 = 10; + a2 = 1; + a9 = 9; + } + return 21; + } else if(((((a21==11)&&((a3==1)&&((a20==1)&&(!(a8==1)&&(((a13==1)&&(a9==9))&&(a19==4))))))||(a27==1))&&(((a16==7)&&((a1==12)&&((!(a18==1)&&(((a5==4)&&(input==5))&&(a17==2)))&&(a3==1))))&&(a11==1)))){ + a9 = 7; + a4 = 0; + a18 = 0; + a5 = 6; + a19 = 3; + a16 = 8; + a6 = 1; + return 22; + } else if((((((a17==2)&&((a24==1)&&(a2==1)))&&(a1==12))&&(a21==10))&&(((((a7==1)&&(!(a23==1)&&(((a16==9)&&((a24==1)&&(!(a3==1)&&((input==5)&&((a5==4)||(a5==5))))))&&(a9==9))))&&(a19==4))&&!(a28==1))&&(a20==1)))){ + a5 = 6; + a1 = 14; + a8 = 1; + a21 = 12; + a22 = 1; + a2 = 0; + a16 = 10; + return 22; + } else if((((((a1==13)&&(!(a7==1)&&((((input==3)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(a19==1))&&(a17==2))))&&!(a14==1))&&!(a4==1))&&(!(a2==1)||((((((a6==1)&&(a23==1))||!(a6==1))&&(a21==10))&&(a20==1))&&(a16==11))))){ + a24 = 0; + a4 = 0; + a16 = 7; + a1 = 12; + a5 = 4; + a9 = 7; + a18 = 0; + return -1; + } else if((((((((!(a27==1)&&((a19==4)&&(input==6)))&&(a17==2))&&!(a20==1))&&(a16==9))&&(a2==1))&&!(a18==1))&&(!(a11==1)||(((a27==1)||((a9==11)&&((a5==5)&&(((a21==12)&&(a28==1))&&(a1==13)))))||!(a28==1))))){ + a5 = 6; + a9 = 9; + a20 = 1; + a1 = 12; + a6 = 0; + a16 = 7; + a18 = 1; + a25 = 1; + a21 = 10; + a19 = 2; + return 25; + } else if(((!(a2==1)||(((a6==1)&&((a12==1)&&((a2==1)&&((a28==1)&&!(a14==1)))))&&(a1==12)))&&((((((a2==1)&&(((input==3)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(a16==11)))&&(a19==5))&&(a17==2))&&(a21==11))&&(a20==1)))){ + a16 = 7; + a19 = 1; + a18 = 0; + a21 = 10; + a11 = 1; + a4 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if((((a9==7)&&((!(a14==1)&&((a17==2)&&((a16==8)&&(((a21==12)&&(input==1))&&(a1==14)))))&&(a20==1)))&&((a5==4)&&(((!(a12==1)||((a11==1)&&((a7==1)||((a11==1)&&(a23==1)))))&&(a28==1))&&(a19==4))))){ + a1 = 12; + a8 = 0; + a23 = 1; + a16 = 10; + a9 = 11; + a3 = 1; + return 22; + } else if((((a21==12)&&(((a16==7)&&(!(a18==1)&&(a2==1)))&&(a1==14)))&&(((a6==1)&&(!(a8==1)&&(((a9==7)&&(((a19==1)&&((a12==1)&&((!(a20==1)&&(input==5))&&!(a0==1))))&&!(a14==1)))&&(a5==6))))&&(a17==2)))){ + a4 = 0; + a21 = 10; + a1 = 13; + a9 = 10; + a7 = 0; + a20 = 1; + a11 = 1; + a5 = 5; + a19 = 4; + return 25; + } else if(((!(a20==1)&&(((a11==1)&&(((a16==9)&&((((!(a8==1)&&((a1==12)&&((((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))&&(input==3))&&!(a18==1))))&&(a21==10))&&(a2==1))&&(a17==2)))&&!(a7==1)))&&(a19==3)))&&(!(a7==1)&&(a11==1)))){ + a22 = 0; + a1 = 13; + a6 = 0; + a19 = 2; + a16 = 10; + a21 = 12; + a20 = 1; + a9 = 8; + a5 = 5; + return -1; + } else if(((((a20==1)&&((!(a24==1)&&((a17==2)&&(((input==4)&&((a5==4)||(a5==5)))&&!(a27==1))))&&(a6==1)))&&(a16==11))&&(((((a8==1)||((((a11==1)&&(a9==7))&&(a21==12))&&(a3==1)))&&!(a8==1))&&(a19==5))&&(a1==12)))){ + a21 = 10; + a19 = 1; + a13 = 1; + a8 = 0; + a12 = 1; + a5 = 4; + a16 = 7; + return -1; + } else if((((!(a24==1)&&((a20==1)&&((((a5==5)||(a5==6))&&(input==4))&&(a28==1))))&&(a16==9))&&((a21==12)&&(((a2==1)&&(!(a11==1)||(((a1==13)&&((!(a14==1)&&((a11==1)&&(a9==7)))&&(a17==2)))&&!(a0==1))))&&(a19==3))))){ + a2 = 1; + a6 = 1; + a5 = 4; + a1 = 12; + a16 = 7; + a23 = 1; + a19 = 1; + a21 = 10; + return -1; + } else if((((a17==2)&&((!(a13==1)||((a27==1)||(((a1==13)&&((a19==2)&&(!(a4==1)&&((a16==8)&&((a13==1)&&((a13==1)||!(a12==1)))))))&&(a5==6))))&&(a9==10)))&&(((a11==1)&&((input==6)&&!(a20==1)))&&(a21==10)))){ + a1 = 12; + a26 = 0; + a23 = 1; + a9 = 8; + a20 = 1; + a16 = 10; + a28 = 1; + a21 = 11; + a5 = 5; + return 21; + } else if(((!(a4==1)&&((((a8==1)||(a3==1))&&!(a20==1))&&(a19==4)))&&(((((a21==12)&&((((((a11==1)&&((input==5)&&((a5==5)||(a5==6))))&&(a9==11))&&(a17==2))&&(a1==12))&&(a16==7)))&&!(a24==1))&&(a6==1))&&(a13==1)))){ + a2 = 1; + a1 = 13; + a16 = 8; + a20 = 1; + a21 = 10; + a26 = 0; + a11 = 1; + a19 = 1; + a9 = 10; + a5 = 4; + return 23; + } else if((((a1==12)&&(((a16==7)&&((a5==5)&&(((((((a17==2)&&((input==6)&&(a19==2)))&&!(a18==1))&&!(a14==1))&&(a20==1))&&!(a7==1))&&(a2==1))))&&(a9==10)))&&((!(a12==1)||((a13==1)||(a8==1)))&&(a21==12)))){ + a26 = 0; + a1 = 13; + a21 = 10; + a5 = 6; + a14 = 0; + a27 = 0; + a16 = 9; + return 21; + } else if(((!(a24==1)&&(!(a24==1)&&((!(a14==1)&&(((a1==13)&&((((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8)))&&(input==1))&&!(a20==1)))&&(a3==1)))&&(a3==1))))&&((a2==1)&&(((a17==2)&&((a21==10)&&((a16==11)&&(a13==1))))&&(a19==1))))){ + a20 = 1; + a6 = 0; + a5 = 5; + a0 = 1; + a21 = 12; + a16 = 7; + a1 = 14; + a22 = 1; + a19 = 2; + a9 = 10; + return 26; + } else if((((a16==11)&&(((((a2==1)&&(((a3==1)&&(a17==2))&&(a13==1)))&&(a20==1))&&(a5==5))&&(a19==4)))&&((((((!(a18==1)&&((a21==12)&&(input==6)))&&!(a8==1))&&(a1==12))&&!(a7==1))&&!(a4==1))&&(a9==7)))){ + a3 = 1; + a16 = 8; + a9 = 11; + a21 = 11; + a2 = 1; + a19 = 1; + a14 = 0; + a1 = 14; + return 25; + } else if((((a9==11)&&(!(a20==1)&&((a17==2)&&((a19==2)&&(!(a7==1)&&((((a1==13)&&((a18==1)||(a12==1)))&&(a16==9))&&!(a26==1)))))))&&(((a23==1)&&(!(a0==1)&&((a13==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))))&&(a21==12)))){ + a1 = 12; + a16 = 7; + a0 = 1; + a20 = 1; + a19 = 1; + a11 = 0; + a15 = 0; + a21 = 10; + a9 = 9; + a5 = 4; + return -1; + } else if((((((((a3==1)&&((a16==8)&&((((input==1)&&((a5==5)||(a5==6)))&&(a1==12))&&(a9==10))))&&!(a20==1))&&(a21==11))&&!(a18==1))&&!(a24==1))&&(((((a12==1)&&((a19==1)&&(a23==1)))&&!(a27==1))&&(a17==2))&&(a11==1)))){ + a9 = 8; + a11 = 1; + a19 = 4; + a16 = 10; + a5 = 5; + a20 = 1; + a28 = 1; + a26 = 0; + return 21; + } else if((((a1==12)&&(((a21==12)&&((!(a26==1)&&(a3==1))&&(a6==1)))&&(a16==7)))&&(!(a20==1)&&((((a6==1)&&((((!(a26==1)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6))))&&(a2==1))&&(a19==2))&&(a13==1)))&&(a9==9))&&(a17==2))))){ + a1 = 13; + a26 = 0; + a21 = 10; + a14 = 0; + a5 = 5; + a28 = 1; + a9 = 10; + a20 = 1; + return 21; + } else if((((a28==1)&&(((a20==1)&&(((a17==2)&&((a1==14)&&((input==4)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))))&&(a16==7)))&&!(a8==1)))&&(((a19==2)&&((a21==10)&&(((a26==1)||((a6==1)||(a8==1)))||(a0==1))))||(a24==1)))){ + if((a12==1)){ + a20 = 0; + a27 = 0; + a16 = 8; + a21 = 11; + a8 = 0; + a2 = 1; + a9 = 10; + a5 = 6; + a1 = 13; + a19 = 4; + }else{ + a1 = 12; + a7 = 0; + a19 = 4; + a9 = 11; + a5 = 5; + a11 = 1; + } + return 26; + } else if(((((((!(a4==1)&&((!(a14==1)&&((((input==1)&&(a1==12))&&(a5==6))&&(a11==1)))&&(a9==11)))&&!(a27==1))&&(a19==3))&&(a17==2))&&(a20==1))&&((a8==1)||((a23==1)&&((a21==10)&&((a16==8)&&(a3==1))))))){ + a1 = 14; + a6 = 1; + a5 = 4; + a19 = 4; + a9 = 10; + a26 = 0; + a13 = 1; + a16 = 9; + a21 = 12; + return 26; + } else if(((!(a27==1)&&((a1==12)&&((a9==10)&&(((((a16==9)&&(input==6))&&(a23==1))&&(a19==1))&&!(a7==1)))))&&((a21==12)&&((!(a20==1)&&((a3==1)&&(((a17==2)&&(!(a14==1)&&(a13==1)))&&(a5==4))))||(a27==1))))){ + if((a24==1)){ + a6 = 0; + a16 = 11; + a9 = 8; + a22 = 1; + a20 = 1; + a5 = 6; + a1 = 13; + a10 = 1; + a21 = 10; + }else{ + a20 = 1; + a21 = 10; + a25 = 1; + a9 = 7; + a0 = 1; + a8 = 1; + a16 = 7; + a1 = 14; + a5 = 6; + } + return -1; + } else if((((!(a20==1)&&((a17==2)&&((a13==1)&&((a16==8)&&(((a6==1)&&(((((a9==11)&&((a1==13)&&(a5==6)))||((a9==7)&&((a5==4)&&(a1==14))))||(((a5==5)&&(a1==14))&&(a9==7)))&&(input==3)))&&(a6==1))))))&&(a21==11))&&(!(a11==1)||((((a2==1)&&!(a0==1))&&(a6==1))&&(a19==3))))){ + a20 = 1; + a24 = 0; + a21 = 10; + a9 = 7; + a16 = 7; + a1 = 12; + a6 = 1; + a19 = 1; + a5 = 4; + return -1; + } else if((((a9==8)&&((a20==1)&&(((a5==5)&&((a12==1)&&(((((a19==5)&&(input==3))&&(a1==12))&&(a6==1))&&(a17==2))))&&(a12==1))))&&((((((a12==1)&&(a6==1))&&(a21==12))&&(a2==1))&&(a6==1))&&(a16==8)))){ + a5 = 4; + a19 = 1; + a16 = 7; + a7 = 0; + a26 = 0; + a21 = 10; + a9 = 7; + return -1; + } else if(((((!(a11==1)||(((a21==12)&&(((a17==2)&&(a12==1))&&(a16==7)))&&(a9==11)))&&(a6==1))&&(a23==1))&&(!(a14==1)&&(((((((input==5)&&!(a20==1))&&(a1==12))&&(a5==4))&&(a19==4))&&!(a26==1))&&(a2==1))))){ + a16 = 9; + a21 = 11; + a24 = 0; + a23 = 1; + a20 = 1; + a5 = 5; + a7 = 0; + return 26; + } else if(((!(a18==1)&&((a21==10)&&((((a28==1)&&(!(a0==1)&&((((a1==13)&&((input==6)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5)))))&&(a19==3))&&(a3==1))))&&!(a4==1))&&(a16==7))))&&(!(a20==1)&&(!(a6==1)||((a17==2)&&(a11==1)))))){ + a20 = 1; + a19 = 1; + a2 = 1; + a9 = 7; + a1 = 12; + a5 = 4; + a13 = 1; + a26 = 0; + return -1; + } else if((((a19==4)&&((a1==13)&&(((a2==1)&&((a2==1)&&(a12==1)))&&(a2==1))))&&(((a16==10)&&((((((a11==1)&&(((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4)))&&(input==4)))&&(a17==2))&&(a13==1))&&!(a20==1))&&!(a24==1)))&&(a21==11)))){ + a5 = 5; + a2 = 0; + a29 = 1; + a19 = 2; + a20 = 1; + a9 = 8; + a8 = 1; + a16 = 9; + return 26; + } else if(((((a21==12)&&((!(a7==1)&&((((input==3)&&((a5==4)||(a5==5)))&&!(a0==1))&&(a23==1)))&&(a9==7)))&&(a19==3))&&((a17==2)&&((a16==9)&&((((a1==12)&&(((a3==1)&&!(a26==1))&&!(a20==1)))||!(a11==1))||!(a28==1)))))){ + if((a1==14)){ + a20 = 1; + a19 = 2; + a16 = 11; + a25 = 0; + a9 = 9; + a1 = 13; + a5 = 4; + a12 = 0; + a24 = 1; + }else{ + a3 = 0; + a5 = 5; + a9 = 9; + a7 = 1; + a19 = 1; + a1 = 14; + a15 = 1; + a16 = 7; + a20 = 1; + a21 = 10; + } + return -1; + } else if(((!(a24==1)&&(((a17==2)&&((a4==1)||(!(a13==1)||(!(a2==1)||((a23==1)||(a7==1))))))&&(a16==7)))&&((a1==13)&&(((a9==11)&&((a2==1)&&((((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a19==3))&&!(a20==1))))&&(a21==11))))){ + if((a0==1)){ + a9 = 7; + a5 = 6; + a11 = 1; + a19 = 2; + a21 = 12; + a14 = 0; + a0 = 0; + }else{ + a1 = 12; + a9 = 7; + a27 = 0; + a16 = 8; + a7 = 0; + a19 = 5; + a18 = 0; + a5 = 5; + } + return 25; + } else if(((((a5==4)&&((a17==2)&&((((a11==1)&&(a16==11))&&(a9==10))&&(a1==12))))&&!(a7==1))&&(((a6==1)&&(((((((input==5)&&(a20==1))&&!(a26==1))&&(a19==3))&&(a2==1))&&!(a18==1))&&!(a0==1)))&&(a21==10)))){ + a16 = 7; + a6 = 1; + a9 = 7; + a18 = 0; + a2 = 1; + a19 = 1; + return -1; + } else if(((((a16==7)&&(((a24==1)||((a1==13)&&(a6==1)))&&(a21==10)))&&!(a24==1))&&((a13==1)&&(!(a26==1)&&(((((((input==6)&&((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4))))&&!(a8==1))&&!(a7==1))&&!(a20==1))&&(a17==2))&&(a19==5)))))){ + a5 = 4; + a12 = 1; + a1 = 12; + a19 = 1; + a28 = 1; + a3 = 1; + a20 = 1; + a9 = 7; + return -1; + } else if((((a27==1)||(((a7==1)||(((((a19==3)&&(((a1==12)&&((a2==1)&&(a17==2)))&&!(a14==1)))&&(a9==7))&&!(a20==1))||(a4==1)))&&!(a26==1)))&&(((((input==5)&&(a21==11))&&(a5==5))&&(a16==10))&&!(a24==1)))){ + if((a6==1)){ + a19 = 1; + a5 = 4; + a8 = 1; + a16 = 9; + a9 = 9; + a25 = 1; + a21 = 10; + a1 = 13; + a6 = 0; + }else{ + a10 = 1; + a16 = 7; + a5 = 4; + a19 = 2; + a20 = 1; + a15 = 1; + a21 = 10; + a24 = 1; + } + return -1; + } else if((((a5==6)&&((((a6==1)&&((input==1)&&(a16==8)))&&(a20==1))&&(a28==1)))&&(((a9==7)&&((a17==2)&&(((((((a11==1)&&(a6==1))&&!(a8==1))||!(a6==1))&&(a19==2))||(a24==1))&&(a1==14))))&&(a21==11)))){ + a19 = 1; + a24 = 0; + a21 = 10; + a1 = 12; + a27 = 0; + a16 = 7; + a2 = 1; + a5 = 4; + return -1; + } else if(((((((a1==12)&&((a3==1)&&((input==4)&&((a5==4)||(a5==5)))))&&!(a18==1))&&(a19==1))&&!(a26==1))&&(!(a0==1)&&(((a16==8)&&((((a23==1)&&(((a6==1)&&(a17==2))&&(a9==10)))&&(a20==1))&&(a11==1)))&&(a21==11))))){ + a5 = 4; + a6 = 1; + a21 = 10; + a2 = 1; + a16 = 7; + a23 = 1; + a9 = 7; + return -1; + } else if((((a20==1)&&(((a24==1)&&((((a17==2)&&(((a4==1)&&(a23==1))&&!(a23==1)))&&(a19==1))&&(a21==10)))&&!(a11==1)))&&((a16==8)&&((((a8==1)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==6)))&&(a1==14))&&(a7==1))))){ + a16 = 7; + a25 = 1; + a9 = 10; + a5 = 5; + a18 = 1; + a27 = 1; + a1 = 13; + return -1; + } else if(((!(a18==1)&&((((a1==13)&&(!(a0==1)&&(((a12==1)&&(a21==11))&&(a20==1))))&&(a2==1))||(a14==1)))&&((a12==1)&&((a17==2)&&((a23==1)&&((a9==8)&&((a19==3)&&(((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a16==9))))))))){ + a9 = 7; + a16 = 7; + a19 = 1; + a13 = 1; + a5 = 4; + a23 = 1; + a1 = 12; + a11 = 1; + a21 = 10; + return -1; + } else if((((((!(a26==1)&&((a1==13)&&(((a12==1)&&(a16==11))&&(a21==10))))&&!(a14==1))&&!(a8==1))&&!(a14==1))&&((a2==1)&&(((a17==2)&&((((a19==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5)))))&&(a9==7))&&(a20==1)))&&!(a18==1))))){ + a16 = 7; + a1 = 12; + a5 = 4; + a12 = 1; + a8 = 0; + a2 = 1; + return -1; + } else if(((((!(a18==1)&&((a12==1)&&(((a20==1)&&(input==3))&&!(a4==1))))&&(a16==11))&&(a5==5))&&((a9==7)&&(((a19==4)&&(((((a1==13)&&((a12==1)||!(a11==1)))||!(a13==1))||!(a3==1))&&(a21==11)))&&(a17==2))))){ + a8 = 0; + a26 = 0; + a6 = 1; + a21 = 10; + a16 = 7; + a19 = 1; + a1 = 12; + a5 = 4; + return -1; + } else if((((((((a17==2)&&(a2==1))&&(a20==1))&&!(a0==1))&&(a2==1))||!(a2==1))&&(((a13==1)&&((a23==1)&&(((a16==7)&&((input==6)&&(((a19==1)&&(((a1==14)&&(a5==6))&&(a9==11)))||((a19==2)&&(((a5==4)&&(a1==12))&&(a9==7))))))&&(a21==12))))&&!(a27==1)))){ + a7 = 0; + a2 = 1; + a18 = 0; + a1 = 12; + a5 = 5; + a19 = 2; + a9 = 9; + a21 = 10; + a16 = 9; + return 26; + } else if((((a12==1)&&(!(a20==1)&&((a17==2)&&(((a28==1)&&((a1==12)&&(a3==1)))&&(a19==4)))))&&((a12==1)&&((a2==1)&&(!(a24==1)&&(((a21==11)&&(!(a14==1)&&((input==6)&&(((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))))))&&(a16==7))))))){ + a21 = 10; + a3 = 1; + a5 = 4; + a16 = 8; + a9 = 7; + a20 = 1; + a4 = 0; + a28 = 1; + a1 = 14; + a19 = 5; + return 25; + } else if(((((!(a0==1)&&(((a28==1)||!(a23==1))&&!(a8==1)))&&(a12==1))&&(a16==9))&&(((a21==11)&&((((((a17==2)&&((a13==1)&&((input==3)&&(a5==4))))&&(a1==13))&&(a19==2))&&!(a0==1))&&!(a20==1)))&&(a9==11)))){ + a9 = 9; + a5 = 5; + a3 = 0; + a20 = 1; + a22 = 1; + a19 = 1; + a21 = 10; + a29 = 0; + a16 = 7; + a1 = 12; + return 26; + } else if((((((((a19==3)&&(((a21==12)&&(a3==1))&&(a20==1)))&&(a9==7))&&!(a8==1))&&(a28==1))||(a27==1))&&((a16==10)&&((a17==2)&&((a11==1)&&(((a1==14)&&(((input==5)&&((a5==5)||(a5==6)))&&(a28==1)))&&!(a18==1))))))){ + a19 = 1; + a2 = 1; + a5 = 4; + a4 = 0; + a6 = 1; + a1 = 12; + a16 = 7; + a21 = 10; + return -1; + } else if(((((((((a5==5)&&(input==1))&&!(a26==1))&&!(a14==1))&&!(a20==1))&&(a21==11))&&(a1==12))&&(((a19==3)&&(((a26==1)||((a16==8)&&((a26==1)||((a12==1)&&((a3==1)&&(a6==1))))))&&(a17==2)))&&(a9==11)))){ + a1 = 14; + a20 = 1; + a6 = 1; + a16 = 10; + a19 = 1; + a18 = 0; + a5 = 4; + a26 = 0; + return 22; + } else if((((a2==1)&&(!(a8==1)&&(!(a26==1)&&((!(a7==1)&&(((((a9==11)&&((a5==6)&&(a1==12)))||(((a5==4)&&(a1==13))&&(a9==7)))||((a9==7)&&((a5==5)&&(a1==13))))&&(input==3)))&&(a17==2)))))&&((!(a18==1)&&((a23==1)&&(((a19==3)&&((a21==12)&&(a2==1)))&&(a16==11))))&&(a20==1)))){ + a16 = 7; + a8 = 0; + a3 = 1; + a5 = 4; + a6 = 1; + a19 = 1; + a21 = 10; + a1 = 12; + a9 = 7; + return -1; + } else if(((((a21==11)&&(((((a12==1)&&!(a20==1))&&!(a23==1))&&(a24==1))&&(a14==1)))&&(a1==12))&&((a9==8)&&(!(a3==1)&&(((!(a23==1)&&(((a17==2)&&(((a5==5)||(a5==6))&&(input==3)))&&(a16==8)))&&!(a6==1))&&(a19==1)))))){ + a19 = 5; + a18 = 1; + a5 = 6; + a8 = 1; + a21 = 10; + a16 = 11; + a22 = 0; + a20 = 1; + return 21; + } else if((((a1==12)&&(((a20==1)&&(!(a18==1)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a21==12))&&!(a26==1))&&(a17==2))))&&(a9==8)))&&((a19==2)&&(!(a28==1)||((a8==1)||(((a16==7)&&((a23==1)&&!(a0==1)))&&(a6==1))))))){ + a9 = 7; + a5 = 6; + a28 = 1; + a3 = 1; + a16 = 9; + a1 = 13; + a23 = 1; + a21 = 10; + return 25; + } else if(((!(a18==1)&&((((a17==2)&&((!(a18==1)&&(((a5==5)&&(a6==1))&&(a1==14)))||(a24==1)))&&!(a14==1))&&(a9==10)))&&((a23==1)&&(((a19==3)&&(((!(a20==1)&&(input==6))&&!(a14==1))&&(a21==10)))&&(a16==7))))){ + a5 = 4; + a1 = 12; + a9 = 7; + a24 = 0; + a18 = 0; + a20 = 1; + a19 = 1; + return -1; + } else if((((a1==14)&&((a17==2)&&((a12==1)&&(((a13==1)&&((a19==5)&&(input==3)))&&!(a20==1)))))&&(((a23==1)&&(((a4==1)||(((((a28==1)&&(a16==8))&&(a5==4))&&(a21==12))&&!(a0==1)))&&(a9==9)))||!(a28==1)))){ + a1 = 12; + a9 = 10; + a19 = 3; + a22 = 1; + a20 = 1; + a27 = 1; + a21 = 10; + a16 = 9; + return 21; + } else if(((((((a13==1)&&(((a16==7)&&((a1==14)&&(a2==1)))||(a14==1)))&&!(a0==1))&&(a20==1))&&(a17==2))&&((((a9==10)&&((!(a24==1)&&(!(a4==1)&&(((a5==4)||(a5==5))&&(input==6))))&&(a21==10)))&&!(a7==1))&&(a19==3)))){ + a26 = 0; + a21 = 11; + a24 = 0; + a5 = 4; + a4 = 0; + a19 = 2; + a9 = 11; + return 22; + } else if(((!(a4==1)&&((a1==14)&&((!(a20==1)&&(((input==6)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5))))&&(a2==1)))&&(a17==2))))&&(((!(a11==1)||(((a19==4)&&((a16==7)&&((a2==1)||(a0==1))))&&(a21==11)))||(a0==1))||(a4==1)))){ + a19 = 2; + a27 = 0; + a14 = 0; + a21 = 12; + a20 = 1; + a12 = 1; + a9 = 7; + a16 = 10; + a5 = 6; + return 21; + } else if((((a16==7)&&((a19==4)&&(((((a17==2)&&((((a5==4)||(a5==5))&&(input==1))&&(a12==1)))&&(a3==1))&&(a9==11))&&(a13==1))))&&(!(a20==1)&&((a1==13)&&(!(a7==1)&&((a21==12)&&((a2==1)&&((a2==1)||!(a6==1))))))))){ + a6 = 1; + a21 = 10; + a3 = 1; + a5 = 4; + a1 = 14; + a12 = 1; + a20 = 1; + return 25; + } else if(((!(a2==1)&&(((a21==12)&&(((a17==2)&&(a12==1))&&(a14==1)))&&!(a2==1)))&&(!(a13==1)&&((a27==1)&&(((a19==1)&&((a1==13)&&((!(a11==1)&&((((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6))))&&(input==1)))&&(a20==1))))&&(a16==10)))))){ + a14 = 1; + a15 = 0; + a16 = 7; + a21 = 10; + a12 = 0; + a5 = 5; + a9 = 8; + return -1; + } else if((((a13==1)&&((a7==1)||((a20==1)&&((a17==2)&&((((a6==1)&&(a19==3))&&(a1==12))&&(a16==11))))))&&((a6==1)&&(((a28==1)&&((a23==1)&&((a28==1)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==4)))))&&(a21==11))))){ + a18 = 0; + a9 = 7; + a21 = 10; + a16 = 7; + a2 = 1; + a13 = 1; + a19 = 1; + a5 = 4; + return -1; + } else if(((((((a1==14)&&(input==1))&&!(a7==1))&&!(a4==1))&&!(a18==1))&&((a5==4)&&((a17==2)&&(((!(a2==1)||((a0==1)||((((a20==1)&&(!(a11==1)||(a12==1)))&&(a21==12))&&(a16==9))))&&(a9==9))&&(a19==4)))))){ + a21 = 11; + a9 = 11; + a1 = 12; + a19 = 5; + a2 = 1; + a13 = 1; + a12 = 1; + return 21; + } else if((((((a20==1)&&(!(a26==1)&&(((input==3)&&(((((a1==14)&&(a5==6))&&(a9==11))&&(a19==3))||(((a9==7)&&((a1==12)&&(a5==4)))&&(a19==4))))&&!(a4==1))))&&(a16==11))&&!(a8==1))&&(!(a0==1)&&((a18==1)||((((a23==1)||!(a2==1))&&(a21==10))&&(a17==2)))))){ + a16 = 7; + a24 = 0; + a9 = 7; + a1 = 12; + a19 = 1; + a5 = 4; + a27 = 0; + return -1; + } else if((((a1==13)&&((a16==9)&&((((((input==6)&&(a17==2))&&(a3==1))&&!(a26==1))&&(a11==1))&&(a20==1))))&&((a21==12)&&((((a19==3)&&((!(a11==1)||((a26==1)||(a2==1)))||!(a2==1)))&&(a9==7))&&(a5==4))))){ + a16 = 7; + a13 = 1; + a23 = 1; + a1 = 12; + a7 = 0; + a21 = 10; + a19 = 1; + return -1; + } else if((((a8==1)||((a5==4)&&(((a6==1)&&(a19==5))&&!(a27==1))))&&((((a16==7)&&((((a17==2)&&(((((input==1)&&(a20==1))&&!(a27==1))&&!(a26==1))&&!(a8==1)))&&(a9==7))&&(a1==13)))&&(a21==12))&&(a2==1)))){ + a16 = 9; + a5 = 6; + a1 = 14; + a19 = 4; + a11 = 1; + a21 = 11; + a3 = 1; + return 22; + } else if((((a28==1)&&((((a21==11)&&((a20==1)&&(((((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(input==1))&&(a1==12))))&&(a16==8))&&(a3==1)))&&(!(a4==1)&&((((((a12==1)&&(a17==2))||(a14==1))&&(a19==5))&&(a13==1))&&!(a18==1))))){ + a5 = 5; + a6 = 1; + a3 = 1; + a19 = 3; + a16 = 10; + a9 = 8; + return 25; + } else if((((a23==1)&&((((a5==6)&&((a17==2)&&(((a9==8)&&(a3==1))&&!(a26==1))))||(a24==1))&&(a3==1)))&&(!(a4==1)&&(!(a24==1)&&(((((a1==12)&&((input==6)&&(a19==5)))&&!(a20==1))&&(a16==10))&&(a21==11)))))){ + a4 = 1; + a9 = 9; + a19 = 1; + a21 = 12; + a20 = 1; + a11 = 0; + a16 = 7; + a0 = 1; + return 25; + } else if((((a5==5)&&((a2==1)&&((a17==2)&&(((((a9==8)&&(((input==6)&&(a1==13))&&!(a24==1)))&&(a16==11))&&(a6==1))&&(a19==5)))))&&((a23==1)&&(((((a12==1)||(a27==1))&&(a20==1))&&(a21==12))||!(a13==1))))){ + a12 = 1; + a5 = 4; + a9 = 7; + a16 = 9; + a18 = 0; + a1 = 12; + a19 = 3; + return 21; + } else if((((a19==2)&&(((((a11==1)&&((((a11==1)&&(a16==9))&&!(a7==1))&&(a21==12)))&&(a20==1))&&!(a4==1))||!(a11==1)))&&((a1==13)&&(!(a27==1)&&((a17==2)&&((a5==4)&&(((a9==7)&&(input==3))&&!(a7==1)))))))){ + a6 = 1; + a7 = 0; + a16 = 10; + a5 = 5; + a9 = 8; + return 21; + } else if(((((a20==1)&&(((((((a6==1)&&(a12==1))&&(a1==13))&&!(a14==1))&&(a19==1))||!(a2==1))&&(a6==1)))&&(a6==1))&&(!(a14==1)&&(((a21==12)&&((a16==11)&&((input==3)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))))&&(a17==2))))){ + a28 = 1; + a16 = 10; + a5 = 6; + a9 = 10; + a1 = 12; + a4 = 0; + a21 = 10; + a24 = 0; + return 21; + } else if((((a11==1)&&(((((a19==1)&&(input==5))&&(a5==6))&&(a20==1))&&(a17==2)))&&((a16==9)&&(((((((a13==1)&&(((a2==1)&&(a13==1))||!(a12==1)))||(a27==1))&&(a9==7))&&(a1==14))||(a14==1))&&(a21==10))))){ + a5 = 4; + a2 = 1; + a18 = 0; + a16 = 7; + a1 = 12; + a27 = 0; + return -1; + } else if(((((a1==12)&&(((a18==1)||((((a13==1)&&(a3==1))&&!(a7==1))&&(a28==1)))&&!(a0==1)))&&(a9==11))&&((a21==11)&&((a20==1)&&(((a28==1)&&(((a17==2)&&(((a5==5)||(a5==6))&&(input==1)))&&(a16==9)))&&(a19==5)))))){ + if((a12==1)){ + a5 = 5; + a0 = 0; + a19 = 4; + a26 = 0; + a9 = 8; + a20 = 0; + a3 = 1; + a16 = 8; + }else{ + a9 = 10; + a1 = 13; + a16 = 7; + a5 = 4; + a27 = 0; + a24 = 0; + a12 = 1; + a21 = 10; + a19 = 2; + } + return 21; + } else if((((a20==1)&&(((a14==1)||((a17==2)&&((a19==3)&&(!(a12==1)||((a11==1)||(a24==1))))))&&(a9==9)))&&((a5==5)&&(((((a1==14)&&(((input==3)&&(a16==9))&&(a3==1)))&&(a11==1))&&!(a7==1))&&(a21==11))))){ + a26 = 0; + a21 = 10; + a9 = 7; + a16 = 10; + a3 = 1; + a19 = 1; + a5 = 4; + a4 = 0; + return 21; + } else if((((((a9==10)&&(((a12==1)&&(a17==2))&&!(a14==1)))&&(a11==1))&&(a19==4))&&(((((a3==1)&&(((a20==1)&&((a13==1)&&(((a16==11)&&(input==5))&&(a1==13))))&&(a6==1)))&&(a5==6))&&!(a26==1))&&(a21==11)))){ + a8 = 0; + a9 = 7; + a0 = 0; + a5 = 4; + a28 = 1; + a19 = 1; + a1 = 12; + a21 = 10; + a16 = 7; + return -1; + } else if((((((a18==1)&&((a19==4)&&((((!(a3==1)&&((a17==2)&&(((a20==1)&&(((a5==5)||(a5==6))&&(input==4)))&&(a18==1))))&&!(a28==1))&&(a14==1))&&(a16==8))))&&(a21==11))&&(a1==14))&&(((a13==1)&&(a14==1))&&(a9==7)))){ + a19 = 1; + a5 = 4; + a21 = 10; + a1 = 13; + a11 = 0; + a16 = 7; + a13 = 0; + a18 = 1; + return -1; + } else if(((!(a23==1)||((a12==1)&&(a23==1)))&&(((a3==1)&&(((a17==2)&&(((a9==10)&&(!(a20==1)&&(((a21==10)&&((((input==4)&&(a16==9))&&(a5==6))&&!(a7==1)))&&(a28==1))))&&!(a26==1)))&&(a19==3)))&&(a1==14)))){ + a1 = 12; + a5 = 5; + a20 = 1; + a9 = 11; + a16 = 7; + a19 = 1; + a10 = 0; + a18 = 1; + a27 = 1; + return -1; + } else if((((a18==1)&&((a9==9)&&((((((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&!(a28==1))&&(a21==12))&&(a1==12))&&(a20==1))))&&((a14==1)&&(!(a2==1)&&((a16==10)&&(!(a12==1)&&((((a12==1)&&(a14==1))&&(a19==4))&&(a17==2)))))))){ + a1 = 13; + a5 = 4; + a23 = 0; + a22 = 0; + a21 = 11; + a9 = 10; + a25 = 0; + a19 = 3; + return 22; + } else if((((!(a6==1)||((!(a12==1)||(a6==1))&&(a20==1)))&&(a21==12))&&((a16==7)&&((a19==3)&&(((a9==11)&&((((!(a4==1)&&(((input==5)&&((a5==4)||(a5==5)))&&!(a4==1)))&&!(a4==1))&&!(a0==1))&&(a17==2)))&&(a1==12)))))){ + if((a22==1)){ + a16 = 8; + a24 = 0; + a9 = 8; + a4 = 0; + a20 = 0; + a1 = 14; + a27 = 0; + a5 = 5; + a19 = 4; + a21 = 10; + }else{ + a21 = 10; + a12 = 1; + a16 = 9; + a9 = 7; + a23 = 1; + a19 = 5; + a5 = 5; + a7 = 0; + } + return 22; + } return calculate_output4(input); + } + + int calculate_output4(int input) { + if((((a28==1)&&((((a19==3)&&((((a13==1)&&((!(a7==1)&&((a1==12)&&((a5==5)&&(input==5))))&&(a21==10)))&&(a9==7))&&!(a8==1)))&&(a2==1))&&(a16==11)))&&(!(a20==1)&&((a27==1)||((a17==2)&&(a23==1)))))){ + a20 = 1; + a2 = 0; + a24 = 1; + a19 = 1; + a16 = 7; + a5 = 4; + a9 = 11; + a28 = 0; + return -1; + } else if((((a5==5)&&(((!(a26==1)&&(!(a7==1)&&(((a19==2)&&((a9==7)&&(input==4)))&&(a12==1))))&&(a6==1))&&(a21==12)))&&(((a17==2)&&((a16==7)&&((a1==13)&&(((a23==1)&&!(a20==1))||!(a28==1)))))||(a4==1)))){ + a5 = 4; + a26 = 0; + a1 = 12; + a20 = 1; + a4 = 0; + a19 = 1; + a21 = 10; + a18 = 0; + return -1; + } else if((((a1==13)&&(((!(a14==1)&&(((a2==1)&&((a6==1)&&((input==1)&&(a17==2))))&&(a6==1)))&&(a16==9))&&(a9==10)))&&((a20==1)&&(((a5==6)&&(!(a27==1)&&(!(a14==1)&&((a19==4)&&(a12==1)))))&&(a21==11))))){ + if((a22==1)){ + a19 = 5; + a9 = 8; + a20 = 0; + a21 = 12; + a3 = 1; + a26 = 0; + a4 = 0; + a16 = 7; + }else{ + a21 = 12; + a16 = 8; + a9 = 7; + a19 = 5; + a2 = 1; + a0 = 0; + a5 = 4; + } + return 22; + } else if(((((a28==1)&&((a3==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a16==10))))&&(a1==12))&&((a3==1)&&((((((a27==1)||(((!(a20==1)&&(a3==1))&&(a9==8))&&(a17==2)))&&(a19==2))&&(a21==12))&&!(a7==1))&&(a28==1))))){ + a5 = 5; + a16 = 7; + a19 = 1; + a21 = 10; + a29 = 0; + a22 = 0; + a20 = 1; + a8 = 1; + a9 = 10; + return 25; + } else if((((((a21==11)&&(((a11==1)&&(!(a8==1)&&((((a5==4)||(a5==5))&&(input==5))&&(a28==1))))&&!(a20==1)))&&(a11==1))&&(a9==10))&&((((a26==1)||((!(a8==1)&&((a16==10)&&(a23==1)))&&(a17==2)))&&(a19==4))&&(a1==14)))){ + if((a21==12)){ + a4 = 1; + a21 = 12; + a11 = 0; + a5 = 4; + a16 = 7; + a9 = 7; + a0 = 1; + }else{ + a5 = 6; + a25 = 1; + a23 = 0; + a20 = 1; + a16 = 9; + a1 = 12; + a12 = 0; + a19 = 2; + a21 = 12; + } + return -1; + } else if(((((a20==1)&&((a5==5)&&(((a21==12)&&((((a17==2)&&((a3==1)&&!(a6==1)))&&!(a2==1))&&!(a28==1)))&&(a14==1))))&&(a1==14))&&((a14==1)&&(((a9==10)&&(!(a23==1)&&((input==4)&&(a19==2))))&&(a16==7))))){ + a14 = 1; + a1 = 13; + a21 = 10; + a19 = 4; + a13 = 0; + a9 = 11; + a5 = 4; + a16 = 11; + return -1; + } else if((((((((a9==7)&&(((a2==1)&&(a21==11))&&(a17==2)))||!(a28==1))&&(a19==1))||!(a12==1))&&(a2==1))&&(((a1==13)&&((((((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a27==1))&&!(a27==1))&&(a6==1))&&(a16==7)))&&(a20==1)))){ + a26 = 0; + a14 = 0; + a9 = 9; + a21 = 10; + a5 = 4; + a16 = 8; + a13 = 1; + a1 = 12; + return 25; + } else if((((a19==4)&&((((a17==2)&&((a16==11)&&(((a6==1)&&(a23==1))||!(a28==1))))||(a24==1))&&(a1==14)))&&(((a13==1)&&((a3==1)&&((a9==10)&&((((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&(a20==1))&&(a21==11)))))&&!(a27==1)))){ + a1 = 12; + a2 = 1; + a5 = 4; + a8 = 0; + a18 = 0; + a19 = 3; + a9 = 7; + a21 = 12; + return 21; + } else if((((a11==1)&&((a4==1)||((a21==11)&&((!(a23==1)||(!(a23==1)||(a6==1)))&&(a1==12)))))&&(!(a24==1)&&(!(a7==1)&&((a16==8)&&((a9==9)&&(((a19==4)&&((a20==1)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a17==2)))))))){ + a16 = 7; + a18 = 0; + a28 = 1; + a19 = 1; + a9 = 7; + a21 = 10; + a5 = 4; + a11 = 1; + return -1; + } else if((((!(a20==1)&&((a11==1)&&(((a13==1)||!(a23==1))||(a24==1))))&&(a21==11))&&(((((((a17==2)&&((a1==14)&&((input==1)&&((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11))))))&&(a13==1))&&(a19==2))&&!(a0==1))&&!(a7==1))&&(a16==7)))){ + a9 = 11; + a6 = 1; + a26 = 0; + a19 = 3; + a5 = 6; + a23 = 1; + a16 = 9; + a20 = 1; + a1 = 12; + a21 = 10; + return 22; + } else if(((((((a16==8)&&(((a20==1)&&(a11==1))&&(a1==12)))&&!(a8==1))||(a4==1))&&(a2==1))&&((((a21==12)&&(((((input==3)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&!(a18==1))&&(a3==1))&&(a17==2)))&&!(a27==1))&&(a19==5)))){ + a1 = 14; + a5 = 4; + a9 = 11; + a23 = 1; + a21 = 11; + a27 = 0; + a12 = 1; + a19 = 1; + return -1; + } else if((((!(a26==1)&&((a17==2)&&(!(a14==1)&&((a11==1)||(a27==1)))))&&(a13==1))&&(((!(a0==1)&&((((a21==10)&&((a16==10)&&((input==3)&&((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11))))))&&(a12==1))&&!(a20==1)))&&(a19==1))&&(a1==14)))){ + a22 = 0; + a4 = 1; + a5 = 4; + a20 = 1; + a9 = 10; + a26 = 1; + a1 = 12; + a16 = 7; + return -1; + } else if(((((a21==12)&&(((((a5==6)&&((a17==2)&&((a1==14)&&(((a11==1)&&(a12==1))&&(a28==1)))))&&(a19==5))&&!(a0==1))&&(a20==1)))||(a0==1))&&(((a16==9)&&(((a9==8)&&(input==1))&&!(a18==1)))&&!(a0==1)))){ + a1 = 12; + a6 = 1; + a19 = 1; + a5 = 4; + a21 = 10; + a28 = 1; + a9 = 7; + a16 = 7; + a0 = 0; + return -1; + } else if((((!(a0==1)&&((((!(a6==1)||((a3==1)&&!(a27==1)))&&(a21==10))||!(a13==1))&&(a16==10)))&&(a1==12))&&(((((a17==2)&&((a9==11)&&(!(a20==1)&&((input==6)&&((a5==4)||(a5==5))))))&&!(a26==1))&&!(a26==1))&&(a19==4)))){ + if((a2==1)){ + a2 = 0; + a1 = 13; + a20 = 1; + a5 = 4; + a19 = 5; + a16 = 11; + a8 = 1; + }else{ + a6 = 0; + a18 = 1; + a3 = 0; + a20 = 1; + a5 = 5; + a1 = 14; + a16 = 7; + a19 = 1; + a9 = 8; + } + return 23; + } else if((((!(a23==1)||((a8==1)||((a16==10)&&(!(a20==1)&&(!(a3==1)||(a23==1))))))&&(a13==1))&&(((a17==2)&&(((a21==11)&&((a1==12)&&((a19==2)&&((input==1)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))))&&(a2==1)))&&!(a27==1)))){ + a9 = 11; + a19 = 1; + a15 = 0; + a21 = 10; + a16 = 7; + a4 = 1; + a1 = 13; + a5 = 6; + a20 = 1; + return -1; + } else if((((((((a13==1)&&((((a5==5)||(a5==6))&&(input==3))&&(a16==11)))&&(a13==1))&&!(a4==1))&&!(a20==1))&&(a19==1))&&((a21==10)&&((a1==14)&&((((a17==2)&&(!(a27==1)&&(!(a4==1)&&(a13==1))))&&(a9==11))&&(a11==1)))))){ + a5 = 4; + a29 = 1; + a16 = 7; + a19 = 3; + a15 = 1; + a8 = 1; + a9 = 10; + a21 = 11; + return -1; + } else if((((((a17==2)&&((((a6==1)&&(((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5)))&&(input==4)))&&(a19==3))&&!(a20==1)))&&!(a0==1))&&(a21==12))&&((a18==1)||(((((a16==7)&&((a6==1)||(a0==1)))&&!(a26==1))&&(a1==12))||(a0==1))))){ + a21 = 10; + a9 = 7; + a5 = 4; + a11 = 1; + a20 = 1; + a19 = 1; + a18 = 0; + return -1; + } else if(((((a2==1)&&((a13==1)&&(((a17==2)&&(!(a8==1)&&((a21==10)&&((a9==7)&&((input==5)&&((a5==6)||((a5==4)||(a5==5))))))))&&(a1==14))))&&(a23==1))&&((((a19==1)&&((a16==11)&&((a28==1)&&(a20==1))))&&(a12==1))&&(a6==1)))){ + a1 = 12; + a14 = 0; + a11 = 1; + a16 = 10; + a5 = 6; + a9 = 10; + a18 = 0; + return 21; + } else if(((((a9==10)&&((((!(a20==1)&&(a12==1))||(a26==1))&&!(a8==1))&&(a12==1)))&&(a17==2))&&(!(a18==1)&&((((a12==1)&&((a23==1)&&(((a5==6)&&((a19==3)&&(input==3)))&&(a21==12))))&&(a1==12))&&(a16==8))))){ + a16 = 7; + a24 = 1; + a5 = 4; + a9 = 7; + a19 = 1; + a20 = 1; + a25 = 0; + a21 = 10; + a12 = 0; + return -1; + } else if((((a27==1)&&(((((a28==1)&&!(a6==1))&&(a19==2))&&(a17==2))&&!(a6==1)))&&((a26==1)&&(((((((a5==5)&&(((a20==1)&&(input==3))&&(a9==8)))&&(a27==1))&&(a21==11))&&(a16==9))&&(a1==13))&&(a26==1))))){ + a0 = 1; + a9 = 7; + a18 = 1; + a1 = 12; + a5 = 4; + a19 = 1; + a15 = 1; + return 23; + } else if((((!(a4==1)&&(((a6==1)&&(((input==6)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(a21==12)))&&(a11==1)))&&!(a27==1))&&((((a20==1)&&(((a1==12)&&((a17==2)&&((a19==2)&&(a6==1))))&&(a16==9)))||!(a28==1))||(a18==1)))){ + a19 = 1; + a5 = 4; + a7 = 0; + a18 = 0; + a9 = 7; + a16 = 7; + a6 = 1; + a21 = 10; + return -1; + } else if((((a21==10)&&((a6==1)&&((a17==2)&&(((a19==4)&&((((input==4)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&!(a26==1))&&(a20==1)))&&(a16==10)))))&&(((((a1==12)&&((a2==1)&&(a3==1)))||!(a28==1))||!(a13==1))||!(a12==1)))){ + a19 = 1; + a9 = 7; + a16 = 7; + a6 = 1; + a18 = 0; + a5 = 4; + a28 = 1; + return -1; + } else if(((((a17==2)&&(((a16==11)&&(((a19==4)&&(((!(a23==1)&&((input==1)&&((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9)))))&&(a14==1))&&(a1==13)))&&(a20==1)))&&(a21==10)))&&(a7==1))&&((a26==1)&&((!(a2==1)&&(a13==1))&&!(a6==1))))){ + a16 = 7; + a5 = 4; + a15 = 0; + a29 = 1; + a1 = 14; + a12 = 0; + a9 = 10; + a19 = 1; + return 22; + } else if((((((a9==7)&&(((a5==5)||(a5==6))&&(input==1)))&&(a19==4))&&(a17==2))&&((a7==1)||((a16==10)&&((a23==1)&&((a21==11)&&(!(a13==1)||((((((a13==1)&&!(a20==1))||!(a2==1))&&(a1==14))||(a4==1))||!(a13==1))))))))){ + a5 = 4; + a19 = 2; + a2 = 0; + a20 = 1; + a14 = 1; + a1 = 13; + a21 = 10; + a3 = 0; + a16 = 7; + return -1; + } else if(((((!(a18==1)&&((a9==11)&&(((a16==11)&&((((a5==4)&&(input==4))&&(a1==13))&&!(a24==1)))&&(a20==1))))&&!(a4==1))&&(a13==1))&&((!(a18==1)&&((((a21==12)&&(a2==1))&&(a17==2))&&(a19==1)))&&(a28==1)))){ + a16 = 7; + a1 = 12; + a21 = 10; + a26 = 0; + a2 = 1; + a7 = 0; + a9 = 7; + return -1; + } else if((((a21==11)&&((a3==1)&&(((a19==1)&&(((input==4)&&(((((a1==12)&&(a5==6))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==13))))||(((a1==13)&&(a5==5))&&(a9==7))))&&(a12==1)))&&(a17==2))))&&(!(a12==1)||((((((a16==10)&&(a12==1))&&!(a7==1))&&(a12==1))||(a8==1))&&!(a20==1))))){ + if((a6==1)){ + a20 = 1; + a27 = 1; + a5 = 6; + a21 = 10; + a2 = 0; + a1 = 12; + a9 = 11; + a16 = 7; + a19 = 2; + a24 = 1; + }else{ + a5 = 6; + a9 = 8; + a4 = 1; + a25 = 1; + a19 = 5; + a1 = 12; + a16 = 7; + a12 = 0; + } + return 21; + } else if((((a19==1)&&(((!(a12==1)&&((input==1)&&((a5==4)||(a5==5))))&&(a16==7))&&(a8==1)))&&((a20==1)&&(((a1==12)&&(((((a7==1)&&((a0==1)&&(!(a2==1)&&(a13==1))))&&!(a12==1))&&(a21==12))&&(a17==2)))&&(a9==10))))){ + a8 = 1; + a7 = 1; + a9 = 8; + a5 = 6; + a20 = 0; + a16 = 8; + a18 = 1; + a21 = 10; + a19 = 4; + return -1; + } else if((((a16==11)&&((!(a4==1)&&(((!(a11==1)||((a12==1)&&((!(a8==1)&&((((a3==1)&&(a9==10))&&!(a24==1))&&(a1==13)))&&(a17==2))))&&(a19==2))&&(a3==1)))&&(a21==11)))&&((a5==5)&&((input==5)&&(a20==1))))){ + a1 = 14; + a5 = 4; + a3 = 1; + a21 = 10; + a16 = 7; + a9 = 8; + a20 = 0; + a7 = 0; + a19 = 5; + a4 = 0; + return 23; + } else if(((((a5==5)&&(((((((a2==1)&&((a12==1)&&(a16==8)))&&(a19==5))||(a18==1))&&(a21==10))&&(a17==2))&&(a1==14)))&&(a9==7))&&(!(a18==1)&&((((!(a20==1)&&(input==3))&&!(a8==1))&&!(a14==1))&&(a12==1))))){ + a5 = 4; + a19 = 1; + a12 = 1; + a20 = 1; + a24 = 0; + a16 = 7; + a11 = 1; + a1 = 12; + return -1; + } else if(((((((a16==8)&&(((a23==1)&&((a21==10)&&(((a12==1)&&((a2==1)&&(a28==1)))||!(a28==1))))&&(a1==13)))&&(a2==1))&&(a5==5))&&!(a20==1))&&((a9==9)&&(!(a4==1)&&(((a19==5)&&(input==4))&&(a17==2)))))){ + a21 = 12; + a1 = 14; + a13 = 1; + a9 = 10; + a12 = 1; + a20 = 1; + a14 = 0; + return 22; + } else if((((((((a21==11)&&(((a9==9)&&((input==1)&&(a20==1)))&&(a3==1)))&&(a1==12))&&(a17==2))&&(a5==4))&&!(a4==1))&&(!(a13==1)||((a4==1)||(((a16==7)&&((a13==1)&&((a2==1)&&(a6==1))))&&(a19==5)))))){ + a19 = 1; + a18 = 0; + a16 = 8; + a8 = 0; + a21 = 12; + a9 = 8; + a6 = 1; + return 23; + } else if(((((!(a6==1)||((((a17==2)&&(!(a8==1)&&((a3==1)&&(a20==1))))&&(a21==10))&&!(a14==1)))&&(a9==10))&&(a16==10))&&((((((((a5==4)||(a5==5))&&(input==5))&&(a19==2))&&(a28==1))&&(a1==13))&&(a2==1))&&(a13==1)))){ + a16 = 8; + a21 = 12; + a9 = 11; + a19 = 5; + a14 = 0; + a13 = 1; + a5 = 6; + return -1; + } else if((((a21==10)&&(!(a20==1)&&((a17==2)&&(!(a14==1)&&((((a23==1)&&((input==1)&&((a5==4)||(a5==5))))&&!(a7==1))&&(a16==7))))))&&(((!(a18==1)&&((a3==1)&&(!(a18==1)&&((a13==1)&&(a9==10)))))&&(a1==13))&&(a19==1)))){ + a20 = 1; + a1 = 12; + a2 = 1; + a7 = 0; + a5 = 4; + a14 = 0; + a9 = 7; + return -1; + } else if((((((a21==12)&&((((a19==5)&&((a20==1)&&(!(a18==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3)))))&&(a2==1))&&(a17==2)))&&(a16==11))&&!(a26==1))&&((((((a1==14)&&(a2==1))&&(a9==7))||(a27==1))||!(a11==1))||(a18==1)))){ + a18 = 0; + a16 = 7; + a21 = 10; + a5 = 4; + a19 = 1; + a1 = 12; + a24 = 0; + a7 = 0; + return -1; + } else if((((a13==1)&&(!(a8==1)&&((!(a28==1)||((a21==12)&&((a9==8)&&(!(a20==1)&&((a19==4)&&(a13==1))))))&&(a1==14))))&&((!(a4==1)&&(!(a14==1)&&((((input==5)&&((a5==5)||(a5==6)))&&!(a24==1))&&(a16==10))))&&(a17==2)))){ + a16 = 8; + a1 = 13; + a19 = 3; + a20 = 1; + a8 = 1; + a9 = 7; + a5 = 4; + a29 = 0; + return -1; + } else if(((!(a27==1)&&(((((a13==1)&&(((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a4==1)))&&(a13==1))&&!(a7==1))&&(a20==1)))&&((a1==12)&&(((((a21==12)&&((a12==1)&&((a3==1)&&(a17==2))))&&(a9==10))&&(a16==9))&&(a19==5))))){ + a23 = 1; + a16 = 7; + a21 = 10; + a6 = 1; + a19 = 1; + a8 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if((((a17==2)&&((a21==10)&&((a16==10)&&((((a13==1)&&((a3==1)&&(a9==9)))&&(a1==14))&&(a19==2)))))&&(!(a27==1)&&(!(a20==1)&&(((!(a18==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a13==1)))&&!(a7==1))&&(a13==1)))))){ + a20 = 1; + a22 = 1; + a19 = 1; + a11 = 0; + a1 = 12; + a10 = 1; + a5 = 5; + a9 = 7; + a16 = 7; + return 25; + } else if((((a19==2)&&((a20==1)&&(((a17==2)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a23==1)))&&(a9==11))))&&(((!(a8==1)&&((a7==1)||((((!(a4==1)&&(a12==1))&&(a3==1))&&(a16==10))&&!(a24==1))))&&(a21==12))&&(a1==12)))){ + a3 = 1; + a6 = 1; + a21 = 10; + a1 = 14; + a16 = 7; + a9 = 7; + a13 = 1; + a5 = 4; + a19 = 4; + return 25; + } else if((((a21==12)&&((a2==1)&&(((a20==1)&&((a19==5)&&(((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==3))&&(a28==1))))&&(a16==9))))&&(((a13==1)&&(((a28==1)&&((a17==2)&&((a13==1)&&(a1==14))))&&!(a18==1)))&&!(a24==1)))){ + a5 = 4; + a21 = 10; + a16 = 7; + a19 = 1; + a28 = 1; + a9 = 7; + a1 = 12; + a24 = 0; + a13 = 1; + return -1; + } else if((((a28==1)&&((!(a8==1)&&((((((a17==2)&&(input==5))&&(a2==1))&&!(a26==1))&&(a21==12))&&(a23==1)))&&!(a0==1)))&&((a1==14)&&((((a19==1)&&((a16==10)&&(!(a20==1)&&(a3==1))))&&(a9==8))&&(a5==6))))){ + if((a28==1)){ + a16 = 9; + a10 = 1; + a5 = 4; + a19 = 3; + a9 = 7; + a24 = 1; + a20 = 1; + a21 = 10; + }else{ + a9 = 11; + a5 = 4; + a26 = 1; + a15 = 0; + a1 = 13; + a13 = 0; + a19 = 3; + a16 = 7; + } + return -1; + } else if((((a19==5)&&(!(a13==1)||((a3==1)&&(a17==2))))&&(((!(a26==1)&&(!(a20==1)&&((a21==11)&&((a2==1)&&((((a9==9)&&((a1==13)&&(((a5==4)||(a5==5))&&(input==6))))&&!(a0==1))&&!(a18==1))))))&&(a16==10))&&!(a8==1)))){ + if((a11==1)){ + a3 = 0; + a20 = 1; + a19 = 1; + a4 = 1; + a16 = 7; + a29 = 1; + a5 = 6; + a21 = 10; + }else{ + a21 = 12; + a20 = 1; + a14 = 1; + a25 = 0; + a9 = 10; + a22 = 0; + a5 = 6; + a1 = 12; + } + return -1; + } else if(((((a9==7)&&(((input==3)&&((a5==5)||(a5==6)))&&!(a7==1)))&&!(a27==1))&&((a1==13)&&(((a20==1)&&(!(a7==1)&&(((a17==2)&&(((a7==1)||((!(a12==1)||(a2==1))&&(a16==10)))&&(a21==12)))||(a14==1))))&&(a19==3))))){ + a12 = 1; + a5 = 4; + a8 = 0; + a19 = 1; + a21 = 10; + a16 = 7; + a4 = 0; + a1 = 12; + return -1; + } else if(((!(a26==1)&&(!(a7==1)&&(((a21==11)&&(((a1==14)&&((((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&(input==6)))&&!(a14==1)))&&(a2==1))))&&((a16==10)&&((a11==1)&&(((((a17==2)&&(a23==1))&&(a19==1))&&!(a20==1))&&!(a27==1)))))){ + a1 = 13; + a16 = 11; + a5 = 4; + a8 = 1; + a20 = 1; + a3 = 0; + a6 = 0; + a9 = 11; + a21 = 12; + a19 = 2; + return 21; + } else if((((a21==12)&&((a1==14)&&((a19==2)&&((a16==9)&&(!(a14==1)&&(((a12==1)&&((a3==1)&&((a2==1)&&(((a17==2)&&(input==6))&&(a9==9)))))&&(a28==1)))))))&&((a20==1)&&((a5==4)&&((a3==1)&&!(a0==1)))))){ + a13 = 1; + a9 = 10; + a16 = 7; + a5 = 5; + a21 = 10; + a14 = 0; + a1 = 13; + a6 = 1; + return 22; + } else if(((!(a7==1)&&(((((!(a8==1)&&(!(a20==1)&&((a19==4)&&(input==5))))&&!(a7==1))&&(a21==10))&&(a1==13))&&(a9==11)))&&(((a17==2)&&(!(a4==1)&&(((a5==6)&&((a3==1)||!(a13==1)))&&(a16==10))))||(a7==1)))){ + a19 = 2; + a20 = 1; + a2 = 0; + a5 = 4; + a29 = 0; + a1 = 12; + a16 = 7; + a8 = 1; + a9 = 9; + return 21; + } else if((((a21==10)&&(((a6==1)&&(((a3==1)&&(a20==1))&&(a19==5)))&&(a17==2)))&&((!(a26==1)&&((a2==1)&&((a1==14)&&(!(a0==1)&&((((input==4)&&(((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))&&!(a26==1))&&!(a7==1))))))&&(a16==10)))){ + a1 = 12; + a18 = 0; + a9 = 7; + a19 = 1; + a16 = 7; + a5 = 4; + a28 = 1; + return -1; + } else if((((a21==11)&&(((a17==2)&&((a0==1)||(a2==1)))&&!(a4==1)))&&((a1==13)&&((a5==5)&&((!(a4==1)&&(((!(a18==1)&&(((a20==1)&&((a19==1)&&(input==4)))&&(a28==1)))&&(a28==1))&&(a16==10)))&&(a9==10)))))){ + a1 = 12; + a21 = 10; + a28 = 1; + a9 = 7; + a26 = 0; + a5 = 4; + a16 = 7; + a27 = 0; + return -1; + } else if(((!(a24==1)&&((((a13==1)&&(a17==2))&&(a2==1))&&!(a14==1)))&&((a3==1)&&((a11==1)&&((((a16==7)&&(!(a20==1)&&((((a19==5)&&(((a1==12)&&(a5==4))&&(a9==7)))||(((a19==4)&&((a9==11)&&((a5==5)&&(a1==14))))||((a19==4)&&((a9==11)&&((a5==6)&&(a1==14))))))&&(input==4))))&&(a21==10))&&(a11==1)))))){ + a9 = 7; + a11 = 1; + a1 = 12; + a20 = 1; + a13 = 1; + a28 = 1; + a19 = 1; + a5 = 4; + return -1; + } else if((((a17==2)&&((a23==1)&&((((((!(a27==1)&&((input==3)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5)))))&&!(a8==1))&&(a19==3))&&(a16==11))&&(a11==1))&&!(a4==1))))&&((a1==13)&&((((a2==1)&&(a20==1))&&(a11==1))&&(a21==11))))){ + a21 = 10; + a19 = 4; + a5 = 5; + a13 = 1; + a1 = 14; + a12 = 1; + a16 = 10; + a9 = 10; + a26 = 0; + return -1; + } else if((((a6==1)&&((a21==11)&&((a14==1)||((a16==10)&&(((a19==3)&&((a23==1)&&(a17==2)))&&(a2==1))))))&&(((a1==13)&&(((a13==1)&&(!(a4==1)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==6))))&&!(a20==1)))&&(a13==1)))){ + a25 = 0; + a0 = 1; + a16 = 9; + a21 = 10; + a7 = 1; + a9 = 8; + a5 = 5; + a19 = 1; + a20 = 1; + return -1; + } else if(((((a17==2)&&(!(a26==1)&&(!(a0==1)&&((((a16==8)&&(((a14==1)||(a12==1))&&(a28==1)))&&(a21==12))&&(a12==1)))))&&(a1==13))&&((a9==10)&&((!(a20==1)&&((((a5==5)||(a5==6))&&(input==3))&&(a2==1)))&&(a19==1))))){ + a9 = 9; + a15 = 0; + a10 = 1; + a19 = 4; + a20 = 1; + a16 = 9; + a28 = 0; + a5 = 5; + a21 = 11; + return -1; + } else if(((((((a4==1)||(a11==1))&&(a21==11))||!(a3==1))&&(a9==7))&&(!(a20==1)&&((a1==13)&&(((!(a26==1)&&((a11==1)&&(!(a26==1)&&(!(a27==1)&&((((a5==5)||(a5==6))&&(input==1))&&(a17==2))))))&&(a16==8))&&(a19==2)))))){ + a21 = 10; + a19 = 1; + a1 = 14; + a20 = 1; + a5 = 4; + a13 = 1; + a9 = 8; + a26 = 0; + a16 = 9; + a7 = 0; + return -1; + } else if((((((!(a12==1)||(((a16==10)&&((!(a11==1)||((a21==12)&&(a23==1)))&&(a20==1)))&&(a1==12)))&&!(a7==1))&&(a17==2))&&(a19==5))&&(((a11==1)&&((a12==1)&&((((a5==5)||(a5==6))&&(input==3))&&(a11==1))))&&(a9==9)))){ + a13 = 1; + a24 = 0; + a5 = 4; + a21 = 10; + a16 = 7; + a1 = 13; + a11 = 1; + a19 = 2; + return 26; + } else if((((!(a8==1)&&(((((a2==1)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))&&(a20==1))&&(a19==5))&&(a16==7)))&&(a28==1))&&(((((!(a12==1)||((a21==12)&&((a28==1)&&(a17==2))))&&(a1==14))&&(a9==10))||!(a28==1))||!(a28==1)))){ + a12 = 1; + a1 = 13; + a23 = 1; + a26 = 0; + a16 = 9; + a5 = 5; + a19 = 1; + return 22; + } else if((((((a12==1)&&!(a27==1))||(a18==1))&&!(a27==1))&&((((a17==2)&&((((a20==1)&&((((a21==11)&&(!(a18==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5))))&&(a1==14))&&(a16==9)))&&(a28==1))&&(a13==1)))&&(a19==2))&&(a9==9)))){ + a12 = 1; + a5 = 4; + a8 = 0; + a13 = 1; + a9 = 11; + a19 = 5; + return 21; + } else if((((a18==1)&&(((((input==5)&&(a9==11))&&!(a20==1))&&(a19==1))&&(a24==1)))&&((a24==1)&&(((((((a17==2)&&(!(a6==1)&&((a3==1)&&!(a12==1))))&&(a1==12))&&(a21==11))&&(a16==8))&&!(a2==1))&&(a5==4))))){ + a9 = 9; + a21 = 10; + a19 = 3; + a5 = 5; + a13 = 0; + a12 = 0; + a16 = 9; + a20 = 1; + a1 = 14; + return -1; + } else if(((((a2==1)&&(!(a4==1)&&(((((a17==2)&&(a12==1))&&(a19==5))&&(a16==9))&&(a1==14))))||!(a11==1))&&(!(a4==1)&&((((!(a20==1)&&((input==6)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))))&&(a21==12))&&(a2==1))&&(a23==1))))){ + if((a13==1)){ + a2 = 0; + a9 = 8; + a21 = 10; + a19 = 1; + a20 = 1; + a18 = 1; + a16 = 7; + a29 = 1; + a5 = 4; + }else{ + a12 = 0; + a3 = 0; + a21 = 10; + a1 = 12; + a16 = 7; + a9 = 10; + a29 = 0; + a20 = 1; + a19 = 2; + a5 = 5; + } + return 21; + } else if((((a1==12)&&((a20==1)&&((((a21==12)&&(((a14==1)&&(!(a6==1)&&(!(a11==1)&&((a9==11)&&((input==4)&&((a5==4)||(a5==5)))))))&&!(a23==1)))&&(a19==1))&&(a7==1))))&&((!(a23==1)&&((a17==2)&&(a6==1)))&&(a16==7)))){ + a16 = 9; + a29 = 0; + a19 = 3; + a5 = 5; + a14 = 1; + a10 = 0; + return -1; + } else if((((a21==10)&&((a17==2)&&((a7==1)&&((a26==1)&&((a16==11)&&(!(a11==1)&&((!(a28==1)&&(a13==1))&&(a19==1))))))))&&((!(a23==1)&&((a9==8)&&((((input==3)&&((a5==4)||(a5==5)))&&(a1==13))&&(a20==1))))&&(a8==1)))){ + a16 = 7; + a28 = 0; + a1 = 12; + a5 = 4; + a19 = 2; + a24 = 1; + a21 = 11; + a12 = 0; + return 25; + } else if((((a19==3)&&(!(a23==1)||(((!(a18==1)&&((a26==1)||(a2==1)))&&!(a20==1))&&(a9==11))))&&(((a13==1)&&((((a17==2)&&((!(a7==1)&&((input==3)&&((a5==5)||(a5==6))))&&(a1==13)))&&(a16==11))&&(a13==1)))&&(a21==10)))){ + a8 = 1; + a20 = 1; + a16 = 9; + a9 = 10; + a11 = 0; + a5 = 4; + a22 = 0; + a19 = 4; + return 23; + } else if((((!(a2==1)||((a19==3)&&((((a11==1)&&(a3==1))&&(a20==1))||(a7==1))))&&(a21==12))&&((((a3==1)&&(((!(a18==1)&&(((a9==7)&&(input==3))&&(a16==9)))&&(a5==6))&&(a1==12)))&&(a12==1))&&(a17==2)))){ + a14 = 0; + a19 = 1; + a21 = 10; + a2 = 1; + a5 = 4; + a23 = 1; + a16 = 7; + return -1; + } else if((((((!(a14==1)&&(!(a0==1)&&((a3==1)&&(!(a26==1)&&((a9==10)&&(((a16==11)&&(input==5))&&(a21==12)))))))&&(a17==2))&&(a1==12))&&(a19==5))&&((a20==1)&&((a5==4)&&(!(a6==1)||((a11==1)&&(a23==1))))))){ + a0 = 0; + a16 = 7; + a1 = 14; + a26 = 0; + a21 = 10; + a8 = 0; + a20 = 0; + return 22; + } else if((((a21==10)&&(((a16==11)&&((!(a11==1)||((a23==1)&&(!(a6==1)||(a2==1))))||(a4==1)))&&(a20==1)))&&((a17==2)&&((a19==4)&&((a1==13)&&((!(a26==1)&&((input==5)&&(((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))))&&!(a4==1))))))){ + a5 = 4; + a16 = 7; + a1 = 12; + a19 = 1; + a9 = 7; + a4 = 0; + a7 = 0; + return -1; + } else if(((!(a8==1)&&(((!(a20==1)&&((((a21==12)&&(input==5))&&!(a26==1))&&(a17==2)))&&(a1==13))&&!(a14==1)))&&(((a13==1)&&((a16==9)&&((a9==7)&&(((!(a8==1)&&(a3==1))&&(a5==4))&&(a19==3)))))&&(a13==1)))){ + a5 = 6; + a0 = 1; + a20 = 1; + a21 = 10; + a15 = 1; + a29 = 1; + a19 = 1; + a16 = 7; + a1 = 14; + a9 = 10; + return 22; + } else if((((a4==1)||((((((a21==10)&&((a16==7)&&((a20==1)&&((a1==12)&&(a12==1)))))&&(a6==1))&&(a19==5))&&!(a8==1))||!(a13==1)))&&(!(a4==1)&&((!(a4==1)&&((((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(input==1)))&&(a17==2))))){ + a5 = 4; + a19 = 2; + a26 = 0; + a21 = 12; + a8 = 0; + a9 = 7; + a4 = 0; + return 22; + } else if((((((a16==9)&&(((a12==1)&&(a17==2))&&(a9==7)))&&(a6==1))&&!(a24==1))&&((((((a19==5)&&((!(a26==1)&&(!(a18==1)&&((input==5)&&((a5==6)||((a5==4)||(a5==5))))))&&(a21==11)))&&!(a20==1))&&(a1==13))&&!(a24==1))&&!(a4==1)))){ + a11 = 0; + a0 = 1; + a5 = 4; + a9 = 10; + a10 = 0; + a16 = 7; + a1 = 12; + a19 = 2; + a20 = 1; + a21 = 10; + return -1; + } else if(((((a1==14)&&((a21==12)&&(((((a19==2)&&(input==6))&&!(a12==1))&&(a14==1))&&(a17==2))))&&(a9==11))&&(((((a20==1)&&(((a8==1)&&((a4==1)&&(a11==1)))&&!(a12==1)))&&!(a28==1))&&(a16==8))&&(a5==4)))){ + a5 = 6; + a21 = 10; + a9 = 9; + a15 = 0; + a8 = 1; + a16 = 7; + a0 = 1; + a19 = 1; + return -1; + } else if((((a21==12)&&(((a19==4)&&((a2==1)||(a26==1)))&&!(a14==1)))&&((a9==7)&&((a17==2)&&((((a13==1)&&((a23==1)&&(((a16==8)&&(((a5==4)&&(input==1))&&(a2==1)))&&(a20==1))))&&!(a26==1))&&(a1==12)))))){ + a28 = 1; + a0 = 0; + a19 = 1; + a14 = 0; + a16 = 7; + a21 = 10; + return -1; + } else if((((a20==1)&&(((((a21==12)&&(((a2==1)||!(a13==1))&&(a1==12)))&&(a5==5))&&(a12==1))&&!(a8==1)))&&(!(a14==1)&&((!(a18==1)&&((a19==4)&&((((a17==2)&&(input==3))&&(a16==9))&&(a13==1))))&&(a9==11))))){ + a3 = 1; + a18 = 0; + a19 = 1; + a8 = 0; + a21 = 10; + a5 = 4; + a9 = 7; + a16 = 7; + return -1; + } else if((((a5==6)&&(((a17==2)&&((a16==9)&&((a23==1)&&(((a21==11)&&(input==5))&&(a1==13)))))&&(a20==1)))&&((a19==2)&&(((!(a14==1)&&(!(a18==1)&&(((a6==1)||!(a12==1))&&!(a26==1))))&&(a9==7))&&(a23==1))))){ + a1 = 12; + a13 = 1; + a16 = 7; + a11 = 1; + a19 = 1; + a7 = 0; + a5 = 4; + a21 = 10; + return -1; + } else if((((a16==7)&&((a9==8)&&((a1==14)&&((a21==12)&&((a3==1)&&(a5==6))))))&&((!(a20==1)&&((a8==1)&&((a4==1)&&(((a18==1)&&((!(a12==1)&&((a19==5)&&(input==4)))&&!(a2==1)))&&(a18==1)))))&&(a17==2)))){ + a21 = 10; + a9 = 10; + a23 = 0; + a6 = 0; + a19 = 1; + a1 = 13; + a5 = 5; + a29 = 0; + a20 = 1; + return -1; + } else if((((!(a20==1)&&((a17==2)&&((!(a14==1)&&(((a9==11)&&(((a5==4)||(a5==5))&&(input==1)))&&!(a27==1)))&&(a16==9))))&&!(a18==1))&&(((((a1==12)&&(((a2==1)||!(a28==1))&&(a2==1)))||(a7==1))&&(a21==11))&&(a19==3)))){ + if((a7==1)){ + a15 = 1; + a19 = 4; + a20 = 1; + a5 = 6; + a12 = 0; + a11 = 0; + a21 = 12; + }else{ + a16 = 8; + a9 = 10; + a0 = 1; + a21 = 10; + a6 = 0; + a5 = 4; + } + return -1; + } else if((((a3==1)&&(!(a8==1)&&((a23==1)&&(!(a20==1)&&((a17==2)&&((a21==12)&&((a16==9)&&((a13==1)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==3))))))))))&&(!(a26==1)&&((!(a7==1)&&((a1==12)&&(a11==1)))&&(a19==2))))){ + if((a19==2)){ + a16 = 8; + a5 = 4; + a20 = 1; + a0 = 1; + a28 = 0; + a9 = 8; + a21 = 10; + a24 = 1; + a19 = 4; + }else{ + a0 = 1; + a16 = 7; + a23 = 0; + a20 = 1; + a21 = 10; + a5 = 5; + a9 = 9; + a26 = 1; + } + return 21; + } else if(((!(a20==1)&&((a21==10)&&(((a19==3)&&(a28==1))||(a24==1))))&&((a1==12)&&((a16==8)&&((!(a27==1)&&(!(a0==1)&&(!(a27==1)&&(((a28==1)&&((((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a5==6)&&(a9==10))))&&(input==4)))&&!(a26==1)))))&&(a17==2)))))){ + a20 = 1; + a26 = 0; + a9 = 9; + a16 = 7; + a5 = 6; + a6 = 1; + a19 = 4; + return -1; + } else if(((((a17==2)&&(((((a6==1)&&((((a1==12)&&((input==6)&&(a20==1)))&&!(a7==1))&&(a9==11)))&&(a5==4))&&(a28==1))&&(a16==11)))&&(a19==4))&&((a21==11)&&((((a6==1)&&!(a8==1))||!(a3==1))||!(a2==1))))){ + a1 = 14; + a12 = 1; + a23 = 1; + a16 = 9; + a11 = 1; + a21 = 10; + a5 = 5; + a19 = 2; + a9 = 10; + return 21; + } else if(((((a9==11)&&(!(a26==1)&&((a28==1)&&(!(a7==1)&&(((a21==10)&&(((a5==5)||(a5==6))&&(input==3)))&&(a17==2))))))&&(a11==1))&&((a16==10)&&(((a3==1)&&(((a24==1)||((a11==1)&&(a1==14)))&&!(a20==1)))&&(a19==5))))){ + a9 = 10; + a5 = 6; + a8 = 1; + a19 = 1; + a1 = 13; + a7 = 1; + a26 = 1; + return 26; + } else if((((((((a3==1)||(a26==1))&&(a21==10))&&(a17==2))&&(a19==1))||!(a23==1))&&(((a9==7)&&((a12==1)&&(((a16==8)&&((a11==1)&&(((((a5==4)||(a5==5))&&(input==5))&&!(a8==1))&&(a28==1))))&&(a20==1))))&&(a1==12)))){ + a28 = 1; + a16 = 7; + a7 = 0; + a27 = 0; + a5 = 4; + return -1; + } else if(((((a17==2)&&(!(a20==1)&&(((a21==10)&&(a3==1))||(a7==1))))&&!(a7==1))&&((((((a11==1)&&(((a6==1)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))&&(input==3)))&&!(a24==1)))&&!(a18==1))&&(a16==10))&&(a1==14))&&(a19==3)))){ + a9 = 9; + a0 = 1; + a5 = 6; + a1 = 12; + a19 = 1; + a20 = 1; + a11 = 0; + a16 = 7; + a29 = 0; + return -1; + } else if((((!(a26==1)&&(!(a4==1)&&((a17==2)&&((a19==1)&&(input==3)))))&&(a16==10))&&((((((((a9==7)&&(((a27==1)||(a2==1))||!(a3==1)))&&(a5==6))&&(a20==1))&&(a21==10))&&(a1==12))&&!(a0==1))||!(a3==1)))){ + a14 = 0; + a16 = 7; + a5 = 4; + a3 = 1; + a13 = 1; + return -1; + } else if((((a21==11)&&(((a19==3)&&(((((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a28==1))&&(a1==12))&&(a28==1)))&&!(a20==1)))&&(((((a11==1)&&(((!(a27==1)&&(a3==1))&&!(a8==1))&&(a16==7)))||(a8==1))&&(a9==7))&&(a17==2)))){ + a19 = 1; + a14 = 0; + a5 = 4; + a21 = 10; + a4 = 0; + a20 = 1; + return -1; + } else if(((((a11==1)&&(((a1==13)&&((((a20==1)&&(a6==1))&&(a3==1))&&(a16==9)))||!(a11==1)))&&(a17==2))&&(((((((a9==8)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&(a11==1))&&(a21==11))&&!(a27==1))&&!(a26==1))&&(a19==3)))){ + a9 = 7; + a21 = 10; + a27 = 0; + a16 = 7; + a5 = 4; + a12 = 1; + a6 = 1; + a1 = 12; + a19 = 1; + return -1; + } else if(((!(a24==1)&&(((a16==8)&&((!(a4==1)&&((a19==5)&&(((a5==4)||(a5==5))&&(input==4))))&&(a9==10)))&&(a28==1)))&&(((((a21==11)&&((((a2==1)&&!(a20==1))&&!(a7==1))||(a7==1)))&&(a11==1))&&(a1==12))&&(a17==2)))){ + a19 = 2; + a1 = 13; + a21 = 10; + a5 = 4; + a23 = 1; + a6 = 1; + a4 = 0; + a20 = 1; + a16 = 9; + return 25; + } else if(((((a21==12)&&(((a1==12)&&((a13==1)&&((a16==9)&&(((a27==1)||((a11==1)&&(a5==6)))&&(a11==1)))))&&(a17==2)))&&(a2==1))&&(((a9==11)&&(((!(a20==1)&&(input==3))&&(a6==1))&&(a2==1)))&&(a19==4)))){ + if((a6==1)){ + a19 = 3; + a9 = 8; + a14 = 1; + a23 = 0; + a5 = 5; + a15 = 1; + a21 = 10; + }else{ + a21 = 10; + a19 = 1; + a29 = 0; + a10 = 0; + a25 = 1; + a16 = 7; + a20 = 1; + a5 = 5; + a9 = 8; + } + return -1; + } else if((((a13==1)&&((a1==13)&&((a11==1)&&((((a20==1)&&(((a13==1)&&(!(a24==1)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==3))))&&(a16==7)))&&(a19==5))&&(a21==12)))))&&(((!(a26==1)&&(a6==1))&&(a17==2))||(a26==1)))){ + a9 = 7; + a8 = 0; + a0 = 0; + a5 = 4; + a19 = 1; + a1 = 12; + a24 = 0; + a21 = 10; + return -1; + } else if(((((!(a0==1)&&(((a17==2)&&(((!(a18==1)&&(!(a4==1)&&((input==1)&&((a5==6)||((a5==4)||(a5==5))))))&&(a1==13))&&(a20==1)))&&(a16==8)))&&(a13==1))&&(a9==11))&&((a21==11)&&((a19==1)&&((a12==1)&&((a4==1)||(a3==1))))))){ + a5 = 6; + a9 = 8; + a27 = 0; + a6 = 1; + a21 = 12; + a1 = 14; + a7 = 0; + return 21; + } else if(((!(a24==1)&&(((((((a21==10)&&(((a9==11)&&((a1==13)&&(input==6)))&&(a19==4)))&&(a5==6))&&(a17==2))&&!(a4==1))&&!(a26==1))&&!(a18==1)))&&((a24==1)||((a16==7)&&((a20==1)&&((a24==1)||(a28==1))))))){ + a2 = 1; + a24 = 0; + a21 = 11; + a19 = 5; + a11 = 1; + a9 = 10; + a5 = 5; + return 23; + } else if(((((a20==1)&&(!(a28==1)||((a9==9)&&((a17==2)&&(((a1==14)&&((a19==5)&&(a11==1)))&&(a16==8))))))&&(a23==1))&&((a2==1)&&((((a21==12)&&(!(a14==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4))))&&!(a14==1))&&(a6==1))))){ + a13 = 1; + a9 = 7; + a5 = 4; + a1 = 12; + a16 = 7; + a21 = 10; + a19 = 1; + a26 = 0; + a23 = 1; + return -1; + } else if(((!(a28==1)||((((a12==1)&&(a21==12))&&(a17==2))&&(a9==10)))&&(!(a18==1)&&(((a23==1)&&((!(a26==1)&&((((a1==14)&&((a16==8)&&((input==6)&&(a19==3))))&&(a20==1))&&(a5==4)))&&(a28==1)))&&(a11==1))))){ + a6 = 1; + a16 = 10; + a18 = 0; + a11 = 1; + a1 = 12; + a9 = 9; + return 21; + } else if(((((a19==3)&&(!(a20==1)&&((a1==14)&&((a3==1)||(a7==1)))))&&(a17==2))&&((a11==1)&&(!(a7==1)&&((a21==10)&&((a16==10)&&((((a23==1)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==5)))&&!(a27==1))&&(a3==1)))))))){ + a20 = 1; + a9 = 8; + a19 = 1; + a29 = 1; + a16 = 7; + a5 = 6; + a4 = 1; + a3 = 0; + return -1; + } else if((((a19==4)&&((a16==9)&&((a17==2)&&(((a9==8)&&((a20==1)&&(((a1==13)&&((input==1)&&(a5==6)))&&!(a0==1))))&&!(a27==1)))))&&((a4==1)||(!(a13==1)||((a27==1)||((a21==12)&&((a8==1)||(a13==1)))))))){ + a3 = 1; + a21 = 10; + a19 = 1; + a1 = 12; + a16 = 7; + a5 = 4; + a9 = 7; + a6 = 1; + a14 = 0; + return -1; + } else if((((a17==2)&&((a19==4)&&(a13==1)))&&(((!(a20==1)&&((!(a8==1)&&((a16==10)&&(!(a4==1)&&(!(a8==1)&&((a12==1)&&(((((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(input==4))&&!(a18==1)))))))&&(a13==1)))&&(a1==12))&&(a21==10)))){ + a25 = 0; + a9 = 7; + a19 = 1; + a16 = 7; + a14 = 1; + a27 = 1; + a5 = 5; + a1 = 14; + a20 = 1; + return -1; + } else if((((a17==2)&&(((a11==1)&&(((a28==1)&&((a3==1)&&(!(a7==1)&&((((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11)))&&(input==4))&&(a6==1)))))&&(a2==1)))&&(a19==2)))&&((a1==12)&&((a21==12)&&(!(a20==1)&&((a28==1)&&(a16==7))))))){ + a20 = 1; + a5 = 4; + a21 = 10; + a3 = 1; + a26 = 0; + a8 = 0; + a19 = 1; + a9 = 7; + return -1; + } else if((((a21==11)&&((((a11==1)&&(a11==1))&&!(a0==1))&&!(a4==1)))&&(((a13==1)&&(((a5==6)&&(((!(a20==1)&&((((input==4)&&(a16==10))&&(a13==1))&&(a9==11)))&&(a1==14))&&(a17==2)))&&(a19==3)))&&(a28==1)))){ + a20 = 1; + a9 = 9; + a5 = 4; + a7 = 1; + a25 = 0; + a16 = 7; + a12 = 0; + a21 = 10; + a19 = 2; + a1 = 12; + return 21; + } else if((((a9==7)&&(((((((a23==1)&&!(a7==1))&&(a19==2))&&(a2==1))&&!(a18==1))&&(a5==5))&&(a28==1)))&&((!(a20==1)&&(!(a4==1)&&((((a21==11)&&((a1==13)&&(input==1)))&&(a23==1))&&(a17==2))))&&(a16==9)))){ + if((a11==1)){ + a1 = 12; + a21 = 10; + a20 = 1; + a16 = 7; + a9 = 10; + a23 = 0; + a29 = 0; + a5 = 4; + a12 = 0; + }else{ + a1 = 12; + a5 = 4; + a25 = 0; + a16 = 7; + a12 = 0; + a19 = 1; + a4 = 1; + a9 = 11; + a21 = 10; + a20 = 1; + } + return -1; + } else if((((a9==10)&&(!(a24==1)&&(!(a18==1)&&((a3==1)&&((a21==11)&&(a3==1))))))&&(((a23==1)&&(((a6==1)&&(((a17==2)&&((a1==12)&&((a16==11)&&(((a5==5)||(a5==6))&&(input==5)))))&&(a20==1)))&&(a23==1)))&&(a19==3)))){ + a28 = 1; + a23 = 1; + a16 = 9; + a5 = 5; + a19 = 1; + return 25; + } else if((((a9==7)&&((a1==13)&&(!(a12==1)||(((a14==1)||((a11==1)&&!(a20==1)))||!(a3==1)))))&&((a21==11)&&((((((a11==1)&&((((a5==5)||(a5==6))&&(input==5))&&!(a27==1)))&&(a19==3))&&(a17==2))&&(a23==1))&&(a16==9))))){ + a5 = 4; + a26 = 1; + a19 = 2; + a6 = 0; + a12 = 0; + a9 = 11; + a16 = 8; + a1 = 14; + return -1; + } else if(((((a21==11)&&(((a17==2)&&((!(a0==1)&&(!(a18==1)&&((a19==1)&&((a3==1)&&((a9==8)&&(((a5==4)||(a5==5))&&(input==3)))))))&&(a23==1)))&&(a1==14)))&&(a16==9))&&(((!(a11==1)||(a23==1))||(a4==1))&&!(a20==1)))){ + a11 = 0; + a5 = 5; + a1 = 13; + a19 = 3; + a20 = 1; + a23 = 0; + a9 = 7; + a16 = 11; + a14 = 1; + return -1; + } else if(((!(a0==1)&&((a28==1)&&((a16==8)&&((a20==1)&&(((((input==3)&&(a21==11))&&!(a4==1))&&(a9==7))&&(a17==2))))))&&(((a1==14)&&(((a14==1)||(((a5==5)&&(a2==1))&&(a13==1)))&&(a19==5)))&&!(a26==1)))){ + a0 = 0; + a21 = 10; + a5 = 4; + a19 = 1; + a8 = 0; + a16 = 7; + a28 = 1; + a1 = 12; + return -1; + } else if((((a28==1)&&(!(a27==1)&&((a16==7)&&((a13==1)&&(((a17==2)&&((a19==3)&&(((a5==6)&&(input==5))&&(a9==11))))&&(a20==1))))))&&((!(a7==1)&&((((a28==1)&&(a21==11))&&(a1==13))||!(a28==1)))||!(a2==1)))){ + a1 = 14; + a6 = 1; + a4 = 0; + a16 = 8; + a5 = 5; + a19 = 1; + a13 = 1; + return 25; + } else if(((!(a23==1)||((a9==9)&&((a23==1)||(a7==1))))&&(!(a27==1)&&(!(a0==1)&&(((((a21==12)&&((a1==14)&&(!(a8==1)&&((a19==3)&&((a5==6)&&((input==1)&&(a20==1)))))))&&(a17==2))&&(a16==11))&&(a13==1)))))){ + a21 = 11; + a4 = 0; + a5 = 5; + a19 = 5; + a9 = 11; + a6 = 1; + a23 = 1; + a16 = 9; + return 21; + } else if(((!(a4==1)&&((a26==1)||(((a2==1)&&!(a24==1))&&(a21==10))))&&((a6==1)&&(((!(a0==1)&&(((a16==9)&&((a9==10)&&(!(a7==1)&&((((a5==5)||(a5==6))&&(input==3))&&(a1==13)))))&&(a20==1)))&&(a17==2))&&(a19==4))))){ + a28 = 1; + a19 = 1; + a3 = 1; + a9 = 7; + a5 = 4; + a1 = 12; + a16 = 7; + return -1; + } else if((((a16==8)&&((a1==13)&&((a17==2)&&((a23==1)&&((a20==1)&&((a19==4)&&(!(a0==1)&&(!(a7==1)&&((((a5==5)||(a5==6))&&(input==4))&&!(a14==1))))))))))&&(((((a21==11)&&(a13==1))&&(a2==1))&&(a9==9))||!(a3==1)))){ + a27 = 0; + a18 = 0; + a1 = 12; + a21 = 10; + a5 = 4; + a9 = 7; + a16 = 7; + a19 = 1; + a14 = 0; + return -1; + } else if((((a17==2)&&(!(a20==1)&&(!(a28==1)||((a14==1)||((a18==1)||(!(a27==1)&&((a28==1)&&(a23==1))))))))&&((((a19==4)&&((((a1==14)&&((a9==10)&&(input==4)))&&!(a24==1))&&(a16==9)))&&(a21==10))&&(a5==5)))){ + a16 = 7; + a18 = 1; + a9 = 7; + a20 = 1; + a27 = 1; + a1 = 12; + a24 = 1; + a19 = 2; + return -1; + } else if((((!(a8==1)&&((((a28==1)&&((a17==2)&&((((a19==1)&&(input==6))&&!(a7==1))&&(a12==1))))&&(a1==14))&&!(a24==1)))&&!(a20==1))&&((a9==10)&&((((a21==10)&&((a16==7)&&(a13==1)))||(a7==1))&&(a5==4))))){ + a8 = 0; + a20 = 1; + a19 = 3; + a7 = 0; + a28 = 1; + return 25; + } else if(((!(a18==1)&&((a14==1)||((a17==2)&&(((a19==3)&&((((a28==1)||(a27==1))&&(a1==14))&&!(a26==1)))||(a0==1)))))&&((((a21==10)&&(((((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7))))&&(input==6))&&(a20==1)))&&(a28==1))&&(a16==9)))){ + a2 = 1; + a19 = 5; + a16 = 8; + a12 = 1; + a5 = 4; + a1 = 13; + a6 = 1; + a9 = 7; + return 25; + } else if(((((a5==5)&&((!(a18==1)&&((a12==1)&&!(a8==1)))&&(a9==9)))&&(a20==1))&&(((a17==2)&&(((!(a18==1)&&((a23==1)&&(!(a18==1)&&(((input==3)&&(a1==12))&&(a3==1)))))&&(a16==7))&&(a21==12)))&&(a19==4)))){ + a3 = 1; + a5 = 4; + a21 = 10; + a9 = 7; + a11 = 1; + a19 = 1; + return -1; + } else if((((!(a2==1)&&((a19==4)&&(!(a20==1)&&(((input==4)&&((a5==4)||(a5==5)))&&(a21==12)))))&&(a16==7))&&(!(a13==1)&&((a7==1)&&(!(a13==1)&&((a17==2)&&(((((a28==1)&&(a1==13))&&(a18==1))&&(a9==11))&&!(a12==1)))))))){ + a21 = 11; + a5 = 4; + a20 = 1; + a18 = 1; + a22 = 0; + a19 = 3; + a15 = 0; + a1 = 12; + a9 = 10; + return -1; + } else if(((!(a3==1)||((((a9==8)&&(((a5==5)&&((((a21==12)&&(a28==1))||(a27==1))&&!(a0==1)))&&(a23==1)))||!(a28==1))&&(a19==5)))&&((a1==14)&&((!(a24==1)&&((a17==2)&&((input==6)&&(a16==7))))&&(a20==1))))){ + a19 = 1; + a23 = 1; + a1 = 12; + a5 = 4; + a28 = 1; + a21 = 10; + a7 = 0; + a9 = 7; + return -1; + } else if((((a19==5)&&(((!(a12==1)||((a9==11)&&(!(a23==1)||((a6==1)&&(a17==2)))))&&(a6==1))&&!(a24==1)))&&(((a13==1)&&((a1==14)&&(((a16==10)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&(a2==1)))&&(a21==11))))&&!(a20==1)))){ + if((a20==1)){ + a25 = 0; + a18 = 1; + a22 = 1; + a20 = 1; + a16 = 9; + a21 = 10; + a5 = 4; + a1 = 13; + a19 = 1; + }else{ + a24 = 1; + a14 = 1; + a20 = 1; + a16 = 7; + a9 = 7; + a19 = 2; + a21 = 12; + a5 = 5; + a10 = 1; + } + return 21; + } else if(((((a16==9)&&((a28==1)&&((a3==1)&&(((!(a8==1)&&((input==5)&&((a5==5)||(a5==6))))&&(a21==10))&&(a1==12)))))&&(a19==1))&&(((((a12==1)&&(((a12==1)&&!(a0==1))&&(a9==7)))&&(a17==2))&&!(a20==1))||(a24==1)))){ + if((a24==1)){ + a3 = 0; + a0 = 1; + a5 = 5; + a20 = 1; + a29 = 1; + }else{ + a16 = 7; + a5 = 5; + a9 = 10; + a4 = 1; + a1 = 14; + a19 = 3; + a21 = 12; + a28 = 0; + a20 = 1; + } + return -1; + } else if((((((a5==6)&&((a9==9)&&(((a28==1)&&((a28==1)&&(a3==1)))&&(a19==5))))||!(a28==1))||(a7==1))&&((a21==10)&&(((((a17==2)&&((!(a20==1)&&(input==1))&&(a16==9)))&&!(a7==1))&&(a23==1))&&(a1==12))))){ + if((a13==1)){ + a25 = 0; + a9 = 10; + a16 = 7; + a20 = 1; + a14 = 1; + a15 = 1; + a19 = 1; + }else{ + a19 = 2; + a2 = 0; + a20 = 1; + a27 = 1; + a22 = 0; + a9 = 7; + a21 = 12; + } + return -1; + } else if(((((a21==11)&&(((a1==13)&&(((input==6)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(a6==1)))&&(a16==9)))&&!(a24==1))&&((a20==1)&&(!(a23==1)||(((a17==2)&&((((a23==1)||(a0==1))&&(a19==1))&&(a11==1)))||(a24==1)))))){ + if((a3==1)){ + a12 = 1; + a5 = 6; + a20 = 0; + a21 = 10; + a19 = 3; + a16 = 8; + a18 = 0; + a11 = 1; + a1 = 14; + a9 = 8; + }else{ + a5 = 4; + a21 = 12; + a23 = 1; + a16 = 10; + a8 = 0; + a9 = 10; + a18 = 0; + a19 = 3; + } + return 21; + } else if(((((a23==1)&&(a1==12))&&!(a2==1))&&(!(a11==1)&&((((a7==1)&&((a19==4)&&((a9==10)&&(((a16==8)&&(!(a20==1)&&(((((a5==5)||(a5==6))&&(input==5))&&(a21==11))&&(a17==2))))&&!(a11==1)))))&&!(a3==1))&&!(a2==1))))){ + a25 = 0; + a19 = 5; + a0 = 1; + a16 = 7; + a9 = 11; + a1 = 13; + a3 = 0; + a5 = 5; + a21 = 10; + return 25; + } else if(((!(a6==1)||((a18==1)||(!(a0==1)&&((a19==1)&&(((a1==13)&&(a11==1))&&(a17==2))))))&&(((a20==1)&&((((a23==1)&&(((input==4)&&((((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4))))&&(a21==11)))&&!(a24==1))&&(a16==10)))&&!(a7==1)))){ + a9 = 7; + a4 = 0; + a13 = 1; + a21 = 10; + a1 = 12; + a23 = 1; + a16 = 7; + a5 = 4; + return -1; + } else if(((((a9==7)&&(((a19==3)&&((((a6==1)||(a8==1))&&!(a0==1))&&(a11==1)))&&(a17==2)))&&(a1==13))&&(((a20==1)&&(!(a0==1)&&(!(a18==1)&&(((a23==1)&&((input==3)&&(a5==4)))&&(a21==10)))))&&(a16==8)))){ + a26 = 0; + a11 = 1; + a6 = 1; + a19 = 1; + a1 = 12; + a16 = 7; + return -1; + } else if(((((((((((a19==1)&&(!(a4==1)&&(((a0==1)||(a13==1))&&(a12==1))))&&(a21==11))||(a8==1))&&(a9==7))&&(a1==13))&&(a16==7))&&(a20==1))&&(a17==2))&&((a13==1)&&((a6==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3)))))){ + a5 = 4; + a21 = 10; + a1 = 12; + a4 = 0; + a3 = 1; + return -1; + } else if(((((a21==10)&&((!(a14==1)&&((a28==1)&&(((a13==1)&&(!(a20==1)&&((((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10))))&&(input==6))))&&(a13==1))))&&(a13==1)))&&(a17==2))&&(((((a28==1)&&(a16==7))&&(a19==4))&&!(a26==1))&&(a1==14)))){ + a4 = 0; + a23 = 1; + a2 = 1; + a9 = 10; + a16 = 8; + a5 = 4; + return 21; + } else if((((((a8==1)||(!(a26==1)&&(!(a12==1)||(((a6==1)&&(a20==1))&&(a21==11)))))&&(a11==1))||!(a13==1))&&((a6==1)&&((a17==2)&&((a16==9)&&((((input==4)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5))))&&(a19==4))&&(a1==14))))))){ + a5 = 6; + a3 = 1; + a14 = 0; + a6 = 1; + a21 = 10; + a9 = 10; + a16 = 10; + return 25; + } else if(((((a17==2)&&((a20==1)&&((((((input==6)&&(a9==9))&&(a5==4))&&!(a24==1))&&(a1==14))&&(a11==1))))&&(a2==1))&&(!(a13==1)||((a28==1)&&((((a16==11)&&((a23==1)||(a24==1)))&&(a21==11))&&(a19==2)))))){ + a16 = 10; + a28 = 1; + a21 = 10; + a27 = 0; + a13 = 1; + a9 = 8; + return 21; + } else if((((a1==13)&&(!(a6==1)||((a21==10)&&(((a6==1)&&(a16==8))&&!(a20==1)))))&&((((((((a17==2)&&(!(a4==1)&&((input==4)&&((a5==4)||(a5==5)))))&&(a9==10))&&!(a18==1))&&!(a8==1))&&!(a7==1))&&(a19==4))&&(a6==1)))){ + a23 = 1; + a16 = 7; + a6 = 1; + a20 = 1; + a14 = 0; + a9 = 7; + a5 = 4; + a1 = 12; + a19 = 1; + return -1; + } else if(((!(a4==1)&&(!(a14==1)&&(((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a21==10))))&&(((((((a1==13)&&(((!(a4==1)&&(!(a3==1)||(a2==1)))&&(a16==8))&&(a17==2)))||!(a3==1))||!(a11==1))&&(a19==2))&&(a9==10))&&(a20==1)))){ + a0 = 0; + a16 = 7; + a1 = 12; + a19 = 1; + a5 = 4; + a9 = 7; + a12 = 1; + a18 = 0; + return -1; + } else if((((((a5==6)&&((a26==1)||(((a18==1)||((a19==3)&&(((a24==1)||(a13==1))&&(a2==1))))&&(a21==10))))||!(a12==1))&&(a1==14))&&((((a17==2)&&((a12==1)&&(!(a20==1)&&(input==1))))&&(a16==8))&&(a9==10)))){ + a20 = 1; + a0 = 0; + a5 = 5; + a9 = 9; + a21 = 11; + a27 = 0; + a16 = 7; + a8 = 0; + return 22; + } else if(((((a19==5)&&(((((((a28==1)||(a4==1))&&(a6==1))&&(a20==1))&&(a17==2))&&(a21==12))||!(a11==1)))&&(a9==7))&&(((a1==12)&&((((a2==1)&&((input==1)&&((a5==5)||(a5==6))))&&(a23==1))&&(a28==1)))&&(a16==9)))){ + a16 = 10; + a0 = 0; + a1 = 13; + a5 = 5; + a21 = 11; + a9 = 9; + a19 = 2; + a7 = 0; + a28 = 1; + return 21; + } else if(((((!(a18==1)&&(!(a0==1)&&((a21==11)&&((a3==1)&&(a28==1)))))&&(a5==4))&&(a17==2))&&(((a16==8)&&(!(a24==1)&&(((a28==1)&&((((a20==1)&&(input==3))&&(a19==3))&&(a1==13)))&&(a23==1))))&&(a9==11)))){ + a1 = 12; + a3 = 1; + a16 = 7; + a7 = 0; + a19 = 1; + a0 = 0; + a21 = 10; + a9 = 7; + return -1; + } else if(((((((a21==12)&&((((a19==5)&&((a9==11)&&(((a5==5)||(a5==6))&&(input==6))))&&(a23==1))&&(a17==2)))&&!(a20==1))&&(a13==1))&&!(a24==1))&&((!(a11==1)||((a1==13)&&(((a28==1)&&(a16==10))&&!(a27==1))))&&(a3==1)))){ + a21 = 10; + a19 = 2; + a16 = 11; + a9 = 7; + a28 = 0; + a5 = 4; + a4 = 1; + return -1; + } else if((((((a27==1)||((a19==3)&&((a3==1)&&(a21==12))))&&(a28==1))||(a24==1))&&((!(a8==1)&&(((((((a12==1)&&((a1==13)&&(input==3)))&&(a23==1))&&(a5==6))&&(a20==1))&&(a9==10))&&(a16==11)))&&(a17==2)))){ + a5 = 4; + a16 = 7; + a0 = 0; + a9 = 7; + a27 = 0; + a2 = 1; + a1 = 12; + a21 = 10; + a19 = 1; + return -1; + } else if((((((!(a20==1)&&((!(a2==1)||((a11==1)&&(a6==1)))&&(a11==1)))&&(a16==8))&&(a1==14))&&(a9==9))&&(((a21==11)&&((!(a18==1)&&(((((a5==5)||(a5==6))&&(input==3))&&!(a14==1))&&(a2==1)))&&(a17==2)))&&(a19==4)))){ + a9 = 7; + a19 = 1; + a11 = 1; + a21 = 10; + a16 = 7; + a5 = 4; + a20 = 1; + a8 = 0; + a1 = 12; + return -1; + } else if((((a21==12)&&((!(a18==1)&&((((a11==1)&&((((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(input==1)))&&!(a24==1))&&(a1==14)))&&(a6==1)))&&((a0==1)||(((((a19==3)&&((a2==1)&&(a20==1)))&&(a17==2))&&(a16==7))||!(a12==1))))){ + a5 = 6; + a21 = 10; + a16 = 9; + a11 = 1; + a14 = 0; + a9 = 9; + a19 = 5; + a27 = 0; + return 25; + } else if(((((!(a2==1)||((((a3==1)&&(a13==1))&&(a20==1))&&(a12==1)))&&(a13==1))&&(a3==1))&&((((a13==1)&&((a9==9)&&((a16==10)&&(((a19==5)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5)))&&(a1==13)))))&&(a21==12))&&(a17==2)))){ + a1 = 12; + a23 = 1; + a21 = 11; + a16 = 8; + a19 = 4; + a9 = 11; + a18 = 0; + a7 = 0; + a5 = 4; + return 25; + } else if(((((a24==1)||((((a1==13)&&((((a5==5)&&((a19==3)&&(!(a18==1)&&(a2==1))))&&(a20==1))&&(a17==2)))||(a8==1))||(a18==1)))&&!(a0==1))&&(!(a7==1)&&(((a16==11)&&((input==6)&&(a9==9)))&&(a21==10))))){ + a8 = 0; + a19 = 1; + a9 = 7; + a5 = 4; + a1 = 12; + a13 = 1; + a16 = 7; + a3 = 1; + return -1; + } else if((((((a5==5)&&((a23==1)&&((a13==1)&&((input==4)&&(a21==12)))))&&!(a14==1))&&!(a20==1))&&((a19==4)&&(!(a24==1)&&((a26==1)||(((((a9==7)&&((a28==1)&&(a1==12)))&&!(a7==1))&&(a16==9))&&(a17==2))))))){ + a16 = 8; + a5 = 6; + a1 = 13; + a21 = 10; + a9 = 9; + a4 = 1; + a10 = 0; + a14 = 1; + return -1; + } else if(((((a16==10)&&(((((a17==2)&&(a28==1))&&(a9==11))||!(a11==1))&&(a19==2)))&&!(a0==1))&&((!(a20==1)&&(((a21==12)&&(!(a8==1)&&(((a6==1)&&(((a5==4)||(a5==5))&&(input==5)))&&!(a14==1))))&&!(a14==1)))&&(a1==12)))){ + a14 = 1; + a28 = 0; + a1 = 13; + a19 = 1; + a21 = 10; + a20 = 1; + a23 = 0; + a9 = 8; + a5 = 6; + a16 = 7; + return 26; + } else if((((a16==7)&&(((a1==14)&&(!(a27==1)&&(!(a26==1)&&((a19==4)&&((a20==1)&&(((input==5)&&(((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))))&&(a21==10)))))))&&!(a26==1)))&&((a17==2)&&(!(a13==1)||(!(a23==1)||((a2==1)&&(a28==1))))))){ + a19 = 1; + a21 = 12; + a9 = 9; + a5 = 4; + a1 = 12; + a18 = 0; + a6 = 1; + a2 = 1; + return 26; + } else if(((((((!(a6==1)&&((((!(a13==1)&&((a11==1)&&(a16==8)))&&(a17==2))&&(a0==1))&&!(a11==1)))&&(a26==1))&&(a0==1))&&(a19==2))&&(a21==11))&&(((a1==13)&&(!(a20==1)&&((input==5)&&((a5==5)||(a5==6)))))&&(a9==7)))){ + a10 = 0; + a23 = 0; + a5 = 5; + a16 = 7; + a21 = 10; + a20 = 1; + a1 = 12; + a28 = 0; + a19 = 1; + a9 = 11; + return -1; + } else if((((a19==1)&&((a20==1)&&(((((a5==4)||(a5==5))&&(input==5))&&!(a4==1))&&(a1==14))))&&(((a21==11)&&((a17==2)&&(!(a2==1)||(!(a6==1)||(((((a23==1)&&(a16==7))&&!(a18==1))&&!(a7==1))&&(a13==1))))))&&(a9==8)))){ + a0 = 0; + a5 = 5; + a14 = 0; + a18 = 0; + a16 = 8; + a9 = 9; + a21 = 10; + return 23; + } else if((((a21==10)&&((a19==2)&&(!(a6==1)||(!(a2==1)||((a6==1)&&(a28==1))))))&&(!(a0==1)&&(!(a20==1)&&(((a12==1)&&((a11==1)&&((a17==2)&&((input==1)&&((((a9==11)&&((a1==12)&&(a5==5)))||(((a5==6)&&(a1==12))&&(a9==11)))||(((a1==13)&&(a5==4))&&(a9==7)))))))&&(a16==8)))))){ + a9 = 7; + a6 = 1; + a16 = 7; + a19 = 1; + a1 = 12; + a5 = 4; + a14 = 0; + a20 = 1; + a4 = 0; + return -1; + } else if((((a26==1)||(((a19==1)&&((a21==11)&&(((a11==1)&&(a9==10))&&(a1==13))))||!(a28==1)))&&((a13==1)&&((((a28==1)&&(((((a5==4)&&(input==3))&&(a16==7))&&(a17==2))&&!(a20==1)))&&!(a24==1))&&!(a27==1))))){ + a23 = 1; + a21 = 10; + a9 = 7; + a20 = 1; + a1 = 12; + a26 = 0; + return -1; + } else if(((!(a20==1)&&((((!(a8==1)&&(((((a19==5)&&(input==6))&&!(a26==1))&&!(a24==1))&&(a9==11)))&&(a5==4))&&(a11==1))&&(a21==11)))&&(((a1==14)&&((!(a3==1)||((a0==1)||(a2==1)))&&(a17==2)))&&(a16==7)))){ + a20 = 1; + a16 = 8; + a9 = 10; + a26 = 0; + a19 = 1; + a12 = 1; + a24 = 0; + return 25; + } else if(((((a5==5)&&(((a1==12)&&(((((a19==2)&&(input==4))&&!(a7==1))&&(a9==10))&&(a13==1)))&&!(a14==1)))&&(a17==2))&&((a26==1)||((((a21==12)&&((!(a11==1)||(a6==1))&&(a16==7)))&&(a3==1))&&!(a20==1))))){ + a20 = 1; + a21 = 10; + a13 = 1; + a0 = 0; + a28 = 1; + a5 = 4; + a19 = 1; + a9 = 7; + return -1; + } else if(((((a5==5)&&(((a1==13)&&((a6==1)&&(((a16==9)&&(input==1))&&!(a20==1))))&&!(a4==1)))&&(a17==2))&&(((!(a27==1)&&(!(a23==1)||(!(a14==1)&&(!(a2==1)||((a9==8)&&(a2==1))))))&&(a21==12))&&(a19==5)))){ + a21 = 10; + a6 = 0; + a9 = 9; + a12 = 0; + a25 = 1; + a1 = 14; + a5 = 4; + return -1; + } else if((((a17==2)&&(((a24==1)&&(!(a28==1)&&((a8==1)&&(((a5==5)||(a5==6))&&(input==6)))))&&(a1==12)))&&((a21==10)&&((((a16==9)&&(((a20==1)&&((a14==1)&&((a12==1)&&!(a3==1))))&&(a7==1)))&&(a9==7))&&(a19==5))))){ + a22 = 1; + a5 = 5; + a19 = 2; + a9 = 10; + a16 = 7; + a24 = 1; + a23 = 0; + return -1; + } else if((((a1==12)&&((a21==10)&&(((a12==1)&&(!(a14==1)&&((a20==1)&&((a5==6)&&((a2==1)&&(((((a9==10)&&(input==6))&&!(a0==1))&&(a19==5))&&(a16==7)))))))&&!(a18==1))))&&((a23==1)&&((a13==1)&&(a17==2))))){ + a24 = 0; + a5 = 4; + a21 = 12; + a1 = 13; + a12 = 1; + a19 = 2; + a9 = 8; + a7 = 0; + return 25; + } else if(((!(a7==1)&&(((!(a7==1)&&((a5==5)&&(((input==5)&&(a19==5))&&(a28==1))))&&(a9==8))&&(a17==2)))&&((((a21==12)&&((a0==1)||((a1==12)&&((a26==1)||((a13==1)&&(a20==1))))))&&(a16==10))&&(a23==1)))){ + a13 = 1; + a4 = 0; + a16 = 7; + a19 = 4; + a21 = 10; + a1 = 14; + a5 = 6; + a9 = 10; + a6 = 1; + return 25; + } else if((((a9==11)&&(!(a27==1)&&(((a5==4)&&(((a11==1)&&(a21==10))||!(a23==1)))&&!(a24==1))))&&(!(a20==1)&&(((!(a18==1)&&((((a17==2)&&((input==3)&&(a16==7)))&&(a1==14))&&(a19==2)))&&(a28==1))&&!(a8==1))))){ + a6 = 1; + a26 = 0; + a20 = 1; + a9 = 7; + a14 = 0; + a1 = 12; + a19 = 1; + return -1; + } else if(((((a17==2)&&((((a9==7)&&(((((a5==4)||(a5==5))&&(input==4))&&!(a7==1))&&(a16==8)))&&(a1==14))&&!(a7==1)))&&!(a24==1))&&((((a19==3)&&((((a11==1)&&!(a20==1))||(a24==1))||(a18==1)))||(a24==1))&&(a21==10)))){ + a20 = 1; + a3 = 1; + a19 = 1; + a16 = 7; + a1 = 12; + a5 = 4; + a27 = 0; + return -1; + } else if(((!(a12==1)||(!(a7==1)&&(!(a20==1)&&((((!(a11==1)||((a13==1)&&(a9==11)))&&(a16==8))&&(a19==2))&&(a17==2)))))&&((a3==1)&&(!(a4==1)&&((a1==14)&&(!(a27==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a21==12)))))))){ + a27 = 1; + a13 = 0; + a15 = 0; + a9 = 8; + a1 = 13; + a16 = 7; + a20 = 1; + a5 = 4; + a21 = 10; + return 21; + } else if((((a20==1)&&(((!(a13==1)||((a1==14)&&((a6==1)&&(a28==1))))&&(a17==2))&&(a21==11)))&&((a9==8)&&((a19==5)&&(((a28==1)&&((a5==4)&&(((a28==1)&&((a16==9)&&(input==4)))&&(a3==1))))&&!(a24==1)))))){ + a6 = 1; + a19 = 1; + a0 = 0; + a23 = 1; + a16 = 7; + a21 = 10; + a9 = 7; + a1 = 12; + return -1; + } else if((((a8==1)||(((a2==1)&&(a21==11))&&(a16==11)))&&(((((!(a8==1)&&(!(a7==1)&&((a23==1)&&((a28==1)&&(((((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(input==1))&&!(a14==1))))))&&(a19==3))&&(a1==14))&&(a20==1))&&(a17==2)))){ + a5 = 6; + a26 = 0; + a0 = 0; + a13 = 1; + a9 = 8; + a21 = 12; + a1 = 12; + a19 = 2; + return 21; + } else if(((!(a20==1)&&((a21==12)&&((a1==12)&&(((a17==2)&&(!(a14==1)&&((a16==7)&&(((a9==10)&&(input==1))&&(a23==1)))))&&(a3==1)))))&&((a5==5)&&((a19==2)&&((a6==1)&&(((a11==1)||!(a13==1))||!(a2==1))))))){ + a5 = 4; + a20 = 1; + a21 = 10; + a4 = 0; + a9 = 7; + a2 = 1; + a19 = 1; + return -1; + } else if(((((!(a13==1)&&((a21==12)&&(((a16==10)&&((a28==1)&&(a9==9)))&&(a7==1))))&&(a0==1))&&(a19==2))&&(((((a4==1)&&(!(a23==1)&&((((a5==5)||(a5==6))&&(input==4))&&!(a2==1))))&&(a1==12))&&(a17==2))&&(a20==1)))){ + a19 = 1; + a16 = 7; + a1 = 13; + a5 = 4; + a13 = 0; + a9 = 10; + a22 = 1; + a21 = 10; + return 21; + } else if((((!(a12==1)&&(((a1==13)&&((((a13==1)&&(a14==1))&&!(a3==1))&&(a21==11)))&&(a9==8)))&&(a5==6))&&(((a20==1)&&((((a8==1)&&((a19==5)&&((input==1)&&(a16==11))))&&(a0==1))&&(a26==1)))&&(a17==2)))){ + a18 = 1; + a20 = 0; + a9 = 11; + a19 = 1; + a5 = 4; + a24 = 1; + a16 = 7; + a10 = 1; + return -1; + } else if((((((a21==11)&&(((((input==6)&&((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10))))&&(a17==2))&&(a16==10))&&!(a14==1)))&&(a6==1))&&(a3==1))&&(((a13==1)&&((((a1==12)&&((a20==1)&&(a12==1)))&&(a19==2))&&(a11==1)))||(a8==1)))){ + a21 = 10; + a5 = 4; + a16 = 7; + a9 = 7; + a0 = 0; + a3 = 1; + a19 = 1; + a27 = 0; + return -1; + } else if(((!(a0==1)&&((a17==2)&&((((a16==11)&&((a5==4)&&(((a19==4)&&(input==3))&&!(a14==1))))&&(a12==1))&&(a9==8))))&&(((((((a13==1)||!(a6==1))||!(a23==1))&&(a21==12))&&!(a4==1))&&(a20==1))&&(a1==14)))){ + a6 = 1; + a9 = 7; + a12 = 1; + a21 = 10; + a19 = 1; + a20 = 0; + a0 = 0; + a16 = 7; + a1 = 12; + return 23; + } else if(((!(a12==1)&&((a16==8)&&((!(a6==1)&&((((((a19==1)&&(((a5==6)&&(a1==14))&&(a9==11)))||((a19==2)&&(((a1==12)&&(a5==4))&&(a9==7))))||((a19==2)&&((a9==7)&&((a1==12)&&(a5==5)))))&&(input==5))&&(a21==12)))&&(a0==1))))&&(!(a3==1)&&(((!(a11==1)&&((a17==2)&&(a6==1)))&&(a20==1))&&(a7==1))))){ + a9 = 9; + a16 = 9; + a7 = 1; + a19 = 5; + a5 = 6; + a1 = 12; + a14 = 1; + return -1; + } else if((((a28==1)&&((!(a18==1)&&(((a21==10)&&((a3==1)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==6))))&&(a19==5)))&&(a17==2)))&&(((a16==7)&&((((a28==1)&&((a24==1)||(a23==1)))&&!(a20==1))&&(a1==14)))||!(a3==1)))){ + a19 = 2; + a1 = 13; + a27 = 0; + a3 = 1; + a20 = 1; + a9 = 9; + a13 = 1; + a5 = 5; + return 25; + } else if(((((a17==2)&&((((a1==14)&&((((input==6)&&(a21==11))&&!(a0==1))&&(a16==8)))&&(a20==1))&&(a9==11)))&&(a19==5))&&(((a14==1)||((a18==1)||((((a2==1)||!(a11==1))&&(a5==6))||(a26==1))))||(a8==1)))){ + a21 = 10; + a9 = 7; + a13 = 1; + a19 = 1; + a1 = 12; + a16 = 7; + a2 = 1; + a4 = 0; + a5 = 4; + return -1; + } else if((((a21==10)&&((((a9==7)&&(((a23==1)&&((input==6)&&(a19==3)))&&(a20==1)))&&!(a14==1))&&(a16==10)))&&(((a17==2)&&((a2==1)&&(((a1==13)&&((a5==4)&&((a13==1)&&(a28==1))))||!(a2==1))))&&!(a8==1)))){ + a7 = 0; + a3 = 1; + a19 = 1; + a13 = 1; + a1 = 12; + a16 = 7; + return -1; + } else if(((((a1==13)&&((!(a28==1)||((!(a11==1)||(a2==1))&&(a16==11)))&&(a21==11)))&&!(a14==1))&&((((a28==1)&&((a19==3)&&(((a6==1)&&((input==1)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5)))))&&(a17==2))))&&!(a8==1))&&(a20==1)))){ + a19 = 1; + a28 = 1; + a16 = 10; + a5 = 5; + a11 = 1; + a1 = 14; + a14 = 0; + a9 = 11; + return 25; + } else if((((((a12==1)&&(!(a24==1)&&((a9==8)&&((!(a14==1)&&((a21==12)&&(((a5==4)||(a5==5))&&(input==4))))&&(a16==8)))))&&(a20==1))&&!(a27==1))&&(!(a4==1)&&(!(a28==1)||(((a1==13)&&((a28==1)&&(a17==2)))&&(a19==4)))))){ + a19 = 1; + a1 = 12; + a16 = 7; + a5 = 4; + a23 = 1; + a2 = 1; + a14 = 0; + a9 = 7; + a21 = 10; + return -1; + } else if((((((a19==4)&&(((((a5==6)&&((a1==13)&&((a14==1)||(a12==1))))&&(a21==11))||(a27==1))&&(a11==1)))&&(a17==2))||!(a13==1))&&(((((a11==1)&&((a9==10)&&(input==3)))&&(a16==11))&&(a6==1))&&(a20==1)))){ + a16 = 7; + a28 = 1; + a1 = 12; + a19 = 1; + a13 = 1; + a21 = 10; + a24 = 0; + a5 = 4; + a9 = 7; + return -1; + } else if((((a17==2)&&((((((a28==1)&&(((input==5)&&((a5==5)||(a5==6)))&&(a6==1)))&&(a20==1))&&(a3==1))&&(a19==3))&&!(a0==1)))&&((a21==12)&&(((a7==1)||((a1==13)&&((a9==11)&&((a12==1)&&(a16==9)))))&&!(a7==1))))){ + a2 = 1; + a5 = 4; + a21 = 10; + a28 = 1; + a1 = 12; + a23 = 1; + a19 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if((((!(a0==1)&&(((!(a3==1)||(a11==1))&&(a16==7))&&(a19==4)))&&(a11==1))&&((a9==9)&&((a21==10)&&((!(a20==1)&&((a1==13)&&((a17==2)&&(!(a4==1)&&(!(a24==1)&&(((a5==5)||(a5==6))&&(input==6)))))))&&!(a14==1)))))){ + a20 = 1; + a5 = 4; + a19 = 1; + a6 = 1; + a1 = 12; + a9 = 7; + return -1; + } else if(((((a19==4)&&((!(a4==1)&&((a2==1)&&(((a12==1)&&(a21==10))&&(a20==1))))||(a8==1)))&&(a9==9))&&(!(a7==1)&&((((a5==5)&&(((a13==1)&&((a16==7)&&(input==6)))&&!(a18==1)))&&(a1==12))&&(a17==2))))){ + a9 = 11; + a13 = 1; + a8 = 0; + a19 = 3; + a1 = 14; + a21 = 11; + a27 = 0; + return 23; + } else if(((((a9==10)&&(!(a4==1)&&((a1==14)&&(!(a3==1)||(a11==1)))))&&!(a24==1))&&((a16==8)&&(((((a5==4)&&(((((a20==1)&&(input==5))&&(a19==4))&&!(a4==1))&&(a17==2)))&&(a21==11))&&!(a8==1))&&(a6==1))))){ + a21 = 10; + a1 = 12; + a16 = 7; + a14 = 0; + a9 = 7; + a19 = 1; + a6 = 1; + return -1; + } else if((((((a23==1)&&((!(a0==1)&&((((a16==9)&&((a12==1)&&(a19==2)))&&(a1==12))||!(a23==1)))||!(a28==1)))&&(a20==1))&&(a21==10))&&(((((((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8))))&&(input==4))&&!(a7==1))&&(a11==1))&&(a17==2)))){ + a5 = 4; + a9 = 7; + a18 = 0; + a16 = 7; + a8 = 0; + a14 = 0; + a19 = 1; + return -1; + } else if((((((a21==10)&&(((a12==1)&&(a2==1))||(a14==1)))&&(a17==2))&&(a20==1))&&((((!(a27==1)&&(!(a24==1)&&((((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==3))&&(a28==1))&&(a12==1))))&&(a1==12))&&(a16==8))&&(a19==1)))){ + a1 = 14; + a11 = 1; + a21 = 12; + a27 = 0; + a5 = 4; + a16 = 9; + a9 = 10; + return 25; + } else if((((a9==11)&&(!(a6==1)||(((a19==2)&&((!(a2==1)||((!(a13==1)||((a28==1)&&(a23==1)))&&(a16==9)))&&(a23==1)))&&(a17==2))))&&((a1==12)&&((((a20==1)&&((input==6)&&((a5==5)||(a5==6))))&&!(a18==1))&&(a21==11))))){ + a5 = 4; + a16 = 7; + a24 = 0; + a19 = 1; + a21 = 10; + a3 = 1; + a12 = 1; + a9 = 7; + return -1; + } else if((((a3==1)&&(a27==1))&&(!(a23==1)&&((((a19==3)&&((a7==1)&&(!(a23==1)&&(!(a23==1)&&((a8==1)&&(!(a20==1)&&((a21==12)&&((input==3)&&(((((a5==5)&&(a1==13))&&(a9==11))||(((a5==6)&&(a1==13))&&(a9==11)))||(((a1==14)&&(a5==4))&&(a9==7)))))))))))&&(a16==7))&&(a17==2))))){ + a1 = 14; + a9 = 9; + a29 = 0; + a21 = 11; + a20 = 1; + a4 = 1; + a22 = 1; + a5 = 6; + return 25; + } else if((((a3==1)&&((a3==1)&&(((!(a13==1)||((a21==11)&&(a3==1)))&&(a16==9))&&(a1==14))))&&(!(a0==1)&&(!(a20==1)&&(((((a17==2)&&(((input==3)&&((a5==4)||(a5==5)))&&(a19==4)))&&(a3==1))&&!(a27==1))&&(a9==7)))))){ + a19 = 1; + a21 = 10; + a16 = 7; + a29 = 1; + a1 = 12; + a8 = 1; + a20 = 1; + a3 = 0; + a5 = 6; + a9 = 8; + return 25; + } else if(((((((a16==11)&&(((((((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7))))&&(input==4))&&!(a27==1))&&(a20==1))&&!(a0==1)))&&(a11==1))&&(a1==13))&&(a17==2))&&((a19==2)&&((!(a6==1)||(((a13==1)||(a24==1))&&(a2==1)))&&(a21==12))))){ + a16 = 7; + a8 = 0; + a21 = 10; + a5 = 4; + a4 = 0; + a1 = 12; + a19 = 1; + a0 = 0; + a9 = 7; + return -1; + } else if((((((!(a14==1)&&(!(a23==1)||(((a28==1)&&((a2==1)&&(a1==12)))&&(a19==3))))||(a4==1))&&(a21==12))&&(a5==6))&&(((a16==8)&&(!(a20==1)&&((a23==1)&&(((a17==2)&&(input==1))&&(a9==8)))))&&!(a24==1)))){ + a22 = 0; + a19 = 5; + a21 = 10; + a1 = 14; + a5 = 4; + a6 = 0; + a7 = 1; + a20 = 1; + a16 = 9; + return 25; + } else if((((((a21==12)&&((a7==1)&&(((a20==1)&&(((a28==1)&&(a19==1))&&(a8==1)))&&(a16==7))))&&!(a2==1))&&!(a3==1))&&(!(a11==1)&&((a17==2)&&((((((a5==4)||(a5==5))&&(input==6))&&(a9==10))&&!(a3==1))&&(a1==12)))))){ + a19 = 3; + a9 = 8; + a5 = 6; + a1 = 14; + a22 = 1; + a29 = 0; + a23 = 0; + return -1; + } else if(((!(a0==1)&&((a17==2)&&(((a21==10)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a19==1)))&&(a13==1))))&&((((a1==14)&&(((a20==1)&&((a28==1)&&(((a2==1)&&(a12==1))&&(a16==10))))&&!(a8==1)))&&(a3==1))&&(a9==8)))){ + a1 = 12; + a16 = 7; + a4 = 0; + a9 = 7; + a5 = 4; + a8 = 0; + return -1; + } else if((((((!(a0==1)&&((a3==1)&&((a2==1)&&((input==1)&&(((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))))))&&(a1==13))&&(a16==10))&&(a17==2))&&((a19==4)&&((a7==1)||(((((a21==11)&&(a13==1))&&(a23==1))&&(a20==1))&&!(a8==1)))))){ + a19 = 2; + a5 = 5; + a13 = 1; + a16 = 7; + a6 = 1; + a21 = 10; + a9 = 9; + a27 = 0; + return -1; + } else if((((a17==2)&&(((((a2==1)&&(((a5==4)||(a5==5))&&(input==4)))&&(a19==3))&&(a6==1))&&!(a14==1)))&&((a20==1)&&((a9==9)&&((a21==12)&&((((a28==1)&&(((a23==1)&&(a16==8))||(a0==1)))&&(a1==13))&&(a13==1))))))){ + a9 = 7; + a16 = 7; + a19 = 1; + a26 = 0; + a5 = 4; + a21 = 10; + a2 = 1; + a1 = 12; + a7 = 0; + return -1; + } else if(((!(a4==1)&&(((a12==1)&&(((a19==3)&&((a1==14)&&(!(a26==1)&&(((input==3)&&(a21==12))&&(a9==7)))))&&(a20==1)))&&!(a0==1)))&&((a5==5)&&((!(a24==1)&&(!(a14==1)&&((a11==1)&&(a16==8))))&&(a17==2))))){ + a1 = 12; + a21 = 10; + a16 = 7; + a5 = 4; + a19 = 1; + a18 = 0; + a13 = 1; + a8 = 0; + return -1; + } else if(((((((a3==1)&&(!(a23==1)||((a12==1)||(a7==1))))&&(a1==12))&&(a19==5))&&(a9==11))&&(((a16==7)&&(((a23==1)&&(!(a4==1)&&(((a17==2)&&((a5==6)&&(input==4)))&&!(a20==1))))&&!(a4==1)))&&(a21==10)))){ + a19 = 1; + a24 = 0; + a0 = 0; + a12 = 1; + a20 = 1; + a5 = 4; + return -1; + } else if((((!(a24==1)&&((a20==1)&&(!(a18==1)&&((a1==14)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a23==1))&&(a9==10))&&(a16==10))))))&&!(a7==1))&&(((a18==1)||((a19==2)&&(((a21==11)&&(a6==1))&&(a17==2))))&&!(a7==1)))){ + a3 = 1; + a13 = 1; + a6 = 1; + a21 = 10; + a5 = 5; + a9 = 9; + a16 = 7; + a1 = 13; + return 25; + } else if(((!(a28==1)&&(((a20==1)&&(((a21==12)&&((a17==2)&&(a2==1)))&&(a24==1)))&&(a9==10)))&&(((a26==1)&&((a14==1)&&((a16==7)&&((a19==1)&&((a26==1)&&((a1==12)&&(((a5==4)||(a5==5))&&(input==5))))))))&&(a26==1)))){ + a24 = 1; + a21 = 10; + a5 = 4; + a28 = 0; + a1 = 14; + a12 = 0; + a9 = 11; + return -1; + } else if((((a2==1)&&((((a11==1)&&((a11==1)&&((a16==7)&&((((a21==10)&&(((a5==5)||(a5==6))&&(input==6)))&&!(a4==1))&&(a23==1)))))&&(a19==2))&&!(a26==1)))&&((a1==13)&&((((a17==2)&&(a6==1))&&(a9==9))&&!(a20==1))))){ + a20 = 1; + a1 = 12; + a19 = 1; + a9 = 7; + a4 = 0; + a5 = 4; + a2 = 1; + a14 = 0; + return -1; + } else if(((!(a8==1)&&(!(a20==1)&&(!(a14==1)&&((((input==5)&&((((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4))))&&!(a14==1))&&(a19==1)))))&&(((a16==7)&&((((!(a28==1)||((a17==2)&&(a3==1)))||!(a28==1))&&!(a8==1))&&(a1==14)))&&(a21==11)))){ + a7 = 0; + a0 = 0; + a20 = 1; + a9 = 7; + a5 = 4; + a21 = 10; + a1 = 12; + a13 = 1; + return -1; + } else if(((!(a2==1)||((a27==1)||((a19==3)&&(((a21==11)&&((a14==1)||((a17==2)&&((a11==1)||!(a2==1)))))||(a27==1)))))&&((a6==1)&&(((((((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a5==6)&&(a9==10))))&&(input==1))&&(a16==8))&&!(a20==1))&&(a1==13))))){ + a24 = 0; + a19 = 1; + a20 = 1; + a6 = 1; + a1 = 14; + a5 = 6; + a21 = 12; + a28 = 1; + a9 = 8; + return 21; + } else if((((a3==1)&&((a19==3)&&(!(a6==1)||(a12==1))))&&((a16==7)&&(((!(a14==1)&&((a21==11)&&(!(a20==1)&&(!(a24==1)&&((((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))&&(input==3))&&(a1==14))&&(a17==2))))))&&!(a27==1))&&!(a4==1))))){ + a24 = 0; + a20 = 1; + a19 = 1; + a21 = 10; + a5 = 4; + a12 = 1; + a1 = 12; + a9 = 7; + a28 = 1; + return -1; + } else if((((!(a20==1)&&(((a12==1)&&(a5==6))&&(a9==11)))||(a0==1))&&((a19==4)&&((a21==11)&&((a17==2)&&(!(a27==1)&&((((a1==14)&&(!(a27==1)&&(((input==4)&&(a16==10))&&!(a18==1))))&&!(a0==1))&&(a28==1)))))))){ + a10 = 0; + a1 = 12; + a20 = 1; + a9 = 8; + a13 = 0; + a16 = 9; + a26 = 1; + a21 = 12; + a5 = 4; + return 21; + } else if((((a23==1)&&(((a21==11)&&((((a5==5)||(a5==6))&&(input==6))&&(a16==9)))&&(a9==8)))&&(((a7==1)||(!(a20==1)&&((((((a4==1)||((a19==3)&&(a13==1)))&&!(a27==1))&&(a17==2))||!(a13==1))&&(a1==12))))||(a26==1)))){ + a16 = 7; + a5 = 4; + a19 = 2; + a4 = 1; + a26 = 1; + a20 = 1; + a9 = 11; + a21 = 10; + a25 = 0; + return -1; + } else if((((a19==2)&&(((((a23==1)||(a18==1))||!(a23==1))&&(a20==1))&&(a1==12)))&&((a17==2)&&((a21==10)&&(!(a8==1)&&(((a11==1)&&((!(a7==1)&&(((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a5==4)&&(a9==8)))&&(input==4)))&&(a16==11)))&&!(a0==1))))))){ + a9 = 7; + a16 = 7; + a11 = 1; + a2 = 1; + a19 = 1; + a5 = 4; + a26 = 0; + return -1; + } else if((((a1==12)&&((((a16==7)&&(((a12==1)||(a4==1))&&(a19==5)))&&(a13==1))&&(a13==1)))&&((((a21==10)&&(((((a6==1)&&((input==4)&&(a5==6)))&&(a3==1))&&!(a7==1))&&(a9==10)))&&(a17==2))&&(a20==1)))){ + a1 = 13; + a13 = 1; + a19 = 2; + a0 = 0; + a21 = 12; + a5 = 5; + a12 = 1; + a9 = 7; + return 21; + } else if(((((((a7==1)&&((a20==1)&&(((a28==1)&&(a1==13))&&(a17==2))))&&(a21==10))&&!(a28==1))&&(a26==1))&&(((!(a23==1)&&((a7==1)&&((a19==4)&&(((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11)))&&(input==6)))))&&(a16==7))&&!(a11==1)))){ + a5 = 5; + a9 = 11; + a27 = 1; + a15 = 0; + a1 = 14; + a19 = 1; + a7 = 1; + return -1; + } else if(((((a1==13)&&(!(a24==1)&&(((a9==11)&&(((a3==1)&&(((a5==4)||(a5==5))&&(input==3)))&&!(a27==1)))&&(a17==2))))&&(a21==10))&&(((((a0==1)||((a19==2)&&((a13==1)&&!(a20==1))))||!(a23==1))&&!(a14==1))&&(a16==7)))){ + a9 = 7; + a19 = 1; + a1 = 12; + a23 = 1; + a5 = 4; + a3 = 1; + a20 = 1; + a6 = 1; + return -1; + } else if((((a1==13)&&(!(a20==1)&&((a26==1)||(((a6==1)&&(a21==12))||(a4==1)))))&&(!(a24==1)&&((a16==10)&&((a19==2)&&((a5==5)&&((a17==2)&&(!(a26==1)&&((a6==1)&&(!(a18==1)&&((input==3)&&(a9==7)))))))))))){ + a19 = 5; + a24 = 1; + a5 = 4; + a20 = 1; + a21 = 10; + a15 = 1; + a16 = 7; + return 22; + } else if((((((!(a14==1)&&((a21==12)&&((a19==5)&&(((a11==1)&&(a17==2))&&(a28==1)))))||!(a23==1))||(a24==1))||!(a3==1))&&((a16==10)&&(!(a20==1)&&((((((a5==5)&&(a1==13))&&(a9==7))||((((a1==12)&&(a5==6))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==13)))))&&(input==1))&&!(a7==1)))))){ + a20 = 1; + a12 = 0; + a16 = 7; + a5 = 6; + a28 = 0; + a9 = 7; + a21 = 10; + a8 = 1; + a19 = 1; + a1 = 12; + return 25; + } else if((((!(a7==1)&&((a21==10)&&((a5==6)&&(((((a20==1)&&((a16==9)&&(input==5)))&&!(a0==1))&&(a1==12))&&(a23==1)))))&&(a3==1))&&(((((a17==2)&&((a24==1)||(a6==1)))&&(a19==5))&&(a9==9))||!(a13==1)))){ + a1 = 14; + a19 = 2; + a16 = 11; + a5 = 5; + a24 = 0; + a8 = 0; + a27 = 0; + return 25; + } else if((((((a21==10)&&((((a3==1)&&(!(a2==1)||(a2==1)))&&(a19==3))&&(a9==11)))&&!(a26==1))&&(a20==1))&&(((a3==1)&&(((!(a7==1)&&(((a16==11)&&(input==4))&&(a5==5)))&&(a1==14))&&(a2==1)))&&(a17==2)))){ + a16 = 7; + a23 = 1; + a0 = 0; + a9 = 7; + a1 = 12; + a19 = 1; + a5 = 4; + a11 = 1; + return -1; + } else if((((a16==7)&&((((a7==1)||((a1==14)&&(!(a18==1)&&(((a13==1)||!(a13==1))&&(a19==4)))))&&(a20==1))&&(a5==6)))&&((a9==9)&&(((a3==1)&&(!(a7==1)&&(((input==6)&&(a21==11))&&(a17==2))))&&!(a27==1))))){ + a16 = 8; + a9 = 10; + a3 = 1; + a14 = 0; + a1 = 12; + a19 = 5; + a8 = 0; + return 23; + } else if((((!(a14==1)&&(((a20==1)&&(((((((a1==13)&&((input==3)&&(a21==11)))&&!(a18==1))&&(a19==4))&&(a17==2))&&(a16==10))&&(a5==5)))&&(a12==1)))&&!(a8==1))&&((a23==1)&&(((a13==1)&&(a9==10))||(a0==1))))){ + a3 = 1; + a18 = 0; + a19 = 1; + a16 = 7; + a21 = 10; + a4 = 0; + a9 = 7; + a5 = 4; + a1 = 12; + return -1; + } else if((((a16==9)&&(!(a4==1)&&((a12==1)&&((!(a18==1)&&((a13==1)&&((a1==14)&&(input==3))))&&!(a14==1)))))&&((((a21==10)&&((((a27==1)||((a9==10)&&(a23==1)))&&(a17==2))&&!(a20==1)))&&(a19==2))&&(a5==6)))){ + if((a2==1)){ + a11 = 0; + a16 = 7; + a1 = 12; + a20 = 1; + a10 = 1; + a18 = 1; + a9 = 11; + }else{ + a25 = 0; + a21 = 12; + a19 = 5; + a26 = 1; + a5 = 4; + a20 = 1; + a10 = 0; + a16 = 8; + } + return 22; + } else if((((((a28==1)&&(a19==2))||!(a12==1))&&(a16==8))&&((((!(a18==1)&&(((a12==1)&&(!(a26==1)&&(((a21==10)&&((input==4)&&(((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6))))))&&(a1==14))))&&!(a20==1)))&&(a23==1))&&(a17==2))&&!(a27==1)))){ + a16 = 10; + a20 = 1; + a2 = 1; + a9 = 7; + a8 = 0; + a1 = 13; + a5 = 5; + a19 = 1; + a6 = 1; + return -1; + } else if((((!(a27==1)&&(!(a23==1)||((a1==13)&&((a20==1)&&((((a16==11)&&(a11==1))&&(a17==2))||(a18==1))))))||(a8==1))&&(!(a8==1)&&((a13==1)&&((((input==3)&&(((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))))&&(a21==12))&&(a19==2)))))){ + a27 = 0; + a19 = 1; + a9 = 7; + a1 = 12; + a16 = 7; + a26 = 0; + a0 = 0; + a5 = 4; + a21 = 10; + return -1; + } else if(((!(a20==1)&&((!(a8==1)&&(!(a2==1)||(((a1==12)&&(a3==1))||!(a13==1))))&&(a9==7)))&&((a21==10)&&((a19==4)&&((a6==1)&&((a5==4)&&((a12==1)&&((a16==10)&&(((a17==2)&&(input==1))&&(a28==1)))))))))){ + a9 = 11; + a16 = 8; + a18 = 1; + a20 = 1; + a15 = 1; + a23 = 0; + a5 = 6; + return -1; + } else if(((((a28==1)&&(((a6==1)&&((a1==12)&&(!(a14==1)&&(((input==6)&&((a5==4)||(a5==5)))&&(a28==1)))))&&(a17==2)))&&(a16==8))&&(!(a20==1)&&((a21==11)&&(((a9==10)&&(!(a3==1)||((a3==1)&&!(a8==1))))&&(a19==5)))))){ + a20 = 1; + a23 = 1; + a16 = 7; + a9 = 7; + a24 = 0; + a26 = 0; + a19 = 3; + a5 = 6; + return 25; + } else if(((((a19==1)&&((a21==12)&&(!(a26==1)&&((((a20==1)&&(!(a12==1)||((a28==1)&&(a6==1))))&&(a11==1))||(a18==1)))))&&(a16==10))&&((((input==5)&&(((a9==7)&&((a5==4)&&(a1==14)))||(((a9==11)&&((a1==13)&&(a5==5)))||((a9==11)&&((a1==13)&&(a5==6))))))&&!(a18==1))&&(a17==2)))){ + a6 = 1; + a9 = 7; + a0 = 0; + a21 = 10; + a1 = 12; + a16 = 7; + a5 = 4; + a11 = 1; + return -1; + } else if((((((a3==1)&&((((input==4)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(a1==14))&&(a17==2)))&&(a20==1))&&(a6==1))&&(((a8==1)||((a3==1)&&((((a19==2)&&((a6==1)&&(a21==10)))&&(a16==10))||(a0==1))))||!(a11==1)))){ + a27 = 0; + a16 = 7; + a1 = 12; + a14 = 0; + a5 = 4; + a24 = 0; + a9 = 7; + a19 = 1; + return -1; + } else if((((((a2==1)&&(((!(a24==1)&&((a3==1)&&((a1==14)&&((input==5)&&(a9==10)))))&&(a20==1))&&(a19==2)))&&!(a18==1))&&!(a8==1))&&((((((a16==10)&&(a28==1))&&(a21==12))||!(a11==1))&&(a5==6))&&(a17==2)))){ + if((a3==1)){ + a16 = 8; + a28 = 1; + a24 = 0; + a19 = 3; + a1 = 12; + a5 = 4; + a7 = 0; + a21 = 10; + a20 = 0; + a9 = 11; + }else{ + a18 = 0; + a21 = 10; + a19 = 5; + a9 = 9; + a1 = 13; + a0 = 0; + a13 = 1; + } + return 21; + } else if((((a17==2)&&(!(a20==1)&&(((a19==4)&&((a16==8)&&((a21==10)&&(!(a27==1)&&((((input==5)&&((a5==5)||(a5==6)))&&(a11==1))&&(a6==1))))))&&!(a18==1))))&&(((a1==13)&&(!(a2==1)||((a2==1)||!(a11==1))))&&(a9==7)))){ + a24 = 0; + a3 = 1; + a19 = 2; + a9 = 9; + a6 = 1; + a20 = 1; + a5 = 4; + a16 = 7; + return 25; + } else if((((((a9==9)&&((a17==2)&&((a16==9)&&(a6==1))))&&(a21==10))&&(a12==1))&&((a23==1)&&((((a6==1)&&((a19==4)&&(((a1==13)&&((a20==1)&&((input==5)&&((a5==4)||(a5==5)))))&&(a6==1))))&&!(a18==1))&&!(a26==1))))){ + a1 = 12; + a5 = 4; + a9 = 7; + a6 = 1; + a13 = 1; + a16 = 7; + a19 = 1; + a18 = 0; + return -1; + } else if(((((a17==2)&&((a16==7)&&((((a12==1)||!(a23==1))&&(a9==7))&&!(a0==1))))&&(a21==10))&&(((a11==1)&&(((((a1==12)&&((a19==4)&&((input==4)&&((a5==5)||(a5==6)))))&&(a3==1))&&(a13==1))&&(a13==1)))&&!(a20==1)))){ + a8 = 0; + a5 = 4; + a20 = 1; + a2 = 1; + a19 = 1; + a12 = 1; + return -1; + } else if((((a23==1)&&(((a20==1)&&((!(a0==1)&&(((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4)))&&(input==3)))&&(a2==1)))&&(a21==12)))&&((!(a28==1)||((a17==2)&&((a1==12)&&((((a6==1)&&!(a26==1))||(a7==1))&&(a19==5)))))&&(a16==10)))){ + a5 = 4; + a3 = 1; + a6 = 1; + a21 = 10; + a19 = 1; + a14 = 0; + a9 = 7; + a16 = 7; + return -1; + } else if((((a16==8)&&(!(a14==1)&&((((a21==10)&&(((!(a4==1)&&(a28==1))&&(a5==4))&&(a11==1)))&&(a12==1))||(a26==1))))&&(!(a8==1)&&((a17==2)&&((a1==14)&&((a20==1)&&((a9==7)&&((input==4)&&(a19==2))))))))){ + a16 = 7; + a1 = 12; + a19 = 1; + a28 = 1; + a8 = 0; + return -1; + } else if((((((((a21==10)&&((a17==2)&&((!(a27==1)&&(((a5==4)||(a5==5))&&(input==3)))&&!(a8==1))))&&(a1==13))&&!(a27==1))&&!(a7==1))&&(a19==4))&&(((!(a27==1)&&((a16==9)&&(!(a28==1)||(a23==1))))&&!(a20==1))&&(a9==10)))){ + a14 = 1; + a16 = 7; + a25 = 0; + a19 = 3; + a1 = 12; + a5 = 4; + return -1; + } else if((((!(a20==1)&&(((a2==1)&&((input==6)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))&&(a2==1)))&&(a19==5))&&((a17==2)&&(!(a14==1)&&(((a21==11)&&((a1==14)&&((((a2==1)||!(a12==1))&&!(a24==1))||(a4==1))))&&(a16==8)))))){ + a21 = 10; + a9 = 10; + a19 = 1; + a2 = 0; + a15 = 0; + a1 = 12; + a23 = 0; + a5 = 6; + a16 = 7; + a20 = 1; + return -1; + } else if((((((a17==2)&&((a1==13)&&((a0==1)&&((a8==1)&&(a13==1)))))&&!(a6==1))&&(a8==1))&&((a21==11)&&((((!(a2==1)&&((a16==7)&&((((a5==4)||(a5==5))&&(input==3))&&(a7==1))))&&(a9==10))&&(a19==2))&&!(a20==1))))){ + a8 = 1; + a5 = 4; + a10 = 0; + a20 = 1; + a16 = 11; + a15 = 1; + a21 = 12; + return -1; + } else if(((((a21==10)&&((a16==8)&&((((((a5==5)||(a5==6))&&(input==5))&&(a23==1))&&!(a26==1))&&(a19==4))))&&(a17==2))&&((a9==8)&&((a20==1)&&((a28==1)&&(((a1==13)&&(!(a27==1)&&((a6==1)&&(a11==1))))||(a0==1))))))){ + a9 = 7; + a16 = 7; + a5 = 4; + a0 = 0; + a19 = 1; + a24 = 0; + a1 = 12; + a12 = 1; + return -1; + } else if((((((!(a12==1)||(!(a6==1)||(a3==1)))&&(a17==2))&&!(a20==1))&&(a1==14))&&(((a19==3)&&((!(a0==1)&&(((((a16==8)&&((input==3)&&((a5==4)||(a5==5))))&&(a11==1))&&(a23==1))&&(a21==10)))&&!(a7==1)))&&(a9==7)))){ + a0 = 0; + a16 = 9; + a5 = 6; + a19 = 1; + a23 = 1; + a20 = 1; + a11 = 1; + a9 = 10; + return 25; + } else if(((((a21==10)&&((a17==2)&&(((((a7==1)||(a28==1))&&(a19==2))||!(a3==1))&&(a23==1))))&&(a9==8))&&(((a16==8)&&(((a2==1)&&((((input==1)&&((a5==5)||(a5==6)))&&(a12==1))&&!(a27==1)))&&(a20==1)))&&(a1==14)))){ + a16 = 9; + a19 = 4; + a21 = 12; + a4 = 0; + a0 = 0; + a1 = 12; + a5 = 4; + a9 = 9; + a12 = 1; + return 26; + } else if((((a13==1)&&(!(a27==1)&&((a19==2)&&((a2==1)&&(a20==1)))))&&(((((a17==2)&&(((a21==10)&&((a9==10)&&(((a3==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4)))&&(a16==8))))&&(a28==1)))&&(a1==13))&&!(a7==1))&&!(a7==1)))){ + a24 = 0; + a19 = 1; + a1 = 12; + a9 = 7; + a11 = 1; + a5 = 4; + a16 = 7; + return -1; + } else if(((((((a16==10)&&((a23==1)&&(a5==6)))&&(a20==1))&&(a23==1))&&(a2==1))&&(!(a18==1)&&(!(a18==1)&&(((!(a24==1)&&(((((input==5)&&(a1==12))&&(a21==12))&&(a19==5))&&(a17==2)))&&(a12==1))&&(a9==10)))))){ + a19 = 4; + a21 = 10; + a13 = 1; + a5 = 5; + a16 = 7; + a1 = 14; + a9 = 11; + a0 = 0; + return 25; + } else if(((((!(a28==1)||(((a13==1)||!(a2==1))&&!(a8==1)))&&(a20==1))&&(a21==12))&&(((a19==1)&&(((a9==11)&&((!(a24==1)&&(!(a14==1)&&((a1==12)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))))&&(a23==1)))&&(a16==10)))&&(a17==2)))){ + a19 = 5; + a21 = 10; + a12 = 1; + a6 = 1; + a7 = 0; + a16 = 8; + a9 = 10; + a5 = 6; + a20 = 0; + return 21; + } else if(((((a6==1)&&((((a20==1)&&(((((input==5)&&(a19==4))&&(a23==1))&&(a21==11))&&(a16==7)))&&(a9==11))&&(a11==1)))&&(a17==2))&&((((((a13==1)||!(a12==1))||!(a11==1))&&(a1==14))||!(a12==1))&&(a5==4)))){ + a16 = 8; + a1 = 13; + a27 = 0; + a9 = 9; + a12 = 1; + a24 = 0; + a19 = 5; + return 21; + } else if(((((a23==1)&&(!(a20==1)&&(a12==1)))&&(a13==1))&&((((a11==1)&&(((((a21==11)&&(((a16==9)&&((((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(input==3)))&&!(a4==1)))&&(a19==2))&&!(a18==1))&&(a17==2)))&&(a1==13))&&(a11==1)))){ + if((a12==1)){ + a20 = 1; + a18 = 1; + a1 = 12; + a9 = 9; + a2 = 0; + a21 = 10; + a25 = 1; + a16 = 7; + a5 = 4; + }else{ + a11 = 0; + a21 = 10; + a19 = 1; + a20 = 1; + a1 = 12; + a0 = 1; + a25 = 0; + a5 = 5; + a16 = 7; + a9 = 8; + } + return 26; + } else if((((a9==11)&&((a21==12)&&((((((a6==1)||(a4==1))||!(a23==1))||(a24==1))&&(a17==2))||(a8==1))))&&(((a16==9)&&(!(a20==1)&&((((a2==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4)))&&(a1==12))&&!(a14==1))))&&(a19==3)))){ + a19 = 5; + a2 = 0; + a16 = 7; + a5 = 5; + a12 = 0; + a20 = 1; + a15 = 0; + a9 = 9; + a1 = 13; + return 25; + } return calculate_output5(input); + } + + int calculate_output5(int input) { + if((((a28==1)&&((((a1==13)&&((a20==1)&&((input==6)&&(((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))))&&!(a7==1))&&!(a7==1)))&&(((a21==10)&&((a19==4)&&((a2==1)&&((a6==1)&&(((a12==1)&&(a16==8))||!(a28==1))))))&&(a17==2)))){ + a23 = 1; + a19 = 1; + a13 = 1; + a5 = 5; + a16 = 10; + a9 = 7; + a6 = 1; + return 21; + } else if((((a17==2)&&((a5==5)&&((a13==1)&&((a16==8)&&(((((input==4)&&(a9==11))&&(a13==1))&&!(a18==1))&&!(a26==1))))))&&((a20==1)&&((a21==11)&&((!(a4==1)&&((a19==4)&&(!(a12==1)||(a13==1))))&&(a1==13)))))){ + a14 = 0; + a1 = 12; + a9 = 7; + a16 = 7; + a5 = 4; + a19 = 1; + a26 = 0; + a21 = 10; + return -1; + } else if((((a12==1)&&(((a5==5)&&(((input==4)&&(a19==1))&&(a17==2)))&&(a21==10)))&&(((a1==12)&&(((a9==9)&&(((a11==1)&&((((a18==1)||(a28==1))||(a18==1))||(a7==1)))&&(a3==1)))&&!(a20==1)))&&(a16==8)))){ + a16 = 7; + a9 = 7; + a28 = 1; + a20 = 1; + a27 = 0; + a24 = 0; + a5 = 4; + return -1; + } else if((((a21==10)&&((a20==1)&&(((a23==1)&&((a1==12)&&((((a17==2)&&(((((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&(input==1))&&(a19==2)))&&!(a24==1))&&(a11==1))))&&(a13==1))))&&(((!(a23==1)||(a2==1))&&!(a24==1))&&(a16==8)))){ + a5 = 4; + a1 = 13; + a21 = 12; + a19 = 3; + a14 = 0; + a9 = 9; + a24 = 0; + a12 = 1; + a16 = 9; + return 22; + } else if(((((a12==1)&&((((a19==3)&&((a20==1)&&(((input==5)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8))))&&(a1==12))))&&!(a7==1))&&(a23==1)))&&!(a14==1))&&((((!(a3==1)||((a17==2)&&(a12==1)))&&(a16==8))&&(a21==12))||(a0==1)))){ + a21 = 10; + a3 = 1; + a16 = 7; + a9 = 7; + a23 = 1; + a11 = 1; + a5 = 4; + a19 = 1; + return -1; + } else if(((((((((a13==1)||!(a6==1))||!(a12==1))||!(a28==1))||!(a6==1))&&(a21==10))&&(a9==7))&&(((a1==13)&&(((a20==1)&&((((a5==4)&&((a17==2)&&(input==3)))&&!(a27==1))&&(a2==1)))&&(a16==8)))&&(a19==2)))){ + a1 = 12; + a16 = 7; + a7 = 0; + a19 = 1; + a8 = 0; + a4 = 0; + return -1; + } else if((((a21==10)&&((!(a18==1)&&((a23==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5))))&&(a16==10)))&&(((!(a20==1)&&((a27==1)||(!(a28==1)||((a1==14)&&((a11==1)&&(!(a6==1)||((a2==1)&&(a17==2))))))))&&(a19==1))&&(a9==8)))){ + a7 = 1; + a21 = 11; + a16 = 9; + a1 = 12; + a18 = 1; + a5 = 6; + a2 = 0; + a19 = 3; + a9 = 11; + return -1; + } else if(((!(a0==1)&&(((a16==11)&&((a20==1)&&((((((a19==5)&&(((a5==5)&&(a1==14))&&(a9==11)))&&(a21==10))||((a21==10)&&(((a9==11)&&((a1==14)&&(a5==6)))&&(a19==5))))||((a21==11)&&((a19==1)&&((a9==7)&&((a1==12)&&(a5==4))))))&&(input==5))))&&(a23==1)))&&(((a4==1)||((((a0==1)||(a6==1))&&(a17==2))||!(a3==1)))&&(a13==1)))){ + a21 = 10; + a12 = 1; + a19 = 3; + a5 = 5; + a16 = 10; + a18 = 0; + a7 = 0; + a1 = 14; + a9 = 8; + return 21; + } else if((((((a21==12)&&((((input==6)&&(a9==8))&&!(a0==1))&&(a5==6)))&&!(a7==1))&&(a17==2))&&((a1==12)&&(!(a20==1)&&((a19==3)&&((((((a2==1)&&(a2==1))||!(a3==1))&&(a16==7))||!(a6==1))||(a7==1))))))){ + a8 = 0; + a18 = 0; + a20 = 1; + a5 = 4; + a9 = 7; + a21 = 10; + a19 = 1; + a11 = 1; + return -1; + } else if((((!(a2==1)||((!(a14==1)&&((a7==1)||(!(a3==1)||((a28==1)&&(a20==1)))))&&(a3==1)))&&(a1==12))&&((a19==1)&&(((a21==12)&&((a6==1)&&((a17==2)&&((((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(input==6)))))&&(a16==7))))){ + a0 = 0; + a20 = 0; + a5 = 6; + a21 = 11; + a9 = 10; + a1 = 13; + a19 = 3; + a23 = 1; + a8 = 0; + return 26; + } else if((((a11==1)&&((!(a11==1)||(!(a24==1)&&((a20==1)&&((a21==11)&&(a2==1)))))&&(a16==10)))&&((((a9==11)&&((((((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a3==1))&&(a1==13))&&(a17==2))&&(a19==1)))&&(a6==1))&&(a3==1)))){ + a5 = 5; + a18 = 0; + a9 = 7; + a28 = 1; + a24 = 0; + a19 = 4; + a16 = 7; + return 25; + } else if(((!(a24==1)&&(((a16==11)&&((a5==5)&&(((a9==8)&&((a17==2)&&(((a19==2)&&(input==1))&&(a23==1))))&&(a21==10))))&&(a3==1)))&&(((a27==1)||((a1==13)&&(!(a6==1)||(!(a20==1)&&(a11==1)))))||(a27==1)))){ + a9 = 10; + a20 = 1; + a19 = 1; + a3 = 0; + a16 = 7; + a27 = 1; + a25 = 1; + return -1; + } else if((((a23==1)&&(((a17==2)&&((a19==3)&&((a21==10)&&((a23==1)&&((a2==1)&&(((a6==1)&&((a5==4)&&(input==3)))&&(a16==7)))))))&&(a20==1)))&&((a1==12)&&(!(a8==1)&&(((a2==1)&&(a3==1))&&(a9==9)))))){ + if((a12==1)){ + a9 = 11; + a21 = 11; + a16 = 8; + a20 = 0; + a7 = 0; + a23 = 1; + a19 = 1; + a18 = 0; + }else{ + a0 = 0; + a5 = 6; + a1 = 13; + a24 = 0; + a9 = 7; + a19 = 5; + a27 = 0; + } + return 22; + } else if(((!(a13==1)&&((a14==1)&&(((a8==1)&&((((a19==5)&&(!(a6==1)&&((((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a9==10))&&(a1==13))))&&(a16==9))&&(a20==1)))&&(a4==1))))&&(!(a23==1)&&(((a21==12)&&(a11==1))&&(a17==2))))){ + a21 = 10; + a1 = 14; + a5 = 4; + a9 = 9; + a16 = 7; + a29 = 1; + a8 = 1; + a27 = 1; + return -1; + } else if((((!(a18==1)&&(!(a14==1)&&((a21==11)&&(((a1==13)&&((a9==7)&&((input==6)&&(a17==2))))&&(a5==4)))))&&(a2==1))&&(!(a3==1)||((!(a6==1)||((a19==4)&&((a20==1)&&((a12==1)&&(a16==8)))))||(a27==1))))){ + a1 = 12; + a7 = 0; + a16 = 7; + a21 = 10; + a19 = 1; + a12 = 1; + return -1; + } else if((((a16==9)&&((a17==2)&&((a23==1)&&(((((a19==5)&&(input==1))&&(a12==1))&&!(a26==1))&&(a1==12)))))&&((a5==5)&&(((a21==11)&&((a20==1)&&((a7==1)||(!(a14==1)&&((a8==1)||(a12==1))))))&&(a9==7))))){ + a19 = 1; + a16 = 10; + a21 = 10; + a27 = 0; + a9 = 10; + a5 = 6; + a24 = 0; + a28 = 1; + return 21; + } else if(((((a5==6)&&((a17==2)&&(((a12==1)&&((a13==1)&&((a1==14)&&(!(a7==1)&&(!(a8==1)&&(((input==5)&&(a21==12))&&(a20==1)))))))&&(a19==3))))&&(a16==9))&&((((a9==7)&&(a6==1))||(a14==1))||(a4==1)))){ + a21 = 10; + a19 = 2; + a16 = 7; + a18 = 0; + a1 = 13; + a2 = 1; + a23 = 1; + a9 = 10; + return 25; + } else if((((a16==8)&&(((!(a24==1)&&((!(a7==1)&&(a23==1))&&(a1==14)))&&(a17==2))&&(a9==10)))&&(((a28==1)&&(!(a0==1)&&((((((input==6)&&((a5==4)||(a5==5)))&&(a2==1))&&(a21==12))&&(a19==5))&&!(a18==1))))&&(a20==1)))){ + if((a7==1)){ + a28 = 1; + a20 = 0; + a21 = 11; + a4 = 0; + a19 = 4; + a1 = 12; + a24 = 0; + a5 = 6; + a9 = 7; + }else{ + a24 = 0; + a8 = 0; + a9 = 7; + a5 = 6; + } + return -1; + } else if((((a28==1)&&(((a17==2)&&((a23==1)&&(((a12==1)&&((a14==1)||(((a12==1)&&(a21==11))||!(a6==1))))&&!(a24==1))))&&(a20==1)))&&((a1==14)&&((a19==5)&&((((input==3)&&((a5==5)||(a5==6)))&&(a9==9))&&(a16==9)))))){ + a23 = 1; + a5 = 4; + a21 = 10; + a1 = 12; + a9 = 7; + a28 = 1; + a16 = 7; + a19 = 1; + a14 = 0; + return -1; + } else if(((((a21==11)&&(((a1==14)&&((((!(a7==1)&&(!(a26==1)&&((a2==1)&&(((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))&&(input==5)))))&&(a13==1))&&(a6==1))&&!(a26==1)))&&(a19==5)))&&(a16==8))&&(((a17==2)&&(a2==1))&&(a20==1)))){ + a19 = 3; + a9 = 10; + a14 = 0; + a16 = 10; + a5 = 5; + a8 = 0; + return 25; + } else if(((((a17==2)&&((a2==1)&&((a21==12)&&((((a1==12)&&((a6==1)&&(!(a14==1)&&((((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7))))&&(input==3)))))&&(a11==1))&&(a13==1)))))&&(a19==5))&&((!(a20==1)&&((a13==1)&&(a16==7)))||!(a12==1)))){ + a19 = 1; + a20 = 1; + a8 = 0; + a5 = 4; + a18 = 0; + a21 = 10; + a26 = 0; + a9 = 7; + return -1; + } else if((((a5==6)&&(!(a26==1)&&((a16==9)&&((((input==4)&&(a9==8))&&(a6==1))&&(a1==13)))))&&(!(a23==1)||(!(a23==1)||((a14==1)||((!(a28==1)||((a20==1)&&(((a19==3)&&(a23==1))&&(a21==12))))&&(a17==2))))))){ + a1 = 12; + a13 = 1; + a7 = 0; + a16 = 7; + a5 = 4; + a9 = 7; + a21 = 10; + a19 = 1; + return -1; + } else if((((a28==1)&&(!(a7==1)&&(!(a13==1)||(((a16==10)&&((!(a13==1)||((a3==1)&&(a21==10)))&&(a20==1)))&&!(a24==1)))))&&(((a19==4)&&((a17==2)&&((input==5)&&((((a5==6)&&(a1==13))&&(a9==11))||(((a1==14)&&(a5==4))&&(a9==7))))))&&!(a8==1)))){ + a1 = 13; + a19 = 5; + a28 = 1; + a5 = 4; + a18 = 0; + a21 = 11; + a9 = 8; + a0 = 0; + return 21; + } else if((((a5==5)&&((a1==14)&&((((a13==1)&&(((((input==3)&&(a9==11))&&(a6==1))&&(a12==1))&&(a19==5)))&&(a16==7))&&(a28==1))))&&((a20==1)&&((!(a6==1)||((a21==11)&&(!(a4==1)&&(a3==1))))&&(a17==2))))){ + a19 = 1; + a1 = 12; + a26 = 0; + a21 = 10; + a5 = 4; + a11 = 1; + a9 = 7; + return -1; + } else if((((a17==2)&&(((a1==14)&&((((a5==5)||(a5==6))&&(input==1))&&(a23==1)))&&(a20==1)))&&((!(a28==1)||((((a9==9)&&((!(a13==1)||((a2==1)&&((a19==4)&&(a13==1))))&&(a16==11)))||(a4==1))&&(a21==11)))&&(a3==1)))){ + a16 = 9; + a1 = 12; + a13 = 1; + a19 = 3; + a24 = 0; + a21 = 12; + a11 = 1; + a5 = 4; + return 21; + } else if((((a13==1)&&((!(a26==1)&&(((a19==2)&&((((input==1)&&((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4))))&&(a16==10))&&(a3==1)))&&(a11==1)))&&(a2==1)))&&(((a1==13)&&((((a12==1)&&(a21==12))&&!(a20==1))&&(a17==2)))||!(a12==1)))){ + a5 = 6; + a27 = 1; + a12 = 0; + a9 = 11; + a20 = 1; + a1 = 14; + a21 = 11; + return -1; + } else if((((a21==10)&&(((a28==1)&&((a16==11)&&(((a19==2)&&((((((a5==4)&&(a1==13))&&(a9==7))||((((a5==5)&&(a1==12))&&(a9==11))||((a9==11)&&((a1==12)&&(a5==6)))))&&(input==5))&&!(a20==1)))&&(a2==1))))&&!(a4==1)))&&(((((a28==1)&&(a23==1))&&(a17==2))||!(a3==1))&&!(a26==1)))){ + a20 = 1; + a19 = 3; + a1 = 12; + a4 = 1; + a21 = 11; + a5 = 6; + a16 = 7; + a9 = 9; + a22 = 0; + return 21; + } else if(((((a13==1)&&((a1==14)&&((a9==10)&&(((!(a18==1)&&((a19==1)&&((input==6)&&((a5==4)||(a5==5)))))&&(a6==1))&&!(a0==1)))))&&(a20==1))&&(((a16==8)&&(!(a3==1)||(((a11==1)&&(a23==1))&&(a21==12))))&&(a17==2)))){ + a18 = 0; + a5 = 4; + a24 = 0; + a1 = 12; + a16 = 7; + a3 = 1; + a9 = 7; + a21 = 10; + return -1; + } else if((((a28==1)&&(!(a7==1)&&(!(a20==1)&&((a17==2)&&((a19==2)&&((a16==9)&&((input==5)&&((((a5==6)&&(a1==13))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==14)))))))))))&&((a28==1)&&((a23==1)&&(!(a13==1)||(((a2==1)||(a7==1))&&(a21==11))))))){ + a5 = 5; + a21 = 10; + a26 = 1; + a29 = 1; + a9 = 8; + a19 = 1; + a1 = 13; + a25 = 0; + a16 = 7; + a20 = 1; + return -1; + } else if((((a16==11)&&((!(a11==1)||((!(a20==1)&&(a28==1))&&!(a4==1)))&&(a19==3)))&&(((!(a27==1)&&((a17==2)&&((!(a18==1)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&!(a14==1))&&(a9==10)))&&(a21==10))))&&(a12==1))&&(a1==14)))){ + a25 = 0; + a20 = 1; + a5 = 6; + a16 = 7; + a4 = 1; + a9 = 9; + a19 = 1; + a10 = 0; + return 21; + } else if(((((a21==11)&&(((a9==10)&&((a1==13)&&(((input==6)&&((a5==5)||(a5==6)))&&!(a20==1))))&&(a2==1)))&&(a28==1))&&((((a17==2)&&((a16==9)&&(!(a8==1)&&((!(a6==1)||(a11==1))&&(a19==2)))))&&!(a18==1))&&!(a8==1)))){ + if((a1==12)){ + a16 = 7; + a15 = 0; + a29 = 0; + a20 = 1; + a19 = 1; + a5 = 6; + a3 = 0; + a21 = 10; + a1 = 14; + }else{ + a25 = 0; + a24 = 1; + a21 = 10; + a1 = 14; + a19 = 1; + a5 = 5; + a9 = 7; + a20 = 1; + } + return -1; + } else if(((!(a13==1)||(((a17==2)&&(((a3==1)&&(a21==12))&&(a5==5)))&&!(a0==1)))&&((a12==1)&&(!(a20==1)&&((!(a7==1)&&((a1==12)&&(!(a4==1)&&(((a19==2)&&((a9==10)&&(input==3)))&&!(a26==1)))))&&(a16==7)))))){ + a11 = 1; + a9 = 7; + a21 = 10; + a19 = 1; + a20 = 1; + a23 = 1; + a0 = 0; + a5 = 4; + return -1; + } else if(((((!(a26==1)&&((a17==2)&&((!(a8==1)&&(!(a7==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1))))&&(a6==1))))&&(a1==14))&&(a19==3))&&(!(a20==1)&&((a9==9)&&((a16==7)&&((((a28==1)&&(a21==11))||!(a3==1))||(a8==1))))))){ + a1 = 13; + a21 = 10; + a20 = 1; + a5 = 4; + a11 = 1; + a0 = 0; + a7 = 0; + a19 = 2; + return -1; + } else if((((a1==13)&&((a17==2)&&(((a21==11)&&((!(a20==1)&&((a13==1)||(a18==1)))&&(a19==5)))&&(a6==1))))&&(((a23==1)&&((!(a26==1)&&((a13==1)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==6))))&&(a16==7)))&&(a2==1)))){ + a20 = 1; + a16 = 9; + a2 = 1; + a19 = 2; + a21 = 10; + a9 = 9; + a1 = 14; + a11 = 1; + a5 = 6; + a28 = 1; + return 21; + } else if(((((!(a26==1)&&(((((a2==1)&&(a19==1))&&!(a26==1))&&(a17==2))&&(a9==8)))&&(a1==13))||!(a12==1))&&((!(a0==1)&&((a3==1)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&!(a4==1))&&(a20==1))&&(a21==11))))&&(a16==10)))){ + a9 = 7; + a0 = 0; + a21 = 10; + a12 = 1; + a1 = 12; + a5 = 4; + a16 = 7; + return -1; + } else if((((a17==2)&&((!(a6==1)||((a27==1)||(((a1==14)&&((a13==1)&&(a3==1)))&&(a21==12))))&&!(a20==1)))&&((a19==1)&&(((a28==1)&&(((a12==1)&&((input==1)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))))&&(a12==1)))&&(a16==7))))){ + a9 = 8; + a5 = 5; + a20 = 1; + a21 = 11; + a11 = 1; + a16 = 11; + a3 = 1; + a1 = 13; + return 23; + } else if((((a16==11)&&((((a9==7)&&(a2==1))&&!(a24==1))&&!(a4==1)))&&((((((a5==5)&&(((((a17==2)&&((a19==3)&&(input==1)))&&(a1==12))&&(a20==1))&&!(a14==1)))&&!(a24==1))&&(a21==12))&&!(a8==1))&&!(a8==1)))){ + a26 = 0; + a13 = 1; + a16 = 7; + a21 = 10; + a5 = 4; + a19 = 1; + return -1; + } else if((((a9==9)&&((a0==1)||((a0==1)||(!(a12==1)||(((a28==1)||(a7==1))&&(a3==1))))))&&((a17==2)&&(((a5==6)&&((a16==9)&&((((a19==5)&&((a21==12)&&(input==1)))&&(a1==14))&&!(a26==1))))&&!(a20==1))))){ + a16 = 7; + a21 = 10; + a19 = 1; + a18 = 1; + a10 = 1; + a8 = 1; + a9 = 10; + a20 = 1; + a5 = 4; + return 21; + } else if(((!(a8==1)&&((a1==14)&&(((a27==1)||((((a21==12)&&((a23==1)&&(a3==1)))&&(a9==8))||!(a23==1)))&&(a17==2))))&&(((a16==9)&&((a20==1)&&((a19==4)&&((((a5==5)||(a5==6))&&(input==4))&&(a6==1)))))&&(a3==1)))){ + a9 = 7; + a14 = 0; + a3 = 1; + a19 = 1; + a1 = 12; + a21 = 10; + a4 = 0; + a5 = 4; + a16 = 7; + return -1; + } else if((((a1==12)&&(((!(a24==1)&&(((input==6)&&(a5==4))&&!(a0==1)))&&(a3==1))&&!(a20==1)))&&(((a17==2)&&((a16==7)&&(((((!(a13==1)||(a13==1))||!(a12==1))&&!(a26==1))&&(a21==10))&&(a19==2))))&&(a9==9)))){ + a9 = 7; + a4 = 0; + a20 = 1; + a19 = 1; + a8 = 0; + a28 = 1; + return -1; + } else if((((a1==13)&&((((a21==11)&&((!(a0==1)&&(((a9==7)&&(a11==1))&&(a13==1)))&&(a13==1)))&&(a16==9))&&(a17==2)))&&((a19==3)&&((a28==1)&&((!(a0==1)&&((((a5==5)||(a5==6))&&(input==4))&&!(a20==1)))&&!(a14==1)))))){ + if((a1==14)){ + a16 = 7; + a21 = 10; + a26 = 1; + a29 = 1; + a14 = 1; + a19 = 1; + a1 = 12; + a20 = 1; + a5 = 5; + a9 = 9; + }else{ + a22 = 0; + a9 = 11; + a20 = 1; + a1 = 12; + a19 = 4; + a5 = 6; + a21 = 10; + a26 = 1; + a0 = 1; + } + return -1; + } else if((((((a19==1)&&(((a3==1)||(a0==1))&&!(a20==1)))&&(a21==10))&&!(a24==1))&&((((a16==11)&&(((a9==11)&&((a17==2)&&(((((a5==5)||(a5==6))&&(input==1))&&(a1==14))&&!(a0==1))))&&!(a24==1)))&&(a28==1))&&!(a8==1)))){ + a5 = 4; + a25 = 0; + a20 = 1; + a1 = 12; + a16 = 7; + a9 = 10; + a29 = 1; + a0 = 1; + return -1; + } else if(((((!(a7==1)&&(a3==1))||(a18==1))&&(a1==14))&&(((((a16==11)&&((((a23==1)&&((((a19==5)&&((input==6)&&((a5==6)||((a5==4)||(a5==5)))))&&(a17==2))&&(a2==1)))&&(a9==8))&&(a20==1)))&&(a21==10))&&(a23==1))&&(a3==1)))){ + a1 = 12; + a28 = 1; + a6 = 1; + a23 = 1; + a5 = 5; + a21 = 11; + return 23; + } else if(((((!(a12==1)||((!(a2==1)||((a17==2)&&((a5==5)&&(!(a8==1)&&((a3==1)&&(a6==1))))))&&!(a20==1)))&&(a21==11))&&(a9==8))&&(((a23==1)&&((((input==1)&&(a19==4))&&(a16==10))&&(a3==1)))&&(a1==14)))){ + if((a16==9)){ + a26 = 1; + a1 = 12; + a25 = 0; + a21 = 10; + a9 = 9; + a10 = 1; + a20 = 1; + a19 = 3; + a5 = 6; + }else{ + a16 = 7; + a19 = 1; + a25 = 0; + a20 = 1; + a9 = 9; + a21 = 10; + a18 = 1; + a29 = 0; + } + return -1; + } else if((((((!(a8==1)&&((a19==3)&&((a1==12)&&((input==1)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))))))&&(a20==1))&&(a12==1))&&!(a24==1))&&(((((a17==2)&&(((a16==8)&&(a11==1))&&!(a14==1)))||!(a13==1))&&(a3==1))&&(a21==12)))){ + a1 = 13; + a16 = 10; + a11 = 1; + a9 = 8; + a19 = 2; + a24 = 0; + a5 = 4; + return 21; + } else if((((a19==5)&&((a1==13)&&(((!(a27==1)&&((a17==2)&&((a3==1)&&((a23==1)&&(!(a20==1)&&(((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4)))&&(input==3)))))))&&(a6==1))&&(a3==1))))&&((a14==1)||((a21==11)&&((a16==8)&&(a28==1)))))){ + if((a21==10)){ + a13 = 0; + a23 = 0; + a9 = 11; + a29 = 0; + a1 = 14; + a19 = 3; + a5 = 5; + }else{ + a19 = 2; + a12 = 0; + a5 = 4; + a9 = 7; + a29 = 0; + a20 = 1; + a10 = 1; + } + return -1; + } else if((((((((a9==8)&&((a4==1)||(a6==1)))&&(a16==7))&&(a3==1))&&(a17==2))&&!(a20==1))&&((((a13==1)&&(((a2==1)&&((!(a18==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3)))&&(a21==11)))&&(a28==1)))&&(a19==1))&&(a1==13)))){ + a5 = 4; + a1 = 12; + a7 = 0; + a12 = 1; + a20 = 1; + a9 = 7; + a24 = 0; + a21 = 10; + return -1; + } else if((((a1==12)&&((!(a7==1)&&((a21==12)&&(!(a24==1)&&(((input==4)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(a6==1)))))&&(a28==1)))&&((((a19==5)&&(((a17==2)&&((a3==1)&&!(a14==1)))&&(a16==9)))&&!(a20==1))||(a27==1)))){ + a6 = 0; + a16 = 7; + a5 = 5; + a26 = 1; + a20 = 1; + a19 = 2; + a21 = 10; + a9 = 11; + a22 = 0; + return 21; + } else if((((((((a21==12)&&(((a17==2)&&(((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5)))&&(input==5)))&&(a1==13)))&&!(a20==1))&&(a16==7))&&!(a14==1))&&(a12==1))&&(((a18==1)||((a19==3)&&((!(a13==1)||(a11==1))||(a14==1))))&&!(a8==1)))){ + a9 = 8; + a20 = 1; + a24 = 0; + a19 = 1; + a2 = 1; + a21 = 10; + a5 = 4; + a16 = 11; + a4 = 0; + return 25; + } else if((((((a21==12)&&((!(a20==1)&&((input==1)&&(((a9==11)&&((a1==12)&&(a5==6)))||((a9==7)&&((a1==13)&&(a5==4))))))&&!(a4==1)))&&(a12==1))&&!(a14==1))&&(((a19==2)&&(((a0==1)||(!(a26==1)&&((a17==2)&&(a28==1))))&&(a16==7)))||!(a13==1)))){ + a16 = 10; + a1 = 12; + a20 = 1; + a9 = 7; + a19 = 5; + a8 = 0; + a7 = 0; + a21 = 11; + a5 = 4; + a6 = 1; + return 26; + } else if(((((a21==10)&&((((a19==3)&&((((a16==11)&&((a11==1)&&(a17==2)))||!(a12==1))&&(a5==6)))&&(a3==1))||(a4==1)))&&!(a7==1))&&((a1==13)&&((a13==1)&&((a20==1)&&(!(a24==1)&&((input==3)&&(a9==9)))))))){ + a12 = 1; + a9 = 7; + a19 = 1; + a16 = 7; + a13 = 1; + a5 = 4; + a1 = 12; + a2 = 1; + return -1; + } else if((((a14==1)&&((a17==2)&&(!(a23==1)&&((a4==1)&&(((((a19==4)&&(input==6))&&(a16==9))&&(a5==4))&&(a20==1))))))&&((((((a27==1)&&(!(a28==1)&&(a11==1)))&&(a21==10))&&(a9==11))&&(a1==13))&&!(a23==1)))){ + a9 = 8; + a10 = 0; + a16 = 7; + a3 = 0; + a1 = 12; + a5 = 5; + a19 = 1; + return -1; + } else if((((((!(a11==1)||((a18==1)||((a1==14)&&((a3==1)&&!(a7==1)))))&&(a21==12))&&(a20==1))&&(a9==8))&&(((a17==2)&&((a16==9)&&(((a13==1)&&(!(a4==1)&&((input==1)&&((a5==5)||(a5==6)))))&&(a23==1))))&&(a19==2)))){ + a5 = 4; + a16 = 7; + a2 = 1; + a11 = 1; + a21 = 10; + a1 = 12; + a14 = 0; + a9 = 7; + a19 = 1; + return -1; + } else if((((a12==1)&&(!(a4==1)&&(!(a20==1)&&((((a19==1)&&((a17==2)&&(((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a16==10))))&&(a9==8))&&!(a24==1)))))&&((!(a3==1)||(((a21==10)&&((a3==1)&&!(a26==1)))&&(a1==14)))||!(a12==1)))){ + if((a26==1)){ + a15 = 1; + a16 = 7; + a20 = 1; + a9 = 9; + a6 = 0; + a1 = 12; + a5 = 6; + }else{ + a19 = 2; + a27 = 1; + a3 = 0; + a16 = 7; + a21 = 12; + a1 = 12; + a15 = 1; + a20 = 1; + a5 = 5; + a9 = 10; + } + return -1; + } else if(((((((a21==12)&&((((a23==1)&&((a3==1)||!(a11==1)))||!(a28==1))&&!(a27==1)))&&(a20==1))&&(a17==2))&&(a16==10))&&((a6==1)&&(((input==4)&&(((((a5==4)&&(a1==12))&&(a9==7))&&(a19==4))||((((a9==11)&&((a1==14)&&(a5==5)))&&(a19==3))||(((a9==11)&&((a5==6)&&(a1==14)))&&(a19==3)))))&&!(a4==1))))){ + a14 = 0; + a1 = 12; + a19 = 1; + a16 = 7; + a9 = 7; + a27 = 0; + a6 = 1; + a21 = 10; + a5 = 4; + return -1; + } else if((((((((a1==12)&&(a3==1))&&(a9==10))||!(a6==1))&&(a16==7))&&(a19==1))&&((((((((!(a14==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3)))&&(a12==1))&&(a23==1))&&!(a7==1))&&(a28==1))&&(a17==2))&&(a21==11))&&!(a20==1)))){ + a0 = 0; + a5 = 4; + a20 = 1; + a11 = 1; + a21 = 10; + a9 = 7; + a6 = 1; + return -1; + } else if(((((a21==10)&&(((!(a26==1)&&(((a11==1)||(a7==1))&&!(a18==1)))&&(a16==8))&&(a1==14)))&&(a19==2))&&((a9==11)&&((((a2==1)&&(((a28==1)&&((input==4)&&!(a20==1)))&&(a23==1)))&&(a5==5))&&(a17==2))))){ + a9 = 7; + a16 = 7; + a1 = 12; + a18 = 0; + a5 = 4; + a24 = 0; + a19 = 1; + a20 = 1; + a28 = 1; + return -1; + } else if((((((input==4)&&(((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))))&&(a19==4))&&(a23==1))&&(((((((a21==12)&&((a1==14)&&((a28==1)&&((a20==1)&&((a17==2)&&(a2==1))))))||(a4==1))&&(a6==1))&&(a12==1))||!(a11==1))&&(a16==8)))){ + a5 = 5; + a9 = 8; + a2 = 1; + a21 = 10; + a1 = 12; + a19 = 5; + a27 = 0; + return 25; + } else if((((!(a26==1)&&((a16==9)&&((a20==1)&&((a19==4)&&((a6==1)&&((a1==14)&&(!(a18==1)&&(((input==6)&&(((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))))&&!(a18==1)))))))))&&(a17==2))&&((a21==12)&&((a14==1)||((a3==1)&&!(a26==1)))))){ + a5 = 4; + a9 = 7; + a6 = 1; + a27 = 0; + a16 = 7; + a21 = 10; + a19 = 1; + a3 = 1; + a1 = 12; + return -1; + } else if((((((a1==12)&&((((!(a20==1)&&((a28==1)&&((a16==7)&&(input==4))))&&(a17==2))&&(a5==5))&&(a19==5)))&&!(a24==1))&&(a9==9))&&((a21==10)&&((a8==1)||(((a12==1)&&((a4==1)||(a6==1)))&&!(a24==1)))))){ + a19 = 1; + a0 = 0; + a6 = 1; + a20 = 1; + a27 = 0; + a5 = 4; + a9 = 7; + return -1; + } else if((((((((a1==14)&&((a5==6)&&(!(a20==1)&&(((input==5)&&(a17==2))&&(a16==9)))))&&(a21==10))&&(a11==1))&&!(a27==1))&&(a28==1))&&(((((!(a8==1)&&(a3==1))||(a26==1))||!(a12==1))&&(a19==1))&&(a9==7)))){ + if((a18==1)){ + a16 = 8; + a5 = 4; + a1 = 12; + a9 = 10; + a18 = 1; + a21 = 12; + a22 = 1; + a19 = 3; + a8 = 1; + }else{ + a28 = 0; + a27 = 1; + a9 = 9; + a16 = 7; + a20 = 1; + a8 = 1; + } + return 25; + } else if((((!(a4==1)&&((a20==1)&&(((a21==12)&&(((input==6)&&((a5==5)||(a5==6)))&&(a17==2)))&&(a9==7))))&&(a16==9))&&((a19==4)&&(((a7==1)||(((((a2==1)&&!(a27==1))||!(a12==1))&&!(a14==1))&&!(a0==1)))&&(a1==13))))){ + a4 = 0; + a13 = 1; + a16 = 7; + a1 = 12; + a19 = 1; + a21 = 10; + a5 = 4; + a2 = 1; + return -1; + } else if((((a2==1)&&((a19==1)&&(((((((a28==1)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6))))&&(a9==8))&&(a21==11))&&(a2==1))&&(a6==1))&&(a20==1))))&&(((a23==1)&&(((a28==1)&&((a16==8)&&(a23==1)))&&(a1==14)))&&(a17==2)))){ + a21 = 10; + a0 = 0; + a26 = 0; + a1 = 12; + a9 = 7; + a5 = 4; + a16 = 7; + a6 = 1; + return -1; + } else if(((((((a13==1)&&((((a2==1)||(a18==1))&&(a9==9))&&(a1==14)))&&(a2==1))&&!(a14==1))&&(a17==2))&&(((a19==3)&&((!(a18==1)&&((((input==1)&&((a5==4)||(a5==5)))&&(a16==7))&&(a12==1)))&&(a20==1)))&&(a21==11)))){ + a27 = 0; + a9 = 7; + a21 = 10; + a1 = 12; + a13 = 1; + a19 = 1; + a5 = 4; + return -1; + } else if((((a1==13)&&(!(a20==1)&&(!(a0==1)&&((a11==1)&&((a16==10)&&((((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(input==6)))))))&&(((((a21==12)&&((a19==5)&&(((a28==1)&&!(a14==1))&&(a11==1))))||(a7==1))&&(a17==2))&&(a2==1)))){ + if((a7==1)){ + a6 = 0; + a9 = 8; + a19 = 4; + a21 = 11; + a20 = 1; + a0 = 1; + a16 = 8; + a5 = 6; + a12 = 0; + a1 = 12; + }else{ + a21 = 10; + a9 = 10; + a5 = 5; + a14 = 1; + a28 = 0; + a19 = 1; + a20 = 1; + a16 = 7; + a7 = 1; + } + return 21; + } else if((((a9==8)&&(((!(a14==1)&&((((input==4)&&(a17==2))&&(a19==5))&&(a1==14)))&&(a21==12))&&(a5==6)))&&((a20==1)&&((a16==9)&&((a3==1)&&(((a6==1)&&((a26==1)||((a28==1)&&!(a26==1))))&&(a3==1))))))){ + a24 = 0; + a16 = 7; + a11 = 1; + a21 = 10; + a9 = 7; + a5 = 4; + a12 = 1; + a19 = 1; + a1 = 12; + return -1; + } else if((((a23==1)&&(((((a16==11)&&(input==6))&&(a23==1))&&!(a8==1))&&(a1==13)))&&(((a19==2)&&((a13==1)&&((a14==1)||(((((a9==9)&&((a13==1)&&(a3==1)))&&!(a20==1))&&(a17==2))&&(a5==6)))))&&(a21==10)))){ + if((a3==1)){ + a20 = 1; + a1 = 14; + a21 = 11; + a9 = 7; + a18 = 1; + a26 = 1; + a19 = 3; + a16 = 7; + a5 = 4; + a8 = 1; + }else{ + a20 = 1; + a16 = 8; + a1 = 14; + a21 = 11; + a3 = 0; + a29 = 1; + a19 = 3; + a9 = 10; + a5 = 5; + } + return 23; + } else if(((((a17==2)&&(((a28==1)&&((a19==4)&&((input==5)&&((((a5==4)&&(a1==14))&&(a9==7))||(((a9==11)&&((a5==5)&&(a1==13)))||((a9==11)&&((a1==13)&&(a5==6))))))))&&(a3==1)))&&(a3==1))&&((a26==1)||((a21==11)&&(((!(a18==1)&&((a18==1)||(a6==1)))&&!(a20==1))&&(a16==7)))))){ + if((a10==1)){ + a5 = 6; + a13 = 1; + a21 = 10; + a4 = 0; + a9 = 10; + a6 = 1; + a19 = 3; + a16 = 8; + a1 = 12; + }else{ + a16 = 10; + a1 = 13; + a28 = 1; + a9 = 9; + a20 = 1; + a21 = 10; + a11 = 1; + a5 = 6; + a27 = 0; + a19 = 5; + } + return 21; + } else if((((((a9==11)&&((((a1==12)&&(!(a8==1)&&(!(a14==1)&&((input==6)&&((a5==4)||(a5==5))))))&&!(a20==1))&&(a21==12)))&&(a2==1))&&(a28==1))&&((a19==2)&&(((a13==1)&&(((a11==1)&&(a17==2))&&(a3==1)))&&(a16==10))))){ + a9 = 9; + a5 = 6; + a19 = 5; + a10 = 0; + a1 = 14; + a25 = 0; + a11 = 0; + a16 = 9; + a20 = 1; + return -1; + } else if((((a16==8)&&(((a21==12)&&(((a5==4)&&(input==1))&&!(a7==1)))&&(a17==2)))&&((a23==1)&&(((a9==8)&&((((a20==1)&&(((a27==1)||((a1==14)&&(a6==1)))&&(a11==1)))&&(a19==5))&&(a12==1)))||(a24==1))))){ + a9 = 7; + a23 = 1; + a1 = 13; + a3 = 1; + a12 = 1; + a16 = 10; + return 21; + } else if((((a21==12)&&(!(a4==1)&&((a20==1)&&((((!(a0==1)&&((input==6)&&(a1==12)))&&(a11==1))&&!(a0==1))&&(a5==4)))))&&(!(a28==1)||((a9==10)&&(((a17==2)&&(((a16==11)&&(a13==1))&&(a19==1)))||(a4==1)))))){ + a1 = 14; + a9 = 7; + a19 = 3; + a8 = 0; + a23 = 1; + a3 = 1; + return 21; + } else if(((!(a7==1)&&((a20==1)&&((a16==7)&&((!(a2==1)||((a19==4)&&((a0==1)||(a6==1))))||!(a2==1)))))&&((a17==2)&&((a6==1)&&((a21==10)&&(((input==6)&&((((a9==11)&&((a5==6)&&(a1==12)))||(((a1==13)&&(a5==4))&&(a9==7)))||(((a5==5)&&(a1==13))&&(a9==7))))&&(a13==1))))))){ + a5 = 6; + a1 = 13; + a12 = 1; + a9 = 10; + a26 = 0; + a3 = 1; + a21 = 11; + return 26; + } else if((((((a21==10)&&((a11==1)&&((a6==1)&&(a16==9))))&&(a13==1))&&(a5==6))&&((a9==10)&&((a20==1)&&((!(a18==1)&&((a1==13)&&(((!(a4==1)&&((input==5)&&(a17==2)))&&(a19==2))&&(a2==1))))&&!(a18==1)))))){ + a7 = 0; + a6 = 1; + a16 = 7; + a19 = 3; + a5 = 4; + a11 = 1; + a1 = 12; + a9 = 7; + return 25; + } else if(((((a21==11)&&(!(a23==1)&&(((a4==1)&&(((input==1)&&(((((a5==6)&&(a1==13))&&(a9==11))||(((a5==4)&&(a1==14))&&(a9==7)))||(((a5==5)&&(a1==14))&&(a9==7))))&&(a0==1)))&&(a19==2))))&&(a17==2))&&((a20==1)&&((((!(a2==1)&&(a23==1))&&!(a2==1))&&(a18==1))&&(a16==11))))){ + a3 = 0; + a21 = 10; + a1 = 12; + a16 = 7; + a15 = 0; + a5 = 4; + a9 = 11; + a19 = 1; + return -1; + } else if((((a5==6)&&((a21==11)&&(!(a20==1)&&(((a17==2)&&(a28==1))&&(a6==1)))))&&((a9==11)&&((a6==1)&&(!(a24==1)&&(((a1==14)&&(((((input==1)&&(a16==7))&&(a19==1))&&!(a7==1))&&!(a0==1)))&&(a3==1))))))){ + a5 = 4; + a4 = 0; + a21 = 10; + a20 = 1; + a7 = 0; + a1 = 12; + a9 = 7; + return -1; + } else if((((((!(a14==1)&&(((((a13==1)||!(a11==1))&&(a19==3))&&(a17==2))&&(a1==14)))&&(a20==1))&&(a23==1))&&(a6==1))&&(((!(a8==1)&&((((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4)))&&(input==3))&&(a21==10)))&&(a16==7))&&!(a27==1)))){ + a24 = 0; + a5 = 4; + a19 = 1; + a23 = 1; + a1 = 12; + a11 = 1; + a9 = 7; + return -1; + } else if((((((a3==1)&&((a21==10)&&((a17==2)&&(a3==1))))&&!(a26==1))&&!(a24==1))&&(((((a16==8)&&(((input==3)&&(((((a1==14)&&(a5==6))&&(a9==11))&&(a19==1))||((a19==2)&&(((a5==4)&&(a1==12))&&(a9==7)))))&&(a20==1)))&&!(a4==1))&&(a23==1))&&(a23==1)))){ + a28 = 1; + a5 = 4; + a19 = 3; + a1 = 13; + a16 = 9; + a9 = 7; + a21 = 12; + a6 = 1; + a2 = 1; + return 25; + } else if((((a16==11)&&(((((a2==1)&&((((a11==1)&&!(a8==1))&&(a28==1))&&(a17==2)))||!(a6==1))&&(a20==1))&&(a21==12)))&&(((a1==13)&&((((input==1)&&(((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))))&&(a28==1))&&!(a8==1)))&&(a19==2)))){ + a16 = 10; + a21 = 10; + a8 = 0; + a0 = 0; + a6 = 1; + a5 = 6; + a9 = 7; + a1 = 14; + return 21; + } else if((((a9==10)&&(((!(a0==1)&&((!(a14==1)&&((input==4)&&((a5==6)||((a5==4)||(a5==5)))))&&(a6==1)))&&!(a26==1))&&(a16==8)))&&(((a19==2)&&((a21==12)&&((a28==1)&&((((a12==1)&&(a20==1))&&(a28==1))&&(a1==14)))))&&(a17==2)))){ + a16 = 7; + a1 = 12; + a11 = 1; + a21 = 10; + a19 = 1; + a9 = 7; + a5 = 4; + a28 = 1; + a27 = 0; + return -1; + } else if(((((!(a13==1)||((a19==2)&&((a16==7)&&((a2==1)&&(a17==2)))))&&!(a4==1))||(a24==1))&&((a21==12)&&(((a1==14)&&(((!(a14==1)&&(((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5)))&&(input==1)))&&!(a7==1))&&!(a27==1)))&&(a20==1))))){ + if((a27==1)){ + a1 = 12; + a9 = 7; + a21 = 11; + a20 = 0; + a26 = 0; + a11 = 1; + a7 = 0; + a5 = 4; + }else{ + a23 = 1; + a9 = 8; + a6 = 1; + a16 = 9; + a5 = 6; + a8 = 0; + a21 = 10; + a19 = 4; + a1 = 12; + } + return 23; + } else if(((!(a20==1)&&((input==6)&&(((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))))&&((a18==1)||(((a26==1)||((a24==1)||((a19==3)&&(((a11==1)&&((((a3==1)&&((a1==14)&&(a11==1)))&&(a17==2))&&(a16==8)))&&(a21==12)))))&&(a28==1))))){ + if((a11==1)){ + a29 = 1; + a13 = 0; + a9 = 8; + a16 = 11; + a20 = 1; + a1 = 12; + a21 = 11; + a5 = 4; + a27 = 1; + }else{ + a28 = 0; + a9 = 11; + a11 = 0; + a20 = 1; + a5 = 5; + a16 = 7; + a18 = 1; + a21 = 10; + a19 = 1; + a1 = 13; + } + return -1; + } else if((((a2==1)&&((((a17==2)&&(((((a2==1)&&(a21==12))&&(a9==8))&&(a1==14))&&(a16==9)))&&!(a14==1))||!(a13==1)))&&((a3==1)&&(!(a4==1)&&((((a19==1)&&(((a5==5)||(a5==6))&&(input==6)))&&(a3==1))&&!(a20==1)))))){ + a9 = 9; + a16 = 8; + a5 = 5; + a8 = 1; + a21 = 11; + a19 = 2; + a1 = 12; + a15 = 1; + a13 = 0; + return -1; + } else if(((!(a18==1)&&(((((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&(a16==10))&&(a3==1))&&(a17==2)))&&(((((((a19==3)&&((a21==11)&&(!(a23==1)||((a9==11)&&(a23==1)))))&&(a28==1))||(a24==1))&&(a1==13))&&(a20==1))&&(a28==1)))){ + a18 = 0; + a27 = 0; + a9 = 9; + a16 = 7; + a5 = 4; + a21 = 10; + a19 = 2; + a3 = 1; + return 25; + } else if((((a20==1)&&(((a1==14)&&(((a0==1)||((a7==1)||(!(a3==1)||((a24==1)||(a13==1)))))&&(a12==1)))&&(a21==11)))&&((a17==2)&&(((!(a27==1)&&(((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&(a19==4)))&&(a9==8))&&(a16==9))))){ + a16 = 7; + a1 = 12; + a21 = 10; + a9 = 7; + a28 = 1; + a27 = 0; + a19 = 1; + a5 = 4; + a8 = 0; + return -1; + } else if((((a2==1)&&(((a21==11)&&((a17==2)&&(((a3==1)&&((a1==12)&&(input==1)))&&!(a20==1))))&&(a28==1)))&&((((a16==10)&&((a28==1)&&((((a19==4)&&(a6==1))&&(a9==8))||!(a11==1))))&&(a5==5))||!(a2==1)))){ + a15 = 1; + a25 = 0; + a20 = 1; + a16 = 7; + a21 = 10; + a5 = 6; + a2 = 0; + a19 = 1; + return -1; + } else if((((a19==5)&&(((a21==12)&&(((((a23==1)&&(a13==1))&&(a16==10))&&!(a7==1))&&(a6==1)))&&!(a20==1)))&&((a5==6)&&((a1==13)&&(((a2==1)&&(!(a0==1)&&((a2==1)&&((input==3)&&(a17==2)))))&&(a9==10)))))){ + if((a12==1)){ + a16 = 9; + a20 = 1; + a1 = 12; + a6 = 0; + a12 = 0; + a9 = 8; + a21 = 10; + a28 = 0; + a19 = 3; + }else{ + a0 = 1; + a9 = 7; + a7 = 1; + a5 = 5; + a29 = 0; + a16 = 9; + a19 = 1; + a21 = 11; + } + return -1; + } else if(((((a28==1)&&((a21==11)&&(((a16==7)&&(a2==1))&&(a19==3))))||(a27==1))&&(!(a4==1)&&((a23==1)&&((a23==1)&&(((((input==4)&&(((((a5==5)&&(a1==12))&&(a9==11))||(((a1==12)&&(a5==6))&&(a9==11)))||((a9==7)&&((a1==13)&&(a5==4)))))&&(a20==1))&&(a11==1))&&(a17==2))))))){ + a1 = 14; + a16 = 8; + a5 = 5; + a13 = 1; + a21 = 10; + a26 = 0; + a9 = 7; + a0 = 0; + a19 = 5; + return 23; + } else if(((((a11==1)&&(!(a27==1)&&((a19==1)&&(((a17==2)&&(!(a20==1)&&((a1==12)&&(((a5==4)||(a5==5))&&(input==3)))))&&!(a8==1)))))&&(a9==11))&&((((a12==1)&&(((a23==1)||(a7==1))&&(a16==7)))&&!(a24==1))&&(a21==10)))){ + a14 = 0; + a0 = 0; + a9 = 7; + a18 = 0; + a20 = 1; + a5 = 4; + return -1; + } else if((((a1==13)&&(((input==3)&&(((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))))&&(a19==4)))&&(!(a23==1)||((a13==1)&&((a21==11)&&((((a17==2)&&(!(a27==1)&&((((a12==1)||!(a12==1))||(a26==1))||!(a28==1))))&&(a16==10))&&!(a20==1))))))){ + a22 = 0; + a5 = 5; + a1 = 14; + a16 = 9; + a21 = 12; + a9 = 9; + a4 = 1; + return 26; + } else if(((((((a13==1)&&!(a8==1))&&(a17==2))&&(a13==1))&&!(a7==1))&&((a20==1)&&((a16==9)&&((!(a18==1)&&(!(a27==1)&&(((((input==5)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5))))&&(a1==13))&&(a19==2))&&!(a4==1))))&&(a21==10)))))){ + a19 = 1; + a1 = 12; + a0 = 0; + a4 = 0; + a16 = 7; + a5 = 4; + a8 = 0; + a9 = 7; + return -1; + } else if(((!(a23==1)||(((a14==1)||(((a19==5)&&(((a16==10)&&(((a23==1)&&!(a20==1))||!(a11==1)))&&(a17==2)))&&(a1==13)))&&(a11==1)))&&((a12==1)&&(((((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))&&(input==6))&&(a21==10))&&!(a0==1))))){ + a19 = 1; + a16 = 7; + a25 = 0; + a6 = 0; + a9 = 9; + a5 = 6; + a15 = 0; + a20 = 1; + return -1; + } else if(((!(a20==1)&&((a21==10)&&(!(a0==1)&&((a9==10)&&(((a1==12)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))&&(a23==1))))))&&((((a3==1)&&(((a17==2)&&(((a26==1)||(a28==1))||(a14==1)))&&(a16==11)))&&(a19==3))&&(a11==1)))){ + a7 = 1; + a16 = 10; + a4 = 1; + a10 = 1; + a9 = 7; + a5 = 4; + return -1; + } else if(((!(a18==1)&&(((a21==12)&&(!(a20==1)&&((a16==8)&&((((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))&&(input==5))&&(a6==1)))))&&!(a27==1)))&&(!(a18==1)&&((a18==1)||(!(a23==1)||((a1==13)&&((a19==2)&&((a3==1)&&(a17==2))))))))){ + a16 = 9; + a8 = 1; + a5 = 6; + a9 = 7; + a0 = 1; + a1 = 12; + a20 = 1; + a21 = 10; + a26 = 1; + a19 = 1; + return -1; + } else if(((!(a13==1)||((a1==13)&&((a19==4)&&((a24==1)||((((a11==1)&&(a17==2))&&(a16==11))&&(a11==1))))))&&(!(a27==1)&&((a20==1)&&((a28==1)&&((a9==10)&&((a21==12)&&((((a5==5)||(a5==6))&&(input==3))&&(a3==1))))))))){ + a5 = 4; + a9 = 7; + a11 = 1; + a1 = 12; + a0 = 0; + a18 = 0; + a19 = 1; + a21 = 10; + a16 = 7; + return -1; + } else if(((((a19==5)&&(((!(a20==1)&&(((a1==14)&&((input==3)&&((a5==4)||(a5==5))))&&(a11==1)))&&!(a24==1))&&(a11==1)))&&(a23==1))&&((a9==10)&&(((a21==12)&&(((a17==2)&&((a11==1)||(a4==1)))&&(a16==7)))&&!(a14==1))))){ + a28 = 1; + a11 = 1; + a21 = 10; + a9 = 7; + a5 = 4; + a20 = 1; + a19 = 1; + a1 = 12; + a0 = 0; + return -1; + } else if((((a9==9)&&((a17==2)&&((a16==9)&&((!(a7==1)&&((!(a20==1)&&(!(a24==1)&&((((a5==4)||(a5==5))&&(input==5))&&(a6==1))))&&(a1==14)))&&!(a14==1)))))&&(((!(a12==1)||((a23==1)&&(a21==10)))&&(a19==5))||!(a6==1)))){ + a5 = 4; + a21 = 12; + a1 = 12; + a19 = 1; + a22 = 1; + a13 = 0; + a27 = 1; + return -1; + } else if(((((a17==2)&&(((a6==1)&&(((((!(a3==1)||((a6==1)||(a0==1)))&&(a21==12))&&(a9==8))&&(a1==14))&&(a16==7)))&&(a19==3)))||(a26==1))&&(!(a20==1)&&((!(a14==1)&&(((a5==5)||(a5==6))&&(input==4)))&&(a3==1))))){ + a24 = 0; + a18 = 0; + a1 = 12; + a21 = 10; + a14 = 0; + a5 = 4; + a9 = 7; + a20 = 1; + a19 = 1; + return -1; + } else if((((a6==1)&&((a9==8)&&(!(a7==1)&&(!(a13==1)||(((a23==1)&&(a17==2))&&(a5==5))))))&&(!(a8==1)&&((!(a0==1)&&(((!(a27==1)&&((a20==1)&&((a1==14)&&(input==6))))&&(a16==7))&&(a21==12)))&&(a19==1))))){ + a5 = 6; + a11 = 1; + a21 = 10; + a16 = 9; + a26 = 0; + a9 = 7; + return 22; + } else if(((((a1==13)&&((a12==1)&&(((((a5==5)||(a5==6))&&(input==5))&&(a17==2))&&(a20==1))))&&!(a18==1))&&(((a21==11)&&((!(a14==1)&&((a27==1)||((a9==9)&&((a19==4)&&(!(a23==1)||(a2==1))))))&&(a16==8)))||!(a23==1)))){ + a5 = 6; + a0 = 0; + a16 = 10; + a19 = 2; + a9 = 8; + a7 = 0; + a4 = 0; + return 26; + } else if((((a7==1)||(((!(a6==1)||((a11==1)&&(a12==1)))&&(a5==6))&&(a17==2)))&&((!(a26==1)&&((a21==11)&&((a16==11)&&(((a28==1)&&((((a1==13)&&(input==4))&&(a19==2))&&(a9==10)))&&(a20==1)))))&&!(a0==1)))){ + a19 = 1; + a5 = 4; + a11 = 1; + a1 = 12; + a9 = 7; + a16 = 7; + a2 = 1; + a21 = 10; + return -1; + } else if(((((a1==12)&&((a27==1)&&((a21==12)&&((((a23==1)&&!(a13==1))&&(a16==9))&&(a4==1)))))&&!(a11==1))&&(!(a11==1)&&(((a20==1)&&((((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==5))&&(a26==1))&&(a19==2)))&&(a17==2))))){ + a16 = 7; + a21 = 10; + a22 = 1; + a2 = 0; + a23 = 0; + a9 = 11; + a5 = 4; + return -1; + } else if(((!(a14==1)&&((a17==2)&&(!(a24==1)&&(!(a6==1)||((a19==3)&&(a13==1))))))&&(!(a18==1)&&((a16==10)&&((a21==10)&&((((((input==1)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(a3==1))&&(a11==1))&&(a1==13))&&(a20==1))))))){ + a5 = 4; + a19 = 1; + a1 = 12; + a13 = 1; + a16 = 7; + a9 = 7; + a26 = 0; + return -1; + } else if((((((a9==7)&&(!(a4==1)&&(!(a24==1)&&(((a3==1)||(a0==1))||(a26==1)))))&&(a1==14))&&(a19==4))&&((a17==2)&&((a21==10)&&((((a3==1)&&(((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&!(a0==1)))&&(a20==1))&&(a16==11)))))){ + a19 = 1; + a1 = 12; + a5 = 4; + a16 = 7; + a27 = 0; + a11 = 1; + a2 = 1; + return -1; + } else if((((a21==11)&&(((a17==2)&&((((a2==1)&&(((input==5)&&(a9==9))&&!(a27==1)))&&(a13==1))&&!(a4==1)))&&!(a20==1)))&&((a5==5)&&((a16==8)&&((a1==14)&&(!(a4==1)&&(((a19==3)&&(a6==1))&&(a3==1)))))))){ + a16 = 10; + a21 = 10; + a1 = 13; + a18 = 0; + a5 = 6; + a28 = 1; + a26 = 0; + a20 = 1; + return 21; + } else if((((!(a11==1)||((((a28==1)&&(a2==1))&&(a9==11))&&(a17==2)))&&(a11==1))&&((((a20==1)&&((a16==8)&&(((a11==1)&&((a21==10)&&((a19==5)&&((input==4)&&((a5==4)||(a5==5))))))&&!(a24==1))))&&(a1==14))&&!(a18==1)))){ + a19 = 1; + a8 = 0; + a9 = 7; + a5 = 4; + a16 = 7; + a4 = 0; + a14 = 0; + a1 = 12; + return -1; + } else if((((a1==12)&&(((a21==11)&&(((((((input==6)&&(a16==10))&&(a5==4))&&(a11==1))&&(a11==1))&&!(a24==1))&&(a9==10)))&&(a19==5)))&&(!(a6==1)||(!(a8==1)&&((!(a20==1)&&((a28==1)&&!(a14==1)))&&(a17==2)))))){ + if((a27==1)){ + a15 = 1; + a16 = 7; + a20 = 1; + a18 = 1; + a21 = 10; + a25 = 1; + a1 = 13; + a9 = 9; + a19 = 1; + }else{ + a16 = 7; + a19 = 1; + a5 = 5; + a27 = 1; + a20 = 1; + a24 = 1; + a21 = 10; + a1 = 13; + a15 = 1; + } + return 21; + } else if(((((((a21==11)&&(((a17==2)&&((((a19==1)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))&&!(a20==1))&&(a1==13)))&&(a11==1)))&&(a13==1))&&(a13==1))&&!(a7==1))&&(((((a13==1)&&!(a27==1))||(a26==1))&&(a9==11))&&(a16==9)))){ + a5 = 6; + a21 = 10; + a27 = 1; + a20 = 1; + a16 = 7; + a12 = 0; + a1 = 14; + a13 = 0; + return 22; + } else if((((a28==1)&&(((((a17==2)&&((a28==1)&&((a20==1)&&(((input==6)&&(a5==4))&&(a9==9)))))&&(a21==12))&&(a19==5))&&(a12==1)))&&(((a4==1)||((a7==1)||((a16==9)&&((a1==14)&&(a13==1)))))||!(a13==1)))){ + a23 = 1; + a19 = 1; + a27 = 0; + a9 = 7; + a16 = 7; + a21 = 10; + a1 = 12; + a12 = 1; + return -1; + } else if(((((a6==1)&&(((!(a7==1)&&((a5==5)&&((input==1)&&(a1==12))))&&!(a4==1))&&(a2==1)))&&(a9==9))&&(((a20==1)&&((a17==2)&&(!(a8==1)&&((!(a23==1)||((a11==1)&&(a19==1)))&&(a21==11)))))&&(a16==11)))){ + a9 = 8; + a1 = 13; + a7 = 0; + a28 = 1; + a13 = 1; + a19 = 5; + return 23; + } else if(((!(a7==1)&&((!(a20==1)&&((((((input==4)&&(a19==1))&&(a1==13))&&(a21==10))&&(a9==11))&&!(a14==1)))&&!(a0==1)))&&((((!(a23==1)||((a23==1)&&((a28==1)&&!(a4==1))))&&(a5==5))&&(a16==11))&&(a17==2)))){ + if((a23==1)){ + a9 = 8; + a1 = 12; + a18 = 1; + a28 = 0; + a20 = 1; + a16 = 7; + a4 = 1; + a5 = 6; + a19 = 2; + }else{ + a16 = 7; + a20 = 1; + a9 = 9; + a13 = 0; + a25 = 1; + a29 = 1; + a5 = 6; + a19 = 3; + } + return 26; + } else if((((((a20==1)&&((((a6==1)&&(a17==2))||!(a12==1))&&!(a14==1)))&&(a9==11))&&(a2==1))&&(((a1==14)&&(!(a24==1)&&(((((a19==2)&&((input==5)&&((a5==5)||(a5==6))))&&!(a4==1))&&(a16==10))&&(a21==10))))&&(a3==1)))){ + if((a18==1)){ + a9 = 10; + a3 = 1; + a21 = 11; + a5 = 4; + a1 = 12; + a19 = 5; + a16 = 8; + a27 = 0; + a20 = 0; + a26 = 0; + }else{ + a19 = 1; + a2 = 1; + a1 = 13; + a3 = 1; + a6 = 1; + a5 = 5; + } + return 21; + } else if((((a21==10)&&((((a19==4)&&((((((a9==10)&&(!(a23==1)||(a3==1)))&&(a23==1))&&(a1==13))&&(a28==1))||!(a6==1)))&&(a16==8))&&(a17==2)))&&((!(a18==1)&&(!(a18==1)&&((input==3)&&((a5==4)||(a5==5)))))&&!(a20==1)))){ + a5 = 4; + a1 = 12; + a9 = 7; + a7 = 0; + a19 = 1; + a12 = 1; + a20 = 1; + a8 = 0; + a16 = 7; + return -1; + } else if((((!(a24==1)&&((((a16==9)&&((input==4)&&((((a19==2)&&(((a5==5)&&(a1==14))&&(a9==11)))||((((a5==6)&&(a1==14))&&(a9==11))&&(a19==2)))||((((a5==4)&&(a1==12))&&(a9==7))&&(a19==3)))))&&(a20==1))&&(a17==2)))&&!(a26==1))&&((a28==1)&&(!(a4==1)&&(((a28==1)&&((a21==12)&&(a2==1)))&&!(a8==1)))))){ + a21 = 11; + a19 = 1; + a1 = 14; + a16 = 7; + a5 = 6; + a9 = 8; + a0 = 0; + a2 = 1; + return -1; + } else if((((!(a0==1)&&(((a6==1)&&(a1==12))&&!(a26==1)))&&!(a20==1))&&(!(a0==1)&&(!(a14==1)&&(((a9==7)&&((a19==3)&&((a28==1)&&((a16==9)&&((a21==12)&&(((input==3)&&(a5==6))&&(a17==2)))))))&&!(a14==1)))))){ + a5 = 4; + a21 = 10; + a12 = 0; + a16 = 7; + a19 = 1; + a27 = 1; + a8 = 1; + a20 = 1; + return -1; + } else if(((!(a20==1)&&((a19==1)&&((((a17==2)&&(!(a8==1)&&((input==3)&&(a9==7))))&&(a21==12))&&(a28==1))))&&(((a3==1)&&((((a16==8)&&((a1==14)&&((a28==1)||!(a23==1))))&&(a5==5))&&!(a4==1)))||(a27==1)))){ + if((a4==1)){ + a20 = 1; + a21 = 10; + a9 = 8; + a15 = 1; + a16 = 7; + a19 = 2; + a1 = 12; + }else{ + a1 = 12; + a15 = 0; + a20 = 1; + a24 = 1; + a21 = 10; + a16 = 7; + a19 = 2; + a9 = 10; + a3 = 0; + } + return -1; + } else if(((!(a23==1)||(((a17==2)&&((a9==10)&&((((((a23==1)&&(a16==10))&&!(a20==1))&&(a21==12))||!(a2==1))&&(a19==1))))&&(a28==1)))&&(((a3==1)&&((a6==1)&&((a6==1)&&(((a5==5)||(a5==6))&&(input==1)))))&&(a1==12)))){ + if((a24==1)){ + a20 = 1; + a5 = 4; + a21 = 10; + a16 = 7; + a26 = 1; + a8 = 1; + a1 = 14; + a9 = 11; + a10 = 1; + }else{ + a22 = 0; + a26 = 1; + a6 = 0; + a21 = 10; + a16 = 9; + a19 = 5; + a5 = 6; + } + return -1; + } else if((((!(a28==1)||((a1==12)&&(((a23==1)&&(a6==1))&&(a21==11))))&&(a20==1))&&((a17==2)&&(!(a18==1)&&((((a12==1)&&(!(a7==1)&&((((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4)))&&(input==4))&&(a16==11))))&&(a19==1))&&(a13==1)))))){ + a16 = 7; + a9 = 7; + a21 = 10; + a14 = 0; + a11 = 1; + a5 = 4; + a3 = 1; + return -1; + } else if(((((!(a20==1)&&(((a6==1)&&(((a12==1)&&(((((a16==9)&&(input==4))&&(a1==13))&&(a21==10))&&(a19==2)))&&(a23==1)))&&(a3==1)))&&(a28==1))&&(a5==6))&&((((a13==1)||(a24==1))&&(a9==10))&&(a17==2)))){ + a9 = 7; + a26 = 1; + a1 = 12; + a5 = 5; + a19 = 1; + a18 = 1; + a11 = 0; + a20 = 1; + a16 = 7; + return -1; + } else if((((a20==1)&&(((a21==12)&&((a11==1)&&(((a17==2)&&((a9==8)&&((input==1)&&(a5==5))))&&(a28==1))))&&(a19==5)))&&(!(a7==1)&&((((((a1==14)&&(a2==1))&&(a16==7))&&(a11==1))&&(a6==1))&&!(a14==1))))){ + a1 = 12; + a19 = 1; + a6 = 1; + a2 = 1; + a0 = 0; + a16 = 9; + a9 = 11; + a5 = 4; + return 25; + } else if(((!(a11==1)||((a20==1)&&(!(a6==1)||(!(a13==1)||(!(a3==1)||(a11==1))))))&&((((a16==9)&&((((input==1)&&((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==1))||((a19==2)&&(((a1==12)&&(a5==4))&&(a9==7)))))&&(a17==2))&&(a21==10)))&&(a23==1))&&(a11==1)))){ + a28 = 1; + a5 = 4; + a8 = 0; + a6 = 1; + a16 = 7; + a1 = 12; + a9 = 7; + a19 = 1; + return -1; + } else if(((!(a18==1)&&((((((a21==11)&&((input==5)&&(a19==2)))&&!(a26==1))&&(a9==8))&&(a1==13))&&!(a18==1)))&&((a28==1)&&((a11==1)&&((a7==1)||((a20==1)&&(((a16==9)&&((a17==2)&&(a11==1)))&&(a5==4)))))))){ + a1 = 12; + a9 = 7; + a16 = 7; + a19 = 1; + a21 = 10; + a26 = 0; + a11 = 1; + a4 = 0; + return -1; + } else if(((((a2==1)&&((((a1==12)&&((((a5==4)||(a5==5))&&(input==5))&&!(a8==1)))&&(a17==2))&&(a16==11)))&&!(a26==1))&&((a11==1)&&(!(a23==1)||((((((a2==1)&&(a20==1))&&(a19==1))&&(a21==12))&&(a9==9))||!(a6==1)))))){ + a19 = 5; + a5 = 5; + a9 = 11; + a2 = 1; + a1 = 14; + a21 = 11; + a12 = 1; + a16 = 9; + a3 = 1; + return 21; + } else if((((a17==2)&&(((a20==1)&&(!(a24==1)&&(!(a12==1)||(a12==1))))&&(a1==14)))&&(((a19==3)&&((a9==8)&&((!(a8==1)&&((a2==1)&&((!(a8==1)&&((input==4)&&((a5==6)||((a5==4)||(a5==5)))))&&(a16==10))))&&!(a24==1))))&&(a21==12)))){ + a16 = 7; + a14 = 0; + a18 = 0; + a9 = 7; + a5 = 4; + a21 = 10; + a19 = 1; + a1 = 12; + return -1; + } else if((((((!(a4==1)&&((a17==2)&&(((((((a5==6)&&(a1==12))&&(a9==11))||(((a5==4)&&(a1==13))&&(a9==7)))||((a9==7)&&((a5==5)&&(a1==13))))&&(input==4))&&!(a24==1))))&&(a21==10))&&(a11==1))&&!(a20==1))&&(!(a28==1)||((a19==4)&&((a16==10)&&(!(a18==1)&&((a13==1)||!(a3==1)))))))){ + a22 = 0; + a1 = 12; + a19 = 3; + a20 = 1; + a9 = 11; + a8 = 1; + a5 = 4; + a21 = 11; + a11 = 0; + return -1; + } else if((((((a28==1)&&((a18==1)||((a27==1)||((a6==1)&&(a17==2)))))&&(a1==14))&&(a21==12))&&((((a6==1)&&((a9==10)&&(((a16==9)&&((a3==1)&&((input==3)&&((a5==5)||(a5==6)))))&&!(a8==1))))&&(a19==4))&&!(a20==1)))){ + a20 = 1; + a9 = 7; + a8 = 1; + a19 = 1; + a16 = 10; + a18 = 1; + a21 = 11; + a1 = 12; + a5 = 5; + a25 = 0; + return -1; + } else if(((!(a20==1)&&(((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==4))&&!(a26==1)))&&((a1==13)&&((((!(a8==1)&&((a28==1)&&((((a18==1)||(!(a14==1)&&(a11==1)))&&(a28==1))&&(a21==10))))&&(a17==2))&&(a19==5))&&(a16==8))))){ + a9 = 7; + a23 = 1; + a5 = 4; + a20 = 1; + a16 = 7; + a19 = 1; + a1 = 12; + a4 = 0; + return -1; + } else if(((((a11==1)&&(((a11==1)&&((a17==2)&&((a16==11)&&((((a20==1)&&(a11==1))||(a8==1))&&(a9==10)))))||!(a3==1)))||(a7==1))&&(((a19==3)&&((a1==12)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a21==12))))&&(a2==1)))){ + a14 = 0; + a28 = 1; + a5 = 4; + a21 = 10; + a19 = 1; + a9 = 7; + a16 = 7; + return -1; + } else if((((a6==1)&&((a1==12)&&(((a23==1)&&((a16==9)&&((input==5)&&((a5==5)||(a5==6)))))&&(a9==7))))&&(((a27==1)||((a27==1)||((a17==2)&&((((a21==11)&&(!(a18==1)&&(a6==1)))&&(a19==4))&&(a20==1)))))&&(a28==1)))){ + a0 = 0; + a11 = 1; + a21 = 10; + a5 = 4; + a16 = 7; + a23 = 1; + a1 = 13; + a9 = 10; + a19 = 2; + return 21; + } else if(((((a28==1)&&((a21==10)&&(!(a26==1)&&((a19==5)&&(((((a5==4)||(a5==5))&&(input==5))&&(a16==9))&&(a20==1))))))&&(a13==1))&&(((((a17==2)&&((a1==14)&&((a9==7)&&(a23==1))))||!(a3==1))&&!(a26==1))||(a7==1)))){ + a16 = 8; + a26 = 0; + a20 = 0; + a9 = 8; + a5 = 6; + a6 = 1; + a19 = 2; + a7 = 0; + return 25; + } else if(((((((((a11==1)&&(!(a4==1)&&((a19==4)&&((((input==5)&&((a5==5)||(a5==6)))&&(a13==1))&&!(a26==1)))))&&(a21==12))&&!(a4==1))&&(a9==7))&&(a16==10))&&!(a14==1))&&((a17==2)&&((a1==14)&&((a11==1)&&!(a20==1)))))){ + a19 = 1; + a5 = 4; + a20 = 1; + a22 = 0; + a29 = 0; + a9 = 11; + a16 = 7; + a21 = 10; + return -1; + } else if((((((!(a27==1)&&((a3==1)&&(((a9==9)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a28==1)))&&(a1==12))))&&(a17==2))&&(a3==1))&&(a16==8))&&(((a19==5)&&((a20==1)&&(!(a27==1)&&(!(a6==1)||(a6==1)))))&&(a21==11)))){ + a7 = 0; + a16 = 10; + a11 = 1; + a9 = 11; + a19 = 3; + a5 = 4; + a2 = 1; + return 26; + } else if((((a5==4)&&(((a9==7)&&((((a11==1)&&((a2==1)&&(a16==9)))||!(a28==1))&&(a6==1)))||!(a11==1)))&&((!(a0==1)&&(!(a24==1)&&((a21==12)&&((a19==3)&&((a1==13)&&((input==1)&&(a17==2)))))))&&(a20==1)))){ + a21 = 10; + a28 = 1; + a2 = 1; + a16 = 7; + a19 = 1; + a1 = 12; + a26 = 0; + return -1; + } else if((((a9==7)&&((a23==1)&&((((((a28==1)&&(((input==5)&&((a5==4)||(a5==5)))&&!(a27==1)))&&(a20==1))&&(a28==1))&&!(a0==1))&&(a16==9))))&&((a17==2)&&((a1==14)&&((a19==1)&&(!(a18==1)&&((a12==1)&&(a21==10)))))))){ + a9 = 10; + a14 = 0; + a5 = 6; + a8 = 0; + a13 = 1; + a1 = 13; + return -1; + } else if(((((a20==1)&&(((a21==11)&&((((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==3))&&(a3==1))&&(a1==13)))&&(a19==1)))&&(a17==2))&&((((a16==9)&&(!(a2==1)||(((a13==1)||(a18==1))||!(a6==1))))&&(a12==1))||!(a13==1)))){ + a9 = 7; + a18 = 0; + a5 = 4; + a26 = 0; + a21 = 10; + a16 = 7; + a1 = 12; + a8 = 0; + return -1; + } else if(((((a19==5)&&((a17==2)&&((a8==1)||((!(a23==1)||((a20==1)&&(a6==1)))&&(a21==11)))))&&!(a7==1))&&(((a5==5)&&(!(a26==1)&&(((!(a26==1)&&((input==5)&&(a9==11)))&&(a16==8))&&(a1==12))))&&!(a4==1)))){ + a5 = 4; + a9 = 8; + a23 = 1; + a16 = 10; + a1 = 13; + a19 = 3; + a6 = 1; + return 23; + } else if(((((((a21==11)&&((((a5==5)||(a5==6))&&(input==1))&&(a3==1)))&&!(a8==1))&&!(a7==1))&&(a19==1))&&(!(a20==1)&&((((!(a28==1)||(((a16==8)&&(!(a3==1)||(a28==1)))&&!(a8==1)))&&(a1==13))&&(a9==9))&&(a17==2))))){ + a9 = 7; + a23 = 1; + a16 = 9; + a26 = 0; + a5 = 6; + a20 = 1; + a19 = 2; + return 21; + } else if(((((a16==8)&&(((((a0==1)&&(((a1==12)&&((input==1)&&(a20==1)))&&(a18==1)))&&!(a11==1))&&(a21==10))&&(a19==5)))&&(a5==4))&&(((a9==9)&&((((a4==1)&&(a28==1))&&(a0==1))&&(a8==1)))&&(a17==2)))){ + a10 = 1; + a19 = 1; + a1 = 14; + a6 = 0; + a5 = 5; + a16 = 7; + a12 = 0; + return 21; + } else if(((((((((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9))))&&(input==3))&&(a3==1))&&(a11==1))&&(a16==8))&&(((a26==1)||((a2==1)&&(((a20==1)&&((a19==5)&&((((a6==1)&&(a17==2))&&!(a24==1))||(a0==1))))&&(a21==12))))&&(a1==12)))){ + a18 = 0; + a9 = 7; + a19 = 1; + a21 = 10; + a23 = 1; + a5 = 4; + a16 = 7; + a6 = 1; + return -1; + } else if(((!(a27==1)&&((!(a7==1)&&(((((a17==2)&&((a11==1)&&(a20==1)))&&(a21==12))||(a7==1))||(a24==1)))&&(a28==1)))&&((((input==3)&&(((a19==2)&&((a9==7)&&((a5==5)&&(a1==12))))||((((a9==11)&&((a1==14)&&(a5==6)))&&(a19==1))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==2)))))&&(a16==8))&&(a11==1)))){ + a16 = 7; + a19 = 1; + a9 = 7; + a5 = 4; + a1 = 12; + a14 = 0; + a11 = 1; + a21 = 10; + a3 = 1; + return -1; + } else if(((((a17==2)&&(!(a20==1)&&(!(a0==1)&&(a13==1))))&&(a16==9))&&((!(a26==1)&&((((((input==5)&&((((a19==4)&&((a9==11)&&((a1==14)&&(a5==6))))||((((a5==4)&&(a1==12))&&(a9==7))&&(a19==5)))||(((a9==7)&&((a1==12)&&(a5==5)))&&(a19==5))))&&(a13==1))&&(a21==12))&&!(a14==1))&&(a28==1)))&&!(a18==1)))){ + if((a11==1)){ + a21 = 11; + a23 = 0; + a20 = 1; + a16 = 11; + a19 = 5; + a5 = 4; + a25 = 1; + a9 = 10; + a1 = 13; + a26 = 1; + }else{ + a2 = 0; + a19 = 5; + a26 = 1; + a14 = 1; + a5 = 5; + a16 = 7; + a1 = 12; + a9 = 11; + } + return -1; + } else if(((((a7==1)||((a16==8)&&((a26==1)||((a1==13)&&((a12==1)&&(a11==1))))))&&!(a20==1))&&((a17==2)&&((a19==2)&&((a9==7)&&((a11==1)&&((a21==12)&&(!(a4==1)&&((a3==1)&&((input==5)&&((a5==4)||(a5==5)))))))))))){ + a16 = 9; + a18 = 1; + a4 = 1; + a21 = 10; + a10 = 0; + a1 = 14; + a9 = 8; + a19 = 5; + a5 = 5; + return 25; + } else if((((a6==1)&&((((a12==1)||(a24==1))&&(a17==2))&&!(a26==1)))&&((a23==1)&&((a19==5)&&(((!(a4==1)&&(((((a16==8)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&(a9==8))&&(a20==1))&&(a1==12)))&&(a21==10))&&(a6==1)))))){ + a12 = 1; + a1 = 14; + a16 = 10; + a11 = 1; + a4 = 0; + a5 = 5; + a19 = 1; + a9 = 10; + return 23; + } else if(((((a17==2)&&((!(a27==1)&&((a19==5)&&(((a21==11)&&(((a9==8)&&(input==6))&&(a5==6)))&&!(a27==1))))&&!(a24==1)))&&(a16==11))&&((((a1==12)&&((a11==1)&&((a13==1)&&(a2==1))))&&(a3==1))&&(a20==1)))){ + a9 = 7; + a21 = 10; + a5 = 4; + a8 = 0; + a19 = 1; + a16 = 7; + a3 = 1; + return -1; + } else if((((a16==8)&&((!(a26==1)&&(!(a8==1)&&(((input==3)&&((((a19==1)&&((a9==7)&&((a5==4)&&(a1==12))))&&(a21==11))||((((a19==5)&&(((a5==5)&&(a1==14))&&(a9==11)))&&(a21==10))||((a21==10)&&(((a9==11)&&((a1==14)&&(a5==6)))&&(a19==5))))))&&!(a18==1))))&&(a28==1)))&&(((((a12==1)||(a27==1))||(a4==1))&&!(a20==1))&&(a17==2)))){ + a13 = 1; + a5 = 4; + a21 = 10; + a1 = 12; + a9 = 7; + a24 = 0; + a27 = 0; + a19 = 1; + a20 = 1; + a16 = 7; + return -1; + } else if((((a19==4)&&(((((a9==11)&&(!(a20==1)&&((((!(a7==1)&&((input==5)&&((a5==5)||(a5==6))))&&(a23==1))&&!(a0==1))&&(a17==2))))&&(a21==10))&&(a16==8))&&(a1==12)))&&((a14==1)||(!(a4==1)&&(!(a11==1)||(a28==1)))))){ + a6 = 1; + a0 = 0; + a5 = 4; + a9 = 7; + a19 = 1; + a16 = 7; + a12 = 1; + a20 = 1; + return -1; + } else if((((a7==1)||((a16==9)&&((!(a0==1)&&((a21==10)&&((a12==1)||!(a3==1))))||(a24==1))))&&(((a1==14)&&(((a20==1)&&(((a17==2)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==6)))&&(a19==3)))&&(a6==1)))&&!(a8==1)))){ + a2 = 1; + a5 = 4; + a19 = 1; + a18 = 0; + a1 = 12; + a16 = 7; + a9 = 7; + a28 = 1; + return -1; + } else if(((((a6==1)&&((a13==1)&&(((a19==3)&&(input==1))&&!(a27==1))))&&(a6==1))&&(((((((((a17==2)&&((a13==1)&&(a20==1)))&&(a21==11))||(a4==1))&&!(a8==1))&&(a16==8))&&(a5==6))&&(a1==13))&&(a9==9)))){ + a16 = 10; + a1 = 12; + a9 = 10; + a5 = 4; + a2 = 1; + a19 = 1; + a4 = 0; + a14 = 0; + return 22; + } else if((((a6==1)&&(((a17==2)&&(!(a8==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3))))&&!(a18==1)))&&(((a20==1)&&((a16==10)&&(((a9==8)&&((a2==1)&&((a1==12)&&((!(a27==1)&&(a11==1))&&(a21==12)))))&&(a11==1))))&&(a19==3)))){ + a9 = 7; + a8 = 0; + a19 = 1; + a14 = 0; + a16 = 7; + a21 = 10; + a6 = 1; + a5 = 4; + return -1; + } else if((((a13==1)&&((((((((a5==5)&&(a1==13))&&(a9==7))||((((a1==12)&&(a5==6))&&(a9==11))||((a9==7)&&((a1==13)&&(a5==4)))))&&(input==5))&&(a21==10))&&!(a20==1))&&!(a4==1)))&&((!(a18==1)&&(((a28==1)&&(!(a6==1)||(((a19==2)&&(a6==1))&&(a16==9))))&&!(a4==1)))&&(a17==2)))){ + a5 = 6; + a20 = 1; + a9 = 10; + a25 = 1; + a12 = 0; + a16 = 7; + a19 = 1; + a1 = 13; + a26 = 1; + return -1; + } else if((((a3==1)&&(((a1==13)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==6)))&&(a17==2)))&&(((a2==1)&&(!(a24==1)&&(((((a13==1)&&((a21==11)&&((a19==4)&&(a11==1))))||(a18==1))&&!(a20==1))||!(a11==1))))&&(a16==8)))){ + a5 = 4; + a21 = 10; + a20 = 1; + a18 = 0; + a16 = 7; + a19 = 2; + a4 = 0; + a9 = 9; + a3 = 1; + return 25; + } else if((((((!(a7==1)&&((a23==1)&&(((a21==11)&&(((!(a14==1)&&((input==6)&&((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4)))))&&!(a24==1))&&!(a8==1)))&&(a16==7))))&&(a19==3))&&(a1==12))&&(a20==1))&&((a17==2)&&((a28==1)||(a7==1))))){ + a9 = 7; + a21 = 10; + a28 = 1; + a6 = 1; + a19 = 1; + a5 = 4; + a4 = 0; + return -1; + } else if((((a21==10)&&((((a5==6)&&(!(a27==1)&&((a11==1)&&(((((a9==7)&&(input==5))&&(a19==5))&&!(a8==1))&&(a17==2)))))&&(a16==11))&&(a23==1)))&&((!(a14==1)&&((a1==14)&&((a11==1)&&!(a8==1))))&&(a20==1)))){ + a19 = 1; + a23 = 1; + a16 = 7; + a6 = 1; + a13 = 1; + a5 = 4; + a1 = 12; + return -1; + } else if((((a21==11)&&((a17==2)&&((!(a13==1)||((a20==1)&&(((a9==8)&&(a13==1))||!(a11==1))))&&(a19==3))))&&((a13==1)&&((((a1==14)&&((a16==9)&&((a28==1)&&(((a5==4)||(a5==5))&&(input==1)))))&&!(a26==1))&&!(a8==1))))){ + a21 = 10; + a1 = 12; + a5 = 4; + a19 = 1; + a12 = 1; + a18 = 0; + a9 = 7; + a16 = 7; + a3 = 1; + return -1; + } else if((((((((a17==2)&&((a5==6)&&((a20==1)&&(input==3))))&&!(a26==1))&&!(a7==1))&&!(a14==1))&&(a19==1))&&(!(a13==1)||((!(a27==1)&&((((a1==14)&&((a3==1)&&(a16==8)))&&(a9==10))||(a26==1)))&&(a21==10))))){ + a1 = 12; + a11 = 1; + a5 = 4; + a4 = 0; + a28 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if((((a19==2)&&((a16==10)&&((a8==1)||((a27==1)||(((!(a3==1)||(a28==1))&&(a17==2))&&(a21==10))))))&&((a1==13)&&(((a20==1)&&(!(a14==1)&&(!(a7==1)&&((input==3)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8)))))))&&(a11==1))))){ + a27 = 0; + a9 = 9; + a7 = 0; + a5 = 4; + a1 = 14; + return 21; + } else if((((a23==1)&&(((!(a27==1)&&((a19==5)&&((a17==2)&&((((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6))))&&(input==4)))))&&(a2==1))&&(a1==14)))&&((a11==1)&&(!(a28==1)||(!(a7==1)&&((a16==11)&&(((a6==1)&&(a20==1))&&(a21==11)))))))){ + a19 = 1; + a21 = 10; + a16 = 7; + a14 = 0; + a1 = 12; + a9 = 7; + a5 = 4; + a18 = 0; + return -1; + } else if((((a16==9)&&(((a1==14)&&((a2==1)&&((((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&(a20==1))&&!(a27==1))))&&(a21==11)))&&((a19==2)&&((a9==9)&&((a8==1)||((!(a23==1)||((!(a2==1)||(a28==1))&&(a17==2)))&&!(a0==1))))))){ + a9 = 10; + a16 = 8; + a5 = 6; + a6 = 1; + a20 = 0; + a3 = 1; + a7 = 0; + a21 = 10; + return 21; + } else if(((((a17==2)&&(((a3==1)&&((a20==1)&&((a19==1)&&((a28==1)&&((((a5==4)||(a5==5))&&(input==1))&&(a28==1))))))&&(a21==12)))&&(a9==9))&&(((((a1==12)&&((a2==1)&&(a16==10)))||!(a12==1))&&!(a0==1))||!(a11==1)))){ + a9 = 10; + a16 = 8; + a8 = 0; + a19 = 5; + a20 = 0; + a21 = 10; + a6 = 1; + a5 = 6; + a0 = 0; + return 21; + } else if(((((((((input==3)&&(a21==11))&&(a20==1))&&(a9==9))&&!(a24==1))&&!(a4==1))&&(a17==2))&&(((((((a19==3)&&(((a2==1)&&(a1==13))&&!(a0==1)))&&!(a4==1))||(a14==1))&&(a16==7))||(a14==1))&&(a5==6)))){ + a28 = 1; + a1 = 12; + a21 = 10; + a5 = 4; + a19 = 1; + a9 = 7; + a6 = 1; + return -1; + } else if((((a20==1)&&((a23==1)&&((a1==13)&&(((a16==7)&&(input==6))&&!(a26==1)))))&&((a19==2)&&(((!(a26==1)&&((a17==2)&&((!(a18==1)&&((a5==6)&&((a23==1)&&(a21==10))))||!(a28==1))))&&(a9==7))||(a26==1))))){ + a0 = 0; + a5 = 4; + a3 = 1; + a1 = 12; + a19 = 1; + a18 = 0; + return -1; + } else if((((((a16==10)&&((a9==9)&&(((a13==1)||!(a6==1))||!(a23==1))))||(a0==1))&&(a17==2))&&(!(a4==1)&&((a11==1)&&((((((((a5==5)||(a5==6))&&(input==6))&&(a1==13))&&(a19==2))&&(a3==1))&&(a20==1))&&(a21==11)))))){ + a9 = 11; + a7 = 0; + a5 = 4; + a16 = 7; + a6 = 1; + a2 = 1; + a19 = 4; + return 23; + } else if(((((((a21==12)&&((!(a26==1)&&((a20==1)&&((input==4)&&(a17==2))))&&!(a14==1)))&&!(a0==1))&&!(a27==1))&&!(a18==1))&&((a9==11)&&((((a1==13)&&((a19==3)&&((a3==1)&&(a11==1))))&&(a16==10))&&(a5==5))))){ + a21 = 10; + a16 = 7; + a5 = 4; + a19 = 1; + a7 = 0; + a9 = 7; + a28 = 1; + a1 = 12; + a23 = 1; + return -1; + } else if((((a1==13)&&((a28==1)&&((((((a13==1)&&!(a27==1))||(a26==1))||!(a13==1))&&!(a20==1))&&!(a27==1))))&&((a16==11)&&((a21==10)&&((((((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a5==4)&&(a9==8)))&&(input==6))&&!(a27==1))&&(a17==2))&&(a19==3)))))){ + a20 = 1; + a16 = 7; + a3 = 0; + a9 = 9; + a27 = 1; + a5 = 4; + a24 = 1; + a19 = 1; + return 25; + } else if((((!(a13==1)&&(((a14==1)&&(!(a3==1)&&(a28==1)))&&(a21==11)))&&(a1==14))&&((((((a16==8)&&((!(a6==1)&&(((input==4)&&(a5==4))&&(a19==5)))&&(a17==2)))&&(a9==7))&&(a0==1))&&!(a23==1))&&(a20==1)))){ + a9 = 9; + a16 = 7; + a18 = 1; + a19 = 1; + a29 = 0; + a21 = 10; + a28 = 0; + return -1; + } else if(((((((a12==1)&&(a16==8))&&(a6==1))&&(a1==13))&&!(a7==1))&&((a17==2)&&((!(a20==1)&&((a21==12)&&((a28==1)&&((!(a18==1)&&((a6==1)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==6))))&&(a23==1)))))&&(a19==2))))){ + if((a28==1)){ + a8 = 1; + a9 = 9; + a2 = 0; + a1 = 14; + a21 = 11; + a19 = 5; + a23 = 0; + a5 = 4; + }else{ + a1 = 14; + a20 = 1; + a5 = 5; + a19 = 3; + a8 = 1; + a9 = 8; + a21 = 10; + a22 = 1; + a15 = 0; + a16 = 10; + } + return -1; + } else if((((a12==1)&&((!(a4==1)&&((((a28==1)&&(((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==3))&&(a19==1)))&&(a17==2))&&!(a18==1)))&&!(a18==1)))&&(((a16==10)&&(((!(a6==1)||(a11==1))&&(a20==1))&&(a1==14)))&&(a21==11)))){ + a24 = 0; + a16 = 7; + a2 = 1; + a23 = 1; + a1 = 12; + a21 = 10; + a9 = 7; + a5 = 4; + return -1; + } else if(((((!(a20==1)&&((a19==2)&&((a6==1)&&(!(a27==1)&&(((input==1)&&(a21==12))&&(a28==1))))))&&!(a0==1))&&(a5==4))&&(((a16==9)&&((!(a8==1)&&((a9==9)&&((a23==1)&&(a28==1))))&&(a17==2)))&&(a1==13)))){ + if((a27==1)){ + a13 = 0; + a16 = 8; + a19 = 4; + a9 = 7; + a6 = 0; + a29 = 0; + }else{ + a16 = 10; + a5 = 5; + a19 = 4; + a1 = 14; + a15 = 1; + a21 = 10; + a9 = 8; + a10 = 0; + a20 = 1; + } + return -1; + } else if((((a6==1)&&((((a13==1)&&((a1==14)&&(((((a19==5)&&(input==6))&&(a5==5))&&(a23==1))&&(a6==1))))&&(a17==2))&&(a20==1)))&&((a9==9)&&((a14==1)||(((a16==10)&&((a21==11)&&(a11==1)))||(a27==1)))))){ + a14 = 0; + a23 = 1; + a1 = 13; + a16 = 7; + a19 = 2; + a21 = 10; + a0 = 0; + return 25; + } else if(((((((a27==1)&&(((a17==2)&&(a11==1))&&(a7==1)))&&(a0==1))&&!(a12==1))&&(a5==4))&&(((((((a1==14)&&(((a9==9)&&(input==1))&&(a16==10)))&&(a19==3))&&(a20==1))&&(a4==1))&&(a21==12))&&(a4==1)))){ + a2 = 0; + a21 = 10; + a19 = 2; + a24 = 1; + a9 = 7; + a16 = 7; + a1 = 12; + a5 = 5; + a7 = 1; + return 25; + } else if((((!(a0==1)&&(!(a8==1)&&((a21==10)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==6)))))&&!(a18==1))&&((((((!(a23==1)||(((a23==1)&&(a16==11))&&(a20==1)))&&(a1==14))&&(a19==3))&&(a17==2))&&(a6==1))||!(a11==1)))){ + a5 = 4; + a18 = 0; + a19 = 1; + a3 = 1; + a16 = 7; + a9 = 7; + a1 = 12; + a13 = 1; + return -1; + } else if((((((a1==13)&&(!(a0==1)&&((a19==1)&&(((input==5)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(a17==2)))))&&(a6==1))&&!(a4==1))&&(((((a20==1)&&(((a13==1)&&!(a14==1))&&(a16==11)))&&(a21==10))&&(a3==1))&&!(a0==1)))){ + a18 = 0; + a21 = 11; + a9 = 10; + a6 = 1; + a5 = 6; + a7 = 0; + a1 = 14; + return 23; + } else if(((((!(a23==1)||((((a19==4)&&(!(a18==1)&&((!(a4==1)&&(a6==1))&&(a21==11))))&&(a16==7))&&(a20==1)))||(a7==1))||(a8==1))&&(((((input==1)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(a17==2))&&(a1==13))&&!(a7==1)))){ + a19 = 1; + a13 = 1; + a1 = 12; + a2 = 1; + a21 = 10; + a14 = 0; + a5 = 4; + a9 = 7; + return -1; + } else if((((!(a24==1)&&((((input==3)&&((a5==5)||(a5==6)))&&(a1==12))&&(a9==8)))&&(a16==9))&&((!(a20==1)&&((a28==1)&&(!(a26==1)&&((a17==2)&&(!(a26==1)&&(((a4==1)||((a13==1)&&(a19==3)))||!(a6==1)))))))&&(a21==11)))){ + if((a19==3)){ + a20 = 1; + a19 = 1; + a28 = 0; + a21 = 10; + a9 = 7; + a16 = 7; + a5 = 6; + a12 = 0; + a15 = 1; + a1 = 14; + }else{ + a26 = 1; + a19 = 1; + a11 = 0; + a14 = 1; + a1 = 14; + a20 = 1; + a16 = 7; + a9 = 7; + a5 = 5; + a21 = 10; + } + return 21; + } else if((((((a2==1)&&((!(a20==1)&&((a1==13)&&(!(a26==1)&&((a28==1)&&((a9==11)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))))))&&(a16==9)))&&(a17==2))&&(a19==2))&&(!(a28==1)||((a21==10)&&(!(a24==1)&&((a23==1)||!(a13==1))))))){ + a5 = 4; + a10 = 0; + a25 = 1; + a1 = 12; + a9 = 9; + a20 = 1; + a15 = 1; + a19 = 5; + return -1; + } else if((((a2==1)&&(!(a7==1)&&((a6==1)&&((a6==1)&&((!(a20==1)&&(((input==1)&&((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9))))&&(a1==13)))&&(a19==1))))))&&((a2==1)&&(((a16==9)&&(((a21==10)&&(a28==1))&&(a17==2)))&&!(a7==1))))){ + if((a26==1)){ + a1 = 14; + a25 = 0; + a9 = 9; + a2 = 0; + a5 = 4; + a23 = 0; + a21 = 11; + a16 = 11; + a20 = 1; + }else{ + a14 = 1; + a25 = 1; + a28 = 0; + a5 = 5; + a9 = 11; + a1 = 14; + a20 = 1; + a16 = 7; + } + return -1; + } else if(((((((a21==12)&&((input==5)&&(((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6))))))&&(a17==2))&&!(a14==1))&&(a1==12))&&(((!(a23==1)||(!(a12==1)||(((((a23==1)&&(a12==1))&&(a19==5))&&(a20==1))&&(a16==8))))&&!(a27==1))&&(a3==1)))){ + a19 = 4; + a21 = 10; + a1 = 14; + a9 = 10; + a5 = 6; + a16 = 7; + a4 = 0; + a12 = 1; + return 25; + } else if((((!(a7==1)&&((a6==1)&&((a23==1)&&((a9==9)&&((a6==1)&&((input==5)&&((a5==6)||((a5==4)||(a5==5)))))))))&&(a16==10))&&(((a1==13)&&((((((a12==1)&&(a19==3))&&(a13==1))||(a0==1))&&(a21==10))&&(a17==2)))&&!(a20==1)))){ + a2 = 0; + a0 = 1; + a1 = 14; + a21 = 11; + a9 = 8; + a20 = 1; + a5 = 5; + a6 = 0; + a19 = 4; + return 26; + } else if(((((a1==14)&&((!(a27==1)&&((!(a4==1)&&(!(a7==1)&&((a16==7)&&(!(a4==1)&&(!(a26==1)&&((((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11)))&&(input==4))&&!(a0==1)))))))&&(a21==12)))&&(a19==4)))&&(a17==2))&&((a20==1)&&(a13==1)))){ + a27 = 0; + a1 = 12; + a19 = 1; + a9 = 7; + a21 = 10; + a26 = 0; + a5 = 4; + a4 = 0; + return -1; + } else if((((a17==2)&&((a21==10)&&((a18==1)||(((((a9==7)&&(a6==1))||(a27==1))&&!(a24==1))||!(a2==1)))))&&(((((a1==14)&&(((((a5==5)||(a5==6))&&(input==4))&&(a20==1))&&!(a14==1)))&&(a19==4))&&(a16==10))&&!(a26==1)))){ + a26 = 0; + a0 = 0; + a9 = 11; + a21 = 12; + a4 = 0; + a16 = 8; + a5 = 4; + a19 = 2; + return 25; + } else if((((((a0==1)||(((a4==1)||(((a28==1)||(a0==1))||(a27==1)))&&(a21==12)))&&(a16==10))||(a8==1))&&(!(a20==1)&&((a17==2)&&((!(a24==1)&&(((((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==6))&&(a1==13)))&&(a19==3)))))){ + a20 = 1; + a29 = 1; + a8 = 1; + a19 = 1; + a21 = 10; + a9 = 9; + a1 = 12; + a16 = 7; + a12 = 0; + a5 = 4; + return -1; + } else if(((((((((a17==2)&&(((a5==4)&&(!(a4==1)&&((input==6)&&(a19==2))))&&(a9==7)))&&!(a20==1))&&(a28==1))&&!(a26==1))&&!(a8==1))&&(a28==1))&&((((a1==12)&&((a16==8)&&(a6==1)))&&(a21==10))||!(a11==1)))){ + a20 = 1; + a6 = 1; + a28 = 1; + a19 = 1; + a24 = 0; + a16 = 7; + return -1; + } else if(((!(a20==1)&&((a28==1)&&(((((((a5==6)&&(a1==12))&&(a9==11))||((a9==7)&&((a1==13)&&(a5==4))))||(((a5==5)&&(a1==13))&&(a9==7)))&&(input==3))&&(a17==2))))&&(((a16==9)&&((((a19==2)&&((!(a6==1)||(!(a24==1)&&(a12==1)))&&!(a7==1)))&&!(a27==1))||(a7==1)))&&(a21==10)))){ + a19 = 1; + a5 = 5; + a12 = 0; + a1 = 12; + a4 = 1; + a29 = 0; + a20 = 1; + a9 = 9; + a16 = 7; + return -1; + } else if((((a21==12)&&((!(a26==1)&&((!(a24==1)&&((a19==4)&&((a12==1)||!(a23==1))))||!(a11==1)))&&(a1==12)))&&(!(a20==1)&&(((!(a26==1)&&(((input==1)&&((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4))))&&!(a14==1)))&&(a17==2))&&(a16==8))))){ + if((a18==1)){ + a18 = 1; + a25 = 1; + a16 = 7; + a9 = 11; + a5 = 6; + a19 = 2; + a22 = 1; + a21 = 10; + a20 = 1; + }else{ + a9 = 7; + a21 = 10; + a20 = 1; + a19 = 2; + a16 = 7; + a22 = 1; + a5 = 4; + a29 = 0; + } + return -1; + } else if(((((((((a16==11)&&(((a5==5)||(a5==6))&&(input==6)))&&(a2==1))&&(a23==1))&&(a2==1))&&(a3==1))&&(a11==1))&&((((a19==1)&&(((a20==1)&&(((a6==1)&&(a13==1))&&(a21==10)))&&(a1==12)))&&(a17==2))&&(a9==10)))){ + a11 = 1; + a5 = 5; + a9 = 7; + a27 = 0; + a2 = 1; + a19 = 4; + return 21; + } else if((((a28==1)&&(((a6==1)&&((a16==10)&&((!(a20==1)&&(((a7==1)||((a21==10)&&(a12==1)))&&(a1==13)))&&(a19==1))))&&(a9==7)))&&((a13==1)&&(((a2==1)&&(((input==6)&&((a5==5)||(a5==6)))&&(a17==2)))&&(a2==1))))){ + a20 = 1; + a5 = 6; + a1 = 12; + a16 = 7; + a3 = 0; + a8 = 1; + a9 = 10; + a2 = 0; + return 25; + } else if((((((a27==1)||((a1==13)&&((a26==1)||((!(a6==1)||(a23==1))&&(a19==4)))))||!(a6==1))&&(a17==2))&&((a11==1)&&(!(a20==1)&&(((a21==11)&&((a16==7)&&((((a5==5)||(a5==6))&&(input==4))&&(a2==1))))&&(a9==9)))))){ + a28 = 1; + a13 = 1; + a19 = 1; + a9 = 7; + a21 = 10; + a1 = 12; + a20 = 1; + a5 = 4; + return -1; + } else if(((((!(a27==1)&&(((a1==13)&&((a9==10)&&(a6==1)))&&(a16==8)))&&!(a27==1))&&(a12==1))&&(((((a20==1)&&((a17==2)&&((a5==4)&&((a6==1)&&((a21==10)&&(input==6))))))&&(a23==1))&&(a19==1))&&(a23==1)))){ + a19 = 2; + a11 = 1; + a21 = 12; + a16 = 9; + a6 = 1; + a18 = 0; + a9 = 8; + return 25; + } else if(((((((a17==2)&&((a21==10)&&((input==1)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))))&&(a12==1))&&(a12==1))&&(a23==1))&&((((a1==14)&&(((a16==10)&&((a4==1)||((a23==1)&&!(a20==1))))&&(a19==5)))&&!(a8==1))&&!(a24==1)))){ + if((a25==1)){ + a9 = 10; + a28 = 0; + a25 = 1; + a14 = 1; + a1 = 12; + a19 = 2; + a20 = 1; + a5 = 5; + a16 = 7; + }else{ + a22 = 0; + a25 = 1; + a19 = 1; + a16 = 7; + a20 = 1; + a5 = 4; + a9 = 10; + } + return 25; + } else if(((((a2==1)&&(!(a26==1)&&(((((((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(input==1))&&!(a7==1))&&(a16==9))&&(a3==1))))&&(a1==12))&&(((a19==4)&&((a6==1)&&((((a17==2)&&(a2==1))&&!(a20==1))&&!(a8==1))))&&(a21==12)))){ + a5 = 5; + a3 = 0; + a24 = 1; + a9 = 8; + a0 = 1; + a19 = 5; + a21 = 11; + a16 = 10; + return 25; + } else if(((!(a2==1)||((a23==1)&&((a1==12)&&((((a18==1)||((a21==12)&&(a11==1)))&&(a9==7))&&(a17==2)))))&&(((a23==1)&&(!(a0==1)&&(!(a20==1)&&(((a13==1)&&((input==4)&&(a16==7)))&&(a19==2)))))&&(a5==6)))){ + a14 = 0; + a19 = 1; + a20 = 1; + a12 = 1; + a21 = 10; + a5 = 4; + a3 = 1; + return -1; + } else if(((((a21==10)&&((a12==1)&&(((a16==9)&&((!(a27==1)&&(((a19==3)&&((a20==1)&&(a12==1)))&&!(a4==1)))&&(a9==10)))&&(a1==13))))&&!(a0==1))&&((a5==4)&&((!(a27==1)&&((input==6)&&(a17==2)))&&(a3==1))))){ + a28 = 1; + a27 = 0; + a1 = 12; + a9 = 8; + a13 = 1; + a16 = 7; + return 25; + } else if((((((a0==1)&&((a26==1)&&(((((a16==10)&&(((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))&&(input==5)))&&(a1==14))&&(a0==1))&&!(a3==1))))&&(a4==1))&&(a19==2))&&(((a17==2)&&((a21==11)&&(!(a11==1)&&(a6==1))))&&(a20==1)))){ + a10 = 1; + a15 = 0; + a21 = 10; + a9 = 9; + a5 = 4; + a14 = 1; + a16 = 7; + a1 = 12; + return -1; + } else if(((((a26==1)||(((a1==13)&&((a20==1)&&(!(a7==1)&&((a16==9)&&(a13==1)))))&&(a6==1)))||!(a6==1))&&(!(a24==1)&&((a19==4)&&(((a13==1)&&((((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9)))&&(input==6))&&(a17==2)))&&(a21==11)))))){ + a5 = 5; + a8 = 0; + a24 = 0; + a23 = 1; + a16 = 8; + a1 = 12; + a9 = 11; + return 26; + } else if(((((a9==11)&&((a1==14)&&((a19==2)&&((a14==1)&&((a12==1)&&(a16==7))))))&&(a7==1))&&(!(a11==1)&&((((a17==2)&&((a27==1)&&(!(a20==1)&&((a21==12)&&((input==1)&&((a5==6)||((a5==4)||(a5==5))))))))&&(a4==1))&&!(a12==1))))){ + a5 = 5; + a1 = 12; + a9 = 9; + a6 = 0; + a15 = 1; + a21 = 10; + a7 = 1; + a20 = 1; + return 21; + } else if((((((a19==3)&&(((!(a28==1)||(a11==1))&&(a17==2))&&(a11==1)))&&(a9==9))&&(a20==1))&&((a16==10)&&(((a21==11)&&((((!(a27==1)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))&&!(a8==1))&&(a1==12))&&(a3==1)))&&!(a14==1))))){ + a6 = 1; + a19 = 5; + a21 = 10; + a5 = 5; + a23 = 1; + a16 = 8; + a27 = 0; + return 26; + } else if((((((!(a26==1)&&(((a12==1)&&((!(a18==1)&&(((input==6)&&(((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))&&!(a24==1)))&&(a19==2)))&&(a17==2)))&&!(a20==1))&&(a1==13))&&(a16==9))&&((((a11==1)||(a18==1))&&(a23==1))&&(a21==11)))){ + if((a7==1)){ + a1 = 14; + a27 = 1; + a5 = 5; + a25 = 1; + a19 = 4; + a9 = 7; + a10 = 1; + a16 = 7; + }else{ + a5 = 6; + a21 = 10; + a20 = 1; + a9 = 9; + a19 = 1; + a22 = 1; + a14 = 1; + a16 = 7; + } + return -1; + } else if((((a12==1)&&((a11==1)&&(!(a4==1)&&(((a1==12)&&(input==4))&&(a20==1)))))&&((a21==11)&&((a5==6)&&(!(a14==1)&&((a16==7)&&((a9==7)&&(((a23==1)&&(((a23==1)&&(a19==3))&&!(a18==1)))&&(a17==2))))))))){ + a23 = 1; + a4 = 0; + a11 = 1; + a21 = 10; + a19 = 1; + a5 = 4; + return -1; + } else if((((a5==4)&&((a17==2)&&((a19==4)&&(((a28==1)&&((((a27==1)||(a3==1))&&(a21==12))&&!(a8==1)))&&(a1==12)))))&&((((a16==9)&&(!(a18==1)&&(((a9==11)&&(input==5))&&(a12==1))))&&!(a27==1))&&(a20==1)))){ + a19 = 1; + a16 = 7; + a21 = 10; + a27 = 0; + a28 = 1; + a9 = 7; + a12 = 1; + return -1; + } else if((((!(a7==1)&&(((((((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==3))&&(a17==2))&&!(a14==1))&&(a21==11))&&!(a20==1))&&(a1==12)))&&!(a7==1))&&((!(a6==1)||(((a19==5)&&((a16==8)&&(a11==1)))&&!(a4==1)))&&!(a24==1)))){ + a5 = 4; + a3 = 1; + a16 = 7; + a19 = 1; + a21 = 10; + a24 = 0; + a20 = 1; + a12 = 1; + a9 = 7; + return -1; + } else if((((((a26==1)||((a1==13)&&((a19==2)&&((((a9==7)&&(a23==1))&&(a20==1))&&(a17==2)))))&&(a6==1))&&(a23==1))&&(!(a26==1)&&((a16==9)&&(!(a14==1)&&(((a21==12)&&(((a5==5)||(a5==6))&&(input==3)))&&(a6==1))))))){ + a5 = 4; + a27 = 0; + a16 = 7; + a21 = 10; + a0 = 0; + a19 = 1; + a1 = 12; + return -1; + } else if((((((!(a24==1)&&(((a16==11)&&((a20==1)&&(((((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(input==4))&&(a1==14))))&&!(a4==1)))&&!(a18==1))&&(a12==1))&&!(a26==1))&&((a0==1)||((((a12==1)&&(a21==12))&&(a17==2))&&(a19==1))))){ + a5 = 4; + a26 = 0; + a16 = 7; + a6 = 1; + a21 = 10; + a9 = 7; + a23 = 1; + a1 = 12; + return -1; + } else if((((((a7==1)||(((a2==1)&&((a17==2)&&((((a6==1)&&(a19==2))||(a26==1))||!(a13==1))))&&!(a7==1)))&&!(a20==1))&&(a9==7))&&((((((input==5)&&((a5==5)||(a5==6)))&&(a21==11))&&!(a26==1))&&(a16==7))&&(a1==13)))){ + a20 = 1; + a12 = 1; + a21 = 10; + a16 = 11; + a1 = 14; + a5 = 4; + a19 = 3; + a26 = 0; + return 21; + } else if(((!(a0==1)&&(((((a1==13)&&((a2==1)&&(a3==1)))||(a24==1))&&(a19==1))||!(a13==1)))&&((a20==1)&&(!(a0==1)&&(((((a17==2)&&(((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a5==4)&&(a9==10)))&&(input==4)))&&(a21==10))&&!(a18==1))&&(a16==11)))))){ + a4 = 0; + a9 = 7; + a1 = 12; + a5 = 4; + a16 = 7; + a7 = 0; + a27 = 0; + return -1; + } else if(((((a21==10)&&((a3==1)&&(((a17==2)&&((!(a0==1)&&(a23==1))||(a8==1)))||!(a12==1))))||!(a2==1))&&((((a16==9)&&(!(a20==1)&&((a1==13)&&((input==5)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))))&&!(a18==1))&&(a19==5)))){ + a1 = 12; + a12 = 0; + a15 = 0; + a19 = 2; + a9 = 11; + a5 = 5; + a16 = 7; + a20 = 1; + return -1; + } else if((((((((a19==5)&&(a23==1))&&(a21==10))&&(a28==1))&&!(a7==1))&&(a11==1))&&((a5==4)&&((!(a4==1)&&((a9==7)&&((a28==1)&&((a1==12)&&((((a17==2)&&(input==6))&&(a12==1))&&(a20==1))))))&&(a16==7))))){ + a21 = 11; + a20 = 0; + a9 = 9; + a5 = 5; + a28 = 1; + a19 = 4; + a1 = 13; + a18 = 0; + a26 = 0; + return 23; + } else if(((((((a16==7)&&(input==3))&&(a1==12))&&(a6==1))&&(a6==1))&&(((a19==5)&&((a21==11)&&(((!(a14==1)&&(((((a24==1)||(a3==1))&&(a17==2))||(a4==1))&&(a20==1)))&&(a5==5))&&!(a4==1))))&&(a9==9)))){ + a11 = 1; + a24 = 0; + a9 = 7; + a21 = 10; + a14 = 0; + a19 = 1; + a5 = 4; + return -1; + } else if(((((((!(a7==1)&&(a6==1))&&(a16==11))&&(a19==5))&&(a21==12))&&(a23==1))&&((a23==1)&&(!(a26==1)&&((a1==12)&&(((((a9==7)&&(!(a24==1)&&(((a5==4)||(a5==5))&&(input==3))))&&(a20==1))&&(a17==2))&&!(a4==1))))))){ + a27 = 0; + a19 = 1; + a5 = 4; + a6 = 1; + a16 = 7; + a21 = 10; + a11 = 1; + return -1; + } else if((((a7==1)||((a11==1)&&(a19==3)))&&((a21==12)&&((a2==1)&&(((a16==8)&&(!(a27==1)&&(((a23==1)&&((!(a7==1)&&(((input==3)&&(((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))&&(a17==2)))&&(a1==12)))&&(a20==1))))&&!(a26==1)))))){ + a21 = 10; + a5 = 4; + a16 = 7; + a9 = 7; + a14 = 0; + a28 = 1; + a18 = 0; + a19 = 1; + return -1; + } else if((((a19==3)&&((a17==2)&&((a20==1)&&((a16==10)&&((a23==1)&&(a6==1))))))&&(!(a4==1)&&(!(a24==1)&&((a23==1)&&((a21==10)&&(((((input==5)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&!(a0==1))&&(a1==13))&&(a11==1)))))))){ + if((a5==4)){ + a16 = 8; + a5 = 5; + a20 = 0; + a19 = 5; + a1 = 12; + a11 = 1; + a23 = 1; + a21 = 11; + a9 = 10; + }else{ + a5 = 6; + a9 = 11; + a19 = 1; + a4 = 0; + a23 = 1; + a24 = 0; + } + return 21; + } else if(((((a19==3)&&((a1==13)&&(!(a24==1)&&((a13==1)&&((((input==6)&&(a17==2))&&!(a8==1))&&(a11==1))))))&&!(a14==1))&&(((!(a20==1)&&(((a21==11)&&((a9==7)&&(a13==1)))&&(a16==10)))||!(a23==1))&&(a5==5)))){ + if((a6==1)){ + a16 = 7; + a20 = 1; + a1 = 14; + a9 = 10; + a19 = 1; + a25 = 0; + a21 = 10; + a3 = 0; + }else{ + a19 = 5; + a25 = 0; + a0 = 1; + a11 = 0; + a16 = 9; + a9 = 10; + a5 = 4; + a1 = 12; + a20 = 1; + a21 = 10; + } + return 21; + } else if((((a3==1)&&(((a9==10)&&((a6==1)&&((a12==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3)))))&&(a20==1)))&&(((a4==1)||(!(a26==1)&&(((a16==11)&&((((a19==5)&&(a23==1))||(a18==1))&&(a1==13)))&&(a17==2))))&&(a21==11)))){ + a16 = 7; + a3 = 1; + a9 = 7; + a5 = 4; + a1 = 12; + a19 = 1; + a26 = 0; + a11 = 1; + a21 = 10; + return -1; + } else if((((!(a14==1)&&((a21==11)&&((a17==2)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3)))))&&!(a8==1))&&(!(a13==1)||((a0==1)||(!(a18==1)&&(((((((a9==8)&&(a23==1))||!(a6==1))&&(a1==14))&&(a20==1))&&(a16==8))&&(a19==1))))))){ + a4 = 0; + a12 = 1; + a9 = 7; + a11 = 1; + a5 = 4; + a21 = 10; + a1 = 12; + a16 = 7; + return -1; + } else if(((((a21==12)&&((a16==8)&&(((((a17==2)&&((a1==14)&&(((a27==1)||(a2==1))&&(a19==3))))&&!(a8==1))&&(a20==1))&&(a3==1))))&&(a9==10))&&(((a12==1)&&(!(a24==1)&&((input==5)&&((a5==5)||(a5==6)))))&&(a13==1)))){ + a7 = 0; + a16 = 7; + a1 = 13; + a28 = 1; + a5 = 4; + a9 = 9; + a21 = 10; + a19 = 2; + a2 = 1; + return -1; + } else if((((a21==10)&&((((a16==7)&&(input==5))&&(a1==12))&&(a5==4)))&&((a19==2)&&((((a26==1)||(!(a3==1)||(!(a4==1)&&((!(a28==1)||((!(a11==1)||(a28==1))&&(a9==9)))&&!(a20==1)))))||(a18==1))&&(a17==2))))){ + a9 = 7; + a14 = 0; + a11 = 1; + a19 = 1; + a4 = 0; + a20 = 1; + return -1; + } else if((((a4==1)||(((a27==1)||(((a17==2)&&((((a28==1)&&(a19==1))&&(a16==10))&&!(a26==1)))||!(a28==1)))&&!(a14==1)))&&((((a20==1)&&((a1==12)&&((((a5==4)||(a5==5))&&(input==5))&&(a21==10))))&&(a9==8))&&!(a0==1)))){ + a1 = 14; + a11 = 1; + a19 = 3; + a9 = 9; + a5 = 5; + a26 = 0; + a16 = 7; + return -1; + } else if((((a20==1)&&(((((a11==1)||!(a6==1))&&(a9==11))||(a24==1))&&(a21==12)))&&(((a19==5)&&((((a23==1)&&((((a16==7)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6))))&&!(a27==1))&&(a17==2)))&&!(a27==1))&&(a1==14)))&&(a11==1)))){ + a11 = 1; + a5 = 4; + a21 = 10; + a1 = 12; + a7 = 0; + a24 = 0; + a19 = 1; + a9 = 7; + return -1; + } else if(((((a2==1)&&(!(a20==1)&&((((a21==10)&&(input==1))&&(a16==11))&&!(a27==1))))&&(a6==1))&&(((a9==11)&&((a7==1)||((a1==12)&&((a3==1)&&((((a11==1)&&(a5==4))&&(a11==1))&&(a19==3))))))&&(a17==2)))){ + if((a16==9)){ + a20 = 1; + a19 = 4; + a1 = 13; + a0 = 1; + a16 = 7; + a2 = 0; + a27 = 1; + }else{ + a16 = 7; + a15 = 1; + a20 = 1; + a1 = 14; + a19 = 1; + a5 = 6; + a23 = 0; + a4 = 1; + } + return 21; + } else if((((a5==6)&&((((a17==2)&&(((input==6)&&(a1==14))&&!(a7==1)))&&!(a4==1))&&(a12==1)))&&((a16==9)&&(!(a20==1)&&((!(a14==1)&&(((a19==2)&&((a21==12)&&((a23==1)||(a24==1))))&&(a9==8)))&&!(a0==1)))))){ + a21 = 11; + a1 = 12; + a7 = 1; + a2 = 0; + a16 = 8; + a25 = 1; + a5 = 5; + a19 = 5; + return -1; + } else if((((((a21==12)&&((a5==4)&&((a16==11)&&((a13==1)&&(!(a24==1)&&((a19==5)&&((a1==13)&&(input==1))))))))&&(a17==2))&&(a9==10))&&((!(a14==1)&&(((a7==1)||((a11==1)||!(a6==1)))&&(a28==1)))&&(a20==1)))){ + a14 = 0; + a21 = 10; + a16 = 7; + a19 = 1; + a2 = 1; + a20 = 0; + a9 = 8; + a28 = 1; + return 21; + } else if((((((((a1==14)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))&&(a6==1))&&(a28==1))&&(a11==1))&&!(a27==1))&&((a13==1)&&((a9==11)&&(((a3==1)&&((a17==2)&&((a21==12)&&(((a6==1)&&(a19==3))&&(a16==8)))))&&(a20==1)))))){ + a2 = 1; + a11 = 1; + a20 = 0; + a1 = 13; + a21 = 10; + a28 = 1; + a5 = 4; + a9 = 9; + a19 = 2; + return -1; + } return calculate_output6(input); + } + + int calculate_output6(int input) { + if(((((a1==12)&&((a17==2)&&((a16==11)&&((a7==1)||(a28==1)))))&&!(a20==1))&&((a11==1)&&(((((a23==1)&&(((((a5==5)&&(input==3))&&(a9==10))&&(a21==10))&&(a19==4)))&&!(a24==1))&&(a13==1))&&!(a24==1))))){ + if((a2==1)){ + a1 = 13; + a19 = 2; + a5 = 4; + a20 = 1; + a12 = 0; + a2 = 0; + a24 = 1; + a9 = 7; + a16 = 7; + }else{ + a22 = 1; + a1 = 14; + a21 = 12; + a12 = 0; + a25 = 0; + a16 = 7; + a5 = 4; + a20 = 1; + a9 = 9; + a19 = 3; + } + return 22; + } else if(((!(a11==1)||(((!(a20==1)&&((a3==1)&&((a16==7)&&((a28==1)&&(a23==1)))))&&(a17==2))||(a8==1)))&&(!(a14==1)&&(((input==4)&&((((a21==11)&&((((a1==14)&&(a5==5))&&(a9==11))&&(a19==5)))||((((a9==11)&&((a1==14)&&(a5==6)))&&(a19==5))&&(a21==11)))||(((a19==1)&&((a9==7)&&((a1==12)&&(a5==4))))&&(a21==12))))&&(a6==1))))){ + a5 = 4; + a9 = 7; + a21 = 10; + a19 = 1; + a1 = 12; + a14 = 0; + a3 = 1; + a20 = 1; + return -1; + } else if((((!(a6==1)||((!(a11==1)||((((a4==1)||((a21==11)&&(a11==1)))&&!(a20==1))&&(a17==2)))||(a0==1)))||!(a6==1))&&(((a16==7)&&((a1==13)&&((a19==5)&&((input==4)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8)))))))&&!(a24==1)))){ + a21 = 10; + a2 = 1; + a5 = 4; + a1 = 12; + a20 = 1; + a9 = 7; + a12 = 1; + a19 = 1; + a28 = 1; + return -1; + } else if(((((((a4==1)||(a3==1))&&(a17==2))&&(a6==1))||!(a13==1))&&(!(a8==1)&&((((((((((((a1==14)&&(a5==6))&&(a9==11))&&(a16==7))&&(a19==5))&&(a21==12))||((a21==10)&&((a19==1)&&((a16==8)&&(((a5==4)&&(a1==12))&&(a9==7))))))||((a21==10)&&(((a16==8)&&(((a5==5)&&(a1==12))&&(a9==7)))&&(a19==1))))&&(input==4))&&!(a20==1))&&(a3==1))&&(a12==1))))){ + a20 = 1; + a19 = 1; + a16 = 7; + a11 = 1; + a9 = 7; + a5 = 4; + a1 = 12; + a7 = 0; + a21 = 10; + a8 = 0; + return -1; + } else if((((a21==12)&&(((((a12==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a7==1))&&(a17==2))&&(a16==9)))&&((a1==12)&&((!(a20==1)&&(((!(a11==1)||(((a3==1)||!(a23==1))&&(a9==8)))&&!(a8==1))||(a27==1)))&&(a19==3))))){ + a5 = 5; + a19 = 2; + a22 = 0; + a3 = 0; + a12 = 0; + a20 = 1; + a21 = 10; + a16 = 7; + return 22; + } else if((((((a20==1)&&(((a16==7)&&((a28==1)&&(a13==1)))&&(a21==11)))||!(a13==1))||!(a11==1))&&((((a17==2)&&((a12==1)&&((a1==13)&&((a19==3)&&((((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(input==1))))))&&!(a14==1))&&(a12==1)))){ + a2 = 1; + a9 = 8; + a1 = 12; + a16 = 8; + a19 = 1; + a5 = 4; + a26 = 0; + a24 = 0; + return 25; + } else if(((!(a20==1)&&((a6==1)&&(((((a9==10)&&(!(a8==1)&&((a17==2)&&((a11==1)&&(a16==10)))))||(a8==1))&&(a5==5))&&!(a27==1))))&&(((a13==1)&&((a19==5)&&(!(a18==1)&&((a21==12)&&(input==4)))))&&(a1==14)))){ + a15 = 1; + a9 = 8; + a20 = 1; + a10 = 1; + a22 = 0; + a1 = 12; + a19 = 3; + a21 = 10; + a16 = 7; + return -1; + } else if((((!(a4==1)&&(((a16==9)&&(a23==1))||!(a12==1)))&&(a3==1))&&((a23==1)&&(!(a18==1)&&((a1==13)&&((a19==4)&&((a17==2)&&((((a28==1)&&(((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5)))&&(input==1)))&&(a20==1))&&(a21==11))))))))){ + if((a23==1)){ + a16 = 8; + a3 = 1; + a12 = 1; + a28 = 1; + a9 = 8; + a20 = 0; + a1 = 12; + a5 = 5; + }else{ + a9 = 10; + a4 = 0; + a19 = 2; + a7 = 0; + a26 = 0; + a16 = 7; + a21 = 10; + a5 = 4; + } + return 21; + } else if((((!(a18==1)&&((a17==2)&&((!(a20==1)&&((!(a4==1)&&((a19==4)&&((((input==6)&&((a5==5)||(a5==6)))&&(a21==12))&&(a9==7))))&&!(a8==1)))&&(a1==13))))&&!(a18==1))&&((a3==1)&&(!(a28==1)||((a16==8)&&(a13==1)))))){ + if((a1==13)){ + a20 = 1; + a29 = 1; + a2 = 0; + a21 = 10; + a19 = 1; + a16 = 7; + a22 = 0; + a1 = 12; + a5 = 4; + }else{ + a5 = 5; + a16 = 7; + a19 = 1; + a20 = 1; + a21 = 10; + a11 = 0; + a1 = 14; + a29 = 1; + } + return 26; + } else if((((a17==2)&&((a21==10)&&((((a28==1)&&((((a3==1)||(a27==1))&&(a28==1))&&!(a20==1)))&&(a19==5))&&(a16==10))))&&((a9==8)&&((!(a4==1)&&(!(a14==1)&&((a1==12)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))))&&!(a0==1))))){ + if((a21==12)){ + a3 = 0; + a5 = 6; + a1 = 13; + a29 = 1; + a20 = 1; + a16 = 7; + a2 = 0; + a19 = 4; + a9 = 7; + }else{ + a9 = 9; + a5 = 4; + a23 = 0; + a20 = 1; + a22 = 0; + a1 = 13; + a16 = 7; + } + return 26; + } else if((((a16==10)&&(((a19==2)&&((!(a20==1)&&(!(a3==1)||(a13==1)))||(a0==1)))&&(a2==1)))&&((((((a2==1)&&(!(a14==1)&&((input==6)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))))&&(a23==1))&&(a17==2))&&(a1==12))&&(a21==11)))){ + if((a5==4)){ + a13 = 0; + a25 = 0; + a5 = 4; + a9 = 11; + a16 = 7; + a22 = 0; + a21 = 12; + }else{ + a1 = 13; + a25 = 0; + a19 = 1; + a5 = 4; + a21 = 10; + a11 = 0; + a9 = 9; + a16 = 7; + a15 = 1; + a20 = 1; + } + return -1; + } else if(((((a7==1)&&((a17==2)&&(((a20==1)&&(input==4))&&(a4==1))))&&(a1==14))&&(((a5==5)&&((a19==4)&&((((((a0==1)&&((a11==1)&&(a4==1)))&&!(a11==1))&&(a21==10))&&(a27==1))&&(a9==8))))&&(a16==7)))){ + a19 = 1; + a11 = 0; + a28 = 0; + a18 = 1; + return 22; + } else if((((a17==2)&&((((!(a13==1)||((a16==9)&&(a13==1)))||!(a28==1))&&!(a20==1))&&(a19==5)))&&((a11==1)&&(((((((input==4)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(a2==1))&&!(a0==1))&&(a21==12))&&(a1==13))&&!(a14==1))))){ + if((a10==1)){ + a9 = 9; + a7 = 1; + a16 = 8; + a22 = 0; + a5 = 5; + a14 = 1; + a19 = 1; + a20 = 1; + a1 = 12; + }else{ + a20 = 1; + a1 = 12; + a29 = 1; + a19 = 2; + a5 = 4; + a22 = 0; + a9 = 11; + a21 = 10; + a8 = 1; + a16 = 7; + } + return -1; + } else if((((a17==2)&&(((a21==11)&&((((((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8))))&&(input==5))&&(a19==2))&&(a12==1)))&&(a3==1)))&&((((a1==12)&&(((a13==1)&&((!(a4==1)&&(a6==1))&&!(a8==1)))||(a26==1)))&&!(a20==1))&&(a16==10)))){ + a20 = 1; + a1 = 13; + a19 = 1; + a21 = 10; + a29 = 1; + a13 = 0; + a16 = 7; + a9 = 8; + a5 = 6; + return 21; + } else if(((!(a26==1)&&(((a19==3)&&(!(a11==1)||(((a5==5)&&(((a13==1)&&(a9==11))&&!(a24==1)))&&(a20==1))))||!(a2==1)))&&((a1==14)&&((a6==1)&&((a17==2)&&((a11==1)&&((a21==10)&&((a16==11)&&(input==3))))))))){ + a16 = 7; + a12 = 1; + a19 = 1; + a8 = 0; + a5 = 4; + a13 = 1; + a1 = 12; + a9 = 7; + return -1; + } else if((((a21==11)&&((((a20==1)&&((a23==1)&&(a2==1)))||(a18==1))&&(a17==2)))&&((((a1==13)&&(((((a13==1)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==4)))&&!(a18==1))&&(a11==1))&&(a2==1)))&&(a19==2))&&(a16==7)))){ + a1 = 12; + a5 = 4; + a6 = 1; + a9 = 7; + a19 = 1; + a12 = 1; + a23 = 1; + a21 = 10; + return -1; + } else if((((a2==1)&&((((a19==3)&&((((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))&&(input==3))&&!(a14==1)))&&(a16==7))&&(a17==2)))&&(!(a2==1)||((!(a7==1)&&((a21==12)&&(!(a20==1)&&((a1==12)&&(!(a8==1)&&(a2==1))))))||!(a2==1))))){ + a9 = 10; + a24 = 0; + a8 = 0; + a19 = 1; + a5 = 4; + a1 = 14; + a20 = 1; + a16 = 9; + a13 = 1; + return 25; + } else if((((!(a4==1)&&((((a23==1)&&((a23==1)&&(((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))&&(input==5))))&&!(a24==1))&&(a16==11)))&&!(a24==1))&&((((a17==2)&&((((a1==12)&&(a13==1))&&(a21==12))&&(a20==1)))&&!(a26==1))&&(a19==3)))){ + a21 = 10; + a11 = 1; + a27 = 0; + a9 = 7; + a19 = 1; + a5 = 4; + a16 = 7; + a8 = 0; + return -1; + } else if(((((a5==4)&&((a16==11)&&(((a14==1)||((a6==1)||(a27==1)))&&(a19==1))))&&(a17==2))&&((a1==13)&&((a13==1)&&(((((((input==6)&&(a9==7))&&(a3==1))&&(a2==1))&&(a6==1))&&(a21==11))&&(a20==1)))))){ + a21 = 10; + a23 = 1; + a6 = 1; + a18 = 0; + a1 = 12; + a16 = 7; + return -1; + } else if((((a3==1)&&(((a21==11)&&((((a13==1)||(a27==1))&&(a16==7))&&(a5==5)))&&!(a4==1)))&&(((a20==1)&&(((a6==1)&&(((a9==7)&&(!(a7==1)&&((a19==2)&&(input==3))))&&(a1==14)))&&(a17==2)))&&(a13==1)))){ + a5 = 4; + a4 = 0; + a11 = 1; + a19 = 1; + a1 = 12; + a21 = 10; + a27 = 0; + return -1; + } else if(((((a21==12)&&(((((a19==5)&&(((a13==1)&&(((a12==1)||!(a28==1))||(a4==1)))||!(a11==1)))&&!(a18==1))&&(a17==2))&&(a16==9)))&&!(a20==1))&&(((a1==14)&&(!(a8==1)&&((input==6)&&((a5==5)||(a5==6)))))&&(a9==7)))){ + a19 = 1; + a16 = 7; + a11 = 0; + a5 = 5; + a21 = 10; + a14 = 1; + a1 = 13; + a20 = 1; + a8 = 1; + a9 = 11; + return 25; + } else if(((!(a20==1)&&((((a28==1)&&(a17==2))&&(a9==11))&&(a12==1)))&&((a11==1)&&(((a16==8)&&((a1==14)&&(((!(a4==1)&&((((input==3)&&((a5==4)||(a5==5)))&&!(a27==1))&&(a28==1)))&&(a19==3))&&!(a27==1))))&&(a21==10))))){ + a18 = 0; + a16 = 7; + a14 = 0; + a3 = 1; + a5 = 4; + a20 = 1; + a19 = 1; + a1 = 12; + a9 = 7; + return -1; + } else if(((!(a20==1)&&((((a26==1)||((a1==13)&&(((a23==1)&&(a2==1))&&(a2==1))))&&(a9==8))&&(a21==12)))&&((a19==3)&&(((((((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&(a16==10))&&!(a7==1))&&(a3==1))&&!(a4==1))&&(a17==2))))){ + if((a10==1)){ + a16 = 7; + a9 = 10; + a5 = 4; + a1 = 14; + a2 = 0; + a11 = 0; + a23 = 0; + a19 = 1; + a20 = 1; + a21 = 10; + }else{ + a22 = 0; + a19 = 1; + a4 = 1; + a5 = 5; + a21 = 11; + a9 = 7; + a20 = 1; + a25 = 0; + } + return 23; + } else if((((((!(a28==1)||((((a11==1)&&(a19==2))&&(a12==1))&&!(a20==1)))&&!(a7==1))&&(a9==10))&&(a17==2))&&((a1==14)&&((a28==1)&&((a2==1)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a16==8))&&(a21==11))&&!(a27==1))))))){ + a11 = 1; + a18 = 0; + a19 = 5; + a9 = 7; + a21 = 12; + a7 = 0; + a20 = 1; + a5 = 5; + a1 = 13; + return 26; + } else if(((!(a3==1)||((((a9==10)&&(((a5==6)&&(a28==1))&&(a16==10)))&&(a17==2))&&(a19==4)))&&(!(a0==1)&&(((a21==11)&&(((!(a27==1)&&(!(a7==1)&&((a1==12)&&(input==3))))&&!(a24==1))&&!(a18==1)))&&(a20==1))))){ + a16 = 7; + a3 = 1; + a5 = 5; + a1 = 13; + a21 = 10; + a12 = 1; + a9 = 9; + a19 = 2; + a28 = 1; + return -1; + } else if((((a1==14)&&((a6==1)&&((a26==1)||((a12==1)||!(a28==1)))))&&((a19==1)&&(!(a20==1)&&((((((a28==1)&&(((((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6))))&&(input==4))&&(a2==1)))&&(a21==11))&&(a16==7))&&(a17==2))&&(a23==1)))))){ + a0 = 0; + a3 = 1; + a21 = 10; + a23 = 1; + a5 = 4; + a9 = 7; + a1 = 12; + a20 = 1; + return -1; + } else if((((((!(a20==1)&&(((((a28==1)||!(a11==1))||(a0==1))&&(a21==10))&&(a17==2)))&&(a19==5))&&(a28==1))&&(a23==1))&&((a28==1)&&((a16==10)&&((a13==1)&&((((((a5==6)&&(a1==12))&&(a9==11))||(((a1==13)&&(a5==4))&&(a9==7)))||((a9==7)&&((a1==13)&&(a5==5))))&&(input==4))))))){ + a16 = 7; + a19 = 1; + a22 = 1; + a5 = 5; + a9 = 11; + a23 = 0; + a20 = 1; + a1 = 13; + a15 = 0; + return -1; + } else if((((a1==14)&&((a16==11)&&(((((a12==1)||(a18==1))&&(a23==1))&&!(a0==1))&&(a28==1))))&&((((((a21==10)&&(((input==3)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(a2==1)))&&!(a0==1))&&(a17==2))&&(a19==2))&&!(a20==1)))){ + if((a17==2)){ + a3 = 0; + a22 = 1; + a20 = 1; + a9 = 7; + a19 = 5; + a21 = 11; + a26 = 1; + a5 = 4; + }else{ + a16 = 7; + a3 = 0; + a5 = 4; + a1 = 12; + a27 = 1; + a9 = 11; + a11 = 0; + a19 = 1; + a20 = 1; + } + return -1; + } else if((((a16==7)&&((a19==3)&&(!(a24==1)&&(!(a27==1)&&((a13==1)||(a8==1))))))&&((a21==12)&&(!(a27==1)&&(((a20==1)&&(!(a18==1)&&((a9==11)&&((a1==12)&&((((a5==4)||(a5==5))&&(input==4))&&(a17==2))))))&&!(a18==1)))))){ + a9 = 7; + a18 = 0; + a2 = 1; + a21 = 10; + a6 = 1; + a5 = 4; + a19 = 1; + return -1; + } else if((((((((a1==13)&&(a6==1))&&(a19==3))&&(a11==1))&&(a17==2))||!(a11==1))&&((!(a20==1)&&(((((a6==1)&&(!(a24==1)&&((input==6)&&(((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))))))&&(a11==1))&&(a16==9))&&(a21==11)))&&!(a26==1)))){ + a1 = 12; + a21 = 10; + a25 = 0; + a22 = 0; + a8 = 1; + a16 = 7; + a20 = 1; + a5 = 6; + a19 = 1; + a9 = 10; + return 25; + } else if((((a19==1)&&((!(a27==1)&&((((a13==1)&&(a20==1))&&(a16==8))&&(a1==13)))||(a0==1)))&&(((a9==7)&&(((a12==1)&&((a13==1)&&((a17==2)&&(!(a14==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4))))))&&(a11==1)))&&(a21==12)))){ + a2 = 1; + a21 = 10; + a5 = 4; + a7 = 0; + a16 = 7; + a3 = 1; + a1 = 12; + return -1; + } else if(((!(a20==1)&&(((!(a18==1)&&(((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a5==4)&&(a9==8)))&&(input==3)))&&!(a0==1))&&(a3==1)))&&((a1==14)&&((a19==3)&&(!(a26==1)&&((((((a21==11)&&(a13==1))&&(a23==1))&&(a17==2))&&(a16==9))&&!(a18==1))))))){ + a20 = 1; + a1 = 13; + a25 = 0; + a29 = 0; + a9 = 11; + a5 = 4; + a21 = 10; + a28 = 0; + a16 = 7; + a19 = 1; + return -1; + } else if(((((((a1==14)&&((((a5==5)||(a5==6))&&(input==6))&&!(a26==1)))&&(a20==1))&&(a3==1))&&(a3==1))&&(((a9==9)&&(!(a18==1)&&(((a21==11)&&((a26==1)||(((a19==1)&&(a12==1))&&(a16==9))))||(a4==1))))&&(a17==2)))){ + a16 = 7; + a5 = 6; + a1 = 13; + a9 = 11; + a13 = 1; + a27 = 0; + a19 = 5; + a0 = 0; + a21 = 10; + return 25; + } else if((((((((((a13==1)&&(a23==1))&&(a21==12))&&!(a14==1))&&(a19==1))&&(a20==1))&&(a17==2))&&(a16==7))&&((!(a27==1)&&(((!(a24==1)&&((input==5)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8)))))&&(a11==1))&&(a11==1)))&&(a1==12)))){ + a5 = 6; + a19 = 4; + a6 = 1; + a8 = 0; + a16 = 8; + a0 = 0; + a9 = 8; + return 22; + } else if((((a9==10)&&(!(a4==1)&&((((a19==1)&&((((a11==1)&&(((a12==1)&&(a3==1))&&!(a20==1)))&&(a3==1))&&(a13==1)))&&(a5==5))&&(a1==12))))&&(((a12==1)&&((a21==10)&&((a17==2)&&(input==1))))&&(a16==8)))){ + a26 = 0; + a16 = 7; + a9 = 7; + a11 = 1; + a20 = 1; + a12 = 1; + a5 = 4; + return -1; + } else if((((a21==12)&&((((((a6==1)&&((a4==1)||(((a2==1)||!(a12==1))&&!(a20==1))))&&(a23==1))||!(a11==1))&&(a16==7))&&(a17==2)))&&((((a11==1)&&((a9==7)&&(((a5==5)||(a5==6))&&(input==1))))&&(a1==14))&&(a19==2)))){ + a5 = 5; + a9 = 11; + a16 = 11; + a27 = 0; + a20 = 1; + a21 = 11; + a26 = 0; + a0 = 0; + a1 = 12; + return 21; + } else if((((a9==10)&&((a17==2)&&((!(a4==1)&&(!(a4==1)&&((a21==10)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))))&&(a6==1))))&&((a1==14)&&((a12==1)&&(!(a8==1)&&(((a19==5)&&((!(a20==1)&&(a6==1))&&(a16==9)))&&(a11==1))))))){ + a16 = 7; + a14 = 1; + a6 = 0; + a1 = 13; + a19 = 1; + a5 = 5; + a20 = 1; + a9 = 7; + return -1; + } else if(((((a1==14)&&(!(a20==1)&&((input==6)&&(a17==2))))&&!(a4==1))&&((a12==1)&&(((!(a14==1)&&(((a16==7)&&((((a9==10)&&((a28==1)&&!(a4==1)))&&(a19==3))&&(a5==4)))&&(a21==11)))||!(a23==1))&&(a23==1))))){ + a9 = 9; + a13 = 1; + a16 = 8; + a1 = 12; + a21 = 10; + a12 = 1; + a18 = 0; + a5 = 6; + a20 = 1; + a19 = 5; + return 26; + } else if((((a1==12)&&((!(a8==1)&&((((a12==1)||!(a28==1))&&!(a20==1))&&(a3==1)))&&(a19==1)))&&((a21==11)&&((((!(a18==1)&&(!(a26==1)&&((input==4)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))))&&(a28==1))&&(a16==7))&&(a17==2))))){ + a11 = 1; + a21 = 10; + a20 = 1; + a6 = 1; + a9 = 7; + a5 = 4; + a2 = 1; + return -1; + } else if(((((((a16==8)&&((!(a26==1)&&((input==1)&&(a21==12)))&&(a13==1)))&&(a6==1))&&(a1==13))&&(a19==1))&&((((a24==1)||((a17==2)&&((a8==1)||((a9==10)&&(!(a4==1)&&(a11==1))))))&&(a20==1))&&(a5==5)))){ + a8 = 0; + a19 = 5; + a9 = 11; + a16 = 10; + a1 = 12; + a23 = 1; + a5 = 4; + a28 = 1; + a21 = 11; + return 26; + } else if((((a17==2)&&((a20==1)&&((a21==10)&&(!(a12==1)||((a27==1)||(!(a12==1)||((a19==5)&&(!(a14==1)&&(a23==1)))))))))&&(!(a26==1)&&((a1==13)&&((a16==7)&&(((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==5))&&!(a26==1))))))){ + a12 = 1; + a21 = 12; + a19 = 3; + a28 = 1; + a9 = 8; + a23 = 1; + a5 = 6; + return 21; + } else if(((((((a17==2)&&(((input==5)&&(a16==10))&&(a9==8)))&&(a11==1))&&(a19==1))&&(a5==6))&&((!(a13==1)||(((a1==12)&&(((((a2==1)&&(a28==1))&&(a21==11))&&!(a20==1))&&!(a27==1)))||!(a28==1)))&&!(a24==1)))){ + if((a3==1)){ + a21 = 10; + a10 = 1; + a1 = 13; + a16 = 7; + a20 = 1; + a29 = 0; + }else{ + a21 = 10; + a16 = 7; + a1 = 14; + a14 = 1; + a20 = 1; + a27 = 1; + a10 = 1; + a5 = 4; + } + return 21; + } else if((((a9==8)&&(!(a14==1)&&((((a1==12)&&(input==1))&&(a19==1))&&(a2==1))))&&(((a17==2)&&((((a5==5)&&(!(a14==1)&&((a24==1)||(((a2==1)&&!(a4==1))&&(a6==1)))))&&(a16==11))&&(a20==1)))&&(a21==10)))){ + a1 = 13; + a9 = 9; + a19 = 2; + a5 = 4; + a18 = 0; + a16 = 7; + a23 = 1; + return 25; + } else if((((a21==10)&&(((a20==1)&&((a12==1)&&(((((a9==11)&&(((a5==4)||(a5==5))&&(input==1)))&&(a16==11))&&(a23==1))&&!(a7==1))))&&(a17==2)))&&(((a19==1)&&((((a1==14)&&(a11==1))||!(a2==1))&&!(a24==1)))||!(a3==1)))){ + a9 = 7; + a6 = 1; + a5 = 4; + a1 = 12; + a3 = 1; + a16 = 7; + return -1; + } else if((((a16==8)&&(!(a20==1)&&(!(a14==1)&&((!(a4==1)&&(!(a14==1)&&((a19==3)&&((input==1)&&(((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))))))&&!(a14==1)))))&&(((a17==2)&&((((a1==14)&&(a6==1))&&(a11==1))||!(a23==1)))&&(a21==10)))){ + a4 = 0; + a9 = 7; + a19 = 1; + a28 = 1; + a16 = 7; + a5 = 4; + a2 = 1; + a1 = 12; + a20 = 1; + return -1; + } else if((((a9==10)&&((a21==12)&&((a1==14)&&((!(a7==1)&&((a18==1)||((((a24==1)||(a2==1))&&(a17==2))||(a4==1))))&&(a12==1)))))&&((a19==1)&&(((a20==1)&&((a3==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1))))&&(a16==9))))){ + a6 = 1; + a11 = 1; + a1 = 12; + a19 = 3; + a5 = 5; + a23 = 1; + a9 = 9; + return 21; + } else if((((a13==1)&&((((a11==1)&&(a5==5))||(a0==1))||(a27==1)))&&(((!(a18==1)&&((((((a17==2)&&((a2==1)&&((input==3)&&(a20==1))))&&(a16==10))&&(a19==5))&&(a21==12))&&(a2==1)))&&(a9==8))&&(a1==12)))){ + a8 = 0; + a9 = 7; + a5 = 4; + a24 = 0; + a18 = 0; + a16 = 7; + a19 = 1; + a21 = 10; + return -1; + } else if(((((((!(a2==1)&&(((a5==4)||(a5==5))&&(input==6)))&&(a1==12))&&(a21==10))&&!(a12==1))&&(a0==1))&&((((a20==1)&&((!(a6==1)&&((((a9==9)&&(a3==1))&&(a19==4))&&(a17==2)))&&(a16==9)))&&(a14==1))&&(a7==1)))){ + a16 = 8; + a6 = 0; + a26 = 1; + a19 = 2; + a27 = 1; + a5 = 5; + a1 = 14; + a9 = 7; + return 22; + } else if((((a20==1)&&((((((a21==11)&&(input==5))&&!(a2==1))&&(a0==1))&&(a17==2))&&(a26==1)))&&(((((a5==4)&&(((((a3==1)&&!(a3==1))&&!(a2==1))&&!(a13==1))&&(a9==11)))&&(a1==12))&&(a16==7))&&(a19==4)))){ + a16 = 10; + a5 = 5; + a8 = 1; + a28 = 0; + a19 = 5; + a15 = 0; + return -1; + } else if(((!(a26==1)&&((a4==1)||(((a5==5)&&(!(a11==1)||((a19==3)&&((a17==2)&&(a3==1)))))||(a18==1))))&&((!(a20==1)&&(((((a1==12)&&((input==6)&&(a9==8)))&&(a16==8))&&!(a4==1))&&(a21==12)))&&(a11==1)))){ + a19 = 2; + a16 = 7; + a10 = 1; + a13 = 0; + a20 = 1; + a9 = 9; + a5 = 4; + a21 = 10; + a28 = 0; + return 23; + } else if((((a19==3)&&(((((a2==1)&&(a21==11))&&(a1==12))||!(a11==1))&&(a20==1)))&&((a16==8)&&((a3==1)&&((a11==1)&&((((!(a24==1)&&(((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a26==1)))&&(a17==2))&&(a9==9))&&!(a4==1))))))){ + a9 = 11; + a19 = 5; + a21 = 10; + a16 = 10; + a12 = 1; + a26 = 0; + a28 = 1; + a1 = 13; + a5 = 4; + return 21; + } else if(((((!(a27==1)&&((a6==1)&&(!(a7==1)&&((a17==2)&&(((a19==2)&&(input==3))&&(a9==11))))))&&(a28==1))&&(a21==12))&&(((((a1==13)&&((a16==7)&&((a3==1)&&!(a14==1))))&&(a12==1))&&(a5==5))&&(a20==1)))){ + a5 = 4; + a1 = 12; + a21 = 10; + a4 = 0; + a7 = 0; + a19 = 1; + a6 = 1; + a9 = 7; + return -1; + } else if((((a1==14)&&(((!(a12==1)||((a23==1)&&((a11==1)&&(a17==2))))||(a24==1))||(a27==1)))&&((((a16==10)&&((((!(a24==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4)))&&(a19==1))&&(a2==1))&&(a9==8)))&&(a21==11))&&(a20==1)))){ + a8 = 0; + a5 = 4; + a21 = 10; + a16 = 7; + a1 = 12; + a9 = 7; + a11 = 1; + return -1; + } else if((((((a9==8)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))&&!(a7==1))&&(a21==10))&&(!(a20==1)&&((a16==10)&&(((a19==5)&&((a17==2)&&(!(a7==1)&&(((!(a18==1)&&((a13==1)||(a24==1)))||(a18==1))&&(a23==1)))))&&(a1==12)))))){ + if((a23==1)){ + a4 = 1; + a5 = 5; + a20 = 1; + a16 = 7; + a9 = 10; + a15 = 0; + a21 = 12; + }else{ + a19 = 4; + a1 = 14; + a4 = 1; + a13 = 0; + a3 = 0; + a20 = 1; + a5 = 5; + a16 = 7; + a9 = 7; + } + return 23; + } else if((((a21==10)&&((a16==9)&&((a11==1)&&((a23==1)&&((a2==1)&&(!(a8==1)&&((input==4)&&((a5==5)||(a5==6)))))))))&&((a19==5)&&(((a17==2)&&(((a26==1)||(((a12==1)&&!(a26==1))&&(a9==7)))&&(a20==1)))&&(a1==13))))){ + a5 = 4; + a19 = 1; + a1 = 12; + a24 = 0; + a16 = 7; + a23 = 1; + a28 = 1; + return -1; + } else if(((((!(a20==1)&&((a7==1)&&((!(a6==1)&&(a28==1))&&(a18==1))))&&(a7==1))&&(a16==7))&&(!(a11==1)&&(((a1==12)&&(!(a3==1)&&((((a19==3)&&((input==4)&&((a5==6)||((a5==4)||(a5==5)))))&&(a9==7))&&(a17==2))))&&(a21==11))))){ + a14 = 1; + a5 = 6; + a1 = 13; + a22 = 0; + a7 = 1; + a16 = 8; + return 25; + } else if(((!(a8==1)&&((a27==1)||((a19==3)&&((((a9==11)&&((a24==1)||((a2==1)&&(a20==1))))&&(a16==8))&&(a1==12)))))&&((a12==1)&&(((a21==12)&&((((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&(a17==2))&&!(a26==1)))&&!(a7==1))))){ + a19 = 1; + a23 = 1; + a5 = 4; + a9 = 7; + a21 = 10; + a16 = 7; + a27 = 0; + return -1; + } else if(((((((a3==1)&&((a19==5)&&(((a5==5)||(a5==6))&&(input==5))))&&(a21==12))&&(a20==1))&&(a3==1))&&((!(a26==1)&&((a9==7)&&(((a17==2)&&((a24==1)||((a28==1)&&((a16==7)&&(a13==1)))))||(a24==1))))&&(a1==13)))){ + a24 = 0; + a5 = 6; + a9 = 8; + a1 = 14; + a16 = 8; + a8 = 0; + a19 = 1; + a12 = 1; + return 21; + } else if((((a8==1)&&((a21==10)&&((!(a2==1)&&(((a2==1)&&(a24==1))&&(a19==2)))&&(a17==2))))&&((a1==14)&&((((((a18==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a20==1)))&&(a9==7))&&!(a11==1))&&(a16==9))&&!(a28==1))))){ + a16 = 8; + a9 = 10; + a10 = 1; + a21 = 11; + a20 = 0; + a26 = 1; + a22 = 0; + a5 = 4; + a1 = 12; + return -1; + } else if((((((a1==12)&&(((input==5)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(a28==1)))&&(a17==2))&&!(a7==1))&&((a21==12)&&((!(a11==1)||(((((!(a13==1)||(a6==1))&&(a20==1))&&(a11==1))&&(a16==8))&&(a23==1)))&&(a19==1))))){ + a14 = 0; + a5 = 4; + a9 = 11; + a16 = 10; + a4 = 0; + a1 = 13; + a21 = 11; + a19 = 4; + a28 = 1; + return 25; + } else if(((!(a7==1)&&((a21==11)&&((a19==5)&&(((a16==8)&&((input==5)&&(a20==1)))&&(a9==11)))))&&(((a1==14)&&((a5==6)&&(!(a2==1)||(((a23==1)&&(((a3==1)&&(a28==1))&&(a17==2)))&&!(a0==1)))))||(a7==1)))){ + a16 = 10; + a19 = 4; + a24 = 0; + a7 = 0; + a1 = 12; + a5 = 4; + a23 = 1; + return 22; + } else if((((((a17==2)&&(!(a8==1)&&((a14==1)||(((!(a20==1)&&(a11==1))||(a26==1))||(a7==1)))))&&(a16==9))&&(a19==4))&&((a21==10)&&(((((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))&&(input==3))&&!(a24==1))&&(a3==1))&&(a1==14))))){ + if((a13==1)){ + a3 = 0; + a20 = 1; + a29 = 1; + a1 = 12; + a12 = 0; + a19 = 3; + a5 = 6; + a16 = 8; + a9 = 11; + }else{ + a5 = 5; + a9 = 8; + a18 = 1; + a21 = 11; + a2 = 0; + a26 = 1; + } + return -1; + } else if((((a20==1)&&(!(a26==1)&&(((a11==1)&&(((a21==11)&&((input==5)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))))&&!(a24==1)))&&(a19==3))))&&((a1==12)&&((a17==2)&&(((!(a3==1)||((a6==1)||(a24==1)))&&(a16==9))||(a24==1)))))){ + a19 = 1; + a9 = 7; + a21 = 10; + a14 = 0; + a5 = 4; + a16 = 7; + a2 = 1; + return -1; + } else if((((!(a6==1)||((((a21==10)&&((a3==1)||(a4==1)))&&(a1==14))&&!(a27==1)))||(a18==1))&&((!(a20==1)&&((a19==1)&&(((a12==1)&&(((input==1)&&(((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))))&&(a17==2)))&&(a16==7))))&&!(a7==1)))){ + a9 = 7; + a26 = 0; + a5 = 4; + a20 = 1; + a18 = 0; + a28 = 1; + a1 = 12; + return -1; + } else if((((a8==1)||((a2==1)&&((a19==1)&&((((a21==10)&&((a6==1)||(a14==1)))&&(a16==11))&&!(a18==1)))))&&(((a17==2)&&((a1==14)&&((a5==6)&&((((input==1)&&(a9==9))&&(a28==1))&&!(a18==1)))))&&(a20==1)))){ + a9 = 7; + a13 = 1; + a21 = 12; + a1 = 12; + a5 = 5; + a19 = 2; + a26 = 0; + a16 = 9; + return 21; + } else if((((a21==10)&&((a1==13)&&((a17==2)&&(!(a0==1)&&((((!(a20==1)&&(a12==1))&&(a5==4))&&!(a0==1))&&(a28==1))))))&&((a19==4)&&((!(a0==1)&&(!(a24==1)&&((a28==1)&&((a16==9)&&(input==4)))))&&(a9==8))))){ + if((a11==1)){ + a15 = 0; + a20 = 1; + a28 = 0; + a9 = 7; + a19 = 3; + a7 = 1; + a21 = 11; + }else{ + a1 = 14; + a13 = 0; + a15 = 0; + a20 = 1; + a9 = 7; + a19 = 1; + a16 = 7; + } + return -1; + } else if((((a8==1)||((a21==12)&&((a23==1)&&(((a4==1)||((a1==12)&&(a6==1)))&&(a9==11)))))&&((a19==4)&&(((((((a16==8)&&((input==3)&&((a5==5)||(a5==6))))&&(a2==1))&&!(a27==1))&&(a17==2))&&(a2==1))&&!(a20==1))))){ + a20 = 1; + a4 = 1; + a19 = 2; + a21 = 10; + a16 = 7; + a23 = 0; + a25 = 1; + a5 = 6; + return -1; + } else if((((a21==11)&&((!(a0==1)&&((a19==2)&&((input==5)&&(((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))))))&&!(a14==1)))&&((a17==2)&&((a1==12)&&((a4==1)||((a16==8)&&(((!(a20==1)&&((a6==1)&&(a12==1)))&&!(a24==1))||(a26==1)))))))){ + a16 = 11; + a5 = 5; + a2 = 1; + a1 = 14; + a19 = 5; + a9 = 10; + a20 = 1; + a21 = 12; + a13 = 1; + a12 = 1; + return 25; + } else if((((((a7==1)&&(((a3==1)&&(a21==10))&&(a20==1)))&&!(a2==1))&&(a14==1))&&((a19==4)&&(((!(a23==1)&&((a16==9)&&((((input==4)&&((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11))))&&(a18==1))&&(a17==2))))&&!(a11==1))&&(a1==14))))){ + a1 = 13; + a19 = 3; + a2 = 0; + a9 = 11; + a29 = 1; + a5 = 5; + a21 = 12; + a18 = 1; + a16 = 11; + return 26; + } else if((((a9==11)&&(((a5==6)&&(((((a4==1)||((a21==10)&&((a14==1)||(a11==1))))||!(a3==1))||!(a13==1))&&(a17==2)))||(a7==1)))&&(!(a24==1)&&((a20==1)&&((((input==4)&&(a16==10))&&(a19==5))&&(a1==14)))))){ + a16 = 7; + a27 = 0; + a1 = 12; + a11 = 1; + a19 = 1; + a9 = 7; + a5 = 4; + a23 = 1; + return -1; + } else if(((((((a3==1)&&((a17==2)&&((!(a8==1)&&((a11==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&!(a20==1))))&&(a9==7))))&&(a19==1))&&(a16==8))&&(a1==13))&&((((a7==1)||((a23==1)||!(a28==1)))&&!(a18==1))&&(a21==12)))){ + if((a0==1)){ + a9 = 11; + a19 = 5; + a5 = 5; + a16 = 10; + a20 = 1; + a21 = 10; + a23 = 0; + a25 = 1; + }else{ + a13 = 0; + a1 = 12; + a20 = 1; + a16 = 7; + a29 = 0; + a15 = 1; + a9 = 11; + a21 = 10; + a5 = 5; + a19 = 2; + } + return -1; + } else if(((!(a0==1)&&(((a13==1)&&((a23==1)&&((a9==11)&&(!(a18==1)&&((input==5)&&((a5==4)||(a5==5)))))))&&(a20==1)))&&(((a16==7)&&((((a11==1)&&((a17==2)&&((a19==5)&&(a23==1))))&&(a1==13))&&(a21==12)))&&(a13==1)))){ + a1 = 14; + a9 = 9; + a21 = 11; + a6 = 1; + a12 = 1; + a5 = 5; + a27 = 0; + a16 = 9; + return 26; + } else if((((a12==1)&&(((a26==1)||(a13==1))&&(a23==1)))&&((a21==11)&&(((a16==8)&&(!(a20==1)&&((((a23==1)&&((((a19==4)&&((input==1)&&((a5==4)||(a5==5))))&&(a2==1))&&(a17==2)))&&(a9==11))&&(a6==1))))&&(a1==14))))){ + a9 = 7; + a1 = 12; + a14 = 0; + a16 = 7; + a19 = 1; + a20 = 1; + a3 = 1; + a27 = 0; + a21 = 10; + a5 = 4; + return -1; + } else if(((!(a20==1)&&((a19==5)&&(((((((a6==1)&&(a1==14))&&(a23==1))&&(a17==2))&&(a16==9))&&!(a27==1))&&(a21==10))))&&(((a23==1)&&((!(a24==1)&&((input==1)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))&&(a3==1)))&&!(a8==1)))){ + if((a24==1)){ + a19 = 3; + a28 = 0; + a5 = 5; + a8 = 1; + a1 = 12; + a9 = 7; + a12 = 0; + a21 = 12; + a16 = 8; + a20 = 1; + }else{ + a8 = 1; + a24 = 1; + a19 = 4; + a9 = 10; + a5 = 4; + a0 = 1; + } + return 25; + } else if(((((!(a27==1)&&(((a20==1)&&(((a11==1)&&((a23==1)&&((input==6)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))))&&(a1==14)))&&!(a4==1)))&&(a19==4))&&(a21==11))&&(((((a28==1)&&(a16==8))||!(a2==1))||!(a3==1))&&(a17==2)))){ + a1 = 12; + a21 = 10; + a9 = 7; + a5 = 4; + a6 = 1; + a11 = 1; + a19 = 1; + a16 = 7; + return -1; + } else if(((!(a8==1)&&(!(a8==1)&&(!(a20==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5)))))))&&(((a9==11)&&(((a16==7)&&(!(a6==1)||(!(a7==1)&&((a19==3)&&((((a3==1)&&(a21==11))&&(a1==13))&&(a17==2))))))||(a0==1)))&&!(a14==1)))){ + a21 = 10; + a0 = 0; + a26 = 0; + a9 = 10; + a2 = 1; + a16 = 10; + a1 = 14; + a20 = 1; + a5 = 5; + a19 = 4; + return 25; + } else if((((!(a7==1)&&((!(a24==1)&&((((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5)))&&(input==6))&&(a12==1)))&&(a17==2)))&&(a23==1))&&(((((a21==12)&&((a20==1)&&((a16==10)&&((a11==1)&&(a19==3)))))&&(a1==13))||!(a12==1))&&!(a26==1)))){ + a19 = 1; + a5 = 6; + a12 = 1; + a9 = 8; + a1 = 12; + a23 = 1; + a16 = 7; + return -1; + } else if(((!(a18==1)&&(!(a0==1)&&((a3==1)&&(((a12==1)&&(a19==1))&&!(a20==1)))))&&((a12==1)&&((a6==1)&&((((a16==9)&&((a21==12)&&((input==6)&&(((a9==7)&&((a5==5)&&(a1==13)))||(((a9==11)&&((a5==6)&&(a1==12)))||((a9==7)&&((a1==13)&&(a5==4))))))))&&(a17==2))&&!(a24==1)))))){ + a21 = 11; + a5 = 5; + a1 = 12; + a9 = 10; + a19 = 4; + a28 = 0; + a15 = 0; + a16 = 8; + a13 = 0; + return -1; + } else if((((a16==7)&&(((a9==9)&&(((a17==2)&&((a21==11)&&((input==6)&&((a5==5)||(a5==6)))))&&(a19==2)))&&!(a20==1)))&&((a1==13)&&((a7==1)||(((!(a4==1)&&((a26==1)||(!(a28==1)||(a6==1))))&&(a11==1))&&!(a18==1)))))){ + a19 = 4; + a5 = 6; + a2 = 1; + a16 = 8; + a20 = 1; + a13 = 1; + a9 = 10; + a14 = 0; + return 25; + } else if((((!(a13==1)||((a19==5)&&((a1==14)&&((((a12==1)&&((a14==1)||(a28==1)))&&(a21==12))||(a18==1)))))||!(a2==1))&&((!(a8==1)&&(((a16==7)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==6)))&&(a17==2)))&&(a20==1)))){ + a12 = 1; + a9 = 7; + a21 = 10; + a6 = 1; + a19 = 1; + a1 = 12; + a4 = 0; + a5 = 4; + return -1; + } else if((((((a11==1)&&((((input==5)&&(((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))))&&(a21==11))&&(a23==1)))&&!(a24==1))&&!(a0==1))&&(((a16==7)&&(((a19==2)&&((a20==1)&&((a7==1)||((a13==1)&&(a1==14)))))&&(a17==2)))&&!(a24==1)))){ + a21 = 10; + a24 = 0; + a5 = 5; + a1 = 12; + a13 = 1; + a16 = 8; + a19 = 4; + a9 = 10; + a28 = 1; + return 23; + } else if(((((a17==2)&&(((!(a24==1)&&(((a13==1)&&(!(a28==1)||(a23==1)))||!(a6==1)))&&(a16==8))&&(a1==13)))&&(a21==12))&&((!(a24==1)&&((((a23==1)&&((input==4)&&(a5==5)))&&(a9==9))&&!(a20==1)))&&(a19==3)))){ + a9 = 10; + a21 = 10; + a16 = 11; + a2 = 0; + a19 = 2; + a15 = 1; + a3 = 0; + a1 = 14; + return -1; + } else if(((!(a28==1)||(((!(a3==1)||(((a23==1)&&(a17==2))&&(a21==11)))&&(a11==1))||!(a12==1)))&&(!(a27==1)&&((!(a20==1)&&((((input==6)&&((((a1==14)&&(a5==4))&&(a9==7))||((((a1==13)&&(a5==5))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==13))))))&&(a19==1))&&(a16==7)))&&!(a27==1))))){ + a11 = 1; + a5 = 4; + a6 = 1; + a1 = 13; + a20 = 1; + a16 = 9; + a9 = 9; + a21 = 12; + a0 = 0; + return 21; + } else if((((a9==9)&&((a1==14)&&((!(a0==1)&&(((input==4)&&!(a20==1))&&!(a27==1)))&&(a16==7))))&&(((((a19==4)&&((((a0==1)||((a28==1)&&(a17==2)))||(a14==1))&&(a21==12)))&&(a5==5))||(a24==1))||!(a23==1)))){ + a4 = 0; + a9 = 7; + a19 = 1; + a1 = 12; + a20 = 1; + a23 = 1; + a21 = 10; + a5 = 4; + return -1; + } else if((((a19==5)&&(((a26==1)||(((a5==6)&&(((a16==10)&&((a13==1)&&(a28==1)))&&(a21==12)))&&(a6==1)))&&!(a18==1)))&&((!(a14==1)&&(((a1==12)&&(((a17==2)&&(input==4))&&(a9==8)))&&!(a20==1)))&&(a3==1)))){ + a9 = 7; + a16 = 7; + a19 = 2; + a20 = 1; + a22 = 0; + a14 = 1; + a21 = 10; + a6 = 0; + return -1; + } else if((((a9==8)&&(!(a0==1)&&((a28==1)&&(((a5==4)||(a5==5))&&(input==3)))))&&((((a24==1)||((a16==7)&&((a1==14)&&((a21==12)&&(((a19==1)&&(((a23==1)||!(a3==1))||!(a13==1)))&&(a6==1))))))&&(a17==2))&&!(a20==1)))){ + a1 = 12; + a5 = 4; + a13 = 1; + a21 = 10; + a20 = 1; + a9 = 7; + a3 = 1; + a7 = 0; + return -1; + } else if(((!(a13==1)||((!(a14==1)&&((((((a17==2)&&((a13==1)&&(a1==13)))&&(a20==1))&&(a16==8))&&(a9==7))||(a24==1)))&&!(a24==1)))&&((a6==1)&&((a21==12)&&((a6==1)&&(((a19==5)&&(input==5))&&(a5==6))))))){ + a0 = 0; + a21 = 10; + a5 = 4; + a1 = 12; + a18 = 0; + a19 = 1; + a16 = 7; + a26 = 0; + return -1; + } else if(((((a17==2)&&((a21==11)&&((a2==1)&&(a19==4))))&&!(a26==1))&&(((a3==1)&&((a16==7)&&((a23==1)&&(((!(a0==1)&&((a1==12)&&((((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(input==3))))&&(a13==1))&&(a28==1)))))&&(a20==1)))){ + a5 = 4; + a0 = 0; + a21 = 10; + a9 = 7; + a3 = 1; + a19 = 1; + a12 = 1; + return -1; + } else if(((((a16==9)&&((a21==11)&&((((a19==2)&&(((input==3)&&((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11))))&&!(a20==1)))&&(a1==14))&&!(a0==1))))&&(a28==1))&&((a17==2)&&((a27==1)||((a0==1)||((a0==1)||((a12==1)&&(a2==1)))))))){ + if((a23==1)){ + a21 = 10; + a5 = 6; + a20 = 1; + a13 = 0; + a19 = 1; + a16 = 7; + a14 = 1; + a6 = 0; + a9 = 10; + }else{ + a10 = 0; + a6 = 0; + a23 = 0; + a5 = 6; + a16 = 7; + a20 = 1; + a19 = 3; + a9 = 8; + } + return -1; + } else if((((a9==8)&&(((a1==13)&&((a6==1)&&(((a2==1)&&((a13==1)&&((a6==1)||(a0==1))))&&!(a24==1))))&&(a16==9)))&&(((a20==1)&&((a19==2)&&(((a5==4)&&((input==1)&&(a17==2)))&&!(a7==1))))&&(a21==12)))){ + a27 = 0; + a2 = 1; + a19 = 1; + a1 = 12; + a0 = 0; + a16 = 7; + a21 = 10; + a9 = 7; + return -1; + } else if(((!(a27==1)&&((a13==1)&&((((((input==5)&&((a5==4)||(a5==5)))&&(a12==1))&&!(a8==1))&&(a20==1))&&!(a26==1))))&&((a19==2)&&((a1==13)&&((a16==10)&&((a9==8)&&((((a17==2)&&(a6==1))&&(a21==12))&&(a3==1)))))))){ + a21 = 10; + a5 = 5; + a16 = 7; + a19 = 4; + a1 = 14; + a9 = 7; + a2 = 1; + a12 = 1; + a24 = 0; + return 25; + } else if((((!(a20==1)&&(((a16==8)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&!(a24==1)))&&(a13==1)))&&(a17==2))&&(((a19==4)&&((a21==10)&&((a6==1)&&((a9==8)&&((a4==1)||((a7==1)||((a12==1)||(a27==1))))))))&&(a1==13)))){ + a19 = 1; + a27 = 0; + a9 = 7; + a12 = 1; + a1 = 12; + a16 = 7; + a13 = 1; + a20 = 1; + a5 = 4; + return -1; + } else if((((a5==5)&&(((a3==1)&&(!(a28==1)||(a12==1)))&&(a28==1)))&&((((a16==9)&&((a9==11)&&((((a17==2)&&((!(a0==1)&&((a1==13)&&(input==1)))&&!(a18==1)))&&(a6==1))&&(a21==12))))&&(a19==2))&&(a20==1)))){ + a21 = 10; + a3 = 1; + a8 = 0; + a18 = 0; + a9 = 10; + a16 = 7; + return 21; + } else if((((a19==2)&&((a21==11)&&(((a16==9)&&((a12==1)&&((a9==11)&&((a11==1)&&((input==3)&&((a5==5)||(a5==6)))))))&&(a17==2))))&&((a20==1)&&(((a7==1)||((a28==1)&&((a7==1)||((a2==1)&&!(a7==1)))))&&(a1==13))))){ + a4 = 0; + a9 = 7; + a1 = 12; + a19 = 1; + a16 = 7; + a21 = 10; + a5 = 4; + a14 = 0; + a11 = 1; + return -1; + } else if((((((a17==2)&&(((!(a18==1)&&(a3==1))&&(a2==1))&&(a1==14)))&&(a21==11))&&!(a20==1))&&((a16==8)&&(((a19==5)&&((a23==1)&&((((((a5==4)||(a5==5))&&(input==5))&&!(a7==1))&&!(a27==1))&&(a23==1))))&&(a9==8))))){ + if((a10==1)){ + a9 = 7; + a15 = 1; + a20 = 1; + a1 = 13; + a21 = 10; + a26 = 1; + a16 = 11; + a5 = 4; + a24 = 1; + a19 = 3; + }else{ + a26 = 1; + a5 = 5; + a21 = 10; + a14 = 1; + a1 = 12; + a19 = 2; + a0 = 1; + a9 = 10; + a16 = 7; + a20 = 1; + } + return 25; + } else if((((((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))&&(input==1))&&!(a14==1))&&((a20==1)&&((((a19==3)&&(((!(a12==1)||(((((a17==2)&&(a13==1))&&!(a8==1))||!(a13==1))&&(a16==11)))&&!(a4==1))||!(a3==1)))&&(a21==12))&&(a1==12))))){ + a5 = 4; + a28 = 1; + a9 = 9; + a4 = 0; + a14 = 0; + a1 = 14; + a21 = 11; + a16 = 7; + return 22; + } else if(((!(a28==1)||(((((a2==1)&&(a5==6))&&(a20==1))&&!(a27==1))&&(a21==11)))&&(((a12==1)&&((a1==13)&&(((a28==1)&&((a3==1)&&(((a6==1)&&((input==1)&&(a9==11)))&&(a17==2))))&&(a19==3))))&&(a16==7)))){ + a16 = 8; + a2 = 1; + a9 = 10; + a8 = 0; + a19 = 1; + a5 = 4; + a1 = 14; + a28 = 1; + return 22; + } else if(((!(a8==1)&&(((((((a2==1)&&((input==1)&&(a5==4)))&&(a17==2))&&(a12==1))&&(a1==13))&&(a9==11))&&(a16==8)))&&((a21==10)&&((!(a20==1)&&((a8==1)||((a19==3)&&(!(a18==1)&&(a28==1)))))||(a14==1))))){ + a19 = 5; + a0 = 0; + a21 = 12; + a20 = 1; + a9 = 9; + a12 = 1; + a3 = 1; + a1 = 12; + a16 = 11; + return 25; + } else if(((!(a0==1)&&((a21==11)&&((a23==1)&&(((a9==11)&&(((a1==13)&&((((a5==5)&&(input==5))&&(a16==7))&&(a17==2)))&&!(a4==1)))&&(a6==1)))))&&((a19==3)&&(((a2==1)&&((a14==1)||(a2==1)))&&(a20==1))))){ + a16 = 8; + a28 = 1; + a19 = 1; + a11 = 1; + a9 = 9; + a1 = 14; + a5 = 4; + a27 = 0; + return 23; + } else if(((((a23==1)&&(((a23==1)&&((((a21==12)&&(a3==1))&&!(a14==1))&&!(a20==1)))||(a14==1)))&&(a12==1))&&((a17==2)&&(((a16==10)&&((input==3)&&(((a19==3)&&(((a5==4)&&(a1==12))&&(a9==7)))||(((a19==2)&&(((a5==5)&&(a1==14))&&(a9==11)))||((a19==2)&&(((a5==6)&&(a1==14))&&(a9==11)))))))&&(a3==1))))){ + a1 = 14; + a9 = 7; + a19 = 5; + a7 = 1; + a18 = 1; + a10 = 1; + a21 = 10; + a5 = 4; + a16 = 8; + return -1; + } else if((((a1==12)&&((a19==1)&&((a21==10)&&((a28==1)&&((a5==4)&&((input==5)&&(a20==1)))))))&&((((((a16==10)&&((((a9==11)&&(a6==1))&&(a17==2))||(a18==1)))&&(a23==1))&&!(a27==1))&&!(a27==1))||!(a3==1)))){ + a23 = 1; + a18 = 0; + a9 = 7; + a16 = 7; + a8 = 0; + return -1; + } else if((((!(a7==1)&&((((a11==1)&&(((a5==5)||(a5==6))&&(input==5)))&&(a19==3))&&(a1==14)))&&!(a18==1))&&(((a13==1)&&(!(a12==1)||((a16==8)&&((((a9==7)&&((a11==1)&&(a20==1)))&&(a2==1))&&(a21==11)))))&&(a17==2)))){ + a26 = 0; + a19 = 1; + a1 = 13; + a8 = 0; + a16 = 10; + a9 = 10; + a5 = 4; + a4 = 0; + return 21; + } else if((((a21==10)&&((((!(a8==1)&&(((a1==14)&&(((input==3)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(a28==1)))&&!(a27==1)))&&(a6==1))&&(a16==10))&&!(a20==1)))&&(((a17==2)&&(((a28==1)&&(a2==1))&&(a19==4)))||!(a13==1)))){ + a20 = 1; + a19 = 2; + a1 = 12; + a16 = 7; + a2 = 0; + a10 = 0; + a5 = 6; + a9 = 9; + a25 = 1; + return 21; + } else if((((a19==2)&&((a7==1)||(((!(a28==1)||((a11==1)&&(a17==2)))&&(a20==1))||(a0==1))))&&((!(a27==1)&&(!(a4==1)&&(((a16==11)&&(((input==1)&&((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4))))&&(a6==1)))&&(a21==10))))&&(a1==12)))){ + a5 = 6; + a7 = 0; + a3 = 1; + a21 = 11; + a9 = 11; + return 21; + } else if((((!(a14==1)&&(((!(a7==1)&&((a6==1)&&(a17==2)))||(a18==1))&&(a1==12)))&&!(a24==1))&&(((a9==7)&&(((a5==5)&&((a16==7)&&((((a19==5)&&(input==5))&&(a21==10))&&!(a18==1))))&&!(a20==1)))&&!(a26==1)))){ + a5 = 4; + a23 = 1; + a11 = 1; + a19 = 1; + a20 = 1; + a26 = 0; + return -1; + } else if((((a16==9)&&(!(a7==1)&&(((a17==2)&&((a1==14)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a6==1))))&&(a11==1))))&&((a27==1)||((a4==1)||((a20==1)&&(((((a2==1)&&(a19==1))&&(a9==8))&&(a21==12))&&(a23==1))))))){ + a6 = 1; + a11 = 1; + a21 = 10; + a1 = 12; + a5 = 4; + a16 = 7; + a9 = 7; + a8 = 0; + return -1; + } else if((((!(a18==1)&&(((a19==2)&&(!(a27==1)&&((a21==11)&&(((a17==2)&&(input==3))&&(a1==12)))))&&!(a27==1)))&&(a5==6))&&((a16==10)&&((a9==7)&&((a8==1)||(((a20==1)&&(!(a4==1)&&(a13==1)))||(a14==1))))))){ + a21 = 10; + a18 = 0; + a4 = 0; + a16 = 7; + a5 = 4; + a19 = 1; + a8 = 0; + return -1; + } else if(((((((!(a28==1)&&((((input==1)&&((a5==4)||(a5==5)))&&(a1==13))&&!(a28==1)))&&(a4==1))&&(a20==1))&&(a17==2))&&(a21==10))&&((a16==11)&&(((a19==1)&&((!(a28==1)&&(!(a12==1)&&(a2==1)))&&!(a23==1)))&&(a9==8))))){ + a16 = 7; + a9 = 10; + a19 = 2; + a3 = 0; + a5 = 4; + a1 = 12; + a2 = 0; + a29 = 1; + return 21; + } else if((((a16==10)&&(!(a20==1)&&((a1==13)&&((a17==2)&&((a21==10)&&(((a4==1)||(a28==1))&&(a23==1)))))))&&((!(a18==1)&&((a19==4)&&((a23==1)&&(((a3==1)&&(((a5==4)||(a5==5))&&(input==6)))&&(a2==1)))))&&(a9==11)))){ + if((a2==1)){ + a9 = 9; + a16 = 7; + a20 = 1; + a5 = 6; + a19 = 2; + a29 = 1; + a21 = 11; + a4 = 1; + a0 = 1; + }else{ + a9 = 8; + a19 = 2; + a20 = 1; + a10 = 0; + a1 = 12; + a26 = 1; + a16 = 7; + a5 = 4; + } + return 26; + } else if(((((a1==13)&&((a17==2)&&(!(a20==1)&&((a9==9)&&(!(a27==1)&&(((a5==4)||(a5==5))&&(input==1)))))))&&(a19==5))&&((((!(a0==1)&&((((a28==1)&&!(a18==1))&&!(a7==1))&&!(a24==1)))&&(a28==1))&&(a16==7))&&(a21==11)))){ + a5 = 4; + a9 = 7; + a19 = 1; + a6 = 1; + a21 = 10; + a20 = 1; + a26 = 0; + a0 = 0; + a1 = 12; + return -1; + } else if((((a19==5)&&((a16==10)&&((((((a3==1)&&((a13==1)&&(((a5==4)||(a5==5))&&(input==3))))&&!(a7==1))&&!(a8==1))&&(a9==9))&&(a21==10))))&&((!(a24==1)&&((((a3==1)||!(a28==1))&&(a17==2))&&(a1==12)))&&!(a20==1)))){ + a1 = 14; + a5 = 5; + a19 = 1; + a20 = 1; + a9 = 7; + a16 = 7; + a2 = 0; + a26 = 1; + a15 = 1; + return -1; + } else if((((a23==1)&&(((a3==1)&&(a16==8))&&!(a8==1)))&&((((((a9==11)&&(((a13==1)&&(!(a8==1)&&(((a21==10)&&(((a5==5)||(a5==6))&&(input==4)))&&!(a18==1))))&&(a19==4)))&&(a17==2))&&!(a8==1))&&(a1==12))&&!(a20==1)))){ + a16 = 7; + a9 = 7; + a28 = 1; + a19 = 1; + a24 = 0; + a11 = 1; + a5 = 4; + a20 = 1; + return -1; + } else if((((a6==1)&&(((!(a8==1)&&((a16==8)&&((input==4)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))))&&(a20==1))&&(a21==12)))&&((a13==1)&&((!(a11==1)||(((!(a6==1)||((a6==1)&&(a19==3)))&&(a17==2))||!(a11==1)))&&(a1==12))))){ + a24 = 0; + a9 = 7; + a19 = 1; + a13 = 1; + a21 = 10; + a14 = 0; + a16 = 7; + a5 = 4; + return -1; + } else if((((a9==7)&&(((!(a3==1)||(((a17==2)&&((a5==6)&&(a12==1)))&&!(a20==1)))&&(a21==12))&&(a1==13)))&&(((!(a18==1)&&(!(a7==1)&&((a6==1)&&(((a16==9)&&(input==1))&&(a19==2)))))&&!(a4==1))&&(a28==1)))){ + if((a0==1)){ + a24 = 1; + a16 = 8; + a5 = 5; + a1 = 12; + a2 = 0; + a19 = 1; + a7 = 1; + }else{ + a18 = 1; + a2 = 0; + a16 = 7; + a9 = 8; + a21 = 10; + a1 = 12; + a20 = 1; + a3 = 0; + } + return -1; + } else if(((((a9==11)&&(((((!(a13==1)&&(a12==1))&&(a16==8))&&(a0==1))&&!(a11==1))&&(a20==1)))&&(a1==14))&&(((a4==1)&&((a19==2)&&(((((input==5)&&(a17==2))&&(a8==1))&&(a5==5))&&(a8==1))))&&(a21==10)))){ + a1 = 12; + a16 = 7; + a22 = 1; + a27 = 1; + a18 = 1; + a5 = 6; + return 26; + } else if(((((a20==1)&&(((a21==12)&&((((((a5==6)&&(a1==14))&&(a9==11))&&(a19==4))||((a19==5)&&(((a1==12)&&(a5==4))&&(a9==7))))&&(input==1)))&&(a11==1)))&&(a16==10))&&(!(a26==1)&&(!(a2==1)||((a13==1)&&(((!(a26==1)&&(a6==1))&&!(a8==1))&&(a17==2))))))){ + a18 = 0; + a6 = 1; + a9 = 9; + a21 = 10; + a19 = 2; + a11 = 1; + a16 = 7; + a1 = 13; + a5 = 4; + return -1; + } else if(((((((a12==1)&&(((a19==1)&&(a23==1))||(a18==1)))&&!(a7==1))&&(a16==7))&&!(a20==1))&&((a21==12)&&((a1==12)&&((a17==2)&&((!(a4==1)&&(((a11==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))&&(a9==10)))&&(a28==1))))))){ + if((a2==1)){ + a21 = 11; + a5 = 5; + a18 = 0; + a16 = 8; + a3 = 1; + a19 = 4; + a2 = 1; + a9 = 8; + }else{ + a24 = 0; + a5 = 4; + a11 = 1; + a20 = 1; + a23 = 1; + a21 = 10; + a1 = 13; + a19 = 2; + } + return 21; + } else if((((a20==1)&&(((a16==7)&&((a0==1)||(((a13==1)&&(a2==1))&&(a23==1))))&&(a19==4)))&&((a17==2)&&((a1==13)&&((a9==8)&&((a12==1)&&((a21==10)&&((a12==1)&&((((a5==4)||(a5==5))&&(input==6))&&!(a4==1)))))))))){ + a1 = 12; + a19 = 5; + a5 = 5; + a20 = 0; + a24 = 0; + a14 = 0; + a21 = 12; + a9 = 11; + a23 = 1; + return 21; + } else if((((a16==10)&&((a17==2)&&((a9==7)&&((!(a14==1)&&((((a5==4)||(a5==5))&&(input==1))&&(a19==3)))&&!(a4==1)))))&&((!(a2==1)||(((a4==1)||((!(a27==1)&&((a28==1)&&!(a20==1)))&&(a6==1)))&&(a21==10)))&&(a1==13)))){ + a19 = 4; + a16 = 9; + a5 = 5; + a1 = 14; + a15 = 0; + a9 = 10; + a25 = 1; + return -1; + } else if((((!(a28==1)||(!(a4==1)&&((a4==1)||((a1==12)&&(((((a8==1)||(a23==1))&&(a9==8))&&(a11==1))&&!(a7==1))))))&&(a19==1))&&((a16==11)&&((((a5==5)&&((a20==1)&&(input==5)))&&(a17==2))&&(a21==10))))){ + a16 = 7; + a5 = 4; + a12 = 1; + a18 = 0; + a1 = 13; + a19 = 2; + a6 = 1; + a9 = 9; + return 25; + } else if((((((((a11==1)&&((a16==11)&&(a11==1)))&&(a9==9))&&!(a20==1))&&!(a8==1))&&(a1==14))&&((!(a24==1)&&(((a21==10)&&((a3==1)&&((a6==1)&&(((input==3)&&(a17==2))&&(a5==6)))))&&(a19==2)))&&!(a8==1)))){ + a19 = 5; + a14 = 1; + a1 = 12; + a16 = 10; + a25 = 0; + a21 = 11; + a5 = 5; + a20 = 1; + a9 = 11; + a10 = 0; + return -1; + } else if((((a9==10)&&((((a20==1)&&((a1==13)&&(!(a13==1)&&(!(a2==1)&&(!(a6==1)&&((a26==1)&&((input==1)&&((a5==4)||(a5==5)))))))))&&(a19==2))&&(a17==2)))&&((((a21==10)&&((a16==10)&&(a11==1)))&&(a8==1))&&(a26==1)))){ + a5 = 6; + a19 = 1; + a2 = 0; + a7 = 1; + a10 = 0; + a16 = 7; + return 21; + } else if((((a23==1)&&(!(a18==1)&&((a20==1)&&((a3==1)&&(((a16==7)&&(((input==6)&&(((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))))&&(a21==10)))&&(a17==2))))))&&(((a14==1)||((((a19==3)&&(a28==1))||(a27==1))&&(a1==14)))||!(a3==1)))){ + a1 = 13; + a9 = 10; + a28 = 1; + a14 = 0; + a5 = 4; + a19 = 2; + a21 = 11; + a12 = 1; + return 25; + } else if((((!(a24==1)&&((a23==1)&&((((a9==9)&&((((input==5)&&((a5==5)||(a5==6)))&&(a19==1))&&(a16==8)))&&!(a20==1))&&(a17==2))))&&(a23==1))&&((a21==12)&&(!(a3==1)||(((!(a12==1)||(a12==1))||(a27==1))&&(a1==14)))))){ + a14 = 1; + a28 = 0; + a5 = 5; + a1 = 13; + a21 = 10; + a20 = 1; + a9 = 7; + a8 = 1; + a16 = 7; + return -1; + } else if(((((a16==7)&&((a5==4)&&(((a9==9)&&(!(a27==1)&&((input==3)&&(a21==12))))&&!(a0==1))))&&(a17==2))&&((a20==1)&&(((!(a4==1)&&(((a19==2)&&((a11==1)&&(a23==1)))&&(a2==1)))&&(a23==1))&&(a1==13))))){ + a0 = 0; + a7 = 0; + a1 = 12; + a19 = 1; + a9 = 7; + a8 = 0; + a21 = 10; + return -1; + } else if((((a26==1)||((a9==7)&&(((((!(a0==1)&&(a6==1))&&(a23==1))||(a26==1))&&(a5==6))&&(a17==2))))&&(!(a24==1)&&(((a16==8)&&((a1==13)&&((a20==1)&&((a21==12)&&((a19==3)&&(input==1))))))&&(a6==1))))){ + a1 = 12; + a19 = 1; + a21 = 10; + a26 = 0; + a3 = 1; + a16 = 7; + a5 = 4; + a11 = 1; + return -1; + } else if(((((((a20==1)&&(((a16==9)&&(!(a23==1)||((a12==1)&&(a11==1))))&&(a19==3)))||(a4==1))&&(a21==11))&&(a17==2))&&((!(a18==1)&&((a28==1)&&((((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))&&(input==4))&&(a1==14))))&&!(a14==1)))){ + a19 = 1; + a9 = 7; + a27 = 0; + a16 = 7; + a21 = 10; + a0 = 0; + a1 = 12; + a5 = 4; + a4 = 0; + return -1; + } else if((((a9==10)&&((!(a7==1)&&(((((a17==2)&&(!(a24==1)&&((input==3)&&((a5==5)||(a5==6)))))&&(a20==1))&&(a12==1))&&!(a24==1)))&&(a28==1)))&&((a1==14)&&(((a21==11)&&((a19==5)&&((a6==1)&&(a16==10))))&&!(a27==1))))){ + a1 = 12; + a16 = 7; + a9 = 7; + a21 = 10; + a14 = 0; + a27 = 0; + a5 = 4; + a19 = 1; + a2 = 1; + return -1; + } else if(((!(a0==1)&&((((a1==12)&&(((a5==6)&&((input==5)&&(a21==12)))&&(a19==2)))&&(a6==1))&&(a28==1)))&&((a16==10)&&((a17==2)&&((!(a20==1)&&((((a3==1)||(a24==1))||!(a23==1))&&(a9==11)))&&(a3==1)))))){ + a13 = 0; + a5 = 4; + a19 = 3; + a20 = 1; + a16 = 11; + a1 = 13; + a21 = 11; + a8 = 1; + a6 = 0; + return 22; + } else if(((!(a11==1)||(((a26==1)||((((a16==10)&&((a23==1)&&(a5==5)))||!(a11==1))&&(a20==1)))&&!(a26==1)))&&((((a12==1)&&((((a17==2)&&((a19==4)&&(input==1)))&&(a21==11))&&(a28==1)))&&(a1==14))&&(a9==10)))){ + if((a6==1)){ + a1 = 13; + a24 = 0; + a12 = 1; + a9 = 8; + a26 = 0; + a19 = 5; + a20 = 0; + a16 = 8; + a21 = 10; + }else{ + a19 = 5; + a0 = 0; + a13 = 1; + a21 = 12; + a16 = 8; + } + return 25; + } else if(((((!(a14==1)&&((((((a11==1)&&((input==6)&&!(a20==1)))&&!(a26==1))&&(a16==10))&&(a21==10))&&(a5==6)))&&(a19==4))&&(a1==12))&&(((a9==9)&&(((a6==1)&&((a17==2)&&(a28==1)))&&(a2==1)))&&(a13==1)))){ + if((a10==1)){ + a15 = 1; + a19 = 2; + a16 = 9; + a9 = 8; + a4 = 1; + a3 = 0; + }else{ + a28 = 0; + a0 = 1; + a9 = 10; + a1 = 13; + a19 = 1; + a5 = 4; + a20 = 1; + a16 = 7; + a13 = 0; + } + return -1; + } else if((((a13==1)&&((a1==13)&&((a17==2)&&((a6==1)&&(!(a0==1)&&((!(a24==1)&&((a16==9)&&(input==3)))&&(a21==12)))))))&&((((a20==1)&&((((a5==5)&&(a6==1))&&(a2==1))&&!(a0==1)))&&(a19==5))&&(a9==9)))){ + a28 = 1; + a11 = 1; + a19 = 1; + a9 = 7; + a13 = 1; + a21 = 10; + a1 = 12; + a5 = 4; + a16 = 7; + return -1; + } else if(((((a3==1)&&((a16==7)&&(!(a27==1)&&(((a12==1)&&(a21==11))||(a14==1)))))&&(a17==2))&&((a19==1)&&((a1==12)&&((((((input==1)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(a20==1))&&!(a27==1))&&(a11==1))&&!(a14==1)))))){ + a6 = 1; + a9 = 10; + a5 = 6; + a19 = 5; + a21 = 12; + a1 = 13; + a8 = 0; + return 21; + } else if((((a13==1)&&(((((a21==12)&&(a11==1))&&(a1==13))&&(a17==2))&&!(a8==1)))&&((((a16==9)&&((((a3==1)&&(!(a26==1)&&((a19==3)&&((input==6)&&((a5==5)||(a5==6))))))&&(a9==7))&&(a20==1)))&&(a23==1))&&(a2==1)))){ + a5 = 4; + a19 = 1; + a8 = 0; + a6 = 1; + a16 = 7; + a21 = 10; + a3 = 1; + a1 = 12; + return -1; + } else if(((((((input==4)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&!(a24==1))&&(a19==1))&&(a17==2))&&(!(a26==1)&&((((((a1==14)&&((((a28==1)&&(a16==9))&&!(a20==1))||(a7==1)))||!(a12==1))&&(a21==12))||(a8==1))||(a18==1))))){ + a10 = 0; + a19 = 2; + a16 = 7; + a9 = 8; + a5 = 6; + a14 = 1; + a24 = 1; + a21 = 10; + a20 = 1; + a1 = 12; + return 25; + } else if((((a3==1)&&((a19==3)&&((a17==2)&&(((a3==1)&&((a16==7)&&((a20==1)&&(((a3==1)&&(a1==12))&&(a9==8)))))&&!(a8==1)))))&&((a21==11)&&(((((input==3)&&(a5==4))&&(a12==1))&&!(a27==1))&&!(a0==1))))){ + a9 = 7; + a21 = 10; + a18 = 0; + a19 = 1; + a26 = 0; + a2 = 1; + return -1; + } else if((((a17==2)&&(((a1==14)&&((a11==1)&&((a16==11)&&(((a21==12)&&(!(a4==1)&&((input==3)&&((a5==4)||(a5==5)))))&&(a6==1)))))&&!(a18==1)))&&((!(a4==1)&&(((a9==7)&&(!(a4==1)&&(a2==1)))&&(a20==1)))&&(a19==3)))){ + a1 = 12; + a19 = 1; + a5 = 4; + a11 = 1; + a16 = 7; + a2 = 1; + a21 = 10; + a27 = 0; + return -1; + } else if((((!(a0==1)&&(!(a8==1)&&((a16==11)&&((a17==2)&&((a11==1)&&((input==4)&&(a20==1)))))))&&(a21==12))&&(((a9==10)&&(((a13==1)&&((((a28==1)&&!(a0==1))&&(a1==12))&&(a5==4)))||!(a28==1)))&&(a19==5)))){ + a9 = 11; + a16 = 8; + a18 = 0; + a19 = 4; + a28 = 1; + a5 = 5; + a21 = 11; + a12 = 1; + return 26; + } else if((((((a28==1)&&(!(a23==1)||(a2==1)))&&(a19==2))&&(a20==1))&&(((a5==6)&&((((!(a27==1)&&((a17==2)&&((((a16==11)&&(input==3))&&(a21==10))&&(a2==1))))&&(a9==11))&&(a28==1))&&(a1==13)))&&!(a7==1)))){ + a9 = 7; + a0 = 0; + a7 = 0; + a16 = 7; + a1 = 12; + a5 = 4; + a28 = 1; + a19 = 1; + return -1; + } else if(((((a20==1)&&((((input==3)&&((((a5==4)&&(a1==14))&&(a9==7))||(((a9==11)&&((a5==5)&&(a1==13)))||(((a1==13)&&(a5==6))&&(a9==11)))))&&(a19==1))&&(a16==11)))&&(a17==2))&&((((a3==1)&&(!(a23==1)||((a6==1)&&(!(a14==1)&&((a3==1)&&(a3==1))))))&&(a3==1))&&(a21==12)))){ + a16 = 7; + a23 = 1; + a9 = 7; + a5 = 4; + a12 = 1; + a6 = 1; + a21 = 10; + a1 = 12; + return -1; + } else if((((a3==1)&&(((a21==11)&&((((a20==1)&&(a3==1))&&(a12==1))&&(a13==1)))&&!(a14==1)))&&(((a16==8)&&((a19==1)&&((a1==13)&&((a3==1)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a9==11))&&(a11==1))))))&&(a17==2)))){ + a6 = 1; + a21 = 10; + a5 = 4; + a24 = 0; + a16 = 7; + a1 = 12; + a9 = 7; + return -1; + } else if(((((!(a26==1)&&((((((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a28==1))&&(a13==1))&&!(a24==1))&&(a16==7)))&&(a19==1))&&(a17==2))&&((a9==8)&&((((a21==10)&&((a4==1)||(!(a23==1)||(a11==1))))&&!(a20==1))&&(a1==12))))){ + a27 = 0; + a5 = 4; + a9 = 7; + a20 = 1; + a24 = 0; + return -1; + } else if(((((((a3==1)&&((a16==11)&&((a19==4)&&((a3==1)&&((input==1)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5))))))))&&(a20==1))&&(a21==12))&&(a23==1))&&((!(a26==1)&&((a1==14)&&((!(a4==1)&&(a28==1))&&(a17==2))))&&!(a24==1)))){ + a5 = 4; + a7 = 0; + a26 = 0; + a9 = 7; + a12 = 1; + a1 = 12; + a16 = 7; + a19 = 1; + a21 = 10; + return -1; + } else if((((a6==1)&&(!(a26==1)&&(((a5==6)&&((a1==13)&&((a19==5)&&((a9==10)&&(input==6)))))&&(a13==1))))&&(!(a4==1)&&(!(a20==1)&&((a17==2)&&((((a16==10)&&(!(a2==1)||(a23==1)))&&(a21==10))||!(a28==1))))))){ + a19 = 1; + a1 = 14; + a5 = 4; + a29 = 1; + a23 = 0; + a9 = 9; + return -1; + } else if(((((((a20==1)&&((a17==2)&&((a9==7)&&(a12==1))))&&(a2==1))&&!(a7==1))||(a27==1))&&(!(a4==1)&&(((a21==10)&&((a19==2)&&((a1==13)&&((a16==8)&&(((input==6)&&((a5==5)||(a5==6)))&&(a23==1))))))&&(a3==1))))){ + a1 = 14; + a13 = 1; + a16 = 9; + a19 = 3; + a12 = 1; + a14 = 0; + a21 = 12; + a5 = 5; + return 21; + } else if((((!(a14==1)&&((a12==1)&&(((a17==2)&&(!(a0==1)&&((a19==1)&&((a21==10)&&((input==3)&&((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a5==4)&&(a9==10))))))))&&(a16==8))))&&(a1==12))&&((a20==1)&&(((a2==1)&&((a12==1)||(a24==1)))&&(a3==1))))){ + a5 = 4; + a13 = 1; + a16 = 7; + a18 = 0; + a9 = 7; + a27 = 0; + return -1; + } else if((((a24==1)||(((((a21==12)&&(!(a18==1)&&(a2==1)))||(a26==1))||(a0==1))&&(a16==10)))&&(((!(a7==1)&&((a20==1)&&((((a19==4)&&((a9==7)&&((a1==12)&&(a5==4))))||(((a19==3)&&((a9==11)&&((a1==14)&&(a5==5))))||(((a9==11)&&((a5==6)&&(a1==14)))&&(a19==3))))&&(input==6))))&&(a17==2))&&(a23==1)))){ + a16 = 7; + a19 = 2; + a5 = 5; + a7 = 0; + a9 = 9; + a24 = 0; + a11 = 1; + a21 = 10; + a1 = 13; + return 25; + } else if((((((a16==10)&&(((((a1==14)&&((a26==1)||(!(a20==1)&&(a3==1))))&&(a9==8))&&(a19==1))&&(a3==1)))&&(a11==1))||!(a12==1))&&((((a21==10)&&(((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&(a23==1)))&&(a17==2))&&(a28==1)))){ + a20 = 1; + a13 = 0; + a5 = 6; + a18 = 1; + a16 = 7; + a23 = 0; + a9 = 11; + return -1; + } else if((((a17==2)&&((a14==1)||((!(a20==1)&&((a9==11)&&(((a28==1)&&(a19==3))&&!(a26==1))))&&(a3==1))))&&((a16==10)&&((((((a28==1)&&(((a5==5)||(a5==6))&&(input==4)))&&(a2==1))&&!(a7==1))&&(a21==12))&&(a1==14))))){ + if((a23==1)){ + a6 = 0; + a16 = 11; + a10 = 0; + a19 = 1; + a1 = 13; + a9 = 9; + a20 = 1; + a11 = 0; + a21 = 11; + a5 = 5; + }else{ + a15 = 0; + a19 = 1; + a21 = 10; + a16 = 7; + a9 = 10; + a20 = 1; + a29 = 0; + a5 = 4; + a1 = 13; + a14 = 1; + } + return 21; + } else if(((((a23==1)&&(((((!(a20==1)&&(!(a26==1)&&(((input==5)&&(a5==5))&&!(a0==1))))&&(a13==1))&&(a17==2))&&(a21==10))&&(a11==1)))&&(a9==7))&&((a1==14)&&((!(a11==1)||((a16==8)&&(a6==1)))&&(a19==5))))){ + a12 = 1; + a1 = 12; + a13 = 1; + a27 = 0; + a20 = 1; + a16 = 11; + a5 = 4; + a19 = 2; + return 25; + } else if((((((a16==8)&&((a19==1)&&(((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a1==13))))&&!(a18==1))&&(a21==12))&&((!(a6==1)||(((a20==1)&&((((a8==1)||((a3==1)&&(a17==2)))&&(a9==9))&&(a13==1)))||!(a2==1)))||!(a13==1)))){ + a5 = 4; + a13 = 1; + a16 = 7; + a8 = 0; + a23 = 1; + a9 = 7; + a21 = 10; + a1 = 12; + return -1; + } else if(((!(a8==1)&&(!(a27==1)&&(((a19==5)&&(!(a24==1)&&(((!(a4==1)&&(((a5==5)||(a5==6))&&(input==6)))&&(a21==10))&&(a20==1))))&&!(a7==1))))&&((a9==7)&&(((a1==13)&&(((a11==1)||!(a23==1))&&(a17==2)))&&(a16==8))))){ + a5 = 6; + a23 = 1; + a12 = 1; + a1 = 14; + a14 = 0; + a19 = 1; + a9 = 8; + a21 = 12; + return 21; + } else if(((((((a14==1)&&(((a14==1)&&((a6==1)&&(a19==3)))&&!(a13==1)))&&!(a12==1))&&(a24==1))&&!(a20==1))&&((a17==2)&&(((a9==10)&&(((((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a1==12))&&(a26==1))&&(a16==8)))&&(a21==11))))){ + a19 = 1; + a26 = 1; + a5 = 5; + a29 = 1; + a6 = 0; + a16 = 10; + a21 = 12; + a20 = 1; + return 26; + } else if(((((a6==1)&&(!(a4==1)&&(((a1==12)&&((((a11==1)&&((((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a5==6)&&(a9==10))))&&(input==3)))&&!(a27==1))&&(a21==10)))&&(a16==7))))&&!(a14==1))&&((a4==1)||((a17==2)&&((a20==1)&&((a3==1)&&(a19==4))))))){ + a20 = 0; + a9 = 8; + a21 = 11; + a6 = 1; + a26 = 0; + a23 = 1; + a5 = 4; + return 26; + } else if((((a17==2)&&((!(a0==1)&&(!(a7==1)&&((a6==1)&&((((a11==1)&&!(a14==1))&&(a16==9))&&(a1==13)))))&&!(a0==1)))&&((!(a20==1)&&((a21==12)&&(((((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6))))&&(input==1))&&!(a7==1))))&&(a19==3)))){ + a1 = 12; + a16 = 10; + a5 = 4; + a12 = 0; + a25 = 0; + a15 = 0; + a21 = 11; + a19 = 5; + a9 = 10; + return -1; + } else if((((a12==1)&&((a19==4)&&(((a3==1)&&((a28==1)&&((a21==12)&&(((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==3))&&(a28==1)))))&&(a1==13))))&&(!(a14==1)&&(!(a28==1)||((a17==2)&&((a16==7)&&((a28==1)&&!(a20==1)))))))){ + a23 = 1; + a1 = 12; + a14 = 0; + a0 = 0; + a5 = 4; + a20 = 1; + a19 = 1; + a21 = 10; + a9 = 7; + return -1; + } else if(((!(a0==1)&&(!(a26==1)&&((((a1==12)&&(!(a20==1)&&((a11==1)||!(a12==1))))||!(a23==1))&&(a9==7))))&&(!(a8==1)&&((((a17==2)&&((a13==1)&&((a19==2)&&((input==5)&&(a5==5)))))&&(a21==11))&&(a16==7))))){ + if((a24==1)){ + a1 = 14; + a9 = 9; + a4 = 0; + a13 = 1; + a8 = 0; + a21 = 12; + }else{ + a3 = 1; + a19 = 3; + a1 = 13; + a21 = 10; + a11 = 1; + a9 = 9; + a26 = 0; + a20 = 1; + } + return 21; + } else if((((((a21==11)&&(((a5==5)&&(!(a18==1)&&((a19==2)&&(input==6))))&&(a28==1)))&&(a17==2))&&(a1==12))&&((a9==8)&&((a20==1)&&((((a24==1)||(((a3==1)&&(a16==10))&&!(a0==1)))||(a14==1))||!(a13==1)))))){ + a9 = 10; + a23 = 1; + a27 = 0; + a16 = 8; + a1 = 14; + a18 = 0; + return 25; + } else if((((((((a11==1)&&((a3==1)&&((((a5==4)||(a5==5))&&(input==1))&&!(a27==1))))&&(a1==13))&&(a17==2))&&(a19==4))&&!(a20==1))&&(((((a21==10)&&((a3==1)&&((a28==1)&&(a2==1))))&&(a3==1))&&(a16==8))&&(a9==10)))){ + a9 = 7; + a20 = 1; + a18 = 0; + a16 = 7; + a19 = 1; + a5 = 4; + a12 = 1; + a28 = 1; + a1 = 12; + return -1; + } else if((((a17==2)&&(!(a20==1)&&(((input==5)&&(((a19==3)&&((a9==11)&&((a1==14)&&(a5==6))))||((a19==4)&&(((a5==4)&&(a1==12))&&(a9==7)))))&&(a28==1))))&&(((a16==8)&&((a24==1)||(((((a11==1)||!(a23==1))&&(a11==1))&&(a23==1))&&(a6==1))))&&(a21==11)))){ + a16 = 10; + a28 = 1; + a27 = 0; + a1 = 14; + a19 = 3; + a9 = 8; + a21 = 10; + a20 = 1; + a5 = 6; + a11 = 1; + return 21; + } else if((((a1==14)&&(((a21==11)&&(a3==1))&&!(a24==1)))&&((a2==1)&&((!(a18==1)&&((a2==1)&&((((a16==8)&&((a19==3)&&((((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))&&(input==1))&&(a20==1))))&&!(a0==1))&&(a17==2))))&&(a28==1))))){ + a24 = 0; + a23 = 1; + a1 = 12; + a21 = 10; + a9 = 7; + a5 = 4; + a19 = 1; + a26 = 0; + a16 = 7; + return -1; + } else if(((((a20==1)&&((a16==7)&&(((((input==4)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&!(a27==1))&&(a21==11))&&(a13==1))))&&(a19==2))&&((((a13==1)&&((a3==1)&&(!(a18==1)&&((a11==1)&&(a17==2)))))&&(a28==1))&&(a1==14)))){ + a7 = 0; + a1 = 12; + a21 = 10; + a16 = 8; + a5 = 5; + a14 = 0; + a9 = 7; + a13 = 1; + a19 = 4; + return 25; + } else if(((((((((a1==12)&&(input==1))&&(a20==1))&&(a23==1))&&(a19==5))&&!(a27==1))&&(a21==12))&&(((((a3==1)&&(((((a9==10)&&(a28==1))&&(a16==10))&&(a5==6))&&(a23==1)))||!(a23==1))&&(a3==1))&&(a17==2)))){ + a1 = 14; + a16 = 7; + a13 = 1; + a8 = 0; + a19 = 4; + a18 = 0; + a21 = 10; + return 25; + } else if((((a21==12)&&(((a20==1)&&(((a5==4)||(a5==5))&&(input==1)))&&(a28==1)))&&((a16==9)&&(((a1==14)&&(((((((a19==5)&&((a14==1)||(a12==1)))||(a18==1))&&(a9==7))&&(a17==2))&&(a6==1))||!(a2==1)))&&!(a26==1))))){ + a21 = 10; + a7 = 0; + a2 = 1; + a16 = 7; + a5 = 5; + a19 = 3; + return 25; + } else if(((!(a4==1)&&((a18==1)||((a6==1)&&!(a7==1))))&&(((((!(a0==1)&&((a2==1)&&((a16==7)&&(((((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11)))&&(input==4))&&(a19==5))&&!(a20==1)))))&&!(a0==1))&&(a17==2))&&(a1==12))&&(a21==10)))){ + a20 = 1; + a1 = 14; + a5 = 4; + a0 = 0; + a24 = 0; + a19 = 1; + a9 = 8; + a28 = 1; + return -1; + } else if((((a16==11)&&((((a23==1)&&(!(a18==1)&&((((input==1)&&(((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))))&&(a1==13))&&(a28==1))))&&!(a8==1))&&(a19==3)))&&(!(a20==1)&&((a17==2)&&((a21==10)&&(((a28==1)||(a18==1))||(a7==1))))))){ + a5 = 6; + a6 = 0; + a20 = 1; + a25 = 1; + a16 = 7; + a9 = 9; + a27 = 1; + a19 = 1; + return -1; + } else if(((((a17==2)&&(((a21==12)&&(((a9==10)&&(!(a20==1)&&((a11==1)&&(a12==1))))&&(a1==13)))&&!(a4==1)))&&(a19==4))&&((a16==9)&&((a28==1)&&(!(a18==1)&&(((a28==1)&&(((a5==5)||(a5==6))&&(input==5)))&&!(a0==1))))))){ + a20 = 1; + a5 = 5; + a25 = 1; + a1 = 14; + a23 = 0; + a16 = 11; + a15 = 1; + a9 = 11; + a21 = 10; + return 23; + } else if((((a28==1)&&(((!(a0==1)&&((a17==2)&&((!(a27==1)&&(((a19==5)&&(((a5==5)||(a5==6))&&(input==5)))&&(a2==1)))&&!(a7==1))))&&(a21==11))&&(a9==11)))&&(((((a2==1)&&!(a20==1))&&(a16==10))||(a24==1))&&(a1==12)))){ + if((a15==1)){ + a20 = 1; + a10 = 1; + a18 = 1; + a9 = 10; + a1 = 14; + a19 = 1; + a14 = 1; + a5 = 5; + a16 = 7; + a21 = 10; + }else{ + a20 = 1; + a19 = 2; + a15 = 1; + a10 = 1; + a0 = 1; + a5 = 5; + a9 = 9; + a21 = 12; + a16 = 8; + } + return 22; + } else if(((((((a3==1)&&(a3==1))&&(a21==11))&&!(a8==1))&&!(a7==1))&&((((a17==2)&&(((a12==1)&&(!(a0==1)&&(!(a24==1)&&(((((a5==4)&&(a1==14))&&(a9==7))||((((a5==5)&&(a1==13))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==13)))))&&(input==3)))))&&(a19==5)))&&(a16==10))&&(a20==1)))){ + a16 = 7; + a5 = 4; + a21 = 10; + a9 = 7; + a1 = 12; + a13 = 1; + a19 = 1; + a23 = 1; + return -1; + } else if((((a16==8)&&((a13==1)&&((((!(a11==1)||(!(a20==1)&&(a6==1)))&&!(a24==1))&&(a1==14))&&!(a4==1))))&&((a17==2)&&((a9==8)&&((a21==11)&&((((a6==1)&&((input==4)&&(a5==6)))&&!(a27==1))&&(a19==3))))))){ + a21 = 10; + a20 = 1; + a26 = 0; + a9 = 7; + a19 = 1; + a7 = 0; + a5 = 4; + a16 = 7; + a1 = 12; + a3 = 1; + return -1; + } else if((((((a16==8)&&((a12==1)&&(((a2==1)&&(((a12==1)||!(a3==1))&&(a17==2)))||!(a6==1))))&&(a21==10))&&!(a26==1))&&((((a19==2)&&((((input==6)&&(a1==14))&&(a2==1))&&(a20==1)))&&(a9==10))&&(a5==5)))){ + a0 = 0; + a4 = 0; + a16 = 9; + a5 = 6; + a9 = 11; + a1 = 12; + a21 = 12; + a26 = 0; + a19 = 4; + return 23; + } else if(((!(a0==1)&&(((a19==4)&&((a1==13)&&(((((a2==1)||!(a28==1))&&!(a26==1))||(a4==1))&&(a21==11))))&&(a16==11)))&&((((a20==1)&&(((a9==11)&&((input==3)&&(a5==4)))&&!(a24==1)))&&(a17==2))&&(a11==1)))){ + a16 = 7; + a19 = 1; + a2 = 1; + a21 = 10; + a1 = 12; + a24 = 0; + a9 = 7; + a18 = 0; + return -1; + } else if(((!(a20==1)&&((!(a27==1)&&(!(a26==1)&&((a19==4)&&(((a1==14)&&(input==5))&&(a5==5)))))&&!(a18==1)))&&(((((a24==1)||((a21==11)&&(!(a7==1)&&((a11==1)&&(a17==2)))))&&(a9==10))||!(a12==1))&&(a16==9)))){ + a21 = 12; + a16 = 10; + a9 = 11; + a19 = 1; + a27 = 1; + a20 = 1; + a22 = 1; + return -1; + } else if((((((a19==2)&&((a5==4)&&((a21==10)&&(a6==1))))||(a8==1))||(a24==1))&&((a6==1)&&(((a17==2)&&(!(a14==1)&&((((((input==6)&&(a9==8))&&(a20==1))&&(a28==1))&&!(a27==1))&&(a16==9))))&&(a1==12))))){ + a4 = 0; + a28 = 1; + a16 = 7; + a19 = 1; + a9 = 7; + a2 = 1; + return -1; + } else if(((!(a26==1)&&((a1==14)&&(((a12==1)&&((a17==2)&&(!(a14==1)&&(((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11)))&&(input==4)))))&&(a28==1))))&&(((a21==11)&&(!(a12==1)||((!(a23==1)||((a23==1)&&!(a20==1)))&&(a16==10))))&&(a19==1)))){ + a5 = 4; + a20 = 1; + a16 = 7; + a21 = 10; + a9 = 11; + a1 = 13; + a13 = 0; + a25 = 0; + a29 = 0; + return -1; + } else if((((a5==6)&&((!(a6==1)||(!(a20==1)&&(((a1==13)&&((a21==10)&&((a9==7)&&(a2==1))))&&!(a8==1))))&&(a16==9)))&&((a17==2)&&(((!(a7==1)&&((a2==1)&&((a19==4)&&(input==3))))&&!(a18==1))&&(a2==1))))){ + if((a14==1)){ + a15 = 0; + a1 = 12; + a16 = 8; + a21 = 11; + a5 = 4; + a24 = 1; + a7 = 1; + a19 = 1; + a9 = 11; + }else{ + a9 = 10; + a29 = 1; + a20 = 1; + a5 = 5; + a10 = 0; + a1 = 12; + a18 = 1; + a16 = 11; + a19 = 5; + } + return -1; + } else if((((a0==1)||((a27==1)||((((((a20==1)&&((a19==2)&&(a28==1)))&&(a1==13))||(a0==1))&&(a21==12))&&!(a14==1))))&&(((!(a4==1)&&((a16==8)&&((input==4)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10))))))&&!(a4==1))&&(a17==2)))){ + a5 = 4; + a21 = 10; + a1 = 12; + a28 = 1; + a16 = 7; + a9 = 7; + a18 = 0; + a8 = 0; + a19 = 1; + return -1; + } else if(((((a1==12)&&((((a28==1)||(a7==1))&&(a16==9))&&(a21==12)))&&(a20==1))&&(((a17==2)&&((!(a14==1)&&(!(a26==1)&&((((((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8))))&&(input==5))&&(a11==1))&&(a28==1))))&&(a11==1)))&&(a19==2)))){ + a9 = 9; + a11 = 1; + a1 = 13; + a12 = 1; + a16 = 11; + a8 = 0; + a21 = 10; + a19 = 4; + a5 = 4; + return 25; + } else if((((((a1==13)&&((!(a18==1)&&(((a3==1)&&((a9==7)&&((!(a20==1)&&(input==6))&&(a17==2))))&&!(a0==1)))&&(a16==7)))&&(a2==1))&&(a13==1))&&((((a21==10)&&((a14==1)||(a12==1)))&&(a5==4))&&(a19==3)))){ + a8 = 0; + a9 = 11; + a1 = 14; + a18 = 0; + a0 = 0; + a21 = 11; + a16 = 8; + return 21; + } else if(((!(a27==1)&&((((a6==1)&&(a12==1))&&(a1==13))&&!(a8==1)))&&((a21==12)&&((a9==11)&&(((!(a0==1)&&(((a16==11)&&(((a17==2)&&((a20==1)&&(input==3)))&&(a23==1)))&&!(a8==1)))&&(a5==5))&&(a19==5)))))){ + a5 = 4; + a9 = 7; + a19 = 1; + a28 = 1; + a16 = 7; + a21 = 10; + a7 = 0; + a1 = 12; + return -1; + } else if(((!(a20==1)&&((a1==12)&&((a13==1)&&((((a23==1)&&(a16==8))||!(a3==1))||(a7==1)))))&&((a17==2)&&((a9==10)&&((a21==11)&&((a19==1)&&(((((input==5)&&((a5==5)||(a5==6)))&&(a23==1))&&!(a14==1))&&(a23==1)))))))){ + a16 = 7; + a23 = 1; + a9 = 7; + a5 = 4; + a6 = 1; + a20 = 1; + a21 = 10; + a3 = 1; + return -1; + } else if(((((((a17==2)&&((a5==5)&&((a1==13)&&((a9==7)&&(((a26==1)&&((a20==1)&&(input==6)))&&!(a11==1))))))&&!(a6==1))&&(a26==1))&&!(a11==1))&&(((a19==3)&&(((a21==11)&&(a2==1))&&(a16==8)))&&!(a28==1)))){ + a10 = 0; + a8 = 1; + a9 = 11; + a5 = 6; + a16 = 9; + a21 = 12; + return -1; + } else if(((((a1==13)&&(!(a8==1)&&(((a11==1)&&(((a20==1)&&((a3==1)&&(a17==2)))||!(a6==1)))||(a24==1))))&&(a19==4))&&(!(a14==1)&&((a9==8)&&((((a16==7)&&(((a5==4)||(a5==5))&&(input==3)))&&!(a24==1))&&(a21==12)))))){ + a1 = 12; + a4 = 0; + a5 = 4; + a19 = 1; + a9 = 7; + a21 = 10; + a7 = 0; + return -1; + } else if((((a9==7)&&((a19==1)&&(!(a26==1)&&((!(a27==1)&&(((a1==14)&&(input==1))&&(a5==5)))&&!(a4==1)))))&&((a16==9)&&(!(a20==1)&&(((((a21==10)&&((a3==1)&&(a2==1)))&&(a17==2))&&(a2==1))||(a8==1)))))){ + if((a10==1)){ + a1 = 12; + a16 = 7; + a19 = 2; + a22 = 1; + a5 = 4; + a20 = 1; + a29 = 1; + a9 = 9; + a12 = 0; + }else{ + a19 = 2; + a28 = 0; + a9 = 8; + a1 = 13; + a16 = 8; + a12 = 0; + a6 = 0; + } + return -1; + } else if((((a28==1)&&((a6==1)&&((((a16==11)&&((a19==5)&&((a13==1)&&((a17==2)&&(((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a5==4)&&(a9==11)))&&(input==5))))))&&(a1==12))&&(a3==1))))&&((a0==1)||((a21==12)&&(((a6==1)&&(a20==1))&&(a23==1)))))){ + a9 = 7; + a1 = 14; + a5 = 4; + a4 = 0; + a21 = 10; + a19 = 1; + a24 = 0; + a16 = 10; + return 21; + } else if((((a2==1)&&(!(a4==1)&&((a17==2)&&(((a23==1)&&((a28==1)&&((input==5)&&(((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))))))&&(a16==11)))))&&((a2==1)&&(((((a20==1)&&((a19==4)&&(a2==1)))&&(a1==14))&&(a2==1))&&(a21==12))))){ + a16 = 7; + a19 = 1; + a4 = 0; + a27 = 0; + a9 = 7; + a1 = 12; + a13 = 1; + a21 = 10; + a5 = 4; + return -1; + } else if(((!(a20==1)&&((a1==14)&&((((a6==1)||!(a28==1))&&(a16==8))&&(a19==1))))&&(((((((!(a27==1)&&(!(a0==1)&&((input==6)&&(a17==2))))&&(a2==1))&&(a28==1))&&(a6==1))&&(a9==7))&&(a5==5))&&(a21==11)))){ + a9 = 9; + a20 = 1; + a21 = 12; + a28 = 1; + a14 = 0; + a19 = 4; + a5 = 4; + a11 = 1; + return 25; + } else if((((a16==9)&&((a9==8)&&(((a17==2)&&(!(a14==1)&&(!(a7==1)&&((a2==1)&&((!(a18==1)&&((input==6)&&(a21==11)))&&!(a7==1))))))&&(a1==14))))&&((((!(a20==1)&&(a28==1))&&(a19==2))&&(a23==1))&&(a5==5)))){ + a12 = 0; + a19 = 1; + a1 = 12; + a21 = 10; + a5 = 6; + a26 = 1; + a15 = 0; + a16 = 7; + a20 = 1; + return 21; + } else if(((!(a14==1)&&(!(a27==1)&&(((a5==5)&&((a2==1)||(a24==1)))&&(a1==14))))&&((!(a18==1)&&((((a12==1)&&((a21==12)&&(((a9==9)&&((a19==3)&&(input==1)))&&(a16==9))))&&!(a18==1))&&(a17==2)))&&!(a20==1)))){ + a10 = 0; + a20 = 1; + a4 = 1; + a9 = 7; + a16 = 8; + a19 = 2; + return -1; + } else if((((a19==2)&&((a1==13)&&((a9==7)&&((a28==1)&&(a13==1)))))&&((a28==1)&&(((a23==1)&&(!(a20==1)&&((!(a4==1)&&((a17==2)&&(((a21==11)&&((a16==10)&&(input==4)))&&(a11==1))))&&(a5==4))))&&(a23==1))))){ + if((a23==1)){ + a21 = 10; + a11 = 0; + a9 = 10; + a29 = 1; + a1 = 12; + a19 = 5; + }else{ + a22 = 1; + a21 = 10; + a1 = 14; + a20 = 1; + a5 = 5; + a19 = 1; + a9 = 10; + a14 = 1; + a10 = 0; + a16 = 7; + } + return 21; + } else if((((a3==1)&&((!(a7==1)&&(((a21==12)&&((a5==6)&&(((a6==1)&&((a13==1)&&((a9==10)&&(input==5))))&&(a1==13))))&&(a16==8)))&&!(a27==1)))&&((a19==3)&&((a17==2)&&((!(a20==1)&&(a6==1))&&(a23==1)))))){ + if((a19==5)){ + a9 = 9; + a29 = 0; + a18 = 1; + a16 = 9; + a19 = 1; + a22 = 0; + a21 = 11; + a20 = 1; + }else{ + a1 = 12; + a20 = 1; + a7 = 1; + a9 = 11; + a19 = 2; + a4 = 1; + a21 = 10; + a14 = 1; + a5 = 5; + a16 = 7; + } + return 21; + } else if((((a17==2)&&(((a1==13)&&((((a9==10)&&(((a23==1)&&(a6==1))||(a14==1)))&&!(a18==1))&&!(a4==1)))&&!(a14==1)))&&((((((a20==1)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6))))&&!(a0==1))&&(a21==11))&&(a19==4))&&(a16==8)))){ + a1 = 12; + a5 = 4; + a9 = 7; + a21 = 10; + a12 = 1; + a16 = 7; + a19 = 1; + a23 = 1; + return -1; + } else if((((a26==1)&&(!(a28==1)&&(((((((a1==12)&&(a5==6))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==13))))||(((a1==13)&&(a5==5))&&(a9==7)))&&(input==1))&&(a17==2))))&&((((!(a12==1)&&((a21==11)&&((a0==1)&&(((a12==1)&&(a20==1))&&!(a28==1)))))&&!(a6==1))&&(a16==7))&&(a19==2)))){ + a19 = 1; + a13 = 0; + a24 = 1; + a23 = 0; + a21 = 10; + a5 = 5; + a9 = 10; + a1 = 13; + return -1; + } else if((((a16==10)&&(!(a20==1)&&((a11==1)&&(((a17==2)&&(((a5==4)||(a5==5))&&(input==1)))&&(a28==1)))))&&((a1==14)&&(((a21==12)&&((a14==1)||(((a19==1)&&((!(a6==1)||(a2==1))||(a8==1)))||(a18==1))))&&(a9==9))))){ + a16 = 7; + a20 = 1; + a26 = 1; + a21 = 10; + a1 = 12; + a22 = 1; + a19 = 2; + a9 = 10; + a5 = 4; + a7 = 1; + return -1; + } else if((((a5==4)&&((a17==2)&&(((a12==1)&&(((a21==11)&&(input==1))&&(a19==4)))&&(a3==1))))&&((((a18==1)||((((((a2==1)&&(a11==1))&&(a9==9))&&(a1==14))&&!(a20==1))&&(a16==8)))&&!(a24==1))||!(a28==1)))){ + a26 = 0; + a21 = 10; + a2 = 1; + a19 = 3; + a24 = 0; + a20 = 1; + a16 = 7; + a1 = 12; + return 26; + } else if((((!(a12==1)||(!(a24==1)&&((a21==11)&&(!(a6==1)||((a1==12)&&(a11==1))))))||(a27==1))&&((((a19==3)&&((!(a20==1)&&(((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==1))&&(a17==2)))&&(a16==10)))&&!(a7==1))&&!(a7==1)))){ + a20 = 1; + a16 = 7; + a23 = 0; + a9 = 7; + a1 = 14; + a5 = 4; + a14 = 1; + return -1; + } else if(((((!(a20==1)&&(((a1==12)&&(((input==5)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11))))&&(a23==1)))&&!(a7==1)))&&(a6==1))&&(a19==5))&&((a17==2)&&((a12==1)&&((a28==1)&&((((a28==1)&&(a12==1))&&(a21==10))&&(a16==10))))))){ + a16 = 7; + a1 = 14; + a5 = 5; + a9 = 7; + a15 = 1; + a8 = 1; + a20 = 1; + a29 = 0; + a19 = 1; + return 26; + } else if((((a26==1)||(((!(a28==1)||((!(a26==1)&&(((a13==1)&&(a1==12))||!(a11==1)))&&(a9==7)))&&(a16==8))&&!(a20==1)))&&(!(a26==1)&&(((a19==5)&&((a21==11)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&!(a27==1))))&&(a17==2))))){ + a19 = 4; + a5 = 6; + a28 = 1; + a3 = 1; + a20 = 1; + a9 = 11; + return -1; + } else if(((!(a27==1)&&(!(a3==1)||(!(a4==1)&&(!(a7==1)&&((a6==1)&&(a21==12))))))&&((a28==1)&&(((a20==1)&&((a17==2)&&((a16==9)&&((input==4)&&(((a19==4)&&((a9==11)&&((a1==14)&&(a5==6))))||((a19==5)&&((a9==7)&&((a1==12)&&(a5==4)))))))))&&(a2==1))))){ + a21 = 10; + a5 = 4; + a1 = 12; + a19 = 1; + a11 = 1; + a9 = 7; + a16 = 7; + a18 = 0; + return -1; + } else if((((((a23==1)&&((a7==1)||((a6==1)&&((a16==8)&&((a11==1)||(a4==1))))))&&(a21==11))&&(a1==13))&&((!(a7==1)&&(!(a26==1)&&(((a19==1)&&(((input==6)&&(a9==8))&&(a17==2)))&&(a20==1))))&&(a5==6)))){ + a9 = 10; + a2 = 1; + a3 = 1; + a24 = 0; + a5 = 4; + return 25; + } else if(((!(a12==1)||(((a1==13)&&(((a27==1)||((a19==3)&&(a6==1)))&&(a21==12)))||(a14==1)))&&(((a16==8)&&(!(a18==1)&&((a17==2)&&(!(a20==1)&&(!(a27==1)&&(((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))&&(input==4)))))))&&!(a7==1)))){ + if((a23==1)){ + a5 = 5; + a2 = 0; + a25 = 0; + a20 = 1; + a9 = 7; + a29 = 1; + a16 = 11; + a19 = 5; + }else{ + a23 = 0; + a1 = 12; + a4 = 1; + a27 = 1; + a5 = 4; + a9 = 8; + a19 = 2; + a21 = 11; + a16 = 9; + } + return -1; + } else if((((a20==1)&&((((a17==2)&&((((input==3)&&(((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))))&&(a1==12))&&(a19==3)))&&(a13==1))&&(a21==12)))&&(((a26==1)||((!(a2==1)||(((a2==1)&&(a16==9))&&!(a27==1)))&&(a12==1)))&&!(a8==1)))){ + a16 = 7; + a26 = 0; + a9 = 7; + a11 = 1; + a5 = 4; + a28 = 1; + a19 = 1; + a21 = 10; + return -1; + } else if((((((a11==1)&&(a17==2))||!(a13==1))||!(a23==1))&&(!(a14==1)&&((a9==7)&&((a19==1)&&((((((((a12==1)&&((input==6)&&((a5==5)||(a5==6))))&&(a6==1))&&!(a20==1))&&(a16==10))&&(a21==12))&&(a11==1))&&(a1==14))))))){ + a20 = 1; + a5 = 4; + a19 = 2; + a1 = 13; + a9 = 10; + a24 = 1; + a13 = 0; + a26 = 1; + a21 = 10; + return 25; + } else if(((((a17==2)&&(((((a3==1)&&((!(a7==1)&&((input==1)&&(a5==5)))&&(a13==1)))&&(a16==9))&&!(a18==1))&&(a2==1)))&&(a1==14))&&(((a20==1)&&((((a21==10)&&(a28==1))||!(a12==1))&&(a19==3)))&&(a9==8)))){ + a5 = 4; + a6 = 1; + a1 = 13; + a4 = 0; + a19 = 2; + a16 = 11; + a0 = 0; + a9 = 7; + return 26; + } else if((((a19==3)&&((a24==1)||((((((((a11==1)&&(a16==10))&&(a17==2))&&(a28==1))&&(a9==8))&&(a13==1))&&!(a0==1))&&(a21==11))))&&((a1==14)&&((((a20==1)&&((a5==4)&&(input==4)))&&!(a14==1))&&(a3==1))))){ + a9 = 7; + a19 = 1; + a16 = 7; + a7 = 0; + a1 = 12; + a14 = 0; + a21 = 10; + a18 = 0; + return -1; + } else if(((((a16==8)&&(((((a20==1)&&(((input==3)&&(a5==5))&&!(a14==1)))&&!(a26==1))&&!(a26==1))&&(a9==11)))&&(a19==4))&&((a17==2)&&(((!(a7==1)&&((a1==14)&&((a2==1)&&(a28==1))))||!(a13==1))&&(a21==11))))){ + a9 = 7; + a27 = 0; + a19 = 1; + a3 = 1; + a1 = 12; + a16 = 7; + a5 = 4; + a28 = 1; + a21 = 10; + return -1; + } else if(((!(a4==1)&&((((input==5)&&((a5==4)||(a5==5)))&&!(a14==1))&&(a3==1)))&&(!(a24==1)&&((((a20==1)&&(((a21==11)&&((((a17==2)&&((a11==1)&&(a9==9)))&&(a16==7))&&(a19==3)))&&(a1==14)))&&!(a14==1))&&!(a24==1))))){ + a3 = 1; + a19 = 2; + a9 = 11; + a5 = 4; + a26 = 0; + a0 = 0; + a16 = 8; + a1 = 12; + return 26; + } else if((((((a16==11)&&(((a21==11)&&(((input==5)&&((((a1==12)&&(a5==6))&&(a9==11))||((a9==7)&&((a1==13)&&(a5==4)))))&&(a3==1)))&&(a17==2)))&&!(a24==1))&&(a20==1))&&(((a8==1)||(!(a18==1)&&(!(a26==1)&&((a8==1)||(a12==1)))))&&(a19==2)))){ + a21 = 10; + a19 = 1; + a9 = 7; + a1 = 12; + a5 = 4; + a26 = 0; + a16 = 7; + a28 = 1; + a6 = 1; + return -1; + } else if((((a20==1)&&((((a2==1)&&(((a23==1)&&((!(a14==1)&&(((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))&&(input==5)))&&(a16==10)))&&(a19==2)))&&(a21==10))&&(a1==13)))&&((a12==1)&&(!(a8==1)&&(((a28==1)&&(a17==2))||(a4==1)))))){ + a5 = 4; + a13 = 1; + a19 = 1; + a6 = 1; + a16 = 7; + a12 = 1; + a1 = 12; + a9 = 7; + return -1; + } else if((((a16==11)&&((((a21==10)&&((a19==4)&&(a11==1)))||(a18==1))&&!(a18==1)))&&(((!(a4==1)&&((a17==2)&&((((input==6)&&((((a5==6)&&(a1==12))&&(a9==11))||((a9==7)&&((a1==13)&&(a5==4)))))&&!(a4==1))&&(a3==1))))&&!(a20==1))&&!(a27==1)))){ + a20 = 1; + a22 = 0; + a5 = 6; + a9 = 10; + a10 = 0; + a16 = 10; + a1 = 12; + a23 = 0; + a21 = 11; + a19 = 3; + return 26; + } else if((((((!(a27==1)&&((a3==1)&&((((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a17==2))&&!(a26==1))))&&(a21==10))&&(a1==14))&&(a19==4))&&(((a9==10)&&((((a16==11)&&((a20==1)&&(a6==1)))&&(a12==1))||!(a2==1)))||(a8==1)))){ + a27 = 0; + a19 = 1; + a28 = 1; + a12 = 1; + a16 = 7; + a5 = 4; + a1 = 12; + a9 = 7; + return -1; + } else if(((((((((a8==1)||(a3==1))&&(a19==3))&&(a11==1))&&(a17==2))&&(a21==11))&&(a1==14))&&((a9==8)&&((a20==1)&&(((a11==1)&&((((a6==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3)))&&(a6==1))&&(a16==7)))&&!(a7==1)))))){ + a2 = 1; + a21 = 10; + a5 = 4; + a9 = 7; + a14 = 0; + a19 = 1; + a1 = 12; + a0 = 0; + return -1; + } else if((((a17==2)&&(!(a20==1)&&(((a19==3)&&(!(a4==1)&&((((((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(input==3))&&(a12==1))&&!(a18==1))))&&(a21==10))))&&((a27==1)||(((!(a2==1)||((a2==1)&&(a6==1)))&&(a16==9))&&(a1==13))))){ + if((a3==1)){ + a16 = 7; + a20 = 1; + a9 = 7; + a11 = 0; + a23 = 0; + a5 = 4; + a1 = 12; + a22 = 1; + a19 = 1; + }else{ + a19 = 1; + a8 = 1; + a22 = 1; + a5 = 4; + a20 = 1; + a9 = 10; + a1 = 12; + a16 = 7; + } + return 26; + } else if(((((((((a9==10)&&(a12==1))&&(a19==2))&&!(a14==1))&&(a17==2))&&(a16==8))&&!(a0==1))&&((!(a20==1)&&((((a21==12)&&((!(a18==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))&&!(a14==1)))&&(a1==14))&&!(a4==1)))&&(a3==1)))){ + a13 = 0; + a5 = 4; + a14 = 1; + a9 = 11; + a1 = 12; + a19 = 5; + a16 = 7; + a21 = 10; + a23 = 0; + return -1; + } else if((((a28==1)&&((a3==1)&&((!(a8==1)&&((((a28==1)&&(((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))&&(input==1)))&&!(a20==1))&&(a19==3)))&&(a1==14))))&&((a16==10)&&((a17==2)&&((a4==1)||((a21==11)&&((a13==1)||!(a12==1)))))))){ + if((a13==1)){ + a16 = 7; + a21 = 10; + a19 = 1; + a24 = 1; + a20 = 1; + a5 = 4; + a9 = 11; + a1 = 13; + a12 = 0; + }else{ + a24 = 1; + a3 = 0; + a21 = 10; + a20 = 1; + a5 = 5; + a9 = 8; + a16 = 7; + a1 = 13; + a19 = 1; + a25 = 0; + } + return 21; + } else if(((!(a26==1)&&(((a21==10)&&((((a16==7)&&(!(a20==1)&&(((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==4))&&(a13==1))))&&!(a26==1))&&(a1==12)))&&!(a27==1)))&&(((a23==1)&&(((a17==2)&&(a28==1))&&(a19==2)))&&!(a0==1)))){ + a9 = 7; + a7 = 0; + a13 = 1; + a19 = 1; + a5 = 4; + a20 = 1; + return -1; + } else if((((a5==5)&&(((((((a16==7)&&((input==4)&&(a9==7)))&&(a2==1))&&(a12==1))&&(a17==2))&&(a1==13))&&(a20==1)))&&((a21==11)&&(((a19==4)&&((((a11==1)||(a8==1))&&!(a0==1))||!(a28==1)))&&(a3==1))))){ + a1 = 12; + a21 = 10; + a19 = 1; + a8 = 0; + a28 = 1; + a24 = 0; + a5 = 4; + return -1; + } else if((((!(a11==1)&&((a7==1)&&((!(a3==1)&&(a11==1))&&(a21==10))))&&!(a2==1))&&(((a1==13)&&((((a16==8)&&((a14==1)&&(!(a20==1)&&((a18==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5))))))&&(a19==4))&&(a17==2)))&&(a9==11)))){ + a5 = 5; + a22 = 1; + a9 = 7; + a19 = 1; + a21 = 11; + a1 = 12; + a16 = 7; + a8 = 1; + a10 = 1; + return 25; + } else if((((a1==13)&&((a16==9)&&(!(a2==1)&&(!(a2==1)&&((!(a2==1)&&((a17==2)&&((!(a11==1)&&((input==3)&&(a9==10)))&&(a18==1))))&&(a5==4))))))&&(((a20==1)&&((a21==10)&&((a26==1)&&(a11==1))))&&(a19==2)))){ + a1 = 14; + a23 = 0; + a16 = 8; + a6 = 0; + a9 = 7; + a19 = 3; + return -1; + } else if(((((a12==1)&&(((a16==10)&&(((a21==11)&&(((((a9==7)&&((a1==12)&&(a5==4)))&&(a19==5))||(((((a1==14)&&(a5==5))&&(a9==11))&&(a19==4))||((a19==4)&&((a9==11)&&((a1==14)&&(a5==6))))))&&(input==6)))&&!(a4==1)))&&(a17==2)))&&!(a14==1))&&(((((a14==1)||(a3==1))||!(a12==1))&&(a20==1))||(a24==1)))){ + a16 = 7; + a9 = 9; + a4 = 0; + a18 = 0; + a21 = 10; + a3 = 1; + a19 = 2; + a1 = 13; + a5 = 4; + return 25; + } return calculate_output7(input); + } + + int calculate_output7(int input) { + if((((a23==1)&&((a5==4)&&(((a16==9)&&((!(a0==1)&&(((a17==2)&&(input==6))&&!(a14==1)))&&!(a27==1)))&&(a1==13))))&&((a21==11)&&((((((a2==1)&&!(a7==1))&&(a19==3))&&(a23==1))&&(a9==8))&&!(a20==1))))){ + a2 = 0; + a1 = 12; + a20 = 1; + a29 = 0; + a8 = 1; + a16 = 7; + a9 = 7; + a19 = 4; + return 26; + } else if((((a9==9)&&((!(a14==1)&&(((a17==2)&&((a6==1)&&(a19==2)))&&(a16==10)))&&!(a27==1)))&&(((a5==4)&&(((((a3==1)&&((a28==1)&&((a21==12)&&(input==4))))&&!(a18==1))&&(a13==1))&&(a1==12)))&&(a20==1)))){ + a28 = 1; + a21 = 10; + a9 = 7; + a26 = 0; + a16 = 7; + a6 = 1; + a19 = 1; + return -1; + } else if(((((a17==2)&&((((a16==8)&&((input==6)&&(a9==10)))&&!(a20==1))&&(a5==5)))&&(a28==1))&&(((a28==1)&&(((!(a26==1)&&((a24==1)||(((a1==13)&&(a12==1))&&(a21==11))))||(a7==1))&&(a19==5)))||(a7==1)))){ + a20 = 1; + a9 = 7; + a25 = 1; + a19 = 1; + a21 = 10; + a23 = 0; + a1 = 14; + a16 = 7; + a4 = 1; + a5 = 4; + return 21; + } else if(((((a3==1)&&(((a12==1)&&((((((input==5)&&(a16==9))&&(a1==13))&&(a5==6))&&(a9==8))&&(a19==4)))&&(a6==1)))&&(a11==1))&&(((a21==12)&&((a20==1)&&((a13==1)&&((a11==1)&&!(a0==1)))))&&(a17==2)))){ + a23 = 1; + a19 = 2; + a9 = 10; + a16 = 7; + a21 = 10; + a18 = 0; + return 25; + } else if((((a16==7)&&((a19==3)&&(((((input==4)&&(a9==10))&&(a17==2))&&(a2==1))&&(a11==1))))&&((a24==1)||((a4==1)||(((!(a12==1)||((a1==13)&&((a20==1)&&(!(a28==1)||(a12==1)))))&&(a21==12))&&(a5==5)))))){ + a21 = 10; + a9 = 7; + a23 = 1; + a19 = 2; + a5 = 6; + a8 = 0; + a3 = 1; + return 26; + } else if((((a19==3)&&(((!(a28==1)&&(!(a23==1)&&((a16==10)&&((a27==1)&&(a2==1)))))&&(a24==1))&&(a9==9)))&&((a5==4)&&((a17==2)&&(!(a23==1)&&((a1==14)&&((a21==12)&&(!(a6==1)&&((a20==1)&&(input==6)))))))))){ + a14 = 1; + a5 = 6; + a0 = 1; + a21 = 10; + a1 = 12; + a16 = 7; + a7 = 1; + a9 = 11; + a19 = 1; + return 26; + } else if((((a17==2)&&((a9==11)&&((((a1==12)&&((a5==4)&&((input==4)&&(a19==1))))&&(a2==1))&&(a16==10))))&&((a20==1)&&((a24==1)||((a21==10)&&((((a13==1)&&((a2==1)||(a27==1)))||(a14==1))&&(a23==1))))))){ + a8 = 0; + a16 = 7; + a9 = 7; + a13 = 1; + a28 = 1; + return -1; + } else if(((!(a4==1)&&(((a21==11)&&((!(a26==1)&&((((a23==1)&&((((a5==5)||(a5==6))&&(input==5))&&!(a20==1)))&&(a11==1))&&!(a14==1)))&&(a19==5)))&&(a1==12)))&&((a17==2)&&((a16==7)&&(((a11==1)&&(a6==1))&&(a9==8)))))){ + a5 = 6; + a20 = 1; + a19 = 3; + a24 = 0; + a28 = 1; + a26 = 0; + a9 = 11; + a16 = 8; + return 22; + } else if(((((a17==2)&&((((((a21==12)&&((a1==12)&&(input==4)))&&!(a18==1))&&(a11==1))&&!(a14==1))&&!(a8==1)))&&!(a4==1))&&((((!(a3==1)||(((a23==1)&&(a19==3))&&(a20==1)))&&(a9==9))&&(a16==11))&&(a5==6)))){ + a21 = 10; + a23 = 1; + a1 = 13; + a19 = 5; + a16 = 8; + a9 = 11; + a18 = 0; + a28 = 1; + return 25; + } else if(((!(a27==1)&&((a9==10)&&((a19==1)&&((a17==2)&&(a13==1)))))&&((a13==1)&&((a2==1)&&(!(a24==1)&&((a20==1)&&((a11==1)&&((a1==14)&&(((((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a21==10))&&(a16==11))&&(a11==1)))))))))){ + a18 = 0; + a16 = 8; + a5 = 5; + a19 = 5; + a3 = 1; + a28 = 1; + a9 = 8; + return -1; + } else if(((((a16==11)&&(((a17==2)&&((a21==12)&&(!(a0==1)&&((!(a3==1)||(a28==1))||(a4==1)))))||!(a2==1)))&&(a9==10))&&(((a1==14)&&((a19==3)&&(!(a8==1)&&((((a5==4)||(a5==5))&&(input==1))&&(a2==1)))))&&(a20==1)))){ + if((a2==1)){ + a1 = 12; + a16 = 8; + a21 = 11; + a20 = 0; + a23 = 1; + a5 = 5; + a26 = 0; + a11 = 1; + a19 = 5; + }else{ + a16 = 10; + a5 = 5; + a1 = 13; + a11 = 1; + a19 = 1; + a9 = 11; + a18 = 0; + a4 = 0; + a21 = 10; + } + return 21; + } else if((((a9==8)&&((!(a20==1)&&(((((a11==1)&&(a16==7))&&(a21==11))&&(a5==4))&&(a4==1)))&&(a1==14)))&&(((a0==1)&&((!(a28==1)&&(((a26==1)&&((a17==2)&&(input==6)))&&!(a3==1)))&&!(a28==1)))&&(a19==1)))){ + a1 = 13; + a21 = 10; + a20 = 1; + a9 = 11; + a11 = 0; + a22 = 0; + a14 = 1; + return 23; + } else if((((a20==1)&&(((!(a7==1)&&((((a9==11)&&((a1==12)&&(a5==6)))||(((a1==13)&&(a5==4))&&(a9==7)))&&(input==3)))&&!(a4==1))&&(a16==11)))&&((a19==2)&&((((a28==1)&&((a17==2)&&(((a2==1)||!(a13==1))||(a4==1))))&&!(a4==1))&&(a21==10))))){ + a1 = 12; + a11 = 1; + a19 = 1; + a18 = 0; + a9 = 7; + a16 = 7; + a2 = 1; + a5 = 4; + return -1; + } else if(((((((a19==3)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))&&!(a8==1))&&(a9==11))&&!(a14==1))&&(!(a20==1)&&(((a21==12)&&((a11==1)&&((a17==2)&&((((a16==9)&&((a12==1)&&(a1==12)))&&!(a14==1))&&(a2==1)))))||(a0==1))))){ + if((a14==1)){ + a7 = 1; + a19 = 2; + a1 = 14; + a16 = 8; + a5 = 4; + a21 = 10; + a13 = 0; + a15 = 1; + }else{ + a18 = 1; + a21 = 11; + a1 = 14; + a29 = 1; + a9 = 8; + a5 = 6; + } + return 23; + } else if(((((a9==7)&&(((!(a24==1)&&((a16==7)&&((((!(a20==1)&&(a11==1))||(a7==1))||!(a6==1))&&(a2==1))))&&(a19==2))||!(a11==1)))&&(a5==5))&&((a21==11)&&((!(a4==1)&&((input==6)&&(a17==2)))&&(a1==12))))){ + a5 = 4; + a11 = 1; + a9 = 9; + a23 = 1; + a21 = 12; + a1 = 14; + a28 = 1; + return 21; + } else if((((a21==12)&&((((a16==7)&&(((input==1)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(a2==1)))&&!(a26==1))&&!(a20==1)))&&((a1==13)&&((a17==2)&&((a19==4)&&(!(a3==1)||((!(a0==1)&&((a12==1)||(a27==1)))||!(a13==1)))))))){ + a9 = 7; + a5 = 4; + a19 = 1; + a1 = 12; + a21 = 10; + a20 = 1; + a7 = 0; + a24 = 0; + a18 = 0; + return -1; + } else if(((!(a3==1)&&((((a27==1)&&((a16==7)&&(!(a12==1)&&(a12==1))))&&!(a28==1))&&(a1==13)))&&(((a7==1)&&(((a5==4)&&((a9==8)&&((((input==1)&&(a21==12))&&(a20==1))&&(a17==2))))&&(a19==5)))&&(a0==1)))){ + a18 = 1; + a1 = 14; + a16 = 9; + a9 = 9; + a8 = 1; + a5 = 5; + a19 = 2; + a15 = 0; + return 25; + } else if((((!(a26==1)&&(((a21==12)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==6)))&&(a23==1)))&&!(a8==1))&&((((a16==9)&&((!(a3==1)||((a28==1)&&((!(a20==1)&&(a6==1))&&(a19==2))))&&!(a27==1)))&&(a1==12))&&(a17==2)))){ + if((a23==1)){ + a9 = 8; + a1 = 14; + a16 = 8; + a3 = 0; + a13 = 0; + a5 = 4; + a19 = 3; + a0 = 1; + a20 = 1; + }else{ + a14 = 1; + a5 = 4; + a9 = 7; + a1 = 13; + a24 = 1; + a10 = 1; + a16 = 7; + a21 = 10; + a20 = 1; + } + return 21; + } else if((((a28==1)&&((a28==1)&&(((!(a8==1)&&(((((input==1)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(a6==1))&&(a17==2))&&(a20==1)))&&(a21==10))&&(a16==7))))&&(!(a0==1)&&(((a19==4)&&((a1==13)&&(a28==1)))&&(a23==1))))){ + a23 = 1; + a26 = 0; + a1 = 12; + a5 = 4; + a4 = 0; + a21 = 11; + a9 = 8; + a19 = 5; + return 22; + } else if((((((a21==11)&&(!(a24==1)&&((input==4)&&(a19==3))))&&(a1==13))&&(a13==1))&&(((a23==1)&&(((((a5==6)&&((a7==1)||(((a20==1)&&(a12==1))&&(a16==7))))&&(a9==11))&&(a12==1))&&(a17==2)))||(a27==1)))){ + a26 = 0; + a9 = 10; + a18 = 0; + a5 = 4; + a19 = 1; + a13 = 1; + a16 = 8; + a20 = 0; + return 22; + } else if((((a21==10)&&(((!(a6==1)||((a23==1)&&!(a26==1)))&&(a19==1))&&(a1==13)))&&((a17==2)&&(((a9==9)&&(!(a7==1)&&(((!(a14==1)&&((a16==7)&&((input==4)&&((a5==5)||(a5==6)))))&&!(a4==1))&&(a13==1))))&&!(a20==1))))){ + a13 = 1; + a24 = 0; + a1 = 12; + a5 = 4; + a9 = 7; + a4 = 0; + a20 = 1; + return -1; + } else if(((((((a11==1)&&(!(a20==1)&&((((a19==4)&&(!(a24==1)&&(a6==1)))&&(a16==7))&&(a5==5))))&&(a17==2))&&(a1==14))||(a0==1))&&(!(a27==1)&&(((a12==1)&&(((a21==11)&&(input==3))&&(a9==7)))&&!(a26==1))))){ + a18 = 0; + a20 = 1; + a14 = 0; + a6 = 1; + a19 = 1; + a21 = 10; + a5 = 4; + a1 = 12; + return -1; + } else if((((a1==14)&&((a9==10)&&((((a5==4)&&((a23==1)&&((a12==1)&&(a21==11))))&&!(a20==1))&&(a17==2))))&&((!(a7==1)&&((((a12==1)&&((a23==1)&&((input==3)&&(a16==7))))&&(a2==1))&&(a12==1)))&&(a19==2)))){ + a12 = 1; + a7 = 0; + a19 = 1; + a0 = 0; + a21 = 10; + a20 = 1; + a9 = 7; + a1 = 12; + return -1; + } else if((((a20==1)&&((a1==12)&&(((a17==2)&&((a9==10)&&((a16==8)&&((a13==1)&&(!(a26==1)&&((a13==1)&&(((a5==5)&&(input==3))&&!(a18==1))))))))&&(a19==2))))&&((a11==1)&&((a21==11)&&((a13==1)||!(a28==1)))))){ + a3 = 1; + a13 = 1; + a9 = 7; + a5 = 4; + a4 = 0; + a21 = 10; + a16 = 7; + a19 = 1; + return -1; + } else if(((!(a18==1)&&((((a19==4)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&!(a0==1)))&&(a21==11))&&!(a20==1)))&&(!(a26==1)&&((((a12==1)&&(((((a3==1)&&(a17==2))||!(a28==1))&&(a16==8))&&(a1==14)))&&(a9==10))||(a14==1))))){ + a19 = 5; + a5 = 6; + a16 = 9; + a21 = 10; + a14 = 0; + a6 = 1; + a2 = 1; + a9 = 9; + a20 = 1; + return 25; + } else if(((((((a11==1)||!(a2==1))&&(a3==1))&&(a1==12))&&(a2==1))&&((a9==9)&&(!(a26==1)&&((a19==1)&&((a23==1)&&((a16==9)&&((!(a20==1)&&((((a21==12)&&(input==4))&&(a5==6))&&(a23==1)))&&(a17==2))))))))){ + a16 = 7; + a5 = 4; + a9 = 8; + a12 = 0; + a19 = 5; + a10 = 0; + a20 = 1; + a13 = 0; + return 22; + } else if(((!(a20==1)&&((((a1==14)&&((!(a28==1)||((a28==1)&&(((a6==1)&&(a9==9))&&(a16==7))))||!(a28==1)))&&(a21==12))&&(a2==1)))&&(((a5==5)&&(((a6==1)&&((input==1)&&(a17==2)))&&(a19==4)))&&!(a24==1)))){ + a0 = 0; + a1 = 12; + a21 = 10; + a28 = 1; + a19 = 1; + a5 = 4; + a20 = 1; + a26 = 0; + a9 = 7; + return -1; + } else if((((a16==8)&&((((((a23==1)&&(a12==1))&&(a19==1))&&(a28==1))&&(a28==1))&&(a21==11)))&&((((a3==1)&&((a13==1)&&(((a20==1)&&((a1==14)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1))))&&(a9==7))))&&(a17==2))&&!(a8==1)))){ + a11 = 1; + a16 = 7; + a1 = 12; + a21 = 10; + a5 = 4; + a13 = 1; + return -1; + } else if((((a1==12)&&((((((a23==1)&&!(a24==1))&&(a3==1))&&(a21==12))&&(a17==2))&&(a20==1)))&&((((a12==1)&&((a16==8)&&((a23==1)&&((a6==1)&&(((input==1)&&(a5==4))&&!(a4==1))))))&&(a19==2))&&(a9==10)))){ + a26 = 0; + a16 = 7; + a19 = 1; + a9 = 7; + a21 = 10; + a12 = 1; + return -1; + } else if(((((((a26==1)||(!(a6==1)||(((a3==1)&&(a20==1))||!(a6==1))))&&!(a8==1))||(a14==1))||(a14==1))&&((a21==12)&&((a17==2)&&(((input==5)&&(((a19==4)&&((a9==11)&&((a5==6)&&(a1==14))))||(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==5))))&&(a16==10)))))){ + a3 = 1; + a27 = 0; + a9 = 9; + a19 = 2; + a1 = 13; + a5 = 5; + a16 = 7; + a11 = 1; + a21 = 10; + return -1; + } else if((((a20==1)&&((!(a27==1)&&(((input==6)&&(a5==6))&&(a9==9)))&&!(a0==1)))&&(((((a1==13)&&((a13==1)&&(((a8==1)||((a19==1)&&((a3==1)||!(a28==1))))&&(a12==1))))&&(a17==2))&&(a21==10))&&(a16==10)))){ + a1 = 12; + a5 = 4; + a24 = 0; + a16 = 7; + a9 = 7; + a8 = 0; + a0 = 0; + return -1; + } else if(((((a1==12)&&(((((a20==1)&&(input==6))&&(a19==5))&&(a16==7))&&(a17==2)))&&(a0==1))&&((a27==1)&&(!(a13==1)&&((a4==1)&&((((((a2==1)&&!(a6==1))&&(a5==4))&&(a27==1))&&(a9==8))&&(a21==11))))))){ + a5 = 5; + a19 = 2; + a11 = 0; + a21 = 10; + a9 = 9; + a28 = 0; + a10 = 0; + return -1; + } else if(((((!(a20==1)&&(!(a18==1)&&((a1==14)&&(((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5)))&&(input==1)))))&&(a19==2))&&!(a7==1))&&(((a16==8)&&(((((a21==11)&&((a13==1)&&(a17==2)))&&!(a27==1))&&(a6==1))||(a27==1)))||!(a23==1)))){ + a1 = 12; + a19 = 4; + a20 = 1; + a3 = 1; + a18 = 0; + a5 = 4; + a16 = 11; + a6 = 1; + a9 = 11; + return 23; + } else if((((a13==1)&&((a19==1)&&((((a1==13)&&(!(a4==1)&&((a9==9)&&(input==3))))&&!(a8==1))&&(a3==1))))&&((((a16==7)&&((((a17==2)&&((a11==1)&&(a5==6)))||!(a2==1))&&(a21==11)))||(a14==1))&&!(a20==1)))){ + a5 = 5; + a19 = 5; + a21 = 12; + a9 = 7; + a14 = 0; + a26 = 0; + a20 = 1; + a16 = 8; + a6 = 1; + return 22; + } else if(((((((a9==7)&&((a13==1)&&!(a14==1)))&&(a5==4))&&(a1==13))&&(a6==1))&&(((a13==1)&&((a20==1)&&(((a6==1)&&(!(a18==1)&&((a17==2)&&(((input==1)&&(a21==12))&&(a19==4)))))&&(a16==9))))&&!(a27==1)))){ + a16 = 7; + a26 = 0; + a21 = 10; + a11 = 1; + a1 = 12; + a6 = 1; + a19 = 1; + return -1; + } else if(((((!(a24==1)&&((a1==12)&&((!(a11==1)||(a23==1))&&(a11==1))))&&!(a24==1))||!(a3==1))&&((((a20==1)&&(((((input==4)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&!(a0==1))&&(a19==4))&&(a16==11)))&&(a17==2))&&(a21==11)))){ + a9 = 7; + a16 = 7; + a27 = 0; + a6 = 1; + a5 = 4; + a19 = 1; + a21 = 10; + return -1; + } else if(((((a19==4)&&((!(a27==1)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==1)))&&(a13==1)))&&(a1==14))&&((a21==11)&&((a17==2)&&(((((a20==1)&&((a16==9)&&((a11==1)||!(a6==1))))||!(a3==1))||!(a11==1))||!(a6==1)))))){ + a19 = 3; + a1 = 12; + a21 = 12; + a5 = 4; + a13 = 1; + a9 = 9; + a27 = 0; + a3 = 1; + return 21; + } else if(((!(a0==1)&&((((((((a1==14)&&(a5==4))&&(a9==7))||((((a1==13)&&(a5==5))&&(a9==11))||(((a5==6)&&(a1==13))&&(a9==11))))&&(input==4))&&!(a4==1))&&(a23==1))&&(a3==1)))&&((((((((a12==1)&&(a16==7))&&!(a20==1))&&(a17==2))&&(a21==10))||!(a3==1))&&(a19==1))&&!(a0==1)))){ + a26 = 0; + a0 = 0; + a9 = 7; + a1 = 12; + a5 = 4; + a20 = 1; + a2 = 1; + return -1; + } else if((((((a5==5)&&(!(a18==1)&&((a17==2)&&((a21==11)&&(((a1==13)&&(input==4))&&!(a0==1))))))&&!(a0==1))&&(a20==1))&&((a16==7)&&(!(a12==1)||(!(a3==1)||((((a9==11)&&(a2==1))&&(a19==3))||!(a28==1))))))){ + a1 = 12; + a9 = 7; + a3 = 1; + a19 = 1; + a5 = 4; + a21 = 10; + a14 = 0; + a2 = 1; + return -1; + } else if(((!(a23==1)||((a16==9)&&(!(a18==1)&&(!(a28==1)||(((a20==1)&&(a3==1))&&(a19==4))))))&&((((a1==13)&&(!(a27==1)&&(!(a27==1)&&((a11==1)&&((a21==11)&&((input==6)&&((a5==6)||((a5==4)||(a5==5)))))))))&&(a9==11))&&(a17==2)))){ + if((a11==1)){ + a20 = 0; + a28 = 1; + a5 = 5; + a9 = 8; + a16 = 8; + a18 = 0; + a1 = 12; + }else{ + a27 = 0; + a19 = 2; + a8 = 0; + a16 = 7; + a21 = 10; + a9 = 10; + a5 = 4; + a12 = 1; + } + return 22; + } else if((((((a0==1)||((a9==7)&&(((a5==4)&&((a3==1)||!(a13==1)))&&!(a20==1))))&&(a17==2))&&(a19==4))&&((a16==8)&&((((a1==13)&&((a11==1)&&(!(a27==1)&&((a21==10)&&(input==1)))))&&!(a4==1))&&!(a18==1))))){ + a16 = 9; + a5 = 6; + a9 = 10; + a18 = 0; + a20 = 1; + a2 = 1; + a1 = 12; + a21 = 11; + return 23; + } else if((((a19==5)&&((((!(a3==1)||(a6==1))&&(a17==2))&&(a20==1))&&(a1==12)))&&((!(a26==1)&&(!(a26==1)&&(((((a21==10)&&((input==5)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5)))))&&(a16==9))&&(a12==1))&&!(a8==1))))&&(a23==1)))){ + a16 = 7; + a23 = 1; + a2 = 1; + a9 = 7; + a19 = 1; + a5 = 4; + return -1; + } else if(((((a1==12)&&((!(a8==1)&&(!(a7==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4))))&&(a16==8)))&&(a19==5))&&((a6==1)&&((a20==1)&&((a9==10)&&(((a17==2)&&((((a26==1)||(a11==1))&&(a21==11))&&(a2==1)))&&(a13==1))))))){ + a13 = 1; + a16 = 7; + a21 = 10; + a5 = 4; + a9 = 7; + a18 = 0; + a19 = 1; + a3 = 1; + return -1; + } else if((((a11==1)&&((((((a20==1)&&((((a9==9)&&((a1==14)&&((input==6)&&(a17==2))))&&(a21==10))&&(a13==1)))&&!(a26==1))&&(a11==1))&&(a16==8))&&(a5==5)))&&((a19==1)&&(((a3==1)||!(a13==1))&&!(a14==1))))){ + a5 = 6; + a19 = 2; + a12 = 1; + a14 = 0; + a6 = 1; + a16 = 9; + a21 = 12; + return 25; + } else if(((((a21==12)&&((a19==5)&&(!(a18==1)&&((a11==1)&&((a1==14)&&((a16==9)&&((((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(input==5))))))))&&(a17==2))&&(!(a26==1)&&((a26==1)||(!(a12==1)||(((a13==1)&&(a13==1))&&!(a20==1))))))){ + a9 = 7; + a20 = 1; + a6 = 0; + a25 = 1; + a21 = 10; + a5 = 4; + a19 = 1; + a29 = 1; + a16 = 7; + return 21; + } else if((((a2==1)&&((a5==5)&&((a1==14)&&((a9==8)&&(((a3==1)&&((a6==1)&&((a21==10)&&((a17==2)&&(input==1)))))&&(a16==9))))))&&((a19==3)&&(!(a18==1)&&(!(a20==1)&&((a13==1)&&((a23==1)&&(a6==1)))))))){ + a8 = 1; + a10 = 1; + a19 = 2; + a1 = 12; + a21 = 12; + a5 = 6; + a16 = 11; + a20 = 1; + a9 = 9; + return -1; + } else if((((!(a12==1)||(a11==1))&&(a20==1))&&(!(a0==1)&&(((a1==14)&&(!(a0==1)&&((a19==5)&&(((((!(a7==1)&&((input==6)&&(((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))))&&!(a24==1))&&(a21==10))&&(a17==2))&&!(a14==1)))))&&(a16==8))))){ + a9 = 8; + a23 = 1; + a6 = 1; + a14 = 0; + a5 = 5; + return -1; + } else if((((a9==8)&&((!(a0==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a17==2)))&&(a21==11)))&&(((((((((a19==3)&&(!(a11==1)||(a12==1)))&&(a11==1))||(a4==1))&&(a20==1))&&(a16==8))&&(a1==14))&&!(a4==1))&&!(a18==1)))){ + a9 = 7; + a11 = 1; + a1 = 12; + a21 = 10; + a14 = 0; + a19 = 1; + a16 = 7; + a5 = 4; + a24 = 0; + return -1; + } else if((((a9==7)&&((a19==3)&&((a27==1)||((a16==11)&&((a21==12)&&((a20==1)&&((a3==1)&&(a6==1))))))))&&((a5==6)&&(!(a14==1)&&((((a13==1)&&(((input==3)&&(a1==13))&&(a17==2)))&&(a13==1))&&!(a4==1)))))){ + a5 = 4; + a19 = 1; + a7 = 0; + a4 = 0; + a27 = 0; + a21 = 10; + a1 = 12; + a16 = 7; + return -1; + } else if((((((a16==8)&&((((a23==1)&&(a17==2))&&(a1==13))&&(a9==9)))||(a18==1))&&(a20==1))&&(((a23==1)&&((((a11==1)&&(((a12==1)&&((input==1)&&(a19==3)))&&(a13==1)))&&!(a27==1))&&(a5==4)))&&(a21==11)))){ + a19 = 1; + a7 = 0; + a1 = 12; + a21 = 10; + a9 = 7; + a16 = 7; + a18 = 0; + a24 = 0; + return -1; + } else if((((a3==1)&&(((((a20==1)&&((input==4)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))))&&!(a24==1))&&(a21==11))&&(a1==12)))&&(((a19==5)&&((a17==2)&&((a16==7)&&((((a12==1)&&(a23==1))||!(a23==1))||(a0==1)))))&&!(a27==1)))){ + a28 = 1; + a19 = 1; + a21 = 10; + a9 = 7; + a24 = 0; + a4 = 0; + a5 = 4; + return -1; + } else if((((a19==4)&&(((((a12==1)&&(((((((a5==4)||(a5==5))&&(input==5))&&(a21==12))&&(a11==1))&&(a20==1))&&(a9==8)))&&(a16==9))&&(a1==13))&&(a17==2)))&&(((a11==1)&&(((a11==1)||(a7==1))&&!(a18==1)))&&(a2==1)))){ + a19 = 1; + a9 = 7; + a21 = 10; + a5 = 4; + a7 = 0; + a11 = 1; + a0 = 0; + a1 = 12; + a16 = 7; + return -1; + } else if(((!(a13==1)||((((a19==3)&&(((a23==1)&&(a16==8))&&(a20==1)))&&!(a14==1))&&(a17==2)))&&((a11==1)&&(((a21==12)&&(((a2==1)&&(!(a24==1)&&((input==6)&&(((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))))))&&!(a0==1)))&&(a1==12))))){ + a3 = 1; + a12 = 1; + a27 = 0; + a16 = 10; + a9 = 10; + a5 = 6; + a19 = 2; + return 21; + } else if((((!(a18==1)&&((!(a24==1)&&(((a5==5)||(a5==6))&&(input==5)))&&(a16==10)))&&(a1==13))&&((a19==2)&&((a17==2)&&((a2==1)&&(((!(a11==1)||((a20==1)&&(((a12==1)&&(a3==1))&&(a21==11))))||(a18==1))&&(a9==7))))))){ + a1 = 14; + a16 = 11; + a13 = 1; + a19 = 1; + a5 = 4; + a23 = 1; + return 23; + } else if((((a16==8)&&((a19==4)&&(((((a23==1)&&((((a6==1)&&((input==4)&&((a5==5)||(a5==6))))&&!(a8==1))&&(a1==14)))&&!(a14==1))&&(a17==2))&&(a9==9))))&&(!(a20==1)&&(((a21==11)&&((a2==1)&&(a11==1)))&&(a11==1))))){ + a16 = 7; + a0 = 0; + a5 = 4; + a12 = 1; + a21 = 10; + a1 = 12; + a27 = 0; + a20 = 1; + a9 = 7; + a19 = 1; + return -1; + } else if(((!(a23==1)||(((((((a20==1)&&(!(a4==1)&&((((a17==2)&&((a28==1)&&(a16==8)))||(a26==1))&&(a21==12))))||(a18==1))&&(a28==1))&&(a9==11))||!(a28==1))&&(a1==13)))&&((a19==5)&&((input==5)&&((a5==6)||((a5==4)||(a5==5))))))){ + a19 = 1; + a5 = 4; + a23 = 1; + a9 = 8; + a16 = 7; + a13 = 1; + a8 = 0; + return 22; + } else if((((a13==1)&&((a19==2)&&(((a6==1)&&(a11==1))&&(a21==12))))&&((a3==1)&&(!(a14==1)&&(((((!(a20==1)&&((a17==2)&&((input==6)&&(((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))))&&(a1==12))&&!(a4==1))&&!(a18==1))&&(a16==9)))))){ + if((a12==1)){ + a11 = 0; + a16 = 10; + a5 = 5; + a21 = 11; + a26 = 1; + a13 = 0; + a9 = 10; + a20 = 1; + }else{ + a5 = 4; + a9 = 8; + a21 = 10; + a10 = 1; + a25 = 1; + a16 = 7; + a20 = 1; + a19 = 1; + a3 = 0; + a1 = 14; + } + return 21; + } else if(((((a1==14)&&(!(a14==1)&&(((a9==11)&&((a19==1)&&(a23==1)))&&(a13==1))))&&(a17==2))&&(!(a8==1)&&((a16==9)&&(!(a18==1)&&((((a20==1)&&((a21==10)&&((input==5)&&((a5==4)||(a5==5)))))&&!(a4==1))&&(a23==1))))))){ + a6 = 1; + a9 = 10; + a7 = 0; + a5 = 5; + a2 = 1; + a19 = 3; + a21 = 12; + a1 = 12; + return 21; + } else if((((((((a6==1)||(a8==1))&&(a21==12))&&(a9==8))&&(a16==8))&&!(a20==1))&&((((!(a26==1)&&((a19==2)&&((((((a5==4)||(a5==5))&&(input==6))&&(a1==14))&&!(a8==1))&&!(a18==1))))&&(a13==1))&&(a17==2))&&(a12==1)))){ + a16 = 7; + a29 = 0; + a20 = 1; + a0 = 1; + a21 = 10; + a5 = 4; + a1 = 13; + a19 = 1; + a9 = 10; + a28 = 0; + return -1; + } else if(((((!(a13==1)||((a7==1)||(((a17==2)&&((!(a7==1)&&(a13==1))||!(a13==1)))&&(a21==11))))&&!(a20==1))&&(a1==14))&&((a11==1)&&((((a16==10)&&((((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==6)))&&!(a27==1))&&(a19==1))))){ + a25 = 0; + a16 = 7; + a9 = 8; + a21 = 10; + a1 = 12; + a29 = 1; + a22 = 1; + a20 = 1; + a5 = 4; + return 22; + } else if(((((((((!(a6==1)&&(((((a19==1)&&(input==4))&&(a20==1))&&(a17==2))&&(a16==10)))&&!(a12==1))&&!(a23==1))&&(a21==10))&&(a9==8))&&(a1==12))&&!(a23==1))&&((((a14==1)&&(a3==1))&&(a5==6))&&(a26==1)))){ + a15 = 0; + a12 = 0; + a16 = 7; + a20 = 0; + a5 = 5; + a11 = 0; + a19 = 2; + a1 = 14; + return 23; + } else if((((a19==4)&&(!(a0==1)&&(((a5==4)||(a5==5))&&(input==5))))&&((a12==1)&&((a8==1)||((((!(a20==1)&&((!(a24==1)&&((a1==13)&&(((a12==1)&&(a9==11))&&(a21==12))))&&(a16==7)))&&(a12==1))||(a7==1))&&(a17==2)))))){ + a21 = 10; + a19 = 1; + a9 = 7; + a2 = 1; + a18 = 0; + a20 = 1; + a7 = 0; + a1 = 12; + a5 = 4; + return -1; + } else if((((a9==8)&&(((a5==6)&&((a17==2)&&((a6==1)&&((a19==3)&&((a3==1)&&((a2==1)&&((a1==12)&&((a6==1)&&((a21==12)&&(input==3))))))))))&&(a16==8)))&&((((a3==1)&&(a6==1))&&!(a0==1))&&!(a20==1)))){ + if((a18==1)){ + a21 = 10; + a2 = 0; + a5 = 4; + a16 = 7; + a9 = 11; + a19 = 1; + a23 = 0; + a20 = 1; + a29 = 1; + }else{ + a20 = 1; + a9 = 7; + a16 = 7; + a12 = 0; + a27 = 1; + a19 = 2; + a21 = 10; + a15 = 1; + } + return -1; + } else if((((!(a0==1)&&((a16==7)&&(!(a14==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5)))))))&&(a12==1))&&((a21==10)&&(((a9==7)&&((a1==13)&&((a20==1)&&((a27==1)||((a28==1)&&((a17==2)&&((a13==1)&&(a19==3))))))))||(a7==1))))){ + a5 = 6; + a24 = 0; + a23 = 1; + a21 = 11; + a19 = 1; + a1 = 12; + a7 = 0; + return 25; + } else if((((a11==1)&&((a1==14)&&((a17==2)&&(((a13==1)&&((a2==1)&&(a20==1)))&&(a19==5)))))&&(((!(a8==1)&&((((a23==1)&&((a9==8)&&(((a5==4)||(a5==5))&&(input==3))))&&(a16==9))&&!(a14==1)))&&(a21==12))&&!(a24==1)))){ + a21 = 11; + a5 = 5; + a27 = 0; + a11 = 1; + a28 = 1; + a9 = 11; + return 21; + } else if((((a19==2)&&(((a21==10)&&((a6==1)&&((a23==1)&&((a9==10)&&(((a17==2)&&(input==1))&&(a5==6))))))&&(a20==1)))&&((a16==7)&&(((a18==1)||(!(a28==1)||((a28==1)&&((a2==1)&&(a1==13)))))||!(a13==1))))){ + a5 = 5; + a11 = 1; + a8 = 0; + a19 = 3; + a9 = 11; + a28 = 1; + return 25; + } else if(((((!(a7==1)&&((a5==6)&&(a28==1)))&&(a19==3))&&(a9==9))&&(!(a0==1)&&((((a1==13)&&((a23==1)&&((a17==2)&&(((a20==1)&&((a11==1)&&((a16==11)&&(input==4))))&&!(a18==1)))))&&(a21==10))&&(a12==1))))){ + a5 = 4; + a1 = 12; + a3 = 1; + a27 = 0; + a16 = 7; + a19 = 1; + a9 = 7; + a11 = 1; + return -1; + } else if((((((a17==2)&&(((a5==6)&&(((a21==11)&&(a13==1))&&(a9==10)))&&(a28==1)))&&(a2==1))&&(a20==1))&&((a19==1)&&(((((!(a0==1)&&((input==3)&&(a16==8)))&&!(a27==1))&&(a1==12))&&!(a27==1))&&(a2==1))))){ + a16 = 7; + a9 = 7; + a5 = 4; + a3 = 1; + a2 = 1; + a23 = 1; + a21 = 10; + return -1; + } else if((((a12==1)&&(((((a21==10)&&(input==4))&&(a1==14))&&(a17==2))&&(a5==4)))&&((!(a8==1)&&((((a20==1)&&((((a19==2)&&((a12==1)&&(a16==11)))&&(a9==9))&&(a12==1)))||!(a11==1))&&(a23==1)))&&!(a8==1)))){ + a16 = 7; + a2 = 1; + a19 = 1; + a26 = 0; + a9 = 7; + a14 = 0; + a1 = 12; + return -1; + } else if(((!(a2==1)||(((a24==1)||((a19==3)&&((a21==11)&&(((a6==1)||(a18==1))&&(a1==13)))))&&(a16==11)))&&((a12==1)&&(((a20==1)&&(!(a27==1)&&((a17==2)&&((input==6)&&(((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))))))&&!(a0==1))))){ + a3 = 1; + a16 = 9; + a6 = 1; + a19 = 4; + a9 = 10; + a5 = 6; + a4 = 0; + return -1; + } else if(((((((a13==1)&&(!(a20==1)&&((a16==9)&&((input==5)&&(((a19==2)&&(((a1==14)&&(a5==6))&&(a9==11)))||((((a5==4)&&(a1==12))&&(a9==7))&&(a19==3)))))))&&!(a14==1))&&(a6==1))&&(a21==11))&&(((!(a2==1)||((a12==1)&&(a17==2)))||!(a2==1))&&!(a8==1)))){ + a1 = 14; + a21 = 10; + a29 = 1; + a9 = 8; + a16 = 7; + a19 = 5; + a22 = 0; + a5 = 4; + a15 = 1; + return 25; + } else if(((((a21==10)&&((!(a2==1)||((a12==1)&&!(a14==1)))&&(a11==1)))&&(a17==2))&&(((((a16==10)&&(!(a24==1)&&((((input==4)&&(((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))))&&(a23==1))&&(a2==1))))&&(a1==12))&&!(a20==1))&&(a19==3)))){ + if((a4==1)){ + a5 = 6; + a1 = 13; + a21 = 11; + a13 = 0; + a9 = 10; + a16 = 7; + a25 = 1; + a20 = 1; + a6 = 0; + }else{ + a19 = 1; + a8 = 1; + a11 = 0; + a16 = 7; + a20 = 1; + a1 = 14; + a10 = 1; + a9 = 7; + a5 = 6; + } + return 21; + } else if((((!(a27==1)&&(!(a26==1)&&((a17==2)&&((a16==9)&&((a1==14)&&(((((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8))))&&(input==3))&&!(a14==1)))))))&&!(a0==1))&&(!(a18==1)&&((((a13==1)&&((a28==1)&&(a19==4)))&&(a20==1))&&(a21==10))))){ + a19 = 1; + a23 = 1; + a2 = 1; + a9 = 7; + a5 = 4; + a4 = 0; + a16 = 7; + a1 = 12; + return -1; + } else if(((((a19==4)&&((((input==5)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(a13==1))&&(a1==13)))&&!(a26==1))&&((a24==1)||((((a28==1)&&((((!(a11==1)||(a6==1))&&(a17==2))&&(a20==1))&&(a21==11)))&&(a16==7))||(a26==1))))){ + a5 = 4; + a6 = 1; + a19 = 1; + a12 = 1; + a21 = 10; + a1 = 12; + a24 = 0; + a9 = 7; + return -1; + } else if((((!(a24==1)&&(((((((a9==11)&&((a5==6)&&(a1==12)))||((a9==7)&&((a5==4)&&(a1==13))))&&(input==3))&&(a21==10))&&!(a24==1))&&(a2==1)))&&!(a8==1))&&((a11==1)&&((((((a16==10)&&(a28==1))&&(a17==2))&&(a6==1))&&(a19==4))&&(a20==1))))){ + a6 = 1; + a19 = 1; + a23 = 1; + a16 = 7; + a1 = 12; + a9 = 7; + a5 = 4; + return -1; + } else if((((a19==4)&&(((!(a0==1)&&((a23==1)&&((a1==12)&&((a20==1)&&((a17==2)&&(input==4))))))&&(a21==11))&&(a16==7)))&&(!(a6==1)||((a9==11)&&(((!(a27==1)&&((a24==1)||(a12==1)))||(a8==1))&&(a5==4)))))){ + a21 = 10; + a9 = 7; + a7 = 0; + a12 = 1; + a19 = 1; + a4 = 0; + return -1; + } else if((((((a16==7)&&(((((a1==13)&&((input==4)&&((a5==6)||((a5==4)||(a5==5)))))&&(a9==11))&&!(a2==1))&&!(a28==1)))&&(a17==2))&&(a19==3))&&((a21==11)&&(((a0==1)&&(((!(a12==1)&&(a12==1))&&(a27==1))&&!(a11==1)))&&!(a20==1))))){ + a9 = 7; + a20 = 1; + a2 = 0; + a19 = 1; + a4 = 1; + a21 = 10; + a5 = 5; + return -1; + } else if((((((a19==5)&&(!(a7==1)&&(((a16==7)&&((a13==1)||!(a11==1)))&&(a17==2))))&&(a1==12))&&(a20==1))&&(((a12==1)&&((a21==11)&&((((input==4)&&(((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))))&&(a28==1))&&(a11==1))))&&(a3==1)))){ + a21 = 12; + a1 = 14; + a13 = 1; + a9 = 7; + a19 = 1; + a16 = 8; + a5 = 4; + a12 = 1; + a24 = 0; + return 23; + } else if((((a16==9)&&(((a2==1)&&(a12==1))&&(a1==13)))&&((((a21==12)&&((a19==5)&&((!(a24==1)&&(((((((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==6))&&(a2==1))&&(a23==1))&&!(a27==1)))&&!(a4==1))))&&(a17==2))&&!(a20==1)))){ + if((a22==1)){ + a10 = 1; + a23 = 0; + a16 = 10; + a1 = 12; + a19 = 4; + a0 = 1; + a20 = 1; + a5 = 4; + a9 = 11; + }else{ + a16 = 7; + a19 = 3; + a21 = 11; + a18 = 1; + a20 = 1; + a11 = 0; + a23 = 0; + a9 = 10; + a5 = 5; + } + return -1; + } else if((((!(a14==1)&&((a19==1)&&(((((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))&&(input==1))&&(a1==13))&&!(a8==1))))&&(a3==1))&&((((a21==12)&&((((a20==1)&&((a13==1)&&(a23==1)))&&(a16==10))&&(a17==2)))||(a0==1))&&(a2==1)))){ + a12 = 1; + a6 = 1; + a21 = 10; + a2 = 1; + a19 = 2; + a9 = 9; + a5 = 4; + a16 = 7; + return 25; + } else if(((((a19==3)&&(!(a26==1)&&((a20==1)&&((((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a1==12))&&(a9==8)))))&&!(a7==1))&&(!(a13==1)||(((((a17==2)&&(!(a18==1)&&((a11==1)||!(a13==1))))&&(a12==1))&&(a21==12))&&(a16==10))))){ + a21 = 10; + a13 = 1; + a9 = 7; + a14 = 0; + a5 = 4; + a7 = 0; + a16 = 7; + a19 = 1; + return -1; + } else if(((!(a11==1)||(((a13==1)&&((a12==1)&&(a1==12)))||!(a11==1)))&&(((!(a14==1)&&(((a21==10)&&((a19==1)&&(((a16==8)&&(((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4)))&&(input==6)))&&!(a20==1))))&&(a17==2)))&&!(a24==1))&&!(a27==1)))){ + a0 = 0; + a9 = 9; + a20 = 1; + a19 = 2; + a11 = 1; + a27 = 0; + a1 = 13; + a5 = 5; + a16 = 7; + return 23; + } else if((((((!(a14==1)&&(((input==1)&&((((a21==12)&&((a19==5)&&((a16==8)&&((a9==11)&&((a5==5)&&(a1==14))))))||((((a16==8)&&(((a5==6)&&(a1==14))&&(a9==11)))&&(a19==5))&&(a21==12)))||((a21==10)&&(((a16==9)&&((a9==7)&&((a5==4)&&(a1==12))))&&(a19==1)))))&&!(a27==1)))&&(a3==1))&&!(a0==1))&&(a23==1))&&((((a20==1)&&(a6==1))&&(a17==2))||(a27==1)))){ + a9 = 11; + a21 = 12; + a2 = 1; + a1 = 14; + a27 = 0; + a5 = 4; + a4 = 0; + a19 = 2; + a16 = 8; + return 22; + } else if((((a2==1)&&((!(a8==1)&&(!(a0==1)&&((a23==1)&&((a19==1)&&((((a17==2)&&((a5==6)&&((a9==11)&&(input==5))))&&(a1==14))&&(a21==11))))))&&!(a24==1)))&&(((!(a26==1)&&(a3==1))&&!(a20==1))&&(a16==8)))){ + a20 = 1; + a1 = 12; + a28 = 1; + a16 = 11; + a27 = 0; + a5 = 5; + a7 = 0; + a21 = 12; + return 23; + } else if(((((a17==2)&&((((a12==1)||(a24==1))&&!(a27==1))||(a14==1)))&&(a21==12))&&(((a19==5)&&(((a9==9)&&((a2==1)&&((!(a4==1)&&((!(a20==1)&&(input==3))&&(a1==13)))&&!(a0==1))))&&(a5==5)))&&(a16==8)))){ + if((a3==1)){ + a19 = 2; + a16 = 11; + a10 = 1; + a22 = 0; + a21 = 10; + a25 = 0; + a9 = 7; + a20 = 1; + }else{ + a1 = 14; + a24 = 1; + a9 = 11; + a16 = 7; + a8 = 1; + a20 = 1; + a5 = 4; + a28 = 0; + a21 = 10; + a19 = 1; + } + return -1; + } else if((((!(a23==1)||((a19==2)&&(((a20==1)&&(a13==1))||!(a13==1))))&&(a28==1))&&(!(a18==1)&&(((a21==11)&&(!(a27==1)&&((a16==8)&&((a17==2)&&((input==6)&&((((a5==5)&&(a1==14))&&(a9==7))||(((a9==11)&&((a5==6)&&(a1==13)))||((a9==7)&&((a1==14)&&(a5==4))))))))))&&!(a24==1))))){ + a12 = 1; + a1 = 12; + a28 = 1; + a19 = 1; + a7 = 0; + a16 = 7; + a21 = 10; + a9 = 7; + a5 = 4; + return -1; + } else if((((a1==12)&&((((a19==5)&&(((a26==1)||((a6==1)&&(a20==1)))&&(a16==11)))||(a18==1))&&(a17==2)))&&((a13==1)&&((!(a4==1)&&((a21==12)&&(((input==6)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&!(a14==1))))&&!(a24==1))))){ + a19 = 1; + a18 = 0; + a5 = 4; + a21 = 10; + a6 = 1; + a0 = 0; + a16 = 7; + a9 = 7; + return -1; + } else if((((((((a20==1)&&(!(a6==1)||((((a1==12)&&(a13==1))||!(a2==1))&&(a23==1))))&&(a6==1))&&(a17==2))&&(a16==11))&&(a19==1))&&((a21==10)&&((a9==7)&&(!(a27==1)&&((a13==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))))))){ + a11 = 1; + a12 = 1; + a1 = 13; + a19 = 2; + a13 = 1; + a5 = 5; + a16 = 7; + a9 = 9; + return 25; + } else if((((a9==10)&&(((a14==1)||(((a17==2)&&((!(a2==1)||(a11==1))&&(a16==9)))||(a27==1)))||(a18==1)))&&(!(a20==1)&&((((!(a7==1)&&(((input==4)&&(a5==4))&&(a11==1)))&&(a21==10))&&(a1==12))&&(a19==2))))){ + a16 = 7; + a0 = 1; + a7 = 1; + a5 = 6; + a21 = 12; + a9 = 9; + a10 = 1; + a1 = 14; + return -1; + } else if(((((a16==8)&&(((a19==5)&&(((a2==1)&&((a21==11)&&((a3==1)&&(a9==9))))&&(a20==1)))&&(a23==1)))&&(a17==2))&&((!(a14==1)&&((a1==13)&&(((a12==1)&&((input==5)&&((a5==5)||(a5==6))))&&(a12==1))))&&!(a4==1)))){ + a16 = 7; + a26 = 0; + a19 = 4; + a9 = 11; + a5 = 6; + a1 = 12; + a8 = 0; + a20 = 0; + return 21; + } else if((((a1==14)&&(!(a26==1)&&((a16==7)&&(((!(a20==1)&&((input==4)&&((a5==4)||(a5==5))))&&(a13==1))&&(a19==3)))))&&((!(a4==1)&&(((a21==12)&&((((a13==1)&&(a9==9))||(a8==1))&&!(a7==1)))&&(a28==1)))&&(a17==2)))){ + a21 = 10; + a6 = 1; + a5 = 4; + a20 = 1; + a4 = 0; + a7 = 0; + a19 = 1; + a1 = 12; + a9 = 7; + return -1; + } else if(((!(a20==1)&&((a4==1)||((a4==1)||((a16==9)&&(((a9==9)&&(a23==1))&&(a17==2))))))&&((a11==1)&&((a19==3)&&((a21==12)&&(!(a4==1)&&((a1==13)&&(((a6==1)&&((input==6)&&((a5==5)||(a5==6))))&&(a3==1))))))))){ + a5 = 6; + a9 = 10; + a22 = 0; + a19 = 2; + a1 = 14; + a12 = 0; + a16 = 10; + a20 = 1; + return -1; + } else if((((((a9==10)&&(((a16==8)&&((a1==13)&&(a13==1)))&&(a21==12)))||!(a11==1))&&(a19==1))&&(!(a20==1)&&((a23==1)&&(!(a0==1)&&(!(a7==1)&&(!(a7==1)&&(!(a24==1)&&((a17==2)&&((input==5)&&(a5==4))))))))))){ + a1 = 12; + a9 = 9; + a2 = 0; + a21 = 10; + a20 = 1; + a6 = 0; + a5 = 5; + a3 = 0; + a16 = 7; + return -1; + } else if((((a17==2)&&((a20==1)&&(((((a6==1)&&(((a19==5)&&(!(a26==1)&&((input==5)&&((a5==4)||(a5==5)))))&&(a21==12)))&&(a16==8))&&(a28==1))&&(a9==7))))&&(((!(a2==1)||((a12==1)&&(a3==1)))&&(a1==12))||(a7==1)))){ + a18 = 0; + a5 = 4; + a21 = 10; + a1 = 13; + a24 = 0; + a2 = 1; + a9 = 11; + return -1; + } else if(((!(a20==1)&&(((a19==4)&&((!(a11==1)||((a3==1)&&!(a4==1)))||!(a13==1)))&&(a17==2)))&&(((a1==13)&&(((a21==11)&&((a23==1)&&((((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&!(a8==1))&&!(a18==1))))&&(a9==8)))&&(a16==9)))){ + if((a8==1)){ + a9 = 9; + a16 = 7; + a19 = 2; + a2 = 0; + a21 = 10; + a5 = 6; + a20 = 1; + a1 = 12; + a25 = 0; + a28 = 0; + }else{ + a21 = 10; + a16 = 7; + a15 = 0; + a20 = 1; + a19 = 1; + a22 = 1; + a1 = 14; + a5 = 5; + a29 = 0; + } + return -1; + } else if(((((!(a20==1)&&((((a19==5)&&((!(a26==1)&&(((a5==4)||(a5==5))&&(input==4)))&&(a16==9)))&&(a9==8))&&!(a24==1)))&&(a28==1))&&(a13==1))&&(((a0==1)||((((a17==2)&&(a6==1))&&(a1==14))&&(a21==11)))&&!(a0==1)))){ + a25 = 1; + a5 = 6; + a14 = 1; + a16 = 7; + a19 = 1; + a20 = 1; + a9 = 7; + a29 = 0; + a1 = 12; + a21 = 10; + return 21; + } else if((((a19==3)&&((a16==9)&&((((a20==1)&&((a5==6)&&((((a17==2)&&(a3==1))||!(a2==1))||(a7==1))))&&(a13==1))||(a24==1))))&&((a1==14)&&((a9==10)&&((!(a18==1)&&((input==5)&&(a21==11)))&&!(a14==1)))))){ + a21 = 10; + a23 = 1; + a19 = 1; + a5 = 4; + a13 = 1; + a1 = 12; + a9 = 7; + a16 = 7; + a18 = 0; + return -1; + } else if(((((((a2==1)&&(!(a8==1)&&(a11==1)))&&(a16==11))&&(a11==1))||!(a2==1))&&(((a19==4)&&((a1==12)&&(!(a20==1)&&((a21==10)&&((!(a7==1)&&((((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6))))&&(input==1)))&&(a17==2))))))&&!(a14==1)))){ + a20 = 1; + a9 = 11; + a14 = 1; + a10 = 1; + a3 = 0; + a1 = 13; + a16 = 7; + a19 = 1; + a5 = 6; + return -1; + } else if(((((a1==13)&&(!(a8==1)&&(((((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(input==5))&&(a3==1))))&&(a21==11))&&((a17==2)&&((a16==10)&&(!(a7==1)&&((((!(a27==1)&&((a19==3)&&(a13==1)))||!(a3==1))&&!(a20==1))&&!(a4==1))))))){ + if((a1==13)){ + a25 = 1; + a10 = 1; + a1 = 12; + a5 = 6; + a9 = 9; + a21 = 10; + a12 = 0; + }else{ + a20 = 1; + a13 = 0; + a29 = 1; + a22 = 1; + a5 = 5; + a16 = 8; + a9 = 7; + a19 = 2; + a1 = 12; + } + return -1; + } else if((((a9==9)&&(((a28==1)&&(((a12==1)&&(((a21==11)&&((a16==9)&&(((a5==5)||(a5==6))&&(input==5))))&&(a28==1)))&&(a17==2)))&&(a1==14)))&&((((a26==1)||((a4==1)||((a3==1)&&(a19==5))))||(a18==1))&&(a20==1)))){ + a0 = 0; + a21 = 10; + a1 = 12; + a16 = 7; + a9 = 7; + a19 = 1; + a5 = 4; + a23 = 1; + return -1; + } else if(((!(a4==1)&&(((a9==8)&&(((a19==4)&&((!(a27==1)&&(((a21==12)&&((input==5)&&(a1==14)))&&(a17==2)))&&(a11==1)))&&!(a24==1)))&&!(a14==1)))&&(((a16==11)&&((a20==1)&&((a5==6)&&(a28==1))))&&!(a26==1)))){ + a19 = 5; + a24 = 0; + a1 = 13; + a27 = 0; + a16 = 10; + a4 = 0; + a9 = 11; + return 25; + } else if(((!(a20==1)&&(((((a3==1)&&(!(a26==1)&&(!(a27==1)&&((input==6)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))))))&&(a21==11))&&(a13==1))&&(a2==1)))&&((a19==2)&&((a17==2)&&((((a1==13)&&(a2==1))&&(a16==8))||(a26==1)))))){ + if((a28==1)){ + a5 = 5; + a1 = 12; + a0 = 0; + a12 = 1; + a26 = 0; + a9 = 8; + a19 = 4; + }else{ + a21 = 10; + a24 = 0; + a3 = 1; + a6 = 1; + a16 = 7; + a5 = 4; + a9 = 10; + a20 = 1; + } + return 21; + } else if((((!(a13==1)&&(!(a3==1)&&(((a20==1)&&((input==5)&&(a19==2)))&&(a1==13))))&&(a17==2))&&((a16==7)&&(((!(a23==1)&&((a8==1)&&((((a21==10)&&(a2==1))&&(a14==1))&&(a9==10))))&&(a18==1))&&(a5==6))))){ + a9 = 9; + a5 = 4; + a18 = 1; + a1 = 12; + a15 = 0; + a22 = 1; + return 25; + } else if((((((((((a13==1)&&(((input==3)&&((a5==5)||(a5==6)))&&(a21==10)))&&(a9==11))&&!(a18==1))&&!(a7==1))&&!(a27==1))&&(a17==2))&&(a19==5))&&((a26==1)||(((a1==13)&&(((a20==1)&&(a2==1))||!(a2==1)))&&(a16==11))))){ + a3 = 1; + a16 = 7; + a8 = 0; + a19 = 1; + a13 = 1; + a5 = 4; + a9 = 7; + a1 = 12; + return -1; + } else if(((((a19==4)&&((a20==1)&&(!(a4==1)&&((((a16==9)&&((a28==1)&&((a17==2)&&(input==5))))&&(a13==1))&&(a5==6)))))&&(a21==11))&&((a1==13)&&((a24==1)||((((a28==1)||(a14==1))||!(a28==1))&&(a9==10)))))){ + a4 = 0; + a19 = 1; + a7 = 0; + a5 = 5; + a1 = 12; + a26 = 0; + a9 = 7; + return 25; + } else if((((a2==1)&&((a27==1)||((((a20==1)&&((a19==2)&&((a6==1)&&!(a24==1))))&&!(a7==1))&&(a12==1))))&&((a21==12)&&((((((input==4)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10))))&&(a17==2))&&(a1==14))&&!(a27==1))&&(a16==9))))){ + a9 = 7; + a5 = 4; + a1 = 12; + a21 = 10; + a16 = 7; + a2 = 1; + a27 = 0; + a7 = 0; + a19 = 1; + return -1; + } else if((((((a2==1)&&(!(a8==1)&&((a2==1)||(a4==1))))&&(a1==13))&&(a6==1))&&(!(a27==1)&&((a21==12)&&((a23==1)&&(((a17==2)&&((!(a20==1)&&((((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6))))&&(input==5)))&&(a19==3)))&&(a16==9))))))){ + if((a6==1)){ + a20 = 1; + a16 = 7; + a9 = 8; + a5 = 4; + a18 = 1; + a19 = 1; + a21 = 10; + a23 = 0; + a1 = 12; + a12 = 0; + }else{ + a16 = 7; + a4 = 1; + a9 = 7; + a5 = 4; + a22 = 0; + a20 = 1; + a19 = 1; + a6 = 0; + a21 = 10; + } + return 21; + } else if((((a9==9)&&(((a1==13)&&(!(a27==1)&&((((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a6==1))&&(a28==1))))&&!(a26==1)))&&((a17==2)&&((a21==10)&&(((a16==11)&&((a23==1)&&((a19==2)&&((a20==1)&&(a2==1)))))||(a24==1)))))){ + a19 = 1; + a1 = 12; + a28 = 1; + a16 = 7; + a3 = 1; + a11 = 1; + a9 = 7; + a5 = 4; + return -1; + } else if(((((((a13==1)&&((!(a18==1)&&(((a9==9)&&((input==4)&&!(a20==1)))&&(a1==14)))&&!(a8==1)))&&!(a27==1))&&(a3==1))&&(a21==11))&&((a5==5)&&((a19==5)&&((a7==1)||((a16==9)&&((a17==2)&&(a11==1)))))))){ + a7 = 1; + a16 = 7; + a1 = 12; + a21 = 10; + a24 = 1; + a19 = 1; + a3 = 0; + a20 = 1; + a5 = 6; + return -1; + } else if((((!(a18==1)&&((a21==10)&&(((a13==1)&&(((a16==7)&&(input==6))&&(a20==1)))&&!(a8==1))))&&(a5==5))&&((((((((a1==13)&&(a13==1))&&!(a18==1))&&(a17==2))||(a8==1))&&!(a27==1))&&(a9==8))&&(a19==3)))){ + a7 = 0; + a14 = 0; + a21 = 11; + a13 = 1; + a19 = 1; + return 26; + } else if(((!(a20==1)&&((((((a16==7)&&((a9==7)&&((a3==1)&&((a19==2)&&(input==3)))))&&(a17==2))&&!(a27==1))&&(a2==1))&&(a5==5)))&&(((((a13==1)&&(!(a8==1)&&(a3==1)))||!(a3==1))&&(a21==11))&&(a1==12)))){ + a6 = 1; + a5 = 4; + a21 = 10; + a20 = 1; + a2 = 1; + a19 = 1; + a13 = 1; + return -1; + } else if((((!(a7==1)&&(!(a27==1)&&(((input==5)&&(a20==1))&&(a5==6))))&&(a16==10))&&((((a21==10)&&((((!(a3==1)||(((a17==2)&&(a11==1))&&(a9==9)))||(a26==1))&&(a1==13))&&!(a14==1)))&&(a19==1))&&(a23==1)))){ + a9 = 7; + a1 = 12; + a16 = 7; + a27 = 0; + a5 = 4; + a0 = 0; + return -1; + } else if((((a1==12)&&(((!(a2==1)||(!(a24==1)&&(((a16==8)&&(a11==1))&&!(a18==1))))||(a26==1))||(a0==1)))&&((a17==2)&&((a21==12)&&((((((a20==1)&&(input==4))&&(a9==8))&&(a5==6))&&(a2==1))&&(a19==3)))))){ + a16 = 7; + a3 = 1; + a9 = 7; + a5 = 4; + a19 = 1; + a23 = 1; + a21 = 10; + return -1; + } else if((((((a16==7)&&(((a0==1)||((a1==13)&&((a20==1)&&(a6==1))))&&!(a0==1)))&&!(a0==1))||!(a11==1))&&(((((((a19==4)&&(((a5==4)||(a5==5))&&(input==6)))&&!(a7==1))&&(a17==2))&&(a9==10))&&!(a26==1))&&(a21==11)))){ + a5 = 6; + a4 = 0; + a0 = 0; + a16 = 8; + a26 = 0; + a9 = 8; + return 21; + } else if((((a9==7)&&((((a16==10)&&((((a5==6)&&(input==6))&&(a1==12))&&(a28==1)))&&(a19==3))&&(a17==2)))&&((a26==1)||(((((a6==1)&&((a3==1)&&((a21==12)&&(a28==1))))&&(a20==1))&&!(a24==1))||(a27==1))))){ + a19 = 1; + a24 = 0; + a21 = 10; + a13 = 1; + a11 = 1; + a5 = 4; + a16 = 7; + return -1; + } else if(((((((a5==4)&&(!(a7==1)&&((a17==2)&&((a23==1)&&(a2==1)))))&&(a1==14))&&(a20==1))&&(a19==1))&&(((a9==9)&&(!(a14==1)&&(!(a7==1)&&((((input==4)&&(a21==12))&&(a2==1))&&!(a7==1)))))&&(a16==7)))){ + if((a22==1)){ + a19 = 2; + a20 = 0; + a11 = 1; + a5 = 5; + a9 = 8; + a13 = 1; + a24 = 0; + a1 = 12; + }else{ + a7 = 0; + a21 = 10; + a16 = 9; + a9 = 7; + a28 = 1; + a19 = 2; + a1 = 12; + } + return 21; + } else if((((a21==11)&&((((a19==2)&&(!(a2==1)||((a13==1)&&!(a20==1))))&&!(a26==1))&&(a16==10)))&&((a9==11)&&(((a6==1)&&((((((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a23==1))&&(a13==1))&&(a3==1))&&(a1==12)))&&(a17==2))))){ + a15 = 0; + a2 = 0; + a16 = 7; + a21 = 10; + a20 = 1; + a5 = 4; + a18 = 1; + return 23; + } else if((((!(a23==1)||((a16==10)&&(((a17==2)&&((a8==1)||((a3==1)&&(a1==13))))&&(a21==10))))&&!(a14==1))&&((((!(a0==1)&&((((a20==1)&&(input==6))&&(a5==5))&&(a12==1)))&&(a12==1))&&(a19==5))&&(a9==11)))){ + a16 = 7; + a12 = 1; + a7 = 0; + a5 = 4; + a1 = 12; + a9 = 7; + a4 = 0; + a19 = 1; + return -1; + } else if(((((a26==1)&&((((a1==12)&&((a19==1)&&(a6==1)))&&(a9==8))&&(a17==2)))&&!(a12==1))&&((a14==1)&&(!(a6==1)&&(!(a6==1)&&((((a21==11)&&((a16==8)&&((input==5)&&((a5==5)||(a5==6)))))&&(a18==1))&&!(a20==1))))))){ + a6 = 0; + a5 = 6; + a27 = 1; + a16 = 11; + a9 = 9; + a1 = 13; + a19 = 4; + a20 = 1; + return -1; + } else if((((((((input==3)&&(a17==2))&&(a6==1))&&(a21==10))&&!(a0==1))&&!(a20==1))&&(((((a16==9)&&((((a3==1)&&(((a9==10)&&(a28==1))&&(a6==1)))&&(a19==5))&&(a1==12)))||!(a13==1))&&!(a7==1))&&(a5==5)))){ + a9 = 8; + a16 = 7; + a12 = 0; + a10 = 1; + a6 = 0; + a19 = 2; + a20 = 1; + return 21; + } else if((((a16==10)&&((a19==2)&&(!(a8==1)&&((input==5)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8)))))))&&((((a17==2)&&((((!(a24==1)&&(!(a20==1)&&((a6==1)&&(a2==1))))||!(a12==1))||(a0==1))&&!(a7==1)))&&(a1==14))&&(a21==11)))){ + if((a7==1)){ + a20 = 1; + a9 = 11; + a16 = 7; + a21 = 12; + a7 = 1; + a19 = 1; + a13 = 0; + a1 = 12; + a10 = 1; + a5 = 4; + }else{ + a5 = 6; + a27 = 1; + a20 = 1; + a23 = 0; + a13 = 0; + a9 = 7; + a1 = 12; + a21 = 10; + a16 = 7; + } + return -1; + } else if((((a5==6)&&(((!(a2==1)||((a21==12)&&(((a20==1)&&((a19==5)&&(a13==1)))||!(a11==1))))&&(a17==2))&&(a1==13)))&&(((a9==8)&&((a23==1)&&((!(a27==1)&&((input==6)&&(a16==7)))&&!(a7==1))))&&(a23==1)))){ + if((a20==1)){ + a1 = 12; + a19 = 1; + a12 = 1; + a20 = 0; + a9 = 11; + a11 = 1; + a28 = 1; + }else{ + a1 = 12; + a21 = 11; + a24 = 0; + a9 = 11; + a4 = 0; + a13 = 1; + a16 = 9; + } + return 21; + } else if((((a9==7)&&((a28==1)&&((((a21==12)&&((a11==1)||(a24==1)))&&!(a20==1))&&(a13==1))))&&((((a19==5)&&(((a16==8)&&((a13==1)&&(((input==3)&&(a17==2))&&!(a26==1))))&&!(a4==1)))&&(a1==14))&&(a5==6)))){ + a20 = 1; + a10 = 1; + a5 = 5; + a1 = 12; + a15 = 0; + a9 = 11; + a14 = 1; + a16 = 7; + a21 = 10; + a19 = 2; + return -1; + } else if((((a19==2)&&((!(a24==1)&&(!(a4==1)&&((a6==1)&&((a1==13)&&((a17==2)&&((a23==1)&&((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==5))))))))&&!(a20==1)))&&((a21==11)&&((a16==7)&&(!(a23==1)||((a6==1)&&(a28==1))))))){ + a1 = 14; + a20 = 1; + a9 = 10; + a16 = 9; + a2 = 1; + a11 = 1; + a5 = 4; + return 21; + } else if(((((a19==2)&&(((a16==10)&&((a3==1)&&(!(a13==1)||((a11==1)&&((a21==10)&&(!(a20==1)&&(a6==1)))))))&&(a17==2)))&&(a1==12))&&((a3==1)&&(((a6==1)&&((input==3)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))))&&!(a4==1))))){ + a15 = 1; + a16 = 7; + a5 = 6; + a10 = 1; + a20 = 1; + a29 = 1; + a19 = 1; + a1 = 13; + a9 = 9; + return 21; + } else if(((((((a5==5)&&((a13==1)&&(((a16==7)&&(input==5))&&(a17==2))))&&(a21==12))&&(a1==12))&&(a20==1))&&((a2==1)&&((a19==5)&&(!(a24==1)&&((a9==10)&&((a2==1)&&((!(a2==1)||(a12==1))&&(a11==1))))))))){ + if((a21==12)){ + a23 = 1; + a19 = 1; + a14 = 0; + a20 = 0; + }else{ + a11 = 1; + a21 = 11; + a9 = 11; + a16 = 9; + a18 = 0; + a23 = 1; + a19 = 4; + } + return 26; + } else if(((((a0==1)||((a19==5)&&((a9==8)&&(!(a18==1)&&(a2==1)))))&&(a21==11))&&((!(a24==1)&&((((((a17==2)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a6==1)))&&!(a20==1))&&(a16==7))&&(a11==1))&&!(a24==1)))&&(a1==14)))){ + a12 = 1; + a5 = 4; + a19 = 3; + a21 = 10; + a23 = 1; + a16 = 8; + a14 = 0; + a9 = 11; + return 26; + } else if((((a17==2)&&(!(a20==1)&&((a19==3)&&(((((a5==6)&&(input==5))&&(a13==1))&&(a23==1))&&(a6==1)))))&&((a16==9)&&((a1==14)&&(((((a6==1)&&(!(a8==1)&&(a23==1)))||!(a6==1))&&(a21==12))&&(a9==9)))))){ + a14 = 1; + a24 = 1; + a29 = 0; + a1 = 12; + a19 = 1; + a16 = 7; + a21 = 10; + a9 = 8; + a20 = 1; + return 25; + } else if(((((((a7==1)||(a2==1))&&(a17==2))&&(a16==9))&&(a21==12))&&(((!(a20==1)&&((a1==13)&&(((a13==1)&&(!(a8==1)&&((!(a7==1)&&((input==6)&&(a5==6)))&&(a11==1))))&&(a3==1))))&&(a19==4))&&(a9==8)))){ + a20 = 1; + a12 = 0; + a19 = 2; + a26 = 1; + a1 = 12; + a16 = 7; + a5 = 4; + a9 = 9; + a10 = 0; + a21 = 10; + return 21; + } else if(((((a17==2)&&((a28==1)&&((a28==1)&&((a28==1)&&(a1==13)))))||(a24==1))&&(!(a7==1)&&((a19==2)&&((a9==11)&&((a16==10)&&(((a5==6)&&(!(a4==1)&&(((input==1)&&(a21==12))&&(a12==1))))&&(a20==1)))))))){ + a23 = 1; + a18 = 0; + a5 = 4; + a12 = 1; + a16 = 7; + a21 = 10; + a9 = 9; + return 25; + } else if(((((((a13==1)&&(((a3==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&!(a0==1)))&&(a1==13)))&&(a21==11))&&!(a24==1))&&(a16==9))&&((((a17==2)&&(!(a18==1)&&(!(a0==1)&&((a12==1)&&(a19==4)))))&&!(a20==1))&&(a9==9)))){ + a16 = 7; + a20 = 1; + a5 = 4; + a2 = 0; + a7 = 1; + a13 = 0; + a9 = 8; + return -1; + } else if((((!(a24==1)&&((a21==12)&&(((a5==6)&&(((a17==2)&&(input==6))&&(a9==8)))&&(a16==8))))&&!(a0==1))&&(((a13==1)&&(!(a7==1)&&(!(a24==1)&&((a1==14)&&(((a20==1)&&(a2==1))&&(a19==1))))))&&(a28==1)))){ + a16 = 7; + a11 = 1; + a4 = 0; + a1 = 13; + a19 = 4; + a12 = 1; + a21 = 10; + a5 = 5; + a9 = 10; + return 25; + } else if((((a9==11)&&(!(a8==1)&&((a24==1)||((((a16==9)&&(a11==1))&&(a17==2))&&(a19==5)))))&&((!(a24==1)&&(!(a24==1)&&(((((((a5==4)||(a5==5))&&(input==5))&&(a20==1))&&!(a14==1))&&!(a24==1))&&(a21==10))))&&(a1==14)))){ + a11 = 1; + a28 = 1; + a19 = 3; + a16 = 11; + a2 = 1; + a5 = 4; + a1 = 12; + a9 = 9; + return 21; + } else if(((((a16==11)&&(((((a26==1)||(a13==1))&&(a3==1))||(a26==1))&&(a19==3)))&&(a21==11))&&((a17==2)&&(((a9==7)&&(!(a4==1)&&((a20==1)&&((!(a14==1)&&(((a5==5)||(a5==6))&&(input==1)))&&!(a18==1)))))&&(a1==12))))){ + a16 = 10; + a19 = 1; + a5 = 6; + a18 = 0; + a21 = 10; + a9 = 10; + a13 = 1; + return 21; + } else if(((((a20==1)&&(((a3==1)||(a24==1))&&(a17==2)))&&(a12==1))&&((a3==1)&&((a16==9)&&((!(a26==1)&&((((a19==2)&&(((((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6))))&&(input==3))&&(a21==11)))&&!(a0==1))&&(a12==1)))&&(a1==13)))))){ + a21 = 12; + a9 = 10; + a1 = 12; + a23 = 1; + a19 = 3; + a5 = 6; + a24 = 0; + return 21; + } else if((((a9==9)&&((a28==1)&&((((a19==2)&&((a1==13)&&((a3==1)&&(((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a20==1)))))&&(a23==1))&&(a21==10))))&&((a16==8)&&(!(a24==1)&&((!(a28==1)||((a28==1)||(a14==1)))&&(a17==2)))))){ + a5 = 6; + a27 = 0; + a21 = 11; + a16 = 7; + a19 = 1; + a9 = 7; + a20 = 0; + a8 = 0; + a4 = 0; + a1 = 12; + return 23; + } else if((((!(a20==1)&&((a16==11)&&((a13==1)&&(!(a26==1)&&((a17==2)&&(((a1==14)&&(input==3))&&(a2==1)))))))&&(a5==4))&&((a9==11)&&(((a21==10)&&((a26==1)||((!(a26==1)&&(a2==1))&&(a12==1))))&&(a19==2))))){ + a13 = 0; + a16 = 7; + a20 = 1; + a2 = 0; + a1 = 12; + a22 = 0; + return 23; + } else if((((a3==1)&&(!(a20==1)&&((a7==1)||(((a9==11)&&((a2==1)&&(a1==12)))&&(a17==2)))))&&(((a16==9)&&((((((a19==4)&&((input==6)&&((a5==4)||(a5==5))))&&!(a4==1))&&!(a27==1))&&(a2==1))&&(a11==1)))&&(a21==11)))){ + if((a6==1)){ + a5 = 5; + a21 = 10; + a28 = 0; + a22 = 0; + a15 = 0; + a20 = 1; + a16 = 7; + a19 = 2; + }else{ + a16 = 8; + a5 = 5; + a3 = 0; + a20 = 1; + a9 = 9; + a28 = 0; + a15 = 1; + a1 = 13; + a19 = 2; + } + return 21; + } else if((((a17==2)&&((a20==1)&&((a21==11)&&((a1==14)&&(((a2==1)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))&&!(a27==1))))))&&((a16==8)&&(((a9==8)&&((((a28==1)&&((a11==1)&&(a11==1)))&&!(a14==1))||(a4==1)))&&(a19==3))))){ + a7 = 0; + a28 = 1; + a5 = 5; + a19 = 1; + a13 = 1; + a1 = 13; + a16 = 10; + a9 = 10; + return 25; + } else if(((!(a0==1)&&((a20==1)&&((a17==2)&&((input==3)&&(((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))))))&&((a19==1)&&(((a16==7)&&(((((a2==1)&&(((a23==1)&&(a23==1))&&!(a18==1)))||!(a23==1))&&(a1==12))&&(a21==12)))||!(a13==1))))){ + a7 = 0; + a28 = 1; + a26 = 0; + a5 = 4; + a9 = 7; + a21 = 10; + return -1; + } else if((((a19==1)&&((!(a24==1)&&((((a11==1)&&(a17==2))||(a26==1))&&!(a14==1)))&&!(a7==1)))&&(!(a20==1)&&((a16==10)&&((((((((a5==4)||(a5==5))&&(input==5))&&(a21==10))&&!(a27==1))&&(a12==1))&&(a1==12))&&(a9==7)))))){ + a21 = 12; + a5 = 6; + a22 = 1; + a20 = 1; + a13 = 0; + a15 = 0; + a9 = 8; + a19 = 4; + return -1; + } else if((((a16==8)&&(((a9==7)&&(!(a20==1)&&((a28==1)&&(((a1==12)&&(input==1))&&!(a0==1)))))&&(a17==2)))&&(((!(a14==1)&&((!(a8==1)&&((a8==1)||((a23==1)&&(a13==1))))&&(a19==3)))&&(a21==10))&&(a5==6)))){ + a20 = 1; + a5 = 4; + a19 = 5; + a2 = 1; + a1 = 13; + a8 = 0; + a14 = 0; + a9 = 10; + a21 = 12; + return 22; + } else if((((a17==2)&&(((a3==1)&&((a9==7)&&((((a16==8)&&(a12==1))&&!(a24==1))||!(a28==1))))&&!(a20==1)))&&((a1==13)&&(!(a27==1)&&((((a19==4)&&(!(a24==1)&&((input==3)&&((a5==5)||(a5==6)))))&&!(a0==1))&&(a21==12)))))){ + if((a21==10)){ + a15 = 0; + a29 = 1; + a5 = 6; + a20 = 1; + a16 = 7; + a21 = 10; + a19 = 1; + a9 = 10; + a23 = 0; + }else{ + a10 = 1; + a24 = 1; + a19 = 2; + a16 = 7; + a5 = 6; + a28 = 0; + a20 = 1; + a21 = 10; + a1 = 12; + } + return -1; + } else if(((!(a6==1)||(((a6==1)&&(a21==11))&&(a16==7)))&&((a17==2)&&(!(a26==1)&&(((a1==12)&&(((!(a27==1)&&((a19==1)&&((a3==1)&&(((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4)))&&(input==6)))))&&!(a26==1))&&(a20==1)))&&!(a18==1)))))){ + a19 = 5; + a5 = 6; + a1 = 14; + a21 = 12; + a9 = 10; + a6 = 1; + a3 = 1; + a13 = 1; + return 22; + } else if((((a17==2)&&(((a19==2)&&(!(a11==1)||((a3==1)&&((a28==1)&&(((a3==1)&&!(a20==1))&&(a16==7))))))||(a0==1)))&&((a12==1)&&((a21==10)&&((a1==13)&&((a9==7)&&(((input==3)&&(a5==4))&&(a12==1)))))))){ + a20 = 1; + a1 = 12; + a0 = 0; + a23 = 1; + a3 = 1; + a19 = 1; + return -1; + } else if((((((((a14==1)||((a5==6)&&(((a2==1)&&(a19==2))&&(a9==8))))&&(a1==14))&&(a16==10))&&!(a8==1))||(a7==1))&&(((a13==1)&&(((a6==1)&&((a17==2)&&((input==3)&&(a21==11))))&&(a20==1)))&&!(a18==1)))){ + a21 = 10; + a23 = 1; + a5 = 4; + a1 = 12; + a14 = 0; + a4 = 0; + a19 = 1; + a9 = 7; + a16 = 7; + return -1; + } else if(((((a16==7)&&(!(a18==1)&&((a9==7)&&(((input==3)&&(a19==4))&&(a21==11)))))&&(a17==2))&&(((((a20==1)&&((((a1==13)&&((a6==1)&&(a23==1)))&&(a5==5))||(a24==1)))&&!(a24==1))&&!(a18==1))||(a27==1)))){ + a19 = 3; + a13 = 1; + a27 = 0; + a1 = 14; + a0 = 0; + a9 = 8; + a5 = 4; + a16 = 8; + return 21; + } else if((((!(a11==1)||(((a19==4)&&(((((a1==13)&&(a11==1))&&(a20==1))&&(a21==10))&&!(a24==1)))||(a7==1)))||!(a3==1))&&(!(a24==1)&&((a17==2)&&(((a16==10)&&((input==1)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))))&&!(a14==1)))))){ + a5 = 4; + a19 = 1; + a24 = 0; + a1 = 12; + a9 = 7; + a16 = 7; + a26 = 0; + return -1; + } else if((((a19==1)&&((((a23==1)||!(a23==1))&&(a1==12))&&(a23==1)))&&((a17==2)&&(((a16==10)&&((!(a26==1)&&(((((input==5)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(a2==1))&&(a12==1))&&!(a7==1)))&&!(a20==1)))&&(a21==12))))){ + a20 = 1; + a24 = 1; + a19 = 3; + a5 = 4; + a1 = 14; + a16 = 8; + a9 = 9; + a26 = 1; + a27 = 1; + return -1; + } else if((((((((!(a8==1)&&((input==3)&&(a9==9)))&&(a23==1))&&(a11==1))&&(a5==5))&&(a23==1))&&(a17==2))&&((a19==4)&&(((a16==7)&&((a21==11)&&(((!(a24==1)&&(a13==1))&&(a6==1))&&(a20==1))))&&(a1==13))))){ + a1 = 12; + a5 = 4; + a7 = 0; + a21 = 10; + a19 = 1; + a3 = 1; + a9 = 7; + return -1; + } else if((((a5==4)&&(((!(a11==1)||(((a16==8)&&((a21==10)&&((a27==1)||(a2==1))))||!(a6==1)))&&(a17==2))||!(a13==1)))&&(((a6==1)&&((a9==9)&&(((a20==1)&&((a1==14)&&(input==6)))&&!(a26==1))))&&(a19==2)))){ + a21 = 12; + a16 = 9; + a9 = 10; + a5 = 5; + a19 = 4; + a1 = 12; + a8 = 0; + a24 = 0; + return 23; + } else if(((((a11==1)&&((((!(a7==1)&&((a13==1)&&(a19==5)))&&!(a18==1))&&(a11==1))&&(a16==9)))&&(a1==13))&&((((((((a9==7)&&(input==4))&&(a5==4))&&(a20==1))&&(a6==1))&&(a21==11))&&(a17==2))&&(a11==1)))){ + a28 = 1; + a13 = 1; + a5 = 6; + a16 = 8; + a1 = 12; + a9 = 11; + a0 = 0; + a19 = 4; + return 22; + } else if(((((a19==1)&&((a1==14)&&((a17==2)&&(((a16==11)&&((((input==1)&&((a5==5)||(a5==6)))&&!(a14==1))&&(a11==1)))&&(a11==1)))))&&(a20==1))&&((((((a6==1)||!(a3==1))&&!(a18==1))&&(a9==7))&&!(a0==1))&&(a21==11)))){ + a16 = 7; + a8 = 0; + a23 = 1; + a21 = 10; + a5 = 4; + a7 = 0; + a1 = 12; + return -1; + } else if(((!(a20==1)&&((a16==9)&&(((a21==10)&&(((a19==1)&&(((input==5)&&(a1==13))&&(a2==1)))&&!(a18==1)))&&!(a0==1))))&&((a17==2)&&((a6==1)&&(((a5==5)&&((a28==1)&&((a28==1)&&(a9==11))))||(a24==1)))))){ + if((a25==1)){ + a19 = 2; + a1 = 12; + a11 = 0; + a9 = 7; + a22 = 1; + a16 = 7; + a20 = 1; + a24 = 1; + }else{ + a10 = 0; + a20 = 1; + a16 = 7; + a15 = 1; + a19 = 2; + a1 = 12; + a29 = 1; + a5 = 6; + } + return -1; + } else if(((((a19==4)&&((a24==1)||(((!(a18==1)&&(a6==1))&&(a16==9))&&(a21==12))))&&(a9==11))&&((((!(a8==1)&&((((!(a20==1)&&(input==1))&&(a17==2))&&(a5==4))&&(a11==1)))&&!(a27==1))&&(a1==13))&&!(a7==1)))){ + a23 = 0; + a5 = 5; + a1 = 12; + a16 = 7; + a8 = 1; + a19 = 5; + a9 = 8; + a21 = 10; + a15 = 0; + return 21; + } else if((((a1==14)&&(!(a20==1)&&(!(a4==1)&&((a2==1)&&(!(a0==1)&&((a28==1)&&(((input==1)&&((a5==5)||(a5==6)))&&(a2==1))))))))&&(((a19==5)&&((a21==12)&&((a23==1)&&(((a16==8)&&(a3==1))&&(a9==10)))))&&(a17==2)))){ + a16 = 9; + a1 = 12; + a21 = 10; + a5 = 4; + a11 = 0; + a12 = 0; + a9 = 11; + a0 = 1; + a20 = 1; + a19 = 3; + return -1; + } else if((((a1==12)&&((!(a26==1)&&((((a11==1)&&((input==5)&&(((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))))&&(a3==1))&&(a17==2)))&&(a21==12)))&&((a16==9)&&(!(a20==1)&&((((a19==4)&&((a18==1)||(a13==1)))&&!(a0==1))&&!(a8==1)))))){ + a19 = 3; + a8 = 1; + a9 = 10; + a12 = 0; + a16 = 8; + a5 = 6; + a29 = 0; + return -1; + } else if((((((a1==14)&&((!(a20==1)&&(input==3))&&(a19==2)))&&(a12==1))&&(a6==1))&&((((a5==6)&&((a9==9)&&((((a17==2)&&(((a23==1)&&(a23==1))&&!(a8==1)))&&(a21==11))&&(a16==8))))||(a4==1))&&(a13==1)))){ + a19 = 1; + a2 = 1; + a16 = 7; + a20 = 1; + a14 = 0; + a1 = 12; + a9 = 7; + a6 = 1; + a21 = 10; + a5 = 4; + return -1; + } else if((((a19==5)&&((a17==2)&&(!(a2==1)||((((a16==8)&&(((a3==1)&&!(a24==1))&&(a12==1)))&&(a9==9))&&(a1==12)))))&&((((!(a27==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a12==1)))&&(a21==11))&&(a20==1))&&!(a7==1)))){ + a16 = 7; + a7 = 0; + a21 = 10; + a9 = 7; + a19 = 1; + a5 = 4; + a3 = 1; + a28 = 1; + return -1; + } else if((((a17==2)&&((a19==2)&&(((a4==1)&&(((a20==1)&&(a3==1))&&!(a23==1)))&&!(a11==1))))&&((((a4==1)&&((a1==14)&&((((input==3)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&!(a28==1))&&!(a3==1))))&&(a21==12))&&(a16==10)))){ + a4 = 1; + a5 = 5; + a9 = 7; + a16 = 7; + a19 = 1; + a21 = 10; + a10 = 1; + return -1; + } else if(((((a26==1)||(((a16==10)&&((a21==12)&&(!(a20==1)&&((a28==1)||!(a6==1)))))&&(a13==1)))&&!(a0==1))&&(((a3==1)&&((a19==1)&&((a1==13)&&(((input==1)&&((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4))))&&(a17==2)))))&&(a12==1)))){ + a1 = 14; + a6 = 0; + a7 = 1; + a21 = 10; + a19 = 2; + a9 = 7; + a5 = 5; + a16 = 9; + a29 = 1; + return -1; + } else if(((!(a0==1)&&((a28==1)&&((a13==1)&&((a28==1)&&(((a20==1)&&((a1==12)&&((a6==1)&&((a19==5)&&(((input==4)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8))))&&(a17==2))))))&&(a13==1))))))&&((a16==10)&&((a2==1)&&(a21==11))))){ + a8 = 0; + a21 = 10; + a16 = 7; + a23 = 1; + a19 = 1; + a14 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if((((a20==1)&&(((a19==2)&&((a12==1)&&!(a7==1)))&&!(a8==1)))&&((a23==1)&&((a28==1)&&((a21==12)&&((!(a27==1)&&((a17==2)&&((a1==14)&&((a16==7)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==5))))))&&!(a18==1))))))){ + a12 = 1; + a9 = 9; + a5 = 6; + a21 = 10; + a23 = 1; + a16 = 8; + a1 = 12; + a19 = 5; + a24 = 0; + return 25; + } else if(((((a1==13)&&((a16==8)&&((a28==1)&&((a6==1)&&(!(a7==1)&&((input==1)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))))))))&&(a21==11))&&((a17==2)&&((!(a14==1)&&(((a19==4)&&(!(a13==1)||(a23==1)))&&(a2==1)))&&!(a20==1))))){ + a19 = 1; + a13 = 1; + a0 = 0; + a4 = 0; + a20 = 1; + a5 = 4; + a9 = 7; + a1 = 12; + a21 = 10; + a16 = 7; + return -1; + } else if(((!(a20==1)&&(!(a14==1)&&(((a3==1)&&((a17==2)&&((input==4)&&((a5==6)||((a5==4)||(a5==5))))))&&(a16==7))))&&(!(a4==1)&&((a13==1)&&((((a1==12)&&(!(a2==1)||((a9==9)&&((a13==1)&&(a21==11)))))&&(a19==4))&&(a6==1)))))){ + a5 = 4; + a20 = 1; + a6 = 1; + a9 = 7; + a21 = 10; + a4 = 0; + a19 = 1; + a26 = 0; + return -1; + } else if(((((((((a6==1)&&(((a21==12)&&(input==4))&&(a20==1)))&&(a16==10))&&!(a14==1))&&(a13==1))&&(a5==6))&&(a11==1))&&((((a17==2)&&(((a1==12)&&((a12==1)||(a18==1)))&&(a9==11)))&&(a19==3))&&!(a26==1)))){ + a26 = 0; + a16 = 7; + a13 = 1; + a19 = 1; + a21 = 10; + a28 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if((((a20==1)&&((!(a18==1)&&(((((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==1))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==2)))&&(input==4))&&(a6==1))&&(a23==1)))&&(a16==11)))&&((a17==2)&&(!(a23==1)||((((a28==1)&&(a6==1))||(a24==1))&&(a21==12)))))){ + a1 = 12; + a21 = 10; + a19 = 1; + a5 = 4; + a16 = 7; + a14 = 0; + a6 = 1; + a9 = 7; + a7 = 0; + return -1; + } else if(((((((a17==2)&&(((a9==9)&&((a23==1)&&((input==3)&&(a5==6))))&&(a13==1)))&&(a19==1))&&!(a26==1))&&(a21==12))&&((a3==1)&&((a1==12)&&((((a16==10)&&((a20==1)&&(a12==1)))&&(a3==1))||!(a12==1)))))){ + a18 = 0; + a16 = 7; + a28 = 1; + a21 = 10; + a7 = 0; + a5 = 4; + a9 = 7; + return -1; + } else if((((a16==11)&&((!(a18==1)&&((a5==6)&&((a17==2)&&(((a20==1)&&(input==3))&&(a1==14)))))&&(a23==1)))&&((a9==11)&&((((a8==1)||((((a6==1)||!(a11==1))&&!(a7==1))||(a7==1)))&&(a21==10))&&(a19==1))))){ + a16 = 7; + a7 = 0; + a26 = 0; + a1 = 12; + a5 = 4; + a9 = 7; + a23 = 1; + return -1; + } else if(((((a19==2)&&((a2==1)&&((((input==4)&&((a5==5)||(a5==6)))&&(a17==2))&&!(a27==1))))&&(a20==1))&&((a21==12)&&(((a1==14)&&((((a7==1)||(!(a26==1)&&((a24==1)||(a12==1))))||!(a11==1))&&(a9==9)))&&(a16==8))))){ + a11 = 1; + a16 = 7; + a28 = 1; + a21 = 10; + a14 = 0; + a1 = 12; + a5 = 4; + a9 = 7; + a19 = 1; + return -1; + } else if(((((a5==6)&&(((((a28==1)&&((a13==1)&&!(a7==1)))||!(a12==1))&&(a17==2))||(a24==1)))&&(a9==7))&&(!(a20==1)&&((a19==2)&&((!(a8==1)&&(((a21==12)&&((input==4)&&(a1==13)))&&!(a7==1)))&&(a16==9)))))){ + if((a24==1)){ + a20 = 1; + a1 = 12; + a15 = 0; + a9 = 11; + a19 = 4; + a11 = 0; + a16 = 8; + a22 = 0; + }else{ + a26 = 1; + a9 = 8; + a21 = 10; + a20 = 1; + a1 = 14; + a19 = 1; + a7 = 1; + a23 = 0; + a16 = 7; + a5 = 4; + } + return 25; + } else if(((!(a7==1)&&((a5==4)&&((a16==9)&&(((a13==1)&&(!(a20==1)&&(((a13==1)&&(a3==1))||!(a23==1))))&&!(a24==1)))))&&(!(a24==1)&&((a17==2)&&((a19==1)&&((a21==10)&&((a9==10)&&((a1==12)&&(input==3))))))))){ + a10 = 1; + a22 = 1; + a20 = 1; + a9 = 9; + a1 = 13; + a16 = 7; + a18 = 1; + return -1; + } else if((((a21==12)&&((a19==3)&&(((a23==1)&&((a18==1)||((a11==1)||!(a2==1))))&&(a17==2))))&&((a16==10)&&(((a5==5)&&((a9==11)&&((a28==1)&&((((input==5)&&(a1==13))&&(a23==1))&&(a6==1)))))&&(a20==1))))){ + if((a17==3)){ + a16 = 8; + a2 = 1; + a1 = 12; + a9 = 10; + a6 = 1; + a18 = 0; + a21 = 10; + a20 = 0; + a19 = 5; + a5 = 6; + }else{ + a2 = 1; + a16 = 7; + a9 = 10; + a19 = 2; + a1 = 14; + a28 = 1; + a5 = 4; + a21 = 10; + } + return 21; + } else if((((a19==5)&&((a12==1)&&((a13==1)&&(!(a0==1)&&(((a1==12)&&(((a21==12)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3)))&&!(a20==1)))&&(a2==1))))))&&((((a16==10)&&(((a2==1)&&(a9==9))||!(a3==1)))||(a0==1))&&(a17==2)))){ + a9 = 11; + a1 = 14; + a29 = 0; + a0 = 1; + a19 = 1; + a5 = 6; + a8 = 1; + a21 = 10; + a20 = 1; + a16 = 7; + return -1; + } else if(((!(a20==1)&&((a9==7)&&(!(a24==1)&&((a2==1)&&((((a12==1)&&((input==3)&&(a19==5)))&&!(a26==1))&&(a2==1))))))&&((a17==2)&&(((a1==14)&&((a5==4)&&((a21==12)&&(!(a2==1)||(a12==1)))))&&(a16==8))))){ + a15 = 1; + a19 = 1; + a21 = 10; + a5 = 5; + a20 = 1; + a16 = 7; + a9 = 9; + a28 = 0; + a8 = 1; + a1 = 13; + return -1; + } else if((((((((a23==1)&&(a19==2))&&(a13==1))&&(a16==11))&&(a21==10))&&(a20==1))&&(((a17==2)&&((a23==1)&&((a6==1)&&((((((input==3)&&(a5==5))&&(a2==1))&&(a9==10))&&!(a7==1))&&!(a4==1)))))&&(a1==14)))){ + a19 = 1; + a12 = 1; + a1 = 12; + a14 = 0; + a3 = 1; + a9 = 7; + a16 = 7; + a5 = 4; + return -1; + } else if(((!(a20==1)&&((a1==14)&&(((a21==10)&&(((((a2==1)&&(a13==1))&&(a23==1))&&(a19==4))&&!(a4==1)))&&(a13==1))))&&(!(a26==1)&&(((a17==2)&&(!(a26==1)&&((input==6)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))))&&(a16==9))))){ + if((a11==1)){ + a8 = 1; + a20 = 1; + a16 = 7; + a24 = 1; + a6 = 0; + a5 = 6; + a19 = 2; + a9 = 9; + a1 = 12; + }else{ + a9 = 8; + a16 = 11; + a5 = 5; + a19 = 3; + a1 = 13; + a22 = 1; + a13 = 0; + } + return -1; + } else if(((((((a19==5)&&(((a21==11)&&(!(a6==1)&&(a12==1)))&&(a14==1)))&&(a5==4))&&(a16==8))&&(a1==14))&&((((!(a28==1)&&((((input==5)&&(a17==2))&&(a26==1))&&(a20==1)))&&!(a12==1))&&(a9==7))&&!(a6==1)))){ + a1 = 12; + a19 = 3; + a11 = 0; + a15 = 0; + a21 = 10; + return 21; + } else if((((a2==1)&&(!(a20==1)&&((((a1==12)&&((a9==9)&&((input==6)&&((a5==5)||(a5==6)))))&&(a16==8))&&(a13==1))))&&(((a19==5)&&(((((a24==1)||((a2==1)&&(a11==1)))&&(a17==2))&&(a21==11))||!(a12==1)))||(a27==1)))){ + a21 = 10; + a26 = 0; + a19 = 2; + a5 = 6; + a20 = 1; + a16 = 9; + a12 = 1; + a23 = 1; + return 26; + } else if(((((a13==1)&&(!(a18==1)&&(!(a7==1)&&((a21==11)&&(((((input==5)&&((a5==5)||(a5==6)))&&(a20==1))&&(a3==1))&&(a16==9))))))&&(a6==1))&&(((((a17==2)&&((a9==9)&&(a11==1)))&&(a19==1))&&(a1==14))||(a26==1)))){ + a16 = 7; + a21 = 10; + a5 = 5; + a9 = 11; + a4 = 0; + a1 = 13; + a6 = 1; + a19 = 5; + a0 = 0; + return 25; + } else if((((((((a5==4)&&(((a16==7)&&((a17==2)&&(input==6)))&&(a19==5)))&&(a20==1))&&!(a7==1))&&!(a7==1))&&(a6==1))&&(!(a6==1)||((((((a21==10)&&(a13==1))&&(a9==11))&&(a1==12))||!(a2==1))||(a18==1))))){ + a13 = 1; + a1 = 13; + a9 = 10; + a19 = 2; + a21 = 12; + a26 = 0; + a5 = 5; + a23 = 1; + return 26; + } else if(((((a19==1)&&(((a1==13)&&((a6==1)&&(a12==1)))&&!(a20==1)))&&(a16==10))&&((a21==11)&&((((!(a24==1)&&(!(a26==1)&&((a6==1)&&((((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==5)))))&&!(a4==1))&&!(a8==1))&&(a17==2))))){ + a20 = 1; + a21 = 10; + a23 = 0; + a12 = 0; + a5 = 5; + a16 = 7; + a9 = 8; + a19 = 2; + a1 = 12; + a18 = 1; + return -1; + } else if((((a2==1)&&((a19==2)&&(((((a9==8)&&((input==5)&&(a1==12)))&&(a17==2))&&(a16==10))&&(a11==1))))&&((((((!(a18==1)&&(!(a27==1)&&(a2==1)))&&(a5==4))||!(a12==1))||(a14==1))&&(a21==10))&&(a20==1)))){ + a2 = 1; + a11 = 1; + a9 = 7; + a19 = 1; + a16 = 7; + return -1; + } else if(((((a5==5)&&((a2==1)&&((a0==1)||((a20==1)&&((a11==1)&&(!(a8==1)&&((a11==1)&&(a21==10))))))))&&(a17==2))&&((a19==5)&&((a1==13)&&(!(a27==1)&&((((input==5)&&(a16==9))&&(a9==8))&&(a3==1))))))){ + a19 = 3; + a1 = 12; + a24 = 0; + a5 = 4; + a18 = 0; + a12 = 1; + a16 = 11; + return 21; + } else if((((a12==1)&&(!(a8==1)&&((a2==1)&&((!(a20==1)&&((a19==1)&&((a3==1)&&((input==6)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))))))&&!(a4==1)))))&&(((a16==10)&&((((a17==2)&&(a12==1))&&(a1==13))&&(a21==12)))&&(a3==1)))){ + if((a15==1)){ + a5 = 4; + a11 = 0; + a22 = 1; + a29 = 0; + a9 = 8; + a21 = 10; + a19 = 2; + }else{ + a6 = 0; + a20 = 1; + a5 = 4; + a16 = 7; + a9 = 11; + a25 = 0; + a28 = 0; + a21 = 10; + } + return -1; + } else if(((((a0==1)||((((((a13==1)||!(a28==1))||!(a13==1))&&(a20==1))||(a7==1))&&(a19==5)))&&(a16==11))&&((((a2==1)&&((a21==12)&&(((input==5)&&(((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))))&&!(a14==1))))&&(a17==2))&&(a1==12)))){ + a19 = 1; + a18 = 0; + a27 = 0; + a21 = 10; + a2 = 1; + a20 = 0; + a5 = 4; + a9 = 9; + a16 = 7; + return 21; + } else if(((!(a14==1)&&((a21==12)&&(!(a14==1)&&((a6==1)&&(a1==13)))))&&((a2==1)&&(((a13==1)&&((a11==1)&&((((a20==1)&&((((input==6)&&((a5==4)||(a5==5)))&&(a9==9))&&(a17==2)))&&(a16==11))&&!(a26==1))))&&(a19==4))))){ + a26 = 0; + a1 = 12; + a5 = 4; + a16 = 7; + a21 = 10; + a19 = 1; + a2 = 1; + a18 = 0; + a9 = 7; + return -1; + } else if((((a5==5)&&((a17==2)&&((a1==13)&&((!(a27==1)&&(!(a20==1)&&(input==4)))&&!(a0==1)))))&&((a21==11)&&((((a13==1)&&((((a8==1)||((a16==9)&&(a12==1)))&&(a19==2))||(a14==1)))||(a0==1))&&(a9==7))))){ + a11 = 0; + a21 = 10; + a5 = 4; + a1 = 12; + a13 = 0; + a0 = 1; + a19 = 1; + a9 = 8; + a20 = 1; + a16 = 7; + return 26; + } else if((((a5==5)&&(((a14==1)||(a11==1))&&(a17==2)))&&((a1==14)&&((a21==11)&&(((!(a18==1)&&((a6==1)&&((a6==1)&&(((((a19==3)&&(input==6))&&!(a0==1))&&!(a27==1))&&(a16==9)))))&&!(a20==1))&&(a9==8)))))){ + a29 = 1; + a20 = 1; + a9 = 9; + a19 = 2; + a1 = 12; + a10 = 1; + a12 = 0; + return 25; + } else if(((((a17==2)&&(!(a3==1)||(((a19==4)&&((a20==1)&&((((a6==1)&&!(a27==1))&&(a21==11))||(a18==1))))&&(a16==9))))||!(a28==1))&&(((((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==3))&&(a1==14))&&!(a7==1))&&!(a0==1)))){ + a19 = 1; + a1 = 12; + a21 = 10; + a16 = 7; + a9 = 7; + a5 = 4; + a12 = 1; + a11 = 1; + return -1; + } else if(((((a23==1)&&((a6==1)&&(((a28==1)&&((((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&(a19==4))&&(a17==2)))&&!(a20==1))))&&(a16==7))&&(!(a18==1)&&((a21==12)&&((a1==12)&&((a9==9)&&((!(a6==1)||(a12==1))||(a4==1)))))))){ + if((a3==1)){ + a5 = 4; + a16 = 8; + a19 = 5; + a9 = 11; + a0 = 0; + a21 = 10; + a2 = 1; + }else{ + a27 = 0; + a1 = 14; + a18 = 0; + a19 = 2; + a20 = 1; + a5 = 6; + a24 = 0; + a9 = 10; + a21 = 10; + } + return 21; + } else if(((!(a8==1)&&((((((a17==2)&&((((a28==1)&&(a2==1))&&(a9==8))&&(a19==2)))||!(a11==1))||!(a6==1))&&(a16==8))&&(a1==13)))&&(((a20==1)&&((a12==1)&&(((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&(a12==1))))&&(a21==10)))){ + a19 = 1; + a16 = 7; + a5 = 4; + a24 = 0; + a9 = 7; + a13 = 1; + a8 = 0; + a1 = 12; + return -1; + } else if(((((a1==12)&&(((!(a26==1)&&((((input==6)&&!(a20==1))&&(a19==1))&&!(a14==1)))&&(a28==1))&&(a16==8)))&&(a9==10))&&((a28==1)&&((a5==5)&&(!(a8==1)&&((a17==2)&&(!(a6==1)||((a28==1)&&(a21==10))))))))){ + a1 = 14; + a20 = 1; + a23 = 1; + a16 = 10; + a9 = 11; + a0 = 0; + a12 = 1; + return 25; + } else if((((a3==1)&&((a3==1)&&((((a13==1)&&((a5==4)&&(((a9==11)&&(input==4))&&(a17==2))))&&(a1==13))&&(a23==1))))&&(((((!(a20==1)&&((a3==1)&&(a16==7)))&&(a19==5))||!(a28==1))&&(a21==10))&&(a2==1)))){ + a19 = 1; + a9 = 7; + a28 = 1; + a8 = 0; + a6 = 1; + a20 = 1; + a1 = 12; + return -1; + } else if((((!(a0==1)&&(((!(a0==1)&&((a21==12)&&(!(a8==1)&&((((a5==4)||(a5==5))&&(input==6))&&(a16==8)))))&&(a20==1))&&(a17==2)))&&(a13==1))&&(!(a3==1)||((a1==13)&&(((a19==1)&&(!(a24==1)&&(a23==1)))&&(a9==8)))))){ + a1 = 12; + a12 = 1; + a21 = 10; + a28 = 1; + a16 = 7; + a9 = 7; + a0 = 0; + a5 = 4; + return -1; + } else if(((((a9==7)&&((a0==1)||((a20==1)&&(((a21==12)&&(a11==1))&&(a28==1)))))&&(a19==5))&&(((a17==2)&&(((a2==1)&&((((((a5==4)||(a5==5))&&(input==5))&&!(a26==1))&&(a1==14))&&!(a27==1)))&&(a16==9)))&&!(a27==1)))){ + a3 = 1; + a9 = 8; + a19 = 3; + a21 = 10; + a6 = 1; + a27 = 0; + a5 = 4; + a16 = 7; + return 25; + } else if((((a19==2)&&((a1==13)&&(!(a4==1)&&((a16==9)&&((a5==5)&&(a23==1))))))&&((a28==1)&&((a9==11)&&(((a21==11)&&((a13==1)&&((!(a20==1)&&(!(a0==1)&&((input==3)&&(a17==2))))&&(a28==1))))&&(a13==1)))))){ + a16 = 10; + a24 = 1; + a5 = 6; + a21 = 12; + a2 = 0; + a20 = 1; + a9 = 7; + a28 = 0; + a19 = 3; + return 23; + } else if(((((a17==2)&&(((a23==1)&&(!(a14==1)&&(((input==4)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9))))&&(a21==10))))&&(a28==1)))&&(a6==1))&&((a14==1)||((a16==8)&&(!(a0==1)&&((a19==4)&&((a1==14)&&((a20==1)&&(a2==1))))))))){ + a3 = 1; + a13 = 1; + a5 = 4; + a4 = 0; + a19 = 1; + a1 = 12; + a16 = 7; + a9 = 7; + return -1; + } else if(((((a17==2)&&((a12==1)&&(a6==1)))||(a8==1))&&(((((((a19==4)&&(((((((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9))))&&(input==1))&&(a1==12))&&!(a18==1))&&!(a26==1)))&&!(a20==1))&&(a28==1))&&(a6==1))&&(a16==8))&&(a21==10)))){ + a16 = 10; + a7 = 0; + a21 = 12; + a20 = 1; + a27 = 0; + a18 = 0; + a5 = 5; + a1 = 13; + a9 = 8; + a19 = 2; + return 21; + } else if((((a6==1)&&((a17==2)&&(((!(a6==1)||(!(a14==1)&&(a11==1)))&&(a1==12))&&(a16==9))))&&((a21==11)&&((a20==1)&&((!(a0==1)&&(!(a0==1)&&(((a9==11)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))&&(a19==3))))&&!(a4==1)))))){ + a19 = 1; + a21 = 10; + a3 = 1; + a7 = 0; + a16 = 7; + a24 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if((((a28==1)&&((a20==1)&&((((!(a28==1)||((a9==10)&&((a16==10)&&(a23==1))))&&!(a14==1))&&!(a7==1))&&(a19==2))))&&(((a17==2)&&(((a21==10)&&(((a5==5)&&(input==1))&&(a1==12)))&&(a28==1)))&&(a13==1)))){ + a19 = 1; + a8 = 0; + a20 = 0; + a4 = 0; + a16 = 8; + a9 = 8; + a12 = 1; + return -1; + } else if(((((a28==1)&&(!(a14==1)&&((a17==2)&&(!(a20==1)&&((input==6)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))))))&&!(a27==1))&&((a7==1)||(((a19==2)&&(((((a6==1)&&(a21==12))||!(a11==1))&&(a16==8))&&(a1==14)))&&(a6==1))))){ + if((a23==1)){ + a5 = 4; + a29 = 0; + a20 = 1; + a21 = 10; + a25 = 1; + a1 = 13; + a19 = 5; + a8 = 1; + a9 = 9; + }else{ + a16 = 10; + a22 = 1; + a1 = 13; + a29 = 1; + a21 = 10; + a5 = 4; + a19 = 4; + a15 = 1; + a9 = 9; + } + return -1; + } else if((((a16==10)&&((a11==1)&&((a17==2)&&(!(a26==1)&&(((a13==1)&&((input==4)&&((a5==6)||((a5==4)||(a5==5)))))&&(a20==1))))))&&(!(a11==1)||(!(a23==1)||(((((!(a8==1)&&(a3==1))&&(a21==10))&&(a19==5))&&(a9==10))&&(a1==13)))))){ + a19 = 1; + a9 = 7; + a12 = 1; + a16 = 7; + a27 = 0; + a1 = 12; + a5 = 4; + a24 = 0; + return -1; + } else if(((((!(a20==1)&&((a7==1)||(((a21==12)&&((a3==1)&&!(a0==1)))&&(a17==2))))&&(a19==5))&&!(a4==1))&&((a23==1)&&(!(a0==1)&&((((((input==3)&&((a5==4)||(a5==5)))&&(a1==13))&&(a9==10))&&(a16==8))&&(a13==1)))))){ + if((a22==1)){ + a16 = 7; + a2 = 0; + a3 = 0; + a5 = 5; + a20 = 1; + a0 = 1; + }else{ + a21 = 11; + a25 = 0; + a16 = 10; + a20 = 1; + a22 = 1; + a5 = 6; + a15 = 0; + a19 = 2; + } + return -1; + } else if((((a6==1)&&((a21==12)&&((!(a18==1)&&((a5==6)&&((input==3)&&(a16==8))))&&(a1==14))))&&(((a9==8)&&(((((!(a8==1)&&((a17==2)&&(a6==1)))||!(a13==1))&&(a20==1))&&!(a24==1))&&(a19==1)))&&(a2==1)))){ + a16 = 7; + a1 = 12; + a5 = 4; + a3 = 1; + a21 = 10; + a7 = 0; + a9 = 7; + return -1; + } else if((((!(a0==1)&&((a16==8)&&((a13==1)&&(a21==10))))&&(a20==1))&&(((a19==1)&&((((!(a8==1)&&(((a17==2)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==4)))&&!(a8==1)))&&!(a14==1))&&(a1==12))&&!(a24==1)))&&!(a27==1)))){ + a16 = 7; + a23 = 1; + a7 = 0; + a11 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if((((a12==1)&&(((!(a18==1)&&((a9==9)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a23==1))&&(a1==14)))&&(!(a6==1)||(((a21==11)&&((((((a17==2)&&(a12==1))&&(a19==2))&&(a16==10))||(a7==1))&&(a20==1)))&&(a28==1))))){ + a5 = 4; + a11 = 1; + a21 = 10; + a14 = 0; + a1 = 13; + a2 = 1; + a16 = 7; + return 25; + } else if((((((((a11==1)&&((((a16==9)&&((input==1)&&((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4)))))&&(a1==12))&&(a17==2)))&&(a20==1))&&(a12==1))&&(a28==1))&&!(a27==1))&&((a19==4)&&((!(a28==1)||((a21==12)&&(a3==1)))||(a4==1))))){ + a28 = 1; + a5 = 5; + a9 = 10; + a12 = 1; + a19 = 3; + a13 = 1; + return 21; + } else if(((((!(a20==1)&&(!(a18==1)&&(((a16==10)&&(((a13==1)&&(a28==1))||(a7==1)))||(a8==1))))&&(a21==10))&&(a9==11))&&((a17==2)&&((a1==14)&&(((((input==5)&&(a5==6))&&(a23==1))&&!(a27==1))&&(a19==4)))))){ + if((a26==1)){ + a16 = 7; + a19 = 2; + a22 = 0; + a27 = 1; + a9 = 9; + a6 = 0; + a1 = 12; + a20 = 1; + a5 = 4; + }else{ + a20 = 1; + a5 = 4; + a16 = 7; + a9 = 9; + a24 = 1; + a6 = 0; + a15 = 0; + a19 = 1; + } + return 26; + } else if((((((a19==3)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a6==1))&&(a21==11)))&&(a16==8))&&!(a27==1))&&((a2==1)&&(!(a26==1)&&(((((((a17==2)&&(a12==1))&&!(a27==1))&&(a1==14))||!(a6==1))&&(a9==11))&&(a20==1)))))){ + a9 = 10; + a1 = 13; + a16 = 7; + a24 = 0; + a2 = 1; + a5 = 6; + a28 = 1; + a19 = 1; + a20 = 0; + return -1; + } else if(((((a9==11)&&((a26==1)&&((a21==11)&&(((!(a13==1)&&(!(a2==1)&&(((a5==4)||(a5==5))&&(input==4))))&&(a24==1))&&(a17==2)))))&&(a19==5))&&(((a20==1)&&(!(a3==1)&&((a16==8)&&((a28==1)&&!(a28==1)))))&&(a1==13)))){ + a1 = 12; + a8 = 1; + a16 = 9; + a5 = 5; + a9 = 10; + a10 = 1; + a19 = 4; + a29 = 0; + return -1; + } else if(((((a12==1)&&((a6==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3))))&&(a1==13))&&((((a19==4)&&(!(a4==1)&&(((a6==1)&&((a20==1)&&((((a28==1)&&(a16==10))&&(a2==1))&&(a21==12))))&&(a17==2))))&&(a28==1))&&(a9==11)))){ + a1 = 12; + a9 = 7; + a16 = 7; + a5 = 4; + a19 = 1; + a2 = 1; + a27 = 0; + a18 = 0; + a21 = 10; + return -1; + } else if(((((a23==1)&&(((((a23==1)&&(!(a20==1)&&(input==1)))&&(a23==1))&&!(a14==1))&&(a16==8)))&&(a21==10))&&(((a17==2)&&(((a9==11)&&(!(a6==1)||((!(a8==1)&&(a6==1))&&(a19==5))))&&(a1==14)))&&(a5==4)))){ + a20 = 1; + a3 = 1; + a19 = 2; + a1 = 13; + a27 = 0; + a16 = 7; + a9 = 9; + a26 = 0; + return -1; + } else if((((a24==1)||((a14==1)||(!(a3==1)||(((((a28==1)||!(a3==1))&&(a19==1))&&(a1==14))&&(a9==10)))))&&((!(a14==1)&&((a17==2)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a20==1))&&(a21==10))&&(a16==11))))&&!(a4==1)))){ + a14 = 0; + a13 = 1; + a5 = 5; + a19 = 5; + a16 = 8; + a1 = 12; + a9 = 9; + return 22; + } else if((((((a26==1)||((a19==1)&&(((a12==1)&&(a1==12))||(a14==1))))&&(a21==12))&&(a16==10))&&((a20==1)&&((a9==8)&&((a17==2)&&((a13==1)&&(!(a0==1)&&((a11==1)&&((a2==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6))))))))))){ + a27 = 0; + a5 = 5; + a23 = 1; + a9 = 7; + a3 = 1; + a21 = 10; + return 21; + } else if(((((a1==14)&&((a9==7)&&((a26==1)||(((a13==1)&&(a6==1))&&(a17==2)))))&&!(a26==1))&&((a28==1)&&((a16==8)&&(((a21==12)&&(((!(a24==1)&&((input==5)&&(a5==4)))&&(a2==1))&&(a19==2)))&&(a20==1)))))){ + a19 = 1; + a1 = 13; + a0 = 0; + a9 = 10; + a16 = 10; + a11 = 1; + a2 = 1; + a5 = 6; + return 25; + } else if(((((a16==8)&&((a17==2)&&(!(a4==1)&&((((((((a1==12)&&(a5==5))&&(a9==7))&&(a19==3))||(((((a5==6)&&(a1==14))&&(a9==11))&&(a19==2))||((a19==3)&&(((a1==12)&&(a5==4))&&(a9==7)))))&&(input==3))&&(a20==1))&&!(a24==1)))))&&!(a18==1))&&(((!(a12==1)||((a21==10)&&(a23==1)))||!(a13==1))||!(a12==1)))){ + a19 = 1; + a26 = 0; + a18 = 0; + a5 = 4; + a16 = 7; + a2 = 1; + a9 = 7; + a1 = 12; + return -1; + } else if((((((a19==3)&&(((((a16==11)&&(a12==1))||!(a12==1))&&(a17==2))&&(a20==1)))&&(a1==14))&&(a6==1))&&(((a13==1)&&(!(a27==1)&&(((a21==12)&&((input==3)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))&&(a12==1))))&&(a28==1)))){ + a5 = 4; + a9 = 7; + a16 = 7; + a19 = 1; + a1 = 12; + a21 = 10; + a0 = 0; + a13 = 1; + return -1; + } else if((((a9==8)&&((a3==1)&&((((input==5)&&((a5==4)||(a5==5)))&&(a16==8))&&!(a7==1))))&&(!(a23==1)||(((a21==12)&&(((a20==1)&&((a1==13)&&((a19==1)&&((a17==2)&&(!(a4==1)&&(a11==1))))))||!(a28==1)))&&!(a27==1))))){ + a5 = 5; + a21 = 11; + a18 = 0; + a19 = 5; + a8 = 0; + a9 = 7; + a11 = 1; + a1 = 12; + a16 = 10; + return 22; + } else if((((!(a28==1)||((a13==1)&&((a1==13)&&((a11==1)&&((a17==2)&&((a11==1)&&(a19==4)))))))&&!(a24==1))&&((a16==10)&&(!(a20==1)&&(((((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==4))&&(a23==1))&&(a12==1))&&(a21==10)))))){ + a19 = 3; + a8 = 1; + a5 = 5; + a9 = 10; + a1 = 14; + a16 = 8; + a12 = 0; + a18 = 1; + a21 = 12; + return -1; + } return calculate_output8(input); + } + + int calculate_output8(int input) { + if(((((((a13==1)&&((a13==1)&&(!(a27==1)&&((input==6)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))))&&(a21==10))&&!(a14==1))&&(a1==13))&&((a20==1)&&((a17==2)&&(((((a11==1)||!(a2==1))&&(a3==1))&&(a16==10))&&(a19==3)))))){ + a9 = 7; + a0 = 0; + a19 = 2; + a5 = 5; + a1 = 14; + a28 = 1; + a26 = 0; + return 21; + } else if((((a9==11)&&((!(a24==1)&&((!(a20==1)&&(a28==1))&&(a19==5)))&&(a16==9)))&&(((a21==11)&&(((a17==2)&&(((!(a14==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a28==1)))&&(a6==1))&&(a23==1)))&&(a6==1)))&&(a1==12)))){ + a5 = 6; + a21 = 10; + a18 = 1; + a22 = 1; + a19 = 3; + a15 = 0; + return 21; + } else if((((a19==3)&&((a23==1)&&(!(a23==1)||(!(a7==1)&&((((((a3==1)&&(a16==8))&&(a17==2))||!(a12==1))&&(a5==5))&&!(a20==1))))))&&(!(a0==1)&&(((((a9==9)&&(input==4))&&(a1==14))&&!(a7==1))&&(a21==11))))){ + a28 = 1; + a5 = 4; + a21 = 10; + a19 = 1; + a1 = 12; + a16 = 7; + a7 = 0; + a9 = 7; + a20 = 1; + return -1; + } else if(((((a19==4)&&(((a17==2)&&((input==6)&&((a5==5)||(a5==6))))&&(a6==1)))&&(a20==1))&&((((a9==10)&&(!(a26==1)&&((((((a28==1)&&(a6==1))||(a26==1))&&!(a0==1))&&(a16==11))&&(a1==12))))&&!(a0==1))&&(a21==12)))){ + a19 = 1; + a28 = 1; + a5 = 4; + a14 = 0; + a21 = 10; + a16 = 7; + a6 = 1; + a9 = 7; + return -1; + } else if((((((((((a2==1)&&((a5==6)&&(input==4)))&&!(a0==1))&&(a1==14))&&(a2==1))&&(a21==10))&&!(a20==1))&&(a19==4))&&(((a9==11)&&((a23==1)&&((a16==10)&&(!(a28==1)||((a6==1)&&(a11==1))))))&&(a17==2)))){ + a3 = 0; + a23 = 0; + a28 = 0; + a1 = 12; + a9 = 7; + a16 = 9; + a5 = 5; + a19 = 5; + return -1; + } else if(((((a1==13)&&(((a19==2)&&(!(a0==1)&&((((a11==1)&&(((input==4)&&(a17==2))&&!(a24==1)))&&!(a20==1))&&!(a18==1))))&&(a21==12)))&&(a9==9))&&((a16==9)&&((((a6==1)||(a8==1))&&(a5==4))||!(a2==1))))){ + a1 = 14; + a9 = 10; + a16 = 7; + a8 = 1; + a26 = 1; + a21 = 11; + a19 = 3; + a18 = 1; + return -1; + } else if((((a24==1)||((a28==1)&&(a17==2)))&&((((a19==3)&&(!(a8==1)&&((a1==14)&&((((((a12==1)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==3)))&&(a16==8))&&(a21==10))&&(a6==1))&&!(a20==1)))))&&(a2==1))&&(a6==1)))){ + a19 = 1; + a9 = 7; + a5 = 4; + a0 = 0; + a14 = 0; + a18 = 0; + a20 = 1; + a1 = 12; + a16 = 7; + return -1; + } else if(((!(a18==1)&&(((a9==10)&&((a1==13)&&((((a19==1)&&((((a5==5)||(a5==6))&&(input==4))&&(a28==1)))&&(a17==2))&&(a16==11))))&&(a20==1)))&&((a0==1)||(((a11==1)&&(((a2==1)&&(a21==10))||!(a3==1)))||(a18==1))))){ + a16 = 7; + a9 = 7; + a5 = 4; + a28 = 1; + a1 = 12; + a8 = 0; + a13 = 1; + return -1; + } else if((((a1==13)&&((a16==10)&&((((!(a20==1)&&((a17==2)&&(a11==1)))||(a24==1))&&(a3==1))&&!(a18==1))))&&(((((a13==1)&&((a12==1)&&((input==6)&&(((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))))))&&!(a26==1))&&(a19==2))&&(a21==11)))){ + a20 = 1; + a19 = 1; + a16 = 7; + a4 = 1; + a9 = 10; + a1 = 14; + a22 = 0; + a21 = 10; + a5 = 4; + a6 = 0; + return -1; + } else if((((a2==1)&&(!(a24==1)&&((a19==4)&&(((a1==14)&&(((a17==2)&&((input==6)&&((a5==5)||(a5==6))))&&(a2==1)))&&(a20==1)))))&&((((((a16==9)&&(!(a24==1)&&(a12==1)))&&(a9==9))||!(a2==1))&&(a21==12))||!(a2==1)))){ + a5 = 4; + a19 = 3; + a1 = 12; + a13 = 1; + a3 = 1; + return 21; + } else if(((((a2==1)&&((!(a20==1)&&(((((a9==10)&&((((a5==4)||(a5==5))&&(input==5))&&(a2==1)))&&!(a0==1))&&(a21==12))&&(a6==1)))&&(a17==2)))&&!(a24==1))&&(((((a13==1)&&(a16==7))&&(a1==13))&&(a19==2))&&!(a0==1)))){ + a2 = 1; + a23 = 1; + a20 = 1; + a21 = 10; + a5 = 4; + a19 = 1; + a9 = 7; + a1 = 12; + a11 = 1; + return -1; + } else if((((((!(a20==1)&&(((a17==2)&&((input==3)&&(((a9==7)&&((a1==13)&&(a5==5)))||((((a5==6)&&(a1==12))&&(a9==11))||(((a5==4)&&(a1==13))&&(a9==7))))))&&(a19==3)))&&(a28==1))&&!(a18==1))&&!(a26==1))&&((a11==1)&&((a23==1)&&((a16==7)&&((a21==11)&&((a11==1)&&(a6==1)))))))){ + a0 = 0; + a19 = 1; + a20 = 1; + a2 = 1; + a9 = 7; + a8 = 0; + a1 = 12; + a21 = 10; + a5 = 4; + return -1; + } else if((((a28==1)&&(((((((input==3)&&(a16==11))&&(a17==2))&&(a20==1))&&(a1==14))&&!(a0==1))&&(a21==10)))&&(!(a4==1)&&((a5==6)&&(((a19==1)&&((a9==9)&&((a13==1)&&(!(a11==1)||(a23==1)))))||!(a28==1)))))){ + a26 = 0; + a5 = 5; + a19 = 3; + a1 = 12; + a12 = 1; + a21 = 12; + a16 = 9; + a23 = 1; + return 21; + } else if((((a3==1)&&((a27==1)||((((!(a20==1)&&((a24==1)||(a11==1)))&&(a9==7))&&(a19==5))&&!(a7==1))))&&(!(a4==1)&&((a1==14)&&((a17==2)&&((a21==12)&&(!(a27==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a16==7))))))))){ + a18 = 0; + a20 = 1; + a5 = 5; + a19 = 2; + a24 = 0; + a1 = 12; + return 22; + } else if(((((((((a6==1)&&((a1==13)&&(a13==1)))&&(a17==2))&&!(a24==1))||!(a12==1))&&(a16==10))||!(a11==1))&&(!(a26==1)&&((a19==5)&&(((!(a4==1)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==5)))&&(a21==11))&&!(a20==1)))))){ + if((a25==1)){ + a4 = 1; + a9 = 7; + a20 = 1; + a19 = 2; + a21 = 10; + a29 = 1; + a6 = 0; + a5 = 6; + a16 = 8; + }else{ + a21 = 10; + a27 = 1; + a16 = 8; + a10 = 1; + a6 = 0; + a9 = 11; + a5 = 6; + } + return -1; + } else if((((!(a14==1)&&((a19==1)&&(((a6==1)&&!(a20==1))||(a4==1))))&&(a11==1))&&(!(a18==1)&&(!(a18==1)&&(((a1==13)&&(((a16==10)&&((a23==1)&&((a21==12)&&((input==6)&&(a17==2)))))&&(a9==7)))&&(a5==5)))))){ + a27 = 1; + a5 = 6; + a28 = 0; + a14 = 1; + a9 = 11; + a16 = 7; + a20 = 1; + a1 = 12; + a21 = 10; + return 25; + } else if((((a16==9)&&(((((a19==2)&&((((a13==1)||!(a11==1))||!(a11==1))&&(a2==1)))&&(a20==1))&&(a21==12))&&(a1==13)))&&(((a3==1)&&(!(a0==1)&&((a3==1)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==6)))))&&(a17==2)))){ + a18 = 0; + a9 = 11; + a11 = 1; + a1 = 14; + a5 = 6; + a6 = 1; + return 21; + } else if((((a6==1)&&((a5==6)&&(((a3==1)&&((a16==7)&&((a17==2)&&(input==3))))&&(a19==2))))&&((a9==7)&&((((a6==1)&&((((a20==1)&&((a21==10)&&(a23==1)))&&(a1==13))&&!(a27==1)))&&!(a4==1))&&!(a8==1))))){ + a5 = 4; + a1 = 12; + a19 = 1; + a14 = 0; + a18 = 0; + a13 = 1; + return -1; + } else if((((a21==10)&&((a1==13)&&((a9==10)&&((a16==10)&&(((input==6)&&((a5==5)||(a5==6)))&&!(a27==1))))))&&((!(a20==1)&&(!(a2==1)||((a19==4)&&((a12==1)&&((!(a28==1)||(!(a18==1)&&(a11==1)))&&(a6==1))))))&&(a17==2)))){ + a19 = 3; + a28 = 0; + a20 = 1; + a22 = 0; + a15 = 0; + a1 = 14; + a16 = 7; + a5 = 6; + return 25; + } else if((((((a1==14)&&(((((!(a20==1)&&(a13==1))&&(a16==8))||(a27==1))&&(a21==12))&&(a23==1)))||!(a11==1))||(a4==1))&&((a11==1)&&(((a2==1)&&((a19==2)&&((a9==10)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6))))))&&(a17==2))))){ + a28 = 0; + a22 = 1; + a9 = 8; + a25 = 0; + a5 = 4; + a19 = 4; + return 23; + } else if((((a17==2)&&((a21==10)&&(!(a13==1)||(a11==1))))&&((a19==4)&&((((((a16==9)&&((((((a9==7)&&((a5==4)&&(a1==13)))||(((a9==11)&&((a5==5)&&(a1==12)))||(((a1==12)&&(a5==6))&&(a9==11))))&&(input==1))&&(a13==1))&&(a2==1)))&&(a2==1))&&(a20==1))&&!(a14==1))&&(a23==1))))){ + a19 = 2; + a5 = 6; + a1 = 14; + a21 = 12; + a4 = 0; + a11 = 1; + a16 = 7; + a26 = 0; + a9 = 11; + return 25; + } else if((((a17==2)&&((a20==1)&&(((a1==13)&&((a6==1)&&((a19==4)&&((input==4)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))))))&&!(a24==1))))&&((a16==9)&&(((a24==1)||((((a21==12)&&(a2==1))&&!(a18==1))||!(a3==1)))&&(a6==1))))){ + a20 = 0; + a21 = 10; + a1 = 12; + a16 = 8; + a28 = 1; + a19 = 1; + a6 = 1; + a11 = 1; + a5 = 6; + a9 = 8; + return 25; + } else if(((((a1==12)&&((((((a12==1)||(a14==1))&&(a19==3))||!(a23==1))&&(a3==1))&&(a21==11)))&&(a20==1))&&(((a3==1)&&(((a2==1)&&((((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))&&(input==4))&&(a23==1)))&&(a16==9)))&&(a17==2)))){ + a26 = 0; + a24 = 0; + a16 = 7; + a8 = 0; + a21 = 10; + a9 = 7; + a5 = 4; + a19 = 1; + return -1; + } else if(((((a16==8)&&((a19==1)&&(((a7==1)&&(((!(a23==1)&&((a28==1)&&(a17==2)))&&(a21==11))&&!(a2==1)))&&(a1==12))))&&(a24==1))&&((((!(a20==1)&&((a9==11)&&(input==4)))&&(a27==1))&&(a5==4))&&!(a11==1)))){ + a21 = 10; + a5 = 5; + a24 = 1; + a1 = 14; + a29 = 1; + a20 = 1; + a16 = 7; + a13 = 0; + return 25; + } else if(((((a28==1)&&((a28==1)&&((a21==11)&&(((a12==1)&&(((input==6)&&((((a9==11)&&((a1==13)&&(a5==6)))||(((a1==14)&&(a5==4))&&(a9==7)))||(((a5==5)&&(a1==14))&&(a9==7))))&&!(a14==1)))&&!(a20==1)))))&&(a17==2))&&(((a19==3)&&(!(a13==1)||((a16==8)&&(a3==1))))||!(a6==1)))){ + a13 = 1; + a19 = 4; + a9 = 9; + a20 = 1; + a16 = 10; + a28 = 1; + a24 = 0; + a21 = 12; + a1 = 12; + a5 = 4; + return 22; + } else if((((a19==1)&&(((!(a20==1)&&((a6==1)&&(a16==10)))||!(a3==1))&&(a1==13)))&&((a6==1)&&((a17==2)&&((((((((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))&&(input==6))&&(a6==1))&&(a13==1))&&(a2==1))&&!(a14==1))&&(a21==12)))))){ + if((a8==1)){ + a2 = 0; + a13 = 0; + a5 = 4; + a16 = 11; + a9 = 11; + a12 = 0; + a19 = 2; + a1 = 12; + a20 = 1; + }else{ + a19 = 2; + a5 = 4; + a16 = 7; + a21 = 10; + a7 = 1; + a29 = 1; + a20 = 1; + a9 = 7; + a1 = 12; + a26 = 1; + } + return 21; + } else if(((((a7==1)&&((a23==1)&&(a18==1)))&&(a21==11))&&(((a20==1)&&((!(a23==1)&&((a1==14)&&((((a16==9)&&((((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4)))&&(input==6))&&!(a13==1)))&&(a17==2))&&(a19==1))))&&(a27==1)))&&!(a6==1)))){ + a16 = 10; + a22 = 1; + a5 = 5; + a12 = 0; + a11 = 0; + a9 = 10; + return -1; + } else if((((a8==1)||(((a12==1)&&((((a19==5)&&(a23==1))&&(a17==2))&&(a16==10)))&&!(a20==1)))&&(((((a12==1)&&(((((a9==7)&&((a1==14)&&(a5==4)))||(((a9==11)&&((a1==13)&&(a5==5)))||((a9==11)&&((a5==6)&&(a1==13)))))&&(input==3))&&!(a24==1)))&&!(a7==1))&&!(a0==1))&&(a21==11)))){ + a16 = 7; + a9 = 9; + a1 = 12; + a21 = 10; + a11 = 0; + a20 = 1; + a19 = 2; + a5 = 4; + a28 = 0; + a29 = 0; + return -1; + } else if(((((a28==1)&&(((((a17==2)&&(((input==4)&&(((a19==5)&&((a9==7)&&((a1==12)&&(a5==4))))||(((a19==4)&&(((a1==14)&&(a5==5))&&(a9==11)))||((a19==4)&&(((a1==14)&&(a5==6))&&(a9==11))))))&&(a16==9)))&&!(a26==1))&&(a20==1))&&(a21==11)))&&(a11==1))&&((((a12==1)||!(a6==1))||(a7==1))&&!(a7==1)))){ + a1 = 12; + a5 = 4; + a0 = 0; + a16 = 7; + a9 = 7; + a14 = 0; + a19 = 1; + a21 = 10; + a24 = 0; + return -1; + } else if((((a1==13)&&((((a26==1)||((a16==7)&&((a2==1)&&(a17==2))))||(a4==1))&&!(a27==1)))&&((a19==2)&&(((a2==1)&&((((a2==1)&&((!(a20==1)&&(input==3))&&(a3==1)))&&(a21==12))&&(a9==10)))&&(a5==6))))){ + a18 = 0; + a19 = 3; + a1 = 14; + a21 = 10; + a20 = 1; + a13 = 1; + a26 = 0; + return 21; + } else if((((((input==4)&&(a16==8))&&(a1==12))&&(a21==12))&&((!(a20==1)&&((a3==1)&&(((a4==1)||(((a17==2)&&((a9==10)&&((a6==1)&&(((a11==1)||(a18==1))||(a26==1)))))&&(a19==5)))||!(a28==1))))&&(a5==5)))){ + a5 = 4; + a1 = 13; + a19 = 1; + a16 = 7; + a8 = 1; + a21 = 10; + a13 = 0; + a20 = 1; + a9 = 9; + a28 = 0; + return 22; + } else if((((!(a4==1)&&(((a1==12)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&(a21==10))&&!(a8==1))&&(a6==1)))&&(a3==1)))&&(a19==1))&&((a20==1)&&(((a17==2)&&((a16==11)&&(((a28==1)&&(a13==1))&&(a3==1))))&&(a9==11))))){ + a6 = 1; + a16 = 9; + a9 = 8; + a13 = 1; + a1 = 14; + a5 = 5; + a8 = 0; + return -1; + } else if(((((a1==14)&&((((!(a7==1)&&((input==6)&&((a5==5)||(a5==6))))&&(a19==3))&&(a17==2))&&(a11==1)))&&(a16==10))&&((!(a23==1)||((!(a20==1)&&((((a21==10)&&(a28==1))||!(a3==1))&&!(a0==1)))&&(a9==10)))&&!(a18==1)))){ + a15 = 1; + a9 = 7; + a18 = 1; + a20 = 1; + a1 = 13; + a21 = 12; + a5 = 4; + a7 = 1; + return -1; + } else if((((a19==4)&&((a16==10)&&((a11==1)&&((!(a20==1)&&(!(a7==1)&&(!(a7==1)&&((((a5==5)||(a5==6))&&(input==5))&&(a28==1)))))&&(a9==9)))))&&((((a27==1)||((!(a26==1)&&(a3==1))&&(a17==2)))&&(a1==14))&&(a21==10)))){ + a10 = 0; + a16 = 9; + a14 = 1; + a1 = 13; + a25 = 1; + a5 = 6; + return 26; + } else if((((a19==4)&&((a1==13)&&((a17==2)&&((((((a5==6)&&(input==3))&&(a9==7))&&!(a6==1))&&(a20==1))&&(a0==1)))))&&((a16==7)&&((a21==10)&&((a14==1)&&(((!(a28==1)&&(a28==1))&&!(a28==1))&&!(a28==1))))))){ + a19 = 3; + a21 = 12; + a16 = 11; + a1 = 14; + a8 = 1; + a9 = 11; + a26 = 1; + a15 = 1; + a5 = 4; + return 25; + } else if(((!(a12==1)&&((a14==1)&&((a17==2)&&((((a13==1)&&(a19==1))&&(a16==7))&&!(a20==1)))))&&((!(a2==1)&&((a26==1)&&((a26==1)&&((a1==13)&&((a21==12)&&((((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(input==3)))))))&&!(a6==1)))){ + a21 = 10; + a9 = 10; + a20 = 1; + a19 = 2; + a29 = 1; + a5 = 6; + a1 = 12; + a10 = 1; + return 22; + } else if((((((((a19==2)&&((!(a2==1)||((a23==1)&&!(a27==1)))&&(a16==9)))&&!(a20==1))||!(a2==1))&&(a1==14))&&!(a8==1))&&((a17==2)&&((a5==6)&&((((a6==1)&&((a21==10)&&(input==6)))&&(a9==7))&&(a28==1)))))){ + if((a3==1)){ + a29 = 0; + a20 = 1; + a11 = 0; + a21 = 12; + a9 = 8; + a1 = 12; + a7 = 1; + a19 = 1; + }else{ + a9 = 9; + a10 = 1; + a1 = 12; + a16 = 7; + a12 = 0; + a20 = 1; + } + return -1; + } else if((((a21==11)&&((((((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8)))&&(input==1))&&(a19==3))&&!(a7==1))&&(a17==2)))&&((((((!(a8==1)&&((!(a14==1)&&(a13==1))&&(a1==14)))&&(a2==1))&&!(a20==1))&&!(a18==1))&&(a16==8))||!(a6==1)))){ + a19 = 4; + a5 = 5; + a7 = 0; + a9 = 10; + a21 = 10; + a20 = 1; + a11 = 1; + a16 = 7; + a28 = 1; + return 25; + } else if((((a16==7)&&(!(a6==1)||((a1==14)&&((a6==1)&&((a21==10)&&((a3==1)&&!(a24==1)))))))&&(!(a14==1)&&((a9==10)&&((a19==2)&&((a17==2)&&((((a6==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))&&!(a20==1))&&!(a18==1)))))))){ + a7 = 0; + a0 = 0; + a1 = 13; + a18 = 0; + a5 = 4; + a19 = 3; + a9 = 7; + return 25; + } else if(((((((a16==9)&&((((input==4)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&(a2==1))&&(a28==1)))&&(a13==1))&&(a19==3))&&(a17==2))&&((a21==11)&&((a7==1)||(((a20==1)&&(((a1==12)&&(a6==1))||!(a23==1)))&&!(a27==1)))))){ + a12 = 1; + a28 = 1; + a19 = 1; + a18 = 0; + a5 = 4; + a9 = 7; + a16 = 7; + a21 = 10; + return -1; + } else if(((((a21==11)&&((a3==1)&&((((a17==2)&&((a1==12)&&(a12==1)))||!(a12==1))||!(a13==1))))&&(a9==9))&&(!(a27==1)&&((((a19==1)&&((a6==1)&&(!(a7==1)&&((input==4)&&((a5==4)||(a5==5))))))&&(a16==9))&&(a20==1))))){ + a3 = 1; + a16 = 7; + a21 = 10; + a23 = 1; + a9 = 7; + a5 = 4; + a0 = 0; + return -1; + } else if((((a20==1)&&((a19==4)&&((a1==12)&&((((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==5))&&!(a27==1))&&!(a27==1)))))&&((a16==11)&&((!(a24==1)&&((a17==2)&&(((a21==12)&&((a2==1)&&(a3==1)))&&(a23==1))))||!(a3==1))))){ + a5 = 5; + a1 = 14; + a3 = 1; + a9 = 10; + a21 = 11; + a19 = 2; + a18 = 0; + a16 = 9; + a12 = 1; + return 21; + } else if((((a5==6)&&(!(a20==1)&&((((!(a14==1)&&((a23==1)&&(a11==1)))&&(a1==14))&&(a23==1))&&(a12==1))))&&(((a9==10)&&((a19==2)&&((a17==2)&&((a2==1)&&((a23==1)&&((a16==9)&&(input==1)))))))&&(a21==10)))){ + a1 = 12; + a26 = 1; + a4 = 1; + a9 = 9; + a19 = 1; + a2 = 0; + a5 = 5; + a20 = 1; + a16 = 7; + return -1; + } else if((((((a20==1)&&((!(a24==1)&&((input==6)&&(((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7))))))&&(a19==1)))&&(a16==8))&&(a6==1))&&(!(a7==1)&&((((((a21==12)&&((a23==1)&&(a1==14)))&&(a17==2))||(a0==1))||!(a11==1))||(a4==1))))){ + a5 = 4; + a1 = 13; + a27 = 0; + a9 = 8; + a19 = 5; + a6 = 1; + a16 = 10; + a21 = 11; + return 21; + } else if((((((a23==1)&&((a21==10)&&((a9==10)&&((a20==1)&&((((a5==5)||(a5==6))&&(input==1))&&!(a8==1))))))&&(a28==1))&&!(a4==1))&&(!(a3==1)||(((a17==2)&&((((a19==1)&&(a28==1))&&(a16==8))&&(a1==13)))&&!(a8==1))))){ + if((a26==1)){ + a16 = 7; + a20 = 0; + a21 = 12; + a1 = 12; + a12 = 1; + a5 = 5; + a19 = 5; + a14 = 0; + a23 = 1; + }else{ + a19 = 5; + a9 = 7; + a5 = 4; + a4 = 0; + a8 = 0; + a11 = 1; + } + return 22; + } else if((((a16==8)&&(((a20==1)&&((a19==1)&&((((!(a13==1)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))&&!(a23==1))&&(a7==1))&&(a1==13))))&&(a9==9)))&&(((((a7==1)&&((a21==11)&&(a12==1)))&&(a17==2))&&!(a2==1))&&!(a2==1)))){ + a5 = 6; + a11 = 0; + a16 = 7; + a21 = 10; + a25 = 1; + a9 = 10; + a4 = 1; + return 21; + } else if(((((a17==2)&&(((a1==12)&&(!(a7==1)&&(((a12==1)&&(!(a18==1)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==3))))&&(a23==1))))&&(a16==10)))&&(a19==4))&&(!(a0==1)&&((!(a20==1)&&((a21==12)&&(a6==1)))||(a24==1))))){ + a19 = 1; + a20 = 1; + a1 = 13; + a29 = 1; + a5 = 6; + a9 = 9; + a24 = 1; + a27 = 1; + a16 = 7; + a21 = 10; + return -1; + } else if((((a27==1)||(((a7==1)||((a16==9)&&(((a26==1)||(a6==1))&&!(a20==1))))&&!(a4==1)))&&((a21==11)&&((a1==13)&&((a17==2)&&(!(a0==1)&&((a19==4)&&(((a2==1)&&(((a5==5)||(a5==6))&&(input==3)))&&(a9==7))))))))){ + a5 = 4; + a23 = 0; + a21 = 12; + a19 = 1; + a9 = 9; + a10 = 0; + a1 = 14; + return 21; + } else if((((!(a18==1)&&((a2==1)&&((a19==1)&&((a9==8)&&((a1==14)&&((a7==1)||(a11==1)))))))&&(a16==11))&&((a20==1)&&((a17==2)&&(((!(a26==1)&&((((a5==4)||(a5==5))&&(input==1))&&(a21==10)))&&!(a24==1))&&!(a8==1)))))){ + a16 = 7; + a9 = 7; + a5 = 4; + a12 = 1; + a0 = 0; + a1 = 12; + return -1; + } else if((((a17==2)&&((((((a9==11)&&(input==5))&&(a16==10))&&!(a14==1))&&(a23==1))&&(a20==1)))&&((a23==1)&&((a5==4)&&((a19==4)&&((((!(a26==1)&&((a28==1)||(a24==1)))&&(a1==12))||!(a6==1))&&(a21==11))))))){ + a21 = 10; + a13 = 1; + a16 = 7; + a2 = 1; + a19 = 1; + a9 = 7; + return -1; + } else if(((!(a28==1)||((a21==10)&&((a5==6)&&((a2==1)&&(((a28==1)&&(a16==9))&&(a19==2))))))&&(!(a0==1)&&((((!(a8==1)&&((a1==13)&&(((input==4)&&(a9==8))&&(a17==2))))&&(a6==1))&&(a20==1))&&(a2==1))))){ + a16 = 7; + a19 = 1; + a13 = 1; + a3 = 1; + a1 = 12; + a9 = 7; + a5 = 4; + return -1; + } else if((((((((a13==1)&&(!(a26==1)&&((input==1)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10))))))&&(a17==2))&&!(a18==1))&&(a1==13))&&(a16==7))&&((((a21==12)&&(!(a3==1)||(((a8==1)||(a13==1))&&(a6==1))))&&(a19==1))&&(a20==1)))){ + a21 = 10; + a2 = 1; + a12 = 1; + a24 = 0; + a5 = 5; + a1 = 12; + a9 = 9; + a16 = 9; + return 26; + } else if((((!(a24==1)&&((a11==1)&&(a21==12)))&&(a20==1))&&((a3==1)&&((!(a8==1)&&((a19==4)&&(((!(a18==1)&&((((input==6)&&(((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))))&&(a13==1))&&(a1==12)))&&(a17==2))&&(a16==10))))&&!(a27==1))))){ + a21 = 10; + a5 = 4; + a0 = 0; + a16 = 7; + a9 = 7; + a28 = 1; + a19 = 1; + a11 = 1; + return -1; + } else if((((a19==5)&&((a5==5)&&(!(a0==1)&&((((a21==11)&&((a20==1)&&(input==6)))&&(a16==11))&&(a17==2)))))&&(((!(a18==1)&&((a28==1)&&(!(a24==1)&&((a13==1)&&((a6==1)&&(a9==9))))))&&(a12==1))&&(a1==13)))){ + a14 = 0; + a12 = 1; + a5 = 4; + a9 = 7; + a21 = 10; + a19 = 1; + a16 = 7; + a7 = 0; + a1 = 12; + return -1; + } else if(((((!(a27==1)&&(((input==3)&&((a5==5)||(a5==6)))&&!(a27==1)))&&(a16==7))&&(a9==8))&&((a17==2)&&((a21==10)&&((a19==3)&&((((!(a0==1)&&(((a11==1)||(a14==1))||!(a12==1)))&&(a23==1))&&(a1==14))&&!(a20==1))))))){ + a20 = 1; + a5 = 4; + a7 = 0; + a3 = 1; + a21 = 12; + a1 = 12; + a28 = 1; + a19 = 5; + return 23; + } else if((((a11==1)&&(((((a1==14)&&((a12==1)&&(a21==11)))&&(a20==1))&&!(a24==1))||!(a6==1)))&&(((((a16==10)&&((a13==1)&&(((a19==4)&&((input==4)&&((a5==4)||(a5==5))))&&(a9==8))))&&(a17==2))&&(a6==1))&&!(a0==1)))){ + a8 = 0; + a16 = 8; + a20 = 0; + a12 = 1; + a26 = 0; + a1 = 12; + a9 = 7; + a5 = 6; + a19 = 5; + return -1; + } else if((((a16==8)&&((a17==2)&&(((((a1==13)&&((a24==1)||(a13==1)))&&(a9==8))||!(a12==1))||!(a12==1))))&&(((a21==10)&&((((!(a4==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))&&!(a27==1))&&(a3==1))&&(a19==1)))&&!(a20==1)))){ + a16 = 7; + a11 = 1; + a3 = 1; + a0 = 0; + a9 = 7; + a20 = 1; + a5 = 4; + a1 = 12; + return -1; + } else if((((a19==1)&&((a21==12)&&(!(a20==1)&&((a2==1)&&((((a12==1)&&((a1==12)&&((a16==7)&&(input==4))))&&(a5==5))&&!(a26==1))))))&&(((!(a13==1)||(((a17==2)&&(a3==1))&&!(a27==1)))&&(a9==7))&&(a3==1)))){ + a20 = 1; + a21 = 10; + a28 = 1; + a5 = 4; + a6 = 1; + a27 = 0; + return -1; + } else if(((!(a20==1)&&(((a19==4)&&((((((((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a17==2))&&!(a18==1))&&(a16==9))&&!(a14==1))&&(a21==11))&&(a11==1)))&&(a2==1)))&&(((((a12==1)||(a8==1))&&!(a7==1))&&(a1==13))&&(a9==9)))){ + if((a10==1)){ + a19 = 1; + a20 = 1; + a1 = 12; + a9 = 11; + a16 = 7; + a21 = 10; + a2 = 0; + a5 = 6; + a13 = 0; + a22 = 1; + }else{ + a20 = 1; + a16 = 7; + a18 = 1; + a5 = 6; + a19 = 1; + a29 = 0; + a6 = 0; + a21 = 10; + } + return 25; + } else if((((a16==11)&&((((!(a4==1)&&((((a19==4)&&((input==5)&&((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a5==4)&&(a9==8)))))&&(a1==12))&&!(a7==1)))&&!(a26==1))&&(a11==1))&&(a17==2)))&&(((a21==11)&&(((a11==1)&&(a28==1))||!(a11==1)))&&(a20==1)))){ + a11 = 1; + a19 = 1; + a27 = 0; + a21 = 10; + a16 = 7; + a18 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if((((((a6==1)&&(a3==1))&&(a19==3))&&(a20==1))&&(((!(a26==1)&&((a17==2)&&((((a28==1)&&(((a1==13)&&((input==6)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))))&&(a11==1)))&&(a21==10))&&(a16==7))))&&(a28==1))&&(a3==1)))){ + a1 = 12; + a26 = 0; + a5 = 5; + a19 = 2; + a18 = 0; + a21 = 11; + a9 = 7; + return 25; + } else if((((((a3==1)&&(!(a20==1)&&(a28==1)))&&(a21==12))||(a8==1))&&(((((a17==2)&&((a13==1)&&(((((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==6))&&(a12==1))&&(a11==1))&&(a19==1))))&&(a16==7))&&(a1==14))&&!(a0==1)))){ + a5 = 4; + a1 = 12; + a27 = 0; + a9 = 7; + a21 = 10; + a20 = 1; + a24 = 0; + a23 = 1; + return -1; + } else if((((a1==12)&&(((!(a12==1)||((((((a16==7)&&(a3==1))||(a0==1))||!(a13==1))&&(a9==7))&&(a21==10)))||!(a12==1))&&(a28==1)))&&((a19==5)&&((((a20==1)&&((input==1)&&(a17==2)))&&(a28==1))&&(a5==4))))){ + a1 = 14; + a27 = 0; + a6 = 1; + a9 = 8; + a19 = 1; + a21 = 12; + a14 = 0; + a5 = 5; + return 22; + } else if((((a17==2)&&((a1==13)&&(((!(a24==1)&&(((((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(input==4))&&(a19==4)))&&!(a26==1))&&(a3==1))))&&((a21==12)&&(!(a11==1)||(!(a28==1)||((((a28==1)&&(a16==10))&&(a20==1))||!(a11==1))))))){ + a11 = 1; + a1 = 14; + a13 = 1; + a5 = 4; + a21 = 11; + a9 = 9; + a4 = 0; + return -1; + } else if((((a21==12)&&((!(a27==1)&&((a17==2)&&((input==3)&&((((a9==11)&&((a5==6)&&(a1==12)))||((a9==7)&&((a5==4)&&(a1==13))))||(((a5==5)&&(a1==13))&&(a9==7))))))&&(a16==7)))&&((a19==5)&&(!(a20==1)&&((!(a14==1)&&((((a23==1)&&(a23==1))&&(a13==1))&&(a28==1)))&&!(a8==1)))))){ + a8 = 0; + a19 = 1; + a26 = 0; + a21 = 10; + a20 = 1; + a27 = 0; + a1 = 12; + a9 = 7; + a5 = 4; + return -1; + } else if(((((((a17==2)&&(((a21==12)&&((input==3)&&((a5==5)||(a5==6))))&&(a19==2)))&&(a28==1))&&(a28==1))&&!(a27==1))&&((a2==1)&&(((a20==1)&&(((a9==8)&&((a1==13)&&((a11==1)||(a24==1))))&&(a16==11)))||!(a23==1))))){ + a21 = 10; + a16 = 7; + a1 = 12; + a8 = 0; + a23 = 1; + a13 = 1; + a5 = 4; + a19 = 1; + a9 = 7; + return -1; + } else if(((((((((!(a4==1)&&((a20==1)&&(a23==1)))&&(a21==12))&&(a17==2))||(a0==1))&&(a1==14))||!(a11==1))||!(a6==1))&&((a16==11)&&((!(a4==1)&&((a12==1)&&((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(input==3))))&&(a19==4))))){ + a16 = 7; + a6 = 1; + a19 = 1; + a21 = 10; + a5 = 4; + a12 = 1; + a1 = 12; + a9 = 7; + a3 = 1; + return -1; + } else if(((!(a14==1)&&(!(a26==1)&&(!(a11==1)||((!(a20==1)&&((a12==1)||!(a12==1)))&&(a5==5)))))&&(((a19==4)&&((a1==14)&&((a2==1)&&(((((input==5)&&(a21==11))&&(a16==7))&&(a17==2))&&(a28==1)))))&&(a9==7)))){ + a5 = 6; + a1 = 13; + a20 = 1; + a9 = 9; + a0 = 0; + a16 = 10; + a19 = 2; + a4 = 0; + a28 = 1; + return 21; + } else if(((((((a21==12)&&((a12==1)&&((a20==1)&&(input==3))))&&(a9==9))&&(a16==9))&&(a17==2))&&((a5==5)&&((a19==5)&&(((a24==1)||(((!(a13==1)||((a6==1)||!(a23==1)))&&(a1==14))&&!(a4==1)))||(a4==1)))))){ + a19 = 1; + a7 = 0; + a0 = 0; + a16 = 7; + a21 = 10; + a5 = 4; + a26 = 0; + a9 = 7; + a1 = 12; + return -1; + } else if((((a3==1)&&((a21==10)&&((a1==13)&&(((a11==1)&&(a20==1))&&(a19==4)))))&&(!(a27==1)&&((!(a4==1)&&(((a23==1)&&((a16==9)&&((a23==1)&&((input==1)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))))))&&!(a14==1)))&&(a17==2))))){ + a16 = 10; + a19 = 1; + a8 = 0; + a5 = 4; + a2 = 1; + a1 = 14; + a9 = 7; + return 21; + } else if(((((((((input==4)&&((a5==4)||(a5==5)))&&(a16==7))&&!(a0==1))&&(a21==10))&&(a1==12))&&(a17==2))&&((a19==4)&&(!(a12==1)||(((a23==1)&&(!(a23==1)||(((a11==1)&&((a23==1)||(a24==1)))&&!(a20==1))))&&(a9==8)))))){ + a23 = 1; + a9 = 7; + a0 = 0; + a5 = 4; + a20 = 1; + a19 = 1; + a24 = 0; + return -1; + } else if((((!(a8==1)&&((a1==14)&&((a17==2)&&(((!(a24==1)&&((a5==5)&&(input==5)))&&(a6==1))&&!(a20==1)))))&&(a21==12))&&((a16==9)&&(!(a26==1)&&(((!(a28==1)||((a19==3)&&(a2==1)))&&(a12==1))&&(a9==9)))))){ + a1 = 12; + a29 = 1; + a5 = 6; + a10 = 1; + a19 = 1; + a20 = 1; + a16 = 7; + a9 = 11; + a21 = 10; + a27 = 1; + return 21; + } else if(((((a12==1)&&(((a16==10)&&((a1==14)&&((a9==10)&&(a11==1))))&&(a5==6)))&&!(a26==1))&&((a28==1)&&((a17==2)&&((a21==12)&&((a19==2)&&((!(a26==1)&&((a28==1)&&((a20==1)&&(input==6))))&&!(a14==1)))))))){ + a16 = 7; + a21 = 10; + a0 = 0; + a5 = 4; + a4 = 0; + a8 = 0; + return 21; + } else if(((((a21==11)&&(((a16==9)&&(!(a24==1)&&(((a6==1)||!(a28==1))&&(a17==2))))&&(a19==5)))&&(a20==1))&&((a1==12)&&(((a11==1)&&((a3==1)&&(!(a0==1)&&((input==5)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))))))&&!(a14==1))))){ + if((a6==1)){ + a20 = 0; + a5 = 6; + a2 = 1; + a19 = 2; + a9 = 10; + a21 = 10; + a7 = 0; + a26 = 0; + a1 = 14; + a16 = 8; + }else{ + a16 = 10; + a5 = 5; + a13 = 1; + a2 = 1; + a28 = 1; + a21 = 10; + a9 = 8; + a19 = 3; + a1 = 14; + } + return 21; + } else if(((((a19==3)&&((a12==1)&&((a1==12)&&(!(a4==1)&&(!(a26==1)&&((a9==9)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a28==1))))))))&&(a16==10))&&(!(a3==1)||((a17==2)&&((a20==1)&&(!(a2==1)||((a13==1)&&(a21==12)))))))){ + a13 = 1; + a28 = 1; + a1 = 13; + a5 = 5; + a19 = 2; + a21 = 10; + a16 = 7; + a2 = 1; + return 25; + } else if(((((!(a28==1)||((a5==4)&&((a16==10)&&((a6==1)&&(a17==2)))))&&(a9==9))&&(a6==1))&&(!(a8==1)&&(!(a14==1)&&((a21==11)&&(((!(a4==1)&&(!(a14==1)&&((input==3)&&!(a20==1))))&&(a1==14))&&(a19==5))))))){ + a13 = 0; + a5 = 5; + a1 = 12; + a7 = 1; + a21 = 10; + a19 = 2; + a6 = 0; + a16 = 7; + a20 = 1; + return -1; + } else if(((((!(a3==1)||((!(a3==1)||((a14==1)||((a12==1)&&(a21==11))))&&(a17==2)))&&(a9==10))||!(a3==1))&&(((a20==1)&&((a5==4)&&((a19==1)&&((!(a8==1)&&((a16==7)&&(input==1)))&&(a13==1)))))&&(a1==12)))){ + a21 = 12; + a6 = 1; + a28 = 1; + a19 = 5; + a5 = 6; + a1 = 14; + a13 = 1; + a9 = 9; + return 26; + } else if((((((((((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==4))&&(a16==10))&&(a1==13))&&(a19==3))&&(a2==1))&&(a21==11))&&!(a8==1))&&((((a8==1)||((((a2==1)&&!(a20==1))&&(a17==2))&&(a23==1)))&&!(a14==1))||(a26==1)))){ + a21 = 10; + a19 = 2; + a25 = 1; + a5 = 4; + a9 = 11; + a10 = 1; + a14 = 1; + return -1; + } else if((((a6==1)&&((!(a7==1)&&(((!(a24==1)&&((a17==2)&&((input==4)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))))&&(a21==10))&&!(a18==1)))&&(a2==1)))&&((a8==1)||(!(a20==1)&&((((a19==3)&&(a11==1))&&(a1==13))&&(a16==10)))))){ + a12 = 0; + a16 = 9; + a11 = 0; + a9 = 7; + a1 = 14; + a20 = 1; + a21 = 12; + a19 = 5; + a5 = 4; + a24 = 1; + return -1; + } else if(((((((a21==10)&&(a3==1))&&!(a26==1))||(a24==1))&&(a9==11))&&((a5==6)&&(((a19==5)&&((a17==2)&&(((((a16==8)&&((a3==1)&&((input==4)&&(a1==12))))&&(a12==1))&&!(a26==1))&&!(a18==1))))&&!(a20==1))))){ + a14 = 0; + a9 = 7; + a5 = 4; + a16 = 7; + a8 = 0; + a20 = 1; + a19 = 1; + return -1; + } else if((((a20==1)&&(((!(a12==1)||(((a2==1)&&(((((a13==1)&&!(a18==1))&&(a9==11))&&(a11==1))&&(a19==2)))&&(a5==4)))||(a14==1))&&(a16==7)))&&((((a23==1)&&((input==5)&&(a1==13)))&&(a17==2))&&(a21==12)))){ + a1 = 12; + a13 = 1; + a19 = 1; + a9 = 7; + a8 = 0; + a4 = 0; + a21 = 10; + return -1; + } else if(((!(a24==1)&&((((a2==1)&&((a20==1)&&((((a21==11)&&(a6==1))&&(a16==10))&&(a28==1))))&&(a17==2))&&(a12==1)))&&(!(a0==1)&&(!(a0==1)&&((a1==13)&&((a9==10)&&(((a19==4)&&(input==4))&&(a5==5)))))))){ + a16 = 7; + a28 = 1; + a3 = 1; + a21 = 10; + a24 = 0; + a5 = 4; + return -1; + } else if((((a3==1)&&(!(a7==1)&&((a16==8)&&((a9==7)&&(!(a18==1)&&((((((((input==1)&&(a1==13))&&(a21==11))&&(a5==6))&&(a2==1))&&(a20==1))&&(a19==4))&&!(a24==1)))))))&&(((a28==1)||!(a3==1))&&(a17==2)))){ + a21 = 10; + a5 = 4; + a16 = 7; + a12 = 1; + a4 = 0; + a2 = 1; + a1 = 12; + a19 = 1; + return -1; + } else if((((a3==1)&&(((!(a8==1)&&((((a1==14)&&(input==5))&&!(a8==1))&&(a5==4)))&&(a6==1))&&(a11==1)))&&((a0==1)||((a20==1)&&((a16==7)&&((a17==2)&&((a19==4)&&((a9==7)&&((a21==12)&&(a23==1)))))))))){ + a9 = 8; + a5 = 5; + a16 = 9; + a0 = 0; + a19 = 3; + a27 = 0; + a1 = 12; + a21 = 11; + return 23; + } else if((((a20==1)&&(((a23==1)&&(((a13==1)&&(((a24==1)||((a8==1)||(a12==1)))&&(a9==10)))&&(a1==12)))&&(a21==11)))&&(((a17==2)&&((a16==11)&&(!(a18==1)&&(((input==6)&&(a19==1))&&(a5==6)))))&&!(a26==1)))){ + a1 = 13; + a9 = 8; + a3 = 1; + a0 = 0; + a6 = 1; + a19 = 5; + return 26; + } else if((((((a19==5)&&((a18==1)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6)))))&&!(a3==1))&&(a9==7))&&((((((a8==1)&&((!(a3==1)&&(!(a28==1)&&((a18==1)&&(a2==1))))&&(a1==14)))&&(a17==2))&&(a20==1))&&(a21==11))&&(a16==9)))){ + a18 = 1; + a5 = 5; + a15 = 1; + a9 = 9; + a19 = 3; + a1 = 12; + a10 = 0; + a16 = 11; + return -1; + } else if((((a28==1)&&((a1==12)&&((a9==11)&&(!(a14==1)&&(((a17==2)&&(a2==1))||(a18==1))))))&&((!(a8==1)&&((((((a19==5)&&((input==4)&&((a5==5)||(a5==6))))&&!(a0==1))&&(a20==1))&&(a16==8))&&(a21==10)))&&!(a4==1)))){ + a5 = 4; + a28 = 1; + a19 = 1; + a16 = 7; + a9 = 7; + a6 = 1; + a26 = 0; + return -1; + } else if((((((((a2==1)&&((a13==1)&&((a5==4)&&((input==6)&&(a19==3)))))&&!(a8==1))&&(a17==2))&&(a21==12))&&(a1==14))&&(((((a9==8)&&(!(a27==1)&&((a26==1)||(a23==1))))&&!(a18==1))&&(a16==8))&&!(a20==1)))){ + a16 = 7; + a23 = 0; + a9 = 9; + a13 = 0; + a20 = 1; + a21 = 10; + a1 = 12; + a27 = 1; + a19 = 2; + return -1; + } else if((((a9==11)&&((a1==14)&&((((a16==11)&&((((a17==2)&&(input==3))&&!(a0==1))&&!(a8==1)))&&!(a8==1))&&(a20==1))))&&((((a19==4)&&((a13==1)&&((a28==1)&&((a3==1)||!(a12==1)))))&&(a5==6))&&(a21==12)))){ + a23 = 1; + a16 = 7; + a21 = 10; + a8 = 0; + a14 = 0; + a19 = 1; + a5 = 4; + a9 = 7; + a1 = 12; + return -1; + } else if((((((((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6))))&&(input==4))&&!(a24==1))&&(a19==2))&&((a21==10)&&(((a17==2)&&((a16==11)&&(!(a26==1)&&((!(a3==1)||(((a4==1)||(!(a8==1)&&(a6==1)))&&(a1==12)))&&(a6==1)))))&&(a20==1))))){ + a9 = 7; + a28 = 1; + a19 = 1; + a24 = 0; + a23 = 1; + a5 = 4; + a16 = 7; + return -1; + } else if(((((((a16==10)&&((a12==1)&&((((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(input==6))))&&(a20==1))&&!(a27==1))&&(a6==1))&&((a19==3)&&((a3==1)&&((((a1==14)&&((!(a28==1)||(a6==1))&&(a17==2)))&&(a21==11))||(a14==1)))))){ + a26 = 0; + a19 = 2; + a21 = 10; + a16 = 7; + a5 = 5; + a9 = 8; + a24 = 0; + return 23; + } else if(((!(a24==1)&&(!(a7==1)&&(!(a4==1)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a2==1))&&(a11==1))&&(a9==10)))))&&((a7==1)||((((a21==11)&&((a17==2)&&((a20==1)&&((a13==1)&&(a1==13)))))&&(a19==3))&&(a16==8))))){ + a1 = 12; + a2 = 1; + a21 = 10; + a19 = 1; + a5 = 4; + a26 = 0; + a16 = 7; + a9 = 7; + a0 = 0; + return -1; + } else if((((a5==5)&&(!(a4==1)&&(!(a27==1)&&(((((input==6)&&(a21==11))&&(a2==1))&&(a23==1))&&(a16==7)))))&&((((((((a1==13)&&(a6==1))&&(a20==1))&&!(a26==1))&&(a19==4))||!(a13==1))&&(a9==9))&&(a17==2)))){ + a26 = 0; + a16 = 8; + a9 = 11; + a23 = 1; + a7 = 0; + a1 = 12; + return 22; + } else if((((a17==2)&&((a20==1)&&((a0==1)||((((a6==1)&&!(a4==1))&&(a6==1))&&(a16==8)))))&&(((!(a26==1)&&(((!(a0==1)&&(((((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))||((a5==4)&&(a9==10)))&&(input==6)))&&(a21==12))&&(a23==1)))&&(a1==14))&&(a19==4)))){ + a23 = 1; + a19 = 1; + a5 = 4; + a21 = 11; + a14 = 0; + a4 = 0; + a9 = 10; + return -1; + } else if((((a17==2)&&(!(a0==1)&&((!(a24==1)&&(!(a26==1)&&(!(a8==1)&&(((input==1)&&(a5==5))&&(a21==11)))))&&(a9==8))))&&((a16==8)&&((!(a24==1)&&((((a13==1)&&!(a4==1))&&!(a20==1))&&(a1==14)))&&(a19==2))))){ + a8 = 0; + a14 = 0; + a6 = 1; + a9 = 11; + a19 = 5; + a16 = 9; + a20 = 1; + return 21; + } else if(((!(a4==1)&&((a0==1)||((((!(a4==1)&&((a2==1)&&(a3==1)))&&(a21==11))&&(a19==4))||(a18==1))))&&(!(a24==1)&&((((((input==6)&&(((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))))&&!(a20==1))&&(a16==10))&&(a1==12))&&(a17==2))))){ + a19 = 3; + a20 = 1; + a13 = 0; + a25 = 1; + a5 = 6; + a22 = 0; + a9 = 8; + return 22; + } else if((((a0==1)||(((a16==7)&&((((a17==2)&&(a13==1))||(a0==1))||(a24==1)))&&(a12==1)))&&((a3==1)&&(((((((((a9==11)&&((a1==14)&&(a5==6)))&&(a19==1))||((a19==2)&&((a9==7)&&((a5==4)&&(a1==12)))))||((((a1==12)&&(a5==5))&&(a9==7))&&(a19==2)))&&(input==1))&&!(a20==1))&&(a13==1))&&(a21==10))))){ + a9 = 10; + a26 = 0; + a1 = 13; + a19 = 2; + a14 = 0; + a5 = 5; + return 22; + } else if(((!(a20==1)&&(!(a27==1)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&(a19==1))&&(a21==11))&&(a17==2))))&&((((!(a3==1)||(!(a0==1)&&(!(a12==1)||((!(a24==1)&&(a11==1))&&(a16==9)))))&&(a1==14))&&(a9==10))||!(a2==1)))){ + if((a18==1)){ + a0 = 1; + a16 = 7; + a20 = 1; + a5 = 4; + a9 = 8; + a7 = 1; + a21 = 10; + a15 = 1; + }else{ + a20 = 1; + a1 = 12; + a9 = 9; + a5 = 5; + a16 = 7; + a29 = 0; + a6 = 0; + a19 = 2; + a24 = 1; + a21 = 10; + } + return -1; + } else if((((a1==12)&&(((((a17==2)&&(!(a20==1)&&((input==1)&&(a21==12))))&&(a5==5))&&(a3==1))&&!(a18==1)))&&((((a16==8)&&((a7==1)||(!(a18==1)&&(((a12==1)&&(a13==1))&&(a9==8)))))&&!(a4==1))&&(a19==3)))){ + a11 = 0; + a10 = 0; + a20 = 1; + a16 = 7; + a5 = 4; + return -1; + } else if((((a2==1)&&((((a1==14)&&(((a26==1)||(a3==1))&&(a19==1)))&&(a17==2))&&(a16==7)))&&(((((a12==1)&&((a20==1)&&((a3==1)&&(((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4)))&&(input==1)))))&&(a6==1))&&(a21==12))&&(a13==1)))){ + a11 = 1; + a26 = 0; + a9 = 7; + a1 = 12; + a5 = 4; + a21 = 10; + return -1; + } else if((((((a17==2)&&((((a6==1)&&(a1==13))||!(a12==1))&&!(a20==1)))&&(a16==9))&&(a13==1))&&(!(a4==1)&&((((a5==4)&&(((((input==3)&&(a21==12))&&(a28==1))&&(a3==1))&&(a19==4)))&&(a9==9))&&(a28==1))))){ + if((a1==13)){ + a23 = 0; + a26 = 1; + a5 = 6; + a9 = 7; + a19 = 5; + a6 = 0; + }else{ + a28 = 0; + a9 = 7; + a21 = 10; + a1 = 12; + a2 = 0; + a15 = 0; + a5 = 5; + a19 = 2; + a16 = 7; + a20 = 1; + } + return -1; + } else if(((((((a1==12)&&(((a17==2)&&((a28==1)&&!(a27==1)))&&(a20==1)))&&(a16==11))&&(a21==12))||!(a11==1))&&(!(a7==1)&&((((a12==1)&&(((a19==4)&&((input==3)&&((a5==5)||(a5==6))))&&(a11==1)))&&!(a18==1))&&(a9==11))))){ + a19 = 1; + a9 = 7; + a3 = 1; + a4 = 0; + a16 = 7; + a21 = 10; + a13 = 1; + a5 = 4; + return -1; + } else if(((((a9==11)&&((a17==2)&&((!(a20==1)&&((a16==8)&&(a3==1)))&&(a8==1))))&&(a21==11))&&(((!(a13==1)&&(!(a28==1)&&(!(a23==1)&&((((input==1)&&(a5==4))&&(a0==1))&&!(a2==1)))))&&(a1==12))&&(a19==1)))){ + a2 = 0; + a1 = 13; + a20 = 1; + a16 = 7; + a9 = 10; + a19 = 2; + a10 = 1; + a25 = 1; + a5 = 6; + a21 = 12; + return 23; + } else if(((((a6==1)&&(!(a11==1)||(((((a11==1)&&(a16==10))&&(a21==10))&&(a2==1))&&(a19==5))))&&!(a20==1))&&(((a17==2)&&((a6==1)&&((!(a26==1)&&(!(a14==1)&&(((a5==5)||(a5==6))&&(input==1))))&&(a9==11))))&&(a1==14)))){ + a19 = 1; + a12 = 0; + a16 = 7; + a3 = 0; + a20 = 1; + a7 = 1; + a5 = 6; + return -1; + } else if(((((a14==1)||((((((a5==5)&&((a1==13)&&(a3==1)))&&(a21==10))&&(a17==2))||(a14==1))&&!(a0==1)))&&!(a4==1))&&(((((a16==7)&&((a19==2)&&((input==1)&&(a9==7))))&&(a2==1))&&(a20==1))&&!(a4==1)))){ + a9 = 9; + a26 = 0; + a8 = 0; + a27 = 0; + return 23; + } else if(((((a16==10)&&(!(a14==1)&&((((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==4))&&(a28==1))&&!(a7==1))))&&(a19==3))&&(((a27==1)||(((((a1==12)&&((a13==1)&&(a21==11)))&&!(a20==1))&&(a17==2))||!(a11==1)))&&!(a8==1)))){ + if((a16==7)){ + a1 = 14; + a18 = 1; + a27 = 1; + a5 = 5; + a21 = 10; + a9 = 7; + a16 = 11; + a19 = 1; + }else{ + a20 = 1; + a16 = 7; + a8 = 1; + a21 = 10; + a26 = 1; + a7 = 1; + a5 = 6; + a9 = 9; + a19 = 2; + } + return 26; + } else if(((!(a7==1)&&((((((a12==1)&&(a9==8))&&(a5==5))&&(a1==14))&&(a16==8))||!(a2==1)))&&(((!(a24==1)&&((((((a17==2)&&(input==4))&&(a20==1))&&!(a7==1))&&(a21==10))&&(a3==1)))&&(a19==1))&&(a12==1)))){ + a16 = 7; + a9 = 7; + a14 = 0; + a8 = 0; + a4 = 0; + a5 = 4; + a1 = 12; + return -1; + } else if(((((a16==11)&&(((!(a2==1)||(a28==1))&&(a17==2))&&(a19==1)))&&(a12==1))&&((!(a7==1)&&(((a20==1)&&((a13==1)&&((a21==11)&&((a6==1)&&(((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))&&(input==6))))))&&(a1==12)))&&!(a4==1)))){ + a23 = 1; + a16 = 7; + a7 = 0; + a21 = 10; + a12 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if(((((a5==6)&&((!(a0==1)&&((a2==1)&&(((a9==7)&&((((input==3)&&(a16==8))&&(a3==1))&&(a6==1)))&&!(a18==1))))&&(a17==2)))&&(a21==12))&&((((a8==1)||((a20==1)&&(a13==1)))&&(a19==5))&&(a1==14)))){ + a21 = 10; + a9 = 9; + a4 = 0; + a5 = 4; + a12 = 1; + a27 = 0; + a1 = 13; + return 22; + } else if((((((((input==4)&&(((((a5==5)&&(a1==13))&&(a9==11))||(((a5==6)&&(a1==13))&&(a9==11)))||((a9==7)&&((a1==14)&&(a5==4)))))&&(a17==2))&&(a12==1))&&(a16==8))&&!(a26==1))&&(((!(a12==1)||((a28==1)&&(!(a11==1)||((a19==1)&&((a2==1)&&(a21==12))))))&&(a20==1))||!(a2==1)))){ + a8 = 0; + a16 = 7; + a0 = 0; + a5 = 4; + a27 = 0; + a1 = 12; + a9 = 7; + a21 = 10; + return -1; + } else if(((((a16==11)&&((((a3==1)&&(((input==5)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&!(a26==1)))&&(a12==1))&&(a1==14)))&&(a21==10))&&((!(a20==1)&&((!(a8==1)&&(!(a4==1)&&(!(a26==1)&&(a6==1))))&&(a17==2)))&&(a19==1)))){ + a19 = 3; + a5 = 6; + a1 = 12; + a12 = 0; + a15 = 0; + a16 = 7; + a9 = 9; + a22 = 0; + return -1; + } else if((((((a28==1)&&((((a17==2)&&(!(a20==1)&&(a3==1)))||(a8==1))&&!(a14==1)))&&(a19==3))&&(a1==13))&&(((((((input==1)&&(((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))))&&(a2==1))&&(a16==8))&&(a12==1))&&(a21==12))&&(a28==1)))){ + a3 = 0; + a15 = 0; + a9 = 7; + a5 = 4; + a21 = 11; + a16 = 10; + a29 = 1; + return -1; + } else if(((((a2==1)&&((a21==12)&&((a17==2)&&(((a5==6)&&(input==1))&&!(a14==1)))))&&(a11==1))&&((((((a9==7)&&(!(a23==1)||((a19==3)&&((a12==1)&&(a20==1)))))&&(a1==12))&&(a16==9))&&!(a27==1))&&!(a0==1)))){ + a28 = 1; + a16 = 7; + a5 = 4; + a2 = 1; + a19 = 1; + a26 = 0; + a21 = 10; + return -1; + } else if((((a16==8)&&((a11==1)&&(((((a11==1)&&(((((input==5)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(a1==13))&&(a21==10))&&(a19==3)))&&(a17==2))&&(a20==1))&&(a28==1))))&&((((a18==1)||(a12==1))&&!(a0==1))&&!(a18==1)))){ + a1 = 12; + a21 = 12; + a3 = 1; + a23 = 1; + a19 = 5; + a7 = 0; + a16 = 9; + a5 = 4; + a9 = 8; + return 26; + } else if((((a14==1)||(((a26==1)||(!(a11==1)||(a23==1)))&&(a2==1)))&&(((((((((a21==10)&&(((a19==1)&&(input==1))&&(a16==8)))&&(a9==10))&&(a5==6))&&(a1==14))&&!(a26==1))&&(a2==1))&&(a17==2))&&(a20==1)))){ + a9 = 9; + a16 = 9; + a27 = 0; + a1 = 12; + a19 = 3; + a14 = 0; + a2 = 1; + a21 = 12; + a5 = 4; + return 21; + } else if((((a19==1)&&(((a6==1)&&((((input==6)&&((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4))))&&(a28==1))&&(a20==1)))&&(a12==1)))&&((a21==11)&&((((a1==12)&&((a16==11)&&(((a6==1)&&(a12==1))&&(a17==2))))&&!(a27==1))&&(a2==1))))){ + a9 = 7; + a16 = 8; + a5 = 6; + a11 = 1; + a19 = 2; + a20 = 0; + a0 = 0; + a28 = 1; + return 25; + } else if(((((a19==3)&&((a21==10)&&((a23==1)&&((a13==1)&&!(a20==1)))))||(a26==1))&&((a17==2)&&(!(a0==1)&&(((((a12==1)&&((a16==11)&&((((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6))))&&(input==4))))&&(a1==13))&&!(a7==1))&&(a12==1)))))){ + if((a24==1)){ + a19 = 1; + a29 = 0; + a2 = 0; + a3 = 0; + a9 = 8; + a5 = 4; + a20 = 1; + a1 = 12; + a16 = 7; + }else{ + a9 = 10; + a26 = 1; + a25 = 0; + a1 = 14; + a20 = 1; + a28 = 0; + a19 = 5; + a16 = 10; + a5 = 6; + } + return -1; + } else if(((((!(a8==1)&&(((((!(a27==1)&&(((input==5)&&(a17==2))&&(a12==1)))&&!(a0==1))&&(a21==12))&&!(a26==1))&&(a19==4)))&&(a20==1))&&(a9==9))&&(((((a1==12)&&(a28==1))&&(a11==1))&&(a5==5))&&(a16==7)))){ + a7 = 0; + a16 = 9; + a1 = 13; + a21 = 11; + a2 = 1; + a9 = 11; + a19 = 1; + return 22; + } else if((((((a6==1)&&(((a17==2)&&(((a20==1)&&((a21==11)&&(input==4)))&&(a23==1)))&&(a16==8)))&&(a1==12))&&(a9==10))&&((a5==6)&&((a4==1)||((a18==1)||((a19==1)&&((a26==1)||((a23==1)||(a24==1))))))))){ + a16 = 7; + a21 = 10; + a9 = 7; + a5 = 4; + a4 = 0; + a28 = 1; + a18 = 0; + return -1; + } else if(((((a19==3)&&((((input==4)&&(a5==5))&&(a16==8))&&(a2==1)))&&(a9==9))&&(((a1==13)&&(((((a11==1)&&((a0==1)||((a21==10)&&((a20==1)&&(a11==1)))))||(a27==1))&&!(a0==1))||(a26==1)))&&(a17==2)))){ + a26 = 0; + a19 = 1; + a9 = 7; + a8 = 0; + a2 = 1; + a1 = 12; + a5 = 4; + a16 = 7; + return -1; + } else if((((a21==11)&&(((((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&(a19==5))&&(a12==1))&&(a9==11)))&&((a27==1)||((a6==1)&&((((((a1==14)&&(!(a20==1)&&((a28==1)&&(a17==2))))&&(a16==10))&&(a23==1))&&(a13==1))||!(a13==1)))))){ + a16 = 7; + a20 = 1; + a12 = 0; + a9 = 8; + a19 = 2; + a29 = 1; + a21 = 10; + a5 = 6; + a1 = 12; + return 22; + } else if((((((a0==1)||(((a1==14)&&(a12==1))&&(a12==1)))||!(a11==1))&&(a13==1))&&((((a21==12)&&((((((((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6))))&&(input==4))&&(a20==1))&&(a17==2))&&(a16==9))&&(a12==1)))&&(a12==1))&&(a19==2)))){ + a5 = 4; + a7 = 0; + a1 = 12; + a23 = 1; + a19 = 1; + a13 = 1; + a16 = 7; + a21 = 10; + a9 = 7; + return -1; + } else if(((!(a0==1)&&(((((a3==1)&&(((a16==9)&&((a28==1)&&(a17==2)))||!(a12==1)))&&(a21==11))&&(a19==3))&&(a3==1)))&&(((!(a20==1)&&((a1==13)&&((input==1)&&(((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))))&&(a28==1))&&!(a26==1)))){ + if((a18==1)){ + a19 = 4; + a4 = 1; + a9 = 7; + a1 = 14; + a5 = 4; + a21 = 12; + a24 = 1; + a16 = 7; + }else{ + a20 = 1; + a29 = 1; + a2 = 0; + a16 = 11; + a5 = 4; + a21 = 12; + a1 = 14; + a9 = 11; + } + return 21; + } else if((((a19==2)&&(!(a4==1)&&((a1==12)&&(!(a20==1)&&(!(a0==1)&&((a17==2)&&(input==5)))))))&&((a5==4)&&(((a16==8)&&(((a8==1)||(!(a13==1)||(((a23==1)&&(a12==1))&&(a9==7))))||(a26==1)))&&(a21==12))))){ + a9 = 8; + a26 = 1; + a1 = 14; + a5 = 5; + a25 = 1; + a19 = 1; + a4 = 1; + a20 = 1; + a16 = 7; + a21 = 10; + return 21; + } else if(((!(a27==1)&&(((!(a20==1)&&((((a17==2)&&((a5==5)&&((input==5)&&(a1==12))))&&(a19==3))&&!(a24==1)))&&(a21==11))&&(a23==1)))&&((a3==1)&&(((((a6==1)&&(a16==8))&&(a9==11))||!(a11==1))&&(a2==1))))){ + a11 = 1; + a12 = 1; + a9 = 10; + a5 = 4; + a1 = 14; + a8 = 0; + a21 = 12; + a20 = 1; + a19 = 5; + return 22; + } else if((((((a16==9)&&(!(a7==1)&&((!(a24==1)&&((input==5)&&!(a20==1)))&&(a1==14))))&&!(a26==1))&&!(a26==1))&&((((a5==6)&&(((a6==1)&&((a21==11)&&((a28==1)&&(a17==2))))&&(a19==3)))&&(a9==8))||!(a13==1)))){ + if((a9==8)){ + a19 = 1; + a21 = 10; + a9 = 7; + a16 = 7; + a8 = 1; + a10 = 1; + a1 = 13; + a20 = 1; + }else{ + a19 = 4; + a21 = 10; + a2 = 0; + a9 = 7; + a5 = 4; + a27 = 1; + a4 = 1; + a1 = 12; + } + return 22; + } else if(((!(a0==1)&&(((a3==1)&&((((((a5==6)&&(input==1))&&(a19==1))&&(a28==1))&&(a21==12))&&!(a27==1)))&&(a17==2)))&&((((((a9==8)&&((a2==1)&&(a16==8)))&&(a1==13))&&(a20==1))||!(a6==1))||!(a23==1)))){ + a0 = 0; + a28 = 1; + a9 = 7; + a1 = 12; + a21 = 10; + a16 = 7; + a5 = 4; + return -1; + } else if((((a19==5)&&((a16==10)&&((((a11==1)&&(((a20==1)&&((input==1)&&(((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9))))))&&!(a14==1)))&&!(a14==1))&&!(a14==1))))&&((!(a3==1)||((a21==11)&&((a1==13)&&((a17==2)&&(a23==1)))))||(a14==1)))){ + a14 = 0; + a9 = 9; + a19 = 2; + a16 = 7; + a2 = 1; + a21 = 10; + a3 = 1; + a5 = 5; + return 25; + } else if((((a21==10)&&(((a19==1)&&((a23==1)&&(((input==3)&&((a5==4)||(a5==5)))&&(a3==1))))&&(a16==9)))&&((a9==8)&&(((!(a28==1)||((((!(a23==1)||(a28==1))&&!(a18==1))&&!(a18==1))&&(a17==2)))&&!(a20==1))&&(a1==14))))){ + a14 = 1; + a10 = 0; + a21 = 12; + a16 = 7; + a4 = 1; + a9 = 11; + a19 = 2; + a5 = 6; + return -1; + } else if(((((a21==10)&&((a16==9)&&(((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a20==1))))&&(a11==1))&&(!(a28==1)||(!(a7==1)&&((((a12==1)&&((a9==10)&&((((a13==1)&&(a1==12))||(a18==1))&&(a19==4))))||(a0==1))&&(a17==2)))))){ + a19 = 1; + a5 = 4; + a26 = 0; + a18 = 0; + a2 = 1; + a9 = 7; + a16 = 7; + return -1; + } else if((((((((a20==1)&&(a23==1))&&(a16==10))&&(a17==2))&&(a11==1))&&!(a26==1))&&((!(a4==1)&&(!(a26==1)&&((((a1==14)&&(!(a8==1)&&(((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))&&(input==5))))&&(a19==3))&&(a21==11))))&&!(a0==1)))){ + a16 = 7; + a5 = 5; + a3 = 1; + a9 = 9; + a4 = 0; + a12 = 1; + a21 = 10; + a1 = 13; + a19 = 2; + return 25; + } else if(((((a26==1)&&((a21==12)&&((a9==10)&&(!(a23==1)&&((a26==1)&&((a8==1)&&(!(a28==1)&&(a11==1))))))))&&(a19==3))&&(((a16==7)&&((a1==13)&&((a5==5)&&((a18==1)&&((input==5)&&(a20==1))))))&&(a17==2)))){ + a24 = 1; + a21 = 10; + a5 = 4; + a1 = 12; + a11 = 0; + a2 = 0; + a19 = 1; + a9 = 11; + return 21; + } else if(((((((a17==2)&&(((a21==10)&&(((((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a2==1))&&!(a7==1))&&(a9==8)))&&!(a7==1)))&&!(a8==1))&&!(a24==1))&&!(a24==1))&&(((a16==8)&&((a1==13)&&((a11==1)&&(a19==4))))&&!(a20==1)))){ + a14 = 0; + a7 = 0; + a16 = 9; + a1 = 14; + a20 = 1; + a5 = 4; + a28 = 1; + a19 = 2; + return 26; + } else if((((a1==14)&&((a16==9)&&(((a28==1)||!(a12==1))||!(a28==1))))&&((((((a5==6)&&(((a28==1)&&(!(a27==1)&&(((a21==11)&&(input==1))&&(a19==3))))&&(a17==2)))&&(a9==7))&&!(a18==1))&&(a20==1))&&(a13==1)))){ + a20 = 0; + a9 = 10; + a3 = 1; + a5 = 5; + a1 = 12; + a4 = 0; + a26 = 0; + a19 = 5; + a16 = 8; + return 21; + } else if((((((((((a21==11)&&((((((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(input==4))&&(a3==1))&&(a20==1)))&&(a3==1))&&(a1==12))&&!(a27==1))&&(a17==2))&&(a16==7))&&(a19==4))&&(((a27==1)||((a2==1)&&(a2==1)))||(a4==1)))){ + a21 = 10; + a13 = 1; + a24 = 0; + a5 = 4; + a9 = 7; + a19 = 1; + a11 = 1; + return -1; + } else if(((!(a11==1)||(!(a8==1)&&(!(a18==1)&&(((a12==1)||!(a3==1))&&(a9==8)))))&&((a16==10)&&((a5==5)&&((((!(a27==1)&&(!(a20==1)&&(((input==4)&&(a17==2))&&(a6==1))))&&(a19==5))&&(a1==14))&&(a21==12)))))){ + a16 = 7; + a25 = 1; + a19 = 2; + a10 = 1; + a1 = 13; + a5 = 6; + a9 = 9; + a6 = 0; + return 23; + } else if(((((((a2==1)&&((!(a18==1)&&(!(a27==1)&&(((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))&&(input==3))))&&(a1==12)))&&(a17==2))&&(a11==1))&&!(a7==1))&&((((((a21==12)&&(a12==1))&&(a19==3))&&(a16==11))&&(a20==1))||(a14==1)))){ + a7 = 0; + a21 = 10; + a16 = 7; + a19 = 1; + a28 = 1; + a9 = 7; + a2 = 1; + a5 = 4; + return -1; + } else if(((((a7==1)&&(((a0==1)&&((a19==1)&&((a28==1)&&(a14==1))))&&(a21==11)))&&(a1==14))&&(!(a6==1)&&(((((((((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6))))&&(input==5))&&(a20==1))&&(a24==1))&&(a16==9))&&(a17==2))&&!(a12==1))))){ + a10 = 1; + a28 = 0; + a5 = 6; + a21 = 10; + a16 = 7; + a23 = 0; + a9 = 9; + a1 = 13; + return -1; + } else if((((((((a17==2)&&((a16==10)&&(!(a24==1)&&(a23==1))))&&(a1==14))||(a14==1))&&!(a14==1))||(a18==1))&&(((a19==2)&&((!(a7==1)&&(!(a20==1)&&((input==6)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))))&&(a21==11)))&&(a11==1)))){ + if((a29==1)){ + a20 = 1; + a27 = 1; + a12 = 0; + a5 = 4; + a21 = 10; + a9 = 8; + a19 = 3; + a1 = 12; + a24 = 1; + }else{ + a22 = 0; + a20 = 1; + a3 = 0; + a5 = 4; + a21 = 12; + a1 = 12; + a15 = 0; + a9 = 8; + a16 = 8; + a19 = 4; + } + return 25; + } else if((((((a2==1)&&(!(a28==1)||(((a27==1)||((a13==1)&&((a26==1)||(a12==1))))&&!(a20==1))))&&(a21==10))&&(a16==8))&&((((a2==1)&&((a1==12)&&((a9==7)&&((input==4)&&(a17==2)))))&&(a19==5))&&(a5==6)))){ + a5 = 4; + a7 = 0; + a12 = 1; + a16 = 7; + a20 = 1; + a23 = 1; + a19 = 1; + return -1; + } else if((((a3==1)&&((a23==1)&&(((input==5)&&((((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))||((a5==4)&&(a9==10))))&&(a16==9))))&&((a14==1)||((a1==12)&&((((!(a20==1)&&((((a13==1)&&(a2==1))&&(a19==3))||(a4==1)))&&(a17==2))&&(a21==12))||(a26==1)))))){ + a5 = 6; + a20 = 1; + a15 = 1; + a18 = 1; + a19 = 2; + a16 = 7; + a21 = 10; + a9 = 7; + return -1; + } else if((((a6==1)&&((((a21==10)&&((!(a0==1)&&(!(a8==1)&&(((a17==2)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&!(a8==1)))&&(a2==1))))&&!(a4==1)))&&(a19==5))&&(a9==11)))&&((((a12==1)&&(a1==14))&&(a16==9))&&!(a20==1)))){ + a1 = 12; + a19 = 1; + a14 = 1; + a5 = 6; + a20 = 1; + a29 = 0; + a9 = 10; + a16 = 7; + a10 = 0; + return -1; + } else if(((((((a8==1)||(a6==1))&&(a16==9))&&(a13==1))&&(a1==14))&&((a17==2)&&(!(a20==1)&&((((((a6==1)&&(!(a8==1)&&((((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&(input==5))))&&(a21==11))&&(a28==1))&&(a23==1))&&(a19==2)))))){ + a20 = 1; + a21 = 10; + a16 = 7; + a27 = 1; + a19 = 1; + a5 = 6; + a29 = 1; + a9 = 9; + a1 = 13; + return -1; + } else if((((a5==4)&&((!(a23==1)&&((a20==1)&&(a2==1)))&&(a21==11)))&&((((a9==11)&&((a17==2)&&(!(a28==1)&&(!(a6==1)&&((!(a2==1)&&((a8==1)&&((a19==4)&&(input==6))))&&!(a12==1))))))&&(a16==7))&&(a1==12)))){ + a9 = 7; + a7 = 1; + a25 = 1; + a21 = 10; + a5 = 5; + a19 = 1; + a1 = 14; + a26 = 1; + return -1; + } else if((((((!(a7==1)&&(((((a5==5)||(a5==6))&&(input==6))&&!(a8==1))&&(a1==14)))&&(a23==1))&&(a17==2))&&(a16==10))&&(((a28==1)&&((((((a28==1)&&(a21==12))&&(a20==1))||(a7==1))||(a7==1))&&(a9==11)))&&(a19==1)))){ + a16 = 7; + a19 = 2; + a1 = 13; + a11 = 1; + a3 = 1; + a21 = 10; + a5 = 5; + a23 = 1; + a9 = 9; + return 23; + } else if((((a9==11)&&((!(a18==1)&&((a4==1)||(a28==1)))&&(a19==2)))&&((a17==2)&&((a20==1)&&((((a13==1)&&(((a5==4)&&((((a16==8)&&(input==4))&&(a2==1))&&(a1==14)))&&!(a8==1)))&&(a21==11))&&!(a14==1)))))){ + a13 = 1; + a4 = 0; + a16 = 7; + a1 = 12; + a19 = 1; + a21 = 10; + a9 = 7; + a2 = 1; + return -1; + } else if((((((!(a7==1)&&(!(a26==1)&&((((input==3)&&((a5==4)||(a5==5)))&&(a17==2))&&(a21==10))))&&!(a20==1))&&(a16==11))&&!(a24==1))&&(((a9==7)&&(!(a7==1)&&(!(a7==1)&&((a1==12)&&((a28==1)&&!(a8==1))))))&&(a19==2)))){ + a9 = 11; + a16 = 9; + a21 = 12; + a24 = 1; + a19 = 1; + a1 = 14; + a27 = 1; + a5 = 5; + a18 = 1; + return -1; + } else if((((a19==1)&&((a1==12)&&((((!(a4==1)&&((a5==4)&&((a23==1)&&((a21==11)&&(input==3)))))&&(a9==7))&&(a23==1))&&!(a7==1))))&&((a16==9)&&((a17==2)&&((a20==1)&&(((a7==1)||(a13==1))&&!(a8==1))))))){ + a8 = 0; + a21 = 10; + a11 = 1; + a16 = 7; + a3 = 1; + return -1; + } else if(((!(a20==1)&&((a16==9)&&(((a23==1)&&(((a19==4)&&(!(a26==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5))))))&&(a17==2)))&&!(a24==1))))&&(((a9==9)&&((!(a8==1)&&((!(a18==1)&&(a2==1))&&(a11==1)))&&(a21==11)))&&(a1==12)))){ + if((a23==1)){ + a9 = 10; + a19 = 1; + a10 = 0; + a11 = 0; + a1 = 13; + a20 = 1; + a18 = 1; + a21 = 10; + a5 = 5; + a16 = 7; + }else{ + a21 = 12; + a25 = 1; + a0 = 1; + a28 = 0; + a20 = 1; + a19 = 5; + a1 = 13; + a9 = 10; + a5 = 5; + a16 = 11; + } + return -1; + } else if(((((a28==1)&&((a1==13)&&((input==1)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10))))))&&!(a20==1))&&((((a26==1)||((a4==1)||((a16==7)&&((((a21==10)&&(!(a11==1)||(a3==1)))&&(a17==2))&&(a19==3)))))||(a7==1))&&!(a8==1)))){ + a24 = 0; + a4 = 0; + a5 = 5; + a9 = 10; + a8 = 0; + a1 = 14; + return 21; + } else if((((!(a6==1)||(((a16==7)&&(((a5==6)&&(a2==1))&&(a19==4)))&&(a9==8)))&&!(a18==1))&&(!(a14==1)&&(((((a20==1)&&((!(a7==1)&&((a17==2)&&(input==4)))&&(a1==12)))&&(a21==11))&&(a23==1))&&!(a14==1))))){ + a9 = 7; + a27 = 0; + a5 = 4; + a28 = 1; + a11 = 1; + a21 = 10; + a19 = 1; + return -1; + } else if(((((a27==1)||(((((a16==11)&&(a28==1))&&(a12==1))&&(a12==1))&&(a12==1)))&&(a21==10))&&(((((a9==11)&&(!(a0==1)&&((a20==1)&&((a17==2)&&(((a5==4)||(a5==5))&&(input==6))))))&&(a19==4))&&(a1==12))&&(a2==1)))){ + a6 = 1; + a9 = 7; + a5 = 4; + a16 = 7; + a13 = 1; + a27 = 0; + a19 = 1; + return -1; + } else if(((((a17==2)&&(((a11==1)||!(a28==1))&&!(a18==1)))&&(a21==11))&&(((a12==1)&&(((a5==6)&&((a2==1)&&((a23==1)&&(((a19==2)&&((a16==10)&&((input==6)&&(a9==10))))&&(a20==1)))))&&!(a4==1)))&&(a1==12)))){ + a0 = 0; + a19 = 1; + a7 = 0; + a5 = 4; + a9 = 7; + a21 = 10; + a16 = 7; + a23 = 1; + return -1; + } else if((((a9==9)&&(((a16==7)&&((a21==12)&&(((a23==1)&&(a2==1))||(a4==1))))&&(a17==2)))&&(((a20==1)&&((a3==1)&&((((((input==1)&&((a5==5)||(a5==6)))&&!(a26==1))&&!(a8==1))&&!(a0==1))&&(a19==3))))&&(a1==12)))){ + a9 = 7; + a21 = 10; + a5 = 4; + a18 = 0; + a19 = 1; + a12 = 1; + return -1; + } else if((((((a9==8)&&(((a17==2)&&((a28==1)&&(a21==12)))&&(a16==10)))&&!(a20==1))||(a24==1))&&(((((((a23==1)&&((a19==2)&&((input==5)&&((a5==6)||((a5==4)||(a5==5))))))&&(a11==1))&&(a1==13))&&!(a4==1))&&(a23==1))&&(a3==1)))){ + a5 = 4; + a20 = 1; + a19 = 1; + a16 = 7; + a9 = 7; + a28 = 0; + a1 = 14; + a21 = 10; + a26 = 1; + a3 = 0; + return 25; + } else if((((a1==13)&&((!(a13==1)||((a14==1)||(((!(a3==1)||(a28==1))||(a14==1))||!(a23==1))))&&(a21==11)))&&(((a16==8)&&(!(a4==1)&&((a17==2)&&((a19==3)&&(((input==5)&&((a5==5)||(a5==6)))&&(a9==8))))))&&(a20==1)))){ + a9 = 10; + a1 = 14; + a5 = 6; + a21 = 10; + a14 = 0; + a12 = 1; + a4 = 0; + a19 = 5; + a16 = 10; + return 25; + } else if((((((((a3==1)&&((input==6)&&(a1==13)))&&(a6==1))&&(a2==1))&&(a19==3))&&(a17==2))&&((a16==8)&&((((a7==1)||(((a21==11)&&((a2==1)&&((a20==1)&&(a3==1))))&&!(a8==1)))&&(a5==4))&&(a9==9))))){ + a1 = 12; + a24 = 0; + a19 = 1; + a16 = 7; + a6 = 1; + a9 = 7; + a21 = 10; + a18 = 0; + return -1; + } else if(((!(a13==1)||((a17==2)&&(((a19==3)&&((((a12==1)||!(a3==1))&&(a1==12))&&(a21==11)))&&(a23==1))))&&(((((a9==11)&&((a11==1)&&(((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&(a16==11))))&&(a20==1))&&!(a8==1))&&!(a27==1)))){ + a9 = 7; + a16 = 7; + a24 = 0; + a21 = 10; + a19 = 1; + a5 = 4; + a28 = 1; + a12 = 1; + return -1; + } else if((((a9==10)&&(((a21==11)&&((!(a14==1)&&(a12==1))&&(a19==2)))&&(a16==10)))&&((a1==12)&&(((a13==1)&&(!(a26==1)&&(!(a4==1)&&(((((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&(a23==1))&&(a3==1))&&(a17==2)))))&&!(a20==1))))){ + a16 = 7; + a25 = 0; + a21 = 10; + a9 = 8; + a14 = 1; + a1 = 13; + a24 = 1; + a5 = 6; + return -1; + } else if((((a7==1)||((a20==1)&&((((a11==1)&&(a3==1))||!(a12==1))&&(a28==1))))&&((a17==2)&&((a21==11)&&((a19==2)&&((!(a4==1)&&((a16==7)&&(((((a5==4)&&(a1==14))&&(a9==7))||(((a9==11)&&((a1==13)&&(a5==5)))||((a9==11)&&((a1==13)&&(a5==6)))))&&(input==1))))&&(a6==1))))))){ + if((a7==1)){ + a27 = 0; + a1 = 14; + a19 = 4; + a23 = 1; + a4 = 0; + a9 = 11; + a16 = 8; + a5 = 6; + a20 = 0; + }else{ + a13 = 1; + a18 = 0; + a5 = 5; + a19 = 3; + a26 = 0; + a21 = 10; + a1 = 14; + a9 = 10; + a16 = 8; + } + return 25; + } else if(((!(a27==1)&&(!(a26==1)&&((a6==1)&&((!(a20==1)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&(a9==8))&&!(a0==1)))&&(a16==7)))))&&(!(a2==1)||((a21==11)&&((a1==13)&&((((a19==1)&&(a11==1))&&!(a4==1))&&(a17==2))))))){ + a19 = 3; + a20 = 1; + a16 = 11; + a26 = 0; + a28 = 1; + a5 = 5; + return 25; + } else if(((((a16==7)&&((a19==3)&&(((a5==4)&&(input==4))&&!(a24==1))))&&(a3==1))&&((a9==7)&&(((a17==2)&&(((((a1==14)&&(((a11==1)&&(a20==1))||!(a13==1)))&&(a3==1))||(a18==1))||!(a2==1)))&&(a21==11))))){ + a13 = 1; + a14 = 0; + a1 = 12; + a19 = 1; + a21 = 10; + a23 = 1; + return -1; + } else if(((((a23==1)&&(((a16==10)&&((((!(a4==1)&&((input==6)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5)))))&&(a21==11))&&!(a27==1))&&!(a18==1)))&&(a23==1)))&&(a17==2))&&(!(a20==1)&&((((a1==13)&&(a6==1))&&!(a4==1))&&(a19==2))))){ + if((a24==1)){ + a28 = 0; + a5 = 4; + a11 = 0; + a20 = 1; + a21 = 10; + a9 = 11; + a12 = 0; + a16 = 7; + }else{ + a22 = 0; + a16 = 7; + a5 = 6; + a9 = 11; + a25 = 0; + a15 = 0; + a20 = 1; + a19 = 1; + a21 = 10; + } + return -1; + } else if((((((((((((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==1))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==2)))&&(input==3))&&(a21==12))&&(a6==1))&&(a11==1))&&!(a18==1))&&!(a8==1))&&(a12==1))&&(a17==2))&&((!(a20==1)&&((a6==1)&&(a13==1)))&&(a16==7)))){ + a16 = 9; + a21 = 11; + a9 = 11; + a5 = 4; + a20 = 1; + a19 = 4; + a11 = 1; + a23 = 1; + a1 = 14; + return 26; + } else if(((((a0==1)||((((a21==10)&&((!(a23==1)||(a6==1))||(a7==1)))||(a14==1))&&(a19==2)))&&(a1==12))&&(((a13==1)&&((((a16==8)&&((((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(input==3)))&&(a17==2))&&!(a26==1)))&&(a20==1)))){ + a19 = 1; + a18 = 0; + a24 = 0; + a5 = 4; + a9 = 7; + a16 = 7; + return -1; + } else if(((((((a20==1)&&(a28==1))||!(a23==1))&&(a17==2))&&(a19==2))&&((a13==1)&&((((a13==1)&&(((a21==11)&&(((input==6)&&((((a9==11)&&((a1==13)&&(a5==6)))||((a9==7)&&((a1==14)&&(a5==4))))||((a9==7)&&((a5==5)&&(a1==14)))))&&(a3==1)))&&(a2==1)))&&(a16==11))&&!(a18==1))))){ + a1 = 12; + a2 = 1; + a18 = 0; + a21 = 10; + a19 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + a23 = 1; + return -1; + } else if(((((a21==12)&&((a1==14)&&(!(a7==1)&&((((a7==1)||(a11==1))||(a4==1))&&!(a24==1)))))&&!(a20==1))&&((a19==1)&&(((a16==8)&&(((a12==1)&&((((a5==4)||(a5==5))&&(input==4))&&(a11==1)))&&(a9==11)))&&(a17==2))))){ + if((a12==1)){ + a25 = 1; + a20 = 1; + a16 = 7; + a21 = 10; + a27 = 1; + a5 = 4; + a1 = 13; + a9 = 8; + a26 = 1; + }else{ + a10 = 1; + a21 = 10; + a7 = 1; + a16 = 7; + a9 = 10; + a20 = 1; + a1 = 13; + a5 = 5; + } + return -1; + } else if((((a6==1)&&(((a8==1)||((a19==4)&&(!(a23==1)||(a2==1))))&&(a9==9)))&&((a1==13)&&((((a28==1)&&((((!(a27==1)&&(((a5==5)||(a5==6))&&(input==3)))&&(a16==11))&&(a20==1))&&(a17==2)))&&(a28==1))&&(a21==10))))){ + a5 = 4; + a18 = 0; + a26 = 0; + a9 = 7; + a1 = 12; + a19 = 1; + a16 = 7; + a0 = 0; + return -1; + } else if((((a19==3)&&((((!(a26==1)&&(((a20==1)&&(input==4))&&!(a24==1)))&&(a6==1))&&(a9==7))&&(a11==1)))&&((a16==10)&&((((a5==4)&&((a4==1)||((a21==12)&&((a1==13)&&(a6==1)))))||(a26==1))&&(a17==2))))){ + a3 = 1; + a21 = 10; + a16 = 7; + a19 = 1; + a18 = 0; + a1 = 12; + a14 = 0; + return -1; + } else if(((!(a6==1)||((!(a23==1)||((a21==12)&&(((a2==1)||!(a28==1))&&(a19==2))))&&!(a24==1)))&&(!(a27==1)&&((a9==8)&&(((a5==4)&&(((((input==6)&&(a1==13))&&(a17==2))&&(a16==9))&&!(a0==1)))&&(a20==1)))))){ + a19 = 3; + a2 = 1; + a12 = 1; + a1 = 12; + a5 = 5; + a9 = 9; + a11 = 1; + return 21; + } else if(((!(a24==1)&&((a20==1)&&(((a9==7)&&((a1==14)&&((a17==2)&&((a19==2)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6)))))))&&(a2==1))))&&(((a27==1)||(((((a28==1)&&(a21==10))||(a0==1))&&(a16==9))&&!(a4==1)))||!(a13==1)))){ + a5 = 4; + a0 = 0; + a14 = 0; + a19 = 1; + a16 = 7; + a11 = 1; + a1 = 12; + return -1; + } else if(((((a1==13)&&(((a3==1)&&(((input==1)&&((a5==5)||(a5==6)))&&(a16==10)))&&!(a7==1)))&&(a20==1))&&((a21==10)&&((((a8==1)||(!(a7==1)&&(((a9==8)&&((a23==1)||!(a2==1)))&&(a17==2))))&&(a23==1))&&(a19==5))))){ + a16 = 7; + a9 = 7; + a19 = 1; + a5 = 4; + a0 = 0; + a3 = 1; + a1 = 12; + a13 = 1; + return -1; + } else if(((!(a18==1)&&((a19==1)&&((((a16==7)&&(((a21==12)&&(input==1))&&(a9==9)))&&(a6==1))&&(a1==14))))&&(((a20==1)&&(((a17==2)&&((a5==4)&&((!(a13==1)||(a6==1))||(a7==1))))||!(a11==1)))||(a24==1)))){ + a2 = 1; + a21 = 10; + a7 = 0; + a9 = 7; + a1 = 12; + return -1; + } else if((((!(a20==1)&&(((((a5==6)&&(a28==1))&&(a23==1))&&(a21==11))&&(a9==7)))||!(a11==1))&&(((((!(a27==1)&&((a1==13)&&((a16==8)&&((input==1)&&(a19==3)))))&&(a12==1))&&(a3==1))&&(a17==2))&&!(a8==1)))){ + a16 = 10; + a1 = 12; + a0 = 0; + a13 = 1; + a19 = 2; + a18 = 0; + a20 = 1; + a9 = 8; + return -1; + } else if((((a9==10)&&((a17==2)&&((((a2==1)&&((a19==1)&&((input==6)&&(a16==7))))&&!(a26==1))&&!(a14==1))))&&(((!(a27==1)&&((((a7==1)||((a11==1)&&(a5==5)))&&!(a20==1))&&(a21==10)))||(a0==1))&&(a1==14)))){ + a16 = 10; + a13 = 1; + a9 = 8; + a5 = 6; + a12 = 1; + a20 = 1; + a6 = 1; + a19 = 2; + return 21; + } else if((((!(a24==1)&&(!(a8==1)&&(((!(a20==1)&&(!(a14==1)&&((a11==1)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a19==4))&&(a12==1))&&(a21==12)))))&&(a9==8))&&(a1==12))))&&!(a26==1))&&((a17==2)&&((a16==7)&&(a6==1))))){ + a20 = 1; + a13 = 1; + a5 = 5; + a9 = 9; + a16 = 8; + a12 = 1; + a19 = 3; + a21 = 10; + a1 = 14; + a0 = 0; + return 23; + } else if(((((!(a8==1)&&(((a19==5)&&((((input==6)&&(a9==11))&&(a17==2))&&(a2==1)))&&(a21==10)))&&(a6==1))&&(a5==4))&&(((a1==14)&&(!(a20==1)&&((!(a27==1)&&((a24==1)||(a3==1)))||(a27==1))))&&(a16==8)))){ + a1 = 13; + a24 = 0; + a6 = 1; + a16 = 7; + a19 = 2; + a9 = 9; + a20 = 1; + a5 = 5; + a3 = 1; + return -1; + } else if((((!(a20==1)&&(!(a27==1)&&((((a3==1)&&((((a5==4)||(a5==5))&&(input==3))&&(a21==11)))&&(a23==1))&&(a16==8))))&&(a1==13))&&(((((((a9==7)&&(a2==1))||(a4==1))||(a27==1))||!(a3==1))&&(a17==2))&&(a19==1)))){ + a4 = 0; + a1 = 12; + a21 = 10; + a20 = 1; + a28 = 1; + a5 = 4; + a27 = 0; + a16 = 7; + return -1; + } else if(((((a13==1)&&((a20==1)&&(((((input==1)&&((a5==4)||(a5==5)))&&(a23==1))&&!(a26==1))&&(a21==11))))&&(a17==2))&&((((a16==7)&&((a9==10)&&(((a4==1)||(!(a6==1)||(a12==1)))&&(a12==1))))&&(a1==14))&&(a19==3)))){ + a1 = 13; + a5 = 6; + a19 = 2; + a6 = 1; + a12 = 1; + a23 = 1; + a9 = 9; + a16 = 8; + return 21; + } else if(((((a1==14)&&(((a23==1)&&(a21==10))&&(a17==2)))&&(a9==10))&&((a16==7)&&((a13==1)&&((a28==1)&&((a2==1)&&((a6==1)&&((a19==2)&&(!(a24==1)&&(((a3==1)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))&&(a20==1))))))))))){ + a1 = 13; + a19 = 4; + a0 = 0; + a9 = 11; + a14 = 0; + a5 = 6; + a13 = 1; + return 26; + } else if(((((a1==14)&&((a21==10)&&(((a16==7)&&((((a23==1)||!(a6==1))&&(a13==1))||(a18==1)))&&(a28==1))))&&!(a20==1))&&((a19==1)&&(((a23==1)&&(!(a18==1)&&((input==4)&&((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8))))))&&(a17==2))))){ + a5 = 4; + a9 = 7; + a0 = 0; + a1 = 12; + a12 = 1; + a20 = 1; + a14 = 0; + return -1; + } else if(((((a19==3)&&((a20==1)&&((!(a4==1)&&((a17==2)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3))))&&(a1==13))))&&!(a7==1))&&((a21==11)&&((((a9==7)&&(!(a7==1)&&(!(a6==1)||((a12==1)||(a4==1)))))||(a14==1))&&(a16==11))))){ + a14 = 0; + a1 = 12; + a27 = 0; + a19 = 1; + a5 = 4; + a0 = 0; + a21 = 10; + a16 = 7; + return -1; + } else if(((((a8==1)||((a9==9)&&(((a26==1)||((a23==1)&&!(a0==1)))&&!(a4==1))))&&(a1==12))&&((a16==10)&&(((a3==1)&&(((a21==11)&&((a19==3)&&((a20==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5)))))&&(a13==1)))&&(a17==2))))){ + a28 = 1; + a21 = 10; + a12 = 1; + a16 = 7; + a5 = 4; + a19 = 1; + a4 = 0; + a9 = 7; + return -1; + } else if((((a16==10)&&((a19==5)&&((((a1==12)&&((((a2==1)||!(a2==1))||(a24==1))&&!(a20==1)))&&(a17==2))&&(a21==10))))&&(((!(a24==1)&&((a12==1)&&((a6==1)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))))&&(a3==1))&&(a9==7)))){ + if((a14==1)){ + a16 = 7; + a3 = 0; + a20 = 1; + a5 = 6; + a1 = 13; + a26 = 1; + a9 = 10; + a24 = 1; + a19 = 1; + }else{ + a25 = 1; + a29 = 0; + a14 = 1; + a19 = 1; + a9 = 8; + a20 = 1; + a5 = 4; + a16 = 7; + a1 = 13; + } + return -1; + } else if(((!(a8==1)&&((a21==12)&&(((((a5==5)&&((input==3)&&(a20==1)))&&(a9==7))&&!(a18==1))&&(a17==2))))&&((a1==13)&&(!(a6==1)||((a16==8)&&((a19==3)&&(!(a7==1)&&((!(a23==1)||(a6==1))&&!(a8==1))))))))){ + a1 = 12; + a16 = 7; + a19 = 1; + a0 = 0; + a26 = 0; + a5 = 4; + a13 = 1; + a21 = 10; + return -1; + } else if((((a13==1)&&((((a1==14)&&(!(a18==1)&&((a9==7)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a13==1)))))&&(a19==2))&&!(a7==1)))&&((((a17==2)&&((!(a20==1)&&((a27==1)||(a23==1)))&&(a16==8)))||(a0==1))&&(a21==10)))){ + a11 = 1; + a16 = 7; + a5 = 4; + a2 = 1; + a1 = 12; + a19 = 1; + a0 = 0; + a20 = 1; + return -1; + } else if((((a20==1)&&((a5==4)&&((a16==11)&&(!(a27==1)&&(((!(a4==1)&&((input==1)&&(a1==13)))&&(a17==2))&&(a3==1))))))&&((((a0==1)||((!(a24==1)&&((a28==1)&&(a21==12)))&&!(a27==1)))&&(a19==3))&&(a9==8)))){ + a9 = 11; + a23 = 1; + a19 = 4; + a1 = 14; + a5 = 6; + a13 = 1; + a24 = 0; + return 25; + } else if((((a16==10)&&(((a9==8)&&(!(a3==1)||(((a28==1)&&(a6==1))||!(a11==1))))&&(a21==10)))&&(!(a20==1)&&((((a17==2)&&(!(a27==1)&&(((a1==12)&&((input==1)&&((a5==4)||(a5==5))))&&(a13==1))))&&!(a18==1))&&(a19==2))))){ + a20 = 1; + a15 = 1; + a19 = 1; + a1 = 13; + a16 = 7; + a6 = 0; + a29 = 0; + a5 = 5; + a9 = 10; + return 21; + } else if(((!(a3==1)&&(((((a16==9)&&(((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&!(a28==1)))&&!(a13==1))&&!(a2==1))&&(a1==12)))&&((a9==7)&&((a19==2)&&(((a20==1)&&((((a4==1)&&(a11==1))&&(a21==11))&&!(a6==1)))&&(a17==2)))))){ + a5 = 5; + a19 = 5; + a8 = 1; + a9 = 8; + a24 = 1; + a0 = 1; + a16 = 11; + return 26; + } else if((((((((a21==12)&&(input==1))&&(a13==1))&&(a11==1))&&!(a20==1))&&(a19==2))&&(((a1==14)&&((a16==8)&&(!(a14==1)&&(((a17==2)&&(((a5==6)&&((a2==1)||(a14==1)))&&(a11==1)))||!(a2==1)))))&&(a9==7)))){ + a16 = 7; + a7 = 1; + a9 = 9; + a20 = 1; + a1 = 12; + a8 = 1; + a21 = 10; + a4 = 1; + return 23; + } else if((((a3==1)&&((((a19==2)&&((a21==10)&&((((a17==2)&&((a9==11)&&(!(a13==1)||(a11==1))))||(a27==1))&&(a13==1))))&&(a2==1))&&!(a20==1)))&&((a1==14)&&((a16==10)&&((a6==1)&&(((a5==4)||(a5==5))&&(input==4))))))){ + a23 = 0; + a11 = 0; + a9 = 10; + a10 = 0; + a16 = 9; + a21 = 12; + a5 = 4; + return -1; + } else if(((((((!(a14==1)&&((a21==12)&&((input==6)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))))&&(a1==13))&&!(a26==1))&&!(a14==1))&&(a11==1))&&(((((a20==1)&&((a17==2)&&((a19==1)&&(a11==1))))&&(a16==11))&&(a12==1))||(a24==1)))){ + a21 = 10; + a16 = 7; + a5 = 4; + a3 = 1; + a28 = 1; + a27 = 0; + a9 = 7; + a1 = 12; + return -1; + } else if((((((a20==1)&&((a2==1)&&(a19==5)))||!(a2==1))&&(a13==1))&&(((!(a26==1)&&((a9==11)&&((a16==7)&&((a17==2)&&((((a28==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))&&(a1==14))&&(a21==12))))))&&(a3==1))&&!(a24==1)))){ + a8 = 0; + a16 = 9; + a19 = 1; + a7 = 0; + a5 = 5; + a27 = 0; + a1 = 13; + return 21; + } else if(((((a17==2)&&((a6==1)&&((a1==12)&&((input==3)&&!(a20==1)))))&&(a5==6))&&((a16==10)&&((a21==10)&&((a9==9)&&((a19==3)&&((a23==1)&&((((a28==1)&&(!(a13==1)||(a12==1)))||(a8==1))&&!(a0==1))))))))){ + a5 = 5; + a1 = 13; + a19 = 1; + a16 = 7; + a11 = 0; + a20 = 1; + a6 = 0; + a4 = 1; + a9 = 11; + return 26; + } else if((((a16==11)&&((((((((input==4)&&(a20==1))&&(a5==5))&&(a1==12))&&!(a7==1))&&(a17==2))&&(a11==1))&&(a28==1)))&&((a19==4)&&((a7==1)||(((((a23==1)&&(a13==1))&&(a9==8))&&(a21==12))&&!(a14==1)))))){ + a19 = 1; + a11 = 1; + a9 = 7; + a5 = 4; + a16 = 7; + a3 = 1; + a21 = 10; + a18 = 0; + return -1; + } else if((((a4==1)||((((a28==1)&&((((a13==1)&&(a1==14))&&(a21==10))||!(a28==1)))&&(a17==2))&&(a23==1)))&&((a9==8)&&((!(a20==1)&&(!(a26==1)&&((a19==2)&&(((input==3)&&((a5==5)||(a5==6)))&&!(a7==1)))))&&(a16==7))))){ + a20 = 1; + a5 = 4; + a13 = 1; + a19 = 1; + a9 = 7; + a26 = 0; + a8 = 0; + a1 = 12; + return -1; + } else if((((((a16==8)&&(!(a7==1)&&((a2==1)&&(((input==1)&&((a5==4)||(a5==5)))&&!(a24==1)))))&&(a9==10))&&(a20==1))&&((((a1==13)&&(((!(a24==1)&&((a13==1)&&!(a7==1)))&&(a19==5))||!(a2==1)))&&(a17==2))&&(a21==12)))){ + a4 = 0; + a19 = 1; + a1 = 12; + a2 = 1; + a12 = 1; + a5 = 5; + return -1; + } else if(((((a17==2)&&(((a6==1)&&(((a1==14)&&(input==6))&&(a23==1)))&&!(a7==1)))&&(a21==12))&&((a19==2)&&((((((a0==1)||(((a11==1)||!(a11==1))&&(a5==6)))&&!(a20==1))&&(a16==7))&&(a3==1))&&(a9==10))))){ + a28 = 1; + a5 = 4; + a0 = 0; + a9 = 7; + a19 = 1; + a12 = 1; + a20 = 1; + a1 = 12; + a21 = 10; + return -1; + } else if(((((a20==1)&&(((a9==11)&&((a17==2)&&((a13==1)||!(a12==1))))&&(a1==14)))&&(a16==8))&&((a19==4)&&((((((a21==12)&&((((a5==5)||(a5==6))&&(input==4))&&(a6==1)))&&!(a14==1))&&(a11==1))&&!(a26==1))&&!(a14==1))))){ + a16 = 7; + a5 = 4; + a28 = 1; + a4 = 0; + a19 = 1; + a21 = 10; + a1 = 12; + a9 = 7; + a13 = 1; + return -1; + } else if(((((a5==5)&&((a21==12)&&((a6==1)&&((a9==11)&&(!(a20==1)&&(!(a14==1)&&((input==3)&&(a16==9))))))))&&(a19==4))&&(!(a12==1)||((a1==13)&&(((((a24==1)||(a6==1))&&!(a8==1))&&(a17==2))||!(a28==1)))))){ + a29 = 0; + a9 = 9; + a21 = 11; + a15 = 0; + a20 = 1; + a19 = 2; + a18 = 1; + a16 = 11; + return 23; + } else if((((!(a0==1)&&(!(a7==1)&&((a17==2)&&(((a16==7)&&((input==4)&&(a19==3)))&&!(a26==1)))))&&!(a7==1))&&((a7==1)||((a5==4)&&(((a21==10)&&((((a23==1)&&(a2==1))&&!(a20==1))&&(a9==7)))&&(a1==13)))))){ + a19 = 1; + a26 = 0; + a12 = 1; + a13 = 1; + a20 = 1; + a1 = 12; + return -1; + } else if((((!(a12==1)||((a21==10)&&(((a6==1)&&((a11==1)&&!(a24==1)))&&(a16==11))))||!(a2==1))&&(!(a20==1)&&((a1==13)&&(((a17==2)&&((((a9==9)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))&&!(a18==1))&&(a19==1)))&&(a12==1)))))){ + if((a28==1)){ + a14 = 1; + a23 = 0; + a16 = 7; + a20 = 1; + a5 = 6; + a21 = 11; + a7 = 1; + a19 = 2; + a1 = 14; + }else{ + a19 = 2; + a16 = 7; + a9 = 8; + a1 = 12; + a12 = 0; + a15 = 1; + a29 = 0; + a20 = 1; + a5 = 6; + } + return -1; + } else if((((a20==1)&&((a9==9)&&((a16==8)&&(((a3==1)||!(a12==1))||(a7==1)))))&&((((a11==1)&&((a1==12)&&((a21==12)&&((((a17==2)&&((a5==4)&&(input==4)))&&(a13==1))&&!(a8==1)))))&&(a13==1))&&(a19==5)))){ + a21 = 10; + a0 = 0; + a8 = 0; + a9 = 7; + a7 = 0; + a19 = 1; + a16 = 7; + return -1; + } else if(((((!(a4==1)&&(!(a27==1)&&((a2==1)&&((a1==14)&&(((a16==9)&&((a21==10)&&(((a5==4)||(a5==5))&&(input==4))))&&!(a20==1))))))&&!(a4==1))&&(a17==2))&&(((((a12==1)&&(a9==8))&&(a28==1))&&!(a4==1))&&(a19==1)))){ + if((a16==8)){ + a5 = 5; + a0 = 1; + a1 = 12; + a16 = 7; + a9 = 11; + a2 = 0; + a20 = 1; + }else{ + a3 = 0; + a5 = 6; + a16 = 8; + a21 = 11; + a13 = 0; + a1 = 13; + a19 = 5; + a7 = 1; + } + return -1; + } else if(((((a3==1)&&((a16==9)&&((((a2==1)&&(a28==1))||!(a3==1))&&(a12==1))))&&(a19==1))&&((a1==12)&&(!(a4==1)&&(!(a20==1)&&(((!(a14==1)&&((((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6))))&&(input==4)))&&(a17==2))&&(a21==10))))))){ + a21 = 12; + a22 = 1; + a9 = 10; + a5 = 5; + a18 = 1; + a16 = 10; + a3 = 0; + a20 = 1; + a19 = 4; + a1 = 13; + return -1; + } else if((((((((a11==1)&&((((a9==11)&&((a1==12)&&(a5==6)))||(((a1==13)&&(a5==4))&&(a9==7)))&&(input==4)))&&!(a20==1))&&(a17==2))&&(a28==1))&&!(a4==1))&&(((a28==1)&&(!(a12==1)||((a19==2)&&(((a16==7)&&(a6==1))&&(a21==12)))))&&(a13==1)))){ + a2 = 1; + a9 = 7; + a19 = 1; + a1 = 12; + a5 = 4; + a11 = 1; + a20 = 1; + a21 = 10; + a23 = 1; + return -1; + } else if((((((((a17==2)&&((a23==1)&&(a20==1)))||(a8==1))&&(a16==10))&&(a23==1))||!(a23==1))&&((a21==11)&&(((a19==3)&&(((!(a26==1)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==3)))&&(a11==1))&&(a28==1)))&&(a1==13))))){ + a9 = 7; + a19 = 1; + a21 = 10; + a1 = 12; + a2 = 1; + a5 = 4; + a3 = 1; + a14 = 0; + a16 = 7; + return -1; + } else if(((((!(a7==1)&&((((a17==2)&&((a21==10)&&(((a1==14)&&((input==5)&&!(a20==1)))&&(a19==4))))&&(a16==10))&&(a9==10)))&&(a12==1))&&(a3==1))&&(!(a27==1)&&(!(a6==1)||(((a12==1)||(a26==1))&&(a5==4)))))){ + a19 = 2; + a10 = 1; + a5 = 5; + a9 = 8; + a26 = 1; + a2 = 0; + return 21; + } else if((((((((a11==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3)))&&(a17==2))&&(a9==11))&&!(a0==1))&&(a19==3))&&((a1==14)&&((a21==10)&&((a23==1)&&((!(a28==1)||((((a2==1)&&!(a14==1))&&!(a4==1))&&(a16==9)))&&(a20==1))))))){ + a19 = 1; + a4 = 0; + a7 = 0; + a26 = 0; + a9 = 7; + a16 = 7; + a1 = 12; + a5 = 4; + return -1; + } else if((((a13==1)&&(((((a20==1)&&((((input==6)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5))))&&(a1==14))&&(a16==7)))&&(a17==2))&&!(a24==1))&&(a2==1)))&&(((((a19==5)&&(!(a3==1)||(a3==1)))&&(a21==11))&&(a3==1))&&(a12==1)))){ + a26 = 0; + a16 = 8; + a9 = 7; + a1 = 13; + a21 = 12; + a23 = 1; + a5 = 4; + a19 = 3; + return 22; + } else if(((((((a14==1)||(a11==1))&&(a17==2))||!(a6==1))&&!(a4==1))&&((a13==1)&&((((((a21==11)&&((((((a5==5)||(a5==6))&&(input==5))&&!(a20==1))&&(a1==12))&&!(a18==1)))&&(a9==7))&&(a13==1))&&(a19==3))&&(a16==9))))){ + a11 = 0; + a9 = 8; + a19 = 2; + a20 = 1; + a27 = 1; + a14 = 1; + a5 = 6; + return -1; + } else if((((a9==9)&&(((a28==1)&&((a20==1)&&((a16==8)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))))&&!(a24==1)))&&((a21==12)&&((a19==5)&&(!(a27==1)&&(((a1==14)&&((a6==1)&&(!(a13==1)||((a17==2)&&(a11==1)))))||!(a3==1))))))){ + a0 = 0; + a7 = 0; + a19 = 4; + a4 = 0; + a5 = 6; + return -1; + } else if((((a24==1)||(((((a20==1)&&(((a13==1)&&(a19==1))&&(a17==2)))&&(a21==12))&&(a2==1))||!(a13==1)))&&((a13==1)&&(!(a4==1)&&(((((((a9==11)&&((a5==5)&&(a1==13)))||(((a1==13)&&(a5==6))&&(a9==11)))||((a9==7)&&((a1==14)&&(a5==4))))&&(input==1))&&(a16==11))&&!(a7==1)))))){ + a16 = 7; + a1 = 12; + a5 = 4; + a26 = 0; + a9 = 7; + a24 = 0; + a21 = 10; + a13 = 1; + return -1; + } else if((((!(a12==1)||((((a21==10)&&((!(a7==1)&&((a2==1)&&(a5==5)))||!(a28==1)))&&(a1==13))&&(a11==1)))||(a7==1))&&(((a19==3)&&((a20==1)&&((a11==1)&&((a16==7)&&((input==6)&&(a17==2))))))&&(a9==11)))){ + a21 = 11; + a14 = 0; + a5 = 4; + a19 = 2; + a9 = 9; + a1 = 12; + a3 = 1; + a13 = 1; + return 25; + } else if((((a1==12)&&(((a16==9)&&((a6==1)&&(((((input==4)&&(a5==4))&&!(a27==1))&&(a17==2))&&(a9==8))))&&!(a0==1)))&&(!(a20==1)&&((a19==3)&&(!(a12==1)||(!(a12==1)||(((a8==1)||(a28==1))&&(a21==11)))))))){ + a21 = 12; + a16 = 8; + a29 = 0; + a9 = 11; + a20 = 1; + a19 = 5; + a5 = 5; + a6 = 0; + return 21; + } else if(((((((a16==11)&&((a17==2)&&(!(a3==1)&&(((input==4)&&((a5==5)||(a5==6)))&&!(a12==1)))))&&(a20==1))&&(a21==10))&&(a1==13))&&((((a19==2)&&((((a23==1)&&(a8==1))&&!(a23==1))&&!(a12==1)))&&!(a2==1))&&(a9==7)))){ + a21 = 11; + a1 = 14; + a3 = 0; + a2 = 0; + a16 = 10; + a5 = 5; + a25 = 0; + a19 = 3; + return 25; + } else if((((a19==4)&&((a16==8)&&((a1==13)&&(!(a24==1)&&((a21==11)&&(((a17==2)&&(a3==1))&&!(a14==1)))))))&&((!(a7==1)&&(((a9==8)&&((a11==1)&&(!(a26==1)&&(((a5==4)||(a5==5))&&(input==3)))))&&!(a27==1)))&&(a20==1)))){ + a21 = 10; + a5 = 4; + a14 = 0; + a2 = 1; + a9 = 7; + a1 = 12; + a16 = 7; + a19 = 1; + a23 = 1; + return -1; + } else if(((((a21==11)&&(a23==1))&&(a5==6))&&((!(a8==1)&&((a9==9)&&((a12==1)&&((a28==1)&&((((a17==2)&&(((a13==1)&&(!(a14==1)&&((input==4)&&(a1==13))))&&(a19==3)))&&(a20==1))&&(a16==8))))))&&!(a18==1)))){ + a16 = 7; + a9 = 7; + a11 = 1; + a8 = 0; + a5 = 4; + a1 = 12; + a19 = 1; + a21 = 10; + return -1; + } else if((((a20==1)&&((a16==10)&&((((a19==1)&&((a26==1)||(a28==1)))&&(a23==1))&&(a17==2))))&&(!(a24==1)&&(((a1==12)&&(((!(a4==1)&&(((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5)))&&(input==4)))&&(a21==11))&&(a11==1)))&&(a23==1))))){ + a21 = 10; + a5 = 4; + a9 = 7; + a16 = 7; + a7 = 0; + a23 = 1; + a0 = 0; + return -1; + } else if(((((((a20==1)&&(((a16==10)&&(((((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))&&(input==1))&&(a19==3)))&&(a1==14)))&&(a24==1))&&(a4==1))&&(a8==1))&&(((a17==2)&&(((a8==1)&&((a21==12)&&(a2==1)))&&!(a3==1)))&&(a18==1)))){ + a10 = 1; + a16 = 7; + a5 = 5; + a12 = 0; + a1 = 13; + a19 = 1; + a14 = 1; + a21 = 10; + a9 = 10; + return 21; + } return calculate_output9(input); + } + + int calculate_output9(int input) { + if((((a5==4)&&((a16==7)&&((((input==6)&&(a9==9))&&(a17==2))&&!(a27==1))))&&((a20==1)&&(((a21==11)&&(((((((a3==1)||(a7==1))&&(a6==1))&&(a19==4))&&!(a27==1))&&(a28==1))||(a8==1)))&&(a1==12))))){ + a16 = 8; + a18 = 0; + a5 = 6; + a19 = 3; + a2 = 1; + a4 = 0; + return 23; + } else if((((((a16==7)&&((((!(a27==1)&&(((a19==5)&&(((a21==11)&&(input==6))&&!(a8==1)))&&(a1==13)))&&!(a14==1))&&!(a24==1))&&(a20==1)))&&(a5==5))&&(a9==10))&&(((a17==2)&&(!(a2==1)||(a23==1)))&&(a6==1)))){ + a9 = 11; + a5 = 6; + a12 = 1; + a16 = 8; + a18 = 0; + a21 = 12; + a19 = 2; + a14 = 0; + return 26; + } else if((((!(a11==1)||(((a18==1)||(a6==1))||!(a12==1)))&&(a17==2))&&((a13==1)&&(!(a24==1)&&((a11==1)&&(!(a20==1)&&((a21==12)&&((a16==7)&&((((a19==5)&&((a9==7)&&((a5==4)&&(a1==12))))||(((a19==4)&&(((a1==14)&&(a5==5))&&(a9==11)))||((a19==4)&&(((a5==6)&&(a1==14))&&(a9==11)))))&&(input==6)))))))))){ + a21 = 10; + a1 = 12; + a11 = 1; + a9 = 7; + a23 = 1; + a20 = 1; + a19 = 1; + a5 = 4; + a6 = 1; + return -1; + } else if((((((a20==1)&&((((((input==3)&&(a9==11))&&!(a26==1))&&(a23==1))&&(a1==12))&&(a11==1)))&&(a17==2))&&(a21==11))&&(((((a5==4)&&(((a11==1)&&(a23==1))||!(a28==1)))||!(a2==1))&&(a19==4))&&(a16==7)))){ + a1 = 13; + a19 = 3; + a13 = 1; + a6 = 1; + a16 = 8; + a23 = 1; + return 22; + } else if((((((((a1==13)&&(!(a20==1)&&((!(a4==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5)))&&!(a14==1))))&&(a21==12))&&(a16==9))&&(a9==9))&&(a19==5))&&((a17==2)&&(!(a3==1)||((((a2==1)&&(a11==1))||!(a3==1))&&!(a0==1)))))){ + a23 = 0; + a24 = 1; + a5 = 6; + a20 = 1; + a18 = 1; + a21 = 10; + a16 = 7; + a19 = 1; + a1 = 14; + return -1; + } else if((((!(a3==1)||(!(a27==1)&&((a16==11)&&(!(a27==1)&&(((((a13==1)&&!(a20==1))&&(a28==1))&&(a1==13))&&(a5==6))))))&&(a19==4))&&((a12==1)&&(((a17==2)&&(((a9==9)&&(input==4))&&(a21==10)))&&!(a7==1))))){ + if((a23==1)){ + a13 = 0; + a19 = 1; + a27 = 1; + a20 = 1; + a3 = 0; + a9 = 11; + a16 = 7; + }else{ + a2 = 0; + a16 = 7; + a0 = 1; + a19 = 2; + a9 = 7; + a20 = 1; + a26 = 1; + a5 = 5; + a1 = 12; + } + return 23; + } else if((((a3==1)&&((a16==8)&&(!(a20==1)&&((a19==5)&&((((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(input==1))))))&&(!(a2==1)||(((a1==12)&&((((!(a7==1)&&((a6==1)&&!(a7==1)))&&(a21==10))&&!(a7==1))&&(a17==2)))||!(a2==1))))){ + a11 = 1; + a5 = 6; + a20 = 1; + a24 = 0; + a19 = 4; + a16 = 7; + a9 = 7; + a1 = 14; + a7 = 0; + return 22; + } else if((((!(a7==1)&&((((a9==8)&&((a19==1)&&(!(a7==1)&&((a1==12)&&(input==6)))))&&(a28==1))&&(a20==1)))&&!(a0==1))&&((a17==2)&&((((!(a7==1)&&((a11==1)&&(a16==11)))&&(a5==5))&&(a13==1))&&(a21==12))))){ + a9 = 7; + a26 = 0; + a5 = 4; + a21 = 10; + a16 = 7; + a18 = 0; + a27 = 0; + return -1; + } else if((((a4==1)||((a1==14)&&(((a21==12)&&(((a17==2)&&(a28==1))&&(a20==1)))&&!(a14==1))))&&(((!(a18==1)&&(((a28==1)&&((a19==2)&&((input==1)&&((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4))))))&&(a23==1)))&&(a16==8))&&!(a8==1)))){ + a5 = 6; + a12 = 1; + a28 = 1; + a16 = 10; + a19 = 1; + a27 = 0; + a9 = 9; + return 22; + } else if(((((a16==8)&&(((((a12==1)&&(a19==5))&&(a21==11))||(a0==1))&&(a17==2)))&&(a12==1))&&((((a1==12)&&(!(a8==1)&&(!(a14==1)&&((a28==1)&&((input==3)&&(((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))))))))&&!(a7==1))&&(a20==1)))){ + a5 = 4; + a13 = 1; + a9 = 7; + a28 = 1; + a2 = 1; + a19 = 1; + a21 = 10; + a16 = 7; + return -1; + } else if((((a12==1)&&((!(a4==1)&&((((((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(input==3))&&(a16==11))&&!(a24==1)))&&(a28==1)))&&(((a20==1)&&((a21==12)&&(((a23==1)&&((a17==2)&&((a23==1)||!(a3==1))))&&(a1==14))))&&(a19==2)))){ + a16 = 7; + a7 = 0; + a9 = 7; + a21 = 10; + a12 = 1; + a5 = 4; + a1 = 12; + a19 = 1; + a26 = 0; + return -1; + } else if(((!(a0==1)&&((a28==1)&&((!(a24==1)&&(((a5==4)||(a5==5))&&(input==6)))&&(a21==12))))&&((a19==1)&&(((a7==1)||(!(a20==1)&&((a13==1)&&(((a17==2)&&(((a23==1)&&(a9==11))&&(a12==1)))&&(a16==9)))))&&(a1==12))))){ + if((a3==1)){ + a23 = 0; + a16 = 10; + a1 = 13; + a5 = 6; + a12 = 0; + a9 = 7; + a7 = 1; + }else{ + a22 = 0; + a20 = 1; + a16 = 11; + a21 = 10; + a6 = 0; + a9 = 9; + a1 = 13; + a5 = 5; + a8 = 1; + } + return -1; + } else if((((a24==1)||(((a21==10)&&((a19==4)&&((a1==14)&&((((((a6==1)&&(a9==7))&&(a16==7))&&!(a20==1))||(a0==1))||!(a12==1)))))&&(a12==1)))&&((!(a4==1)&&(((input==6)&&((a5==5)||(a5==6)))&&(a17==2)))&&!(a24==1)))){ + a5 = 6; + a1 = 12; + a16 = 11; + a20 = 1; + a14 = 0; + a28 = 1; + a2 = 1; + return 21; + } else if(((!(a7==1)&&(((a9==11)&&(((a20==1)&&(((a5==4)||(a5==5))&&(input==4)))&&(a21==10)))&&(a6==1)))&&((a26==1)||(((a17==2)&&((a19==1)&&((a16==11)&&((!(a6==1)||((a11==1)||!(a28==1)))&&(a11==1)))))&&(a1==14))))){ + a1 = 12; + a16 = 7; + a5 = 4; + a6 = 1; + a9 = 7; + a27 = 0; + return -1; + } else if(((((((!(a4==1)&&(((((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==3))&&!(a18==1)))&&!(a20==1))&&(a16==9))&&(a28==1))&&!(a18==1))&&(((((a6==1)&&(((a21==11)&&(a6==1))&&(a19==5)))&&(a17==2))&&(a1==14))&&!(a24==1)))){ + a5 = 6; + a16 = 7; + a19 = 2; + a21 = 10; + a9 = 11; + a20 = 1; + a25 = 1; + a1 = 12; + return -1; + } else if((((!(a20==1)&&((a9==8)&&((((a13==1)&&((a19==3)&&(a23==1)))&&(a1==14))&&(a17==2))))&&(a2==1))&&(!(a0==1)&&((a3==1)&&((a21==11)&&((a16==10)&&(((a12==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4)))&&!(a18==1)))))))){ + a20 = 1; + a8 = 1; + a21 = 10; + a16 = 7; + a23 = 0; + a19 = 2; + a22 = 0; + a5 = 5; + a1 = 12; + a9 = 7; + return -1; + } else if((((a19==4)&&((a16==8)&&((!(a20==1)&&((a13==1)&&(((!(a18==1)&&((a3==1)&&(((a5==4)||(a5==5))&&(input==4))))&&!(a26==1))&&(a9==7))))&&(a21==11))))&&((a1==13)&&(!(a27==1)&&(((a12==1)||!(a6==1))&&(a17==2)))))){ + a20 = 1; + a16 = 7; + a5 = 4; + a21 = 10; + a19 = 1; + a1 = 12; + a7 = 0; + a14 = 0; + return -1; + } else if(((((a9==9)&&((a1==13)&&(((!(a13==1)||(!(a28==1)||(((a2==1)&&(a20==1))||(a18==1))))&&!(a0==1))&&!(a27==1))))&&(a19==3))&&((a16==9)&&((a17==2)&&(((a2==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))&&(a21==10)))))){ + a26 = 0; + a14 = 0; + a5 = 4; + a16 = 7; + a1 = 12; + a11 = 1; + a19 = 1; + a9 = 7; + return -1; + } else if(((((!(a18==1)&&(!(a4==1)&&(((a6==1)&&(a11==1))&&(a13==1))))&&(a19==2))&&(a21==11))&&(((a17==2)&&(((a1==14)&&((((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==3))&&(a23==1))&&(a6==1)))&&(a20==1)))&&(a16==11)))){ + a9 = 7; + a21 = 10; + a5 = 4; + a19 = 1; + a28 = 1; + a12 = 1; + a1 = 12; + a16 = 7; + a6 = 1; + return -1; + } else if((((a17==2)&&((!(a14==1)&&(!(a27==1)&&((a1==13)&&((!(a14==1)&&((a16==7)&&((a28==1)&&(a6==1))))||(a0==1)))))&&!(a20==1)))&&((a19==3)&&(((a21==10)&&((input==3)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))))&&!(a4==1))))){ + a24 = 0; + a5 = 4; + a19 = 1; + a20 = 1; + a9 = 7; + a7 = 0; + a1 = 12; + a28 = 1; + return -1; + } else if((((a16==9)&&((a13==1)&&((((((((a5==5)||(a5==6))&&(input==5))&&!(a8==1))&&!(a26==1))&&(a19==3))&&(a9==9))&&(a1==12))))&&((((!(a20==1)&&((a21==11)&&((a28==1)||(a18==1))))&&(a17==2))&&(a6==1))&&(a12==1)))){ + a16 = 7; + a12 = 0; + a5 = 4; + a20 = 1; + a21 = 12; + a0 = 1; + a25 = 0; + a1 = 14; + return 25; + } else if(((!(a18==1)&&((((a17==2)&&((((a21==12)&&((input==6)&&(a1==12)))&&(a9==11))&&!(a7==1)))&&(a6==1))&&(a5==5)))&&((a18==1)||(!(a20==1)&&(((a13==1)&&((a2==1)&&((a16==7)&&(a11==1))))&&(a19==3)))))){ + a20 = 1; + a13 = 1; + a5 = 4; + a21 = 11; + a28 = 1; + a1 = 13; + a14 = 0; + a9 = 8; + a19 = 5; + a16 = 10; + return 21; + } else if(((((a17==2)&&(!(a26==1)&&(((!(a20==1)&&(((((a5==5)||(a5==6))&&(input==5))&&(a2==1))&&(a6==1)))&&!(a8==1))&&(a1==14))))&&(a16==11))&&(((a19==1)&&((a3==1)&&(((a2==1)&&(a9==11))&&!(a18==1))))&&(a21==10)))){ + if((a29==1)){ + a1 = 12; + a10 = 0; + a16 = 8; + a14 = 1; + a5 = 6; + a19 = 2; + a20 = 1; + a18 = 1; + }else{ + a1 = 12; + a29 = 0; + a9 = 7; + a16 = 7; + a20 = 1; + a5 = 6; + a19 = 2; + a28 = 0; + a8 = 1; + } + return -1; + } else if((((a14==1)&&(!(a3==1)&&((a14==1)&&((((((((a1==14)&&(a5==6))&&(a9==11))&&(a19==1))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==2)))||((((a1==12)&&(a5==5))&&(a9==7))&&(a19==2)))&&(input==1))&&(a20==1)))))&&(((a18==1)&&(((((a17==2)&&(a3==1))&&(a16==8))&&(a21==12))&&(a14==1)))&&(a4==1)))){ + a16 = 7; + a23 = 0; + a8 = 1; + a5 = 5; + a10 = 0; + a19 = 1; + a1 = 14; + a9 = 8; + a21 = 10; + return -1; + } else if((((((a16==7)&&((((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==1))&&(a21==10))&&!(a26==1)))&&(a6==1))&&!(a20==1))&&((a17==2)&&(((a19==3)&&(((a12==1)&&((a4==1)||((a12==1)&&(a13==1))))&&(a1==13)))||!(a13==1))))){ + a19 = 1; + a11 = 1; + a5 = 4; + a8 = 0; + a9 = 7; + a23 = 1; + a20 = 1; + a1 = 12; + return -1; + } else if((((a21==11)&&(((((a5==4)||(a5==5))&&(input==4))&&(a16==11))&&(a17==2)))&&((((a24==1)||((!(a28==1)||((((a1==13)&&((a6==1)&&((a2==1)&&(a9==8))))&&!(a14==1))&&!(a18==1)))||(a7==1)))&&(a19==2))&&(a20==1)))){ + a3 = 1; + a19 = 1; + a11 = 1; + a21 = 10; + a1 = 12; + a8 = 0; + a5 = 4; + a9 = 7; + a16 = 7; + return -1; + } else if(((((a11==1)&&(((((a21==11)&&((a17==2)&&(input==1)))&&(a1==14))&&(a5==4))&&(a19==2)))&&(a9==11))&&((((a16==10)&&(((!(a18==1)&&((a28==1)&&!(a14==1)))&&(a20==1))||(a0==1)))&&(a11==1))&&!(a0==1)))){ + a19 = 1; + a12 = 1; + a1 = 12; + a9 = 7; + a24 = 0; + a16 = 7; + a21 = 10; + a6 = 1; + return -1; + } else if((((!(a24==1)&&(((a17==2)&&(input==5))&&(a1==12)))&&(a5==6))&&(((a28==1)&&((a9==10)&&((((((a21==12)&&(((a13==1)||!(a23==1))&&(a6==1)))||(a14==1))&&(a16==8))&&(a19==2))&&(a11==1))))&&!(a20==1)))){ + if((a16==10)){ + a1 = 14; + a10 = 0; + a21 = 10; + a20 = 1; + a12 = 0; + a9 = 11; + a8 = 1; + a5 = 4; + a19 = 1; + a16 = 7; + }else{ + a21 = 10; + a19 = 3; + a16 = 11; + a1 = 14; + a4 = 1; + a23 = 0; + a20 = 1; + } + return 22; + } else if((((a17==2)&&((a19==3)&&((a21==11)&&((!(a4==1)&&(!(a14==1)&&((a2==1)&&(!(a14==1)&&(((((a5==5)&&(a1==13))&&(a9==7))||((((a5==6)&&(a1==12))&&(a9==11))||(((a1==13)&&(a5==4))&&(a9==7))))&&(input==4))))))&&(a3==1)))))&&(!(a23==1)||((!(a20==1)&&(a6==1))&&(a16==7))))){ + a5 = 4; + a3 = 1; + a20 = 1; + a14 = 0; + a2 = 1; + a9 = 7; + a21 = 10; + a19 = 1; + a1 = 12; + return -1; + } else if((((((((a11==1)&&(((input==1)&&(((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))))&&(a28==1)))&&(a21==11))&&(a19==1))&&(a16==10))&&!(a20==1))&&((a1==13)&&((((((a28==1)&&(a28==1))||(a7==1))&&!(a4==1))||!(a2==1))&&(a17==2))))){ + if((a13==1)){ + a1 = 14; + a19 = 3; + a21 = 10; + a29 = 1; + a4 = 1; + a10 = 1; + a5 = 4; + a20 = 1; + a9 = 11; + a16 = 7; + }else{ + a19 = 2; + a21 = 10; + a5 = 4; + a12 = 0; + a20 = 1; + a16 = 7; + a1 = 12; + a9 = 9; + a14 = 1; + a4 = 1; + } + return 26; + } else if((((a17==2)&&((a1==13)&&((!(a8==1)&&((input==3)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))&&!(a26==1))))&&(((!(a7==1)&&(((((a4==1)||(!(a20==1)&&(a2==1)))&&(a13==1))&&(a21==10))||!(a28==1)))&&(a16==9))&&(a19==2)))){ + a7 = 1; + a16 = 7; + a20 = 1; + a5 = 4; + a10 = 1; + a9 = 9; + a1 = 12; + a18 = 1; + return 22; + } else if((((!(a11==1)||((((!(a3==1)||(a2==1))&&(a20==1))&&(a16==7))&&!(a7==1)))||(a8==1))&&((!(a24==1)&&((a17==2)&&(((a1==14)&&((a21==10)&&((input==5)&&((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a5==4)&&(a9==9))))))&&(a19==2))))&&!(a4==1)))){ + a19 = 4; + a5 = 6; + a1 = 13; + a7 = 0; + a4 = 0; + a9 = 7; + return 21; + } else if((((((a19==5)&&((a1==12)&&((((a16==7)&&(a2==1))&&!(a4==1))&&(a23==1))))&&(a21==11))||!(a3==1))&&((a9==9)&&((a17==2)&&((!(a27==1)&&((!(a4==1)&&((input==6)&&((a5==4)||(a5==5))))&&!(a24==1)))&&!(a20==1)))))){ + a26 = 0; + a9 = 10; + a12 = 1; + a5 = 4; + a24 = 0; + a16 = 11; + a20 = 1; + a1 = 14; + a21 = 12; + a19 = 3; + return 25; + } else if((((a19==5)&&((!(a12==1)||((((a23==1)&&(a17==2))&&(a9==11))&&(a21==12)))&&!(a4==1)))&&(((!(a24==1)&&(((a16==7)&&((((input==5)&&!(a20==1))&&(a5==5))&&(a1==13)))&&(a11==1)))&&(a6==1))&&!(a18==1)))){ + a21 = 11; + a28 = 1; + a19 = 4; + a1 = 12; + a14 = 0; + a5 = 6; + a9 = 7; + a16 = 9; + a23 = 1; + a20 = 1; + return 21; + } else if((((((a11==1)&&((a17==2)&&(((input==6)&&(((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))))&&(a19==2))))&&!(a20==1))&&(a6==1))&&((!(a24==1)&&((((a1==12)&&((!(a3==1)||(a2==1))&&(a21==11)))||!(a11==1))&&(a16==9)))||!(a2==1)))){ + if((a6==1)){ + a16 = 10; + a9 = 11; + a19 = 3; + a1 = 13; + a4 = 1; + a21 = 12; + a25 = 0; + a22 = 1; + a5 = 6; + }else{ + a20 = 1; + a2 = 0; + a1 = 13; + a6 = 0; + a5 = 6; + a15 = 0; + a19 = 1; + a9 = 9; + } + return -1; + } else if(((!(a18==1)&&((!(a7==1)&&(((a21==10)&&((a16==11)&&((a17==2)&&((((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6))))&&(input==6)))))&&!(a18==1)))&&(a13==1)))&&((((((a27==1)||(a6==1))&&!(a20==1))&&(a1==12))&&(a19==4))&&(a6==1)))){ + if((a8==1)){ + a1 = 14; + a19 = 1; + a20 = 1; + a9 = 9; + a6 = 0; + a11 = 0; + a5 = 6; + a26 = 1; + a16 = 7; + }else{ + a20 = 1; + a19 = 5; + a5 = 5; + a27 = 1; + a16 = 10; + a4 = 1; + a9 = 11; + a1 = 14; + a11 = 0; + } + return 25; + } else if(((((((a12==1)&&(((((a12==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))&&!(a14==1))&&!(a18==1))&&(a9==8)))&&!(a20==1))&&(a17==2))&&(a19==1))&&(((!(a6==1)||((a1==12)&&((a21==12)&&(a11==1))))&&(a23==1))&&(a16==10)))){ + a26 = 1; + a9 = 10; + a20 = 1; + a25 = 0; + a5 = 6; + a3 = 0; + a21 = 10; + a16 = 7; + return 25; + } else if(((!(a18==1)&&((a13==1)&&(((a12==1)&&(((a1==13)&&(((a12==1)&&((input==6)&&((a5==5)||(a5==6))))&&(a9==9)))&&(a13==1)))&&(a20==1))))&&((a21==10)&&(!(a28==1)||((a17==2)&&((a16==7)&&((a19==5)&&(a3==1)))))))){ + a12 = 1; + a5 = 4; + a2 = 1; + a19 = 3; + a21 = 12; + a11 = 1; + a9 = 10; + return 21; + } else if(((((a17==2)&&((a1==13)&&(((!(a6==1)||(a12==1))&&(a21==11))&&(a16==7))))&&(a23==1))&&((((a28==1)&&((a20==1)&&((((((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10))))&&(input==3))&&(a11==1))&&(a19==2))))&&(a28==1))&&!(a0==1)))){ + a2 = 1; + a21 = 10; + a28 = 1; + a9 = 7; + a5 = 4; + a19 = 1; + a1 = 12; + a14 = 0; + return -1; + } else if((((a21==10)&&((((((((a20==1)&&(input==4))&&(a12==1))&&(a13==1))&&!(a26==1))&&(a1==13))&&(a23==1))&&(a5==4)))&&((((a19==4)&&(((a24==1)||((a2==1)&&(a17==2)))&&(a9==11)))&&(a16==11))&&!(a24==1)))){ + a2 = 1; + a1 = 12; + a9 = 7; + a6 = 1; + a19 = 1; + a4 = 0; + a16 = 7; + return -1; + } else if((((a20==1)&&(((a2==1)&&((a1==14)&&((((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))&&(input==4))&&(a21==11))))&&(a19==2)))&&(!(a3==1)||((!(a26==1)&&(((a16==11)&&((a8==1)||((a12==1)&&(a12==1))))&&(a12==1)))&&(a17==2))))){ + a3 = 1; + a5 = 4; + a19 = 1; + a16 = 7; + a11 = 1; + a21 = 10; + a9 = 7; + a8 = 0; + a1 = 12; + return -1; + } else if(((((a21==12)&&(a3==1))&&(a1==12))&&(((a17==2)&&((a18==1)&&((((a8==1)&&(((!(a23==1)&&((a19==4)&&(((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))&&(input==1))))&&(a0==1))&&(a27==1)))&&(a16==8))&&(a20==1))))&&(a27==1)))){ + a9 = 9; + a19 = 2; + a23 = 0; + a21 = 10; + a15 = 1; + a5 = 5; + a16 = 7; + return 25; + } else if(((((a1==14)&&(((a11==1)&&((((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(input==5)))&&!(a20==1)))&&(a13==1))&&((a18==1)||((a19==2)&&(((a17==2)&&(((a21==11)&&((!(a7==1)&&(a2==1))&&(a2==1)))||(a14==1)))&&(a16==9)))))){ + a1 = 12; + a21 = 10; + a4 = 1; + a8 = 1; + a19 = 5; + a5 = 4; + a28 = 0; + a20 = 1; + a9 = 10; + return -1; + } else if((((a1==14)&&((a9==7)&&(((((a2==1)&&(((a28==1)&&(((a5==5)||(a5==6))&&(input==6)))&&(a6==1)))&&(a19==5))&&(a12==1))&&(a16==10))))&&(!(a20==1)&&((a17==2)&&((!(a23==1)||((a23==1)&&!(a4==1)))&&(a21==10)))))){ + a19 = 1; + a25 = 1; + a8 = 1; + a15 = 1; + a16 = 7; + a9 = 11; + a20 = 1; + a5 = 6; + return -1; + } else if((((((((a9==9)&&((a21==11)&&((a1==12)&&((((a12==1)&&((a18==1)||(a28==1)))&&!(a20==1))&&(a19==4)))))&&(a16==7))&&(a28==1))&&(a2==1))&&!(a8==1))&&(!(a18==1)&&((a17==2)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))))){ + a5 = 6; + a21 = 10; + a20 = 1; + a1 = 13; + a18 = 0; + a11 = 1; + a24 = 0; + return 21; + } else if(((((((a16==8)&&((a19==1)&&((a3==1)&&(((a11==1)&&(a1==13))&&(a5==4)))))&&!(a20==1))||!(a12==1))&&(a12==1))&&(!(a27==1)&&(!(a27==1)&&((((a9==10)&&((a21==12)&&(input==3)))&&(a17==2))&&(a6==1)))))){ + if((a3==1)){ + a16 = 7; + a20 = 1; + a29 = 0; + a9 = 11; + a18 = 1; + a1 = 14; + a5 = 6; + a21 = 10; + }else{ + a9 = 9; + a14 = 1; + a7 = 1; + a16 = 11; + a1 = 12; + a13 = 0; + a5 = 5; + a20 = 1; + } + return -1; + } else if((((a1==13)&&((a17==2)&&(((a21==11)&&(a2==1))||!(a23==1))))&&(!(a0==1)&&((a6==1)&&((!(a26==1)&&(((((a20==1)&&((a19==5)&&((a5==4)&&(input==4))))&&(a9==9))&&(a3==1))&&(a16==11)))&&(a13==1)))))){ + a12 = 1; + a21 = 10; + a0 = 0; + a9 = 7; + a2 = 1; + a1 = 12; + a19 = 1; + a16 = 7; + return -1; + } else if((((((((!(a8==1)&&((a1==12)&&(input==4)))&&(a5==5))&&(a21==12))&&(a11==1))&&(a28==1))&&!(a8==1))&&(((a16==10)&&(((a17==2)&&((!(a20==1)&&((a19==1)&&(a2==1)))&&(a9==11)))&&(a11==1)))||(a14==1)))){ + if((a17==3)){ + a2 = 0; + a27 = 1; + a19 = 2; + a21 = 11; + a9 = 10; + a16 = 7; + a1 = 13; + a29 = 1; + }else{ + a9 = 10; + a16 = 7; + a8 = 1; + a1 = 14; + a15 = 0; + a21 = 10; + a20 = 1; + a5 = 4; + a2 = 0; + } + return -1; + } else if(((!(a0==1)&&((a2==1)&&((!(a8==1)&&((!(a20==1)&&(input==6))&&(a19==2)))&&(a23==1))))&&(((a17==2)&&((a21==10)&&((a5==4)&&((a16==7)&&(((a28==1)&&((a18==1)||(a23==1)))&&(a1==13))))))&&(a9==7)))){ + a20 = 1; + a19 = 1; + a1 = 12; + a13 = 1; + a2 = 1; + a8 = 0; + return -1; + } else if((((a23==1)&&(((a13==1)&&((((a12==1)||(a27==1))&&(a21==12))&&(a20==1)))&&!(a4==1)))&&(((((a17==2)&&((!(a0==1)&&((a1==13)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3))))&&(a16==11)))&&(a9==7))&&(a19==5))&&(a3==1)))){ + a4 = 0; + a7 = 0; + a19 = 1; + a1 = 12; + a21 = 10; + a5 = 4; + a16 = 7; + a11 = 1; + return -1; + } else if((((a7==1)||((a28==1)&&(((a8==1)||((a9==10)&&(((a1==14)&&((a28==1)||(a14==1)))||!(a11==1))))&&!(a20==1))))&&((((a3==1)&&((a16==7)&&((a21==11)&&(((a5==4)||(a5==5))&&(input==3)))))&&(a17==2))&&(a19==4)))){ + a26 = 0; + a1 = 12; + a19 = 1; + a23 = 1; + a20 = 1; + a3 = 1; + a21 = 10; + a5 = 4; + a9 = 7; + return -1; + } else if((((((a1==13)&&(((a13==1)&&((a6==1)&&((!(a18==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5)))))&&(a19==2))))&&(a16==8)))&&(a20==1))&&(a17==2))&&(!(a0==1)&&(!(a27==1)&&((((a21==12)&&(a13==1))||!(a12==1))&&(a9==11)))))){ + a9 = 7; + a16 = 7; + a19 = 1; + a12 = 1; + a5 = 4; + a21 = 10; + a26 = 0; + a1 = 12; + a11 = 1; + return -1; + } else if((((a20==1)&&((a5==4)&&((a13==1)&&((a3==1)&&(((((input==5)&&(a1==13))&&(a17==2))&&(a19==3))&&!(a0==1))))))&&(!(a0==1)&&((a2==1)&&(((a9==7)&&(((a13==1)&&(a16==10))&&(a21==12)))&&(a3==1)))))){ + a12 = 1; + a6 = 1; + a11 = 1; + a9 = 10; + a19 = 2; + a21 = 10; + a1 = 14; + a5 = 5; + a16 = 7; + return 21; + } else if((((((((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&(a11==1))&&(a19==3))&&!(a18==1))&&(a1==12))&&((((a16==10)&&(!(a14==1)&&(((a13==1)&&(!(a13==1)||(((a11==1)&&(a9==9))&&(a12==1))))&&(a17==2))))&&!(a20==1))&&(a21==12)))){ + if((a12==1)){ + a5 = 4; + a1 = 13; + a21 = 10; + a16 = 7; + a19 = 1; + a6 = 0; + a3 = 0; + a29 = 1; + a9 = 10; + a20 = 1; + }else{ + a19 = 5; + a21 = 10; + a13 = 0; + a10 = 1; + a16 = 11; + a1 = 14; + a20 = 1; + a9 = 11; + a5 = 4; + } + return -1; + } else if(((((a20==1)&&((!(a6==1)||((((a2==1)&&!(a27==1))||!(a11==1))&&(a5==6)))||(a0==1)))&&(a17==2))&&(((a19==4)&&((((((a21==11)&&(input==4))&&(a6==1))&&(a9==10))&&(a1==13))&&(a28==1)))&&(a16==11)))){ + a19 = 1; + a21 = 10; + a1 = 12; + a9 = 7; + a24 = 0; + a28 = 1; + a16 = 7; + a5 = 4; + a23 = 1; + return -1; + } else if((((a9==7)&&(((a1==12)&&(!(a24==1)&&(((!(a24==1)&&(a6==1))&&!(a4==1))&&(a19==3))))&&(a21==11)))&&(((((a2==1)&&((!(a4==1)&&(((a5==5)||(a5==6))&&(input==4)))&&(a16==8)))&&(a2==1))&&(a17==2))&&(a20==1)))){ + a5 = 4; + a27 = 0; + a26 = 0; + a19 = 1; + a16 = 7; + a21 = 10; + a2 = 1; + return -1; + } else if((((((a21==12)&&(((a16==11)&&((a20==1)&&((a11==1)&&!(a12==1))))&&!(a13==1)))&&(a24==1))&&(a17==2))&&((a19==1)&&((!(a23==1)&&(!(a23==1)&&((a1==13)&&(((input==5)&&((a5==5)||(a5==6)))&&(a9==10)))))&&(a18==1))))){ + a15 = 0; + a3 = 0; + a16 = 7; + a21 = 10; + a5 = 6; + a7 = 1; + return -1; + } else if((((a16==8)&&(((a9==7)&&((a11==1)&&(a17==2)))||!(a3==1)))&&((!(a4==1)&&(!(a27==1)&&((a2==1)&&((((a19==2)&&((((input==3)&&(a5==5))&&(a1==14))&&(a21==12)))&&(a6==1))&&!(a20==1)))))&&!(a14==1)))){ + a5 = 4; + a1 = 12; + a18 = 1; + a16 = 9; + a9 = 11; + a24 = 1; + a20 = 1; + a21 = 11; + return -1; + } else if((((a12==1)&&(!(a8==1)&&((a16==9)&&((a21==12)&&((a1==14)&&((a9==9)&&(((a3==1)&&(((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a12==1)))&&(a17==2))))))))&&(((a19==1)&&(!(a23==1)||(!(a11==1)||(a12==1))))&&(a20==1)))){ + a9 = 7; + a21 = 10; + a27 = 0; + a16 = 7; + a5 = 4; + a1 = 12; + a26 = 0; + return -1; + } else if((((((!(a26==1)&&(((input==6)&&((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4))))&&!(a8==1)))&&(a1==12))&&!(a20==1))&&(a16==7))&&((a19==3)&&(((((((a11==1)||(a18==1))||!(a2==1))&&(a6==1))||!(a23==1))&&(a21==10))&&(a17==2))))){ + a5 = 4; + a4 = 0; + a24 = 0; + a20 = 1; + a9 = 7; + a26 = 0; + a19 = 1; + return -1; + } else if((((((a27==1)||(!(a24==1)&&((a17==2)&&((a9==7)&&((a28==1)||(a4==1))))))&&!(a20==1))&&(a19==2))&&(((((a3==1)&&(!(a4==1)&&(((input==1)&&(a5==5))&&(a11==1))))&&(a16==7))&&(a21==12))&&(a1==13)))){ + a26 = 0; + a7 = 0; + a16 = 8; + a13 = 1; + a1 = 12; + a19 = 4; + a9 = 8; + a21 = 11; + return 21; + } else if(((!(a18==1)&&(!(a14==1)&&((a6==1)&&(!(a20==1)&&(((a17==2)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))&&(a9==7))))))&&(((((a21==11)&&((a0==1)||(((a2==1)&&(a19==5))&&(a1==13))))&&(a16==9))&&!(a8==1))||(a18==1)))){ + a5 = 5; + a29 = 0; + a25 = 1; + a16 = 10; + a2 = 0; + a9 = 9; + a1 = 12; + a21 = 12; + return 21; + } else if(((!(a6==1)||(!(a14==1)&&(((((!(a7==1)&&((a13==1)&&(a20==1)))&&(a16==7))&&(a9==11))&&(a1==14))||(a26==1))))&&(!(a24==1)&&(!(a0==1)&&((a19==3)&&((((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&(a21==10))&&(a17==2))))))){ + a21 = 12; + a12 = 1; + a23 = 1; + a5 = 4; + a0 = 0; + a20 = 0; + a9 = 8; + a19 = 5; + return 23; + } else if(((((a28==1)&&((a19==3)&&((((a16==11)&&((a20==1)&&(((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==5))&&(a28==1))))&&!(a26==1))&&!(a24==1))))&&!(a8==1))&&(((a1==12)&&(((a21==11)&&(a12==1))&&(a17==2)))||!(a28==1)))){ + a13 = 1; + a19 = 1; + a21 = 10; + a8 = 0; + a5 = 4; + a16 = 7; + a9 = 7; + a26 = 0; + return -1; + } else if((((((a27==1)||((a17==2)&&((a1==13)&&((!(a12==1)||((a12==1)||(a27==1)))||(a26==1)))))&&(a20==1))&&(a19==5))&&(((((a9==8)&&(!(a24==1)&&((input==4)&&((a5==5)||(a5==6)))))&&(a2==1))&&(a16==9))&&(a21==11)))){ + a21 = 10; + a5 = 4; + a4 = 0; + a7 = 0; + a1 = 12; + a16 = 7; + a24 = 0; + a19 = 1; + a9 = 7; + return -1; + } else if(((((a17==2)&&(((a24==1)||((a9==9)&&((a6==1)||!(a2==1))))||!(a6==1)))&&(a21==10))&&((((a19==4)&&((((a12==1)&&((a16==7)&&((input==5)&&((a5==6)||((a5==4)||(a5==5))))))&&(a2==1))&&!(a20==1)))&&(a1==14))&&!(a0==1)))){ + a1 = 12; + a5 = 4; + a27 = 0; + a19 = 5; + a6 = 1; + a12 = 1; + return 25; + } else if(((((a3==1)&&(((a17==2)&&((!(a18==1)&&((a9==8)&&(input==1)))&&(a11==1)))&&(a6==1)))&&(a5==5))&&((a16==10)&&(((a20==1)&&(((a1==14)&&(((a13==1)&&!(a27==1))&&!(a7==1)))&&(a21==10)))&&(a19==2))))){ + a5 = 4; + a16 = 7; + a9 = 7; + a19 = 1; + a12 = 1; + a1 = 12; + a13 = 1; + a28 = 1; + return -1; + } else if((((a1==13)&&((a16==8)&&((((!(a27==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3)))&&!(a14==1))&&(a9==8))&&(a6==1))))&&((a20==1)&&(((a17==2)&&(((a21==10)&&(!(a3==1)||((a12==1)||(a27==1))))||(a18==1)))&&(a19==2))))){ + a9 = 7; + a5 = 4; + a19 = 1; + a16 = 7; + a3 = 1; + a12 = 1; + a1 = 12; + return -1; + } else if((((a3==1)&&((a14==1)||(!(a23==1)||((((a1==13)&&((a16==7)&&(a2==1)))&&!(a20==1))&&(a19==2)))))&&(((a9==7)&&(!(a0==1)&&((a5==4)&&((a21==10)&&(!(a14==1)&&((input==1)&&(a17==2)))))))&&!(a18==1)))){ + a28 = 1; + a1 = 12; + a23 = 1; + a19 = 3; + return 25; + } else if((((a1==12)&&((a21==10)&&(((a8==1)||(!(a8==1)&&((((a26==1)||(a11==1))||!(a13==1))&&!(a18==1))))&&(a20==1))))&&((((!(a8==1)&&(((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))&&(input==4)))&&(a17==2))&&(a19==3))&&(a16==8)))){ + a9 = 10; + a27 = 0; + a19 = 4; + a11 = 1; + a1 = 13; + a5 = 5; + a12 = 1; + a21 = 12; + a16 = 9; + return 26; + } else if(((((((a21==11)&&((a16==10)&&(!(a8==1)&&((input==1)&&((a5==4)||(a5==5))))))&&(a23==1))&&(a9==7))&&(a17==2))&&((!(a12==1)||((a19==1)&&((!(a3==1)||(((a28==1)||!(a6==1))&&(a20==1)))&&(a1==12))))&&(a28==1)))){ + a5 = 4; + a6 = 1; + a2 = 1; + a21 = 10; + a0 = 0; + a9 = 11; + a16 = 7; + a19 = 4; + return 25; + } else if(((!(a7==1)&&((!(a24==1)&&((a16==7)&&((a23==1)&&((a21==11)&&(((((a9==11)&&((a5==5)&&(a1==12)))||((a9==11)&&((a5==6)&&(a1==12))))||((a9==7)&&((a1==13)&&(a5==4))))&&(input==4))))))&&!(a8==1)))&&((((((a28==1)&&(a19==2))&&(a17==2))&&!(a20==1))&&(a13==1))||!(a3==1)))){ + a1 = 12; + a20 = 1; + a19 = 1; + a21 = 10; + a11 = 1; + a8 = 0; + a9 = 7; + a28 = 1; + a5 = 4; + return -1; + } else if((((!(a11==1)||((a17==2)&&(((((a16==9)&&(a13==1))&&(a20==1))&&(a9==8))&&(a1==14))))&&(a6==1))&&((a28==1)&&((((a21==10)&&(((((a5==5)||(a5==6))&&(input==1))&&(a23==1))&&(a19==2)))&&!(a14==1))&&!(a14==1))))){ + a4 = 0; + a19 = 1; + a5 = 4; + a6 = 1; + a9 = 7; + a1 = 12; + a26 = 0; + a16 = 7; + return -1; + } else if((((a9==10)&&((a19==1)&&(((a3==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1)))&&(a2==1))))&&((a1==14)&&((a21==10)&&(((a20==1)&&((((((a7==1)||(a6==1))||(a24==1))&&!(a18==1))||!(a13==1))&&(a16==11)))&&(a17==2)))))){ + a21 = 12; + a9 = 9; + a27 = 0; + a4 = 0; + a5 = 6; + a1 = 12; + a13 = 1; + a16 = 8; + return 25; + } else if(((((a3==1)&&((a16==11)&&(!(a20==1)&&(((((a9==7)&&((a5==5)&&(a1==12)))&&(a19==4))||((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==3))||((a19==4)&&((a9==7)&&((a5==4)&&(a1==12))))))&&(input==4)))))&&(a28==1))&&(((a7==1)||(((a21==10)&&(((a17==2)&&(a28==1))||(a8==1)))||!(a2==1)))||(a8==1)))){ + if((a25==1)){ + a19 = 1; + a5 = 6; + a25 = 0; + a9 = 8; + a16 = 7; + a20 = 1; + a1 = 13; + a24 = 1; + a10 = 0; + }else{ + a11 = 0; + a29 = 0; + a19 = 2; + a1 = 13; + a22 = 0; + a16 = 8; + a5 = 5; + a9 = 11; + } + return 23; + } else if((((a3==1)&&(((a18==1)||((((a19==4)&&(a13==1))&&(a20==1))||(a24==1)))&&!(a7==1)))&&((a12==1)&&((a17==2)&&((a21==11)&&(((a16==8)&&(((((a5==6)&&(a1==13))&&(a9==11))||((a9==7)&&((a1==14)&&(a5==4))))&&(input==1)))&&!(a18==1))))))){ + a19 = 1; + a14 = 0; + a5 = 4; + a13 = 1; + a21 = 10; + a9 = 7; + a2 = 1; + a1 = 12; + a16 = 7; + return -1; + } else if((((((!(a6==1)||((!(a20==1)&&(((a12==1)&&!(a0==1))&&(a17==2)))||(a24==1)))&&(a16==7))&&!(a7==1))||!(a28==1))&&((a19==2)&&(!(a24==1)&&((a21==12)&&((a1==13)&&((input==4)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5)))))))))){ + a20 = 1; + a27 = 0; + a21 = 10; + a18 = 0; + a23 = 1; + a5 = 4; + a9 = 7; + a19 = 1; + a1 = 12; + return -1; + } else if(((((a23==1)&&((a19==5)&&((a21==12)&&(((!(a0==1)&&(a2==1))&&(a17==2))&&(a6==1)))))&&(a12==1))&&((((!(a14==1)&&(!(a20==1)&&((input==6)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))))&&!(a4==1))&&(a1==13))&&(a16==7)))){ + a21 = 10; + a24 = 0; + a19 = 2; + a14 = 0; + a16 = 8; + a5 = 5; + a26 = 0; + a9 = 7; + return 25; + } else if((((a16==10)&&((a5==4)&&((!(a8==1)&&(((a2==1)&&(!(a18==1)&&(((a1==12)&&(input==1))&&(a21==10))))&&(a17==2)))&&(a28==1))))&&((!(a20==1)&&((((a19==3)&&(a12==1))&&(a23==1))||!(a12==1)))&&(a9==7)))){ + a6 = 0; + a21 = 11; + a16 = 9; + a4 = 1; + a12 = 0; + a19 = 1; + a20 = 1; + return 25; + } else if(((!(a12==1)||((a19==1)&&(((a28==1)||(a14==1))&&(a17==2))))&&((((a20==1)&&(((((((a12==1)&&(((a5==5)||(a5==6))&&(input==5)))&&(a9==7))&&!(a7==1))&&!(a26==1))&&(a21==10))&&(a13==1)))&&(a1==14))&&(a16==10)))){ + a18 = 0; + a13 = 1; + a1 = 12; + a26 = 0; + a16 = 7; + a5 = 4; + return -1; + } else if((((((a16==7)&&((((((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(input==5))&&(a28==1))&&(a11==1)))&&(a21==11))&&(a17==2))&&((((!(a6==1)||((!(a7==1)&&((a23==1)&&(a19==5)))||(a14==1)))&&(a20==1))&&(a1==14))&&!(a18==1)))){ + a4 = 0; + a16 = 8; + a21 = 12; + a18 = 0; + a9 = 7; + a5 = 5; + a1 = 13; + a28 = 1; + a19 = 3; + return 23; + } else if((((!(a13==1)||(!(a11==1)||(((a11==1)&&(a20==1))||(a8==1))))&&(a21==10))&&((a17==2)&&(((a1==14)&&(((a5==5)&&(((((a19==4)&&(input==1))&&(a3==1))&&(a16==7))&&!(a0==1)))&&(a9==8)))&&(a11==1))))){ + a9 = 7; + a19 = 1; + a2 = 1; + a1 = 12; + a5 = 6; + a0 = 0; + a21 = 12; + a28 = 1; + return 26; + } else if((((a12==1)&&((!(a18==1)&&(((a1==13)&&((a21==10)&&((a13==1)&&((a9==8)&&(!(a20==1)&&(input==5))))))&&(a16==10)))&&!(a0==1)))&&((a19==2)&&(((a11==1)&&((a5==5)&&((a13==1)||(a18==1))))&&(a17==2))))){ + a29 = 1; + a1 = 14; + a19 = 1; + a28 = 0; + a20 = 1; + a9 = 10; + a13 = 0; + a5 = 4; + a16 = 7; + return -1; + } else if(((((a17==2)&&(((((a21==12)&&(((a5==4)&&((!(a8==1)&&((input==5)&&(a9==11)))&&!(a20==1)))&&(a16==10)))&&(a1==12))&&!(a0==1))&&!(a4==1)))&&(a3==1))&&(!(a23==1)||(((a6==1)||!(a23==1))&&(a19==1))))){ + a6 = 0; + a20 = 1; + a18 = 1; + a0 = 1; + a1 = 14; + a21 = 10; + a5 = 6; + a16 = 7; + return -1; + } else if((((a20==1)&&(!(a27==1)&&((a13==1)&&(a17==2))))&&(((a28==1)&&((a11==1)&&((a16==11)&&((!(a4==1)&&((a19==5)&&(((a1==12)&&((input==1)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))))&&(a11==1))))&&(a21==12)))))&&!(a24==1)))){ + a9 = 7; + a16 = 7; + a3 = 1; + a8 = 0; + a19 = 1; + a5 = 4; + a21 = 10; + a26 = 0; + return -1; + } else if((((a9==11)&&((a12==1)&&((a19==4)&&((a20==1)&&((((a21==12)&&((a16==9)&&((a1==13)&&(input==5))))&&(a28==1))&&!(a27==1))))))&&(((a5==5)&&((((a23==1)&&(a17==2))&&(a23==1))&&!(a26==1)))&&!(a27==1)))){ + a3 = 1; + a6 = 1; + a21 = 10; + a18 = 0; + a9 = 9; + a16 = 8; + a1 = 12; + a19 = 1; + a5 = 4; + a20 = 0; + return -1; + } else if(((!(a7==1)&&((a13==1)&&(((a16==10)&&(((((((((a1==13)&&(a5==6))&&(a9==11))||(((a5==4)&&(a1==14))&&(a9==7)))&&(input==6))&&(a20==1))&&(a17==2))&&!(a24==1))&&(a3==1)))&&(a19==4))))&&(!(a6==1)||(((a21==10)&&(a3==1))&&(a23==1))))){ + a14 = 0; + a19 = 1; + a16 = 7; + a9 = 7; + a13 = 1; + a28 = 1; + a1 = 12; + a5 = 4; + return -1; + } else if((((a17==2)&&((((!(a26==1)&&(a11==1))&&(a23==1))&&(a1==13))&&!(a20==1)))&&((a16==9)&&(!(a18==1)&&((a2==1)&&((((a19==4)&&(((input==5)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&!(a0==1)))&&(a3==1))&&(a21==10))))))){ + a19 = 1; + a16 = 7; + a10 = 0; + a20 = 1; + a1 = 12; + a5 = 4; + a15 = 0; + a8 = 1; + a9 = 9; + return -1; + } else if((((((a21==12)&&((((a23==1)&&(a16==8))||!(a3==1))&&(a1==13)))&&(a19==1))||!(a13==1))&&(((a9==9)&&((a13==1)&&((!(a14==1)&&(((a17==2)&&((input==6)&&((a5==5)||(a5==6))))&&!(a27==1)))&&(a12==1))))&&!(a20==1)))){ + if((a0==1)){ + a1 = 12; + a27 = 1; + a10 = 0; + a21 = 10; + a20 = 1; + a16 = 7; + a5 = 5; + a23 = 0; + }else{ + a14 = 1; + a21 = 10; + a19 = 3; + a0 = 1; + a9 = 10; + a12 = 0; + a16 = 9; + a5 = 5; + } + return 21; + } else if(((!(a0==1)&&(!(a18==1)&&((a3==1)&&(((a1==12)&&((input==1)&&!(a20==1)))&&(a5==5)))))&&((((((!(a3==1)||(((a21==11)&&(a3==1))&&(a23==1)))&&(a9==7))&&(a19==1))&&(a17==2))&&(a16==8))&&(a6==1)))){ + a14 = 0; + a9 = 8; + a16 = 11; + a5 = 6; + a1 = 14; + a19 = 3; + a2 = 1; + a20 = 1; + a6 = 1; + return 21; + } else if((((((a16==10)&&((a5==5)&&(a6==1)))||!(a2==1))&&(a11==1))&&(!(a20==1)&&(((a23==1)&&(((a17==2)&&((((((input==1)&&(a21==12))&&!(a4==1))&&(a9==8))&&(a19==4))&&(a23==1)))&&!(a18==1)))&&(a1==12))))){ + a7 = 1; + a10 = 0; + a1 = 14; + a19 = 2; + a20 = 1; + a5 = 4; + a0 = 1; + return 22; + } else if(((!(a11==1)||(!(a12==1)||((a9==7)&&((a28==1)||!(a2==1)))))&&((a20==1)&&((a19==1)&&((a17==2)&&((!(a14==1)&&(((a16==11)&&((!(a24==1)&&(((a5==5)||(a5==6))&&(input==4)))&&(a1==14)))&&(a11==1)))&&(a21==11))))))){ + a23 = 1; + a5 = 4; + a21 = 10; + a1 = 12; + a28 = 1; + a13 = 1; + a16 = 7; + return -1; + } else if(((!(a27==1)&&(!(a18==1)&&((((a1==14)&&((a17==2)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a16==7))&&!(a4==1))))&&(!(a7==1)&&((a8==1)||((a9==9)&&((((a2==1)&&((a19==2)&&(a3==1)))&&(a21==10))&&!(a20==1))))))){ + a26 = 0; + a18 = 0; + a5 = 4; + a1 = 12; + a28 = 1; + a19 = 1; + a9 = 7; + a20 = 1; + return -1; + } else if((((a21==10)&&(((((((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5)))&&(input==1))&&!(a26==1))&&!(a24==1))&&(a1==14))&&(a11==1)))&&((a20==1)&&((a17==2)&&(((((a28==1)&&((a6==1)&&(a19==5)))||!(a13==1))&&(a16==8))||(a4==1)))))){ + a12 = 1; + a19 = 1; + a5 = 4; + a1 = 12; + a16 = 7; + a9 = 7; + a6 = 1; + a14 = 0; + return -1; + } else if(((((a1==12)&&(((a5==5)&&((a9==7)&&(!(a27==1)&&((a17==2)&&(input==5)))))&&!(a27==1)))&&(a21==11))&&((((!(a6==1)||((a20==1)&&((a6==1)&&((a13==1)||!(a23==1)))))||(a24==1))&&(a19==2))&&(a16==8)))){ + a21 = 10; + a11 = 1; + a19 = 5; + a9 = 9; + a14 = 0; + a4 = 0; + return -1; + } else if(((!(a20==1)&&((((a16==7)&&((!(a18==1)&&((a19==4)&&(((((input==6)&&((a5==4)||(a5==5)))&&(a21==12))&&!(a8==1))&&(a3==1))))&&!(a24==1)))&&(a17==2))&&(a1==13)))&&((a9==11)&&(((a13==1)||(a0==1))||(a4==1))))){ + a1 = 14; + a24 = 0; + a20 = 1; + a21 = 10; + a2 = 1; + a6 = 1; + a5 = 4; + return 25; + } else if((((((a23==1)&&((((a5==5)||(a5==6))&&(input==1))&&(a16==10)))&&(a17==2))&&(a1==13))&&(((!(a18==1)&&((a9==11)&&((((!(a20==1)&&((a13==1)&&(a11==1)))&&(a13==1))&&(a19==5))&&(a21==10))))||(a18==1))&&(a11==1)))){ + a14 = 1; + a20 = 1; + a9 = 8; + a16 = 7; + a10 = 0; + a19 = 1; + a26 = 1; + a5 = 5; + a1 = 14; + return -1; + } else if(((((!(a2==1)&&((((a16==9)&&((a19==5)&&((a20==1)&&(a28==1))))&&(a1==12))&&(a9==11)))&&(a0==1))&&(a0==1))&&((a26==1)&&(!(a2==1)&&((a17==2)&&((a5==6)&&(((a21==10)&&(input==1))&&!(a11==1)))))))){ + a29 = 0; + a19 = 2; + a21 = 11; + a1 = 13; + a16 = 11; + a14 = 1; + a13 = 0; + a9 = 7; + a5 = 5; + return -1; + } else if((((a4==1)&&((!(a12==1)&&((a0==1)&&(((input==4)&&(a16==10))&&(a20==1))))&&(a17==2)))&&((a26==1)&&((a19==2)&&((a9==8)&&(!(a13==1)&&(((a1==14)&&(((a5==6)&&(a6==1))&&(a21==11)))&&(a8==1)))))))){ + a1 = 12; + a6 = 0; + a8 = 1; + a0 = 1; + a19 = 1; + a9 = 9; + return 21; + } else if(((!(a2==1)||(((a8==1)||(((a12==1)&&(a21==11))&&(a17==2)))&&!(a20==1)))&&(((!(a8==1)&&((((((((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10))))&&(input==3))&&(a1==13))&&(a28==1))&&(a19==4))&&(a12==1)))&&(a16==8))&&(a3==1)))){ + a21 = 10; + a19 = 1; + a1 = 12; + a11 = 1; + a20 = 1; + a16 = 7; + a26 = 0; + a5 = 4; + a0 = 0; + a9 = 7; + return -1; + } else if((((((((a5==6)&&((a17==2)&&(!(a20==1)&&(!(a24==1)&&((a1==13)&&(input==5))))))&&!(a0==1))&&(a9==8))&&(a2==1))&&!(a26==1))&&((((a21==11)&&(((a12==1)&&(a23==1))&&(a16==7)))||!(a2==1))&&(a19==5)))){ + a1 = 12; + a28 = 1; + a2 = 1; + a9 = 10; + a19 = 1; + a5 = 5; + a8 = 0; + a21 = 12; + return 26; + } else if((((((a21==11)&&(((a12==1)&&(a2==1))&&(a19==3)))&&(a6==1))&&!(a14==1))&&((a17==2)&&(((a20==1)&&((a5==5)&&((((a16==8)&&((a9==7)&&((input==5)&&(a1==13))))&&(a12==1))&&(a3==1))))&&(a11==1))))){ + a11 = 1; + a28 = 1; + a21 = 10; + a16 = 7; + a5 = 4; + a19 = 1; + a1 = 12; + a27 = 0; + return -1; + } else if((((a24==1)&&(((a16==9)&&(((a20==1)&&((a19==5)&&(((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))&&(input==3))))&&(a1==14)))&&(a26==1)))&&((a14==1)&&(!(a6==1)&&(((((a28==1)&&(a14==1))&&(a17==2))&&(a21==10))&&!(a23==1)))))){ + a1 = 13; + a5 = 4; + a12 = 0; + a9 = 9; + a19 = 1; + a16 = 7; + a3 = 0; + a11 = 0; + return 21; + } else if((((a14==1)||((((!(a7==1)&&(a13==1))||!(a2==1))||!(a6==1))&&(a17==2)))&&((((a20==1)&&(!(a0==1)&&(((input==1)&&(((((a1==12)&&(a5==5))&&(a9==7))&&(a19==5))||(((a19==4)&&((a9==11)&&((a5==6)&&(a1==14))))||((a19==5)&&(((a5==4)&&(a1==12))&&(a9==7))))))&&(a16==8))))&&(a28==1))&&(a21==11)))){ + a18 = 0; + a19 = 1; + a21 = 10; + a11 = 1; + a1 = 12; + a16 = 7; + a5 = 4; + a9 = 7; + a26 = 0; + return -1; + } else if((((a1==14)&&((((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7))))&&(input==3)))&&(((a16==9)&&((a21==12)&&((a26==1)||(!(a7==1)&&((a0==1)||(!(a11==1)||(!(a7==1)&&(!(a14==1)&&((a19==4)&&((a23==1)&&(a20==1)))))))))))&&(a17==2)))){ + a4 = 0; + a16 = 7; + a9 = 7; + a12 = 1; + a5 = 4; + a1 = 12; + a21 = 10; + a19 = 1; + a14 = 0; + return -1; + } else if(((((a21==11)&&((((((input==5)&&(((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))))&&(a2==1))&&(a17==2))&&!(a4==1))&&(a20==1)))&&!(a0==1))&&((!(a18==1)&&(((((a12==1)&&(a16==9))||!(a11==1))&&(a1==13))&&(a19==5)))&&!(a8==1)))){ + a1 = 12; + a20 = 0; + a19 = 4; + a5 = 5; + a14 = 0; + a16 = 8; + a13 = 1; + a9 = 8; + a24 = 0; + return 21; + } else if((((a20==1)&&((((a3==1)&&(((a13==1)&&((((a5==5)||(a5==6))&&(input==3))&&!(a7==1)))&&!(a27==1)))&&!(a4==1))&&(a11==1)))&&((a9==9)&&(((((a1==13)&&((a3==1)&&(a16==7)))&&(a19==5))&&(a17==2))&&(a21==10))))){ + a19 = 3; + a9 = 11; + a21 = 12; + a5 = 4; + a28 = 1; + a2 = 1; + return 26; + } else if((((a21==10)&&(((a16==8)&&(!(a20==1)&&((a9==8)&&((a17==2)&&((a28==1)&&(a13==1))))))&&(a3==1)))&&((((a13==1)&&((!(a26==1)&&(((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&(a3==1)))&&!(a26==1)))&&(a19==3))&&(a1==13)))){ + a7 = 0; + a9 = 7; + a1 = 12; + a4 = 0; + a16 = 7; + a19 = 1; + a5 = 4; + a20 = 1; + a8 = 0; + return -1; + } else if((((((a17==2)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==5)))&&(a16==7))&&!(a18==1))&&(!(a7==1)&&(((!(a23==1)||((a19==2)&&(((((a28==1)&&(a2==1))&&(a21==12))&&(a1==14))&&(a20==1))))||!(a6==1))||(a24==1))))){ + a28 = 1; + a21 = 10; + a9 = 7; + a7 = 0; + a16 = 9; + a24 = 0; + a1 = 12; + a19 = 4; + a5 = 5; + return 22; + } else if(((((a12==1)&&(((a5==4)&&(((a17==2)&&((!(a27==1)&&((a20==1)&&(input==3)))&&(a16==10)))&&(a28==1)))&&(a9==7)))&&(a21==12))&&(!(a14==1)&&((a1==13)&&((a19==3)&&((a6==1)&&((a6==1)&&(a11==1)))))))){ + a9 = 9; + a19 = 2; + a18 = 0; + a4 = 0; + a28 = 1; + a21 = 10; + a16 = 7; + return -1; + } else if(((!(a8==1)&&((a20==1)&&((((a12==1)&&(((input==4)&&(a1==13))&&(a5==5)))&&!(a14==1))&&(a21==12))))&&((a19==3)&&((((a17==2)&&(((a9==8)&&((a13==1)&&(a3==1)))||(a24==1)))||(a18==1))&&(a16==10))))){ + a9 = 7; + a5 = 4; + a11 = 1; + a21 = 10; + a12 = 1; + a1 = 12; + a16 = 7; + a28 = 1; + a19 = 1; + return -1; + } else if((((a21==11)&&((a20==1)&&(!(a4==1)&&((a7==1)||(!(a26==1)&&(((a2==1)||!(a13==1))||!(a28==1)))))))&&(((a9==9)&&((a19==3)&&((a6==1)&&((a1==14)&&((a16==11)&&((input==6)&&((a5==5)||(a5==6))))))))&&(a17==2)))){ + a16 = 7; + a19 = 1; + a4 = 0; + a1 = 12; + a9 = 7; + a5 = 4; + a21 = 10; + a11 = 1; + a13 = 1; + return -1; + } else if((((a19==3)&&((a16==8)&&((a17==2)&&((((((a13==1)&&(((input==4)&&(a21==11))&&!(a20==1)))&&(a5==5))&&!(a27==1))&&(a11==1))&&(a9==11)))))&&((a1==14)&&(((a0==1)||((a12==1)||!(a23==1)))&&(a23==1))))){ + a23 = 1; + a20 = 1; + a18 = 0; + a5 = 4; + a21 = 12; + a14 = 0; + return -1; + } else if(((!(a3==1)||(!(a0==1)&&(((a16==11)&&(((a19==1)&&((((a6==1)||(a24==1))&&(a28==1))&&(a21==11)))&&(a17==2)))||!(a2==1))))&&(!(a18==1)&&((a1==12)&&(((input==5)&&(((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))))&&(a20==1)))))){ + a2 = 1; + a5 = 4; + a21 = 10; + a12 = 1; + a9 = 7; + a11 = 1; + a16 = 7; + return -1; + } else if((((((a1==14)&&((a3==1)&&((((a5==4)||(a5==5))&&(input==4))&&!(a7==1))))&&(a20==1))&&(a16==7))&&(((a19==3)&&((a21==11)&&((((a24==1)||(!(a13==1)||((a2==1)||!(a12==1))))&&!(a4==1))&&(a17==2))))&&(a9==10)))){ + a9 = 7; + a21 = 10; + a26 = 0; + a0 = 0; + a5 = 4; + a14 = 0; + a1 = 12; + a19 = 1; + return -1; + } else if((((a16==9)&&((a21==11)&&((a2==1)&&(!(a20==1)&&(!(a4==1)&&(((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==6))&&(a28==1)))))))&&(((((a19==1)&&(((a1==12)&&(a11==1))&&(a17==2)))||!(a28==1))&&(a13==1))&&!(a27==1)))){ + if((a25==1)){ + a19 = 3; + a16 = 8; + a20 = 1; + a18 = 1; + a9 = 11; + a1 = 13; + a15 = 1; + a5 = 4; + a24 = 1; + }else{ + a22 = 1; + a28 = 0; + a1 = 14; + a21 = 10; + a16 = 10; + a14 = 1; + a19 = 2; + a5 = 5; + a9 = 9; + } + return 23; + } else if((((a17==2)&&(((a28==1)&&((!(a14==1)&&((((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&(a23==1))&&!(a7==1)))&&(a9==8)))&&(a20==1)))&&(((((a21==12)&&(((a11==1)&&(a6==1))&&!(a26==1)))&&(a19==1))&&(a16==9))&&(a1==14)))){ + a9 = 7; + a21 = 10; + a2 = 1; + a1 = 12; + a6 = 1; + a8 = 0; + a5 = 4; + a16 = 7; + return -1; + } else if((((((((a27==1)||(((a9==10)&&((a23==1)&&(a19==5)))&&(a23==1)))&&(a28==1))&&(a17==2))&&(a1==13))&&(a21==12))&&(((a23==1)&&((a28==1)&&(((a23==1)&&(((a5==4)||(a5==5))&&(input==5)))&&!(a20==1))))&&(a16==10)))){ + a25 = 0; + a16 = 7; + a5 = 4; + a23 = 0; + a20 = 1; + a19 = 1; + a9 = 11; + a21 = 10; + a2 = 0; + return 22; + } else if((((a28==1)&&((a3==1)&&((a21==11)&&((input==1)&&((a5==5)||(a5==6))))))&&((((a9==8)&&((a1==12)&&((a24==1)||((((a19==4)&&((a23==1)&&(!(a7==1)&&(a11==1))))||(a24==1))&&(a16==8)))))&&(a17==2))&&(a20==1)))){ + if((a2==1)){ + a9 = 10; + a1 = 14; + a16 = 7; + a8 = 0; + a5 = 4; + a18 = 0; + a20 = 0; + a6 = 1; + }else{ + a8 = 0; + a5 = 4; + a19 = 2; + a0 = 0; + a28 = 1; + a16 = 10; + } + return 22; + } else if((((a20==1)&&(((!(a7==1)&&((a1==12)&&((a4==1)||(!(a23==1)||((a2==1)&&(a3==1))))))&&(a17==2))&&(a16==10)))&&(((a21==12)&&(((!(a7==1)&&(((a5==4)||(a5==5))&&(input==4)))&&(a23==1))&&(a9==7)))&&(a19==3)))){ + a21 = 10; + a16 = 7; + a19 = 1; + a5 = 4; + a11 = 1; + a26 = 0; + a13 = 1; + return -1; + } else if(((((a9==11)&&(((((a28==1)&&(!(a20==1)&&((((input==6)&&(a5==6))&&!(a26==1))&&(a11==1))))&&(a21==12))&&(a3==1))&&(a19==4)))&&(a6==1))&&(((((a17==2)&&(a12==1))&&(a1==12))||(a8==1))&&(a16==9)))){ + a1 = 13; + a22 = 1; + a19 = 2; + a5 = 5; + a4 = 1; + a9 = 10; + a25 = 1; + return -1; + } else if(((((((((a19==4)&&(a13==1))||(a8==1))&&(a5==5))||(a4==1))||!(a12==1))&&(a21==12))&&((a16==9)&&((a9==11)&&(((a20==1)&&(((((input==4)&&(a17==2))&&!(a26==1))&&(a1==14))&&!(a0==1)))&&(a2==1)))))){ + a9 = 7; + a16 = 7; + a1 = 12; + a21 = 10; + a8 = 0; + a4 = 0; + a0 = 0; + a19 = 1; + a5 = 4; + return -1; + } else if((((a3==1)&&((a20==1)&&((a14==1)||((((((a16==9)&&((a17==2)&&(a3==1)))&&(a21==10))&&!(a14==1))||(a27==1))||!(a13==1)))))&&(!(a0==1)&&((a1==14)&&((a19==5)&&((a9==7)&&(((a5==4)||(a5==5))&&(input==1)))))))){ + a8 = 0; + a1 = 13; + a7 = 0; + a21 = 12; + a14 = 0; + a16 = 10; + a5 = 5; + a9 = 11; + a19 = 4; + return 25; + } else if((((((a17==2)&&((a19==4)&&(a28==1)))&&!(a18==1))&&(a16==7))&&(!(a18==1)&&((a2==1)&&(!(a26==1)&&((((a21==11)&&((((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==4))&&(a20==1))&&!(a24==1)))&&!(a26==1))&&(a1==13))))))){ + a16 = 8; + a8 = 0; + a18 = 0; + a9 = 7; + a5 = 6; + a1 = 12; + return 21; + } else if((((a19==1)&&(!(a11==1)||(!(a14==1)&&((!(a14==1)&&((a3==1)&&!(a24==1)))&&!(a14==1)))))&&(((a21==10)&&((a20==1)&&((a16==8)&&((((input==4)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5))))&&(a11==1))&&(a1==12)))))&&(a17==2)))){ + if((a15==1)){ + a20 = 0; + a27 = 0; + a21 = 11; + a9 = 7; + a5 = 5; + a1 = 14; + a24 = 0; + }else{ + a5 = 4; + a9 = 10; + a19 = 2; + a14 = 0; + a3 = 1; + a16 = 9; + a21 = 12; + } + return 25; + } else if((((((a6==1)&&((!(a20==1)&&((input==3)&&(a19==2)))&&(a11==1)))&&(a21==11))&&(a16==8))&&(((a17==2)&&(((!(a24==1)&&((((a3==1)||(a27==1))&&(a9==10))&&(a2==1)))||(a27==1))&&(a1==13)))&&(a5==5)))){ + a5 = 4; + a21 = 10; + a16 = 7; + a1 = 12; + a26 = 0; + a9 = 7; + a19 = 1; + a4 = 0; + a20 = 1; + return -1; + } else if((((((((a2==1)&&(((((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4)))&&(input==4)))&&!(a8==1))&&(a12==1))&&!(a4==1))&&(a12==1))&&((((a20==1)&&((a21==11)&&(((a16==8)&&((a28==1)&&(a17==2)))&&(a1==12))))&&(a3==1))&&(a19==2)))){ + a16 = 7; + a27 = 0; + a19 = 1; + a5 = 4; + a0 = 0; + a28 = 1; + a9 = 7; + a21 = 10; + return -1; + } else if((((a11==1)&&((((((a2==1)&&((!(a24==1)&&((input==5)&&(a19==5)))&&!(a24==1)))&&(a9==9))&&!(a20==1))&&(a12==1))&&(a1==12)))&&(!(a6==1)||((a5==6)&&((a16==9)&&(((a23==1)&&(a17==2))&&(a21==11))))))){ + if((a7==1)){ + a29 = 1; + a21 = 12; + a20 = 1; + a8 = 1; + a9 = 8; + a1 = 14; + a3 = 0; + }else{ + a19 = 1; + a6 = 0; + a20 = 1; + a15 = 0; + a1 = 14; + a29 = 1; + a9 = 7; + a16 = 10; + a21 = 10; + } + return -1; + } else if(((((a9==11)&&(!(a24==1)&&((a23==1)&&((!(a4==1)&&((input==6)&&((a5==4)||(a5==5))))&&!(a8==1)))))&&(a17==2))&&(!(a20==1)&&(((a11==1)&&(((a1==12)&&(((a21==11)&&(a28==1))&&(a19==5)))&&(a13==1)))&&(a16==8))))){ + if((a4==1)){ + a10 = 1; + a20 = 1; + a21 = 10; + a5 = 5; + a19 = 1; + a25 = 1; + a16 = 7; + a24 = 1; + a9 = 9; + a1 = 13; + }else{ + a26 = 1; + a16 = 7; + a5 = 6; + a19 = 1; + a20 = 1; + a22 = 0; + a1 = 14; + a21 = 10; + a10 = 1; + } + return -1; + } else if(((!(a7==1)&&((a16==10)&&(!(a24==1)&&(((a11==1)&&((!(a27==1)&&((a12==1)&&((a17==2)&&((a3==1)&&(a21==10)))))&&!(a20==1)))&&!(a26==1)))))&&((a1==13)&&((((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11)))&&(input==3))&&(a19==3))))){ + a19 = 2; + a16 = 7; + a2 = 0; + a9 = 10; + a20 = 1; + a1 = 12; + a5 = 5; + a6 = 0; + a8 = 1; + return -1; + } else if(((!(a12==1)||(((a3==1)||(a4==1))||(a8==1)))&&((((a17==2)&&((a1==13)&&(((a3==1)&&((((a16==9)&&(((input==5)&&((a5==5)||(a5==6)))&&(a9==10)))&&(a21==11))&&!(a18==1)))&&!(a8==1))))&&!(a20==1))&&(a19==2)))){ + a10 = 1; + a12 = 0; + a1 = 12; + a9 = 11; + a20 = 1; + a21 = 10; + a5 = 4; + a22 = 0; + a16 = 7; + return -1; + } else if(((((a4==1)||(!(a14==1)&&((a21==10)&&((a23==1)&&((a1==14)&&((a9==8)&&(!(a3==1)||(a23==1))))))))||(a18==1))&&((a6==1)&&((a20==1)&&((a19==4)&&(((a16==8)&&((input==5)&&((a5==4)||(a5==5))))&&(a17==2))))))){ + a19 = 1; + a21 = 12; + a5 = 6; + a23 = 1; + a4 = 0; + a2 = 1; + return 21; + } else if(((!(a8==1)&&(((a17==2)&&((a23==1)&&((((a23==1)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==6)))&&(a19==1))&&(a1==14))))&&(a3==1)))&&((a11==1)&&((a23==1)&&(((a21==12)&&((a16==7)&&(a3==1)))&&(a20==1)))))){ + a9 = 11; + a1 = 13; + a2 = 1; + a0 = 0; + a7 = 0; + a5 = 5; + a16 = 9; + a21 = 10; + return 25; + } else if(((((a17==2)&&((((((((a28==1)&&(a13==1))&&!(a8==1))&&(a1==13))&&(a20==1))&&(a5==4))&&(a9==10))&&(a16==11)))&&!(a7==1))&&((!(a24==1)&&(((a2==1)&&((input==6)&&(a21==10)))&&(a19==2)))&&(a13==1)))){ + a2 = 1; + a9 = 11; + a11 = 1; + a14 = 0; + a21 = 11; + a5 = 6; + return 21; + } else if((((a5==5)&&((a20==1)&&(((a3==1)&&!(a8==1))||!(a11==1))))&&((a21==12)&&(((a9==10)&&(((!(a4==1)&&((((a19==1)&&((input==3)&&(a17==2)))&&(a6==1))&&(a23==1)))&&(a3==1))&&(a16==11)))&&(a1==12))))){ + a5 = 4; + a13 = 1; + a21 = 10; + a16 = 7; + a11 = 1; + a6 = 1; + a9 = 7; + return -1; + } else if(((((a16==8)&&((a24==1)||((a2==1)&&((a28==1)||(a8==1)))))&&(a20==1))&&((((((((((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&(a28==1))&&(a11==1))&&!(a0==1))&&(a1==13))&&(a19==1))&&(a17==2))&&(a21==12))&&(a9==7)))){ + a11 = 1; + a7 = 0; + a21 = 10; + a1 = 12; + a5 = 4; + a12 = 1; + a16 = 7; + return -1; + } else if(((!(a24==1)&&(!(a24==1)&&((!(a18==1)&&((a19==5)&&(((!(a20==1)&&(input==6))&&!(a18==1))&&(a28==1))))&&(a23==1))))&&((a16==7)&&((a17==2)&&((a5==5)&&((a1==12)&&((a21==10)&&((a11==1)&&(a9==8))))))))){ + a5 = 4; + a27 = 0; + a19 = 1; + a18 = 0; + a9 = 7; + a14 = 0; + a20 = 1; + return -1; + } else if((((a1==12)&&(((a16==11)&&((a18==1)||((((a11==1)&&(a23==1))||!(a28==1))&&(a2==1))))&&(a21==10)))&&((a20==1)&&((a17==2)&&(((a19==2)&&((((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9)))&&(input==3))&&!(a24==1)))&&(a11==1)))))){ + a9 = 7; + a24 = 0; + a5 = 4; + a16 = 7; + a19 = 1; + a2 = 1; + return -1; + } else if(((((!(a23==1)||((a21==11)&&(((a4==1)||((a16==7)&&(!(a2==1)||(a2==1))))||(a14==1))))&&(a9==11))&&(a1==13))&&(((!(a7==1)&&((a19==4)&&(!(a18==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))))&&(a17==2))&&(a20==1)))){ + a5 = 5; + a27 = 0; + a4 = 0; + a16 = 8; + a6 = 1; + return 23; + } else if((((a4==1)||((((a28==1)&&(((a21==10)&&(((a28==1)||!(a11==1))&&(a5==5)))&&!(a20==1)))&&!(a27==1))&&(a16==11)))&&((a1==14)&&((((a19==1)&&(((input==4)&&(a9==9))&&!(a7==1)))&&!(a7==1))&&(a17==2))))){ + if((a18==1)){ + a20 = 1; + a16 = 7; + a1 = 13; + a0 = 1; + a8 = 1; + a9 = 7; + }else{ + a16 = 7; + a19 = 5; + a4 = 1; + a2 = 0; + a21 = 11; + a1 = 13; + a5 = 6; + a25 = 0; + } + return -1; + } else if(((((a12==1)&&(((a21==11)&&((a19==3)&&(((a20==1)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==3)))&&(a2==1))))&&(a16==11)))&&(a23==1))&&((((a14==1)||(((a17==2)&&(a23==1))&&(a1==14)))&&(a13==1))&&!(a4==1)))){ + a16 = 7; + a9 = 7; + a11 = 1; + a21 = 10; + a26 = 0; + a5 = 4; + a14 = 0; + a1 = 12; + a19 = 1; + return -1; + } else if(((((a19==2)&&((a1==12)&&(((a2==1)&&(((a16==7)&&((!(a7==1)&&(((a2==1)&&((input==5)&&((a5==5)||(a5==6))))&&!(a20==1)))&&(a13==1)))&&(a2==1)))&&(a21==10))))&&(a17==2))&&((a8==1)||((a9==9)&&(a23==1))))){ + a23 = 1; + a20 = 1; + a7 = 0; + a28 = 1; + a5 = 4; + a19 = 3; + return 22; + } else if((((((a4==1)&&((a4==1)&&((a26==1)&&((a12==1)&&!(a23==1)))))&&(a21==11))&&(a19==2))&&((a20==1)&&(((a17==2)&&((((input==6)&&(((((a5==6)&&(a1==12))&&(a9==11))||(((a1==13)&&(a5==4))&&(a9==7)))||(((a1==13)&&(a5==5))&&(a9==7))))&&(a14==1))&&(a7==1)))&&(a16==7))))){ + a20 = 0; + a10 = 1; + a9 = 11; + a2 = 0; + a5 = 6; + a4 = 1; + a1 = 14; + return 25; + } else if((((a21==12)&&((a23==1)&&((a17==2)&&((!(a20==1)&&((a28==1)&&((input==1)&&((a5==5)||(a5==6)))))&&!(a4==1)))))&&((a19==1)&&((a1==12)&&((a16==9)&&((a9==10)&&((((a11==1)&&(a12==1))&&(a12==1))||(a27==1)))))))){ + a20 = 1; + a12 = 0; + a22 = 0; + a5 = 6; + a16 = 10; + a19 = 4; + a6 = 0; + a1 = 14; + a21 = 11; + return -1; + } else if((((((a16==8)&&(a6==1))&&(a17==2))&&(a12==1))&&(((!(a27==1)&&((a1==14)&&(((!(a4==1)&&(!(a20==1)&&(((a21==11)&&((input==6)&&((a5==5)||(a5==6))))&&(a19==5))))&&(a9==11))&&(a11==1))))&&(a12==1))&&!(a18==1)))){ + a19 = 1; + a5 = 6; + a9 = 10; + a26 = 1; + a16 = 7; + a1 = 12; + a20 = 1; + a15 = 1; + a21 = 10; + return 23; + } else if(((((a16==8)&&(!(a26==1)&&((a17==2)&&((a20==1)&&((a21==12)&&(((a6==1)&&((input==1)&&(((a9==7)&&((a1==13)&&(a5==4)))||(((a9==11)&&((a5==5)&&(a1==12)))||((a9==11)&&((a1==12)&&(a5==6)))))))&&!(a24==1)))))))&&(a3==1))&&(((a19==2)&&((a0==1)||(a13==1)))||(a14==1)))){ + a27 = 0; + a6 = 1; + a4 = 0; + a1 = 12; + a16 = 10; + a5 = 4; + a9 = 8; + a19 = 1; + return 25; + } else if(((((a1==13)&&(!(a28==1)||((((!(a28==1)||((a12==1)||!(a11==1)))&&(a28==1))||!(a28==1))&&(a21==10))))&&(a20==1))&&((a17==2)&&(((a9==10)&&(!(a4==1)&&(((input==4)&&((a5==5)||(a5==6)))&&(a19==5))))&&(a16==11))))){ + a14 = 0; + a9 = 7; + a1 = 12; + a19 = 1; + a5 = 4; + a23 = 1; + a24 = 0; + a16 = 7; + return -1; + } else if(((((!(a20==1)&&(((a6==1)&&((a3==1)&&(((((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(input==6))&&(a1==12))))&&(a17==2)))&&(a16==11))&&(a19==3))&&((!(a28==1)||((((a21==10)&&(a3==1))&&(a13==1))||(a24==1)))||!(a3==1)))){ + if((a22==1)){ + a5 = 5; + a16 = 8; + a13 = 0; + a25 = 1; + a26 = 1; + a9 = 9; + a21 = 12; + a1 = 14; + a19 = 5; + }else{ + a9 = 8; + a5 = 5; + a19 = 2; + a23 = 0; + a16 = 8; + a1 = 14; + a11 = 0; + a8 = 1; + a20 = 1; + } + return -1; + } else if(((((a19==4)&&((((a16==7)&&(((input==3)&&(a9==10))&&!(a24==1)))&&!(a26==1))&&(a21==11)))&&!(a18==1))&&((a17==2)&&(((a1==13)&&((((a5==6)&&(!(a20==1)&&(a28==1)))||(a14==1))||(a27==1)))||!(a28==1))))){ + a19 = 1; + a9 = 7; + a0 = 0; + a8 = 0; + a5 = 4; + a14 = 0; + a21 = 10; + a20 = 1; + a1 = 12; + return -1; + } else if((((a19==5)&&((((!(a20==1)&&((a2==1)||!(a28==1)))&&(a17==2))||!(a3==1))&&!(a27==1)))&&((a1==14)&&(((((((input==6)&&(((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))))&&(a16==9))&&(a23==1))&&(a21==11))&&(a28==1))&&(a23==1))))){ + a5 = 4; + a20 = 1; + a1 = 12; + a29 = 0; + a10 = 0; + a9 = 9; + a15 = 1; + a21 = 12; + a19 = 3; + return -1; + } else if(((((a17==2)&&(((a12==1)||!(a11==1))&&(a1==14)))||!(a28==1))&&((a12==1)&&((a13==1)&&(!(a4==1)&&(((((a21==11)&&(((a20==1)&&((input==3)&&(a9==10)))&&(a19==3)))&&(a16==8))&&(a2==1))&&(a5==6))))))){ + a19 = 1; + a26 = 0; + a4 = 0; + a18 = 0; + a16 = 7; + a1 = 12; + a9 = 7; + a21 = 10; + a5 = 4; + return -1; + } else if((((a17==2)&&((a28==1)&&((a19==3)&&(!(a18==1)&&((a16==9)&&((a1==14)&&((a21==11)&&(a28==1))))))))&&(!(a4==1)&&(((!(a18==1)&&((a9==11)&&(!(a4==1)&&((a20==1)&&(input==5)))))&&(a5==6))&&!(a26==1))))){ + a19 = 1; + a16 = 10; + a4 = 0; + a2 = 1; + a5 = 4; + a18 = 0; + a21 = 10; + a9 = 7; + return 21; + } else if(((((((!(a0==1)&&((a2==1)&&(a16==10)))&&(a17==2))&&(a20==1))||!(a12==1))&&(a3==1))&&((((((a9==9)&&(((a1==12)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))&&!(a14==1)))&&!(a18==1))&&(a19==3))&&!(a18==1))&&(a21==12)))){ + a5 = 4; + a9 = 7; + a16 = 7; + a24 = 0; + a21 = 10; + a19 = 1; + a7 = 0; + a3 = 1; + return -1; + } else if(((!(a14==1)&&(((a16==7)&&(!(a6==1)||((a17==2)&&(a2==1))))||(a7==1)))&&((!(a26==1)&&((((a19==1)&&(((input==1)&&((((a9==11)&&((a1==13)&&(a5==6)))||((a9==7)&&((a5==4)&&(a1==14))))||((a9==7)&&((a1==14)&&(a5==5)))))&&!(a20==1)))&&(a21==12))&&(a6==1)))&&(a6==1)))){ + a21 = 11; + a16 = 8; + a20 = 1; + a5 = 4; + a1 = 13; + a14 = 0; + a9 = 11; + a19 = 3; + a2 = 1; + a23 = 1; + return 25; + } else if((((((a16==10)&&(!(a18==1)&&((a8==1)||((a28==1)&&((((a2==1)||!(a2==1))&&(a21==10))&&!(a20==1))))))||!(a3==1))&&(a19==1))&&((a17==2)&&((a1==13)&&(((a28==1)&&(((a5==4)||(a5==5))&&(input==3)))&&(a9==11)))))){ + a18 = 1; + a9 = 7; + a1 = 14; + a20 = 1; + a25 = 0; + a16 = 7; + a5 = 5; + return -1; + } else if(((!(a24==1)&&((!(a0==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))&&(a23==1)))&&(((((((a28==1)&&(((a17==2)&&((a21==12)&&((a11==1)&&(a20==1))))&&(a16==9)))&&(a9==10))&&(a1==12))&&(a19==4))||(a7==1))||!(a6==1)))){ + a24 = 0; + a1 = 14; + a3 = 1; + a0 = 0; + a19 = 2; + a5 = 4; + a21 = 10; + return 21; + } else if((((a21==11)&&(((a6==1)&&((a5==5)&&(((((input==4)&&(a1==14))&&(a12==1))&&!(a20==1))&&!(a7==1))))&&(a9==7)))&&(!(a7==1)&&(!(a13==1)||((((a17==2)&&((a12==1)&&(a16==8)))&&!(a18==1))&&(a19==1)))))){ + a19 = 5; + a11 = 1; + a5 = 4; + a21 = 10; + a28 = 1; + a7 = 0; + a20 = 1; + return -1; + } else if((((a27==1)&&(((((a16==7)&&(!(a12==1)&&((a1==14)&&(input==1))))&&!(a23==1))&&(a19==5))&&(a17==2)))&&((((a18==1)&&((((a9==8)&&((a12==1)&&!(a12==1)))&&(a21==12))&&!(a20==1)))&&!(a2==1))&&(a5==6)))){ + a20 = 1; + a16 = 8; + a2 = 0; + a4 = 1; + a5 = 4; + a9 = 9; + a24 = 1; + a1 = 12; + a21 = 10; + a19 = 1; + return -1; + } else if(((((a1==13)&&(((((a5==4)&&(input==4))&&(a2==1))&&(a9==11))&&(a19==4)))&&!(a4==1))&&(!(a8==1)&&((a8==1)||((!(a20==1)&&(((((a12==1)&&(a17==2))||(a27==1))||(a18==1))&&(a21==12)))&&(a16==9)))))){ + if((a7==1)){ + a8 = 1; + a4 = 1; + a14 = 1; + a5 = 6; + a19 = 1; + a21 = 10; + a16 = 7; + a20 = 1; + a9 = 10; + }else{ + a19 = 2; + a21 = 10; + a16 = 10; + a27 = 1; + a13 = 0; + a9 = 9; + a1 = 14; + a20 = 1; + a29 = 1; + } + return 25; + } else if((((a16==8)&&((a9==7)&&(((a21==10)&&((a5==4)&&(((((input==4)&&!(a20==1))&&(a13==1))&&!(a14==1))&&(a19==5))))&&!(a14==1))))&&((!(a26==1)&&((((a28==1)&&(a23==1))&&(a1==13))&&(a17==2)))||(a0==1)))){ + a19 = 1; + a1 = 12; + a4 = 0; + a20 = 1; + a12 = 1; + a16 = 7; + a13 = 1; + return -1; + } else if((((a17==2)&&((a28==1)&&(((a21==12)&&(!(a27==1)&&((a23==1)&&(((a5==5)||(a5==6))&&(input==1)))))&&(a20==1))))&&((a16==10)&&(!(a11==1)||((((a19==1)&&((!(a26==1)&&(a3==1))&&!(a26==1)))&&(a9==10))&&(a1==14)))))){ + a14 = 0; + a5 = 4; + a26 = 0; + a19 = 2; + a9 = 9; + a21 = 10; + a23 = 1; + a16 = 7; + a1 = 13; + return 25; + } else if(((!(a11==1)||(((a19==2)&&(((a17==2)&&((a28==1)||(a27==1)))&&(a21==11)))||!(a11==1)))&&((a1==13)&&((a2==1)&&((((a28==1)&&((a16==7)&&((input==5)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8))))))&&(a20==1))&&(a28==1)))))){ + if((a26==1)){ + a20 = 0; + a13 = 1; + a5 = 4; + a23 = 1; + a14 = 0; + a21 = 12; + a9 = 10; + }else{ + a19 = 3; + a27 = 0; + a5 = 5; + a16 = 8; + a21 = 10; + a9 = 7; + a3 = 1; + } + return 21; + } else if(((((((((a2==1)&&(a28==1))&&(a21==10))||(a27==1))&&!(a20==1))&&(a1==14))&&(a19==2))&&(((!(a26==1)&&(!(a14==1)&&(((((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&(a16==9))&&(a6==1))&&(a3==1))))&&(a17==2))&&(a9==11)))){ + if((a8==1)){ + a23 = 0; + a5 = 6; + a12 = 0; + a19 = 1; + a1 = 12; + a9 = 7; + a20 = 1; + a29 = 1; + a16 = 7; + }else{ + a1 = 12; + a19 = 3; + a9 = 8; + a3 = 0; + a4 = 1; + a28 = 0; + a5 = 4; + } + return -1; + } else if(((((a6==1)&&((((((input==6)&&((a5==4)||(a5==5)))&&(a17==2))&&(a6==1))&&!(a26==1))&&!(a0==1)))&&(a19==3))&&((!(a6==1)||((a12==1)&&((a9==10)&&((((a20==1)&&(a11==1))&&(a21==11))&&(a1==13)))))&&(a16==7)))){ + a19 = 1; + a16 = 8; + a4 = 0; + a5 = 4; + a28 = 1; + a14 = 0; + a9 = 11; + a1 = 12; + return 21; + } else if(((((a1==14)&&((((a12==1)&&(((a3==1)&&(a20==1))&&(a23==1)))&&!(a27==1))&&(a21==10)))||!(a11==1))&&(((((a17==2)&&((a6==1)&&((((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(input==6))))&&(a12==1))&&(a16==10))&&(a19==5)))){ + a23 = 1; + a9 = 7; + a5 = 4; + a16 = 7; + a19 = 1; + a0 = 0; + a1 = 12; + a28 = 1; + return -1; + } else if((((a13==1)&&(((a13==1)&&(a21==12))&&(a6==1)))&&(((((a28==1)&&(((((a17==2)&&(((((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(input==6))&&!(a20==1)))&&(a19==5))&&(a16==9))&&!(a8==1)))&&(a1==12))&&!(a27==1))&&!(a18==1)))){ + a1 = 14; + a16 = 7; + a5 = 6; + a29 = 1; + a19 = 1; + a22 = 1; + a9 = 10; + a21 = 10; + a10 = 0; + a20 = 1; + return 22; + } else if((((a8==1)||(!(a27==1)&&((((((a17==2)&&((a6==1)&&!(a14==1)))&&(a11==1))&&!(a0==1))&&(a21==12))&&(a1==12))))&&((a20==1)&&(((((a16==11)&&(((a5==5)||(a5==6))&&(input==1)))&&(a19==5))&&(a9==9))&&!(a24==1))))){ + a12 = 1; + a0 = 0; + a9 = 7; + a24 = 0; + a19 = 1; + a5 = 4; + a16 = 7; + a21 = 10; + return -1; + } else if((((a21==12)&&((!(a7==1)&&((a2==1)&&(((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))&&(input==5))))&&(a19==5)))&&(!(a11==1)||(((!(a13==1)||(((a16==7)&&((a17==2)&&((a6==1)&&(a1==12))))&&!(a20==1)))||(a8==1))&&(a12==1))))){ + a20 = 1; + a24 = 0; + a21 = 10; + a16 = 8; + a9 = 9; + a4 = 0; + a5 = 6; + a7 = 0; + return 26; + } else if(((((a17==2)&&((a1==12)&&((a21==12)&&((((a16==10)&&(!(a3==1)||(a13==1)))&&(a19==4))&&(a9==10)))))&&!(a20==1))&&((!(a7==1)&&(!(a7==1)&&(!(a14==1)&&((a12==1)&&((input==1)&&((a5==4)||(a5==5)))))))&&!(a27==1)))){ + a22 = 1; + a2 = 0; + a1 = 14; + a20 = 1; + a19 = 5; + a5 = 4; + a9 = 7; + a16 = 9; + a10 = 0; + return 21; + } else if(((!(a4==1)&&(!(a4==1)&&((((((((a9==7)&&((a1==13)&&(a5==4)))||((((a5==5)&&(a1==12))&&(a9==11))||(((a5==6)&&(a1==12))&&(a9==11))))&&(input==4))&&(a16==8))&&!(a4==1))&&(a19==2))&&!(a20==1))))&&((((a3==1)&&(((a17==2)&&(a2==1))||(a27==1)))&&(a21==10))||!(a23==1)))){ + a1 = 12; + a0 = 0; + a20 = 1; + a9 = 7; + a19 = 1; + a5 = 4; + a16 = 7; + a26 = 0; + return -1; + } else if((((!(a0==1)&&(((((((a12==1)&&(((a5==5)||(a5==6))&&(input==6)))&&(a16==10))&&!(a24==1))&&(a21==12))&&(a9==9))&&(a20==1)))&&(a6==1))&&(((((a17==2)&&((a1==12)&&(a2==1)))||!(a13==1))&&(a19==2))&&!(a8==1)))){ + a11 = 1; + a14 = 0; + a12 = 1; + a21 = 10; + a5 = 4; + a1 = 13; + a16 = 7; + return -1; + } else if(((!(a13==1)&&(((!(a23==1)&&(((((input==3)&&((a5==5)||(a5==6)))&&(a21==11))&&(a9==7))&&!(a12==1)))&&(a16==8))&&(a19==2)))&&((a0==1)&&((((((a13==1)&&(a26==1))&&!(a20==1))&&!(a28==1))&&(a17==2))&&(a1==13))))){ + a21 = 10; + a5 = 6; + a20 = 1; + a13 = 0; + a19 = 1; + a0 = 1; + a16 = 7; + a9 = 9; + a29 = 1; + return 25; + } else if((((!(a8==1)&&(!(a4==1)&&((a20==1)&&((((input==4)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8))))&&!(a24==1))&&!(a4==1)))))&&(a16==11))&&((a19==5)&&(((((a21==12)&&((a28==1)&&(a17==2)))||(a18==1))||(a24==1))&&(a1==12))))){ + a26 = 0; + a5 = 4; + a9 = 7; + a21 = 10; + a13 = 1; + a19 = 1; + a16 = 7; + a23 = 1; + return -1; + } else if((((a21==12)&&(((a17==2)&&(((((a5==5)||(a5==6))&&(input==4))&&!(a4==1))&&(a9==10)))&&(a16==11)))&&(((((a7==1)||((a20==1)&&(((a14==1)||((a2==1)||!(a3==1)))||!(a3==1))))||!(a6==1))&&(a1==13))&&(a19==5)))){ + a21 = 10; + a26 = 0; + a9 = 7; + a7 = 0; + a27 = 0; + a1 = 12; + a5 = 4; + a16 = 7; + a19 = 1; + return -1; + } else if((((a27==1)||(((a21==11)&&((a16==11)&&((!(a0==1)&&(a3==1))&&(a20==1))))&&(a1==14)))&&(!(a4==1)&&(((a17==2)&&(((((((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6))))&&(input==5))&&!(a24==1))&&!(a0==1))&&(a19==1)))&&!(a27==1))))){ + if((a18==1)){ + a12 = 1; + a9 = 10; + a5 = 4; + a6 = 1; + a16 = 8; + a1 = 12; + a20 = 0; + a19 = 5; + }else{ + a9 = 11; + a5 = 6; + a13 = 1; + a6 = 1; + a1 = 13; + a16 = 10; + a21 = 10; + a18 = 0; + } + return 21; + } else if(((((((a21==10)&&((a13==1)&&(((a13==1)&&(!(a14==1)&&((a5==4)&&(input==1))))&&!(a0==1))))&&(a16==9))&&(a1==13))&&!(a20==1))&&((a17==2)&&(((a19==4)&&(((a12==1)&&(a13==1))||(a18==1)))&&(a9==8))))){ + a2 = 0; + a19 = 2; + a7 = 1; + a25 = 0; + a21 = 11; + a16 = 10; + return -1; + } else if((((a17==2)&&(((a16==7)&&((a20==1)&&((a6==1)&&(((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a1==12)))))&&(a19==5)))&&((((((a18==1)||(((a13==1)||(a24==1))&&(a21==11)))||!(a11==1))&&(a9==7))&&(a2==1))&&!(a18==1)))){ + a19 = 1; + a24 = 0; + a21 = 10; + a3 = 1; + a5 = 4; + return -1; + } else if((((a9==7)&&(!(a0==1)&&((a12==1)&&((((input==4)&&(a21==12))&&!(a26==1))&&(a1==13)))))&&(((a20==1)&&((a16==8)&&((a5==5)&&((a19==4)&&(((a17==2)&&((a6==1)&&(a12==1)))&&(a12==1))))))||(a14==1)))){ + a5 = 4; + a21 = 10; + a27 = 0; + a19 = 1; + a1 = 12; + a16 = 7; + a28 = 1; + return -1; + } else if((((a12==1)&&(!(a23==1)||((((a6==1)&&!(a0==1))&&(a1==14))&&(a16==8))))&&((!(a4==1)&&(((((a19==5)&&(((input==5)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5))))&&(a17==2)))&&!(a8==1))&&(a21==11))&&(a20==1)))&&!(a14==1)))){ + a16 = 7; + a19 = 2; + a5 = 5; + a21 = 10; + a9 = 9; + a26 = 0; + a27 = 0; + a1 = 13; + return -1; + } else if(((!(a6==1)||(((((a16==8)&&((a17==2)&&(a2==1)))||!(a3==1))&&(a19==4))&&!(a24==1)))&&((!(a0==1)&&(((a20==1)&&(!(a0==1)&&((((a9==11)&&((a5==6)&&(a1==13)))||((a9==7)&&((a5==4)&&(a1==14))))&&(input==6))))&&(a21==11)))&&(a6==1)))){ + a27 = 0; + a1 = 13; + a21 = 10; + a19 = 2; + a6 = 1; + a5 = 4; + a16 = 7; + a9 = 9; + a11 = 1; + return 25; + } else if(((((a16==7)&&((!(a20==1)&&(!(a14==1)&&((!(a14==1)&&((a6==1)&&(((((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(input==1))&&(a28==1))))&&(a3==1))))&&(a21==11)))&&(a19==2))&&((a17==2)&&((a1==12)&&((a13==1)&&(a2==1)))))){ + a19 = 1; + a5 = 4; + a9 = 7; + a20 = 1; + a0 = 0; + a21 = 10; + a7 = 0; + a23 = 1; + return -1; + } else if((((a2==1)&&((a9==8)&&(((a19==4)&&(((!(a20==1)&&(!(a26==1)&&(((a5==5)||(a5==6))&&(input==6))))&&!(a18==1))&&!(a8==1)))&&(a16==10))))&&((a17==2)&&(((!(a24==1)&&((a1==14)&&(a2==1)))&&(a21==12))&&!(a4==1))))){ + a2 = 0; + a9 = 9; + a1 = 13; + a16 = 8; + a12 = 0; + a29 = 0; + a5 = 6; + return 22; + } else if(((((a1==14)&&(!(a26==1)&&((a3==1)&&(a17==2))))&&!(a14==1))&&(((a19==4)&&((((a9==9)&&((!(a26==1)&&((!(a26==1)&&((input==6)&&((a5==4)||(a5==5))))&&(a13==1)))&&(a21==11)))&&(a16==9))&&(a20==1)))&&(a13==1)))){ + a6 = 1; + a23 = 1; + a1 = 13; + a16 = 7; + a28 = 1; + a9 = 10; + a5 = 4; + a21 = 10; + a19 = 2; + return 21; + } else if((((a16==9)&&((!(a20==1)&&(!(a27==1)&&((((a17==2)&&(((a5==5)||(a5==6))&&(input==5)))&&(a1==12))&&!(a0==1))))&&(a21==12)))&&((a11==1)&&(((((!(a28==1)||(a3==1))||!(a11==1))&&(a9==8))||(a14==1))&&(a19==5))))){ + if((a23==1)){ + a5 = 4; + a19 = 4; + a29 = 0; + a13 = 0; + a28 = 0; + a16 = 10; + }else{ + a25 = 1; + a5 = 6; + a21 = 10; + a16 = 7; + a9 = 11; + a10 = 0; + a18 = 1; + a19 = 2; + a20 = 1; + } + return -1; + } else if((((!(a14==1)&&((a21==11)&&(((a13==1)&&(((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5)))&&(input==4)))&&(a13==1))))&&(a20==1))&&((((a17==2)&&((((a19==2)&&((a2==1)||(a8==1)))&&(a1==12))||(a24==1)))&&!(a14==1))&&(a16==9)))){ + a21 = 10; + a16 = 7; + a5 = 4; + a23 = 1; + a4 = 0; + a9 = 7; + a19 = 1; + a2 = 1; + return -1; + } else if(((!(a23==1)||(((a9==10)&&(((((a12==1)&&(a19==2))&&(a17==2))&&(a16==8))||(a14==1)))||(a24==1)))&&(!(a20==1)&&((a11==1)&&(((a21==11)&&(!(a14==1)&&((a1==14)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))))&&!(a24==1)))))){ + a5 = 5; + a20 = 1; + a21 = 10; + a4 = 0; + a16 = 7; + a1 = 13; + a26 = 0; + a18 = 0; + return 21; + } else if((((a20==1)&&((((a0==1)||((((a3==1)&&(((((a12==1)&&(a21==10))&&(a17==2))&&(a16==8))&&!(a4==1)))&&(a3==1))||(a0==1)))&&(a19==5))&&(a11==1)))&&((a1==14)&&(((input==3)&&((a5==4)||(a5==5)))&&(a9==11))))){ + a16 = 10; + a6 = 1; + a5 = 4; + a12 = 1; + a19 = 2; + a9 = 7; + a18 = 0; + return 25; + } else if(((!(a18==1)&&(!(a0==1)&&((((a1==14)&&((a11==1)&&(((a5==5)||(a5==6))&&(input==5))))&&(a20==1))&&(a21==12))))&&(((((a26==1)||((((a2==1)&&(a16==9))&&(a9==8))&&(a19==3)))&&(a17==2))&&(a23==1))&&!(a4==1)))){ + a18 = 0; + a9 = 7; + a1 = 12; + a5 = 4; + a21 = 10; + a7 = 0; + a16 = 7; + a3 = 1; + a19 = 1; + return -1; + } else if(((((!(a18==1)&&(((a17==2)&&((a2==1)&&((((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6))))&&(input==4))))&&(a28==1)))&&(a16==7))&&(a20==1))&&(((((((a12==1)&&(a3==1))&&(a23==1))&&(a2==1))&&(a21==10))&&(a1==14))&&(a19==3)))){ + a5 = 4; + a9 = 7; + a1 = 12; + a24 = 0; + a19 = 1; + a6 = 1; + return -1; + } else if(((!(a14==1)&&((a11==1)&&(!(a4==1)&&(((a11==1)&&(((input==3)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(a17==2)))&&(a19==1)))))&&((a1==13)&&((!(a8==1)&&((!(a20==1)&&((a16==7)&&(a12==1)))&&(a21==10)))&&(a12==1))))){ + a5 = 4; + a23 = 1; + a9 = 7; + a14 = 0; + a1 = 12; + a20 = 1; + return -1; + } else if(((((a2==1)&&(((a26==1)||(((a16==7)&&((a3==1)&&((a11==1)&&(a5==4))))&&(a21==12)))||(a14==1)))&&(a9==7))&&((a19==4)&&(!(a27==1)&&((!(a18==1)&&((a20==1)&&((input==6)&&(a1==14))))&&(a17==2)))))){ + a19 = 1; + a18 = 0; + a4 = 0; + a28 = 1; + a21 = 10; + a1 = 12; + return -1; + } else if((((a9==10)&&((a26==1)&&(((a18==1)&&((a20==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5))))))&&(a1==13))))&&((a17==2)&&((a21==12)&&((((a7==1)&&((((a19==5)&&(a13==1))&&(a26==1))&&(a16==9)))&&!(a6==1))&&!(a28==1)))))){ + a1 = 12; + a26 = 1; + a16 = 7; + a19 = 2; + a18 = 1; + a21 = 10; + a29 = 1; + a5 = 6; + return 25; + } else if(((!(a20==1)&&(!(a3==1)||(((!(a23==1)||(((a2==1)&&(a5==5))&&(a23==1)))&&(a21==10))&&(a11==1))))&&((((a19==1)&&(((a2==1)&&(!(a24==1)&&((input==5)&&(a17==2))))&&(a1==14)))&&(a16==9))&&(a9==7)))){ + a16 = 7; + a9 = 11; + a4 = 1; + a0 = 1; + a1 = 13; + a18 = 1; + a20 = 1; + return 22; + } else if((((a12==1)&&(!(a4==1)&&((a17==2)&&((a1==14)&&((a16==10)&&(((a5==4)&&((input==6)&&(a21==12)))&&(a6==1)))))))&&(((a19==3)&&((a9==9)&&((((a6==1)&&!(a18==1))&&(a12==1))&&(a2==1))))&&(a20==1)))){ + a9 = 11; + a19 = 2; + a8 = 0; + a21 = 10; + a23 = 1; + a16 = 7; + a6 = 1; + return 21; + } else if((((a6==1)&&(((a1==12)&&(((((a12==1)||(a18==1))&&(a20==1))&&(a9==9))&&(a19==5)))&&!(a26==1)))&&((a16==11)&&(((((!(a4==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&(a21==11))&&!(a8==1))&&(a17==2))&&(a23==1))))){ + a19 = 1; + a21 = 10; + a5 = 4; + a13 = 1; + a24 = 0; + a0 = 0; + a9 = 7; + a16 = 7; + return -1; + } else if((((a21==12)&&((((a1==13)&&(((a20==1)&&(a2==1))&&!(a18==1)))&&(a9==11))&&(a17==2)))&&(!(a4==1)&&((((!(a8==1)&&((!(a26==1)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6))))&&!(a8==1)))&&(a19==1))&&(a16==9))&&!(a7==1))))){ + a5 = 4; + a16 = 7; + a21 = 10; + a2 = 1; + a1 = 12; + a3 = 1; + a9 = 7; + a6 = 1; + return -1; + } else if((((((a17==2)&&(((!(a14==1)&&(a3==1))&&(a20==1))||!(a23==1)))||!(a2==1))||(a26==1))&&(((!(a26==1)&&((a11==1)&&((input==5)&&(((((a1==12)&&(a5==4))&&(a9==7))&&(a19==3))||(((a19==2)&&((a9==11)&&((a5==5)&&(a1==14))))||((a19==2)&&((a9==11)&&((a5==6)&&(a1==14)))))))))&&(a21==11))&&(a16==7)))){ + a1 = 13; + a5 = 6; + a13 = 1; + a3 = 1; + a21 = 10; + a16 = 8; + a9 = 11; + a23 = 1; + a19 = 4; + return 25; + } else if((((((a5==4)&&((a2==1)&&((a9==8)&&((a19==3)&&((a28==1)&&(((input==4)&&(a20==1))&&(a1==13)))))))&&(a16==11))&&(a2==1))&&((a14==1)||(((((a17==2)&&(a12==1))||!(a11==1))&&(a21==12))||(a27==1))))){ + a16 = 7; + a9 = 7; + a1 = 12; + a13 = 1; + a8 = 0; + a19 = 1; + a28 = 1; + a21 = 10; + return -1; + } else if(((((!(a28==1)&&((((input==1)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5))))&&!(a3==1))&&(a17==2)))&&!(a28==1))&&(a19==4))&&((a16==11)&&((!(a23==1)&&((a21==11)&&((a1==13)&&((a20==1)&&((a28==1)&&!(a6==1))))))&&!(a12==1))))){ + a16 = 8; + a19 = 3; + a0 = 1; + a25 = 0; + a20 = 0; + a5 = 4; + a9 = 11; + return 21; + } else if((((a17==2)&&((a1==12)&&((a21==11)&&((a16==7)&&(!(a27==1)&&((a18==1)||((a19==5)&&((a6==1)&&(a9==8)))))))))&&(((a28==1)&&((!(a0==1)&&((((a5==5)||(a5==6))&&(input==4))&&!(a20==1)))&&!(a24==1)))&&!(a24==1)))){ + a5 = 4; + a9 = 7; + a14 = 0; + a0 = 0; + a21 = 10; + a4 = 0; + a20 = 1; + a19 = 1; + return -1; + } else if(((!(a24==1)&&((a20==1)&&((!(a8==1)&&(((a17==2)&&(((input==6)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&!(a0==1)))&&(a16==9)))&&(a1==12))))&&((a4==1)||((!(a14==1)&&((a21==11)&&((a11==1)&&(a19==1))))&&(a12==1))))){ + a5 = 5; + a19 = 3; + a13 = 1; + a21 = 10; + a16 = 11; + a2 = 1; + a24 = 0; + a9 = 11; + return 21; + } else if(((!(a4==1)&&((a19==1)&&((a17==2)&&((a21==10)&&((a16==11)&&((((a9==11)&&((input==3)&&((a5==4)||(a5==5))))&&(a1==12))&&(a13==1)))))))&&(((((a23==1)&&((a2==1)&&!(a18==1)))||(a8==1))||(a14==1))&&!(a20==1)))){ + a16 = 7; + a4 = 1; + a19 = 2; + a9 = 8; + a15 = 1; + a5 = 4; + a20 = 1; + a12 = 0; + return -1; + } else if(((((a19==3)&&((a9==7)&&((a5==5)&&((a21==10)&&((!(a20==1)&&((((input==5)&&(a17==2))&&(a11==1))&&(a23==1)))&&(a6==1))))))&&(a1==14))&&((!(a0==1)&&((!(a6==1)||(a13==1))&&!(a0==1)))&&(a16==9)))){ + a16 = 10; + a9 = 9; + a5 = 6; + a24 = 1; + a15 = 0; + a19 = 4; + a1 = 12; + a11 = 0; + a21 = 11; + return -1; + } else if(((((a21==12)&&((a17==2)&&((((a3==1)&&(!(a4==1)&&((input==5)&&((a5==6)||((a5==4)||(a5==5))))))&&(a6==1))&&(a1==14))))&&(a16==7))&&(!(a20==1)&&(((!(a27==1)&&(!(a8==1)&&((a13==1)&&(a19==5))))&&!(a26==1))&&(a9==7))))){ + a28 = 1; + a5 = 5; + a19 = 1; + a20 = 1; + a9 = 11; + a27 = 0; + a2 = 1; + return 26; + } else if((((a16==10)&&((a8==1)||(((a9==11)&&(!(a7==1)&&((a14==1)||(a6==1))))&&(a5==4))))&&((((!(a27==1)&&((a19==1)&&(!(a24==1)&&((!(a20==1)&&(input==1))&&(a17==2)))))&&!(a24==1))&&(a21==12))&&(a1==12)))){ + a9 = 8; + a21 = 11; + a10 = 1; + a19 = 5; + a20 = 1; + a7 = 1; + a5 = 6; + a16 = 8; + a6 = 0; + return -1; + } else if(((((((a1==14)&&((a20==1)&&(!(a8==1)&&(((input==1)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9))))&&(a21==10)))))&&!(a8==1))&&(a16==7))&&!(a0==1))&&(((a6==1)&&(((!(a26==1)&&(a13==1))&&(a17==2))&&(a19==5)))&&(a12==1)))){ + a5 = 5; + a0 = 0; + a26 = 0; + a21 = 12; + a9 = 10; + a1 = 13; + a19 = 4; + return 25; + } else if((((a21==10)&&(((((input==1)&&(a1==14))&&(a28==1))&&(a12==1))&&(a6==1)))&&((a17==2)&&((a16==8)&&(!(a20==1)&&((a19==2)&&(((!(a8==1)&&((a13==1)&&((a13==1)&&(a3==1))))&&(a9==11))&&(a5==4)))))))){ + a21 = 12; + a24 = 0; + a1 = 13; + a9 = 7; + a11 = 1; + a20 = 1; + a2 = 1; + a19 = 5; + return -1; + } else if((((a7==1)&&(((a14==1)&&((a4==1)&&((a5==6)&&((!(a11==1)&&(!(a23==1)&&((input==5)&&(a21==12))))&&(a20==1)))))&&(a17==2)))&&((((a19==5)&&(((a7==1)&&(a28==1))&&(a1==13)))&&(a9==9))&&(a16==9)))){ + a5 = 4; + a19 = 4; + a9 = 10; + a1 = 12; + a8 = 1; + a16 = 11; + a21 = 10; + a6 = 0; + a29 = 0; + return -1; + } else if(((((((a19==3)&&(((a11==1)&&(a9==10))||!(a12==1)))||(a26==1))&&(a16==9))&&(a17==2))&&(((a1==12)&&(!(a7==1)&&((a21==12)&&((a12==1)&&(((a13==1)&&((input==5)&&((a5==5)||(a5==6))))&&(a13==1))))))&&!(a20==1)))){ + a16 = 7; + a5 = 4; + a19 = 1; + a6 = 0; + a9 = 8; + a15 = 0; + a20 = 1; + a21 = 10; + a28 = 0; + return 23; + } else if((((a1==13)&&((a12==1)&&((a28==1)&&(((a20==1)&&(((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==6))&&(a16==7)))&&(a2==1)))))&&((a19==2)&&((((a2==1)&&((a12==1)&&((a14==1)||(a28==1))))&&(a17==2))&&(a21==11))))){ + a26 = 0; + a9 = 10; + a21 = 10; + a12 = 1; + a19 = 3; + a16 = 8; + a5 = 6; + return 23; + } else if((((a17==2)&&((((!(a23==1)||((a19==3)&&((a18==1)||((a9==8)&&((a1==12)&&((a28==1)||(a24==1)))))))||!(a2==1))&&(a12==1))||(a14==1)))&&(((a20==1)&&((a21==11)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a16==8)))){ + a26 = 0; + a9 = 10; + a20 = 0; + a5 = 6; + a14 = 0; + a27 = 0; + a21 = 10; + return 21; + } else if((((a16==11)&&((a9==9)&&(((a1==12)&&((a23==1)&&(!(a4==1)&&((a28==1)&&((((a5==4)||(a5==5))&&(input==5))&&!(a24==1))))))&&(a17==2))))&&(((a21==10)&&((((a3==1)&&!(a20==1))&&!(a8==1))&&!(a18==1)))&&(a19==1)))){ + a19 = 2; + a20 = 1; + a13 = 0; + a5 = 4; + a25 = 1; + a16 = 7; + a29 = 1; + return -1; + } else if((((((!(a18==1)&&(!(a2==1)||(!(a13==1)||(a11==1))))&&(a19==5))&&(a5==6))||!(a28==1))&&((a1==12)&&(!(a20==1)&&(((a9==11)&&(((a21==10)&&(((input==5)&&(a16==7))&&(a28==1)))&&(a17==2)))&&!(a8==1)))))){ + a8 = 0; + a4 = 0; + a16 = 9; + a21 = 11; + a19 = 4; + a20 = 1; + a9 = 7; + a23 = 1; + return 21; + } else if(((((a9==11)&&((!(a18==1)&&(!(a4==1)&&(!(a11==1)||(a13==1))))&&(a17==2)))&&(a19==1))&&((((a16==7)&&(((a3==1)&&((a28==1)&&(((input==4)&&((a5==4)||(a5==5)))&&(a23==1))))&&(a1==13)))&&(a20==1))&&(a21==11)))){ + a4 = 0; + a21 = 10; + a8 = 0; + a2 = 1; + a1 = 12; + a9 = 7; + a5 = 4; + return -1; + } else if((((!(a6==1)||(!(a12==1)||((!(a6==1)||((a16==11)&&((a19==2)&&(((a21==10)&&(a11==1))&&!(a20==1)))))&&(a1==14))))&&!(a4==1))&&((a11==1)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a9==7))&&(a17==2))&&(a2==1))))){ + if((a7==1)){ + a19 = 3; + a21 = 12; + a1 = 12; + a5 = 5; + a0 = 1; + a20 = 1; + a18 = 1; + a22 = 1; + }else{ + a19 = 1; + a16 = 7; + a20 = 1; + a22 = 1; + a29 = 0; + a9 = 11; + a5 = 6; + } + return -1; + } else if(((((a5==6)&&((((a19==4)&&((((a21==12)&&(input==3))&&(a16==10))&&(a23==1)))&&!(a14==1))&&(a3==1)))&&(a17==2))&&(!(a20==1)&&((a23==1)&&((a1==13)&&((a9==8)&&(((a28==1)&&(a2==1))||!(a2==1)))))))){ + a21 = 10; + a22 = 1; + a1 = 12; + a16 = 9; + a28 = 0; + a9 = 11; + a5 = 4; + a19 = 5; + a18 = 1; + return -1; + } else if(((((a19==2)&&((((((a23==1)&&((input==1)&&(((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7))))))&&(a1==13))&&(a17==2))&&(a16==10))&&(a21==11)))&&!(a18==1))&&(!(a20==1)&&((((a23==1)&&((a12==1)||(a24==1)))&&(a6==1))&&(a28==1))))){ + a21 = 10; + a9 = 10; + a24 = 1; + a20 = 1; + a5 = 6; + a19 = 4; + a0 = 1; + a15 = 1; + a16 = 7; + return -1; + } else if((((a16==8)&&(!(a8==1)&&((((a13==1)&&!(a0==1))&&!(a18==1))&&(a20==1))))&&((a17==2)&&(((a21==10)&&((a19==3)&&((!(a18==1)&&(((input==3)&&(((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))))&&!(a4==1)))&&(a13==1))))&&(a1==14))))){ + a9 = 7; + a5 = 4; + a16 = 7; + a1 = 12; + a19 = 1; + a24 = 0; + a13 = 1; + return -1; + } else if(((!(a14==1)&&((a20==1)&&((a17==2)&&(((a28==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))&&(a6==1)))))&&((a9==9)&&((!(a3==1)||((a21==10)&&(((((a19==5)&&(a23==1))&&!(a8==1))||(a14==1))&&(a1==13))))&&(a16==10))))){ + a5 = 4; + a8 = 0; + a18 = 0; + a19 = 1; + a1 = 12; + a0 = 0; + a9 = 7; + a16 = 7; + return -1; + } else if(((!(a7==1)&&((a17==2)&&((a16==7)&&(!(a20==1)&&(!(a14==1)&&((a23==1)&&((input==3)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))))))))&&((!(a0==1)&&((a1==12)&&((a21==11)&&((a19==2)&&((a11==1)||(a24==1))))))||(a14==1)))){ + a3 = 1; + a5 = 4; + a6 = 1; + a21 = 10; + a20 = 1; + a9 = 7; + a19 = 1; + return -1; + } return calculate_output10(input); + } + + int calculate_output10(int input) { + if(((((((((((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a1==13))&&(a11==1))&&(a19==3))&&!(a7==1))&&(a16==7))&&(a13==1))&&(a21==10))&&(((a17==2)&&((a20==1)&&(((a24==1)||(!(a2==1)||(a28==1)))&&!(a0==1))))&&(a9==7)))){ + a14 = 0; + a1 = 12; + a21 = 11; + a19 = 1; + a5 = 4; + a11 = 1; + a8 = 0; + return 26; + } else if((((((a8==1)||(((a0==1)||((a12==1)||(a0==1)))&&(a16==8)))&&(a9==10))&&(a1==14))&&((a19==2)&&((a21==10)&&(!(a26==1)&&(((a20==1)&&((a5==5)&&(((input==3)&&(a17==2))&&!(a18==1))))&&!(a14==1))))))){ + a23 = 1; + a1 = 12; + a5 = 4; + a16 = 7; + a19 = 1; + a9 = 7; + a28 = 1; + a12 = 1; + return -1; + } else if((((a20==1)&&(((!(a26==1)&&(((((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==1))&&(a6==1))&&(a21==11))&&!(a27==1)))&&(a17==2))&&(a19==5)))&&((((((a11==1)&&(a3==1))&&!(a0==1))&&(a16==7))||(a14==1))&&(a1==14)))){ + a7 = 0; + a5 = 6; + a21 = 12; + a1 = 13; + a9 = 9; + a24 = 0; + a19 = 3; + a16 = 8; + return 26; + } else if((((a6==1)&&(((a13==1)&&(((((a9==8)&&(input==5))&&(a11==1))&&(a17==2))&&(a19==1)))&&(a13==1)))&&((a23==1)&&((a5==6)&&((a20==1)&&((a21==10)&&((a1==14)&&(((a16==11)&&(a13==1))||(a4==1))))))))){ + a9 = 11; + a3 = 1; + a5 = 4; + a16 = 10; + a4 = 0; + a26 = 0; + return -1; + } else if(((((a9==8)&&(((a1==13)&&((((a5==4)||(a5==5))&&(input==3))&&(a3==1)))&&(a28==1)))&&(a20==1))&&((a21==10)&&(((a19==4)&&(!(a27==1)&&((a6==1)&&((a27==1)||((a16==7)&&(!(a8==1)&&(a6==1)))))))&&(a17==2))))){ + a19 = 1; + a1 = 12; + a2 = 1; + a28 = 1; + a24 = 0; + a5 = 4; + a9 = 7; + return -1; + } else if(((!(a8==1)&&(((((a21==12)&&(((a5==4)||(a5==5))&&(input==6)))&&(a2==1))&&(a6==1))&&(a16==10)))&&(((a9==10)&&((a17==2)&&(((((a20==1)&&((a11==1)||(a7==1)))&&(a19==5))&&(a1==12))||!(a3==1))))&&!(a27==1)))){ + a16 = 8; + a5 = 5; + a9 = 8; + a7 = 0; + a6 = 1; + a3 = 1; + a21 = 10; + return 25; + } else if(((((a19==3)&&((a28==1)&&((a28==1)&&((a16==8)&&((input==5)&&(a20==1))))))&&(a17==2))&&((a21==10)&&((a1==13)&&(!(a23==1)||((a23==1)&&((a5==5)&&(!(a24==1)&&(((a2==1)&&(a9==7))&&(a3==1)))))))))){ + a16 = 7; + a19 = 1; + a4 = 0; + a5 = 4; + a12 = 1; + a23 = 1; + a1 = 12; + return -1; + } else if((((a13==1)&&((a21==10)&&(((a13==1)&&((a19==1)&&(!(a14==1)&&((((input==4)&&((a5==5)||(a5==6)))&&(a1==13))&&(a23==1)))))&&(a16==8))))&&((((((a20==1)&&(a28==1))&&(a17==2))&&(a9==9))||!(a6==1))&&!(a18==1)))){ + a16 = 7; + a1 = 12; + a5 = 4; + a9 = 7; + a12 = 1; + a2 = 1; + a27 = 0; + return -1; + } else if(((!(a20==1)&&(!(a12==1)||((a3==1)&&(a23==1))))&&((((((a6==1)&&((a16==7)&&((a1==13)&&((a17==2)&&((((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&(a23==1))&&(a19==3))))))&&(a13==1))&&!(a8==1))&&(a21==12))&&(a9==8)))){ + a9 = 7; + a8 = 0; + a12 = 1; + a21 = 10; + a1 = 12; + a19 = 1; + a5 = 4; + a20 = 1; + return -1; + } else if((((a17==2)&&(((a21==12)&&(((a11==1)&&((a19==1)&&(!(a24==1)&&((a2==1)&&(((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a4==1))))))&&(a16==8)))&&!(a20==1)))&&(((((a1==13)&&(a28==1))&&(a9==7))&&(a3==1))&&!(a24==1)))){ + a9 = 11; + a22 = 0; + a5 = 5; + a16 = 7; + a1 = 14; + a25 = 1; + a21 = 10; + a20 = 1; + return -1; + } else if((((a28==1)&&((a7==1)||((a19==4)&&((!(a28==1)||((a23==1)&&(a21==12)))||(a26==1)))))&&((((a16==9)&&(((a17==2)&&((input==3)&&(((a9==11)&&((a5==6)&&(a1==13)))||(((a1==14)&&(a5==4))&&(a9==7)))))&&(a20==1)))&&!(a24==1))&&!(a27==1)))){ + a19 = 1; + a6 = 1; + a1 = 12; + a13 = 1; + a5 = 4; + a16 = 7; + a21 = 10; + a28 = 1; + a9 = 7; + return -1; + } else if(((!(a11==1)||((a18==1)||((((((a21==11)&&(a2==1))&&(a17==2))&&(a9==9))&&(a1==13))&&(a28==1))))&&(((!(a7==1)&&((a16==10)&&((!(a20==1)&&((a19==2)&&(input==3)))&&!(a27==1))))&&(a5==5))&&!(a14==1)))){ + a27 = 1; + a19 = 1; + a21 = 10; + a20 = 1; + a1 = 14; + a10 = 1; + a5 = 4; + a16 = 7; + return 22; + } else if((((((((((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(input==6))&&!(a18==1))&&!(a7==1))&&!(a20==1))&&(a16==9))&&(((a23==1)&&((a0==1)||(((a1==14)&&(((a6==1)&&(!(a13==1)||(a28==1)))&&(a19==3)))&&(a21==12))))&&(a17==2)))){ + if((a14==1)){ + a16 = 7; + a19 = 2; + a9 = 7; + a11 = 0; + a21 = 11; + a2 = 0; + a6 = 0; + a5 = 6; + }else{ + a9 = 8; + a16 = 7; + a10 = 1; + a5 = 5; + a20 = 1; + a18 = 1; + a4 = 1; + a19 = 1; + } + return 25; + } else if((((a16==10)&&(((((a9==10)&&((a11==1)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a17==2))&&(a11==1))&&!(a27==1)))&&((((a1==12)&&((a13==1)&&((((a21==12)&&(a2==1))&&(a11==1))&&(a19==2))))||(a24==1))&&(a20==1)))){ + a2 = 1; + a19 = 1; + a0 = 0; + a5 = 4; + a7 = 0; + a21 = 10; + a9 = 7; + a16 = 7; + return -1; + } else if((((((a17==2)&&(a6==1))&&(a28==1))||(a8==1))&&(((a5==5)&&(((!(a0==1)&&(((a12==1)&&((a16==9)&&(!(a4==1)&&((a21==11)&&((input==5)&&(a19==2))))))&&(a1==13)))&&(a20==1))&&(a9==8)))&&!(a18==1)))){ + a9 = 7; + a19 = 4; + a2 = 1; + a27 = 0; + a1 = 12; + a12 = 1; + return 21; + } else if((((a19==2)&&(((!(a24==1)&&(!(a23==1)||((a1==13)&&(((a6==1)&&(!(a8==1)&&((a20==1)&&(a11==1))))&&(a17==2)))))||(a7==1))&&(a16==10)))&&((a9==10)&&(((a21==12)&&((input==3)&&((a5==5)||(a5==6))))&&!(a26==1))))){ + a23 = 1; + a6 = 1; + a5 = 4; + a21 = 10; + a1 = 12; + a19 = 1; + a9 = 7; + a0 = 0; + a16 = 7; + return -1; + } else if((((a16==9)&&(!(a18==1)&&(((!(a20==1)&&((a1==13)&&(!(a4==1)&&((a21==10)&&(input==4)))))&&(a19==4))&&(a9==9))))&&((((((!(a13==1)||(a28==1))||!(a2==1))&&(a17==2))&&(a3==1))||!(a12==1))&&(a5==6)))){ + a21 = 11; + a20 = 1; + a16 = 10; + a24 = 1; + a19 = 5; + a9 = 10; + a25 = 1; + a27 = 1; + a1 = 12; + a5 = 5; + return 22; + } else if(((((a19==5)&&(!(a27==1)&&(!(a4==1)&&(((a16==7)&&(input==1))&&!(a4==1)))))&&(a20==1))&&(((a21==11)&&(((((((a3==1)&&(a1==13))&&!(a26==1))&&(a9==8))||(a7==1))||!(a12==1))&&(a17==2)))&&(a5==4)))){ + a16 = 8; + a19 = 2; + a1 = 12; + a3 = 1; + a27 = 0; + a21 = 12; + a24 = 0; + return 22; + } else if(((((a21==12)&&(!(a2==1)||(((a1==13)&&((a4==1)||((a23==1)||(a24==1))))||(a18==1))))&&(a16==7))&&((a20==1)&&(((!(a7==1)&&((((input==6)&&((a5==4)||(a5==5)))&&(a9==9))&&(a11==1)))&&(a19==1))&&(a17==2))))){ + a0 = 0; + a21 = 10; + a20 = 0; + a9 = 8; + a16 = 8; + a12 = 1; + a3 = 1; + a19 = 5; + a5 = 5; + return 25; + } else if(((((a12==1)&&((a19==3)&&(((a17==2)&&((!(a20==1)&&(((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4)))&&(input==5)))&&(a13==1)))&&(a28==1))))&&!(a8==1))&&(!(a12==1)||((a1==14)&&(!(a23==1)||(((a6==1)&&(a16==10))&&(a21==12))))))){ + a20 = 1; + a21 = 11; + a10 = 0; + a1 = 13; + a16 = 9; + a9 = 7; + a5 = 4; + a12 = 0; + a19 = 2; + a4 = 1; + return -1; + } else if((((a9==8)&&((a6==1)&&(!(a14==1)&&((((((a12==1)&&(((a5==5)||(a5==6))&&(input==3)))&&!(a20==1))&&(a21==11))&&(a16==7))&&(a17==2)))))&&((((a19==4)&&((a8==1)||((a1==12)&&(a12==1))))&&!(a27==1))||(a26==1)))){ + a26 = 0; + a9 = 7; + a21 = 10; + a14 = 0; + a20 = 1; + a12 = 1; + a5 = 4; + a19 = 1; + return -1; + } else if(((((a21==10)&&((a9==11)&&(((a27==1)||(((!(a18==1)&&(((a16==9)&&(!(a4==1)&&(a2==1)))&&(a23==1)))&&(a1==13))&&!(a0==1)))&&(a19==5))))&&(a17==2))&&(((((a5==5)||(a5==6))&&(input==3))&&(a3==1))&&!(a20==1)))){ + a9 = 7; + a28 = 0; + a5 = 4; + a16 = 7; + a15 = 1; + a19 = 2; + a20 = 1; + a10 = 1; + return 26; + } else if((((!(a28==1)||((a17==2)&&((a3==1)&&!(a20==1))))||!(a12==1))&&(!(a4==1)&&((a3==1)&&((a2==1)&&(((a16==9)&&((input==4)&&((((a19==1)&&((a9==7)&&((a1==12)&&(a5==5))))&&(a21==12))||((((a19==5)&&(((a1==14)&&(a5==6))&&(a9==11)))&&(a21==11))||((((a9==7)&&((a1==12)&&(a5==4)))&&(a19==1))&&(a21==12))))))&&(a28==1))))))){ + if((a19==3)){ + a14 = 1; + a5 = 6; + a1 = 13; + a21 = 10; + a13 = 0; + a19 = 3; + a9 = 11; + a23 = 0; + a20 = 1; + }else{ + a16 = 7; + a21 = 10; + a24 = 1; + a19 = 2; + a5 = 4; + a1 = 12; + a4 = 1; + a13 = 0; + a20 = 1; + a9 = 11; + } + return 23; + } else if((((a11==1)&&(!(a14==1)&&((((a17==2)&&(((a5==5)||(a5==6))&&(input==4)))&&(a1==12))&&!(a20==1))))&&((a28==1)&&((a12==1)&&((!(a24==1)&&(((a21==10)&&((!(a11==1)||(a13==1))&&(a16==7)))&&(a19==3)))&&(a9==8)))))){ + if((a28==1)){ + a9 = 10; + a19 = 4; + a5 = 5; + a1 = 13; + a28 = 1; + a21 = 11; + a2 = 1; + a14 = 0; + }else{ + a26 = 0; + a6 = 1; + a1 = 13; + a5 = 5; + a9 = 9; + a12 = 1; + } + return 22; + } else if(((!(a7==1)&&(!(a4==1)&&((((a2==1)&&((a17==2)&&((input==4)&&(a5==6))))&&(a1==14))&&!(a20==1))))&&(((!(a8==1)&&(((a19==2)&&((a9==11)&&((a2==1)&&(a21==11))))&&(a16==7)))&&!(a8==1))||(a0==1)))){ + a24 = 0; + a1 = 12; + a9 = 7; + a28 = 1; + a19 = 1; + a14 = 0; + a5 = 4; + a20 = 1; + a21 = 10; + return -1; + } else if((((a8==1)||(((a13==1)&&!(a20==1))&&(a21==12)))&&((a11==1)&&(!(a14==1)&&(((a17==2)&&((a28==1)&&((a1==12)&&(!(a8==1)&&((a16==9)&&(((((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(input==3))&&(a11==1)))))))&&(a19==4)))))){ + if((a7==1)){ + a25 = 0; + a5 = 4; + a19 = 2; + a9 = 10; + a11 = 0; + a21 = 11; + a20 = 1; + a14 = 1; + }else{ + a13 = 0; + a9 = 11; + a1 = 14; + a12 = 0; + a25 = 0; + a16 = 10; + a19 = 2; + a21 = 10; + a5 = 6; + } + return 21; + } else if((((a23==1)&&((a9==8)&&(!(a18==1)&&(((a16==9)&&((a19==2)&&((a1==12)&&((a23==1)&&(((!(a11==1)||(a28==1))&&(a17==2))||(a7==1))))))&&!(a20==1)))))&&(((a13==1)&&((input==1)&&((a5==5)||(a5==6))))&&(a21==10)))){ + if((a29==1)){ + a16 = 8; + a13 = 0; + a5 = 6; + a9 = 9; + a29 = 0; + a1 = 14; + a19 = 1; + a24 = 1; + a20 = 1; + }else{ + a19 = 1; + a5 = 6; + a28 = 0; + a20 = 1; + a18 = 1; + a15 = 1; + a16 = 7; + a9 = 11; + } + return 21; + } else if((((a1==14)&&((a19==4)&&((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==3))))&&(!(a28==1)||((a24==1)||(((a8==1)||((a21==11)&&(((a20==1)&&((!(a28==1)||((a16==8)&&(a28==1)))||!(a6==1)))&&(a17==2))))||(a7==1)))))){ + a1 = 12; + a21 = 10; + a16 = 7; + a19 = 1; + a9 = 7; + a2 = 1; + a5 = 4; + a14 = 0; + return -1; + } else if(((((a17==2)&&(!(a0==1)&&(a12==1)))&&!(a20==1))&&((!(a18==1)&&(!(a18==1)&&((((((a19==3)&&((a11==1)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==5))))&&(a13==1))&&(a1==14))&&(a21==10))&&(a6==1))))&&(a16==9)))){ + a0 = 1; + a1 = 13; + a10 = 0; + a20 = 1; + a5 = 5; + a22 = 0; + a19 = 4; + a9 = 11; + return 25; + } else if(((((a17==2)&&((a16==10)&&((!(a20==1)&&((((a0==1)||(a13==1))&&(a9==9))||!(a6==1)))&&(a5==4))))&&!(a26==1))&&(!(a7==1)&&(((a12==1)&&((((input==3)&&(a21==10))&&(a19==2))&&(a1==13)))&&(a6==1))))){ + a19 = 1; + a5 = 5; + a9 = 7; + a29 = 0; + a1 = 14; + a20 = 1; + a16 = 7; + a28 = 0; + return -1; + } else if((((a7==1)||((a28==1)&&((a17==2)&&((a23==1)&&(a20==1)))))&&(!(a0==1)&&(((a21==11)&&((a16==9)&&(!(a7==1)&&((a19==3)&&((((input==3)&&(((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))))&&!(a7==1))&&(a1==12))))))&&!(a18==1))))){ + a14 = 0; + a28 = 1; + a21 = 10; + a16 = 7; + a19 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if((((((!(a0==1)&&(((input==4)&&!(a20==1))&&(a17==2)))&&!(a7==1))&&(a19==4))&&(a2==1))&&((a27==1)||(((a16==10)&&((a9==9)&&((a1==13)&&((!(a11==1)||((a21==10)&&(a12==1)))||!(a2==1)))))&&(a5==5))))){ + a5 = 6; + a27 = 1; + a21 = 11; + a2 = 0; + a16 = 8; + a1 = 12; + a9 = 8; + a19 = 1; + a29 = 1; + return -1; + } else if(((!(a23==1)||((a17==2)&&((a1==14)&&(!(a24==1)&&((!(a18==1)&&(a11==1))&&(a20==1))))))&&(!(a27==1)&&((a28==1)&&(((a19==3)&&((a21==10)&&(((((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7))))&&(input==4))&&!(a0==1))))&&(a16==8)))))){ + a26 = 0; + a16 = 7; + a19 = 1; + a9 = 7; + a6 = 1; + a5 = 4; + a24 = 0; + a1 = 12; + return -1; + } else if((((a3==1)&&(!(a27==1)&&((a23==1)&&(!(a26==1)&&((a21==12)&&(((a12==1)&&(((a5==4)||(a5==5))&&(input==4)))&&(a17==2)))))))&&((a23==1)&&((((a1==13)&&(((a11==1)&&(a9==10))&&(a16==8)))&&!(a20==1))&&(a19==5))))){ + a20 = 1; + a21 = 10; + a5 = 4; + a19 = 1; + a28 = 0; + a3 = 0; + a26 = 1; + a1 = 12; + a16 = 7; + a9 = 8; + return -1; + } else if((((!(a14==1)&&((a2==1)&&(((((a19==5)&&((a2==1)||!(a12==1)))&&!(a14==1))&&(a1==14))&&(a16==8))))||(a4==1))&&(!(a0==1)&&(((a17==2)&&((a20==1)&&((((a5==4)||(a5==5))&&(input==3))&&(a21==12))))&&(a9==7))))){ + a5 = 4; + a16 = 7; + a1 = 13; + a8 = 0; + a19 = 1; + a9 = 8; + a24 = 0; + a14 = 0; + return 26; + } else if((((a6==1)&&(((((a16==7)&&((a21==11)&&(a12==1)))&&(a19==2))&&!(a20==1))&&(a6==1)))&&((!(a27==1)&&((a5==5)&&(!(a26==1)&&(((a9==11)&&((a17==2)&&((a1==13)&&(input==6))))&&!(a24==1)))))&&!(a7==1)))){ + a1 = 12; + a20 = 1; + a18 = 0; + a19 = 1; + a21 = 10; + a3 = 1; + a9 = 7; + a26 = 0; + a5 = 4; + return -1; + } else if((((a21==11)&&((a16==7)&&(((a6==1)&&((((a28==1)||!(a6==1))&&(a17==2))&&!(a7==1)))&&(a1==12))))&&(((a6==1)&&((a19==3)&&(!(a27==1)&&((a20==1)&&(!(a14==1)&&(((a5==5)||(a5==6))&&(input==6)))))))&&(a9==10)))){ + a14 = 0; + a19 = 1; + a9 = 7; + a2 = 1; + a5 = 4; + a13 = 1; + a21 = 10; + return -1; + } else if(((((((!(a0==1)&&((a19==4)&&(((a9==11)&&((((a5==4)||(a5==5))&&(input==3))&&!(a20==1)))&&(a16==10))))&&(a23==1))&&!(a7==1))&&!(a14==1))&&!(a24==1))&&((a21==10)&&((a1==13)&&(((a12==1)&&(a17==2))&&(a23==1)))))){ + a5 = 6; + a1 = 12; + a25 = 1; + a13 = 0; + a26 = 1; + a16 = 9; + a21 = 12; + a19 = 2; + a20 = 1; + a9 = 8; + return -1; + } else if((((a8==1)||(((((a13==1)&&(a19==5))&&(a16==10))&&(a5==5))&&!(a18==1)))&&((!(a18==1)&&((a3==1)&&((((a21==10)&&((a20==1)&&((a6==1)&&((input==1)&&(a1==13)))))&&(a9==7))&&(a17==2))))&&!(a18==1)))){ + a16 = 7; + a19 = 1; + a11 = 1; + a1 = 12; + a6 = 1; + a5 = 4; + a2 = 1; + return -1; + } else if(((!(a20==1)&&((a0==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1))))&&((a16==7)&&((((a1==13)&&(((a21==11)&&(!(a6==1)&&(((a24==1)&&((a17==2)&&(!(a13==1)&&(a13==1))))&&(a14==1))))&&!(a13==1)))&&(a19==3))&&(a9==11))))){ + a19 = 5; + a5 = 5; + a16 = 8; + a21 = 10; + a6 = 0; + a1 = 14; + a9 = 8; + a29 = 1; + a20 = 1; + return 22; + } else if(((!(a7==1)&&((((a19==3)&&(((a9==7)&&(input==5))&&(a17==2)))&&!(a26==1))&&!(a7==1)))&&(!(a3==1)||(((((((a1==13)&&((a2==1)&&(a21==12)))&&(a20==1))||(a26==1))&&(a5==4))&&!(a24==1))&&(a16==9))))){ + a24 = 0; + a16 = 10; + a9 = 9; + a5 = 6; + a18 = 0; + a19 = 2; + a27 = 0; + a21 = 11; + return 21; + } else if(((((((a21==12)&&(((!(a28==1)||((a13==1)&&(a11==1)))||!(a3==1))&&(a9==9)))||(a27==1))&&(a1==14))&&(a17==2))&&((((a3==1)&&((a23==1)&&(((a20==1)&&(input==6))&&(a19==5))))&&(a16==9))&&(a5==5)))){ + a5 = 4; + a16 = 7; + a3 = 1; + a1 = 12; + a21 = 10; + a7 = 0; + a24 = 0; + a9 = 7; + a19 = 1; + return -1; + } else if((((a9==7)&&(!(a26==1)&&((((a21==10)&&(!(a7==1)&&((input==3)&&(a17==2))))&&!(a18==1))&&(a5==5))))&&((!(a11==1)||((a3==1)&&((a16==10)&&((((a12==1)&&(a20==1))&&(a1==13))&&(a19==5)))))&&!(a18==1)))){ + a8 = 0; + a1 = 12; + a16 = 7; + a5 = 4; + a11 = 1; + a19 = 1; + a7 = 0; + return -1; + } else if((((a4==1)||((a0==1)||((((a9==8)&&(!(a3==1)||(!(a20==1)&&((a19==3)&&((a21==12)&&(a6==1))))))&&(a16==7))&&(a17==2))))&&((((((input==6)&&((a5==4)||(a5==5)))&&(a1==12))&&(a28==1))&&(a2==1))&&!(a26==1)))){ + a5 = 6; + a13 = 1; + a14 = 0; + a9 = 9; + a1 = 13; + a19 = 2; + a21 = 11; + a18 = 0; + a16 = 8; + return 22; + } else if(((((((!(a7==1)&&((input==6)&&((a5==4)||(a5==5))))&&(a17==2))&&!(a26==1))&&(a21==10))&&(a11==1))&&((a1==14)&&((a11==1)&&(((!(a20==1)&&((a11==1)&&(((a6==1)||(a14==1))&&(a9==9))))&&(a19==4))&&(a16==8)))))){ + a16 = 7; + a11 = 1; + a5 = 5; + a2 = 1; + a1 = 13; + a21 = 12; + a20 = 1; + a3 = 1; + return 23; + } else if((((a17==2)&&((((((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))&&(input==4))&&(a1==13))&&(a16==9)))&&((a26==1)||((!(a26==1)&&((!(a23==1)||((a13==1)&&((a19==4)&&(((a21==10)&&(a23==1))&&!(a20==1)))))||(a14==1)))&&!(a27==1))))){ + a15 = 1; + a23 = 0; + a19 = 1; + a5 = 6; + a20 = 1; + a9 = 8; + a16 = 7; + a10 = 1; + return 22; + } else if(((((a19==5)&&(!(a7==1)&&(((a28==1)&&(!(a24==1)&&((a16==10)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==6)))))&&!(a14==1))))&&!(a20==1))&&(((a17==2)&&((a26==1)||(((a1==13)&&(a23==1))&&(a11==1))))&&(a21==12)))){ + a16 = 9; + a15 = 1; + a18 = 1; + a1 = 14; + a21 = 10; + a9 = 9; + a29 = 1; + a5 = 5; + a20 = 1; + return -1; + } else if(((((a19==5)&&(!(a23==1)||((a11==1)&&(a1==12))))&&(a17==2))&&(((a21==10)&&((!(a4==1)&&((a6==1)&&((a6==1)&&((!(a18==1)&&((((a5==4)||(a5==5))&&(input==5))&&(a12==1)))&&(a9==10)))))&&(a16==9)))&&(a20==1)))){ + a1 = 14; + a5 = 4; + a4 = 0; + a16 = 8; + a3 = 1; + a18 = 0; + a9 = 9; + return 25; + } else if((((!(a2==1)||((a12==1)||(a7==1)))&&(a9==11))&&((a21==11)&&((a17==2)&&(((((((a16==7)&&((((a5==4)&&(input==6))&&(a20==1))&&(a19==4)))&&!(a14==1))&&!(a0==1))&&!(a14==1))&&(a3==1))&&(a1==14)))))){ + a14 = 0; + a19 = 5; + a9 = 10; + a16 = 8; + a2 = 1; + a1 = 13; + a26 = 0; + return 25; + } else if(((!(a26==1)&&((((a17==2)&&((((a20==1)&&((a19==3)&&(((a6==1)||(a18==1))&&!(a7==1))))||!(a28==1))&&!(a26==1)))&&(a9==7))&&(a16==9)))&&((a1==13)&&(((a5==4)&&((a21==11)&&(input==5)))&&!(a14==1))))){ + a2 = 1; + a1 = 14; + a5 = 6; + a21 = 12; + a9 = 8; + a16 = 8; + a26 = 0; + a19 = 5; + a27 = 0; + return -1; + } else if((((a21==10)&&((a24==1)||((a26==1)||(((a23==1)&&(a17==2))&&(a19==2)))))&&(((a28==1)&&(((a12==1)&&(((a1==12)&&((((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4)))&&(input==3))&&(a16==11)))&&(a6==1)))&&!(a20==1)))&&(a2==1)))){ + a28 = 0; + a9 = 10; + a26 = 1; + a24 = 1; + a20 = 1; + a5 = 6; + a16 = 7; + return -1; + } else if(((!(a4==1)&&((a20==1)&&(((a1==14)&&((!(a24==1)&&((a28==1)&&((a21==10)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6))))))&&!(a27==1)))&&(a19==4))))&&((a16==10)&&(((((a6==1)||!(a28==1))&&(a17==2))&&(a9==11))||(a8==1))))){ + a1 = 12; + a19 = 1; + a9 = 7; + a5 = 5; + a16 = 9; + a21 = 11; + a0 = 0; + a28 = 1; + a14 = 0; + return -1; + } else if(((!(a11==1)||((a1==14)&&((a17==2)&&((((a0==1)||(((a21==12)&&((a3==1)||(a26==1)))&&(a20==1)))&&(a9==8))||!(a11==1)))))&&(((a16==9)&&(((((a5==5)||(a5==6))&&(input==4))&&(a23==1))&&(a19==3)))&&(a6==1)))){ + a21 = 10; + a1 = 12; + a16 = 7; + a11 = 1; + a13 = 1; + a4 = 0; + a19 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if(((((((a16==9)&&((a28==1)&&(((input==5)&&((a5==4)||(a5==5)))&&(a17==2))))&&!(a7==1))&&(a19==3))&&!(a7==1))&&((a21==11)&&((a2==1)&&((a1==13)&&(!(a12==1)||((a9==9)&&((a20==1)&&((a4==1)||(a11==1)))))))))){ + a11 = 1; + a19 = 4; + a21 = 12; + a16 = 8; + a5 = 5; + a1 = 14; + a9 = 7; + a23 = 1; + a3 = 1; + return 25; + } else if((((a14==1)||(((a9==8)&&(!(a3==1)||((a20==1)&&(!(a18==1)&&(((a12==1)&&(a16==8))||(a7==1))))))||(a27==1)))&&((a21==11)&&((a19==4)&&((a1==12)&&((a17==2)&&((a28==1)&&(((a5==5)||(a5==6))&&(input==5))))))))){ + a9 = 7; + a21 = 10; + a14 = 0; + a19 = 1; + a7 = 0; + a12 = 1; + a16 = 7; + a5 = 4; + return -1; + } else if((((!(a7==1)&&((a28==1)&&((((a5==5)||(a5==6))&&(input==4))&&(a13==1))))&&(a19==2))&&(((a1==14)&&((a21==12)&&((((a2==1)&&((!(a20==1)&&((a23==1)&&(a16==9)))||(a24==1)))||!(a3==1))&&(a17==2))))&&(a9==11)))){ + a21 = 10; + a15 = 1; + a29 = 1; + a16 = 7; + a18 = 1; + a1 = 12; + a5 = 5; + a20 = 1; + return 25; + } else if(((((a16==8)&&(((a20==1)&&(((((a3==1)&&((a23==1)&&(a1==13)))&&(a19==4))&&!(a24==1))||(a7==1)))&&(a21==11)))&&(a5==5))&&(((a13==1)&&((!(a8==1)&&((input==6)&&(a9==7)))&&(a3==1)))&&(a17==2)))){ + a14 = 0; + a16 = 10; + a9 = 10; + a8 = 0; + a19 = 2; + a1 = 12; + a5 = 6; + a7 = 0; + return 23; + } else if((((a17==2)&&((a0==1)||(((a28==1)&&((!(a7==1)&&((a21==10)&&((a2==1)&&(a16==9))))||(a14==1)))&&(a19==5))))&&((((((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==4))&&(a2==1))&&!(a20==1))&&!(a4==1))&&(a1==13)))){ + a16 = 7; + a19 = 1; + a7 = 1; + a20 = 1; + a3 = 0; + a8 = 1; + a5 = 4; + a9 = 8; + a1 = 12; + return -1; + } else if((((((((a19==1)&&(((!(a8==1)&&(((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5)))&&(input==5)))&&!(a20==1))&&(a28==1)))&&(a17==2))&&(a21==10))&&(a13==1))&&!(a26==1))&&(((a14==1)||(((a13==1)&&(a3==1))&&(a1==14)))&&(a16==7)))){ + a13 = 1; + a1 = 12; + a5 = 4; + a12 = 1; + a24 = 0; + a9 = 7; + a20 = 1; + return -1; + } else if((((((((a23==1)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==3)))&&!(a18==1))&&(a21==10))&&(a17==2))&&!(a20==1))&&(((a19==5)&&((!(a3==1)||(!(a8==1)&&((!(a0==1)&&(a23==1))||!(a13==1))))&&(a1==13)))&&(a16==7)))){ + a24 = 0; + a1 = 14; + a11 = 1; + a9 = 8; + a5 = 6; + a20 = 1; + a7 = 0; + a19 = 1; + return -1; + } else if((((a5==6)&&(((a17==2)&&((a9==9)&&((!(a14==1)&&(!(a24==1)&&(((a21==12)&&(input==4))&&!(a26==1))))&&!(a7==1))))&&(a20==1)))&&((((a16==10)&&(((a8==1)||(a11==1))&&(a1==12)))||!(a6==1))&&(a19==1)))){ + a24 = 0; + a12 = 1; + a9 = 7; + a21 = 10; + a8 = 0; + a5 = 4; + a16 = 7; + return -1; + } else if(((!(a20==1)&&(((((a1==13)&&(!(a13==1)||(!(a13==1)||((a11==1)&&(!(a24==1)&&(a23==1))))))||!(a12==1))&&(a21==12))&&(a17==2)))&&(((a3==1)&&((a19==1)&&((input==3)&&(((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))))))&&(a16==9)))){ + a16 = 10; + a5 = 6; + a1 = 12; + a29 = 0; + a10 = 1; + a20 = 1; + a21 = 10; + a9 = 11; + a19 = 2; + a23 = 0; + return -1; + } else if(((((a1==12)&&((a16==7)&&(!(a8==1)&&(!(a0==1)&&(((((!(a20==1)&&((((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(input==3)))&&(a17==2))&&(a21==11))&&!(a18==1))&&(a6==1))))))&&!(a0==1))&&((a0==1)||((a6==1)&&(a19==2))))){ + a7 = 0; + a9 = 7; + a20 = 1; + a3 = 1; + a19 = 1; + a5 = 4; + a21 = 10; + a12 = 1; + return -1; + } else if(((((a2==1)&&(((input==1)&&(a21==12))&&(a20==1)))&&!(a26==1))&&((!(a23==1)||(((a1==12)&&((((((a9==9)&&((a17==2)&&(a3==1)))&&(a16==8))&&(a19==3))&&(a5==4))||!(a23==1)))||!(a2==1)))||!(a23==1)))){ + a13 = 1; + a19 = 2; + a16 = 7; + a21 = 10; + a4 = 0; + a1 = 13; + a18 = 0; + return 25; + } else if(((((a3==1)&&((a17==2)&&((a6==1)&&((((a12==1)&&(((((a1==13)&&(a5==6))&&(a9==11))||(((a1==14)&&(a5==4))&&(a9==7)))&&(input==1)))&&(a21==11))&&!(a8==1)))))&&(a2==1))&&((!(a20==1)&&(((a2==1)&&(a13==1))&&(a19==5)))&&(a16==8)))){ + if((a25==1)){ + a16 = 7; + a4 = 1; + a19 = 1; + a20 = 1; + a5 = 6; + a6 = 0; + a21 = 10; + a22 = 0; + a9 = 11; + a1 = 14; + }else{ + a16 = 10; + a1 = 12; + a20 = 1; + a2 = 0; + a14 = 1; + a5 = 6; + a15 = 0; + a19 = 1; + a9 = 9; + } + return 21; + } else if(((((a18==1)||((a21==11)&&(!(a20==1)&&(!(a4==1)&&((((a28==1)&&(a17==2))&&!(a4==1))&&(a5==6))))))||(a14==1))&&(((a19==3)&&(((a28==1)&&((a1==14)&&((a9==11)&&(input==5))))&&!(a18==1)))&&(a16==7)))){ + a19 = 1; + a21 = 10; + a5 = 4; + a20 = 1; + a11 = 1; + a1 = 12; + a14 = 0; + a9 = 7; + a28 = 1; + return -1; + } else if((((a16==7)&&(((a21==12)&&((a5==5)&&((input==1)&&(a17==2))))&&!(a4==1)))&&(!(a20==1)&&((((((((a2==1)&&((a1==12)&&(a28==1)))&&(a6==1))&&(a12==1))&&!(a18==1))&&(a3==1))&&(a19==5))&&(a9==11))))){ + if((a5==5)){ + a16 = 8; + a12 = 1; + a21 = 10; + a18 = 0; + a28 = 1; + a9 = 9; + a5 = 4; + a19 = 2; + }else{ + a21 = 11; + a26 = 0; + a7 = 0; + a20 = 1; + a5 = 4; + a16 = 8; + } + return 22; + } else if((((a19==1)&&(((a2==1)&&((a3==1)&&(!(a7==1)&&(((a21==10)&&((a1==13)&&((input==5)&&((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a5==4)&&(a9==9))))))&&(a28==1)))))&&(a11==1)))&&((((a17==2)&&((a28==1)&&(a20==1)))&&(a16==8))||(a26==1)))){ + a19 = 2; + a5 = 4; + a16 = 9; + a26 = 0; + a9 = 7; + a24 = 0; + a21 = 12; + a4 = 0; + return 25; + } else if(((((a20==1)&&((a13==1)&&(!(a14==1)&&(((a17==2)&&((a21==12)&&(input==1)))&&!(a18==1)))))&&(a19==4))&&(((a16==7)&&(((a5==4)&&((((a28==1)&&(a11==1))||!(a3==1))&&!(a18==1)))&&(a9==10)))&&(a1==14)))){ + a13 = 1; + a1 = 12; + a19 = 1; + a21 = 10; + a9 = 7; + a11 = 1; + a8 = 0; + return -1; + } else if(((!(a8==1)&&(!(a13==1)||((a4==1)||((a20==1)&&((a21==11)&&(((a16==10)&&(!(a18==1)&&(((a19==3)&&(a13==1))&&(a5==6))))&&(a17==2)))))))&&(((a1==12)&&(!(a0==1)&&((a9==8)&&(input==6))))&&!(a27==1)))){ + a16 = 7; + a21 = 10; + a11 = 1; + a5 = 4; + a9 = 7; + a7 = 0; + a19 = 1; + a0 = 0; + return -1; + } else if(((((((((input==4)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&(a17==2))&&(a6==1))&&(a1==14))&&(a19==3))&&!(a8==1))&&(((((a23==1)&&((((a20==1)&&(a2==1))&&(a21==10))||!(a23==1)))&&(a16==9))||!(a11==1))||(a14==1)))){ + a1 = 12; + a19 = 1; + a16 = 7; + a5 = 4; + a13 = 1; + a26 = 0; + a9 = 7; + return -1; + } else if((((a21==10)&&((a7==1)||((a14==1)||(a2==1))))&&((((a11==1)&&((((!(a27==1)&&((a20==1)&&((a17==2)&&((a19==4)&&((input==6)&&((a5==4)||(a5==5)))))))&&!(a7==1))&&(a1==14))&&(a9==7)))&&(a16==7))&&(a6==1)))){ + a14 = 0; + a0 = 0; + a21 = 11; + a19 = 5; + a27 = 0; + a5 = 5; + return 23; + } else if(((!(a26==1)&&((a2==1)&&((!(a0==1)&&(!(a4==1)&&((a21==11)&&((((input==5)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&!(a4==1))&&!(a26==1)))))&&(a19==5))))&&((a17==2)&&((((a11==1)&&(a16==10))&&(a1==14))&&!(a20==1))))){ + if((a3==1)){ + a9 = 9; + a22 = 0; + a1 = 13; + a16 = 7; + a5 = 4; + a19 = 1; + a20 = 1; + a21 = 10; + a26 = 1; + a25 = 0; + }else{ + a15 = 1; + a10 = 0; + a20 = 1; + a21 = 10; + a5 = 4; + a1 = 12; + a16 = 7; + a19 = 1; + a9 = 8; + a22 = 1; + } + return 26; + } else if((((a1==14)&&((!(a8==1)&&((a27==1)||(((a19==2)&&((a6==1)&&(a21==12)))&&(a20==1))))||!(a28==1)))&&(!(a4==1)&&(((a3==1)&&(((a16==9)&&(!(a4==1)&&((a17==2)&&(input==3))))&&(a9==9)))&&(a5==5))))){ + a16 = 7; + a21 = 10; + a13 = 1; + a19 = 1; + a27 = 0; + a5 = 4; + a7 = 0; + a1 = 12; + a9 = 7; + return -1; + } else if((((a19==3)&&((((a21==10)&&((!(a6==1)||(a2==1))&&(a16==8)))&&!(a24==1))&&!(a0==1)))&&((a1==13)&&(!(a0==1)&&(!(a7==1)&&(((a20==1)&&((a9==9)&&(((input==3)&&(a17==2))&&(a5==5))))&&(a6==1))))))){ + a11 = 1; + a5 = 4; + a1 = 12; + a19 = 1; + a4 = 0; + a9 = 7; + a16 = 7; + return -1; + } else if((((a16==10)&&(!(a28==1)||((a1==14)&&(!(a11==1)||((((!(a20==1)&&(!(a18==1)&&(a6==1)))&&(a19==1))&&(a21==12))&&(a13==1))))))&&((a17==2)&&(((a9==9)&&(((input==5)&&((a5==4)||(a5==5)))&&(a6==1)))&&!(a18==1))))){ + if((a13==1)){ + a22 = 0; + a1 = 12; + a5 = 4; + a2 = 0; + a16 = 7; + a20 = 1; + a9 = 8; + a10 = 0; + a21 = 10; + }else{ + a9 = 11; + a12 = 0; + a5 = 6; + a21 = 10; + a7 = 1; + a23 = 0; + } + return 21; + } else if((((a17==2)&&((a6==1)&&((a11==1)&&(a19==2))))&&((a12==1)&&((((((a1==12)&&(!(a26==1)&&((a21==12)&&((a9==10)&&((a16==7)&&((a5==4)&&(input==3)))))))&&!(a26==1))&&(a20==1))&&!(a26==1))&&!(a8==1))))){ + a11 = 1; + a16 = 8; + a7 = 0; + a21 = 10; + a19 = 5; + a6 = 1; + return 26; + } else if(((!(a7==1)&&((((!(a8==1)&&((a16==9)&&((input==6)&&(((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))))&&(a1==12))&&!(a20==1))&&(a21==11)))&&((((!(a2==1)||((a17==2)&&(!(a18==1)&&(a23==1))))&&(a19==1))||!(a3==1))&&!(a8==1)))){ + if((a24==1)){ + a5 = 5; + a1 = 13; + a19 = 4; + a21 = 12; + a9 = 8; + a10 = 1; + a8 = 1; + a3 = 0; + }else{ + a6 = 0; + a5 = 6; + a19 = 2; + a7 = 1; + a21 = 10; + a9 = 8; + a16 = 7; + a20 = 1; + a11 = 0; + } + return -1; + } else if((((a27==1)||(((((a23==1)&&(a9==9))&&!(a20==1))&&(a19==1))&&(a17==2)))&&(((a6==1)&&((((!(a26==1)&&((a5==4)&&(((input==1)&&(a16==7))&&(a1==12))))&&(a23==1))&&(a21==10))&&!(a14==1)))&&!(a7==1)))){ + a9 = 8; + a27 = 0; + a6 = 1; + a19 = 2; + return 25; + } else if(((((((!(a11==1)||((a2==1)&&(a19==2)))&&(a3==1))&&(a12==1))&&(a17==2))&&(a1==12))&&((a16==8)&&((((((a9==10)&&(((input==3)&&((a5==5)||(a5==6)))&&(a12==1)))&&!(a20==1))&&(a2==1))&&!(a24==1))&&(a21==11))))){ + a8 = 0; + a16 = 7; + a2 = 1; + a4 = 0; + a5 = 4; + a9 = 7; + a21 = 10; + a19 = 1; + a20 = 1; + return -1; + } else if((((((!(a8==1)&&(!(a14==1)&&(!(a8==1)&&((a5==4)&&((((a12==1)&&!(a24==1))||(a7==1))&&(a19==3))))))&&(a21==10))||(a24==1))&&(a1==13))&&((((a20==1)&&((a9==10)&&(input==4)))&&(a16==9))&&(a17==2)))){ + a1 = 12; + a16 = 7; + a28 = 1; + a19 = 1; + a23 = 1; + a9 = 7; + return -1; + } else if(((!(a12==1)&&(((a21==12)&&((a19==5)&&((a14==1)&&((a1==13)&&(input==5)))))&&!(a12==1)))&&(((a5==4)&&((a9==8)&&((((((a3==1)&&!(a12==1))&&(a16==7))&&(a20==1))&&(a26==1))&&!(a28==1))))&&(a17==2)))){ + a28 = 0; + a11 = 0; + a16 = 10; + a19 = 3; + a6 = 0; + return -1; + } else if((((a17==2)&&((((((a27==1)&&(((a5==4)||(a5==5))&&(input==5)))&&!(a13==1))&&(a9==11))&&!(a11==1))&&(a27==1)))&&((a21==12)&&((a19==1)&&((a16==7)&&((a1==12)&&((a20==1)&&(((a27==1)&&(a3==1))&&(a18==1))))))))){ + a5 = 5; + a1 = 13; + a25 = 0; + a24 = 1; + a29 = 0; + a21 = 10; + return 21; + } else if(((((a19==2)&&(((a3==1)&&(a16==8))&&(a21==12)))&&(a9==7))&&((a11==1)&&(!(a18==1)&&((a12==1)&&((!(a0==1)&&(((a17==2)&&((((input==4)&&((a5==5)||(a5==6)))&&!(a18==1))&&!(a26==1)))&&(a1==14)))&&(a20==1))))))){ + a5 = 4; + a14 = 0; + a13 = 1; + a1 = 12; + a16 = 7; + a19 = 1; + a21 = 10; + a4 = 0; + return -1; + } else if(((!(a11==1)||((a7==1)||((a0==1)||((a26==1)||((((a21==10)&&((a19==3)&&(a12==1)))&&(a17==2))&&(a20==1))))))&&((((((((a9==11)&&((a5==6)&&(a1==12)))||(((a5==4)&&(a1==13))&&(a9==7)))||((a9==7)&&((a5==5)&&(a1==13))))&&(input==1))&&(a16==9))&&(a23==1))&&!(a24==1)))){ + a11 = 1; + a16 = 8; + a9 = 10; + a5 = 5; + a21 = 12; + a1 = 13; + a13 = 1; + a23 = 1; + a19 = 5; + return 26; + } else if((((a16==8)&&((((a3==1)&&(a19==2))&&!(a24==1))&&(a1==13)))&&(!(a4==1)&&(((a17==2)&&(((a20==1)&&(((a21==10)&&((a3==1)&&(!(a27==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))))&&(a3==1)))&&(a9==8)))&&(a12==1))))){ + a12 = 1; + a16 = 7; + a26 = 0; + a9 = 7; + a1 = 12; + a19 = 1; + a5 = 4; + a28 = 1; + return -1; + } else if((((((((!(a14==1)&&((a2==1)&&((((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(input==5))))&&(a12==1))&&(a17==2))&&(a3==1))&&(a16==7))&&!(a0==1))&&((((a19==5)&&(((a12==1)&&!(a20==1))&&(a21==12)))&&!(a27==1))&&(a1==13)))){ + a1 = 12; + a13 = 1; + a4 = 0; + a20 = 1; + a16 = 8; + a9 = 7; + a24 = 0; + a5 = 6; + return 22; + } else if(((!(a7==1)&&((a12==1)&&((a16==7)&&((a21==12)&&(((a5==6)&&((input==4)&&(a9==10)))&&!(a7==1))))))&&(((a23==1)&&((a1==14)&&(!(a20==1)&&((((a23==1)||!(a23==1))&&(a17==2))&&(a19==2)))))||(a26==1)))){ + a21 = 10; + a20 = 1; + a4 = 0; + a6 = 1; + a19 = 1; + a5 = 4; + a9 = 7; + a3 = 1; + a1 = 12; + return -1; + } else if(((((a21==12)&&(((a17==2)&&(((a1==12)&&(((a6==1)&&(a16==7))&&(a23==1)))||(a27==1)))||!(a11==1)))&&(a3==1))&&((a12==1)&&(((a19==3)&&(((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==3))&&!(a0==1)))&&!(a20==1))))){ + a9 = 7; + a21 = 10; + a20 = 1; + a5 = 4; + a13 = 1; + a24 = 0; + a3 = 1; + a19 = 1; + return -1; + } else if(((((((a9==7)&&(a3==1))&&!(a4==1))&&(a17==2))&&(a19==5))&&((((a12==1)&&(((a5==6)&&((((((a21==12)&&(input==4))&&(a16==8))&&!(a20==1))&&!(a7==1))&&(a1==14)))&&!(a14==1)))&&(a12==1))&&(a23==1)))){ + a5 = 4; + a15 = 0; + a20 = 1; + a1 = 13; + a13 = 0; + a19 = 1; + a21 = 10; + a16 = 7; + a25 = 1; + return 23; + } else if((((a3==1)&&((a16==10)&&(((a9==8)&&((((input==3)&&(a5==6))&&(a21==11))&&(a19==3)))&&!(a27==1))))&&((((a6==1)&&((a1==13)&&((((a2==1)||!(a13==1))&&(a17==2))||!(a12==1))))||!(a3==1))&&(a20==1)))){ + a28 = 1; + a18 = 0; + a1 = 12; + a5 = 4; + a9 = 7; + a19 = 1; + a16 = 7; + a21 = 10; + return -1; + } else if((((((a16==8)&&(((a21==12)&&((a19==5)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==1))))&&(a1==12)))&&!(a7==1))&&(a11==1))&&(!(a6==1)||(!(a12==1)||((a3==1)&&((a20==1)&&(((a4==1)||(a3==1))&&(a17==2)))))))){ + a4 = 0; + a5 = 5; + a21 = 10; + a28 = 1; + a1 = 14; + a3 = 1; + a9 = 9; + return -1; + } else if(((((a4==1)||((a7==1)||((!(a8==1)&&((((a6==1)||(a4==1))&&(a19==5))&&(a20==1)))||!(a12==1))))&&(a21==10))&&(((a16==8)&&((!(a14==1)&&((((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10))))&&(input==5)))&&(a17==2)))&&(a1==12)))){ + a16 = 7; + a5 = 4; + a0 = 0; + a4 = 0; + a9 = 7; + a19 = 1; + a12 = 1; + return -1; + } else if((((!(a14==1)&&((((a13==1)&&((a17==2)&&((a20==1)&&(a11==1))))&&(a9==10))&&(a3==1)))&&!(a18==1))&&((a16==9)&&((a19==4)&&((((((a21==11)&&(input==6))&&!(a8==1))&&(a1==13))&&!(a4==1))&&(a5==6)))))){ + a4 = 0; + a1 = 12; + a2 = 1; + a9 = 7; + a5 = 4; + a19 = 1; + a16 = 7; + a21 = 10; + return -1; + } else if((((((a16==9)&&(!(a4==1)&&((a6==1)&&((a1==14)&&((a20==1)&&((input==6)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11)))))))))&&(a17==2))&&(a6==1))&&((((a26==1)||(((a28==1)&&(a28==1))||(a24==1)))&&(a21==10))&&(a19==2)))){ + a16 = 11; + a19 = 1; + a5 = 5; + a9 = 9; + a6 = 1; + a18 = 0; + return 21; + } else if((((a3==1)&&(!(a20==1)&&(((a7==1)||(((a2==1)&&(a6==1))||!(a2==1)))&&(a21==11))))&&(((a16==9)&&(((((a1==13)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==1)))&&(a17==2))&&(a6==1))&&(a3==1)))&&(a19==2)))){ + a23 = 0; + a16 = 7; + a5 = 4; + a9 = 7; + a1 = 12; + a28 = 0; + a19 = 4; + a10 = 1; + return -1; + } else if((((((((a28==1)&&(((((a5==5)||(a5==6))&&(input==5))&&(a13==1))&&(a17==2)))&&!(a7==1))&&(a16==8))&&(a21==10))&&(a2==1))&&(!(a24==1)&&((a9==8)&&((a1==12)&&((!(a20==1)&&((a28==1)&&(a28==1)))&&(a19==2))))))){ + a19 = 4; + a2 = 1; + a9 = 7; + a5 = 4; + a27 = 0; + a21 = 12; + a20 = 1; + a1 = 14; + return 22; + } else if(((!(a0==1)&&(((a9==10)&&((!(a20==1)&&(((a5==4)||(a5==5))&&(input==4)))&&(a21==11)))&&(a17==2)))&&((!(a3==1)||((a1==14)&&((a6==1)&&((a28==1)&&(((a16==10)&&(!(a6==1)||(a3==1)))&&(a19==4))))))&&!(a0==1)))){ + a2 = 0; + a9 = 11; + a28 = 0; + a16 = 7; + a1 = 13; + a20 = 1; + a21 = 10; + a15 = 0; + a19 = 1; + a5 = 4; + return 21; + } else if(((((a23==1)&&((a5==4)&&((a6==1)&&(((a21==11)&&(input==1))&&(a1==14)))))&&!(a4==1))&&((a3==1)&&((a28==1)&&(((a19==5)&&((a16==7)&&((((a23==1)&&(a12==1))&&(a17==2))&&(a9==10))))&&!(a20==1)))))){ + a21 = 10; + a23 = 1; + a5 = 6; + a19 = 2; + a6 = 1; + a9 = 9; + a16 = 8; + a20 = 1; + a14 = 0; + return 26; + } else if((((a11==1)&&((a9==7)&&(((((a21==10)&&((!(a0==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))&&(a1==12)))&&(a23==1))&&!(a0==1))&&!(a14==1))))&&((((((a19==5)&&(a13==1))||!(a28==1))&&!(a20==1))&&(a17==2))&&(a16==10)))){ + a16 = 11; + a7 = 1; + a8 = 1; + a27 = 1; + a19 = 2; + a5 = 6; + a20 = 1; + a9 = 9; + a1 = 14; + return -1; + } else if((((!(a12==1)||(!(a27==1)&&((a20==1)&&((!(a6==1)||((a6==1)&&!(a0==1)))&&!(a18==1)))))&&(a19==2))&&((((a21==12)&&((((a1==12)&&((input==6)&&((a5==6)||((a5==4)||(a5==5)))))&&(a17==2))&&(a16==10)))&&!(a8==1))&&(a9==8)))){ + a11 = 1; + a21 = 10; + a5 = 4; + a8 = 0; + a16 = 7; + a9 = 7; + a19 = 1; + return -1; + } else if((((a1==12)&&((a9==8)&&((a21==11)&&(!(a6==1)||((a13==1)&&!(a8==1))))))&&(((((a23==1)&&((((((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a0==1))&&(a19==4))&&!(a20==1))&&(a12==1)))&&(a17==2))&&!(a7==1))&&(a16==9)))){ + a19 = 2; + a0 = 1; + a5 = 5; + a20 = 1; + a10 = 0; + a16 = 10; + a22 = 1; + return 23; + } else if(((!(a27==1)&&((((a1==13)&&(((a19==2)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&!(a24==1)))&&(a16==8)))&&(a11==1))&&(a12==1)))&&((((a20==1)&&((((a11==1)&&(a9==11))||(a18==1))||(a27==1)))&&(a21==10))&&(a17==2)))){ + a19 = 1; + a5 = 4; + a1 = 12; + a9 = 7; + a13 = 1; + a16 = 7; + a27 = 0; + a6 = 1; + return -1; + } else if(((((((a16==8)&&(!(a24==1)&&(!(a3==1)||(a3==1))))&&(a19==4))&&(a21==11))&&(a20==1))&&(!(a4==1)&&(((a17==2)&&(!(a24==1)&&((a2==1)&&((a1==14)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==5))))))&&(a12==1))))){ + a19 = 1; + a9 = 7; + a1 = 12; + a18 = 0; + a5 = 4; + a6 = 1; + a16 = 7; + a21 = 10; + a4 = 0; + return -1; + } else if(((((a16==7)&&(((a20==1)&&((((((a5==4)||(a5==5))&&(input==4))&&(a9==9))&&!(a18==1))&&(a17==2)))&&(a1==14)))&&(a19==3))&&(((((a12==1)&&(!(a3==1)||(!(a27==1)&&(a2==1))))&&(a13==1))&&(a21==11))&&(a6==1)))){ + a5 = 4; + a1 = 12; + a19 = 1; + a12 = 1; + a24 = 0; + a4 = 0; + a9 = 7; + a21 = 10; + return -1; + } else if((((a19==2)&&(((a16==11)&&((a1==12)&&(((a14==1)||(((a17==2)&&(a13==1))||!(a28==1)))&&(a6==1))))&&(a23==1)))&&((a20==1)&&(((a13==1)&&(((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))&&(input==1))&&(a21==10)))&&!(a4==1))))){ + a21 = 11; + a11 = 1; + a12 = 1; + a1 = 13; + a5 = 4; + a9 = 8; + a26 = 0; + return 22; + } else if((((((((((a13==1)&&((((a5==5)||(a5==6))&&(input==6))&&(a2==1)))&&(a17==2))&&!(a7==1))&&(a2==1))&&(a16==9))&&(a21==11))&&!(a7==1))&&((((a9==7)&&((a27==1)||((a6==1)&&(a1==13))))&&(a19==3))&&!(a20==1)))){ + a13 = 0; + a16 = 7; + a21 = 10; + a19 = 1; + a5 = 6; + a20 = 1; + a9 = 11; + a25 = 0; + return -1; + } else if((((!(a14==1)&&((((a17==2)&&((a11==1)&&(!(a27==1)&&((input==6)&&(a20==1)))))&&(a1==14))&&(a19==1)))&&(a28==1))&&((a24==1)||(((a16==7)&&((((a11==1)||(a18==1))&&(a5==4))&&(a21==12)))&&(a9==9))))){ + a2 = 1; + a9 = 7; + a21 = 10; + a1 = 12; + a27 = 0; + a23 = 1; + return -1; + } else if((((a1==12)&&((a20==1)&&((a17==2)&&((((a18==1)&&((a19==1)&&(a13==1)))&&(a16==10))&&(a24==1)))))&&((!(a3==1)&&((a21==11)&&((a9==7)&&(!(a2==1)&&((((a5==4)||(a5==5))&&(input==1))&&!(a2==1))))))&&!(a23==1)))){ + a5 = 4; + a23 = 0; + a16 = 7; + a29 = 1; + a21 = 10; + a12 = 0; + return 21; + } else if((((a11==1)&&((a28==1)&&(!(a7==1)&&((a16==9)&&((a20==1)&&(((a21==10)&&((a13==1)&&((input==1)&&(((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))))))&&(a19==5)))))))&&((a26==1)||((a1==12)&&(((a27==1)||(a11==1))&&(a17==2)))))){ + a24 = 0; + a9 = 9; + a8 = 0; + a14 = 0; + a1 = 13; + a19 = 2; + a5 = 6; + return -1; + } else if((((((a5==5)&&((((!(a27==1)&&(((input==3)&&(a9==9))&&!(a20==1)))&&!(a0==1))&&(a2==1))&&(a16==9)))&&(a1==14))&&(a21==12))&&((((a11==1)&&((a17==2)&&((a12==1)||(a8==1))))&&!(a27==1))&&(a19==1)))){ + if((a27==1)){ + a16 = 7; + a20 = 1; + a9 = 11; + a5 = 6; + a15 = 1; + a24 = 1; + a23 = 0; + a21 = 10; + }else{ + a1 = 12; + a21 = 11; + a4 = 1; + a16 = 11; + a19 = 5; + a5 = 6; + a20 = 1; + a6 = 0; + a9 = 10; + a15 = 1; + } + return 25; + } else if(((((!(a13==1)||(!(a6==1)||((!(a28==1)||(((a9==8)&&(a2==1))&&(a19==2)))||(a14==1))))||(a27==1))&&(a17==2))&&((((a21==12)&&((((input==5)&&(a16==9))&&!(a27==1))&&!(a20==1)))&&(a5==6))&&(a1==14)))){ + if((a28==1)){ + a13 = 0; + a10 = 1; + a16 = 7; + a21 = 10; + a20 = 1; + a1 = 12; + a18 = 1; + }else{ + a21 = 10; + a9 = 11; + a6 = 0; + a19 = 1; + a5 = 5; + a14 = 1; + a20 = 1; + a16 = 7; + a1 = 12; + } + return -1; + } else if(((!(a4==1)&&(((a17==2)&&((a13==1)&&(((input==1)&&(((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))&&(a1==14))))&&!(a14==1)))&&((!(a27==1)&&((a20==1)&&(((a19==2)&&((a21==10)&&(!(a14==1)&&(a11==1))))&&(a16==9))))&&(a28==1)))){ + a19 = 4; + a4 = 0; + a20 = 0; + a12 = 1; + a1 = 13; + a16 = 8; + a9 = 8; + a24 = 0; + a5 = 6; + return 25; + } else if((((a16==8)&&((a1==12)&&(((((a21==11)&&((((input==1)&&(a9==10))&&!(a20==1))&&!(a8==1)))&&!(a26==1))&&!(a8==1))&&(a17==2))))&&((a19==2)&&((!(a3==1)||((a27==1)||((a5==4)&&(a6==1))))&&!(a26==1))))){ + a12 = 1; + a20 = 1; + a28 = 1; + a1 = 14; + a16 = 9; + a11 = 1; + return 21; + } else if(((((((((a3==1)&&((a1==14)&&(((a16==7)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))&&!(a27==1))))&&!(a20==1))&&(a11==1))&&(a9==9))&&(a12==1))&&(a17==2))&&((a21==11)&&(((a11==1)&&((a19==2)&&(a12==1)))||!(a12==1))))){ + a16 = 9; + a5 = 6; + a19 = 1; + a20 = 1; + a26 = 0; + a1 = 12; + a9 = 11; + a21 = 12; + a11 = 1; + a18 = 0; + return 25; + } else if(((((((a19==2)&&((a20==1)&&(((a16==11)&&(((((a9==7)&&((a5==5)&&(a1==14)))||(((a9==11)&&((a1==13)&&(a5==6)))||((a9==7)&&((a5==4)&&(a1==14)))))&&(input==6))&&!(a28==1)))&&!(a6==1))))&&!(a13==1))&&(a4==1))&&(a4==1))&&((((a21==11)&&(a28==1))&&!(a12==1))&&(a17==2)))){ + a7 = 1; + a18 = 1; + a1 = 12; + a21 = 12; + a19 = 3; + a16 = 10; + a9 = 8; + a3 = 0; + a5 = 4; + return -1; + } else if((((((!(a8==1)&&((a21==10)&&((((a17==2)&&((input==6)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a7==1))&&!(a14==1))))&&!(a27==1))&&(a9==8))&&(a16==10))&&((!(a7==1)&&(((a3==1)&&((a1==14)&&(a11==1)))&&(a19==1)))&&(a20==1)))){ + a28 = 1; + a19 = 5; + a9 = 10; + a11 = 1; + a5 = 6; + a24 = 0; + a16 = 11; + a1 = 12; + return 21; + } else if((((a21==12)&&(((a17==2)&&((input==3)&&(a9==7)))&&(a16==10)))&&(((((a1==12)&&(!(a8==1)&&((a19==5)&&(((((a28==1)&&!(a14==1))&&!(a20==1))&&!(a14==1))||(a14==1)))))||!(a3==1))||!(a3==1))&&(a5==4)))){ + a9 = 10; + a20 = 1; + a19 = 1; + a25 = 1; + a28 = 0; + a5 = 6; + a21 = 10; + a2 = 0; + a16 = 7; + return 23; + } else if(((!(a11==1)&&(((a21==11)&&(!(a20==1)&&((a17==2)&&(!(a11==1)&&(((a28==1)&&(a16==7))&&(a19==3))))))&&(a24==1)))&&((((a1==12)&&((a9==10)&&(((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a3==1))))&&!(a2==1))&&!(a11==1)))){ + a21 = 10; + a19 = 1; + a5 = 6; + a1 = 13; + a20 = 1; + a22 = 1; + a8 = 1; + a9 = 11; + return 21; + } else if((((a19==3)&&((a16==11)&&((a14==1)&&((a17==2)&&(((((input==3)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&!(a3==1))&&(a8==1))&&(a27==1))))))&&(((((a7==1)&&((a27==1)&&(a11==1)))&&(a1==14))&&(a20==1))&&(a21==12)))){ + a9 = 10; + a26 = 1; + a5 = 5; + a29 = 1; + a16 = 9; + a27 = 1; + return -1; + } else if(((!(a20==1)&&(((a11==1)&&(!(a8==1)&&((a13==1)&&(!(a26==1)&&(!(a27==1)&&((a17==2)&&(((((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(input==6))&&!(a8==1))))))))&&(a16==7)))&&((a19==3)&&(((a21==11)&&(a2==1))&&(a1==13))))){ + a21 = 10; + a19 = 1; + a9 = 7; + a1 = 12; + a13 = 1; + a5 = 4; + a20 = 1; + a14 = 0; + a24 = 0; + return -1; + } else if(((!(a13==1)||((a7==1)||(((((a6==1)&&(a12==1))&&(a17==2))&&(a16==11))&&!(a18==1))))&&((((a23==1)&&((((((input==3)&&((a5==4)||(a5==5)))&&(a1==13))&&(a19==4))&&(a21==12))&&(a9==7)))&&!(a26==1))&&(a20==1)))){ + a16 = 10; + a13 = 1; + a1 = 14; + a23 = 1; + a21 = 10; + a5 = 4; + a12 = 1; + a19 = 1; + return 21; + } else if((((a23==1)&&(!(a24==1)&&((!(a14==1)&&((input==6)&&(a1==13)))&&(a19==4))))&&(((((a20==1)&&((((((a9==7)&&(a13==1))&&(a17==2))&&(a5==6))&&(a16==8))||!(a11==1)))&&!(a4==1))&&(a21==11))||(a0==1)))){ + a11 = 1; + a2 = 1; + a1 = 12; + a21 = 10; + a16 = 7; + a24 = 0; + a5 = 4; + a19 = 1; + return -1; + } else if(((((((a16==10)&&((((((a5==4)||(a5==5))&&(input==1))&&(a1==12))&&(a21==11))&&!(a20==1)))&&(a17==2))&&(a9==9))&&(a3==1))&&(((a19==1)&&((a18==1)||(!(a3==1)||(!(a23==1)||((a11==1)||(a4==1))))))&&!(a14==1)))){ + a16 = 7; + a22 = 0; + a1 = 13; + a5 = 4; + a9 = 10; + a21 = 10; + a13 = 0; + a20 = 1; + a12 = 0; + return 25; + } else if((((!(a0==1)&&((((a3==1)&&((a19==5)&&((a20==1)&&((a28==1)&&((input==1)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5))))))))&&(a28==1))&&!(a4==1)))&&(a21==10))&&((a17==2)&&((((a1==12)&&(a11==1))||!(a2==1))&&(a16==11))))){ + a19 = 1; + a23 = 1; + a12 = 1; + a16 = 7; + a9 = 7; + a5 = 4; + a0 = 0; + return -1; + } else if((((a16==7)&&((a9==9)&&(((a21==11)&&((a3==1)&&(((a11==1)||!(a12==1))||!(a12==1))))&&(a19==4))))&&(((!(a27==1)&&((a12==1)&&((((input==4)&&(a20==1))&&(a3==1))&&(a17==2))))&&(a1==13))&&(a5==5)))){ + a5 = 4; + a1 = 12; + a9 = 10; + a14 = 0; + a13 = 1; + a16 = 8; + a8 = 0; + return 25; + } else if(((!(a2==1)&&(((((input==3)&&(((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))))&&(a17==2))&&(a1==14))&&(a20==1)))&&((a7==1)&&(((a18==1)&&((((a21==11)&&(!(a2==1)&&((a24==1)&&(a28==1))))&&(a19==1))&&(a16==9)))&&(a26==1))))){ + a4 = 1; + a1 = 12; + a22 = 1; + a14 = 1; + a9 = 8; + a16 = 7; + a5 = 6; + a21 = 10; + a19 = 2; + return -1; + } else if((((!(a12==1)||(((((((!(a20==1)&&(((a3==1)&&(a17==2))&&(a21==12)))&&(a9==8))&&(a16==7))&&(a19==2))&&(a1==12))||!(a13==1))&&(a23==1)))&&(a12==1))&&(((a11==1)&&(((a5==4)||(a5==5))&&(input==3)))&&!(a24==1)))){ + a24 = 0; + a20 = 1; + a5 = 4; + a18 = 0; + a21 = 10; + a19 = 1; + a13 = 1; + a9 = 7; + return -1; + } else if((((!(a28==1)||(!(a7==1)&&(((a1==12)&&((a17==2)&&(!(a20==1)&&(a23==1))))&&(a13==1))))&&(a5==5))&&((a2==1)&&((((a19==1)&&((!(a27==1)&&((input==3)&&(a16==8)))&&(a11==1)))&&(a21==10))&&(a9==9))))){ + a5 = 4; + a16 = 7; + a27 = 0; + a12 = 1; + a9 = 7; + a20 = 1; + a13 = 1; + return -1; + } else if((((((a16==9)&&(((a21==11)&&((a6==1)||(a24==1)))&&!(a26==1)))&&(a1==13))&&(a17==2))&&(((a19==2)&&((((((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==6))&&!(a26==1))&&(a23==1))&&!(a4==1))&&!(a7==1)))&&(a20==1)))){ + a3 = 1; + a19 = 3; + a5 = 5; + a9 = 11; + a21 = 10; + a24 = 0; + a28 = 1; + a1 = 12; + return 25; + } else if((((a19==2)&&((((a1==14)&&((a12==1)&&!(a8==1)))&&(a9==8))&&(a16==10)))&&((a21==12)&&((a2==1)&&(!(a20==1)&&(((((a11==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a17==2)))&&!(a24==1))&&!(a7==1))&&(a3==1))))))){ + a26 = 1; + a19 = 1; + a20 = 1; + a21 = 10; + a12 = 0; + a1 = 12; + a3 = 0; + a5 = 6; + a9 = 11; + a16 = 7; + return -1; + } else if((((a21==12)&&((a5==4)&&(((a11==1)||!(a3==1))||!(a23==1))))&&((a16==9)&&((!(a20==1)&&((a13==1)&&((a9==11)&&((a12==1)&&(!(a0==1)&&(((a19==3)&&((a17==2)&&(input==4)))&&!(a18==1)))))))&&(a1==14))))){ + a28 = 0; + a21 = 11; + a16 = 10; + a19 = 1; + a25 = 0; + a20 = 1; + a12 = 0; + return -1; + } else if((((a26==1)||((!(a12==1)||((a1==13)&&(((a23==1)&&(a9==8))&&(a19==3))))&&(a16==11)))&&((a28==1)&&(!(a0==1)&&(!(a27==1)&&((((a17==2)&&((((a5==4)||(a5==5))&&(input==5))&&!(a4==1)))&&(a20==1))&&(a21==11))))))){ + a16 = 9; + a12 = 1; + a1 = 14; + a5 = 4; + a6 = 1; + a9 = 11; + a3 = 1; + a19 = 5; + return 21; + } else if(((((a1==14)&&((a16==8)&&((!(a14==1)&&(!(a0==1)&&((a11==1)&&(!(a27==1)&&(((a5==4)||(a5==5))&&(input==4))))))&&!(a24==1))))&&(a9==10))&&(((a21==11)&&((a17==2)&&((a19==1)&&((a28==1)&&!(a7==1)))))&&!(a20==1)))){ + a5 = 4; + a1 = 12; + a23 = 1; + a7 = 0; + a16 = 7; + a21 = 10; + a20 = 1; + a3 = 1; + a9 = 7; + return -1; + } else if(((!(a3==1)||(((a17==2)&&((a9==10)&&((a16==7)&&(((a11==1)&&(a6==1))||!(a12==1)))))&&(a5==4)))&&((a11==1)&&(((((a2==1)&&(((a21==11)&&(input==3))&&!(a20==1)))&&!(a4==1))&&(a1==14))&&(a19==3))))){ + if((a17==2)){ + a14 = 0; + a19 = 1; + a16 = 8; + a26 = 0; + a5 = 5; + a6 = 1; + a1 = 13; + }else{ + a19 = 5; + a21 = 12; + a5 = 5; + a27 = 0; + a6 = 1; + a16 = 8; + a18 = 0; + a20 = 1; + a9 = 11; + } + return 22; + } else if((((a17==2)&&(((((a2==1)&&((a24==1)||(!(a18==1)&&((a6==1)||!(a3==1)))))&&(a21==10))&&(a19==3))&&(a16==10)))&&(!(a26==1)&&((a9==10)&&((a1==12)&&(((!(a20==1)&&(input==1))&&(a13==1))&&(a5==5))))))){ + if((a26==1)){ + a9 = 11; + a1 = 14; + a11 = 0; + a19 = 1; + a7 = 1; + a23 = 0; + a20 = 1; + a16 = 7; + }else{ + a29 = 1; + a28 = 0; + a5 = 4; + a22 = 1; + a16 = 11; + a9 = 8; + } + return -1; + } else if((((((a20==1)&&((a3==1)&&((!(a24==1)&&(!(a24==1)&&((input==1)&&(((a9==7)&&((a1==13)&&(a5==4)))||((((a1==12)&&(a5==5))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==12))))))))&&(a17==2))))&&(a21==11))&&(a16==9))&&(((a19==1)&&(((a2==1)||(a8==1))&&(a28==1)))&&!(a27==1)))){ + a19 = 2; + a21 = 10; + a5 = 4; + a11 = 1; + a16 = 10; + a1 = 14; + a0 = 0; + a9 = 9; + a26 = 0; + return 21; + } else if(((((a16==7)&&(((!(a4==1)&&(((a5==5)||(a5==6))&&(input==3)))&&!(a4==1))&&(a1==14)))&&(a21==10))&&(((a17==2)&&(((a0==1)||((a9==9)&&(((!(a7==1)&&(a12==1))&&(a2==1))&&!(a4==1))))&&(a20==1)))&&(a19==2)))){ + a0 = 0; + a12 = 1; + a5 = 4; + a1 = 12; + a4 = 0; + a9 = 7; + a19 = 1; + return -1; + } else if((((a27==1)||(!(a7==1)&&(((a23==1)&&((a21==10)&&(((a12==1)&&(a19==3))&&(a1==14))))&&!(a20==1))))&&((((a17==2)&&((a2==1)&&((((input==1)&&((a5==4)||(a5==5)))&&(a9==11))&&(a3==1))))&&(a16==8))&&!(a7==1)))){ + a5 = 5; + a20 = 1; + a11 = 1; + a13 = 1; + a16 = 11; + a9 = 7; + a21 = 11; + a18 = 0; + a19 = 5; + a1 = 13; + return 21; + } else if(((((a12==1)&&(((((a23==1)&&((input==6)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))&&!(a18==1))&&(a1==14))&&(a2==1)))&&(a17==2))&&(((!(a13==1)||((a21==12)&&((a26==1)||((a2==1)&&(a16==10)))))&&(a20==1))&&(a19==1)))){ + a11 = 1; + a19 = 2; + a21 = 10; + a16 = 7; + a0 = 0; + a5 = 5; + a1 = 13; + a24 = 0; + a9 = 9; + return 25; + } else if(((!(a20==1)&&(((a1==14)&&((!(a26==1)&&((((input==6)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9))))&&(a16==9))&&(a2==1)))&&!(a18==1)))&&(a2==1)))&&((!(a28==1)||(((a19==1)&&((a28==1)||(a0==1)))&&(a17==2)))&&(a21==10)))){ + if((a20==1)){ + a0 = 1; + a9 = 7; + a20 = 1; + a1 = 12; + a15 = 1; + a22 = 0; + a16 = 7; + a5 = 4; + }else{ + a20 = 1; + a16 = 8; + a19 = 5; + a21 = 12; + a15 = 0; + a1 = 12; + a14 = 1; + a28 = 0; + a9 = 9; + a5 = 6; + } + return -1; + } else if((((a17==2)&&(!(a4==1)&&(!(a7==1)&&(((a1==12)&&((((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&(a9==11))&&!(a0==1)))&&(a19==3)))))&&(((((!(a20==1)&&((a21==12)&&(a28==1)))||(a27==1))&&(a13==1))&&(a16==8))||!(a28==1)))){ + a23 = 0; + a21 = 10; + a10 = 1; + a20 = 1; + a5 = 4; + a19 = 1; + a25 = 0; + a16 = 7; + return 25; + } else if((((a21==10)&&(((a23==1)&&((a1==14)&&(!(a24==1)&&((!(a4==1)&&(((input==3)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5))))&&(a13==1)))&&(a16==8)))))&&(a20==1)))&&((a19==5)&&((a17==2)&&((!(a23==1)||(a3==1))&&(a28==1)))))){ + a23 = 1; + a1 = 13; + a16 = 10; + a19 = 2; + a4 = 0; + a9 = 11; + a24 = 0; + a5 = 4; + return 23; + } else if((((a3==1)&&(!(a20==1)&&(((a2==1)&&((a9==9)&&(((((input==5)&&(a1==13))&&(a2==1))&&(a2==1))&&(a11==1))))&&(a19==3))))&&(((a17==2)&&((((a11==1)&&!(a14==1))&&(a16==9))&&(a21==10)))&&(a5==6)))){ + if((a19==4)){ + a0 = 1; + a20 = 1; + a16 = 7; + a9 = 8; + a1 = 12; + a27 = 1; + a7 = 1; + a19 = 1; + }else{ + a9 = 11; + a22 = 1; + a6 = 0; + a5 = 5; + a19 = 2; + a11 = 0; + a20 = 1; + a16 = 7; + a1 = 12; + } + return -1; + } else if((((!(a7==1)&&((a19==4)&&((((a17==2)&&(a2==1))||!(a3==1))&&(a16==8))))&&(a9==11))&&((!(a4==1)&&(!(a20==1)&&((a1==12)&&((a28==1)&&((a21==12)&&((((a5==5)||(a5==6))&&(input==4))&&(a23==1)))))))&&!(a7==1)))){ + a20 = 1; + a21 = 11; + a10 = 1; + a5 = 6; + a15 = 0; + a19 = 2; + a16 = 7; + return -1; + } else if(((!(a0==1)&&((((a19==2)&&((a17==2)&&((input==3)&&(((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))))&&!(a4==1))&&(a12==1)))&&(!(a6==1)||((a11==1)&&(((a1==13)&&((((a6==1)&&(a20==1))&&(a21==11))&&(a16==7)))||(a26==1)))))){ + a23 = 1; + a21 = 10; + a5 = 4; + a3 = 1; + a16 = 8; + a19 = 3; + a9 = 8; + a24 = 0; + return 23; + } else if((((a3==1)&&((a6==1)&&((a19==5)&&((a17==2)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==1))))))&&(((a16==8)&&(!(a20==1)&&(!(a3==1)||((a2==1)&&(((a21==10)&&((a6==1)&&(a11==1)))&&(a1==13))))))&&(a23==1)))){ + a24 = 0; + a16 = 7; + a19 = 2; + a20 = 1; + a5 = 4; + a18 = 0; + a12 = 1; + a9 = 7; + return -1; + } else if((((((!(a18==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))&&!(a20==1))&&(a6==1))&&!(a14==1))&&(((a19==4)&&((((((a16==9)&&(((a2==1)||(a4==1))&&(a2==1)))&&(a1==12))||(a27==1))&&(a17==2))&&(a9==7)))&&(a21==11)))){ + a19 = 1; + a5 = 6; + a16 = 7; + a20 = 1; + a21 = 10; + a9 = 8; + a8 = 1; + a26 = 1; + a29 = 0; + return 22; + } else if((((a9==11)&&(((a17==2)&&((((a21==12)&&(input==5))&&!(a18==1))&&(a12==1)))&&!(a27==1)))&&((a20==1)&&(((a1==14)&&(!(a24==1)&&((((!(a3==1)||(a13==1))&&(a16==10))||(a26==1))&&(a19==2))))&&(a5==6))))){ + a16 = 7; + a14 = 0; + a9 = 7; + a28 = 1; + a1 = 12; + a5 = 4; + a19 = 1; + a21 = 10; + a12 = 1; + return -1; + } else if(((((((a19==1)&&((((a28==1)&&(a9==10))||(a18==1))&&(a17==2)))&&(a5==4))&&!(a20==1))&&(a2==1))&&((a21==10)&&(((a16==11)&&((!(a27==1)&&(((a1==13)&&(input==4))&&!(a14==1)))&&(a28==1)))&&!(a26==1))))){ + if((a24==1)){ + a5 = 6; + a14 = 1; + a16 = 10; + a21 = 12; + a13 = 0; + a9 = 9; + a19 = 4; + a20 = 1; + a1 = 14; + }else{ + a21 = 11; + a20 = 1; + a10 = 0; + a19 = 5; + a9 = 7; + a5 = 5; + a16 = 7; + a28 = 0; + a1 = 14; + a22 = 1; + } + return 25; + } else if(((((a5==4)&&(((a17==2)&&((((((input==4)&&!(a20==1))&&!(a24==1))&&(a19==1))&&(a21==11))&&(a12==1)))&&!(a27==1)))&&(a1==13))&&((a27==1)||((a23==1)&&((a9==10)&&(!(a13==1)||((a28==1)&&(a16==8)))))))){ + a19 = 3; + a21 = 10; + a7 = 0; + a14 = 0; + a20 = 1; + a1 = 14; + a9 = 7; + a16 = 10; + a23 = 1; + return 25; + } else if((((((((a1==13)&&(a11==1))&&(a21==10))&&(a17==2))&&(a6==1))||!(a28==1))&&(!(a7==1)&&(((((a2==1)&&((a3==1)&&((!(a20==1)&&((a16==9)&&(input==3)))&&(a9==8))))&&!(a0==1))&&(a5==4))&&(a19==1))))){ + a21 = 11; + a18 = 1; + a5 = 6; + a19 = 5; + a20 = 1; + a16 = 11; + a25 = 1; + return 21; + } else if(((((!(a18==1)&&((((a2==1)&&!(a7==1))&&(a1==14))&&(a5==4)))&&(a21==11))&&(a9==7))&&((a20==1)&&(((a3==1)&&((a11==1)&&((a13==1)&&((((a19==4)&&(input==4))&&(a16==11))&&(a17==2)))))&&(a3==1))))){ + a19 = 1; + a24 = 0; + a6 = 1; + a28 = 1; + a21 = 10; + a1 = 12; + a16 = 7; + return -1; + } else if(((((a19==4)&&(((a11==1)&&((((((a5==4)||(a5==5))&&(input==1))&&!(a14==1))&&!(a14==1))&&(a16==9)))&&(a13==1)))&&(a1==13))&&(!(a20==1)&&((a17==2)&&(((a21==10)&&(!(a6==1)||((a9==10)&&(a23==1))))&&!(a24==1)))))){ + if((a3==1)){ + a19 = 1; + a20 = 1; + a11 = 0; + a28 = 0; + a16 = 7; + a5 = 5; + a9 = 9; + a1 = 14; + a27 = 1; + }else{ + a21 = 12; + a9 = 8; + a0 = 1; + a22 = 0; + a1 = 14; + a16 = 10; + a5 = 5; + a19 = 5; + a11 = 0; + } + return -1; + } else if((((a17==2)&&((a19==1)&&(!(a20==1)&&((a5==4)&&((a3==1)&&(a9==10))))))&&(!(a8==1)&&((a13==1)&&(!(a8==1)&&(!(a24==1)&&((a1==12)&&(((a16==9)&&((a2==1)&&((input==5)&&(a21==12))))&&!(a8==1))))))))){ + a23 = 0; + a21 = 10; + a28 = 0; + a1 = 14; + a16 = 10; + a9 = 7; + a0 = 1; + a5 = 5; + return -1; + } else if(((!(a18==1)&&((((a17==2)&&((a20==1)&&((input==3)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))))&&(a21==10))&&(a1==14)))&&(!(a2==1)||((!(a28==1)||(((a19==5)&&(((a16==8)&&(a28==1))||!(a2==1)))||(a24==1)))||(a8==1))))){ + a5 = 4; + a1 = 12; + a26 = 0; + a11 = 1; + a9 = 7; + a19 = 1; + a16 = 7; + a13 = 1; + return -1; + } else if(((!(a7==1)&&((((((((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8)))&&(input==1))&&(a28==1))&&!(a20==1))&&(a19==4))&&(a16==9))&&!(a27==1)))&&(((((a21==10)&&((a17==2)&&((a11==1)&&(a1==12))))||!(a2==1))&&(a13==1))&&(a28==1)))){ + if((a28==1)){ + a19 = 1; + a16 = 7; + a0 = 1; + a4 = 1; + a20 = 1; + a9 = 9; + a5 = 5; + a13 = 0; + }else{ + a5 = 6; + a16 = 7; + a1 = 13; + a20 = 1; + a7 = 1; + a24 = 1; + a19 = 1; + a9 = 8; + a4 = 1; + } + return 26; + } else if((((((a12==1)&&(a5==5))&&(a2==1))||(a18==1))&&((a3==1)&&(!(a18==1)&&((((a16==8)&&((a1==12)&&(((a9==7)&&(!(a8==1)&&((a21==10)&&((input==1)&&(a17==2)))))&&(a11==1))))&&!(a20==1))&&(a19==5)))))){ + a9 = 10; + a2 = 1; + a28 = 1; + a14 = 0; + a19 = 3; + a20 = 1; + a16 = 9; + a21 = 11; + return 25; + } else if(((((a17==2)&&((a16==11)&&((a2==1)&&(((input==6)&&(a1==13))&&!(a8==1)))))&&(a19==3))&&((a5==6)&&((a14==1)||(((!(a18==1)&&((a28==1)&&(((a11==1)&&(a20==1))&&!(a18==1))))&&(a9==9))&&(a21==10)))))){ + a13 = 1; + a9 = 8; + a5 = 4; + a16 = 10; + a11 = 1; + a19 = 2; + a21 = 12; + a0 = 0; + return 21; + } else if((((a19==3)&&((((!(a27==1)&&(((input==4)&&(a1==12))&&!(a4==1)))&&(a16==8))&&(a28==1))&&(a5==6)))&&(((a4==1)||((a21==12)&&((!(a23==1)||((a13==1)&&((a6==1)&&(a9==8))))&&!(a20==1))))&&(a17==2)))){ + a9 = 10; + a5 = 4; + a16 = 7; + a3 = 0; + a15 = 1; + a1 = 13; + a20 = 1; + a19 = 1; + a21 = 10; + a8 = 1; + return -1; + } else if((((a16==8)&&(((a19==4)&&(((((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a13==1))&&(a20==1))&&(a17==2))&&(a9==10)))&&(a12==1)))&&(!(a13==1)||((a21==10)&&((((a1==14)&&((a3==1)||(a24==1)))&&(a2==1))||!(a12==1)))))){ + a5 = 4; + a1 = 12; + a19 = 1; + a11 = 1; + a9 = 7; + a16 = 7; + a7 = 0; + a4 = 0; + return -1; + } else if(((!(a20==1)&&((((((((a28==1)||!(a23==1))&&(a16==9))&&!(a14==1))||(a18==1))&&(a1==12))&&(a21==12))&&(a19==3)))&&((a12==1)&&(!(a0==1)&&((((a17==2)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3)))&&(a9==11))&&!(a8==1)))))){ + a16 = 7; + a19 = 2; + a23 = 0; + a7 = 1; + a5 = 4; + a21 = 10; + a9 = 9; + a20 = 1; + a3 = 0; + return -1; + } else if((((((((a16==11)&&(a2==1))&&(a12==1))||(a0==1))&&(a19==4))||(a7==1))&&((a28==1)&&((((a20==1)&&(((a21==11)&&((input==6)&&(((a9==7)&&((a5==4)&&(a1==13)))||((((a1==12)&&(a5==5))&&(a9==11))||(((a5==6)&&(a1==12))&&(a9==11))))))&&(a17==2)))&&(a13==1))&&(a2==1))))){ + a13 = 1; + a5 = 5; + a21 = 12; + a14 = 0; + a16 = 10; + a19 = 2; + a1 = 13; + a9 = 8; + a27 = 0; + return 21; + } else if(((((a9==8)&&((!(a7==1)&&((!(a13==1)||((((a23==1)&&(a23==1))&&(a1==14))||(a27==1)))||!(a12==1)))&&!(a20==1)))&&(a21==10))&&((a28==1)&&((((a16==8)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1)))&&(a19==4))&&(a17==2))))){ + a20 = 1; + a16 = 11; + a19 = 2; + a28 = 1; + a7 = 0; + a23 = 1; + a5 = 6; + return 23; + } else if(((!(a28==1)&&((a27==1)&&(((a7==1)&&(!(a6==1)&&((a0==1)&&(((a20==1)&&(a23==1))&&(a16==9)))))&&(a1==14))))&&((a9==7)&&((a19==3)&&((a17==2)&&((a21==12)&&(!(a23==1)&&((input==6)&&((a5==4)||(a5==5)))))))))){ + a1 = 12; + a16 = 11; + a28 = 0; + a15 = 1; + a3 = 0; + a9 = 9; + a19 = 4; + a5 = 4; + a21 = 11; + return -1; + } else if(((((a9==9)&&(((a11==1)&&((a19==2)&&(((((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a0==1))&&(a3==1))&&(a11==1))))&&(a17==2)))&&(a20==1))&&((a1==14)&&((a16==9)&&((a13==1)&&(((a3==1)||(a26==1))&&(a21==11))))))){ + a16 = 7; + a11 = 1; + a9 = 7; + a19 = 1; + a24 = 0; + a28 = 1; + a5 = 4; + a21 = 10; + a1 = 12; + return -1; + } else if((((a28==1)&&((!(a0==1)&&((a21==12)&&((a20==1)&&((input==1)&&((a5==4)||(a5==5))))))&&(a1==12)))&&(!(a7==1)&&((a8==1)||((a26==1)||((a9==9)&&((a11==1)&&((a19==1)&&((a16==11)&&((a28==1)&&(a17==2))))))))))){ + a2 = 1; + a0 = 0; + a16 = 10; + a9 = 8; + a1 = 13; + a6 = 1; + a21 = 11; + a19 = 5; + a5 = 4; + return 21; + } else if((((a21==12)&&(!(a18==1)&&((((a20==1)&&(((a5==4)&&((input==1)&&(a19==5)))&&(a17==2)))&&(a13==1))&&(a1==12))))&&(!(a28==1)||(((((a23==1)&&((a13==1)||(a27==1)))&&(a16==8))&&(a9==9))&&!(a18==1))))){ + a16 = 7; + a12 = 1; + a5 = 5; + a0 = 0; + a1 = 13; + a19 = 2; + a21 = 10; + return 26; + } else if(((((a17==2)&&((a1==12)&&(((a16==9)&&((a28==1)&&(!(a27==1)&&((((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(input==1)))))&&(a20==1))))&&(a21==11))&&((a18==1)||((((a24==1)||((a19==2)&&(a6==1)))&&!(a18==1))&&!(a27==1))))){ + a5 = 4; + a19 = 1; + a14 = 0; + a11 = 1; + a2 = 1; + a21 = 10; + a9 = 7; + a16 = 7; + return -1; + } else if(((((a20==1)&&(!(a0==1)&&(((a13==1)&&((a3==1)&&((input==1)&&(((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))))))&&(a13==1))))&&(a1==14))&&((a19==2)&&((((a17==2)&&((!(a11==1)||(a13==1))||(a8==1)))&&(a16==7))&&(a21==12))))){ + a19 = 3; + a5 = 6; + a16 = 9; + a9 = 9; + a21 = 10; + a0 = 0; + a14 = 0; + a18 = 0; + return 26; + } else if((((a13==1)&&(!(a8==1)&&(((((((input==6)&&((a5==5)||(a5==6)))&&(a17==2))&&(a21==10))&&(a20==1))&&!(a7==1))&&(a9==9))))&&(((a23==1)&&((a2==1)&&(((a1==13)&&((a3==1)&&(a19==5)))&&(a16==9))))&&!(a7==1)))){ + a7 = 0; + a9 = 7; + a0 = 0; + a5 = 4; + a1 = 12; + a11 = 1; + a16 = 7; + a19 = 1; + return -1; + } else if(((((a1==12)&&(((((a16==11)&&(!(a20==1)&&(!(a14==1)&&((a2==1)&&(a23==1)))))&&(a9==11))||!(a23==1))||(a0==1)))&&(a11==1))&&((a5==4)&&((a19==3)&&((a13==1)&&(((input==6)&&(a17==2))&&(a21==10))))))){ + a0 = 1; + a15 = 0; + a9 = 7; + a12 = 0; + a19 = 1; + a5 = 6; + a16 = 7; + a20 = 1; + return -1; + } else if(((!(a8==1)&&((a17==2)&&((((a27==1)||(((a16==7)&&((a2==1)&&(a21==10)))&&(a1==14)))&&(a19==2))||!(a11==1))))&&((a28==1)&&(((a11==1)&&(((a20==1)&&((input==5)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a0==1)))&&(a9==11))))){ + a5 = 5; + a0 = 0; + a11 = 1; + a28 = 1; + a19 = 4; + a9 = 9; + return 23; + } else if((((a1==13)&&(!(a8==1)&&((a21==10)&&(((((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a5==4)&&(a9==8)))&&(input==5))&&(a13==1))&&!(a8==1)))))&&((!(a24==1)&&(!(a2==1)||((a20==1)&&(((a17==2)&&((a13==1)&&(a19==1)))&&(a16==9)))))||!(a28==1)))){ + if((a28==1)){ + a0 = 0; + a1 = 12; + a9 = 11; + a5 = 5; + a16 = 8; + a2 = 1; + a20 = 0; + a19 = 2; + }else{ + a9 = 9; + a16 = 11; + a27 = 0; + a13 = 1; + a1 = 12; + a5 = 5; + } + return 26; + } else if(((!(a26==1)&&((!(a7==1)&&((a17==2)&&((!(a2==1)||(((a28==1)&&(a1==13))&&(a21==12)))&&(a9==10))))||(a24==1)))&&(((a19==3)&&((((a23==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5)))))&&(a16==8))&&(a20==1)))&&(a12==1)))){ + a19 = 1; + a13 = 1; + a21 = 10; + a8 = 0; + a24 = 0; + a1 = 12; + a5 = 4; + a16 = 7; + a9 = 7; + return -1; + } else if((((!(a18==1)&&((a17==2)&&(((((a12==1)&&(((((a20==1)&&(input==1))&&(a5==6))&&(a21==10))&&(a3==1)))&&(a1==14))&&(a16==9))&&(a9==7))))&&!(a7==1))&&(((a27==1)||((a28==1)&&(a23==1)))&&(a19==1)))){ + a3 = 1; + a0 = 0; + a1 = 12; + a16 = 7; + a5 = 4; + return -1; + } else if(((!(a18==1)&&((((a17==2)&&((a19==2)&&((a11==1)&&((a20==1)&&((input==6)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))))))&&(a1==14))&&(a23==1)))&&((!(a14==1)&&((((a21==12)&&(a3==1))&&(a16==10))&&!(a24==1)))||!(a12==1)))){ + a28 = 1; + a1 = 13; + a5 = 4; + a9 = 9; + a11 = 1; + a21 = 10; + a16 = 7; + a0 = 0; + return 25; + } else if(((!(a4==1)&&(((a17==2)&&(!(a0==1)&&(!(a8==1)&&((!(a20==1)&&((!(a27==1)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6))))&&!(a7==1)))&&(a9==7)))))&&!(a4==1)))&&((((a16==8)&&((a19==1)&&(a3==1)))&&(a21==10))&&(a1==13)))){ + a23 = 1; + a20 = 1; + a18 = 0; + a5 = 4; + a1 = 12; + a16 = 7; + a28 = 1; + return -1; + } else if((((a17==2)&&((a5==6)&&((((a16==7)&&(input==5))&&(a9==9))&&(a28==1))))&&(((a19==4)&&((((!(a3==1)||((a20==1)&&(((a3==1)&&(a1==14))&&!(a0==1))))&&!(a0==1))&&(a21==11))||(a0==1)))&&!(a26==1)))){ + a1 = 12; + a19 = 5; + a16 = 8; + a9 = 8; + a28 = 1; + a7 = 0; + a6 = 1; + return 21; + } else if(((!(a7==1)&&(!(a26==1)&&((a3==1)&&(((a19==5)&&(((a9==11)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&(a1==12)))&&(a20==1)))))&&((((((a16==9)&&((a11==1)&&(a28==1)))&&!(a26==1))&&(a17==2))&&(a21==12))||!(a12==1)))){ + a5 = 4; + a19 = 1; + a24 = 0; + a7 = 0; + a16 = 7; + a28 = 1; + a9 = 7; + a21 = 10; + return -1; + } else if((((a20==1)&&((((a9==11)&&(((a11==1)&&(((a21==10)&&(input==3))&&(a3==1)))&&!(a14==1)))&&(a1==12))&&(a5==6)))&&((((a2==1)&&((a28==1)&&((a17==2)&&((a0==1)||(a28==1)))))&&(a16==10))&&(a19==2)))){ + a5 = 4; + a8 = 0; + a9 = 7; + a18 = 0; + a28 = 1; + a16 = 7; + a19 = 1; + return -1; + } else if((((a1==13)&&((((((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&(input==3))&&(a13==1))&&(a16==8)))&&(!(a13==1)||((a2==1)&&(((a17==2)&&((a21==10)&&(!(a13==1)||((a20==1)&&(!(a12==1)||((a12==1)&&(a19==4)))))))&&(a28==1)))))){ + a16 = 7; + a8 = 0; + a5 = 4; + a9 = 7; + a1 = 12; + a28 = 1; + a14 = 0; + a19 = 1; + return -1; + } else if((((a21==10)&&(((a12==1)&&(((a11==1)&&((input==1)&&(a17==2)))&&(a12==1)))&&(a9==9)))&&((a19==5)&&(!(a11==1)||((a1==13)&&((a8==1)||((((a5==4)&&((a23==1)&&(a28==1)))&&(a16==10))&&!(a20==1)))))))){ + if((a3==1)){ + a16 = 8; + a5 = 6; + a20 = 1; + a9 = 8; + a2 = 0; + a21 = 12; + a19 = 2; + a0 = 1; + }else{ + a11 = 0; + a20 = 1; + a1 = 14; + a5 = 6; + a25 = 1; + a22 = 0; + a16 = 7; + a9 = 11; + } + return -1; + } else if(((!(a20==1)&&((((a19==2)&&(((a26==1)&&((a5==6)&&(!(a23==1)&&(!(a3==1)&&((a13==1)&&(a18==1))))))&&(a1==12)))&&(a16==8))&&!(a12==1)))&&(((((input==1)&&(a17==2))&&(a9==9))&&(a21==11))&&!(a11==1)))){ + a21 = 10; + a27 = 1; + a20 = 1; + a23 = 0; + a16 = 7; + a29 = 0; + a9 = 11; + return 21; + } else if((((((!(a14==1)&&(((a21==11)&&((a16==7)&&((a6==1)&&(a1==14))))&&(a17==2)))||(a27==1))&&(a28==1))&&(a9==11))&&((a19==4)&&(((!(a7==1)&&(((input==1)&&((a5==5)||(a5==6)))&&(a20==1)))&&!(a7==1))&&!(a7==1))))){ + a19 = 5; + a5 = 6; + a12 = 1; + a18 = 0; + a16 = 8; + a1 = 13; + a24 = 0; + return 23; + } else if(((((((a20==1)&&((a21==10)&&((a1==13)&&(a12==1))))&&(a18==1))&&!(a6==1))&&(a7==1))&&((a16==8)&&((((a7==1)&&(((a9==7)&&((a7==1)&&((input==5)&&((a5==5)||(a5==6)))))&&(a19==2)))&&(a17==2))&&(a24==1))))){ + a21 = 11; + a4 = 1; + a19 = 1; + a29 = 0; + a5 = 4; + a16 = 7; + a24 = 1; + a9 = 9; + a20 = 0; + return 23; + } else if((((a19==5)&&((a17==2)&&(!(a0==1)&&(!(a4==1)&&(((((input==4)&&(((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))))&&(a12==1))&&(a28==1))&&(a21==12))))))&&((!(a13==1)||((((a6==1)&&(a16==8))&&!(a8==1))&&(a1==12)))&&(a20==1)))){ + a9 = 10; + a5 = 6; + a3 = 1; + a1 = 14; + a16 = 7; + a19 = 4; + a12 = 1; + a21 = 10; + a28 = 1; + return 25; + } else if(((!(a24==1)&&(((((a1==12)&&(!(a0==1)&&((input==4)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))))&&!(a14==1))&&!(a20==1))&&!(a0==1)))&&((((!(a24==1)&&(((a12==1)&&(a16==7))&&(a19==5)))||!(a2==1))&&(a21==10))&&(a17==2)))){ + a20 = 1; + a13 = 1; + a9 = 7; + a2 = 1; + a5 = 4; + a19 = 1; + a7 = 0; + return -1; + } else if((((((a11==1)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))&&(a11==1))&&!(a20==1))&&((((a16==9)&&(((((!(a6==1)||(((a23==1)&&(a13==1))&&(a13==1)))&&(a9==11))&&(a17==2))||!(a6==1))&&(a21==11)))&&(a1==12))&&(a19==5)))){ + a5 = 6; + a22 = 1; + a6 = 0; + a9 = 9; + a19 = 4; + a16 = 10; + a24 = 1; + a21 = 10; + return -1; + } else if((((a9==9)&&((a18==1)||((!(a20==1)&&(a28==1))&&(a21==10))))&&((a16==10)&&((((a17==2)&&((a6==1)&&(((!(a24==1)&&((a12==1)&&((a19==5)&&(input==5))))&&(a23==1))&&(a5==4))))&&(a1==13))&&(a23==1))))){ + a19 = 1; + a20 = 1; + a18 = 1; + a4 = 1; + a23 = 0; + a16 = 7; + a5 = 5; + a9 = 8; + a1 = 14; + return 21; + } else if(((((a3==1)&&(((a19==1)&&((!(a24==1)&&((a23==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5))))))&&(a23==1)))&&(a17==2)))&&(a21==10))&&(((a16==10)&&((!(a24==1)&&((a9==9)&&((a3==1)&&(a23==1))))&&(a20==1)))&&(a1==12)))){ + a7 = 0; + a14 = 0; + a5 = 4; + a16 = 7; + a9 = 7; + a27 = 0; + return -1; + } else if((((a4==1)&&(((a20==1)&&((a7==1)&&((a19==3)&&((a18==1)&&(a6==1)))))&&!(a23==1)))&&(!(a12==1)&&(((((a17==2)&&(((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==3))&&(a21==11)))&&!(a13==1))&&(a1==12))&&(a16==9))))){ + a0 = 1; + a5 = 5; + a9 = 9; + a8 = 1; + a1 = 14; + a19 = 1; + a13 = 0; + a16 = 10; + a21 = 10; + return -1; + } else if((((a9==8)&&((a1==12)&&(((a21==10)&&((a6==1)&&(a17==2)))&&(a12==1))))&&((a5==4)&&(((a12==1)&&(((a6==1)&&(!(a24==1)&&((a2==1)&&((!(a20==1)&&(input==4))&&(a16==10)))))&&!(a27==1)))&&(a19==4))))){ + a9 = 10; + a3 = 0; + a19 = 1; + a1 = 14; + a7 = 1; + a20 = 1; + a5 = 6; + a13 = 0; + a16 = 7; + return -1; + } else if((((a16==7)&&((a9==8)&&((((((a5==4)||(a5==5))&&(input==5))&&!(a27==1))&&(a19==4))&&(a17==2))))&&((((a1==14)&&(((a7==1)||((a14==1)||(!(a11==1)||((a6==1)&&!(a26==1)))))&&!(a0==1)))&&(a20==1))&&(a21==11)))){ + a11 = 1; + a16 = 8; + a24 = 0; + a12 = 1; + a5 = 5; + a9 = 10; + return 23; + } else if(((((!(a18==1)&&((a2==1)&&((((a17==2)&&((a5==6)&&((input==1)&&(a16==7))))&&!(a26==1))&&(a19==1))))&&!(a14==1))&&!(a20==1))&&((a9==10)&&(!(a2==1)||(((a1==12)&&((a6==1)&&(a13==1)))&&(a21==10)))))){ + a19 = 5; + a9 = 8; + a5 = 5; + a16 = 8; + a14 = 0; + a1 = 14; + a20 = 1; + a7 = 0; + a18 = 0; + return 25; + } else if((((a16==7)&&(!(a11==1)||((a28==1)&&(a1==13))))&&((a20==1)&&(!(a14==1)&&(((a2==1)&&((((((a19==2)&&((input==4)&&(((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6))))))&&!(a0==1))&&(a2==1))&&(a6==1))&&(a21==11)))&&(a17==2)))))){ + a5 = 4; + a19 = 1; + a4 = 0; + a1 = 12; + a9 = 7; + a21 = 10; + a28 = 1; + return -1; + } else if((((a4==1)||(((a24==1)||((a16==10)&&(((a6==1)&&(a2==1))||!(a3==1))))&&!(a14==1)))&&((!(a4==1)&&((a20==1)&&((((((a9==7)&&((a5==4)&&(a1==13)))||((((a1==12)&&(a5==5))&&(a9==11))||(((a1==12)&&(a5==6))&&(a9==11))))&&(input==3))&&(a21==10))&&(a19==1))))&&(a17==2)))){ + a1 = 12; + a5 = 4; + a13 = 1; + a18 = 0; + a6 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if(((((a21==11)&&(((a12==1)&&(!(a6==1)||((a6==1)&&(a12==1))))||!(a23==1)))&&(a19==2))&&((a17==2)&&(!(a20==1)&&((a2==1)&&((a28==1)&&(((input==3)&&(((a9==7)&&((a5==4)&&(a1==13)))||((((a5==5)&&(a1==12))&&(a9==11))||(((a1==12)&&(a5==6))&&(a9==11)))))&&(a16==7)))))))){ + a1 = 12; + a9 = 7; + a8 = 0; + a20 = 1; + a19 = 1; + a5 = 4; + a4 = 0; + a6 = 1; + a21 = 10; + return -1; + } else if(((((a17==2)&&((a19==4)&&((a28==1)&&(((((input==4)&&((a5==5)||(a5==6)))&&(a2==1))&&(a3==1))&&(a12==1)))))&&(a21==10))&&(!(a20==1)&&((a9==9)&&((((a23==1)&&((a6==1)&&(a6==1)))&&(a1==13))&&(a16==7)))))){ + a19 = 1; + a5 = 4; + a0 = 0; + a2 = 1; + a20 = 1; + a23 = 1; + a1 = 12; + a9 = 7; + return -1; + } else if(((((((a0==1)&&(!(a3==1)&&(a23==1)))&&(a21==10))&&(a9==7))&&(a16==9))&&(((a17==2)&&((a1==12)&&(((a19==5)&&(!(a13==1)&&((a0==1)&&((a4==1)&&((input==5)&&((a5==5)||(a5==6)))))))&&!(a13==1))))&&(a20==1)))){ + a5 = 4; + a1 = 13; + a9 = 10; + a19 = 3; + a29 = 1; + a21 = 12; + a22 = 0; + a0 = 1; + return 21; + } else if((((((a20==1)&&(((a27==1)&&(((input==6)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(a19==3)))&&(a21==12)))&&(a1==14))&&!(a12==1))&&(!(a13==1)&&((!(a3==1)&&((!(a3==1)&&((a11==1)&&(a27==1)))&&(a17==2)))&&(a16==11))))){ + a6 = 0; + a5 = 4; + a21 = 10; + a22 = 1; + a1 = 12; + a16 = 7; + a19 = 1; + a9 = 7; + a8 = 1; + return 22; + } else if((((!(a20==1)&&(((!(a8==1)&&(!(a8==1)&&(((a5==4)||(a5==5))&&(input==4))))&&(a17==2))&&(a11==1)))&&(a16==7))&&((a9==8)&&((a1==12)&&(!(a24==1)&&(((a23==1)&&(((a28==1)&&(a19==2))||!(a28==1)))&&(a21==12))))))){ + a19 = 1; + a9 = 7; + a28 = 1; + a4 = 0; + a5 = 4; + a20 = 1; + a21 = 10; + a0 = 0; + return -1; + } else if(((((((a21==12)&&(((a16==7)&&(!(a27==1)&&((!(a20==1)&&(input==3))&&!(a7==1))))&&(a11==1)))&&(a17==2))&&(a9==7))&&(a1==13))&&((a19==2)&&(((((a5==5)&&(a12==1))&&(a28==1))||(a14==1))&&(a6==1))))){ + a20 = 1; + a21 = 10; + a23 = 1; + a19 = 1; + a5 = 4; + a1 = 12; + a24 = 0; + a3 = 1; + return -1; + } else if((((a16==10)&&((a19==4)&&(((((!(a18==1)&&(a12==1))&&(a2==1))&&(a17==2))&&(a20==1))||(a27==1))))&&(!(a27==1)&&((a28==1)&&((a21==10)&&((a12==1)&&(((((a1==13)&&(a5==6))&&(a9==11))||(((a5==4)&&(a1==14))&&(a9==7)))&&(input==1)))))))){ + a1 = 14; + a2 = 1; + a28 = 1; + a9 = 7; + a23 = 1; + a19 = 2; + a5 = 6; + return 21; + } else if((((a9==8)&&(!(a13==1)||(!(a6==1)||(((a5==5)&&((a19==2)&&(a12==1)))&&!(a20==1)))))&&((a16==10)&&(((!(a27==1)&&(((a6==1)&&(((input==4)&&(a17==2))&&(a21==10)))&&(a28==1)))&&(a13==1))&&(a1==13))))){ + if((a16==10)){ + a20 = 1; + a19 = 1; + a6 = 0; + a9 = 7; + a10 = 0; + a16 = 7; + a14 = 1; + }else{ + a6 = 0; + a21 = 11; + a2 = 0; + a5 = 4; + a16 = 7; + a14 = 1; + a20 = 1; + } + return 21; + } else if(((((a21==12)&&(((input==6)&&((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a5==4)&&(a9==9))))&&!(a7==1)))&&(a19==1))&&((a4==1)||(!(a23==1)||(!(a8==1)&&((a17==2)&&((a1==13)&&((((a3==1)&&((a8==1)||(a3==1)))&&(a16==8))&&!(a20==1))))))))){ + a16 = 7; + a15 = 1; + a21 = 10; + a19 = 2; + a9 = 8; + a6 = 0; + a20 = 1; + a14 = 1; + a1 = 12; + a5 = 5; + return 25; + } else if((((!(a26==1)&&(!(a20==1)&&((!(a27==1)&&((a1==14)&&((a16==8)&&((a19==1)&&(a6==1)))))&&(a21==10))))||!(a12==1))&&((((a17==2)&&((!(a27==1)&&((input==4)&&((a5==6)||((a5==4)||(a5==5)))))&&(a9==7)))&&!(a4==1))&&!(a18==1)))){ + a2 = 1; + a5 = 5; + a20 = 1; + a14 = 0; + a21 = 12; + a19 = 5; + a9 = 8; + return 25; + } else if((((!(a20==1)&&((a19==1)&&((a16==9)&&((a28==1)&&((a17==2)&&(!(a24==1)&&(((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==4))&&(a11==1))))))))&&(a21==11))&&((a1==12)&&((((a11==1)&&(a23==1))&&!(a0==1))&&!(a0==1))))){ + if((a19==5)){ + a20 = 1; + a19 = 2; + a21 = 10; + a26 = 1; + a9 = 8; + a16 = 7; + a2 = 0; + a4 = 1; + a5 = 4; + }else{ + a16 = 10; + a21 = 12; + a29 = 0; + a1 = 14; + a25 = 0; + a5 = 6; + a23 = 0; + a9 = 10; + } + return -1; + } else if((((a2==1)&&(!(a2==1)||(((a28==1)&&((((a19==5)&&((a17==2)&&(a12==1)))&&(a20==1))&&(a21==10)))&&(a9==8))))&&(((a13==1)&&((a1==12)&&(((a16==11)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4)))&&!(a18==1))))&&!(a18==1)))){ + a3 = 1; + a28 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + a19 = 1; + a0 = 0; + return -1; + } else if((((a5==5)&&((a19==5)&&(((((((a16==8)&&(!(a12==1)||(!(a3==1)||(a6==1))))||!(a11==1))&&(a20==1))&&(a11==1))&&(a1==12))&&(a9==11))))&&((a21==11)&&(((a6==1)&&((a17==2)&&(input==4)))&&!(a4==1))))){ + a6 = 1; + a9 = 7; + a5 = 4; + a16 = 7; + a3 = 1; + a8 = 0; + a19 = 1; + a21 = 10; + return -1; + } else if((((a17==2)&&((((!(a8==1)&&((a1==13)&&((a23==1)&&(a2==1))))&&(a20==1))||!(a13==1))||!(a13==1)))&&(((a19==1)&&(((a16==10)&&((((input==1)&&(a5==4))&&!(a27==1))&&!(a8==1)))&&(a21==11)))&&(a9==9)))){ + a7 = 0; + a1 = 12; + a16 = 7; + a8 = 0; + a9 = 10; + a4 = 0; + a19 = 4; + a21 = 10; + a5 = 6; + return 25; + } else if(((((!(a7==1)&&(!(a26==1)&&((((((a1==14)&&((a19==2)&&((input==3)&&((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8))))))&&(a21==10))&&(a17==2))&&!(a7==1))&&!(a7==1))))&&(a2==1))&&(a13==1))&&((a16==10)&&((a28==1)&&(a20==1))))){ + a9 = 7; + a2 = 1; + a19 = 1; + a6 = 1; + a1 = 12; + a16 = 7; + a13 = 1; + a5 = 4; + return -1; + } else if((((a19==2)&&(!(a20==1)&&((a16==10)&&(((a24==1)||((a4==1)||(((a12==1)&&(a1==12))||!(a13==1))))&&(a9==8)))))&&((a17==2)&&(((a12==1)&&((!(a7==1)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6))))&&(a2==1)))&&(a21==12))))){ + a20 = 1; + a5 = 5; + a15 = 0; + a25 = 1; + a22 = 0; + a9 = 11; + a21 = 10; + a16 = 11; + a19 = 5; + return 21; + } else if((((((((a28==1)&&(a17==2))||!(a23==1))&&(a21==12))&&(a16==10))&&!(a20==1))&&(((a1==13)&&(((a12==1)&&(((a19==1)&&(((((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9))))&&(input==5))&&!(a24==1)))&&!(a18==1)))&&!(a0==1)))&&(a2==1)))){ + if((a23==1)){ + a16 = 7; + a8 = 1; + a1 = 12; + a21 = 10; + a28 = 0; + a5 = 4; + a24 = 1; + a19 = 2; + a9 = 9; + a20 = 1; + }else{ + a9 = 11; + a20 = 1; + a25 = 1; + a16 = 7; + a11 = 0; + a5 = 6; + a21 = 10; + a23 = 0; + } + return -1; + } else if(((!(a12==1)||(((((a19==5)&&(a12==1))&&(a17==2))&&(a16==8))&&(a6==1)))&&((!(a8==1)&&((((a5==6)&&(((!(a20==1)&&((a9==10)&&(input==4)))&&(a1==14))&&(a13==1)))&&(a3==1))&&(a21==11)))&&(a12==1)))){ + a4 = 1; + a19 = 1; + a21 = 10; + a5 = 4; + a20 = 1; + a28 = 0; + a9 = 7; + a18 = 1; + a16 = 7; + return 22; + } else if(((((a21==12)&&((a16==8)&&(a13==1)))||!(a11==1))&&((((((((a11==1)&&((a17==2)&&(((((a5==4)||(a5==5))&&(input==3))&&(a9==8))&&(a19==4))))&&!(a27==1))&&(a13==1))&&(a1==13))&&(a20==1))&&(a12==1))&&(a2==1)))){ + a5 = 4; + a9 = 7; + a21 = 10; + a4 = 0; + a14 = 0; + a8 = 0; + a16 = 7; + a1 = 12; + a19 = 1; + return -1; + } else if((((a17==2)&&(((a16==9)&&((a21==10)&&(((((input==3)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8))))&&!(a14==1))&&(a1==12))&&!(a18==1))))&&(a6==1)))&&(((((!(a11==1)||(a11==1))&&!(a18==1))&&(a19==5))||!(a6==1))&&!(a20==1)))){ + a16 = 11; + a21 = 12; + a5 = 6; + a14 = 1; + a25 = 1; + a20 = 1; + a28 = 0; + a9 = 11; + return -1; + } else if((((a19==5)&&((((a28==1)&&((((input==1)&&(((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))))&&!(a20==1))&&!(a27==1)))&&(a16==9))&&(a21==12)))&&(!(a11==1)||((a17==2)&&((a1==14)&&((a23==1)&&((a23==1)&&(!(a13==1)||(a23==1))))))))){ + a20 = 1; + a21 = 10; + a10 = 0; + a28 = 0; + a19 = 1; + a16 = 7; + a9 = 8; + a5 = 6; + return 21; + } else if((((a13==1)&&(((((a1==13)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))&&(a17==2))&&(a9==11))&&(a12==1)))&&((a13==1)&&((a21==10)&&((a3==1)&&((a16==9)&&(((((a11==1)&&(a23==1))&&(a19==3))&&!(a20==1))&&!(a14==1)))))))){ + a20 = 1; + a29 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + a19 = 1; + a25 = 1; + return -1; + } else if(((((a3==1)&&((a11==1)&&((a21==11)&&(((a17==2)&&(((input==5)&&(((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))))&&(a19==2)))&&!(a20==1)))))&&(a3==1))&&(((a1==13)&&((!(a23==1)||((a13==1)&&(a16==9)))||!(a3==1)))||(a14==1)))){ + a5 = 5; + a20 = 1; + a9 = 9; + a8 = 1; + a11 = 0; + a19 = 1; + a28 = 0; + a16 = 7; + a21 = 10; + return 25; + } return calculate_output11(input); + } + + int calculate_output11(int input) { + if(((((a23==1)&&(((input==5)&&(a21==10))&&(a5==5)))&&(a1==12))&&((((((((a18==1)||((a2==1)&&((a11==1)&&((a11==1)&&!(a20==1)))))&&(a9==9))&&(a16==10))&&(a17==2))||!(a28==1))||!(a11==1))&&(a19==3)))){ + a19 = 4; + a7 = 1; + a16 = 11; + a6 = 0; + a1 = 13; + a5 = 6; + a29 = 0; + a9 = 8; + return -1; + } else if(((((((((a19==1)&&(!(a14==1)&&(a11==1)))||!(a11==1))&&(a21==10))&&!(a20==1))||!(a28==1))&&(a16==9))&&((a6==1)&&((a23==1)&&(!(a24==1)&&(((a1==14)&&((input==1)&&(((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))))&&(a17==2))))))){ + a28 = 0; + a29 = 0; + a21 = 12; + a20 = 1; + a1 = 13; + a19 = 4; + a0 = 1; + a5 = 4; + a9 = 8; + return -1; + } else if((((!(a24==1)&&(((a21==12)&&((((((input==5)&&((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4))))&&(a11==1))&&(a12==1))&&!(a27==1))&&(a28==1)))&&(a28==1)))&&(a1==12))&&(((a19==1)&&((a17==2)&&((a16==11)&&(a23==1))))&&(a20==1)))){ + a6 = 1; + a5 = 4; + a16 = 7; + a14 = 0; + a21 = 10; + a9 = 7; + a7 = 0; + return -1; + } else if((((a1==12)&&(((a12==1)&&((a12==1)&&((a13==1)&&((a5==4)&&((a3==1)&&((a9==8)&&(input==3)))))))&&(a16==7)))&&(((a28==1)&&(!(a20==1)&&(((a21==11)&&(!(a24==1)&&(a28==1)))&&(a17==2))))&&(a19==4)))){ + a16 = 8; + a1 = 13; + a23 = 1; + a20 = 1; + a12 = 1; + a9 = 11; + a19 = 3; + return 22; + } else if((((a21==11)&&((((a18==1)||((a19==3)&&((a11==1)&&(a2==1))))||(a26==1))&&(a17==2)))&&(((((a16==9)&&(((a12==1)&&(((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))&&(input==5)))&&(a23==1)))&&(a28==1))&&(a1==14))&&(a20==1)))){ + a26 = 0; + a19 = 2; + a5 = 5; + a23 = 1; + a9 = 10; + a3 = 1; + a1 = 12; + a21 = 10; + a16 = 10; + return 25; + } else if(((((a9==10)&&(((a17==2)&&((a20==1)&&(!(a24==1)&&((a16==11)&&(input==4)))))&&(a21==11)))&&!(a27==1))&&(!(a2==1)||((a11==1)&&(((((a1==12)&&((a19==1)&&(a13==1)))&&(a5==6))&&!(a8==1))&&(a2==1)))))){ + a8 = 0; + a14 = 0; + a11 = 1; + a16 = 7; + a5 = 4; + a21 = 10; + a9 = 7; + return -1; + } else if(((((((a9==8)&&(!(a0==1)&&(((!(a14==1)&&((a20==1)&&(!(a4==1)&&((a28==1)&&(a19==4)))))&&(a1==14))&&(a21==12))))||(a8==1))&&(a2==1))||!(a23==1))&&((a16==9)&&((a17==2)&&(((a5==5)||(a5==6))&&(input==3)))))){ + a16 = 7; + a28 = 1; + a1 = 12; + a9 = 7; + a5 = 4; + a11 = 1; + a19 = 1; + a27 = 0; + a21 = 10; + return -1; + } else if(((((a20==1)&&((((a5==5)||(a5==6))&&(input==1))&&!(a24==1)))&&(a17==2))&&((((a4==1)||(!(a11==1)||((a19==2)&&((a9==11)&&(((a16==9)&&((a21==11)&&(!(a0==1)&&(a23==1))))||!(a23==1))))))||(a7==1))&&(a1==13)))){ + a19 = 5; + a5 = 5; + a1 = 14; + a27 = 0; + a3 = 1; + a28 = 1; + return 21; + } else if((((a1==14)&&((!(a27==1)&&((a19==5)&&((((a12==1)&&!(a18==1))&&(a9==10))&&(a28==1))))&&(a12==1)))&&((a16==10)&&(((((a17==2)&&((a21==11)&&((input==3)&&((a5==5)||(a5==6)))))&&!(a7==1))&&!(a7==1))&&!(a20==1))))){ + if((a26==1)){ + a9 = 7; + a8 = 1; + a21 = 10; + a5 = 4; + a16 = 7; + a18 = 1; + a19 = 1; + a20 = 1; + a13 = 0; + }else{ + a16 = 7; + a9 = 7; + a28 = 0; + a21 = 10; + a6 = 0; + a3 = 0; + a20 = 1; + a5 = 5; + a19 = 1; + } + return -1; + } else if((((a21==11)&&(!(a24==1)&&((a1==12)&&(((((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4)))&&(input==5)))))&&(((a16==10)&&((a17==2)&&((!(a8==1)&&((((!(a11==1)||(a3==1))||(a8==1))||(a27==1))&&(a19==2)))&&(a12==1))))&&(a20==1)))){ + a19 = 1; + a26 = 0; + a28 = 1; + a5 = 4; + a16 = 9; + a9 = 9; + a14 = 0; + return -1; + } else if((((((a21==10)&&((((a16==9)&&(a28==1))&&(a17==2))&&!(a20==1)))||!(a3==1))||!(a23==1))&&((((a5==5)&&((a9==9)&&((a28==1)&&((((a19==3)&&(input==6))&&(a1==13))&&(a28==1)))))&&(a11==1))&&(a12==1)))){ + a10 = 0; + a15 = 0; + a20 = 1; + a16 = 7; + a1 = 14; + a9 = 8; + a19 = 1; + a26 = 1; + return 21; + } else if(((((a17==2)&&((a3==1)&&(a19==1)))||!(a23==1))&&(!(a0==1)&&(((!(a14==1)&&((a1==14)&&((a11==1)&&((a9==11)&&((!(a20==1)&&((a16==7)&&((a5==6)&&(input==4))))&&(a28==1))))))&&!(a24==1))&&(a21==11))))){ + a9 = 10; + a1 = 13; + a21 = 12; + a20 = 1; + a28 = 1; + a16 = 11; + a27 = 0; + a6 = 1; + a19 = 3; + return 22; + } else if(((((((((((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10))))&&(input==4))&&(a17==2))&&(a13==1))&&(a19==1))&&!(a27==1))&&(a16==10))&&((a21==10)&&((a1==14)&&((a26==1)||(!(a11==1)||(((!(a20==1)&&(a3==1))||(a0==1))&&(a13==1)))))))){ + if((a2==1)){ + a9 = 7; + a5 = 5; + a18 = 1; + a21 = 12; + a22 = 0; + a1 = 12; + a29 = 1; + a20 = 1; + a16 = 11; + }else{ + a5 = 5; + a11 = 0; + a19 = 2; + a9 = 10; + a23 = 0; + } + return -1; + } else if(((((a3==1)&&(((((a28==1)||(a0==1))&&(a17==2))&&(a1==13))&&(a21==11)))||(a0==1))&&((a16==9)&&((((a19==4)&&((a9==10)&&((a2==1)&&((((a5==5)||(a5==6))&&(input==5))&&!(a26==1)))))&&!(a27==1))&&!(a20==1))))){ + if((a26==1)){ + a20 = 1; + a5 = 5; + a21 = 12; + a15 = 1; + a9 = 11; + a1 = 12; + a22 = 1; + a16 = 7; + a19 = 1; + a25 = 1; + }else{ + a28 = 0; + a19 = 2; + a5 = 6; + a9 = 8; + a20 = 1; + a29 = 0; + a6 = 0; + a16 = 11; + a21 = 12; + } + return -1; + } else if((((a0==1)||((!(a18==1)&&((a12==1)&&(a19==1)))&&(a1==14)))&&(!(a4==1)&&(!(a26==1)&&(((a2==1)&&((a17==2)&&((((((input==5)&&((a5==4)||(a5==5)))&&(a21==11))&&!(a20==1))&&(a16==9))&&(a9==8))))&&!(a14==1)))))){ + if((a11==1)){ + a5 = 4; + a20 = 1; + a16 = 7; + a1 = 12; + a21 = 10; + a11 = 0; + a6 = 0; + a25 = 1; + }else{ + a11 = 0; + a7 = 1; + a20 = 1; + a9 = 9; + a25 = 0; + a21 = 10; + a16 = 7; + a5 = 6; + a1 = 12; + } + return 23; + } else if(((((a3==1)&&((a3==1)&&((a19==3)&&(((a5==6)&&((a1==14)&&(input==3)))&&(a13==1)))))&&!(a26==1))&&((a16==7)&&(((((((a28==1)&&!(a18==1))&&(a9==10))&&(a20==1))||(a24==1))&&(a17==2))&&(a21==10))))){ + a1 = 12; + a9 = 7; + a19 = 1; + a23 = 1; + a13 = 1; + a27 = 0; + a5 = 4; + return -1; + } else if(((((a5==6)&&((a20==1)&&((a0==1)||(!(a12==1)||(((((a2==1)&&(a19==4))||!(a6==1))&&!(a26==1))||(a27==1))))))&&(a1==13))&&((a21==10)&&(((a17==2)&&((a9==7)&&((a16==7)&&(input==4))))&&!(a4==1))))){ + a27 = 0; + a23 = 1; + a11 = 1; + a21 = 11; + a9 = 11; + return 23; + } else if((((a17==2)&&((((a16==9)&&(input==5))&&(a6==1))&&(a11==1)))&&((a4==1)||((a27==1)||((a20==1)&&((((((a1==13)&&((a5==6)&&(!(a11==1)||(a11==1))))&&(a21==10))||(a0==1))&&(a9==8))&&(a19==5))))))){ + a26 = 0; + a23 = 1; + a5 = 5; + a9 = 11; + a24 = 0; + a16 = 8; + return 25; + } else if(((((a21==10)&&(!(a27==1)&&((!(a20==1)&&((input==5)&&((a5==5)||(a5==6))))&&!(a8==1))))&&(a6==1))&&(((((a1==12)&&((a16==9)&&((a7==1)||((a9==8)&&((a11==1)||!(a12==1))))))&&(a17==2))&&(a19==2))||(a24==1)))){ + a19 = 4; + a2 = 0; + a16 = 11; + a5 = 6; + a1 = 13; + a22 = 1; + return -1; + } else if(((((((a27==1)||(((a3==1)||!(a12==1))&&(a16==10)))||!(a2==1))&&(a17==2))&&(a19==5))&&(!(a20==1)&&((a21==11)&&((((a1==13)&&(!(a8==1)&&((a6==1)&&((input==4)&&((a5==4)||(a5==5))))))&&(a9==9))&&!(a0==1)))))){ + if((a12==1)){ + a6 = 0; + a5 = 5; + a9 = 8; + a25 = 0; + a20 = 1; + a1 = 12; + a19 = 2; + a29 = 0; + a16 = 7; + a21 = 10; + }else{ + a5 = 6; + a21 = 10; + a16 = 7; + a14 = 1; + a25 = 1; + a19 = 1; + a20 = 1; + a28 = 0; + a9 = 10; + } + return -1; + } else if((((((a26==1)||((a20==1)&&(((a11==1)&&(a13==1))&&(a21==12))))||!(a12==1))&&(a3==1))&&(((a17==2)&&((!(a0==1)&&((((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==4))||((a19==5)&&(((a1==12)&&(a5==4))&&(a9==7))))||((a19==5)&&(((a5==5)&&(a1==12))&&(a9==7))))&&(input==3)))&&(a16==7)))&&!(a8==1)))){ + a13 = 1; + a12 = 1; + a9 = 8; + a4 = 0; + a19 = 1; + a1 = 14; + a16 = 8; + a5 = 6; + return 21; + } else if((((((a21==11)&&(((((a12==1)&&(a28==1))&&(a16==7))&&(a20==1))&&(a19==3)))||(a0==1))||!(a6==1))&&(((!(a8==1)&&((a17==2)&&(!(a26==1)&&(((input==3)&&(a9==11))&&(a5==6)))))&&!(a18==1))&&(a1==13)))){ + a7 = 0; + a1 = 14; + a3 = 1; + a26 = 0; + a19 = 1; + a16 = 8; + return 26; + } else if(((!(a28==1)||(((a7==1)||((a21==10)&&(((((((a9==9)&&(a6==1))&&(a17==2))&&(a1==12))&&(a2==1))||!(a11==1))||!(a23==1))))&&!(a14==1)))&&((((a20==1)&&((input==3)&&((a5==4)||(a5==5))))&&(a16==11))&&(a19==5)))){ + a16 = 7; + a9 = 7; + a11 = 1; + a2 = 1; + a7 = 0; + a5 = 4; + a19 = 1; + return -1; + } else if(((((a17==2)&&((a16==10)&&((a9==9)&&(((a1==13)&&(!(a26==1)&&((input==4)&&(a20==1))))&&!(a14==1)))))&&(a19==2))&&(((((((a5==4)&&(a12==1))||!(a2==1))||!(a12==1))||!(a23==1))||(a4==1))&&(a21==11)))){ + a6 = 1; + a16 = 7; + a21 = 10; + a23 = 1; + a2 = 1; + a9 = 7; + a1 = 12; + a19 = 1; + return -1; + } else if((((a19==4)&&((a1==14)&&((a21==12)&&((a26==1)||(!(a2==1)||(a6==1))))))&&(!(a8==1)&&(((a16==9)&&(!(a7==1)&&((!(a20==1)&&(!(a8==1)&&((((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6))))&&(input==3))))&&(a17==2))))&&(a28==1))))){ + a5 = 6; + a9 = 9; + a23 = 0; + a21 = 10; + a20 = 1; + a3 = 0; + a18 = 1; + a16 = 7; + a19 = 1; + return -1; + } else if((((((a21==12)&&((((a8==1)||(((a16==9)&&(a28==1))||(a26==1)))&&(a1==14))||(a0==1)))&&(a9==10))&&(a20==1))&&((a5==4)&&(!(a14==1)&&((a17==2)&&(((a11==1)&&((a19==4)&&(input==5)))&&!(a18==1))))))){ + a6 = 1; + a21 = 10; + a20 = 0; + a9 = 9; + a19 = 3; + a3 = 1; + a16 = 8; + a24 = 0; + return 21; + } else if(((!(a14==1)&&((a28==1)&&((a1==14)&&(!(a18==1)&&(((a16==8)&&(((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8)))&&(input==3)))&&(a21==10))))))&&(!(a3==1)||(!(a8==1)&&((a7==1)||((((a2==1)&&(a17==2))&&(a19==5))&&!(a20==1))))))){ + a19 = 3; + a20 = 1; + a1 = 12; + a9 = 10; + a8 = 0; + a21 = 12; + a5 = 5; + a6 = 1; + a23 = 1; + return 26; + } else if((((((!(a27==1)&&((a17==2)&&((!(a14==1)&&(a13==1))&&!(a20==1))))&&(a13==1))&&(a2==1))&&(a19==1))&&((((a23==1)&&(((a21==11)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a16==10)))&&(a13==1)))&&(a1==14))&&(a9==8)))){ + a28 = 0; + a16 = 7; + a21 = 10; + a29 = 1; + a13 = 0; + a20 = 1; + a5 = 4; + return 21; + } else if(((((a2==1)&&(!(a11==1)||((a2==1)&&(a23==1))))&&(a17==2))&&((a21==12)&&((((a16==11)&&(((!(a27==1)&&(((a19==5)&&(((a5==4)||(a5==5))&&(input==5)))&&(a20==1)))&&(a1==12))&&!(a14==1)))&&!(a26==1))&&(a9==7))))){ + a21 = 10; + a27 = 0; + a8 = 0; + a5 = 4; + a19 = 1; + a16 = 7; + return -1; + } else if(((((a21==11)&&((((!(a7==1)&&((a12==1)&&(a11==1)))&&(a16==7))&&(a6==1))&&!(a26==1)))&&(a1==14))&&((a17==2)&&((a19==2)&&((((a23==1)&&((((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(input==5)))&&!(a20==1))&&!(a0==1)))))){ + a1 = 12; + a5 = 4; + a2 = 1; + a28 = 1; + a20 = 1; + a19 = 1; + a27 = 0; + a9 = 7; + a21 = 10; + return -1; + } else if((((!(a26==1)&&(!(a0==1)&&((((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11)))&&(input==1))&&(a1==12))))&&(a6==1))&&(!(a2==1)||((a7==1)||((a3==1)&&((a17==2)&&(((a16==10)&&((a19==4)&&((a20==1)&&(a13==1))))&&(a21==10)))))))){ + a2 = 1; + a14 = 0; + a28 = 1; + a5 = 4; + a9 = 7; + a19 = 1; + a16 = 7; + return -1; + } else if(((((a16==9)&&((a9==7)&&(((a28==1)&&(a23==1))||(a7==1))))&&(a1==13))&&((a5==6)&&((a19==2)&&((!(a27==1)&&(((((a3==1)&&((a17==2)&&(input==4)))&&!(a18==1))&&(a12==1))&&(a20==1)))&&(a21==11)))))){ + a21 = 10; + a19 = 1; + a0 = 0; + a26 = 0; + a9 = 10; + a27 = 0; + return 25; + } else if((((!(a23==1)||((a1==13)&&(((a14==1)||((a16==7)&&(a6==1)))&&(a17==2))))&&(a9==10))&&(((((!(a8==1)&&(!(a18==1)&&((a3==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5)))))))&&!(a24==1))&&(a19==2))&&!(a20==1))&&(a21==10)))){ + a5 = 5; + a1 = 12; + a0 = 0; + a8 = 0; + a9 = 9; + a19 = 3; + a14 = 0; + return 25; + } else if(((!(a11==1)||((((a1==12)&&(a2==1))&&(a17==2))&&(a13==1)))&&(((!(a4==1)&&((a21==10)&&(!(a27==1)&&(!(a20==1)&&((a16==9)&&(((((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10))))&&(input==6))&&(a19==1)))))))&&!(a14==1))&&!(a4==1)))){ + a1 = 13; + a9 = 10; + a5 = 4; + a15 = 1; + a11 = 0; + a16 = 7; + a20 = 1; + return 21; + } else if(((((!(a14==1)&&(((a16==9)&&((a21==10)&&(((((a9==11)&&((a1==14)&&(a5==6)))&&(a19==1))||((((a5==4)&&(a1==12))&&(a9==7))&&(a19==2)))&&(input==3))))&&(a20==1)))&&(a23==1))&&(a23==1))&&((a18==1)||((((a11==1)&&(a17==2))&&(a11==1))||(a24==1))))){ + a9 = 7; + a16 = 7; + a19 = 1; + a1 = 12; + a13 = 1; + a14 = 0; + a4 = 0; + a5 = 4; + return -1; + } else if((((a17==2)&&((((((((a6==1)&&((a13==1)&&((input==4)&&(a21==10))))&&!(a0==1))&&(a16==10))&&(a20==1))&&(a5==6))&&(a9==10))&&!(a14==1)))&&(((((a28==1)&&(a23==1))||(a14==1))&&(a19==1))&&(a1==12)))){ + a5 = 4; + a24 = 0; + a16 = 7; + a9 = 7; + a2 = 1; + return -1; + } else if((((!(a12==1)&&((a21==10)&&((((a14==1)&&(a6==1))&&(a19==5))&&(a24==1))))&&(a9==9))&&(((a27==1)&&((((a1==12)&&((a16==8)&&(((a17==2)&&(input==5))&&(a0==1))))&&(a20==1))&&(a5==4)))&&(a0==1)))){ + a1 = 13; + a12 = 0; + a15 = 0; + a16 = 10; + a25 = 1; + a9 = 11; + a21 = 11; + return 23; + } else if((((a17==2)&&(!(a20==1)&&(a28==1)))&&((a2==1)&&(!(a18==1)&&((a3==1)&&(((((input==6)&&((((a21==12)&&(((a16==8)&&(((a5==5)&&(a1==14))&&(a9==11)))&&(a19==5)))||((a21==12)&&((a19==5)&&((a16==8)&&(((a1==14)&&(a5==6))&&(a9==11))))))||((a21==10)&&(((a16==9)&&(((a1==12)&&(a5==4))&&(a9==7)))&&(a19==1)))))&&(a13==1))&&(a13==1))&&(a6==1))))))){ + a21 = 11; + a23 = 0; + a1 = 14; + a24 = 1; + a19 = 3; + a16 = 11; + a13 = 0; + a20 = 1; + a9 = 10; + a5 = 4; + return -1; + } else if((((!(a14==1)&&((a19==3)&&(((!(a14==1)&&((input==3)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))))&&!(a24==1))&&(a20==1))))&&(a17==2))&&((a21==11)&&(((a14==1)||((!(a28==1)||((a12==1)||(a27==1)))&&(a16==7)))&&(a1==13))))){ + a9 = 9; + a19 = 1; + a24 = 0; + a16 = 8; + a5 = 5; + a13 = 1; + a18 = 0; + return 23; + } else if(((((!(a8==1)&&((((a19==4)&&((input==5)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8)))))&&!(a14==1))&&!(a7==1)))&&!(a24==1))&&(a20==1))&&((a21==10)&&(!(a27==1)&&((a1==12)&&((a16==9)&&((a7==1)||((a17==2)&&(a6==1))))))))){ + a4 = 0; + a5 = 4; + a16 = 7; + a19 = 1; + a14 = 0; + a0 = 0; + a9 = 7; + return -1; + } else if((((a17==2)&&(((a20==1)&&((((a28==1)&&(a28==1))&&(a13==1))&&(a19==2)))||(a8==1)))&&(((a1==14)&&(((((((input==3)&&(a5==5))&&(a28==1))&&(a28==1))&&(a16==7))&&(a11==1))&&(a9==9)))&&(a21==11)))){ + a1 = 12; + a9 = 7; + a19 = 1; + a24 = 0; + a12 = 1; + a5 = 4; + a21 = 10; + a14 = 0; + return -1; + } else if(((!(a24==1)&&(((a17==2)&&((a16==11)&&(((((input==1)&&((((((a5==6)&&(a1==14))&&(a9==11))&&(a19==4))||((a19==5)&&((a9==7)&&((a5==4)&&(a1==12)))))||(((a9==7)&&((a5==5)&&(a1==12)))&&(a19==5))))&&(a20==1))&&!(a14==1))&&(a21==11))))&&(a12==1)))&&((a11==1)&&((a7==1)||((a6==1)&&(a12==1)))))){ + a5 = 5; + a16 = 8; + a0 = 0; + a19 = 5; + a1 = 12; + a26 = 0; + a9 = 8; + a20 = 0; + return 21; + } else if(((((a17==2)&&(((!(a2==1)||(((a9==8)&&(!(a20==1)&&(a12==1)))&&(a1==14)))&&(a16==10))&&(a21==12)))&&!(a18==1))&&(!(a24==1)&&((!(a18==1)&&((a19==4)&&((a11==1)&&(((a5==5)||(a5==6))&&(input==4)))))&&(a2==1))))){ + if((a25==1)){ + a27 = 1; + a20 = 1; + a9 = 7; + a21 = 10; + a16 = 8; + a5 = 6; + a26 = 1; + a19 = 3; + a15 = 1; + }else{ + a11 = 0; + a19 = 1; + a5 = 5; + a3 = 0; + a21 = 10; + a20 = 1; + a16 = 7; + a2 = 0; + } + return -1; + } else if((((a17==2)&&((a13==1)&&((((a14==1)||((a1==13)&&(!(a20==1)&&(a12==1))))&&(a23==1))&&(a21==11))))&&(((a19==4)&&((a6==1)&&(((a16==8)&&((input==5)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))&&(a23==1))))&&(a11==1)))){ + a20 = 1; + a16 = 7; + a5 = 4; + a21 = 10; + a1 = 12; + a3 = 1; + a9 = 7; + a19 = 1; + a8 = 0; + return -1; + } else if((((a21==11)&&((a12==1)&&((a5==5)&&((a1==13)&&((a16==9)&&((((((a9==7)&&(input==5))&&(a17==2))&&!(a8==1))&&!(a0==1))&&(a19==1)))))))&&((a20==1)&&(((a28==1)&&((a2==1)&&(a6==1)))&&(a6==1))))){ + a5 = 4; + a7 = 0; + a16 = 7; + a27 = 0; + a21 = 10; + a1 = 12; + a24 = 0; + return -1; + } else if(((((((a21==12)&&(!(a0==1)&&((((((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8))))&&(input==5))&&!(a0==1))&&(a17==2))))&&(a6==1))&&(a16==11))&&(a13==1))&&(!(a7==1)&&(!(a0==1)&&((a19==3)&&((a1==13)&&((a20==1)&&(a23==1)))))))){ + a19 = 1; + a1 = 12; + a16 = 7; + a23 = 1; + a2 = 1; + a5 = 4; + a21 = 10; + a9 = 7; + a14 = 0; + return -1; + } else if((((a1==14)&&(((a19==4)&&((a7==1)||(((a21==11)&&(((a17==2)&&(((a23==1)||!(a6==1))&&(a2==1)))||!(a12==1)))&&(a2==1))))&&(a20==1)))&&((a16==7)&&(!(a0==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&(a9==7)))))){ + a5 = 4; + a19 = 1; + a24 = 0; + a6 = 1; + a23 = 1; + a1 = 12; + a21 = 10; + return -1; + } else if((((a19==1)&&((!(a8==1)&&((a14==1)||((((a21==10)&&(!(a20==1)&&(!(a12==1)||(a6==1))))&&!(a7==1))||!(a28==1))))&&(a13==1)))&&((a5==5)&&(((a9==7)&&((a16==11)&&((input==4)&&(a1==13))))&&(a17==2))))){ + a16 = 8; + a6 = 0; + a5 = 6; + a9 = 8; + a1 = 12; + a2 = 0; + a19 = 3; + return 25; + } else if((((((a1==13)&&(((a21==12)&&((a3==1)&&(a12==1)))&&!(a20==1)))&&(a19==3))&&(a17==2))&&(((!(a26==1)&&(((!(a4==1)&&((input==5)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5)))))&&(a2==1))&&(a28==1)))&&(a16==10))&&!(a18==1)))){ + a6 = 0; + a9 = 8; + a29 = 1; + a20 = 1; + a1 = 14; + a5 = 6; + a19 = 2; + a25 = 1; + return -1; + } else if((((((a20==1)&&(((a28==1)||(a14==1))&&(a19==4)))&&(a13==1))&&(a21==10))&&((a1==12)&&(((a13==1)&&((((a6==1)&&(((input==4)&&((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11))))&&!(a26==1)))&&(a17==2))&&!(a26==1)))&&(a16==7))))){ + a18 = 0; + a28 = 1; + a5 = 4; + a9 = 7; + a19 = 1; + return -1; + } else if((((!(a4==1)&&((a21==12)&&(((a23==1)&&(((a16==7)&&(a3==1))&&(a1==13)))&&(a19==1))))||(a18==1))&&(!(a26==1)&&((a28==1)&&((!(a20==1)&&((((input==5)&&(a9==11))&&(a17==2))&&(a5==5)))&&!(a4==1)))))){ + a1 = 12; + a0 = 0; + a20 = 1; + a8 = 0; + a16 = 11; + a23 = 1; + return 23; + } else if((((((!(a14==1)&&(a23==1))&&(a12==1))&&!(a24==1))&&!(a0==1))&&((((a16==9)&&((a19==2)&&((a21==11)&&(((!(a20==1)&&((((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(input==4)))&&(a17==2))&&(a1==13)))))&&!(a14==1))&&!(a26==1)))){ + a16 = 7; + a5 = 4; + a1 = 14; + a21 = 10; + a19 = 1; + a20 = 1; + a6 = 0; + a9 = 7; + a24 = 1; + a27 = 1; + return 23; + } else if((((a28==1)&&(((a19==4)&&((!(a27==1)&&((a1==13)&&((a21==10)&&(a2==1))))&&!(a4==1)))&&(a17==2)))&&((!(a14==1)&&((a3==1)&&((a2==1)&&(((input==5)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5))))&&!(a20==1)))))&&(a16==11)))){ + a16 = 7; + a1 = 12; + a19 = 1; + a26 = 1; + a20 = 1; + a10 = 1; + a5 = 5; + a9 = 11; + return -1; + } else if((((((!(a7==1)&&((((a9==10)&&(a11==1))&&(a17==2))||!(a11==1)))&&(a12==1))&&(a16==10))&&(a19==4))&&(((a20==1)&&(!(a24==1)&&((((a23==1)&&((input==5)&&((a5==6)||((a5==4)||(a5==5)))))&&(a21==12))&&!(a27==1))))&&(a1==13)))){ + a19 = 2; + a2 = 1; + a11 = 1; + a16 = 7; + a5 = 4; + a8 = 0; + a21 = 10; + a9 = 9; + return -1; + } else if((((a1==12)&&(((a21==10)&&((a16==8)&&(!(a8==1)&&(((a28==1)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==4)))&&(a20==1)))))&&(a19==3)))&&((a0==1)||(((a12==1)&&(((a11==1)&&(a6==1))&&(a28==1)))&&(a17==2))))){ + a12 = 1; + a16 = 7; + a5 = 4; + a3 = 1; + a19 = 1; + a8 = 0; + a9 = 7; + return -1; + } else if((((((a16==7)&&(((input==5)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(a19==4)))&&(a17==2))&&(a12==1))&&((a26==1)||(((a1==13)&&((((a8==1)||(((a3==1)&&!(a8==1))||(a18==1)))&&(a21==12))&&(a20==1)))&&(a13==1))))){ + a11 = 1; + a9 = 11; + a3 = 1; + a20 = 0; + a5 = 5; + a19 = 5; + a12 = 1; + return 25; + } else if((((a17==2)&&((a6==1)&&(((a6==1)&&!(a0==1))||(a18==1))))&&(((a11==1)&&(!(a26==1)&&((a21==10)&&((((a16==11)&&(((((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&(input==6))&&!(a26==1)))&&(a1==12))&&(a19==5)))))&&(a20==1)))){ + a23 = 1; + a27 = 0; + a9 = 7; + a5 = 4; + a16 = 7; + a6 = 1; + a19 = 1; + return -1; + } else if((((a18==1)||((!(a24==1)&&((!(a11==1)||(!(a27==1)&&(a23==1)))&&(a19==5)))&&(a21==12)))&&((!(a4==1)&&(((a16==10)&&(!(a7==1)&&((a1==14)&&((a20==1)&&((input==4)&&(a5==4))))))&&(a9==7)))&&(a17==2)))){ + a1 = 13; + a5 = 5; + a23 = 1; + a13 = 1; + a7 = 0; + return -1; + } else if((((!(a18==1)&&(((!(a20==1)&&((!(a26==1)&&(((a9==10)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))&&(a6==1)))&&!(a4==1)))&&(a21==12))&&(a19==1)))&&(a17==2))&&((!(a13==1)||((a1==14)&&((a26==1)||(a3==1))))&&(a16==8)))){ + if((a24==1)){ + a3 = 0; + a20 = 1; + a25 = 1; + a8 = 1; + a16 = 7; + a9 = 11; + a5 = 6; + a21 = 10; + }else{ + a11 = 0; + a16 = 11; + a1 = 13; + a21 = 11; + a29 = 1; + a19 = 5; + a4 = 1; + a9 = 9; + a20 = 1; + a5 = 5; + } + return -1; + } else if(((!(a20==1)&&((!(a27==1)&&((((a28==1)&&(((a5==6)&&(a13==1))&&(a17==2)))&&(a16==8))&&(a6==1)))&&(a19==3)))&&((!(a24==1)&&((!(a7==1)&&((a13==1)&&((a9==7)&&(input==1))))&&(a21==11)))&&(a1==12)))){ + if((a11==1)){ + a7 = 0; + a24 = 0; + a1 = 14; + a5 = 5; + a9 = 11; + }else{ + a9 = 10; + a20 = 1; + a13 = 1; + a11 = 1; + a19 = 4; + a5 = 4; + a1 = 14; + a21 = 12; + } + return 25; + } else if((((a9==9)&&(((a17==2)&&(((a7==1)||(a23==1))||!(a28==1)))&&(a19==2)))&&(!(a14==1)&&((a23==1)&&(((a5==4)&&((((a16==10)&&(!(a20==1)&&((a1==12)&&(input==5))))&&(a21==12))&&!(a26==1)))&&!(a26==1)))))){ + if((a17==3)){ + a9 = 10; + a16 = 11; + a27 = 1; + a5 = 5; + a21 = 10; + a12 = 0; + a29 = 0; + a19 = 3; + }else{ + a15 = 1; + a9 = 11; + a21 = 10; + a20 = 1; + a4 = 1; + a16 = 7; + a5 = 6; + a29 = 1; + } + return -1; + } else if(((!(a3==1)||((a19==2)&&(((a11==1)&&(a1==14))&&(a20==1))))&&(((a21==12)&&((a2==1)&&(((a11==1)&&(((a17==2)&&((a16==11)&&((input==6)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5))))))&&(a3==1)))&&(a6==1))))&&!(a8==1)))){ + a9 = 11; + a23 = 1; + a13 = 1; + a19 = 4; + a21 = 10; + a27 = 0; + a5 = 5; + return 21; + } else if((((!(a14==1)&&(!(a7==1)&&(((!(a0==1)&&(!(a24==1)&&(!(a20==1)&&(((a5==5)||(a5==6))&&(input==6)))))&&(a11==1))&&(a9==10))))&&(a17==2))&&(((a16==9)&&((a3==1)&&(((a28==1)&&(a1==14))&&(a21==12))))&&(a19==4)))){ + a16 = 7; + a21 = 10; + a9 = 7; + a10 = 1; + a3 = 0; + a1 = 12; + a19 = 1; + a20 = 1; + a5 = 5; + a15 = 1; + return 23; + } else if((((a28==1)&&((a5==6)&&((a6==1)&&(((a17==2)&&(a6==1))&&(a1==12)))))&&(((a16==8)&&((((((((input==1)&&!(a20==1))&&!(a24==1))&&(a9==11))&&!(a8==1))&&(a21==12))&&(a11==1))&&(a19==1)))&&(a3==1)))){ + a11 = 0; + a21 = 10; + a20 = 1; + a29 = 0; + a19 = 3; + a5 = 4; + a1 = 13; + a9 = 7; + return -1; + } else if((((a5==6)&&(((a8==1)||((a2==1)||(a0==1)))&&(a17==2)))&&(((a23==1)&&((a16==11)&&((a12==1)&&(((a19==3)&&(((a3==1)&&((a9==7)&&((input==4)&&(a1==13))))&&(a11==1)))&&(a21==12)))))&&(a20==1)))){ + a26 = 0; + a1 = 12; + a16 = 7; + a12 = 1; + a5 = 4; + a21 = 10; + a19 = 1; + a14 = 0; + return -1; + } else if(((((a19==3)&&((a21==11)&&(((((a13==1)&&(a3==1))||!(a3==1))&&!(a14==1))||(a18==1))))&&(a1==14))&&((a20==1)&&((((!(a26==1)&&((((a5==5)||(a5==6))&&(input==4))&&(a9==7)))&&(a17==2))&&(a23==1))&&(a16==8))))){ + a1 = 12; + a16 = 7; + a6 = 1; + a5 = 4; + a19 = 1; + a21 = 10; + a8 = 0; + return -1; + } else if(((((!(a14==1)&&((a3==1)&&((input==1)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))))&&!(a26==1))&&(a3==1))&&(!(a23==1)||((a16==9)&&((a20==1)&&(((a1==14)&&(!(a23==1)||((a17==2)&&((a21==10)&&(a23==1)))))&&(a19==1))))))){ + a9 = 9; + a19 = 4; + a16 = 7; + a5 = 6; + a1 = 13; + a12 = 1; + a13 = 1; + a21 = 11; + a23 = 1; + a20 = 0; + return 25; + } else if(((((a16==9)&&((a19==3)&&(!(a18==1)&&(!(a20==1)&&((a17==2)&&((input==4)&&((a5==5)||(a5==6))))))))&&(a1==12))&&((((a23==1)&&((((!(a28==1)||(a12==1))&&(a21==10))&&!(a24==1))&&!(a4==1)))&&!(a26==1))&&(a9==11)))){ + if((a22==1)){ + a13 = 0; + a8 = 1; + a1 = 14; + a20 = 1; + a16 = 7; + a6 = 0; + a5 = 6; + a9 = 10; + a19 = 1; + }else{ + a19 = 4; + a10 = 1; + a21 = 12; + a5 = 6; + a28 = 0; + a16 = 7; + a20 = 1; + a9 = 9; + a24 = 1; + } + return -1; + } else if((((a23==1)&&((((((((a17==2)&&((a21==11)&&(input==6)))&&!(a26==1))&&(a20==1))&&(a19==3))&&(a1==13))&&(a13==1))&&!(a8==1)))&&((a0==1)||((a9==8)&&((a16==10)&&(((a2==1)&&(a5==6))&&(a11==1))))))){ + a0 = 0; + a16 = 7; + a8 = 0; + a28 = 1; + a9 = 9; + a21 = 10; + a19 = 2; + a5 = 5; + return 25; + } else if((((a5==5)&&((((a20==1)&&((a19==2)&&((a12==1)&&((a3==1)&&!(a0==1)))))&&!(a7==1))&&!(a8==1)))&&(((a17==2)&&((((((a9==10)&&(input==1))&&(a16==8))&&(a21==11))&&!(a24==1))&&!(a8==1)))&&(a1==14)))){ + a23 = 1; + a3 = 1; + a21 = 10; + a16 = 10; + a9 = 9; + a19 = 5; + a5 = 4; + a1 = 12; + return 25; + } else if((((a21==11)&&((a16==9)&&((a1==14)&&(((((a23==1)||!(a11==1))&&(a17==2))||!(a12==1))&&(a9==11)))))&&((a19==3)&&(!(a0==1)&&((a28==1)&&(!(a4==1)&&((a20==1)&&(((input==3)&&((a5==4)||(a5==5)))&&(a23==1))))))))){ + a4 = 0; + a5 = 4; + a1 = 12; + a19 = 1; + a14 = 0; + a9 = 7; + a21 = 10; + a16 = 7; + return -1; + } else if((((((((a3==1)&&!(a20==1))&&(a21==11))&&(a19==1))&&(a17==2))||(a24==1))&&(!(a14==1)&&((!(a7==1)&&(((a13==1)&&((((a9==11)&&(((a5==4)||(a5==5))&&(input==1)))&&(a12==1))&&(a16==9)))&&!(a14==1)))&&(a1==14))))){ + a14 = 1; + a16 = 8; + a5 = 6; + a9 = 9; + a19 = 2; + a23 = 0; + a15 = 0; + return -1; + } else if(((((a9==9)&&(((!(a27==1)&&((input==3)&&((a5==4)||(a5==5))))&&!(a14==1))&&(a1==13)))&&!(a4==1))&&((a21==10)&&(((a7==1)||((a26==1)||((a19==4)&&((a17==2)&&(!(a18==1)&&((a3==1)&&(a16==8)))))))&&(a20==1))))){ + a16 = 7; + a6 = 1; + a9 = 7; + a2 = 1; + a19 = 1; + a1 = 12; + a5 = 4; + a13 = 1; + return -1; + } else if((((a1==13)&&(((a17==2)&&(((((a19==1)&&((a2==1)&&(a5==6)))||!(a13==1))&&!(a20==1))&&(a21==10)))||(a24==1)))&&((((a11==1)&&(((a9==7)&&((a16==7)&&(input==3)))&&!(a0==1)))&&!(a27==1))&&(a2==1)))){ + a3 = 1; + a5 = 4; + a20 = 1; + a2 = 1; + a1 = 12; + a24 = 0; + return -1; + } else if(((!(a24==1)&&(!(a6==1)||(!(a7==1)&&((a21==12)&&((((a17==2)&&(((a5==6)&&(a11==1))&&(a20==1)))&&(a9==8))||(a27==1))))))&&((a1==13)&&(((((a16==9)&&(input==3))&&(a19==4))&&(a6==1))&&(a3==1))))){ + a5 = 4; + a16 = 7; + a9 = 7; + a27 = 0; + a1 = 12; + a19 = 1; + a21 = 10; + a24 = 0; + return -1; + } else if((((a20==1)&&((a16==7)&&((a2==1)&&((((((a9==11)&&((a1==12)&&(a5==6)))||((a9==7)&&((a5==4)&&(a1==13))))&&(input==3))&&!(a8==1))&&!(a7==1)))))&&((a19==1)&&((!(a8==1)&&((a21==12)&&((!(a23==1)||(a2==1))&&!(a0==1))))&&(a17==2))))){ + a0 = 0; + a23 = 1; + a1 = 12; + a9 = 7; + a5 = 4; + a21 = 10; + a28 = 1; + return -1; + } else if((((a24==1)||((a6==1)&&(((!(a28==1)||((a17==2)&&(a2==1)))&&(a9==8))||!(a11==1))))&&((a23==1)&&((a3==1)&&((a19==1)&&((a1==12)&&((a21==11)&&(((a16==10)&&(((a5==4)||(a5==5))&&(input==3)))&&!(a20==1))))))))){ + if((a17==4)){ + a24 = 1; + a22 = 0; + a16 = 7; + a20 = 1; + a25 = 0; + a5 = 4; + a21 = 10; + }else{ + a26 = 1; + a5 = 5; + a16 = 7; + a9 = 10; + a21 = 10; + a29 = 0; + a18 = 1; + a20 = 1; + } + return -1; + } else if(((((((a16==10)&&((a28==1)&&((((((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(input==5))&&!(a26==1))&&!(a8==1))))&&!(a20==1))&&(a1==13))&&(a17==2))&&((a21==11)&&((!(a24==1)&&((!(a23==1)||(a23==1))&&!(a4==1)))&&(a19==2))))){ + a1 = 12; + a28 = 0; + a29 = 0; + a7 = 1; + a21 = 12; + a20 = 1; + a9 = 7; + a5 = 5; + return -1; + } else if((((a17==2)&&(((((a23==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4)))&&!(a18==1))&&(a21==10))&&(a16==7)))&&((a19==3)&&((((a27==1)||(((((a1==14)&&(a12==1))||(a24==1))||(a27==1))||(a0==1)))&&(a9==9))&&!(a20==1))))){ + a19 = 1; + a20 = 1; + a9 = 7; + a5 = 4; + a6 = 1; + a11 = 1; + a1 = 12; + a12 = 1; + return -1; + } else if(((!(a0==1)&&((a2==1)&&((a20==1)&&(((a17==2)&&((a12==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6))))&&(a16==9)))))&&(!(a2==1)||((a0==1)||((((a1==14)&&((a9==9)&&((a3==1)&&(a19==2))))||!(a13==1))&&(a21==11)))))){ + if((a7==1)){ + a16 = 8; + a14 = 0; + a5 = 6; + a1 = 12; + a13 = 1; + a19 = 3; + a6 = 1; + a21 = 10; + a9 = 10; + a20 = 0; + }else{ + a12 = 1; + a1 = 13; + a21 = 10; + a16 = 10; + a18 = 0; + a5 = 6; + a19 = 5; + } + return 21; + } else if((((((((a13==1)&&(a19==4))||(a18==1))||(a14==1))||!(a6==1))&&(a16==11))&&(((((a20==1)&&(((((a1==14)&&((input==4)&&((a5==5)||(a5==6))))&&!(a27==1))&&!(a0==1))&&(a12==1)))&&(a9==9))&&(a17==2))&&(a21==11)))){ + a21 = 10; + a4 = 0; + a9 = 7; + a23 = 1; + a12 = 1; + a19 = 1; + a1 = 12; + a16 = 7; + a5 = 4; + return -1; + } else if((((a1==14)&&((((a17==2)&&(((!(a20==1)&&(a13==1))&&(a21==10))||(a14==1)))&&!(a8==1))||!(a13==1)))&&(!(a8==1)&&(((a13==1)&&((a19==4)&&((a16==9)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))&&(input==3)))))&&(a28==1))))){ + a9 = 9; + a16 = 7; + a23 = 0; + a20 = 1; + a26 = 1; + a1 = 12; + a5 = 5; + a19 = 2; + return -1; + } else if((((a11==1)&&((a27==1)||(((a12==1)&&((a16==7)&&(((a17==2)&&((a11==1)&&(a9==8)))||(a7==1))))||!(a11==1))))&&((((((a19==1)&&((input==6)&&((a5==4)||(a5==5))))&&!(a27==1))&&!(a20==1))&&(a21==12))&&(a1==14)))){ + a21 = 10; + a16 = 10; + a23 = 1; + a27 = 0; + a20 = 1; + a5 = 4; + a0 = 0; + a19 = 2; + return 21; + } else if((((((a24==1)&&(((a12==1)&&(a16==7))&&(a17==2)))&&!(a23==1))&&!(a13==1))&&((!(a6==1)&&(((a20==1)&&(((a24==1)&&((((((a5==6)&&(a1==12))&&(a9==11))||(((a5==4)&&(a1==13))&&(a9==7)))||(((a5==5)&&(a1==13))&&(a9==7)))&&(input==1)))&&(a19==2)))&&(a4==1)))&&(a21==11)))){ + a1 = 14; + a21 = 12; + a9 = 11; + a7 = 1; + a16 = 9; + a22 = 0; + a5 = 4; + a12 = 0; + a19 = 3; + return 26; + } else if((((((!(a0==1)&&(((a21==10)&&(((((a20==1)&&((a1==12)&&(input==1)))&&(a19==1))&&!(a26==1))&&!(a0==1)))&&!(a24==1)))&&(a17==2))&&(a9==8))&&(a5==5))&&((a16==8)&&((a3==1)&&(!(a2==1)||(a13==1)))))){ + a0 = 0; + a16 = 9; + a5 = 4; + a9 = 9; + a3 = 1; + a1 = 14; + a21 = 12; + a7 = 0; + return 25; + } else if((((a1==12)&&((a28==1)&&(!(a18==1)&&(((((input==3)&&(a5==5))&&(a2==1))&&(a21==10))&&!(a24==1)))))&&(!(a6==1)||((((a19==5)&&((((a17==2)&&(a3==1))&&(a9==7))&&!(a20==1)))&&(a16==8))&&(a13==1))))){ + a26 = 0; + a19 = 1; + a20 = 1; + a5 = 4; + a4 = 0; + a16 = 7; + a23 = 1; + return -1; + } else if((((!(a8==1)&&(((a1==13)&&((a16==10)&&(input==1)))&&(a5==4)))&&!(a14==1))&&((((a17==2)&&((a21==12)&&((a19==2)&&(!(a20==1)&&((a9==7)&&(!(a0==1)&&((a11==1)&&!(a4==1))))))))&&!(a7==1))||!(a28==1)))){ + a28 = 0; + a1 = 12; + a20 = 1; + a19 = 3; + a16 = 9; + a3 = 0; + a9 = 10; + a21 = 11; + a0 = 1; + return -1; + } else if((((a1==12)&&((a17==2)&&(!(a20==1)&&(((a16==9)&&(a2==1))||(a8==1)))))&&(!(a4==1)&&((!(a18==1)&&(!(a18==1)&&(((a19==4)&&((a2==1)&&((((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==5))))&&(a21==12))))&&!(a14==1))))){ + if((a29==1)){ + a5 = 6; + a19 = 2; + a0 = 1; + a21 = 11; + a9 = 9; + a4 = 1; + a25 = 1; + }else{ + a16 = 8; + a1 = 13; + a21 = 11; + a10 = 0; + a12 = 0; + a5 = 4; + a28 = 0; + a9 = 7; + a19 = 5; + } + return -1; + } else if(((((((a2==1)&&(((input==3)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(a23==1)))&&(a2==1))&&(a6==1))&&!(a4==1))&&((a17==2)&&(((((((a20==1)&&(a3==1))&&(a19==3))&&!(a7==1))&&(a16==7))&&(a21==10))&&(a1==13))))){ + a9 = 7; + a12 = 1; + a3 = 1; + a19 = 1; + a7 = 0; + a1 = 12; + a5 = 4; + return -1; + } else if((((a16==9)&&((a12==1)&&((a19==1)&&((a20==1)&&((!(a14==1)&&(a3==1))&&(a21==12))))))&&((a13==1)&&((((!(a14==1)&&((((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a26==1))&&!(a8==1)))&&(a1==14))&&(a9==7))&&(a17==2))))){ + a3 = 1; + a26 = 0; + a5 = 4; + a21 = 10; + a1 = 12; + a16 = 7; + return -1; + } else if((((a23==1)&&((a13==1)&&(((a13==1)&&((a19==4)&&(input==3)))&&(a11==1))))&&(((a9==7)&&((a21==12)&&(((a5==4)&&(((!(a27==1)&&((a6==1)||!(a11==1)))&&(a17==2))&&(a16==7)))&&(a20==1))))&&(a1==14)))){ + a26 = 0; + a4 = 0; + a21 = 10; + a19 = 1; + a18 = 0; + a1 = 12; + return -1; + } else if(((((!(a4==1)&&(((a3==1)&&(!(a27==1)&&(((a19==1)&&((a21==10)&&((input==4)&&(((a9==11)&&((a1==13)&&(a5==6)))||(((a5==4)&&(a1==14))&&(a9==7))))))&&!(a0==1))))&&!(a0==1)))&&(a12==1))&&(a17==2))&&((a16==9)&&(!(a20==1)&&(a11==1))))){ + if((a22==1)){ + a1 = 14; + a11 = 0; + a25 = 0; + a9 = 9; + a19 = 5; + a3 = 0; + a5 = 4; + a21 = 11; + }else{ + a22 = 0; + a1 = 12; + a8 = 1; + a5 = 6; + a10 = 1; + a9 = 9; + } + return 25; + } else if((((a16==10)&&((a20==1)&&((a17==2)&&((((a0==1)||((a12==1)&&((a27==1)||(((a11==1)&&(a21==10))&&(a19==5)))))||(a7==1))||(a0==1)))))&&((a1==12)&&(((a6==1)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))&&(a9==9))))){ + a5 = 4; + a27 = 0; + a16 = 7; + a19 = 2; + a8 = 0; + a1 = 13; + return 23; + } else if((((a6==1)&&((a6==1)&&((!(a20==1)&&((a17==2)&&((a19==5)&&((a28==1)&&(a2==1)))))||!(a23==1))))&&((a16==9)&&((((((((a9==11)&&((a1==12)&&(a5==6)))||((a9==7)&&((a5==4)&&(a1==13))))||(((a1==13)&&(a5==5))&&(a9==7)))&&(input==5))&&(a28==1))&&!(a8==1))&&(a21==12))))){ + if((a15==1)){ + a1 = 14; + a16 = 11; + a9 = 7; + a21 = 11; + a20 = 1; + a29 = 1; + a28 = 0; + a19 = 1; + a5 = 5; + a12 = 0; + }else{ + a22 = 1; + a1 = 12; + a2 = 0; + a5 = 6; + a24 = 1; + a16 = 8; + a19 = 1; + a9 = 8; + } + return -1; + } else if(((!(a6==1)&&((!(a23==1)&&(((a20==1)&&(a28==1))&&(a21==11)))&&!(a12==1)))&&((a1==12)&&(((a17==2)&&((a19==3)&&((a9==9)&&((a16==7)&&(!(a23==1)&&(!(a12==1)&&((input==6)&&((a5==5)||(a5==6)))))))))&&!(a28==1))))){ + a9 = 10; + a24 = 1; + a12 = 0; + a5 = 6; + a19 = 5; + a1 = 13; + a11 = 0; + a21 = 10; + return -1; + } else if((((!(a18==1)&&(!(a8==1)&&(!(a26==1)&&((((a1==12)&&(((input==3)&&(a9==10))&&(a16==8)))&&(a5==6))&&(a20==1)))))&&(a17==2))&&((((((a8==1)||(a3==1))&&!(a18==1))&&!(a14==1))&&(a19==4))&&(a21==12)))){ + a16 = 10; + a7 = 0; + a1 = 13; + a19 = 3; + a9 = 11; + a13 = 1; + a5 = 4; + a27 = 0; + return 26; + } else if(((((((a1==12)&&(a28==1))||!(a23==1))&&(a19==3))&&(a21==10))&&((!(a14==1)&&((a16==8)&&((a23==1)&&((!(a20==1)&&(!(a14==1)&&((a23==1)&&((input==1)&&((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a5==4)&&(a9==10)))))))&&!(a7==1)))))&&(a17==2)))){ + a16 = 7; + a5 = 5; + a1 = 14; + a20 = 1; + a13 = 1; + a21 = 11; + a23 = 1; + a14 = 0; + a9 = 11; + a19 = 1; + return 23; + } else if((((a17==2)&&((((a16==10)&&(!(a24==1)&&((a6==1)&&((a11==1)&&((input==3)&&((((a9==11)&&((a1==12)&&(a5==5)))||(((a5==6)&&(a1==12))&&(a9==11)))||(((a5==4)&&(a1==13))&&(a9==7))))))))&&!(a7==1))&&(a21==11)))&&((((a0==1)||((a14==1)||(a28==1)))&&(a19==4))&&(a20==1)))){ + a9 = 9; + a5 = 4; + a16 = 7; + a18 = 0; + a1 = 13; + a19 = 2; + a28 = 1; + a2 = 1; + a21 = 10; + return -1; + } else if((((a19==3)&&(((a12==1)&&((a1==13)&&(!(a26==1)&&((a20==1)&&(((a16==10)&&(input==6))&&(a17==2))))))&&(a5==5)))&&((a9==7)&&((a28==1)&&((a0==1)||((((a11==1)&&(a21==10))||(a0==1))&&(a2==1))))))){ + a4 = 0; + a19 = 2; + a9 = 9; + a12 = 1; + a11 = 1; + a21 = 11; + return 21; + } else if((((a26==1)||(((a26==1)||((a23==1)&&(a1==14)))&&(a19==4)))&&(((a6==1)&&((!(a27==1)&&(!(a24==1)&&((a17==2)&&((a21==12)&&(((((a5==5)||(a5==6))&&(input==4))&&(a16==7))&&!(a20==1))))))&&(a9==10)))&&(a28==1)))){ + a9 = 7; + a19 = 1; + a20 = 1; + a18 = 0; + a4 = 0; + a0 = 0; + a5 = 4; + a21 = 10; + a1 = 12; + return -1; + } else if((((a20==1)&&((a13==1)&&((!(a8==1)&&((input==6)&&((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4)))))&&(a16==10))))&&(((((a1==12)&&(!(a7==1)&&(((!(a11==1)||(a12==1))&&(a19==4))&&(a21==11))))||(a24==1))||(a27==1))&&(a17==2)))){ + a19 = 2; + a16 = 7; + a1 = 13; + a11 = 1; + a7 = 0; + a0 = 0; + a5 = 4; + a21 = 10; + a9 = 9; + return -1; + } else if(((((a7==1)&&(!(a2==1)&&((a24==1)&&((a17==2)&&(((a20==1)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a9==9))&&!(a11==1)))&&(a1==13))))))&&(a26==1))&&(((a16==8)&&(((a21==11)&&(a13==1))&&(a19==1)))&&(a8==1)))){ + a5 = 4; + a16 = 7; + a12 = 0; + a10 = 0; + a21 = 10; + a1 = 14; + a7 = 1; + a9 = 10; + return -1; + } else if((((((a21==10)&&(((a17==2)&&((a1==13)&&((a26==1)||((a6==1)||(a26==1)))))||(a18==1)))&&(a20==1))&&(a19==1))&&(!(a0==1)&&(((a16==10)&&((((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))&&(input==6))&&(a3==1)))&&(a13==1))))){ + a9 = 7; + a5 = 4; + a11 = 1; + a0 = 0; + a1 = 12; + a16 = 7; + return -1; + } else if(((!(a20==1)&&(((!(a18==1)&&((((((a5==4)||(a5==5))&&(input==3))&&(a19==2))&&(a3==1))&&!(a26==1)))&&(a16==10))&&(a9==8)))&&((((!(a7==1)&&((a7==1)||((a6==1)||(a24==1))))&&(a17==2))&&(a1==12))&&(a21==10)))){ + a16 = 7; + a2 = 0; + a21 = 12; + a5 = 4; + a1 = 14; + a9 = 10; + return 22; + } else if(((((((((input==5)&&(a19==2))&&!(a0==1))&&!(a27==1))&&(a12==1))&&(a16==8))&&(a17==2))&&((a9==8)&&(((((a12==1)&&((a4==1)||((a5==4)&&((a2==1)||!(a28==1)))))&&!(a20==1))&&(a21==10))&&(a1==12))))){ + a5 = 5; + a1 = 14; + a20 = 1; + a26 = 0; + a16 = 10; + a9 = 10; + a6 = 1; + return 23; + } else if((((!(a8==1)&&(((((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(input==3))&&!(a20==1)))&&(a1==14))&&((((((a27==1)||((a19==3)&&((a21==10)&&((a4==1)||((a16==9)&&(a28==1))))))&&(a23==1))&&(a17==2))&&(a12==1))&&(a13==1)))){ + a10 = 0; + a2 = 0; + a19 = 1; + a16 = 10; + a21 = 11; + a20 = 1; + a9 = 10; + a7 = 1; + a5 = 6; + return -1; + } else if((((a19==2)&&(((a11==1)&&!(a2==1))&&(a16==11)))&&(((a20==1)&&(((a1==13)&&((((a8==1)&&((a26==1)&&((a17==2)&&(((input==6)&&((a5==5)||(a5==6)))&&!(a23==1)))))&&(a21==12))&&(a9==9)))&&(a0==1)))&&(a4==1)))){ + a21 = 10; + a9 = 8; + a5 = 5; + a25 = 0; + a14 = 1; + a19 = 1; + a3 = 0; + a1 = 12; + return -1; + } else if((((((a20==1)&&((a17==2)&&((a6==1)&&(a19==4))))&&(a1==13))&&!(a26==1))&&(((!(a14==1)&&(((!(a7==1)&&((a16==9)&&((a5==4)&&((a21==12)&&(input==4)))))&&!(a4==1))&&(a9==9)))&&(a11==1))&&(a2==1)))){ + a1 = 14; + a9 = 11; + a8 = 0; + a3 = 1; + a21 = 11; + a16 = 8; + a19 = 1; + return -1; + } else if(((((!(a27==1)&&((a12==1)&&!(a24==1)))&&(a16==10))&&(a21==12))&&(((((!(a7==1)&&((((a6==1)&&((input==5)&&((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4)))))&&!(a24==1))&&!(a4==1)))&&(a20==1))&&(a17==2))&&(a19==4))&&(a1==12)))){ + a19 = 2; + a21 = 10; + a5 = 4; + a7 = 0; + a9 = 9; + a6 = 1; + a1 = 13; + a16 = 7; + return 25; + } else if(((((a17==2)&&(!(a14==1)&&((a16==8)&&((a6==1)&&((!(a14==1)&&((a20==1)&&((input==6)&&(a19==3))))&&(a1==14))))))&&(a28==1))&&((((a9==11)&&(((a0==1)||(a2==1))&&!(a4==1)))&&(a5==6))&&(a21==10)))){ + if((a16==11)){ + a11 = 1; + a23 = 1; + a20 = 0; + a5 = 4; + a21 = 12; + a16 = 7; + a9 = 7; + a19 = 2; + a6 = 1; + }else{ + a18 = 0; + a16 = 9; + a9 = 9; + a27 = 0; + a21 = 12; + a19 = 5; + a5 = 5; + } + return 21; + } else if((((((!(a27==1)&&((a17==2)&&((a19==1)&&((a20==1)&&(a6==1)))))||!(a12==1))||!(a11==1))&&(a23==1))&&((((((a16==8)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))&&(input==1)))&&(a21==10))&&(a1==13))&&!(a7==1))&&!(a8==1)))){ + a18 = 0; + a1 = 12; + a11 = 1; + a4 = 0; + a9 = 7; + a16 = 7; + a5 = 4; + return -1; + } else if(((((a16==11)&&(((((a12==1)&&(!(a18==1)&&((input==5)&&((a5==6)||((a5==4)||(a5==5))))))&&!(a26==1))&&!(a18==1))&&(a19==1)))&&(a17==2))&&((a9==9)&&((a20==1)&&(((a1==12)&&(((a21==10)&&(a28==1))||(a4==1)))||(a27==1)))))){ + a3 = 1; + a1 = 14; + a26 = 0; + a21 = 11; + a5 = 5; + a27 = 0; + return 25; + } else if(((((a13==1)&&(!(a0==1)&&(((a9==7)&&((a5==4)&&(!(a20==1)&&(input==6))))&&(a16==9))))&&!(a0==1))&&((a19==3)&&((a23==1)&&(((a7==1)||((a17==2)&&((a21==12)&&(!(a0==1)&&(a6==1)))))&&(a1==13)))))){ + if((a0==1)){ + a20 = 1; + a11 = 0; + a2 = 0; + a16 = 10; + a29 = 0; + a19 = 5; + }else{ + a4 = 1; + a12 = 0; + a21 = 10; + a5 = 6; + a9 = 11; + a1 = 14; + a19 = 2; + a10 = 1; + } + return -1; + } else if(((((a21==12)&&((!(a18==1)&&((((a2==1)&&!(a24==1))&&(a23==1))&&(a19==4)))&&(a17==2)))&&(a5==4))&&((a9==11)&&((((a11==1)&&((((a1==12)&&(input==5))&&!(a7==1))&&(a11==1)))&&!(a20==1))&&(a16==10))))){ + if((a27==1)){ + a16 = 7; + a21 = 10; + a1 = 13; + a15 = 0; + a20 = 1; + a9 = 9; + a5 = 5; + a19 = 1; + a25 = 1; + a26 = 1; + }else{ + a29 = 1; + a15 = 0; + a20 = 1; + a16 = 8; + a21 = 11; + a19 = 3; + a1 = 13; + a2 = 0; + } + return -1; + } else if((((a17==2)&&((a1==14)&&((((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(input==5))))&&(!(a27==1)&&((a18==1)||(((a8==1)||((a4==1)||((((!(a4==1)&&((a21==10)&&(a6==1)))&&!(a20==1))&&(a19==4))&&(a16==10))))&&(a3==1)))))){ + a16 = 8; + a5 = 5; + a7 = 1; + a6 = 0; + a9 = 7; + a21 = 11; + a1 = 12; + a0 = 1; + a19 = 1; + return -1; + } else if(((((a19==1)&&(!(a13==1)||((a16==9)&&((a1==12)&&((a11==1)&&!(a20==1))))))&&(a17==2))&&((((a21==11)&&((!(a7==1)&&((a9==10)&&(((input==4)&&((a5==5)||(a5==6)))&&!(a7==1))))&&(a3==1)))&&(a3==1))&&!(a8==1)))){ + if((a6==1)){ + a11 = 0; + a15 = 1; + a21 = 10; + a19 = 3; + a2 = 0; + a16 = 11; + a1 = 13; + a9 = 11; + a5 = 4; + }else{ + a13 = 0; + a16 = 7; + a3 = 0; + a20 = 1; + a21 = 10; + a9 = 8; + a5 = 5; + a2 = 0; + } + return -1; + } else if((((a13==1)&&((((a21==12)&&(((a16==7)&&(a11==1))&&(a19==5)))||!(a11==1))||(a27==1)))&&(!(a0==1)&&(((a13==1)&&((a17==2)&&(((input==1)&&((((a9==11)&&((a5==6)&&(a1==12)))||((a9==7)&&((a1==13)&&(a5==4))))||(((a5==5)&&(a1==13))&&(a9==7))))&&!(a20==1))))&&!(a7==1))))){ + a9 = 7; + a28 = 1; + a4 = 0; + a21 = 10; + a14 = 0; + a20 = 1; + a5 = 4; + a19 = 1; + a1 = 12; + return -1; + } else if((((a2==1)&&((((a16==11)&&((a2==1)&&(!(a4==1)&&(((a21==11)&&((input==4)&&((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4)))))&&(a17==2)))))&&!(a8==1))&&(a1==12)))&&(((((a6==1)&&(a19==1))&&!(a24==1))&&(a20==1))||!(a11==1)))){ + a8 = 0; + a16 = 7; + a21 = 10; + a5 = 4; + a28 = 1; + a9 = 7; + a12 = 1; + return -1; + } else if((((a21==11)&&(((((a24==1)&&(!(a23==1)&&(((a7==1)&&(((input==4)&&((a5==4)||(a5==5)))&&(a9==10)))&&(a20==1))))&&(a19==1))&&(a17==2))&&(a1==12)))&&(((a26==1)&&(((a16==10)&&(a13==1))&&(a27==1)))&&(a24==1)))){ + a21 = 10; + a0 = 1; + a19 = 2; + a14 = 1; + a16 = 11; + a9 = 11; + a1 = 13; + a5 = 4; + a22 = 1; + return -1; + } else if(((!(a20==1)&&(((a21==10)&&(((a2==1)||(a7==1))||(a4==1)))||(a18==1)))&&(((a12==1)&&(!(a27==1)&&((((a16==7)&&((a9==9)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&!(a27==1))))&&(a19==4))&&(a1==14))))&&(a17==2)))){ + a9 = 7; + a19 = 1; + a7 = 0; + a5 = 4; + a23 = 1; + a1 = 12; + a20 = 1; + a4 = 0; + return -1; + } else if((((a16==9)&&((a1==12)&&((a21==12)&&((a11==1)&&((a11==1)&&((a11==1)||!(a12==1)))))))&&((a19==5)&&(((((a17==2)&&(!(a24==1)&&((input==5)&&(((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))))))&&(a13==1))&&!(a7==1))&&!(a20==1))))){ + if((a11==1)){ + a16 = 7; + a28 = 0; + a20 = 1; + a10 = 1; + a21 = 10; + a19 = 1; + a9 = 7; + a5 = 6; + a1 = 13; + a22 = 1; + }else{ + a8 = 1; + a16 = 7; + a21 = 10; + a19 = 2; + a20 = 1; + a5 = 4; + a13 = 0; + a9 = 10; + a18 = 1; + } + return -1; + } else if((((a9==10)&&(((a23==1)&&(((input==1)&&(a16==10))&&!(a18==1)))&&!(a0==1)))&&(((a5==5)&&(!(a7==1)&&(((a1==12)&&((((a17==2)&&(!(a6==1)||(a12==1)))&&(a21==12))&&(a6==1)))&&(a20==1))))&&(a19==3)))){ + a16 = 8; + a6 = 1; + a1 = 14; + a21 = 11; + a18 = 0; + a19 = 2; + a13 = 1; + return 22; + } else if(((((((a20==1)&&(!(a6==1)||(a2==1)))||!(a28==1))&&(a19==3))||!(a2==1))&&(!(a24==1)&&(((((a1==14)&&(((a21==11)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==6)))&&(a16==9)))&&(a17==2))&&(a12==1))&&(a23==1))))){ + a16 = 7; + a1 = 13; + a8 = 0; + a5 = 6; + a9 = 8; + a12 = 1; + a20 = 0; + a23 = 1; + return 23; + } else if((((a17==2)&&(((((a19==5)&&((input==4)&&((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4)))))&&!(a8==1))&&(a21==12))&&!(a27==1)))&&((a6==1)&&((a16==10)&&((a20==1)&&(!(a8==1)&&(((a18==1)||((a11==1)&&(a1==12)))||!(a2==1)))))))){ + a5 = 5; + a27 = 0; + a19 = 4; + a16 = 7; + a1 = 14; + a7 = 0; + a12 = 1; + a21 = 10; + a9 = 11; + return 25; + } else if((((((a3==1)&&!(a28==1))&&(a19==5))&&(a26==1))&&(((((a1==12)&&((!(a28==1)&&((a14==1)&&(((((a16==9)&&(input==4))&&(a9==11))&&(a21==10))&&(a17==2))))&&(a7==1)))&&(a20==1))&&(a5==6))&&(a4==1)))){ + a15 = 0; + a5 = 5; + a19 = 1; + a0 = 1; + a16 = 7; + a10 = 1; + a1 = 14; + return 26; + } else if((((a16==9)&&((((input==1)&&((((a9==7)&&((a5==5)&&(a1==12)))&&(a19==5))||((((a9==11)&&((a1==14)&&(a5==6)))&&(a19==4))||((a19==5)&&((a9==7)&&((a1==12)&&(a5==4)))))))&&(a23==1))&&!(a20==1)))&&((a6==1)&&(((a17==2)&&(((((a21==12)&&(a3==1))&&!(a18==1))||(a7==1))||!(a12==1)))&&(a3==1))))){ + a9 = 10; + a21 = 10; + a27 = 1; + a19 = 2; + a1 = 12; + a5 = 5; + a20 = 1; + a13 = 0; + a22 = 0; + a16 = 7; + return -1; + } else if((((((a17==2)&&((a11==1)||(a7==1)))||(a4==1))&&(a23==1))&&(((a9==10)&&((((a20==1)&&(((((a19==3)&&((a16==7)&&(input==6)))&&(a5==6))&&!(a26==1))&&!(a4==1)))&&(a13==1))&&(a21==12)))&&(a1==13)))){ + a5 = 4; + a23 = 1; + a24 = 0; + a21 = 10; + a1 = 12; + a19 = 1; + a9 = 7; + a0 = 0; + return -1; + } else if((((((a21==10)&&(((a3==1)&&(a23==1))||(a27==1)))||!(a3==1))&&(a16==11))&&(((((((((a19==4)&&((a9==11)&&((a5==6)&&(a1==14))))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==5)))&&(input==1))&&!(a27==1))&&(a17==2))&&(a12==1))&&(a3==1))&&(a20==1)))){ + a19 = 1; + a5 = 4; + a11 = 1; + a9 = 7; + a0 = 0; + a8 = 0; + a1 = 12; + a16 = 7; + return -1; + } else if(((((a1==14)&&((a19==1)&&((((((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&!(a4==1))&&(a21==11))&&(a23==1))&&(a12==1))&&(a3==1))))&&(a20==1))&&(((((a17==2)&&((a11==1)||(a24==1)))&&(a16==9))&&(a3==1))&&(a9==7)))){ + a5 = 4; + a21 = 12; + a19 = 3; + a9 = 9; + a1 = 12; + a14 = 0; + a4 = 0; + a6 = 1; + return 21; + } else if((((!(a23==1)||((((((a19==2)&&(a6==1))&&(a1==13))&&(a16==10))&&(a20==1))||!(a12==1)))&&(a9==10))&&((a23==1)&&(((a17==2)&&((a11==1)&&(!(a0==1)&&((a21==10)&&((input==1)&&((a5==4)||(a5==5)))))))&&(a28==1))))){ + a2 = 1; + a9 = 7; + a4 = 0; + a5 = 6; + a16 = 7; + a6 = 1; + return 22; + } else if((((a19==4)&&(((!(a23==1)||((((a21==10)&&(a11==1))&&(a17==2))&&(a1==13)))&&(a12==1))||!(a13==1)))&&(((a20==1)&&(((((((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9))))&&(input==1))&&(a28==1))&&!(a7==1))&&!(a0==1)))&&(a16==7)))){ + a12 = 1; + a24 = 0; + a1 = 12; + a21 = 11; + a19 = 5; + a5 = 4; + a9 = 10; + a14 = 0; + return 21; + } else if((((a6==1)&&((((a9==7)&&((a23==1)&&((a1==12)&&(((a5==5)||(a5==6))&&(input==3)))))&&(a16==9))&&!(a20==1)))&&((a21==10)&&(((a19==1)&&((a8==1)||((a3==1)&&(((a6==1)&&(a12==1))&&(a28==1)))))&&(a17==2))))){ + if((a22==1)){ + a20 = 1; + a29 = 0; + a19 = 2; + a9 = 11; + a12 = 0; + a24 = 1; + a16 = 7; + a5 = 5; + }else{ + a5 = 6; + a20 = 1; + a9 = 11; + a2 = 0; + a1 = 13; + a4 = 1; + a22 = 1; + } + return -1; + } else if((((a23==1)&&(((a19==2)&&((a9==10)&&((a6==1)&&(((((input==3)&&(a5==6))&&!(a7==1))&&!(a27==1))&&(a17==2)))))&&(a16==10)))&&((a21==10)&&((a1==14)&&(((!(a2==1)||(a28==1))&&!(a20==1))||!(a12==1)))))){ + if((a7==1)){ + a21 = 11; + a3 = 0; + a20 = 1; + a2 = 0; + a16 = 8; + a26 = 1; + a9 = 9; + a19 = 4; + a1 = 13; + a5 = 5; + }else{ + a7 = 1; + a5 = 4; + a19 = 4; + a26 = 1; + a27 = 1; + a16 = 8; + a9 = 7; + } + return 22; + } else if(((!(a26==1)&&(!(a14==1)&&(((a21==12)&&((((((input==6)&&(((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))))&&(a19==5))&&(a13==1))&&!(a8==1))&&(a1==12)))&&!(a20==1))))&&((a16==8)&&((((a3==1)&&(a12==1))&&(a17==2))||(a8==1))))){ + a29 = 1; + a1 = 13; + a9 = 7; + a28 = 0; + a5 = 5; + a21 = 10; + a24 = 1; + return 23; + } else if((((a17==2)&&(((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==5))&&(a11==1)))&&(((a19==4)&&((a21==10)&&((((!(a14==1)&&((a1==12)&&((a11==1)&&((a2==1)&&(a28==1)))))&&!(a26==1))||(a0==1))&&!(a20==1))))&&(a16==7)))){ + a20 = 1; + a21 = 12; + a26 = 0; + a9 = 10; + a19 = 3; + a6 = 1; + a16 = 10; + a5 = 5; + a1 = 13; + return 21; + } else if((((a21==10)&&(((a1==12)&&(a23==1))&&(a16==9)))&&((a3==1)&&((a28==1)&&((a2==1)&&((a6==1)&&((a3==1)&&((((a19==3)&&((a17==2)&&((input==3)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))))&&!(a0==1))&&!(a20==1))))))))){ + a5 = 4; + a19 = 2; + a9 = 8; + a18 = 1; + a20 = 1; + a12 = 0; + a16 = 7; + a2 = 0; + return 23; + } else if((((a16==9)&&((a23==1)&&((a20==1)&&(!(a12==1)||((a17==2)&&((!(a14==1)&&((a1==14)&&(a23==1)))||(a24==1)))))))&&((a21==11)&&(((a19==1)&&(!(a27==1)&&(!(a8==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4)))))&&(a9==7))))){ + a24 = 0; + a1 = 12; + a18 = 0; + a16 = 7; + a21 = 10; + a8 = 0; + a5 = 4; + return -1; + } else if(((((((a16==7)&&((!(a2==1)||(((!(a24==1)&&(a11==1))&&(a17==2))&&(a19==2)))&&(a9==8)))&&(a20==1))||(a27==1))&&(a21==12))&&((a6==1)&&((a1==12)&&((((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a23==1))&&!(a8==1)))))){ + a1 = 14; + a5 = 6; + a11 = 1; + a6 = 1; + a19 = 1; + a12 = 1; + a16 = 8; + return 21; + } else if((((a21==12)&&(((((!(a27==1)&&(((a17==2)&&(input==5))&&!(a24==1)))&&(a5==6))&&!(a0==1))&&(a20==1))&&(a9==7)))&&((a1==12)&&((((!(a11==1)||((a13==1)&&(a28==1)))||!(a28==1))&&(a19==3))&&(a16==10))))){ + a16 = 7; + a27 = 0; + a5 = 4; + a21 = 10; + a28 = 1; + a19 = 1; + a7 = 0; + return -1; + } else if(((((a17==2)&&(((a16==10)&&((a19==3)&&(!(a20==1)&&((input==4)&&((a5==4)||(a5==5))))))&&(a13==1)))&&!(a8==1))&&((!(a11==1)||((a27==1)||(((!(a0==1)&&((a21==11)&&(a28==1)))&&(a9==9))&&(a1==14))))||(a14==1)))){ + if((a2==1)){ + a21 = 10; + a19 = 1; + a6 = 0; + a22 = 0; + a5 = 6; + a9 = 7; + a29 = 0; + a20 = 1; + a16 = 7; + }else{ + a19 = 2; + a16 = 9; + a0 = 1; + a3 = 0; + a5 = 4; + a9 = 11; + a27 = 1; + a21 = 12; + } + return 21; + } else if(((!(a4==1)&&(((a19==2)&&((input==1)&&(a20==1)))&&!(a24==1)))&&((a17==2)&&(((a9==11)&&(!(a23==1)||((((((a16==10)&&(!(a26==1)&&(a2==1)))&&(a21==12))||!(a28==1))&&(a12==1))&&(a5==4))))&&(a1==13))))){ + a21 = 10; + a16 = 7; + a0 = 0; + a27 = 0; + a9 = 9; + a11 = 1; + return 25; + } else if((((a17==2)&&((a16==7)&&(((a19==3)&&((a9==11)&&(((!(a18==1)&&(((a13==1)||!(a23==1))&&!(a27==1)))&&!(a7==1))&&(a3==1))))&&(a21==10))))&&((a1==14)&&(!(a26==1)&&((a20==1)&&((input==5)&&((a5==6)||((a5==4)||(a5==5))))))))){ + a9 = 7; + a1 = 12; + a19 = 1; + a5 = 4; + a3 = 1; + a26 = 0; + a12 = 1; + return -1; + } else if((((a0==1)||((a2==1)&&((a16==7)&&((a19==4)&&(a13==1)))))&&(((a6==1)&&((!(a8==1)&&(((a1==12)&&((a21==11)&&(((((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6))))&&(input==4))&&(a17==2))))&&!(a0==1)))&&!(a20==1)))&&!(a4==1)))){ + a19 = 5; + a3 = 1; + a16 = 8; + a14 = 0; + a9 = 7; + a12 = 1; + a1 = 13; + a21 = 12; + a20 = 1; + a5 = 5; + return 26; + } else if((((a17==2)&&(!(a8==1)&&(((input==4)&&(((a21==11)&&((a19==1)&&((a9==7)&&((a1==12)&&(a5==4)))))||((((((a1==14)&&(a5==5))&&(a9==11))&&(a19==5))&&(a21==10))||(((a19==5)&&(((a1==14)&&(a5==6))&&(a9==11)))&&(a21==10)))))&&!(a18==1))))&&((a16==8)&&((a2==1)&&(((((a6==1)&&!(a20==1))&&!(a24==1))||(a18==1))||(a18==1)))))){ + if((a14==1)){ + a3 = 1; + a1 = 12; + a26 = 0; + a21 = 11; + a19 = 5; + a9 = 7; + a5 = 5; + }else{ + a3 = 1; + a5 = 6; + a1 = 13; + a21 = 10; + a19 = 2; + a4 = 0; + a9 = 9; + a23 = 1; + a16 = 10; + a20 = 1; + } + return 25; + } else if((((a19==1)&&((a20==1)&&((((((a7==1)||((a12==1)||(a7==1)))&&(a9==11))||(a26==1))||!(a6==1))&&(a6==1))))&&(((a17==2)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a21==12))&&!(a24==1))&&(a16==9)))&&(a1==13)))){ + a3 = 1; + a21 = 10; + a1 = 12; + a16 = 7; + a7 = 0; + a8 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if(((((!(a14==1)&&(((a11==1)&&((input==3)&&(a21==10)))&&(a19==5)))&&(a20==1))&&(a17==2))&&((((!(a18==1)&&(!(a14==1)&&((a16==7)&&((a5==6)&&((a9==11)&&(a13==1))))))&&(a1==14))&&(a3==1))&&(a28==1)))){ + a14 = 0; + a1 = 12; + a9 = 7; + a19 = 1; + a5 = 4; + a26 = 0; + return -1; + } else if(((!(a8==1)&&(((a17==2)&&(((a23==1)&&((a23==1)&&((input==5)&&((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11))))))&&(a16==8)))&&(a19==3)))&&((((a12==1)&&((((a11==1)&&(a20==1))&&(a21==10))&&(a1==12)))&&(a12==1))||(a8==1)))){ + a9 = 7; + a23 = 1; + a19 = 1; + a27 = 0; + a14 = 0; + a5 = 4; + a16 = 7; + return -1; + } else if((((!(a8==1)&&(((a3==1)&&(a9==7))&&(a1==13)))&&!(a7==1))&&(!(a8==1)&&(!(a4==1)&&(((((((a20==1)&&(((a21==10)&&(input==4))&&(a19==2)))&&!(a7==1))&&(a3==1))&&(a17==2))&&(a5==6))&&(a16==7)))))){ + a9 = 10; + a5 = 5; + a28 = 1; + a26 = 0; + a18 = 0; + return 21; + } else if((((a28==1)&&((a19==2)&&((a24==1)||(((a12==1)||!(a11==1))&&!(a14==1)))))&&((((a21==11)&&((((((input==1)&&(((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))))&&(a20==1))&&(a1==12))&&(a2==1))&&(a17==2)))&&(a28==1))&&(a16==7)))){ + a16 = 8; + a5 = 5; + a21 = 10; + a4 = 0; + a11 = 1; + a1 = 14; + a9 = 10; + a2 = 1; + return 22; + } else if((((((a17==2)&&(((((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6))))&&(input==5))&&!(a8==1)))&&!(a27==1))&&(a6==1))&&(((((!(a8==1)&&((a1==12)&&(((a19==3)&&(a11==1))&&(a16==8))))||(a26==1))&&!(a20==1))&&(a21==10))||!(a3==1)))){ + a20 = 1; + a16 = 7; + a9 = 7; + a14 = 0; + a4 = 0; + a7 = 0; + a5 = 4; + a19 = 1; + return -1; + } else if((((a21==11)&&((((a23==1)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==5)))&&(a3==1))&&(a1==12)))&&((((!(a4==1)&&((a19==1)&&((a2==1)&&(!(a14==1)&&((a28==1)&&(a12==1))))))&&(a20==1))&&(a17==2))&&(a16==7)))){ + a28 = 1; + a21 = 12; + a12 = 1; + a1 = 13; + a9 = 9; + a19 = 5; + a5 = 5; + a26 = 0; + return 25; + } else if(((!(a20==1)&&((a9==11)&&((a28==1)&&(((a23==1)&&(!(a0==1)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a19==2))&&(a1==13))&&!(a27==1))))&&!(a27==1)))))&&(((!(a26==1)&&((a23==1)&&(a16==9)))&&(a17==2))&&(a21==10)))){ + if((a12==1)){ + a5 = 5; + a16 = 7; + a22 = 1; + a15 = 0; + a25 = 1; + a20 = 1; + a9 = 10; + a1 = 12; + }else{ + a29 = 0; + a2 = 0; + a19 = 1; + a4 = 1; + a20 = 1; + a5 = 4; + a1 = 12; + a16 = 7; + } + return -1; + } else if((((a1==14)&&((!(a14==1)&&(((input==3)&&((a5==5)||(a5==6)))&&(a20==1)))&&!(a27==1)))&&(!(a11==1)||((a17==2)&&((a19==1)&&((a9==7)&&((a12==1)&&((a3==1)&&((a24==1)||((a16==11)&&((a21==12)&&(a12==1)))))))))))){ + a23 = 1; + a1 = 12; + a16 = 7; + a4 = 0; + a21 = 10; + a5 = 4; + return -1; + } else if((((a13==1)&&(((a20==1)&&((a1==14)&&((a17==2)&&(a23==1))))||!(a2==1)))&&(((a19==4)&&(((a16==7)&&(((!(a14==1)&&((input==5)&&(((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))))&&(a13==1))&&(a12==1)))&&(a28==1)))&&(a21==12)))){ + if((a27==1)){ + a24 = 0; + a18 = 0; + a5 = 4; + a19 = 1; + a21 = 11; + a20 = 0; + a4 = 0; + a9 = 10; + }else{ + a19 = 3; + a21 = 11; + a16 = 9; + a4 = 0; + a5 = 5; + a18 = 0; + a9 = 7; + a7 = 0; + a1 = 13; + } + return 26; + } else if((((a19==4)&&(((a9==9)&&((a28==1)&&((a16==10)&&((a23==1)&&(a23==1)))))&&(a21==12)))&&((((a6==1)&&((((((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&(a20==1))&&(a17==2))&&!(a24==1))&&(a1==12)))&&(a11==1))&&!(a8==1)))){ + a21 = 10; + a19 = 2; + a0 = 0; + a16 = 7; + a5 = 4; + a1 = 13; + a27 = 0; + return 25; + } else if((((a19==5)&&((a20==1)&&(((a16==7)&&((a1==12)&&(((input==4)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9))))&&!(a8==1))))&&(a11==1))))&&((a17==2)&&((!(a26==1)&&((a2==1)&&(!(a18==1)&&((a2==1)&&!(a14==1)))))&&(a21==10))))){ + a21 = 12; + a13 = 1; + a18 = 0; + a9 = 8; + a19 = 2; + a12 = 1; + a5 = 4; + return 23; + } else if(((((!(a18==1)&&(((((a21==12)&&(input==6))&&(a17==2))&&(a5==6))&&(a16==10)))&&(a13==1))&&(a13==1))&&(!(a13==1)||((a24==1)||((a1==13)&&(((((a20==1)&&(a28==1))&&(a19==4))&&(a9==9))&&(a23==1))))))){ + a16 = 7; + a21 = 10; + a7 = 0; + a19 = 2; + a14 = 0; + a5 = 4; + return 25; + } else if(((((!(a18==1)&&((a19==3)&&(((a11==1)&&(a21==12))&&!(a14==1))))&&(a16==8))&&(a1==14))&&((((a6==1)&&(!(a7==1)&&((((a13==1)&&((input==4)&&((a5==5)||(a5==6))))&&!(a20==1))&&(a17==2))))&&(a9==8))&&!(a27==1)))){ + a28 = 0; + a5 = 6; + a9 = 9; + a2 = 0; + a21 = 11; + a20 = 1; + a15 = 0; + a1 = 13; + return -1; + } else if(((!(a4==1)&&((a17==2)&&(((a21==10)&&((a16==11)&&((!(a28==1)||(a12==1))&&(a6==1))))||!(a6==1))))&&((a6==1)&&((((a1==12)&&((a20==1)&&(((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&(a28==1))))&&(a19==3))&&(a9==9))))){ + a3 = 1; + a24 = 0; + a21 = 11; + a5 = 4; + a13 = 1; + return 22; + } else if((((a21==10)&&(!(a4==1)&&((((a28==1)&&((a17==2)&&((input==6)&&((a5==5)||(a5==6)))))&&(a6==1))&&(a13==1))))&&(((a1==13)&&((a9==9)&&((((a20==1)&&((a19==2)&&(a11==1)))&&(a16==10))||!(a11==1))))||(a18==1)))){ + a26 = 0; + a1 = 12; + a19 = 1; + a5 = 4; + a16 = 7; + a7 = 0; + a9 = 7; + a0 = 0; + return -1; + } else if((((a8==1)&&(!(a23==1)&&((a14==1)&&((a5==5)&&(((a21==10)&&((input==4)&&(a9==11)))&&(a16==8))))))&&((a26==1)&&(((a17==2)&&(((((a12==1)&&(a20==1))&&(a1==14))&&(a7==1))&&(a18==1)))&&(a19==2))))){ + a9 = 10; + a24 = 1; + a12 = 0; + a15 = 1; + return -1; + } else if((((((((((a28==1)&&(a20==1))&&(a21==11))||(a8==1))&&(a1==13))&&(a19==1))&&!(a14==1))&&(a28==1))&&(((a17==2)&&((!(a14==1)&&((a9==7)&&((((a5==4)||(a5==5))&&(input==5))&&(a23==1))))&&!(a14==1)))&&(a16==8)))){ + a12 = 1; + a3 = 1; + a1 = 12; + a21 = 10; + a5 = 4; + a16 = 7; + a27 = 0; + return -1; + } else if((((a20==1)&&((a19==2)&&(a13==1)))&&((a6==1)&&(!(a8==1)&&((a11==1)&&(((((a17==2)&&((a21==10)&&(((a1==14)&&(((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))&&(input==3)))&&(a16==9))))&&!(a27==1))&&!(a26==1))&&!(a8==1))))))){ + a16 = 7; + a19 = 1; + a1 = 12; + a5 = 4; + a26 = 0; + a9 = 7; + a8 = 0; + a14 = 0; + return -1; + } else if(((((a1==13)&&(((!(a4==1)&&(((input==6)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8))))&&(a17==2)))&&(a19==4))&&(a20==1)))&&(a21==12))&&(((a18==1)||(!(a2==1)||(!(a14==1)&&(((a23==1)&&(a16==10))||(a7==1)))))||!(a11==1)))){ + a21 = 10; + a16 = 7; + a19 = 2; + a18 = 0; + a8 = 0; + a9 = 9; + a5 = 4; + return 25; + } else if(((!(a24==1)&&(((a1==14)&&(((a16==7)&&((a11==1)&&!(a20==1)))&&(a19==5)))&&(a11==1)))&&(((!(a18==1)&&(((a3==1)&&((a17==2)&&((a9==7)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))))&&(a21==11)))&&!(a7==1))&&!(a4==1)))){ + a8 = 0; + a21 = 10; + a20 = 1; + a5 = 4; + a19 = 1; + a27 = 0; + a2 = 1; + a1 = 12; + return -1; + } else if((((a9==11)&&((!(a0==1)&&((a5==5)&&((a19==2)&&(!(a18==1)&&(a28==1)))))||!(a2==1)))&&((((a23==1)&&((((((a16==7)&&(input==1))&&(a17==2))&&(a1==13))&&!(a0==1))&&!(a8==1)))&&(a21==10))&&(a20==1)))){ + a27 = 0; + a7 = 0; + a1 = 12; + a9 = 7; + a19 = 4; + a11 = 1; + return 26; + } else if((((((a21==10)&&(((a1==13)&&((a16==10)&&((a19==4)&&(a28==1))))&&(a23==1)))||!(a13==1))||(a27==1))&&(((a3==1)&&(((((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==3))&&(a17==2))&&(a28==1))&&!(a20==1)))&&(a11==1)))){ + a29 = 0; + a20 = 1; + a15 = 0; + a16 = 8; + a19 = 3; + a9 = 7; + a5 = 4; + a1 = 14; + return 22; + } else if((((((a17==2)&&((a1==13)&&(!(a27==1)&&(((((a28==1)&&((a9==10)&&((!(a0==1)&&((input==3)&&(a16==9)))&&(a5==6))))&&(a6==1))&&(a21==11))&&!(a20==1)))))&&(a23==1))&&!(a27==1))&&((a3==1)&&(a19==1)))){ + if((a6==1)){ + a21 = 10; + a14 = 1; + a22 = 1; + a20 = 1; + a16 = 7; + a4 = 1; + }else{ + a13 = 0; + a5 = 5; + a9 = 11; + a1 = 14; + a20 = 1; + a16 = 10; + a14 = 1; + a21 = 10; + } + return -1; + } else if(((((a12==1)&&((a21==12)&&((a16==10)&&((a6==1)&&(((a19==4)&&((input==3)&&(((((a5==6)&&(a1==12))&&(a9==11))||(((a5==4)&&(a1==13))&&(a9==7)))||((a9==7)&&((a1==13)&&(a5==5))))))&&!(a0==1))))))&&(a13==1))&&(((((a13==1)||(a14==1))||!(a12==1))&&!(a20==1))&&(a17==2)))){ + a1 = 12; + a11 = 0; + a16 = 7; + a22 = 1; + a25 = 0; + a21 = 11; + a9 = 9; + a5 = 5; + a20 = 1; + return 21; + } else if(((!(a7==1)&&(((a20==1)&&((((a6==1)&&((a12==1)&&(a17==2)))||!(a12==1))&&(a19==2)))||!(a28==1)))&&(((a2==1)&&((!(a24==1)&&((a1==12)&&((((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10))))&&(input==4))))&&(a21==12)))&&(a16==8)))){ + a23 = 1; + a19 = 1; + a4 = 0; + a6 = 1; + a9 = 7; + a16 = 7; + a21 = 10; + a5 = 4; + return -1; + } else if(((((a11==1)&&((a16==8)&&((a1==14)&&((a21==11)&&(((input==3)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(a13==1))))))&&!(a27==1))&&((a2==1)&&((((((a11==1)&&(a17==2))&&(a20==1))||(a0==1))&&(a19==5))&&(a12==1))))){ + a16 = 10; + a27 = 0; + a23 = 1; + a8 = 0; + a1 = 12; + a19 = 4; + a5 = 6; + a9 = 7; + return 23; + } else if((((!(a14==1)&&((((a17==2)&&((a3==1)&&(a16==9)))&&!(a20==1))||!(a11==1)))&&(a28==1))&&((a13==1)&&(((a21==12)&&(((((input==3)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5))))&&(a19==5))&&!(a0==1))&&(a1==14)))&&(a2==1))))){ + a25 = 0; + a20 = 1; + a16 = 7; + a19 = 1; + a12 = 0; + a1 = 13; + a9 = 11; + a21 = 10; + a8 = 1; + a5 = 4; + return -1; + } else if((((a19==1)&&(!(a20==1)&&((a1==14)&&(((((a4==1)||(a6==1))&&(a16==10))&&(a28==1))&&!(a7==1)))))&&(((!(a7==1)&&((a28==1)&&((((input==6)&&(a9==8))&&(a5==6))&&!(a18==1))))&&(a17==2))&&(a21==12)))){ + a1 = 12; + a19 = 2; + a6 = 0; + a14 = 1; + a9 = 7; + a16 = 8; + a5 = 5; + a3 = 0; + return -1; + } else if(((((((((a9==7)&&(((((a5==5)||(a5==6))&&(input==3))&&(a1==12))&&(a20==1)))&&!(a18==1))&&(a16==8))&&(a6==1))&&!(a18==1))&&(a3==1))&&((a6==1)&&(!(a12==1)||((((a21==11)&&(a13==1))&&(a19==3))&&(a17==2)))))){ + a6 = 1; + a19 = 1; + a16 = 7; + a21 = 10; + a5 = 4; + a2 = 1; + a18 = 0; + return -1; + } else if((((((a28==1)&&(!(a26==1)&&(((((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&(input==5))&&(a13==1))))&&!(a4==1))&&(a19==1))&&((a20==1)&&((a21==11)&&(((a16==11)&&(((!(a7==1)&&(a6==1))||!(a3==1))&&(a17==2)))&&(a1==13)))))){ + a21 = 10; + a5 = 4; + a1 = 12; + a13 = 1; + a8 = 0; + a16 = 7; + a9 = 7; + return -1; + } else if((((a19==1)&&((a20==1)&&((a4==1)||(((((a27==1)||(a28==1))&&(a21==12))&&(a13==1))&&(a17==2)))))&&((((a1==14)&&((a9==9)&&((((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a16==8))&&!(a27==1))))&&(a12==1))&&(a13==1)))){ + a9 = 7; + a5 = 4; + a21 = 10; + a27 = 0; + a16 = 7; + a2 = 1; + a3 = 1; + a1 = 12; + return -1; + } else if((((a24==1)||((a16==11)&&(((a9==8)&&((((a3==1)&&!(a27==1))&&(a23==1))||!(a23==1)))&&(a19==5))))&&((a20==1)&&((a5==4)&&((a2==1)&&(((a1==13)&&((a17==2)&&((a21==12)&&(input==4))))&&!(a27==1))))))){ + a16 = 7; + a28 = 1; + a19 = 1; + a1 = 12; + a4 = 0; + a9 = 7; + a12 = 1; + a21 = 10; + return -1; + } else if((((a19==4)&&(((a16==8)&&((a2==1)&&((a9==7)&&(((!(a27==1)&&(((a21==10)&&(a23==1))||!(a28==1)))&&(a5==4))||(a4==1)))))&&(a1==13)))&&((a17==2)&&((a6==1)&&((a3==1)&&(!(a20==1)&&(input==5))))))){ + a21 = 11; + a20 = 1; + a5 = 5; + a4 = 0; + a9 = 11; + a1 = 12; + a16 = 9; + a23 = 1; + return 26; + } else if(((((a1==12)&&((a9==10)&&(((a12==1)||!(a11==1))&&(a3==1))))&&(a20==1))&&((a21==11)&&((a13==1)&&((((a19==3)&&((a16==9)&&((a17==2)&&(((input==4)&&((a5==5)||(a5==6)))&&(a23==1)))))&&(a23==1))&&(a6==1)))))){ + a19 = 1; + a5 = 4; + a16 = 7; + a21 = 10; + a9 = 7; + a2 = 1; + a13 = 1; + return -1; + } else if((((a28==1)&&(((a16==9)&&((a21==11)&&(((input==1)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(a20==1))))&&!(a0==1)))&&((a6==1)&&((((a17==2)&&((a19==3)&&(((a6==1)||(a27==1))&&!(a0==1))))||(a7==1))&&(a1==14))))){ + a21 = 10; + a5 = 4; + a27 = 0; + a1 = 12; + a16 = 7; + a19 = 1; + a24 = 0; + a9 = 7; + a28 = 1; + return -1; + } else if((((a1==14)&&(((a21==10)&&((!(a3==1)||(!(a14==1)&&((a6==1)&&(a13==1))))&&(a20==1)))&&(a16==11)))&&(((!(a4==1)&&((((input==5)&&((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10))))&&(a2==1))&&(a17==2)))&&(a12==1))&&(a19==3)))){ + a23 = 1; + a28 = 1; + a0 = 0; + a19 = 1; + a9 = 7; + a16 = 7; + a1 = 12; + a5 = 4; + return -1; + } else if((((a19==1)&&(((a4==1)||((a1==14)&&((a9==10)&&((a26==1)||((((a3==1)&&(a3==1))&&!(a14==1))||(a24==1))))))&&(a21==10)))&&((a17==2)&&((a16==8)&&(!(a20==1)&&(((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a26==1))))))){ + a16 = 7; + a9 = 7; + a24 = 0; + a20 = 1; + a18 = 0; + a1 = 12; + a28 = 1; + a5 = 4; + return -1; + } else if(((!(a12==1)&&(((a4==1)&&((((input==1)&&((a5==5)||(a5==6)))&&(a9==11))&&(a19==3)))&&(a18==1)))&&(((!(a3==1)&&(((a16==10)&&(((a20==1)&&((a21==10)&&(a6==1)))&&(a26==1)))&&(a1==12)))&&(a17==2))&&(a18==1)))){ + a19 = 2; + a1 = 13; + a10 = 0; + a16 = 9; + a9 = 8; + a5 = 6; + a8 = 1; + a13 = 0; + return 22; + } else if((((a19==4)&&(((((!(a4==1)&&(a13==1))&&(a13==1))||!(a28==1))&&(a1==12))&&!(a20==1)))&&(((a21==10)&&((!(a4==1)&&((((a9==7)&&((input==6)&&((a5==5)||(a5==6))))&&(a16==10))&&!(a18==1)))&&(a13==1)))&&(a17==2)))){ + if((a7==1)){ + a9 = 10; + a13 = 0; + a1 = 13; + a20 = 1; + a19 = 1; + a3 = 0; + a6 = 0; + a16 = 7; + a5 = 4; + }else{ + a1 = 14; + a6 = 0; + a16 = 7; + a5 = 6; + a25 = 0; + a9 = 9; + a19 = 1; + a20 = 1; + a7 = 1; + } + return 25; + } else if((((a18==1)||(!(a13==1)||((a4==1)||(!(a2==1)||((!(a20==1)&&((a17==2)&&(a13==1)))&&(a1==13))))))&&((a21==12)&&((!(a14==1)&&(((a19==2)&&((input==3)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))))&&(a16==8)))&&!(a14==1))))){ + a21 = 10; + a16 = 7; + a1 = 12; + a8 = 1; + a20 = 1; + a7 = 1; + a5 = 6; + a9 = 9; + return 21; + } else if((((a16==7)&&((a19==4)&&(((a21==10)&&((a7==1)||((a4==1)||((a12==1)&&!(a18==1)))))&&(a17==2))))&&((a20==1)&&(!(a7==1)&&((a1==14)&&(!(a7==1)&&(((input==1)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9))))&&!(a14==1)))))))){ + a19 = 1; + a1 = 12; + a21 = 12; + a14 = 0; + a5 = 6; + a11 = 1; + a18 = 0; + a9 = 9; + return 22; + } else if((((((a6==1)&&(((((input==5)&&!(a20==1))&&!(a26==1))&&!(a8==1))&&(a21==11)))&&(a17==2))&&(a11==1))&&(((((!(a12==1)||(((a13==1)||!(a23==1))&&(a5==6)))&&(a1==13))&&(a19==3))&&(a16==8))&&(a9==7)))){ + a20 = 1; + a2 = 1; + a19 = 5; + a1 = 14; + a5 = 5; + a7 = 0; + a21 = 12; + a9 = 8; + a27 = 0; + return -1; + } else if(((((((a1==12)&&((a19==2)&&((((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))&&(input==5))&&(a16==8))))&&!(a0==1))&&!(a7==1))&&(a13==1))&&(((a24==1)||(((((a21==12)&&(a3==1))&&!(a24==1))&&(a17==2))&&!(a20==1)))&&!(a18==1)))){ + a20 = 1; + a9 = 7; + a16 = 7; + a5 = 4; + a21 = 10; + a2 = 0; + a28 = 0; + a19 = 1; + a3 = 0; + return -1; + } else if((((a21==12)&&((a9==7)&&(((a19==5)&&((a23==1)&&(!(a20==1)&&(!(a14==1)&&((((a5==5)||(a5==6))&&(input==3))&&!(a27==1))))))&&!(a4==1))))&&((a1==14)&&((!(a7==1)&&(((a14==1)||(a2==1))&&(a17==2)))&&(a16==9))))){ + a19 = 1; + a1 = 12; + a21 = 10; + a22 = 1; + a20 = 1; + a9 = 10; + a16 = 7; + a11 = 0; + a15 = 1; + a5 = 5; + return -1; + } else if(((((!(a0==1)&&(((!(a20==1)&&((a16==11)&&((input==1)&&((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11))))))&&!(a4==1))&&(a21==10)))&&(a11==1))&&(a19==1))&&(((a1==13)&&(((a6==1)&&((a13==1)||!(a23==1)))&&(a17==2)))&&!(a24==1)))){ + a20 = 1; + a16 = 7; + a19 = 2; + a23 = 0; + a9 = 7; + a5 = 6; + a1 = 12; + a10 = 1; + a12 = 0; + return 25; + } else if(((((((a17==2)&&(!(a24==1)&&(a3==1)))||!(a3==1))&&(a20==1))&&(a19==3))&&((a1==14)&&((a5==5)&&(!(a4==1)&&(((a11==1)&&((a21==12)&&(!(a18==1)&&(!(a0==1)&&((a16==11)&&(input==4))))))&&(a9==11))))))){ + a11 = 1; + a16 = 7; + a0 = 0; + a5 = 4; + a1 = 12; + a19 = 1; + a21 = 10; + a9 = 7; + return -1; + } else if((((a19==5)&&(((!(a11==1)||((a16==9)&&(a3==1)))&&(a17==2))||!(a13==1)))&&(((a13==1)&&(((a11==1)&&((((a11==1)&&(((input==5)&&((a5==4)||(a5==5)))&&(a21==12)))&&(a20==1))&&(a1==12)))&&(a12==1)))&&(a9==8)))){ + a8 = 0; + a0 = 0; + a9 = 10; + a19 = 2; + a21 = 10; + a23 = 1; + a1 = 14; + a5 = 4; + return 21; + } else if(((((a21==11)&&((a26==1)||(!(a13==1)||(((a7==1)||(!(a14==1)&&((a16==8)&&(a11==1))))&&(a9==8)))))&&(a5==6))&&((a1==13)&&((a19==1)&&((!(a4==1)&&(((a20==1)&&(input==5))&&!(a14==1)))&&(a17==2)))))){ + a5 = 5; + a28 = 1; + a9 = 11; + a21 = 10; + a19 = 5; + a0 = 0; + return -1; + } else if((((a17==2)&&(((!(a14==1)&&((!(a4==1)&&((a19==3)&&(((!(a20==1)&&(((a5==4)||(a5==5))&&(input==5)))&&!(a26==1))&&(a16==8))))&&(a13==1)))&&(a1==13))&&!(a14==1)))&&((a21==11)&&((!(a7==1)&&(a28==1))&&(a9==8))))){ + a4 = 0; + a20 = 1; + a9 = 9; + a5 = 4; + a16 = 7; + a19 = 2; + a21 = 10; + a14 = 0; + return 25; + } else if(((((((a3==1)&&((a2==1)&&(!(a11==1)||((a16==8)&&(((a2==1)&&(a21==10))&&(a20==1))))))&&!(a8==1))&&!(a27==1))||!(a3==1))&&(((((a1==13)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1)))&&(a9==8))&&(a19==5))&&(a17==2)))){ + a9 = 7; + a8 = 0; + a16 = 7; + a19 = 1; + a5 = 4; + a7 = 0; + a1 = 12; + a13 = 1; + return -1; + } else if((((((!(a26==1)&&((a16==11)&&(((input==1)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(a23==1))))&&(a19==3))&&(a21==11))&&(a12==1))&&(!(a28==1)||((a17==2)&&(((((a3==1)&&!(a8==1))&&(a1==12))&&(a20==1))||!(a12==1)))))){ + a14 = 0; + a1 = 14; + a9 = 8; + a12 = 1; + a21 = 12; + a19 = 1; + a5 = 5; + a11 = 1; + return 22; + } else if((((!(a6==1)||((a5==4)&&((a1==12)&&(((!(a4==1)&&(a2==1))&&!(a27==1))||!(a12==1)))))&&(a21==11))&&((a16==10)&&((a20==1)&&(((!(a24==1)&&(((input==3)&&(a17==2))&&(a28==1)))&&(a19==2))&&(a9==8)))))){ + a9 = 7; + a16 = 7; + a23 = 1; + a19 = 1; + a21 = 10; + a2 = 1; + return -1; + } else if((((((!(a3==1)&&((a16==9)&&((a18==1)&&(((a17==2)&&((a11==1)&&!(a11==1)))&&(a21==12)))))&&!(a28==1))&&(a27==1))&&(a7==1))&&(((input==4)&&(((a19==1)&&((a9==11)&&((a5==6)&&(a1==14))))||((((a5==4)&&(a1==12))&&(a9==7))&&(a19==2))))&&(a20==1)))){ + a5 = 4; + a1 = 14; + a9 = 8; + a8 = 1; + a19 = 1; + a21 = 10; + a14 = 1; + a16 = 11; + a2 = 0; + return 22; + } else if((((a21==10)&&((a17==2)&&(((!(a20==1)&&((a19==5)&&((((a5==5)||(a5==6))&&(input==3))&&!(a24==1))))&&!(a27==1))&&(a6==1))))&&((a9==10)&&(((a27==1)||(((a1==13)&&((a13==1)||!(a23==1)))||(a18==1)))&&(a16==7))))){ + a5 = 4; + a27 = 0; + a3 = 1; + a11 = 1; + a20 = 1; + a9 = 7; + a19 = 1; + a1 = 12; + return -1; + } else if((((a17==2)&&((((a1==13)&&(((a2==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a11==1)))&&!(a4==1)))&&(a3==1))&&(a9==10)))&&((((a2==1)&&((a20==1)&&((a18==1)||((a23==1)&&(a21==11)))))&&(a19==5))&&(a16==11)))){ + a1 = 12; + a2 = 1; + a9 = 7; + a16 = 7; + a21 = 10; + a5 = 4; + a26 = 0; + a19 = 1; + a6 = 1; + return -1; + } else if(((((((((a5==6)&&(!(a7==1)&&((a9==10)&&(!(a24==1)&&((a28==1)&&((input==6)&&(a20==1)))))))&&!(a24==1))&&(a19==5))&&(a1==12))&&(a17==2))&&(a16==10))&&((((a21==11)&&(a28==1))||(a24==1))&&!(a4==1)))){ + a5 = 5; + a21 = 10; + a12 = 1; + a27 = 0; + a16 = 7; + a1 = 13; + a19 = 4; + a6 = 1; + return 25; + } else if((((a1==14)&&((!(a11==1)&&(((!(a20==1)&&((a9==11)&&((((a5==4)||(a5==5))&&(input==4))&&!(a13==1))))&&(a27==1))&&(a19==2)))&&(a16==8)))&&(((a27==1)&&(((a21==11)&&((a3==1)&&(a17==2)))&&!(a11==1)))&&(a7==1)))){ + a5 = 4; + a7 = 1; + a26 = 1; + a16 = 9; + a20 = 1; + a22 = 1; + a21 = 10; + a19 = 3; + a1 = 12; + return -1; + } else if(((((((a16==9)&&((a19==5)&&(!(a20==1)&&(a2==1))))&&(a21==12))||!(a3==1))||(a8==1))&&(((a28==1)&&((((a17==2)&&(((((a5==6)&&(a1==13))&&(a9==11))||(((a1==14)&&(a5==4))&&(a9==7)))&&(input==1)))&&!(a7==1))&&(a13==1)))&&(a6==1)))){ + a23 = 0; + a16 = 7; + a5 = 6; + a21 = 10; + a9 = 11; + a11 = 0; + a19 = 2; + a22 = 1; + a1 = 12; + a20 = 1; + return -1; + } else if((((a5==5)&&(!(a4==1)&&((a17==2)&&(((input==3)&&(a9==8))&&!(a27==1)))))&&((((a13==1)&&((a6==1)&&((!(a0==1)&&((a20==1)&&((a16==10)&&((a2==1)&&(a1==13)))))&&(a19==3))))&&(a21==10))||!(a11==1)))){ + a11 = 1; + a19 = 1; + a5 = 4; + a1 = 12; + a18 = 0; + a9 = 7; + a16 = 7; + a2 = 1; + return -1; + } else if(((((((((((a11==1)&&(a1==12))&&(a9==10))&&(a19==4))&&(a23==1))&&(a21==12))&&(a17==2))&&(a20==1))&&(a16==11))&&(!(a26==1)&&((a12==1)&&((!(a0==1)&&(!(a24==1)&&((input==1)&&((a5==5)||(a5==6)))))&&!(a18==1)))))){ + a6 = 1; + a11 = 1; + a9 = 11; + a1 = 13; + a19 = 5; + a5 = 4; + a26 = 0; + return 25; + } else if(((((((a9==10)&&((a19==3)&&(((a17==2)&&((a16==10)&&(input==5)))&&(a11==1))))&&(a13==1))&&!(a18==1))&&(a6==1))&&((!(a8==1)&&((a5==5)&&((a1==13)&&(!(a7==1)&&((a11==1)&&(a21==10))))))&&!(a20==1)))){ + a15 = 1; + a5 = 4; + a1 = 14; + a13 = 0; + a16 = 7; + a19 = 1; + a20 = 1; + a4 = 1; + return 25; + } else if((((a1==12)&&(!(a27==1)&&(((a16==9)&&((a6==1)&&((a21==12)&&(a11==1))))&&(a9==9))))&&((a17==2)&&(((!(a20==1)&&(!(a0==1)&&(!(a8==1)&&((((a5==4)||(a5==5))&&(input==3))&&(a23==1)))))&&(a19==1))&&!(a14==1))))){ + a5 = 4; + a9 = 10; + a1 = 13; + a18 = 1; + a21 = 10; + a20 = 1; + a27 = 1; + a16 = 8; + a15 = 1; + return 25; + } else if(((!(a14==1)&&(((a20==1)&&(((a11==1)&&(((a5==5)||(a5==6))&&(input==3)))&&(a1==12)))&&!(a24==1)))&&(!(a14==1)&&((a9==8)&&(((a21==12)&&(!(a28==1)||((((a12==1)||!(a23==1))&&(a16==10))&&(a19==4))))&&(a17==2)))))){ + a5 = 4; + a9 = 7; + a21 = 10; + a16 = 7; + a23 = 1; + a2 = 1; + a19 = 1; + return -1; + } else if(((((!(a12==1)&&((a9==8)&&((a19==2)&&(a3==1))))&&!(a28==1))&&!(a13==1))&&((((((((((input==4)&&((a5==5)||(a5==6)))&&(a16==8))&&(a21==10))&&(a4==1))&&(a17==2))&&(a1==14))&&(a20==1))&&!(a13==1))&&(a8==1)))){ + a23 = 0; + a16 = 10; + a13 = 0; + a11 = 0; + a9 = 7; + a1 = 13; + a5 = 4; + a19 = 5; + a21 = 11; + return -1; + } else if(((((a19==4)&&(((((a13==1)&&!(a26==1))||(a8==1))&&(a17==2))&&(a21==12)))&&!(a20==1))&&((((a16==9)&&((a2==1)&&((((((a5==5)&&(a1==14))&&(a9==7))||((((a1==13)&&(a5==6))&&(a9==11))||(((a5==4)&&(a1==14))&&(a9==7))))&&(input==6))&&!(a18==1))))&&!(a8==1))&&(a12==1)))){ + a16 = 10; + a2 = 0; + a1 = 13; + a22 = 1; + a21 = 10; + a9 = 9; + a19 = 2; + a13 = 0; + a5 = 4; + return 25; + } else if(((((!(a20==1)&&((a21==11)&&((((((a5==4)||(a5==5))&&(input==1))&&(a16==7))&&(a1==13))&&(a2==1))))&&(a23==1))&&!(a24==1))&&((a17==2)&&((a9==10)&&((!(a24==1)&&((!(a2==1)||(a2==1))&&!(a27==1)))&&(a19==2)))))){ + a9 = 7; + a1 = 12; + a7 = 0; + a19 = 1; + a21 = 10; + a14 = 0; + a20 = 1; + a13 = 1; + a5 = 4; + return -1; + } else if(((((a1==14)&&(((a9==11)&&(((a6==1)||(a7==1))&&(a11==1)))&&!(a4==1)))&&(a16==8))&&((((a21==11)&&(!(a27==1)&&(!(a20==1)&&((a19==4)&&((a28==1)&&((input==6)&&(a5==6)))))))&&!(a14==1))&&(a17==2)))){ + a19 = 1; + a1 = 12; + a16 = 7; + a21 = 10; + a20 = 1; + a9 = 7; + a14 = 0; + a7 = 0; + a5 = 4; + return -1; + } else if((((a19==5)&&((a2==1)&&((a17==2)&&(!(a8==1)&&(!(a7==1)&&(!(a7==1)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6)))))))))&&((a16==9)&&(((((((a1==14)&&(a13==1))&&(a3==1))||(a14==1))&&(a20==1))&&(a21==11))&&(a9==7))))){ + a4 = 0; + a19 = 1; + a16 = 7; + a14 = 0; + a5 = 4; + a13 = 1; + a1 = 12; + a21 = 10; + return -1; + } else if(((((((a1==12)&&(!(a28==1)&&((a16==9)&&(((a28==1)&&(a21==11))&&!(a23==1)))))&&(a26==1))&&(a17==2))&&(a9==7))&&((!(a28==1)&&((a18==1)&&(((a19==4)&&((input==3)&&((a5==5)||(a5==6))))&&!(a6==1))))&&(a20==1)))){ + a5 = 4; + a9 = 10; + a19 = 1; + a2 = 0; + a10 = 1; + a16 = 7; + a21 = 10; + return 21; + } else if((((!(a20==1)&&((!(a2==1)||((!(a28==1)||(a28==1))&&(a16==7)))&&(a9==10)))&&(a21==10))&&((a19==1)&&(((a17==2)&&((a11==1)&&((a28==1)&&(((((a5==4)||(a5==5))&&(input==6))&&(a1==13))&&(a2==1)))))&&(a13==1))))){ + a11 = 1; + a9 = 7; + a19 = 2; + a12 = 1; + a0 = 0; + a5 = 5; + return 23; + } else if((((a16==10)&&((a20==1)&&((a1==12)&&(!(a7==1)&&((a28==1)&&(a12==1))))))&&((a11==1)&&((a3==1)&&((a28==1)&&(((a19==1)&&(((a21==11)&&((((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==6)))&&!(a18==1)))&&(a17==2))))))){ + a21 = 10; + a16 = 7; + a24 = 0; + a9 = 7; + a5 = 4; + a3 = 1; + a13 = 1; + return -1; + } else if((((a1==13)&&((!(a3==1)||(((a7==1)||(a2==1))&&(a16==9)))&&(a9==11)))&&(((a21==10)&&(((a11==1)&&(((a2==1)&&(((a23==1)&&(((a5==5)||(a5==6))&&(input==1)))&&!(a26==1)))&&!(a20==1)))&&(a17==2)))&&(a19==4)))){ + a18 = 1; + a2 = 0; + a5 = 4; + a16 = 10; + a19 = 3; + a26 = 1; + a1 = 14; + return 25; + } else if((((a21==11)&&(((!(a4==1)&&(!(a18==1)&&((a2==1)&&(((a5==5)||(a5==6))&&(input==3)))))&&!(a7==1))&&(a16==7)))&&((a1==12)&&((a17==2)&&(!(a12==1)||((a20==1)&&((a4==1)||((a19==5)&&((a6==1)&&(a9==8)))))))))){ + a19 = 1; + a6 = 1; + a3 = 1; + a4 = 0; + a21 = 10; + a9 = 7; + a5 = 4; + return -1; + } else if(((!(a20==1)&&(((a28==1)&&((a16==9)&&(a23==1)))&&(a21==11)))&&((((a19==1)&&(!(a24==1)&&((a23==1)&&((((a12==1)&&(((input==4)&&(a17==2))&&(a9==10)))&&!(a7==1))&&(a12==1)))))&&(a5==6))&&(a1==13)))){ + a9 = 9; + a1 = 12; + a19 = 5; + a6 = 0; + a5 = 5; + a10 = 1; + a8 = 1; + a16 = 8; + a20 = 1; + return 25; + } else if(((((a20==1)&&((a1==14)&&(!(a12==1)||((a5==6)&&((a8==1)||(!(a4==1)&&(a28==1)))))))&&(a17==2))&&((a16==8)&&(((a21==12)&&(!(a18==1)&&((((input==1)&&(a9==8))&&(a11==1))&&(a11==1))))&&(a19==5))))){ + a8 = 0; + a0 = 0; + a21 = 10; + a19 = 1; + a16 = 7; + a1 = 12; + a9 = 7; + a5 = 4; + a23 = 1; + return -1; + } return calculate_output12(input); + } + + int calculate_output12(int input) { + if(((((((a16==10)&&(a23==1))&&(a1==12))&&(a21==12))&&(a17==2))&&((a12==1)&&((((a11==1)&&((((a13==1)&&((((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))&&(input==4))&&!(a26==1)))&&!(a20==1))&&!(a8==1)))&&(a28==1))&&(a19==4))))){ + if((a27==1)){ + a21 = 10; + a5 = 5; + a9 = 9; + a16 = 7; + a18 = 1; + a13 = 0; + a20 = 1; + a19 = 1; + a22 = 0; + }else{ + a10 = 1; + a21 = 10; + a22 = 1; + a5 = 6; + a1 = 13; + a11 = 0; + a19 = 1; + a9 = 7; + } + return 25; + } else if((((a17==2)&&(!(a20==1)&&((((a16==11)&&(((!(a27==1)&&(a2==1))&&(a2==1))&&(a13==1)))&&(a12==1))&&(a21==10))))&&((a19==3)&&((((((input==5)&&((a5==4)||(a5==5)))&&!(a27==1))&&(a9==11))&&(a11==1))&&(a1==14))))){ + a20 = 1; + a10 = 1; + a19 = 5; + a25 = 1; + a9 = 7; + a5 = 5; + a16 = 9; + a11 = 0; + a1 = 13; + a21 = 11; + return -1; + } else if((((((a18==1)||(((!(a3==1)||((a19==5)&&((a21==10)&&(a23==1))))&&!(a20==1))||!(a11==1)))||(a18==1))&&!(a4==1))&&((a5==4)&&((((a1==12)&&(((a9==11)&&(input==6))&&(a16==9)))&&!(a0==1))&&(a17==2))))){ + a20 = 1; + a22 = 1; + a15 = 0; + a5 = 5; + a16 = 7; + a7 = 1; + a19 = 1; + return 23; + } else if(((((!(a0==1)&&((!(a14==1)&&(a11==1))&&!(a20==1)))||!(a28==1))&&(a13==1))&&((a21==10)&&((a1==14)&&((((a17==2)&&(((a16==10)&&(((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))&&(input==3)))&&!(a26==1)))&&!(a7==1))&&(a19==4)))))){ + a21 = 11; + a19 = 1; + a23 = 0; + a1 = 12; + a9 = 10; + a6 = 0; + a5 = 4; + a16 = 8; + a13 = 0; + return -1; + } else if((((((!(a24==1)&&(((input==1)&&(a1==12))&&!(a24==1)))&&(a16==7))&&(a17==2))&&(a11==1))&&((((a21==12)&&((a9==7)&&((a19==1)&&(!(a3==1)||(!(a20==1)&&((a2==1)&&(a5==5)))))))&&!(a18==1))||!(a11==1)))){ + a5 = 4; + a24 = 0; + a0 = 0; + a28 = 1; + a21 = 10; + a20 = 1; + return -1; + } else if(((!(a8==1)&&((((a6==1)&&(!(a20==1)&&((a24==1)||(((a3==1)&&(a1==14))&&(a21==11)))))&&(a16==10))&&(a28==1)))&&(((a19==5)&&(((a17==2)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&(a9==11)))&&(a23==1)))&&(a13==1)))){ + a19 = 1; + a5 = 6; + a20 = 1; + a13 = 0; + a16 = 7; + a10 = 0; + a9 = 9; + a21 = 10; + a18 = 1; + return 21; + } else if(((((a16==11)&&((a18==1)||(((!(a11==1)||((((a17==2)&&((a23==1)&&(a13==1)))&&!(a20==1))&&(a21==10)))||(a18==1))&&(a1==12))))&&(a19==3))&&(((a6==1)&&((input==3)&&(((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))))&&(a12==1)))){ + if((a18==1)){ + a5 = 6; + a23 = 0; + a1 = 14; + a15 = 0; + a9 = 9; + a4 = 1; + a20 = 1; + a19 = 5; + }else{ + a1 = 14; + a9 = 11; + a16 = 7; + a19 = 1; + a23 = 0; + a5 = 4; + a4 = 1; + } + return -1; + } else if((((a19==4)&&((a9==11)&&((a17==2)&&((a16==7)&&((!(a23==1)||((a23==1)&&(a12==1)))&&(a23==1))))))&&((((!(a0==1)&&(!(a20==1)&&(!(a14==1)&&((a1==13)&&(input==4)))))&&(a5==4))&&(a23==1))&&(a21==11)))){ + a21 = 10; + a7 = 0; + a20 = 1; + a9 = 7; + a1 = 12; + a19 = 1; + a14 = 0; + a11 = 1; + return -1; + } else if(((!(a14==1)&&(((!(a24==1)&&(!(a20==1)&&(((a9==9)&&(input==4))&&(a3==1))))&&(a16==8))&&!(a14==1)))&&(((a21==12)&&(!(a3==1)||(((a5==5)&&(((a17==2)&&(a6==1))&&(a19==5)))&&(a1==13))))&&!(a24==1)))){ + a1 = 12; + a16 = 7; + a3 = 0; + a9 = 7; + a24 = 1; + a18 = 1; + a19 = 1; + a5 = 6; + a20 = 1; + a21 = 10; + return 22; + } else if((((!(a4==1)&&((((((((a21==12)&&((((((a5==5)&&(a1==12))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==12))))||((a9==7)&&((a1==13)&&(a5==4))))&&(input==3)))&&(a3==1))&&(a20==1))&&(a16==8))&&(a17==2))&&!(a0==1))&&(a6==1)))&&(a19==2))&&((!(a24==1)&&(a12==1))||(a4==1)))){ + a21 = 10; + a5 = 4; + a18 = 0; + a2 = 1; + a24 = 0; + a16 = 7; + a9 = 7; + a19 = 1; + a1 = 12; + return -1; + } else if(((((a16==10)&&(((((a21==12)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6))))&&!(a20==1))&&!(a7==1))&&(a9==9)))&&(a19==3))&&(((!(a26==1)&&(!(a2==1)||((a12==1)&&((a14==1)||((a8==1)||(a23==1))))))&&(a17==2))&&(a1==12)))){ + a16 = 9; + a15 = 1; + a26 = 1; + a5 = 5; + a21 = 10; + a9 = 11; + a1 = 14; + a25 = 1; + a19 = 4; + return -1; + } else if((((a16==10)&&(((a21==10)&&(!(a4==1)&&(((((a26==1)||((a13==1)&&!(a0==1)))&&(a1==13))&&(a3==1))||!(a2==1))))&&(a19==1)))&&((a9==10)&&(!(a20==1)&&((a17==2)&&(!(a0==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))))))){ + if((a9==10)){ + a24 = 1; + a16 = 7; + a5 = 6; + a20 = 1; + a7 = 1; + }else{ + a5 = 4; + a9 = 8; + a29 = 1; + a21 = 11; + a1 = 12; + a19 = 2; + a24 = 1; + a16 = 7; + a15 = 1; + } + return -1; + } else if(((!(a20==1)&&((a9==9)&&((a1==12)&&(!(a0==1)&&((!(a7==1)&&(((input==3)&&((a5==4)||(a5==5)))&&(a21==12)))&&!(a8==1))))))&&((a19==5)&&(!(a13==1)||(!(a7==1)&&((a17==2)&&((a16==7)&&((a3==1)&&(a2==1))))))))){ + a19 = 1; + a3 = 1; + a5 = 4; + a9 = 7; + a21 = 10; + a20 = 1; + a6 = 1; + a14 = 0; + return -1; + } else if(((!(a20==1)&&((a19==4)&&(((a5==4)&&((a12==1)&&((a17==2)&&((a21==11)&&(input==6)))))&&!(a18==1))))&&((((!(a26==1)&&(((!(a14==1)&&(a6==1))&&(a2==1))&&(a16==9)))||!(a23==1))&&(a9==10))&&(a1==13)))){ + a2 = 0; + a3 = 0; + a21 = 10; + a19 = 2; + a9 = 9; + a16 = 7; + a23 = 0; + a5 = 6; + a1 = 12; + a20 = 1; + return -1; + } else if((((!(a28==1)&&((((a1==12)&&(a3==1))&&(a17==2))&&!(a13==1)))&&(a20==1))&&((a19==4)&&((((!(a28==1)&&((a16==10)&&((a26==1)&&((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(input==6)))))&&!(a6==1))&&(a0==1))&&(a21==10))))){ + a19 = 2; + a27 = 1; + a14 = 1; + a5 = 5; + a9 = 11; + a16 = 7; + a28 = 0; + return 26; + } else if(((((a20==1)&&(!(a7==1)&&((!(a7==1)&&((a21==10)&&(input==5)))&&(a5==5))))&&(a16==10))&&(((((a28==1)&&((((a4==1)||((a28==1)||!(a12==1)))&&(a9==10))||(a7==1)))&&(a19==4))&&(a1==12))&&(a17==2)))){ + a19 = 1; + a16 = 7; + a18 = 0; + a26 = 0; + a5 = 4; + a9 = 7; + a4 = 0; + return -1; + } else if((((!(a11==1)||(!(a20==1)&&((a28==1)&&((a1==13)&&((a17==2)&&(a13==1))))))||!(a23==1))&&(((!(a24==1)&&(((a5==5)&&(!(a7==1)&&(((input==5)&&(a19==3))&&(a21==12))))&&!(a14==1)))&&(a9==9))&&(a16==8)))){ + if((a12==1)){ + a9 = 7; + a1 = 14; + a5 = 6; + a0 = 1; + a25 = 1; + a20 = 1; + a19 = 1; + a2 = 0; + a16 = 9; + a21 = 10; + }else{ + a19 = 1; + a16 = 7; + a25 = 1; + a5 = 6; + a21 = 10; + a9 = 8; + a10 = 0; + a11 = 0; + a20 = 1; + } + return -1; + } else if((((a1==12)&&((a17==2)&&((a16==7)&&((a6==1)&&((a12==1)&&((!(a27==1)&&((((a7==1)||(a28==1))&&(a21==12))&&(a23==1)))&&!(a20==1)))))))&&((((a19==5)&&(((a5==4)||(a5==5))&&(input==1)))&&(a11==1))&&(a9==9)))){ + a21 = 11; + a19 = 1; + a11 = 1; + a1 = 14; + a5 = 4; + a9 = 11; + a20 = 1; + a26 = 0; + return 26; + } else if(((((((a7==1)||((((((a20==1)&&(a2==1))&&(a19==3))&&(a16==10))&&(a1==14))&&!(a18==1)))||!(a23==1))||(a7==1))||(a27==1))&&(!(a18==1)&&((((input==4)&&(((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))))&&(a17==2))&&(a21==11))))){ + a5 = 4; + a21 = 10; + a14 = 0; + a28 = 1; + a19 = 1; + a0 = 0; + a16 = 7; + a1 = 12; + a9 = 7; + return -1; + } else if(((!(a20==1)&&(((a23==1)&&(!(a27==1)&&((input==4)&&(a9==7))))&&(a5==5)))&&((((a13==1)&&((!(a11==1)||(((((a6==1)&&(a1==14))||(a27==1))&&(a21==10))&&(a19==1)))||!(a3==1)))&&(a17==2))&&(a16==9)))){ + a19 = 2; + a11 = 0; + a16 = 7; + a20 = 1; + a21 = 11; + a25 = 0; + a9 = 11; + a1 = 12; + a28 = 0; + return -1; + } else if(((!(a28==1)||((a1==12)&&(!(a3==1)||(((a12==1)||(a8==1))&&(a16==8)))))&&((a28==1)&&((((!(a20==1)&&((a17==2)&&(((((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a5==6)&&(a9==10))))&&(input==1))&&(a19==4))))&&(a21==10))&&(a6==1))&&(a28==1))))){ + a20 = 1; + a0 = 0; + a16 = 7; + a23 = 1; + a19 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if(((((a9==10)&&((a16==9)&&((!(a23==1)||((a11==1)&&(a5==6)))&&(a21==10))))&&!(a18==1))&&(((a17==2)&&((a1==12)&&((((((a19==5)&&(input==6))&&(a28==1))&&(a13==1))&&!(a14==1))&&!(a20==1))))&&!(a8==1)))){ + if((a2==1)){ + a21 = 12; + a16 = 10; + a3 = 0; + a27 = 1; + a19 = 2; + a1 = 14; + a26 = 1; + }else{ + a18 = 1; + a5 = 5; + a19 = 1; + a21 = 12; + a9 = 9; + a25 = 0; + a6 = 0; + } + return -1; + } else if(((!(a7==1)&&((a16==8)&&(!(a18==1)&&(((((a11==1)&&((input==6)&&(a19==3)))&&(a9==7))&&(a20==1))&&(a21==12)))))&&(((a1==14)&&(((!(a28==1)||((a6==1)&&(a17==2)))||(a26==1))||(a26==1)))&&(a5==5)))){ + a8 = 0; + a24 = 0; + a9 = 11; + a23 = 1; + a19 = 2; + a5 = 4; + return 25; + } else if((((!(a14==1)&&((a21==12)&&(((((((a5==5)||(a5==6))&&(input==1))&&(a17==2))&&(a3==1))&&(a23==1))&&(a19==2))))&&!(a24==1))&&(!(a11==1)||(((((a9==7)&&((a28==1)&&(a20==1)))&&(a1==14))||(a0==1))&&(a16==8))))){ + a21 = 10; + a16 = 7; + a18 = 0; + a5 = 4; + a12 = 1; + a4 = 0; + a1 = 12; + a19 = 1; + return -1; + } else if(((((((a1==13)&&((a5==6)&&((a16==11)&&(input==3))))&&(a21==11))&&(a17==2))&&!(a23==1))&&(((a27==1)&&((((a27==1)&&(((a20==1)&&((a2==1)&&!(a12==1)))&&(a19==5)))&&(a9==8))&&(a4==1)))&&(a26==1)))){ + a21 = 10; + a9 = 9; + a19 = 1; + a25 = 1; + a5 = 5; + a16 = 7; + a8 = 1; + a6 = 0; + return 21; + } else if(((((((!(a28==1)||(((a24==1)||((a13==1)&&(a6==1)))&&(a16==9)))&&(a20==1))&&(a17==2))||(a18==1))&&(a9==9))&&((a1==12)&&((!(a14==1)&&((((a5==6)&&(input==4))&&(a21==12))&&!(a8==1)))&&(a19==5))))){ + a21 = 10; + a8 = 0; + a9 = 7; + a7 = 0; + a16 = 7; + a5 = 4; + a24 = 0; + a19 = 1; + return -1; + } else if((((((!(a14==1)&&((a3==1)&&((a21==10)&&((input==4)&&(a5==5)))))&&(a17==2))&&(a6==1))&&(a16==8))&&(!(a3==1)||((a6==1)&&((a9==10)&&(((a1==14)&&(((a19==2)&&(a11==1))&&!(a20==1)))||(a24==1))))))){ + a1 = 12; + a19 = 1; + a0 = 0; + a5 = 4; + a26 = 0; + a20 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if(((!(a12==1)&&(!(a28==1)&&((((((input==5)&&((a5==4)||(a5==5)))&&!(a20==1))&&(a16==8))&&(a18==1))&&(a1==13))))&&(((a4==1)&&((((a21==11)&&(((a11==1)&&(a18==1))&&(a19==3)))&&(a14==1))&&(a9==8)))&&(a17==2)))){ + a20 = 1; + a5 = 4; + a19 = 5; + a9 = 7; + a3 = 0; + a8 = 1; + a21 = 10; + a1 = 14; + a25 = 1; + return -1; + } else if((((a19==3)&&((a21==12)&&((a16==7)&&((a3==1)&&((!(a3==1)||(a2==1))||!(a6==1))))))&&(((a1==13)&&((a23==1)&&(!(a14==1)&&((a20==1)&&(((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==4))&&(a17==2))))))&&!(a26==1)))){ + a16 = 9; + a19 = 5; + a13 = 1; + a5 = 4; + a9 = 7; + a8 = 0; + a21 = 10; + return 26; + } else if((((a21==10)&&((a20==1)&&(((!(a6==1)||(((a3==1)&&((a11==1)&&(!(a6==1)||(a28==1))))&&(a12==1)))||!(a12==1))&&(a1==12))))&&(((a19==4)&&(((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==4))&&(a16==8)))&&(a17==2)))){ + a12 = 1; + a9 = 7; + a16 = 7; + a14 = 0; + a26 = 0; + a5 = 4; + a19 = 1; + return -1; + } else if((((a3==1)&&(((a8==1)||((a20==1)&&(((a1==14)&&((a6==1)&&(a17==2)))&&(a16==9))))||!(a6==1)))&&((((a23==1)&&((((((a5==4)||(a5==5))&&(input==4))&&(a21==12))&&(a19==3))&&(a9==7)))&&!(a27==1))&&!(a8==1)))){ + a5 = 4; + a1 = 12; + a21 = 10; + a19 = 1; + a16 = 7; + a7 = 0; + a12 = 1; + return -1; + } else if((((((((a1==12)&&(a5==6))&&(a9==11))||(((a5==4)&&(a1==13))&&(a9==7)))&&(input==3))&&!(a24==1))&&(((((a24==1)||((a20==1)&&(((!(a6==1)||((!(a11==1)||(a2==1))&&!(a4==1)))&&(a17==2))&&(a19==1))))&&(a21==11))&&(a16==10))||!(a3==1)))){ + a23 = 1; + a9 = 7; + a2 = 1; + a5 = 4; + a16 = 7; + a14 = 0; + a21 = 10; + a1 = 12; + return -1; + } else if((((((a16==11)&&(!(a26==1)&&((input==4)&&(((((a1==12)&&(a5==4))&&(a9==7))&&(a19==3))||(((((a5==5)&&(a1==14))&&(a9==11))&&(a19==2))||((a19==2)&&((a9==11)&&((a5==6)&&(a1==14)))))))))&&!(a7==1))&&(a12==1))&&((((a17==2)&&(((!(a13==1)||(a6==1))&&(a20==1))&&(a6==1)))&&(a21==11))&&!(a8==1)))){ + a9 = 7; + a5 = 4; + a21 = 10; + a16 = 7; + a2 = 1; + a28 = 1; + a0 = 0; + a19 = 1; + a1 = 12; + return -1; + } else if(((((a11==1)&&(((a21==11)&&((a19==1)&&((a1==14)&&(a28==1))))&&(a12==1)))||(a27==1))&&((a6==1)&&(((!(a26==1)&&((((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==6))&&!(a20==1))&&(a16==8)))&&(a17==2))&&!(a0==1))))){ + a19 = 3; + a18 = 0; + a9 = 8; + a12 = 1; + a21 = 12; + a1 = 13; + a23 = 1; + a5 = 5; + a16 = 10; + a20 = 1; + return 25; + } else if(((!(a27==1)&&((a3==1)&&(((a16==10)&&((!(a24==1)&&((input==3)&&((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4)))))&&!(a20==1)))&&(a19==1))))&&((((a21==12)&&(((a14==1)||(!(a8==1)&&(a11==1)))&&(a1==13)))&&(a17==2))||!(a11==1)))){ + if((a27==1)){ + a21 = 10; + a16 = 7; + a4 = 1; + a29 = 0; + a5 = 4; + a20 = 1; + a9 = 8; + }else{ + a5 = 5; + a11 = 0; + a1 = 14; + a9 = 10; + a29 = 1; + a19 = 5; + a21 = 11; + a8 = 1; + a20 = 1; + } + return 26; + } else if((((((((((a11==1)&&(a6==1))&&(a16==9))||(a8==1))||!(a23==1))||!(a6==1))&&(a17==2))&&(a19==5))&&((a1==13)&&((a9==7)&&((((((input==5)&&((a5==5)||(a5==6)))&&!(a8==1))&&!(a14==1))&&(a21==10))&&(a20==1)))))){ + if((a9==7)){ + a16 = 8; + a9 = 11; + a5 = 5; + a23 = 1; + a1 = 14; + a6 = 1; + a19 = 2; + a20 = 0; + }else{ + a16 = 11; + a19 = 2; + a7 = 0; + a9 = 11; + a1 = 14; + a6 = 1; + a5 = 4; + } + return 26; + } else if((((((((a28==1)&&(a16==7))&&(a23==1))&&(a17==2))&&(a1==13))&&(a21==11))&&((a3==1)&&((a19==5)&&((((a2==1)&&((((input==1)&&(((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))))&&(a13==1))&&(a20==1)))&&(a3==1))&&!(a18==1)))))){ + a5 = 6; + a16 = 8; + a19 = 2; + a21 = 12; + a6 = 1; + a1 = 12; + a7 = 0; + a9 = 9; + a27 = 0; + return 25; + } else if(((((a13==1)&&((a16==8)&&((((a13==1)||!(a23==1))&&(a1==14))||(a4==1))))&&(a19==3))&&(((a21==12)&&(((a20==1)&&((!(a4==1)&&((a23==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5))))))&&!(a18==1)))&&(a9==11)))&&(a17==2)))){ + a19 = 2; + a18 = 0; + a1 = 12; + a9 = 7; + a5 = 5; + a11 = 1; + a21 = 11; + a12 = 1; + return -1; + } else if((((a8==1)||(((!(a6==1)||((a19==5)&&((a17==2)&&((a2==1)&&(a6==1)))))&&(a9==11))||(a18==1)))&&((a20==1)&&(((a1==13)&&(!(a27==1)&&((a21==11)&&((((a5==4)||(a5==5))&&(input==3))&&!(a4==1)))))&&(a16==11))))){ + a19 = 1; + a21 = 10; + a16 = 7; + a13 = 1; + a1 = 12; + a0 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if(((((!(a26==1)&&((a20==1)&&((a3==1)&&((((a19==1)&&(input==1))&&!(a27==1))&&(a9==9)))))&&(a17==2))&&(a21==11))&&(((a13==1)&&((a3==1)&&(!(a12==1)||(((a3==1)&&(a5==6))&&(a1==12)))))&&(a16==7)))){ + a21 = 10; + a27 = 0; + a28 = 1; + a6 = 1; + a9 = 7; + a5 = 4; + return -1; + } else if((((!(a2==1)||((a19==5)&&((a4==1)||((a21==10)&&((!(a8==1)&&(!(a20==1)&&(((a13==1)||(a26==1))&&(a1==12))))&&(a9==7))))))&&(a17==2))&&(!(a27==1)&&(!(a8==1)&&(((input==6)&&((a5==4)||(a5==5)))&&(a16==9)))))){ + a5 = 4; + a10 = 0; + a29 = 1; + a19 = 2; + a22 = 0; + a16 = 7; + a20 = 1; + return 21; + } else if(((((a21==12)&&((a16==10)&&((a9==11)&&(((a19==5)&&(!(a18==1)&&((a5==5)&&((a17==2)&&((input==4)&&(a1==12))))))&&(a6==1)))))&&!(a18==1))&&(!(a27==1)&&((a6==1)&&(((a23==1)&&!(a20==1))||(a27==1)))))){ + a16 = 7; + a20 = 1; + a21 = 10; + a9 = 7; + a3 = 0; + a10 = 1; + a5 = 6; + a19 = 1; + return -1; + } else if((((a21==12)&&((a16==8)&&(a11==1)))&&((((a1==14)&&((a6==1)&&((((!(a7==1)&&(!(a8==1)&&(!(a20==1)&&(!(a14==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6))))))&&!(a27==1))&&(a11==1))&&(a17==2))))&&(a19==5))&&(a9==8)))){ + if((a13==1)){ + a24 = 1; + a19 = 2; + a12 = 0; + a21 = 10; + a1 = 12; + a5 = 5; + a4 = 1; + }else{ + a19 = 4; + a16 = 11; + a9 = 9; + a18 = 1; + a5 = 6; + a21 = 11; + a1 = 12; + a3 = 0; + a2 = 0; + a20 = 1; + } + return -1; + } else if((((((a17==2)&&((a13==1)&&(((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==3))&&(a6==1))))&&(a19==2))&&(a28==1))&&(((((a21==12)&&((((a13==1)||!(a23==1))||(a8==1))&&(a16==9)))&&!(a0==1))&&(a1==13))&&(a20==1)))){ + a5 = 4; + a8 = 0; + a0 = 0; + a19 = 1; + a16 = 7; + a24 = 0; + a1 = 12; + a21 = 10; + a9 = 7; + return -1; + } else if((((a19==2)&&((a5==4)&&(((a21==10)&&(!(a12==1)||((a16==7)&&((!(a12==1)||(a28==1))||!(a6==1)))))&&(a9==9))))&&(!(a20==1)&&((a6==1)&&((a12==1)&&((a1==12)&&((a11==1)&&((input==1)&&(a17==2))))))))){ + a9 = 7; + a1 = 14; + a14 = 0; + a3 = 1; + a5 = 5; + return 21; + } else if(((((a1==13)&&((a21==11)&&((a5==5)&&(!(a20==1)&&(!(a7==1)&&(!(a8==1)&&((a3==1)&&((a0==1)||((a23==1)&&(a17==2))))))))))&&(a9==11))&&(!(a8==1)&&((a19==2)&&(((a16==8)&&(input==6))&&(a13==1)))))){ + a19 = 1; + a21 = 10; + a3 = 1; + a20 = 1; + a27 = 0; + a16 = 9; + a5 = 6; + a14 = 0; + a9 = 8; + return 22; + } else if((((a20==1)&&((((a16==8)&&((a0==1)&&((input==1)&&(a1==12))))&&!(a23==1))&&(a21==10)))&&((((a9==7)&&((((((a3==1)&&!(a2==1))&&(a27==1))&&(a17==2))&&!(a3==1))&&(a7==1)))&&(a5==5))&&(a19==2)))){ + a1 = 13; + a16 = 10; + a25 = 1; + a22 = 1; + a21 = 11; + a9 = 9; + a28 = 0; + return -1; + } else if((((a17==2)&&(((!(a26==1)&&(((a28==1)&&((((a13==1)||!(a28==1))&&(a12==1))&&(a6==1)))||(a14==1)))&&(a21==11))&&!(a20==1)))&&(((a16==7)&&(((input==1)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(a1==13)))&&(a19==3)))){ + a20 = 1; + a9 = 11; + a3 = 1; + a1 = 12; + a5 = 4; + a14 = 0; + a23 = 1; + a16 = 9; + a19 = 5; + return 21; + } else if((((!(a3==1)&&(((((a28==1)&&!(a20==1))&&(a5==6))&&(a9==8))&&(a16==7)))&&!(a11==1))&&((!(a11==1)&&(!(a13==1)&&((a18==1)&&((((a21==12)&&((input==3)&&(a1==14)))&&(a19==5))&&(a17==2)))))&&(a18==1)))){ + a5 = 4; + a25 = 1; + a15 = 0; + a21 = 10; + a19 = 1; + a20 = 1; + a9 = 11; + return 21; + } else if(((((a26==1)||((a21==11)&&(((a17==2)&&(a13==1))&&(a20==1))))&&(a23==1))&&(((((a3==1)&&(((a12==1)&&((input==6)&&((((a9==11)&&((a5==5)&&(a1==13)))||((a9==11)&&((a5==6)&&(a1==13))))||(((a1==14)&&(a5==4))&&(a9==7)))))&&(a23==1)))&&(a19==5))&&!(a27==1))&&(a16==10)))){ + a21 = 10; + a19 = 4; + a16 = 7; + a5 = 5; + a12 = 1; + a1 = 13; + a6 = 1; + a4 = 0; + a9 = 10; + return 25; + } else if(((((a6==1)&&((a3==1)&&((a5==5)&&((a2==1)&&(((a19==3)&&((input==3)&&(a17==2)))&&(a21==11))))))&&(a23==1))&&((((a20==1)&&((((a16==7)&&(a13==1))&&(a1==13))||!(a13==1)))&&(a9==11))||!(a23==1)))){ + a5 = 4; + a14 = 0; + a13 = 1; + a1 = 14; + a19 = 1; + a9 = 8; + a16 = 8; + return 26; + } else if(((((a12==1)&&((a17==2)&&((((((a28==1)&&(a19==1))&&(a16==9))||(a14==1))&&(a21==12))&&(a1==14))))||!(a13==1))&&((((a9==9)&&((a28==1)&&((a20==1)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))))&&(a2==1))&&!(a24==1)))){ + a5 = 4; + a9 = 7; + a1 = 12; + a16 = 7; + a6 = 1; + a18 = 0; + a13 = 1; + a21 = 10; + return -1; + } else if(((((a6==1)&&(((a6==1)&&(((((a5==4)||(a5==5))&&(input==3))&&(a16==8))&&(a9==10)))&&(a20==1)))&&(a23==1))&&((!(a23==1)||((a21==11)&&((a19==1)&&((!(a27==1)&&((a23==1)&&!(a0==1)))&&(a1==12)))))&&(a17==2)))){ + a6 = 1; + a7 = 0; + a3 = 1; + a9 = 7; + a5 = 4; + a16 = 7; + a21 = 10; + return -1; + } else if((((!(a6==1)||((a16==8)&&((a2==1)&&(a17==2))))||!(a3==1))&&((a21==12)&&(((!(a7==1)&&((a9==11)&&(((a19==4)&&((a20==1)&&((a1==13)&&(((a5==5)||(a5==6))&&(input==4)))))&&(a23==1))))&&!(a27==1))&&!(a8==1))))){ + a24 = 0; + a9 = 7; + a21 = 10; + a5 = 4; + a16 = 7; + a2 = 1; + a1 = 12; + a0 = 0; + a19 = 1; + return -1; + } else if(((!(a6==1)&&(((a21==11)&&((a16==8)&&(!(a6==1)&&((((a9==11)&&(a13==1))&&!(a13==1))&&(a24==1)))))&&(a0==1)))&&((((a1==13)&&((!(a6==1)&&((input==6)&&(a20==1)))&&(a19==3)))&&(a17==2))&&(a5==4)))){ + a11 = 0; + a4 = 1; + a10 = 1; + a9 = 10; + a19 = 1; + a21 = 10; + a16 = 7; + a1 = 12; + return -1; + } else if((((a19==1)&&((((a20==1)&&((a1==14)&&(((a5==4)||(a5==5))&&(input==6))))&&!(a27==1))&&(a16==7)))&&(!(a26==1)&&((a17==2)&&((!(a0==1)&&((((!(a8==1)&&(a13==1))&&(a21==11))&&(a9==8))&&!(a7==1)))||!(a11==1)))))){ + a7 = 0; + a0 = 0; + a5 = 4; + a9 = 7; + a2 = 1; + a1 = 12; + a21 = 10; + return -1; + } else if((((a3==1)&&((((a20==1)&&(!(a0==1)&&(((input==3)&&((a5==4)||(a5==5)))&&(a9==7))))&&!(a4==1))&&(a17==2)))&&((((a2==1)&&((((a1==12)&&((a16==10)&&(a13==1)))&&!(a7==1))&&(a19==1)))&&(a28==1))&&(a21==11)))){ + a13 = 1; + a5 = 4; + a14 = 0; + a21 = 10; + a16 = 7; + a2 = 1; + return -1; + } else if(((((((a26==1)||((a20==1)&&((a21==11)&&(a23==1))))&&(a19==4))&&(a16==9))||!(a6==1))&&((a13==1)&&(((((((input==1)&&(((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))))&&(a1==12))&&(a2==1))&&(a17==2))&&!(a24==1))&&(a3==1))))){ + a1 = 13; + a13 = 1; + a16 = 7; + a27 = 0; + a23 = 1; + a5 = 4; + a21 = 10; + a19 = 2; + a9 = 10; + return 21; + } else if((((a17==2)&&(((a21==11)&&(((((input==3)&&((a5==5)||(a5==6)))&&!(a4==1))&&(a12==1))&&(a28==1)))&&(a1==12)))&&(((((((a0==1)||((a13==1)&&!(a26==1)))&&(a19==1))&&(a9==11))&&!(a14==1))&&(a16==7))&&(a20==1)))){ + a7 = 0; + a3 = 1; + a27 = 0; + a9 = 7; + a5 = 4; + a21 = 10; + return -1; + } else if((((a19==2)&&(!(a26==1)&&((((a9==10)&&((a11==1)&&(a1==12)))&&!(a26==1))&&(a23==1))))&&((((!(a7==1)&&((a16==10)&&((a17==2)&&(((a20==1)&&(input==4))&&!(a27==1)))))&&(a23==1))&&(a5==5))&&(a21==11)))){ + a16 = 7; + a3 = 1; + a9 = 7; + a18 = 0; + a21 = 10; + a23 = 1; + a5 = 4; + a19 = 1; + return -1; + } else if((((a19==4)&&((((((a21==12)&&(a11==1))&&!(a26==1))&&(a16==7))&&(a1==12))&&(a20==1)))&&(((a5==5)&&((!(a4==1)&&(((!(a14==1)&&((input==4)&&(a17==2)))&&!(a26==1))&&(a11==1)))&&(a6==1)))&&(a9==8)))){ + a13 = 1; + a5 = 4; + a9 = 7; + a19 = 1; + a21 = 10; + a0 = 0; + return -1; + } else if(((((a17==2)&&((!(a26==1)&&((!(a7==1)&&((input==4)&&((a5==4)||(a5==5))))&&(a20==1)))&&(a21==11)))&&(a2==1))&&(((a16==11)&&((a19==5)&&(((a1==13)&&(((a18==1)||(a6==1))&&(a12==1)))&&(a3==1))))&&(a9==11)))){ + a21 = 10; + a1 = 12; + a0 = 0; + a18 = 0; + a19 = 1; + a9 = 7; + a5 = 4; + a16 = 7; + return -1; + } else if((((a21==10)&&((a16==11)&&((a23==1)&&!(a18==1))))&&((a17==2)&&((a20==1)&&(!(a26==1)&&((a28==1)&&((a19==2)&&((((a12==1)&&(!(a24==1)&&(((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10)))&&(input==5))))&&(a1==14))&&(a28==1))))))))){ + a16 = 7; + a5 = 4; + a27 = 0; + a1 = 12; + a2 = 1; + a12 = 1; + a19 = 1; + a9 = 7; + return -1; + } else if((((((a20==1)&&(!(a28==1)||((a28==1)&&!(a14==1))))&&(a17==2))||!(a6==1))&&(((a9==10)&&((a21==11)&&((!(a14==1)&&(((a13==1)&&((a16==7)&&((input==4)&&((a5==4)||(a5==5)))))&&(a3==1)))&&(a1==13))))&&(a19==3)))){ + a1 = 12; + a9 = 7; + a23 = 1; + a19 = 1; + a11 = 1; + a5 = 4; + a4 = 0; + a21 = 10; + return -1; + } else if(((((a16==7)&&((a21==11)&&(((!(a0==1)&&(((input==1)&&((a5==5)||(a5==6)))&&(a23==1)))&&(a19==5))&&(a9==8))))&&(a20==1))&&(((((a7==1)||(!(a0==1)&&((a6==1)&&(a1==12))))&&(a17==2))&&!(a0==1))||(a8==1)))){ + a9 = 7; + a5 = 5; + a6 = 1; + a21 = 12; + a19 = 1; + a16 = 8; + a27 = 0; + a18 = 0; + return 22; + } else if(((((a19==5)&&((a16==9)&&((a0==1)&&(!(a28==1)&&((!(a28==1)&&((a21==10)&&(((a5==5)||(a5==6))&&(input==1))))&&(a17==2))))))&&(a9==7))&&((a1==12)&&((a7==1)&&((!(a23==1)&&((a27==1)&&(a12==1)))&&(a20==1)))))){ + a16 = 8; + a25 = 0; + a19 = 3; + a5 = 5; + a24 = 1; + a9 = 11; + a2 = 0; + return -1; + } else if(((((a1==13)&&(((a11==1)&&((a6==1)&&((a19==2)&&(((input==1)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&(a21==11)))))&&!(a24==1)))&&!(a27==1))&&(!(a4==1)&&((a17==2)&&(((a16==8)&&((a28==1)&&!(a20==1)))&&!(a7==1)))))){ + if((a2==1)){ + a1 = 12; + a7 = 0; + a9 = 8; + a5 = 5; + a3 = 1; + a0 = 0; + a19 = 4; + }else{ + a21 = 10; + a26 = 0; + a6 = 1; + a5 = 4; + a9 = 10; + a16 = 7; + a20 = 1; + } + return 21; + } else if((((a5==6)&&(((a20==1)&&((!(a18==1)&&(((!(a0==1)&&((a2==1)&&((a1==12)&&(input==6))))&&(a16==10))&&(a28==1)))&&(a21==12)))&&(a19==2)))&&(!(a18==1)&&((a17==2)&&(((a6==1)||!(a13==1))&&(a9==7)))))){ + a4 = 0; + a5 = 4; + a9 = 9; + a1 = 13; + a13 = 1; + a26 = 0; + a16 = 7; + a21 = 10; + return -1; + } else if(((((a18==1)||((a17==2)&&((a28==1)&&(a16==7))))&&!(a7==1))&&(!(a24==1)&&(!(a27==1)&&(((a2==1)&&((a20==1)&&(((((a21==11)&&((((a1==14)&&(a5==6))&&(a9==11))&&(a19==5)))||(((((a1==12)&&(a5==4))&&(a9==7))&&(a19==1))&&(a21==12)))||(((a19==1)&&((a9==7)&&((a5==5)&&(a1==12))))&&(a21==12)))&&(input==5))))&&!(a8==1)))))){ + a21 = 10; + a4 = 0; + a5 = 5; + a19 = 2; + a1 = 12; + a9 = 10; + a16 = 8; + a20 = 0; + a14 = 0; + a18 = 0; + return 25; + } else if((((a1==13)&&((!(a20==1)&&((a3==1)&&((a5==5)&&((a2==1)&&(!(a8==1)&&((a16==10)&&(input==4)))))))&&(a9==10)))&&(((a21==10)&&((!(a8==1)&&((a19==3)&&(!(a18==1)&&(a13==1))))||(a0==1)))&&(a17==2)))){ + if((a13==1)){ + a1 = 12; + a11 = 0; + a21 = 12; + a9 = 8; + a20 = 1; + a19 = 2; + a16 = 7; + a25 = 0; + a3 = 0; + }else{ + a10 = 0; + a16 = 7; + a20 = 1; + a25 = 1; + a6 = 0; + a9 = 7; + a19 = 1; + a5 = 4; + } + return -1; + } else if((((((a1==13)&&((a4==1)&&((a17==2)&&((a19==4)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==3))))))&&(a8==1))&&(a18==1))&&(((a7==1)&&((!(a20==1)&&(((a28==1)&&(a21==12))&&(a16==7)))&&!(a3==1)))&&(a8==1)))){ + a1 = 12; + a8 = 1; + a21 = 10; + a20 = 1; + a19 = 2; + a5 = 6; + a22 = 0; + a9 = 11; + a4 = 1; + return -1; + } else if((((((a19==1)&&(!(a14==1)&&((a17==2)&&((a5==6)&&(a23==1)))))&&(a16==10))||!(a2==1))&&(((a21==10)&&((a28==1)&&((!(a26==1)&&(((a20==1)&&((a1==12)&&(input==5)))&&(a6==1)))&&(a3==1))))&&(a9==10)))){ + a6 = 1; + a9 = 7; + a27 = 0; + a1 = 13; + a14 = 0; + a16 = 8; + a19 = 4; + return 25; + } else if(((((!(a18==1)&&(((((a17==2)&&((a2==1)&&((a28==1)&&((a19==3)&&(input==3)))))&&(a23==1))&&(a21==10))&&(a9==10)))&&(a20==1))&&(a2==1))&&(((a5==4)&&((a16==11)&&((a6==1)&&(a1==12))))&&!(a18==1)))){ + a3 = 1; + a9 = 7; + a2 = 1; + a13 = 1; + a19 = 1; + a16 = 7; + return -1; + } else if((((a17==2)&&(((a13==1)&&((a16==10)&&((!(a11==1)||(a12==1))&&(a20==1))))||(a4==1)))&&((a1==13)&&((!(a24==1)&&(((a19==1)&&(((((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6))))&&(input==5))&&(a12==1)))&&(a21==11)))&&(a11==1))))){ + a4 = 0; + a1 = 12; + a16 = 7; + a9 = 7; + a5 = 4; + a21 = 10; + a13 = 1; + a2 = 1; + return -1; + } else if(((((a20==1)&&(((a17==2)&&((a21==10)&&(((input==5)&&(a19==1))&&(a11==1))))&&!(a4==1)))&&(a9==7))&&((a1==12)&&((a16==9)&&((a18==1)||((a18==1)||((((a28==1)&&(a5==5))||!(a23==1))&&(a3==1)))))))){ + a16 = 7; + a3 = 1; + a5 = 4; + a2 = 1; + a4 = 0; + return -1; + } else if((((a19==1)&&((((a21==12)&&(((input==4)&&(a16==9))&&!(a24==1)))&&(a17==2))&&!(a27==1)))&&((((((a27==1)||((a5==4)&&(((a13==1)&&!(a27==1))&&!(a20==1))))&&(a6==1))&&!(a27==1))&&(a1==12))&&(a9==10)))){ + a8 = 1; + a27 = 1; + a1 = 13; + a9 = 9; + a18 = 1; + a21 = 10; + a5 = 6; + a20 = 1; + a16 = 7; + return -1; + } else if(((!(a20==1)&&((((input==6)&&(a21==11))&&!(a7==1))&&(a5==5)))&&(((a8==1)||((a1==14)&&(((a9==10)&&(!(a18==1)&&((a16==10)&&((a26==1)||((a17==2)&&((a7==1)||(a11==1)))))))&&(a19==2))))||(a7==1)))){ + if((a24==1)){ + a14 = 1; + a1 = 12; + a23 = 0; + a20 = 1; + a19 = 3; + a7 = 1; + a9 = 7; + }else{ + a1 = 12; + a21 = 10; + a16 = 7; + a19 = 1; + a20 = 1; + a5 = 4; + a3 = 0; + a29 = 0; + a9 = 8; + } + return -1; + } else if((((!(a11==1)&&((a19==1)&&((a24==1)&&(!(a3==1)&&((a16==7)&&(!(a20==1)&&(((a1==12)&&(input==3))&&(a9==7))))))))&&!(a28==1))&&((((a17==2)&&((a5==5)&&((a11==1)&&!(a23==1))))&&(a21==11))&&!(a28==1)))){ + a21 = 12; + a16 = 8; + a20 = 1; + a4 = 1; + a5 = 4; + a15 = 0; + a19 = 4; + a14 = 1; + return -1; + } else if(((!(a24==1)&&(((a9==8)&&((((a17==2)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))&&!(a4==1))&&(a20==1)))&&(a1==13)))&&((!(a23==1)||((a19==3)&&((a21==11)&&((!(a4==1)&&((a13==1)&&(a16==9)))&&!(a18==1)))))||!(a11==1)))){ + a9 = 11; + a1 = 14; + a26 = 0; + a5 = 4; + a7 = 0; + a0 = 0; + a16 = 11; + a21 = 10; + return 26; + } else if((((!(a18==1)&&(((a20==1)&&(!(a8==1)&&(!(a24==1)&&(((a5==4)||(a5==5))&&(input==1)))))&&(a17==2)))&&(a9==7))&&((a19==3)&&((((a14==1)||((((a13==1)&&(a28==1))&&(a3==1))&&(a16==10)))&&(a21==12))&&(a1==12))))){ + a19 = 1; + a16 = 7; + a13 = 1; + a21 = 10; + a5 = 4; + a4 = 0; + a11 = 1; + return -1; + } else if(((!(a6==1)||(((((((a6==1)&&(a21==11))||!(a13==1))&&(a17==2))&&(a23==1))&&(a19==2))||!(a6==1)))&&(((((!(a20==1)&&(((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a16==7)))&&(a2==1))&&(a1==14))&&(a9==9))&&!(a7==1)))){ + a6 = 1; + a8 = 0; + a20 = 1; + a5 = 4; + a21 = 10; + a19 = 1; + a9 = 7; + a13 = 1; + a1 = 12; + return -1; + } else if(((((a4==1)||(((a5==4)&&(((a1==12)&&(a23==1))||!(a13==1)))&&!(a18==1)))&&(a17==2))&&(((((a12==1)&&((a6==1)&&(((a19==2)&&((input==5)&&(a21==10)))&&(a16==8))))&&(a9==11))&&(a2==1))&&!(a20==1)))){ + a19 = 1; + a21 = 11; + a2 = 1; + a5 = 6; + a4 = 0; + a20 = 1; + return 23; + } else if((((a16==10)&&((((a17==2)&&((input==6)&&((a5==4)||(a5==5))))&&(a19==2))&&(a13==1)))&&((!(a2==1)||((a0==1)||((!(a12==1)||((a1==14)&&((((a13==1)&&(a3==1))&&(a9==11))&&!(a14==1))))&&!(a20==1))))&&(a21==10)))){ + a19 = 1; + a23 = 0; + a15 = 0; + a9 = 7; + a21 = 12; + a5 = 4; + a16 = 8; + a12 = 0; + return 23; + } else if(((((a1==12)&&(a3==1))||!(a3==1))&&((!(a4==1)&&(!(a7==1)&&((a19==2)&&((a20==1)&&((a21==11)&&(((a17==2)&&(((a16==7)&&((input==4)&&((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10)))))&&(a12==1)))&&!(a27==1)))))))&&!(a0==1)))){ + a6 = 1; + a9 = 7; + a19 = 1; + a18 = 0; + a5 = 4; + a12 = 1; + a21 = 10; + return -1; + } else if(((((a6==1)&&(((a1==14)&&((a16==11)&&((a21==11)&&((a0==1)||((a11==1)&&(a13==1))))))||(a24==1)))&&!(a7==1))&&(((!(a27==1)&&((a17==2)&&((input==6)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))))&&(a20==1))&&(a19==5)))){ + a26 = 0; + a19 = 4; + a9 = 10; + a21 = 10; + a5 = 5; + a16 = 10; + a18 = 0; + a2 = 1; + return 25; + } else if((((((!(a14==1)&&(((a17==2)&&(a13==1))||(a4==1)))&&(a9==9))&&(a21==11))&&(a16==7))&&((!(a20==1)&&(!(a14==1)&&((a19==5)&&(!(a18==1)&&((a28==1)&&(((input==3)&&((a5==4)||(a5==5)))&&!(a24==1)))))))&&(a1==13)))){ + a5 = 4; + a9 = 7; + a21 = 10; + a20 = 1; + a1 = 12; + a27 = 0; + a24 = 0; + a13 = 1; + a19 = 1; + return -1; + } else if((((a17==2)&&((((a21==11)&&((((a19==5)&&((a3==1)&&((input==5)&&(a1==14))))&&!(a27==1))&&(a2==1)))&&!(a24==1))&&(a16==10)))&&((a2==1)&&(!(a6==1)||((((a23==1)&&(a9==9))&&(a5==4))&&!(a20==1)))))){ + a27 = 1; + a1 = 13; + a6 = 0; + a9 = 11; + a29 = 0; + a21 = 12; + return -1; + } else if(((!(a27==1)&&(!(a26==1)&&((((a9==10)&&(((a12==1)&&((input==3)&&((a5==4)||(a5==5))))&&!(a14==1)))&&(a21==10))&&(a1==13))))&&(((a17==2)&&(((a20==1)&&(((a3==1)&&(a16==9))&&!(a7==1)))||(a8==1)))&&(a19==5)))){ + a1 = 14; + a5 = 5; + a4 = 0; + a9 = 8; + a13 = 1; + a27 = 0; + a16 = 8; + a21 = 12; + return -1; + } else if(((((a11==1)&&((a20==1)&&((a1==12)&&(!(a24==1)&&(((a5==4)||(a5==5))&&(input==6))))))&&(a19==3))&&((a21==11)&&((a8==1)||(((((!(a2==1)||((a2==1)&&(a3==1)))&&(a16==11))||!(a3==1))&&(a17==2))&&(a9==8)))))){ + a19 = 1; + a9 = 7; + a5 = 4; + a18 = 0; + a7 = 0; + a16 = 7; + a21 = 10; + a6 = 1; + return -1; + } else if((((a2==1)&&(((a19==5)&&((((a6==1)||!(a13==1))&&(a1==13))&&(a17==2)))&&(a12==1)))&&(((a9==9)&&((a21==10)&&((((((a20==1)&&(input==6))&&(a28==1))&&(a12==1))&&(a16==9))&&(a5==4))))&&(a11==1)))){ + a21 = 12; + a5 = 6; + a9 = 8; + a24 = 0; + a1 = 14; + a26 = 0; + a4 = 0; + a16 = 8; + return 26; + } else if((((a28==1)&&((((a3==1)&&((a19==4)&&(!(a4==1)&&((input==6)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))))))&&(a28==1))&&(a20==1)))&&(((a17==2)&&(((a3==1)&&(((a1==14)&&(a23==1))&&(a16==8)))&&(a21==12)))&&(a6==1)))){ + a12 = 1; + a5 = 6; + a9 = 9; + a19 = 2; + a21 = 11; + a0 = 0; + a28 = 1; + return 25; + } else if(((((a20==1)&&((((!(a3==1)||((a11==1)&&(a19==1)))&&(a21==10))&&(a5==4))||(a14==1)))&&(a17==2))&&(((!(a7==1)&&((((a6==1)&&((a1==13)&&(input==6)))&&(a9==10))&&(a16==10)))&&!(a0==1))&&(a28==1)))){ + a16 = 7; + a24 = 0; + a13 = 1; + a9 = 7; + a1 = 12; + a18 = 0; + return -1; + } else if(((((a12==1)&&(((a16==7)&&((a20==1)&&((((a17==2)&&((a21==11)&&(input==6)))&&(a5==6))&&(a9==7))))&&(a19==1)))&&(a1==14))&&((a13==1)&&(!(a2==1)||(!(a24==1)&&((a12==1)&&((a13==1)&&(a12==1)))))))){ + a23 = 1; + a1 = 12; + a21 = 10; + a7 = 0; + a0 = 0; + a5 = 4; + return -1; + } else if((((a20==1)&&((a9==11)&&((((a5==5)&&((((input==1)&&(a1==13))&&(a28==1))&&(a17==2)))&&(a16==7))&&(a19==3))))&&(((a14==1)||((a21==11)&&(!(a23==1)||((!(a3==1)||(a2==1))||(a18==1)))))&&!(a0==1)))){ + a19 = 1; + a5 = 4; + a26 = 0; + a3 = 1; + a16 = 8; + a6 = 1; + return 23; + } else if((((a21==11)&&((((a1==13)&&((a16==11)&&(input==3)))&&(a11==1))&&(a9==9)))&&((a20==1)&&((a5==4)&&((((a19==5)&&(((a27==1)||(((a12==1)||(a27==1))&&(a17==2)))||(a26==1)))&&(a2==1))||(a0==1)))))){ + a16 = 7; + a19 = 1; + a18 = 0; + a21 = 10; + a1 = 12; + a9 = 7; + a6 = 1; + a27 = 0; + return -1; + } else if(((((a17==2)&&((a1==12)&&((!(a7==1)&&(((a20==1)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==1)))&&(a16==11)))&&!(a8==1))))&&!(a14==1))&&((((a19==5)&&((!(a8==1)&&(a3==1))&&(a21==11)))||!(a11==1))&&!(a8==1)))){ + a16 = 7; + a9 = 7; + a21 = 10; + a19 = 1; + a5 = 4; + a2 = 1; + a3 = 1; + a6 = 1; + return -1; + } else if((((a9==11)&&((!(a13==1)||(((((a11==1)||(a18==1))&&(a2==1))||!(a3==1))&&(a6==1)))&&(a17==2)))&&(((((((a2==1)&&((input==1)&&(a5==6)))&&(a16==8))&&(a21==12))&&(a19==5))&&(a1==13))&&!(a20==1)))){ + a10 = 0; + a20 = 1; + a16 = 11; + a6 = 0; + a9 = 9; + a12 = 0; + a5 = 4; + a1 = 12; + return -1; + } else if(((((((!(a27==1)&&(!(a7==1)&&(a6==1)))&&(a17==2))&&(a9==9))&&(a16==10))&&(a19==2))&&((a11==1)&&((a5==5)&&(!(a8==1)&&(((a21==12)&&((a28==1)&&(((a20==1)&&(input==3))&&(a1==14))))&&!(a8==1))))))){ + a4 = 0; + a23 = 1; + a16 = 7; + a21 = 10; + a6 = 1; + a19 = 1; + a9 = 7; + a1 = 12; + a5 = 4; + return -1; + } else if((((a21==11)&&(((!(a6==1)||((a16==8)&&((a28==1)&&(a20==1))))&&(a11==1))||!(a6==1)))&&(((a19==4)&&((a1==14)&&(((a17==2)&&((!(a0==1)&&((input==4)&&((a5==5)||(a5==6))))&&!(a8==1)))&&!(a18==1))))&&(a9==9)))){ + a7 = 0; + a5 = 4; + a19 = 1; + a16 = 7; + a26 = 0; + a21 = 10; + a1 = 12; + a13 = 1; + a9 = 7; + return -1; + } else if((((a16==8)&&(((((((!(a7==1)&&(((a6==1)&&(a11==1))||(a18==1)))||(a18==1))||(a14==1))&&(a19==2))&&(a5==6))&&(a21==11))&&(a17==2)))&&((a1==14)&&((a9==9)&&(!(a26==1)&&(!(a20==1)&&(input==5))))))){ + a16 = 10; + a9 = 7; + a20 = 1; + a24 = 0; + a19 = 5; + a12 = 1; + a7 = 0; + a1 = 13; + return 21; + } else if((((a23==1)&&(((a21==11)&&((a13==1)&&(!(a27==1)&&((((input==5)&&!(a20==1))&&(a17==2))&&(a12==1)))))&&(a5==5)))&&(((((((a28==1)&&(a19==1))||(a18==1))&&!(a0==1))&&(a1==14))&&(a16==7))&&(a9==11)))){ + a1 = 12; + a5 = 4; + a2 = 1; + a9 = 7; + a20 = 1; + a23 = 1; + a3 = 1; + a21 = 10; + return -1; + } else if((((a5==5)&&(!(a0==1)&&(((a23==1)&&!(a7==1))&&(a28==1))))&&(((!(a8==1)&&((a21==12)&&(((a19==2)&&(((!(a0==1)&&((input==1)&&(a17==2)))&&(a20==1))&&!(a26==1)))&&(a9==9))))&&(a16==9))&&(a1==13)))){ + a16 = 7; + a23 = 1; + a9 = 10; + a11 = 1; + a21 = 10; + a0 = 0; + return 21; + } else if((((a27==1)||((((a6==1)||(a0==1))&&(a20==1))&&(a21==11)))&&(((a2==1)&&((a16==7)&&(((a17==2)&&((((((a9==7)&&((a1==12)&&(a5==4)))&&(a19==2))||(((a19==1)&&((a9==11)&&((a5==5)&&(a1==14))))||(((a9==11)&&((a1==14)&&(a5==6)))&&(a19==1))))&&(input==1))&&!(a18==1)))&&!(a26==1))))&&!(a8==1)))){ + a19 = 2; + a1 = 12; + a9 = 11; + a14 = 0; + a27 = 0; + a21 = 10; + a5 = 6; + a16 = 8; + a24 = 0; + return 21; + } else if((((((!(a13==1)&&((a16==8)&&(!(a3==1)&&(a6==1))))&&(a9==11))&&!(a28==1))&&(a18==1))&&(((a21==10)&&((a7==1)&&((a17==2)&&((a14==1)&&((((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&!(a20==1))&&(a19==4))))))&&(a1==13)))){ + a0 = 1; + a2 = 0; + a22 = 0; + a20 = 1; + a16 = 10; + a9 = 8; + a21 = 12; + a19 = 1; + a5 = 5; + return 21; + } else if(((((a1==14)&&((((a23==1)&&((!(a0==1)&&(((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))&&(input==6)))&&!(a4==1)))&&(a21==12))&&(a16==9)))&&(a19==2))&&((!(a12==1)||((a13==1)&&((a20==1)&&(!(a28==1)||(a13==1)))))&&(a17==2)))){ + a13 = 1; + a5 = 5; + a3 = 1; + a9 = 11; + a4 = 0; + return 21; + } else if((((!(a7==1)&&(((a16==8)&&((a12==1)&&(a17==2)))&&(a20==1)))&&(a11==1))&&(!(a4==1)&&(!(a27==1)&&(((a12==1)&&((input==3)&&(((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==5))&&(a21==10))||(((a19==1)&&(((a5==4)&&(a1==12))&&(a9==7)))&&(a21==11)))))&&!(a7==1)))))){ + a16 = 7; + a5 = 4; + a8 = 0; + a21 = 10; + a1 = 12; + a7 = 0; + a19 = 1; + a9 = 7; + a12 = 1; + return -1; + } else if((((a21==11)&&((a9==9)&&(((a11==1)&&((!(a12==1)||((a12==1)||(a14==1)))&&!(a8==1)))&&(a19==1))))&&((((((a28==1)&&((((a5==4)||(a5==5))&&(input==6))&&(a17==2)))&&(a12==1))&&(a16==10))&&!(a20==1))&&(a1==12)))){ + a10 = 0; + a23 = 0; + a16 = 7; + a5 = 6; + a9 = 7; + a0 = 1; + a21 = 10; + a20 = 1; + return 21; + } else if((((a13==1)&&((a23==1)&&((((((a17==2)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))&&(a21==10))&&(a16==9))&&(a6==1))&&(a19==3))))&&(((a9==10)&&(!(a2==1)||((a1==13)&&(!(a20==1)&&((a3==1)&&!(a4==1))))))&&(a6==1)))){ + a19 = 1; + a20 = 1; + a7 = 1; + a29 = 0; + a16 = 7; + a22 = 1; + a5 = 5; + return 25; + } else if(((!(a26==1)&&(a3==1))&&((((a13==1)&&((((a21==12)&&(!(a20==1)&&((a5==6)&&((a13==1)&&((!(a8==1)&&((a9==10)&&((input==6)&&(a19==3))))&&(a17==2))))))&&(a13==1))&&!(a24==1)))&&(a16==7))&&(a1==13)))){ + a20 = 1; + a12 = 1; + a16 = 9; + a18 = 0; + a1 = 12; + a11 = 1; + a5 = 4; + return 21; + } else if(((((a19==5)&&((a21==11)&&(((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8)))&&(input==6))))&&(a1==13))&&(((a8==1)||(!(a13==1)||((a17==2)&&((a23==1)&&((a11==1)&&((a16==9)&&((a20==1)&&(!(a14==1)&&(a3==1)))))))))||!(a6==1)))){ + a14 = 0; + a5 = 4; + a24 = 0; + a9 = 10; + a21 = 10; + a19 = 2; + a16 = 7; + a27 = 0; + return 21; + } else if((((a5==4)&&((a17==2)&&(!(a11==1)||(!(a2==1)||(!(a4==1)&&(a12==1))))))&&((a1==14)&&(((a16==7)&&((a23==1)&&((a11==1)&&((a19==2)&&((a9==11)&&(!(a4==1)&&((a21==10)&&(input==1))))))))&&!(a20==1))))){ + a18 = 0; + a23 = 1; + a27 = 0; + a1 = 12; + a19 = 1; + a9 = 7; + a20 = 1; + return -1; + } else if(((!(a0==1)&&(((!(a7==1)&&(!(a20==1)&&((a6==1)&&(a9==8))))&&(a21==10))||!(a12==1)))&&(!(a24==1)&&(!(a4==1)&&(((((((a19==5)&&(input==4))&&(a5==5))&&(a17==2))&&(a16==8))&&(a1==13))&&!(a14==1)))))){ + a20 = 1; + a14 = 0; + a28 = 1; + a9 = 9; + a1 = 14; + a5 = 4; + a26 = 0; + return -1; + } else if(((((a20==1)&&((a1==12)&&(!(a0==1)&&(((a19==5)&&(((a5==4)||(a5==5))&&(input==5)))&&!(a4==1)))))&&(a17==2))&&((!(a24==1)&&((((a16==9)&&(((a13==1)&&(a21==12))||(a7==1)))&&(a23==1))||!(a23==1)))&&(a9==9)))){ + a1 = 14; + a8 = 0; + a11 = 1; + a5 = 5; + a16 = 7; + a21 = 10; + a28 = 1; + a9 = 7; + a19 = 3; + return 25; + } else if(((((a20==1)&&((a16==10)&&((((!(a3==1)||(((a9==10)&&((a12==1)&&!(a7==1)))||(a7==1)))&&(a21==12))&&(a19==2))||(a7==1))))&&!(a14==1))&&(((((input==4)&&((a5==5)||(a5==6)))&&(a1==13))&&(a28==1))&&(a17==2)))){ + a16 = 7; + a21 = 10; + a19 = 1; + a6 = 1; + a9 = 7; + a5 = 4; + a27 = 0; + a3 = 1; + a1 = 12; + return -1; + } else if((((a2==1)&&(((!(a20==1)&&((a16==7)&&(((a17==2)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==3)))&&(a19==5))))&&!(a24==1))&&!(a7==1)))&&((a0==1)||(!(a18==1)&&((a1==12)&&(((a28==1)&&(a21==12))&&!(a18==1))))))){ + a19 = 1; + a2 = 1; + a21 = 10; + a9 = 7; + a8 = 0; + a20 = 1; + a5 = 4; + return -1; + } else if((((((a20==1)&&(!(a3==1)||(!(a8==1)&&((a19==3)&&((a2==1)&&(((a12==1)&&(a1==13))&&(a21==10)))))))&&(a9==10))&&(a3==1))&&((((((input==3)&&(a16==8))&&!(a18==1))&&(a17==2))&&(a5==4))&&(a3==1)))){ + a19 = 1; + a14 = 0; + a16 = 7; + a11 = 1; + a9 = 7; + a1 = 12; + return -1; + } else if((((((!(a7==1)&&((a3==1)&&(a12==1)))&&(a11==1))||!(a3==1))&&(a16==8))&&((a21==11)&&((a28==1)&&((a17==2)&&((a23==1)&&((a20==1)&&((((a19==1)&&(((a5==6)&&(a1==14))&&(a9==11)))||((a19==2)&&((a9==7)&&((a1==12)&&(a5==4)))))&&(input==3))))))))){ + a18 = 0; + a13 = 1; + a21 = 10; + a11 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + a19 = 1; + a1 = 12; + return -1; + } else if((((a1==13)&&(((a21==10)&&((a16==7)&&((a14==1)&&(((a19==2)&&(!(a23==1)&&((input==6)&&((a5==4)||(a5==5)))))&&(a17==2)))))&&(a0==1)))&&(((a8==1)&&(!(a28==1)&&(((a23==1)&&!(a20==1))&&(a24==1))))&&(a9==11)))){ + a19 = 1; + a23 = 0; + a6 = 0; + a1 = 14; + a9 = 10; + a15 = 0; + a5 = 6; + a20 = 1; + return 21; + } else if((((a17==2)&&(!(a20==1)&&((a21==12)&&(((a16==10)&&(!(a4==1)&&((a13==1)||(a26==1))))&&(a19==5)))))&&((a1==13)&&((a11==1)&&(((((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==4))&&(a2==1))&&!(a0==1))&&(a2==1)))))){ + if((a21==10)){ + a1 = 12; + a21 = 10; + a9 = 8; + a5 = 4; + a19 = 2; + a15 = 1; + a16 = 7; + a20 = 1; + a6 = 0; + a10 = 1; + }else{ + a26 = 1; + a16 = 11; + a5 = 4; + a19 = 3; + a9 = 8; + a20 = 1; + a4 = 1; + a25 = 0; + } + return 21; + } else if(((((((a18==1)&&(a3==1))&&!(a6==1))&&(a16==7))&&(a1==14))&&((((a20==1)&&((a21==10)&&((((a19==4)&&((a7==1)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==5))))&&(a17==2))&&(a18==1))))&&!(a23==1))&&!(a11==1)))){ + a9 = 9; + a1 = 12; + a5 = 5; + a19 = 1; + a15 = 1; + a29 = 0; + a23 = 0; + return 21; + } else if(((!(a20==1)&&(((a21==10)&&(!(a18==1)&&(((a19==4)&&(a6==1))&&(a1==13))))&&(a16==8)))&&((!(a8==1)&&((((a28==1)&&((a28==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a23==1))))&&(a9==8))&&(a12==1)))&&(a17==2)))){ + a1 = 14; + a13 = 1; + a9 = 9; + a5 = 4; + a16 = 9; + a20 = 1; + a19 = 2; + return 26; + } else if(((((a21==11)&&(((a9==11)&&(input==5))&&!(a14==1)))&&(a5==5))&&((a19==3)&&((a16==10)&&(((a17==2)&&((a6==1)&&((a1==13)&&(!(a20==1)&&(!(a13==1)||((!(a6==1)||(a28==1))&&!(a14==1)))))))&&!(a24==1)))))){ + a5 = 4; + a16 = 8; + a22 = 0; + a27 = 1; + return 23; + } else if((((a9==9)&&((a1==13)&&((a13==1)&&((((a17==2)&&(input==4))&&!(a14==1))&&(a16==9)))))&&((a19==5)&&((a5==4)&&((((a26==1)||(((a20==1)&&((a12==1)||(a26==1)))||(a8==1)))&&(a21==10))||!(a11==1)))))){ + a16 = 10; + a4 = 0; + a6 = 1; + a3 = 1; + a9 = 7; + a1 = 12; + return 25; + } else if((((((((((a1==13)&&((input==5)&&(a16==10)))&&(a6==1))&&(a9==11))&&(a17==2))&&(a28==1))&&(a12==1))&&!(a20==1))&&((a19==5)&&((a5==4)&&((a0==1)||((!(a12==1)||(!(a18==1)&&(a6==1)))&&(a21==12))))))){ + a18 = 1; + a5 = 6; + a21 = 10; + a20 = 1; + a16 = 7; + a19 = 2; + a1 = 12; + a3 = 0; + a22 = 1; + return 25; + } else if((((a19==2)&&(((a21==10)&&(input==4))&&(a5==5)))&&((!(a18==1)&&((!(a3==1)||((a9==7)&&((((a16==8)&&((a20==1)&&((a27==1)||((a1==12)&&(a2==1)))))&&(a11==1))&&(a17==2))))&&!(a18==1)))&&(a2==1)))){ + a19 = 1; + a5 = 4; + a23 = 1; + a13 = 1; + a16 = 7; + return -1; + } else if((((((!(a7==1)&&(!(a28==1)||(!(a13==1)||(a13==1))))&&(a9==10))||(a8==1))&&(a16==8))&&((((!(a26==1)&&((a20==1)&&((((a17==2)&&(input==3))&&(a19==5))&&(a1==14))))&&(a2==1))&&(a21==10))&&(a5==6)))){ + a1 = 12; + a16 = 7; + a19 = 1; + a9 = 7; + a11 = 1; + a7 = 0; + a3 = 1; + a5 = 4; + return -1; + } else if(((((((a1==12)&&((!(a11==1)||(((a3==1)&&(a23==1))&&(a16==7)))&&(a20==1)))&&(a19==5))||!(a12==1))&&(a12==1))&&(!(a18==1)&&((a9==11)&&(!(a27==1)&&(((((a5==5)||(a5==6))&&(input==4))&&(a17==2))&&(a21==10))))))){ + a9 = 7; + a19 = 2; + a12 = 1; + a21 = 12; + a1 = 14; + a11 = 1; + a14 = 0; + a5 = 6; + return 22; + } else if((((a23==1)&&(!(a0==1)&&((a20==1)&&((a17==2)&&(!(a7==1)&&((!(a8==1)&&((a16==8)&&((a28==1)&&(a1==13))))&&(a21==10)))))))&&(!(a18==1)&&(((a19==3)&&((input==6)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8)))))&&(a3==1))))){ + a5 = 6; + a16 = 9; + a8 = 0; + a9 = 7; + a1 = 12; + a24 = 0; + a11 = 1; + a21 = 12; + a19 = 5; + return 25; + } else if(((((((a23==1)&&(a5==4))&&(a20==1))&&(a28==1))&&(a1==12))&&((a17==2)&&((a19==4)&&((a16==11)&&(!(a0==1)&&((a6==1)&&(((!(a24==1)&&(((input==5)&&(a9==9))&&(a13==1)))&&!(a7==1))&&(a21==10))))))))){ + a19 = 1; + a9 = 7; + a16 = 7; + a18 = 0; + a12 = 1; + return -1; + } else if((((!(a24==1)&&(((a16==10)&&(!(a18==1)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&(a17==2))&&!(a4==1))))&&(a21==12)))&&(a20==1))&&(!(a23==1)||(((a9==8)&&((a19==3)&&(((a13==1)&&(a3==1))&&(a2==1))))&&(a1==12))))){ + a14 = 0; + a21 = 10; + a28 = 1; + a9 = 7; + a16 = 7; + a2 = 1; + a5 = 4; + a19 = 1; + return -1; + } else if((((a21==10)&&(((((a16==10)&&((a6==1)&&(a2==1)))||!(a2==1))||!(a11==1))&&(a23==1)))&&(((((((!(a27==1)&&((input==3)&&((a5==4)||(a5==5))))&&!(a26==1))&&(a1==12))&&(a9==11))&&(a19==4))&&!(a20==1))&&(a17==2)))){ + a14 = 1; + a20 = 1; + a19 = 1; + a1 = 13; + a5 = 6; + a16 = 7; + a13 = 0; + a9 = 8; + a29 = 1; + return -1; + } else if((((((a17==2)&&((((input==4)&&(((a9==7)&&((a5==4)&&(a1==13)))||((((a5==5)&&(a1==12))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==12))))))&&(a16==9))&&(a12==1)))&&(a20==1))&&!(a7==1))&&((a27==1)||(!(a18==1)&&(!(a14==1)&&(((a19==1)&&((a21==12)&&(a6==1)))&&(a12==1))))))){ + a9 = 7; + a26 = 0; + a5 = 4; + a0 = 0; + a1 = 12; + a21 = 10; + a14 = 0; + a16 = 7; + return -1; + } else if((((a23==1)&&(!(a20==1)&&((a21==10)&&(((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a17==2)))))&&((a1==13)&&((a23==1)&&(!(a11==1)||((a16==9)&&((a28==1)&&((((a9==10)&&((a2==1)&&!(a7==1)))&&(a19==5))&&(a3==1))))))))){ + a5 = 5; + a3 = 0; + a22 = 0; + a25 = 0; + a9 = 7; + a19 = 1; + a16 = 7; + a20 = 1; + a1 = 12; + return 25; + } else if((((((a21==10)&&((((input==5)&&(a5==5))&&(a16==9))&&(a9==10)))&&!(a26==1))&&!(a7==1))&&((((a1==12)&&((a19==2)&&(!(a11==1)||((((a17==2)&&(a12==1))&&!(a20==1))&&(a12==1)))))||!(a3==1))&&(a6==1)))){ + a15 = 1; + a9 = 8; + a1 = 14; + a22 = 0; + a20 = 1; + a16 = 7; + a19 = 1; + a25 = 1; + return 21; + } else if(((((!(a0==1)&&((a12==1)&&(!(a6==1)||(((a20==1)&&(a12==1))||(a7==1)))))||(a7==1))&&(a19==5))&&((a21==11)&&(((a2==1)&&(((a9==9)&&((a1==13)&&((input==6)&&(a5==4))))&&(a17==2)))&&(a16==11))))){ + a1 = 12; + a9 = 7; + a19 = 1; + a16 = 7; + a3 = 1; + a21 = 10; + a11 = 1; + a12 = 1; + return -1; + } else if(((!(a20==1)&&(!(a0==1)&&(((((a3==1)||(a27==1))&&(a16==8))&&(a28==1))||(a27==1))))&&((a17==2)&&((a19==1)&&((a21==12)&&((a9==10)&&(((a6==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&!(a14==1)))&&(a1==12)))))))){ + if((a7==1)){ + a29 = 1; + a20 = 1; + a16 = 7; + a11 = 0; + a5 = 5; + a21 = 10; + a0 = 1; + a1 = 14; + a9 = 9; + }else{ + a20 = 1; + a28 = 0; + a5 = 6; + a7 = 1; + a16 = 7; + a15 = 0; + a21 = 10; + } + return -1; + } else if(((((!(a0==1)&&((a19==2)&&((a1==12)&&(((a16==9)&&(input==5))&&(a20==1)))))&&(a9==8))&&(a21==10))&&((((a3==1)&&(!(a11==1)||((a17==2)&&(!(a3==1)||((a3==1)&&!(a7==1))))))||!(a11==1))&&(a5==4)))){ + a11 = 1; + a7 = 0; + a19 = 1; + a16 = 11; + a28 = 1; + a1 = 13; + a9 = 9; + return 25; + } else if((((a16==10)&&((a27==1)||((((a28==1)&&(((a18==1)||(a23==1))&&(a19==3)))&&!(a20==1))||!(a6==1))))&&((a21==11)&&((!(a18==1)&&(!(a0==1)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a1==12))&&(a9==11))))&&(a17==2))))){ + if((a17==3)){ + a5 = 4; + a16 = 7; + a1 = 13; + a4 = 1; + a14 = 1; + a21 = 10; + a20 = 1; + a19 = 1; + a3 = 0; + }else{ + a1 = 13; + a19 = 1; + a5 = 6; + a14 = 1; + a9 = 7; + a22 = 1; + a16 = 7; + a20 = 1; + a21 = 10; + } + return -1; + } else if(((((a28==1)&&(((a21==11)&&((a19==5)&&((((input==5)&&(a17==2))&&(a5==4))&&(a20==1))))&&(a9==8)))&&(a23==1))&&(((a7==1)||((a24==1)||((a18==1)||((a16==7)&&((a3==1)&&(a1==12))))))||(a18==1)))){ + a9 = 10; + a5 = 6; + a27 = 0; + a24 = 0; + a16 = 8; + a8 = 0; + a1 = 14; + return 25; + } else if((((a9==11)&&((a2==1)&&((a11==1)&&((a23==1)&&!(a7==1)))))&&((a5==5)&&(((a21==12)&&(((a23==1)&&(!(a18==1)&&(((((input==3)&&(a19==4))&&(a16==9))&&(a17==2))&&(a1==14))))&&!(a14==1)))&&(a20==1))))){ + a16 = 7; + a4 = 0; + a1 = 12; + a13 = 1; + a6 = 1; + a5 = 4; + a21 = 10; + a19 = 1; + a9 = 7; + return -1; + } else if(((((a17==2)&&((a16==8)&&((a6==1)&&((input==3)&&((a5==4)||(a5==5))))))&&!(a24==1))&&((((a21==11)&&(!(a3==1)||(((a9==7)&&((((a13==1)||(a4==1))&&!(a20==1))&&(a1==14)))&&(a19==4))))||(a0==1))||(a24==1)))){ + a21 = 10; + a20 = 1; + a24 = 0; + a1 = 12; + a5 = 4; + a16 = 7; + a19 = 1; + a14 = 0; + return -1; + } else if((((a0==1)||((a6==1)&&((!(a3==1)||((((a20==1)&&((a21==12)&&(a6==1)))&&!(a14==1))&&(a1==14)))&&(a19==1))))&&((((((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a17==2))&&(a9==9))&&(a16==9))&&(a3==1))&&(a11==1)))){ + a5 = 4; + a16 = 10; + a4 = 0; + a9 = 7; + a21 = 10; + a0 = 0; + a7 = 0; + return 21; + } else if(((((((((a3==1)&&!(a20==1))&&(a19==3))&&!(a0==1))&&(a12==1))||(a26==1))&&(a3==1))&&(((a6==1)&&(((!(a26==1)&&((((a9==11)&&((a1==13)&&(a5==6)))||(((a5==4)&&(a1==14))&&(a9==7)))&&(input==6)))&&(a17==2))&&(a16==10)))&&(a21==12)))){ + a12 = 0; + a14 = 1; + a5 = 5; + a16 = 9; + a1 = 13; + a21 = 11; + a9 = 8; + a19 = 2; + a10 = 0; + a20 = 1; + return -1; + } else if((((((a16==10)&&(((a11==1)&&(((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11)))&&(input==5)))&&(a20==1)))&&(a17==2))&&!(a27==1))&&((a1==14)&&((a21==12)&&((((((a11==1)||(a24==1))&&(a2==1))||!(a23==1))||(a24==1))&&(a19==3)))))){ + a21 = 10; + a16 = 7; + a19 = 2; + a18 = 0; + a14 = 0; + a26 = 0; + a9 = 9; + a5 = 4; + a1 = 13; + return 25; + } else if(((((a11==1)&&(((((a21==12)&&(((input==5)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11))))&&(a12==1)))&&!(a26==1))&&(a17==2))&&(a16==7)))&&(a19==4))&&(!(a24==1)&&(!(a14==1)&&((a20==1)&&(((a11==1)&&(a1==12))||(a18==1))))))){ + a5 = 5; + a16 = 9; + a21 = 11; + a9 = 11; + a13 = 1; + a1 = 14; + a3 = 1; + a19 = 1; + return 23; + } else if(((((((a12==1)&&(!(a20==1)&&(((a5==6)&&(a11==1))&&(a16==8))))||(a27==1))&&(a19==4))&&(a11==1))&&((((((a12==1)&&(((input==3)&&(a17==2))&&(a1==14)))&&(a21==11))&&(a9==8))&&(a23==1))&&!(a7==1)))){ + a21 = 10; + a9 = 7; + a16 = 7; + a1 = 12; + a20 = 1; + a3 = 1; + a6 = 1; + a19 = 1; + a5 = 4; + return -1; + } else if((((a16==7)&&(((((input==1)&&(a17==2))&&(a9==11))&&!(a7==1))&&(a13==1)))&&(((a1==13)&&((a3==1)&&(((((a5==4)&&((a26==1)||((a3==1)&&(a19==2))))&&(a20==1))||(a24==1))||!(a3==1))))&&(a21==12)))){ + a0 = 0; + a9 = 7; + a14 = 0; + a19 = 1; + a1 = 12; + a21 = 10; + a26 = 0; + return -1; + } else if(((((((((a11==1)&&((a12==1)||(a4==1)))&&(a21==12))||!(a3==1))||!(a11==1))&&(a1==13))&&(a19==3))&&((a16==7)&&(((((!(a4==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5)))))&&(a20==1))&&(a9==11))&&!(a0==1))&&(a17==2))))){ + a3 = 1; + a16 = 8; + a5 = 5; + a9 = 7; + a4 = 0; + a19 = 5; + return 26; + } else if((((a19==5)&&((a16==10)&&((a21==10)&&((((((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(input==5))&&!(a7==1))&&!(a8==1)))))&&((a26==1)||((!(a20==1)&&((a12==1)&&(((a14==1)||((a1==12)&&(a11==1)))&&(a17==2))))||!(a2==1))))){ + a19 = 3; + a21 = 12; + a7 = 1; + a9 = 10; + a1 = 13; + a27 = 1; + a20 = 1; + a5 = 6; + a16 = 11; + return -1; + } else if(((!(a8==1)&&((a14==1)||((a19==4)&&((a0==1)||(((!(a8==1)&&(a28==1))||(a14==1))&&(a21==10))))))&&(((((a20==1)&&((((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10)))&&(input==4))&&(a17==2)))&&!(a26==1))&&(a1==13))&&(a16==7)))){ + if((a1==14)){ + a23 = 1; + a1 = 14; + a20 = 0; + a14 = 0; + a16 = 8; + a5 = 6; + a24 = 0; + a9 = 9; + }else{ + a21 = 11; + a19 = 5; + a5 = 4; + a9 = 9; + a28 = 1; + a1 = 12; + a7 = 0; + a2 = 1; + } + return 25; + } else if(((((a19==5)&&(!(a4==1)&&(((a16==10)&&(!(a14==1)&&((a1==13)&&((input==5)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))))))&&(a3==1))))&&(a17==2))&&((a7==1)||((a20==1)&&((a3==1)&&((!(a14==1)&&(a12==1))&&(a21==12))))))){ + a9 = 9; + a2 = 1; + a16 = 7; + a5 = 5; + a19 = 2; + a13 = 1; + a6 = 1; + a21 = 10; + return -1; + } else if((((a19==4)&&((((!(a8==1)&&(((a21==10)&&((input==3)&&(a17==2)))&&(a6==1)))&&(a9==10))&&(a1==12))&&(a23==1)))&&((a5==5)&&((((a28==1)&&(((a28==1)&&!(a24==1))||(a0==1)))&&(a20==1))&&(a16==8))))){ + a19 = 1; + a9 = 7; + a3 = 1; + a28 = 1; + a0 = 0; + a5 = 4; + a16 = 10; + return 21; + } else if(((((((a17==2)&&(!(a13==1)||((a13==1)&&(a6==1))))||!(a28==1))&&(a19==2))||(a27==1))&&((a20==1)&&(!(a0==1)&&(((!(a7==1)&&((a16==7)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==3))))&&(a21==10))&&(a1==14)))))){ + a6 = 1; + a9 = 7; + a14 = 0; + a5 = 4; + a28 = 1; + a1 = 12; + a19 = 1; + return -1; + } else if((((a19==3)&&((a9==10)&&((((((!(a2==1)&&((a0==1)&&(a11==1)))&&(a26==1))&&!(a20==1))&&(a1==12))&&!(a11==1))&&!(a12==1))))&&((a17==2)&&((((a16==7)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))&&!(a2==1))&&(a21==11))))){ + a29 = 0; + a5 = 6; + a10 = 1; + a9 = 11; + a21 = 10; + a20 = 1; + a19 = 1; + return -1; + } else if((((a9==10)&&(!(a20==1)&&((((a13==1)&&((a1==12)&&((((input==6)&&(a17==2))&&(a12==1))&&(a19==1))))&&(a28==1))&&(a3==1))))&&((a4==1)||(((((a2==1)&&(a6==1))&&(a21==10))&&(a16==11))&&(a5==6))))){ + a16 = 10; + a14 = 1; + a8 = 1; + a5 = 4; + a9 = 11; + a21 = 12; + a4 = 1; + return 25; + } else if((((!(a20==1)&&((((((!(a27==1)&&((input==5)&&(a9==11)))&&!(a0==1))&&(a23==1))&&!(a4==1))&&(a16==8))&&(a5==6)))&&(a1==12))&&(!(a11==1)||((a17==2)&&((((a13==1)&&!(a26==1))&&(a19==5))&&(a21==10)))))){ + a1 = 14; + a9 = 10; + a21 = 12; + a11 = 1; + a16 = 9; + a8 = 0; + a20 = 1; + a19 = 2; + a13 = 1; + return 26; + } else if(((!(a6==1)||((a2==1)&&((((a17==2)&&(!(a20==1)&&((a8==1)||((a16==7)&&(a3==1)))))||(a7==1))&&!(a26==1))))&&(((input==3)&&(((a21==11)&&(((a9==7)&&((a1==12)&&(a5==4)))&&(a19==1)))||((((a19==5)&&(((a5==5)&&(a1==14))&&(a9==11)))&&(a21==10))||(((a19==5)&&(((a1==14)&&(a5==6))&&(a9==11)))&&(a21==10)))))&&!(a24==1)))){ + a20 = 1; + a6 = 1; + a5 = 4; + a27 = 0; + a3 = 1; + a21 = 10; + a9 = 7; + a1 = 12; + a19 = 1; + return -1; + } else if((((!(a20==1)&&(((a17==2)&&(((a3==1)&&((a9==9)&&(((a13==1)&&!(a7==1))&&(a1==12))))&&(a21==11)))&&(a19==2)))&&(a28==1))&&((a2==1)&&(((a16==10)&&((a2==1)&&((input==1)&&((a5==5)||(a5==6)))))&&!(a24==1))))){ + a8 = 1; + a16 = 9; + a22 = 0; + a27 = 1; + a9 = 10; + a5 = 6; + a19 = 1; + a1 = 13; + return 21; + } else if((((((((a27==1)&&(a2==1))&&(a9==9))&&(a14==1))&&(a17==2))&&(a1==12))&&((a21==12)&&((((a19==4)&&((((a14==1)&&(((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&(a26==1)))&&!(a6==1))&&(a24==1)))&&(a16==10))&&(a20==1))))){ + a22 = 1; + a9 = 10; + a21 = 10; + a16 = 7; + a5 = 6; + a29 = 0; + a19 = 1; + return 22; + } else if(((!(a8==1)&&(((((a16==8)&&(input==3))&&(a17==2))&&(a9==8))&&(a1==14)))&&(((a4==1)||((((!(a18==1)&&(!(a28==1)||(((a19==1)&&(a6==1))&&(a5==5))))||!(a23==1))&&(a21==12))&&(a20==1)))||!(a13==1)))){ + a1 = 12; + a0 = 0; + a7 = 0; + a5 = 4; + a16 = 7; + a21 = 10; + a9 = 7; + a3 = 1; + return -1; + } else if((((a19==3)&&(((a9==10)&&((((input==5)&&(a5==5))&&(a17==2))&&(a1==12)))&&(a21==12)))&&(!(a27==1)&&(((a16==10)&&(((a23==1)&&((a11==1)&&((a20==1)&&((a12==1)||(a14==1)))))||(a24==1)))&&!(a7==1))))){ + a7 = 0; + a16 = 7; + a2 = 1; + a5 = 4; + a9 = 7; + a21 = 10; + a19 = 1; + a28 = 1; + return -1; + } else if(((!(a26==1)&&(((((input==1)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(a17==2))&&(a16==8))&&(a21==11)))&&((a0==1)||((((a4==1)||((!(a8==1)&&(((a19==4)&&(a28==1))||!(a6==1)))&&(a1==13)))&&!(a20==1))||(a18==1))))){ + a2 = 1; + a5 = 6; + a0 = 0; + a16 = 10; + a9 = 7; + a20 = 1; + a19 = 5; + a1 = 14; + a4 = 0; + return 21; + } else if(((((((a6==1)&&((a6==1)&&(a1==13)))&&(a16==8))&&(a17==2))&&(a19==3))&&(((((!(a0==1)&&(!(a26==1)&&(((((a5==5)||(a5==6))&&(input==6))&&!(a4==1))&&!(a0==1))))&&!(a20==1))&&!(a24==1))&&(a9==7))&&(a21==10)))){ + a19 = 4; + a26 = 0; + a7 = 0; + a5 = 4; + a11 = 1; + a20 = 1; + a21 = 12; + a1 = 14; + return 26; + } else if(((((((a19==3)&&((a2==1)&&(a21==12)))&&!(a26==1))&&!(a0==1))||!(a13==1))&&(((((a17==2)&&((((((input==1)&&(a5==4))&&(a1==13))&&(a9==7))&&(a16==10))&&(a20==1)))&&(a6==1))&&!(a7==1))&&!(a26==1)))){ + a1 = 12; + a28 = 1; + a16 = 7; + a21 = 10; + a0 = 0; + a19 = 1; + a4 = 0; + return -1; + } else if((((((a12==1)&&((!(a12==1)||(((a1==12)&&(a11==1))&&!(a4==1)))&&(a19==4)))&&(a13==1))&&(a21==11))&&((((((a17==2)&&((input==5)&&(((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6))))))&&!(a20==1))&&(a16==7))&&!(a4==1))&&!(a7==1)))){ + a1 = 13; + a3 = 1; + a5 = 5; + a21 = 10; + a11 = 1; + a20 = 1; + a9 = 10; + a19 = 2; + return 21; + } else if(((((((a20==1)&&((a17==2)&&((a28==1)&&!(a2==1))))&&!(a12==1))&&!(a3==1))&&!(a6==1))&&(!(a23==1)&&((a1==14)&&(((((a19==2)&&((a21==12)&&((input==1)&&(a16==7))))&&(a5==5))&&(a9==10))&&!(a23==1)))))){ + a9 = 11; + a12 = 0; + a5 = 4; + a1 = 13; + a10 = 1; + return -1; + } else if((((a11==1)&&((((a0==1)||(!(a8==1)&&((a11==1)&&(a9==8))))&&(a19==3))||!(a12==1)))&&((a1==13)&&(!(a20==1)&&(((a17==2)&&((a3==1)&&(!(a7==1)&&(((input==4)&&(a5==4))&&(a16==9)))))&&(a21==11)))))){ + a9 = 9; + a16 = 7; + a29 = 0; + a1 = 12; + a21 = 10; + a15 = 0; + a19 = 4; + a5 = 6; + return 21; + } else if((((((a14==1)||((a16==7)&&(a28==1)))||!(a2==1))||!(a28==1))&&((a17==2)&&(!(a20==1)&&(!(a8==1)&&((((input==4)&&(((((((a5==5)&&(a1==14))&&(a9==11))&&(a19==5))&&(a21==10))||((((a9==11)&&((a1==14)&&(a5==6)))&&(a19==5))&&(a21==10)))||((a21==11)&&((((a5==4)&&(a1==12))&&(a9==7))&&(a19==1)))))&&(a12==1))&&!(a26==1))))))){ + a9 = 7; + a6 = 1; + a5 = 4; + a1 = 12; + a14 = 0; + a21 = 10; + a19 = 1; + a20 = 1; + a11 = 1; + return -1; + } else if((((((a16==9)&&((a17==2)&&(((a1==12)&&(a23==1))||(a8==1))))||(a0==1))&&!(a26==1))&&((a3==1)&&(!(a24==1)&&((a21==10)&&(((((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==3))&&!(a14==1))&&(a20==1))&&(a19==1))))))){ + a9 = 10; + a19 = 2; + a5 = 5; + a18 = 0; + a23 = 1; + a1 = 14; + a6 = 1; + return 21; + } else if(((((a0==1)||((a23==1)&&((((a16==11)&&((a23==1)&&((a28==1)&&(a19==3))))&&(a3==1))&&(a21==10))))&&(a17==2))&&((a9==8)&&((a20==1)&&((!(a27==1)&&((a1==12)&&(((a5==5)||(a5==6))&&(input==4))))&&!(a24==1)))))){ + a9 = 7; + a5 = 4; + a19 = 1; + a12 = 1; + a0 = 0; + a23 = 1; + a16 = 7; + return -1; + } else if((((a13==1)&&((a21==12)&&((a17==2)&&((((a20==1)&&(input==6))&&(a5==6))&&(a1==12)))))&&(!(a6==1)||(!(a8==1)&&(((a26==1)||(!(a11==1)||((a9==8)&&(!(a7==1)&&((a19==5)&&(a2==1))))))&&(a16==8)))))){ + a28 = 1; + a16 = 7; + a21 = 10; + a5 = 4; + a9 = 9; + a6 = 1; + a1 = 13; + a12 = 1; + a19 = 2; + return 25; + } else if((((((a9==7)&&(((a17==2)&&((((input==5)&&((a5==5)||(a5==6)))&&(a19==2))&&!(a14==1)))&&(a16==11)))&&(a23==1))&&(a13==1))&&(((!(a13==1)||(((a1==13)&&((a12==1)||(a7==1)))&&!(a8==1)))&&(a21==11))&&(a20==1)))){ + a5 = 5; + a21 = 10; + a16 = 9; + a19 = 3; + a2 = 1; + a9 = 10; + a3 = 1; + return 26; + } else if((((!(a18==1)&&(((a3==1)&&((a19==3)&&((((a5==5)||(a5==6))&&(input==6))&&!(a14==1))))&&!(a24==1)))&&(a1==12))&&(((((a17==2)&&((a21==12)&&(((a12==1)||(a4==1))||!(a3==1))))&&!(a20==1))&&(a16==10))&&(a9==11)))){ + a8 = 1; + a20 = 1; + a9 = 7; + a16 = 11; + a15 = 0; + a21 = 11; + a1 = 14; + a19 = 1; + a5 = 6; + a25 = 1; + return -1; + } else if(((!(a20==1)&&((a21==11)&&(((a9==9)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))&&(a1==14))))&&(((a16==7)&&(((!(a4==1)&&((((a17==2)&&((a28==1)||!(a11==1)))&&(a23==1))&&(a12==1)))&&!(a14==1))||!(a13==1)))&&(a19==2)))){ + a19 = 1; + a11 = 1; + a13 = 1; + a21 = 10; + a1 = 12; + a5 = 4; + a7 = 0; + a9 = 7; + a20 = 1; + return -1; + } else if((((a20==1)&&(((a17==2)&&(!(a11==1)&&(!(a11==1)&&((!(a23==1)&&((a9==9)&&((a19==3)&&(input==4))))&&(a1==13)))))&&(a16==11)))&&(((a24==1)&&((((a6==1)&&!(a23==1))&&(a24==1))&&(a21==10)))&&(a5==6)))){ + a0 = 1; + a8 = 1; + a9 = 11; + a16 = 7; + a25 = 1; + a19 = 2; + a1 = 12; + return -1; + } else if((((a5==4)&&((a13==1)&&(((a21==10)&&(((a3==1)&&((a1==12)&&(!(a24==1)&&((((a17==2)&&(input==1))&&(a20==1))&&(a6==1)))))&&!(a24==1)))&&(a9==7))))&&(((!(a2==1)||(a2==1))&&(a19==2))&&(a16==11)))){ + a13 = 1; + a9 = 10; + a12 = 1; + a5 = 5; + a16 = 9; + a27 = 0; + a19 = 4; + a21 = 11; + a1 = 14; + return 21; + } else if(((!(a4==1)&&((((!(a0==1)&&((a16==9)&&(!(a7==1)&&((a17==2)&&((a6==1)&&(((a5==5)||(a5==6))&&(input==5)))))))&&(a1==13))&&!(a7==1))&&(a13==1)))&&((((a19==5)&&((a9==9)&&(a11==1)))&&(a21==10))&&(a20==1)))){ + a16 = 7; + a9 = 7; + a19 = 1; + a8 = 0; + a1 = 12; + a5 = 4; + a3 = 1; + a24 = 0; + return -1; + } else if((((((a21==12)&&(!(a27==1)&&((a6==1)&&(a3==1))))&&(a23==1))&&(a17==2))&&(((((a11==1)&&((!(a20==1)&&((a19==3)&&((a9==9)&&(((a5==4)||(a5==5))&&(input==1)))))&&(a16==8)))&&!(a7==1))&&(a28==1))&&(a1==12)))){ + a27 = 1; + a9 = 8; + a21 = 10; + a20 = 1; + a19 = 1; + a22 = 0; + a5 = 5; + a10 = 1; + return 25; + } else if((((a26==1)||(!(a26==1)&&(((a19==1)&&((a6==1)&&(a16==10)))||!(a13==1))))&&(!(a14==1)&&((((((a1==13)&&(!(a18==1)&&((a20==1)&&((a17==2)&&(input==5)))))&&(a21==12))&&(a9==10))&&(a5==4))&&(a13==1))))){ + a6 = 1; + a5 = 5; + a21 = 10; + a0 = 0; + a9 = 9; + a19 = 2; + a16 = 7; + a4 = 0; + return 25; + } else if((((a13==1)&&(!(a12==1)||((!(a2==1)||(((a16==8)&&((a9==10)&&(a2==1)))&&(a19==3)))||(a26==1))))&&((((a28==1)&&(((((a21==10)&&(input==1))&&(a17==2))&&!(a20==1))&&(a1==13)))&&(a5==4))&&!(a18==1)))){ + a24 = 0; + a27 = 0; + a2 = 1; + a5 = 5; + a19 = 2; + a21 = 12; + a16 = 10; + a20 = 1; + a9 = 8; + return 21; + } else if(((!(a20==1)&&((a21==10)&&((((a1==13)&&(((a17==2)&&(input==1))&&!(a24==1)))&&(a28==1))&&(a16==7))))&&((a9==10)&&(((((a8==1)||((!(a7==1)&&(a28==1))||!(a28==1)))||!(a6==1))&&(a19==4))&&(a5==6))))){ + a23 = 1; + a5 = 5; + a24 = 0; + a3 = 1; + a1 = 14; + return 25; + } else if((((a2==1)&&((a19==4)&&(((((a17==2)&&((input==3)&&((a5==4)||(a5==5))))&&(a16==10))&&!(a20==1))&&!(a14==1))))&&(((a9==7)&&(((a1==14)&&((!(a6==1)||((a3==1)&&(a21==10)))&&(a12==1)))&&!(a26==1)))||!(a11==1)))){ + a24 = 1; + a12 = 0; + a19 = 1; + a15 = 0; + a1 = 12; + a16 = 7; + a5 = 4; + a20 = 1; + a9 = 10; + return -1; + } else if(((((!(a14==1)&&(((((a9==11)&&((a5==6)&&(a1==12)))||(((a1==13)&&(a5==4))&&(a9==7)))&&(input==1))&&(a17==2)))&&(a20==1))&&(a6==1))&&((a21==10)&&(((a2==1)&&((!(a6==1)||((a19==4)&&((a2==1)&&(a3==1))))&&(a16==10)))&&!(a0==1))))){ + a4 = 0; + a1 = 14; + a9 = 7; + a19 = 1; + a12 = 1; + a5 = 4; + a11 = 1; + return 21; + } else if(((((a19==4)&&((a20==1)&&((!(a3==1)||((((((a6==1)&&(a23==1))&&(a28==1))&&!(a14==1))||(a18==1))&&(a17==2)))&&(a23==1))))&&(a9==9))&&(((((a16==8)&&(input==4))&&(a1==14))&&(a21==10))&&(a5==6)))){ + a9 = 7; + a2 = 1; + a26 = 0; + a5 = 4; + a19 = 1; + a1 = 12; + a16 = 7; + return -1; + } else if((((((a16==9)&&((a1==13)&&((a17==2)&&((a19==3)&&(input==1)))))&&(a2==1))&&(a9==9))&&((a21==10)&&(!(a20==1)&&((((a28==1)&&((a28==1)&&(((a23==1)&&!(a4==1))||(a14==1))))&&!(a27==1))&&(a5==5)))))){ + if((a2==1)){ + a27 = 1; + a21 = 12; + a9 = 10; + a5 = 6; + a22 = 1; + a24 = 1; + }else{ + a20 = 1; + a19 = 1; + a16 = 7; + a9 = 7; + a8 = 1; + a13 = 0; + a10 = 0; + } + return 21; + } else if((((a9==8)&&((a28==1)&&(((a28==1)&&((a1==12)&&(((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a4==1))))&&!(a14==1))))&&(((a21==11)&&((a12==1)&&((((a19==3)&&((a16==7)&&(a3==1)))&&!(a20==1))||(a14==1))))&&(a17==2)))){ + a27 = 0; + a14 = 0; + a20 = 1; + a9 = 7; + a7 = 0; + a21 = 10; + a19 = 1; + a5 = 4; + return -1; + } else if(((((((input==6)&&((a5==4)||(a5==5)))&&!(a20==1))&&!(a0==1))&&(a1==13))&&(!(a6==1)||(((a21==10)&&(!(a6==1)||(((a9==9)&&((a18==1)||(((a17==2)&&((a19==3)&&(a2==1)))||!(a11==1))))||!(a11==1))))&&(a16==7))))){ + a3 = 1; + a5 = 4; + a20 = 1; + a4 = 0; + a9 = 7; + a7 = 0; + a1 = 12; + a19 = 1; + return -1; + } else if((((((a21==10)&&(a3==1))&&(a23==1))&&(a19==1))&&(!(a27==1)&&((a28==1)&&((((a20==1)&&((a11==1)&&((a13==1)&&((a16==8)&&((input==5)&&((((a1==13)&&(a5==5))&&(a9==7))||((((a1==12)&&(a5==6))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==13))))))))))&&(a17==2))&&!(a24==1)))))){ + a19 = 2; + a1 = 12; + a9 = 10; + a26 = 0; + a16 = 9; + a21 = 12; + a2 = 1; + a14 = 0; + a5 = 6; + return 21; + } else if(((((a21==12)&&(((((a5==6)&&((a1==12)&&(!(a7==1)&&(((a17==2)&&(input==1))&&(a16==8)))))&&(a9==9))&&!(a7==1))&&(a11==1)))&&(a2==1))&&((a20==1)&&((a8==1)||(!(a0==1)&&((a3==1)&&(a19==2))))))){ + a1 = 14; + a16 = 10; + a19 = 5; + a21 = 11; + a14 = 0; + a4 = 0; + a23 = 1; + a5 = 5; + a9 = 11; + return 23; + } else if(((((((a20==1)&&(a12==1))&&!(a14==1))&&(a19==2))&&!(a18==1))&&((a28==1)&&((a28==1)&&(((a12==1)&&(((a16==7)&&((a21==11)&&(((input==6)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(a1==14))))&&(a17==2)))&&!(a18==1)))))){ + a21 = 10; + a23 = 1; + a26 = 0; + a16 = 8; + a8 = 0; + a19 = 4; + a5 = 5; + a9 = 8; + a1 = 12; + return 26; + } else if(((!(a8==1)&&((a19==5)&&((a21==10)&&(!(a24==1)&&((a17==2)&&(!(a7==1)&&(((input==3)&&(a16==9))&&(a9==10))))))))&&(((((a1==12)&&(((a28==1)||(a8==1))&&!(a20==1)))&&(a5==6))&&!(a24==1))||(a0==1)))){ + a8 = 1; + a9 = 7; + a16 = 7; + a6 = 0; + a19 = 1; + a20 = 1; + a5 = 5; + a27 = 1; + return 23; + } else if((((!(a27==1)&&((((a21==10)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==6)))&&!(a24==1))&&(a6==1)))&&(a6==1))&&((a7==1)||((a23==1)&&(((a19==1)&&((((a3==1)&&(a17==2))&&(a1==12))&&!(a20==1)))&&(a16==10)))))){ + a12 = 0; + a15 = 1; + a5 = 6; + a13 = 0; + a20 = 1; + a16 = 7; + a9 = 8; + return 23; + } else if(((!(a14==1)&&(((a23==1)&&(a16==8))&&(a1==13)))&&((!(a24==1)&&((!(a4==1)&&((a28==1)&&((a17==2)&&(((!(a20==1)&&(((a5==5)&&(input==6))&&(a21==12)))&&(a9==8))&&(a19==4)))))&&(a12==1)))&&!(a8==1)))){ + a20 = 1; + a19 = 1; + a9 = 11; + a5 = 6; + a21 = 10; + a25 = 1; + a27 = 1; + a11 = 0; + a16 = 7; + return -1; + } else if((((a2==1)&&((a16==8)&&((((a19==3)&&((a21==12)&&((!(a24==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3)))&&!(a27==1))))&&!(a20==1))&&(a17==2))))&&((a9==7)&&(((a1==14)&&(!(a11==1)||((a28==1)&&(a3==1))))&&(a23==1))))){ + a22 = 0; + a16 = 7; + a20 = 1; + a9 = 11; + a1 = 12; + a21 = 10; + a19 = 1; + a5 = 6; + a2 = 0; + a4 = 1; + return 25; + } else if((((!(a2==1)||((a18==1)||((a24==1)||((((a9==8)&&(a13==1))&&(a17==2))&&!(a20==1)))))&&!(a7==1))&&(!(a18==1)&&((((a16==7)&&(!(a24==1)&&(((input==5)&&((a5==5)||(a5==6)))&&(a19==4))))&&(a21==10))&&(a1==14))))){ + a6 = 1; + a4 = 0; + a9 = 7; + a5 = 4; + return 21; + } else if(((((a19==5)&&((a21==12)&&(((!(a8==1)&&((a16==9)&&(((a9==10)&&(input==1))&&!(a24==1))))&&!(a14==1))&&!(a26==1))))&&(a1==13))&&(((a17==2)&&(((a8==1)||((a2==1)&&!(a20==1)))||!(a6==1)))&&(a5==5)))){ + a25 = 1; + a1 = 12; + a8 = 1; + a9 = 8; + a16 = 10; + return -1; + } else if((((a20==1)&&(!(a27==1)&&((a17==2)&&((a19==5)&&((a1==14)&&((a12==1)&&(((input==6)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8))))&&!(a27==1))))))))&&((!(a2==1)||((!(a13==1)||((a16==8)&&(a13==1)))&&(a21==11)))||(a18==1)))){ + a1 = 12; + a5 = 4; + a21 = 10; + a6 = 1; + a16 = 7; + a13 = 1; + a9 = 7; + a19 = 1; + a18 = 0; + return -1; + } else if((((a17==2)&&((a1==12)&&(((a9==9)&&(((a12==1)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))&&(a6==1)))&&(a20==1))))&&((a21==11)&&((((a7==1)||((!(a11==1)||((a12==1)&&!(a14==1)))||(a18==1)))&&(a16==8))&&(a19==1))))){ + a14 = 0; + a16 = 7; + a9 = 7; + a26 = 0; + a5 = 4; + a12 = 1; + a21 = 10; + return -1; + } else if(((((!(a8==1)&&((a21==12)&&(!(a8==1)&&(((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==5))&&(a16==8)))))&&(a1==14))&&(a17==2))&&(!(a0==1)&&(!(a8==1)&&((!(a20==1)&&(((a23==1)&&(a2==1))&&(a19==3)))||(a24==1)))))){ + if((a29==1)){ + a16 = 9; + a22 = 1; + a21 = 10; + a11 = 0; + a5 = 6; + a9 = 7; + a4 = 1; + a20 = 1; + a1 = 12; + }else{ + a21 = 11; + a9 = 10; + a8 = 1; + a6 = 0; + a19 = 5; + a5 = 6; + a16 = 7; + a18 = 1; + } + return 21; + } else if(((((((a16==9)&&(((a19==3)&&((a2==1)&&(a17==2)))&&(a21==11)))||!(a3==1))||(a0==1))||(a4==1))&&(!(a14==1)&&(((((input==4)&&((((a5==6)&&(a1==12))&&(a9==11))||(((a1==13)&&(a5==4))&&(a9==7))))&&!(a24==1))&&!(a20==1))&&(a2==1))))){ + a12 = 0; + a5 = 6; + a9 = 7; + a1 = 12; + a16 = 7; + a10 = 0; + a19 = 2; + a22 = 0; + a21 = 10; + a20 = 1; + return 25; + } else if((((a9==7)&&(((a5==4)&&(((a3==1)&&((a19==3)&&((((((a1==14)&&((input==6)&&(a20==1)))&&(a23==1))&&(a12==1))&&(a16==10))&&!(a4==1))))&&(a12==1)))&&(a17==2)))&&(((a21==10)&&(a12==1))&&(a23==1)))){ + a9 = 9; + a7 = 0; + a16 = 8; + a28 = 1; + a1 = 13; + a19 = 5; + return 22; + } else if(((((a21==10)&&((a3==1)&&((a28==1)&&(((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a20==1)))))&&(a17==2))&&((((a1==14)&&(((a8==1)||(((a12==1)&&((a9==9)&&(a28==1)))||!(a3==1)))&&(a12==1)))&&(a16==8))&&(a19==1)))){ + a5 = 6; + a9 = 10; + a20 = 1; + a23 = 1; + a21 = 11; + a1 = 12; + a19 = 4; + a16 = 9; + a2 = 1; + a24 = 0; + return 23; + } else if(((((a16==10)&&(((a17==2)&&(!(a18==1)&&((a21==11)&&(!(a14==1)&&(((a1==14)&&((input==3)&&!(a20==1)))&&!(a7==1))))))&&(a9==10)))&&(a19==2))&&(!(a24==1)&&(((a5==6)&&(!(a4==1)&&(a23==1)))||!(a13==1))))){ + if((a13==1)){ + a16 = 9; + a25 = 1; + a8 = 1; + a9 = 11; + a3 = 0; + a1 = 13; + }else{ + a16 = 7; + a21 = 10; + a20 = 1; + a12 = 0; + a9 = 9; + a19 = 1; + a4 = 1; + a24 = 1; + } + return 21; + } else if(((((a19==4)&&(!(a28==1)&&((((((a16==7)&&((a7==1)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==4))))&&(a21==12))&&(a17==2))&&(a1==13))&&!(a2==1))))&&!(a20==1))&&(!(a28==1)&&(!(a12==1)&&((a28==1)&&(a24==1)))))){ + a2 = 0; + a20 = 1; + a4 = 1; + a19 = 1; + a5 = 5; + a12 = 0; + a1 = 14; + a9 = 9; + a21 = 10; + return -1; + } else if(((((((!(a20==1)&&((a2==1)&&(a3==1)))&&(a19==2))&&(a17==2))||!(a23==1))&&(a13==1))&&(!(a7==1)&&(((a9==8)&&(!(a8==1)&&((a16==8)&&(((a23==1)&&(((a5==4)||(a5==5))&&(input==4)))&&(a21==11)))))&&(a1==13))))){ + a11 = 1; + a16 = 7; + a21 = 10; + a5 = 4; + a2 = 1; + a13 = 1; + a19 = 1; + a9 = 7; + a1 = 12; + a20 = 1; + return -1; + } else if((((a19==2)&&(!(a7==1)&&(!(a18==1)&&((a1==14)&&(((a3==1)&&(((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4)))&&(input==5)))&&(a12==1))))))&&(!(a11==1)||(((a21==11)&&((a17==2)&&(!(a20==1)&&((a16==8)&&(a28==1)))))||(a0==1))))){ + a13 = 1; + a20 = 1; + a16 = 9; + a1 = 12; + a19 = 4; + a6 = 1; + a9 = 7; + a23 = 1; + a5 = 5; + return 21; + } else if(((((a9==11)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&!(a18==1))&&(a20==1)))&&(a21==12))&&((a17==2)&&((a1==12)&&(!(a11==1)||((((((a3==1)&&((a16==10)&&(a12==1)))||(a8==1))||!(a6==1))&&(a11==1))&&(a19==2))))))){ + if((a15==1)){ + a26 = 0; + a16 = 8; + a19 = 3; + a11 = 1; + a9 = 7; + a21 = 10; + a5 = 4; + a20 = 0; + a1 = 13; + }else{ + a14 = 0; + a1 = 14; + a3 = 1; + a9 = 7; + a16 = 7; + a5 = 4; + a19 = 4; + a21 = 10; + a23 = 1; + } + return 25; + } else if(((((a16==7)&&((a2==1)&&(((a12==1)&&(((input==3)&&((a5==5)||(a5==6)))&&(a21==11)))&&(a17==2))))&&!(a0==1))&&(!(a27==1)&&(!(a20==1)&&((a19==2)&&((a1==13)&&((a12==1)&&(((a6==1)&&!(a18==1))&&(a9==7))))))))){ + a27 = 0; + a20 = 1; + a28 = 1; + a14 = 0; + a1 = 12; + a21 = 10; + a5 = 4; + a19 = 1; + return -1; + } else if((((a19==3)&&((!(a26==1)&&(((((a17==2)&&((a6==1)&&((a5==6)&&((a1==14)&&((a16==9)&&(input==6))))))&&!(a8==1))&&(a21==11))&&!(a8==1)))&&(a23==1)))&&(((a9==7)&&(!(a27==1)&&(a28==1)))&&(a20==1)))){ + a19 = 1; + a21 = 10; + a5 = 4; + a24 = 0; + a16 = 7; + a28 = 1; + a18 = 0; + a1 = 12; + return -1; + } else if((((a23==1)&&(((((a16==11)&&(((a17==2)&&((input==1)&&(a20==1)))&&(a19==3)))&&(a28==1))&&(a21==12))&&(a9==10)))&&((((((!(a23==1)||(a3==1))&&(a1==13))&&(a5==6))||!(a23==1))&&!(a0==1))||(a4==1)))){ + a16 = 10; + a19 = 4; + a24 = 0; + a21 = 10; + a8 = 0; + a12 = 1; + a1 = 14; + return 25; + } else if((((a26==1)&&((a1==12)&&(((!(a2==1)&&((a19==3)&&(a23==1)))&&(a9==11))&&(a21==10))))&&(((!(a11==1)&&(((a20==1)&&((((input==3)&&((a5==4)||(a5==5)))&&(a16==9))&&(a17==2)))&&!(a12==1)))&&(a7==1))&&!(a11==1)))){ + a2 = 0; + a19 = 2; + a26 = 1; + a16 = 7; + a29 = 0; + a5 = 4; + return -1; + } else if((((((a17==2)&&(((input==4)&&(a9==8))&&(a19==3)))&&!(a14==1))&&(a16==9))&&((a0==1)||((!(a6==1)||(((a5==6)&&((a0==1)||(((!(a6==1)||(a11==1))&&(a20==1))&&(a21==10))))&&(a1==13)))&&(a3==1))))){ + a19 = 1; + a4 = 0; + a16 = 7; + a11 = 1; + a5 = 4; + a9 = 7; + a1 = 12; + a27 = 0; + return -1; + } else if(((!(a18==1)&&((((a20==1)&&(!(a4==1)&&((input==6)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5))))))&&(a21==10))&&(a28==1)))&&((a26==1)||(!(a4==1)&&((a19==2)&&(!(a28==1)||((a16==9)&&((a17==2)&&((a13==1)&&(a1==13)))))))))){ + a19 = 4; + a5 = 6; + a9 = 8; + a21 = 11; + a11 = 1; + a16 = 10; + a1 = 12; + a18 = 0; + a28 = 1; + return 21; + } else if((((((a11==1)&&(((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==5))&&(a19==4)))&&!(a14==1))&&(a23==1))&&((a3==1)&&(((a13==1)&&((((((a23==1)&&(a21==11))&&(a1==14))||(a27==1))&&(a20==1))&&(a16==11)))&&(a17==2))))){ + if((a11==1)){ + a9 = 7; + a20 = 0; + a8 = 0; + a21 = 12; + a1 = 12; + a16 = 7; + a5 = 5; + a14 = 0; + }else{ + a1 = 12; + a9 = 7; + a20 = 0; + a21 = 10; + a11 = 1; + a5 = 4; + a7 = 0; + a16 = 8; + a26 = 0; + } + return 25; + } else if((((a20==1)&&((!(a0==1)&&((((input==1)&&(((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))))&&(a28==1))&&(a19==2)))&&(a3==1)))&&(((((((a0==1)||((a11==1)&&(a21==12)))||(a24==1))&&(a17==2))||(a26==1))&&(a1==13))&&(a16==8)))){ + a19 = 1; + a16 = 10; + a1 = 12; + a5 = 6; + a4 = 0; + a9 = 9; + a13 = 1; + a3 = 1; + return 25; + } else if((((((((a28==1)&&(a9==10))&&!(a26==1))&&!(a4==1))&&!(a26==1))&&(a20==1))&&((a21==12)&&((a11==1)&&((a17==2)&&((a19==2)&&(((a23==1)&&((a1==12)&&((a16==9)&&(((a5==4)||(a5==5))&&(input==6)))))&&!(a0==1)))))))){ + a9 = 8; + a3 = 1; + a1 = 14; + a16 = 8; + a5 = 6; + a0 = 0; + a2 = 1; + a19 = 4; + return 25; + } else if((((!(a0==1)&&((a16==8)&&((!(a4==1)&&((((a5==5)||(a5==6))&&(input==6))&&!(a14==1)))&&!(a24==1))))&&(a9==9))&&((a7==1)||((!(a4==1)&&(((a17==2)&&(!(a20==1)&&((a6==1)&&(a21==12))))&&(a1==14)))&&(a19==2))))){ + a21 = 10; + a10 = 1; + a9 = 11; + a1 = 12; + a16 = 7; + a20 = 1; + a5 = 6; + a25 = 0; + a6 = 0; + return -1; + } else if((((a17==2)&&(((!(a0==1)&&((((a28==1)||(a24==1))&&(a6==1))||!(a28==1)))&&(a3==1))&&(a20==1)))&&((a16==11)&&((a9==9)&&((a1==13)&&((((a3==1)&&(((a5==5)||(a5==6))&&(input==5)))&&(a21==12))&&(a19==3))))))){ + a9 = 7; + a19 = 1; + a4 = 0; + a24 = 0; + a5 = 4; + a11 = 1; + a1 = 12; + a16 = 7; + a21 = 10; + return -1; + } else if((((a11==1)&&(!(a8==1)&&(!(a18==1)&&((!(a20==1)&&(((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==1))&&(a19==5)))&&(a21==11)))))&&(((((a16==8)&&(((a17==2)&&(a6==1))||!(a28==1)))&&(a1==12))&&!(a0==1))&&(a12==1)))){ + a23 = 1; + a9 = 7; + a13 = 1; + a7 = 0; + a5 = 4; + a16 = 7; + a19 = 1; + a21 = 10; + a20 = 1; + return -1; + } else if((((((a28==1)&&((((a23==1)&&(!(a18==1)&&((a5==4)&&(input==5))))&&(a1==14))&&!(a20==1)))&&(a9==9))&&(a19==3))&&(((((!(a27==1)&&((a24==1)||(a28==1)))&&(a17==2))&&(a21==11))&&(a23==1))&&(a16==8)))){ + a16 = 9; + a3 = 1; + a20 = 1; + a8 = 0; + a21 = 12; + a1 = 12; + a2 = 1; + return 21; + } return calculate_output13(input); + } + + int calculate_output13(int input) { + if((((((((((a17==2)&&((a9==7)&&((a19==2)&&(a3==1))))&&(a20==1))&&(a21==10))&&!(a24==1))||(a18==1))&&!(a18==1))||(a4==1))&&((a12==1)&&((a13==1)&&(((((a5==5)||(a5==6))&&(input==3))&&(a1==13))&&(a16==8)))))){ + a24 = 0; + a1 = 12; + a16 = 7; + a28 = 1; + a11 = 1; + a19 = 1; + a5 = 4; + return -1; + } else if((((((a5==6)&&((a17==2)&&((a28==1)&&!(a7==1))))&&(a12==1))&&!(a26==1))&&((a19==3)&&((a9==10)&&(!(a8==1)&&((a21==11)&&((((a20==1)&&((a16==9)&&((a1==14)&&(input==1))))&&!(a8==1))&&!(a18==1)))))))){ + a1 = 12; + a19 = 4; + a5 = 5; + a9 = 8; + a21 = 10; + a23 = 1; + a24 = 0; + a16 = 11; + return 21; + } else if((((a19==3)&&(!(a0==1)&&(((input==3)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(a3==1))))&&((a1==12)&&(((((((((a17==2)&&(a12==1))&&!(a20==1))&&(a12==1))&&(a21==11))||!(a12==1))||(a18==1))&&(a16==10))&&(a12==1))))){ + a15 = 0; + a11 = 0; + a1 = 13; + a16 = 7; + a5 = 4; + a20 = 1; + a19 = 1; + a21 = 10; + a9 = 11; + return 22; + } else if(((((((a23==1)||(a0==1))&&(a21==10))&&!(a20==1))&&(a28==1))&&((!(a18==1)&&((((((a2==1)&&(((a17==2)&&((input==6)&&(a9==9)))&&(a16==9)))&&(a5==6))&&(a6==1))&&(a1==12))&&(a23==1)))&&(a19==5)))){ + if((a23==1)){ + a22 = 1; + a9 = 10; + a1 = 14; + a15 = 1; + a2 = 0; + a5 = 4; + a19 = 1; + a20 = 1; + a16 = 7; + }else{ + a20 = 1; + a29 = 0; + a16 = 8; + a15 = 0; + a19 = 1; + a1 = 13; + a23 = 0; + } + return -1; + } else if((((((a9==11)&&((((a17==2)&&((a19==1)&&((input==1)&&((a5==4)||(a5==5)))))&&(a20==1))&&!(a26==1)))&&!(a8==1))&&(a6==1))&&(!(a14==1)&&(!(a8==1)&&((((!(a13==1)||(a6==1))&&(a1==14))&&(a16==10))&&(a21==11)))))){ + a19 = 5; + a9 = 7; + a16 = 8; + a1 = 12; + a2 = 1; + a5 = 5; + a11 = 1; + a3 = 1; + a21 = 12; + return 26; + } else if((((((a6==1)&&((input==6)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))&&(a12==1))&&!(a7==1))&&(((a21==10)&&(!(a20==1)&&((a16==9)&&(((!(a8==1)&&(((a11==1)&&(a1==13))||(a0==1)))&&(a17==2))&&(a6==1)))))&&(a19==3)))){ + a16 = 7; + a5 = 5; + a20 = 1; + a9 = 8; + a13 = 0; + a19 = 1; + a23 = 0; + a1 = 14; + a0 = 1; + return -1; + } else if((((a16==9)&&(((a1==13)&&((a23==1)&&((!(a23==1)||(a13==1))||(a24==1))))&&(a21==10)))&&(!(a14==1)&&((a17==2)&&((a9==10)&&(((a12==1)&&((a19==2)&&(!(a4==1)&&((input==1)&&(a20==1)))))&&(a5==4))))))){ + a19 = 4; + a24 = 0; + a16 = 8; + a21 = 11; + a5 = 5; + a13 = 1; + a1 = 12; + return 26; + } else if(((!(a6==1)||((a5==6)&&(((!(a6==1)||(!(a18==1)&&((((a26==1)||(a23==1))&&(a17==2))&&(a19==5))))&&(a21==12))&&(a16==8))))&&((((((input==1)&&(a1==13))&&(a11==1))&&(a9==9))&&!(a20==1))&&(a11==1)))){ + if((a4==1)){ + a1 = 14; + a3 = 0; + a5 = 4; + a21 = 10; + a29 = 1; + a24 = 1; + a9 = 10; + a20 = 1; + a19 = 1; + a16 = 7; + }else{ + a22 = 0; + a18 = 1; + a21 = 10; + a16 = 9; + a5 = 5; + a19 = 2; + a7 = 1; + } + return -1; + } else if(((((a17==2)&&((((((a3==1)&&(((input==5)&&(((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))))&&!(a14==1)))&&(a2==1))&&!(a7==1))&&(a1==14))&&(a11==1)))&&(a21==11))&&((a19==2)&&(!(a20==1)&&((!(a26==1)&&(a6==1))&&(a16==9)))))){ + if((a8==1)){ + a1 = 12; + a21 = 12; + a22 = 0; + a16 = 7; + a9 = 11; + a18 = 1; + a14 = 1; + a19 = 5; + a20 = 1; + a5 = 6; + }else{ + a19 = 5; + a9 = 9; + a1 = 13; + a25 = 0; + a18 = 1; + a16 = 8; + a5 = 5; + a20 = 1; + a21 = 10; + a22 = 0; + } + return 26; + } else if(((!(a3==1)&&((((a5==4)&&(!(a12==1)&&(a12==1)))&&(a17==2))&&!(a2==1)))&&((((a16==7)&&((((a9==11)&&(((a27==1)&&((input==1)&&!(a20==1)))&&(a21==11)))&&(a1==13))&&(a19==1)))&&!(a11==1))&&!(a13==1)))){ + a20 = 1; + a12 = 0; + a13 = 0; + a21 = 10; + a9 = 8; + a28 = 0; + return 26; + } else if(((!(a8==1)&&(((a1==12)&&((a17==2)&&((a21==12)&&(((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))&&(input==3)))))&&!(a26==1)))&&(((!(a18==1)&&(!(a26==1)&&((a19==1)&&(((a16==9)&&(a2==1))&&(a20==1)))))&&(a6==1))&&!(a27==1)))){ + a21 = 10; + a9 = 7; + a18 = 0; + a6 = 1; + a2 = 1; + a5 = 4; + a16 = 7; + return -1; + } else if((((a9==11)&&((a5==4)&&((a1==12)&&((!(a4==1)&&((a3==1)&&(((input==6)&&(a16==11))&&!(a0==1))))&&(a21==11)))))&&((a20==1)&&(!(a28==1)||((a17==2)&&(!(a6==1)||(((a23==1)&&!(a4==1))&&(a19==1)))))))){ + a12 = 1; + a9 = 9; + a19 = 5; + a1 = 13; + a23 = 1; + a27 = 0; + return 23; + } else if(((((((input==3)&&((a5==4)||(a5==5)))&&(a13==1))&&(a1==12))&&(a17==2))&&(!(a2==1)||(!(a11==1)||((((a19==1)&&(((a9==11)&&(!(a4==1)&&((a16==7)&&((a6==1)&&(a28==1)))))&&!(a20==1)))&&(a21==11))&&(a13==1)))))){ + a21 = 10; + a4 = 0; + a9 = 7; + a28 = 1; + a20 = 1; + a5 = 4; + a14 = 0; + return -1; + } else if((((a16==7)&&((a0==1)&&((((!(a13==1)&&((((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6))))&&(input==5)))&&(a21==12))&&(a20==1))&&(a17==2))))&&((a1==12)&&((!(a2==1)&&(((a19==3)&&((a3==1)&&(a26==1)))&&!(a13==1)))&&!(a23==1))))){ + a10 = 1; + a19 = 4; + a16 = 11; + a21 = 10; + a1 = 14; + a9 = 8; + a5 = 6; + a24 = 1; + a15 = 1; + return -1; + } else if((((a1==13)&&((((!(a26==1)&&(((input==6)&&((a5==4)||(a5==5)))&&(a17==2)))&&(a9==7))&&!(a24==1))&&!(a20==1)))&&(!(a18==1)&&((!(a18==1)&&(((a21==10)&&((a16==7)&&(!(a18==1)&&(a3==1))))&&(a11==1)))&&(a19==5))))){ + a16 = 8; + a19 = 1; + a20 = 1; + a27 = 0; + a5 = 6; + a3 = 1; + a21 = 12; + a28 = 1; + a1 = 14; + a9 = 8; + return 21; + } else if((((a16==9)&&((a17==2)&&((((a7==1)&&((a24==1)&&(((a13==1)&&(a26==1))&&(a20==1))))&&(a19==5))&&(a5==6))))&&((((a4==1)&&(!(a11==1)&&(((input==5)&&(a1==12))&&!(a28==1))))&&(a21==10))&&(a9==11)))){ + a19 = 4; + a0 = 1; + a21 = 11; + a25 = 1; + a1 = 13; + a16 = 10; + a14 = 1; + return -1; + } else if((((((((a19==3)&&(((a16==10)&&(a23==1))&&(a21==10)))||(a26==1))&&!(a8==1))&&!(a26==1))||!(a23==1))&&((a1==14)&&((a17==2)&&(!(a8==1)&&((((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==5))&&!(a20==1))&&(a12==1))))))){ + a1 = 12; + a16 = 7; + a20 = 1; + a9 = 9; + a27 = 1; + a19 = 2; + a22 = 1; + a5 = 4; + a25 = 0; + return -1; + } else if(((((a19==1)&&((a11==1)&&((a16==9)&&((!(a4==1)&&((a11==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1))))&&(a9==7)))))&&(a17==2))&&((a21==11)&&((a20==1)&&(!(a26==1)&&((a12==1)&&((a2==1)&&((a23==1)&&(a1==14))))))))){ + a4 = 0; + a5 = 6; + a12 = 1; + a24 = 0; + a9 = 8; + a21 = 12; + a16 = 8; + return 21; + } else if(((((a1==13)&&(((!(a13==1)||(!(a2==1)||(a13==1)))&&!(a8==1))||(a26==1)))&&(a17==2))&&(((a21==10)&&(!(a8==1)&&((a5==4)&&((a19==2)&&((((input==4)&&(a16==7))&&!(a7==1))&&(a9==7))))))&&!(a20==1)))){ + a19 = 1; + a27 = 0; + a1 = 12; + a20 = 1; + a0 = 0; + a14 = 0; + return -1; + } else if((((((((a26==1)&&((a26==1)&&((a5==4)&&((input==6)&&(a16==8)))))&&(a19==1))&&(a9==11))&&!(a20==1))&&(a1==12))&&(((((a17==2)&&(((a12==1)&&!(a11==1))&&!(a12==1)))&&(a8==1))&&(a0==1))&&(a21==11)))){ + a21 = 10; + a1 = 14; + a20 = 1; + a16 = 7; + a26 = 1; + a12 = 0; + a24 = 1; + return -1; + } else if((((a16==10)&&(((a21==10)&&((a19==1)&&((a24==1)||((a11==1)&&(!(a24==1)&&((a23==1)&&(a13==1)))))))&&(a17==2)))&&((((a6==1)&&((a1==12)&&(!(a18==1)&&(((a5==4)||(a5==5))&&(input==4)))))&&(a9==7))&&(a20==1)))){ + a2 = 1; + a5 = 4; + a7 = 0; + a16 = 7; + a12 = 1; + return -1; + } else if((((a27==1)||((a17==2)&&((a28==1)&&((!(a4==1)&&((a24==1)||(a11==1)))&&(a19==2)))))&&(((a16==9)&&((a3==1)&&((a21==12)&&(((a20==1)&&((input==1)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))))&&(a1==13)))))&&!(a26==1)))){ + a0 = 0; + a16 = 7; + a1 = 12; + a19 = 1; + a5 = 4; + a7 = 0; + a11 = 1; + a9 = 7; + a21 = 10; + return -1; + } else if(((!(a8==1)&&(!(a20==1)&&((a21==10)&&(((a16==10)&&((((((((a1==12)&&(a5==5))&&(a9==7))&&(a19==2))||((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==1))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==2))))&&(input==6))&&!(a8==1))&&(a17==2)))&&!(a24==1)))))&&((!(a0==1)&&((a11==1)||!(a13==1)))||!(a28==1)))){ + if((a0==1)){ + a16 = 7; + a1 = 13; + a15 = 1; + a18 = 1; + a9 = 10; + a11 = 0; + a5 = 6; + a20 = 1; + a19 = 1; + }else{ + a23 = 0; + a24 = 1; + a19 = 1; + a1 = 12; + a28 = 0; + a5 = 4; + a16 = 11; + a21 = 12; + a20 = 1; + a9 = 8; + } + return -1; + } else if((((((a11==1)&&(!(a7==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6))))&&(a9==10))&&(a1==12))&&((a19==3)&&(((((!(a20==1)&&((a23==1)&&((a7==1)||(!(a6==1)||(a23==1)))))&&(a17==2))||(a26==1))&&(a21==11))&&(a16==9))))){ + if((a0==1)){ + a21 = 10; + a16 = 7; + a27 = 1; + a5 = 5; + a20 = 1; + a1 = 14; + a18 = 1; + a29 = 1; + }else{ + a5 = 4; + a20 = 1; + a21 = 10; + a10 = 0; + a0 = 1; + a16 = 7; + a9 = 11; + a19 = 1; + a8 = 1; + } + return -1; + } else if(((!(a11==1)&&((((a20==1)&&(a6==1))&&(a16==8))&&(a17==2)))&&((((a4==1)&&((a1==14)&&((((a21==10)&&(((a5==5)&&((a9==11)&&(input==6)))&&!(a12==1)))&&(a24==1))&&!(a13==1))))&&(a19==2))&&!(a28==1)))){ + a26 = 1; + a9 = 8; + a5 = 6; + a16 = 7; + a15 = 0; + a19 = 1; + a22 = 0; + return -1; + } else if((((((a21==11)&&(!(a0==1)&&(((((a19==2)&&((input==5)&&((a5==4)||(a5==5))))&&(a16==10))&&!(a18==1))&&(a13==1))))&&(a20==1))&&(a1==13))&&(((a0==1)||((a8==1)||(((a28==1)&&(a9==11))&&(a11==1))))&&(a17==2)))){ + a18 = 0; + a5 = 4; + a16 = 7; + a12 = 1; + a24 = 0; + a9 = 9; + a21 = 10; + return -1; + } else if(((((a2==1)&&(((((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))&&(input==4))&&(a19==1))&&(a20==1))&&(a16==10)))&&!(a24==1))&&((((a21==12)&&((a12==1)&&((a1==14)&&((a26==1)||((a3==1)||!(a23==1))))))||!(a3==1))&&(a17==2)))){ + a27 = 0; + a5 = 4; + a1 = 12; + a26 = 0; + a16 = 7; + a21 = 10; + a9 = 7; + return -1; + } else if((((a3==1)&&((((a19==1)&&(((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))&&(input==4))&&(a1==13)))&&!(a27==1))&&(a20==1)))&&((a11==1)&&((((a21==11)&&(!(a23==1)||(((a16==9)&&(a28==1))&&(a17==2))))||!(a6==1))||(a26==1))))){ + a3 = 1; + a16 = 7; + a6 = 1; + a9 = 7; + a21 = 10; + a5 = 4; + a8 = 0; + a1 = 12; + return -1; + } else if(((((!(a8==1)&&((a20==1)&&((a21==10)&&(((input==6)&&((((a5==6)&&(a1==12))&&(a9==11))||(((a5==4)&&(a1==13))&&(a9==7))))&&(a16==10)))))&&(a2==1))&&(a13==1))&&((a24==1)||((a19==4)&&((a17==2)&&(((a4==1)||(a3==1))&&!(a27==1))))))){ + a0 = 0; + a19 = 1; + a9 = 7; + a16 = 7; + a2 = 1; + a1 = 12; + a5 = 4; + a3 = 1; + return -1; + } else if(((!(a6==1)||(((!(a0==1)&&((((a19==1)&&(a12==1))&&(a17==2))||(a27==1)))&&(a21==11))||(a26==1)))&&((a13==1)&&((a6==1)&&((a1==13)&&((!(a20==1)&&((input==3)&&(((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6))))))&&(a16==10))))))){ + a19 = 4; + a21 = 12; + a9 = 7; + a29 = 0; + a22 = 0; + a5 = 4; + a15 = 0; + return -1; + } else if((((((((a21==10)&&((a6==1)&&!(a20==1)))||!(a6==1))&&(a19==1))&&!(a0==1))||(a4==1))&&(!(a18==1)&&((a23==1)&&((a16==11)&&((((a17==2)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==6)))&&!(a0==1))&&(a1==14))))))){ + a4 = 1; + a1 = 13; + a16 = 7; + a27 = 1; + a20 = 1; + a5 = 5; + a11 = 0; + a9 = 7; + return -1; + } else if((((a21==11)&&((a1==13)&&((a16==9)&&((((a12==1)&&((!(a14==1)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))&&!(a18==1)))&&!(a18==1))&&(a17==2)))))&&(((a9==11)&&((a19==4)&&(((a6==1)&&!(a26==1))&&!(a26==1))))&&(a20==1)))){ + a13 = 1; + a16 = 8; + a2 = 1; + a20 = 0; + a1 = 12; + a14 = 0; + a5 = 5; + a9 = 8; + return 26; + } else if((((a23==1)&&(!(a0==1)&&((((a17==2)&&((a13==1)&&(((input==1)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9))))&&(a16==10))))&&(a1==14))&&(a19==5))))&&(((a21==10)&&((!(a26==1)&&((a11==1)&&!(a8==1)))&&(a20==1)))&&!(a8==1)))){ + a1 = 12; + a5 = 5; + a12 = 1; + a9 = 10; + a19 = 3; + a16 = 9; + a18 = 0; + a21 = 12; + a13 = 1; + return 21; + } else if((((a20==1)&&((a0==1)||(!(a23==1)||((a27==1)||((a9==7)&&((a21==12)&&((a23==1)&&(a5==5))))))))&&((((a11==1)&&((a6==1)&&(((a17==2)&&((a16==8)&&(input==4)))&&!(a7==1))))&&(a1==14))&&(a19==3)))){ + a19 = 1; + a1 = 12; + a5 = 4; + a3 = 1; + a21 = 10; + a16 = 7; + a2 = 1; + return -1; + } else if(((((!(a8==1)&&(((input==3)&&(a17==2))&&(a13==1)))&&(a9==7))&&!(a26==1))&&((!(a26==1)&&((a21==12)&&((((a19==5)&&((((a11==1)&&(a13==1))&&(a16==7))&&(a1==13)))&&(a5==4))&&(a20==1))))||!(a2==1)))){ + a16 = 9; + a27 = 0; + a26 = 0; + a5 = 6; + a9 = 11; + a21 = 11; + a0 = 0; + a19 = 4; + return 21; + } else if((((((a21==10)&&((a1==12)&&((a19==4)&&((a23==1)&&(a20==1)))))&&!(a18==1))||!(a3==1))&&(((a16==10)&&(!(a7==1)&&(((((input==3)&&(((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))))&&(a6==1))&&(a3==1))&&(a17==2))))&&!(a4==1)))){ + a9 = 7; + a19 = 1; + a5 = 4; + a14 = 0; + a12 = 1; + a26 = 0; + a16 = 7; + return -1; + } else if((((a19==1)&&((a21==10)&&(((!(a8==1)&&(!(a26==1)&&(!(a27==1)&&((input==4)&&((a5==4)||(a5==5))))))&&(a9==9))&&(a17==2))))&&((a1==12)&&(((!(a20==1)&&(((a16==11)&&(a28==1))||(a26==1)))||!(a2==1))||!(a11==1))))){ + a16 = 7; + a0 = 1; + a20 = 1; + a5 = 4; + a9 = 10; + a24 = 1; + return -1; + } else if((((a19==5)&&(((((a1==14)&&((a16==8)&&(a2==1)))||!(a28==1))||!(a6==1))&&(a6==1)))&&((((a5==6)&&(((((a12==1)&&((input==1)&&(a21==11)))&&!(a24==1))&&(a9==10))&&!(a0==1)))&&!(a20==1))&&(a17==2)))){ + if((a17==4)){ + a10 = 1; + a20 = 1; + a8 = 1; + a9 = 8; + a5 = 4; + a21 = 10; + a16 = 7; + a15 = 1; + a19 = 1; + }else{ + a20 = 1; + a0 = 1; + a21 = 10; + a22 = 0; + a16 = 7; + a19 = 1; + a9 = 7; + a1 = 13; + } + return 25; + } else if(((((a16==9)&&((!(a14==1)&&((a14==1)||(!(a0==1)&&(a6==1))))&&(a19==5)))||!(a13==1))&&(((a17==2)&&((a9==11)&&((a11==1)&&((a20==1)&&((a21==11)&&((a1==14)&&(((a5==4)||(a5==5))&&(input==3))))))))&&(a11==1)))){ + a27 = 0; + a2 = 1; + a5 = 4; + a21 = 10; + a9 = 7; + a16 = 7; + a1 = 12; + a19 = 1; + a24 = 0; + return -1; + } else if((((((((a5==4)&&((a19==3)&&((input==1)&&(a16==10))))&&(a12==1))&&(a21==12))&&!(a24==1))&&(a12==1))&&((a17==2)&&(((a1==13)&&((a26==1)||((((a2==1)&&!(a27==1))&&(a20==1))&&(a11==1))))&&(a9==8))))){ + a4 = 0; + a21 = 10; + a9 = 10; + a18 = 0; + a19 = 2; + a16 = 7; + a1 = 14; + a13 = 1; + return 21; + } else if((((!(a26==1)&&((((a20==1)&&(!(a8==1)&&((input==5)&&(((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))))))&&(a12==1))&&!(a18==1)))&&(a17==2))&&((((a23==1)&&((a26==1)||((a19==4)&&((a6==1)&&(a1==13)))))&&(a16==9))&&(a21==10)))){ + a5 = 4; + a27 = 0; + a16 = 7; + a6 = 1; + a19 = 1; + a28 = 1; + a9 = 7; + a1 = 12; + return -1; + } else if((((!(a18==1)&&((a2==1)&&((a13==1)&&(a16==8))))||(a26==1))&&((!(a4==1)&&((a17==2)&&((((input==4)&&((((a19==5)&&((a9==11)&&((a1==14)&&(a5==6))))&&(a21==10))||((a21==11)&&(((a9==7)&&((a1==12)&&(a5==4)))&&(a19==1)))))&&(a12==1))&&(a20==1))))&&(a11==1)))){ + a14 = 0; + a1 = 12; + a5 = 4; + a19 = 1; + a16 = 7; + a26 = 0; + a9 = 7; + a21 = 10; + return -1; + } else if(((!(a20==1)&&(((((!(a8==1)&&(a2==1))||(a7==1))&&!(a8==1))&&(a1==14))&&(a21==12)))&&((a23==1)&&(((((a12==1)&&(((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))&&(input==6))&&(a16==10)))&&(a12==1))&&(a19==5))&&(a17==2))))){ + a16 = 9; + a5 = 6; + a19 = 1; + a28 = 0; + a1 = 13; + a9 = 9; + a25 = 0; + a14 = 1; + return -1; + } else if(((!(a4==1)&&((((a3==1)&&(a19==1))&&(a17==2))||(a18==1)))&&(((((a16==10)&&(!(a18==1)&&(((a2==1)&&(!(a20==1)&&(((a9==9)&&(input==3))&&(a6==1))))&&(a11==1))))&&(a1==12))&&(a21==12))&&(a5==4)))){ + if((a21==12)){ + a19 = 2; + a25 = 0; + a21 = 10; + a16 = 7; + a20 = 1; + a18 = 1; + a9 = 8; + }else{ + a20 = 1; + a18 = 1; + a0 = 1; + a16 = 7; + a21 = 10; + a9 = 11; + a26 = 1; + a5 = 5; + a1 = 13; + } + return -1; + } else if((((a19==4)&&((!(a4==1)&&((((a6==1)&&((!(a7==1)&&(!(a20==1)&&((a16==10)&&(input==1))))&&(a1==14)))&&(a5==4))&&(a21==12)))&&(a9==7)))&&(((a27==1)||((a23==1)&&((a11==1)&&(a2==1))))&&(a17==2)))){ + if((a24==1)){ + a20 = 1; + a21 = 10; + a23 = 0; + a9 = 10; + a29 = 0; + a19 = 1; + a16 = 7; + a5 = 6; + }else{ + a2 = 0; + a20 = 1; + a21 = 10; + a8 = 1; + a22 = 0; + a19 = 1; + a9 = 10; + a16 = 7; + } + return -1; + } else if(((!(a8==1)&&(!(a14==1)&&(!(a26==1)&&(((a17==2)&&(!(a26==1)&&((a12==1)&&((a1==13)&&((input==6)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10))))))))&&!(a20==1)))))&&((a19==1)&&((a21==10)&&(((a12==1)&&(a16==9))||!(a6==1)))))){ + a1 = 14; + a16 = 7; + a5 = 4; + a15 = 0; + a9 = 9; + a14 = 1; + a29 = 1; + a20 = 1; + return -1; + } else if((((a16==9)&&(((a1==14)&&((!(a24==1)&&((((a28==1)||!(a13==1))&&(a19==3))&&(a20==1)))&&(a5==6)))||!(a13==1)))&&((a9==7)&&((((a6==1)&&(((a17==2)&&(input==4))&&!(a18==1)))&&(a11==1))&&(a21==11))))){ + a1 = 12; + a21 = 10; + a23 = 1; + a4 = 0; + a19 = 1; + a5 = 4; + a16 = 7; + a7 = 0; + return -1; + } else if((((a23==1)&&((a19==1)&&((a1==12)&&(!(a26==1)&&((a13==1)&&(a9==11))))))&&(((a13==1)&&((a16==11)&&(((((!(a18==1)&&((input==5)&&((a5==4)||(a5==5))))&&(a21==10))&&(a2==1))&&(a17==2))&&!(a7==1))))&&!(a20==1)))){ + if((a3==1)){ + a20 = 1; + a12 = 0; + a14 = 1; + a19 = 2; + a16 = 7; + a6 = 0; + a9 = 7; + a5 = 5; + }else{ + a6 = 0; + a9 = 9; + a20 = 1; + a10 = 0; + a26 = 1; + a16 = 7; + a5 = 5; + } + return -1; + } else if((((((a19==4)&&(((((((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))&&(input==1))&&(a21==11))&&(a16==10))&&(a11==1)))&&!(a18==1))&&!(a14==1))&&(((a3==1)&&(((((a1==13)&&(a12==1))&&(a17==2))&&(a20==1))||!(a11==1)))||(a14==1)))){ + a21 = 10; + a8 = 0; + a19 = 2; + a5 = 5; + a14 = 0; + a0 = 0; + a9 = 9; + a16 = 7; + return 25; + } else if((((((a19==2)&&((!(a6==1)||(((a3==1)&&(a3==1))&&(a17==2)))&&!(a26==1)))&&(a16==7))&&(a21==10))&&((!(a26==1)&&(((!(a20==1)&&((input==6)&&((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4)))))&&(a28==1))&&!(a4==1)))&&(a1==13)))){ + a9 = 7; + a1 = 12; + a6 = 1; + a28 = 1; + a19 = 1; + a14 = 0; + a20 = 1; + a5 = 4; + return -1; + } else if((((a5==5)&&((((a23==1)&&((a21==11)&&((a12==1)&&((a19==3)&&(!(a24==1)&&(!(a18==1)&&((a9==9)&&(input==6))))))))&&(a1==14))&&(a16==8)))&&(((a6==1)&&((a18==1)||(!(a20==1)&&(a13==1))))&&(a17==2)))){ + a21 = 10; + a5 = 4; + a19 = 1; + a1 = 12; + a24 = 0; + a6 = 1; + a16 = 7; + a9 = 7; + a28 = 1; + a20 = 1; + return -1; + } else if(((((((a9==9)&&(((a2==1)&&((a12==1)&&((a1==13)&&(input==6))))&&(a3==1)))&&!(a18==1))&&(a16==9))&&(a21==10))&&(((((a17==2)&&(!(a27==1)&&((a12==1)||(a26==1))))&&!(a20==1))&&(a5==5))&&(a19==4)))){ + if((a24==1)){ + a10 = 0; + a22 = 0; + a9 = 8; + a20 = 1; + a7 = 1; + a5 = 6; + a16 = 7; + a19 = 1; + a1 = 12; + }else{ + a5 = 4; + a8 = 1; + a16 = 7; + a27 = 1; + a9 = 7; + a1 = 12; + a7 = 1; + a19 = 1; + a21 = 11; + } + return -1; + } else if(((((a12==1)&&(((a17==2)&&(a13==1))&&(a5==5)))&&(a19==5))&&(((a23==1)&&(((!(a8==1)&&((a16==7)&&(!(a24==1)&&((a9==10)&&((a1==13)&&((a20==1)&&(input==1)))))))&&!(a18==1))&&(a21==11)))&&!(a4==1)))){ + a16 = 8; + a21 = 12; + a19 = 2; + a12 = 1; + a18 = 0; + a5 = 6; + a24 = 0; + return 21; + } else if(((((a3==1)&&((a17==2)&&((a28==1)&&(!(a20==1)&&((a16==8)&&((((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(input==4)))))))&&!(a27==1))&&(!(a28==1)||(!(a27==1)&&(!(a4==1)&&((a1==14)&&((a21==11)&&((a19==2)&&(a3==1))))))))){ + a5 = 4; + a20 = 1; + a9 = 7; + a1 = 12; + a19 = 1; + a6 = 1; + a21 = 10; + a13 = 1; + a24 = 0; + a16 = 7; + return -1; + } else if((((a19==2)&&(((a16==10)&&(((((!(a18==1)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==6)))&&(a1==14))&&(a17==2))&&(a20==1))&&!(a8==1)))&&(a21==10)))&&(!(a11==1)||((a12==1)&&((!(a2==1)||(a23==1))&&(a12==1)))))){ + a16 = 7; + a19 = 3; + a1 = 13; + a9 = 9; + a21 = 11; + a3 = 1; + a11 = 1; + a5 = 4; + return -1; + } else if(((((!(a11==1)||(a28==1))&&!(a20==1))&&(a19==2))&&(((a17==2)&&((a16==9)&&((a1==12)&&(!(a4==1)&&(!(a24==1)&&(((((input==4)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(a6==1))&&!(a0==1))&&!(a0==1)))))))&&(a21==12)))){ + if((a1==13)){ + a14 = 1; + a21 = 10; + a29 = 0; + a5 = 5; + a1 = 14; + a16 = 11; + a9 = 11; + a13 = 0; + }else{ + a21 = 10; + a9 = 10; + a20 = 1; + a5 = 4; + a16 = 7; + a8 = 1; + a3 = 0; + } + return -1; + } else if((((a6==1)&&(!(a11==1)||((a1==13)&&(((a19==1)&&(!(a20==1)&&(((a27==1)||((a11==1)&&(a12==1)))&&(a16==8))))&&(a17==2)))))&&((((!(a14==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))&&(a13==1))&&(a21==10))&&(a9==11)))){ + a3 = 1; + a16 = 7; + a9 = 7; + a5 = 4; + a13 = 1; + a6 = 1; + a20 = 1; + a1 = 12; + return -1; + } else if((((a20==1)&&((a3==1)&&((((((a16==8)&&(input==6))&&(a11==1))&&(a1==13))&&!(a0==1))&&!(a14==1))))&&((a9==10)&&(((((a5==4)&&(((a17==2)&&(a11==1))&&(a21==10)))&&!(a14==1))&&(a19==3))&&(a2==1))))){ + a28 = 1; + a9 = 8; + a21 = 12; + a19 = 1; + a5 = 6; + a1 = 14; + a26 = 0; + return 21; + } else if((((!(a28==1)||(!(a6==1)||(((a12==1)&&(a21==10))&&(a16==8))))||(a7==1))&&(!(a0==1)&&((((a28==1)&&((((a17==2)&&((((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))&&(input==4)))&&(a20==1))&&(a6==1)))&&(a1==12))&&(a19==1))))){ + a16 = 7; + a9 = 7; + a4 = 0; + a0 = 0; + a24 = 0; + a5 = 4; + return -1; + } else if(((((a11==1)&&((a13==1)&&((((((a1==13)&&(a3==1))&&(a2==1))||!(a13==1))||!(a23==1))&&(a21==12))))||!(a23==1))&&((a17==2)&&(((a19==5)&&(((((a5==4)||(a5==5))&&(input==6))&&(a9==10))&&(a16==8)))&&!(a20==1))))){ + a20 = 1; + a9 = 8; + a5 = 5; + a19 = 1; + a12 = 0; + a16 = 7; + a10 = 1; + a21 = 10; + a0 = 1; + return 23; + } else if(((((a20==1)&&((!(a24==1)&&((a19==4)&&(((input==3)&&(a9==9))&&(a13==1))))&&(a21==10)))&&!(a24==1))&&((a13==1)&&((a5==4)&&((a16==11)&&((a18==1)||(((a1==14)&&((a6==1)||!(a23==1)))&&(a17==2)))))))){ + a19 = 1; + a11 = 1; + a1 = 12; + a12 = 1; + a23 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if((((a19==5)&&(((a21==12)&&((((a23==1)&&(a16==7))&&!(a20==1))||!(a11==1)))||!(a11==1)))&&((a3==1)&&((a1==12)&&((!(a26==1)&&(((a6==1)&&((input==1)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5)))))&&(a17==2)))&&!(a7==1)))))){ + if((a4==1)){ + a5 = 6; + a6 = 1; + a9 = 9; + a8 = 0; + }else{ + a16 = 8; + a21 = 10; + a1 = 13; + a5 = 4; + a4 = 0; + a11 = 1; + a9 = 7; + a20 = 1; + a24 = 0; + } + return 25; + } else if(((((a19==3)&&(!(a24==1)&&((((a23==1)&&(((((a5==4)||(a5==5))&&(input==1))&&(a12==1))&&(a2==1)))&&!(a26==1))&&(a17==2))))&&(a20==1))&&((a1==12)&&((((a16==8)&&((a21==12)&&(a12==1)))||(a4==1))&&(a9==7))))){ + a9 = 9; + a7 = 0; + a5 = 6; + a24 = 0; + a4 = 0; + a16 = 10; + a19 = 2; + return 25; + } else if(((((a8==1)||(!(a28==1)||((a21==11)&&(a3==1))))&&(a19==3))&&((((a1==12)&&(!(a8==1)&&(((a16==10)&&(!(a0==1)&&((a20==1)&&((input==4)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8)))))))&&!(a24==1))))&&!(a7==1))&&(a17==2)))){ + a16 = 7; + a2 = 1; + a5 = 4; + a19 = 1; + a21 = 10; + a23 = 1; + a9 = 7; + a13 = 1; + return -1; + } else if((((a20==1)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a28==1))&&(a11==1)))&&(((a17==2)&&((a9==8)&&(((a1==12)&&(!(a26==1)&&((a27==1)||((((a8==1)||(a6==1))&&(a21==11))&&(a13==1)))))&&(a16==9))))&&(a19==1)))){ + a20 = 0; + a5 = 5; + a28 = 1; + a18 = 0; + a16 = 8; + a1 = 13; + a19 = 5; + a21 = 10; + a4 = 0; + return 22; + } else if(((((((!(a26==1)&&((input==5)&&((a5==5)||(a5==6))))&&(a19==2))&&!(a14==1))&&(a20==1))&&(a9==7))&&(((a17==2)&&((a21==10)&&(((((a27==1)||(!(a13==1)||(a11==1)))&&(a16==8))&&!(a0==1))&&(a3==1))))&&(a1==13)))){ + a16 = 7; + a19 = 1; + a5 = 4; + a7 = 0; + a1 = 12; + a4 = 0; + a6 = 1; + return -1; + } else if(((((((!(a7==1)&&((a7==1)||((a28==1)&&(a6==1))))||(a26==1))&&(a9==9))&&(a19==1))&&(a20==1))&&((a16==9)&&((a21==10)&&(!(a14==1)&&(!(a0==1)&&(((((a5==5)||(a5==6))&&(input==1))&&(a17==2))&&(a1==12)))))))){ + a5 = 4; + a27 = 0; + a11 = 1; + a16 = 7; + a9 = 7; + a26 = 0; + return -1; + } else if(((((((!(a20==1)&&(((((a19==3)&&(((a1==14)&&(a5==6))&&(a9==11)))||((a19==4)&&((a9==7)&&((a5==4)&&(a1==12)))))&&(input==6))&&(a21==12)))&&(a23==1))&&(a16==7))&&(a11==1))&&!(a14==1))&&(!(a3==1)||((((a3==1)&&(a17==2))||(a18==1))&&(a3==1))))){ + a1 = 12; + a5 = 4; + a8 = 0; + a19 = 1; + a2 = 1; + a9 = 7; + a20 = 1; + a23 = 1; + a21 = 10; + return -1; + } else if((((a17==2)&&((a24==1)&&((a16==7)&&(((a19==2)&&((a18==1)&&((a1==13)&&((input==4)&&((a5==4)||(a5==5))))))&&(a21==10)))))&&((((a9==11)&&((((a11==1)&&(a24==1))&&!(a20==1))&&!(a23==1)))&&(a0==1))&&!(a28==1)))){ + a19 = 1; + a0 = 1; + a20 = 1; + a9 = 8; + a15 = 0; + a22 = 1; + a5 = 6; + return -1; + } else if((((a19==4)&&(!(a28==1)||((!(a11==1)||(((a17==2)&&((a23==1)||(a0==1)))||(a4==1)))&&(a9==7))))&&((a21==12)&&((a1==14)&&((!(a20==1)&&(((a16==8)&&(((a5==5)||(a5==6))&&(input==4)))&&!(a24==1)))&&!(a27==1)))))){ + a20 = 1; + a16 = 7; + a6 = 0; + a5 = 4; + a9 = 10; + a2 = 0; + a21 = 10; + a19 = 2; + a1 = 12; + a12 = 0; + return -1; + } else if((((a13==1)&&(!(a0==1)&&((!(a14==1)&&((a5==4)&&((a21==10)&&((input==6)&&(a9==7)))))&&!(a27==1))))&&((((a1==13)&&(((a16==8)&&((a17==2)&&((a3==1)&&(a19==3))))&&!(a20==1)))||!(a12==1))&&!(a24==1)))){ + if((a23==1)){ + a1 = 14; + a7 = 0; + a3 = 1; + a19 = 5; + a0 = 0; + a9 = 8; + }else{ + a20 = 1; + a19 = 5; + a21 = 11; + a5 = 5; + a8 = 0; + a3 = 1; + a1 = 14; + a16 = 7; + a26 = 0; + } + return 23; + } else if((((a6==1)&&(((a21==12)&&((a20==1)&&(((((a5==5)||(a5==6))&&(input==6))&&(a17==2))&&(a1==12))))&&!(a4==1)))&&(((((a8==1)||(!(a28==1)||(!(a11==1)||((a9==9)&&(a12==1)))))&&!(a4==1))&&(a19==2))&&(a16==11)))){ + a5 = 4; + a24 = 0; + a13 = 1; + a19 = 1; + a21 = 10; + a9 = 7; + a27 = 0; + a16 = 7; + return -1; + } else if((((a1==12)&&((a19==1)&&((a13==1)&&(((((input==4)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&!(a20==1))&&(a13==1))&&!(a0==1)))))&&((a21==10)&&((((a17==2)&&((a18==1)||((a12==1)||(a14==1))))||!(a2==1))&&(a16==10))))){ + a20 = 1; + a9 = 7; + a0 = 1; + a5 = 4; + a16 = 7; + a10 = 1; + return 21; + } else if((((((((a6==1)&&(((a5==5)||(a5==6))&&(input==3)))&&(a20==1))&&!(a14==1))&&(a21==11))&&(a16==7))&&((((a17==2)&&((!(a23==1)||((a1==12)&&(((a11==1)||!(a12==1))&&(a9==9))))||(a0==1)))||!(a11==1))&&(a19==3)))){ + a7 = 0; + a9 = 7; + a21 = 10; + a19 = 1; + a12 = 1; + a14 = 0; + a5 = 4; + return -1; + } else if((((((a19==3)&&(!(a24==1)&&(((input==4)&&((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4))))&&(a12==1))))&&(a17==2))&&(a12==1))&&((!(a23==1)||((a21==12)&&((a1==14)&&(((a3==1)&&((a13==1)&&!(a20==1)))&&(a16==10)))))&&(a11==1)))){ + if((a13==1)){ + a20 = 1; + a25 = 0; + a3 = 0; + a21 = 10; + a16 = 7; + a5 = 5; + a19 = 1; + a29 = 0; + a9 = 11; + a1 = 13; + }else{ + a16 = 8; + a21 = 11; + a10 = 1; + a1 = 12; + a6 = 0; + a9 = 8; + a19 = 1; + a5 = 4; + a12 = 0; + } + return 25; + } else if(((!(a14==1)&&((a28==1)&&((a17==2)&&(!(a13==1)||(((!(a24==1)&&(((a3==1)&&(a6==1))&&(a9==8)))&&(a5==4))&&(a1==13))))))&&((a19==4)&&((a2==1)&&(((a16==9)&&((a20==1)&&(input==6)))&&(a21==11)))))){ + a16 = 8; + a5 = 5; + a1 = 12; + a20 = 0; + a13 = 1; + a4 = 0; + a11 = 1; + return 21; + } else if((((a23==1)&&(((!(a18==1)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==1)))&&(a19==4))&&(a17==2)))&&((a20==1)&&((((a16==7)&&(((a21==12)&&((a1==13)&&((a28==1)||!(a28==1))))||!(a3==1)))&&!(a7==1))&&(a12==1))))){ + if((a13==1)){ + a16 = 8; + a5 = 6; + a21 = 11; + a1 = 14; + a20 = 0; + a0 = 0; + a4 = 0; + a14 = 0; + a9 = 8; + }else{ + a16 = 9; + a9 = 8; + a21 = 11; + a6 = 1; + a18 = 0; + a5 = 5; + a19 = 2; + a26 = 0; + a1 = 14; + } + return 23; + } else if(((((a17==2)&&(!(a0==1)&&((((a21==11)&&((input==4)&&((a5==4)||(a5==5))))&&!(a7==1))&&!(a7==1))))&&(a9==8))&&((!(a0==1)&&(((a18==1)||((a20==1)&&(((a0==1)||(a12==1))&&(a1==13))))&&(a16==11)))&&(a19==3)))){ + a4 = 0; + a11 = 1; + a16 = 7; + a9 = 7; + a5 = 4; + a19 = 1; + a21 = 10; + a28 = 1; + a1 = 12; + return -1; + } else if(((((a19==1)&&(!(a14==1)&&(((a1==14)&&(((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a20==1)))&&(a21==11))))&&(a12==1))&&(!(a23==1)||(!(a27==1)&&(!(a7==1)&&((((!(a28==1)||(a6==1))&&(a9==7))&&(a17==2))&&(a16==10))))))){ + a13 = 0; + a19 = 2; + a4 = 1; + a16 = 7; + a20 = 1; + a21 = 10; + a5 = 4; + a9 = 11; + a12 = 0; + a1 = 12; + return 26; + } else if((((((a1==14)&&(!(a24==1)&&(!(a8==1)&&((a17==2)&&((((input==1)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&(a6==1))&&!(a18==1))))))&&(a19==4))&&!(a24==1))&&((a20==1)&&((a13==1)&&(((a21==11)&&(a11==1))&&(a16==10)))))){ + a21 = 10; + a16 = 7; + a6 = 1; + a9 = 9; + a14 = 0; + a19 = 2; + a5 = 6; + a26 = 0; + return 21; + } else if(((((((a18==1)||(((a6==1)&&(a16==7))&&(a13==1)))&&(a1==13))&&(a5==5))&&!(a27==1))&&((((a20==1)&&((!(a24==1)&&((a21==12)&&(!(a26==1)&&((input==6)&&(a17==2)))))&&!(a26==1)))&&(a9==10))&&(a19==3)))){ + a21 = 10; + a1 = 12; + a12 = 1; + a19 = 1; + a9 = 7; + a23 = 1; + a5 = 4; + a4 = 0; + return -1; + } else if(((!(a18==1)&&(((a19==2)&&(((a1==12)&&(a6==1))&&(a11==1)))&&(a6==1)))&&((a12==1)&&(!(a8==1)&&(!(a4==1)&&((a16==7)&&((a9==10)&&(((a21==10)&&((a17==2)&&(((a5==4)||(a5==5))&&(input==3))))&&!(a20==1))))))))){ + a28 = 1; + a5 = 4; + a9 = 7; + a20 = 1; + a27 = 0; + a2 = 1; + a19 = 1; + return -1; + } else if((((a16==10)&&((a1==14)&&(((!(a2==1)||((a27==1)||(((((a2==1)&&!(a7==1))&&(a19==1))||!(a3==1))||(a26==1))))||!(a23==1))&&(a20==1))))&&(((a9==9)&&((a17==2)&&((input==4)&&((a5==4)||(a5==5)))))&&(a21==10)))){ + a6 = 1; + a16 = 7; + a5 = 4; + a1 = 12; + a12 = 1; + a9 = 7; + a24 = 0; + return -1; + } else if((((a21==11)&&((a26==1)&&(!(a23==1)&&((a11==1)&&(a24==1)))))&&((a1==13)&&(((a20==1)&&(((((((input==1)&&((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4))))&&(a26==1))&&(a26==1))&&(a17==2))&&(a19==2))&&!(a13==1)))&&(a16==9))))){ + a20 = 0; + a9 = 11; + a14 = 1; + a1 = 14; + a16 = 7; + a5 = 6; + a19 = 3; + a15 = 0; + a22 = 1; + return -1; + } else if((((a21==12)&&(((((a28==1)&&((a1==14)&&((a19==5)&&((input==1)&&(a9==11)))))&&!(a14==1))&&(a16==9))&&(a17==2)))&&(!(a20==1)&&((!(a11==1)||((a18==1)||((a26==1)||((a3==1)&&!(a0==1)))))&&(a5==6))))){ + if((a11==1)){ + a19 = 1; + a9 = 7; + a21 = 10; + a8 = 1; + a28 = 0; + a10 = 0; + a16 = 7; + a20 = 1; + }else{ + a29 = 1; + a16 = 10; + a9 = 9; + a19 = 1; + a23 = 0; + a28 = 0; + a5 = 4; + } + return -1; + } else if(((((a16==10)&&((a1==14)&&((!(a4==1)&&(((input==4)&&((a5==4)||(a5==5)))&&(a28==1)))&&(a28==1))))&&(a9==9))&&((a19==1)&&(((((a13==1)&&(((a6==1)&&(a12==1))&&!(a20==1)))&&!(a7==1))&&(a17==2))&&(a21==11))))){ + a28 = 0; + a5 = 4; + a16 = 9; + a0 = 1; + a21 = 10; + a27 = 1; + a9 = 10; + return 25; + } else if(((!(a3==1)||((((a2==1)||(a0==1))&&(a21==10))&&(a20==1)))&&(((a16==7)&&((((((((a11==1)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))&&!(a27==1))&&(a12==1))&&(a1==12))&&(a9==8))&&(a12==1))&&(a19==3)))&&(a17==2)))){ + a9 = 11; + a26 = 0; + a3 = 1; + a5 = 4; + a19 = 5; + return 21; + } else if(((((!(a13==1)&&(((a21==11)&&((((a16==7)&&(input==4))&&(a27==1))&&(a20==1)))&&(a26==1)))&&!(a6==1))&&(a14==1))&&(((a9==11)&&((a17==2)&&((a19==4)&&(((a1==12)&&(a2==1))&&(a5==4)))))&&!(a28==1)))){ + a22 = 0; + a19 = 2; + a18 = 1; + a21 = 10; + a5 = 5; + a3 = 0; + a9 = 8; + return 25; + } else if(((((a9==7)&&(!(a27==1)&&((((a17==2)&&(((a13==1)&&(a21==10))||(a26==1)))&&(a1==12))&&!(a20==1))))||(a7==1))&&((((!(a8==1)&&(((a5==6)&&(input==6))&&!(a27==1)))&&(a16==7))&&(a19==1))&&(a13==1)))){ + a5 = 4; + a4 = 0; + a20 = 1; + a27 = 0; + a3 = 1; + return -1; + } else if(((((a19==1)&&((a1==12)&&((a21==12)&&(((a17==2)&&((a14==1)||((a6==1)&&(a9==8))))&&!(a27==1)))))&&(a5==5))&&((a2==1)&&(((a28==1)&&(!(a0==1)&&((a16==8)&&((a20==1)&&(input==6)))))&&(a28==1))))){ + a9 = 10; + a12 = 1; + a21 = 11; + a26 = 0; + a2 = 1; + a19 = 4; + return 25; + } else if((((a9==8)&&(((((a19==1)&&((a2==1)&&(!(a27==1)&&(!(a20==1)&&(((a3==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5)))&&(a6==1))))))&&(a21==11))&&!(a8==1))&&(a1==13)))&&((a17==2)&&((a16==7)&&((a2==1)&&(a12==1)))))){ + a21 = 10; + a20 = 1; + a26 = 0; + a5 = 4; + a2 = 1; + a1 = 12; + a9 = 7; + a3 = 1; + return -1; + } else if(((!(a23==1)||((a28==1)&&((a21==11)&&(((a16==10)&&(!(a0==1)&&(a3==1)))&&(a17==2)))))&&(((!(a8==1)&&((a13==1)&&(!(a20==1)&&((a19==1)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==5))))))&&(a1==13))&&(a6==1)))){ + if((a21==12)){ + a22 = 0; + a5 = 6; + a9 = 9; + a18 = 1; + a19 = 3; + a1 = 12; + a2 = 0; + a16 = 9; + }else{ + a19 = 3; + a20 = 1; + a12 = 0; + a9 = 11; + a21 = 10; + a7 = 1; + a5 = 5; + a22 = 1; + } + return -1; + } else if((((a16==10)&&((a17==2)&&((a1==14)&&((a27==1)||(((a13==1)&&(a9==9))&&(a19==1))))))&&((((a20==1)&&(!(a0==1)&&(((((input==3)&&((a5==4)||(a5==5)))&&(a21==11))&&!(a8==1))&&!(a26==1))))&&(a3==1))&&!(a7==1)))){ + a4 = 0; + a16 = 8; + a23 = 1; + a19 = 3; + a12 = 1; + a9 = 10; + a5 = 5; + return 21; + } else if(((!(a20==1)&&((((input==1)&&(a19==1))&&(a23==1))&&(a6==1)))&&((a5==6)&&((((a1==14)&&(((!(a14==1)&&((a27==1)||(((a21==12)&&(a12==1))&&(a9==11))))||(a18==1))&&(a16==8)))&&(a17==2))&&!(a4==1))))){ + a27 = 1; + a5 = 4; + a3 = 0; + a1 = 13; + a16 = 7; + a9 = 8; + a21 = 10; + a6 = 0; + a20 = 1; + return -1; + } else if((((a3==1)&&(!(a11==1)||((a19==4)&&(((a17==2)&&((((a21==10)&&(a2==1))&&(a1==12))||!(a3==1)))&&(a16==8)))))&&((((a2==1)&&(!(a20==1)&&((input==1)&&(((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))))&&(a13==1))&&(a6==1)))){ + a11 = 1; + a28 = 1; + a16 = 7; + a20 = 1; + a3 = 1; + a9 = 7; + a5 = 4; + a19 = 1; + return -1; + } else if((((a21==11)&&(((a28==1)&&(a11==1))&&(a20==1)))&&((a16==9)&&((a13==1)&&((a1==13)&&((((a19==2)&&((!(a18==1)&&((a6==1)&&(((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4)))&&(input==4))))&&(a2==1)))&&(a17==2))&&!(a24==1))))))){ + a24 = 0; + a9 = 7; + a26 = 0; + a1 = 12; + a19 = 1; + a13 = 1; + a5 = 4; + a21 = 10; + a16 = 7; + return -1; + } else if((((a8==1)||(!(a7==1)&&((a17==2)&&((a9==9)&&((a1==13)&&(!(a12==1)||(a3==1)))))))&&((!(a18==1)&&(!(a20==1)&&((a16==9)&&((a21==12)&&((a2==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a2==1)))))))&&(a19==5)))){ + a24 = 1; + a16 = 7; + a1 = 12; + a22 = 1; + a5 = 6; + a15 = 0; + a21 = 11; + a9 = 10; + a20 = 1; + return -1; + } else if((((a21==10)&&((a16==9)&&(((!(a18==1)&&(((!(a11==1)||(a2==1))&&(a17==2))&&!(a20==1)))||(a0==1))&&(a1==13))))&&((!(a27==1)&&((!(a27==1)&&((a28==1)&&((a19==3)&&(input==3))))&&(a9==9)))&&(a5==6)))){ + a19 = 2; + a22 = 1; + a16 = 7; + a26 = 1; + a1 = 12; + a20 = 1; + a15 = 0; + a9 = 10; + return -1; + } else if((((a23==1)&&((((a6==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))&&(a19==3))&&(a16==8)))&&((a6==1)&&(!(a3==1)||((a1==13)&&((((a9==8)&&(((!(a18==1)&&(a28==1))&&(a17==2))&&(a20==1)))||!(a28==1))&&(a21==12))))))){ + a5 = 4; + a16 = 10; + a19 = 2; + a1 = 14; + a13 = 1; + a2 = 1; + a18 = 0; + return 21; + } else if((((((((a3==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))&&(a28==1))&&(a9==9))&&!(a0==1))&&!(a8==1))&&((a1==12)&&((((a17==2)&&((a20==1)&&((((a19==2)&&(a3==1))&&(a28==1))&&(a16==7))))&&(a21==12))||(a26==1))))){ + a12 = 1; + a19 = 1; + a21 = 10; + a24 = 0; + a26 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if(((((((a28==1)||(a4==1))&&!(a0==1))&&(a9==10))&&(a21==11))&&((((((a17==2)&&(!(a7==1)&&(!(a18==1)&&((((input==6)&&((a5==4)||(a5==5)))&&(a28==1))&&!(a24==1)))))&&(a1==13))&&(a19==2))&&(a16==7))&&!(a20==1)))){ + a21 = 10; + a11 = 1; + a1 = 12; + a5 = 4; + a23 = 1; + a9 = 7; + a0 = 0; + a20 = 1; + a19 = 1; + return -1; + } else if((((((((!(a27==1)&&((((a20==1)&&(a11==1))||!(a3==1))||(a24==1)))&&(a9==10))&&(a16==11))&&!(a0==1))&&(a19==3))&&(a1==13))&&(((a28==1)&&(((a5==6)&&((a17==2)&&(input==4)))&&(a23==1)))&&(a21==12)))){ + a12 = 1; + a7 = 0; + a19 = 1; + a2 = 1; + a16 = 7; + a9 = 7; + a5 = 4; + a1 = 12; + a21 = 10; + return -1; + } else if(((!(a27==1)&&(((a19==4)&&(!(a28==1)||(((((a23==1)&&(a1==13))&&(a9==7))&&!(a14==1))&&!(a24==1))))&&(a16==10)))&&(!(a24==1)&&((a21==12)&&((a20==1)&&(((((a5==4)||(a5==5))&&(input==6))&&(a17==2))&&!(a18==1))))))){ + a1 = 14; + a2 = 1; + a5 = 4; + a21 = 11; + a19 = 1; + a9 = 11; + a4 = 0; + return 26; + } else if(((((a21==11)&&((!(a24==1)&&(((a5==4)&&(((a1==12)&&(input==6))&&!(a24==1)))&&(a6==1)))&&(a17==2)))&&!(a20==1))&&((a16==7)&&(((((!(a23==1)||(a12==1))||(a8==1))&&(a19==2))&&(a9==7))&&(a6==1))))){ + a7 = 0; + a14 = 0; + a9 = 10; + a16 = 10; + a4 = 0; + a19 = 1; + a21 = 10; + a20 = 1; + a5 = 6; + return 21; + } else if(((!(a23==1)||(((a21==10)&&(((a13==1)&&!(a20==1))||(a8==1)))||!(a28==1)))&&((a13==1)&&((!(a18==1)&&((a19==1)&&((a11==1)&&(((a9==7)&&(((a17==2)&&(input==6))&&(a5==5)))&&(a1==14)))))&&(a16==9))))){ + a5 = 6; + a9 = 9; + a6 = 0; + a1 = 13; + a11 = 0; + a15 = 0; + a16 = 7; + a20 = 1; + return -1; + } else if((((a1==14)&&((a20==1)&&((a13==1)&&((a16==9)&&((!(a4==1)&&((a3==1)&&((a17==2)&&(((a5==5)||(a5==6))&&(input==4)))))&&!(a26==1))))))&&((a19==4)&&((a27==1)||((a9==10)&&((a21==12)&&((a7==1)||(a28==1)))))))){ + a1 = 12; + a16 = 7; + a19 = 1; + a26 = 0; + a6 = 1; + a21 = 10; + a5 = 4; + a18 = 0; + a9 = 7; + return -1; + } else if(((!(a2==1)||(!(a20==1)&&((!(a27==1)&&((a24==1)||(((a16==10)&&(a11==1))&&(a17==2))))&&(a9==7))))&&((a28==1)&&((a1==13)&&((a12==1)&&((a19==2)&&(!(a0==1)&&(((a21==12)&&(input==4))&&(a5==6))))))))){ + a14 = 1; + a1 = 14; + a3 = 0; + a16 = 7; + a21 = 10; + a19 = 1; + a2 = 0; + a5 = 4; + a20 = 1; + return 25; + } else if((((a1==14)&&((a9==8)&&(((((a7==1)||(a23==1))&&!(a0==1))&&!(a4==1))&&(a12==1))))&&(((((a17==2)&&(((a16==10)&&(!(a0==1)&&(((a5==4)||(a5==5))&&(input==6))))&&(a3==1)))&&(a19==1))&&(a21==12))&&!(a20==1)))){ + a5 = 4; + a27 = 1; + a1 = 13; + a15 = 1; + a9 = 7; + a21 = 10; + a14 = 1; + a20 = 1; + a16 = 7; + a19 = 2; + return 26; + } else if(((!(a20==1)&&((a23==1)&&((a23==1)&&(((a1==13)&&((input==5)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))))&&(a6==1)))))&&((a19==2)&&((a17==2)&&((!(a3==1)||(!(a14==1)&&((a16==9)&&((a28==1)&&(a11==1)))))&&(a21==11)))))){ + if((a14==1)){ + a1 = 14; + a21 = 10; + a28 = 0; + a19 = 1; + a9 = 10; + a16 = 7; + a5 = 5; + a0 = 1; + a29 = 1; + }else{ + a5 = 5; + a19 = 3; + a25 = 0; + a2 = 0; + a1 = 14; + a9 = 11; + a6 = 0; + a21 = 10; + a16 = 7; + } + return -1; + } else if(((((!(a0==1)&&((((((a11==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4)))&&(a19==1))&&(a3==1))&&(a2==1))&&(a1==13)))&&!(a27==1))&&(a9==11))&&((a16==10)&&((((a20==1)&&((a3==1)&&(a3==1)))&&(a17==2))&&(a21==11))))){ + a9 = 10; + a16 = 8; + a12 = 1; + a18 = 0; + a19 = 5; + a21 = 10; + a5 = 5; + return 25; + } else if((((a16==11)&&(((a19==2)&&(((a2==1)&&(((((a12==1)&&(a6==1))&&(a21==11))&&(a20==1))||!(a3==1)))||(a18==1)))||!(a3==1)))&&((a1==14)&&((a17==2)&&(!(a24==1)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==4))))))){ + a16 = 7; + a28 = 1; + a6 = 1; + a21 = 10; + a5 = 4; + a1 = 12; + a19 = 1; + a9 = 7; + return -1; + } else if((((a21==10)&&((((a19==3)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a24==1))&&(a16==7)))&&((a12==1)&&((a20==1)&&((!(a12==1)||((a1==13)&&(((((a3==1)&&(a28==1))&&(a6==1))&&(a9==7))||(a26==1))))&&(a17==2)))))){ + a1 = 12; + a5 = 5; + a21 = 11; + a24 = 0; + a19 = 1; + a8 = 0; + a9 = 9; + return 25; + } else if(((((a1==13)&&(!(a27==1)&&(!(a4==1)&&(((a3==1)||(a14==1))||!(a3==1)))))&&(a16==10))&&(((!(a14==1)&&(!(a27==1)&&((((((a5==5)||(a5==6))&&(input==6))&&(a20==1))&&(a9==11))&&(a21==10))))&&(a19==2))&&(a17==2)))){ + a19 = 1; + a24 = 0; + a23 = 1; + a5 = 5; + a9 = 7; + a1 = 12; + return 21; + } else if((((a2==1)&&(!(a20==1)&&((a19==4)&&((a17==2)&&((a1==12)&&((((input==1)&&(a21==11))&&(a23==1))&&(a5==4)))))))&&((a6==1)&&(!(a23==1)||((((!(a13==1)||(a11==1))&&(a9==8))&&(a13==1))&&(a16==7)))))){ + if((a24==1)){ + a5 = 5; + a7 = 0; + a24 = 0; + a8 = 0; + a19 = 5; + a9 = 7; + a1 = 13; + }else{ + a1 = 13; + a19 = 3; + a20 = 1; + a16 = 8; + a2 = 1; + a5 = 6; + a9 = 9; + a0 = 0; + } + return 21; + } else if(((((((((a23==1)&&(!(a20==1)&&((a21==12)&&(a3==1))))||(a8==1))&&(a19==4))&&(a16==10))||(a24==1))&&(a6==1))&&((a1==12)&&((!(a26==1)&&(((a17==2)&&(((a5==4)||(a5==5))&&(input==3)))&&(a9==10)))&&!(a4==1))))){ + if((a24==1)){ + a13 = 0; + a5 = 5; + a9 = 7; + a12 = 0; + a19 = 5; + a29 = 0; + }else{ + a5 = 5; + a16 = 9; + a21 = 11; + a25 = 1; + a13 = 0; + a19 = 3; + a8 = 1; + } + return 25; + } else if((((a1==14)&&((a17==2)&&(((a7==1)&&((a24==1)&&(!(a2==1)&&((a0==1)&&((input==6)&&(a19==4))))))&&!(a3==1))))&&((a5==5)&&((((a20==1)&&((a16==7)&&((a6==1)&&(a8==1))))&&(a21==10))&&(a9==8))))){ + a21 = 11; + a1 = 13; + a9 = 9; + a10 = 0; + a19 = 5; + a25 = 0; + a16 = 9; + a11 = 0; + return -1; + } else if(((((!(a0==1)&&((((!(a0==1)&&((!(a7==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3)))&&!(a18==1)))&&(a20==1))&&(a16==8))&&(a21==11)))&&(a19==5))&&(a17==2))&&(!(a7==1)&&((((a1==13)&&(a2==1))&&(a9==8))&&!(a14==1))))){ + a2 = 1; + a16 = 7; + a14 = 0; + a9 = 7; + a21 = 10; + a1 = 12; + a18 = 0; + a5 = 4; + a19 = 1; + return -1; + } else if((((a21==12)&&(((a9==7)&&(((a13==1)&&(a6==1))||(a7==1)))&&!(a20==1)))&&(((a1==13)&&((((a16==8)&&((a6==1)&&((a2==1)&&((a2==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4))))))&&!(a4==1))&&(a19==1)))&&(a17==2)))){ + if((a27==1)){ + a24 = 1; + a16 = 7; + a20 = 1; + a21 = 10; + a26 = 1; + a5 = 5; + a1 = 12; + a9 = 9; + a11 = 0; + }else{ + a22 = 0; + a16 = 7; + a4 = 1; + a21 = 10; + a20 = 1; + a5 = 5; + a7 = 1; + } + return -1; + } else if(((((a19==2)&&((((a5==5)&&(input==4))&&!(a20==1))&&(a16==8)))&&(a21==11))&&((!(a28==1)||((((a17==2)&&(!(a11==1)||((((a1==13)&&(a2==1))&&(a9==11))||(a18==1))))&&(a2==1))&&!(a24==1)))||(a7==1)))){ + a21 = 10; + a8 = 0; + a16 = 9; + a26 = 0; + a19 = 1; + a20 = 1; + a9 = 9; + a11 = 1; + return 26; + } else if((((a16==7)&&(!(a0==1)&&((a9==8)&&(!(a27==1)&&((a1==13)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))))))&&((a14==1)||(((a21==11)&&(!(a28==1)||(!(a3==1)||((a19==1)&&(!(a20==1)&&((a3==1)&&!(a0==1)))))))&&(a17==2))))){ + a5 = 4; + a1 = 12; + a21 = 10; + a7 = 0; + a9 = 7; + a18 = 0; + a20 = 1; + a28 = 1; + return -1; + } else if(((((a7==1)||(((a1==12)&&(!(a20==1)&&((a12==1)||!(a6==1))))&&(a21==10)))&&!(a7==1))&&(((a23==1)&&(((a17==2)&&(!(a14==1)&&(((input==4)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(a16==7))))&&(a19==4)))&&(a6==1)))){ + a5 = 4; + a6 = 1; + a21 = 11; + a20 = 1; + a9 = 10; + a16 = 8; + a27 = 0; + return 25; + } else if((((a16==11)&&((((((!(a27==1)&&(a28==1))&&(a20==1))&&(a21==12))||!(a6==1))&&(a9==7))&&(a19==2)))&&(!(a4==1)&&((a17==2)&&((a1==14)&&(!(a14==1)&&(((((a5==4)||(a5==5))&&(input==6))&&!(a0==1))&&!(a18==1)))))))){ + a18 = 0; + a8 = 0; + a19 = 4; + a5 = 6; + a11 = 1; + a1 = 13; + a9 = 11; + return 25; + } else if(((((((a19==2)&&((((((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6))))&&(input==3))&&(a21==11))&&(a20==1)))&&!(a26==1))&&(a2==1))&&(a12==1))&&(!(a7==1)&&((a17==2)&&((a16==8)&&(!(a27==1)&&(((a28==1)||(a0==1))&&(a1==14)))))))){ + a3 = 1; + a6 = 1; + a9 = 8; + a5 = 4; + a1 = 13; + a26 = 0; + a19 = 1; + return -1; + } else if((((((a16==9)&&(((input==4)&&(a17==2))&&!(a18==1)))&&(a19==2))&&(a1==13))&&(((((a11==1)&&((a21==11)&&((((a20==1)&&((a2==1)&&(a12==1)))||!(a11==1))||(a4==1))))&&(a3==1))&&(a9==8))&&(a5==4)))){ + a16 = 7; + a1 = 12; + a18 = 0; + a21 = 10; + a12 = 1; + a3 = 1; + a19 = 1; + a9 = 7; + return -1; + } else if((((!(a0==1)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))&&!(a20==1))&&(((a17==2)&&((((a7==1)||((a14==1)||(((((a1==12)&&((a16==10)&&(a2==1)))&&!(a4==1))&&!(a18==1))||!(a6==1))))&&(a19==1))&&(a21==11)))&&(a9==7)))){ + a26 = 1; + a1 = 13; + a16 = 7; + a5 = 6; + a21 = 10; + a20 = 1; + a29 = 1; + a9 = 10; + return -1; + } else if(((((a20==1)&&((((a9==9)&&((input==1)&&(a17==2)))&&(a19==3))&&(a21==12)))&&!(a26==1))&&(((a1==14)&&(!(a8==1)&&((a13==1)&&(((((a28==1)&&!(a4==1))||(a8==1))&&(a16==10))||(a0==1)))))&&(a5==4)))){ + a7 = 0; + a9 = 7; + a21 = 10; + a19 = 1; + a16 = 7; + a11 = 1; + a28 = 1; + a1 = 12; + return -1; + } else if(((((a9==8)&&((a19==2)&&((a8==1)||(((a3==1)&&!(a20==1))&&!(a26==1)))))&&(a16==8))&&(((((!(a4==1)&&(((((a5==5)||(a5==6))&&(input==6))&&(a1==12))&&!(a24==1)))&&(a28==1))&&(a17==2))&&(a2==1))&&(a21==10)))){ + a13 = 1; + a12 = 1; + a20 = 1; + a16 = 9; + a24 = 0; + a19 = 1; + a5 = 6; + a1 = 13; + return 22; + } else if(((!(a6==1)||(((((((a26==1)||((a6==1)&&(a16==11)))||!(a11==1))&&(a6==1))&&(a21==12))||(a7==1))&&(a6==1)))&&((a1==14)&&((((a19==5)&&((input==1)&&((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a5==4)&&(a9==11)))))&&(a20==1))&&(a17==2))))){ + a18 = 0; + a9 = 7; + a3 = 1; + a21 = 10; + a12 = 1; + a5 = 4; + a19 = 1; + a1 = 12; + a16 = 7; + return -1; + } else if(((!(a4==1)&&((!(a14==1)&&((a21==10)&&(((a5==4)&&(((a16==10)&&(((input==5)&&(a1==12))&&(a11==1)))&&(a2==1)))&&(a17==2))))&&(a23==1)))&&(((((a20==1)&&(a3==1))&&(a3==1))&&(a19==3))&&(a9==8)))){ + a9 = 7; + a12 = 1; + a3 = 1; + a24 = 0; + a16 = 7; + a19 = 1; + return -1; + } else if((((!(a13==1)||((a17==2)&&((a9==11)&&(((a16==8)&&(a6==1))&&(a21==11)))))||!(a2==1))&&((!(a20==1)&&((a28==1)&&((a1==14)&&(((a13==1)&&((a11==1)&&((input==3)&&(a19==4))))&&!(a8==1)))))&&(a5==6)))){ + a9 = 7; + a3 = 1; + a21 = 10; + a13 = 1; + a20 = 1; + a5 = 4; + a4 = 0; + a19 = 1; + a16 = 7; + a1 = 12; + return -1; + } else if((((a28==1)&&((a27==1)||((a19==3)&&((a20==1)&&(((a16==9)&&(a3==1))||(a18==1))))))&&(!(a8==1)&&(!(a24==1)&&(!(a27==1)&&(((((input==1)&&((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5))))&&(a21==10))&&(a1==13))&&(a17==2))))))){ + a16 = 7; + a28 = 1; + a5 = 4; + a14 = 0; + a9 = 7; + a19 = 1; + a4 = 0; + a1 = 12; + return -1; + } else if((((a7==1)||(((((a20==1)&&(a2==1))&&(a19==1))&&(a12==1))&&(a16==11)))&&(!(a26==1)&&((((a9==8)&&((a17==2)&&((a21==11)&&((a5==5)&&(((input==5)&&(a1==13))&&(a2==1))))))&&(a28==1))&&!(a0==1))))){ + a5 = 6; + a16 = 10; + a19 = 4; + a14 = 0; + a1 = 12; + a13 = 1; + a8 = 0; + return 21; + } else if(((((a19==1)&&(((a16==11)&&((a17==2)&&(a23==1)))&&(a1==14)))&&!(a7==1))&&(((a20==1)&&(((a12==1)&&(((a21==10)&&(!(a0==1)&&((((a5==4)||(a5==5))&&(input==4))&&(a2==1))))&&(a9==8)))&&(a23==1)))&&!(a7==1)))){ + a9 = 7; + a16 = 7; + a4 = 0; + a11 = 1; + a5 = 4; + a2 = 1; + a1 = 12; + return -1; + } else if((((a24==1)||(((a11==1)&&((((a28==1)&&(a17==2))&&!(a24==1))||!(a11==1)))||(a24==1)))&&(((((((((((a1==14)&&(a5==6))&&(a9==11))&&(a19==1))||((a19==2)&&(((a5==4)&&(a1==12))&&(a9==7))))||((((a5==5)&&(a1==12))&&(a9==7))&&(a19==2)))&&(input==4))&&(a20==1))&&(a21==11))&&(a16==10))&&!(a26==1)))){ + a9 = 7; + a23 = 1; + a16 = 7; + a28 = 1; + a1 = 12; + a5 = 4; + a19 = 1; + a3 = 1; + a21 = 10; + return -1; + } else if((((a19==4)&&((a1==12)&&(((!(a26==1)&&(((a6==1)&&(a23==1))&&(a17==2)))&&(a21==11))&&!(a4==1))))&&((((a16==8)&&(!(a14==1)&&(((input==4)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&!(a7==1))))&&!(a8==1))&&!(a20==1)))){ + a19 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + a12 = 1; + a20 = 1; + a26 = 0; + a21 = 10; + return -1; + } else if((((a9==8)&&((((!(a20==1)&&(!(a3==1)||(a13==1)))&&(a21==10))&&(a16==7))&&(a19==3)))&&((((a13==1)&&(!(a26==1)&&((!(a27==1)&&((a17==2)&&((input==5)&&((a5==5)||(a5==6)))))&&!(a8==1))))&&!(a18==1))&&(a1==12)))){ + a20 = 1; + a5 = 4; + a28 = 1; + a23 = 1; + a0 = 0; + a19 = 1; + a9 = 7; + return -1; + } else if(((!(a4==1)&&((a19==3)&&(((input==3)&&((a5==4)||(a5==5)))&&(a17==2))))&&((a13==1)&&(((((!(a27==1)&&((a21==11)&&((((a16==9)&&(a13==1))||!(a28==1))&&(a20==1))))&&(a9==7))&&!(a18==1))&&(a23==1))&&(a1==14))))){ + a28 = 1; + a5 = 4; + a16 = 7; + a21 = 10; + a19 = 1; + a26 = 0; + a1 = 12; + a11 = 1; + return -1; + } else if((((a19==2)&&((a17==2)&&((((a24==1)||(a13==1))||(a18==1))&&!(a27==1))))&&((!(a7==1)&&((a20==1)&&(((a16==8)&&((a1==12)&&((a21==11)&&((input==3)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))))))&&!(a27==1))))&&!(a24==1)))){ + a19 = 1; + a16 = 7; + a5 = 4; + a28 = 1; + a0 = 0; + a21 = 10; + a9 = 7; + a27 = 0; + return -1; + } else if((((a17==2)&&(((a19==1)&&((a16==10)&&((((((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6))))&&(input==5))&&(a21==12))&&!(a3==1))))&&(a20==1)))&&((a1==13)&&(((((a4==1)&&((a11==1)&&!(a12==1)))&&!(a12==1))&&!(a2==1))&&!(a11==1))))){ + a21 = 11; + a1 = 12; + a4 = 1; + a9 = 10; + a15 = 0; + a19 = 2; + a5 = 6; + a25 = 1; + return 22; + } else if((((a9==11)&&((((a28==1)&&!(a11==1))&&!(a6==1))&&(a21==10)))&&((a16==8)&&((a17==2)&&((a19==4)&&((((a7==1)&&((!(a20==1)&&((a8==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6))))&&(a26==1)))&&!(a12==1))&&(a1==13))))))){ + a20 = 1; + a10 = 1; + a1 = 12; + a19 = 2; + a6 = 0; + a16 = 7; + a5 = 6; + a24 = 1; + a9 = 10; + return 21; + } else if(((!(a8==1)&&(((a17==2)&&((a21==11)&&((((a1==14)&&(((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5)))&&(input==1)))&&(a19==5))&&(a13==1))))&&(a2==1)))&&((((a16==9)&&(!(a27==1)&&((a2==1)&&!(a20==1))))&&(a28==1))&&!(a14==1)))){ + a5 = 5; + a20 = 1; + a9 = 9; + a2 = 0; + a8 = 1; + a7 = 1; + a19 = 2; + return -1; + } else if(((((((a28==1)&&(a17==2))&&(a9==11))&&!(a0==1))&&(a1==12))&&(((((a16==8)&&(!(a26==1)&&(((a19==1)&&((a20==1)&&((a21==11)&&(((a5==5)||(a5==6))&&(input==4)))))&&(a6==1))))&&(a6==1))&&(a28==1))&&(a13==1)))){ + a16 = 7; + a5 = 4; + a9 = 7; + a3 = 1; + a21 = 10; + a0 = 0; + a6 = 1; + return -1; + } else if((((((!(a26==1)&&(a2==1))||(a14==1))&&(a9==8))||(a8==1))&&(((!(a20==1)&&(!(a26==1)&&((a16==10)&&((((a5==4)&&((a19==4)&&((a17==2)&&(input==3))))&&(a2==1))&&(a21==11)))))&&(a1==14))&&(a11==1)))){ + if((a7==1)){ + a9 = 7; + a19 = 2; + a1 = 13; + a20 = 1; + a16 = 7; + a26 = 1; + a27 = 1; + a23 = 0; + a21 = 10; + }else{ + a21 = 10; + a5 = 5; + a16 = 11; + a9 = 11; + a20 = 1; + a19 = 2; + a3 = 0; + a13 = 0; + } + return -1; + } else if(((((((a21==10)&&((((a3==1)&&((input==5)&&(a9==9)))&&(a5==5))&&(a16==9)))&&!(a26==1))&&(a6==1))&&(a3==1))&&((a17==2)&&(((!(a3==1)||((a1==12)&&((a11==1)&&!(a24==1))))&&!(a20==1))&&(a19==3))))){ + a16 = 7; + a8 = 1; + a5 = 4; + a19 = 2; + a29 = 0; + a11 = 0; + a20 = 1; + return -1; + } else if(((((((a1==14)&&((((a9==8)&&((input==5)&&(a5==6)))&&!(a14==1))&&(a13==1)))&&(a20==1))&&(a12==1))&&(a19==3))&&((!(a23==1)||(!(a11==1)||((a27==1)||(((a21==11)&&(a6==1))&&(a16==11)))))&&(a17==2)))){ + a9 = 7; + a19 = 1; + a16 = 7; + a21 = 10; + a5 = 4; + a1 = 12; + a6 = 1; + a7 = 0; + return -1; + } else if(((((a19==2)&&(((a21==12)&&((a27==1)||((a23==1)||(a27==1))))&&(a17==2)))&&(a1==12))&&(((((!(a20==1)&&(((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==1))&&(a16==9)))&&(a13==1))&&!(a26==1))&&!(a27==1))&&(a3==1)))){ + if((a27==1)){ + a16 = 7; + a1 = 13; + a25 = 1; + a9 = 9; + a20 = 1; + a18 = 1; + a19 = 1; + a29 = 1; + a21 = 10; + a5 = 4; + }else{ + a1 = 14; + a7 = 1; + a11 = 0; + a16 = 7; + a21 = 10; + a5 = 5; + a9 = 11; + a6 = 0; + a20 = 1; + a19 = 1; + } + return -1; + } else if((((a8==1)||((((((a20==1)&&((a16==11)&&(a3==1)))&&(a12==1))&&!(a7==1))&&(a1==14))||(a0==1)))&&((!(a7==1)&&((!(a14==1)&&(((a17==2)&&((input==1)&&(a21==11)))&&(a9==8)))&&(a19==3)))&&(a5==6)))){ + a13 = 1; + a5 = 4; + a16 = 7; + a4 = 0; + a9 = 7; + a19 = 1; + a21 = 10; + a1 = 12; + return -1; + } else if(((((((a14==1)||((a6==1)&&(a21==11)))&&(a9==11))||(a24==1))&&(a1==14))&&((a2==1)&&(((((a5==5)&&((((a16==7)&&((input==1)&&(a19==3)))&&!(a20==1))&&(a6==1)))&&(a17==2))&&(a23==1))&&!(a26==1))))){ + a21 = 10; + a8 = 0; + a20 = 1; + a5 = 6; + a24 = 0; + a1 = 13; + a12 = 1; + a19 = 2; + return -1; + } else if((((a6==1)&&(!(a8==1)&&((a21==11)&&((a23==1)&&!(a4==1)))))&&(((a17==2)&&(((a16==10)&&(((a1==14)&&((!(a14==1)&&((a3==1)&&((input==5)&&(a5==4))))&&(a19==4)))&&(a9==8)))&&!(a24==1)))&&!(a20==1)))){ + a5 = 6; + a25 = 0; + a11 = 0; + a16 = 7; + a21 = 10; + a19 = 1; + a20 = 1; + a2 = 0; + return 22; + } else if(((((((a0==1)||(((((a16==8)&&(a2==1))&&(a17==2))&&(a13==1))&&!(a8==1)))||!(a6==1))||(a24==1))||!(a13==1))&&((((input==1)&&(((a19==3)&&(((a1==12)&&(a5==5))&&(a9==7)))||(((((a5==6)&&(a1==14))&&(a9==11))&&(a19==2))||((a19==3)&&(((a1==12)&&(a5==4))&&(a9==7))))))&&(a21==10))&&(a20==1)))){ + a1 = 12; + a0 = 0; + a5 = 4; + a3 = 1; + a19 = 1; + a9 = 7; + a16 = 7; + a24 = 0; + return -1; + } else if((((a17==2)&&((a16==10)&&((a13==1)&&(((a9==8)&&(((a19==5)&&((a11==1)&&((!(a26==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))&&(a21==10))))&&(a1==12)))&&!(a24==1)))))&&((!(a11==1)||((a3==1)&&(a28==1)))&&(a20==1)))){ + a23 = 1; + a5 = 5; + a2 = 1; + a19 = 1; + a21 = 11; + a16 = 9; + a11 = 1; + return -1; + } else if((((((a20==1)&&(!(a14==1)&&((a11==1)&&((a23==1)&&(a23==1)))))&&(a17==2))&&(a19==1))&&((a5==4)&&((a9==11)&&((a16==11)&&((!(a26==1)&&((a21==12)&&(((input==3)&&(a1==13))&&(a2==1))))&&!(a27==1))))))){ + a16 = 7; + a21 = 10; + a9 = 7; + a1 = 12; + a7 = 0; + a4 = 0; + return -1; + } else if(((!(a4==1)&&(((a23==1)&&(a3==1))&&!(a20==1)))&&((a19==5)&&(!(a18==1)&&((((a9==9)&&((a6==1)&&((a1==13)&&((a16==7)&&((a28==1)&&(!(a18==1)&&(((a5==4)||(a5==5))&&(input==4))))))))&&(a17==2))&&(a21==11)))))){ + a19 = 1; + a1 = 12; + a28 = 1; + a5 = 4; + a9 = 7; + a14 = 0; + a20 = 1; + a4 = 0; + a21 = 10; + return -1; + } else if((((a20==1)&&(!(a24==1)&&((a1==12)&&((((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a26==1))&&(a19==3)))))&&((a21==10)&&(((a16==10)&&((a14==1)||((a6==1)&&((a9==7)&&((a12==1)&&((a13==1)||!(a11==1)))))))&&(a17==2))))){ + a21 = 11; + a24 = 0; + a0 = 0; + a9 = 8; + a13 = 1; + a19 = 4; + a5 = 6; + return 21; + } else if((((a16==10)&&(!(a12==1)&&((((((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))&&(input==1))&&!(a2==1))&&(a17==2))&&(a0==1))))&&((((((a4==1)&&(((a6==1)&&(a20==1))&&(a14==1)))&&(a19==2))&&(a26==1))&&(a1==14))&&(a21==11)))){ + a27 = 1; + a14 = 1; + a9 = 7; + a19 = 1; + a21 = 10; + a16 = 7; + a5 = 5; + a12 = 0; + return 21; + } else if(((((((a26==1)||((((a12==1)||(a0==1))||(a0==1))&&!(a7==1)))&&(a16==10))&&(a17==2))&&!(a20==1))&&(!(a8==1)&&(((((a21==11)&&((input==5)&&((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4)))))&&(a1==13))&&(a19==5))&&!(a0==1))))){ + a15 = 1; + a21 = 10; + a9 = 9; + a19 = 4; + a5 = 6; + a1 = 14; + a23 = 0; + a16 = 7; + a27 = 1; + return 21; + } else if((((a17==2)&&(!(a8==1)&&((a28==1)&&((!(a18==1)&&((a11==1)&&(((a5==4)||(a5==5))&&(input==4))))&&(a20==1)))))&&((a16==11)&&(((((a1==14)&&((a19==4)&&((a14==1)||(a3==1))))&&(a21==10))||(a14==1))&&(a9==11))))){ + a1 = 12; + a11 = 1; + a16 = 7; + a9 = 7; + a19 = 1; + a14 = 0; + a7 = 0; + a5 = 4; + return -1; + } else if((((a6==1)&&((((((a17==2)&&(((a9==9)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))&&(a28==1)))&&(a28==1))&&(a19==1))&&!(a26==1))&&(a1==13)))&&((a16==8)&&((((a20==1)&&((a8==1)||(a6==1)))&&(a21==11))||!(a28==1))))){ + if((a13==1)){ + a5 = 6; + a16 = 7; + a19 = 2; + a9 = 8; + a21 = 12; + a1 = 12; + a20 = 0; + a12 = 1; + a23 = 1; + a11 = 1; + }else{ + a19 = 3; + a9 = 11; + a26 = 0; + a7 = 0; + a16 = 10; + a1 = 12; + a21 = 10; + a27 = 0; + a5 = 5; + } + return 25; + } else if((((!(a24==1)&&(!(a26==1)&&((((((a1==12)&&((a3==1)&&(((a5==5)||(a5==6))&&(input==4))))&&(a9==8))&&(a17==2))&&(a2==1))&&(a12==1))))&&!(a0==1))&&(((((a19==5)&&(a2==1))&&(a16==7))&&(a21==11))&&(a20==1)))){ + a24 = 0; + a9 = 7; + a5 = 4; + a21 = 10; + a13 = 1; + a19 = 1; + return -1; + } else if((((a14==1)&&((((a21==10)&&(((input==1)&&(a9==7))&&!(a12==1)))&&(a26==1))&&(a8==1)))&&(((a17==2)&&((a19==5)&&((a1==13)&&((!(a3==1)&&((a20==1)&&((a5==4)&&(a13==1))))&&(a16==7)))))&&!(a6==1)))){ + a19 = 1; + a11 = 0; + a24 = 1; + a20 = 0; + a5 = 5; + a1 = 12; + a21 = 11; + a9 = 11; + a18 = 1; + return 25; + } else if((((a16==10)&&((a21==12)&&(((((a1==12)&&((a19==2)&&((((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))&&(input==3))))&&!(a27==1))&&(a2==1))&&!(a14==1))))&&(!(a20==1)&&((!(a3==1)||(((a12==1)&&!(a4==1))&&(a17==2)))&&!(a0==1))))){ + if((a15==1)){ + a25 = 0; + a5 = 4; + a1 = 14; + a19 = 1; + a8 = 1; + a16 = 7; + a24 = 1; + a9 = 10; + a20 = 1; + a21 = 10; + }else{ + a19 = 1; + a21 = 10; + a0 = 1; + a14 = 1; + a1 = 13; + a16 = 7; + a5 = 5; + a20 = 1; + a18 = 1; + a9 = 9; + } + return 23; + } else if((((a17==2)&&(!(a20==1)&&((a19==3)&&((a1==12)&&(((a13==1)&&((a9==8)&&(((a5==5)||(a5==6))&&(input==4))))&&!(a0==1))))))&&((a21==11)&&((!(a28==1)||((((a13==1)&&(a11==1))&&!(a14==1))||!(a28==1)))&&(a16==9))))){ + a23 = 0; + a15 = 1; + a12 = 0; + a5 = 6; + a16 = 7; + a1 = 13; + a9 = 10; + a19 = 4; + return -1; + } else if((((((a21==10)&&((a19==2)&&((a6==1)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))))&&(a6==1))&&!(a20==1))&&((a8==1)||(((((a16==11)&&(!(a2==1)||(!(a28==1)||((a2==1)&&(a9==11)))))&&(a17==2))&&(a1==13))&&(a6==1))))){ + a19 = 3; + a21 = 12; + a7 = 1; + a1 = 14; + a5 = 6; + a16 = 7; + a22 = 1; + a23 = 0; + return -1; + } else if(((!(a8==1)&&(((((a1==13)&&(!(a18==1)&&((a16==8)&&(((input==3)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5))))&&(a19==3)))))&&(a17==2))&&(a23==1))&&(a3==1)))&&(((((a11==1)&&!(a20==1))||(a24==1))&&(a21==11))&&(a6==1)))){ + a1 = 12; + a16 = 7; + a20 = 1; + a8 = 0; + a5 = 4; + a9 = 7; + a23 = 1; + a19 = 1; + a6 = 1; + a21 = 10; + return -1; + } else if(((!(a18==1)&&(((a3==1)&&(((a20==1)&&((a0==1)||(a2==1)))&&(a3==1)))&&(a17==2)))&&((!(a4==1)&&((!(a18==1)&&(((((a9==7)&&((a5==4)&&(a1==12)))&&(a19==5))||(((((a1==14)&&(a5==5))&&(a9==11))&&(a19==4))||((((a1==14)&&(a5==6))&&(a9==11))&&(a19==4))))&&(input==4)))&&(a21==10)))&&(a16==9)))){ + a5 = 4; + a9 = 7; + a23 = 1; + a19 = 1; + a28 = 1; + a1 = 12; + a16 = 7; + return -1; + } else if((((a23==1)&&((a16==8)&&(((a19==5)&&(((a14==1)||((a21==12)&&(a28==1)))&&(a17==2)))||!(a6==1))))&&((a9==9)&&(!(a18==1)&&((!(a20==1)&&((!(a8==1)&&((input==6)&&(a5==6)))&&!(a4==1)))&&(a1==13)))))){ + if((a26==1)){ + a16 = 7; + a1 = 12; + a21 = 10; + a19 = 2; + a20 = 1; + a2 = 0; + a22 = 1; + a9 = 8; + a26 = 1; + }else{ + a19 = 2; + a16 = 10; + a7 = 1; + a1 = 12; + a27 = 1; + a5 = 5; + } + return 21; + } else if((((a16==9)&&((a17==2)&&((a23==1)&&(a11==1))))&&(((a12==1)&&((a28==1)&&((!(a0==1)&&(((a3==1)&&(((input==3)&&(((((a5==6)&&(a1==12))&&(a9==11))||((a9==7)&&((a1==13)&&(a5==4))))||((a9==7)&&((a5==5)&&(a1==13)))))&&(a21==10)))&&(a19==3)))&&!(a14==1))))&&(a20==1)))){ + a23 = 1; + a14 = 0; + a1 = 13; + a9 = 9; + a21 = 11; + a5 = 4; + a19 = 4; + a13 = 1; + return 26; + } else if(((((((a23==1)&&((input==5)&&(a1==13)))&&!(a4==1))&&!(a20==1))&&(a19==3))&&(((a16==10)&&(((!(a23==1)||((((a9==7)&&((a3==1)&&(a5==4)))&&(a3==1))&&(a17==2)))&&!(a4==1))||!(a6==1)))&&(a21==11)))){ + a1 = 12; + a20 = 1; + a8 = 1; + a21 = 12; + a5 = 5; + a19 = 5; + a3 = 0; + a16 = 8; + a15 = 1; + return -1; + } else if(((((a16==9)&&(!(a18==1)&&(((a1==14)&&((a19==1)&&((a2==1)&&((((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(input==4)))))&&(a21==10))))&&(a2==1))&&((!(a14==1)&&(((!(a20==1)&&(a6==1))&&(a17==2))&&!(a27==1)))&&(a28==1)))){ + a21 = 12; + a29 = 1; + a13 = 0; + a9 = 8; + a16 = 10; + a28 = 0; + a5 = 6; + a1 = 12; + return 22; + } else if(((!(a20==1)&&((a9==7)&&((a16==9)&&(!(a0==1)&&((a3==1)&&!(a18==1))))))&&((((((a21==11)&&((a13==1)&&((((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a17==2))&&!(a24==1))))&&(a19==4))&&(a23==1))&&(a1==12))&&!(a27==1)))){ + if((a10==1)){ + a20 = 1; + a25 = 0; + a19 = 2; + a8 = 1; + a5 = 4; + a24 = 1; + a9 = 11; + a16 = 7; + a21 = 10; + }else{ + a13 = 0; + a19 = 1; + a28 = 0; + a5 = 6; + a20 = 1; + a15 = 1; + a21 = 10; + a16 = 7; + a9 = 8; + a1 = 14; + } + return -1; + } else if(((((a21==10)&&(!(a20==1)&&((a11==1)&&(((a2==1)&&(a17==2))||(a7==1)))))&&(a16==11))&&((!(a24==1)&&((a19==1)&&(!(a24==1)&&((a9==8)&&(((a1==14)&&((input==6)&&((a5==5)||(a5==6))))&&!(a27==1))))))&&!(a0==1)))){ + a15 = 0; + a20 = 1; + a5 = 5; + a8 = 1; + a9 = 7; + a3 = 0; + a16 = 7; + a1 = 12; + a19 = 2; + return -1; + } else if((((a24==1)||(!(a28==1)||((((a1==12)&&(!(a20==1)&&((a19==1)&&((a23==1)&&(a17==2)))))||(a8==1))&&(a9==10))))&&(((a16==10)&&(((a12==1)&&((((a5==4)||(a5==5))&&(input==3))&&(a28==1)))&&(a21==10)))&&!(a26==1)))){ + a20 = 1; + a26 = 1; + a1 = 14; + a16 = 7; + a23 = 0; + a6 = 0; + a5 = 5; + return -1; + } else if((((a9==7)&&((a20==1)&&(((((a11==1)&&(a23==1))&&(a5==5))||(a27==1))&&(a17==2))))&&((!(a14==1)&&(((!(a18==1)&&((((a1==12)&&(input==4))&&(a21==11))&&(a16==10)))&&!(a8==1))&&!(a0==1)))&&(a19==5)))){ + a16 = 7; + a2 = 1; + a13 = 1; + a5 = 4; + a19 = 1; + a21 = 10; + a6 = 1; + return -1; + } else if((((a1==14)&&((a19==4)&&(!(a4==1)&&((a17==2)&&((a9==8)&&(!(a28==1)||((a6==1)&&(a6==1))))))))&&((a21==11)&&(((((((a5==4)&&(input==3))&&(a23==1))&&!(a0==1))&&!(a0==1))&&(a20==1))&&(a16==8))))){ + a27 = 0; + a1 = 12; + a9 = 7; + a14 = 0; + a21 = 10; + a19 = 1; + a16 = 7; + a8 = 0; + return -1; + } else if((((a16==7)&&(((((a9==10)&&((!(a28==1)||(((a8==1)||(!(a18==1)&&(a2==1)))&&(a19==3)))&&(a20==1)))||(a4==1))&&(a17==2))&&(a1==12)))&&((a28==1)&&((!(a0==1)&&(((a5==4)||(a5==5))&&(input==4)))&&(a21==12))))){ + a7 = 0; + a18 = 0; + a2 = 1; + a9 = 7; + a21 = 10; + a5 = 4; + a19 = 1; + return -1; + } else if(((!(a4==1)&&((!(a23==1)||((!(a2==1)||((((a6==1)&&(a17==2))&&(a1==12))||(a7==1)))&&(a9==8)))&&(a21==10)))&&(!(a7==1)&&((((a20==1)&&((a16==11)&&((input==6)&&((a5==5)||(a5==6)))))&&!(a26==1))&&(a19==3))))){ + if((a27==1)){ + a20 = 0; + a16 = 8; + a1 = 14; + a19 = 2; + a5 = 6; + a18 = 0; + a0 = 0; + a3 = 1; + }else{ + a5 = 5; + a1 = 13; + a27 = 0; + a21 = 11; + a20 = 0; + a9 = 10; + a7 = 0; + a16 = 8; + } + return 25; + } else if((((a19==4)&&((!(a8==1)&&((a23==1)&&((a28==1)&&!(a20==1))))&&(a17==2)))&&((((!(a0==1)&&((a16==10)&&((((input==5)&&(((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))&&(a21==12))&&!(a7==1))))&&(a13==1))&&(a1==13))&&(a11==1)))){ + if((a16==7)){ + a9 = 9; + a2 = 0; + a27 = 1; + a21 = 10; + a6 = 0; + a19 = 1; + a5 = 6; + a1 = 12; + a20 = 1; + a16 = 7; + }else{ + a4 = 1; + a24 = 1; + a9 = 10; + a5 = 4; + a14 = 1; + a16 = 7; + a1 = 14; + } + return -1; + } else if(((!(a26==1)&&(((((a13==1)&&(a1==13))&&(a16==7))&&(a19==5))&&!(a26==1)))&&((a3==1)&&((a6==1)&&(!(a24==1)&&(((a21==11)&&((((input==3)&&(((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))))&&(a17==2))&&!(a20==1)))&&!(a24==1))))))){ + a12 = 1; + a19 = 1; + a9 = 7; + a1 = 12; + a5 = 4; + a14 = 0; + a20 = 1; + a21 = 10; + a27 = 0; + return -1; + } else if(((((!(a13==1)||((a28==1)&&(((a16==9)&&((a2==1)&&(a17==2)))&&(a3==1))))&&(a21==12))&&(a11==1))&&(!(a14==1)&&((!(a20==1)&&((a19==2)&&(((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==6))&&!(a27==1))))&&(a1==12))))){ + if((a20==1)){ + a5 = 5; + a21 = 10; + a16 = 7; + a9 = 9; + a0 = 1; + a20 = 1; + a11 = 0; + }else{ + a24 = 1; + a5 = 5; + a21 = 10; + a16 = 7; + a20 = 1; + a19 = 1; + a15 = 0; + a8 = 1; + a9 = 7; + a1 = 14; + } + return -1; + } else if((((a16==10)&&((a21==10)&&((a3==1)&&((a17==2)&&((((a9==10)&&(input==4))&&!(a26==1))&&!(a20==1))))))&&((a19==3)&&((((!(a23==1)||((a18==1)||((a2==1)&&(a5==4))))||(a27==1))&&!(a4==1))&&(a1==13))))){ + a10 = 0; + a5 = 5; + a9 = 8; + a19 = 4; + a21 = 11; + a18 = 1; + a1 = 12; + a29 = 0; + return -1; + } else if((((a16==7)&&((a1==13)&&((((!(a3==1)&&(((((a17==2)&&(a11==1))&&(a0==1))&&(a21==12))&&(a19==5)))&&(a0==1))&&(a7==1))&&(a7==1))))&&(((a5==4)&&(!(a23==1)&&((input==5)&&(a9==7))))&&(a20==1)))){ + a2 = 0; + a1 = 12; + a9 = 8; + a5 = 6; + a21 = 10; + a27 = 1; + a19 = 2; + a22 = 1; + return 21; + } else if((((a19==1)&&(((((a5==4)||(a5==5))&&(input==3))&&(a1==14))&&(a21==10)))&&((a17==2)&&((((a20==1)&&(!(a14==1)&&(((!(a14==1)&&(!(a28==1)||((a9==8)&&(a3==1))))||(a24==1))&&(a16==11))))||(a0==1))||(a18==1))))){ + a21 = 11; + a19 = 2; + a26 = 0; + a5 = 6; + a1 = 12; + a28 = 1; + a2 = 1; + return 23; + } else if((((((a19==4)&&((!(a0==1)&&((((((a5==5)&&(a1==13))&&(a9==11))||((a9==11)&&((a1==13)&&(a5==6))))||((a9==7)&&((a1==14)&&(a5==4))))&&(input==3)))&&(a16==7)))&&!(a7==1))&&!(a20==1))&&(!(a12==1)||(((!(a6==1)||((a21==11)&&((a17==2)&&(a6==1))))&&(a11==1))||!(a3==1))))){ + a8 = 0; + a9 = 7; + a20 = 1; + a11 = 1; + a5 = 4; + a28 = 1; + a21 = 10; + a1 = 12; + a19 = 1; + return -1; + } else if((((a3==1)&&((a11==1)&&(((((a23==1)&&(((((((a9==11)&&((a1==12)&&(a5==6)))||(((a5==4)&&(a1==13))&&(a9==7)))||(((a1==13)&&(a5==5))&&(a9==7)))&&(input==4))&&(a16==9))&&(a19==5)))&&!(a24==1))&&(a6==1))&&(a2==1))))&&((a21==12)&&((a17==2)&&(!(a20==1)&&(a3==1)))))){ + a19 = 1; + a16 = 7; + a20 = 1; + a9 = 8; + a1 = 13; + a24 = 1; + a11 = 0; + a5 = 5; + a13 = 0; + a21 = 10; + return -1; + } else if(((((a20==1)&&(!(a13==1)&&((((a21==10)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))&&(a8==1))&&(a19==2))))&&!(a11==1))&&((a24==1)&&((a17==2)&&(((a16==9)&&((((a7==1)&&(a3==1))&&(a1==14))&&!(a12==1)))&&(a9==7)))))){ + a21 = 12; + a5 = 5; + a13 = 0; + a15 = 0; + a16 = 8; + a12 = 0; + return 25; + } else if((((a17==2)&&(((a21==12)&&((!(a18==1)&&(!(a27==1)&&((a19==5)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))&&(input==6)))))&&(a16==7)))&&(a12==1)))&&(!(a8==1)&&(((!(a3==1)||((a23==1)&&!(a24==1)))&&(a1==14))&&(a20==1))))){ + a8 = 0; + a23 = 1; + a19 = 1; + a16 = 9; + a1 = 12; + a9 = 10; + a7 = 0; + a5 = 5; + return 22; + } else if(((((a20==1)&&((((a6==1)&&(a11==1))&&(a21==11))&&!(a24==1)))&&(a23==1))&&(!(a24==1)&&((a19==2)&&((a17==2)&&(((a11==1)&&(((a1==13)&&((((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6))))&&(input==5)))&&!(a4==1)))&&(a16==7))))))){ + a16 = 8; + a12 = 1; + a9 = 7; + a1 = 14; + a5 = 5; + a6 = 1; + a23 = 1; + a21 = 10; + a19 = 3; + return 23; + } else if(((!(a14==1)&&(((((a16==9)&&(((((a5==4)||(a5==5))&&(input==5))&&(a1==13))&&!(a27==1)))&&(a3==1))&&(a21==10))&&!(a0==1)))&&(((((((a3==1)&&(a17==2))||!(a6==1))&&(a19==5))&&(a20==1))&&(a9==10))&&!(a18==1)))){ + a6 = 1; + a26 = 0; + a1 = 12; + a19 = 3; + a14 = 0; + a9 = 11; + a5 = 4; + return -1; + } else if(((((a17==2)&&(!(a4==1)&&(((a21==10)&&((((a1==12)&&(a11==1))&&(a19==5))&&(a3==1)))&&(a3==1))))&&(a20==1))&&(!(a26==1)&&((a16==8)&&((a13==1)&&((a3==1)&&((input==3)&&(((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6))))))))))){ + a1 = 13; + a2 = 1; + a13 = 1; + a16 = 7; + a9 = 11; + a19 = 2; + a5 = 5; + a26 = 0; + return -1; + } else if((((a17==2)&&(((a1==12)&&((((((input==3)&&(((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))))&&(a2==1))&&(a21==10))&&!(a24==1))&&(a6==1)))&&(a19==4)))&&(!(a20==1)&&((a16==11)&&(!(a4==1)&&(((a26==1)||(a2==1))||!(a13==1))))))){ + if((a3==1)){ + a0 = 1; + a29 = 1; + a13 = 0; + a5 = 4; + a20 = 1; + a1 = 13; + a9 = 8; + }else{ + a28 = 0; + a9 = 10; + a5 = 6; + a18 = 1; + a1 = 13; + a16 = 10; + a25 = 1; + a19 = 5; + a21 = 12; + } + return -1; + } else if((((a19==3)&&((a21==10)&&(((a1==13)&&(((a12==1)&&(!(a4==1)&&((a6==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4)))))&&!(a18==1)))&&(a16==10))))&&((a17==2)&&((((a20==1)&&((a0==1)||(a12==1)))&&(a9==10))&&(a13==1))))){ + a6 = 1; + a19 = 2; + a20 = 0; + a5 = 5; + a14 = 0; + a1 = 12; + a13 = 1; + a16 = 8; + return -1; + } else if((((((!(a27==1)&&((a20==1)&&(((a16==11)&&(input==3))&&(a21==12))))&&(a13==1))&&(a9==7))&&(a17==2))&&((a1==12)&&(!(a3==1)||((((a19==3)&&((a13==1)&&(!(a12==1)||(a6==1))))&&(a5==4))&&!(a8==1)))))){ + a21 = 10; + a19 = 1; + a0 = 0; + a16 = 7; + a14 = 0; + return -1; + } else if((((a9==10)&&((a11==1)&&((((a1==13)&&(((a23==1)&&((input==1)&&((a5==5)||(a5==6))))&&(a17==2)))&&(a16==7))&&(a23==1))))&&((a2==1)&&(((((a3==1)&&((a20==1)&&(a12==1)))||!(a6==1))&&(a21==12))&&(a19==5))))){ + a18 = 0; + a5 = 4; + a0 = 0; + a1 = 14; + a16 = 9; + a21 = 11; + a26 = 0; + a9 = 7; + return 22; + } else if(((!(a18==1)&&((a19==2)&&((a9==8)&&((a20==1)&&(!(a14==1)&&((a16==10)&&((((input==3)&&(a5==4))&&(a11==1))&&!(a18==1))))))))&&((!(a24==1)&&((a17==2)&&(!(a0==1)&&((a28==1)&&(a21==10)))))&&(a1==12)))){ + a19 = 1; + a16 = 7; + a2 = 1; + a9 = 7; + a18 = 0; + return -1; + } else if((((a19==5)&&((((((input==1)&&((a5==4)||(a5==5)))&&!(a20==1))&&!(a3==1))&&!(a28==1))&&(a17==2)))&&(((!(a23==1)&&((a8==1)&&(((a8==1)&&(((a9==8)&&(a12==1))&&(a16==7)))&&(a21==12))))&&(a0==1))&&(a1==14)))){ + a28 = 0; + a19 = 2; + a9 = 7; + a20 = 1; + a18 = 1; + a23 = 0; + a1 = 12; + a5 = 5; + a16 = 11; + return -1; + } else if(((!(a28==1)||((((a13==1)&&((!(a6==1)||((a11==1)&&(a17==2)))&&(a9==8)))&&(a6==1))&&(a1==13)))&&(!(a20==1)&&((a19==5)&&((((((input==6)&&(a5==6))&&!(a8==1))&&(a16==7))&&!(a18==1))&&(a21==11)))))){ + a9 = 11; + a4 = 0; + a20 = 1; + a16 = 9; + a3 = 1; + a19 = 4; + a1 = 12; + a18 = 0; + return 22; + } else if(((((((!(a28==1)||(((a12==1)&&!(a0==1))||!(a28==1)))||!(a3==1))&&(a17==2))&&(a3==1))&&(a16==8))&&(((a20==1)&&((!(a4==1)&&((a19==3)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&(a9==9))))&&(a1==12)))&&(a21==11)))){ + a18 = 0; + a9 = 7; + a5 = 4; + a16 = 7; + a19 = 1; + a14 = 0; + a21 = 10; + return -1; + } else if((((a19==5)&&(!(a20==1)&&((((((((input==3)&&(a21==12))&&!(a8==1))&&!(a18==1))&&(a1==14))&&(a9==11))&&(a2==1))&&(a17==2))))&&(((((a16==9)&&((a6==1)&&!(a8==1)))||(a27==1))||(a7==1))&&(a5==6)))){ + a8 = 1; + a20 = 1; + a6 = 0; + a21 = 10; + a25 = 0; + a5 = 5; + a9 = 8; + a16 = 7; + a19 = 1; + a1 = 12; + return -1; + } else if(((((a13==1)&&((a6==1)&&((a20==1)&&((a11==1)&&((((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a26==1))&&(a21==11))))))&&!(a4==1))&&(!(a6==1)||((a9==11)&&((((a16==8)&&((a17==2)&&(a6==1)))&&(a1==12))&&(a19==4)))))){ + if((a27==1)){ + a9 = 10; + a16 = 7; + a24 = 0; + a26 = 0; + a5 = 6; + a7 = 0; + a19 = 5; + a20 = 0; + }else{ + a16 = 10; + a19 = 2; + a2 = 1; + a18 = 0; + a5 = 5; + a9 = 9; + a14 = 0; + } + return 25; + } else if(((((a16==8)&&(((!(a11==1)&&(!(a12==1)&&((input==6)&&((a5==5)||(a5==6)))))&&(a21==12))&&(a1==12)))&&!(a3==1))&&(((!(a11==1)&&((a19==1)&&(((a20==1)&&((a9==11)&&(a6==1)))&&!(a11==1))))&&(a17==2))&&(a18==1)))){ + a9 = 8; + a23 = 0; + a5 = 6; + a18 = 1; + a19 = 2; + a11 = 0; + a16 = 7; + a21 = 10; + return -1; + } else if(((!(a14==1)&&(!(a20==1)&&((!(a4==1)&&((a19==3)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==4))))&&(a17==2))))&&(((a16==8)&&(((((a1==13)&&(!(a13==1)||(a12==1)))||!(a11==1))&&(a21==11))||!(a3==1)))&&(a3==1)))){ + a5 = 4; + a19 = 1; + a20 = 1; + a13 = 1; + a14 = 0; + a9 = 7; + a21 = 10; + a16 = 7; + a1 = 12; + a26 = 0; + return -1; + } else if(((!(a27==1)&&((((((a19==2)&&((a9==11)&&((a5==6)&&(a1==14))))||((((a5==4)&&(a1==12))&&(a9==7))&&(a19==3)))&&(input==3))&&!(a26==1))&&(a21==11)))&&(!(a14==1)&&((((a4==1)||(!(a20==1)&&(((a23==1)||(a27==1))&&(a17==2))))||(a26==1))&&(a16==9))))){ + a4 = 1; + a29 = 1; + a21 = 10; + a20 = 1; + a19 = 3; + a16 = 10; + a5 = 5; + a18 = 1; + a9 = 11; + a1 = 12; + return -1; + } else if((((!(a13==1)||(((a17==2)&&(!(a8==1)&&((!(a20==1)&&((a16==9)&&((a28==1)||(a0==1))))&&(a5==5))))||(a8==1)))||(a24==1))&&(((a1==12)&&(((a9==10)&&((a21==10)&&(input==4)))&&(a19==2)))&&(a28==1)))){ + a16 = 7; + a19 = 1; + a10 = 1; + a8 = 1; + a20 = 1; + a28 = 0; + return -1; + } else if((((!(a2==1)&&((a9==8)&&((a21==11)&&(((a1==14)&&(((input==1)&&(a16==10))&&(a24==1)))&&(a17==2)))))&&(a27==1))&&(((!(a11==1)&&(!(a11==1)&&(((a5==6)&&(a23==1))&&(a20==1))))&&(a4==1))&&(a19==2)))){ + a21 = 12; + a4 = 1; + a11 = 0; + a1 = 13; + a16 = 9; + a6 = 0; + a5 = 4; + a19 = 5; + return -1; + } else if((((a21==11)&&((a9==9)&&((a17==2)&&(((input==6)&&((a5==4)||(a5==5)))&&!(a24==1)))))&&(((a19==1)&&(!(a2==1)||((a16==9)&&((a8==1)||(((a24==1)||((a8==1)||((a23==1)&&(a1==13))))&&(a13==1))))))&&(a20==1)))){ + a9 = 10; + a3 = 1; + a8 = 0; + a1 = 14; + a19 = 4; + a27 = 0; + a5 = 5; + return 21; + } else if((((((a1==14)&&((a6==1)&&(((a17==2)&&(((input==1)&&(((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))))&&(a20==1)))&&(a13==1))))&&!(a8==1))&&!(a4==1))&&((a19==3)&&((a21==11)&&(!(a18==1)&&((a16==9)&&((a11==1)&&(a23==1)))))))){ + a5 = 4; + a9 = 7; + a19 = 1; + a21 = 10; + a16 = 7; + a1 = 12; + a13 = 1; + a18 = 0; + a2 = 1; + return -1; + } else if(((!(a23==1)||((!(a28==1)||((a12==1)&&(((a21==10)&&((a17==2)&&((a12==1)&&(a9==9))))&&(a19==1))))&&!(a24==1)))&&((((((a20==1)&&((a1==12)&&(input==5)))&&(a5==4))&&(a6==1))&&(a16==9))&&(a28==1)))){ + a18 = 0; + a9 = 7; + a28 = 1; + a12 = 1; + a16 = 11; + return 22; + } else if(((((((a16==9)&&(!(a27==1)&&(((((((a5==4)||(a5==5))&&(input==6))&&!(a18==1))&&(a2==1))&&!(a26==1))&&(a13==1))))&&(a20==1))&&(a19==2))&&(a21==10))&&(((a17==2)&&(((a9==7)&&(a11==1))&&(a2==1)))&&(a1==13)))){ + a5 = 4; + a12 = 1; + a1 = 12; + a28 = 1; + a19 = 1; + a3 = 1; + a16 = 7; + return -1; + } else if(((((((a1==14)&&((a2==1)||(a7==1)))&&(a5==4))&&(a3==1))&&(a20==1))&&((a21==12)&&((a28==1)&&(((((((a16==10)&&((a9==11)&&(input==6)))&&!(a0==1))&&(a17==2))&&(a19==2))&&!(a18==1))&&(a6==1)))))){ + a18 = 0; + a19 = 1; + a27 = 0; + a7 = 0; + a9 = 7; + a21 = 10; + a16 = 7; + a1 = 12; + return -1; + } else if(((((!(a8==1)&&((a23==1)&&(((((a19==4)&&(((input==6)&&(a21==11))&&(a16==7)))&&!(a0==1))&&(a13==1))&&(a2==1))))&&(a17==2))&&(a5==4))&&((a1==12)&&((a20==1)&&(((a23==1)&&!(a24==1))&&(a9==11)))))){ + a16 = 8; + a9 = 8; + a7 = 0; + a1 = 14; + a21 = 10; + a24 = 0; + a27 = 0; + a19 = 3; + a20 = 0; + return 22; + } else if((((a9==9)&&((((!(a28==1)&&((a1==14)&&(input==5)))&&(a16==9))&&!(a23==1))&&!(a13==1)))&&(!(a28==1)&&(((a17==2)&&(!(a23==1)&&(((a20==1)&&((!(a3==1)&&(a11==1))&&(a21==12)))&&(a19==2))))&&(a5==5))))){ + a5 = 4; + a16 = 7; + a29 = 0; + a19 = 1; + a21 = 10; + a1 = 12; + a13 = 0; + a9 = 10; + a18 = 1; + return -1; + } else if((((a24==1)||(((a21==12)&&(((((a11==1)||!(a12==1))&&(a1==12))&&(a19==2))||(a26==1)))&&(a9==7)))&&((((((a2==1)&&((a5==6)&&((a17==2)&&(input==6))))&&!(a20==1))&&(a13==1))&&(a3==1))&&(a16==10)))){ + a21 = 10; + a5 = 4; + a25 = 1; + a29 = 1; + a18 = 1; + a16 = 7; + a19 = 1; + a20 = 1; + a1 = 14; + return -1; + } else if(((((a23==1)&&(((((a16==8)&&(((input==4)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10))))&&!(a18==1)))&&(a19==2))&&(a21==10))&&(a20==1)))&&(a2==1))&&((a12==1)&&((a11==1)&&((a17==2)&&((a6==1)&&((a13==1)&&(a1==12)))))))){ + a9 = 7; + a3 = 1; + a16 = 7; + a24 = 0; + a19 = 1; + a13 = 1; + a5 = 4; + return -1; + } else if((((a6==1)&&(((((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(input==1))&&(a17==2))&&!(a20==1))&&(a21==10)))&&((a1==12)&&(((((a19==5)&&(((a16==7)&&(!(a27==1)&&(a12==1)))&&!(a4==1)))||!(a28==1))||(a24==1))||!(a23==1))))){ + a8 = 0; + a6 = 1; + a1 = 13; + a5 = 5; + a0 = 0; + a19 = 1; + a9 = 7; + a20 = 1; + return -1; + } else if((((!(a20==1)&&(((!(a6==1)&&((a16==8)&&(((input==3)&&((a5==4)||(a5==5)))&&(a4==1))))&&(a8==1))&&(a26==1)))&&(a21==11))&&((((a19==3)&&((a1==13)&&(!(a3==1)&&(!(a12==1)&&(a6==1)))))&&(a17==2))&&(a9==8)))){ + a19 = 1; + a9 = 10; + a20 = 1; + a5 = 4; + a16 = 7; + a2 = 0; + a22 = 0; + a1 = 14; + a21 = 10; + a18 = 1; + return -1; + } else if((((a21==12)&&(((a1==14)&&(((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5)))&&(input==5)))&&(a13==1)))&&((((((!(a4==1)&&((((a6==1)&&!(a24==1))&&(a19==1))&&(a28==1)))&&(a13==1))&&(a28==1))&&(a16==11))&&(a20==1))&&(a17==2)))){ + a18 = 0; + a1 = 12; + a5 = 6; + a9 = 9; + a12 = 1; + a23 = 1; + a19 = 4; + return 26; + } else if(((((a20==1)&&(((a21==10)&&((a17==2)&&(((a11==1)&&(a12==1))&&!(a7==1))))&&(a1==12)))&&(a16==7))&&((!(a27==1)&&((a12==1)&&((a3==1)&&(!(a24==1)&&((input==6)&&((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a5==4)&&(a9==11))))))))&&(a19==4)))){ + a0 = 0; + a21 = 11; + a5 = 5; + a9 = 10; + a13 = 1; + a6 = 1; + return 23; + } else if((((a9==11)&&((!(a0==1)&&((a1==13)&&(!(a2==1)||((a13==1)&&(a5==5)))))&&!(a7==1)))&&((a28==1)&&((!(a7==1)&&(((a2==1)&&((a21==12)&&(((a19==1)&&(input==3))&&(a16==7))))&&!(a20==1)))&&(a17==2))))){ + a21 = 10; + a9 = 7; + a2 = 1; + a5 = 4; + a20 = 1; + a28 = 1; + a1 = 12; + a18 = 0; + return -1; + } else if(((((((a1==12)&&(!(a20==1)&&(!(a14==1)&&(((input==1)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&!(a7==1)))))&&(a2==1))&&(a17==2))&&(a19==5))&&((((((a21==10)&&(a12==1))&&(a16==7))||!(a28==1))&&!(a26==1))&&!(a14==1)))){ + a5 = 6; + a20 = 1; + a9 = 7; + a16 = 10; + a1 = 14; + a19 = 2; + a0 = 0; + a3 = 1; + a13 = 1; + return 21; + } else if(((((((a9==9)&&((a16==7)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a1==12))&&(a12==1))))&&(a6==1))&&!(a8==1))&&(a19==1))&&((a17==2)&&((((((a11==1)||(a27==1))&&(a21==11))&&(a23==1))&&!(a20==1))&&!(a18==1))))){ + a2 = 1; + a26 = 0; + a9 = 7; + a20 = 1; + a21 = 10; + a5 = 4; + return -1; + } return calculate_output14(input); + } + + int calculate_output14(int input) { + if((((((a19==4)&&(!(a7==1)&&(((a21==12)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==6)))&&(a1==13))))&&!(a26==1))&&(a16==11))&&((a23==1)&&((((a18==1)||(((a23==1)&&(a23==1))&&(a17==2)))&&!(a24==1))&&(a20==1))))){ + a23 = 1; + a27 = 0; + a5 = 5; + a14 = 0; + a9 = 11; + a1 = 12; + a21 = 11; + a19 = 2; + return 21; + } else if((((a16==10)&&((a19==1)&&(((!(a3==1)||((a28==1)&&((a7==1)||(a23==1))))&&(a20==1))||(a27==1))))&&(((a17==2)&&((a6==1)&&((a21==12)&&((a1==13)&&((input==6)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5))))))))&&(a12==1)))){ + a9 = 9; + a11 = 1; + a16 = 7; + a21 = 10; + a5 = 4; + a13 = 1; + a19 = 2; + return 25; + } else if((((a16==7)&&(((a20==1)&&((a1==13)&&(((!(a8==1)&&((input==3)&&(a5==6)))&&(a21==10))&&(a11==1))))&&(a9==9)))&&(!(a7==1)&&((a17==2)&&(((!(a26==1)&&(!(a2==1)||(a2==1)))&&(a19==2))||(a24==1)))))){ + a19 = 3; + a2 = 1; + a13 = 1; + a18 = 0; + a9 = 7; + a5 = 4; + a1 = 12; + return 25; + } else if(((((a21==11)&&(((a1==13)&&(((a19==3)&&((((a5==4)||(a5==5))&&(input==1))&&(a11==1)))&&(a2==1)))&&!(a26==1)))&&(a3==1))&&((((((a9==8)&&((a28==1)||(a0==1)))&&(a16==8))&&(a17==2))&&!(a20==1))||!(a13==1)))){ + a20 = 1; + a21 = 10; + a26 = 0; + a19 = 2; + a5 = 4; + a6 = 1; + a9 = 9; + a16 = 7; + a27 = 0; + return 25; + } else if(((((a9==7)&&((a1==12)&&(((a6==1)||(a18==1))&&(a16==7))))&&(a20==1))&&((a19==5)&&(!(a27==1)&&((((a17==2)&&((a3==1)&&((a28==1)&&(!(a4==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1))))))&&(a21==11))&&(a3==1)))))){ + a24 = 0; + a5 = 5; + a28 = 1; + a1 = 14; + a16 = 8; + a0 = 0; + return 21; + } else if((((a17==2)&&((((a20==1)&&(((!(a0==1)&&(a11==1))||(a7==1))&&(a13==1)))&&!(a26==1))&&(a21==11)))&&((((a16==9)&&(!(a18==1)&&((a12==1)&&((a1==14)&&(((a5==4)||(a5==5))&&(input==6))))))&&(a9==8))&&(a19==3)))){ + a4 = 0; + a21 = 10; + a1 = 12; + a9 = 7; + a5 = 4; + a19 = 1; + a16 = 7; + a7 = 0; + return -1; + } else if((((a9==7)&&((a19==3)&&(!(a11==1)&&((((a20==1)&&((input==1)&&((a5==5)||(a5==6))))&&(a24==1))&&!(a13==1)))))&&((a1==14)&&((a7==1)&&(((a21==11)&&((((a28==1)&&!(a28==1))&&(a8==1))&&(a17==2)))&&(a16==10)))))){ + a21 = 10; + a9 = 8; + a15 = 1; + a10 = 0; + a5 = 5; + a23 = 0; + a19 = 1; + a1 = 12; + return -1; + } else if((((a24==1)||(!(a14==1)&&(((a17==2)&&((a13==1)&&(a16==9)))||!(a2==1))))&&((((a21==12)&&(!(a4==1)&&(((a20==1)&&(((input==3)&&((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9))))&&!(a8==1)))&&!(a7==1))))&&(a19==2))&&(a1==13)))){ + a1 = 12; + a5 = 4; + a19 = 1; + a21 = 10; + a16 = 7; + a18 = 0; + a9 = 7; + a12 = 1; + a24 = 0; + return -1; + } else if(((((((a16==9)&&((a6==1)&&((a1==12)&&((input==4)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))))))&&!(a14==1))&&(a21==10))&&!(a24==1))&&(((((!(a23==1)||((a17==2)&&(a6==1)))&&!(a20==1))||(a8==1))&&(a19==3))&&!(a7==1)))){ + a5 = 6; + a7 = 1; + a19 = 2; + a9 = 7; + a16 = 7; + a20 = 1; + a12 = 0; + return -1; + } else if((((a3==1)&&(((((a21==12)&&((a11==1)&&((input==5)&&((a5==5)||(a5==6)))))&&(a16==11))&&(a20==1))&&!(a14==1)))&&((a19==2)&&(!(a18==1)&&((((((a1==12)&&(a11==1))&&(a17==2))||(a26==1))||(a27==1))&&(a9==7)))))){ + a2 = 1; + a5 = 4; + a19 = 1; + a14 = 0; + a21 = 10; + a16 = 7; + a26 = 0; + return -1; + } else if(((((a6==1)&&(!(a20==1)&&((a2==1)&&((a19==4)&&((input==5)&&((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a5==4)&&(a9==8))))))))&&!(a8==1))&&(((a1==14)&&((((a17==2)&&((a16==7)&&((a21==12)&&(a6==1))))&&!(a14==1))||(a8==1)))||(a27==1)))){ + a4 = 0; + a20 = 1; + a27 = 0; + a19 = 1; + a9 = 7; + a21 = 10; + a12 = 1; + a1 = 12; + a5 = 4; + return -1; + } else if((((!(a18==1)&&((((a16==10)&&(((a5==5)&&((a1==12)&&(!(a4==1)&&((a9==9)&&((a21==11)&&(((a17==2)&&(input==6))&&(a23==1)))))))&&(a11==1)))&&(a19==5))&&!(a14==1)))&&!(a24==1))&&((a20==1)&&(a11==1)))){ + a19 = 4; + a14 = 0; + a18 = 0; + a21 = 10; + a16 = 8; + a5 = 4; + a8 = 0; + a9 = 7; + return 25; + } else if((((a20==1)&&(((a14==1)||((a6==1)&&(a16==7)))&&(a1==13)))&&((a21==11)&&(((!(a8==1)&&(((a19==2)&&(((a2==1)&&((((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10))))&&(input==1)))&&(a13==1)))&&(a6==1)))&&!(a14==1))&&(a17==2))))){ + a7 = 0; + a16 = 8; + a27 = 0; + a9 = 10; + a5 = 4; + a1 = 14; + a21 = 10; + a12 = 1; + a19 = 3; + return 23; + } else if((((a19==1)&&(!(a6==1)||((((a9==8)&&(a11==1))||(a0==1))&&(a12==1))))&&((a16==7)&&((a5==6)&&((((a12==1)&&((a11==1)&&((a1==14)&&(((a17==2)&&(input==4))&&(a20==1)))))&&(a21==11))&&!(a8==1)))))){ + a21 = 10; + a9 = 10; + a12 = 1; + a14 = 0; + a5 = 5; + a16 = 8; + return 21; + } else if(((((!(a27==1)&&((a21==12)&&((a20==1)&&(a23==1))))&&(a1==13))||!(a6==1))&&((a9==8)&&((((((((((a5==4)||(a5==5))&&(input==4))&&(a19==4))&&!(a7==1))&&(a23==1))&&!(a8==1))&&(a17==2))&&!(a8==1))&&(a16==9))))){ + a14 = 0; + a9 = 7; + a5 = 4; + a24 = 0; + a7 = 0; + a19 = 1; + a21 = 10; + a1 = 12; + a16 = 7; + return -1; + } else if((((a16==10)&&((a17==2)&&(((a1==12)&&((a3==1)&&((a5==4)&&(!(a12==1)||((a20==1)&&(a3==1))))))&&(a11==1))))&&((a6==1)&&(((a9==11)&&(!(a8==1)&&(((input==3)&&(a19==4))&&(a23==1))))&&(a21==11))))){ + a2 = 1; + a19 = 1; + a21 = 10; + a3 = 1; + a14 = 0; + a9 = 7; + a16 = 7; + return -1; + } else if(((((!(a4==1)&&(((((a23==1)&&(((a5==4)||(a5==5))&&(input==4)))&&(a19==2))&&(a6==1))&&(a17==2)))&&!(a18==1))&&(a21==12))&&((a9==8)&&(((((a12==1)&&((a16==8)&&(a2==1)))&&!(a20==1))&&(a1==14))&&(a3==1))))){ + a15 = 1; + a12 = 0; + a10 = 1; + a9 = 10; + a1 = 12; + a5 = 5; + a21 = 11; + a16 = 9; + return -1; + } else if((((a21==12)&&((a20==1)&&((((((a3==1)&&(a19==3))&&!(a27==1))&&(a23==1))&&(a17==2))&&!(a24==1))))&&(((a9==8)&&(!(a0==1)&&((a12==1)&&(!(a27==1)&&((((a5==5)||(a5==6))&&(input==3))&&(a16==9))))))&&(a1==14)))){ + a9 = 7; + a16 = 7; + a19 = 1; + a21 = 10; + a14 = 0; + a1 = 12; + a18 = 0; + a5 = 4; + a6 = 1; + return -1; + } else if(((!(a4==1)&&(((!(a26==1)&&(a11==1))&&(a17==2))&&!(a14==1)))&&((!(a20==1)&&((a19==2)&&((a16==10)&&(!(a4==1)&&((a21==10)&&((((((a5==4)&&(a1==13))&&(a9==7))||(((a9==11)&&((a1==12)&&(a5==5)))||((a9==11)&&((a1==12)&&(a5==6)))))&&(input==6))&&(a28==1)))))))&&(a12==1)))){ + if((a20==1)){ + a26 = 1; + a16 = 7; + a1 = 12; + a2 = 0; + a9 = 8; + a5 = 6; + a20 = 1; + }else{ + a19 = 1; + a16 = 7; + a18 = 1; + a1 = 13; + a9 = 9; + a3 = 0; + a10 = 1; + a20 = 1; + a5 = 5; + } + return -1; + } else if(((!(a7==1)&&(((a28==1)&&((((a5==4)||(a5==5))&&(input==3))&&(a19==2)))&&(a21==12)))&&(((((a23==1)&&(((!(a20==1)&&((a16==9)&&((a28==1)||!(a28==1))))&&(a17==2))&&(a1==13)))&&(a9==8))&&!(a4==1))||!(a6==1)))){ + a21 = 10; + a19 = 3; + a1 = 12; + a10 = 0; + a9 = 7; + a5 = 6; + a16 = 11; + a29 = 0; + return -1; + } else if(((((((!(a2==1)&&((input==6)&&(a1==13)))&&!(a11==1))&&(a7==1))&&(a5==6))&&(a20==1))&&(!(a6==1)&&((((a17==2)&&((!(a11==1)&&(((a9==7)&&(a6==1))&&(a19==4)))&&(a21==10)))&&(a16==7))&&!(a6==1))))){ + a1 = 14; + a18 = 1; + a26 = 1; + a19 = 5; + a11 = 0; + a5 = 5; + a21 = 11; + a16 = 8; + return 26; + } else if((((a21==12)&&((!(a27==1)&&((a6==1)&&((a0==1)||((a2==1)&&(a17==2)))))&&(a1==14)))&&(((!(a27==1)&&((!(a24==1)&&(((a9==11)&&((a20==1)&&(input==1)))&&(a16==11)))&&(a28==1)))&&(a5==5))&&(a19==3)))){ + a9 = 7; + a19 = 1; + a16 = 7; + a3 = 1; + a8 = 0; + a1 = 12; + a21 = 10; + a27 = 0; + a5 = 4; + return -1; + } else if((((a5==5)&&((((a21==12)&&((a19==3)&&(input==5)))&&(a13==1))&&(a1==12)))&&(((!(a20==1)&&((!(a8==1)&&((a0==1)||((((a26==1)||(a3==1))||!(a12==1))&&(a6==1))))&&(a9==8)))&&(a16==8))&&(a17==2)))){ + a1 = 14; + a7 = 1; + a22 = 0; + a19 = 1; + a21 = 10; + a28 = 0; + a16 = 7; + a20 = 1; + a5 = 4; + return -1; + } else if(((((a20==1)&&((a12==1)&&(((!(a8==1)&&((a11==1)&&(a11==1)))&&(a21==12))||!(a28==1))))&&(a16==9))&&((a17==2)&&(((a5==4)&&(((a19==3)&&((a3==1)&&((a1==13)&&(input==3))))&&!(a24==1)))&&(a9==9))))){ + a16 = 7; + a19 = 1; + a24 = 0; + a9 = 7; + a11 = 1; + a4 = 0; + a1 = 12; + a21 = 10; + return -1; + } else if(((((((a2==1)&&(((a3==1)||!(a6==1))&&(a9==11)))&&(a28==1))&&(a16==7))&&(a5==5))&&(((((a11==1)&&((a12==1)&&((a21==11)&&(((a19==2)&&(input==3))&&!(a20==1)))))&&!(a7==1))&&(a17==2))&&(a1==13)))){ + a20 = 1; + a26 = 0; + a1 = 12; + a27 = 0; + a28 = 1; + a19 = 1; + a5 = 4; + a9 = 7; + a21 = 10; + return -1; + } else if((((a1==13)&&(((a28==1)&&(((((!(a24==1)&&((a21==10)&&((input==1)&&(((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))))))&&(a17==2))&&(a16==11))&&(a19==4))&&(a11==1)))&&!(a14==1)))&&(!(a20==1)&&(!(a7==1)&&((a2==1)||!(a28==1)))))){ + a5 = 5; + a12 = 0; + a18 = 1; + a20 = 1; + a1 = 12; + a9 = 9; + a16 = 7; + return -1; + } else if((((((((a12==1)&&(a21==10))&&(a6==1))&&!(a8==1))&&(a2==1))&&(a16==8))&&(!(a26==1)&&(((a1==14)&&(((a17==2)&&(!(a20==1)&&(!(a0==1)&&(((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a19==5)))))&&!(a27==1)))&&(a9==10))))){ + a5 = 4; + a20 = 1; + a11 = 1; + a1 = 12; + a9 = 7; + a19 = 1; + a18 = 0; + a16 = 7; + a26 = 0; + return -1; + } else if(((((a19==4)&&(((a16==10)&&((a9==10)&&((!(a18==1)&&(((!(a6==1)||(a3==1))&&(a17==2))||!(a6==1)))||!(a11==1))))&&(a20==1)))&&(a1==14))&&(((a21==11)&&(((input==6)&&(a5==5))&&!(a18==1)))&&!(a18==1)))){ + a5 = 4; + a13 = 1; + a9 = 7; + a19 = 1; + a21 = 10; + a16 = 7; + a2 = 1; + a1 = 12; + return -1; + } else if((((((a5==6)&&(!(a8==1)&&((a17==2)&&((((input==3)&&(a19==1))&&(a1==12))&&(a3==1)))))&&!(a14==1))&&!(a20==1))&&((a21==10)&&((((((a28==1)&&(a9==10))&&(a16==7))||!(a11==1))&&!(a27==1))||(a0==1))))){ + a19 = 2; + a27 = 0; + a5 = 5; + a23 = 1; + a21 = 12; + return 21; + } else if(((!(a26==1)&&(((input==1)&&(a17==2))&&(a20==1)))&&(((a16==8)&&((a1==14)&&(((a7==1)||(((a9==10)&&(((a14==1)||(((a2==1)&&(a21==10))&&(a23==1)))&&(a19==5)))&&(a5==6)))||(a27==1))))&&(a6==1)))){ + a1 = 13; + a16 = 10; + a19 = 2; + a11 = 1; + a9 = 11; + a18 = 0; + a28 = 1; + return 25; + } else if((((((((((a13==1)&&(a21==11))&&(a1==12))&&(a17==2))&&(a16==10))&&!(a4==1))&&(a3==1))&&!(a8==1))&&((((a12==1)&&(!(a20==1)&&((a19==4)&&(((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))&&(input==3)))))&&(a3==1))&&(a12==1)))){ + a25 = 0; + a16 = 8; + a3 = 0; + a21 = 12; + a9 = 10; + a5 = 4; + a1 = 13; + return -1; + } else if((((a20==1)&&((a2==1)&&((((a6==1)&&((a16==9)&&((a23==1)&&((a19==1)&&((input==6)&&(((((a5==5)&&(a1==12))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==12))))||((a9==7)&&((a1==13)&&(a5==4)))))))))&&!(a0==1))&&(a17==2))))&&(!(a0==1)&&((a21==12)&&((a12==1)&&(a28==1)))))){ + a21 = 10; + a16 = 7; + a0 = 0; + a9 = 7; + a5 = 4; + a8 = 0; + a26 = 0; + a1 = 12; + return -1; + } else if((((a19==3)&&(((a21==12)&&(((a20==1)&&(((a16==10)&&((input==5)&&(a9==8)))&&!(a26==1)))&&(a1==13)))&&(a11==1)))&&((a8==1)||((a18==1)||((a5==5)&&(!(a28==1)||(((a17==2)&&(a28==1))||!(a3==1)))))))){ + a18 = 0; + a4 = 0; + a21 = 10; + a19 = 2; + a11 = 1; + a16 = 7; + a9 = 9; + return -1; + } else if((((((!(a11==1)||(!(a11==1)||((a28==1)&&!(a24==1))))&&(a23==1))&&(a1==12))&&(a21==10))&&(((a5==4)&&(!(a20==1)&&((!(a18==1)&&((a9==8)&&((a16==9)&&((input==5)&&(a19==2)))))&&(a11==1))))&&(a17==2)))){ + a10 = 1; + a0 = 1; + a13 = 0; + a9 = 9; + a16 = 7; + a20 = 1; + a5 = 6; + return 21; + } else if(((((a3==1)&&(((a17==2)&&(((input==5)&&((a5==5)||(a5==6)))&&(a19==5)))&&(a21==10)))&&(a1==14))&&(!(a3==1)||((!(a3==1)||(((a23==1)&&((a8==1)||(!(a20==1)&&((a16==7)&&(a12==1)))))||(a14==1)))&&(a9==9))))){ + if((a0==1)){ + a21 = 11; + a6 = 1; + a24 = 0; + a7 = 0; + a5 = 5; + a9 = 10; + a1 = 12; + a16 = 8; + }else{ + a2 = 1; + a20 = 1; + a5 = 4; + a14 = 0; + a6 = 1; + a1 = 13; + a19 = 1; + a9 = 11; + a16 = 10; + } + return 21; + } else if((((a5==6)&&((((a21==12)&&((a11==1)&&(a26==1)))&&!(a2==1))&&(a17==2)))&&(((((a1==12)&&((!(a28==1)&&((((a19==3)&&(input==1))&&(a9==8))&&!(a11==1)))&&(a7==1)))&&(a16==7))&&!(a20==1))&&(a26==1)))){ + a9 = 7; + a16 = 10; + a3 = 0; + a25 = 1; + a21 = 10; + a20 = 1; + a5 = 5; + a1 = 14; + return 26; + } else if((((a28==1)&&((a17==2)&&((a11==1)&&(((a16==9)&&((a5==4)&&((input==3)&&(a1==13))))&&(a20==1)))))&&((a21==11)&&((((a19==2)&&((!(a6==1)||((a11==1)||!(a13==1)))&&(a23==1)))||!(a12==1))&&(a9==7))))){ + a21 = 10; + a4 = 0; + a6 = 1; + a1 = 12; + a23 = 1; + a19 = 1; + a16 = 7; + return -1; + } else if((((a9==8)&&((!(a28==1)||((a5==6)&&((!(a24==1)&&(a6==1))&&!(a18==1))))&&(a17==2)))&&((a16==9)&&(((((a12==1)&&(((a19==1)&&((input==6)&&(a20==1)))&&(a1==13)))&&(a23==1))&&(a28==1))&&(a21==10))))){ + a11 = 1; + a1 = 14; + a5 = 4; + a7 = 0; + a13 = 1; + a9 = 11; + a19 = 4; + a16 = 10; + return 25; + } else if(((((a26==1)||(((a17==2)&&((!(a0==1)&&((a19==3)&&((a20==1)&&(a6==1))))&&(a16==8)))&&!(a24==1)))&&(a1==13))&&(((((a5==6)&&(((a9==9)&&(input==4))&&(a11==1)))&&(a21==10))&&!(a14==1))&&(a13==1)))){ + a1 = 12; + a5 = 4; + a14 = 0; + a16 = 7; + a19 = 1; + a3 = 1; + a4 = 0; + a9 = 7; + return -1; + } else if(((((a3==1)&&(((a16==9)&&((a28==1)&&((a3==1)&&(((a5==5)&&(input==6))&&!(a20==1)))))&&(a23==1)))&&(a9==9))&&((a21==11)&&((((((a3==1)&&(a3==1))&&(a1==12))&&(a19==1))&&(a17==2))||(a26==1))))){ + if((a11==1)){ + a2 = 0; + a21 = 10; + a5 = 6; + a20 = 1; + a27 = 1; + a8 = 1; + a16 = 7; + }else{ + a26 = 1; + a9 = 11; + a16 = 7; + a14 = 1; + a20 = 1; + a18 = 1; + a1 = 14; + a21 = 10; + } + return 21; + } else if(((((((((a16==8)&&((a17==2)&&(a3==1)))&&(a19==5))&&(a23==1))&&(a1==14))&&(a20==1))&&!(a8==1))&&((a28==1)&&(((((a13==1)&&((input==4)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))))&&(a21==11))&&!(a8==1))&&!(a0==1))))){ + a19 = 1; + a16 = 7; + a9 = 7; + a6 = 1; + a5 = 4; + a1 = 12; + a21 = 10; + a12 = 1; + a27 = 0; + return -1; + } else if((((a1==13)&&(!(a14==1)&&((a9==7)&&(input==4))))&&((a14==1)||((a18==1)||((((a17==2)&&((((a19==4)&&(((a16==9)&&((a13==1)&&(a5==6)))&&!(a20==1)))&&(a21==10))&&(a23==1)))||!(a11==1))&&(a2==1)))))){ + a25 = 1; + a5 = 4; + a1 = 12; + a14 = 1; + a19 = 5; + a9 = 9; + a21 = 12; + a15 = 0; + a16 = 7; + return -1; + } else if(((!(a20==1)&&(((a21==10)&&(((a16==10)&&(a3==1))&&(a12==1)))&&(a28==1)))&&((a1==13)&&((((a6==1)&&((!(a4==1)&&((a19==2)&&(((a17==2)&&(input==5))&&(a5==4))))&&(a9==9)))&&(a13==1))&&(a28==1))))){ + if((a2==1)){ + a0 = 1; + a10 = 1; + a19 = 1; + a20 = 1; + a1 = 14; + a16 = 7; + a9 = 7; + a5 = 6; + }else{ + a16 = 7; + a18 = 1; + a9 = 10; + a13 = 0; + a8 = 1; + a20 = 1; + a19 = 1; + } + return 22; + } else if(((!(a11==1)||((((a16==7)&&(((a19==2)&&(((a13==1)&&(a21==10))&&(a17==2)))&&!(a20==1)))||!(a23==1))&&!(a24==1)))&&(!(a14==1)&&((a1==13)&&((a2==1)&&(!(a24==1)&&((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))&&(input==1)))))))){ + a5 = 4; + a9 = 7; + a28 = 1; + a26 = 0; + a1 = 12; + a20 = 1; + a11 = 1; + a19 = 1; + return -1; + } else if(((((((a13==1)&&((((!(a27==1)&&(((a5==5)||(a5==6))&&(input==4)))&&(a9==10))&&(a6==1))&&(a16==9)))&&!(a27==1))&&(a19==4))&&(a1==14))&&((!(a7==1)&&((a17==2)&&(!(a20==1)&&((a3==1)||!(a23==1)))))&&(a21==12)))){ + if((a5==6)){ + a19 = 1; + a7 = 1; + a16 = 7; + a2 = 0; + a9 = 9; + a21 = 10; + a12 = 0; + a5 = 5; + }else{ + a19 = 1; + a20 = 1; + a8 = 1; + a16 = 7; + a5 = 5; + a25 = 0; + a10 = 1; + a1 = 13; + } + return 25; + } else if((((a19==1)&&((a12==1)&&((a9==7)&&(((!(a0==1)&&(a11==1))&&(a13==1))&&(a16==10)))))&&(((a17==2)&&(((a20==1)&&((!(a27==1)&&(((input==1)&&((a5==5)||(a5==6)))&&(a11==1)))&&!(a7==1)))&&(a1==13)))&&(a21==11)))){ + a28 = 1; + a14 = 0; + a27 = 0; + a21 = 10; + a1 = 12; + a5 = 4; + a16 = 7; + return -1; + } else if(((((a16==7)&&((a19==4)&&(((input==6)&&((((a1==12)&&(a5==6))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==13)))))&&(a17==2))))&&(a2==1))&&(!(a12==1)||((a26==1)||((((((a21==12)&&(a13==1))||!(a6==1))&&!(a8==1))&&(a20==1))&&(a6==1)))))){ + a21 = 11; + a16 = 9; + a1 = 12; + a4 = 0; + a0 = 0; + a5 = 5; + a19 = 2; + a24 = 0; + a9 = 10; + return 21; + } else if(((((a19==1)&&((a20==1)&&((((a0==1)||(!(a6==1)||(a28==1)))&&(a21==11))&&(a16==10))))||!(a11==1))&&((a3==1)&&(((a17==2)&&((!(a8==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a9==7)))&&(a12==1)))&&(a1==14))))){ + a21 = 10; + a3 = 1; + a0 = 0; + a12 = 1; + a5 = 4; + a16 = 7; + a1 = 12; + return -1; + } else if((((((a12==1)&&((a17==2)&&((((((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))&&(input==6))&&(a21==10))&&(a19==2))&&!(a0==1))))&&(a13==1))&&(a11==1))&&((((((a20==1)&&(a3==1))&&(a16==8))&&(a1==12))&&(a23==1))&&!(a4==1)))){ + a13 = 1; + a5 = 6; + a9 = 8; + a19 = 1; + a21 = 12; + a8 = 0; + a1 = 14; + return 21; + } else if((((a23==1)&&(((a17==2)&&((a1==14)&&((((a13==1)&&(a2==1))&&(a16==8))||!(a11==1))))&&!(a7==1)))&&((a28==1)&&(((((((input==4)&&(a21==10))&&(a20==1))&&(a19==5))&&(a9==7))&&(a5==4))&&(a28==1))))){ + a5 = 5; + a9 = 10; + a1 = 13; + a28 = 1; + a3 = 1; + a13 = 1; + return -1; + } else if(((((a17==2)&&(!(a27==1)&&((((((input==5)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&!(a7==1))&&(a23==1))&&!(a0==1))&&(a1==14))))&&(a16==9))&&((a20==1)&&((a21==12)&&((((a19==2)&&(a3==1))||(a7==1))||(a18==1)))))){ + a19 = 1; + a18 = 0; + a11 = 1; + a9 = 8; + a24 = 0; + a5 = 6; + a16 = 8; + return 21; + } else if((((a19==5)&&((a9==8)&&((a20==1)&&(((a11==1)&&(a1==12))&&(a23==1)))))&&((a16==11)&&((((a2==1)&&(((a2==1)&&((((input==3)&&(a5==6))&&!(a7==1))&&(a17==2)))&&(a6==1)))&&!(a27==1))&&(a21==11))))){ + a2 = 1; + a18 = 0; + a26 = 0; + a5 = 4; + a19 = 1; + a21 = 10; + a16 = 10; + return 21; + } else if((((a14==1)||((a28==1)&&((a18==1)||((a19==5)&&(a3==1)))))&&(!(a8==1)&&((a20==1)&&(((((!(a27==1)&&((a17==2)&&(((input==5)&&((a5==4)||(a5==5)))&&!(a14==1))))&&(a16==10))&&(a21==11))&&(a9==11))&&(a1==14)))))){ + a16 = 7; + a19 = 2; + a9 = 9; + a28 = 1; + a5 = 5; + a7 = 0; + a1 = 13; + a21 = 10; + return 25; + } else if((((!(a28==1)||(!(a11==1)||(((((a13==1)&&(a9==10))&&!(a20==1))&&(a1==14))&&!(a4==1))))||(a7==1))&&(!(a24==1)&&((((a16==9)&&(((a19==3)&&((input==5)&&((a5==4)||(a5==5))))&&(a17==2)))&&(a21==12))&&(a13==1))))){ + if((a0==1)){ + a1 = 13; + a3 = 0; + a19 = 5; + a9 = 9; + a29 = 1; + a5 = 6; + a15 = 1; + }else{ + a10 = 0; + a21 = 10; + a11 = 0; + a19 = 2; + a5 = 6; + a1 = 12; + a16 = 7; + a6 = 0; + a20 = 1; + } + return 26; + } else if((((((((a1==12)&&((input==5)&&((a5==6)||((a5==4)||(a5==5)))))&&(a17==2))&&(a16==8))&&(a20==1))&&(a9==9))&&((a21==11)&&((((a28==1)&&(((a26==1)||((a0==1)||((a18==1)||(a11==1))))&&!(a4==1)))||!(a2==1))&&(a19==4))))){ + a19 = 1; + a11 = 1; + a5 = 4; + a9 = 7; + a21 = 10; + a18 = 0; + a28 = 1; + a16 = 7; + return -1; + } else if(((((((a17==2)&&((a6==1)&&((((a21==10)&&((((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(input==5)))&&(a13==1))&&!(a14==1))))&&(a1==14))&&(a20==1))&&(a28==1))&&(((!(a3==1)||((a19==4)&&(a12==1)))||!(a12==1))&&(a16==7)))){ + a5 = 4; + a1 = 12; + a19 = 1; + a13 = 1; + a28 = 1; + a21 = 12; + a23 = 1; + a9 = 11; + return 22; + } else if(((((!(a3==1)||(((a28==1)||!(a12==1))&&!(a20==1)))&&!(a0==1))||(a18==1))&&((a21==10)&&(((a9==9)&&(!(a24==1)&&((a17==2)&&(!(a7==1)&&((a5==6)&&(((input==1)&&(a1==14))&&(a19==5)))))))&&(a16==9))))){ + a16 = 10; + a21 = 11; + a0 = 1; + a15 = 1; + a9 = 10; + a5 = 5; + a10 = 1; + a19 = 2; + a1 = 13; + a20 = 1; + return -1; + } else if(((((((!(a4==1)&&(((a12==1)||!(a2==1))&&(a16==11)))||(a18==1))&&(a19==5))&&(a17==2))&&(a21==12))&&(((a9==7)&&((((a12==1)&&((a3==1)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6)))))&&!(a24==1))&&(a1==13)))&&(a20==1)))){ + a1 = 12; + a18 = 0; + a16 = 7; + a0 = 0; + a19 = 1; + a21 = 10; + a5 = 4; + a2 = 1; + return -1; + } else if((((((a21==10)&&((a24==1)||(((a9==7)&&(!(a6==1)||((a1==14)&&(a23==1))))||!(a3==1))))&&(a16==8))&&(a17==2))&&((a19==1)&&(!(a18==1)&&((a20==1)&&(!(a18==1)&&((a12==1)&&(((a5==4)||(a5==5))&&(input==3))))))))){ + a5 = 4; + a16 = 7; + a13 = 1; + a18 = 0; + a3 = 1; + a1 = 12; + return -1; + } else if(((!(a20==1)&&((a5==6)&&((a14==1)||((a3==1)||!(a12==1)))))&&((a9==10)&&(((a12==1)&&((((a17==2)&&(((((input==3)&&(a19==4))&&!(a4==1))&&!(a18==1))&&(a16==7)))&&(a21==10))&&!(a26==1)))&&(a1==13))))){ + a5 = 4; + a14 = 0; + a9 = 7; + a1 = 12; + a19 = 1; + a3 = 1; + a20 = 1; + a11 = 1; + return -1; + } else if(((((a16==11)&&((((a5==6)&&(!(a12==1)||((a17==2)&&(a11==1))))&&!(a0==1))&&(a19==5)))&&(a9==11))&&((a20==1)&&((!(a8==1)&&(!(a8==1)&&((((input==6)&&(a1==13))&&!(a27==1))&&(a6==1))))&&(a21==11))))){ + a12 = 1; + a2 = 1; + a27 = 0; + a16 = 10; + a9 = 7; + return 21; + } else if(((!(a8==1)&&((!(a4==1)&&(((a17==2)&&(((a28==1)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==5)))&&(a1==13)))&&(a19==2)))&&(a21==11)))&&(!(a6==1)||(!(a18==1)&&((!(a20==1)&&((a16==8)&&(a2==1)))&&!(a18==1)))))){ + a26 = 0; + a9 = 8; + a19 = 4; + a2 = 1; + a5 = 5; + a1 = 12; + a24 = 0; + return 21; + } else if(((((a19==3)&&(!(a20==1)&&(!(a2==1)||(((((a13==1)||!(a12==1))&&(a12==1))&&(a21==12))&&(a23==1)))))&&(a16==7))&&((((a1==13)&&(((input==6)&&(((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))))&&(a17==2)))&&(a2==1))&&(a13==1)))){ + a9 = 7; + a19 = 1; + a28 = 1; + a21 = 10; + a20 = 1; + a8 = 0; + a6 = 1; + a5 = 4; + a1 = 12; + return -1; + } else if(((((a16==9)&&((a19==1)&&((a3==1)&&(((input==5)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5))))&&!(a26==1)))))&&!(a20==1))&&(((a21==10)&&((((((a1==13)&&(a6==1))&&(a13==1))&&(a17==2))||(a4==1))&&!(a8==1)))||(a0==1)))){ + a19 = 4; + a25 = 1; + a12 = 0; + a15 = 1; + a9 = 7; + a20 = 1; + a1 = 14; + a5 = 6; + return -1; + } else if((((a16==8)&&((a20==1)&&((a17==2)&&(!(a7==1)&&(((a12==1)&&((a19==4)&&(input==5)))&&(a1==12))))))&&((!(a2==1)||((((((a23==1)&&(a9==9))||(a8==1))&&!(a27==1))&&(a5==4))&&(a21==12)))||(a26==1)))){ + if((a3==1)){ + a12 = 1; + a4 = 0; + a9 = 8; + a5 = 5; + a20 = 0; + a19 = 5; + a21 = 10; + a24 = 0; + }else{ + a2 = 1; + a14 = 0; + a9 = 8; + a6 = 1; + a19 = 3; + a16 = 10; + a1 = 13; + } + return 25; + } else if(((((a19==2)&&((((((a6==1)&&(a17==2))&&(a21==11))&&!(a0==1))&&(a16==8))&&(a1==13)))||!(a11==1))&&((a20==1)&&(!(a7==1)&&((a3==1)&&((!(a24==1)&&((input==6)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))))&&!(a24==1))))))){ + a16 = 10; + a24 = 0; + a26 = 0; + a1 = 12; + a3 = 1; + a19 = 4; + a9 = 11; + a5 = 5; + a21 = 10; + return 22; + } else if((((((a17==2)&&(((a21==11)&&((input==6)&&(a1==12)))&&!(a4==1)))&&(a5==4))&&(a9==11))&&((a19==1)&&((!(a12==1)||(((a20==1)&&((a14==1)||(!(a4==1)&&((a6==1)||(a4==1)))))&&!(a27==1)))&&(a16==8))))){ + a23 = 1; + a19 = 3; + a21 = 10; + a9 = 9; + a12 = 1; + a16 = 10; + a28 = 1; + return 26; + } else if((((((!(a18==1)&&(a23==1))&&!(a24==1))||!(a2==1))||!(a23==1))&&((a11==1)&&((a16==7)&&((a9==11)&&((a1==13)&&(((a19==5)&&(((a20==1)&&((a5==4)&&((a21==11)&&(input==3))))&&(a17==2)))&&!(a26==1)))))))){ + a11 = 1; + a9 = 7; + a21 = 10; + a14 = 0; + a3 = 1; + a1 = 12; + a19 = 1; + return -1; + } else if(((((a11==1)&&(((((a11==1)||!(a6==1))&&(a16==10))&&(a17==2))&&(a9==7)))&&!(a18==1))&&(((a12==1)&&(((a19==1)&&((a1==14)&&(!(a20==1)&&((a21==10)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6))))))&&(a11==1)))&&!(a8==1)))){ + a16 = 7; + a20 = 1; + a4 = 1; + a1 = 13; + a9 = 10; + a18 = 1; + a5 = 4; + a6 = 0; + return -1; + } else if((((a9==9)&&((((a11==1)&&(!(a20==1)&&((!(a7==1)&&((((a3==1)||!(a12==1))&&(a19==1))||!(a3==1)))&&!(a14==1))))&&(a21==11))&&(a1==14)))&&(((a16==8)&&(((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&(a12==1)))&&(a17==2)))){ + a20 = 1; + a19 = 2; + a5 = 6; + a2 = 1; + a0 = 0; + a16 = 9; + a8 = 0; + a9 = 10; + return 21; + } else if(((!(a24==1)&&((a12==1)&&((a1==14)&&((((a5==5)||(a5==6))&&(input==1))&&(a17==2)))))&&((a24==1)||((((((a19==3)&&((a12==1)&&(((a16==7)&&(a11==1))&&!(a20==1))))&&(a9==8))&&(a21==10))&&!(a4==1))&&(a2==1))))){ + a9 = 11; + a1 = 12; + a8 = 0; + a18 = 0; + a20 = 1; + a5 = 4; + a16 = 11; + a26 = 0; + a19 = 4; + a21 = 12; + return 21; + } else if((((a13==1)&&(((a1==14)&&(!(a26==1)&&(((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&(a16==7))))&&!(a7==1)))&&(((a17==2)&&((((((a24==1)||((a12==1)&&!(a7==1)))&&(a9==9))&&(a21==11))||!(a11==1))&&(a19==3)))&&!(a20==1)))){ + a20 = 1; + a5 = 5; + a21 = 10; + a4 = 0; + a18 = 0; + a19 = 2; + a7 = 0; + a1 = 13; + return -1; + } else if((((a1==14)&&(!(a13==1)||((a9==11)&&((a19==2)&&(((a6==1)&&((a20==1)&&((a11==1)&&(a23==1))))&&!(a4==1))))))&&((((((a5==6)&&((a21==10)&&(input==3)))&&(a12==1))&&!(a18==1))&&(a16==9))&&(a17==2)))){ + a0 = 0; + a5 = 4; + a24 = 0; + a3 = 1; + a1 = 12; + a9 = 7; + a19 = 1; + a16 = 7; + return -1; + } else if((((a17==2)&&(((a16==9)&&((((a6==1)&&((a3==1)&&(a1==14)))&&(a20==1))&&(a19==1)))&&(a9==10)))&&((((a3==1)&&((a12==1)&&((!(a14==1)&&((input==3)&&(a5==6)))&&(a11==1))))&&!(a7==1))&&(a21==10)))){ + a19 = 3; + a27 = 0; + a1 = 12; + a18 = 0; + a5 = 5; + a21 = 12; + return 21; + } else if((((((a8==1)||((a1==13)&&((a19==5)&&((a9==7)&&(((a13==1)&&(a21==11))&&(a16==10))))))||(a27==1))||(a0==1))&&((!(a20==1)&&(((a3==1)&&((a17==2)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3))))&&!(a0==1)))&&(a12==1)))){ + a9 = 11; + a21 = 10; + a7 = 1; + a20 = 1; + a27 = 1; + a5 = 4; + a2 = 0; + a1 = 12; + a19 = 2; + a16 = 7; + return -1; + } else if(((!(a23==1)&&((((a21==11)&&(((a18==1)&&((a1==13)&&((a2==1)&&(a19==1))))&&(a9==9)))&&(a20==1))&&(a7==1)))&&(!(a12==1)&&(((a16==8)&&(((a17==2)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))&&(a24==1)))&&(a27==1))))){ + a23 = 0; + a12 = 0; + a21 = 10; + a16 = 7; + a29 = 0; + a5 = 5; + a1 = 12; + a9 = 8; + return -1; + } else if((((a21==10)&&(((a1==12)&&((a28==1)&&(a20==1)))&&(a19==5)))&&((a23==1)&&((!(a27==1)&&((((a16==9)&&((((((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(input==5))&&(a17==2))&&!(a14==1)))&&!(a14==1))&&(a3==1)))&&!(a24==1))))){ + a4 = 0; + a16 = 7; + a9 = 7; + a19 = 1; + a5 = 4; + a3 = 1; + a28 = 1; + return -1; + } else if(((((a16==10)&&((a26==1)||((a5==5)&&(((a23==1)&&(a2==1))||!(a3==1)))))&&(a17==2))&&((a21==10)&&(((((!(a26==1)&&(!(a24==1)&&((a20==1)&&(input==3))))&&(a9==11))&&(a1==14))&&(a6==1))&&(a19==1))))){ + if((a7==1)){ + a20 = 0; + a19 = 3; + a16 = 8; + a4 = 0; + a21 = 11; + a23 = 1; + }else{ + a16 = 8; + a27 = 0; + a6 = 1; + a21 = 12; + a19 = 4; + a26 = 0; + a9 = 9; + } + return 22; + } else if((((a23==1)&&(((a17==2)&&((a1==13)&&((a6==1)&&(!(a20==1)&&(input==4)))))&&(a5==6)))&&(((a16==10)&&((!(a13==1)||(!(a12==1)||((a9==10)&&(((a3==1)&&(a19==5))||(a8==1)))))||!(a12==1)))&&(a21==10)))){ + a21 = 12; + a4 = 1; + a9 = 9; + a8 = 1; + a1 = 14; + a27 = 1; + a5 = 5; + return -1; + } else if(((((a16==7)&&(((((input==6)&&((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4))))&&!(a20==1))&&!(a18==1))&&(a17==2)))&&(a1==14))&&((a21==11)&&((!(a0==1)&&(!(a2==1)||((((a2==1)||!(a3==1))&&(a3==1))&&!(a18==1))))&&(a19==1))))){ + a8 = 0; + a3 = 1; + a21 = 10; + a9 = 9; + a20 = 1; + a1 = 13; + a19 = 2; + a2 = 1; + a5 = 4; + return 25; + } else if((((a5==4)&&(((((a21==11)&&(((a6==1)&&(((a19==4)&&(a28==1))&&(a17==2)))&&(a9==9)))&&(a6==1))&&(a13==1))&&(a1==14)))&&((a3==1)&&(((((input==5)&&!(a20==1))&&!(a27==1))&&(a2==1))&&(a16==8))))){ + a20 = 1; + a16 = 7; + a1 = 12; + a9 = 8; + a21 = 10; + a0 = 0; + a19 = 3; + a18 = 0; + a11 = 1; + return 22; + } else if((((a17==2)&&((!(a26==1)&&((a6==1)&&((((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&(a19==1))&&(a23==1))))&&(a1==13)))&&(!(a27==1)&&(((((a16==10)&&(((a11==1)||!(a11==1))&&(a20==1)))&&(a9==11))&&(a13==1))&&(a21==11))))){ + a1 = 12; + a21 = 10; + a23 = 1; + a4 = 0; + a9 = 7; + a5 = 4; + a16 = 7; + return -1; + } else if((((!(a3==1)||((((a26==1)||(a13==1))&&(a19==5))&&!(a14==1)))||!(a11==1))&&(((a17==2)&&(!(a20==1)&&(!(a0==1)&&((((a1==12)&&((a21==11)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1))))&&(a16==9))&&(a6==1)))))&&(a9==8)))){ + a19 = 1; + a22 = 1; + a21 = 10; + a1 = 14; + a4 = 1; + a27 = 1; + a9 = 11; + a5 = 6; + a20 = 1; + a16 = 7; + return -1; + } else if((((a17==2)&&(((a11==1)&&((a13==1)&&(((a9==7)&&(((a2==1)&&(a21==11))||(a4==1)))||!(a11==1))))&&(a20==1)))&&((a5==4)&&((((a16==8)&&(((a1==12)&&(input==6))&&(a19==4)))&&!(a7==1))&&!(a8==1))))){ + a24 = 0; + a6 = 1; + a27 = 0; + a21 = 10; + a19 = 1; + a16 = 7; + return -1; + } else if((((a1==13)&&((a17==2)&&((a12==1)&&(((a21==10)&&(((a5==5)||(a5==6))&&(input==6)))&&!(a27==1)))))&&(((((!(a14==1)&&(((a19==5)&&(!(a20==1)&&(a11==1)))&&!(a4==1)))&&!(a0==1))&&(a16==7))||(a8==1))&&(a9==10)))){ + a5 = 4; + a9 = 11; + a20 = 1; + a11 = 1; + a21 = 12; + a19 = 2; + a28 = 1; + a12 = 1; + a16 = 8; + return 26; + } else if(((((a9==9)&&(((a24==1)||(((((a2==1)||(a8==1))&&(a11==1))&&(a2==1))&&(a17==2)))&&(a20==1)))&&(a1==13))&&((a16==7)&&((a19==1)&&((a21==12)&&(((((a5==4)||(a5==5))&&(input==4))&&(a23==1))&&!(a27==1))))))){ + a9 = 11; + a4 = 0; + a5 = 4; + a7 = 0; + a1 = 14; + a20 = 0; + a12 = 1; + return 22; + } else if(((!(a14==1)&&(!(a0==1)&&((((a11==1)&&(!(a27==1)&&(((a1==12)&&(((input==6)&&((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10))))&&!(a20==1)))&&!(a14==1))))&&(a19==4))&&(a21==10))))&&((a0==1)||(((a3==1)&&(a17==2))&&(a16==11))))){ + if((a5==5)){ + a16 = 7; + a9 = 9; + a5 = 5; + a19 = 1; + a3 = 0; + a25 = 1; + a15 = 1; + a20 = 1; + }else{ + a28 = 0; + a10 = 0; + a9 = 8; + a19 = 3; + a26 = 1; + a5 = 6; + a1 = 13; + a16 = 8; + } + return -1; + } else if((((a4==1)&&(!(a28==1)&&(a11==1)))&&((((a21==12)&&(((a16==11)&&((a1==13)&&((((a9==9)&&((a8==1)&&(((input==4)&&((a5==5)||(a5==6)))&&(a14==1))))&&(a19==2))&&(a27==1))))&&(a8==1)))&&(a17==2))&&(a20==1)))){ + a9 = 8; + a6 = 0; + a14 = 1; + a19 = 3; + a8 = 1; + a1 = 12; + a16 = 10; + a5 = 4; + a21 = 10; + return -1; + } else if((((((a20==1)&&(((((a6==1)&&((a5==6)&&(input==5)))&&(a9==10))&&(a16==7))&&(a17==2)))&&(a19==3))&&(a1==13))&&((a21==12)&&((!(a13==1)||((!(a14==1)&&((a3==1)&&(a6==1)))&&!(a8==1)))&&(a3==1))))){ + a13 = 1; + a27 = 0; + a16 = 9; + a3 = 1; + a21 = 10; + a19 = 5; + a5 = 5; + return 22; + } else if(((!(a14==1)&&(!(a26==1)&&((((a16==8)&&((a19==4)&&((input==1)&&(((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))))&&(a21==12))&&!(a14==1))))&&(!(a18==1)&&(!(a7==1)&&((a28==1)&&((a1==12)&&(((a17==2)&&(a28==1))&&(a20==1)))))))){ + a9 = 7; + a16 = 10; + a23 = 1; + a18 = 0; + a1 = 13; + a5 = 4; + a19 = 3; + a14 = 0; + return 25; + } else if((((((a17==2)&&(((a21==10)&&(input==4))&&(a9==7)))&&(a28==1))&&(a1==12))&&((!(a3==1)||(((((a19==3)&&((((a3==1)&&(a23==1))&&!(a20==1))&&(a5==5)))||(a27==1))&&(a23==1))&&!(a7==1)))&&(a16==11)))){ + if((a15==1)){ + a28 = 0; + a5 = 6; + a20 = 1; + a19 = 1; + a16 = 9; + a21 = 11; + a10 = 1; + a12 = 0; + }else{ + a9 = 11; + a5 = 6; + a28 = 0; + a20 = 1; + a24 = 1; + a16 = 9; + a22 = 0; + a19 = 5; + } + return -1; + } else if(((!(a26==1)&&((a16==7)&&(((a2==1)&&(((input==6)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(a19==3)))&&(a3==1))))&&(((a20==1)&&((a8==1)||((a18==1)||((a17==2)&&(((a28==1)&&(a21==11))||!(a2==1))))))&&(a1==13)))){ + a27 = 0; + a19 = 1; + a12 = 1; + a16 = 8; + a9 = 8; + a0 = 0; + a5 = 6; + return 25; + } else if((((a18==1)||((a0==1)||((a19==5)&&((a24==1)||((((a28==1)||(a18==1))&&(a6==1))&&(a21==12))))))&&((a16==10)&&(((((((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a6==1))&&(a1==14))&&(a17==2))&&(a20==1))&&(a9==11))))){ + a8 = 0; + a19 = 4; + a1 = 12; + a21 = 11; + a14 = 0; + a5 = 4; + a16 = 8; + a13 = 1; + return -1; + } else if((((a16==7)&&((!(a13==1)||(!(a6==1)||((a13==1)&&(a2==1))))&&(a19==4)))&&((a21==11)&&((a20==1)&&((a17==2)&&((a1==14)&&((!(a24==1)&&((((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5)))&&(input==3))&&!(a4==1)))&&(a6==1)))))))){ + a0 = 0; + a2 = 1; + a18 = 0; + a9 = 7; + a5 = 4; + a1 = 12; + a21 = 10; + a19 = 1; + return -1; + } else if((((a20==1)&&(((a19==1)&&((((a9==7)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))&&(a17==2))&&!(a7==1)))&&(a1==13)))&&(((a16==7)&&(((a18==1)||(((a4==1)||(!(a26==1)&&(a6==1)))||!(a23==1)))||(a24==1)))&&(a21==11)))){ + a21 = 10; + a5 = 4; + a1 = 12; + a3 = 1; + a9 = 8; + a16 = 8; + a13 = 1; + return 23; + } else if((((((a1==14)&&((a20==1)&&(!(a28==1)||(((((a28==1)&&(a2==1))||(a4==1))&&(a19==3))||!(a23==1)))))&&(a21==10))&&(a2==1))&&(((a16==10)&&((a9==7)&&((a5==4)&&((input==4)&&(a17==2)))))&&(a11==1)))){ + a5 = 5; + a1 = 13; + a19 = 5; + a28 = 1; + a16 = 8; + a4 = 0; + a9 = 10; + a24 = 0; + return 22; + } else if(((((a9==10)&&(((a16==8)&&(a23==1))||(a8==1)))&&(a17==2))&&((a1==14)&&((a5==4)&&((((a12==1)&&(!(a26==1)&&(((a23==1)&&(((input==5)&&(a21==10))&&(a19==4)))&&(a3==1))))&&(a12==1))&&!(a20==1)))))){ + a27 = 0; + a5 = 5; + a12 = 1; + a21 = 11; + a9 = 8; + a1 = 12; + return -1; + } else if((((a2==1)&&((a5==4)&&((!(a14==1)&&((a20==1)&&(!(a27==1)&&((a16==8)&&(input==3)))))&&(a9==11))))&&((((!(a24==1)&&((((a6==1)&&(a1==13))&&(a12==1))&&(a19==3)))&&(a21==12))&&(a17==2))&&!(a26==1)))){ + a1 = 12; + a2 = 1; + a16 = 7; + a8 = 0; + a9 = 7; + a19 = 1; + a21 = 10; + return -1; + } else if((((((a28==1)&&(((((a9==7)&&((a13==1)&&(a5==4)))&&(a19==2))&&(a16==9))&&(a21==12)))&&(a12==1))&&(a1==14))&&(((a11==1)&&((a6==1)&&(!(a20==1)&&(((input==6)&&(a17==2))&&(a11==1)))))&&(a11==1)))){ + a20 = 1; + a16 = 7; + a19 = 1; + a24 = 1; + a12 = 0; + a6 = 0; + a21 = 10; + a9 = 8; + a1 = 12; + return -1; + } else if((((a19==1)&&((a1==12)&&((((a17==2)&&((!(a4==1)&&((a16==7)&&(!(a26==1)&&(((a5==4)||(a5==5))&&(input==6)))))&&(a21==10)))&&(a3==1))&&!(a7==1))))&&((a9==11)&&((!(a2==1)||((a2==1)&&!(a20==1)))&&(a23==1))))){ + a5 = 5; + a18 = 0; + a1 = 14; + a20 = 1; + a19 = 4; + a16 = 11; + a6 = 1; + a4 = 0; + return 21; + } else if((((a20==1)&&(((a28==1)&&((a21==10)&&(!(a14==1)&&(((a1==12)&&(a12==1))&&(a16==7)))))&&(a17==2)))&&((!(a7==1)&&((!(a0==1)&&((a9==10)&&(((input==4)&&((a5==5)||(a5==6)))&&(a11==1))))&&(a11==1)))&&(a19==3)))){ + a27 = 0; + a19 = 1; + a5 = 4; + a9 = 7; + a4 = 0; + a26 = 0; + return -1; + } else if((((((((a17==2)&&(a13==1))||!(a6==1))&&(a16==9))||(a18==1))||!(a11==1))&&(((a11==1)&&((a20==1)&&(((a3==1)&&((input==5)&&(((a19==1)&&(((a1==14)&&(a5==6))&&(a9==11)))||((a19==2)&&(((a5==4)&&(a1==12))&&(a9==7))))))&&(a21==12))))&&!(a27==1)))){ + a28 = 1; + a5 = 4; + a7 = 0; + a1 = 12; + a9 = 7; + a19 = 1; + a21 = 10; + a16 = 7; + return -1; + } else if((((a27==1)||(((a16==9)&&((((a12==1)||(a8==1))&&(a17==2))&&(a20==1)))||!(a6==1)))&&((!(a14==1)&&(!(a27==1)&&((((((((a5==6)&&(a1==14))&&(a9==11))&&(a19==5))&&(a21==11))||((a21==12)&&((a19==1)&&((a9==7)&&((a5==4)&&(a1==12))))))||(((a19==1)&&((a9==7)&&((a1==12)&&(a5==5))))&&(a21==12)))&&(input==4))))&&!(a14==1)))){ + a1 = 12; + a27 = 0; + a5 = 4; + a21 = 10; + a19 = 1; + a18 = 0; + a9 = 7; + a16 = 7; + a6 = 1; + return -1; + } else if((((a3==1)&&(((!(a20==1)&&((a16==8)&&((a17==2)&&((a14==1)||(a13==1)))))&&(a23==1))&&!(a18==1)))&&(!(a18==1)&&((a6==1)&&((((a21==11)&&(((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11)))&&(input==1)))&&(a19==3))&&(a1==14)))))){ + a8 = 0; + a5 = 6; + a3 = 1; + a21 = 10; + a9 = 11; + a16 = 7; + a26 = 0; + return 25; + } else if((((a21==12)&&((a2==1)&&(((((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(input==5))&&(a1==13))))&&((a17==2)&&(!(a20==1)&&((a18==1)||(!(a4==1)&&((((!(a11==1)||((a19==2)&&(a12==1)))&&!(a18==1))&&!(a26==1))&&(a16==8)))))))){ + if((a14==1)){ + a10 = 0; + a5 = 6; + a9 = 7; + a16 = 7; + a21 = 11; + a1 = 14; + a18 = 1; + a12 = 0; + a20 = 1; + a19 = 1; + }else{ + a6 = 0; + a0 = 1; + a21 = 10; + a5 = 6; + a9 = 10; + a3 = 0; + } + return 21; + } else if((((a16==7)&&((a11==1)&&(((a23==1)&&((a6==1)&&((input==3)&&((a5==4)||(a5==5)))))&&!(a0==1))))&&((a19==1)&&((((a9==11)&&(((((a17==2)&&(a28==1))&&(a20==1))||!(a3==1))&&(a21==11)))&&(a1==13))&&!(a8==1))))){ + a1 = 12; + a24 = 0; + a12 = 1; + a21 = 10; + a9 = 7; + a23 = 1; + a5 = 4; + return -1; + } else if((((((a17==2)&&((a1==13)&&(((a6==1)&&!(a14==1))&&!(a4==1))))||(a27==1))&&!(a4==1))&&((a19==1)&&((((a5==4)&&((a20==1)&&((a21==10)&&(!(a8==1)&&((a9==10)&&(input==4))))))&&(a16==10))&&!(a27==1))))){ + a18 = 0; + a9 = 7; + a1 = 12; + a16 = 7; + a27 = 0; + a23 = 1; + return -1; + } else if(((((a1==12)&&(((a16==9)&&((a0==1)||(!(a27==1)&&(((!(a20==1)&&((a6==1)&&(a6==1)))||(a0==1))||!(a6==1)))))&&(a19==5)))&&(a17==2))&&((!(a24==1)&&(((input==1)&&((a5==5)||(a5==6)))&&(a21==12)))&&(a9==8)))){ + a16 = 7; + a18 = 1; + a6 = 0; + a21 = 10; + a5 = 6; + a19 = 1; + a22 = 1; + a20 = 1; + return 25; + } else if((((a11==1)&&((!(a4==1)&&((a16==8)&&((!(a3==1)||(a28==1))||(a0==1))))&&(a21==11)))&&((a20==1)&&(((a17==2)&&(!(a18==1)&&((input==3)&&((((a9==7)&&((a5==4)&&(a1==12)))&&(a19==3))||((((a9==11)&&((a5==5)&&(a1==14)))&&(a19==2))||((a19==2)&&(((a1==14)&&(a5==6))&&(a9==11))))))))&&!(a0==1))))){ + a21 = 10; + a13 = 1; + a5 = 4; + a19 = 1; + a2 = 1; + a16 = 7; + a9 = 7; + a1 = 12; + a7 = 0; + return -1; + } else if(((((a16==8)&&(((!(a20==1)&&(((a23==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))&&(a9==9)))&&(a21==10))&&(a1==13)))&&(a17==2))&&(((a24==1)||((((a3==1)&&((a28==1)&&(a2==1)))&&(a19==4))&&!(a8==1)))||(a26==1)))){ + a1 = 12; + a20 = 1; + a3 = 1; + a5 = 4; + a6 = 1; + a19 = 3; + a16 = 10; + a26 = 0; + a9 = 8; + return 21; + } else if(((!(a23==1)||(!(a14==1)&&((((a1==14)&&((a12==1)&&(a5==6)))&&(a19==5))||!(a2==1))))&&((a23==1)&&(!(a24==1)&&(!(a4==1)&&((a20==1)&&((a21==10)&&((a9==10)&&(((input==4)&&(a17==2))&&(a16==8)))))))))){ + a1 = 12; + a16 = 7; + a9 = 7; + a13 = 1; + a5 = 4; + a19 = 1; + a12 = 1; + return -1; + } else if((((a17==2)&&((a21==11)&&(!(a7==1)&&(((a16==10)&&(((((input==4)&&(((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))))&&!(a24==1))&&(a20==1))&&(a2==1)))&&(a12==1)))))&&(((((a24==1)||(a11==1))&&(a1==12))&&(a11==1))&&(a19==2)))){ + a5 = 5; + a26 = 0; + a9 = 9; + a3 = 1; + a19 = 1; + a16 = 9; + a2 = 1; + return -1; + } else if((((((a3==1)&&((a21==12)&&((!(a8==1)&&(!(a20==1)&&(input==3)))&&!(a7==1))))&&!(a0==1))&&(a5==4))&&((a1==13)&&((a19==2)&&(((a9==9)&&(!(a14==1)&&(((a12==1)&&(a16==9))&&(a12==1))))&&(a17==2)))))){ + if((a24==1)){ + a18 = 1; + a19 = 3; + a28 = 0; + a15 = 1; + a9 = 11; + a5 = 6; + a20 = 1; + }else{ + a19 = 1; + a21 = 11; + a13 = 0; + a1 = 12; + a16 = 10; + a9 = 11; + a25 = 0; + a2 = 0; + } + return -1; + } else if((((a9==9)&&((a11==1)&&((a2==1)&&((a16==10)&&((((!(a20==1)&&(input==6))&&(a1==12))&&!(a27==1))&&(a6==1))))))&&(((a5==6)&&((a19==3)&&((((a23==1)||!(a2==1))&&(a17==2))&&(a21==10))))||(a27==1)))){ + a5 = 5; + a19 = 1; + a23 = 0; + a8 = 1; + a20 = 1; + a9 = 10; + a13 = 0; + a16 = 7; + return -1; + } else if((((a26==1)||(!(a12==1)||((((a3==1)&&(a17==2))&&(a1==12))&&!(a20==1))))&&((a21==12)&&((!(a7==1)&&(!(a7==1)&&((!(a24==1)&&(((a16==8)&&((a5==6)&&(input==4)))&&!(a24==1)))&&(a9==10))))&&(a19==2))))){ + if((a27==1)){ + a22 = 0; + a1 = 14; + a19 = 3; + a16 = 9; + a23 = 0; + a20 = 1; + a9 = 7; + }else{ + a24 = 1; + a16 = 7; + a6 = 0; + a20 = 1; + a9 = 11; + a5 = 4; + a1 = 13; + a4 = 1; + a21 = 10; + a19 = 1; + } + return 25; + } else if((((a1==13)&&(((!(a12==1)||((a16==9)&&(!(a27==1)&&(a23==1))))&&!(a8==1))&&(a21==11)))&&((a5==5)&&((a19==3)&&((a17==2)&&((a23==1)&&(!(a7==1)&&(!(a8==1)&&((a9==9)&&(!(a20==1)&&(input==4))))))))))){ + a16 = 7; + a13 = 0; + a20 = 1; + a22 = 0; + a8 = 1; + a21 = 10; + a1 = 12; + a19 = 1; + a9 = 11; + return -1; + } else if(((((a19==2)&&(((a5==5)&&((a14==1)||(((a17==2)&&((a6==1)&&((a23==1)&&(a3==1))))||(a4==1))))&&(a20==1)))&&(a16==10))&&((a9==11)&&((a1==14)&&((a13==1)&&(!(a8==1)&&((a21==11)&&(input==4)))))))){ + a1 = 12; + a16 = 7; + a9 = 7; + a18 = 0; + a5 = 4; + a19 = 1; + a21 = 10; + a11 = 1; + a6 = 1; + return -1; + } else if((((a16==11)&&((a20==1)&&((((a28==1)&&(!(a8==1)&&(a2==1)))||!(a3==1))&&(a17==2))))&&((a13==1)&&((((a21==11)&&((((a23==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))&&!(a18==1))&&(a19==5)))&&(a1==12))&&(a9==9))))){ + a9 = 7; + a5 = 4; + a3 = 1; + a19 = 1; + a7 = 0; + a21 = 10; + a16 = 7; + a26 = 0; + return -1; + } else if((((((a19==2)&&((a5==4)&&((a2==1)&&((a1==14)&&((a21==10)&&(input==5))))))&&(a3==1))&&!(a24==1))&&((a3==1)&&((a20==1)&&((a16==10)&&((a17==2)&&(((!(a8==1)&&(a2==1))&&(a9==7))&&(a12==1)))))))){ + a5 = 6; + a18 = 0; + a16 = 9; + a2 = 1; + a11 = 1; + a9 = 11; + a21 = 12; + return 21; + } else if((((a7==1)||(((a21==12)&&((a16==10)&&((a28==1)&&(a9==7))))&&(a11==1)))&&((a11==1)&&((((a20==1)&&(((a28==1)&&(((a19==2)&&((input==6)&&(a1==13)))&&(a5==6)))&&!(a4==1)))&&(a17==2))&&(a6==1))))){ + a16 = 7; + a21 = 10; + a28 = 1; + a9 = 10; + a12 = 1; + a11 = 1; + a1 = 14; + return 21; + } else if(((!(a20==1)&&((!(a2==1)||((a9==9)&&((a13==1)||(a7==1))))&&!(a8==1)))&&(((a16==9)&&(((!(a27==1)&&((((((a5==5)||(a5==6))&&(input==5))&&(a17==2))&&(a13==1))&&(a28==1)))&&(a21==10))&&(a19==2)))&&(a1==13)))){ + a19 = 1; + a5 = 6; + a13 = 0; + a9 = 7; + a16 = 11; + a26 = 1; + a0 = 1; + return -1; + } else if((((a1==13)&&((a21==12)&&(!(a2==1)&&(!(a23==1)&&((!(a6==1)&&((((a5==4)&&((a9==9)&&((a16==7)&&(input==6))))&&(a24==1))&&(a24==1)))&&(a19==2))))))&&((a7==1)&&((a20==1)&&((a3==1)&&(a17==2)))))){ + a21 = 10; + a29 = 0; + a5 = 5; + a9 = 11; + a1 = 12; + a3 = 0; + a22 = 0; + return 25; + } else if((((a1==13)&&((a6==1)&&((a13==1)&&((!(a20==1)&&(input==5))&&(a19==1)))))&&(((a21==11)&&(((((a6==1)&&(!(a3==1)||((a9==10)&&((a11==1)&&(a17==2)))))&&(a5==4))||(a24==1))&&!(a0==1)))&&(a16==7)))){ + a21 = 10; + a20 = 1; + a3 = 1; + a27 = 0; + a9 = 7; + a13 = 1; + a1 = 12; + return -1; + } else if((((a7==1)||(((((a5==6)&&((a17==2)&&((a2==1)&&((a6==1)&&(a20==1)))))||!(a11==1))&&(a1==12))||(a8==1)))&&(((a19==5)&&((a21==10)&&(!(a7==1)&&(((input==5)&&(a9==10))&&(a16==7)))))&&!(a0==1)))){ + if((a20==1)){ + a21 = 11; + a7 = 0; + a18 = 0; + a2 = 1; + a19 = 2; + a1 = 14; + a20 = 0; + }else{ + a9 = 9; + a21 = 12; + a1 = 13; + a13 = 1; + a11 = 1; + a19 = 2; + a5 = 5; + a18 = 0; + } + return 22; + } else if((((a19==3)&&(((((a24==1)||((a2==1)&&(a2==1)))&&!(a7==1))&&(a20==1))&&(a21==11)))&&((((a5==6)&&(((a16==8)&&((((input==6)&&(a1==14))&&!(a27==1))&&!(a26==1)))&&(a17==2)))&&(a23==1))&&(a9==10)))){ + a9 = 7; + a18 = 0; + a5 = 4; + a6 = 1; + a4 = 0; + a1 = 12; + a21 = 10; + a19 = 1; + a16 = 7; + return -1; + } else if((((a1==12)&&((a16==9)&&((a21==12)&&((a3==1)&&((a20==1)&&(((input==5)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5))))&&!(a27==1)))))))&&(((a27==1)||(((a28==1)&&(((a11==1)||!(a3==1))&&(a28==1)))&&(a19==1)))&&(a17==2)))){ + a21 = 11; + a5 = 6; + a19 = 2; + a18 = 0; + a8 = 0; + a9 = 7; + return -1; + } else if((((a16==8)&&((a23==1)&&(((a11==1)&&((!(a14==1)&&((a20==1)&&(input==6)))&&!(a18==1)))&&(a1==13))))&&((((a23==1)&&(!(a11==1)||((a17==2)&&(((a12==1)&&(a5==5))&&(a19==4)))))&&(a21==11))&&(a9==11)))){ + if((a14==1)){ + a2 = 1; + a1 = 14; + a4 = 0; + a20 = 0; + a19 = 5; + a21 = 10; + a5 = 4; + a3 = 1; + }else{ + a19 = 2; + a0 = 0; + a5 = 4; + a16 = 10; + a6 = 1; + } + return 25; + } else if(((!(a27==1)&&(((a17==2)&&((a16==7)&&((a21==12)&&((((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(input==6)))))&&(a6==1)))&&(((a3==1)&&(!(a11==1)||(((!(a20==1)&&((a1==13)&&(a3==1)))||(a27==1))&&(a19==2))))||(a8==1)))){ + a16 = 10; + a6 = 1; + a9 = 10; + a20 = 1; + a19 = 4; + a8 = 0; + a5 = 6; + a13 = 1; + return 26; + } else if((((a18==1)||(!(a26==1)&&((a16==9)&&((((a13==1)||(a0==1))&&!(a20==1))&&!(a4==1)))))&&(((a17==2)&&((a19==5)&&((a9==10)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a6==1))&&(a21==11))&&(a1==12)))))&&(a23==1)))){ + a21 = 10; + a5 = 5; + a1 = 14; + a9 = 11; + a19 = 1; + a7 = 1; + a29 = 0; + a10 = 0; + a16 = 7; + a20 = 1; + return -1; + } else if((((((((((a12==1)&&(a2==1))&&(a5==6))||!(a11==1))&&!(a27==1))&&(a21==12))&&(a19==5))&&!(a20==1))&&(((((a6==1)&&((((a1==13)&&(input==6))&&!(a24==1))&&(a17==2)))&&(a23==1))&&(a9==11))&&(a16==8)))){ + if((a24==1)){ + a1 = 12; + a19 = 1; + a16 = 7; + a9 = 8; + a0 = 1; + a21 = 10; + a20 = 1; + a10 = 1; + }else{ + a3 = 0; + a5 = 5; + a20 = 1; + a21 = 10; + a19 = 1; + a1 = 12; + a24 = 1; + a16 = 7; + a10 = 1; + } + return 26; + } else if((((a19==3)&&((a20==1)&&(((a0==1)&&(((a16==8)&&((input==6)&&((a5==5)||(a5==6))))&&(a17==2)))&&(a27==1))))&&((a8==1)&&(((((a14==1)&&(!(a3==1)&&((a1==13)&&(a23==1))))&&(a21==11))&&(a9==8))&&(a0==1))))){ + a5 = 6; + a2 = 0; + a22 = 0; + a16 = 7; + a19 = 5; + a21 = 10; + a7 = 1; + return -1; + } else if((((a16==10)&&(!(a28==1)||((a13==1)&&((a17==2)&&(a28==1)))))&&((!(a7==1)&&(!(a4==1)&&(!(a18==1)&&((a21==10)&&((((((a19==3)&&((a9==11)&&((a5==6)&&(a1==14))))||(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==4)))||(((a9==7)&&((a5==5)&&(a1==12)))&&(a19==4)))&&(input==1))&&(a2==1))))))&&(a20==1)))){ + a23 = 1; + a19 = 1; + a5 = 4; + a9 = 7; + a18 = 0; + a8 = 0; + a1 = 12; + a16 = 7; + return -1; + } else if((((a26==1)||((a12==1)&&(((a6==1)&&(a21==11))&&!(a20==1))))&&(((a11==1)&&((a2==1)&&((a1==13)&&(((a17==2)&&(!(a8==1)&&((a19==5)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==3)))))&&(a16==8)))))&&(a28==1)))){ + a9 = 10; + a20 = 1; + a1 = 12; + a19 = 2; + a21 = 10; + a7 = 1; + a24 = 1; + a10 = 1; + a16 = 7; + a5 = 6; + return -1; + } else if((((((a27==1)||((a16==9)&&(((a17==2)&&(a23==1))||!(a3==1))))||!(a11==1))&&(a12==1))&&(!(a4==1)&&((!(a20==1)&&((a21==11)&&((((a19==4)&&((a9==11)&&((a1==14)&&(a5==6))))||((a19==5)&&((a9==7)&&((a1==12)&&(a5==4)))))&&(input==1))))&&!(a0==1))))){ + a9 = 10; + a19 = 2; + a12 = 0; + a14 = 1; + a20 = 1; + a3 = 0; + a5 = 6; + a16 = 7; + a1 = 12; + a21 = 10; + return 23; + } else if((((!(a26==1)&&((a26==1)||((a12==1)||!(a2==1))))&&(a3==1))&&((a16==10)&&((((a19==5)&&((a9==7)&&((a17==2)&&(!(a20==1)&&((((input==4)&&((a5==5)||(a5==6)))&&(a3==1))&&(a1==14))))))&&(a21==11))&&!(a26==1))))){ + if((a29==1)){ + a1 = 12; + a16 = 7; + a25 = 0; + a19 = 1; + a21 = 10; + a6 = 0; + a24 = 1; + a20 = 1; + a5 = 4; + }else{ + a22 = 0; + a21 = 12; + a19 = 3; + a16 = 7; + a9 = 8; + a5 = 4; + a2 = 0; + a14 = 1; + } + return -1; + } else if(((((a9==8)&&((((!(a28==1)&&(a3==1))&&(a21==11))&&!(a11==1))&&!(a11==1)))&&(a17==2))&&((a20==1)&&((((a27==1)&&((a19==3)&&((a7==1)&&(((input==3)&&((a5==5)||(a5==6)))&&!(a12==1)))))&&(a16==8))&&(a1==13))))){ + a9 = 10; + a16 = 7; + a5 = 4; + a23 = 0; + a25 = 1; + a6 = 0; + a19 = 1; + a21 = 10; + return -1; + } else if(((!(a4==1)&&((a9==11)&&((a21==12)&&(!(a20==1)&&(((a12==1)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a16==9))&&(a17==2)))&&(a11==1))))))&&(!(a7==1)&&(((a19==2)&&((a1==12)&&((a28==1)||(a14==1))))&&(a6==1))))){ + if((a12==1)){ + a1 = 14; + a16 = 7; + a20 = 1; + a29 = 1; + a5 = 5; + a25 = 1; + a23 = 0; + a19 = 1; + a21 = 10; + }else{ + a20 = 1; + a21 = 11; + a5 = 5; + a7 = 1; + a28 = 0; + a19 = 5; + a16 = 10; + a9 = 10; + a18 = 1; + } + return -1; + } else if(((!(a12==1)||(((a12==1)&&(((((a7==1)||((a5==4)&&((a23==1)&&(a23==1))))&&(a16==9))&&(a21==10))&&(a19==5)))&&(a20==1)))&&((a6==1)&&(((((a1==13)&&(input==3))&&(a17==2))&&(a9==8))&&!(a26==1))))){ + a23 = 1; + a9 = 7; + a13 = 1; + a1 = 12; + a19 = 1; + a2 = 1; + a16 = 7; + return -1; + } else if((((((a9==7)&&((!(a7==1)&&(((a13==1)&&(a19==1))&&(a28==1)))&&(a20==1)))&&(a21==11))&&(a17==2))&&((((a6==1)&&(((!(a24==1)&&((input==4)&&((a5==4)||(a5==5))))&&(a11==1))&&(a23==1)))&&(a1==13))&&(a16==8)))){ + a1 = 12; + a3 = 1; + a16 = 7; + a12 = 1; + a21 = 10; + a5 = 4; + a8 = 0; + return -1; + } else if((((((a17==2)&&((((!(a2==1)&&(((a2==1)&&(a8==1))&&(a4==1)))&&(a21==11))&&!(a6==1))&&(a27==1)))&&(a16==8))&&(a9==7))&&((((a19==4)&&((((a5==5)||(a5==6))&&(input==3))&&(a26==1)))&&(a1==14))&&(a20==1)))){ + a1 = 12; + a5 = 5; + a19 = 1; + a11 = 0; + a16 = 11; + a15 = 1; + a21 = 10; + a26 = 1; + a9 = 9; + return 22; + } else if((((a14==1)||(((((a17==2)&&(a12==1))&&(a16==11))||!(a11==1))||(a14==1)))&&((!(a14==1)&&(!(a14==1)&&((a9==10)&&((a19==4)&&((a21==12)&&(((a11==1)&&(((a5==5)||(a5==6))&&(input==3)))&&(a20==1)))))))&&(a1==12)))){ + a3 = 1; + a19 = 1; + a21 = 10; + a11 = 1; + a9 = 7; + a5 = 4; + a16 = 7; + a26 = 0; + return -1; + } else if((((a1==13)&&(((!(a20==1)&&(((a11==1)&&((a3==1)||!(a2==1)))&&(a17==2)))&&(a21==12))||!(a3==1)))&&(((a19==5)&&((a16==10)&&(!(a18==1)&&(((input==4)&&(((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))&&!(a14==1)))))&&(a11==1)))){ + a20 = 1; + a28 = 0; + a19 = 1; + a21 = 10; + a16 = 7; + a5 = 4; + a23 = 0; + a9 = 7; + a27 = 1; + return -1; + } else if(((((a5==6)&&(!(a18==1)&&(!(a20==1)&&(((input==1)&&(a1==14))&&(a28==1)))))&&(a21==11))&&((((a9==11)&&((a2==1)&&((a6==1)&&(((a16==7)&&(!(a0==1)&&(a2==1)))&&(a23==1)))))&&(a17==2))&&(a19==2)))){ + a9 = 7; + a1 = 12; + a19 = 1; + a20 = 1; + a13 = 1; + a21 = 10; + a24 = 0; + a5 = 4; + a11 = 1; + return -1; + } else if((((a17==2)&&((((a16==7)&&(((a18==1)||((a12==1)&&(a13==1)))&&(a1==12)))&&(a19==1))&&!(a18==1)))&&(((a9==11)&&((((((input==5)&&((a5==4)||(a5==5)))&&!(a14==1))&&!(a7==1))&&(a21==10))&&(a13==1)))&&!(a20==1)))){ + a1 = 14; + a16 = 10; + a2 = 1; + a4 = 0; + a5 = 5; + a19 = 2; + a9 = 7; + a20 = 1; + a3 = 1; + return 21; + } else if((((a21==12)&&(((a23==1)&&(!(a8==1)&&((a1==14)&&((a17==2)&&((a9==9)&&(input==1))))))&&(a11==1)))&&((a26==1)||((a16==7)&&(!(a0==1)&&(((a20==1)&&((a5==5)&&((a19==2)&&(a13==1))))||(a26==1))))))){ + a0 = 0; + a1 = 12; + a9 = 7; + a21 = 10; + a24 = 0; + a5 = 4; + a19 = 1; + a2 = 1; + return -1; + } else if((((a5==4)&&((a12==1)&&((((!(a14==1)&&((((a9==8)&&(input==1))&&(a23==1))&&(a1==14)))&&(a20==1))&&(a21==12))&&(a17==2))))&&((a14==1)||((a19==3)&&((a26==1)||(((a11==1)&&(a2==1))&&(a16==8))))))){ + a9 = 7; + a28 = 1; + a16 = 7; + a0 = 0; + a24 = 0; + a1 = 12; + a21 = 10; + a19 = 1; + return -1; + } else if(((((((a12==1)||!(a13==1))||(a27==1))&&(a23==1))&&(a16==8))&&((((a12==1)&&(((a21==11)&&((!(a18==1)&&(!(a18==1)&&((((a5==4)||(a5==5))&&(input==3))&&(a17==2))))&&(a1==13)))&&(a9==7)))&&(a19==4))&&!(a20==1)))){ + a20 = 1; + a16 = 7; + a8 = 0; + a3 = 1; + a5 = 4; + a0 = 0; + a1 = 12; + a19 = 1; + a21 = 10; + return -1; + } else if(((((a19==4)&&(!(a20==1)&&((a23==1)&&(((a2==1)||(a27==1))||(a4==1)))))&&(a21==12))&&((a3==1)&&((a1==12)&&((((((input==4)&&(((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))))&&(a6==1))&&(a13==1))&&(a17==2))&&(a16==9)))))){ + a9 = 11; + a20 = 1; + a5 = 4; + a16 = 7; + a19 = 2; + a27 = 1; + a18 = 1; + a1 = 13; + a29 = 0; + return 25; + } else if(((((a14==1)||((!(a4==1)&&(((a8==1)||(a28==1))&&(a21==10)))&&(a5==6)))&&(a9==9))&&((a20==1)&&((a19==5)&&((a17==2)&&((a6==1)&&(((!(a14==1)&&((a16==9)&&(input==4)))&&(a1==12))&&(a3==1)))))))){ + a3 = 1; + a19 = 1; + a9 = 7; + a14 = 0; + a5 = 4; + a16 = 7; + return -1; + } else if(((((a24==1)||((a9==11)&&(((a12==1)&&(a1==12))&&!(a14==1))))&&(a17==2))&&((a12==1)&&((a5==4)&&((!(a8==1)&&(((!(a8==1)&&((a19==1)&&((a16==10)&&(input==4))))&&!(a20==1))&&(a21==12)))&&(a3==1)))))){ + a16 = 7; + a21 = 10; + a5 = 6; + a6 = 0; + a9 = 9; + a15 = 0; + a20 = 1; + a8 = 1; + a1 = 13; + return -1; + } else if((((a3==1)&&(((a20==1)&&(((a16==8)&&((a9==11)&&((a13==1)&&(a17==2))))||(a7==1)))&&(a19==2)))&&((a28==1)&&(!(a26==1)&&((a5==4)&&(((!(a24==1)&&((a21==12)&&(input==4)))&&(a13==1))&&(a1==14))))))){ + a6 = 1; + a11 = 1; + a19 = 1; + a21 = 10; + a9 = 7; + a7 = 0; + a16 = 7; + a1 = 12; + return -1; + } else if(((!(a0==1)&&((a18==1)||((a17==2)&&(((a20==1)&&((a2==1)&&!(a18==1)))&&(a28==1)))))&&(((a16==11)&&(((a1==14)&&(((((a21==11)&&(input==6))&&!(a18==1))&&(a3==1))&&(a19==1)))&&(a5==5)))&&(a9==10)))){ + a9 = 11; + a26 = 0; + a11 = 1; + a19 = 5; + a28 = 1; + return 25; + } else if(((((a16==9)&&(!(a26==1)&&((((a2==1)&&(!(a7==1)&&(((a19==5)&&(input==3))&&(a23==1))))&&(a9==9))&&!(a20==1))))&&(a21==12))&&((a5==6)&&(((a6==1)&&((a1==14)&&(!(a14==1)&&(a28==1))))&&(a17==2))))){ + a28 = 0; + a21 = 10; + a19 = 1; + a29 = 0; + a5 = 4; + a1 = 12; + a2 = 0; + a9 = 10; + a20 = 1; + a16 = 7; + return -1; + } else if((((a1==12)&&((a16==10)&&(((a3==1)&&!(a20==1))&&(a5==6))))&&(!(a0==1)&&(!(a24==1)&&(((!(a0==1)&&(((a17==2)&&((a28==1)&&(!(a0==1)&&((a9==9)&&(input==4)))))&&(a21==10)))&&(a12==1))&&(a19==1)))))){ + a24 = 1; + a9 = 7; + a21 = 11; + a8 = 1; + a1 = 14; + a5 = 5; + a7 = 1; + a16 = 9; + return 21; + } else if((((((input==5)&&(a21==12))&&!(a8==1))&&!(a0==1))&&((a1==14)&&((((((((a27==1)||((!(a26==1)&&((a3==1)&&(a16==8)))&&!(a8==1)))&&(a23==1))&&(a19==1))&&(a9==8))&&(a17==2))&&(a20==1))&&(a5==6))))){ + a28 = 1; + a18 = 0; + a16 = 7; + a19 = 4; + a21 = 10; + a23 = 1; + a5 = 5; + a1 = 13; + a9 = 10; + return 25; + } else if((((a2==1)&&((!(a8==1)&&((((a21==11)&&(((input==5)&&((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4))))&&(a23==1)))&&(a19==1))&&(a1==12)))&&!(a14==1)))&&((((((a2==1)&&(a16==8))&&(a20==1))&&(a17==2))&&(a13==1))||!(a3==1)))){ + a21 = 10; + a9 = 7; + a18 = 0; + a16 = 7; + a5 = 4; + a0 = 0; + a14 = 0; + return -1; + } else if((((a21==10)&&((((a17==2)&&(!(a3==1)||(((a11==1)&&(a16==9))||(a4==1))))&&(a6==1))&&(a20==1)))&&((a9==10)&&((a6==1)&&((a6==1)&&((((a19==5)&&(((a5==5)||(a5==6))&&(input==5)))&&(a1==14))&&(a28==1))))))){ + a28 = 1; + a5 = 4; + a19 = 1; + a23 = 1; + a9 = 7; + a16 = 7; + a1 = 12; + return -1; + } else if(((((a9==10)&&((((a19==2)&&(!(a0==1)&&(((a1==13)&&(input==5))&&(a5==4))))&&(a2==1))&&(a21==12)))&&!(a20==1))&&(((a16==10)&&(((((a12==1)||!(a11==1))||(a14==1))||!(a23==1))&&(a17==2)))||!(a6==1)))){ + a19 = 1; + a21 = 10; + a13 = 0; + a5 = 6; + a15 = 0; + a20 = 1; + a16 = 7; + a1 = 14; + a23 = 0; + return -1; + } else if((((a1==13)&&(((a9==7)&&(((a17==2)&&(((a21==10)&&(((a8==1)||(a28==1))&&(a3==1)))&&(a5==5)))&&(a16==7)))&&(a20==1)))&&((a28==1)&&(!(a27==1)&&((a12==1)&&(((a19==2)&&(input==5))&&!(a26==1))))))){ + a0 = 0; + a9 = 8; + a18 = 0; + a8 = 0; + return 25; + } else if(((!(a12==1)||((((a18==1)||(((a12==1)&&(a19==2))||!(a2==1)))&&(a21==11))&&(a5==6)))&&(((a12==1)&&((a17==2)&&((a9==7)&&((!(a7==1)&&(((input==6)&&(a1==14))&&(a20==1)))&&(a16==8)))))&&!(a24==1)))){ + a19 = 1; + a24 = 0; + a5 = 4; + a28 = 1; + a16 = 7; + a1 = 12; + a21 = 10; + a27 = 0; + return -1; + } else if(((((!(a4==1)&&((a1==12)&&(((a11==1)&&(a16==8))&&!(a4==1))))&&!(a8==1))&&(a20==1))&&(((((a17==2)&&(!(a14==1)&&(((((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(input==1))&&!(a8==1))))&&!(a24==1))&&(a21==10))&&(a19==2)))){ + a19 = 1; + a9 = 7; + a16 = 7; + a23 = 1; + a14 = 0; + a11 = 1; + a5 = 4; + return -1; + } else if((((a12==1)&&(((a17==2)&&((((a5==4)||(a5==5))&&(input==5))&&(a1==14)))&&(a19==1)))&&(!(a13==1)||((a8==1)||(!(a6==1)||((!(a2==1)||((a21==10)&&(((a9==8)&&((a6==1)&&(a16==9)))&&(a20==1))))||(a18==1))))))){ + a1 = 12; + a9 = 11; + a12 = 1; + a5 = 4; + a16 = 11; + a0 = 0; + return 25; + } else if((((!(a20==1)&&((a1==12)&&(((a17==2)&&((a19==3)&&((input==1)&&((a5==6)||((a5==4)||(a5==5))))))&&(a12==1))))&&(a23==1))&&(((a0==1)||((a21==12)&&(!(a3==1)||((a2==1)&&(((a13==1)&&(a13==1))&&(a16==7))))))&&(a9==7)))){ + if((a0==1)){ + a19 = 5; + a26 = 0; + a1 = 13; + a5 = 5; + a8 = 0; + a16 = 8; + a21 = 10; + }else{ + a9 = 11; + a21 = 11; + a2 = 1; + a19 = 4; + a20 = 1; + a5 = 4; + a23 = 1; + a4 = 0; + } + return 25; + } else if((((((a19==1)&&(((a21==12)&&(((((a27==1)&&(!(a13==1)&&(((input==6)&&((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a5==4)&&(a9==11))))&&!(a23==1))))&&(a7==1))&&(a24==1))&&(a16==10)))&&(a27==1)))&&(a1==13))&&(a20==1))&&((a23==1)&&(a17==2)))){ + a21 = 10; + a9 = 8; + a14 = 1; + a3 = 0; + a1 = 12; + a16 = 7; + a5 = 5; + return -1; + } else if((((a16==9)&&((!(a0==1)&&((!(a0==1)&&((a19==1)&&((((input==3)&&(a20==1))&&(a21==10))&&(a1==13))))&&(a5==6)))&&(a2==1)))&&((!(a3==1)||((((a11==1)||(a24==1))&&(a2==1))&&(a17==2)))&&(a9==11)))){ + a9 = 7; + a4 = 0; + a1 = 12; + a27 = 0; + a19 = 4; + a18 = 0; + a5 = 5; + a16 = 8; + return 22; + } else if((((a17==2)&&(((a28==1)&&((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==6)))&&(a19==3)))&&((a24==1)||((!(a7==1)&&((a21==10)&&((((a7==1)||(((a2==1)&&(a16==7))&&(a1==14)))&&!(a20==1))||!(a12==1))))&&(a3==1))))){ + a19 = 4; + a28 = 1; + a9 = 10; + a7 = 0; + a1 = 12; + a2 = 1; + a5 = 6; + return 21; + } else if((((a6==1)&&((a13==1)&&((a17==2)&&((a21==10)&&(!(a27==1)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==3)))))))&&(!(a7==1)&&(!(a8==1)&&((a7==1)||((a16==7)&&((((a19==4)&&(a2==1))&&!(a20==1))&&(a1==13)))))))){ + a20 = 1; + a5 = 5; + a19 = 1; + a9 = 10; + a11 = 1; + a21 = 12; + a1 = 12; + a18 = 0; + a16 = 8; + return -1; + } else if((((!(a8==1)&&(((((input==6)&&((a5==4)||(a5==5)))&&(a16==10))&&(a20==1))&&!(a26==1)))&&!(a4==1))&&(((a3==1)&&((a0==1)||((a13==1)&&((a21==10)&&((a17==2)&&((a19==3)&&((a3==1)&&(a9==10))))))))&&(a1==14)))){ + a19 = 1; + a9 = 7; + a1 = 12; + a16 = 7; + a0 = 0; + a18 = 0; + a26 = 0; + a5 = 4; + return -1; + } else if((((a16==10)&&((a19==2)&&(((!(a6==1)||((a23==1)||!(a11==1)))||!(a3==1))||(a27==1))))&&(((a1==14)&&((a21==12)&&((a3==1)&&(((a20==1)&&((a17==2)&&(((a5==5)||(a5==6))&&(input==3))))&&(a9==8)))))&&(a23==1)))){ + a16 = 7; + a9 = 7; + a0 = 0; + a6 = 1; + a21 = 10; + a23 = 1; + a19 = 1; + a1 = 12; + a5 = 4; + return -1; + } else if(((((((a9==7)&&((a16==8)&&((a19==4)&&(input==5))))&&(a1==13))&&!(a7==1))&&!(a8==1))&&(!(a2==1)||(((a17==2)&&(((a13==1)&&((a6==1)&&(((a28==1)&&(a21==11))&&(a20==1))))||!(a3==1)))&&(a5==5))))){ + a21 = 10; + a16 = 7; + a11 = 1; + a19 = 1; + a1 = 12; + a5 = 4; + a28 = 1; + a0 = 0; + return -1; + } else if(((((((a17==2)&&((input==1)&&((((a9==11)&&((a1==12)&&(a5==5)))||((a9==11)&&((a1==12)&&(a5==6))))||(((a5==4)&&(a1==13))&&(a9==7)))))&&!(a7==1))&&(a16==11))&&(a3==1))&&((a19==3)&&((a21==10)&&(!(a26==1)&&(!(a23==1)||((!(a20==1)&&((a11==1)||(a26==1)))||(a4==1)))))))){ + a9 = 11; + a10 = 0; + a16 = 9; + a20 = 1; + a15 = 1; + a1 = 14; + a5 = 4; + a19 = 5; + a27 = 1; + return -1; + } else if((((a2==1)&&((a28==1)&&(!(a4==1)&&((a2==1)&&((a16==8)&&((a19==1)&&(((a17==2)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&(a3==1))&&(a23==1)))&&(a9==10))))))))&&((a21==12)&&(((a2==1)&&(a1==14))&&!(a20==1))))){ + if((a17==4)){ + a5 = 5; + a21 = 10; + a19 = 2; + a16 = 10; + a18 = 1; + a9 = 11; + a24 = 1; + a1 = 12; + a0 = 1; + }else{ + a1 = 12; + a28 = 0; + a16 = 7; + a5 = 4; + a0 = 1; + a19 = 2; + a21 = 10; + a11 = 0; + a20 = 1; + a9 = 8; + } + return -1; + } else if((((a19==2)&&(((a20==1)&&(((a1==13)&&((a17==2)&&(((a16==11)&&(input==4))&&(a5==4))))&&(a21==12)))&&!(a8==1)))&&(((a18==1)||(!(a27==1)&&((!(a2==1)||((a28==1)||(a0==1)))&&(a6==1))))&&(a9==9)))){ + a13 = 1; + a19 = 1; + a14 = 0; + a28 = 1; + a1 = 12; + a21 = 10; + a9 = 7; + a16 = 7; + return -1; + } else if((((a17==2)&&((a21==12)&&(((a6==1)&&((a19==3)&&(((a5==4)||(a5==5))&&(input==6))))&&(a9==9))))&&(!(a20==1)&&(((a1==14)&&((((((a13==1)&&!(a27==1))&&(a16==7))&&!(a27==1))||!(a12==1))&&!(a4==1)))||!(a2==1))))){ + a21 = 10; + a13 = 1; + a5 = 4; + a28 = 1; + a20 = 1; + a26 = 0; + a9 = 7; + a1 = 12; + a19 = 1; + return -1; + } else if(((((((((a21==10)&&((((a6==1)&&!(a20==1))||(a26==1))&&(a13==1)))&&(a28==1))&&(a19==2))||!(a2==1))&&(a17==2))&&(a28==1))&&((a9==10)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a1==12))&&(a16==8))&&(a12==1))))){ + a11 = 1; + a5 = 4; + a19 = 1; + a9 = 7; + a20 = 1; + a16 = 7; + a6 = 1; + return -1; + } else if(((((a16==8)&&(((!(a8==1)&&(!(a3==1)||((a11==1)&&(a20==1))))&&(a17==2))&&(a19==5)))||!(a23==1))&&(!(a24==1)&&((a9==8)&&((a1==12)&&(!(a18==1)&&((a23==1)&&(((a5==6)&&(input==3))&&(a21==12))))))))){ + a13 = 1; + a19 = 1; + a23 = 1; + a28 = 1; + a16 = 7; + a5 = 4; + a9 = 7; + a21 = 10; + return -1; + } else if((((a9==11)&&((((a24==1)||((a5==5)&&(((a16==9)&&(((a13==1)&&((a28==1)&&(a17==2)))&&(a28==1)))&&(a6==1))))||!(a12==1))&&(a21==10)))&&(!(a20==1)&&((a1==13)&&(((a19==1)&&(input==6))&&!(a4==1)))))){ + a21 = 12; + a14 = 1; + a3 = 0; + a19 = 3; + a26 = 1; + a9 = 9; + a16 = 10; + return 21; + } else if((((a1==14)&&((a12==1)&&((a24==1)||(((a16==8)&&(((a24==1)||((a28==1)&&(a21==10)))&&!(a14==1)))&&(a23==1)))))&&(((a17==2)&&((((input==1)&&(((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))))&&(a28==1))&&(a20==1)))&&(a19==3)))){ + a9 = 7; + a26 = 0; + a5 = 4; + a1 = 12; + a7 = 0; + a16 = 7; + a19 = 1; + return -1; + } else if((((a17==2)&&(((((!(a6==1)&&(a13==1))&&(a1==13))&&(a19==2))&&(a18==1))&&!(a3==1)))&&((a9==7)&&(!(a3==1)&&((a20==1)&&(((a18==1)&&((((input==6)&&((a5==5)||(a5==6)))&&(a21==10))&&(a16==8)))&&!(a2==1))))))){ + a10 = 0; + a29 = 1; + a19 = 1; + a5 = 4; + a16 = 7; + return -1; + } else if((((((a26==1)||((!(a26==1)&&((a3==1)&&(a17==2)))||!(a2==1)))&&!(a20==1))&&(a16==9))&&((((a11==1)&&((a9==7)&&(!(a26==1)&&((!(a7==1)&&((a19==1)&&(input==1)))&&(a1==12)))))&&(a21==12))&&(a5==6)))){ + a25 = 1; + a16 = 7; + a21 = 10; + a1 = 13; + a27 = 1; + a11 = 0; + a9 = 10; + a20 = 1; + return -1; + } else if((((a1==13)&&(((a21==12)&&(((a23==1)&&((a17==2)&&((a6==1)&&!(a8==1))))||!(a13==1)))&&(a9==10)))&&(((a16==7)&&((a6==1)&&((a19==2)&&(((((a5==4)||(a5==5))&&(input==4))&&!(a7==1))&&!(a14==1)))))&&(a20==1)))){ + a0 = 0; + a5 = 4; + a1 = 12; + a21 = 10; + a24 = 0; + a11 = 1; + a19 = 1; + a9 = 7; + return -1; + } else if(((((((((((a1==12)&&((input==6)&&(a19==5)))&&(a5==5))&&(a9==8))&&!(a20==1))&&(a21==11))&&(a16==10))&&(a17==2))&&(a2==1))&&(!(a28==1)||(((a6==1)&&((!(a7==1)&&(a3==1))||!(a11==1)))&&!(a0==1))))){ + a14 = 1; + a28 = 0; + a20 = 1; + a16 = 7; + a15 = 0; + a1 = 13; + a9 = 11; + a19 = 1; + a5 = 4; + a21 = 10; + return -1; + } else if(((((a16==10)&&((a13==1)&&((a9==11)&&((((input==3)&&(a5==6))&&(a3==1))&&(a23==1)))))&&!(a14==1))&&((a20==1)&&(((a21==11)&&((a8==1)||(((a1==13)&&((a3==1)&&(a17==2)))||(a7==1))))&&(a19==4))))){ + a16 = 7; + a21 = 10; + a11 = 1; + a1 = 12; + a9 = 7; + a5 = 4; + a19 = 1; + a12 = 1; + return -1; + } else if((((a17==2)&&((!(a11==1)||((((a6==1)&&(a9==10))||(a26==1))&&(a21==12)))&&(a6==1)))&&((((a12==1)&&((!(a0==1)&&(((a16==8)&&((input==1)&&((a5==4)||(a5==5))))&&(a1==13)))&&(a19==5)))&&(a6==1))&&!(a20==1)))){ + a12 = 0; + a21 = 11; + a2 = 0; + a16 = 7; + a9 = 9; + a1 = 12; + a5 = 5; + return -1; + } else if(((((a19==5)&&((a21==10)&&(((a20==1)&&(!(a7==1)&&(((a5==5)||(a5==6))&&(input==5))))&&(a23==1))))&&(a16==7))&&((a17==2)&&((a8==1)||((a9==7)&&(((!(a6==1)||(!(a7==1)&&(a13==1)))&&!(a24==1))&&(a1==13))))))){ + a1 = 12; + a24 = 0; + a8 = 0; + a11 = 1; + a19 = 1; + a5 = 4; + return -1; + } else if(((((!(a26==1)&&((a28==1)&&(!(a26==1)&&(!(a0==1)&&(!(a8==1)&&((((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(input==5)))))))&&!(a20==1))&&(a16==10))&&(((a26==1)||((a19==3)&&((a17==2)&&((a1==12)&&(a23==1)))))&&(a21==11)))){ + a5 = 6; + a2 = 0; + a19 = 2; + a20 = 1; + a16 = 11; + a23 = 0; + a9 = 9; + a15 = 1; + return -1; + } else if((((a1==13)&&((((a17==2)&&(((a11==1)||!(a6==1))||!(a13==1)))&&(a23==1))&&(a16==9)))&&((a21==10)&&((((!(a24==1)&&(((a19==4)&&((input==3)&&((a5==5)||(a5==6))))&&(a20==1)))&&!(a4==1))&&!(a26==1))&&(a9==8))))){ + a9 = 7; + a13 = 1; + a1 = 12; + a19 = 1; + a5 = 4; + a16 = 7; + a4 = 0; + return -1; + } else if((((a12==1)&&((((a11==1)&&((a2==1)&&(!(a14==1)&&((input==6)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5)))))))&&(a17==2))&&(a6==1)))&&((((a16==9)&&((!(a14==1)&&((a2==1)&&!(a20==1)))&&(a21==10)))&&(a19==1))&&(a1==14)))){ + if((a1==14)){ + a5 = 4; + a26 = 1; + a29 = 0; + a19 = 4; + a21 = 12; + a20 = 1; + a9 = 11; + a16 = 7; + a22 = 1; + a1 = 12; + }else{ + a2 = 0; + a5 = 4; + a13 = 0; + a16 = 10; + a20 = 1; + a1 = 12; + a9 = 9; + a21 = 12; + } + return -1; + } else if((((((((a20==1)&&(!(a6==1)||(a6==1)))||!(a6==1))&&(a1==12))&&(a19==3))&&!(a7==1))&&(((a16==7)&&(((((a3==1)&&((a11==1)&&((input==6)&&((a5==4)||(a5==5)))))&&(a17==2))&&!(a24==1))&&(a9==11)))&&(a21==12)))){ + a9 = 7; + a21 = 10; + a14 = 0; + a19 = 1; + a6 = 1; + a13 = 1; + a5 = 4; + return -1; + } else if(((!(a27==1)&&(((a5==4)||(a5==5))&&(input==1)))&&((a9==8)&&(((((((a17==2)&&((((a14==1)||((a19==5)&&((a3==1)||(a7==1))))||(a8==1))&&(a21==12)))&&(a3==1))&&(a16==9))&&!(a20==1))||!(a13==1))&&(a1==14))))){ + a5 = 4; + a1 = 13; + a10 = 1; + a19 = 2; + a23 = 0; + return -1; + } else if((((a11==1)&&((((a21==10)&&((a2==1)&&((((input==3)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(a19==2))&&!(a0==1))))&&(a12==1))&&(a1==13)))&&((a17==2)&&(((a20==1)&&(((a16==10)&&(a23==1))||!(a6==1)))&&(a2==1))))){ + a11 = 1; + a16 = 7; + a19 = 1; + a12 = 1; + a1 = 12; + a9 = 7; + a5 = 4; + return -1; + } else if(((!(a8==1)&&(!(a12==1)||((a19==5)&&(!(a0==1)&&((!(a7==1)&&(a3==1))&&(a9==10))))))&&(((((((!(a7==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5)))&&!(a20==1))&&(a16==9))&&(a17==2))&&(a21==11))&&!(a14==1))&&(a1==12)))){ + if((a12==1)){ + a9 = 9; + a5 = 5; + a21 = 10; + a20 = 1; + a19 = 1; + a1 = 14; + a8 = 1; + a22 = 0; + a26 = 1; + a16 = 7; + }else{ + a23 = 0; + a1 = 13; + a19 = 1; + a2 = 0; + a16 = 7; + a5 = 5; + a21 = 10; + a27 = 1; + a20 = 1; + a9 = 11; + } + return 21; + } else if((((a11==1)&&(!(a18==1)&&(!(a8==1)&&((a17==2)&&((input==6)&&((((a5==4)&&(a1==14))&&(a9==7))||(((a9==11)&&((a1==13)&&(a5==5)))||(((a1==13)&&(a5==6))&&(a9==11)))))))))&&((a8==1)||((a16==11)&&(((((a20==1)&&((a6==1)||!(a3==1)))&&(a12==1))&&(a19==1))&&(a21==12)))))){ + a26 = 0; + a11 = 1; + a16 = 7; + a21 = 10; + a1 = 12; + a0 = 0; + a5 = 4; + a9 = 7; + return -1; + } else if((((a12==1)&&((a12==1)&&((a11==1)&&(((a9==7)&&(((a16==8)&&(input==3))&&(a17==2)))&&(a11==1)))))&&(!(a14==1)&&(((((a5==4)&&(((a23==1)&&(a19==4))&&(a21==12)))&&(a1==12))&&(a20==1))||!(a11==1))))){ + a16 = 7; + a21 = 10; + a6 = 1; + a24 = 0; + a2 = 1; + a19 = 1; + return -1; + } else if(((((a20==1)&&((((a1==14)&&((a3==1)&&(a28==1)))&&(a16==9))&&(a17==2)))||(a4==1))&&(!(a24==1)&&((((a19==1)&&((a3==1)&&((a2==1)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==3)))))&&(a21==11))&&(a28==1))))){ + a9 = 7; + a1 = 12; + a21 = 10; + a16 = 7; + a26 = 0; + a0 = 0; + a6 = 1; + a5 = 4; + return -1; + } else if((((((a21==11)&&(!(a7==1)&&(((a16==11)&&((!(a18==1)&&((input==5)&&(a20==1)))&&(a1==12)))&&(a12==1))))&&!(a24==1))&&(a9==8))&&((a17==2)&&(((((a11==1)&&(a19==5))||(a24==1))&&!(a24==1))&&(a5==6))))){ + a13 = 1; + a16 = 7; + a21 = 10; + a5 = 4; + a9 = 7; + a7 = 0; + a19 = 1; + return -1; + } else if((((a21==12)&&((((a17==2)&&(((((a11==1)&&(a11==1))&&(a9==7))&&!(a8==1))||!(a3==1)))&&(a1==14))&&(a16==8)))&&((((((!(a20==1)&&(input==5))&&(a11==1))&&!(a14==1))&&(a2==1))&&(a5==5))&&(a19==1)))){ + a19 = 5; + a18 = 1; + a16 = 11; + a20 = 1; + a21 = 10; + a5 = 4; + a9 = 8; + a23 = 0; + a4 = 1; + return 22; + } else if((((a19==1)&&(!(a4==1)&&(((a5==4)&&(!(a4==1)&&((input==6)&&!(a20==1))))&&(a28==1))))&&(((((a21==10)&&(!(a4==1)&&((a0==1)||((a9==10)&&((a17==2)&&(a28==1))))))||(a18==1))&&(a16==9))&&(a1==12)))){ + a14 = 1; + a1 = 13; + a9 = 7; + a11 = 0; + a16 = 10; + a15 = 1; + a19 = 2; + a5 = 5; + return -1; + } else if((((((a19==4)&&(((a1==13)&&(((a17==2)&&(input==5))&&(a9==11)))&&(a23==1)))&&(a21==11))&&(a5==4))&&(((a16==11)&&((a28==1)&&((a20==1)&&(!(a4==1)&&((!(a7==1)&&(a6==1))||!(a28==1))))))||!(a23==1)))){ + a8 = 0; + a28 = 1; + a19 = 1; + a6 = 1; + a9 = 8; + a1 = 14; + a5 = 6; + a16 = 8; + a21 = 12; + return 21; + } else if((((a17==2)&&((a19==5)&&(((a1==13)&&(((a23==1)&&(a16==9))&&(a13==1)))&&(a20==1))))&&(((((!(a14==1)&&((a12==1)&&((a9==10)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))))&&(a21==12))&&(a11==1))&&(a12==1))&&!(a4==1)))){ + a5 = 4; + a21 = 11; + a6 = 1; + a1 = 12; + a9 = 11; + a13 = 1; + return 21; + } else if((((a13==1)&&((a2==1)&&((a6==1)&&(((a21==10)&&(((a20==1)&&(((a1==13)&&(((a5==5)||(a5==6))&&(input==3)))&&(a17==2)))&&!(a14==1)))&&!(a26==1)))))&&(((((a16==9)&&(a6==1))&&(a19==5))||(a0==1))&&(a9==7)))){ + a23 = 1; + a19 = 1; + a16 = 7; + a1 = 12; + a5 = 4; + a27 = 0; + a3 = 1; + return -1; + } else if(((!(a14==1)&&((((a19==2)&&(((((a17==2)&&(a3==1))&&!(a7==1))&&(a21==10))&&(a16==11)))&&(a6==1))&&(a1==12)))&&(!(a8==1)&&((((a3==1)&&((a9==7)&&((input==1)&&((a5==4)||(a5==5)))))&&!(a20==1))&&(a13==1))))){ + a20 = 1; + a19 = 1; + a1 = 14; + a9 = 10; + a16 = 7; + a18 = 1; + a5 = 6; + a24 = 1; + a23 = 0; + return -1; + } else if((((a18==1)&&(((a1==14)&&((((((a2==1)&&(a16==10))&&(a20==1))&&(a8==1))&&(a21==11))&&(a26==1)))&&!(a6==1)))&&(((((a17==2)&&((input==5)&&((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4)))))&&(a4==1))&&(a19==4))&&(a7==1)))){ + a21 = 10; + a9 = 8; + a1 = 12; + a19 = 1; + a16 = 7; + a5 = 6; + a18 = 1; + a0 = 1; + a15 = 1; + return 26; + } else if((((a1==12)&&((a9==10)&&((a16==8)&&(((!(a8==1)&&((a13==1)&&(((a13==1)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))&&(a3==1))))&&(a19==4))&&(a20==1)))))&&((((!(a6==1)||(a11==1))&&(a3==1))&&(a17==2))&&(a21==11)))){ + a7 = 0; + a9 = 8; + a6 = 1; + a5 = 6; + a4 = 0; + a1 = 13; + a19 = 1; + return -1; + } else if(((!(a0==1)&&((a28==1)&&((a13==1)||!(a2==1))))&&((((((a16==7)&&((a3==1)&&((input==4)&&((((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==5))&&(a21==11))||((a21==12)&&((a19==1)&&(((a1==12)&&(a5==4))&&(a9==7)))))||((a21==12)&&((a19==1)&&((a9==7)&&((a5==5)&&(a1==12)))))))))&&(a13==1))&&(a20==1))&&(a3==1))&&(a17==2)))){ + a16 = 8; + a19 = 4; + a7 = 0; + a3 = 1; + a5 = 4; + a12 = 1; + a1 = 12; + a9 = 7; + a21 = 12; + return 22; + } else if((((a24==1)||(!(a2==1)||((a13==1)&&(a17==2))))&&((a3==1)&&((((a20==1)&&((((a3==1)&&((input==6)&&(((((a1==14)&&(a5==6))&&(a9==11))&&(a19==1))||((a19==2)&&((a9==7)&&((a1==12)&&(a5==4)))))))&&(a16==10))&&(a28==1)))&&(a21==10))&&!(a26==1))))){ + if((a22==1)){ + a24 = 0; + a5 = 5; + a14 = 0; + a16 = 8; + a20 = 0; + a21 = 11; + a9 = 10; + a18 = 0; + a19 = 1; + a1 = 13; + }else{ + a19 = 1; + a6 = 1; + a16 = 9; + a7 = 0; + a1 = 12; + a9 = 7; + a11 = 1; + a5 = 4; + } + return 22; + } else if(((((a12==1)&&((a19==4)&&(((a11==1)&&((a21==10)&&((input==6)&&(a5==5))))&&(a9==9))))&&!(a26==1))&&(!(a8==1)&&((a6==1)&&((a17==2)&&(((a16==9)&&((a1==14)&&((a3==1)&&(a12==1))))&&(a20==1))))))){ + a5 = 4; + a9 = 7; + a3 = 1; + a16 = 7; + a19 = 1; + a14 = 0; + a13 = 1; + a1 = 12; + return -1; + } else if(((!(a23==1)&&(((!(a13==1)&&((a28==1)&&(a1==14)))&&(a16==11))&&!(a13==1)))&&(!(a13==1)&&(((((a0==1)&&((((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==5))&&(a0==1))&&(a17==2)))&&(a20==1))&&(a21==12))&&(a19==3))))){ + a16 = 7; + a9 = 7; + a29 = 1; + a2 = 0; + a1 = 12; + a21 = 10; + a5 = 6; + a25 = 1; + a19 = 2; + return -1; + } else if(((!(a27==1)&&((((((input==1)&&(a17==2))&&(a13==1))&&(a19==5))&&(a9==8))&&!(a26==1)))&&(((((((a1==12)&&(((a12==1)&&(a20==1))&&(a5==5)))&&(a23==1))&&(a21==12))&&(a16==10))&&!(a0==1))||(a18==1)))){ + a5 = 6; + a19 = 4; + a12 = 1; + a6 = 1; + a16 = 7; + a8 = 0; + a1 = 14; + a21 = 10; + a9 = 10; + return 25; + } else if((((a2==1)&&((((a19==1)&&(!(a24==1)&&(((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==5))&&!(a8==1))))&&(a2==1))&&(a17==2)))&&((((a16==9)&&((a1==13)&&((a21==12)&&(!(a20==1)&&(a2==1)))))||!(a12==1))&&!(a26==1)))){ + if((a6==1)){ + a5 = 4; + a16 = 7; + a21 = 10; + a20 = 1; + a1 = 12; + a0 = 1; + a19 = 2; + a10 = 0; + a9 = 10; + a27 = 1; + }else{ + a5 = 4; + a9 = 7; + a18 = 1; + a19 = 5; + a22 = 0; + a21 = 10; + a27 = 1; + a16 = 7; + a20 = 1; + } + return -1; + } else if((((((a9==8)&&(((a20==1)&&((!(a26==1)&&((a5==5)&&(input==5)))&&(a23==1)))&&(a17==2)))&&(a19==1))&&(a3==1))&&(((a21==10)&&(((a1==12)&&(((a23==1)&&(a2==1))&&(a13==1)))&&!(a8==1)))&&(a16==8)))){ + a9 = 7; + a5 = 4; + a16 = 7; + a24 = 0; + a0 = 0; + a13 = 1; + return -1; + } else if((((a20==1)&&(!(a24==1)&&((!(a2==1)||((a3==1)&&(a19==5)))&&(a21==12))))&&((a9==10)&&((((((!(a27==1)&&(((a17==2)&&(input==6))&&(a1==14)))&&(a23==1))&&(a16==9))&&(a11==1))&&(a5==6))&&(a28==1))))){ + a9 = 9; + a19 = 4; + a4 = 0; + a23 = 1; + a16 = 11; + a27 = 0; + a5 = 4; + a21 = 10; + return 22; + } else if(((!(a13==1)||((a28==1)&&(((!(a23==1)||((((a21==12)&&(a28==1))&&(a17==2))&&!(a20==1)))&&!(a14==1))&&(a3==1))))&&((a16==10)&&((a2==1)&&((input==4)&&((((a19==2)&&((a9==11)&&((a5==5)&&(a1==14))))||(((a9==11)&&((a5==6)&&(a1==14)))&&(a19==2)))||((a19==3)&&(((a1==12)&&(a5==4))&&(a9==7))))))))){ + a1 = 12; + a16 = 8; + a15 = 0; + a5 = 4; + a9 = 10; + a29 = 1; + a21 = 10; + a25 = 0; + a19 = 2; + a20 = 1; + return -1; + } else if(((((((((a16==7)&&((input==5)&&(a19==4)))&&!(a20==1))&&!(a24==1))&&!(a0==1))&&(a11==1))&&(a21==11))&&((a9==10)&&(((((!(a7==1)&&((a3==1)||(a27==1)))&&(a13==1))&&(a5==6))&&(a17==2))&&(a1==13))))){ + a19 = 1; + a26 = 0; + a0 = 0; + a9 = 7; + a2 = 1; + a1 = 12; + a21 = 10; + a5 = 4; + a20 = 1; + return -1; + } else if((((a7==1)||((((a23==1)&&(a21==12))||(a8==1))||(a8==1)))&&((((a19==4)&&((a1==13)&&(((a17==2)&&(((a16==8)&&((((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a5==6)&&(a9==10))))&&(input==3)))&&!(a24==1)))&&(a20==1))))&&!(a18==1))&&(a28==1)))){ + a19 = 1; + a16 = 7; + a5 = 4; + a9 = 7; + a12 = 1; + a26 = 0; + a21 = 10; + a3 = 1; + a1 = 12; + return -1; + } else if(((((a16==7)&&(!(a18==1)&&((a17==2)&&((a21==11)&&(!(a20==1)&&(a3==1))))))||!(a11==1))&&((a6==1)&&((a19==3)&&(((((a23==1)&&((a9==10)&&((a1==14)&&(input==1))))&&(a28==1))&&(a5==5))&&!(a0==1)))))){ + a19 = 4; + a1 = 13; + a28 = 1; + a6 = 1; + a9 = 9; + a12 = 1; + a21 = 10; + a20 = 1; + a5 = 6; + a16 = 10; + return 21; + } else if((((a5==5)&&(!(a20==1)&&(((a13==1)&&(!(a4==1)&&((a11==1)&&!(a8==1))))&&(a16==7))))&&((a1==14)&&((a17==2)&&(!(a8==1)&&((a6==1)&&((a19==2)&&(!(a26==1)&&((a21==11)&&((a9==10)&&(input==4))))))))))){ + a21 = 10; + a5 = 4; + a1 = 12; + a12 = 1; + a9 = 7; + a6 = 1; + a7 = 0; + a20 = 1; + a19 = 1; + return -1; + } else if(((((((a21==10)&&((((((a28==1)&&((((a5==4)||(a5==5))&&(input==6))&&(a17==2)))&&(a1==12))&&(a11==1))&&!(a8==1))&&!(a18==1)))&&(a9==8))&&!(a27==1))&&(a19==3))&&(((a16==10)&&(!(a2==1)||(a23==1)))&&!(a20==1)))){ + a5 = 6; + a20 = 1; + a19 = 5; + a27 = 1; + a4 = 1; + a18 = 1; + a16 = 11; + a9 = 7; + a21 = 11; + return -1; + } else if((((a6==1)&&((((a16==10)&&((a21==11)&&((!(a28==1)||((a17==2)&&(((a19==3)&&(a11==1))||(a24==1))))&&(a9==7))))&&!(a8==1))||!(a13==1)))&&(!(a7==1)&&(((a1==14)&&((input==1)&&((a5==5)||(a5==6))))&&!(a20==1))))){ + if((a4==1)){ + a9 = 8; + a19 = 1; + a20 = 1; + a21 = 10; + a27 = 1; + a5 = 6; + a16 = 7; + a3 = 0; + a2 = 0; + }else{ + a21 = 10; + a5 = 5; + a6 = 0; + a20 = 1; + a19 = 1; + a16 = 7; + a7 = 1; + } + return 25; + } else if(((((a19==1)&&((a17==2)&&(!(a28==1)||((!(a11==1)||((((a13==1)&&!(a14==1))&&(a21==12))&&(a9==10)))&&(a1==13)))))&&!(a14==1))&&((((a16==8)&&((a2==1)&&(((a5==5)||(a5==6))&&(input==6))))&&!(a20==1))&&!(a14==1)))){ + if((a9==9)){ + a18 = 1; + a19 = 5; + a9 = 8; + a21 = 11; + a16 = 11; + a5 = 6; + a1 = 12; + a20 = 1; + a2 = 0; + a29 = 1; + }else{ + a19 = 2; + a24 = 1; + a20 = 1; + a16 = 7; + a9 = 7; + a29 = 0; + a5 = 4; + a28 = 0; + a1 = 12; + a21 = 10; + } + return -1; + } return calculate_output15(input); + } + + int calculate_output15(int input) { + if(((((a21==10)&&(((a13==1)&&(((((input==3)&&(a1==13))&&(a19==2))&&!(a24==1))&&(a11==1)))&&(a28==1)))&&!(a20==1))&&(((!(a2==1)||((a17==2)&&((a9==11)&&((a13==1)&&!(a26==1)))))&&(a16==10))&&(a5==5)))){ + a4 = 1; + a19 = 1; + a15 = 1; + a9 = 10; + a5 = 6; + a16 = 7; + a0 = 1; + a20 = 1; + return -1; + } else if((((a1==14)&&((a19==5)&&(!(a18==1)&&((a21==10)&&((a9==8)&&((a17==2)&&(a11==1)))))))&&((a16==10)&&((((!(a14==1)&&(!(a24==1)&&(((input==3)&&!(a20==1))&&!(a7==1))))&&!(a4==1))&&(a2==1))&&(a5==5))))){ + a20 = 1; + a9 = 9; + a6 = 0; + a16 = 9; + a21 = 12; + a24 = 1; + a27 = 1; + a1 = 13; + return -1; + } else if((((((!(a4==1)&&(!(a20==1)&&((((a19==3)&&(((a2==1)&&(a11==1))||(a14==1)))&&!(a14==1))&&(a1==12))))&&(a9==10))&&(a6==1))&&(a17==2))&&((a16==7)&&((!(a24==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4)))&&(a21==11))))){ + a9 = 7; + a23 = 1; + a28 = 1; + a21 = 10; + a5 = 4; + a24 = 0; + a19 = 1; + a20 = 1; + return -1; + } else if(((((a2==1)&&((a17==2)&&(!(a20==1)&&((((a16==9)&&(((a5==4)||(a5==5))&&(input==3)))&&(a9==10))&&(a1==14)))))&&(a13==1))&&((!(a27==1)&&((!(a28==1)||(((a19==2)&&(a3==1))&&(a21==10)))||(a26==1)))&&(a11==1)))){ + a22 = 0; + a16 = 7; + a25 = 1; + a9 = 7; + a21 = 12; + a1 = 12; + a27 = 1; + a5 = 6; + return -1; + } else if((((((a21==11)&&(!(a12==1)&&(((a12==1)&&(a16==7))&&(a26==1))))&&!(a2==1))&&(a8==1))&&((a5==5)&&(((((a20==1)&&((a9==7)&&(((a17==2)&&(input==5))&&!(a3==1))))&&(a19==5))&&(a1==14))&&(a4==1))))){ + a10 = 1; + a21 = 10; + a25 = 1; + a19 = 1; + a1 = 13; + a9 = 10; + a5 = 6; + a11 = 0; + return 26; + } else if(((((a6==1)&&((a5==6)&&(!(a20==1)&&((((input==4)&&(a21==10))&&(a16==7))&&(a9==9)))))&&!(a14==1))&&(((a4==1)||((a19==1)&&((!(a18==1)&&(((a17==2)&&(a6==1))||(a24==1)))&&(a6==1))))&&(a1==14)))){ + a1 = 12; + a24 = 0; + a5 = 4; + a9 = 7; + a8 = 0; + a20 = 1; + a23 = 1; + return -1; + } else if((((((a21==11)&&(((a9==10)&&((a3==1)&&((((!(a14==1)&&((input==6)&&(a20==1)))&&(a16==11))&&!(a26==1))&&!(a8==1))))&&(a17==2)))&&(a1==13))&&(a19==2))&&((a5==5)&&(((a12==1)&&(a11==1))&&(a23==1))))){ + a21 = 10; + a16 = 7; + a19 = 1; + a9 = 7; + a5 = 4; + a4 = 0; + a1 = 12; + a23 = 1; + a13 = 1; + return -1; + } else if(((((a12==1)&&(((a16==8)&&(a6==1))&&(a1==12)))&&(a20==1))&&(((a19==1)&&((!(a0==1)&&(!(a7==1)&&(!(a0==1)&&(((a9==8)&&(((input==6)&&((a5==5)||(a5==6)))&&(a21==11)))&&(a11==1)))))&&(a17==2)))&&!(a26==1)))){ + a23 = 1; + a16 = 7; + a5 = 4; + a21 = 10; + a18 = 0; + a9 = 7; + return -1; + } else if((((a17==2)&&((a21==11)&&((!(a7==1)&&((a9==7)&&(((input==3)&&((a5==5)||(a5==6)))&&(a12==1))))&&(a11==1))))&&((a20==1)&&((a23==1)&&((a1==13)&&(!(a18==1)&&((!(a27==1)&&((a3==1)&&(a19==2)))&&(a16==10)))))))){ + a5 = 4; + a1 = 12; + a21 = 10; + a16 = 7; + a3 = 1; + a12 = 1; + a19 = 1; + a4 = 0; + return -1; + } else if((((a6==1)&&(((a1==14)&&((a23==1)&&((a17==2)&&(((a9==7)&&((a21==10)&&((a20==1)&&(input==3))))&&(a11==1)))))&&(a2==1)))&&(((a16==10)&&((a5==4)&&((!(a3==1)||(a13==1))&&(a19==3))))&&!(a26==1)))){ + a23 = 1; + a24 = 0; + a16 = 7; + a12 = 1; + a1 = 12; + a19 = 1; + return -1; + } else if((((!(a18==1)&&((a9==7)&&((a21==11)&&((input==4)&&(a1==12)))))&&(a17==2))&&((a8==1)||((!(a2==1)||(!(a4==1)&&(!(a27==1)&&((a16==11)&&((a19==5)&&((a20==1)&&((a5==6)&&(a11==1))))))))||(a14==1))))){ + a23 = 1; + a18 = 0; + a21 = 10; + a5 = 4; + a3 = 1; + a16 = 7; + a19 = 1; + return -1; + } else if((((((((a16==7)&&((((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))&&(input==6)))&&!(a0==1))&&(a28==1))&&(a19==5))&&(a2==1))&&((!(a4==1)&&((a26==1)||((a7==1)||((a21==11)&&((a17==2)&&((a2==1)&&(a1==14)))))))&&(a20==1)))){ + a3 = 1; + a23 = 1; + a19 = 3; + a5 = 4; + a9 = 11; + a21 = 12; + a7 = 0; + a1 = 13; + a16 = 8; + return 23; + } else if(((((a1==14)&&((a2==1)&&((((((a2==1)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))&&(a9==11))&&!(a20==1))&&(a17==2))&&(a21==10))))&&(a3==1))&&(((a26==1)||((a16==9)&&(((a4==1)||(a12==1))&&!(a0==1))))&&(a19==5)))){ + a19 = 4; + a6 = 0; + a5 = 4; + a20 = 1; + a16 = 7; + a4 = 1; + a1 = 12; + a10 = 0; + a9 = 8; + return 22; + } else if(((!(a26==1)&&((!(a0==1)&&((a19==3)&&((a16==10)&&(!(a4==1)&&((input==3)&&!(a20==1))))))&&(a1==12)))&&(!(a27==1)&&(((((((a3==1)&&(a17==2))&&!(a7==1))&&(a21==10))&&(a9==10))&&(a5==5))&&!(a8==1))))){ + a10 = 0; + a20 = 1; + a14 = 1; + a16 = 7; + a5 = 6; + a26 = 1; + a19 = 1; + a9 = 9; + return -1; + } else if(((((((a2==1)&&!(a23==1))&&(a4==1))&&!(a28==1))&&(a1==14))&&(((((a21==11)&&(!(a23==1)&&((((a19==3)&&((a9==7)&&(((a5==5)||(a5==6))&&(input==5))))&&(a20==1))&&(a16==10))))&&(a7==1))&&(a17==2))&&(a24==1)))){ + a1 = 13; + a16 = 11; + a3 = 0; + a13 = 0; + a5 = 5; + a21 = 10; + a9 = 10; + a6 = 0; + return -1; + } else if(((((((a1==14)&&((!(a24==1)&&((a21==11)&&((input==5)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))))&&(a16==8)))&&(a12==1))&&!(a18==1))&&(a3==1))&&((a23==1)&&((a19==3)&&((a17==2)&&((!(a20==1)&&(a12==1))&&(a28==1))))))){ + a28 = 1; + a20 = 1; + a9 = 8; + a12 = 1; + a5 = 6; + a21 = 10; + a19 = 5; + return -1; + } else if(((((!(a11==1)||((a1==13)&&(!(a7==1)&&(a23==1))))&&(a19==4))&&(a9==10))&&((a12==1)&&(((a20==1)&&((a21==10)&&((a17==2)&&((a11==1)&&(((a13==1)&&(((a5==5)||(a5==6))&&(input==4)))&&(a16==9))))))&&!(a26==1))))){ + a5 = 4; + a19 = 5; + a2 = 1; + a8 = 0; + a9 = 11; + a16 = 8; + a14 = 0; + return 22; + } else if((((a9==9)&&(((a1==12)&&(((a23==1)&&((a12==1)&&(!(a11==1)||(a11==1))))||!(a6==1)))&&(a20==1)))&&((a16==7)&&(((a28==1)&&((a21==11)&&((a19==3)&&(((input==4)&&((a5==5)||(a5==6)))&&(a17==2)))))&&!(a4==1))))){ + a13 = 1; + a4 = 0; + a19 = 5; + a16 = 8; + a5 = 5; + a21 = 10; + a2 = 1; + a9 = 8; + return 22; + } else if((((a16==10)&&((a19==4)&&(((a21==10)&&(((((input==4)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11))))&&!(a14==1))&&!(a27==1))&&(a23==1)))&&(a1==13))))&&(((a13==1)&&((((a17==2)&&(a3==1))||(a7==1))&&(a12==1)))&&(a20==1)))){ + a16 = 7; + a19 = 1; + a2 = 1; + a5 = 4; + a9 = 7; + a24 = 0; + a1 = 12; + a6 = 1; + return -1; + } else if(((!(a20==1)&&(!(a2==1)||((a16==7)&&(((a2==1)&&(a9==11))&&(a21==12)))))&&(((((a13==1)&&(((((a19==4)&&(((a5==4)||(a5==5))&&(input==4)))&&!(a0==1))&&(a28==1))&&(a1==13)))&&(a17==2))&&!(a0==1))&&(a13==1)))){ + a20 = 1; + a8 = 0; + a18 = 0; + a21 = 10; + a5 = 5; + a1 = 14; + a3 = 1; + return 25; + } else if(((!(a27==1)&&((a17==2)&&(!(a20==1)&&((a19==5)&&((a1==13)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))))))&&(!(a4==1)&&((a2==1)&&((((a21==11)&&((a3==1)&&((a16==10)&&((a6==1)&&(a9==7)))))||!(a3==1))&&(a23==1)))))){ + if((a8==1)){ + a9 = 8; + a20 = 1; + a5 = 4; + a21 = 10; + a19 = 1; + a16 = 7; + a24 = 1; + a12 = 0; + }else{ + a15 = 1; + a21 = 10; + a6 = 0; + a16 = 7; + a5 = 5; + a20 = 1; + a27 = 1; + a1 = 12; + a19 = 2; + a9 = 8; + } + return 25; + } else if(((((a12==1)&&((a16==9)&&(!(a14==1)&&((((((((a9==11)&&((a1==12)&&(a5==6)))||((a9==7)&&((a5==4)&&(a1==13))))||(((a1==13)&&(a5==5))&&(a9==7)))&&(input==4))&&!(a14==1))&&(a19==1))&&(a21==12)))))&&(a23==1))&&((((!(a20==1)&&(a11==1))&&(a17==2))&&(a28==1))&&!(a18==1)))){ + if((a14==1)){ + a1 = 14; + a9 = 8; + a0 = 1; + a23 = 0; + a16 = 7; + a21 = 10; + a28 = 0; + a20 = 1; + a5 = 5; + }else{ + a21 = 10; + a5 = 6; + a8 = 1; + a2 = 0; + a1 = 13; + a9 = 10; + a3 = 0; + a16 = 7; + a20 = 1; + } + return -1; + } else if((((a19==2)&&((a21==12)&&(!(a27==1)&&(!(a26==1)&&(a2==1)))))&&(((a16==7)&&(((a5==6)&&(((a12==1)&&((a3==1)&&((a3==1)&&(!(a20==1)&&((input==3)&&(a1==12))))))&&!(a8==1)))&&(a17==2)))&&(a9==8)))){ + a21 = 10; + a27 = 0; + a3 = 1; + a5 = 4; + a9 = 7; + a20 = 1; + a19 = 1; + return -1; + } else if(((((((!(a14==1)&&((((a5==4)||(a5==5))&&(input==6))&&(a21==10)))&&(a19==1))&&!(a20==1))&&(a12==1))&&(a16==11))&&((!(a13==1)||((a9==9)&&((a1==12)&&((!(a0==1)&&((a13==1)&&(a17==2)))||!(a2==1)))))&&!(a7==1)))){ + a1 = 13; + a9 = 10; + a25 = 0; + a12 = 0; + a20 = 1; + a5 = 6; + a10 = 0; + a16 = 7; + return -1; + } else if(((((a7==1)||(((a5==4)&&((a21==11)&&((a1==13)&&(((a28==1)&&(a9==7))&&!(a20==1)))))&&(a28==1)))&&!(a7==1))&&(((a23==1)&&((((a19==1)&&((input==6)&&(a16==9)))&&!(a8==1))&&(a17==2)))&&(a28==1)))){ + a16 = 7; + a2 = 0; + a26 = 1; + a5 = 6; + a9 = 8; + a19 = 2; + a1 = 12; + a21 = 10; + a29 = 0; + a20 = 1; + return 21; + } else if((((a19==5)&&((a4==1)||((a5==5)&&((a13==1)&&((a27==1)||(((a13==1)&&(a21==10))&&!(a26==1)))))))&&((a1==14)&&((!(a27==1)&&(!(a20==1)&&(((a16==7)&&((input==5)&&(a9==10)))&&(a17==2))))&&!(a8==1))))){ + a19 = 1; + a4 = 0; + a9 = 7; + a7 = 0; + a20 = 1; + a5 = 4; + a1 = 12; + a13 = 1; + return -1; + } else if(((((!(a14==1)&&((a3==1)&&((!(a20==1)&&((a2==1)&&(a19==4)))&&(a16==10))))&&(a17==2))&&(a21==10))&&(((((a12==1)&&((a13==1)&&((((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&(input==5))))&&(a1==14))&&!(a18==1))&&!(a7==1)))){ + a19 = 1; + a16 = 8; + a9 = 11; + a27 = 1; + a5 = 6; + a24 = 1; + a26 = 1; + return -1; + } else if(((!(a6==1)||(((((a1==14)&&((a28==1)&&(a19==2)))||!(a2==1))&&!(a20==1))||!(a28==1)))&&(!(a27==1)&&(((a16==10)&&((a9==10)&&((a17==2)&&((a21==12)&&(((input==1)&&(a5==6))&&(a28==1))))))&&!(a0==1))))){ + a1 = 12; + a11 = 0; + a19 = 4; + a16 = 7; + a25 = 1; + a4 = 1; + a5 = 4; + a9 = 7; + a20 = 1; + return -1; + } else if(((((a9==10)&&(((((a12==1)&&(!(a18==1)&&((a19==2)&&(((input==6)&&(a5==5))&&!(a26==1)))))&&(a6==1))&&(a17==2))&&(a16==8)))&&!(a24==1))&&((((a21==10)&&((a23==1)&&!(a20==1)))&&(a1==14))&&(a2==1)))){ + a6 = 1; + a9 = 8; + a16 = 7; + a14 = 0; + a19 = 3; + a12 = 1; + a20 = 1; + return 25; + } else if((((a1==14)&&((a21==11)&&((a13==1)&&((((!(a4==1)&&(((a17==2)&&(((a5==5)||(a5==6))&&(input==4)))&&(a2==1)))&&(a9==7))&&!(a20==1))&&!(a27==1)))))&&((a19==5)&&((a27==1)||(((a23==1)&&(a6==1))&&(a16==8)))))){ + a19 = 1; + a15 = 0; + a6 = 0; + a1 = 13; + a5 = 4; + a20 = 1; + a21 = 10; + a16 = 7; + a25 = 1; + return 25; + } else if(((((a16==10)&&(!(a11==1)||((((a12==1)&&(a19==3))&&!(a7==1))||(a4==1))))&&(a1==14))&&((a2==1)&&(((a13==1)&&((((a13==1)&&((a20==1)&&(((a5==5)||(a5==6))&&(input==3))))&&(a17==2))&&(a21==10)))&&(a9==8))))){ + a19 = 1; + a13 = 1; + a9 = 7; + a5 = 4; + a18 = 0; + a2 = 1; + a1 = 12; + a16 = 7; + return -1; + } else if(((!(a13==1)||(!(a27==1)&&((a16==7)&&(((!(a6==1)||(a3==1))&&(a1==14))&&(a12==1)))))&&(!(a18==1)&&(!(a7==1)&&(!(a20==1)&&((a17==2)&&((((((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&(input==6))&&(a19==3))&&(a21==12)))))))){ + a18 = 0; + a20 = 1; + a5 = 4; + a9 = 7; + a12 = 1; + a3 = 1; + a19 = 1; + a21 = 10; + a1 = 12; + return -1; + } else if((((a9==10)&&(!(a20==1)&&((a2==1)&&((a23==1)&&((!(a26==1)&&((!(a0==1)&&(!(a7==1)&&(((a5==4)||(a5==5))&&(input==4))))&&!(a24==1)))&&(a1==13))))))&&((a16==7)&&((a21==10)&&((a19==1)&&((a2==1)&&(a17==2))))))){ + a9 = 7; + a5 = 4; + a7 = 0; + a1 = 12; + a20 = 1; + a2 = 1; + return -1; + } else if((((a16==9)&&((((a19==2)&&(!(a18==1)&&(((a20==1)&&(((input==3)&&((a5==5)||(a5==6)))&&(a2==1)))&&(a12==1))))&&(a6==1))&&(a9==9)))&&((((a21==12)&&(((a13==1)&&(a17==2))||!(a11==1)))&&(a12==1))&&(a1==12)))){ + a9 = 7; + a5 = 4; + a2 = 1; + a21 = 10; + a8 = 0; + a26 = 0; + a19 = 1; + a16 = 7; + return -1; + } else if((((((((a2==1)&&!(a26==1))&&!(a27==1))&&(a5==4))&&(a16==8))||!(a6==1))&&((((a2==1)&&(((((((input==6)&&(a19==4))&&(a17==2))&&!(a4==1))&&(a20==1))&&(a9==8))&&(a1==14)))&&(a21==11))&&(a11==1)))){ + a5 = 6; + a24 = 0; + a8 = 0; + a27 = 0; + a19 = 2; + a16 = 10; + return 25; + } else if((((!(a27==1)&&((a1==13)&&((a17==2)&&(((a5==4)||(a5==5))&&(input==4)))))&&!(a14==1))&&(((a16==7)&&((a9==11)&&(((((a19==2)&&(((a6==1)&&(a12==1))&&(a28==1)))&&!(a24==1))&&(a21==10))&&(a13==1))))&&!(a20==1)))){ + a7 = 0; + a20 = 1; + a5 = 4; + a9 = 7; + a19 = 1; + a2 = 1; + a24 = 0; + a1 = 12; + return -1; + } else if(((((a9==10)&&((((a7==1)||((a2==1)&&(!(a6==1)||((a4==1)||(((a23==1)&&(a19==5))&&!(a18==1))))))&&!(a18==1))&&(a1==14)))&&!(a20==1))&&((a21==10)&&((((input==6)&&(a16==7))&&(a5==5))&&(a17==2))))){ + a9 = 7; + a1 = 12; + a5 = 4; + a14 = 0; + a2 = 1; + a20 = 1; + a19 = 1; + a24 = 0; + return -1; + } else if((((((!(a13==1)||(!(a6==1)||((a21==11)&&(((a13==1)&&(a5==4))&&(a17==2)))))&&(a3==1))&&!(a7==1))&&(a20==1))&&((a16==8)&&(((!(a0==1)&&(((input==1)&&(a19==4))&&(a1==14)))&&(a11==1))&&(a9==10))))){ + a27 = 0; + a9 = 7; + a1 = 12; + a19 = 1; + a2 = 1; + a16 = 7; + a21 = 10; + a26 = 0; + return -1; + } else if((((a16==11)&&(((a23==1)&&(((a12==1)&&((((input==3)&&(((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))&&!(a26==1))&&(a21==10)))&&(a11==1)))&&!(a18==1)))&&((a19==1)&&(!(a20==1)&&(!(a13==1)||(((a17==2)&&(a2==1))&&(a1==13))))))){ + a11 = 0; + a20 = 1; + a5 = 6; + a28 = 0; + a16 = 7; + a18 = 1; + a9 = 7; + return 25; + } else if((((!(a18==1)&&((a16==8)&&((a21==10)&&((a9==10)&&((((a5==5)||(a5==6))&&(input==3))&&(a19==1))))))&&(a13==1))&&(((a7==1)||(!(a6==1)||((a20==1)&&((a2==1)&&(((a17==2)&&(a2==1))&&(a1==13))))))||!(a23==1)))){ + a16 = 7; + a9 = 7; + a6 = 1; + a1 = 12; + a5 = 4; + a12 = 1; + a13 = 1; + return -1; + } else if((((a28==1)&&(((a6==1)&&(!(a24==1)&&((a21==11)&&((((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(input==5)))))&&(a17==2)))&&(((a16==9)&&((a11==1)&&(((a11==1)&&((a1==13)&&((a19==1)&&(a6==1))))&&!(a20==1))))||!(a6==1)))){ + a19 = 3; + a16 = 8; + a12 = 0; + a9 = 11; + a21 = 10; + a20 = 1; + a1 = 12; + a5 = 6; + a4 = 1; + return -1; + } else if(((((a1==14)&&(((!(a14==1)&&((a4==1)||((a19==1)&&((a11==1)&&!(a20==1)))))&&(a17==2))&&(a21==10)))&&(a16==11))&&(((!(a27==1)&&(((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))&&(input==3))&&(a11==1)))&&(a28==1))&&!(a18==1)))){ + a4 = 1; + a25 = 1; + a16 = 7; + a0 = 1; + a19 = 2; + a9 = 11; + a20 = 1; + a1 = 12; + a5 = 4; + return 21; + } else if(((!(a0==1)&&(((a21==12)&&((a2==1)&&(((a9==8)&&(input==3))&&(a20==1))))&&!(a18==1)))&&((a26==1)||(!(a4==1)&&(((((a19==4)&&((a16==8)&&((a18==1)||(a28==1))))&&(a1==12))&&(a5==6))&&(a17==2)))))){ + a19 = 1; + a16 = 7; + a7 = 0; + a5 = 4; + a28 = 1; + a24 = 0; + a9 = 7; + a21 = 10; + return -1; + } else if(((((a12==1)&&((a20==1)&&((input==3)&&((((a1==14)&&(a5==4))&&(a9==7))||((((a5==5)&&(a1==13))&&(a9==11))||(((a1==13)&&(a5==6))&&(a9==11)))))))&&!(a18==1))&&(((((a17==2)&&(!(a14==1)&&((((a2==1)&&!(a27==1))&&(a21==12))&&(a16==10))))&&(a19==1))||(a8==1))||!(a2==1)))){ + a1 = 12; + a3 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + a26 = 0; + a7 = 0; + a21 = 10; + return -1; + } else if(((((!(a11==1)||(((a17==2)&&((((a1==14)&&((a2==1)&&(a21==10)))&&(a23==1))&&(a19==5)))||(a4==1)))||(a4==1))&&(a5==6))&&(((a20==1)&&((a13==1)&&((a28==1)&&((a9==11)&&(input==1)))))&&(a16==7)))){ + a9 = 9; + a3 = 1; + a6 = 1; + a1 = 12; + a21 = 12; + a4 = 0; + a5 = 4; + return 21; + } else if(((((!(a23==1)||((((((a16==9)&&(((a19==3)&&(a23==1))&&(a1==14)))||(a27==1))&&(a17==2))&&(a21==12))&&!(a18==1)))&&(a11==1))||(a14==1))&&((!(a20==1)&&((input==4)&&(((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))))&&(a6==1)))){ + a10 = 0; + a1 = 13; + a21 = 10; + a16 = 7; + a5 = 6; + a9 = 11; + a28 = 0; + a22 = 1; + return 25; + } else if(((((((a5==5)&&(((a20==1)&&((a17==2)&&(((input==4)&&(a9==7))&&(a18==1))))&&(a21==10)))&&!(a12==1))&&!(a2==1))&&(a16==8))&&(((!(a3==1)&&(((a6==1)&&(a1==12))&&(a19==2)))&&(a8==1))&&(a27==1)))){ + a20 = 0; + a26 = 1; + a21 = 12; + a29 = 1; + a5 = 4; + a16 = 7; + return -1; + } else if(((((a19==1)&&(((input==6)&&(a21==12))&&!(a14==1)))&&!(a18==1))&&(((a9==10)&&(((a17==2)&&((((a16==11)&&((a5==5)&&(((a8==1)||(a11==1))||(a24==1))))&&(a20==1))&&!(a18==1)))&&(a6==1)))&&(a1==12)))){ + a9 = 7; + a16 = 7; + a7 = 0; + a21 = 10; + a2 = 1; + a14 = 0; + a5 = 4; + return -1; + } else if(((!(a7==1)&&(((((a19==4)&&((a16==7)&&((((input==5)&&((a5==4)||(a5==5)))&&!(a4==1))&&(a9==8))))&&!(a26==1))&&(a21==10))&&!(a8==1)))&&((!(a20==1)&&((a1==12)&&(((a11==1)&&!(a24==1))&&(a17==2))))&&(a28==1)))){ + a9 = 9; + a5 = 5; + a26 = 0; + a18 = 0; + a1 = 13; + a11 = 1; + return 21; + } else if((((((a16==11)&&(((a3==1)&&((a11==1)&&(((input==1)&&((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5))))&&(a20==1))))&&(a17==2)))&&(a19==2))&&(a1==14))&&(((a2==1)&&((((a2==1)||(a7==1))||!(a11==1))&&!(a14==1)))&&(a21==10)))){ + a27 = 0; + a5 = 4; + a19 = 1; + a9 = 7; + a28 = 1; + a16 = 7; + a1 = 12; + a3 = 1; + return -1; + } else if(((!(a6==1)||((a6==1)&&((a17==2)&&((a19==2)&&((((a23==1)&&(a1==14))||!(a6==1))||!(a3==1))))))&&((((a16==10)&&((a9==9)&&((!(a4==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4)))&&(a20==1))))&&(a11==1))&&(a21==11)))){ + a21 = 10; + a16 = 7; + a5 = 4; + a23 = 1; + a19 = 1; + a1 = 12; + a9 = 7; + a3 = 1; + return -1; + } else if((((a19==4)&&((a20==1)&&((((a28==1)&&((a1==13)&&((a23==1)&&((a9==9)&&(((a5==5)||(a5==6))&&(input==3))))))&&(a16==8))&&!(a0==1))))&&((((((a26==1)||(a3==1))&&(a28==1))&&(a17==2))&&(a21==11))||!(a3==1)))){ + a9 = 7; + a13 = 1; + a16 = 7; + a19 = 1; + a21 = 10; + a8 = 0; + a5 = 4; + a1 = 12; + return -1; + } else if((((a5==5)&&(((a4==1)||((((a6==1)&&(a11==1))&&(a16==8))&&(a9==9)))&&(a19==3)))&&((((a1==14)&&((!(a8==1)&&((!(a18==1)&&((a21==11)&&(input==3)))&&(a11==1)))&&(a17==2)))&&(a28==1))&&!(a20==1)))){ + a20 = 1; + a3 = 1; + a5 = 4; + a26 = 0; + a21 = 10; + a16 = 7; + a9 = 7; + a1 = 12; + a19 = 1; + return -1; + } else if((((a12==1)&&(!(a7==1)&&((!(a26==1)&&((a1==13)&&((input==5)&&((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11))))))&&(a16==11))))&&(!(a0==1)&&((a19==1)&&((a17==2)&&(((a6==1)&&(!(a20==1)&&((a28==1)&&!(a14==1))))&&(a21==10))))))){ + a21 = 11; + a5 = 4; + a9 = 8; + a29 = 0; + a25 = 1; + a23 = 0; + a16 = 7; + a19 = 2; + return 21; + } else if((((((a20==1)&&(((a21==11)&&((a14==1)||(((a19==4)&&((a16==9)&&(a6==1)))&&(a17==2))))&&(a12==1)))&&(a1==14))||(a27==1))&&(!(a8==1)&&(((a2==1)&&((input==1)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))))&&(a3==1))))){ + if((a28==1)){ + a2 = 1; + a9 = 8; + a20 = 0; + a16 = 8; + a13 = 1; + a24 = 0; + a1 = 12; + a5 = 5; + }else{ + a19 = 2; + a11 = 1; + a21 = 10; + a9 = 10; + a5 = 4; + a16 = 7; + a2 = 1; + a7 = 0; + a1 = 13; + } + return 26; + } else if(((((((a3==1)&&(a19==4))||!(a2==1))&&(a17==2))&&(a1==14))&&(!(a26==1)&&((((a16==10)&&(!(a26==1)&&((a20==1)&&((a23==1)&&(((input==3)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(a21==10))))))&&(a12==1))&&!(a26==1))))){ + a5 = 4; + a19 = 1; + a4 = 0; + a1 = 12; + a18 = 0; + a16 = 7; + a26 = 0; + a9 = 7; + return -1; + } else if((((a12==1)&&((a20==1)&&(((a3==1)&&(((a23==1)&&(a21==12))||(a4==1)))&&(a19==5))))&&((a1==14)&&(!(a0==1)&&((a5==5)&&(((a9==9)&&((a11==1)&&(((a16==7)&&(input==4))&&!(a4==1))))&&(a17==2))))))){ + a19 = 1; + a21 = 10; + a9 = 7; + a12 = 1; + a1 = 12; + a5 = 4; + a13 = 1; + a0 = 0; + return -1; + } else if(((!(a4==1)&&((a19==2)&&(((((input==5)&&(a5==4))&&(a3==1))&&!(a4==1))&&(a9==10))))&&((!(a13==1)||((a16==7)&&((a1==13)&&((a17==2)&&(((!(a13==1)||(a23==1))&&(a20==1))&&(a21==10))))))||!(a12==1)))){ + a20 = 0; + a5 = 6; + a21 = 12; + a11 = 1; + a19 = 3; + a26 = 0; + a1 = 12; + return 22; + } else if(((((!(a0==1)&&(((a12==1)&&((((a11==1)&&(((a5==4)||(a5==5))&&(input==1)))&&(a13==1))&&(a19==1)))&&!(a14==1)))&&(a17==2))&&(a9==8))&&(((a24==1)||((((a12==1)&&(a21==10))&&(a1==12))&&(a20==1)))&&(a16==10)))){ + a16 = 7; + a3 = 1; + a5 = 6; + a9 = 9; + a12 = 1; + a19 = 3; + a1 = 14; + a7 = 0; + return 23; + } else if((((!(a11==1)||((!(a20==1)&&((a28==1)&&(a16==9)))||(a0==1)))&&!(a18==1))&&((!(a27==1)&&((!(a7==1)&&((a1==13)&&((a17==2)&&(((input==3)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5))))&&(a21==11)))))&&(a19==1)))&&(a13==1)))){ + a9 = 11; + a1 = 12; + a5 = 4; + a15 = 1; + a20 = 1; + a7 = 1; + a23 = 0; + a16 = 7; + a21 = 10; + return -1; + } else if((((a9==11)&&(((((input==4)&&((a5==4)||(a5==5)))&&(a17==2))&&!(a8==1))&&(a23==1)))&&(((((a1==14)&&(((!(a2==1)||((a20==1)&&((a21==11)&&(a3==1))))||(a27==1))&&(a16==8)))&&(a12==1))||!(a23==1))&&(a19==1)))){ + if((a8==1)){ + a0 = 0; + a5 = 4; + a26 = 0; + a21 = 10; + a19 = 2; + a20 = 0; + }else{ + a27 = 0; + a1 = 12; + a20 = 0; + a11 = 1; + a19 = 4; + a5 = 4; + a3 = 1; + a9 = 8; + } + return 26; + } else if((((a12==1)&&((a16==7)&&(((a9==7)&&((input==4)&&(a5==6)))&&!(a4==1))))&&((a1==13)&&(((((!(a20==1)&&((a8==1)||(((a21==10)&&(a28==1))||!(a2==1))))&&(a13==1))&&(a17==2))||!(a12==1))&&(a19==1))))){ + a20 = 1; + a3 = 1; + a5 = 4; + a23 = 1; + a1 = 12; + return -1; + } else if(((((a26==1)||(((a16==8)&&((a19==3)&&(!(a4==1)&&((a20==1)&&((a11==1)&&(a1==13))))))&&(a5==6)))||!(a28==1))&&(((a2==1)&&(((((input==6)&&(a21==12))&&(a9==7))&&!(a0==1))&&!(a14==1)))&&(a17==2)))){ + a12 = 1; + a1 = 14; + a7 = 0; + a19 = 2; + a23 = 1; + a5 = 4; + a16 = 10; + return 21; + } else if(((((a17==2)&&(((a2==1)||(a27==1))||(a0==1)))&&(a20==1))&&(((((((a21==10)&&((((((a5==4)&&(a1==12))&&(a9==7))&&(a19==5))||(((a19==4)&&((a9==11)&&((a1==14)&&(a5==5))))||((a19==4)&&((a9==11)&&((a5==6)&&(a1==14))))))&&(input==1)))&&!(a27==1))&&!(a8==1))&&(a16==9))&&(a12==1))&&!(a24==1)))){ + a16 = 10; + a28 = 1; + a6 = 1; + a21 = 11; + a1 = 13; + a9 = 9; + a4 = 0; + a5 = 5; + a19 = 2; + return 21; + } else if((((a23==1)&&((!(a27==1)&&((a17==2)&&((((((a19==3)&&((input==5)&&(a1==12)))&&(a20==1))&&(a11==1))&&!(a14==1))&&(a9==10))))&&(a23==1)))&&((((a0==1)||((a16==7)&&(a2==1)))&&(a21==12))&&(a5==6)))){ + a4 = 0; + a0 = 0; + a1 = 14; + a19 = 4; + a16 = 9; + a2 = 1; + a21 = 10; + a9 = 9; + return 26; + } else if((((a19==3)&&((a21==11)&&(!(a20==1)&&((a23==1)&&(!(a8==1)&&(((a17==2)&&(a13==1))&&!(a14==1)))))))&&((a1==14)&&((a16==8)&&(((((input==3)&&(((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))))&&!(a26==1))&&(a13==1))&&!(a27==1)))))){ + a20 = 1; + a13 = 1; + a9 = 7; + a16 = 7; + a2 = 1; + a5 = 4; + a21 = 10; + a19 = 1; + a1 = 12; + return -1; + } else if(((!(a4==1)&&(!(a7==1)&&((!(a23==1)||(!(a20==1)&&((((a6==1)||(a0==1))&&(a16==10))&&(a1==14))))&&(a17==2))))&&(((a23==1)&&((((input==3)&&((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a5==4)&&(a9==11))))&&(a21==12))&&!(a27==1)))&&(a19==3)))){ + if((a24==1)){ + a27 = 1; + a15 = 1; + a9 = 7; + a12 = 0; + a5 = 4; + a16 = 9; + a20 = 1; + }else{ + a5 = 6; + a9 = 7; + a23 = 0; + a15 = 0; + a20 = 1; + a12 = 0; + a19 = 1; + a21 = 11; + a16 = 7; + } + return -1; + } else if((((((a18==1)||((a21==10)&&(!(a27==1)&&(((a2==1)||(a26==1))&&(a5==4)))))&&(a6==1))&&(a17==2))&&((a16==10)&&(((a19==4)&&(((a9==8)&&(!(a24==1)&&((input==1)&&(a1==12))))&&(a28==1)))&&!(a20==1))))){ + if((a19==3)){ + a14 = 1; + a15 = 1; + a9 = 7; + a5 = 5; + a13 = 0; + }else{ + a5 = 6; + a16 = 11; + a2 = 0; + a14 = 1; + a9 = 7; + a3 = 0; + } + return -1; + } else if((((a13==1)&&(((((((a1==14)&&(a5==6))&&(a9==11))&&(a19==1))||(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==2)))&&(input==3))&&(a20==1)))&&((a27==1)||(!(a12==1)||(!(a14==1)&&(((((a28==1)&&((a13==1)&&(a17==2)))&&(a16==11))&&(a21==12))||!(a2==1))))))){ + a5 = 4; + a2 = 1; + a16 = 7; + a19 = 1; + a21 = 10; + a13 = 1; + a1 = 12; + a9 = 7; + return -1; + } else if(((((!(a20==1)&&((a19==4)&&((a21==10)&&((a28==1)&&((a7==1)||((!(a28==1)||((a16==7)&&(a3==1)))&&(a3==1)))))))&&(a17==2))&&(a1==14))&&((a5==4)&&((a28==1)&&((a28==1)&&((input==4)&&(a9==10))))))){ + a9 = 7; + a18 = 0; + a20 = 1; + a19 = 1; + a26 = 0; + a11 = 1; + a1 = 12; + return -1; + } else if(((((!(a20==1)&&((((((a3==1)&&((((a9==10)&&(input==1))&&(a17==2))&&(a1==12)))&&(a28==1))&&!(a14==1))&&(a21==12))&&(a6==1)))&&(a16==7))&&(a19==2))&&(((a6==1)&&(!(a14==1)&&(a11==1)))&&(a5==4)))){ + a2 = 1; + a21 = 10; + a9 = 9; + a20 = 1; + a1 = 14; + a8 = 0; + a5 = 5; + a16 = 11; + a14 = 0; + a19 = 5; + return 21; + } else if((((a16==7)&&(!(a28==1)||(((a19==3)&&((((a11==1)&&(a2==1))&&(a1==14))&&!(a24==1)))&&(a17==2))))&&((((a11==1)&&((((input==1)&&((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4))))&&(a11==1))&&(a6==1)))&&(a21==10))&&(a20==1)))){ + a3 = 1; + a5 = 5; + a21 = 11; + a1 = 13; + a9 = 9; + a6 = 1; + a24 = 0; + a19 = 2; + return 26; + } else if(((((a17==2)&&((a16==8)&&((((a21==11)&&((a6==1)&&(a19==2)))&&(a28==1))||!(a12==1))))&&(a20==1))&&(((!(a24==1)&&((a2==1)&&((((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4)))&&(input==4))&&(a23==1))))&&(a13==1))&&(a1==12)))){ + a0 = 0; + a9 = 7; + a24 = 0; + a19 = 1; + a5 = 4; + a21 = 10; + a18 = 0; + a16 = 7; + return -1; + } else if((((a21==10)&&(((a13==1)&&(!(a26==1)&&(((input==1)&&(((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))&&!(a26==1))))&&(a12==1)))&&((a20==1)&&(!(a27==1)&&((a17==2)&&((a19==5)&&((a2==1)&&(((a1==13)&&(a28==1))&&(a16==11))))))))){ + a18 = 0; + a19 = 1; + a1 = 12; + a16 = 7; + a5 = 4; + a9 = 7; + a27 = 0; + return -1; + } else if(((((a21==10)&&(((((a28==1)&&(((input==6)&&((a5==4)||(a5==5)))&&!(a8==1)))&&(a19==4))&&(a2==1))&&(a20==1)))&&!(a18==1))&&(((((a2==1)&&(((a6==1)&&(a16==9))&&(a9==7)))&&(a23==1))&&(a1==12))&&(a17==2)))){ + a16 = 7; + a14 = 0; + a2 = 1; + a5 = 4; + a11 = 1; + a19 = 1; + return -1; + } else if((((a28==1)&&((!(a8==1)&&(!(a20==1)&&((((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(input==5))))&&(a21==10)))&&(!(a23==1)||(((a17==2)&&((a1==14)&&(((a19==3)&&(((a16==9)&&(a6==1))||(a7==1)))&&(a3==1))))&&!(a0==1))))){ + a19 = 2; + a1 = 12; + a13 = 0; + a20 = 1; + a16 = 7; + a7 = 1; + a5 = 4; + a9 = 8; + a28 = 0; + return -1; + } else if((((a1==13)&&(((a28==1)&&((a5==6)&&((((a28==1)&&(a28==1))||!(a12==1))&&(a21==11))))||(a14==1)))&&((((((a19==5)&&(!(a26==1)&&((input==5)&&(a16==11))))&&(a9==9))&&!(a7==1))&&(a20==1))&&(a17==2)))){ + a19 = 1; + a14 = 0; + a26 = 0; + a5 = 4; + a1 = 12; + a9 = 7; + a16 = 7; + a21 = 10; + return -1; + } else if(((((a19==3)&&(((a9==10)&&(((a5==4)&&((a3==1)&&((a11==1)&&(a2==1))))&&(a1==12)))&&(a12==1)))&&(a21==12))&&((a12==1)&&(((a6==1)&&(!(a24==1)&&((a17==2)&&((input==1)&&(a16==10)))))&&(a20==1))))){ + if((a18==1)){ + a18 = 0; + a16 = 8; + a19 = 5; + a28 = 1; + a9 = 11; + a21 = 10; + a5 = 5; + a7 = 0; + a20 = 0; + }else{ + a21 = 10; + a5 = 6; + a16 = 7; + a1 = 14; + a0 = 0; + a3 = 1; + a2 = 1; + a19 = 2; + } + return 21; + } else if(((((a11==1)&&((((a9==11)&&(input==4))&&(a17==2))&&(a3==1)))&&(a16==8))&&(!(a23==1)||(((a5==4)&&((!(a20==1)&&(!(a28==1)||((((a19==5)&&(a13==1))&&(a1==14))&&(a21==11))))||(a4==1)))&&!(a0==1))))){ + if((a0==1)){ + a1 = 12; + a21 = 12; + a19 = 3; + a16 = 10; + a29 = 1; + a28 = 0; + a15 = 0; + }else{ + a19 = 2; + a6 = 0; + a20 = 1; + a1 = 12; + a24 = 1; + a21 = 12; + a9 = 10; + } + return 23; + } else if((((!(a4==1)&&((((a6==1)&&(a17==2))&&(a16==10))&&!(a7==1)))||!(a23==1))&&((!(a18==1)&&((!(a20==1)&&((a21==11)&&(((((a9==7)&&((a5==4)&&(a1==12)))&&(a19==3))||(((a19==2)&&(((a1==14)&&(a5==5))&&(a9==11)))||(((a9==11)&&((a5==6)&&(a1==14)))&&(a19==2))))&&(input==4))))&&!(a4==1)))&&(a6==1)))){ + a5 = 4; + a8 = 1; + a20 = 1; + a24 = 1; + a1 = 12; + a21 = 10; + a9 = 10; + a4 = 1; + a16 = 7; + a19 = 1; + return 26; + } else if(((((a14==1)||((((((a20==1)&&((a13==1)&&(a17==2)))&&(a11==1))&&(a1==13))&&(a19==1))||!(a12==1)))&&(a21==11))&&((((a28==1)&&((!(a4==1)&&((input==4)&&((a5==5)||(a5==6))))&&(a23==1)))&&(a9==11))&&(a16==9)))){ + a16 = 7; + a0 = 0; + a5 = 4; + a21 = 10; + a28 = 1; + a1 = 12; + a26 = 0; + a9 = 7; + return -1; + } else if((((!(a3==1)||((a18==1)||((!(a2==1)||(((a19==2)&&(((a20==1)&&(a12==1))&&(a11==1)))||!(a2==1)))&&(a1==14))))||!(a28==1))&&((a21==10)&&((a17==2)&&((a16==9)&&((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==1))))))){ + a1 = 12; + a0 = 0; + a2 = 1; + a9 = 7; + a19 = 1; + a7 = 0; + a5 = 4; + a16 = 7; + return -1; + } else if((((a20==1)&&((a17==2)&&((((a1==13)&&(((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4)))&&(input==5)))&&!(a4==1))&&!(a4==1))))&&((!(a28==1)||((a2==1)&&((((a0==1)||((a21==12)&&(a28==1)))&&(a23==1))&&(a16==11))))&&(a19==1)))){ + a21 = 10; + a3 = 1; + a9 = 7; + a23 = 1; + a5 = 4; + a8 = 0; + a1 = 12; + a16 = 7; + return -1; + } else if(((((a21==10)&&(!(a23==1)||((((((a1==13)&&(a6==1))&&(a11==1))&&(a6==1))&&(a9==9))&&(a17==2))))&&!(a20==1))&&((a16==9)&&((((!(a7==1)&&(((a5==5)||(a5==6))&&(input==3)))&&(a2==1))&&(a13==1))&&(a19==5))))){ + a22 = 0; + a24 = 1; + a5 = 6; + a19 = 4; + a9 = 10; + a21 = 12; + a20 = 1; + a14 = 1; + return 21; + } else if(((((a17==2)&&(((a19==2)&&((a27==1)||(((a13==1)&&(a21==11))||!(a23==1))))||(a7==1)))||!(a28==1))&&(!(a4==1)&&((((a16==7)&&(((((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6))))&&(input==6))&&(a1==12)))&&(a20==1))&&!(a0==1))))){ + a1 = 14; + a21 = 10; + a9 = 10; + a12 = 1; + a16 = 8; + a7 = 0; + a5 = 6; + a14 = 0; + return 22; + } else if((((!(a4==1)&&((!(a18==1)&&((a16==9)&&(((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a24==1))))&&(a3==1)))&&!(a20==1))&&((a9==9)&&(((!(a28==1)||((a17==2)&&(!(a24==1)&&((a3==1)&&(a21==11)))))&&(a1==14))&&(a19==1))))){ + a20 = 1; + a6 = 0; + a29 = 1; + a9 = 8; + a21 = 10; + a5 = 6; + a10 = 1; + a16 = 7; + return -1; + } else if((((((((a11==1)&&(a21==12))||(a26==1))&&!(a8==1))&&(a17==2))&&(a19==5))&&((((a16==9)&&(((a6==1)&&(((a23==1)&&(((a1==13)&&(input==5))&&(a9==8)))&&!(a18==1)))&&(a11==1)))&&(a20==1))&&(a5==4)))){ + a2 = 1; + a20 = 0; + a16 = 8; + a19 = 4; + a1 = 14; + a21 = 10; + a14 = 0; + a9 = 10; + a24 = 0; + return 21; + } else if((((a19==2)&&(((a21==11)&&((a24==1)||(((a1==13)&&((a17==2)&&((a2==1)||!(a23==1))))||(a24==1))))&&(a16==7)))&&(((!(a26==1)&&((((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))&&(input==1))&&!(a4==1)))&&!(a0==1))&&(a20==1)))){ + a9 = 9; + a2 = 1; + a21 = 10; + a19 = 3; + a0 = 0; + a5 = 5; + a16 = 8; + return 21; + } else if(((!(a7==1)&&(((a7==1)||((a17==2)&&(!(a14==1)&&((a5==4)&&(a23==1)))))&&!(a18==1)))&&(!(a4==1)&&((a20==1)&&(((a1==13)&&((a19==5)&&((a21==12)&&(((a9==8)&&(input==6))&&(a3==1)))))&&(a16==11)))))){ + a7 = 0; + a9 = 7; + a1 = 12; + a19 = 1; + a21 = 10; + a16 = 7; + a2 = 1; + return -1; + } else if(((!(a20==1)&&((((!(a27==1)&&((!(a14==1)&&((!(a8==1)&&((a21==11)&&(a11==1)))&&(a1==12)))||!(a13==1)))&&(a9==10))&&(a16==7))&&(a17==2)))&&((!(a27==1)&&(((input==5)&&((a5==5)||(a5==6)))&&(a23==1)))&&(a19==5)))){ + a16 = 9; + a26 = 0; + a19 = 1; + a20 = 1; + a9 = 9; + a6 = 1; + a5 = 5; + a13 = 1; + return -1; + } else if((((!(a11==1)||((a19==1)&&((a18==1)||(((((a26==1)||(!(a20==1)&&(a13==1)))&&!(a0==1))||(a18==1))&&(a21==11)))))&&(a17==2))&&(((a16==8)&&(((((a5==5)||(a5==6))&&(input==3))&&!(a8==1))&&(a9==10)))&&(a1==12)))){ + a20 = 1; + a6 = 1; + a5 = 4; + a16 = 7; + a26 = 0; + a21 = 10; + a28 = 1; + a9 = 7; + return -1; + } else if(((((((((a12==1)&&(a11==1))||!(a13==1))&&(a11==1))&&!(a4==1))&&(a16==11))&&(a21==10))&&(((a1==14)&&(((((a5==6)&&(((a20==1)&&(input==3))&&(a2==1)))&&(a19==4))&&(a17==2))&&(a23==1)))&&(a9==8)))){ + a0 = 0; + a16 = 7; + a2 = 1; + a18 = 0; + a19 = 1; + a5 = 4; + a1 = 12; + a9 = 7; + return -1; + } else if((((!(a20==1)&&((a6==1)&&(((((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))&&(input==4))&&(a13==1))&&(a3==1))))&&(a19==2))&&((((a26==1)||(((a17==2)&&(((a1==13)&&(a2==1))&&!(a24==1)))&&(a12==1)))&&(a16==10))&&(a21==11)))){ + a26 = 1; + a9 = 7; + a28 = 0; + a16 = 8; + a19 = 4; + a10 = 0; + a20 = 1; + a5 = 6; + a1 = 14; + return -1; + } else if(((!(a0==1)&&(((a3==1)&&(((a16==8)&&(((((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8)))&&(input==6))&&(a17==2))&&(a12==1)))&&!(a20==1)))&&(a13==1)))&&((a27==1)||((a8==1)||((a21==12)&&((a1==12)&&((a19==4)&&(a23==1)))))))){ + a19 = 1; + a1 = 13; + a21 = 10; + a8 = 1; + a10 = 1; + a5 = 6; + a9 = 8; + a12 = 0; + a16 = 10; + return -1; + } else if((((a21==10)&&((((((a5==4)||(a5==5))&&(input==4))&&(a16==8))&&(a19==5))&&(a17==2)))&&(((a20==1)&&(!(a13==1)&&((((!(a11==1)&&(!(a23==1)&&((a12==1)&&(a27==1))))&&!(a13==1))&&(a1==13))&&(a24==1))))&&(a9==9)))){ + a10 = 0; + a1 = 14; + a5 = 6; + a29 = 0; + a19 = 2; + a3 = 0; + a9 = 7; + a21 = 11; + return -1; + } else if(((((a17==2)&&((a13==1)&&((a28==1)&&(((a3==1)||!(a11==1))&&!(a0==1)))))&&!(a20==1))&&((a21==12)&&((a16==10)&&((((a19==5)&&(!(a24==1)&&((a9==9)&&((a1==13)&&(input==5)))))&&!(a0==1))&&(a5==6)))))){ + a21 = 10; + a6 = 0; + a19 = 1; + a16 = 7; + a25 = 0; + a20 = 1; + a28 = 0; + return 21; + } else if(((((((a17==2)&&((!(a26==1)&&((a20==1)&&((a1==13)&&(((input==4)&&(a5==5))&&!(a0==1)))))&&(a21==12)))&&(a19==4))&&!(a4==1))&&!(a18==1))&&((a24==1)||(((a9==11)&&((a16==9)&&(a3==1)))&&(a6==1))))){ + a28 = 1; + a5 = 4; + a1 = 14; + a26 = 0; + a19 = 5; + a9 = 7; + a23 = 1; + a21 = 10; + a16 = 8; + return -1; + } else if((((a6==1)&&(((a16==9)&&(((((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11)))&&(input==6))&&(a17==2))&&(a21==11)))&&!(a20==1)))&&((a1==14)&&(((((a23==1)&&(((a24==1)||(a28==1))||(a18==1)))&&(a13==1))&&!(a4==1))&&(a19==4))))){ + if((a5==4)){ + a2 = 0; + a20 = 1; + a1 = 12; + a9 = 7; + a15 = 1; + a19 = 1; + a16 = 7; + a29 = 0; + a5 = 6; + a21 = 10; + }else{ + a9 = 7; + a2 = 0; + a20 = 1; + a19 = 1; + a13 = 0; + a21 = 10; + a5 = 5; + a14 = 1; + a16 = 7; + } + return -1; + } else if(((((a16==11)&&(((!(a4==1)&&((((a2==1)&&(((a5==4)||(a5==5))&&(input==6)))&&(a20==1))&&(a17==2)))&&(a1==14))&&(a21==10)))&&!(a24==1))&&(((a19==4)&&(!(a13==1)||(((a13==1)&&(a3==1))&&(a9==8))))||!(a12==1)))){ + a1 = 13; + a5 = 5; + a21 = 11; + a28 = 1; + a27 = 0; + a7 = 0; + return 25; + } else if((((((a23==1)&&((input==4)&&((a5==5)||(a5==6))))&&(a1==12))&&(a17==2))&&((!(a13==1)||((a11==1)&&((a20==1)&&((a9==9)&&(!(a2==1)||((a19==4)&&(((a16==9)&&((a23==1)&&(a21==12)))||!(a3==1))))))))&&!(a0==1)))){ + a3 = 1; + a16 = 7; + a13 = 1; + a23 = 1; + a21 = 10; + a19 = 1; + a9 = 7; + a5 = 4; + return -1; + } else if(((((a28==1)&&(!(a24==1)&&(((input==6)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(a20==1))))&&(a1==13))&&((a24==1)||((!(a14==1)&&(((a13==1)&&((((a19==3)&&(a6==1))&&(a21==12))&&(a16==7)))&&(a17==2)))&&!(a0==1))))){ + a21 = 10; + a5 = 4; + a9 = 7; + a1 = 12; + a18 = 0; + a3 = 1; + a12 = 1; + a19 = 1; + return -1; + } else if((((a1==12)&&((a5==6)&&((((!(a11==1)&&((a17==2)&&((a3==1)&&!(a2==1))))&&(a21==11))&&(a9==10))&&(a16==9))))&&((a27==1)&&(!(a13==1)&&((((a24==1)&&((a19==4)&&(input==3)))&&(a20==1))&&!(a28==1)))))){ + a16 = 7; + a29 = 1; + a21 = 10; + a3 = 0; + a5 = 5; + a19 = 1; + a13 = 0; + a9 = 7; + return -1; + } else if((((a3==1)&&((a21==12)&&(((a28==1)&&((a20==1)&&(input==6)))&&(a5==5))))&&(((a4==1)||((a19==2)&&((a11==1)&&(((((a7==1)||((a9==7)&&(a6==1)))&&(a16==10))&&(a1==13))&&!(a27==1)))))&&(a17==2)))){ + if((a14==1)){ + a1 = 12; + a9 = 11; + a19 = 5; + a16 = 8; + a21 = 10; + a20 = 0; + a2 = 1; + a5 = 4; + a13 = 1; + a24 = 0; + }else{ + a5 = 6; + a24 = 0; + a1 = 14; + a16 = 7; + a21 = 10; + a9 = 10; + a3 = 1; + a7 = 0; + } + return 21; + } else if(((((((a19==1)&&(!(a14==1)&&(!(a27==1)&&(a2==1))))||!(a12==1))&&(a13==1))&&(a21==12))&&((a17==2)&&((((a1==14)&&(((a2==1)&&((((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6))))&&(input==6)))&&(a3==1)))&&(a16==7))&&(a20==1))))){ + a9 = 7; + a21 = 10; + a23 = 1; + a2 = 1; + a11 = 1; + a5 = 4; + a1 = 12; + return -1; + } else if(((!(a7==1)&&((a17==2)&&((a1==12)&&((input==6)&&(a5==4)))))&&((!(a12==1)||(((a28==1)&&(((a21==12)&&((((a16==7)&&((a13==1)&&!(a20==1)))||!(a23==1))&&(a19==4)))&&(a9==11)))||!(a11==1)))||(a24==1)))){ + a14 = 0; + a16 = 8; + a26 = 0; + a19 = 2; + a8 = 0; + a1 = 13; + a9 = 10; + a21 = 11; + return 22; + } else if((((a5==4)&&(!(a6==1)||((a19==3)&&((!(a3==1)||(((a21==10)&&(a12==1))&&!(a14==1)))&&(a16==9)))))&&(!(a20==1)&&(((a9==7)&&(((((input==4)&&(a17==2))&&(a23==1))&&(a1==14))&&!(a27==1)))&&!(a24==1))))){ + a5 = 6; + a7 = 1; + a20 = 1; + a19 = 1; + a21 = 12; + a18 = 1; + a16 = 7; + a3 = 0; + a9 = 10; + a1 = 12; + return 23; + } else if((((a21==10)&&((((a18==1)||(!(a13==1)||(a2==1)))||(a7==1))&&(a9==9)))&&(((((a19==2)&&(((((((a5==5)||(a5==6))&&(input==5))&&(a20==1))&&(a17==2))&&(a1==13))&&(a23==1)))&&(a2==1))&&(a16==10))&&!(a24==1)))){ + if((a9==10)){ + a6 = 1; + a1 = 12; + a21 = 12; + a19 = 5; + a16 = 7; + a18 = 0; + a12 = 1; + a20 = 0; + a5 = 6; + }else{ + a2 = 1; + a5 = 4; + a13 = 1; + a19 = 5; + a24 = 0; + a16 = 8; + a9 = 7; + } + return 22; + } else if((((a17==2)&&((((a24==1)&&((a2==1)&&(a26==1)))&&(a21==10))&&(a9==8)))&&(((((a18==1)&&(!(a3==1)&&(((((a19==3)&&(input==5))&&(a5==4))&&(a14==1))&&(a7==1))))&&(a20==1))&&(a1==12))&&(a16==10)))){ + a29 = 0; + a9 = 10; + a1 = 14; + a11 = 0; + a19 = 1; + a25 = 1; + a16 = 7; + a5 = 5; + return -1; + } else if(((!(a14==1)&&((((((!(a0==1)&&((input==1)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))))&&!(a20==1))&&(a19==2))&&(a17==2))&&(a16==8))&&(a6==1)))&&(!(a18==1)&&(!(a7==1)&&((a21==11)&&(((a13==1)&&(a1==13))||(a27==1))))))){ + a6 = 1; + a9 = 9; + a5 = 4; + a16 = 7; + a11 = 1; + a19 = 5; + a4 = 0; + a20 = 1; + return 26; + } else if((((((((((!(a26==1)&&(a12==1))&&(a28==1))&&(a1==13))&&(a21==11))&&!(a4==1))&&(a16==7))&&(a9==7))&&(a20==1))&&(((!(a4==1)&&(!(a27==1)&&(!(a18==1)&&((a17==2)&&(input==1)))))&&(a19==4))&&(a5==5)))){ + a23 = 1; + a19 = 3; + a9 = 10; + a0 = 0; + a28 = 1; + a1 = 14; + a16 = 8; + return 21; + } else if(((((a1==13)&&(((a19==4)&&(a13==1))||!(a28==1)))&&(a16==8))&&(!(a26==1)&&(!(a14==1)&&(((a17==2)&&((((a2==1)&&(((input==3)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&!(a18==1)))&&!(a20==1))&&(a21==11)))&&(a13==1)))))){ + a21 = 10; + a5 = 4; + a1 = 12; + a20 = 1; + a11 = 1; + a27 = 0; + a9 = 7; + a19 = 1; + a16 = 7; + a7 = 0; + return -1; + } else if(((((((!(a26==1)&&((a13==1)||(a8==1)))&&!(a20==1))&&(a3==1))&&(a16==10))&&(a17==2))&&((a5==4)&&((!(a8==1)&&(((a19==2)&&(((a21==11)&&((a1==13)&&(input==6)))&&(a6==1)))&&!(a0==1)))&&(a9==7))))){ + a0 = 1; + a1 = 12; + a21 = 12; + a19 = 1; + a27 = 1; + a2 = 0; + a9 = 10; + return -1; + } else if((((((((!(a7==1)&&(((!(a8==1)&&(((input==3)&&(((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))))&&!(a20==1)))&&(a16==7))&&(a17==2)))&&(a11==1))&&(a2==1))&&(a19==3))&&(a21==12))&&(a3==1))&&((a1==14)&&((a28==1)||!(a2==1))))){ + a2 = 1; + a19 = 1; + a21 = 10; + a5 = 4; + a7 = 0; + a12 = 1; + a1 = 12; + a9 = 7; + a20 = 1; + return -1; + } else if((((((!(a27==1)&&((a9==11)&&((a13==1)&&(a17==2))))||(a7==1))&&(a23==1))||(a24==1))&&(!(a24==1)&&((a2==1)&&((a5==4)&&(((a1==13)&&((a16==10)&&(((input==6)&&(a21==10))&&(a20==1))))&&(a19==5))))))){ + a19 = 1; + a16 = 7; + a6 = 1; + a1 = 12; + a9 = 7; + a11 = 1; + a2 = 1; + return -1; + } else if((((a5==5)&&((a20==1)&&(((a17==2)&&((a23==1)&&(((a1==13)&&(a23==1))||(a27==1))))&&!(a27==1))))&&((((a16==7)&&(!(a14==1)&&((((input==6)&&(a21==12))&&!(a24==1))&&(a19==4))))&&!(a27==1))&&(a9==9)))){ + a11 = 1; + a19 = 2; + a21 = 11; + a16 = 9; + a5 = 6; + a6 = 1; + a18 = 0; + return 21; + } else if(((((a1==13)&&((a21==10)&&(((((a16==10)&&(input==1))&&(a2==1))&&!(a24==1))&&(a5==6))))&&(a17==2))&&(((!(a6==1)||((a27==1)||((a3==1)&&(!(a2==1)||((a19==1)&&(a2==1))))))&&(a9==10))&&(a20==1)))){ + a1 = 12; + a5 = 4; + a16 = 7; + a11 = 1; + a9 = 7; + a7 = 0; + return -1; + } else if((((a28==1)&&((a19==1)&&((a3==1)&&((a1==13)&&((input==1)&&(a20==1))))))&&(!(a11==1)||((a2==1)&&((a3==1)&&((((a17==2)&&((a5==4)&&(((a3==1)&&(a9==11))&&(a21==12))))&&(a16==11))&&(a6==1))))))){ + a6 = 1; + a0 = 0; + a14 = 0; + a21 = 10; + a16 = 7; + a1 = 12; + a9 = 7; + return -1; + } else if(((!(a3==1)&&(((!(a3==1)&&((a17==2)&&((a21==10)&&(((a9==10)&&((a2==1)&&!(a28==1)))&&(a26==1)))))&&(a19==2))&&!(a2==1)))&&(((((a20==1)&&((input==4)&&((a5==4)||(a5==5))))&&(a0==1))&&(a1==13))&&(a16==10)))){ + a9 = 9; + a3 = 0; + a21 = 12; + a16 = 9; + a12 = 0; + a5 = 4; + a13 = 0; + a19 = 3; + return -1; + } else if(((((a16==11)&&((((a3==1)&&(!(a3==1)||(((a23==1)&&!(a7==1))&&!(a20==1))))&&(a1==13))&&!(a7==1)))&&(a19==1))&&(((a3==1)&&((((a2==1)&&((input==5)&&((a5==6)||((a5==4)||(a5==5)))))&&(a17==2))&&(a9==9)))&&(a21==10)))){ + a16 = 7; + a8 = 1; + a12 = 0; + a20 = 1; + a5 = 5; + a9 = 8; + a25 = 0; + return -1; + } else if(((!(a3==1)||((((a20==1)&&((a19==4)&&(!(a11==1)||(a12==1))))||!(a28==1))||!(a12==1)))&&((a16==8)&&(((a17==2)&&(((a23==1)&&(((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==5))&&(a11==1)))&&(a1==14)))&&(a21==12))))){ + a21 = 11; + a9 = 10; + a5 = 4; + a19 = 1; + a6 = 1; + a13 = 1; + a7 = 0; + return -1; + } else if((((a21==10)&&(((a2==1)&&(((a6==1)||!(a6==1))&&(a2==1)))&&!(a0==1)))&&((((((a20==1)&&((((input==5)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(a16==7))&&(a19==3)))&&!(a8==1))&&(a13==1))&&(a1==13))&&(a17==2)))){ + if((a13==1)){ + a4 = 0; + a16 = 8; + a9 = 9; + a27 = 0; + a5 = 6; + a3 = 1; + a20 = 0; + }else{ + a21 = 11; + a24 = 0; + a19 = 2; + a12 = 1; + a20 = 0; + a3 = 1; + a9 = 10; + a16 = 8; + a5 = 5; + } + return 23; + } else if((((a4==1)||((((a2==1)&&(a9==11))&&(a23==1))&&(a21==11)))&&((a5==5)&&((a16==7)&&(((a19==5)&&((((((a13==1)&&((a20==1)&&(input==6)))&&(a1==13))&&(a12==1))&&(a11==1))&&(a17==2)))&&(a11==1)))))){ + a1 = 12; + a27 = 0; + a9 = 7; + a18 = 0; + a21 = 10; + a5 = 4; + a19 = 1; + a8 = 0; + return -1; + } else if((((a23==1)&&((a13==1)&&((a19==3)&&(((a9==10)&&((a28==1)&&(((a5==5)||(a5==6))&&(input==6))))&&(a20==1)))))&&(((a1==12)&&((a11==1)&&((a17==2)&&((a16==9)&&(((a3==1)&&(a21==12))&&(a28==1))))))&&(a6==1)))){ + a12 = 1; + a21 = 10; + a19 = 2; + a5 = 5; + a1 = 13; + a16 = 7; + a14 = 0; + return 21; + } else if(((!(a20==1)&&(!(a18==1)&&((!(a6==1)||(a3==1))&&(a19==3))))&&((a16==9)&&((a17==2)&&(((a21==12)&&(((!(a27==1)&&((a1==13)&&((input==6)&&((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9))))))&&!(a7==1))&&!(a14==1)))&&!(a7==1)))))){ + if((a28==1)){ + a29 = 0; + a1 = 14; + a9 = 7; + a20 = 1; + a21 = 10; + a25 = 0; + a19 = 1; + a15 = 0; + a5 = 5; + a16 = 7; + }else{ + a5 = 4; + a25 = 1; + a19 = 2; + a8 = 1; + a20 = 1; + a9 = 8; + a15 = 0; + a21 = 11; + a16 = 8; + } + return -1; + } else if((((((a27==1)||(!(a12==1)||(((a12==1)&&((a23==1)&&((a21==11)&&(a6==1))))||(a7==1))))&&!(a20==1))&&(a19==5))&&((!(a18==1)&&(((a16==9)&&(((a1==14)&&(input==6))&&(a5==5)))&&(a9==9)))&&(a17==2)))){ + a16 = 10; + a5 = 4; + a11 = 0; + a1 = 13; + a8 = 1; + a21 = 12; + a27 = 1; + a9 = 8; + a20 = 1; + return -1; + } else if((((((a1==13)&&((!(a4==1)&&((a6==1)&&((a21==12)&&((a16==11)&&((((a17==2)&&(input==6))&&(a9==7))&&!(a0==1))))))&&(a20==1)))&&(a5==6))&&!(a8==1))&&(((a19==4)&&((a27==1)||(a12==1)))&&!(a14==1)))){ + a16 = 9; + a5 = 5; + a1 = 12; + a27 = 0; + a19 = 3; + a9 = 9; + a3 = 1; + a0 = 0; + return 21; + } else if((((a21==12)&&((((a26==1)||((a12==1)&&(a19==2)))&&(a1==14))&&(a23==1)))&&((!(a20==1)&&((((((a12==1)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==4)))&&(a13==1))&&(a13==1))&&(a13==1))&&(a17==2)))&&(a16==9)))){ + a7 = 1; + a21 = 11; + a9 = 8; + a2 = 0; + a0 = 1; + a5 = 5; + a1 = 13; + a20 = 1; + return -1; + } else if((((!(a20==1)&&((a23==1)&&((a1==13)&&((!(a4==1)&&((a21==11)&&(!(a24==1)&&((a17==2)&&((input==6)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))))))&&(a28==1)))))&&!(a18==1))&&((((a3==1)||!(a28==1))&&(a16==8))&&(a19==2)))){ + a11 = 1; + a27 = 0; + a5 = 5; + a20 = 1; + a4 = 0; + a19 = 5; + a9 = 9; + a16 = 7; + return 23; + } else if((((((a12==1)&&((!(a27==1)&&(((a5==5)||(a5==6))&&(input==3)))&&!(a27==1)))&&(a21==10))&&(a19==4))&&((a9==11)&&(!(a20==1)&&((((((a14==1)||((a2==1)&&!(a0==1)))&&!(a0==1))&&(a1==12))&&(a16==8))&&(a17==2)))))){ + a16 = 7; + a9 = 7; + a5 = 4; + a19 = 1; + a7 = 0; + a20 = 1; + a23 = 1; + a27 = 0; + return -1; + } else if((((((((a23==1)&&(!(a4==1)&&(((a5==4)||(a5==5))&&(input==1))))&&(a20==1))&&!(a14==1))&&!(a26==1))&&(a19==1))&&((a16==11)&&((((a17==2)&&(((a28==1)&&((a1==14)&&(a13==1)))&&(a21==11)))&&(a3==1))&&(a9==8))))){ + a16 = 7; + a7 = 0; + a2 = 1; + a9 = 7; + a5 = 4; + a1 = 12; + a21 = 10; + a13 = 1; + return -1; + } else if((((((!(a14==1)&&(((!(a7==1)&&(((((a5==4)||(a5==5))&&(input==6))&&(a17==2))&&(a11==1)))&&(a1==13))&&(a19==3)))&&(a9==8))&&(a21==11))&&(a20==1))&&((a16==11)&&(!(a4==1)&&((!(a11==1)||(a2==1))&&!(a26==1)))))){ + a9 = 11; + a23 = 1; + a5 = 5; + a19 = 2; + a1 = 12; + a14 = 0; + return 21; + } else if((((a21==11)&&((a5==6)&&(((a13==1)&&((((input==3)&&!(a20==1))&&(a28==1))&&(a1==14)))&&!(a7==1))))&&((a9==8)&&(((a8==1)||(!(a23==1)||((((a3==1)&&(a16==9))&&(a17==2))&&(a19==1))))&&(a2==1))))){ + a3 = 0; + a1 = 13; + a16 = 7; + a21 = 10; + a5 = 5; + a23 = 0; + a9 = 10; + a20 = 1; + a15 = 1; + return -1; + } else if((((a6==1)&&((a1==12)&&((a16==8)&&((a11==1)&&((a6==1)&&((((input==3)&&((a5==4)||(a5==5)))&&(a19==2))&&(a21==10)))))))&&((a9==9)&&((a7==1)||(!(a27==1)&&((((a13==1)||!(a12==1))&&!(a20==1))&&(a17==2))))))){ + a5 = 4; + a8 = 0; + a27 = 0; + a12 = 1; + a16 = 7; + a9 = 7; + a20 = 1; + a19 = 1; + return -1; + } else if((((a21==12)&&(((a16==8)&&(((a3==1)&&(((a1==14)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5)))&&!(a27==1)))&&(a9==11)))&&!(a7==1)))&&(((a19==2)&&(((((a6==1)&&(a11==1))&&!(a7==1))||!(a12==1))&&(a17==2)))&&!(a20==1)))){ + a2 = 0; + a22 = 0; + a5 = 5; + a16 = 11; + a21 = 10; + return -1; + } else if(((!(a3==1)||((a9==10)&&(((a16==9)&&((a12==1)&&(a17==2)))||!(a2==1))))&&(!(a14==1)&&(((a1==12)&&(((!(a20==1)&&((((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a4==1))&&!(a18==1)))&&(a19==3))&&(a3==1)))&&(a21==11))))){ + if((a27==1)){ + a21 = 10; + a20 = 1; + a9 = 9; + a14 = 1; + a5 = 5; + a19 = 1; + a25 = 0; + a16 = 7; + a18 = 1; + }else{ + a1 = 14; + a20 = 1; + a21 = 10; + a3 = 0; + a5 = 5; + a16 = 7; + a18 = 1; + a19 = 1; + a29 = 1; + } + return -1; + } else if((((a5==6)&&((((a9==10)&&(((a11==1)&&(((a17==2)&&(input==6))&&!(a8==1)))&&(a21==10)))&&(a28==1))&&(a1==14)))&&(((a19==2)&&((a4==1)||((!(a20==1)&&(!(a27==1)&&(a28==1)))&&(a23==1))))&&(a16==10)))){ + if((a2==1)){ + a29 = 1; + a21 = 12; + a16 = 7; + a14 = 1; + a20 = 1; + a28 = 0; + a5 = 4; + a19 = 1; + a9 = 9; + a1 = 12; + }else{ + a19 = 1; + a1 = 13; + a26 = 1; + a3 = 0; + a20 = 1; + a16 = 7; + } + return 25; + } else if(((((a16==9)&&((!(a7==1)&&((a21==10)&&(!(a20==1)&&((a13==1)&&(!(a26==1)&&(!(a24==1)&&(((a1==12)&&(input==6))&&!(a27==1))))))))&&(a19==3)))&&(a5==4))&&((a9==11)&&(((a13==1)&&(a17==2))&&(a6==1))))){ + if((a18==1)){ + a11 = 0; + a20 = 1; + a3 = 0; + a1 = 13; + a2 = 0; + a19 = 1; + a16 = 7; + }else{ + a5 = 5; + a6 = 0; + a25 = 1; + a29 = 1; + a1 = 14; + a16 = 7; + a19 = 1; + a9 = 9; + a20 = 1; + } + return 26; + } else if((((a21==10)&&((a1==13)&&((a5==6)&&((!(a4==1)&&((a19==5)&&(!(a20==1)&&((a2==1)||!(a12==1)))))&&!(a24==1)))))&&((((((a12==1)&&((input==1)&&(a9==10)))&&(a17==2))&&(a16==10))&&(a28==1))&&!(a24==1)))){ + a19 = 1; + a9 = 9; + a16 = 7; + a15 = 1; + a6 = 0; + a8 = 1; + a5 = 4; + a20 = 1; + a1 = 12; + return 21; + } else if(((((a28==1)&&((((((a20==1)&&(((((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4)))&&(input==6)))&&(a16==8))&&(a21==11))&&(a19==4))&&(a1==12)))&&!(a0==1))&&((a6==1)&&((!(a11==1)||(((a2==1)&&(a17==2))&&!(a27==1)))&&(a6==1))))){ + a26 = 0; + a16 = 7; + a5 = 4; + a21 = 10; + a9 = 7; + a11 = 1; + a19 = 1; + a12 = 1; + return -1; + } else if((((a4==1)&&((a24==1)&&((a20==1)&&(((a17==2)&&((a19==3)&&((a16==11)&&(a6==1))))&&(a1==14)))))&&(((a8==1)&&((a8==1)&&((((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==5))&&(a4==1))&&(a21==12))))&&!(a11==1)))){ + a19 = 1; + a25 = 0; + a16 = 7; + a9 = 10; + a7 = 1; + a18 = 1; + a5 = 4; + a1 = 13; + a21 = 10; + return -1; + } else if((((!(a24==1)&&((a1==12)&&(!(a23==1)||((a21==12)&&(!(a13==1)||((a17==2)&&(!(a0==1)&&((a12==1)||(a8==1)))))))))&&(a16==7))&&(!(a20==1)&&(((a2==1)&&((((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(input==4)))&&(a19==5))))){ + a5 = 4; + a20 = 1; + a14 = 0; + a9 = 9; + a21 = 10; + a26 = 0; + a16 = 8; + a7 = 0; + return -1; + } else if((((!(a13==1)||(((!(a23==1)||((a20==1)&&((a21==12)&&((a1==12)&&(a6==1)))))&&(a6==1))&&(a2==1)))||(a7==1))&&(((a19==5)&&((((a16==7)&&((input==1)&&(a5==6)))&&(a17==2))&&(a9==11)))&&(a12==1)))){ + a24 = 0; + a19 = 1; + a21 = 10; + a9 = 7; + a27 = 0; + a23 = 1; + a5 = 4; + return -1; + } else if(((((((a5==6)&&(((((a20==1)&&((a23==1)&&((a9==10)&&((a19==1)&&(input==6)))))&&!(a7==1))&&!(a7==1))&&(a21==10)))&&(a16==9))&&(a17==2))&&!(a8==1))&&((a11==1)&&(((a1==14)&&(a11==1))&&!(a8==1))))){ + a5 = 5; + a19 = 4; + a23 = 1; + a11 = 1; + a21 = 11; + a28 = 1; + a9 = 7; + a1 = 12; + return 21; + } else if((((a13==1)&&(((a13==1)&&(((input==4)&&(((a19==3)&&(((a5==5)&&(a1==12))&&(a9==7)))||(((a19==2)&&((a9==11)&&((a5==6)&&(a1==14))))||(((a9==7)&&((a1==12)&&(a5==4)))&&(a19==3)))))&&(a20==1)))&&(a16==11)))&&((a21==10)&&((!(a27==1)&&((!(a6==1)||((a17==2)&&(a28==1)))||(a8==1)))||!(a3==1))))){ + a5 = 4; + a9 = 7; + a13 = 1; + a8 = 0; + a0 = 0; + a19 = 1; + a1 = 12; + a16 = 7; + return -1; + } else if(((!(a27==1)&&((((a21==11)&&((a20==1)&&(((((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6))))&&(input==5))&&(a19==3))))&&!(a14==1))&&!(a7==1)))&&((((a17==2)&&((a1==13)&&(((a12==1)||(a26==1))&&(a16==7))))&&!(a24==1))&&(a3==1)))){ + a5 = 6; + a1 = 14; + a2 = 1; + a16 = 8; + a24 = 0; + a9 = 10; + a8 = 0; + a19 = 5; + a21 = 10; + return 23; + } else if((((a27==1)||(!(a4==1)&&((a1==13)&&(!(a18==1)&&((((a28==1)||!(a6==1))&&(a16==11))&&(a21==11))))))&&(((a19==4)&&((a20==1)&&((((a9==11)&&((a17==2)&&(input==1)))&&(a5==4))&&!(a27==1))))&&!(a14==1)))){ + a16 = 7; + a21 = 10; + a8 = 0; + a9 = 7; + a26 = 0; + a18 = 0; + a19 = 1; + a1 = 12; + return -1; + } else if((((((a20==1)&&(((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4)))&&(input==1)))&&(a23==1))&&(a21==12))&&(((((((a17==2)&&(((a8==1)||(!(a13==1)||(a23==1)))||!(a12==1)))&&(a12==1))&&(a13==1))&&(a16==11))&&(a19==2))&&(a1==12)))){ + a27 = 0; + a5 = 4; + a12 = 1; + a4 = 0; + a9 = 7; + a21 = 10; + a19 = 1; + a16 = 7; + return -1; + } else if((((((a2==1)&&(!(a8==1)&&(((a17==2)&&((a3==1)&&(((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==4))||((a19==5)&&((a9==7)&&((a5==4)&&(a1==12)))))&&(input==3))))&&!(a18==1))))&&!(a20==1))&&(a16==7))&&((((a6==1)&&(a23==1))||!(a13==1))&&(a21==11)))){ + a20 = 1; + a5 = 4; + a6 = 1; + a19 = 1; + a9 = 7; + a1 = 12; + a26 = 0; + a28 = 1; + a21 = 10; + return -1; + } else if((((a17==2)&&((a19==3)&&((((input==3)&&((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a5==4)&&(a9==10))))&&!(a27==1))&&(a16==11))))&&((a20==1)&&(((a24==1)||((a21==10)&&((a1==14)&&((((a23==1)||(a26==1))&&!(a4==1))&&(a3==1)))))&&!(a4==1))))){ + a9 = 7; + a19 = 1; + a16 = 7; + a5 = 4; + a26 = 0; + a1 = 12; + a8 = 0; + a13 = 1; + return -1; + } else if((((!(a20==1)&&(((((a4==1)&&((a17==2)&&(a2==1)))&&(a21==11))&&(a1==13))&&(a18==1)))&&!(a12==1))&&(!(a13==1)&&(((a9==8)&&((a27==1)&&((a16==8)&&(!(a11==1)&&(((a5==4)||(a5==5))&&(input==4))))))&&(a19==3))))){ + a21 = 10; + a22 = 0; + a5 = 4; + a9 = 10; + a0 = 1; + a19 = 2; + a25 = 0; + return 21; + } else if((((a11==1)&&((a1==14)&&((a21==12)&&(!(a27==1)&&((a17==2)&&((a16==7)&&((a19==5)&&(((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11)))&&(input==3)))))))))&&(!(a24==1)&&((!(a4==1)&&(!(a6==1)||(!(a0==1)&&(a11==1))))&&!(a20==1))))){ + a19 = 1; + a5 = 4; + a12 = 1; + a13 = 1; + a20 = 1; + a9 = 7; + a1 = 12; + a26 = 0; + a21 = 10; + return -1; + } else if((((a17==2)&&((!(a14==1)&&((((input==6)&&((((a21==10)&&((((a1==14)&&(a5==5))&&(a9==11))&&(a19==5)))||(((a19==5)&&(((a5==6)&&(a1==14))&&(a9==11)))&&(a21==10)))||((a21==11)&&((a19==1)&&(((a1==12)&&(a5==4))&&(a9==7))))))&&(a3==1))&&(a12==1)))&&(a16==7)))&&((!(a3==1)||((!(a12==1)||(a11==1))&&(a2==1)))&&!(a20==1)))){ + a19 = 1; + a21 = 10; + a20 = 1; + a1 = 12; + a13 = 1; + a0 = 0; + a27 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if((((!(a14==1)&&((a1==12)&&((a13==1)&&(a2==1))))||(a14==1))&&((a21==11)&&((a19==2)&&(!(a24==1)&&(!(a27==1)&&((a5==6)&&(((a20==1)&&((((input==4)&&(a9==9))&&(a16==11))&&(a23==1)))&&(a17==2))))))))){ + a5 = 5; + a9 = 10; + a21 = 12; + a14 = 0; + a16 = 8; + a27 = 0; + a3 = 1; + a19 = 1; + return -1; + } else if(((((a28==1)&&((((a9==11)&&((a17==2)&&(((a12==1)&&((input==3)&&((a5==4)||(a5==5))))&&(a1==14))))&&(a20==1))&&(a12==1)))&&!(a4==1))&&((a19==5)&&(!(a18==1)&&((((a21==11)&&(a13==1))||!(a6==1))&&(a16==10)))))){ + a19 = 1; + a14 = 0; + a5 = 4; + a1 = 12; + a9 = 7; + a6 = 1; + a3 = 1; + a21 = 10; + a16 = 7; + return -1; + } else if((((a16==8)&&(((!(a8==1)&&(!(a7==1)&&(!(a14==1)&&(((input==1)&&(a21==10))&&(a1==12)))))&&(a19==2))&&!(a24==1)))&&(((a17==2)&&(((a5==4)&&((a26==1)||(!(a3==1)||(a12==1))))&&(a9==8)))&&!(a20==1)))){ + a19 = 1; + a28 = 1; + a20 = 1; + a18 = 0; + a9 = 7; + a16 = 7; + a6 = 1; + return -1; + } else if((((a19==3)&&((a17==2)&&(((a16==9)&&((!(a23==1)||((a3==1)&&(a2==1)))&&(a20==1)))&&(a21==12))))&&((a13==1)&&(!(a14==1)&&(!(a14==1)&&((a1==14)&&(((((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(input==5))&&(a11==1)))))))){ + a16 = 7; + a21 = 10; + a26 = 0; + a7 = 0; + a5 = 4; + a19 = 1; + a1 = 12; + a9 = 7; + a14 = 0; + return -1; + } else if((((a9==10)&&(!(a26==1)&&(((input==1)&&(a1==13))&&(a5==6))))&&((((a20==1)&&(((a19==3)&&(((((a27==1)||((a21==12)&&(a23==1)))||(a8==1))&&(a16==7))&&(a17==2)))||!(a3==1)))&&(a6==1))||(a26==1)))){ + a13 = 1; + a19 = 1; + a6 = 1; + a1 = 12; + a24 = 0; + a5 = 4; + a9 = 7; + a21 = 10; + return -1; + } else if((((a9==9)&&(((a28==1)&&((a11==1)&&((((a21==12)&&(!(a0==1)&&(((input==1)&&(a19==1))&&(a5==4))))&&(a1==12))&&(a17==2))))&&!(a20==1)))&&(((a16==10)&&(((a3==1)&&(a23==1))&&!(a14==1)))&&(a11==1)))){ + if((a1==13)){ + a28 = 0; + a16 = 11; + a21 = 10; + a5 = 6; + a20 = 1; + a1 = 14; + a3 = 0; + a11 = 0; + }else{ + a23 = 0; + a9 = 11; + a26 = 1; + a5 = 5; + a6 = 0; + a19 = 5; + a16 = 7; + } + return 26; + } else if((((((!(a26==1)&&(((!(a7==1)&&(((a5==4)||(a5==5))&&(input==3)))&&(a19==4))&&(a9==9)))&&(a17==2))&&(a1==13))&&!(a20==1))&&((a16==8)&&((a27==1)||((a13==1)&&(((a3==1)&&((a11==1)&&(a21==11)))||!(a23==1))))))){ + a20 = 1; + a1 = 12; + a14 = 0; + a19 = 1; + a16 = 7; + a13 = 1; + a21 = 10; + a9 = 7; + a5 = 4; + return -1; + } else if((((!(a3==1)&&((a18==1)&&((a16==7)&&((((input==4)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11))))&&!(a23==1))&&(a20==1)))))&&!(a11==1))&&(((a1==13)&&((a21==10)&&((a17==2)&&(((a6==1)&&(a19==4))&&(a0==1)))))&&!(a13==1)))){ + a5 = 6; + a25 = 0; + a27 = 1; + a9 = 7; + a19 = 1; + a8 = 1; + return 21; + } else if((((a18==1)||(!(a0==1)&&(((((a21==11)&&((a19==2)&&(a28==1)))||!(a28==1))&&!(a7==1))||(a26==1))))&&((a6==1)&&((a20==1)&&(((((((a5==6)&&(a1==12))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==13))))&&(input==4))&&(a17==2))&&(a16==10)))))){ + a12 = 1; + a24 = 0; + a21 = 10; + a5 = 4; + a0 = 0; + a16 = 7; + a1 = 12; + a9 = 7; + a19 = 1; + return -1; + } else if((((((a21==12)&&(((((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a16==8))&&(a1==14))&&(a3==1)))&&(a12==1))&&(a19==2))&&((a17==2)&&((!(a20==1)&&(((!(a3==1)||((a9==10)&&(a12==1)))&&!(a7==1))&&!(a4==1)))||!(a6==1))))){ + a19 = 1; + a5 = 4; + a2 = 0; + a16 = 9; + a27 = 1; + a21 = 10; + a1 = 12; + a22 = 1; + return -1; + } else if((((a19==3)&&(!(a7==1)&&((a27==1)||((a16==10)&&(((!(a27==1)&&(((a3==1)&&(a9==7))&&(a12==1)))||(a7==1))&&(a17==2))))))&&(((a1==14)&&((((input==6)&&((a5==5)||(a5==6)))&&(a21==11))&&(a11==1)))&&(a20==1)))){ + a16 = 7; + a19 = 1; + a5 = 4; + a4 = 0; + a13 = 1; + a1 = 12; + a0 = 0; + a21 = 10; + return -1; + } else if(((((a16==9)&&(((a5==6)&&(((input==4)&&(a17==2))&&(a9==10)))&&(a1==14)))&&(a28==1))&&(!(a6==1)||((a3==1)&&((a0==1)||(((a19==3)&&((a21==12)&&((a20==1)&&((a28==1)&&(a2==1)))))||!(a11==1))))))){ + a11 = 1; + a16 = 7; + a24 = 0; + a19 = 1; + a1 = 12; + a21 = 10; + a23 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if((((a1==14)&&((a12==1)&&(a14==1)))&&((a17==2)&&((a18==1)&&(((a21==10)&&((a20==1)&&((!(a28==1)&&((a19==5)&&((((input==1)&&(((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))&&!(a23==1))&&!(a11==1))))&&!(a12==1))))&&(a16==9)))))){ + a5 = 6; + a10 = 0; + a29 = 0; + a1 = 12; + a9 = 11; + a16 = 7; + a23 = 0; + a19 = 1; + return -1; + } else if((((((a9==9)&&((!(a8==1)&&((a19==1)&&(a13==1)))&&(a6==1)))&&(a17==2))&&(a16==8))&&((((!(a20==1)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&!(a4==1))&&!(a18==1))&&(a12==1)))&&(a6==1))&&(a21==10))&&(a1==13)))){ + a9 = 7; + a12 = 1; + a20 = 1; + a16 = 7; + a28 = 1; + a23 = 1; + a5 = 4; + a1 = 12; + return -1; + } else if(((((a17==2)&&((a14==1)||((a12==1)||!(a13==1))))&&(a6==1))&&((a1==13)&&((((a16==7)&&(!(a20==1)&&(((!(a26==1)&&((input==3)&&(((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8))))))&&(a21==10))&&!(a7==1))))&&(a19==1))&&(a12==1))))){ + a1 = 12; + a6 = 1; + a9 = 7; + a12 = 1; + a20 = 1; + a13 = 1; + a5 = 4; + return -1; + } else if((((a23==1)&&((((a17==2)&&((a19==1)&&((((input==3)&&(a16==7))&&(a9==9))&&(a5==6))))&&(a6==1))&&!(a8==1)))&&(((a14==1)||(((a14==1)||((!(a20==1)&&(a11==1))&&(a21==10)))&&!(a4==1)))&&(a1==14)))){ + a13 = 1; + a19 = 3; + a1 = 12; + a20 = 1; + a9 = 10; + a24 = 0; + a21 = 12; + a16 = 9; + a5 = 5; + a23 = 1; + return 21; + } else if(((((a1==14)&&(((a19==1)&&((((((!(a20==1)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))&&(a23==1))&&!(a14==1))&&(a16==8))&&(a23==1))&&(a17==2)))&&(a21==11)))&&(a9==8))&&((a3==1)&&((!(a3==1)||(a2==1))&&!(a26==1))))){ + a20 = 1; + a19 = 4; + a9 = 7; + a1 = 12; + a6 = 1; + a27 = 0; + a16 = 9; + a5 = 5; + a7 = 0; + return 21; + } else if((((a4==1)||(((a1==13)&&(((a24==1)||(((a21==12)&&((a12==1)&&(a6==1)))&&(a16==7)))&&(a20==1)))||(a7==1)))&&(!(a26==1)&&(!(a24==1)&&((a19==3)&&(((input==3)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8))))&&(a17==2))))))){ + a21 = 10; + a1 = 12; + a2 = 1; + a19 = 5; + a9 = 11; + a7 = 0; + a14 = 0; + a16 = 9; + a5 = 5; + return 25; + } else if(((((a9==11)&&((a17==2)&&((((((input==1)&&(a16==9))&&!(a4==1))&&!(a4==1))&&!(a7==1))&&(a19==4))))&&(a21==10))&&(((a20==1)&&(((a4==1)||((a5==4)&&((a3==1)&&(a23==1))))||(a24==1)))&&(a1==12)))){ + a24 = 0; + a23 = 1; + a5 = 6; + a16 = 8; + a20 = 0; + a0 = 0; + a19 = 3; + a9 = 10; + return 21; + } else if((((a1==13)&&((a3==1)&&(!(a20==1)&&((((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&(a17==2))&&(a11==1)))))&&((a16==10)&&(((a0==1)||((a26==1)||(!(a14==1)&&((a9==10)&&((a24==1)||((a21==10)&&(a13==1)))))))&&(a19==1))))){ + if((a3==1)){ + a19 = 5; + a5 = 4; + a3 = 0; + a20 = 1; + a21 = 11; + a24 = 1; + a9 = 11; + a22 = 1; + }else{ + a18 = 1; + a14 = 1; + a1 = 12; + a5 = 4; + a9 = 9; + a24 = 1; + a20 = 1; + a16 = 8; + } + return -1; + } else if(((!(a3==1)||(((((a11==1)||(a24==1))&&!(a26==1))&&(a1==14))&&(a16==8)))&&(((((a12==1)&&((a20==1)&&((a19==3)&&((a17==2)&&((input==1)&&(((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))))))))&&(a12==1))&&(a21==10))&&(a28==1)))){ + a1 = 12; + a23 = 1; + a16 = 7; + a5 = 4; + a9 = 7; + a19 = 1; + a7 = 0; + a26 = 0; + return -1; + } else if((((((a1==12)&&((((a21==11)&&((((a23==1)&&(a6==1))&&(a16==8))&&(a17==2)))||!(a2==1))&&(a19==4)))&&(a11==1))||(a24==1))&&(((!(a20==1)&&((((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7))))&&(input==5)))&&!(a4==1))&&!(a27==1)))){ + a12 = 1; + a8 = 0; + a20 = 1; + a7 = 0; + a19 = 5; + a5 = 4; + a9 = 9; + a21 = 10; + return -1; + } else if((((a12==1)&&((((a2==1)&&(((((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==4))&&(a19==1))&&(a16==9))&&!(a20==1)))&&(a1==13))&&(a6==1)))&&((a21==12)&&(!(a0==1)&&(!(a27==1)&&((a14==1)||((a23==1)&&(a17==2)))))))){ + a9 = 11; + a5 = 4; + a10 = 1; + a12 = 0; + a1 = 12; + a29 = 0; + a20 = 1; + a21 = 10; + a16 = 7; + return -1; + } else if(((!(a26==1)&&((((a17==2)&&((input==3)&&(a19==5)))&&!(a27==1))&&(a23==1)))&&((a16==9)&&((!(a20==1)&&(!(a14==1)&&(((!(a4==1)&&((a9==8)&&((a5==5)&&(a13==1))))||!(a3==1))&&(a1==13))))&&(a21==10))))){ + a20 = 1; + a16 = 8; + a7 = 1; + a10 = 1; + a8 = 1; + a1 = 14; + a19 = 3; + a9 = 7; + a21 = 11; + return -1; + } else if((((a9==9)&&(!(a27==1)&&((((a13==1)&&(!(a24==1)&&((a17==2)&&(input==5))))&&(a6==1))&&!(a26==1))))&&(((a5==4)&&(((((a19==5)&&((a11==1)&&!(a27==1)))&&(a21==11))&&(a20==1))&&(a16==11)))&&(a1==13)))){ + a6 = 1; + a1 = 12; + a19 = 1; + a21 = 10; + a11 = 1; + a16 = 7; + a9 = 7; + a3 = 1; + return -1; + } else if((((a16==9)&&(((((!(a3==1)||(a2==1))&&(a11==1))&&(a17==2))&&(a11==1))||(a26==1)))&&((((a21==12)&&((!(a14==1)&&(((a19==2)&&((input==6)&&(a1==14)))&&(a3==1)))&&(a5==5)))&&(a9==9))&&(a20==1)))){ + a19 = 1; + a16 = 7; + a21 = 10; + a4 = 0; + a5 = 4; + a9 = 7; + a1 = 12; + a11 = 1; + return -1; + } else if((((a21==12)&&((a19==3)&&((a16==10)&&((a13==1)&&(((a11==1)&&((a1==12)&&((((a5==4)||(a5==5))&&(input==3))&&(a28==1))))&&!(a26==1))))))&&((!(a18==1)&&((a17==2)&&(((a6==1)&&(a20==1))||!(a11==1))))&&(a9==7)))){ + a7 = 0; + a16 = 7; + a5 = 4; + a6 = 1; + a19 = 1; + a11 = 1; + a21 = 10; + return -1; + } else if(((!(a18==1)&&((((input==5)&&((a5==4)||(a5==5)))&&!(a20==1))&&(a16==9)))&&((a12==1)&&((a19==5)&&(!(a13==1)||(((a28==1)&&(((a9==9)&&((a17==2)&&(((a1==12)&&(a11==1))&&(a21==11))))&&(a11==1)))&&(a6==1))))))){ + if((a20==1)){ + a19 = 2; + a16 = 7; + a27 = 1; + a21 = 10; + a10 = 1; + a9 = 7; + a28 = 0; + a20 = 1; + a5 = 5; + }else{ + a9 = 11; + a15 = 0; + a16 = 10; + a22 = 1; + a5 = 6; + a1 = 14; + a26 = 1; + } + return 25; + } else if((((((a23==1)&&(a23==1))||!(a3==1))&&!(a27==1))&&((a20==1)&&(!(a18==1)&&((a13==1)&&((a1==14)&&((!(a18==1)&&(((a21==10)&&(((input==5)&&(((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))))&&(a16==8)))&&(a17==2)))&&(a19==3)))))))){ + a4 = 0; + a19 = 5; + a9 = 10; + a11 = 1; + a1 = 13; + a21 = 12; + a5 = 4; + a16 = 9; + a7 = 0; + return 25; + } else if((((!(a0==1)&&((a17==2)&&(((a4==1)||(a28==1))&&(a1==12))))&&(a9==9))&&(((!(a14==1)&&((!(a14==1)&&((a28==1)&&(((a21==11)&&(((a5==4)||(a5==5))&&(input==4)))&&!(a20==1))))&&!(a24==1)))&&(a16==9))&&(a19==5)))){ + a21 = 10; + a19 = 1; + a25 = 0; + a9 = 10; + a5 = 6; + a20 = 1; + a13 = 0; + a10 = 1; + a16 = 7; + a1 = 14; + return -1; + } else if((((((a19==1)&&(((a7==1)&&((((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9))))&&(input==4)))&&(a24==1)))&&(a21==12))&&(a8==1))&&((!(a2==1)&&((a27==1)&&(!(a2==1)&&((((a28==1)&&(a1==14))&&(a20==1))&&(a16==7)))))&&(a17==2)))){ + a19 = 4; + a10 = 1; + a1 = 12; + a9 = 9; + a5 = 5; + a13 = 0; + return -1; + } else if((((!(a18==1)&&((((((((a20==1)&&(input==6))&&!(a8==1))&&(a19==4))&&(a1==13))&&(a17==2))&&(a5==5))&&(a12==1)))&&!(a7==1))&&((!(a12==1)||((a16==10)&&(!(a7==1)&&((a6==1)&&(a21==10)))))&&(a9==10)))){ + a27 = 0; + a1 = 14; + a5 = 6; + a8 = 0; + a21 = 11; + a19 = 3; + a9 = 11; + a13 = 1; + a16 = 7; + return 25; + } else if((((a9==10)&&((((((a16==7)&&(((a5==4)||(a5==5))&&(input==4)))&&(a17==2))&&!(a8==1))&&!(a8==1))&&(a28==1)))&&(((a1==14)&&((a19==4)&&((!(a27==1)&&(((a2==1)&&!(a14==1))||(a4==1)))&&!(a20==1))))&&(a21==11)))){ + a20 = 1; + a13 = 1; + a21 = 10; + a12 = 1; + a14 = 0; + a5 = 4; + a1 = 12; + a19 = 1; + a9 = 7; + return -1; + } else if(((!(a20==1)&&(((a9==9)&&((a27==1)||(((a21==12)&&(a12==1))||!(a11==1))))&&(a17==2)))&&((a1==12)&&(((a23==1)&&(!(a14==1)&&((((a28==1)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6))))&&(a19==5))&&(a2==1))))&&(a16==10))))){ + a13 = 0; + a9 = 11; + a21 = 10; + a19 = 1; + a20 = 1; + a1 = 13; + a16 = 7; + a5 = 4; + a15 = 0; + a3 = 0; + return 21; + } else if(((((a21==10)&&((a7==1)||((a19==2)&&(a3==1))))&&!(a14==1))&&(!(a20==1)&&((!(a27==1)&&((!(a14==1)&&((a3==1)&&((a11==1)&&((input==4)&&(((a9==11)&&((a1==13)&&(a5==6)))||(((a5==4)&&(a1==14))&&(a9==7)))))))&&(a17==2)))&&(a16==7))))){ + a1 = 12; + a4 = 0; + a5 = 4; + a27 = 0; + a20 = 1; + a9 = 7; + a11 = 1; + a19 = 1; + return -1; + } else if(((((a9==9)&&(((a5==5)&&(((a6==1)&&(!(a8==1)&&((a21==12)&&(input==3))))&&!(a27==1)))&&(a1==13)))&&(a16==7))&&((a17==2)&&(((!(a6==1)||((a19==4)&&((a28==1)||!(a2==1))))&&(a20==1))&&!(a27==1))))){ + a5 = 4; + a21 = 10; + a1 = 12; + a8 = 0; + a9 = 7; + a13 = 1; + a19 = 1; + a18 = 0; + return -1; + } else if(((((a26==1)||((a21==12)&&((a19==5)&&((a16==10)&&((a17==2)&&(a23==1))))))||!(a23==1))&&((a3==1)&&(((a3==1)&&((a1==13)&&((((input==1)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5))))&&(a11==1))&&!(a20==1))))&&!(a24==1))))){ + a9 = 11; + a16 = 7; + a11 = 0; + a21 = 10; + a19 = 1; + a5 = 6; + a20 = 1; + a3 = 0; + a24 = 1; + return 23; + } else if((((a21==12)&&((a3==1)&&(a28==1)))&&((a16==10)&&((a1==13)&&(((a23==1)&&(((a12==1)&&((a9==10)&&((a19==4)&&(((((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a20==1))&&(a28==1))&&!(a18==1)))))&&!(a8==1)))&&(a17==2)))))){ + a3 = 0; + a22 = 1; + a6 = 0; + a19 = 1; + a20 = 1; + a16 = 7; + a21 = 10; + a5 = 6; + a9 = 9; + a1 = 14; + return -1; + } else if((((((((a21==11)&&((((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==4))&&!(a7==1))&&(a19==2)))&&(a16==8))&&!(a26==1))&&!(a20==1))&&!(a24==1))&&((((a1==13)&&(((a17==2)&&(a28==1))||(a26==1)))&&!(a26==1))||!(a3==1)))){ + a21 = 10; + a16 = 7; + a3 = 1; + a19 = 1; + a0 = 0; + a9 = 7; + a5 = 4; + a1 = 12; + a20 = 1; + a2 = 1; + return -1; + } else if((((a16==8)&&(((((!(a20==1)&&((input==5)&&((a5==4)||(a5==5))))&&!(a24==1))&&!(a26==1))&&(a3==1))&&(a12==1)))&&((a24==1)||(((a21==10)&&((((a1==14)&&((a19==3)&&(a11==1)))&&(a17==2))&&(a9==11)))||(a14==1))))){ + a16 = 11; + a3 = 1; + a19 = 5; + a5 = 6; + a21 = 11; + a1 = 12; + a20 = 1; + a6 = 1; + return 23; + } else if((((a11==1)&&((((((a0==1)||((a9==10)&&(a2==1)))&&(a16==11))&&(a21==10))||(a27==1))&&(a1==12)))&&((a3==1)&&((a19==1)&&(((a17==2)&&((!(a20==1)&&((a5==6)&&(input==5)))&&!(a14==1)))&&!(a4==1)))))){ + a1 = 14; + a2 = 0; + a21 = 12; + a16 = 9; + a23 = 0; + a5 = 5; + a26 = 1; + a9 = 9; + return 25; + } else if((((a16==9)&&((a17==2)&&((a1==14)&&(a23==1))))&&(((!(a20==1)&&((a19==5)&&((a11==1)&&((a13==1)&&(((((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==6))&&!(a24==1))&&!(a8==1))&&!(a14==1))))))&&(a21==11))&&(a2==1)))){ + a10 = 0; + a9 = 11; + a5 = 6; + a29 = 1; + a21 = 10; + a16 = 10; + a19 = 4; + a0 = 1; + return -1; + } else if((((((!(a8==1)&&((a12==1)&&((a21==10)&&(((input==4)&&(((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))&&(a23==1)))))&&(a13==1))&&(a19==3))&&(a1==12))&&(((((!(a13==1)||(a12==1))&&(a16==11))&&(a2==1))&&!(a20==1))&&(a17==2)))){ + a5 = 4; + a19 = 2; + a11 = 0; + a9 = 7; + a8 = 1; + a21 = 12; + a16 = 7; + a20 = 1; + a22 = 1; + return -1; + } else if((((a16==10)&&(((a19==1)&&((((a1==12)&&((a9==8)&&(input==6)))&&(a5==6))&&!(a28==1)))&&!(a11==1)))&&(((((a17==2)&&(((a20==1)&&((a13==1)&&(a8==1)))&&!(a28==1)))&&(a21==10))&&(a7==1))&&!(a11==1)))){ + a9 = 10; + a27 = 1; + a10 = 1; + a20 = 0; + a16 = 8; + a21 = 11; + return -1; + } else if(((!(a4==1)&&(!(a28==1)||(!(a20==1)&&((a9==8)&&((a1==12)&&(a23==1))))))&&(!(a8==1)&&(!(a27==1)&&((a12==1)&&(((a17==2)&&(((((input==1)&&(a5==6))&&(a16==9))&&!(a24==1))&&(a21==10)))&&(a19==1))))))){ + if((a22==1)){ + a10 = 1; + a9 = 7; + a20 = 1; + a4 = 1; + a16 = 7; + a5 = 5; + a25 = 0; + }else{ + a9 = 9; + a16 = 7; + a23 = 0; + a5 = 5; + a14 = 1; + a27 = 1; + } + return 23; + } else if((((!(a26==1)&&((a17==2)&&((((a5==4)||(a5==5))&&(input==3))&&(a21==12))))&&!(a20==1))&&((a16==9)&&((a19==4)&&((a1==14)&&(((a13==1)&&(!(a14==1)&&((((a12==1)||(a26==1))||(a8==1))&&!(a18==1))))&&(a9==11))))))){ + if((a0==1)){ + a13 = 0; + a15 = 1; + a16 = 7; + a5 = 5; + a8 = 1; + a19 = 5; + a9 = 10; + a21 = 11; + }else{ + a14 = 1; + a20 = 1; + a21 = 10; + a5 = 5; + a19 = 2; + a24 = 1; + a16 = 8; + } + return -1; + } else if(((!(a7==1)&&((!(a0==1)&&(((a20==1)&&((a16==9)&&((a19==5)&&(!(a8==1)&&((input==5)&&(((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))))))))&&(a17==2)))&&!(a26==1)))&&((a2==1)&&(((a21==11)&&((a1==14)&&(a6==1)))||(a26==1))))){ + a6 = 1; + a5 = 4; + a8 = 0; + a16 = 7; + a21 = 10; + a26 = 0; + a9 = 7; + a19 = 1; + a1 = 12; + return -1; + } else if(((!(a20==1)&&((((input==4)&&((a5==5)||(a5==6)))&&(a16==7))&&(a19==5)))&&((a12==1)&&((a17==2)&&(((((a12==1)&&((a18==1)||((a0==1)||(((a2==1)&&(a21==11))&&(a1==12)))))&&!(a0==1))&&(a9==10))||(a7==1)))))){ + a16 = 9; + a5 = 5; + a7 = 0; + a20 = 1; + a19 = 1; + a2 = 1; + a9 = 9; + return -1; + } else if(((!(a12==1)&&(((a0==1)&&((a17==2)&&(((((input==1)&&(a21==10))&&(a5==4))&&(a16==8))&&(a20==1))))&&(a24==1)))&&((((((a19==5)&&((a11==1)&&(a27==1)))&&(a1==12))&&(a9==9))&&(a4==1))&&!(a13==1)))){ + a16 = 7; + a1 = 14; + a28 = 0; + a9 = 7; + a18 = 1; + a19 = 1; + return -1; + } else if(((((a9==11)&&(((a23==1)&&(((a27==1)||(!(a20==1)&&((a2==1)&&(a19==3))))&&!(a8==1)))&&(a5==4)))&&(a16==8))&&((a21==10)&&((a1==13)&&((a13==1)&&((a13==1)&&(!(a4==1)&&((input==3)&&(a17==2))))))))){ + a16 = 7; + a1 = 12; + a4 = 0; + a24 = 0; + a9 = 7; + a3 = 1; + a20 = 1; + a19 = 1; + return -1; + } else if(((!(a27==1)&&(!(a20==1)&&((a17==2)&&(!(a27==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5))))))&&(((a16==9)&&(!(a13==1)||(((a21==12)&&((a3==1)&&((((a3==1)&&(a19==5))&&!(a8==1))&&(a1==14))))&&(a9==10))))||(a0==1)))){ + if((a13==1)){ + a10 = 0; + a19 = 1; + a20 = 1; + a16 = 7; + a1 = 13; + a22 = 1; + a12 = 0; + a21 = 10; + a9 = 11; + a5 = 4; + }else{ + a16 = 7; + a27 = 1; + a5 = 4; + a21 = 10; + a19 = 2; + a1 = 13; + a20 = 1; + a0 = 1; + a9 = 7; + a10 = 1; + } + return -1; + } else if(((((a21==12)&&((!(a2==1)||((a19==3)&&(((a3==1)&&((a1==14)&&(((a13==1)&&!(a4==1))&&(a16==11))))||(a0==1))))||!(a6==1)))&&(a9==10))&&((((a23==1)&&((input==3)&&((a5==4)||(a5==5))))&&(a20==1))&&(a17==2)))){ + a21 = 11; + a9 = 7; + a5 = 6; + a13 = 1; + a28 = 1; + a18 = 0; + a19 = 4; + a1 = 12; + a16 = 9; + return 21; + } else if((((a17==2)&&((a19==1)&&(((a1==13)&&((a18==1)||(!(a2==1)||((a3==1)&&(a21==10)))))||(a8==1))))&&(!(a20==1)&&(((a16==8)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&!(a8==1))&&(a9==10))&&(a12==1)))&&(a12==1))))){ + a5 = 4; + a23 = 1; + a28 = 1; + a13 = 1; + a16 = 7; + a1 = 12; + a20 = 1; + a9 = 7; + return -1; + } else if((((a17==2)&&((((((a28==1)&&!(a26==1))&&(a9==7))&&!(a8==1))||(a0==1))&&!(a20==1)))&&((a1==12)&&((a16==9)&&((a21==11)&&((a23==1)&&((a3==1)&&((((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&(a19==4))&&!(a27==1))))))))){ + a5 = 6; + a21 = 12; + a20 = 1; + a16 = 10; + a19 = 1; + a12 = 0; + a13 = 0; + a0 = 1; + return -1; + } else if(((((a5==6)&&((a1==13)&&(!(a8==1)&&((input==1)&&(a21==10)))))&&(a19==4))&&((!(a3==1)||((a20==1)&&((a16==8)&&(((!(a27==1)&&(((a23==1)&&(a17==2))&&!(a18==1)))&&(a9==11))&&!(a26==1)))))&&(a13==1)))){ + a11 = 1; + a1 = 12; + a28 = 1; + a16 = 7; + a3 = 1; + a19 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if((((!(a26==1)&&((a6==1)&&((((a2==1)&&((a1==13)&&((a20==1)&&(((input==1)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(a16==11)))))&&!(a8==1))&&!(a26==1))))&&(a6==1))&&((((a2==1)&&(a17==2))&&(a19==1))&&(a21==12)))){ + a11 = 1; + a18 = 0; + a26 = 0; + a16 = 7; + a21 = 10; + a5 = 4; + a9 = 7; + a1 = 12; + return -1; + } else if((((a18==1)||(((((a3==1)||(a18==1))&&(a16==10))||(a27==1))||!(a13==1)))&&(((a9==11)&&((a19==2)&&(((((a20==1)&&((a17==2)&&((input==4)&&((a5==5)||(a5==6)))))&&!(a27==1))&&(a11==1))&&(a1==13))))&&(a21==10)))){ + a9 = 7; + a19 = 1; + a1 = 12; + a0 = 0; + a14 = 0; + a16 = 7; + a2 = 1; + a5 = 4; + return -1; + } else if(((((a19==5)&&((((a16==10)&&((!(a13==1)||(((a5==5)&&(a3==1))||(a24==1)))&&(a2==1)))&&(a9==8))||!(a13==1)))&&(a21==12))&&((a20==1)&&((a1==13)&&((a23==1)&&((a23==1)&&((a17==2)&&(input==1)))))))){ + a26 = 0; + a21 = 11; + a9 = 9; + a18 = 0; + a16 = 9; + a27 = 0; + a19 = 4; + return -1; + } else if(((((((((a16==8)&&(((a23==1)&&(a21==10))||!(a6==1)))&&(a1==13))&&(a17==2))&&!(a20==1))||(a24==1))&&(a19==4))&&(((a23==1)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a23==1))&&(a9==11))&&(a6==1)))&&(a12==1)))){ + a1 = 14; + a5 = 5; + a9 = 10; + a24 = 0; + a3 = 1; + a0 = 0; + a21 = 11; + a19 = 5; + a16 = 10; + a20 = 1; + return 21; + } else if((((a11==1)&&((a3==1)&&((a19==5)&&((a16==8)&&(((a21==12)&&(!(a12==1)||((a6==1)&&!(a8==1))))&&(a9==10))))))&&(!(a26==1)&&(((!(a20==1)&&(!(a26==1)&&((input==5)&&((a5==5)||(a5==6)))))&&(a17==2))&&(a1==14))))){ + a20 = 1; + a19 = 3; + a11 = 0; + a10 = 1; + a21 = 11; + a5 = 4; + a4 = 1; + a16 = 9; + a9 = 9; + return 21; + } else if(((((((((a21==11)&&(((a9==7)&&((a1==12)&&(a5==4)))&&(a19==1)))||((((((a5==5)&&(a1==14))&&(a9==11))&&(a19==5))&&(a21==10))||(((a19==5)&&(((a5==6)&&(a1==14))&&(a9==11)))&&(a21==10))))&&(input==1))&&(a16==7))&&!(a20==1))&&(a28==1))&&((!(a2==1)||((a17==2)&&((!(a27==1)&&((a3==1)||!(a12==1)))||(a14==1))))||!(a11==1)))){ + a20 = 1; + a1 = 13; + a21 = 10; + a16 = 11; + a5 = 6; + a14 = 0; + a11 = 1; + a18 = 0; + a19 = 3; + a9 = 10; + return 25; + } else if(((((a5==4)&&(!(a8==1)&&(((a1==13)&&((a16==9)&&((a19==3)&&((a9==7)&&(input==4)))))&&(a11==1))))&&(a20==1))&&(((a27==1)||(((!(a26==1)&&((a21==12)&&(a6==1)))&&(a17==2))&&!(a24==1)))&&(a13==1)))){ + a19 = 1; + a1 = 12; + a16 = 7; + a0 = 0; + a21 = 10; + a28 = 1; + return -1; + } else if(((!(a24==1)&&(!(a2==1)||(!(a6==1)||((!(a14==1)&&((a28==1)&&(a21==10)))||(a0==1)))))&&((a17==2)&&(((((((((a9==11)&&((a1==12)&&(a5==5)))||(((a1==12)&&(a5==6))&&(a9==11)))||((a9==7)&&((a1==13)&&(a5==4))))&&(input==5))&&(a20==1))&&(a19==4))&&!(a8==1))&&(a16==9))))){ + a1 = 14; + a3 = 1; + a16 = 7; + a19 = 2; + a27 = 0; + a9 = 11; + a5 = 6; + a21 = 12; + a8 = 0; + return 25; + } else if((((((a21==12)&&((a16==7)&&((a11==1)&&(!(a7==1)&&((((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4)))&&(input==4))&&(a19==1))))))&&(a6==1))&&(a12==1))&&((!(a28==1)||((((a28==1)&&(a1==14))&&(a20==1))||!(a12==1)))&&(a17==2)))){ + a13 = 1; + a1 = 12; + a7 = 0; + a5 = 4; + a27 = 0; + a21 = 10; + a9 = 7; + return -1; + } else if((((a21==10)&&((a5==6)&&(((((a28==1)&&(a17==2))||(a4==1))&&!(a7==1))&&(a20==1))))&&((!(a8==1)&&((a11==1)&&(!(a7==1)&&((((a9==9)&&((input==6)&&(a1==13)))&&(a16==10))&&(a19==3)))))&&(a28==1)))){ + a28 = 1; + a19 = 1; + a23 = 1; + a5 = 4; + a16 = 7; + a1 = 12; + a9 = 7; + a26 = 0; + return -1; + } else if(((((((!(a12==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5)))&&!(a23==1))&&!(a6==1))&&(a17==2))&&(a20==1))&&((((a21==11)&&(((a8==1)&&((((a9==7)&&(a2==1))&&(a1==12))&&(a14==1)))&&(a19==2)))&&(a14==1))&&(a16==9)))){ + a19 = 1; + a16 = 7; + a9 = 10; + a11 = 0; + a5 = 5; + a21 = 10; + a7 = 1; + a14 = 1; + return -1; + } else if((((a21==10)&&((a20==1)&&(!(a0==1)&&((a12==1)&&(a19==3)))))&&((((a1==14)&&((((!(a8==1)&&(!(a27==1)&&(((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a17==2))))&&(a28==1))&&(a16==7))&&(a3==1)))&&!(a8==1))&&(a9==11)))){ + a11 = 1; + a26 = 0; + a5 = 4; + a1 = 12; + a0 = 0; + a9 = 7; + a19 = 1; + return -1; + } else if((((!(a4==1)&&(((a19==1)&&((input==6)&&(((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))))&&!(a4==1)))&&(a11==1))&&(((((a20==1)&&((a1==13)&&(!(a12==1)||(((a11==1)&&!(a8==1))&&(a13==1)))))&&(a17==2))&&(a21==11))&&(a16==8)))){ + a14 = 0; + a5 = 4; + a23 = 1; + a9 = 7; + a1 = 12; + a16 = 7; + a21 = 10; + return -1; + } return calculate_output16(input); + } + + int calculate_output16(int input) { + if((((((a3==1)&&(!(a14==1)&&(!(a20==1)&&(a13==1))))&&(a21==10))&&(a19==2))&&((a23==1)&&(((a17==2)&&(((a1==13)&&(((((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5)))&&(input==4))&&!(a27==1))&&(a28==1)))&&(a16==11)))&&!(a27==1))))){ + if((a18==1)){ + a9 = 7; + a20 = 1; + a5 = 6; + a1 = 12; + a16 = 7; + a18 = 1; + a11 = 0; + a28 = 0; + }else{ + a26 = 1; + a1 = 12; + a16 = 9; + a19 = 3; + a9 = 11; + a4 = 1; + a5 = 4; + a20 = 1; + } + return -1; + } else if(((((a17==2)&&(!(a26==1)&&(((a13==1)&&(((input==4)&&(((a19==3)&&(((a5==6)&&(a1==14))&&(a9==11)))||((((a5==4)&&(a1==12))&&(a9==7))&&(a19==4))))&&(a6==1)))&&!(a14==1))))&&!(a20==1))&&(((((a11==1)||(a18==1))&&(a28==1))&&(a16==9))&&(a21==12)))){ + if((a4==1)){ + a1 = 14; + a20 = 1; + a9 = 8; + a11 = 0; + a5 = 5; + a25 = 0; + a19 = 2; + a0 = 1; + a21 = 11; + a16 = 8; + }else{ + a1 = 14; + a19 = 1; + a0 = 1; + a20 = 1; + a21 = 10; + a25 = 1; + a5 = 5; + a3 = 0; + a16 = 7; + a9 = 10; + } + return 22; + } else if(((((((a1==13)&&((a13==1)&&(a16==10)))&&!(a0==1))&&!(a8==1))&&(a9==7))&&(((!(a26==1)&&(((a19==3)&&(!(a4==1)&&(((a5==4)&&((a21==11)&&(input==1)))&&!(a8==1))))&&(a17==2)))&&(a20==1))&&(a12==1)))){ + a12 = 1; + a9 = 9; + a7 = 0; + a19 = 2; + a5 = 5; + a3 = 1; + a21 = 10; + a16 = 7; + return 25; + } else if(((!(a12==1)&&(((((a3==1)&&(a17==2))&&!(a20==1))&&(a1==12))&&(a19==3)))&&(((a21==10)&&((!(a2==1)&&((a24==1)&&((!(a13==1)&&((input==3)&&((((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8)))))&&(a16==7))))&&!(a23==1)))&&!(a23==1)))){ + a19 = 1; + a20 = 1; + a29 = 1; + a5 = 6; + a9 = 11; + a6 = 0; + a13 = 0; + return 23; + } else if((((((a1==13)&&((a12==1)&&((a17==2)&&((!(a27==1)&&(((input==3)&&(a16==10))&&(a19==2)))&&!(a18==1)))))&&(a23==1))&&(a20==1))&&(!(a0==1)&&((a9==7)&&(!(a27==1)&&((a5==4)&&((a3==1)&&(a21==12)))))))){ + a9 = 9; + a23 = 1; + a26 = 0; + a4 = 0; + a5 = 5; + a16 = 7; + a21 = 10; + return -1; + } else if((((a14==1)||((a1==13)&&(((a13==1)&&(!(a13==1)||((a28==1)&&(a9==9))))&&(a17==2))))&&(!(a7==1)&&(((!(a26==1)&&((a21==11)&&((a16==9)&&((a19==4)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3))))))&&(a13==1))&&!(a20==1))))){ + a19 = 1; + a9 = 8; + a21 = 10; + a20 = 1; + a16 = 7; + a3 = 0; + a8 = 1; + a15 = 0; + a1 = 12; + a5 = 4; + return 21; + } else if((((a17==2)&&((((!(a0==1)&&((input==3)&&(((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))))&&(a16==10))&&!(a26==1))&&(a21==11)))&&(((!(a12==1)||((a11==1)&&((a7==1)||((a6==1)&&((a2==1)&&(a19==2))))))&&!(a20==1))&&(a1==14)))){ + if((a23==1)){ + a19 = 1; + a1 = 12; + a16 = 9; + a9 = 9; + a5 = 5; + a12 = 0; + a8 = 1; + a0 = 1; + }else{ + a6 = 0; + a9 = 7; + a26 = 1; + a1 = 12; + a16 = 7; + a22 = 0; + a5 = 5; + } + return -1; + } else if(((!(a26==1)&&((a6==1)&&(((a1==12)&&(!(a27==1)&&((a19==1)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==5)))))&&(a21==11))))&&(((((((a11==1)&&(a11==1))&&!(a20==1))&&(a16==7))&&(a17==2))&&(a23==1))||(a7==1)))){ + a21 = 10; + a13 = 1; + a24 = 0; + a20 = 1; + a1 = 13; + a6 = 1; + a19 = 2; + a9 = 10; + a5 = 6; + return 25; + } else if((((a6==1)&&((((((a19==5)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a9==10)))&&(a2==1))&&(a1==13))&&(a20==1))&&!(a24==1)))&&((!(a12==1)||((a4==1)||(((a16==7)&&((a17==2)&&(a28==1)))||(a7==1))))&&(a21==10)))){ + a1 = 14; + a2 = 1; + a5 = 6; + a21 = 12; + a19 = 3; + a9 = 8; + a8 = 0; + a28 = 1; + return 22; + } else if(((((!(a3==1)||(((a11==1)&&(a9==10))||!(a23==1)))&&!(a24==1))&&(a19==4))&&(((a5==5)&&((a20==1)&&((((a17==2)&&(((a1==14)&&((a16==10)&&(input==3)))&&!(a14==1)))&&(a6==1))&&(a21==11))))&&!(a26==1)))){ + a5 = 4; + a16 = 7; + a12 = 1; + a13 = 1; + a27 = 0; + a19 = 1; + a9 = 7; + a1 = 12; + a21 = 10; + return -1; + } else if((((a11==1)&&((a23==1)&&(((!(a24==1)&&(((a6==1)&&(a21==11))&&!(a20==1)))&&(a17==2))||(a7==1))))&&(!(a8==1)&&((((a16==7)&&((a19==5)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&(a1==14))))&&!(a4==1))&&(a9==9))))){ + a16 = 10; + a21 = 10; + a5 = 5; + a8 = 0; + a9 = 10; + a28 = 1; + a24 = 0; + a20 = 1; + return 22; + } else if((((a21==10)&&(((!(a23==1)||((a12==1)&&!(a0==1)))||(a26==1))||(a27==1)))&&((((a16==11)&&((a1==14)&&((a17==2)&&(!(a7==1)&&(((input==5)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(a19==3))))))&&(a20==1))&&(a2==1)))){ + a9 = 7; + a2 = 1; + a6 = 1; + a5 = 4; + a16 = 7; + a19 = 1; + a1 = 12; + a23 = 1; + return -1; + } else if(((((!(a14==1)&&((!(a8==1)&&((((a19==4)&&((input==6)&&((a5==5)||(a5==6))))&&(a20==1))&&(a12==1)))&&(a16==8)))&&(a9==8))&&(a21==10))&&(((((a2==1)&&((a18==1)||(a13==1)))&&!(a26==1))&&(a1==13))&&(a17==2)))){ + a16 = 10; + a5 = 4; + a23 = 1; + a1 = 12; + a9 = 11; + a19 = 1; + a26 = 0; + return 25; + } else if((((a21==11)&&((a20==1)&&(!(a28==1)||((a2==1)||!(a6==1)))))&&((a6==1)&&((!(a14==1)&&((a12==1)&&(((a16==11)&&((a17==2)&&(((input==1)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5))))&&(a1==13))))&&(a13==1))))&&(a19==1))))){ + a16 = 10; + a21 = 10; + a5 = 4; + a2 = 1; + a9 = 7; + a1 = 14; + a13 = 1; + a7 = 0; + return 21; + } else if(((!(a26==1)&&((!(a7==1)&&(((a9==11)&&(((a5==6)&&(a13==1))&&(a3==1)))&&!(a7==1)))&&(a1==12)))&&(((((a16==8)&&((((a20==1)&&(input==3))&&!(a18==1))&&(a17==2)))&&!(a8==1))&&(a19==2))&&(a21==10)))){ + a4 = 0; + a5 = 4; + a16 = 7; + a19 = 1; + a9 = 7; + a12 = 1; + a7 = 0; + return -1; + } else if((((((((a1==13)&&((a23==1)&&(a17==2)))&&(a16==10))||(a18==1))||(a24==1))||!(a6==1))&&(((a11==1)&&((a6==1)&&(((a19==3)&&(!(a20==1)&&(((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5)))&&(input==4))))&&(a21==12))))&&!(a24==1)))){ + if((a3==1)){ + a5 = 4; + a20 = 1; + a21 = 10; + a19 = 1; + a16 = 7; + a9 = 8; + a29 = 1; + a8 = 1; + a1 = 14; + }else{ + a5 = 6; + a19 = 1; + a8 = 1; + a16 = 7; + a29 = 1; + a21 = 10; + a9 = 9; + a1 = 14; + a4 = 1; + a20 = 1; + } + return -1; + } else if((((a20==1)&&((a16==9)&&((a9==7)&&((a21==12)&&((((a7==1)||((a2==1)||!(a6==1)))&&(a13==1))&&!(a8==1))))))&&(((a12==1)&&((((((a5==4)||(a5==5))&&(input==3))&&!(a4==1))&&(a1==14))&&(a19==3)))&&(a17==2)))){ + a16 = 7; + a5 = 4; + a21 = 10; + a24 = 0; + a3 = 1; + a1 = 12; + a19 = 1; + return -1; + } else if((((a9==11)&&((a19==5)&&((a2==1)&&(!(a14==1)&&(((!(a20==1)&&((a21==11)&&(((a28==1)&&(((a5==5)||(a5==6))&&(input==1)))&&(a1==14))))&&(a17==2))&&(a6==1))))))&&((((a6==1)||!(a3==1))&&(a12==1))&&(a16==8)))){ + if((a3==1)){ + a20 = 1; + a19 = 1; + a16 = 11; + a15 = 1; + a3 = 0; + a9 = 9; + a5 = 6; + a27 = 1; + }else{ + a16 = 7; + a21 = 12; + a20 = 1; + a9 = 8; + a12 = 0; + a5 = 6; + a10 = 0; + a2 = 0; + a1 = 12; + } + return -1; + } else if((((!(a20==1)&&((((a1==12)&&((a24==1)||(a2==1)))&&(a17==2))&&(a9==8)))&&(a19==1))&&(!(a7==1)&&(((((((a21==11)&&((input==5)&&((a5==4)||(a5==5))))&&(a16==10))&&(a13==1))&&(a11==1))&&(a3==1))&&(a12==1))))){ + a5 = 6; + a21 = 10; + a1 = 13; + a16 = 9; + a12 = 0; + a15 = 0; + a18 = 1; + a20 = 1; + a9 = 11; + a19 = 3; + return 21; + } else if((((a13==1)&&(!(a26==1)&&(!(a8==1)&&(!(a26==1)&&(!(a27==1)&&((a20==1)&&((a21==12)&&((((((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4)))&&(input==3))&&(a1==13)))))))))&&(!(a6==1)||((a19==4)&&((a16==9)&&((a17==2)&&(a28==1))))))){ + a19 = 1; + a13 = 1; + a5 = 4; + a9 = 7; + a0 = 0; + a16 = 7; + a21 = 10; + a7 = 0; + a1 = 12; + return -1; + } else if(((((((a9==11)&&(((a6==1)&&((input==3)&&(a21==11)))&&!(a14==1)))&&(a23==1))&&(a19==2))&&(a1==14))&&((a5==6)&&(((((!(a26==1)&&((a20==1)&&(a6==1)))||!(a11==1))&&(a17==2))||(a18==1))&&(a16==10))))){ + a21 = 10; + a1 = 13; + a5 = 4; + a16 = 7; + a24 = 0; + a9 = 9; + a26 = 0; + return -1; + } else if((((!(a13==1)||(!(a11==1)||((a20==1)&&(a11==1))))&&(a21==12))&&(((a19==1)&&(((a1==14)&&((a17==2)&&(!(a14==1)&&(((!(a0==1)&&((input==3)&&(a5==4)))&&!(a4==1))&&!(a18==1)))))&&(a16==7)))&&(a9==9)))){ + a3 = 1; + a9 = 7; + a28 = 1; + a18 = 0; + a21 = 10; + a1 = 12; + return -1; + } else if(((!(a26==1)&&(((a28==1)&&((!(a18==1)&&(!(a24==1)&&(((input==5)&&(a20==1))&&(a9==11))))&&(a17==2)))&&(a19==1)))&&(((((a28==1)&&((a23==1)&&((a23==1)&&(a21==12))))&&(a16==9))&&(a1==12))&&(a5==4)))){ + a18 = 0; + a8 = 0; + a28 = 1; + a9 = 7; + a21 = 10; + a16 = 7; + return -1; + } else if(((((a5==5)&&((a9==9)&&(a3==1)))||!(a3==1))&&(!(a27==1)&&(((a23==1)&&((a3==1)&&((((a1==14)&&((a17==2)&&((((input==4)&&(a16==10))&&(a20==1))&&(a21==12))))&&(a19==1))&&(a13==1))))&&(a2==1))))){ + a16 = 7; + a5 = 4; + a13 = 1; + a7 = 0; + a1 = 12; + a21 = 10; + a9 = 7; + a12 = 1; + return -1; + } else if(((!(a13==1)||((!(a6==1)||(((a13==1)&&(a21==10))&&(a20==1)))&&(a17==2)))&&(((((((a16==7)&&((a28==1)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==6))))&&(a12==1))&&(a19==4))&&(a1==12))&&!(a18==1))&&!(a8==1)))){ + a9 = 8; + a18 = 0; + a11 = 1; + a4 = 0; + a5 = 6; + a21 = 11; + return 22; + } else if(((((a21==10)&&(!(a24==1)&&((input==1)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))))&&(a19==2))&&((a1==12)&&((!(a12==1)||(((((((a2==1)&&(a11==1))&&(a28==1))||!(a12==1))&&(a17==2))&&(a12==1))&&!(a20==1)))&&(a16==7))))){ + a19 = 1; + a23 = 1; + a20 = 1; + a5 = 4; + a2 = 1; + a9 = 7; + a4 = 0; + return -1; + } else if((((((!(a4==1)&&(((input==4)&&((a5==5)||(a5==6)))&&!(a0==1)))&&(a1==12))&&(a17==2))&&!(a8==1))&&((a21==12)&&(((((!(a20==1)&&(((a12==1)&&!(a7==1))||(a26==1)))&&(a16==9))&&(a9==10))||(a8==1))&&(a19==3))))){ + a1 = 14; + a23 = 0; + a21 = 10; + a13 = 0; + a19 = 1; + a9 = 11; + a12 = 0; + a5 = 6; + return 23; + } else if(((!(a24==1)&&(((((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))&&(input==4))&&(a28==1))&&(a19==5)))&&((a21==12)&&(!(a6==1)||((a17==2)&&((!(a6==1)||((a1==14)&&(((!(a20==1)&&(a13==1))&&(a16==10))&&!(a24==1))))||!(a2==1))))))){ + if((a16==11)){ + a8 = 1; + a9 = 10; + a1 = 13; + a21 = 11; + a16 = 9; + a2 = 0; + a0 = 1; + a20 = 1; + a5 = 5; + a19 = 3; + }else{ + a5 = 5; + a9 = 9; + a1 = 12; + a0 = 1; + a21 = 11; + a20 = 1; + a27 = 1; + a16 = 11; + a19 = 4; + } + return 21; + } else if((((a16==9)&&(((a5==5)&&((!(a14==1)&&((a21==11)&&(a3==1)))&&!(a24==1)))&&(a17==2)))&&(((a1==13)&&((a2==1)&&((a9==9)&&(!(a7==1)&&((((input==3)&&(a19==3))&&!(a4==1))&&(a13==1))))))&&!(a20==1)))){ + if((a12==1)){ + a29 = 1; + a21 = 12; + a1 = 12; + a5 = 6; + a16 = 7; + a9 = 8; + a18 = 1; + }else{ + a25 = 0; + a1 = 12; + a19 = 1; + a22 = 0; + a20 = 1; + a9 = 11; + a21 = 10; + a29 = 0; + a16 = 7; + } + return -1; + } else if((((a13==1)&&(((a13==1)&&((a11==1)&&((a16==10)&&(((a5==6)&&((input==6)&&(a1==14)))&&(a19==4)))))&&(a17==2)))&&(((a9==11)&&((!(a8==1)&&((!(a3==1)||(a12==1))||!(a12==1)))&&!(a20==1)))&&(a21==11)))){ + if((a19==1)){ + a16 = 9; + a14 = 1; + a21 = 12; + a5 = 5; + a15 = 0; + a19 = 5; + }else{ + a19 = 1; + a20 = 1; + a7 = 1; + a16 = 7; + a9 = 10; + a21 = 10; + a15 = 1; + a22 = 1; + } + return 22; + } else if(((((!(a11==1)||((a9==8)&&((a17==2)&&(!(a13==1)||(((a4==1)||((a16==9)&&((a11==1)&&!(a20==1))))||!(a13==1))))))&&(a21==11))&&(a3==1))&&((a1==12)&&(((a19==4)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3)))&&(a23==1))))){ + a11 = 0; + a24 = 1; + a3 = 0; + a20 = 1; + a19 = 3; + a5 = 5; + a9 = 11; + a16 = 7; + return 25; + } else if((((((!(a18==1)&&(((a23==1)&&!(a20==1))&&(a21==11)))&&(a17==2))&&(a19==4))&&(a9==7))&&(((a5==6)&&(((a3==1)&&(((a12==1)&&(((a16==9)&&(input==4))&&!(a4==1)))&&!(a26==1)))&&(a11==1)))&&(a1==14)))){ + a20 = 1; + a19 = 1; + a3 = 0; + a21 = 10; + a15 = 0; + a5 = 4; + a6 = 0; + a9 = 9; + a16 = 7; + return 21; + } else if((((a13==1)&&((!(a0==1)&&(((a21==11)&&((((input==3)&&(a5==5))&&(a9==8))&&!(a26==1)))&&(a17==2)))&&!(a24==1)))&&(!(a7==1)&&(((a1==14)&&(((!(a20==1)&&(a12==1))||(a27==1))&&(a16==8)))&&(a19==2))))){ + a3 = 1; + a2 = 1; + a16 = 10; + a19 = 3; + a26 = 0; + a20 = 1; + a21 = 10; + return 21; + } else if(((((a21==11)&&(((a9==11)&&(a13==1))&&(a19==4)))&&(a17==2))&&(((((a23==1)&&(((a16==11)&&(((!(a27==1)&&((input==4)&&(a5==4)))&&!(a8==1))&&(a13==1)))&&!(a0==1)))&&(a3==1))&&(a20==1))&&(a1==13)))){ + a16 = 7; + a23 = 1; + a1 = 12; + a6 = 1; + a21 = 10; + a19 = 1; + a9 = 7; + return -1; + } else if(((((((a1==14)&&(!(a20==1)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a19==2))&&!(a24==1))&&(a13==1))&&((a24==1)||((a17==2)&&((!(a12==1)||((a13==1)&&((a9==9)&&((a16==7)&&((a21==10)&&(a28==1))))))||!(a13==1)))))){ + a5 = 6; + a19 = 4; + a24 = 0; + a16 = 9; + a3 = 1; + a20 = 1; + a21 = 11; + return 21; + } else if((((a27==1)||(((!(a18==1)&&((a11==1)&&(a17==2)))&&!(a14==1))||!(a28==1)))&&((a20==1)&&(!(a14==1)&&((a21==11)&&(((a13==1)&&(((((((a1==14)&&(a5==5))&&(a9==11))&&(a19==4))||((((a1==14)&&(a5==6))&&(a9==11))&&(a19==4)))||(((a9==7)&&((a1==12)&&(a5==4)))&&(a19==5)))&&(input==3)))&&(a16==10))))))){ + a5 = 4; + a1 = 12; + a14 = 0; + a21 = 10; + a19 = 1; + a12 = 1; + a16 = 7; + a9 = 7; + a3 = 1; + return -1; + } else if(((((((((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))&&(input==4))&&(a17==2))&&(a21==10))&&!(a27==1))&&(!(a7==1)&&((((a0==1)||(((a16==8)&&((((a3==1)||(a27==1))&&(a19==4))&&!(a20==1)))&&(a1==12)))||(a14==1))||!(a13==1))))){ + a4 = 0; + a16 = 7; + a12 = 1; + a9 = 7; + a26 = 0; + a20 = 1; + a19 = 1; + a5 = 4; + return -1; + } else if((((a11==1)&&(((a16==9)&&(((!(a14==1)&&(((a19==3)&&((a1==14)&&(input==3)))&&(a5==5)))&&!(a8==1))&&!(a24==1)))&&(a17==2)))&&(((((a21==12)&&((a28==1)&&(a9==7)))&&!(a20==1))||(a7==1))||(a7==1)))){ + a14 = 1; + a25 = 0; + a1 = 13; + a16 = 7; + a11 = 0; + a19 = 1; + a21 = 11; + a9 = 8; + a5 = 4; + return -1; + } else if((((a9==7)&&((((a21==10)&&(((a23==1)||!(a2==1))||!(a12==1)))&&(a28==1))&&(a5==5)))&&((((a17==2)&&(((a1==14)&&(((a20==1)&&((input==5)&&(a19==5)))&&!(a7==1)))&&(a16==8)))&&(a23==1))&&!(a24==1)))){ + a1 = 12; + a8 = 0; + a19 = 1; + a16 = 7; + a5 = 4; + a4 = 0; + return -1; + } else if(((((((a13==1)&&(a19==4))||!(a2==1))&&!(a14==1))&&(a20==1))&&(((((a16==7)&&((a1==13)&&(!(a0==1)&&((!(a4==1)&&((a3==1)&&(((a5==4)||(a5==5))&&(input==4))))&&!(a24==1)))))&&(a9==8))&&(a21==12))&&(a17==2)))){ + a11 = 1; + a3 = 1; + a5 = 4; + a21 = 10; + a1 = 12; + a19 = 1; + a9 = 7; + a18 = 0; + return -1; + } else if((((a21==12)&&(((!(a0==1)&&(!(a4==1)&&(((((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))&&(input==3))&&(a16==8))&&(a28==1))&&(a13==1))))&&(a17==2))&&(a1==13)))&&(!(a11==1)||((a20==1)&&(((a28==1)&&(a23==1))&&(a19==1)))))){ + a13 = 1; + a16 = 7; + a1 = 12; + a28 = 1; + a9 = 7; + a21 = 10; + a5 = 4; + a8 = 0; + return -1; + } else if((((a13==1)&&(((a9==11)&&(((a20==1)&&(a12==1))&&(a17==2)))&&(a11==1)))&&(((a16==11)&&((!(a7==1)&&(((!(a18==1)&&(((a1==14)&&(input==1))&&!(a24==1)))&&(a19==3))&&(a11==1)))&&(a21==10)))&&(a5==5)))){ + a5 = 4; + a27 = 0; + a9 = 7; + a24 = 0; + a26 = 0; + a19 = 1; + a16 = 7; + a1 = 12; + return -1; + } else if(((((a16==7)&&((input==1)&&((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8)))))&&(a17==2))&&((a21==10)&&(!(a20==1)&&(((!(a2==1)&&((a1==12)&&((!(a3==1)&&(((a7==1)&&(a6==1))&&(a24==1)))&&(a19==3))))&&(a7==1))&&!(a6==1)))))){ + a19 = 2; + a6 = 0; + a5 = 6; + a20 = 1; + a9 = 11; + a8 = 1; + a26 = 1; + return 21; + } else if(((!(a8==1)&&(((a16==8)&&(!(a8==1)&&((a17==2)&&((a2==1)&&((a12==1)&&(((((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4)))&&(input==5)))))))&&!(a0==1)))&&((a19==4)&&((((a21==10)&&((a13==1)&&(a20==1)))&&(a1==12))||!(a11==1))))){ + a5 = 4; + a9 = 7; + a11 = 1; + a26 = 0; + a16 = 7; + a12 = 1; + a19 = 1; + return -1; + } else if(((!(a8==1)&&(((((a16==8)&&((a1==14)&&(!(a7==1)&&(((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))&&(input==4)))))&&(a21==11))&&(a20==1))&&(a19==3)))&&(((a17==2)&&(!(a3==1)||(!(a6==1)||((a3==1)&&!(a27==1)))))||!(a11==1)))){ + a19 = 1; + a5 = 4; + a27 = 0; + a11 = 1; + a9 = 8; + a16 = 10; + a6 = 1; + return 21; + } else if(((!(a0==1)&&(!(a20==1)&&(((a9==9)&&(((a6==1)||(a4==1))&&(a5==6)))&&(a17==2))))&&((((a12==1)&&(((a3==1)&&((a1==14)&&(((input==1)&&(a21==10))&&(a19==4))))&&(a16==8)))&&!(a26==1))&&!(a27==1)))){ + a9 = 7; + a1 = 12; + a4 = 0; + a21 = 12; + a11 = 1; + a19 = 1; + a20 = 1; + a7 = 0; + return 23; + } else if((((a5==6)&&((((a17==2)&&(((((a18==1)||(a6==1))||!(a13==1))&&!(a8==1))||!(a2==1)))&&(a16==9))&&(a9==9)))&&((a1==12)&&(((!(a27==1)&&(((a19==5)&&(input==1))&&(a20==1)))&&(a21==10))&&(a2==1))))){ + a9 = 7; + a16 = 7; + a4 = 0; + a5 = 4; + a12 = 1; + a2 = 1; + a19 = 1; + return -1; + } else if(((((a19==4)&&(!(a23==1)&&((input==1)&&(((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))))))&&(a20==1))&&((((a18==1)&&((a17==2)&&(((a16==7)&&((((a6==1)&&(a14==1))&&!(a13==1))&&(a21==10)))&&(a1==13))))&&!(a3==1))&&(a27==1)))){ + a29 = 1; + a22 = 1; + a5 = 4; + a7 = 1; + a9 = 8; + a19 = 1; + return 25; + } else if((((a20==1)&&((a16==10)&&((a17==2)&&(((a2==1)&&((input==1)&&((a5==5)||(a5==6))))&&!(a24==1)))))&&((a21==10)&&(!(a3==1)||(((a18==1)||((!(a13==1)||((a19==4)&&((a9==10)&&(a2==1))))&&(a1==14)))||(a26==1)))))){ + a1 = 12; + a5 = 6; + a18 = 0; + a14 = 0; + a16 = 9; + a19 = 2; + a21 = 11; + a26 = 0; + a9 = 7; + return 26; + } else if(((!(a24==1)&&((a1==13)&&(((input==4)&&(a16==9))&&(a6==1))))&&(((!(a2==1)||(((((a19==5)&&((a5==4)&&(((a3==1)&&(a9==8))&&!(a4==1))))&&(a21==12))&&(a17==2))&&(a20==1)))&&!(a7==1))&&!(a7==1)))){ + a1 = 12; + a23 = 1; + a6 = 1; + a16 = 7; + a21 = 10; + a19 = 1; + a26 = 0; + a9 = 7; + return -1; + } else if(((((a5==4)&&(!(a7==1)&&((!(a8==1)&&((input==6)&&(a21==11)))&&(a16==11))))&&(a17==2))&&((!(a6==1)||((!(a23==1)||((((a1==12)&&((a24==1)||(a2==1)))&&(a20==1))&&(a9==10)))&&(a19==2)))||(a24==1)))){ + a23 = 1; + a19 = 1; + a21 = 10; + a9 = 7; + a2 = 1; + a13 = 1; + a16 = 7; + return -1; + } else if(((((a19==3)&&((((a5==4)||(a5==5))&&(input==6))&&!(a7==1)))&&(a3==1))&&((a1==14)&&((a27==1)||(((((((a4==1)||(!(a20==1)&&(!(a6==1)||(a3==1))))&&!(a18==1))&&(a9==7))&&(a21==10))&&(a16==8))&&(a17==2)))))){ + a9 = 10; + a16 = 9; + a12 = 1; + a20 = 1; + a28 = 1; + a19 = 1; + a5 = 5; + a27 = 0; + return 21; + } else if(((((a28==1)&&((a11==1)&&((a12==1)&&((input==6)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))))))&&(a28==1))&&(((((a17==2)&&((a21==11)&&((a1==13)&&(!(a12==1)||(!(a20==1)&&(a23==1))))))&&!(a4==1))&&(a19==4))&&(a16==8)))){ + a1 = 14; + a9 = 10; + a18 = 0; + a20 = 1; + a13 = 1; + a19 = 2; + a5 = 6; + a8 = 0; + return 21; + } else if(((((((!(a11==1)||((a20==1)&&((a3==1)&&!(a27==1))))&&(a16==11))&&!(a14==1))&&(a1==14))&&(a19==1))&&(((a21==12)&&(((((input==3)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5))))&&!(a0==1))&&!(a8==1))&&!(a27==1)))&&(a17==2)))){ + a28 = 1; + a9 = 7; + a8 = 0; + a5 = 4; + a1 = 12; + a16 = 7; + a4 = 0; + a21 = 10; + return -1; + } else if((((a20==1)&&((a9==7)&&(((!(a6==1)||(!(a24==1)&&((a23==1)&&(a6==1))))&&(a17==2))&&(a21==10))))&&(((a1==12)&&((((!(a14==1)&&(((a5==4)||(a5==5))&&(input==5)))&&(a16==7))&&(a13==1))&&!(a0==1)))&&(a19==4)))){ + a28 = 1; + a21 = 11; + a8 = 0; + a19 = 3; + a5 = 5; + a26 = 0; + a9 = 10; + return 23; + } else if(((((a21==12)&&((a0==1)||(!(a28==1)||((a16==9)&&(((a19==4)&&(((a12==1)&&!(a20==1))&&(a28==1)))&&!(a4==1))))))||!(a28==1))&&(((((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==6))&&(a13==1))&&(a1==13))&&(a17==2)))){ + a1 = 12; + a15 = 0; + a5 = 4; + a22 = 1; + a9 = 9; + a16 = 7; + a21 = 10; + a19 = 1; + a6 = 0; + a20 = 1; + return -1; + } else if((((a1==13)&&((a17==2)&&((a5==4)&&((a19==5)&&((a20==1)&&((a9==7)&&((((a13==1)&&(a13==1))&&!(a27==1))&&(a21==10))))))))&&((a11==1)&&(((!(a4==1)&&((input==6)&&(a16==7)))&&!(a7==1))&&!(a0==1))))){ + a5 = 5; + a1 = 14; + a21 = 12; + a0 = 0; + a2 = 1; + a19 = 2; + a9 = 10; + a24 = 0; + return 23; + } else if((((a21==10)&&((((a5==4)&&((a1==12)&&((!(a11==1)||(a12==1))||(a8==1))))&&(a20==1))&&(a19==1)))&&((((a28==1)&&((a17==2)&&((((input==1)&&(a9==10))&&!(a7==1))&&(a11==1))))&&!(a18==1))&&(a16==11)))){ + a2 = 1; + a23 = 1; + a9 = 7; + a16 = 7; + a13 = 1; + return -1; + } else if(((((a6==1)&&((a16==9)&&(((a19==1)&&(((a5==5)||(a5==6))&&(input==1)))&&(a23==1))))&&(a21==10))&&(((a6==1)&&(((a1==12)&&(((((a28==1)&&!(a20==1))||!(a23==1))||!(a28==1))&&(a9==7)))||(a7==1)))&&(a17==2)))){ + if((a16==10)){ + a11 = 0; + a1 = 13; + a22 = 1; + a9 = 9; + a20 = 1; + a25 = 0; + a16 = 7; + a5 = 6; + }else{ + a19 = 5; + a16 = 8; + a2 = 0; + a1 = 14; + a29 = 0; + a9 = 10; + a5 = 6; + a26 = 1; + } + return 21; + } else if(((((a6==1)&&((((a16==9)&&((a9==10)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5))))&&(a20==1))&&(a17==2)))&&(a23==1))&&(!(a11==1)||((!(a18==1)&&(((a1==12)&&((a21==12)&&((a2==1)&&(a3==1))))&&(a19==4)))&&!(a18==1))))){ + a5 = 4; + a6 = 1; + a9 = 7; + a3 = 1; + a16 = 7; + a19 = 1; + a26 = 0; + a21 = 10; + return -1; + } else if((((a20==1)&&(((a1==14)&&(((a2==1)&&((a13==1)&&((((!(a14==1)&&((a6==1)&&((a11==1)&&((input==1)&&((a5==4)||(a5==5))))))&&(a9==7))&&(a17==2))&&(a19==3))))&&(a21==12)))&&(a16==11)))&&((a23==1)||(a14==1)))){ + a5 = 4; + a27 = 0; + a9 = 10; + a19 = 5; + a4 = 0; + a1 = 12; + a7 = 0; + return 25; + } else if(((((!(a4==1)&&((a6==1)&&(!(a4==1)&&(((a11==1)&&((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==1)))&&(a21==11)))))&&(a16==9))&&!(a20==1))&&((a19==2)&&((a1==14)&&((((a11==1)&&(a3==1))&&(a11==1))&&(a17==2)))))){ + a1 = 13; + a25 = 1; + a15 = 0; + a19 = 1; + a9 = 9; + a5 = 4; + a26 = 1; + a20 = 1; + a16 = 7; + a21 = 10; + return 21; + } else if(((((a9==9)&&(((a23==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4)))&&(a12==1)))&&(a20==1))&&(((a17==2)&&(!(a11==1)||(((((((a2==1)&&(a16==10))&&(a1==12))&&!(a7==1))||!(a12==1))&&(a19==4))&&(a21==11))))||(a26==1)))){ + a26 = 0; + a27 = 0; + a9 = 7; + a11 = 1; + a5 = 4; + a16 = 7; + a21 = 10; + a19 = 1; + return -1; + } else if(((!(a13==1)||(((a21==10)&&((a28==1)&&((a9==7)&&((a20==1)&&(a23==1)))))&&(a11==1)))&&((((a3==1)&&(((((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a1==12))&&!(a8==1))&&(a16==8))&&(a17==2)))&&(a19==4))&&(a23==1)))){ + a12 = 1; + a1 = 14; + a19 = 5; + a27 = 0; + a23 = 1; + a16 = 9; + a9 = 9; + a5 = 6; + a21 = 12; + return 22; + } else if((((!(a24==1)&&(((((a11==1)&&(a13==1))&&(a16==7))||(a14==1))&&(a5==4)))&&(a17==2))&&((!(a26==1)&&((((((a12==1)&&((input==1)&&(a21==10)))&&(a1==13))&&(a9==8))&&(a19==3))&&(a23==1)))&&(a20==1)))){ + a24 = 0; + a4 = 0; + a9 = 10; + a21 = 11; + a19 = 1; + a5 = 5; + a1 = 12; + a11 = 1; + return 25; + } else if((((!(a18==1)&&((a1==13)&&(((((((((a17==2)&&(input==5))&&(a13==1))&&(a21==12))&&!(a27==1))&&(a19==3))&&!(a26==1))&&(a11==1))&&(a5==4))))&&(a9==8))&&(!(a7==1)&&((a16==10)&&((a3==1)&&(a20==1)))))){ + a19 = 2; + a26 = 0; + a16 = 7; + a9 = 9; + a21 = 10; + a13 = 1; + return 25; + } else if((((((a6==1)&&((a9==7)&&((((a13==1)&&(a3==1))&&(a5==5))&&(a19==2))))||(a27==1))||(a7==1))&&(!(a20==1)&&((a23==1)&&((((a1==14)&&((a16==10)&&((a21==12)&&(input==1))))&&!(a24==1))&&(a17==2)))))){ + if((a6==1)){ + a5 = 6; + a19 = 4; + a1 = 12; + a2 = 0; + a21 = 11; + a9 = 11; + a16 = 9; + a25 = 1; + a22 = 1; + }else{ + a5 = 6; + a1 = 12; + a16 = 7; + a2 = 0; + a20 = 1; + a26 = 1; + a9 = 11; + a21 = 10; + a13 = 0; + } + return -1; + } else if((((((!(a8==1)&&(!(a14==1)&&(a23==1)))&&(a19==5))&&(a11==1))&&!(a20==1))&&((!(a4==1)&&((((a21==11)&&(((a17==2)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==3)))&&(a1==13)))&&(a16==7))&&!(a18==1)))&&(a23==1)))){ + a27 = 0; + a21 = 10; + a18 = 0; + a5 = 4; + a9 = 7; + a19 = 1; + a1 = 12; + a14 = 0; + a20 = 1; + return -1; + } else if((((((a1==14)&&((((a23==1)&&(a17==2))||!(a11==1))&&(a5==6)))&&(a9==11))||(a24==1))&&((a3==1)&&((!(a24==1)&&(!(a14==1)&&(((a19==2)&&((a20==1)&&((input==5)&&(a16==8))))&&(a21==12))))&&(a12==1))))){ + a7 = 0; + a11 = 1; + a6 = 1; + a16 = 10; + a1 = 12; + a9 = 8; + return 26; + } else if(((((a21==11)&&((input==3)&&(a9==11)))&&(a12==1))&&(!(a24==1)&&((((((a26==1)||((!(a2==1)||((a19==3)&&(((a23==1)&&(a3==1))&&!(a20==1))))&&(a16==10)))&&(a1==13))&&(a17==2))&&(a5==5))&&!(a14==1))))){ + if((a27==1)){ + a10 = 1; + a21 = 10; + a5 = 4; + a16 = 7; + a20 = 1; + a1 = 12; + a4 = 1; + a19 = 2; + }else{ + a5 = 4; + a21 = 12; + a9 = 10; + a23 = 0; + a1 = 14; + a12 = 0; + a16 = 8; + a19 = 4; + } + return -1; + } else if(((!(a0==1)&&((((a5==5)&&((a19==4)&&((a1==13)&&((a28==1)&&((input==5)&&(a9==10))))))&&(a17==2))&&(a28==1)))&&((a8==1)||(((a16==7)&&((a20==1)&&(((a21==10)&&(a11==1))&&!(a14==1))))&&!(a7==1))))){ + a6 = 1; + a26 = 0; + a5 = 6; + a27 = 0; + a21 = 11; + a19 = 5; + a1 = 12; + return 21; + } else if(((!(a0==1)&&((a4==1)||((a17==2)&&((a21==11)&&(a6==1)))))&&((!(a0==1)&&(!(a7==1)&&(((a20==1)&&((a23==1)&&(((((a19==1)&&((a9==11)&&((a5==6)&&(a1==14))))||(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==2)))||((a19==2)&&((a9==7)&&((a1==12)&&(a5==5)))))&&(input==3))))&&(a16==11))))&&(a2==1)))){ + a19 = 1; + a5 = 4; + a16 = 7; + a21 = 10; + a9 = 7; + a1 = 12; + a2 = 1; + a28 = 1; + a12 = 1; + return -1; + } else if(((!(a0==1)&&((a12==1)&&(!(a8==1)&&((a17==2)&&((((((a5==5)||(a5==6))&&(input==3))&&(a2==1))&&(a19==1))&&(a9==11))))))&&(!(a7==1)&&((((a21==11)&&(((a6==1)&&(a16==9))&&(a20==1)))&&(a1==14))&&(a23==1))))){ + a21 = 10; + a16 = 7; + a11 = 1; + a9 = 7; + a27 = 0; + a4 = 0; + a5 = 4; + a1 = 12; + return -1; + } else if(((((a5==4)&&((!(a20==1)&&((a16==8)&&((!(a0==1)&&((a17==2)&&(((a11==1)&&((a19==5)&&(input==5)))&&!(a18==1))))&&!(a14==1))))&&(a12==1)))&&(a21==12))&&((a1==12)&&(((a9==10)&&(a11==1))||(a27==1))))){ + if((a13==1)){ + a16 = 10; + a5 = 5; + a14 = 1; + a19 = 2; + a9 = 7; + a6 = 0; + a0 = 1; + a1 = 14; + }else{ + a20 = 1; + a21 = 10; + a15 = 0; + a9 = 9; + a6 = 0; + a27 = 1; + a16 = 7; + a19 = 1; + a1 = 13; + } + return -1; + } else if(((((a19==1)&&((((((a28==1)&&(a20==1))&&(a16==8))||(a24==1))||!(a23==1))||(a24==1)))&&(a1==14))&&((a17==2)&&((a21==10)&&(((((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==3))&&!(a8==1))&&(a11==1))&&!(a27==1)))))){ + a1 = 12; + a11 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + a23 = 1; + a13 = 1; + return -1; + } else if(((((a19==2)&&((!(a12==1)||(!(a27==1)&&(((a2==1)&&(a16==10))||!(a6==1))))&&(a5==4)))&&(a20==1))&&((a1==12)&&((a13==1)&&(!(a26==1)&&((((a21==12)&&((input==6)&&(a17==2)))&&(a9==9))&&(a3==1))))))){ + a7 = 0; + a21 = 10; + a23 = 1; + a16 = 7; + a1 = 13; + a3 = 1; + a5 = 5; + return 25; + } else if((((!(a4==1)&&(((a6==1)&&((((((((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5)))&&(input==6))&&!(a20==1))&&(a19==5))&&(a3==1))&&(a17==2))&&(a21==12)))&&!(a26==1)))&&(a1==14))&&((a16==10)&&((a26==1)||((a6==1)&&!(a7==1)))))){ + a0 = 1; + a4 = 1; + a16 = 7; + a22 = 0; + a20 = 1; + a1 = 12; + a9 = 8; + a21 = 10; + a19 = 1; + a5 = 4; + return -1; + } else if((((!(a18==1)&&(!(a4==1)&&((a21==10)&&((a17==2)&&(!(a27==1)&&(((a5==4)||(a5==5))&&(input==4)))))))&&!(a26==1))&&((a19==1)&&(!(a11==1)||(((((a1==12)&&((a9==10)&&(a6==1)))&&!(a20==1))&&(a16==10))&&(a13==1)))))){ + a9 = 11; + a16 = 7; + a24 = 1; + a5 = 6; + a25 = 0; + a0 = 1; + a20 = 1; + return -1; + } else if((((((!(a4==1)&&((!(a4==1)&&((input==5)&&(a17==2)))&&(a1==12)))&&(a12==1))&&!(a0==1))&&(a16==8))&&((a20==1)&&(((a9==10)&&(((((a23==1)&&(a13==1))&&!(a26==1))&&(a21==11))&&(a5==5)))&&(a19==2))))){ + a4 = 0; + a5 = 4; + a23 = 1; + a16 = 7; + a14 = 0; + a19 = 1; + a9 = 7; + a21 = 10; + return -1; + } else if((((!(a26==1)&&(((a17==2)&&(!(a20==1)&&((a12==1)&&(((input==5)&&(a19==4))&&(a1==13)))))&&(a28==1)))&&(a21==10))&&(((a13==1)&&(((a11==1)&&(((a2==1)&&(a16==8))&&(a5==6)))&&(a9==10)))&&(a2==1)))){ + a16 = 7; + a6 = 1; + a4 = 0; + a19 = 1; + a1 = 14; + a5 = 5; + a9 = 9; + return 25; + } else if((((a4==1)||((a5==5)&&((a3==1)&&((!(a11==1)||((a14==1)||(a2==1)))&&(a20==1)))))&&(((a16==10)&&((a9==9)&&((a1==13)&&((!(a26==1)&&(((input==1)&&(a21==10))&&(a19==4)))&&(a17==2)))))&&(a6==1)))){ + a11 = 1; + a1 = 12; + a7 = 0; + a5 = 6; + a16 = 11; + a28 = 1; + a19 = 1; + a21 = 11; + return 25; + } else if((((a16==8)&&((a20==1)&&((a24==1)&&(((a21==12)&&((a17==2)&&(!(a13==1)&&(((((a12==1)&&!(a13==1))&&(a7==1))&&(a1==13))&&(a9==9)))))&&!(a23==1)))))&&((!(a13==1)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6))))&&(a19==1)))){ + a20 = 0; + a2 = 0; + a21 = 10; + a19 = 4; + a5 = 4; + a11 = 0; + a16 = 7; + a1 = 14; + a9 = 10; + return 22; + } else if((((a19==4)&&((a17==2)&&((((a1==13)&&(!(a0==1)&&((!(a7==1)&&((input==3)&&((a5==5)||(a5==6))))&&!(a20==1))))&&!(a14==1))&&(a16==9))))&&(((a9==11)&&(!(a0==1)&&(((a23==1)&&!(a18==1))||!(a23==1))))&&(a21==10)))){ + if((a4==1)){ + a5 = 4; + a1 = 12; + a13 = 0; + a9 = 7; + a19 = 1; + a16 = 8; + a14 = 1; + a2 = 0; + }else{ + a5 = 5; + a16 = 7; + a19 = 1; + a10 = 0; + a6 = 0; + a9 = 10; + a20 = 1; + a28 = 0; + } + return 22; + } else if(((((a12==1)&&((a14==1)||(((a5==4)&&((a2==1)&&(a21==10)))&&(a19==2))))&&(a12==1))&&((((!(a24==1)&&((a16==10)&&(((a1==12)&&((a20==1)&&(input==6)))&&(a17==2))))&&(a28==1))&&(a9==8))&&(a6==1)))){ + a13 = 1; + a27 = 0; + a19 = 3; + a16 = 7; + a21 = 11; + a28 = 1; + a9 = 10; + return -1; + } else if(((((a16==8)&&(((a9==10)&&(!(a24==1)&&(!(a7==1)&&((input==1)&&(a20==1)))))&&(a1==13)))&&(a21==12))&&((((a5==6)&&((a3==1)&&(((a2==1)&&((a12==1)&&(a6==1)))||(a27==1))))&&(a17==2))&&(a19==2)))){ + a5 = 5; + a6 = 1; + a24 = 0; + a9 = 8; + a28 = 1; + a16 = 10; + a19 = 1; + return 25; + } else if(((((((a12==1)&&(a21==10))&&!(a18==1))||!(a28==1))&&(a11==1))&&((a16==10)&&((a3==1)&&((a23==1)&&(!(a20==1)&&(!(a14==1)&&((a17==2)&&((input==5)&&(((a19==2)&&((a9==7)&&((a1==12)&&(a5==5))))||(((a19==1)&&(((a1==14)&&(a5==6))&&(a9==11)))||((a19==2)&&((a9==7)&&((a5==4)&&(a1==12))))))))))))))){ + a5 = 4; + a23 = 0; + a18 = 1; + a9 = 11; + a1 = 13; + a16 = 9; + a19 = 1; + a12 = 0; + a21 = 12; + return -1; + } else if((((!(a3==1)||((((((a19==3)&&(((a9==10)&&(a12==1))&&!(a0==1)))&&(a21==11))||(a27==1))&&!(a8==1))||(a26==1)))&&(a20==1))&&((a6==1)&&(((a16==11)&&((a1==12)&&(((a5==5)||(a5==6))&&(input==1))))&&(a17==2))))){ + if((a13==1)){ + a18 = 0; + a2 = 1; + a6 = 1; + a20 = 0; + a16 = 7; + a19 = 1; + a5 = 5; + a9 = 8; + }else{ + a16 = 9; + a21 = 10; + a18 = 0; + a5 = 5; + a11 = 1; + a23 = 1; + a9 = 11; + } + return 25; + } else if((((((a13==1)&&((((a16==8)&&(((((a5==5)||(a5==6))&&(input==4))&&(a19==3))&&(a20==1)))&&(a17==2))&&(a2==1)))&&!(a4==1))&&(a13==1))&&((a23==1)&&(((a1==14)&&((a21==12)&&((a13==1)&&(a9==10))))||(a27==1))))){ + a1 = 12; + a16 = 7; + a21 = 10; + a5 = 4; + a19 = 1; + a11 = 1; + a23 = 1; + a13 = 1; + a9 = 7; + return -1; + } else if(((!(a20==1)&&((a17==2)&&((a1==12)&&((a21==11)&&(((((a24==1)&&((a19==3)&&(((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a2==1))))&&(a9==10))&&(a26==1))&&(a4==1))))))&&(((a16==7)&&((a11==1)&&(a26==1)))&&!(a6==1)))){ + a22 = 1; + a21 = 10; + a9 = 9; + a19 = 2; + a4 = 1; + a29 = 1; + a5 = 5; + a20 = 1; + return -1; + } else if((((((a9==7)&&((((a1==12)&&((input==4)&&((a5==5)||(a5==6))))&&(a12==1))&&(a2==1)))&&(a21==11))&&(a16==9))&&(((a20==1)&&(((a17==2)&&(!(a13==1)||((a19==4)&&(!(a7==1)&&(a2==1)))))||(a27==1)))||!(a3==1)))){ + a7 = 0; + a16 = 7; + a5 = 4; + a19 = 1; + a21 = 10; + a2 = 1; + a11 = 1; + return -1; + } else if((((a11==1)&&(((a20==1)&&(!(a27==1)&&((a17==2)&&((a14==1)||(((a7==1)||((a21==12)&&(a3==1)))&&(a13==1))))))&&!(a4==1)))&&(((input==4)&&(((a19==1)&&(((a1==14)&&(a5==6))&&(a9==11)))||((a19==2)&&((a9==7)&&((a5==4)&&(a1==12))))))&&(a16==9)))){ + a11 = 1; + a19 = 1; + a5 = 4; + a16 = 7; + a1 = 12; + a0 = 0; + a9 = 7; + a6 = 1; + a21 = 10; + return -1; + } else if(((!(a24==1)&&((a17==2)&&((a12==1)&&(((a5==5)||(a5==6))&&(input==4)))))&&((a1==12)&&((((a21==11)&&(((a19==4)&&((!(a12==1)||((a14==1)||((a16==9)&&(a23==1))))&&!(a7==1)))||(a27==1)))&&(a20==1))&&(a9==9))))){ + a21 = 10; + a16 = 7; + a5 = 4; + a8 = 0; + a28 = 1; + a19 = 1; + a26 = 0; + a9 = 7; + return -1; + } else if((((a19==1)&&((((a23==1)&&(((a21==10)&&(input==1))&&(a17==2)))&&(a16==9))&&(a3==1)))&&(!(a20==1)&&((a9==10)&&((a1==12)&&(((a12==1)&&(((!(a18==1)&&(a12==1))&&(a11==1))||(a14==1)))&&(a5==4))))))){ + a20 = 1; + a22 = 0; + a16 = 7; + a27 = 1; + a7 = 1; + a1 = 14; + a9 = 9; + return -1; + } else if(((!(a20==1)&&((a9==7)&&((a11==1)&&((a21==11)&&(!(a0==1)&&(((((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a1==13))&&(a19==5))&&(a13==1)))))))&&((((((a11==1)||!(a28==1))&&!(a4==1))&&(a12==1))&&(a17==2))&&(a16==9)))){ + a20 = 1; + a1 = 12; + a19 = 4; + a5 = 5; + a10 = 1; + a16 = 10; + a22 = 0; + a0 = 1; + return -1; + } else if((((a11==1)&&(!(a8==1)&&((a12==1)&&(((input==1)&&(((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))))&&(a1==12)))))&&(((a16==9)&&((a20==1)&&(((a6==1)&&(((!(a28==1)||(a12==1))&&(a17==2))&&(a19==5)))&&(a21==11))))&&(a11==1)))){ + a1 = 14; + a21 = 10; + a5 = 6; + a11 = 1; + a19 = 2; + a12 = 1; + a16 = 10; + a6 = 1; + a9 = 8; + return 21; + } else if(((((((((a26==1)||((a1==13)&&(a6==1)))||!(a13==1))&&(a20==1))||!(a12==1))&&(a21==10))&&(a3==1))&&((a17==2)&&((a6==1)&&((a16==9)&&(((a12==1)&&((a19==5)&&((input==1)&&((a5==4)||(a5==5)))))&&(a9==10))))))){ + a14 = 0; + a16 = 7; + a19 = 1; + a5 = 4; + a1 = 12; + a8 = 0; + a27 = 0; + a9 = 7; + return -1; + } else if((((a23==1)&&(!(a18==1)&&((a11==1)&&!(a20==1))))&&((!(a14==1)&&((((((a19==1)&&((((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==5))&&(a1==14))&&(a16==9)))&&(a17==2))&&(a21==12))&&(a2==1))&&(a13==1)))&&(a13==1)))){ + if((a20==1)){ + a7 = 1; + a4 = 1; + a16 = 11; + a19 = 5; + a21 = 10; + a20 = 1; + a1 = 13; + a9 = 8; + a6 = 0; + a5 = 5; + }else{ + a20 = 1; + a23 = 0; + a5 = 4; + a13 = 0; + a19 = 5; + a1 = 12; + a16 = 11; + a21 = 10; + a9 = 7; + a22 = 1; + } + return -1; + } else if((((a1==12)&&((a19==4)&&(!(a8==1)&&(((a21==12)&&(a3==1))&&(a20==1)))))&&((a23==1)&&(((a11==1)&&(((((a3==1)&&(((a5==6)&&(input==6))&&(a16==7)))&&!(a8==1))&&(a9==9))&&(a17==2)))&&(a6==1))))){ + a24 = 0; + a21 = 11; + a19 = 1; + a16 = 9; + a12 = 1; + a1 = 14; + a18 = 0; + return 23; + } else if((((a23==1)&&(((((((((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a12==1))&&(a17==2))&&(a9==8))&&(a12==1))&&(a1==12))&&(a19==2))&&!(a8==1))&&(a21==12)))&&((a16==10)&&(((!(a27==1)&&(a6==1))&&!(a20==1))&&!(a7==1))))){ + a20 = 1; + a16 = 7; + a11 = 0; + a19 = 1; + a9 = 11; + a25 = 1; + a21 = 10; + a13 = 0; + a5 = 6; + a1 = 14; + return -1; + } else if(((((a3==1)&&(!(a8==1)&&((((input==4)&&((a5==5)||(a5==6)))&&(a20==1))&&!(a24==1))))&&(a9==9))&&((a19==2)&&((a16==9)&&(((a26==1)||((a17==2)&&(((a21==10)&&((a6==1)||(a26==1)))||!(a6==1))))&&(a1==12)))))){ + a8 = 0; + a5 = 4; + a6 = 1; + a19 = 1; + a0 = 0; + a16 = 7; + a9 = 7; + return -1; + } else if(((((a21==11)&&((!(a14==1)&&((!(a26==1)&&((a9==8)&&((input==3)&&(a1==13))))&&(a28==1)))&&(a19==5)))&&(a16==11))&&((((a5==6)&&(!(a3==1)||(!(a3==1)||((a12==1)||!(a11==1)))))&&(a17==2))&&(a20==1)))){ + a21 = 10; + a16 = 7; + a19 = 1; + a5 = 4; + a23 = 1; + a11 = 1; + a27 = 0; + a1 = 12; + a9 = 7; + return -1; + } else if((((((!(a12==1)||((a28==1)&&((a11==1)&&(a19==2))))&&(a17==2))&&(a21==11))||(a4==1))&&(((((a5==5)&&((a16==7)&&((a20==1)&&((a9==7)&&((a1==12)&&(input==6))))))&&!(a8==1))&&!(a0==1))&&!(a4==1)))){ + a9 = 8; + a5 = 6; + a24 = 0; + a16 = 8; + a14 = 0; + a1 = 13; + a21 = 10; + a12 = 1; + return 22; + } else if((((((a27==1)||(!(a24==1)&&((a17==2)&&((a1==13)&&((a2==1)&&(a19==2))))))&&!(a8==1))&&!(a7==1))&&((a20==1)&&(((a9==11)&&(!(a18==1)&&(!(a24==1)&&(((input==3)&&((a5==4)||(a5==5)))&&(a21==11)))))&&(a16==11))))){ + a5 = 4; + a3 = 1; + a9 = 7; + a19 = 1; + a0 = 0; + a14 = 0; + a16 = 7; + a21 = 10; + a1 = 12; + return -1; + } else if((((a1==13)&&((a21==12)&&(((a17==2)&&(!(a27==1)&&((a2==1)&&(a23==1))))&&!(a18==1))))&&((a5==4)&&(((a9==9)&&((!(a26==1)&&(!(a24==1)&&((a20==1)&&((input==4)&&(a19==3)))))&&(a12==1)))&&(a16==9))))){ + a21 = 10; + a23 = 1; + a27 = 0; + a18 = 0; + a16 = 7; + a1 = 12; + a9 = 7; + a19 = 1; + return -1; + } else if(((((((a21==12)&&(((a17==2)&&(((input==4)&&((a5==5)||(a5==6)))&&(a19==2)))&&(a16==8)))&&!(a26==1))&&!(a7==1))&&!(a7==1))&&(!(a12==1)||((a11==1)&&((((a9==8)&&((a1==13)&&(a23==1)))||(a18==1))&&(a20==1)))))){ + a26 = 0; + a9 = 7; + a24 = 0; + a5 = 4; + a21 = 10; + a16 = 7; + a23 = 1; + a19 = 1; + a1 = 12; + return -1; + } else if(((((a17==2)&&(((a16==10)&&((a3==1)&&(((a3==1)&&(!(a20==1)&&((a21==11)&&(input==3))))&&(a9==7))))&&(a5==5)))&&(a12==1))&&((a2==1)&&((!(a11==1)||(((a3==1)&&!(a8==1))&&(a1==12)))&&(a19==3))))){ + a5 = 6; + a15 = 1; + a11 = 0; + a16 = 8; + a18 = 1; + a19 = 5; + a20 = 1; + a21 = 10; + return -1; + } else if((((!(a18==1)&&((a21==11)&&(((a6==1)&&((input==6)&&((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9)))))&&(a12==1))))&&(a19==2))&&(((a24==1)||(!(a18==1)&&(((a12==1)&&(((a1==12)&&(a6==1))&&!(a20==1)))&&(a16==10))))&&(a17==2)))){ + a5 = 5; + a16 = 9; + a21 = 12; + a8 = 1; + a25 = 0; + a22 = 0; + a9 = 7; + return 26; + } else if(((!(a8==1)&&((((input==1)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(a21==11))&&!(a18==1)))&&((((((a7==1)||(((((a11==1)&&(a16==10))&&(a17==2))&&(a19==3))||(a14==1)))||(a26==1))||(a14==1))&&(a1==13))&&(a20==1)))){ + a1 = 12; + a19 = 1; + a9 = 7; + a21 = 10; + a5 = 4; + a6 = 1; + a2 = 1; + a26 = 0; + a16 = 7; + return -1; + } else if((((!(a27==1)&&(!(a14==1)&&((a16==10)&&(!(a27==1)&&((a19==1)&&((a1==14)&&(!(a18==1)&&((input==1)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))))))))&&(a28==1))&&(((a28==1)&&((a21==10)&&((a13==1)&&!(a20==1))))&&(a17==2)))){ + a10 = 0; + a9 = 9; + a1 = 13; + a21 = 11; + a19 = 5; + a15 = 1; + a12 = 0; + a5 = 4; + return -1; + } else if((((a4==1)||((a9==9)&&((a21==11)&&(((a28==1)&&(a6==1))&&(a2==1)))))&&(((a6==1)&&(!(a0==1)&&(((a1==14)&&(((((input==4)&&(a5==5))&&(a17==2))&&(a20==1))&&(a19==2)))&&(a16==7))))&&!(a7==1)))){ + a5 = 4; + a23 = 1; + a9 = 7; + a11 = 1; + a19 = 1; + a1 = 12; + a21 = 10; + a13 = 1; + return -1; + } else if(((!(a7==1)&&((a4==1)||((((a23==1)&&(a3==1))&&(a20==1))&&(a6==1))))&&((a19==1)&&((a1==14)&&((a17==2)&&(!(a7==1)&&((a16==7)&&((a2==1)&&(((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==5))&&(a21==12)))))))))){ + a16 = 8; + a21 = 10; + a5 = 6; + a9 = 10; + a28 = 1; + a6 = 1; + a20 = 0; + a19 = 3; + a23 = 1; + a1 = 13; + return 26; + } else if(((((a16==10)&&(((a23==1)&&((!(a7==1)&&(((a5==4)||(a5==5))&&(input==3)))&&(a12==1)))&&(a9==10)))&&(a17==2))&&((a20==1)&&((a19==1)&&((((a1==12)&&((a27==1)||((a23==1)&&(a13==1))))||(a7==1))&&(a21==11)))))){ + a4 = 0; + a5 = 4; + a9 = 7; + a12 = 1; + a21 = 10; + a16 = 7; + a23 = 1; + return -1; + } else if((((a19==2)&&((a17==2)&&((a21==10)&&((a16==10)&&(a6==1)))))&&((!(a7==1)&&(((a3==1)&&((((a20==1)&&(((a1==14)&&(((a5==5)||(a5==6))&&(input==4)))&&(a2==1)))&&(a3==1))&&(a9==9)))&&(a13==1)))&&!(a14==1)))){ + a5 = 4; + a11 = 1; + a16 = 7; + a19 = 1; + a9 = 7; + a1 = 12; + a2 = 1; + a6 = 1; + return -1; + } else if((((a9==9)&&((a13==1)&&(((((a5==4)||(a5==5))&&(input==6))&&(a16==10))&&!(a8==1))))&&(!(a20==1)&&((a17==2)&&((a27==1)||((!(a4==1)&&(((((a13==1)&&(a21==11))&&(a1==14))&&(a19==3))&&!(a4==1)))&&!(a0==1))))))){ + if((a0==1)){ + a1 = 12; + a8 = 1; + a7 = 1; + a16 = 7; + a5 = 6; + a19 = 1; + a20 = 1; + a21 = 10; + a9 = 7; + a29 = 0; + }else{ + a22 = 1; + a19 = 2; + a5 = 4; + a3 = 0; + a1 = 12; + a27 = 1; + a16 = 8; + } + return -1; + } else if(((((!(a7==1)&&((((a20==1)&&((a16==8)&&((a9==11)&&(input==4))))&&(a5==4))&&(a2==1)))&&!(a7==1))&&!(a7==1))&&(!(a14==1)&&((((a17==2)&&((a19==4)&&(!(a28==1)||(a23==1))))&&(a1==13))&&(a21==11))))){ + a1 = 12; + a14 = 0; + a2 = 1; + a23 = 1; + a19 = 1; + a9 = 7; + a16 = 7; + a21 = 10; + return -1; + } else if((((a21==11)&&(((((a19==1)&&(((a28==1)&&((a13==1)&&(((a5==5)||(a5==6))&&(input==3))))&&(a6==1)))&&(a17==2))&&(a16==8))&&(a1==14)))&&(((!(a23==1)||(((a28==1)&&!(a27==1))&&(a9==10)))&&!(a24==1))&&(a20==1)))){ + a1 = 12; + a0 = 0; + a5 = 4; + a16 = 7; + a21 = 10; + a23 = 1; + a9 = 7; + a12 = 1; + return -1; + } else if(((((a19==3)&&((a20==1)&&(!(a26==1)&&((a21==10)&&((a1==13)&&((((a5==5)||(a5==6))&&(input==4))&&!(a0==1)))))))&&!(a18==1))&&((((!(a7==1)&&(((a9==10)&&(a12==1))&&(a17==2)))&&(a11==1))&&(a16==8))||(a0==1)))){ + a28 = 1; + a16 = 7; + a1 = 12; + a7 = 0; + a9 = 7; + a19 = 1; + a6 = 1; + a5 = 4; + return -1; + } else if((((a21==10)&&(((((a9==8)&&(!(a14==1)&&((!(a27==1)&&((input==4)&&((a5==4)||(a5==5))))&&(a28==1))))&&(a17==2))&&(a19==1))&&(a16==9)))&&((!(a20==1)&&(!(a4==1)&&((a12==1)&&(!(a14==1)&&(a13==1)))))&&(a1==12)))){ + if((a3==1)){ + a12 = 0; + a13 = 0; + a19 = 2; + a16 = 8; + a4 = 1; + a9 = 9; + a21 = 11; + a5 = 6; + }else{ + a20 = 1; + a3 = 0; + a22 = 0; + a15 = 1; + a19 = 5; + a5 = 5; + a21 = 12; + a1 = 14; + a9 = 10; + } + return -1; + } else if((((a20==1)&&((a9==10)&&((a21==10)&&((a19==4)&&((!(a0==1)&&(!(a24==1)&&((a1==14)&&(((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&!(a24==1)))))&&(a17==2))))))&&(((((a13==1)||!(a2==1))&&(a23==1))&&(a28==1))&&(a16==11)))){ + a7 = 0; + a0 = 0; + a16 = 7; + a18 = 0; + a5 = 4; + a19 = 1; + a9 = 7; + a1 = 12; + return -1; + } else if((((a16==11)&&(((!(a24==1)&&(((((a5==4)||(a5==5))&&(input==6))&&!(a18==1))&&!(a7==1)))&&(a2==1))&&!(a14==1)))&&((a17==2)&&(((a21==12)&&((a23==1)&&((a1==12)&&(((a9==9)&&(a2==1))&&(a19==1)))))&&(a20==1))))){ + a21 = 10; + a26 = 0; + a9 = 7; + a16 = 7; + a0 = 0; + a5 = 4; + a11 = 1; + return -1; + } else if((((((a21==10)&&(((a6==1)&&((a6==1)&&((a17==2)&&(((input==1)&&(a16==7))&&(a9==8)))))&&!(a26==1)))&&!(a24==1))&&(a5==4))&&((a19==4)&&((!(a27==1)&&((!(a0==1)&&(a3==1))&&!(a20==1)))&&(a1==14))))){ + a16 = 10; + a5 = 5; + a28 = 1; + a21 = 11; + a20 = 1; + a27 = 0; + a13 = 1; + a1 = 12; + return 21; + } else if(((((a21==10)&&((a13==1)&&((a17==2)&&((a12==1)&&(((a1==13)&&((input==4)&&(a19==2)))&&(a3==1))))))&&(a9==10))&&(!(a3==1)||(((a5==4)&&((a16==9)&&((a20==1)&&(!(a27==1)&&(a6==1)))))&&!(a27==1))))){ + a16 = 7; + a4 = 0; + a0 = 0; + a9 = 7; + a1 = 12; + a18 = 0; + a19 = 1; + return -1; + } else if((((((!(a26==1)&&(!(a11==1)||((a6==1)&&((a19==3)&&((a16==9)&&(a11==1))))))&&(a21==10))&&(a17==2))&&(a5==5))&&(!(a20==1)&&((a9==7)&&(((((input==1)&&(a1==14))&&(a2==1))&&!(a27==1))&&(a6==1)))))){ + a1 = 12; + a6 = 0; + a16 = 8; + a25 = 1; + a23 = 0; + a21 = 12; + a19 = 1; + a20 = 1; + a9 = 11; + return -1; + } else if(((((!(a26==1)&&((!(a13==1)||(a23==1))&&(a16==11)))&&(a1==12))&&(a17==2))&&(!(a24==1)&&((!(a14==1)&&((a9==7)&&(((a12==1)&&((a20==1)&&((a21==10)&&((input==4)&&((a5==5)||(a5==6))))))&&(a19==5))))&&!(a7==1))))){ + a1 = 13; + a13 = 1; + a5 = 6; + a12 = 1; + a19 = 4; + a9 = 11; + a14 = 0; + a21 = 11; + return 26; + } else if((((((a17==2)&&(((a21==12)&&((a20==1)&&((a6==1)&&(a11==1))))&&!(a27==1)))&&(a1==14))&&(a3==1))&&(!(a4==1)&&(((a5==6)&&((a3==1)&&((a13==1)&&(((a16==9)&&(input==3))&&(a9==8)))))&&(a19==5))))){ + a5 = 4; + a19 = 1; + a16 = 7; + a1 = 12; + a0 = 0; + a18 = 0; + a21 = 10; + a3 = 1; + a9 = 7; + return -1; + } else if((((((a1==13)&&((((!(a24==1)&&(!(a7==1)&&(a13==1)))||!(a28==1))||(a14==1))&&(a20==1)))&&(a21==12))&&(a9==10))&&((a17==2)&&((((a19==4)&&(!(a27==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3))))&&(a3==1))&&(a16==10))))){ + a14 = 0; + a24 = 0; + a2 = 1; + a5 = 4; + a19 = 2; + a16 = 7; + a9 = 9; + a21 = 10; + return -1; + } else if((((((a19==2)&&(!(a26==1)&&((((input==1)&&(a1==12))&&(a16==9))&&!(a4==1))))&&(a21==10))&&(a13==1))&&(!(a20==1)&&(((a5==4)&&(!(a28==1)||(((a9==8)&&((a3==1)&&(a3==1)))&&(a17==2))))||(a26==1))))){ + if((a13==1)){ + a16 = 7; + a9 = 7; + a20 = 1; + a1 = 13; + a7 = 1; + a12 = 0; + a8 = 1; + }else{ + a20 = 1; + a9 = 10; + a24 = 1; + a5 = 6; + a26 = 1; + a16 = 7; + a19 = 1; + a4 = 1; + } + return -1; + } else if(((((!(a0==1)&&((((((input==3)&&((a5==5)||(a5==6)))&&(a9==7))&&(a17==2))&&(a6==1))&&!(a14==1)))&&(a6==1))&&(a19==5))&&(((!(a20==1)&&((((a16==9)&&(a13==1))||!(a2==1))&&!(a27==1)))&&(a21==11))&&(a1==12)))){ + a19 = 3; + a20 = 1; + a15 = 0; + a5 = 5; + a21 = 10; + a16 = 10; + a6 = 0; + a10 = 1; + a1 = 13; + a9 = 8; + return -1; + } else if((((a18==1)||(((a16==11)&&(a3==1))&&(a20==1)))&&((a28==1)&&(((a21==11)&&(((a2==1)&&((((input==4)&&(((((a5==5)&&(a1==12))&&(a9==7))&&(a19==5))||(((((a5==6)&&(a1==14))&&(a9==11))&&(a19==4))||((a19==5)&&(((a5==4)&&(a1==12))&&(a9==7))))))&&!(a27==1))&&!(a26==1)))&&(a17==2)))&&!(a7==1))))){ + a21 = 10; + a28 = 1; + a1 = 12; + a19 = 1; + a16 = 7; + a5 = 4; + a9 = 7; + a11 = 1; + return -1; + } else if((((!(a20==1)&&(((((a21==12)&&((a3==1)&&((a23==1)&&(a19==4))))&&!(a14==1))&&(a1==13))&&(a6==1)))&&!(a7==1))&&(!(a24==1)&&((((a16==9)&&((input==1)&&(((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9))))))&&!(a18==1))&&(a17==2))))){ + a5 = 5; + a21 = 10; + a1 = 12; + a28 = 0; + a3 = 0; + a15 = 1; + a16 = 7; + a9 = 10; + a19 = 2; + a20 = 1; + return -1; + } else if(((((a17==2)&&((a20==1)&&(((a19==1)&&((a2==1)&&(((a6==1)&&(((a21==10)&&(input==3))&&!(a27==1)))&&(a2==1))))&&(a5==4))))&&(a1==12))&&((a16==11)&&(((a27==1)||((a13==1)&&(a3==1)))&&(a9==8))))){ + a0 = 0; + a16 = 7; + a2 = 1; + a18 = 0; + a9 = 7; + return -1; + } else if((((a16==11)&&((a17==2)&&((((a23==1)&&(((a5==4)||(a5==5))&&(input==5)))&&(a21==10))&&!(a26==1))))&&(((a1==12)&&((((a19==5)&&(((!(a12==1)||(a12==1))||(a24==1))||(a7==1)))&&!(a24==1))&&(a20==1)))&&(a9==11)))){ + a7 = 0; + a5 = 4; + a9 = 7; + a19 = 1; + a16 = 7; + a12 = 1; + a14 = 0; + return -1; + } else if((((a21==12)&&((((a17==2)&&((a2==1)&&((input==5)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))))&&!(a27==1))&&(a20==1)))&&(((a16==7)&&((a19==3)&&(!(a11==1)||((!(a27==1)&&((a11==1)||!(a2==1)))&&!(a27==1)))))&&(a1==13)))){ + a1 = 12; + a9 = 7; + a6 = 1; + a21 = 10; + a5 = 4; + a7 = 0; + a19 = 1; + return -1; + } else if(((((a18==1)&&(((((!(a2==1)&&(a3==1))&&(a9==11))&&(a1==14))&&!(a20==1))&&(a17==2)))&&(a16==7))&&((((((a21==12)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&!(a6==1)))&&(a19==2))&&(a26==1))&&!(a2==1))&&!(a12==1)))){ + a5 = 4; + a20 = 1; + a16 = 9; + a21 = 10; + a9 = 10; + a3 = 0; + a19 = 5; + a29 = 1; + return -1; + } else if((((((a1==12)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a3==1))&&(a19==3)))&&!(a18==1))&&(a17==2))&&((((!(a26==1)&&((((a9==9)&&((a28==1)&&(a16==8)))&&(a12==1))||(a18==1)))&&!(a24==1))&&(a20==1))&&(a21==11)))){ + a5 = 4; + a12 = 1; + a9 = 7; + a16 = 7; + a19 = 1; + a11 = 1; + a21 = 10; + a28 = 1; + return -1; + } else if(((((((!(a23==1)||(a3==1))||(a8==1))&&(a16==8))&&(a19==2))&&(a1==12))&&(((a21==11)&&((a13==1)&&((!(a20==1)&&((((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==1))&&(a11==1))&&!(a8==1)))&&(a23==1))))&&(a17==2)))){ + a19 = 1; + a23 = 1; + a5 = 4; + a20 = 1; + a21 = 10; + a9 = 7; + a16 = 7; + a13 = 1; + a7 = 0; + return -1; + } else if(((!(a13==1)||((((a16==9)&&((a1==12)&&((a5==6)&&((a9==7)&&((a28==1)&&(a21==12))))))&&!(a20==1))||(a8==1)))&&((a3==1)&&(((a19==1)&&((!(a24==1)&&((a17==2)&&(input==3)))&&!(a24==1)))&&(a28==1))))){ + if((a15==1)){ + a9 = 11; + a15 = 1; + a1 = 14; + a20 = 1; + a16 = 7; + a11 = 0; + a21 = 10; + a2 = 0; + }else{ + a20 = 1; + a5 = 4; + a28 = 0; + a9 = 9; + a29 = 1; + a1 = 13; + a19 = 5; + a21 = 10; + a16 = 8; + } + return 26; + } else if(((((!(a13==1)||((a0==1)||((a9==11)&&((a13==1)&&(a16==11)))))&&(a21==12))||!(a12==1))&&(!(a14==1)&&((a28==1)&&((!(a7==1)&&(((((input==5)&&((a5==4)||(a5==5)))&&(a17==2))&&(a1==12))&&(a20==1)))&&(a19==3)))))){ + a1 = 13; + a5 = 4; + a9 = 9; + a20 = 0; + a26 = 0; + a19 = 5; + a21 = 11; + a14 = 0; + a16 = 7; + a13 = 1; + return 21; + } else if((((a9==8)&&(((a16==8)&&(((a12==1)&&(a23==1))&&(a23==1)))&&(a17==2)))&&((((a1==14)&&((a21==11)&&((a28==1)&&(((((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a8==1))&&(a19==3))&&(a20==1)))))&&(a12==1))&&!(a24==1)))){ + a19 = 1; + a8 = 0; + a5 = 4; + a13 = 1; + a16 = 7; + a9 = 7; + a1 = 12; + a21 = 10; + a2 = 1; + return -1; + } else if((((((input==6)&&(a21==11))&&!(a14==1))&&(a20==1))&&(((a18==1)||(((a17==2)&&(((a9==8)&&(!(a6==1)||((a16==10)&&(((a19==2)&&((a11==1)&&(a23==1)))&&(a5==6)))))&&(a1==14)))&&!(a18==1)))||(a4==1)))){ + a1 = 13; + a3 = 1; + a5 = 4; + a13 = 1; + a21 = 10; + a6 = 1; + a16 = 7; + a9 = 9; + return 25; + } else if((((a16==10)&&((!(a26==1)&&((!(a20==1)&&((a7==1)||((((!(a4==1)&&(a6==1))||(a4==1))&&(a2==1))&&(a21==12))))&&(a19==1)))&&(a1==12)))&&((a17==2)&&((!(a26==1)&&((a5==4)&&(input==4)))&&(a9==9))))){ + if((a1==14)){ + a9 = 8; + a21 = 10; + a24 = 1; + a20 = 1; + a19 = 2; + a15 = 0; + a2 = 0; + a16 = 7; + }else{ + a28 = 0; + a21 = 10; + a10 = 0; + a19 = 5; + a1 = 14; + a9 = 7; + a15 = 1; + a16 = 9; + } + return -1; + } else if(((((!(a8==1)&&((a23==1)&&(a19==5)))||(a24==1))&&(a21==10))&&((((a28==1)&&((a11==1)&&(!(a0==1)&&(!(a20==1)&&((a2==1)&&((input==3)&&((((a1==13)&&(a5==6))&&(a9==11))||(((a5==4)&&(a1==14))&&(a9==7)))))))))&&(a16==7))&&(a17==2)))){ + a1 = 12; + a9 = 7; + a8 = 0; + a11 = 1; + a5 = 4; + a7 = 0; + a19 = 1; + a20 = 1; + return -1; + } else if(((((a5==6)&&((a28==1)&&((a19==2)&&(input==3))))&&(a16==9))&&((!(a3==1)||((a21==10)&&(!(a20==1)&&(((((((a13==1)&&(a1==12))&&!(a7==1))&&(a17==2))&&(a12==1))&&!(a4==1))&&(a28==1)))))&&(a9==7)))){ + a20 = 1; + a14 = 1; + a21 = 12; + a5 = 4; + a19 = 3; + a16 = 8; + a9 = 9; + a12 = 0; + a6 = 0; + return 25; + } else if((((a17==2)&&((a21==10)&&(!(a26==1)&&(((((a20==1)&&((a13==1)&&(((!(a4==1)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6))))&&(a1==12))&&!(a8==1))))&&(a12==1))&&(a9==8))&&(a3==1)))))&&((a16==10)&&((a19==5)&&(a2==1))))){ + a4 = 0; + a13 = 1; + a19 = 2; + a9 = 11; + a12 = 1; + a5 = 6; + a16 = 7; + a1 = 13; + return -1; + } else if((((((((a21==10)&&((a2==1)&&(!(a0==1)&&(!(a14==1)&&((a19==2)&&(input==3))))))&&!(a24==1))&&!(a24==1))&&(a5==4))&&(a17==2))&&((a16==8)&&((a20==1)&&((((a13==1)&&(a9==9))&&(a1==14))&&!(a0==1)))))){ + a16 = 7; + a14 = 0; + a8 = 0; + a19 = 1; + a1 = 12; + a9 = 7; + return -1; + } else if((((a20==1)&&(((a17==2)&&((!(a4==1)&&(((((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&(input==1))&&(a16==9)))&&(a11==1)))&&(a1==12)))&&(((a19==1)&&(((!(a2==1)||((a13==1)||!(a6==1)))||(a18==1))&&(a21==11)))||!(a12==1)))){ + a5 = 4; + a12 = 1; + a18 = 0; + a21 = 10; + a27 = 0; + a9 = 11; + a16 = 11; + a19 = 3; + return 25; + } else if(((!(a24==1)&&((((a20==1)&&(!(a7==1)&&((((a12==1)&&((input==4)&&(a17==2)))&&(a12==1))&&!(a7==1))))&&(a21==10))&&(a9==7)))&&((a19==3)&&(((((a24==1)||(a12==1))&&(a5==4))&&(a16==9))&&(a1==14))))){ + a23 = 1; + a11 = 1; + a16 = 10; + a2 = 1; + a5 = 6; + a1 = 12; + a19 = 5; + return 25; + } else if(((!(a7==1)&&(((a16==8)&&(a23==1))&&(a5==6)))&&((a19==4)&&(((a20==1)&&((a23==1)&&(((a9==10)&&(!(a7==1)&&((a1==12)&&((((a21==12)&&(input==1))&&(a13==1))&&(a28==1)))))&&!(a0==1))))&&(a17==2))))){ + a5 = 5; + a12 = 1; + a7 = 0; + a19 = 3; + a16 = 10; + a4 = 0; + a1 = 13; + a9 = 11; + return 23; + } else if((((a17==2)&&((a7==1)&&((((((a16==8)&&(((((a19==2)&&((a9==11)&&((a5==6)&&(a1==14))))||((a19==3)&&((a9==7)&&((a1==12)&&(a5==4)))))||((a19==3)&&(((a5==5)&&(a1==12))&&(a9==7))))&&(input==3)))&&!(a23==1))&&(a21==11))&&!(a28==1))&&(a7==1))))&&(!(a20==1)&&(!(a23==1)&&((a7==1)&&(a6==1)))))){ + a6 = 0; + a21 = 10; + a1 = 13; + a2 = 0; + a20 = 1; + a19 = 1; + a26 = 1; + a16 = 7; + a5 = 6; + a9 = 9; + return -1; + } else if(((!(a11==1)||((((((((a6==1)&&(a2==1))||!(a13==1))&&(a16==7))&&(a21==11))&&(a9==10))&&(a20==1))||!(a12==1)))&&((a17==2)&&((a1==12)&&((!(a7==1)&&(!(a4==1)&&(((a5==5)||(a5==6))&&(input==5))))&&(a19==3)))))){ + a5 = 6; + a16 = 8; + a21 = 10; + a24 = 0; + a19 = 5; + return 23; + } else if(((((a11==1)&&((a11==1)&&(((a1==12)&&(((a5==5)||(a5==6))&&(input==5)))&&(a21==12))))&&(a13==1))&&(!(a0==1)&&(!(a24==1)&&(!(a8==1)&&(!(a20==1)&&((a19==4)&&((a9==11)&&((a17==2)&&((a23==1)&&(a16==8))))))))))){ + if((a28==1)){ + a19 = 2; + a5 = 5; + a9 = 8; + a0 = 1; + a8 = 1; + a20 = 1; + a27 = 1; + a21 = 10; + a16 = 7; + }else{ + a8 = 1; + a19 = 5; + a16 = 9; + a9 = 7; + a21 = 10; + a6 = 0; + a15 = 1; + a5 = 5; + } + return -1; + } else if(((((a1==14)&&(((!(a18==1)&&(((a19==2)&&(((a5==4)||(a5==5))&&(input==1)))&&(a21==10)))&&!(a14==1))&&!(a18==1)))&&(a9==10))&&(((((!(a24==1)&&(!(a13==1)||(a3==1)))&&(a6==1))&&!(a20==1))&&(a16==9))&&(a17==2)))){ + a16 = 7; + a9 = 7; + a22 = 1; + a5 = 4; + a1 = 13; + a20 = 1; + a2 = 0; + a29 = 1; + return -1; + } else if(((((a9==11)&&((((!(a20==1)&&((!(a3==1)&&(((input==3)&&(a5==4))&&(a18==1)))&&!(a6==1)))&&(a14==1))&&!(a28==1))&&(a17==2)))&&(a21==11))&&(((a1==12)&&(((a26==1)&&(a11==1))&&(a16==8)))&&(a19==1)))){ + a21 = 10; + a20 = 1; + a16 = 7; + a23 = 0; + a18 = 1; + a5 = 5; + a10 = 1; + a1 = 13; + return -1; + } else if(((((a23==1)&&((((a1==12)&&(!(a0==1)&&((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==3))))&&(a23==1))&&!(a4==1)))&&(a16==10))&&((a19==2)&&(!(a20==1)&&(((((a13==1)&&(a23==1))&&(a17==2))&&(a12==1))&&(a21==10)))))){ + a19 = 1; + a26 = 1; + a18 = 1; + a25 = 1; + a16 = 7; + a20 = 1; + a9 = 9; + a5 = 4; + return -1; + } else if(((((((((((((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7))))&&(input==1))&&(a17==2))&&(a28==1))&&(a6==1))&&(a11==1))&&!(a18==1))&&(a1==13))&&(a19==5))&&((a16==8)&&(((!(a12==1)||((a3==1)||(a7==1)))&&!(a20==1))&&(a21==12))))){ + a9 = 11; + a16 = 7; + a20 = 1; + a21 = 10; + a15 = 1; + a19 = 2; + a1 = 12; + a5 = 6; + a10 = 0; + a29 = 0; + return -1; + } else if((((!(a18==1)&&(((a16==8)&&((a12==1)&&(a1==14)))&&(a21==12)))||!(a23==1))&&(((a11==1)&&(((a13==1)&&((((((((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4)))&&(input==1))&&!(a7==1))&&(a17==2))&&(a19==4)))&&(a20==1)))&&(a13==1)))){ + a16 = 7; + a1 = 12; + a9 = 7; + a21 = 10; + a27 = 0; + a5 = 4; + a18 = 0; + a24 = 0; + a19 = 1; + return -1; + } else if((((a9==7)&&(((a1==14)&&(((a17==2)&&(a13==1))||(a18==1)))&&(a20==1)))&&(((!(a14==1)&&((a19==1)&&((((a28==1)&&((((a5==5)||(a5==6))&&(input==6))&&(a16==10)))&&(a12==1))&&!(a4==1))))&&(a13==1))&&(a21==10)))){ + a16 = 7; + a1 = 12; + a5 = 4; + a18 = 0; + a23 = 1; + return -1; + } else if((((((a8==1)||((a17==2)&&((a21==12)&&((a19==1)&&((a1==12)&&((a5==4)&&(a13==1)))))))&&(a23==1))&&!(a20==1))&&(((a12==1)&&((a9==8)&&((((input==3)&&(a16==7))&&(a12==1))&&(a13==1))))&&(a6==1)))){ + a23 = 1; + a21 = 10; + a20 = 1; + a9 = 7; + a24 = 0; + return -1; + } else if(((!(a7==1)&&(((!(a14==1)&&(((a12==1)&&((a1==14)&&((((a5==4)||(a5==5))&&(input==5))&&(a21==11))))&&(a3==1)))&&!(a20==1))&&!(a14==1)))&&((a9==7)&&((a17==2)&&((a16==9)&&(!(a27==1)&&((a12==1)&&(a19==4)))))))){ + a21 = 10; + a3 = 0; + a11 = 0; + a1 = 12; + a8 = 1; + a16 = 10; + a5 = 4; + return -1; + } else if(((!(a4==1)&&((a21==12)&&(((a1==13)&&((a17==2)&&(a28==1)))&&!(a24==1))))&&((a12==1)&&((!(a18==1)&&(!(a27==1)&&((a9==8)&&((((a16==11)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a8==1))&&(a19==4)))))&&(a20==1))))){ + a5 = 5; + a2 = 1; + a3 = 1; + a21 = 10; + a16 = 10; + a13 = 1; + a9 = 11; + a19 = 1; + return 21; + } else if(((!(a24==1)&&((((!(a27==1)&&(!(a4==1)&&((input==6)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5))))))&&(a16==9))&&(a21==11))&&!(a14==1)))&&(((a17==2)&&((a19==2)&&((a13==1)&&(((a1==13)&&(a6==1))&&(a20==1)))))&&!(a24==1)))){ + a9 = 7; + a7 = 0; + a21 = 10; + a19 = 1; + a5 = 4; + a8 = 0; + a16 = 7; + a11 = 1; + a1 = 12; + return -1; + } else if((((!(a20==1)&&((a17==2)&&((a16==9)&&((!(a3==1)||(a2==1))&&(a9==10)))))&&(a1==12))&&((a11==1)&&((a28==1)&&((!(a24==1)&&((a19==4)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a21==11))&&(a2==1))))&&(a13==1)))))){ + a20 = 1; + a16 = 7; + a19 = 1; + a5 = 5; + a12 = 0; + a21 = 10; + a28 = 0; + a14 = 1; + return -1; + } else if((((a1==12)&&((a23==1)&&((a16==8)&&(((a13==1)&&((((a28==1)&&(((a19==5)&&((a9==11)&&(((a5==5)||(a5==6))&&(input==6))))&&!(a18==1)))&&(a12==1))&&!(a7==1)))&&(a21==10)))))&&(((a23==1)&&(a20==1))&&(a17==2)))){ + a9 = 7; + a11 = 1; + a19 = 1; + a26 = 0; + a28 = 1; + a16 = 7; + a5 = 4; + return -1; + } else if((((a8==1)||(((((a18==1)||((a9==8)&&(a13==1)))&&(a16==7))&&(a20==1))&&!(a7==1)))&&((((a1==14)&&((a19==4)&&(((a17==2)&&((a13==1)&&((input==3)&&(a21==10))))&&(a5==5))))&&!(a8==1))&&(a11==1)))){ + a5 = 4; + a19 = 1; + a7 = 0; + a4 = 0; + a1 = 12; + a9 = 7; + a11 = 1; + return -1; + } else if(((((!(a26==1)&&((a11==1)&&(a2==1)))&&!(a4==1))&&(a17==2))&&(!(a26==1)&&(((a20==1)&&((a19==1)&&((a2==1)&&((a16==10)&&((a3==1)&&((((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9)))&&(input==6))&&(a21==12)))))))&&(a1==14))))){ + if((a24==1)){ + a1 = 12; + a16 = 8; + a20 = 0; + a5 = 6; + a21 = 10; + a11 = 1; + a9 = 10; + a27 = 0; + a19 = 5; + a18 = 0; + }else{ + a3 = 1; + a5 = 5; + a21 = 10; + a9 = 10; + a16 = 7; + a24 = 0; + a19 = 2; + a0 = 0; + } + return 21; + } else if(((!(a28==1)||((a20==1)&&(!(a6==1)||(((a9==10)&&((((a13==1)&&!(a18==1))&&(a16==11))&&(a6==1)))&&(a17==2)))))&&(((a21==12)&&(!(a18==1)&&(((a19==3)&&((a5==6)&&(input==5)))&&(a12==1))))&&(a1==13)))){ + a5 = 4; + a16 = 7; + a9 = 7; + a6 = 1; + a19 = 1; + a8 = 0; + a0 = 0; + a21 = 10; + a1 = 12; + return -1; + } else if((((((a20==1)&&(((a21==10)&&((input==3)&&((a5==5)||(a5==6))))&&!(a24==1)))&&(a17==2))&&!(a0==1))&&((a16==11)&&((a11==1)&&(((a19==1)&&(((a12==1)&&((a9==10)&&((a13==1)||!(a12==1))))&&(a1==12)))||(a0==1)))))){ + a20 = 0; + a16 = 8; + a1 = 14; + a26 = 0; + a5 = 6; + a24 = 0; + a19 = 2; + a12 = 1; + return 21; + } else if(((!(a20==1)&&((a19==2)&&(!(a7==1)&&(((((a12==1)&&((a9==7)&&(((input==5)&&(a5==4))&&!(a24==1))))&&(a1==13))&&(a21==12))&&(a11==1)))))&&(((a16==10)&&(((a6==1)||(a0==1))&&(a17==2)))&&(a6==1)))){ + a10 = 0; + a16 = 11; + a4 = 1; + a21 = 10; + a9 = 9; + a24 = 1; + a1 = 14; + return 21; + } else if((((((a17==2)&&((a4==1)||((a21==12)&&((((a4==1)||(!(a28==1)||(!(a20==1)&&(a28==1))))&&(a9==8))&&(a19==3)))))&&(a5==4))||!(a2==1))&&(!(a8==1)&&((((input==5)&&(a1==12))&&(a16==8))&&(a28==1))))){ + a10 = 1; + a1 = 13; + a24 = 1; + a9 = 11; + a16 = 7; + a5 = 6; + a4 = 1; + return -1; + } else if((((a21==11)&&((a4==1)||(!(a23==1)||(!(a27==1)&&((a1==13)&&(a23==1))))))&&((a6==1)&&((((a20==1)&&((a17==2)&&((a6==1)&&((((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5)))&&(input==1))&&(a16==8)))))&&(a23==1))&&(a19==2))))){ + a28 = 1; + a12 = 1; + a26 = 0; + a21 = 10; + a19 = 4; + a9 = 10; + a16 = 10; + a5 = 4; + return 21; + } else if((((a1==13)&&((!(a18==1)&&((a16==10)&&(((a17==2)&&(((input==6)&&((a5==4)||(a5==5)))&&(a19==2)))&&(a2==1))))&&(a9==10)))&&((((((a12==1)&&((a13==1)&&!(a24==1)))&&(a21==11))||!(a2==1))&&(a12==1))&&(a20==1)))){ + a1 = 14; + a5 = 4; + a11 = 1; + a21 = 10; + a16 = 7; + a13 = 1; + a12 = 1; + a9 = 9; + return 22; + } else if((((a3==1)&&(!(a8==1)&&((a3==1)&&(((a23==1)&&(!(a20==1)&&(((a17==2)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==4)))&&(a21==12))))&&(a16==9)))))&&((((a1==14)&&((a11==1)&&(a19==3)))||!(a3==1))||(a8==1)))){ + if((a20==1)){ + a20 = 1; + a19 = 2; + a5 = 5; + a9 = 8; + a1 = 12; + a28 = 0; + a16 = 10; + a8 = 1; + a25 = 0; + }else{ + a9 = 7; + a21 = 11; + a8 = 1; + a16 = 7; + a20 = 1; + a15 = 0; + a5 = 5; + a19 = 1; + } + return -1; + } else if((((a17==2)&&((a16==10)&&(((a13==1)&&((a3==1)&&((a12==1)&&((a1==13)&&(a13==1)))))&&!(a20==1))))&&((a21==10)&&(((a19==4)&&((a12==1)&&((a13==1)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==1)))))&&(a28==1))))){ + a16 = 9; + a13 = 0; + a9 = 7; + a5 = 4; + a20 = 1; + a19 = 2; + a15 = 0; + a29 = 0; + a1 = 14; + return 21; + } else if((((a9==7)&&(((((a5==5)||(a5==6))&&(input==1))&&(a17==2))&&(a6==1)))&&((((a19==4)&&(!(a20==1)&&((((a4==1)||(((a16==7)&&((a28==1)&&!(a4==1)))||(a26==1)))||!(a23==1))&&!(a8==1))))&&(a21==12))&&(a1==12)))){ + a19 = 2; + a21 = 10; + a1 = 14; + a9 = 9; + a20 = 1; + a26 = 0; + a14 = 0; + a28 = 1; + a5 = 6; + a16 = 9; + return 21; + } else if((((a19==4)&&(((a17==2)&&((!(a4==1)&&((a28==1)&&((a16==10)&&(((input==1)&&((a5==5)||(a5==6)))&&!(a8==1)))))&&(a1==14)))&&(a21==12)))&&(((a9==8)&&((a18==1)||(((a23==1)||!(a6==1))&&(a6==1))))&&!(a20==1)))){ + a13 = 0; + a1 = 13; + a9 = 7; + a10 = 0; + a19 = 3; + a16 = 9; + a21 = 11; + a5 = 5; + a24 = 1; + return 21; + } else if(((((a1==13)&&(((a19==1)&&((((a17==2)&&((a28==1)&&!(a7==1)))&&(a3==1))||(a4==1)))||(a14==1)))&&(a21==12))&&((((a3==1)&&((a20==1)&&((input==3)&&(((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))))&&(a16==10))&&!(a8==1)))){ + a27 = 0; + a9 = 7; + a21 = 10; + a5 = 4; + a16 = 7; + a0 = 0; + a26 = 0; + a1 = 12; + return -1; + } else if((((((a9==7)&&(!(a18==1)&&((a21==12)&&((a19==3)&&(input==4)))))&&(a1==14))&&(a5==6))&&((a7==1)||((a28==1)&&((((((a24==1)||((a11==1)&&(a17==2)))&&(a20==1))||(a26==1))&&(a11==1))&&(a16==9)))))){ + a18 = 0; + a16 = 7; + a19 = 1; + a21 = 10; + a23 = 1; + a11 = 1; + a1 = 12; + a5 = 4; + return -1; + } else if((((a17==2)&&((a1==12)&&(((((a12==1)&&(((a5==5)&&(input==6))&&!(a0==1)))&&(a9==9))&&(a11==1))&&(a16==8))))&&(((a19==2)&&((((a7==1)||((a12==1)&&(a2==1)))||(a18==1))&&!(a20==1)))&&(a21==11)))){ + a19 = 4; + a26 = 0; + a20 = 1; + a1 = 14; + a23 = 1; + a16 = 9; + a9 = 10; + return 21; + } else if((((((!(a18==1)&&((a11==1)||!(a2==1)))&&(a21==11))||!(a3==1))&&(a16==10))&&((a20==1)&&((((a17==2)&&(((!(a4==1)&&(!(a14==1)&&((a5==6)&&(input==5))))&&(a9==10))&&(a1==13)))&&(a19==2))&&(a11==1))))){ + a21 = 10; + a6 = 1; + a9 = 9; + a23 = 1; + a14 = 0; + a16 = 7; + a5 = 5; + return 25; + } else if((((a1==14)&&(((a16==10)&&((a21==10)&&(!(a14==1)&&((a28==1)&&(((a20==1)&&(a13==1))||(a18==1))))))&&(a5==5)))&&((((a12==1)&&(((a2==1)&&((input==4)&&(a19==3)))&&(a23==1)))&&(a17==2))&&(a9==7)))){ + a5 = 4; + a1 = 12; + a24 = 0; + a12 = 1; + a13 = 1; + a16 = 7; + a19 = 1; + return -1; + } else if((((a6==1)&&((!(a26==1)&&(!(a6==1)||((a28==1)&&(a9==9))))||!(a3==1)))&&(((a17==2)&&((a19==3)&&((a20==1)&&((((!(a18==1)&&((input==4)&&((a5==5)||(a5==6))))&&(a1==14))&&(a23==1))&&(a16==7)))))&&(a21==10)))){ + a27 = 0; + a9 = 7; + a1 = 12; + a19 = 1; + a28 = 1; + a11 = 1; + a5 = 4; + return -1; + } else if((((a4==1)&&((((a24==1)&&((a6==1)&&(a19==2)))&&!(a28==1))&&(a24==1)))&&(((a21==11)&&(!(a23==1)&&(((((((((a1==12)&&(a5==6))&&(a9==11))||((a9==7)&&((a1==13)&&(a5==4))))||((a9==7)&&((a5==5)&&(a1==13))))&&(input==4))&&(a17==2))&&(a20==1))&&(a16==7))))&&(a4==1)))){ + a15 = 0; + a19 = 1; + a1 = 14; + a24 = 1; + a9 = 7; + a5 = 5; + a13 = 0; + a21 = 10; + return -1; + } else if(((((a20==1)&&((a9==7)&&(input==1)))&&(a21==12))&&((a5==4)&&(((a16==9)&&(((((a17==2)&&(((a0==1)||(((a12==1)&&(a13==1))&&(a19==2)))||(a0==1)))&&(a1==13))&&!(a8==1))&&(a28==1)))||(a26==1))))){ + a13 = 1; + a19 = 1; + a1 = 12; + a27 = 0; + a21 = 10; + a16 = 7; + a6 = 1; + return -1; + } else if(((((a9==11)&&((!(a4==1)&&((a16==11)&&((a6==1)&&(a19==2))))&&(a17==2)))&&(a1==13))&&((((((!(a14==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&!(a8==1)))&&!(a0==1))&&(a21==10))&&(a23==1))&&!(a0==1))&&!(a20==1)))){ + if((a8==1)){ + a4 = 1; + a20 = 1; + a5 = 6; + a2 = 0; + a9 = 10; + a16 = 7; + a10 = 1; + a1 = 12; + }else{ + a14 = 1; + a20 = 1; + a5 = 6; + a9 = 7; + a29 = 0; + a21 = 11; + a1 = 14; + a16 = 8; + } + return -1; + } else if((((a11==1)&&((((a9==9)&&((a20==1)&&((((a5==4)||(a5==5))&&(input==5))&&(a16==10))))&&(a11==1))&&(a13==1)))&&(!(a0==1)&&(((((a13==1)&&((a11==1)&&((a1==12)&&(a28==1))))&&(a21==10))&&(a19==2))&&(a17==2))))){ + a9 = 7; + a6 = 1; + a19 = 1; + a5 = 4; + a16 = 7; + a14 = 0; + a3 = 1; + return -1; + } else if((((a3==1)&&((a2==1)&&((((a19==2)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&(a9==7)))&&(a17==2))&&(a21==11))))&&(((a11==1)&&((a1==14)&&((((a27==1)||((a16==9)&&(a12==1)))&&!(a26==1))&&(a20==1))))&&!(a18==1)))){ + a5 = 4; + a21 = 10; + a1 = 12; + a6 = 1; + a16 = 7; + a2 = 1; + a13 = 1; + a19 = 1; + return -1; + } else if(((!(a0==1)&&(((a0==1)||((a17==2)&&(((!(a11==1)||(a2==1))&&(a21==11))&&!(a20==1))))&&(a1==13)))&&(((((((((a5==5)||(a5==6))&&(input==3))&&(a9==7))&&(a19==1))&&(a16==7))&&!(a7==1))&&!(a27==1))&&(a28==1)))){ + a24 = 0; + a11 = 1; + a5 = 4; + a21 = 10; + a20 = 1; + a4 = 0; + a1 = 12; + return -1; + } else if(((((a20==1)&&((a19==4)&&((a17==2)&&((a27==1)&&((((a26==1)&&((a14==1)&&((a1==12)&&(a23==1))))&&(a26==1))&&!(a28==1))))))&&(a16==10))&&((a9==10)&&((a21==11)&&(((input==5)&&(a5==6))&&(a27==1)))))){ + a29 = 0; + a19 = 2; + a21 = 10; + a9 = 9; + a18 = 1; + a16 = 7; + a25 = 1; + a5 = 5; + return -1; + } else if(((((a19==4)&&((a1==13)&&((a2==1)&&((((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4)))&&(input==4))&&!(a18==1)))))&&(a3==1))&&(((a16==10)&&((a28==1)&&(!(a14==1)&&((((a21==11)&&(a12==1))&&(a17==2))&&(a20==1)))))&&(a6==1)))){ + a16 = 7; + a19 = 1; + a28 = 1; + a27 = 0; + a21 = 10; + a5 = 4; + a9 = 7; + a1 = 12; + a7 = 0; + return -1; + } else if((((((a16==7)&&((((a2==1)&&((a5==5)&&(((a9==11)&&(input==3))&&!(a20==1))))&&(a21==11))&&(a19==4)))&&(a6==1))&&(a11==1))&&((!(a14==1)&&(((a17==2)&&((a11==1)&&!(a26==1)))&&(a1==12)))&&(a6==1)))){ + a9 = 7; + a21 = 10; + a20 = 1; + a11 = 1; + a5 = 4; + a3 = 1; + a13 = 1; + a19 = 1; + return -1; + } else if(((!(a20==1)&&(!(a27==1)&&((a21==11)&&(((a23==1)&&((a16==7)&&(input==6)))&&(a5==4)))))&&((a27==1)||((a27==1)||((a26==1)||(((a1==13)&&((((a6==1)||!(a23==1))&&(a17==2))&&(a19==2)))&&(a9==9))))))){ + a18 = 0; + a3 = 1; + a21 = 10; + a16 = 11; + a19 = 4; + a20 = 1; + a1 = 14; + a12 = 1; + return 22; + } else if(((((a23==1)&&(((a17==2)&&((a21==12)&&((!(a18==1)&&((!(a7==1)&&((input==6)&&((a5==4)||(a5==5))))&&(a19==5)))&&(a20==1))))&&(a1==13)))&&(a28==1))&&(!(a7==1)&&((a9==11)&&(((a16==7)&&(a12==1))&&!(a0==1)))))){ + if((a22==1)){ + a7 = 0; + a21 = 11; + a20 = 0; + a19 = 4; + a9 = 8; + a14 = 0; + a16 = 8; + a1 = 12; + a5 = 5; + }else{ + a19 = 2; + a11 = 1; + a9 = 10; + a5 = 4; + a21 = 10; + a3 = 1; + a12 = 1; + } + return 21; + } else if((((a3==1)&&(((a17==2)&&(!(a0==1)&&(((input==5)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&(a19==1))))&&(a21==11)))&&((a20==1)&&((((a18==1)||(((a28==1)&&((a23==1)&&(a1==14)))&&(a16==10)))&&!(a14==1))&&(a11==1))))){ + a5 = 5; + a24 = 0; + a16 = 7; + a14 = 0; + a1 = 13; + a19 = 4; + a9 = 7; + a12 = 1; + return 25; + } else if((((((a21==11)&&((((a12==1)&&((input==6)&&(a20==1)))&&!(a8==1))&&(a13==1)))&&(a1==14))&&(a17==2))&&(((a14==1)||((!(a0==1)&&((((a19==2)&&(a28==1))&&(a5==5))&&(a16==11)))&&(a9==10)))&&!(a0==1)))){ + a14 = 0; + a19 = 1; + a5 = 6; + a0 = 0; + a12 = 1; + a1 = 12; + a20 = 0; + a9 = 8; + a16 = 7; + a21 = 12; + return 25; + } else if((((a8==1)||((a9==7)&&((a23==1)&&((a1==12)&&(!(a23==1)||(a6==1))))))&&(((a19==1)&&(((!(a14==1)&&(!(a20==1)&&(((((a5==5)||(a5==6))&&(input==6))&&(a21==10))&&(a16==9))))&&(a2==1))&&(a6==1)))&&(a17==2)))){ + if((a2==1)){ + a19 = 5; + a16 = 8; + a9 = 10; + a5 = 5; + a26 = 1; + a15 = 1; + a2 = 0; + a1 = 14; + a21 = 11; + }else{ + a12 = 0; + a22 = 0; + a29 = 0; + a5 = 5; + a20 = 1; + a16 = 8; + } + return -1; + } else if(((((!(a11==1)||((!(a20==1)&&((a23==1)&&((a2==1)&&(a1==14))))&&(a21==10)))||!(a11==1))&&(a17==2))&&((a16==7)&&((((((((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7))))&&(input==3))&&!(a27==1))&&(a19==3))&&!(a27==1))&&(a2==1))))){ + a2 = 1; + a9 = 7; + a4 = 0; + a1 = 12; + a12 = 1; + a5 = 4; + a20 = 1; + a19 = 1; + return -1; + } else if((((!(a27==1)&&(!(a0==1)&&(((((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))&&(input==3))&&(a11==1))))&&(a21==11))&&((a20==1)&&((a17==2)&&((a16==8)&&((!(a11==1)||((a27==1)||((a0==1)||((a19==2)&&(a12==1)))))&&(a1==12))))))){ + a4 = 0; + a5 = 4; + a21 = 10; + a12 = 1; + a28 = 1; + a16 = 7; + a9 = 7; + a19 = 1; + return -1; + } else if((((a13==1)&&((!(a20==1)&&(((((((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&!(a27==1))&&(a23==1))&&(a19==1))&&(a2==1))&&!(a7==1)))&&(a9==7)))&&((((a16==7)&&((a17==2)&&((a21==12)&&(a13==1))))&&!(a27==1))&&(a1==13)))){ + a2 = 1; + a21 = 10; + a8 = 0; + a1 = 12; + a5 = 4; + a4 = 0; + a20 = 1; + return -1; + } else if(((!(a2==1)||((a21==11)&&(((!(a4==1)&&(((a13==1)&&(a16==9))&&(a1==12)))&&(a23==1))||!(a13==1))))&&(!(a24==1)&&((a20==1)&&((a19==1)&&((a2==1)&&((a17==2)&&((((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&(input==5))))))))){ + a16 = 7; + a8 = 0; + a9 = 7; + a21 = 10; + a6 = 1; + a14 = 0; + a5 = 4; + return -1; + } else if((((a1==13)&&((a20==1)&&(((a16==8)&&((!(a0==1)&&((a2==1)&&(((a17==2)&&(input==3))&&(a9==7))))&&!(a26==1)))&&(a21==11))))&&((((((a6==1)&&!(a7==1))||(a14==1))||(a7==1))&&(a5==4))&&(a19==4)))){ + a14 = 0; + a16 = 10; + a18 = 0; + a0 = 0; + a19 = 2; + a5 = 5; + a1 = 12; + a9 = 10; + return 25; + } else if((((a2==1)&&(((a19==3)&&((!(a20==1)&&(((a17==2)&&((a21==10)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a6==1))))&&!(a14==1)))&&(a9==11)))&&(a1==14)))&&(!(a12==1)||((((a23==1)&&!(a14==1))||!(a11==1))&&(a16==10))))){ + a5 = 5; + a22 = 0; + a24 = 1; + a1 = 12; + a4 = 1; + a16 = 7; + a20 = 1; + a9 = 9; + a19 = 1; + return 21; + } else if((((((a1==13)&&((a2==1)&&(((a17==2)&&((!(a0==1)&&(!(a14==1)&&(((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))&&(input==1))))&&!(a18==1)))&&(a11==1))))&&(a16==7))&&!(a20==1))&&((a21==11)&&((!(a14==1)&&(a11==1))&&(a19==3))))){ + if((a8==1)){ + a16 = 8; + a5 = 5; + a21 = 10; + a11 = 1; + a28 = 1; + a9 = 9; + a19 = 2; + a27 = 0; + }else{ + a24 = 0; + a1 = 14; + a20 = 1; + a16 = 8; + a9 = 11; + a5 = 4; + a18 = 0; + a3 = 1; + } + return -1; + } else if((((a19==4)&&((((((input==3)&&!(a20==1))&&(a5==4))&&!(a0==1))&&(a17==2))&&(a21==12)))&&(((a16==8)&&((a23==1)&&(!(a13==1)||(((a12==1)&&(((a13==1)||!(a23==1))&&(a1==13)))||(a7==1)))))&&(a9==7)))){ + if((a23==1)){ + a21 = 10; + a1 = 12; + a5 = 5; + a15 = 0; + a9 = 8; + a16 = 7; + a25 = 0; + a28 = 0; + a20 = 1; + a19 = 2; + }else{ + a22 = 1; + a5 = 5; + a16 = 11; + a13 = 0; + a21 = 10; + a29 = 1; + a9 = 8; + a19 = 2; + a20 = 1; + } + return 25; + } else if(((!(a0==1)&&(((a12==1)&&(!(a0==1)&&(!(a24==1)&&(((a19==1)&&((input==4)&&(((((a1==13)&&(a5==6))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==14))))||(((a5==5)&&(a1==14))&&(a9==7)))))&&(a16==11)))))&&!(a26==1)))&&((a2==1)&&(((!(a20==1)&&(a23==1))&&(a17==2))&&(a21==10))))){ + a1 = 12; + a28 = 0; + a23 = 0; + a19 = 2; + a5 = 5; + a16 = 7; + a21 = 12; + a22 = 1; + a9 = 7; + return 25; + } else if(((((a3==1)&&((!(a3==1)||(((a0==1)||((a12==1)&&(a21==11)))&&!(a20==1)))||(a0==1)))&&(a16==9))&&((a9==7)&&(((a19==4)&&((a2==1)&&((a1==13)&&((a17==2)&&((input==5)&&((a5==5)||(a5==6)))))))&&!(a27==1))))){ + if((a3==1)){ + a9 = 9; + a28 = 0; + a27 = 1; + a1 = 12; + a5 = 6; + a19 = 5; + a21 = 10; + a4 = 1; + }else{ + a16 = 7; + a9 = 9; + a20 = 1; + a1 = 12; + a5 = 4; + a0 = 1; + a14 = 1; + a19 = 2; + a21 = 10; + a3 = 0; + } + return -1; + } else if(((((!(a27==1)&&((a16==11)&&(!(a26==1)&&(!(a24==1)&&((input==6)&&(((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))))))))&&!(a27==1))&&(a20==1))&&((((a12==1)&&(((a21==10)&&((a3==1)&&(a1==12)))&&(a17==2)))&&(a23==1))&&(a19==2)))){ + a4 = 0; + a19 = 1; + a9 = 7; + a3 = 1; + a16 = 7; + a5 = 4; + return -1; + } else if((((a5==4)&&((!(a3==1)||(((((!(a3==1)||((a2==1)&&(a9==11)))&&(a20==1))&&(a16==10))&&!(a18==1))||(a7==1)))&&(a19==5)))&&(!(a26==1)&&((a21==10)&&((a1==13)&&(!(a8==1)&&((a17==2)&&(input==5)))))))){ + a1 = 12; + a9 = 7; + a3 = 1; + a4 = 0; + a2 = 1; + a19 = 1; + a16 = 7; + return -1; + } else if((((a16==9)&&(((a19==2)&&(!(a23==1)||((a6==1)||!(a6==1))))&&(a17==2)))&&((a12==1)&&((((a5==4)&&((a1==13)&&(((a3==1)&&(!(a20==1)&&((a9==11)&&(input==4))))&&!(a4==1))))&&!(a4==1))&&(a21==11))))){ + if((a18==1)){ + a21 = 10; + a16 = 8; + a1 = 14; + a15 = 0; + a14 = 1; + a29 = 0; + a19 = 5; + }else{ + a21 = 12; + a19 = 1; + a9 = 8; + a1 = 14; + a16 = 10; + a22 = 0; + a24 = 1; + a5 = 6; + a6 = 0; + } + return -1; + } else if((((((((a20==1)&&((a5==6)&&(((input==4)&&(a19==5))&&!(a0==1))))&&!(a7==1))&&(a1==13))&&(a16==8))&&(a21==12))&&((a9==7)&&((((((a28==1)||(a18==1))&&!(a7==1))&&(a17==2))&&(a6==1))&&(a11==1))))){ + a6 = 1; + a1 = 12; + a5 = 4; + a24 = 0; + a9 = 9; + a21 = 10; + return -1; + } else if((((a16==7)&&(!(a24==1)&&(!(a27==1)&&((a20==1)&&((a9==8)&&((a28==1)&&((a1==12)&&((a17==2)&&(((a5==5)||(a5==6))&&(input==3))))))))))&&(((a21==12)&&((a19==5)&&(((a7==1)||(a28==1))||(a24==1))))&&!(a27==1)))){ + a5 = 4; + a28 = 1; + a8 = 0; + a21 = 10; + a7 = 0; + a19 = 1; + a9 = 7; + return -1; + } else if((((a7==1)||((a21==10)&&((a26==1)||((a1==14)&&(!(a26==1)&&(a3==1))))))&&((a28==1)&&((a17==2)&&(((!(a14==1)&&((((a5==6)&&((a20==1)&&(input==5)))&&(a9==10))&&!(a4==1)))&&(a19==3))&&(a16==10)))))){ + a8 = 0; + a16 = 8; + a2 = 1; + a9 = 11; + a5 = 5; + a20 = 0; + return 26; + } else if((((((a26==1)||(!(a13==1)||((a27==1)||(a2==1))))&&(a21==10))&&(a16==9))&&(((a1==12)&&((((a19==2)&&(!(a20==1)&&(!(a26==1)&&((((a5==5)||(a5==6))&&(input==4))&&(a9==8)))))&&!(a8==1))&&(a3==1)))&&(a17==2)))){ + a16 = 8; + a1 = 13; + a18 = 1; + a5 = 6; + a19 = 4; + a3 = 0; + a27 = 1; + return -1; + } else if((((a26==1)||((((a16==8)&&((a27==1)||(((a4==1)||((a2==1)&&(a9==9)))&&(a17==2))))&&(a23==1))&&(a19==4)))&&(((!(a20==1)&&(((a1==13)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6))))&&(a23==1)))&&!(a27==1))&&(a21==10)))){ + a27 = 0; + a1 = 12; + a5 = 4; + a9 = 7; + a16 = 7; + a13 = 1; + a19 = 1; + a20 = 1; + a14 = 0; + return -1; + } else if((((((a3==1)&&(!(a7==1)&&((a16==8)&&((a19==1)&&(((a11==1)&&(a1==12))&&(a20==1))))))&&(a23==1))&&!(a0==1))&&((((((input==6)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5))))&&!(a7==1))&&(a17==2))&&!(a8==1))&&(a21==10)))){ + a16 = 7; + a18 = 0; + a9 = 7; + a5 = 4; + a8 = 0; + a0 = 0; + return -1; + } else if((((((a19==5)&&((a21==10)&&((a9==10)&&((a1==12)&&((!(a27==1)&&((!(a26==1)&&(((a5==4)||(a5==5))&&(input==6)))&&(a6==1)))&&!(a8==1))))))&&(a11==1))&&!(a18==1))&&((a17==2)&&((a16==9)&&((a13==1)&&(a20==1)))))){ + a5 = 4; + a16 = 7; + a13 = 1; + a9 = 9; + a6 = 1; + a0 = 0; + a19 = 3; + return 22; + } else if(((((a16==11)&&((a19==4)&&((a2==1)&&(((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a1==14)))))&&(a11==1))&&((((a3==1)&&((((a20==1)&&((a17==2)&&((a2==1)&&(a9==10))))&&(a6==1))&&!(a4==1)))&&(a21==10))&&!(a0==1)))){ + a5 = 4; + a19 = 1; + a16 = 7; + a2 = 1; + a1 = 12; + a9 = 7; + a27 = 0; + a8 = 0; + return -1; + } else if(((!(a20==1)&&(((a17==2)&&(((((((a1==13)&&((input==1)&&(a16==10)))&&(a11==1))&&(a23==1))&&(a13==1))&&(a13==1))&&(a21==11)))&&(a5==4)))&&((a19==2)&&((a9==7)&&(((a3==1)||!(a28==1))&&(a28==1)))))){ + a25 = 0; + a16 = 8; + a9 = 11; + a20 = 1; + a10 = 0; + a2 = 0; + a1 = 12; + return 25; + } else if((((((((a17==2)&&((a9==8)&&((!(a20==1)&&((a28==1)&&((input==5)&&(a5==4))))&&(a21==10))))&&!(a26==1))&&(a28==1))&&(a12==1))&&(a2==1))&&((a6==1)&&(((a1==12)&&((a19==4)&&(a3==1)))&&(a16==10))))){ + a1 = 14; + a10 = 0; + a9 = 11; + a20 = 1; + a5 = 5; + a16 = 7; + a0 = 1; + a25 = 0; + a19 = 1; + return -1; + } else if((((a21==10)&&((a16==10)&&((a5==6)&&(!(a8==1)&&((((a2==1)&&((a9==11)&&(input==3)))&&!(a26==1))&&(a23==1))))))&&((((a19==5)&&((a3==1)&&((a11==1)&&((a17==2)&&(a11==1)))))&&(a20==1))&&(a1==14)))){ + a9 = 8; + a2 = 1; + a5 = 4; + a23 = 1; + a1 = 12; + a19 = 1; + return 21; + } else if(((((((a21==11)&&(!(a8==1)&&((a17==2)&&((a12==1)&&(a5==4)))))||!(a28==1))&&!(a27==1))&&(a19==5))&&(!(a7==1)&&(((((a28==1)&&((a1==12)&&((a16==10)&&(input==3))))&&(a6==1))&&!(a20==1))&&(a9==7))))){ + a22 = 0; + a28 = 0; + a19 = 2; + a5 = 5; + a16 = 9; + a21 = 10; + a15 = 0; + a1 = 14; + return 23; + } return calculate_output17(input); + } + + int calculate_output17(int input) { + if((((!(a20==1)&&((((((a5==6)&&(((((input==3)&&(a1==14))&&!(a7==1))&&!(a8==1))&&(a9==8)))&&(a23==1))&&(a6==1))&&(a16==7))&&(a21==12)))&&!(a14==1))&&((((a12==1)||(a0==1))&&(a19==5))&&(a17==2)))){ + a16 = 10; + a9 = 11; + a19 = 4; + a14 = 0; + a1 = 13; + a6 = 1; + a0 = 0; + a20 = 1; + a21 = 10; + return 22; + } else if((((a9==11)&&(((a19==2)&&((a12==1)&&((((a3==1)&&((a17==2)&&(input==5)))&&!(a26==1))&&!(a0==1))))&&(a20==1)))&&((a21==12)&&((a1==13)&&((((a5==6)&&((a4==1)||(a11==1)))||(a27==1))&&(a16==11)))))){ + a7 = 0; + a19 = 4; + a23 = 1; + a4 = 0; + a5 = 5; + return 25; + } else if(((((a14==1)||((((a12==1)&&(a16==7))&&(a21==11))||!(a6==1)))&&(a17==2))&&((a20==1)&&((a19==2)&&(!(a24==1)&&((a23==1)&&(!(a8==1)&&(!(a18==1)&&((a1==13)&&((((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(input==6))))))))))){ + a8 = 0; + a21 = 10; + a16 = 8; + a19 = 3; + a12 = 1; + a5 = 4; + a9 = 9; + return 26; + } else if(((((((input==6)&&(((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))))&&(a19==2))&&(a2==1))&&(a2==1))&&((a3==1)&&((a0==1)||(((a1==14)&&(((a17==2)&&((a21==12)&&((a20==1)&&((a28==1)&&(a28==1)))))&&(a16==9)))||(a8==1)))))){ + a5 = 4; + a8 = 0; + a21 = 10; + a16 = 7; + a1 = 12; + a19 = 1; + a26 = 0; + a28 = 1; + a9 = 7; + return -1; + } else if(((!(a28==1)||(!(a0==1)&&(((((a17==2)&&((a16==8)&&((!(a26==1)&&((a1==12)&&((a3==1)&&(a13==1))))&&(a19==3))))&&(a21==12))&&(a9==11))&&!(a8==1))))&&((((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a20==1))&&(a2==1)))){ + a19 = 5; + a18 = 0; + a5 = 5; + a26 = 0; + a20 = 0; + a8 = 0; + a21 = 10; + return 21; + } else if((((a16==7)&&(!(a24==1)&&((((a21==11)&&((a19==5)&&(((a5==5)||(a5==6))&&(input==6))))&&(a1==13))&&(a9==9))))&&(!(a7==1)&&((((a20==1)&&(((a7==1)||((a17==2)&&(a6==1)))||(a26==1)))||(a8==1))||!(a13==1))))){ + a5 = 4; + a21 = 12; + a19 = 2; + a9 = 11; + a8 = 0; + a27 = 0; + a1 = 12; + a11 = 1; + a16 = 8; + return 25; + } else if((((a2==1)&&((a0==1)||(((((a3==1)&&(a13==1))&&(a21==11))&&(a19==5))&&(a16==8))))&&(((a17==2)&&(((((a9==7)&&(((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&(a1==12)))&&!(a4==1))&&!(a20==1))&&(a6==1)))&&!(a4==1)))){ + a1 = 13; + a5 = 4; + a28 = 1; + a20 = 1; + a2 = 1; + a21 = 10; + a8 = 0; + return 22; + } else if(((((a16==9)&&((((a17==2)&&(((a11==1)||(a18==1))&&(a5==4)))&&(a2==1))&&(a23==1)))&&(a13==1))&&((a9==8)&&(!(a26==1)&&((a21==10)&&(((a23==1)&&((a20==1)&&((a1==14)&&(input==1))))&&(a19==4))))))){ + a7 = 0; + a9 = 11; + a11 = 1; + a5 = 5; + a19 = 2; + a2 = 1; + a16 = 11; + a1 = 13; + return 26; + } else if(((((!(a20==1)&&((a19==4)&&(!(a26==1)&&((a12==1)&&(a16==7)))))&&!(a7==1))||!(a2==1))&&(((((!(a0==1)&&((a21==10)&&((input==1)&&((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4))))))&&(a17==2))&&(a1==13))&&!(a24==1))&&!(a24==1)))){ + a8 = 0; + a23 = 1; + a1 = 14; + a2 = 1; + a5 = 5; + a9 = 7; + return 26; + } else if(((((a23==1)&&(((a21==11)&&(((a16==10)&&(((input==1)&&!(a20==1))&&(a19==3)))&&(a1==12)))&&(a11==1)))&&(a28==1))&&(((a23==1)&&((((a17==2)&&((a9==7)&&(a2==1)))||(a8==1))&&(a5==5)))&&!(a27==1)))){ + a16 = 7; + a1 = 13; + a11 = 0; + a19 = 1; + a21 = 10; + a20 = 1; + a0 = 1; + return -1; + } else if((((a3==1)&&((a20==1)&&((a1==14)&&((a16==9)&&((a17==2)&&((a23==1)||!(a11==1)))))))&&((((a19==1)&&((a21==10)&&((((((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9))))&&(input==4))&&!(a14==1))&&(a6==1))))&&!(a26==1))&&!(a24==1)))){ + a26 = 0; + a9 = 7; + a1 = 12; + a28 = 1; + a5 = 4; + a16 = 7; + a2 = 1; + return -1; + } else if((((a21==11)&&((a8==1)&&((a9==11)&&((((!(a3==1)&&((input==4)&&(a17==2)))&&(a18==1))&&!(a13==1))&&!(a23==1)))))&&((a19==3)&&(((!(a12==1)&&(((a13==1)&&(a20==1))&&(a16==8)))&&(a5==4))&&(a1==13))))){ + a25 = 1; + a21 = 10; + a7 = 1; + a9 = 8; + a16 = 10; + a12 = 0; + a5 = 5; + return 22; + } else if(((((a17==2)&&(((a12==1)&&!(a18==1))&&!(a27==1)))&&(a20==1))&&((a21==11)&&(!(a4==1)&&((a23==1)&&((((a2==1)&&((a1==13)&&(((input==4)&&(((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))))&&(a12==1))))&&(a19==2))&&(a16==8))))))){ + a1 = 12; + a16 = 7; + a21 = 10; + a3 = 1; + a19 = 1; + a5 = 4; + a28 = 1; + a0 = 0; + a9 = 7; + return -1; + } else if((((a17==2)&&(((a19==3)&&((((a9==8)&&(((a23==1)&&((a16==7)&&((a1==13)&&((input==5)&&((a5==6)||((a5==4)||(a5==5)))))))&&(a23==1)))&&(a2==1))&&!(a20==1)))&&(a21==12)))&&(((a11==1)&&((a23==1)||!(a11==1)))||!(a23==1)))){ + a18 = 0; + a5 = 6; + a20 = 1; + a2 = 1; + a1 = 14; + a0 = 0; + a21 = 11; + a9 = 11; + return 25; + } else if((((a17==2)&&(((((a5==4)||(a5==5))&&(input==1))&&(a2==1))&&!(a20==1)))&&(((a21==10)&&((a19==4)&&((a9==11)&&(!(a24==1)&&(((!(a18==1)&&(((a28==1)&&(a28==1))&&!(a7==1)))||(a24==1))&&(a1==13))))))&&(a16==10)))){ + a20 = 1; + a2 = 0; + a16 = 7; + a19 = 1; + a28 = 0; + a13 = 0; + a5 = 5; + a1 = 12; + return 21; + } else if((((a20==1)&&(((a19==3)&&(!(a11==1)&&((!(a13==1)&&((input==1)&&(a9==9)))&&(a1==13))))&&(a5==6)))&&((a17==2)&&(((((((a11==1)&&!(a3==1))&&!(a12==1))&&(a0==1))&&!(a23==1))&&(a21==10))&&(a16==11))))){ + a10 = 0; + a16 = 7; + a25 = 1; + a24 = 1; + a19 = 1; + a5 = 4; + a9 = 10; + a1 = 12; + return 21; + } else if(((((a21==12)&&(((a19==4)&&((input==1)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))&&!(a26==1)))&&(a12==1))&&(((a20==1)&&((a26==1)||((a17==2)&&((a16==7)&&(((a1==12)&&((a7==1)||(a2==1)))||(a4==1))))))||(a26==1)))){ + a7 = 0; + a16 = 8; + a28 = 1; + a5 = 6; + a9 = 8; + a13 = 1; + a19 = 1; + a1 = 14; + return 21; + } else if(((((((a14==1)||(!(a26==1)&&(a11==1)))&&!(a20==1))&&(a19==1))&&(a17==2))&&(!(a18==1)&&(!(a0==1)&&((a9==7)&&((!(a24==1)&&((a16==7)&&(((a1==12)&&((input==5)&&(a21==12)))&&(a23==1))))&&(a5==5))))))){ + a21 = 10; + a20 = 1; + a1 = 13; + a19 = 2; + a9 = 9; + a13 = 1; + a23 = 1; + a2 = 1; + return 25; + } else if((((a16==8)&&((((((a2==1)&&(a3==1))||(a26==1))&&(a1==13))||!(a28==1))&&(a5==5)))&&(((((((!(a18==1)&&((input==3)&&(a20==1)))&&(a3==1))&&(a21==11))&&(a6==1))&&(a9==9))&&(a17==2))&&(a19==3)))){ + a9 = 7; + a1 = 12; + a13 = 1; + a5 = 4; + a11 = 1; + a16 = 7; + a8 = 0; + a19 = 1; + a21 = 10; + return -1; + } else if(((((!(a8==1)&&((a28==1)&&((a23==1)&&!(a26==1))))&&(a20==1))&&(a16==7))&&((a21==12)&&((((a2==1)&&(((a19==2)&&(!(a18==1)&&((input==3)&&((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9))))))&&(a1==14)))&&!(a24==1))&&(a17==2))))){ + a6 = 1; + a19 = 1; + a21 = 10; + a12 = 1; + a5 = 4; + a1 = 12; + a9 = 7; + a23 = 1; + return -1; + } else if((((a1==14)&&((a21==11)&&(((a9==10)&&((((a19==3)&&((input==3)&&((a5==4)||(a5==5))))&&!(a7==1))&&(a11==1)))&&!(a14==1))))&&((a17==2)&&((a16==7)&&((a20==1)&&((((a3==1)&&(a11==1))&&!(a14==1))&&!(a14==1))))))){ + a16 = 8; + a1 = 13; + a3 = 1; + a12 = 1; + a5 = 5; + a19 = 2; + a9 = 7; + a14 = 0; + return 26; + } else if(((!(a4==1)&&((a17==2)&&((!(a7==1)&&(a13==1))&&(a6==1))))&&((a2==1)&&(((((a16==11)&&(!(a26==1)&&((a19==4)&&((a1==12)&&((input==4)&&((((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8))))))))&&(a21==10))&&(a20==1))&&!(a27==1))))){ + a13 = 1; + a9 = 11; + a6 = 1; + a19 = 3; + a16 = 7; + a23 = 1; + a5 = 4; + return 23; + } else if(((((!(a18==1)&&(((((a17==2)&&(((a5==5)||(a5==6))&&(input==1)))&&(a16==10))&&!(a26==1))&&(a11==1)))&&(a1==14))&&(a21==11))&&((!(a20==1)&&((a9==10)&&((((a18==1)||(a2==1))||!(a3==1))&&(a12==1))))&&(a19==5)))){ + a16 = 7; + a21 = 12; + a1 = 12; + a5 = 4; + a18 = 1; + a20 = 1; + a10 = 1; + return 25; + } else if(((((a2==1)&&((((a9==9)&&(!(a0==1)&&(((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&(a20==1))))&&(a17==2))&&(a11==1)))&&(a3==1))&&(!(a4==1)&&((a16==8)&&((((a21==12)&&((a12==1)&&(a1==14)))&&!(a7==1))&&(a19==1)))))){ + a11 = 1; + a1 = 12; + a9 = 7; + a16 = 7; + a26 = 0; + a21 = 10; + a23 = 1; + a5 = 4; + return -1; + } else if(((((a16==7)&&((((a19==2)&&((a11==1)&&((a5==4)&&((input==4)&&(a17==2)))))&&(a1==13))&&(a9==10)))&&!(a26==1))&&((a14==1)||(((a3==1)&&(((a27==1)||((a12==1)&&(a20==1)))&&(a21==10)))||(a26==1))))){ + a1 = 12; + a9 = 11; + a18 = 0; + a19 = 3; + a5 = 5; + return 23; + } else if((((a21==10)&&(((a9==11)&&(((a13==1)&&!(a18==1))&&(a5==5)))||!(a23==1)))&&(((((!(a18==1)&&((a17==2)&&((a1==14)&&(((input==1)&&(a16==8))&&(a20==1)))))&&!(a26==1))&&(a19==2))&&!(a14==1))&&(a28==1)))){ + a5 = 4; + a1 = 12; + a11 = 1; + a9 = 7; + a2 = 1; + a19 = 1; + a12 = 1; + a16 = 7; + return -1; + } else if(((!(a24==1)&&((((((a21==11)&&(a13==1))&&(a16==11))&&(a20==1))&&!(a27==1))||!(a12==1)))&&(((a19==4)&&((a12==1)&&(((((input==3)&&(((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))))&&(a1==12))&&(a2==1))&&(a17==2))))&&!(a18==1)))){ + a21 = 10; + a7 = 0; + a19 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + a14 = 0; + a23 = 1; + return -1; + } else if((((((((((a1==12)&&(!(a0==1)&&(a2==1)))&&!(a14==1))&&(a5==6))&&(a19==1))&&(a28==1))&&(a9==7))&&!(a20==1))&&(!(a26==1)&&(((!(a0==1)&&(!(a8==1)&&((a16==7)&&(input==5))))&&(a21==10))&&(a17==2))))){ + a28 = 1; + a20 = 1; + a6 = 1; + a23 = 1; + a5 = 4; + return -1; + } else if(((((((a20==1)&&(((a28==1)&&!(a4==1))&&(a1==14)))||(a24==1))&&(a21==12))&&(a17==2))&&((a12==1)&&((a13==1)&&((a16==9)&&(((((((a5==4)||(a5==5))&&(input==1))&&(a28==1))&&(a19==3))&&!(a14==1))&&(a9==7))))))){ + a26 = 0; + a21 = 10; + a1 = 12; + a6 = 1; + a19 = 1; + a28 = 1; + a5 = 4; + a16 = 7; + return -1; + } else if((((a1==14)&&((!(a8==1)&&(((((a20==1)&&((a23==1)&&(((a5==4)||(a5==5))&&(input==5))))&&(a21==10))&&(a16==8))&&(a6==1)))&&!(a18==1)))&&(((a26==1)||((!(a13==1)||((a19==5)&&(a6==1)))&&(a17==2)))&&(a9==11)))){ + a5 = 6; + a16 = 10; + a18 = 0; + a28 = 1; + a9 = 7; + a0 = 0; + a19 = 2; + return 21; + } else if((((a9==8)&&((((a19==5)&&((a7==1)||(((a28==1)&&((a16==10)&&((a28==1)&&(a17==2))))||(a24==1))))||!(a13==1))&&(a20==1)))&&((!(a26==1)&&((((a21==12)&&(input==4))&&!(a8==1))&&(a5==6)))&&(a1==13)))){ + a21 = 11; + a16 = 8; + a9 = 10; + a5 = 4; + a13 = 1; + a8 = 0; + a11 = 1; + a19 = 1; + return 25; + } else if(((!(a26==1)&&((a12==1)&&(((a9==10)&&((a17==2)&&((((a19==4)&&((a18==1)||(((a21==10)&&(a6==1))&&(a16==10))))&&!(a4==1))&&!(a20==1))))||(a4==1))))&&(!(a8==1)&&(((input==1)&&(a5==4))&&(a1==14))))){ + if((a3==1)){ + a1 = 12; + a19 = 1; + a8 = 1; + a16 = 7; + a20 = 1; + a23 = 0; + a9 = 7; + a6 = 0; + }else{ + a16 = 7; + a25 = 1; + a19 = 1; + a20 = 1; + a23 = 0; + a1 = 13; + a5 = 6; + a2 = 0; + } + return 21; + } else if(((!(a0==1)&&((a17==2)&&(((a11==1)&&((a6==1)&&((((input==4)&&(((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))&&(a21==12))&&(a20==1))))&&(a19==3))))&&(((a18==1)||(((a1==12)&&((a6==1)&&(a16==8)))&&(a3==1)))||(a27==1)))){ + a12 = 1; + a9 = 7; + a21 = 10; + a5 = 4; + a23 = 1; + a19 = 1; + a16 = 7; + return -1; + } else if((((a21==11)&&((!(a2==1)&&((((((((a6==1)&&(a26==1))&&!(a23==1))&&(a14==1))&&(a20==1))&&(a5==5))&&(a16==8))&&!(a23==1)))&&(a9==7)))&&((a27==1)&&((((a19==3)&&(input==1))&&(a17==2))&&(a1==13))))){ + a9 = 9; + a19 = 1; + a14 = 1; + a11 = 0; + a5 = 4; + a26 = 1; + return -1; + } else if((((a17==2)&&(((a9==7)&&(!(a27==1)&&(!(a20==1)&&(((a16==9)&&((a5==6)&&(input==3)))&&(a2==1)))))&&(a1==14)))&&((a19==1)&&((a2==1)&&(((!(a23==1)||((a4==1)||(a2==1)))&&!(a27==1))&&(a21==10)))))){ + if((a9==8)){ + a1 = 13; + a14 = 1; + a5 = 5; + a22 = 0; + a20 = 1; + a16 = 7; + a9 = 10; + a28 = 0; + }else{ + a19 = 5; + a16 = 7; + a20 = 1; + a5 = 5; + a23 = 0; + a7 = 1; + a0 = 1; + a21 = 11; + } + return 22; + } else if((((a8==1)&&((a20==1)&&(((a4==1)&&(((input==3)&&(a16==8))&&(a7==1)))&&(a24==1))))&&(!(a2==1)&&((((!(a13==1)&&(((a17==2)&&((a6==1)&&(a9==7)))&&(a1==12)))&&(a19==2))&&(a21==11))&&(a5==5))))){ + a9 = 9; + a1 = 14; + a21 = 10; + a13 = 0; + a15 = 1; + a19 = 1; + a16 = 7; + a22 = 0; + a5 = 6; + return -1; + } else if(((((!(a6==1)||((((a6==1)&&(a5==6))&&(a17==2))&&(a2==1)))||(a0==1))&&(a21==11))&&(((a9==11)&&(!(a26==1)&&((a1==14)&&(((((input==1)&&(a20==1))&&(a6==1))&&!(a14==1))&&(a16==10)))))&&(a19==2)))){ + a21 = 10; + a16 = 7; + a7 = 0; + a9 = 8; + a5 = 5; + a8 = 0; + return 22; + } else if(((!(a23==1)||((!(a24==1)&&(((a28==1)&&(a16==7))&&(a20==1)))&&(a1==14)))&&(((((a13==1)&&((((((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4)))&&(input==6))&&!(a26==1))&&(a17==2))&&(a19==4)))&&(a21==12))&&(a12==1))&&(a23==1)))){ + a16 = 9; + a4 = 0; + a9 = 9; + a1 = 13; + a19 = 3; + a14 = 0; + a5 = 6; + a23 = 1; + a21 = 11; + return 25; + } else if(((!(a7==1)&&((a2==1)&&((a21==12)&&((!(a8==1)&&(((((a5==4)&&(a1==14))&&(a9==7))||((((a5==5)&&(a1==13))&&(a9==11))||(((a5==6)&&(a1==13))&&(a9==11))))&&(input==6)))&&(a17==2)))))&&(!(a6==1)||(!(a20==1)&&((a19==3)&&(((a8==1)||((a6==1)&&(a16==7)))&&(a2==1))))))){ + a19 = 1; + a9 = 7; + a1 = 12; + a21 = 10; + a18 = 0; + a6 = 1; + a23 = 1; + a5 = 4; + a20 = 1; + return -1; + } else if(((((a17==2)&&((((a6==1)&&(a23==1))&&(a19==4))&&(a16==11)))&&(a1==13))&&((a6==1)&&((((a20==1)&&((((a13==1)&&(((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4)))&&(input==1)))&&!(a24==1))&&!(a26==1)))&&(a2==1))&&(a21==10))))){ + a27 = 0; + a5 = 4; + a9 = 8; + a1 = 12; + a21 = 11; + a0 = 0; + return 23; + } else if((((a16==9)&&(((a19==2)&&((((a13==1)&&(((a12==1)&&((a12==1)&&((a1==14)&&(input==3))))&&(a2==1)))&&(a17==2))&&!(a20==1)))&&(a9==7)))&&((a21==12)&&((!(a0==1)&&((a11==1)&&(a5==4)))||!(a11==1))))){ + a2 = 0; + a16 = 8; + a3 = 0; + a20 = 1; + a8 = 1; + a19 = 5; + a21 = 11; + return -1; + } else if((((a19==3)&&(((a1==14)&&((a16==9)&&(a11==1)))&&!(a20==1)))&&(((a9==10)&&(!(a27==1)&&(!(a4==1)&&((a28==1)&&((((((input==5)&&(a21==12))&&(a11==1))&&!(a0==1))&&!(a7==1))&&(a17==2))))))&&(a5==6)))){ + a1 = 12; + a23 = 0; + a11 = 0; + a22 = 0; + a9 = 7; + a19 = 2; + a20 = 1; + return -1; + } else if(((!(a4==1)&&((a18==1)||((a1==14)&&((a12==1)&&(a19==1)))))&&(((((a16==8)&&(((a21==12)&&(((a17==2)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==1)))&&!(a20==1)))&&(a3==1)))&&(a2==1))&&(a13==1))&&(a23==1)))){ + a21 = 11; + a13 = 0; + a29 = 0; + a1 = 13; + a20 = 1; + a19 = 5; + a9 = 11; + a8 = 1; + a5 = 6; + return 22; + } else if(((((((a19==5)&&((input==1)&&(a17==2)))&&!(a18==1))&&(a20==1))&&(a5==4))&&((((a1==13)&&((((a13==1)&&(((a12==1)&&((a2==1)||!(a23==1)))&&(a11==1)))||!(a13==1))&&(a16==8)))&&(a21==10))&&(a9==7)))){ + if((a24==1)){ + a13 = 1; + a20 = 0; + a9 = 10; + a16 = 7; + a21 = 12; + a2 = 1; + a1 = 12; + a18 = 0; + }else{ + a0 = 0; + a2 = 1; + a26 = 0; + } + return 25; + } else if(((((a21==11)&&(((input==4)&&(a16==7))&&!(a14==1)))&&(a9==9))&&((((a11==1)&&(!(a6==1)||((((a1==12)&&(!(a11==1)||(((a23==1)&&(a5==5))&&(a20==1))))&&!(a7==1))&&(a17==2))))&&(a19==1))&&!(a27==1)))){ + a19 = 5; + a7 = 0; + a21 = 12; + a1 = 13; + a28 = 1; + a9 = 11; + a18 = 0; + return 23; + } else if((((!(a18==1)&&(((a28==1)&&(!(a18==1)&&((a19==3)&&((((input==5)&&(((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))))&&(a16==10))&&(a21==11)))))&&!(a20==1)))&&(a23==1))&&(((((a23==1)&&(a17==2))&&(a1==14))&&!(a4==1))&&(a11==1)))){ + if((a3==1)){ + a19 = 1; + a16 = 8; + a8 = 1; + a1 = 13; + a29 = 0; + a9 = 8; + a5 = 6; + a20 = 1; + a0 = 1; + }else{ + a16 = 7; + a21 = 10; + a19 = 1; + a7 = 1; + a1 = 12; + a20 = 1; + a25 = 1; + a9 = 9; + a5 = 4; + a27 = 1; + } + return -1; + } else if((((a17==2)&&((a11==1)&&((a9==7)&&((((a11==1)&&((a13==1)&&((a19==3)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6))))))&&(a21==12))&&!(a0==1)))))&&(!(a20==1)&&(!(a6==1)||((((a1==12)&&(a13==1))||(a24==1))&&(a16==8)))))){ + a10 = 0; + a5 = 4; + a28 = 0; + a9 = 11; + a16 = 7; + a19 = 2; + a21 = 10; + a20 = 1; + return 25; + } else if((((((a1==14)&&((a13==1)&&(a21==11)))&&(a2==1))&&!(a20==1))&&((((((a13==1)&&((a5==6)&&((!(a0==1)&&(!(a24==1)&&((a19==4)&&(input==6))))&&(a17==2))))&&!(a26==1))&&(a16==7))&&!(a4==1))&&(a9==9)))){ + a24 = 0; + a1 = 13; + a16 = 10; + a20 = 1; + a5 = 5; + a27 = 0; + a19 = 2; + return 21; + } else if(((((a17==2)&&(((a21==11)&&((a11==1)&&((a23==1)&&(a1==14))))&&!(a4==1)))&&(a19==3))&&(((((a9==8)&&((a12==1)&&(!(a26==1)&&((a2==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4))))))&&!(a18==1))&&(a20==1))&&(a16==8)))){ + a1 = 12; + a9 = 7; + a28 = 1; + a16 = 7; + a19 = 1; + a6 = 1; + a21 = 10; + a5 = 4; + a3 = 1; + return -1; + } else if((((a2==1)&&((a9==7)&&(((a19==4)&&((a21==10)&&((a1==14)&&(((a11==1)&&((input==1)&&((a5==5)||(a5==6))))&&(a11==1)))))&&(a17==2))))&&((a26==1)||(((((a28==1)||!(a3==1))&&!(a20==1))&&(a16==7))&&!(a4==1))))){ + a1 = 12; + a24 = 0; + a26 = 0; + a5 = 4; + a20 = 1; + a28 = 1; + a19 = 1; + return -1; + } else if((((!(a14==1)&&(!(a18==1)&&(((!(a24==1)&&(((a5==6)&&(input==6))&&(a20==1)))&&(a19==2))&&(a6==1))))&&(a3==1))&&((a17==2)&&((((!(a8==1)&&((a9==10)&&(a12==1)))&&(a16==8))&&(a1==12))&&(a21==11))))){ + a4 = 0; + a23 = 1; + a19 = 1; + a21 = 10; + a6 = 1; + a5 = 4; + a16 = 7; + a9 = 7; + return -1; + } else if((((a23==1)&&((a3==1)&&(!(a24==1)&&((a21==12)&&(((input==4)&&((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4))))&&!(a14==1))))))&&(((a3==1)&&(((a17==2)&&((((a12==1)&&(a19==3))&&!(a20==1))&&(a16==9)))&&(a1==13)))&&(a13==1)))){ + a5 = 4; + a25 = 0; + a28 = 0; + a12 = 0; + a16 = 8; + a9 = 7; + return 25; + } else if((((a1==13)&&(((a16==11)&&((((a5==5)||(a5==6))&&(input==5))&&!(a27==1)))&&(a12==1)))&&(((((a2==1)&&(!(a12==1)||(((((a21==12)&&(a6==1))&&(a20==1))||(a26==1))||(a4==1))))&&(a9==10))&&(a19==1))&&(a17==2)))){ + a1 = 14; + a5 = 5; + a26 = 0; + a9 = 11; + a24 = 0; + a28 = 1; + a19 = 3; + return 25; + } else if((((a16==10)&&((((a19==1)&&(((!(a14==1)&&((a5==5)&&(input==3)))&&!(a0==1))&&(a21==12)))&&(a17==2))&&(a9==11)))&&(((a1==14)&&(((((a11==1)&&(a12==1))||!(a23==1))||!(a23==1))||!(a6==1)))&&!(a20==1)))){ + a1 = 12; + a9 = 7; + a20 = 1; + a13 = 0; + a16 = 9; + a23 = 0; + a3 = 0; + return -1; + } else if((((!(a7==1)&&(!(a11==1)||((a1==12)&&(((a28==1)&&(a21==12))||!(a11==1)))))&&(a16==9))&&((a19==3)&&((a17==2)&&((a28==1)&&((!(a20==1)&&((a13==1)&&(((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10)))&&(input==4))))&&!(a26==1))))))){ + a16 = 7; + a7 = 1; + a21 = 10; + a5 = 5; + a25 = 0; + a20 = 1; + a19 = 2; + a14 = 1; + a9 = 8; + return -1; + } else if((((a2==1)&&(((((((a5==4)||(a5==5))&&(input==1))&&(a16==9))&&(a6==1))&&(a9==11))&&(a19==4)))&&((a27==1)||((((a17==2)&&(((a1==14)&&((a6==1)&&((a12==1)&&(a6==1))))&&!(a20==1)))||!(a3==1))&&(a21==12))))){ + a1 = 13; + a21 = 11; + a16 = 10; + a20 = 1; + a19 = 2; + a10 = 1; + a14 = 1; + a3 = 0; + a5 = 4; + return -1; + } else if((((((!(a0==1)&&(((((a23==1)&&((input==1)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))&&!(a24==1))&&!(a7==1))&&(a16==7)))&&(a19==5))&&(a20==1))&&(a1==14))&&((a21==12)&&(((a14==1)||((a24==1)||(a13==1)))&&(a17==2))))){ + a5 = 5; + a7 = 0; + a18 = 0; + a16 = 9; + a8 = 0; + a1 = 12; + a19 = 1; + a9 = 11; + return 25; + } else if(((((((a28==1)&&((a20==1)&&((a19==5)&&((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))&&(input==3)))))&&!(a26==1))&&(a16==11))&&(a28==1))&&((a17==2)&&(!(a12==1)||((a1==14)&&((((a27==1)||(a2==1))&&(a21==11))&&!(a24==1))))))){ + a1 = 12; + a16 = 9; + a28 = 1; + a0 = 0; + a5 = 4; + a9 = 11; + a26 = 0; + return 21; + } else if(((!(a8==1)&&((a0==1)||((a19==4)&&((!(a18==1)&&((a23==1)&&(((a16==7)&&(a11==1))&&(a9==9))))&&(a17==2)))))&&(!(a20==1)&&(((a6==1)&&((a1==13)&&((((a5==5)||(a5==6))&&(input==6))&&(a6==1))))&&(a21==11))))){ + a14 = 0; + a9 = 10; + a20 = 1; + a28 = 1; + a1 = 14; + a21 = 10; + a19 = 1; + a5 = 5; + a16 = 9; + a0 = 0; + return 21; + } else if((((a5==6)&&(((a16==7)&&((a1==12)&&(((a9==7)&&(input==3))&&(a19==1))))&&(a17==2)))&&((a4==1)||(!(a23==1)||(((a18==1)||(((a21==12)&&(!(a20==1)&&((a13==1)&&(a12==1))))&&(a2==1)))||(a7==1)))))){ + a21 = 10; + a19 = 4; + a16 = 10; + a9 = 10; + a20 = 1; + a12 = 1; + a13 = 1; + a3 = 1; + a1 = 14; + a5 = 5; + return -1; + } else if((((((a21==10)&&(!(a14==1)&&(!(a0==1)&&((input==1)&&((a5==5)||(a5==6))))))&&!(a27==1))&&!(a7==1))&&(((((!(a11==1)||(!(a2==1)||(((a9==9)&&(a2==1))&&(a1==13))))&&(a17==2))&&!(a20==1))&&(a19==4))&&(a16==7)))){ + a19 = 1; + a4 = 0; + a5 = 4; + a14 = 0; + a23 = 1; + a20 = 1; + a1 = 12; + a9 = 7; + return -1; + } else if((((a9==9)&&((a1==13)&&((((a16==10)&&(((a19==1)&&(input==3))&&(a21==10)))&&!(a0==1))&&(a17==2))))&&((a7==1)||(((((a20==1)&&((a14==1)||((a12==1)&&(a5==6))))||!(a13==1))||(a4==1))&&(a28==1))))){ + a5 = 4; + a1 = 12; + a9 = 7; + a24 = 0; + a27 = 0; + a16 = 7; + return -1; + } else if((((((a9==10)&&((a21==12)&&((a24==1)||((a1==13)&&((a13==1)||!(a2==1))))))&&!(a20==1))&&(a19==1))&&((a16==9)&&((!(a4==1)&&(!(a26==1)&&(!(a27==1)&&(((a5==4)&&(input==4))&&!(a0==1)))))&&(a17==2))))){ + a26 = 1; + a20 = 1; + a1 = 12; + a19 = 4; + a5 = 6; + a16 = 10; + a14 = 1; + a27 = 1; + a9 = 8; + return 25; + } else if((((((input==4)&&((((a19==1)&&(((a5==5)&&(a1==14))&&(a9==11)))||((((a5==6)&&(a1==14))&&(a9==11))&&(a19==1)))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==2))))&&(a20==1))&&!(a7==1))&&(((a14==1)||(!(a18==1)&&((a14==1)||((a12==1)&&((((a16==7)&&(a23==1))&&(a21==11))&&(a17==2))))))&&!(a8==1)))){ + a21 = 10; + a5 = 4; + a19 = 1; + a7 = 0; + a13 = 1; + a1 = 12; + a4 = 0; + a9 = 7; + return -1; + } else if(((((a1==14)&&(!(a3==1)&&((a12==1)&&(a9==7))))&&(a26==1))&&((a27==1)&&((((a19==3)&&((a21==12)&&(!(a3==1)&&(((!(a2==1)&&((input==4)&&((a5==4)||(a5==5))))&&(a20==1))&&!(a2==1)))))&&(a17==2))&&(a16==9))))){ + a16 = 7; + a15 = 0; + a7 = 1; + a18 = 1; + a19 = 1; + a9 = 11; + a1 = 13; + a5 = 5; + return 22; + } else if(((((((((((a13==1)&&(a1==12))&&(a21==11))||(a24==1))||!(a6==1))&&(a9==10))||!(a13==1))||!(a28==1))&&(a19==2))&&((a16==10)&&((a17==2)&&(!(a20==1)&&((!(a27==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))&&(a3==1))))))){ + a0 = 1; + a1 = 13; + a7 = 1; + a16 = 11; + a9 = 11; + a19 = 5; + a5 = 4; + a29 = 0; + a21 = 12; + a20 = 1; + return -1; + } else if(((!(a26==1)&&((a16==7)&&(((a9==9)&&((a3==1)&&!(a4==1)))||!(a3==1))))&&((!(a18==1)&&((a17==2)&&((a21==12)&&((((a19==2)&&((a1==13)&&(((a5==5)||(a5==6))&&(input==4))))&&(a20==1))&&(a11==1)))))&&(a6==1)))){ + a19 = 1; + a23 = 1; + a27 = 0; + a5 = 4; + a1 = 12; + a9 = 7; + a4 = 0; + a21 = 10; + return -1; + } else if(((((a19==2)&&((((((a5==4)||(a5==5))&&(input==1))&&!(a26==1))&&!(a7==1))&&!(a0==1)))&&(a17==2))&&((a9==7)&&((a21==12)&&((a1==14)&&((((a20==1)&&(((a8==1)||(a3==1))&&!(a18==1)))&&!(a0==1))&&(a16==11))))))){ + a14 = 0; + a1 = 12; + a2 = 1; + a0 = 0; + a5 = 4; + a21 = 10; + a19 = 1; + a16 = 7; + return -1; + } else if((((a2==1)&&(!(a0==1)&&(!(a14==1)&&(((!(a20==1)&&(((a19==1)&&((a9==9)&&(input==5)))&&(a11==1)))&&(a3==1))&&(a5==4)))))&&(((a1==14)&&(((a17==2)&&((a16==11)&&(a28==1)))&&(a21==10)))||!(a12==1)))){ + a15 = 1; + a6 = 0; + a16 = 7; + a19 = 2; + a1 = 12; + a13 = 0; + a20 = 1; + return -1; + } else if(((!(a0==1)&&((a21==11)&&(((a0==1)||((a12==1)&&!(a20==1)))&&(a17==2))))&&(((a6==1)&&((((a16==9)&&((a12==1)&&(((((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(input==4))&&(a3==1))))&&(a1==13))&&(a19==1)))&&(a12==1)))){ + a21 = 10; + a16 = 10; + a5 = 4; + a11 = 0; + a9 = 7; + a14 = 1; + a25 = 1; + a19 = 2; + return -1; + } else if((((a21==12)&&((((a28==1)||(a18==1))&&!(a4==1))&&(a2==1)))&&(((a9==9)&&((a28==1)&&((a16==8)&&((((a17==2)&&((a3==1)&&(((input==5)&&(a20==1))&&(a5==6))))&&(a28==1))&&(a1==13)))))&&(a19==3)))){ + a13 = 1; + a16 = 7; + a0 = 0; + a21 = 10; + a5 = 4; + a14 = 0; + a19 = 2; + return 25; + } else if((((a9==8)&&((((a11==1)&&(!(a24==1)&&((a12==1)&&(((a17==2)&&((input==5)&&((a5==4)||(a5==5))))&&(a16==8)))))&&(a3==1))&&(a19==4)))&&(!(a28==1)||((((a21==11)&&((a3==1)||(a27==1)))&&(a1==13))&&(a20==1))))){ + a5 = 4; + a3 = 1; + a13 = 1; + a9 = 7; + a21 = 10; + a19 = 1; + a1 = 12; + a16 = 7; + a26 = 0; + return -1; + } else if((((!(a20==1)&&((a9==10)&&((((input==5)&&(a21==12))&&(a19==5))&&(a12==1))))&&(a5==4))&&(((a23==1)&&(((((a28==1)&&((a14==1)||((a1==12)&&(a6==1))))&&(a16==10))&&!(a24==1))&&(a17==2)))&&!(a14==1)))){ + a1 = 13; + a14 = 1; + a16 = 7; + a25 = 0; + a10 = 0; + a19 = 2; + a20 = 1; + a9 = 9; + a5 = 5; + a21 = 11; + return 21; + } else if((((a20==1)&&((a17==2)&&((((input==1)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(a3==1))&&(a21==12))))&&((!(a27==1)&&((a16==11)&&((((a1==12)&&(!(a6==1)||((a11==1)&&(a11==1))))||(a8==1))||!(a23==1))))&&(a19==4)))){ + a14 = 0; + a19 = 1; + a9 = 7; + a21 = 10; + a26 = 0; + a8 = 0; + a5 = 4; + a16 = 7; + return -1; + } else if((((((((a1==14)&&(!(a4==1)&&(((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11)))&&(input==6))))&&(a6==1))&&(a3==1))&&(a16==7))&&!(a20==1))&&(((((((a28==1)&&(a21==12))&&(a19==5))&&!(a26==1))||!(a11==1))&&(a17==2))||(a18==1)))){ + a5 = 5; + a19 = 3; + a9 = 11; + a20 = 1; + a2 = 1; + a1 = 12; + a6 = 1; + a16 = 9; + a7 = 0; + a21 = 10; + return 25; + } else if((((a21==11)&&((a16==7)&&((a9==10)&&(((a19==4)&&(((a5==4)&&((a17==2)&&(input==6)))&&(a28==1)))&&(a1==12)))))&&(!(a6==1)||((((!(a3==1)||((a11==1)&&!(a20==1)))&&!(a24==1))||!(a23==1))||!(a28==1))))){ + a20 = 1; + a8 = 0; + a11 = 1; + a21 = 10; + a9 = 7; + a27 = 0; + a19 = 1; + return -1; + } else if((((!(a3==1)||((a19==2)&&((a28==1)&&(a21==12))))&&(a9==9))&&(((a12==1)&&(((a17==2)&&(!(a27==1)&&((((a16==7)&&(((input==6)&&((a5==5)||(a5==6)))&&(a20==1)))&&!(a27==1))&&!(a26==1))))&&!(a14==1)))&&(a1==13)))){ + if((a29==1)){ + a19 = 1; + a21 = 11; + a7 = 0; + a9 = 8; + a1 = 12; + a27 = 0; + a14 = 0; + a20 = 0; + a5 = 6; + }else{ + a16 = 9; + a5 = 5; + a3 = 1; + a18 = 0; + a19 = 3; + a1 = 12; + a9 = 11; + a4 = 0; + a21 = 10; + } + return 25; + } else if(((!(a24==1)&&((a0==1)||(((a11==1)&&((a16==7)&&((a13==1)&&((a3==1)&&(a19==1)))))&&(a23==1))))&&((a17==2)&&(!(a14==1)&&((a20==1)&&(((input==4)&&((((a5==6)&&(a1==13))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==14)))))&&(a21==12))))))){ + a21 = 10; + a5 = 4; + a23 = 1; + a9 = 7; + a1 = 12; + a28 = 1; + return -1; + } else if(((!(a20==1)&&((((((input==6)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&!(a26==1))&&(a23==1))&&(a19==4))&&!(a18==1)))&&((a21==11)&&((a1==13)&&((a7==1)||(((a16==10)&&((a17==2)&&((a28==1)&&(a12==1))))&&(a11==1))))))){ + a20 = 1; + a5 = 5; + a11 = 0; + a16 = 7; + a21 = 10; + a19 = 1; + a12 = 0; + a1 = 12; + a9 = 9; + a3 = 0; + return -1; + } else if((((((a9==10)&&((a5==6)&&((a2==1)&&(a28==1))))||(a26==1))&&(a2==1))&&(!(a7==1)&&((((!(a14==1)&&((((a20==1)&&((input==3)&&(a17==2)))&&(a16==10))&&(a19==3)))&&(a21==10))&&(a1==14))&&!(a18==1))))){ + a1 = 12; + a9 = 7; + a2 = 1; + a16 = 7; + a13 = 1; + a19 = 1; + a5 = 4; + a0 = 0; + return -1; + } else if(((!(a20==1)&&(((!(a0==1)&&((a13==1)&&((a16==8)&&(((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a5==4)&&(a9==11)))&&(input==5)))))&&!(a24==1))&&!(a26==1)))&&((((a21==12)&&((a23==1)&&((a2==1)&&((a2==1)&&(a17==2)))))&&(a1==12))&&(a19==4)))){ + a11 = 0; + a19 = 1; + a21 = 11; + a16 = 11; + a1 = 13; + a9 = 8; + a20 = 1; + a25 = 0; + a5 = 6; + return -1; + } else if((((a21==10)&&((a13==1)&&((a1==13)&&((a23==1)&&(a12==1)))))&&(((!(a20==1)&&((a13==1)&&((a16==7)&&((a17==2)&&(((a19==4)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==1)))&&!(a4==1))))))&&(a3==1))&&!(a26==1)))){ + a5 = 5; + a20 = 1; + a9 = 9; + a4 = 0; + a28 = 1; + a1 = 14; + a18 = 0; + a16 = 10; + return 22; + } else if(((((((!(a4==1)&&(!(a13==1)||(a28==1)))&&(a6==1))&&(a19==1))&&(a1==13))&&!(a20==1))&&((((a9==11)&&(!(a8==1)&&((a23==1)&&((a5==5)&&(((input==3)&&(a17==2))&&(a23==1))))))&&(a21==10))&&(a16==9)))){ + a9 = 9; + a22 = 1; + a16 = 10; + a21 = 11; + a24 = 1; + return -1; + } else if(((!(a28==1)||((a20==1)&&((((a16==8)&&(!(a0==1)&&((a28==1)&&!(a26==1))))&&(a19==5))&&(a17==2))))&&((a11==1)&&(((a1==12)&&(!(a0==1)&&((a13==1)&&(((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a5==4)&&(a9==11)))&&(input==1)))))&&(a21==12))))){ + a9 = 7; + a18 = 0; + a6 = 1; + a24 = 0; + a19 = 1; + a16 = 7; + a5 = 4; + a21 = 10; + return -1; + } else if(((!(a23==1)||(!(a18==1)&&(!(a4==1)&&(!(a20==1)&&(a3==1)))))&&((a21==12)&&(((a1==12)&&((a19==1)&&((!(a27==1)&&((((a9==9)&&(((a5==4)||(a5==5))&&(input==1)))&&(a28==1))&&(a23==1)))&&(a16==9))))&&(a17==2))))){ + if((a12==1)){ + a19 = 2; + a1 = 13; + a9 = 8; + a16 = 7; + a14 = 1; + a18 = 1; + a20 = 1; + a28 = 0; + a5 = 6; + }else{ + a9 = 10; + a22 = 1; + a28 = 0; + a5 = 6; + a23 = 0; + a21 = 10; + a20 = 1; + a1 = 14; + a16 = 7; + } + return -1; + } else if(((((a16==7)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&!(a27==1)))&&(a1==14))&&(((a21==10)&&((a0==1)||((((a17==2)&&((((a9==11)&&((a3==1)||(a26==1)))&&(a20==1))&&(a23==1)))||(a8==1))||(a4==1))))&&(a19==2)))){ + a26 = 0; + a28 = 1; + a19 = 4; + a9 = 10; + a5 = 6; + a0 = 0; + return 25; + } else if((((a11==1)&&(((a3==1)&&((((a17==2)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1)))&&(a20==1))&&(a16==10)))&&!(a4==1)))&&(((((((a9==8)&&((a2==1)&&(a19==2)))||(a27==1))||(a14==1))&&(a1==13))&&(a21==11))&&(a2==1)))){ + a1 = 14; + a19 = 1; + a7 = 0; + a11 = 1; + a9 = 7; + a5 = 6; + a16 = 11; + a12 = 1; + return 23; + } else if(((((a17==2)&&(!(a13==1)||(((a6==1)||(a4==1))&&!(a18==1))))&&(a16==10))&&((!(a8==1)&&((((a21==10)&&((((((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(input==3))&&(a3==1))&&(a19==5)))&&(a1==12))&&(a13==1)))&&!(a20==1)))){ + a2 = 0; + a5 = 6; + a3 = 0; + a16 = 7; + a10 = 1; + a1 = 14; + a20 = 1; + a9 = 9; + a19 = 1; + return -1; + } else if((((((a21==11)&&((a13==1)&&((a20==1)&&((a2==1)&&(a9==8)))))||(a18==1))&&(a19==1))&&(((a5==6)&&((a17==2)&&(!(a18==1)&&(!(a27==1)&&((a12==1)&&((a16==7)&&((a1==14)&&(input==5))))))))&&!(a18==1)))){ + a26 = 0; + a20 = 0; + a1 = 12; + a13 = 1; + a21 = 10; + a24 = 0; + a19 = 5; + a9 = 11; + a16 = 8; + return 25; + } else if(((((a19==4)&&(!(a24==1)&&(!(a20==1)&&((((a16==10)&&(((input==3)&&(a17==2))&&(a21==10)))&&(a3==1))&&(a11==1)))))&&(a9==9))&&((((!(a18==1)&&((a6==1)&&(a5==6)))&&(a1==12))&&!(a24==1))||!(a11==1)))){ + if((a8==1)){ + a15 = 0; + a6 = 0; + a9 = 10; + a25 = 0; + a20 = 1; + a16 = 9; + a1 = 13; + a19 = 5; + }else{ + a6 = 0; + a9 = 10; + a20 = 1; + a16 = 11; + a1 = 13; + a5 = 5; + a27 = 1; + a29 = 0; + a19 = 2; + a21 = 11; + } + return -1; + } else if(((((a16==11)&&((a17==2)&&((input==5)&&((((a19==1)&&((a9==11)&&((a1==14)&&(a5==6))))||((a19==2)&&(((a1==12)&&(a5==4))&&(a9==7))))||((a19==2)&&(((a1==12)&&(a5==5))&&(a9==7)))))))&&!(a4==1))&&((a20==1)&&((((((!(a14==1)&&(a23==1))&&!(a8==1))||(a14==1))&&(a21==11))||!(a13==1))||!(a6==1))))){ + a2 = 1; + a21 = 10; + a26 = 0; + a19 = 2; + a1 = 14; + a5 = 4; + a9 = 10; + a16 = 9; + a11 = 1; + return 21; + } else if((((a19==3)&&((((a17==2)&&(((a12==1)&&((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==4)))&&!(a0==1)))&&(a6==1))&&(a23==1)))&&(((a21==11)&&((!(a20==1)&&((a12==1)&&(!(a4==1)&&(a12==1))))&&(a16==10)))&&(a1==14)))){ + a29 = 0; + a19 = 1; + a1 = 12; + a22 = 1; + a9 = 9; + a5 = 6; + a16 = 7; + a21 = 10; + a24 = 1; + a20 = 1; + return 23; + } else if((((a0==1)||(((((a21==11)&&(!(a8==1)&&(a2==1)))||(a8==1))||!(a28==1))&&(a17==2)))&&((a16==10)&&(!(a20==1)&&((a13==1)&&((!(a26==1)&&(((input==6)&&(((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))))&&(a1==14)))&&(a19==3))))))){ + if((a21==10)){ + a1 = 13; + a3 = 0; + a8 = 1; + a5 = 5; + a9 = 7; + a25 = 1; + a16 = 8; + a20 = 1; + a21 = 12; + a19 = 4; + }else{ + a8 = 1; + a16 = 7; + a5 = 5; + a21 = 10; + a15 = 1; + a9 = 10; + a19 = 1; + a11 = 0; + a20 = 1; + } + return 21; + } else if((((a9==11)&&((((a1==14)&&(((a11==1)||!(a6==1))&&(a21==11)))||!(a13==1))&&(a16==8)))&&((a17==2)&&(((((a19==4)&&((!(a20==1)&&((input==5)&&(a5==6)))&&!(a4==1)))&&(a3==1))&&(a13==1))&&!(a14==1))))){ + a20 = 1; + a19 = 1; + a9 = 7; + a5 = 4; + a1 = 12; + a16 = 7; + a21 = 10; + a24 = 0; + a28 = 1; + a0 = 0; + return -1; + } else if(((((a17==2)&&(!(a24==1)&&((a28==1)&&((a19==3)&&(a11==1)))))&&(a16==8))&&((((a21==12)&&((a1==12)&&((a9==11)&&(((((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&(a28==1))&&!(a26==1))&&!(a8==1)))))&&!(a27==1))&&!(a20==1)))){ + a15 = 1; + a21 = 10; + a16 = 7; + a4 = 1; + a2 = 0; + a9 = 8; + a20 = 1; + a1 = 14; + a5 = 5; + a19 = 1; + return -1; + } else if(((((((a13==1)&&!(a4==1))&&(a9==11))&&(a19==3))&&(a23==1))&&((!(a14==1)&&((((a17==2)&&(((((a11==1)&&((a1==13)&&(input==1)))&&!(a26==1))&&!(a7==1))&&(a16==8)))&&(a5==5))&&!(a20==1)))&&(a21==11)))){ + a1 = 12; + a0 = 0; + a21 = 10; + a13 = 1; + a20 = 1; + a19 = 1; + a16 = 7; + a2 = 1; + a9 = 7; + a5 = 4; + return -1; + } else if((((((((a9==7)&&((a16==10)&&((a6==1)&&(a23==1))))&&!(a20==1))&&(a21==11))&&(a19==1))||!(a12==1))&&((a2==1)&&(((((!(a7==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))&&(a17==2))&&(a6==1))&&(a11==1))&&(a1==14))))){ + a16 = 7; + a15 = 0; + a10 = 1; + a21 = 10; + a5 = 6; + a8 = 1; + a1 = 13; + a9 = 9; + a20 = 1; + return 23; + } else if((((a17==2)&&((a19==3)&&((a21==12)&&(a6==1))))&&((a8==1)&&(!(a3==1)&&(!(a28==1)&&((!(a11==1)&&(((!(a2==1)&&((input==5)&&((((a1==13)&&(a5==6))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==14))))))&&(a7==1))&&(a16==10)))&&(a20==1))))))){ + a15 = 1; + a9 = 9; + a19 = 4; + a16 = 9; + a21 = 10; + a7 = 1; + a1 = 14; + a5 = 5; + a18 = 1; + return -1; + } else if((((a21==10)&&((a1==14)&&(((a28==1)&&((a20==1)&&(a28==1)))&&(a19==3))))&&((!(a26==1)&&(!(a7==1)&&(!(a8==1)&&((a13==1)&&((a16==9)&&((a17==2)&&((input==1)&&(((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))))))))))&&!(a24==1)))){ + a6 = 1; + a16 = 8; + a23 = 1; + a5 = 4; + a19 = 5; + a26 = 0; + a20 = 0; + a1 = 12; + a9 = 7; + return 25; + } else if(((((a19==1)&&(((a9==7)&&((a12==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3))))&&(a16==10)))&&(a2==1))&&((a0==1)||(((((a1==14)&&((a17==2)&&(!(a20==1)&&(!(a18==1)&&(a6==1)))))&&!(a18==1))&&(a21==10))||(a14==1))))){ + if((a25==1)){ + a19 = 5; + a21 = 11; + a9 = 11; + a2 = 0; + a16 = 8; + a11 = 0; + a20 = 1; + a5 = 5; + a25 = 0; + }else{ + a19 = 3; + a21 = 12; + a9 = 8; + a5 = 6; + a10 = 0; + a1 = 12; + a11 = 0; + } + return 26; + } else if((((((!(a24==1)&&(((a19==3)&&((a3==1)&&!(a4==1)))&&(a17==2)))&&!(a4==1))||(a14==1))&&!(a24==1))&&(((((a21==12)&&((a1==14)&&((input==6)&&(((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))))))&&!(a20==1))&&(a16==10))&&!(a4==1)))){ + a15 = 1; + a23 = 0; + a21 = 10; + a20 = 1; + a1 = 12; + a6 = 0; + a16 = 7; + a5 = 6; + a9 = 10; + a19 = 4; + return -1; + } else if((((((a17==2)&&((!(a24==1)&&((input==4)&&(a16==9)))&&!(a18==1)))&&(a9==11))&&(a21==12))&&((a19==5)&&((a5==6)&&(!(a28==1)||((!(a12==1)||(((a23==1)&&((a13==1)&&!(a20==1)))||!(a23==1)))&&(a1==14))))))){ + a19 = 4; + a26 = 1; + a15 = 0; + a9 = 7; + a1 = 13; + a5 = 4; + a16 = 7; + a21 = 11; + a29 = 1; + return -1; + } else if(((((a19==2)&&((a21==10)&&((((a17==2)&&(((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))&&(input==6))&&!(a18==1)))&&(a16==10))&&(a1==12))))&&!(a14==1))&&(!(a6==1)||((!(a13==1)||(((a13==1)||!(a3==1))||!(a13==1)))&&!(a20==1))))){ + a21 = 12; + a9 = 11; + a5 = 6; + a19 = 1; + a13 = 0; + a1 = 14; + a15 = 1; + a16 = 7; + a22 = 0; + return -1; + } else if((((a9==7)&&((a21==11)&&((a1==14)&&((a16==10)&&((!(a14==1)&&(((a5==5)||(a5==6))&&(input==1)))&&(a11==1))))))&&((!(a3==1)||((a19==5)&&(!(a20==1)&&((((a17==2)&&(a2==1))||!(a11==1))&&(a2==1)))))&&!(a27==1)))){ + a5 = 5; + a12 = 0; + a10 = 0; + a19 = 1; + a21 = 10; + a23 = 0; + a20 = 1; + a9 = 11; + a16 = 8; + return 21; + } else if((((a13==1)&&(!(a7==1)&&(!(a18==1)&&((a9==10)&&((a20==1)&&(((((a21==11)&&(input==5))&&(a17==2))&&(a1==12))&&(a16==7)))))))&&((!(a3==1)||(((a5==4)&&((a19==1)&&(a11==1)))&&(a13==1)))||(a14==1)))){ + a9 = 7; + a27 = 0; + a7 = 0; + a21 = 10; + a26 = 0; + return -1; + } else if((((a21==11)&&((a1==14)&&(a12==1)))&&(!(a18==1)&&(((!(a26==1)&&(((((((a20==1)&&((a19==2)&&((input==5)&&(a5==5))))&&(a16==7))&&!(a7==1))&&(a17==2))&&(a9==9))&&!(a4==1)))&&!(a7==1))&&!(a7==1))))){ + a5 = 4; + a8 = 0; + a4 = 0; + a1 = 12; + a21 = 10; + a27 = 0; + a19 = 1; + a9 = 7; + return -1; + } else if(((((!(a27==1)&&(!(a14==1)&&(((input==4)&&(a19==4))&&(a21==12))))&&(a23==1))&&(a16==10))&&((a17==2)&&(((a20==1)&&((a8==1)||((((a1==13)&&((a13==1)||(a8==1)))&&(a5==6))&&(a9==9))))&&!(a18==1))))){ + a21 = 10; + a23 = 1; + a16 = 7; + a5 = 4; + a11 = 1; + a12 = 1; + a9 = 7; + a19 = 1; + a1 = 12; + return -1; + } else if(((((a2==1)&&((((a5==5)||(a5==6))&&(input==1))&&!(a26==1)))&&(a17==2))&&(((a19==5)&&((a28==1)&&(((((a1==13)&&((a16==9)&&((a21==10)&&((a12==1)&&!(a0==1)))))&&(a11==1))&&!(a20==1))||!(a3==1))))&&(a9==9)))){ + a4 = 1; + a10 = 0; + a20 = 1; + a16 = 11; + a9 = 10; + a13 = 0; + a21 = 12; + a5 = 6; + return -1; + } else if((((a1==14)&&(!(a6==1)||(((!(a7==1)&&((!(a28==1)||(a13==1))||!(a3==1)))&&(a16==10))&&(a19==4))))&&(((((((input==5)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5))))&&(a21==12))&&!(a18==1))&&!(a0==1))&&!(a20==1))&&(a17==2)))){ + a16 = 7; + a1 = 13; + a19 = 2; + a21 = 10; + a29 = 0; + a22 = 0; + a9 = 7; + a20 = 1; + a5 = 4; + a15 = 0; + return 26; + } else if((((a21==12)&&((a13==1)&&(((a19==1)&&((a3==1)&&((a11==1)&&((input==6)&&(a20==1)))))&&(a16==9))))&&((!(a0==1)&&((a17==2)&&((a1==12)&&((a9==11)&&((a5==4)&&((a3==1)&&!(a26==1)))))))||(a18==1)))){ + a3 = 1; + a23 = 1; + a16 = 8; + a5 = 6; + a1 = 14; + a9 = 8; + return 21; + } else if(((((a17==2)&&(!(a28==1)||(((a6==1)&&(a20==1))||!(a6==1))))||(a24==1))&&(!(a4==1)&&(!(a14==1)&&(((a12==1)&&(((((a21==11)&&((input==5)&&((a5==4)||(a5==5))))&&(a16==7))&&(a1==13))&&(a9==11)))&&(a19==1)))))){ + a5 = 4; + a24 = 0; + a16 = 8; + a9 = 10; + a23 = 1; + a21 = 10; + a12 = 1; + return 23; + } else if(((!(a28==1)||((a6==1)&&(!(a28==1)||((a16==7)&&((((a28==1)&&(a17==2))&&!(a24==1))||(a8==1))))))&&((a21==10)&&((((((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==3))&&!(a26==1))&&(a19==5))&&(a20==1))&&(a1==14))))){ + a5 = 4; + a2 = 1; + a1 = 12; + a13 = 1; + a19 = 1; + a11 = 1; + a9 = 7; + return -1; + } else if((((a19==1)&&(((!(a18==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a16==11)))&&!(a27==1))&&(a21==10)))&&(((a20==1)&&(((a9==7)&&(((!(a28==1)||((a2==1)&&(a23==1)))||(a7==1))&&(a17==2)))&&!(a7==1)))&&(a1==13)))){ + a4 = 0; + a16 = 7; + a5 = 4; + a26 = 0; + a1 = 12; + a2 = 1; + return -1; + } else if((((a12==1)&&((a11==1)&&((a19==5)&&(!(a26==1)&&((((((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4)))&&(input==4))&&(a23==1))))))&&(((a21==11)&&((a20==1)&&(!(a26==1)&&((a1==13)&&(((a17==2)&&(a28==1))&&(a16==9))))))&&(a28==1)))){ + a12 = 1; + a9 = 7; + a19 = 1; + a21 = 10; + a16 = 7; + a1 = 12; + a5 = 4; + a23 = 1; + return -1; + } else if(((((!(a27==1)&&(!(a26==1)&&(((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&(a2==1))))&&(a20==1))&&(a11==1))&&(((a19==3)&&((((a9==9)&&(((a21==11)&&((a23==1)&&(a17==2)))&&(a16==10)))&&(a2==1))&&!(a8==1)))&&(a1==12)))){ + a2 = 1; + a1 = 13; + a12 = 1; + a16 = 7; + a5 = 5; + a21 = 10; + a19 = 2; + a14 = 0; + return 23; + } else if((((a19==4)&&(((a12==1)&&((a1==12)&&(((((a12==1)&&((input==4)&&(((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))))&&(a12==1))&&!(a26==1))&&!(a20==1))))&&(a16==11)))&&(!(a11==1)||((((a6==1)&&(a21==10))&&!(a24==1))&&(a17==2))))){ + a20 = 1; + a19 = 2; + a13 = 0; + a5 = 6; + a18 = 1; + a0 = 1; + a21 = 12; + a9 = 9; + a1 = 14; + a16 = 7; + return 25; + } else if((((a13==1)&&((((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a17==2))&&(a11==1)))&&(!(a11==1)||((a19==1)&&((!(a28==1)||((a11==1)&&((a21==10)&&((a1==12)&&((!(a20==1)&&((a9==9)&&(a13==1)))&&!(a0==1))))))&&(a16==9)))))){ + a9 = 7; + a1 = 13; + a19 = 3; + a18 = 1; + a5 = 5; + a14 = 1; + a13 = 0; + a16 = 11; + return -1; + } else if((((a2==1)&&((a26==1)||(((a21==10)&&(((a17==2)&&(((a12==1)&&(((a11==1)&&(a19==4))&&(a9==10)))&&(a5==4)))||!(a2==1)))&&(a16==7))))&&(((!(a20==1)&&((a1==14)&&(input==6)))&&(a28==1))&&!(a27==1)))){ + a16 = 9; + a19 = 5; + a5 = 5; + a21 = 11; + a8 = 0; + a3 = 1; + a20 = 1; + a9 = 11; + a18 = 0; + return 21; + } else if((((a21==10)&&((!(a27==1)&&(((a16==9)&&(((((a5==4)||(a5==5))&&(input==3))&&(a9==11))&&!(a0==1)))&&(a1==12)))&&(a12==1)))&&(((a20==1)&&(((((a6==1)&&(a17==2))&&(a19==3))&&(a6==1))&&(a23==1)))&&!(a24==1)))){ + if((a23==1)){ + a21 = 11; + a5 = 6; + a16 = 7; + a20 = 0; + a19 = 1; + a12 = 1; + a9 = 9; + a26 = 0; + a1 = 13; + }else{ + a1 = 13; + a19 = 5; + a24 = 0; + a9 = 9; + a5 = 6; + a13 = 1; + a16 = 10; + a12 = 1; + a21 = 12; + } + return 26; + } else if(((!(a14==1)&&((!(a24==1)&&((((a23==1)&&((input==1)&&((a5==5)||(a5==6))))&&(a21==11))&&(a9==8)))&&!(a20==1)))&&((a17==2)&&(!(a7==1)&&((a19==4)&&((a16==8)&&((a1==13)&&(!(a18==1)&&((a11==1)&&(a6==1)))))))))){ + a27 = 0; + a12 = 1; + a16 = 7; + a9 = 7; + a20 = 1; + a21 = 10; + a1 = 12; + a19 = 1; + a5 = 4; + return -1; + } else if((((a16==8)&&((((a1==14)&&(((input==1)&&((a5==4)||(a5==5)))&&(a21==10)))&&(a2==1))&&(a2==1)))&&(!(a20==1)&&((a19==4)&&((a9==11)&&((a13==1)&&((a6==1)&&((((a17==2)&&(a3==1))||(a18==1))&&(a6==1))))))))){ + a5 = 6; + a21 = 12; + a2 = 1; + a9 = 10; + a19 = 3; + a20 = 1; + a0 = 0; + a24 = 0; + a16 = 9; + return 21; + } else if(((((a11==1)&&(((a1==13)&&((a2==1)&&(!(a27==1)&&(((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8)))&&(input==1)))))&&!(a26==1)))&&(a21==12))&&((((((a17==2)&&((a20==1)&&(a28==1)))||(a7==1))||!(a2==1))&&(a16==10))&&(a19==4)))){ + a19 = 1; + a1 = 12; + a9 = 7; + a5 = 4; + a18 = 0; + a21 = 10; + a23 = 1; + a16 = 7; + a8 = 0; + return -1; + } else if((((a17==2)&&((a12==1)&&(((a9==10)&&((((a2==1)&&((input==1)&&(a5==6)))&&(a20==1))&&(a28==1)))&&(a16==7))))&&((a19==5)&&((a1==12)&&(((a21==10)&&(!(a12==1)||((a3==1)&&!(a18==1))))&&!(a24==1)))))){ + a23 = 1; + a5 = 4; + a1 = 13; + a19 = 2; + a2 = 1; + a9 = 9; + a26 = 0; + a21 = 12; + return 21; + } else if((((!(a8==1)&&(((input==4)&&(a1==13))&&(a9==9)))&&(a17==2))&&((((!(a26==1)&&(((a2==1)&&((a5==6)&&((((a28==1)&&(a11==1))&&(a23==1))&&!(a26==1))))&&(a19==1)))&&(a16==9))&&!(a20==1))&&(a21==12)))){ + a0 = 1; + a29 = 1; + a15 = 1; + return -1; + } else if(((!(a18==1)&&(!(a20==1)&&(!(a2==1)||((a19==5)&&((a16==7)&&(((a23==1)||(a14==1))||(a26==1)))))))&&((a1==14)&&(((a17==2)&&(!(a8==1)&&((a21==10)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==1)))))&&!(a14==1))))){ + a20 = 1; + a19 = 1; + a28 = 1; + a5 = 4; + a6 = 1; + a9 = 7; + a1 = 12; + a23 = 1; + return -1; + } else if((((a19==1)&&((a16==11)&&(((a21==10)&&(((a23==1)&&(a11==1))&&(a11==1)))||!(a11==1))))&&((a17==2)&&((a1==12)&&(((a12==1)&&((((a6==1)&&((input==3)&&(a5==6)))&&(a9==8))&&(a2==1)))&&!(a20==1)))))){ + a23 = 0; + a19 = 2; + a25 = 0; + a16 = 7; + a13 = 0; + a9 = 7; + a20 = 1; + a5 = 4; + return -1; + } else if((((((a0==1)||((a19==5)&&(!(a20==1)&&(((a2==1)&&(a21==10))&&(a5==4)))))&&(a16==8))&&!(a24==1))&&(((a9==8)&&(((a11==1)&&((((a17==2)&&(input==6))&&!(a26==1))&&!(a0==1)))&&!(a14==1)))&&(a1==13)))){ + a16 = 7; + a19 = 1; + a28 = 1; + a9 = 7; + a20 = 1; + a14 = 0; + a1 = 12; + return -1; + } else if(((((a21==10)&&((a16==9)&&(!(a2==1)&&((a18==1)&&(!(a3==1)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))))))&&!(a11==1))&&(((a17==2)&&(((a1==14)&&((((a19==2)&&(a12==1))&&!(a11==1))&&(a7==1)))&&(a20==1)))&&(a9==7)))){ + a16 = 7; + a2 = 0; + a26 = 1; + a5 = 6; + a1 = 12; + a9 = 8; + a23 = 0; + a19 = 1; + return 23; + } else if((((a12==1)&&((a12==1)&&(((a20==1)&&(((input==4)&&(((a19==4)&&(((a1==14)&&(a5==6))&&(a9==11)))||((((a5==4)&&(a1==12))&&(a9==7))&&(a19==5))))&&(a17==2)))&&(a12==1))))&&(((a2==1)&&((a16==10)&&(!(a26==1)&&((a21==12)&&(a13==1)))))||(a26==1)))){ + a1 = 12; + a16 = 7; + a21 = 10; + a5 = 4; + a18 = 0; + a23 = 1; + a9 = 7; + a19 = 1; + a6 = 1; + return -1; + } else if(((((a2==1)&&((((a28==1)&&(((a28==1)&&((input==1)&&(((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8))))))&&(a11==1)))&&!(a18==1))&&(a1==14)))&&(a13==1))&&((a17==2)&&((a16==8)&&(((a21==11)&&((a19==4)&&(a12==1)))&&(a20==1)))))){ + a5 = 4; + a4 = 0; + a1 = 12; + a19 = 1; + a9 = 7; + a28 = 1; + a16 = 7; + a21 = 10; + return -1; + } else if((((a21==12)&&((((!(a26==1)&&(((a6==1)&&((((a28==1)&&(((a5==4)||(a5==5))&&(input==1)))&&(a1==14))&&!(a27==1)))&&!(a20==1)))&&(a19==5))&&(a16==7))&&(a9==10)))&&((a17==2)&&(((a2==1)||(a7==1))&&!(a4==1))))){ + a9 = 8; + a28 = 1; + a23 = 1; + a11 = 1; + a20 = 1; + a5 = 6; + a19 = 4; + a16 = 9; + a21 = 10; + return 26; + } else if((((((!(a4==1)&&((a11==1)&&(((a20==1)&&(a12==1))&&(a21==10))))||!(a13==1))&&(a17==2))&&(a5==4))&&(((a23==1)&&(((a1==12)&&((((input==4)&&(a19==1))&&!(a18==1))&&(a9==9)))&&(a11==1)))&&(a16==9)))){ + a6 = 1; + a9 = 8; + a16 = 11; + a26 = 0; + a2 = 1; + return 26; + } else if(((((a21==11)&&(!(a8==1)&&(((a3==1)&&(a9==10))||(a4==1))))&&(a19==5))&&((a20==1)&&((a2==1)&&((!(a24==1)&&(((a17==2)&&((a11==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&(a1==14))))&&(a16==9)))&&(a6==1)))))){ + a5 = 6; + a26 = 0; + a21 = 10; + a16 = 8; + a23 = 1; + a19 = 2; + a20 = 0; + a12 = 1; + return 21; + } else if(((((a7==1)||((a3==1)||(a14==1)))&&!(a26==1))&&(((((a20==1)&&((((a1==12)&&((a5==6)&&((a16==8)&&((a17==2)&&((a21==12)&&(input==1))))))&&(a11==1))&&!(a0==1)))&&(a9==8))&&(a19==3))&&!(a24==1)))){ + a5 = 4; + a21 = 10; + a7 = 0; + a16 = 7; + a24 = 0; + a19 = 1; + a9 = 7; + a12 = 1; + return -1; + } else if((((((a19==2)&&(!(a26==1)&&(((input==1)&&(a21==12))&&(a17==2))))&&!(a0==1))&&(a9==8))&&(((a1==14)&&((((a5==6)&&((((a16==9)&&(a28==1))&&!(a20==1))&&!(a0==1)))&&(a28==1))||!(a6==1)))&&(a2==1)))){ + if((a12==1)){ + a1 = 12; + a7 = 1; + a9 = 10; + a24 = 1; + a28 = 0; + }else{ + a16 = 7; + a1 = 12; + a20 = 1; + a23 = 0; + a21 = 10; + a5 = 5; + a8 = 1; + a29 = 0; + a9 = 10; + } + return 26; + } else if((((a23==1)&&(!(a27==1)&&((!(a0==1)&&(((a5==5)&&((a16==9)&&((input==5)&&(a1==13))))&&!(a18==1)))&&(a21==10))))&&((((a19==3)&&(((a9==10)&&((a20==1)&&(a28==1)))&&(a17==2)))||!(a23==1))&&!(a4==1)))){ + a8 = 0; + a27 = 0; + a19 = 1; + a9 = 7; + a1 = 12; + a16 = 7; + a23 = 1; + a5 = 4; + return -1; + } else if((((a17==2)&&((a0==1)||((a16==11)&&(a6==1))))&&((a9==11)&&((a1==13)&&(((((a21==12)&&((a5==5)&&(((((a19==5)&&(input==4))&&(a11==1))&&(a20==1))&&(a28==1))))&&(a2==1))&&!(a18==1))&&(a13==1)))))){ + a23 = 1; + a16 = 7; + a1 = 12; + a4 = 0; + a9 = 7; + a19 = 1; + a7 = 0; + a5 = 4; + a21 = 10; + return -1; + } else if((((((!(a28==1)||(a28==1))&&(a12==1))&&!(a7==1))&&(a21==12))&&(((a19==3)&&(!(a20==1)&&((((((a2==1)&&((input==1)&&((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4)))))&&!(a14==1))&&(a17==2))&&(a6==1))&&(a1==13))))&&(a16==8)))){ + a5 = 4; + a20 = 1; + a1 = 12; + a22 = 1; + a24 = 1; + a9 = 7; + a15 = 1; + a16 = 11; + return -1; + } else if((((a17==2)&&((!(a26==1)&&(!(a18==1)&&(((a19==4)&&(!(a24==1)&&((input==5)&&((a5==4)||(a5==5)))))&&(a9==7))))&&(a1==14)))&&(((((((a11==1)&&!(a20==1))||!(a12==1))&&!(a7==1))&&!(a18==1))&&(a16==8))&&(a21==11)))){ + a5 = 5; + a8 = 0; + a4 = 0; + a1 = 12; + a27 = 0; + a9 = 10; + a19 = 5; + return 21; + } else if(((((a21==11)&&(!(a23==1)&&((((!(a6==1)&&(!(a13==1)&&((a9==10)&&(a11==1))))&&(a1==12))&&(a17==2))&&!(a20==1))))&&(a19==4))&&(((a8==1)&&(((a14==1)&&(((a5==5)||(a5==6))&&(input==4)))&&(a26==1)))&&(a16==8)))){ + a20 = 1; + a9 = 8; + a19 = 5; + a1 = 13; + a15 = 0; + a6 = 0; + a29 = 1; + a16 = 7; + a5 = 5; + return -1; + } else if((((!(a27==1)&&((a23==1)&&((((a19==3)&&(!(a0==1)&&((a21==10)&&((a2==1)&&((input==1)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))))))&&(a16==10))&&(a1==14))))&&!(a14==1))&&((a24==1)||(!(a20==1)&&((a17==2)&&(a6==1)))))){ + if((a27==1)){ + a29 = 1; + a19 = 1; + a9 = 11; + a5 = 5; + a22 = 0; + a10 = 1; + a20 = 1; + a16 = 7; + }else{ + a19 = 1; + a28 = 0; + a18 = 1; + a9 = 7; + a1 = 13; + a20 = 1; + a16 = 7; + a6 = 0; + a5 = 6; + } + return -1; + } else if(((!(a11==1)&&((a24==1)&&(((a21==11)&&((a4==1)&&((((a19==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))&&!(a6==1))&&(a20==1))))&&(a1==13))))&&((a9==9)&&((a17==2)&&(!(a2==1)&&(((a16==8)&&(a12==1))&&(a18==1))))))){ + a15 = 1; + a16 = 7; + a1 = 14; + a5 = 4; + a26 = 1; + a8 = 1; + a21 = 10; + return 22; + } else if((((a19==4)&&(((a21==11)&&(((a2==1)&&(!(a4==1)&&((input==6)&&((a5==5)||(a5==6)))))&&(a20==1)))&&(a17==2)))&&((a1==12)&&(((a9==9)&&(!(a24==1)&&((!(a26==1)&&((a16==9)&&(a6==1)))||(a4==1))))&&(a28==1))))){ + a16 = 7; + a11 = 1; + a9 = 10; + a21 = 10; + a5 = 4; + a6 = 1; + a2 = 1; + a19 = 2; + a1 = 13; + return 21; + } else if((((!(a14==1)&&((a17==2)&&((((a21==11)&&((a1==12)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4))))&&(a19==3))&&!(a27==1))))&&!(a7==1))&&((a16==7)&&(!(a20==1)&&((((a9==7)&&((a3==1)||!(a28==1)))||(a4==1))&&!(a4==1)))))){ + a20 = 1; + a26 = 0; + a27 = 0; + a23 = 1; + a19 = 1; + a5 = 4; + a21 = 10; + return -1; + } else if(((!(a24==1)&&((a3==1)&&(((a17==2)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a21==12))&&(a19==5))&&(a9==10)))&&(a6==1))))&&((!(a6==1)||(((((a3==1)||!(a11==1))&&(a1==14))&&(a20==1))&&(a16==7)))||(a0==1)))){ + a8 = 0; + a24 = 0; + a19 = 1; + a7 = 0; + a21 = 10; + a9 = 7; + a5 = 4; + a1 = 12; + return -1; + } else if((((!(a24==1)&&(!(a20==1)&&(((a2==1)&&(((((((a5==6)&&(a1==14))&&(a9==11))&&(a19==1))||((a19==2)&&((a9==7)&&((a5==4)&&(a1==12)))))||((a19==2)&&(((a5==5)&&(a1==12))&&(a9==7))))&&(input==5)))&&(a28==1))))&&(a16==7))&&((((a21==10)&&((a17==2)&&((a11==1)||!(a2==1))))&&(a2==1))&&!(a26==1)))){ + a5 = 4; + a8 = 0; + a1 = 12; + a9 = 7; + a12 = 1; + a20 = 1; + a11 = 1; + a19 = 1; + return -1; + } else if(((!(a14==1)&&((((a17==2)&&(a28==1))||(a7==1))&&(a1==12)))&&(!(a8==1)&&((a13==1)&&((a9==11)&&(((a21==12)&&(((a5==6)&&((a20==1)&&(((input==6)&&(a16==9))&&!(a8==1))))&&(a19==4)))&&!(a4==1))))))){ + a2 = 1; + a21 = 10; + a19 = 1; + a16 = 7; + a27 = 0; + a14 = 0; + a5 = 4; + a9 = 7; + return -1; + } else if(((!(a0==1)&&(!(a20==1)&&((!(a18==1)&&(((((a5==4)||(a5==5))&&(input==6))&&(a16==7))&&(a21==11)))&&!(a8==1))))&&(!(a27==1)&&((((a1==13)&&((a9==9)&&(((a28==1)&&(a19==5))&&(a17==2))))&&(a23==1))||!(a2==1))))){ + a5 = 4; + a9 = 7; + a12 = 1; + a20 = 1; + a1 = 12; + a21 = 10; + a27 = 0; + a19 = 1; + a24 = 0; + return -1; + } else if((((a27==1)||(((!(a3==1)||(a28==1))||(a26==1))&&(a17==2)))&&((!(a18==1)&&((a23==1)&&(((input==1)&&(((((((a9==11)&&((a5==6)&&(a1==14)))&&(a16==7))&&(a19==5))&&(a21==12))||((a21==10)&&(((((a5==4)&&(a1==12))&&(a9==7))&&(a16==8))&&(a19==1))))||((a21==10)&&(((a16==8)&&((a9==7)&&((a5==5)&&(a1==12))))&&(a19==1)))))&&!(a20==1))))&&(a13==1)))){ + a0 = 0; + a27 = 0; + a16 = 7; + a1 = 12; + a5 = 4; + a20 = 1; + a3 = 1; + a9 = 7; + a19 = 1; + a21 = 10; + return -1; + } else if(((((a1==12)&&((a16==8)&&((((input==3)&&(a21==10))&&(a17==2))&&!(a20==1))))&&!(a14==1))&&(((a19==3)&&(!(a18==1)&&((!(a7==1)&&(((a9==7)&&((a12==1)&&(a12==1)))&&!(a24==1)))&&!(a4==1))))&&(a5==6)))){ + a2 = 1; + a7 = 0; + a20 = 1; + a16 = 7; + a12 = 1; + return 26; + } else if((((!(a3==1)||((((a12==1)&&(a11==1))||!(a6==1))&&(a17==2)))&&(a19==4))&&(((a20==1)&&((a28==1)&&((((a12==1)&&((!(a8==1)&&((input==3)&&((a5==5)||(a5==6))))&&(a1==13)))&&(a21==11))&&(a9==7))))&&(a16==9)))){ + a5 = 4; + a21 = 10; + a8 = 0; + a13 = 1; + a19 = 1; + a16 = 7; + a26 = 0; + a1 = 12; + return -1; + } else if((((a12==1)&&((((((a23==1)||!(a13==1))&&(a16==9))||!(a13==1))||!(a12==1))&&(a9==8)))&&((a23==1)&&((!(a27==1)&&((((a21==12)&&(((input==4)&&(a17==2))&&(a1==13)))&&(a19==2))&&(a5==4)))&&(a20==1))))){ + a16 = 7; + a26 = 0; + a1 = 12; + a8 = 0; + a19 = 1; + a9 = 7; + a21 = 10; + a6 = 1; + return -1; + } else if((((a1==14)&&((a7==1)||((!(a6==1)||((a18==1)||(!(a6==1)||((a19==5)&&((a21==10)&&(!(a20==1)&&(a6==1)))))))&&!(a14==1))))&&(((((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==5))&&(a17==2))&&!(a0==1))&&(a16==8)))){ + a19 = 1; + a9 = 7; + a14 = 0; + a16 = 7; + a5 = 4; + a1 = 12; + a27 = 0; + a7 = 0; + a20 = 1; + return -1; + } else if(((!(a14==1)&&((a19==3)&&(((a11==1)&&((!(a4==1)&&(((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a5==4)&&(a9==8)))&&(input==3)))&&(a1==14)))&&(a21==10))))&&(((a17==2)&&(((a4==1)||(((a6==1)||!(a3==1))&&(a16==7)))&&(a20==1)))&&(a3==1)))){ + a3 = 1; + a24 = 0; + a5 = 6; + a9 = 10; + a28 = 1; + a19 = 2; + a1 = 13; + a21 = 11; + return 23; + } else if((((!(a3==1)||(((((!(a23==1)||((((a6==1)&&(a1==13))&&(a5==4))&&!(a18==1)))&&(a21==11))||(a8==1))&&(a16==8))&&!(a27==1)))&&(a23==1))&&((a20==1)&&(((a17==2)&&((a9==9)&&(input==5)))&&(a19==3))))){ + a16 = 10; + a23 = 1; + a19 = 1; + a9 = 8; + a1 = 12; + return 25; + } else if((((((a17==2)&&((((a16==7)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))&&!(a11==1))&&(a19==5)))&&(a27==1))&&!(a11==1))&&((a21==11)&&((a1==14)&&(!(a28==1)&&((!(a2==1)&&(((a28==1)&&(a18==1))&&(a9==7)))&&!(a20==1))))))){ + a21 = 10; + a5 = 6; + a19 = 1; + a9 = 11; + a1 = 12; + a24 = 1; + a25 = 1; + a20 = 1; + return -1; + } else if((((a2==1)&&((a6==1)&&((a19==2)&&(((a5==4)&&(!(a8==1)&&(((a16==10)&&(input==6))&&(a9==7))))&&(a17==2)))))&&((a3==1)&&(!(a14==1)&&((((a28==1)&&((a20==1)&&(a23==1)))&&(a21==12))&&(a1==13)))))){ + a13 = 1; + a4 = 0; + a16 = 7; + a21 = 10; + a9 = 9; + a12 = 1; + return 22; + } else if(((((a19==4)&&(((a20==1)&&((a9==9)&&(a12==1)))||(a8==1)))&&(a21==11))&&((((a28==1)&&((((a17==2)&&(!(a7==1)&&(!(a26==1)&&((input==5)&&((a5==4)||(a5==5))))))&&!(a27==1))&&!(a8==1)))&&(a1==14))&&(a16==9)))){ + if((a22==1)){ + a20 = 0; + a13 = 1; + a16 = 8; + a1 = 12; + a9 = 8; + a5 = 5; + a12 = 1; + }else{ + a28 = 1; + a5 = 4; + a24 = 0; + a19 = 2; + a9 = 10; + a12 = 1; + a21 = 10; + a1 = 13; + a16 = 7; + } + return 21; + } else if((((!(a20==1)&&(((a19==4)&&(((a16==10)&&((a1==14)&&((a2==1)&&(a21==10))))&&(a6==1)))||(a26==1)))&&(a11==1))&&((((a17==2)&&((a3==1)&&((((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(input==4))))&&(a11==1))&&(a3==1)))){ + a19 = 1; + a16 = 7; + a25 = 1; + a1 = 13; + a9 = 10; + a28 = 0; + a5 = 5; + a20 = 1; + a2 = 0; + return -1; + } else if(((!(a27==1)&&((a17==2)&&((((((a9==7)&&((((a13==1)&&(((input==5)&&((a5==5)||(a5==6)))&&!(a0==1)))&&!(a20==1))&&(a21==10)))&&(a13==1))&&(a1==12))&&(a16==7))&&(a23==1))))&&(!(a27==1)&&((a19==4)&&(a2==1))))){ + a9 = 8; + a1 = 13; + a13 = 1; + a5 = 5; + a2 = 1; + a0 = 0; + return 25; + } else if(((!(a12==1)&&(!(a6==1)&&((((a14==1)&&((!(a12==1)&&(a2==1))&&(a17==2)))&&(a20==1))&&(a21==11))))&&((a16==7)&&(((a27==1)&&((((((a1==13)&&(a5==4))&&(a9==7))||(((a9==11)&&((a1==12)&&(a5==5)))||((a9==11)&&((a5==6)&&(a1==12)))))&&(input==3))&&(a7==1)))&&(a19==3))))){ + a16 = 8; + a1 = 14; + a5 = 6; + a12 = 0; + a9 = 9; + a24 = 1; + a4 = 1; + a20 = 0; + return -1; + } else if(((((a20==1)&&((a16==9)&&(!(a14==1)&&((a9==9)&&(((a19==5)&&(input==6))&&(a21==12))))))&&(a23==1))&&((a17==2)&&(((a5==6)&&((a26==1)||((((a12==1)&&(a11==1))&&!(a27==1))&&(a1==12))))&&!(a18==1))))){ + a5 = 4; + a19 = 1; + a27 = 0; + a16 = 7; + a21 = 10; + a9 = 7; + a0 = 0; + a12 = 1; + return -1; + } else if((((a3==1)&&((a19==1)&&((a5==6)&&((!(a20==1)&&(!(a13==1)||((a9==8)&&(!(a27==1)&&(a23==1)))))&&(a13==1)))))&&(((((!(a14==1)&&((input==3)&&(a21==12)))&&(a17==2))&&!(a24==1))&&(a16==10))&&(a1==14)))){ + a6 = 0; + a11 = 0; + a9 = 7; + a0 = 1; + a1 = 13; + a5 = 5; + return -1; + } else if((((a2==1)&&((((!(a20==1)&&((a16==9)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==3))))&&(a13==1))&&(a12==1))&&(a17==2)))&&(((((a19==1)&&(!(a7==1)&&(!(a12==1)||(a12==1))))&&(a21==11))&&(a1==12))||!(a11==1)))){ + if((a13==1)){ + a5 = 4; + a8 = 1; + a20 = 1; + a9 = 7; + a21 = 10; + a4 = 1; + a10 = 1; + a19 = 2; + a1 = 13; + a16 = 7; + }else{ + a5 = 6; + a19 = 2; + a20 = 1; + a6 = 0; + a21 = 10; + a9 = 11; + a12 = 0; + a16 = 7; + a27 = 1; + } + return 21; + } else if(((((a26==1)||(!(a0==1)&&((a6==1)&&(a16==10))))&&(a13==1))&&(((((a19==2)&&(!(a7==1)&&((a17==2)&&(((a1==13)&&((((a5==5)||(a5==6))&&(input==5))&&(a21==10)))&&!(a26==1)))))&&(a20==1))&&(a9==11))&&(a12==1)))){ + a7 = 0; + a19 = 1; + a9 = 7; + a1 = 12; + a26 = 0; + a5 = 4; + a18 = 0; + a16 = 7; + return -1; + } else if((((((a1==14)&&(((a21==12)&&(a12==1))||(a18==1)))&&(a12==1))&&!(a20==1))&&((((!(a27==1)&&(((a17==2)&&((((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))&&(input==4))&&!(a8==1)))&&(a11==1)))&&(a19==3))&&!(a26==1))&&(a16==10)))){ + a20 = 1; + a8 = 1; + a16 = 8; + a19 = 5; + a14 = 1; + a5 = 5; + a9 = 9; + a26 = 1; + return -1; + } else if((((!(a11==1)||(!(a7==1)&&(!(a23==1)||(!(a13==1)||((a19==4)&&((a23==1)&&!(a20==1)))))))&&!(a7==1))&&((a3==1)&&((a1==12)&&((a9==10)&&(((a16==7)&&((a17==2)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4))))&&(a21==12))))))){ + a20 = 1; + a23 = 1; + a13 = 1; + a9 = 7; + a5 = 4; + a27 = 0; + a21 = 10; + a19 = 1; + return -1; + } else if(((((a2==1)&&((((a21==12)&&((a3==1)&&((a16==10)&&((input==5)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))))))&&(a19==4))&&(a1==13)))&&!(a14==1))&&(!(a2==1)||((a20==1)&&((a0==1)||(((a17==2)&&(a6==1))||(a0==1))))))){ + a9 = 11; + a5 = 6; + a11 = 1; + a1 = 14; + a18 = 0; + a16 = 9; + a21 = 10; + a0 = 0; + a19 = 5; + return -1; + } else if((((a9==10)&&(!(a2==1)||((a17==2)&&((a18==1)||((((a28==1)&&(a1==14))&&(a5==6))&&(a6==1))))))&&((!(a20==1)&&((a13==1)&&(((a13==1)&&((a6==1)&&((a16==7)&&(input==5))))&&(a21==12))))&&(a19==2)))){ + a24 = 0; + a9 = 9; + a19 = 4; + a20 = 1; + a21 = 10; + a16 = 9; + a23 = 1; + a13 = 1; + return 26; + } else if((((a21==11)&&(((((a28==1)&&(((a6==1)&&(a2==1))&&(a16==11)))&&(a19==4))&&(a6==1))||(a18==1)))&&(((a17==2)&&(((a1==14)&&((!(a8==1)&&((input==3)&&(a20==1)))&&(a9==7)))&&(a5==4)))&&!(a26==1)))){ + a21 = 10; + a6 = 1; + a13 = 1; + a2 = 1; + a19 = 1; + a1 = 12; + a16 = 7; + return -1; + } else if((((a17==2)&&(((a20==1)&&((((a13==1)&&(a5==4))||(a27==1))&&(a11==1)))&&(a9==11)))&&((!(a0==1)&&((a21==12)&&(((a28==1)&&((a1==14)&&((a16==9)&&((a19==4)&&(input==3)))))&&(a6==1))))&&!(a27==1)))){ + a9 = 7; + a21 = 10; + a4 = 0; + a1 = 12; + a18 = 0; + a16 = 7; + a19 = 1; + a27 = 0; + return -1; + } else if((((a20==1)&&((!(a8==1)&&((a16==10)&&((((((a1==13)&&(a5==6))&&(a9==11))||(((a1==14)&&(a5==4))&&(a9==7)))&&(input==6))&&(a23==1))))&&(a3==1)))&&(((((((a6==1)||(a27==1))&&!(a26==1))&&(a17==2))&&!(a24==1))&&(a21==12))&&(a19==3)))){ + a24 = 0; + a28 = 1; + a1 = 12; + a21 = 10; + a6 = 1; + a9 = 7; + a5 = 4; + a16 = 7; + a19 = 1; + return -1; + } else if((((((a26==1)||((a21==12)&&(!(a20==1)&&((a13==1)&&(((a17==2)&&(a28==1))&&(a23==1))))))&&!(a18==1))&&(a5==6))&&(!(a7==1)&&((a16==10)&&((((a28==1)&&((a9==10)&&(input==1)))&&(a1==13))&&(a19==5)))))){ + if((a16==7)){ + a29 = 1; + a14 = 1; + a16 = 9; + a21 = 11; + a25 = 1; + a9 = 7; + a19 = 4; + a1 = 14; + }else{ + a16 = 7; + a20 = 1; + a11 = 0; + a19 = 1; + a21 = 10; + a25 = 0; + a9 = 9; + a1 = 12; + a3 = 0; + } + return 23; + } else if((((a21==10)&&(((((a8==1)||((a2==1)&&(a1==13)))&&(a11==1))||(a7==1))&&(a9==8)))&&(((a16==9)&&(((a5==5)&&((a3==1)&&((((a19==5)&&(input==1))&&!(a0==1))&&!(a7==1))))&&(a20==1)))&&(a17==2)))){ + a19 = 1; + a1 = 12; + a9 = 7; + a7 = 0; + a5 = 4; + a16 = 7; + a28 = 1; + a0 = 0; + return -1; + } else if((((a4==1)||(((a19==2)&&((a12==1)&&(a17==2)))&&!(a20==1)))&&((a16==7)&&((((a3==1)&&(((a2==1)&&((a21==11)&&(((input==3)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&!(a18==1))))&&(a6==1)))&&(a28==1))&&(a1==13))))){ + a5 = 4; + a1 = 12; + a19 = 1; + a0 = 0; + a9 = 7; + a6 = 1; + a21 = 10; + a20 = 1; + a14 = 0; + return -1; + } else if((((((a13==1)&&((a19==1)&&((input==6)&&(((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))))))&&!(a7==1))&&(a6==1))&&(((((((a17==2)&&(((a6==1)&&(a16==11))&&(a21==11)))&&(a1==12))&&!(a24==1))&&(a20==1))&&!(a18==1))&&!(a14==1)))){ + a5 = 4; + a18 = 0; + a14 = 0; + a7 = 0; + a9 = 7; + a21 = 10; + a16 = 7; + return -1; + } else if((((!(a27==1)&&((((a9==11)&&(((a20==1)&&((a8==1)||((a11==1)&&(a5==5))))&&(a17==2)))&&(a19==3))&&!(a24==1)))||(a18==1))&&((((a1==12)&&((a16==11)&&((input==3)&&(a21==10))))&&(a13==1))&&!(a18==1)))){ + a8 = 0; + a9 = 7; + a7 = 0; + a19 = 1; + a5 = 4; + a11 = 1; + a16 = 7; + return -1; + } else if(((((a1==12)&&(((a21==12)&&((input==1)&&((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11)))))&&(a19==5)))&&(a16==7))&&((a17==2)&&((!(a7==1)&&(!(a0==1)&&((((a26==1)||((a6==1)&&(a20==1)))||!(a11==1))&&(a2==1))))||!(a11==1))))){ + a1 = 13; + a21 = 11; + a16 = 9; + a8 = 0; + a9 = 8; + a23 = 1; + a14 = 0; + a5 = 5; + a19 = 4; + return 25; + } else if((((a16==9)&&((((((((a6==1)&&(a12==1))||!(a12==1))&&(a20==1))&&(a17==2))&&(a28==1))||(a7==1))&&(a21==12)))&&((a19==2)&&(!(a0==1)&&((((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))&&(input==5))&&(a11==1))&&(a1==13)))))){ + a14 = 0; + a16 = 7; + a27 = 0; + a1 = 14; + a9 = 9; + a20 = 0; + a28 = 1; + a5 = 4; + return 21; + } else if((((a16==11)&&(!(a24==1)&&(((a7==1)||((a23==1)&&(((a23==1)&&(a17==2))&&(a21==10))))&&(a1==14))))&&((((a19==5)&&((a2==1)&&((!(a0==1)&&(((a5==4)||(a5==5))&&(input==3)))&&!(a27==1))))&&(a20==1))&&(a9==9)))){ + a7 = 0; + a5 = 4; + a24 = 0; + a4 = 0; + a9 = 7; + a1 = 12; + a16 = 7; + a19 = 1; + return -1; + } else if(((!(a3==1)||((a28==1)&&((a21==11)&&((!(a8==1)&&((a0==1)||((a28==1)&&(a1==14))))&&(a16==8)))))&&((a17==2)&&(((a19==2)&&((((a9==9)&&((input==1)&&(a20==1)))&&(a5==4))&&!(a14==1)))&&(a2==1))))){ + a16 = 10; + a21 = 10; + a5 = 5; + a2 = 1; + a26 = 0; + a19 = 4; + a9 = 11; + a6 = 1; + return 26; + } else if((((a21==12)&&((a17==2)&&((a16==8)&&(((a9==11)&&((a1==13)&&((a23==1)&&(!(a27==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a13==1))))))&&!(a20==1)))))&&((a19==1)&&(!(a26==1)&&((a2==1)&&((a11==1)||!(a6==1))))))){ + a1 = 14; + a27 = 1; + a5 = 4; + a4 = 1; + a19 = 4; + a16 = 9; + a9 = 10; + a12 = 0; + a20 = 1; + return -1; + } else if(((((a5==5)&&(((a17==2)&&(!(a20==1)&&((input==6)&&(a9==10))))&&(a11==1)))&&(a16==9))&&(((a21==12)&&(!(a24==1)&&(((a4==1)||(((a19==2)&&((a6==1)||(a7==1)))||!(a13==1)))&&(a12==1))))&&(a1==12)))){ + if((a13==1)){ + a4 = 1; + a19 = 5; + a22 = 0; + a21 = 11; + a20 = 1; + a6 = 0; + a5 = 4; + a16 = 7; + }else{ + a16 = 10; + a13 = 0; + a9 = 11; + a1 = 13; + a2 = 0; + a15 = 0; + a19 = 3; + a5 = 6; + } + return -1; + } else if((((a2==1)&&((a17==2)&&((a19==5)&&(!(a8==1)&&(!(a24==1)&&((a13==1)&&!(a24==1)))))))&&((a20==1)&&((a21==12)&&((!(a18==1)&&((a16==11)&&(((input==4)&&(((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))))&&(a13==1))))&&(a1==14)))))){ + a5 = 4; + a9 = 7; + a21 = 10; + a19 = 1; + a1 = 12; + a16 = 7; + a2 = 1; + a6 = 1; + return -1; + } else if((((a27==1)||((a16==8)&&((a21==11)&&(a2==1))))&&(((((a28==1)&&((a3==1)&&((!(a26==1)&&(((((a9==7)&&((a5==4)&&(a1==14)))||((((a1==13)&&(a5==5))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==13)))))&&(input==3))&&(a20==1)))&&!(a27==1))))&&(a17==2))&&(a11==1))&&(a19==3)))){ + a14 = 0; + a5 = 4; + a16 = 7; + a28 = 1; + a21 = 10; + a19 = 1; + a9 = 7; + a1 = 12; + a7 = 0; + return -1; + } else if((((!(a13==1)&&((a17==2)&&((a19==1)&&((((((a1==13)&&(a5==5))&&(a9==7))||(((a9==11)&&((a5==6)&&(a1==12)))||(((a1==13)&&(a5==4))&&(a9==7))))&&(input==5))&&(a18==1)))))&&(a21==10))&&(((a4==1)&&(((((a6==1)&&(a14==1))&&(a16==8))&&!(a28==1))&&!(a6==1)))&&(a20==1)))){ + a11 = 0; + a9 = 9; + a16 = 7; + a1 = 12; + a19 = 2; + a5 = 4; + a4 = 1; + a22 = 0; + return 25; + } else if((((!(a27==1)&&(((a5==6)&&((a16==8)&&((((a19==3)&&(((((a9==7)&&(input==4))&&!(a4==1))&&(a1==12))&&!(a20==1)))&&(a11==1))&&!(a14==1))))&&(a21==10)))&&!(a26==1))&&((a17==2)&&((a6==1)&&!(a14==1))))){ + a5 = 5; + a20 = 1; + a28 = 1; + a19 = 1; + a1 = 13; + a9 = 9; + a8 = 0; + a16 = 9; + a26 = 0; + return 26; + } else if((((a5==5)&&((a1==14)&&(((a26==1)||((((((a3==1)&&!(a24==1))&&!(a27==1))||(a7==1))||!(a11==1))||(a8==1)))&&(a20==1))))&&((a16==11)&&((a19==2)&&((((input==5)&&(a9==10))&&(a17==2))&&(a21==11)))))){ + a16 = 7; + a19 = 1; + a24 = 0; + a1 = 12; + a3 = 1; + a5 = 4; + a12 = 1; + a21 = 10; + a9 = 7; + return -1; + } else if((((!(a0==1)&&((a17==2)&&((!(a24==1)&&(a3==1))&&(a9==7))))&&(a19==2))&&(((((a13==1)&&((((((input==5)&&(a1==13))&&!(a0==1))&&!(a20==1))&&(a5==5))&&(a2==1)))&&(a2==1))&&(a21==11))&&(a16==9)))){ + a1 = 12; + a19 = 1; + a20 = 1; + a16 = 7; + a9 = 11; + a2 = 0; + a12 = 0; + a28 = 0; + a21 = 10; + return -1; + } else if(((!(a23==1)&&((((a26==1)&&(a12==1))&&(a4==1))&&(a26==1)))&&((((a1==12)&&(!(a13==1)&&(((((((input==6)&&(a20==1))&&(a0==1))&&(a5==4))&&(a21==12))&&(a19==1))&&(a16==7))))&&(a9==9))&&(a17==2)))){ + a15 = 1; + a5 = 5; + a29 = 0; + a7 = 1; + a9 = 8; + a21 = 10; + return -1; + } else if(((((a19==4)&&(((a3==1)&&((!(a7==1)&&(((input==1)&&(((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))&&(a20==1)))&&(a13==1)))&&(a1==12)))&&(a11==1))&&((a7==1)||((a21==12)&&((a17==2)&&((a11==1)&&((a16==11)&&(a3==1)))))))){ + a9 = 7; + a18 = 0; + a21 = 10; + a19 = 1; + a5 = 4; + a26 = 0; + a16 = 7; + a28 = 1; + return -1; + } else if((((((((((a13==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a19==4)))&&(a11==1))&&!(a27==1))&&(a3==1))&&(a21==12))&&(a16==10))&&!(a20==1))&&(((a14==1)||((a9==11)&&(!(a18==1)&&((a17==2)&&(a28==1)))))&&(a1==13)))){ + a22 = 0; + a5 = 6; + a16 = 7; + a9 = 9; + a26 = 1; + a4 = 1; + a21 = 10; + a19 = 1; + a20 = 1; + return -1; + } else if((((a19==4)&&((((a20==1)&&(((a11==1)&&(a21==10))&&(a2==1)))&&(a11==1))&&(a9==11)))&&((a1==13)&&((((a11==1)&&((((a3==1)&&((input==1)&&(a5==6)))&&!(a7==1))&&!(a18==1)))&&(a17==2))&&(a16==7))))){ + a12 = 1; + a21 = 11; + a9 = 10; + a7 = 0; + a19 = 5; + return 21; + } else if((((((a21==11)&&(!(a7==1)&&(!(a7==1)&&(((a1==13)&&((a6==1)&&(a19==1)))||(a18==1)))))&&(a16==8))&&!(a18==1))&&((((((input==1)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5))))&&(a17==2))&&(a20==1))&&(a23==1))&&!(a4==1)))){ + a21 = 10; + a3 = 1; + a16 = 7; + a5 = 5; + a6 = 1; + a9 = 7; + a19 = 2; + a13 = 1; + a1 = 14; + return -1; + } else if((((((((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==1))&&!(a0==1))&&(a3==1))&&(a17==2))&&!(a8==1))&&(((a16==7)&&(((a19==5)&&((!(a20==1)&&(((a1==12)&&(a23==1))&&(a28==1)))&&!(a8==1)))&&(a21==11)))||!(a2==1)))){ + a28 = 1; + a19 = 1; + a3 = 1; + a9 = 7; + a21 = 10; + a20 = 1; + a5 = 4; + return -1; + } else if((((a9==11)&&(!(a7==1)&&(((((a3==1)&&((a1==14)&&(input==4)))&&(a17==2))&&(a5==4))&&(a11==1))))&&((!(a20==1)&&((a19==2)&&(((!(a28==1)||((a6==1)&&!(a4==1)))&&(a21==10))||!(a2==1))))&&(a16==7)))){ + a19 = 1; + a1 = 12; + a9 = 7; + a18 = 0; + a8 = 0; + a20 = 1; + return -1; + } else if((((a9==9)&&((a16==8)&&((((a13==1)&&(a28==1))&&!(a18==1))&&!(a18==1))))&&((a1==14)&&(!(a7==1)&&(((a21==10)&&((!(a18==1)&&((((input==5)&&((a5==5)||(a5==6)))&&!(a20==1))&&(a19==5)))&&!(a7==1)))&&(a17==2)))))){ + a14 = 0; + a19 = 2; + a21 = 12; + a6 = 1; + a9 = 11; + a5 = 4; + a20 = 1; + a7 = 0; + return 22; + } else if((((a21==11)&&((((!(a4==1)&&((input==3)&&((a5==4)||(a5==5))))&&(a3==1))&&!(a20==1))&&!(a27==1)))&&((a1==12)&&((a19==5)&&((a9==9)&&((a17==2)&&((a23==1)&&((((a24==1)||(a23==1))&&!(a26==1))&&(a16==9))))))))){ + a5 = 6; + a19 = 1; + a20 = 1; + a21 = 10; + a15 = 1; + a14 = 1; + a22 = 1; + a1 = 14; + a9 = 7; + return 21; + } else if((((a19==1)&&((a9==11)&&(!(a20==1)&&(!(a18==1)&&((a11==1)&&((((a16==10)&&(input==5))&&(a17==2))&&(a3==1)))))))&&((a21==10)&&((a1==14)&&((!(a14==1)&&(((a11==1)&&!(a26==1))||(a27==1)))&&(a5==5)))))){ + a9 = 9; + a19 = 2; + a20 = 1; + a28 = 0; + a1 = 13; + a21 = 12; + a13 = 0; + a16 = 11; + a3 = 0; + return -1; + } else if((((a21==10)&&((!(a8==1)&&(((((a1==14)&&(!(a13==1)||((a6==1)&&(a20==1))))&&!(a8==1))&&!(a26==1))&&(a9==10)))&&(a16==11)))&&((a17==2)&&((a2==1)&&((((input==6)&&((a5==5)||(a5==6)))&&(a19==5))&&!(a0==1)))))){ + a16 = 7; + a5 = 4; + a9 = 7; + a28 = 1; + a0 = 0; + a18 = 0; + a1 = 12; + a19 = 1; + return -1; + } else if(((((a6==1)&&((a28==1)&&((!(a8==1)&&((input==3)&&(((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))))&&(a21==10))))&&(a17==2))&&((a1==14)&&(((a19==3)&&((a16==8)&&((((a6==1)||!(a28==1))&&!(a0==1))&&!(a18==1))))&&(a20==1))))){ + a19 = 1; + a1 = 12; + a5 = 4; + a16 = 7; + a13 = 1; + a2 = 1; + a9 = 7; + a14 = 0; + return -1; + } else if((((a9==11)&&((((!(a2==1)||((a2==1)&&(((a21==11)&&(a6==1))&&!(a27==1))))&&(a3==1))&&!(a8==1))&&(a16==9)))&&(((a19==2)&&((a1==13)&&((a6==1)&&((((a5==5)||(a5==6))&&(input==4))&&(a17==2)))))&&(a20==1)))){ + a21 = 10; + a19 = 1; + a5 = 4; + a26 = 0; + a9 = 7; + a1 = 12; + a13 = 1; + a6 = 1; + a16 = 7; + return -1; + } else if((((a21==11)&&((a3==1)&&(((!(a8==1)&&((a14==1)||(!(a0==1)&&(a3==1))))&&(a16==7))&&!(a20==1))))&&(((a9==9)&&((!(a26==1)&&((a17==2)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a19==4))))&&(a13==1)))&&(a1==12)))){ + a13 = 1; + a20 = 1; + a9 = 7; + a28 = 1; + a21 = 10; + a19 = 1; + a5 = 4; + a12 = 1; + return -1; + } else if((((a17==2)&&(((a20==1)&&((a6==1)&&((a16==8)&&(((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&(a21==11)))))&&(a1==13)))&&(!(a12==1)||(!(a7==1)&&((((a19==5)&&((a9==7)&&((a3==1)&&!(a14==1))))&&(a13==1))||!(a6==1)))))){ + a27 = 0; + a19 = 3; + a5 = 6; + a7 = 0; + a9 = 8; + a16 = 10; + a28 = 1; + return 23; + } else if(((!(a27==1)&&(((((a9==8)&&((a1==14)&&((input==5)&&(a17==2))))&&(a20==1))&&(a5==5))&&!(a24==1)))&&(((!(a26==1)&&((a16==8)&&((a19==5)&&(((a12==1)&&(a21==12))&&!(a4==1)))))||(a24==1))||!(a12==1)))){ + a9 = 7; + a4 = 0; + a0 = 0; + a1 = 13; + a16 = 10; + return 22; + } else if((((((!(a0==1)&&((((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&(a2==1))&&(a3==1)))&&(a1==14))&&(a9==7))&&(a19==4))&&(((a21==12)&&(((a12==1)&&((!(a7==1)&&((a3==1)&&(a20==1)))&&(a11==1)))&&(a16==10)))&&(a17==2)))){ + a12 = 1; + a13 = 1; + a21 = 10; + a2 = 1; + a16 = 7; + a5 = 4; + a9 = 10; + return 25; + } else if(((((a13==1)&&(!(a18==1)&&(((a6==1)&&((a21==11)&&(((a1==13)&&(input==5))&&!(a14==1))))&&!(a27==1))))&&(a17==2))&&((((a5==4)&&((a9==11)&&((a4==1)||((a19==4)&&(a6==1)))))&&(a16==7))&&!(a20==1)))){ + a16 = 8; + a9 = 8; + a23 = 1; + a20 = 1; + a19 = 1; + a6 = 1; + a5 = 6; + a24 = 0; + a1 = 14; + a21 = 12; + return 21; + } else if((((a19==1)&&((!(a20==1)&&((!(a0==1)&&(((a13==1)&&((a9==9)&&(input==1)))&&(a1==14)))&&(a28==1)))&&(a16==9)))&&((a21==12)&&(((a17==2)&&((((a2==1)||!(a2==1))&&!(a0==1))||(a14==1)))&&(a5==4))))){ + if((a16==8)){ + a12 = 0; + a15 = 1; + a21 = 11; + a19 = 2; + a9 = 10; + a5 = 6; + a16 = 7; + a20 = 1; + a29 = 1; + a1 = 12; + }else{ + a14 = 1; + a19 = 5; + a2 = 0; + a9 = 7; + a25 = 1; + a16 = 8; + a5 = 6; + } + return 21; + } else if(((((((a2==1)&&((a16==7)&&(!(a7==1)&&(!(a8==1)&&((a13==1)&&(((((input==1)&&((a5==4)||(a5==5)))&&(a19==2))&&(a3==1))&&(a1==13)))))))&&(a2==1))&&(a17==2))&&(a9==10))&&((a21==12)&&((a20==1)&&(a3==1))))){ + a24 = 0; + a21 = 10; + a7 = 0; + a19 = 3; + a27 = 0; + a16 = 9; + a5 = 4; + a9 = 9; + return 23; + } else if((((a16==7)&&((a9==9)&&(((a5==5)&&(((a6==1)&&((a26==1)||((!(a18==1)&&((a19==3)&&(a3==1)))&&(a21==12))))&&(a17==2)))&&!(a26==1))))&&(((a2==1)&&(!(a20==1)&&((input==5)&&(a1==12))))&&(a13==1)))){ + a20 = 1; + a21 = 10; + a5 = 4; + a23 = 1; + a9 = 7; + a19 = 1; + a26 = 0; + a18 = 0; + return -1; + } else if(((((a2==1)&&(!(a20==1)&&((a12==1)&&((a2==1)&&(((a5==6)&&(input==6))&&!(a8==1))))))&&(a17==2))&&((a1==13)&&((a21==10)&&((a19==1)&&(((a24==1)||((a14==1)||((a6==1)&&(a9==11))))&&(a16==10))))))){ + a19 = 2; + a23 = 0; + a8 = 1; + a22 = 0; + a20 = 1; + a9 = 7; + a16 = 7; + a1 = 12; + return 21; + } else if((((a6==1)&&(!(a8==1)&&(((((((input==1)&&((((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))||((a5==4)&&(a9==10))))&&(a12==1))&&(a19==4))&&(a16==8))&&(a28==1))&&(a17==2))))&&((!(a28==1)||((((a2==1)&&(a23==1))&&(a1==14))&&(a20==1)))&&(a21==12)))){ + a1 = 13; + a19 = 5; + a21 = 10; + a11 = 1; + a9 = 10; + a5 = 6; + a14 = 0; + a18 = 0; + return -1; + } else if(((!(a0==1)&&(!(a24==1)&&((a20==1)&&((a13==1)&&((a21==12)&&((a19==4)&&(input==1)))))))&&((((a17==2)&&(!(a11==1)||(((a5==5)&&((a16==9)&&((a2==1)&&(a23==1))))&&(a13==1))))&&(a1==13))&&(a9==11)))){ + a21 = 10; + a5 = 4; + a28 = 1; + a1 = 14; + a3 = 1; + a2 = 1; + a19 = 1; + a9 = 7; + return -1; + } else if(((((!(a0==1)&&(((a24==1)||(((a17==2)&&((((a21==11)&&(a6==1))&&!(a14==1))&&(a1==12)))&&(a20==1)))||!(a23==1)))&&(a28==1))&&!(a24==1))&&((a16==9)&&((a19==4)&&((input==5)&&((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9)))))))){ + a9 = 7; + a21 = 10; + a6 = 1; + a16 = 7; + a3 = 1; + a19 = 1; + a12 = 1; + a5 = 4; + return -1; + } else if(((((a12==1)&&(((a17==2)&&(((input==5)&&((a5==5)||(a5==6)))&&!(a0==1)))&&!(a4==1)))&&(a1==13))&&(((a18==1)||(!(a12==1)||(((a9==11)&&((((a16==11)&&(a6==1))&&(a20==1))&&(a21==10)))&&(a19==4))))&&(a6==1)))){ + a19 = 2; + a13 = 1; + a5 = 4; + a4 = 0; + a16 = 10; + a9 = 10; + return 25; + } else if(((!(a8==1)&&((a9==11)&&((a20==1)&&(a3==1))))&&((((!(a26==1)&&((a2==1)&&((((a21==11)&&(((a2==1)&&((a16==7)&&(input==1)))&&(a1==13)))&&(a12==1))&&(a17==2))))&&(a19==5))&&!(a8==1))&&(a5==4)))){ + a1 = 14; + a12 = 1; + a14 = 0; + a21 = 12; + a9 = 10; + a16 = 8; + a19 = 2; + return 22; + } else if(((((a20==1)&&((a12==1)&&(a11==1)))&&(a17==2))&&(((a21==10)&&(!(a18==1)&&((a28==1)&&((a6==1)&&((a19==4)&&((a9==8)&&((a2==1)&&((((input==3)&&((a5==5)||(a5==6)))&&(a1==13))&&(a11==1)))))))))&&(a16==8)))){ + a18 = 0; + a16 = 7; + a5 = 4; + a9 = 7; + a12 = 1; + a1 = 12; + a19 = 1; + a7 = 0; + return -1; + } else if((((a21==10)&&(((a17==2)&&(((a3==1)&&(a23==1))||!(a12==1)))&&(a16==8)))&&((((a20==1)&&(((((((a9==7)&&((a5==5)&&(a1==12)))&&(a19==3))||((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==2))||((((a5==4)&&(a1==12))&&(a9==7))&&(a19==3))))&&(input==4))&&(a3==1))&&(a3==1)))&&(a6==1))&&(a28==1)))){ + a16 = 7; + a23 = 1; + a0 = 0; + a19 = 1; + a5 = 4; + a8 = 0; + a9 = 7; + a1 = 12; + return -1; + } else if((((((!(a27==1)&&((((a19==2)&&(!(a7==1)&&((a21==10)&&(a3==1))))&&(a9==7))||(a26==1)))&&(a6==1))&&(a16==11))&&(a1==14))&&((a17==2)&&((a20==1)&&((a23==1)&&(!(a8==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))))))){ + a16 = 7; + a27 = 0; + a5 = 4; + a11 = 1; + a19 = 1; + a7 = 0; + a1 = 12; + return -1; + } else if(((((a9==8)&&(((((a19==2)&&((a3==1)||!(a3==1)))||!(a6==1))||(a7==1))&&(a17==2)))&&(a20==1))&&(((a28==1)&&((a11==1)&&((a16==10)&&((((input==3)&&(a1==12))&&(a21==11))&&(a5==5)))))&&!(a0==1)))){ + a3 = 1; + a9 = 7; + a13 = 1; + a19 = 1; + a16 = 7; + a21 = 10; + a2 = 1; + a5 = 4; + return -1; + } return calculate_output18(input); + } + + int calculate_output18(int input) { + if((((a16==7)&&((a17==2)&&(((a1==12)&&(((a21==10)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))&&(a12==1)))&&!(a18==1))))&&((a20==1)&&((!(a7==1)&&((a19==3)&&((((a11==1)&&(a9==7))||!(a2==1))||(a8==1))))&&(a13==1))))){ + a28 = 1; + a9 = 9; + a26 = 0; + a5 = 5; + a7 = 0; + a19 = 5; + return 25; + } else if(((((a21==12)&&(!(a20==1)&&((a19==2)&&((((input==4)&&(((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))))&&(a17==2))&&!(a8==1)))))&&(a1==13))&&((a16==7)&&(!(a12==1)||(!(a13==1)||((a0==1)||(((a2==1)||!(a6==1))&&!(a0==1)))))))){ + a7 = 0; + a20 = 1; + a4 = 0; + a21 = 10; + a19 = 3; + a9 = 7; + a1 = 12; + a13 = 1; + a5 = 4; + return 26; + } else if((((((a19==4)&&(((a27==1)||(((((a3==1)&&(a16==11))&&(a17==2))&&!(a7==1))&&(a9==7)))||!(a23==1)))&&!(a14==1))&&(a12==1))&&(((a21==12)&&((a11==1)&&((a1==13)&&((input==5)&&((a5==4)||(a5==5))))))&&(a20==1)))){ + a5 = 5; + a1 = 14; + a8 = 0; + a19 = 5; + a4 = 0; + a9 = 8; + a11 = 1; + return 23; + } else if((((!(a24==1)&&(!(a14==1)&&(((a16==10)&&(((a21==11)&&(input==4))&&(a19==2)))&&(a5==4))))&&(a1==12))&&(((a9==9)&&((a20==1)&&((((!(a14==1)&&(a6==1))&&(a13==1))||!(a12==1))||!(a13==1))))&&(a17==2)))){ + a19 = 1; + a14 = 0; + a21 = 10; + a9 = 7; + a27 = 0; + a28 = 1; + a16 = 7; + return -1; + } else if((((a19==3)&&((a21==12)&&(((((a1==14)&&(((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4)))&&(input==5)))&&!(a0==1))&&!(a0==1))&&!(a20==1))))&&((a17==2)&&(((a16==10)&&((((a28==1)||!(a13==1))&&!(a7==1))&&!(a4==1)))&&!(a0==1))))){ + a13 = 0; + a22 = 1; + a19 = 1; + a21 = 10; + a5 = 5; + a16 = 7; + a20 = 1; + a9 = 10; + a10 = 1; + return -1; + } else if((((!(a27==1)&&((a2==1)&&(((a1==12)&&((((input==1)&&((a5==5)||(a5==6)))&&(a21==12))&&(a16==11)))&&!(a27==1))))&&(a11==1))&&(((((a17==2)&&((a9==11)&&((a13==1)&&(a19==4))))||(a0==1))&&(a20==1))&&!(a27==1)))){ + a8 = 0; + a21 = 10; + a9 = 7; + a19 = 1; + a2 = 1; + a5 = 4; + a3 = 1; + a16 = 7; + return -1; + } else if(((((!(a14==1)&&(((a20==1)&&((a9==10)&&(a3==1)))&&(a17==2)))&&!(a7==1))||(a8==1))&&((a23==1)&&((((((a1==12)&&((a16==9)&&(((a5==5)||(a5==6))&&(input==5))))&&(a13==1))&&(a12==1))&&(a21==12))&&(a19==3))))){ + a3 = 1; + a5 = 5; + a21 = 10; + a19 = 2; + a16 = 7; + a1 = 13; + a8 = 0; + return -1; + } else if((((((a11==1)&&((((input==5)&&((a5==5)||(a5==6)))&&(a28==1))&&(a3==1)))&&(a16==8))&&(a17==2))&&((a9==9)&&(!(a20==1)&&((((a19==5)&&(!(a24==1)&&((!(a18==1)&&(a6==1))||!(a23==1))))&&(a21==11))&&(a1==14)))))){ + a1 = 12; + a25 = 1; + a29 = 0; + a19 = 2; + a20 = 1; + a21 = 10; + a5 = 6; + a16 = 7; + a15 = 0; + return -1; + } else if((((a19==4)&&(!(a20==1)&&(!(a24==1)&&((((a5==5)||(a5==6))&&(input==6))&&!(a26==1)))))&&((((a16==8)&&((a17==2)&&(((a21==10)&&((a27==1)||((a9==11)&&(!(a24==1)&&(a23==1)))))||(a27==1))))||(a4==1))&&(a1==12)))){ + a5 = 4; + a27 = 0; + a3 = 1; + a19 = 1; + a20 = 1; + a11 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if(((!(a7==1)&&(!(a3==1)||((((a21==10)&&(!(a4==1)&&(a2==1)))&&(a12==1))&&(a11==1))))&&((!(a20==1)&&((((input==3)&&(((a19==2)&&((a9==11)&&((a5==6)&&(a1==14))))||(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==3))))&&(a17==2))&&(a16==11)))&&(a12==1)))){ + a7 = 1; + a5 = 4; + a20 = 1; + a19 = 1; + a9 = 11; + a13 = 0; + a1 = 13; + a16 = 7; + return 25; + } else if((((a19==5)&&((((a21==12)&&(a2==1))||(a4==1))&&(a16==7)))&&(((a20==1)&&((a6==1)&&((((!(a27==1)&&(((input==1)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&(a1==13)))&&(a17==2))&&!(a24==1))&&(a11==1))))&&!(a27==1)))){ + a11 = 1; + a2 = 1; + a5 = 5; + a9 = 11; + a21 = 11; + a18 = 0; + a16 = 9; + return 22; + } else if(((((a23==1)&&(((a16==9)&&((((((a5==5)||(a5==6))&&(input==5))&&(a3==1))&&!(a0==1))&&!(a24==1)))&&!(a4==1)))&&(a17==2))&&(!(a20==1)&&((a21==10)&&(((a19==2)&&(((a12==1)&&(a1==14))||!(a23==1)))&&(a9==9)))))){ + a5 = 5; + a1 = 12; + a20 = 1; + a19 = 3; + a12 = 0; + a27 = 1; + a2 = 0; + a16 = 7; + a9 = 8; + return -1; + } else if(((((a3==1)&&((a19==2)&&((a1==13)&&((a17==2)&&((input==5)&&(a5==6))))))&&(a13==1))&&((a4==1)||((a11==1)&&((a28==1)&&(!(a27==1)&&((a21==12)&&((a16==7)&&((a9==9)&&((a23==1)&&!(a20==1))))))))))){ + if((a7==1)){ + a5 = 5; + a9 = 10; + a7 = 0; + a1 = 12; + a21 = 11; + a16 = 8; + a13 = 1; + a19 = 5; + a2 = 1; + }else{ + a19 = 1; + a4 = 0; + a16 = 10; + a14 = 0; + a20 = 1; + a26 = 0; + a9 = 11; + a21 = 10; + } + return 21; + } else if(((((a21==10)&&((a11==1)&&((a28==1)&&((input==3)&&(((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))))))&&(a19==4))&&(!(a12==1)||(((a17==2)&&((!(a20==1)&&((a1==12)&&(((a2==1)||(a7==1))||(a27==1))))&&(a16==7)))&&(a6==1))))){ + a19 = 1; + a11 = 1; + a3 = 1; + a20 = 1; + a18 = 0; + a5 = 4; + a9 = 7; + return -1; + } else if(((!(a28==1)||((((a21==11)&&((a13==1)&&(a19==3)))&&(a16==11))&&(a17==2)))&&(((a23==1)&&(!(a0==1)&&((((a1==13)&&(((input==5)&&(((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))))&&!(a27==1)))&&!(a18==1))&&(a20==1))))&&!(a8==1)))){ + a16 = 7; + a5 = 4; + a9 = 7; + a1 = 12; + a21 = 10; + a23 = 1; + a19 = 1; + a11 = 1; + return -1; + } else if((((!(a0==1)&&((a3==1)&&((a17==2)&&((a1==14)&&(((a20==1)&&(a3==1))&&!(a8==1))))))||(a0==1))&&(((((a19==2)&&((a16==9)&&((input==4)&&(((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))))))&&(a3==1))&&(a21==10))&&!(a7==1)))){ + a9 = 8; + a19 = 5; + a24 = 0; + a16 = 8; + a5 = 5; + a4 = 0; + a8 = 0; + return 25; + } else if((((((a9==11)&&((a18==1)||(((a28==1)||(a14==1))&&(a21==10))))&&(a20==1))&&(a1==13))&&(((!(a24==1)&&((((a23==1)&&(((input==1)&&((a5==5)||(a5==6)))&&!(a8==1)))&&!(a8==1))&&(a17==2)))&&(a19==2))&&(a16==10)))){ + a14 = 0; + a23 = 1; + a9 = 7; + a16 = 9; + a5 = 5; + a0 = 0; + a1 = 12; + a21 = 12; + return 21; + } else if((((((a17==2)&&((a21==10)&&((a1==12)&&(a2==1))))&&!(a7==1))||(a8==1))&&(((((((a11==1)&&((a19==1)&&((a20==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))))&&!(a27==1))&&!(a18==1))&&(a9==9))&&(a16==11))&&!(a7==1)))){ + a3 = 1; + a27 = 0; + a16 = 7; + a9 = 7; + a12 = 1; + a5 = 4; + return -1; + } else if(((!(a14==1)&&((a21==12)&&((a9==8)&&(((input==4)&&(a5==4))&&!(a4==1)))))&&((!(a26==1)&&(((((a8==1)||((!(a20==1)&&((a23==1)&&(a3==1)))&&(a19==1)))&&(a1==13))&&(a16==8))&&(a17==2)))||(a14==1)))){ + a19 = 2; + a5 = 6; + a1 = 12; + a3 = 0; + a20 = 1; + a13 = 0; + a16 = 7; + a9 = 9; + a21 = 10; + return 26; + } else if(((((a19==2)&&((!(a4==1)&&((!(a27==1)&&((input==4)&&(a17==2)))&&(a1==12)))&&(a9==8)))&&!(a8==1))&&((a16==10)&&(((a5==4)&&((a21==11)&&((a20==1)&&(((a6==1)||(a8==1))&&(a23==1)))))&&(a3==1))))){ + a21 = 10; + a19 = 1; + a9 = 7; + a28 = 1; + a18 = 0; + a11 = 1; + a16 = 7; + return -1; + } else if(((((a3==1)&&(!(a28==1)||(((a21==10)&&((a2==1)&&!(a20==1)))||(a18==1))))||!(a2==1))&&(!(a7==1)&&(((a1==13)&&((((a16==11)&&((((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6))))&&(input==4)))&&(a13==1))&&(a17==2)))&&(a19==2))))){ + if((a22==1)){ + a5 = 5; + a29 = 1; + a27 = 1; + a1 = 12; + a16 = 7; + a9 = 8; + a20 = 1; + }else{ + a29 = 0; + a16 = 9; + a20 = 1; + a1 = 12; + a26 = 1; + a9 = 10; + a5 = 5; + a22 = 0; + } + return -1; + } else if((((a12==1)&&(!(a18==1)&&((a1==13)&&(((a21==11)&&(((a19==4)&&(input==5))&&(a17==2)))&&(a9==9)))))&&((a23==1)&&((a16==9)&&(!(a7==1)&&(((!(a11==1)||((a12==1)&&(a5==5)))&&(a20==1))&&!(a4==1))))))){ + a5 = 6; + a19 = 5; + a1 = 12; + a3 = 1; + a27 = 0; + a11 = 1; + a9 = 10; + a21 = 10; + return 25; + } else if(((((a13==1)&&((!(a20==1)&&((a28==1)&&((a12==1)&&((a17==2)&&(((((a21==11)&&(((a9==11)&&((a1==14)&&(a5==6)))&&(a19==5)))||((a21==12)&&((a19==1)&&((a9==7)&&((a5==4)&&(a1==12))))))||((((a9==7)&&((a5==5)&&(a1==12)))&&(a19==1))&&(a21==12)))&&(input==6))))))&&(a23==1)))&&(a13==1))&&(((a3==1)&&(a6==1))&&(a16==9)))){ + a28 = 0; + a21 = 11; + a1 = 12; + a9 = 10; + a15 = 0; + a16 = 10; + a23 = 0; + a5 = 5; + a19 = 2; + return -1; + } else if(((!(a7==1)&&((((((a23==1)&&(a16==11))&&!(a20==1))&&(a21==10))&&!(a18==1))||!(a6==1)))&&((a23==1)&&((!(a4==1)&&((a19==1)&&((a12==1)&&(((input==5)&&(((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))&&(a1==13)))))&&(a17==2))))){ + a25 = 1; + a20 = 1; + a9 = 9; + a16 = 7; + a1 = 12; + a8 = 1; + a5 = 6; + a14 = 1; + return -1; + } else if(((((a19==1)&&(!(a3==1)||((a0==1)||(!(a18==1)&&((a5==5)&&(((a1==13)&&((a27==1)||(a23==1)))&&(a9==9)))))))&&(a16==9))&&(((a17==2)&&(!(a14==1)&&((a21==10)&&(!(a20==1)&&(input==1)))))&&!(a26==1)))){ + if((a13==1)){ + a8 = 1; + a5 = 4; + a1 = 12; + a23 = 0; + a16 = 7; + a20 = 1; + a29 = 1; + }else{ + a18 = 1; + a7 = 1; + a21 = 12; + a15 = 0; + a19 = 2; + a9 = 8; + a20 = 1; + a5 = 4; + } + return 26; + } else if((((((a23==1)&&(a18==1))&&(a1==14))&&!(a12==1))&&((a8==1)&&(!(a3==1)&&(((a17==2)&&(!(a2==1)&&(((a20==1)&&((((((a5==5)||(a5==6))&&(input==3))&&(a9==10))&&(a21==10))&&(a16==10)))&&!(a11==1))))&&(a19==4)))))){ + a1 = 12; + a19 = 5; + a5 = 4; + a10 = 1; + a11 = 0; + a9 = 11; + a12 = 0; + return -1; + } else if((((a12==1)&&((!(a8==1)&&((input==3)&&(((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6))))))&&!(a18==1)))&&((a17==2)&&((a16==7)&&(((a3==1)&&((a24==1)||(((!(a3==1)||((a21==10)&&(a6==1)))&&!(a20==1))&&(a1==13))))&&(a19==2)))))){ + a20 = 1; + a4 = 0; + a13 = 1; + a7 = 0; + a1 = 12; + a5 = 4; + a9 = 7; + a19 = 1; + return -1; + } else if((((a9==7)&&(!(a4==1)&&((((a20==1)&&(((a28==1)&&(a3==1))&&(a21==12)))&&(a6==1))&&(a19==2))))&&((((a6==1)&&((a16==10)&&((a12==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a28==1)))))&&(a1==14))&&(a17==2)))){ + a21 = 10; + a19 = 4; + a14 = 0; + a26 = 0; + a16 = 7; + a5 = 5; + a6 = 1; + return 25; + } else if(((((a3==1)&&((((a11==1)&&(!(a20==1)&&(((input==3)&&(((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))))&&(a19==4))))&&(a1==12))&&(a17==2)))&&(a2==1))&&((a13==1)&&(((!(a11==1)||((a16==9)&&(a23==1)))&&(a21==10))&&!(a4==1))))){ + a8 = 1; + a7 = 1; + a16 = 7; + a20 = 1; + a5 = 4; + a9 = 10; + a1 = 13; + a19 = 1; + return 21; + } else if(((!(a4==1)&&((a19==5)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6))))&&((a14==1)||((!(a7==1)&&((a16==8)&&((a17==2)&&((a26==1)||((a1==13)&&(((!(a0==1)&&((a2==1)&&(a20==1)))&&(a21==12))&&(a9==11)))))))&&(a3==1))))){ + a0 = 0; + a8 = 0; + a9 = 9; + a21 = 10; + a5 = 4; + a19 = 2; + a11 = 1; + a16 = 7; + return 23; + } else if((((a16==11)&&(((a24==1)||(a12==1))&&(a21==11)))&&((((a17==2)&&(!(a18==1)&&(!(a8==1)&&((a20==1)&&((a11==1)&&(((((a19==1)&&((a9==11)&&((a5==6)&&(a1==14))))||((a19==2)&&((a9==7)&&((a1==12)&&(a5==4)))))||((a19==2)&&(((a5==5)&&(a1==12))&&(a9==7))))&&(input==6)))))))&&!(a24==1))&&(a12==1)))){ + a16 = 8; + a2 = 1; + a1 = 14; + a13 = 1; + a19 = 1; + a9 = 8; + a5 = 6; + a3 = 1; + a21 = 12; + return 21; + } else if((((a12==1)&&(((a1==14)&&((a16==10)&&((((a14==1)||(a6==1))&&(a21==11))&&(a20==1))))||(a8==1)))&&(((a2==1)&&((((a11==1)&&(((a19==2)&&(input==5))&&(a9==11)))&&(a17==2))&&(a5==6)))&&!(a8==1)))){ + a21 = 10; + a3 = 1; + a8 = 0; + a16 = 7; + a23 = 1; + a9 = 8; + return -1; + } else if(((((((!(a8==1)&&(((a19==4)&&((((input==1)&&((a5==4)||(a5==5)))&&!(a4==1))&&(a16==11)))&&(a17==2)))&&(a9==10))&&(a1==13))&&(a13==1))&&(a13==1))&&((a4==1)||(!(a20==1)&&(((a3==1)&&(a21==10))||!(a6==1)))))){ + a9 = 11; + a5 = 4; + a23 = 0; + a16 = 7; + a18 = 1; + a19 = 1; + a10 = 0; + a20 = 1; + return 23; + } else if(((!(a20==1)&&(!(a2==1)||((a16==7)&&(!(a3==1)||(((a19==5)&&(a6==1))&&!(a26==1))))))&&(!(a24==1)&&((a1==14)&&(!(a27==1)&&(((a21==10)&&(((a9==9)&&(((a5==5)||(a5==6))&&(input==3)))&&(a17==2)))&&(a12==1))))))){ + a16 = 11; + a1 = 12; + a5 = 5; + a7 = 0; + a6 = 1; + a9 = 7; + a14 = 0; + a20 = 1; + a19 = 4; + return 21; + } else if((((a9==11)&&(((a18==1)||((a1==14)&&((a3==1)&&!(a24==1))))&&(a19==3)))&&(((a2==1)&&(!(a8==1)&&((a16==9)&&((((a23==1)&&((!(a20==1)&&(input==6))&&(a5==4)))&&(a17==2))&&!(a14==1)))))&&(a21==12)))){ + a16 = 7; + a21 = 10; + a23 = 0; + a9 = 10; + a1 = 13; + a27 = 1; + a19 = 4; + a5 = 6; + return 21; + } else if((((!(a8==1)&&((((a13==1)&&((((input==6)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&(a1==14))&&(a19==5)))&&!(a7==1))&&(a16==8)))&&(a17==2))&&(((!(a7==1)&&(((a2==1)||(a0==1))&&(a21==12)))&&!(a20==1))||!(a11==1)))){ + a29 = 1; + a5 = 6; + a9 = 10; + a1 = 12; + a20 = 1; + a16 = 7; + a4 = 1; + a8 = 1; + a19 = 2; + a21 = 10; + return -1; + } else if(((!(a8==1)&&(((a17==2)&&(((a20==1)&&((input==6)&&((a5==4)||(a5==5))))&&(a21==11)))&&(a16==11)))&&(!(a26==1)&&(!(a12==1)||(((a1==13)&&(((a14==1)||(!(a2==1)||((a19==5)&&(a2==1))))&&(a9==11)))||!(a6==1)))))){ + a19 = 3; + a9 = 8; + a5 = 6; + a4 = 0; + a0 = 0; + a2 = 1; + a21 = 12; + return 23; + } else if(((((a7==1)||(((a16==8)&&(!(a20==1)&&((a9==8)&&((a13==1)&&(a2==1)))))&&(a1==14)))&&!(a14==1))&&((((((!(a4==1)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6))))&&(a17==2))&&(a3==1))&&(a19==4))&&(a21==12))&&!(a24==1)))){ + a19 = 2; + a5 = 4; + a4 = 1; + a3 = 0; + a21 = 10; + a9 = 11; + a7 = 1; + return -1; + } else if(((((a21==12)&&(((((((a9==11)&&((a1==12)&&(a5==6)))||((a9==7)&&((a5==4)&&(a1==13))))&&(input==6))&&!(a14==1))&&!(a0==1))&&!(a4==1)))&&(a17==2))&&((a20==1)&&(((((a18==1)||((a6==1)&&(a16==7)))&&!(a14==1))&&!(a26==1))&&(a19==1))))){ + a3 = 1; + a9 = 10; + a7 = 0; + a11 = 1; + a16 = 8; + a1 = 12; + a19 = 5; + a5 = 4; + return 23; + } else if((((a14==1)||(((a1==12)&&(((!(a0==1)&&((a12==1)||(a27==1)))&&(a19==3))&&!(a7==1)))&&!(a18==1)))&&(((a16==10)&&(((((((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6))))&&(input==3))&&(a20==1))&&(a21==10))&&(a3==1)))&&(a17==2)))){ + a21 = 12; + a19 = 5; + a7 = 0; + a8 = 0; + a16 = 8; + a9 = 11; + a13 = 1; + a5 = 5; + return -1; + } else if(((!(a14==1)&&((!(a3==1)||(!(a0==1)&&(((((a12==1)&&(a16==10))||(a18==1))&&(a1==12))&&!(a7==1))))&&(a19==4)))&&((a21==12)&&(((a17==2)&&((!(a26==1)&&((a9==10)&&(input==1)))&&!(a20==1)))&&(a5==6))))){ + a4 = 1; + a7 = 1; + a16 = 7; + a19 = 1; + a9 = 7; + a20 = 1; + a11 = 0; + a21 = 10; + return 22; + } else if(((((a12==1)&&((a17==2)&&((a9==11)&&((a20==1)&&((a6==1)&&((a1==13)&&(!(a24==1)&&((input==5)&&(a19==5)))))))))&&(a5==6))&&((a21==12)&&((!(a24==1)&&((!(a12==1)||(a12==1))||(a0==1)))&&(a16==11))))){ + a16 = 7; + a24 = 0; + a28 = 1; + a19 = 1; + a21 = 10; + a6 = 1; + a20 = 0; + return 21; + } else if((((a16==8)&&((a1==12)&&((a9==10)&&(input==4))))&&(!(a12==1)||((a21==12)&&(!(a20==1)&&((a12==1)&&((((((((a3==1)&&!(a7==1))&&!(a0==1))||!(a13==1))&&(a17==2))&&(a5==4))&&(a19==5))||!(a11==1)))))))){ + if((a26==1)){ + a16 = 11; + a26 = 1; + a1 = 13; + a21 = 10; + a15 = 1; + a19 = 1; + a23 = 0; + }else{ + a19 = 2; + a29 = 1; + a16 = 7; + a9 = 8; + a5 = 5; + a28 = 0; + a21 = 10; + a26 = 1; + a20 = 1; + } + return -1; + } else if((((a1==13)&&(!(a28==1)||((a26==1)||(((((a20==1)&&(((a28==1)&&(a6==1))&&(a9==10)))&&(a28==1))&&(a17==2))&&(a19==5)))))&&((a16==9)&&(((a3==1)&&((a21==10)&&(((a5==4)||(a5==5))&&(input==6))))&&!(a4==1))))){ + a6 = 1; + a16 = 10; + a24 = 0; + a19 = 3; + a5 = 5; + a1 = 12; + a26 = 0; + return 26; + } else if((((a5==5)&&(((((a12==1)&&!(a0==1))&&(a1==12))&&(a17==2))&&(a19==2)))&&(((((a21==12)&&((a23==1)&&((a11==1)&&((((input==3)&&!(a20==1))&&(a23==1))&&(a2==1)))))&&(a16==9))&&(a13==1))&&(a9==9)))){ + if((a25==1)){ + a20 = 1; + a21 = 11; + a26 = 1; + a0 = 1; + a16 = 10; + a19 = 5; + a29 = 0; + a9 = 11; + }else{ + a21 = 10; + a29 = 0; + a16 = 7; + a28 = 0; + a9 = 11; + a20 = 1; + a25 = 0; + } + return 25; + } else if((((a19==4)&&(((a9==9)&&((!(a2==1)&&(a12==1))&&!(a20==1)))&&(a17==2)))&&((a1==14)&&(((a26==1)&&((a8==1)&&(((((a8==1)&&((input==5)&&(a21==11)))&&!(a28==1))&&(a16==8))&&(a8==1))))&&(a5==4))))){ + a16 = 10; + a19 = 3; + a25 = 0; + a27 = 1; + a20 = 1; + a22 = 1; + a9 = 8; + return -1; + } else if((((a17==2)&&((a1==14)&&(((a19==5)&&(!(a20==1)&&((((a3==1)&&(((input==5)&&(a16==9))&&(a21==11)))&&(a5==5))&&!(a8==1))))&&(a9==9))))&&(((a2==1)&&(!(a26==1)&&(!(a27==1)&&(a3==1))))||!(a23==1)))){ + if((a16==7)){ + a19 = 1; + a6 = 0; + a5 = 4; + a16 = 7; + a29 = 0; + a9 = 11; + a15 = 0; + a21 = 10; + a20 = 1; + a1 = 13; + }else{ + a19 = 1; + a1 = 13; + a23 = 0; + a9 = 10; + a11 = 0; + a5 = 6; + a20 = 1; + a2 = 0; + a21 = 10; + a16 = 7; + } + return 22; + } else if(((!(a3==1)||(((a1==12)&&(((a3==1)&&(a19==2))&&!(a20==1)))&&(a16==7)))&&(((a11==1)&&((a11==1)&&((a21==11)&&((a3==1)&&((a17==2)&&(((input==6)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5))))&&!(a0==1)))))))&&(a13==1)))){ + a16 = 8; + a3 = 1; + a5 = 6; + a21 = 12; + a0 = 0; + a1 = 13; + a20 = 1; + a18 = 0; + a19 = 3; + a9 = 8; + return 22; + } else if(((((((a20==1)&&(((a11==1)&&((a17==2)&&((((a5==5)&&(input==5))&&!(a18==1))&&!(a18==1))))&&(a1==12)))&&(a16==10))&&(a9==8))&&(a6==1))&&((a23==1)&&((a19==2)&&(((a6==1)&&!(a14==1))&&(a21==11)))))){ + a19 = 1; + a24 = 0; + a21 = 10; + a11 = 1; + a5 = 4; + a16 = 7; + a0 = 0; + a9 = 7; + return -1; + } else if(((((a17==2)&&((a13==1)&&(((((a21==12)&&(((a23==1)||!(a23==1))&&(a9==11)))&&(a20==1))&&!(a27==1))||(a4==1))))&&(a19==3))&&((a28==1)&&((a16==11)&&((a1==13)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&!(a14==1))))))){ + a2 = 1; + a16 = 7; + a18 = 0; + a19 = 1; + a9 = 7; + a24 = 0; + a21 = 10; + a1 = 12; + a5 = 4; + return -1; + } else if(((((a16==11)&&(!(a20==1)&&((a2==1)&&(a19==2))))&&(a28==1))&&((a13==1)&&((a3==1)&&((((a21==10)&&((((a3==1)&&((input==6)&&(((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9))))))&&(a1==12))&&!(a14==1)))&&!(a7==1))&&(a17==2)))))){ + a1 = 14; + a19 = 1; + a24 = 1; + a16 = 7; + a20 = 1; + a5 = 4; + a8 = 1; + a9 = 7; + a7 = 1; + return 23; + } else if((((((a20==1)&&((input==1)&&(((((a19==5)&&(((a1==14)&&(a5==6))&&(a9==11)))&&(a21==11))||((a21==12)&&((((a5==4)&&(a1==12))&&(a9==7))&&(a19==1))))||((a21==12)&&((a19==1)&&((a9==7)&&((a5==5)&&(a1==12))))))))&&!(a0==1))&&(a28==1))&&((a26==1)||((a17==2)&&((a12==1)&&((a26==1)||((a6==1)&&((a3==1)&&(a16==9))))))))){ + a9 = 7; + a21 = 10; + a4 = 0; + a0 = 0; + a16 = 7; + a5 = 4; + a19 = 1; + a14 = 0; + a1 = 12; + return -1; + } else if((((a28==1)&&(((a21==11)&&((!(a18==1)&&(((!(a20==1)&&((a5==4)&&(input==1)))&&(a16==7))&&(a9==10)))&&!(a26==1)))&&(a19==3)))&&(((a17==2)&&(!(a27==1)&&(((a13==1)&&(a1==14))||(a24==1))))&&(a2==1)))){ + a23 = 1; + a27 = 0; + a19 = 1; + a11 = 1; + a16 = 10; + a20 = 1; + a9 = 11; + return 22; + } else if((((((((a21==12)&&((a19==1)&&(a23==1)))&&(a1==14))&&!(a4==1))||!(a3==1))&&(a20==1))&&(((((a6==1)&&(((a6==1)&&((a12==1)&&((input==3)&&(a9==7))))&&(a17==2)))&&(a12==1))&&(a5==5))&&(a16==7)))){ + a19 = 3; + a3 = 1; + a5 = 4; + a1 = 12; + a8 = 0; + a21 = 10; + a28 = 1; + return 26; + } else if(((((a5==4)&&((a1==14)&&(!(a4==1)&&(!(a26==1)&&(!(a27==1)&&((a9==10)&&(input==5)))))))&&(a19==4))&&((a21==12)&&((a20==1)&&((a16==7)&&((a17==2)&&((!(a2==1)||((a3==1)||!(a3==1)))&&!(a27==1)))))))){ + a19 = 2; + a4 = 0; + a18 = 0; + a21 = 11; + a16 = 8; + a5 = 5; + a14 = 0; + return 25; + } else if(((((((((input==1)&&((a5==5)||(a5==6)))&&(a17==2))&&(a20==1))&&!(a26==1))&&!(a7==1))&&(a9==10))&&((a19==3)&&((a4==1)||(((((a16==8)&&(((a13==1)&&(a21==10))&&!(a7==1)))&&(a1==13))&&(a13==1))||!(a11==1)))))){ + a5 = 4; + a9 = 7; + a6 = 1; + a14 = 0; + a3 = 1; + a1 = 12; + a19 = 1; + a16 = 7; + return -1; + } else if(((((((a28==1)&&((a9==10)&&(((a17==2)&&(input==5))&&(a16==8))))&&!(a14==1))&&(a1==13))&&(a5==4))&&((a20==1)&&(((a21==10)&&(((((a19==3)&&(a12==1))||!(a3==1))||!(a12==1))||(a0==1)))||(a18==1))))){ + a23 = 1; + a9 = 7; + a11 = 1; + a3 = 1; + a16 = 7; + a1 = 12; + a19 = 1; + return -1; + } else if(((((a1==12)&&(!(a14==1)&&((a16==9)&&((input==4)&&(a19==3)))))&&!(a20==1))&&((a17==2)&&((a27==1)||(((!(a23==1)||(((a27==1)||(((a13==1)&&(a5==4))&&(a21==11)))&&!(a7==1)))||(a14==1))&&(a9==9)))))){ + a9 = 10; + a25 = 0; + a16 = 7; + a21 = 10; + a1 = 14; + a20 = 1; + a26 = 1; + a19 = 1; + a28 = 0; + a5 = 5; + return 23; + } else if((((!(a14==1)&&(((a19==1)&&(((a5==4)&&(((input==4)&&(a21==11))&&(a12==1)))&&(a1==14)))&&(a9==11)))&&(a17==2))&&(!(a7==1)&&((!(a13==1)||(((a20==1)&&((a2==1)&&(a2==1)))&&!(a14==1)))&&(a16==7))))){ + a9 = 7; + a4 = 0; + a7 = 0; + a6 = 1; + a21 = 10; + a1 = 12; + return -1; + } else if(((((a1==14)&&((((a27==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a18==1)))&&(a17==2))&&(a9==7)))&&(a24==1))&&(!(a2==1)&&((a16==9)&&(((a19==5)&&(!(a6==1)&&(((a21==11)&&(a13==1))&&(a20==1))))&&!(a28==1)))))){ + a9 = 11; + a19 = 1; + a12 = 0; + a14 = 1; + a16 = 7; + a21 = 10; + a5 = 4; + a1 = 13; + a22 = 0; + return 26; + } else if(((((a18==1)||((a6==1)&&((a18==1)||(((a17==2)&&((!(a20==1)&&(a28==1))&&(a1==14)))&&(a9==7)))))&&!(a0==1))&&(!(a7==1)&&((((((a16==9)&&(input==1))&&(a21==12))&&(a19==3))&&(a12==1))&&(a5==5))))){ + if((a15==1)){ + a16 = 8; + a25 = 0; + a21 = 10; + a19 = 5; + a4 = 1; + a1 = 13; + a9 = 8; + a5 = 4; + a24 = 1; + }else{ + a20 = 1; + a21 = 10; + a19 = 1; + a5 = 6; + a9 = 10; + a12 = 0; + a10 = 1; + a1 = 12; + a16 = 7; + a24 = 1; + } + return 21; + } else if((((a11==1)&&(!(a18==1)&&((!(a0==1)&&((a17==2)&&(!(a4==1)&&((a1==14)&&((((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(input==6))))))&&(a13==1))))&&(((a21==11)&&(!(a20==1)&&((a16==8)&&((a19==4)&&(a13==1)))))&&(a13==1)))){ + a9 = 7; + a20 = 1; + a18 = 0; + a16 = 7; + a5 = 4; + a0 = 0; + a1 = 12; + a3 = 1; + a19 = 1; + a21 = 10; + return -1; + } else if((((a16==9)&&((a17==2)&&((a21==11)&&((input==4)&&((a5==4)||(a5==5))))))&&((a20==1)&&((a9==11)&&((a26==1)||(!(a27==1)&&(((!(a12==1)||((a1==14)&&((a19==3)&&((a6==1)&&(a2==1)))))||!(a28==1))&&(a23==1)))))))){ + a19 = 1; + a9 = 7; + a8 = 0; + a12 = 1; + a1 = 12; + a16 = 7; + a5 = 4; + a21 = 10; + return -1; + } else if(((((a17==2)&&(((a19==5)&&(a11==1))&&(a1==12)))||!(a12==1))&&((a6==1)&&(((a16==8)&&((!(a20==1)&&((a21==12)&&((a11==1)&&((a6==1)&&((input==1)&&(((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))))))&&(a12==1)))&&!(a26==1))))){ + if((a22==1)){ + a25 = 1; + a19 = 2; + a13 = 0; + a5 = 6; + a27 = 1; + a9 = 9; + }else{ + a5 = 4; + a20 = 1; + a26 = 1; + a21 = 10; + a16 = 7; + a9 = 7; + a19 = 1; + a22 = 0; + } + return -1; + } else if((((a12==1)&&((a13==1)&&((((a1==13)&&((((input==4)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&!(a14==1))&&(a16==9)))&&(a17==2))&&(a21==10))))&&(((a11==1)&&(!(a20==1)&&(!(a18==1)&&((a12==1)&&(a19==3)))))||(a7==1)))){ + a19 = 1; + a5 = 6; + a24 = 1; + a1 = 14; + a20 = 1; + a9 = 8; + a25 = 1; + a14 = 1; + a16 = 7; + return -1; + } else if(((((((((!(a11==1)||(!(a27==1)&&(a23==1)))&&(a19==1))||(a26==1))&&!(a20==1))||(a18==1))&&(a17==2))&&!(a27==1))&&((!(a14==1)&&((a5==5)&&((a1==14)&&((a9==11)&&((input==3)&&(a21==11))))))&&(a16==7)))){ + a9 = 7; + a13 = 1; + a20 = 1; + a7 = 0; + a21 = 10; + a5 = 4; + a12 = 1; + a1 = 12; + return -1; + } else if((((((((input==1)&&(a17==2))&&!(a8==1))&&!(a20==1))&&(a28==1))&&!(a24==1))&&((((a1==13)&&((a16==8)&&((a5==5)&&(!(a12==1)||((((a9==10)&&(a11==1))&&(a3==1))&&!(a14==1))))))&&(a21==12))&&(a19==2)))){ + if((a17==4)){ + a20 = 1; + a9 = 7; + a27 = 1; + a19 = 5; + a3 = 0; + a16 = 10; + a5 = 4; + a10 = 1; + }else{ + a11 = 0; + a28 = 0; + a21 = 10; + a16 = 9; + a19 = 1; + a0 = 1; + a1 = 14; + a20 = 1; + } + return -1; + } else if(((((a19==4)&&((a17==2)&&((a18==1)||((!(a12==1)||(((a21==11)&&(!(a12==1)||(a13==1)))||(a4==1)))||(a0==1)))))&&(a1==14))&&(((a16==7)&&((a12==1)&&((input==4)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5))))))&&(a20==1)))){ + a24 = 0; + a5 = 6; + a16 = 8; + a20 = 0; + a9 = 11; + a12 = 1; + a7 = 0; + a1 = 12; + a21 = 10; + return 26; + } else if(((((a14==1)&&(((((((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&(a27==1))&&(a24==1))&&(a1==14))&&(a16==9))&&(a14==1)))&&(a21==11))&&(((a9==7)&&(!(a13==1)&&((a20==1)&&(((a8==1)&&(a2==1))&&(a17==2)))))&&(a19==5)))){ + a20 = 0; + a16 = 8; + a23 = 0; + a2 = 0; + a5 = 5; + a21 = 10; + a6 = 0; + a19 = 4; + a9 = 9; + return 21; + } else if(((((a23==1)&&(((a28==1)&&(a1==14))&&(a16==9)))||!(a28==1))&&(!(a26==1)&&(((((((a2==1)&&((a5==6)&&(((a19==5)&&(input==6))&&(a17==2))))&&!(a20==1))&&(a21==12))&&(a11==1))&&(a9==11))&&!(a0==1))))){ + a23 = 0; + a20 = 1; + a9 = 8; + a16 = 7; + a10 = 1; + a27 = 1; + a5 = 4; + a21 = 10; + a19 = 1; + a1 = 13; + return -1; + } else if(((!(a3==1)&&(!(a3==1)&&(((a1==13)&&((a19==3)&&((a21==12)&&(input==4))))&&(a20==1))))&&(((((a5==6)&&(((((a23==1)&&(a9==7))&&(a17==2))&&!(a2==1))&&!(a11==1)))&&(a16==8))&&!(a2==1))&&!(a3==1)))){ + a5 = 4; + a9 = 11; + a1 = 14; + a23 = 0; + a21 = 10; + a19 = 1; + a7 = 1; + a20 = 0; + a11 = 0; + return -1; + } else if(((!(a14==1)&&(((!(a0==1)&&((a12==1)&&(((input==1)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9))))&&(a12==1))))&&!(a8==1))&&(a19==4)))&&(((a17==2)&&(((a21==11)&&((a1==14)&&((a2==1)||(a27==1))))&&(a16==10)))&&!(a20==1)))){ + if((a4==1)){ + a15 = 0; + a5 = 6; + a16 = 7; + a9 = 8; + a25 = 0; + a19 = 1; + a1 = 13; + a7 = 1; + a20 = 1; + a21 = 10; + }else{ + a3 = 0; + a1 = 12; + a5 = 6; + a9 = 8; + a16 = 9; + a4 = 1; + a19 = 2; + a13 = 0; + a21 = 12; + } + return -1; + } else if(((((a16==9)&&(((a17==2)&&((a13==1)&&(!(a0==1)&&(!(a8==1)&&(((input==5)&&((a5==4)||(a5==5)))&&!(a18==1))))))&&(a19==4)))&&!(a20==1))&&((((a26==1)||((a1==12)&&((a6==1)||!(a11==1))))&&(a9==11))&&(a21==10)))){ + a19 = 1; + a18 = 1; + a7 = 1; + a9 = 9; + a16 = 7; + a5 = 4; + a20 = 1; + a26 = 1; + return 21; + } else if(((((a28==1)&&(((a9==7)&&((((a17==2)&&(input==6))&&!(a18==1))&&(a1==12)))&&(a20==1)))&&!(a18==1))&&((a3==1)&&((a19==2)&&((a8==1)||((a21==11)&&((((a16==11)&&(a6==1))&&(a5==6))&&(a23==1)))))))){ + a1 = 13; + a11 = 1; + a3 = 1; + a5 = 5; + a19 = 5; + return 21; + } else if((((a4==1)||((a4==1)||(((((a9==8)&&((a14==1)||((a16==9)&&(a3==1))))&&(a1==14))&&(a17==2))&&(a20==1))))&&(((a19==5)&&((a13==1)&&((a21==12)&&(!(a18==1)&&(((a5==4)||(a5==5))&&(input==4))))))&&(a13==1)))){ + a5 = 4; + a16 = 7; + a7 = 0; + a21 = 10; + a9 = 7; + a6 = 1; + a19 = 1; + a8 = 0; + a1 = 12; + return -1; + } else if(((((!(a13==1)||((((!(a26==1)&&(a11==1))&&(a16==10))||(a26==1))&&(a2==1)))||!(a12==1))&&(a20==1))&&((a5==4)&&((((a19==2)&&(((a17==2)&&((input==5)&&(a1==14)))&&(a23==1)))&&(a21==12))&&(a9==9))))){ + a26 = 0; + a21 = 10; + a8 = 0; + a16 = 7; + a23 = 1; + a1 = 13; + return 25; + } else if(((!(a3==1)||(((((((a2==1)&&!(a20==1))&&(a17==2))&&(a1==14))&&(a16==10))&&(a21==10))&&(a9==10)))&&((!(a4==1)&&((a2==1)&&((((a3==1)&&(((a5==4)||(a5==5))&&(input==3)))&&(a19==2))&&!(a24==1))))&&(a6==1)))){ + a22 = 1; + a5 = 6; + a23 = 0; + a16 = 8; + a20 = 1; + a14 = 1; + a21 = 12; + a19 = 5; + a9 = 9; + return 25; + } else if((((a19==1)&&(!(a18==1)&&(((((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(input==3))&&(a3==1))))&&(((a1==13)&&((a16==11)&&((a17==2)&&((a6==1)&&(!(a2==1)||((a20==1)&&(((a11==1)||!(a2==1))&&!(a18==1))))))))&&(a21==11)))){ + a16 = 10; + a9 = 9; + a6 = 1; + a5 = 4; + a27 = 0; + a21 = 10; + a2 = 1; + a19 = 2; + a1 = 14; + return 21; + } else if((((a5==6)&&((a16==10)&&((a23==1)&&((!(a0==1)&&(((a12==1)&&!(a0==1))&&(a17==2)))&&!(a20==1)))))&&((a19==1)&&((!(a14==1)&&(!(a24==1)&&(((a21==11)&&((input==3)&&(a9==7)))&&(a1==13))))&&!(a24==1))))){ + a25 = 1; + a28 = 0; + a19 = 2; + a20 = 1; + a29 = 1; + a16 = 7; + a1 = 12; + a21 = 10; + return -1; + } else if(((((a1==13)&&((!(a11==1)&&(!(a6==1)&&(a2==1)))&&(a8==1)))&&(a21==10))&&((a17==2)&&((a16==10)&&((a9==10)&&((a19==2)&&(!(a6==1)&&(((a20==1)&&(!(a2==1)&&(((a5==4)||(a5==5))&&(input==6))))&&(a7==1))))))))){ + a16 = 7; + a22 = 0; + a19 = 1; + a7 = 1; + a25 = 0; + a1 = 12; + a5 = 5; + return 22; + } else if(((((a1==12)&&(!(a14==1)&&((((((a12==1)&&!(a14==1))&&(a21==10))&&(a16==11))&&(a19==2))&&!(a20==1))))&&(a3==1))&&((((((input==5)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&!(a14==1))&&(a17==2))&&(a11==1))&&!(a0==1)))){ + a16 = 7; + a9 = 11; + a10 = 1; + a5 = 4; + a22 = 1; + a20 = 1; + a19 = 1; + return -1; + } else if(((!(a24==1)&&(((a6==1)&&(!(a8==1)&&((a16==7)&&((a9==11)&&(((a17==2)&&(input==6))&&(a20==1))))))&&(a5==6)))&&((a23==1)&&(!(a18==1)&&((a23==1)&&(((a1==13)&&((a19==3)&&(a23==1)))&&(a21==11))))))){ + a6 = 1; + a9 = 9; + a18 = 0; + a20 = 0; + a1 = 14; + a5 = 5; + a16 = 8; + a14 = 0; + return 21; + } else if(((!(a24==1)&&(((a5==6)&&((((a6==1)||!(a6==1))||(a4==1))&&(a9==8)))||(a26==1)))&&(((((a20==1)&&((a17==2)&&((((a21==11)&&(input==5))&&(a19==5))&&(a1==13))))&&!(a0==1))&&(a16==11))&&(a3==1)))){ + a5 = 4; + a1 = 12; + a16 = 7; + a9 = 7; + a24 = 0; + a21 = 10; + a2 = 1; + a19 = 1; + a13 = 1; + return -1; + } else if((((a21==12)&&(((a3==1)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==3)))&&!(a20==1)))&&((a16==10)&&((a17==2)&&((a1==14)&&(((a19==5)&&((a11==1)&&((((a2==1)||(a0==1))&&(a3==1))&&!(a4==1))))||(a14==1))))))){ + a9 = 7; + a20 = 1; + a16 = 8; + a6 = 0; + a5 = 4; + a21 = 11; + a15 = 0; + a26 = 1; + return 21; + } else if((((!(a13==1)&&((((input==5)&&((a5==5)||(a5==6)))&&!(a2==1))&&(a1==14)))&&(a0==1))&&((a8==1)&&((((a20==1)&&((((((a28==1)&&!(a23==1))&&(a19==4))&&(a16==8))&&(a21==11))&&!(a28==1)))&&(a9==7))&&(a17==2))))){ + a19 = 1; + a10 = 1; + a9 = 9; + a16 = 7; + a8 = 1; + a1 = 12; + a0 = 1; + a5 = 4; + a21 = 10; + return 25; + } else if((((a9==9)&&((!(a23==1)||((a28==1)&&((a5==4)&&((a11==1)&&(a11==1)))))&&!(a7==1)))&&(!(a27==1)&&((a20==1)&&((a21==12)&&(!(a0==1)&&((a19==4)&&(((a16==9)&&((input==3)&&(a1==14)))&&(a17==2))))))))){ + a1 = 12; + a18 = 0; + a23 = 1; + a16 = 7; + a19 = 1; + a11 = 1; + a21 = 10; + a9 = 7; + return -1; + } else if(((((a1==12)&&(((a3==1)&&((a20==1)&&((a17==2)&&((((a21==11)&&(a12==1))&&(a19==4))&&(a13==1)))))||(a18==1)))&&(a16==7))&&(!(a4==1)&&((a3==1)&&(!(a8==1)&&((input==6)&&(((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))))))))){ + a16 = 8; + a9 = 7; + a8 = 0; + a19 = 3; + a1 = 13; + a5 = 5; + a0 = 0; + a12 = 1; + return 26; + } else if(((((a19==3)&&((((a16==10)&&((a13==1)&&((input==5)&&((a5==5)||(a5==6)))))&&(a2==1))&&(a9==8)))&&(a2==1))&&((a18==1)||((!(a20==1)&&((a17==2)&&(((a12==1)&&((a26==1)||(a6==1)))&&(a1==12))))&&(a21==12))))){ + a5 = 6; + a20 = 1; + a9 = 9; + a19 = 1; + a1 = 13; + a16 = 7; + a8 = 1; + a7 = 1; + a29 = 0; + a21 = 10; + return -1; + } else if(((((a23==1)&&((a17==2)&&(((a11==1)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))&&(input==4)))&&(a19==3))))&&(a1==12))&&(((a20==1)&&((a12==1)&&(((a16==10)&&(((a24==1)||(a28==1))&&!(a27==1)))&&(a23==1))))&&(a21==11)))){ + a2 = 1; + a21 = 10; + a9 = 7; + a26 = 0; + a16 = 7; + a19 = 1; + a13 = 1; + a5 = 4; + return -1; + } else if((((a9==10)&&((a20==1)&&(((a1==12)&&(a2==1))&&!(a18==1))))&&((((((a19==3)&&(((((a17==2)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))&&(a21==11))&&(a6==1))&&(a3==1)))&&(a16==8))&&(a12==1))&&!(a0==1))&&!(a7==1)))){ + a11 = 1; + a9 = 11; + a27 = 0; + a21 = 10; + a1 = 13; + a19 = 5; + a4 = 0; + a5 = 5; + a16 = 10; + return 25; + } else if((((a12==1)&&(!(a14==1)&&((a9==11)&&((((a2==1)&&((a13==1)||(a26==1)))&&(a1==14))||!(a28==1)))))&&(((a16==10)&&(((a17==2)&&((a5==5)&&((a19==2)&&((a21==12)&&(input==6)))))&&(a20==1)))&&(a2==1)))){ + a5 = 4; + a1 = 13; + a21 = 10; + a14 = 0; + a9 = 9; + a28 = 1; + a16 = 7; + a4 = 0; + return 25; + } else if(((!(a14==1)&&((a19==4)&&(((a11==1)&&((((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(input==4)))&&(a11==1))))&&(((((((a21==12)&&(((a20==1)&&(a13==1))||!(a6==1)))||(a18==1))&&(a1==13))||!(a11==1))&&(a16==10))&&(a17==2)))){ + a12 = 1; + a19 = 1; + a1 = 12; + a14 = 0; + a21 = 10; + a9 = 7; + a24 = 0; + a5 = 4; + a16 = 7; + return -1; + } else if((((a21==10)&&(!(a4==1)&&((a8==1)||((a16==8)&&(!(a20==1)&&((a19==1)&&(((a12==1)&&(a28==1))&&!(a14==1))))))))&&(((a1==12)&&(((a17==2)&&(!(a4==1)&&((input==3)&&(a5==6))))&&!(a18==1)))&&(a9==7)))){ + a20 = 1; + a21 = 12; + a9 = 8; + a3 = 1; + a18 = 0; + a16 = 7; + a5 = 4; + a19 = 3; + return 26; + } else if((((((a11==1)&&((((a1==13)&&((((input==4)&&((a5==4)||(a5==5)))&&!(a26==1))&&!(a0==1)))&&(a19==1))&&(a20==1)))&&!(a7==1))&&(a17==2))&&((a14==1)||(((((a6==1)&&!(a7==1))&&(a9==9))&&(a21==11))&&(a16==9))))){ + a1 = 12; + a9 = 7; + a7 = 0; + a28 = 1; + a5 = 4; + a16 = 7; + a21 = 10; + return -1; + } else if(((!(a0==1)&&(((a17==2)&&((a13==1)&&(((a16==11)&&((a1==13)&&(input==4)))&&(a19==3))))&&(a11==1)))&&(!(a14==1)&&((a20==1)&&((a21==11)&&((((a11==1)&&((a9==10)&&(a6==1)))&&!(a4==1))&&(a5==5))))))){ + a14 = 0; + a1 = 12; + a13 = 1; + a9 = 7; + a19 = 1; + a21 = 10; + a27 = 0; + a5 = 4; + a16 = 7; + return -1; + } else if(((!(a23==1)||((a3==1)&&(a6==1)))&&(((a11==1)&&((((a12==1)&&((a23==1)&&((a20==1)&&((a17==2)&&(((a19==3)&&((a21==10)&&(((a5==4)||(a5==5))&&(input==3))))&&(a9==10))))))&&(a16==10))&&(a1==14)))&&(a12==1)))){ + a19 = 1; + a5 = 4; + a2 = 1; + a9 = 7; + a6 = 1; + a1 = 12; + a16 = 7; + a11 = 1; + return -1; + } else if(((!(a20==1)&&((a19==3)&&(!(a0==1)&&((a21==10)&&(!(a0==1)&&(((((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6))))&&(input==5))&&!(a8==1)))))))&&(((((((a1==12)&&(a3==1))||(a7==1))||(a27==1))&&(a16==8))&&(a17==2))||(a7==1)))){ + a16 = 7; + a21 = 11; + a19 = 2; + a9 = 8; + a8 = 0; + a5 = 4; + a26 = 0; + a20 = 1; + a13 = 1; + return 23; + } else if((((a1==13)&&((((a11==1)&&(((!(a4==1)&&((a6==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5))))))&&(a16==11))&&!(a8==1)))&&!(a18==1))&&(a17==2)))&&((a19==4)&&((a20==1)&&((a21==10)&&(!(a6==1)||((a9==10)&&(a6==1)))))))){ + a1 = 12; + a19 = 1; + a8 = 0; + a13 = 1; + a9 = 7; + a16 = 7; + a5 = 4; + a26 = 0; + return -1; + } else if((((a19==2)&&((a3==1)&&(((((a2==1)&&((input==1)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))))&&(a16==9))&&!(a18==1))&&(a17==2))))&&((a1==12)&&((a21==11)&&(((((a11==1)||(a4==1))&&(a11==1))||!(a6==1))&&(a20==1)))))){ + a21 = 10; + a12 = 1; + a11 = 1; + a19 = 1; + a16 = 7; + a4 = 0; + a5 = 4; + a9 = 7; + return -1; + } else if((((((a21==11)&&(((a17==2)&&(a13==1))&&(a19==3)))&&(a16==8))&&(a12==1))&&((a2==1)&&((!(a20==1)&&((a23==1)&&((a23==1)&&(((input==3)&&(((a9==7)&&((a1==13)&&(a5==5)))||((((a5==6)&&(a1==12))&&(a9==11))||(((a1==13)&&(a5==4))&&(a9==7)))))&&!(a8==1)))))&&(a23==1))))){ + a16 = 7; + a19 = 1; + a6 = 1; + a1 = 12; + a5 = 4; + a9 = 7; + a20 = 1; + a21 = 10; + a3 = 1; + a26 = 0; + return -1; + } else if((((a21==10)&&((((a28==1)&&((!(a18==1)&&((input==4)&&(((a9==7)&&((a1==13)&&(a5==4)))||((((a5==5)&&(a1==12))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==12)))))))&&(a11==1)))&&(a19==4))&&!(a27==1)))&&((!(a14==1)&&((a14==1)||(((a2==1)&&(a17==2))&&(a20==1))))&&(a16==9)))){ + a11 = 1; + a5 = 6; + a9 = 10; + a27 = 0; + a1 = 12; + a19 = 5; + a12 = 1; + return 25; + } else if((((a16==10)&&((!(a24==1)&&((a20==1)&&(!(a18==1)&&(((a23==1)&&((!(a7==1)&&(a6==1))||!(a28==1)))||(a0==1)))))&&(a17==2)))&&(((a21==11)&&((((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4)))&&(input==3))&&(a1==13)))&&(a19==4)))){ + a16 = 7; + a19 = 1; + a9 = 7; + a1 = 12; + a5 = 4; + a7 = 0; + a4 = 0; + a23 = 1; + a21 = 10; + return -1; + } else if(((((a1==13)&&((a17==2)&&((a19==3)&&((((a6==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5)))&&(a28==1))&&(a28==1)))))&&(a16==8))&&((((a20==1)&&(!(a8==1)&&((!(a4==1)&&(a23==1))||(a8==1))))&&(a9==10))&&(a21==12)))){ + a19 = 1; + a5 = 4; + a16 = 7; + a27 = 0; + a21 = 10; + a4 = 0; + a9 = 7; + a11 = 1; + a1 = 12; + return -1; + } else if((((((a4==1)&&(!(a12==1)&&(((a16==7)&&((input==1)&&(((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6))))))&&(a1==12))))&&!(a11==1))&&(a20==1))&&(!(a13==1)&&((a17==2)&&(((((a28==1)&&(a21==12))&&(a18==1))&&!(a6==1))&&(a19==3)))))){ + a5 = 5; + a19 = 1; + a21 = 10; + a9 = 10; + a15 = 0; + a6 = 0; + a20 = 0; + a1 = 13; + return 22; + } else if(((((a9==9)&&(((a19==3)&&(((a17==2)&&((a21==11)&&(!(a2==1)||((a23==1)&&(a20==1)))))||!(a6==1)))&&(a6==1)))&&(a16==7))&&(((a2==1)&&(((a1==12)&&((input==1)&&((a5==5)||(a5==6))))&&!(a0==1)))&&(a3==1)))){ + a3 = 1; + a6 = 1; + a9 = 7; + a5 = 5; + a18 = 0; + a21 = 10; + a19 = 5; + a16 = 8; + return 23; + } else if((((!(a6==1)||((((((a1==13)&&(a28==1))&&(a17==2))&&(a16==11))&&!(a4==1))&&!(a7==1)))&&(a13==1))&&((((((((((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4)))&&(input==1))&&!(a18==1))&&(a19==2))&&(a21==10))&&!(a20==1))&&!(a4==1)))){ + a19 = 1; + a29 = 0; + a3 = 0; + a11 = 0; + a16 = 7; + a20 = 1; + a9 = 8; + a5 = 5; + a1 = 12; + return 21; + } else if((((!(a4==1)&&(((a16==7)&&(((a3==1)&&!(a0==1))&&(a5==4)))&&(a19==4)))&&(a9==9))&&((a17==2)&&((a2==1)&&((a3==1)&&((a20==1)&&((a21==11)&&(!(a24==1)&&(!(a4==1)&&((input==1)&&(a1==12))))))))))){ + a9 = 8; + a3 = 1; + a16 = 8; + a27 = 0; + a14 = 0; + a5 = 6; + a19 = 3; + return 25; + } else if((((((a11==1)&&((a26==1)||(a28==1)))&&(a16==8))&&(a19==2))&&((a17==2)&&((((a1==13)&&((a21==12)&&(!(a8==1)&&((((((a5==5)||(a5==6))&&(input==6))&&!(a27==1))&&(a6==1))&&!(a14==1)))))&&(a20==1))&&(a9==8))))){ + a1 = 14; + a9 = 10; + a14 = 0; + a5 = 6; + a23 = 1; + a28 = 1; + a16 = 7; + a21 = 10; + return 21; + } else if((((a1==12)&&(((((a3==1)&&(a17==2))&&!(a8==1))||(a8==1))&&(a12==1)))&&((((((a6==1)&&((((a3==1)&&((input==3)&&(a5==6)))&&(a16==7))&&(a9==11)))&&(a20==1))&&(a19==5))&&(a3==1))&&(a21==12)))){ + a19 = 1; + a14 = 0; + a7 = 0; + a21 = 10; + a23 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if((((((a17==2)&&(!(a0==1)&&(((a21==12)&&(((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a18==1)))&&(a16==8))))&&(a1==13))&&!(a18==1))&&(((a18==1)||((((a19==2)&&((a12==1)&&(a3==1)))&&(a20==1))||(a7==1)))&&(a9==11)))){ + a7 = 0; + a9 = 9; + a5 = 6; + a18 = 0; + a12 = 1; + a19 = 1; + a16 = 10; + return 21; + } else if((((!(a4==1)&&((a21==10)&&(((a1==12)&&(((((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&(input==6))&&(a11==1)))&&!(a8==1))))&&(a13==1))&&((a19==2)&&((!(a6==1)||((((a3==1)&&(a20==1))&&(a16==11))&&!(a26==1)))&&(a17==2))))){ + a0 = 0; + a14 = 0; + a27 = 0; + a16 = 7; + a19 = 1; + a9 = 7; + a5 = 4; + return -1; + } else if((((a13==1)&&(((a23==1)&&(!(a28==1)||(a6==1)))&&(a9==11)))&&(((a1==13)&&((a19==4)&&((a12==1)&&(((((a20==1)&&((a11==1)&&(((a5==5)||(a5==6))&&(input==5))))&&!(a7==1))&&(a16==8))&&(a21==12)))))&&(a17==2)))){ + a5 = 4; + a9 = 7; + a19 = 1; + a1 = 12; + a4 = 0; + a27 = 0; + a21 = 10; + a16 = 7; + a8 = 0; + return -1; + } else if((((a17==2)&&(((a26==1)&&((a2==1)&&(a8==1)))&&(a21==11)))&&(((a18==1)&&(((a16==8)&&((!(a28==1)&&(((((a9==7)&&((a1==12)&&(a5==5)))&&(a19==3))||(((a19==2)&&(((a5==6)&&(a1==14))&&(a9==11)))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==3))))&&(input==5)))&&!(a20==1)))&&!(a23==1)))&&!(a23==1)))){ + a15 = 0; + a20 = 1; + a9 = 11; + a19 = 1; + a5 = 4; + a1 = 14; + a21 = 10; + a11 = 0; + a16 = 7; + return -1; + } else if((((a21==11)&&((a17==2)&&(((a3==1)&&(!(a8==1)&&(!(a20==1)&&(input==4))))&&(a19==5))))&&((a9==9)&&(((a1==12)&&(((a13==1)&&((a13==1)&&(!(a0==1)&&((a3==1)||(a7==1)))))&&(a16==9)))&&(a5==6))))){ + a11 = 0; + a21 = 10; + a16 = 7; + a9 = 7; + a8 = 1; + a19 = 2; + a25 = 0; + a20 = 1; + return 26; + } else if((((((a18==1)&&((a21==11)&&(!(a13==1)&&((!(a6==1)&&(a13==1))&&(a17==2)))))&&(a20==1))&&!(a6==1))&&((a0==1)&&((a16==7)&&((((input==6)&&((((a1==13)&&(a5==5))&&(a9==7))||((((a5==6)&&(a1==12))&&(a9==11))||((a9==7)&&((a1==13)&&(a5==4))))))&&(a19==2))&&(a27==1)))))){ + a4 = 1; + a5 = 4; + a20 = 0; + a1 = 13; + a19 = 3; + a14 = 1; + a21 = 10; + a9 = 10; + return -1; + } else if((((a1==12)&&(((a16==10)&&((a11==1)&&((((a11==1)&&(a21==12))&&(a9==10))&&!(a20==1))))&&(a17==2)))&&((a19==1)&&((a11==1)&&(((a28==1)&&(((((a5==5)||(a5==6))&&(input==4))&&!(a26==1))&&!(a7==1)))&&!(a7==1)))))){ + a20 = 1; + a10 = 1; + a5 = 4; + a21 = 11; + a9 = 8; + a14 = 1; + a19 = 5; + a16 = 8; + a25 = 1; + a1 = 14; + return -1; + } else if((((a17==2)&&((a28==1)&&(((a6==1)&&((a19==2)&&((!(a26==1)&&(!(a24==1)&&(((input==3)&&(((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))))&&(a2==1))))&&(a21==10))))&&(a1==13))))&&((a11==1)&&(!(a20==1)&&((a16==11)&&(a28==1)))))){ + if((a16==7)){ + a9 = 10; + a5 = 5; + a1 = 14; + a16 = 7; + a28 = 0; + a2 = 0; + a19 = 1; + a12 = 0; + a20 = 1; + }else{ + a1 = 12; + a9 = 10; + a5 = 5; + a4 = 1; + a3 = 0; + a6 = 0; + } + return -1; + } else if((((((a12==1)&&((!(a8==1)&&((a5==6)&&(((((a3==1)&&!(a14==1))&&(a19==5))&&(a9==7))&&(a1==12))))||(a7==1)))||(a7==1))&&(a20==1))&&(((a21==11)&&(((a16==11)&&(input==5))&&!(a26==1)))&&(a17==2)))){ + a4 = 0; + a7 = 0; + a21 = 10; + a16 = 7; + a18 = 0; + a5 = 4; + a19 = 1; + return -1; + } else if(((((((((a23==1)&&(((input==1)&&(a17==2))&&(a19==2)))&&!(a18==1))&&(a9==10))&&!(a27==1))&&(a20==1))&&(a16==7))&&((((!(a11==1)||(((a12==1)&&(a1==12))||(a7==1)))&&(a21==12))||(a14==1))&&(a5==4)))){ + a24 = 0; + a1 = 14; + a19 = 4; + a26 = 0; + a20 = 0; + a14 = 0; + return 25; + } else if((((!(a20==1)&&((a12==1)&&(((a1==14)&&(((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))&&(input==3)))&&!(a24==1))))&&(a21==10))&&((((a12==1)&&((!(a8==1)&&(((a17==2)&&(a13==1))||(a7==1)))||!(a13==1)))&&(a16==8))&&(a19==2)))){ + a1 = 12; + a27 = 0; + a19 = 1; + a9 = 7; + a5 = 4; + a20 = 1; + a8 = 0; + a16 = 7; + a14 = 0; + return -1; + } else if(((!(a7==1)&&(!(a7==1)&&((a1==12)&&((((a6==1)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))&&(input==3)))&&(a28==1))&&!(a20==1)))))&&((a21==12)&&((a19==5)&&(!(a23==1)||((a16==10)&&(((a14==1)||(a12==1))&&(a17==2)))))))){ + a3 = 0; + a6 = 0; + a24 = 1; + a19 = 1; + a9 = 9; + a21 = 10; + a1 = 14; + a20 = 1; + a5 = 4; + a16 = 7; + return 21; + } else if((((a21==12)&&((a23==1)&&((a11==1)&&((!(a14==1)&&(((((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(input==1))&&(a16==7)))&&!(a26==1)))))&&((a19==3)&&((((((a13==1)||!(a13==1))&&(a20==1))&&(a6==1))&&(a1==13))&&(a17==2))))){ + a19 = 5; + a1 = 14; + a13 = 1; + a9 = 7; + a16 = 8; + a5 = 4; + a6 = 1; + a27 = 0; + return 22; + } else if((((((a19==5)&&((((a21==12)&&(a6==1))&&(a1==13))&&(a16==10)))||(a7==1))&&!(a14==1))&&((a17==2)&&((a11==1)&&(((a5==4)&&((((a3==1)&&((input==4)&&(a9==7)))&&(a20==1))&&!(a7==1)))&&(a11==1)))))){ + a16 = 7; + a1 = 14; + a21 = 10; + a5 = 5; + a9 = 11; + a2 = 1; + a8 = 0; + a19 = 4; + a14 = 0; + return 25; + } else if((((a0==1)||((((a24==1)||((a20==1)&&(((a9==9)&&((a14==1)||((a19==4)&&(a11==1))))&&(a21==10))))||(a0==1))&&(a16==8)))&&((!(a18==1)&&(((a11==1)&&((a17==2)&&(input==6)))&&(a5==6)))&&(a1==14)))){ + a27 = 0; + a9 = 10; + a11 = 1; + a5 = 5; + a21 = 11; + a20 = 0; + a19 = 5; + a1 = 12; + a26 = 0; + return 21; + } else if((((!(a12==1)&&(((a9==10)&&(((a26==1)&&(a11==1))&&(a19==1)))&&(a14==1)))&&(a20==1))&&(((((a21==12)&&((((a1==12)&&((input==4)&&((a5==4)||(a5==5))))&&!(a2==1))&&(a17==2)))&&!(a23==1))&&(a7==1))&&(a16==7)))){ + a19 = 3; + a15 = 1; + a21 = 10; + a0 = 1; + a5 = 6; + a20 = 0; + a1 = 14; + a16 = 8; + a18 = 1; + return -1; + } else if(((((a8==1)&&(!(a20==1)&&((((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==6))&&(a16==8))&&(a19==2))))&&!(a23==1))&&(((a24==1)&&(((((a21==11)&&((a17==2)&&(a12==1)))&&(a1==13))&&(a0==1))&&!(a28==1)))&&(a0==1)))){ + a14 = 1; + a1 = 14; + a5 = 5; + a16 = 7; + a21 = 10; + a29 = 0; + a9 = 11; + a19 = 3; + a27 = 1; + a20 = 1; + return 25; + } else if(((((a20==1)&&((((a16==11)&&(((((a13==1)&&!(a27==1))&&(a9==9))||!(a2==1))&&!(a24==1)))||(a27==1))&&(a21==11)))&&(a19==4))&&((((((input==6)&&((a5==4)||(a5==5)))&&(a1==12))&&!(a18==1))&&(a2==1))&&(a17==2)))){ + a19 = 1; + a16 = 7; + a21 = 10; + a27 = 0; + a18 = 0; + a13 = 1; + a9 = 7; + a5 = 4; + return -1; + } else if(((((((((a2==1)||!(a2==1))&&(a12==1))&&(a20==1))&&(a16==10))&&(a21==12))&&(a9==8))&&((a1==12)&&(((((!(a8==1)&&(((input==4)&&(a19==5))&&(a5==5)))&&(a17==2))&&!(a14==1))&&!(a18==1))&&!(a24==1))))){ + a24 = 0; + a5 = 4; + a3 = 1; + a16 = 7; + a2 = 1; + a9 = 11; + a21 = 10; + a19 = 4; + a1 = 14; + return 25; + } else if((((a2==1)&&(!(a7==1)&&(!(a14==1)&&(((a9==10)&&((!(a27==1)&&(((a21==10)&&(input==4))&&(a20==1)))&&(a19==1)))&&!(a18==1)))))&&((a1==14)&&((((a16==8)&&((a6==1)&&!(a4==1)))&&(a5==6))&&(a17==2))))){ + a9 = 7; + a8 = 0; + a1 = 12; + a5 = 4; + a14 = 0; + a16 = 7; + return -1; + } else if((((((a17==2)&&(((a1==12)&&((input==3)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))))&&!(a14==1)))&&(a19==1))&&(a2==1))&&((!(a24==1)&&(!(a23==1)||((a21==12)&&(!(a13==1)||(((a16==8)&&(a13==1))&&(a20==1))))))&&(a6==1)))){ + a27 = 0; + a16 = 7; + a4 = 0; + a18 = 0; + a5 = 4; + a9 = 7; + a21 = 10; + return -1; + } else if(((!(a18==1)&&((((((a21==11)&&((a3==1)&&(a6==1)))&&(a6==1))&&(a17==2))&&(a11==1))&&(a9==7)))&&(!(a7==1)&&(((((((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&(a20==1))&&(a2==1))&&(a16==7))&&(a19==5))&&(a1==12))))){ + a6 = 1; + a13 = 1; + a5 = 6; + a16 = 8; + a1 = 14; + a4 = 0; + return 21; + } else if(((((a23==1)&&((!(a0==1)&&((((a19==2)&&(!(a20==1)&&(a12==1)))&&(a16==9))&&(a9==11)))||!(a2==1)))||(a14==1))&&((a21==12)&&(!(a4==1)&&(!(a18==1)&&(((a1==13)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5)))&&(a17==2))))))){ + if((a23==1)){ + a19 = 1; + a29 = 0; + a16 = 7; + a21 = 10; + a25 = 0; + a5 = 6; + a1 = 14; + a20 = 1; + }else{ + a25 = 1; + a21 = 10; + a24 = 1; + a5 = 6; + a16 = 11; + a29 = 0; + } + return 25; + } else if((((a21==11)&&((a27==1)&&(((a17==2)&&((((input==1)&&(((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))))&&(a1==13))&&!(a11==1)))&&(a26==1))))&&((((((a20==1)&&((a3==1)&&!(a6==1)))&&(a19==3))&&(a16==7))&&!(a13==1))&&!(a23==1)))){ + a9 = 8; + a19 = 2; + a3 = 0; + a25 = 1; + a21 = 12; + a26 = 1; + a16 = 10; + a5 = 6; + return -1; + } else if((((a13==1)&&(((!(a8==1)&&((((a6==1)&&((input==5)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))&&(a11==1))&&(a17==2)))&&!(a7==1))&&(a21==12)))&&(((a18==1)||((((a19==5)&&(a11==1))&&(a1==14))&&(a16==10)))&&!(a20==1)))){ + if((a28==1)){ + a5 = 6; + a16 = 9; + a9 = 11; + a10 = 0; + a19 = 2; + a28 = 0; + a8 = 1; + a21 = 11; + }else{ + a9 = 10; + a5 = 4; + a29 = 1; + a16 = 7; + a2 = 0; + a13 = 0; + a20 = 1; + a1 = 12; + } + return -1; + } else if((((a27==1)||(((a6==1)&&((a19==1)&&((a17==2)&&(a2==1))))&&!(a20==1)))&&((((a21==12)&&((((a6==1)&&((((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))&&(input==5))&&!(a7==1)))&&(a2==1))&&(a6==1)))&&(a16==9))&&(a1==13)))){ + a5 = 6; + a20 = 1; + a21 = 10; + a1 = 12; + a19 = 2; + a23 = 0; + a9 = 8; + a26 = 1; + a18 = 1; + a16 = 7; + return -1; + } else if((((a6==1)&&(((a18==1)||((a9==9)&&((a20==1)&&((a19==1)&&((a5==6)&&((a11==1)&&(a28==1)))))))&&!(a27==1)))&&((a11==1)&&((a17==2)&&((!(a26==1)&&(((input==1)&&(a21==12))&&(a1==12)))&&(a16==10)))))){ + a21 = 10; + a5 = 4; + a16 = 8; + a19 = 5; + a20 = 0; + a9 = 11; + a28 = 1; + a0 = 0; + return 21; + } else if((((a28==1)&&(((((((input==5)&&((a5==4)||(a5==5)))&&!(a27==1))&&(a19==4))&&!(a20==1))&&!(a18==1))&&(a9==10)))&&((a1==12)&&(((((((a11==1)||!(a28==1))&&(a16==10))&&(a6==1))&&(a17==2))&&(a21==12))||!(a12==1))))){ + a9 = 7; + a20 = 1; + a21 = 10; + a7 = 1; + a22 = 0; + a3 = 0; + a5 = 4; + a1 = 13; + a16 = 7; + a19 = 5; + return -1; + } else if((((((a17==2)&&((a21==12)&&(((a20==1)&&((a16==9)&&((a12==1)||!(a6==1))))&&(a9==11))))&&!(a7==1))||(a24==1))&&((((a19==1)&&((a1==14)&&((((a5==4)||(a5==5))&&(input==3))&&(a28==1))))&&!(a8==1))&&!(a24==1)))){ + a0 = 0; + a14 = 0; + a1 = 12; + a16 = 7; + a9 = 7; + a21 = 10; + a2 = 1; + a5 = 4; + return -1; + } else if((((a21==10)&&((a16==10)&&((((a8==1)||((a11==1)&&!(a20==1)))&&(a19==1))&&(a9==9))))&&(!(a18==1)&&((a12==1)&&((a1==13)&&(((((a17==2)&&(((a5==5)||(a5==6))&&(input==6)))&&!(a26==1))&&!(a14==1))&&(a28==1))))))){ + a15 = 0; + a16 = 7; + a9 = 11; + a4 = 1; + a27 = 1; + a20 = 1; + a5 = 5; + return 25; + } else if(((!(a20==1)&&((a6==1)&&((((a16==10)&&(((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a5==4)&&(a9==8)))&&(input==3)))&&(a21==11))&&(a13==1))))&&(!(a18==1)&&((a4==1)||((a19==2)&&(((((a1==13)&&(a13==1))&&!(a24==1))&&!(a27==1))&&(a17==2))))))){ + a16 = 7; + a29 = 0; + a20 = 1; + a21 = 10; + a9 = 10; + a12 = 0; + a1 = 12; + a5 = 4; + a19 = 1; + a22 = 0; + return -1; + } else if((((a11==1)&&((a24==1)||((a20==1)&&((a5==6)&&((a17==2)&&(a11==1))))))&&((a6==1)&&((((((a16==8)&&((((a1==14)&&(input==5))&&(a9==8))&&(a19==5)))&&(a21==12))&&(a11==1))&&(a13==1))&&!(a24==1))))){ + a16 = 10; + a26 = 0; + a5 = 5; + a2 = 1; + a1 = 13; + a3 = 1; + return 22; + } else if(((((a6==1)&&(((((a17==2)&&(((a12==1)&&!(a20==1))&&(a13==1)))&&(a16==8))&&(a13==1))&&(a21==11)))&&(a28==1))&&(((a3==1)&&((((a9==9)&&((input==1)&&((a5==5)||(a5==6))))&&!(a14==1))&&(a19==5)))&&(a1==12)))){ + a3 = 1; + a26 = 0; + a20 = 1; + a12 = 1; + a5 = 4; + a19 = 1; + a21 = 10; + a16 = 7; + a9 = 7; + return -1; + } else if((((input==6)&&((a5==5)||(a5==6)))&&((a1==12)&&((a9==8)&&(((a19==1)&&(((!(a12==1)&&((!(a23==1)&&((((a21==11)&&((a16==8)&&(a6==1)))&&(a26==1))&&(a4==1)))&&(a17==2)))&&!(a11==1))&&!(a28==1)))&&!(a20==1)))))){ + a21 = 10; + a9 = 7; + a20 = 1; + a24 = 1; + a19 = 2; + a28 = 0; + a5 = 4; + a26 = 1; + a16 = 7; + return 25; + } else if((((a1==12)&&(((((a28==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&(a21==11))&&(a23==1))&&!(a18==1)))&&((((a28==1)&&((a16==7)&&((((!(a18==1)&&(a12==1))&&!(a20==1))&&(a28==1))&&(a19==3))))&&(a9==10))&&(a17==2)))){ + a20 = 1; + a21 = 10; + a19 = 1; + a28 = 1; + a9 = 7; + a18 = 0; + a26 = 0; + a5 = 4; + return -1; + } else if((((a19==4)&&((a17==2)&&(!(a27==1)&&((a16==7)&&(((((a9==10)&&((input==6)&&((a5==4)||(a5==5))))&&!(a18==1))&&(a21==12))&&(a13==1))))))&&(((((a1==12)&&((a23==1)||(a24==1)))&&(a20==1))||(a8==1))&&!(a18==1)))){ + if((a2==1)){ + a5 = 5; + a2 = 1; + a20 = 0; + a21 = 11; + a14 = 0; + a9 = 11; + a19 = 1; + a1 = 14; + a24 = 0; + }else{ + a5 = 5; + a1 = 14; + a16 = 9; + a12 = 1; + a13 = 1; + a19 = 1; + a21 = 11; + a3 = 1; + } + return 25; + } else if((((a2==1)&&(!(a4==1)&&((((a9==7)&&(((((a21==10)&&(input==3))&&(a17==2))&&(a16==9))&&(a5==5)))&&(a20==1))&&(a19==1))))&&((a0==1)||((a0==1)||(!(a12==1)||((a2==1)&&((a1==12)&&(a3==1)))))))){ + a5 = 4; + a16 = 7; + a27 = 0; + a8 = 0; + return -1; + } else if(((!(a3==1)||((a11==1)&&(((a19==4)&&(!(a20==1)&&((a1==14)&&((a21==11)&&((a11==1)&&(a9==9))))))&&(a6==1))))&&(((a23==1)&&((a12==1)&&((a16==8)&&((((a5==5)||(a5==6))&&(input==6))&&(a17==2)))))&&!(a27==1)))){ + a5 = 4; + a19 = 1; + a9 = 7; + a20 = 1; + a26 = 0; + a16 = 7; + a28 = 1; + a21 = 10; + a1 = 12; + return -1; + } else if(((((a1==13)&&(((a19==1)&&(!(a24==1)&&(!(a18==1)&&(((a5==4)||(a5==5))&&(input==5)))))&&(a17==2)))&&(a16==10))&&(((a9==8)&&((a2==1)&&(((((a12==1)&&(a21==11))&&!(a27==1))&&(a12==1))||!(a2==1))))&&!(a20==1)))){ + a20 = 1; + a10 = 0; + a16 = 8; + a9 = 10; + a1 = 12; + a19 = 4; + a4 = 1; + a29 = 1; + a5 = 4; + return 26; + } else if(((!(a11==1)&&((a7==1)&&((a9==7)&&((a5==4)&&((a20==1)&&(input==6))))))&&((((((a17==2)&&((a21==10)&&((!(a23==1)&&(!(a13==1)&&(a3==1)))&&(a1==13))))&&(a16==7))&&(a24==1))&&!(a23==1))&&(a19==5)))){ + a19 = 2; + a1 = 12; + a12 = 0; + a9 = 10; + a11 = 0; + a5 = 6; + a3 = 0; + return 23; + } else if((((a24==1)||((a17==2)&&(!(a24==1)&&((a21==11)&&((a28==1)&&((a8==1)||((a1==12)&&((a2==1)&&(a19==5)))))))))&&(((a16==7)&&((a20==1)&&((!(a27==1)&&((input==3)&&((a5==5)||(a5==6))))&&!(a7==1))))&&(a9==11)))){ + a21 = 10; + a9 = 7; + a5 = 4; + a4 = 0; + a8 = 0; + a19 = 1; + a7 = 0; + return -1; + } else if((((!(a0==1)&&(((a13==1)&&((a20==1)&&(a23==1)))||!(a3==1)))&&(a19==3))&&((a21==10)&&((a1==14)&&((((a3==1)&&((((input==6)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11))))&&(a16==8))&&(a11==1)))&&(a17==2))&&!(a0==1)))))){ + a16 = 9; + a5 = 6; + a18 = 0; + a24 = 0; + a21 = 12; + a9 = 8; + a19 = 5; + a13 = 1; + return 21; + } else if((((((((a20==1)&&((a23==1)&&(a12==1)))&&!(a27==1))&&!(a27==1))&&(a17==2))&&(a16==9))&&((a21==11)&&((a11==1)&&((((((((a5==5)&&(a1==12))&&(a9==7))&&(a19==3))||(((((a5==6)&&(a1==14))&&(a9==11))&&(a19==2))||((a19==3)&&((a9==7)&&((a1==12)&&(a5==4))))))&&(input==4))&&!(a27==1))&&(a12==1)))))){ + a2 = 1; + a21 = 10; + a5 = 4; + a23 = 1; + a16 = 7; + a9 = 7; + a1 = 12; + a19 = 1; + return -1; + } else if((((((((a23==1)&&((input==4)&&((a5==5)||(a5==6))))&&(a20==1))&&!(a4==1))&&(a17==2))&&(a21==10))&&(((((a16==11)&&(!(a27==1)&&((a19==1)&&(((a26==1)||(a13==1))&&(a2==1)))))&&(a1==12))&&(a9==10))&&(a12==1)))){ + a5 = 4; + a23 = 1; + a16 = 7; + a9 = 7; + a26 = 0; + a12 = 1; + return -1; + } else if((((a21==12)&&(!(a7==1)&&((((((a5==5)||(a5==6))&&(input==6))&&!(a14==1))&&(a19==4))&&(a20==1))))&&((a6==1)&&(((a9==8)&&((a1==12)&&(((((a28==1)&&(a23==1))&&(a6==1))||!(a13==1))&&(a17==2))))&&(a16==10))))){ + a19 = 1; + a5 = 4; + a9 = 7; + a28 = 1; + a27 = 0; + a21 = 10; + a16 = 7; + a23 = 1; + return -1; + } else if((((((((((!(a20==1)&&((input==1)&&((a5==4)||(a5==5))))&&(a9==11))&&!(a24==1))&&(a21==11))&&(a17==2))&&(a19==4))&&!(a18==1))&&!(a8==1))&&((a16==9)&&((!(a26==1)&&(((a12==1)||(a0==1))&&(a3==1)))&&(a1==12))))){ + a20 = 1; + a10 = 1; + a16 = 7; + a5 = 5; + a14 = 1; + a9 = 8; + a21 = 10; + a12 = 0; + a19 = 1; + return 22; + } else if(((((a3==1)&&((a13==1)&&((!(a28==1)||(((a17==2)&&(((a21==10)&&(a23==1))&&!(a20==1)))||(a27==1)))&&(a19==1))))&&(a1==12))&&((a9==8)&&(!(a27==1)&&(((a16==7)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5)))&&!(a18==1)))))){ + a20 = 1; + a5 = 4; + a0 = 0; + a9 = 7; + a18 = 0; + a24 = 0; + return -1; + } else if((((!(a8==1)&&((a23==1)&&(a20==1)))&&(a13==1))&&((a17==2)&&(((a19==3)&&((((!(a18==1)&&((!(a7==1)&&((a28==1)&&((a9==7)&&(input==4))))&&(a21==11)))&&(a5==4))&&(a23==1))&&(a1==13)))&&(a16==10))))){ + a18 = 0; + a11 = 1; + a19 = 1; + a16 = 7; + a27 = 0; + a21 = 10; + a1 = 12; + return -1; + } else if((((a5==6)&&((a21==12)&&((a17==2)&&((a16==9)&&((a13==1)&&((a1==14)&&((a12==1)&&((input==6)&&(a19==5)))))))))&&((!(a18==1)&&(((a9==7)&&((a27==1)||((a2==1)&&(a20==1))))||!(a12==1)))||(a4==1)))){ + a1 = 12; + a5 = 5; + a23 = 1; + a7 = 0; + a19 = 2; + a28 = 1; + return 21; + } else if(((!(a0==1)&&((a6==1)&&(((a20==1)&&((a17==2)&&((a19==3)&&(a23==1))))&&(a21==11))))&&((a12==1)&&((((a3==1)&&(((((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5)))&&(input==5))&&(a1==12))&&(a23==1)))&&(a16==11))&&(a2==1))))){ + a8 = 0; + a5 = 6; + a28 = 1; + a1 = 14; + a21 = 12; + a9 = 7; + a14 = 0; + a19 = 1; + return 21; + } else if((((a28==1)&&((a17==2)&&(!(a0==1)&&((a12==1)&&((a1==12)&&(((((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(input==6))&&(a20==1)))))))&&((a19==3)&&((a16==10)&&(!(a28==1)||((!(a0==1)&&((a2==1)&&(a28==1)))&&(a21==11))))))){ + a3 = 1; + a5 = 5; + a9 = 9; + a1 = 13; + a16 = 7; + a21 = 10; + a19 = 2; + a23 = 1; + a18 = 0; + return -1; + } else if((((a21==10)&&(((a28==1)&&(((a19==2)&&((input==1)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))))&&(a20==1)))&&(a1==14)))&&(!(a8==1)&&(!(a13==1)||((((a14==1)||(((a13==1)&&(a17==2))&&(a16==10)))&&!(a7==1))||(a14==1)))))){ + a5 = 6; + a13 = 1; + a16 = 11; + a9 = 11; + a11 = 1; + a19 = 5; + a1 = 13; + a4 = 0; + return 22; + } else if(((((a7==1)&&((a16==8)&&((a24==1)&&((a17==2)&&((a8==1)&&(((input==1)&&((((a19==2)&&((a9==11)&&((a5==6)&&(a1==14))))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==3)))||(((a9==7)&&((a5==5)&&(a1==12)))&&(a19==3))))&&!(a20==1)))))))&&(a21==11))&&(((a26==1)&&((a28==1)&&!(a28==1)))&&(a26==1)))){ + a3 = 0; + a5 = 4; + a9 = 7; + a22 = 1; + a16 = 7; + a21 = 10; + a6 = 0; + a20 = 1; + a19 = 1; + a1 = 12; + return 25; + } else if(((!(a14==1)&&(!(a28==1)||((a21==10)&&((a1==13)&&(((a16==10)&&(a28==1))&&(a19==5))))))&&((((a28==1)&&(((a28==1)&&(((a9==10)&&(!(a20==1)&&(input==5)))&&(a17==2)))&&!(a8==1)))&&(a5==6))&&!(a4==1)))){ + if((a6==1)){ + a25 = 0; + a16 = 7; + a20 = 1; + a5 = 4; + a14 = 1; + a22 = 1; + a1 = 12; + a19 = 2; + a9 = 7; + }else{ + a19 = 2; + a27 = 1; + a21 = 11; + a23 = 0; + a20 = 1; + a9 = 7; + a13 = 0; + } + return -1; + } else if((((a21==12)&&(((a2==1)&&((a12==1)&&(!(a0==1)&&(((a5==6)&&(!(a26==1)&&((a1==13)&&(input==1))))&&(a3==1)))))&&(a16==11)))&&((((a17==2)&&((a20==1)&&((a19==4)&&(a12==1))))&&(a9==11))&&!(a7==1)))){ + a21 = 11; + a18 = 0; + a19 = 5; + a7 = 0; + a2 = 1; + a9 = 7; + a5 = 5; + return 21; + } else if((((a21==11)&&((a9==9)&&((a20==1)&&((a17==2)&&(!(a13==1)&&((a0==1)&&((a16==8)&&(!(a28==1)&&(!(a13==1)&&((a1==14)&&((input==4)&&((a5==5)||(a5==6)))))))))))))&&((a19==4)&&(!(a6==1)&&((a7==1)&&(a12==1)))))){ + a22 = 1; + a5 = 6; + a16 = 7; + a21 = 10; + a19 = 1; + a1 = 12; + a29 = 0; + a10 = 0; + return -1; + } else if(((((!(a4==1)&&(((a5==6)&&(((a17==2)&&(a28==1))||(a14==1)))||!(a13==1)))&&(a9==11))&&(a19==3))&&((a6==1)&&(((a1==14)&&(((((a16==9)&&(input==1))&&(a21==11))&&(a20==1))&&(a12==1)))&&(a13==1))))){ + a6 = 1; + a19 = 5; + a24 = 0; + a5 = 4; + return 21; + } else if(((!(a26==1)&&(((a17==2)&&((((a16==11)&&((a3==1)&&!(a0==1)))||!(a6==1))&&(a1==13)))||(a7==1)))&&(!(a7==1)&&((((a20==1)&&((a13==1)&&((input==6)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8))))))&&(a21==11))&&(a19==4))))){ + if((a26==1)){ + a16 = 8; + a14 = 0; + a13 = 1; + a9 = 8; + a27 = 0; + a21 = 10; + a1 = 14; + a19 = 3; + a5 = 6; + a20 = 0; + }else{ + a5 = 4; + a21 = 12; + a9 = 10; + a6 = 1; + a0 = 0; + a16 = 10; + a19 = 3; + a18 = 0; + } + return 21; + } else if((((((a1==14)&&(((a12==1)&&(a17==2))&&(a21==11)))&&(a19==1))&&(a0==1))&&((a4==1)&&((((a4==1)&&((a16==9)&&(!(a13==1)&&((a20==1)&&(((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4)))&&(input==1))))))&&(a14==1))&&!(a12==1))))){ + a5 = 6; + a13 = 0; + a9 = 9; + a12 = 0; + a21 = 10; + a16 = 7; + return 25; + } else if((((a5==4)&&((((a19==5)&&(!(a11==1)||(!(a8==1)&&(((a3==1)&&(a16==7))||!(a11==1)))))&&(a13==1))&&(a20==1)))&&(((a9==8)&&(((a1==12)&&(((a17==2)&&(input==3))&&(a12==1)))&&!(a14==1)))&&(a21==12)))){ + a21 = 10; + a19 = 1; + a26 = 0; + a9 = 7; + a12 = 1; + a11 = 1; + return -1; + } else if((((((((a20==1)&&(((a21==12)&&((((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))&&(input==4))&&(a13==1)))&&!(a18==1)))&&(a16==7))&&!(a0==1))&&(a19==3))&&(a2==1))&&(((a1==14)&&(!(a23==1)||((a6==1)||(a26==1))))&&(a17==2)))){ + a9 = 7; + a28 = 1; + a26 = 0; + a4 = 0; + a5 = 4; + a19 = 1; + a21 = 10; + a1 = 12; + return -1; + } else if(((((a13==1)&&((a28==1)&&((((a5==4)&&(!(a26==1)&&(((a19==5)&&((input==3)&&(a17==2)))&&!(a24==1))))&&(a20==1))&&(a1==13))))&&!(a7==1))&&((((a16==9)&&((a13==1)&&(a9==8)))&&!(a18==1))&&(a21==12)))){ + a21 = 10; + a18 = 0; + a16 = 7; + a1 = 12; + a19 = 1; + a13 = 1; + a9 = 7; + return -1; + } else if(((((a21==12)&&(((a23==1)&&(!(a18==1)&&(((a1==13)&&(((((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6))))&&(input==4))&&(a20==1)))&&(a6==1))))&&(a17==2)))&&(a16==9))&&(!(a3==1)||((!(a6==1)||((a19==2)&&(a28==1)))&&!(a7==1))))){ + a16 = 7; + a21 = 10; + a14 = 0; + a9 = 7; + a5 = 4; + a4 = 0; + a19 = 1; + a6 = 1; + a1 = 12; + return -1; + } else if(((((a21==11)&&(!(a24==1)&&((!(a27==1)&&(((a9==7)&&(input==3))&&!(a18==1)))&&(a20==1))))&&(a5==4))&&(((((a23==1)&&((((a6==1)&&(a17==2))||!(a3==1))&&(a19==3)))&&(a6==1))&&(a16==9))&&(a1==13)))){ + a21 = 10; + a2 = 1; + a5 = 5; + a18 = 0; + a16 = 7; + a24 = 0; + a1 = 12; + a9 = 10; + return 21; + } else if((((!(a27==1)&&((((((a20==1)&&(input==5))&&(a12==1))&&(a16==7))&&(a3==1))&&(a19==2)))&&(a3==1))&&((a13==1)&&(((a3==1)&&((a1==13)&&((a5==5)&&(((a13==1)&&(a9==7))&&(a21==12)))))&&(a17==2))))){ + a2 = 1; + a16 = 9; + a1 = 14; + a9 = 11; + a21 = 10; + a8 = 0; + return 21; + } else if((((a19==5)&&((!(a11==1)||((a0==1)||(((a20==1)&&(((((a24==1)||(a11==1))&&(a1==12))||!(a28==1))&&(a17==2)))&&(a21==10))))&&(a9==8)))&&(((a11==1)&&(((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&(a23==1)))&&(a16==11)))){ + a7 = 0; + a27 = 0; + a9 = 7; + a5 = 4; + a16 = 8; + a23 = 1; + a1 = 14; + a20 = 0; + return 23; + } else if((((a13==1)&&((a26==1)||((a13==1)&&((a17==2)&&(((a4==1)||(((a16==11)&&(a12==1))&&(a21==10)))&&(a19==5))))))&&((((a1==14)&&(((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==1))&&(a20==1)))&&(a3==1))&&!(a18==1)))){ + a23 = 1; + a16 = 7; + a5 = 4; + a26 = 0; + a9 = 7; + a19 = 1; + a18 = 0; + a1 = 12; + return -1; + } else if((((((a12==1)&&(((a28==1)&&(!(a20==1)&&((a5==6)&&(((a17==2)&&((a6==1)&&(a21==11)))||(a24==1)))))&&(a9==7)))&&(a16==10))&&(a6==1))&&(((!(a24==1)&&((a19==1)&&(input==1)))&&(a1==13))&&!(a8==1)))){ + a26 = 1; + a9 = 9; + a20 = 1; + a8 = 1; + a24 = 1; + a16 = 7; + a21 = 10; + return -1; + } else if((((((a1==13)&&(!(a14==1)&&((a3==1)&&((a20==1)&&((a24==1)||(a6==1))))))&&(a19==5))&&(a12==1))&&((a21==11)&&((a13==1)&&(!(a8==1)&&((a17==2)&&((a16==9)&&((input==3)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11))))))))))){ + a1 = 12; + a21 = 10; + a28 = 1; + a9 = 7; + a19 = 1; + a14 = 0; + a16 = 7; + a26 = 0; + a5 = 4; + return -1; + } else if(((((a20==1)&&(!(a8==1)&&(!(a12==1)||((a1==14)&&((a21==11)&&(((a8==1)||(a2==1))&&(a19==3)))))))&&(a17==2))&&((a2==1)&&((a16==10)&&(((a11==1)&&((input==3)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))))&&!(a4==1)))))){ + a21 = 10; + a16 = 7; + a3 = 1; + a8 = 0; + a19 = 1; + a9 = 7; + a5 = 4; + a1 = 12; + a18 = 0; + return -1; + } else if((((((((a16==10)&&((a13==1)&&((((a9==10)&&(a23==1))&&!(a20==1))||!(a13==1))))&&(a21==12))&&(a17==2))&&!(a7==1))&&!(a7==1))&&((((((input==1)&&((a5==4)||(a5==5)))&&(a1==13))&&(a12==1))&&(a19==5))&&(a12==1)))){ + a20 = 1; + a8 = 1; + a9 = 8; + a16 = 7; + a10 = 1; + a5 = 4; + a19 = 1; + a21 = 10; + a0 = 1; + return -1; + } else if((((a17==2)&&((!(a11==1)||((!(a0==1)&&((a12==1)&&(a20==1)))&&(a23==1)))&&!(a24==1)))&&(((a1==14)&&(((!(a26==1)&&(((a21==12)&&((a9==9)&&(input==6)))&&(a5==4)))&&(a11==1))&&(a19==3)))&&(a16==7)))){ + a19 = 1; + a1 = 12; + a9 = 7; + a21 = 10; + a23 = 1; + a8 = 0; + a11 = 1; + return -1; + } else if((((((((input==5)&&(((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))))&&(a20==1))&&(a3==1))&&!(a14==1))&&(a19==1))&&(((a16==9)&&((((a26==1)||(!(a23==1)||(((a23==1)||!(a23==1))&&(a17==2))))&&(a28==1))&&(a21==12)))&&(a1==13)))){ + if((a29==1)){ + a21 = 11; + a7 = 0; + a20 = 0; + a28 = 1; + a9 = 10; + a11 = 1; + a16 = 7; + a19 = 3; + a5 = 4; + a1 = 14; + }else{ + a5 = 5; + a16 = 8; + a19 = 3; + a21 = 11; + a24 = 0; + a18 = 0; + a1 = 12; + a9 = 11; + a13 = 1; + a20 = 0; + } + return 25; + } else if((((((a16==10)&&((a9==9)&&((!(a8==1)&&((((((input==1)&&((a5==4)||(a5==5)))&&(a19==5))&&(a3==1))&&(a11==1))&&(a3==1)))&&(a17==2))))&&(a21==10))&&(a23==1))&&(!(a20==1)&&((!(a3==1)||(a23==1))&&(a1==12))))){ + a19 = 2; + a18 = 1; + a10 = 1; + a16 = 7; + a9 = 10; + a23 = 0; + a5 = 4; + a20 = 1; + return -1; + } else if((((((a26==1)||(((((((a20==1)&&(a28==1))&&(a1==14))&&(a16==7))||(a7==1))&&(a19==5))||!(a2==1)))&&(a17==2))&&(a9==10))&&(!(a7==1)&&(((((input==1)&&((a5==4)||(a5==5)))&&(a21==10))&&!(a0==1))&&(a6==1))))){ + a19 = 4; + a21 = 12; + a8 = 0; + a4 = 0; + a12 = 1; + a5 = 4; + return 21; + } else if(((((a17==2)&&(!(a14==1)&&(((((((a5==6)&&(a1==14))&&(a9==11))&&(a19==1))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==2)))&&(input==5))&&(a21==10))))&&!(a7==1))&&((!(a4==1)&&((a16==9)&&((((a3==1)&&(a20==1))||!(a13==1))&&(a11==1))))&&!(a26==1)))){ + a16 = 7; + a9 = 7; + a1 = 12; + a19 = 1; + a5 = 4; + a8 = 0; + a23 = 1; + a28 = 1; + return -1; + } else if(((((a21==12)&&((!(a23==1)||(a13==1))&&(a16==9)))&&(a17==2))&&(((((((a12==1)&&((((a9==9)&&(((a5==5)||(a5==6))&&(input==5)))&&(a20==1))&&(a23==1)))&&(a2==1))&&!(a27==1))&&(a23==1))&&(a19==2))&&(a1==12)))){ + a13 = 1; + a23 = 1; + a5 = 6; + a21 = 10; + a16 = 10; + a14 = 0; + a19 = 5; + return 25; + } else if(((((((a5==6)&&((input==6)&&(a9==7)))&&!(a20==1))&&(a16==8))&&(a1==12))&&(((a12==1)&&(!(a13==1)||(((a17==2)&&(((((a21==11)&&(a6==1))||!(a2==1))||!(a12==1))||(a26==1)))&&(a19==3))))&&!(a18==1)))){ + a16 = 9; + a5 = 4; + a21 = 10; + a12 = 1; + a18 = 0; + a20 = 1; + a6 = 1; + return 25; + } else if(((((((a24==1)||(!(a24==1)&&((a17==2)&&(((a11==1)&&(a21==10))||(a8==1)))))||(a26==1))&&(a16==8))||(a8==1))&&((((a20==1)&&(((input==3)&&(((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))))&&(a19==3)))&&(a1==14))&&!(a4==1)))){ + a23 = 1; + a9 = 7; + a2 = 1; + a19 = 1; + a16 = 7; + a28 = 1; + a5 = 4; + a1 = 12; + return -1; + } else if((((((a17==2)&&(!(a8==1)&&((input==6)&&((((a1==12)&&(a5==6))&&(a9==11))||((a9==7)&&((a1==13)&&(a5==4)))))))&&!(a24==1))&&(a16==9))&&((((((a20==1)&&((a19==4)&&((a26==1)||(a28==1))))&&(a3==1))&&(a21==11))||!(a3==1))||(a26==1)))){ + if((a2==1)){ + a8 = 0; + a16 = 8; + a1 = 12; + a9 = 8; + a20 = 0; + a13 = 1; + a5 = 5; + }else{ + a9 = 10; + a6 = 1; + a8 = 0; + a16 = 7; + a19 = 2; + a18 = 0; + a21 = 10; + a1 = 13; + a5 = 4; + } + return 21; + } else if(((((a19==2)&&(((a20==1)&&((((a23==1)&&(((a5==4)||(a5==5))&&(input==4)))&&!(a14==1))&&!(a18==1)))&&(a2==1)))&&(a16==9))&&((a21==10)&&(((((a24==1)||((a9==9)&&(a11==1)))&&(a17==2))||(a0==1))&&(a1==14))))){ + a19 = 1; + a11 = 1; + a9 = 7; + a16 = 7; + a5 = 4; + a3 = 1; + a24 = 0; + a1 = 12; + return -1; + } else if(((!(a4==1)&&((a20==1)&&((((!(a24==1)&&((input==5)&&(((((a5==4)&&(a1==12))&&(a9==7))&&(a19==4))||(((a19==3)&&((a9==11)&&((a1==14)&&(a5==5))))||((a19==3)&&(((a1==14)&&(a5==6))&&(a9==11)))))))&&(a16==10))&&(a6==1))&&(a21==11))))&&(!(a3==1)||(!(a11==1)||(((a28==1)&&(a17==2))||!(a28==1)))))){ + a5 = 5; + a7 = 0; + a19 = 2; + a9 = 9; + a14 = 0; + a16 = 7; + a12 = 1; + a21 = 10; + a1 = 13; + return -1; + } else if((((a17==2)&&((a6==1)&&((a9==11)&&(((!(a26==1)&&(a3==1))&&(a1==14))&&!(a18==1)))))&&((((a19==2)&&((((((input==3)&&(a16==8))&&(a13==1))&&(a20==1))&&!(a27==1))&&(a5==4)))&&(a3==1))&&(a21==11)))){ + a9 = 7; + a19 = 1; + a1 = 12; + a26 = 0; + a16 = 7; + a11 = 1; + a18 = 0; + a21 = 10; + return -1; + } else if((((a5==4)&&((a9==9)&&((a16==7)&&(((a4==1)&&((a20==1)&&(input==5)))&&(a1==12)))))&&((a21==12)&&((a19==1)&&(((!(a12==1)&&((((a4==1)&&(a12==1))&&(a18==1))&&(a17==2)))&&!(a3==1))&&!(a12==1)))))){ + a9 = 10; + a19 = 2; + a5 = 5; + a25 = 0; + a22 = 1; + a6 = 0; + a21 = 10; + return -1; + } else if((((a23==1)&&((((((a8==1)||(a13==1))&&(a21==12))&&(a5==6))&&(a16==11))&&(a19==5)))&&(!(a24==1)&&(!(a14==1)&&((a17==2)&&((a9==11)&&((((a1==13)&&((input==4)&&(a20==1)))&&(a23==1))&&(a11==1)))))))){ + a27 = 0; + a24 = 0; + a5 = 4; + a1 = 12; + a6 = 1; + a9 = 7; + a16 = 7; + a21 = 10; + a19 = 1; + return -1; + } else if(((((a16==9)&&(((((a19==2)&&((((a11==1)&&(a6==1))&&!(a20==1))||(a0==1)))||(a0==1))&&(a17==2))&&(a23==1)))&&(a23==1))&&((((input==3)&&(((((a5==5)&&(a1==12))&&(a9==11))||(((a1==12)&&(a5==6))&&(a9==11)))||((a9==7)&&((a5==4)&&(a1==13)))))&&(a21==11))&&(a13==1)))){ + a5 = 4; + a27 = 1; + a9 = 9; + a20 = 1; + a16 = 7; + a21 = 10; + a11 = 0; + a25 = 1; + a19 = 1; + a1 = 14; + return 21; + } else if((((a6==1)&&((a20==1)&&(((((a21==10)&&((a16==9)&&((((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(input==3))))&&!(a18==1))&&(a6==1))&&(a3==1))))&&(((a1==12)&&((a19==5)&&(!(a7==1)&&((a23==1)||(a7==1)))))&&(a17==2)))){ + a19 = 1; + a9 = 7; + a4 = 0; + a18 = 0; + a16 = 7; + a12 = 1; + a5 = 4; + return -1; + } else if((((a20==1)&&(((((a17==2)&&((a5==4)&&(!(a26==1)&&(((a21==11)&&(input==3))&&(a12==1)))))&&(a3==1))&&!(a27==1))&&(a2==1)))&&((a1==14)&&(((((a16==10)&&(a2==1))&&(a11==1))&&(a9==11))&&(a19==2))))){ + a21 = 10; + a12 = 1; + a9 = 7; + a1 = 12; + a3 = 1; + a26 = 0; + a16 = 7; + a19 = 1; + return -1; + } else if((((a21==10)&&(((a1==12)&&(((a3==1)&&(!(a28==1)||((a19==5)&&(a28==1))))||(a7==1)))&&(a9==8)))&&((a12==1)&&(((!(a20==1)&&(!(a4==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a16==10))))&&!(a7==1))&&(a17==2))))){ + a21 = 11; + a9 = 10; + a19 = 2; + a5 = 5; + a29 = 0; + a24 = 1; + a11 = 0; + a16 = 7; + return -1; + } else if((((a19==2)&&((((((input==3)&&((a5==5)||(a5==6)))&&(a9==8))&&(a1==14))&&(a2==1))&&(a21==11)))&&((((a7==1)||((a24==1)||(((((a17==2)&&(a28==1))&&(a3==1))&&(a16==11))&&!(a4==1))))||(a27==1))&&(a20==1)))){ + a24 = 0; + a9 = 7; + a8 = 0; + a5 = 4; + a16 = 7; + a2 = 1; + a1 = 12; + a19 = 1; + a21 = 10; + return -1; + } else if(((((a1==12)&&(!(a24==1)&&((a11==1)&&(((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a17==2)))))&&(a20==1))&&(((a9==8)&&(((((!(a0==1)&&((a12==1)&&(a16==9)))&&!(a18==1))&&(a21==11))||!(a2==1))||(a27==1)))&&(a19==1)))){ + a5 = 6; + a23 = 1; + a8 = 0; + a9 = 9; + a19 = 3; + a16 = 7; + a13 = 1; + a21 = 10; + return -1; + } else if(((((((a16==8)&&((a9==10)&&((a23==1)&&((!(a14==1)&&((input==3)&&((a5==5)||(a5==6))))&&(a3==1)))))&&!(a8==1))&&(a28==1))&&(a17==2))&&((a20==1)&&((!(a24==1)&&((a21==10)&&((a23==1)&&(a19==5))))&&(a1==13))))){ + a20 = 0; + a0 = 0; + a4 = 0; + a5 = 4; + a11 = 1; + a1 = 14; + a16 = 7; + return 22; + } else if(((((((!(a0==1)&&(((input==6)&&((a5==5)||(a5==6)))&&(a13==1)))&&!(a0==1))&&(a1==14))&&(a9==7))&&!(a18==1))&&((a19==3)&&((a16==10)&&((a17==2)&&((!(a20==1)&&(((a11==1)||(a8==1))&&(a21==11)))||!(a3==1))))))){ + a29 = 1; + a28 = 0; + a1 = 12; + a16 = 7; + a9 = 8; + a5 = 4; + a20 = 1; + a7 = 1; + a21 = 10; + a19 = 1; + return -1; + } else if((((!(a12==1)||((a14==1)||(((a27==1)||(((!(a3==1)||(a12==1))&&(a16==7))&&(a21==12)))&&(a1==14))))&&(a19==2))&&(((a20==1)&&((a13==1)&&(((input==6)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&!(a18==1))))&&(a17==2)))){ + a11 = 1; + a1 = 12; + a7 = 0; + a21 = 10; + a8 = 0; + a19 = 1; + a9 = 7; + a5 = 4; + return -1; + } else if((((((a19==2)&&((((a17==2)&&((a11==1)&&((a21==11)&&(a6==1))))&&(a12==1))&&(a16==11)))&&(a9==8))&&(a1==13))&&(!(a0==1)&&((a20==1)&&(((((input==5)&&((a5==4)||(a5==5)))&&!(a26==1))&&!(a27==1))&&!(a14==1)))))){ + a11 = 1; + a26 = 0; + a16 = 8; + a12 = 1; + a21 = 12; + a5 = 6; + a19 = 1; + a1 = 14; + return 21; + } else if(((((a19==2)&&((a21==10)&&((a27==1)||((a17==2)&&((a4==1)||(!(a23==1)||((a1==14)&&(!(a2==1)||(a13==1)))))))))&&(a20==1))&&(((!(a4==1)&&(((input==5)&&((a5==5)||(a5==6)))&&(a28==1)))&&(a16==7))&&(a9==9)))){ + a9 = 11; + a16 = 8; + a5 = 4; + a20 = 0; + a1 = 13; + a18 = 0; + a0 = 0; + a24 = 0; + a21 = 11; + return 22; + } else if(((!(a20==1)&&((a17==2)&&(((!(a26==1)&&(((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))&&(input==4)))&&!(a14==1))&&(a16==8))))&&((a21==12)&&((a18==1)||((((!(a3==1)||((a3==1)||!(a28==1)))&&(a19==4))||!(a23==1))&&(a1==13)))))){ + if((a26==1)){ + a1 = 12; + a21 = 10; + a5 = 4; + a9 = 8; + a15 = 1; + a10 = 0; + a16 = 7; + a19 = 1; + a20 = 1; + }else{ + a26 = 1; + a20 = 1; + a1 = 12; + a16 = 7; + a21 = 10; + a9 = 8; + a19 = 2; + a14 = 1; + a5 = 4; + } + return 26; + } else if((((a1==12)&&(((((((!(a23==1)||(a12==1))&&(a9==10))&&!(a8==1))&&(a17==2))&&(a21==10))||(a7==1))&&(a19==1)))&&((((a20==1)&&(!(a27==1)&&(((input==3)&&((a5==4)||(a5==5)))&&!(a27==1))))&&(a11==1))&&(a16==10)))){ + a5 = 4; + a9 = 7; + a27 = 0; + a16 = 7; + a14 = 0; + a6 = 1; + return -1; + } else if((((((!(a7==1)&&(((a20==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a19==4)))&&(a17==2)))&&(a3==1))&&(a3==1))&&(a1==14))&&(((((!(a24==1)&&(!(a2==1)||(a6==1)))&&(a21==12))&&(a28==1))&&(a9==7))&&(a16==11)))){ + a1 = 12; + a21 = 10; + a19 = 1; + a5 = 4; + a26 = 0; + a24 = 0; + a16 = 7; + return -1; + } else if((((a16==8)&&((a4==1)&&(((a21==11)&&(!(a13==1)&&(((input==5)&&((a5==4)||(a5==5)))&&(a17==2))))&&!(a2==1))))&&((a1==13)&&((a20==1)&&((a18==1)&&((a9==11)&&(!(a3==1)&&(((a19==5)&&(a2==1))&&!(a23==1))))))))){ + a5 = 5; + a23 = 0; + a21 = 12; + a11 = 0; + a9 = 9; + a16 = 7; + a0 = 1; + a1 = 14; + a19 = 2; + return -1; + } else if((((a17==2)&&(((!(a14==1)&&(((a16==8)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&(a6==1)))&&!(a7==1))&&(a9==11)))&&(((a19==1)&&(!(a14==1)&&(!(a18==1)&&((a21==11)&&(((a20==1)&&(a23==1))||(a24==1))))))&&(a1==13)))){ + a1 = 12; + a2 = 1; + a5 = 4; + a3 = 1; + a16 = 7; + a9 = 7; + a28 = 1; + a21 = 10; + return -1; + } else if(((((a19==2)&&(((input==1)&&((a5==4)||(a5==5)))&&(a11==1)))&&(a21==10))&&((a1==12)&&((!(a0==1)&&((a17==2)&&((a16==10)&&((a9==9)&&((a8==1)||(!(a12==1)||((a20==1)&&((a28==1)||(a7==1)))))))))||(a27==1))))){ + a23 = 1; + a5 = 4; + a28 = 1; + a19 = 5; + return 25; + } else if((((a16==8)&&((a19==2)&&((((!(a13==1)||(a11==1))||(a7==1))&&(a2==1))&&(a21==10))))&&((a1==13)&&((a17==2)&&(!(a0==1)&&(!(a20==1)&&(((a2==1)&&((input==4)&&(((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))))&&!(a26==1)))))))){ + a16 = 7; + a4 = 0; + a11 = 1; + a9 = 7; + a6 = 1; + a1 = 12; + a5 = 4; + a20 = 1; + a19 = 1; + return -1; + } else if((((a19==5)&&(((a23==1)&&((((a17==2)&&((input==6)&&((a5==5)||(a5==6))))&&!(a20==1))&&(a6==1)))&&!(a26==1)))&&(((a1==14)&&((a21==11)&&((((a2==1)&&((a12==1)&&(a11==1)))&&(a9==7))||!(a13==1))))&&(a16==10)))){ + if((a15==1)){ + a25 = 1; + a26 = 1; + a9 = 8; + a16 = 9; + a19 = 3; + a14 = 1; + a1 = 12; + a5 = 4; + a21 = 10; + }else{ + a18 = 1; + a21 = 12; + a29 = 0; + a0 = 1; + a19 = 3; + a9 = 8; + a5 = 4; + a20 = 1; + a1 = 13; + } + return -1; + } else if((((a16==9)&&((a1==12)&&((a21==11)&&(!(a20==1)&&(!(a0==1)&&(!(a8==1)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6)))))))))&&((a19==3)&&((a17==2)&&(!(a3==1)||((a28==1)&&((!(a0==1)&&((a9==10)&&(a3==1)))&&(a13==1)))))))){ + if((a11==1)){ + a23 = 0; + a8 = 1; + a16 = 10; + a20 = 1; + a12 = 0; + a19 = 2; + a5 = 4; + a9 = 9; + }else{ + a29 = 0; + a21 = 10; + a16 = 7; + a19 = 1; + a5 = 4; + a6 = 0; + a22 = 0; + a20 = 1; + a1 = 13; + } + return 22; + } else if((((!(a6==1)&&((((!(a11==1)&&((((a17==2)&&(input==6))&&(a5==5))&&(a21==12)))&&(a9==9))&&!(a23==1))&&(a26==1)))&&(a1==14))&&(((a16==9)&&(((a19==2)&&((a23==1)&&(a7==1)))&&(a7==1)))&&(a20==1)))){ + a11 = 0; + a16 = 8; + a15 = 0; + a25 = 1; + a20 = 0; + a21 = 10; + return -1; + } else if(((((a2==1)&&((((a19==1)&&((input==5)&&((a5==4)||(a5==5))))&&(a28==1))&&(a1==12)))&&(a9==9))&&(!(a2==1)||(((a16==9)&&((a20==1)&&(((a17==2)&&(((a13==1)&&(a21==11))&&(a11==1)))&&(a6==1))))&&!(a26==1))))){ + a16 = 10; + a6 = 1; + a9 = 11; + a19 = 2; + a1 = 13; + a5 = 6; + a11 = 1; + a8 = 0; + return 26; + } else if(((((a16==8)&&((!(a20==1)&&((a1==12)&&((input==3)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))))&&(a28==1)))&&(a23==1))&&(((a3==1)&&((a17==2)&&((!(a11==1)||(((a23==1)||!(a11==1))&&(a21==11)))&&(a19==2))))||!(a11==1)))){ + a6 = 1; + a5 = 4; + a9 = 7; + a3 = 1; + a20 = 1; + a19 = 1; + a16 = 7; + a21 = 10; + return -1; + } else if(((!(a6==1)&&((!(a12==1)&&((((!(a28==1)&&(!(a20==1)&&(input==4)))&&!(a2==1))&&(a19==2))&&(a21==12)))&&(a1==12)))&&((a5==6)&&(!(a11==1)&&(((a9==7)&&(((a3==1)&&(a16==7))&&(a4==1)))&&(a17==2)))))){ + a20 = 1; + a21 = 10; + a3 = 0; + a13 = 0; + a9 = 8; + a19 = 1; + a11 = 0; + a1 = 13; + return -1; + } else if((((a21==11)&&(!(a11==1)&&(((a7==1)&&(!(a6==1)&&(((input==3)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(a1==14))))&&(a26==1))))&&(((a20==1)&&(((!(a6==1)&&(!(a13==1)&&(a23==1)))&&(a19==5))&&(a17==2)))&&(a16==11)))){ + a3 = 0; + a26 = 1; + a9 = 11; + a19 = 4; + a21 = 10; + a5 = 4; + a29 = 1; + a20 = 0; + a16 = 8; + return 21; + } else if(((((a20==1)&&(!(a23==1)||((a16==8)&&(a3==1))))||!(a13==1))&&((((a12==1)&&(((a6==1)&&(((((input==5)&&(((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))))&&(a21==11))&&(a19==4))&&(a12==1)))&&(a17==2)))&&!(a18==1))&&(a1==14)))){ + a9 = 7; + a16 = 7; + a18 = 0; + a28 = 1; + a19 = 1; + a1 = 12; + a12 = 1; + a21 = 10; + a5 = 4; + return -1; + } return calculate_output19(input); + } + + int calculate_output19(int input) { + if((((!(a11==1)&&(!(a3==1)&&((a16==7)&&((a9==9)&&((input==4)&&((a5==5)||(a5==6)))))))&&(a1==13))&&((((!(a3==1)&&(!(a11==1)&&((a24==1)&&((a21==10)&&((a3==1)&&(a19==2))))))&&(a17==2))&&!(a6==1))&&!(a20==1)))){ + a1 = 12; + a26 = 1; + a20 = 1; + a29 = 0; + a5 = 6; + a9 = 7; + return 25; + } else if(((((!(a13==1)||(a2==1))&&!(a8==1))||(a4==1))&&(((((a13==1)&&((((a1==12)&&((!(a0==1)&&((((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9))))&&(input==1)))&&!(a20==1)))&&(a17==2))&&(a19==4)))&&(a16==7))&&(a12==1))&&(a21==10)))){ + a9 = 7; + a20 = 1; + a19 = 1; + a14 = 0; + a18 = 0; + a2 = 1; + a5 = 4; + return -1; + } else if(((((((a21==10)&&((((input==1)&&((a5==4)||(a5==5)))&&(a2==1))&&(a9==11)))&&(a11==1))&&!(a7==1))&&(a19==1))&&(((a1==12)&&(!(a24==1)&&(!(a7==1)&&(!(a20==1)&&(!(a11==1)||((a23==1)&&(a16==7)))))))&&(a17==2)))){ + a20 = 1; + a27 = 0; + a5 = 4; + a24 = 0; + a9 = 7; + a18 = 0; + return -1; + } else if((((((((((input==6)&&((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4))))&&!(a26==1))&&(a20==1))&&(a16==8))&&(a19==5))&&(a1==12))&&(a13==1))&&((a7==1)||(((a17==2)&&((a21==10)&&((a12==1)&&((a3==1)||!(a12==1)))))&&(a28==1))))){ + a19 = 2; + a9 = 8; + a16 = 10; + a27 = 0; + a28 = 1; + a0 = 0; + a5 = 4; + return 21; + } else if((((a16==11)&&(((a21==10)&&(!(a11==1)||(((a2==1)||(a24==1))||(a8==1))))&&(a17==2)))&&((a20==1)&&(!(a18==1)&&(((a19==5)&&((a1==14)&&(!(a7==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&(a11==1)))))&&(a9==8)))))){ + a14 = 0; + a5 = 4; + a1 = 12; + a12 = 1; + a16 = 7; + a26 = 0; + a9 = 7; + a19 = 1; + return -1; + } else if((((a21==11)&&(((a6==1)&&((((((a11==1)&&(!(a0==1)&&((a20==1)&&(input==6))))&&(a1==13))&&(a3==1))&&(a11==1))&&(a16==7)))&&(a19==5)))&&(((((a3==1)&&(a17==2))&&(a5==4))&&!(a14==1))&&(a9==10)))){ + a16 = 8; + a19 = 2; + a21 = 12; + a4 = 0; + a5 = 5; + a9 = 8; + a27 = 0; + a0 = 0; + return 25; + } else if((((((((!(a24==1)&&(!(a7==1)&&((a5==5)&&(input==5))))&&(a19==3))&&(a16==9))&&(a17==2))&&(a21==10))&&(a9==10))&&((!(a20==1)&&(((!(a8==1)&&(!(a0==1)&&(a12==1)))||(a4==1))&&!(a7==1)))&&(a1==14)))){ + a20 = 1; + a19 = 1; + a5 = 4; + a1 = 13; + a29 = 1; + a16 = 7; + a9 = 7; + a25 = 1; + a28 = 0; + return 21; + } else if(((((a17==2)&&((((a19==2)&&((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==4)))&&(a16==9))&&!(a20==1)))&&(a6==1))&&(((!(a14==1)&&(!(a14==1)&&(((a13==1)&&((a1==12)&&(a13==1)))&&(a21==10))))&&!(a26==1))&&(a3==1)))){ + if((a6==1)){ + a1 = 14; + a5 = 4; + a7 = 1; + a19 = 1; + a9 = 7; + a0 = 1; + a21 = 12; + a14 = 1; + a16 = 10; + }else{ + a5 = 6; + a9 = 7; + a22 = 0; + a20 = 1; + a10 = 0; + a29 = 0; + a16 = 7; + } + return 21; + } else if((((a16==7)&&((a17==2)&&(((a9==11)&&((a12==1)&&!(a7==1)))&&!(a7==1))))&&(!(a18==1)&&(((((a1==13)&&(!(a8==1)&&(((a11==1)&&((input==3)&&(a19==5)))&&!(a20==1))))&&(a21==10))&&(a3==1))&&(a5==4))))){ + a20 = 1; + a2 = 1; + a1 = 12; + a26 = 0; + a9 = 7; + a19 = 1; + return -1; + } else if((((((((!(a18==1)&&((a6==1)&&(a20==1)))&&(a1==14))||!(a13==1))&&(a21==11))&&(a9==7))||(a0==1))&&(((!(a14==1)&&((!(a14==1)&&((a17==2)&&((input==6)&&((a5==6)||((a5==4)||(a5==5))))))&&(a16==9)))&&(a19==4))&&!(a18==1)))){ + a21 = 10; + a6 = 1; + a1 = 13; + a16 = 8; + a9 = 10; + a5 = 6; + a7 = 0; + a3 = 1; + a19 = 5; + return 22; + } else if(((((a28==1)&&(((input==5)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&!(a14==1)))&&!(a20==1))&&((((a14==1)||(!(a4==1)&&((((((a28==1)&&(a1==12))&&(a21==12))&&(a19==3))&&(a17==2))&&!(a8==1))))&&(a16==7))&&(a6==1)))){ + a5 = 6; + a9 = 9; + a2 = 1; + a19 = 1; + a20 = 1; + a21 = 11; + a26 = 0; + return 23; + } else if((((a5==6)&&((((a14==1)&&((!(a12==1)&&((a17==2)&&(a2==1)))&&(a4==1)))&&(a19==4))&&(a20==1)))&&((((a16==7)&&((((a9==7)&&((a1==13)&&(input==5)))&&(a0==1))&&!(a23==1)))&&(a21==10))&&(a14==1)))){ + a20 = 0; + a19 = 2; + a1 = 12; + a9 = 11; + a15 = 0; + a4 = 1; + a16 = 8; + a29 = 0; + return -1; + } else if((((((a1==14)&&(((!(a2==1)||(!(a6==1)||(a23==1)))&&(a16==7))&&(a20==1)))||(a27==1))&&(a17==2))&&(!(a8==1)&&((a21==10)&&((a12==1)&&((a12==1)&&((a19==4)&&(((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5)))&&(input==6))))))))){ + a12 = 1; + a0 = 0; + a9 = 7; + a21 = 12; + a1 = 13; + a19 = 1; + a4 = 0; + a5 = 5; + return 26; + } else if((((a9==8)&&(!(a8==1)&&((a12==1)&&(((a16==10)&&(!(a27==1)&&((a19==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&(a17==2)))))&&!(a26==1)))))&&((a21==11)&&(((a11==1)&&((a1==14)&&((a3==1)&&(a28==1))))&&!(a20==1))))){ + a21 = 10; + a16 = 7; + a5 = 4; + a11 = 0; + a20 = 1; + a9 = 10; + a1 = 13; + a6 = 0; + return -1; + } else if(((((a13==1)&&((((((((a9==11)&&((a1==12)&&(a5==6)))||(((a5==4)&&(a1==13))&&(a9==7)))&&(input==5))&&(a28==1))&&(a17==2))&&(a19==2))&&(a11==1)))&&(a11==1))&&((a4==1)||((a21==12)&&((a20==1)&&(((a13==1)&&(a16==7))||(a26==1))))))){ + a7 = 0; + a9 = 9; + a0 = 0; + a5 = 5; + a3 = 1; + a1 = 14; + a21 = 10; + a16 = 9; + return 26; + } else if((((((a21==12)&&(!(a24==1)&&((a1==14)&&(((((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==6))&&(a2==1))&&(a16==11))&&(a17==2)))))&&(a6==1))&&(a6==1))&&(!(a28==1)||((a19==2)&&((a20==1)&&((a23==1)&&!(a27==1))))))){ + a28 = 1; + a1 = 12; + a21 = 10; + a9 = 7; + a5 = 4; + a19 = 1; + a16 = 7; + a27 = 0; + return -1; + } else if((((a0==1)&&((((a9==8)&&((a23==1)&&(a21==11)))&&(a17==2))&&(a7==1)))&&((a7==1)&&((a18==1)&&((!(a23==1)&&(((a19==2)&&(!(a20==1)&&((a1==13)&&((input==6)&&((a5==4)||(a5==5))))))&&(a16==8)))&&(a26==1)))))){ + a19 = 1; + a5 = 6; + a25 = 1; + a15 = 0; + a9 = 7; + a6 = 0; + a21 = 10; + a1 = 12; + a16 = 7; + return -1; + } else if(((!(a27==1)&&((a6==1)&&((a17==2)&&((a1==12)&&((a16==10)&&((a9==11)&&(input==3)))))))&&((!(a13==1)||((a5==4)&&(!(a14==1)&&((a19==4)&&((!(a20==1)&&(!(a12==1)||(a6==1)))&&!(a7==1))))))&&(a21==12)))){ + a15 = 0; + a9 = 7; + a21 = 11; + a28 = 0; + a6 = 0; + a16 = 7; + a19 = 3; + a1 = 14; + a5 = 6; + return -1; + } else if((((((a3==1)&&((((a6==1)&&(a20==1))||!(a6==1))||!(a13==1)))||(a26==1))&&(a19==4))&&((a21==11)&&((((((((input==5)&&(a17==2))&&(a12==1))&&(a9==11))&&!(a18==1))&&(a1==12))&&(a16==7))&&(a5==4))))){ + a21 = 10; + a9 = 7; + a18 = 0; + a13 = 1; + a19 = 1; + a8 = 0; + return -1; + } else if(((!(a26==1)&&((a12==1)&&(((a1==14)&&((((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))&&(input==1))&&(a19==1)))&&!(a4==1))))&&((a0==1)||((a17==2)&&((a21==12)&&(((!(a2==1)||((a20==1)&&(a6==1)))&&(a16==11))||!(a3==1))))))){ + a5 = 4; + a9 = 7; + a21 = 10; + a1 = 12; + a12 = 1; + a14 = 0; + a16 = 7; + return -1; + } else if((((a21==10)&&((a19==4)&&((a20==1)&&(((a16==7)&&((a8==1)||(a13==1)))||!(a28==1)))))&&((a1==14)&&(!(a8==1)&&(((a12==1)&&((a17==2)&&(!(a18==1)&&((input==3)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11)))))))&&(a3==1)))))){ + a9 = 9; + a21 = 12; + a19 = 1; + a1 = 13; + a6 = 1; + a0 = 0; + a5 = 4; + a28 = 1; + return 25; + } else if((((a19==5)&&((a16==7)&&(((a4==1)||(!(a12==1)||(!(a3==1)||(a23==1))))&&(a3==1))))&&((a21==11)&&((((a17==2)&&(!(a20==1)&&(!(a18==1)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==4)))))&&(a1==13))&&!(a4==1))))){ + a1 = 12; + a5 = 4; + a9 = 7; + a20 = 1; + a12 = 1; + a21 = 10; + a19 = 1; + a14 = 0; + return -1; + } else if((((a17==2)&&((a19==5)&&((a5==5)&&(((a1==13)&&((!(a26==1)&&(a3==1))&&(a28==1)))&&(a11==1)))))&&(((a23==1)&&(((a23==1)&&(((a9==8)&&((input==5)&&(a20==1)))&&!(a18==1)))&&(a21==12)))&&(a16==10)))){ + a16 = 8; + a9 = 10; + a1 = 12; + a8 = 0; + a5 = 4; + a21 = 10; + a13 = 1; + return 26; + } else if((((((((!(a20==1)&&((input==6)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))))&&(a21==11))&&(a16==9))&&(a19==4))&&!(a18==1))&&(a1==14))&&((!(a3==1)||((a17==2)&&(!(a18==1)&&((!(a2==1)||(a11==1))&&!(a27==1)))))&&(a11==1)))){ + a21 = 10; + a5 = 6; + a18 = 1; + a9 = 10; + a20 = 1; + a19 = 1; + a3 = 0; + a14 = 1; + a16 = 7; + return 26; + } else if((((a16==7)&&((a12==1)&&((((a5==6)&&((a9==10)&&(input==1)))&&(a2==1))&&!(a20==1))))&&((a0==1)||((a4==1)||((a21==12)&&((((a1==14)&&((!(a28==1)||(a12==1))||!(a28==1)))&&(a17==2))&&(a19==2))))))){ + a16 = 9; + a14 = 0; + a5 = 5; + a23 = 1; + a20 = 1; + a21 = 10; + a19 = 4; + a11 = 1; + return 22; + } else if((((a1==12)&&((!(a18==1)&&((((a17==2)&&(!(a7==1)&&((a19==1)&&(input==3))))&&!(a14==1))&&(a20==1)))&&!(a4==1)))&&((a5==6)&&((((a26==1)||(((a16==9)&&(a13==1))&&(a9==7)))&&(a21==10))&&!(a24==1))))){ + a12 = 1; + a18 = 0; + a5 = 4; + a24 = 0; + a16 = 7; + return -1; + } else if(((((a21==10)&&(!(a3==1)||(((a23==1)&&(a23==1))&&(a19==2))))&&(a9==7))&&((!(a14==1)&&(!(a26==1)&&((a17==2)&&((a1==14)&&(!(a24==1)&&(((a20==1)&&((input==5)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a26==1)))))))&&(a16==11)))){ + a16 = 7; + a5 = 4; + a1 = 12; + a19 = 1; + a3 = 1; + a4 = 0; + a2 = 1; + return -1; + } else if(((((a13==1)&&((((a21==10)&&((!(a6==1)||((a11==1)||(a18==1)))&&(a17==2)))&&!(a20==1))||(a18==1)))||!(a12==1))&&((a19==2)&&((((((((a1==12)&&(a5==6))&&(a9==11))||(((a1==13)&&(a5==4))&&(a9==7)))||((a9==7)&&((a1==13)&&(a5==5))))&&(input==1))&&!(a18==1))&&(a16==9))))){ + if((a14==1)){ + a10 = 1; + a11 = 0; + a5 = 6; + a19 = 3; + a16 = 8; + a1 = 12; + a24 = 1; + a9 = 11; + }else{ + a19 = 5; + a9 = 8; + a21 = 12; + a1 = 14; + a5 = 6; + a29 = 1; + a12 = 0; + a16 = 7; + a13 = 0; + } + return -1; + } else if((((((a28==1)&&((((input==6)&&((a5==5)||(a5==6)))&&(a19==3))&&(a16==8)))&&(a23==1))&&!(a14==1))&&((a9==10)&&(((a17==2)&&((a21==12)&&((a20==1)&&((((a1==12)&&(a3==1))||!(a12==1))||!(a11==1)))))&&!(a26==1))))){ + if((a25==1)){ + a19 = 5; + a21 = 10; + a24 = 0; + a20 = 0; + a5 = 5; + a3 = 1; + a9 = 11; + }else{ + a1 = 14; + a19 = 2; + a2 = 1; + a16 = 7; + a5 = 5; + a21 = 10; + a26 = 0; + } + return 21; + } else if((((((!(a2==1)||((a21==12)&&((a3==1)&&(a3==1))))&&(a1==13))&&(a20==1))&&(a19==1))&&((a17==2)&&(((!(a7==1)&&(!(a0==1)&&(((input==1)&&((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4))))&&!(a7==1))))&&(a3==1))&&(a16==10))))){ + a19 = 2; + a9 = 9; + a6 = 1; + a26 = 0; + a5 = 5; + a21 = 10; + a14 = 0; + a16 = 7; + return -1; + } else if(((((a21==12)&&((a6==1)&&((a17==2)&&((a19==5)&&((((((a1==12)&&(a5==6))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==13))))||(((a1==13)&&(a5==5))&&(a9==7)))&&(input==6))))))&&(a28==1))&&((a28==1)&&((a3==1)&&(!(a23==1)||((((a11==1)&&!(a20==1))||!(a11==1))&&(a16==10))))))){ + a1 = 14; + a21 = 11; + a19 = 4; + a20 = 1; + a8 = 1; + a5 = 5; + a6 = 0; + a16 = 8; + a27 = 1; + a9 = 7; + return -1; + } else if((((a19==5)&&(((!(a0==1)&&((a12==1)&&(((a21==11)&&((a16==9)&&((((a5==5)||(a5==6))&&(input==3))&&!(a20==1))))&&!(a14==1))))&&(a9==7))&&(a17==2)))&&((!(a23==1)||((a28==1)&&((a14==1)||(a13==1))))&&(a1==14)))){ + a19 = 2; + a13 = 0; + a5 = 4; + a6 = 0; + a20 = 1; + a16 = 10; + a9 = 11; + a25 = 1; + a1 = 12; + a21 = 10; + return -1; + } else if((((a21==10)&&((a17==2)&&((a18==1)||(!(a8==1)&&(a6==1)))))&&((((a28==1)&&((((a6==1)&&(((a11==1)&&(((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&!(a20==1)))&&!(a26==1)))&&(a16==10))&&(a9==8)))&&(a19==1))&&(a1==14)))){ + if((a12==1)){ + a21 = 12; + a5 = 5; + a0 = 1; + a11 = 0; + a20 = 1; + a9 = 7; + a16 = 8; + a25 = 1; + a1 = 12; + }else{ + a16 = 7; + a5 = 6; + a20 = 1; + a26 = 1; + a1 = 13; + a14 = 1; + a9 = 11; + a28 = 0; + } + return -1; + } else if((((!(a14==1)&&(((((a21==10)&&((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==5)))&&(a17==2))&&!(a27==1))&&!(a18==1)))&&(a23==1))&&(((!(a27==1)&&(((!(a12==1)||(a12==1))&&(a19==5))&&(a1==12)))&&!(a20==1))&&(a16==8)))){ + a11 = 1; + a19 = 4; + a1 = 13; + a5 = 6; + a9 = 11; + a24 = 0; + a3 = 1; + a16 = 7; + a20 = 1; + return 26; + } else if(((((a19==1)&&(!(a13==1)||((a17==2)&&(!(a6==1)||(((a23==1)||!(a13==1))&&(a20==1))))))&&(a1==13))&&((a21==10)&&((a16==10)&&((((((a5==5)&&(input==3))&&(a3==1))&&!(a4==1))&&(a9==7))&&(a3==1)))))){ + a1 = 12; + a4 = 0; + a23 = 1; + a16 = 7; + a5 = 4; + a24 = 0; + return -1; + } else if((((!(a7==1)&&(((a21==12)&&((((input==4)&&(((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))))&&!(a7==1))&&!(a20==1)))&&!(a8==1)))&&(a1==13))&&((a19==1)&&(!(a28==1)||(!(a23==1)||(((a17==2)&&((a16==8)&&(a11==1)))||(a27==1))))))){ + a9 = 11; + a19 = 3; + a2 = 0; + a18 = 1; + a21 = 11; + a1 = 12; + a5 = 5; + a27 = 1; + return -1; + } else if((((!(a7==1)&&((a12==1)&&((!(a14==1)&&(((input==3)&&((a5==5)||(a5==6)))&&(a2==1)))&&(a20==1))))&&(a17==2))&&((a2==1)&&(((((((a3==1)&&(a23==1))&&(a16==7))&&(a21==10))&&(a19==3))&&(a1==13))&&(a9==9))))){ + a0 = 0; + a5 = 4; + a9 = 7; + a19 = 1; + a13 = 1; + a1 = 12; + a23 = 1; + return -1; + } else if(((!(a18==1)&&((!(a4==1)&&(((!(a20==1)&&(((a28==1)&&(((a16==8)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6))))&&(a1==13)))&&(a2==1)))&&(a19==3))&&(a17==2)))&&(a9==8)))&&((a21==10)&&(((a3==1)||(a18==1))&&(a28==1))))){ + a0 = 0; + a3 = 1; + a5 = 4; + a2 = 1; + a20 = 1; + a16 = 7; + a9 = 7; + a1 = 12; + a19 = 1; + return -1; + } else if(((((a20==1)&&(((a9==10)&&(((((a13==1)&&(a11==1))&&(a17==2))&&(a16==11))||(a26==1)))&&!(a18==1)))&&!(a14==1))&&((!(a26==1)&&((a21==12)&&((((input==6)&&((a5==5)||(a5==6)))&&(a1==13))&&(a19==5))))&&!(a27==1)))){ + a5 = 4; + a18 = 0; + a8 = 0; + a19 = 1; + a1 = 12; + a16 = 7; + a21 = 10; + a9 = 7; + a14 = 0; + return -1; + } else if(((!(a4==1)&&((a21==11)&&((!(a20==1)&&((a19==3)&&(((input==4)&&((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4))))&&(a6==1))))&&(a17==2))))&&(!(a27==1)&&(((((a16==9)&&(!(a2==1)||(a13==1)))&&(a1==14))&&!(a4==1))&&!(a4==1))))){ + a0 = 1; + a1 = 12; + a21 = 10; + a5 = 6; + a27 = 1; + a25 = 1; + a16 = 7; + a19 = 2; + a9 = 8; + a20 = 1; + return 25; + } else if((((a6==1)&&((a21==10)&&((a11==1)&&((!(a23==1)||(a28==1))&&(a1==12)))))&&(((((!(a27==1)&&((((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==4))&&(a17==2))&&!(a20==1)))&&(a11==1))&&!(a24==1))&&(a19==4))&&(a16==7)))){ + a27 = 0; + a24 = 0; + a9 = 7; + a7 = 0; + a19 = 1; + a5 = 4; + a20 = 1; + return -1; + } else if(((((((a19==1)&&(((!(a18==1)&&(a13==1))||!(a2==1))&&(a21==11)))&&!(a26==1))&&(a1==14))&&(a16==9))&&((a17==2)&&((a9==7)&&((!(a14==1)&&((!(a4==1)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6))))&&(a23==1)))&&!(a20==1)))))){ + if((a6==1)){ + a19 = 4; + a20 = 1; + a21 = 10; + a5 = 4; + a22 = 1; + a9 = 11; + a1 = 13; + }else{ + a8 = 1; + a21 = 10; + a0 = 1; + a29 = 1; + a16 = 7; + a5 = 4; + a1 = 13; + a9 = 8; + a20 = 1; + } + return -1; + } else if((((((((((a14==1)||(a12==1))||!(a6==1))&&(a5==5))&&(a1==12))&&(a16==7))&&!(a20==1))&&(a17==2))&&((a21==12)&&((a9==7)&&(((a28==1)&&((a23==1)&&((a13==1)&&((a19==1)&&(input==3)))))&&!(a7==1)))))){ + a27 = 0; + a7 = 0; + a21 = 10; + a4 = 0; + a20 = 1; + a5 = 4; + return -1; + } else if(((((a1==12)&&((a9==8)&&(a23==1)))||(a7==1))&&((((a2==1)&&(((a5==5)&&(!(a4==1)&&((a21==12)&&((a19==4)&&((((a17==2)&&(input==5))&&!(a7==1))&&(a16==7))))))&&(a20==1)))&&(a11==1))&&(a13==1)))){ + a9 = 11; + a16 = 9; + a5 = 6; + a3 = 1; + a21 = 11; + a4 = 0; + a19 = 1; + a14 = 0; + return 22; + } else if((((a14==1)||(((a9==7)&&(((a18==1)||((a19==1)&&(a6==1)))&&(a17==2)))||!(a2==1)))&&(!(a0==1)&&((a11==1)&&((a1==14)&&(((a21==10)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&!(a24==1))&&!(a20==1)))&&(a16==10))))))){ + if((a12==1)){ + a20 = 1; + a12 = 0; + a9 = 8; + a8 = 1; + a16 = 7; + a5 = 4; + a1 = 13; + }else{ + a11 = 0; + a5 = 6; + a20 = 1; + a27 = 1; + a6 = 0; + a16 = 7; + a1 = 12; + a9 = 9; + } + return 25; + } else if((((a17==2)&&(!(a13==1)||(((a13==1)&&(a21==10))&&(a20==1))))&&((a2==1)&&((a12==1)&&((a1==14)&&(((a2==1)&&((((a13==1)&&((input==1)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))))&&(a19==2))&&(a28==1)))&&(a16==7))))))){ + a5 = 4; + a9 = 11; + a1 = 12; + a26 = 0; + a3 = 1; + a19 = 4; + a12 = 1; + return 23; + } else if((((((a2==1)&&((((a17==2)&&((a2==1)&&((a19==5)&&(input==6))))&&(a16==9))&&!(a14==1)))&&!(a24==1))&&(a9==11))&&(((a5==4)&&((((a13==1)&&((a28==1)&&!(a20==1)))&&(a1==13))||!(a12==1)))&&(a21==10)))){ + a22 = 0; + a9 = 8; + a20 = 1; + a19 = 1; + a5 = 6; + a2 = 0; + a1 = 12; + a16 = 7; + a6 = 0; + return -1; + } else if(((((a21==12)&&((a6==1)&&((!(a11==1)||((a4==1)||((a28==1)&&(a9==9))))&&!(a18==1))))&&(a17==2))&&(((!(a27==1)&&(!(a0==1)&&((a19==3)&&(((input==3)&&(a5==5))&&(a20==1)))))&&(a16==7))&&(a1==13)))){ + a9 = 7; + a4 = 0; + a0 = 0; + a19 = 2; + a5 = 6; + a21 = 10; + return 22; + } else if((((a17==2)&&((a2==1)&&(a23==1)))&&(((a19==1)&&((((a16==8)&&((!(a27==1)&&((((a6==1)&&(((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a20==1)))&&!(a18==1))&&(a1==13)))&&(a28==1)))&&!(a18==1))&&(a21==12)))&&(a9==11)))){ + if((a26==1)){ + a21 = 10; + a20 = 1; + a3 = 0; + a16 = 7; + a5 = 4; + a1 = 14; + a15 = 1; + }else{ + a9 = 8; + a21 = 10; + a1 = 14; + a20 = 1; + a2 = 0; + a16 = 7; + a11 = 0; + a5 = 5; + a27 = 1; + } + return -1; + } else if(((((a20==1)&&((a1==13)&&(((a9==8)&&(input==6))&&(a11==1))))&&(a12==1))&&(((((((((a5==5)&&((a12==1)&&(a21==12)))&&(a17==2))||(a24==1))&&(a6==1))&&(a19==5))&&(a16==7))||(a27==1))&&!(a14==1)))){ + a1 = 12; + a9 = 9; + a18 = 0; + a16 = 9; + a21 = 11; + a5 = 6; + a0 = 0; + return 25; + } else if(((((((a16==9)&&((a19==1)&&(((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==1))&&!(a24==1))))&&(a21==11))&&(a1==13))&&(a20==1))&&((a23==1)&&(((!(a3==1)||(((a17==2)&&(a6==1))&&(a3==1)))&&(a2==1))&&!(a27==1))))){ + a0 = 0; + a1 = 14; + a5 = 4; + a19 = 5; + a3 = 1; + a13 = 1; + a9 = 11; + return 21; + } else if((((a21==10)&&((a19==2)&&((((!(a27==1)&&((a16==7)&&(!(a20==1)&&(((input==1)&&((a5==5)||(a5==6)))&&!(a18==1)))))&&!(a27==1))&&(a13==1))&&(a9==11))))&&(!(a11==1)||((a23==1)&&((a17==2)&&((a1==12)&&(a28==1))))))){ + a20 = 1; + a0 = 0; + a5 = 4; + a9 = 7; + a19 = 1; + a24 = 0; + a23 = 1; + return -1; + } else if(((((((((a13==1)&&((input==5)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))&&(a6==1))&&(a23==1))&&(a20==1))&&(a19==1))&&(a21==10))&&((((((!(a12==1)||(a13==1))&&(a6==1))&&(a1==14))&&(a11==1))&&(a17==2))&&(a16==8)))){ + a5 = 5; + a19 = 2; + a12 = 1; + a16 = 9; + a23 = 1; + a9 = 7; + a21 = 12; + return 23; + } else if(((((((a20==1)&&(!(a27==1)&&((a1==14)&&(((a17==2)&&(input==3))&&(a19==2)))))&&(a11==1))&&!(a4==1))&&(a16==10))&&((a26==1)||((((a5==5)&&(!(a6==1)||(!(a24==1)&&(a3==1))))&&(a21==11))&&(a9==11))))){ + a1 = 12; + a21 = 10; + a16 = 7; + a7 = 0; + a19 = 1; + a5 = 4; + a9 = 7; + a4 = 0; + return -1; + } else if(((((a19==5)&&((a28==1)&&((a21==12)&&((((input==1)&&(a20==1))&&(a17==2))&&(a16==9)))))&&!(a27==1))&&((a6==1)&&((((!(a2==1)||(((a5==6)&&(a11==1))||!(a23==1)))&&(a9==9))||(a14==1))&&(a1==12))))){ + a9 = 10; + a8 = 0; + a11 = 1; + a1 = 13; + a13 = 1; + a19 = 2; + a16 = 7; + a21 = 10; + return 25; + } else if((((a21==11)&&((a9==8)&&((!(a18==1)&&(((input==3)&&(a20==1))&&(a16==9)))&&(a1==14))))&&(((a19==5)&&((a8==1)||((a17==2)&&(((!(a8==1)&&((a6==1)&&!(a14==1)))&&(a12==1))&&(a5==4)))))||!(a6==1)))){ + a1 = 12; + a16 = 7; + a26 = 0; + a14 = 0; + a9 = 7; + a19 = 1; + a21 = 10; + return -1; + } else if(((((a21==12)&&((a1==13)&&((((a9==9)&&(a11==1))||(a0==1))||!(a13==1))))&&(a17==2))&&(((((((a3==1)&&(((input==1)&&((a5==4)||(a5==5)))&&(a16==7)))&&!(a18==1))&&(a6==1))&&(a3==1))&&(a20==1))&&(a19==5)))){ + a4 = 0; + a16 = 9; + a11 = 1; + a21 = 11; + a5 = 5; + a9 = 7; + a24 = 0; + return 22; + } else if(((!(a18==1)&&((a7==1)||(!(a27==1)&&((a21==11)&&((a1==14)&&((((a3==1)&&(a9==10))&&(a13==1))&&(a12==1)))))))&&((a17==2)&&((a16==11)&&((((a19==2)&&((input==3)&&(a20==1)))&&(a5==5))&&!(a14==1)))))){ + a3 = 1; + a9 = 7; + a18 = 0; + a19 = 1; + a1 = 12; + a7 = 0; + a21 = 10; + a5 = 4; + a16 = 7; + return -1; + } else if((((a24==1)||((a20==1)&&((a1==14)&&((a19==1)&&(a11==1)))))&&(((a17==2)&&(((((a16==9)&&(!(a18==1)&&((a23==1)&&((input==6)&&(((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))))))&&(a28==1))&&!(a4==1))&&(a6==1)))&&(a21==10)))){ + a13 = 1; + a1 = 12; + a9 = 7; + a16 = 7; + a18 = 0; + a12 = 1; + a5 = 4; + return -1; + } else if(((((a17==2)&&(((a19==5)&&((((a6==1)&&((input==4)&&!(a20==1)))&&(a9==8))&&(a6==1)))&&(a1==12)))&&!(a27==1))&&(((!(a12==1)||((((a2==1)&&(a21==11))||(a0==1))&&(a16==10)))&&(a5==5))||!(a6==1)))){ + a21 = 10; + a19 = 1; + a1 = 13; + a9 = 7; + a16 = 7; + a5 = 4; + a11 = 0; + a15 = 1; + a20 = 1; + a23 = 0; + return -1; + } else if((((a26==1)||((a20==1)&&((a21==12)&&(!(a4==1)&&((a24==1)||((a1==13)&&(a3==1)))))))&&((a5==6)&&((((a9==9)&&(((a17==2)&&(((a19==5)&&(input==5))&&(a16==9)))&&!(a18==1)))&&!(a18==1))&&!(a4==1))))){ + if((a11==1)){ + a8 = 0; + a11 = 1; + a7 = 0; + a20 = 0; + a16 = 8; + a19 = 3; + a21 = 11; + a1 = 14; + }else{ + a13 = 1; + a5 = 4; + a11 = 1; + a9 = 7; + a8 = 0; + a21 = 11; + } + return 25; + } else if(((((a19==3)&&(((a20==1)&&(((a7==1)||((a2==1)&&(a9==8)))||!(a6==1)))&&(a28==1)))&&(a23==1))&&((!(a24==1)&&((a21==11)&&(((((input==1)&&(a16==7))&&(a17==2))&&(a5==5))&&(a1==13))))&&!(a0==1)))){ + a9 = 7; + a21 = 10; + a6 = 1; + a1 = 12; + a7 = 0; + a5 = 4; + a19 = 1; + return -1; + } else if(((((a2==1)&&(((((a5==5)&&(((input==5)&&(a21==10))&&(a17==2)))&&!(a20==1))&&(a16==10))&&!(a24==1)))&&(a1==12))&&((a24==1)||((((a23==1)&&(((a6==1)&&(a23==1))&&(a9==8)))&&(a19==4))||!(a13==1))))){ + a5 = 4; + a20 = 1; + a8 = 1; + a22 = 1; + a19 = 2; + a16 = 7; + a25 = 0; + return 21; + } else if((((a16==10)&&((a18==1)||((a0==1)||((a21==12)&&(a28==1)))))&&(((a17==2)&&((a12==1)&&((a9==7)&&(((a28==1)&&(((((input==6)&&((a5==5)||(a5==6)))&&(a19==4))&&!(a20==1))&&!(a0==1)))&&(a11==1)))))&&(a1==14)))){ + a29 = 0; + a21 = 10; + a24 = 1; + a16 = 11; + a19 = 5; + a5 = 6; + a9 = 9; + a20 = 1; + a12 = 0; + return -1; + } else if((((a16==7)&&((a23==1)&&((((input==5)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&(a17==2))&&(a20==1))))&&((((a21==10)&&((a19==3)&&(!(a6==1)||(((a1==13)&&((a23==1)||(a0==1)))||(a0==1)))))||(a8==1))&&!(a4==1)))){ + a9 = 8; + a1 = 12; + a27 = 0; + a24 = 0; + a5 = 5; + a19 = 2; + a12 = 1; + a21 = 11; + return 23; + } else if((((a1==12)&&((a19==1)&&((!(a20==1)&&((a26==1)||((a16==9)&&((a28==1)&&(a2==1)))))&&(a21==10))))&&((a9==8)&&((!(a14==1)&&((a13==1)&&((a12==1)&&(!(a26==1)&&(((a5==4)||(a5==5))&&(input==6))))))&&(a17==2))))){ + if((a17==4)){ + a5 = 4; + a22 = 0; + a16 = 7; + a18 = 1; + a0 = 1; + a20 = 1; + a1 = 14; + }else{ + a1 = 14; + a16 = 7; + a29 = 0; + a25 = 0; + a20 = 1; + a4 = 1; + a5 = 6; + a21 = 12; + } + return -1; + } else if((((!(a3==1)||(((((a14==1)||(a11==1))&&!(a26==1))&&(a1==12))&&(a16==10)))&&(a17==2))&&((a19==5)&&((a21==11)&&(!(a7==1)&&((((a28==1)&&((input==4)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))))&&(a20==1))&&!(a7==1))))))){ + a27 = 0; + a16 = 8; + a9 = 10; + a21 = 12; + a4 = 0; + a1 = 13; + a5 = 4; + a26 = 0; + return -1; + } else if((((((a17==2)&&((((a23==1)&&!(a20==1))||!(a12==1))&&!(a0==1)))&&(a16==7))&&!(a4==1))&&((a3==1)&&((!(a0==1)&&((((a19==1)&&(((input==4)&&(a9==7))&&(a5==6)))&&!(a4==1))&&(a1==14)))&&(a21==12))))){ + a21 = 10; + a4 = 0; + a1 = 12; + a5 = 4; + a26 = 0; + a20 = 1; + a14 = 0; + return -1; + } else if(((!(a7==1)&&((a14==1)||(((!(a0==1)&&(((a1==12)&&((a13==1)&&(a6==1)))&&(a21==11)))||(a18==1))||(a4==1))))&&(!(a20==1)&&((a9==8)&&((a16==7)&&((a19==1)&&((a17==2)&&((input==6)&&((a5==5)||(a5==6)))))))))){ + a14 = 0; + a16 = 8; + a19 = 4; + a20 = 1; + a9 = 11; + a5 = 4; + a6 = 1; + a12 = 1; + return -1; + } else if(((((((input==6)&&((((a5==5)&&(a1==13))&&(a9==7))||(((a9==11)&&((a5==6)&&(a1==12)))||((a9==7)&&((a5==4)&&(a1==13))))))&&(a28==1))&&(a20==1))&&(a12==1))&&(((a17==2)&&(((a16==7)&&((a18==1)||((a2==1)&&(!(a7==1)&&((a27==1)||(a11==1))))))&&(a21==12)))&&(a19==3)))){ + a5 = 4; + a21 = 10; + a19 = 1; + a1 = 12; + a28 = 1; + a0 = 0; + a9 = 7; + a8 = 0; + return -1; + } else if(((!(a4==1)&&((a16==9)&&((((((((input==4)&&((a5==4)||(a5==5)))&&(a12==1))&&(a17==2))&&(a23==1))&&(a19==5))&&!(a24==1))&&(a21==10))))&&((a24==1)||(((((a23==1)&&(a23==1))&&(a1==12))&&(a9==7))&&!(a20==1))))){ + if((a0==1)){ + a5 = 5; + a12 = 0; + a21 = 11; + a19 = 4; + a9 = 10; + a23 = 0; + a16 = 8; + a28 = 0; + }else{ + a0 = 1; + a13 = 0; + a5 = 6; + a16 = 8; + a1 = 14; + a19 = 4; + a22 = 1; + } + return 21; + } else if(((((((a9==9)&&((a19==5)&&((input==6)&&((a5==4)||(a5==5)))))&&(a1==12))&&(a3==1))&&!(a20==1))&&((a2==1)&&((a23==1)&&(((a21==10)&&((a17==2)&&((a18==1)||((a13==1)&&(!(a4==1)&&(a23==1))))))&&(a16==8)))))){ + a28 = 1; + a1 = 13; + a5 = 5; + a26 = 0; + a20 = 1; + a21 = 11; + a13 = 1; + a9 = 7; + a19 = 4; + return 22; + } else if(((((a19==3)&&((((!(a27==1)&&(a2==1))&&!(a7==1))&&(a16==10))||(a26==1)))||(a18==1))&&((!(a24==1)&&(((a17==2)&&((a21==11)&&(!(a8==1)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==5)))))&&(a20==1)))&&(a1==12)))){ + a19 = 4; + a5 = 6; + a16 = 9; + a9 = 7; + a11 = 1; + a18 = 0; + return 21; + } else if(((!(a7==1)&&(((a17==2)&&((a19==2)&&((a1==12)&&(a3==1))))||(a4==1)))&&((!(a24==1)&&(((a16==10)&&(((a9==9)&&(!(a20==1)&&(!(a26==1)&&((input==4)&&((a5==5)||(a5==6))))))&&!(a4==1)))&&(a21==11)))&&(a28==1)))){ + a5 = 5; + a9 = 7; + a20 = 1; + a26 = 1; + a16 = 9; + a19 = 5; + a1 = 13; + a10 = 1; + a0 = 1; + return -1; + } else if((((a20==1)&&((a9==9)&&(((((a19==5)&&((a11==1)&&((a1==12)&&((a2==1)&&((a16==7)&&((input==4)&&(a21==12)))))))&&(a5==4))&&!(a0==1))&&!(a24==1))))&&((((a11==1)&&(a13==1))&&(a17==2))&&(a12==1)))){ + a21 = 10; + a4 = 0; + a12 = 1; + a9 = 7; + a27 = 0; + a19 = 1; + return -1; + } else if(((((a5==4)&&((a19==1)&&(((!(a20==1)&&(input==1))&&!(a27==1))&&(a21==10))))&&(a23==1))&&((((a24==1)||((a3==1)&&((a1==12)&&((a16==8)&&(((a2==1)&&(a6==1))&&(a9==8))))))||!(a12==1))&&(a17==2)))){ + a5 = 6; + a13 = 1; + a1 = 14; + a20 = 1; + a7 = 0; + a16 = 11; + return 25; + } else if(((((((a19==2)&&((((a9==9)&&(a6==1))||!(a23==1))&&!(a8==1)))&&(a21==12))&&(a16==8))&&(a20==1))&&(((!(a18==1)&&((a23==1)&&(((a12==1)&&((a5==5)&&(input==1)))&&(a28==1))))&&(a1==12))&&(a17==2)))){ + a4 = 0; + a2 = 1; + a9 = 7; + a21 = 10; + a12 = 1; + a19 = 1; + a5 = 4; + a16 = 7; + return -1; + } else if((((!(a4==1)&&((a21==10)&&((a12==1)&&((a1==12)&&((a23==1)&&(a9==8))))))||(a26==1))&&(((((!(a0==1)&&((((a5==5)&&(input==6))&&(a16==8))&&!(a4==1)))&&(a12==1))&&(a20==1))&&(a17==2))&&(a19==1)))){ + a28 = 1; + a16 = 7; + a12 = 1; + a9 = 7; + a5 = 4; + a4 = 0; + return -1; + } else if(((!(a27==1)&&((((((a20==1)&&((((input==1)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5))))&&(a3==1))&&(a21==11)))&&(a13==1))&&(a1==12))&&(a6==1))&&(a3==1)))&&((a16==7)&&((((a19==1)&&(a13==1))&&(a17==2))||(a7==1))))){ + a20 = 0; + a11 = 1; + a19 = 2; + a27 = 0; + a5 = 4; + a21 = 12; + a9 = 7; + a14 = 0; + return 23; + } else if(((((a16==10)&&(((a12==1)&&((a19==5)&&(input==5)))&&(a1==12)))&&!(a20==1))&&(!(a8==1)&&(((a23==1)&&((!(a4==1)&&(((a5==5)&&(((a13==1)&&(a9==8))&&(a21==11)))&&(a17==2)))||!(a23==1)))||!(a11==1))))){ + a19 = 1; + a10 = 1; + a5 = 6; + a20 = 1; + a1 = 14; + a16 = 7; + a14 = 1; + a28 = 0; + return -1; + } else if(((((!(a3==1)||(((a16==10)&&((a1==12)&&((a2==1)&&(a21==10))))&&(a17==2)))&&(a6==1))||!(a6==1))&&((((((((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5)))&&(input==6))&&!(a20==1))&&!(a18==1))&&(a19==4))&&!(a27==1))&&(a13==1)))){ + if((a26==1)){ + a22 = 0; + a9 = 7; + a5 = 4; + a16 = 9; + a13 = 0; + a21 = 12; + a1 = 13; + }else{ + a16 = 7; + a26 = 1; + a5 = 4; + a1 = 14; + a19 = 2; + a22 = 0; + a24 = 1; + a9 = 11; + a21 = 12; + } + return -1; + } else if(((((((a20==1)&&(input==3))&&(a12==1))&&(a5==5))&&!(a0==1))&&(!(a23==1)||((a16==11)&&(((!(a2==1)||(((((a17==2)&&((a19==4)&&(a2==1)))||(a18==1))&&(a21==12))&&!(a4==1)))&&(a9==8))&&(a1==12)))))){ + a7 = 0; + a23 = 1; + a19 = 1; + a21 = 10; + a5 = 4; + a16 = 7; + a9 = 7; + return -1; + } else if((((((((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5)))&&(input==6))&&!(a14==1))&&(a1==14))&&(a6==1))&&((((a19==1)&&(!(a13==1)||((a17==2)&&(!(a20==1)&&(((a13==1)&&((a2==1)&&(a6==1)))&&(a6==1))))))&&(a21==10))&&(a16==7)))){ + a1 = 12; + a9 = 7; + a7 = 0; + a20 = 1; + a18 = 0; + a6 = 1; + a5 = 4; + return -1; + } else if((((a13==1)&&((a19==2)&&((((input==4)&&(((((a1==12)&&(a5==5))&&(a9==11))||((a9==11)&&((a1==12)&&(a5==6))))||((a9==7)&&((a1==13)&&(a5==4)))))&&(a16==8))&&(a21==11))))&&((a4==1)||(!(a27==1)&&(((a20==1)&&(!(a7==1)&&(!(a11==1)||((a17==2)&&(a13==1)))))&&!(a24==1)))))){ + a2 = 1; + a11 = 1; + a19 = 1; + a1 = 12; + a16 = 7; + a9 = 7; + a21 = 10; + a5 = 4; + return -1; + } else if(((((a2==1)&&((!(a14==1)&&(((((a1==13)&&(a5==5))&&(a9==7))||(((a9==11)&&((a1==12)&&(a5==6)))||((a9==7)&&((a1==13)&&(a5==4)))))&&(input==6)))&&!(a20==1)))&&(a28==1))&&((!(a27==1)&&(((a17==2)&&((a16==7)&&((a19==5)&&((a12==1)||!(a13==1)))))&&!(a0==1)))&&(a21==12)))){ + a1 = 13; + a16 = 9; + a3 = 1; + a14 = 0; + a21 = 11; + a20 = 1; + a5 = 5; + a9 = 8; + a19 = 3; + return 25; + } else if((((a5==6)&&((((a1==13)&&(a23==1))&&(a28==1))&&(a28==1)))&&((a19==4)&&((a21==11)&&(((a3==1)&&(!(a20==1)&&(!(a14==1)&&((((a9==11)&&((a16==8)&&(input==1)))&&(a28==1))&&(a17==2)))))&&(a11==1)))))){ + a7 = 0; + a20 = 1; + a19 = 1; + a16 = 7; + a3 = 1; + a4 = 0; + a21 = 12; + a9 = 7; + a1 = 14; + a5 = 4; + return 21; + } else if(((((a11==1)&&((a21==11)&&((!(a14==1)&&((a17==2)&&((input==5)&&(a5==6))))&&(a9==8))))&&(a12==1))&&(((a7==1)||(((a20==1)&&((a1==12)&&(((a16==7)&&(a23==1))||(a24==1))))&&(a19==4)))||!(a3==1)))){ + a6 = 1; + a19 = 1; + a5 = 4; + a2 = 1; + a18 = 0; + a9 = 7; + a21 = 10; + return -1; + } else if((((a19==5)&&((a1==12)&&((!(a14==1)&&((a17==2)&&((a9==8)&&((!(a4==1)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&!(a4==1))&&!(a8==1)))&&(a2==1)))))&&(a11==1))))&&((a16==9)&&(!(a20==1)&&((a28==1)&&(a21==11)))))){ + if((a4==1)){ + a16 = 8; + a12 = 0; + a9 = 9; + a1 = 14; + a24 = 1; + a19 = 4; + a5 = 4; + a27 = 1; + }else{ + a1 = 13; + a19 = 2; + a9 = 10; + a5 = 5; + a10 = 0; + a29 = 0; + a20 = 1; + a15 = 0; + } + return 21; + } else if(((!(a7==1)&&(((a19==5)&&((((((a11==1)&&(a1==14))&&(a17==2))&&!(a7==1))&&(a2==1))&&(a16==7)))&&(a21==10)))&&(((!(a26==1)&&(((((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(input==4))&&(a20==1)))&&!(a27==1))&&(a28==1)))){ + a2 = 1; + a19 = 1; + a0 = 0; + a1 = 12; + a9 = 7; + a5 = 4; + a14 = 0; + return -1; + } else if(((((a11==1)&&((a1==13)&&((a20==1)&&((a23==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&!(a27==1))))))&&(a6==1))&&((a24==1)||((a16==9)&&((a9==9)&&((a17==2)&&((a21==10)&&(((a11==1)&&(a19==2))||(a0==1))))))))){ + a16 = 7; + a6 = 1; + a14 = 0; + a23 = 1; + a5 = 5; + return 23; + } else if((((a14==1)||((a1==13)&&((!(a28==1)||((a17==2)&&((((a2==1)&&(a16==10))&&(a28==1))&&(a19==5))))&&(a5==4))))&&(!(a26==1)&&(((((a21==12)&&((input==1)&&(a9==11)))&&!(a27==1))&&!(a20==1))&&!(a7==1))))){ + a16 = 7; + a19 = 2; + a27 = 1; + a21 = 10; + a1 = 12; + a20 = 1; + a9 = 7; + a18 = 1; + a25 = 1; + return 21; + } else if(((((a11==1)&&((a11==1)&&((a21==11)&&((!(a0==1)&&((a5==5)&&(((a17==2)&&(input==4))&&(a3==1))))&&(a20==1)))))&&(a19==2))&&((((((a6==1)||!(a3==1))&&(a9==10))||!(a12==1))&&(a16==11))&&(a1==14)))){ + a1 = 12; + a16 = 7; + a21 = 10; + a23 = 1; + a5 = 4; + a19 = 1; + a26 = 0; + a27 = 0; + a9 = 7; + return -1; + } else if(((((a17==2)&&((a11==1)&&((((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4)))&&(input==6))&&(a21==10))))&&(a16==8))&&(!(a6==1)||(((a1==14)&&((!(a13==1)||((!(a28==1)||((a11==1)&&(a20==1)))||(a7==1)))&&(a19==3)))&&(a23==1))))){ + a12 = 1; + a5 = 4; + a24 = 0; + a27 = 0; + a9 = 7; + a1 = 12; + a16 = 7; + a19 = 1; + return -1; + } else if((((a17==2)&&(((((!(a6==1)&&(a6==1))&&!(a6==1))&&(a24==1))&&(a16==10))&&(a1==12)))&&(((a20==1)&&((!(a3==1)&&(((a19==1)&&((input==6)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))))&&!(a13==1)))&&(a27==1)))&&(a21==11)))){ + a19 = 3; + a9 = 10; + a3 = 0; + a21 = 12; + a22 = 1; + a16 = 8; + a5 = 5; + a11 = 0; + return 21; + } else if((((a28==1)&&((((a17==2)&&(!(a27==1)&&(a13==1)))&&(a9==11))||(a27==1)))&&((a6==1)&&((((!(a14==1)&&(((a16==11)&&(((input==1)&&((a5==5)||(a5==6)))&&(a1==13)))&&(a21==10)))&&!(a0==1))&&(a20==1))&&(a19==4))))){ + a28 = 1; + a23 = 1; + a5 = 4; + a9 = 10; + a16 = 10; + a13 = 1; + a21 = 12; + a19 = 5; + a1 = 12; + return 25; + } else if((((((a16==8)&&((a17==2)&&((a1==13)&&((!(a18==1)&&((a9==8)&&(((a5==4)||(a5==5))&&(input==1))))&&!(a7==1)))))&&(a13==1))&&!(a0==1))&&(((a19==2)&&((((a24==1)||(a6==1))&&!(a20==1))&&(a21==11)))&&!(a7==1)))){ + a21 = 10; + a16 = 7; + a8 = 0; + a9 = 7; + a26 = 0; + a5 = 4; + a19 = 1; + a20 = 1; + a1 = 12; + return -1; + } else if((((a19==2)&&((a13==1)&&(!(a26==1)&&((((a9==10)&&((a20==1)&&((a17==2)&&((input==3)&&((a5==5)||(a5==6))))))&&(a1==14))&&!(a0==1)))))&&(((a16==7)&&((a21==11)&&(((a4==1)||(a3==1))&&(a11==1))))&&!(a4==1)))){ + a8 = 0; + a5 = 4; + a1 = 12; + a26 = 0; + a23 = 1; + a19 = 1; + a9 = 7; + a21 = 10; + return -1; + } else if((((a28==1)&&(((((a21==10)&&((a20==1)&&(((a17==2)&&(input==6))&&!(a4==1))))&&(a1==13))&&(a12==1))&&(a13==1)))&&(((((a19==3)&&(((a13==1)&&(a16==7))&&(a5==4)))&&(a9==8))||!(a23==1))&&!(a14==1)))){ + a1 = 12; + a3 = 1; + a19 = 1; + a21 = 11; + a9 = 10; + a7 = 0; + a11 = 1; + return 26; + } else if(((((a19==4)&&(!(a18==1)&&((!(a24==1)&&(!(a20==1)&&((a21==12)&&((((input==1)&&((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a5==4)&&(a9==9))))&&(a2==1))&&(a12==1)))))&&(a1==12))))&&(a17==2))&&(((!(a27==1)&&(a6==1))&&!(a24==1))&&(a16==8)))){ + a9 = 9; + a21 = 10; + a23 = 0; + a16 = 7; + a19 = 1; + a3 = 0; + a1 = 14; + a29 = 1; + a20 = 1; + a5 = 6; + return -1; + } else if(((((a3==1)&&((a16==11)&&((a1==12)&&((input==4)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))))))&&(a21==12))&&((a2==1)&&((a20==1)&&((a27==1)||(((a19==5)&&(((a17==2)&&((a6==1)&&!(a8==1)))&&(a13==1)))&&(a2==1))))))){ + a21 = 10; + a9 = 7; + a5 = 4; + a16 = 7; + a19 = 1; + a3 = 1; + a13 = 1; + return -1; + } else if((((a28==1)&&(((a12==1)&&((a21==12)&&(((((a5==5)&&((a17==2)&&(((input==5)&&(a19==2))&&(a9==10))))&&(a23==1))&&!(a14==1))&&(a20==1))))&&(a1==14)))&&(((a7==1)||((a28==1)&&(a16==10)))||(a27==1)))){ + if((a3==1)){ + a1 = 12; + a16 = 8; + a14 = 0; + a5 = 6; + a19 = 5; + a7 = 0; + a20 = 0; + a0 = 0; + a21 = 10; + }else{ + a12 = 1; + a11 = 1; + a23 = 1; + a16 = 7; + a21 = 10; + } + return 21; + } else if((((a17==2)&&((a19==1)&&((a28==1)&&((a16==8)&&((((a5==5)||(a5==6))&&(input==6))&&(a9==11))))))&&(((a20==1)&&(!(a27==1)&&((((a27==1)||(((a21==12)&&(a23==1))||(a4==1)))&&(a1==12))||(a27==1))))||!(a3==1)))){ + a27 = 0; + a1 = 14; + a9 = 10; + a19 = 4; + a21 = 11; + a16 = 10; + a8 = 0; + a5 = 6; + a2 = 1; + return 25; + } else if(((((((!(a14==1)&&(!(a24==1)&&(((a17==2)&&((a21==11)&&(input==5)))&&!(a26==1))))&&(a19==2))&&(a9==10))&&(a1==14))&&(a23==1))&&(((((a16==8)&&(!(a12==1)||(a11==1)))&&(a5==6))&&(a20==1))||!(a28==1)))){ + a28 = 1; + a18 = 0; + a9 = 7; + a21 = 10; + a1 = 12; + a19 = 1; + a16 = 7; + a5 = 4; + a7 = 0; + return -1; + } else if((((a16==11)&&(((a4==1)||(((a21==10)&&((((a27==1)||(((a6==1)&&(a17==2))&&(a3==1)))&&!(a20==1))&&(a19==3)))&&(a9==9)))||!(a13==1)))&&((a1==13)&&(((a28==1)&&((input==4)&&((a5==4)||(a5==5))))&&!(a14==1))))){ + if((a26==1)){ + a25 = 0; + a16 = 10; + a6 = 0; + a19 = 5; + a5 = 4; + a18 = 1; + }else{ + a21 = 12; + a9 = 10; + a1 = 12; + a19 = 2; + a5 = 4; + a20 = 1; + a25 = 0; + a28 = 0; + } + return -1; + } else if((((a1==14)&&(((a13==1)&&!(a27==1))&&!(a14==1)))&&(((a17==2)&&((a21==10)&&(((a9==7)&&(((a20==1)&&(((a16==11)&&((((a5==4)||(a5==5))&&(input==1))&&(a3==1)))&&!(a0==1)))&&(a6==1)))&&!(a27==1))))&&(a19==5)))){ + a1 = 12; + a5 = 4; + a16 = 7; + a19 = 1; + a7 = 0; + a2 = 1; + return -1; + } else if((((!(a11==1)||((((((((a19==3)&&(a11==1))&&!(a20==1))&&(a17==2))&&(a21==10))||!(a6==1))&&(a16==8))&&(a2==1)))&&(a9==8))&&(!(a7==1)&&(((a5==4)&&((a2==1)&&((a1==12)&&(input==6))))&&(a28==1))))){ + a20 = 1; + a16 = 11; + a5 = 6; + a1 = 14; + a19 = 1; + a7 = 0; + a21 = 12; + a8 = 0; + a18 = 0; + return 25; + } else if(((((a1==12)&&((a16==11)&&((a23==1)&&((((!(a8==1)&&((a19==2)&&(((input==3)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(a13==1))))&&!(a4==1))&&!(a24==1))&&(a21==10)))))&&!(a26==1))&&((a17==2)&&(!(a20==1)&&(a3==1))))){ + a12 = 0; + a2 = 0; + a9 = 7; + a5 = 4; + a20 = 1; + a27 = 1; + a16 = 7; + return -1; + } else if(((!(a24==1)&&((a19==5)&&(((a5==4)&&(input==5))&&(a16==7))))&&((a17==2)&&((((a1==13)&&((((a11==1)&&((a21==11)&&((!(a2==1)||(a12==1))&&!(a0==1))))&&(a13==1))||(a0==1)))&&(a9==10))&&(a20==1))))){ + a5 = 5; + a21 = 12; + a9 = 9; + a3 = 1; + a24 = 0; + a19 = 2; + a14 = 0; + a16 = 8; + return 23; + } else if(((!(a20==1)&&(((a12==1)&&(a13==1))||(a7==1)))&&(((a17==2)&&(((a1==12)&&(((a21==11)&&((a19==2)&&((a12==1)&&(((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==6))&&!(a7==1)))))&&!(a0==1)))&&(a12==1)))&&(a16==7)))){ + a5 = 4; + a20 = 1; + a26 = 0; + a19 = 1; + a21 = 10; + a14 = 0; + a0 = 0; + a9 = 7; + return -1; + } else if(((((a16==8)&&((((!(a3==1)||(!(a24==1)&&(!(a2==1)||((a2==1)&&!(a27==1)))))||!(a6==1))&&(a17==2))&&(a19==5)))&&(a1==14))&&(((a9==7)&&((((input==3)&&((a5==5)||(a5==6)))&&(a21==11))&&!(a8==1)))&&!(a20==1)))){ + a16 = 9; + a18 = 1; + a4 = 1; + a19 = 4; + a5 = 5; + a1 = 12; + a21 = 10; + a0 = 1; + return -1; + } else if((((((a12==1)&&((a20==1)&&((input==5)&&((a5==5)||(a5==6)))))&&!(a27==1))&&!(a27==1))&&((((!(a3==1)||(((a19==1)&&(((a21==12)&&((a12==1)&&(a2==1)))&&(a16==7)))&&(a9==9)))&&(a17==2))&&(a1==12))||!(a2==1)))){ + a19 = 4; + a1 = 13; + a11 = 1; + a5 = 4; + a13 = 1; + a16 = 8; + return 25; + } else if((((a4==1)||((a13==1)&&(((!(a23==1)||(a2==1))&&!(a20==1))&&!(a24==1))))&&((((a17==2)&&((a28==1)&&((a12==1)&&((((a9==11)&&(((a5==4)||(a5==5))&&(input==3)))&&(a1==12))&&(a21==11)))))&&(a19==3))&&(a16==7)))){ + a5 = 4; + a19 = 1; + a18 = 0; + a0 = 0; + a6 = 1; + a21 = 10; + a9 = 7; + a20 = 1; + return -1; + } else if(((((((a17==2)&&((a9==10)&&(((a21==11)&&(((input==5)&&((a5==4)||(a5==5)))&&(a1==14)))&&(a12==1))))&&(a20==1))&&!(a27==1))&&!(a27==1))&&(((!(a4==1)&&(((a6==1)||!(a11==1))&&(a16==11)))&&(a19==3))||(a18==1)))){ + a5 = 4; + a28 = 1; + a23 = 1; + a19 = 2; + a1 = 12; + a9 = 11; + a21 = 12; + a11 = 1; + return 22; + } else if((((a17==2)&&((a19==5)&&(((a16==9)&&((a12==1)&&(((!(a24==1)&&(((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5)))&&(input==5)))&&(a11==1))&&(a12==1))))&&!(a14==1))))&&((((a21==11)&&((a2==1)&&(a1==14)))&&!(a20==1))||!(a3==1)))){ + a1 = 12; + a27 = 1; + a23 = 0; + a21 = 10; + a16 = 7; + a5 = 5; + a9 = 10; + a20 = 1; + a19 = 1; + a22 = 1; + return -1; + } else if(((!(a13==1)||(!(a0==1)&&(!(a28==1)||((a19==4)&&(((a0==1)||(a3==1))||(a8==1))))))&&((((a9==7)&&((((a1==14)&&(((input==1)&&((a5==4)||(a5==5)))&&(a3==1)))&&(a17==2))&&(a16==10)))&&(a21==10))&&!(a20==1)))){ + if((a27==1)){ + a29 = 0; + a20 = 1; + a14 = 1; + a16 = 7; + a19 = 1; + a5 = 6; + }else{ + a9 = 10; + a11 = 0; + a19 = 1; + a5 = 5; + a20 = 1; + a24 = 1; + a16 = 7; + a25 = 0; + } + return 25; + } else if((((a20==1)&&((((a9==9)&&(a12==1))||(a0==1))&&!(a7==1)))&&((a21==12)&&((((!(a7==1)&&(((a19==3)&&((a3==1)&&((a16==7)&&(((a5==5)||(a5==6))&&(input==6)))))&&(a2==1)))&&(a1==12))&&(a11==1))&&(a17==2))))){ + a12 = 1; + a5 = 5; + a21 = 10; + a19 = 4; + a16 = 9; + a24 = 0; + a1 = 14; + a9 = 7; + a0 = 0; + return 26; + } else if((((a17==2)&&((a16==11)&&((a20==1)&&(((((a2==1)&&(a2==1))||(a0==1))&&(a21==10))||(a7==1)))))&&(((a19==3)&&(!(a7==1)&&(((((((a5==5)&&(a1==13))&&(a9==11))||(((a5==6)&&(a1==13))&&(a9==11)))||((a9==7)&&((a5==4)&&(a1==14))))&&(input==5))&&!(a7==1))))&&!(a4==1)))){ + a1 = 12; + a19 = 1; + a0 = 0; + a16 = 7; + a5 = 4; + a9 = 7; + a6 = 1; + return -1; + } else if((((!(a20==1)&&((a0==1)||((((a17==2)&&(((a2==1)&&(a2==1))||!(a2==1)))&&(a3==1))&&(a1==14))))&&(a9==8))&&((((((((a5==4)||(a5==5))&&(input==6))&&(a16==8))&&!(a24==1))&&(a21==11))&&!(a7==1))&&(a19==5)))){ + if((a25==1)){ + a7 = 1; + a19 = 2; + a9 = 11; + a20 = 1; + a16 = 7; + a0 = 1; + a21 = 10; + a1 = 12; + a5 = 5; + a23 = 0; + }else{ + a19 = 2; + a22 = 0; + a20 = 1; + a9 = 7; + a21 = 10; + a1 = 12; + a10 = 0; + a5 = 5; + a3 = 0; + a16 = 7; + } + return 23; + } else if(((((a12==1)&&(!(a0==1)&&((a9==8)&&((a18==1)||((a11==1)&&(a1==13))))))&&(a21==11))&&(((!(a26==1)&&((a17==2)&&((((a19==5)&&((input==1)&&((a5==4)||(a5==5))))&&(a6==1))&&!(a24==1))))&&!(a20==1))&&(a16==9)))){ + if((a22==1)){ + a29 = 1; + a9 = 10; + a21 = 12; + a19 = 2; + a8 = 1; + a16 = 10; + a5 = 5; + a1 = 14; + }else{ + a19 = 1; + a21 = 10; + a5 = 6; + a6 = 0; + a20 = 1; + a0 = 1; + a1 = 12; + a7 = 1; + a16 = 7; + a9 = 9; + } + return -1; + } else if((((((((input==5)&&(a19==3))&&(a5==4))&&!(a8==1))&&!(a26==1))&&(a21==10))&&(((a17==2)&&((a6==1)&&(((((!(a20==1)&&((a6==1)||(a18==1)))&&(a9==9))&&!(a8==1))&&(a1==12))&&(a11==1))))&&(a16==7)))){ + a20 = 1; + a11 = 1; + a14 = 0; + a18 = 0; + a19 = 1; + a9 = 7; + return -1; + } else if(((((a21==11)&&((a20==1)&&(((!(a14==1)&&((a9==11)&&(a11==1)))&&(a2==1))||(a8==1))))&&(a1==12))&&((a16==10)&&((a17==2)&&(((a3==1)&&(!(a18==1)&&((a19==2)&&((input==1)&&((a5==4)||(a5==5))))))&&!(a24==1)))))){ + a16 = 9; + a5 = 4; + a0 = 0; + a19 = 3; + a14 = 0; + a21 = 12; + a9 = 10; + a27 = 0; + return 21; + } else if((((!(a18==1)&&(((a19==2)&&((input==5)&&(a9==11)))&&(a17==2)))&&(a1==14))&&((a12==1)&&((a26==1)||((((a16==9)&&((a21==10)&&(((a20==1)&&((a28==1)&&(a5==6)))&&!(a26==1))))&&(a3==1))||(a7==1)))))){ + a5 = 4; + a9 = 7; + a1 = 12; + a27 = 0; + a0 = 0; + a19 = 1; + a16 = 7; + return -1; + } else if((((a8==1)||(!(a0==1)&&(!(a28==1)||(((a16==8)&&(a23==1))&&(a19==4)))))&&(!(a7==1)&&((a1==14)&&((!(a27==1)&&(!(a26==1)&&((((((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a5==6)&&(a9==10))))&&(input==5))&&(a21==12))&&(a20==1))))&&(a17==2)))))){ + a13 = 1; + a16 = 10; + a1 = 13; + a27 = 0; + a9 = 9; + a5 = 6; + a23 = 1; + return 22; + } else if(((!(a0==1)&&((a6==1)&&((((((a21==10)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&(a1==14))&&(a19==5))&&!(a26==1)))&&(a9==10))&&(a3==1))&&!(a26==1))&&(a13==1))))&&((a16==8)&&(((a11==1)&&(a17==2))&&!(a20==1))))){ + a2 = 1; + a19 = 1; + a12 = 1; + a16 = 7; + a13 = 1; + a5 = 4; + a20 = 1; + a1 = 12; + a9 = 7; + return -1; + } else if(((((!(a7==1)&&((a12==1)&&(((a28==1)&&(a21==12))||!(a13==1))))||(a14==1))||(a4==1))&&((!(a7==1)&&((((a17==2)&&(((input==1)&&(((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))))&&(a19==1)))&&(a1==13))&&(a16==9)))&&!(a20==1)))){ + a16 = 7; + a5 = 4; + a21 = 11; + a9 = 10; + a26 = 1; + a15 = 1; + a6 = 0; + return -1; + } else if(((((a16==8)&&((a6==1)&&(((a21==11)&&(((a1==14)&&(input==5))&&(a11==1)))&&!(a27==1))))&&(a19==1))&&(((a5==4)&&(((((!(a18==1)&&(a12==1))&&(a17==2))&&!(a8==1))&&(a9==10))||!(a23==1)))&&(a20==1)))){ + a19 = 5; + a11 = 1; + a0 = 0; + a13 = 1; + a1 = 13; + a21 = 10; + return -1; + } else if((((a13==1)&&(!(a7==1)&&((a16==8)&&((a17==2)&&((!(a20==1)&&((input==5)&&(((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))))&&(a21==11))))))&&((a6==1)&&((((a19==1)&&((a1==13)&&((a26==1)||(a12==1))))&&(a13==1))||!(a3==1))))){ + a0 = 0; + a9 = 7; + a1 = 12; + a5 = 4; + a20 = 1; + a16 = 7; + a21 = 10; + a28 = 1; + a11 = 1; + return -1; + } else if((((a5==5)&&((((a19==3)&&((input==6)&&(a21==11)))&&!(a27==1))&&(a23==1)))&&((!(a27==1)&&((a28==1)&&((((!(a28==1)||((a20==1)&&((a13==1)&&(a13==1))))&&(a9==8))&&(a16==10))&&(a17==2))))&&(a1==14)))){ + a1 = 12; + a26 = 0; + a21 = 10; + a12 = 1; + a13 = 1; + a9 = 7; + a5 = 4; + a16 = 7; + a19 = 1; + return -1; + } else if((((!(a4==1)&&((!(a4==1)&&((((input==4)&&(((((a1==12)&&(a5==4))&&(a9==7))&&(a19==3))||((((a9==11)&&((a5==5)&&(a1==14)))&&(a19==2))||((a19==2)&&((a9==11)&&((a1==14)&&(a5==6)))))))&&(a16==8))&&(a21==11)))&&(a20==1)))&&!(a24==1))&&((a0==1)||((a3==1)&&((a17==2)&&((a6==1)&&(a28==1))))))){ + a21 = 10; + a11 = 1; + a6 = 1; + a14 = 0; + a1 = 12; + a5 = 4; + a16 = 7; + a9 = 7; + a19 = 1; + return -1; + } else if(((((a16==7)&&((a19==4)&&((a9==9)&&(!(a24==1)&&((a4==1)||((a21==11)&&((a17==2)&&(!(a4==1)&&(a28==1)))))))))&&(a1==12))&&((!(a4==1)&&((a2==1)&&(((a5==5)&&(input==3))&&!(a7==1))))&&(a20==1)))){ + a9 = 7; + a21 = 10; + a18 = 0; + a19 = 1; + a3 = 1; + a5 = 4; + a28 = 1; + return -1; + } else if((((a5==5)&&(!(a11==1)||(((a1==14)&&((a9==8)&&((a11==1)&&(a19==5))))||(a7==1))))&&(((a23==1)&&((a16==9)&&((((((input==6)&&(a21==10))&&!(a18==1))&&(a2==1))&&(a17==2))&&!(a20==1))))&&(a12==1)))){ + if((a14==1)){ + a9 = 10; + a16 = 10; + a19 = 1; + a10 = 0; + a22 = 0; + a1 = 12; + a3 = 0; + a21 = 12; + }else{ + a19 = 1; + a1 = 12; + a5 = 4; + a6 = 0; + a15 = 1; + a20 = 1; + a9 = 7; + a16 = 7; + a3 = 0; + } + return 21; + } else if((((a1==13)&&((((a11==1)&&(((a17==2)&&(a12==1))&&!(a8==1)))&&!(a20==1))||!(a6==1)))&&((((((((input==6)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9))))&&(a11==1))&&!(a26==1))&&(a12==1))&&(a21==11))&&(a19==3))&&(a16==10)))){ + a5 = 5; + a22 = 0; + a26 = 1; + a16 = 7; + a1 = 14; + a18 = 1; + a21 = 10; + a20 = 1; + a9 = 9; + a19 = 1; + return -1; + } else if(((!(a23==1)||((((a20==1)&&((a6==1)||(a27==1)))&&(a16==7))&&(a3==1)))&&((a3==1)&&((a11==1)&&(((a1==12)&&((a21==12)&&((((input==6)&&(((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))))&&(a19==4))&&(a3==1))))&&(a17==2)))))){ + a5 = 4; + a16 = 8; + a6 = 1; + a13 = 1; + a21 = 10; + a9 = 10; + a19 = 5; + return 22; + } else if((((a16==9)&&(!(a18==1)&&((!(a13==1)||(!(a3==1)||((a23==1)||(a24==1))))&&(a5==4))))&&(((a21==10)&&((a13==1)&&((a9==11)&&(((a12==1)&&(((a1==12)&&(input==3))&&(a19==4)))&&(a20==1)))))&&(a17==2)))){ + a14 = 0; + a19 = 1; + a27 = 0; + a16 = 7; + a6 = 1; + a9 = 7; + return -1; + } else if((((a21==12)&&(((a9==7)&&(input==5))&&!(a7==1)))&&((((((a19==4)&&(((((a17==2)&&(((a12==1)&&(a11==1))&&!(a14==1)))||!(a23==1))&&(a28==1))&&(a16==8)))&&(a20==1))&&(a23==1))&&(a5==4))&&(a1==14)))){ + a9 = 11; + a14 = 0; + a26 = 0; + a19 = 2; + a7 = 0; + return -1; + } else if(((((a19==4)&&(((((a12==1)&&((a12==1)&&(((((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(input==3))&&(a16==11))))&&(a20==1))&&(a21==11))&&(a11==1)))&&(a17==2))&&((a1==13)&&(((!(a23==1)||(a12==1))||(a26==1))&&(a12==1))))){ + a21 = 12; + a19 = 3; + a16 = 9; + a1 = 12; + a9 = 10; + a4 = 0; + a26 = 0; + a13 = 1; + a5 = 6; + return 21; + } else if(((!(a6==1)||((((a9==11)&&(a3==1))&&(a16==11))&&(a17==2)))&&(((a23==1)&&(!(a24==1)&&(!(a24==1)&&(!(a24==1)&&((a1==14)&&(((a19==3)&&((a21==10)&&((input==3)&&((a5==4)||(a5==5)))))&&!(a20==1)))))))&&(a2==1)))){ + a3 = 0; + a16 = 7; + a20 = 1; + a5 = 6; + a1 = 12; + a19 = 1; + a2 = 0; + a22 = 0; + return -1; + } else if(((((((((a21==10)&&((!(a6==1)||(a6==1))&&!(a20==1)))||(a4==1))&&!(a0==1))&&(a16==7))&&(a1==13))&&(a5==4))&&(((a3==1)&&((a12==1)&&((((input==5)&&(a17==2))&&(a19==4))&&!(a4==1))))&&(a9==11)))){ + a1 = 12; + a18 = 0; + a24 = 0; + a9 = 8; + a23 = 1; + a19 = 5; + return 23; + } else if((((((a17==2)&&(((a2==1)&&(((a21==11)&&(input==1))&&!(a0==1)))&&(a19==5)))&&(a1==12))&&(a20==1))&&(((!(a27==1)&&(((a12==1)&&((a16==11)&&((a11==1)||!(a3==1))))&&(a9==7)))&&(a28==1))&&(a5==6)))){ + a8 = 0; + a12 = 1; + a1 = 14; + a21 = 10; + a26 = 0; + a5 = 4; + a9 = 10; + a19 = 2; + a16 = 9; + return 21; + } else if(((((a21==12)&&(((a9==7)&&(((a17==2)&&(input==3))&&!(a4==1)))&&!(a26==1)))&&!(a4==1))&&(((a6==1)&&(!(a20==1)&&(((((a1==14)&&((a16==8)&&(a23==1)))&&(a19==2))&&!(a26==1))&&(a5==6))))&&(a6==1)))){ + a1 = 12; + a21 = 10; + a9 = 9; + a25 = 0; + a24 = 1; + a5 = 5; + a16 = 7; + a20 = 1; + a28 = 0; + return -1; + } else if(((((!(a18==1)&&((a28==1)&&(((((a20==1)&&(input==4))&&!(a24==1))&&(a16==7))&&(a21==10))))&&!(a26==1))&&(a1==14))&&(((a19==5)&&(((a17==2)&&(!(a11==1)||((a28==1)||(a18==1))))&&(a5==6)))&&(a9==9)))){ + a19 = 4; + a0 = 0; + a9 = 7; + a2 = 1; + a27 = 0; + a21 = 12; + return 26; + } else if(((((((!(a24==1)&&(!(a14==1)&&(((a5==4)||(a5==5))&&(input==4))))&&!(a0==1))&&(a17==2))&&(a9==8))&&(a19==1))&&((((a1==12)&&(!(a7==1)&&((a16==10)&&(((a8==1)||(a13==1))||!(a6==1)))))&&!(a20==1))&&(a21==11)))){ + a5 = 4; + a11 = 0; + a16 = 7; + a26 = 1; + a1 = 13; + a9 = 7; + a21 = 10; + a19 = 2; + a15 = 1; + a20 = 1; + return -1; + } else if((((((!(a27==1)&&((a16==10)&&(input==3)))&&(a17==2))&&(a20==1))&&!(a26==1))&&((a6==1)&&((a21==12)&&((a3==1)&&(((a19==2)&&((a5==5)&&((((a1==13)&&(a28==1))&&(a9==7))||!(a11==1))))||!(a13==1))))))){ + a9 = 9; + a21 = 10; + a16 = 7; + a18 = 0; + a27 = 0; + a2 = 1; + return -1; + } else if(((((a11==1)&&((a16==10)&&(!(a14==1)&&((a17==2)&&(!(a14==1)&&((a23==1)&&(((input==1)&&((a5==5)||(a5==6)))&&(a23==1))))))))&&(a21==12))&&((a9==11)&&((((a1==14)&&((a12==1)&&(a19==3)))&&!(a20==1))&&(a11==1))))){ + a21 = 10; + a11 = 0; + a28 = 0; + a19 = 1; + a15 = 0; + a5 = 5; + a16 = 7; + a9 = 7; + a20 = 1; + return -1; + } else if((((((a11==1)&&((a12==1)&&(((a16==11)&&((a21==12)&&(a12==1)))&&(a11==1))))||!(a11==1))||!(a3==1))&&((a20==1)&&((a19==3)&&((((a1==14)&&((input==3)&&(((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8))))))&&(a17==2))&&!(a18==1)))))){ + a9 = 7; + a16 = 7; + a21 = 10; + a23 = 1; + a1 = 12; + a18 = 0; + a5 = 4; + a19 = 1; + a8 = 0; + return -1; + } else if(((((!(a4==1)&&((a11==1)&&((a11==1)&&((((a17==2)&&(((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11)))&&(input==5)))&&(a1==14))&&(a3==1)))))&&(a19==2))&&(a16==11))&&((a20==1)&&(!(a27==1)&&((a21==12)&&(!(a8==1)&&(a13==1))))))){ + a21 = 10; + a11 = 1; + a9 = 10; + a23 = 1; + a12 = 1; + a5 = 4; + a16 = 9; + return 21; + } else if(((((((((a21==11)&&(((a5==4)||(a5==5))&&(input==5)))&&!(a24==1))&&!(a0==1))&&(a16==8))&&!(a20==1))&&(a19==2))&&((a1==14)&&(((!(a3==1)||((a4==1)||((a17==2)&&(!(a27==1)&&(a11==1)))))&&(a9==11))||(a4==1))))){ + a9 = 9; + a0 = 0; + a7 = 0; + a16 = 7; + a20 = 1; + a5 = 5; + a21 = 10; + a2 = 1; + a1 = 13; + return 25; + } else if(((((!(a0==1)&&((a5==5)&&(!(a13==1)||(!(a7==1)&&(a11==1)))))&&(a17==2))&&(a19==1))&&((a28==1)&&((!(a14==1)&&((a1==14)&&((a23==1)&&((((input==5)&&(a21==11))&&(a16==8))&&!(a20==1)))))&&(a9==7))))){ + a19 = 5; + a4 = 0; + a23 = 1; + a9 = 9; + a1 = 12; + a20 = 1; + a24 = 0; + a21 = 10; + return 26; + } else if(((!(a24==1)&&((a1==13)&&((a9==11)&&((a20==1)&&((((a16==10)&&(((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a26==1)))&&(a23==1))&&(a19==1))))))&&((a14==1)||((a24==1)||(((!(a28==1)||(a11==1))&&(a21==11))&&(a17==2)))))){ + a0 = 0; + a1 = 12; + a16 = 7; + a9 = 7; + a3 = 1; + a6 = 1; + a21 = 10; + a5 = 4; + return -1; + } else if((((((((a3==1)&&(a9==8))&&(a16==11))&&(a20==1))&&(a17==2))&&!(a7==1))&&((a19==4)&&((a2==1)&&(((a28==1)&&(!(a7==1)&&(((a1==12)&&((a11==1)&&(((a5==5)||(a5==6))&&(input==1))))&&(a21==11))))&&(a28==1)))))){ + a1 = 14; + a27 = 0; + a7 = 0; + a5 = 4; + a0 = 0; + a21 = 10; + a9 = 11; + return 21; + } else if((((a5==4)&&((a1==14)&&(!(a20==1)&&((((input==3)&&(a9==8))&&(a17==2))&&!(a24==1)))))&&((a16==8)&&(((a19==2)&&(!(a0==1)&&((a8==1)||((!(a4==1)&&((a21==10)&&(a23==1)))&&!(a0==1)))))&&!(a0==1))))){ + a16 = 7; + a6 = 1; + a8 = 0; + a18 = 0; + a9 = 7; + a20 = 1; + a1 = 12; + a19 = 1; + return -1; + } else if((((a21==10)&&(((a13==1)&&(((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a20==1)))&&(a19==2)))&&(!(a28==1)||(!(a6==1)||((a26==1)||((!(a6==1)||((a9==9)&&((((a12==1)&&(a16==8))||!(a6==1))&&(a1==13))))&&(a17==2))))))){ + a16 = 7; + a9 = 7; + a19 = 1; + a8 = 0; + a1 = 12; + a5 = 4; + a0 = 0; + a3 = 1; + return -1; + } else if((((a2==1)&&(((!(a18==1)&&((input==3)&&(((a9==7)&&((a1==14)&&(a5==5)))||((((a5==6)&&(a1==13))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==14)))))))&&(a21==10))&&(a17==2)))&&((a19==2)&&((((((a3==1)&&((a16==10)&&(a12==1)))&&(a2==1))&&!(a8==1))||(a24==1))&&!(a20==1))))){ + a5 = 6; + a1 = 12; + a13 = 0; + a15 = 0; + a21 = 12; + a19 = 1; + a9 = 11; + a28 = 0; + return 25; + } else if((((a17==2)&&((((a3==1)&&(((a2==1)&&(a9==8))&&(a1==13)))&&(a16==11))&&!(a0==1)))&&((((a20==1)&&((!(a7==1)&&((!(a4==1)&&((a21==12)&&(input==1)))&&!(a7==1)))&&!(a24==1)))&&(a19==5))&&(a5==6)))){ + a9 = 7; + a28 = 1; + a1 = 12; + a16 = 7; + a8 = 0; + a5 = 4; + a21 = 10; + a27 = 0; + a19 = 1; + return -1; + } else if((((a5==5)&&(((!(a27==1)&&((a28==1)&&(((a17==2)&&((input==5)&&(a9==9)))&&!(a18==1))))&&(a13==1))&&(a16==10)))&&((((a21==12)&&((((a1==14)&&(a23==1))||!(a28==1))&&(a19==5)))||!(a2==1))&&(a20==1)))){ + a21 = 10; + a12 = 1; + a16 = 7; + a5 = 4; + a0 = 0; + a1 = 12; + a19 = 1; + a4 = 0; + a9 = 7; + return -1; + } else if(((((a4==1)||((a21==10)&&((a24==1)||((a13==1)&&(a16==7)))))&&!(a4==1))&&(((((a17==2)&&((a13==1)&&((((a19==3)&&(((a1==14)&&(a5==6))&&(a9==11)))||((a19==4)&&((a9==7)&&((a1==12)&&(a5==4)))))&&(input==3))))&&!(a20==1))&&!(a4==1))&&!(a7==1)))){ + a19 = 1; + a9 = 11; + a21 = 11; + a1 = 14; + a26 = 0; + a5 = 5; + a20 = 1; + a0 = 0; + a16 = 10; + return 22; + } else if(((!(a26==1)&&((a21==11)&&((!(a8==1)&&(!(a8==1)&&((a13==1)&&((input==3)&&((((a1==13)&&(a5==4))&&(a9==7))||(((a9==11)&&((a5==5)&&(a1==12)))||((a9==11)&&((a1==12)&&(a5==6)))))))))&&(a19==3))))&&(((a6==1)&&((a17==2)&&(((a20==1)&&(a11==1))||(a0==1))))&&(a16==8)))){ + a14 = 0; + a5 = 4; + a1 = 12; + a16 = 7; + a9 = 7; + a21 = 10; + a3 = 1; + a19 = 1; + return -1; + } else if(((((((((a5==4)||(a5==5))&&(input==3))&&(a17==2))&&(a28==1))&&!(a7==1))&&(a9==8))&&((((a18==1)||((((a21==12)&&((((a2==1)&&(a16==10))&&(a1==13))&&(a19==2)))||!(a3==1))||!(a2==1)))&&(a20==1))||(a7==1)))){ + a21 = 10; + a16 = 7; + a1 = 12; + a5 = 4; + a4 = 0; + a19 = 1; + a28 = 1; + a9 = 7; + a18 = 0; + return -1; + } else if((((((((!(a6==1)||((a12==1)&&!(a27==1)))&&(a21==12))&&(a23==1))&&(a6==1))&&(a17==2))&&(a19==5))&&((a20==1)&&(((a13==1)&&((a9==11)&&((a1==12)&&(((a16==7)&&(input==5))&&(a13==1)))))&&(a5==6))))){ + a13 = 1; + a21 = 11; + a16 = 9; + a1 = 13; + a0 = 0; + a9 = 10; + a19 = 4; + a5 = 5; + a3 = 1; + return 21; + } else if(((((a19==5)&&((a12==1)&&(!(a0==1)&&((!(a7==1)&&((a20==1)&&((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==4))))&&!(a18==1)))))&&(a16==8))&&((a1==14)&&(((a17==2)&&((a0==1)||((a12==1)||(a0==1))))&&(a21==12))))){ + if((a14==1)){ + a21 = 10; + a6 = 1; + a5 = 4; + a4 = 0; + a12 = 1; + a9 = 11; + a20 = 0; + a19 = 2; + }else{ + a20 = 0; + a5 = 6; + a1 = 12; + a9 = 7; + a3 = 1; + a18 = 0; + a23 = 1; + a19 = 4; + a21 = 11; + } + return -1; + } else if((((a11==1)&&(((a12==1)&&(a19==3))&&(a17==2)))&&((a13==1)&&((a13==1)&&(!(a20==1)&&(((a1==13)&&((a6==1)&&(((a21==10)&&(((input==5)&&(((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))&&!(a0==1)))&&!(a0==1))))&&(a16==9))))))){ + a20 = 1; + a16 = 7; + a28 = 0; + a5 = 6; + a9 = 10; + a1 = 12; + a29 = 1; + a19 = 2; + return 21; + } else if((((!(a14==1)&&(((((((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a5==4)&&(a9==10)))&&(input==4))&&!(a4==1))&&!(a20==1))&&!(a4==1))&&(a17==2)))&&(a2==1))&&(((a19==4)&&((a1==14)&&((a21==10)&&((!(a12==1)||(a12==1))&&(a16==9)))))&&!(a18==1)))){ + if((a12==1)){ + a5 = 4; + a18 = 1; + a9 = 10; + a19 = 1; + a21 = 12; + a16 = 7; + a3 = 0; + a6 = 0; + }else{ + a16 = 7; + a9 = 8; + a20 = 1; + a5 = 5; + a18 = 1; + a14 = 1; + a1 = 13; + a19 = 1; + } + return -1; + } else if((((((a6==1)&&((((a20==1)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&(a19==5))&&(a16==10))&&!(a27==1)))&&!(a27==1))&&(a9==10)))&&(a28==1))&&(a13==1))&&(((a17==2)&&((a21==10)&&((a18==1)||(a2==1))))&&(a1==12)))){ + a9 = 9; + a12 = 1; + a27 = 0; + a21 = 12; + a13 = 1; + a5 = 6; + a1 = 14; + a16 = 9; + return -1; + } else if((((a21==11)&&((((a3==1)&&(a19==5))&&(a3==1))&&(a13==1)))&&(!(a26==1)&&((((a20==1)&&(((a28==1)&&(((a1==14)&&((input==4)&&((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9)))))&&(a17==2)))&&(a16==9)))&&!(a26==1))&&(a3==1))))){ + a21 = 10; + a27 = 0; + a1 = 12; + a26 = 0; + a9 = 7; + a24 = 0; + a16 = 7; + a5 = 4; + a19 = 1; + return -1; + } else if((((a1==14)&&((a17==2)&&((a2==1)&&((((a12==1)&&(a21==11))||!(a11==1))&&(a19==5)))))&&((a16==8)&&((!(a24==1)&&(!(a20==1)&&((!(a7==1)&&((((a5==5)||(a5==6))&&(input==3))&&!(a8==1)))&&(a2==1))))&&(a9==11))))){ + if((a25==1)){ + a6 = 0; + a29 = 0; + a21 = 12; + a5 = 5; + a24 = 1; + a19 = 4; + a9 = 8; + a16 = 9; + }else{ + a10 = 1; + a5 = 6; + a19 = 2; + a23 = 0; + a26 = 1; + a1 = 13; + a16 = 9; + a20 = 1; + } + return -1; + } else if(((((a17==2)&&((((a13==1)&&(!(a7==1)&&(!(a4==1)&&((((a16==9)&&((input==4)&&((a5==5)||(a5==6))))&&(a1==13))&&(a13==1)))))&&(a9==11))&&(a19==4)))&&(a20==1))&&((a21==10)&&(((a28==1)||(a7==1))||!(a13==1))))){ + a4 = 0; + a16 = 7; + a19 = 1; + a27 = 0; + a24 = 0; + a5 = 4; + a9 = 7; + a1 = 12; + return -1; + } else if(((!(a24==1)&&(!(a8==1)&&((((((a12==1)&&((input==1)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))))&&(a20==1))&&(a17==2))&&(a16==9))&&(a21==10))))&&(!(a3==1)||((!(a6==1)||(((a6==1)&&(a19==5))&&(a1==12)))&&(a11==1))))){ + a2 = 1; + a6 = 1; + a5 = 4; + a19 = 1; + a16 = 7; + a9 = 7; + a27 = 0; + return -1; + } else if((((!(a18==1)&&((a19==5)&&((a27==1)||((a13==1)&&(a9==10)))))||(a24==1))&&((a1==14)&&(!(a27==1)&&((!(a18==1)&&((((((a21==12)&&(input==1))&&(a17==2))&&(a5==5))&&(a16==10))&&!(a20==1)))&&(a6==1)))))){ + a29 = 0; + a19 = 2; + a3 = 0; + a5 = 4; + a9 = 7; + a7 = 1; + a1 = 13; + a21 = 11; + return -1; + } else if((((a21==12)&&((!(a14==1)&&(((a13==1)&&(((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&(a23==1)))&&(a16==10)))&&(a19==5)))&&(((a20==1)&&((((a1==12)&&(((a3==1)||(a0==1))&&!(a27==1)))&&(a17==2))||(a27==1)))&&(a9==11)))){ + a27 = 0; + a21 = 10; + a1 = 14; + a16 = 7; + a19 = 4; + a6 = 1; + a0 = 0; + a5 = 5; + return 25; + } else if((((a2==1)&&((a28==1)&&(((a16==10)&&((a1==12)&&((a5==4)&&(!(a8==1)&&(!(a20==1)&&((input==6)&&(a21==12)))))))&&(a6==1))))&&((a11==1)&&((a17==2)&&(((a19==4)&&((a13==1)&&(a9==11)))||!(a12==1)))))){ + a20 = 1; + a5 = 6; + a25 = 1; + a6 = 0; + a29 = 0; + a9 = 7; + a21 = 10; + a1 = 14; + return -1; + } else if((((a11==1)&&(((a12==1)&&((a1==14)&&((a23==1)&&(((((input==4)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(a17==2))&&(a19==5))&&!(a27==1)))))&&!(a20==1)))&&((a6==1)&&((a16==8)&&(((a21==11)&&(a6==1))&&(a12==1)))))){ + a19 = 1; + a2 = 0; + a16 = 7; + a20 = 1; + a7 = 1; + a21 = 10; + a5 = 6; + a1 = 12; + a24 = 1; + a9 = 10; + return -1; + } else if(((!(a0==1)&&((((a16==10)&&((!(a27==1)&&(((a9==9)&&((input==3)&&((a5==5)||(a5==6))))&&(a17==2)))&&(a19==4)))&&!(a14==1))&&(a12==1)))&&((a24==1)||(((a21==10)&&(!(a20==1)&&((a1==14)&&(a6==1))))||!(a11==1))))){ + a16 = 7; + a20 = 1; + a15 = 0; + a5 = 6; + a29 = 1; + a11 = 0; + a19 = 1; + return 25; + } else if(((!(a26==1)&&((a1==14)&&((((a3==1)&&((a20==1)&&((a21==12)&&(a6==1))))||!(a3==1))||!(a13==1))))&&((a19==4)&&((a16==8)&&(!(a24==1)&&(!(a7==1)&&((a17==2)&&((input==4)&&((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4))))))))))){ + a19 = 3; + a5 = 5; + a9 = 11; + a13 = 1; + a11 = 1; + return -1; + } else if((((a2==1)&&((((a17==2)&&(!(a20==1)&&((a13==1)&&((a5==5)&&(((a1==14)&&(input==5))&&(a9==7))))))&&!(a26==1))&&(a28==1)))&&(((a21==11)&&((((a19==1)&&(a2==1))||!(a3==1))&&(a16==7)))||!(a6==1)))){ + a20 = 1; + a21 = 10; + a5 = 4; + a19 = 2; + a1 = 13; + a26 = 0; + a9 = 9; + a2 = 1; + return -1; + } else if((((a17==2)&&((!(a3==1)&&(((a0==1)&&((a2==1)&&(a14==1)))&&!(a3==1)))&&(a16==9)))&&(((a1==12)&&((((a9==10)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a20==1))&&!(a2==1)))&&(a21==10))&&!(a28==1)))&&(a19==2)))){ + a16 = 10; + a1 = 13; + a5 = 5; + a7 = 1; + a19 = 1; + a2 = 0; + a21 = 11; + a22 = 0; + return -1; + } else if(((((a17==2)&&((a27==1)||((!(a3==1)||((a16==9)&&(a13==1)))&&(a19==4))))||(a4==1))&&(((((((((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&!(a20==1))&&(a1==12))&&(a9==9))&&(a21==11))&&(a28==1))&&!(a7==1))&&!(a26==1)))){ + a9 = 10; + a10 = 1; + a20 = 1; + a16 = 11; + a27 = 1; + a5 = 6; + return 21; + } else if((((a16==10)&&(!(a20==1)&&((a19==4)&&((((a23==1)&&(a17==2))||!(a2==1))&&(a6==1)))))&&(((a2==1)&&(((a12==1)&&((a21==12)&&(((((a5==5)&&(a1==13))&&(a9==7))||(((a9==11)&&((a1==12)&&(a5==6)))||((a9==7)&&((a5==4)&&(a1==13)))))&&(input==4))))&&!(a14==1)))&&(a23==1)))){ + a19 = 1; + a0 = 1; + a5 = 5; + a1 = 13; + a9 = 11; + a25 = 0; + a21 = 10; + a16 = 7; + a29 = 0; + a20 = 1; + return -1; + } else if((((((a1==13)&&((a9==7)&&(!(a4==1)&&(((a5==5)||(a5==6))&&(input==1)))))&&(a21==11))&&!(a27==1))&&((a13==1)&&((a16==9)&&(((a19==4)&&((!(a20==1)&&((a26==1)||((a6==1)||(a4==1))))&&(a28==1)))&&(a17==2)))))){ + a27 = 1; + a1 = 14; + a25 = 0; + a21 = 12; + a5 = 5; + a19 = 1; + a10 = 0; + a16 = 10; + return 25; + } else if(((((a1==13)&&((((a16==11)&&(a2==1))&&(a19==3))||!(a13==1)))&&(a17==2))&&(((a12==1)&&((a13==1)&&(((a21==11)&&(((a13==1)&&((input==1)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))))&&(a20==1)))&&(a13==1))))&&!(a26==1)))){ + a1 = 12; + a16 = 7; + a19 = 1; + a5 = 4; + a11 = 1; + a21 = 10; + a7 = 0; + a23 = 1; + a9 = 7; + return -1; + } else if((((a19==4)&&(((!(a20==1)&&((a16==8)&&((a17==2)&&((a11==1)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6)))))))&&(a9==7))&&(a12==1)))&&((!(a14==1)&&((a14==1)||(((a21==10)&&((a23==1)&&(a1==14)))&&(a13==1))))||(a7==1)))){ + a18 = 0; + a27 = 0; + a19 = 1; + a11 = 1; + a1 = 12; + a16 = 7; + a20 = 1; + a5 = 4; + return -1; + } else if((((a9==9)&&(!(a18==1)&&((a3==1)&&((a19==1)&&((a20==1)&&(!(a14==1)&&((input==5)&&((a5==4)||(a5==5)))))))))&&((a16==10)&&((a21==10)&&(!(a24==1)&&(((!(a27==1)&&((a23==1)&&(a13==1)))&&(a17==2))&&(a1==14))))))){ + a5 = 4; + a19 = 5; + a26 = 0; + a9 = 11; + a16 = 11; + a1 = 12; + a3 = 1; + return 22; + } else if((((a4==1)||(!(a26==1)&&((!(a18==1)&&((a1==12)&&(((a21==12)&&((a5==4)&&(a12==1)))&&(a9==7))))&&!(a0==1))))&&(!(a7==1)&&(((a19==4)&&((((input==4)&&(a20==1))&&(a16==8))&&(a17==2)))&&!(a0==1))))){ + a0 = 0; + a19 = 1; + a18 = 0; + a3 = 1; + a16 = 7; + a21 = 10; + return -1; + } else if(((!(a11==1)||(!(a28==1)||(((((a12==1)&&(a21==10))&&(a20==1))&&(a19==3))&&(a17==2))))&&(!(a0==1)&&(!(a7==1)&&(!(a8==1)&&((a23==1)&&(((input==6)&&(((((a5==6)&&(a1==12))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==13))))||((a9==7)&&((a5==5)&&(a1==13)))))&&(a16==9)))))))){ + a9 = 7; + a23 = 1; + a16 = 7; + a5 = 4; + a1 = 12; + a11 = 1; + a27 = 0; + a19 = 1; + return -1; + } else if((((a6==1)&&((((a3==1)&&((a16==7)&&((a12==1)&&(((((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6))))&&(input==4))&&(a21==12)))))&&(a17==2))&&(a12==1)))&&((a1==12)&&(((!(a28==1)||((a28==1)&&(a19==3)))&&(a20==1))||(a14==1))))){ + a19 = 4; + a5 = 5; + a3 = 1; + a9 = 10; + a21 = 10; + a6 = 1; + a28 = 1; + a1 = 13; + a16 = 9; + return 25; + } else if((((((a1==13)&&((a21==12)&&(!(a18==1)&&(!(a4==1)&&(!(a8==1)&&((a16==10)&&(input==6)))))))&&(a19==5))&&!(a20==1))&&((((((a3==1)&&((a13==1)&&(a5==5)))&&(a17==2))||!(a3==1))&&(a23==1))&&(a9==9)))){ + if((a7==1)){ + a9 = 7; + a7 = 1; + a16 = 7; + a21 = 10; + a20 = 1; + a18 = 1; + a5 = 6; + a19 = 2; + a1 = 12; + }else{ + a5 = 4; + a9 = 10; + a10 = 1; + a16 = 7; + a24 = 1; + a19 = 1; + a21 = 11; + a1 = 12; + } + return 21; + } else if((((a21==11)&&(((a1==13)&&((a5==5)&&(((a0==1)||(((a13==1)&&(a16==9))&&(a12==1)))||!(a2==1))))||!(a12==1)))&&(((!(a20==1)&&(!(a27==1)&&(((input==5)&&(a9==8))&&(a19==3))))&&(a17==2))&&(a3==1)))){ + if((a9==11)){ + a9 = 9; + a1 = 12; + a12 = 0; + a16 = 7; + a5 = 4; + a19 = 1; + a20 = 1; + a7 = 1; + a11 = 0; + }else{ + a21 = 12; + a4 = 1; + a1 = 12; + a19 = 2; + a9 = 7; + a10 = 1; + a29 = 0; + } + return -1; + } else if(((((a9==7)&&((a11==1)&&(a17==2)))&&(a16==7))&&((((a20==1)&&((((((a13==1)&&((((input==6)&&(a19==2))&&(a11==1))&&(a21==10)))&&(a11==1))&&(a11==1))&&(a6==1))&&(a6==1)))&&(a1==13))&&(a5==5)))){ + a7 = 0; + a19 = 1; + a1 = 12; + a2 = 1; + a5 = 4; + return -1; + } else if(((((a12==1)&&((((!(a14==1)&&((a8==1)||(a3==1)))||(a4==1))&&!(a26==1))&&(a16==8)))&&(a5==6))&&(((a1==14)&&((((!(a20==1)&&((input==3)&&(a19==5)))&&(a9==10))&&!(a18==1))&&(a17==2)))&&(a21==11)))){ + if((a23==1)){ + a5 = 5; + a16 = 7; + a29 = 0; + a1 = 12; + a21 = 10; + a7 = 1; + a9 = 7; + a20 = 1; + }else{ + a19 = 2; + a5 = 4; + a20 = 1; + a16 = 7; + a21 = 10; + a4 = 1; + a9 = 8; + a6 = 0; + a1 = 12; + } + return -1; + } else if((((a21==11)&&(((((a1==12)&&(((a16==9)&&(!(a24==1)&&(a11==1)))&&(a20==1)))&&(a9==10))&&!(a4==1))&&(a2==1)))&&((a2==1)&&(((a19==4)&&((((input==6)&&((a5==4)||(a5==5)))&&(a13==1))&&(a17==2)))&&!(a14==1))))){ + a21 = 10; + a16 = 7; + a13 = 1; + a5 = 4; + a1 = 13; + a19 = 2; + a2 = 1; + return 21; + } else if((((a21==10)&&((a9==10)&&(((a19==1)&&(((!(a24==1)&&(((a28==1)&&(a16==7))&&(a13==1)))&&(a17==2))||(a8==1)))&&(a1==14))))&&(!(a20==1)&&(!(a7==1)&&((((a5==4)&&(input==1))&&!(a4==1))&&(a11==1)))))){ + a19 = 4; + a20 = 1; + a1 = 13; + a5 = 5; + a16 = 11; + a21 = 11; + a6 = 1; + a9 = 11; + return 21; + } else if((((a21==12)&&((a7==1)||(((a12==1)&&((a16==9)&&(((a6==1)&&(a1==14))&&!(a20==1))))&&(a13==1))))&&(!(a8==1)&&(!(a27==1)&&(((((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==5))&&(a17==2))&&(a19==3))&&(a23==1)))))){ + if((a19==3)){ + a21 = 11; + a26 = 1; + a11 = 0; + a5 = 4; + a9 = 8; + a24 = 1; + }else{ + a5 = 6; + a26 = 1; + a1 = 13; + a20 = 1; + a10 = 1; + a16 = 7; + a3 = 0; + a19 = 1; + a21 = 10; + a9 = 11; + } + return 21; + } else if((((a20==1)&&(((a19==1)&&(((a1==12)&&(a3==1))||(a26==1)))||(a0==1)))&&((a21==11)&&((a17==2)&&((((a16==7)&&((a28==1)&&(!(a27==1)&&((input==4)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8)))))))&&(a2==1))&&!(a24==1)))))){ + a21 = 12; + a5 = 6; + a23 = 1; + a11 = 1; + a1 = 13; + a19 = 5; + a13 = 1; + a9 = 8; + return 22; + } else if((((((((a6==1)&&((a16==8)&&(input==6)))&&(a9==7))&&!(a0==1))&&(a23==1))&&(a21==12))&&((a1==14)&&((((a20==1)&&((((a5==6)&&((a11==1)&&(a13==1)))||(a27==1))&&(a23==1)))&&(a17==2))&&(a19==3))))){ + a19 = 2; + a13 = 1; + a24 = 0; + a16 = 10; + a28 = 1; + a5 = 5; + a9 = 11; + return 23; + } else if(((!(a0==1)&&((a19==3)&&((!(a27==1)&&((input==1)&&((a5==5)||(a5==6))))&&(a9==7))))&&(((((!(a24==1)&&(((a0==1)||(((a6==1)&&(a21==12))&&(a3==1)))&&!(a8==1)))&&(a17==2))&&(a20==1))&&(a16==10))&&(a1==13)))){ + a21 = 10; + a23 = 1; + a16 = 7; + a1 = 12; + a3 = 1; + a5 = 4; + a19 = 1; + a11 = 1; + return -1; + } else if(((((a16==9)&&(!(a11==1)||(((a9==10)&&(((a1==14)&&(((a6==1)&&(a28==1))&&(a3==1)))||(a18==1)))&&!(a20==1))))&&(a17==2))&&((a19==2)&&((!(a18==1)&&((a21==12)&&(((a5==4)||(a5==5))&&(input==3))))&&!(a8==1))))){ + a12 = 0; + a19 = 3; + a5 = 6; + a9 = 9; + a16 = 11; + a20 = 1; + a27 = 1; + a13 = 0; + a1 = 13; + return 21; + } else if(((((a16==11)&&((((a7==1)||((a17==2)&&(((a23==1)&&(a19==1))&&(a23==1))))&&(a20==1))&&(a21==11)))||!(a2==1))&&((a23==1)&&((a23==1)&&(((((a9==11)&&((a5==6)&&(a1==13)))||((a9==7)&&((a1==14)&&(a5==4))))&&(input==5))&&!(a26==1)))))){ + a11 = 1; + a16 = 7; + a19 = 4; + a1 = 13; + a20 = 0; + a5 = 5; + a27 = 0; + a21 = 12; + a9 = 10; + return 25; + } else if(((((a28==1)&&(((a2==1)&&((a19==3)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&!(a18==1))))&&(a17==2)))&&!(a8==1))&&((a21==10)&&(((a20==1)&&((((a9==7)&&((a26==1)||(a2==1)))&&(a11==1))&&(a1==12)))&&(a16==10))))){ + a21 = 12; + a9 = 8; + a1 = 13; + a19 = 2; + a5 = 5; + a27 = 0; + a24 = 0; + return 21; + } else if((((a14==1)||(((((!(a2==1)||(a23==1))||(a7==1))&&!(a4==1))&&(a20==1))&&(a17==2)))&&(((a19==2)&&((a1==14)&&((!(a26==1)&&(((((a5==5)||(a5==6))&&(input==4))&&(a9==8))&&(a21==11)))&&(a3==1))))&&(a16==11)))){ + a9 = 7; + a21 = 10; + a19 = 1; + a16 = 7; + a5 = 4; + a23 = 1; + a0 = 0; + a1 = 12; + a18 = 0; + return -1; + } else if((((!(a7==1)&&((a17==2)&&((!(a24==1)&&(((a16==9)&&((input==5)&&(a5==5)))&&(a19==2)))&&(a11==1))))&&(a21==11))&&((((a11==1)&&((a1==14)&&(!(a23==1)||((a3==1)||!(a11==1)))))&&!(a20==1))&&(a9==8)))){ + a1 = 13; + a20 = 1; + a16 = 7; + a15 = 0; + a9 = 10; + a22 = 1; + a21 = 10; + a19 = 1; + return 21; + } else if((((((a9==9)&&((a1==14)&&((a12==1)&&(a23==1))))&&(a16==7))&&(a20==1))&&(((!(a18==1)&&((((a21==10)&&(((((a5==5)||(a5==6))&&(input==1))&&(a19==3))&&(a17==2)))&&!(a0==1))&&(a2==1)))&&!(a18==1))&&!(a24==1)))){ + a11 = 1; + a5 = 4; + a19 = 2; + a14 = 0; + a21 = 11; + a28 = 1; + a9 = 10; + return 23; + } else if((((a1==13)&&(((a17==2)&&((a16==8)&&(!(a8==1)&&((a27==1)||((((a6==1)||!(a12==1))&&(a2==1))||!(a3==1))))))&&(a9==9)))&&((a19==1)&&((!(a8==1)&&(!(a20==1)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a21==10))))){ + a18 = 0; + a19 = 2; + a9 = 8; + a20 = 1; + a16 = 9; + a1 = 12; + a24 = 0; + a5 = 4; + return 23; + } else if((((a28==1)&&((a21==11)&&((((a9==7)&&((a5==6)&&((a3==1)&&(a16==11))))||(a7==1))&&(a20==1))))&&((((a17==2)&&((a2==1)&&((a1==12)&&(((a19==2)&&(input==5))&&(a6==1)))))&&!(a14==1))&&(a3==1)))){ + a14 = 0; + a21 = 12; + a5 = 5; + a16 = 9; + a4 = 0; + a28 = 1; + return 21; + } else if(((((a17==2)&&((((a26==1)||((a27==1)||(a23==1)))&&(a1==12))&&(a23==1)))&&(a23==1))&&((!(a4==1)&&((a16==11)&&(((a6==1)&&(((a20==1)&&((a5==4)&&(input==1)))&&(a19==1)))&&(a9==11))))&&(a21==11)))){ + a2 = 1; + a27 = 0; + a13 = 1; + a9 = 7; + a21 = 10; + a16 = 7; + return -1; + } else if(((((a12==1)&&((((a16==8)&&(((((a19==2)&&((a9==11)&&((a1==14)&&(a5==6))))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==3)))||((a19==3)&&(((a1==12)&&(a5==5))&&(a9==7))))&&(input==5)))&&(a21==10))&&(a3==1)))&&(a2==1))&&(((a3==1)&&((a18==1)||((a17==2)&&((a2==1)&&(a23==1)))))&&(a20==1)))){ + a21 = 12; + a19 = 4; + a5 = 4; + a14 = 0; + a13 = 1; + a1 = 13; + a16 = 9; + a23 = 1; + a9 = 9; + return 25; + } else if(((((a16==8)&&(((((a19==3)&&(input==1))&&(a23==1))&&(a12==1))&&(a1==13)))&&(a5==5))&&(!(a14==1)&&((a20==1)&&((((a17==2)&&(!(a8==1)&&(!(a23==1)||(!(a8==1)&&(a23==1)))))&&(a21==11))&&(a9==7)))))){ + a19 = 1; + a13 = 1; + a21 = 12; + a5 = 6; + a14 = 0; + a9 = 8; + a23 = 1; + a1 = 14; + return 21; + } else if((((!(a0==1)&&((a13==1)&&(((a21==10)&&((a16==10)&&(a11==1)))&&!(a18==1))))&&(a23==1))&&(!(a8==1)&&(((((a6==1)&&((a17==2)&&(((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))&&(input==6))))&&(a19==5))&&(a1==14))&&(a20==1))))){ + a1 = 12; + a21 = 12; + a19 = 2; + a16 = 9; + a12 = 1; + a5 = 5; + a9 = 7; + a28 = 1; + a14 = 0; + return 21; + } else if(((((a12==1)&&(((a20==1)&&((((a1==14)&&((a19==4)&&((a28==1)&&((input==1)&&((a5==5)||(a5==6))))))&&(a9==11))&&!(a27==1)))&&!(a26==1)))&&(a28==1))&&(!(a7==1)&&((a16==8)&&((a21==12)&&((a23==1)&&(a17==2))))))){ + a18 = 0; + a0 = 0; + a21 = 10; + a9 = 9; + a5 = 4; + a1 = 13; + a28 = 1; + a19 = 2; + a16 = 7; + return 26; + } else if((((a19==1)&&((((a1==12)&&(!(a7==1)&&(!(a26==1)&&((a6==1)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6)))))))&&(a20==1))&&(a17==2)))&&(((!(a24==1)&&((a0==1)||(((a21==12)&&(a6==1))&&(a11==1))))&&(a16==9))&&(a9==10)))){ + a9 = 7; + a13 = 1; + a1 = 13; + a3 = 1; + a5 = 6; + a19 = 3; + a26 = 0; + a16 = 7; + a21 = 10; + return 25; + } else if(((!(a20==1)&&((a19==2)&&(((a21==11)&&((a23==1)&&((input==5)&&(((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))))))&&!(a26==1))))&&(((a14==1)||(((((!(a28==1)||(a12==1))&&(a28==1))&&(a1==14))||(a7==1))&&(a17==2)))&&(a16==10)))){ + a15 = 0; + a18 = 1; + a19 = 1; + a1 = 12; + a16 = 7; + a5 = 4; + a3 = 0; + a20 = 1; + a21 = 10; + a9 = 11; + return 25; + } else if((((a17==2)&&((a1==14)&&((a21==12)&&((((a16==8)&&((a23==1)||(a26==1)))&&(a19==3))&&!(a20==1)))))&&(((a28==1)&&((!(a27==1)&&((a9==8)&&(((input==6)&&((a5==5)||(a5==6)))&&!(a14==1))))&&!(a7==1)))&&(a23==1)))){ + a5 = 5; + a25 = 0; + a1 = 13; + a20 = 1; + a16 = 11; + a29 = 1; + a9 = 11; + a4 = 1; + a21 = 11; + return 21; + } else if(((!(a20==1)&&((((((a17==2)&&((((a5==5)||(a5==6))&&(input==1))&&(a2==1)))&&(a1==13))&&(a9==9))&&!(a14==1))&&(a21==10)))&&((a19==1)&&(((a16==10)&&((((a11==1)&&(a11==1))||(a0==1))||!(a2==1)))&&(a12==1))))){ + a16 = 7; + a23 = 0; + a5 = 4; + a1 = 14; + a20 = 1; + a12 = 0; + a9 = 7; + return 26; + } else if(((((a17==2)&&(((a26==1)||((a7==1)||((a20==1)&&(!(a6==1)||(a23==1)))))&&(a9==8)))&&(a3==1))&&(((a1==13)&&((a3==1)&&((a19==2)&&(((a16==8)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1)))&&(a13==1)))))&&(a21==10)))){ + a21 = 12; + a1 = 14; + a19 = 1; + a5 = 6; + a11 = 1; + a12 = 1; + return 21; + } else if(((((((a7==1)||(a13==1))&&(a2==1))&&(a17==2))||!(a12==1))&&(!(a14==1)&&(((a20==1)&&((a21==10)&&(((a9==9)&&((a16==11)&&((a19==3)&&(!(a26==1)&&((a5==5)&&(input==1))))))&&!(a14==1))))&&(a1==13))))){ + a24 = 0; + a6 = 1; + a9 = 8; + a5 = 4; + a11 = 1; + a21 = 11; + return 25; + } else if(((((a19==2)&&((a6==1)&&(((a17==2)&&(((a16==9)&&((((a9==11)&&(a28==1))&&!(a8==1))&&!(a20==1)))&&!(a7==1)))&&(a11==1))))||!(a13==1))&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a13==1))&&(a21==10))&&(a1==14)))){ + if((a8==1)){ + a23 = 0; + a19 = 4; + a9 = 10; + a5 = 6; + a22 = 1; + a21 = 11; + a27 = 1; + a16 = 10; + }else{ + a26 = 1; + a21 = 11; + a19 = 5; + a5 = 5; + a20 = 1; + a16 = 7; + a7 = 1; + } + return 21; + } else if((((a5==6)&&((a9==9)&&((a21==12)&&((((a19==1)&&(!(a2==1)&&((input==3)&&(a1==12))))&&(a17==2))&&(a24==1)))))&&((a27==1)&&(((((a8==1)&&((a13==1)&&(a24==1)))&&(a27==1))&&(a16==10))&&(a20==1))))){ + a7 = 1; + a24 = 1; + a27 = 1; + a5 = 4; + a9 = 7; + a1 = 13; + a19 = 3; + return -1; + } else if((((a16==9)&&(!(a7==1)&&((!(a26==1)&&(a28==1))&&!(a20==1))))&&(((a9==7)&&(!(a0==1)&&(!(a24==1)&&((a17==2)&&((a21==11)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&(a1==14))&&(a19==1))&&!(a26==1)))))))&&!(a7==1)))){ + a1 = 12; + a21 = 12; + a27 = 1; + a19 = 5; + a12 = 0; + a4 = 1; + a20 = 1; + a5 = 5; + a16 = 8; + a9 = 8; + return -1; + } else if((((!(a28==1)||((!(a20==1)&&((a19==2)&&((!(a14==1)&&(a2==1))&&(a5==6))))&&(a16==10)))&&!(a14==1))&&((a2==1)&&(((((a21==10)&&((a13==1)&&((input==5)&&(a17==2))))&&(a9==11))&&!(a18==1))&&(a1==14))))){ + if((a4==1)){ + a20 = 1; + a16 = 7; + a4 = 1; + a13 = 0; + a28 = 0; + a1 = 12; + }else{ + a14 = 1; + a16 = 8; + a2 = 0; + a21 = 11; + a20 = 1; + a9 = 8; + a1 = 12; + a19 = 3; + a25 = 1; + } + return -1; + } else if((((a6==1)&&(!(a27==1)&&((a12==1)&&(((a17==2)&&((((input==4)&&(a9==11))&&(a13==1))&&(a20==1)))&&(a21==12)))))&&(((a19==3)&&((a16==8)&&(((a5==4)&&((a3==1)&&(a1==13)))&&!(a14==1))))&&(a13==1)))){ + a19 = 1; + a7 = 0; + a21 = 10; + a8 = 0; + a1 = 12; + a9 = 7; + a16 = 7; + a3 = 1; + return -1; + } else if((((((!(a11==1)||(((((a13==1)&&!(a7==1))||(a24==1))&&(a21==12))||!(a12==1)))&&(a3==1))&&(a1==13))&&(a17==2))&&(!(a20==1)&&((a9==9)&&((a19==3)&&((a2==1)&&((((a5==5)||(a5==6))&&(input==1))&&(a16==9)))))))){ + if((a10==1)){ + a10 = 0; + a1 = 12; + a19 = 2; + a5 = 5; + a21 = 10; + a0 = 1; + a9 = 8; + a20 = 1; + a16 = 7; + }else{ + a19 = 2; + a16 = 7; + a0 = 1; + a25 = 1; + a9 = 7; + a5 = 5; + a18 = 1; + a21 = 11; + a1 = 14; + } + return -1; + } else if(((((a11==1)&&((((a3==1)&&(((((a9==11)&&((a5==6)&&(a1==13)))||((a9==7)&&((a5==4)&&(a1==14))))||((a9==7)&&((a5==5)&&(a1==14))))&&(input==4)))&&(a21==11))&&!(a8==1)))&&!(a0==1))&&((a16==11)&&(((((a19==2)&&((a6==1)&&(a20==1)))||(a24==1))&&!(a7==1))&&(a17==2))))){ + a9 = 7; + a0 = 0; + a14 = 0; + a16 = 7; + a28 = 1; + a19 = 1; + a5 = 4; + a21 = 10; + a1 = 12; + return -1; + } return calculate_output20(input); + } + + int calculate_output20(int input) { + if(((!(a7==1)&&((((a9==11)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))&&(a17==2))&&(a21==10)))&&((a20==1)&&((((a12==1)&&((!(a12==1)||(!(a28==1)||(((a23==1)&&(a19==4))&&(a16==10))))||!(a3==1)))||(a0==1))&&(a1==14))))){ + a21 = 12; + a26 = 0; + a27 = 0; + a16 = 9; + a1 = 13; + a5 = 6; + a9 = 10; + a6 = 1; + return -1; + } else if(((!(a20==1)&&((a21==11)&&((!(a4==1)&&((a3==1)&&(a3==1)))&&(a5==4))))&&((a19==5)&&(((a23==1)&&(!(a26==1)&&((a1==14)&&((a28==1)&&(((a17==2)&&((input==5)&&(a9==10)))&&(a16==7))))))&&!(a0==1))))){ + a9 = 8; + a27 = 0; + a16 = 8; + a19 = 2; + a8 = 0; + a20 = 1; + a21 = 10; + return 25; + } else if((((!(a18==1)&&(((a16==10)&&((a1==12)&&(((a19==2)&&(((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&!(a18==1)))&&(a17==2))))&&!(a8==1)))&&(a6==1))&&((((a28==1)&&((!(a13==1)||(a6==1))&&(a9==11)))&&!(a20==1))&&(a21==11)))){ + a24 = 1; + a16 = 7; + a20 = 1; + a21 = 10; + a5 = 6; + a15 = 1; + a9 = 7; + a29 = 0; + return -1; + } else if((((((a16==9)&&((((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&(a6==1))&&!(a26==1)))&&(a20==1))&&(a19==3))&&(((a9==10)&&(((a1==13)&&((a21==11)&&(!(a6==1)||((a23==1)&&((a23==1)&&(a11==1))))))||!(a23==1)))&&(a17==2)))){ + a14 = 0; + a1 = 12; + a9 = 7; + a5 = 4; + a6 = 1; + a16 = 7; + a0 = 0; + a21 = 10; + a19 = 1; + return -1; + } else if(((!(a26==1)&&(!(a27==1)&&(((a9==8)&&(((a16==9)&&((a5==5)&&(((a17==2)&&(input==4))&&!(a20==1))))&&(a1==13)))&&!(a7==1))))&&((((((a2==1)&&(a3==1))&&!(a27==1))&&(a21==11))&&!(a26==1))&&(a19==3)))){ + a29 = 1; + a1 = 12; + a18 = 1; + a19 = 4; + a12 = 0; + a20 = 1; + a9 = 7; + a5 = 4; + return 22; + } else if((((a4==1)||(((a1==13)&&((a11==1)||(a4==1)))||(a26==1)))&&((a21==12)&&((a2==1)&&(((((a9==10)&&((!(a4==1)&&(((input==4)&&((a5==5)||(a5==6)))&&(a23==1)))&&(a16==8)))&&(a19==1))&&(a17==2))&&!(a20==1)))))){ + a13 = 0; + a8 = 1; + a22 = 0; + a1 = 14; + a16 = 9; + a19 = 3; + a5 = 5; + a20 = 1; + return 21; + } else if((((a21==10)&&(((a3==1)&&(((((a1==12)&&(a5==6))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==13))))&&(input==6)))&&!(a7==1)))&&((a19==4)&&((((((a17==2)&&(((a18==1)||(a28==1))||(a24==1)))&&(a20==1))&&!(a14==1))&&(a16==11))&&!(a8==1))))){ + a3 = 1; + a4 = 0; + a2 = 1; + a5 = 4; + a9 = 7; + a1 = 12; + a21 = 11; + return 25; + } else if(((!(a26==1)&&(((!(a8==1)&&((((a1==12)&&(input==6))&&!(a0==1))&&!(a7==1)))&&!(a8==1))&&(a19==4)))&&((a5==5)&&(((a9==9)&&((a20==1)&&(!(a24==1)&&(((a12==1)&&(a17==2))&&(a16==7)))))&&(a21==11))))){ + a19 = 3; + a9 = 10; + a8 = 0; + a11 = 1; + a5 = 4; + a16 = 8; + a4 = 0; + return 25; + } else if((((((a13==1)&&((a19==4)&&((a5==6)&&(((((a21==12)&&(input==5))&&!(a27==1))&&!(a14==1))&&!(a0==1)))))&&(a17==2))&&!(a20==1))&&(((((a1==12)&&((a2==1)||(a14==1)))&&(a9==9))&&(a2==1))&&(a16==10)))){ + a1 = 13; + a4 = 1; + a22 = 1; + a25 = 1; + a21 = 10; + a20 = 1; + a9 = 8; + a16 = 7; + a5 = 5; + a19 = 1; + return 23; + } else if((((a1==13)&&(((a16==9)&&((((a28==1)&&(!(a26==1)&&((((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8))))&&(input==1))))&&(a17==2))&&(a19==3)))&&!(a4==1)))&&(!(a20==1)&&(!(a14==1)&&((a21==12)&&(((a3==1)||(a14==1))||!(a3==1))))))){ + if((a10==1)){ + a20 = 1; + a19 = 1; + a21 = 10; + a25 = 1; + a9 = 9; + a1 = 12; + a16 = 7; + a5 = 5; + a18 = 1; + a3 = 0; + }else{ + a5 = 5; + a26 = 1; + a22 = 1; + a15 = 1; + a19 = 5; + a9 = 7; + } + return 21; + } else if(((((a16==8)&&(((!(a20==1)&&(((a11==1)&&(((input==4)&&(a5==4))&&(a9==11)))&&!(a0==1)))&&(a17==2))&&(a1==14)))&&(a19==5))&&((a21==12)&&(((((a12==1)&&!(a27==1))||(a27==1))&&!(a26==1))&&!(a0==1))))){ + if((a10==1)){ + a5 = 5; + a19 = 1; + a26 = 1; + a16 = 7; + a22 = 0; + a1 = 13; + a21 = 10; + a20 = 1; + a12 = 0; + }else{ + a9 = 9; + a19 = 1; + a1 = 12; + a25 = 0; + a20 = 1; + a21 = 10; + a29 = 1; + a12 = 0; + a16 = 7; + } + return 25; + } else if((((a21==10)&&(!(a24==1)&&(!(a20==1)&&((a1==12)&&(!(a18==1)&&((((input==6)&&(((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))))&&(a28==1))&&!(a24==1)))))))&&(((a17==2)&&((a16==11)&&((a2==1)&&(!(a23==1)||(a12==1)))))&&(a19==4)))){ + a28 = 0; + a27 = 1; + a5 = 5; + a1 = 13; + a10 = 0; + a19 = 1; + a9 = 8; + a20 = 1; + a16 = 7; + return -1; + } else if(((((a17==2)&&((a1==14)&&((a21==11)&&((a20==1)&&(((!(a27==1)&&(((input==4)&&((a5==5)||(a5==6)))&&!(a18==1)))&&!(a14==1))&&!(a4==1))))))&&(a19==1))&&((a9==10)&&((!(a18==1)&&((a6==1)&&(a16==10)))||!(a28==1))))){ + a23 = 1; + a16 = 7; + a9 = 7; + a5 = 4; + a1 = 12; + a21 = 10; + a26 = 0; + a14 = 0; + return -1; + } else if((((((a12==1)&&((((a23==1)&&((a12==1)||!(a12==1)))&&(a21==10))&&(a1==13)))||!(a6==1))&&(a20==1))&&((a5==4)&&(((((((a19==3)&&(input==6))&&(a9==11))&&!(a0==1))&&(a17==2))&&(a16==11))&&!(a27==1))))){ + a2 = 1; + a4 = 0; + a18 = 0; + a9 = 10; + a21 = 12; + a16 = 9; + a1 = 12; + a5 = 6; + return 21; + } else if(((!(a26==1)&&((a1==12)&&(((!(a6==1)||(a11==1))&&!(a8==1))&&(a17==2))))&&(((a21==11)&&((!(a8==1)&&((a6==1)&&((((((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6))))&&(input==3))&&(a20==1))&&(a19==1))))&&(a16==11)))&&(a23==1)))){ + a21 = 10; + a5 = 4; + a28 = 1; + a16 = 7; + a26 = 0; + a9 = 7; + return -1; + } else if(((((a27==1)||((((a14==1)||((a11==1)&&(a17==2)))&&(a16==9))&&!(a20==1)))&&(a1==14))&&((a21==10)&&(((((a9==11)&&((((input==6)&&((a5==5)||(a5==6)))&&(a28==1))&&!(a26==1)))&&(a19==4))&&!(a27==1))&&!(a26==1))))){ + if((a5==5)){ + a5 = 6; + a1 = 13; + a19 = 2; + a0 = 1; + a10 = 1; + a21 = 11; + a16 = 10; + a9 = 10; + }else{ + a15 = 1; + a14 = 1; + a4 = 1; + a9 = 10; + a20 = 1; + a16 = 7; + a5 = 4; + a19 = 1; + } + return -1; + } else if((((a7==1)||((a19==2)&&((!(a13==1)||((a6==1)&&(a2==1)))&&(a21==10))))&&(((a12==1)&&(!(a20==1)&&((a3==1)&&((((input==5)&&(((((a5==6)&&(a1==13))&&(a9==11))||(((a1==14)&&(a5==4))&&(a9==7)))||(((a5==5)&&(a1==14))&&(a9==7))))&&(a16==10))&&(a17==2)))))&&!(a14==1)))){ + a20 = 1; + a5 = 6; + a16 = 7; + a1 = 14; + a22 = 0; + a19 = 1; + a9 = 8; + a13 = 0; + a25 = 0; + return 21; + } else if(((((a21==10)&&((((a16==7)&&((((input==1)&&(a17==2))&&!(a0==1))&&(a1==12)))&&(a9==11))&&(a19==5)))&&!(a24==1))&&((a23==1)&&(!(a24==1)&&(((a6==1)&&(((a20==1)&&(a23==1))&&(a5==4)))&&!(a14==1)))))){ + a5 = 6; + a9 = 10; + a2 = 1; + a19 = 2; + a1 = 13; + a21 = 12; + a28 = 1; + a14 = 0; + return 26; + } else if(((!(a27==1)&&((a1==13)&&((((((input==4)&&(((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))&&(a17==2))&&!(a0==1))&&(a16==9))&&!(a26==1))))&&((((a19==1)&&((a21==11)&&((a3==1)&&((a12==1)||!(a23==1)))))&&!(a20==1))&&!(a18==1)))){ + a5 = 6; + a20 = 1; + a18 = 1; + a27 = 1; + a2 = 0; + a16 = 7; + a21 = 10; + a9 = 9; + return -1; + } else if(((((a16==7)&&(((((a21==11)&&((a17==2)&&(((a28==1)||!(a2==1))&&(a6==1))))&&(a19==1))&&(a23==1))&&(a23==1)))||(a7==1))&&((a20==1)&&((((input==3)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(a2==1))&&(a1==12))))){ + a5 = 4; + a4 = 0; + a14 = 0; + a2 = 1; + a9 = 7; + a21 = 10; + return -1; + } else if(((!(a0==1)&&((a19==3)&&(((a9==9)&&((a24==1)||((!(a3==1)||(a28==1))&&!(a27==1))))&&!(a27==1))))&&(((((((a1==12)&&(((a5==5)||(a5==6))&&(input==1)))&&!(a20==1))&&(a17==2))&&(a21==10))&&(a16==11))&&(a23==1)))){ + if((a15==1)){ + a19 = 5; + a15 = 0; + a10 = 0; + a1 = 14; + a25 = 0; + a21 = 11; + a16 = 9; + a5 = 6; + }else{ + a20 = 1; + a29 = 0; + a25 = 1; + a9 = 8; + a19 = 2; + a16 = 7; + a5 = 4; + a23 = 0; + } + return 21; + } else if((((a19==3)&&(((((a17==2)&&(input==5))&&(a13==1))&&(a11==1))&&(a16==8)))&&(((a5==6)&&(!(a24==1)&&(((((((a3==1)&&!(a20==1))&&(a9==8))&&(a11==1))&&(a21==12))||!(a13==1))&&(a1==12))))&&(a2==1)))){ + a16 = 9; + a1 = 13; + a19 = 2; + a24 = 1; + a11 = 0; + a4 = 1; + a9 = 10; + return 26; + } else if(((((a0==1)||((a1==14)&&(((a17==2)&&((a6==1)&&((a12==1)&&(a13==1))))&&(a19==1))))&&(a21==11))&&((a16==10)&&((a3==1)&&(!(a27==1)&&(((((input==6)&&((a5==4)||(a5==5)))&&!(a20==1))&&(a9==9))&&(a3==1))))))){ + a16 = 7; + a15 = 1; + a20 = 1; + a4 = 1; + a5 = 5; + a9 = 10; + a1 = 13; + a21 = 10; + return -1; + } else if((((a20==1)&&((((a9==10)&&((!(a0==1)&&((a16==10)&&(!(a27==1)&&(((a5==4)||(a5==5))&&(input==5)))))&&!(a26==1)))&&(a19==4))&&(a6==1)))&&((a17==2)&&((a21==11)&&(!(a6==1)||(((a11==1)&&(a1==12))||!(a6==1))))))){ + a16 = 7; + a19 = 2; + a1 = 13; + a27 = 0; + a7 = 0; + a5 = 5; + a21 = 10; + a9 = 9; + return -1; + } else if(((((a21==10)&&((a5==4)&&(((a7==1)||(((a20==1)&&((a23==1)&&((a11==1)&&!(a24==1))))&&!(a7==1)))&&(a17==2))))&&(a16==10))&&((!(a4==1)&&((a9==7)&&(((input==4)&&(a19==2))&&(a1==14))))&&!(a8==1)))){ + a7 = 0; + a2 = 1; + a19 = 1; + a16 = 7; + a1 = 12; + return -1; + } else if((((a3==1)&&((((a16==11)&&(((a0==1)||((a20==1)&&(a3==1)))&&(a1==13)))||!(a11==1))&&(a11==1)))&&(!(a8==1)&&(((((a19==1)&&((input==6)&&((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4)))))&&(a17==2))&&(a12==1))&&(a21==10))))){ + a13 = 1; + a1 = 12; + a0 = 0; + a2 = 1; + a5 = 4; + a16 = 7; + a9 = 7; + return -1; + } else if((((a20==1)&&((a11==1)&&((a2==1)&&((a21==11)&&(!(a28==1)||(a23==1))))))&&(((((a16==11)&&((((a19==5)&&((input==3)&&(((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9))))))&&(a12==1))&&(a23==1)))&&(a1==14))&&(a6==1))&&(a17==2)))){ + a12 = 1; + a3 = 1; + a5 = 6; + a16 = 10; + a19 = 2; + a9 = 8; + a18 = 0; + a21 = 10; + return 21; + } else if(((((a17==2)&&(!(a14==1)&&(((a3==1)&&(((a16==7)&&(input==1))&&(a5==5)))&&!(a7==1))))&&(a21==10))&&((a0==1)||(!(a11==1)||((((a19==4)&&(!(a12==1)||((a3==1)&&(a9==11))))&&(a1==12))&&(a20==1)))))){ + a9 = 7; + a4 = 0; + a26 = 0; + a2 = 1; + a1 = 13; + a21 = 11; + return 23; + } else if(((((a1==14)&&((a21==10)&&((a19==2)&&((a11==1)&&((((a16==8)&&((a17==2)&&(input==6)))&&(a2==1))&&(a23==1))))))&&(a20==1))&&((a9==8)&&((a5==4)&&((((a0==1)||(a23==1))||!(a23==1))||(a26==1)))))){ + a19 = 1; + a27 = 0; + a1 = 12; + a16 = 7; + a23 = 1; + a9 = 7; + a7 = 0; + return -1; + } else if((((a28==1)&&((a9==8)&&((a17==2)&&((a16==11)&&((a3==1)&&((a21==11)&&((a19==5)&&((((a5==5)&&(input==1))&&(a1==12))&&(a20==1)))))))))&&((((a11==1)&&((a28==1)&&!(a24==1)))||(a14==1))||(a14==1)))){ + a9 = 7; + a7 = 0; + a21 = 12; + a19 = 3; + a4 = 0; + return 25; + } else if((((a23==1)&&(!(a20==1)&&(((a21==10)&&(a23==1))&&!(a0==1))))&&((a19==4)&&((a1==12)&&((((a3==1)&&(((((input==1)&&((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4))))&&(a16==11))&&!(a7==1))&&(a17==2)))&&!(a7==1))&&(a28==1)))))){ + a9 = 10; + a20 = 1; + a19 = 2; + a29 = 1; + a16 = 7; + a28 = 0; + a10 = 0; + a5 = 6; + return 25; + } else if((((a21==10)&&((a6==1)&&((a11==1)&&(!(a4==1)&&(((a19==2)&&(((((input==4)&&(a20==1))&&(a5==5))&&(a16==11))&&(a1==14)))&&!(a4==1))))))&&((a9==10)&&(((a27==1)||((a4==1)||(a6==1)))&&(a17==2))))){ + a1 = 12; + a28 = 1; + a16 = 7; + a19 = 1; + a5 = 4; + a9 = 7; + a4 = 0; + a2 = 1; + return -1; + } else if((((!(a12==1)||(((((a5==4)&&(a12==1))||!(a3==1))&&(a9==11))&&(a16==7)))&&(a1==13))&&(!(a18==1)&&(((a17==2)&&(!(a7==1)&&(((a21==10)&&(((a19==5)&&(input==6))&&!(a24==1)))&&!(a0==1))))&&(a20==1))))){ + a8 = 0; + a11 = 1; + a2 = 1; + a1 = 12; + a9 = 7; + a19 = 1; + return -1; + } else if((((a17==2)&&((((a21==12)&&((input==3)&&!(a20==1)))&&(a2==1))&&!(a14==1)))&&((a9==11)&&(((a1==14)&&(!(a27==1)&&((!(a14==1)&&(((a19==4)&&((a5==6)&&(a11==1)))||(a18==1)))&&!(a0==1))))&&(a16==10))))){ + a1 = 12; + a9 = 7; + a20 = 1; + a5 = 5; + a22 = 0; + a2 = 0; + a10 = 1; + a21 = 10; + a16 = 7; + return 25; + } else if((((a4==1)&&((a24==1)&&(!(a20==1)&&(a28==1))))&&((a27==1)&&(!(a11==1)&&(((a9==8)&&(((a14==1)&&(((a5==6)&&((a16==7)&&((a21==12)&&((a19==5)&&(input==5)))))&&(a1==14)))&&(a17==2)))&&!(a6==1)))))){ + a5 = 4; + a3 = 0; + a1 = 13; + a19 = 2; + a20 = 1; + a21 = 10; + a4 = 1; + a9 = 7; + return -1; + } else if((((((a6==1)&&((a9==11)&&((((a19==3)&&((a28==1)&&(a21==11)))&&!(a4==1))&&(a16==10))))&&(a1==12))&&(a28==1))&&((a17==2)&&(!(a27==1)&&(((((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&!(a20==1))&&!(a27==1))&&!(a4==1)))))){ + a9 = 9; + a21 = 10; + a5 = 6; + a3 = 0; + a20 = 1; + a16 = 7; + a13 = 0; + a23 = 0; + a19 = 2; + return 22; + } else if(((((((a21==11)&&((a6==1)||!(a6==1)))&&(a12==1))||!(a12==1))||!(a11==1))&&((!(a20==1)&&(((((((((a5==4)||(a5==5))&&(input==4))&&(a9==11))&&(a23==1))&&(a19==1))&&!(a27==1))&&(a1==12))&&(a16==9)))&&(a17==2)))){ + a5 = 6; + a21 = 10; + a9 = 8; + a20 = 1; + a23 = 0; + a1 = 13; + a22 = 0; + a16 = 7; + a10 = 1; + return -1; + } else if((((a17==2)&&(((a0==1)&&(((a4==1)&&((a13==1)&&(a27==1)))&&(a14==1)))&&!(a20==1)))&&(((a16==7)&&(((((a21==11)&&((a8==1)&&((input==5)&&(a5==4))))&&(a1==13))&&(a7==1))&&(a19==1)))&&(a9==11)))){ + a3 = 0; + a1 = 12; + a21 = 10; + a19 = 4; + a22 = 0; + a16 = 8; + a9 = 10; + a0 = 1; + return 21; + } else if(((((a17==2)&&((a19==4)&&(((a14==1)&&((a18==1)&&((a24==1)&&((a26==1)&&(a13==1)))))&&(a21==11))))&&(a16==11))&&(((a20==1)&&(!(a28==1)&&(!(a13==1)&&((input==3)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))))))&&(a1==13)))){ + a12 = 0; + a9 = 10; + a5 = 5; + a19 = 3; + a21 = 12; + a1 = 12; + a29 = 1; + a16 = 9; + a18 = 1; + return -1; + } else if((((a19==2)&&(((a1==13)&&((a21==12)&&(((a23==1)&&(((input==5)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5))))&&!(a18==1)))&&(a2==1))))&&(a20==1)))&&((a16==11)&&((a18==1)||(!(a4==1)&&((!(a3==1)||(a6==1))&&(a17==2))))))){ + a21 = 10; + a16 = 7; + a9 = 7; + a19 = 1; + a1 = 12; + a28 = 1; + a6 = 1; + a12 = 1; + a5 = 4; + return -1; + } else if((((((a5==6)&&(((((a9==10)&&((input==3)&&(a19==2)))&&(a13==1))&&!(a4==1))&&(a21==12)))&&!(a27==1))&&(a17==2))&&(((a1==14)&&(((((a16==10)&&(a28==1))&&(a6==1))||!(a12==1))&&!(a27==1)))&&!(a20==1)))){ + if((a20==1)){ + a3 = 0; + a9 = 11; + a20 = 1; + a19 = 3; + a1 = 12; + a15 = 0; + a16 = 11; + a2 = 0; + }else{ + a15 = 0; + a20 = 1; + a16 = 7; + a6 = 0; + a9 = 9; + a21 = 10; + a27 = 1; + a19 = 1; + } + return -1; + } else if((((a19==3)&&(((a9==9)&&(((!(a0==1)&&(!(a14==1)&&((a2==1)&&((input==5)&&((a5==4)||(a5==5))))))&&(a17==2))&&(a1==14)))&&!(a20==1)))&&((a0==1)||(!(a18==1)&&((a16==10)&&(((a21==11)&&(a3==1))&&!(a27==1))))))){ + if((a14==1)){ + a6 = 0; + a2 = 0; + a16 = 7; + a21 = 10; + a19 = 1; + a1 = 13; + a11 = 0; + a20 = 1; + a5 = 5; + }else{ + a9 = 7; + a5 = 4; + a19 = 2; + a20 = 1; + a15 = 0; + a12 = 0; + a16 = 7; + a10 = 0; + a1 = 13; + a21 = 10; + } + return 22; + } else if((((a21==10)&&((a1==12)&&((((a13==1)&&((a23==1)&&(a11==1)))&&(a28==1))&&(a20==1))))&&((((a17==2)&&((a6==1)&&((a19==2)&&((a13==1)&&(((input==1)&&(a5==6))&&(a9==11))))))&&!(a26==1))&&(a16==10)))){ + a7 = 0; + a9 = 9; + a28 = 1; + a16 = 11; + a1 = 13; + a19 = 5; + a5 = 4; + a27 = 0; + return 25; + } else if(((((a23==1)&&((a17==2)&&((((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==4))&&!(a18==1))&&!(a26==1))))&&(a20==1))&&((a16==7)&&((a1==13)&&((!(a0==1)&&(((a28==1)&&((a6==1)&&!(a4==1)))&&(a19==4)))&&(a21==12)))))){ + a9 = 7; + a11 = 1; + a26 = 0; + a5 = 4; + a19 = 1; + a21 = 10; + a27 = 0; + a1 = 12; + return -1; + } else if(((((a11==1)&&((a17==2)&&((a11==1)&&((a6==1)&&((input==6)&&(((a9==7)&&((a5==5)&&(a1==14)))||((((a1==13)&&(a5==6))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==14))))))))))&&!(a24==1))&&((a0==1)||((a16==10)&&((((a20==1)&&((a21==10)&&(a13==1)))&&(a19==5))||!(a12==1)))))){ + a16 = 7; + a5 = 4; + a19 = 1; + a8 = 0; + a13 = 1; + a9 = 7; + a1 = 12; + a11 = 1; + return -1; + } else if(((((((((a28==1)&&(((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&!(a7==1)))&&!(a20==1))&&(a1==14))&&(a9==7))&&(a16==10))&&(a21==11))&&((a17==2)&&((!(a28==1)||((((a12==1)&&(a23==1))&&(a13==1))&&(a28==1)))&&(a19==1))))){ + a5 = 4; + a1 = 12; + a4 = 1; + a21 = 10; + a15 = 1; + a20 = 1; + a16 = 9; + a19 = 5; + a29 = 1; + a9 = 10; + return -1; + } else if((((a19==1)&&((!(a6==1)||(((a12==1)&&!(a20==1))||(a0==1)))&&(a2==1)))&&((((a16==10)&&((((a21==10)&&((((a1==14)&&(input==1))&&(a2==1))&&(a9==11)))&&!(a0==1))&&(a28==1)))&&(a17==2))&&(a5==5)))){ + a5 = 4; + a21 = 12; + a16 = 8; + a7 = 1; + a18 = 1; + a1 = 13; + a20 = 1; + a9 = 10; + return 25; + } else if(((((a21==12)&&((a3==1)&&(!(a27==1)&&((((input==1)&&(a1==14))&&(a17==2))&&(a5==5)))))&&(a9==9))&&(!(a12==1)||((a16==11)&&(((a7==1)||((a23==1)&&((a19==3)&&(!(a24==1)&&(a11==1)))))&&(a20==1)))))){ + a5 = 4; + a28 = 1; + a11 = 1; + a23 = 1; + a19 = 1; + a9 = 7; + a1 = 12; + a16 = 7; + a21 = 10; + return -1; + } else if((((((!(a20==1)&&(((a24==1)||((a2==1)&&(a16==9)))&&(a9==8)))||(a24==1))||(a24==1))&&(a21==10))&&(((a6==1)&&(((a19==2)&&((((input==6)&&((a5==4)||(a5==5)))&&(a1==14))&&(a13==1)))&&!(a24==1)))&&(a17==2)))){ + a21 = 12; + a3 = 0; + a5 = 4; + a9 = 11; + a1 = 12; + a18 = 1; + a16 = 10; + a19 = 3; + a15 = 0; + return -1; + } else if(((!(a12==1)||(((a19==5)&&((a20==1)&&(a12==1)))&&(a16==9)))&&((a1==13)&&(!(a18==1)&&((!(a8==1)&&(((((a11==1)&&((((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))&&(input==3)))&&!(a18==1))&&(a21==12))&&(a17==2)))&&!(a4==1)))))){ + a9 = 7; + a21 = 10; + a1 = 12; + a18 = 0; + a5 = 4; + a16 = 7; + a14 = 0; + a19 = 1; + a23 = 1; + return -1; + } else if((((a7==1)||(((!(a11==1)||(((a17==2)&&((a12==1)||(a27==1)))&&(a1==14)))||(a7==1))&&(a20==1)))&&((!(a7==1)&&((a28==1)&&(((a21==10)&&((input==6)&&((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))))&&(a19==3))))&&(a16==8)))){ + a1 = 12; + a13 = 1; + a9 = 7; + a19 = 1; + a7 = 0; + a5 = 4; + a23 = 1; + a16 = 7; + return -1; + } else if((((((!(a14==1)&&((a19==3)&&((a16==10)&&(((a5==6)&&(a13==1))||!(a3==1)))))&&(a21==10))||(a7==1))&&(a9==10))&&((a1==14)&&(!(a7==1)&&(((((a20==1)&&(input==4))&&!(a26==1))&&(a17==2))&&(a28==1)))))){ + a5 = 4; + a9 = 7; + a19 = 1; + a1 = 12; + a4 = 0; + a23 = 1; + a6 = 1; + a16 = 7; + return -1; + } else if((((a28==1)&&((((a9==7)&&(((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a8==1)))&&!(a4==1))&&(a20==1)))&&((((!(a24==1)&&((((a14==1)||((a13==1)&&(a21==11)))&&(a19==1))&&(a17==2)))&&(a16==10))||!(a13==1))&&(a1==14)))){ + a21 = 10; + a5 = 4; + a14 = 0; + a16 = 7; + a7 = 0; + a1 = 12; + a2 = 1; + return -1; + } else if((((a17==2)&&((a19==1)&&(((a20==1)&&((!(a12==1)&&((a9==11)&&((input==3)&&((a5==5)||(a5==6)))))&&!(a12==1)))&&(a16==8))))&&(((a21==12)&&(!(a6==1)&&(!(a3==1)&&(!(a11==1)&&((a26==1)&&(a11==1))))))&&(a1==12)))){ + a5 = 6; + a22 = 0; + a16 = 7; + a1 = 14; + a21 = 10; + a9 = 7; + a29 = 0; + return 26; + } else if(((((((((a17==2)&&(a3==1))||(a7==1))&&(a12==1))&&!(a4==1))&&(a12==1))||(a18==1))&&(!(a8==1)&&((a16==7)&&((((input==4)&&(((a19==2)&&((a9==11)&&((a1==14)&&(a5==6))))||(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==3))))&&(a20==1))&&(a21==12)))))){ + a19 = 1; + a21 = 10; + a5 = 4; + a2 = 1; + a24 = 0; + a9 = 7; + a1 = 12; + return -1; + } else if((((((a23==1)&&((((a12==1)&&(((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==6))&&(a21==10)))&&!(a27==1))&&(a1==12)))&&(a16==11))&&(a17==2))&&(((a19==2)&&((a20==1)&&(((a7==1)||(a28==1))&&!(a27==1))))&&(a6==1)))){ + a5 = 4; + a13 = 1; + a9 = 7; + a26 = 0; + a18 = 0; + a16 = 7; + a19 = 1; + return -1; + } else if((((a2==1)&&((a2==1)&&(((a17==2)&&(((a16==11)&&((a21==10)&&(!(a0==1)&&(((((a5==5)||(a5==6))&&(input==6))&&(a9==10))&&(a19==1)))))&&(a1==13)))&&!(a0==1))))&&((a20==1)&&(!(a26==1)&&(!(a24==1)&&(a12==1)))))){ + a1 = 14; + a19 = 4; + a13 = 1; + a0 = 0; + a9 = 11; + a26 = 0; + a5 = 4; + return 21; + } else if((((((!(a23==1)||((!(a13==1)||(((a1==12)&&(((a13==1)&&(a21==10))&&(a19==2)))&&(a16==7)))&&(a2==1)))||(a18==1))&&!(a26==1))&&!(a26==1))&&((a17==2)&&((((input==4)&&((a5==5)||(a5==6)))&&!(a20==1))&&(a9==8))))){ + a9 = 7; + a5 = 4; + a11 = 1; + a20 = 1; + a2 = 1; + a23 = 1; + a19 = 1; + return -1; + } else if((((a3==1)&&((a16==7)&&((a2==1)&&((a5==6)&&((input==5)&&(a19==2))))))&&(((a17==2)&&((!(a23==1)||((a11==1)&&(((a1==13)&&(((a6==1)&&(a9==8))&&(a13==1)))&&!(a8==1))))&&(a21==12)))&&(a20==1)))){ + a19 = 3; + a21 = 10; + a26 = 0; + a8 = 0; + a16 = 9; + a12 = 1; + a5 = 5; + a1 = 12; + return 23; + } else if((((a20==1)&&((((((input==3)&&(a1==14))&&(a19==3))&&!(a14==1))&&!(a24==1))&&(a9==8)))&&((a5==6)&&((a17==2)&&((!(a2==1)||((a3==1)&&((((a2==1)||!(a12==1))||!(a28==1))&&(a21==12))))&&(a16==7)))))){ + a21 = 10; + a2 = 1; + a19 = 1; + a11 = 1; + a26 = 0; + a9 = 7; + a5 = 4; + a1 = 12; + return -1; + } else if(((((((a19==1)&&(((a2==1)&&(a17==2))&&(a21==12)))||(a18==1))||!(a28==1))||!(a12==1))&&(((((!(a20==1)&&((((a9==7)&&((a5==4)&&(a1==14)))||((((a5==5)&&(a1==13))&&(a9==11))||(((a5==6)&&(a1==13))&&(a9==11))))&&(input==4)))&&!(a14==1))&&(a16==9))&&(a3==1))&&!(a4==1)))){ + a1 = 13; + a20 = 1; + a9 = 7; + a5 = 6; + a4 = 1; + a16 = 8; + a19 = 5; + a29 = 1; + return -1; + } else if(((((a3==1)&&(!(a27==1)&&(((((input==5)&&(((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))))&&(a17==2))&&(a16==11))&&(a6==1))))&&(a11==1))&&((!(a7==1)&&((a19==3)&&((((a21==12)&&(a28==1))&&(a1==14))&&(a20==1))))||!(a3==1)))){ + a6 = 1; + a5 = 4; + a13 = 1; + a19 = 2; + a16 = 8; + a24 = 0; + a9 = 11; + return 25; + } else if((((((a21==10)&&((a1==14)&&(((a17==2)&&((a9==9)&&((a19==5)&&((a12==1)&&(a3==1)))))&&(a12==1))))&&!(a7==1))&&(a3==1))&&((!(a26==1)&&((a16==11)&&((a20==1)&&((input==1)&&((a5==4)||(a5==5))))))&&!(a4==1)))){ + a12 = 1; + a14 = 0; + a5 = 4; + a1 = 12; + a18 = 0; + a19 = 1; + a9 = 7; + a16 = 7; + return -1; + } else if((((a11==1)&&((a13==1)&&(!(a0==1)&&(((a17==2)&&((((a9==7)&&((a5==4)&&(a1==13)))||(((a9==11)&&((a1==12)&&(a5==5)))||((a9==11)&&((a5==6)&&(a1==12)))))&&(input==4)))&&(a21==11)))))&&(((((((a12==1)&&(a16==10))||(a18==1))&&(a19==4))&&(a20==1))||(a7==1))||!(a28==1)))){ + a16 = 7; + a13 = 1; + a5 = 4; + a18 = 0; + a9 = 7; + a21 = 10; + a19 = 1; + a1 = 12; + a14 = 0; + return -1; + } else if((((a20==1)&&((!(a11==1)||(!(a13==1)||(!(a13==1)||((!(a27==1)&&(a11==1))&&(a19==2)))))&&(a21==11)))&&((((!(a7==1)&&((a17==2)&&(((input==1)&&(a1==14))&&(a16==7))))&&(a2==1))&&(a9==7))&&(a5==5)))){ + a0 = 0; + a19 = 1; + a21 = 10; + a5 = 4; + a1 = 12; + a2 = 1; + return -1; + } else if((((a1==14)&&((a21==12)&&(((a16==11)&&(((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==5))&&(a13==1)))&&(a2==1))))&&(((!(a7==1)&&((a2==1)&&(((a17==2)&&((a13==1)&&!(a14==1)))||!(a6==1))))&&(a19==3))&&(a20==1)))){ + a9 = 7; + a19 = 1; + a1 = 12; + a18 = 0; + a21 = 10; + a6 = 1; + a16 = 7; + a27 = 0; + a5 = 4; + return -1; + } else if(((((((a21==12)&&(a12==1))||(a26==1))||(a8==1))&&(a11==1))&&((a17==2)&&((!(a20==1)&&(((a19==4)&&(((a16==10)&&(!(a7==1)&&(((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))&&(input==6))))&&(a1==14)))&&!(a7==1)))&&!(a0==1))))){ + a15 = 1; + a19 = 3; + a21 = 10; + a24 = 1; + a20 = 1; + a5 = 6; + a9 = 8; + return 21; + } else if((((a17==2)&&((a16==8)&&((a14==1)||((((a28==1)&&(a5==5))&&(a19==4))||!(a2==1)))))&&((((!(a26==1)&&((((a1==12)&&((a20==1)&&(input==1)))&&(a9==7))&&(a21==12)))&&(a2==1))&&!(a4==1))&&(a6==1)))){ + a27 = 0; + a21 = 11; + a28 = 1; + a9 = 11; + a1 = 14; + a8 = 0; + a19 = 1; + return -1; + } else if(((!(a2==1)||(((a17==2)&&((a19==5)&&((a16==11)&&((a28==1)&&(a12==1)))))&&(a2==1)))&&(((a2==1)&&((a1==14)&&((a3==1)&&((a20==1)&&(((input==6)&&(((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))))&&(a21==12))))))&&(a28==1)))){ + a11 = 1; + a5 = 4; + a3 = 1; + a9 = 7; + a16 = 7; + a1 = 12; + a19 = 1; + a21 = 10; + return -1; + } else if((((((a2==1)&&((!(a8==1)&&((a21==10)&&(input==6)))&&(a12==1)))&&(a3==1))&&(a19==4))&&(((((((((a13==1)&&!(a18==1))&&(a2==1))&&(a9==9))&&(a1==14))&&(a17==2))&&(a5==6))&&!(a20==1))&&(a16==8)))){ + a21 = 12; + a5 = 4; + a9 = 10; + a2 = 1; + a19 = 1; + a24 = 0; + a20 = 1; + a1 = 12; + return 25; + } else if((((a17==2)&&((a2==1)&&((((a2==1)&&!(a0==1))&&(a1==13))&&(a9==8))))&&((a19==5)&&(((a3==1)&&(((a16==10)&&((!(a4==1)&&(((input==5)&&((a5==5)||(a5==6)))&&!(a27==1)))&&(a21==10)))&&!(a0==1)))&&(a20==1))))){ + a26 = 0; + a9 = 7; + a19 = 1; + a5 = 4; + a16 = 7; + a6 = 1; + a1 = 12; + a23 = 1; + return -1; + } else if((((!(a2==1)||(((((a21==11)&&(a12==1))||!(a3==1))||!(a23==1))&&!(a0==1)))&&(a17==2))&&((a19==2)&&((a23==1)&&(!(a8==1)&&(((a20==1)&&((((((a5==5)&&(a1==13))&&(a9==11))||(((a1==13)&&(a5==6))&&(a9==11)))||((a9==7)&&((a5==4)&&(a1==14))))&&(input==4)))&&(a16==7))))))){ + a9 = 7; + a24 = 0; + a1 = 12; + a19 = 1; + a18 = 0; + a5 = 4; + a0 = 0; + a21 = 10; + return -1; + } else if(((!(a20==1)&&((((((a3==1)&&(a16==8))&&(a19==5))&&(a1==14))||!(a13==1))||(a18==1)))&&((a21==12)&&((a17==2)&&(((a11==1)&&((!(a27==1)&&((input==5)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))))&&!(a4==1)))&&(a28==1)))))){ + if((a27==1)){ + a21 = 10; + a25 = 0; + a16 = 7; + a23 = 0; + a20 = 1; + a19 = 1; + a1 = 13; + a9 = 7; + a5 = 4; + a22 = 1; + }else{ + a9 = 11; + a19 = 3; + a16 = 11; + a22 = 0; + a20 = 1; + a7 = 1; + a5 = 4; + a26 = 1; + } + return 21; + } else if((((a20==1)&&(((((a23==1)&&((a1==12)&&((a19==1)&&(input==5))))&&(a17==2))&&(a9==8))&&(a6==1)))&&((((((a5==6)&&(((a21==12)&&(a3==1))&&(a16==11)))||!(a11==1))&&(a6==1))||(a24==1))||(a7==1)))){ + a9 = 7; + a16 = 7; + a5 = 4; + a6 = 1; + a11 = 1; + a21 = 10; + a3 = 1; + return -1; + } else if((((a21==10)&&(((a19==3)&&(!(a4==1)&&((((a5==5)&&((a1==14)&&(input==4)))&&(a17==2))&&(a20==1))))&&(a6==1)))&&(((a16==8)&&(((a9==10)&&(!(a12==1)||((a13==1)&&(a6==1))))&&!(a14==1)))||!(a11==1)))){ + a1 = 12; + a2 = 1; + a19 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + a7 = 0; + return -1; + } else if((((a19==3)&&((((a1==14)&&((((a17==2)&&(((input==4)&&(((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))))&&!(a0==1)))&&(a6==1))&&!(a14==1)))&&(a13==1))&&(a28==1)))&&((a16==9)&&((a20==1)&&(!(a13==1)||((a21==10)&&(a28==1))))))){ + a9 = 7; + a8 = 0; + a7 = 0; + a5 = 4; + a1 = 12; + a16 = 7; + a24 = 0; + a19 = 1; + return -1; + } else if((((((a3==1)&&(!(a2==1)||((a5==6)&&((a9==10)&&(a12==1)))))||!(a23==1))||!(a3==1))&&(((a1==12)&&(((a17==2)&&((a19==4)&&(!(a7==1)&&((a21==11)&&((input==3)&&(a20==1))))))&&(a16==7)))&&(a13==1)))){ + a9 = 7; + a3 = 1; + a21 = 10; + a12 = 1; + a19 = 1; + a18 = 0; + a5 = 4; + return -1; + } else if(((((a1==14)&&(((a20==1)&&((a23==1)&&!(a8==1)))&&(a17==2)))&&(a16==10))&&((a11==1)&&(!(a0==1)&&((((!(a18==1)&&(((input==4)&&(((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))))&&!(a4==1)))&&(a21==12))&&(a19==3))&&!(a7==1)))))){ + a1 = 12; + a11 = 1; + a5 = 4; + a16 = 7; + a19 = 1; + a21 = 10; + a9 = 7; + a7 = 0; + return -1; + } else if((((a19==5)&&((a28==1)&&(((a6==1)&&((a17==2)&&((a12==1)&&(a21==11))))&&!(a8==1))))&&((a1==14)&&(((a16==8)&&((((a11==1)&&(((input==4)&&((a5==4)||(a5==5)))&&(a3==1)))&&!(a8==1))&&!(a20==1)))&&(a9==8))))){ + if((a12==1)){ + a12 = 0; + a9 = 7; + a22 = 0; + a19 = 1; + a21 = 10; + a1 = 12; + a20 = 1; + a5 = 5; + a16 = 7; + a8 = 1; + }else{ + a21 = 10; + a1 = 12; + a10 = 0; + a7 = 1; + a5 = 4; + a19 = 2; + a29 = 1; + a16 = 7; + a20 = 1; + a9 = 10; + } + return -1; + } else if(((!(a13==1)||(!(a12==1)||((a16==7)&&((a9==11)&&((((((a13==1)&&(a21==12))&&(a17==2))&&(a3==1))||!(a3==1))&&(a19==1))))))&&(!(a4==1)&&(!(a24==1)&&(!(a20==1)&&((((a5==4)||(a5==5))&&(input==3))&&(a1==12))))))){ + a9 = 7; + a27 = 0; + a20 = 1; + a5 = 4; + a13 = 1; + a23 = 1; + a21 = 10; + return -1; + } else if(((((((a19==2)&&((a1==14)&&(((a17==2)&&(a23==1))&&(a21==11))))&&(a16==7))&&!(a26==1))||(a26==1))&&((!(a8==1)&&((a2==1)&&(((a2==1)&&((input==1)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))))&&(a20==1))))&&(a28==1)))){ + a21 = 10; + a11 = 1; + a3 = 1; + a28 = 1; + a1 = 12; + a9 = 7; + a19 = 1; + a5 = 4; + return -1; + } else if((((!(a27==1)&&(!(a0==1)&&((a9==10)&&((a19==1)&&((a21==10)&&(input==5))))))&&(a17==2))&&(((((a16==9)&&((((a1==14)&&((a2==1)&&!(a26==1)))&&(a20==1))&&(a5==5)))&&!(a0==1))||(a0==1))||!(a28==1)))){ + if((a4==1)){ + a19 = 4; + a1 = 13; + a21 = 11; + a8 = 0; + a16 = 7; + a0 = 0; + a9 = 9; + a20 = 0; + a6 = 1; + }else{ + a19 = 3; + a5 = 4; + a16 = 8; + a26 = 0; + a4 = 0; + a9 = 7; + a11 = 1; + a20 = 0; + } + return 25; + } else if(((((a8==1)||((a16==10)&&(((!(a2==1)||((a2==1)&&(a17==2)))&&(a23==1))&&(a9==11))))&&!(a20==1))&&((((((a12==1)&&((a13==1)&&((input==4)&&(a19==2))))&&!(a24==1))&&(a1==13))&&(a21==10))&&(a5==4)))){ + if((a13==1)){ + a4 = 1; + a19 = 4; + a29 = 1; + a16 = 7; + a12 = 0; + a9 = 9; + a1 = 14; + }else{ + a2 = 0; + a21 = 12; + a15 = 0; + a5 = 5; + a16 = 8; + a1 = 12; + a7 = 1; + } + return 22; + } else if(((((a21==10)&&((a1==12)&&(!(a27==1)&&((a14==1)||(((a11==1)&&((a27==1)||(((a6==1)||!(a2==1))&&(a20==1))))||(a8==1))))))&&(a17==2))&&(((a19==3)&&((((a5==4)||(a5==5))&&(input==4))&&(a16==9)))&&(a9==11)))){ + a5 = 6; + a9 = 8; + a16 = 8; + a1 = 14; + a6 = 1; + a7 = 0; + a26 = 0; + a19 = 5; + a21 = 12; + return -1; + } else if((((a16==10)&&(((a21==12)&&((input==4)&&((((a5==4)&&(a1==14))&&(a9==7))||(((a9==11)&&((a5==5)&&(a1==13)))||((a9==11)&&((a1==13)&&(a5==6)))))))&&!(a27==1)))&&(((((((((a3==1)||(a8==1))&&(a17==2))||(a8==1))&&(a19==1))||(a0==1))&&!(a27==1))&&(a20==1))||(a26==1)))){ + a26 = 0; + a21 = 10; + a16 = 7; + a7 = 0; + a5 = 4; + a9 = 7; + a14 = 0; + a1 = 12; + return -1; + } else if((((a20==1)&&((a18==1)||(!(a13==1)||((((a24==1)||(!(a23==1)||((a21==10)&&((a28==1)&&(a16==8)))))||(a24==1))&&(a9==8)))))&&((a1==14)&&(((a2==1)&&((a5==5)&&((input==4)&&(a17==2))))&&(a19==5))))){ + a27 = 0; + a16 = 7; + a21 = 11; + a13 = 1; + a26 = 0; + a9 = 7; + a19 = 3; + a1 = 13; + return 22; + } else if(((((a21==11)&&((((((((((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(input==5))&&!(a14==1))&&!(a27==1))&&!(a20==1))&&(a1==14))&&(a16==8))&&(a17==2)))&&(a19==2))&&(((a3==1)&&(((a13==1)||!(a6==1))&&!(a18==1)))||!(a12==1)))){ + a1 = 13; + a9 = 7; + a4 = 0; + a26 = 0; + a19 = 4; + a12 = 1; + a20 = 1; + a16 = 11; + a5 = 4; + return 25; + } else if((((!(a20==1)&&(((a21==11)&&(((((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a9==7))&&(a6==1))&&!(a0==1)))&&(a3==1)))&&(a1==12))&&((a8==1)||((a16==9)&&((((a19==4)&&((a7==1)||(a2==1)))&&(a17==2))&&!(a4==1)))))){ + a16 = 7; + a27 = 1; + a5 = 4; + a25 = 1; + a9 = 11; + a1 = 14; + a19 = 5; + a15 = 0; + return 22; + } else if((((!(a18==1)&&(((a20==1)&&((a17==2)&&(((input==1)&&((a5==5)||(a5==6)))&&!(a7==1))))&&!(a26==1)))&&(a9==10))&&((a19==1)&&((((a16==8)&&((((a3==1)&&(a6==1))&&!(a4==1))||(a14==1)))&&(a21==11))&&(a1==14))))){ + a28 = 1; + a16 = 7; + a5 = 4; + a1 = 12; + a9 = 7; + a7 = 0; + a21 = 10; + a8 = 0; + return -1; + } else if((((!(a14==1)&&(((((a1==12)&&(input==6))&&!(a0==1))&&(a13==1))&&(a6==1)))&&(a9==11))&&(((((((a5==6)&&(!(a26==1)&&((a12==1)&&(a28==1))))&&(a17==2))&&(a16==8))&&(a20==1))&&(a19==5))&&(a21==11)))){ + a21 = 10; + a19 = 1; + a14 = 0; + a16 = 7; + a9 = 7; + a11 = 1; + a23 = 1; + a5 = 4; + return -1; + } else if((((((a23==1)&&((!(a11==1)||((a11==1)&&(a17==2)))||(a0==1)))&&(a19==5))&&!(a0==1))&&((a1==14)&&((a16==10)&&(((a20==1)&&((a6==1)&&(((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==5))&&!(a14==1))))&&(a21==11)))))){ + a2 = 1; + a1 = 13; + a5 = 4; + a27 = 0; + a9 = 9; + a16 = 7; + a19 = 2; + a21 = 10; + return 26; + } else if((((a20==1)&&((!(a8==1)&&((((input==4)&&((a5==4)||(a5==5)))&&!(a8==1))&&!(a0==1)))&&!(a4==1)))&&((((a17==2)&&((a16==11)&&((((a1==13)&&((a2==1)&&(a21==12)))&&(a9==7))||(a8==1))))&&(a19==4))||(a24==1)))){ + a5 = 4; + a27 = 0; + a19 = 1; + a21 = 10; + a12 = 1; + a1 = 12; + a16 = 7; + a6 = 1; + return -1; + } else if((((!(a26==1)&&(!(a26==1)&&(!(a20==1)&&((!(a8==1)&&((a9==9)&&((a1==12)&&(((a5==4)||(a5==5))&&(input==5)))))&&(a16==9)))))&&!(a18==1))&&((((((a17==2)&&(a28==1))&&(a21==12))||!(a23==1))&&(a12==1))&&(a19==1)))){ + a28 = 0; + a9 = 11; + a16 = 11; + a21 = 10; + a10 = 1; + a5 = 4; + a1 = 13; + a15 = 1; + a19 = 3; + return -1; + } else if((((a19==5)&&(((!(a8==1)&&((a5==6)&&((!(a14==1)&&((a1==13)&&((input==4)&&(a9==11))))&&(a12==1))))&&(a12==1))&&!(a20==1)))&&((a16==8)&&((a17==2)&&(((a28==1)&&((a21==12)&&(a11==1)))||!(a11==1)))))){ + if((a17==4)){ + a18 = 1; + a21 = 11; + a20 = 1; + a15 = 0; + a1 = 14; + a9 = 9; + a16 = 7; + a19 = 1; + a14 = 1; + }else{ + a11 = 0; + a5 = 5; + a9 = 9; + a4 = 1; + a15 = 1; + a16 = 9; + a21 = 11; + a19 = 2; + } + return -1; + } else if((((a3==1)&&((a5==5)&&((a1==13)&&(((a9==9)&&((!(a18==1)&&((input==6)&&(a16==8)))&&(a21==11)))&&(a19==3)))))&&(((((a20==1)&&(!(a2==1)||((a3==1)&&(a28==1))))&&(a17==2))||(a0==1))&&!(a8==1)))){ + a27 = 0; + a6 = 1; + a19 = 1; + a1 = 12; + a16 = 10; + a4 = 0; + return 23; + } else if(((((a1==14)&&((a9==10)&&((a3==1)&&(a20==1))))&&(a16==8))&&((a19==4)&&((a21==10)&&(!(a24==1)&&(((((!(a7==1)&&((a12==1)&&((input==4)&&((a5==6)||((a5==4)||(a5==5))))))&&(a2==1))&&!(a7==1))&&!(a14==1))&&(a17==2))))))){ + a19 = 1; + a16 = 7; + a12 = 1; + a0 = 0; + a9 = 7; + a3 = 1; + a1 = 12; + a5 = 4; + return -1; + } else if((((((a9==9)&&((a26==1)||(((((a21==10)&&((a27==1)||((a20==1)&&(a11==1))))||!(a6==1))&&(a17==2))&&!(a8==1))))&&!(a7==1))&&(a19==3))&&((!(a27==1)&&(((input==1)&&((a5==5)||(a5==6)))&&(a16==7)))&&(a1==13)))){ + a1 = 14; + a21 = 11; + a11 = 1; + a5 = 6; + a12 = 1; + a0 = 0; + a19 = 1; + a9 = 8; + return 26; + } else if((((((a26==1)||(!(a28==1)||(((((a12==1)&&(a19==4))&&(a20==1))&&(a9==10))||(a7==1))))||!(a2==1))&&(a23==1))&&((a5==4)&&(((a16==8)&&((a17==2)&&(((a21==11)&&(input==6))&&(a1==14))))&&!(a24==1))))){ + a26 = 0; + a6 = 1; + a5 = 5; + a1 = 13; + a19 = 2; + a21 = 10; + a16 = 7; + a9 = 9; + a2 = 1; + return 25; + } else if((((a9==11)&&(!(a23==1)||((((a17==2)&&((!(a7==1)&&(a2==1))&&(a5==4)))&&!(a14==1))&&(a16==8))))&&((a12==1)&&(((a19==4)&&(((((input==1)&&(a20==1))&&(a3==1))&&(a21==12))&&(a12==1)))&&(a1==12))))){ + a19 = 1; + a14 = 0; + a21 = 10; + a24 = 0; + a9 = 7; + a4 = 0; + a16 = 7; + return -1; + } else if((((((((((!(a20==1)&&((a11==1)&&(((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4)))&&(input==6))))&&!(a14==1))&&!(a8==1))&&!(a7==1))&&!(a24==1))&&(a17==2))&&(a19==1))&&(a21==10))&&(((a16==7)&&(!(a23==1)||(a11==1)))&&(a1==14)))){ + a6 = 1; + a5 = 4; + a27 = 0; + a23 = 1; + a9 = 7; + a20 = 1; + a1 = 12; + return -1; + } else if(((((a17==2)&&((!(a23==1)||(!(a0==1)&&((a1==14)&&(((a0==1)||(!(a28==1)||(a6==1)))&&(a16==9)))))||!(a11==1)))&&(a19==5))&&(!(a20==1)&&(!(a14==1)&&((a21==10)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==3))))))){ + if((a11==1)){ + a2 = 0; + a9 = 8; + a1 = 12; + a0 = 1; + a16 = 10; + a5 = 5; + a28 = 0; + a21 = 12; + }else{ + a9 = 7; + a25 = 0; + a13 = 0; + a10 = 1; + a1 = 12; + a19 = 2; + a5 = 5; + a16 = 7; + a20 = 1; + } + return 21; + } else if(((!(a20==1)&&((((a28==1)&&(!(a6==1)||((a2==1)&&((a1==14)&&((a17==2)&&(a6==1))))))&&(a19==2))&&(a9==9)))&&(((a21==10)&&(((((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a24==1))&&!(a8==1))&&(a3==1)))&&(a16==10)))){ + a8 = 1; + a21 = 11; + a13 = 0; + a20 = 1; + a9 = 8; + a5 = 4; + a29 = 0; + a19 = 3; + return 25; + } else if((((a24==1)||(((a5==6)&&((((a11==1)&&!(a0==1))&&(a16==10))&&(a12==1)))&&(a19==5)))&&(!(a7==1)&&(!(a26==1)&&((a9==8)&&((a17==2)&&((((a21==10)&&((input==1)&&!(a20==1)))&&(a23==1))&&(a1==13)))))))){ + a19 = 1; + a16 = 7; + a22 = 0; + a7 = 1; + a6 = 0; + a20 = 1; + return -1; + } else if((((a12==1)&&((a5==6)&&((a21==11)&&(((a19==4)&&((a2==1)&&((input==3)&&!(a20==1))))&&!(a4==1)))))&&(((a23==1)&&((a1==14)&&((a16==7)&&((((a23==1)&&(a9==9))&&!(a26==1))&&(a17==2)))))&&(a6==1)))){ + a21 = 10; + a1 = 12; + a5 = 4; + a3 = 1; + a20 = 1; + a24 = 0; + a19 = 1; + a18 = 0; + a9 = 7; + return -1; + } else if((((a12==1)&&(!(a26==1)&&(((a5==5)&&(((a28==1)&&((a16==8)&&((input==1)&&(a9==8))))&&!(a14==1)))&&(a17==2))))&&((!(a3==1)||(((a21==10)&&(!(a20==1)&&((a19==5)&&(a13==1))))&&(a1==13)))&&!(a7==1)))){ + a21 = 12; + a16 = 10; + a26 = 0; + a5 = 6; + a9 = 11; + a20 = 1; + a28 = 1; + a24 = 0; + return 22; + } else if((((a1==12)&&(((!(a18==1)&&((!(a14==1)&&(!(a18==1)&&((input==1)&&((((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4))))))&&(a17==2)))&&(a20==1))&&(a19==4)))&&(((a16==7)&&((((a3==1)&&(a6==1))||(a26==1))&&(a21==12)))&&(a6==1)))){ + a24 = 0; + a16 = 9; + a19 = 1; + a5 = 6; + a9 = 10; + a21 = 11; + a14 = 0; + a18 = 0; + return 22; + } else if((((((((!(a18==1)&&(a23==1))&&!(a24==1))&&(a3==1))&&(a21==12))&&(a16==9))&&(a1==13))&&(!(a20==1)&&(!(a18==1)&&((a9==8)&&(((!(a27==1)&&(((input==6)&&(a17==2))&&(a23==1)))&&(a19==4))&&(a5==5))))))){ + if((a28==1)){ + a1 = 12; + a8 = 1; + a16 = 10; + a22 = 0; + a19 = 3; + a9 = 11; + a5 = 6; + a15 = 0; + }else{ + a20 = 1; + a6 = 0; + a16 = 7; + a21 = 10; + a22 = 1; + a19 = 1; + a0 = 1; + a1 = 14; + a9 = 7; + } + return -1; + } else if(((((a21==10)&&((a3==1)&&((input==5)&&(((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))))))&&!(a0==1))&&((((a17==2)&&(((((a4==1)||((a14==1)||((a19==1)&&(a13==1))))||!(a23==1))||!(a6==1))&&(a1==12)))&&(a16==9))&&!(a20==1)))){ + a5 = 6; + a12 = 0; + a1 = 13; + a4 = 1; + a16 = 8; + a19 = 3; + a28 = 0; + a9 = 8; + return 26; + } else if((((a17==2)&&(((a21==12)&&(((!(a4==1)&&((!(a6==1)||(a23==1))&&(a9==7)))||(a18==1))||(a18==1)))&&(a1==12)))&&(((a19==1)&&(((a20==1)&&(((input==5)&&(a16==8))&&!(a4==1)))&&(a13==1)))&&(a5==5)))){ + a11 = 1; + a16 = 7; + a5 = 4; + a3 = 1; + a21 = 10; + a14 = 0; + return -1; + } else if((((a21==10)&&(((a9==9)&&((a26==1)||(!(a2==1)||((a19==4)&&(!(a24==1)&&(!(a11==1)||(a28==1)))))))&&(a20==1)))&&((((a5==4)&&((!(a8==1)&&((input==5)&&(a17==2)))&&(a6==1)))&&(a16==11))&&(a1==14)))){ + a28 = 1; + a9 = 7; + a16 = 7; + a24 = 0; + a19 = 1; + a1 = 12; + return -1; + } else if((((!(a7==1)&&(!(a27==1)&&((a28==1)&&((a20==1)&&((a13==1)&&((a21==10)&&((input==5)&&(a1==14))))))))&&(a17==2))&&((((a5==4)&&((a14==1)||(((a16==8)&&(a11==1))&&(a19==2))))&&(a9==7))||(a8==1)))){ + a11 = 1; + a19 = 1; + a16 = 7; + a8 = 0; + a1 = 12; + return -1; + } else if((((a21==10)&&((a9==10)&&((((a3==1)&&(a17==2))&&(a11==1))&&(a16==7))))&&((a20==1)&&((a19==3)&&((a1==13)&&(!(a7==1)&&((a3==1)&&(!(a7==1)&&(!(a0==1)&&((a28==1)&&(((a5==4)||(a5==5))&&(input==4)))))))))))){ + a24 = 0; + a1 = 12; + a19 = 1; + a5 = 4; + a9 = 7; + a13 = 1; + a4 = 0; + return -1; + } else if(((((a6==1)&&((a20==1)&&((((((((a19==1)&&(((a1==14)&&(a5==5))&&(a9==11)))||((a19==1)&&((a9==11)&&((a1==14)&&(a5==6)))))||((a19==2)&&(((a1==12)&&(a5==4))&&(a9==7))))&&(input==5))&&(a21==11))&&!(a8==1))&&(a13==1))))&&!(a14==1))&&(!(a11==1)||((((a3==1)&&(a16==7))&&!(a26==1))&&(a17==2))))){ + a19 = 2; + a16 = 8; + a7 = 0; + a5 = 4; + a9 = 7; + a27 = 0; + a1 = 13; + a21 = 10; + return 25; + } else if((((a21==12)&&((a1==13)&&(!(a0==1)&&((input==6)&&((a5==4)||(a5==5))))))&&(((a19==4)&&((a20==1)&&((!(a11==1)||(((a9==8)&&((a27==1)||((!(a6==1)||(a2==1))&&!(a4==1))))||(a4==1)))&&(a17==2))))&&(a16==9)))){ + a23 = 1; + a21 = 11; + a9 = 9; + a16 = 10; + a5 = 5; + a19 = 2; + a28 = 1; + a13 = 1; + return 21; + } else if((((((a23==1)&&(a19==5))&&(a20==1))&&!(a0==1))&&((((a5==6)&&(!(a0==1)&&(!(a4==1)&&((a17==2)&&(!(a4==1)&&(((a21==12)&&(!(a8==1)&&((input==1)&&(a16==11))))&&(a1==13)))))))&&(a9==11))&&(a12==1)))){ + a19 = 1; + a1 = 12; + a18 = 0; + a21 = 10; + a11 = 1; + a16 = 7; + a12 = 1; + a9 = 7; + a5 = 4; + return -1; + } else if((((a17==2)&&((a9==7)&&(!(a28==1)||((((a13==1)&&(((a28==1)&&(a16==7))&&!(a7==1)))&&!(a4==1))&&!(a14==1)))))&&((((((a21==11)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4)))&&(a20==1))&&(a1==12))&&(a19==5))&&(a3==1)))){ + a21 = 10; + a19 = 1; + a11 = 1; + a2 = 1; + a5 = 4; + return -1; + } else if((((((!(a0==1)&&((((a6==1)&&(((input==4)&&((a5==4)||(a5==5)))&&!(a14==1)))&&(a9==11))&&(a6==1)))&&(a28==1))&&(a16==9))&&(a20==1))&&(((((a19==5)&&((a6==1)||(a14==1)))&&(a21==11))&&(a1==14))&&(a17==2)))){ + a21 = 10; + a5 = 6; + a13 = 1; + a1 = 13; + a11 = 1; + a12 = 1; + a19 = 3; + a9 = 7; + a16 = 7; + return 25; + } else if((((a23==1)&&((a17==2)&&((a16==9)&&((((a21==11)&&((a19==5)&&((input==3)&&((a5==6)||((a5==4)||(a5==5))))))&&(a9==8))&&!(a14==1)))))&&((((((!(a20==1)&&(a3==1))&&(a1==12))||!(a3==1))&&(a28==1))&&!(a27==1))&&!(a4==1)))){ + a16 = 7; + a1 = 13; + a21 = 10; + a13 = 0; + a20 = 1; + a5 = 6; + a22 = 1; + a9 = 11; + a19 = 1; + a26 = 1; + return -1; + } else if((((a1==12)&&((a17==2)&&((a16==9)&&(!(a11==1)&&(!(a23==1)&&((a12==1)&&!(a12==1)))))))&&(((a20==1)&&(((a0==1)&&((a9==7)&&(!(a11==1)&&(!(a28==1)&&((input==4)&&((a5==5)||(a5==6)))))))&&(a21==10)))&&(a19==5)))){ + a26 = 1; + a13 = 0; + a5 = 6; + a3 = 0; + return 26; + } else if(((((!(a12==1)&&(!(a23==1)&&(((((a11==1)&&(a21==11))&&(a1==14))&&(a20==1))&&(a19==1))))&&(a14==1))&&!(a28==1))&&((((((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==4))&&(a17==2))&&(a26==1))&&(a16==9))&&!(a28==1)))){ + a10 = 1; + a21 = 12; + a11 = 0; + a29 = 1; + a19 = 4; + a20 = 0; + a16 = 7; + a9 = 7; + a5 = 6; + a1 = 13; + return 23; + } else if(((!(a4==1)&&((((a6==1)&&(((a13==1)&&((a21==10)&&(((((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(input==1))&&(a20==1))))&&!(a14==1)))&&(a16==11))&&!(a27==1)))&&((a11==1)&&((((a3==1)&&(a17==2))&&(a19==2))&&(a1==12))))){ + a6 = 1; + a9 = 9; + a1 = 13; + a3 = 1; + a5 = 5; + a21 = 11; + a26 = 0; + return 22; + } else if((((a5==5)&&((a9==11)&&(((a28==1)&&(((a16==7)&&((!(a20==1)&&(input==6))&&(a12==1)))&&(a23==1)))&&(a17==2))))&&((((a26==1)||((a3==1)&&(((a23==1)&&(a21==11))&&!(a24==1))))&&(a19==4))&&(a1==12)))){ + a1 = 14; + a20 = 1; + a16 = 11; + a11 = 1; + a26 = 0; + a19 = 3; + a21 = 12; + a14 = 0; + a9 = 10; + return 25; + } else if((((a27==1)||(((((((a1==12)&&((a6==1)||!(a11==1)))&&(a19==4))&&(a16==8))&&!(a20==1))&&!(a24==1))||(a4==1)))&&(!(a14==1)&&(((((((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10))))&&(input==5))&&(a17==2))&&!(a8==1))&&(a21==10))))){ + a19 = 1; + a9 = 7; + a27 = 0; + a14 = 0; + a23 = 1; + a16 = 7; + a5 = 4; + a20 = 1; + return -1; + } else if(((!(a20==1)&&((a27==1)||((((a23==1)&&(a28==1))&&(a17==2))||!(a11==1))))&&((a9==11)&&(((a19==5)&&(((a21==10)&&(((!(a24==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))&&!(a14==1))&&(a11==1)))&&(a1==14)))&&(a16==9))))){ + a19 = 1; + a0 = 1; + a3 = 0; + a20 = 1; + a5 = 4; + a16 = 7; + a1 = 12; + a27 = 1; + a9 = 10; + return -1; + } else if((((!(a3==1)||((a17==2)&&(a2==1)))&&(a16==10))&&((a11==1)&&(!(a4==1)&&((a28==1)&&((((a20==1)&&((a3==1)&&(((a21==10)&&(((a9==7)&&(input==4))&&!(a4==1)))&&(a19==1))))&&(a1==13))&&(a5==5))))))){ + a19 = 5; + a13 = 1; + a16 = 9; + a24 = 0; + a9 = 11; + a1 = 14; + a5 = 6; + a27 = 0; + return 25; + } else if(((((a1==14)&&((!(a14==1)&&((a16==11)&&((a9==8)&&(input==6))))&&(a19==2)))&&(a17==2))&&((a5==5)&&((a21==10)&&(((a12==1)&&(!(a20==1)&&((a23==1)&&(((a6==1)&&!(a18==1))&&!(a26==1)))))&&!(a7==1)))))){ + a15 = 0; + a19 = 1; + a10 = 0; + a9 = 11; + a16 = 7; + a20 = 1; + a22 = 0; + a5 = 6; + return -1; + } else if(((((((a17==2)&&(!(a18==1)&&(((!(a4==1)&&((input==1)&&((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a5==4)&&(a9==9)))))&&!(a20==1))&&!(a14==1))))&&(a21==10))&&!(a26==1))&&(a19==1))&&((a16==10)&&((a1==13)&&(((a11==1)||!(a28==1))||(a8==1)))))){ + if((a1==12)){ + a16 = 7; + a11 = 0; + a9 = 7; + a5 = 5; + a4 = 1; + a1 = 12; + a13 = 0; + a20 = 1; + }else{ + a21 = 11; + a14 = 1; + a9 = 10; + a16 = 7; + a20 = 1; + a3 = 0; + a5 = 5; + a12 = 0; + a19 = 4; + } + return -1; + } else if((((((a7==1)||(!(a23==1)||((a11==1)&&(a12==1))))||(a14==1))&&(a5==5))&&((a17==2)&&((a19==5)&&(((a20==1)&&((!(a26==1)&&((a13==1)&&((a9==9)&&((a21==11)&&(input==4)))))&&(a1==12)))&&(a16==10)))))){ + a5 = 6; + a6 = 1; + a3 = 1; + a11 = 1; + return 25; + } else if((((((a12==1)||!(a13==1))&&!(a26==1))||!(a3==1))&&((a1==12)&&((a21==12)&&((a19==5)&&(((!(a20==1)&&(((a17==2)&&((((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5)))&&(input==1))&&(a23==1)))&&(a6==1)))&&!(a7==1))&&(a16==9))))))){ + a5 = 6; + a21 = 10; + a29 = 0; + a19 = 1; + a26 = 1; + a1 = 14; + a9 = 7; + return 21; + } else if((((((((a20==1)&&((a23==1)&&((((((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(input==6))&&(a11==1))&&!(a27==1))))&&(a19==2))&&(a13==1))&&!(a14==1))&&(a21==11))&&((a1==14)&&((a16==10)&&(!(a2==1)||((a17==2)&&(a2==1))))))){ + a28 = 1; + a1 = 13; + a9 = 9; + a14 = 0; + a0 = 0; + a5 = 4; + a21 = 10; + a16 = 7; + return -1; + } else if((((((a8==1)||((a17==2)&&((a7==1)||((a14==1)||(a3==1)))))&&!(a14==1))||!(a3==1))&&(!(a7==1)&&((((((((((a1==14)&&(a5==6))&&(a9==11))&&(a19==2))||((((a5==4)&&(a1==12))&&(a9==7))&&(a19==3)))||((a19==3)&&((a9==7)&&((a5==5)&&(a1==12)))))&&(input==1))&&(a16==11))&&(a20==1))&&(a21==10))))){ + a16 = 7; + a3 = 1; + a19 = 1; + a23 = 1; + a0 = 0; + a1 = 12; + a9 = 7; + a5 = 4; + return -1; + } else if(((((!(a7==1)&&((((input==5)&&(a17==2))&&(a21==10))&&!(a26==1)))&&(a1==14))&&(a6==1))&&((((a5==4)&&(((a19==4)&&(!(a0==1)&&((a20==1)&&((a9==8)&&(a13==1)))))&&(a12==1)))&&(a16==9))||!(a23==1)))){ + a19 = 1; + a16 = 7; + a18 = 0; + a6 = 1; + a1 = 12; + a9 = 7; + a24 = 0; + return -1; + } else if((((a17==2)&&((a26==1)||((((a3==1)&&!(a20==1))&&(a28==1))&&(a13==1))))&&(!(a24==1)&&(((((a1==12)&&(((((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4)))&&(input==3))&&(a19==4))&&!(a26==1)))&&(a21==12))&&!(a8==1))&&(a16==8))))){ + a2 = 0; + a9 = 11; + a13 = 0; + a5 = 4; + a19 = 1; + a27 = 1; + a16 = 9; + a1 = 14; + a20 = 1; + return 22; + } else if((((((a13==1)&&(((a21==11)&&(((a13==1)&&((input==1)&&((a5==4)||(a5==5))))&&!(a20==1)))&&(a1==14)))&&(a13==1))&&(a6==1))&&(((((a19==4)&&((a9==10)&&((a17==2)&&(a3==1))))||!(a12==1))&&!(a0==1))&&(a16==10)))){ + a16 = 11; + a21 = 10; + a6 = 0; + a24 = 1; + a18 = 1; + a20 = 1; + a19 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if((((a19==3)&&(((((!(a27==1)&&((input==4)&&((((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4)))))&&(a16==7))&&!(a18==1))&&!(a18==1))&&!(a20==1)))&&(((a4==1)||(((a24==1)||(((a1==13)&&(a6==1))&&(a17==2)))||!(a11==1)))&&(a21==10)))){ + if((a25==1)){ + a4 = 0; + a3 = 1; + a1 = 14; + a5 = 6; + a9 = 10; + a8 = 0; + a19 = 5; + }else{ + a4 = 0; + a1 = 14; + a16 = 8; + a9 = 9; + a20 = 1; + a19 = 4; + a21 = 12; + a23 = 1; + a3 = 1; + a5 = 6; + } + return 25; + } else if((((a21==10)&&((a17==2)&&(((a7==1)||((a14==1)||((a3==1)||(a26==1))))||(a26==1))))&&(!(a20==1)&&(((a1==14)&&((a16==10)&&((!(a26==1)&&((input==4)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))))&&(a12==1))))&&(a19==5))))){ + a22 = 0; + a19 = 1; + a1 = 13; + a2 = 0; + a16 = 7; + a9 = 7; + a7 = 1; + a20 = 1; + a5 = 6; + return -1; + } else if((((a19==3)&&(((a9==9)&&(!(a20==1)&&((a3==1)&&(a28==1))))&&(a6==1)))&&((a21==11)&&(!(a0==1)&&((((((a6==1)&&((a1==12)&&((a5==4)&&(input==5))))&&!(a4==1))&&(a16==9))&&(a2==1))&&(a17==2)))))){ + if((a26==1)){ + a5 = 5; + a15 = 0; + a21 = 10; + a16 = 7; + a25 = 1; + a10 = 1; + a9 = 7; + a19 = 2; + a20 = 1; + }else{ + a3 = 0; + a9 = 10; + a2 = 0; + a21 = 10; + a5 = 5; + a20 = 1; + a16 = 7; + a19 = 2; + } + return -1; + } else if((((a19==5)&&(((((!(a7==1)&&((a1==14)&&((input==1)&&(a16==8))))&&(a17==2))&&(a9==7))&&(a11==1))&&(a5==4)))&&(((!(a6==1)||(!(a20==1)&&((a21==12)&&(!(a24==1)&&(a28==1)))))||(a7==1))&&(a23==1)))){ + a9 = 8; + a11 = 0; + a21 = 10; + a16 = 7; + a20 = 1; + a14 = 1; + a19 = 1; + return -1; + } else if(((((a16==10)&&(!(a2==1)||((a1==14)&&((!(a20==1)&&((a11==1)&&(a11==1)))&&(a19==2)))))&&!(a26==1))&&((a9==9)&&((a28==1)&&((a13==1)&&(!(a27==1)&&((a21==10)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a17==2))))))))){ + a16 = 8; + a19 = 5; + a13 = 0; + a10 = 0; + a9 = 8; + a20 = 1; + a1 = 12; + a22 = 0; + a5 = 5; + return 23; + } else if((((a17==2)&&(((a1==14)&&(((a4==1)&&((a20==1)&&((((a21==12)&&(((((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))&&(input==4))&&(a8==1)))&&(a7==1))&&(a0==1))))&&(a19==2)))&&!(a3==1)))&&((a16==11)&&((a28==1)&&!(a3==1))))){ + a15 = 1; + a19 = 1; + a16 = 7; + a22 = 0; + a5 = 6; + a1 = 12; + a21 = 10; + a9 = 7; + return -1; + } else if((((!(a7==1)&&(((((a19==1)&&((input==6)&&!(a20==1)))&&(a13==1))&&(a5==4))&&(a1==12)))&&(a9==7))&&(((a16==8)&&((a21==12)&&(((((a12==1)||!(a2==1))||!(a11==1))&&!(a26==1))&&(a12==1))))&&(a17==2)))){ + a4 = 1; + a20 = 1; + a9 = 9; + a19 = 2; + a16 = 7; + a21 = 10; + a15 = 1; + return -1; + } else if((((a21==11)&&(!(a28==1)||((((a3==1)&&(a17==2))||!(a6==1))&&!(a0==1))))&&((!(a18==1)&&((a9==10)&&((a19==1)&&((a1==12)&&(((a16==10)&&((a3==1)&&((input==6)&&((a5==4)||(a5==5)))))&&(a12==1))))))&&(a20==1)))){ + a28 = 1; + a5 = 4; + a4 = 0; + a9 = 7; + a16 = 7; + a21 = 10; + return -1; + } else if((((a24==1)||((a2==1)&&(((a2==1)&&!(a8==1))&&(a1==14))))&&((((a13==1)&&((a21==12)&&((a28==1)&&((a19==3)&&((a17==2)&&((a16==8)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&(a9==11))))))))&&!(a7==1))&&(a20==1)))){ + a8 = 0; + a1 = 12; + a19 = 1; + a21 = 10; + a16 = 7; + a9 = 7; + a5 = 4; + a13 = 1; + a12 = 1; + return -1; + } else if(((((a20==1)&&(((a17==2)&&((a5==6)&&(((input==5)&&(a19==5))&&(a12==1))))&&!(a14==1)))&&(a12==1))&&(!(a27==1)&&(((((((a16==9)&&(a13==1))||(a7==1))&&(a1==13))&&(a21==11))&&!(a0==1))&&(a9==11))))){ + if((a16==11)){ + a24 = 0; + a18 = 0; + a13 = 1; + a5 = 5; + a16 = 8; + a19 = 4; + a20 = 0; + a9 = 8; + a1 = 12; + }else{ + a5 = 4; + a13 = 1; + a21 = 10; + a2 = 1; + a27 = 0; + a19 = 2; + a16 = 7; + a9 = 10; + } + return 21; + } else if(((!(a20==1)&&((!(a7==1)&&((a11==1)&&(!(a26==1)&&((((input==4)&&(a5==5))&&(a11==1))&&(a3==1)))))&&(a16==8)))&&(((((a9==8)&&(((a13==1)&&(a21==12))||(a18==1)))&&(a1==12))&&(a19==2))&&(a17==2)))){ + if((a20==1)){ + a19 = 4; + a21 = 10; + a25 = 1; + a22 = 1; + a16 = 10; + a18 = 1; + a9 = 11; + a20 = 1; + }else{ + a9 = 10; + a5 = 6; + a1 = 13; + a3 = 0; + a8 = 1; + a19 = 5; + a21 = 10; + a16 = 7; + a28 = 0; + } + return -1; + } else if(((((((!(a18==1)&&((((((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(input==4))&&!(a7==1))&&(a12==1)))&&(a19==2))&&(a16==10))&&(a2==1))&&(a1==13))&&((a20==1)&&(((a21==12)&&((!(a18==1)&&(a2==1))||(a7==1)))&&(a17==2))))){ + a5 = 4; + a1 = 12; + a27 = 0; + a9 = 7; + a19 = 1; + a16 = 7; + a21 = 10; + a4 = 0; + return -1; + } else if(((((((!(a23==1)&&((((a13==1)&&!(a28==1))&&(a21==12))&&(a16==11)))&&!(a23==1))&&!(a12==1))&&(a20==1))&&(a1==13))&&((!(a28==1)&&((((((a5==5)||(a5==6))&&(input==6))&&(a24==1))&&(a9==10))&&(a17==2)))&&(a19==1)))){ + a12 = 0; + a1 = 14; + a8 = 1; + a21 = 10; + a24 = 1; + a9 = 7; + a16 = 7; + a5 = 5; + return -1; + } else if((((a21==11)&&((a19==4)&&(((a16==9)&&(((a2==1)||!(a12==1))||(a7==1)))||!(a13==1))))&&(((a11==1)&&((a9==10)&&(!(a0==1)&&(((((input==1)&&((a5==5)||(a5==6)))&&(a23==1))&&(a17==2))&&!(a20==1)))))&&(a1==13)))){ + a5 = 5; + a1 = 12; + a21 = 10; + a22 = 0; + a19 = 2; + a16 = 7; + a6 = 0; + a20 = 1; + a3 = 0; + return -1; + } else if((((a21==12)&&(((a19==2)&&((a11==1)&&(((a16==10)&&(input==4))&&(a5==5))))&&(a9==7)))&&((a20==1)&&((((((a14==1)||((a17==2)&&((a28==1)&&!(a27==1))))&&(a12==1))&&(a1==13))&&(a11==1))&&!(a0==1))))){ + a8 = 0; + a21 = 10; + a1 = 12; + a19 = 1; + a11 = 1; + a5 = 4; + a16 = 7; + a18 = 0; + return -1; + } else if(((((a21==10)&&(!(a14==1)&&(((((input==6)&&(a16==11))&&(a5==6))&&(a9==11))&&(a6==1))))&&(a19==1))&&(((a20==1)&&((a27==1)||(((((a23==1)&&!(a18==1))&&(a17==2))||(a27==1))&&(a1==14))))&&(a11==1)))){ + a6 = 1; + a9 = 7; + a21 = 11; + a16 = 9; + a3 = 1; + a19 = 4; + a7 = 0; + a1 = 12; + return 21; + } else if((((((a16==7)&&((((((a9==7)&&((((input==5)&&(a21==10))&&!(a6==1))&&!(a28==1)))&&(a17==2))&&(a0==1))&&(a26==1))&&!(a23==1)))&&(a5==5))&&(a1==13))&&(((a20==1)&&((a12==1)&&(a7==1)))&&(a19==2)))){ + a18 = 1; + a19 = 3; + a16 = 8; + a1 = 12; + a15 = 0; + a9 = 10; + return -1; + } else if((((!(a2==1)&&((((a1==13)&&(a23==1))&&(a18==1))&&!(a11==1)))&&(a9==9))&&((a17==2)&&(!(a23==1)&&(!(a23==1)&&((((a16==7)&&(((a19==2)&&((a21==12)&&(input==3)))&&(a24==1)))&&(a5==4))&&(a20==1))))))){ + a10 = 0; + a28 = 0; + a16 = 10; + a4 = 1; + return -1; + } else if((((!(a6==1)||((a23==1)&&(a19==1)))&&(a1==14))&&((a17==2)&&((!(a4==1)&&((a13==1)&&((((((a23==1)&&(((input==1)&&(a16==8))&&(a5==4)))&&(a20==1))&&(a2==1))&&(a12==1))&&(a9==10))))&&(a21==11))))){ + a19 = 4; + a13 = 1; + a27 = 0; + a1 = 12; + a21 = 10; + a6 = 1; + a9 = 7; + return -1; + } else if(((((a1==12)&&(((a21==12)&&(input==1))&&(a6==1)))&&(a16==11))&&((a20==1)&&((a9==8)&&(!(a24==1)&&(((a19==1)&&(((a5==5)&&((((a12==1)||!(a2==1))||!(a28==1))&&(a17==2)))||!(a2==1)))&&!(a24==1))))))){ + a16 = 7; + a8 = 0; + a9 = 7; + a21 = 10; + a26 = 0; + a28 = 1; + a5 = 4; + return -1; + } else if((((a17==2)&&((((a16==7)&&(a11==1))||!(a2==1))||!(a6==1)))&&((a28==1)&&(((!(a18==1)&&((((((a9==9)&&((input==5)&&((a5==5)||(a5==6))))&&(a19==2))&&!(a4==1))&&(a6==1))&&(a21==12)))&&(a1==13))&&(a20==1))))){ + a9 = 7; + a2 = 1; + a19 = 1; + a7 = 0; + a21 = 10; + a5 = 4; + a26 = 0; + a1 = 12; + return -1; + } else if((((((((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))&&(input==5))&&!(a14==1))&&(a13==1))&&(a21==11))&&(((!(a20==1)&&(!(a0==1)&&(((!(a3==1)||(!(a13==1)||((a19==4)&&(a23==1))))&&(a17==2))&&(a6==1))))&&(a16==10))&&(a1==12)))){ + if((a5==4)){ + a25 = 1; + a21 = 12; + a5 = 6; + a15 = 0; + a11 = 0; + a20 = 1; + a19 = 5; + a9 = 7; + a16 = 7; + }else{ + a19 = 1; + a5 = 4; + a21 = 10; + a28 = 0; + a9 = 10; + a13 = 0; + a20 = 1; + a25 = 1; + } + return -1; + } else if((((((((a11==1)&&(((a26==1)||((a19==3)&&(a6==1)))||!(a12==1)))&&!(a4==1))&&!(a20==1))&&(a6==1))&&(a16==8))&&((a21==10)&&((((a9==11)&&(((input==6)&&((a5==5)||(a5==6)))&&!(a24==1)))&&(a17==2))&&(a1==13))))){ + a14 = 0; + a1 = 14; + a20 = 1; + a0 = 0; + a21 = 11; + a12 = 1; + a19 = 5; + a5 = 4; + a16 = 9; + return 21; + } else if((((a16==8)&&((a17==2)&&(!(a20==1)&&((a1==13)&&((a21==12)&&((a3==1)&&((((a13==1)&&((input==6)&&(((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))))&&!(a0==1))&&(a19==4))))))))&&(!(a0==1)&&(((a6==1)&&(a23==1))||!(a28==1))))){ + a29 = 0; + a19 = 1; + a3 = 0; + a16 = 7; + a9 = 9; + a14 = 1; + a1 = 12; + a20 = 1; + a5 = 5; + a21 = 10; + return 25; + } else if((((a19==1)&&(((a5==4)&&((!(a2==1)||((a28==1)&&(a21==12)))||!(a23==1)))&&!(a26==1)))&&(((((a16==7)&&((a1==14)&&((((input==5)&&(a9==9))&&!(a26==1))&&(a23==1))))&&(a20==1))&&(a23==1))&&(a17==2)))){ + a6 = 1; + a8 = 0; + a9 = 11; + a21 = 10; + a16 = 9; + a3 = 1; + return 23; + } else if((((a17==2)&&(((a3==1)&&(((a1==12)&&((a20==1)&&(a3==1)))||!(a11==1)))&&(a21==11)))&&(((a19==5)&&((((a16==7)&&((((a9==9)&&(input==6))&&(a23==1))&&(a6==1)))&&(a23==1))&&(a5==5)))&&!(a14==1)))){ + a19 = 1; + a27 = 0; + a9 = 11; + a5 = 4; + a23 = 1; + a28 = 1; + a21 = 12; + a16 = 8; + return 21; + } else if((((a1==12)&&((((a3==1)&&((!(a4==1)&&(a3==1))&&(a16==10)))&&(a9==7))&&!(a7==1)))&&((a19==2)&&((((a17==2)&&(!(a24==1)&&(((a20==1)&&((input==6)&&((a5==5)||(a5==6))))&&(a21==10))))&&!(a27==1))&&!(a0==1))))){ + a13 = 1; + a16 = 7; + a5 = 4; + a19 = 3; + a21 = 11; + a3 = 1; + a9 = 10; + return -1; + } else if(((((a1==13)&&(((((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==6))&&(a28==1))&&!(a8==1))&&(a19==3)))&&(a21==11))&&((a16==7)&&((((a26==1)||((!(a2==1)||((a23==1)&&(a17==2)))&&(a6==1)))&&!(a20==1))||!(a23==1))))){ + a24 = 0; + a21 = 10; + a9 = 7; + a2 = 1; + a19 = 1; + a28 = 1; + a1 = 12; + a5 = 4; + a20 = 1; + return -1; + } else if((((a3==1)&&(!(a27==1)&&((a9==7)&&((a6==1)&&((a28==1)&&(!(a26==1)&&(((input==1)&&(a1==13))&&(a17==2))))))))&&((a0==1)||(((a19==4)&&(((a5==4)&&((a21==12)&&(a6==1)))&&!(a20==1)))&&(a16==9))))){ + a19 = 1; + a0 = 1; + a20 = 1; + a21 = 10; + a24 = 1; + a22 = 0; + a9 = 8; + a16 = 7; + a1 = 12; + return 21; + } else if(((((((a7==1)||(((a11==1)&&(a23==1))&&(a20==1)))||!(a13==1))&&(a19==1))&&(a16==9))&&((a21==11)&&(((a13==1)&&(((a17==2)&&(((input==4)&&((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4))))&&(a1==13)))&&!(a27==1)))&&!(a27==1))))){ + a16 = 7; + a12 = 1; + a1 = 12; + a23 = 1; + a18 = 0; + a9 = 7; + a21 = 10; + a5 = 4; + return -1; + } else if((((a17==2)&&((a19==4)&&((a9==8)&&(((a11==1)&&((((input==4)&&((a5==5)||(a5==6)))&&!(a8==1))&&(a3==1)))&&(a3==1)))))&&((a21==11)&&((((a1==13)&&(!(a14==1)&&((a13==1)&&(a28==1))))&&!(a20==1))&&(a16==8))))){ + a20 = 1; + a5 = 4; + a28 = 1; + a21 = 10; + a16 = 7; + a19 = 1; + a1 = 12; + a9 = 7; + a12 = 1; + a7 = 0; + return -1; + } else if((((!(a14==1)&&((((a4==1)||((((a0==1)||((((a11==1)&&(a20==1))&&(a13==1))&&(a17==2)))&&(a16==11))&&(a21==11)))&&(a19==5))&&(a28==1)))&&!(a0==1))&&((input==6)&&((((a1==13)&&(a5==4))&&(a9==7))||((((a1==12)&&(a5==5))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==12)))))))){ + a9 = 11; + a11 = 1; + a5 = 4; + a16 = 9; + a8 = 0; + a1 = 14; + a24 = 0; + return 21; + } else if((((a23==1)&&(((!(a27==1)&&(((((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&!(a26==1))&&(a1==14))&&(a19==1)))&&(a21==10))&&(a17==2)))&&(((a18==1)||(((a16==8)&&((!(a6==1)||(a12==1))&&!(a20==1)))&&(a12==1)))&&(a9==10)))){ + a20 = 1; + a26 = 0; + a16 = 7; + a1 = 12; + a5 = 4; + a18 = 0; + a9 = 7; + a4 = 0; + return -1; + } else if((((a9==9)&&(((((((input==3)&&(a16==9))&&(a19==1))&&!(a26==1))&&(a28==1))&&(a2==1))&&(a3==1)))&&((a17==2)&&((((!(a28==1)||((a5==4)&&((a3==1)&&(a20==1))))&&!(a7==1))&&(a21==10))&&(a1==12))))){ + a9 = 7; + a28 = 1; + a16 = 7; + a3 = 1; + return -1; + } else if(((((((((a13==1)&&(a21==10))||!(a6==1))&&(a9==11))||!(a12==1))||(a18==1))&&(a16==7))&&(!(a20==1)&&((((a1==12)&&((a2==1)&&((!(a4==1)&&(((a5==5)||(a5==6))&&(input==5)))&&(a28==1))))&&(a19==2))&&(a17==2))))){ + a3 = 1; + a9 = 7; + a4 = 0; + a19 = 1; + a5 = 4; + a2 = 1; + a20 = 1; + return -1; + } else if(((((a21==12)&&((a14==1)||(((a8==1)||((a17==2)&&((a3==1)&&(a2==1))))&&!(a24==1))))&&(a19==2))&&((((a16==10)&&((a1==14)&&((!(a20==1)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))&&(a11==1))))&&!(a18==1))&&(a9==9)))){ + a21 = 10; + a16 = 7; + a20 = 1; + a26 = 1; + a15 = 1; + a9 = 7; + a5 = 6; + a1 = 13; + a19 = 1; + a27 = 1; + return 21; + } else if((((a19==5)&&(((!(a20==1)&&((a26==1)||(!(a3==1)||(a13==1))))||!(a2==1))&&(a13==1)))&&((a16==9)&&(((a1==14)&&(((a21==11)&&((a3==1)&&((input==1)&&(((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))))))&&!(a14==1)))&&(a17==2))))){ + if((a8==1)){ + a19 = 2; + a16 = 11; + a5 = 5; + a10 = 0; + a7 = 1; + a9 = 8; + a21 = 10; + a1 = 13; + }else{ + a26 = 1; + a21 = 10; + a22 = 0; + a5 = 6; + a16 = 7; + a27 = 1; + a1 = 12; + a20 = 1; + a19 = 2; + a9 = 11; + } + return 25; + } else if((((((a26==1)||((a16==10)&&((!(a26==1)&&(!(a11==1)||((a19==4)&&((a23==1)&&((a17==2)&&(a6==1))))))&&(a9==10))))&&(a21==11))&&(a3==1))&&((a1==12)&&(((a23==1)&&((input==4)&&((a5==4)||(a5==5))))&&(a20==1))))){ + a9 = 7; + a6 = 1; + a21 = 10; + a7 = 0; + a12 = 1; + a16 = 7; + a19 = 1; + a5 = 4; + return -1; + } else if(((((a18==1)||(((a19==5)&&(((a23==1)&&(((a1==13)&&((a21==11)&&((a20==1)&&(a13==1))))&&(a17==2)))&&(a16==11)))||!(a6==1)))||(a14==1))&&((a6==1)&&(!(a18==1)&&(((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8)))&&(input==1)))))){ + a5 = 6; + a19 = 3; + a9 = 9; + a1 = 12; + a27 = 0; + a21 = 12; + a7 = 0; + return 21; + } else if((((((a21==10)&&(((!(a0==1)&&(((a16==7)&&(a13==1))&&(a17==2)))||(a27==1))&&(a19==4)))&&(a6==1))&&(a1==12))&&(!(a14==1)&&(!(a24==1)&&((a20==1)&&((a2==1)&&((((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6))))&&(input==5)))))))){ + a9 = 11; + a21 = 11; + a2 = 1; + a12 = 1; + a5 = 5; + return 22; + } else if((((a21==11)&&((a1==13)&&((a28==1)||(a18==1))))&&(((!(a18==1)&&(((a9==8)&&(!(a14==1)&&((a23==1)&&((((a19==1)&&(((a5==5)||(a5==6))&&(input==4)))&&(a23==1))&&(a16==9)))))&&(a28==1)))&&(a17==2))&&(a20==1)))){ + a21 = 10; + a13 = 1; + a5 = 4; + a2 = 1; + a16 = 7; + a1 = 12; + a4 = 0; + a9 = 7; + return -1; + } else if((((a20==1)&&((a17==2)&&((!(a18==1)&&((input==6)&&(((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))))&&(a19==5))))&&((a16==9)&&((a21==10)&&((a1==12)&&((a7==1)||(!(a4==1)&&(((a14==1)||((a6==1)||(a0==1)))&&!(a14==1))))))))){ + a26 = 0; + a9 = 8; + a8 = 0; + a21 = 12; + a16 = 8; + a1 = 14; + a14 = 0; + a5 = 5; + return 26; + } else if((((a12==1)&&(((a0==1)||((a23==1)&&(a20==1)))||(a4==1)))&&((a19==5)&&(((((!(a8==1)&&((((((a9==11)&&((a5==5)&&(a1==13)))||(((a1==13)&&(a5==6))&&(a9==11)))||(((a5==4)&&(a1==14))&&(a9==7)))&&(input==1))&&(a28==1)))&&!(a8==1))&&(a16==7))&&(a17==2))&&(a21==10))))){ + a12 = 1; + a9 = 9; + a21 = 12; + a5 = 4; + a3 = 1; + a26 = 0; + a19 = 4; + a1 = 12; + return 22; + } else if(((((a16==10)&&((a1==13)&&(!(a24==1)&&((input==4)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))))&&(a17==2))&&(((!(a0==1)&&(((((a19==3)&&((a20==1)&&(a3==1)))&&(a21==11))&&(a11==1))&&(a13==1)))&&(a2==1))&&(a13==1)))){ + a19 = 1; + a1 = 12; + a2 = 1; + a16 = 7; + a11 = 1; + a3 = 1; + a21 = 10; + a9 = 7; + a5 = 4; + return -1; + } else if((((a16==10)&&(((a8==1)||(((!(a24==1)&&((a6==1)&&(a23==1)))&&(a11==1))&&!(a24==1)))&&(a5==6)))&&((((a19==2)&&((a1==14)&&(((!(a20==1)&&(input==6))&&(a21==11))&&(a12==1))))&&(a9==10))&&(a17==2)))){ + a28 = 0; + a21 = 12; + a24 = 1; + a1 = 12; + a19 = 5; + a16 = 9; + a27 = 1; + return -1; + } else if((((a16==8)&&((!(a20==1)&&((a2==1)&&(a21==11)))&&(a3==1)))&&((a1==13)&&(((a2==1)&&(((a19==2)&&((a9==7)&&(!(a0==1)&&((!(a14==1)&&((a5==4)&&(input==4)))&&!(a26==1)))))&&(a17==2)))&&(a11==1))))){ + a20 = 1; + a24 = 0; + a16 = 7; + a1 = 12; + a19 = 1; + a21 = 10; + a6 = 1; + return -1; + } else if(((((((a17==2)&&(((a2==1)&&(a16==8))||(a4==1)))||(a24==1))&&(a9==9))&&!(a20==1))&&((a21==11)&&((((((a11==1)&&(!(a27==1)&&((input==6)&&((a5==4)||(a5==5)))))&&(a19==1))&&!(a14==1))&&(a11==1))&&(a1==12))))){ + a1 = 14; + a5 = 5; + a20 = 1; + a9 = 8; + a27 = 0; + a21 = 10; + a11 = 1; + a8 = 0; + a16 = 7; + a19 = 2; + return 22; + } else if(((((a16==10)&&((((a14==1)||((a19==2)&&((a13==1)||!(a2==1))))&&(a9==11))&&(a1==13)))&&!(a7==1))&&((a28==1)&&(!(a0==1)&&((a21==11)&&(!(a26==1)&&((a20==1)&&((a17==2)&&((input==6)&&((a5==4)||(a5==5))))))))))){ + a9 = 9; + a13 = 1; + a16 = 7; + a5 = 4; + a11 = 1; + a21 = 10; + return -1; + } else if((((((a0==1)||((a19==2)&&((a9==10)&&(((!(a11==1)||(a13==1))&&!(a26==1))&&(a3==1)))))&&(a1==12))&&(a21==12))&&((a17==2)&&(((((a16==9)&&((input==6)&&(a20==1)))&&(a13==1))&&!(a24==1))&&(a5==6))))){ + a19 = 1; + a27 = 0; + a21 = 10; + a9 = 7; + a5 = 4; + a11 = 1; + a2 = 1; + a16 = 7; + return -1; + } else if(((((a19==2)&&((a21==10)&&((a16==10)&&(((((input==5)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5))))&&(a12==1))&&(a23==1))&&(a20==1)))))&&(a28==1))&&((a12==1)&&((a18==1)||(((a17==2)&&((a1==12)&&(a6==1)))||!(a3==1)))))){ + a0 = 0; + a16 = 7; + a5 = 4; + a9 = 7; + a23 = 1; + a19 = 1; + a24 = 0; + return -1; + } else if(((((a23==1)&&(!(a2==1)||(!(a12==1)||((a28==1)&&((((a1==14)&&(a13==1))||(a18==1))&&!(a27==1))))))&&!(a20==1))&&(((a19==3)&&((((a9==11)&&((input==6)&&(a17==2)))&&(a16==7))&&(a21==11)))&&(a5==5)))){ + a6 = 1; + a1 = 12; + a7 = 0; + a3 = 1; + a19 = 1; + a5 = 4; + a21 = 10; + a20 = 1; + a9 = 7; + return -1; + } else if(((!(a13==1)||((a16==8)&&(((a17==2)&&(!(a6==1)||((a20==1)&&((a21==10)&&(a3==1)))))||!(a12==1))))&&((!(a8==1)&&(((a19==3)&&((a1==12)&&(((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))&&(input==3))))&&!(a27==1)))&&!(a4==1)))){ + a9 = 7; + a0 = 0; + a7 = 0; + a19 = 1; + a16 = 7; + a4 = 0; + a5 = 4; + return -1; + } else if(((!(a28==1)||(((a17==2)&&((a28==1)||(a4==1)))&&(a11==1)))&&((a28==1)&&((a6==1)&&((a16==9)&&((a19==1)&&(((a20==1)&&(((input==3)&&(((a9==7)&&((a5==4)&&(a1==13)))||((((a5==5)&&(a1==12))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==12))))))&&(a21==12)))&&(a13==1)))))))){ + a1 = 12; + a8 = 0; + a2 = 1; + a23 = 1; + a16 = 7; + a21 = 10; + a5 = 4; + a9 = 7; + return -1; + } else if((((a21==11)&&((a1==13)&&(((a17==2)&&((!(a24==1)&&(!(a20==1)&&(a3==1)))&&!(a14==1)))&&(a16==8))))&&(((a5==6)&&(!(a7==1)&&(((!(a27==1)&&((a19==4)&&(input==4)))&&(a6==1))&&(a6==1))))&&(a9==11)))){ + a21 = 10; + a20 = 1; + a5 = 4; + a19 = 1; + a1 = 12; + a12 = 1; + a9 = 7; + a18 = 0; + a27 = 0; + a16 = 7; + return -1; + } else if(((((((a3==1)&&(((((a12==1)&&(a20==1))&&(a16==7))&&(a9==10))||(a4==1)))||!(a11==1))&&(a17==2))&&(a21==10))&&((a19==2)&&(!(a4==1)&&((!(a24==1)&&((a12==1)&&((a1==13)&&(input==1))))&&(a5==5)))))){ + a9 = 8; + a6 = 1; + a24 = 0; + a26 = 0; + a19 = 3; + return 22; + } else if(((((a11==1)&&((((a12==1)&&(a28==1))&&!(a8==1))&&(a16==11)))&&(a17==2))&&((((((a19==1)&&(((a13==1)&&((a20==1)&&((a9==11)&&(input==5))))&&(a2==1)))&&!(a18==1))&&(a5==5))&&(a21==12))&&(a1==12)))){ + a21 = 10; + a16 = 7; + a7 = 0; + a9 = 7; + a5 = 4; + a8 = 0; + a27 = 0; + return -1; + } else if((((((a17==2)&&((((a1==13)&&((a16==7)&&((a19==4)&&(((a5==4)||(a5==5))&&(input==1)))))&&!(a28==1))&&(a14==1)))&&(a7==1))&&(a21==12))&&((((a9==11)&&(!(a20==1)&&((a23==1)&&(a8==1))))&&!(a12==1))&&!(a2==1)))){ + a20 = 1; + a18 = 1; + a2 = 0; + a1 = 12; + a5 = 5; + a22 = 1; + a9 = 7; + a19 = 1; + a21 = 10; + return -1; + } else if(((((a11==1)&&(((a16==11)&&((a19==5)&&((a13==1)&&(a20==1))))&&(a1==14)))&&!(a26==1))&&(((((a2==1)&&((((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))&&(input==6))&&(a2==1))&&!(a27==1)))&&!(a24==1))&&(a21==11))&&(a17==2)))){ + a0 = 0; + a1 = 12; + a9 = 11; + a26 = 0; + a7 = 0; + a5 = 4; + a16 = 9; + return 21; + } else if(((((a21==11)&&(((a17==2)&&((a23==1)&&(((a6==1)&&((a1==12)&&(a11==1)))&&!(a27==1))))&&(a20==1)))&&(a16==7))&&(!(a24==1)&&(!(a26==1)&&((!(a24==1)&&((input==4)&&(((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6))))))&&(a19==2)))))){ + a19 = 1; + a21 = 10; + a5 = 4; + a18 = 0; + a9 = 7; + a27 = 0; + a14 = 0; + return -1; + } else if((((a12==1)&&((a1==13)&&((a21==10)&&((a19==5)&&(!(a0==1)&&((a20==1)&&((a17==2)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==5)))))))))&&((!(a23==1)||(((!(a18==1)&&(a6==1))||(a14==1))&&(a16==11)))||(a24==1)))){ + a9 = 7; + a16 = 7; + a5 = 4; + a1 = 12; + a0 = 0; + a4 = 0; + a19 = 1; + a24 = 0; + return -1; + } else if(((!(a24==1)&&(((a17==2)&&(!(a4==1)&&(((a16==9)&&(((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))&&(input==3)))&&(a21==10))))&&(a3==1)))&&((a23==1)&&(!(a23==1)||((((a19==2)&&((a12==1)&&(a20==1)))&&(a1==13))||(a8==1)))))){ + a19 = 1; + a28 = 1; + a2 = 1; + a1 = 12; + a5 = 4; + a7 = 0; + a9 = 7; + a16 = 7; + return -1; + } else if((((((a19==4)&&((((a9==11)&&(((!(a20==1)&&(input==6))&&!(a27==1))&&(a1==13)))&&(a17==2))&&(a21==11)))&&!(a8==1))&&!(a24==1))&&(((((a13==1)&&(!(a13==1)||(a13==1)))&&(a16==8))||!(a23==1))&&(a5==6)))){ + a20 = 1; + a5 = 4; + a19 = 1; + a16 = 7; + a18 = 0; + a21 = 12; + a4 = 0; + a6 = 1; + return 21; + } else if(((((!(a0==1)&&((a21==12)&&((!(a20==1)&&(a2==1))&&(a16==7))))&&!(a8==1))&&!(a4==1))&&((((((a17==2)&&(((input==1)&&((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4))))&&(a1==13)))&&(a19==5))&&(a13==1))&&!(a0==1))&&(a6==1)))){ + a9 = 7; + a14 = 0; + a27 = 0; + a5 = 4; + a12 = 1; + a21 = 10; + a16 = 8; + return 21; + } else if((((a13==1)&&((((a17==2)&&(((!(a7==1)&&(!(a26==1)&&(!(a0==1)&&(((a5==5)||(a5==6))&&(input==5)))))&&(a6==1))&&(a21==10)))&&!(a20==1))&&(a9==9)))&&(!(a18==1)&&((a16==9)&&((a19==5)&&((a1==13)&&(a11==1))))))){ + a16 = 7; + a9 = 11; + a1 = 12; + a2 = 0; + a5 = 5; + a20 = 1; + a19 = 1; + a11 = 0; + a15 = 1; + return -1; + } else if(((((a19==4)&&((a1==13)&&(a23==1)))||(a8==1))&&((!(a20==1)&&(((((!(a0==1)&&((a28==1)&&((a21==11)&&(((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4)))&&(input==6)))))&&(a17==2))&&(a2==1))&&(a12==1))&&(a16==10)))&&(a3==1)))){ + a29 = 0; + a9 = 9; + a11 = 0; + a16 = 7; + a2 = 0; + a20 = 1; + a19 = 1; + a5 = 4; + a21 = 10; + return -1; + } else if(((((((((a13==1)&&(a5==6))&&(a16==8))&&!(a20==1))&&(a28==1))||(a24==1))&&(a6==1))&&((((((((a21==10)&&((a1==14)&&(input==6)))&&(a19==2))&&(a17==2))&&(a9==10))&&!(a8==1))&&!(a0==1))&&(a3==1)))){ + a5 = 4; + a11 = 1; + a18 = 0; + a19 = 3; + a9 = 7; + a16 = 7; + a7 = 0; + a20 = 1; + a21 = 11; + return 23; + } else if(((!(a0==1)&&((a3==1)&&((a19==3)&&(((a5==6)&&(((a9==11)&&(a11==1))&&(a21==10)))&&(a17==2)))))&&(((a11==1)&&((((a16==8)&&(((a1==14)&&(input==1))&&!(a0==1)))&&(a20==1))&&!(a27==1)))&&!(a0==1)))){ + a28 = 1; + a21 = 12; + a7 = 0; + a9 = 9; + a19 = 5; + a11 = 1; + a5 = 4; + a16 = 9; + return 23; + } else if((((a16==7)&&((a17==2)&&((((a21==12)&&(!(a0==1)&&((a23==1)&&((a9==10)&&(((a5==4)||(a5==5))&&(input==6))))))&&!(a8==1))&&(a12==1))))&&(((a19==5)&&((a1==14)&&((a0==1)||(!(a0==1)&&(a13==1)))))&&!(a20==1)))){ + a9 = 9; + a28 = 1; + a16 = 9; + a5 = 5; + a3 = 1; + a21 = 10; + a20 = 1; + a19 = 4; + a2 = 1; + return 23; + } else if((((a13==1)&&((((a17==2)&&((a21==12)&&((a1==14)&&(input==6))))&&(a9==10))&&(a19==1)))&&((((a5==5)&&((a3==1)&&(((a16==7)&&(((a13==1)&&(a11==1))&&!(a20==1)))||(a26==1))))&&!(a26==1))||!(a6==1)))){ + a21 = 10; + a20 = 1; + a1 = 12; + a12 = 1; + a9 = 7; + a6 = 1; + a5 = 4; + return -1; + } else if((((((!(a11==1)||(!(a4==1)&&(a6==1)))&&(a19==2))&&!(a20==1))&&!(a26==1))&&((((((a16==10)&&((!(a14==1)&&((input==5)&&(((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))))&&(a17==2)))&&(a21==11))&&(a1==13))&&!(a4==1))&&!(a7==1)))){ + a9 = 7; + a16 = 7; + a13 = 0; + a19 = 1; + a12 = 0; + a20 = 1; + a24 = 1; + a21 = 10; + a5 = 5; + a1 = 14; + return 22; + } else if(((((((a19==2)&&((a28==1)&&((a1==13)&&((input==4)&&((a5==6)||((a5==4)||(a5==5)))))))&&!(a20==1))&&(a9==11))&&(a16==7))&&((a17==2)&&(((a8==1)||((a21==12)&&(!(a11==1)||(((a23==1)&&(a3==1))||(a18==1)))))||(a4==1))))){ + a9 = 7; + a19 = 3; + a24 = 0; + a2 = 1; + a4 = 0; + a20 = 1; + a1 = 12; + a16 = 8; + a5 = 5; + return 23; + } else if(((((((((a2==1)&&!(a27==1))&&(a1==13))&&(a16==10))&&!(a27==1))&&(a19==5))&&(a21==11))&&((((!(a18==1)&&(!(a18==1)&&(((input==1)&&(((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))))&&(a17==2))))&&(a3==1))&&(a6==1))&&(a20==1)))){ + a28 = 1; + a5 = 5; + a16 = 7; + a9 = 10; + a3 = 1; + a0 = 0; + a21 = 10; + a19 = 4; + return 25; + } else if((((a16==10)&&(!(a27==1)&&(((a6==1)&&(((input==4)&&(a5==6))&&(a17==2)))&&(a20==1))))&&(((a21==12)&&((((((a18==1)||((a9==7)&&(a11==1)))&&!(a4==1))&&!(a0==1))&&(a23==1))&&(a1==12)))&&(a19==2)))){ + a14 = 0; + a3 = 1; + a19 = 1; + a5 = 4; + a7 = 0; + a21 = 10; + a16 = 7; + return -1; + } else if((((!(a8==1)&&((!(a7==1)&&(((a5==5)||(a5==6))&&(input==4)))&&!(a7==1)))&&(a19==2))&&(((a1==13)&&((((a21==12)&&(((((a3==1)||(a26==1))&&(a17==2))||!(a6==1))&&(a3==1)))&&(a9==8))&&(a20==1)))&&(a16==11)))){ + a8 = 0; + a19 = 1; + a26 = 0; + a21 = 10; + a5 = 4; + a1 = 12; + a16 = 7; + a9 = 7; + a2 = 1; + return -1; + } else if((((a19==5)&&((!(a12==1)||((a17==2)&&((((a11==1)&&((a28==1)&&(a16==9)))&&(a13==1))||!(a28==1))))&&(a9==9)))&&(((a5==5)&&((!(a27==1)&&(((a21==11)&&(input==1))&&(a28==1)))&&(a1==14)))&&!(a20==1)))){ + if((a5==4)){ + a2 = 0; + a20 = 1; + a0 = 1; + a9 = 11; + a5 = 6; + a27 = 1; + a21 = 10; + a16 = 7; + a19 = 2; + }else{ + a16 = 7; + a21 = 12; + a19 = 4; + a20 = 1; + a1 = 12; + a29 = 0; + a10 = 0; + a9 = 10; + a26 = 1; + } + return -1; + } else if(((((((a3==1)&&(!(a18==1)&&((a5==6)&&(input==4))))&&(a19==3))&&(a1==14))&&(a9==7))&&((((((a16==8)&&((a17==2)&&(((a6==1)||(a18==1))||(a26==1))))&&(a20==1))&&!(a0==1))&&(a21==12))||(a26==1)))){ + a6 = 1; + a19 = 1; + a18 = 0; + a26 = 0; + a5 = 4; + a1 = 12; + a21 = 10; + a16 = 7; + return -1; + } else if(((!(a14==1)&&(((a20==1)&&(((input==4)&&(a17==2))&&(a1==12)))&&!(a24==1)))&&(((((a5==4)&&((a21==10)&&(((((a18==1)||(a13==1))&&!(a4==1))||!(a28==1))&&(a16==11))))&&(a9==10))||(a26==1))&&(a19==1)))){ + a24 = 0; + a9 = 7; + a11 = 1; + a16 = 7; + a28 = 1; + return -1; + } else if((((a21==10)&&((!(a0==1)&&((a16==11)&&((a1==14)&&(((((a5==4)||(a5==5))&&(input==6))&&(a28==1))&&(a9==11)))))&&(a17==2)))&&(((a4==1)||(((((a20==1)&&(a28==1))||!(a28==1))&&(a19==1))&&(a11==1)))&&(a3==1)))){ + a16 = 7; + a1 = 12; + a11 = 1; + a23 = 1; + a8 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if(((((a20==1)&&((a21==12)&&((a6==1)&&(((a28==1)&&((a1==12)&&((((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(input==1))))&&!(a27==1)))))&&(a2==1))&&(((a17==2)&&((((a2==1)&&(a11==1))&&!(a14==1))&&(a19==1)))&&(a16==9)))){ + a16 = 8; + a19 = 5; + a18 = 0; + a26 = 0; + a9 = 10; + a12 = 1; + a1 = 13; + a5 = 6; + return 22; + } else if((((((a21==12)&&(!(a28==1)||(a28==1)))||(a18==1))&&!(a20==1))&&(((a16==7)&&((a19==5)&&((a17==2)&&(!(a27==1)&&((a6==1)&&((a12==1)&&((((a9==7)&&((a5==5)&&(a1==13)))||(((a9==11)&&((a5==6)&&(a1==12)))||(((a5==4)&&(a1==13))&&(a9==7))))&&(input==5))))))))&&!(a14==1)))){ + a9 = 7; + a21 = 10; + a11 = 1; + a5 = 4; + a19 = 1; + a7 = 0; + a20 = 1; + a8 = 0; + a1 = 12; + return -1; + } else if(((((((a21==11)&&(input==6))&&(a16==7))&&!(a8==1))&&(a19==2))&&((((((a17==2)&&((a1==13)&&((a7==1)||((((a11==1)&&!(a7==1))&&(a6==1))&&(a9==11)))))||(a18==1))&&!(a20==1))&&(a5==6))||(a18==1)))){ + a1 = 12; + a27 = 0; + a0 = 0; + a13 = 1; + a21 = 12; + a5 = 5; + a19 = 1; + a9 = 10; + a20 = 1; + return 26; + } else if(((((((a14==1)||(((a12==1)&&(((a12==1)&&(a11==1))&&(a21==10)))&&(a12==1)))&&(a16==7))||!(a13==1))&&(a9==7))&&(!(a27==1)&&((a20==1)&&((a1==13)&&(((a19==3)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3)))&&(a17==2))))))){ + a1 = 12; + a24 = 0; + a8 = 0; + a28 = 1; + a5 = 4; + a19 = 1; + return -1; + } else if(((((((a20==1)&&(((a19==5)&&((a17==2)&&((a7==1)||(a11==1))))&&(a28==1)))||(a7==1))&&(a1==13))&&(a9==10))&&((a21==12)&&((a12==1)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&!(a26==1))&&(a16==10))&&(a23==1)))))){ + a21 = 10; + a12 = 1; + a5 = 4; + a9 = 7; + a19 = 1; + a16 = 7; + a14 = 0; + a1 = 12; + return -1; + } else if(((((!(a8==1)&&((a3==1)&&((a19==2)&&((a13==1)&&(((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4)))&&(input==1))))))&&(a20==1))&&(a21==12))&&(!(a14==1)&&(!(a7==1)&&((a17==2)&&((a27==1)||(((a11==1)&&(a16==9))&&(a1==13)))))))){ + a9 = 7; + a16 = 7; + a21 = 10; + a2 = 1; + a1 = 12; + a14 = 0; + a19 = 1; + a5 = 4; + a26 = 0; + return -1; + } else if((((a17==2)&&((((((a6==1)&&(a6==1))&&!(a24==1))&&(a16==8))&&(a9==9))&&(a21==12)))&&(((a20==1)&&((a28==1)&&((((!(a27==1)&&(((a5==5)||(a5==6))&&(input==5)))&&(a12==1))&&(a1==14))&&(a13==1))))&&(a19==2)))){ + a6 = 1; + a19 = 1; + a12 = 1; + a9 = 10; + a28 = 1; + a5 = 5; + a16 = 10; + return 21; + } else if((((!(a4==1)&&(((((((a5==6)&&((a19==3)&&(input==5)))&&(a9==11))&&(a16==10))&&(a17==2))&&!(a18==1))&&(a2==1)))&&(a11==1))&&(((((a1==12)&&((a11==1)&&(a21==12)))&&(a20==1))&&!(a14==1))||(a18==1)))){ + a5 = 4; + a19 = 2; + a28 = 1; + a1 = 13; + a26 = 0; + a21 = 10; + a8 = 0; + a9 = 9; + a16 = 7; + return 25; + } return calculate_output21(input); + } + + int calculate_output21(int input) { + if(((((((a9==7)&&((a16==10)&&(((input==4)&&((a5==4)||(a5==5)))&&(a17==2))))&&(a12==1))&&(a19==1))&&!(a4==1))&&(((!(a14==1)&&(((((a21==12)&&(a28==1))&&(a20==1))&&(a23==1))&&!(a27==1)))&&!(a14==1))&&(a1==13)))){ + a1 = 12; + a16 = 7; + a5 = 4; + a28 = 1; + a12 = 1; + a21 = 10; + return -1; + } else if((((a7==1)||((a16==7)&&(!(a3==1)||((!(a27==1)&&(a23==1))&&(a21==10)))))&&((((a12==1)&&(!(a4==1)&&((a17==2)&&(!(a20==1)&&((a1==14)&&((a19==5)&&((a5==5)&&(input==4))))))))&&(a9==7))&&(a6==1)))){ + a5 = 4; + a0 = 0; + a19 = 1; + a27 = 0; + a20 = 1; + a1 = 12; + a26 = 0; + return -1; + } else if(((((((a1==12)&&(((a14==1)||((a21==12)&&((a16==8)&&(a2==1))))&&(a20==1)))&&(a17==2))&&(a19==5))&&!(a27==1))&&(((!(a14==1)&&((a6==1)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==4))))&&(a28==1))&&!(a14==1)))){ + a5 = 4; + a7 = 0; + a19 = 1; + a21 = 10; + a16 = 7; + a28 = 1; + a9 = 7; + a27 = 0; + return -1; + } else if(((((a17==2)&&((a6==1)&&(a21==12)))||(a0==1))&&((a6==1)&&(((!(a24==1)&&((a28==1)&&(!(a20==1)&&(((input==3)&&(((((a1==14)&&(a5==6))&&(a9==11))&&(a19==3))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==4))))&&(a16==8)))))&&!(a8==1))&&(a12==1))))){ + a20 = 1; + a21 = 10; + a5 = 5; + a15 = 1; + a19 = 2; + a1 = 12; + a9 = 8; + a0 = 1; + a16 = 7; + return -1; + } else if(((((((a20==1)&&((a5==6)&&((((a12==1)&&((a21==12)&&(input==4)))&&(a6==1))&&(a1==13))))&&(a19==5))&&(a16==11))&&!(a27==1))&&(!(a2==1)||((a3==1)&&(((a17==2)&&((a9==8)&&(a23==1)))&&!(a7==1)))))){ + a16 = 7; + a1 = 12; + a19 = 1; + a12 = 1; + a14 = 0; + a21 = 10; + a5 = 4; + a6 = 1; + a9 = 7; + return -1; + } else if(((((a17==2)&&((((((a19==4)&&(((a5==4)||(a5==5))&&(input==5)))&&(a1==13))&&(a12==1))&&(a9==8))&&(a16==7)))&&(a20==1))&&((!(a8==1)&&(((!(a6==1)||((a21==12)&&(a2==1)))&&!(a7==1))||(a8==1)))||(a0==1)))){ + a21 = 11; + a14 = 0; + a5 = 4; + a16 = 9; + a23 = 1; + a19 = 2; + a28 = 1; + return 22; + } else if((((((((((((a21==12)&&((a19==5)&&((((a1==14)&&(a5==6))&&(a9==11))&&(a16==7))))||(((a19==1)&&(((a9==7)&&((a5==4)&&(a1==12)))&&(a16==8)))&&(a21==10)))||(((a19==1)&&((((a5==5)&&(a1==12))&&(a9==7))&&(a16==8)))&&(a21==10)))&&(input==3))&&!(a20==1))&&(a17==2))&&(a6==1))&&!(a4==1))&&!(a14==1))&&((((a8==1)||(a13==1))||!(a12==1))&&(a13==1)))){ + a0 = 0; + a21 = 10; + a18 = 0; + a19 = 1; + a16 = 7; + a5 = 4; + a20 = 1; + a1 = 12; + a9 = 7; + return -1; + } else if(((!(a24==1)&&((a2==1)&&(!(a20==1)&&((a19==3)&&(!(a0==1)&&((input==5)&&((((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4)))))))))&&((a21==10)&&((a1==14)&&((((!(a26==1)&&(!(a7==1)&&(a13==1)))&&!(a24==1))&&(a16==7))&&(a17==2)))))){ + a9 = 7; + a28 = 1; + a20 = 1; + a12 = 1; + a1 = 12; + a19 = 1; + a5 = 4; + a14 = 0; + return -1; + } else if((((a6==1)&&((((a21==12)&&(!(a0==1)&&(((a5==4)||(a5==5))&&(input==1))))&&!(a20==1))&&(a1==13)))&&((((a17==2)&&((a9==7)&&((a6==1)&&(((!(a18==1)&&(a6==1))||!(a12==1))&&(a19==2)))))&&(a16==8))&&(a3==1)))){ + if((a6==1)){ + a5 = 4; + a7 = 1; + a16 = 7; + a20 = 1; + a21 = 10; + a28 = 0; + a9 = 10; + a19 = 1; + a10 = 0; + }else{ + a23 = 0; + a1 = 12; + a20 = 1; + a22 = 1; + a5 = 4; + a21 = 10; + a16 = 7; + a9 = 11; + a2 = 0; + } + return -1; + } else if((((a19==4)&&((a9==10)&&((!(a24==1)&&((a17==2)&&((((a6==1)&&((a7==1)||(a12==1)))&&(a5==4))&&(a21==12))))&&(a20==1))))&&((((a2==1)&&((a1==14)&&((input==4)&&(a16==11))))&&(a6==1))&&(a28==1)))){ + a21 = 10; + a9 = 7; + a11 = 1; + a6 = 1; + a8 = 0; + a1 = 12; + a16 = 7; + a19 = 1; + return -1; + } else if(((((a19==5)&&((a13==1)&&(((a6==1)&&(!(a18==1)&&(a2==1)))&&(a16==7))))&&!(a20==1))&&(((a11==1)&&((a21==10)&&(((((((a1==13)&&(a5==6))&&(a9==11))||((a9==7)&&((a1==14)&&(a5==4))))&&(input==5))&&(a12==1))&&(a17==2))))&&!(a4==1)))){ + a20 = 1; + a2 = 1; + a9 = 7; + a1 = 12; + a24 = 0; + a5 = 4; + a19 = 1; + a11 = 1; + return -1; + } else if((((a26==1)||(((a5==6)&&(!(a18==1)&&((a14==1)||(((a20==1)&&((a0==1)||((a17==2)&&(a28==1))))&&(a9==10)))))||!(a2==1)))&&(((a21==11)&&((a19==3)&&(((input==1)&&(a1==14))&&(a16==8))))&&(a2==1)))){ + if((a8==1)){ + a20 = 0; + a9 = 8; + a16 = 7; + a23 = 1; + a21 = 12; + a8 = 0; + a1 = 12; + a4 = 0; + }else{ + a0 = 0; + a5 = 4; + a16 = 10; + a19 = 1; + a11 = 1; + } + return 22; + } else if(((((a17==2)&&((((a19==4)&&(((a23==1)&&((a1==13)&&((a20==1)&&(input==5))))&&(a28==1)))&&(a9==7))&&(a16==8)))&&!(a18==1))&&(((a21==12)&&(!(a3==1)||(((a3==1)||!(a12==1))&&(a5==6))))||!(a11==1)))){ + a5 = 5; + a16 = 10; + a0 = 0; + a1 = 14; + a28 = 1; + a9 = 9; + a8 = 0; + a19 = 3; + return 23; + } else if((((a28==1)&&((a21==10)&&(!(a23==1)||(!(a23==1)||((a17==2)&&((a2==1)&&!(a7==1)))))))&&(((a2==1)&&((a9==11)&&((a5==5)&&((a1==13)&&(((!(a20==1)&&(input==1))&&(a16==11))&&(a19==1))))))&&!(a14==1)))){ + a27 = 1; + a25 = 0; + a19 = 2; + a9 = 10; + a5 = 4; + a4 = 1; + a1 = 14; + a21 = 12; + a16 = 7; + return -1; + } else if((((a23==1)&&(((a11==1)&&((a19==5)&&((a16==8)&&(((a5==6)&&(((input==4)&&(a17==2))&&!(a18==1)))&&(a20==1)))))&&(a21==12)))&&((a26==1)||((((a1==14)&&(!(a28==1)||(a11==1)))&&(a9==8))||(a14==1))))){ + a19 = 1; + a5 = 4; + a1 = 12; + a23 = 1; + a14 = 0; + a9 = 10; + a6 = 1; + return -1; + } else if(((((a21==11)&&((a23==1)&&(((a12==1)&&((((input==4)&&(((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))))&&(a16==10))&&(a3==1)))&&!(a8==1))))&&(a17==2))&&((a20==1)&&((a19==3)&&((((a13==1)&&!(a18==1))||(a18==1))&&(a1==14)))))){ + a1 = 12; + a27 = 0; + a5 = 4; + a9 = 7; + a18 = 0; + a16 = 7; + a19 = 1; + a21 = 10; + a8 = 0; + return -1; + } else if((((!(a13==1)&&((a21==11)&&(!(a6==1)&&((((input==6)&&((a5==5)||(a5==6)))&&(a1==14))&&!(a12==1)))))&&(a9==7))&&((a19==4)&&((a17==2)&&((!(a2==1)&&((a20==1)&&(!(a23==1)&&((a12==1)&&(a4==1)))))&&(a16==8)))))){ + a23 = 0; + a9 = 11; + a27 = 1; + a22 = 0; + a5 = 4; + a21 = 12; + a16 = 11; + return -1; + } else if((((((a6==1)||!(a23==1))&&(a17==2))&&(a19==4))&&(((a1==12)&&((a16==8)&&((a2==1)&&(!(a0==1)&&((a6==1)&&(((a23==1)&&(((((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))&&(input==4))&&!(a20==1)))&&!(a14==1)))))))&&(a21==12)))){ + a16 = 10; + a21 = 11; + a7 = 1; + a5 = 6; + a1 = 13; + a9 = 9; + a24 = 1; + a10 = 1; + return 26; + } else if((((a8==1)||((a27==1)||((a21==11)&&((a13==1)&&(a2==1)))))&&((a13==1)&&((((!(a14==1)&&((a19==5)&&((((input==5)&&(((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))&&(a16==9))&&!(a20==1))))&&(a17==2))&&(a1==14))&&(a28==1))))){ + if((a13==1)){ + a1 = 13; + a5 = 5; + a19 = 1; + a9 = 9; + a16 = 7; + a22 = 1; + a20 = 1; + a18 = 1; + a29 = 0; + }else{ + a25 = 0; + a9 = 8; + a19 = 2; + a7 = 1; + a21 = 10; + a16 = 7; + a5 = 4; + a20 = 1; + a23 = 0; + a1 = 12; + } + return -1; + } else if((((a19==5)&&(((a3==1)&&(a21==10))||(a0==1)))&&((((((a17==2)&&((a16==8)&&(((!(a20==1)&&((input==6)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))))&&!(a14==1))&&(a6==1))))&&(a1==14))&&(a28==1))&&!(a26==1))&&(a13==1)))){ + a7 = 0; + a3 = 1; + a20 = 1; + a26 = 0; + a21 = 12; + a9 = 9; + a1 = 12; + a5 = 5; + a19 = 3; + return 22; + } else if(((((a6==1)&&((!(a14==1)&&((!(a8==1)&&(((a1==12)&&(((a9==8)&&((input==4)&&((a5==5)||(a5==6))))&&(a16==9)))&&!(a20==1)))&&(a19==5)))&&(a3==1)))&&!(a27==1))&&(((a21==12)&&((a0==1)||(a28==1)))&&(a17==2)))){ + if((a3==1)){ + a27 = 1; + a16 = 7; + a15 = 1; + a20 = 1; + a19 = 1; + a21 = 10; + a5 = 5; + a1 = 14; + a6 = 0; + a9 = 10; + }else{ + a10 = 1; + a13 = 0; + a9 = 10; + a5 = 4; + a25 = 1; + a16 = 11; + a20 = 1; + } + return -1; + } else if((((a17==2)&&((a12==1)&&(!(a20==1)&&(!(a7==1)&&((input==1)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))))))&&((!(a27==1)&&((a19==5)&&((a0==1)||((a16==9)&&(!(a14==1)&&((a21==12)&&(!(a2==1)||(a12==1))))))))&&(a1==13)))){ + if((a29==1)){ + a10 = 0; + a21 = 11; + a12 = 0; + a9 = 8; + a0 = 1; + a16 = 8; + a5 = 6; + a20 = 1; + a19 = 1; + }else{ + a19 = 1; + a16 = 7; + a9 = 7; + a10 = 0; + a13 = 0; + a22 = 0; + a21 = 10; + a5 = 6; + a20 = 1; + } + return -1; + } else if((((a16==8)&&((a1==13)&&((a17==2)&&(!(a14==1)&&((a9==7)&&((!(a14==1)&&(a3==1))&&!(a26==1)))))))&&(((!(a0==1)&&(((a13==1)&&((a19==3)&&(((a5==5)||(a5==6))&&(input==5))))&&(a21==10)))&&!(a0==1))&&!(a20==1)))){ + a20 = 1; + a5 = 6; + a9 = 9; + a1 = 14; + a4 = 0; + a21 = 12; + a19 = 4; + a28 = 1; + a3 = 1; + return 25; + } else if((((a17==2)&&(((a20==1)&&((a16==9)&&((((a13==1)&&((a6==1)&&(a19==5)))&&(a13==1))&&!(a18==1))))&&(a9==7)))&&((a1==12)&&(((a21==11)&&(((a2==1)&&((a5==5)&&(input==4)))&&!(a18==1)))&&!(a7==1))))){ + a19 = 1; + a21 = 10; + a28 = 1; + a3 = 1; + a5 = 4; + a16 = 7; + a27 = 0; + return -1; + } else if((((((!(a7==1)&&(((input==5)&&(((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))))&&!(a14==1)))&&(a17==2))&&(a19==4))&&!(a8==1))&&((a3==1)&&((a16==7)&&((a6==1)&&((((a1==13)&&((a3==1)&&!(a20==1)))&&(a21==10))&&!(a4==1))))))){ + a19 = 1; + a5 = 4; + a20 = 1; + a1 = 12; + a26 = 0; + a8 = 0; + a9 = 7; + return -1; + } else if(((((((a19==5)&&((!(a18==1)&&((a1==14)&&(input==5)))&&!(a14==1)))&&(a16==8))&&!(a24==1))&&!(a18==1))&&((((a20==1)&&((a9==7)&&(((a5==6)&&((a13==1)&&(a21==12)))&&(a17==2))))||!(a3==1))||(a18==1)))){ + a7 = 0; + a0 = 0; + a1 = 12; + a21 = 10; + a9 = 9; + a27 = 0; + a5 = 4; + return -1; + } else if((((((((((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(input==4))&&!(a0==1))&&(a16==11))&&(a19==1))&&(a11==1))&&(((a17==2)&&((a18==1)||((((a21==12)&&(!(a14==1)&&((a12==1)&&(a1==14))))&&(a20==1))||!(a2==1))))||!(a23==1)))){ + a5 = 4; + a21 = 10; + a1 = 12; + a16 = 7; + a9 = 7; + a7 = 0; + a3 = 1; + a6 = 1; + return -1; + } else if(((((a6==1)&&((a21==11)&&(!(a27==1)&&((a1==13)&&((((a9==9)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3)))&&(a20==1))&&(a19==2))))))&&(a17==2))&&(!(a13==1)||((((a7==1)||((a16==8)&&(a6==1)))||(a18==1))||!(a12==1))))){ + a9 = 7; + a1 = 12; + a12 = 1; + a21 = 10; + a5 = 4; + a14 = 0; + a19 = 1; + a16 = 7; + return -1; + } else if(((!(a18==1)&&(!(a23==1)||((a16==10)&&((a5==6)&&(((a28==1)&&(a19==4))&&(a23==1))))))&&((a2==1)&&((a13==1)&&((a20==1)&&((a9==10)&&((a1==12)&&(((a11==1)&&((input==6)&&(a21==11)))&&(a17==2))))))))){ + a24 = 0; + a19 = 2; + a11 = 1; + a21 = 10; + a27 = 0; + a9 = 8; + a1 = 14; + a16 = 7; + return 26; + } else if((((a11==1)&&((((((a5==5)&&((a21==11)&&(input==6)))&&(a23==1))&&(a9==9))&&(a16==11))&&(a17==2)))&&(!(a11==1)||(((a19==2)&&(((((a28==1)&&(a20==1))||!(a23==1))&&(a11==1))||!(a2==1)))&&(a1==13))))){ + a6 = 1; + a19 = 1; + a16 = 7; + a9 = 7; + a1 = 12; + a7 = 0; + a5 = 4; + a21 = 10; + return -1; + } else if(((!(a20==1)&&((a21==12)&&(((a13==1)&&((a14==1)||(((a13==1)||!(a2==1))&&(a16==7))))&&(a19==2))))&&(((((a17==2)&&(((input==1)&&(((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))))&&(a23==1)))&&(a12==1))&&(a12==1))&&(a1==13)))){ + a5 = 4; + a4 = 0; + a21 = 10; + a26 = 0; + a9 = 9; + a28 = 1; + a20 = 1; + return 26; + } else if((((((a17==2)&&((!(a0==1)&&((a11==1)&&((a1==12)&&(((input==6)&&(((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))&&!(a26==1)))))&&(a28==1)))&&(a16==8))&&(a19==4))&&((!(a11==1)||(((a4==1)||(a11==1))&&(a21==12)))&&(a20==1)))){ + a8 = 0; + a16 = 10; + a5 = 6; + a19 = 3; + a3 = 1; + a9 = 11; + a24 = 0; + return 22; + } else if(((((a16==11)&&((((a9==9)&&((a17==2)&&(((a11==1)&&(a1==13))&&(a19==4))))&&(a6==1))&&(a21==12)))&&(a3==1))&&(((a23==1)&&((((a23==1)&&((input==5)&&((a5==4)||(a5==5))))&&(a20==1))&&!(a18==1)))&&!(a4==1)))){ + a0 = 0; + a23 = 1; + a19 = 5; + a13 = 1; + a1 = 14; + a5 = 4; + return 26; + } else if(((((((a21==12)&&((a1==13)&&(a3==1)))&&(a16==11))&&(a9==10))&&(a17==2))&&((a19==4)&&((!(a4==1)&&((!(a14==1)&&(((((input==4)&&((a5==5)||(a5==6)))&&!(a7==1))&&!(a14==1))&&(a11==1)))&&(a28==1)))&&(a20==1))))){ + a1 = 12; + a9 = 7; + a12 = 1; + a21 = 10; + a28 = 1; + a4 = 0; + a19 = 1; + a5 = 4; + a16 = 7; + return -1; + } else if(((((a16==7)&&((a6==1)&&((a3==1)&&((input==6)&&((a5==5)||(a5==6))))))&&!(a20==1))&&((((a1==14)&&((a17==2)&&((a19==4)&&(((!(a7==1)&&(!(a26==1)&&(a3==1)))&&!(a0==1))||!(a6==1)))))&&(a9==8))&&(a21==10)))){ + if((a0==1)){ + a5 = 6; + a26 = 0; + a19 = 5; + a16 = 8; + a27 = 0; + a13 = 1; + a1 = 13; + }else{ + a3 = 1; + a19 = 5; + a5 = 5; + a1 = 12; + a6 = 1; + } + return 26; + } else if(((((((((a19==2)&&((a5==5)&&((a21==12)&&(a11==1))))&&(a9==9))&&!(a20==1))&&(a17==2))&&!(a8==1))&&(a2==1))&&(((a3==1)&&(((a23==1)&&(((a1==12)&&(input==4))&&(a16==9)))&&!(a7==1)))&&!(a14==1)))){ + if((a11==1)){ + a25 = 1; + a18 = 1; + a21 = 10; + a5 = 6; + a27 = 1; + a9 = 11; + a16 = 7; + a20 = 1; + }else{ + a21 = 10; + a16 = 7; + a20 = 1; + a22 = 0; + a9 = 10; + a26 = 1; + a15 = 0; + a5 = 4; + } + return -1; + } else if((((a16==11)&&(((a1==14)&&(((a12==1)&&((((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5)))&&(input==4))&&!(a8==1)))&&(a19==2)))&&(a20==1)))&&((a6==1)&&(((a17==2)&&((a21==10)&&((!(a2==1)||(a13==1))&&(a6==1))))||(a14==1))))){ + a16 = 7; + a5 = 4; + a1 = 12; + a9 = 7; + a7 = 0; + a14 = 0; + a27 = 0; + a19 = 1; + return -1; + } else if((((!(a0==1)&&(((((a9==7)&&(input==6))&&(a12==1))&&!(a18==1))&&(a20==1)))&&!(a14==1))&&(((a1==14)&&((a21==11)&&((a24==1)||(((a16==7)&&(((a11==1)&&!(a7==1))&&(a19==2)))&&(a5==5)))))&&(a17==2)))){ + a0 = 0; + a21 = 10; + a1 = 12; + a5 = 4; + a12 = 1; + a13 = 1; + a19 = 1; + return -1; + } else if(((((a12==1)&&((a19==5)&&((a4==1)||((a11==1)&&(a9==7)))))&&(a1==14))&&(((a17==2)&&(((((a13==1)&&(((a21==12)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))&&(a20==1)))&&(a12==1))&&!(a27==1))&&(a12==1)))&&(a16==11)))){ + a18 = 0; + a28 = 1; + a5 = 5; + a20 = 0; + a14 = 0; + a19 = 1; + a16 = 7; + a21 = 10; + return 22; + } else if((((a13==1)&&(((a1==12)&&(((a17==2)&&((input==6)&&((a5==6)||((a5==4)||(a5==5)))))&&(a19==2)))&&(a16==10)))&&(!(a11==1)||((!(a12==1)||((a20==1)&&(((a21==12)&&((a9==11)&&(!(a27==1)&&(a11==1))))||!(a13==1))))&&(a2==1))))){ + a9 = 7; + a12 = 1; + a19 = 1; + a6 = 1; + a5 = 6; + a21 = 11; + a16 = 9; + return 25; + } else if((((((((a21==11)&&((a2==1)&&(((a20==1)&&((a9==9)&&(a28==1)))||(a26==1))))&&(a17==2))&&!(a27==1))&&!(a7==1))||(a7==1))&&(((a1==13)&&((((input==4)&&(a16==7))&&(a19==4))&&(a11==1)))&&(a5==6)))){ + a2 = 1; + a3 = 1; + a12 = 1; + a9 = 7; + a5 = 4; + a21 = 10; + a1 = 12; + a19 = 1; + return -1; + } else if(((((a8==1)||(((!(a12==1)||(a23==1))&&(a17==2))&&(a16==9)))||!(a23==1))&&(!(a20==1)&&((((a28==1)&&(((a1==13)&&((((a21==10)&&(input==5))&&(a3==1))&&(a9==9)))&&(a19==4)))&&(a11==1))&&(a5==6))))){ + if((a9==7)){ + a16 = 10; + a9 = 10; + a19 = 1; + a22 = 1; + a21 = 11; + a23 = 0; + a1 = 12; + a4 = 1; + }else{ + a21 = 12; + a20 = 1; + a8 = 1; + a22 = 0; + a19 = 2; + a16 = 7; + a9 = 7; + a5 = 5; + a27 = 1; + } + return -1; + } else if(((((!(a8==1)&&(((a1==12)&&(((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))&&(input==6)))&&(a28==1)))&&(a21==10))&&(a19==5))&&((a16==9)&&((a17==2)&&((a6==1)&&(((!(a0==1)&&((a12==1)||!(a3==1)))&&(a20==1))&&(a12==1))))))){ + a2 = 1; + a6 = 1; + a5 = 4; + a16 = 7; + a13 = 1; + a19 = 1; + a9 = 7; + return -1; + } else if(((((((((((a16==8)&&(input==6))&&!(a24==1))&&(a20==1))&&(a5==5))&&(a28==1))&&(a19==1))&&!(a4==1))&&(a17==2))&&((((a26==1)||((a1==12)&&(((a12==1)||(a0==1))||!(a3==1))))&&(a21==10))&&(a9==10)))){ + a5 = 4; + a27 = 0; + a9 = 7; + a23 = 1; + a16 = 7; + a28 = 1; + return -1; + } else if(((((a17==2)&&((a20==1)&&((a1==12)&&((a23==1)&&(((a2==1)&&((a21==12)&&((input==4)&&((a5==5)||(a5==6)))))&&(a19==5))))))&&(a16==11))&&(((a11==1)&&((!(a8==1)&&(!(a6==1)||(a23==1)))||!(a2==1)))&&(a9==9)))){ + a21 = 10; + a16 = 7; + a24 = 0; + a26 = 0; + a19 = 1; + a9 = 7; + a5 = 4; + return -1; + } else if((((((!(a8==1)&&((a19==2)&&(input==3)))&&(a28==1))&&(a9==8))&&(a5==4))&&((a16==11)&&(!(a20==1)&&(((a17==2)&&((a7==1)||((a14==1)||((a6==1)&&((a1==14)&&((a23==1)&&(a28==1)))))))&&(a21==10)))))){ + if((a5==5)){ + a18 = 1; + a16 = 7; + a10 = 1; + a0 = 1; + a1 = 12; + a20 = 1; + a9 = 9; + a19 = 1; + }else{ + a20 = 1; + a9 = 9; + a3 = 0; + a10 = 1; + a1 = 12; + a5 = 5; + a16 = 7; + a2 = 0; + a19 = 1; + } + return -1; + } else if((((!(a27==1)&&((a17==2)&&((a16==10)&&((!(a20==1)&&(a13==1))&&(a19==5)))))&&(a6==1))&&(!(a4==1)&&((a11==1)&&((a28==1)&&((a21==11)&&(!(a27==1)&&((a1==13)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==1)))))))))){ + if((a27==1)){ + a9 = 9; + a24 = 1; + a21 = 12; + a5 = 6; + a25 = 0; + a16 = 9; + a8 = 1; + }else{ + a21 = 12; + a8 = 1; + a2 = 0; + a5 = 5; + a1 = 12; + a26 = 1; + a9 = 10; + a16 = 8; + a20 = 1; + } + return 26; + } else if(((!(a3==1)||((a21==12)&&((a13==1)&&(a19==2))))&&(((((a16==8)&&(((a17==2)&&(((((((a9==11)&&((a5==5)&&(a1==13)))||((a9==11)&&((a5==6)&&(a1==13))))||((a9==7)&&((a1==14)&&(a5==4))))&&(input==3))&&(a23==1))&&!(a26==1)))&&!(a14==1)))&&!(a24==1))&&!(a20==1))&&(a11==1)))){ + if((a24==1)){ + a1 = 12; + a18 = 1; + a20 = 1; + a7 = 1; + a16 = 7; + a21 = 10; + a9 = 10; + a5 = 4; + a19 = 1; + a22 = 1; + }else{ + a25 = 0; + a20 = 1; + a19 = 1; + a26 = 1; + a4 = 1; + a9 = 7; + a16 = 10; + a5 = 6; + a1 = 12; + a21 = 10; + } + return -1; + } else if((((a9==11)&&((((a3==1)&&((a28==1)&&((((a5==4)||(a5==5))&&(input==6))&&(a28==1))))&&(a1==14))&&(a2==1)))&&(!(a20==1)&&((a21==12)&&(((a17==2)&&((((a16==9)&&(a6==1))&&(a19==5))||!(a23==1)))&&!(a0==1)))))){ + a1 = 13; + a16 = 7; + a0 = 1; + a21 = 11; + a18 = 1; + a5 = 6; + a9 = 9; + a20 = 1; + a6 = 0; + a19 = 4; + return 21; + } else if(((!(a18==1)&&((a21==10)&&(((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a9==10))))&&((a1==13)&&(((((!(a20==1)&&((a16==8)&&((a18==1)||(!(a28==1)||((a23==1)&&(a19==1))))))&&(a11==1))||(a26==1))&&(a2==1))&&(a17==2))))){ + a5 = 4; + a1 = 12; + a7 = 0; + a16 = 7; + a13 = 1; + a11 = 1; + a9 = 7; + a20 = 1; + return -1; + } else if((((((((a17==2)&&(((((a5==5)||(a5==6))&&(input==4))&&(a19==2))&&!(a2==1)))&&(a26==1))&&(a21==10))&&!(a6==1))&&(a26==1))&&(((a20==1)&&((!(a28==1)&&(((a6==1)&&(a9==7))&&(a1==13)))&&!(a2==1)))&&(a16==8)))){ + a28 = 0; + a14 = 1; + a19 = 3; + a29 = 0; + a9 = 9; + a16 = 9; + a1 = 12; + a5 = 5; + return -1; + } else if(((((((a6==1)&&((input==6)&&((a5==5)||(a5==6))))&&(a16==9))&&!(a14==1))&&(a19==2))&&((a1==12)&&((a9==8)&&((((!(a11==1)||((((a6==1)&&(a17==2))||!(a11==1))&&!(a20==1)))&&(a28==1))||!(a12==1))&&(a21==10)))))){ + a9 = 7; + a3 = 0; + a20 = 1; + a10 = 0; + a1 = 13; + a5 = 6; + a21 = 11; + a16 = 7; + a12 = 0; + a19 = 4; + return -1; + } else if(((((a16==10)&&((a19==3)&&(((((a23==1)&&(!(a27==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6))))&&(a9==7))&&(a11==1))&&!(a26==1))))&&!(a20==1))&&(((((a24==1)||((a6==1)||!(a3==1)))&&(a21==12))&&(a17==2))&&(a1==13)))){ + a16 = 8; + a9 = 10; + a24 = 1; + a10 = 0; + a5 = 4; + a1 = 14; + a12 = 0; + a20 = 1; + a21 = 10; + return -1; + } else if(((!(a7==1)&&((!(a20==1)&&((a23==1)&&((a1==13)&&((a13==1)&&(((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9)))&&(input==5))))))&&(a23==1)))&&(!(a12==1)||((a7==1)||(((a21==12)&&(((a13==1)&&(a19==1))&&(a17==2)))&&(a16==8)))))){ + a19 = 2; + a16 = 10; + a8 = 1; + a13 = 0; + a10 = 0; + a9 = 9; + a21 = 11; + a20 = 1; + a5 = 4; + return -1; + } else if((((a3==1)&&(((a8==1)||(((!(a4==1)&&(((a21==12)&&(((a17==2)&&((a19==5)&&(a11==1)))&&(a16==9)))&&(a23==1)))&&(a1==13))||!(a11==1)))&&(a2==1)))&&(((input==6)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&!(a20==1)))){ + a9 = 11; + a22 = 1; + a20 = 1; + a5 = 6; + a21 = 10; + a16 = 7; + a6 = 0; + a19 = 1; + a1 = 14; + a15 = 1; + return -1; + } else if((((!(a4==1)&&(((a17==2)&&(!(a24==1)&&(!(a4==1)&&((a19==4)&&((a16==8)&&(input==5))))))&&!(a20==1)))&&(a9==8))&&(((a5==6)&&(!(a28==1)||(((a7==1)||((a6==1)&&(a3==1)))&&(a1==12))))&&(a21==10)))){ + a9 = 7; + a20 = 1; + a23 = 1; + a19 = 1; + a18 = 0; + a6 = 1; + a16 = 7; + a5 = 4; + return -1; + } else if(((((a3==1)&&((a19==1)&&(!(a4==1)&&((input==5)&&(a1==12)))))&&(a9==8))&&((a4==1)||((a5==6)&&(!(a0==1)&&((a17==2)&&((a21==12)&&((a4==1)||(!(a23==1)||((a20==1)&&((a16==9)&&(a13==1)))))))))))){ + a26 = 0; + a9 = 7; + a8 = 0; + a4 = 0; + a21 = 10; + a5 = 4; + a16 = 7; + return -1; + } else if((((a16==10)&&((((((a1==14)&&(a12==1))&&(a11==1))&&(a9==10))&&(a21==10))&&!(a20==1)))&&(((((a23==1)&&((((a19==3)&&(((a5==5)||(a5==6))&&(input==4)))&&(a2==1))&&(a12==1)))&&!(a8==1))&&!(a18==1))&&(a17==2)))){ + a28 = 0; + a20 = 1; + a11 = 0; + a5 = 6; + a1 = 12; + a19 = 2; + a16 = 7; + a9 = 11; + a10 = 1; + return 21; + } else if(((!(a11==1)||(((((((a17==2)&&((a3==1)&&(a16==10)))&&(a13==1))&&(a9==7))&&(a19==4))&&(a21==10))||!(a13==1)))&&(((a13==1)&&(((!(a14==1)&&(((a5==5)||(a5==6))&&(input==3)))&&(a1==14))&&(a20==1)))&&!(a18==1)))){ + a11 = 1; + a16 = 7; + a5 = 4; + a19 = 1; + a27 = 0; + a1 = 12; + a24 = 0; + return -1; + } else if((((a11==1)&&((input==3)&&((a5==4)||(a5==5))))&&((a24==1)||(!(a7==1)&&(((a11==1)&&((a21==12)&&(!(a20==1)&&((((a9==11)&&((a6==1)&&((a1==14)&&((a19==1)&&(a6==1)))))&&(a17==2))&&(a16==8)))))||(a7==1)))))){ + a16 = 7; + a19 = 2; + a14 = 1; + a28 = 0; + a20 = 1; + a9 = 9; + a1 = 12; + a6 = 0; + a21 = 10; + a5 = 4; + return 25; + } else if((((a5==5)&&((!(a14==1)&&((((a21==11)&&(((a12==1)&&((input==4)&&(a19==5)))&&!(a8==1)))&&!(a8==1))&&!(a14==1)))&&(a20==1)))&&((a16==8)&&(((a9==7)&&((a17==2)&&((a1==14)&&(a6==1))))&&!(a18==1))))){ + a28 = 1; + a19 = 1; + a1 = 12; + a4 = 0; + a27 = 0; + a21 = 10; + a16 = 7; + a5 = 4; + return -1; + } else if(((((((a2==1)&&(a12==1))&&(a16==9))||!(a13==1))||!(a28==1))&&((((a1==12)&&((a9==9)&&(!(a0==1)&&((a5==4)&&((a19==3)&&(!(a14==1)&&((a13==1)&&((input==3)&&!(a20==1)))))))))&&(a21==12))&&(a17==2)))){ + a3 = 0; + a20 = 1; + a9 = 10; + a19 = 1; + a5 = 6; + a1 = 14; + a21 = 10; + a7 = 1; + a27 = 1; + return 22; + } else if((((!(a18==1)&&(((a23==1)&&!(a24==1))&&(a1==12)))||!(a2==1))&&((a11==1)&&(((a3==1)&&((a17==2)&&((a16==8)&&((a9==8)&&((a21==10)&&((a20==1)&&((a19==5)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))))))))&&!(a14==1))))){ + a16 = 10; + a19 = 1; + a9 = 10; + a1 = 14; + a5 = 6; + a13 = 1; + a4 = 0; + a18 = 0; + return 22; + } else if((((a19==2)&&((a1==13)&&((!(a0==1)&&((a21==10)&&(!(a24==1)&&(((((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&(input==6))&&(a16==8)))))&&!(a20==1))))&&((a17==2)&&((a23==1)&&((((a12==1)&&(a2==1))||(a4==1))||!(a13==1)))))){ + a5 = 4; + a27 = 0; + a1 = 12; + a16 = 7; + a0 = 0; + a6 = 1; + a9 = 7; + a20 = 1; + a19 = 1; + return -1; + } else if(((!(a26==1)&&((a20==1)&&(!(a26==1)&&(((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))&&(input==3))&&!(a24==1)))))&&((a19==4)&&((a1==12)&&(((a21==12)&&((a17==2)&&((a7==1)||(((a16==11)&&(a2==1))&&(a13==1)))))&&(a11==1)))))){ + a16 = 7; + a4 = 0; + a28 = 1; + a19 = 1; + a11 = 1; + a9 = 7; + a5 = 4; + a21 = 10; + return -1; + } else if((((a16==11)&&((a17==2)&&((a1==13)&&(((((a12==1)&&((((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(input==6)))&&(a23==1))&&(a20==1))&&(a28==1)))))&&((a19==3)&&((!(a18==1)&&((a21==10)&&(!(a13==1)||(a2==1))))&&!(a0==1))))){ + a1 = 12; + a5 = 4; + a18 = 0; + a19 = 1; + a9 = 7; + a16 = 7; + a11 = 1; + return -1; + } else if((((a17==2)&&(((((a13==1)&&(a12==1))&&(a16==9))||(a26==1))&&(a21==11)))&&(!(a20==1)&&(((a1==14)&&(!(a8==1)&&((a28==1)&&((((input==4)&&((((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))||((a5==4)&&(a9==10))))&&(a12==1))&&!(a27==1)))))&&(a19==4))))){ + a12 = 0; + a16 = 10; + a22 = 0; + a25 = 1; + a9 = 7; + a21 = 10; + a5 = 5; + a20 = 1; + a19 = 3; + return -1; + } else if(((((a19==3)&&(((((((a2==1)&&(a21==10))&&(a9==7))&&!(a20==1))&&(a16==8))&&!(a4==1))&&(a2==1)))&&!(a18==1))&&((((a17==2)&&((a1==13)&&(((input==4)&&((a5==5)||(a5==6)))&&!(a4==1))))&&!(a14==1))&&(a13==1)))){ + a18 = 0; + a19 = 4; + a12 = 1; + a1 = 14; + a21 = 12; + a5 = 6; + a27 = 0; + a20 = 1; + return 26; + } else if(((((a21==12)&&((!(a27==1)&&((((a20==1)&&((a17==2)&&(((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a5==4)&&(a9==8)))&&(input==6))))&&(a2==1))&&(a1==12)))&&(a19==4)))&&(a11==1))&&(((a11==1)&&(((a13==1)&&(a16==7))&&!(a7==1)))||!(a28==1)))){ + a19 = 1; + a21 = 10; + a3 = 1; + a8 = 0; + a4 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if(((((a7==1)&&(((((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))&&(input==5))&&(a18==1))&&!(a3==1)))&&(a21==12))&&(!(a3==1)&&((a1==14)&&(((((a20==1)&&(((a12==1)&&(a17==2))&&!(a12==1)))&&(a19==3))&&(a16==10))&&!(a3==1)))))){ + a13 = 0; + a21 = 10; + a2 = 0; + a1 = 12; + a9 = 7; + a5 = 4; + a19 = 2; + a28 = 0; + a16 = 7; + return -1; + } else if((((a16==9)&&((!(a3==1)||((a9==9)&&(((a4==1)||(a3==1))&&!(a14==1))))||(a26==1)))&&((a17==2)&&((a20==1)&&((a19==5)&&((((a21==12)&&(!(a24==1)&&((input==4)&&(a5==5))))&&(a23==1))&&(a1==13))))))){ + a9 = 7; + a1 = 12; + a24 = 0; + a16 = 7; + a5 = 4; + a21 = 10; + a26 = 0; + a4 = 0; + a19 = 1; + return -1; + } else if((((a1==14)&&(((a21==11)&&((a24==1)&&((a7==1)&&((a9==7)&&((a16==8)&&(a13==1))))))&&(a20==1)))&&((a17==2)&&(!(a11==1)&&(((a4==1)&&(((((a5==5)||(a5==6))&&(input==3))&&(a19==4))&&!(a28==1)))&&!(a28==1)))))){ + a9 = 11; + a26 = 1; + a10 = 0; + a5 = 6; + a21 = 12; + a16 = 11; + a1 = 13; + return 22; + } else if((((a9==10)&&((((a6==1)&&(((a11==1)&&((a20==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5))))))&&(a16==11)))&&(a21==11))&&!(a27==1)))&&((a11==1)&&((((((a6==1)&&(a19==5))&&(a1==13))||(a8==1))&&!(a18==1))&&(a17==2))))){ + a1 = 12; + a26 = 0; + a19 = 1; + a16 = 7; + a18 = 0; + a23 = 1; + a21 = 10; + a5 = 4; + a9 = 7; + return -1; + } else if(((!(a20==1)&&(((((a19==4)&&((a1==13)&&(input==5)))&&(a21==10))&&!(a24==1))&&(a5==4)))&&((a9==8)&&((a17==2)&&((a13==1)&&(!(a4==1)&&((a18==1)||(((a16==9)&&((a2==1)&&(a3==1)))||(a27==1))))))))){ + a29 = 0; + a16 = 7; + a26 = 1; + a20 = 1; + a19 = 1; + a27 = 1; + a9 = 7; + return 22; + } else if((((a16==10)&&((a21==10)&&(((!(a2==1)||(a6==1))||!(a23==1))||(a14==1))))&&((((a19==1)&&(((((((input==4)&&((a5==5)||(a5==6)))&&(a1==12))&&(a9==8))&&!(a0==1))&&!(a26==1))&&(a6==1)))&&(a17==2))&&!(a20==1)))){ + a6 = 0; + a16 = 7; + a5 = 5; + a20 = 1; + a0 = 1; + a24 = 1; + a9 = 10; + return -1; + } else if((((a14==1)||((!(a27==1)&&((a19==4)&&(a6==1)))&&(a16==10)))&&(!(a4==1)&&((!(a20==1)&&(((a17==2)&&(((a6==1)&&(((a1==13)&&(((a5==4)||(a5==5))&&(input==4)))&&(a21==10)))&&!(a24==1)))&&(a6==1)))&&(a9==11))))){ + a7 = 1; + a2 = 0; + a16 = 7; + a1 = 12; + a3 = 0; + a20 = 1; + a19 = 2; + a5 = 4; + return -1; + } else if((((a21==10)&&(((a19==1)&&((a26==1)||(((a16==9)&&(((a11==1)&&(a12==1))&&!(a24==1)))&&(a20==1))))&&(a1==13)))&&((a17==2)&&(!(a8==1)&&((!(a24==1)&&((input==1)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5)))))&&!(a7==1)))))){ + a16 = 11; + a27 = 0; + a13 = 1; + a1 = 12; + a5 = 5; + a9 = 10; + a28 = 1; + return 25; + } else if(((((a9==7)&&((a24==1)||(((a5==4)&&(!(a2==1)||(a13==1)))&&(a17==2))))&&(a16==8))&&(!(a20==1)&&(((a13==1)&&(((!(a4==1)&&((a23==1)&&((a1==13)&&(input==5))))&&(a19==2))&&(a21==11)))&&(a28==1))))){ + a27 = 0; + a20 = 1; + a19 = 1; + a16 = 7; + a21 = 10; + a12 = 1; + a13 = 1; + a1 = 12; + return -1; + } else if(((((a19==5)&&(!(a27==1)&&((!(a8==1)&&((input==5)&&((a5==5)||(a5==6))))&&!(a26==1))))&&(a21==12))&&((((!(a12==1)||(((a7==1)||(((a12==1)&&(a12==1))&&(a20==1)))&&(a1==12)))&&(a17==2))&&(a16==11))&&(a9==9)))){ + a5 = 5; + a20 = 0; + a7 = 0; + a9 = 10; + a8 = 0; + a16 = 7; + a21 = 10; + a19 = 1; + a11 = 1; + return 26; + } else if((((a16==9)&&(((a18==1)||(((a18==1)||((a9==9)&&(((a21==11)&&(a11==1))||!(a2==1))))||(a8==1)))&&(a17==2)))&&((a5==5)&&((a1==13)&&(((a6==1)&&(!(a20==1)&&((a19==3)&&(input==6))))&&(a13==1)))))){ + if((a20==1)){ + a9 = 11; + a19 = 1; + a21 = 10; + a6 = 0; + a20 = 1; + a16 = 7; + a22 = 1; + a25 = 1; + a1 = 14; + }else{ + a19 = 1; + a3 = 0; + a16 = 7; + a21 = 10; + a9 = 8; + a10 = 1; + a20 = 1; + a0 = 1; + a1 = 14; + } + return 25; + } else if((((a19==5)&&((((a17==2)&&(!(a6==1)||((a3==1)&&(a23==1))))&&(a16==7))&&(a9==10)))&&(((a1==12)&&(((!(a0==1)&&((a20==1)&&((a23==1)&&((a5==5)&&(input==3)))))&&(a21==12))&&!(a0==1)))&&!(a7==1)))){ + a5 = 4; + a13 = 1; + a9 = 7; + a21 = 10; + a0 = 0; + a24 = 0; + a19 = 1; + return -1; + } else if((((a13==1)&&(!(a8==1)&&((((input==4)&&((((a5==4)&&(a1==13))&&(a9==7))||(((a9==11)&&((a5==5)&&(a1==12)))||(((a5==6)&&(a1==12))&&(a9==11)))))&&(a16==11))&&!(a20==1))))&&(!(a4==1)&&((a19==3)&&(((!(a7==1)&&(((a23==1)||!(a3==1))&&(a21==10)))&&(a13==1))&&(a17==2)))))){ + a9 = 8; + a16 = 7; + a14 = 1; + a24 = 1; + a29 = 1; + a19 = 2; + a5 = 5; + a1 = 12; + a20 = 1; + return -1; + } else if((((a9==7)&&((a20==1)&&((a21==10)&&(((a19==2)&&(((a24==1)&&((((((a5==5)||(a5==6))&&(input==1))&&!(a2==1))&&(a18==1))&&(a16==11)))&&(a27==1)))&&(a17==2)))))&&((a1==13)&&(((a7==1)&&(a2==1))&&(a24==1))))){ + a9 = 8; + a16 = 7; + a23 = 0; + a19 = 1; + a5 = 5; + a14 = 1; + a26 = 1; + a1 = 12; + return 21; + } else if(((((((((a17==2)&&((input==3)&&(((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6))))))&&(a19==4))&&!(a8==1))&&(a16==9))&&(a11==1))&&!(a27==1))&&((a20==1)&&(!(a18==1)&&((a1==14)&&(((a14==1)||((a8==1)||(a28==1)))&&(a21==10))))))){ + a5 = 4; + a9 = 7; + a8 = 0; + a23 = 1; + a27 = 0; + a16 = 7; + a1 = 12; + a19 = 1; + return -1; + } else if(((!(a2==1)||((a8==1)||(((a6==1)&&(a16==10))&&(a17==2))))&&((((((a21==12)&&(!(a20==1)&&((input==5)&&((((a19==2)&&((a9==11)&&((a1==14)&&(a5==5))))||((a19==2)&&(((a5==6)&&(a1==14))&&(a9==11))))||((a19==3)&&(((a1==12)&&(a5==4))&&(a9==7)))))))&&!(a27==1))&&!(a27==1))&&(a13==1))&&(a11==1)))){ + a9 = 7; + a20 = 1; + a21 = 10; + a5 = 6; + a19 = 2; + a1 = 12; + a15 = 1; + a16 = 7; + a25 = 0; + a22 = 1; + return 25; + } else if((((a21==11)&&((a3==1)&&(((((a16==7)&&((((a9==7)&&((a1==13)&&(a5==4)))||(((a9==11)&&((a5==5)&&(a1==12)))||(((a5==6)&&(a1==12))&&(a9==11))))&&(input==5)))&&(a2==1))&&!(a14==1))&&(a2==1))))&&((((a19==4)&&((a24==1)||(!(a6==1)||(a6==1))))&&(a20==1))&&(a17==2)))){ + a5 = 4; + a16 = 8; + a9 = 10; + a20 = 0; + a19 = 3; + a11 = 1; + a1 = 12; + a14 = 0; + a12 = 1; + return 26; + } else if((((a5==4)&&((a9==9)&&(((a3==1)&&!(a18==1))||(a18==1))))&&((a17==2)&&(((a12==1)&&((a11==1)&&((((a16==8)&&((a1==12)&&(((a19==3)&&(input==4))&&(a20==1))))&&(a28==1))&&!(a27==1))))&&(a21==12))))){ + a21 = 10; + a19 = 1; + a8 = 0; + a9 = 7; + a16 = 7; + a0 = 0; + return -1; + } else if(((((a21==12)&&((a12==1)&&((a7==1)||((a20==1)&&((a3==1)&&(a1==13))))))&&(a13==1))&&((!(a26==1)&&((((a16==9)&&((a19==1)&&((((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6))))&&(input==6))))&&(a17==2))&&!(a7==1)))&&(a2==1)))){ + a28 = 1; + a1 = 12; + a7 = 0; + a21 = 10; + a16 = 10; + a5 = 5; + a9 = 8; + return 21; + } else if(((!(a0==1)&&((a16==7)&&(((a18==1)||((((a6==1)&&!(a20==1))||!(a2==1))&&(a5==6)))&&(a1==14))))&&((((a9==11)&&(((!(a18==1)&&((a17==2)&&(input==3)))&&!(a18==1))&&(a21==11)))&&(a6==1))&&(a19==3)))){ + a5 = 4; + a21 = 10; + a20 = 1; + a1 = 12; + a14 = 0; + a23 = 1; + a19 = 1; + a18 = 0; + a9 = 7; + return -1; + } else if((((a13==1)&&(((a20==1)&&(!(a4==1)&&((a9==10)&&(input==4))))&&(a1==12)))&&((a6==1)&&((a21==11)&&((a5==6)&&((((a19==4)&&(!(a0==1)&&(((a23==1)&&(a17==2))&&(a6==1))))&&(a16==9))||(a4==1))))))){ + a16 = 7; + a5 = 4; + a21 = 10; + a23 = 1; + a12 = 1; + a9 = 7; + a19 = 1; + a2 = 1; + return -1; + } else if((((((a1==12)&&(((((input==6)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(a16==9))&&(a19==3))&&!(a14==1)))&&!(a24==1))&&(a28==1))&&((!(a23==1)||(((a21==10)&&(!(a20==1)&&((a23==1)&&(a17==2))))||!(a2==1)))&&!(a0==1)))){ + a4 = 1; + a5 = 4; + a13 = 0; + a27 = 1; + a9 = 10; + a16 = 8; + a1 = 14; + a19 = 4; + return 26; + } else if((((((!(a8==1)&&((a17==2)&&(((a19==1)&&((input==5)&&((a5==5)||(a5==6))))&&(a13==1))))&&!(a0==1))&&(a20==1))&&(a21==12))&&(((a16==9)&&((a12==1)&&((a9==10)&&(((a2==1)||!(a3==1))&&!(a8==1)))))&&(a1==13)))){ + a9 = 7; + a5 = 4; + a14 = 0; + a1 = 12; + a11 = 1; + a16 = 7; + a21 = 10; + a12 = 1; + return -1; + } else if((((a12==1)&&(((a16==9)&&((((a13==1)&&(((((a5==4)&&(a1==14))&&(a9==7))||(((a9==11)&&((a1==13)&&(a5==5)))||(((a5==6)&&(a1==13))&&(a9==11))))&&(input==5)))&&(a23==1))&&!(a20==1)))&&(a21==12)))&&((a28==1)&&((a27==1)||(((a17==2)&&((a2==1)&&(a19==1)))||(a24==1)))))){ + a16 = 7; + a5 = 5; + a20 = 1; + a24 = 1; + a21 = 10; + a9 = 8; + a3 = 0; + a1 = 14; + a2 = 0; + return -1; + } else if((((a20==1)&&((a1==14)&&((a27==1)||((a16==7)&&(a6==1)))))&&((((a19==2)&&((((a9==11)&&((((a17==2)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))&&!(a18==1))&&!(a27==1)))&&!(a7==1))&&(a12==1)))&&!(a27==1))&&(a21==10)))){ + a5 = 6; + a4 = 0; + a19 = 4; + a3 = 1; + a9 = 9; + return 25; + } else if(((((a11==1)&&((a5==6)&&(!(a14==1)&&(((a9==11)&&((a6==1)&&(((a20==1)&&(input==5))&&(a28==1))))&&(a2==1)))))&&(a19==5))&&((a28==1)&&(((((a2==1)&&(a21==10))&&(a16==9))&&(a17==2))&&(a1==12))))){ + a19 = 1; + a16 = 7; + a6 = 1; + a9 = 7; + a3 = 1; + a12 = 1; + a5 = 4; + return -1; + } else if((((a20==1)&&((a17==2)&&((a2==1)&&((((a21==11)&&((((input==3)&&(a19==2))&&(a23==1))&&(a23==1)))&&(a1==12))&&!(a8==1)))))&&((a5==6)&&((a18==1)||(((a16==7)&&((a9==8)&&(a6==1)))&&(a23==1)))))){ + a27 = 0; + a18 = 0; + a19 = 1; + a5 = 4; + a9 = 7; + a21 = 10; + return -1; + } else if(((!(a4==1)&&(!(a24==1)&&((a21==11)&&((a17==2)&&(a28==1)))))&&((a23==1)&&(((((((a3==1)&&(((input==4)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5))))&&!(a7==1)))&&(a19==4))&&(a16==11))&&(a23==1))&&(a20==1))&&(a1==13))))){ + a5 = 4; + a19 = 1; + a9 = 7; + a8 = 0; + a21 = 10; + a16 = 7; + a3 = 1; + a28 = 1; + a1 = 12; + return -1; + } else if((((((!(a20==1)&&((((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))&&(input==4))&&(a3==1)))&&(a19==3))&&!(a27==1))&&(a16==7))&&((a17==2)&&(!(a18==1)&&((a1==13)&&(((((a6==1)||!(a12==1))&&(a23==1))&&!(a7==1))&&(a21==10))))))){ + a1 = 12; + a5 = 4; + a12 = 1; + a23 = 1; + a19 = 1; + a11 = 1; + a20 = 1; + a9 = 7; + return -1; + } else if(((((a6==1)&&(((a3==1)&&((((!(a24==1)&&((a17==2)&&(input==6)))&&(a1==13))&&(a6==1))&&(a23==1)))&&(a21==10)))&&(a5==4))&&(!(a20==1)&&((((a9==10)&&(!(a14==1)&&(a6==1)))&&(a19==3))&&(a16==8))))){ + a20 = 1; + a0 = 0; + a1 = 12; + a18 = 0; + a23 = 1; + a16 = 10; + a19 = 1; + a5 = 6; + return 21; + } else if(((((a8==1)&&((a17==2)&&(((((a21==11)&&((a20==1)&&(a11==1)))&&(a19==4))&&!(a13==1))&&(a27==1))))&&!(a11==1))&&((a18==1)&&(((a4==1)&&((((((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4)))&&(input==3))&&(a1==14)))&&(a16==10))))){ + a22 = 1; + a23 = 0; + a1 = 13; + a9 = 7; + a16 = 9; + a2 = 0; + a5 = 4; + a19 = 5; + return 21; + } else if((((((a2==1)&&(((input==1)&&((a5==4)||(a5==5)))&&(a17==2)))&&(a9==8))&&!(a26==1))&&((a1==14)&&(!(a3==1)||(((a19==2)&&((a21==10)&&((a16==9)&&((!(a20==1)&&((a23==1)||(a27==1)))||(a8==1)))))||!(a3==1)))))){ + a29 = 0; + a9 = 9; + a4 = 1; + a5 = 5; + a19 = 1; + a16 = 7; + a8 = 1; + a20 = 1; + return -1; + } else if((((!(a18==1)&&((a26==1)||(((((a13==1)&&(a1==13))&&(a16==11))&&!(a24==1))||!(a12==1))))||(a0==1))&&((a19==2)&&((a20==1)&&((((a17==2)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==6)))&&!(a18==1))&&(a21==11)))))){ + a9 = 7; + a1 = 12; + a4 = 0; + a5 = 4; + a27 = 0; + a21 = 10; + a16 = 7; + a19 = 1; + return -1; + } else if(((((a19==1)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==6)))&&(a1==14))&&((((!(a4==1)&&(((a18==1)||((a21==11)&&((a2==1)&&(!(a26==1)&&((a13==1)&&(a17==2))))))||!(a28==1)))||!(a12==1))&&(a16==10))&&(a20==1)))){ + a1 = 12; + a16 = 7; + a5 = 4; + a13 = 1; + a9 = 7; + a27 = 0; + a4 = 0; + a21 = 10; + return -1; + } else if((((a16==8)&&(((a17==2)&&(((a1==13)&&(((a2==1)&&((a11==1)&&((a28==1)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6))))))&&(a9==7)))&&(a21==12)))&&!(a20==1)))&&((a19==1)&&((a7==1)||(((a23==1)&&(a13==1))||!(a11==1)))))){ + a5 = 5; + a16 = 10; + a9 = 9; + a29 = 0; + a19 = 4; + a6 = 0; + a10 = 0; + a21 = 11; + return -1; + } else if(((!(a3==1)||((a1==13)&&(((a12==1)&&((!(a12==1)||((a4==1)||((a2==1)&&(a21==12))))&&(a19==3)))&&(a17==2))))&&((((((input==6)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(a28==1))&&(a16==10))&&(a6==1))&&(a20==1)))){ + a2 = 1; + a4 = 0; + a5 = 5; + a20 = 0; + a1 = 12; + a19 = 5; + a21 = 10; + a9 = 11; + a16 = 8; + return 21; + } else if((((a16==10)&&((((!(a28==1)||(((a19==3)&&(a11==1))&&!(a18==1)))&&(a9==11))&&!(a18==1))&&(a13==1)))&&((!(a20==1)&&((a1==14)&&(((((input==3)&&((a5==5)||(a5==6)))&&(a23==1))&&!(a7==1))&&(a21==12))))&&(a17==2)))){ + a1 = 12; + a22 = 0; + a19 = 5; + a9 = 10; + a10 = 1; + a5 = 5; + a28 = 0; + return -1; + } else if((((!(a18==1)&&((a1==12)&&((((!(a7==1)&&((a17==2)&&(((a19==1)&&(a13==1))&&(a12==1))))&&!(a0==1))&&!(a20==1))||!(a23==1))))||(a7==1))&&((((((a5==4)||(a5==5))&&(input==4))&&(a9==9))&&(a21==10))&&(a16==10)))){ + a12 = 0; + a22 = 0; + a16 = 8; + a27 = 1; + a1 = 14; + a5 = 4; + a9 = 10; + a21 = 12; + a19 = 3; + return -1; + } else if((((a11==1)&&((a21==11)&&(((((input==3)&&((a5==5)||(a5==6)))&&(a13==1))&&(a16==9))&&(a1==13))))&&((a2==1)&&((a17==2)&&(((a8==1)||((!(a8==1)&&(!(a20==1)&&((a24==1)||(a28==1))))&&(a19==5)))&&(a9==10)))))){ + a7 = 1; + a9 = 7; + a19 = 1; + a25 = 0; + a21 = 10; + a16 = 7; + a5 = 6; + a20 = 1; + a6 = 0; + return 23; + } else if((((((a17==2)&&(((a18==1)||(a6==1))&&!(a27==1)))&&(a19==4))&&(a9==9))&&((((a20==1)&&((((!(a26==1)&&(((a1==12)&&(input==6))&&(a13==1)))&&(a16==9))&&!(a14==1))&&!(a24==1)))&&(a5==6))&&(a21==10)))){ + a14 = 0; + a9 = 8; + a21 = 11; + a16 = 10; + a24 = 0; + a27 = 0; + return 21; + } else if((((!(a18==1)&&(!(a4==1)&&(((((a1==13)&&(a5==6))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==14))))&&(input==4))))&&(a28==1))&&(((((((a21==12)&&(((a12==1)||!(a28==1))||!(a23==1)))&&(a17==2))&&(a12==1))&&(a19==4))&&(a16==8))&&!(a20==1)))){ + a19 = 1; + a4 = 1; + a5 = 6; + a16 = 7; + a1 = 14; + a22 = 1; + a25 = 0; + a9 = 7; + return 21; + } else if((((a17==2)&&((a16==10)&&((((a1==14)&&((a11==1)&&(((a9==9)&&((((a3==1)&&(((a5==5)||(a5==6))&&(input==6)))&&!(a8==1))&&(a3==1)))&&!(a7==1))))&&(a19==4))&&!(a20==1))))&&(((a21==10)&&(a12==1))&&!(a26==1)))){ + a21 = 11; + a14 = 1; + a16 = 7; + a19 = 3; + a5 = 4; + a15 = 1; + a10 = 0; + return -1; + } else if(((!(a27==1)&&(((!(a18==1)&&((((a16==8)&&(a6==1))&&(a1==13))&&!(a18==1)))&&!(a18==1))&&(a11==1)))&&((a28==1)&&((a17==2)&&(((a19==1)&&((a21==10)&&(((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4)))&&(input==4))))&&(a20==1)))))){ + a13 = 1; + a16 = 7; + a26 = 0; + a1 = 12; + a23 = 1; + a9 = 7; + a5 = 4; + return -1; + } else if((((((((a12==1)&&!(a14==1))&&(a16==10))&&(a19==4))&&(a17==2))&&!(a0==1))&&(((((((a9==10)&&(((((a5==5)||(a5==6))&&(input==3))&&!(a4==1))&&(a1==14)))&&!(a26==1))&&(a21==10))&&(a20==1))&&(a2==1))&&!(a14==1)))){ + if((a28==1)){ + a9 = 11; + a16 = 8; + a20 = 0; + a5 = 4; + a0 = 0; + a19 = 2; + a8 = 0; + a7 = 0; + }else{ + a28 = 1; + a5 = 6; + a1 = 12; + a21 = 11; + a9 = 7; + a20 = 0; + a6 = 1; + a18 = 0; + a16 = 8; + } + return 26; + } else if(((((!(a18==1)&&((a19==4)&&((a21==10)&&(!(a0==1)&&((input==3)&&(((a9==7)&&((a5==4)&&(a1==13)))||((((a1==12)&&(a5==5))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==12))))))))))&&(a16==8))&&(a17==2))&&(!(a2==1)||(((a26==1)||((a20==1)&&(!(a3==1)||(a3==1))))||!(a6==1))))){ + a19 = 1; + a16 = 7; + a2 = 1; + a9 = 7; + a1 = 12; + a27 = 0; + a5 = 4; + a18 = 0; + return -1; + } else if((((a6==1)&&((((((a12==1)&&((input==5)&&(a1==13)))&&(a20==1))&&(a19==3))&&(a5==6))&&(a13==1)))&&(!(a6==1)||(((a12==1)&&((a9==7)&&((a16==11)&&(((a12==1)&&(a23==1))&&(a21==12)))))&&(a17==2))))){ + a12 = 1; + a3 = 1; + a19 = 5; + a21 = 11; + a18 = 0; + a5 = 5; + return 21; + } else if(((!(a6==1)&&((!(a12==1)&&((a4==1)&&(a13==1)))&&(a21==11)))&&(((a16==7)&&(((!(a6==1)&&(((a9==7)&&((a18==1)&&(!(a12==1)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6))))))&&(a17==2)))&&!(a20==1))&&(a19==5)))&&(a1==14)))){ + a23 = 0; + a22 = 1; + a5 = 4; + a19 = 1; + a9 = 11; + a13 = 0; + a16 = 8; + return 22; + } else if((((a1==12)&&((((a21==10)&&((a2==1)&&(((a16==10)&&((input==5)&&((a5==6)||((a5==4)||(a5==5)))))&&(a3==1))))&&!(a26==1))&&(a20==1)))&&((((a11==1)&&(!(a3==1)||((a19==1)&&((a23==1)&&(a23==1)))))&&(a17==2))&&(a9==9)))){ + a9 = 7; + a5 = 4; + a0 = 0; + a7 = 0; + a28 = 1; + a16 = 7; + return -1; + } else if((((a21==12)&&((((((((input==4)&&(a16==7))&&(a23==1))&&!(a24==1))&&!(a4==1))&&(a9==10))&&!(a8==1))&&(a17==2)))&&((a19==4)&&(((!(a13==1)||((a5==6)&&(!(a20==1)&&(a6==1))))||!(a6==1))&&(a1==13))))){ + a5 = 4; + a12 = 1; + a20 = 1; + a16 = 9; + a9 = 7; + a27 = 0; + a21 = 10; + a6 = 1; + a19 = 5; + return 26; + } else if(((((a8==1)&&(((a21==11)&&(a28==1))&&(a17==2)))&&(a4==1))&&(((a0==1)&&((a8==1)&&(((a20==1)&&(!(a3==1)&&((a19==1)&&((a16==9)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==5))))))&&(a1==14))))&&(a24==1)))){ + a13 = 0; + a19 = 5; + a5 = 5; + a9 = 10; + a1 = 12; + a21 = 12; + a12 = 0; + a16 = 7; + a25 = 1; + return 23; + } else if(((((((a5==4)&&(((a16==7)&&((a28==1)&&(a21==12)))&&(a1==12)))&&(a19==2))||!(a23==1))||(a24==1))&&(!(a8==1)&&(!(a20==1)&&(((a6==1)&&((a17==2)&&((a6==1)&&((input==3)&&(a9==10)))))&&!(a7==1)))))){ + a24 = 0; + a19 = 1; + a11 = 1; + a20 = 1; + a21 = 10; + a2 = 1; + a9 = 7; + return -1; + } else if(((((((((((input==1)&&((a5==5)||(a5==6)))&&!(a27==1))&&(a19==5))&&(a1==12))&&(a16==9))&&(a9==11))&&(a6==1))&&!(a20==1))&&((a27==1)||(!(a28==1)||(!(a13==1)||(((a21==10)&&(!(a0==1)&&(a12==1)))&&(a17==2))))))){ + if((a0==1)){ + a5 = 4; + a6 = 0; + a20 = 1; + a16 = 7; + a18 = 1; + a29 = 0; + a19 = 1; + a1 = 13; + a9 = 10; + }else{ + a23 = 0; + a5 = 6; + a25 = 1; + a20 = 1; + a2 = 0; + a21 = 12; + a1 = 14; + a16 = 11; + } + return -1; + } else if((((!(a26==1)&&((a5==5)&&((((a16==9)&&(((((a19==4)&&(input==5))&&!(a20==1))&&!(a4==1))&&(a17==2)))&&(a12==1))&&(a21==10))))&&!(a24==1))&&(((a1==13)&&((a27==1)||(!(a24==1)&&(a28==1))))&&(a9==9)))){ + a19 = 1; + a3 = 0; + a1 = 12; + a5 = 6; + a18 = 1; + a28 = 0; + a20 = 1; + a16 = 7; + return -1; + } else if(((!(a0==1)&&((a20==1)&&(((a3==1)&&((a19==2)&&((a21==11)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a9==10))&&(a13==1)))))&&(a1==14))))&&((a16==10)&&(((a17==2)&&(((a28==1)&&(a23==1))&&!(a18==1)))&&(a3==1))))){ + a23 = 1; + a21 = 10; + a24 = 0; + a1 = 13; + a6 = 1; + a5 = 4; + a9 = 9; + a16 = 7; + return 25; + } else if(((!(a7==1)&&((a17==2)&&(((a16==10)&&(((!(a8==1)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6))))&&(a20==1))&&(a19==2)))&&!(a7==1))))&&(((((a1==14)&&(((a11==1)&&(a21==11))||(a24==1)))&&(a9==10))||!(a6==1))&&!(a14==1)))){ + a12 = 1; + a5 = 4; + a16 = 7; + a1 = 12; + a19 = 1; + a23 = 1; + a9 = 7; + a21 = 10; + return -1; + } else if((((((a19==2)&&((a21==10)&&((a13==1)&&((((a9==7)&&(a13==1))&&(a2==1))&&(a3==1)))))&&(a6==1))&&(a16==9))&&((a20==1)&&((a1==14)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a17==2))&&(a3==1))&&(a6==1)))))){ + a0 = 0; + a9 = 10; + a21 = 11; + a5 = 5; + a27 = 0; + a16 = 8; + return 25; + } else if(((((((a13==1)&&(((a23==1)&&((input==5)&&(a5==5)))&&!(a20==1)))&&(a2==1))&&(a19==4))&&(a17==2))&&((a1==13)&&((a16==10)&&(((((!(a14==1)&&(a6==1))&&(a21==10))&&!(a8==1))&&(a9==9))&&!(a27==1)))))){ + a5 = 6; + a19 = 1; + a3 = 0; + a22 = 1; + a20 = 1; + a0 = 1; + a16 = 7; + a1 = 14; + return -1; + } else if(((!(a26==1)&&(((a11==1)&&((a26==1)||((a21==11)&&((a4==1)||((a19==2)&&((a28==1)&&(a16==10)))))))&&(a6==1)))&&((a3==1)&&((((a17==2)&&(((input==4)&&(a20==1))&&(a9==11)))&&(a5==4))&&(a1==14))))){ + a16 = 7; + a11 = 1; + a28 = 1; + a9 = 7; + a6 = 1; + a19 = 1; + a21 = 10; + a1 = 12; + return -1; + } else if(((!(a4==1)&&((a28==1)&&((a1==14)&&(((a19==4)&&(((((((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6))))&&(input==3))&&!(a20==1))&&(a17==2))&&!(a8==1)))&&(a21==11)))))&&(((a8==1)||(((a16==9)&&(a12==1))&&(a12==1)))||!(a23==1)))){ + a21 = 10; + a19 = 1; + a20 = 1; + a9 = 8; + a18 = 1; + a16 = 7; + a5 = 4; + a10 = 0; + return -1; + } else if(((((a9==11)&&(((a17==2)&&(!(a8==1)&&((a28==1)&&(((a5==4)||(a5==5))&&(input==4)))))&&(a20==1)))&&(a1==12))&&((((!(a24==1)&&((a19==5)&&(((a28==1)||(a14==1))||(a26==1))))&&(a21==10))&&(a16==10))&&!(a24==1)))){ + a19 = 1; + a0 = 0; + a9 = 7; + a5 = 4; + a16 = 7; + a27 = 0; + a6 = 1; + return -1; + } else if(((!(a8==1)&&((a1==13)&&(!(a26==1)&&((a12==1)&&(!(a20==1)&&((a16==10)&&(!(a8==1)&&((input==3)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))))))))))&&((a21==11)&&((((a17==2)&&((a13==1)&&(a3==1)))&&(a6==1))&&(a19==3))))){ + a11 = 0; + a5 = 5; + a8 = 1; + a19 = 4; + a14 = 1; + a16 = 7; + a9 = 9; + return 26; + } else if(((((!(a13==1)&&(!(a12==1)&&(!(a2==1)&&(((a16==8)&&((input==4)&&(a21==10)))&&(a19==5)))))&&(a17==2))&&(a0==1))&&((a27==1)&&((a5==4)&&((a1==12)&&((((a12==1)&&(a0==1))&&(a20==1))&&(a9==9))))))){ + a5 = 6; + a16 = 11; + a22 = 1; + a1 = 13; + a12 = 0; + a29 = 1; + a19 = 2; + a21 = 11; + a9 = 10; + return -1; + } else if(((!(a20==1)&&((a1==14)&&(((((a9==7)&&(a6==1))&&(a21==11))&&!(a18==1))||!(a23==1))))&&((((a16==7)&&((((a13==1)&&(((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a24==1)))&&(a11==1))&&(a28==1)))&&(a17==2))&&(a19==5)))){ + a21 = 10; + a5 = 4; + a26 = 0; + a2 = 1; + a1 = 12; + a20 = 1; + a3 = 1; + a19 = 1; + return -1; + } else if(((((((!(a4==1)&&((a2==1)&&((a19==4)&&((a23==1)&&((input==3)&&((a5==4)||(a5==5)))))))&&!(a0==1))&&(a16==10))&&(a12==1))&&!(a18==1))&&((a21==10)&&((a1==14)&&(((a20==1)&&((a17==2)&&(a2==1)))&&(a9==8)))))){ + a1 = 12; + a16 = 7; + a26 = 0; + a5 = 4; + a9 = 7; + a3 = 1; + a12 = 1; + a19 = 1; + return -1; + } else if((((!(a24==1)&&(((a5==5)&&(((!(a2==1)||((a20==1)&&(a23==1)))&&(a19==2))&&(a21==11)))||!(a11==1)))&&(a13==1))&&((a9==10)&&((a28==1)&&((a12==1)&&(((a16==8)&&((input==6)&&(a17==2)))&&(a1==12))))))){ + a4 = 0; + a16 = 7; + a14 = 0; + a21 = 10; + a5 = 4; + a18 = 0; + a9 = 7; + a19 = 1; + return -1; + } else if((((!(a20==1)&&(((a19==1)&&((a17==2)&&((((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a5==6)&&(a9==10))))&&(input==4))))&&(a21==12)))&&(a2==1))&&((((a26==1)||((!(a28==1)||(!(a3==1)||((a12==1)||!(a13==1))))&&(a1==14)))&&(a16==10))||(a0==1)))){ + a0 = 1; + a20 = 1; + a25 = 0; + a9 = 11; + a16 = 11; + a1 = 13; + a10 = 0; + a5 = 4; + return 26; + } else if((((a13==1)&&((a21==12)&&(((!(a4==1)&&((((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a16==10))&&(a19==5)))&&(a1==13))&&(a20==1))))&&((((!(a23==1)||((a7==1)||((a0==1)||(a11==1))))&&(a17==2))&&(a13==1))&&(a9==10)))){ + a2 = 1; + a19 = 1; + a21 = 10; + a13 = 1; + a16 = 7; + a5 = 4; + a9 = 7; + a1 = 12; + a24 = 0; + return -1; + } else if((((a1==13)&&(((a16==8)&&((a12==1)&&(((a23==1)&&((a2==1)&&(((a17==2)&&((a9==10)&&(!(a20==1)&&((a6==1)&&((input==4)&&((a5==5)||(a5==6)))))))&&!(a27==1))))&&!(a8==1))))&&(a21==10)))&&((a19==3)&&(a23==1)))){ + a18 = 0; + a5 = 6; + a28 = 1; + a23 = 1; + a20 = 1; + a16 = 9; + a19 = 4; + return 26; + } else if((((a0==1)||(((a20==1)&&(!(a12==1)||(a6==1)))&&(a9==8)))&&((a16==11)&&(((a13==1)&&((a19==1)&&((((a1==14)&&((!(a4==1)&&((input==3)&&((a5==4)||(a5==5))))&&!(a4==1)))&&(a28==1))&&(a17==2))))&&(a21==12))))){ + a24 = 0; + a5 = 4; + a2 = 1; + a9 = 7; + a16 = 7; + a21 = 10; + a12 = 1; + a1 = 12; + return -1; + } else if((((a1==14)&&(((!(a7==1)&&(((input==6)&&(a16==8))&&(a9==11)))&&(a2==1))&&(a21==11)))&&(((((a27==1)||((a19==5)&&((a0==1)||(((a6==1)||!(a11==1))&&(a20==1)))))&&(a5==5))||(a26==1))&&(a17==2)))){ + if((a23==1)){ + a9 = 7; + a21 = 10; + a2 = 1; + a5 = 6; + a1 = 12; + a0 = 0; + a18 = 0; + a20 = 0; + }else{ + a5 = 6; + a1 = 12; + a9 = 10; + a16 = 10; + a11 = 1; + a19 = 4; + a23 = 1; + a12 = 1; + } + return 25; + } else if(((((((a9==9)&&(((input==6)&&(a1==14))&&(a5==5)))&&(a17==2))&&(a16==10))&&!(a24==1))&&(((a8==1)||(((((a21==12)&&((a19==1)&&(!(a14==1)&&(a23==1))))&&(a20==1))&&(a11==1))||(a14==1)))||(a26==1)))){ + a12 = 1; + a5 = 4; + a16 = 7; + a3 = 1; + a21 = 10; + a9 = 7; + a18 = 0; + a1 = 12; + return -1; + } else if((((a3==1)&&(!(a8==1)&&(((((a6==1)&&((a21==12)&&((a17==2)&&((((((a9==11)&&((a1==14)&&(a5==5)))&&(a19==4))||((((a1==14)&&(a5==6))&&(a9==11))&&(a19==4)))||((a19==5)&&(((a1==12)&&(a5==4))&&(a9==7))))&&(input==5)))))&&(a3==1))&&(a16==8))&&!(a20==1))))&&(((a23==1)||(a18==1))||!(a12==1)))){ + a1 = 12; + a21 = 10; + a26 = 1; + a5 = 5; + a12 = 0; + a9 = 10; + a19 = 1; + a8 = 1; + a16 = 9; + return -1; + } else if((((a19==2)&&(((((!(a18==1)&&(!(a14==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5))))))&&!(a26==1))&&!(a20==1))&&(a16==7))&&(a9==9)))&&((a1==14)&&(!(a13==1)||((a23==1)&&((a21==10)&&(!(a18==1)&&((a2==1)&&(a17==2))))))))){ + a14 = 0; + a7 = 0; + a5 = 6; + a21 = 11; + a12 = 1; + a1 = 13; + a20 = 1; + a16 = 10; + return 21; + } else if((((a16==10)&&(!(a3==1)||(!(a20==1)&&(((a13==1)||(a8==1))&&(a1==12)))))&&((a17==2)&&((a21==11)&&(!(a4==1)&&((!(a4==1)&&((a23==1)&&((a12==1)&&(((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4)))&&(input==1)))))&&(a19==5))))))){ + a20 = 1; + a29 = 1; + a7 = 1; + a19 = 1; + a0 = 1; + a5 = 5; + a21 = 10; + a16 = 7; + a9 = 9; + a1 = 13; + return -1; + } else if(((((a16==7)&&(((((((a19==3)&&(((a1==14)&&(a5==5))&&(a9==11)))||((a19==3)&&((a9==11)&&((a5==6)&&(a1==14)))))||((a19==4)&&(((a5==4)&&(a1==12))&&(a9==7))))&&(input==6))&&!(a4==1))&&(a20==1)))&&(a12==1))&&(((a17==2)&&(((a21==12)&&(((a2==1)&&!(a27==1))&&(a6==1)))&&(a11==1)))&&!(a27==1)))){ + a5 = 6; + a1 = 12; + a23 = 1; + a11 = 1; + a9 = 9; + a12 = 1; + a16 = 9; + a21 = 11; + a19 = 1; + return 23; + } else if((((a11==1)&&((a16==9)&&((((((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a17==2))&&(a13==1))&&(a11==1))&&(a1==14))))&&((a7==1)||(((a19==1)&&(((!(a6==1)||((a21==12)&&(a23==1)))&&(a20==1))||!(a3==1)))&&(a9==7))))){ + a1 = 12; + a6 = 1; + a5 = 4; + a23 = 1; + a16 = 7; + a21 = 10; + a26 = 0; + return -1; + } else if((((((((((a11==1)&&((((a5==5)||(a5==6))&&(input==6))&&(a1==13)))&&(a20==1))&&!(a4==1))&&(a21==10))&&(a12==1))&&(a19==5))&&(a16==7))&&(!(a3==1)||((a9==7)&&(((a17==2)&&((a6==1)||(a18==1)))||(a24==1)))))){ + a6 = 1; + a11 = 1; + a21 = 12; + a1 = 14; + a9 = 11; + a5 = 5; + a28 = 1; + a19 = 2; + return 23; + } else if(((((a1==12)&&((a20==1)&&((a21==11)&&((a6==1)&&((a28==1)&&!(a7==1))))))&&(a19==1))&&(((((!(a26==1)&&(!(a27==1)&&((input==6)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10))))))&&(a23==1))&&!(a27==1))&&(a17==2))&&(a16==9)))){ + a21 = 10; + a5 = 4; + a16 = 10; + a9 = 9; + a11 = 1; + a4 = 0; + a1 = 13; + a19 = 5; + return 21; + } else if((((a20==1)&&(((a12==1)&&((((input==5)&&(((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))))&&(a1==14))&&(a6==1)))&&(a19==2)))&&((a16==8)&&(!(a18==1)&&(((!(a27==1)&&(((a6==1)&&(a21==12))||!(a13==1)))&&(a17==2))&&!(a4==1)))))){ + a19 = 1; + a3 = 1; + a5 = 4; + a21 = 10; + a16 = 7; + a14 = 0; + a9 = 7; + a27 = 0; + a1 = 12; + return -1; + } else if((((a20==1)&&(((!(a27==1)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a16==9))&&(a21==10)))&&(a17==2))&&!(a4==1)))&&((a9==10)&&((!(a14==1)&&(((((a28==1)&&(a19==3))&&(a1==12))||!(a3==1))||!(a28==1)))&&(a28==1))))){ + a19 = 2; + a16 = 10; + a9 = 9; + a24 = 0; + a21 = 11; + a5 = 5; + a8 = 0; + a1 = 13; + a7 = 0; + return 21; + } else if((((a28==1)&&((a5==5)&&(((input==6)&&(a20==1))&&!(a0==1))))&&(((a4==1)||((a27==1)||(((a9==9)&&((((a19==3)&&((a17==2)&&((a21==10)&&(a2==1))))&&(a1==12))&&!(a7==1)))&&(a16==10))))||(a7==1)))){ + a27 = 0; + a26 = 0; + a0 = 0; + a16 = 7; + a19 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if(((((a9==10)&&(((a21==12)&&((a11==1)&&(((a11==1)&&((((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&!(a0==1))&&(a1==13)))&&(a12==1))))&&(a16==9)))&&(a19==5))&&((!(a14==1)&&((a20==1)&&((a24==1)||(a6==1))))&&(a17==2)))){ + a1 = 12; + a9 = 7; + a5 = 4; + a8 = 0; + a12 = 1; + a21 = 10; + a16 = 7; + a19 = 1; + a2 = 1; + return -1; + } else if((((((a9==11)&&(((a17==2)&&(!(a20==1)&&(((((a3==1)&&(a21==11))&&(a13==1))&&(a16==7))||!(a2==1))))&&(a1==12)))&&(a2==1))&&!(a4==1))&&((a19==1)&&((((input==4)&&((a5==4)||(a5==5)))&&(a11==1))&&!(a8==1))))){ + a21 = 10; + a12 = 1; + a2 = 1; + a5 = 4; + a11 = 1; + a20 = 1; + a9 = 7; + return -1; + } else if((((a18==1)&&(((a4==1)&&((a26==1)&&(((a23==1)&&(a17==2))&&(a19==3))))&&(a18==1)))&&((!(a23==1)&&((!(a28==1)&&(((input==6)&&(((a9==7)&&((a1==14)&&(a5==4)))||((((a5==5)&&(a1==13))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==13))))))&&!(a20==1)))&&(a21==12)))&&(a16==7)))){ + a5 = 5; + a21 = 10; + a23 = 0; + a19 = 1; + a9 = 8; + a20 = 1; + a22 = 0; + a1 = 13; + return -1; + } else if((((a20==1)&&((a1==12)&&(((!(a14==1)&&((!(a14==1)&&(a23==1))||!(a6==1)))||!(a2==1))&&(a21==10))))&&((a17==2)&&(((a12==1)&&(((a3==1)&&((a9==8)&&(((a5==4)||(a5==5))&&(input==3))))&&(a16==9)))&&(a19==5))))){ + a23 = 1; + a4 = 0; + a0 = 0; + a9 = 7; + a16 = 7; + a19 = 1; + a5 = 4; + return -1; + } else if(((!(a24==1)&&(!(a24==1)&&((((!(a24==1)&&(((a1==13)&&(((input==1)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(a16==9)))&&(a19==5)))&&(a21==10))&&(a3==1))&&(a2==1))))&&((a3==1)&&((!(a20==1)&&(a11==1))&&(a17==2))))){ + if((a1==14)){ + a5 = 6; + a24 = 1; + a19 = 1; + a28 = 0; + a16 = 7; + a1 = 12; + a9 = 8; + a7 = 1; + a20 = 1; + }else{ + a21 = 12; + a11 = 0; + a22 = 1; + a20 = 1; + a1 = 14; + a9 = 10; + a24 = 1; + a5 = 6; + } + return 26; + } else if((((((a16==7)&&((a21==10)&&(((a5==4)&&((input==1)&&(a17==2)))&&(a19==5))))&&!(a27==1))&&!(a7==1))&&(!(a27==1)&&((a7==1)||(((a9==11)&&((a8==1)||(((a20==1)&&(a23==1))&&(a1==13))))||(a24==1)))))){ + a21 = 12; + a9 = 7; + a1 = 12; + a8 = 0; + a5 = 6; + a19 = 4; + a18 = 0; + a7 = 0; + return 21; + } else if((((a28==1)&&((((a20==1)&&((a1==12)&&((a17==2)&&((input==4)&&(((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))))))&&!(a14==1))&&(a16==8)))&&(((a21==12)&&((a19==2)&&(!(a3==1)||(((a3==1)||(a8==1))&&(a6==1)))))&&(a23==1)))){ + a5 = 4; + a9 = 7; + a18 = 0; + a7 = 0; + a19 = 1; + a16 = 7; + a21 = 10; + a2 = 1; + return -1; + } else if(((!(a20==1)&&((((a18==1)||((a5==4)&&(((((a3==1)&&(a16==8))&&(a9==7))&&!(a24==1))&&!(a4==1))))&&!(a26==1))&&(a3==1)))&&((((a19==2)&&(!(a18==1)&&((a17==2)&&(input==4))))&&(a21==10))&&(a1==12)))){ + a4 = 0; + a20 = 1; + a5 = 5; + a6 = 1; + a9 = 10; + a16 = 9; + a1 = 13; + a12 = 1; + return 25; + } else if((((((a20==1)&&(((a16==9)&&((a17==2)&&(a11==1)))||!(a23==1)))&&!(a4==1))&&(a19==1))&&(((!(a7==1)&&(((a6==1)&&(((input==3)&&(((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))))&&(a21==11)))&&!(a0==1)))&&(a1==13))&&(a13==1)))){ + a18 = 0; + a21 = 10; + a1 = 12; + a16 = 7; + a5 = 4; + a3 = 1; + a9 = 7; + return -1; + } else if(((!(a2==1)||((a1==12)&&((a21==11)&&(!(a14==1)&&(a13==1)))))&&((!(a27==1)&&((((a28==1)&&((a9==8)&&(((((input==5)&&(a16==10))&&(a5==5))&&(a19==3))&&(a17==2))))&&!(a20==1))&&(a13==1)))&&!(a14==1)))){ + if((a13==1)){ + a12 = 0; + a11 = 0; + a19 = 2; + a16 = 7; + a20 = 1; + a9 = 9; + a8 = 1; + a21 = 10; + }else{ + a21 = 10; + a9 = 9; + a7 = 1; + a22 = 1; + a16 = 7; + a20 = 1; + a19 = 1; + a23 = 0; + } + return 23; + } else if((((((((a17==2)&&((!(a7==1)&&(((a5==5)||(a5==6))&&(input==4)))&&(a21==12)))&&(a20==1))&&(a19==3))&&!(a0==1))&&(a11==1))&&((a9==7)&&((a16==10)&&(((a1==14)&&((!(a2==1)||(a3==1))||!(a2==1)))||!(a3==1)))))){ + a19 = 1; + a5 = 4; + a12 = 1; + a23 = 1; + a21 = 10; + a27 = 0; + a16 = 7; + a1 = 12; + return -1; + } else if(((((a9==11)&&(!(a26==1)&&(!(a4==1)&&((!(a20==1)&&(input==6))&&(a17==2)))))&&(a5==6))&&((a19==4)&&(((a4==1)||(((a16==10)&&((!(a23==1)||((a13==1)||(a7==1)))&&(a12==1)))&&(a21==10)))&&(a1==14))))){ + if((a21==10)){ + a19 = 5; + a12 = 0; + a1 = 13; + a8 = 1; + a15 = 0; + a21 = 11; + a9 = 9; + a5 = 5; + }else{ + a15 = 1; + a10 = 1; + a16 = 7; + a11 = 0; + a19 = 2; + a9 = 9; + a1 = 12; + a20 = 1; + } + return 25; + } else if((((((((a9==11)&&((((((input==3)&&(a17==2))&&(a19==2))&&(a16==8))&&(a1==14))&&!(a26==1)))&&!(a7==1))&&!(a26==1))&&(a21==12))&&(a12==1))&&((a5==4)&&((((a27==1)||(a28==1))||(a7==1))&&(a20==1))))){ + a19 = 4; + a0 = 0; + a18 = 0; + a5 = 6; + a1 = 12; + a26 = 0; + a9 = 7; + a21 = 10; + return -1; + } else if((((((a20==1)&&(!(a12==1)||((a2==1)&&(a21==12))))&&!(a24==1))&&(a17==2))&&((a11==1)&&((a13==1)&&(((((a1==12)&&((a11==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a19==4))))&&(a9==10))&&(a16==10))&&(a12==1)))))){ + a9 = 7; + a16 = 7; + a19 = 1; + a12 = 1; + a5 = 4; + a11 = 1; + a21 = 10; + return -1; + } else if(((((a21==11)&&(!(a27==1)&&(((a11==1)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a9==10))&&(a17==2)))&&(a19==4))))&&(a1==12))&&((a20==1)&&((a14==1)||(((a4==1)||((a0==1)||(!(a12==1)||(a12==1))))&&(a16==8)))))){ + a19 = 1; + a5 = 6; + a12 = 1; + a9 = 8; + a6 = 1; + a1 = 13; + a4 = 0; + return -1; + } else if(((!(a7==1)&&((((!(a0==1)&&((((a5==4)||(a5==5))&&(input==1))&&(a1==13)))&&(a28==1))&&(a19==2))&&(a16==11)))&&((a23==1)&&(((a21==12)&&((a9==10)&&(((a20==1)&&(!(a27==1)&&(a13==1)))&&(a3==1))))&&(a17==2))))){ + a21 = 10; + a5 = 4; + a1 = 12; + a18 = 0; + a19 = 1; + a27 = 0; + a9 = 7; + a16 = 7; + return -1; + } else if(((((a21==12)&&(((a27==1)||(((a20==1)&&(a13==1))&&!(a8==1)))&&!(a4==1)))&&(a19==4))&&(((a9==7)&&((a16==11)&&(((a17==2)&&((a1==13)&&((((a5==4)||(a5==5))&&(input==1))&&!(a27==1))))&&!(a24==1))))&&!(a27==1)))){ + a21 = 10; + a5 = 4; + a14 = 0; + a1 = 12; + a26 = 0; + a19 = 1; + a16 = 7; + a11 = 1; + return -1; + } else if(((((a1==13)&&(!(a3==1)||((a18==1)||((a19==3)&&((a20==1)&&(a28==1))))))&&(a16==9))&&(((a17==2)&&((a13==1)&&((!(a26==1)&&(!(a24==1)&&((input==3)&&(((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))))))&&(a21==10))))&&(a3==1)))){ + a9 = 7; + a5 = 4; + a16 = 7; + a1 = 12; + a19 = 1; + a6 = 1; + a28 = 1; + a11 = 1; + return -1; + } else if(((((((a12==1)&&((a11==1)&&(((input==3)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&!(a4==1))))&&(a17==2))&&(a16==8))&&!(a20==1))&&(((((a21==12)&&((a19==1)&&((a13==1)||(a26==1))))||!(a28==1))||!(a28==1))&&(a1==14)))){ + a20 = 1; + a14 = 1; + a9 = 11; + a19 = 2; + a5 = 6; + a24 = 1; + a22 = 0; + a16 = 11; + return 25; + } else if(((((a17==2)&&((a9==7)&&((a1==12)&&(((a3==1)&&((input==4)&&((a5==4)||(a5==5))))&&!(a18==1)))))&&(a16==8))&&(!(a0==1)&&(!(a20==1)&&((a19==2)&&(((((a11==1)&&(a21==11))&&!(a0==1))||!(a13==1))&&(a2==1))))))){ + a19 = 1; + a27 = 0; + a20 = 1; + a16 = 7; + a21 = 10; + a6 = 1; + a5 = 4; + a8 = 0; + return -1; + } else if((((((((a0==1)||((a6==1)&&(a17==2)))&&(a19==1))||!(a12==1))&&(a20==1))&&!(a0==1))&&((a21==11)&&(((a12==1)&&((a16==9)&&(!(a7==1)&&((((((a1==12)&&(a5==5))&&(a9==11))||(((a5==6)&&(a1==12))&&(a9==11)))||(((a5==4)&&(a1==13))&&(a9==7)))&&(input==3)))))&&(a2==1))))){ + a27 = 0; + a1 = 12; + a5 = 4; + a21 = 10; + a6 = 1; + a9 = 7; + a16 = 7; + a2 = 1; + return -1; + } else if((((!(a26==1)&&((a20==1)&&((!(a24==1)&&((a21==11)&&((a16==8)&&((input==3)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))))))&&(a19==5))))&&(a17==2))&&((!(a0==1)&&(((a1==14)&&((a28==1)||!(a11==1)))&&!(a4==1)))&&(a3==1)))){ + a1 = 12; + a0 = 0; + a14 = 0; + a16 = 7; + a5 = 4; + a19 = 1; + a9 = 7; + a7 = 0; + a21 = 10; + return -1; + } else if(((!(a24==1)&&((((a21==11)&&((((((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6))))&&(input==1))&&!(a8==1))&&(a19==1)))&&(a28==1))&&(a17==2)))&&((((((!(a20==1)&&(a23==1))&&!(a4==1))&&(a1==13))&&(a16==10))||!(a6==1))||!(a2==1)))){ + a21 = 10; + a20 = 1; + a0 = 1; + a10 = 0; + a9 = 11; + a5 = 4; + a7 = 1; + a16 = 7; + a1 = 12; + return 23; + } else if((((((a19==3)&&(((a17==2)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a16==8)))&&!(a3==1)))&&!(a2==1))&&!(a11==1))&&((a7==1)&&(((a1==12)&&(!(a12==1)&&((!(a20==1)&&((a12==1)&&(a0==1)))&&(a9==10))))&&(a21==11))))){ + a22 = 0; + a19 = 2; + a20 = 1; + a9 = 7; + a5 = 5; + a21 = 10; + a29 = 1; + a16 = 7; + return 21; + } else if((((!(a7==1)&&(!(a0==1)&&((((a19==4)&&((input==3)&&(a20==1)))&&(a17==2))&&(a11==1))))&&(a13==1))&&((a5==4)&&((a1==13)&&(((((a21==12)&&((a16==9)&&(a11==1)))&&(a13==1))&&(a9==9))||!(a11==1)))))){ + a19 = 5; + a2 = 1; + a16 = 8; + a7 = 0; + a21 = 11; + a9 = 7; + a18 = 0; + a1 = 14; + return -1; + } else if((((a21==11)&&((a19==2)&&(a2==1)))&&(((a9==10)&&(((a20==1)&&((a12==1)&&(((((a16==10)&&(!(a26==1)&&(((input==4)&&((a5==4)||(a5==5)))&&!(a8==1))))&&(a6==1))&&!(a7==1))&&(a13==1))))&&(a1==13)))&&(a17==2)))){ + a21 = 10; + a28 = 1; + a9 = 7; + a16 = 7; + a19 = 1; + a18 = 0; + a6 = 1; + a5 = 4; + a1 = 12; + return -1; + } else if((((((input==3)&&((a5==5)||(a5==6)))&&(a9==7))&&(a21==12))&&(!(a11==1)||(!(a24==1)&&(!(a12==1)||((((a23==1)&&((((((a2==1)||(a0==1))&&(a19==2))&&(a20==1))&&(a1==12))&&(a17==2)))&&(a16==11))&&!(a8==1))))))){ + a5 = 4; + a4 = 0; + a3 = 1; + a19 = 1; + a21 = 10; + a16 = 7; + a18 = 0; + return -1; + } else if((((((a9==9)&&(((!(a28==1)||((((a21==11)&&((a3==1)&&(a12==1)))||(a7==1))&&(a6==1)))&&(a16==10))&&(a19==2)))&&(a1==14))&&(a17==2))&&((a20==1)&&((((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a28==1))&&(a23==1))))){ + a16 = 7; + a5 = 4; + a1 = 12; + a14 = 0; + a19 = 1; + a21 = 10; + a9 = 7; + a23 = 1; + a24 = 0; + return -1; + } else if(((((!(a24==1)&&(!(a18==1)&&((a13==1)&&((a17==2)&&((a28==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4)))))))&&(a16==7))&&(a19==2))&&((!(a20==1)&&(((a21==12)&&((a23==1)&&((a2==1)&&(a11==1))))&&(a1==14)))&&(a9==8)))){ + a21 = 10; + a9 = 7; + a5 = 4; + a28 = 1; + a23 = 1; + a19 = 1; + a11 = 1; + a20 = 1; + a1 = 12; + return -1; + } else if(((((a9==8)&&(((((a26==1)||((a19==3)&&(a12==1)))||(a18==1))||(a8==1))&&!(a20==1)))&&(a16==9))&&((((!(a26==1)&&((((input==1)&&((a5==5)||(a5==6)))&&!(a14==1))&&(a17==2)))&&(a1==12))&&(a11==1))&&(a21==11)))){ + a5 = 6; + a9 = 9; + a10 = 0; + a27 = 1; + a1 = 13; + a19 = 1; + a0 = 1; + return 25; + } else if((((((a16==11)&&((a6==1)&&(a2==1)))&&!(a18==1))&&(a17==2))&&(((a21==10)&&((a5==5)&&((a12==1)&&((a1==14)&&((a12==1)&&((a19==2)&&(!(a20==1)&&(!(a7==1)&&((a9==9)&&(input==3))))))))))&&!(a8==1)))){ + a16 = 7; + a28 = 0; + a2 = 0; + a9 = 10; + a20 = 1; + a1 = 12; + a5 = 6; + a19 = 1; + a29 = 0; + return -1; + } else if((((!(a4==1)&&(!(a4==1)&&(((a17==2)&&((a1==12)&&(a12==1)))&&(a19==2))))||!(a11==1))&&((a12==1)&&((a2==1)&&(((a21==12)&&(!(a0==1)&&((a16==9)&&(((a5==5)&&(input==6))&&!(a20==1)))))&&(a9==9)))))){ + a14 = 1; + a20 = 1; + a15 = 0; + a9 = 11; + a16 = 7; + a21 = 10; + a22 = 0; + a19 = 1; + a5 = 6; + return -1; + } else if((((((a16==7)&&((a1==14)&&(((((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11)))&&(input==1))&&(a3==1))&&(a21==12))))&&!(a7==1))&&(a28==1))&&((a8==1)||((a17==2)&&((a19==4)&&(!(a8==1)&&(((a20==1)&&(a3==1))||(a14==1)))))))){ + a21 = 11; + a19 = 3; + a1 = 13; + a27 = 0; + a26 = 0; + a9 = 9; + a16 = 9; + a5 = 4; + return 21; + } else if((((a17==2)&&((((!(a6==1)||(((a11==1)&&!(a27==1))&&(a3==1)))&&(a9==8))&&(a19==2))&&(a16==10)))&&((a1==13)&&(((a20==1)&&((((a6==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))&&!(a27==1))&&(a2==1)))&&(a21==11))))){ + a5 = 4; + a19 = 1; + a21 = 10; + a2 = 1; + a1 = 12; + a3 = 1; + a9 = 7; + a16 = 7; + return -1; + } else if((((a16==9)&&(!(a20==1)&&(((a21==12)&&((a28==1)&&((a17==2)&&((a2==1)||!(a12==1)))))&&!(a24==1))))&&(((((a1==13)&&((a19==3)&&((input==1)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))))&&!(a8==1))&&(a13==1))&&!(a7==1)))){ + if((a3==1)){ + a9 = 10; + a1 = 14; + a19 = 1; + a15 = 1; + a20 = 1; + a16 = 7; + a5 = 6; + a24 = 1; + a6 = 0; + a21 = 10; + }else{ + a9 = 7; + a20 = 1; + a5 = 6; + a14 = 1; + a19 = 5; + a18 = 1; + a2 = 0; + } + return -1; + } else if((((a28==1)&&(((!(a14==1)&&(!(a26==1)&&((((a20==1)&&((input==6)&&((a5==5)||(a5==6))))&&(a19==3))&&(a1==12))))&&(a3==1))&&(a16==7)))&&((a8==1)||(((((a9==9)&&(a11==1))&&(a21==11))&&(a17==2))||(a27==1))))){ + a21 = 10; + a2 = 1; + a19 = 1; + a9 = 7; + a5 = 4; + a7 = 0; + return -1; + } else if(((!(a24==1)&&(!(a14==1)&&((a6==1)&&((!(a4==1)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==6)))&&(a20==1)))))&&(((a19==2)&&((a21==10)&&((a17==2)&&((((a28==1)&&!(a8==1))&&(a1==12))&&(a16==10)))))&&(a3==1)))){ + a16 = 11; + a2 = 1; + a18 = 0; + a19 = 5; + a5 = 6; + a6 = 1; + a1 = 13; + a9 = 7; + return 25; + } else if(((!(a28==1)||(((a21==11)&&(((((a3==1)||(a26==1))&&(a9==7))&&!(a14==1))&&(a19==3)))&&(a1==14)))&&(!(a7==1)&&(!(a4==1)&&((a16==10)&&((a20==1)&&((a17==2)&&(!(a18==1)&&((input==1)&&((a5==5)||(a5==6))))))))))){ + a5 = 5; + a21 = 10; + a19 = 2; + a26 = 0; + a1 = 13; + a9 = 9; + a16 = 7; + a0 = 0; + a23 = 1; + return 25; + } else if((((((a19==2)&&((a16==8)&&((input==5)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))))&&(a1==14))&&(a13==1))&&((!(a14==1)&&((a17==2)&&((a21==12)&&((!(a20==1)&&(!(a26==1)&&((a28==1)&&!(a14==1))))||!(a11==1)))))&&(a13==1)))){ + if((a27==1)){ + a27 = 1; + a1 = 12; + a6 = 0; + a16 = 10; + a2 = 0; + a19 = 4; + a9 = 11; + a5 = 5; + }else{ + a13 = 0; + a5 = 4; + a14 = 1; + a2 = 0; + a21 = 10; + a9 = 9; + a20 = 1; + a19 = 1; + a16 = 7; + } + return 25; + } else if((((a7==1)||((a20==1)&&(((a21==10)&&((((((a5==6)&&((a17==2)&&(a23==1)))||!(a2==1))&&!(a24==1))&&(a19==1))&&(a1==12)))&&(a16==9))))&&((((a28==1)&&((input==5)&&(a9==7)))&&!(a8==1))&&(a13==1)))){ + a16 = 7; + a5 = 4; + a13 = 1; + a23 = 1; + a9 = 9; + a19 = 2; + a1 = 13; + a24 = 0; + return 25; + } else if((((!(a8==1)&&(((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==4))&&(a21==11)))&&(a16==9))&&(((a28==1)&&((((((((a11==1)||!(a3==1))&&(a19==4))&&(a1==14))&&(a6==1))&&!(a20==1))&&(a17==2))||(a4==1)))&&(a6==1)))){ + if((a12==1)){ + a1 = 12; + a21 = 12; + a16 = 7; + a18 = 1; + a23 = 0; + a22 = 1; + a20 = 1; + a5 = 5; + a9 = 7; + a19 = 5; + }else{ + a9 = 10; + a3 = 0; + a11 = 0; + a1 = 12; + a19 = 3; + a27 = 1; + a20 = 1; + a5 = 6; + } + return -1; + } else if((((((!(a23==1)||(((a8==1)||((a12==1)&&(a23==1)))&&(a19==5)))&&(a21==11))&&(a23==1))&&!(a27==1))&&((a9==7)&&((a16==10)&&(((((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&!(a20==1))&&(a17==2))&&(a1==13))&&!(a8==1)))))){ + if((a4==1)){ + a5 = 4; + a11 = 0; + a16 = 7; + a3 = 0; + a19 = 1; + a21 = 10; + a9 = 10; + a1 = 14; + a29 = 1; + a20 = 1; + }else{ + a16 = 7; + a5 = 6; + a20 = 1; + a1 = 12; + a9 = 8; + a6 = 0; + a10 = 1; + a21 = 10; + a19 = 1; + } + return -1; + } else if(((((((a21==10)&&((((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))&&(input==1))&&(a23==1)))&&(a23==1))&&(a16==9))&&(a1==13))&&((!(a11==1)||((a4==1)||((a20==1)&&(((a19==2)&&((a2==1)&&(a6==1)))&&!(a14==1)))))&&(a17==2)))){ + a16 = 7; + a19 = 1; + a5 = 4; + a8 = 0; + a13 = 1; + a9 = 7; + a1 = 12; + a12 = 1; + return -1; + } else if((((!(a14==1)&&((a23==1)&&(((a19==3)&&((a21==10)&&((a2==1)&&((a16==8)&&((input==6)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5))))))))&&(a17==2))))&&(a13==1))&&((a13==1)&&(((a20==1)&&((a1==12)&&(a3==1)))||(a8==1))))){ + if((a4==1)){ + a9 = 8; + a14 = 0; + a1 = 13; + a12 = 1; + a19 = 5; + a16 = 7; + a20 = 0; + a13 = 1; + a21 = 12; + a5 = 5; + }else{ + a5 = 4; + a28 = 1; + a21 = 12; + a8 = 0; + a7 = 0; + a1 = 14; + a16 = 9; + a19 = 4; + a9 = 9; + } + return 22; + } else if((((a20==1)&&((a7==1)||(((a21==11)&&((a26==1)||(a3==1)))&&(a19==1))))&&((a28==1)&&(!(a4==1)&&((((a16==11)&&(!(a0==1)&&(((input==6)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(a1==13))))&&(a11==1))&&(a17==2)))))){ + a9 = 7; + a16 = 7; + a21 = 10; + a1 = 12; + a13 = 1; + a2 = 1; + a5 = 4; + a14 = 0; + return -1; + } else if(((((((a17==2)&&(!(a27==1)&&(((a28==1)&&(((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4)))&&(input==6)))&&(a2==1))))&&(a16==10))&&(a1==13))&&(a21==11))&&(!(a20==1)&&((a19==2)&&((a4==1)||(!(a11==1)||(!(a27==1)&&(a2==1)))))))){ + a16 = 7; + a14 = 1; + a21 = 10; + a5 = 6; + a9 = 8; + a19 = 1; + a22 = 1; + a28 = 0; + a20 = 1; + return -1; + } else if((((a17==2)&&((a12==1)&&((((((a9==10)&&(a28==1))&&(a21==12))&&(a20==1))&&!(a26==1))&&(a16==8))))&&(((((a19==3)&&((((a1==14)&&(input==4))&&(a5==4))&&(a13==1)))&&!(a27==1))&&!(a18==1))&&!(a4==1)))){ + a11 = 1; + a9 = 7; + a1 = 12; + a16 = 7; + a7 = 0; + a19 = 1; + a4 = 0; + a21 = 10; + return -1; + } else if((((a6==1)&&((!(a0==1)&&((a9==9)&&(((input==1)&&((a5==5)||(a5==6)))&&!(a18==1))))&&(a1==14)))&&(((!(a26==1)&&((((a19==2)&&((a12==1)&&((a13==1)&&(a16==9))))||(a14==1))&&!(a20==1)))&&(a21==10))&&(a17==2)))){ + a1 = 12; + a20 = 1; + a9 = 10; + a27 = 1; + a18 = 1; + a5 = 4; + a0 = 1; + a16 = 8; + a19 = 1; + a21 = 12; + return -1; + } else if((((a9==9)&&(!(a0==1)&&((a5==5)&&((a19==5)&&(!(a27==1)&&((input==1)&&(a16==10)))))))&&((a17==2)&&((a21==12)&&((((((a14==1)||((a11==1)&&(a1==13)))&&!(a18==1))&&!(a20==1))||(a24==1))&&(a11==1)))))){ + a6 = 0; + a20 = 1; + a9 = 8; + a1 = 14; + a16 = 7; + a23 = 0; + a21 = 10; + a19 = 1; + a27 = 1; + return -1; + } else if(((((a1==14)&&(!(a3==1)||((a12==1)&&((a21==10)&&(((a9==8)&&((a24==1)||((a11==1)&&(a19==3))))&&(a17==2))))))&&(a12==1))&&((((a16==10)&&(!(a20==1)&&((input==6)&&((a5==5)||(a5==6)))))&&!(a7==1))&&!(a7==1)))){ + if((a26==1)){ + a16 = 7; + a20 = 1; + a1 = 13; + a10 = 0; + a19 = 1; + a24 = 1; + a0 = 1; + a5 = 5; + }else{ + a1 = 13; + a20 = 1; + a16 = 11; + a9 = 11; + a5 = 4; + a14 = 1; + a2 = 0; + a24 = 1; + a19 = 5; + } + return -1; + } else if((((!(a3==1)&&(!(a11==1)&&(((a16==7)&&((((input==4)&&(a17==2))&&(a19==5))&&!(a23==1)))&&(a1==14))))&&!(a28==1))&&((((!(a20==1)&&(((a21==12)&&(a28==1))&&(a9==8)))&&(a5==6))&&!(a3==1))&&!(a23==1)))){ + a29 = 0; + a9 = 9; + a27 = 1; + a5 = 5; + a1 = 12; + a20 = 1; + a6 = 0; + a19 = 2; + a21 = 10; + return -1; + } else if((((a1==13)&&((a21==12)&&((a11==1)&&(!(a4==1)&&((a17==2)&&((!(a24==1)&&((((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&(input==4)))&&!(a26==1)))))))&&((a19==1)&&(((a0==1)||((a16==7)&&(!(a20==1)&&(a2==1))))&&!(a8==1))))){ + a9 = 7; + a23 = 1; + a21 = 10; + a20 = 1; + a12 = 1; + a5 = 4; + a11 = 1; + a1 = 12; + return -1; + } else if(((((((a11==1)&&(((a28==1)&&(a12==1))&&!(a24==1)))&&(a1==14))&&(a3==1))&&(a20==1))&&(((a16==10)&&(((a19==1)&&(!(a14==1)&&((a21==10)&&((input==3)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))))))&&(a11==1)))&&(a17==2)))){ + a14 = 0; + a2 = 1; + a16 = 7; + a9 = 7; + a1 = 12; + a5 = 4; + a11 = 1; + return -1; + } else if(((!(a7==1)&&(((!(a3==1)||(((a19==1)&&((a3==1)&&!(a24==1)))&&(a20==1)))&&!(a0==1))&&(a21==12)))&&((((a9==9)&&((((a17==2)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))&&(a1==12))&&(a16==9)))&&(a13==1))&&(a13==1)))){ + a6 = 1; + a21 = 10; + a9 = 7; + a16 = 7; + a23 = 1; + a5 = 4; + return -1; + } else if((((a16==9)&&(((a6==1)&&(((((((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==1))&&(a1==14))&&(a13==1))&&(a19==3))&&!(a18==1))&&(a20==1)))&&!(a0==1)))&&((a17==2)&&(((a21==10)&&((a23==1)&&!(a0==1)))||(a4==1))))){ + a23 = 1; + a24 = 0; + a5 = 4; + a19 = 2; + a27 = 0; + a9 = 8; + a16 = 11; + a1 = 13; + return 26; + } else if((((a16==9)&&(!(a14==1)&&((a19==3)&&((((a23==1)&&(a28==1))&&!(a18==1))&&!(a27==1)))))&&(((((!(a4==1)&&((a1==12)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a13==1))))&&(a21==10))&&(a9==7))&&!(a20==1))&&(a17==2)))){ + a10 = 1; + a19 = 2; + a18 = 1; + a5 = 5; + a21 = 11; + a20 = 1; + a16 = 8; + a9 = 11; + a15 = 1; + return 23; + } else if((((!(a27==1)&&((a1==12)&&(((((a17==2)&&((input==3)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))))&&(a11==1))&&(a16==10))&&(a19==5))))&&!(a18==1))&&(((a2==1)&&(((a21==11)&&((a7==1)||(a13==1)))&&(a20==1)))&&!(a26==1)))){ + a24 = 0; + a5 = 4; + a21 = 12; + a8 = 0; + a11 = 1; + a9 = 8; + a16 = 8; + return -1; + } else if(((((a9==7)&&((a28==1)&&(!(a20==1)&&((a16==7)&&((a5==6)&&(((a21==12)&&(input==6))&&!(a24==1)))))))&&!(a7==1))&&((a1==14)&&((!(a12==1)||((a19==1)&&(((a17==2)&&(a23==1))&&!(a24==1))))&&!(a24==1))))){ + a19 = 4; + a1 = 13; + a21 = 10; + a20 = 1; + a5 = 5; + a9 = 10; + a3 = 1; + return 25; + } else if((((((!(a27==1)&&((a6==1)||(a26==1)))||(a8==1))&&!(a27==1))&&(a19==3))&&((a1==13)&&((a16==7)&&(((a12==1)&&(!(a20==1)&&((a21==12)&&((a9==8)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a2==1))))))&&(a17==2)))))){ + a2 = 1; + a21 = 11; + a1 = 14; + a9 = 11; + a27 = 0; + a6 = 1; + a5 = 5; + a20 = 1; + return 25; + } else if((((((a17==2)&&((((a2==1)&&((a3==1)||!(a3==1)))||!(a2==1))&&(a19==1)))&&(a21==12))&&(a9==7))&&((!(a20==1)&&(((a28==1)&&(!(a27==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a28==1))))&&(a1==13)))&&(a16==8)))){ + if((a11==1)){ + a16 = 7; + a21 = 10; + a29 = 0; + a5 = 5; + a15 = 0; + a1 = 12; + a19 = 2; + a7 = 1; + a9 = 9; + a20 = 1; + }else{ + a21 = 11; + a16 = 11; + a27 = 1; + a9 = 9; + a19 = 4; + a20 = 1; + a5 = 6; + a23 = 0; + a1 = 12; + a29 = 0; + } + return -1; + } else if(((((a19==3)&&(((a3==1)&&(!(a8==1)&&((((a20==1)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==5)))&&(a16==7))&&(a2==1))))&&!(a26==1)))&&(a21==11))&&(((((a26==1)||(a12==1))&&!(a14==1))&&(a1==14))&&(a17==2)))){ + a5 = 4; + a21 = 10; + a19 = 1; + a1 = 12; + a11 = 1; + a9 = 7; + a26 = 0; + a2 = 1; + return -1; + } else if((((a11==1)&&(!(a24==1)&&(!(a18==1)&&(((a17==2)&&((a12==1)||(a27==1)))&&(a16==8)))))&&((((a20==1)&&((a1==14)&&((a9==8)&&((!(a14==1)&&((a5==4)&&(input==5)))&&(a21==11)))))&&(a19==2))&&(a11==1)))){ + a9 = 7; + a23 = 1; + a1 = 12; + a21 = 10; + a19 = 1; + a16 = 7; + a26 = 0; + a8 = 0; + return -1; + } else if((((((!(a11==1)||((a6==1)&&((a1==12)&&((a26==1)||((a23==1)&&!(a8==1))))))||!(a28==1))&&(a21==10))&&(a16==10))&&((a20==1)&&((a17==2)&&(((((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4)))&&(input==4))&&(a6==1))&&(a19==3)))))){ + a19 = 4; + a23 = 1; + a5 = 6; + a28 = 1; + a16 = 8; + a12 = 1; + a21 = 11; + a20 = 0; + a9 = 7; + return 26; + } else if(((!(a24==1)&&((a23==1)&&(((a9==11)&&((a20==1)&&(((a1==12)&&(input==6))&&(a28==1))))&&(a23==1))))&&((a4==1)||(!(a23==1)||((a19==4)&&(((a17==2)&&(((a3==1)&&(a21==11))&&(a5==4)))&&(a16==10))))))){ + a7 = 0; + a23 = 1; + a21 = 10; + a19 = 2; + a9 = 9; + a1 = 13; + a5 = 5; + a16 = 7; + a6 = 1; + return 25; + } else if((((a11==1)&&((!(a26==1)&&(!(a23==1)||(a28==1)))&&(a11==1)))&&(((((a16==9)&&(((a19==4)&&((a2==1)&&((((input==3)&&((a5==5)||(a5==6)))&&(a9==9))&&(a1==12))))&&(a3==1)))&&(a21==11))&&(a17==2))&&(a20==1)))){ + a16 = 7; + a19 = 1; + a9 = 7; + a13 = 1; + a5 = 4; + a21 = 10; + a7 = 0; + a26 = 0; + return -1; + } else if(((!(a8==1)&&(!(a2==1)||((!(a18==1)&&((((a3==1)&&(a16==10))&&!(a20==1))||(a4==1)))&&(a1==13))))&&((((a19==2)&&(((a21==11)&&((input==1)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))))&&(a3==1)))&&(a17==2))&&!(a27==1)))){ + if((a17==4)){ + a19 = 3; + a21 = 10; + a9 = 10; + a5 = 5; + a27 = 1; + a23 = 0; + a28 = 0; + }else{ + a21 = 10; + a9 = 9; + a19 = 5; + a5 = 5; + a14 = 1; + a13 = 0; + a10 = 1; + } + return -1; + } else if(((((a1==14)&&((a6==1)&&(!(a13==1)||((a16==7)&&(a13==1)))))&&(a21==11))&&((a9==10)&&((((a19==1)&&((a12==1)&&((!(a4==1)&&(((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a6==1)))&&(a17==2))))&&(a20==1))&&(a3==1))))){ + a21 = 10; + a9 = 7; + a1 = 12; + a2 = 1; + a24 = 0; + a6 = 1; + a5 = 4; + return -1; + } else if(((((a20==1)&&(a11==1))&&(a1==12))&&(((!(a24==1)&&((((a16==7)&&((a9==11)&&(!(a4==1)&&(((a21==10)&&(((input==6)&&(a19==4))&&(a12==1)))&&(a5==5)))))&&(a28==1))&&(a12==1)))&&!(a24==1))&&(a17==2)))){ + a9 = 9; + a5 = 4; + a3 = 1; + a27 = 0; + a23 = 1; + a1 = 13; + a21 = 11; + return 25; + } else if(((((a23==1)&&((a1==12)&&(!(a20==1)&&((((a21==10)&&((a9==8)&&(input==3)))&&(a16==9))&&!(a14==1)))))&&!(a27==1))&&((a23==1)&&(((a0==1)||((a17==2)&&(((a3==1)&&(a19==2))&&(a5==4))))&&!(a4==1))))){ + a29 = 1; + a1 = 13; + a6 = 0; + a20 = 1; + a13 = 0; + a9 = 10; + return 23; + } else if((((((a1==14)&&((a5==6)&&((((input==6)&&(a9==7))&&(a3==1))&&(a2==1))))&&(a16==7))&&(a17==2))&&(!(a20==1)&&((!(a0==1)&&(((!(a8==1)&&((a28==1)&&(a19==2)))||!(a28==1))&&(a13==1)))&&(a21==11))))){ + a2 = 1; + a0 = 0; + a20 = 1; + a9 = 11; + a19 = 3; + a16 = 11; + a27 = 0; + return 25; + } return calculate_output22(input); + } + + int calculate_output22(int input) { + if(((!(a27==1)&&(((((a20==1)&&((!(a7==1)&&((input==6)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))))&&(a16==8)))&&(a17==2))&&(a19==2))&&!(a7==1)))&&((a13==1)&&((a13==1)&&((a21==10)&&(!(a23==1)||((a1==12)&&(a23==1)))))))){ + a4 = 0; + a28 = 1; + a24 = 0; + a1 = 13; + a16 = 9; + a21 = 12; + a9 = 8; + a19 = 3; + a5 = 4; + return 25; + } else if((((((a19==2)&&(!(a24==1)&&((a17==2)&&(!(a20==1)&&(((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a23==1))))))&&(a12==1))&&(a16==8))&&((((a9==8)&&((!(a26==1)&&((a3==1)&&(a28==1)))&&(a1==13)))&&(a21==10))&&!(a4==1)))){ + a20 = 1; + a8 = 0; + a1 = 14; + a5 = 4; + a27 = 0; + a16 = 10; + a4 = 0; + return 21; + } else if(((((!(a27==1)&&((!(a7==1)&&((input==6)&&(a21==11)))&&!(a26==1)))&&!(a20==1))&&(a1==13))&&(((a5==6)&&(((!(a13==1)||((((a7==1)||(a11==1))&&(a9==7))&&(a17==2)))&&(a28==1))&&(a19==3)))&&(a16==8)))){ + a20 = 1; + a19 = 1; + a9 = 11; + a16 = 9; + a6 = 1; + a21 = 10; + a4 = 0; + a3 = 1; + return -1; + } else if((((a21==11)&&((!(a6==1)||((a17==2)&&((a8==1)||(a23==1))))&&(a9==11)))&&(((((((a2==1)&&((((a19==2)&&(input==4))&&(a16==11))&&(a20==1)))&&(a2==1))&&(a6==1))&&(a5==5))&&(a3==1))&&(a1==12)))){ + a21 = 10; + a9 = 7; + a7 = 0; + a19 = 1; + a2 = 1; + a16 = 7; + a13 = 1; + a5 = 4; + return -1; + } else if((((a20==1)&&(((a21==12)&&(!(a27==1)&&((a28==1)&&(((a28==1)&&(((input==5)&&((a5==4)||(a5==5)))&&(a13==1)))&&(a6==1)))))&&(a9==7)))&&((((((a23==1)&&(a1==14))&&!(a24==1))&&(a16==11))&&(a19==3))&&(a17==2)))){ + a28 = 1; + a5 = 4; + a19 = 1; + a9 = 9; + a1 = 13; + a12 = 1; + a23 = 1; + a16 = 9; + a21 = 10; + return 25; + } else if(((((((((input==6)&&((a5==4)||(a5==5)))&&!(a26==1))&&(a6==1))&&!(a24==1))&&(a16==10))&&(a19==1))&&(((a9==8)&&((a20==1)&&(!(a13==1)||(((a1==12)&&(((a18==1)||(a28==1))&&!(a26==1)))&&(a21==10)))))&&(a17==2)))){ + a5 = 5; + a1 = 14; + a27 = 0; + a3 = 1; + a16 = 7; + a8 = 0; + a9 = 9; + a19 = 3; + return 22; + } else if((((a19==4)&&(((a21==12)&&(((a20==1)&&((a1==13)&&(!(a8==1)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==4)))))&&(a28==1)))&&(a6==1)))&&((a17==2)&&((a16==7)&&((((a2==1)&&!(a18==1))&&(a6==1))||(a26==1)))))){ + a13 = 1; + a9 = 7; + a11 = 1; + a21 = 10; + a23 = 1; + a19 = 1; + a5 = 4; + a1 = 12; + return -1; + } else if(((((a28==1)&&(!(a20==1)&&(a3==1)))||!(a12==1))&&(((((((a19==3)&&((((((input==5)&&((a5==4)||(a5==5)))&&(a13==1))&&(a17==2))&&(a3==1))&&(a1==12)))&&(a16==7))&&!(a26==1))&&!(a8==1))&&(a21==12))&&(a9==8)))){ + a9 = 11; + a21 = 11; + a13 = 1; + a18 = 0; + a0 = 0; + a5 = 4; + a16 = 9; + a20 = 1; + a19 = 4; + return 26; + } else if(((!(a7==1)&&(!(a13==1)||((((!(a20==1)&&((a1==12)&&((a7==1)||(a2==1))))&&(a21==11))&&(a16==7))||(a18==1))))&&(((((((input==6)&&(a19==2))&&(a5==5))&&(a17==2))&&(a28==1))&&(a9==8))&&!(a7==1)))){ + a9 = 9; + a1 = 13; + a20 = 1; + a21 = 10; + a13 = 1; + a0 = 0; + return 25; + } else if((((!(a13==1)||(!(a6==1)||((a19==1)&&((a16==10)&&(((a1==13)&&((a20==1)&&(a12==1)))||(a7==1))))))&&(a21==11))&&((((a6==1)&&((((a5==6)&&(input==6))&&(a6==1))&&(a9==10)))&&(a6==1))&&(a17==2)))){ + a19 = 4; + a5 = 5; + a9 = 7; + a16 = 7; + a4 = 0; + a3 = 1; + a8 = 0; + return 25; + } else if((((a21==10)&&(((a3==1)&&((((((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a7==1))&&(a19==2))&&(a1==13))&&!(a20==1)))&&!(a4==1)))&&(((a24==1)||(!(a13==1)||(((a17==2)&&((a2==1)&&!(a8==1)))&&(a9==8))))&&(a16==8)))){ + a1 = 12; + a12 = 1; + a9 = 7; + a20 = 1; + a16 = 7; + a5 = 4; + a19 = 1; + a26 = 0; + a23 = 1; + return -1; + } else if(((((a21==11)&&(((a8==1)||((a17==2)&&((a0==1)||((a2==1)&&(a13==1)))))&&(a1==12)))&&(a20==1))&&((((a19==3)&&(((a16==10)&&((input==1)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))))&&!(a0==1)))&&!(a14==1))&&(a28==1)))){ + a9 = 7; + a5 = 6; + a16 = 7; + a21 = 10; + a1 = 13; + a6 = 1; + a19 = 4; + a23 = 1; + a0 = 0; + return 21; + } else if(((((a20==1)&&((input==4)&&(((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))))&&(a11==1))&&((a19==1)&&(((a16==10)&&(((a4==1)||(!(a27==1)&&((!(a13==1)||(((a12==1)&&(a17==2))&&(a1==12)))&&!(a7==1))))||(a4==1)))&&(a21==11))))){ + a16 = 7; + a5 = 4; + a7 = 0; + a21 = 10; + a8 = 0; + a4 = 0; + a9 = 7; + return -1; + } else if(((((((a17==2)&&(a12==1))&&(a20==1))&&(a2==1))&&(a2==1))&&(((((a11==1)&&(((((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==2))||((a19==3)&&(((a1==12)&&(a5==4))&&(a9==7))))&&(input==5))&&(a21==12))&&(a16==7)))&&!(a0==1))&&!(a27==1))&&(a6==1)))){ + a5 = 5; + a9 = 11; + a0 = 0; + a1 = 12; + a8 = 0; + a14 = 0; + a16 = 9; + a21 = 10; + a19 = 4; + return 21; + } else if((((((a1==14)&&(((a5==6)&&((a9==9)&&((a13==1)&&!(a0==1))))&&(a21==12)))&&(a19==3))&&(a16==9))&&((a17==2)&&(!(a8==1)&&((a3==1)&&((((a13==1)&&(!(a20==1)&&(input==3)))&&(a11==1))&&!(a26==1))))))){ + if((a0==1)){ + a28 = 0; + a20 = 1; + a23 = 0; + a1 = 12; + a10 = 1; + a16 = 8; + a19 = 4; + }else{ + a24 = 1; + a1 = 13; + a9 = 8; + a19 = 2; + a20 = 1; + a5 = 5; + a18 = 1; + a25 = 1; + } + return 21; + } else if(((((a21==12)&&((a2==1)&&((a16==7)&&(!(a4==1)&&((a3==1)&&((a20==1)&&(((((a5==5)&&(a1==14))&&(a9==7))||((((a1==13)&&(a5==6))&&(a9==11))||((a9==7)&&((a1==14)&&(a5==4)))))&&(input==4))))))))&&(a2==1))&&((a19==2)&&((a26==1)||(((a17==2)&&(a2==1))||(a0==1)))))){ + a19 = 3; + a12 = 1; + a5 = 6; + a16 = 9; + a27 = 0; + a1 = 14; + a21 = 10; + a28 = 1; + a9 = 7; + return 22; + } else if((((((!(a4==1)&&((a19==2)&&((a12==1)&&((input==6)&&(a1==13)))))&&!(a8==1))&&(a16==10))&&(a17==2))&&(((a5==4)&&((((((a3==1)||(a27==1))&&!(a8==1))&&!(a7==1))&&(a9==7))&&!(a20==1)))&&(a21==12)))){ + if((a17==2)){ + a9 = 9; + a16 = 9; + a29 = 1; + a1 = 14; + a19 = 3; + a8 = 1; + a5 = 6; + a15 = 1; + }else{ + a19 = 1; + a0 = 1; + a5 = 5; + a16 = 7; + a22 = 0; + a20 = 1; + a21 = 10; + a29 = 1; + a1 = 12; + a9 = 11; + } + return -1; + } else if(((((((!(a3==1)||(!(a6==1)||(a3==1)))&&(a16==7))&&(a20==1))&&(a21==12))&&(a19==1))&&((a1==14)&&((a17==2)&&(!(a24==1)&&(!(a8==1)&&((a11==1)&&((((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a5==4)&&(a9==11)))&&(input==6))&&!(a7==1))))))))){ + a14 = 0; + a9 = 7; + a1 = 12; + a2 = 1; + a27 = 0; + a5 = 4; + a21 = 10; + return -1; + } else if(((((a1==12)&&((a3==1)&&((!(a0==1)&&(((a11==1)&&(a9==9))&&(a17==2)))&&(a11==1))))&&(a16==7))&&(!(a0==1)&&(((a19==1)&&((a23==1)&&(((a21==12)&&((a5==4)&&(input==5)))&&(a13==1))))&&(a20==1))))){ + a5 = 5; + a9 = 11; + a19 = 4; + a0 = 0; + a16 = 8; + a26 = 0; + a8 = 0; + return 23; + } else if((((((a2==1)&&((a16==10)&&(((a9==11)&&(!(a20==1)&&(!(a26==1)&&((a17==2)&&((input==3)&&(a5==5))))))&&(a6==1))))&&(a21==10))&&!(a4==1))&&(((a19==1)&&(((a11==1)||(a0==1))&&!(a4==1)))&&(a1==14)))){ + a10 = 0; + a16 = 8; + a20 = 1; + a1 = 13; + a19 = 3; + a28 = 0; + a29 = 1; + a21 = 11; + a5 = 4; + return -1; + } else if((((a9==7)&&((((a5==5)&&((a2==1)&&((a19==2)&&(a12==1))))&&(a3==1))||(a8==1)))&&((((a1==13)&&((((((input==3)&&(a20==1))&&!(a27==1))&&!(a26==1))&&(a12==1))&&(a21==11)))&&(a17==2))&&(a16==8)))){ + a11 = 1; + a19 = 1; + a21 = 10; + a5 = 4; + a18 = 0; + a1 = 12; + a27 = 0; + a16 = 7; + return -1; + } else if((((a12==1)&&(!(a26==1)&&((a16==11)&&((input==3)&&((((a9==11)&&((a1==12)&&(a5==5)))||((a9==11)&&((a5==6)&&(a1==12))))||(((a5==4)&&(a1==13))&&(a9==7)))))))&&(((((((!(a20==1)&&((a11==1)&&!(a14==1)))&&(a19==2))&&(a17==2))&&(a13==1))&&(a21==10))&&!(a4==1))||(a14==1)))){ + a25 = 0; + a13 = 0; + a20 = 1; + a5 = 5; + a16 = 7; + a9 = 10; + a19 = 1; + a1 = 14; + a10 = 0; + return -1; + } else if((((((a3==1)&&(!(a14==1)&&((a13==1)&&((a17==2)&&((input==5)&&(((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))))))))&&!(a0==1))&&(a12==1))&&((a16==8)&&((a20==1)&&((a28==1)&&(((a19==5)&&((a1==12)&&(a3==1)))&&(a21==10))))))){ + a5 = 5; + a2 = 1; + a12 = 1; + a16 = 10; + a19 = 2; + a3 = 1; + a9 = 8; + return 26; + } else if((((!(a27==1)&&(((a16==10)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a12==1)))&&(a20==1)))&&(a1==12))&&((a27==1)||((a18==1)||((!(a18==1)&&(((a9==9)&&(((a21==10)&&(a23==1))||!(a2==1)))&&(a17==2)))&&(a19==1)))))){ + a3 = 1; + a5 = 4; + a9 = 7; + a0 = 0; + a2 = 1; + a16 = 7; + return -1; + } else if(((((a21==12)&&((a20==1)&&(((a17==2)&&(a23==1))&&(a16==10))))||!(a23==1))&&((((!(a18==1)&&((a1==13)&&((a19==1)&&(!(a7==1)&&((input==5)&&(((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))))))))&&(a28==1))&&!(a24==1))&&!(a18==1)))){ + a9 = 7; + a11 = 1; + a2 = 1; + a1 = 12; + a21 = 10; + a4 = 0; + a5 = 4; + a16 = 7; + return -1; + } else if(((((a9==8)&&((((((input==5)&&(a20==1))&&(a16==11))&&(a17==2))&&(a6==1))&&!(a27==1)))&&(a1==12))&&(!(a3==1)||((a21==10)&&((((a19==1)&&(((a5==6)&&(a13==1))||(a24==1)))&&(a13==1))&&!(a14==1)))))){ + a19 = 2; + a24 = 0; + a5 = 5; + a9 = 10; + a8 = 0; + a16 = 9; + a1 = 14; + a11 = 1; + return 21; + } else if(((((a8==1)||((((a1==14)&&((a9==9)&&(a23==1)))&&(a17==2))&&(a28==1)))&&(a20==1))&&((a21==11)&&((((a28==1)&&((a2==1)&&((((a5==6)&&(input==5))&&(a16==7))&&(a19==3))))&&!(a7==1))&&(a28==1))))){ + a9 = 7; + a28 = 1; + a5 = 4; + a1 = 13; + a3 = 1; + a16 = 8; + a26 = 0; + a19 = 2; + return 25; + } else if((((((a11==1)&&(!(a20==1)&&(a6==1)))&&(a23==1))&&(a19==4))&&(((a16==10)&&((a21==12)&&(((((a17==2)&&(((input==3)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5))))&&!(a18==1)))&&(a12==1))&&!(a14==1))&&(a11==1))))&&(a1==12)))){ + if((a23==1)){ + a19 = 1; + a5 = 4; + a21 = 11; + a16 = 9; + a1 = 14; + a15 = 1; + a9 = 9; + a12 = 0; + }else{ + a20 = 1; + a5 = 5; + a3 = 0; + a15 = 0; + a21 = 10; + a9 = 10; + a19 = 1; + a16 = 7; + a7 = 1; + } + return -1; + } else if(((((a21==12)&&(((a13==1)&&((((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&(a2==1))&&(a11==1)))&&(a17==2)))&&(a1==14))&&(((a0==1)||(((a9==10)&&((a20==1)&&(((a28==1)&&(a19==5))||!(a12==1))))||(a14==1)))&&(a16==10)))){ + a21 = 11; + a16 = 8; + a27 = 0; + a23 = 1; + a5 = 5; + a1 = 12; + a9 = 9; + a20 = 0; + a11 = 1; + a19 = 4; + return -1; + } else if((((a21==10)&&((((a28==1)&&((a11==1)&&(((!(a18==1)&&((input==6)&&((a5==5)||(a5==6))))&&(a20==1))&&(a1==13))))&&(a19==5))&&(a17==2)))&&((a12==1)&&(((a9==7)&&((a16==9)&&((a3==1)&&(a6==1))))||!(a3==1))))){ + a1 = 12; + a28 = 1; + a19 = 1; + a16 = 7; + a18 = 0; + a3 = 1; + a5 = 4; + return -1; + } else if((((a16==9)&&((a17==2)&&(((((a20==1)&&(!(a11==1)||(a12==1)))||(a4==1))&&(a9==8))&&(a21==11))))&&((a19==3)&&((((!(a27==1)&&((a13==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6))))&&!(a14==1))&&(a1==13))&&!(a7==1))))){ + a5 = 4; + a16 = 10; + a19 = 5; + a4 = 0; + a7 = 0; + a14 = 0; + return 21; + } else if(((((a16==9)&&((a11==1)&&(((((((input==5)&&((a5==4)||(a5==5)))&&(a1==13))&&(a21==10))&&!(a7==1))&&(a17==2))&&(a28==1))))&&!(a20==1))&&(!(a0==1)&&(((((a3==1)&&(a9==7))&&(a19==3))&&!(a8==1))||!(a6==1))))){ + a1 = 14; + a5 = 6; + a4 = 1; + a22 = 0; + a14 = 1; + a19 = 4; + return 25; + } else if(((((((((a13==1)&&(a16==11))||!(a2==1))||!(a13==1))&&!(a18==1))&&(a21==12))&&(a19==1))&&((((a17==2)&&(((a1==13)&&(!(a24==1)&&((((a5==5)||(a5==6))&&(input==1))&&!(a14==1))))&&!(a18==1)))&&(a20==1))&&(a9==10)))){ + a19 = 3; + a11 = 1; + a2 = 1; + a1 = 14; + a9 = 11; + a5 = 4; + a6 = 1; + return 22; + } else if((((((!(a18==1)&&((a1==13)&&(!(a26==1)&&((a9==11)&&(((input==5)&&(a19==3))&&(a28==1))))))&&(a5==6))&&(a21==11))&&(a23==1))&&(((a16==9)&&((a24==1)||((a17==2)&&((a24==1)||(a28==1)))))&&(a20==1)))){ + a19 = 4; + a0 = 0; + a1 = 12; + a18 = 0; + a5 = 5; + a8 = 0; + a9 = 7; + return 21; + } else if((((a20==1)&&((((((a9==10)&&(!(a27==1)&&((a19==5)&&((a17==2)&&((input==5)&&((a5==5)||(a5==6)))))))&&(a3==1))&&!(a4==1))&&(a16==10))&&(a21==11)))&&((a2==1)&&(!(a2==1)||(((a11==1)||(a4==1))&&(a1==14)))))){ + a1 = 13; + a2 = 1; + a12 = 1; + a21 = 10; + a9 = 9; + a16 = 7; + a19 = 2; + a5 = 5; + return 25; + } else if((((a1==13)&&((a13==1)&&((a5==5)&&(((a23==1)||(a14==1))||(a8==1)))))&&((a16==9)&&(((a9==8)&&(!(a24==1)&&((a21==10)&&(((a19==1)&&((a20==1)&&((input==1)&&(a17==2))))&&!(a7==1)))))&&!(a0==1))))){ + a9 = 10; + a27 = 0; + a5 = 4; + a16 = 11; + a14 = 0; + a28 = 1; + a1 = 12; + return 23; + } else if((((!(a20==1)&&((!(a26==1)&&((input==3)&&(a1==12)))&&(a3==1)))&&(a16==10))&&((a9==8)&&((a13==1)&&((a19==5)&&((a5==5)&&((((a21==12)&&((!(a14==1)&&(a6==1))||(a8==1)))&&(a17==2))&&(a3==1)))))))){ + a19 = 1; + a7 = 1; + a1 = 14; + a16 = 7; + a26 = 1; + a9 = 10; + a21 = 10; + a22 = 1; + a5 = 4; + a20 = 1; + return -1; + } else if((((a12==1)&&(a28==1))&&((((a2==1)&&((a13==1)&&(((((a16==8)&&(((((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==1))&&!(a20==1))&&(a19==1))&&(a12==1)))&&(a21==10))&&(a17==2))&&(a1==12))))&&!(a24==1))&&!(a18==1)))){ + a20 = 1; + a9 = 10; + a16 = 9; + a14 = 0; + a1 = 14; + a5 = 6; + a21 = 12; + a19 = 3; + a28 = 1; + return 21; + } else if((((a16==10)&&((a19==5)&&((a6==1)&&((!(a14==1)&&(a2==1))||!(a23==1)))))&&(!(a0==1)&&(((a5==5)&&(((((((input==4)&&!(a20==1))&&(a21==12))&&(a17==2))&&(a1==13))&&(a11==1))&&(a28==1)))&&(a9==9))))){ + a4 = 1; + a15 = 0; + a0 = 1; + a1 = 12; + a21 = 10; + a16 = 7; + a20 = 1; + a5 = 4; + a9 = 10; + a19 = 1; + return -1; + } else if((((a9==9)&&((!(a20==1)&&((((((a2==1)&&(a1==14))&&(a21==10))&&(a6==1))||(a24==1))||(a8==1)))&&(a12==1)))&&((a16==9)&&((a17==2)&&(!(a7==1)&&((a19==5)&&(!(a18==1)&&((input==3)&&((a5==4)||(a5==5)))))))))){ + if((a4==1)){ + a3 = 0; + a21 = 11; + a25 = 0; + a1 = 13; + a5 = 4; + a15 = 1; + a9 = 10; + a16 = 10; + }else{ + a13 = 0; + a9 = 10; + a23 = 0; + a21 = 11; + a19 = 4; + a16 = 8; + a1 = 12; + a2 = 0; + a5 = 5; + } + return 25; + } else if(((!(a20==1)&&((!(a3==1)||(!(a18==1)&&((a11==1)&&((a19==3)&&((a16==9)&&(a13==1))))))&&(a1==14)))&&((a2==1)&&((((a3==1)&&((((a17==2)&&(input==6))&&(a21==12))&&(a5==5)))&&(a9==7))&&(a2==1))))){ + if((a13==1)){ + a16 = 7; + a21 = 10; + a12 = 0; + a10 = 1; + a19 = 2; + a5 = 6; + a29 = 1; + a9 = 11; + a1 = 12; + a20 = 1; + }else{ + a21 = 11; + a26 = 1; + a19 = 1; + a2 = 0; + a9 = 10; + a1 = 13; + a5 = 6; + } + return -1; + } else if(((((a28==1)&&(!(a11==1)||((a1==12)&&((a19==5)&&((a23==1)&&(a9==8))))))&&(a28==1))&&((((((a17==2)&&((a3==1)&&((a11==1)&&((input==5)&&((a5==4)||(a5==5))))))&&(a20==1))&&(a21==10))&&(a13==1))&&(a16==9)))){ + a11 = 1; + a28 = 1; + a3 = 1; + a9 = 7; + a16 = 7; + a19 = 1; + a5 = 4; + return -1; + } else if(((((a9==11)&&((a19==3)&&((((!(a18==1)&&((((a5==5)||(a5==6))&&(input==6))&&!(a4==1)))&&(a17==2))&&(a6==1))&&!(a24==1))))&&(a11==1))&&(((a16==9)&&(!(a2==1)||(((a21==10)&&(a6==1))&&!(a20==1))))&&(a1==12)))){ + a16 = 10; + a1 = 13; + a19 = 2; + a20 = 1; + a9 = 8; + a21 = 12; + a14 = 1; + a18 = 1; + a6 = 0; + a5 = 6; + return -1; + } else if(((((a16==10)&&((!(a6==1)||(!(a8==1)&&((a23==1)||!(a3==1))))&&!(a8==1)))&&(a21==10))&&(((a19==2)&&(!(a8==1)&&(((a20==1)&&((a17==2)&&((input==5)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))))&&(a23==1))))&&(a1==14)))){ + a9 = 8; + a7 = 0; + a21 = 12; + a1 = 13; + a5 = 5; + a18 = 0; + a13 = 1; + return 21; + } else if(((!(a6==1)||(!(a11==1)||((a13==1)&&(a1==13))))&&(!(a14==1)&&(((!(a18==1)&&((((a5==6)&&(((a9==8)&&(((input==3)&&(a16==9))&&(a20==1)))&&(a19==1)))&&(a17==2))&&!(a0==1)))&&(a21==10))&&!(a7==1))))){ + a5 = 4; + a9 = 9; + a3 = 1; + a16 = 7; + a19 = 2; + a13 = 1; + a26 = 0; + return 23; + } else if(((((((((a11==1)&&((input==1)&&(a21==12)))&&(a5==6))&&(a9==7))&&(a23==1))&&(a28==1))&&(a17==2))&&((a19==5)&&((a20==1)&&(!(a27==1)&&((a16==9)&&((a1==14)&&((a7==1)||((a28==1)&&!(a0==1)))))))))){ + a1 = 12; + a28 = 1; + a5 = 5; + a19 = 4; + a3 = 1; + a8 = 0; + a21 = 11; + return 21; + } else if(((((a13==1)&&(((a1==13)&&((!(a14==1)&&((a13==1)||!(a28==1)))||(a4==1)))&&!(a27==1)))&&!(a20==1))&&((a21==10)&&(((a17==2)&&(((a19==1)&&(!(a8==1)&&((input==1)&&(a5==4))))&&(a16==9)))&&(a9==8))))){ + a9 = 10; + a10 = 0; + a20 = 1; + a6 = 0; + a16 = 7; + a5 = 5; + a4 = 1; + return -1; + } else if((((a11==1)&&((a21==11)&&((a1==13)&&((a19==2)&&((a9==7)&&((a2==1)&&(a16==11)))))))&&(!(a26==1)&&((a28==1)&&(!(a7==1)&&(((((a11==1)&&((input==4)&&((a5==5)||(a5==6))))&&!(a0==1))&&(a17==2))&&(a20==1))))))){ + a5 = 4; + a19 = 5; + a11 = 1; + a21 = 10; + a13 = 1; + a16 = 7; + a9 = 11; + a2 = 1; + a1 = 12; + return -1; + } else if((((a24==1)||((a9==7)&&((!(a13==1)||((a19==4)&&((a6==1)&&((a20==1)&&(a3==1)))))&&(a16==7))))&&((a13==1)&&((((!(a4==1)&&((((a5==5)||(a5==6))&&(input==3))&&(a3==1)))&&(a17==2))&&(a21==12))&&(a1==13))))){ + a21 = 10; + a19 = 1; + a2 = 1; + a8 = 0; + a1 = 12; + a5 = 4; + a11 = 1; + return -1; + } else if((((a16==8)&&(((a19==3)&&(((((((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8))))&&(input==6))&&(a1==14))&&!(a8==1))&&!(a26==1)))&&(a21==10)))&&((a17==2)&&(((a26==1)||(((!(a4==1)&&(a28==1))||!(a23==1))&&!(a18==1)))&&(a20==1))))){ + if((a13==1)){ + a24 = 0; + a5 = 4; + a23 = 1; + a21 = 11; + a19 = 4; + a20 = 0; + a1 = 12; + a9 = 10; + a27 = 0; + }else{ + a9 = 7; + a14 = 0; + a21 = 12; + a23 = 1; + a28 = 1; + a19 = 5; + a16 = 9; + a5 = 4; + } + return 22; + } else if((((a1==13)&&(((a23==1)&&((a9==10)&&((input==3)&&((a5==5)||(a5==6)))))&&(a17==2)))&&((a20==1)&&((!(a0==1)&&(!(a24==1)&&((a28==1)&&(!(a0==1)&&((a21==12)&&((a19==1)&&((a16==9)&&(a23==1))))))))||(a18==1))))){ + a14 = 0; + a21 = 10; + a1 = 12; + a16 = 7; + a9 = 7; + a11 = 1; + a5 = 4; + a26 = 0; + return -1; + } else if((((a21==12)&&((a1==12)&&((a9==11)&&(((!(a27==1)&&(((a13==1)&&((((a16==9)&&(input==5))&&(a12==1))&&(a17==2)))&&(a19==4)))&&(a23==1))&&(a12==1)))))&&((a20==1)&&((a11==1)&&((a5==6)&&(a28==1)))))){ + a23 = 1; + a9 = 7; + a16 = 7; + a11 = 1; + a19 = 1; + a5 = 4; + a18 = 0; + a21 = 10; + return -1; + } else if((((((a21==12)&&(!(a7==1)&&(((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&!(a7==1))))&&!(a18==1))&&(a1==12))&&((a20==1)&&((((a0==1)||((a0==1)||((a19==1)&&(((a28==1)&&(a17==2))&&(a9==8)))))&&(a16==10))&&(a6==1))))){ + a4 = 0; + a5 = 4; + a11 = 1; + a21 = 10; + a9 = 7; + a16 = 7; + a26 = 0; + return -1; + } else if(((((((a21==10)&&(!(a3==1)||((((a16==11)&&(a13==1))&&(a17==2))&&(a28==1))))&&(a9==8))||(a24==1))&&(a19==1))&&(!(a24==1)&&(!(a20==1)&&((((((a5==5)||(a5==6))&&(input==3))&&(a1==14))&&(a6==1))&&(a13==1)))))){ + a22 = 0; + a20 = 1; + a5 = 5; + a25 = 0; + a10 = 0; + a16 = 7; + a9 = 11; + return -1; + } else if((((a9==10)&&(((a1==12)&&(!(a14==1)&&(a12==1)))&&(a23==1)))&&((a19==3)&&((a17==2)&&((a16==11)&&(!(a14==1)&&(((a20==1)&&(((a23==1)&&((a12==1)&&(((a5==5)||(a5==6))&&(input==4))))&&(a21==11)))&&!(a24==1)))))))){ + a28 = 1; + a27 = 0; + a9 = 7; + a16 = 9; + a5 = 5; + a7 = 0; + a19 = 2; + return 25; + } else if(((!(a6==1)||(((a13==1)&&((a19==2)&&(!(a3==1)||(((((a17==2)&&(a6==1))&&(a9==10))&&!(a26==1))&&!(a24==1)))))||!(a2==1)))&&((((a20==1)&&(((input==5)&&((a5==4)||(a5==5)))&&(a21==12)))&&(a16==11))&&(a1==13)))){ + a1 = 12; + a19 = 1; + a21 = 10; + a23 = 1; + a18 = 0; + a9 = 7; + a5 = 4; + a6 = 1; + a16 = 7; + return -1; + } else if((((a19==5)&&((a12==1)&&(((a4==1)||((!(a20==1)&&(!(a12==1)||(!(a4==1)&&((a23==1)&&(a1==14)))))||!(a11==1)))&&(a9==9))))&&((((a16==7)&&((a17==2)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5))))&&(a21==11))&&!(a27==1)))){ + a20 = 1; + a23 = 1; + a13 = 1; + a9 = 7; + a1 = 12; + a5 = 4; + a19 = 1; + a21 = 10; + a2 = 1; + return -1; + } else if(((((a21==10)&&((((a11==1)&&((a17==2)&&((((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))&&(input==3))&&(a1==13))))&&(a19==1))&&(a28==1)))&&!(a18==1))&&(((a16==10)&&((((a12==1)&&(a20==1))||!(a6==1))||(a24==1)))||(a4==1)))){ + a14 = 0; + a5 = 4; + a1 = 12; + a9 = 7; + a13 = 1; + a18 = 0; + a16 = 7; + return -1; + } else if((((((a2==1)&&((((a13==1)&&((((((a13==1)&&(a19==1))||!(a2==1))&&(a1==13))||!(a23==1))||!(a12==1)))&&(a16==11))&&(a17==2)))&&(a21==12))&&(a20==1))&&((a3==1)&&(((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))&&(input==1))))){ + a19 = 4; + a16 = 9; + a13 = 1; + a9 = 10; + a0 = 0; + a5 = 6; + return 25; + } else if((((a3==1)&&(!(a26==1)&&((((a17==2)&&((((a1==12)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==6)))&&(a16==8))&&(a11==1)))&&(a19==1))&&(a20==1))))&&((a3==1)&&(((!(a8==1)&&(a2==1))&&(a21==12))&&!(a24==1))))){ + a9 = 7; + a16 = 7; + a5 = 4; + a21 = 10; + a13 = 1; + a11 = 1; + return -1; + } else if((((a11==1)&&(((!(a24==1)&&((a20==1)&&((a1==14)&&((input==3)&&((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4)))))))&&(a17==2))&&!(a8==1)))&&((a24==1)||((a7==1)||((a19==3)&&((a16==10)&&(((a28==1)&&(a23==1))&&(a21==12)))))))){ + a1 = 12; + a2 = 1; + a9 = 7; + a21 = 10; + a5 = 4; + a27 = 0; + a16 = 7; + a4 = 0; + a19 = 1; + return -1; + } else if((((a20==1)&&((!(a2==1)||((((a12==1)&&(a11==1))||(a7==1))&&(a16==11)))||!(a23==1)))&&((a17==2)&&(((a5==5)&&(((a9==9)&&(!(a24==1)&&(((a1==12)&&(input==5))&&!(a14==1))))&&(a19==1)))&&(a21==11))))){ + a5 = 4; + a21 = 10; + a26 = 0; + a16 = 7; + a7 = 0; + a9 = 7; + a13 = 1; + return -1; + } else if(((((a11==1)&&((a28==1)&&(!(a7==1)&&((input==6)&&((a5==5)||(a5==6))))))&&!(a14==1))&&((((a17==2)&&((!(a20==1)&&((a9==7)&&(((a16==7)&&((a3==1)||(a27==1)))&&(a19==4))))&&(a1==12)))&&(a21==11))||!(a12==1)))){ + a5 = 5; + a1 = 13; + a20 = 1; + a4 = 0; + a9 = 10; + a16 = 8; + a11 = 1; + a14 = 0; + a19 = 2; + return 26; + } else if(((((a8==1)&&((a19==4)&&((a14==1)&&(a23==1))))&&!(a11==1))&&(!(a13==1)&&((((a9==9)&&((a17==2)&&((a21==11)&&((a1==14)&&((a24==1)&&((a16==8)&&((input==3)&&!(a20==1))))))))&&(a26==1))&&(a5==4))))){ + a1 = 13; + a25 = 1; + a9 = 11; + a10 = 1; + a21 = 10; + a19 = 1; + a0 = 1; + return -1; + } else if((((((!(a20==1)&&(!(a12==1)||(a12==1)))&&(a9==7))&&(a21==12))&&(a13==1))&&(!(a18==1)&&((a6==1)&&((!(a18==1)&&((((((input==4)&&(a19==5))&&(a17==2))&&(a1==14))&&(a5==4))&&(a16==10)))&&(a6==1)))))){ + a21 = 10; + a19 = 1; + a7 = 1; + a12 = 0; + a20 = 1; + a23 = 0; + a16 = 7; + return -1; + } else if(((!(a3==1)||((!(a3==1)||((a12==1)&&(!(a20==1)&&((((a19==2)&&((a16==11)&&(a28==1)))&&!(a7==1))&&(a21==10)))))&&!(a26==1)))&&(((a17==2)&&(((input==6)&&(((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))))&&(a1==13)))&&(a3==1)))){ + if((a1==12)){ + a19 = 1; + a5 = 6; + a9 = 10; + a26 = 1; + a1 = 14; + a16 = 7; + a25 = 0; + a7 = 1; + a20 = 1; + }else{ + a22 = 0; + a16 = 10; + a10 = 1; + a20 = 1; + a27 = 1; + a5 = 6; + a19 = 4; + a9 = 10; + } + return 25; + } else if((((((!(a8==1)&&((a19==4)&&(!(a0==1)&&(((a1==13)&&(input==6))&&(a5==6)))))&&(a9==10))&&(a17==2))&&(a16==7))&&((((((a18==1)||((a24==1)||(a2==1)))||!(a3==1))||(a27==1))&&!(a20==1))&&(a21==12)))){ + a23 = 1; + a1 = 12; + a12 = 1; + a19 = 1; + a21 = 10; + a7 = 0; + a20 = 1; + a9 = 7; + a5 = 4; + return -1; + } else if(((!(a6==1)||(((((a11==1)&&((a20==1)&&(a23==1)))&&(a19==5))||(a26==1))&&(a16==8)))&&(((a28==1)&&((((a9==9)&&((((input==5)&&((a5==4)||(a5==5)))&&(a1==13))&&(a17==2)))&&(a21==10))&&(a28==1)))&&(a2==1)))){ + a5 = 5; + a1 = 12; + a18 = 0; + a23 = 1; + a19 = 4; + a28 = 1; + a9 = 7; + a16 = 7; + return -1; + } else if((((a19==4)&&(((input==1)&&(((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))))&&!(a26==1)))&&((a3==1)&&(((!(a14==1)&&((a17==2)&&(((((a13==1)&&((a28==1)&&(a21==11)))&&(a1==14))&&!(a20==1))&&(a2==1))))&&(a6==1))&&(a16==7))))){ + a7 = 0; + a5 = 4; + a12 = 1; + a9 = 7; + a19 = 1; + a21 = 10; + a20 = 1; + a1 = 12; + a26 = 0; + return -1; + } else if((((a17==2)&&((a28==1)&&((((input==6)&&(((a9==11)&&((a5==6)&&(a1==13)))||(((a1==14)&&(a5==4))&&(a9==7))))&&(a23==1))&&(a23==1))))&&((a16==10)&&((!(a20==1)&&(((((a24==1)||(a6==1))&&(a12==1))&&(a21==11))&&(a11==1)))&&(a19==3))))){ + a9 = 11; + a1 = 12; + a5 = 6; + a2 = 0; + a21 = 12; + a26 = 1; + a19 = 2; + a15 = 0; + return 26; + } else if((((a9==10)&&((((a23==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&!(a7==1)))&&(a12==1))&&!(a14==1)))&&((a19==3)&&((!(a27==1)&&((a1==12)&&(((a21==10)&&((a16==11)&&((a28==1)&&(a3==1))))&&(a17==2))))&&!(a20==1))))){ + a19 = 1; + a9 = 11; + a5 = 4; + a16 = 7; + a24 = 1; + a20 = 1; + a0 = 1; + a13 = 0; + return -1; + } else if(((((a16==11)&&(((a11==1)&&((a21==12)&&((a5==5)&&(input==3))))&&!(a4==1)))&&(a1==14))&&((a9==10)&&(((a19==4)&&((((!(a8==1)&&((a23==1)&&!(a27==1)))&&!(a0==1))&&(a17==2))||!(a3==1)))&&(a20==1))))){ + a23 = 1; + a1 = 12; + a5 = 4; + a9 = 7; + a11 = 1; + a6 = 1; + a19 = 1; + a16 = 7; + a21 = 10; + return -1; + } else if(((((a19==1)&&((((a1==12)&&((a16==9)&&((a28==1)||(a0==1))))||!(a28==1))||(a14==1)))&&(a5==6))&&((a9==8)&&((a21==12)&&(((!(a0==1)&&(!(a26==1)&&((a20==1)&&(input==6))))&&(a17==2))&&!(a8==1)))))){ + a9 = 7; + a26 = 0; + a1 = 14; + a5 = 5; + a19 = 5; + a2 = 1; + a0 = 0; + a16 = 7; + return 22; + } else if(((!(a24==1)&&(((a17==2)&&((a20==1)&&((a1==14)&&(a12==1))))&&(a19==4)))&&(!(a7==1)&&(((a28==1)&&((((((a16==10)&&((input==1)&&((a5==4)||(a5==5))))&&(a9==8))&&(a12==1))&&(a21==11))&&!(a4==1)))&&!(a4==1))))){ + a21 = 10; + a9 = 7; + a27 = 0; + a5 = 5; + a1 = 13; + a13 = 1; + return -1; + } else if(((((a16==7)&&((a17==2)&&((a19==4)&&((a13==1)&&(((a23==1)&&(a6==1))&&!(a24==1))))))&&(a1==14))&&(((((!(a0==1)&&(((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5)))&&(input==5)))&&(a12==1))&&(a28==1))&&(a21==10))&&(a20==1)))){ + a24 = 0; + a27 = 0; + a9 = 10; + a1 = 13; + a21 = 12; + a5 = 5; + a11 = 1; + a19 = 1; + return 21; + } else if(((((a3==1)&&(a1==12))&&!(a24==1))&&((a19==2)&&(((a2==1)&&((a6==1)&&((a13==1)&&(((a13==1)&&(((a21==12)&&(((input==6)&&((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4))))&&(a17==2)))&&(a11==1)))&&(a20==1)))))&&(a16==9))))){ + a24 = 0; + a7 = 0; + a16 = 7; + a9 = 7; + a23 = 1; + a5 = 4; + a21 = 10; + a19 = 1; + return -1; + } else if((((!(a8==1)&&((!(a20==1)&&((a21==12)&&((a1==12)&&(((input==6)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(a16==9)))))&&(a6==1)))&&(a23==1))&&((a12==1)&&((((a17==2)&&((a19==5)&&(a2==1)))||(a27==1))||!(a2==1))))){ + a28 = 0; + a20 = 1; + a21 = 10; + a4 = 1; + a5 = 6; + a9 = 11; + a1 = 13; + a16 = 7; + a24 = 1; + a19 = 1; + return 22; + } else if((((a1==13)&&(((a19==5)&&((a12==1)&&(((a23==1)&&((a12==1)&&(((input==1)&&(((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))))&&(a11==1))))&&(a20==1))))&&!(a26==1)))&&(((a16==9)&&((a17==2)&&((a11==1)||!(a23==1))))&&(a21==11)))){ + if((a18==1)){ + a5 = 5; + a19 = 4; + a11 = 1; + a23 = 1; + a9 = 8; + a1 = 12; + a20 = 0; + a16 = 8; + }else{ + a5 = 4; + a19 = 2; + a21 = 10; + a14 = 0; + a16 = 7; + a0 = 0; + a3 = 1; + a9 = 10; + } + return 21; + } else if(((((((a1==14)&&(a3==1))&&(a21==10))&&(a20==1))&&(a16==10))&&((a9==10)&&((!(a8==1)&&((a17==2)&&((!(a14==1)&&((((((a5==4)||(a5==5))&&(input==5))&&!(a4==1))&&(a19==2))&&!(a0==1)))&&!(a14==1))))&&(a28==1))))){ + a28 = 1; + a5 = 4; + a19 = 1; + a0 = 0; + a1 = 12; + a7 = 0; + a9 = 7; + a16 = 7; + return -1; + } else if((((a20==1)&&(((a19==1)&&((((a2==1)&&((a17==2)&&(((a5==4)||(a5==5))&&(input==6))))&&!(a7==1))&&!(a7==1)))&&(a9==7)))&&((a21==11)&&((!(a13==1)||((a16==8)&&((!(a2==1)||(a23==1))&&(a1==13))))&&(a28==1))))){ + a5 = 6; + a16 = 10; + a21 = 10; + a4 = 0; + a26 = 0; + a9 = 9; + a1 = 12; + a19 = 3; + a7 = 0; + return 23; + } else if((((((!(a4==1)&&(a6==1))&&(a21==12))&&(a20==1))||(a27==1))&&((a28==1)&&(((a16==7)&&(((a19==2)&&((((((a9==7)&&((a5==5)&&(a1==14)))||(((a9==11)&&((a1==13)&&(a5==6)))||((a9==7)&&((a5==4)&&(a1==14)))))&&(input==1))&&(a17==2))&&(a6==1)))&&(a3==1)))&&(a6==1))))){ + a18 = 0; + a21 = 10; + a11 = 1; + a5 = 4; + a0 = 0; + a16 = 9; + a19 = 3; + a9 = 7; + a1 = 14; + return 26; + } else if((((a17==2)&&(!(a27==1)&&((a2==1)&&(((a1==12)&&(((a9==11)&&(input==3))&&!(a0==1)))&&(a5==4)))))&&((((a21==12)&&((a20==1)&&((!(a4==1)&&((a0==1)||(a13==1)))&&(a19==4))))&&(a11==1))&&(a16==8)))){ + a19 = 1; + a9 = 7; + a8 = 0; + a16 = 7; + a21 = 10; + a28 = 1; + return -1; + } else if(((((a16==7)&&((((a17==2)&&(a3==1))&&(a1==13))&&(a5==4)))&&!(a24==1))&&(((a21==12)&&((a12==1)&&(!(a27==1)&&((((((input==6)&&(a19==5))&&(a9==7))&&(a20==1))&&(a23==1))&&(a6==1)))))&&!(a7==1)))){ + a1 = 14; + a16 = 9; + a12 = 1; + a21 = 11; + a9 = 9; + a4 = 0; + a19 = 4; + a5 = 5; + a2 = 1; + return 23; + } else if((((a18==1)||((a23==1)&&((a1==14)&&((a17==2)&&((a19==5)&&((a13==1)&&(a20==1)))))))&&(!(a7==1)&&((a28==1)&&(((((a16==7)&&((input==5)&&((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4)))))&&(a6==1))&&(a21==11))&&!(a0==1)))))){ + a0 = 0; + a5 = 4; + a16 = 8; + a19 = 3; + a4 = 0; + a2 = 1; + a21 = 12; + a9 = 9; + return 21; + } else if((((((a1==13)&&(((!(a12==1)||((a12==1)&&(a19==3)))&&(a21==11))&&(a9==8)))||(a8==1))&&(a2==1))&&(((((((a16==9)&&((input==6)&&(a5==5)))&&!(a0==1))&&(a17==2))&&(a28==1))&&!(a20==1))&&(a13==1)))){ + a19 = 2; + a28 = 0; + a21 = 10; + a11 = 0; + a16 = 11; + return -1; + } else if(((!(a18==1)&&((a28==1)&&(((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==4))&&(a19==2))))&&(!(a20==1)&&(((a16==9)&&(((a4==1)||(!(a3==1)||((a21==11)&&((a6==1)&&((a17==2)&&(a3==1))))))||(a14==1)))&&(a1==12))))){ + if((a4==1)){ + a2 = 0; + a5 = 6; + a18 = 1; + a1 = 14; + a16 = 7; + a19 = 5; + a9 = 7; + a6 = 0; + }else{ + a1 = 13; + a15 = 1; + a2 = 0; + a16 = 7; + a21 = 10; + a18 = 1; + a20 = 1; + a9 = 7; + a5 = 4; + } + return -1; + } else if((((((a13==1)&&(((a28==1)&&(!(a24==1)&&((((a1==14)&&(input==4))&&(a21==12))&&(a9==9))))&&(a20==1)))&&(a19==3))&&!(a0==1))&&((a17==2)&&((a5==6)&&(!(a8==1)&&((a16==11)&&((a2==1)||!(a13==1)))))))){ + a0 = 0; + a1 = 12; + a18 = 0; + a21 = 10; + a16 = 7; + a19 = 1; + a5 = 4; + a9 = 7; + a6 = 1; + return -1; + } else if((((!(a0==1)&&(((((a16==9)&&((a21==10)&&((a3==1)&&((a17==2)&&((input==5)&&((a5==4)||(a5==5)))))))&&(a19==4))&&(a9==7))&&!(a14==1)))&&(a2==1))&&(!(a26==1)&&(!(a13==1)||(((a6==1)&&(a1==12))&&(a20==1)))))){ + a2 = 1; + a5 = 4; + a19 = 1; + a28 = 1; + a16 = 7; + return -1; + } else if((((a12==1)&&(((a21==11)&&((a20==1)&&(!(a24==1)&&((a19==3)&&((a17==2)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))))))&&!(a8==1)))&&(((((((a16==8)&&(a13==1))&&(a1==14))&&(a28==1))&&(a9==11))&&(a6==1))||(a8==1)))){ + if((a9==10)){ + a14 = 0; + a19 = 2; + a1 = 12; + a20 = 0; + a9 = 10; + a5 = 6; + a2 = 1; + a4 = 0; + }else{ + a9 = 10; + a19 = 1; + a5 = 5; + a26 = 0; + a12 = 1; + a18 = 0; + a1 = 13; + } + return -1; + } else if(((((a21==11)&&(((a13==1)&&((a19==4)&&(((a11==1)&&(((a5==4)||(a5==5))&&(input==1)))&&(a12==1))))&&(a1==13)))&&!(a27==1))&&((a9==7)&&(((a7==1)||(!(a23==1)||(((a6==1)&&(a16==8))&&!(a20==1))))&&(a17==2))))){ + a26 = 0; + a5 = 4; + a9 = 9; + a19 = 2; + a23 = 1; + a14 = 0; + a16 = 7; + a20 = 1; + a21 = 10; + return 25; + } else if((((a16==10)&&(a2==1))&&(!(a27==1)&&((a2==1)&&((!(a14==1)&&((((a3==1)&&((a20==1)&&(((((a19==4)&&((a9==7)&&((a1==12)&&(a5==4))))||(((a19==3)&&(((a5==5)&&(a1==14))&&(a9==11)))||((a19==3)&&((a9==11)&&((a5==6)&&(a1==14))))))&&(input==1))&&(a11==1))))&&(a21==12))&&(a12==1)))&&(a17==2)))))){ + a4 = 0; + a19 = 2; + a28 = 1; + a11 = 1; + a1 = 13; + a21 = 10; + a5 = 5; + a9 = 9; + a16 = 7; + return 25; + } else if(((((((((a6==1)&&(a20==1))&&(a2==1))&&(a17==2))||(a27==1))&&(a16==8))&&(a21==10))&&((!(a7==1)&&((a1==12)&&((a6==1)&&((((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==1))&&(a28==1))&&(a19==4)))))&&(a23==1)))){ + a19 = 1; + a28 = 1; + a3 = 1; + a5 = 4; + a16 = 7; + a0 = 0; + a9 = 7; + return -1; + } else if((((!(a7==1)&&(((((a21==10)&&(input==3))&&!(a27==1))&&(a9==7))&&!(a4==1)))&&(a19==2))&&(((((a5==5)&&((a16==7)&&((((a4==1)||(a23==1))&&!(a8==1))&&!(a26==1))))&&(a17==2))&&(a1==13))&&(a20==1)))){ + a19 = 1; + a0 = 0; + a11 = 1; + a7 = 0; + a5 = 4; + a1 = 12; + return -1; + } else if(((((a20==1)&&(((a16==9)&&((((a18==1)||((a17==2)&&(a2==1)))&&(a9==10))&&(a21==11)))||(a7==1)))||!(a6==1))&&((a5==6)&&((((((input==6)&&(a1==12))&&(a19==4))&&(a11==1))&&(a12==1))&&(a3==1))))){ + a9 = 8; + a20 = 0; + a5 = 5; + a23 = 1; + a4 = 0; + a16 = 8; + a11 = 1; + return 21; + } else if((((a9==10)&&((a19==4)&&(((((((input==1)&&((a5==5)||(a5==6)))&&(a13==1))&&!(a7==1))&&!(a18==1))&&(a12==1))&&!(a7==1))))&&((a1==13)&&((((((a13==1)||!(a2==1))&&(a17==2))&&(a20==1))&&(a16==9))&&(a21==10))))){ + a19 = 1; + a0 = 0; + a24 = 0; + a1 = 12; + a5 = 4; + a16 = 7; + a27 = 0; + a9 = 7; + return -1; + } else if((((a1==13)&&((((!(a2==1)||(((a19==2)&&(((a4==1)||(a13==1))&&!(a4==1)))&&(a16==8)))&&!(a7==1))&&(a21==12))||(a14==1)))&&((a6==1)&&((((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==4))&&(a17==2))&&!(a20==1))))){ + a19 = 1; + a4 = 1; + a21 = 11; + a9 = 8; + a1 = 14; + a11 = 0; + a20 = 1; + a16 = 11; + a5 = 6; + a25 = 1; + return -1; + } else if((((a1==13)&&((a0==1)||((a20==1)&&(!(a11==1)||((a11==1)||(a0==1))))))&&((a3==1)&&((a2==1)&&((a23==1)&&(((a16==11)&&(((a17==2)&&((a9==7)&&((input==1)&&((a5==6)||((a5==4)||(a5==5))))))&&(a19==1)))&&(a21==10))))))){ + a7 = 0; + a1 = 12; + a11 = 1; + a16 = 7; + a13 = 1; + a5 = 4; + return -1; + } else if((((((((a11==1)&&(a2==1))||!(a28==1))&&(a20==1))&&(a21==10))&&(a16==9))&&((a17==2)&&((a6==1)&&(((((((((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&(input==6))&&(a1==14))&&(a28==1))&&(a23==1))&&(a2==1))&&(a19==2)))))){ + a9 = 10; + a5 = 5; + a1 = 12; + a3 = 1; + a28 = 1; + a16 = 7; + a19 = 5; + a23 = 1; + return 23; + } else if((((a11==1)&&((!(a27==1)&&((a17==2)&&((a16==8)&&((a19==4)&&(input==3)))))&&!(a20==1)))&&((a9==9)&&(!(a4==1)&&((((((!(a13==1)||(a28==1))&&(a1==14))&&!(a26==1))&&(a21==10))&&(a5==6))||!(a12==1)))))){ + a14 = 0; + a5 = 5; + a11 = 1; + a20 = 1; + a1 = 12; + a21 = 12; + a19 = 1; + a26 = 0; + return 26; + } else if(((((a19==5)&&((a9==8)&&((a27==1)||((a16==11)&&((a3==1)&&(a12==1))))))&&(a1==13))&&(((((a5==4)&&((a21==12)&&((a17==2)&&(!(a8==1)&&((input==3)&&(a20==1))))))&&!(a26==1))&&!(a26==1))&&(a13==1)))){ + a9 = 7; + a1 = 12; + a28 = 1; + a19 = 1; + a16 = 7; + a23 = 1; + a21 = 10; + a3 = 1; + return -1; + } else if((((!(a14==1)&&(!(a7==1)&&((((((((a16==10)&&((a9==11)&&((a1==14)&&(a5==6))))&&(a19==5))&&(a21==12))||((a21==10)&&((a19==1)&&((((a1==12)&&(a5==4))&&(a9==7))&&(a16==11)))))||((((a16==11)&&(((a5==5)&&(a1==12))&&(a9==7)))&&(a19==1))&&(a21==10)))&&(input==5))&&!(a7==1))))&&(a3==1))&&((a17==2)&&((!(a20==1)&&(!(a4==1)&&(a23==1)))&&!(a24==1))))){ + if((a25==1)){ + a7 = 1; + a16 = 7; + a9 = 7; + a29 = 1; + a20 = 1; + a25 = 1; + a19 = 2; + a1 = 12; + a5 = 5; + a21 = 10; + }else{ + a16 = 11; + a5 = 6; + a22 = 0; + a21 = 10; + a19 = 1; + a1 = 14; + a9 = 9; + a3 = 0; + a18 = 1; + } + return -1; + } else if((((!(a8==1)&&((a23==1)&&(a6==1)))&&(a1==12))&&((!(a14==1)&&(((((a13==1)&&(((a21==12)&&(((a16==10)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6))))&&(a17==2)))&&!(a8==1)))&&(a19==1))&&(a9==10))&&(a11==1)))&&(a20==1)))){ + a6 = 1; + a5 = 4; + a3 = 1; + a28 = 1; + a9 = 7; + a16 = 7; + a21 = 10; + return -1; + } else if((((a7==1)||(((a7==1)||((a1==12)&&((((a17==2)&&((a20==1)&&((a6==1)&&(a21==11))))&&(a12==1))&&(a5==5))))||(a4==1)))&&((a3==1)&&(((a9==7)&&(((a16==7)&&(input==6))&&(a19==3)))&&!(a26==1))))){ + a19 = 1; + a5 = 4; + a7 = 0; + a21 = 10; + a18 = 0; + return -1; + } else if((((a23==1)&&(((((a19==5)&&(((a13==1)||(a24==1))&&(a9==7)))&&(a21==12))||(a7==1))&&(a16==9)))&&((a28==1)&&(((((((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&(a1==13))&&(a17==2))&&!(a27==1))&&(a20==1))&&!(a7==1))))){ + a1 = 12; + a19 = 1; + a16 = 7; + a27 = 0; + a23 = 1; + a21 = 10; + a14 = 0; + a5 = 4; + return -1; + } else if((((((!(a11==1)||(((!(a20==1)&&(a11==1))||(a7==1))&&(a19==5)))&&(a16==7))&&(a1==13))&&(a5==5))&&((!(a18==1)&&(((a13==1)&&((((a17==2)&&(input==1))&&(a21==10))&&(a9==11)))&&!(a27==1)))&&(a3==1)))){ + a1 = 12; + a9 = 7; + a20 = 1; + a0 = 0; + a5 = 4; + a19 = 1; + a24 = 0; + a18 = 0; + return -1; + } else if((((a9==9)&&((((((a18==1)&&(!(a12==1)&&((a16==11)&&((a12==1)&&!(a11==1)))))&&!(a23==1))&&(a14==1))&&(a18==1))&&(a1==13)))&&(((a19==5)&&(((a20==1)&&((input==1)&&(a5==6)))&&(a21==11)))&&(a17==2)))){ + a16 = 7; + a21 = 10; + a5 = 5; + a1 = 14; + a2 = 0; + a9 = 8; + a19 = 1; + a25 = 1; + a15 = 1; + return -1; + } else if(((((!(a26==1)&&(((a28==1)&&((a1==14)&&((a17==2)&&((!(a20==1)&&((((input==5)&&((a5==4)||(a5==5)))&&(a23==1))&&(a16==8)))&&(a23==1)))))&&!(a24==1)))&&(a19==3))&&(a9==9))&&(((a28==1)&&(a21==12))||(a8==1)))){ + a25 = 1; + a20 = 1; + a1 = 13; + a21 = 10; + a5 = 6; + a3 = 0; + a16 = 7; + a9 = 10; + a19 = 1; + return -1; + } else if(((!(a3==1)&&(!(a23==1)&&((((a9==8)&&(a11==1))&&!(a11==1))&&!(a28==1))))&&(((a16==7)&&(((((((!(a20==1)&&(input==5))&&(a7==1))&&(a21==11))&&(a8==1))&&(a19==1))&&(a1==14))&&(a5==4)))&&(a17==2)))){ + a1 = 12; + a0 = 1; + a21 = 10; + a12 = 0; + a9 = 9; + a5 = 5; + a23 = 0; + a20 = 1; + return -1; + } else if((((((a16==10)&&((a12==1)&&(((a9==7)&&(input==5))&&(a5==4))))&&!(a24==1))&&(a17==2))&&((a26==1)||((a2==1)&&((((a1==14)&&(((a26==1)||((a12==1)&&!(a0==1)))&&(a21==11)))&&!(a20==1))&&(a19==4)))))){ + a5 = 6; + a18 = 1; + a9 = 8; + a26 = 1; + a21 = 12; + a19 = 3; + a16 = 7; + return 21; + } else if(((!(a11==1)&&((a19==2)&&((((a9==7)&&(((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&!(a12==1)))&&(a1==14))&&!(a2==1))))&&((a14==1)&&(!(a23==1)&&(!(a11==1)&&(((a17==2)&&((a16==8)&&(!(a20==1)&&(a12==1))))&&(a21==10))))))){ + a1 = 12; + a29 = 1; + a21 = 12; + a4 = 1; + a19 = 5; + a20 = 1; + a5 = 4; + a24 = 1; + return -1; + } else if(((((((!(a7==1)&&((((a23==1)&&(a2==1))&&(a11==1))&&(a17==2)))&&(a16==10))&&(a19==2))||!(a11==1))||!(a3==1))&&((a1==13)&&((a21==12)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&!(a0==1))&&(a9==8))&&!(a20==1)))))){ + a19 = 5; + a9 = 9; + a20 = 1; + a21 = 10; + a27 = 1; + a29 = 1; + a16 = 11; + a5 = 6; + a8 = 1; + return 25; + } else if(((((a18==1)||(((a24==1)||((((a19==2)&&(a23==1))&&(a16==9))&&(a21==12)))&&(a9==7)))&&(a1==12))&&(((((a12==1)&&(((a11==1)&&((a5==5)&&(input==4)))&&!(a26==1)))&&!(a8==1))&&(a17==2))&&(a20==1)))){ + a24 = 0; + a21 = 10; + a26 = 0; + a1 = 13; + a9 = 10; + a16 = 7; + a8 = 0; + return -1; + } else if(((((a23==1)&&((a6==1)&&((!(a4==1)&&(((a9==7)&&(!(a26==1)&&((input==1)&&(a1==12))))&&!(a7==1)))&&(a21==12))))&&!(a20==1))&&((a5==5)&&((a17==2)&&((((a28==1)&&(a16==9))||(a27==1))&&(a19==4)))))){ + if((a4==1)){ + a9 = 10; + a21 = 10; + a1 = 14; + a24 = 1; + a16 = 7; + a10 = 0; + a20 = 1; + a19 = 1; + a0 = 1; + }else{ + a20 = 1; + a19 = 1; + a16 = 7; + a5 = 6; + a13 = 0; + a27 = 1; + a21 = 10; + a0 = 1; + } + return 25; + } else if(((((a17==2)&&(!(a27==1)&&((((a11==1)&&((a20==1)&&(input==6)))&&(a3==1))&&(a12==1))))&&(a21==12))&&((a0==1)||(((((((a16==10)&&(a12==1))&&(a5==5))||!(a12==1))&&(a9==8))&&(a19==5))&&(a1==12))))){ + a16 = 7; + a21 = 10; + a1 = 14; + a5 = 6; + a28 = 1; + a13 = 1; + a9 = 10; + a0 = 0; + a19 = 4; + return 25; + } else if((((a13==1)&&((a17==2)&&((((a9==7)&&(((a3==1)&&((a21==11)&&((a19==4)&&((input==3)&&((a5==4)||(a5==5))))))&&!(a20==1)))&&!(a4==1))&&!(a7==1))))&&(((!(a0==1)&&((a16==10)&&(a3==1)))&&(a1==12))||!(a3==1)))){ + a21 = 10; + a20 = 1; + a12 = 0; + a16 = 7; + a1 = 14; + a25 = 0; + a14 = 1; + a9 = 11; + a5 = 5; + a19 = 1; + return -1; + } else if(((((!(a4==1)&&((a21==10)&&((((a19==2)&&((a3==1)&&(a3==1)))||(a24==1))&&(a11==1))))&&(a16==10))||(a8==1))&&((a1==12)&&(!(a20==1)&&((((input==4)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(a17==2))&&!(a14==1)))))){ + a7 = 1; + a1 = 14; + a10 = 1; + a9 = 9; + a16 = 9; + a21 = 11; + a19 = 3; + a5 = 6; + a15 = 0; + return -1; + } else if((((!(a20==1)&&((a17==2)&&((a18==1)||(((a2==1)||(a4==1))||(a7==1)))))&&(a16==8))&&(((a21==10)&&((!(a8==1)&&((a19==5)&&(((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==1))&&!(a4==1))))&&!(a14==1)))&&(a1==14)))){ + a9 = 9; + a3 = 1; + a5 = 5; + a16 = 7; + a23 = 1; + a13 = 1; + a1 = 13; + a20 = 1; + a19 = 2; + return 25; + } else if((((((!(a20==1)&&(((a28==1)&&(a9==10))&&(a28==1)))||!(a23==1))&&(a19==4))||(a7==1))&&((a6==1)&&((((a5==6)&&((a21==11)&&(((a16==7)&&((input==1)&&(a1==13)))&&!(a4==1))))&&(a17==2))&&(a3==1))))){ + a16 = 10; + a20 = 1; + a19 = 2; + a24 = 0; + a9 = 9; + a18 = 0; + a14 = 0; + return 21; + } else if(((((!(a26==1)&&((a19==2)&&(((a6==1)&&(a5==4))||(a7==1))))&&(a1==14))&&(a17==2))&&(!(a0==1)&&(((!(a7==1)&&((!(a18==1)&&(((input==6)&&(a16==8))&&(a21==12)))&&(a9==8)))&&(a20==1))&&(a6==1))))){ + a19 = 1; + a18 = 0; + a13 = 1; + a9 = 9; + a7 = 0; + a16 = 10; + return 25; + } else if(((((a19==2)&&((((!(a13==1)||((a0==1)||(a2==1)))&&!(a27==1))&&(a16==9))&&(a5==6)))&&(a17==2))&&((a21==10)&&((a1==13)&&((!(a18==1)&&((((a9==10)&&(input==3))&&(a2==1))&&!(a20==1)))&&!(a7==1)))))){ + if((a28==1)){ + a20 = 1; + a2 = 0; + a4 = 1; + a1 = 12; + a28 = 0; + a19 = 1; + a16 = 7; + a9 = 11; + }else{ + a5 = 4; + a20 = 1; + a16 = 7; + a19 = 1; + a29 = 0; + a27 = 1; + a11 = 0; + } + return -1; + } else if((((a19==3)&&(a3==1))&&((!(a14==1)&&((((!(a27==1)&&(!(a4==1)&&(((((a23==1)&&((((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7))))&&(input==1)))&&(a13==1))&&!(a20==1))&&(a17==2))))&&(a21==10))&&(a1==13))&&!(a27==1)))&&(a16==7)))){ + a16 = 10; + a20 = 1; + a19 = 2; + a5 = 5; + a23 = 1; + a9 = 10; + a12 = 1; + a8 = 0; + return 25; + } else if((((a21==11)&&(((a19==4)&&((a20==1)&&((((a9==11)&&(input==1))&&(a1==12))&&(a17==2))))&&(a28==1)))&&((a28==1)&&((((((!(a4==1)&&(a2==1))&&(a5==4))||(a7==1))||(a4==1))&&!(a27==1))&&(a16==11))))){ + a9 = 7; + a13 = 1; + a16 = 7; + a21 = 10; + a19 = 1; + a7 = 0; + a8 = 0; + return -1; + } else if(((!(a3==1)||(((((a12==1)&&(a23==1))&&(a16==11))&&(a21==10))||(a0==1)))&&((a9==9)&&((a17==2)&&((!(a20==1)&&(!(a18==1)&&((!(a0==1)&&(((a5==6)&&(input==5))&&!(a24==1)))&&(a19==2))))&&(a1==13)))))){ + a20 = 1; + a19 = 5; + a0 = 1; + a9 = 11; + a16 = 10; + a3 = 0; + a10 = 0; + a5 = 4; + return -1; + } else if(((((a11==1)&&((((a21==11)&&((a17==2)&&(a6==1)))&&!(a24==1))&&(a11==1)))&&(a3==1))&&(((((a16==10)&&(((((((a1==14)&&(a5==5))&&(a9==11))&&(a19==4))||(((a9==11)&&((a5==6)&&(a1==14)))&&(a19==4)))||(((a9==7)&&((a1==12)&&(a5==4)))&&(a19==5)))&&(input==1)))&&!(a7==1))&&!(a14==1))&&(a20==1)))){ + a9 = 7; + a14 = 0; + a19 = 1; + a21 = 10; + a1 = 12; + a16 = 7; + a5 = 4; + a28 = 1; + a7 = 0; + return -1; + } else if((((a1==13)&&((a9==11)&&((a12==1)&&((a5==4)&&((((!(a14==1)&&(a11==1))&&!(a27==1))&&!(a24==1))&&(a21==12))))))&&(((((((input==4)&&(a20==1))&&(a16==11))&&(a23==1))&&!(a8==1))&&(a19==5))&&(a17==2)))){ + a1 = 12; + a24 = 0; + a2 = 1; + a16 = 7; + a21 = 10; + a19 = 1; + a9 = 7; + a14 = 0; + return -1; + } else if((((a17==2)&&(((a19==5)&&(((a6==1)&&((a21==11)&&((a20==1)&&((((a1==12)&&(input==1))&&!(a24==1))&&(a6==1)))))&&(a5==6)))&&(a9==8)))&&((((!(a27==1)&&(a28==1))&&!(a24==1))&&(a16==8))||!(a11==1)))){ + a9 = 9; + a5 = 5; + a16 = 7; + a21 = 10; + a3 = 1; + a1 = 13; + a19 = 2; + a18 = 0; + a23 = 1; + return 25; + } else if(((((((!(a18==1)&&((a9==8)&&((a19==2)&&((a12==1)&&!(a14==1)))))&&(a12==1))&&!(a18==1))&&(a2==1))&&(a1==13))&&((((a20==1)&&((a16==9)&&((a21==10)&&((a5==6)&&(input==6)))))&&(a17==2))&&!(a24==1)))){ + a16 = 10; + a23 = 1; + a1 = 12; + a11 = 1; + a18 = 0; + return 25; + } else if((((a21==10)&&((a13==1)&&((a19==3)&&((a12==1)&&((!(a7==1)&&((input==1)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8)))))&&!(a26==1))))))&&((a20==1)&&(((a17==2)&&(((a1==13)&&((a13==1)&&(a13==1)))||!(a2==1)))&&(a16==9))))){ + a21 = 11; + a5 = 4; + a1 = 12; + a2 = 1; + a9 = 11; + a19 = 4; + a24 = 0; + a0 = 0; + a16 = 8; + return 25; + } else if(((((a17==2)&&((a27==1)||((((((a13==1)&&!(a14==1))||(a4==1))&&(a12==1))&&!(a0==1))&&(a16==7))))&&(a9==7))&&((a21==12)&&(((a1==12)&&(!(a20==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a19==3))))&&(a3==1))))){ + a13 = 1; + a21 = 10; + a19 = 1; + a27 = 0; + a20 = 1; + a5 = 4; + a26 = 0; + return -1; + } else if(((((((a1==14)&&(!(a20==1)&&(a23==1)))&&(a17==2))||!(a11==1))||(a14==1))&&((a13==1)&&((((a21==12)&&((a16==8)&&((a19==3)&&((a6==1)&&((input==1)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5))))))))&&(a3==1))&&!(a18==1))))){ + a22 = 0; + a14 = 1; + a15 = 1; + a16 = 7; + a1 = 12; + a20 = 1; + a21 = 10; + a9 = 8; + a5 = 5; + a19 = 1; + return -1; + } else if((((((a21==12)&&((a19==3)&&((((a6==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3)))&&(a2==1))&&(a9==11))))&&(a17==2))&&(a16==8))&&((a20==1)&&((a14==1)||((!(a7==1)&&((a3==1)&&((a27==1)||(a3==1))))&&(a1==14)))))){ + a1 = 12; + a18 = 0; + a9 = 10; + a5 = 5; + a16 = 10; + a28 = 1; + return 25; + } else if((((a19==4)&&(((a21==11)&&(!(a20==1)&&(((a3==1)||(a27==1))||!(a11==1))))||(a26==1)))&&(((((((a1==12)&&((input==3)&&((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a5==4)&&(a9==11)))))&&!(a26==1))&&(a16==7))&&(a17==2))&&!(a8==1))&&!(a8==1)))){ + a21 = 12; + a9 = 7; + a5 = 5; + a11 = 1; + a0 = 0; + a3 = 1; + a20 = 1; + a16 = 11; + a1 = 13; + return 23; + } else if((((a19==5)&&((a21==12)&&((((((((input==4)&&(a9==10))&&!(a24==1))&&(a23==1))&&(a28==1))&&(a2==1))&&(a5==4))&&(a23==1))))&&(((a16==10)&&((a17==2)&&(((a3==1)||!(a23==1))&&(a1==12))))&&!(a20==1)))){ + a23 = 0; + a5 = 6; + a21 = 10; + a19 = 1; + a14 = 1; + a11 = 0; + a20 = 1; + a16 = 7; + a9 = 7; + return 22; + } else if(((((a21==10)&&((a19==3)&&(((!(a27==1)&&((a17==2)&&(!(a26==1)&&(((input==5)&&(a1==12))&&!(a8==1)))))&&!(a18==1))&&(a9==11))))&&(a16==9))&&((a5==4)&&(!(a20==1)&&(!(a3==1)||(!(a24==1)&&(a13==1))))))){ + if((a2==1)){ + a5 = 5; + a4 = 1; + a16 = 8; + a2 = 0; + a19 = 5; + a20 = 1; + a21 = 11; + a10 = 0; + a1 = 14; + a9 = 10; + }else{ + a14 = 1; + a1 = 14; + a9 = 9; + a20 = 1; + a16 = 7; + a19 = 1; + a22 = 0; + a5 = 6; + a28 = 0; + } + return 21; + } else if((((a5==4)&&(!(a0==1)&&(!(a6==1)||(a3==1))))&&((((a9==10)&&((a19==5)&&((a11==1)&&((a17==2)&&((a1==12)&&((a21==12)&&((((input==6)&&!(a20==1))&&(a16==10))&&(a28==1))))))))&&!(a14==1))&&!(a7==1)))){ + a25 = 0; + a12 = 0; + a5 = 5; + a9 = 8; + a1 = 14; + a3 = 0; + a16 = 7; + return -1; + } else if((((((((a16==9)&&(((a17==2)&&(a3==1))||!(a6==1)))&&(a1==14))&&!(a8==1))&&(a2==1))||(a24==1))&&((a20==1)&&((a21==10)&&((a12==1)&&((((input==5)&&(((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))))&&(a3==1))&&(a19==4))))))){ + a21 = 11; + a4 = 0; + a19 = 2; + a9 = 10; + a5 = 6; + a13 = 1; + a7 = 0; + return 21; + } else if((((a9==8)&&(((a21==12)&&(((a19==1)&&(((!(a8==1)&&(a2==1))||(a7==1))&&(a16==8)))&&(a1==13)))&&!(a26==1)))&&(!(a14==1)&&(((a17==2)&&((a20==1)&&(!(a4==1)&&((input==3)&&((a5==4)||(a5==5))))))&&!(a14==1))))){ + a9 = 7; + a21 = 10; + a26 = 0; + a16 = 7; + a28 = 1; + a1 = 12; + a5 = 4; + a14 = 0; + return -1; + } else if((((((((!(a4==1)&&((a19==5)&&(input==5)))&&(a21==11))&&(a17==2))&&(a9==9))&&!(a4==1))&&(a1==13))&&(((a5==5)&&((a16==11)&&((!(a3==1)||(!(a6==1)||((a11==1)&&!(a18==1))))&&(a20==1))))||!(a3==1)))){ + a5 = 4; + a19 = 3; + a28 = 1; + a16 = 9; + a21 = 12; + a13 = 1; + a1 = 12; + a6 = 1; + return 21; + } else if((((a19==1)&&(!(a20==1)&&((((((((input==5)&&(a1==14))&&!(a7==1))&&(a9==10))&&(a13==1))&&(a5==5))&&(a6==1))&&(a21==10))))&&((((a4==1)||((a17==2)&&(!(a6==1)||(a28==1))))&&(a13==1))&&(a16==7)))){ + a9 = 7; + a23 = 1; + a8 = 0; + a5 = 4; + a2 = 1; + a20 = 1; + a1 = 12; + return -1; + } else if((((a17==2)&&((a21==10)&&((!(a26==1)&&((((a3==1)&&((((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5)))&&(input==5))&&(a16==7)))&&(a19==5))&&!(a26==1)))&&(a1==14))))&&((a26==1)||((a18==1)||(((a23==1)||(a4==1))&&(a20==1)))))){ + a19 = 4; + a6 = 1; + a1 = 13; + a5 = 4; + a13 = 1; + a9 = 11; + a21 = 12; + return 26; + } else if(((!(a24==1)&&((a3==1)&&(!(a27==1)&&((a28==1)&&(((a6==1)&&(a9==7))&&(a20==1))))))&&(((((a6==1)&&((((((a5==4)||(a5==5))&&(input==5))&&(a2==1))&&(a1==12))&&(a16==7)))&&(a21==11))&&(a19==4))&&(a17==2)))){ + a5 = 4; + a19 = 2; + a2 = 1; + a6 = 1; + a16 = 8; + a1 = 14; + a7 = 0; + a9 = 9; + return 22; + } else if((((((!(a6==1)||((a13==1)&&!(a27==1)))&&(a1==12))&&(a9==10))&&(a21==12))&&(((a11==1)&&(((((((((a5==5)||(a5==6))&&(input==3))&&(a23==1))&&!(a20==1))&&(a19==3))&&!(a27==1))&&!(a18==1))&&(a17==2)))&&(a16==9)))){ + a19 = 1; + a5 = 4; + a1 = 14; + a7 = 1; + a20 = 1; + a21 = 10; + a0 = 1; + a9 = 7; + a16 = 7; + return -1; + } else if((((((((a28==1)&&((a19==4)&&(!(a27==1)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==4)))))&&(a16==8))&&(a1==13))&&!(a14==1))&&(a23==1))&&((((a20==1)&&((!(a26==1)&&(a28==1))&&(a17==2)))&&(a21==12))||(a18==1)))){ + a1 = 12; + a16 = 7; + a0 = 0; + a21 = 10; + a19 = 1; + a9 = 7; + a2 = 1; + a5 = 4; + return -1; + } else if((((a19==4)&&((!(a4==1)&&(((!(a3==1)||(((a12==1)||(a0==1))&&!(a20==1)))&&(a28==1))&&(a1==13)))&&(a16==9)))&&((((a21==10)&&(!(a14==1)&&(!(a18==1)&&((input==6)&&(a9==8)))))&&(a17==2))&&(a5==4)))){ + if((a26==1)){ + a16 = 7; + a3 = 0; + a1 = 12; + a20 = 1; + a9 = 10; + a26 = 1; + a15 = 0; + a19 = 2; + }else{ + a16 = 7; + a20 = 1; + a5 = 5; + a21 = 12; + a1 = 12; + a28 = 0; + a27 = 1; + a4 = 1; + a19 = 2; + } + return 21; + } else if((((a5==4)&&((a17==2)&&((!(a14==1)&&(((a28==1)&&(a21==12))&&(a2==1)))||(a18==1))))&&((((a13==1)&&(!(a20==1)&&((a1==13)&&((a19==2)&&(!(a18==1)&&((a9==7)&&(input==4)))))))&&(a16==10))&&(a23==1)))){ + if((a27==1)){ + a29 = 1; + a1 = 12; + a16 = 7; + a9 = 10; + a5 = 6; + a21 = 10; + a22 = 1; + a20 = 1; + }else{ + a22 = 1; + a20 = 1; + a15 = 1; + a1 = 12; + a16 = 11; + a29 = 0; + a9 = 11; + a19 = 3; + a5 = 6; + a21 = 10; + } + return -1; + } else if((((a5==6)&&((a19==5)&&((((((a17==2)&&((a3==1)||(a4==1)))&&!(a20==1))||(a18==1))||(a27==1))&&(a1==12))))&&(((a9==8)&&((((a13==1)&&((a16==10)&&(input==5)))&&!(a14==1))&&(a2==1)))&&(a21==11)))){ + if((a15==1)){ + a15 = 1; + a5 = 4; + a16 = 9; + a19 = 1; + a13 = 0; + a21 = 12; + a9 = 11; + }else{ + a1 = 13; + a9 = 11; + a19 = 4; + a16 = 8; + a10 = 0; + a21 = 10; + a4 = 1; + a12 = 0; + } + return -1; + } else if((((((a16==9)&&((((a23==1)&&((a23==1)&&((a11==1)&&!(a0==1))))&&(a23==1))&&(a9==9)))&&!(a7==1))&&(a21==12))&&((a17==2)&&(((((((a5==5)||(a5==6))&&(input==3))&&(a19==4))&&(a2==1))&&(a1==12))&&(a20==1))))){ + a6 = 1; + a28 = 1; + a16 = 7; + a13 = 1; + a9 = 7; + a5 = 4; + a21 = 10; + a19 = 1; + return -1; + } else if(((!(a7==1)&&((a2==1)&&((a16==9)&&((((a17==2)&&(input==1))&&(a3==1))&&!(a14==1)))))&&(!(a26==1)&&(((a19==5)&&((a1==14)&&((((a0==1)||((a13==1)&&(a9==11)))&&(a5==4))&&(a20==1))))&&(a21==12))))){ + a21 = 10; + a28 = 1; + a1 = 12; + a9 = 7; + a16 = 7; + a19 = 1; + a11 = 1; + a3 = 1; + return -1; + } else if((((a1==13)&&(((a11==1)&&((a21==11)&&((a6==1)&&((((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a5==6)&&(a9==10))))&&(input==5)))))&&!(a18==1)))&&((a20==1)&&((((a14==1)||((((a13==1)&&(a19==2))&&(a17==2))||!(a11==1)))&&(a16==9))&&(a11==1))))){ + a9 = 11; + a23 = 1; + a11 = 1; + a5 = 5; + a3 = 1; + a1 = 14; + a21 = 12; + return 21; + } else if((((((((a16==9)&&(((a23==1)&&(((a5==4)&&((input==4)&&(a21==10)))&&(a17==2)))&&(a12==1)))&&(a1==13))&&(a9==11))&&(a6==1))&&(a12==1))&&(!(a12==1)||((((a2==1)&&!(a7==1))&&(a20==1))&&(a19==2))))){ + a1 = 12; + a18 = 0; + a9 = 7; + a28 = 1; + a19 = 1; + a8 = 0; + a16 = 7; + return -1; + } else if((((a19==5)&&((((a1==12)&&((a13==1)&&(a23==1)))||!(a28==1))&&(a17==2)))&&(((a5==6)&&((a23==1)&&((a21==11)&&(((!(a4==1)&&(((a16==9)&&(input==3))&&!(a20==1)))&&!(a14==1))&&(a11==1)))))&&(a9==9)))){ + if((a7==1)){ + a5 = 5; + a19 = 1; + a10 = 0; + a27 = 1; + a18 = 1; + a20 = 1; + a21 = 12; + a16 = 8; + a9 = 11; + }else{ + a25 = 1; + a9 = 11; + a23 = 0; + a22 = 0; + a19 = 4; + } + return 25; + } else if((((a19==4)&&((a9==8)&&(((((a2==1)&&(((a3==1)&&((a2==1)&&(a6==1)))||!(a12==1)))&&!(a14==1))&&(a5==5))&&!(a20==1))))&&((((((input==5)&&(a21==12))&&(a17==2))&&(a3==1))&&(a16==9))&&(a1==13)))){ + if((a16==9)){ + a20 = 1; + a19 = 1; + a5 = 4; + a2 = 0; + a21 = 10; + a16 = 7; + a3 = 0; + a9 = 9; + a26 = 1; + }else{ + a5 = 4; + a23 = 0; + a21 = 11; + a0 = 1; + a10 = 0; + a19 = 1; + a16 = 7; + a1 = 14; + } + return 22; + } else if((((a28==1)&&(((a21==11)&&((a17==2)&&(((((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a16==7))&&(a13==1))&&!(a0==1))))&&(a1==14)))&&(!(a13==1)||((a9==7)&&(!(a11==1)||((((a3==1)&&(a19==4))&&(a11==1))&&(a20==1))))))){ + a23 = 1; + a5 = 4; + a3 = 1; + a16 = 8; + a11 = 1; + a9 = 8; + return 23; + } else if(((((a21==12)&&(((((a23==1)&&(a19==5))&&!(a7==1))&&(a5==4))&&(a17==2)))&&(a16==8))&&((a9==8)&&(((a3==1)&&(((a13==1)&&((a11==1)&&(((input==5)&&(a1==14))&&!(a0==1))))&&(a20==1)))&&(a3==1))))){ + a1 = 13; + a2 = 1; + a21 = 10; + a19 = 2; + a9 = 9; + a12 = 1; + a27 = 0; + a16 = 7; + return 25; + } else if((((a16==9)&&((a1==12)&&(((((a13==1)&&(!(a2==1)||(a3==1)))||(a24==1))||!(a28==1))&&(a19==3))))&&((a28==1)&&(((((((input==4)&&((a5==4)||(a5==5)))&&(a13==1))&&(a17==2))&&(a20==1))&&(a21==10))&&(a9==8))))){ + a5 = 4; + a9 = 7; + a16 = 7; + a19 = 1; + a12 = 1; + a23 = 1; + return -1; + } else if(((!(a24==1)&&((a16==10)&&((((a19==5)&&((((a5==4)||(a5==5))&&(input==3))&&(a1==12)))&&!(a27==1))&&(a20==1))))&&(((a17==2)&&((a27==1)||(!(a11==1)||((a12==1)&&(((a21==11)&&(a6==1))||(a24==1))))))&&(a9==11)))){ + a19 = 1; + a5 = 4; + a18 = 0; + a16 = 7; + a12 = 1; + a9 = 7; + a14 = 0; + a21 = 10; + return -1; + } else if(((!(a8==1)&&((a1==12)&&(!(a18==1)&&(!(a24==1)&&((((input==5)&&((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4))))&&!(a0==1))&&!(a0==1))))))&&((((a16==11)&&((a18==1)||(((a3==1)&&!(a20==1))&&(a19==4))))&&(a17==2))&&(a21==10)))){ + a5 = 4; + a19 = 5; + a27 = 1; + a9 = 10; + a7 = 1; + a16 = 8; + a8 = 1; + a21 = 12; + return 22; + } else if((((a14==1)||((((a20==1)&&(((a3==1)&&(a21==12))&&(a17==2)))&&(a1==12))||(a7==1)))&&((a3==1)&&((a2==1)&&(((a3==1)&&(!(a8==1)&&((a19==4)&&((input==4)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))))&&(a16==11)))))){ + a0 = 0; + a19 = 1; + a5 = 4; + a14 = 0; + a9 = 7; + a3 = 1; + a16 = 7; + a21 = 10; + return -1; + } else if(((!(a28==1)||((a16==11)&&(((a27==1)||((((a6==1)&&(a13==1))&&!(a4==1))&&(a1==14)))&&(a9==7))))&&((a20==1)&&((!(a18==1)&&((a21==11)&&(!(a4==1)&&((a17==2)&&((input==4)&&((a5==5)||(a5==6)))))))&&(a19==4))))){ + a27 = 0; + a28 = 1; + a8 = 0; + a21 = 10; + a19 = 1; + a1 = 12; + a16 = 7; + a5 = 4; + return -1; + } else if((((((a16==10)&&(!(a8==1)&&((a2==1)&&((((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8))))&&(input==1)))))&&(a1==12))&&(a28==1))&&(!(a7==1)&&(((!(a20==1)&&((a3==1)&&((a21==11)&&((a17==2)&&(a13==1)))))&&(a19==2))&&!(a14==1))))){ + if((a12==1)){ + a9 = 10; + a29 = 0; + a15 = 0; + a20 = 1; + a16 = 7; + a5 = 6; + a21 = 10; + }else{ + a5 = 5; + a0 = 1; + a21 = 10; + a9 = 11; + a16 = 7; + a12 = 0; + a19 = 1; + a1 = 13; + a20 = 1; + a10 = 1; + } + return -1; + } else if((((((!(a14==1)&&((a5==4)&&((a20==1)&&(!(a8==1)&&((a9==9)&&(input==6))))))&&(a21==12))&&(a13==1))&&(a13==1))&&((((a1==13)&&(!(a23==1)||((a17==2)&&((a11==1)&&(a16==9)))))&&(a6==1))&&(a19==3)))){ + a18 = 0; + a27 = 0; + a19 = 2; + a28 = 1; + a1 = 14; + a9 = 10; + a21 = 10; + return 21; + } else if((((((a3==1)&&((a23==1)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==6))))&&(a16==10))&&!(a20==1))&&(((((!(a12==1)||((((a1==12)&&(a13==1))&&!(a7==1))||!(a2==1)))||!(a12==1))&&(a17==2))&&(a21==10))&&(a19==2)))){ + a13 = 0; + a5 = 5; + a16 = 7; + a20 = 1; + a8 = 1; + a9 = 7; + a12 = 0; + return 22; + } else if((((a18==1)||(((a9==7)&&((a16==8)&&(((a1==14)&&(a12==1))&&(a2==1))))||(a8==1)))&&(((a17==2)&&((a5==5)&&(!(a0==1)&&(((a20==1)&&(((input==6)&&(a21==10))&&(a2==1)))&&(a19==5)))))&&!(a18==1)))){ + a12 = 1; + a19 = 1; + a5 = 4; + a11 = 1; + a6 = 1; + a16 = 7; + a1 = 12; + return -1; + } else if((((a21==12)&&((a1==14)&&((!(a26==1)&&((a2==1)&&(((((((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6))))&&(input==1))&&(a17==2))&&!(a24==1))&&!(a7==1))))&&!(a4==1))))&&(!(a20==1)&&((a19==3)&&(((a12==1)&&!(a14==1))&&(a16==10)))))){ + a21 = 10; + a9 = 9; + a19 = 1; + a4 = 1; + a20 = 1; + a5 = 5; + a6 = 0; + a16 = 7; + return -1; + } else if(((((((((((a20==1)&&(((input==1)&&(((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))))&&(a3==1)))&&!(a8==1))&&!(a27==1))&&(a28==1))&&(a6==1))&&(a19==3))&&(a21==11))&&(a17==2))&&((((a6==1)&&(a1==12))&&!(a27==1))&&(a16==7)))){ + a23 = 1; + a16 = 8; + a19 = 4; + a5 = 4; + a9 = 11; + a13 = 1; + a24 = 0; + a21 = 10; + a1 = 14; + return 21; + } else if((((a21==10)&&((((a16==7)&&(((((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==5))&&(a12==1))&&!(a20==1))&&(a1==12)))&&!(a24==1))&&(a3==1)))&&((a28==1)&&((a19==2)&&((a2==1)&&(((a12==1)&&(a6==1))&&(a17==2))))))){ + a5 = 6; + a8 = 0; + a4 = 0; + a1 = 14; + a9 = 10; + return 23; + } else if((((a27==1)&&(!(a11==1)&&(((input==3)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&!(a6==1))))&&(((a20==1)&&(((a19==1)&&((((((a14==1)&&(a12==1))&&(a21==10))&&(a16==8))&&(a26==1))&&(a1==14)))&&(a17==2)))&&(a4==1)))){ + a5 = 6; + a13 = 0; + a3 = 0; + a11 = 0; + a9 = 8; + a1 = 13; + a16 = 11; + a19 = 2; + return 22; + } else if((((a28==1)&&((((a20==1)&&((input==3)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))))&&(a16==10))&&(a1==12)))&&((a23==1)&&((a12==1)&&(((a6==1)&&(!(a4==1)&&((((a13==1)&&(a17==2))&&(a21==11))&&(a19==5))))&&!(a27==1)))))){ + a21 = 10; + a9 = 7; + a7 = 0; + a16 = 7; + a2 = 1; + a19 = 1; + a5 = 4; + a13 = 1; + return -1; + } else if((((a19==2)&&(!(a20==1)&&((a16==8)&&(((a28==1)&&(a1==13))&&(a6==1)))))&&((a21==11)&&((a13==1)&&(!(a24==1)&&((((a12==1)&&((a28==1)&&((((a5==4)||(a5==5))&&(input==3))&&(a9==8))))&&(a2==1))&&(a17==2))))))){ + a14 = 0; + a16 = 7; + a9 = 7; + a6 = 1; + a19 = 1; + a1 = 12; + a5 = 4; + a28 = 1; + a21 = 10; + a20 = 1; + return -1; + } else if((((a4==1)||((a13==1)&&(((a5==5)&&((a16==11)&&(((a20==1)&&((a23==1)&&(a21==11)))&&(a1==12))))||!(a28==1))))&&((((((a19==1)&&((input==6)&&(a17==2)))&&(a9==9))&&!(a27==1))&&!(a0==1))&&!(a0==1)))){ + a3 = 1; + a16 = 7; + a21 = 10; + a5 = 4; + a12 = 1; + a9 = 7; + a23 = 1; + return -1; + } else if((((((!(a2==1)||(((a6==1)&&(a19==1))&&(a21==12)))&&(a13==1))&&(a16==11))&&(a20==1))&&((((((a12==1)&&((input==1)&&((((a5==5)&&(a1==13))&&(a9==7))||(((a9==11)&&((a5==6)&&(a1==12)))||(((a1==13)&&(a5==4))&&(a9==7))))))&&!(a14==1))&&(a6==1))&&(a17==2))&&(a3==1)))){ + a16 = 7; + a5 = 4; + a26 = 0; + a1 = 12; + a9 = 7; + a21 = 10; + a4 = 0; + a12 = 1; + return -1; + } else if((((a23==1)&&(!(a0==1)&&((a1==13)&&((a17==2)&&((a5==6)&&(input==5))))))&&(!(a8==1)&&((a19==2)&&((a20==1)&&((a9==10)&&(((((a16==7)&&((a12==1)&&(a6==1)))&&(a21==10))||(a4==1))&&(a23==1)))))))){ + a1 = 14; + a13 = 1; + a18 = 0; + a0 = 0; + a19 = 3; + a9 = 7; + return 25; + } else if((((((a9==10)&&((input==6)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a8==1))&&(a20==1))&&(((a27==1)||((a17==2)&&((a0==1)||((a16==9)&&((a21==10)&&(((((a3==1)||!(a11==1))&&(a19==4))||(a7==1))&&(a1==12)))))))||(a27==1)))){ + a19 = 1; + a3 = 1; + a5 = 4; + a13 = 1; + a23 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if((((a17==2)&&((a16==9)&&((a9==7)&&(((a1==12)&&((a19==4)&&((a13==1)&&(a2==1))))||(a26==1)))))&&((a21==10)&&(!(a18==1)&&((!(a27==1)&&((!(a20==1)&&(((a5==4)||(a5==5))&&(input==6)))&&(a12==1)))&&!(a4==1)))))){ + a19 = 1; + a9 = 11; + a16 = 7; + a22 = 0; + a5 = 6; + a1 = 13; + a20 = 1; + a12 = 0; + return -1; + } else if(((!(a18==1)&&((a16==7)&&(!(a4==1)&&((a19==4)&&((((((a1==13)&&(a5==5))&&(a9==11))||((a9==11)&&((a1==13)&&(a5==6))))||((a9==7)&&((a1==14)&&(a5==4))))&&(input==6))))))&&(((a6==1)&&((a17==2)&&((a21==10)&&((!(a20==1)&&((a2==1)||(a26==1)))||!(a2==1)))))||!(a13==1)))){ + a2 = 1; + a5 = 5; + a24 = 0; + a9 = 11; + a1 = 14; + a19 = 3; + a23 = 1; + return 21; + } else if(((((a14==1)||(!(a24==1)&&((a20==1)&&((a17==2)&&((a21==11)&&(a2==1))))))||!(a6==1))&&(((a2==1)&&((a16==11)&&(!(a4==1)&&((input==1)&&(((((a5==5)&&(a1==12))&&(a9==7))&&(a19==2))||(((((a5==6)&&(a1==14))&&(a9==11))&&(a19==1))||((a19==2)&&((a9==7)&&((a5==4)&&(a1==12))))))))))&&(a28==1)))){ + a21 = 10; + a3 = 1; + a6 = 1; + a1 = 12; + a19 = 1; + a23 = 1; + a9 = 7; + a5 = 4; + a16 = 7; + return -1; + } else if(((!(a20==1)&&((a1==13)&&((a19==2)&&(((a0==1)&&((a17==2)&&((a4==1)&&((input==1)&&((a5==5)||(a5==6))))))&&(a16==8)))))&&((a21==11)&&((a9==7)&&((a0==1)&&((a8==1)&&((a8==1)&&(!(a6==1)&&(a11==1))))))))){ + a19 = 1; + a20 = 1; + a16 = 7; + a21 = 12; + a5 = 4; + a8 = 1; + a26 = 1; + a22 = 1; + a9 = 11; + a1 = 12; + return 23; + } else if((((a23==1)&&(!(a20==1)&&((((a1==12)&&(((a5==5)||(a5==6))&&(input==3)))&&(a21==11))&&(a3==1))))&&((!(a3==1)||(((a19==5)&&((a17==2)&&((a16==10)&&((a9==11)&&((a11==1)&&!(a27==1))))))&&(a2==1)))||!(a23==1)))){ + a20 = 1; + a9 = 9; + a21 = 10; + a15 = 1; + a16 = 7; + a19 = 1; + a5 = 4; + a22 = 1; + a3 = 0; + return 23; + } else if((((a20==1)&&(((((((a4==1)||(!(a3==1)||((a5==4)&&(a3==1))))||!(a28==1))||!(a28==1))&&(a9==9))&&(a1==12))&&(a16==7)))&&((a17==2)&&((a21==11)&&(!(a24==1)&&((a12==1)&&((input==4)&&(a19==4)))))))){ + a7 = 0; + a21 = 10; + a9 = 7; + a4 = 0; + a6 = 1; + a19 = 1; + return -1; + } else if(((((a20==1)&&((a1==14)&&((a28==1)&&(((a17==2)&&((a9==7)&&(input==5)))&&(a19==1)))))&&(a5==4))&&(!(a2==1)||((a11==1)&&(!(a8==1)&&((((a3==1)&&(!(a23==1)||(a2==1)))&&(a21==10))&&(a16==10))))))){ + a2 = 1; + a21 = 11; + a1 = 12; + a16 = 7; + a9 = 8; + a19 = 3; + a18 = 0; + a7 = 0; + return -1; + } else if((((a18==1)||((a27==1)||(((a9==10)&&((a5==4)&&(a11==1)))&&!(a8==1))))&&((a17==2)&&(((((((((a1==14)&&(input==6))&&(a21==10))&&!(a20==1))&&(a19==4))&&(a16==8))&&!(a27==1))&&(a28==1))&&!(a7==1))))){ + a19 = 5; + a14 = 0; + a20 = 1; + a9 = 9; + a13 = 1; + a16 = 7; + a5 = 5; + a24 = 0; + return 26; + } else if(((((a9==9)&&((!(a24==1)&&((a13==1)&&(a16==10)))&&(a20==1)))&&(a3==1))&&(!(a18==1)&&((((((((((a5==5)||(a5==6))&&(input==6))&&!(a0==1))&&(a19==1))&&(a21==11))&&(a17==2))&&(a1==12))&&(a12==1))&&!(a24==1))))){ + if((a15==1)){ + a9 = 10; + a5 = 4; + a27 = 0; + a16 = 8; + a4 = 0; + a20 = 0; + a21 = 10; + a1 = 14; + a19 = 4; + a6 = 1; + }else{ + a19 = 2; + a1 = 14; + a3 = 1; + a16 = 9; + a9 = 10; + a5 = 4; + a28 = 1; + a12 = 1; + } + return 21; + } else if((((a17==2)&&((a19==4)&&((a21==11)&&((((((a13==1)&&(a5==5))||!(a6==1))&&(a20==1))&&(a11==1))&&!(a7==1)))))&&((((((a1==12)&&((input==1)&&(a16==7)))&&(a6==1))&&(a3==1))&&!(a24==1))&&(a9==9)))){ + a9 = 7; + a19 = 1; + a0 = 0; + a5 = 4; + a21 = 10; + a8 = 0; + a18 = 0; + return -1; + } else if((((a19==3)&&((a9==10)&&(((a12==1)&&((((a17==2)&&((input==5)&&((a5==4)||(a5==5))))&&(a23==1))&&(a20==1)))&&!(a14==1))))&&(((a16==10)&&(!(a0==1)&&((((a11==1)&&(a21==10))&&(a23==1))||!(a13==1))))&&(a1==14)))){ + a5 = 4; + a9 = 7; + a19 = 1; + a28 = 1; + a16 = 7; + a1 = 12; + a18 = 0; + return -1; + } else if((((a16==9)&&((((!(a11==1)||((a12==1)&&!(a24==1)))&&(a19==2))&&!(a20==1))&&(a21==11)))&&((a1==12)&&((((a28==1)&&((a11==1)&&(((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==3))&&(a6==1))))&&!(a8==1))&&(a17==2))))){ + if((a5==5)){ + a21 = 10; + a19 = 1; + a16 = 7; + a24 = 1; + a20 = 1; + a5 = 5; + a22 = 1; + a9 = 9; + }else{ + a5 = 4; + a21 = 10; + a25 = 1; + a19 = 1; + a9 = 11; + a1 = 14; + a16 = 7; + a20 = 1; + a15 = 0; + } + return -1; + } else if((((a13==1)&&(!(a8==1)&&((a21==11)&&((((a16==9)&&(((input==3)&&(((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))))&&(a19==2)))&&(a11==1))&&(a3==1)))))&&(!(a13==1)||(((a1==14)&&(!(a20==1)&&((a17==2)&&(a12==1))))||(a14==1))))){ + if((a1==12)){ + a22 = 1; + a14 = 1; + a5 = 5; + a20 = 1; + a16 = 11; + a2 = 0; + a19 = 1; + a21 = 10; + a9 = 8; + }else{ + a9 = 9; + a1 = 12; + a21 = 10; + a22 = 0; + a19 = 3; + a25 = 0; + a16 = 10; + a5 = 5; + a8 = 1; + } + return -1; + } else if(((!(a18==1)&&(!(a0==1)&&((a27==1)||(!(a24==1)&&((a19==1)&&(a23==1))))))&&(((a17==2)&&(!(a20==1)&&(((a16==10)&&((((((a9==11)&&((a5==6)&&(a1==12)))||(((a5==4)&&(a1==13))&&(a9==7)))||((a9==7)&&((a5==5)&&(a1==13))))&&(input==6))&&(a6==1)))&&(a21==11))))&&(a23==1)))){ + a5 = 4; + a1 = 13; + a9 = 10; + a16 = 9; + a19 = 2; + a20 = 1; + a18 = 1; + a4 = 1; + a25 = 0; + return 26; + } else if((((a2==1)&&((a6==1)&&(!(a27==1)&&((a1==14)&&((a19==4)&&(((!(a0==1)&&(((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4)))&&(input==4)))&&(a3==1))&&(a17==2)))))))&&(!(a20==1)&&(!(a0==1)&&((a21==12)&&((a23==1)&&(a16==7))))))){ + a4 = 0; + a9 = 7; + a21 = 10; + a20 = 1; + a6 = 1; + a19 = 1; + a1 = 12; + a5 = 4; + return -1; + } else if((((a11==1)&&((a21==10)&&(!(a11==1)||((a11==1)&&(((a19==1)&&((a12==1)&&((a11==1)||(a8==1))))&&(a9==11))))))&&((a17==2)&&(!(a24==1)&&(((((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a1==13))&&!(a20==1))&&(a16==8)))))){ + a0 = 0; + a20 = 1; + a7 = 0; + a18 = 0; + a1 = 12; + a19 = 4; + a5 = 6; + return 25; + } else if(((((!(a23==1)||(!(a24==1)&&((!(a28==1)||((a19==2)&&(a23==1)))&&(a17==2))))&&(a21==11))&&(a1==13))&&(((((a13==1)&&((((input==3)&&((a5==4)||(a5==5)))&&(a9==8))&&(a20==1)))&&!(a8==1))&&(a16==11))&&!(a7==1)))){ + a19 = 1; + a28 = 1; + a18 = 0; + a21 = 10; + a16 = 7; + a5 = 4; + a23 = 1; + a9 = 7; + a1 = 12; + return -1; + } else if(((((a1==14)&&((((a21==12)&&(((!(a13==1)||(a28==1))&&(a16==7))&&(a23==1)))&&(a17==2))||(a7==1)))&&(a5==4))&&((a12==1)&&(((a2==1)&&(((a9==9)&&((input==1)&&(a19==3)))&&(a13==1)))&&(a20==1))))){ + a12 = 1; + a18 = 0; + a21 = 10; + a0 = 0; + a19 = 1; + a9 = 7; + a1 = 12; + return -1; + } else if(((((!(a7==1)&&((!(a4==1)&&(((a17==2)&&((a1==13)&&(a11==1)))&&(a9==7)))&&(a19==5)))&&(a20==1))&&(a21==11))&&((!(a0==1)&&((a13==1)&&((a23==1)&&((a13==1)&&((input==1)&&(a16==9))))))&&(a5==4)))){ + a9 = 10; + a12 = 1; + a2 = 1; + a4 = 0; + a21 = 10; + a5 = 5; + a1 = 12; + return 25; + } else if(((((a21==10)&&((((a20==1)&&(((((input==1)&&(((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))))&&!(a8==1))&&(a23==1))&&(a2==1)))&&(a11==1))&&(a19==2)))&&(a17==2))&&(((((a2==1)||!(a28==1))&&!(a27==1))&&(a16==7))&&(a1==14)))){ + a5 = 6; + a9 = 8; + a19 = 4; + a8 = 0; + a13 = 1; + a1 = 13; + return 21; + } else if((((((a19==5)&&((((a23==1)&&((input==3)&&((a5==5)||(a5==6))))&&(a2==1))&&(a21==10)))&&(a6==1))&&(a9==11))&&((a16==10)&&((((!(a20==1)&&((a18==1)||(!(a11==1)||(a23==1))))||(a27==1))&&(a1==13))&&(a17==2))))){ + if((a3==1)){ + a20 = 1; + a9 = 8; + a25 = 0; + a19 = 2; + a5 = 4; + a23 = 0; + a1 = 12; + a16 = 7; + }else{ + a9 = 10; + a18 = 1; + a5 = 4; + a20 = 1; + a11 = 0; + a16 = 7; + a19 = 1; + a25 = 0; + } + return 25; + } else if((((a19==5)&&(((a9==8)&&((a0==1)&&(!(a3==1)&&((a5==6)&&(input==6)))))&&(a21==11)))&&((((!(a23==1)&&(!(a6==1)&&(!(a23==1)&&(((a13==1)&&(a17==2))&&(a16==11)))))&&(a0==1))&&(a1==13))&&(a20==1)))){ + a9 = 10; + a19 = 2; + a16 = 7; + a2 = 0; + a24 = 1; + a5 = 5; + a0 = 1; + a21 = 10; + a1 = 12; + return -1; + } else if(((((((!(a8==1)&&(a12==1))||(a4==1))||(a8==1))&&(a21==12))&&(a17==2))&&((a16==10)&&((a9==8)&&((((!(a4==1)&&(((a13==1)&&(!(a20==1)&&(input==4)))&&!(a14==1)))&&(a1==14))&&(a19==1))&&(a5==6)))))){ + a21 = 10; + a1 = 12; + a16 = 7; + a20 = 1; + a5 = 5; + a15 = 0; + a9 = 11; + a19 = 2; + a29 = 0; + a2 = 0; + return 21; + } else if((((a1==14)&&(!(a4==1)&&((a18==1)||((((a23==1)&&(a19==3))&&!(a0==1))||!(a11==1)))))&&(!(a20==1)&&((a21==11)&&((!(a7==1)&&((a17==2)&&((a16==8)&&((input==4)&&(((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a5==6)&&(a9==10))))))))&&(a12==1)))))){ + a28 = 1; + a19 = 1; + a5 = 4; + a2 = 1; + a1 = 12; + a21 = 10; + a16 = 7; + a20 = 1; + a9 = 7; + a13 = 1; + return -1; + } else if(((((a11==1)&&(((!(a3==1)||((a27==1)||(a12==1)))||(a18==1))&&(a17==2)))||(a4==1))&&((a9==7)&&(((((a16==11)&&((((input==6)&&((a5==5)||(a5==6)))&&(a21==10))&&(a20==1)))&&(a23==1))&&(a19==2))&&(a1==13))))){ + a2 = 1; + a5 = 4; + a1 = 12; + a6 = 1; + a16 = 7; + a8 = 0; + a19 = 1; + return -1; + } else if((((a1==12)&&((a16==7)&&((a3==1)&&((((input==1)&&(((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))))&&(a17==2))&&!(a18==1)))))&&((a19==3)&&(!(a20==1)&&(((a14==1)||((!(a3==1)||((a21==10)&&(a11==1)))&&!(a0==1)))||!(a13==1)))))){ + a26 = 0; + a0 = 0; + a18 = 0; + a9 = 7; + a5 = 4; + a20 = 1; + a19 = 1; + return -1; + } else if((((((a9==9)&&(((a23==1)&&((a1==14)&&(a12==1)))&&(a5==5)))||!(a13==1))&&(a16==10))&&(((((a3==1)&&((((a6==1)&&((a19==5)&&(input==6)))&&!(a7==1))&&!(a27==1)))&&!(a20==1))&&(a17==2))&&(a21==11)))){ + a9 = 11; + a21 = 10; + a20 = 1; + a19 = 1; + a22 = 0; + a14 = 1; + a16 = 7; + a25 = 0; + return -1; + } else if((((a19==2)&&(((a17==2)&&((((a18==1)||((!(a3==1)||((a2==1)&&!(a7==1)))&&(a16==8)))&&(a21==10))&&!(a20==1)))&&(a1==13)))&&((a9==11)&&(!(a24==1)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a2==1))&&(a12==1)))))){ + a2 = 1; + a1 = 12; + a3 = 1; + a9 = 7; + a5 = 4; + a16 = 7; + a20 = 1; + a19 = 1; + return -1; + } else if((((a2==1)&&((((((a9==9)&&(!(a8==1)&&(((input==3)&&(a1==12))&&(a19==5))))&&(a5==4))&&(a16==7))&&(a3==1))&&!(a27==1)))&&(((a0==1)||((a20==1)&&((a21==12)&&((a17==2)&&(a28==1)))))&&!(a27==1)))){ + a28 = 1; + a27 = 0; + a21 = 10; + a9 = 7; + a13 = 1; + a19 = 1; + return -1; + } else if((((((a2==1)&&((a17==2)&&(((a21==12)&&((!(a18==1)&&(((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4)))&&(input==4)))&&(a20==1)))&&(a23==1))))&&(a16==7))&&(a19==2))&&(((a28==1)&&((a1==14)&&((a3==1)&&(a6==1))))&&!(a0==1)))){ + a9 = 7; + a1 = 12; + a11 = 1; + a5 = 4; + a24 = 0; + a21 = 10; + a2 = 1; + a19 = 1; + return -1; + } else if((((((a16==7)&&((!(a11==1)||((a20==1)&&((a17==2)&&(!(a11==1)||((a18==1)||((a19==3)&&((a3==1)&&(a5==5))))))))&&(a9==8)))&&!(a8==1))&&(a1==13))&&((((input==4)&&(a21==11))&&!(a8==1))&&!(a18==1)))){ + a28 = 1; + a9 = 7; + a21 = 10; + a1 = 12; + a14 = 0; + a27 = 0; + a19 = 1; + a5 = 4; + return -1; + } else if((((a9==7)&&((((a19==3)&&((a28==1)||(a4==1)))&&!(a18==1))&&(a17==2)))&&(!(a20==1)&&((!(a24==1)&&((a1==13)&&(((a12==1)&&((((input==3)&&((a5==4)||(a5==5)))&&(a21==10))&&!(a26==1)))&&(a16==9))))&&(a23==1))))){ + a15 = 0; + a19 = 2; + a20 = 1; + a29 = 0; + a22 = 0; + a5 = 6; + a9 = 11; + a16 = 7; + a1 = 12; + return -1; + } else if((((a9==10)&&(((a16==8)&&((a20==1)&&(((a24==1)||((a3==1)&&(((a19==1)&&((a3==1)&&(a5==4)))&&(a6==1))))||(a18==1))))&&(a21==10)))&&((a23==1)&&((!(a0==1)&&((a17==2)&&(input==4)))&&(a1==13))))){ + a4 = 0; + a1 = 12; + a8 = 0; + a18 = 0; + a16 = 7; + a9 = 7; + return -1; + } else if((((!(a18==1)&&(((!(a0==1)&&(!(a26==1)&&((a9==11)&&(((input==6)&&(a20==1))&&(a16==7)))))&&(a23==1))&&(a19==5)))&&(a21==11))&&(((((a1==14)&&(!(a27==1)&&(a11==1)))||!(a28==1))&&(a5==5))&&(a17==2)))){ + a3 = 1; + a16 = 8; + a4 = 0; + a19 = 3; + a9 = 10; + a21 = 12; + a5 = 4; + a2 = 1; + return 25; + } else if((((a20==1)&&(!(a14==1)&&((a21==11)&&((a16==11)&&(((input==4)&&(a17==2))&&(a9==8))))))&&((!(a4==1)&&(((a7==1)||(((((a23==1)&&(a11==1))||(a8==1))||!(a11==1))&&(a19==4)))&&(a1==14)))&&(a5==5)))){ + a4 = 0; + a1 = 12; + a9 = 7; + a19 = 1; + a5 = 4; + a21 = 10; + a16 = 7; + a7 = 0; + a18 = 0; + return -1; + } else if(((((((!(a0==1)&&((a19==3)&&((a12==1)&&(((input==3)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(a12==1)))))&&(a20==1))&&(a1==13))&&(a16==10))&&(a17==2))&&(!(a8==1)&&(!(a28==1)||((a21==12)&&((a23==1)||!(a6==1))))))){ + a5 = 4; + a16 = 7; + a19 = 1; + a28 = 1; + a21 = 10; + a11 = 1; + a13 = 1; + a1 = 12; + a9 = 7; + return -1; + } else if((((((((((a9==9)&&((input==1)&&(a16==8)))&&(a1==14))&&(a17==2))&&!(a20==1))&&!(a26==1))&&(a19==5))&&(a21==12))&&((!(a11==1)||(((((a5==4)&&(a13==1))||(a8==1))||!(a23==1))&&!(a7==1)))||!(a6==1)))){ + if((a22==1)){ + a19 = 1; + a15 = 1; + a0 = 1; + a1 = 12; + a2 = 0; + a16 = 7; + a21 = 10; + a9 = 10; + a20 = 1; + }else{ + a1 = 13; + a14 = 1; + a21 = 11; + a12 = 0; + a0 = 1; + a16 = 9; + a5 = 5; + } + return -1; + } else if(((((!(a20==1)&&((a6==1)&&((a19==5)&&((!(a27==1)&&((a9==11)&&(input==5)))&&!(a24==1)))))&&(a11==1))&&(a5==4))&&((a1==13)&&((a16==10)&&(!(a28==1)||((a21==10)&&(((a17==2)&&(a12==1))||(a7==1)))))))){ + a21 = 12; + a25 = 1; + a5 = 5; + a20 = 1; + a9 = 10; + a1 = 12; + a15 = 0; + a16 = 7; + a22 = 0; + return 23; + } else if((((((a9==10)&&(!(a13==1)||(((a23==1)&&(a21==10))&&(a20==1))))||(a14==1))&&!(a0==1))&&(!(a24==1)&&(((a16==8)&&((a19==5)&&((a23==1)&&((a1==13)&&((a17==2)&&(((a5==5)||(a5==6))&&(input==6)))))))&&!(a26==1))))){ + if((a23==1)){ + a20 = 0; + a16 = 7; + a5 = 6; + a21 = 12; + a19 = 2; + a6 = 1; + a28 = 1; + a27 = 0; + }else{ + a3 = 1; + a24 = 0; + a23 = 1; + a5 = 5; + a16 = 7; + a19 = 2; + a9 = 11; + } + return 26; + } else if(((!(a27==1)&&((a16==9)&&(!(a26==1)&&((a19==4)&&(((a21==11)&&((a9==9)&&(((a5==5)||(a5==6))&&(input==5))))&&(a3==1))))))&&(((((a1==12)&&((!(a28==1)||(a3==1))&&(a20==1)))&&(a17==2))||(a8==1))||!(a6==1)))){ + a20 = 0; + a16 = 8; + a13 = 1; + a9 = 8; + a5 = 5; + a6 = 1; + a8 = 0; + return 21; + } else if(((((a6==1)&&(!(a4==1)&&(((((a1==13)&&(!(a26==1)&&((a21==12)&&((input==5)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))))))&&!(a20==1))&&(a16==10))&&!(a26==1))))&&(a2==1))&&((a24==1)||((a17==2)&&((a12==1)&&(a19==5)))))){ + a5 = 5; + a16 = 7; + a28 = 0; + a20 = 1; + a21 = 10; + a22 = 0; + a9 = 8; + a3 = 0; + a19 = 1; + return -1; + } else if(((((!(a18==1)&&((a12==1)&&((a17==2)&&(((!(a0==1)&&((input==4)&&(a20==1)))&&(a21==10))&&!(a18==1)))))&&(a5==4))&&(a19==2))&&((((a27==1)||(((a9==8)&&(a2==1))&&(a1==14)))||(a7==1))&&(a16==9)))){ + a14 = 0; + a1 = 12; + a27 = 0; + a7 = 0; + a19 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if((((a1==12)&&((a16==11)&&((!(a18==1)&&((((a23==1)||(a27==1))&&(a28==1))&&(a23==1)))&&(a19==3))))&&(((a9==7)&&((a20==1)&&((a12==1)&&((a17==2)&&((a11==1)&&(((a5==5)||(a5==6))&&(input==6)))))))&&(a21==11)))){ + a23 = 1; + a16 = 7; + a19 = 1; + a21 = 10; + a12 = 1; + a5 = 4; + return -1; + } else if(((((a19==5)&&((a21==12)&&((a20==1)&&(a11==1))))||(a0==1))&&(((a23==1)&&(((((((((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11)))&&(input==4))&&(a16==7))&&(a17==2))&&!(a26==1))&&(a1==12))&&!(a0==1))&&!(a0==1)))&&!(a27==1)))){ + a14 = 0; + a5 = 4; + a12 = 1; + a21 = 10; + a8 = 0; + a16 = 8; + a1 = 14; + a9 = 9; + return 22; + } else if(((((a11==1)&&(((a16==7)&&((((a20==1)&&(a28==1))&&(a21==10))&&(a28==1)))||(a7==1)))||!(a12==1))&&((!(a8==1)&&(((((input==4)&&((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4))))&&(a1==12))&&(a17==2))&&(a19==3)))&&!(a26==1)))){ + a1 = 13; + a9 = 10; + a5 = 6; + a27 = 0; + a18 = 0; + a19 = 5; + return 23; + } else if(((((a1==12)&&((a23==1)&&((a24==1)||(!(a27==1)&&((a13==1)&&(((a16==11)&&(a6==1))||!(a6==1)))))))&&(a21==10))&&((a17==2)&&((a19==4)&&((a20==1)&&((a5==4)&&(!(a24==1)&&((a9==9)&&(input==6))))))))){ + a9 = 7; + a23 = 1; + a26 = 0; + a16 = 7; + a19 = 1; + a12 = 1; + return -1; + } else if((((!(a27==1)&&(((((a2==1)&&(((a1==13)&&(((a19==5)&&(input==1))&&(a17==2)))&&(a16==11)))&&(a5==6))&&(a21==11))&&(a20==1)))&&(a3==1))&&((((!(a24==1)&&(a12==1))&&(a9==8))&&(a12==1))||(a18==1)))){ + a3 = 1; + a21 = 12; + a24 = 0; + a9 = 10; + a1 = 12; + a19 = 3; + return 25; + } return calculate_output23(input); + } + + int calculate_output23(int input) { + if(((!(a27==1)&&((a17==2)&&(!(a24==1)&&(((a1==14)&&((((a5==5)||(a5==6))&&(input==1))&&(a21==12)))&&(a13==1)))))&&((((((a0==1)||(((a16==9)&&(a3==1))&&!(a26==1)))&&(a9==10))||(a18==1))&&(a19==4))&&(a20==1)))){ + a5 = 5; + a6 = 1; + a1 = 12; + a21 = 11; + a12 = 1; + a16 = 10; + a9 = 8; + return 21; + } else if((((a28==1)&&((((((((a6==1)||!(a2==1))&&(a21==11))&&(a19==2))&&(a11==1))&&(a1==12))&&(a20==1))&&(a17==2)))&&((a23==1)&&(!(a24==1)&&(((a16==10)&&((a9==7)&&((a5==6)&&(input==4))))&&(a13==1)))))){ + a12 = 1; + a16 = 7; + a19 = 1; + a21 = 10; + a5 = 4; + a2 = 1; + return -1; + } else if((((a19==1)&&(((((a6==1)&&(a21==11))&&(a2==1))||(a7==1))&&(a9==9)))&&((a16==8)&&((((a13==1)&&((!(a24==1)&&((((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&(a1==12))&&!(a18==1)))&&(a17==2)))&&!(a14==1))&&(a20==1))))){ + a14 = 0; + a11 = 1; + a1 = 14; + a9 = 11; + a5 = 6; + a19 = 2; + a16 = 10; + a3 = 1; + a21 = 10; + return 26; + } else if((((((a16==8)&&((!(a18==1)&&((!(a4==1)&&((((a5==4)||(a5==5))&&(input==6))&&(a21==11)))&&(a17==2)))&&(a12==1)))&&(a19==5))&&!(a20==1))&&((!(a28==1)||(!(a14==1)&&((a1==12)&&(!(a26==1)&&(a6==1)))))&&(a9==8)))){ + a11 = 1; + a21 = 12; + a28 = 1; + a1 = 13; + a16 = 7; + a19 = 2; + a20 = 1; + a5 = 4; + a27 = 0; + a9 = 11; + return 22; + } else if((((a9==11)&&((a21==11)&&(((((a17==2)&&(!(a7==1)&&((a6==1)||(a24==1))))&&!(a7==1))&&!(a7==1))&&(a6==1))))&&((a1==12)&&(((a19==3)&&(((a20==1)&&((input==4)&&((a5==5)||(a5==6))))&&!(a26==1)))&&(a16==10))))){ + a27 = 0; + a19 = 1; + a21 = 10; + a2 = 1; + a16 = 7; + a18 = 0; + a5 = 4; + a9 = 7; + return -1; + } else if(((!(a2==1)&&((a21==11)&&((a18==1)&&((a17==2)&&(((a11==1)&&!(a6==1))&&(a1==14))))))&&(((a5==4)&&(((a19==5)&&((!(a12==1)&&(((input==1)&&(a20==1))&&!(a2==1)))&&(a16==8)))&&(a27==1)))&&(a9==7)))){ + a23 = 0; + a21 = 10; + a1 = 12; + a9 = 11; + a19 = 1; + a16 = 7; + a3 = 0; + a5 = 5; + return -1; + } else if(((((((a9==10)&&(!(a8==1)&&(((input==3)&&(a17==2))&&(a3==1))))&&(a1==13))&&(a19==2))&&!(a8==1))&&(((((((a16==7)&&((a11==1)||(a26==1)))&&(a20==1))&&(a3==1))&&(a5==5))||!(a23==1))&&(a21==10)))){ + a2 = 1; + a5 = 4; + a27 = 0; + a1 = 12; + a9 = 7; + a19 = 1; + a24 = 0; + return -1; + } else if((((a2==1)&&((!(a20==1)&&((((a24==1)||((a19==2)&&((a1==12)&&(((a6==1)&&(a17==2))&&!(a14==1)))))&&(a9==11))&&(a21==12)))&&!(a0==1)))&&((a13==1)&&((!(a14==1)&&(((a5==4)||(a5==5))&&(input==3)))&&(a16==10))))){ + a19 = 1; + a16 = 7; + a25 = 1; + a20 = 1; + a5 = 4; + a24 = 1; + a1 = 13; + a21 = 10; + a8 = 1; + a9 = 9; + return 21; + } else if((((a20==1)&&(((a3==1)&&!(a18==1))&&!(a24==1)))&&(((a1==12)&&(((a19==2)&&(((((a12==1)&&((a11==1)&&((input==4)&&(((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))))))&&!(a0==1))&&!(a4==1))&&(a17==2)))&&(a21==12)))&&(a16==11)))){ + a16 = 7; + a26 = 0; + a19 = 1; + a14 = 0; + a9 = 7; + a5 = 4; + a18 = 0; + a21 = 10; + return -1; + } else if((((a5==5)&&((((a1==14)&&((a16==9)&&(!(a14==1)&&(!(a27==1)&&((a12==1)&&(!(a27==1)&&((input==5)&&(a17==2))))))))&&(a21==12))&&(a20==1)))&&((((a24==1)||((a12==1)&&(a9==9)))||(a14==1))&&(a19==2)))){ + a1 = 13; + a23 = 1; + a19 = 4; + a5 = 4; + a9 = 11; + a21 = 10; + a16 = 11; + a24 = 0; + a12 = 1; + return 22; + } else if((((a19==3)&&(!(a4==1)&&((!(a14==1)&&(((input==5)&&(a21==10))&&(a9==10)))&&(a17==2))))&&(!(a2==1)||(((a20==1)&&(((a3==1)&&((((a12==1)||!(a6==1))&&(a5==5))&&(a16==8)))&&(a1==12)))||(a26==1))))){ + a5 = 4; + a21 = 12; + a19 = 4; + a1 = 14; + a16 = 9; + a28 = 1; + a6 = 1; + a9 = 8; + a12 = 1; + return 23; + } else if((((a23==1)&&(((a19==3)&&((a1==14)&&(!(a14==1)&&((((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))&&(input==6))&&(a3==1)))))&&(a17==2)))&&(!(a23==1)||((a16==9)&&(!(a14==1)&&((a21==10)&&((a18==1)||((a28==1)&&(a20==1))))))))){ + a5 = 5; + a26 = 0; + a2 = 1; + a16 = 10; + a1 = 12; + a21 = 11; + a9 = 9; + return 25; + } else if((((!(a13==1)||(((a17==2)&&((!(a20==1)&&((a27==1)||((a21==10)&&((a1==12)&&(a6==1)))))&&(a11==1)))&&(a19==3)))&&(a16==8))&&((a6==1)&&(!(a18==1)&&((((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10)))&&(input==6))&&!(a18==1)))))){ + a20 = 1; + a19 = 2; + a23 = 1; + a9 = 7; + a8 = 0; + a18 = 0; + a5 = 5; + a21 = 11; + a16 = 7; + return 25; + } else if(((((a19==4)&&((a17==2)&&(((!(a2==1)||(((a5==4)&&(a28==1))&&!(a20==1)))&&(a1==13))&&!(a27==1))))&&!(a0==1))&&(!(a0==1)&&(((a11==1)&&((a13==1)&&(((input==3)&&(a21==12))&&(a9==7))))&&(a16==9))))){ + a19 = 1; + a26 = 1; + a0 = 1; + a9 = 8; + a21 = 10; + a22 = 1; + return -1; + } else if((((a28==1)&&(((((a19==1)&&(a2==1))&&(a21==10))&&(a5==4))||!(a11==1)))&&(((a12==1)&&((a16==7)&&(((((((input==3)&&!(a20==1))&&(a1==13))&&(a28==1))&&!(a26==1))&&!(a8==1))&&(a9==8))))&&(a17==2)))){ + a12 = 1; + a20 = 1; + a1 = 12; + a11 = 1; + a9 = 7; + a23 = 1; + return -1; + } else if((((a20==1)&&((a5==6)&&(((a28==1)||(a26==1))&&(a21==10))))&&((((((a12==1)&&(!(a0==1)&&(!(a14==1)&&(!(a8==1)&&(!(a14==1)&&((a9==9)&&(input==1)))))))&&(a19==3))&&(a17==2))&&(a16==8))&&(a1==13)))){ + a14 = 0; + a1 = 12; + a9 = 7; + a16 = 7; + a13 = 1; + a19 = 1; + a27 = 0; + a5 = 4; + return -1; + } else if((((!(a20==1)&&(((a19==2)&&((a6==1)&&((a21==11)&&((((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(input==6)))))&&!(a27==1)))&&(a16==8))&&((a17==2)&&((a1==13)&&((a8==1)||(((!(a4==1)&&(a3==1))&&!(a8==1))&&!(a4==1))))))){ + a5 = 4; + a19 = 1; + a21 = 10; + a9 = 7; + a16 = 7; + a20 = 1; + a1 = 12; + a24 = 0; + a27 = 0; + a2 = 1; + return -1; + } else if(((!(a2==1)||(((a1==14)&&(((((a3==1)&&(a28==1))&&(a17==2))&&!(a26==1))&&(a19==2)))&&(a21==10)))&&(((!(a24==1)&&((((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==6))&&(a16==7))&&!(a27==1)))&&(a20==1))&&!(a14==1)))){ + a19 = 1; + a9 = 7; + a2 = 1; + a11 = 1; + a23 = 1; + a1 = 12; + a5 = 4; + return -1; + } else if((((((((a21==10)&&(((a23==1)&&((a12==1)&&(((a5==5)||(a5==6))&&(input==3))))&&!(a24==1)))&&(a12==1))&&!(a0==1))&&(a20==1))&&(a17==2))&&(((a1==13)&&(((a6==1)&&((a3==1)&&(a9==8)))&&(a19==5)))&&(a16==10)))){ + a18 = 0; + a12 = 1; + a19 = 2; + a28 = 1; + a21 = 12; + a5 = 4; + return 21; + } else if(((!(a27==1)&&((((a21==12)&&((a6==1)&&((a2==1)&&((a20==1)&&((a16==7)&&(a6==1))))))||(a0==1))&&(a28==1)))&&(((a19==4)&&((((input==1)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5))))&&(a17==2))&&(a1==12)))&&!(a7==1)))){ + a21 = 11; + a9 = 7; + a6 = 1; + a5 = 5; + a16 = 9; + a19 = 2; + a12 = 1; + return 25; + } else if((((!(a0==1)&&((((((input==4)&&(a9==11))&&(a21==10))&&(a1==12))&&(a23==1))&&(a5==5)))&&(a6==1))&&((a11==1)&&((a12==1)&&((a20==1)&&((a17==2)&&((a19==3)&&(((a28==1)&&(a6==1))&&(a16==11))))))))){ + a9 = 7; + a0 = 0; + a5 = 4; + a13 = 1; + a7 = 0; + a19 = 1; + a16 = 7; + return -1; + } else if(((((!(a27==1)&&(((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a9==11)))&&(a20==1))&&(a16==10))&&(((((a27==1)||(!(a12==1)||((a19==5)&&(((!(a12==1)||(a23==1))&&(a2==1))||(a4==1)))))&&(a1==13))&&(a17==2))&&(a21==12)))){ + a6 = 1; + a4 = 0; + a1 = 12; + a20 = 0; + a21 = 11; + a5 = 5; + a19 = 4; + a16 = 8; + a9 = 8; + a2 = 1; + return 21; + } else if((((a19==3)&&((a21==11)&&((a4==1)||(((a9==8)&&((a2==1)&&(a16==7)))&&!(a24==1)))))&&((a1==14)&&((!(a24==1)&&(((!(a4==1)&&((a17==2)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5))))&&(a20==1))&&!(a14==1)))&&(a3==1))))){ + a16 = 8; + a18 = 0; + a9 = 10; + a1 = 12; + a5 = 5; + a19 = 2; + a23 = 1; + return 25; + } else if(((((((a17==2)&&(((a16==9)&&((a12==1)||!(a6==1)))&&(a19==3)))||(a0==1))||!(a3==1))||!(a13==1))&&((((a9==11)&&(((a20==1)&&(((input==1)&&(a21==11))&&(a1==13)))&&!(a24==1)))&&(a5==6))&&!(a8==1)))){ + if((a19==1)){ + a20 = 0; + a19 = 2; + a9 = 10; + a16 = 8; + a1 = 14; + a28 = 1; + a2 = 1; + a12 = 1; + a21 = 10; + }else{ + a9 = 8; + a16 = 10; + a1 = 14; + a0 = 0; + a13 = 1; + a21 = 10; + a8 = 0; + } + return 21; + } else if(((((a21==10)&&(!(a3==1)||((a13==1)&&((((a1==12)&&((a8==1)||(((a28==1)&&(a13==1))&&(a17==2))))&&!(a26==1))&&(a16==10)))))&&!(a20==1))&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a19==4))&&(a3==1))&&(a9==10)))){ + a16 = 7; + a9 = 8; + a19 = 2; + a7 = 1; + a10 = 1; + a5 = 6; + a8 = 1; + a20 = 1; + return -1; + } else if((((a21==12)&&((a23==1)&&(!(a24==1)&&((a9==7)&&(a28==1)))))&&((a16==7)&&((a13==1)&&(((a20==1)&&(((((((a1==14)&&(input==6))&&(a12==1))&&(a5==5))&&(a19==1))&&(a2==1))&&(a13==1)))&&(a17==2)))))){ + a3 = 1; + a21 = 10; + a1 = 13; + a0 = 0; + a5 = 6; + a16 = 9; + a9 = 8; + a12 = 1; + return 22; + } else if((((a17==2)&&((((a21==10)&&(!(a26==1)&&((!(a26==1)&&(((input==3)&&(((a19==4)&&((a9==7)&&((a5==5)&&(a1==12))))||(((a19==3)&&((a9==11)&&((a5==6)&&(a1==14))))||((((a5==4)&&(a1==12))&&(a9==7))&&(a19==4)))))&&(a20==1)))&&!(a26==1))))&&(a6==1))&&!(a14==1)))&&(((a27==1)||(a3==1))&&(a16==10)))){ + a12 = 1; + a24 = 0; + a5 = 5; + a21 = 12; + a14 = 0; + a19 = 2; + a1 = 13; + a9 = 8; + return 21; + } else if((((((a21==10)&&(!(a26==1)&&(!(a14==1)&&((a16==10)&&((a11==1)&&((a11==1)&&(((a1==14)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))&&(a20==1))))))))&&(a9==9))&&(a17==2))&&(((a27==1)||((a19==3)&&(a11==1)))&&!(a7==1)))){ + a5 = 6; + a9 = 7; + a12 = 1; + a19 = 2; + a3 = 1; + a6 = 1; + return 21; + } else if(((((a21==12)&&(!(a7==1)&&(((a11==1)&&((a19==4)&&(((a5==4)||(a5==5))&&(input==4))))&&!(a27==1))))&&(a16==10))&&(((!(a20==1)&&((!(a23==1)||((!(a14==1)&&(a2==1))&&(a9==10)))&&(a17==2)))&&(a1==12))||!(a2==1)))){ + a19 = 1; + a20 = 1; + a21 = 10; + a16 = 7; + a12 = 0; + a1 = 14; + a5 = 4; + a26 = 1; + a29 = 0; + return -1; + } else if((((a9==9)&&((a21==10)&&((a16==10)&&((a1==12)&&((a14==1)||(!(a27==1)&&(a23==1)))))))&&((((a17==2)&&((a13==1)&&((!(a4==1)&&(((input==3)&&((a5==4)||(a5==5)))&&!(a24==1)))&&(a12==1))))&&(a20==1))&&(a19==2)))){ + a5 = 4; + a14 = 0; + a9 = 7; + a11 = 1; + a19 = 1; + a13 = 1; + a16 = 7; + return -1; + } else if(((((a21==10)&&(((!(a27==1)&&((a12==1)&&((a17==2)&&((a16==11)&&(input==4)))))&&(a20==1))&&(a13==1)))&&(a1==13))&&(!(a28==1)||((a9==10)&&(((((a13==1)&&(a5==4))||(a7==1))&&(a23==1))&&(a19==2)))))){ + a16 = 7; + a12 = 1; + a11 = 1; + a7 = 0; + a1 = 12; + a9 = 7; + a19 = 1; + return -1; + } else if((((!(a11==1)||(((a0==1)||((a16==10)&&(((a28==1)&&(a21==10))&&(a6==1))))&&(a19==2)))||!(a6==1))&&((a20==1)&&((((a1==12)&&((a3==1)&&(((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5)))&&(input==6))))&&(a17==2))&&!(a8==1))))){ + a9 = 7; + a23 = 1; + a7 = 0; + a16 = 7; + a5 = 4; + a19 = 1; + a12 = 1; + return -1; + } else if(((((((a13==1)&&!(a8==1))&&!(a8==1))&&!(a7==1))||(a27==1))&&((((a1==13)&&(((((((input==6)&&(((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))))&&!(a14==1))&&(a17==2))&&(a28==1))&&(a19==4))&&(a21==10)))&&(a20==1))&&(a16==9)))){ + a21 = 12; + a16 = 7; + a1 = 12; + a11 = 1; + a5 = 4; + a19 = 3; + a2 = 1; + a9 = 7; + a28 = 1; + return 25; + } else if((((a12==1)&&(((((a19==3)&&((!(a7==1)&&(((a9==10)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))&&(a17==2)))&&(a21==11)))&&(a13==1))&&(a16==8))&&!(a8==1)))&&(!(a13==1)||((a1==12)&&(((a3==1)&&!(a20==1))||!(a23==1)))))){ + a9 = 8; + a21 = 12; + a19 = 1; + a20 = 1; + a1 = 14; + a13 = 1; + a12 = 1; + a5 = 6; + return 21; + } else if(((((a18==1)||((a21==12)&&(!(a4==1)&&(a2==1))))&&(a16==9))&&((!(a14==1)&&((((a17==2)&&(((((a9==11)&&((input==6)&&((a5==5)||(a5==6))))&&(a11==1))&&(a19==2))&&(a6==1)))&&!(a20==1))&&(a1==14)))&&(a13==1)))){ + if((a22==1)){ + a16 = 7; + a1 = 13; + a9 = 10; + a21 = 11; + a11 = 0; + a5 = 4; + a8 = 1; + a15 = 0; + }else{ + a5 = 6; + a19 = 1; + a9 = 7; + a16 = 7; + a1 = 13; + a22 = 1; + a21 = 10; + a18 = 1; + a20 = 1; + } + return -1; + } else if(((((a16==7)&&(!(a7==1)&&((((a11==1)&&(a1==12))||!(a12==1))&&(a23==1))))||(a4==1))&&((a19==1)&&((((((((input==3)&&(a17==2))&&(a9==9))&&!(a14==1))&&(a21==11))&&(a20==1))&&(a5==5))&&!(a4==1))))){ + a4 = 0; + a0 = 0; + a19 = 5; + a9 = 7; + a21 = 12; + a1 = 14; + a5 = 6; + a12 = 1; + return 21; + } else if((((a21==11)&&((((a1==12)&&((input==5)&&((a5==5)||(a5==6))))&&(a16==10))&&(a17==2)))&&((a9==9)&&((!(a8==1)&&(!(a12==1)||(((a19==2)&&((!(a18==1)&&((a2==1)&&(a28==1)))||(a7==1)))&&!(a8==1))))&&!(a20==1))))){ + a16 = 7; + a0 = 1; + a25 = 0; + a5 = 6; + a21 = 10; + a28 = 0; + a9 = 7; + return 26; + } else if((((((a12==1)&&(((((input==1)&&((a5==5)||(a5==6)))&&(a17==2))&&(a19==5))&&(a16==8)))&&(a12==1))&&(a9==7))&&((a21==10)&&((!(a24==1)&&((a1==13)&&((a20==1)&&((a28==1)&&((a23==1)&&!(a26==1))))))||(a0==1))))){ + a21 = 12; + a5 = 6; + a1 = 14; + a6 = 1; + a7 = 0; + a9 = 8; + a19 = 1; + a0 = 0; + return 21; + } else if((((((a6==1)&&((a17==2)&&((a18==1)||((a13==1)&&(a3==1)))))&&(a21==12))&&(a1==13))&&(!(a20==1)&&((a19==5)&&((a16==8)&&(!(a27==1)&&(((a6==1)&&(((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4)))&&(input==1)))&&!(a18==1)))))))){ + a11 = 0; + a16 = 7; + a19 = 1; + a23 = 0; + a5 = 6; + a9 = 11; + a20 = 1; + return 21; + } else if((((a19==5)&&(!(a6==1)||(((a28==1)&&(a11==1))&&(a9==8))))&&((((((a12==1)&&(((a16==8)&&((a3==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&!(a0==1))))&&(a17==2)))&&!(a7==1))&&(a21==12))&&!(a20==1))&&(a1==14)))){ + a19 = 3; + a5 = 5; + a1 = 13; + a4 = 1; + a29 = 1; + a6 = 0; + a16 = 10; + a20 = 1; + return -1; + } else if(((((a20==1)&&(((input==4)&&((a5==5)||(a5==6)))&&!(a8==1)))&&(a21==10))&&((((a19==5)&&((((((((a2==1)&&(a1==13))||!(a3==1))||!(a2==1))&&(a9==11))&&(a12==1))&&(a16==11))||!(a2==1)))&&(a3==1))&&(a17==2)))){ + a23 = 1; + a9 = 7; + a1 = 12; + a16 = 7; + a5 = 4; + a6 = 1; + a13 = 1; + a19 = 1; + return -1; + } else if(((!(a20==1)&&(((a21==11)&&(((((a27==1)||(!(a7==1)&&(a13==1)))&&(a17==2))&&!(a26==1))&&(a1==13)))||(a26==1)))&&((a9==11)&&((((a5==5)&&(((input==4)&&(a16==8))&&(a19==3)))&&(a6==1))&&(a23==1))))){ + a21 = 10; + a16 = 7; + a1 = 12; + a19 = 1; + a5 = 4; + a23 = 1; + a20 = 1; + a7 = 0; + a0 = 0; + a9 = 7; + return -1; + } else if(((((a21==10)&&(((a3==1)&&(((a19==2)&&(a3==1))&&(a3==1)))||(a8==1)))&&(a1==14))&&(!(a7==1)&&((a16==7)&&((((a17==2)&&(!(a0==1)&&((input==5)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))))&&(a23==1))&&(a20==1)))))){ + a3 = 1; + a1 = 13; + a19 = 4; + a5 = 4; + a6 = 1; + a9 = 7; + a27 = 0; + return 21; + } else if(((!(a26==1)&&(((a17==2)&&((input==1)&&(a9==7)))&&(a3==1)))&&(((((a0==1)||(((((((a6==1)&&(a28==1))&&(a19==3))||!(a13==1))&&(a5==4))&&(a16==8))&&(a1==13)))&&!(a20==1))||(a27==1))&&(a21==12)))){ + a2 = 0; + a16 = 11; + a20 = 1; + a9 = 9; + a5 = 6; + a11 = 0; + a21 = 10; + a29 = 0; + return -1; + } else if((((a23==1)&&(!(a7==1)&&((a1==14)&&(((input==5)&&((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8))))&&(a19==1)))))&&((((((!(a14==1)&&(!(a7==1)&&((a23==1)||!(a6==1))))&&(a20==1))&&(a17==2))&&(a3==1))&&(a16==10))&&(a21==12)))){ + a28 = 1; + a18 = 0; + a1 = 12; + a19 = 3; + a6 = 1; + a16 = 9; + a5 = 4; + a9 = 9; + return 21; + } else if((((((((((((input==4)&&((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4))))&&(a28==1))&&(a20==1))&&!(a24==1))&&!(a26==1))&&(a21==11))&&(a17==2))&&(a1==14))&&(a16==10))&&((!(a13==1)||((a12==1)&&((a18==1)||(a13==1))))&&(a19==5)))){ + a9 = 7; + a5 = 4; + a8 = 0; + a19 = 1; + a16 = 7; + a6 = 1; + a21 = 10; + a1 = 12; + return -1; + } else if(((((((a3==1)&&((a13==1)&&(((a19==3)&&(((a28==1)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a0==1)))&&(a20==1))))&&(a17==2))&&(a1==13))&&(a21==10))&&((a9==10)&&((!(a28==1)||((a3==1)&&(a23==1)))&&(a16==11))))){ + a5 = 4; + a19 = 4; + a1 = 12; + a2 = 1; + a8 = 0; + a9 = 8; + a3 = 1; + return 21; + } else if(((((a17==2)&&((((a19==3)&&(!(a23==1)||((a6==1)&&(a11==1))))&&(a9==8))&&(a20==1)))&&(a1==14))&&(((a13==1)&&((!(a4==1)&&(((a28==1)&&((a21==12)&&(input==4)))&&(a28==1)))&&(a16==8)))&&(a5==4)))){ + a19 = 1; + a1 = 12; + a21 = 10; + a24 = 0; + a9 = 7; + a6 = 1; + a16 = 7; + a0 = 0; + return -1; + } else if((((a5==4)&&(((a1==14)&&((!(a0==1)&&(!(a2==1)||(a28==1)))&&(a19==2)))&&(a13==1)))&&((a9==11)&&(((((((a21==11)&&((a16==7)&&(input==4)))&&(a20==1))&&!(a8==1))&&(a23==1))&&(a13==1))&&(a17==2))))){ + a19 = 1; + a21 = 10; + a9 = 7; + a13 = 1; + a0 = 0; + a1 = 12; + a2 = 1; + return -1; + } else if((((a8==1)||((((a9==8)&&((a17==2)&&(a12==1)))||(a27==1))&&!(a18==1)))&&((a19==2)&&(((a21==12)&&(!(a27==1)&&((((a16==10)&&((a20==1)&&((input==6)&&((a5==4)||(a5==5)))))&&(a13==1))&&!(a0==1))))&&(a1==13))))){ + a5 = 5; + a7 = 0; + a19 = 4; + a21 = 10; + a2 = 1; + a3 = 1; + a16 = 7; + a1 = 14; + a9 = 7; + return 25; + } else if((((!(a26==1)&&(((a21==11)&&(((input==6)&&(a1==12))&&!(a14==1)))&&(a23==1)))&&(a3==1))&&((a2==1)&&(((((a19==4)&&((a16==7)&&((!(a11==1)||(a2==1))&&(a17==2))))&&(a20==1))&&(a9==10))&&(a5==6))))){ + a9 = 9; + a19 = 3; + a1 = 13; + a5 = 4; + a24 = 0; + a16 = 8; + a14 = 0; + return 21; + } else if(((!(a18==1)&&(!(a20==1)&&(((((a19==4)&&((input==4)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))&&(a1==13))&&(a21==11))&&!(a26==1))))&&(!(a23==1)||(((!(a2==1)||(((a3==1)&&(a2==1))&&!(a26==1)))&&(a16==8))&&(a17==2))))){ + a12 = 1; + a20 = 1; + a16 = 7; + a8 = 0; + a5 = 4; + a1 = 12; + a19 = 1; + a21 = 10; + a9 = 7; + return -1; + } else if(((((a19==3)&&(((a21==10)&&((!(a18==1)&&((a16==10)&&(((a5==4)||(a5==5))&&(input==3))))&&(a1==12)))&&(a6==1)))&&(a28==1))&&(!(a8==1)&&(((a9==8)&&((!(a20==1)&&((a2==1)&&(a12==1)))&&(a17==2)))&&(a28==1))))){ + a5 = 6; + a12 = 0; + a7 = 1; + a16 = 7; + a1 = 14; + a13 = 0; + a20 = 1; + a19 = 1; + return -1; + } else if(((((((a5==6)&&((a16==9)&&(!(a26==1)&&((a6==1)&&((a0==1)||((a1==12)&&(a28==1)))))))&&!(a8==1))&&(a19==4))&&(a9==9))&&(!(a27==1)&&((a21==10)&&((a17==2)&&(((a20==1)&&(input==5))&&!(a18==1))))))){ + if((a0==1)){ + a11 = 1; + a16 = 8; + a20 = 0; + a19 = 3; + a26 = 0; + a5 = 4; + a1 = 14; + }else{ + a9 = 10; + a21 = 12; + a7 = 0; + a16 = 10; + a13 = 1; + a5 = 5; + a19 = 3; + a1 = 13; + a24 = 0; + } + return 21; + } else if(((((((a1==13)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&!(a24==1)))&&(a28==1))&&(a9==9))&&!(a14==1))&&(!(a28==1)||(!(a27==1)&&(!(a20==1)&&(((a17==2)&&(((a19==3)&&((a12==1)&&(a21==12)))&&(a16==10)))&&(a13==1))))))){ + a18 = 1; + a19 = 4; + a21 = 10; + a7 = 1; + a1 = 14; + a20 = 1; + a5 = 6; + a14 = 1; + a9 = 11; + return 21; + } else if(((((a2==1)&&((((a3==1)&&((a1==13)&&(((a17==2)&&(input==5))&&(a12==1))))&&!(a7==1))&&(a9==8)))&&(a19==2))&&((a16==10)&&(!(a20==1)&&((a5==6)&&((!(a7==1)&&((a11==1)&&(a3==1)))&&(a21==10))))))){ + a28 = 0; + a5 = 5; + a19 = 1; + a12 = 0; + a20 = 1; + a16 = 9; + a1 = 12; + a15 = 0; + return 22; + } else if((((a5==5)&&(((a1==14)&&(((a11==1)&&(((((a9==10)&&(input==5))&&(a16==9))&&(a12==1))&&!(a18==1)))&&(a13==1)))&&(a17==2)))&&(((!(a23==1)||(!(a4==1)&&((a12==1)&&(a20==1))))&&(a21==12))&&(a19==5)))){ + a27 = 0; + a21 = 10; + a0 = 0; + a26 = 0; + a1 = 12; + return -1; + } else if((((((a1==12)&&((((a2==1)&&((a24==1)||((a20==1)&&(a2==1))))||!(a23==1))&&(a5==5)))&&(a19==5))&&(a17==2))&&(((a21==11)&&(!(a26==1)&&(!(a18==1)&&(((input==4)&&(a9==10))&&!(a0==1)))))&&(a16==10)))){ + a19 = 1; + a16 = 7; + a5 = 4; + a26 = 0; + a4 = 0; + a21 = 10; + a6 = 1; + a9 = 7; + return -1; + } else if(((((a5==4)&&(!(a8==1)&&((((a21==10)&&((a19==5)&&(input==1)))&&!(a18==1))&&(a11==1))))&&(a20==1))&&(((((!(a13==1)||(((a1==13)&&(a12==1))||(a0==1)))&&(a16==9))&&(a9==7))&&(a17==2))&&!(a18==1)))){ + a23 = 1; + a6 = 1; + a19 = 2; + a9 = 10; + a5 = 5; + a26 = 0; + a16 = 11; + a1 = 14; + return 26; + } else if((((a9==11)&&(((a16==9)&&(!(a7==1)&&(((((a11==1)&&((((input==3)&&(a5==4))&&(a21==10))&&!(a26==1)))&&(a20==1))&&!(a27==1))&&(a17==2))))&&!(a27==1)))&&((a19==4)&&(((a28==1)||!(a11==1))&&(a1==13))))){ + a4 = 0; + a16 = 7; + a1 = 12; + a9 = 7; + a18 = 0; + a3 = 1; + a19 = 1; + return -1; + } else if((((a20==1)&&(!(a4==1)&&(((a13==1)&&((((((input==3)&&(a21==11))&&!(a0==1))&&(a2==1))&&(a19==5))&&(a13==1)))&&!(a4==1))))&&(((a17==2)&&((((a1==14)&&(a2==1))&&(a5==5))&&(a16==7)))&&(a9==7)))){ + a24 = 0; + a21 = 12; + a9 = 10; + a12 = 1; + a16 = 8; + a19 = 3; + a4 = 0; + a1 = 12; + return 26; + } else if(((((a18==1)||(!(a20==1)&&((a16==10)&&((a27==1)||(!(a12==1)||((a17==2)&&(a2==1)))))))&&(a1==14))&&((((a21==10)&&((((input==3)&&((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11))))&&(a11==1))&&(a12==1)))&&(a19==4))&&!(a26==1)))){ + a26 = 1; + a19 = 1; + a1 = 13; + a7 = 1; + a10 = 1; + a20 = 1; + a9 = 8; + a16 = 7; + a5 = 6; + return -1; + } else if(((!(a28==1)||(!(a3==1)||(!(a2==1)||(((a5==6)&&((a9==10)&&(a2==1)))||(a4==1)))))&&((!(a0==1)&&((a20==1)&&((a21==11)&&((a17==2)&&((a19==2)&&(((input==3)&&(a16==8))&&(a1==14)))))))&&(a11==1)))){ + a6 = 1; + a5 = 4; + a19 = 1; + a8 = 0; + a9 = 7; + a3 = 1; + a16 = 7; + a21 = 10; + a1 = 12; + return -1; + } else if((((a1==13)&&(((a19==5)&&((((a16==9)&&(a12==1))&&(a28==1))&&(a17==2)))&&(a9==9)))&&(((((((a28==1)&&(!(a18==1)&&((input==5)&&((a5==4)||(a5==5)))))&&!(a0==1))&&!(a26==1))&&(a23==1))&&(a20==1))&&(a21==11)))){ + if((a14==1)){ + a11 = 1; + a23 = 1; + a1 = 12; + a16 = 8; + a19 = 4; + a9 = 8; + a5 = 5; + a24 = 0; + a20 = 0; + }else{ + a13 = 1; + a21 = 10; + a16 = 7; + a23 = 1; + a5 = 4; + a9 = 10; + a8 = 0; + a19 = 2; + } + return 21; + } else if((((a17==2)&&((a20==1)&&((a21==12)&&((((a7==1)&&(a28==1))&&(a27==1))&&(a16==11)))))&&((((a9==9)&&((a8==1)&&((a8==1)&&(!(a13==1)&&(!(a13==1)&&((input==1)&&((a5==5)||(a5==6))))))))&&(a1==13))&&(a19==2)))){ + a16 = 9; + a7 = 1; + a28 = 0; + a13 = 0; + a5 = 4; + a21 = 11; + a19 = 4; + a1 = 14; + a9 = 11; + return -1; + } else if((((a3==1)&&((a2==1)&&((a17==2)&&(!(a0==1)&&((a20==1)&&((a13==1)&&(((((a21==11)&&(((a9==11)&&((a5==6)&&(a1==14)))&&(a19==5)))||((((a9==7)&&((a5==4)&&(a1==12)))&&(a19==1))&&(a21==12)))||((a21==12)&&((((a1==12)&&(a5==5))&&(a9==7))&&(a19==1))))&&(input==5))))))))&&((a3==1)&&(((a16==10)&&(a3==1))&&!(a18==1))))){ + a16 = 7; + a2 = 1; + a5 = 5; + a9 = 9; + a19 = 2; + a18 = 0; + a1 = 13; + a0 = 0; + a21 = 10; + return 23; + } else if(((!(a28==1)||(!(a18==1)&&(((a3==1)&&((a20==1)&&(((a19==1)&&((a1==14)&&((a28==1)&&(a17==2))))&&(a21==10))))&&(a16==9))))&&(!(a0==1)&&((((input==5)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&!(a26==1))&&!(a14==1))))){ + a9 = 9; + a14 = 0; + a5 = 6; + a16 = 7; + a23 = 1; + a1 = 13; + a28 = 1; + a19 = 4; + a20 = 0; + a21 = 11; + return 25; + } else if(((((((a8==1)||(a28==1))||!(a6==1))&&(a19==3))&&(a20==1))&&((a17==2)&&((a11==1)&&(((a16==11)&&(((((a12==1)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))&&(input==3)))&&(a2==1))&&(a21==10))&&(a1==12)))&&(a6==1)))))){ + a19 = 1; + a8 = 0; + a5 = 4; + a9 = 7; + a7 = 0; + a16 = 7; + a28 = 1; + return -1; + } else if((((a17==2)&&(!(a24==1)&&(((a16==10)&&((!(a8==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1)))&&(a28==1)))&&!(a27==1))))&&(((a20==1)&&((((a12==1)&&(((a6==1)&&(a13==1))&&(a21==12)))&&(a1==12))&&(a19==1)))&&(a9==10)))){ + if((a10==1)){ + a20 = 0; + a24 = 0; + a21 = 10; + a16 = 8; + a11 = 1; + a5 = 6; + a3 = 1; + a19 = 5; + }else{ + a16 = 7; + a1 = 14; + a8 = 0; + a5 = 5; + a23 = 1; + a21 = 10; + a19 = 2; + } + return 21; + } else if((((a28==1)&&(!(a26==1)&&(((a3==1)&&((a17==2)&&((a9==8)&&((a19==1)&&(input==4)))))&&(a21==10))))&&(!(a7==1)&&(((a11==1)&&((a20==1)&&(((a16==11)&&((a5==5)&&(a11==1)))&&(a1==12))))||(a24==1))))){ + a16 = 7; + a26 = 0; + a5 = 4; + a8 = 0; + a3 = 1; + a9 = 7; + return -1; + } else if((((!(a7==1)&&(((a9==9)&&(((a11==1)&&(a2==1))&&(a17==2)))&&(a21==10)))||(a0==1))&&((((((a1==12)&&((((input==4)&&(a5==5))&&(a19==2))&&(a6==1)))&&(a20==1))&&(a16==11))&&!(a4==1))&&!(a8==1)))){ + a6 = 1; + a26 = 0; + a28 = 1; + a19 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + return -1; + } else if((((a2==1)&&((a3==1)&&((((a1==13)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a17==2))&&(a13==1)))&&(a19==2))&&(a20==1))))&&(((a2==1)&&((!(a6==1)||((a9==9)&&((a21==11)&&(a6==1))))&&(a16==8)))&&(a6==1)))){ + a9 = 7; + a26 = 0; + a16 = 7; + a4 = 0; + a21 = 10; + a19 = 1; + a1 = 12; + a11 = 1; + a5 = 4; + return -1; + } else if((((a0==1)||((a21==12)&&((a9==7)&&((a17==2)&&((a13==1)&&(a19==5))))))&&((a16==9)&&((((((a13==1)&&((a1==14)&&((a12==1)&&(((a5==4)||(a5==5))&&(input==4)))))&&!(a27==1))&&!(a24==1))&&(a20==1))&&!(a7==1))))){ + a16 = 7; + a19 = 1; + a13 = 1; + a1 = 12; + a5 = 4; + a3 = 1; + a21 = 10; + a12 = 1; + return -1; + } else if((((a11==1)&&((!(a26==1)&&(((a19==1)&&((input==6)&&(((a9==7)&&((a1==14)&&(a5==4)))||(((a9==11)&&((a5==5)&&(a1==13)))||(((a1==13)&&(a5==6))&&(a9==11))))))&&(a21==12)))&&(a16==8)))&&((a17==2)&&(!(a12==1)||((a20==1)&&((a7==1)||((a2==1)&&((a3==1)||(a4==1))))))))){ + a8 = 0; + a9 = 10; + a23 = 1; + a19 = 4; + a5 = 5; + a1 = 13; + a21 = 10; + a16 = 7; + a7 = 0; + return 25; + } else if((((a21==12)&&((a1==13)&&(!(a26==1)&&(!(a20==1)&&(!(a4==1)&&((a9==7)&&((a16==7)&&(((a28==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5)))&&!(a18==1)))))))))&&((a19==1)&&((a17==2)&&(((a13==1)&&(a11==1))&&!(a24==1)))))){ + a19 = 4; + a3 = 1; + a5 = 6; + a0 = 0; + a9 = 9; + a16 = 10; + a12 = 1; + a20 = 1; + return 22; + } else if((((a20==1)&&((a6==1)&&((input==3)&&((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a5==4)&&(a9==11))))))&&((a17==2)&&((a19==4)&&((a16==8)&&(!(a0==1)&&(!(a18==1)&&(((a8==1)||(((a21==12)&&(!(a11==1)||(a12==1)))&&(a1==14)))&&!(a27==1))))))))){ + a5 = 4; + a14 = 0; + a21 = 10; + a16 = 7; + a1 = 12; + a11 = 1; + a9 = 7; + a19 = 1; + a2 = 1; + return -1; + } else if(((!(a4==1)&&(((a17==2)&&((((a21==12)&&((a11==1)||!(a3==1)))&&!(a14==1))&&(a1==14)))&&!(a0==1)))&&(((a20==1)&&(!(a4==1)&&((a28==1)&&(((input==4)&&((((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8))))&&(a19==4)))))&&(a16==9)))){ + a9 = 7; + a28 = 1; + a19 = 1; + a4 = 0; + a0 = 0; + a16 = 7; + a21 = 10; + a1 = 12; + a5 = 4; + return -1; + } else if(((!(a14==1)&&(((a21==12)&&((a19==5)&&((a20==1)&&(input==1))))&&(a11==1)))&&((a17==2)&&(((a9==9)&&(!(a12==1)||((a16==9)&&(((a1==13)&&(!(a23==1)||((a23==1)||(a0==1))))||(a14==1)))))&&(a5==6))))){ + a21 = 10; + a9 = 7; + a0 = 0; + a6 = 1; + a12 = 1; + a1 = 12; + a5 = 4; + a19 = 1; + a16 = 7; + return -1; + } else if((((a9==10)&&((a21==11)&&(!(a27==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3)))))&&((a1==14)&&(((a28==1)&&((a20==1)&&((a17==2)&&((a16==9)&&(((!(a2==1)||((a11==1)&&(a6==1)))&&!(a24==1))&&!(a18==1))))))&&(a19==2))))){ + a8 = 0; + a19 = 1; + a4 = 0; + a1 = 12; + a21 = 10; + a9 = 7; + a16 = 7; + a5 = 4; + return -1; + } else if(((((a23==1)&&((a16==10)&&(((a19==2)&&(((a17==2)&&((a20==1)&&(a13==1)))&&(a1==12)))&&(a21==10))))&&!(a4==1))&&((a12==1)&&(((((((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&(input==4))&&!(a14==1))&&!(a0==1))&&(a3==1))))){ + a0 = 0; + a16 = 8; + a21 = 12; + a9 = 8; + a5 = 5; + a7 = 0; + a19 = 5; + a1 = 14; + a27 = 0; + return 25; + } else if(((((a20==1)&&((a1==12)&&(((a19==2)&&(((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==4))&&(a21==11)))&&!(a26==1))))&&(a16==9))&&(((!(a12==1)||((((a3==1)||!(a28==1))&&(a3==1))&&(a17==2)))&&!(a7==1))&&!(a14==1)))){ + a19 = 1; + a16 = 7; + a21 = 10; + a9 = 7; + a11 = 1; + a5 = 4; + a0 = 0; + return -1; + } else if(((((a21==11)&&(!(a24==1)&&((((a17==2)&&((a16==11)&&((a19==2)&&(input==4))))&&!(a24==1))&&(a28==1))))&&(a5==4))&&((((a1==12)&&((a12==1)&&(((a23==1)&&(a20==1))&&(a9==10))))||(a7==1))&&!(a24==1)))){ + a19 = 1; + a21 = 10; + a16 = 7; + a7 = 0; + a4 = 0; + a9 = 7; + a3 = 1; + return -1; + } else if(((((a13==1)&&(!(a27==1)&&((((a17==2)&&((!(a20==1)&&(a6==1))||(a4==1)))&&(a21==12))||(a8==1))))||!(a23==1))&&(!(a24==1)&&((((a9==8)&&((((a5==5)||(a5==6))&&(input==6))&&(a16==7)))&&(a1==14))&&(a19==3))))){ + a3 = 1; + a1 = 12; + a14 = 0; + a21 = 10; + a20 = 1; + a5 = 4; + a26 = 0; + a19 = 1; + a9 = 7; + return -1; + } else if((((((((a19==5)&&(((a23==1)&&((input==5)&&(a16==8)))&&(a6==1)))&&(a17==2))&&!(a8==1))&&!(a18==1))&&(a23==1))&&((a9==9)&&((((((a11==1)&&!(a20==1))&&(a21==12))&&(a1==13))&&!(a4==1))&&(a5==6))))){ + if((a6==1)){ + a10 = 0; + a20 = 1; + a1 = 12; + a19 = 1; + a12 = 0; + a15 = 1; + a21 = 10; + a5 = 5; + a16 = 7; + a9 = 7; + }else{ + a9 = 8; + a5 = 5; + a22 = 1; + a1 = 12; + a21 = 11; + a19 = 1; + a25 = 0; + a10 = 0; + } + return -1; + } else if(((((a17==2)&&((a16==9)&&((!(a14==1)&&(a3==1))||(a4==1))))&&(a28==1))&&((a3==1)&&(((((a2==1)&&((((((a1==14)&&(a5==6))&&(a9==11))&&(a19==4))||((a19==5)&&((a9==7)&&((a1==12)&&(a5==4)))))&&(input==5)))&&!(a20==1))&&(a21==11))&&!(a27==1))))){ + a12 = 0; + a1 = 13; + a20 = 1; + a5 = 4; + a21 = 10; + a29 = 0; + a9 = 10; + a19 = 1; + a14 = 1; + a16 = 7; + return -1; + } else if((((a21==11)&&((!(a18==1)&&(!(a2==1)||((a28==1)&&((a26==1)||(a13==1)))))&&(a1==12)))&&((!(a20==1)&&((((a9==9)&&((((input==4)&&((a5==5)||(a5==6)))&&(a17==2))&&(a16==9)))&&!(a7==1))&&!(a24==1)))&&(a19==3)))){ + a18 = 1; + a13 = 0; + a4 = 1; + a5 = 4; + a20 = 1; + a16 = 10; + a19 = 4; + return 21; + } else if(((!(a26==1)&&((a17==2)&&(((((!(a4==1)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6))))&&!(a4==1))&&(a28==1))&&(a1==12))&&(a16==9))))&&((a20==1)&&((((a19==1)&&((a9==9)&&((a13==1)&&!(a26==1))))&&!(a26==1))&&(a21==12))))){ + a6 = 1; + a5 = 4; + a9 = 7; + a21 = 10; + a16 = 7; + a11 = 1; + a18 = 0; + return -1; + } else if(((!(a4==1)&&(((a19==2)&&((((a1==12)&&((a16==11)&&((a21==11)&&(a28==1))))&&!(a24==1))&&!(a14==1)))&&!(a8==1)))&&((((a20==1)&&(((input==1)&&((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4))))&&(a6==1)))&&(a17==2))&&(a13==1)))){ + a11 = 1; + a21 = 10; + a5 = 4; + a9 = 7; + a19 = 1; + a16 = 7; + a4 = 0; + a18 = 0; + return -1; + } else if((((a17==2)&&((a13==1)&&(((a19==3)&&(!(a14==1)&&((a23==1)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&!(a27==1))&&(a9==8)))))&&(a16==9))))&&((a1==12)&&((a20==1)&&((((a11==1)||(a18==1))||(a27==1))&&(a21==12)))))){ + a5 = 4; + a16 = 7; + a14 = 0; + a9 = 7; + a21 = 10; + a12 = 1; + a3 = 1; + a19 = 1; + return -1; + } else if(((!(a4==1)&&((a6==1)&&((!(a8==1)&&((a1==12)&&((!(a27==1)&&((input==3)&&(a17==2)))&&(a20==1))))&&(a5==5))))&&(((!(a14==1)&&((((a6==1)&&(a21==11))&&(a16==10))||(a14==1)))&&(a19==5))&&(a9==10)))){ + a19 = 1; + a7 = 0; + a3 = 1; + a5 = 4; + a9 = 7; + a21 = 10; + a16 = 7; + return -1; + } else if(((((a16==7)&&((a21==12)&&(((a7==1)&&((a18==1)&&((((((a1==13)&&(a5==5))&&(a9==11))||((a9==11)&&((a1==13)&&(a5==6))))||((a9==7)&&((a5==4)&&(a1==14))))&&(input==1))))&&!(a12==1))))&&!(a6==1))&&((a0==1)&&(((a19==3)&&(((a6==1)&&!(a12==1))&&!(a20==1)))&&(a17==2))))){ + a1 = 13; + a5 = 5; + a28 = 0; + a19 = 5; + a20 = 1; + a10 = 0; + a11 = 0; + a9 = 10; + return -1; + } else if((((((a28==1)&&(a12==1))&&(a17==2))&&(a21==10))&&((a23==1)&&(((!(a26==1)&&((a9==8)&&((((a16==9)&&((a3==1)&&((a20==1)&&(((a5==5)||(a5==6))&&(input==6)))))&&!(a27==1))&&(a2==1))))&&(a1==13))&&(a19==4))))){ + a23 = 1; + a9 = 7; + a19 = 1; + a28 = 1; + a1 = 12; + a5 = 4; + a13 = 1; + a16 = 7; + return -1; + } else if((((a21==11)&&((a9==11)&&((a28==1)&&(!(a20==1)&&(((((input==4)&&(a1==14))&&(a5==4))&&(a16==7))&&!(a4==1))))))&&((a24==1)||(((a14==1)||((((a8==1)||(a23==1))||(a4==1))&&(a19==5)))&&(a17==2))))){ + if((a24==1)){ + a19 = 3; + a4 = 0; + a28 = 1; + a26 = 0; + a5 = 5; + a16 = 8; + }else{ + a9 = 9; + a5 = 6; + a20 = 1; + a21 = 12; + a16 = 8; + a19 = 4; + a8 = 0; + a12 = 1; + a6 = 1; + } + return 22; + } else if(((!(a2==1)||((a3==1)&&(a12==1)))&&(!(a4==1)&&(!(a8==1)&&((a1==13)&&(((a16==10)&&((a9==8)&&((((a17==2)&&((((input==1)&&(a5==6))&&!(a20==1))&&(a19==4)))&&!(a18==1))&&(a21==12))))&&(a2==1))))))){ + a18 = 1; + a1 = 14; + a20 = 1; + a21 = 10; + a16 = 7; + a9 = 7; + a19 = 1; + a13 = 0; + a15 = 0; + a5 = 4; + return -1; + } else if((((((a21==10)&&(a13==1))&&(a2==1))||!(a13==1))&&((a12==1)&&(!(a18==1)&&(!(a27==1)&&(((a9==11)&&(!(a26==1)&&((a1==12)&&((a17==2)&&((((input==6)&&(a19==3))&&(a16==11))&&(a20==1))))))&&(a5==5))))))){ + a26 = 0; + a13 = 1; + a14 = 0; + a5 = 4; + a9 = 7; + a19 = 1; + a16 = 7; + return -1; + } else if((((a21==12)&&((a20==1)&&((input==4)&&((a5==4)||(a5==5)))))&&((a14==1)||((((((a18==1)||(((a23==1)&&((a1==12)&&(((a3==1)&&(a9==9))&&(a19==1))))||!(a13==1)))&&(a2==1))&&(a16==10))&&(a3==1))&&(a17==2))))){ + a13 = 1; + a9 = 7; + a16 = 7; + a0 = 0; + a5 = 4; + a2 = 1; + a21 = 10; + return -1; + } else if((((a16==10)&&(((a9==7)&&((a1==13)&&(((a12==1)&&((a19==1)&&(a28==1)))||(a0==1))))&&!(a4==1)))&&((a12==1)&&((a5==5)&&(((a28==1)&&((a17==2)&&(((input==4)&&!(a20==1))&&(a23==1))))&&(a21==12)))))){ + if((a3==1)){ + a20 = 1; + a10 = 1; + a23 = 0; + a21 = 10; + a16 = 7; + a9 = 8; + a1 = 12; + a29 = 0; + }else{ + a5 = 4; + a1 = 14; + a7 = 1; + a19 = 4; + a16 = 8; + a20 = 1; + a10 = 1; + a9 = 9; + a24 = 1; + } + return -1; + } else if((((a20==1)&&(((a27==1)||((a12==1)&&(a3==1)))||(a24==1)))&&((a19==3)&&(((((a5==4)&&((((((input==4)&&(a1==13))&&!(a8==1))&&(a2==1))&&(a9==7))&&(a6==1)))&&(a17==2))&&(a16==8))&&(a21==10))))){ + a1 = 12; + a8 = 0; + a19 = 1; + a3 = 1; + a16 = 7; + a24 = 0; + return -1; + } else if((((a17==2)&&((!(a27==1)&&(!(a12==1)||((a23==1)&&((a2==1)&&(a12==1)))))&&(a9==11)))&&((a21==11)&&((!(a20==1)&&((!(a27==1)&&(((a1==12)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))&&(a11==1)))&&(a19==5)))&&(a16==9))))){ + if((a25==1)){ + a5 = 5; + a9 = 8; + a25 = 1; + a24 = 1; + a21 = 12; + a16 = 10; + a2 = 0; + }else{ + a20 = 1; + a13 = 0; + a21 = 12; + a16 = 10; + a12 = 0; + a19 = 4; + a5 = 5; + a6 = 0; + a9 = 8; + } + return 25; + } else if(((!(a4==1)&&((a13==1)&&((a3==1)&&((!(a27==1)&&((a16==7)&&(!(a20==1)&&(((input==4)&&((a5==5)||(a5==6)))&&(a9==11)))))&&(a21==12)))))&&(!(a27==1)&&((a17==2)&&((a24==1)||((a1==12)&&((a19==4)&&(a11==1)))))))){ + a19 = 1; + a5 = 4; + a6 = 1; + a9 = 7; + a20 = 1; + a13 = 1; + a0 = 0; + a21 = 10; + return -1; + } else if(((((a1==14)&&((((a21==11)&&((a0==1)||(!(a13==1)||((a9==7)&&(((a12==1)||(a14==1))&&(a19==5))))))&&!(a18==1))&&!(a4==1)))&&!(a20==1))&&((a17==2)&&(((a13==1)&&(((a5==5)||(a5==6))&&(input==4)))&&(a16==9))))){ + a1 = 12; + a6 = 0; + a16 = 8; + a26 = 1; + a20 = 1; + a3 = 0; + a9 = 11; + a5 = 6; + a21 = 10; + return -1; + } else if(((!(a28==1)||((((a16==8)&&(a2==1))&&(a3==1))&&(a3==1)))&&((!(a0==1)&&(!(a18==1)&&(((a21==12)&&((a20==1)&&(((a1==14)&&((((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6))))&&(input==4)))&&(a19==4))))&&!(a27==1))))&&(a17==2)))){ + a1 = 12; + a5 = 4; + a3 = 1; + a16 = 7; + a19 = 1; + a12 = 1; + a21 = 10; + a9 = 7; + return -1; + } else if((((a18==1)||((a28==1)&&(a19==3)))&&((!(a4==1)&&(((!(a7==1)&&(!(a26==1)&&((a21==10)&&((a20==1)&&(!(a18==1)&&(((input==6)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&(a1==14)))))))&&(a17==2))&&!(a4==1)))&&(a16==11)))){ + a19 = 4; + a8 = 0; + a13 = 1; + a6 = 1; + a5 = 5; + a9 = 11; + return 21; + } else if((((a9==10)&&((((((!(a20==1)&&(input==3))&&(a21==12))&&(a19==4))&&(a12==1))&&!(a14==1))&&(a16==10)))&&((a5==6)&&((((a17==2)&&(((a14==1)||((a1==12)&&(a11==1)))&&!(a4==1)))&&(a2==1))&&(a2==1))))){ + a1 = 14; + a15 = 0; + a5 = 4; + a19 = 1; + a9 = 11; + a24 = 1; + a16 = 7; + a4 = 1; + a20 = 1; + a21 = 10; + return 25; + } else if((((a13==1)&&((a5==4)&&((a21==10)&&(((((a9==10)&&(input==5))&&(a1==13))&&(a2==1))&&(a12==1)))))&&(((a19==1)&&((a20==1)&&((((a16==10)&&((a17==2)&&(a12==1)))||!(a3==1))&&!(a0==1))))||(a8==1)))){ + a7 = 0; + a5 = 5; + a9 = 9; + a19 = 5; + a18 = 0; + a1 = 12; + a16 = 11; + return 21; + } else if(((((a11==1)&&(((((a23==1)&&(a17==2))&&(a1==12))||(a27==1))&&(a19==5)))||!(a23==1))&&((a9==11)&&(((((a20==1)&&((((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a12==1))&&(a3==1)))&&!(a24==1))&&(a16==10))&&(a21==12))))){ + a16 = 7; + a19 = 4; + a9 = 10; + a5 = 6; + a23 = 1; + a1 = 14; + a21 = 10; + a6 = 1; + a28 = 1; + return 25; + } else if(((((a5==5)&&(((!(a7==1)&&(((a21==10)&&(input==1))&&(a19==5)))&&!(a27==1))&&(a17==2)))&&!(a20==1))&&((a16==8)&&((((a9==11)&&((a1==13)&&((a24==1)||((a27==1)||(a3==1)))))||(a26==1))||(a14==1))))){ + a16 = 9; + a20 = 1; + a19 = 4; + a5 = 4; + a14 = 0; + a21 = 12; + a6 = 1; + a1 = 14; + a23 = 1; + return 25; + } else if((((a20==1)&&((a11==1)&&(!(a24==1)&&(((a17==2)&&((a9==10)&&((a13==1)&&((input==3)&&(a1==12)))))&&!(a4==1)))))&&((a21==11)&&(((a16==7)&&((a5==4)&&((a6==1)&&(!(a12==1)||(a23==1)))))&&(a19==3))))){ + a12 = 1; + a18 = 0; + a19 = 1; + a21 = 10; + a8 = 0; + a9 = 7; + return -1; + } else if((((a17==2)&&((a2==1)&&(!(a8==1)&&((a2==1)&&((a1==14)&&((((input==6)&&(a19==2))&&(a20==1))&&(a9==10)))))))&&((a5==5)&&(((((a8==1)||((a2==1)&&!(a4==1)))&&(a21==11))&&(a11==1))&&(a16==8))))){ + a18 = 0; + a5 = 6; + a19 = 5; + a1 = 12; + a21 = 10; + a9 = 9; + a14 = 0; + a3 = 1; + return -1; + } else if((((a1==13)&&((a19==2)&&(((((a12==1)||!(a23==1))&&(a20==1))||(a14==1))||(a8==1))))&&((a17==2)&&((a21==11)&&((!(a4==1)&&((a16==11)&&(((input==1)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(a3==1))))&&(a3==1)))))){ + a1 = 12; + a18 = 0; + a9 = 7; + a14 = 0; + a16 = 7; + a19 = 1; + a5 = 4; + a21 = 10; + a4 = 0; + return -1; + } else if((((a1==13)&&((a11==1)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&!(a0==1))&&(a21==11))))&&(((((a20==1)&&(((((a17==2)&&(!(a28==1)||(a11==1)))&&(a19==5))&&(a9==7))&&(a28==1)))&&!(a8==1))||!(a11==1))&&(a16==8)))){ + a5 = 4; + a21 = 10; + a23 = 1; + a1 = 12; + a3 = 1; + a19 = 1; + a16 = 7; + return -1; + } else if(((!(a20==1)&&(((a18==1)||((a2==1)&&(a23==1)))&&(a9==11)))&&(!(a8==1)&&((a3==1)&&((a1==14)&&((((!(a0==1)&&(((a19==2)&&(((a5==4)||(a5==5))&&(input==3)))&&(a12==1)))&&(a17==2))&&(a21==10))&&(a16==10))))))){ + a21 = 11; + a20 = 1; + a19 = 1; + a10 = 0; + a16 = 7; + a5 = 4; + a12 = 0; + a4 = 1; + return -1; + } else if(((((((a11==1)&&((a13==1)&&((a28==1)&&(a1==14))))&&(a9==8))&&(a16==11))||!(a6==1))&&(!(a24==1)&&(((a17==2)&&((a20==1)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a19==5))&&(a21==10))&&!(a7==1))))&&!(a26==1))))){ + a7 = 0; + a1 = 12; + a5 = 4; + a13 = 1; + a16 = 7; + a28 = 1; + a19 = 1; + a9 = 7; + return -1; + } else if((((!(a18==1)&&((a17==2)&&(!(a4==1)&&(((a21==12)&&(input==6))&&(a9==9)))))&&!(a27==1))&&(((a1==12)&&((((((!(a18==1)&&(a23==1))&&(a20==1))&&(a3==1))&&(a5==4))&&(a16==8))&&(a6==1)))&&(a19==4)))){ + a1 = 13; + a5 = 5; + a16 = 10; + a0 = 0; + a19 = 3; + a9 = 8; + a6 = 1; + a2 = 1; + return 25; + } else if((((a21==10)&&((a16==7)&&((!(a20==1)&&(!(a26==1)&&(!(a26==1)&&(((input==4)&&((((a1==14)&&(a5==4))&&(a9==7))||((((a1==13)&&(a5==5))&&(a9==11))||((a9==11)&&((a1==13)&&(a5==6))))))&&(a2==1)))))&&(a19==4))))&&((a6==1)&&((a27==1)||((!(a2==1)||(a6==1))&&(a17==2)))))){ + a9 = 9; + a12 = 1; + a1 = 12; + a20 = 1; + a21 = 11; + a28 = 1; + a5 = 5; + a6 = 1; + return 22; + } else if((((a21==11)&&(((a19==5)&&(((a28==1)&&((a28==1)||(a8==1)))||(a4==1)))&&(a17==2)))&&(((((a9==9)&&(((a13==1)&&(!(a26==1)&&((input==4)&&(a20==1))))&&(a16==7)))&&!(a8==1))&&(a5==5))&&(a1==12)))){ + a21 = 10; + a28 = 1; + a6 = 1; + a9 = 7; + a18 = 0; + a5 = 4; + a19 = 1; + return -1; + } else if((((a17==2)&&((a4==1)||(!(a20==1)&&(((a2==1)&&(a19==4))||!(a28==1)))))&&((a1==13)&&((((a28==1)&&((a16==7)&&((a6==1)&&((a21==12)&&((((a5==4)||(a5==5))&&(input==6))&&(a9==8))))))&&(a12==1))&&!(a8==1))))){ + a26 = 0; + a21 = 10; + a2 = 1; + a19 = 1; + a18 = 0; + a5 = 4; + a9 = 7; + a20 = 1; + a1 = 12; + return -1; + } else if((((a1==13)&&(((((((((input==5)&&(a21==12))&&(a9==7))&&(a3==1))&&(a17==2))&&(a19==5))&&(a20==1))&&(a5==5))&&(a23==1)))&&(((a6==1)&&((a27==1)||((a16==10)&&((a14==1)||(a23==1)))))||!(a13==1)))){ + a7 = 0; + a1 = 12; + a6 = 1; + a21 = 10; + a16 = 7; + a5 = 4; + a19 = 1; + return -1; + } else if(((((a0==1)||((((a2==1)&&(a2==1))&&(a20==1))&&!(a4==1)))&&(a1==13))&&(((a21==10)&&(!(a4==1)&&(((a9==7)&&(!(a4==1)&&((a19==2)&&(((input==4)&&((a5==4)||(a5==5)))&&(a17==2)))))&&!(a14==1))))&&(a16==10)))){ + a19 = 1; + a5 = 5; + a27 = 0; + a9 = 11; + a1 = 14; + a13 = 1; + a21 = 11; + a18 = 0; + return 25; + } else if((((a21==11)&&((a20==1)&&((a28==1)&&((((a12==1)&&((a6==1)&&(a2==1)))&&(a9==8))&&(a19==2)))))&&(((a1==13)&&((((a16==8)&&(((input==6)&&((a5==5)||(a5==6)))&&(a23==1)))&&(a17==2))&&!(a26==1)))&&!(a7==1)))){ + a13 = 1; + a8 = 0; + a5 = 6; + a9 = 11; + a19 = 4; + a21 = 10; + a4 = 0; + a16 = 10; + a1 = 12; + return 26; + } else if((((a1==14)&&((((a19==5)&&(!(a20==1)&&(a6==1)))||!(a28==1))&&(a13==1)))&&((((a13==1)&&((((a11==1)&&((((a5==4)&&(input==6))&&(a11==1))&&!(a0==1)))&&(a17==2))&&(a16==7)))&&(a21==10))&&(a9==10)))){ + a19 = 1; + a7 = 0; + a20 = 1; + a9 = 7; + a1 = 12; + a8 = 0; + a24 = 0; + return -1; + } else if(((((((((((a19==5)&&(((a5==6)&&(a1==14))&&(a9==11)))&&(a21==10))||((a21==11)&&((((a1==12)&&(a5==4))&&(a9==7))&&(a19==1))))&&(input==6))&&(a17==2))&&(a2==1))&&(a11==1))&&!(a14==1))&&(((a16==8)&&((a0==1)||((a20==1)&&((a11==1)||(a14==1)))))&&(a6==1)))){ + a19 = 1; + a16 = 7; + a21 = 10; + a23 = 1; + a0 = 0; + a5 = 4; + a9 = 7; + a1 = 12; + a18 = 0; + return -1; + } else if(((((((((((input==5)&&(a16==8))&&!(a20==1))&&(a19==5))&&!(a7==1))&&(a23==1))&&(a9==10))&&(a1==12))&&(a6==1))&&((a27==1)||((a5==5)&&((!(a26==1)&&((a21==12)&&((a26==1)||(a11==1))))&&(a17==2)))))){ + if((a28==1)){ + a16 = 10; + a21 = 10; + a28 = 0; + a20 = 1; + a9 = 9; + a5 = 6; + a3 = 0; + a13 = 0; + }else{ + a19 = 1; + a5 = 4; + a20 = 1; + a21 = 10; + a9 = 9; + a25 = 1; + a16 = 7; + a11 = 0; + a1 = 14; + a14 = 1; + } + return -1; + } else if((((a19==3)&&((a5==5)&&((a20==1)&&((a7==1)||(!(a8==1)&&(!(a26==1)&&(((a9==7)&&(a11==1))&&(a21==12))))))))&&(((((a2==1)&&(!(a7==1)&&((a16==11)&&(input==3))))&&!(a7==1))&&(a1==12))&&(a17==2)))){ + a16 = 7; + a5 = 4; + a8 = 0; + a19 = 1; + a21 = 10; + a12 = 1; + a28 = 1; + return -1; + } else if((((((a5==6)&&((!(a8==1)&&((a16==8)&&(input==1)))&&(a19==3)))&&(a1==14))&&(a21==12))&&((a17==2)&&(!(a6==1)||((a14==1)||((((((a3==1)&&(a9==7))||!(a3==1))&&!(a0==1))&&(a20==1))&&!(a4==1))))))){ + a5 = 4; + a21 = 10; + a18 = 0; + a27 = 0; + a7 = 0; + a19 = 1; + a1 = 12; + a16 = 7; + return -1; + } else if(((((a21==11)&&((a1==13)&&((a6==1)&&((a2==1)&&((a19==2)&&((a6==1)&&(a20==1)))))))||(a27==1))&&((((((a16==9)&&((input==5)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))))&&(a17==2))&&(a11==1))&&!(a0==1))&&(a12==1)))){ + a13 = 1; + a1 = 12; + a21 = 10; + a5 = 4; + a19 = 1; + a28 = 1; + a9 = 7; + a18 = 0; + a16 = 7; + return -1; + } else if((((((((a17==2)&&((a1==14)&&((!(a14==1)&&((((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&(input==1)))&&(a19==1))))&&(a21==10))&&!(a20==1))&&!(a27==1))&&(a2==1))&&(((a16==9)&&((a11==1)&&((a6==1)&&!(a7==1))))||(a0==1)))){ + if((a9==10)){ + a16 = 7; + a20 = 1; + a5 = 5; + a11 = 0; + a14 = 1; + a9 = 7; + a1 = 13; + a22 = 0; + }else{ + a6 = 0; + a20 = 1; + a9 = 9; + a16 = 7; + a5 = 5; + a25 = 1; + a29 = 0; + } + return -1; + } else if(((((a19==2)&&(((((a28==1)&&(a21==10))&&!(a14==1))||(a18==1))&&(a11==1)))&&(a16==9))&&(!(a20==1)&&((!(a24==1)&&(((a17==2)&&(!(a18==1)&&((input==1)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))))&&!(a24==1)))&&(a1==14))))){ + a5 = 6; + a25 = 0; + a24 = 1; + a20 = 1; + a1 = 12; + a11 = 0; + a19 = 1; + a9 = 9; + a16 = 7; + return -1; + } else if((((a9==7)&&(((!(a24==1)&&((a17==2)&&(((((a21==12)&&(input==3))&&!(a8==1))&&!(a7==1))&&(a16==8))))&&!(a8==1))&&(a1==14)))&&((!(a14==1)&&((!(a20==1)&&((a3==1)&&(a2==1)))&&(a19==1)))&&(a5==4)))){ + if((a7==1)){ + a18 = 1; + a23 = 0; + a21 = 11; + a9 = 8; + a0 = 1; + a16 = 10; + a1 = 12; + }else{ + a21 = 10; + a26 = 1; + a5 = 6; + a16 = 7; + a20 = 1; + a9 = 10; + a13 = 0; + a2 = 0; + } + return 22; + } else if(((((((((a19==4)&&((input==1)&&((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4)))))&&(a11==1))&&(a20==1))&&!(a14==1))&&!(a26==1))&&(a17==2))&&((a1==14)&&(((a16==9)&&((!(a2==1)||(!(a2==1)||(a11==1)))||!(a23==1)))&&(a21==10))))){ + if((a12==1)){ + a20 = 0; + a28 = 1; + a16 = 8; + a24 = 0; + a3 = 1; + a9 = 9; + a5 = 4; + a19 = 3; + }else{ + a5 = 4; + a21 = 12; + a16 = 10; + a1 = 13; + a23 = 1; + a9 = 10; + a6 = 1; + a13 = 1; + a19 = 3; + } + return 21; + } else if(((((((a12==1)||(a18==1))&&(a19==5))&&!(a20==1))&&(a16==9))&&((((a28==1)&&((a28==1)&&(((a21==11)&&(((((input==6)&&((a5==5)||(a5==6)))&&(a1==13))&&(a9==10))&&(a17==2)))&&!(a0==1))))&&(a23==1))&&!(a7==1)))){ + a5 = 5; + a14 = 1; + a21 = 10; + a20 = 1; + a1 = 12; + a7 = 1; + a29 = 0; + a19 = 2; + a9 = 7; + a16 = 7; + return -1; + } else if(((((a17==2)&&(((a28==1)&&(a19==3))&&(a9==8)))&&(a20==1))&&((((a3==1)&&(((a16==8)&&((a21==11)&&(((a28==1)&&(!(a24==1)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a1==12))))&&(a28==1)))&&(a13==1))&&!(a4==1)))){ + a26 = 0; + a5 = 6; + a16 = 10; + a3 = 1; + a1 = 13; + a7 = 0; + a19 = 5; + a21 = 10; + return 22; + } else if(((((((((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a17==2))&&(a3==1))&&(a9==10))&&(a20==1))&&(a19==3))&&((a21==12)&&((((!(a28==1)||((a18==1)||(((a23==1)&&!(a24==1))&&(a3==1))))&&(a1==12))||(a7==1))&&(a16==11))))){ + a9 = 7; + a5 = 4; + a3 = 1; + a2 = 1; + a19 = 1; + a21 = 10; + a28 = 1; + a16 = 7; + return -1; + } else if((((a24==1)||(!(a13==1)||((a16==9)&&((a5==5)&&((a9==9)&&((a13==1)&&!(a24==1)))))))&&((a12==1)&&(((a12==1)&&(((a23==1)&&((a1==13)&&(((input==1)&&(a19==3))&&(a21==12))))&&(a20==1)))&&(a17==2))))){ + a23 = 1; + a19 = 1; + a13 = 1; + a5 = 4; + a21 = 10; + a6 = 1; + a1 = 14; + a16 = 10; + a9 = 7; + return 21; + } else if((((a16==9)&&(!(a0==1)&&((a21==10)&&((((((((a1==12)&&(a5==5))&&(a9==7))&&(a19==2))||(((a19==1)&&(((a1==14)&&(a5==6))&&(a9==11)))||(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==2))))&&(input==1))&&(a17==2))&&(a3==1)))))&&(!(a12==1)||(!(a27==1)&&(!(a12==1)||((!(a20==1)&&(a3==1))&&!(a4==1))))))){ + if((a21==12)){ + a21 = 11; + a16 = 11; + a25 = 0; + a19 = 3; + a5 = 4; + a28 = 0; + a20 = 1; + a1 = 14; + a22 = 0; + a9 = 7; + }else{ + a20 = 1; + a19 = 1; + a6 = 0; + a9 = 10; + a5 = 4; + a16 = 7; + a22 = 1; + a25 = 0; + a1 = 13; + } + return -1; + } else if(((((!(a8==1)&&((a11==1)&&(!(a20==1)&&((a17==2)&&(((input==5)&&(((a21==12)&&((a19==1)&&((a9==7)&&((a1==12)&&(a5==5)))))||((((a19==5)&&(((a1==14)&&(a5==6))&&(a9==11)))&&(a21==11))||((((a9==7)&&((a1==12)&&(a5==4)))&&(a19==1))&&(a21==12)))))&&(a16==9))))))&&!(a4==1))&&(a28==1))&&(((a23==1)&&(a11==1))||(a0==1)))){ + a12 = 0; + a13 = 0; + a5 = 6; + a21 = 10; + a19 = 1; + a1 = 13; + a20 = 1; + a9 = 10; + a27 = 1; + a16 = 7; + return -1; + } else if(((!(a20==1)&&(!(a8==1)&&((a9==11)&&(((a28==1)||(a27==1))&&(a21==10)))))&&((((a16==9)&&((((((((a5==5)||(a5==6))&&(input==1))&&!(a26==1))&&(a19==3))&&(a11==1))&&!(a7==1))&&(a6==1)))&&(a17==2))&&(a1==12)))){ + a20 = 1; + a26 = 1; + a5 = 5; + a15 = 0; + a1 = 13; + a29 = 0; + a19 = 1; + a9 = 7; + a16 = 7; + return -1; + } else if((((((a21==10)&&((a19==1)&&(((!(a20==1)&&(input==4))&&(a11==1))&&(a5==4))))&&!(a8==1))&&!(a4==1))&&((a4==1)||((a9==10)&&((a1==12)&&((a16==9)&&((a0==1)||(((a6==1)&&(a6==1))&&(a17==2))))))))){ + a16 = 7; + a1 = 13; + a21 = 11; + a7 = 1; + a20 = 1; + a27 = 1; + a19 = 4; + a29 = 1; + return -1; + } else if((((!(a11==1)||((((a17==2)&&((((a9==7)&&(((a12==1)&&(a28==1))&&(a21==11)))&&(a16==8))&&!(a20==1)))&&(a19==2))&&!(a0==1)))||!(a11==1))&&((((((a5==4)||(a5==5))&&(input==5))&&!(a4==1))&&(a1==12))&&!(a18==1)))){ + a5 = 6; + a16 = 10; + a21 = 10; + a20 = 1; + a9 = 10; + a8 = 0; + a28 = 1; + a14 = 0; + a19 = 1; + return 21; + } else if((((a3==1)&&((((((a19==5)&&((a17==2)&&((((a21==11)&&(a28==1))&&(a1==14))||(a7==1))))&&!(a20==1))||!(a28==1))&&(a11==1))||(a26==1)))&&((a6==1)&&((a16==9)&&(((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5)))&&(input==6)))))){ + a5 = 5; + a20 = 1; + a19 = 1; + a1 = 13; + a22 = 1; + a18 = 1; + a3 = 0; + a21 = 10; + a9 = 11; + a16 = 7; + return 23; + } else if((((((a8==1)||((a3==1)&&(a17==2)))||!(a3==1))||(a18==1))&&(!(a20==1)&&((a5==6)&&(!(a18==1)&&((a16==7)&&((!(a27==1)&&(((a9==11)&&((a6==1)&&((a1==13)&&(input==1))))&&(a19==5)))&&(a21==12)))))))){ + a24 = 0; + a20 = 1; + a1 = 12; + a9 = 7; + a6 = 1; + a19 = 1; + a5 = 4; + a21 = 10; + return -1; + } else if((((!(a18==1)&&((!(a0==1)&&((a19==4)&&((input==1)&&((a5==4)||(a5==5)))))&&(a20==1)))&&(a1==14))&&(((a17==2)&&(!(a13==1)||(((a21==12)&&(!(a13==1)||(((a11==1)&&(a9==9))&&(a16==10))))||(a14==1))))&&(a28==1)))){ + a16 = 7; + a1 = 13; + a18 = 0; + a21 = 10; + a26 = 0; + a5 = 5; + a12 = 1; + a19 = 2; + return 25; + } else if((((a17==2)&&((((a16==10)&&(!(a12==1)||((a13==1)||!(a2==1))))||(a14==1))&&(a19==3)))&&(((((a1==12)&&(((((input==3)&&((a5==5)||(a5==6)))&&(a21==10))&&!(a20==1))&&!(a14==1)))&&(a23==1))&&!(a18==1))&&(a9==7)))){ + a1 = 13; + a16 = 11; + a9 = 10; + a21 = 12; + a8 = 1; + a20 = 1; + a28 = 0; + a5 = 6; + a26 = 1; + return -1; + } else if((((a13==1)&&(((((a5==4)&&(input==6))&&(a16==10))&&(a21==10))&&(a11==1)))&&((((a1==12)&&((((a23==1)&&(((a19==3)&&((a13==1)&&(a11==1)))&&(a17==2)))&&(a12==1))&&!(a0==1)))&&!(a20==1))&&(a9==7)))){ + a20 = 1; + a13 = 0; + a5 = 5; + a12 = 0; + a16 = 7; + a29 = 0; + a19 = 1; + return -1; + } else if(((((((a21==12)&&(((a26==1)||(((a2==1)||(a8==1))||(a7==1)))||!(a13==1)))&&(a1==12))&&(a17==2))&&(a16==7))&&((!(a26==1)&&((((a9==9)&&((a20==1)&&(input==5)))&&(a19==4))&&!(a8==1)))&&(a5==6)))){ + if((a25==1)){ + a2 = 1; + a13 = 1; + a20 = 0; + a11 = 1; + a9 = 8; + a21 = 11; + a19 = 2; + a1 = 13; + }else{ + a16 = 9; + a3 = 1; + a24 = 0; + a21 = 11; + a19 = 1; + a9 = 10; + a5 = 4; + a1 = 14; + } + return 21; + } else if((((!(a4==1)&&(((a28==1)&&(((a5==4)||(a5==5))&&(input==3)))&&(a28==1)))&&(a16==10))&&(((((((a17==2)&&(!(a8==1)&&((a3==1)&&((a3==1)||!(a23==1)))))&&(a9==9))&&(a21==12))&&(a1==14))&&!(a20==1))&&(a19==1)))){ + a20 = 1; + a22 = 0; + a1 = 13; + a15 = 1; + a5 = 5; + a19 = 3; + a14 = 1; + a9 = 11; + return -1; + } else if(((((!(a13==1)||(a6==1))&&(a28==1))&&!(a24==1))&&((((a12==1)&&((((a19==5)&&(!(a8==1)&&((a16==9)&&((a20==1)&&((input==4)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9))))))))&&(a17==2))&&(a12==1)))&&(a21==10))&&(a1==12)))){ + a16 = 8; + a7 = 0; + a5 = 5; + a9 = 9; + a27 = 0; + a21 = 12; + a18 = 0; + a19 = 1; + return 25; + } else if((((a12==1)&&(!(a14==1)&&((!(a6==1)||(!(a2==1)||((a5==4)&&(a23==1))))&&(a20==1))))&&((((a1==14)&&(((((a19==3)&&((input==5)&&(a21==11)))&&(a9==7))&&(a17==2))&&(a16==10)))&&!(a27==1))&&(a23==1)))){ + a19 = 1; + a12 = 1; + a1 = 12; + a28 = 1; + a0 = 0; + a21 = 10; + a16 = 7; + return -1; + } else if((((((a19==3)&&((((a12==1)&&(a5==4))&&(a1==13))||(a26==1)))||(a8==1))||!(a11==1))&&(((a17==2)&&((a3==1)&&((((a21==10)&&((a9==10)&&((input==4)&&(a16==8))))&&!(a7==1))&&!(a20==1))))&&(a6==1)))){ + a20 = 1; + a1 = 12; + a4 = 0; + a26 = 0; + a9 = 7; + a19 = 1; + a16 = 7; + return -1; + } else if((((a2==1)&&((a23==1)&&((((a2==1)&&(((input==1)&&(a17==2))&&(a1==14)))&&(a19==1))&&(a16==7))))&&(!(a24==1)&&(!(a20==1)&&((a5==6)&&((a21==12)&&((a9==7)&&((a6==1)&&((a3==1)||!(a28==1)))))))))){ + a21 = 10; + a20 = 1; + a19 = 4; + a7 = 0; + a5 = 5; + a1 = 13; + a23 = 1; + a9 = 10; + a2 = 1; + return 25; + } else if(((((((a28==1)&&((a26==1)||((a16==9)&&((a21==12)&&(!(a20==1)&&(a6==1))))))&&(a5==5))&&(a9==9))&&(a19==3))&&((a1==14)&&((((a12==1)&&(((a17==2)&&(input==4))&&(a6==1)))&&(a2==1))&&(a11==1))))){ + a29 = 0; + a19 = 1; + a21 = 10; + a22 = 0; + a1 = 13; + a16 = 8; + a0 = 1; + a20 = 1; + a9 = 10; + a5 = 6; + return -1; + } else if((((((a6==1)&&((a3==1)&&(((input==4)&&(((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))))&&(a1==13))))&&(a20==1))&&!(a4==1))&&((((!(a11==1)||(((a17==2)&&((a13==1)&&(a19==2)))&&(a21==10)))&&(a16==9))&&!(a24==1))||!(a11==1)))){ + a1 = 12; + a9 = 7; + a3 = 1; + a28 = 1; + a16 = 7; + a19 = 1; + a5 = 4; + return -1; + } else if(((!(a18==1)&&((a12==1)&&(((a28==1)&&((a5==4)&&(!(a8==1)&&((a9==11)&&(a13==1)))))&&(a17==2))))&&((a16==7)&&((a13==1)&&(((a19==4)&&((a23==1)&&((a21==11)&&((input==6)&&(a1==13)))))&&!(a20==1)))))){ + a16 = 8; + a13 = 1; + a19 = 1; + a0 = 0; + a9 = 8; + a5 = 6; + a11 = 1; + a21 = 12; + a1 = 14; + a20 = 1; + return 21; + } else if(((!(a14==1)&&(((((a1==13)&&((a9==9)&&((a20==1)&&((a13==1)&&!(a0==1)))))||!(a6==1))&&(a19==5))&&!(a24==1)))&&(((a28==1)&&((a21==10)&&((a17==2)&&(((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a16==10)))))&&(a23==1)))){ + a1 = 12; + a16 = 7; + a9 = 7; + a5 = 4; + a2 = 1; + a0 = 0; + a19 = 1; + a18 = 0; + return -1; + } else if(((((a17==2)&&((!(a27==1)&&(((!(a8==1)&&((((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(input==6)))&&!(a8==1))&&!(a27==1)))&&(a12==1)))&&(a20==1))&&(((a1==13)&&(((a21==12)&&((a19==2)&&(a3==1)))||(a26==1)))&&(a16==10)))){ + a28 = 1; + a23 = 1; + a5 = 4; + a11 = 1; + a1 = 14; + a21 = 10; + a16 = 7; + a9 = 10; + return 21; + } else if((((a9==7)&&((a16==11)&&((a23==1)&&((((a23==1)&&(a11==1))||(a26==1))&&(a1==13)))))&&((a20==1)&&(!(a4==1)&&(!(a8==1)&&((a19==4)&&(((a6==1)&&((((a5==4)||(a5==5))&&(input==6))&&(a17==2)))&&(a21==12)))))))){ + a5 = 4; + a3 = 1; + a19 = 1; + a1 = 12; + a21 = 10; + a28 = 1; + a16 = 7; + a12 = 1; + return -1; + } else if(((!(a20==1)&&((((a21==11)&&((a3==1)&&(a16==9)))&&(a1==13))&&(a11==1)))&&((a19==1)&&(!(a4==1)&&(!(a24==1)&&(!(a26==1)&&((a17==2)&&((((((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(input==3))&&(a23==1))&&(a13==1))))))))){ + a20 = 1; + a21 = 12; + a25 = 1; + a16 = 10; + a6 = 0; + a9 = 11; + a1 = 14; + a5 = 4; + return 25; + } else if(((((a17==2)&&(((a2==1)&&((!(a0==1)&&(!(a3==1)||((a16==8)&&(a2==1))))&&(a13==1)))&&(a1==14)))||(a24==1))&&(!(a26==1)&&((a21==11)&&(((a19==5)&&((input==3)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5)))))&&(a20==1)))))){ + a21 = 10; + a11 = 1; + a13 = 1; + a27 = 0; + a5 = 4; + a1 = 12; + a19 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if(((!(a18==1)&&((a21==10)&&(((((((((a5==5)||(a5==6))&&(input==3))&&(a1==12))&&!(a14==1))&&(a2==1))&&!(a20==1))&&!(a14==1))&&(a9==11))))&&((((!(a4==1)&&((a2==1)&&(a23==1)))&&(a16==8))&&(a19==3))&&(a17==2)))){ + a19 = 1; + a28 = 1; + a9 = 7; + a20 = 1; + a16 = 7; + a24 = 0; + a6 = 1; + a5 = 4; + return -1; + } else if((((((a3==1)&&((a16==8)&&((((a1==13)&&(input==1))&&(a5==5))&&!(a20==1))))&&(a6==1))&&(a17==2))&&((((((a9==10)&&((a21==11)&&((a24==1)||(a11==1))))||!(a23==1))&&!(a24==1))||!(a23==1))&&(a19==2)))){ + a18 = 0; + a5 = 6; + a9 = 8; + a19 = 1; + a21 = 10; + a24 = 0; + a20 = 1; + a2 = 1; + return 26; + } else if(((((a8==1)||(!(a14==1)&&(!(a23==1)||(a2==1))))||!(a12==1))&&(((a1==12)&&(((((a17==2)&&((((input==1)&&(((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))))&&(a20==1))&&(a21==12)))&&(a19==3))&&(a16==8))&&(a28==1)))&&!(a7==1)))){ + a26 = 0; + a19 = 1; + a16 = 7; + a21 = 10; + a9 = 7; + a0 = 0; + a27 = 0; + a5 = 4; + return -1; + } else if((((a16==8)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a26==1))&&(a9==10))&&(a18==1)))&&(((!(a12==1)&&((a1==12)&&(!(a20==1)&&((((a17==2)&&((a11==1)&&(a19==3)))&&!(a11==1))&&(a14==1)))))&&!(a12==1))&&(a21==11)))){ + a1 = 13; + a16 = 7; + a20 = 1; + a9 = 7; + a19 = 1; + a12 = 0; + a26 = 1; + a21 = 10; + a7 = 1; + a5 = 4; + return 25; + } else if((((a9==7)&&((a19==2)&&(((a16==11)&&((a17==2)&&(!(a0==1)&&((a28==1)&&((((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&(a11==1))&&(a28==1))))))&&!(a20==1))))&&((a21==10)&&((!(a2==1)||((a13==1)&&(a13==1)))&&(a1==14))))){ + a16 = 9; + a8 = 1; + a15 = 1; + a22 = 1; + a20 = 1; + a21 = 12; + a9 = 9; + a5 = 5; + return -1; + } else if(((((!(a26==1)&&((a2==1)&&(((!(a26==1)&&(a2==1))||!(a28==1))&&(a19==3))))&&(a9==11))&&!(a20==1))&&((a16==8)&&((a21==10)&&((((a1==12)&&((a12==1)&&(((a5==5)||(a5==6))&&(input==6))))&&!(a7==1))&&(a17==2)))))){ + a18 = 0; + a0 = 0; + a5 = 5; + a14 = 0; + a20 = 1; + a19 = 2; + a9 = 7; + a16 = 9; + a21 = 12; + return 21; + } else if((((a1==13)&&((a6==1)&&((a26==1)||((a19==4)&&((a21==11)&&((a16==10)&&(a23==1)))))))&&(((!(a24==1)&&((a17==2)&&(!(a14==1)&&(!(a20==1)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==3))))))&&!(a24==1))&&!(a18==1)))){ + a10 = 1; + a5 = 6; + a19 = 1; + a1 = 12; + a11 = 0; + a21 = 10; + a16 = 7; + a20 = 1; + a22 = 0; + a9 = 9; + return -1; + } else if((((a9==11)&&(((((!(a12==1)&&(((a20==1)&&(input==3))&&(a1==12)))&&!(a11==1))&&(a26==1))&&(a16==9))&&(a5==6)))&&((((((!(a11==1)&&(a13==1))&&(a19==5))&&(a24==1))&&!(a12==1))&&(a17==2))&&(a21==10)))){ + a6 = 0; + a16 = 7; + a19 = 1; + a0 = 1; + a8 = 1; + return 25; + } else if((((a16==10)&&((a21==10)&&(!(a8==1)&&((a9==9)&&((((((((a13==1)&&(a19==3))&&(a6==1))&&(a11==1))&&(a17==2))&&(a1==12))&&!(a14==1))&&(a5==5))))))&&(((!(a20==1)&&(input==6))&&!(a26==1))&&!(a24==1)))){ + a28 = 0; + a19 = 5; + a8 = 1; + a9 = 10; + a16 = 9; + a23 = 0; + a5 = 6; + return 26; + } else if(((((a20==1)&&(((a19==5)&&(((a1==14)&&(((a17==2)&&((a21==12)&&(input==3)))&&(a11==1)))&&!(a27==1)))&&!(a4==1)))&&(a5==6))&&((a16==10)&&((((a9==9)&&((a11==1)||!(a28==1)))||!(a12==1))&&!(a4==1))))){ + a5 = 4; + a12 = 1; + a21 = 10; + a11 = 1; + a16 = 7; + a9 = 11; + a4 = 0; + a19 = 2; + return 21; + } else if((((((a16==7)&&((a17==2)&&(!(a3==1)||((a21==11)&&(a3==1)))))&&!(a8==1))&&!(a8==1))&&(((((((((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4)))&&(input==3))&&(a23==1))&&(a19==5))&&!(a27==1))&&(a1==13))&&!(a20==1))&&(a6==1)))){ + a24 = 0; + a1 = 12; + a9 = 10; + a19 = 1; + a20 = 1; + a5 = 4; + a18 = 0; + a2 = 1; + a21 = 12; + a16 = 8; + return -1; + } else if(((!(a7==1)&&(!(a4==1)&&((!(a24==1)&&((a9==9)&&((((input==1)&&(a1==13))&&!(a8==1))&&(a21==12))))&&(a20==1))))&&(((((((a6==1)&&(a5==6))||(a26==1))&&(a16==10))&&(a17==2))&&(a19==1))&&!(a24==1)))){ + a6 = 1; + a21 = 10; + a24 = 0; + a16 = 7; + a13 = 1; + a5 = 4; + a19 = 2; + return 25; + } else if((((a20==1)&&((!(a8==1)&&(((input==1)&&((a5==4)||(a5==5)))&&!(a27==1)))&&(a19==4)))&&((a17==2)&&((a9==10)&&((a21==12)&&((a1==12)&&(!(a12==1)||(((a16==7)&&((a8==1)||((a28==1)||!(a23==1))))||(a24==1))))))))){ + a2 = 1; + a7 = 0; + a5 = 4; + a21 = 10; + a19 = 1; + a9 = 7; + return -1; + } else if((((a16==8)&&(((a19==5)&&((a12==1)&&((((!(a14==1)&&(a12==1))&&(a17==2))&&(a1==12))&&!(a20==1))))||!(a6==1)))&&((a21==10)&&((((((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))&&(input==5))&&(a28==1))&&!(a4==1))&&!(a18==1))))){ + a7 = 0; + a21 = 12; + a5 = 5; + a1 = 14; + a20 = 1; + a9 = 10; + a13 = 1; + a0 = 0; + a19 = 3; + return 25; + } else if((((((a17==2)&&(!(a8==1)&&(((a13==1)&&((a13==1)&&(((a19==3)&&((a16==9)&&(input==6)))&&(a1==14))))&&!(a4==1))))&&(a20==1))&&(a21==12))&&((((a5==6)&&((a6==1)&&(a12==1)))&&(a9==7))&&(a23==1)))){ + a1 = 12; + a0 = 0; + a14 = 0; + a5 = 4; + a21 = 10; + a13 = 1; + a19 = 1; + a16 = 7; + return -1; + } else if(((((a19==5)&&((a17==2)&&(((a9==8)&&((a20==1)&&((a13==1)&&(((a2==1)||!(a13==1))&&(a5==6)))))&&!(a24==1))))&&(a16==11))&&(!(a24==1)&&(((a6==1)&&((a11==1)&&((a21==12)&&(input==3))))&&(a1==13))))){ + a21 = 10; + a28 = 1; + a1 = 12; + a5 = 4; + a18 = 0; + a19 = 1; + a16 = 7; + a0 = 0; + a9 = 7; + return -1; + } else if(((((a17==2)&&((a5==5)&&(!(a26==1)&&((a19==2)&&((a28==1)&&((a20==1)&&((a26==1)||(!(a2==1)||((a11==1)||(a27==1))))))))))&&(a1==13))&&((a16==9)&&((!(a27==1)&&((input==3)&&(a21==12)))&&(a9==11))))){ + a21 = 10; + a12 = 1; + a9 = 7; + a26 = 0; + a16 = 7; + a0 = 0; + a1 = 12; + a19 = 1; + a5 = 4; + return -1; + } else if((((a5==4)&&((a21==10)&&((a19==4)&&((!(a23==1)||((a20==1)&&(((((a6==1)&&(a3==1))&&(a9==11))&&(a16==11))&&(a3==1))))&&(a17==2)))))&&((!(a0==1)&&((a6==1)&&((input==6)&&(a1==13))))&&!(a14==1)))){ + a3 = 1; + a9 = 7; + a1 = 12; + a19 = 1; + a7 = 0; + a16 = 7; + a26 = 0; + return -1; + } else if((((a19==4)&&((a12==1)&&((a6==1)&&((((a12==1)&&((a16==8)&&(((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10)))&&(input==3))))&&(a20==1))&&(a1==12)))))&&((((a17==2)&&(((a21==10)&&(a23==1))&&(a28==1)))||(a0==1))||!(a3==1)))){ + a16 = 7; + a5 = 4; + a4 = 0; + a9 = 7; + a24 = 0; + a28 = 1; + a19 = 1; + return -1; + } else if((((((((a20==1)&&((a3==1)&&(a16==8)))||!(a28==1))||(a26==1))&&(a1==13))&&(a19==5))&&(((a9==8)&&((a21==10)&&(!(a26==1)&&(!(a18==1)&&((a17==2)&&(!(a8==1)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6)))))))))&&(a6==1)))){ + a5 = 4; + a24 = 0; + a1 = 12; + a9 = 7; + a19 = 1; + a16 = 7; + a8 = 0; + a3 = 1; + return -1; + } else if((((!(a20==1)&&((a21==11)&&(((a13==1)&&(((a3==1)&&((input==6)&&(a9==9)))&&(a16==9)))&&(a19==5))))&&(a1==13))&&((((((a5==5)&&(!(a11==1)||(a12==1)))||!(a28==1))&&!(a26==1))&&!(a27==1))&&(a17==2)))){ + a26 = 1; + a16 = 7; + a12 = 0; + a1 = 12; + a20 = 1; + a5 = 6; + a19 = 1; + a21 = 10; + a24 = 1; + a9 = 7; + return -1; + } else if(((((((!(a26==1)&&(((((input==6)&&(a16==8))&&(a9==11))&&(a2==1))&&(a13==1)))&&(a20==1))&&(a13==1))&&(a1==14))&&(a21==12))&&((a5==6)&&(((!(a8==1)&&((a3==1)&&(a19==2)))||!(a11==1))&&(a17==2))))){ + a1 = 12; + a9 = 7; + a16 = 7; + a7 = 0; + a21 = 10; + a24 = 0; + a19 = 1; + a12 = 1; + a5 = 4; + return -1; + } else if((((a27==1)||(((a28==1)&&((!(a7==1)&&((a2==1)&&(a5==5)))&&(a17==2)))&&!(a8==1)))&&(!(a24==1)&&((a21==10)&&(((((a9==7)&&((a19==1)&&((input==4)&&(a16==9))))&&(a20==1))&&(a1==12))&&!(a18==1)))))){ + a19 = 5; + a24 = 0; + a1 = 14; + a21 = 12; + a5 = 6; + a23 = 1; + a16 = 10; + return 21; + } else if(((((a5==5)&&(((input==3)&&(a17==2))&&(a21==12)))&&!(a27==1))&&(((((a19==2)&&((a1==14)&&((a8==1)||((a20==1)&&((a26==1)||(!(a18==1)&&((a2==1)||!(a12==1))))))))&&(a9==10))&&(a16==10))||(a4==1)))){ + a1 = 13; + a8 = 0; + a21 = 10; + a11 = 1; + a9 = 9; + a28 = 1; + a16 = 7; + return -1; + } else if((((a28==1)&&(!(a23==1)||(((a8==1)||(((a19==4)&&(a23==1))&&!(a20==1)))&&(a1==12))))&&((a17==2)&&((a6==1)&&(((a16==10)&&((((input==4)&&(((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))))&&(a11==1))&&(a6==1)))&&(a21==11)))))){ + if((a8==1)){ + a5 = 4; + a1 = 14; + a3 = 0; + a16 = 8; + a28 = 0; + a19 = 5; + a10 = 0; + a9 = 11; + }else{ + a19 = 1; + a21 = 10; + a9 = 7; + a1 = 13; + a5 = 5; + a25 = 1; + a20 = 1; + a16 = 7; + } + return 25; + } else if((((a2==1)&&((((((a28==1)&&((a17==2)&&(((input==1)&&((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11))))&&(a16==10))))&&(a19==5))&&(a23==1))&&(a1==12))&&(a21==10)))&&(!(a18==1)&&(((a18==1)||(!(a20==1)&&(a2==1)))&&(a11==1))))){ + if((a23==1)){ + a9 = 10; + a21 = 12; + a19 = 3; + a5 = 6; + a16 = 8; + a29 = 1; + a20 = 1; + a26 = 1; + a6 = 0; + }else{ + a0 = 1; + a28 = 0; + a9 = 7; + a5 = 4; + a18 = 1; + a16 = 8; + a1 = 13; + } + return -1; + } else if((((((a12==1)&&((a19==3)&&((((input==6)&&((a5==4)||(a5==5)))&&(a1==14))&&(a16==11))))&&!(a24==1))&&(a20==1))&&(((a3==1)&&((a9==10)&&((a21==11)&&((((a13==1)&&(a6==1))||!(a28==1))||(a0==1)))))&&(a17==2)))){ + a28 = 1; + a5 = 4; + a9 = 7; + a13 = 1; + a12 = 1; + a16 = 7; + a19 = 1; + a1 = 12; + a21 = 10; + return -1; + } else if(((((!(a20==1)&&((((a5==4)&&(a11==1))&&(a9==7))&&(a17==2)))||!(a11==1))&&(a1==14))&&((((a11==1)&&(((a11==1)&&(((a12==1)&&((a21==12)&&(input==3)))&&(a19==5)))&&(a16==10)))&&(a3==1))&&(a13==1)))){ + a16 = 7; + a7 = 1; + a20 = 1; + a1 = 12; + a9 = 9; + a21 = 10; + a29 = 1; + a19 = 2; + a5 = 5; + return -1; + } else if((((!(a11==1)||((((a11==1)&&(a21==10))&&!(a20==1))&&!(a14==1)))&&(a6==1))&&((a1==13)&&(!(a18==1)&&((a6==1)&&((a5==4)&&((a17==2)&&(((((a9==8)&&(input==3))&&(a16==10))&&(a19==1))&&(a6==1))))))))){ + a0 = 1; + a27 = 1; + a5 = 5; + a19 = 4; + a9 = 11; + a20 = 1; + return 21; + } else if(((!(a4==1)&&(((a8==1)||((((a16==7)&&(!(a12==1)||(a23==1)))&&(a19==4))&&(a17==2)))&&(a1==13)))&&(!(a14==1)&&((((a13==1)&&(((input==6)&&((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10))))&&(a20==1)))&&(a21==10))&&!(a24==1))))){ + a19 = 5; + a4 = 0; + a0 = 0; + a13 = 1; + a1 = 12; + a21 = 11; + a9 = 9; + a5 = 5; + return 26; + } else if((((a1==14)&&((((!(a27==1)&&((a20==1)&&(a3==1)))&&(a19==1))||(a26==1))&&(a9==9)))&&(((!(a18==1)&&(!(a8==1)&&((((a21==11)&&((input==1)&&((a5==5)||(a5==6))))&&(a6==1))&&!(a18==1))))&&(a16==9))&&(a17==2)))){ + a28 = 1; + a5 = 4; + a0 = 0; + a9 = 7; + a21 = 10; + a14 = 0; + a19 = 5; + a16 = 7; + return 25; + } else if((((a27==1)||((a5==4)&&((a24==1)||((a24==1)||((((a21==12)&&((a1==14)&&(a3==1)))&&(a20==1))||!(a12==1))))))&&((((a9==9)&&((a13==1)&&(((input==3)&&(a19==2))&&!(a0==1))))&&(a16==9))&&(a17==2)))){ + a19 = 1; + a21 = 10; + a9 = 7; + a11 = 1; + a16 = 7; + a1 = 12; + a28 = 1; + a26 = 0; + return -1; + } else if((((!(a20==1)&&(((a16==7)&&(((a6==1)&&!(a24==1))&&!(a27==1)))&&(a17==2)))&&!(a8==1))&&(!(a8==1)&&((a19==1)&&(!(a0==1)&&((a21==11)&&(((input==3)&&(((a9==7)&&((a5==4)&&(a1==14)))||((((a1==13)&&(a5==5))&&(a9==11))||(((a1==13)&&(a5==6))&&(a9==11)))))&&!(a7==1)))))))){ + a21 = 10; + a20 = 1; + a11 = 1; + a1 = 12; + a9 = 7; + a5 = 4; + a23 = 1; + return -1; + } else if((((a18==1)&&(((((a16==7)&&(a28==1))&&!(a2==1))&&(a9==7))&&(a1==13)))&&((a19==5)&&(((a7==1)&&(((a17==2)&&((((a8==1)&&((input==4)&&(a21==10)))&&(a7==1))&&(a5==4)))&&(a20==1)))&&(a4==1))))){ + a5 = 6; + a1 = 12; + a18 = 1; + a27 = 1; + a19 = 2; + a11 = 0; + return -1; + } else if(((!(a4==1)&&(((a23==1)&&((((a21==11)&&(a12==1))&&(a9==9))&&(a17==2)))||!(a3==1)))&&(!(a0==1)&&(((((a16==8)&&(!(a20==1)&&(((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a1==12))))&&(a19==3))&&(a13==1))&&(a3==1))))){ + a5 = 4; + a2 = 1; + a16 = 7; + a14 = 0; + a9 = 7; + a20 = 1; + a18 = 0; + a21 = 10; + a19 = 1; + return -1; + } else if((((a3==1)&&((((!(a14==1)&&((a23==1)&&((a20==1)&&((a9==11)&&(input==4)))))&&(a1==14))&&(a19==2))&&(a16==10)))&&((a13==1)&&(!(a23==1)||((!(a23==1)||((a17==2)&&((a5==5)&&(a13==1))))&&(a21==12)))))){ + a2 = 1; + a5 = 4; + a16 = 7; + a9 = 7; + a21 = 10; + a13 = 1; + a19 = 1; + a12 = 1; + a1 = 12; + return -1; + } else if((((a1==12)&&((a5==4)&&((a9==11)&&((!(a27==1)&&(((((input==1)&&(a21==12))&&!(a20==1))&&(a13==1))&&!(a7==1)))&&(a13==1)))))&&((a19==4)&&(((a8==1)||((a2==1)&&((a17==2)&&(a3==1))))&&(a16==7))))){ + a9 = 10; + a5 = 6; + a8 = 0; + a20 = 1; + a3 = 1; + a16 = 9; + a12 = 1; + a21 = 11; + return 23; + } else if((((((a5==4)&&(((a28==1)||(a27==1))&&(a9==11)))&&(a1==13))&&!(a0==1))&&((a11==1)&&((a6==1)&&((((a16==8)&&((a17==2)&&((a2==1)&&(((input==4)&&(a19==3))&&(a20==1)))))&&(a21==11))&&(a28==1)))))){ + a21 = 10; + a28 = 1; + a16 = 7; + a4 = 0; + a1 = 12; + a19 = 1; + a9 = 7; + a26 = 0; + return -1; + } else if((((!(a27==1)&&((a18==1)||((a17==2)&&((a23==1)&&!(a26==1)))))||(a14==1))&&((a28==1)&&((a19==4)&&(((((a21==10)&&(!(a20==1)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==1))))&&!(a24==1))&&(a16==7))&&(a1==12)))))){ + a24 = 0; + a16 = 11; + a8 = 0; + a13 = 1; + a5 = 5; + a9 = 7; + a20 = 1; + return 21; + } else if((((a20==1)&&(((a26==1)||((a21==11)&&((((a17==2)&&((a12==1)&&((a5==4)&&((a28==1)||(a27==1)))))||(a18==1))||!(a12==1))))||(a26==1)))&&(((((a9==10)&&(input==4))&&(a16==8))&&(a19==4))&&(a1==14)))){ + a1 = 12; + a21 = 10; + a23 = 1; + a11 = 1; + a16 = 7; + a9 = 7; + a19 = 1; + a3 = 1; + return -1; + } else if(((!(a26==1)&&((((a19==3)&&((a6==1)&&(a21==12)))&&(a20==1))||(a27==1)))&&((!(a14==1)&&((a11==1)&&(((a17==2)&&((a12==1)&&((input==4)&&((((a9==11)&&((a1==12)&&(a5==6)))||(((a1==13)&&(a5==4))&&(a9==7)))||((a9==7)&&((a5==5)&&(a1==13)))))))&&(a16==7))))&&(a6==1)))){ + a5 = 4; + a6 = 1; + a1 = 14; + a21 = 10; + a19 = 5; + a16 = 8; + a9 = 7; + a27 = 0; + a11 = 1; + return 25; + } else if(((!(a26==1)&&((((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6))))&&(input==4)))&&((a8==1)||(((((a1==14)&&((a17==2)&&((a16==11)&&((((a19==1)&&((a13==1)&&(a21==10)))&&!(a20==1))||(a18==1)))))||(a26==1))&&!(a8==1))||!(a23==1))))){ + if((a15==1)){ + a19 = 5; + a25 = 0; + a5 = 5; + a9 = 9; + a1 = 13; + a0 = 1; + a23 = 0; + a16 = 10; + }else{ + a24 = 1; + a16 = 7; + a22 = 0; + a1 = 12; + a20 = 1; + a5 = 5; + a9 = 10; + a25 = 1; + } + return 21; + } else if((((a19==3)&&((a9==8)&&(((a5==6)&&(((((a28==1)||(a24==1))&&!(a27==1))||!(a2==1))&&(a20==1)))||!(a23==1))))&&(((((((input==3)&&(a16==9))&&(a1==12))&&(a17==2))&&(a6==1))&&(a13==1))&&(a21==10)))){ + a16 = 10; + a7 = 0; + a2 = 1; + a5 = 4; + a11 = 1; + a19 = 1; + return 21; + } else if(((((((((!(a26==1)&&((input==5)&&((((a1==12)&&(a5==6))&&(a9==11))||(((a1==13)&&(a5==4))&&(a9==7)))))&&(a19==2))&&(a12==1))&&(a16==11))&&(a13==1))&&(a20==1))&&(a21==10))&&((a28==1)&&(!(a6==1)||(((a12==1)&&(a17==2))||!(a28==1)))))){ + a7 = 0; + a9 = 10; + a5 = 4; + a4 = 0; + a21 = 11; + a2 = 1; + a1 = 13; + return 23; + } else if(((((!(a20==1)&&((a3==1)&&(((a28==1)&&(a21==11))&&(a23==1))))&&(a17==2))||(a4==1))&&(((a3==1)&&((!(a7==1)&&(((a16==10)&&((a1==13)&&(((a5==4)||(a5==5))&&(input==3))))&&(a19==5)))&&!(a7==1)))&&(a9==9)))){ + a16 = 7; + a19 = 1; + a5 = 4; + a1 = 14; + a11 = 0; + a10 = 1; + a25 = 1; + a21 = 10; + a20 = 1; + return 21; + } else if(((((((a1==12)&&((a17==2)&&(((input==1)&&(a19==1))&&!(a18==1))))&&(a5==5))&&!(a24==1))&&(a16==8))&&((!(a24==1)&&((!(a24==1)&&((!(a20==1)&&((a12==1)&&!(a0==1)))&&(a21==10)))&&!(a8==1)))&&(a9==9)))){ + a28 = 1; + a14 = 0; + a16 = 7; + a5 = 4; + a20 = 1; + a18 = 0; + a9 = 7; + return -1; + } else if((((a19==5)&&(((a26==1)||(((a20==1)&&(!(a26==1)&&((a3==1)&&((a1==12)&&((a28==1)&&(a3==1))))))&&(a16==9)))&&(a9==8)))&&((((((input==4)&&((a5==4)||(a5==5)))&&!(a4==1))&&(a13==1))&&(a21==12))&&(a17==2)))){ + a9 = 7; + a19 = 1; + a24 = 0; + a21 = 10; + a8 = 0; + a5 = 4; + a16 = 7; + a0 = 0; + return -1; + } else if(((((a6==1)&&(!(a4==1)&&((((a9==11)&&((((((a4==1)||(a2==1))&&(a17==2))&&!(a26==1))&&(a16==9))&&(a5==5)))&&(a13==1))&&!(a18==1))))&&(a20==1))&&(((a1==13)&&((input==3)&&(a19==4)))&&(a21==12)))){ + a1 = 14; + a19 = 5; + a5 = 4; + a13 = 1; + a4 = 0; + a16 = 8; + a9 = 9; + a21 = 10; + return 22; + } else if(((((a16==11)&&((a28==1)&&((a12==1)&&((((input==3)&&((((a9==11)&&((a5==5)&&(a1==12)))||((a9==11)&&((a5==6)&&(a1==12))))||(((a5==4)&&(a1==13))&&(a9==7))))&&(a23==1))&&!(a26==1)))))&&(a17==2))&&((a21==11)&&((((a11==1)&&((a7==1)||(a13==1)))&&(a19==5))&&(a20==1))))){ + a28 = 1; + a19 = 1; + a5 = 4; + a1 = 12; + a21 = 10; + a9 = 7; + a6 = 1; + a16 = 7; + a11 = 1; + return -1; + } else if((((a17==2)&&(((((a23==1)&&((((input==3)&&(a5==4))&&!(a24==1))&&(a20==1)))&&!(a0==1))&&(a1==14))&&(a9==10)))&&(!(a23==1)||((a19==1)&&(((a21==11)&&((a24==1)||((a23==1)||!(a13==1))))&&(a16==9)))))){ + a4 = 0; + a21 = 10; + a9 = 7; + a1 = 12; + a16 = 7; + a7 = 0; + a18 = 0; + return -1; + } else if((((a14==1)||((a21==10)&&((a18==1)||((a3==1)&&((a23==1)&&(a19==2))))))&&(((a17==2)&&((a16==9)&&(((a20==1)&&(!(a24==1)&&(((a1==12)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5)))&&!(a0==1))))&&(a9==11))))&&!(a14==1)))){ + a2 = 1; + a9 = 8; + a1 = 14; + a23 = 1; + a5 = 4; + a12 = 1; + a16 = 10; + return 21; + } else if(((!(a4==1)&&(!(a12==1)||(!(a4==1)&&(!(a20==1)&&((a16==7)&&((a24==1)||(((a19==1)&&((a2==1)&&(a17==2)))&&(a21==12))))))))&&((a12==1)&&(((input==6)&&((((a9==11)&&((a5==6)&&(a1==13)))||(((a5==4)&&(a1==14))&&(a9==7)))||((a9==7)&&((a1==14)&&(a5==5)))))&&!(a24==1))))){ + a26 = 0; + a5 = 4; + a20 = 1; + a16 = 8; + a1 = 14; + a19 = 4; + a9 = 8; + a11 = 1; + return 25; + } else if(((!(a18==1)&&((!(a24==1)&&(!(a14==1)&&((a21==12)&&((input==5)&&(((a19==5)&&((a9==7)&&((a1==12)&&(a5==4))))||(((((a1==14)&&(a5==5))&&(a9==11))&&(a19==4))||(((a9==11)&&((a5==6)&&(a1==14)))&&(a19==4))))))))&&(a3==1)))&&((!(a20==1)&&(((a17==2)&&((a23==1)&&!(a7==1)))||(a14==1)))&&(a16==7)))){ + a1 = 14; + a19 = 2; + a9 = 10; + a23 = 1; + a5 = 6; + a16 = 9; + a20 = 1; + a27 = 0; + a21 = 11; + a12 = 1; + return 21; + } else if((((a9==7)&&((a16==10)&&((a1==13)&&((((!(a14==1)&&(a23==1))&&(a6==1))||!(a28==1))&&(a19==5)))))&&(!(a20==1)&&(!(a24==1)&&((((((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&(a17==2))&&(a21==11))&&(a2==1))&&!(a8==1)))))){ + a21 = 10; + a25 = 0; + a19 = 2; + a16 = 7; + a5 = 4; + a27 = 1; + a6 = 0; + a20 = 1; + return 22; + } else if(((((a1==14)&&(((a13==1)&&((a26==1)||(a13==1)))&&(a16==7)))&&(a19==4))&&(((a21==10)&&((a17==2)&&((!(a24==1)&&((a23==1)&&((a28==1)&&(((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4)))&&(input==1)))))&&(a2==1))))&&!(a20==1)))){ + a13 = 1; + a2 = 1; + a1 = 13; + a5 = 5; + a9 = 11; + a19 = 3; + a11 = 1; + return 21; + } else if((((!(a24==1)&&((a9==9)&&((a18==1)||(((!(a26==1)&&(a3==1))&&(a19==3))&&(a17==2)))))||(a24==1))&&((a28==1)&&((a1==13)&&(((!(a20==1)&&(((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&(a21==12)))&&!(a18==1))&&(a16==10)))))){ + if((a18==1)){ + a19 = 1; + a13 = 0; + a21 = 10; + a20 = 1; + a25 = 1; + a24 = 1; + a5 = 5; + a16 = 7; + }else{ + a1 = 12; + a14 = 1; + a29 = 0; + a9 = 7; + a5 = 4; + a20 = 1; + a21 = 10; + a16 = 7; + a18 = 1; + a19 = 2; + } + return 21; + } else if((((a19==1)&&(((a17==2)&&(!(a20==1)&&((a23==1)||!(a3==1))))&&(a1==12)))&&(((a16==8)&&((!(a7==1)&&(!(a7==1)&&((!(a0==1)&&(!(a18==1)&&(((a5==4)||(a5==5))&&(input==3))))&&(a21==12))))&&(a3==1)))&&(a9==11)))){ + a19 = 2; + a5 = 6; + a29 = 0; + a16 = 7; + a21 = 10; + a23 = 0; + a20 = 1; + a9 = 9; + a4 = 1; + return -1; + } else if((((((a9==8)&&(((!(a20==1)&&((a6==1)&&!(a8==1)))&&(a1==13))||!(a23==1)))&&(a28==1))&&(a17==2))&&((((a16==10)&&((a19==5)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a12==1))&&(a21==11))))&&!(a18==1))&&!(a14==1)))){ + a20 = 1; + a21 = 10; + a5 = 4; + a3 = 0; + a1 = 12; + a16 = 7; + a9 = 10; + a22 = 1; + a19 = 1; + a0 = 1; + return -1; + } else if(((!(a4==1)&&((a16==10)&&((((a11==1)&&(a1==14))&&!(a20==1))&&(a21==10))))&&((a23==1)&&(((((a23==1)&&((a19==1)&&((a17==2)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==4)))))&&!(a8==1))&&!(a18==1))&&(a28==1))))){ + a5 = 6; + a9 = 10; + a23 = 0; + a16 = 7; + a0 = 1; + a24 = 1; + a20 = 1; + return -1; + } else if((((a20==1)&&(((a9==11)&&((a6==1)&&(((((a3==1)||(a18==1))&&!(a7==1))&&(a5==4))&&(a28==1))))&&(a19==3)))&&((a1==12)&&(((a6==1)&&((a21==11)&&((a12==1)&&((a17==2)&&(input==6)))))&&(a16==8))))){ + a28 = 1; + a21 = 10; + a8 = 0; + a16 = 7; + a19 = 1; + a13 = 1; + a9 = 7; + return -1; + } else if((((a17==2)&&((a21==11)&&((((a7==1)||(a23==1))&&(a1==12))&&!(a4==1))))&&((((!(a20==1)&&((((!(a26==1)&&((input==5)&&((a5==5)||(a5==6))))&&(a16==7))&&(a2==1))&&(a23==1)))&&(a9==8))&&(a19==4))&&!(a0==1)))){ + a9 = 7; + a20 = 1; + a26 = 0; + a21 = 10; + a5 = 4; + a24 = 0; + a11 = 1; + a19 = 1; + return -1; + } else if(((((a16==8)&&(!(a18==1)&&(!(a24==1)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&!(a24==1))&&(a19==1)))))&&!(a20==1))&&((a21==12)&&((a17==2)&&((a9==8)&&((a1==12)&&((!(a12==1)||((a3==1)||(a8==1)))&&!(a24==1)))))))){ + a3 = 0; + a21 = 10; + a2 = 0; + a11 = 0; + a9 = 9; + a5 = 6; + a16 = 7; + a19 = 2; + return -1; + } return calculate_output24(input); + } + + int calculate_output24(int input) { + if((((a18==1)||(((a19==5)&&(a28==1))||!(a13==1)))&&((a17==2)&&(!(a7==1)&&((!(a0==1)&&(((a21==12)&&(((a20==1)&&((((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a16==10))&&!(a14==1)))&&(a1==14)))&&(a9==10)))&&!(a7==1)))))){ + a16 = 7; + a21 = 10; + a5 = 4; + a28 = 1; + a11 = 1; + a1 = 12; + a9 = 7; + a4 = 0; + a19 = 1; + return -1; + } else if(((((a17==2)&&((a16==8)&&(!(a26==1)&&(((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a13==1)))))&&(a21==11))&&(!(a11==1)||((a1==14)&&(((a13==1)&&(((a19==1)&&(((a3==1)&&(a20==1))&&!(a0==1)))&&(a12==1)))&&(a9==8)))))){ + if((a27==1)){ + a9 = 9; + a19 = 3; + a16 = 7; + a1 = 13; + a23 = 1; + a5 = 6; + a26 = 0; + a20 = 0; + }else{ + a2 = 1; + a19 = 3; + a5 = 5; + a21 = 10; + a1 = 13; + a26 = 0; + a0 = 0; + a16 = 10; + } + return 22; + } else if(((!(a27==1)&&((a16==8)&&((((((a9==11)&&((a1==14)&&(a5==6)))&&(a19==3))||((a19==4)&&(((a5==4)&&(a1==12))&&(a9==7))))&&(input==5))&&!(a14==1))))&&((!(a27==1)&&(((a6==1)&&((a21==12)&&(((a23==1)||!(a3==1))&&!(a20==1))))&&!(a0==1)))&&(a17==2)))){ + if((a1==14)){ + a3 = 0; + a21 = 10; + a10 = 1; + a20 = 1; + a1 = 12; + a25 = 1; + a5 = 5; + a9 = 11; + a16 = 7; + a19 = 1; + }else{ + a7 = 1; + a5 = 5; + a22 = 0; + a9 = 11; + a20 = 1; + a16 = 7; + a24 = 1; + a1 = 12; + a19 = 2; + a21 = 10; + } + return 26; + } else if((((((a21==12)&&((a14==1)&&((a14==1)&&((a19==3)&&((a26==1)&&((((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))&&(input==3))&&!(a28==1)))))))&&(a1==14))&&(a17==2))&&((a20==1)&&((a16==10)&&((!(a13==1)&&(a12==1))&&!(a6==1)))))){ + a1 = 12; + a9 = 7; + a16 = 11; + a28 = 0; + a19 = 2; + a15 = 0; + a23 = 0; + a21 = 11; + a5 = 6; + return -1; + } else if(((((((a13==1)&&((a3==1)&&(a19==4)))&&(a20==1))||(a4==1))&&!(a8==1))&&(!(a0==1)&&(!(a24==1)&&(((a16==8)&&((a21==12)&&((((((a5==4)||(a5==5))&&(input==3))&&(a1==12))&&!(a7==1))&&(a9==10))))&&(a17==2)))))){ + a23 = 1; + a4 = 0; + a21 = 10; + a5 = 4; + a24 = 0; + a9 = 7; + a19 = 1; + a16 = 7; + return -1; + } else if((((a17==2)&&((a6==1)&&(!(a20==1)&&((((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))&&(input==1))&&!(a26==1)))))&&((a16==8)&&((a1==13)&&((a18==1)||(!(a18==1)&&(!(a12==1)||((((a28==1)&&(a19==2))||(a4==1))&&(a21==11))))))))){ + a3 = 1; + a21 = 10; + a1 = 12; + a20 = 1; + a5 = 4; + a4 = 0; + a19 = 1; + a9 = 7; + a16 = 7; + a14 = 0; + return -1; + } else if(((((a9==9)&&(((!(a2==1)&&((a6==1)&&(a24==1)))&&(a21==11))&&!(a2==1)))&&(a17==2))&&((((a16==8)&&((a20==1)&&(((a1==14)&&(((input==5)&&((a5==5)||(a5==6)))&&!(a28==1)))&&!(a13==1))))&&!(a6==1))&&(a19==4)))){ + a12 = 0; + a9 = 11; + a1 = 12; + a29 = 0; + a21 = 10; + a18 = 1; + a16 = 7; + a5 = 4; + a19 = 2; + return -1; + } else if((((a17==2)&&(!(a14==1)&&((((a19==2)&&((input==5)&&((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))))&&!(a0==1))&&!(a24==1))))&&((a21==10)&&(((a16==10)&&((a4==1)||((a24==1)||(((a11==1)&&(a2==1))&&!(a20==1)))))&&(a1==13))))){ + if((a22==1)){ + a19 = 3; + a21 = 12; + a10 = 1; + a11 = 0; + a16 = 8; + a5 = 4; + a9 = 11; + }else{ + a18 = 1; + a16 = 7; + a21 = 12; + a12 = 0; + a20 = 1; + a1 = 14; + a5 = 5; + a10 = 1; + a9 = 8; + } + return -1; + } else if(((((a16==10)&&((a0==1)||(((a17==2)&&((((a2==1)||(a0==1))&&!(a20==1))&&(a28==1)))&&(a19==1))))&&(a21==11))&&((((!(a27==1)&&((a3==1)&&((input==6)&&(a1==13))))&&(a5==5))&&(a28==1))&&(a9==10)))){ + a6 = 0; + a25 = 0; + a1 = 14; + a19 = 2; + a23 = 0; + a9 = 7; + a21 = 12; + a20 = 1; + return -1; + } else if(((((a20==1)&&(((a6==1)&&(((a21==11)&&(!(a0==1)&&((input==1)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))))&&!(a14==1)))&&(a19==1)))&&(a16==9))&&((a1==13)&&((((!(a28==1)||(a28==1))&&(a28==1))&&!(a8==1))&&(a17==2))))){ + a19 = 4; + a21 = 10; + a12 = 1; + a16 = 8; + a8 = 0; + a1 = 14; + a14 = 0; + a5 = 4; + a9 = 10; + a20 = 0; + return 21; + } else if((((a16==7)&&((a27==1)||(!(a12==1)||(((a19==2)&&(((a14==1)||(a23==1))&&(a21==12)))&&!(a7==1)))))&&(((a20==1)&&((!(a24==1)&&((((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a5==4)&&(a9==9)))&&(input==6))&&(a1==14)))&&(a17==2)))&&(a23==1)))){ + a12 = 1; + a5 = 5; + a16 = 9; + a21 = 10; + a19 = 3; + a18 = 0; + a9 = 9; + return 26; + } else if(((((a21==11)&&(!(a8==1)&&((((a3==1)||(a26==1))&&(a20==1))&&(a19==4))))&&(a16==7))&&((a28==1)&&((a17==2)&&(((a1==14)&&((a23==1)&&(((((a5==4)||(a5==5))&&(input==6))&&(a2==1))&&(a23==1))))&&(a9==8)))))){ + a16 = 8; + a23 = 1; + a5 = 4; + a13 = 1; + a11 = 1; + a9 = 10; + return 21; + } else if((((a21==12)&&(((!(a14==1)&&(!(a0==1)&&((a5==5)&&(input==4))))&&!(a26==1))&&(a20==1)))&&((a16==9)&&((a1==13)&&(!(a26==1)&&(((a18==1)||(((!(a2==1)||(a12==1))&&(a9==10))&&(a17==2)))&&(a19==4))))))){ + a1 = 12; + a16 = 7; + a9 = 7; + a5 = 4; + a19 = 1; + a28 = 1; + a7 = 0; + a21 = 10; + a3 = 1; + return -1; + } else if(((!(a7==1)&&((!(a8==1)&&(!(a20==1)&&(((a17==2)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==4)))&&(a21==11))))&&!(a27==1)))&&((a1==13)&&((((((a16==9)&&(a12==1))||(a8==1))&&(a19==5))||!(a12==1))&&(a28==1))))){ + a5 = 6; + a13 = 0; + a19 = 3; + a24 = 1; + a20 = 1; + a9 = 11; + return 25; + } else if((((((a1==14)&&((a17==2)&&((a13==1)&&((a20==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5))))))))&&(a19==5))&&!(a24==1))&&((a21==12)&&(!(a6==1)||((((((a16==10)&&(a28==1))&&(a9==10))&&(a6==1))||!(a23==1))||!(a11==1)))))){ + if((a5==6)){ + a21 = 11; + a0 = 0; + a16 = 8; + a9 = 7; + a20 = 0; + a14 = 0; + a1 = 12; + a19 = 4; + a5 = 6; + a12 = 1; + }else{ + a16 = 8; + a5 = 6; + a9 = 7; + a23 = 1; + a11 = 1; + a2 = 1; + } + return 26; + } else if((((a28==1)&&((a21==10)&&((a16==7)&&((((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6))))&&(input==5)))))&&((a17==2)&&((!(a2==1)||(((a8==1)||((a6==1)&&((!(a28==1)||(!(a20==1)&&(a6==1)))&&(a19==1))))||!(a28==1)))&&(a1==14))))){ + a27 = 0; + a9 = 11; + a13 = 1; + a19 = 3; + a7 = 0; + a5 = 6; + a16 = 9; + a20 = 1; + a1 = 12; + return 25; + } else if(((((((!(a27==1)&&(!(a27==1)&&((a19==2)&&((a17==2)&&(input==5)))))&&(a1==13))&&(a9==9))&&(a16==10))&&!(a24==1))&&(!(a7==1)&&(!(a4==1)&&(!(a20==1)&&((((a5==5)&&(a11==1))&&(a21==11))&&!(a0==1))))))){ + a24 = 1; + a20 = 1; + a1 = 12; + a27 = 1; + a16 = 7; + a9 = 7; + a5 = 6; + a21 = 10; + return -1; + } else if(((((a0==1)||((((a21==10)&&((a1==13)&&((((a23==1)&&(a19==5))&&(a16==9))&&!(a20==1))))||!(a2==1))&&!(a27==1)))&&(a9==8))&&((a28==1)&&(!(a18==1)&&((a17==2)&&(((input==5)&&(a5==5))&&!(a7==1))))))){ + a21 = 12; + a11 = 0; + a8 = 1; + a14 = 1; + a9 = 9; + a1 = 14; + a16 = 11; + a20 = 1; + return -1; + } else if((((a26==1)||(!(a2==1)||((((a21==10)&&((a26==1)||(a13==1)))&&(a16==10))||!(a23==1))))&&((!(a0==1)&&((a20==1)&&(((a1==13)&&((a17==2)&&(((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))&&(input==1))))&&(a19==1))))&&!(a18==1)))){ + a1 = 12; + a5 = 4; + a13 = 1; + a26 = 0; + a27 = 0; + a9 = 7; + a16 = 7; + return -1; + } else if((((a9==10)&&((!(a27==1)&&((a19==5)&&(((a23==1)&&((a17==2)&&(!(a20==1)&&(a11==1))))||(a14==1))))&&(a16==8)))&&((a21==11)&&((((a1==12)&&(!(a0==1)&&((input==1)&&((a5==4)||(a5==5)))))&&!(a24==1))&&!(a0==1))))){ + a5 = 6; + a11 = 1; + a21 = 10; + a16 = 7; + a28 = 1; + a20 = 1; + a1 = 14; + a19 = 3; + a13 = 1; + return 25; + } else if((((!(a27==1)&&(((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&!(a8==1)))&&!(a24==1))&&(((a1==14)&&(((((a16==7)&&(((((a0==1)||(a11==1))&&(a9==11))&&(a17==2))&&(a19==5)))&&(a21==12))&&(a20==1))&&(a23==1)))&&!(a7==1)))){ + a21 = 10; + a19 = 1; + a1 = 12; + a2 = 1; + a5 = 4; + a18 = 0; + a7 = 0; + a9 = 7; + return -1; + } else if((((a16==10)&&(((!(a7==1)&&((!(a6==1)||((a9==11)&&((a19==2)&&(a13==1))))&&!(a8==1)))&&(a17==2))||(a8==1)))&&(((a1==12)&&((!(a26==1)&&(!(a7==1)&&((a5==6)&&(input==3))))&&(a21==12)))&&!(a20==1)))){ + if((a2==1)){ + a16 = 7; + a12 = 0; + a1 = 13; + a21 = 10; + a20 = 1; + a5 = 5; + a4 = 1; + a19 = 3; + a22 = 0; + }else{ + a1 = 13; + a5 = 4; + a21 = 10; + a6 = 0; + a19 = 1; + a0 = 1; + a16 = 7; + a20 = 1; + a7 = 1; + } + return -1; + } else if((((a16==7)&&(((((a28==1)&&((((a28==1)&&((a2==1)&&((a23==1)&&(((a5==4)||(a5==5))&&(input==1)))))&&(a9==7))&&(a20==1)))&&(a21==11))&&(a1==12))&&!(a8==1)))&&(((a17==2)&&((a3==1)||(a24==1)))&&(a19==1)))){ + a13 = 1; + a27 = 0; + a5 = 4; + a9 = 11; + a18 = 0; + a21 = 12; + a19 = 5; + return 22; + } else if((((((a23==1)&&(((a9==11)&&(a23==1))&&(a5==4)))&&(a16==8))&&!(a0==1))&&(((a17==2)&&((a11==1)&&((a19==2)&&((a1==12)&&(((a28==1)&&((a2==1)&&((input==5)&&(a20==1))))&&!(a27==1))))))&&(a21==11)))){ + a12 = 1; + a9 = 7; + a21 = 10; + a16 = 7; + a19 = 1; + a8 = 0; + a13 = 1; + return -1; + } else if(((!(a13==1)||(((!(a3==1)||(!(a24==1)&&(a11==1)))&&(a5==4))||(a4==1)))&&((a9==11)&&(((a11==1)&&((((a11==1)&&(!(a20==1)&&(((a19==2)&&(input==6))&&(a17==2))))&&(a21==10))&&(a1==14)))&&(a16==8))))){ + a20 = 1; + a4 = 0; + a19 = 5; + a21 = 12; + a7 = 0; + a1 = 13; + a9 = 10; + a27 = 0; + return -1; + } else if(((((((a13==1)&&((!(a14==1)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6))))&&(a21==12)))&&(a19==5))&&(a20==1))&&(a6==1))&&(((((((a16==8)&&((a11==1)||(a14==1)))&&(a9==8))&&(a1==13))&&(a17==2))&&(a6==1))||(a24==1)))){ + a13 = 1; + a21 = 10; + a5 = 4; + a9 = 7; + a16 = 7; + a19 = 1; + a28 = 1; + a1 = 12; + a6 = 1; + return -1; + } else if((((a3==1)&&((a21==11)&&((a19==3)&&((a14==1)||((a17==2)&&(((a28==1)||!(a6==1))&&(a2==1)))))))&&((a16==7)&&(!(a20==1)&&((a6==1)&&((a6==1)&&((a9==7)&&(((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a1==12))))))))){ + a23 = 1; + a26 = 0; + a19 = 1; + a5 = 4; + a20 = 1; + a21 = 10; + a24 = 0; + return -1; + } else if(((((a21==10)&&((((a5==6)&&((a17==2)&&(a28==1)))&&(a0==1))&&(a24==1)))&&(a1==13))&&((a9==7)&&((a18==1)&&((((a4==1)&&((((input==1)&&(a19==4))&&(a16==7))&&!(a12==1)))&&(a18==1))&&(a20==1)))))){ + a19 = 1; + a22 = 1; + a5 = 5; + a14 = 1; + a11 = 0; + a9 = 11; + return -1; + } else if(((((a21==12)&&((((a6==1)&&(((a3==1)&&((a16==8)&&((a17==2)&&((((a19==3)&&((a9==11)&&((a5==6)&&(a1==14))))||((a19==4)&&((a9==7)&&((a5==4)&&(a1==12)))))&&(input==6)))))&&!(a24==1)))&&(a11==1))&&(a6==1)))&&!(a0==1))&&(!(a20==1)&&(a2==1)))){ + if((a22==1)){ + a16 = 7; + a12 = 0; + a1 = 13; + a9 = 11; + a20 = 1; + a19 = 1; + a13 = 0; + a5 = 4; + a28 = 0; + a21 = 10; + }else{ + a16 = 7; + a23 = 0; + a19 = 1; + a1 = 14; + a9 = 9; + a5 = 5; + a29 = 1; + a21 = 10; + a13 = 0; + a20 = 1; + } + return 26; + } else if(((!(a18==1)&&((a16==7)&&((((a3==1)&&((a1==12)&&((a23==1)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6))))))&&(a21==10))&&(a17==2))))&&((a9==8)&&(!(a24==1)&&(((a20==1)&&(!(a13==1)||((a19==3)&&(a12==1))))||!(a28==1)))))){ + a19 = 1; + a2 = 1; + a24 = 0; + a5 = 4; + a9 = 7; + return -1; + } else if(((!(a2==1)&&((a19==2)&&(((a21==11)&&((((a5==5)&&(a2==1))&&(a4==1))&&(a1==13)))&&(a26==1))))&&(((a20==1)&&((!(a6==1)&&((a17==2)&&(((a16==9)&&(input==5))&&!(a23==1))))&&(a14==1)))&&(a9==8)))){ + a1 = 12; + a5 = 4; + a16 = 7; + a12 = 0; + a6 = 0; + a29 = 1; + a19 = 5; + a21 = 10; + return -1; + } else if((((!(a6==1)&&(!(a20==1)&&(!(a23==1)&&(((((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==1))&&(a1==13))&&(a21==11))&&(a19==4)))))&&(a17==2))&&(((a16==7)&&(!(a3==1)&&(((a28==1)&&!(a3==1))&&!(a12==1))))&&!(a2==1)))){ + a21 = 10; + a1 = 12; + a5 = 6; + a20 = 1; + a9 = 8; + a19 = 2; + a15 = 0; + a23 = 0; + return -1; + } else if((((((a27==1)||(((a9==11)&&((a13==1)&&(a19==4)))&&(a16==10)))||(a27==1))&&(a17==2))&&(((((a21==10)&&(!(a18==1)&&(((((a5==4)||(a5==5))&&(input==5))&&(a11==1))&&(a1==13))))&&(a23==1))&&!(a20==1))&&(a28==1)))){ + a10 = 0; + a19 = 2; + a21 = 11; + a29 = 0; + a6 = 0; + a16 = 9; + a5 = 4; + return -1; + } else if((((((a19==4)&&((a13==1)&&(((a20==1)&&((a16==9)&&((input==3)&&(((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))))))&&(a28==1))))&&(a1==12))&&!(a24==1))&&(!(a0==1)&&(((((a21==12)&&(a6==1))||(a27==1))&&!(a26==1))&&(a17==2))))){ + a3 = 1; + a11 = 1; + a21 = 10; + a16 = 7; + a0 = 0; + a9 = 7; + a19 = 1; + a5 = 4; + return -1; + } else if((((a7==1)||(((a17==2)&&(a12==1))&&(a13==1)))&&((a12==1)&&(((a16==11)&&((a1==14)&&((a9==7)&&((a20==1)&&((a21==10)&&((a19==4)&&((!(a0==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4)))&&(a11==1))))))))&&(a2==1))))){ + a26 = 0; + a13 = 1; + a2 = 1; + a1 = 12; + a5 = 4; + a19 = 1; + a16 = 7; + return -1; + } else if((((a20==1)&&((a1==13)&&((a3==1)&&((a24==1)||(((a13==1)&&(a13==1))&&(a17==2))))))&&((((((!(a7==1)&&((((a5==5)||(a5==6))&&(input==4))&&!(a0==1)))&&!(a18==1))&&(a16==8))&&(a21==11))&&(a19==3))&&(a9==8)))){ + a26 = 0; + a21 = 10; + a18 = 0; + a9 = 7; + a5 = 4; + a11 = 1; + a16 = 7; + a1 = 12; + a19 = 1; + return -1; + } else if((((a16==11)&&((a1==12)&&((a5==5)&&((!(a14==1)&&(((a20==1)&&(!(a24==1)&&((input==4)&&(a21==11))))&&(a2==1)))&&(a17==2)))))&&((!(a14==1)&&((!(a2==1)||((a19==1)&&(a11==1)))&&(a9==9)))||!(a6==1)))){ + a18 = 0; + a5 = 4; + a21 = 10; + a9 = 7; + a27 = 0; + a16 = 7; + return -1; + } else if(((!(a8==1)&&(!(a28==1)||(!(a3==1)||(((a23==1)&&(a9==11))&&(a17==2)))))&&((a1==14)&&(((a21==11)&&((!(a18==1)&&(!(a20==1)&&((!(a8==1)&&((input==3)&&(a19==1)))&&!(a14==1))))&&(a16==7)))&&(a5==6))))){ + a21 = 10; + a1 = 12; + a20 = 1; + a13 = 1; + a23 = 1; + a9 = 7; + a5 = 4; + a28 = 1; + return -1; + } else if((((((a19==3)&&((a1==12)&&((a3==1)&&(a21==10))))&&(a13==1))&&(a17==2))&&((a20==1)&&(!(a4==1)&&((!(a0==1)&&((a16==8)&&((a6==1)&&((a23==1)&&(((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5)))&&(input==1))))))&&(a13==1)))))){ + a5 = 4; + a1 = 13; + a28 = 1; + a9 = 11; + a12 = 1; + a21 = 12; + a16 = 9; + a19 = 4; + return 25; + } else if((((((a5==4)&&(a13==1))&&(a20==1))&&(a16==11))&&(!(a0==1)&&((!(a24==1)&&((a21==10)&&(((!(a24==1)&&((a9==7)&&((((a1==12)&&(input==4))&&(a19==2))&&(a3==1))))&&!(a26==1))&&!(a26==1))))&&(a17==2))))){ + a3 = 1; + a16 = 7; + a26 = 0; + a14 = 0; + a19 = 1; + return -1; + } else if(((!(a14==1)&&(!(a20==1)&&((((a6==1)&&(a3==1))&&(a1==12))&&(a23==1))))&&((a3==1)&&((a12==1)&&((((a11==1)&&(((((a19==5)&&(input==5))&&(a16==8))&&(a17==2))&&(a9==8)))&&(a21==12))&&(a5==5)))))){ + if((a27==1)){ + a16 = 9; + a9 = 10; + a27 = 1; + a2 = 0; + a21 = 10; + }else{ + a19 = 3; + a9 = 9; + a26 = 1; + a18 = 1; + a16 = 10; + a20 = 1; + a5 = 4; + a1 = 13; + } + return 26; + } else if((((((!(a11==1)||((a27==1)||((a19==2)&&((a28==1)&&(a23==1)))))||(a24==1))&&!(a7==1))||(a18==1))&&(((a17==2)&&((a21==10)&&((a16==7)&&((input==3)&&(((a9==7)&&((a1==14)&&(a5==5)))||((((a1==13)&&(a5==6))&&(a9==11))||((a9==7)&&((a1==14)&&(a5==4)))))))))&&(a20==1)))){ + a2 = 1; + a9 = 7; + a28 = 1; + a1 = 12; + a19 = 1; + a3 = 1; + a5 = 4; + return -1; + } else if((((a9==7)&&(((a21==12)&&((a20==1)&&((a11==1)&&((((a5==4)||(a5==5))&&(input==1))&&(a1==14)))))&&(a19==3)))&&((a17==2)&&(((a16==7)&&(!(a27==1)&&((a7==1)||(((a2==1)&&!(a14==1))&&!(a0==1)))))&&(a11==1))))){ + a16 = 8; + a23 = 1; + a13 = 1; + a19 = 1; + a5 = 6; + a9 = 8; + a12 = 1; + return 21; + } else if(((((a2==1)&&((!(a14==1)&&((a17==2)&&((a5==5)&&(input==6))))&&(a1==13)))&&!(a20==1))&&((((a16==10)&&((a28==1)&&(!(a23==1)||((a28==1)&&((a21==10)&&((a2==1)&&(a19==2)))))))&&(a2==1))&&(a9==11)))){ + a21 = 12; + a27 = 1; + a25 = 1; + a9 = 9; + a1 = 14; + a22 = 0; + return 22; + } else if((((a5==6)&&(((a16==10)&&((a9==7)&&((a13==1)&&(((input==3)&&(a21==12))&&(a19==3)))))&&(a20==1)))&&(((a1==12)&&((!(a13==1)||((((a26==1)||(a3==1))&&(a23==1))||!(a2==1)))||!(a6==1)))&&(a17==2)))){ + a5 = 4; + a7 = 0; + a21 = 10; + a16 = 7; + a8 = 0; + a3 = 1; + a19 = 1; + return -1; + } else if(((((!(a8==1)&&(a13==1))&&(a20==1))&&(a19==2))&&(((a21==10)&&(((a23==1)&&(!(a0==1)&&(((a9==10)&&((a5==4)&&((a17==2)&&(((a16==9)&&(input==5))&&(a23==1)))))&&(a13==1))))&&(a3==1)))&&(a1==13)))){ + a5 = 5; + a26 = 0; + a1 = 14; + a11 = 1; + a16 = 11; + a2 = 1; + a9 = 8; + a19 = 1; + return 23; + } else if(((((a23==1)&&(((a3==1)&&((a17==2)&&((a16==10)&&((a1==14)&&(((input==1)&&((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11))))&&!(a4==1))))))&&(a2==1)))&&(a20==1))&&((a21==12)&&((a19==3)&&((a27==1)||((a8==1)||(a11==1))))))){ + a0 = 0; + a16 = 7; + a9 = 7; + a1 = 12; + a19 = 1; + a5 = 4; + a21 = 10; + a14 = 0; + a13 = 1; + return -1; + } else if(((!(a12==1)||((a27==1)||((((!(a18==1)&&((((((a1==14)&&(a11==1))&&!(a26==1))&&(a5==6))||(a27==1))&&(a20==1)))&&(a9==8))&&(a16==11))||!(a28==1))))&&(((a21==10)&&((input==1)&&(a19==4)))&&(a17==2)))){ + a5 = 4; + a1 = 12; + a16 = 7; + a7 = 0; + a9 = 7; + a19 = 1; + a2 = 1; + a14 = 0; + return -1; + } else if((((!(a11==1)&&((a20==1)&&(!(a3==1)&&((a9==10)&&((((a12==1)&&(a1==12))&&(a7==1))&&(a21==10))))))&&!(a13==1))&&((!(a13==1)&&((a17==2)&&((((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&(a19==2))&&(a16==9))))&&(a7==1)))){ + a26 = 1; + a9 = 9; + a5 = 4; + a25 = 1; + a0 = 1; + return 21; + } else if((((!(a12==1)||(((a21==12)&&(a13==1))&&!(a20==1)))||!(a13==1))&&((((((a11==1)&&(!(a8==1)&&((a17==2)&&((a1==13)&&((input==4)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5))))))))&&(a16==8))&&(a19==4))&&(a13==1))&&(a3==1)))){ + a15 = 1; + a21 = 10; + a5 = 4; + a10 = 0; + a16 = 7; + a25 = 1; + a9 = 10; + a1 = 12; + a20 = 1; + a19 = 2; + return 21; + } else if(((!(a6==1)||((a8==1)||(((a17==2)&&((a13==1)&&(((a11==1)&&(a19==2))&&(a20==1))))||(a26==1))))&&((((((a23==1)&&((input==1)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))))&&(a16==8))&&(a21==12))&&!(a0==1))&&(a1==13)))){ + a21 = 10; + a24 = 0; + a5 = 4; + a14 = 0; + a16 = 7; + a2 = 1; + a19 = 1; + a1 = 12; + a9 = 7; + return -1; + } else if((((a12==1)&&((a3==1)&&((a1==14)&&((a16==9)&&(!(a20==1)&&((a21==11)&&((a2==1)&&(a19==4))))))))&&(!(a7==1)&&(!(a7==1)&&(((((input==4)&&(((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))))&&!(a24==1))&&(a17==2))&&!(a8==1)))))){ + a16 = 7; + a20 = 1; + a1 = 13; + a4 = 1; + a9 = 10; + a28 = 0; + a5 = 6; + a21 = 10; + a19 = 1; + a18 = 1; + return -1; + } else if(((((a1==14)&&((a14==1)||((a3==1)&&((a7==1)||((a3==1)&&(a17==2))))))&&(a21==10))&&((a16==11)&&((!(a18==1)&&(((a5==6)&&((a11==1)&&(((a19==1)&&(input==1))&&(a9==8))))&&(a20==1)))&&(a6==1))))){ + a21 = 11; + a8 = 0; + a2 = 1; + a3 = 1; + a19 = 2; + a9 = 9; + a1 = 12; + return 22; + } else if(((((a20==1)&&(!(a26==1)&&((a21==10)&&((a17==2)&&((a2==1)||!(a2==1))))))&&(a23==1))&&(((((a19==3)&&((a6==1)&&((input==3)&&(((((a5==6)&&(a1==12))&&(a9==11))||(((a5==4)&&(a1==13))&&(a9==7)))||(((a5==5)&&(a1==13))&&(a9==7))))))&&(a16==11))&&(a2==1))&&(a2==1)))){ + a18 = 0; + a2 = 1; + a5 = 4; + a1 = 12; + a9 = 7; + a19 = 1; + a14 = 0; + a16 = 7; + return -1; + } else if((((((a17==2)&&((((a4==1)||((a6==1)||!(a23==1)))&&(a6==1))&&(a16==10)))&&(a9==10))&&(a1==12))&&((a21==11)&&(((a20==1)&&((!(a0==1)&&(((a19==5)&&(input==3))&&(a5==6)))&&(a2==1)))&&(a6==1))))){ + a21 = 10; + a5 = 4; + a9 = 7; + a27 = 0; + a19 = 1; + a16 = 7; + a13 = 1; + return -1; + } else if((((a7==1)&&(((((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a1==12))&&(a16==9))&&(a19==2)))&&((((!(a23==1)&&((!(a2==1)&&((a21==11)&&(((a9==7)&&(a28==1))&&(a8==1))))&&(a17==2)))&&(a20==1))&&(a7==1))&&(a7==1)))){ + a19 = 4; + a21 = 10; + a16 = 10; + a12 = 0; + a14 = 1; + a15 = 1; + a5 = 5; + a1 = 14; + return -1; + } else if((((a19==3)&&((a17==2)&&((a9==11)&&((((((a20==1)&&(input==1))&&!(a24==1))&&(a5==6))&&(a6==1))&&(a16==9)))))&&(((((((a13==1)&&(a2==1))&&!(a24==1))||!(a28==1))||(a8==1))&&(a21==10))&&(a1==13)))){ + a24 = 0; + a4 = 0; + a5 = 4; + a16 = 7; + a9 = 7; + a19 = 1; + a1 = 12; + a18 = 0; + return -1; + } else if((((a19==5)&&((a20==1)&&((((a5==4)&&(a12==1))||!(a28==1))||!(a12==1))))&&((a1==14)&&((a13==1)&&(((a12==1)&&(((a6==1)&&((((a17==2)&&(input==3))&&(a16==9))&&(a9==9)))&&!(a24==1)))&&(a21==12)))))){ + a13 = 1; + a1 = 12; + a0 = 0; + a21 = 10; + a9 = 7; + a27 = 0; + a19 = 1; + a16 = 7; + return -1; + } else if(((((a21==11)&&(((a19==3)&&((a17==2)&&((a11==1)&&(((a13==1)&&!(a14==1))&&(a3==1)))))&&(a28==1)))&&(a9==10))&&((a1==12)&&((a16==10)&&((!(a8==1)&&((a20==1)&&((input==4)&&((a5==4)||(a5==5)))))&&(a11==1)))))){ + a9 = 7; + a21 = 10; + a14 = 0; + a16 = 7; + a5 = 4; + a19 = 1; + a4 = 0; + return -1; + } else if((((((a14==1)||((a21==11)&&(((a16==10)&&((a3==1)&&(a5==6)))&&(a20==1))))&&(a17==2))&&!(a27==1))&&((a6==1)&&((((a9==8)&&((a2==1)&&(((a1==12)&&(input==3))&&(a11==1))))&&(a19==2))&&!(a27==1))))){ + a5 = 4; + a18 = 0; + a23 = 1; + a16 = 7; + a21 = 10; + a1 = 13; + a24 = 0; + return 25; + } else if((((((!(a24==1)&&((a23==1)&&(((((a19==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&(a1==12))&&(a20==1))&&(a6==1))))&&!(a24==1))&&(a21==12))&&(a16==9))&&(((a17==2)&&(((a4==1)||(a3==1))&&!(a18==1)))&&(a9==10)))){ + a16 = 7; + a0 = 0; + a5 = 4; + a9 = 7; + a18 = 0; + a13 = 1; + a21 = 10; + return -1; + } else if(((((a21==11)&&((a9==8)&&(((a19==5)&&((a26==1)&&((a6==1)&&(a17==2))))&&(a1==13))))&&(a20==1))&&((a5==6)&&(!(a28==1)&&((a26==1)&&(!(a12==1)&&((a26==1)&&((a14==1)&&((a16==11)&&(input==4)))))))))){ + a3 = 0; + a28 = 0; + a21 = 10; + a5 = 4; + a1 = 14; + a16 = 7; + a0 = 1; + a19 = 1; + return 21; + } else if(((((((((a1==12)&&(a6==1))&&(a5==5))&&!(a20==1))||(a18==1))&&(a16==10))&&(a17==2))&&(((a23==1)&&(((((a13==1)&&((a19==1)&&((a9==10)&&(input==4))))&&(a21==11))&&(a6==1))&&!(a18==1)))&&!(a27==1)))){ + a21 = 10; + a4 = 1; + a20 = 1; + a9 = 9; + a2 = 0; + a16 = 7; + a22 = 0; + return -1; + } else if(((((a21==10)&&(!(a20==1)&&(((a17==2)&&((!(a6==1)||(a6==1))&&(a19==5)))||!(a6==1))))||!(a3==1))&&(!(a14==1)&&((a11==1)&&((((((input==5)&&((a5==4)||(a5==5)))&&(a6==1))&&(a1==12))&&(a9==9))&&(a16==10)))))){ + a9 = 11; + a26 = 1; + a5 = 4; + a13 = 0; + a1 = 14; + a19 = 1; + a20 = 1; + a16 = 7; + a27 = 1; + return 25; + } else if((((a1==14)&&((a19==5)&&((((a6==1)&&((((a5==4)||(a5==5))&&(input==1))&&(a12==1)))&&(a21==12))&&(a16==11))))&&(!(a12==1)||(!(a7==1)&&(!(a0==1)&&(!(a8==1)&&((a20==1)&&((a17==2)&&((a2==1)&&(a9==8)))))))))){ + a27 = 0; + a5 = 4; + a0 = 0; + a19 = 3; + a1 = 12; + a9 = 9; + a16 = 9; + a13 = 1; + return 21; + } else if(((!(a18==1)&&(((a6==1)&&((((a11==1)&&(a16==11))&&(a1==13))&&(a2==1)))&&(a28==1)))&&(!(a0==1)&&((!(a20==1)&&((((a17==2)&&(((a9==7)&&(input==5))&&(a19==1)))&&!(a0==1))&&(a21==10)))&&(a5==5))))){ + a21 = 11; + a5 = 6; + a6 = 0; + a19 = 5; + a15 = 0; + a9 = 11; + a10 = 0; + a16 = 8; + a1 = 12; + return 25; + } else if(((((a9==8)&&(!(a4==1)&&(((((a5==5)||(a5==6))&&(input==3))&&!(a27==1))&&(a17==2))))&&(a1==12))&&((a21==10)&&((!(a11==1)||((!(a23==1)||((a19==2)&&(((a20==1)&&(a3==1))&&!(a26==1))))&&(a16==10)))&&(a23==1))))){ + a26 = 0; + a27 = 0; + a1 = 14; + a19 = 1; + a5 = 5; + a9 = 11; + a13 = 1; + return -1; + } else if((((a16==10)&&(((a12==1)&&(a20==1))||(a18==1)))&&(!(a27==1)&&(!(a14==1)&&((a21==12)&&((((a1==13)&&((a19==3)&&((((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==1))&&(a13==1))&&(a17==2))))&&(a2==1))&&(a13==1))))))){ + if((a19==5)){ + a19 = 5; + a18 = 0; + a16 = 8; + a5 = 6; + a9 = 10; + a1 = 12; + a21 = 10; + a13 = 1; + a23 = 1; + a20 = 0; + }else{ + a1 = 14; + a19 = 2; + a21 = 10; + a16 = 7; + a5 = 4; + a4 = 0; + a14 = 0; + a3 = 1; + a9 = 10; + } + return 21; + } else if(((!(a8==1)&&((a17==2)&&((a21==11)&&((a11==1)&&(((!(a20==1)&&((a1==12)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==3))))&&(a23==1))&&(a16==10))))))&&(!(a13==1)||((a28==1)&&(((a11==1)&&(a19==1))&&!(a18==1)))))){ + a2 = 0; + a5 = 6; + a9 = 10; + a16 = 7; + a20 = 1; + a25 = 1; + a21 = 10; + a8 = 1; + return -1; + } else if((((((a19==2)&&(((a12==1)&&(((input==1)&&((((a9==11)&&((a5==5)&&(a1==12)))||(((a5==6)&&(a1==12))&&(a9==11)))||((a9==7)&&((a1==13)&&(a5==4)))))&&(a28==1)))&&(a2==1)))&&(a16==10))&&(a2==1))&&(((a17==2)&&((a21==10)&&(((a13==1)&&!(a20==1))&&(a28==1))))||(a7==1)))){ + a19 = 1; + a16 = 11; + a1 = 12; + a5 = 6; + a20 = 1; + a21 = 11; + a9 = 10; + a23 = 0; + a10 = 0; + a11 = 0; + return -1; + } else if((((a16==7)&&(((a19==5)&&((((!(a7==1)&&((a2==1)&&(a3==1)))&&(a1==13))||(a26==1))&&(a6==1)))&&(a21==10)))&&((((a17==2)&&(((input==3)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(a3==1)))&&(a20==1))&&(a11==1)))){ + a14 = 0; + a27 = 0; + a5 = 4; + a19 = 3; + a21 = 12; + a4 = 0; + a9 = 8; + return 22; + } else if((((a1==12)&&((a28==1)&&(!(a20==1)&&((a17==2)&&((((a19==5)&&(((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))&&(input==4)))&&!(a4==1))&&(a21==10))))))&&((((((a3==1)||(a7==1))||!(a11==1))||(a0==1))&&(a16==8))||(a26==1)))){ + a18 = 0; + a12 = 1; + a19 = 1; + a9 = 7; + a20 = 1; + a16 = 7; + a24 = 0; + a5 = 4; + return -1; + } else if((((a13==1)&&((a1==13)&&(!(a0==1)&&(((((a21==12)&&((a12==1)&&(a17==2)))||!(a6==1))||(a24==1))&&(a19==5)))))&&(((a3==1)&&((a16==7)&&(!(a8==1)&&((input==4)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))))))&&!(a20==1)))){ + a21 = 10; + a27 = 0; + a1 = 12; + a19 = 1; + a9 = 7; + a20 = 1; + a5 = 4; + a18 = 0; + a2 = 1; + return -1; + } else if(((((a1==12)&&(!(a7==1)&&(((((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==5))&&(a23==1))&&!(a7==1))&&!(a7==1))))&&(a19==4))&&((a21==12)&&((a26==1)||(!(a20==1)&&((a12==1)&&((a17==2)&&((a2==1)&&(a16==10))))))))){ + if((a8==1)){ + a15 = 1; + a21 = 10; + a19 = 1; + a5 = 5; + a16 = 7; + a11 = 0; + a28 = 0; + a9 = 11; + a20 = 1; + }else{ + a5 = 6; + a21 = 10; + a16 = 7; + a9 = 10; + a20 = 1; + a19 = 2; + a13 = 0; + a25 = 0; + a8 = 1; + } + return -1; + } else if(((!(a0==1)&&(!(a20==1)&&(!(a18==1)&&((a16==10)&&((a23==1)&&(((a21==10)&&(!(a18==1)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==5))))&&(a2==1)))))))&&(((a19==1)&&((a18==1)||((a6==1)&&(a1==12))))&&(a17==2)))){ + a20 = 1; + a14 = 1; + a15 = 1; + a16 = 7; + a5 = 5; + a18 = 1; + a9 = 11; + return 21; + } else if((((a17==2)&&((a12==1)&&(!(a8==1)&&(((((a28==1)&&((((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6))))&&(input==1)))&&(a21==12))&&(a3==1))&&(a11==1)))))&&((a16==10)&&(((a19==3)&&((!(a20==1)&&(a3==1))&&(a23==1)))&&(a1==12))))){ + if((a20==1)){ + a20 = 1; + a9 = 10; + a13 = 0; + a10 = 0; + a19 = 1; + a25 = 0; + a21 = 10; + a5 = 5; + a16 = 7; + }else{ + a6 = 0; + a5 = 4; + a16 = 7; + a3 = 0; + a19 = 1; + a21 = 10; + a25 = 1; + a9 = 10; + a20 = 1; + } + return -1; + } else if(((!(a2==1)||((a17==2)&&((a9==11)&&((a3==1)&&(!(a2==1)||(a23==1))))))&&(((a5==4)&&((a19==4)&&((a1==13)&&((!(a8==1)&&((a3==1)&&(((a21==10)&&(input==1))&&!(a14==1))))&&(a20==1)))))&&(a16==11)))){ + a9 = 10; + a21 = 11; + a7 = 0; + a2 = 1; + a1 = 12; + a5 = 5; + a13 = 1; + return 26; + } else if(((((a19==3)&&((((a20==1)&&(((input==1)&&((a5==4)||(a5==5)))&&(a21==11)))&&!(a18==1))&&(a16==9)))&&!(a24==1))&&((a23==1)&&((a12==1)&&(((a1==13)&&((a17==2)&&(((a13==1)&&(a9==11))||!(a13==1))))&&!(a18==1)))))){ + a11 = 1; + a1 = 14; + a14 = 0; + a5 = 4; + a19 = 5; + return 21; + } else if(((((a13==1)&&((a26==1)||((a16==9)&&((a6==1)||!(a2==1)))))&&(a1==14))&&((!(a26==1)&&((((((a19==3)&&((input==6)&&(((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))))&&(a17==2))&&(a21==11))&&!(a27==1))&&(a12==1)))&&(a20==1)))){ + a28 = 1; + a5 = 4; + a19 = 1; + a18 = 0; + a1 = 12; + a16 = 7; + a14 = 0; + a9 = 7; + a21 = 10; + return -1; + } else if((((a9==9)&&((!(a3==1)||((a3==1)&&(a23==1)))&&(a21==10)))&&((a1==14)&&((a19==2)&&((a17==2)&&((a23==1)&&((a6==1)&&((a16==10)&&(!(a20==1)&&((a11==1)&&(!(a24==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1))))))))))))){ + a2 = 0; + a5 = 5; + a1 = 13; + a18 = 1; + a20 = 1; + a16 = 7; + a25 = 1; + a19 = 1; + return -1; + } else if(((((((input==6)&&(((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))))&&(a18==1))&&(a16==10))&&(a17==2))&&((((a1==13)&&((a20==1)&&((a19==2)&&(!(a6==1)&&(((!(a3==1)&&(a13==1))&&(a21==12))&&(a24==1))))))&&!(a11==1))&&!(a28==1)))){ + a29 = 0; + a5 = 6; + a21 = 10; + a24 = 1; + a1 = 12; + a16 = 7; + a13 = 0; + a9 = 7; + a19 = 1; + return -1; + } else if((((((a9==9)&&(((a6==1)&&((a19==4)&&(input==1)))&&(a17==2)))&&!(a8==1))&&(a1==13))&&((a20==1)&&((a5==5)&&((a21==11)&&((a26==1)||((a0==1)||(!(a27==1)&&((!(a18==1)&&(a12==1))&&(a16==9)))))))))){ + if((a14==1)){ + a16 = 8; + a11 = 1; + a19 = 2; + a20 = 0; + a21 = 10; + a2 = 1; + a8 = 0; + a9 = 11; + a5 = 4; + a1 = 14; + }else{ + a1 = 12; + a13 = 1; + a16 = 8; + a20 = 0; + a9 = 7; + a6 = 1; + a23 = 1; + a5 = 6; + } + return -1; + } else if(((!(a20==1)&&(((((a27==1)||(((a23==1)||(a8==1))&&(a19==1)))||(a26==1))&&(a1==12))&&(a9==7)))&&(((a5==5)&&(((a17==2)&&((((a21==10)&&(input==1))&&(a11==1))&&!(a24==1)))&&!(a8==1)))&&(a16==7)))){ + a11 = 1; + a12 = 1; + a24 = 0; + a1 = 14; + a9 = 10; + return 23; + } else if((((a1==14)&&(!(a3==1)||((a14==1)||((a17==2)&&(((a19==3)&&(a11==1))&&(a16==11))))))&&(((((((a6==1)&&((input==1)&&((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))))&&(a11==1))&&!(a26==1))&&(a20==1))&&(a13==1))&&(a21==10)))){ + a1 = 12; + a13 = 1; + a9 = 7; + a7 = 0; + a16 = 7; + a19 = 1; + a5 = 4; + a27 = 0; + return -1; + } else if((((a2==1)&&((a16==9)&&((a21==10)&&((a1==12)&&((((a9==7)&&(a6==1))||!(a11==1))||!(a12==1))))))&&(((a17==2)&&((a12==1)&&((a12==1)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&(a19==3))&&(a20==1)))))&&(a11==1)))){ + a13 = 1; + a9 = 9; + a5 = 5; + a19 = 5; + a16 = 8; + a12 = 1; + a14 = 0; + return 26; + } else if(((((((a8==1)||(((!(a7==1)&&(a12==1))&&!(a20==1))||!(a12==1)))&&(a1==13))&&(a19==1))&&(a16==9))&&((a17==2)&&((a6==1)&&((a28==1)&&((((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==1))&&(a21==12))&&!(a0==1))))))){ + a22 = 1; + a23 = 0; + a27 = 1; + a19 = 5; + a16 = 8; + a9 = 9; + a5 = 4; + return -1; + } else if(((((a13==1)&&((a1==14)&&((!(a28==1)||(((a16==10)&&(!(a8==1)&&(a11==1)))&&(a20==1)))&&(a21==12))))&&(a17==2))&&(!(a7==1)&&(((a19==3)&&(!(a26==1)&&((input==4)&&((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4))))))&&!(a18==1))))){ + a7 = 0; + a1 = 12; + a16 = 7; + a21 = 10; + a19 = 1; + a5 = 4; + a23 = 1; + a9 = 7; + a3 = 1; + return -1; + } else if((((a9==9)&&(!(a27==1)&&(((a12==1)&&(a11==1))&&(a11==1))))&&((a21==10)&&(((((a6==1)&&((a19==1)&&(!(a7==1)&&(!(a20==1)&&((a23==1)&&(((a5==4)||(a5==5))&&(input==3)))))))&&(a1==12))&&(a16==10))&&(a17==2))))){ + if((a6==1)){ + a28 = 0; + a9 = 10; + a3 = 0; + a6 = 0; + a20 = 1; + a5 = 4; + a1 = 14; + a19 = 3; + }else{ + a16 = 9; + a1 = 14; + a27 = 1; + a21 = 12; + a5 = 4; + a19 = 3; + a20 = 1; + a10 = 1; + a24 = 1; + } + return 25; + } else if((((((a28==1)&&(((((a6==1)&&(a19==3))&&(a17==2))&&(a16==10))&&(a28==1)))&&(a21==12))||(a14==1))&&(!(a20==1)&&((a23==1)&&(!(a27==1)&&((a1==14)&&((a11==1)&&((((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8))))&&(input==5))))))))){ + a5 = 5; + a16 = 7; + a0 = 1; + a21 = 10; + a9 = 8; + a19 = 1; + a7 = 1; + a15 = 0; + a20 = 1; + a1 = 12; + return 25; + } else if((((a0==1)||(!(a14==1)&&((a19==1)&&((a16==9)&&(!(a20==1)&&(a13==1))))))&&(!(a14==1)&&(((!(a27==1)&&((a21==12)&&((a2==1)&&(((((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6))))&&(input==6))&&(a1==13)))))&&(a17==2))&&!(a0==1))))){ + if((a26==1)){ + a9 = 8; + a1 = 12; + a7 = 1; + a29 = 0; + a20 = 1; + a5 = 6; + a16 = 7; + a21 = 10; + }else{ + a5 = 4; + a24 = 1; + a22 = 0; + a16 = 7; + a21 = 10; + a9 = 7; + a1 = 14; + a20 = 1; + } + return 21; + } else if(((((((a21==10)&&(!(a20==1)&&((a2==1)&&(a11==1))))&&!(a18==1))&&!(a24==1))&&(a17==2))&&(((a6==1)&&((((a13==1)&&((a16==7)&&((((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6))))&&(input==5))))&&(a19==4))&&(a1==14)))&&!(a24==1)))){ + a1 = 12; + a6 = 1; + a9 = 7; + a3 = 1; + a28 = 1; + a19 = 1; + a20 = 1; + a5 = 4; + return -1; + } else if(((((a23==1)&&(((a27==1)||((a19==1)&&((a16==11)&&(a11==1))))||!(a6==1)))&&!(a20==1))&&((((((a1==14)&&(((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==1))&&(a21==10)))&&!(a14==1))&&!(a27==1))&&!(a8==1))&&(a17==2)))){ + if((a22==1)){ + a6 = 0; + a5 = 4; + a3 = 0; + a22 = 0; + a20 = 1; + a9 = 8; + a19 = 4; + }else{ + a3 = 0; + a11 = 0; + a19 = 3; + a1 = 13; + a9 = 8; + a21 = 11; + a8 = 1; + a5 = 4; + a16 = 8; + } + return -1; + } else if(((((((!(a8==1)&&(!(a13==1)||(a23==1)))&&!(a7==1))&&(a1==13))&&(a21==10))&&(a17==2))&&((a19==4)&&(((a23==1)&&(((a13==1)&&((a20==1)&&((input==5)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5))))))&&(a16==7)))&&(a3==1))))){ + a19 = 5; + a5 = 4; + a9 = 8; + a21 = 11; + a6 = 1; + a3 = 1; + a13 = 1; + return 25; + } else if((((a17==2)&&(((a16==10)&&((a21==10)&&((input==6)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))))&&(a1==14)))&&(((((!(a20==1)&&(((a12==1)&&((a19==1)&&(a6==1)))||(a4==1)))&&(a3==1))||(a24==1))&&(a3==1))&&(a6==1)))){ + if((a22==1)){ + a27 = 1; + a20 = 1; + a16 = 8; + a5 = 5; + a24 = 1; + a22 = 1; + a9 = 8; + }else{ + a24 = 1; + a20 = 1; + a16 = 7; + a9 = 10; + a27 = 1; + a5 = 4; + a7 = 1; + } + return -1; + } else if((((a16==9)&&(!(a18==1)&&(((a5==5)||(a5==6))&&(input==1))))&&(!(a12==1)||((a19==5)&&((a1==12)&&(!(a12==1)||(((a17==2)&&((((a21==11)&&((a12==1)&&((a18==1)||(a6==1))))&&(a11==1))&&(a20==1)))&&(a9==10)))))))){ + a16 = 7; + a19 = 1; + a21 = 10; + a9 = 7; + a8 = 0; + a24 = 0; + a23 = 1; + a5 = 4; + return -1; + } else if(((((((((((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(input==3))&&(a17==2))&&(a11==1))&&!(a26==1))&&(a1==13))&&(a21==11))&&(((a18==1)||((a18==1)||((a19==1)&&((a4==1)||(!(a23==1)||((a23==1)&&(a16==9)))))))&&!(a20==1)))){ + if((a18==1)){ + a20 = 1; + a23 = 0; + a1 = 12; + a19 = 2; + a9 = 9; + a22 = 1; + a5 = 5; + a16 = 7; + a3 = 0; + a21 = 10; + }else{ + a29 = 1; + a20 = 1; + a22 = 0; + a21 = 10; + a5 = 4; + a16 = 7; + a9 = 9; + a12 = 0; + } + return -1; + } else if((((a3==1)&&((a9==9)&&((a16==10)&&((a21==12)&&((a17==2)&&((!(a18==1)&&((input==5)&&(a19==1)))&&(a1==12)))))))&&(!(a20==1)&&(!(a8==1)&&((!(a0==1)&&(((a12==1)&&(a5==5))&&(a28==1)))&&(a3==1)))))){ + if((a9==10)){ + a21 = 10; + a5 = 6; + a1 = 13; + a8 = 1; + a20 = 1; + a25 = 0; + a24 = 1; + a16 = 7; + a9 = 10; + }else{ + a20 = 1; + a9 = 11; + a16 = 7; + a29 = 1; + a24 = 1; + a21 = 10; + a18 = 1; + a19 = 2; + } + return 25; + } else if((((a16==8)&&((a6==1)&&((input==4)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8))))))&&(((((a28==1)&&(!(a13==1)||((a21==12)&&(((((a11==1)&&(a2==1))||!(a23==1))&&(a17==2))&&!(a26==1)))))&&(a19==1))&&(a1==14))&&!(a20==1)))){ + if((a8==1)){ + a16 = 7; + a20 = 1; + a5 = 6; + a21 = 10; + a24 = 1; + a15 = 1; + a9 = 11; + a6 = 0; + }else{ + a1 = 12; + a29 = 1; + a5 = 5; + a6 = 0; + a16 = 7; + a9 = 7; + a21 = 10; + a20 = 1; + a19 = 2; + a18 = 1; + } + return 21; + } else if(((((a6==1)&&(((a13==1)&&(((((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7))))&&(input==3))&&!(a24==1)))&&(a19==1)))&&(a17==2))&&(!(a11==1)||((a20==1)&&(((a21==12)&&(!(a0==1)&&((a16==11)&&((a14==1)||(a2==1)))))&&(a1==12)))))){ + a5 = 4; + a21 = 10; + a18 = 0; + a2 = 1; + a6 = 1; + a9 = 7; + a16 = 7; + return -1; + } else if(((((a1==14)&&((a28==1)&&((a16==10)&&((a19==5)&&(!(a26==1)&&((((a6==1)&&(a12==1))&&(a13==1))||!(a12==1)))))))&&!(a20==1))&&(((((a5==4)&&((a17==2)&&(input==3)))&&(a9==8))&&(a23==1))&&(a21==10)))){ + a20 = 1; + a12 = 0; + a16 = 7; + a15 = 0; + a9 = 10; + a0 = 1; + a19 = 1; + return -1; + } else if((((a12==1)&&((!(a7==1)&&((((((a19==3)&&((a9==11)&&((a1==14)&&(a5==6))))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==4)))||((a19==4)&&(((a1==12)&&(a5==5))&&(a9==7))))&&(input==6))&&(a17==2)))&&(a20==1)))&&(!(a2==1)||((!(a28==1)||((((a16==10)&&(a11==1))&&(a28==1))&&(a21==10)))||(a18==1))))){ + a18 = 0; + a9 = 11; + a21 = 11; + a16 = 9; + a5 = 4; + a2 = 1; + a27 = 0; + a19 = 5; + a1 = 12; + return 21; + } else if((((((a16==7)&&((a1==14)&&((a11==1)&&(((a3==1)&&((a20==1)&&((input==3)&&((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a5==4)&&(a9==11))))))&&(a3==1)))))&&(a17==2))&&(a12==1))&&(((((a21==12)&&(a23==1))&&(a19==1))||!(a6==1))&&(a11==1)))){ + a1 = 12; + a21 = 10; + a28 = 1; + a9 = 7; + a11 = 1; + a5 = 4; + return -1; + } else if((((a3==1)&&(((!(a12==1)||(!(a20==1)&&(a23==1)))&&(a16==7))||(a8==1)))&&((((a17==2)&&((((a6==1)&&(((((a9==11)&&((a1==13)&&(a5==6)))||(((a5==4)&&(a1==14))&&(a9==7)))||(((a1==14)&&(a5==5))&&(a9==7)))&&(input==5)))&&!(a4==1))&&(a19==1)))&&(a21==12))&&(a28==1)))){ + a16 = 10; + a19 = 3; + a2 = 1; + a5 = 6; + a21 = 10; + a0 = 0; + a1 = 13; + a9 = 10; + a20 = 1; + a8 = 0; + return 25; + } else if(((!(a26==1)&&((a0==1)||((a11==1)&&(a20==1))))&&((((((a17==2)&&((a19==2)&&((a1==12)&&((((input==3)&&(((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))))&&!(a27==1))&&(a16==7)))))&&(a21==11))&&(a6==1))&&!(a18==1))&&(a12==1)))){ + a24 = 0; + a12 = 1; + a9 = 7; + a5 = 4; + a21 = 10; + a19 = 1; + a3 = 1; + return -1; + } else if(((((a19==3)&&((a17==2)&&(((a9==9)&&((a16==10)&&((a20==1)&&((((input==3)&&((a5==4)||(a5==5)))&&(a1==13))&&!(a27==1)))))&&!(a26==1))))&&!(a4==1))&&((!(a0==1)&&((a7==1)||((a2==1)&&(a21==11))))||!(a2==1)))){ + a19 = 1; + a28 = 1; + a9 = 7; + a1 = 12; + a16 = 7; + a21 = 10; + a5 = 4; + a2 = 1; + a24 = 0; + return -1; + } else if((((a13==1)&&((a0==1)||((((a20==1)&&((a21==11)&&((a16==10)&&(a23==1))))||(a26==1))||!(a28==1))))&&((a19==3)&&((a1==12)&&((((a23==1)&&((a17==2)&&((input==6)&&((a5==5)||(a5==6)))))&&(a9==11))&&!(a24==1)))))){ + a11 = 1; + a16 = 7; + a21 = 10; + a5 = 4; + a12 = 1; + a19 = 1; + a18 = 0; + a9 = 7; + return -1; + } else if(((((a21==11)&&(((a16==7)&&((a11==1)&&(a19==5)))&&(a3==1)))||(a27==1))&&(((a23==1)&&((((a1==13)&&(((!(a20==1)&&(((a5==5)||(a5==6))&&(input==6)))&&(a6==1))&&(a9==11)))&&(a17==2))&&(a13==1)))&&!(a7==1)))){ + a20 = 1; + a9 = 7; + a19 = 1; + a21 = 10; + a23 = 1; + a5 = 4; + a28 = 1; + a11 = 1; + a1 = 12; + return -1; + } else if(((((((((((a19==3)&&((a28==1)&&(a9==10)))&&(a18==1))&&!(a11==1))&&!(a3==1))&&(a0==1))&&!(a3==1))&&(a21==11))&&!(a20==1))&&((!(a13==1)&&((((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&(a16==8))&&(a1==12)))&&(a17==2)))){ + a19 = 1; + a8 = 1; + a16 = 7; + a5 = 4; + a9 = 11; + a7 = 1; + a21 = 10; + a20 = 1; + a28 = 0; + a1 = 14; + return 23; + } else if((((a20==1)&&((((!(a18==1)&&((input==5)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a18==1))&&!(a7==1))&&(a19==4)))&&((((a8==1)||(((a7==1)||((((a28==1)&&!(a26==1))&&(a17==2))&&(a1==13)))&&(a21==12)))&&(a16==10))&&(a9==11)))){ + a28 = 1; + a19 = 1; + a9 = 10; + a6 = 1; + a5 = 5; + a16 = 8; + a3 = 1; + a1 = 12; + return -1; + } else if((((a21==11)&&((a17==2)&&((a1==12)&&(((a19==4)&&(((input==5)&&((a5==5)||(a5==6)))&&!(a26==1)))&&!(a4==1)))))&&((((a9==8)&&((((a28==1)&&((a16==11)&&(a28==1)))&&(a20==1))&&!(a18==1)))||!(a28==1))||(a27==1)))){ + a9 = 7; + a16 = 7; + a19 = 1; + a5 = 4; + a12 = 1; + a28 = 1; + a21 = 10; + a11 = 1; + return -1; + } else if((((((((!(a27==1)&&(((a16==11)&&(!(a14==1)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==1))))&&(a6==1)))&&!(a0==1))&&(a19==2))&&(a23==1))&&(a21==10))&&!(a20==1))&&((a7==1)||((a1==12)&&((a17==2)&&(a11==1)))))){ + a5 = 5; + a9 = 10; + a19 = 1; + a16 = 7; + a26 = 1; + a3 = 0; + a20 = 1; + a1 = 13; + a10 = 1; + return 26; + } else if((((a9==10)&&(((a20==1)&&(((!(a12==1)||(((!(a28==1)||(a11==1))&&(a28==1))||(a14==1)))&&(a13==1))&&(a21==10)))&&(a1==12)))&&((a19==1)&&((a23==1)&&(((a17==2)&&(((a5==4)||(a5==5))&&(input==5)))&&(a16==9)))))){ + a9 = 7; + a16 = 7; + a24 = 0; + a28 = 1; + a18 = 0; + a5 = 4; + return -1; + } else if((((a16==7)&&(((!(a24==1)&&((a12==1)&&((a13==1)&&((input==1)&&((a5==5)||(a5==6))))))&&(a23==1))&&(a6==1)))&&((!(a20==1)&&((a17==2)&&((((a1==12)&&((a2==1)&&(a9==11)))&&(a21==12))&&!(a4==1))))&&(a19==4)))){ + a21 = 10; + a20 = 1; + a28 = 1; + a7 = 0; + a9 = 9; + a1 = 13; + a5 = 6; + a19 = 1; + a8 = 0; + a16 = 8; + return 22; + } else if((((a9==9)&&((a16==9)&&((((a17==2)&&((((a12==1)&&!(a4==1))&&(a12==1))&&(a21==12)))||(a8==1))||(a24==1))))&&((a19==3)&&(!(a27==1)&&(!(a20==1)&&(((a1==13)&&((input==4)&&((a5==5)||(a5==6))))&&!(a7==1))))))){ + a6 = 0; + a19 = 5; + a9 = 11; + a20 = 1; + a10 = 0; + a5 = 5; + a13 = 0; + return -1; + } else if((((a6==1)&&((((((((a26==1)||((a3==1)&&(a17==2)))&&(a20==1))&&(a1==12))&&(a16==11))&&(a21==10))||(a0==1))||!(a28==1)))&&(!(a27==1)&&(((((input==5)&&((a5==4)||(a5==5)))&&(a2==1))&&(a9==11))&&(a19==4))))){ + a16 = 7; + a19 = 1; + a9 = 7; + a5 = 4; + a11 = 1; + return -1; + } else if((((a19==1)&&((a2==1)&&((a6==1)&&((((input==1)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&!(a27==1))&&(a17==2)))))&&((a16==8)&&((!(a7==1)&&(((((a26==1)||(a13==1))&&(a21==11))||(a27==1))&&(a1==12)))&&!(a20==1))))){ + a5 = 4; + a9 = 8; + a0 = 0; + a16 = 10; + a24 = 0; + a20 = 1; + a6 = 1; + a1 = 13; + return 23; + } else if((((a9==7)&&((!(a26==1)&&(((a17==2)&&(input==1))&&(a28==1)))&&(a2==1)))&&((a16==8)&&(((a5==5)&&(((((((a12==1)&&(a12==1))&&(a1==13))&&(a20==1))&&!(a7==1))&&!(a7==1))&&(a21==12)))&&(a19==3))))){ + a23 = 1; + a19 = 2; + a24 = 0; + a16 = 10; + a9 = 11; + a26 = 0; + return 21; + } else if(((((a1==12)&&(((!(a18==1)&&((a28==1)&&((input==5)&&(a17==2))))&&!(a26==1))&&(a6==1)))&&(a16==9))&&((a9==7)&&((a19==1)&&((a21==11)&&(((a5==4)&&((!(a13==1)||(a28==1))||!(a3==1)))&&!(a20==1))))))){ + a29 = 1; + a20 = 1; + a13 = 0; + a5 = 6; + a16 = 7; + a9 = 10; + a2 = 0; + a21 = 10; + return -1; + } else if((((a6==1)&&((a5==5)&&(((((a28==1)&&((a16==7)&&(input==1)))&&(a17==2))&&(a21==12))&&!(a27==1))))&&((((((a28==1)&&((a1==13)&&((a23==1)&&(a19==1))))||!(a23==1))&&(a9==11))||(a0==1))&&!(a20==1)))){ + a2 = 1; + a13 = 1; + a20 = 1; + a1 = 12; + a9 = 7; + a21 = 10; + a8 = 0; + a5 = 4; + return -1; + } else if((((a18==1)||((((a17==2)&&((((a12==1)&&(a6==1))&&!(a7==1))&&(a1==13)))&&(a5==6))&&(a9==7)))&&((a20==1)&&((a21==12)&&(((!(a24==1)&&(!(a18==1)&&((a19==3)&&(input==1))))&&(a28==1))&&(a16==11)))))){ + a19 = 1; + a18 = 0; + a21 = 10; + a5 = 4; + a3 = 1; + a16 = 7; + a1 = 12; + return -1; + } else if((((a16==9)&&(((a2==1)&&(((!(a14==1)&&((a12==1)&&((a20==1)&&(input==6))))&&(a17==2))&&(a9==11)))&&(a1==13)))&&((a19==2)&&((a13==1)&&(((a21==10)&&((!(a2==1)||(a12==1))&&(a5==4)))&&(a12==1)))))){ + a19 = 1; + a1 = 12; + a26 = 0; + a14 = 0; + a16 = 7; + a9 = 7; + return -1; + } else if(((((((((a16==9)&&(((a19==2)&&(a11==1))||(a24==1)))||(a14==1))&&!(a4==1))&&(a20==1))&&(a21==11))&&(a9==8))&&((a17==2)&&(((((a11==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3)))&&(a1==14))&&!(a18==1))&&(a12==1))))){ + a11 = 1; + a9 = 7; + a16 = 7; + a28 = 1; + a1 = 12; + a8 = 0; + a21 = 10; + a5 = 4; + a19 = 1; + return -1; + } else if((((((a9==7)&&((a17==2)&&(((input==3)&&((a5==5)||(a5==6)))&&!(a26==1))))&&(a21==11))&&(a6==1))&&((a18==1)||((!(a8==1)&&((((((a2==1)&&(a19==4))||!(a12==1))&&(a1==12))&&(a16==9))&&(a28==1)))&&(a20==1))))){ + a5 = 4; + a3 = 1; + a19 = 1; + a16 = 7; + a26 = 0; + a2 = 1; + a21 = 10; + return -1; + } else if((((a16==10)&&((a23==1)&&(((((!(a26==1)&&(((input==6)&&((a5==4)||(a5==5)))&&(a19==2)))&&(a9==10))&&(a20==1))&&(a17==2))&&!(a26==1))))&&((a23==1)&&(!(a4==1)&&((a3==1)&&((a1==14)&&((a2==1)&&(a21==10)))))))){ + a7 = 0; + a1 = 12; + a9 = 7; + a8 = 0; + a5 = 4; + a16 = 7; + a24 = 0; + a19 = 1; + return -1; + } else if(((((!(a0==1)&&(!(a26==1)&&(((a2==1)&&((a19==2)&&((input==3)&&(a9==8))))&&(a16==8))))&&(a17==2))&&(a21==10))&&(((a1==14)&&(((a5==4)&&(((a20==1)&&(a6==1))||!(a12==1)))||(a0==1)))||(a4==1)))){ + a7 = 0; + a16 = 9; + a19 = 4; + a11 = 1; + a21 = 12; + a1 = 12; + return 26; + } else if(((!(a20==1)&&(((!(a14==1)&&((a12==1)&&((a9==10)&&(((a5==4)||(a5==5))&&(input==6)))))&&(a21==11))&&(a1==13)))&&(((((((a26==1)||((a17==2)&&(a23==1)))&&(a11==1))||!(a28==1))&&!(a4==1))&&(a19==4))&&(a16==7)))){ + a5 = 4; + a13 = 1; + a9 = 7; + a1 = 12; + a19 = 1; + a18 = 0; + a24 = 0; + a20 = 1; + a21 = 10; + return -1; + } else if((((a11==1)&&(((a23==1)&&(!(a7==1)&&((a16==7)&&((!(a14==1)&&((input==6)&&(((((a1==13)&&(a5==5))&&(a9==11))||(((a1==13)&&(a5==6))&&(a9==11)))||((a9==7)&&((a1==14)&&(a5==4))))))&&(a17==2)))))&&!(a26==1)))&&(((a19==2)&&((a20==1)&&((a6==1)&&(a21==11))))&&!(a8==1)))){ + a13 = 1; + a2 = 1; + a8 = 0; + a19 = 1; + a1 = 12; + a5 = 4; + a21 = 10; + a9 = 7; + return -1; + } else if((((!(a4==1)&&((a3==1)&&((((a6==1)&&((a20==1)&&(((a5==5)||(a5==6))&&(input==1))))&&(a6==1))&&(a17==2))))&&(a9==10))&&(((a1==13)&&((a19==5)&&(!(a0==1)&&((a16==8)&&((a6==1)||!(a11==1))))))&&(a21==10)))){ + a9 = 7; + a5 = 6; + a12 = 1; + a23 = 1; + a19 = 4; + a1 = 12; + return -1; + } else if((((a11==1)&&((a17==2)&&(!(a4==1)&&(((a6==1)&&(a20==1))&&(a1==13)))))&&(((a6==1)&&(!(a18==1)&&(((((a19==5)&&((input==5)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))&&(a21==12))&&(a16==7))&&!(a0==1))))&&!(a18==1)))){ + a21 = 11; + a24 = 0; + a5 = 4; + a7 = 0; + a16 = 9; + a9 = 10; + return 22; + } else if(((((a17==2)&&(((((a23==1)&&((input==3)&&(a5==4)))&&!(a20==1))&&(a16==9))&&(a19==1)))&&(a21==11))&&((a1==12)&&(((a8==1)||(((((a28==1)||(a7==1))||!(a28==1))&&(a6==1))||!(a13==1)))&&(a9==7))))){ + a16 = 8; + a20 = 1; + a1 = 14; + a9 = 11; + a25 = 0; + a21 = 12; + a22 = 1; + a19 = 3; + a27 = 1; + return 25; + } else if(((!(a20==1)&&((!(a3==1)||(((a5==4)&&((a11==1)&&!(a0==1)))||(a4==1)))&&(a19==5)))&&((a16==8)&&((a17==2)&&((!(a14==1)&&((((a9==7)&&((a21==12)&&(input==6)))&&(a1==14))&&(a23==1)))&&!(a0==1)))))){ + if((a2==1)){ + a5 = 6; + a1 = 12; + a15 = 0; + a8 = 1; + a21 = 11; + a19 = 3; + a16 = 7; + a29 = 0; + }else{ + a7 = 1; + a15 = 1; + a1 = 12; + a16 = 7; + a20 = 1; + a19 = 2; + a29 = 1; + a21 = 10; + } + return -1; + } else if(((((((a8==1)||((a28==1)&&((a1==12)&&(a11==1))))||!(a2==1))&&(a19==1))&&(a21==11))&&((a17==2)&&(((!(a0==1)&&((a16==9)&&((a13==1)&&((input==1)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))))))&&!(a24==1))&&(a20==1))))){ + a9 = 7; + a23 = 1; + a21 = 10; + a16 = 7; + a28 = 1; + a18 = 0; + a5 = 4; + return -1; + } else if((((a20==1)&&((!(a8==1)&&((a3==1)&&(((a23==1)&&!(a26==1))&&(a19==3))))||(a4==1)))&&((a21==12)&&((!(a7==1)&&((a16==9)&&((a9==11)&&((a17==2)&&((a3==1)&&((input==3)&&((a5==4)||(a5==5))))))))&&(a1==12))))){ + a21 = 10; + a19 = 1; + a9 = 7; + a8 = 0; + a28 = 1; + a16 = 7; + a5 = 4; + return -1; + } else if((((!(a8==1)&&(!(a24==1)&&((a19==2)&&(((((input==3)&&(a17==2))&&!(a0==1))&&(a23==1))&&(a5==4)))))&&!(a7==1))&&(((((((a1==13)&&(a12==1))&&(a21==12))&&(a9==11))&&(a16==10))&&(a20==1))||!(a3==1)))){ + a21 = 10; + a9 = 7; + a1 = 12; + a19 = 1; + a18 = 0; + a16 = 7; + a13 = 1; + return -1; + } else if((((((a2==1)&&((((a13==1)&&(a20==1))&&(a16==10))&&(a17==2)))&&!(a14==1))&&(a6==1))&&((((((a19==4)&&(((((a1==13)&&(a5==6))&&(a9==11))||(((a1==14)&&(a5==4))&&(a9==7)))&&(input==4)))&&(a21==10))&&!(a7==1))&&(a2==1))&&(a11==1)))){ + a18 = 0; + a6 = 1; + a11 = 1; + a19 = 1; + a16 = 7; + a5 = 4; + a1 = 12; + a9 = 7; + return -1; + } else if(((((a17==2)&&((!(a6==1)||(((a20==1)&&((a3==1)&&(a1==14)))&&(a21==11)))&&(a9==7)))&&!(a14==1))&&(!(a0==1)&&((a12==1)&&(!(a24==1)&&(((a19==5)&&((a16==9)&&((input==1)&&((a5==6)||((a5==4)||(a5==5))))))&&!(a7==1))))))){ + a20 = 0; + a19 = 4; + a1 = 12; + a9 = 8; + a5 = 5; + a6 = 1; + a16 = 8; + a8 = 0; + return 21; + } else if((((((a1==14)&&(!(a20==1)&&((a3==1)&&((a28==1)&&((input==6)&&(((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))))))))&&(a11==1))&&!(a24==1))&&(((!(a8==1)&&((a21==11)&&(((a23==1)&&(a17==2))&&(a16==7))))&&!(a27==1))&&(a19==4)))){ + a5 = 4; + a9 = 7; + a20 = 1; + a1 = 12; + a24 = 0; + a19 = 1; + a3 = 1; + a8 = 0; + a21 = 10; + return -1; + } else if(((((!(a20==1)&&((a3==1)&&(a17==2)))&&(a28==1))&&(a9==11))&&((!(a18==1)&&((a16==8)&&(!(a7==1)&&(!(a27==1)&&(((a19==1)&&((a1==12)&&((((a5==5)||(a5==6))&&(input==3))&&!(a26==1))))&&(a21==11))))))&&(a6==1)))){ + a9 = 7; + a5 = 4; + a16 = 7; + a3 = 1; + a20 = 1; + a7 = 0; + a21 = 10; + a13 = 1; + return -1; + } else if((((!(a8==1)&&(((a20==1)&&(!(a8==1)&&((a1==12)&&((((a5==4)||(a5==5))&&(input==1))&&!(a14==1)))))&&!(a27==1)))&&(a9==8))&&((a19==4)&&((a17==2)&&(((a13==1)&&(((a2==1)&&(a23==1))&&(a16==8)))&&(a21==10)))))){ + a5 = 4; + a9 = 7; + a0 = 0; + a16 = 7; + a26 = 0; + a19 = 1; + a18 = 0; + return -1; + } else if((((a1==14)&&((a16==8)&&(!(a8==1)&&((((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==1))&&(a12==1))&&!(a26==1)))))&&((a20==1)&&((a17==2)&&((a3==1)&&(((((a6==1)||!(a13==1))&&(a19==4))||(a26==1))&&(a21==12))))))){ + a5 = 5; + a7 = 0; + a27 = 0; + a19 = 5; + a9 = 8; + a21 = 10; + a3 = 1; + return 25; + } else if((((a21==10)&&((a9==7)&&((a17==2)&&((((a0==1)||(a12==1))&&(a16==9))&&(a3==1)))))&&((a19==5)&&(!(a20==1)&&(((!(a14==1)&&((a11==1)&&(((input==4)&&((a5==4)||(a5==5)))&&!(a0==1))))&&(a13==1))&&(a1==13)))))){ + if((a18==1)){ + a21 = 12; + a16 = 10; + a20 = 1; + a1 = 14; + a19 = 1; + a25 = 1; + a8 = 1; + a5 = 5; + a18 = 1; + a9 = 9; + }else{ + a16 = 7; + a20 = 1; + a5 = 4; + a3 = 0; + a25 = 1; + a29 = 0; + a21 = 11; + a9 = 8; + } + return 26; + } else if(((((a16==7)&&(((((a3==1)&&((!(a24==1)&&(a23==1))&&!(a27==1)))&&(a19==2))||(a0==1))&&(a9==8)))&&!(a20==1))&&(((a17==2)&&((a21==11)&&(!(a14==1)&&((a28==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5))))))))&&(a1==13)))){ + a9 = 11; + a2 = 1; + a20 = 1; + a5 = 6; + a21 = 10; + a19 = 5; + a24 = 0; + a14 = 0; + return 25; + } else if((((a5==5)&&((a28==1)&&(!(a27==1)&&(!(a2==1)||(a11==1)))))&&((((a17==2)&&((a3==1)&&(((a19==1)&&(((((input==5)&&(a21==10))&&(a11==1))&&(a16==9))&&!(a0==1)))&&!(a20==1))))&&(a9==9))&&(a1==13)))){ + if((a12==1)){ + a1 = 12; + a3 = 0; + a5 = 4; + a9 = 11; + a16 = 7; + a28 = 0; + a20 = 1; + }else{ + a14 = 1; + a16 = 7; + a20 = 1; + a1 = 12; + a11 = 0; + a9 = 10; + } + return -1; + } else if((((a5==5)&&((a1==13)&&(!(a8==1)&&((a16==7)&&(!(a0==1)&&(((input==4)&&(a21==12))&&!(a7==1)))))))&&(((!(a27==1)&&(((a9==9)&&((a19==3)&&((a17==2)&&(a12==1))))&&(a2==1)))&&!(a18==1))&&(a20==1)))){ + a19 = 5; + a27 = 0; + a2 = 1; + a9 = 8; + a1 = 14; + a13 = 1; + a16 = 8; + a5 = 6; + return 26; + } else if((((((((a4==1)||((a12==1)&&(a16==9)))&&(a3==1))&&(a21==10))&&(a28==1))&&!(a18==1))&&((((((a19==1)&&((((((a1==12)&&(a5==5))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==12))))||(((a5==4)&&(a1==13))&&(a9==7)))&&(input==3)))&&(a20==1))&&!(a14==1))&&(a17==2))&&!(a14==1)))){ + a6 = 1; + a16 = 7; + a1 = 12; + a7 = 0; + a5 = 4; + a2 = 1; + a9 = 7; + return -1; + } else if((((a20==1)&&((a9==8)&&((a3==1)&&((((a13==1)&&(a16==11))&&(a19==2))||(a26==1)))))&&((a21==10)&&((a1==14)&&((a17==2)&&((a6==1)&&(!(a14==1)&&((a2==1)&&(((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a13==1)))))))))){ + a3 = 1; + a5 = 5; + a2 = 1; + a9 = 10; + a21 = 11; + return 21; + } else if(((((a21==10)&&((a19==5)&&((a2==1)&&(((a8==1)||(!(a12==1)||((a4==1)||(a11==1))))&&(a9==7)))))&&(a20==1))&&((((!(a14==1)&&((a17==2)&&((input==4)&&(a16==7))))&&(a2==1))&&(a1==14))&&(a5==5)))){ + a19 = 4; + a24 = 0; + a23 = 1; + a1 = 13; + a3 = 1; + a21 = 12; + a5 = 4; + return 21; + } else if(((!(a28==1)||(((a8==1)||(((a6==1)||(a8==1))||(a14==1)))&&(a28==1)))&&((a21==11)&&((((((!(a20==1)&&((((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(input==4)))&&(a17==2))&&(a19==4))&&!(a26==1))&&(a1==14))&&(a16==8))))){ + a5 = 4; + a20 = 1; + a9 = 7; + a21 = 10; + a1 = 12; + a19 = 1; + a28 = 1; + a6 = 1; + a0 = 0; + a16 = 7; + return -1; + } else if((((a17==2)&&((a20==1)&&((a19==2)&&(((a4==1)||((a2==1)&&(a16==11)))||(a26==1)))))&&((a21==11)&&(((((a28==1)&&((a3==1)&&((a9==11)&&((a1==12)&&(input==6)))))&&(a5==5))&&(a23==1))&&!(a7==1))))){ + a3 = 1; + a18 = 0; + a19 = 3; + a5 = 6; + a2 = 1; + a21 = 10; + a16 = 9; + a9 = 10; + return 25; + } else if((((a9==9)&&((a19==5)&&((a21==10)&&((a20==1)&&(input==6)))))&&((a1==12)&&((a17==2)&&((a5==4)&&(((((a26==1)&&((((a13==1)&&(a27==1))&&(a8==1))&&(a8==1)))&&!(a12==1))&&(a16==8))&&(a27==1))))))){ + a5 = 5; + a20 = 0; + a6 = 0; + a16 = 7; + a9 = 11; + a18 = 1; + a15 = 1; + a1 = 14; + a21 = 11; + return -1; + } else if((((a21==10)&&(!(a0==1)&&(((!(a26==1)&&((!(a8==1)&&((input==4)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))))&&!(a20==1)))&&!(a4==1))&&(a19==3))))&&((((((a3==1)&&(a6==1))||(a4==1))&&(a1==12))&&(a17==2))&&(a16==9)))){ + a16 = 8; + a19 = 4; + a23 = 0; + a10 = 0; + a9 = 7; + a15 = 0; + a21 = 11; + a5 = 4; + return -1; + } else if((((a21==12)&&((a19==4)&&(((a20==1)&&((a16==8)&&((a7==1)||((a13==1)||(a8==1)))))&&(a9==7))))&&((!(a27==1)&&(!(a26==1)&&(((!(a4==1)&&((input==6)&&(a5==4)))&&!(a24==1))&&(a17==2))))&&(a1==14)))){ + a21 = 10; + a1 = 13; + a9 = 9; + a5 = 5; + a13 = 1; + a19 = 2; + a16 = 7; + a7 = 0; + a6 = 1; + return 23; + } else if((((a6==1)&&(!(a14==1)&&(((a3==1)&&(((a1==12)&&((((a5==4)||(a5==5))&&(input==1))&&(a21==10)))&&(a9==9)))&&(a13==1))))&&((a0==1)||(((a19==1)&&((a17==2)&&(((a2==1)&&!(a20==1))&&(a16==11))))&&(a2==1))))){ + a19 = 2; + a5 = 6; + a2 = 0; + a27 = 1; + a16 = 7; + a15 = 0; + a9 = 7; + a20 = 1; + return -1; + } else if((((a26==1)||((a3==1)&&(((a24==1)||(((a19==2)&&(a12==1))&&(a21==12)))&&(a5==6))))&&((((a17==2)&&(!(a20==1)&&(((a1==12)&&((a12==1)&&((input==1)&&(a16==8))))&&(a9==10))))&&!(a24==1))&&(a11==1)))){ + a26 = 1; + a20 = 1; + a22 = 1; + a21 = 10; + a16 = 7; + a19 = 1; + a10 = 0; + return 21; + } else if(((((a1==12)&&(((a21==10)&&(((((input==5)&&((a5==5)||(a5==6)))&&(a9==7))&&(a20==1))&&(a13==1)))&&(a13==1)))&&(a6==1))&&(((a6==1)&&(((a17==2)&&(((a19==2)&&(a2==1))&&(a28==1)))&&(a16==9)))||(a7==1)))){ + a16 = 11; + a23 = 1; + a0 = 0; + a19 = 1; + a9 = 8; + a1 = 13; + a5 = 4; + a2 = 1; + return 25; + } else if((((!(a3==1)||((a8==1)||(((((a1==13)&&(a3==1))&&!(a20==1))&&!(a24==1))&&(a19==1))))&&(a13==1))&&((a23==1)&&(((a21==12)&&((((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))&&(input==5))&&(a16==7))&&(a17==2)))&&!(a24==1))))){ + a2 = 1; + a16 = 10; + a20 = 1; + a19 = 2; + a9 = 8; + a3 = 1; + a1 = 14; + a21 = 10; + a5 = 6; + a7 = 0; + return 21; + } else if((((a13==1)&&((a28==1)&&(((((a21==10)&&((a9==11)&&(((a5==4)||(a5==5))&&(input==3))))&&(a12==1))&&!(a7==1))&&(a20==1))))&&(((a16==10)&&(!(a28==1)||((a19==5)&&((a17==2)&&((a13==1)&&(a1==12))))))||!(a13==1)))){ + a19 = 1; + a18 = 0; + a2 = 1; + a11 = 1; + a9 = 7; + a16 = 7; + a5 = 4; + return -1; + } else if((((a17==2)&&(((a11==1)&&!(a4==1))&&(a23==1)))&&((a20==1)&&((a19==2)&&(((((!(a4==1)&&((a16==7)&&((((((a1==13)&&(a5==6))&&(a9==11))||(((a5==4)&&(a1==14))&&(a9==7)))||(((a5==5)&&(a1==14))&&(a9==7)))&&(input==6))))&&(a6==1))&&!(a0==1))&&(a21==10))&&!(a27==1)))))){ + a26 = 0; + a6 = 1; + a9 = 8; + a5 = 5; + a1 = 12; + a19 = 4; + return 25; + } else if(((((a28==1)&&((a9==9)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a1==12))&&(a3==1))))&&(a20==1))&&(((((((a17==2)&&(((a13==1)&&(a16==7))||!(a28==1)))||!(a11==1))||(a8==1))||(a7==1))&&(a19==2))&&(a21==12)))){ + a1 = 13; + a16 = 9; + a26 = 0; + a6 = 1; + a5 = 4; + a21 = 10; + a18 = 0; + return 25; + } else if(((((!(a7==1)&&((a1==13)&&((a5==5)&&((a9==7)&&(a28==1)))))||!(a2==1))&&(a2==1))&&((a28==1)&&((a16==8)&&(((a2==1)&&((((a19==2)&&((a17==2)&&(input==1)))&&!(a18==1))&&(a20==1)))&&(a21==11)))))){ + a3 = 1; + a5 = 6; + a1 = 12; + a28 = 1; + a11 = 1; + a19 = 4; + a16 = 10; + a9 = 9; + a21 = 10; + return 22; + } else if(((!(a14==1)&&((a19==3)&&(!(a8==1)&&((a2==1)&&(((input==5)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(a16==7))))))&&((a2==1)&&(((!(a20==1)&&(((a24==1)||((a12==1)&&(a21==11)))&&(a17==2)))&&(a1==14))||!(a3==1))))){ + a5 = 6; + a21 = 12; + a20 = 1; + a16 = 8; + a9 = 8; + a19 = 1; + a4 = 0; + a27 = 0; + a24 = 0; + return 21; + } else if((((a21==12)&&(!(a24==1)&&(((a23==1)&&(((a17==2)&&(((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&(a16==8)))&&(a13==1)))&&!(a26==1))))&&((((((a4==1)||((a2==1)&&!(a18==1)))&&(a9==10))&&(a20==1))&&(a1==13))&&(a19==3)))){ + if((a24==1)){ + a16 = 7; + a21 = 11; + a26 = 0; + a20 = 0; + a13 = 1; + a1 = 12; + a9 = 11; + a5 = 4; + }else{ + a5 = 5; + a16 = 10; + a2 = 1; + a4 = 0; + a1 = 14; + a19 = 2; + a27 = 0; + a9 = 9; + } + return 22; + } else if(((!(a20==1)&&((a28==1)&&(!(a18==1)&&((a17==2)&&((a21==12)&&((a6==1)&&((a9==11)&&(((a5==4)&&(input==6))&&!(a0==1)))))))))&&(((a16==9)&&(!(a4==1)&&(((a28==1)&&(a13==1))&&(a1==13))))&&(a19==4)))){ + a16 = 7; + a5 = 6; + a19 = 1; + a1 = 14; + a22 = 1; + a15 = 1; + a20 = 1; + a18 = 1; + a21 = 10; + return 25; + } else if((((((((a1==14)&&((a16==11)&&((a17==2)&&((a13==1)&&!(a4==1)))))&&!(a20==1))&&(a21==10))&&!(a26==1))||(a26==1))&&((!(a27==1)&&((a28==1)&&(((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==6))&&(a19==1))))&&!(a4==1)))){ + if((a7==1)){ + a5 = 6; + a4 = 1; + a16 = 7; + a9 = 7; + a20 = 1; + a8 = 1; + a28 = 0; + }else{ + a22 = 1; + a20 = 1; + a5 = 5; + a19 = 2; + a1 = 12; + a25 = 0; + a9 = 9; + a16 = 7; + a0 = 1; + } + return 21; + } else if((((a11==1)&&((((input==6)&&(((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))))&&!(a20==1))&&(a12==1)))&&(((a17==2)&&((a19==2)&&(!(a13==1)||((((((a1==13)&&(a12==1))||(a18==1))&&(a16==10))&&!(a8==1))&&(a21==12)))))||(a26==1)))){ + a25 = 1; + a19 = 5; + a3 = 0; + a16 = 8; + a10 = 1; + a21 = 10; + a9 = 7; + a5 = 5; + return -1; + } else if(((((((a19==5)&&(((a6==1)&&!(a27==1))&&(a9==11)))&&!(a4==1))&&!(a14==1))||(a18==1))&&((a1==13)&&(((a21==11)&&((a16==8)&&(((((a5==6)&&(input==1))&&(a17==2))&&(a20==1))&&!(a27==1))))&&(a12==1))))){ + a9 = 8; + a5 = 5; + a1 = 14; + a16 = 10; + a12 = 1; + a19 = 3; + a8 = 0; + a23 = 1; + return 26; + } else if((((((a16==9)&&(((((a6==1)&&((a11==1)&&(!(a18==1)&&(!(a20==1)&&((input==4)&&((a5==4)||(a5==5)))))))&&(a11==1))&&!(a7==1))&&(a19==3)))&&(a21==11))&&(a1==12))&&((a9==11)&&((!(a27==1)&&(a6==1))&&(a17==2))))){ + a1 = 14; + a2 = 0; + a16 = 7; + a20 = 1; + a9 = 9; + a4 = 1; + a5 = 4; + a19 = 1; + a21 = 10; + a24 = 1; + return -1; + } else if(((((a19==4)&&((!(a4==1)&&(!(a27==1)&&((a16==8)&&(((input==1)&&((a5==4)||(a5==5)))&&!(a26==1)))))&&!(a27==1)))&&(a9==11))&&((a21==12)&&((((a1==13)&&(!(a20==1)&&((a28==1)&&!(a7==1))))&&(a13==1))&&(a17==2))))){ + a5 = 4; + a19 = 3; + a28 = 0; + a20 = 1; + a18 = 1; + a21 = 11; + return -1; + } else if((((a16==7)&&(((((input==4)&&(a21==10))&&(a20==1))&&(a19==4))&&(a1==14)))&&((a27==1)||((a26==1)||(!(a23==1)||((a9==11)&&((!(a26==1)&&((a17==2)&&((a5==6)&&((a4==1)||(a6==1)))))||(a7==1)))))))){ + a9 = 7; + a27 = 0; + a5 = 4; + a19 = 1; + a1 = 12; + a6 = 1; + a23 = 1; + return -1; + } else if(((((!(a14==1)&&((a17==2)&&(((a21==11)&&((((input==4)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(a1==13))&&(a2==1)))&&(a19==2))))&&!(a27==1))&&(a3==1))&&(!(a7==1)&&((!(a2==1)||((a20==1)&&(a28==1)))&&(a16==11))))){ + a5 = 4; + a13 = 1; + a16 = 7; + a12 = 1; + a19 = 1; + a9 = 7; + a1 = 12; + a21 = 10; + a18 = 0; + return -1; + } else if((((a24==1)||((!(a23==1)||((a18==1)||(((a19==3)&&(a2==1))||(a18==1))))&&(a17==2)))&&((((a1==12)&&((!(a20==1)&&((a9==11)&&((a28==1)&&(((a5==5)||(a5==6))&&(input==1)))))&&!(a14==1)))&&(a16==10))&&(a21==12)))){ + if((a22==1)){ + a10 = 0; + a19 = 2; + a16 = 7; + a29 = 0; + a21 = 10; + a20 = 1; + a5 = 5; + a9 = 7; + }else{ + a15 = 1; + a20 = 1; + a21 = 10; + a12 = 0; + a19 = 1; + a16 = 7; + a1 = 14; + a5 = 5; + a7 = 1; + a9 = 7; + } + return -1; + } else if(((((a8==1)&&((a4==1)&&(((((a27==1)&&((a21==12)&&(((a5==4)&&(input==5))&&(a1==14))))&&(a19==3))&&(a9==9))&&!(a6==1))))&&(a4==1))&&(!(a28==1)&&((((a20==1)&&(a11==1))&&(a16==10))&&(a17==2))))){ + a19 = 4; + a12 = 0; + a13 = 0; + a1 = 12; + a9 = 7; + a5 = 6; + a27 = 1; + a21 = 10; + return -1; + } else if((((a12==1)&&(((((a0==1)||(((a3==1)&&(a17==2))&&(a16==7)))||(a8==1))&&(a20==1))||(a4==1)))&&(((a1==12)&&((a9==9)&&((((a21==12)&&((input==5)&&((a5==5)||(a5==6))))&&(a19==5))&&!(a14==1))))&&!(a8==1)))){ + a28 = 1; + a19 = 4; + a5 = 4; + a21 = 11; + a9 = 7; + a13 = 1; + a16 = 9; + a27 = 0; + return 23; + } else if(((((!(a18==1)&&((a5==4)&&(input==1)))&&!(a18==1))&&!(a7==1))&&(((a16==11)&&(((((a3==1)&&((a11==1)&&(((a20==1)&&((a6==1)&&(a19==2)))&&(a17==2))))&&(a21==12))&&(a6==1))&&(a1==12)))&&(a9==8)))){ + a2 = 1; + a18 = 0; + a16 = 7; + a9 = 7; + a12 = 1; + a19 = 1; + a21 = 10; + return -1; + } else if(((((a17==2)&&(!(a14==1)&&((a23==1)&&((((a5==5)&&((a9==9)&&((a20==1)&&(input==3))))&&!(a8==1))&&!(a24==1)))))&&!(a26==1))&&((a1==14)&&(!(a3==1)||((a16==10)&&(((a21==11)&&(a2==1))&&(a19==5))))))){ + a1 = 12; + a12 = 1; + a5 = 4; + a8 = 0; + a16 = 7; + a9 = 7; + a21 = 10; + a19 = 1; + return -1; + } else if((((!(a20==1)&&((a19==1)&&((((a27==1)||(!(a13==1)||((a13==1)&&!(a24==1))))&&!(a4==1))&&(a17==2))))||(a26==1))&&((a16==11)&&((a21==10)&&((a13==1)&&((a1==12)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==3)))))))){ + a29 = 0; + a2 = 0; + a16 = 8; + a1 = 14; + a12 = 0; + a19 = 2; + a9 = 8; + a20 = 1; + a5 = 4; + return -1; + } else if(((!(a20==1)&&((a17==2)&&((((a13==1)&&((a11==1)&&(a21==11)))||!(a11==1))||!(a23==1))))&&(((!(a14==1)&&(((a1==13)&&((((input==6)&&(a5==4))&&(a16==10))&&!(a18==1)))&&(a13==1)))&&(a9==7))&&(a19==3)))){ + a8 = 1; + a9 = 8; + a1 = 12; + a22 = 0; + return 26; + } else if(((((a9==10)&&(((a4==1)||((a18==1)||(a6==1)))&&(a19==3)))&&(a21==10))&&((((a3==1)&&(!(a20==1)&&(((a1==14)&&((a16==8)&&(!(a18==1)&&((input==6)&&((a5==4)||(a5==5))))))&&!(a26==1))))&&!(a8==1))&&(a17==2)))){ + a16 = 11; + a20 = 1; + a21 = 11; + a1 = 12; + a3 = 1; + a9 = 8; + a5 = 5; + a7 = 0; + a12 = 1; + a19 = 4; + return 26; + } else if((((!(a18==1)&&((a19==1)&&((a2==1)&&((a1==12)&&(a12==1)))))||!(a2==1))&&((a6==1)&&(!(a20==1)&&((!(a7==1)&&((a17==2)&&((((input==6)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(a21==12))&&!(a8==1))))&&(a16==10)))))){ + if((a23==1)){ + a14 = 1; + a20 = 1; + a16 = 7; + a29 = 1; + a9 = 11; + a18 = 1; + a5 = 4; + a21 = 10; + }else{ + a6 = 0; + a21 = 10; + a5 = 4; + a16 = 7; + a20 = 1; + a4 = 1; + a11 = 0; + a9 = 11; + } + return -1; + } else if(((((a1==12)&&((!(a27==1)&&(a11==1))&&(a17==2)))&&!(a20==1))&&(((a16==11)&&(((((a3==1)&&(!(a7==1)&&(!(a8==1)&&((input==6)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))))&&!(a26==1))&&!(a7==1))&&(a21==10)))&&(a19==1)))){ + a1 = 14; + a16 = 7; + a2 = 0; + a10 = 1; + a20 = 1; + a5 = 5; + a9 = 10; + return 23; + } else if((((a20==1)&&(((a5==6)&&((a19==1)&&(!(a4==1)&&((((a21==12)&&((a17==2)&&(input==5)))&&(a3==1))&&(a3==1)))))&&(a16==10)))&&((a9==9)&&(((a8==1)||(((a13==1)&&(a23==1))&&(a11==1)))&&(a1==13))))){ + a7 = 0; + a3 = 1; + a12 = 1; + a16 = 7; + a21 = 10; + a5 = 4; + a9 = 7; + a1 = 12; + return -1; + } else if(((((a1==13)&&((a13==1)&&((((a23==1)&&(((a19==3)&&(a28==1))&&(a12==1)))||(a14==1))&&(a17==2))))&&(a21==11))&&((!(a20==1)&&((a16==9)&&(!(a26==1)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==5)))))&&(a12==1)))){ + a5 = 4; + a22 = 0; + a16 = 7; + a19 = 1; + a27 = 1; + a9 = 11; + a1 = 14; + a14 = 1; + a20 = 1; + a21 = 10; + return 21; + } else if((((a16==8)&&((a3==1)&&((a2==1)||(a7==1))))&&(((a17==2)&&(((a3==1)&&((a23==1)&&(((a11==1)&&(((((input==3)&&(a1==13))&&(a5==6))&&(a19==3))&&!(a26==1)))&&(a21==11))))&&(a9==7)))&&!(a20==1)))){ + a19 = 5; + a28 = 1; + a5 = 4; + a1 = 12; + a23 = 1; + a13 = 1; + a9 = 8; + a20 = 1; + a21 = 12; + return -1; + } else if(((((!(a11==1)||((a12==1)&&((((a13==1)&&(a9==11))&&(a1==13))&&(a19==5))))&&!(a20==1))&&(a3==1))&&(!(a7==1)&&((a28==1)&&((a21==12)&&((a17==2)&&(!(a8==1)&&(((input==4)&&((a5==5)||(a5==6)))&&(a16==10))))))))){ + a16 = 7; + a1 = 14; + a8 = 1; + a20 = 1; + a24 = 1; + a21 = 10; + a19 = 1; + a5 = 6; + return 26; + } else if((((a9==9)&&((((a17==2)&&((a18==1)||(a12==1)))&&(a21==12))&&!(a20==1)))&&((!(a4==1)&&((a23==1)&&((a12==1)&&(((a1==12)&&((a23==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&!(a18==1))))&&(a16==7)))))&&(a19==1)))){ + a4 = 0; + a9 = 7; + a20 = 1; + a5 = 4; + a27 = 0; + a2 = 1; + a21 = 10; + return -1; + } else if((((a17==2)&&((a9==9)&&(((((a19==4)&&((a8==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3))))&&(a8==1))&&!(a2==1))&&!(a11==1))))&&(((((a16==10)&&(((a1==12)&&(a2==1))&&!(a13==1)))&&!(a23==1))&&(a21==12))&&(a20==1)))){ + a9 = 7; + a10 = 1; + a16 = 7; + a24 = 1; + a5 = 5; + a1 = 13; + a20 = 0; + a21 = 11; + a11 = 0; + return 21; + } else if(((!(a4==1)&&((a5==5)&&((((((a19==5)&&((((a17==2)&&(input==5))&&(a13==1))&&(a21==12)))&&!(a0==1))&&(a1==14))&&!(a7==1))&&!(a18==1))))&&(((!(a13==1)||((a16==9)&&(a12==1)))&&(a20==1))&&(a9==9)))){ + a26 = 0; + a6 = 1; + a5 = 6; + a19 = 4; + a16 = 11; + a9 = 8; + a21 = 10; + a28 = 1; + return 22; + } else if(((!(a27==1)&&((((((a17==2)&&(a12==1))&&(a1==13))&&!(a20==1))&&!(a8==1))&&(a12==1)))&&(((a6==1)&&((a12==1)&&((a19==3)&&((a16==9)&&((a21==10)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==3)))))))&&(a2==1)))){ + if((a6==1)){ + a16 = 7; + a9 = 7; + a13 = 0; + a4 = 1; + a5 = 5; + a18 = 1; + a21 = 12; + }else{ + a5 = 5; + a13 = 0; + a2 = 0; + a20 = 1; + a0 = 1; + a9 = 11; + a19 = 2; + a16 = 8; + } + return -1; + } else if((((!(a2==1)||(((a20==1)&&(!(a2==1)||(a11==1)))&&(a21==10)))||(a24==1))&&(((a3==1)&&((((((((input==5)&&(a16==11))&&!(a4==1))&&(a5==5))&&(a9==11))&&(a17==2))&&(a1==12))&&(a19==3)))&&(a2==1)))){ + if((a2==1)){ + a20 = 0; + a16 = 8; + a9 = 8; + a5 = 4; + a3 = 1; + a26 = 0; + a14 = 0; + }else{ + a21 = 11; + a3 = 1; + a27 = 0; + a24 = 0; + } + return 23; + } else if(((((a16==11)&&((((!(a24==1)&&((a19==2)&&((((a9==11)&&((a1==12)&&(a5==6)))||((a9==7)&&((a1==13)&&(a5==4))))&&(input==1))))&&!(a7==1))&&(a20==1))&&(a23==1)))&&(a23==1))&&(((((a2==1)||!(a13==1))&&(a17==2))&&(a21==10))||(a8==1)))){ + a16 = 7; + a1 = 12; + a5 = 4; + a24 = 0; + a9 = 7; + a23 = 1; + a19 = 1; + a4 = 0; + return -1; + } else if(((!(a27==1)&&(((((a1==13)&&(((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a5==4)&&(a9==11)))&&(input==4)))&&(a2==1))&&(a17==2))&&!(a20==1)))&&((((!(a11==1)||((((a13==1)&&(a21==11))&&(a16==8))&&(a13==1)))||!(a11==1))&&(a19==3))||!(a28==1)))){ + a9 = 7; + a1 = 12; + a20 = 1; + a3 = 1; + a16 = 7; + a5 = 4; + a27 = 0; + a13 = 1; + a19 = 1; + a21 = 10; + return -1; + } else if((((a19==4)&&(((!(a7==1)&&((a21==11)&&(((a23==1)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==6)))&&(a3==1))))&&(a17==2))&&(a16==7)))&&((a1==13)&&(!(a20==1)&&(!(a7==1)&&(((a6==1)&&!(a26==1))&&(a28==1))))))){ + a20 = 1; + a19 = 1; + a11 = 1; + a1 = 12; + a9 = 7; + a5 = 4; + a3 = 1; + a6 = 1; + a21 = 10; + return -1; + } else if((((((((a1==14)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a12==1)))&&(a11==1))&&(a21==11))&&!(a7==1))&&(a11==1))&&((a19==4)&&((a0==1)||((a16==7)&&(((!(a24==1)&&((a23==1)&&(a17==2)))&&(a9==7))&&(a20==1))))))){ + a16 = 8; + a6 = 1; + a0 = 0; + a7 = 0; + a9 = 8; + a5 = 5; + return 23; + } else if((((((((((a13==1)&&(a16==8))&&(a21==10))&&(a1==12))&&(a7==1))&&(a7==1))&&(a5==5))&&(a0==1))&&(((a20==1)&&((((((a17==2)&&(input==6))&&(a9==7))&&(a18==1))&&!(a12==1))&&(a19==2)))&&!(a28==1)))){ + a5 = 6; + a16 = 7; + a27 = 1; + a9 = 9; + a11 = 0; + a7 = 1; + return 21; + } else if((((((((a5==5)||(a5==6))&&(input==4))&&(a12==1))&&(a21==11))&&(a20==1))&&((((a17==2)&&((a19==1)&&((a9==7)&&((a18==1)||((!(a27==1)&&((!(a27==1)&&(a28==1))&&(a6==1)))||(a8==1))))))&&(a16==10))&&(a1==13)))){ + a16 = 7; + a1 = 12; + a3 = 1; + a5 = 4; + a21 = 10; + a27 = 0; + return -1; + } else if(((((a1==13)&&((a17==2)&&(((a2==1)&&(((a13==1)||!(a2==1))&&(a21==11)))&&(a16==7))))&&!(a8==1))&&(!(a14==1)&&((a19==4)&&((((a3==1)&&((input==3)&&(((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6))))))&&!(a20==1))&&(a23==1)))))){ + a20 = 1; + a19 = 1; + a21 = 10; + a3 = 1; + a5 = 4; + a24 = 0; + a13 = 1; + a9 = 7; + a1 = 12; + return -1; + } else if((((a1==13)&&(((((a3==1)&&(((input==5)&&(((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))))&&!(a26==1)))&&!(a8==1))&&!(a14==1))&&(a16==11)))&&((((!(a28==1)||((a20==1)&&(!(a28==1)||(a12==1))))&&(a17==2))&&(a19==1))&&(a21==11)))){ + a16 = 7; + a9 = 7; + a21 = 10; + a4 = 0; + a5 = 4; + a7 = 0; + a1 = 12; + return -1; + } else if((((a13==1)&&((a9==8)&&((a12==1)&&((a11==1)&&((!(a7==1)&&((((input==5)&&(a20==1))&&(a3==1))&&(a1==14)))&&(a17==2))))))&&((a16==8)&&((a19==3)&&(((a5==4)&&((a2==1)||!(a6==1)))&&(a21==12)))))){ + a4 = 0; + a1 = 12; + a21 = 10; + a13 = 1; + a9 = 7; + a19 = 1; + a16 = 7; + return -1; + } else if((((a21==12)&&((a17==2)&&((a2==1)&&(((a13==1)&&((a23==1)&&(((a19==5)&&(input==1))&&(a9==10))))&&(a1==12)))))&&((((a24==1)||((a8==1)||(((a5==5)&&(a6==1))&&(a16==8))))&&!(a20==1))||!(a13==1)))){ + if((a12==1)){ + a1 = 14; + a21 = 10; + a12 = 0; + a19 = 1; + a27 = 1; + a16 = 7; + a5 = 6; + a20 = 1; + a8 = 1; + a9 = 8; + }else{ + a16 = 7; + a4 = 1; + a1 = 14; + a20 = 1; + a19 = 1; + a10 = 1; + a6 = 0; + a21 = 11; + a9 = 8; + } + return -1; + } else if((((a21==11)&&((((a1==13)&&((a9==10)&&(((input==5)&&(a16==10))&&!(a4==1))))&&(a5==5))&&(a17==2)))&&((!(a18==1)&&((a19==1)&&(!(a2==1)||((((a20==1)&&(a2==1))&&(a11==1))||(a14==1)))))||(a27==1)))){ + a13 = 1; + a1 = 12; + a27 = 0; + a14 = 0; + a16 = 7; + a21 = 10; + a9 = 7; + a5 = 4; + return -1; + } else if(((((((!(a23==1)||(a3==1))||!(a12==1))||!(a11==1))&&!(a4==1))&&(a19==4))&&((a16==9)&&((a17==2)&&((a1==13)&&((((a21==11)&&(!(a0==1)&&(((input==1)&&(a20==1))&&(a9==8))))&&(a23==1))&&(a5==4))))))){ + if((a8==1)){ + a0 = 0; + a24 = 0; + a20 = 0; + a16 = 8; + a3 = 1; + a1 = 12; + a5 = 5; + }else{ + a19 = 2; + a14 = 0; + a3 = 1; + a16 = 7; + a21 = 10; + a9 = 10; + a18 = 0; + } + return 21; + } else if((((((a19==5)&&((a23==1)&&((a17==2)&&(a3==1))))||(a0==1))||(a18==1))&&((!(a24==1)&&((!(a20==1)&&((((input==3)&&(((a9==11)&&((a5==6)&&(a1==13)))||((a9==7)&&((a5==4)&&(a1==14)))))&&(a21==11))&&(a16==8)))&&(a13==1)))&&!(a26==1)))){ + if((a24==1)){ + a5 = 4; + a19 = 1; + a14 = 1; + a16 = 7; + a21 = 10; + a9 = 11; + a1 = 13; + a28 = 0; + a20 = 1; + a0 = 1; + }else{ + a20 = 1; + a9 = 10; + a13 = 0; + a16 = 9; + a1 = 13; + a2 = 0; + a21 = 12; + a5 = 5; + a19 = 2; + a6 = 0; + } + return 21; + } else if(((((a16==11)&&((a19==1)&&((a1==12)&&((!(a20==1)&&((input==1)&&(a9==10)))&&!(a7==1)))))&&!(a0==1))&&((a5==6)&&((a4==1)||(!(a26==1)&&(((((a4==1)||(a3==1))&&(a17==2))&&(a21==10))||!(a12==1))))))){ + a9 = 8; + a20 = 1; + a29 = 1; + a12 = 0; + a5 = 5; + a16 = 7; + a1 = 14; + a23 = 0; + return 22; + } else if(((!(a7==1)&&((a2==1)&&((input==3)&&(a21==10))))&&((a17==2)&&(((a1==14)&&((a16==9)&&(!(a8==1)&&((a20==1)&&(!(a18==1)&&(((a5==5)&&((!(a6==1)||(a3==1))||(a14==1)))&&(a19==1)))))))&&(a9==10))))){ + a28 = 1; + a5 = 4; + a13 = 1; + a0 = 0; + a1 = 12; + a9 = 7; + a16 = 7; + return -1; + } else if(((((!(a8==1)&&((a16==9)&&((a28==1)&&(((a17==2)&&(((input==1)&&(((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))))&&(a19==5)))&&(a21==11)))))&&!(a8==1))&&(a28==1))&&(((a1==14)&&((a20==1)&&((a18==1)||(a12==1))))||!(a6==1)))){ + a13 = 1; + a9 = 8; + a1 = 12; + a5 = 5; + a20 = 0; + a16 = 8; + a2 = 1; + a4 = 0; + a19 = 4; + return 21; + } else if((((a1==13)&&(((a13==1)&&((((a13==1)&&((a5==5)&&(a11==1)))||(a7==1))&&(a17==2)))&&!(a24==1)))&&(((a16==9)&&((!(a4==1)&&((a23==1)&&(((a19==1)&&(input==3))&&(a21==11))))&&(a9==7)))&&(a20==1)))){ + a14 = 0; + a23 = 1; + a3 = 1; + a16 = 7; + a1 = 12; + a21 = 10; + a5 = 4; + return -1; + } else if((((a21==11)&&(((((a12==1)||(a18==1))&&(a19==4))&&(a12==1))&&(a16==9)))&&((a28==1)&&((a17==2)&&(((!(a0==1)&&(((((a9==11)&&((a5==6)&&(a1==12)))||(((a5==4)&&(a1==13))&&(a9==7)))&&(input==3))&&(a3==1)))&&!(a20==1))&&!(a24==1)))))){ + a26 = 1; + a19 = 1; + a9 = 9; + a5 = 6; + a21 = 10; + a1 = 12; + a16 = 7; + a20 = 1; + a6 = 0; + a27 = 1; + return 21; + } else if((((a16==11)&&(!(a18==1)&&((a21==10)&&(((a9==9)&&((a3==1)&&((a17==2)&&((a19==2)&&(((input==4)&&!(a20==1))&&(a11==1))))))&&(a13==1)))))&&((a5==6)&&(!(a28==1)||((a23==1)&&((a1==14)&&(a6==1))))))){ + a10 = 0; + a20 = 1; + a28 = 0; + a16 = 7; + a1 = 12; + a12 = 0; + a9 = 8; + return -1; + } else if(((((a6==1)&&(((a2==1)&&(!(a27==1)&&((a16==10)&&(((a5==4)||(a5==5))&&(input==1)))))&&(a19==1)))&&(a9==7))&&((((a1==12)&&(((((a17==2)&&(a6==1))||!(a28==1))&&!(a8==1))&&!(a20==1)))&&!(a14==1))&&(a21==10)))){ + a9 = 8; + a5 = 5; + a8 = 1; + a4 = 1; + a0 = 1; + a16 = 7; + a20 = 1; + return 21; + } else if((((((a13==1)&&(!(a27==1)&&(!(a0==1)&&((input==3)&&(a5==4)))))&&(a21==11))&&!(a24==1))&&((a3==1)&&((a9==11)&&(((a19==5)&&((((a16==8)&&((a11==1)&&!(a20==1)))&&(a3==1))&&(a17==2)))&&(a1==14)))))){ + a0 = 1; + a1 = 13; + a5 = 6; + a13 = 0; + a28 = 0; + a21 = 10; + a9 = 10; + return -1; + } else if((((a1==14)&&(((a14==1)||((((!(a2==1)||((a16==8)&&(a2==1)))&&(a20==1))&&(a21==11))&&(a19==1)))||!(a11==1)))&&(((a17==2)&&((!(a27==1)&&(((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a9==9)))&&(a3==1)))&&!(a18==1)))){ + a16 = 7; + a2 = 1; + a6 = 1; + a21 = 10; + a5 = 4; + a9 = 7; + a4 = 0; + a1 = 12; + return -1; + } else if(((!(a7==1)&&((a3==1)&&((((a21==10)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&(a1==14))&&(a23==1))))&&(((((a17==2)&&((a19==3)&&((a16==11)&&((!(a20==1)&&(a3==1))&&(a9==10)))))||!(a28==1))||(a8==1))||!(a3==1)))){ + a6 = 0; + a15 = 0; + a19 = 1; + a21 = 12; + a20 = 1; + a13 = 0; + a5 = 5; + return 21; + } else if((((a21==10)&&(!(a4==1)&&(((!(a4==1)&&(!(a27==1)&&((input==1)&&((a5==5)||(a5==6)))))&&!(a24==1))&&(a17==2))))&&(((((a6==1)&&((a9==9)&&(((a3==1)&&(a16==10))||!(a3==1))))&&(a19==4))&&!(a20==1))&&(a1==14)))){ + if((a17==3)){ + a5 = 5; + a19 = 1; + a10 = 1; + a14 = 1; + a20 = 1; + a21 = 11; + a16 = 8; + a9 = 10; + a18 = 1; + }else{ + a9 = 10; + a16 = 7; + a25 = 1; + a2 = 0; + a20 = 1; + a6 = 0; + a21 = 11; + a5 = 5; + a1 = 13; + } + return 25; + } else if((((a26==1)||(((a1==13)&&((a17==2)&&((a5==5)&&(a3==1))))||!(a3==1)))&&(!(a14==1)&&(((a21==11)&&((a16==9)&&(((a6==1)&&(((a20==1)&&((input==4)&&(a19==2)))&&(a9==7)))&&!(a24==1))))&&(a6==1))))){ + a1 = 12; + a27 = 0; + a21 = 10; + a19 = 1; + a12 = 1; + a5 = 4; + a16 = 7; + return -1; + } else if(((((a16==9)&&((((((a2==1)&&!(a26==1))&&(a11==1))||!(a2==1))&&!(a24==1))&&(a28==1)))&&(a20==1))&&((((a1==14)&&((a9==10)&&((a13==1)&&((a17==2)&&((a19==1)&&(input==5))))))&&(a21==11))&&(a5==4)))){ + a0 = 0; + a19 = 5; + a16 = 7; + a2 = 1; + a5 = 6; + a1 = 13; + a18 = 0; + a21 = 10; + a9 = 11; + return 25; + } else if(((((((a27==1)||((a12==1)&&(a1==13)))&&!(a0==1))||(a18==1))&&!(a26==1))&&((!(a20==1)&&((a17==2)&&((a19==1)&&(!(a4==1)&&((a16==8)&&(((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==4))&&!(a0==1)))))))&&(a21==11)))){ + a9 = 8; + a5 = 6; + a20 = 1; + a16 = 9; + a27 = 0; + a19 = 4; + a23 = 1; + return -1; + } else if(((((a20==1)&&(((a21==12)&&((a3==1)&&(((((a5==5)&&(input==1))&&(a19==5))&&!(a0==1))&&(a9==7))))&&!(a0==1)))&&(a2==1))&&((a1==14)&&(!(a0==1)&&((!(a12==1)||((a16==7)&&(a23==1)))&&(a17==2)))))){ + a19 = 1; + a5 = 4; + a28 = 1; + a1 = 12; + a21 = 10; + a11 = 1; + a13 = 1; + return -1; + } else if((((a12==1)&&((a23==1)&&((a1==13)&&((a19==1)&&(((a16==11)&&((a17==2)&&(!(a4==1)&&((input==4)&&((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11)))))))&&(a12==1))))))&&((((a14==1)||((a28==1)&&(a21==11)))&&(a20==1))||!(a28==1)))){ + a2 = 1; + a26 = 0; + a5 = 4; + a16 = 7; + a9 = 7; + a21 = 10; + a3 = 1; + a1 = 12; + return -1; + } else if((((a21==11)&&((((a9==9)&&((!(a26==1)&&(a6==1))&&(a5==5)))||(a27==1))&&(a1==13)))&&((((a20==1)&&(((a19==1)&&(((a16==11)&&((input==5)&&(a17==2)))&&(a23==1)))&&(a3==1)))&&(a3==1))&&!(a27==1)))){ + a26 = 0; + a1 = 12; + a21 = 10; + a5 = 4; + a27 = 0; + a9 = 7; + a2 = 1; + a16 = 7; + return -1; + } else if(((((!(a20==1)&&((((a17==2)&&((a1==12)&&((a9==8)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))))&&(a3==1))&&(a13==1)))&&(a21==12))&&(a16==10))&&((a19==1)&&(((!(a14==1)&&((a3==1)&&!(a8==1)))&&(a12==1))&&!(a18==1))))){ + if((a21==12)){ + a0 = 1; + a16 = 7; + a20 = 1; + a21 = 10; + a19 = 5; + a9 = 7; + a29 = 1; + a5 = 6; + }else{ + a5 = 5; + a9 = 10; + a19 = 4; + a6 = 0; + a20 = 1; + a12 = 0; + a21 = 11; + a22 = 1; + } + return -1; + } return calculate_output25(input); + } + + int calculate_output25(int input) { + if((((!(a27==1)&&((!(a20==1)&&(!(a0==1)&&((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==1))))&&(a28==1)))&&(a2==1))&&(((a17==2)&&((a18==1)||(((((a3==1)&&(a21==11))&&(a6==1))&&(a1==12))&&(a16==9))))&&(a19==2)))){ + a26 = 1; + a11 = 0; + a16 = 11; + a20 = 1; + a15 = 0; + a1 = 14; + a21 = 12; + a9 = 7; + a19 = 5; + a5 = 6; + return 21; + } else if(((((((a19==3)&&((((a28==1)&&!(a14==1))&&(a1==12))&&!(a20==1)))&&!(a8==1))&&!(a4==1))||(a7==1))&&(((((a21==11)&&(((a16==7)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4)))&&(a17==2)))&&(a9==9))&&(a2==1))&&!(a14==1)))){ + a7 = 0; + a6 = 1; + a5 = 4; + a2 = 1; + a20 = 1; + a21 = 10; + a9 = 7; + a19 = 1; + return -1; + } else if((((a13==1)&&((((a16==10)&&(((a21==10)&&(!(a14==1)&&(((a9==9)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6))))&&(a17==2))))&&(a19==5)))&&!(a18==1))&&(a6==1)))&&(!(a12==1)||((a13==1)&&(((a3==1)&&(a1==13))&&(a20==1)))))){ + a1 = 12; + a26 = 0; + a19 = 4; + a9 = 10; + a4 = 0; + a5 = 4; + a16 = 7; + a12 = 1; + return -1; + } else if((((a1==14)&&((a9==10)&&(((a5==5)&&(!(a0==1)&&(((((a17==2)&&(input==3))&&(a19==1))&&(a13==1))&&(a28==1))))&&(a20==1))))&&((a16==11)&&(((a14==1)||((a3==1)&&((a13==1)||(a27==1))))&&(a21==11))))){ + a5 = 4; + a8 = 0; + a4 = 0; + a13 = 1; + a1 = 12; + a16 = 7; + a21 = 10; + a9 = 7; + return -1; + } else if((((((a17==2)&&(input==3))&&(a5==5))&&(a21==10))&&(((a19==3)&&((a1==12)&&((a9==9)&&((!(a11==1)||((!(a24==1)&&((((a3==1)||!(a28==1))&&(a28==1))&&(a28==1)))&&!(a14==1)))&&(a16==10)))))&&!(a20==1)))){ + a5 = 4; + a15 = 0; + a14 = 1; + a21 = 12; + a19 = 1; + a16 = 11; + a1 = 13; + a20 = 1; + a9 = 8; + a11 = 0; + return -1; + } else if((((a19==1)&&((a9==7)&&(!(a24==1)&&(!(a26==1)&&(((input==1)&&((a5==5)||(a5==6)))&&(a1==13))))))&&(((((!(a26==1)&&((((a4==1)||(a3==1))&&(a17==2))&&!(a4==1)))&&(a16==10))&&!(a20==1))||(a24==1))&&(a21==10)))){ + a20 = 1; + a23 = 0; + a5 = 5; + a7 = 1; + a16 = 7; + a9 = 8; + a13 = 0; + return -1; + } else if((((((!(a13==1)||((a17==2)&&((a19==5)&&(!(a12==1)||((a1==13)&&(a13==1))))))||!(a6==1))&&(a21==10))&&(a9==7))&&(!(a4==1)&&(((a28==1)&&(!(a20==1)&&((a16==9)&&((input==1)&&((a5==4)||(a5==5))))))&&(a12==1))))){ + if((a15==1)){ + a19 = 1; + a16 = 7; + a1 = 14; + a28 = 0; + a20 = 1; + a5 = 5; + a0 = 1; + a11 = 0; + }else{ + a5 = 5; + a15 = 0; + a9 = 8; + a16 = 7; + a18 = 1; + } + return 25; + } else if(((((!(a13==1)||(((a9==10)&&((a20==1)&&((a2==1)&&(a21==12))))||!(a23==1)))||!(a12==1))&&(a17==2))&&((a1==12)&&(((((!(a7==1)&&(((a5==4)||(a5==5))&&(input==3)))&&(a19==2))&&(a13==1))&&!(a24==1))&&(a16==9))))){ + a5 = 4; + a21 = 11; + a9 = 9; + a3 = 1; + a19 = 1; + a26 = 0; + return -1; + } else if((((((a11==1)&&((((a12==1)&&(a1==13))&&(a21==12))||(a0==1)))&&(a16==9))&&!(a27==1))&&((a20==1)&&((!(a8==1)&&((a19==2)&&(((a17==2)&&((input==6)&&(((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6))))))&&!(a18==1))))&&!(a24==1))))){ + if((a21==12)){ + a8 = 0; + a6 = 1; + a16 = 7; + a1 = 14; + a9 = 9; + a20 = 0; + a26 = 0; + a5 = 6; + }else{ + a5 = 6; + a11 = 1; + a21 = 10; + a26 = 0; + a16 = 7; + a9 = 9; + a19 = 3; + a3 = 1; + } + return 21; + } else if(((!(a20==1)&&(((a12==1)&&(((a9==10)&&(((a5==5)&&(((a21==11)&&(input==4))&&!(a4==1)))&&(a28==1)))&&!(a7==1)))&&(a19==4)))&&((a18==1)||(((a18==1)||((a16==9)&&((a28==1)&&(a1==14))))&&(a17==2))))){ + a21 = 10; + a16 = 10; + a9 = 9; + a25 = 0; + a12 = 0; + a1 = 13; + a8 = 1; + a19 = 2; + return 23; + } else if((((((((((a19==1)&&(((a5==4)||(a5==5))&&(input==3)))&&(a23==1))&&!(a14==1))&&(a28==1))&&(a16==8))&&(a17==2))&&(a28==1))&&(((a1==12)&&((a21==11)&&(!(a20==1)&&((a9==9)&&((a3==1)&&(a12==1))))))||!(a6==1)))){ + a5 = 4; + a26 = 0; + a7 = 0; + a21 = 10; + a0 = 0; + a16 = 7; + a9 = 7; + a20 = 1; + return -1; + } else if(((((a13==1)&&((a7==1)||((a12==1)&&((a21==12)&&((a1==12)&&((a19==3)&&(a11==1)))))))&&(a9==11))&&((a5==5)&&(((((!(a4==1)&&((input==4)&&(a16==7)))&&!(a20==1))&&!(a24==1))&&!(a26==1))&&(a17==2))))){ + a5 = 4; + a0 = 0; + a2 = 1; + a21 = 10; + a9 = 7; + a20 = 1; + a19 = 1; + a26 = 0; + return -1; + } else if((((((!(a20==1)&&(!(a8==1)&&((a23==1)&&(((a17==2)&&(input==1))&&!(a7==1)))))&&(a5==4))&&(a19==4))&&!(a7==1))&&((a9==7)&&(((a1==14)&&(((!(a8==1)&&(a13==1))&&(a21==11))&&(a16==10)))||!(a13==1))))){ + if((a13==1)){ + a16 = 7; + a9 = 11; + a4 = 1; + a29 = 1; + a20 = 1; + a5 = 6; + a19 = 1; + a21 = 10; + }else{ + a1 = 12; + a19 = 1; + a9 = 8; + a13 = 0; + a5 = 6; + a16 = 7; + a20 = 1; + a21 = 10; + a14 = 1; + } + return -1; + } else if(((((((((a16==9)&&((input==1)&&(((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))))&&(a12==1))&&(a19==4))&&(a6==1))&&(a12==1))&&(a17==2))&&((!(a20==1)&&(((a26==1)||((a1==12)&&((a11==1)&&(a23==1))))||(a7==1)))&&(a21==10)))){ + a5 = 5; + a9 = 7; + a16 = 7; + a19 = 1; + a20 = 1; + a1 = 13; + a22 = 0; + a12 = 0; + a27 = 1; + return 21; + } else if(((((!(a26==1)&&((a28==1)&&(!(a20==1)&&((a3==1)&&((((input==3)&&(((((a5==6)&&(a1==14))&&(a9==11))&&(a19==4))||(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==5))))&&!(a7==1))&&(a16==8))))))&&!(a14==1))&&(a21==10))&&(((a17==2)&&(a6==1))&&!(a26==1)))){ + a19 = 1; + a9 = 7; + a16 = 7; + a13 = 1; + a1 = 12; + a3 = 1; + a20 = 1; + a5 = 4; + return -1; + } else if((((a19==2)&&((((a21==11)&&(((a16==10)&&(input==3))&&(a0==1)))&&(a20==1))&&(a1==14)))&&((a4==1)&&((a17==2)&&(!(a6==1)&&(((a9==8)&&((a5==6)&&(((a23==1)&&!(a2==1))&&(a26==1))))&&(a26==1))))))){ + a21 = 10; + a19 = 1; + a16 = 7; + a9 = 11; + a14 = 1; + a22 = 1; + a15 = 0; + return -1; + } else if(((((a17==2)&&(((a1==12)&&(((input==4)&&((a5==5)||(a5==6)))&&(a26==1)))&&(a20==1)))&&(a21==10))&&((a16==10)&&((a9==11)&&((a4==1)&&(((a19==3)&&(!(a23==1)&&(((a26==1)&&(a13==1))&&!(a11==1))))&&!(a23==1))))))){ + a25 = 0; + a5 = 6; + a19 = 1; + a2 = 0; + a16 = 7; + a6 = 0; + return -1; + } else if((((a16==7)&&(!(a0==1)&&(!(a26==1)&&(!(a24==1)&&((input==6)&&((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a5==4)&&(a9==9))))))))&&(((((a1==13)&&((a21==10)&&((a19==4)&&(((a3==1)||!(a28==1))&&!(a27==1)))))&&!(a18==1))&&!(a20==1))&&(a17==2)))){ + a9 = 8; + a1 = 14; + a13 = 1; + a8 = 0; + a5 = 4; + a11 = 1; + return 25; + } else if((((((((a19==2)&&(((a17==2)&&(((((a5==4)||(a5==5))&&(input==1))&&!(a6==1))&&!(a12==1)))&&(a16==8)))&&(a14==1))&&(a21==12))&&!(a2==1))&&(a1==13))&&((a20==1)&&((!(a3==1)&&((a23==1)&&(a9==9)))&&!(a11==1))))){ + a19 = 5; + a20 = 0; + a21 = 10; + a5 = 6; + a10 = 1; + a4 = 1; + a9 = 8; + a7 = 1; + a1 = 14; + return -1; + } else if((((((a2==1)&&((((input==3)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(a21==12))&&(a12==1)))&&!(a14==1))&&(a16==7))&&((!(a27==1)&&((((a19==3)&&(((a2==1)&&(a17==2))&&(a11==1)))&&(a20==1))&&(a1==13)))&&!(a14==1)))){ + a3 = 1; + a18 = 0; + a21 = 10; + a7 = 0; + a1 = 12; + a19 = 1; + a9 = 7; + a5 = 4; + return -1; + } else if((((((((a11==1)&&!(a2==1))&&!(a3==1))&&(a5==5))&&(a14==1))&&(a14==1))&&((((a1==14)&&((a4==1)&&(!(a12==1)&&((a16==7)&&((a21==11)&&((a19==5)&&((input==1)&&(a9==7))))))))&&(a17==2))&&(a20==1)))){ + a8 = 1; + a5 = 6; + a9 = 10; + a1 = 13; + a19 = 2; + a13 = 0; + a0 = 1; + a20 = 0; + a16 = 8; + return -1; + } else if(((((a19==3)&&((((a6==1)&&(((a9==7)&&(a2==1))||!(a2==1)))&&(a17==2))&&(a1==12)))&&(a5==5))&&(((((!(a18==1)&&((a16==7)&&((input==5)&&(a21==11))))&&!(a26==1))&&(a13==1))&&(a6==1))&&(a20==1)))){ + a16 = 8; + a5 = 6; + a3 = 1; + a21 = 10; + a19 = 4; + a1 = 14; + a2 = 1; + a0 = 0; + return 22; + } else if(((((!(a8==1)&&(!(a7==1)&&((a17==2)&&(((a28==1)&&(((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&(a28==1)))&&(a16==8)))))&&(a9==10))&&(a19==5))&&(!(a20==1)&&((!(a8==1)&&((a21==10)&&((a8==1)||(a28==1))))&&(a1==14))))){ + a16 = 11; + a6 = 1; + a19 = 4; + a24 = 0; + a20 = 1; + a5 = 5; + a9 = 11; + return 21; + } else if((((((a11==1)&&(((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a5==4)&&(a9==8)))&&(input==3)))&&!(a18==1))&&(a12==1))&&((((((a19==1)&&((a16==9)&&((a1==14)&&(((a11==1)&&!(a20==1))||!(a13==1)))))&&(a21==12))&&(a28==1))||!(a3==1))&&(a17==2)))){ + a19 = 4; + a9 = 7; + a13 = 0; + a5 = 4; + a2 = 0; + a1 = 13; + a26 = 1; + return -1; + } else if((((a0==1)||((a21==12)&&(((a16==8)&&((a1==14)&&(a6==1)))&&!(a7==1))))&&(!(a14==1)&&(!(a18==1)&&(!(a20==1)&&(!(a4==1)&&((!(a27==1)&&((a19==2)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==1))))&&(a17==2)))))))){ + a24 = 1; + a9 = 9; + a16 = 7; + a5 = 4; + a1 = 12; + a20 = 1; + a11 = 0; + a19 = 1; + a13 = 0; + a21 = 10; + return 25; + } else if((((a12==1)&&(((a12==1)&&(!(a4==1)&&((a9==11)&&((((a21==10)&&((((input==1)&&((a5==5)||(a5==6)))&&(a19==3))&&(a17==2)))&&(a2==1))&&(a20==1)))))&&(a28==1)))&&(((a16==10)&&((a13==1)&&(a1==12)))||!(a12==1)))){ + a9 = 8; + a11 = 1; + a24 = 0; + a5 = 4; + a19 = 1; + a6 = 1; + return 21; + } else if((((a23==1)&&((((((a16==10)&&((((a9==11)&&(input==1))&&(a12==1))&&(a13==1)))&&!(a20==1))&&(a5==5))&&(a19==1))&&(a2==1)))&&((((a1==12)&&((!(a11==1)||(a2==1))&&(a21==12)))&&!(a14==1))&&(a17==2)))){ + a8 = 1; + a21 = 10; + a20 = 1; + a9 = 10; + a5 = 6; + a15 = 1; + a16 = 7; + a1 = 13; + return 26; + } else if((((((((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&!(a7==1))&&(a23==1))&&(a19==2))&&(a21==12))&&((a17==2)&&(!(a20==1)&&((((a9==9)&&(((((a3==1)||!(a11==1))&&(a28==1))||!(a23==1))||!(a23==1)))&&(a16==9))&&(a1==14)))))){ + if((a6==1)){ + a19 = 1; + a5 = 6; + a16 = 7; + a1 = 12; + a20 = 1; + a22 = 0; + a27 = 1; + a9 = 8; + a21 = 10; + }else{ + a5 = 6; + a19 = 1; + a16 = 7; + a21 = 10; + a1 = 13; + a27 = 1; + a11 = 0; + a9 = 11; + a25 = 0; + a20 = 1; + } + return 21; + } else if((((((a1==14)&&((a16==8)&&((a2==1)&&((input==6)&&((a5==4)||(a5==5))))))&&(a12==1))&&(a19==1))&&(((a9==11)&&((((a14==1)||(((a4==1)||((a23==1)&&!(a14==1)))&&(a17==2)))&&(a20==1))&&(a21==11)))||(a8==1)))){ + a1 = 13; + a4 = 0; + a0 = 0; + a16 = 10; + a19 = 3; + a21 = 10; + a9 = 10; + a5 = 5; + return 26; + } else if(((((a1==14)&&((a17==2)&&((!(a6==1)||((a9==8)&&((a16==10)&&(((a12==1)&&(!(a6==1)||(a12==1)))&&!(a20==1)))))&&(a19==3))))&&(a21==11))&&(((a12==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a28==1)))&&!(a27==1)))){ + a19 = 1; + a13 = 0; + a20 = 1; + a5 = 6; + a9 = 9; + a21 = 10; + a16 = 7; + a24 = 1; + a12 = 0; + return -1; + } else if((((a21==12)&&(((a3==1)&&((input==3)&&(a9==8)))&&(a11==1)))&&((a1==12)&&((((a5==5)&&(((a19==5)&&(!(a20==1)&&(((a26==1)||(!(a8==1)&&(a12==1)))&&(a28==1))))&&(a17==2)))||(a26==1))&&(a16==8))))){ + a3 = 0; + a11 = 0; + a1 = 13; + a4 = 1; + a19 = 2; + a21 = 11; + return 21; + } else if(((((!(a8==1)&&(((a21==12)&&(input==3))&&(a23==1)))&&(a1==13))&&(a5==6))&&(!(a6==1)||(((!(a24==1)&&((((((a11==1)||!(a13==1))&&!(a20==1))&&!(a7==1))&&(a9==11))&&(a17==2)))&&(a19==5))&&(a16==8))))){ + a26 = 1; + a19 = 2; + a20 = 1; + a16 = 7; + a21 = 10; + a5 = 4; + a1 = 12; + a15 = 1; + a25 = 1; + return -1; + } else if((((a1==14)&&(((!(a0==1)&&((a28==1)&&((a17==2)&&(!(a26==1)&&((a11==1)&&(a6==1))))))&&(a20==1))&&(a16==8)))&&((a21==10)&&((!(a18==1)&&((a11==1)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==5))))&&(a19==1))))){ + a3 = 1; + a9 = 11; + a14 = 0; + a21 = 12; + a16 = 9; + a19 = 2; + a5 = 4; + a27 = 0; + return 26; + } else if(((((((a28==1)&&((a28==1)&&((a12==1)&&(((a12==1)||!(a2==1))&&(a21==12)))))&&(a1==13))&&(a16==10))&&(a17==2))&&((a12==1)&&(((a19==2)&&((a6==1)&&(((input==4)&&(a9==11))&&(a20==1))))&&(a5==5))))){ + a11 = 1; + a6 = 1; + a16 = 8; + a5 = 4; + a19 = 3; + a18 = 0; + a9 = 7; + a21 = 10; + a20 = 0; + return 25; + } else if((((((((a3==1)&&(a21==10))&&(a1==13))||!(a23==1))||(a27==1))||!(a13==1))&&((a11==1)&&(((((a16==11)&&(((a17==2)&&((input==1)&&(((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))))&&(a19==3)))&&(a20==1))&&(a2==1))&&(a11==1))))){ + a0 = 0; + a27 = 0; + a1 = 12; + a21 = 11; + a3 = 1; + a9 = 7; + a5 = 6; + a19 = 4; + a16 = 9; + return 21; + } else if(((!(a23==1)||((a19==4)&&(((a28==1)&&(((a2==1)&&(a23==1))&&(a1==14)))&&!(a20==1))))&&(((a17==2)&&(((a16==8)&&((((a21==10)&&((input==6)&&((a5==6)||((a5==4)||(a5==5)))))&&(a3==1))&&(a9==8)))&&!(a26==1)))&&(a23==1)))){ + a5 = 4; + a16 = 7; + a1 = 12; + a19 = 1; + a26 = 0; + a9 = 7; + a7 = 0; + a20 = 1; + a18 = 0; + return -1; + } else if((((!(a14==1)&&((((a1==13)&&((a11==1)&&(a13==1)))&&(a21==12))&&(a9==8)))&&(a17==2))&&((a19==1)&&(((!(a20==1)&&(((a6==1)&&((((a5==4)||(a5==5))&&(input==4))&&!(a26==1)))&&(a12==1)))&&!(a14==1))&&(a16==10))))){ + a25 = 0; + a1 = 14; + a19 = 2; + a0 = 1; + a5 = 4; + a9 = 11; + a16 = 11; + a7 = 1; + a21 = 10; + return -1; + } else if((((a20==1)&&((((((a19==3)&&((a16==8)&&(a23==1)))&&(a3==1))&&!(a14==1))&&(a1==13))||(a7==1)))&&((!(a8==1)&&(((a9==9)&&((a12==1)&&((a21==12)&&(((a5==4)||(a5==5))&&(input==5)))))&&!(a26==1)))&&(a17==2)))){ + a0 = 0; + a1 = 12; + a5 = 4; + a21 = 10; + a19 = 1; + a4 = 0; + a18 = 0; + a16 = 7; + a9 = 7; + return -1; + } else if((((a20==1)&&((a9==9)&&(((a19==5)&&(a13==1))&&(a28==1))))&&((((a17==2)&&((((((a12==1)&&((a16==10)&&(((a5==5)||(a5==6))&&(input==5))))&&(a1==12))&&!(a27==1))&&(a12==1))&&!(a26==1)))&&(a21==12))&&(a28==1)))){ + a16 = 7; + a2 = 1; + a5 = 5; + a8 = 0; + a11 = 1; + a1 = 13; + a21 = 10; + a19 = 2; + return -1; + } else if((((a21==10)&&(!(a0==1)&&((a7==1)||(!(a6==1)||((a1==14)&&((a28==1)&&((a20==1)&&((a13==1)&&(a28==1)))))))))&&((a17==2)&&((((a9==10)&&(!(a7==1)&&((input==5)&&((a5==6)||((a5==4)||(a5==5))))))&&(a19==4))&&(a16==8))))){ + a9 = 7; + a0 = 0; + a27 = 0; + a19 = 1; + a5 = 5; + a16 = 10; + a2 = 1; + return 23; + } else if(((((a16==7)&&(!(a18==1)&&((((((a1==12)&&(a28==1))&&(a21==11))&&!(a4==1))&&!(a7==1))&&!(a18==1))))&&(a19==5))&&((a17==2)&&((a20==1)&&((((a3==1)&&(((a5==5)||(a5==6))&&(input==5)))&&!(a24==1))&&(a9==11)))))){ + a21 = 10; + a24 = 0; + a5 = 4; + a18 = 0; + a9 = 7; + a27 = 0; + a19 = 1; + return -1; + } else if(((((a3==1)&&((a23==1)&&(((a16==10)&&(((((a1==12)&&(input==1))&&(a5==6))&&(a13==1))&&!(a24==1)))&&(a19==2))))&&!(a20==1))&&((a17==2)&&((a24==1)||((a21==12)&&(((a28==1)&&!(a8==1))&&(a9==7))))))){ + a5 = 4; + a21 = 10; + a19 = 4; + a16 = 7; + a9 = 9; + a11 = 0; + a0 = 1; + a1 = 13; + return -1; + } else if((((a20==1)&&((a11==1)&&((a28==1)&&((a12==1)&&(((((a17==2)&&(input==1))&&(a1==12))&&(a6==1))&&!(a26==1))))))&&(((a5==6)&&((a21==12)&&(((a16==10)&&((a9==11)&&(a13==1)))||(a7==1))))&&(a19==3)))){ + a19 = 1; + a18 = 0; + a16 = 7; + a28 = 1; + a21 = 10; + a9 = 7; + a24 = 0; + a5 = 4; + return -1; + } else if(((!(a18==1)&&(((((a12==1)&&!(a20==1))||!(a28==1))&&(a17==2))&&(a1==12)))&&((a19==1)&&(((a16==7)&&((a23==1)&&((a28==1)&&((!(a18==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&!(a24==1)))&&(a21==11)))))&&(a9==9))))){ + a3 = 1; + a24 = 0; + a5 = 4; + a21 = 10; + a9 = 7; + a7 = 0; + a20 = 1; + return -1; + } else if((((a24==1)||((a1==13)&&((a12==1)&&(a16==7))))&&((a21==12)&&((a19==5)&&(!(a4==1)&&((a9==9)&&(((a6==1)&&(((((a11==1)&&((input==4)&&((a5==4)||(a5==5))))&&(a17==2))&&(a20==1))&&(a12==1)))&&(a23==1)))))))){ + a19 = 1; + a8 = 0; + a5 = 4; + a21 = 10; + a9 = 7; + a3 = 1; + a1 = 12; + a12 = 1; + return -1; + } else if((((a19==1)&&(((a9==8)&&(!(a13==1)||(!(a20==1)&&((a2==1)&&((a3==1)&&(a17==2))))))&&!(a8==1)))&&((a16==10)&&((((a2==1)&&(!(a8==1)&&((a21==12)&&((input==1)&&(a1==14)))))&&!(a27==1))&&(a5==6))))){ + if((a17==3)){ + a16 = 7; + a11 = 0; + a0 = 1; + a9 = 11; + a1 = 12; + a29 = 0; + a21 = 10; + a5 = 4; + a20 = 1; + }else{ + a16 = 7; + a1 = 13; + a9 = 10; + a21 = 11; + a20 = 1; + a15 = 1; + a19 = 5; + a6 = 0; + a5 = 5; + } + return -1; + } else if((((a17==2)&&(((a9==8)&&(((a28==1)&&(a13==1))&&(a1==13)))||(a24==1)))&&(((a13==1)&&((a3==1)&&((((a19==3)&&(((a16==10)&&(((a5==4)||(a5==5))&&(input==4)))&&(a21==11)))&&(a20==1))&&!(a14==1))))&&!(a18==1)))){ + a5 = 4; + a28 = 1; + a9 = 7; + a21 = 10; + a6 = 1; + a1 = 12; + a16 = 7; + a3 = 1; + a19 = 1; + return -1; + } else if(((((!(a14==1)&&((a5==5)&&((a14==1)||(a2==1))))&&(a3==1))&&(a20==1))&&((a9==8)&&((!(a26==1)&&((a17==2)&&(((((a28==1)&&((input==6)&&(a16==7)))&&!(a18==1))&&(a1==12))&&(a19==4))))&&(a21==12))))){ + a1 = 13; + a19 = 1; + a16 = 9; + a4 = 0; + a21 = 11; + a9 = 7; + a8 = 0; + return 25; + } else if((((a21==10)&&(((a14==1)&&((a20==1)&&((a28==1)&&!(a28==1))))&&!(a13==1)))&&((((((a19==1)&&(((a16==8)&&((input==1)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))&&(a4==1)))&&(a17==2))&&(a8==1))&&(a1==14))&&!(a28==1)))){ + a9 = 9; + a8 = 1; + a16 = 7; + a29 = 0; + a0 = 1; + a5 = 4; + a1 = 12; + return -1; + } else if(((!(a13==1)||((a17==2)&&((a19==2)&&(((a1==14)&&((a21==11)&&(a23==1)))&&!(a4==1)))))&&(!(a8==1)&&((a13==1)&&((((!(a14==1)&&(((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4)))&&(input==3)))&&!(a18==1))&&(a16==7))&&(a20==1)))))){ + a21 = 10; + a19 = 4; + a1 = 12; + a8 = 0; + a9 = 11; + a3 = 1; + a16 = 8; + a2 = 1; + a5 = 4; + return 26; + } else if(((((a16==9)&&((a19==5)&&((a1==12)&&(!(a2==1)||(((a28==1)||(a8==1))&&!(a14==1))))))&&!(a20==1))&&(((a17==2)&&((a23==1)&&(((((input==4)&&((a5==5)||(a5==6)))&&(a23==1))&&(a11==1))&&(a21==11))))&&(a9==7)))){ + a23 = 0; + a20 = 1; + a5 = 6; + a24 = 1; + a13 = 0; + a19 = 1; + a21 = 10; + a9 = 9; + a16 = 7; + return -1; + } else if((((a1==14)&&(((a12==1)&&(((a16==10)&&(((a5==5)&&(input==4))&&!(a18==1)))&&!(a27==1)))&&(a23==1)))&&((a19==5)&&(((a6==1)&&((((a17==2)&&((a6==1)&&(a9==9)))&&!(a14==1))&&!(a20==1)))&&(a21==11))))){ + a28 = 0; + a24 = 1; + a5 = 4; + a1 = 13; + a11 = 0; + a16 = 9; + a9 = 8; + a21 = 10; + a19 = 1; + return -1; + } else if((((a20==1)&&((!(a13==1)||(((a1==12)&&((a12==1)&&((a17==2)&&((a2==1)&&!(a14==1)))))&&!(a18==1)))||!(a12==1)))&&((((((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==5))&&!(a24==1))&&(a16==8))&&(a19==5))&&(a21==12)))){ + a24 = 0; + a5 = 6; + a9 = 7; + a6 = 1; + a3 = 1; + return 25; + } else if(((!(a0==1)&&(((a17==2)&&((a9==8)&&((a20==1)&&((a21==11)&&(input==5)))))&&(a1==14)))&&(!(a28==1)||(!(a0==1)&&(((a11==1)&&((a5==4)&&(!(a12==1)||(((a16==8)&&(a23==1))&&(a19==4)))))||!(a2==1)))))){ + a28 = 1; + a18 = 0; + a19 = 1; + a1 = 12; + a6 = 1; + a21 = 10; + a9 = 7; + a16 = 7; + return -1; + } else if((((((a17==2)&&((!(a24==1)&&((a13==1)||!(a3==1)))&&(a19==3)))||(a8==1))&&(a11==1))&&((a13==1)&&(((!(a20==1)&&((a21==12)&&(((input==4)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11))))&&(a1==14))))&&(a16==8))&&!(a18==1))))){ + a9 = 7; + a29 = 0; + a5 = 6; + a4 = 1; + a21 = 10; + a12 = 0; + a16 = 7; + a1 = 12; + a19 = 1; + return 21; + } else if((((a9==7)&&((a16==8)&&(!(a14==1)&&(((a1==13)&&((a17==2)&&((a6==1)&&(((a21==12)&&((a5==4)&&(input==6)))&&!(a27==1)))))&&(a13==1)))))&&(!(a20==1)&&(((a19==4)&&(!(a11==1)||(a6==1)))||(a4==1))))){ + if((a6==1)){ + a5 = 5; + a19 = 1; + a20 = 1; + a29 = 1; + a9 = 9; + a15 = 1; + a16 = 7; + a13 = 0; + a21 = 10; + }else{ + a27 = 1; + a21 = 10; + a14 = 1; + a20 = 1; + a9 = 9; + a16 = 7; + a6 = 0; + a19 = 1; + } + return 23; + } else if((((a1==14)&&(((a12==1)&&(((a5==4)&&((a6==1)&&(a11==1)))||(a4==1)))||!(a12==1)))&&(((((a9==7)&&((a20==1)&&(!(a8==1)&&((a17==2)&&((input==4)&&(a16==10))))))&&!(a24==1))&&(a21==10))&&(a19==1)))){ + a21 = 11; + a1 = 12; + a9 = 8; + a16 = 7; + a19 = 3; + a18 = 0; + a4 = 0; + a23 = 1; + return -1; + } else if(((!(a8==1)&&(((a24==1)||((a13==1)&&(a20==1)))||(a24==1)))&&(((((a16==7)&&(!(a0==1)&&(!(a26==1)&&((input==3)&&(((((a1==12)&&(a5==4))&&(a9==7))&&(a19==2))||((((a9==11)&&((a5==5)&&(a1==14)))&&(a19==1))||(((a9==11)&&((a1==14)&&(a5==6)))&&(a19==1))))))))&&(a17==2))&&(a13==1))&&(a21==11)))){ + a26 = 0; + a1 = 12; + a9 = 7; + a23 = 1; + a5 = 4; + a4 = 0; + a19 = 1; + a21 = 10; + return -1; + } else if(((((((a1==14)&&(!(a8==1)&&(((a5==5)||(a5==6))&&(input==6))))&&(a21==10))&&(a13==1))&&(a19==3))&&((a17==2)&&(((a9==8)&&(((a26==1)||((((a24==1)||(a28==1))&&(a20==1))||(a27==1)))&&!(a26==1)))&&(a16==10))))){ + a26 = 0; + a21 = 11; + a16 = 7; + a9 = 7; + a5 = 4; + a3 = 1; + return 23; + } else if(((((a23==1)&&(!(a20==1)&&((a21==10)&&(((a16==8)&&(((input==1)&&(((((a1==12)&&(a5==5))&&(a9==7))&&(a19==4))||((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==3))||(((a9==7)&&((a1==12)&&(a5==4)))&&(a19==4)))))&&(a2==1)))&&(a17==2)))))&&!(a27==1))&&(!(a18==1)&&(((a6==1)&&!(a26==1))||!(a6==1))))){ + a20 = 1; + a27 = 0; + a26 = 0; + a9 = 9; + a5 = 6; + a16 = 9; + a1 = 14; + a19 = 2; + return 21; + } else if((((!(a11==1)||(((a19==1)&&((a23==1)||(a0==1)))&&(a20==1)))||!(a13==1))&&(((a6==1)&&((a21==11)&&(((!(a0==1)&&((a9==9)&&((a16==10)&&(((a5==5)||(a5==6))&&(input==4)))))&&(a17==2))&&(a1==12))))&&!(a27==1)))){ + a13 = 1; + a21 = 10; + a16 = 7; + a4 = 0; + a24 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if((((a1==12)&&(!(a7==1)&&((a3==1)&&((!(a23==1)||((a21==12)&&((a19==4)&&(((a2==1)&&((a23==1)&&(a9==11)))||!(a12==1)))))&&(a5==4)))))&&(((((a17==2)&&(input==4))&&(a13==1))&&!(a20==1))&&(a16==7)))){ + a9 = 7; + a21 = 10; + a19 = 1; + a20 = 1; + a24 = 0; + a11 = 1; + a12 = 1; + return -1; + } else if((((a20==1)&&((!(a8==1)&&((a28==1)&&((!(a18==1)&&((input==4)&&((((a1==13)&&(a5==6))&&(a9==11))||(((a5==4)&&(a1==14))&&(a9==7)))))&&(a11==1))))&&(a16==9)))&&(((a21==12)&&(((a23==1)&&((a17==2)&&(a3==1)))&&(a11==1)))&&(a19==4)))){ + a13 = 1; + a19 = 1; + a5 = 4; + a16 = 7; + a14 = 0; + a21 = 10; + a1 = 12; + a3 = 1; + a9 = 7; + return -1; + } else if((((a21==11)&&((a17==2)&&((a2==1)&&((a2==1)&&((!(a8==1)&&(((a5==4)||(a5==5))&&(input==5)))&&(a13==1))))))&&(((a9==7)&&((a19==4)&&((((a6==1)&&((a11==1)&&(a28==1)))&&(a16==10))&&!(a20==1))))&&(a1==12)))){ + if((a23==1)){ + a19 = 3; + a11 = 0; + a3 = 0; + a23 = 0; + a9 = 8; + a5 = 4; + a16 = 8; + }else{ + a29 = 1; + a16 = 9; + a21 = 10; + a19 = 1; + a12 = 0; + a1 = 14; + a22 = 1; + a5 = 5; + a9 = 10; + } + return -1; + } else if((((a17==2)&&((a9==8)&&(((a21==11)&&(!(a24==1)&&((a8==1)||((((a3==1)||!(a2==1))&&(a19==5))||(a26==1)))))&&(a1==12))))&&((a5==4)&&(((a23==1)&&((a28==1)&&((a16==7)&&(input==4))))&&(a20==1))))){ + a11 = 1; + a19 = 1; + a21 = 10; + a28 = 1; + a9 = 7; + a27 = 0; + return -1; + } else if(((((a1==12)&&((a17==2)&&(!(a23==1)&&((a9==9)&&(!(a2==1)&&(((input==4)&&(a16==8))&&(a20==1)))))))&&(a5==4))&&((a19==5)&&((a7==1)&&(!(a13==1)&&((a21==10)&&(((a3==1)&&!(a11==1))&&(a0==1)))))))){ + a9 = 10; + a21 = 12; + a16 = 7; + a4 = 1; + a19 = 1; + a5 = 6; + a6 = 0; + a22 = 1; + return 21; + } else if((((a18==1)||(((a19==2)&&((a3==1)&&(((a20==1)&&((a1==13)&&(a2==1)))&&(a9==7))))&&(a17==2)))&&((a12==1)&&((((a21==10)&&(((((a5==5)||(a5==6))&&(input==1))&&!(a4==1))&&(a16==11)))&&!(a7==1))&&(a2==1))))){ + a5 = 4; + a18 = 0; + a21 = 12; + a9 = 8; + a24 = 0; + a16 = 8; + a19 = 5; + a1 = 12; + a23 = 1; + return 22; + } else if((((((a17==2)&&((a1==13)&&(!(a7==1)&&((a19==1)&&(!(a24==1)&&((input==1)&&((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4)))))))))&&(a13==1))&&(a28==1))&&(!(a20==1)&&(((a21==11)&&(!(a14==1)&&((a2==1)||!(a12==1))))&&(a16==8))))){ + a20 = 1; + a1 = 14; + a24 = 0; + a21 = 12; + a19 = 2; + a26 = 0; + a9 = 11; + a5 = 4; + a11 = 1; + return 22; + } else if(((((a20==1)&&(!(a12==1)||((a4==1)||((a1==13)&&((a11==1)&&(a28==1))))))&&(a16==8))&&(((a6==1)&&(((a9==10)&&((!(a26==1)&&(((input==6)&&((a5==4)||(a5==5)))&&(a19==5)))&&(a21==12)))&&(a11==1)))&&(a17==2)))){ + a11 = 1; + a5 = 4; + a23 = 1; + a24 = 0; + a19 = 1; + a9 = 11; + a1 = 14; + a21 = 11; + return -1; + } else if(((((((((a9==7)&&(((input==1)&&!(a20==1))&&(a16==10)))&&(a21==12))&&(a19==2))&&!(a27==1))&&!(a27==1))&&!(a8==1))&&((a17==2)&&((a5==5)&&(((a6==1)&&((a24==1)||((a6==1)||(a18==1))))&&(a1==13)))))){ + a8 = 1; + a9 = 8; + a21 = 11; + a5 = 6; + a19 = 5; + a3 = 0; + a10 = 1; + return 21; + } else if((((a21==10)&&((((a16==9)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==6)))&&!(a8==1))&&(a23==1)))&&((a17==2)&&(((((!(a20==1)&&(((a19==5)&&(a3==1))&&(a1==12)))||!(a2==1))&&(a6==1))||!(a11==1))&&(a12==1))))){ + a16 = 7; + a9 = 8; + a1 = 13; + a19 = 1; + a23 = 0; + a18 = 1; + a5 = 5; + a11 = 0; + a20 = 1; + return -1; + } else if((((a11==1)&&(((!(a4==1)&&(((a21==12)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a20==1)))&&(a11==1)))&&(a19==5))&&!(a7==1)))&&(((a17==2)&&((a9==7)&&(((a26==1)||((a1==13)&&(a3==1)))&&(a16==9))))||!(a11==1)))){ + a4 = 0; + a5 = 4; + a1 = 12; + a19 = 1; + a21 = 10; + a2 = 1; + a16 = 7; + return -1; + } else if(((((!(a27==1)&&((a2==1)&&!(a20==1)))&&(a9==8))&&(a21==11))&&((a17==2)&&((a1==13)&&((((((a19==4)&&(!(a7==1)&&((((a5==5)||(a5==6))&&(input==6))&&(a16==8))))&&!(a18==1))&&!(a18==1))&&(a12==1))&&!(a27==1)))))){ + a5 = 4; + a27 = 0; + a9 = 7; + a0 = 0; + a19 = 1; + a1 = 12; + a20 = 1; + a21 = 10; + a12 = 1; + a16 = 7; + return -1; + } else if((((a5==5)&&((((((a16==8)&&(a28==1))&&(a6==1))||!(a2==1))&&(a1==13))&&(a19==5)))&&(((((!(a7==1)&&((!(a8==1)&&((a9==11)&&(input==3)))&&!(a24==1)))&&(a11==1))&&(a17==2))&&!(a20==1))&&(a21==10)))){ + a14 = 0; + a5 = 4; + a1 = 12; + a3 = 1; + a16 = 7; + a6 = 1; + a19 = 1; + a9 = 7; + a20 = 1; + return -1; + } else if(((((a5==5)&&(((a9==8)&&(!(a24==1)&&(((a13==1)&&(((((a1==12)&&(a3==1))&&(a16==7))&&(a21==10))||!(a12==1)))||!(a12==1))))&&(a20==1)))&&(a17==2))&&((!(a0==1)&&((a19==4)&&(input==4)))&&(a23==1)))){ + a21 = 11; + a27 = 0; + a5 = 6; + a9 = 10; + a28 = 1; + a14 = 0; + a19 = 3; + a1 = 13; + return 22; + } else if((((a5==5)&&(((a19==5)&&(((input==5)&&!(a20==1))&&!(a24==1)))&&(a16==9)))&&((a12==1)&&((a8==1)||(!(a26==1)&&((((a21==10)&&((a1==14)&&((a17==2)&&((a12==1)&&(a9==8)))))&&!(a24==1))&&!(a26==1))))))){ + if((a7==1)){ + a19 = 2; + a13 = 0; + a1 = 12; + a27 = 1; + a6 = 0; + a21 = 12; + a5 = 4; + a16 = 7; + }else{ + a16 = 8; + a5 = 6; + a20 = 1; + a7 = 1; + a9 = 11; + a1 = 12; + a15 = 1; + a21 = 11; + } + return 22; + } else if((((((a1==12)&&((a2==1)&&(((a9==11)&&((a3==1)&&!(a24==1)))&&(a21==12))))||!(a11==1))&&(a2==1))&&(!(a26==1)&&((a19==4)&&((a16==7)&&((a11==1)&&(((a5==4)&&(!(a20==1)&&(input==3)))&&(a17==2)))))))){ + a8 = 0; + a19 = 1; + a9 = 7; + a21 = 10; + a12 = 1; + a20 = 1; + a2 = 1; + return -1; + } else if((((((a17==2)&&((((((a6==1)&&(a19==3))&&(a1==13))&&!(a20==1))&&(a16==7))&&(a13==1)))||!(a12==1))||!(a13==1))&&((a13==1)&&(((a2==1)&&(!(a7==1)&&((input==1)&&(((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))))&&(a21==11))))){ + a16 = 11; + a28 = 1; + a11 = 1; + a1 = 14; + a5 = 4; + a20 = 1; + a9 = 8; + return 22; + } else if(((!(a7==1)&&((((a21==12)&&((a17==2)&&((a20==1)&&(((a2==1)&&(a28==1))&&(a1==13)))))&&(a19==4))&&(a16==8)))&&((a3==1)&&(((a5==5)&&(!(a14==1)&&(((a9==7)&&(input==6))&&!(a18==1))))&&!(a8==1))))){ + a18 = 0; + a5 = 4; + a1 = 12; + a16 = 7; + a21 = 10; + a11 = 1; + a7 = 0; + a19 = 1; + return -1; + } else if(((!(a24==1)&&(!(a4==1)&&(((!(a20==1)&&((a17==2)&&((a5==5)&&(((input==6)&&(a19==5))&&(a21==12)))))&&(a1==13))&&(a2==1))))&&(!(a7==1)&&(!(a7==1)&&((((a28==1)&&(a9==10))&&(a16==9))||!(a6==1)))))){ + if((a29==1)){ + a9 = 8; + a20 = 1; + a16 = 7; + a15 = 1; + a7 = 1; + a19 = 1; + a21 = 10; + a13 = 0; + }else{ + a9 = 9; + a29 = 1; + a20 = 1; + a3 = 0; + a16 = 7; + a15 = 0; + a1 = 12; + a21 = 10; + a19 = 1; + } + return 22; + } else if((((a9==8)&&(((((a11==1)&&((a21==12)&&((input==4)&&((a5==5)||(a5==6)))))&&(a2==1))&&!(a7==1))&&(a6==1)))&&((a12==1)&&((a16==9)&&((a20==1)&&((((a1==14)&&((a6==1)&&(a17==2)))&&!(a27==1))&&(a19==2))))))){ + a9 = 7; + a3 = 1; + a19 = 1; + a26 = 0; + a5 = 4; + a1 = 12; + a4 = 0; + a16 = 7; + a21 = 10; + return -1; + } else if(((((((a1==14)&&((!(a3==1)||(((a20==1)&&((a19==3)&&(a11==1)))&&(a17==2)))&&(a21==10)))&&(a16==9))||!(a11==1))||(a18==1))&&((!(a18==1)&&((a3==1)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==5))))&&!(a26==1)))){ + a11 = 1; + a16 = 7; + a4 = 0; + a5 = 4; + a23 = 1; + a19 = 1; + a9 = 7; + a1 = 12; + return -1; + } else if((((a17==2)&&(((a1==12)&&((a7==1)||((((a2==1)&&(a20==1))||(a26==1))||(a27==1))))&&(a19==5)))&&(((a16==7)&&((a21==12)&&((a12==1)&&((a2==1)&&((a9==10)&&((input==4)&&(a5==5)))))))&&(a2==1)))){ + a9 = 7; + a0 = 0; + a12 = 1; + a19 = 1; + a21 = 10; + a11 = 1; + a5 = 4; + return -1; + } else if((((!(a27==1)&&(!(a27==1)&&(((a21==12)&&(((a5==4)&&(input==6))&&(a11==1)))&&(a19==4))))&&(a17==2))&&(!(a27==1)&&((a1==12)&&(((a16==9)&&((!(a18==1)&&((a11==1)&&(a9==11)))&&(a20==1)))&&(a28==1)))))){ + a21 = 10; + a23 = 1; + a16 = 7; + a12 = 1; + a11 = 1; + a9 = 7; + a19 = 1; + return -1; + } else if((((((a9==9)&&(!(a26==1)&&(((input==3)&&(a20==1))&&(a12==1))))&&(a16==7))&&(a3==1))&&(((!(a6==1)||(((a21==12)&&((a24==1)||((a1==14)&&(!(a12==1)||(a2==1)))))&&(a5==6)))&&(a17==2))&&(a19==5)))){ + a5 = 4; + a7 = 0; + a19 = 1; + a8 = 0; + a21 = 10; + a9 = 7; + a1 = 12; + a14 = 0; + return -1; + } else if((((a23==1)&&((!(a13==1)||((!(a2==1)||((a16==10)&&(a6==1)))&&(a1==12)))&&!(a20==1)))&&(((((a17==2)&&(((a21==12)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==1)))&&(a2==1)))&&(a19==1))&&(a6==1))&&!(a26==1)))){ + if((a23==1)){ + a5 = 5; + a29 = 1; + a16 = 7; + a1 = 13; + a9 = 7; + a25 = 1; + a22 = 1; + a19 = 2; + }else{ + a11 = 0; + a9 = 11; + a20 = 1; + a19 = 3; + a21 = 11; + a22 = 1; + a15 = 1; + a5 = 6; + } + return -1; + } else if(((((((((a21==12)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))&&!(a27==1))&&(a12==1))&&!(a8==1))&&(a16==8))&&!(a20==1))&&(((((((a1==12)&&((a13==1)&&(a28==1)))&&(a3==1))||(a0==1))&&(a9==8))&&(a19==1))&&(a17==2)))){ + a16 = 7; + a21 = 10; + a9 = 11; + a1 = 14; + a3 = 0; + a26 = 1; + a20 = 1; + a5 = 6; + a13 = 0; + return 23; + } else if((((a1==14)&&(((((a17==2)&&((a5==6)&&((a6==1)&&((input==5)&&(a9==11)))))&&(a11==1))&&(a23==1))&&(a16==7)))&&(((a21==11)&&(((((a11==1)&&(a19==1))&&(a2==1))&&!(a20==1))&&(a28==1)))||!(a12==1)))){ + a9 = 7; + a4 = 0; + a1 = 12; + a21 = 10; + a20 = 1; + a27 = 0; + a5 = 4; + a23 = 1; + return -1; + } else if((((((((!(a13==1)||(!(a20==1)&&((a21==10)&&(a23==1))))||(a24==1))||!(a13==1))||!(a12==1))&&!(a14==1))&&!(a18==1))&&(((a16==10)&&((input==4)&&((((a19==1)&&((a9==11)&&((a1==14)&&(a5==6))))||((a19==2)&&(((a5==4)&&(a1==12))&&(a9==7))))||((a19==2)&&(((a1==12)&&(a5==5))&&(a9==7))))))&&(a17==2)))){ + a16 = 7; + a5 = 6; + a21 = 11; + a9 = 10; + a23 = 0; + a25 = 0; + a1 = 14; + a19 = 5; + a28 = 0; + a20 = 1; + return 22; + } else if((((a20==1)&&((((((!(a4==1)&&(((((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4)))&&(input==3))&&!(a4==1))&&(a17==2)))&&!(a4==1))&&(a1==12))&&(a21==11))&&!(a18==1))&&(a19==2)))&&(!(a27==1)&&(!(a14==1)&&((a16==7)&&(a2==1)))))){ + a11 = 1; + a13 = 1; + a5 = 4; + a19 = 1; + a21 = 10; + a9 = 7; + a24 = 0; + return -1; + } else if((((((a17==2)&&((!(a27==1)&&((a2==1)&&!(a20==1)))&&(a16==10)))&&!(a7==1))&&(a21==10))&&((((((((input==4)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(a13==1))&&(a3==1))&&(a19==3))&&(a1==12))&&(a13==1))&&!(a18==1)))){ + a9 = 7; + a19 = 5; + a14 = 1; + a1 = 13; + a16 = 9; + a25 = 0; + a5 = 4; + return 26; + } else if((((a28==1)&&((a19==2)&&((a1==12)&&(!(a11==1)||((a5==4)&&((a9==9)&&((a13==1)&&(a2==1))))))))&&((a17==2)&&(!(a7==1)&&(((((!(a20==1)&&(input==6))&&!(a0==1))&&(a16==10))&&(a21==12))&&(a28==1)))))){ + if((a16==9)){ + a20 = 1; + a21 = 11; + a14 = 1; + a19 = 4; + a1 = 14; + a5 = 5; + a16 = 9; + a9 = 7; + a6 = 0; + a29 = 0; + }else{ + a21 = 10; + a4 = 1; + a5 = 6; + a7 = 1; + a16 = 7; + a20 = 1; + a14 = 1; + } + return 23; + } else if(((((a1==13)&&((a28==1)&&(((a5==5)||(a5==6))&&(input==4))))&&!(a26==1))&&(((a23==1)&&((a13==1)&&(((a9==11)&&((a17==2)&&(((((a11==1)&&!(a20==1))||(a14==1))&&(a19==5))&&(a16==7))))&&(a21==11))))||!(a3==1)))){ + a5 = 4; + a19 = 1; + a20 = 1; + a1 = 12; + a18 = 0; + a7 = 0; + a9 = 7; + a21 = 10; + a14 = 0; + return -1; + } else if(((!(a3==1)||(((((a19==5)&&(((a16==8)&&(a13==1))||(a4==1)))&&!(a20==1))&&(a23==1))&&(a1==13)))&&(((a21==12)&&(((((input==3)&&(((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))))&&(a17==2))&&(a2==1))&&(a3==1)))&&!(a26==1)))){ + a9 = 11; + a2 = 0; + a24 = 1; + a5 = 4; + a21 = 10; + a20 = 1; + a19 = 2; + a1 = 12; + a27 = 1; + a16 = 7; + return -1; + } else if((((a21==10)&&((((((input==4)&&((a5==4)||(a5==5)))&&!(a27==1))&&!(a7==1))&&(a1==13))&&(a16==10)))&&((a9==7)&&((!(a0==1)&&((a17==2)&&((a24==1)||((((a11==1)||(a24==1))&&(a6==1))&&!(a20==1)))))&&(a19==3))))){ + a29 = 0; + a9 = 10; + a5 = 6; + a16 = 9; + a1 = 14; + a15 = 1; + a19 = 1; + a21 = 11; + return -1; + } else if((((a21==12)&&((a14==1)||(!(a12==1)||(((((a17==2)&&(a13==1))&&!(a7==1))&&(a19==1))||(a8==1)))))&&((((((((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a20==1))&&!(a18==1))&&!(a27==1))&&(a16==8))&&(a1==13))&&(a9==9)))){ + a8 = 0; + a5 = 4; + a1 = 12; + a9 = 7; + a2 = 1; + a21 = 10; + a3 = 1; + a16 = 7; + return -1; + } else if(((((((a27==1)||((a20==1)&&((a13==1)&&(a21==11))))||!(a6==1))&&(a16==8))||(a14==1))&&((a19==2)&&(((a1==13)&&((((a9==10)&&(((input==1)&&((a5==4)||(a5==5)))&&(a17==2)))&&(a3==1))&&!(a0==1)))&&(a28==1))))){ + a5 = 4; + a21 = 10; + a9 = 7; + a19 = 1; + a2 = 1; + a18 = 0; + a1 = 12; + a16 = 7; + a24 = 0; + return -1; + } else if((((((((a24==1)||(a2==1))||(a0==1))&&!(a4==1))&&(a11==1))&&(a21==11))&&((a19==1)&&(((a9==7)&&((a1==13)&&((!(a20==1)&&((((input==6)&&(a17==2))&&(a28==1))&&(a16==9)))&&!(a18==1))))&&(a5==5))))){ + a16 = 7; + a27 = 1; + a20 = 1; + a6 = 0; + a21 = 10; + a5 = 4; + a3 = 0; + return 25; + } else if(((((((a6==1)&&((((input==5)&&(a16==7))&&!(a27==1))&&(a2==1)))&&(a1==12))&&!(a26==1))&&(a20==1))&&((a5==4)&&((a21==10)&&((a11==1)&&((a9==9)&&((((a6==1)&&(a17==2))&&(a19==3))||(a24==1)))))))){ + a19 = 5; + a14 = 0; + a2 = 1; + a1 = 13; + a23 = 1; + a5 = 5; + a9 = 8; + return 22; + } else if((((!(a26==1)&&((a16==10)&&(!(a14==1)&&((a23==1)&&((a11==1)&&(((input==1)&&((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10))))&&(a12==1)))))))&&(a17==2))&&(((a19==3)&&(!(a6==1)||(((a13==1)&&(a1==14))&&(a21==12))))&&(a20==1)))){ + a9 = 9; + a26 = 0; + a19 = 2; + a5 = 4; + a21 = 10; + a6 = 1; + a4 = 0; + a16 = 7; + a1 = 13; + return 25; + } else if(((!(a14==1)&&((a1==12)&&((((a17==2)&&((((a13==1)&&(!(a14==1)&&((input==5)&&(a21==10))))&&!(a7==1))&&!(a24==1)))&&!(a26==1))&&(a16==8))))&&(((a9==9)&&(!(a20==1)&&((a6==1)&&(a19==4))))&&(a5==4)))){ + a6 = 1; + a19 = 5; + a3 = 1; + a13 = 1; + a21 = 11; + a9 = 10; + return 21; + } else if(((!(a13==1)||((((a13==1)&&((a17==2)&&((a4==1)||(a23==1))))||!(a6==1))||(a27==1)))&&((a19==3)&&((((((((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4)))&&(input==3))&&(a11==1))&&(a16==9))&&(a21==12))&&!(a20==1))&&(a1==13))))){ + a19 = 1; + a1 = 12; + a24 = 1; + a21 = 10; + a5 = 6; + a27 = 1; + a9 = 9; + a20 = 1; + a4 = 1; + a16 = 7; + return 26; + } else if((((a9==7)&&((a21==10)&&(!(a4==1)&&(((a19==3)&&(a28==1))||(a0==1)))))&&((((a12==1)&&(((((((input==3)&&((a5==5)||(a5==6)))&&(a3==1))&&(a16==8))&&(a17==2))&&!(a8==1))&&!(a20==1)))&&(a1==13))&&!(a7==1)))){ + a19 = 4; + a9 = 8; + a5 = 6; + a20 = 1; + a18 = 0; + a11 = 1; + a21 = 12; + a1 = 14; + a6 = 1; + return 26; + } else if((((a17==2)&&(!(a20==1)&&((a1==12)&&(((a6==1)&&(a16==8))&&(a19==2)))))&&(((a9==11)&&((!(a24==1)&&(!(a24==1)&&(!(a4==1)&&((((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&!(a7==1))&&(a12==1)))))&&(a6==1)))&&(a21==11)))){ + a5 = 4; + a9 = 7; + a19 = 4; + a20 = 1; + a28 = 1; + a23 = 1; + a7 = 0; + return 23; + } else if(((((a17==2)&&(((a14==1)||((((a28==1)&&(a5==5))&&(a21==11))&&(a9==7)))&&(a1==13)))||(a7==1))&&(((!(a24==1)&&(!(a20==1)&&(!(a24==1)&&(((input==1)&&(a16==10))&&(a19==3)))))&&!(a26==1))&&!(a8==1)))){ + a9 = 8; + a1 = 12; + a19 = 2; + a29 = 0; + a25 = 1; + a22 = 1; + a21 = 10; + a16 = 7; + a20 = 1; + return -1; + } else if((((a21==11)&&(!(a11==1)||((a2==1)&&((a19==2)&&(((!(a20==1)&&(a28==1))&&(a1==12))||!(a23==1))))))&&(((a17==2)&&((((a3==1)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==4)))&&(a3==1))&&(a3==1)))&&(a16==7)))){ + a9 = 7; + a21 = 10; + a19 = 1; + a12 = 1; + a4 = 0; + a13 = 1; + a20 = 1; + a5 = 4; + return -1; + } else if(((((((input==4)&&((((a9==11)&&((a1==12)&&(a5==6)))||(((a1==13)&&(a5==4))&&(a9==7)))||(((a1==13)&&(a5==5))&&(a9==7))))&&(a21==11))&&!(a12==1))&&(a20==1))&&((!(a28==1)&&(((a17==2)&&((!(a6==1)&&((a19==2)&&((a24==1)&&(a11==1))))&&(a7==1)))&&(a16==7)))&&(a14==1)))){ + a21 = 10; + a3 = 0; + a4 = 1; + a9 = 8; + a1 = 12; + a10 = 0; + a19 = 1; + a5 = 5; + return -1; + } else if((((a24==1)||((a17==2)&&(!(a7==1)&&((a19==2)&&((((!(a20==1)&&(a13==1))||!(a11==1))&&(a1==13))&&(a21==10))))))&&(((a2==1)&&((!(a26==1)&&((((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(input==3)))&&(a28==1)))&&(a16==8)))){ + a13 = 1; + a1 = 12; + a5 = 4; + a16 = 7; + a19 = 1; + a28 = 1; + a9 = 7; + a24 = 0; + a20 = 1; + return -1; + } else if(((((a12==1)&&((a16==7)&&((((a17==2)&&((((input==6)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(a3==1))&&(a6==1)))&&(a20==1))&&(a1==13))))&&!(a26==1))&&((a12==1)&&(((a21==12)&&((a8==1)||(a12==1)))&&(a19==3))))){ + a19 = 5; + a5 = 5; + a21 = 10; + a8 = 0; + a9 = 8; + a16 = 9; + a12 = 1; + return 26; + } else if(((((((a16==10)&&((a21==10)&&((((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(input==3))))&&(a28==1))&&!(a7==1))&&(a19==3))&&((((a17==2)&&((!(a0==1)&&(!(a27==1)&&((a12==1)&&!(a27==1))))&&(a28==1)))&&(a1==13))&&(a20==1)))){ + a16 = 7; + a0 = 0; + a1 = 12; + a19 = 1; + a2 = 1; + a5 = 4; + a7 = 0; + a9 = 7; + return -1; + } else if((((a20==1)&&((a5==5)&&((a12==1)&&((a9==9)&&((a19==2)&&(!(a4==1)&&((input==3)&&(a17==2))))))))&&(!(a11==1)||((a1==14)&&(!(a18==1)&&((((a13==1)&&((a2==1)&&(a21==12)))&&(a16==11))&&!(a14==1))))))){ + a1 = 12; + a11 = 1; + a9 = 7; + a21 = 10; + a5 = 4; + a16 = 7; + a12 = 1; + a13 = 1; + a19 = 1; + return -1; + } else if(((((((a13==1)&&((a1==14)&&(!(a12==1)||(a3==1))))&&(a20==1))&&(a21==10))||(a0==1))&&((!(a14==1)&&(((a19==3)&&(((((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4)))&&(input==5))&&(a12==1))&&!(a18==1)))&&(a16==11)))&&(a17==2)))){ + a19 = 2; + a16 = 10; + a9 = 9; + a18 = 0; + a5 = 4; + a7 = 0; + a13 = 1; + return 21; + } else if((((a17==2)&&((a9==10)&&((a19==2)&&((((a3==1)&&((((a16==8)&&(input==3))&&!(a8==1))&&(a1==12)))&&(a20==1))&&!(a7==1)))))&&((a5==4)&&(((a8==1)||((a28==1)&&(!(a18==1)&&(a13==1))))&&(a21==12))))){ + a16 = 7; + a9 = 7; + a2 = 1; + a19 = 1; + a28 = 1; + a21 = 10; + return -1; + } else if(((!(a24==1)&&(!(a24==1)&&((((((a5==5)||(a5==6))&&(input==5))&&(a9==10))&&(a1==12))&&(a16==10))))&&(((a23==1)&&(!(a0==1)&&(((((a17==2)&&(!(a23==1)||(a11==1)))&&!(a20==1))&&(a19==3))&&(a21==11))))&&(a23==1)))){ + a5 = 4; + a16 = 7; + a20 = 1; + a9 = 11; + a19 = 1; + a13 = 0; + a1 = 14; + a21 = 10; + a18 = 1; + a28 = 0; + return -1; + } else if(((((((((!(a14==1)&&((input==6)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))))&&(a6==1))&&!(a26==1))&&!(a7==1))&&!(a7==1))&&(a16==8))&&(a19==5))&&((((a1==14)&&((a20==1)&&((a17==2)&&(a13==1))))&&!(a24==1))&&(a21==11)))){ + a1 = 12; + a4 = 0; + a13 = 1; + a5 = 6; + a16 = 10; + a9 = 8; + a19 = 4; + a23 = 1; + return 21; + } else if(((((a17==2)&&((a1==12)&&((((a28==1)||!(a28==1))||!(a28==1))&&(a23==1))))&&(a16==8))&&(((a19==2)&&((((((input==5)&&(((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))))&&(a28==1))&&(a13==1))&&(a2==1))&&(a21==12)))&&(a20==1)))){ + a27 = 0; + a16 = 7; + a5 = 4; + a2 = 1; + a13 = 1; + a21 = 10; + a9 = 7; + a19 = 1; + return -1; + } else if((((a19==1)&&(((a1==12)&&(((a23==1)&&(!(a26==1)&&(((a5==5)||(a5==6))&&(input==6))))&&(a13==1)))&&(a2==1)))&&(((((a13==1)&&((a13==1)&&((a16==7)&&((a11==1)&&(a21==12)))))&&(a9==8))&&!(a20==1))&&(a17==2)))){ + a9 = 11; + a20 = 1; + a16 = 9; + a2 = 1; + a5 = 6; + a27 = 0; + a1 = 13; + a21 = 10; + return -1; + } else if((((!(a8==1)&&(((((a9==11)&&(((input==3)&&(a17==2))&&(a20==1)))&&(a11==1))&&(a21==12))&&(a1==12)))&&!(a18==1))&&((a7==1)||(((a11==1)&&((a16==9)&&((a19==4)&&((a3==1)&&(a5==6)))))&&!(a14==1))))){ + a8 = 0; + a12 = 1; + a21 = 10; + a19 = 1; + a16 = 7; + a9 = 7; + a5 = 4; + return -1; + } else if((((!(a26==1)&&((a7==1)||((a3==1)&&(a20==1))))||!(a11==1))&&(((a9==7)&&((a17==2)&&((a16==8)&&((a1==12)&&((((!(a4==1)&&((a21==12)&&(input==1)))&&(a19==1))&&(a11==1))&&(a12==1))))))&&(a5==5)))){ + a1 = 13; + a16 = 10; + a21 = 11; + a6 = 1; + a19 = 4; + a23 = 1; + return 22; + } else if(((((!(a7==1)&&((a19==3)&&((((((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(input==5))&&(a6==1))&&(a16==7))))&&(a23==1))&&!(a27==1))&&((!(a18==1)&&(!(a20==1)&&((((a17==2)&&(a2==1))&&(a21==10))&&!(a0==1))))&&(a1==13)))){ + a11 = 1; + a18 = 0; + a4 = 0; + a19 = 1; + a5 = 4; + a1 = 12; + a9 = 7; + a20 = 1; + return -1; + } else if((((!(a3==1)&&((a21==11)&&(((!(a12==1)&&(a11==1))&&!(a28==1))&&!(a28==1))))&&!(a2==1))&&((a20==1)&&((a17==2)&&(((a9==10)&&((a1==13)&&((a27==1)&&(((input==3)&&(a5==5))&&(a16==11)))))&&(a19==2)))))){ + a2 = 0; + a27 = 1; + a21 = 10; + a9 = 11; + a19 = 1; + a12 = 0; + a16 = 7; + return -1; + } else if(((((a19==3)&&(!(a11==1)||(((a23==1)&&(a6==1))&&(a28==1))))&&(a1==13))&&((a16==9)&&((a17==2)&&(((a21==12)&&(((a6==1)&&(((input==1)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(a6==1)))&&(a2==1)))&&(a20==1)))))){ + a16 = 7; + a9 = 7; + a28 = 1; + a3 = 1; + a1 = 12; + a21 = 10; + a24 = 0; + a5 = 4; + a19 = 1; + return -1; + } else if(((((a8==1)||((a1==12)&&(!(a8==1)&&((a16==8)&&((a21==10)&&((a6==1)&&(a19==4)))))))&&(a20==1))&&(((a13==1)&&((a13==1)&&((a28==1)&&((a9==8)&&((a17==2)&&((input==5)&&((a5==4)||(a5==5))))))))&&!(a18==1)))){ + a28 = 1; + a5 = 4; + a23 = 1; + a16 = 7; + a19 = 1; + a3 = 1; + a9 = 7; + return -1; + } else if((((((!(a23==1)||((a9==9)&&(!(a23==1)||(a23==1))))&&(a21==12))&&(a17==2))&&!(a20==1))&&((a19==3)&&(!(a26==1)&&((a23==1)&&(!(a0==1)&&((a28==1)&&((a16==7)&&((((a5==4)||(a5==5))&&(input==3))&&(a1==13)))))))))){ + a23 = 1; + a21 = 10; + a19 = 1; + a9 = 7; + a5 = 4; + a1 = 12; + a20 = 1; + a26 = 0; + a6 = 1; + return -1; + } else if(((!(a14==1)&&(((((input==5)&&((a5==5)||(a5==6)))&&(a1==13))&&(a20==1))&&(a17==2)))&&(!(a6==1)||((a3==1)&&(((((((a9==10)&&((a3==1)&&(a28==1)))&&(a21==11))&&(a16==10))&&(a19==3))&&!(a24==1))||!(a6==1)))))){ + a16 = 7; + a21 = 10; + a19 = 2; + a9 = 9; + a3 = 1; + a5 = 4; + a12 = 1; + return 25; + } else if((((a2==1)&&(!(a20==1)&&(!(a8==1)&&((a16==8)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a1==13))))))&&((((a19==4)&&(((a17==2)&&((((a12==1)&&(a28==1))&&(a21==10))||(a4==1)))||(a7==1)))&&(a9==9))||(a27==1)))){ + a23 = 1; + a28 = 1; + a9 = 7; + a16 = 7; + a5 = 4; + a1 = 12; + a20 = 1; + a2 = 1; + a19 = 1; + return -1; + } else if(((((!(a0==1)&&(((a1==13)&&((input==4)&&(a5==5)))&&(a12==1)))&&(a16==10))&&(a19==3))&&((a17==2)&&((a13==1)&&((((((a9==8)&&((a11==1)||!(a28==1)))&&(a20==1))&&(a21==10))&&(a2==1))&&!(a27==1)))))){ + a16 = 7; + a5 = 4; + a19 = 1; + a1 = 12; + a26 = 0; + a2 = 1; + a23 = 1; + a9 = 7; + return -1; + } else if((((a4==1)||(!(a27==1)&&((a5==5)&&(a11==1))))&&(!(a20==1)&&(((a23==1)&&((a21==12)&&((a16==10)&&((!(a7==1)&&(((a9==7)&&((a28==1)&&((input==4)&&(a1==13))))&&(a19==2)))&&(a17==2)))))&&!(a14==1))))){ + if((a10==1)){ + a2 = 0; + a16 = 7; + a6 = 0; + a1 = 12; + a20 = 1; + a15 = 1; + a9 = 10; + }else{ + a16 = 7; + a5 = 4; + a20 = 1; + a21 = 10; + a1 = 12; + a26 = 1; + a10 = 0; + a19 = 1; + a9 = 10; + a4 = 1; + } + return -1; + } else if(((((a1==12)&&((((a20==1)&&((a17==2)&&((input==5)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))))&&(a16==11))&&(a2==1)))&&!(a27==1))&&(((a24==1)||(((a19==5)&&((a24==1)||((a11==1)&&(a21==11))))||(a4==1)))&&!(a24==1)))){ + a5 = 4; + a21 = 10; + a0 = 0; + a6 = 1; + a9 = 7; + a16 = 7; + a2 = 1; + a19 = 1; + return -1; + } else if((((a19==3)&&(((((a5==4)&&((((a1==12)&&(input==1))&&(a17==2))&&(a21==11)))&&!(a7==1))&&!(a18==1))&&(a13==1)))&&(((a16==8)&&((a14==1)||(((a27==1)||((a28==1)&&!(a26==1)))&&(a9==11))))&&(a20==1)))){ + a19 = 1; + a9 = 7; + a13 = 1; + a11 = 1; + a21 = 10; + a16 = 7; + a27 = 0; + return -1; + } else if(((((((a6==1)&&((a1==13)&&(!(a18==1)&&((input==1)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))))))&&!(a4==1))&&(a19==3))&&!(a20==1))&&(((a21==10)&&(((a2==1)&&(!(a11==1)||(!(a18==1)&&(a13==1))))&&(a17==2)))&&(a16==11)))){ + a1 = 14; + a20 = 1; + a5 = 6; + a21 = 12; + a4 = 1; + a19 = 1; + a25 = 0; + a9 = 11; + a16 = 8; + return -1; + } else if((((a5==4)&&(!(a18==1)&&((a13==1)&&(((((input==3)&&(a9==8))&&(a16==8))&&(a23==1))&&!(a8==1)))))&&((((a1==12)&&((a17==2)&&(!(a27==1)&&((a19==2)&&(!(a20==1)&&(a28==1))))))&&(a21==10))||(a7==1)))){ + a16 = 7; + a19 = 1; + a9 = 7; + a24 = 0; + a12 = 1; + a20 = 1; + return -1; + } else if(((((a16==7)&&((a2==1)&&(((!(a7==1)&&(((a19==5)&&(input==5))&&(a20==1)))&&(a1==13))&&(a5==5))))&&(a2==1))&&((a17==2)&&((((((a9==11)&&(a23==1))||!(a3==1))&&(a21==11))||!(a23==1))||(a7==1))))){ + if((a12==1)){ + a24 = 0; + a16 = 8; + a19 = 4; + a9 = 10; + a1 = 14; + a20 = 0; + a7 = 0; + a21 = 10; + a13 = 1; + }else{ + a8 = 0; + a19 = 2; + a24 = 0; + a16 = 8; + a3 = 1; + a21 = 12; + a1 = 14; + } + return 23; + } else if((((a16==8)&&(((a17==2)&&(((((a18==1)||(a2==1))&&(a11==1))||!(a28==1))&&(a19==3)))&&(a21==11)))&&(!(a0==1)&&(((a1==13)&&((a20==1)&&(!(a8==1)&&((input==4)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))))&&!(a27==1))))){ + a14 = 0; + a1 = 12; + a8 = 0; + a5 = 4; + a9 = 7; + a16 = 7; + a4 = 0; + a21 = 10; + a19 = 1; + return -1; + } else if(((((!(a6==1)||((a17==2)&&((a1==12)&&(((a16==10)&&((a6==1)&&(a21==10)))&&!(a4==1)))))&&(a2==1))||!(a3==1))&&(((a19==3)&&((((input==1)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11))))&&!(a20==1))&&!(a8==1)))&&!(a24==1)))){ + a16 = 7; + a27 = 1; + a5 = 5; + a1 = 14; + a20 = 1; + a19 = 4; + a3 = 0; + a22 = 1; + a9 = 10; + return -1; + } else if((((!(a20==1)&&((a21==12)&&(!(a27==1)&&((((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a5==4)&&(a9==11)))&&(input==3))&&(a1==12)))))&&!(a4==1))&&(!(a28==1)||((a8==1)||((a17==2)&&((a7==1)||(((a16==10)&&((a19==5)&&(a12==1)))||!(a13==1)))))))){ + if((a12==1)){ + a9 = 11; + a16 = 7; + a5 = 4; + a20 = 1; + a10 = 1; + a21 = 10; + a1 = 14; + a19 = 1; + a15 = 0; + }else{ + a21 = 10; + a15 = 1; + a5 = 5; + a9 = 9; + a20 = 1; + a11 = 0; + a2 = 0; + a16 = 11; + a1 = 13; + } + return -1; + } else if(((!(a6==1)||((a23==1)&&(a17==2)))&&((a9==10)&&((((a19==1)&&(((a16==9)&&(((a23==1)&&((((((a5==5)||(a5==6))&&(input==3))&&!(a20==1))&&(a21==11))&&(a28==1)))&&(a28==1)))&&(a2==1)))&&!(a0==1))&&(a1==12))))){ + if((a10==1)){ + a20 = 1; + a5 = 6; + a16 = 7; + a24 = 1; + a21 = 10; + a25 = 1; + a9 = 8; + }else{ + a21 = 10; + a5 = 6; + a23 = 0; + a9 = 9; + a15 = 1; + a16 = 8; + a1 = 13; + a3 = 0; + } + return 25; + } else if((((((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&(a11==1))&&(a20==1))&&((a1==13)&&(!(a24==1)&&((((((a17==2)&&((!(a26==1)&&((a9==8)&&((a3==1)&&(a21==12))))||(a27==1)))&&(a23==1))||(a24==1))&&(a16==8))&&(a19==3)))))){ + a0 = 0; + a9 = 7; + a1 = 12; + a5 = 4; + a21 = 10; + a13 = 1; + a19 = 1; + a16 = 7; + a28 = 1; + return -1; + } else if(((!(a13==1)||((!(a11==1)||(a13==1))||!(a12==1)))&&((((a17==2)&&(((((a1==12)&&(((((input==3)&&(a9==11))&&!(a14==1))&&(a21==10))&&(a16==8)))&&(a11==1))&&!(a20==1))&&!(a4==1)))&&(a5==6))&&(a19==5)))){ + a16 = 9; + a20 = 1; + a9 = 7; + a5 = 5; + a26 = 0; + a19 = 3; + a24 = 0; + a21 = 12; + return 25; + } else if(((((a3==1)&&((a21==10)&&(((a1==14)&&((a9==10)&&(((a19==3)&&((a16==7)&&(a13==1)))&&(a3==1))))&&(a23==1))))&&(a17==2))&&(((a2==1)&&((!(a18==1)&&((input==6)&&(a5==6)))&&(a12==1)))&&(a20==1)))){ + a21 = 11; + a5 = 5; + a11 = 1; + a9 = 7; + a12 = 1; + a1 = 12; + a2 = 1; + return 26; + } else if((((a1==12)&&(((a20==1)&&(a6==1))&&(a3==1)))&&(((a17==2)&&(((!(a27==1)&&(((((((input==6)&&((a5==4)||(a5==5)))&&(a21==11))&&(a23==1))&&!(a4==1))&&(a19==4))&&(a16==9)))&&(a2==1))&&!(a0==1)))&&(a9==11)))){ + a16 = 7; + a21 = 10; + a19 = 2; + a9 = 10; + a5 = 4; + a1 = 13; + a18 = 0; + a2 = 1; + a11 = 1; + return 21; + } else if((((!(a8==1)&&(((a21==12)&&((a9==9)&&(!(a18==1)&&(((a18==1)||(a23==1))&&(a1==12)))))&&(a19==2)))&&!(a4==1))&&((a3==1)&&((a20==1)&&((a16==11)&&((((input==3)&&((a5==5)||(a5==6)))&&(a28==1))&&(a17==2))))))){ + a21 = 10; + a5 = 4; + a19 = 1; + a7 = 0; + a16 = 7; + a9 = 7; + a3 = 1; + return -1; + } else if(((((a1==14)&&(((a16==9)&&(a23==1))&&(a21==12)))||(a18==1))&&((a13==1)&&(!(a24==1)&&(!(a26==1)&&(((((a12==1)&&(((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==5))&&(a19==5)))&&(a13==1))&&(a17==2))&&(a20==1))))))){ + a21 = 10; + a5 = 6; + a9 = 8; + a16 = 8; + a8 = 0; + a11 = 1; + a13 = 1; + return 22; + } else if(((((((a19==3)&&((a17==2)&&(!(a18==1)&&((a1==13)&&((input==5)&&(((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))))))))&&!(a14==1))&&!(a26==1))&&(a28==1))&&(!(a0==1)&&((a21==11)&&(!(a20==1)&&((a16==8)&&((a3==1)||(a14==1)))))))){ + a16 = 7; + a21 = 10; + a9 = 7; + a1 = 12; + a28 = 1; + a23 = 1; + a5 = 4; + a20 = 1; + a19 = 1; + a12 = 1; + return -1; + } else if((((((((a1==13)&&((((input==3)&&((a5==4)||(a5==5)))&&!(a20==1))&&(a2==1)))&&!(a26==1))&&(a16==8))&&!(a24==1))&&!(a24==1))&&((a17==2)&&(!(a0==1)&&((a28==1)&&((a19==2)&&((a9==9)&&((a12==1)&&(a21==10))))))))){ + a1 = 14; + a9 = 11; + a19 = 1; + a5 = 4; + a20 = 1; + a2 = 1; + a21 = 11; + a0 = 0; + a16 = 10; + a14 = 0; + return 22; + } else if((((a4==1)||((((((a27==1)||((a17==2)&&((((a19==3)&&(a23==1))&&(a1==14))||!(a12==1))))&&(a21==10))&&(a3==1))&&(a20==1))&&(a16==11)))&&((((input==5)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&!(a0==1))&&(a13==1)))){ + a4 = 0; + a21 = 12; + a0 = 0; + a1 = 12; + a16 = 9; + a5 = 4; + a2 = 1; + a9 = 9; + return 21; + } else if(((!(a11==1)||(((((a19==1)&&(a23==1))&&(a21==11))||(a27==1))&&!(a20==1)))&&(!(a18==1)&&(((((a23==1)&&((a17==2)&&((a16==8)&&((input==3)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))))&&(a1==12))&&(a23==1))&&!(a0==1))))){ + a9 = 7; + a5 = 4; + a16 = 7; + a18 = 0; + a21 = 10; + a23 = 1; + a11 = 1; + a20 = 1; + return -1; + } else if(((((a26==1)||((a4==1)||((((a16==7)&&((a13==1)||!(a13==1)))&&(a21==11))&&(a17==2))))||!(a3==1))&&((a19==3)&&((a20==1)&&((a28==1)&&(((a1==12)&&(((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4)))&&(input==4)))&&(a28==1))))))){ + a27 = 0; + a9 = 7; + a5 = 4; + a19 = 1; + a12 = 1; + a18 = 0; + a21 = 10; + return -1; + } else if((((a16==7)&&((a3==1)&&(((((((a5==4)||(a5==5))&&(input==6))&&!(a18==1))&&(a11==1))&&(a23==1))&&(a21==12))))&&((a9==8)&&(((a19==2)&&(((a17==2)&&(((a11==1)&&!(a27==1))&&!(a20==1)))||!(a12==1)))&&(a1==12))))){ + a20 = 1; + a1 = 13; + a11 = 1; + a23 = 1; + a19 = 1; + a9 = 7; + a3 = 1; + a21 = 10; + a16 = 11; + a5 = 6; + return 26; + } else if((((!(a20==1)&&((input==5)&&(((a9==7)&&((a1==13)&&(a5==5)))||((((a5==6)&&(a1==12))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==13)))))))&&(a17==2))&&(((a23==1)&&(((a21==10)&&(((a11==1)&&(((a16==9)&&((a3==1)||(a18==1)))&&(a19==4)))&&!(a7==1)))||(a0==1)))||!(a6==1)))){ + a25 = 0; + a20 = 1; + a16 = 7; + a4 = 1; + a9 = 8; + a1 = 14; + a19 = 1; + a13 = 0; + a5 = 5; + return -1; + } else if((((a6==1)&&(!(a4==1)&&((a19==2)&&(((a1==13)&&(((a20==1)&&((input==3)&&(a5==6)))&&!(a8==1)))&&(a9==11)))))&&(((((((a6==1)&&(a23==1))&&!(a24==1))&&(a21==11))&&(a17==2))&&(a16==10))||!(a23==1)))){ + a19 = 1; + a21 = 10; + a16 = 9; + a28 = 1; + a1 = 14; + a9 = 8; + a6 = 1; + a5 = 4; + a0 = 0; + return 25; + } else if(((((a20==1)&&((a17==2)&&((a4==1)||((a6==1)&&(a16==11)))))||(a18==1))&&((a11==1)&&((((a21==12)&&((a3==1)&&(((input==5)&&(((((a5==5)&&(a1==12))&&(a9==11))||((a9==11)&&((a1==12)&&(a5==6))))||((a9==7)&&((a5==4)&&(a1==13)))))&&(a19==2))))&&!(a27==1))&&!(a0==1))))){ + a5 = 5; + a13 = 1; + a11 = 1; + a16 = 7; + a8 = 0; + a9 = 10; + a1 = 13; + a21 = 10; + return 21; + } else if(((!(a2==1)||(((a12==1)||!(a23==1))||(a14==1)))&&(((a13==1)&&((a1==12)&&((a17==2)&&((a16==10)&&((a20==1)&&(((((((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))&&(input==1))&&(a21==10))&&(a19==4))&&(a23==1)))))))&&!(a4==1)))){ + a3 = 1; + a28 = 1; + a19 = 1; + a9 = 7; + a12 = 1; + a5 = 5; + return 21; + } else if((((((a16==8)&&((a21==10)&&((!(a18==1)&&(a11==1))&&(a1==14))))&&(a6==1))&&(a17==2))&&(!(a20==1)&&((a19==3)&&(((a3==1)&&((a9==9)&&(!(a0==1)&&((a23==1)&&((input==5)&&((a5==5)||(a5==6)))))))&&!(a7==1)))))){ + a26 = 0; + a5 = 5; + a16 = 7; + a27 = 0; + a19 = 2; + a20 = 1; + a23 = 1; + a1 = 13; + return 25; + } else if((((((a18==1)&&((a9==7)&&(((!(a28==1)&&(((a5==4)||(a5==5))&&(input==1)))&&(a21==12))&&(a1==14))))&&(a19==3))&&(a26==1))&&(((a16==9)&&(((a17==2)&&((!(a12==1)&&(a23==1))&&(a0==1)))&&(a14==1)))&&(a20==1)))){ + a15 = 0; + a13 = 0; + a5 = 5; + a9 = 8; + a19 = 2; + a16 = 10; + a25 = 0; + a21 = 10; + return 25; + } else if(((!(a20==1)&&((a1==12)&&(!(a13==1)&&((a16==8)&&(((a7==1)&&(!(a23==1)&&((((a5==5)||(a5==6))&&(input==6))&&(a17==2))))&&!(a6==1))))))&&((a19==4)&&(((a9==10)&&(((a21==11)&&(a23==1))&&!(a3==1)))&&(a14==1))))){ + a25 = 0; + a5 = 6; + a20 = 1; + a21 = 10; + a3 = 0; + a16 = 7; + a22 = 1; + a9 = 7; + a19 = 2; + return 25; + } else if(((((((((a23==1)&&(a21==12))&&(a28==1))&&(a20==1))||(a7==1))&&(a19==5))&&(a9==7))&&(((((a1==14)&&(((((input==3)&&((a5==4)||(a5==5)))&&(a28==1))&&(a13==1))&&(a17==2)))&&!(a27==1))&&!(a24==1))&&(a16==9)))){ + a24 = 0; + a21 = 10; + a1 = 12; + a23 = 1; + a16 = 7; + a0 = 0; + a19 = 1; + a5 = 4; + return -1; + } else if(((!(a27==1)&&(!(a6==1)||((a21==11)&&((((a17==2)&&((a19==4)&&(a11==1)))&&!(a20==1))&&(a13==1)))))&&((a9==8)&&((a1==13)&&(((a16==9)&&(!(a24==1)&&((a6==1)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))))&&!(a18==1)))))){ + a29 = 0; + a1 = 12; + a20 = 1; + a25 = 1; + a9 = 11; + a21 = 10; + a2 = 0; + a19 = 2; + a5 = 4; + a16 = 7; + return -1; + } else if(((((((a11==1)&&((a21==11)&&(((a19==4)&&((a5==4)&&(input==3)))&&!(a8==1))))&&(a23==1))&&(a16==8))&&(a17==2))&&((a7==1)||((((!(a28==1)||((a23==1)&&(a9==10)))&&(a20==1))&&(a1==14))||(a8==1))))){ + a6 = 1; + a26 = 0; + a19 = 1; + a9 = 7; + a21 = 10; + a2 = 1; + a1 = 12; + a16 = 7; + return -1; + } else if(((((a13==1)&&(a1==13))&&(a19==3))&&((a23==1)&&((((a5==6)&&((a2==1)&&((a9==8)&&((!(a24==1)&&((a20==1)&&(((a16==9)&&((input==5)&&(a17==2)))&&(a21==12))))&&!(a8==1)))))&&(a13==1))&&!(a26==1))))){ + a9 = 10; + a11 = 1; + a1 = 12; + a0 = 0; + a5 = 5; + a7 = 0; + return 21; + } else if((((a16==9)&&(((a21==12)&&((a7==1)||(!(a0==1)&&(!(a18==1)&&(a13==1)))))&&!(a0==1)))&&((a9==10)&&(((a19==5)&&((a1==14)&&((a6==1)&&(!(a0==1)&&(((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a20==1))))))&&(a17==2))))){ + a16 = 7; + a9 = 11; + a5 = 4; + a21 = 10; + a24 = 1; + a20 = 1; + a10 = 0; + a1 = 12; + a19 = 1; + return 22; + } else if((((!(a18==1)&&((a16==9)&&(((a1==13)&&((a28==1)&&(a23==1)))&&(a21==10))))&&(a19==2))&&((a17==2)&&((a3==1)&&((a3==1)&&(!(a14==1)&&((a9==10)&&((a23==1)&&(((input==1)&&(a5==6))&&!(a20==1)))))))))){ + a20 = 1; + a1 = 14; + a10 = 1; + a5 = 4; + a0 = 1; + a16 = 7; + a9 = 9; + a26 = 1; + a19 = 1; + return -1; + } else if((((a17==2)&&((a21==10)&&((((((a6==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3)))&&(a13==1))&&!(a27==1))&&(a20==1))&&!(a7==1))))&&(((a1==13)&&(!(a28==1)||(((a9==11)&&((a11==1)||(a24==1)))&&(a16==8))))&&(a19==5)))){ + if((a27==1)){ + a16 = 7; + a13 = 1; + a1 = 14; + a18 = 0; + a9 = 10; + a5 = 4; + a20 = 0; + }else{ + a3 = 1; + a5 = 5; + a21 = 12; + a19 = 4; + a1 = 14; + a9 = 8; + a23 = 1; + } + return 26; + } else if((((a19==2)&&(((((a17==2)&&((((input==6)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&!(a20==1))&&!(a24==1)))&&!(a8==1))&&(a3==1))&&(a21==10)))&&((((((a23==1)&&(a6==1))&&!(a18==1))&&!(a27==1))&&(a16==9))&&(a1==13)))){ + if((a5==5)){ + a16 = 7; + a22 = 1; + a27 = 1; + a9 = 10; + a2 = 0; + a19 = 1; + a20 = 1; + a1 = 12; + a5 = 6; + }else{ + a18 = 1; + a19 = 1; + a22 = 1; + a20 = 1; + a10 = 0; + a9 = 7; + a5 = 5; + a16 = 7; + a1 = 14; + } + return 25; + } else if((((((a21==12)&&((a20==1)&&((a3==1)||(a24==1))))&&(a1==14))&&(a12==1))&&((((a3==1)&&((a19==1)&&(!(a24==1)&&(!(a18==1)&&(!(a26==1)&&((input==5)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5)))))))))&&(a16==8))&&(a17==2)))){ + a5 = 4; + a21 = 10; + a9 = 7; + a14 = 0; + a4 = 0; + a16 = 7; + a1 = 12; + a26 = 0; + return -1; + } else if(((!(a4==1)&&((((a16==8)&&(((((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11)))&&(input==5))&&(a1==13))&&!(a20==1)))&&(a6==1))&&(a3==1)))&&(!(a24==1)&&((!(a18==1)&&(((a17==2)&&((a19==4)&&(a11==1)))&&(a21==11)))&&(a28==1))))){ + a0 = 0; + a5 = 5; + a8 = 0; + a9 = 9; + a20 = 1; + a28 = 1; + a16 = 7; + return 26; + } else if((((a19==4)&&(((a9==11)&&((a12==1)&&(!(a2==1)||(a11==1))))&&(a5==6)))&&((a21==12)&&((a17==2)&&(!(a27==1)&&(((a3==1)&&(((a13==1)&&(((input==3)&&(a1==13))&&!(a26==1)))&&(a16==11)))&&(a20==1))))))){ + a1 = 12; + a19 = 1; + a21 = 10; + a23 = 1; + a16 = 7; + a5 = 4; + a9 = 7; + a6 = 1; + a26 = 0; + return -1; + } else if((((a9==11)&&(((a17==2)&&((a6==1)&&((a1==13)&&((a12==1)&&(((!(a7==1)&&(!(a27==1)&&((input==4)&&((a5==6)||((a5==4)||(a5==5))))))&&(a28==1))&&(a11==1))))))&&(a16==10)))&&((a19==4)&&((a21==12)&&((a20==1)&&(a6==1)))))){ + a21 = 10; + a18 = 0; + a1 = 12; + a9 = 7; + a19 = 1; + a8 = 0; + a16 = 7; + a28 = 1; + a5 = 4; + return -1; + } else if(((((a3==1)&&((a3==1)&&(a12==1)))&&(a1==12))&&((a17==2)&&(((a23==1)&&(((((a28==1)&&((a20==1)&&((a16==8)&&(((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4)))&&(input==1)))))&&(a19==5))&&!(a24==1))&&(a28==1)))&&(a21==10))))){ + if((a21==10)){ + a19 = 2; + a9 = 10; + a6 = 1; + a16 = 7; + a20 = 0; + a5 = 6; + a23 = 1; + a1 = 13; + a11 = 1; + a21 = 12; + }else{ + a16 = 7; + a9 = 11; + a27 = 0; + a1 = 13; + a19 = 2; + a5 = 5; + a6 = 1; + a8 = 0; + } + return 26; + } else if(((!(a23==1)||(((((a14==1)||(((a13==1)||!(a28==1))&&!(a14==1)))&&(a9==8))&&(a21==11))&&(a17==2)))&&(!(a14==1)&&((a16==7)&&((a13==1)&&((((a5==4)&&((input==6)&&(a19==5)))&&(a1==13))&&(a20==1))))))){ + a11 = 1; + a9 = 10; + a20 = 0; + a27 = 0; + a19 = 1; + a23 = 1; + return 25; + } else if((((((((((a28==1)||!(a28==1))&&(a19==1))&&!(a4==1))||!(a2==1))&&(a21==10))&&(a17==2))&&(a9==8))&&((a1==12)&&(((!(a20==1)&&((((input==3)&&((a5==5)||(a5==6)))&&!(a8==1))&&(a16==10)))&&!(a4==1))&&!(a4==1))))){ + a5 = 5; + a20 = 1; + a26 = 1; + a14 = 1; + a16 = 7; + a28 = 0; + return 26; + } else if(((!(a0==1)&&((a17==2)&&(((a21==11)&&(!(a20==1)&&((input==4)&&(a1==13))))&&(a5==4))))&&((((!(a0==1)&&(((a13==1)&&((a9==7)&&((a6==1)&&(a16==10))))&&(a6==1)))&&(a23==1))&&(a19==3))&&!(a0==1)))){ + a19 = 4; + a29 = 0; + a16 = 9; + a25 = 1; + a9 = 10; + a21 = 10; + a15 = 1; + a1 = 14; + return -1; + } else if((((a9==10)&&((a21==10)&&((a0==1)||(((!(a6==1)||((a26==1)||(a6==1)))&&!(a20==1))&&(a17==2)))))&&((a5==4)&&((a16==10)&&((a1==14)&&(((((a19==4)&&(input==6))&&!(a18==1))&&(a11==1))&&!(a14==1))))))){ + a9 = 9; + a27 = 1; + a29 = 0; + a19 = 1; + a5 = 6; + a16 = 7; + a20 = 1; + a18 = 1; + return 22; + } else if(((((!(a0==1)&&(!(a0==1)&&(!(a20==1)&&((a11==1)&&(((a5==4)||(a5==5))&&(input==1))))))&&(a16==10))&&(a2==1))&&(((a1==12)&&(((a23==1)&&(((a21==12)&&((a17==2)&&(a28==1)))&&(a19==3)))||(a24==1)))&&(a9==10)))){ + a9 = 8; + a15 = 1; + a20 = 1; + a16 = 7; + a28 = 0; + a5 = 6; + a12 = 0; + a19 = 1; + a21 = 10; + return -1; + } else if((((a2==1)&&((!(a26==1)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a19==3))&&(a17==2))&&(a16==9)))&&!(a14==1)))&&((a4==1)||((((a1==12)&&((a20==1)&&(!(a24==1)&&((a11==1)||(a4==1)))))&&(a21==10))&&(a9==9))))){ + a9 = 7; + a19 = 1; + a8 = 0; + a5 = 4; + a16 = 7; + a11 = 1; + return -1; + } else if((((((!(a14==1)&&((a1==12)&&(!(a7==1)&&((a16==9)&&(!(a8==1)&&((a9==9)&&(input==4)))))))&&(a5==5))&&(a21==10))&&!(a20==1))&&(((a19==5)&&(!(a4==1)&&(((a11==1)&&(a17==2))||!(a12==1))))||(a4==1)))){ + a5 = 6; + a12 = 0; + a15 = 0; + a19 = 2; + a20 = 1; + a16 = 7; + a14 = 1; + return -1; + } else if(((!(a18==1)&&(!(a18==1)&&((a20==1)&&(!(a3==1)||(((a23==1)&&(a1==13))&&(a17==2))))))&&(((((((a19==1)&&(((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))&&(input==5)))&&(a3==1))&&(a16==10))&&!(a7==1))&&(a21==12))&&!(a26==1)))){ + a3 = 1; + a16 = 7; + a5 = 4; + a9 = 9; + a19 = 2; + a12 = 1; + a21 = 10; + a13 = 1; + return 25; + } else if(((!(a14==1)&&(((((a11==1)&&((a19==5)&&(((a17==2)&&(input==6))&&(a21==10))))&&(a13==1))&&(a5==5))&&(a16==10)))&&(((a9==8)&&(((a1==14)&&((!(a20==1)&&(a28==1))||!(a11==1)))||!(a3==1)))||!(a11==1)))){ + a12 = 0; + a20 = 1; + a2 = 0; + a19 = 1; + a16 = 7; + a9 = 9; + return 21; + } else if((((a14==1)&&((((!(a23==1)&&(((((a6==1)&&(a17==2))&&(a24==1))&&(a20==1))&&(a21==12)))&&(a16==8))&&(a18==1))&&(a8==1)))&&((((a19==2)&&(!(a13==1)&&((input==5)&&((a5==4)||(a5==5)))))&&(a1==13))&&(a9==9)))){ + a13 = 0; + a21 = 10; + a19 = 3; + a9 = 10; + a11 = 0; + a1 = 12; + a5 = 4; + a16 = 11; + return -1; + } else if(((!(a24==1)&&(((((!(a0==1)&&(((((!(a4==1)&&((input==5)&&(a16==7)))&&(a5==5))&&(a19==3))&&(a9==8))&&(a20==1)))&&(a12==1))&&!(a14==1))&&(a17==2))&&(a21==10)))&&(((a12==1)&&!(a14==1))&&(a1==13)))){ + a28 = 1; + a11 = 1; + a26 = 0; + a9 = 11; + a1 = 12; + a19 = 1; + a21 = 11; + return 23; + } else if((((a17==2)&&((a19==4)&&((((!(a8==1)&&((((!(a26==1)&&(((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&!(a26==1)))&&!(a18==1))&&!(a4==1))&&(a16==10)))&&!(a26==1))&&(a9==7))&&(a1==14))))&&(((a20==1)&&(a13==1))&&(a21==12)))){ + a9 = 10; + a18 = 0; + a7 = 0; + a21 = 10; + a5 = 4; + a0 = 0; + a16 = 7; + return 25; + } else if((((!(a24==1)&&(((a20==1)&&((a6==1)&&(((a16==10)&&((input==1)&&(a17==2)))&&(a23==1))))&&(a21==11)))&&(a19==3))&&(!(a8==1)&&(((a1==12)&&((a9==8)&&((a5==6)&&(!(a6==1)||(a3==1)))))&&(a11==1))))){ + a19 = 1; + a7 = 0; + a21 = 10; + a9 = 7; + a5 = 4; + a3 = 1; + a24 = 0; + a16 = 7; + return -1; + } else if((((((a19==1)&&((((((((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==6))&&(a21==12))&&(a1==14))&&!(a6==1))&&(a16==11)))&&!(a13==1))&&(a24==1))&&(((a7==1)&&(!(a28==1)&&(((a13==1)&&(a17==2))&&(a20==1))))&&(a7==1)))){ + a13 = 0; + a21 = 10; + a18 = 1; + a9 = 9; + a5 = 4; + a0 = 1; + a16 = 10; + a19 = 2; + return -1; + } else if((((((a6==1)&&((a13==1)&&((a2==1)||!(a6==1))))&&(a17==2))&&(a16==9))&&(((a20==1)&&((a1==12)&&(((((!(a24==1)&&((input==1)&&((a5==4)||(a5==5))))&&(a19==3))&&(a23==1))&&(a21==10))&&!(a4==1))))&&(a9==8)))){ + a21 = 11; + a5 = 4; + a14 = 0; + a3 = 1; + a9 = 11; + a19 = 5; + a27 = 0; + return 21; + } else if(((((a9==9)&&((((a19==3)&&((input==1)&&((a5==4)||(a5==5))))&&!(a14==1))&&(a2==1)))&&(a16==10))&&((a1==13)&&((a24==1)||((a20==1)&&((((!(a24==1)&&((a8==1)||(a23==1)))&&(a21==11))&&!(a8==1))&&(a17==2))))))){ + a6 = 1; + a9 = 7; + a1 = 12; + a19 = 1; + a5 = 4; + a11 = 1; + a21 = 10; + a16 = 7; + a13 = 1; + return -1; + } else if((((a12==1)&&((a6==1)&&((a12==1)&&((((((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))&&(input==3))&&(a19==3))&&(a13==1)))))&&(((a12==1)&&(((((a20==1)&&((a3==1)&&(a1==12)))&&(a21==11))&&(a17==2))&&(a16==7)))&&(a13==1)))){ + a5 = 4; + a19 = 1; + a9 = 7; + a21 = 10; + a3 = 1; + a13 = 1; + a18 = 0; + return -1; + } else if((((((!(a18==1)&&((a21==12)&&((input==6)&&((a5==5)||(a5==6)))))&&!(a24==1))&&(a20==1))&&(a16==7))&&((a17==2)&&((!(a6==1)||(!(a8==1)&&(!(a7==1)&&(((a19==4)&&((a9==9)&&(a11==1)))||(a0==1)))))&&(a1==14))))){ + a5 = 4; + a16 = 9; + a19 = 3; + a21 = 11; + a1 = 13; + a26 = 0; + a2 = 1; + a24 = 0; + a9 = 8; + return 25; + } else if((((a17==2)&&(((a21==11)&&((a13==1)&&(!(a0==1)&&(((input==3)&&(a1==14))&&!(a24==1)))))&&(a20==1)))&&(!(a24==1)&&(((((a16==8)&&((a13==1)&&((a23==1)||(a7==1))))&&(a5==5))&&(a9==11))&&(a19==5))))){ + a21 = 10; + a9 = 7; + a1 = 12; + a16 = 7; + a19 = 1; + a12 = 1; + a5 = 4; + return -1; + } else if((((a21==12)&&(((a18==1)||((a1==13)&&(((!(a4==1)&&(a28==1))&&(a2==1))&&(a20==1))))||(a4==1)))&&((((a6==1)&&(!(a0==1)&&((a16==7)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==4)))))&&(a17==2))&&(a19==3)))){ + a23 = 1; + a21 = 10; + a12 = 1; + a1 = 12; + a9 = 7; + a28 = 1; + a5 = 4; + a19 = 1; + return -1; + } else if((((a16==9)&&(((((((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11)))&&(input==3))&&(a21==12))&&(a2==1))&&!(a24==1))&&(a20==1)))&&(((a19==2)&&((!(a12==1)||((!(a4==1)&&((a1==13)&&(a12==1)))||!(a23==1)))&&(a17==2)))&&!(a24==1)))){ + a5 = 5; + a19 = 3; + a1 = 12; + a23 = 1; + a9 = 9; + a4 = 0; + a14 = 0; + return 21; + } else if((((!(a20==1)&&((a16==10)&&(((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==3))&&(a6==1))))&&(a17==2))&&((a19==5)&&((a27==1)||((a2==1)&&((a6==1)&&((((a6==1)&&((a2==1)||!(a2==1)))&&(a21==10))&&(a1==14)))))))){ + a19 = 1; + a5 = 6; + a13 = 0; + a9 = 7; + a0 = 1; + a16 = 7; + a23 = 0; + a20 = 1; + return 25; + } else if((((a21==12)&&((a19==1)&&(!(a20==1)&&(((a12==1)&&((a17==2)&&((a1==14)&&((input==4)&&(((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a5==6)&&(a9==10))))))))&&!(a14==1)))))&&((a16==9)&&((a24==1)||(((a28==1)&&((a27==1)||(a23==1)))||!(a6==1)))))){ + if((a13==1)){ + a1 = 12; + a26 = 1; + a21 = 10; + a6 = 0; + a5 = 5; + a16 = 7; + a9 = 9; + a20 = 1; + }else{ + a22 = 0; + a20 = 1; + a25 = 0; + a16 = 8; + a1 = 12; + a12 = 0; + a19 = 5; + a5 = 4; + a9 = 11; + a21 = 11; + } + return 21; + } else if((((((a21==12)&&(((a3==1)&&((((input==4)&&((a5==4)||(a5==5)))&&!(a26==1))&&(a13==1)))&&(a16==11)))&&(a9==10))&&(a20==1))&&(((!(a12==1)||(((a26==1)||((a19==2)&&(a6==1)))&&(a1==13)))&&(a12==1))&&(a17==2)))){ + a19 = 5; + a0 = 0; + a1 = 14; + a18 = 0; + a3 = 1; + a5 = 4; + a21 = 10; + a9 = 11; + return 25; + } else if((((a9==10)&&((a19==3)&&(!(a27==1)&&(((a12==1)&&(((a1==13)&&(input==6))&&(a11==1)))&&(a21==11)))))&&((a20==1)&&(((a5==6)&&(((a0==1)||(((a28==1)&&(a17==2))||(a27==1)))&&(a23==1)))&&(a16==11))))){ + a28 = 1; + a1 = 12; + a5 = 4; + a14 = 0; + a9 = 7; + a16 = 7; + a21 = 10; + a19 = 1; + a3 = 1; + return -1; + } else if((((a5==6)&&((((a20==1)&&((a24==1)&&(((a9==9)&&((a6==1)&&(a21==11)))&&(a24==1))))&&(a19==5))&&(a17==2)))&&((a4==1)&&((((a8==1)&&((a1==13)&&((a16==11)&&(input==4))))&&(a27==1))&&!(a23==1))))){ + a13 = 0; + a28 = 0; + a5 = 5; + a21 = 12; + a1 = 12; + a19 = 4; + a16 = 9; + a9 = 11; + a22 = 0; + return 23; + } else if(((!(a13==1)||(((a12==1)&&(a17==2))&&!(a24==1)))&&((a13==1)&&((((a16==9)&&((a1==13)&&(((a6==1)&&((a21==11)&&((a19==1)&&((input==6)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))))))&&!(a20==1))))&&(a23==1))&&(a28==1))))){ + a19 = 2; + a1 = 12; + a25 = 0; + a16 = 7; + a20 = 1; + a18 = 1; + a5 = 4; + a9 = 11; + a29 = 1; + a21 = 10; + return -1; + } else if((((a1==13)&&((((a5==4)||(a5==5))&&(input==4))&&(a23==1)))&&((((a12==1)&&((((a16==8)&&(((a13==1)&&(!(a27==1)&&((a4==1)||((a6==1)&&(a19==4)))))&&(a17==2)))&&(a9==9))&&(a21==11)))&&!(a20==1))||!(a12==1)))){ + a20 = 1; + a8 = 0; + a9 = 7; + a16 = 7; + a1 = 12; + a2 = 1; + a28 = 1; + a21 = 10; + a19 = 1; + a5 = 4; + return -1; + } else if((((!(a8==1)&&(((a23==1)&&!(a20==1))&&(a21==11)))&&!(a26==1))&&(!(a24==1)&&((a17==2)&&((((a9==10)&&(((a19==5)&&((a2==1)&&(((input==1)&&((a5==5)||(a5==6)))&&!(a4==1))))&&!(a18==1)))&&(a1==14))&&(a16==7)))))){ + a28 = 1; + a5 = 5; + a20 = 1; + a14 = 0; + a0 = 0; + a9 = 8; + a16 = 8; + a21 = 10; + return 25; + } else if((((((a5==6)&&((a9==10)&&(input==1)))&&!(a20==1))&&(a19==4))&&((a1==13)&&((a16==8)&&((a17==2)&&(((a3==1)&&(((!(a0==1)&&(((a6==1)&&!(a7==1))||(a18==1)))||!(a12==1))&&(a23==1)))&&(a21==12))))))){ + a19 = 2; + a18 = 1; + a23 = 0; + a5 = 5; + a21 = 10; + a1 = 12; + a16 = 9; + a9 = 8; + a13 = 0; + return -1; + } else if(((((a11==1)&&(((a20==1)&&((a17==2)&&((a19==4)&&((input==5)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5)))))))&&(a21==11)))&&(a1==13))&&((a6==1)&&(!(a8==1)&&((a3==1)&&((a14==1)||((a16==10)&&((a12==1)&&(a23==1))))))))){ + a2 = 1; + a21 = 10; + a16 = 7; + a23 = 1; + a9 = 9; + a19 = 2; + a14 = 0; + a5 = 4; + return -1; + } else if(((((!(a11==1)||(a13==1))&&(a21==12))&&(a16==7))&&(((((a9==10)&&((a19==5)&&(((!(a0==1)&&((((a1==12)&&(input==3))&&!(a14==1))&&!(a18==1)))&&(a3==1))&&(a3==1))))&&(a5==4))&&(a20==1))&&(a17==2)))){ + a7 = 0; + a4 = 0; + a9 = 7; + a19 = 1; + a21 = 10; + return -1; + } else if((((a11==1)&&((a17==2)&&((!(a11==1)||((((((a11==1)&&!(a0==1))&&!(a7==1))&&(a21==12))&&(a1==12))&&(a9==8)))&&(a16==8))))&&((!(a20==1)&&((a19==1)&&((a3==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))))&&!(a14==1)))){ + if((a8==1)){ + a21 = 10; + a5 = 4; + a20 = 1; + a9 = 9; + a26 = 1; + a27 = 1; + a18 = 1; + a16 = 7; + }else{ + a16 = 7; + a5 = 5; + a18 = 1; + a25 = 0; + a20 = 1; + a21 = 10; + a9 = 11; + } + return -1; + } else if(((((a21==10)&&((a19==1)&&((a1==14)&&(((a17==2)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&!(a26==1)))&&(a28==1)))))&&(a16==8))&&(((a9==7)&&((((!(a26==1)&&(a2==1))&&!(a18==1))||!(a23==1))||!(a6==1)))&&!(a20==1)))){ + a20 = 1; + a13 = 1; + a5 = 4; + a16 = 7; + a18 = 0; + a1 = 12; + a28 = 1; + return -1; + } else if((((a17==2)&&((a18==1)||((a28==1)&&((((a4==1)||((a20==1)&&((a14==1)||((a11==1)&&(a3==1)))))&&(a21==10))&&!(a4==1)))))&&((((input==4)&&(((a9==11)&&((a1==12)&&(a5==6)))||((a9==7)&&((a1==13)&&(a5==4)))))&&(a16==11))&&(a19==4)))){ + a9 = 7; + a12 = 1; + a23 = 1; + a16 = 7; + a1 = 12; + a19 = 1; + a13 = 1; + a5 = 4; + return -1; + } else if((((a16==11)&&(((((!(a18==1)&&(((input==6)&&(a1==14))&&!(a14==1)))&&(a19==2))&&!(a27==1))&&(a13==1))&&(a20==1)))&&((((a9==11)&&((((a5==6)&&(a11==1))&&(a21==12))&&(a17==2)))&&!(a8==1))&&(a11==1)))){ + a1 = 12; + a5 = 4; + a23 = 1; + a21 = 10; + a9 = 7; + a16 = 7; + a24 = 0; + a26 = 0; + a19 = 1; + return -1; + } else if(((((a19==1)&&((a5==4)&&((a16==8)&&(!(a11==1)&&((a1==12)&&((a27==1)&&((a6==1)&&(a17==2))))))))&&!(a12==1))&&((!(a2==1)&&((a21==11)&&((((a9==11)&&(input==6))&&!(a20==1))&&!(a2==1))))&&!(a23==1)))){ + a25 = 0; + a29 = 0; + a21 = 10; + a9 = 10; + a16 = 7; + a20 = 1; + a22 = 0; + return -1; + } else if(((((!(a27==1)&&((((((a5==4)||(a5==5))&&(input==1))&&(a1==12))&&(a16==7))&&!(a20==1)))&&(a19==5))&&(a11==1))&&(((a21==11)&&((a17==2)&&((a14==1)||(!(a28==1)||(((a9==9)&&(a23==1))||!(a11==1))))))||(a4==1)))){ + a6 = 1; + a2 = 1; + a5 = 4; + a9 = 7; + a19 = 1; + a20 = 1; + a4 = 0; + a21 = 10; + return -1; + } else if(((((a9==11)&&((a21==10)&&((a23==1)&&((a13==1)&&((((input==6)&&!(a20==1))&&!(a18==1))&&!(a26==1))))))&&(a19==2))&&((a5==4)&&(((a16==7)&&(((a6==1)&&((a12==1)&&!(a7==1)))&&(a1==14)))&&(a17==2))))){ + a6 = 1; + a9 = 7; + a18 = 0; + a19 = 3; + a1 = 13; + a5 = 5; + return 21; + } else if((((((!(a14==1)&&((((!(a24==1)&&((input==6)&&((a5==5)||(a5==6))))&&(a9==9))&&(a20==1))&&(a2==1)))&&(a1==13))&&(a17==2))&&(a21==11))&&(((a19==4)&&((((a23==1)&&(a3==1))&&!(a4==1))||!(a13==1)))&&(a16==8)))){ + a6 = 1; + a11 = 1; + a7 = 0; + a19 = 2; + a5 = 4; + a16 = 10; + return 23; + } else if((((a20==1)&&((((a9==9)&&(!(a28==1)||(a28==1)))&&!(a4==1))&&(a19==5)))&&((!(a7==1)&&(((a17==2)&&((a1==13)&&(!(a8==1)&&((a21==11)&&((((a5==5)||(a5==6))&&(input==1))&&(a28==1))))))&&(a16==8)))&&!(a14==1)))){ + a14 = 0; + a6 = 1; + a9 = 11; + a5 = 5; + a7 = 0; + a16 = 10; + a19 = 3; + return 23; + } else if((((a9==9)&&((a5==6)&&(!(a8==1)&&((((!(a8==1)&&((a11==1)||!(a6==1)))&&(a17==2))||!(a6==1))&&!(a20==1)))))&&((((a13==1)&&(!(a24==1)&&(((a21==11)&&(input==6))&&(a16==8))))&&(a19==2))&&(a1==12)))){ + a1 = 13; + a20 = 1; + a11 = 1; + a9 = 11; + a21 = 12; + a16 = 11; + a28 = 1; + a13 = 1; + return 22; + } else if((((a17==2)&&((a9==9)&&((a21==12)&&(((!(a26==1)&&((a16==10)&&((input==4)&&((a5==5)||(a5==6)))))&&!(a26==1))&&!(a24==1)))))&&(((((!(a0==1)&&(!(a7==1)&&(a12==1)))&&(a1==12))||(a8==1))&&(a20==1))&&(a19==2)))){ + a9 = 7; + a7 = 0; + a21 = 10; + a5 = 4; + a6 = 1; + a19 = 1; + a16 = 7; + a23 = 1; + return -1; + } else if(((((a1==14)&&((a17==2)&&(((((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(input==1))&&(a21==12))))&&!(a18==1))&&(((a23==1)&&((a0==1)||((((((a13==1)&&(a19==1))&&(a28==1))&&!(a7==1))&&(a16==7))&&!(a20==1))))&&!(a4==1)))){ + a21 = 10; + a20 = 1; + a5 = 4; + a9 = 7; + a3 = 1; + a6 = 1; + a24 = 0; + a1 = 12; + return -1; + } else if(((((((!(a4==1)&&((a8==1)||(!(a27==1)&&(a3==1))))&&(a6==1))&&(a19==5))&&(a9==7))&&(a16==7))&&((a21==10)&&((a5==5)&&(!(a20==1)&&((a1==12)&&((!(a8==1)&&((a17==2)&&(input==1)))&&!(a26==1)))))))){ + a13 = 1; + a9 = 10; + a19 = 4; + a1 = 14; + a11 = 1; + a5 = 4; + a26 = 0; + a16 = 8; + return 21; + } else if(((((((a19==4)&&(((a0==1)&&(a3==1))&&(a16==11)))&&(a18==1))&&(a24==1))&&(a1==13))&&((a17==2)&&((a24==1)&&((((a26==1)&&(!(a23==1)&&((((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6))))&&(input==5))))&&(a20==1))&&(a21==10)))))){ + a26 = 1; + a19 = 1; + a9 = 9; + a29 = 0; + a5 = 5; + a16 = 7; + a2 = 0; + return 21; + } else if((((a28==1)&&(((((((input==4)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&!(a27==1))&&(a1==13))&&(a12==1))&&(a21==12))&&(a2==1)))&&((a17==2)&&((((((a12==1)&&!(a26==1))&&(a19==1))&&(a20==1))&&(a16==11))||!(a6==1))))){ + a12 = 1; + a5 = 4; + a3 = 1; + a1 = 12; + a16 = 7; + a21 = 10; + a9 = 7; + return -1; + } else if((((a17==2)&&((a27==1)||((a1==14)&&((((a2==1)||!(a12==1))&&(a16==8))&&(a20==1)))))&&((a9==8)&&((((a19==3)&&((!(a0==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&!(a24==1)))&&(a21==11)))&&!(a8==1))&&!(a24==1))))){ + a16 = 10; + a1 = 13; + a19 = 1; + a5 = 6; + a6 = 1; + a28 = 1; + a9 = 10; + a3 = 1; + return 26; + } else if((((a13==1)&&(((((a28==1)&&((a21==12)&&((!(a24==1)&&((input==1)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))))&&(a20==1))))&&!(a7==1))&&!(a26==1))&&(a16==7)))&&((a14==1)||((((a28==1)&&(a17==2))&&(a19==1))&&(a1==14))))){ + a19 = 2; + a12 = 1; + a21 = 10; + a1 = 13; + a3 = 1; + a5 = 6; + a9 = 9; + return 22; + } else if((((a1==14)&&(((a16==7)&&((!(a11==1)&&((a26==1)&&((input==3)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))))&&(a8==1)))&&(a20==1)))&&((a21==10)&&((a19==4)&&((!(a6==1)&&(!(a6==1)&&((a13==1)&&(a4==1))))&&(a17==2)))))){ + a10 = 1; + a9 = 11; + a23 = 0; + a19 = 5; + a5 = 4; + a12 = 0; + a1 = 13; + return -1; + } else if((((a28==1)&&(((input==4)&&(((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))))&&(a1==14)))&&(((((!(a2==1)||((!(a0==1)&&((a4==1)||(((a3==1)&&(a21==11))&&(a17==2))))&&(a20==1)))&&(a16==11))&&(a19==3))&&(a3==1))&&!(a8==1)))){ + a9 = 7; + a5 = 4; + a21 = 10; + a24 = 0; + a14 = 0; + a19 = 1; + a16 = 7; + a1 = 12; + a8 = 0; + return -1; + } return calculate_output26(input); + } + + int calculate_output26(int input) { + if((((a21==12)&&((a1==13)&&(!(a7==1)&&(((input==5)&&((a5==4)||(a5==5)))&&(a16==10)))))&&((((a7==1)||((!(a18==1)&&(((a9==7)&&((a20==1)&&((a28==1)||!(a3==1))))&&(a23==1)))&&(a19==1)))&&(a6==1))&&(a17==2)))){ + a1 = 12; + a8 = 0; + a16 = 7; + a5 = 4; + a12 = 1; + a21 = 10; + a28 = 1; + return -1; + } else if(((((a11==1)&&((a21==12)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&(a20==1))&&!(a26==1))&&(a17==2))))&&(a1==12))&&((a16==10)&&(((a9==11)&&(!(a4==1)&&((a26==1)||(!(a6==1)||((a19==4)&&(a12==1))))))&&!(a24==1))))){ + a21 = 10; + a6 = 1; + a1 = 14; + a8 = 0; + a19 = 5; + a9 = 8; + a16 = 8; + a18 = 0; + a5 = 5; + return 25; + } else if(((((a9==9)&&((a17==2)&&((((a20==1)&&(((((a6==1)&&(a1==12))&&(a19==5))&&(a28==1))&&!(a27==1)))&&(a16==10))&&!(a8==1))))&&(a5==5))&&((a11==1)&&(((a12==1)&&((input==3)&&(a21==11)))&&!(a26==1))))){ + a16 = 7; + a0 = 0; + a18 = 0; + a9 = 7; + a19 = 1; + a12 = 1; + a5 = 4; + a21 = 10; + return -1; + } else if(((((a17==2)&&(((((a28==1)&&(((input==3)&&((a5==5)||(a5==6)))&&!(a24==1)))&&(a1==12))&&(a9==7))&&(a20==1)))&&(a16==7))&&((a19==2)&&(!(a18==1)&&(((((a23==1)||!(a12==1))||(a7==1))&&(a21==12))||!(a13==1)))))){ + a5 = 4; + a24 = 0; + a12 = 1; + a21 = 10; + a19 = 1; + a28 = 1; + return -1; + } else if((((!(a27==1)&&((a1==12)&&((((((a19==1)&&((a6==1)&&(a12==1)))&&(a21==11))&&(a9==11))||(a24==1))&&!(a20==1))))||(a18==1))&&((a12==1)&&((a13==1)&&((a17==2)&&((a16==9)&&(((a5==4)||(a5==5))&&(input==1)))))))){ + a21 = 10; + a0 = 1; + a9 = 8; + a27 = 1; + a16 = 7; + a5 = 4; + a19 = 2; + a12 = 0; + a20 = 1; + return -1; + } else if((((a3==1)&&(((((a2==1)&&((((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))&&(input==5))&&(a2==1)))&&(a2==1))&&!(a18==1))&&(a21==10)))&&(((a19==5)&&(((a16==7)&&(((a20==1)&&(a13==1))&&(a17==2)))&&(a1==12)))||(a4==1)))){ + a19 = 3; + a21 = 11; + a20 = 0; + a24 = 0; + a12 = 1; + a9 = 10; + a23 = 1; + a5 = 6; + return 26; + } else if((((a6==1)&&((a16==10)&&(((a18==1)||((a20==1)&&((a9==9)&&((a17==2)&&(a23==1)))))||!(a6==1))))&&((a1==12)&&(!(a24==1)&&((a21==12)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&!(a0==1))&&(a19==3))&&!(a8==1))))))){ + a2 = 1; + a5 = 4; + a23 = 1; + a19 = 1; + a16 = 7; + a21 = 10; + a4 = 0; + a9 = 7; + return -1; + } else if(((!(a4==1)&&((((!(a26==1)&&(a3==1))&&(a17==2))&&(a21==10))&&!(a24==1)))&&(!(a0==1)&&((a6==1)&&((a9==10)&&((a1==14)&&(((((a5==5)&&((input==6)&&(a16==11)))&&(a20==1))&&(a19==3))&&(a13==1)))))))){ + a5 = 4; + a2 = 1; + a21 = 11; + a1 = 13; + a19 = 2; + a16 = 8; + a27 = 0; + a20 = 0; + a9 = 8; + return 26; + } else if((((a21==10)&&(((a17==2)&&((a9==9)&&(((((((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a3==1))&&!(a24==1))&&(a2==1))&&(a11==1))&&!(a27==1))))&&(a16==8)))&&((((!(a7==1)&&(a13==1))&&(a1==13))&&(a19==3))&&!(a20==1)))){ + a5 = 4; + a14 = 0; + a27 = 0; + a19 = 1; + a20 = 1; + a26 = 0; + return 26; + } else if(((!(a0==1)&&(((((a21==10)&&((a19==4)&&((((input==1)&&(a16==7))&&!(a24==1))&&(a20==1))))&&(a9==9))&&(a28==1))&&!(a27==1)))&&((((a1==12)&&(((a5==5)&&(a3==1))&&(a17==2)))&&!(a14==1))||(a27==1)))){ + a23 = 1; + a21 = 11; + a5 = 4; + a6 = 1; + a13 = 1; + a9 = 7; + return 25; + } else if((((((a24==1)||(((a23==1)&&(a1==13))||(a18==1)))&&(a16==10))&&(a17==2))&&(!(a18==1)&&((a21==11)&&(((((a2==1)&&((a20==1)&&((((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))&&(input==1))))&&(a12==1))&&!(a18==1))&&(a19==1)))))){ + a9 = 10; + a16 = 7; + a1 = 12; + a5 = 6; + a11 = 1; + a0 = 0; + a19 = 4; + a21 = 10; + a12 = 1; + return 25; + } else if(((((a23==1)&&(((a1==14)&&(a13==1))&&(a6==1)))&&(a16==9))&&((((a3==1)&&(!(a20==1)&&((((a23==1)&&((((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&(a21==11))&&(a9==10)))&&(a2==1))&&(a28==1))))&&(a19==1))&&(a17==2)))){ + if((a28==1)){ + a5 = 6; + a20 = 1; + a4 = 1; + a21 = 12; + a1 = 12; + a16 = 8; + a9 = 9; + a19 = 5; + a29 = 1; + }else{ + a29 = 1; + a5 = 6; + a16 = 10; + a3 = 0; + a1 = 12; + a0 = 1; + } + return -1; + } else if((((a1==13)&&((a18==1)&&((((a12==1)&&!(a23==1))&&(a20==1))&&!(a3==1))))&&((((((a17==2)&&((a8==1)&&(!(a28==1)&&(((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5)))&&(input==4)))))&&!(a11==1))&&(a21==12))&&(a16==10))&&(a19==2)))){ + a1 = 12; + a20 = 0; + a11 = 0; + a5 = 5; + a21 = 10; + a24 = 1; + a19 = 5; + a22 = 0; + a9 = 7; + a16 = 8; + return -1; + } else if((((((a2==1)&&(((a28==1)&&((a19==5)&&((((((a5==5)||(a5==6))&&(input==5))&&(a13==1))&&(a1==14))&&(a16==9))))&&(a17==2)))&&(a9==7))&&!(a20==1))&&(((a6==1)&&(((a28==1)&&!(a4==1))&&!(a0==1)))&&(a21==12)))){ + a1 = 12; + a13 = 0; + a16 = 8; + a21 = 10; + a5 = 4; + a9 = 9; + a29 = 1; + a19 = 4; + a22 = 0; + return 21; + } else if((((a1==13)&&((a17==2)&&((a16==10)&&(((a11==1)&&(((input==6)&&((a5==5)||(a5==6)))&&(a9==11)))&&(a2==1)))))&&(!(a0==1)&&((a13==1)&&(((((!(a13==1)||(a28==1))||(a14==1))&&(a21==10))&&(a19==5))&&!(a20==1)))))){ + if((a28==1)){ + a5 = 5; + a20 = 1; + a16 = 8; + a25 = 0; + a24 = 1; + a19 = 4; + }else{ + a3 = 0; + a21 = 11; + a19 = 2; + a9 = 9; + a14 = 1; + a7 = 1; + a1 = 12; + a5 = 6; + } + return -1; + } else if((((!(a7==1)&&(((((a1==12)&&((a23==1)&&(a16==7)))||(a24==1))&&(a20==1))&&(a9==10)))||!(a2==1))&&((((a19==3)&&((a6==1)&&((a2==1)&&((a13==1)&&((a17==2)&&(input==6))))))&&(a21==12))&&(a5==6)))){ + a21 = 10; + a5 = 4; + a9 = 7; + a19 = 1; + a12 = 1; + a27 = 0; + return -1; + } else if((((!(a7==1)&&((!(a4==1)&&((((a21==10)&&(!(a2==1)||(a28==1)))&&!(a14==1))&&(a5==4)))&&(a1==12)))&&(a9==11))&&(((a3==1)&&(((((input==6)&&(a17==2))&&(a11==1))&&(a16==8))&&(a19==2)))&&!(a20==1)))){ + a14 = 0; + a0 = 0; + a4 = 0; + a19 = 1; + a21 = 11; + a20 = 1; + return 21; + } else if(((!(a26==1)&&(((a12==1)&&((a19==2)&&((a17==2)&&(!(a18==1)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&!(a4==1))&&!(a8==1))&&(a1==12))))))&&!(a26==1)))&&((a20==1)&&((a9==8)&&((a21==12)&&((a2==1)&&(a16==10))))))){ + a8 = 0; + a0 = 0; + a16 = 7; + a1 = 13; + a9 = 9; + a5 = 5; + a21 = 10; + return 23; + } else if((((a19==3)&&(((a16==9)&&(((a7==1)||(((a20==1)&&((a27==1)||((a6==1)&&(a6==1))))&&(a12==1)))&&(a5==6)))&&(a21==12)))&&((a17==2)&&(!(a27==1)&&(((a9==10)&&((input==6)&&(a1==14)))&&(a3==1)))))){ + a9 = 7; + a1 = 12; + a5 = 4; + a16 = 7; + a0 = 0; + a21 = 10; + a19 = 1; + a3 = 1; + a24 = 0; + return -1; + } else if((((!(a18==1)&&(!(a20==1)&&((a16==10)&&(((a12==1)&&(((a9==8)&&((a21==10)&&(a2==1)))&&(a1==14)))&&(a19==2)))))||(a7==1))&&(((((((a5==5)||(a5==6))&&(input==1))&&!(a27==1))&&(a17==2))&&(a28==1))&&!(a27==1)))){ + if((a11==1)){ + a5 = 4; + a10 = 0; + a19 = 1; + a20 = 1; + a16 = 7; + a14 = 1; + a8 = 1; + a9 = 10; + a1 = 12; + }else{ + a23 = 0; + a5 = 4; + a26 = 1; + a9 = 10; + a24 = 1; + a19 = 3; + a21 = 11; + a16 = 7; + } + return 21; + } else if(((!(a14==1)&&((a3==1)&&((a28==1)&&((((a21==12)&&((a1==12)&&((a17==2)&&(a12==1))))&&(a19==2))||(a8==1)))))&&((((((input==1)&&(((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))))&&(a16==8))&&(a20==1))&&!(a0==1))&&(a2==1)))){ + a9 = 8; + a26 = 0; + a19 = 1; + a27 = 0; + a1 = 14; + a5 = 6; + a14 = 0; + return 21; + } else if((((((a1==12)&&((a9==11)&&((((a5==5)||(a5==6))&&(input==4))&&(a12==1))))&&!(a20==1))&&(a11==1))&&((a21==10)&&((a6==1)&&(((a16==8)&&(((!(a23==1)||((a3==1)&&(a17==2)))&&(a19==3))||!(a13==1)))&&(a12==1)))))){ + a19 = 1; + a14 = 0; + a16 = 7; + a20 = 1; + a9 = 7; + a5 = 4; + a23 = 1; + a12 = 1; + return -1; + } else if(((((a6==1)&&(!(a20==1)&&(((!(a12==1)||((a6==1)&&(a17==2)))&&(a16==7))&&(a21==12))))&&(a19==3))&&((!(a24==1)&&(((a1==13)&&((a9==9)&&(!(a26==1)&&((input==5)&&((a5==4)||(a5==5))))))&&!(a18==1)))&&!(a4==1)))){ + a20 = 1; + a19 = 1; + a21 = 10; + a1 = 12; + a3 = 1; + a9 = 7; + a5 = 4; + a11 = 1; + a7 = 0; + return -1; + } else if((((a1==12)&&((((a2==1)&&(((a12==1)||(a14==1))&&(a17==2)))&&(a9==10))&&!(a14==1)))&&(!(a24==1)&&((a16==10)&&((a19==5)&&((((!(a8==1)&&((a21==11)&&(input==5)))&&(a5==6))&&!(a4==1))&&(a20==1))))))){ + a28 = 1; + a19 = 4; + a7 = 0; + a5 = 5; + a1 = 13; + a16 = 7; + a13 = 1; + a21 = 10; + return 25; + } else if(((((((((a9==7)&&((a19==5)&&(((a1==14)&&(input==6))&&(a28==1))))&&!(a7==1))&&(a13==1))&&(a12==1))&&!(a20==1))&&(a16==10))&&((a21==12)&&((a17==2)&&(((a8==1)||((a3==1)||(a18==1)))&&(a5==4)))))){ + if((a12==1)){ + a1 = 12; + a10 = 1; + a0 = 1; + a20 = 1; + a19 = 2; + a25 = 1; + a16 = 7; + }else{ + a20 = 1; + a1 = 12; + a5 = 5; + a27 = 1; + a2 = 0; + a21 = 10; + a16 = 9; + a19 = 3; + a7 = 1; + } + return 25; + } else if((((a19==2)&&((a26==1)||((((((a26==1)||(a12==1))&&(a1==12))||(a14==1))&&!(a27==1))||(a0==1))))&&(((a9==9)&&((a20==1)&&((a17==2)&&((!(a18==1)&&((input==6)&&(a21==11)))&&(a16==11)))))&&(a5==6)))){ + if((a14==1)){ + a16 = 8; + a9 = 11; + a20 = 0; + a7 = 0; + a24 = 0; + a21 = 10; + a12 = 1; + a1 = 14; + }else{ + a9 = 8; + a21 = 10; + a18 = 0; + a6 = 1; + a16 = 9; + a5 = 5; + a19 = 1; + a11 = 1; + } + return -1; + } else if((((a7==1)&&(((a9==7)&&(((!(a3==1)&&((a19==2)&&(((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&!(a2==1))))&&(a14==1))&&(a16==8)))&&!(a11==1)))&&(((a8==1)&&(((a1==14)&&(!(a20==1)&&(a2==1)))&&(a21==10)))&&(a17==2)))){ + a19 = 1; + a28 = 0; + a14 = 1; + a5 = 5; + a1 = 12; + a20 = 1; + a16 = 9; + a29 = 0; + return -1; + } else if((((a17==2)&&((a1==13)&&((!(a11==1)&&((!(a2==1)&&((((a5==5)||(a5==6))&&(input==5))&&(a0==1)))&&(a9==7)))&&(a16==11))))&&((a20==1)&&(((!(a11==1)&&(((a21==10)&&(a11==1))&&(a19==2)))&&!(a11==1))&&!(a3==1))))){ + a16 = 7; + a9 = 9; + a1 = 14; + a25 = 1; + a5 = 4; + a10 = 0; + a19 = 1; + a18 = 1; + return -1; + } else if(((((a17==2)&&((a21==12)&&((!(a12==1)||(((a23==1)&&(a23==1))&&(a11==1)))&&!(a8==1))))&&(a13==1))&&((!(a18==1)&&((((a19==5)&&((input==5)&&(((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6))))))&&(a1==13))&&(a16==7)))&&!(a20==1)))){ + a18 = 0; + a5 = 4; + a0 = 0; + a9 = 7; + a8 = 0; + a1 = 12; + a19 = 1; + a21 = 10; + a20 = 1; + return -1; + } else if((((a21==11)&&((!(a20==1)&&((((!(a18==1)&&(a13==1))&&!(a18==1))||!(a11==1))&&!(a18==1)))&&(a19==1)))&&((a1==13)&&(((a17==2)&&(!(a8==1)&&((((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a5==4)&&(a9==11)))&&(input==3))&&!(a24==1))))&&(a16==8))))){ + a3 = 1; + a9 = 10; + a4 = 0; + a19 = 5; + a1 = 12; + a20 = 1; + a21 = 10; + a6 = 1; + a5 = 4; + return -1; + } else if((((!(a7==1)&&((a21==10)&&((input==1)&&(((((a5==6)&&(a1==14))&&(a9==11))&&(a19==1))||((a19==2)&&(((a5==4)&&(a1==12))&&(a9==7)))))))&&(a12==1))&&(((((a17==2)&&((((a23==1)&&(a16==8))&&!(a14==1))||(a0==1)))&&(a20==1))||(a26==1))||(a26==1)))){ + a21 = 12; + a19 = 1; + a9 = 8; + a14 = 0; + a5 = 6; + a2 = 1; + a7 = 0; + a1 = 14; + return 21; + } else if(((((a11==1)&&(((a9==8)&&((a19==2)&&(!(a8==1)&&((a6==1)&&(((input==5)&&(a16==8))&&(a5==4))))))&&!(a20==1)))&&(a2==1))&&(!(a26==1)&&(((a1==14)&&(((a24==1)||(a13==1))&&(a21==10)))&&(a17==2))))){ + a9 = 7; + a19 = 1; + a12 = 1; + a1 = 12; + a16 = 7; + a20 = 1; + a13 = 1; + a18 = 0; + return -1; + } else if(((((a9==11)&&(((a17==2)&&(((!(a8==1)&&(!(a26==1)&&((a3==1)&&((input==4)&&((a5==6)||((a5==4)||(a5==5)))))))&&(a1==14))&&(a11==1)))&&(a19==5)))&&!(a20==1))&&(((a21==10)&&(((a3==1)&&(a28==1))||(a4==1)))&&(a16==9)))){ + if((a26==1)){ + a1 = 12; + a16 = 10; + a29 = 1; + a19 = 2; + a5 = 4; + a15 = 0; + a27 = 1; + }else{ + a16 = 7; + a6 = 0; + a20 = 1; + a25 = 0; + a23 = 0; + a5 = 6; + a1 = 12; + a19 = 1; + a9 = 9; + } + return -1; + } else if(((((!(a7==1)&&((a2==1)&&(((a6==1)&&(a19==4))&&(a9==8))))&&(a17==2))||!(a2==1))&&((a1==13)&&((((a21==10)&&(((((input==4)&&((a5==5)||(a5==6)))&&(a6==1))&&(a23==1))&&(a12==1)))&&(a16==9))&&(a20==1))))){ + a8 = 0; + a5 = 4; + a1 = 12; + a16 = 7; + a27 = 0; + a9 = 7; + a19 = 1; + a0 = 0; + return -1; + } else if((((((a13==1)&&((!(a8==1)&&((a11==1)&&((a21==10)&&((a19==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5))))))))&&!(a18==1)))&&(a20==1))&&(a17==2))&&((a1==12)&&((a16==10)&&((a6==1)&&(((a9==9)&&(a2==1))&&(a2==1))))))){ + a5 = 6; + a19 = 4; + a6 = 1; + a14 = 0; + a1 = 14; + a16 = 11; + a2 = 1; + return 23; + } else if((((a16==10)&&((!(a24==1)&&((a23==1)&&((a1==12)&&(input==4))))&&(a28==1)))&&(((((a12==1)&&((a9==8)&&((a5==5)&&((a17==2)&&((a27==1)||(!(a8==1)&&(a2==1)))))))&&(a19==4))&&!(a20==1))&&(a21==12)))){ + a1 = 14; + a20 = 1; + a21 = 10; + a16 = 7; + a15 = 1; + a24 = 1; + a19 = 1; + a13 = 0; + return 22; + } else if((((a21==10)&&((((a17==2)&&(((a1==12)&&((((a9==11)&&(input==1))&&(a28==1))&&(a6==1)))&&(a19==5)))&&!(a7==1))&&(a5==6)))&&(((a3==1)&&((!(a14==1)&&((a13==1)&&!(a20==1)))&&!(a27==1)))&&(a16==7)))){ + a8 = 0; + a27 = 0; + a19 = 3; + a24 = 0; + a16 = 8; + a21 = 11; + a1 = 14; + a9 = 10; + return 21; + } else if((((a21==11)&&((a13==1)&&((((!(a4==1)&&((a19==2)&&(input==1)))&&(a17==2))&&(a9==10))&&(a1==13))))&&((a20==1)&&((((!(a6==1)||((a5==6)&&((a13==1)&&!(a4==1))))||(a27==1))&&!(a24==1))&&(a16==11))))){ + a24 = 0; + a9 = 8; + a26 = 0; + a18 = 0; + a1 = 12; + a19 = 3; + a16 = 8; + a20 = 0; + return 25; + } else if((((((!(a20==1)&&((a1==12)&&((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(input==6))))&&!(a14==1))&&!(a26==1))&&(a23==1))&&(!(a26==1)&&((a16==9)&&((((a19==4)&&((a0==1)||((a3==1)&&(a21==12))))&&(a17==2))||!(a6==1)))))){ + if((a26==1)){ + a9 = 7; + a20 = 1; + a22 = 1; + a19 = 1; + a21 = 10; + a5 = 6; + a18 = 1; + }else{ + a6 = 0; + a27 = 1; + a19 = 5; + a5 = 6; + a16 = 7; + a20 = 1; + a21 = 11; + a9 = 11; + a10 = 1; + } + return 25; + } else if((((((a16==7)&&((a19==3)&&(((a12==1)&&!(a18==1))&&(a1==13))))&&(a23==1))&&(a23==1))&&((a28==1)&&(!(a20==1)&&((((!(a8==1)&&((input==3)&&(((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))))&&!(a26==1))&&(a21==11))&&(a17==2)))))){ + a19 = 1; + a4 = 0; + a5 = 4; + a20 = 1; + a21 = 10; + a1 = 12; + a24 = 0; + a2 = 1; + a9 = 7; + return -1; + } else if(((((a19==3)&&((a16==8)&&((!(a18==1)&&((a2==1)&&((((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a5==4)&&(a9==8)))&&(input==3))&&(a6==1))))&&(a21==12))))&&!(a20==1))&&(((!(a23==1)||(((a6==1)||!(a23==1))&&(a1==13)))||!(a23==1))&&(a17==2)))){ + a5 = 4; + a1 = 12; + a20 = 1; + a16 = 7; + a19 = 2; + a9 = 8; + a26 = 1; + a21 = 10; + a4 = 1; + a29 = 0; + return -1; + } else if((((a19==2)&&((a26==1)||(!(a11==1)||(a6==1))))&&((a17==2)&&((a9==8)&&((((!(a27==1)&&((a23==1)&&((a6==1)&&((a21==12)&&((a28==1)&&((input==5)&&((a5==5)||(a5==6))))))))&&(a20==1))&&(a1==13))&&(a16==11)))))){ + if((a3==1)){ + a5 = 6; + a19 = 3; + a14 = 0; + a16 = 7; + a28 = 1; + a20 = 0; + a12 = 1; + a9 = 10; + }else{ + a3 = 1; + a12 = 1; + a0 = 0; + a9 = 7; + a5 = 6; + a19 = 4; + } + return 25; + } else if(((((a19==1)&&((a11==1)&&(((a16==9)&&(((a23==1)&&(a17==2))&&!(a20==1)))||(a4==1))))&&(a23==1))&&(((!(a4==1)&&((a21==11)&&(((a5==4)&&((input==3)&&(a9==7)))&&(a2==1))))&&(a1==13))&&(a23==1)))){ + a23 = 0; + a11 = 0; + a2 = 0; + a21 = 10; + a5 = 6; + a9 = 8; + a16 = 7; + a20 = 1; + return -1; + } else if((((((a9==7)&&((((a16==8)&&(input==4))&&(a19==5))&&(a13==1)))&&(a17==2))&&!(a0==1))&&((a21==11)&&((((a12==1)&&((((!(a26==1)&&(a23==1))&&(a20==1))&&(a1==14))||(a7==1)))&&(a5==4))&&(a2==1))))){ + a11 = 1; + a1 = 13; + a8 = 0; + a9 = 9; + a21 = 10; + a5 = 5; + return -1; + } else if(((!(a0==1)&&((a20==1)&&(((a21==11)&&((a1==12)&&((input==5)&&((a5==5)||(a5==6)))))&&(a19==3))))&&((((a16==9)&&(!(a2==1)||((!(a27==1)&&(((a17==2)&&(a28==1))&&(a9==10)))&&(a2==1))))&&!(a14==1))||(a24==1)))){ + a3 = 1; + a21 = 10; + a19 = 2; + a7 = 0; + a1 = 14; + a5 = 5; + a6 = 1; + return 21; + } else if((((a12==1)&&(!(a0==1)&&((((a9==10)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))&&!(a24==1))&&!(a7==1))))&&((a21==10)&&((a20==1)&&(((((a1==13)&&(((a19==2)&&(a23==1))&&!(a14==1)))&&(a17==2))||!(a12==1))&&(a16==8)))))){ + a11 = 1; + a9 = 7; + a5 = 4; + a23 = 1; + a16 = 7; + a1 = 12; + a19 = 1; + a4 = 0; + return -1; + } else if((((((a20==1)&&((a12==1)&&(((a16==7)&&(((a9==7)&&((input==3)&&(a17==2)))&&!(a18==1)))&&!(a14==1))))&&(a19==3))&&(a5==4))&&((((((a13==1)&&!(a24==1))&&(a21==11))||!(a28==1))||(a7==1))&&(a1==14)))){ + a23 = 1; + a1 = 12; + a19 = 1; + a12 = 1; + a21 = 10; + return -1; + } else if(((((a23==1)&&((a3==1)&&((((a17==2)&&(((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==5))&&!(a0==1)))&&(a28==1))&&(a20==1))))&&(a1==13))&&((a19==2)&&(((a24==1)||(((a21==12)&&(a11==1))&&!(a24==1)))&&(a16==9))))){ + a19 = 5; + a5 = 5; + a21 = 11; + a1 = 14; + a23 = 1; + a2 = 1; + a18 = 0; + a9 = 11; + return 21; + } else if((((a2==1)&&((a19==1)&&((a12==1)&&((((a16==11)&&(((((a5==6)&&(a1==13))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==14))))&&(input==6)))&&!(a27==1))&&(a17==2)))))&&((((((a12==1)&&(a13==1))||!(a2==1))&&!(a7==1))&&(a20==1))&&(a21==11)))){ + a1 = 12; + a18 = 0; + a5 = 4; + a21 = 10; + a9 = 7; + a16 = 7; + a12 = 1; + return -1; + } else if(((((a21==10)&&(((a20==1)&&(((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a5==4)&&(a9==10)))&&(input==5)))&&!(a4==1)))&&!(a14==1))&&(((a16==10)&&(!(a4==1)&&((a1==12)&&(((((a2==1)||(a4==1))&&(a28==1))&&(a19==4))&&!(a24==1)))))&&(a17==2)))){ + a11 = 1; + a9 = 7; + a5 = 4; + a19 = 1; + a0 = 0; + a26 = 0; + a16 = 7; + return -1; + } else if((((a20==1)&&((a17==2)&&((((((a2==1)&&((input==4)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a26==1))&&!(a26==1))&&(a16==8))&&(a21==11))))&&(((a1==13)&&(((((a13==1)&&(a28==1))&&!(a24==1))&&(a9==9))||!(a28==1)))&&(a19==2)))){ + a3 = 1; + a2 = 1; + a19 = 3; + a5 = 5; + a16 = 7; + a20 = 0; + a9 = 8; + a11 = 1; + return 25; + } else if((((((a19==4)&&((a17==2)&&(((((a28==1)||(a8==1))&&(a2==1))||(a14==1))||(a14==1))))&&(a20==1))&&!(a24==1))&&(!(a18==1)&&((((((input==5)&&(a5==4))&&(a9==11))&&(a1==12))&&(a16==9))&&(a21==10))))){ + a2 = 1; + a12 = 1; + a9 = 7; + a14 = 0; + a19 = 1; + a16 = 7; + return -1; + } else if((((!(a0==1)&&(((a19==3)&&(a6==1))&&(a16==8)))&&(a17==2))&&(!(a4==1)&&((a21==12)&&((((a20==1)&&(!(a7==1)&&(((a9==10)&&(((input==5)&&((a5==5)||(a5==6)))&&!(a8==1)))&&(a28==1))))&&(a1==12))&&(a2==1)))))){ + a5 = 4; + a11 = 1; + a7 = 0; + a12 = 1; + a16 = 7; + a19 = 1; + a21 = 10; + a9 = 7; + return -1; + } else if((((((a19==3)&&(!(a13==1)&&((!(a6==1)&&(((a18==1)&&((a27==1)&&(a13==1)))&&(a4==1)))&&(a9==8))))&&!(a20==1))&&(a21==12))&&((((a26==1)&&(((input==3)&&(a17==2))&&(a5==6)))&&(a1==12))&&(a16==7)))){ + a19 = 1; + a27 = 1; + a5 = 4; + a20 = 1; + a21 = 10; + a22 = 1; + a9 = 9; + a3 = 0; + return -1; + } else if(((!(a13==1)||(((!(a28==1)||(a12==1))&&(a17==2))&&(a16==9)))&&(((a1==14)&&(!(a20==1)&&(((((!(a18==1)&&((((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==4)))&&(a6==1))&&(a21==10))&&(a11==1))&&(a19==1))))&&!(a26==1)))){ + if((a9==8)){ + a20 = 1; + a16 = 7; + a5 = 6; + a10 = 0; + a9 = 8; + a18 = 1; + }else{ + a29 = 1; + a15 = 0; + a5 = 6; + a19 = 4; + a9 = 10; + a16 = 10; + a1 = 13; + a21 = 12; + a14 = 1; + } + return -1; + } else if(((((!(a8==1)&&(((a16==9)&&(((input==4)&&((((a5==5)&&(a1==14))&&(a9==7))||(((a9==11)&&((a1==13)&&(a5==6)))||(((a1==14)&&(a5==4))&&(a9==7)))))&&(a21==12)))&&(a17==2)))&&(a3==1))&&(a6==1))&&(((!(a20==1)&&((a7==1)||((a4==1)||(a13==1))))&&(a19==4))&&(a3==1)))){ + a18 = 1; + a1 = 14; + a11 = 0; + a16 = 7; + a19 = 1; + a9 = 9; + a5 = 4; + a21 = 10; + a20 = 1; + a25 = 1; + return 25; + } else if(((!(a2==1)&&((a0==1)&&(((((a21==11)&&(a3==1))&&!(a20==1))&&!(a28==1))&&(a17==2))))&&(!(a12==1)&&((a27==1)&&(((a16==8)&&((input==4)&&(((a19==3)&&((a9==7)&&((a5==5)&&(a1==12))))||(((((a1==14)&&(a5==6))&&(a9==11))&&(a19==2))||((a19==3)&&(((a1==12)&&(a5==4))&&(a9==7)))))))&&(a4==1)))))){ + a1 = 13; + a19 = 2; + a20 = 1; + a21 = 10; + a9 = 10; + a5 = 4; + a16 = 9; + a6 = 0; + a29 = 0; + a23 = 0; + return -1; + } else if((((a9==10)&&((((a23==1)&&(a3==1))||!(a11==1))&&(a17==2)))&&((((a20==1)&&(!(a0==1)&&((a16==9)&&((a21==10)&&(((a28==1)&&((((a5==4)||(a5==5))&&(input==4))&&!(a4==1)))&&(a28==1))))))&&(a19==5))&&(a1==12)))){ + a5 = 5; + a9 = 9; + a6 = 1; + a4 = 0; + a11 = 1; + a16 = 8; + a1 = 13; + return 26; + } else if(((((a19==3)&&(!(a4==1)&&(!(a14==1)&&((a9==7)&&(input==5)))))&&(a1==13))&&((((a21==10)&&((a7==1)||((a7==1)||((a17==2)&&((((a28==1)&&!(a8==1))||(a18==1))&&(a5==4))))))&&(a20==1))&&(a16==10)))){ + a19 = 1; + a12 = 1; + a5 = 6; + a16 = 8; + a27 = 0; + a21 = 12; + a3 = 1; + a9 = 8; + a1 = 14; + return 21; + } else if((((a24==1)||((a3==1)&&(!(a27==1)&&(((a19==2)&&((a13==1)&&(((a21==10)&&((a11==1)&&(a1==13)))&&(a5==6))))||(a7==1)))))&&(((a20==1)&&((a9==8)&&((a17==2)&&((a16==11)&&(input==3)))))&&!(a24==1)))){ + a9 = 7; + a4 = 0; + a19 = 1; + a8 = 0; + a1 = 12; + a5 = 4; + a6 = 1; + a16 = 7; + return -1; + } else if(((!(a13==1)||((((a16==9)&&((a17==2)&&((a13==1)&&(!(a20==1)&&(((a23==1)&&(a19==4))&&(a11==1))))))||(a18==1))&&(a12==1)))&&(((((input==1)&&(((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))))&&(a21==10))&&(a1==12))&&!(a18==1)))){ + a5 = 4; + a19 = 1; + a16 = 7; + a10 = 1; + a9 = 10; + a15 = 0; + a20 = 1; + return 21; + } else if(((((a13==1)&&(((((((a16==11)&&(input==6))&&!(a7==1))&&(a9==11))&&!(a27==1))&&(a6==1))&&!(a18==1)))&&(a21==10))&&(((a19==2)&&((a1==14)&&((((a6==1)&&(a5==5))&&(a17==2))||(a0==1))))&&!(a20==1)))){ + a16 = 10; + a9 = 9; + a21 = 11; + a12 = 0; + a19 = 1; + a5 = 4; + a18 = 1; + return 21; + } else if((((((((a17==2)&&(!(a26==1)&&((((a9==7)&&((a1==13)&&(((a5==5)||(a5==6))&&(input==1))))&&(a20==1))&&(a16==9))))&&!(a24==1))&&(a21==12))&&(a6==1))&&!(a27==1))&&((a6==1)&&((a26==1)||((a19==3)&&(a23==1)))))){ + a1 = 12; + a19 = 1; + a14 = 0; + a21 = 10; + a5 = 4; + a16 = 7; + a0 = 0; + return -1; + } else if((((a21==10)&&(((((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==1))&&(a19==4))&&(a3==1))&&(a17==2)))&&((a20==1)&&((!(a0==1)&&(((a0==1)||(((a1==12)&&(!(a3==1)||(a3==1)))&&(a23==1)))&&!(a7==1)))&&(a16==8))))){ + a14 = 0; + a5 = 6; + a9 = 8; + a11 = 1; + a16 = 10; + a19 = 1; + a0 = 0; + return 25; + } else if((((a8==1)||(!(a23==1)||(((a7==1)||(((a19==5)&&(a28==1))&&(a9==8)))||!(a2==1))))&&((((!(a20==1)&&(((a21==11)&&((a17==2)&&((input==3)&&((a5==5)||(a5==6)))))&&(a1==12)))&&(a16==7))&&!(a7==1))&&(a12==1)))){ + a27 = 0; + a21 = 10; + a9 = 7; + a20 = 1; + a6 = 1; + a0 = 0; + a5 = 4; + a19 = 1; + return -1; + } else if(((((a21==11)&&((((!(a3==1)||(a13==1))||(a4==1))&&(a12==1))&&(a9==7)))&&(a6==1))&&((((a16==8)&&(((!(a18==1)&&((a20==1)&&((input==5)&&((a5==5)||(a5==6)))))&&(a28==1))&&(a1==12)))&&(a17==2))&&(a19==3)))){ + a21 = 10; + a19 = 1; + a5 = 4; + a16 = 7; + a27 = 0; + a11 = 1; + a26 = 0; + return -1; + } else if((((a21==11)&&(((a11==1)&&(((((((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&(input==1))&&(a12==1))&&(a23==1))&&(a20==1)))&&(a16==10)))&&((a23==1)&&(((a17==2)&&((((a6==1)&&!(a14==1))&&(a19==3))&&(a1==14)))||!(a11==1))))){ + a27 = 0; + a1 = 13; + a24 = 0; + a9 = 9; + a16 = 7; + a19 = 2; + a21 = 10; + a13 = 1; + a5 = 5; + return 25; + } else if(((!(a28==1)||(!(a11==1)||(!(a20==1)&&(!(a23==1)||(((a16==9)&&((a21==12)&&(a11==1)))&&!(a24==1))))))&&(((((a23==1)&&((input==1)&&(((a9==7)&&((a1==13)&&(a5==5)))||((((a1==12)&&(a5==6))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==13)))))))&&!(a26==1))&&(a17==2))&&(a19==1)))){ + a20 = 1; + a27 = 1; + a21 = 11; + a5 = 5; + a16 = 10; + a1 = 13; + a0 = 1; + a11 = 0; + a9 = 7; + return -1; + } else if((((((a2==1)||!(a6==1))||(a24==1))&&(a1==14))&&((a6==1)&&(((!(a7==1)&&(!(a20==1)&&((a21==10)&&(((((input==1)&&(((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))))&&(a17==2))&&(a16==9))&&(a19==4)))))&&!(a26==1))&&!(a24==1))))){ + a27 = 1; + a5 = 5; + a9 = 10; + a1 = 12; + a23 = 0; + a16 = 8; + a13 = 0; + return -1; + } else if((((a21==10)&&(!(a26==1)&&((a16==7)&&((a17==2)&&((a12==1)&&(a11==1))))))&&(((((!(a0==1)&&(((a28==1)&&((input==3)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))))&&(a20==1)))&&(a19==5))&&(a13==1))&&(a1==12))&&(a6==1)))){ + a5 = 4; + a3 = 1; + a9 = 7; + a19 = 1; + a28 = 1; + return -1; + } else if((((((a21==10)&&((((a6==1)&&(!(a20==1)&&((a23==1)&&(a9==8))))||!(a23==1))&&!(a7==1)))&&(a16==10))||!(a28==1))&&((a1==12)&&((((((a19==4)&&(input==3))&&(a17==2))&&(a5==5))&&!(a24==1))&&!(a18==1))))){ + a26 = 1; + a9 = 7; + a3 = 0; + a16 = 7; + a5 = 6; + a22 = 0; + a19 = 1; + a20 = 1; + return -1; + } else if((((!(a11==1)&&((a21==11)&&((a19==4)&&((((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(input==6)))))&&(a20==1))&&((!(a28==1)&&(!(a2==1)&&((!(a13==1)&&(((a17==2)&&((a12==1)&&(a8==1)))&&(a16==11)))&&!(a11==1))))&&(a1==13)))){ + a9 = 7; + a16 = 7; + a1 = 12; + a26 = 1; + a28 = 0; + a19 = 1; + a25 = 1; + a5 = 4; + a21 = 10; + return 21; + } else if((((a23==1)&&(!(a26==1)&&(((((((input==4)&&((a5==4)||(a5==5)))&&(a3==1))&&(a13==1))&&(a9==10))&&(a19==5))&&(a1==14))))&&(((a21==12)&&((a17==2)&&(((a6==1)&&((a13==1)||!(a28==1)))&&!(a20==1))))&&(a16==7)))){ + a19 = 1; + a13 = 1; + a5 = 4; + a6 = 1; + a1 = 12; + a21 = 10; + a9 = 7; + a12 = 1; + a20 = 1; + return -1; + } else if((((((((a17==2)&&(!(a14==1)&&(((input==6)&&(((((a1==12)&&(a5==5))&&(a9==11))||(((a1==12)&&(a5==6))&&(a9==11)))||((a9==7)&&((a5==4)&&(a1==13)))))&&(a16==9))))&&(a6==1))&&!(a8==1))&&!(a20==1))&&!(a18==1))&&((a19==1)&&((a21==10)&&(((a12==1)&&!(a0==1))&&(a6==1)))))){ + if((a21==11)){ + a20 = 1; + a13 = 0; + a9 = 11; + a3 = 0; + a5 = 4; + a15 = 1; + a16 = 7; + a1 = 14; + }else{ + a12 = 0; + a2 = 0; + a27 = 1; + a19 = 5; + a5 = 4; + a9 = 10; + a1 = 12; + a16 = 8; + a21 = 12; + } + return -1; + } else if((((((((((input==4)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(a17==2))&&(a19==4))&&!(a18==1))&&(a13==1))&&!(a24==1))&&!(a7==1))&&(((((a21==10)&&(!(a24==1)&&((a23==1)&&(a16==10))))||!(a2==1))&&(a20==1))&&(a1==14)))){ + a13 = 1; + a5 = 4; + a16 = 7; + a19 = 1; + a1 = 12; + a9 = 7; + a3 = 1; + a0 = 0; + return -1; + } else if((((a17==2)&&((!(a26==1)&&((a2==1)&&((((a13==1)&&!(a8==1))||!(a28==1))&&(a16==7))))&&(a1==12)))&&(((a19==4)&&(!(a20==1)&&((a6==1)&&(!(a7==1)&&((((a5==5)||(a5==6))&&(input==5))&&(a21==10))))))&&(a9==11)))){ + a7 = 0; + a19 = 1; + a9 = 7; + a26 = 0; + a6 = 1; + a20 = 1; + a5 = 4; + return -1; + } else if((((a19==2)&&((!(a28==1)||(!(a20==1)&&((a2==1)&&(!(a12==1)||(a12==1)))))&&(a9==10)))&&((a21==11)&&((a16==8)&&(((!(a0==1)&&((((input==1)&&((a5==5)||(a5==6)))&&(a1==12))&&(a17==2)))&&(a28==1))&&(a23==1)))))){ + a1 = 13; + a21 = 10; + a2 = 1; + a20 = 1; + a5 = 6; + a11 = 1; + a3 = 1; + a19 = 5; + return -1; + } else if((((a16==11)&&(!(a27==1)&&(!(a24==1)&&((a1==13)&&(a2==1)))))&&((((!(a0==1)&&(((((a21==10)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==4)))&&(a17==2))&&(a12==1))&&!(a7==1)))&&(a13==1))&&(a20==1))&&(a19==5)))){ + a9 = 7; + a19 = 1; + a1 = 12; + a14 = 0; + a5 = 4; + a4 = 0; + a16 = 7; + a8 = 0; + return -1; + } else if(((((((a12==1)&&((a21==10)&&((!(a20==1)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==1)))&&!(a26==1))))&&!(a14==1))&&!(a7==1))&&(a17==2))&&((a19==1)&&(!(a6==1)||((a1==12)&&(((a4==1)||(a12==1))&&(a16==8))))))){ + a19 = 5; + a20 = 1; + a12 = 1; + a21 = 11; + a5 = 4; + a16 = 10; + a23 = 1; + a11 = 1; + a1 = 13; + a9 = 8; + return 21; + } else if((((!(a8==1)&&((((a16==7)&&(!(a18==1)&&(((a5==5)||(a5==6))&&(input==1))))&&(a17==2))&&(a21==11)))&&(a1==14))&&(((((((a18==1)||((a26==1)||(a28==1)))&&(a20==1))&&(a3==1))||!(a6==1))&&(a19==3))&&(a9==11)))){ + a19 = 2; + a24 = 0; + a8 = 0; + a5 = 6; + a16 = 8; + a9 = 7; + a11 = 1; + return 25; + } else if(((!(a11==1)||((!(a24==1)&&(((a17==2)&&(a12==1))&&(a19==2)))&&!(a20==1)))&&(((a5==5)&&((a11==1)&&((((a21==10)&&((a1==14)&&(!(a7==1)&&((input==1)&&(a16==11)))))&&!(a24==1))&&!(a0==1))))&&(a9==9)))){ + a11 = 0; + a16 = 10; + a5 = 6; + a20 = 1; + a2 = 0; + a9 = 8; + a1 = 13; + a0 = 1; + a21 = 12; + return -1; + } else if((((a16==11)&&((!(a27==1)&&(((a11==1)&&(a6==1))&&(a19==4)))||!(a11==1)))&&(((a20==1)&&((a23==1)&&((((a9==10)&&((((input==5)&&((a5==5)||(a5==6)))&&!(a26==1))&&(a1==12)))&&(a17==2))&&(a12==1))))&&(a21==11)))){ + a6 = 1; + a19 = 2; + a5 = 5; + a9 = 9; + a23 = 1; + a1 = 13; + a21 = 12; + return 25; + } else if((((a28==1)&&((a1==13)&&(!(a8==1)&&((a17==2)&&((a11==1)&&((a16==10)&&(((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4)))&&(input==5))))))))&&((a21==10)&&((a19==4)&&((a24==1)||((a26==1)||(((a11==1)&&(a20==1))&&!(a24==1)))))))){ + a16 = 8; + a28 = 1; + a12 = 1; + a11 = 1; + a19 = 2; + a9 = 9; + a5 = 6; + a21 = 11; + return 21; + } else if(((((a1==14)&&(((a0==1)||((a28==1)&&(a17==2)))&&!(a20==1)))||!(a12==1))&&((a19==1)&&((a16==10)&&(((a21==11)&&(!(a14==1)&&((a11==1)&&(!(a26==1)&&((input==3)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5))))))))&&!(a7==1)))))){ + if((a6==1)){ + a18 = 1; + a22 = 0; + a19 = 5; + a21 = 12; + a9 = 11; + a16 = 9; + a20 = 1; + a5 = 4; + }else{ + a16 = 8; + a1 = 13; + a5 = 5; + a9 = 8; + a24 = 1; + a3 = 0; + a19 = 2; + } + return 25; + } else if((((a9==10)&&(((((((a3==1)&&(a16==7))&&(a1==13))&&(a2==1))&&!(a14==1))&&(a5==5))||!(a3==1)))&&(!(a7==1)&&(((a21==12)&&((a23==1)&&((a2==1)&&(!(a20==1)&&((a19==4)&&(input==4))))))&&(a17==2))))){ + a13 = 1; + a20 = 1; + a27 = 0; + a9 = 7; + a5 = 4; + a21 = 10; + a28 = 1; + a19 = 1; + a1 = 12; + return -1; + } else if(((((a19==3)&&((a23==1)&&!(a20==1)))||!(a12==1))&&(((((a1==14)&&((a16==7)&&(!(a27==1)&&((a17==2)&&((!(a4==1)&&((a28==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5))))&&(a21==11))))))&&(a9==9))&&(a3==1))&&(a2==1)))){ + a14 = 0; + a3 = 1; + a19 = 4; + a1 = 13; + a9 = 8; + a21 = 10; + a20 = 1; + a5 = 6; + return 21; + } else if((((!(a12==1)||(((a14==1)||((a3==1)&&(a13==1)))&&(a21==12)))&&(a17==2))&&(((((a6==1)&&((a11==1)&&((((((a1==14)&&(a5==4))&&(a9==7))||(((a9==11)&&((a5==5)&&(a1==13)))||(((a1==13)&&(a5==6))&&(a9==11))))&&(input==3))&&!(a27==1))))&&(a16==10))&&!(a20==1))&&(a19==1)))){ + a5 = 6; + a16 = 7; + a29 = 0; + a27 = 1; + a1 = 12; + a21 = 10; + a20 = 1; + a19 = 2; + a9 = 7; + return -1; + } else if(((((a20==1)&&((((a3==1)&&(((a27==1)||((a24==1)||(a23==1)))&&!(a0==1)))&&!(a14==1))&&!(a4==1)))&&(a17==2))&&((a5==5)&&((a9==10)&&(((((a16==7)&&(input==5))&&(a21==12))&&(a19==2))&&(a1==12)))))){ + a13 = 1; + a16 = 9; + a26 = 0; + a1 = 13; + a21 = 10; + a9 = 11; + a4 = 0; + a5 = 4; + return 25; + } else if((((((a19==1)&&((a21==10)&&(!(a20==1)&&(a28==1))))&&(a6==1))&&(a9==11))&&((((a17==2)&&(!(a0==1)&&(!(a7==1)&&((a1==13)&&((!(a26==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4)))&&(a6==1))))))&&(a16==8))&&!(a27==1)))){ + a20 = 1; + a27 = 0; + a11 = 1; + a9 = 7; + a1 = 12; + a0 = 0; + a5 = 4; + a16 = 7; + return -1; + } else if(((((a17==2)&&((a16==7)&&(!(a3==1)||(a2==1))))&&(a20==1))&&((a1==12)&&((!(a7==1)&&((a21==10)&&(!(a26==1)&&(!(a18==1)&&((a28==1)&&(!(a7==1)&&(((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))&&(input==3))))))))&&(a19==5))))){ + a19 = 1; + a23 = 1; + a8 = 0; + a24 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if(((((a3==1)&&((a9==7)&&(!(a7==1)&&(!(a27==1)&&((((((a5==5)||(a5==6))&&(input==4))&&(a3==1))&&(a16==9))&&(a21==11))))))&&!(a24==1))&&((((a1==13)&&((a19==4)&&(!(a6==1)||(a13==1))))&&!(a20==1))&&(a17==2)))){ + a29 = 0; + a5 = 4; + a3 = 0; + a16 = 11; + a1 = 12; + a20 = 1; + a9 = 9; + a19 = 5; + a11 = 0; + a21 = 12; + return 21; + } else if(((((a16==8)&&(!(a24==1)&&(((!(a14==1)&&(((input==3)&&(a21==11))&&(a13==1)))&&(a17==2))&&!(a8==1))))&&(a19==3))&&((((a8==1)||((a26==1)||((a9==11)&&((a6==1)&&(a5==4)))))&&(a1==12))&&(a20==1)))){ + a16 = 7; + a21 = 10; + a19 = 1; + a2 = 1; + a9 = 7; + a12 = 1; + a28 = 1; + return -1; + } else if(((((((!(a7==1)&&(((a9==11)&&(input==4))&&(a17==2)))&&!(a7==1))&&(a19==5))&&(a21==10))&&(a5==4))&&((a16==10)&&(!(a20==1)&&((a14==1)||((!(a4==1)&&(((a28==1)||(a26==1))&&(a1==13)))&&(a13==1))))))){ + a14 = 1; + a9 = 10; + a10 = 1; + a19 = 1; + a16 = 7; + a20 = 1; + return 21; + } else if(((!(a7==1)&&((((((((a5==6)&&(a1==13))&&(a9==11))||(((a5==4)&&(a1==14))&&(a9==7)))&&(input==3))&&(a16==9))&&!(a24==1))&&!(a26==1)))&&(((a20==1)&&(((a3==1)&&((a23==1)&&(((a23==1)&&!(a0==1))&&(a17==2))))&&(a19==2)))&&(a21==12)))){ + a9 = 7; + a21 = 10; + a5 = 4; + a16 = 7; + a19 = 1; + a4 = 0; + a3 = 1; + a1 = 12; + a0 = 0; + return -1; + } else if(((!(a24==1)&&((a16==9)&&((!(a26==1)&&(((a20==1)&&((a21==11)&&(a12==1)))&&(a9==7)))&&(a19==4))))&&(!(a4==1)&&(((((((a17==2)&&(input==4))&&(a23==1))&&(a1==12))&&(a23==1))&&(a5==4))&&(a28==1))))){ + a21 = 10; + a16 = 7; + a3 = 1; + a19 = 1; + a18 = 0; + return -1; + } else if((((a16==11)&&((((a20==1)&&((((a5==4)||(a5==5))&&(input==6))&&(a3==1)))&&!(a8==1))&&(a23==1)))&&((a17==2)&&((a9==11)&&((a19==1)&&(!(a2==1)||(((a21==11)&&(((a28==1)&&(a1==14))&&!(a0==1)))&&(a6==1)))))))){ + a16 = 7; + a3 = 1; + a21 = 10; + a1 = 12; + a9 = 7; + a5 = 4; + a24 = 0; + a4 = 0; + return -1; + } else if(((((((a16==8)&&((((a12==1)&&(((a20==1)&&(((input==3)&&(((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))))&&!(a24==1)))&&(a1==12)))&&!(a18==1))&&!(a8==1)))&&(a19==3))&&(a21==10))&&(a17==2))&&(((a6==1)&&(a2==1))||!(a6==1)))){ + a5 = 4; + a16 = 7; + a23 = 1; + a3 = 1; + a19 = 1; + a9 = 7; + a18 = 0; + return -1; + } else if(((!(a11==1)&&(((a16==11)&&((((input==4)&&(((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))))&&(a20==1))&&!(a12==1)))&&(a17==2)))&&((((((a21==10)&&(((a2==1)&&(a0==1))&&(a1==12)))&&(a19==2))&&!(a3==1))&&(a14==1))&&(a8==1)))){ + a28 = 0; + a5 = 6; + a9 = 7; + a20 = 0; + a8 = 1; + a12 = 0; + a19 = 1; + a16 = 7; + return -1; + } else if((((a17==2)&&((((!(a3==1)||((a12==1)&&!(a18==1)))&&(a20==1))&&(a19==1))&&(a1==12)))&&((a2==1)&&((((a21==10)&&((!(a14==1)&&(((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&(a16==11)))&&(a28==1)))&&(a11==1))&&(a9==11))))){ + a27 = 0; + a19 = 3; + a5 = 4; + a9 = 10; + a16 = 10; + a12 = 1; + a11 = 1; + return -1; + } else if((((!(a6==1)||((a23==1)&&((a19==1)&&((a17==2)&&(((a2==1)&&(a5==5))&&!(a20==1))))))||!(a3==1))&&((a28==1)&&((((a16==10)&&((((input==1)&&(a1==12))&&(a9==9))&&(a21==12)))&&!(a7==1))&&(a28==1))))){ + a12 = 0; + a1 = 13; + a5 = 4; + a19 = 2; + a20 = 1; + a21 = 10; + a29 = 0; + a9 = 7; + a16 = 7; + a27 = 1; + return -1; + } else if((((((a2==1)&&(((a13==1)&&((((((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6))))&&(input==5))&&!(a18==1))&&!(a26==1)))&&!(a26==1)))&&(a1==14))&&(a21==10))&&(((a17==2)&&((a19==2)&&((a23==1)&&((a3==1)&&!(a20==1)))))&&(a16==7)))){ + a9 = 7; + a24 = 0; + a20 = 1; + a1 = 12; + a5 = 4; + a11 = 1; + a3 = 1; + a19 = 1; + return -1; + } else if((((a16==8)&&((a11==1)&&((a21==12)&&(((a12==1)&&((a28==1)&&(!(a27==1)&&(((a5==4)||(a5==5))&&(input==1)))))&&!(a27==1)))))&&(((((a1==12)&&((!(a8==1)&&(a13==1))&&(a9==10)))&&(a17==2))&&(a20==1))&&(a19==4)))){ + a2 = 1; + a14 = 0; + a16 = 7; + a19 = 1; + a0 = 0; + a21 = 10; + a5 = 4; + a9 = 7; + return -1; + } else if((((a9==8)&&(((((!(a8==1)&&((a16==9)&&((!(a8==1)&&((input==4)&&(a19==4)))&&(a6==1))))&&!(a0==1))&&(a20==1))&&(a1==13))&&(a5==4)))&&((a17==2)&&((a7==1)||((a24==1)||((a6==1)&&(a21==11))))))){ + a16 = 7; + a9 = 7; + a12 = 1; + a1 = 12; + a21 = 10; + a19 = 1; + a3 = 1; + a2 = 1; + return -1; + } else if((((a8==1)||((a27==1)||(a12==1)))&&((a3==1)&&(((a20==1)&&(!(a26==1)&&((((a19==3)&&(((a17==2)&&((((((a5==5)&&(a1==13))&&(a9==11))||((a9==11)&&((a1==13)&&(a5==6))))||((a9==7)&&((a1==14)&&(a5==4))))&&(input==3)))&&(a16==8)))&&!(a7==1))&&(a21==12))))&&!(a18==1))))){ + a16 = 7; + a9 = 7; + a3 = 1; + a7 = 0; + a19 = 1; + a5 = 4; + a23 = 1; + a21 = 10; + a1 = 12; + return -1; + } else if((((a9==10)&&((a1==14)&&(((!(a7==1)&&((a21==11)&&(input==5)))&&(a23==1))&&(a16==8))))&&(((a19==5)&&((a5==6)&&(((((a8==1)||((a6==1)&&!(a20==1)))||(a18==1))&&(a17==2))||!(a11==1))))&&!(a0==1)))){ + if((a14==1)){ + a22 = 0; + a23 = 0; + a9 = 11; + a21 = 12; + a6 = 0; + a19 = 2; + a16 = 7; + }else{ + a15 = 1; + a5 = 5; + a21 = 12; + a24 = 1; + a23 = 0; + a20 = 1; + a16 = 7; + } + return 23; + } else if((((a16==7)&&((!(a28==1)||((((((a19==4)&&(!(a0==1)&&(a2==1)))&&(a11==1))||(a7==1))&&(a1==14))&&(a11==1)))&&(a9==11)))&&((!(a20==1)&&(!(a8==1)&&((a5==4)&&((input==3)&&(a21==12)))))&&(a17==2)))){ + a21 = 10; + a23 = 1; + a11 = 1; + a20 = 1; + a2 = 1; + a19 = 1; + a9 = 7; + a1 = 12; + return -1; + } else if((((a1==14)&&((a16==8)&&(!(a12==1)||(!(a13==1)||(!(a7==1)&&((((a17==2)&&(a3==1))&&(a21==10))&&(a19==4)))))))&&(!(a0==1)&&((((a13==1)&&(((input==4)&&((a5==5)||(a5==6)))&&!(a26==1)))&&(a9==10))&&!(a20==1))))){ + a23 = 1; + a1 = 12; + a19 = 1; + a14 = 0; + a20 = 1; + a9 = 7; + a16 = 7; + a0 = 0; + a5 = 4; + return -1; + } else if((((((!(a0==1)&&(((input==1)&&(a16==9))&&!(a20==1)))&&!(a26==1))&&(a23==1))&&(a5==5))&&((!(a7==1)&&((a19==2)&&((a9==9)&&(((a17==2)&&(((a2==1)&&(a21==12))||!(a23==1)))||(a4==1)))))&&(a1==12)))){ + a5 = 6; + a10 = 0; + a15 = 1; + a20 = 1; + a21 = 11; + a13 = 0; + a19 = 1; + a9 = 8; + a16 = 10; + return 21; + } else if((((a17==2)&&((((a18==1)||((a11==1)||(a24==1)))&&(a5==5))&&(a1==14)))&&(((((((a9==7)&&((((input==4)&&(a19==2))&&(a28==1))&&(a11==1)))&&(a16==8))&&(a3==1))&&!(a18==1))&&!(a20==1))&&(a21==12)))){ + a20 = 1; + a16 = 7; + a5 = 6; + a23 = 0; + a8 = 1; + a9 = 8; + a11 = 0; + a21 = 10; + a19 = 1; + return 23; + } else if(((!(a26==1)&&(!(a11==1)||((((a0==1)||((a1==14)&&(!(a26==1)&&(a3==1))))&&(a20==1))&&(a21==10))))&&((((!(a26==1)&&(((input==6)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(a28==1)))&&(a16==11))&&(a19==5))&&(a17==2)))){ + a27 = 0; + a1 = 12; + a5 = 4; + a9 = 7; + a18 = 0; + a16 = 7; + a14 = 0; + a19 = 1; + return -1; + } else if(((!(a7==1)&&(((a19==2)&&((a0==1)||((((a21==11)&&(a13==1))&&(a16==8))&&!(a20==1))))||!(a28==1)))&&((a6==1)&&(((a17==2)&&(!(a18==1)&&(((((a5==6)&&(a1==13))&&(a9==11))||(((a5==4)&&(a1==14))&&(a9==7)))&&(input==6))))&&(a11==1))))){ + a1 = 13; + a16 = 7; + a9 = 10; + a6 = 1; + a12 = 1; + a20 = 1; + a5 = 6; + a21 = 10; + return 25; + } else if(((((((a27==1)||(!(a24==1)&&(!(a20==1)&&(a13==1))))&&!(a7==1))&&(a21==11))&&(a17==2))&&(((a16==7)&&((a19==5)&&(((!(a7==1)&&((a1==12)&&((input==5)&&((a5==6)||((a5==4)||(a5==5))))))&&!(a27==1))&&!(a7==1))))&&(a9==11)))){ + if((a13==1)){ + a16 = 8; + a24 = 0; + a18 = 0; + a23 = 1; + a5 = 5; + a9 = 10; + }else{ + a26 = 0; + a16 = 10; + a5 = 5; + a1 = 13; + a7 = 0; + a19 = 1; + a20 = 1; + a21 = 10; + } + return 21; + } else if((((a16==8)&&(((((a9==8)&&(((a20==1)&&(a6==1))||!(a3==1)))||(a8==1))&&(a19==1))&&(a3==1)))&&(((a17==2)&&((a1==13)&&(((((input==1)&&((a5==4)||(a5==5)))&&(a2==1))&&!(a0==1))&&(a3==1))))&&(a21==12)))){ + a1 = 12; + a8 = 0; + a16 = 7; + a21 = 10; + a18 = 0; + a26 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if(((((a0==1)||((!(a26==1)&&(((a1==12)&&((a19==5)&&(a23==1)))&&(a20==1)))||(a27==1)))&&(a17==2))&&(((((!(a0==1)&&((((a5==5)||(a5==6))&&(input==5))&&!(a18==1)))&&(a21==12))&&!(a18==1))&&(a9==7))&&(a16==9)))){ + a18 = 0; + a28 = 1; + a7 = 0; + a16 = 10; + a21 = 10; + a1 = 14; + a5 = 4; + a19 = 1; + return 21; + } else if(((((a2==1)&&(!(a0==1)&&((a5==6)&&(((a19==1)&&(!(a3==1)||(a13==1)))&&(a16==8)))))&&(a21==10))&&((((((((input==6)&&(a17==2))&&(a13==1))&&(a28==1))&&!(a0==1))&&(a20==1))&&(a9==10))&&(a1==14)))){ + a26 = 0; + a1 = 12; + a21 = 12; + a16 = 9; + a18 = 0; + a5 = 4; + a3 = 1; + a19 = 3; + return 21; + } else if(((((a18==1)||(((a0==1)||(((a3==1)&&(a19==1))&&(a16==8)))&&!(a20==1)))||!(a23==1))&&(((((a3==1)&&((a6==1)&&((((a9==7)&&((a1==14)&&(a5==4)))||(((a9==11)&&((a1==13)&&(a5==5)))||(((a1==13)&&(a5==6))&&(a9==11))))&&(input==3))))&&(a17==2))&&(a21==11))&&!(a8==1)))){ + a28 = 1; + a13 = 1; + a9 = 8; + a21 = 10; + a20 = 1; + a5 = 5; + a19 = 4; + a1 = 14; + a26 = 0; + return 26; + } else if((((a12==1)&&(!(a4==1)&&(!(a3==1)||((a19==1)&&(a13==1)))))&&(((((((a21==10)&&(((a3==1)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==4)))&&(a20==1)))&&(a16==10))&&(a1==14))&&(a17==2))&&(a23==1))&&(a12==1)))){ + a14 = 0; + a16 = 8; + a5 = 4; + a9 = 10; + a1 = 13; + a3 = 1; + a19 = 5; + a8 = 0; + return -1; + } else if((((a12==1)&&(!(a20==1)&&((a2==1)&&!(a27==1))))&&(((a21==11)&&((a16==10)&&((a1==14)&&((a17==2)&&((a19==2)&&(!(a27==1)&&(!(a26==1)&&(((input==1)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5))))&&(a23==1)))))))))&&!(a4==1)))){ + a4 = 1; + a19 = 1; + a13 = 0; + a5 = 4; + a16 = 8; + a9 = 11; + a21 = 10; + a29 = 0; + return 25; + } else if(((((((a21==12)&&((input==6)&&(((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))))&&(a23==1))&&!(a0==1))&&(a3==1))&&((a11==1)&&((a17==2)&&((a19==5)&&((!(a20==1)&&(((a16==7)&&((a23==1)||(a18==1)))&&(a1==13)))&&!(a27==1))))))){ + a14 = 0; + a5 = 4; + a9 = 7; + a19 = 1; + a21 = 10; + a11 = 1; + a2 = 1; + a20 = 1; + a1 = 12; + return -1; + } else if((((a1==13)&&((!(a12==1)||(((((a19==3)&&(!(a0==1)&&(a6==1)))||!(a3==1))&&(a28==1))||!(a6==1)))&&(a17==2)))&&((((a16==9)&&(((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==6))&&!(a20==1)))&&(a21==12))&&(a13==1)))){ + a20 = 1; + a16 = 10; + a1 = 14; + a14 = 1; + a22 = 1; + a15 = 0; + a9 = 7; + a5 = 6; + return -1; + } else if(((((a0==1)||(((a23==1)&&((a17==2)&&(a28==1)))&&(a16==9)))&&!(a14==1))&&(((a6==1)&&(!(a20==1)&&((a28==1)&&(((input==3)&&((((a19==4)&&((a9==11)&&((a1==14)&&(a5==6))))||((((a5==4)&&(a1==12))&&(a9==7))&&(a19==5)))||(((a9==7)&&((a5==5)&&(a1==12)))&&(a19==5))))&&(a21==12)))))&&!(a0==1)))){ + if((a20==1)){ + a9 = 8; + a19 = 2; + a5 = 6; + a1 = 12; + a3 = 0; + a25 = 0; + a16 = 7; + a20 = 1; + a21 = 10; + }else{ + a20 = 1; + a1 = 13; + a21 = 10; + a18 = 1; + a9 = 9; + a24 = 1; + a16 = 7; + a25 = 0; + a5 = 4; + a19 = 1; + } + return -1; + } else if(((((((a24==1)||((((a16==8)&&((a12==1)&&(a1==12)))||!(a11==1))&&(a28==1)))&&(a17==2))&&(a9==11))&&(a21==11))&&((!(a18==1)&&((((a11==1)&&(!(a20==1)&&(input==5)))&&(a19==1))&&(a5==4)))&&!(a8==1)))){ + a4 = 0; + a27 = 0; + a2 = 1; + a16 = 7; + a21 = 10; + a20 = 1; + a9 = 7; + return -1; + } else if(((((a28==1)&&(((a21==12)&&((((((!(a8==1)&&((input==1)&&((a5==5)||(a5==6))))&&(a1==13))&&(a19==5))&&(a13==1))&&(a9==10))&&(a2==1)))&&(a16==11)))&&!(a26==1))&&((((a6==1)&&(a17==2))&&(a20==1))&&!(a8==1)))){ + a7 = 0; + a18 = 0; + a26 = 0; + a20 = 0; + a16 = 8; + a21 = 11; + a1 = 14; + a5 = 5; + a19 = 4; + a9 = 11; + return 21; + } else if(((!(a14==1)&&(((((((a13==1)&&!(a18==1))&&(a1==13))&&(a16==8))&&(a20==1))&&!(a7==1))&&!(a0==1)))&&(((((a21==11)&&(((input==5)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&!(a18==1)))&&(a17==2))&&(a19==4))&&!(a27==1)))){ + a21 = 12; + a19 = 5; + a5 = 6; + a9 = 11; + a13 = 1; + a6 = 1; + a24 = 0; + a16 = 7; + a20 = 0; + return 21; + } else if((((!(a8==1)&&((((a9==11)&&((a21==11)&&(((a6==1)&&((input==3)&&(a1==13)))&&!(a4==1))))&&(a28==1))&&(a16==7)))&&!(a26==1))&&((a17==2)&&((a19==1)&&((((a11==1)&&(a5==4))&&!(a20==1))&&!(a14==1)))))){ + a0 = 0; + a1 = 12; + a26 = 0; + a2 = 1; + a21 = 10; + a20 = 1; + a9 = 7; + return -1; + } else if((((a9==11)&&((((((a16==10)&&((a17==2)&&((((a21==12)&&(a2==1))&&(a19==5))&&!(a20==1))))&&(a1==13))||!(a13==1))&&(a11==1))&&!(a24==1)))&&(((a13==1)&&((((a5==5)||(a5==6))&&(input==3))&&(a11==1)))&&(a28==1)))){ + a9 = 10; + a5 = 5; + a8 = 1; + a24 = 1; + a0 = 1; + return -1; + } else if(((!(a13==1)||(((a9==10)&&((((a26==1)||(a3==1))&&!(a7==1))&&(a1==14)))&&(a17==2)))&&(((a21==11)&&(((((!(a24==1)&&((a20==1)&&(input==5)))&&!(a18==1))&&(a19==3))&&(a16==8))&&(a5==6)))&&!(a24==1)))){ + a12 = 1; + a27 = 0; + a16 = 10; + a19 = 1; + return 26; + } else if(((((((a3==1)&&((!(a8==1)&&(((a2==1)&&(((a19==2)&&(((a5==4)||(a5==5))&&(input==1)))&&(a21==12)))&&(a17==2)))&&(a13==1)))&&(a12==1))&&(a1==13))&&(a20==1))&&((a9==8)&&((a16==10)&&((a13==1)||!(a2==1)))))){ + a21 = 10; + a24 = 0; + a9 = 7; + a20 = 0; + a19 = 3; + a5 = 4; + a16 = 8; + a28 = 1; + a26 = 0; + return 25; + } else if((((a3==1)&&((((((a16==9)&&((((((input==4)&&((a5==5)||(a5==6)))&&(a6==1))&&(a9==11))&&(a19==1))&&(a1==14)))&&!(a8==1))&&(a17==2))&&(a13==1))&&!(a14==1)))&&((((a3==1)&&(a20==1))&&!(a24==1))&&(a21==11)))){ + a23 = 1; + a5 = 4; + a1 = 12; + a21 = 10; + a13 = 1; + a16 = 7; + a27 = 0; + a9 = 7; + return -1; + } else if(((((a16==7)&&(!(a27==1)&&(a13==1)))&&(a1==13))&&((a20==1)&&((a5==4)&&(((((a12==1)&&(!(a14==1)&&((a23==1)&&((((a21==10)&&(input==4))&&(a19==3))&&!(a8==1)))))&&(a17==2))&&(a9==8))&&(a23==1)))))){ + a28 = 1; + a19 = 1; + a1 = 12; + a9 = 7; + a23 = 1; + return -1; + } else if((((!(a20==1)&&((a17==2)&&(((a21==12)&&((a13==1)&&!(a7==1)))||!(a23==1))))&&(a19==3))&&(((a1==13)&&((a6==1)&&((((a2==1)&&(((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a9==11)))&&(a16==8))&&(a13==1))))&&(a3==1)))){ + a23 = 0; + a20 = 1; + a21 = 10; + a5 = 6; + a16 = 7; + a9 = 9; + a10 = 0; + a22 = 0; + a19 = 1; + return 25; + } else if((((((((a12==1)&&(((a19==1)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==1)))&&(a23==1)))&&!(a14==1))&&(a17==2))&&(a16==11))&&!(a18==1))&&(((a20==1)&&((a23==1)&&(((a28==1)||(a18==1))&&(a1==14))))&&(a21==11)))){ + a1 = 13; + a12 = 1; + a5 = 6; + a26 = 0; + a16 = 7; + a28 = 1; + a9 = 11; + a19 = 4; + return -1; + } else if((((a19==3)&&(((((((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a20==1))&&!(a24==1))&&(a16==8))&&(a1==13))&&(a9==10)))&&((!(a24==1)&&((((((a21==11)&&(a12==1))&&!(a7==1))||(a18==1))||(a7==1))&&(a12==1)))&&(a17==2)))){ + a9 = 11; + a1 = 12; + a18 = 0; + a19 = 1; + a16 = 10; + a5 = 4; + a14 = 0; + a11 = 1; + return 21; + } else if((((a5==4)&&(((((a16==7)&&(!(a27==1)&&(!(a18==1)&&((a19==2)&&((((a21==12)&&(((input==3)&&(a1==14))&&!(a20==1)))&&!(a18==1))&&(a12==1))))))&&(a9==10))&&(a28==1))&&(a6==1)))&&((a17==2)&&(a23==1)))){ + a12 = 1; + a19 = 1; + a1 = 12; + a26 = 0; + a21 = 10; + a20 = 1; + a9 = 7; + a7 = 0; + return -1; + } else if((((a20==1)&&((a21==11)&&(!(a7==1)&&((a5==4)&&(((!(a24==1)&&((a11==1)&&((input==3)&&(a16==7))))&&!(a8==1))&&(a23==1))))))&&((a9==11)&&((a19==3)&&((((a3==1)||(a4==1))&&(a17==2))&&(a1==12)))))){ + a7 = 0; + a19 = 1; + a28 = 1; + a24 = 0; + a9 = 7; + a21 = 10; + return -1; + } else if((((((!(a24==1)&&(((a21==11)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==3)))&&!(a8==1)))&&!(a26==1))&&(a17==2))&&(a16==8))&&(((((((a13==1)||(a27==1))||(a27==1))&&(a1==13))&&(a6==1))&&(a20==1))&&(a19==3)))){ + a5 = 4; + a1 = 12; + a19 = 1; + a11 = 1; + a18 = 0; + a9 = 7; + a16 = 7; + a6 = 1; + a21 = 10; + return -1; + } else if(((((((a16==7)&&((a21==11)&&((a13==1)&&(a19==4))))||(a7==1))&&(a5==6))&&!(a7==1))&&(((((!(a18==1)&&((a23==1)&&((!(a20==1)&&(input==5))&&(a11==1))))&&(a1==14))&&(a17==2))&&(a9==9))&&(a23==1)))){ + if((a24==1)){ + a16 = 8; + a1 = 12; + a3 = 1; + a19 = 5; + a13 = 1; + a9 = 10; + a11 = 1; + a5 = 4; + }else{ + a18 = 0; + a19 = 1; + a9 = 11; + a20 = 1; + a1 = 13; + a16 = 10; + a21 = 10; + a24 = 0; + a5 = 5; + } + return 21; + } else if((((!(a4==1)&&((a23==1)&&((!(a20==1)&&((a4==1)||(a28==1)))&&(a21==12))))||(a0==1))&&((a5==4)&&(((a16==8)&&(((a19==3)&&((((a17==2)&&(input==1))&&(a23==1))&&!(a24==1)))&&(a1==12)))&&(a9==8))))){ + a16 = 11; + a19 = 2; + a21 = 10; + a10 = 0; + a1 = 13; + a9 = 10; + a25 = 0; + a18 = 1; + a20 = 1; + return -1; + } else if((((a9==11)&&((a13==1)&&(!(a4==1)&&(((a13==1)&&((((a16==7)&&(((a5==5)||(a5==6))&&(input==5)))&&(a21==11))&&(a19==3)))&&(a20==1)))))&&((a1==14)&&(((a14==1)||(((a8==1)||(a6==1))&&(a17==2)))||(a8==1))))){ + a16 = 8; + a18 = 0; + a5 = 4; + a26 = 0; + a19 = 2; + a9 = 8; + return 23; + } else if(((((a20==1)&&((a9==7)&&((a4==1)||(((a13==1)&&(a1==14))||!(a28==1)))))&&(a19==2))&&((a17==2)&&(!(a4==1)&&(((a16==8)&&((a11==1)&&(((a11==1)&&((input==1)&&((a5==5)||(a5==6))))&&!(a18==1))))&&(a21==10)))))){ + a11 = 1; + a21 = 12; + a19 = 3; + a12 = 1; + a5 = 6; + a16 = 9; + a28 = 1; + a9 = 11; + return 21; + } else if((((a1==14)&&(((a19==3)&&(!(a4==1)&&((input==6)&&(a17==2))))&&!(a7==1)))&&((a9==8)&&((!(a0==1)&&((!(a20==1)&&(((a7==1)||((!(a11==1)||(a23==1))&&(a5==6)))&&(a21==11)))||!(a3==1)))&&(a16==9))))){ + if((a18==1)){ + a20 = 1; + a26 = 1; + a1 = 12; + a21 = 12; + a16 = 7; + a5 = 5; + a22 = 0; + a8 = 1; + a9 = 9; + }else{ + a3 = 0; + a11 = 0; + a20 = 1; + a15 = 0; + a5 = 5; + a16 = 11; + a21 = 10; + a9 = 10; + a1 = 12; + } + return 25; + } else if((((a21==12)&&(((((((a6==1)||!(a6==1))&&(a6==1))&&(a16==8))&&(a17==2))&&!(a20==1))&&(a12==1)))&&((a1==14)&&(!(a7==1)&&((a28==1)&&(((a19==3)&&((input==6)&&(((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))))&&(a13==1))))))){ + if((a1==14)){ + a12 = 0; + a20 = 1; + a22 = 1; + a5 = 4; + a28 = 0; + a21 = 10; + a16 = 7; + a19 = 1; + a9 = 7; + }else{ + a9 = 9; + a16 = 10; + a19 = 1; + a13 = 0; + a20 = 1; + a5 = 5; + a27 = 1; + } + return 25; + } else if(((!(a20==1)&&((a19==1)&&((a1==13)&&((((a9==9)&&((((a23==1)&&(!(a23==1)||(a23==1)))&&(a16==7))&&!(a8==1)))||!(a28==1))&&!(a0==1)))))&&(((a5==6)&&(!(a7==1)&&((input==6)&&(a21==11))))&&(a17==2)))){ + a9 = 7; + a20 = 1; + a19 = 3; + a28 = 1; + a13 = 1; + a16 = 9; + a1 = 12; + a7 = 0; + a21 = 10; + return -1; + } else if(((((((a21==12)&&((a13==1)&&((((a13==1)&&((a16==8)&&((input==4)&&(a19==3))))&&!(a8==1))&&(a17==2))))&&(a23==1))&&!(a24==1))&&(a5==6))&&(!(a20==1)&&(((a7==1)||((a2==1)&&(a1==13)))&&(a9==10))))){ + a1 = 12; + a21 = 10; + a19 = 1; + a29 = 1; + a25 = 0; + a20 = 1; + a5 = 4; + a16 = 7; + a8 = 1; + return 26; + } else if(((((a3==1)&&(((a19==4)&&(((a17==2)&&(((a5==5)||(a5==6))&&(input==4)))&&!(a4==1)))&&(a23==1)))&&(a1==14))&&(((!(a20==1)&&(((a9==7)&&(!(a2==1)||((a6==1)||!(a3==1))))&&(a16==10)))&&(a21==12))&&(a6==1)))){ + a21 = 10; + a15 = 1; + a20 = 1; + a1 = 13; + a9 = 9; + a19 = 1; + a5 = 5; + a16 = 7; + a14 = 1; + a18 = 1; + return -1; + } else if(((((((!(a7==1)&&(((a5==5)||(a5==6))&&(input==6)))&&(a20==1))&&(a16==7))&&(a1==13))&&(a21==12))&&((a19==1)&&(((a17==2)&&((a26==1)||((a14==1)||(((!(a0==1)&&(a11==1))&&(a9==7))||(a0==1)))))||!(a3==1))))){ + a24 = 0; + a6 = 1; + a19 = 5; + a2 = 1; + a1 = 12; + a5 = 5; + a9 = 10; + a16 = 8; + return 21; + } else if((((a11==1)&&(((a21==10)&&(((a13==1)&&(!(a20==1)&&((a6==1)&&(((a19==1)&&(input==4))&&(a9==7)))))&&(a6==1)))&&(a11==1)))&&((a5==6)&&((a17==2)&&((((a2==1)&&!(a26==1))&&(a1==12))&&(a16==8)))))){ + a12 = 1; + a16 = 7; + a13 = 1; + a21 = 12; + a19 = 3; + a8 = 0; + a20 = 1; + a5 = 4; + return 23; + } else if((((!(a20==1)&&((a19==2)&&((a17==2)&&(((((a5==6)&&(a1==12))&&(a9==11))||(((a1==13)&&(a5==4))&&(a9==7)))&&(input==5)))))&&!(a18==1))&&(((((((a21==12)&&((a4==1)||(a12==1)))&&(a6==1))&&(a16==7))&&(a23==1))&&(a13==1))||(a24==1)))){ + a9 = 7; + a21 = 10; + a20 = 1; + a5 = 4; + a1 = 12; + a11 = 1; + a12 = 1; + a19 = 1; + a26 = 0; + return -1; + } else if((((!(a26==1)&&((((a19==5)&&(((!(a20==1)&&((((a1==14)&&(input==4))&&(a21==12))&&(a16==8)))&&(a17==2))&&!(a26==1)))&&(a5==4))&&!(a7==1)))&&!(a18==1))&&(((a9==9)&&(!(a27==1)&&(a11==1)))||!(a12==1)))){ + a19 = 1; + a18 = 1; + a1 = 12; + a21 = 10; + a22 = 0; + a5 = 6; + a20 = 1; + a2 = 0; + a16 = 7; + a9 = 11; + return -1; + } else if(((((a5==5)&&(((a4==1)||(((a18==1)||((a27==1)||(!(a23==1)||(a11==1))))&&(a1==14)))&&(a16==8)))&&(a17==2))&&((a3==1)&&((((a19==3)&&(((input==1)&&!(a20==1))&&(a9==11)))&&(a13==1))&&(a21==11))))){ + a9 = 10; + a19 = 5; + a1 = 13; + a21 = 10; + a5 = 6; + a7 = 0; + a20 = 1; + a24 = 0; + a0 = 0; + return -1; + } else if((((a2==1)&&((((a13==1)&&((a1==14)&&((a18==1)||(((a28==1)&&(a9==7))&&(a19==3)))))&&!(a27==1))&&!(a20==1)))&&((a17==2)&&(!(a26==1)&&(((((input==6)&&(a21==10))&&(a6==1))&&(a5==4))&&(a16==9)))))){ + a21 = 12; + a25 = 1; + a5 = 5; + a12 = 0; + a9 = 11; + a20 = 1; + a8 = 1; + a16 = 11; + a19 = 4; + return -1; + } else if((((a16==9)&&((a1==13)&&(!(a14==1)&&((a19==4)&&(!(a4==1)&&(!(a4==1)&&(!(a14==1)&&((a9==9)&&(((a21==10)&&(input==3))&&!(a20==1))))))))))&&((!(a0==1)&&((a5==6)&&((a17==2)&&(a6==1))))&&!(a27==1)))){ + a10 = 0; + a5 = 5; + a9 = 11; + a28 = 0; + a22 = 1; + a20 = 1; + return -1; + } else if(((((((a17==2)&&(!(a12==1)||((!(a27==1)&&(a23==1))&&(a16==9))))&&(a19==5))&&(a1==14))&&!(a20==1))&&((a28==1)&&(((((a21==10)&&((input==5)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))))&&!(a24==1))&&!(a4==1))&&!(a27==1))))){ + a10 = 0; + a29 = 1; + a12 = 0; + a5 = 6; + a1 = 13; + a16 = 8; + a19 = 2; + a9 = 10; + return 21; + } else if((((((a9==8)&&((a1==13)&&((a21==12)&&(a23==1))))||(a7==1))&&(a16==8))&&(!(a26==1)&&(!(a14==1)&&((!(a24==1)&&(((((a19==4)&&((input==5)&&(a5==4)))&&!(a20==1))&&(a11==1))&&(a17==2)))&&!(a4==1)))))){ + if((a11==1)){ + a5 = 6; + a19 = 2; + a9 = 7; + a21 = 11; + a3 = 0; + a23 = 0; + a20 = 1; + a12 = 0; + }else{ + a4 = 1; + a20 = 1; + a14 = 1; + a19 = 1; + a21 = 10; + a9 = 10; + a16 = 7; + a25 = 0; + } + return 22; + } else if(((((a2==1)&&((a17==2)&&((!(a20==1)&&(((((a16==9)&&(((a5==4)||(a5==5))&&(input==4)))&&(a21==10))&&(a2==1))&&(a19==2)))&&(a1==14))))&&!(a7==1))&&(!(a13==1)||((((a2==1)&&(a28==1))&&(a9==10))||!(a6==1))))){ + a16 = 7; + a3 = 0; + a19 = 1; + a11 = 0; + a13 = 0; + a5 = 4; + a1 = 13; + a20 = 1; + return 21; + } else if(((((a1==13)&&(!(a14==1)&&((a16==9)&&(!(a0==1)&&(((a2==1)&&((a17==2)&&(((a5==4)&&(input==1))&&!(a20==1))))&&(a3==1))))))&&(a9==9))&&((a19==4)&&((a12==1)&&(((a13==1)&&(a6==1))&&(a21==12)))))){ + a8 = 1; + a9 = 7; + a16 = 7; + a13 = 0; + a29 = 1; + a5 = 6; + a1 = 12; + return 26; + } else if(((!(a6==1)||(!(a24==1)&&((a7==1)||((a3==1)&&(a21==11)))))&&((!(a27==1)&&(((a1==12)&&((a19==2)&&((((((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4)))&&(input==4))&&(a20==1))&&(a17==2))&&(a12==1))))&&(a16==11)))&&(a13==1)))){ + a8 = 0; + a9 = 7; + a5 = 4; + a13 = 1; + a21 = 10; + a16 = 7; + a19 = 1; + a12 = 1; + return -1; + } else if((((((a4==1)||(a12==1))||!(a6==1))||(a4==1))&&((a19==2)&&((((a21==11)&&((a16==10)&&((a17==2)&&((!(a27==1)&&(((((a9==11)&&((a1==13)&&(a5==6)))||(((a5==4)&&(a1==14))&&(a9==7)))||((a9==7)&&((a1==14)&&(a5==5))))&&(input==6)))&&!(a20==1)))))&&!(a27==1))&&!(a14==1))))){ + a20 = 1; + a5 = 5; + a19 = 5; + a1 = 13; + a24 = 1; + a16 = 7; + a9 = 8; + a10 = 0; + a25 = 0; + return 23; + } else if((((a8==1)&&((((a20==1)&&((a17==2)&&((a19==5)&&((a16==9)&&(input==6)))))&&(a1==12))&&(a5==6)))&&(((a4==1)&&((a18==1)&&(((a27==1)&&(((a21==10)&&(a11==1))&&!(a28==1)))&&(a9==11))))&&(a18==1)))){ + a15 = 1; + a10 = 1; + a25 = 0; + a16 = 8; + a20 = 0; + a1 = 14; + a9 = 9; + return 26; + } else if(((((!(a3==1)||(((a17==2)&&((((a6==1)||!(a3==1))&&(a16==10))&&!(a27==1)))&&(a19==5)))&&(a21==12))&&(a1==12))&&(!(a4==1)&&(!(a8==1)&&((a20==1)&&(((((a5==4)||(a5==5))&&(input==1))&&(a9==10))&&!(a0==1))))))){ + a18 = 0; + a16 = 8; + a1 = 13; + a6 = 1; + a24 = 0; + a5 = 6; + return 26; + } else if((((((!(a24==1)&&(!(a24==1)&&(((a5==4)||(a5==5))&&(input==5))))&&(a21==10))&&(a28==1))&&!(a14==1))&&(!(a7==1)&&(!(a3==1)||(((a17==2)&&(((a16==8)&&((a1==12)&&((a3==1)&&!(a20==1))))&&(a19==5)))&&(a9==9)))))){ + a21 = 11; + a5 = 4; + a9 = 8; + a1 = 13; + a26 = 0; + a19 = 4; + a12 = 1; + a20 = 1; + a27 = 0; + return 22; + } else if((((a1==12)&&((((a13==1)&&((((input==3)&&(a5==4))&&(a21==12))&&(a20==1)))&&!(a7==1))&&(a9==10)))&&(((a17==2)&&((a19==1)&&((!(a14==1)&&((a16==11)&&((a23==1)&&(a3==1))))&&(a3==1))))&&(a13==1)))){ + a18 = 0; + a9 = 7; + a16 = 7; + a21 = 10; + a4 = 0; + return -1; + } else if(((((a2==1)&&(((a9==10)&&((a28==1)&&((a19==1)&&(input==4))))&&(a23==1)))&&!(a0==1))&&((((a27==1)||(((a16==7)&&(((!(a20==1)&&(a3==1))&&(a5==5))&&(a1==14)))&&(a17==2)))||!(a28==1))&&(a21==12)))){ + a27 = 0; + a1 = 12; + a14 = 0; + a9 = 7; + a0 = 0; + a20 = 1; + a21 = 10; + a5 = 4; + return -1; + } else if((((a16==8)&&((a19==1)&&(((a18==1)||((a6==1)&&(((a9==10)&&((a2==1)&&(!(a24==1)&&(a13==1))))&&(a17==2))))&&!(a0==1))))&&((a1==14)&&((((a20==1)&&((input==4)&&((a5==4)||(a5==5))))&&(a11==1))&&(a21==12))))){ + a9 = 7; + a24 = 0; + a12 = 1; + a1 = 12; + a21 = 10; + a16 = 7; + a5 = 4; + a11 = 1; + return -1; + } else if((((!(a26==1)&&(!(a20==1)&&(((!(a14==1)&&((input==6)&&(a17==2)))&&(a9==10))&&(a11==1))))&&(a16==9))&&((a19==2)&&((!(a3==1)||(((((a5==5)&&(a13==1))&&(a1==12))&&(a6==1))&&(a21==10)))||(a24==1))))){ + a28 = 0; + a16 = 7; + a27 = 1; + a29 = 0; + a5 = 6; + a9 = 7; + return -1; + } else if((((a19==4)&&((((input==6)&&(a9==7))&&(a12==1))&&(a1==12)))&&(((a5==4)&&((a17==2)&&(((((a0==1)||((a23==1)&&(!(a26==1)&&((a28==1)&&(a16==9)))))&&(a23==1))&&(a28==1))&&(a20==1))))&&(a21==11)))){ + a16 = 7; + a0 = 0; + a3 = 1; + a19 = 1; + a21 = 10; + a24 = 0; + return -1; + } else if((((((input==6)&&((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4))))&&(a21==12))&&(a16==8))&&((a19==4)&&(((a1==14)&&(!(a26==1)&&((a23==1)&&(!(a23==1)||((!(a8==1)&&((a2==1)&&((a17==2)&&(a28==1))))&&(a12==1))))))&&(a20==1))))){ + a9 = 7; + a5 = 4; + a19 = 5; + a21 = 11; + a4 = 0; + a18 = 0; + a8 = 0; + return -1; + } else if((((a9==10)&&(((!(a14==1)&&((a20==1)&&(input==1)))&&!(a24==1))&&(a21==10)))&&(((a1==13)&&((a5==6)&&(!(a0==1)&&(!(a6==1)||((!(a27==1)&&((a16==9)&&((a6==1)&&(a19==2))))&&(a17==2))))))||!(a12==1)))){ + a16 = 7; + a9 = 7; + a1 = 12; + a13 = 1; + a5 = 4; + a19 = 1; + a12 = 1; + return -1; + } else if((((!(a24==1)&&((a13==1)&&(!(a24==1)&&((a19==4)&&(a28==1)))))||!(a3==1))&&(((a6==1)&&((a16==10)&&((((a21==11)&&((input==1)&&(((a9==7)&&((a1==13)&&(a5==4)))||((((a1==12)&&(a5==5))&&(a9==11))||(((a5==6)&&(a1==12))&&(a9==11))))))&&(a17==2))&&(a20==1))))&&(a11==1)))){ + a3 = 1; + a19 = 2; + a1 = 14; + a16 = 7; + a23 = 1; + a5 = 4; + a9 = 9; + a27 = 0; + a21 = 10; + return 23; + } else if((((!(a20==1)&&((a23==1)&&((a16==9)&&(!(a28==1)||(!(a3==1)||(a3==1))))))||(a18==1))&&(!(a8==1)&&(((a21==12)&&(((input==6)&&(((a19==3)&&(((a5==6)&&(a1==14))&&(a9==11)))||((a19==4)&&(((a5==4)&&(a1==12))&&(a9==7)))))&&!(a4==1)))&&(a17==2))))){ + if((a12==1)){ + a27 = 1; + a1 = 12; + a20 = 1; + a4 = 1; + a16 = 7; + a21 = 11; + a19 = 2; + a9 = 7; + a5 = 5; + }else{ + a9 = 10; + a16 = 7; + a5 = 5; + a11 = 0; + a1 = 14; + a19 = 1; + a20 = 1; + a27 = 1; + a22 = 0; + a21 = 10; + } + return -1; + } else if(((((a23==1)&&(((((a5==5)||(a5==6))&&(input==4))&&!(a14==1))&&(a6==1)))&&(a16==8))&&((a9==7)&&((a1==13)&&(((a21==10)&&((((a14==1)||(((a28==1)&&!(a7==1))||!(a28==1)))&&(a19==5))&&!(a20==1)))&&(a17==2)))))){ + a19 = 1; + a20 = 1; + a1 = 12; + a23 = 1; + a5 = 4; + a28 = 1; + a7 = 0; + a16 = 7; + return -1; + } else if((((a9==9)&&(!(a12==1)||(!(a27==1)&&(((a19==5)&&(((a17==2)&&(((a2==1)||!(a23==1))||(a4==1)))||(a27==1)))&&!(a20==1)))))&&((a16==9)&&((a1==14)&&((!(a0==1)&&(((a5==4)||(a5==5))&&(input==6)))&&(a21==10)))))){ + a1 = 12; + a5 = 5; + a28 = 0; + a16 = 11; + a19 = 3; + a20 = 1; + a7 = 1; + a9 = 11; + a4 = 1; + return 21; + } else if((((((a5==6)&&(input==5))&&!(a20==1))&&!(a24==1))&&((a9==11)&&((a17==2)&&(((((a1==12)&&((!(a11==1)||((!(a24==1)&&((a16==10)&&(a23==1)))&&(a21==10)))||!(a23==1)))||(a4==1))&&(a19==3))&&(a23==1)))))){ + a11 = 0; + a9 = 8; + a5 = 4; + a7 = 1; + a21 = 12; + a18 = 1; + a1 = 14; + a19 = 5; + return -1; + } else if((((!(a20==1)&&((a16==10)&&((a21==10)&&(((a2==1)&&((a26==1)||(!(a6==1)||(a11==1))))&&(a17==2)))))&&(a9==9))&&((a19==1)&&((a1==12)&&((a28==1)&&((!(a24==1)&&(((a5==4)||(a5==5))&&(input==6)))&&!(a27==1))))))){ + a16 = 7; + a9 = 7; + a15 = 1; + a25 = 1; + a1 = 13; + a5 = 4; + a20 = 1; + return -1; + } else if(((!(a27==1)&&(!(a7==1)&&((a4==1)||(((a1==14)&&(a12==1))&&(a12==1)))))&&(((a16==10)&&(((!(a8==1)&&((a17==2)&&((a19==4)&&((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==1)))))&&(a21==10))&&!(a20==1)))&&!(a0==1)))){ + if((a24==1)){ + a10 = 0; + a5 = 6; + a24 = 1; + a1 = 12; + a12 = 0; + a9 = 7; + a16 = 7; + a19 = 2; + a20 = 1; + }else{ + a1 = 13; + a25 = 0; + a22 = 0; + a5 = 5; + a9 = 11; + a16 = 7; + } + return 21; + } else if(((((a1==14)&&(((a19==1)&&((a14==1)||((a12==1)&&(a13==1))))&&(a9==10)))&&(a16==9))&&((!(a4==1)&&(((((a6==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a20==1)))&&(a21==12))&&!(a26==1))&&(a11==1)))&&(a17==2)))){ + a4 = 0; + a9 = 7; + a1 = 12; + a16 = 7; + a5 = 4; + a21 = 10; + a12 = 1; + a3 = 1; + return -1; + } else if((((a9==10)&&(((a11==1)&&(((((a6==1)&&(a11==1))&&(a6==1))&&(a19==5))&&(a16==7)))&&(a21==12)))&&(((((a1==13)&&(((((a5==5)||(a5==6))&&(input==6))&&(a20==1))&&!(a8==1)))&&!(a4==1))&&(a3==1))&&(a17==2)))){ + a9 = 11; + a16 = 9; + a12 = 1; + a3 = 1; + a21 = 11; + a6 = 1; + a5 = 6; + return 23; + } else if((((a21==11)&&((a16==11)&&(((a12==1)&&((!(a26==1)&&((a19==1)&&(input==5)))&&(a17==2)))&&(a1==14))))&&((a9==10)&&((a5==5)&&((((a12==1)&&((a12==1)&&((a23==1)&&(a20==1))))||(a7==1))||!(a3==1)))))){ + a1 = 12; + a21 = 10; + a0 = 0; + a24 = 0; + a5 = 4; + a16 = 7; + a23 = 1; + a9 = 7; + return -1; + } else if((((a19==1)&&(!(a26==1)&&(!(a20==1)&&((((a3==1)||!(a12==1))&&(a16==9))&&(a17==2)))))&&((((((a28==1)&&(!(a18==1)&&((input==6)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))))&&(a3==1))&&(a1==14))&&(a3==1))&&(a21==12)))){ + a20 = 1; + a10 = 1; + a9 = 11; + a16 = 11; + a27 = 1; + a1 = 13; + a5 = 4; + a15 = 0; + return -1; + } else if((((((input==6)&&(((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))))&&(a13==1))&&(a17==2))&&((((a1==14)&&((a19==2)&&(((!(a7==1)&&(((a6==1)&&((a6==1)||!(a2==1)))||(a8==1)))&&(a6==1))&&(a20==1))))&&(a16==8))&&(a21==10)))){ + a23 = 1; + a9 = 7; + a28 = 1; + a5 = 4; + a1 = 12; + a19 = 1; + a16 = 7; + a24 = 0; + return -1; + } else if((((((!(a13==1)||((a2==1)&&(a16==9)))&&(a17==2))&&(a9==11))&&(a1==14))&&(((a20==1)&&(((a21==10)&&((((a6==1)&&(!(a4==1)&&(((a5==4)||(a5==5))&&(input==4))))&&(a12==1))&&(a19==5)))&&(a3==1)))&&!(a14==1)))){ + a3 = 1; + a5 = 4; + a1 = 12; + a19 = 1; + a27 = 0; + a26 = 0; + a16 = 7; + a9 = 7; + return -1; + } else if((((a16==11)&&(((a19==5)&&((a17==2)&&(!(a4==1)&&((a11==1)&&(a9==11)))))&&(a21==10)))&&(((((!(a27==1)&&((a3==1)&&((a6==1)&&((input==3)&&(a1==14)))))&&(a3==1))&&(a13==1))&&(a20==1))&&(a5==4)))){ + a27 = 0; + a21 = 11; + a5 = 6; + a1 = 13; + a19 = 4; + a9 = 10; + a14 = 0; + a16 = 9; + a13 = 1; + return -1; + } else if((((a6==1)&&((a17==2)&&(((input==4)&&((a5==5)||(a5==6)))&&(a16==8))))&&((a20==1)&&(((a21==10)&&((a9==10)&&((((((a1==13)&&(!(a26==1)&&(a23==1)))||!(a12==1))&&!(a4==1))||(a26==1))&&!(a14==1))))&&(a19==5))))){ + a0 = 0; + a1 = 12; + a16 = 7; + a4 = 0; + a21 = 11; + a19 = 3; + a27 = 0; + a5 = 6; + a9 = 11; + return -1; + } else if((((a17==2)&&((a16==8)&&((a9==8)&&(((a28==1)&&(((a23==1)||!(a2==1))&&!(a20==1)))&&(a19==4)))))&&(((a1==14)&&(((a3==1)&&((!(a4==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3)))&&(a3==1)))&&!(a8==1)))&&(a21==10)))){ + a3 = 1; + a1 = 12; + a16 = 7; + a9 = 7; + a4 = 0; + a19 = 1; + a6 = 1; + a20 = 1; + a5 = 4; + return -1; + } else if(((((a11==1)&&((a21==10)&&((a1==14)&&((((a20==1)&&((a8==1)||(a23==1)))&&(a17==2))&&(a12==1)))))||(a8==1))&&((a9==8)&&((((a28==1)&&((a2==1)&&((input==3)&&((a5==4)||(a5==5)))))&&(a19==4))&&(a16==8))))){ + a14 = 0; + a27 = 0; + a5 = 6; + a4 = 0; + a1 = 13; + a19 = 1; + a9 = 10; + a16 = 10; + return 23; + } else if(((((((a2==1)&&((a16==11)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a20==1))))&&(a19==1))&&(a2==1))&&(a1==14))&&(((((((a17==2)&&((a3==1)&&(a9==10)))&&(a21==10))||!(a23==1))&&(a6==1))||(a27==1))||!(a12==1)))){ + a21 = 12; + a8 = 0; + a5 = 4; + a16 = 7; + a9 = 11; + a18 = 0; + a7 = 0; + a20 = 0; + return -1; + } else if((((a17==2)&&((a1==12)&&((a3==1)&&(!(a4==1)&&((((input==5)&&(a19==1))&&(a13==1))&&(a9==7))))))&&(((a26==1)||((a16==7)&&(!(a20==1)&&((((a3==1)&&(a2==1))||(a0==1))&&(a5==5)))))&&(a21==11)))){ + a3 = 1; + a21 = 10; + a5 = 4; + a20 = 1; + a2 = 1; + return -1; + } else if(((((((a3==1)&&((((a16==10)&&(!(a14==1)&&((a21==10)&&(input==1))))&&(a17==2))&&!(a20==1)))&&!(a0==1))&&(a1==13))&&(a28==1))&&(((a19==5)&&(!(a14==1)&&((a5==5)&&((a6==1)&&(a9==9)))))&&(a12==1)))){ + a19 = 1; + a16 = 7; + a11 = 0; + a20 = 1; + a22 = 0; + a0 = 1; + a5 = 4; + return 21; + } else if(((((a9==10)&&(((a16==10)&&(((((input==5)&&((a5==5)||(a5==6)))&&!(a7==1))&&(a19==1))&&!(a24==1)))&&!(a20==1)))&&!(a7==1))&&((a28==1)&&((a21==12)&&((a18==1)||((a17==2)&&(((a18==1)||(a13==1))&&(a1==12)))))))){ + a21 = 11; + a1 = 13; + a9 = 11; + a5 = 6; + a27 = 1; + a19 = 4; + a2 = 0; + a10 = 0; + return 26; + } else if(((!(a26==1)&&((a16==9)&&(((!(a13==1)||((a6==1)||(a8==1)))&&!(a20==1))&&(a21==11))))&&(!(a8==1)&&((a19==2)&&((((((input==4)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5))))&&(a1==12))&&(a12==1))&&(a17==2))&&(a6==1)))))){ + a5 = 6; + a1 = 14; + a26 = 1; + a16 = 7; + a29 = 1; + a21 = 10; + a20 = 1; + a22 = 1; + a19 = 1; + a9 = 10; + return -1; + } else if((((!(a2==1)||((((a19==5)&&(((a20==1)&&(a11==1))&&(a21==10)))||(a24==1))&&(a1==13)))||(a27==1))&&((!(a7==1)&&(!(a18==1)&&(((((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a16==7))&&(a17==2))&&(a9==10))))&&!(a18==1)))){ + a9 = 8; + a19 = 3; + a5 = 5; + a18 = 0; + a1 = 14; + a21 = 12; + a12 = 1; + a14 = 0; + return 25; + } else if(((((a21==12)&&(((a28==1)&&(!(a27==1)&&(((((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a5==4)&&(a9==8)))&&(input==3))&&!(a7==1))&&(a20==1))))&&(a16==8)))&&!(a26==1))&&(((((a18==1)||((a1==14)&&(a6==1)))&&(a19==4))||!(a3==1))&&(a17==2)))){ + a4 = 0; + a13 = 1; + a9 = 8; + a6 = 1; + a19 = 5; + a21 = 10; + a1 = 12; + a5 = 6; + return -1; + } else if((((a12==1)&&((a12==1)&&(!(a18==1)&&((a17==2)&&((input==4)&&(((((((a9==7)&&((a5==4)&&(a1==12)))&&!(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))||((((a19==5)&&((a16==11)&&(((a9==11)&&((a5==5)&&(a1==14)))&&(a20==1))))&&(a21==12))||((a21==12)&&((a19==5)&&((a16==11)&&((((a5==6)&&(a1==14))&&(a9==11))&&(a20==1))))))))))))&&((((a23==1)&&(a12==1))||(a14==1))||(a18==1)))){ + a6 = 1; + a9 = 7; + a1 = 12; + a16 = 7; + a5 = 4; + a0 = 0; + a19 = 1; + a21 = 10; + a14 = 0; + a20 = 1; + return -1; + } else if((((a17==2)&&(((a1==14)&&((a16==7)&&((a14==1)||((a20==1)&&((a5==6)&&(((a19==4)&&(a28==1))&&(a13==1)))))))||(a27==1)))&&((a23==1)&&((!(a14==1)&&(!(a24==1)&&((a9==11)&&(input==6))))&&(a21==10))))){ + a28 = 1; + a14 = 0; + a21 = 12; + a19 = 1; + a1 = 13; + a5 = 5; + return 21; + } else if(((((a17==2)&&((((a3==1)||!(a13==1))||!(a11==1))&&(a23==1)))&&(a20==1))&&((((((input==4)&&((((a21==10)&&(((a9==11)&&((a5==5)&&(a1==14)))&&(a19==5)))||((a21==10)&&((((a1==14)&&(a5==6))&&(a9==11))&&(a19==5))))||((a21==11)&&(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==1)))))&&(a11==1))&&(a16==11))&&(a3==1))&&!(a14==1)))){ + a5 = 4; + a21 = 10; + a19 = 1; + a16 = 7; + a1 = 12; + a9 = 7; + a23 = 1; + a26 = 0; + return -1; + } else if((((a21==10)&&((!(a7==1)&&((((a5==5)||(a5==6))&&(input==1))&&(a19==4)))&&!(a4==1)))&&((a16==8)&&((a9==11)&&(!(a20==1)&&((!(a7==1)&&(((((a11==1)||(a0==1))&&(a1==12))||(a18==1))&&(a17==2)))||(a0==1))))))){ + a19 = 2; + a16 = 10; + a12 = 1; + a21 = 11; + a20 = 1; + a11 = 1; + a1 = 14; + a2 = 1; + a5 = 6; + return 25; + } else if((((a21==11)&&((a23==1)&&(((a9==10)&&((a12==1)&&(((a6==1)&&((a1==14)&&((a16==9)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a6==1)))))&&(a19==1))))&&!(a20==1))))&&((a28==1)&&(((a18==1)||(a2==1))&&(a17==2))))){ + a1 = 12; + a16 = 8; + a8 = 1; + a0 = 1; + a9 = 11; + a15 = 1; + a21 = 12; + a5 = 6; + a19 = 4; + return -1; + } else if((((a24==1)||(((a21==12)&&(((a23==1)&&(a1==13))&&!(a26==1)))&&(a16==10)))&&((a6==1)&&((a28==1)&&(((a9==9)&&((a17==2)&&((a19==2)&&(!(a27==1)&&(!(a20==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))))))&&(a13==1)))))){ + a1 = 12; + a3 = 0; + a9 = 7; + a14 = 1; + a20 = 1; + a5 = 5; + a25 = 1; + a21 = 10; + a16 = 7; + return -1; + } else if(((!(a20==1)&&((a1==13)&&((a11==1)&&((!(a18==1)&&(!(a7==1)&&((((a5==5)||(a5==6))&&(input==6))&&!(a4==1))))&&(a21==10)))))&&((a9==8)&&((a17==2)&&(((a13==1)&&(((a28==1)&&(a19==3))||!(a23==1)))&&(a16==11)))))){ + a19 = 1; + a29 = 1; + a20 = 1; + a5 = 4; + a27 = 1; + a9 = 11; + a21 = 12; + a15 = 1; + return -1; + } else if(((((a19==1)&&((!(a18==1)&&(((a6==1)&&!(a20==1))&&(a1==14)))&&!(a8==1)))&&(a21==10))&&((a16==8)&&((!(a27==1)&&((((!(a4==1)&&((input==6)&&((a5==5)||(a5==6))))&&(a6==1))&&(a11==1))&&(a9==11)))&&(a17==2))))){ + a5 = 5; + a9 = 7; + a20 = 1; + a23 = 1; + a27 = 0; + a1 = 12; + a16 = 7; + a19 = 2; + a21 = 12; + a28 = 1; + return 22; + } else if((((a11==1)&&((a12==1)&&((a28==1)&&(((a16==9)&&(!(a4==1)&&(!(a20==1)&&((a19==3)&&(((a5==4)||(a5==5))&&(input==1))))))&&(a9==9)))))&&(!(a24==1)&&(((a17==2)&&((a21==11)&&((a28==1)&&!(a24==1))))&&(a1==14))))){ + a21 = 10; + a19 = 1; + a12 = 0; + a1 = 13; + a5 = 5; + a9 = 11; + a20 = 1; + a16 = 7; + a22 = 1; + return -1; + } else if((((a12==1)&&((a3==1)&&((((!(a14==1)&&((a3==1)&&(a21==11)))&&(a17==2))&&!(a27==1))&&(a16==10))))&&((a9==9)&&(((a28==1)&&(((a23==1)&&((!(a20==1)&&(input==3))&&(a1==13)))&&(a19==3)))&&(a5==6))))){ + a16 = 7; + a9 = 11; + a8 = 1; + a11 = 0; + a20 = 1; + a6 = 0; + a1 = 14; + a21 = 10; + a19 = 1; + return 21; + } else if((((((a13==1)&&((a6==1)&&(((a17==2)&&(((((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&(input==1))&&(a1==13)))&&(a19==3))))&&(a16==10))&&(a20==1))&&((!(a18==1)&&((((a21==12)&&(a11==1))&&!(a26==1))||(a26==1)))&&!(a7==1)))){ + a1 = 12; + a7 = 0; + a11 = 1; + a28 = 1; + a19 = 4; + a9 = 10; + a5 = 6; + a16 = 8; + return 25; + } else if(((!(a24==1)&&((a21==10)&&(!(a20==1)&&((input==4)&&(a17==2)))))&&((((a0==1)||((a28==1)&&((((a28==1)&&((((a12==1)&&(a5==5))&&(a9==9))&&(a19==5)))&&(a1==14))&&(a16==10))))||(a7==1))&&!(a8==1)))){ + a21 = 12; + a1 = 12; + a24 = 1; + a12 = 0; + a9 = 10; + a2 = 0; + a16 = 9; + a19 = 2; + a5 = 6; + return 22; + } else if(((!(a23==1)||(((a19==3)&&(!(a23==1)||((a8==1)||(!(a27==1)&&(a6==1)))))&&(a17==2)))&&((a28==1)&&((!(a20==1)&&((((a16==10)&&(((input==1)&&((a5==5)||(a5==6)))&&(a9==10)))&&(a11==1))&&(a21==10)))&&(a1==14))))){ + if((a0==1)){ + a9 = 11; + a19 = 1; + a1 = 13; + a5 = 5; + a16 = 7; + a27 = 1; + a20 = 1; + a7 = 1; + a10 = 1; + }else{ + a9 = 11; + a12 = 0; + a5 = 5; + a16 = 7; + a6 = 0; + a19 = 4; + a1 = 12; + a21 = 12; + a3 = 0; + } + return 21; + } else if(((((((a16==10)&&(((((input==5)&&(a17==2))&&!(a8==1))&&!(a20==1))&&(a11==1)))&&(a21==12))&&(a5==5))&&(a1==14))&&((a19==5)&&(((a11==1)&&(((a9==10)&&(!(a3==1)||(a12==1)))||!(a23==1)))&&!(a7==1))))){ + a26 = 1; + a19 = 2; + a1 = 12; + a20 = 1; + a18 = 1; + a5 = 4; + a21 = 10; + a16 = 7; + a14 = 1; + return 26; + } else if((((a13==1)&&(((a1==12)&&(((a19==1)&&((a16==10)&&((a17==2)&&((a28==1)&&(a6==1)))))&&(a28==1)))&&(a21==11)))&&((((((input==4)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(a6==1))&&!(a20==1))&&!(a4==1))&&(a13==1)))){ + a9 = 7; + a16 = 7; + a10 = 0; + a1 = 13; + a5 = 5; + a0 = 1; + a3 = 0; + a20 = 1; + a21 = 10; + return -1; + } else if((((a16==7)&&((a17==2)&&(((!(a18==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&(a2==1)))&&(a20==1))&&(a19==5))))&&((a21==10)&&(((((a9==10)&&((a27==1)||((a12==1)&&(a12==1))))&&(a1==13))||!(a13==1))&&(a23==1))))){ + a27 = 0; + a5 = 4; + a9 = 7; + a1 = 12; + a0 = 0; + a19 = 1; + return -1; + } else if((((((((((a20==1)&&((input==4)&&((a5==6)||((a5==4)||(a5==5)))))&&(a19==5))&&(a17==2))&&(a9==11))&&!(a27==1))&&(a3==1))&&!(a0==1))&&((a18==1)||((a3==1)&&((a21==12)&&(((!(a27==1)&&(a6==1))&&(a16==9))&&(a1==12))))))){ + a28 = 1; + a21 = 10; + a18 = 0; + a16 = 7; + a19 = 1; + a5 = 4; + a27 = 0; + a9 = 7; + return -1; + } else if((((a17==2)&&(((a6==1)&&((a2==1)&&((a5==6)&&((a28==1)&&((input==3)&&(a21==11))))))&&(a9==8)))&&((a1==12)&&(((a16==7)&&(!(a6==1)||((((a11==1)||!(a23==1))&&(a19==4))&&(a3==1))))&&(a20==1))))){ + a5 = 4; + a23 = 1; + a19 = 1; + a9 = 7; + a13 = 1; + a11 = 1; + a21 = 10; + return -1; + } else if(((((a17==2)&&(((a5==6)&&(!(a20==1)&&((a9==10)&&(!(a2==1)||(((a3==1)&&(a21==11))||(a4==1))))))&&(a19==2)))&&(a11==1))&&(!(a24==1)&&((a3==1)&&(((a2==1)&&((a1==14)&&(input==1)))&&(a16==10)))))){ + a20 = 1; + a21 = 10; + a19 = 1; + a16 = 7; + a18 = 1; + a13 = 0; + a9 = 9; + a11 = 0; + return 21; + } else if(((((a1==12)&&((a6==1)&&((a16==8)&&(!(a8==1)&&((((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(input==5))))))&&(a20==1))&&(((a17==2)&&((a2==1)&&(!(a23==1)||((!(a23==1)||((a23==1)&&(a23==1)))&&(a19==3)))))&&(a21==10)))){ + a9 = 7; + a19 = 1; + a16 = 7; + a5 = 4; + a6 = 1; + a13 = 1; + return -1; + } else if((((((a17==2)&&((((((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&!(a20==1))&&!(a26==1))&&!(a27==1))&&(a19==3)))&&(a16==9))&&(a2==1))&&(((a21==10)&&((a9==7)&&((((a13==1)&&!(a26==1))&&(a1==12))||!(a6==1))))&&(a11==1)))){ + if((a0==1)){ + a19 = 1; + a22 = 0; + a21 = 12; + a1 = 14; + a5 = 6; + a16 = 8; + a26 = 1; + a9 = 11; + a13 = 0; + }else{ + a19 = 2; + a5 = 4; + a20 = 1; + a16 = 7; + a29 = 1; + a9 = 8; + a4 = 1; + a25 = 1; + } + return 25; + } else if(((((a12==1)&&(!(a20==1)&&((((a16==9)&&((a23==1)&&((a28==1)&&((a9==9)&&(input==3)))))&&(a19==3))&&(a21==10))))&&(a1==13))&&(((a17==2)&&((!(a11==1)||((a5==5)&&(a12==1)))||!(a3==1)))&&!(a0==1)))){ + if((a23==1)){ + a20 = 1; + a27 = 1; + a5 = 4; + a16 = 8; + a9 = 11; + a10 = 1; + a22 = 0; + a19 = 5; + a1 = 14; + }else{ + a6 = 0; + a16 = 7; + a20 = 1; + a5 = 6; + a4 = 1; + a9 = 11; + a7 = 1; + a19 = 1; + } + return 21; + } else if((((((a1==14)&&((a21==11)&&((a17==2)&&((input==5)&&(a16==7)))))&&(a28==1))&&(a5==6))&&((a9==11)&&(((((!(a28==1)||(!(a6==1)||(!(a7==1)&&(a13==1))))&&!(a24==1))&&!(a20==1))||!(a13==1))&&(a19==2))))){ + a20 = 1; + a19 = 1; + a12 = 1; + a1 = 12; + a9 = 7; + a13 = 1; + a24 = 0; + a5 = 4; + a21 = 10; + return -1; + } else if(((((a16==11)&&((a17==2)&&((a11==1)&&((a21==12)&&(((a13==1)&&(a20==1))&&!(a4==1))))))&&(a12==1))&&((a2==1)&&(((((a19==2)&&(((((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4)))&&(input==6)))&&(a3==1))&&(a1==13))&&(a28==1))))){ + a1 = 12; + a19 = 1; + a16 = 7; + a5 = 4; + a2 = 1; + a8 = 0; + a26 = 0; + a21 = 10; + a9 = 7; + return -1; + } else if((((a20==1)&&(!(a27==1)&&(((a12==1)&&(!(a4==1)&&((a17==2)&&((a19==3)&&(((a21==10)&&((((a5==5)||(a5==6))&&(input==3))&&(a1==13)))&&(a16==8))))))&&(a2==1))))&&((a8==1)||((a9==10)&&(!(a11==1)||(a2==1)))))){ + a19 = 1; + a1 = 12; + a5 = 4; + a9 = 7; + a16 = 7; + a7 = 0; + a23 = 1; + return -1; + } else if((((a18==1)||((!(a14==1)&&(((a19==4)&&(!(a20==1)&&((a16==7)&&(((a11==1)&&(a28==1))&&(a1==13)))))||!(a3==1)))||!(a28==1)))&&(((((input==5)&&((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4))))&&(a21==12))&&(a11==1))&&(a17==2)))){ + a16 = 8; + a19 = 1; + a20 = 1; + a28 = 1; + a1 = 14; + a5 = 6; + a9 = 8; + a6 = 1; + a14 = 0; + return 21; + } else if(((((((a16==9)&&(a12==1))&&(a21==12))&&(a19==5))&&(a28==1))&&(((((((a1==14)&&((((((a5==4)||(a5==5))&&(input==4))&&(a9==8))&&!(a7==1))&&(a6==1)))&&!(a20==1))&&(a17==2))&&!(a8==1))&&!(a26==1))&&!(a14==1)))){ + a5 = 5; + a27 = 1; + a18 = 1; + a16 = 8; + a14 = 1; + a19 = 1; + return 25; + } else if(((((a9==7)&&(((((((a11==1)&&(((a5==6)&&(input==5))&&(a11==1)))&&(a17==2))&&!(a0==1))&&!(a0==1))&&!(a18==1))&&(a23==1)))&&(a19==3))&&((a20==1)&&((a21==11)&&(((a16==7)&&(a13==1))&&(a1==12)))))){ + a28 = 1; + a24 = 0; + a5 = 5; + a21 = 10; + a9 = 9; + a16 = 8; + a7 = 0; + a19 = 4; + a1 = 14; + return 25; + } return calculate_output27(input); + } + + int calculate_output27(int input) { + if(((!(a14==1)&&(((((((a5==4)||(a5==5))&&(input==3))&&!(a0==1))&&(a28==1))&&!(a14==1))&&!(a18==1)))&&(((a1==14)&&((a9==9)&&((a20==1)&&((a16==11)&&((a21==10)&&(((a28==1)&&(a17==2))&&(a19==1)))))))||!(a13==1)))){ + a8 = 0; + a26 = 0; + a5 = 4; + a9 = 7; + a1 = 12; + a4 = 0; + a16 = 7; + return -1; + } else if((((a8==1)||(!(a23==1)||((((!(a27==1)&&(((a17==2)&&(!(a20==1)&&((a12==1)&&(a21==12))))&&(a1==13)))&&(a19==1))||!(a11==1))&&(a6==1))))&&((a6==1)&&(((a16==10)&&((a5==6)&&(input==1)))&&(a9==7))))){ + a10 = 1; + a21 = 10; + a15 = 0; + a24 = 1; + a19 = 2; + a5 = 4; + a1 = 12; + a16 = 7; + a20 = 1; + return 26; + } else if(((!(a13==1)||((a19==5)&&((a3==1)&&((a16==9)&&((a17==2)&&((a3==1)||(a24==1)))))))&&(!(a20==1)&&((a3==1)&&(((a1==13)&&((((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==3))&&(a3==1))&&!(a0==1)))&&(a21==10)))))){ + if((a24==1)){ + a5 = 5; + a19 = 2; + a26 = 1; + a1 = 12; + a9 = 7; + a20 = 1; + a18 = 1; + a16 = 7; + a22 = 1; + }else{ + a19 = 1; + a5 = 4; + a16 = 7; + a2 = 0; + a9 = 9; + a4 = 1; + a27 = 1; + a20 = 1; + a1 = 14; + } + return -1; + } else if((((a16==11)&&((a20==1)&&((((((!(a26==1)&&((input==4)&&((a5==4)||(a5==5))))&&!(a27==1))&&(a17==2))&&(a13==1))&&(a11==1))&&(a21==10))))&&((a19==4)&&(((a24==1)||((a27==1)||((a9==11)&&(a11==1))))&&(a1==12))))){ + a5 = 4; + a9 = 7; + a19 = 1; + a24 = 0; + a16 = 7; + a23 = 1; + a6 = 1; + return -1; + } else if((((((((a5==5)||(a5==6))&&(input==6))&&!(a7==1))&&!(a18==1))&&(a16==10))&&((a17==2)&&((a19==1)&&((a21==10)&&((a1==12)&&((a9==8)&&((a3==1)&&((a2==1)&&((a12==1)&&(((a28==1)&&(a3==1))&&!(a20==1)))))))))))){ + a20 = 1; + a29 = 1; + a9 = 9; + a27 = 1; + a11 = 0; + a1 = 13; + a16 = 7; + a5 = 6; + return -1; + } else if((((a1==12)&&((((a21==11)&&((a7==1)||((((((a23==1)&&(a16==11))&&!(a26==1))||!(a3==1))||(a24==1))||!(a11==1))))&&(a20==1))&&(a17==2)))&&((a19==4)&&(((((a5==5)||(a5==6))&&(input==3))&&(a6==1))&&(a9==10))))){ + a19 = 1; + a23 = 1; + a9 = 7; + a21 = 10; + a14 = 0; + a16 = 7; + a5 = 4; + a18 = 0; + return -1; + } else if((((a6==1)&&((a1==14)&&((((a20==1)&&((((a5==5)||(a5==6))&&(input==4))&&(a21==11)))&&!(a8==1))&&(a19==1))))&&(((!(a7==1)&&(((a13==1)&&(((a28==1)&&!(a4==1))||(a27==1)))&&(a17==2)))&&(a9==10))&&(a16==8)))){ + a5 = 4; + a21 = 10; + a16 = 7; + a3 = 1; + a4 = 0; + a1 = 12; + a9 = 7; + return -1; + } else if((((!(a4==1)&&((a11==1)&&((!(a24==1)&&(((a19==4)&&(a12==1))&&(a5==5)))&&(a9==7))))&&(a16==10))&&(((a17==2)&&(!(a14==1)&&(!(a18==1)&&((a21==12)&&((a1==12)&&(!(a20==1)&&(input==3)))))))&&(a3==1)))){ + a25 = 0; + a10 = 1; + a16 = 7; + a19 = 1; + a21 = 10; + a20 = 1; + a23 = 0; + a5 = 6; + a9 = 8; + return 25; + } else if(((((a2==1)&&(((a17==2)&&(((a23==1)&&((a6==1)&&((input==1)&&(a16==11))))&&(a23==1)))&&(a11==1)))&&(a23==1))&&(((a5==6)&&((a20==1)&&((a9==8)&&((a1==12)&&((a19==1)&&(a3==1))))))&&(a21==12)))){ + a5 = 4; + a18 = 0; + a21 = 10; + a2 = 1; + a9 = 7; + a14 = 0; + a16 = 7; + return -1; + } else if((((((a16==10)&&((((a24==1)||((a8==1)||((a2==1)&&(a21==12))))&&!(a7==1))||(a14==1)))&&(a19==3))&&(a1==12))&&((((!(a0==1)&&((input==6)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))))&&!(a20==1))&&(a23==1))&&(a17==2)))){ + if((a15==1)){ + a20 = 1; + a1 = 14; + a5 = 4; + a10 = 0; + a2 = 0; + a19 = 1; + a16 = 7; + a12 = 0; + a9 = 8; + a21 = 10; + }else{ + a9 = 8; + a16 = 7; + a21 = 10; + a11 = 0; + a20 = 1; + a10 = 1; + a19 = 1; + a5 = 4; + a22 = 0; + } + return -1; + } else if((((((a8==1)&&(((a9==11)&&(a11==1))&&(a20==1)))&&!(a28==1))&&(a21==11))&&((a1==12)&&(((((a26==1)&&(((a8==1)&&(((input==1)&&((a5==5)||(a5==6)))&&(a26==1)))&&!(a23==1)))&&(a17==2))&&(a19==5))&&(a16==9))))){ + a26 = 1; + a16 = 11; + a6 = 0; + a5 = 5; + a9 = 7; + a19 = 4; + a10 = 1; + return -1; + } else if((((a2==1)&&(!(a20==1)&&((a19==1)&&((a21==10)&&((a4==1)||(((a6==1)&&((a16==11)&&(a12==1)))||(a0==1)))))))&&((a6==1)&&((a6==1)&&((((input==1)&&((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11))))&&(a17==2))&&(a1==14)))))){ + a7 = 1; + a9 = 8; + a16 = 8; + a1 = 12; + a5 = 5; + a29 = 0; + a21 = 12; + a19 = 5; + a11 = 0; + return 23; + } else if((((a21==11)&&(!(a4==1)&&(((a11==1)&&(((((a9==9)&&(((a5==5)||(a5==6))&&(input==3)))&&!(a18==1))&&(a1==14))&&!(a27==1)))&&(a16==11))))&&((((a19==4)&&((a27==1)||(!(a14==1)&&(a28==1))))&&(a17==2))&&(a20==1)))){ + a23 = 1; + a8 = 0; + a1 = 12; + a9 = 11; + a5 = 4; + a19 = 5; + a16 = 9; + a13 = 1; + return 21; + } else if((((a1==12)&&(!(a11==1)||((a20==1)&&((a17==2)&&((((a9==7)&&(!(a7==1)&&(!(a27==1)&&(a6==1))))&&!(a24==1))&&(a21==10))))))&&((a16==11)&&(((((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a13==1))&&!(a27==1))&&(a19==1))))){ + a24 = 0; + a4 = 0; + a5 = 4; + a16 = 7; + return -1; + } else if((((a20==1)&&((a6==1)&&((a12==1)&&(!(a0==1)&&((((((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a2==1))&&(a9==11))&&(a17==2))&&!(a7==1))))))&&((a1==13)&&((((a16==8)&&((a28==1)||!(a3==1)))&&(a21==10))&&(a19==2))))){ + a7 = 0; + a1 = 14; + a5 = 6; + a2 = 1; + a19 = 1; + a9 = 8; + a21 = 12; + a26 = 0; + return 21; + } else if(((((a8==1)&&((((a21==10)&&(input==6))&&(a16==7))&&!(a2==1)))&&(a19==4))&&((a5==6)&&(((a9==7)&&((((((a0==1)&&((a4==1)&&(a11==1)))&&!(a3==1))&&(a17==2))&&(a1==13))&&(a20==1)))&&!(a12==1))))){ + a19 = 1; + a9 = 10; + a1 = 12; + a29 = 0; + a6 = 0; + a25 = 0; + return 21; + } else if(((!(a7==1)&&(!(a26==1)&&((a16==9)&&((a6==1)&&(((a18==1)||((((a9==11)&&(a13==1))&&(a17==2))&&(a1==13)))&&(a11==1))))))&&(((!(a27==1)&&((a19==4)&&((input==1)&&((a5==4)||(a5==5)))))&&!(a20==1))&&(a21==11)))){ + if((a24==1)){ + a19 = 3; + a9 = 9; + a21 = 10; + a28 = 0; + a24 = 1; + a20 = 1; + a1 = 14; + a5 = 4; + }else{ + a16 = 7; + a9 = 10; + a19 = 1; + a26 = 1; + a21 = 10; + a15 = 1; + a10 = 0; + a20 = 1; + a1 = 12; + a5 = 4; + } + return -1; + } else if((((a3==1)&&((((a16==9)&&(((((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(input==3))&&(a1==13)))&&(a19==2))&&!(a8==1)))&&(((((a17==2)&&((a21==11)&&(((a2==1)&&(a23==1))&&!(a24==1))))&&(a3==1))&&!(a20==1))&&!(a4==1)))){ + a19 = 1; + a21 = 10; + a9 = 7; + a16 = 7; + a13 = 0; + a2 = 0; + a5 = 5; + a7 = 1; + a20 = 1; + return 25; + } else if((((a1==13)&&(!(a20==1)&&(((!(a4==1)&&((((a8==1)||((a28==1)&&(a16==10)))&&(a21==12))&&(a2==1)))||!(a3==1))&&(a9==10))))&&((a23==1)&&(((a28==1)&&(((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&(a19==4)))&&(a17==2))))){ + if((a6==1)){ + a20 = 1; + a5 = 4; + a9 = 7; + a1 = 14; + a16 = 7; + a19 = 1; + a4 = 1; + a26 = 1; + a21 = 10; + a12 = 0; + }else{ + a19 = 1; + a1 = 14; + a3 = 0; + a5 = 4; + a16 = 7; + a8 = 1; + a20 = 1; + a29 = 1; + a21 = 10; + } + return -1; + } else if((((((a7==1)||(!(a20==1)&&((a3==1)||(a7==1))))&&(a17==2))||!(a6==1))&&((a19==4)&&((((a1==14)&&((a16==8)&&((!(a18==1)&&((input==3)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))))&&(a12==1))))&&(a21==12))&&!(a18==1))))){ + a5 = 4; + a9 = 7; + a21 = 10; + a19 = 1; + a16 = 7; + a26 = 1; + a13 = 0; + a20 = 1; + return 25; + } else if(((!(a4==1)&&((((a20==1)&&(((input==1)&&((a5==5)||(a5==6)))&&(a3==1)))&&!(a8==1))&&!(a14==1)))&&((a1==13)&&((a16==9)&&(((((a17==2)&&((a13==1)&&(!(a2==1)||(a3==1))))&&(a21==12))&&(a19==3))&&(a9==11)))))){ + a16 = 7; + a11 = 1; + a13 = 1; + a21 = 10; + a1 = 12; + a5 = 4; + a24 = 0; + a9 = 7; + a19 = 1; + return -1; + } else if(((((a1==14)&&(((((a11==1)&&(((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==4))&&!(a24==1)))&&!(a18==1))&&!(a14==1))&&(a19==5)))&&(a20==1))&&((a17==2)&&(((a21==12)&&(((a12==1)||!(a28==1))&&!(a18==1)))&&(a16==11))))){ + a21 = 10; + a24 = 0; + a14 = 0; + a3 = 1; + a16 = 7; + a19 = 1; + a9 = 7; + a5 = 4; + a1 = 12; + return -1; + } else if(((((a2==1)&&(!(a18==1)&&(((input==1)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5))))&&(a21==11))))&&(a17==2))&&((a8==1)||((a16==8)&&((a19==5)&&(((a20==1)&&((a14==1)||(!(a18==1)&&((a1==14)&&(a23==1)))))||(a14==1))))))){ + if((a27==1)){ + a9 = 7; + a1 = 13; + a23 = 1; + a5 = 4; + a21 = 10; + a14 = 0; + a20 = 0; + a24 = 0; + }else{ + a26 = 0; + a9 = 10; + a16 = 10; + a11 = 1; + a19 = 3; + a5 = 6; + } + return 21; + } else if((((a1==14)&&((a7==1)&&((((a20==1)&&((a11==1)&&!(a3==1)))&&(a0==1))&&(a16==9))))&&((a17==2)&&((!(a13==1)&&(((a21==10)&&(!(a23==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a9==7))))&&(a8==1)))&&(a19==2))))){ + a22 = 0; + a9 = 11; + a0 = 1; + a19 = 5; + a21 = 11; + a29 = 0; + a5 = 5; + return -1; + } else if(((((((((a23==1)&&(a2==1))||!(a2==1))||(a8==1))&&(a21==10))&&(a16==9))||!(a2==1))&&((a2==1)&&(((a1==12)&&(((a17==2)&&((a13==1)&&((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))&&(input==1))))&&(a20==1)))&&(a19==2))))){ + a13 = 1; + a16 = 7; + a19 = 1; + a9 = 7; + a0 = 0; + a2 = 1; + a5 = 4; + return -1; + } else if((((a19==1)&&((a17==2)&&((a1==12)&&((((a23==1)&&((a28==1)&&((a21==12)&&(((a5==5)||(a5==6))&&(input==4)))))&&(a23==1))&&(a6==1)))))&&(((!(a2==1)||((!(a0==1)&&(a6==1))&&(a9==11)))&&(a20==1))&&(a16==8)))){ + a24 = 0; + a21 = 10; + a7 = 0; + a9 = 7; + a12 = 1; + a16 = 7; + a5 = 4; + return -1; + } else if((((!(a27==1)&&((a16==11)&&((a23==1)&&(((((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(input==3))&&!(a8==1)))))&&(a2==1))&&((((a17==2)&&((a19==2)&&(((a20==1)&&((a13==1)&&(a12==1)))&&(a1==12))))||(a8==1))&&(a21==11)))){ + a13 = 1; + a9 = 7; + a5 = 4; + a16 = 7; + a21 = 10; + a27 = 0; + a26 = 0; + a19 = 1; + return -1; + } else if((((((a21==10)&&((a16==10)&&(((a17==2)&&(!(a20==1)&&((a2==1)&&(a1==14))))&&(a19==1))))&&!(a18==1))||(a18==1))&&((!(a26==1)&&((((((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10))))&&(input==5))&&!(a4==1))&&(a2==1)))&&!(a8==1)))){ + a9 = 11; + a11 = 0; + a28 = 0; + a20 = 1; + a1 = 12; + a5 = 4; + a10 = 1; + a16 = 7; + return 25; + } else if((((((a17==2)&&((a26==1)||((a5==5)&&((a8==1)||((a21==12)&&((a13==1)&&(a20==1)))))))&&(a19==5))&&(a1==13))&&((a16==11)&&((a12==1)&&(!(a14==1)&&((a2==1)&&(((input==3)&&(a9==8))&&!(a0==1)))))))){ + a21 = 10; + a5 = 4; + a19 = 1; + a11 = 1; + a1 = 12; + a9 = 7; + a27 = 0; + a18 = 0; + a16 = 7; + return -1; + } else if(((((((a21==12)&&((a24==1)||((!(a28==1)||(a3==1))||!(a11==1))))&&(a16==7))&&(a17==2))&&(a9==7))&&((a1==14)&&(!(a20==1)&&((a19==5)&&(!(a26==1)&&((a6==1)&&((a6==1)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6))))))))))){ + a1 = 13; + a11 = 1; + a21 = 10; + a19 = 4; + a16 = 8; + a27 = 0; + a23 = 1; + a9 = 10; + a5 = 4; + return 22; + } else if((((a12==1)&&((a19==4)&&((!(a18==1)&&((a1==14)&&((((a2==1)&&(a12==1))||(a18==1))||(a18==1))))&&(a21==11))))&&(!(a20==1)&&((!(a24==1)&&((a16==10)&&((input==5)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9))))))&&(a17==2))))){ + a16 = 7; + a3 = 0; + a20 = 1; + a7 = 1; + a19 = 1; + a21 = 10; + a5 = 6; + a11 = 0; + a9 = 7; + a1 = 12; + return 25; + } else if((((a21==10)&&((a16==10)&&((((((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))&&(input==6))&&(a2==1))&&(a3==1))&&(a2==1))))&&(((!(a13==1)||(((a1==14)&&(((a4==1)||(a12==1))&&(a19==5)))||(a26==1)))&&(a20==1))&&(a17==2)))){ + a5 = 4; + a23 = 1; + a4 = 0; + a9 = 7; + a18 = 0; + a1 = 12; + a19 = 1; + a16 = 7; + return -1; + } else if(((!(a20==1)&&((!(a0==1)&&(!(a14==1)&&(!(a0==1)&&((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==6)))))&&(a1==13)))&&((a16==7)&&((a21==11)&&(((a19==2)&&(((a7==1)||((a17==2)&&(a12==1)))&&!(a14==1)))||(a18==1)))))){ + a19 = 1; + a13 = 1; + a5 = 4; + a1 = 12; + a20 = 1; + a11 = 1; + a9 = 7; + a21 = 10; + return -1; + } else if((((!(a8==1)&&(!(a26==1)&&((a19==3)&&((a1==13)&&((((a16==10)&&((input==1)&&(a9==10)))&&!(a4==1))&&(a2==1))))))&&!(a24==1))&&(((a17==2)&&((((a23==1)&&!(a20==1))&&(a21==10))&&(a5==5)))||!(a12==1)))){ + a16 = 7; + a3 = 0; + a19 = 1; + a9 = 11; + a15 = 1; + a22 = 1; + a5 = 6; + a20 = 1; + return -1; + } else if(((((((a26==1)||((a9==8)&&(!(a8==1)&&((a28==1)&&((a21==11)&&((a16==10)&&(a2==1)))))))&&!(a20==1))&&(a13==1))&&(a19==5))&&((((!(a26==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4)))&&(a17==2))&&(a13==1))&&(a1==14)))){ + if((a7==1)){ + a21 = 10; + a18 = 1; + a20 = 1; + a19 = 2; + a16 = 7; + a1 = 12; + a27 = 1; + a5 = 5; + a9 = 7; + }else{ + a1 = 12; + a8 = 1; + a25 = 1; + a9 = 10; + a19 = 1; + a22 = 0; + a5 = 4; + a20 = 1; + a16 = 7; + a21 = 10; + } + return -1; + } else if(((!(a14==1)&&((a1==12)&&((a9==7)&&((a17==2)&&((a28==1)&&((a21==10)&&(((input==6)&&(a5==5))&&(a16==8))))))))&&((a20==1)&&((a3==1)&&((((!(a0==1)&&(a28==1))&&(a19==2))||(a7==1))||!(a23==1)))))){ + a16 = 7; + a12 = 1; + a8 = 0; + a19 = 1; + a5 = 4; + a0 = 0; + return -1; + } else if((((a9==7)&&((a7==1)||(((((a0==1)||((!(a13==1)||(a3==1))&&(a21==10)))&&(a19==5))||(a26==1))||(a14==1))))&&(((a12==1)&&(((((input==4)&&(a17==2))&&(a1==13))&&(a16==9))&&(a5==4)))&&(a20==1)))){ + a21 = 12; + a2 = 1; + a16 = 10; + a5 = 5; + a24 = 0; + a11 = 1; + return 25; + } else if((((a9==11)&&((a4==1)||(a23==1)))&&(((((a23==1)&&((((a17==2)&&((((a6==1)&&((a1==14)&&((input==6)&&(a21==11))))&&(a28==1))&&!(a14==1)))&&!(a27==1))&&(a16==7)))&&(a5==5))&&!(a20==1))&&(a19==1)))){ + a18 = 0; + a9 = 7; + a20 = 1; + a28 = 1; + a5 = 4; + a1 = 12; + a0 = 0; + a21 = 10; + return -1; + } else if(((((a6==1)&&(!(a18==1)&&((input==5)&&((a5==4)||(a5==5)))))&&(a28==1))&&((((!(a20==1)&&(((a16==10)&&((a2==1)&&((((a23==1)&&(a19==2))&&!(a18==1))&&(a17==2))))||(a27==1)))&&(a9==10))&&(a21==10))&&(a1==14)))){ + if((a11==1)){ + a3 = 0; + a8 = 1; + a20 = 1; + a4 = 1; + a1 = 12; + a5 = 6; + a16 = 7; + a9 = 9; + }else{ + a0 = 1; + a18 = 1; + a9 = 7; + a19 = 1; + a5 = 5; + a16 = 7; + a26 = 1; + a20 = 1; + } + return -1; + } else if(((!(a4==1)&&(((a12==1)&&(((((((a5==4)||(a5==5))&&(input==3))&&(a17==2))&&(a3==1))&&(a21==12))&&(a19==1)))&&(a9==11)))&&((a1==12)&&(!(a20==1)&&(((((a2==1)&&(a16==9))&&!(a18==1))&&!(a8==1))||!(a12==1)))))){ + if((a19==3)){ + a27 = 1; + a29 = 1; + a20 = 1; + a16 = 8; + a25 = 1; + a1 = 14; + a19 = 5; + a5 = 5; + a21 = 11; + a9 = 8; + }else{ + a1 = 14; + a29 = 0; + a21 = 10; + a20 = 1; + a16 = 7; + a5 = 6; + a6 = 0; + } + return -1; + } else if((((a17==2)&&(((a16==7)&&((a26==1)||(((a28==1)&&(a13==1))&&(a5==5))))&&(a1==12)))&&((a20==1)&&((((a6==1)&&((a19==4)&&((((input==5)&&(a21==10))&&!(a0==1))&&!(a14==1))))&&(a6==1))&&(a9==8))))){ + a27 = 0; + a19 = 3; + a24 = 0; + a21 = 11; + a1 = 13; + a9 = 11; + a28 = 1; + return 23; + } else if(((((a17==2)&&((a16==9)&&((((a9==8)&&(((a11==1)&&(a13==1))||!(a23==1)))&&(a11==1))||(a4==1))))&&(a21==11))&&((!(a0==1)&&((((a6==1)&&((input==1)&&(a19==5)))&&(a5==4))&&(a20==1)))&&(a1==14)))){ + a21 = 10; + a9 = 7; + a11 = 1; + a16 = 7; + a26 = 0; + a1 = 12; + a3 = 1; + a19 = 1; + return -1; + } else if((((((!(a7==1)&&((a9==7)&&(((a5==5)||(a5==6))&&(input==1))))&&(a19==4))&&(a2==1))&&!(a7==1))&&(!(a6==1)||((!(a6==1)||(((!(a20==1)&&(((a13==1)&&(a16==7))&&!(a7==1)))&&(a21==10))&&(a1==12)))&&(a17==2))))){ + a20 = 1; + a13 = 1; + a19 = 1; + a5 = 4; + a24 = 0; + return -1; + } else if((((a13==1)&&((a21==11)&&(!(a18==1)&&((((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))&&(input==6))&&(a16==10)))))&&(((a20==1)&&((((!(a0==1)&&(((a19==5)&&(a23==1))||(a7==1)))&&(a17==2))&&(a3==1))&&!(a4==1)))&&(a1==12)))){ + a21 = 10; + a28 = 1; + a16 = 7; + a19 = 2; + a1 = 13; + a9 = 9; + a12 = 1; + a13 = 1; + a5 = 4; + return 25; + } else if((((a21==12)&&((a16==9)&&((a1==13)&&((((!(a7==1)&&(a2==1))||(a0==1))&&(a17==2))||(a0==1)))))&&(!(a20==1)&&(((!(a4==1)&&((!(a26==1)&&((a5==4)&&(input==5)))&&(a11==1)))&&(a19==5))&&(a9==10))))){ + a5 = 6; + a26 = 1; + a25 = 1; + a16 = 7; + a29 = 1; + a20 = 1; + a19 = 1; + a9 = 9; + a21 = 10; + return 25; + } else if((((a16==8)&&(((((a27==1)||((a13==1)&&((a21==12)&&(a28==1))))&&(a20==1))&&(a9==9))&&(a17==2)))&&((a19==1)&&((((!(a18==1)&&((((a5==5)||(a5==6))&&(input==3))&&(a13==1)))&&(a12==1))&&(a2==1))&&(a1==12))))){ + a3 = 1; + a23 = 1; + a5 = 6; + a18 = 0; + return 26; + } else if(((!(a26==1)&&(!(a0==1)&&((((a20==1)&&((a21==12)&&(a6==1)))&&(a19==4))||!(a11==1))))&&((((a17==2)&&((a28==1)&&((a16==9)&&((input==6)&&((((a5==6)&&(a1==13))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==14))))))))&&(a2==1))&&!(a0==1)))){ + a4 = 0; + a7 = 0; + a19 = 2; + a1 = 12; + a5 = 5; + a9 = 7; + return 21; + } else if(((!(a20==1)&&((a28==1)&&(a9==11)))&&((a28==1)&&(((((a2==1)&&((a1==12)&&((a28==1)&&((a6==1)&&((a21==11)&&((((input==3)&&((a5==4)||(a5==5)))&&(a19==1))&&(a17==2)))))))&&!(a4==1))&&!(a4==1))&&(a16==9))))){ + a5 = 5; + a26 = 1; + a9 = 9; + a10 = 1; + a16 = 10; + a1 = 14; + a21 = 12; + a6 = 0; + a20 = 1; + return -1; + } else if(((!(a7==1)&&((a28==1)&&(!(a8==1)&&(((((input==1)&&((a5==5)||(a5==6)))&&(a9==8))&&(a21==10))&&(a19==3)))))&&(((a16==10)&&(!(a0==1)&&((!(a3==1)||(((a20==1)&&(a2==1))||!(a13==1)))&&(a1==14))))&&(a17==2)))){ + a16 = 8; + a1 = 12; + a11 = 1; + a19 = 2; + a5 = 4; + a21 = 11; + a9 = 9; + a7 = 0; + return 25; + } else if(((((((a9==9)&&(((a11==1)&&((!(a27==1)&&((input==5)&&(a17==2)))&&(a3==1)))&&(a6==1)))&&(a19==3))&&(a5==5))&&(a21==10))&&((a1==13)&&(!(a20==1)&&((a16==9)&&(!(a12==1)||((a23==1)||(a4==1)))))))){ + if((a3==1)){ + a16 = 10; + a20 = 1; + a9 = 11; + a3 = 0; + a11 = 0; + a5 = 4; + a2 = 0; + a19 = 2; + }else{ + a9 = 10; + a20 = 1; + a15 = 1; + a27 = 1; + a5 = 6; + a25 = 1; + a21 = 11; + a1 = 12; + } + return -1; + } else if(((((a1==13)&&(((a17==2)&&(((a6==1)&&(((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))&&(input==6)))&&(a21==12)))&&!(a4==1)))&&(a6==1))&&((((a0==1)||((((a16==8)&&(a11==1))&&(a19==2))&&!(a20==1)))||!(a23==1))||(a4==1)))){ + a20 = 1; + a1 = 12; + a27 = 1; + a16 = 7; + a9 = 7; + a28 = 0; + a0 = 1; + a19 = 1; + a5 = 6; + a21 = 10; + return -1; + } else if(((((a11==1)&&(((a17==2)&&((a1==14)&&(((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9)))&&(input==5))))&&(a20==1)))&&(a21==12))&&((a16==11)&&((a27==1)||((((a12==1)&&(!(a14==1)&&((a6==1)||(a24==1))))&&(a19==2))&&!(a18==1)))))){ + a6 = 1; + a24 = 0; + a4 = 0; + a19 = 4; + a5 = 4; + a9 = 8; + return 26; + } else if((((((a11==1)&&(((a16==10)&&((a20==1)&&(((((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&(a21==10))&&(a17==2))&&(a12==1))))&&(a19==3)))&&(a3==1))&&(a28==1))&&(((a9==7)&&(!(a4==1)&&((a1==12)&&(a13==1))))&&!(a26==1)))){ + a11 = 1; + a5 = 4; + a16 = 7; + a13 = 1; + a19 = 1; + a23 = 1; + return -1; + } else if((((((a11==1)||!(a13==1))&&(a21==12))||(a26==1))&&(!(a0==1)&&((a28==1)&&((!(a20==1)&&((a6==1)&&(((a19==3)&&((a1==14)&&(((((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6))))&&(input==3))&&!(a26==1))))&&(a17==2))))&&(a16==10)))))){ + a16 = 7; + a21 = 10; + a28 = 0; + a5 = 4; + a25 = 1; + a9 = 7; + a27 = 1; + a20 = 1; + a19 = 2; + a1 = 12; + return -1; + } else if((((a16==11)&&((((a20==1)&&((a19==3)&&((a3==1)&&((a6==1)&&((a3==1)||!(a2==1))))))&&(a1==13))&&(a21==10)))&&(((a11==1)&&(((a3==1)&&((input==6)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))&&!(a7==1)))&&(a17==2)))){ + a1 = 14; + a19 = 2; + a5 = 4; + a26 = 0; + a9 = 8; + a27 = 0; + a2 = 1; + a16 = 10; + return 21; + } else if((((a17==2)&&(!(a28==1)||(!(a0==1)&&((a16==9)&&((!(a11==1)||(a11==1))&&(a12==1))))))&&(!(a20==1)&&((((!(a4==1)&&((a19==3)&&((((a5==5)||(a5==6))&&(input==3))&&(a9==7))))&&(a1==13))&&(a23==1))&&(a21==11))))){ + a5 = 5; + a16 = 7; + a20 = 1; + a13 = 0; + a22 = 0; + a21 = 10; + a1 = 14; + a19 = 1; + a14 = 1; + return 22; + } else if(((!(a24==1)&&((a2==1)&&((a16==8)&&((a20==1)&&(((((a9==11)&&((a5==6)&&(a1==13)))||((a9==7)&&((a5==4)&&(a1==14))))||((a9==7)&&((a5==5)&&(a1==14))))&&(input==3))))))&&(((a24==1)||(!(a11==1)||(((a3==1)&&((a21==11)&&((a2==1)&&(a19==2))))&&(a17==2))))||(a27==1)))){ + a19 = 1; + a13 = 1; + a21 = 10; + a5 = 4; + a1 = 12; + a11 = 1; + a16 = 7; + a6 = 1; + a9 = 7; + return -1; + } else if(((!(a18==1)&&(!(a8==1)&&(!(a0==1)&&(!(a24==1)&&((((((a9==11)&&((a5==6)&&(a1==12)))||((a9==7)&&((a5==4)&&(a1==13))))||(((a1==13)&&(a5==5))&&(a9==7)))&&(input==5))&&(a17==2))))))&&(((a21==12)&&((!(a20==1)&&(((a13==1)&&(a19==5))&&(a16==10)))||!(a28==1)))&&!(a24==1)))){ + if((a1==14)){ + a12 = 0; + a21 = 11; + a24 = 1; + a16 = 9; + a6 = 0; + a1 = 14; + a9 = 8; + a20 = 1; + a5 = 4; + a19 = 1; + }else{ + a16 = 7; + a29 = 0; + a19 = 1; + a12 = 0; + a9 = 11; + a22 = 1; + a1 = 13; + a21 = 10; + a20 = 1; + a5 = 5; + } + return -1; + } else if(((((((((a6==1)&&(((a13==1)&&((a28==1)&&((a9==7)&&(input==6))))&&!(a8==1)))&&(a16==7))&&(a21==11))&&(a5==5))&&(a1==14))&&(a19==4))&&((!(a20==1)&&((!(a28==1)||(a2==1))&&(a23==1)))&&(a17==2)))){ + a1 = 12; + a27 = 0; + a13 = 1; + a5 = 4; + a21 = 10; + a19 = 1; + a20 = 1; + return -1; + } else if((((a1==12)&&(((a3==1)&&((!(a7==1)&&((a21==10)&&(input==3)))&&!(a27==1)))&&(a16==11)))&&((a17==2)&&(((((((a13==1)&&((a18==1)||(a3==1)))&&(a9==8))&&!(a0==1))&&(a19==1))&&(a5==5))&&(a20==1))))){ + a5 = 4; + a27 = 0; + a9 = 7; + a16 = 7; + a12 = 1; + return -1; + } else if((((((!(a26==1)&&(((!(a20==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a3==1)))&&!(a4==1))&&!(a4==1)))&&(a11==1))&&(a17==2))&&!(a0==1))&&(((a9==8)&&((a1==12)&&((a21==12)&&((a6==1)&&(a19==3)))))&&(a16==9)))){ + a5 = 5; + a13 = 0; + a10 = 0; + a16 = 11; + a19 = 2; + a9 = 11; + a25 = 1; + a1 = 14; + a21 = 10; + return 21; + } else if((((!(a20==1)&&((a13==1)&&(((a17==2)&&((((((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6))))&&(input==3))&&(a12==1))&&!(a18==1)))&&!(a27==1))))&&(a21==10))&&((a16==7)&&(((!(a24==1)&&((a13==1)&&(a19==2)))||!(a13==1))&&(a1==14))))){ + a11 = 1; + a9 = 7; + a28 = 1; + a5 = 4; + a23 = 1; + a19 = 1; + a20 = 1; + a1 = 12; + return -1; + } else if((((a19==5)&&((((a6==1)&&((!(a27==1)&&((a1==14)&&(input==1)))&&!(a14==1)))&&(a12==1))&&(a16==8)))&&(((((a9==7)&&((a5==5)&&((a18==1)||(!(a20==1)&&(a28==1)))))&&(a21==10))&&!(a26==1))&&(a17==2)))){ + a1 = 12; + a4 = 0; + a5 = 4; + a20 = 1; + a19 = 1; + a3 = 1; + a12 = 1; + a16 = 7; + return -1; + } else if(((((((((a13==1)&&(((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4)))&&(input==1)))&&(a19==5))&&(a2==1))&&(a23==1))&&!(a18==1))&&(a16==7))&&((a12==1)&&((a17==2)&&((!(a23==1)||(((a1==13)&&(a3==1))&&(a21==11)))&&!(a20==1)))))){ + a4 = 0; + a12 = 1; + a21 = 10; + a9 = 10; + a19 = 4; + a20 = 1; + a5 = 4; + a16 = 10; + a2 = 1; + a1 = 14; + return 22; + } else if(((((a1==12)&&((a21==10)&&((a20==1)&&((a11==1)&&((a24==1)||(!(a12==1)||(a13==1)))))))&&(a9==10))&&(!(a18==1)&&(((a16==7)&&((a17==2)&&((!(a26==1)&&(((a5==5)||(a5==6))&&(input==1)))&&(a19==3))))&&!(a0==1))))){ + a13 = 1; + a6 = 1; + a1 = 14; + a27 = 0; + a5 = 6; + a9 = 8; + a19 = 5; + return 22; + } else if((((a21==11)&&(((((((a16==9)&&(input==1))&&!(a24==1))&&(a23==1))&&(a12==1))&&(a5==5))&&!(a20==1)))&&((((!(a0==1)&&(((a19==1)&&((a17==2)&&(a28==1)))&&(a28==1)))&&(a9==7))&&(a1==13))||!(a13==1)))){ + a5 = 6; + a16 = 7; + a2 = 0; + a20 = 1; + a12 = 0; + a1 = 12; + a7 = 1; + a21 = 10; + return -1; + } else if((((((a21==10)&&(((a20==1)&&((a13==1)&&((a12==1)&&((a9==11)&&((input==3)&&((a5==4)||(a5==5)))))))&&(a19==5)))&&(a28==1))&&(a17==2))&&((a1==14)&&((a16==9)&&((!(a0==1)&&(!(a28==1)||(a28==1)))&&(a6==1)))))){ + a16 = 7; + a14 = 0; + a11 = 1; + a1 = 12; + a2 = 1; + a9 = 7; + a5 = 4; + a19 = 1; + return -1; + } else if((((a20==1)&&((!(a27==1)&&((((a17==2)&&((!(a27==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3)))&&(a9==8)))&&!(a8==1))&&(a21==11)))&&!(a27==1)))&&((((((a13==1)&&(a16==9))&&!(a26==1))&&(a1==12))&&!(a14==1))&&(a19==1)))){ + a28 = 1; + a16 = 8; + a9 = 9; + a21 = 10; + a5 = 5; + a1 = 13; + a11 = 1; + a19 = 5; + return 26; + } else if(((((a21==11)&&((a1==14)&&(!(a20==1)&&(((((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7))))&&(input==1))&&(a11==1)))))&&(a23==1))&&(!(a2==1)||((((a16==8)&&((a19==2)&&(((a12==1)&&(a17==2))&&(a23==1))))&&!(a0==1))||(a4==1))))){ + a16 = 7; + a9 = 7; + a19 = 1; + a21 = 10; + a20 = 1; + a24 = 0; + a5 = 4; + a13 = 1; + a1 = 12; + a7 = 0; + return -1; + } else if((((a21==12)&&(((a20==1)&&(((((((a5==4)||(a5==5))&&(input==6))&&(a2==1))&&!(a14==1))&&(a12==1))&&!(a0==1)))&&(a13==1)))&&(((((a1==14)&&((a17==2)&&((a12==1)&&(a16==9))))&&(a9==7))&&(a19==5))&&!(a26==1)))){ + a19 = 1; + a2 = 1; + a21 = 10; + a5 = 4; + a1 = 12; + a13 = 1; + a16 = 7; + return -1; + } else if((((((a12==1)&&(((a21==10)&&(!(a4==1)&&(((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))&&(input==1))))&&(a3==1)))&&(a19==5))&&(a16==9))&&(((a17==2)&&((a1==14)&&(((a4==1)||((a20==1)&&(a2==1)))&&(a12==1))))||!(a2==1)))){ + a12 = 1; + a19 = 2; + a9 = 10; + a5 = 4; + a6 = 1; + a24 = 0; + return 21; + } else if((((a5==4)&&((!(a7==1)&&(((a19==5)&&(input==5))&&(a17==2)))&&(a28==1)))&&((((((!(a20==1)&&((!(a12==1)||((a12==1)&&(a9==7)))&&(a21==12)))||!(a23==1))&&(a3==1))&&(a28==1))&&(a1==14))&&(a16==8)))){ + if((a13==1)){ + a22 = 0; + a20 = 1; + a29 = 0; + a16 = 7; + a19 = 1; + a21 = 10; + a3 = 0; + }else{ + a15 = 1; + a29 = 0; + a7 = 1; + a9 = 10; + a20 = 1; + a21 = 10; + a19 = 4; + a5 = 6; + a1 = 12; + } + return -1; + } else if((((a9==11)&&((a23==1)&&((!(a27==1)&&((a16==11)&&((input==6)&&((a5==6)||((a5==4)||(a5==5))))))&&(a6==1))))&&((((a26==1)||((a1==13)&&((((a17==2)&&((a13==1)||(a18==1)))&&(a20==1))&&(a19==3))))&&(a21==12))||(a26==1)))){ + a5 = 5; + a19 = 5; + a7 = 0; + a1 = 12; + a9 = 9; + a11 = 1; + return 23; + } else if(((!(a13==1)&&(((a19==5)&&((a24==1)&&((input==1)&&(a17==2))))&&(a27==1)))&&((a21==10)&&((a9==7)&&(((((a24==1)&&(((a5==5)&&((a28==1)&&(a18==1)))&&(a16==8)))&&!(a23==1))&&!(a20==1))&&(a1==14)))))){ + a9 = 11; + a28 = 0; + a8 = 1; + a2 = 0; + a20 = 1; + a19 = 1; + a16 = 7; + return 21; + } else if(((((a1==12)&&(((((a8==1)&&((a17==2)&&((input==5)&&(((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))))))&&!(a6==1))&&!(a20==1))&&(a19==3)))&&!(a12==1))&&(!(a28==1)&&(((a24==1)&&((a21==10)&&((a16==7)&&(a11==1))))&&!(a13==1))))){ + a1 = 14; + a16 = 10; + a9 = 9; + a20 = 1; + a5 = 5; + a29 = 0; + a15 = 0; + a21 = 12; + a2 = 0; + return -1; + } else if(((((a12==1)&&(a1==14))&&(a13==1))&&(((a16==9)&&((a21==11)&&((!(a24==1)&&(!(a20==1)&&(!(a14==1)&&(((((input==5)&&(((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))))&&!(a26==1))&&!(a8==1))&&(a19==4)))))&&!(a18==1))))&&(a17==2)))){ + a16 = 7; + a8 = 1; + a19 = 1; + a20 = 1; + a21 = 10; + a9 = 9; + a5 = 6; + a3 = 0; + a18 = 1; + a1 = 12; + return -1; + } else if((((a21==11)&&(((a28==1)&&(((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))&&(input==4)))&&(a16==7)))&&((!(a7==1)&&((((((a0==1)||(!(a4==1)&&((a13==1)&&(a17==2))))||!(a2==1))&&(a19==2))&&(a1==12))&&!(a0==1)))&&!(a20==1)))){ + a5 = 4; + a3 = 1; + a9 = 7; + a19 = 1; + a21 = 10; + a7 = 0; + a20 = 1; + a6 = 1; + return -1; + } else if(((((a16==7)&&(!(a26==1)&&((a17==2)&&((a23==1)&&((input==4)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))))))&&(a21==10))&&((((!(a13==1)||((!(a8==1)&&((a28==1)&&(a12==1)))||!(a28==1)))&&(a19==5))&&!(a20==1))&&(a1==12)))){ + a0 = 0; + a19 = 2; + a9 = 10; + a5 = 5; + a2 = 1; + a20 = 1; + return -1; + } else if((((a21==12)&&(((a1==12)&&((a9==9)&&((!(a11==1)||((((!(a11==1)||((a12==1)&&(a3==1)))||!(a11==1))&&(a16==8))&&(a20==1)))&&(a17==2))))&&(a11==1)))&&((((a5==4)&&(input==1))&&!(a18==1))&&(a19==4)))){ + a9 = 7; + a19 = 1; + a0 = 0; + a16 = 7; + a27 = 0; + a3 = 1; + a21 = 10; + return -1; + } else if((((((!(a0==1)&&((a17==2)&&((!(a20==1)&&(input==3))&&(a28==1))))&&!(a7==1))&&(a2==1))&&(a21==10))&&((a1==14)&&((a9==10)&&((a5==5)&&(((a16==9)&&((a19==4)&&((a3==1)&&!(a7==1))))||(a0==1))))))){ + a16 = 8; + a14 = 1; + a5 = 6; + a9 = 9; + a1 = 13; + a20 = 1; + a4 = 1; + a21 = 12; + a23 = 0; + a19 = 3; + return 21; + } else if(((((!(a4==1)&&((((a21==10)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&!(a8==1)))&&(a16==9))&&!(a20==1)))&&(a17==2))&&(a9==9))&&((((!(a14==1)&&((a1==12)&&(!(a4==1)&&(a11==1))))&&!(a24==1))||!(a28==1))&&(a19==1)))){ + if((a4==1)){ + a29 = 1; + a1 = 13; + a21 = 11; + a9 = 8; + a7 = 1; + a13 = 0; + a16 = 7; + a20 = 1; + a5 = 4; + }else{ + a16 = 8; + a25 = 1; + a21 = 12; + a18 = 1; + a5 = 4; + a7 = 1; + } + return -1; + } else if((((a19==1)&&((a17==2)&&((a3==1)&&(!(a0==1)&&((a13==1)&&((a5==4)&&(input==3)))))))&&(!(a20==1)&&(((((a26==1)||(((!(a23==1)||(a3==1))&&(a21==12))||!(a23==1)))&&(a9==11))&&(a16==10))&&(a1==12))))){ + a26 = 1; + a1 = 14; + a21 = 11; + a22 = 0; + a16 = 9; + a7 = 1; + return -1; + } else if(((!(a14==1)&&(((a1==12)&&(a6==1))&&(a9==8)))&&((a13==1)&&(!(a27==1)&&((!(a18==1)&&((a20==1)&&(((a17==2)&&(!(a4==1)&&((a19==1)&&((a16==9)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6)))))))&&(a21==11))))&&!(a24==1)))))){ + a5 = 4; + a12 = 1; + a9 = 9; + a19 = 5; + a16 = 8; + a26 = 0; + a21 = 10; + return 22; + } else if((((((((a0==1)||(((a5==4)&&(((a16==8)&&(a13==1))||(a27==1)))&&(a1==13)))&&!(a20==1))&&(a21==10))&&!(a0==1))&&(a9==10))&&((a28==1)&&(((a3==1)&&(((a17==2)&&(input==3))&&(a19==3)))&&(a11==1))))){ + a19 = 1; + a3 = 1; + a20 = 1; + a0 = 0; + a16 = 7; + a9 = 7; + a26 = 0; + a1 = 12; + return -1; + } else if((((((((a28==1)&&((a5==5)&&(input==6)))&&!(a0==1))&&(a19==5))&&(a21==12))&&(a1==13))&&((!(a2==1)||(((a17==2)&&(!(a13==1)||(((a9==7)&&((a12==1)&&(a3==1)))&&!(a24==1))))&&(a16==8)))&&(a20==1)))){ + a9 = 11; + a27 = 0; + a5 = 4; + a21 = 10; + a1 = 14; + a20 = 0; + a19 = 2; + a24 = 0; + return 26; + } else if((((((((input==5)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(a28==1))&&!(a8==1))&&(a17==2))&&(a19==2))&&((a20==1)&&(((a16==10)&&((((a13==1)&&(((a6==1)||(a14==1))&&(a21==12)))&&(a1==14))||!(a11==1)))&&(a3==1))))){ + a9 = 7; + a24 = 0; + a5 = 4; + a16 = 7; + a1 = 12; + a18 = 0; + a19 = 1; + a11 = 1; + a21 = 10; + return -1; + } else if(((((a17==2)&&((a19==3)&&((!(a24==1)&&(!(a20==1)&&((((a9==7)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))&&!(a26==1))&&!(a0==1))))&&!(a4==1))))&&(a21==12))&&(((!(a7==1)&&(!(a4==1)&&(a28==1)))&&(a16==7))&&(a1==12)))){ + a20 = 1; + a21 = 11; + a19 = 4; + a2 = 1; + a5 = 4; + a0 = 0; + a9 = 11; + return 25; + } else if(((((a21==11)&&((a19==1)&&(!(a7==1)&&((input==5)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))))))&&(a20==1))&&(((((((a16==11)&&((!(a14==1)&&(a6==1))&&!(a0==1)))&&(a1==12))||!(a3==1))&&(a17==2))&&!(a8==1))&&!(a8==1)))){ + a3 = 1; + a19 = 2; + a4 = 0; + a5 = 4; + a16 = 9; + a1 = 14; + a2 = 1; + a9 = 10; + return 21; + } else if((((a8==1)||((a12==1)&&((a17==2)&&((a3==1)&&((a21==12)&&((a11==1)||!(a6==1)))))))&&((((a9==7)&&(((((a1==12)&&((input==4)&&((a5==5)||(a5==6))))&&(a16==9))&&(a19==5))&&!(a0==1)))&&(a20==1))&&(a2==1)))){ + a21 = 10; + a0 = 0; + a16 = 7; + a26 = 0; + a27 = 0; + a19 = 1; + a5 = 4; + return -1; + } else if(((!(a0==1)&&(((((a6==1)&&((a17==2)&&((!(a4==1)&&((input==3)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))))&&!(a20==1))))&&(a16==8))&&(a19==4))&&(a13==1)))&&(!(a4==1)&&((a24==1)||((a21==11)&&((a11==1)&&(a1==13))))))){ + a16 = 7; + a20 = 1; + a1 = 12; + a9 = 7; + a21 = 10; + a27 = 0; + a19 = 1; + a7 = 0; + a5 = 4; + a14 = 0; + return -1; + } else if(((!(a20==1)&&((!(a14==1)&&((a6==1)&&((a1==12)&&((((a5==4)||(a5==5))&&(input==4))&&(a9==9)))))&&(a16==8)))&&((((a12==1)&&((a27==1)||((a17==2)&&(((a23==1)&&(a21==10))&&(a19==2)))))||!(a2==1))&&(a28==1)))){ + a20 = 1; + a16 = 7; + a5 = 4; + a3 = 1; + a8 = 0; + a9 = 7; + a19 = 1; + a27 = 0; + return -1; + } else if((((((a16==7)&&((a17==2)&&((input==3)&&((((a1==13)&&(a5==6))&&(a9==11))||(((a5==4)&&(a1==14))&&(a9==7))))))&&(a21==11))&&!(a0==1))&&(((((!(a12==1)||(((a3==1)&&(a20==1))&&(a2==1)))&&(a19==5))&&!(a14==1))||(a26==1))||(a8==1)))){ + a5 = 4; + a1 = 12; + a9 = 7; + a23 = 1; + a19 = 1; + a21 = 10; + a6 = 1; + a0 = 0; + return -1; + } else if((((a23==1)&&((a20==1)&&((a19==5)&&((a16==10)&&((((a21==10)&&(((((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))&&(input==1))&&!(a27==1))&&(a1==14)))&&(a17==2))&&(a23==1))))))&&(!(a4==1)&&(!(a8==1)&&(!(a23==1)||(a12==1)))))){ + a7 = 0; + a23 = 1; + a1 = 12; + a5 = 4; + a12 = 1; + a9 = 7; + a16 = 7; + a19 = 1; + return -1; + } else if(((((a2==1)&&((a11==1)&&((((input==4)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11))))&&!(a26==1))&&!(a18==1))))&&(a19==3))&&((a21==10)&&(((a13==1)&&((a16==9)&&((((a20==1)&&(a3==1))&&(a1==13))&&!(a7==1))))&&(a17==2))))){ + a16 = 7; + a27 = 0; + a5 = 4; + a13 = 1; + a1 = 12; + a9 = 7; + a19 = 1; + a18 = 0; + return -1; + } else if(((!(a13==1)||((((a21==10)&&(!(a27==1)&&(((!(a20==1)&&(a6==1))&&(a1==14))&&(a17==2))))||(a14==1))&&(a11==1)))&&(!(a4==1)&&((a19==5)&&(((a9==11)&&(!(a14==1)&&(((a5==5)||(a5==6))&&(input==4))))&&(a16==10)))))){ + a19 = 1; + a5 = 6; + a25 = 0; + a26 = 1; + a9 = 10; + a24 = 1; + a21 = 12; + return 21; + } else if((((a17==2)&&((((((a19==4)&&(a3==1))&&(a21==10))&&(a20==1))&&!(a23==1))&&!(a11==1)))&&(((a1==13)&&(((a16==11)&&((((input==3)&&(((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))))&&!(a6==1))&&!(a2==1)))&&(a7==1)))&&!(a12==1)))){ + a19 = 1; + a25 = 1; + a28 = 0; + a16 = 7; + a5 = 6; + a14 = 1; + a9 = 10; + return -1; + } else if((((((((a12==1)&&(!(a4==1)&&((a11==1)&&((a3==1)&&((((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(input==3))))))&&!(a4==1))&&(a16==8))&&(a1==13))&&(a17==2))&&(((((a6==1)&&(a20==1))&&(a19==1))&&(a12==1))&&(a21==11)))){ + a1 = 12; + a21 = 10; + a27 = 0; + a6 = 1; + a11 = 1; + a5 = 4; + a16 = 7; + a9 = 7; + return -1; + } else if(((!(a4==1)&&((a3==1)&&(((a1==14)&&(((((((a5==5)||(a5==6))&&(input==3))&&(a3==1))&&(a21==10))&&!(a24==1))&&(a17==2)))&&(a19==3))))&&((((((a2==1)||(a0==1))&&!(a20==1))&&(a16==10))&&(a9==10))&&!(a14==1)))){ + a1 = 12; + a18 = 1; + a9 = 11; + a16 = 7; + a7 = 1; + a21 = 12; + a19 = 1; + a5 = 5; + a0 = 1; + return -1; + } else if(((((a24==1)||((!(a23==1)||(((a11==1)&&((a19==4)&&(((a18==1)||(a11==1))&&(a20==1))))&&(a21==12)))&&(a17==2)))&&(a16==8))&&(!(a7==1)&&((((input==1)&&(((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))))&&(a1==14))&&!(a24==1))))){ + a23 = 1; + a5 = 4; + a13 = 1; + a1 = 12; + a19 = 1; + a21 = 10; + a9 = 7; + a16 = 7; + a8 = 0; + return -1; + } else if((((a21==12)&&((a19==5)&&((a20==1)&&((((a17==2)&&(a2==1))||(a7==1))&&(a9==7)))))&&(((((!(a4==1)&&(((((a5==5)||(a5==6))&&(input==6))&&!(a27==1))&&(a11==1)))&&(a16==7))&&!(a7==1))&&!(a14==1))&&(a1==13)))){ + if((a28==1)){ + a5 = 4; + a20 = 0; + a21 = 11; + a27 = 0; + a3 = 1; + a16 = 8; + a7 = 0; + a19 = 4; + a1 = 14; + }else{ + a5 = 4; + a24 = 0; + a21 = 11; + a1 = 12; + a12 = 1; + a11 = 1; + a16 = 9; + } + return 23; + } else if(((((a28==1)&&(((a1==13)&&(((a21==12)&&((a17==2)&&(a28==1)))&&!(a0==1)))&&(a19==4)))&&!(a4==1))&&(((a13==1)&&(((((input==5)&&(((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))))&&!(a20==1))&&(a16==8))&&!(a27==1)))&&!(a18==1)))){ + if((a7==1)){ + a19 = 5; + a5 = 4; + a9 = 10; + a1 = 14; + a20 = 1; + a10 = 0; + a25 = 0; + a28 = 0; + a16 = 7; + }else{ + a19 = 1; + a13 = 0; + a5 = 6; + a1 = 12; + a20 = 1; + a16 = 7; + a21 = 10; + a6 = 0; + a12 = 0; + a9 = 7; + } + return 22; + } else if(((((a9==10)&&(((((a11==1)&&!(a14==1))&&!(a18==1))||!(a23==1))&&!(a18==1)))&&(a21==10))&&((a19==4)&&((a16==11)&&((((a1==12)&&((a5==5)&&(((a17==2)&&(input==6))&&(a12==1))))&&(a13==1))&&!(a20==1)))))){ + if((a7==1)){ + a19 = 5; + a4 = 1; + a16 = 10; + a24 = 1; + a9 = 8; + a8 = 1; + a5 = 6; + a21 = 11; + }else{ + a3 = 0; + a1 = 14; + a20 = 1; + a5 = 6; + a19 = 1; + a15 = 1; + a9 = 7; + a16 = 7; + a28 = 0; + } + return -1; + } else if(((!(a7==1)&&((!(a18==1)&&(a6==1))||(a26==1)))&&((a21==11)&&(((a6==1)&&((((a20==1)&&((a11==1)&&((((((a5==4)||(a5==5))&&(input==1))&&(a19==4))&&(a16==10))&&(a17==2))))&&(a9==10))&&!(a24==1)))&&(a1==12))))){ + a21 = 10; + a23 = 1; + a1 = 13; + a9 = 9; + a2 = 1; + a5 = 5; + a16 = 7; + a19 = 2; + return -1; + } else if(((((((a19==5)&&(!(a18==1)&&((a21==12)&&((((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a28==1))&&(a6==1)))))&&(a17==2))&&(a20==1))&&(a11==1))&&(((a16==8)&&((((a1==14)&&(a6==1))||!(a11==1))&&(a9==9)))||(a8==1)))){ + a11 = 1; + a1 = 13; + a7 = 0; + a16 = 10; + a24 = 0; + a5 = 4; + a9 = 10; + return 21; + } else if(((!(a2==1)||(!(a6==1)||(((a28==1)&&((((a21==10)&&((a20==1)&&(((a23==1)&&(a19==3))&&(a3==1))))&&(a16==11))&&(a17==2)))||!(a11==1))))&&(!(a14==1)&&((a1==14)&&((input==6)&&(((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6))))))))){ + a24 = 0; + a9 = 10; + a5 = 6; + a1 = 13; + a11 = 1; + a14 = 0; + a21 = 11; + return 22; + } else if(((((a17==2)&&((a12==1)&&((input==1)&&(a19==5))))&&(a1==14))&&(((a28==1)&&((a11==1)&&((a16==9)&&((!(a3==1)||((a5==5)&&((a18==1)||((a9==8)&&(!(a20==1)&&(a2==1))))))&&(a21==10)))))||(a14==1)))){ + a13 = 0; + a29 = 1; + a22 = 0; + a16 = 7; + a20 = 1; + a5 = 6; + a1 = 12; + a9 = 7; + a19 = 1; + return 21; + } else if(((((a19==5)&&((a9==10)&&(((a5==4)||(a5==5))&&(input==3))))&&(a16==8))&&((a21==12)&&(((a20==1)&&(((a18==1)||((((!(a12==1)||((a6==1)&&!(a7==1)))&&!(a0==1))||(a18==1))||(a4==1)))&&(a1==13)))&&(a17==2))))){ + a7 = 0; + a6 = 1; + a16 = 10; + a28 = 1; + a1 = 12; + a5 = 4; + return 22; + } else if(((((a16==9)&&((((a21==10)&&(!(a8==1)&&(!(a8==1)&&(((a11==1)&&((input==5)&&((a5==5)||(a5==6))))&&(a19==3)))))&&(a28==1))&&(a20==1)))&&(a3==1))&&(((((a23==1)&&(a9==10))&&!(a14==1))&&(a17==2))&&(a1==14)))){ + a1 = 12; + a19 = 1; + a9 = 7; + a24 = 0; + a5 = 4; + a16 = 7; + a6 = 1; + return -1; + } else if((((((a17==2)&&((a0==1)&&((a2==1)&&!(a13==1))))&&(a8==1))&&(a9==11))&&((a21==10)&&((a19==4)&&(!(a13==1)&&(!(a11==1)&&((a1==13)&&((a0==1)&&(!(a20==1)&&((a16==8)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1)))))))))))){ + a10 = 1; + a16 = 7; + a9 = 8; + a20 = 1; + a21 = 11; + a25 = 1; + a5 = 6; + return -1; + } else if((((!(a14==1)&&((((a4==1)||((a16==10)&&((a21==10)&&(!(a26==1)&&((a12==1)&&(a19==2))))))&&!(a20==1))&&(a1==12)))&&(a6==1))&&((((a17==2)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==5)))&&(a2==1))&&(a3==1)))){ + if((a27==1)){ + a16 = 7; + a5 = 6; + a20 = 1; + a6 = 0; + a7 = 1; + a1 = 13; + a9 = 11; + a25 = 0; + a19 = 1; + }else{ + a9 = 11; + a0 = 1; + a26 = 1; + a5 = 4; + a21 = 11; + a19 = 4; + a6 = 0; + a20 = 1; + a1 = 14; + } + return -1; + } else if(((((((a11==1)&&((input==3)&&(a21==11)))&&(a5==5))&&(a9==8))&&!(a7==1))&&(!(a23==1)||((((((!(a20==1)&&(((a3==1)&&(a16==8))&&!(a14==1)))||(a7==1))&&(a1==12))&&(a19==4))&&(a17==2))&&(a11==1))))){ + a8 = 0; + a21 = 10; + a5 = 4; + a0 = 0; + a9 = 7; + a26 = 0; + a20 = 1; + a16 = 7; + a19 = 1; + return -1; + } else if(((((((a1==14)&&((a4==1)||(((a2==1)&&(a13==1))&&(a6==1))))||(a7==1))&&(a9==10))&&(a21==12))&&(((a20==1)&&(!(a4==1)&&(((a23==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a19==5)))&&(a16==10))))&&(a17==2)))){ + a9 = 9; + a16 = 7; + a5 = 5; + a19 = 2; + a28 = 1; + a14 = 0; + a1 = 13; + a21 = 10; + return 23; + } else if(((((a9==8)&&((a17==2)&&(((a8==1)&&(((a3==1)&&(a19==2))&&(a4==1)))&&(a0==1))))&&(a20==1))&&((!(a3==1)&&(((((a16==11)&&((input==6)&&((a5==4)||(a5==5))))&&(a0==1))&&(a1==13))&&(a4==1)))&&(a21==11)))){ + a1 = 14; + a19 = 1; + a23 = 0; + a15 = 0; + a5 = 5; + a16 = 7; + a21 = 10; + a9 = 9; + a24 = 1; + return 25; + } else if((((a19==5)&&((a21==11)&&(((!(a2==1)||((a12==1)&&(a3==1)))&&!(a14==1))&&(a20==1))))&&(((a3==1)&&((a1==14)&&(!(a18==1)&&((((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==1))&&(a3==1))&&(a17==2)))))&&(a16==8)))){ + a5 = 4; + a9 = 10; + a3 = 1; + a16 = 10; + a1 = 12; + a19 = 4; + return 25; + } else if(((((a4==1)||((a1==13)&&((a28==1)&&(a19==2))))&&(a9==7))&&(((a21==12)&&(((a16==10)&&((!(a18==1)&&(((!(a4==1)&&((input==1)&&(a17==2)))&&!(a18==1))&&!(a0==1)))&&!(a20==1)))&&(a6==1)))&&(a5==6)))){ + a21 = 10; + a1 = 12; + a16 = 8; + a9 = 9; + a22 = 0; + a18 = 1; + return 21; + } else if((((((a11==1)&&(((((input==6)&&(((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))))&&!(a7==1))&&(a3==1))&&(a16==9)))&&(a17==2))&&(a19==1))&&((((!(a11==1)||((a4==1)||((a28==1)||(a27==1))))&&(a21==12))&&(a20==1))&&(a1==13)))){ + a16 = 7; + a13 = 1; + a2 = 1; + a14 = 0; + a9 = 7; + a21 = 10; + a1 = 12; + a5 = 4; + return -1; + } else if(((((((a21==10)&&((a17==2)&&(((a9==10)&&(a11==1))&&(a1==14))))&&(a19==3))&&(a3==1))&&(a6==1))&&(((!(a26==1)&&((((a2==1)&&((input==5)&&(a16==7)))&&(a20==1))&&!(a0==1)))&&(a5==6))&&!(a18==1)))){ + a6 = 1; + a18 = 0; + a27 = 0; + a9 = 7; + a1 = 12; + a21 = 11; + return 25; + } else if((((a20==1)&&(((((((a2==1)&&(a13==1))&&(a1==12))&&(a19==5))||!(a11==1))||(a24==1))&&(a21==11)))&&((a17==2)&&(((((((a5==6)&&(input==4))&&(a11==1))&&(a6==1))&&(a16==11))&&!(a27==1))&&(a9==8))))){ + a5 = 4; + a16 = 7; + a6 = 1; + a21 = 10; + a9 = 7; + a19 = 1; + a13 = 1; + a24 = 0; + return -1; + } else if((((((a17==2)&&((a1==12)&&(((a5==4)||(a5==5))&&(input==3))))&&(a19==3))&&(a3==1))&&(((!(a3==1)||((a28==1)&&(((!(a27==1)&&((a9==8)&&((a20==1)&&(a6==1))))&&(a21==11))&&(a16==11))))||!(a13==1))&&!(a7==1)))){ + a5 = 4; + a11 = 1; + a19 = 1; + a9 = 7; + a21 = 10; + a16 = 7; + a8 = 0; + a23 = 1; + return -1; + } else if((((a2==1)&&(((a19==2)&&(((a5==6)&&(!(a18==1)&&((a21==12)&&((input==4)&&(a17==2)))))&&(a6==1)))&&(a23==1)))&&((a20==1)&&((a16==7)&&(!(a7==1)&&((((a23==1)&&(a23==1))&&(a1==13))&&(a9==8))))))){ + a1 = 12; + a16 = 8; + a14 = 0; + a24 = 0; + a6 = 1; + a21 = 10; + a19 = 5; + return 25; + } else if((((a20==1)&&(!(a26==1)&&((a16==10)&&((a17==2)&&(((a11==1)&&((((((input==5)&&((a5==4)||(a5==5)))&&(a21==10))&&!(a7==1))&&(a19==4))&&(a23==1)))&&(a1==14))))))&&(!(a7==1)&&((a9==8)&&((a24==1)||(a12==1)))))){ + a16 = 9; + a1 = 12; + a5 = 5; + a9 = 10; + a21 = 12; + a19 = 3; + a26 = 0; + a11 = 1; + a8 = 0; + return 21; + } else if(((((((a11==1)&&((((a16==8)&&(!(a14==1)&&((a5==5)&&(input==4))))&&!(a18==1))&&(a17==2)))&&(a9==7))&&(a20==1))&&(a21==11))&&(((a0==1)||((!(a27==1)&&((a12==1)||(a27==1)))&&(a19==4)))&&(a1==13)))){ + a23 = 1; + a16 = 7; + a19 = 1; + a1 = 12; + a21 = 10; + a14 = 0; + a28 = 1; + a5 = 4; + return -1; + } else if((((a23==1)&&(((!(a27==1)&&(((a1==14)&&((a21==12)&&((input==1)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))))&&!(a20==1)))&&(a19==5))&&!(a8==1)))&&((a8==1)||((((a17==2)&&((a28==1)&&(a13==1)))&&(a11==1))&&(a16==10))))){ + a16 = 8; + a24 = 1; + a13 = 0; + a1 = 12; + a29 = 0; + a9 = 9; + a21 = 10; + a19 = 2; + a5 = 6; + return -1; + } else if((((a16==9)&&(((((a21==11)&&((a2==1)||(a7==1)))&&(a2==1))&&(a1==12))&&(a3==1)))&&((((a12==1)&&(!(a27==1)&&(!(a8==1)&&((a17==2)&&((input==5)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))))))&&(a20==1))&&(a19==5)))){ + a19 = 1; + a5 = 4; + a27 = 0; + a0 = 0; + a16 = 7; + a13 = 1; + a21 = 10; + a9 = 7; + return -1; + } else if(((((a19==5)&&((a1==12)&&((a18==1)||(((a20==1)&&(a2==1))&&(a17==2)))))||!(a11==1))&&((((a13==1)&&((a12==1)&&(((a21==12)&&((((a5==5)||(a5==6))&&(input==1))&&(a12==1)))&&!(a24==1))))&&(a9==11))&&(a16==11)))){ + a23 = 1; + a21 = 10; + a0 = 0; + a9 = 7; + a5 = 4; + a7 = 0; + a16 = 7; + a19 = 1; + return -1; + } else if(((((a1==12)&&((a17==2)&&((((a21==12)&&((!(a0==1)&&((a28==1)&&((input==3)&&(a9==8))))&&!(a18==1)))&&!(a4==1))&&!(a14==1))))&&(a20==1))&&((a19==1)&&(((a16==11)&&((a11==1)&&!(a26==1)))&&(a5==5))))){ + a5 = 4; + a12 = 1; + a16 = 7; + a21 = 10; + a8 = 0; + a9 = 7; + return -1; + } else if((((a17==2)&&((a5==5)&&((a16==10)&&(!(a7==1)&&(!(a18==1)&&((a23==1)&&(!(a7==1)&&((a21==10)&&(input==4)))))))))&&((a1==12)&&((a19==3)&&((a9==9)&&((a20==1)&&(((a24==1)||(a13==1))&&!(a0==1)))))))){ + a19 = 1; + a26 = 0; + a5 = 4; + a9 = 7; + a0 = 0; + a24 = 0; + a16 = 7; + return -1; + } else if((((((((a28==1)&&(!(a20==1)&&(input==6)))&&!(a7==1))&&(a9==10))&&(a6==1))&&(a5==4))&&(((a16==9)&&((a17==2)&&(((a1==13)&&((a24==1)||((a8==1)||(!(a3==1)||(a13==1)))))&&(a21==12))))&&(a19==1)))){ + if((a8==1)){ + a15 = 1; + a1 = 12; + a25 = 0; + a21 = 10; + a19 = 2; + a16 = 7; + a6 = 0; + a20 = 1; + }else{ + a21 = 10; + a22 = 1; + a2 = 0; + a0 = 1; + a9 = 7; + a1 = 14; + a5 = 6; + } + return -1; + } else if(((((a26==1)||((a21==10)&&((a17==2)&&((a1==14)&&(((a26==1)||(a6==1))&&(a16==8))))))||(a26==1))&&((a11==1)&&((!(a4==1)&&(((a19==2)&&((((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))&&(input==1)))&&!(a20==1)))&&(a28==1))))){ + a19 = 1; + a21 = 12; + a9 = 8; + a6 = 1; + a12 = 1; + a20 = 1; + a7 = 0; + a5 = 6; + return 21; + } else if(((((((a6==1)&&((a17==2)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1))))&&!(a20==1))&&(a6==1))&&(a12==1))&&((a3==1)&&((a3==1)&&((a16==10)&&(((a19==3)&&(((a9==11)&&((a1==14)&&(a23==1)))&&(a21==10)))&&(a28==1))))))){ + a21 = 11; + a26 = 1; + a1 = 13; + a5 = 5; + a9 = 8; + a28 = 0; + a6 = 0; + a20 = 1; + a16 = 8; + return -1; + } else if(((!(a0==1)&&((a20==1)&&((((a2==1)&&(((((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8)))&&(input==5)))&&!(a24==1))&&(a21==10))))&&(((a19==2)&&((((a17==2)&&(((a16==10)&&(a23==1))&&(a23==1)))||(a0==1))||!(a3==1)))&&(a1==14)))){ + a4 = 0; + a23 = 1; + a16 = 8; + a5 = 4; + a19 = 5; + a9 = 11; + a12 = 1; + return 25; + } else if((((a17==2)&&((a16==10)&&((((a13==1)&&((((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11)))&&(input==1))&&(a28==1)))&&(a3==1))&&(a28==1))))&&(((a3==1)&&((a1==12)&&(((a19==3)&&((a21==12)&&(a11==1)))||(a4==1))))&&(a20==1)))){ + a5 = 4; + a14 = 0; + a23 = 1; + a21 = 10; + a16 = 7; + a9 = 7; + a28 = 1; + a19 = 1; + return -1; + } else if(((!(a20==1)&&(((a16==7)&&(((a19==2)&&((input==3)&&((a5==5)||(a5==6))))&&(a2==1)))&&(a17==2)))&&((a1==13)&&((((a11==1)&&(((a3==1)&&((a0==1)||((a12==1)&&(a9==9))))||(a0==1)))&&(a23==1))&&(a21==11))))){ + a9 = 7; + a21 = 10; + a5 = 4; + a14 = 0; + a28 = 1; + a1 = 12; + a19 = 1; + a11 = 1; + a20 = 1; + return -1; + } else if((((a19==2)&&(((((a17==2)&&(!(a20==1)&&(input==1)))&&(a11==1))&&(a9==10))&&(a5==5)))&&((a26==1)||((((((((a2==1)&&(a1==12))&&!(a26==1))||(a0==1))&&(a16==9))||!(a23==1))&&(a21==12))&&(a28==1))))){ + if((a16==7)){ + a16 = 7; + a18 = 1; + a28 = 0; + a1 = 14; + a21 = 10; + a20 = 1; + a5 = 4; + a22 = 1; + a19 = 1; + }else{ + a1 = 13; + a23 = 0; + a5 = 4; + a29 = 0; + a16 = 11; + a21 = 10; + a0 = 1; + a20 = 1; + a19 = 4; + a9 = 9; + } + return -1; + } else if((((!(a14==1)&&(((((((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))&&(input==1))&&(a1==13))&&(a23==1))&&(a19==5)))&&(a11==1))&&((((((a16==9)&&((a17==2)&&(!(a2==1)||(a3==1))))||!(a11==1))&&(a20==1))&&(a21==12))&&(a3==1)))){ + a27 = 0; + a28 = 1; + a21 = 10; + a5 = 4; + a1 = 12; + a16 = 7; + a4 = 0; + a9 = 7; + a19 = 1; + return -1; + } else if((((a20==1)&&((a9==8)&&((a1==14)&&(((a11==1)&&(((a0==1)||((!(a11==1)||((a19==1)&&(!(a12==1)||((a6==1)&&(a11==1)))))&&(a16==8)))&&!(a7==1)))&&(a21==11)))))&&(((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&(a17==2)))){ + a5 = 4; + a14 = 0; + a9 = 7; + a16 = 7; + a7 = 0; + a21 = 10; + a24 = 0; + a1 = 12; + return -1; + } else if((((a19==5)&&((((a11==1)&&(((a5==4)||(a5==5))&&(input==6)))&&(a28==1))&&(a9==8)))&&(((((((a16==7)&&((a2==1)&&((a14==1)||((a4==1)||(a28==1)))))||!(a28==1))&&(a1==14))&&(a21==12))&&(a17==2))&&!(a20==1)))){ + a13 = 1; + a24 = 0; + a9 = 7; + a19 = 1; + a5 = 4; + a1 = 12; + a20 = 1; + a21 = 10; + a3 = 1; + return -1; + } else if((((a19==5)&&(((a2==1)&&((((a23==1)&&((a16==9)&&(((input==6)&&(a20==1))&&(a12==1))))&&(a17==2))&&(a1==14)))&&(a5==5)))&&((((((a12==1)&&!(a18==1))||!(a13==1))&&(a9==9))&&(a23==1))&&(a21==10)))){ + a1 = 12; + a8 = 0; + a5 = 6; + a2 = 1; + a9 = 10; + a19 = 3; + a27 = 0; + a21 = 12; + return 21; + } else if((((a21==10)&&((a19==2)&&((a1==13)&&(((((((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&(a13==1))&&(a11==1))&&(a9==9))&&(a16==11))&&!(a14==1)))))&&((a2==1)&&(((((a27==1)||(a6==1))||(a18==1))&&(a17==2))&&(a20==1))))){ + a9 = 11; + a11 = 1; + a26 = 0; + a0 = 0; + a5 = 5; + a21 = 11; + return 21; + } else if((((a9==8)&&(((!(a20==1)&&((a1==13)&&((a6==1)&&(a21==11))))&&(a3==1))&&(a16==7)))&&((!(a0==1)&&(((a12==1)&&(((!(a8==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1)))&&(a11==1))&&(a17==2)))&&!(a8==1)))&&(a19==2)))){ + a1 = 14; + a9 = 7; + a4 = 0; + a19 = 5; + a23 = 1; + a5 = 4; + a21 = 10; + a20 = 1; + a12 = 1; + return 25; + } else if(((((a20==1)&&((a28==1)&&((a16==10)&&((!(a27==1)&&((a9==8)&&(!(a26==1)&&(a3==1))))&&(a1==12)))))&&(a21==10))&&((a17==2)&&(!(a0==1)&&((((((a5==5)||(a5==6))&&(input==5))&&(a3==1))&&!(a4==1))&&(a19==2)))))){ + a16 = 8; + a27 = 0; + a19 = 5; + a5 = 6; + a21 = 12; + a14 = 0; + a1 = 14; + a6 = 1; + return 22; + } else if(((((((((a19==5)&&((a16==8)&&(input==1)))&&!(a26==1))&&!(a24==1))&&!(a20==1))&&(a5==5))&&(a21==12))&&(!(a6==1)||((a1==14)&&((a8==1)||(((((a17==2)&&(a2==1))&&(a9==7))&&(a13==1))||(a24==1))))))){ + a12 = 0; + a21 = 10; + a25 = 0; + a19 = 1; + return -1; + } else if(((((a13==1)&&((((((((input==5)&&(a20==1))&&(a12==1))&&(a1==14))&&(a9==9))&&(a5==6))&&(a16==11))&&!(a0==1)))&&!(a18==1))&&((!(a23==1)||(((a21==10)&&((a11==1)||!(a13==1)))&&(a19==1)))&&(a17==2)))){ + a16 = 9; + a4 = 0; + a5 = 4; + a21 = 11; + a28 = 1; + a13 = 1; + a9 = 11; + a1 = 12; + a19 = 5; + return 21; + } else if(((!(a24==1)&&(((((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))&&(input==1))&&(a13==1))&&(a23==1))&&!(a20==1)))&&((a7==1)||((((((!(a14==1)&&((a16==10)&&(a2==1)))||!(a2==1))&&(a19==4))&&(a1==12))&&(a21==11))&&(a17==2))))){ + if((a5==6)){ + a1 = 13; + a19 = 5; + a5 = 4; + a29 = 1; + a27 = 1; + a9 = 7; + a16 = 9; + a20 = 1; + a15 = 0; + }else{ + a9 = 9; + a19 = 1; + a20 = 1; + a16 = 7; + a10 = 1; + a21 = 10; + a14 = 1; + a8 = 1; + a5 = 4; + a1 = 14; + } + return -1; + } else if((((a21==10)&&((a24==1)||(((a19==3)&&((!(a0==1)&&(a2==1))&&(a3==1)))&&(a16==11))))&&((a1==13)&&(((!(a0==1)&&(!(a4==1)&&(!(a7==1)&&((input==4)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))))))&&!(a20==1))&&(a17==2))))){ + a19 = 1; + a11 = 0; + a10 = 1; + a1 = 12; + a9 = 9; + a16 = 7; + a5 = 6; + a27 = 1; + a20 = 1; + return 22; + } else if((((a20==1)&&((((a13==1)&&(a21==11))&&(a19==5))&&!(a0==1)))&&((a6==1)&&((a16==10)&&((a17==2)&&(((a28==1)&&((a12==1)&&(!(a26==1)&&((((a9==7)&&((a5==4)&&(a1==14)))||((((a1==13)&&(a5==5))&&(a9==11))||(((a1==13)&&(a5==6))&&(a9==11))))&&(input==5)))))&&(a3==1))))))){ + a19 = 4; + a1 = 13; + a16 = 7; + a18 = 0; + a21 = 10; + a5 = 5; + a9 = 10; + a6 = 1; + a14 = 0; + return 25; + } else if(((((a21==11)&&((a3==1)&&((((a16==8)&&(((a17==2)&&((input==5)&&(((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))))&&(a1==14)))&&!(a8==1))&&(a6==1))))&&(a20==1))&&((a19==5)&&(((a18==1)||(!(a2==1)||(a13==1)))||(a27==1))))){ + a19 = 1; + a21 = 10; + a9 = 7; + a12 = 1; + a16 = 7; + a23 = 1; + a1 = 12; + a2 = 1; + a5 = 4; + return -1; + } else if(((((a18==1)||((a21==11)&&((a16==9)&&(((a19==5)&&((a9==7)&&(a2==1)))&&(a20==1)))))&&(a13==1))&&(!(a7==1)&&(((a1==14)&&((a17==2)&&((!(a18==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4)))&&(a2==1))))&&!(a0==1))))){ + a8 = 0; + a1 = 12; + a16 = 7; + a11 = 1; + a21 = 10; + a19 = 1; + a5 = 4; + return -1; + } else if(((!(a7==1)&&(((a20==1)&&(((a23==1)&&(a17==2))&&(a19==5)))&&(a13==1)))&&(((a1==14)&&((((a2==1)&&((a16==7)&&((a13==1)&&((input==6)&&(((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))))))&&!(a14==1))&&(a21==10)))&&!(a14==1)))){ + a18 = 0; + a28 = 1; + a5 = 4; + a19 = 4; + a21 = 12; + a9 = 7; + return 26; + } else if((((a16==7)&&((!(a24==1)&&(a3==1))&&(a21==10)))&&((a9==9)&&((((a20==1)&&(((((a17==2)&&(((a28==1)&&(((a5==5)||(a5==6))&&(input==4)))&&(a1==14)))&&(a19==2))&&(a28==1))&&!(a4==1)))&&(a13==1))&&(a23==1))))){ + a19 = 4; + a13 = 1; + a5 = 4; + a8 = 0; + a1 = 13; + a9 = 10; + return 21; + } else if(((((a20==1)&&(!(a6==1)||((a16==9)&&((((((a5==4)&&(a12==1))&&(a21==10))&&(a2==1))&&(a17==2))||!(a12==1)))))&&(a19==2))&&((a9==11)&&(!(a27==1)&&(((a23==1)&&((input==5)&&(a1==13)))&&!(a14==1)))))){ + a3 = 1; + a13 = 1; + a5 = 5; + a1 = 14; + a2 = 1; + a9 = 7; + a16 = 10; + return 21; + } else if((((((a11==1)&&((a19==2)&&(((a17==2)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))&&(a28==1))))&&(a9==9))&&(a21==10))&&(((a28==1)&&((a4==1)||((a13==1)&&((a1==12)&&(((a11==1)&&(a3==1))&&(a16==9))))))&&!(a20==1)))){ + if((a0==1)){ + a1 = 14; + a11 = 0; + a16 = 7; + a21 = 11; + a7 = 1; + a19 = 4; + a15 = 0; + a5 = 6; + a20 = 1; + }else{ + a3 = 0; + a5 = 4; + a16 = 8; + a6 = 0; + a9 = 11; + a21 = 11; + a24 = 1; + a19 = 3; + a1 = 14; + } + return 22; + } else if(((!(a4==1)&&(!(a20==1)&&((((input==4)&&((a5==4)||(a5==5)))&&(a1==14))&&(a9==7))))&&(!(a8==1)&&((((a0==1)||((a19==2)&&(!(a7==1)&&((((a17==2)&&(a28==1))&&(a16==9))&&!(a24==1)))))&&(a21==10))||!(a6==1))))){ + a13 = 0; + a25 = 0; + a5 = 5; + a20 = 1; + a16 = 7; + a29 = 0; + a1 = 12; + a19 = 1; + return -1; + } else if((((!(a26==1)&&((!(a18==1)&&((a16==8)&&(((input==1)&&(a5==4))&&(a3==1))))&&(a23==1)))&&(a20==1))&&((a17==2)&&((a19==5)&&(((a3==1)&&((a21==11)&&(((a9==9)&&(a12==1))&&(a1==13))))&&!(a0==1)))))){ + a24 = 0; + a27 = 0; + a21 = 10; + a16 = 7; + a9 = 7; + a1 = 12; + a19 = 1; + return -1; + } else if(((!(a20==1)&&((a12==1)&&((a19==5)&&(((a9==11)&&((a1==13)&&(((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&(a3==1))))&&!(a7==1)))))&&(((a16==9)&&(((a23==1)&&(((a11==1)&&(a17==2))&&(a2==1)))&&!(a27==1)))&&(a21==11)))){ + if((a20==1)){ + a25 = 0; + a19 = 2; + a0 = 1; + a1 = 14; + a5 = 6; + a21 = 10; + a16 = 8; + }else{ + a20 = 1; + a8 = 1; + a11 = 0; + a21 = 10; + a16 = 7; + a5 = 4; + a2 = 0; + a9 = 7; + a1 = 14; + a19 = 1; + } + return -1; + } else if((((a2==1)&&((a1==14)&&((a20==1)&&((a5==4)&&(((a9==9)&&(input==6))&&(a16==11))))))&&((!(a26==1)&&((a19==2)&&((a21==10)&&(((a27==1)||(!(a18==1)&&(!(a11==1)||(a23==1))))&&(a17==2)))))||(a8==1)))){ + a24 = 0; + a16 = 7; + a14 = 0; + a12 = 1; + a1 = 12; + a19 = 1; + a9 = 7; + return -1; + } else if((((a19==5)&&(!(a8==1)&&(((a6==1)||(a7==1))||(a14==1))))&&(!(a18==1)&&(((a28==1)&&((((((a21==10)&&((input==3)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))))&&(a17==2))&&(a1==13))&&!(a20==1))&&(a16==8)))&&!(a0==1))))){ + a26 = 0; + a0 = 0; + a5 = 5; + a21 = 11; + a27 = 0; + a16 = 10; + a9 = 9; + a19 = 2; + a20 = 1; + return 21; + } else if(((((a27==1)||((a16==9)&&(((((a3==1)&&!(a14==1))&&(a6==1))&&(a28==1))&&(a5==5))))&&!(a20==1))&&((a9==8)&&((((a19==5)&&((a11==1)&&((a17==2)&&((input==4)&&(a21==10)))))&&(a2==1))&&(a1==13))))){ + if((a3==1)){ + a5 = 6; + a1 = 14; + a26 = 1; + a20 = 1; + a19 = 1; + a2 = 0; + a9 = 11; + a16 = 7; + }else{ + a21 = 11; + a9 = 9; + a10 = 1; + a20 = 1; + a19 = 2; + a5 = 4; + a22 = 1; + } + return -1; + } else if((((((a16==7)&&((a17==2)&&((((a9==9)&&((a1==13)&&(a28==1)))&&(a27==1))&&!(a3==1))))&&(a21==12))&&!(a28==1))&&(!(a23==1)&&((((((input==4)&&(a19==2))&&(a20==1))&&(a5==4))&&!(a2==1))&&!(a2==1))))){ + a21 = 10; + a19 = 1; + a5 = 5; + a2 = 0; + a27 = 1; + a7 = 1; + a1 = 14; + a9 = 11; + return 21; + } else if(((((a5==4)&&((a21==11)&&((((a3==1)&&(a1==14))&&!(a8==1))&&!(a14==1))))&&(a28==1))&&(((a9==11)&&(!(a7==1)&&((a16==10)&&(((((a19==2)&&(input==6))&&!(a20==1))&&!(a4==1))&&(a17==2)))))&&(a6==1)))){ + a25 = 0; + a18 = 1; + a16 = 11; + a1 = 12; + a9 = 7; + a21 = 12; + a2 = 0; + a20 = 1; + a19 = 4; + a5 = 6; + return 25; + } else if((((a26==1)&&((!(a28==1)&&((a9==8)&&((a19==1)&&((((a5==6)&&((a2==1)&&(a16==10)))&&(a14==1))&&(a21==10)))))&&!(a2==1)))&&(!(a11==1)&&((a17==2)&&((((a20==1)&&(input==5))&&(a1==12))&&!(a12==1)))))){ + a5 = 5; + a2 = 0; + a9 = 10; + a16 = 7; + a29 = 0; + a1 = 13; + return -1; + } else if((((a20==1)&&(((a16==9)&&((a17==2)&&(((!(a18==1)&&(((input==6)&&(a19==3))&&(a3==1)))&&(a2==1))&&(a13==1))))&&(a5==6)))&&((((a21==11)&&(!(a13==1)||((a6==1)||!(a2==1))))&&(a9==11))&&(a1==13)))){ + a6 = 1; + a9 = 7; + a14 = 0; + a28 = 1; + a19 = 5; + a16 = 10; + return 21; + } else if((((a9==10)&&(!(a11==1)||(((a21==10)&&(((a3==1)&&(a20==1))&&(a16==11)))&&!(a4==1))))&&((a12==1)&&(((a19==4)&&((((a1==13)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&!(a24==1)))&&(a17==2))&&(a2==1)))&&(a11==1))))){ + a24 = 0; + a19 = 1; + a9 = 7; + a5 = 4; + a16 = 7; + a1 = 12; + a27 = 0; + a11 = 1; + return -1; + } else if(((!(a20==1)&&((a13==1)&&((a23==1)&&((a21==12)&&(a23==1)))))&&((a1==14)&&((((a5==5)&&((!(a7==1)&&((a17==2)&&(((a16==9)&&((input==4)&&(a19==2)))&&(a9==8))))&&(a2==1)))&&(a12==1))&&!(a14==1))))){ + a16 = 7; + a21 = 10; + a29 = 0; + a18 = 1; + a9 = 7; + a12 = 0; + a1 = 12; + a19 = 1; + a5 = 6; + a20 = 1; + return 21; + } else if((((a9==10)&&(((((a21==12)&&((a3==1)&&(a1==13)))&&(a16==7))&&(a11==1))&&!(a20==1)))&&(((!(a0==1)&&(((((a19==4)&&((a17==2)&&(input==1)))&&(a2==1))&&!(a4==1))&&(a5==6)))&&(a6==1))&&!(a8==1)))){ + a20 = 1; + a23 = 1; + a21 = 10; + a19 = 5; + a14 = 0; + a7 = 0; + a9 = 7; + a16 = 9; + a5 = 5; + return 26; + } else if(((!(a24==1)&&((a19==5)&&((a3==1)&&(((a17==2)&&((a9==8)&&(input==6)))&&!(a24==1)))))&&(((a21==12)&&((a16==8)&&((!(a14==1)&&(!(a23==1)||((a20==1)&&((a2==1)&&(a13==1)))))&&(a5==5))))&&(a1==14)))){ + a26 = 0; + a9 = 11; + a7 = 0; + a1 = 12; + a14 = 0; + return -1; + } else if((((a1==14)&&(((((a18==1)&&((a19==3)&&((input==3)&&((a5==5)||(a5==6)))))&&(a20==1))&&!(a13==1))&&(a24==1)))&&((a8==1)&&(((a9==7)&&(((((a24==1)&&(a3==1))&&(a21==11))&&!(a12==1))&&(a16==10)))&&(a17==2))))){ + a19 = 2; + a5 = 6; + a29 = 1; + a11 = 0; + a9 = 10; + a21 = 10; + a26 = 1; + a16 = 7; + a1 = 12; + return -1; + } else if((((((((a6==1)&&((a19==1)&&(((a17==2)&&((a1==12)&&((input==5)&&(a9==10))))&&!(a7==1))))&&(a20==1))&&(a21==11))&&!(a14==1))&&(a5==6))&&((((a16==8)&&(!(a7==1)&&(a3==1)))||!(a2==1))&&!(a27==1)))){ + a23 = 1; + a5 = 4; + a16 = 7; + a9 = 7; + a21 = 10; + a4 = 0; + a3 = 1; + return -1; + } else if((((a9==9)&&(((a1==12)&&((a21==11)&&(!(a27==1)&&(!(a12==1)||(a28==1)))))&&(a17==2)))&&(((!(a24==1)&&((a13==1)&&((a11==1)&&((((input==1)&&((a5==5)||(a5==6)))&&(a11==1))&&(a19==3)))))&&(a16==9))&&!(a20==1)))){ + a1 = 14; + a26 = 1; + a21 = 10; + a9 = 7; + a16 = 7; + a24 = 1; + a20 = 1; + a3 = 0; + a19 = 1; + a5 = 4; + return 21; + } else if(((((a16==7)&&(!(a0==1)&&((a5==4)&&(input==4))))&&!(a7==1))&&((a1==12)&&((((((a17==2)&&((!(a27==1)&&(((a9==8)&&(a11==1))&&(a21==11)))&&(a23==1)))&&(a2==1))&&(a19==4))||!(a12==1))&&!(a20==1))))){ + a13 = 1; + a9 = 7; + a19 = 1; + a7 = 0; + a21 = 10; + a20 = 1; + a6 = 1; + return -1; + } else if((((a20==1)&&((a17==2)&&((a16==7)&&(((a21==10)&&(((a3==1)||(a18==1))&&!(a27==1)))||!(a28==1)))))&&(((a9==11)&&(!(a0==1)&&(((((a1==14)&&(input==3))&&(a5==6))&&(a12==1))&&!(a24==1))))&&(a19==4)))){ + a5 = 4; + a11 = 1; + a19 = 1; + a27 = 0; + a3 = 1; + a1 = 12; + a9 = 7; + return -1; + } else if((((a19==4)&&(((a17==2)&&(((a11==1)&&!(a26==1))&&(a20==1)))&&(a21==11)))&&(((!(a0==1)&&(((a16==9)&&((((input==5)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10))))&&(a1==14))&&!(a0==1)))&&(a13==1)))&&(a28==1))&&(a6==1)))){ + a16 = 7; + a21 = 10; + a5 = 6; + a1 = 13; + a12 = 1; + a0 = 0; + a19 = 3; + a6 = 1; + a9 = 7; + return 25; + } else if((((((a21==11)&&((a7==1)||(!(a24==1)&&(a2==1))))||!(a12==1))&&(a16==11))&&(((a5==6)&&(((a3==1)&&(((a23==1)&&((a17==2)&&((a20==1)&&((input==6)&&(a9==9)))))&&(a6==1)))&&(a19==5)))&&(a1==13)))){ + a9 = 7; + a12 = 1; + a21 = 10; + a5 = 4; + a4 = 0; + a1 = 12; + a8 = 0; + a19 = 1; + a16 = 7; + return -1; + } else if(((!(a0==1)&&(((!(a4==1)&&((a23==1)&&((a17==2)&&(((input==1)&&((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4))))&&(a16==9)))))&&(a6==1))&&(a6==1)))&&(!(a11==1)||((a1==14)&&((((a28==1)&&(a19==4))&&(a21==10))&&!(a20==1)))))){ + if((a11==1)){ + a20 = 1; + a16 = 7; + a29 = 1; + a1 = 12; + a19 = 2; + a9 = 9; + a5 = 5; + a22 = 0; + }else{ + a5 = 4; + a14 = 1; + a16 = 7; + a9 = 7; + a1 = 13; + a10 = 0; + a20 = 1; + a19 = 2; + a13 = 0; + } + return -1; + } else if((((a17==2)&&((a9==7)&&(!(a23==1)||(!(a11==1)||(((((a16==7)&&(a12==1))&&!(a7==1))||(a24==1))&&(a19==4))))))&&(!(a20==1)&&(!(a14==1)&&((a13==1)&&((((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&(a1==13))&&(a21==12))))))){ + a24 = 0; + a5 = 4; + a20 = 1; + a1 = 12; + a21 = 10; + a14 = 0; + a7 = 0; + a19 = 1; + return -1; + } else if(((((!(a20==1)&&((a16==7)&&(((a3==1)&&(((a4==1)||(a12==1))&&(a28==1)))||!(a6==1))))&&(a1==14))&&(a9==10))&&(((a19==5)&&(((((a21==10)&&(input==1))&&!(a4==1))&&(a28==1))&&(a5==5)))&&(a17==2)))){ + a5 = 6; + a16 = 11; + a19 = 1; + a20 = 1; + a1 = 12; + a28 = 1; + a21 = 12; + a9 = 11; + a0 = 0; + a26 = 0; + return 25; + } else if(((((a5==6)&&((((a12==1)&&(((a13==1)&&(a16==7))&&(a17==2)))&&(a21==12))&&(a20==1)))&&(a13==1))&&((a6==1)&&(((a1==12)&&((!(a18==1)&&((a28==1)&&((a19==5)&&(input==6))))&&(a23==1)))&&(a9==7))))){ + a19 = 1; + a21 = 10; + a26 = 0; + a14 = 0; + a5 = 4; + a18 = 0; + return -1; + } else if((((!(a8==1)&&(!(a20==1)&&((a21==11)&&(((((a5==5)||(a5==6))&&(input==1))&&(a17==2))&&(a19==5)))))&&(a28==1))&&(!(a7==1)&&((a24==1)||(((a1==13)&&((a9==10)&&(((a16==9)&&(a3==1))||!(a2==1))))||(a7==1)))))){ + a9 = 8; + a7 = 1; + a13 = 0; + a5 = 6; + a20 = 1; + a16 = 7; + return -1; + } else if((((a20==1)&&(!(a2==1)&&((a16==10)&&((!(a28==1)&&(a11==1))&&(a1==12)))))&&((a21==11)&&(((((((a4==1)&&((input==5)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))))&&!(a3==1))&&(a17==2))&&!(a23==1))&&!(a28==1))&&(a19==1))))){ + a6 = 0; + a5 = 4; + a16 = 7; + a1 = 14; + a21 = 10; + a22 = 1; + a2 = 0; + a9 = 9; + return -1; + } else if((((a19==4)&&((a17==2)&&((!(a8==1)&&((a27==1)||(!(a8==1)&&(a11==1))))&&!(a8==1))))&&((a9==11)&&(((((((a1==13)&&((a5==5)&&(input==5)))&&!(a7==1))&&!(a20==1))&&!(a18==1))&&(a21==11))&&(a16==8))))){ + a1 = 12; + a5 = 4; + a9 = 7; + a16 = 7; + a14 = 0; + a24 = 0; + a28 = 1; + a20 = 1; + a21 = 10; + a19 = 1; + return -1; + } else if(((((((a19==4)&&(!(a14==1)&&(((a1==13)&&((input==1)&&(a17==2)))&&(a23==1))))&&(a9==10))&&(a20==1))&&!(a4==1))&&(((a5==6)&&((a23==1)&&((a21==11)&&((a16==11)&&((a28==1)||!(a3==1))))))&&(a13==1)))){ + a9 = 8; + a0 = 0; + a28 = 1; + a21 = 12; + a2 = 1; + a5 = 4; + a1 = 14; + a19 = 2; + return 21; + } else if(((!(a7==1)&&((a19==4)&&((((a9==11)&&(((((a5==4)||(a5==5))&&(input==6))&&!(a20==1))&&(a28==1)))&&!(a7==1))&&!(a24==1))))&&(((a21==11)&&(!(a7==1)&&(!(a6==1)||((a17==2)&&((a3==1)&&(a1==14))))))&&(a16==8)))){ + a19 = 1; + a5 = 4; + a18 = 0; + a20 = 1; + a7 = 0; + a16 = 7; + a8 = 0; + a9 = 7; + a1 = 12; + a21 = 10; + return -1; + } else if((((a16==11)&&(((a12==1)&&((((a0==1)||((a1==12)&&(a23==1)))&&(a21==10))&&!(a27==1)))&&(a19==4)))&&((!(a20==1)&&((a13==1)&&((((((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6))))&&(input==3))&&!(a0==1))&&!(a14==1))))&&(a17==2)))){ + if((a20==1)){ + a20 = 1; + a19 = 2; + a9 = 11; + a11 = 0; + a26 = 1; + a16 = 7; + a5 = 6; + a29 = 0; + }else{ + a5 = 6; + a14 = 1; + a16 = 7; + a28 = 0; + a20 = 1; + a6 = 0; + a9 = 8; + a19 = 2; + } + return 25; + } else if((((((((!(a18==1)&&((a16==9)&&((((input==4)&&((a5==4)||(a5==5)))&&!(a26==1))&&!(a20==1))))&&(a9==10))&&(a21==10))&&(a19==2))&&(a17==2))&&(a1==13))&&(!(a13==1)||((((a28==1)||!(a6==1))&&!(a8==1))||!(a11==1))))){ + a3 = 0; + a19 = 3; + a13 = 0; + a21 = 11; + a11 = 0; + a20 = 1; + a9 = 8; + a16 = 7; + a5 = 6; + return 21; + } else if((((((!(a14==1)&&(((input==1)&&(((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))&&(a17==2)))&&!(a20==1))&&!(a4==1))&&!(a26==1))&&((a26==1)||((((a1==14)&&(((a21==11)&&((a16==9)&&(a3==1)))&&(a19==2)))||!(a23==1))&&!(a0==1))))){ + a21 = 12; + a5 = 5; + a24 = 1; + a19 = 1; + a22 = 1; + a16 = 10; + a26 = 1; + a9 = 9; + a20 = 1; + return -1; + } else if(((((a12==1)&&((a16==9)&&((a17==2)&&(!(a23==1)||((a3==1)||(a14==1))))))&&(a1==12))&&((((((a23==1)&&(((input==1)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5))))&&(a21==10)))&&!(a0==1))&&!(a0==1))&&!(a20==1))&&(a19==3)))){ + a9 = 10; + a16 = 7; + a5 = 6; + a22 = 0; + a19 = 2; + a7 = 1; + a20 = 1; + a11 = 0; + return 21; + } else if(((!(a27==1)&&(((((a19==4)&&((a5==5)&&((a1==12)&&((input==5)&&(a17==2)))))&&(a23==1))&&!(a14==1))&&!(a7==1)))&&((a6==1)&&((!(a20==1)&&(((a21==11)&&((a13==1)&&(a12==1)))&&(a16==10)))&&(a9==8))))){ + a21 = 10; + a0 = 1; + a10 = 1; + a20 = 1; + a19 = 1; + a1 = 13; + a3 = 0; + a16 = 7; + return 25; + } else if((((((((a11==1)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6))))&&(a21==10))&&!(a4==1))&&(a28==1))&&(a17==2))&&((a16==11)&&(((a9==9)&&((!(a20==1)&&((!(a14==1)&&((a13==1)||(a26==1)))&&(a11==1)))&&(a1==14)))&&(a19==3))))){ + a0 = 1; + a9 = 11; + a20 = 1; + a19 = 1; + a5 = 6; + a16 = 7; + a10 = 0; + a18 = 1; + a1 = 13; + return -1; + } else if((((a16==11)&&((a17==2)&&((a7==1)||(((a2==1)||(a18==1))&&(a6==1)))))&&((a1==13)&&((a21==10)&&((a23==1)&&((a19==2)&&(((((a13==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5)))))&&(a9==10))&&(a11==1))&&!(a20==1)))))))){ + a20 = 1; + a14 = 1; + a9 = 8; + a5 = 6; + a6 = 0; + a16 = 7; + a19 = 1; + a10 = 1; + return 21; + } else if((((((input==1)&&(((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))))&&(a28==1))&&(a16==7))&&(((a19==3)&&((((a7==1)||((!(a14==1)&&(((!(a6==1)||(a12==1))&&(a17==2))||!(a11==1)))||!(a2==1)))&&(a20==1))&&(a1==12)))&&(a21==12)))){ + a24 = 0; + a3 = 1; + a19 = 1; + a21 = 10; + a5 = 4; + a9 = 7; + return -1; + } else if(((((a9==10)&&((a1==12)&&(((a11==1)||(a26==1))&&(a2==1))))&&(a16==8))&&((((a20==1)&&(((((((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a0==1))&&(a21==11))&&!(a4==1))&&!(a27==1))&&(a12==1)))&&(a19==4))&&(a17==2)))){ + a5 = 6; + a12 = 1; + a6 = 1; + a19 = 2; + a9 = 8; + a16 = 10; + a24 = 0; + return 25; + } else if((((((((a20==1)&&((a21==10)&&(((((input==4)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&(a2==1))&&!(a24==1))&&(a1==13))))&&!(a0==1))&&!(a18==1))&&(a16==8))&&!(a24==1))&&((a17==2)&&((a26==1)||((a19==5)&&(a28==1)))))){ + a20 = 0; + a11 = 1; + a0 = 0; + a16 = 7; + a5 = 6; + a24 = 0; + a9 = 10; + a1 = 14; + return 22; + } else if((((a17==2)&&(((a19==3)&&((!(a18==1)&&((a16==9)&&((a20==1)&&(input==1))))&&(a5==5)))&&(a2==1)))&&((a26==1)||((a9==7)&&(!(a24==1)&&(((a1==12)&&((!(a18==1)&&(a23==1))||(a4==1)))&&(a21==12))))))){ + a11 = 1; + a21 = 10; + a4 = 0; + a2 = 1; + a19 = 1; + a16 = 10; + a9 = 8; + return 21; + } else if((((a21==10)&&((a11==1)&&(!(a7==1)&&(((!(a20==1)&&((input==3)&&((a5==5)||(a5==6))))&&(a23==1))&&(a19==1)))))&&((((((((a28==1)||!(a11==1))&&(a16==7))||(a24==1))&&(a3==1))&&(a17==2))&&(a9==9))&&(a1==13)))){ + a12 = 1; + a5 = 4; + a9 = 7; + a7 = 0; + a20 = 1; + a26 = 0; + a1 = 12; + return -1; + } else if((((a17==2)&&((a6==1)&&((((a5==5)||(a5==6))&&(input==3))&&(a12==1))))&&((a9==11)&&((a21==11)&&(((a19==4)&&((a3==1)&&((a1==13)&&((a11==1)&&(!(a7==1)&&(((a11==1)&&(a16==11))&&(a12==1)))))))&&(a20==1)))))){ + a21 = 10; + a5 = 4; + a19 = 1; + a9 = 7; + a1 = 12; + a16 = 7; + a13 = 1; + a23 = 1; + a6 = 1; + return -1; + } else if((((((a13==1)&&((!(a26==1)&&((a19==2)&&(a13==1)))&&(a1==12)))&&!(a14==1))&&(a2==1))&&((a12==1)&&(!(a14==1)&&((a16==9)&&((((a17==2)&&((a21==12)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1))))&&(a9==11))&&!(a20==1))))))){ + a9 = 10; + a3 = 0; + a5 = 6; + a21 = 10; + a1 = 13; + a23 = 0; + a8 = 1; + return 23; + } else if(((((a1==14)&&(((a16==8)&&(((!(a6==1)||(((a6==1)&&(a21==10))&&(a2==1)))||(a18==1))&&!(a18==1)))||!(a3==1)))&&(a19==3))&&(((a17==2)&&((a23==1)&&(((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10)))&&(input==4))))&&(a20==1)))){ + a4 = 0; + a9 = 7; + a19 = 1; + a5 = 4; + a2 = 1; + a16 = 7; + a1 = 12; + a14 = 0; + return -1; + } else if(((!(a26==1)&&(!(a26==1)&&(!(a18==1)&&(!(a28==1)||((a13==1)&&(a9==11))))))&&(!(a7==1)&&(((a5==4)&&((((a16==8)&&((a1==14)&&(((input==5)&&(a19==5))&&(a21==12))))&&!(a20==1))&&!(a8==1)))&&(a17==2))))){ + a0 = 1; + a16 = 7; + a8 = 1; + a21 = 10; + a18 = 1; + a20 = 1; + a19 = 1; + a9 = 10; + return 25; + } else if(((!(a14==1)&&((((a13==1)&&((a9==10)&&(((a21==10)&&((input==3)&&((a5==4)||(a5==5))))&&!(a7==1))))&&(a19==2))&&(a16==10)))&&(((a20==1)&&((!(a8==1)&&((a1==13)&&((a3==1)&&(a17==2))))||!(a28==1)))&&(a6==1)))){ + a4 = 0; + a19 = 5; + a0 = 0; + a28 = 1; + a16 = 9; + a5 = 4; + return -1; + } else if((((((a2==1)&&(((a17==2)&&(((a20==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&(a9==7)))&&(a12==1)))&&!(a4==1))&&(a1==12))&&(((!(a27==1)&&(((a24==1)||((a2==1)&&(a21==10)))||!(a28==1)))&&(a16==8))&&(a19==5)))){ + a2 = 1; + a13 = 1; + a5 = 4; + a16 = 7; + a4 = 0; + a19 = 1; + return -1; + } else if(((((a17==2)&&(((input==4)&&(a19==3))&&(a5==6)))&&(a21==12))&&(!(a2==1)||((((a14==1)||((a8==1)||(((a1==14)&&((a9==9)&&((!(a20==1)&&(a28==1))&&!(a24==1))))||!(a11==1))))||!(a12==1))&&(a16==9))))){ + if((a13==1)){ + a1 = 13; + a12 = 0; + a9 = 10; + a19 = 1; + a11 = 0; + a16 = 7; + a20 = 1; + a21 = 10; + a5 = 5; + a28 = 0; + }else{ + a19 = 2; + a16 = 8; + a4 = 1; + a24 = 1; + a12 = 0; + a1 = 13; + } + return 25; + } else if((((a16==7)&&(((a19==1)&&((a24==1)||((!(a6==1)||((a17==2)&&(a3==1)))||!(a28==1))))&&(a21==12)))&&((((!(a20==1)&&(!(a18==1)&&((a28==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3)))))&&(a11==1))&&(a1==12))&&(a9==10)))){ + a21 = 10; + a9 = 7; + a5 = 4; + a4 = 0; + a27 = 0; + a6 = 1; + a20 = 1; + return -1; + } else if((((a17==2)&&(((((((input==4)&&(a21==11))&&!(a26==1))&&(a20==1))&&!(a7==1))&&(a19==4))&&!(a8==1)))&&(((a1==14)&&((((!(a12==1)||((a28==1)&&(a6==1)))||(a26==1))&&(a9==11))&&(a5==4)))&&(a16==7)))){ + a19 = 5; + a6 = 1; + a16 = 8; + a9 = 9; + a5 = 6; + a1 = 13; + a4 = 0; + return 23; + } else if((((((a5==5)&&((a19==5)&&(((a28==1)&&(a9==11))&&!(a8==1))))&&(a20==1))&&!(a24==1))&&(!(a0==1)&&((((!(a26==1)&&(((a16==7)&&((input==5)&&(a17==2)))&&(a1==14)))&&(a21==11))&&!(a8==1))&&!(a26==1))))){ + a16 = 8; + a11 = 1; + a19 = 3; + a12 = 1; + a21 = 12; + a9 = 10; + return 25; + } else if((((!(a18==1)&&((a28==1)&&(!(a7==1)&&(((a21==12)&&((((a5==4)||(a5==5))&&(input==6))&&!(a8==1)))&&(a17==2)))))&&(a19==2))&&(((((((a6==1)&&!(a14==1))&&!(a0==1))&&(a16==9))&&(a9==8))&&(a1==13))&&!(a20==1)))){ + if((a21==10)){ + a29 = 1; + a25 = 1; + a9 = 7; + a1 = 12; + a5 = 5; + }else{ + a28 = 0; + a21 = 10; + a19 = 1; + a1 = 14; + a16 = 7; + a5 = 4; + a7 = 1; + a2 = 0; + a20 = 1; + } + return -1; + } else if((((a21==10)&&((a16==11)&&(!(a20==1)&&(!(a18==1)&&(((a23==1)&&(!(a28==1)||((a1==13)&&((!(a28==1)||(a11==1))||!(a6==1)))))&&(a17==2))))))&&((a19==3)&&(!(a26==1)&&((((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6))))&&(input==5)))))){ + a28 = 0; + a15 = 0; + a19 = 1; + a5 = 6; + a9 = 7; + a16 = 7; + a20 = 1; + return -1; + } else if((((a20==1)&&((((((a16==10)&&((a19==1)&&((a2==1)&&((a9==9)&&(a3==1)))))&&(a23==1))&&(a17==2))||(a18==1))&&(a12==1)))&&(((((((a5==5)||(a5==6))&&(input==3))&&(a1==12))&&!(a4==1))&&(a2==1))&&(a21==11)))){ + a9 = 7; + a12 = 1; + a5 = 4; + a4 = 0; + a21 = 10; + a16 = 7; + a11 = 1; + return -1; + } else if((((a28==1)&&(((((a16==8)&&((((a21==12)&&(input==1))&&(a19==1))&&(a9==8)))&&(a5==4))&&!(a20==1))&&(a28==1)))&&((((a17==2)&&(((a1==13)&&((a13==1)&&(a13==1)))||!(a2==1)))||(a8==1))||(a18==1)))){ + a24 = 1; + a9 = 9; + a1 = 14; + a20 = 1; + a29 = 0; + a21 = 10; + a12 = 0; + a16 = 7; + return 21; + } else if((((a3==1)&&((a20==1)&&((((((a19==1)&&((a28==1)&&((input==4)&&(((((a5==6)&&(a1==12))&&(a9==11))||((a9==7)&&((a1==13)&&(a5==4))))||(((a1==13)&&(a5==5))&&(a9==7))))))&&(a13==1))&&(a16==8))&&(a23==1))&&(a21==10))))&&((a0==1)||((a4==1)||((a17==2)&&(a11==1)))))){ + a9 = 7; + a12 = 1; + a5 = 4; + a16 = 7; + a4 = 0; + a1 = 12; + a8 = 0; + return -1; + } else if((((a1==13)&&(((a7==1)||((!(a26==1)&&(a3==1))||(a26==1)))&&(a17==2)))&&((((a3==1)&&(((a20==1)&&((((input==6)&&((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a5==4)&&(a9==9))))&&!(a8==1))&&(a3==1)))&&(a16==10)))&&(a21==11))&&(a19==4)))){ + a1 = 14; + a2 = 1; + a9 = 10; + a5 = 4; + a7 = 0; + a16 = 9; + return 21; + } else if((((a16==7)&&((((a19==5)&&(((a20==1)&&(a28==1))||(a4==1)))&&(a13==1))&&(a17==2)))&&(((a23==1)&&((((((input==1)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5))))&&(a21==11))&&(a1==14))&&(a28==1))&&(a23==1)))&&!(a0==1)))){ + a16 = 8; + a5 = 6; + a19 = 3; + a7 = 0; + a21 = 12; + a1 = 13; + a9 = 7; + a13 = 1; + a14 = 0; + return 23; + } else if((((a3==1)&&((a19==2)&&((((a23==1)&&(((((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(input==6))&&!(a18==1)))&&(a16==11))&&(a17==2))))&&(((a20==1)&&((a1==12)&&((!(a14==1)&&((a23==1)&&!(a7==1)))&&(a21==11))))&&!(a7==1)))){ + a13 = 1; + a16 = 9; + a5 = 6; + a21 = 12; + a0 = 0; + a7 = 0; + a9 = 10; + a19 = 3; + return 21; + } else if((((a17==2)&&(!(a28==1)||((a13==1)&&((!(a0==1)&&((a19==2)&&((a6==1)&&(a16==10))))&&!(a20==1)))))&&((((((((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5)))&&(input==3))&&(a1==13))&&(a3==1))&&(a21==11))&&(a3==1))&&!(a27==1)))){ + a19 = 4; + a9 = 10; + a5 = 4; + a1 = 12; + a16 = 8; + a24 = 1; + a7 = 1; + a13 = 0; + return 22; + } else if(((((a7==1)||((a0==1)||((a1==14)&&((a11==1)||!(a23==1)))))&&!(a20==1))&&((a16==9)&&(((a19==4)&&((a28==1)&&((a17==2)&&(((a21==12)&&((((a5==4)||(a5==5))&&(input==4))&&(a2==1)))&&!(a14==1)))))&&(a9==11))))){ + if((a1==13)){ + a0 = 1; + a20 = 1; + a21 = 10; + a15 = 0; + a16 = 7; + a19 = 1; + a12 = 0; + a5 = 6; + }else{ + a20 = 1; + a5 = 4; + a16 = 10; + a10 = 0; + a1 = 12; + a21 = 10; + a9 = 8; + a12 = 0; + a25 = 0; + a19 = 1; + } + return -1; + } else if((((!(a13==1)&&((a19==5)&&((a9==7)&&((a20==1)&&((input==3)&&(a16==7))))))&&(a21==10))&&((a17==2)&&(((a26==1)&&((a26==1)&&((((a1==13)&&((a3==1)&&(a24==1)))&&(a5==4))&&(a27==1))))&&(a24==1))))){ + a5 = 5; + a9 = 8; + a19 = 1; + a28 = 0; + a15 = 1; + a12 = 0; + return -1; + } else if((((((a6==1)&&((a4==1)||(((a6==1)&&(a21==11))&&(a1==14))))||(a26==1))&&(a23==1))&&(((a17==2)&&(((a16==7)&&((a19==4)&&((a28==1)&&((input==4)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))))))&&!(a20==1)))&&!(a0==1)))){ + a5 = 4; + a11 = 1; + a1 = 12; + a2 = 1; + a13 = 1; + a9 = 7; + a21 = 10; + a20 = 1; + a19 = 1; + return -1; + } else if(((((a1==14)&&((!(a24==1)&&((a2==1)&&(((a20==1)&&((input==3)&&(a5==4)))&&(a17==2))))&&(a21==12)))&&(a19==2))&&((!(a23==1)||(((a9==11)&&(((a13==1)||!(a28==1))||(a8==1)))&&(a16==10)))||!(a12==1)))){ + a19 = 1; + a21 = 10; + a26 = 0; + a9 = 7; + a1 = 12; + a18 = 0; + a16 = 7; + a13 = 1; + return -1; + } else if((((a21==10)&&((!(a24==1)&&(((!(a18==1)&&((!(a14==1)&&((!(a20==1)&&(((a5==5)||(a5==6))&&(input==4)))&&(a16==10)))&&(a11==1)))&&(a17==2))&&(a6==1)))&&(a1==13)))&&((a19==1)&&(!(a11==1)||((a12==1)&&(a9==7)))))){ + a5 = 6; + a13 = 0; + a16 = 7; + a0 = 1; + a1 = 12; + return -1; + } else if(((!(a20==1)&&((a9==8)&&((a28==1)&&((a2==1)&&(((((a1==12)&&(input==5))&&(a17==2))&&(a13==1))&&!(a24==1))))))&&(!(a2==1)||(((((a16==9)&&((a11==1)&&(a5==6)))&&(a19==1))&&(a6==1))&&(a21==10))))){ + if((a3==1)){ + a19 = 2; + a25 = 1; + a7 = 1; + a16 = 7; + a9 = 10; + a29 = 0; + a20 = 1; + }else{ + a26 = 1; + a7 = 1; + a12 = 0; + a9 = 11; + a20 = 1; + a16 = 7; + a1 = 14; + } + return -1; + } else if((((a1==14)&&((a3==1)&&((a2==1)&&(((input==1)&&(a21==12))&&(a13==1)))))&&((a9==10)&&((((a16==7)&&(!(a8==1)&&((a19==1)&&((((a11==1)&&(a23==1))&&(a13==1))&&(a17==2)))))&&(a5==5))&&!(a20==1))))){ + a1 = 12; + a9 = 8; + a12 = 1; + a21 = 10; + a16 = 11; + a7 = 0; + a20 = 1; + a19 = 4; + a3 = 1; + return 21; + } return calculate_output28(input); + } + + int calculate_output28(int input) { + if((((((((!(a20==1)&&((input==5)&&(((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6))))))&&(a16==10))&&!(a18==1))&&(a12==1))&&!(a4==1))&&(a19==2))&&((a21==12)&&(((a1==12)&&((a17==2)&&(((a11==1)||!(a23==1))||!(a13==1))))||!(a28==1))))){ + if((a1==14)){ + a16 = 9; + a5 = 5; + a21 = 11; + a25 = 0; + a14 = 1; + a27 = 1; + a9 = 7; + a19 = 1; + }else{ + a10 = 0; + a5 = 4; + a1 = 14; + a19 = 4; + a9 = 7; + a16 = 7; + a14 = 1; + a21 = 10; + } + return -1; + } else if((((((a21==12)&&((a13==1)&&(((input==4)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&!(a27==1))))&&!(a7==1))&&(a16==7))&&((a17==2)&&((!(a0==1)&&((a1==13)&&(!(a7==1)&&(!(a27==1)&&((a19==4)&&(a13==1))))))&&!(a20==1))))){ + a6 = 1; + a5 = 4; + a1 = 12; + a9 = 7; + a19 = 1; + a18 = 0; + a26 = 0; + a20 = 1; + a21 = 10; + return -1; + } else if(((!(a27==1)&&((a3==1)&&((!(a27==1)&&((a23==1)&&((a1==13)&&((input==4)&&(a9==10)))))&&(a17==2))))&&((((((a19==3)&&(((a16==7)&&(a13==1))&&(a20==1)))||!(a12==1))&&(a5==6))&&(a21==12))&&(a6==1)))){ + a8 = 0; + a1 = 12; + a14 = 0; + a19 = 1; + a11 = 1; + a21 = 10; + a9 = 7; + a5 = 4; + return -1; + } else if(((((!(a0==1)&&(((a28==1)&&!(a20==1))||(a0==1)))&&(a16==8))&&(a9==7))&&(((a1==12)&&(((a13==1)&&((a19==2)&&(!(a0==1)&&((!(a0==1)&&((input==1)&&((a5==5)||(a5==6))))&&(a6==1)))))&&(a17==2)))&&(a21==10)))){ + a2 = 1; + a23 = 1; + a7 = 0; + a5 = 4; + a19 = 1; + a16 = 7; + a20 = 1; + return -1; + } else if((((a21==10)&&(((a20==1)&&((((a17==2)&&((a16==9)&&((!(a24==1)&&((a5==6)&&(input==4)))&&!(a8==1))))&&(a9==10))&&(a1==14)))&&(a3==1)))&&((!(a26==1)&&(((a23==1)||(a4==1))||(a14==1)))&&(a19==1)))){ + a1 = 12; + a9 = 7; + a18 = 0; + a5 = 4; + a16 = 7; + a2 = 1; + a7 = 0; + return -1; + } else if((((a9==10)&&((((a19==1)&&(input==4))&&(a13==1))&&(a21==11)))&&(!(a7==1)&&((a18==1)||((a16==9)&&((a20==1)&&(!(a4==1)&&((a5==4)&&((a1==14)&&(((a17==2)&&(!(a11==1)||(a28==1)))&&!(a8==1))))))))))){ + a4 = 0; + a27 = 0; + a21 = 10; + a1 = 12; + a16 = 7; + a9 = 7; + a8 = 0; + return -1; + } else if(((((a17==2)&&(!(a28==1)||((a14==1)||((a13==1)&&!(a20==1)))))&&(a9==11))&&((a1==13)&&(((!(a18==1)&&(!(a0==1)&&(!(a27==1)&&((a21==11)&&((a3==1)&&((a19==3)&&(input==6)))))))&&(a5==5))&&(a16==8))))){ + a21 = 10; + a7 = 0; + a27 = 0; + a20 = 1; + a19 = 5; + a12 = 1; + a9 = 9; + a16 = 10; + return 21; + } else if((((a20==1)&&(!(a7==1)&&((a28==1)&&((a13==1)&&(((((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))&&(input==3))&&(a28==1))&&(a17==2))))))&&(((((a16==10)&&((a12==1)&&((a3==1)&&(a11==1))))&&(a21==10))&&(a19==5))&&(a1==14)))){ + a19 = 1; + a11 = 1; + a1 = 12; + a5 = 4; + a16 = 7; + a2 = 1; + a9 = 7; + return -1; + } else if((((((a1==13)&&(!(a3==1)||(((!(a13==1)||((a12==1)&&(a19==2)))&&(a16==10))&&!(a20==1))))&&!(a7==1))&&(a9==10))&&((a17==2)&&((a21==10)&&(((((input==1)&&((a5==5)||(a5==6)))&&!(a18==1))&&(a6==1))&&!(a24==1)))))){ + a9 = 11; + a16 = 7; + a20 = 1; + a5 = 4; + a29 = 0; + a19 = 1; + a4 = 1; + a28 = 0; + return -1; + } else if((((a21==12)&&((a1==13)&&((a9==10)&&(!(a7==1)&&((a28==1)&&((input==5)&&(a5==6)))))))&&(((a20==1)&&(((((((a12==1)&&(a17==2))&&(a3==1))||(a8==1))&&!(a4==1))||(a18==1))&&(a16==7)))&&(a19==1)))){ + a21 = 10; + a13 = 1; + a16 = 9; + a12 = 1; + a1 = 12; + a2 = 1; + return 25; + } else if((((a17==2)&&((((a6==1)&&((a19==1)&&(((!(a20==1)&&(input==5))&&(a12==1))&&!(a7==1))))&&(a5==6))&&(a16==10)))&&((a6==1)&&(!(a26==1)&&(((a1==13)&&(((a21==11)&&(a23==1))||(a27==1)))&&(a9==11)))))){ + a5 = 4; + a29 = 0; + a9 = 9; + a20 = 1; + a26 = 1; + a8 = 1; + a16 = 7; + a21 = 10; + a1 = 12; + return -1; + } else if((((a16==10)&&(((!(a28==1)||((a21==10)&&(a6==1)))&&!(a8==1))&&(a17==2)))&&(((a1==14)&&(((((!(a14==1)&&((input==3)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))))&&(a19==2))&&!(a14==1))&&!(a20==1))&&!(a14==1)))&&(a11==1)))){ + if((a8==1)){ + a29 = 0; + a16 = 7; + a20 = 1; + a5 = 6; + a19 = 1; + a26 = 1; + a28 = 0; + a9 = 10; + }else{ + a1 = 13; + a4 = 1; + a9 = 9; + a20 = 1; + a19 = 1; + a16 = 7; + a5 = 4; + a11 = 0; + } + return -1; + } else if((((a17==2)&&(((((!(a28==1)||((a4==1)||(a3==1)))||!(a6==1))&&(a1==13))||!(a11==1))&&(a19==4)))&&((((((a21==11)&&((((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))&&(input==5)))&&(a28==1))&&(a12==1))&&(a16==9))&&(a20==1)))){ + if((a15==1)){ + a27 = 0; + a16 = 7; + a20 = 0; + a1 = 12; + a5 = 6; + a4 = 0; + a19 = 1; + a9 = 8; + a26 = 0; + }else{ + a3 = 1; + a4 = 0; + a19 = 3; + a13 = 1; + a21 = 10; + a9 = 11; + a5 = 5; + a1 = 12; + } + return -1; + } else if(((!(a24==1)&&((((a11==1)&&((!(a18==1)&&((a20==1)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==3))))&&(a19==1)))&&(a2==1))&&(a23==1)))&&(((a21==12)&&(((a16==8)&&((a24==1)||(a3==1)))&&(a17==2)))&&(a1==12)))){ + a9 = 7; + a21 = 10; + a5 = 4; + a16 = 7; + a8 = 0; + a0 = 0; + a7 = 0; + return -1; + } else if(((!(a14==1)&&(((a9==8)&&((!(a18==1)&&((a20==1)&&((((a5==5)||(a5==6))&&(input==1))&&(a16==9))))&&(a19==4)))&&(a28==1)))&&((((a1==13)&&(!(a28==1)||(!(a4==1)&&((a11==1)&&(a17==2)))))&&(a21==10))&&!(a24==1)))){ + a9 = 9; + a28 = 1; + a19 = 2; + a0 = 0; + a5 = 6; + a7 = 0; + a1 = 14; + return 21; + } else if(((((((a19==1)&&((((a1==13)&&((a24==1)||(a6==1)))&&(a17==2))&&(a16==8)))&&(a20==1))&&(a12==1))&&(a9==10))&&((!(a26==1)&&(!(a4==1)&&((((a21==12)&&(input==5))&&!(a26==1))&&(a5==5))))&&!(a0==1)))){ + a21 = 10; + a19 = 4; + a0 = 0; + a16 = 7; + a6 = 1; + return 25; + } else if(((!(a27==1)&&((((a19==4)&&(((a3==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a1==12)))&&(a16==10)))&&(a12==1))&&!(a18==1)))&&(!(a6==1)||((a17==2)&&((a9==9)&&((a20==1)&&(!(a18==1)&&((a21==11)&&(a28==1))))))))){ + a5 = 6; + a4 = 0; + a16 = 7; + a1 = 14; + a14 = 0; + a19 = 2; + a0 = 0; + a9 = 8; + a21 = 10; + return 23; + } else if((((a17==2)&&(((a1==12)&&((a19==4)&&((a20==1)&&((a23==1)&&(((((input==6)&&((a5==4)||(a5==5)))&&!(a7==1))&&!(a26==1))&&!(a7==1))))))&&(a21==10)))&&(((a16==9)&&(!(a13==1)||(!(a6==1)||(a3==1))))&&(a9==9)))){ + a14 = 0; + a19 = 3; + a9 = 10; + a26 = 0; + a5 = 5; + a27 = 0; + a20 = 0; + a16 = 8; + return 21; + } else if(((!(a20==1)&&((a19==2)&&((!(a18==1)&&(((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a5==4)&&(a9==9)))&&(input==3)))&&!(a0==1))))&&(((a21==11)&&((a1==13)&&((a17==2)&&(((a13==1)&&(((a23==1)||!(a23==1))||!(a13==1)))||(a4==1)))))&&(a16==10)))){ + a9 = 11; + a5 = 6; + a21 = 10; + a20 = 1; + a16 = 7; + a10 = 0; + a3 = 0; + a19 = 1; + a25 = 1; + return -1; + } else if(((!(a6==1)||(((a5==5)&&(((a21==11)&&((a12==1)&&!(a8==1)))||!(a13==1)))&&(a17==2)))&&((a9==8)&&((a19==4)&&(((a2==1)&&(((!(a20==1)&&((a1==12)&&(input==6)))&&(a11==1))&&!(a27==1)))&&(a16==10)))))){ + if((a0==1)){ + a21 = 10; + a16 = 7; + a20 = 1; + a19 = 2; + a7 = 1; + a15 = 0; + a11 = 0; + }else{ + a1 = 13; + a2 = 0; + a20 = 1; + a11 = 0; + a21 = 10; + a19 = 1; + a16 = 7; + a13 = 0; + } + return 21; + } else if(((!(a20==1)&&((a9==9)&&((!(a7==1)&&((((a12==1)&&((((a5==5)||(a5==6))&&(input==6))&&(a6==1)))&&(a21==10))&&(a17==2)))&&!(a7==1))))&&((a19==3)&&((a16==8)&&(((a1==14)&&((a23==1)&&(a13==1)))||(a24==1)))))){ + a13 = 1; + a1 = 12; + a21 = 12; + a16 = 10; + a19 = 1; + a5 = 6; + a20 = 1; + a0 = 0; + a9 = 11; + a27 = 0; + return 22; + } else if((((((!(a27==1)&&((a4==1)||((((!(a8==1)&&(a28==1))&&(a20==1))||(a27==1))&&(a17==2))))&&!(a7==1))&&(a16==7))&&(a1==12))&&(((((((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&(input==1))&&(a19==5))&&(a3==1))&&(a21==10)))){ + if((a20==1)){ + a28 = 1; + a5 = 6; + a1 = 13; + a6 = 1; + a20 = 0; + a16 = 8; + a9 = 8; + a19 = 4; + a24 = 0; + }else{ + a1 = 13; + a5 = 4; + a0 = 0; + a26 = 0; + a21 = 12; + a19 = 2; + a2 = 1; + a9 = 7; + } + return 25; + } else if((((a21==12)&&(((a23==1)&&(a16==7))&&(a28==1)))&&(((((a19==3)&&(((a13==1)&&((((((a9==11)&&((a5==6)&&(a1==12)))||((a9==7)&&((a5==4)&&(a1==13))))&&(input==1))&&!(a27==1))&&(a3==1)))&&(a6==1)))&&!(a27==1))&&(a17==2))&&!(a20==1)))){ + a5 = 4; + a1 = 13; + a9 = 9; + a26 = 0; + a19 = 2; + a28 = 1; + a21 = 10; + a6 = 1; + a20 = 1; + return 25; + } else if((((a20==1)&&((a21==10)&&((a1==14)&&((((a6==1)&&(!(a0==1)&&(a2==1)))||!(a28==1))||(a26==1)))))&&((a19==5)&&((a16==10)&&((((a2==1)&&(((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))&&(input==5)))&&(a23==1))&&(a17==2)))))){ + a1 = 12; + a2 = 1; + a5 = 4; + a19 = 1; + a9 = 7; + a13 = 1; + a23 = 1; + return 21; + } else if(((!(a0==1)&&(!(a27==1)&&((((a17==2)&&((a20==1)&&((a21==12)&&(a3==1))))&&(a11==1))&&(a16==9))))&&(!(a14==1)&&(((((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==1))||((a19==2)&&(((a1==12)&&(a5==4))&&(a9==7))))&&(input==3))&&(a11==1))&&(a28==1))))){ + a1 = 12; + a5 = 4; + a19 = 1; + a2 = 1; + a12 = 1; + a16 = 7; + a28 = 1; + a21 = 10; + a9 = 7; + return -1; + } else if(((((((a17==2)&&(((a3==1)&&(((a6==1)||(a18==1))&&(a16==8)))&&(a21==10)))||(a18==1))&&(a19==1))&&(a12==1))&&((!(a26==1)&&((a13==1)&&((a1==12)&&(((input==6)&&((a5==4)||(a5==5)))&&(a20==1)))))&&(a9==7)))){ + a16 = 9; + a21 = 12; + a8 = 0; + a26 = 0; + a1 = 14; + a4 = 0; + a5 = 6; + return 21; + } else if((((!(a26==1)&&(((a16==8)&&((((a5==5)||(a5==6))&&(input==5))&&(a1==14)))&&(a6==1)))&&!(a27==1))&&((((a21==12)&&(((a19==2)&&((((a9==7)&&(a2==1))||!(a6==1))&&!(a8==1)))&&(a17==2)))||!(a23==1))&&(a20==1)))){ + a21 = 10; + a3 = 1; + a5 = 4; + a19 = 1; + a16 = 7; + a1 = 12; + a4 = 0; + a13 = 1; + return -1; + } else if(((!(a26==1)&&(((a9==7)&&(!(a0==1)&&(((a13==1)&&((a1==13)&&(a2==1)))||!(a6==1))))&&(a5==4)))&&((((a19==3)&&(((a17==2)&&(((input==3)&&(a16==9))&&(a21==12)))&&!(a27==1)))&&(a20==1))&&(a23==1)))){ + a21 = 10; + a16 = 7; + a1 = 12; + a8 = 0; + a14 = 0; + a6 = 1; + a19 = 1; + return -1; + } else if((((((a19==5)&&(!(a27==1)&&((!(a8==1)&&(((a1==14)&&(!(a14==1)&&(((a5==5)||(a5==6))&&(input==1))))&&(a17==2)))&&!(a14==1))))&&(a9==7))&&!(a20==1))&&((a16==8)&&((((a27==1)||(a11==1))&&(a21==11))||!(a3==1))))){ + if((a17==2)){ + a9 = 9; + a22 = 0; + a1 = 13; + a21 = 10; + a5 = 4; + a19 = 1; + a16 = 7; + a2 = 0; + a20 = 1; + a7 = 1; + }else{ + a5 = 5; + a3 = 0; + a9 = 9; + a23 = 0; + a19 = 2; + a21 = 10; + a20 = 1; + a16 = 7; + a1 = 12; + } + return 21; + } else if((((a6==1)&&(!(a23==1)||((a20==1)&&(a6==1))))&&((!(a18==1)&&((!(a27==1)&&((((a19==1)&&((a21==10)&&(((input==6)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(a16==9))))&&!(a24==1))&&(a17==2)))&&(a1==14)))&&!(a0==1)))){ + if((a16==11)){ + a27 = 0; + a20 = 0; + a3 = 1; + a16 = 8; + a6 = 1; + a5 = 5; + a19 = 3; + a9 = 7; + }else{ + a16 = 7; + a26 = 0; + a14 = 0; + a21 = 12; + a9 = 8; + a5 = 6; + a6 = 1; + } + return 25; + } else if((((((a6==1)&&(!(a14==1)&&(a12==1)))||(a8==1))&&(a17==2))&&((((a19==4)&&(((a20==1)&&((a16==10)&&((((((a5==5)||(a5==6))&&(input==6))&&!(a27==1))&&(a13==1))&&!(a27==1))))&&(a9==7)))&&(a21==10))&&(a1==14)))){ + a26 = 0; + a6 = 1; + a28 = 1; + a16 = 9; + a5 = 4; + return 25; + } else if((((a3==1)&&((((!(a14==1)&&((((a12==1)&&(a21==12))&&(a5==5))&&!(a27==1)))&&(a16==10))&&!(a20==1))&&(a19==4)))&&(((a12==1)&&((a17==2)&&(((a2==1)&&((a9==7)&&(input==1)))&&(a1==12))))&&(a6==1)))){ + a21 = 10; + a11 = 0; + a1 = 13; + a16 = 7; + a5 = 4; + a20 = 1; + a25 = 1; + a19 = 2; + a15 = 0; + return -1; + } else if(((!(a27==1)&&((a9==11)&&((((((a21==10)&&(input==4))&&(a19==2))&&!(a20==1))&&(a17==2))&&(a23==1))))&&(((a16==11)&&((a27==1)||((!(a12==1)||((a1==14)&&((a5==5)&&(a28==1))))&&(a11==1))))&&(a3==1)))){ + a19 = 5; + a16 = 7; + a26 = 1; + a1 = 13; + a9 = 8; + a20 = 1; + a12 = 0; + a27 = 1; + return 22; + } else if(((((a0==1)||(((a21==12)&&(!(a12==1)||(((((a23==1)&&(a3==1))&&(a9==9))&&(a16==11))&&(a17==2))))&&!(a4==1)))&&(a28==1))&&(((((a19==3)&&((input==1)&&((a5==5)||(a5==6))))&&(a20==1))&&(a1==13))&&(a6==1)))){ + a4 = 0; + a19 = 5; + a1 = 12; + a9 = 8; + a5 = 4; + a23 = 1; + a11 = 1; + return 21; + } else if(((((a24==1)||((a3==1)&&((a9==11)&&(!(a24==1)&&(!(a26==1)&&((a16==9)&&(a12==1)))))))||(a4==1))&&((a28==1)&&(((a20==1)&&((((a1==13)&&(((a5==5)||(a5==6))&&(input==5)))&&(a17==2))&&(a19==5)))&&(a21==10))))){ + if((a1==12)){ + a21 = 11; + a23 = 1; + a16 = 8; + a20 = 0; + a19 = 3; + a1 = 14; + a2 = 1; + a9 = 10; + a18 = 0; + a5 = 4; + }else{ + a5 = 4; + a12 = 1; + a7 = 0; + a28 = 1; + a21 = 11; + a9 = 7; + } + return 25; + } else if(((!(a4==1)&&(((((a3==1)&&(a16==9))||(a27==1))&&(a1==13))&&(a9==9)))&&((((a28==1)&&((((a12==1)&&(!(a8==1)&&((((a5==4)||(a5==5))&&(input==6))&&(a20==1))))&&(a13==1))&&(a21==10)))&&(a17==2))&&(a19==1)))){ + a1 = 12; + a5 = 4; + a16 = 7; + a14 = 0; + a23 = 1; + a9 = 7; + a11 = 1; + return -1; + } else if(((((a6==1)&&((((((a1==14)&&(((a5==5)&&(input==5))&&(a6==1)))&&(a9==8))&&(a16==10))&&!(a4==1))&&(a20==1)))&&(a21==10))&&((a17==2)&&(((a4==1)||(((a3==1)&&(a12==1))&&(a19==2)))&&(a11==1))))){ + a19 = 5; + a11 = 1; + a9 = 10; + a14 = 0; + a28 = 1; + a1 = 13; + a16 = 11; + return 25; + } else if((((a19==2)&&((a5==4)&&(((a8==1)||((!(a8==1)&&((a14==1)||(a2==1)))&&(a16==8)))&&(a21==10))))&&((a17==2)&&((((!(a20==1)&&(((input==4)&&(a9==11))&&!(a14==1)))&&!(a26==1))&&(a1==14))&&!(a8==1))))){ + a5 = 5; + a18 = 0; + a6 = 1; + a19 = 4; + a1 = 12; + a26 = 0; + a9 = 7; + a21 = 12; + a20 = 1; + return -1; + } else if((((a1==13)&&((a21==11)&&((a19==4)&&((a16==8)&&(((a17==2)&&(((a20==1)&&(a6==1))&&!(a8==1)))&&(a6==1))))))&&((a9==8)&&(((a3==1)&&(((a2==1)&&((input==6)&&((a5==4)||(a5==5))))&&!(a26==1)))&&(a12==1))))){ + a16 = 7; + a1 = 12; + a13 = 1; + a21 = 10; + a0 = 0; + a19 = 1; + a5 = 4; + a9 = 7; + a4 = 0; + return -1; + } else if(((!(a0==1)&&(((a20==1)&&(((a21==11)&&((a19==4)&&(((input==1)&&(a16==11))&&!(a14==1))))&&(a9==8)))&&(a13==1)))&&((a1==14)&&(!(a8==1)&&((!(a4==1)&&((a6==1)&&((a17==2)&&(a3==1))))&&(a5==5)))))){ + a9 = 7; + a23 = 1; + a16 = 9; + a21 = 12; + a1 = 12; + a11 = 1; + a8 = 0; + a19 = 2; + return 21; + } else if((((a16==7)&&(!(a27==1)&&(((a9==10)&&((a5==5)&&(a23==1)))&&(a19==2))))&&((a20==1)&&(!(a4==1)&&(!(a7==1)&&(((a2==1)&&((a28==1)&&((a21==12)&&(((input==5)&&(a1==14))&&(a17==2)))))&&(a2==1))))))){ + a19 = 1; + a24 = 0; + a2 = 1; + a12 = 1; + a9 = 7; + a5 = 4; + a21 = 10; + a1 = 12; + return -1; + } else if((((((((((((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7))))&&(input==5))&&(a2==1))&&(a13==1))&&(a12==1))&&!(a26==1))&&(a21==12))&&(a19==5))&&((a17==2)&&((a14==1)||((a1==12)&&(((a20==1)&&((a28==1)&&(a13==1)))&&(a16==10))))))){ + a9 = 10; + a1 = 14; + a14 = 0; + a0 = 0; + a21 = 10; + a16 = 7; + a19 = 4; + a5 = 6; + return 25; + } else if((((!(a20==1)&&((a6==1)&&((((a28==1)&&(!(a4==1)&&((input==3)&&(((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))))))&&(a1==13))&&(a19==5))))&&(a21==10))&&((a18==1)||(((a17==2)&&(((a12==1)&&(a3==1))||(a18==1)))&&(a16==8))))){ + a20 = 1; + a5 = 4; + a16 = 7; + a9 = 7; + a14 = 0; + a12 = 1; + a1 = 12; + a19 = 1; + return -1; + } else if((((a19==1)&&((a2==1)&&((((a21==12)&&((!(a8==1)&&((a1==14)&&(a12==1)))||(a18==1)))||!(a6==1))&&(a17==2))))&&((a23==1)&&(!(a20==1)&&((a3==1)&&((((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8)))&&(input==1))&&(a16==9))))))){ + if((a0==1)){ + a5 = 6; + a29 = 0; + a16 = 7; + a10 = 1; + a20 = 1; + a1 = 13; + a15 = 0; + a9 = 11; + a21 = 10; + }else{ + a5 = 6; + a1 = 13; + a16 = 7; + a22 = 0; + a9 = 8; + a13 = 0; + a21 = 10; + a20 = 1; + } + return -1; + } else if((((a17==2)&&((a9==9)&&((a1==12)&&(((a21==11)&&((input==6)&&((a5==5)||(a5==6))))&&(a6==1)))))&&((((a19==3)&&((a28==1)&&(!(a4==1)&&((((a7==1)||(a12==1))&&(a16==9))&&!(a20==1)))))||(a27==1))||!(a3==1)))){ + if((a7==1)){ + a9 = 11; + a1 = 14; + a22 = 1; + a19 = 1; + a8 = 1; + a20 = 1; + a13 = 0; + a21 = 10; + a5 = 5; + a16 = 7; + }else{ + a27 = 1; + a7 = 1; + a3 = 0; + a19 = 5; + a1 = 13; + a21 = 12; + a5 = 5; + a16 = 7; + } + return -1; + } else if((((((a13==1)&&((a11==1)&&((a9==10)&&(input==1))))&&(a5==6))&&!(a7==1))&&((a21==12)&&((a17==2)&&((a3==1)&&(((a19==2)&&((a16==9)&&((a20==1)&&((!(a24==1)&&(a28==1))||(a14==1)))))&&(a1==12))))))){ + a21 = 10; + a9 = 7; + a4 = 0; + a0 = 0; + a5 = 4; + a19 = 1; + a16 = 7; + a6 = 1; + return -1; + } else if((((a5==5)&&(((((a28==1)&&(((a9==11)&&(input==5))&&!(a27==1)))&&(a28==1))&&(a28==1))&&(a20==1)))&&((a17==2)&&(((a1==13)&&((a16==7)&&((((a2==1)&&(a28==1))&&(a19==3))||(a7==1))))&&(a21==10))))){ + a21 = 11; + a13 = 1; + a14 = 0; + a8 = 0; + a19 = 2; + a9 = 10; + a5 = 4; + a1 = 12; + return 23; + } else if(((((a17==2)&&((((((a13==1)&&!(a20==1))&&!(a4==1))||!(a23==1))||(a26==1))&&!(a27==1)))&&(a9==7))&&((a1==12)&&((a21==12)&&(((a16==7)&&(!(a14==1)&&((a28==1)&&(((a5==5)||(a5==6))&&(input==4)))))&&(a19==4)))))){ + a19 = 1; + a20 = 1; + a13 = 1; + a21 = 10; + a26 = 0; + a27 = 0; + a5 = 4; + return -1; + } else if((((a28==1)&&((a7==1)||((a16==10)&&(a6==1))))&&((a17==2)&&(((!(a20==1)&&(((((a21==11)&&(!(a18==1)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==4))))&&!(a14==1))&&(a19==1))&&!(a7==1)))&&!(a24==1))&&(a1==13))))){ + a8 = 1; + a21 = 10; + a9 = 8; + a20 = 1; + a16 = 7; + a5 = 6; + a6 = 0; + a27 = 1; + a1 = 12; + return 25; + } else if((((((((a19==2)&&((a17==2)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==6))))&&(a20==1))&&(a1==14))&&!(a27==1))&&(a28==1))&&(((((a23==1)&&(!(a6==1)||((a13==1)&&(a21==11))))&&(a16==7))&&!(a24==1))&&!(a4==1)))){ + a1 = 13; + a19 = 4; + a9 = 8; + a0 = 0; + a4 = 0; + a5 = 4; + a21 = 10; + a16 = 8; + a2 = 1; + return 25; + } else if(((((((a21==10)&&(!(a0==1)&&(!(a4==1)&&(((a6==1)&&(a23==1))&&(a11==1)))))&&(a16==8))&&(a9==9))&&(a17==2))&&(!(a20==1)&&(((a19==5)&&((a1==14)&&((a2==1)&&(((a5==5)||(a5==6))&&(input==1)))))&&!(a0==1))))){ + a20 = 1; + a9 = 7; + a19 = 1; + a14 = 0; + a16 = 7; + a1 = 12; + a5 = 4; + return -1; + } else if(((((a16==7)&&((a5==5)&&(((a28==1)&&((a12==1)&&(!(a4==1)&&(((a2==1)&&(a17==2))&&(a12==1)))))&&(a19==5))))&&(a9==11))&&(!(a20==1)&&(((a23==1)&&(((input==6)&&(a1==13))&&(a21==12)))&&(a13==1))))){ + a4 = 0; + a9 = 8; + a1 = 12; + a21 = 10; + a19 = 1; + a18 = 0; + a20 = 1; + a16 = 10; + return 21; + } else if((((a17==2)&&((!(a23==1)||((a14==1)||((a19==2)&&((((a4==1)||(a3==1))&&(a16==8))||(a14==1)))))&&(a21==11)))&&(!(a20==1)&&((a1==13)&&((((input==4)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5))))&&!(a18==1))&&!(a26==1)))))){ + a21 = 10; + a9 = 7; + a2 = 1; + a20 = 1; + a1 = 12; + a5 = 4; + a3 = 1; + a16 = 7; + a4 = 0; + a19 = 1; + return -1; + } else if((((a28==1)&&(((((a16==7)&&(((((((a5==6)&&(a1==12))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==13))))||(((a1==13)&&(a5==5))&&(a9==7)))&&(input==4))&&(a20==1)))&&!(a27==1))&&(a2==1))&&!(a14==1)))&&((a6==1)&&(((a17==2)&&(((a13==1)&&(a21==10))&&(a19==4)))&&(a11==1))))){ + if((a20==1)){ + a26 = 0; + a8 = 0; + a20 = 0; + a1 = 12; + a4 = 0; + a19 = 5; + a16 = 8; + a5 = 4; + a9 = 9; + }else{ + a4 = 0; + a21 = 11; + a5 = 6; + a9 = 9; + a28 = 1; + a1 = 13; + a24 = 0; + } + return 23; + } else if((((((a16==10)&&((a2==1)&&((a21==11)&&(a3==1))))||!(a12==1))&&(a17==2))&&((a9==11)&&((((!(a4==1)&&(((a12==1)&&((a11==1)&&((input==3)&&(a19==2))))&&!(a27==1)))&&(a5==4))&&(a1==14))&&!(a20==1))))){ + a26 = 1; + a25 = 1; + a14 = 1; + a5 = 5; + a19 = 3; + a16 = 8; + a9 = 10; + a20 = 1; + return -1; + } else if((((a21==10)&&((((a4==1)||(!(a0==1)&&((a1==12)&&((a2==1)&&(a12==1)))))||!(a2==1))&&(a2==1)))&&((((((a17==2)&&((a9==11)&&(((a5==4)||(a5==5))&&(input==4))))&&!(a20==1))&&(a11==1))&&(a19==4))&&(a16==10)))){ + if((a17==4)){ + a19 = 1; + a23 = 0; + a28 = 0; + a16 = 7; + a5 = 5; + a20 = 1; + a3 = 0; + }else{ + a0 = 1; + a22 = 1; + a19 = 1; + a5 = 5; + a1 = 13; + a21 = 11; + } + return 22; + } else if(((((a23==1)&&((a17==2)&&(((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))&&(input==5))&&(a16==8))))&&!(a24==1))&&(!(a11==1)||(((((a21==12)&&((!(a20==1)&&((a3==1)&&(a2==1)))||(a27==1)))&&(a1==13))||!(a12==1))&&(a19==5))))){ + a24 = 1; + a16 = 7; + a25 = 0; + a23 = 0; + a5 = 6; + a20 = 1; + a9 = 7; + a21 = 10; + a19 = 1; + return 21; + } else if((((a21==12)&&((!(a28==1)||(((((a1==14)&&(a13==1))&&(a23==1))&&(a11==1))&&!(a20==1)))&&(a9==7)))&&((a16==8)&&((a19==3)&&(((a13==1)&&(!(a14==1)&&(((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a7==1))))&&(a17==2)))))){ + if((a15==1)){ + a16 = 10; + a19 = 2; + a20 = 1; + a9 = 9; + a11 = 0; + a25 = 1; + a5 = 5; + }else{ + a19 = 1; + a5 = 5; + a1 = 13; + a9 = 9; + a29 = 0; + a23 = 0; + } + return -1; + } else if(((!(a4==1)&&(((((a21==10)&&((((a17==2)&&((a16==10)&&(a2==1)))&&(a19==1))&&(a9==11)))&&!(a0==1))&&(a28==1))&&!(a27==1)))&&(!(a7==1)&&((!(a26==1)&&((((a5==4)||(a5==5))&&(input==5))&&!(a20==1)))&&(a1==13))))){ + a28 = 0; + a5 = 6; + a9 = 7; + a19 = 5; + a10 = 1; + return 25; + } else if((((a1==12)&&((a21==12)&&(((a12==1)&&((((((a2==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3)))&&(a13==1))&&(a6==1))&&(a9==8))&&(a28==1)))&&(a16==7))))&&((a20==1)&&((a17==2)&&((a28==1)&&((a12==1)&&(a19==2))))))){ + a5 = 5; + a11 = 1; + a16 = 9; + a21 = 10; + a8 = 0; + a9 = 11; + a18 = 0; + return 25; + } else if((((a20==1)&&(((((((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4)))&&(input==4))&&(a1==14))&&!(a8==1))&&!(a8==1))&&(a17==2)))&&((((a21==11)&&((((!(a28==1)||(a3==1))&&(a19==5))||(a27==1))&&(a16==7)))&&!(a18==1))&&(a12==1)))){ + a19 = 1; + a1 = 12; + a9 = 7; + a28 = 1; + a21 = 10; + a5 = 4; + a24 = 0; + a8 = 0; + return -1; + } else if((((!(a4==1)&&((a19==4)&&(((((a12==1)&&((a21==11)&&((input==6)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))))&&(a20==1))&&(a2==1))&&(a6==1))))&&!(a24==1))&&((a16==10)&&(((a17==2)&&((a1==14)&&(a23==1)))&&!(a24==1))))){ + a9 = 9; + a19 = 2; + a3 = 1; + a21 = 10; + a5 = 4; + a0 = 0; + a1 = 13; + a16 = 7; + return -1; + } else if(((((a23==1)&&((a21==12)&&((((input==6)&&(((a19==4)&&((a9==7)&&((a5==4)&&(a1==12))))||(((a19==3)&&((a9==11)&&((a1==14)&&(a5==5))))||((a19==3)&&(((a5==6)&&(a1==14))&&(a9==11))))))&&(a20==1))&&(a16==9))))&&!(a14==1))&&((a27==1)||((!(a12==1)||((a17==2)&&((a12==1)||!(a13==1))))&&!(a14==1))))){ + a21 = 10; + a5 = 4; + a19 = 1; + a1 = 12; + a27 = 0; + a13 = 1; + a16 = 7; + a9 = 7; + a7 = 0; + return -1; + } else if((((a16==10)&&((a24==1)||(((a7==1)||((((a21==11)&&((a11==1)&&(a3==1)))&&(a17==2))&&(a19==1)))&&!(a8==1))))&&(!(a0==1)&&(!(a20==1)&&((((input==5)&&(((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))))&&(a1==13))&&(a11==1)))))){ + if((a25==1)){ + a5 = 5; + a9 = 9; + a4 = 1; + a18 = 1; + a21 = 12; + a20 = 1; + a19 = 2; + a16 = 9; + a15 = 0; + }else{ + a19 = 5; + a16 = 7; + a4 = 1; + a7 = 1; + a9 = 9; + a14 = 1; + a20 = 1; + a1 = 12; + a5 = 6; + } + return 25; + } else if(((((a19==2)&&(((a16==11)&&(((a14==1)&&((a28==1)&&(a27==1)))&&(a20==1)))&&(a27==1)))&&(a17==2))&&(((((((((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6))))&&(input==3))&&!(a3==1))&&(a14==1))&&(a1==12))&&(a21==10))&&(a4==1)))){ + a5 = 5; + a16 = 7; + a22 = 1; + a4 = 1; + a18 = 1; + a9 = 11; + return -1; + } else if(((((a18==1)||((((((a9==10)&&((a1==12)&&(a2==1)))&&!(a20==1))&&!(a7==1))||!(a23==1))&&(a16==8)))&&(a19==2))&&((a12==1)&&((a17==2)&&(((a21==10)&&(!(a0==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3))))&&!(a7==1)))))){ + a19 = 5; + a5 = 5; + a8 = 0; + a27 = 0; + a9 = 8; + a20 = 1; + return 26; + } else if(((((a13==1)&&(!(a8==1)&&((!(a11==1)||((a5==4)&&(!(a4==1)&&((a21==11)&&((a12==1)&&(a6==1))))))&&(a16==7))))&&(a20==1))&&(((a3==1)&&((((input==5)&&(a9==9))&&(a17==2))&&(a19==5)))&&(a1==12)))){ + if((a7==1)){ + a19 = 3; + a3 = 1; + a2 = 1; + a13 = 1; + a20 = 0; + a21 = 12; + }else{ + a9 = 8; + a21 = 12; + a16 = 8; + a5 = 5; + a23 = 1; + a2 = 1; + a13 = 1; + a19 = 1; + } + return 21; + } else if((((!(a13==1)||((((a16==10)&&((a21==10)&&(a3==1)))&&(a1==13))||(a27==1)))&&(a19==1))&&((a9==9)&&((((a28==1)&&((a23==1)&&((((input==5)&&((a5==5)||(a5==6)))&&!(a24==1))&&(a17==2))))&&(a23==1))&&!(a20==1))))){ + a0 = 1; + a5 = 6; + a1 = 14; + a11 = 0; + a19 = 2; + a22 = 0; + a16 = 11; + return -1; + } else if(((((((a28==1)&&(((((a21==11)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&!(a20==1)))&&(a17==2))&&!(a4==1))&&(a19==5)))&&(a12==1))&&(a1==14))&&!(a24==1))&&((a9==8)&&((a16==7)&&(!(a7==1)&&((a18==1)||(a6==1))))))){ + a11 = 1; + a13 = 1; + a5 = 4; + a9 = 7; + a1 = 12; + a20 = 1; + a19 = 1; + a21 = 10; + return -1; + } else if((((a26==1)||(((!(a20==1)&&(!(a26==1)&&((!(a8==1)&&((a17==2)&&(a3==1)))&&(a16==8))))&&(a21==11))&&!(a26==1)))&&(((((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==3))||((a19==4)&&((a9==7)&&((a1==12)&&(a5==4)))))&&(input==1))&&!(a4==1))&&!(a27==1)))){ + a19 = 1; + a1 = 12; + a5 = 4; + a21 = 10; + a16 = 7; + a9 = 7; + a3 = 1; + a20 = 1; + a4 = 0; + a0 = 0; + return -1; + } else if((((a20==1)&&((!(a24==1)&&((a21==12)&&(!(a4==1)&&(a12==1))))&&(a23==1)))&&((a16==7)&&(((a13==1)&&((a17==2)&&((a19==2)&&(!(a8==1)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&(a1==12))&&(a28==1))))))&&(a9==9))))){ + a11 = 1; + a5 = 4; + a21 = 10; + a18 = 0; + a3 = 1; + a19 = 1; + a9 = 7; + return -1; + } else if((((a21==10)&&(!(a12==1)||(!(a12==1)||((a19==1)&&(a28==1)))))&&(((((((a1==14)&&((a28==1)&&((!(a26==1)&&(((a5==4)||(a5==5))&&(input==6)))&&(a17==2))))&&(a16==9))&&(a12==1))&&!(a8==1))&&!(a20==1))&&(a9==8)))){ + a1 = 12; + a20 = 1; + a19 = 3; + a21 = 11; + a2 = 0; + a10 = 0; + a16 = 11; + a5 = 4; + a8 = 1; + a9 = 10; + return -1; + } else if(((((a2==1)&&(((((a16==11)&&((a3==1)&&((((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11)))&&(input==4))&&(a11==1))))&&(a21==10))&&!(a24==1))&&(a1==13)))&&!(a26==1))&&((a17==2)&&((!(a28==1)||((a3==1)&&(a19==1)))&&!(a20==1))))){ + a19 = 3; + a9 = 9; + a18 = 1; + a16 = 7; + a20 = 1; + a21 = 11; + a4 = 1; + a5 = 5; + a10 = 0; + return -1; + } else if((((a21==11)&&(!(a3==1)||(((((!(a28==1)||((a3==1)&&(a19==4)))&&(a16==11))||!(a6==1))||!(a23==1))||(a14==1))))&&(((a9==10)&&((a1==12)&&((a2==1)&&((a20==1)&&(((a5==5)||(a5==6))&&(input==6))))))&&(a17==2)))){ + a6 = 1; + a11 = 1; + a21 = 12; + a26 = 0; + a5 = 5; + a1 = 13; + a19 = 2; + return 21; + } else if((((a17==2)&&((a9==11)&&((a19==4)&&((a16==10)&&(((a6==1)&&!(a18==1))||(a8==1))))))&&(!(a24==1)&&((a21==12)&&(!(a14==1)&&((a5==6)&&((a1==14)&&((a3==1)&&(!(a18==1)&&((input==4)&&!(a20==1))))))))))){ + a16 = 7; + a0 = 1; + a21 = 10; + a11 = 0; + a19 = 2; + a25 = 1; + a1 = 12; + return 21; + } else if(((!(a24==1)&&((a13==1)&&(((a9==7)&&(!(a0==1)&&((a17==2)&&((a19==5)&&((a1==14)&&((input==1)&&(a16==8)))))))&&(a28==1))))&&(!(a13==1)||((a20==1)&&((a5==5)&&(((a12==1)&&(a21==11))||(a0==1))))))){ + a20 = 0; + a3 = 1; + a16 = 7; + a19 = 3; + a27 = 0; + a9 = 9; + a4 = 0; + return 25; + } else if((((((a20==1)&&((a13==1)&&((((a13==1)&&!(a4==1))&&(a19==2))&&(a17==2))))&&(a3==1))&&(a1==12))&&(((a16==11)&&((a21==11)&&(!(a27==1)&&((((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11)))&&(input==6))&&!(a7==1)))))&&!(a26==1)))){ + a16 = 7; + a7 = 0; + a9 = 7; + a21 = 10; + a5 = 4; + a26 = 0; + a24 = 0; + a19 = 1; + return -1; + } else if((((a0==1)||((a5==5)&&(((((a24==1)||(a3==1))&&!(a20==1))&&!(a0==1))||!(a11==1))))&&((a21==12)&&(((a17==2)&&((a16==7)&&((a19==4)&&((a1==13)&&(((input==6)&&(a9==10))&&(a23==1))))))&&!(a27==1))))){ + a2 = 1; + a0 = 0; + a16 = 9; + a9 = 11; + a5 = 4; + a21 = 11; + a19 = 5; + a20 = 1; + a1 = 12; + a4 = 0; + return 21; + } else if(((((a3==1)&&(((a9==9)&&((a21==10)&&(((((a5==4)&&((a17==2)&&(input==3)))&&(a1==12))&&!(a20==1))&&(a19==4))))&&(a28==1)))&&!(a4==1))&&((!(a8==1)&&(((a28==1)&&(a3==1))&&(a16==8)))||!(a12==1)))){ + a9 = 8; + a20 = 1; + a26 = 0; + a16 = 11; + a28 = 1; + a23 = 1; + return 21; + } else if(((((a6==1)&&((a17==2)&&(((input==3)&&(a21==10))&&(a19==4))))&&(a3==1))&&(((((a9==10)&&((a3==1)&&((((a28==1)&&((a11==1)||!(a11==1)))&&(a16==7))&&(a5==5))))&&!(a20==1))&&(a1==12))&&(a11==1)))){ + a9 = 7; + a7 = 0; + a5 = 4; + a19 = 1; + a20 = 1; + a3 = 1; + a24 = 0; + return -1; + } else if((((((a13==1)&&(((a17==2)&&(input==3))&&(a20==1)))&&(a19==5))&&(a21==10))&&((a7==1)||((((((a16==11)&&((a5==4)&&((a9==11)&&((a12==1)&&!(a18==1)))))||(a4==1))&&(a1==13))&&!(a7==1))&&(a3==1))))){ + a23 = 1; + a16 = 7; + a1 = 12; + a24 = 0; + a9 = 7; + a19 = 1; + return -1; + } else if(((((a21==12)&&((a9==11)&&((a6==1)&&((a19==3)&&((a3==1)||!(a23==1))))))&&(a5==5))&&((a16==11)&&((((!(a0==1)&&(((a20==1)&&((input==5)&&(a1==14)))&&(a3==1)))&&!(a18==1))&&(a28==1))&&(a17==2))))){ + a19 = 1; + a28 = 1; + a9 = 7; + a14 = 0; + a21 = 10; + a1 = 12; + a16 = 7; + a2 = 1; + a5 = 4; + return -1; + } else if(((!(a26==1)&&(((!(a0==1)&&((a19==2)&&((a20==1)&&((a6==1)&&((a17==2)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))&&(input==6)))))))&&(a21==10))&&(a6==1)))&&(((((a1==14)&&(a12==1))&&(a16==8))&&(a23==1))&&!(a4==1)))){ + if((a2==1)){ + a1 = 13; + a20 = 0; + a7 = 0; + a9 = 11; + a2 = 1; + a24 = 0; + a5 = 4; + }else{ + a19 = 4; + a1 = 13; + a9 = 7; + a2 = 1; + a16 = 9; + a23 = 1; + a5 = 6; + a21 = 12; + a13 = 1; + } + return 25; + } else if((((a5==4)&&((!(a4==1)&&((!(a24==1)&&((a3==1)&&(((a2==1)&&((a19==3)&&(input==5)))&&(a28==1))))&&!(a18==1)))&&(a9==9)))&&((((a16==7)&&((a20==1)&&((a12==1)&&(a17==2))))&&(a21==12))&&(a1==14)))){ + if((a18==1)){ + a21 = 11; + a13 = 1; + a9 = 8; + a19 = 2; + a28 = 1; + a20 = 0; + a0 = 0; + }else{ + a16 = 9; + a19 = 5; + a3 = 1; + a9 = 11; + a24 = 0; + a28 = 1; + a21 = 10; + } + return 21; + } else if(((!(a20==1)&&(((((a28==1)&&((a19==5)&&((input==4)&&(a21==12))))&&!(a0==1))&&!(a26==1))&&(a9==11)))&&((a1==12)&&((a5==5)&&(!(a8==1)&&((a4==1)||((((a6==1)&&(a16==7))&&!(a4==1))&&(a17==2)))))))){ + a4 = 0; + a5 = 6; + a21 = 11; + a20 = 1; + a8 = 0; + a16 = 8; + a26 = 0; + return 22; + } else if((((a9==7)&&((a13==1)&&((((((input==6)&&((a5==4)||(a5==5)))&&!(a4==1))&&(a16==10))&&(a23==1))&&(a1==12))))&&(!(a11==1)||(((!(a3==1)||((a21==10)&&(((a19==1)&&(a11==1))&&(a20==1))))&&!(a26==1))&&(a17==2))))){ + a19 = 3; + a9 = 9; + a1 = 14; + a0 = 0; + a27 = 0; + a5 = 6; + a16 = 7; + a24 = 0; + return 26; + } else if(((((a16==11)&&((a5==4)&&((a0==1)||((a9==11)&&(((a12==1)&&(a19==5))||!(a2==1))))))&&(a1==13))&&((a17==2)&&(!(a7==1)&&((!(a26==1)&&(((a20==1)&&((input==5)&&(a21==12)))&&(a28==1)))&&!(a4==1)))))){ + a12 = 1; + a9 = 9; + a21 = 10; + a16 = 7; + a20 = 0; + a0 = 0; + a5 = 5; + a19 = 1; + return 23; + } else if((((!(a27==1)&&(((!(a7==1)&&(((a16==11)&&(((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a4==1)))&&!(a27==1)))&&(a9==7))&&(a20==1)))&&(a17==2))&&((a19==2)&&((a21==10)&&((((a23==1)&&(a13==1))&&!(a18==1))&&(a1==14)))))){ + a0 = 0; + a19 = 1; + a1 = 12; + a16 = 7; + a4 = 0; + a5 = 4; + return -1; + } else if((((((a16==7)&&((a23==1)&&((!(a20==1)&&(a6==1))&&!(a14==1))))&&(a19==5))&&(a28==1))&&((a17==2)&&(((a21==11)&&(!(a4==1)&&((((((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7))))&&(input==6))&&!(a4==1))&&(a1==12))))&&(a23==1))))){ + a1 = 14; + a2 = 1; + a19 = 2; + a12 = 1; + a20 = 1; + a28 = 1; + a9 = 10; + a16 = 8; + a5 = 6; + return 21; + } else if((((a20==1)&&(((!(a27==1)&&((a9==7)&&(((a23==1)||(a8==1))&&!(a14==1))))&&(a1==14))&&(a6==1)))&&(((a21==11)&&((a16==10)&&(!(a24==1)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a17==2))&&(a19==1)))))&&!(a26==1)))){ + a16 = 7; + a7 = 0; + a14 = 0; + a1 = 12; + a4 = 0; + a5 = 4; + a21 = 10; + return -1; + } else if((((a16==9)&&((((a6==1)&&((a1==12)&&(((((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&(input==3))&&!(a26==1))))&&(a3==1))&&(a19==5)))&&((((((a21==12)&&(!(a4==1)&&(a23==1)))&&!(a20==1))&&(a17==2))||(a7==1))&&!(a7==1)))){ + a21 = 10; + a16 = 7; + a24 = 1; + a19 = 1; + a20 = 1; + a25 = 0; + a1 = 13; + a5 = 6; + a29 = 0; + a9 = 8; + return 21; + } else if(((((((a21==10)&&((a23==1)&&((a28==1)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==3)))))&&(a19==3))&&(a17==2))&&!(a24==1))&&((!(a14==1)&&(((a16==10)&&(!(a27==1)&&((a28==1)&&!(a8==1))))&&(a1==13)))&&!(a20==1)))){ + a9 = 8; + a16 = 9; + a20 = 1; + a19 = 5; + a1 = 12; + a21 = 11; + a5 = 6; + a22 = 0; + a0 = 1; + a2 = 0; + return -1; + } else if((((a16==8)&&((a8==1)||(((((a17==2)&&((a3==1)&&!(a7==1)))&&(a1==14))&&(a19==1))&&!(a20==1))))&&(((!(a0==1)&&(!(a4==1)&&(!(a8==1)&&(((a5==6)&&(input==6))&&(a21==12)))))&&!(a0==1))&&(a9==11)))){ + if((a3==1)){ + a9 = 9; + a16 = 7; + a4 = 1; + a20 = 1; + a15 = 0; + a18 = 1; + a5 = 4; + a21 = 10; + }else{ + a20 = 1; + a25 = 1; + a5 = 4; + a11 = 0; + a16 = 7; + a9 = 10; + a10 = 1; + a21 = 10; + } + return -1; + } else if((((!(a11==1)&&(((!(a20==1)&&((a14==1)&&(((input==6)&&(a1==12))&&!(a3==1))))&&(a17==2))&&(a4==1)))&&(a18==1))&&((a19==3)&&(((((a16==7)&&((a5==6)&&(a11==1)))&&(a21==12))&&(a9==8))&&(a18==1))))){ + a21 = 11; + a3 = 0; + a9 = 9; + a8 = 1; + a16 = 10; + a20 = 1; + a0 = 1; + return -1; + } else if((((((a17==2)&&((((input==3)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5))))&&(a19==1))&&(a1==14)))&&!(a20==1))&&(a21==10))&&(!(a2==1)||((((a16==9)&&((!(a3==1)||(!(a27==1)&&(a23==1)))||!(a2==1)))&&!(a7==1))&&(a13==1))))){ + a21 = 12; + a1 = 12; + a9 = 11; + a11 = 0; + a5 = 4; + a25 = 0; + a2 = 0; + a16 = 10; + a19 = 4; + return -1; + } else if(((((((a20==1)&&((a21==10)&&(((((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(input==1))&&(a1==13))))&&(a23==1))&&(a23==1))&&!(a24==1))&&((a26==1)||((a16==10)&&((((a17==2)&&((a3==1)&&(a19==1)))||(a18==1))&&!(a14==1)))))){ + a9 = 8; + a26 = 0; + a8 = 0; + a5 = 6; + a1 = 12; + a19 = 5; + a13 = 1; + a16 = 11; + return 21; + } else if(((((a18==1)||((a28==1)&&(a6==1)))&&(a21==10))&&((a20==1)&&((a11==1)&&((a16==8)&&((!(a14==1)&&((a19==4)&&(((a1==12)&&((a17==2)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==4))))&&(a6==1))))&&!(a18==1))))))){ + a13 = 1; + a16 = 7; + a9 = 7; + a24 = 0; + a5 = 4; + a19 = 1; + a23 = 1; + return -1; + } else if(((!(a6==1)||((((a21==12)&&(((((a23==1)&&(a20==1))&&(a17==2))||!(a23==1))&&(a9==11)))&&(a16==9))&&!(a7==1)))&&(!(a14==1)&&((((a19==1)&&((((a5==4)||(a5==5))&&(input==4))&&(a1==14)))&&(a6==1))&&(a28==1))))){ + a5 = 4; + a9 = 7; + a21 = 10; + a13 = 1; + a16 = 7; + a1 = 12; + a12 = 1; + return -1; + } else if((((!(a24==1)&&(((a5==4)&&(input==3))&&!(a8==1)))&&(a13==1))&&(((a9==11)&&((a17==2)&&((((a16==10)&&((a4==1)||(((a3==1)&&((a3==1)&&(a28==1)))&&(a19==5))))&&(a1==13))&&!(a20==1))))&&(a21==10)))){ + a16 = 7; + a19 = 1; + a20 = 1; + a24 = 1; + a9 = 7; + a15 = 0; + a29 = 1; + return 25; + } else if(((!(a13==1)&&((((a24==1)&&(!(a23==1)&&((a17==2)&&((a20==1)&&(a28==1)))))&&(a1==12))&&(a16==10)))&&((((!(a23==1)&&((((input==5)&&((a5==4)||(a5==5)))&&!(a6==1))&&(a9==7)))&&!(a13==1))&&(a21==11))&&(a19==1)))){ + a28 = 0; + a13 = 0; + a5 = 6; + a21 = 12; + a19 = 3; + a9 = 9; + a22 = 1; + return -1; + } else if(((!(a0==1)&&(!(a18==1)&&(((input==3)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5))))&&(a23==1))))&&((a20==1)&&(((((a2==1)&&((a19==3)&&(((a16==9)&&((a28==1)&&(a1==14)))||(a26==1))))&&(a23==1))&&(a17==2))&&(a21==11))))){ + a1 = 12; + a11 = 1; + a9 = 7; + a3 = 1; + a5 = 4; + a16 = 7; + a26 = 0; + a21 = 10; + a19 = 1; + return -1; + } else if((((a28==1)&&((a3==1)&&(((!(a0==1)&&((a21==11)&&(((input==3)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&(a1==13))))&&(a20==1))&&!(a27==1))))&&(!(a11==1)||((a17==2)&&((a19==2)&&(((a12==1)&&(a16==9))&&(a13==1))))))){ + a21 = 10; + a19 = 1; + a26 = 0; + a9 = 7; + a5 = 4; + a14 = 0; + a23 = 1; + a1 = 12; + a16 = 7; + return -1; + } else if((((((!(a18==1)&&((((input==4)&&((((a5==5)&&(a1==14))&&(a9==7))||(((a9==11)&&((a1==13)&&(a5==6)))||(((a1==14)&&(a5==4))&&(a9==7)))))&&(a13==1))&&!(a14==1)))&&(a19==2))&&(a3==1))&&(a11==1))&&(((a18==1)||(((a17==2)&&((a6==1)&&!(a20==1)))&&(a16==10)))&&(a21==10)))){ + if((a19==5)){ + a5 = 5; + a1 = 12; + a16 = 7; + a6 = 0; + a21 = 11; + a12 = 0; + a22 = 1; + a9 = 10; + }else{ + a9 = 11; + a1 = 12; + a13 = 0; + a5 = 6; + a29 = 0; + a10 = 0; + a20 = 1; + a16 = 7; + } + return 25; + } else if(((((!(a27==1)&&((a28==1)&&(((input==6)&&((a5==4)||(a5==5)))&&(a1==14))))&&!(a27==1))&&(a9==8))&&((a17==2)&&(((((a21==12)&&((a16==9)&&((a4==1)||((a3==1)||!(a13==1)))))&&!(a14==1))&&(a19==5))&&(a20==1))))){ + a2 = 1; + a21 = 11; + a5 = 5; + a8 = 0; + a9 = 11; + return 21; + } else if((((((((a21==12)&&((a0==1)||((a28==1)&&(a5==6))))||!(a6==1))||(a24==1))&&(a20==1))&&(a28==1))&&((((a16==11)&&((a1==14)&&((((input==4)&&(a19==4))&&(a9==11))&&(a17==2))))&&!(a27==1))&&!(a18==1)))){ + a9 = 7; + a3 = 1; + a1 = 12; + a19 = 1; + a21 = 10; + a11 = 1; + a5 = 4; + a16 = 7; + a12 = 1; + return -1; + } else if(((!(a3==1)||(((a16==8)&&(((a19==5)&&(((a17==2)&&((a11==1)||(a7==1)))&&!(a20==1)))&&(a23==1)))||(a24==1)))&&(!(a26==1)&&((((a9==10)&&(((input==4)&&((a5==4)||(a5==5)))&&(a21==11)))&&(a11==1))&&(a1==14))))){ + if((a7==1)){ + a12 = 0; + a20 = 1; + a5 = 4; + a15 = 1; + a19 = 1; + a21 = 10; + a16 = 7; + a1 = 12; + a9 = 11; + a7 = 1; + }else{ + a5 = 4; + a9 = 11; + a20 = 1; + a26 = 1; + a3 = 0; + a21 = 10; + a18 = 1; + a19 = 1; + a16 = 11; + } + return -1; + } else if(((!(a24==1)&&(((a21==10)&&(((a6==1)&&((a1==14)&&(!(a8==1)&&((a19==4)&&((a5==4)&&((input==5)&&(a9==7)))))))&&(a16==9)))&&(a13==1)))&&((a17==2)&&(!(a20==1)&&(((a28==1)&&(a11==1))||!(a12==1)))))){ + a9 = 9; + a16 = 10; + a23 = 0; + a22 = 1; + a5 = 5; + a19 = 2; + a21 = 12; + a4 = 1; + return 21; + } else if(((!(a28==1)||(((a20==1)&&(((a23==1)&&(a6==1))&&(a16==11)))||(a8==1)))&&(((!(a26==1)&&((!(a8==1)&&(((a19==3)&&((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==1)))&&(a17==2)))&&(a12==1)))&&(a21==12))&&(a1==14)))){ + a21 = 10; + a16 = 7; + a6 = 1; + a19 = 1; + a9 = 7; + a13 = 1; + a5 = 4; + a1 = 12; + a18 = 0; + return -1; + } else if(((((a1==13)&&((a28==1)&&(!(a14==1)&&((a20==1)&&((!(a26==1)&&((a21==12)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6)))))&&!(a8==1))))))&&!(a26==1))&&((((((a17==2)&&(a2==1))&&(a16==9))&&(a9==7))&&(a19==5))&&(a12==1)))){ + a21 = 10; + a24 = 0; + a19 = 1; + a12 = 1; + a3 = 1; + a1 = 12; + a5 = 4; + a16 = 7; + return -1; + } else if((((a17==2)&&(!(a4==1)&&(!(a26==1)&&((input==4)&&(a9==10)))))&&((((!(a14==1)&&((a19==4)&&((((!(a8==1)&&((a3==1)&&(a11==1)))&&(a16==7))&&!(a20==1))&&(a21==11))))&&!(a4==1))&&(a5==4))&&(a1==12)))){ + a21 = 10; + a19 = 1; + a28 = 1; + a20 = 1; + a3 = 1; + a9 = 7; + a2 = 1; + return -1; + } else if((((a12==1)&&((((a16==9)&&((((a17==2)&&((input==3)&&(a21==12)))&&!(a20==1))&&(a5==5)))&&(a13==1))&&(a12==1)))&&(!(a4==1)&&(((a19==5)&&(((a1==13)&&((a28==1)&&(a9==8)))&&(a13==1)))&&!(a14==1))))){ + a5 = 4; + a1 = 14; + a9 = 7; + a25 = 0; + a16 = 7; + a19 = 2; + a18 = 1; + a8 = 1; + return -1; + } else if(((!(a12==1)||((a17==2)&&((((a19==5)&&(((a13==1)&&(a9==9))||!(a2==1)))&&(a16==8))||!(a3==1))))&&(((!(a20==1)&&(!(a18==1)&&((!(a26==1)&&((input==4)&&(a5==6)))&&(a21==12))))&&(a1==13))&&!(a18==1)))){ + a27 = 1; + a21 = 11; + a20 = 1; + a16 = 10; + a2 = 0; + a9 = 8; + a6 = 0; + return 21; + } else if((((a19==1)&&((a9==10)&&((a23==1)&&(!(a26==1)&&((!(a26==1)&&(((a5==4)||(a5==5))&&(input==5)))&&(a17==2))))))&&((!(a24==1)&&(((((a13==1)&&((a2==1)&&(a21==12)))&&(a1==12))&&(a20==1))&&!(a14==1)))&&(a16==7)))){ + a21 = 11; + a8 = 0; + a5 = 5; + a20 = 0; + a1 = 14; + a9 = 7; + a16 = 8; + a19 = 3; + a12 = 1; + return 23; + } else if(((((!(a6==1)&&((((a11==1)&&(a19==2))&&!(a11==1))&&(a26==1)))&&(a21==11))&&(a20==1))&&((a1==14)&&((a17==2)&&((!(a12==1)&&((a16==10)&&((a18==1)&&((input==6)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))))))&&(a0==1)))))){ + a20 = 0; + a9 = 9; + a19 = 4; + a5 = 6; + a16 = 8; + a10 = 1; + a15 = 0; + a21 = 10; + return 21; + } else if(((((a1==13)&&(!(a2==1)||((a3==1)&&((((!(a7==1)&&(a13==1))&&(a16==8))&&(a19==2))||(a24==1)))))&&(a17==2))&&(!(a20==1)&&(!(a24==1)&&((a21==12)&&(((input==6)&&((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10))))&&(a6==1))))))){ + if((a14==1)){ + a20 = 1; + a24 = 1; + a2 = 0; + a1 = 12; + a9 = 7; + a21 = 10; + a5 = 5; + a19 = 5; + a28 = 0; + a16 = 10; + }else{ + a1 = 12; + a20 = 1; + a28 = 0; + a5 = 4; + a18 = 1; + a16 = 7; + a9 = 7; + a22 = 0; + a21 = 10; + } + return 21; + } else if((((a16==8)&&((a17==2)&&((a19==2)&&((a9==8)&&(((a13==1)&&(a21==11))||(a27==1))))))&&((!(a24==1)&&((((((((a5==4)||(a5==5))&&(input==6))&&!(a20==1))&&!(a0==1))&&(a11==1))&&!(a14==1))&&(a23==1)))&&(a1==13)))){ + a28 = 1; + a20 = 1; + a5 = 5; + a21 = 12; + a18 = 0; + a4 = 0; + a9 = 7; + a16 = 11; + a1 = 12; + return 23; + } else if((((a3==1)&&((a21==11)&&(((((input==6)&&(((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))))&&(a16==10))&&!(a7==1))&&(a17==2))))&&(((((((a18==1)||((a1==13)&&(a23==1)))&&!(a20==1))||!(a23==1))&&(a19==5))&&(a3==1))||!(a2==1)))){ + a29 = 0; + a23 = 0; + a9 = 11; + a4 = 1; + a5 = 5; + a19 = 1; + a21 = 10; + a16 = 7; + a20 = 1; + return -1; + } else if((((!(a20==1)&&(!(a26==1)&&((a9==7)&&((input==3)&&((a5==5)||(a5==6))))))&&(a6==1))&&((a1==14)&&((a21==11)&&(((!(a14==1)&&(((a19==5)&&((a13==1)&&((a13==1)||!(a12==1))))&&!(a18==1)))&&(a16==10))&&(a17==2)))))){ + a15 = 1; + a16 = 7; + a21 = 10; + a7 = 1; + a19 = 1; + a28 = 0; + a1 = 12; + a20 = 1; + a5 = 4; + a9 = 10; + return 25; + } else if(((((a21==10)&&(!(a28==1)||(!(a18==1)&&(((a19==2)&&((a4==1)||(((a23==1)&&(a9==9))&&(a2==1))))&&(a16==8)))))&&!(a20==1))&&(!(a24==1)&&((a1==13)&&(((a17==2)&&(((a5==4)||(a5==5))&&(input==6)))&&(a28==1)))))){ + a19 = 5; + a21 = 12; + a5 = 4; + a20 = 1; + a1 = 14; + a0 = 0; + a2 = 1; + return 26; + } else if(((((a16==9)&&((a9==9)&&((((((a14==1)||((a23==1)&&(a2==1)))&&(a20==1))&&(a19==3))&&(a21==10))&&(a17==2))))||(a4==1))&&(((a12==1)&&((a1==12)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a13==1))))&&(a12==1)))){ + a2 = 1; + a9 = 7; + a5 = 4; + a0 = 0; + a8 = 0; + a19 = 1; + a16 = 7; + return -1; + } else if((((((a1==14)&&(!(a8==1)&&((!(a0==1)&&((a17==2)&&(input==1)))&&(a20==1))))&&(a5==4))&&!(a14==1))&&((((a16==8)&&((((a4==1)||((a3==1)||(a26==1)))&&(a21==10))||!(a23==1)))&&(a9==7))&&(a19==5)))){ + a16 = 7; + a1 = 12; + a19 = 1; + a12 = 1; + a27 = 0; + a23 = 1; + return -1; + } else if(((((a1==12)&&((a7==1)||(((((a17==2)&&(a2==1))&&(a20==1))||!(a13==1))&&(a19==5))))&&(a21==11))&&((a9==10)&&((((!(a7==1)&&(((input==5)&&((a5==5)||(a5==6)))&&(a3==1)))&&(a3==1))&&(a11==1))&&(a16==9))))){ + a1 = 14; + a2 = 1; + a6 = 1; + a16 = 8; + a5 = 6; + a21 = 10; + a20 = 0; + a19 = 2; + return 21; + } else if((((a19==4)&&((((a7==1)||((!(a14==1)&&((((a20==1)&&(a12==1))&&(a2==1))||!(a28==1)))&&(a13==1)))&&(a1==14))&&(a16==8)))&&((a17==2)&&((a21==12)&&((a9==8)&&(((input==3)&&(a5==5))&&!(a8==1))))))){ + a16 = 10; + a13 = 1; + a7 = 0; + a9 = 7; + a1 = 13; + return 25; + } else if(((((a1==14)&&(((a19==1)&&((a23==1)&&(a28==1)))&&!(a20==1)))&&(a9==9))&&((a5==4)&&((((((((a3==1)&&((a21==12)&&(input==6)))&&(a11==1))&&!(a14==1))&&!(a24==1))&&!(a14==1))&&(a17==2))&&(a16==9))))){ + a5 = 5; + a16 = 7; + a11 = 0; + a9 = 10; + a20 = 1; + a8 = 1; + a21 = 10; + a1 = 12; + a10 = 0; + return -1; + } else if(((!(a24==1)&&((a14==1)||(((!(a0==1)&&((((((a13==1)&&((a21==12)&&(a23==1)))&&!(a20==1))&&(a16==8))&&(a9==9))&&!(a14==1)))&&(a19==4))&&(a17==2))))&&(!(a7==1)&&((((a5==4)||(a5==5))&&(input==6))&&(a1==14))))){ + a5 = 4; + a19 = 5; + a16 = 11; + a21 = 11; + a26 = 1; + a7 = 1; + a20 = 1; + a9 = 7; + a1 = 12; + return -1; + } else if(((!(a7==1)&&(!(a26==1)&&((((!(a18==1)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==1)))&&(a13==1))&&(a21==11))&&(a19==5))))&&((((a16==7)&&((a17==2)&&(((a20==1)&&(a23==1))&&(a1==12))))&&(a3==1))&&!(a18==1)))){ + a16 = 8; + a19 = 1; + a5 = 6; + a21 = 12; + a1 = 13; + a3 = 1; + a0 = 0; + a14 = 0; + a9 = 8; + return 25; + } else if(((((a14==1)||((a19==4)&&((a27==1)||(((a12==1)&&(a3==1))&&!(a26==1)))))&&(a28==1))&&((a9==11)&&((a16==7)&&((a1==13)&&((a3==1)&&((a17==2)&&(!(a20==1)&&(((input==3)&&((a5==4)||(a5==5)))&&(a21==12)))))))))){ + a8 = 0; + a2 = 1; + a21 = 10; + a1 = 12; + a5 = 4; + a9 = 7; + a20 = 1; + a19 = 1; + a13 = 1; + return -1; + } else if((((a21==10)&&((a9==11)&&((((a19==2)&&(!(a12==1)&&(((((input==5)&&((a5==4)||(a5==5)))&&!(a23==1))&&!(a23==1))&&(a17==2))))&&(a8==1))&&!(a3==1))))&&(((a16==7)&&(((a3==1)&&!(a20==1))&&!(a2==1)))&&(a1==13)))){ + a27 = 1; + a9 = 7; + a7 = 1; + a26 = 1; + a1 = 14; + a21 = 12; + a19 = 3; + a5 = 6; + return -1; + } else if(((((((a17==2)&&((a13==1)&&(((a19==5)&&(((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==4))&&(a16==8)))&&(a21==10))))&&(a23==1))&&!(a14==1))&&!(a18==1))&&((!(a20==1)&&((!(a28==1)||(a2==1))&&(a1==14)))||(a24==1)))){ + a16 = 7; + a9 = 7; + a2 = 1; + a3 = 1; + a19 = 1; + a1 = 12; + a20 = 1; + a4 = 0; + a5 = 4; + return -1; + } else if((((a19==3)&&(!(a20==1)&&(!(a24==1)&&((a13==1)&&(((a12==1)&&((a21==10)&&(input==3)))&&(a23==1))))))&&((a17==2)&&(((a9==7)&&(!(a7==1)&&((a5==4)&&((!(a23==1)||(a11==1))&&(a16==8)))))&&(a1==13))))){ + a19 = 5; + a5 = 5; + a8 = 0; + a9 = 11; + a20 = 1; + a16 = 7; + a26 = 0; + a21 = 11; + a12 = 1; + return 26; + } else if((((a2==1)&&(((((a3==1)&&((a17==2)&&(((a3==1)&&((a21==10)&&(((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))&&(input==3))))&&(a20==1))))&&(a1==14))&&(a19==4))&&(a2==1)))&&(!(a12==1)||((!(a24==1)&&(a3==1))&&(a16==7))))){ + a23 = 1; + a1 = 12; + a19 = 1; + a9 = 7; + a5 = 4; + a11 = 1; + return -1; + } else if(((((a9==10)&&((a5==4)&&(((a18==1)||((a3==1)&&!(a26==1)))&&(a1==14))))&&(a19==3))&&((a21==10)&&((!(a18==1)&&(!(a4==1)&&(!(a27==1)&&(((!(a20==1)&&(input==4))&&(a16==7))&&!(a27==1)))))&&(a17==2))))){ + a6 = 1; + a27 = 0; + a0 = 0; + a19 = 1; + a1 = 12; + a9 = 7; + a20 = 1; + return -1; + } else if(((!(a18==1)&&((((a12==1)&&((a21==11)&&(input==6)))&&(a16==11))&&(a1==13)))&&(((((a4==1)||(((!(a3==1)||((a5==5)&&((a2==1)&&(a17==2))))&&(a19==1))&&(a13==1)))||!(a13==1))&&(a20==1))&&(a9==8)))){ + a5 = 6; + a9 = 10; + a16 = 10; + a26 = 0; + a21 = 10; + a14 = 0; + a0 = 0; + a1 = 12; + return 21; + } else if((((a21==11)&&(((a11==1)&&(((a12==1)&&((a13==1)&&((input==3)&&(a17==2))))&&(a28==1)))&&(a9==10)))&&(((a20==1)&&((a1==12)&&((a18==1)||(((a16==7)&&((a2==1)&&!(a0==1)))&&(a19==1)))))&&(a5==4)))){ + a21 = 10; + a27 = 0; + a4 = 0; + a9 = 7; + a12 = 1; + return -1; + } else if(((((((((!(a6==1)||(a2==1))&&!(a26==1))&&(a12==1))&&(a17==2))||(a27==1))&&(a16==9))&&(a21==10))&&((a20==1)&&((((a19==1)&&((((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))&&(input==5))&&(a1==13)))&&!(a8==1))&&(a6==1))))){ + a1 = 12; + a5 = 4; + a16 = 7; + a9 = 7; + a26 = 0; + a14 = 0; + a7 = 0; + return -1; + } else if(((((a14==1)||(!(a14==1)&&(!(a28==1)||(((a28==1)&&(a16==9))&&(a17==2)))))&&(a12==1))&&((a2==1)&&((a19==1)&&(((a21==11)&&((a9==7)&&(!(a20==1)&&(!(a8==1)&&((a1==12)&&(input==6))))))&&(a5==5)))))){ + if((a8==1)){ + a19 = 2; + a29 = 1; + a16 = 7; + a7 = 1; + a20 = 1; + a9 = 9; + a6 = 0; + a21 = 10; + }else{ + a5 = 4; + a20 = 1; + a1 = 14; + a24 = 1; + a22 = 1; + a21 = 10; + a19 = 3; + a9 = 10; + a28 = 0; + a16 = 7; + } + return -1; + } else if(((((a9==7)&&((((a28==1)&&((((a28==1)&&(a11==1))&&(a1==13))&&(a20==1)))&&(a23==1))||!(a2==1)))||(a14==1))&&((a21==12)&&(((a16==7)&&((a19==2)&&(((input==4)&&(a5==5))&&(a17==2))))&&(a6==1))))){ + a1 = 12; + a5 = 4; + a21 = 10; + a0 = 0; + a19 = 1; + a18 = 0; + a12 = 1; + return -1; + } else if(((((a9==10)&&(!(a12==1)||((a7==1)||((a19==5)&&((a13==1)&&!(a18==1))))))||!(a13==1))&&((!(a24==1)&&((a17==2)&&((a16==8)&&((a1==14)&&(((a2==1)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6))))&&(a21==10))))))&&!(a20==1)))){ + a16 = 7; + a19 = 1; + a24 = 0; + a5 = 4; + a9 = 7; + a20 = 1; + a7 = 0; + a1 = 12; + a28 = 1; + return -1; + } else if(((((((a11==1)&&((!(a0==1)&&((a3==1)&&(a9==7)))&&(a19==2)))&&(a2==1))||(a0==1))&&(a1==13))&&(!(a20==1)&&((((((a23==1)&&((a5==6)&&(input==3)))&&!(a4==1))&&(a16==9))&&(a17==2))&&(a21==12))))){ + a19 = 1; + a20 = 1; + a21 = 10; + a26 = 1; + a29 = 0; + a16 = 7; + a22 = 0; + return -1; + } else if(((((((a2==1)&&((((a28==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&(a3==1)))&&!(a24==1))&&(a17==2)))&&(a20==1))&&(a21==11))&&(a16==7))&&(((a9==9)&&(!(a14==1)&&((a1==14)&&((a2==1)&&!(a26==1)))))&&(a19==1)))){ + a23 = 1; + a5 = 6; + a21 = 10; + a8 = 0; + a7 = 0; + a9 = 10; + a16 = 8; + return 26; + } else if((((!(a24==1)&&(((a9==10)&&((a16==7)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&!(a20==1))))&&!(a0==1)))&&(a23==1))&&(((a12==1)&&((a1==12)&&((a21==12)&&((((a23==1)&&(a17==2))||!(a28==1))&&(a19==4)))))||(a26==1)))){ + a8 = 0; + a9 = 7; + a19 = 1; + a21 = 10; + a20 = 1; + a18 = 0; + a5 = 4; + a11 = 1; + return -1; + } else if(((((a8==1)&&((a20==1)&&(((a16==8)&&(((a23==1)&&!(a23==1))&&(a1==13)))&&(a7==1))))&&(a21==11))&&(((a17==2)&&((a4==1)&&((a19==3)&&(((((a5==5)||(a5==6))&&(input==4))&&(a9==8))&&(a18==1)))))&&!(a2==1)))){ + a21 = 12; + a19 = 4; + a16 = 11; + a5 = 4; + a9 = 11; + a0 = 1; + a25 = 0; + return -1; + } else if((((a3==1)&&(!(a3==1)||((a21==11)&&(((a13==1)||!(a13==1))||(a4==1)))))&&(((!(a20==1)&&(((((input==1)&&(((((a1==13)&&(a5==5))&&(a9==11))||(((a1==13)&&(a5==6))&&(a9==11)))||((a9==7)&&((a1==14)&&(a5==4)))))&&(a16==7))&&!(a0==1))&&(a13==1)))&&(a17==2))&&(a19==1)))){ + a6 = 1; + a28 = 1; + a20 = 1; + a11 = 1; + a9 = 8; + a21 = 12; + a16 = 9; + a5 = 4; + a1 = 13; + return 21; + } else if(((((a28==1)&&(((a16==10)&&((a6==1)&&((a5==5)&&((a17==2)&&(input==4)))))&&(a20==1)))&&(a9==7))&&((a1==14)&&(((a21==11)&&(((a19==5)&&((!(a27==1)&&(a3==1))&&!(a8==1)))&&(a11==1)))||!(a12==1))))){ + a1 = 12; + a16 = 7; + a28 = 1; + a19 = 1; + a7 = 0; + a21 = 10; + a5 = 4; + return -1; + } else if((((((!(a23==1)||((a5==6)&&(!(a12==1)||(a12==1))))&&!(a26==1))&&(a17==2))&&(a9==11))&&(((a21==11)&&((((a11==1)&&((a13==1)&&((a19==3)&&((input==1)&&!(a20==1)))))&&(a16==7))&&(a12==1)))&&(a1==14)))){ + a11 = 1; + a9 = 10; + a16 = 11; + a28 = 1; + a20 = 1; + a1 = 13; + a5 = 5; + a24 = 0; + return 25; + } else if(((((a14==1)||(((((a20==1)&&((a16==9)&&(a28==1)))&&!(a24==1))&&(a9==7))||(a0==1)))||!(a3==1))&&(((a17==2)&&((a11==1)&&((a19==1)&&((a1==12)&&((((a5==5)||(a5==6))&&(input==6))&&(a3==1))))))&&(a21==11)))){ + a9 = 11; + a0 = 0; + a19 = 4; + a21 = 12; + a5 = 6; + a16 = 10; + a3 = 1; + return 26; + } else if((((!(a7==1)&&((!(a14==1)&&((a20==1)&&((input==1)&&(((((a1==13)&&(a5==6))&&(a9==11))||(((a1==14)&&(a5==4))&&(a9==7)))||((a9==7)&&((a1==14)&&(a5==5)))))))&&!(a14==1)))&&(a16==7))&&((((((a11==1)&&((a3==1)||!(a6==1)))&&(a3==1))&&(a17==2))&&(a21==11))&&(a19==1)))){ + a11 = 1; + a16 = 8; + a14 = 0; + a1 = 14; + a9 = 7; + a5 = 4; + a26 = 0; + a21 = 10; + return 23; + } else if((((((a20==1)&&((!(a7==1)&&(((a3==1)&&(a6==1))&&(a28==1)))&&(a17==2)))&&(a21==12))&&(a16==7))&&((a1==13)&&(!(a0==1)&&((((((input==5)&&((a5==4)||(a5==5)))&&(a2==1))&&!(a0==1))&&(a19==1))&&(a9==9)))))){ + if((a20==1)){ + a9 = 11; + a16 = 8; + a21 = 11; + a5 = 4; + a4 = 0; + a23 = 1; + a20 = 0; + a7 = 0; + }else{ + a5 = 5; + a19 = 5; + a1 = 14; + a27 = 0; + a14 = 0; + a16 = 8; + a13 = 1; + a9 = 11; + } + return 26; + } else if(((((a6==1)&&((((a19==2)&&((((a21==10)&&(a3==1))&&!(a20==1))&&(a16==7)))&&(a17==2))&&(a23==1)))||(a8==1))&&(((a11==1)&&((((((a5==5)||(a5==6))&&(input==1))&&(a1==12))&&(a9==9))&&!(a26==1)))&&(a2==1)))){ + a12 = 1; + a1 = 13; + a5 = 5; + a6 = 1; + a9 = 10; + a20 = 1; + a16 = 9; + a4 = 0; + a19 = 5; + return -1; + } else if((((a21==10)&&((a13==1)&&((a17==2)&&((input==1)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))))&&(((((!(a7==1)&&((a0==1)||((!(a20==1)&&((a11==1)||!(a6==1)))&&(a1==14))))&&(a19==2))&&(a16==11))&&(a23==1))&&!(a0==1)))){ + a16 = 7; + a29 = 0; + a19 = 3; + a5 = 5; + a10 = 0; + a20 = 1; + a9 = 10; + a21 = 12; + return 21; + } else if((((a13==1)&&(((((a21==12)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&!(a7==1))&&!(a26==1)))&&!(a7==1))&&(a20==1))&&(a17==2)))&&((a9==10)&&((a19==3)&&((a16==11)&&((!(a23==1)||((a3==1)&&(a1==12)))&&!(a24==1))))))){ + a19 = 2; + a5 = 5; + a16 = 9; + a23 = 1; + a9 = 7; + a12 = 1; + a18 = 0; + return 21; + } else if((((!(a18==1)&&((a17==2)&&((a21==11)&&((!(a27==1)&&(!(a11==1)||(!(a4==1)&&((a3==1)&&(a19==1)))))&&(a16==7)))))&&(a2==1))&&((a9==7)&&(!(a27==1)&&(!(a20==1)&&((a1==13)&&((input==4)&&((a5==5)||(a5==6))))))))){ + a5 = 4; + a21 = 10; + a1 = 12; + a6 = 1; + a14 = 0; + a20 = 1; + a18 = 0; + return -1; + } else if((((a17==2)&&((a21==12)&&(((a1==14)&&(!(a0==1)&&(((a12==1)&&((a16==9)&&((input==3)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10))))))&&(a19==3))))&&(a20==1))))&&(!(a23==1)||((a2==1)&&((a11==1)&&(!(a11==1)||(a11==1))))))){ + a21 = 10; + a11 = 1; + a1 = 12; + a3 = 1; + a16 = 7; + a28 = 1; + a9 = 7; + a5 = 4; + a19 = 1; + return -1; + } else if(((!(a3==1)||(!(a2==1)||(((((a19==1)&&(a23==1))&&(a16==8))&&(a23==1))&&(a9==11))))&&(((a1==14)&&((a17==2)&&((a11==1)&&(((!(a7==1)&&((input==4)&&((a5==5)||(a5==6))))&&(a21==10))&&!(a20==1)))))&&(a2==1)))){ + a20 = 1; + a2 = 1; + a1 = 12; + a5 = 4; + a9 = 7; + a16 = 7; + a13 = 1; + return -1; + } else if((((!(a14==1)&&((((a1==12)&&(((!(a18==1)&&((((a5==5)||(a5==6))&&(input==1))&&(a9==8)))&&!(a18==1))&&(a20==1)))&&(a17==2))&&(a16==11)))&&!(a8==1))&&((((a19==4)&&(!(a13==1)||(a6==1)))&&(a21==10))&&!(a4==1)))){ + a5 = 6; + a27 = 0; + a19 = 1; + a2 = 1; + a1 = 14; + a24 = 0; + return 25; + } else if(((((a6==1)&&(!(a14==1)&&(((((((input==6)&&(a17==2))&&(a16==9))&&(a1==14))&&!(a0==1))&&(a11==1))&&(a19==3))))&&(a3==1))&&((a20==1)&&(((a21==11)&&(((a12==1)&&(a5==5))&&(a9==9)))||(a7==1))))){ + a16 = 10; + a11 = 1; + a1 = 13; + a12 = 1; + a2 = 1; + a19 = 2; + return 21; + } else if((((a19==4)&&((a3==1)&&((((a28==1)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a21==12))&&(a16==7))&&(a3==1)))&&(a1==12))&&(a9==9))))&&(((a17==2)&&(((a11==1)&&((a23==1)&&!(a20==1)))&&!(a24==1)))&&(a11==1)))){ + a20 = 1; + a0 = 0; + a26 = 0; + a19 = 1; + a28 = 1; + a9 = 7; + a5 = 4; + a21 = 10; + return -1; + } else if((((a16==8)&&((((a21==10)&&(((!(a0==1)&&(((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a27==1)))&&(a28==1))&&(a3==1)))&&(a19==3))&&(a1==13)))&&((a17==2)&&(((a9==11)&&((a14==1)||((a20==1)&&(a28==1))))&&(a2==1))))){ + a5 = 4; + a27 = 0; + a6 = 1; + a16 = 7; + a24 = 0; + a9 = 7; + a1 = 12; + a19 = 1; + return -1; + } else if((((((a1==12)&&((a6==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&!(a7==1))))&&(a17==2))&&(a21==12))&&(!(a20==1)&&(((a9==8)&&(((!(a2==1)||((a2==1)&&((a0==1)||(a13==1))))||!(a6==1))&&(a19==1)))&&(a16==8))))){ + if((a24==1)){ + a5 = 4; + a21 = 10; + a9 = 7; + a19 = 2; + a10 = 1; + a16 = 7; + a25 = 1; + a20 = 1; + a14 = 1; + }else{ + a16 = 7; + a1 = 14; + a27 = 1; + a19 = 5; + a11 = 0; + a5 = 4; + a9 = 11; + a7 = 1; + } + return -1; + } else if(((((a17==2)&&((a21==12)&&((!(a26==1)&&(((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&!(a24==1)))&&!(a26==1))))&&(a16==11))&&((a9==8)&&(((((a19==4)&&(!(a27==1)&&((a11==1)&&!(a7==1))))&&(a1==13))||(a26==1))&&(a20==1))))){ + a16 = 7; + a2 = 1; + a28 = 1; + a1 = 12; + a8 = 0; + a21 = 10; + a5 = 4; + a19 = 1; + a9 = 7; + return -1; + } else if((((((((a2==1)&&(((a12==1)&&(a16==11))&&(a1==14)))&&(a21==11))||(a27==1))&&(a6==1))&&(a17==2))&&((a19==2)&&((((((input==3)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&!(a8==1))&&(a20==1))&&!(a7==1))&&(a12==1))))){ + a24 = 0; + a5 = 4; + a19 = 1; + a16 = 7; + a0 = 0; + a21 = 10; + a9 = 7; + a23 = 1; + a1 = 12; + return -1; + } else if((((a26==1)||(!(a28==1)||((a16==8)&&(!(a23==1)||(!(a4==1)&&((a21==11)&&((a19==1)&&(a6==1))))))))&&((((a2==1)&&((a17==2)&&((((input==6)&&((a5==4)||(a5==5)))&&(a1==13))&&(a12==1))))&&(a9==7))&&!(a20==1)))){ + a5 = 4; + a9 = 10; + a16 = 9; + a19 = 2; + a6 = 1; + a20 = 1; + a24 = 0; + a1 = 14; + a4 = 0; + return 21; + } else if(((((a12==1)&&((a21==10)&&((a8==1)||(a12==1))))&&(a1==12))&&((!(a24==1)&&((((!(a26==1)&&(!(a14==1)&&((a9==8)&&((a5==6)&&((a17==2)&&(input==3))))))&&(a19==4))&&(a16==9))&&(a20==1)))&&!(a8==1)))){ + a5 = 4; + a24 = 0; + a16 = 7; + a19 = 1; + a23 = 1; + a9 = 7; + a11 = 1; + return -1; + } else if((((((((((a14==1)||(!(a23==1)||(a2==1)))&&!(a14==1))&&(a19==1))&&!(a27==1))&&!(a20==1))&&(a21==12))&&(a17==2))&&((((((((a5==4)||(a5==5))&&(input==6))&&!(a26==1))&&!(a4==1))&&(a16==7))&&(a1==12))&&(a9==11)))){ + a18 = 0; + a20 = 1; + a19 = 3; + a21 = 10; + a5 = 4; + a13 = 1; + a11 = 1; + a16 = 9; + return 25; + } else if((((a21==12)&&(!(a4==1)&&((a17==2)&&(((a16==9)&&((a19==4)&&((input==1)&&(((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))))))&&(a13==1)))))&&((a8==1)||((a2==1)&&(!(a0==1)&&((a1==14)&&(!(a3==1)||((a20==1)&&(a23==1))))))))){ + a19 = 1; + a1 = 12; + a0 = 0; + a5 = 4; + a16 = 7; + a21 = 10; + a3 = 1; + a9 = 7; + a24 = 0; + return -1; + } else if((((a6==1)&&(!(a8==1)&&((a13==1)&&(((!(a27==1)&&((a16==8)&&(input==5)))&&(a9==11))&&(a20==1)))))&&((a17==2)&&(((a21==10)&&((a8==1)||((((a11==1)&&(a1==12))&&!(a18==1))&&(a5==6))))&&(a19==2))))){ + a5 = 4; + a16 = 7; + a0 = 0; + a12 = 1; + a19 = 1; + a9 = 7; + return -1; + } else if((((((((a21==12)&&(((input==1)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(a20==1)))&&(a16==11))&&(a6==1))&&(a11==1))&&(a17==2))&&((((a19==1)&&(((!(a4==1)&&(a6==1))||(a26==1))&&(a11==1)))&&(a28==1))&&(a1==12)))){ + a14 = 0; + a2 = 1; + a1 = 14; + a19 = 3; + a5 = 5; + a11 = 1; + a9 = 8; + return 22; + } else if(((!(a24==1)&&((((((a9==9)&&(((a28==1)&&(a28==1))&&(a21==11)))&&(a16==11))&&(a20==1))&&(a5==6))&&(a1==13)))&&((a23==1)&&(!(a26==1)&&(((((a17==2)&&(input==1))&&!(a0==1))&&(a19==5))&&!(a24==1)))))){ + a19 = 1; + a5 = 4; + a6 = 1; + a24 = 0; + a4 = 0; + a1 = 12; + a21 = 12; + a16 = 7; + a20 = 0; + a9 = 8; + return 22; + } else if((((a21==12)&&((a1==14)&&(((((a5==5)&&((a2==1)&&(a3==1)))||(a4==1))||!(a13==1))&&(a16==10))))&&((a19==1)&&((a6==1)&&(((a2==1)&&((a9==9)&&(!(a8==1)&&((input==3)&&(a17==2)))))&&(a20==1)))))){ + a28 = 1; + a1 = 12; + a9 = 7; + a16 = 7; + a21 = 10; + a24 = 0; + a18 = 0; + a5 = 4; + return -1; + } else if((((a16==9)&&(((a0==1)&&((a7==1)&&(((a14==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))&&!(a2==1))))&&(a9==7)))&&((a21==11)&&(!(a3==1)&&(!(a12==1)&&(((a1==12)&&(((a17==2)&&(a13==1))&&(a20==1)))&&(a19==2))))))){ + a19 = 1; + a16 = 7; + a5 = 5; + a1 = 13; + a12 = 0; + a21 = 10; + a9 = 10; + a25 = 1; + return 25; + } else if((((a11==1)&&((!(a2==1)||((((a2==1)&&(((a4==1)||(a28==1))&&(a9==11)))&&(a21==10))&&(a16==8)))||!(a3==1)))&&((a11==1)&&(((a20==1)&&(((a17==2)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4)))&&(a19==1)))&&(a1==13))))){ + a19 = 2; + a9 = 9; + a21 = 12; + a26 = 0; + a5 = 6; + a16 = 9; + a7 = 0; + return 23; + } else if((((a17==2)&&((a1==13)&&((!(a8==1)&&((a13==1)&&((a6==1)&&((a28==1)&&(!(a20==1)&&(input==6))))))&&(a9==9))))&&((a21==11)&&((a16==10)&&(((a5==6)&&(((a12==1)||(a18==1))&&(a6==1)))&&(a19==3)))))){ + a12 = 0; + a9 = 10; + a20 = 1; + a10 = 0; + a15 = 0; + a19 = 2; + a21 = 10; + a1 = 12; + a16 = 7; + return 22; + } else if((((((!(a18==1)&&(a28==1))&&(a17==2))&&(a23==1))||!(a3==1))&&((!(a7==1)&&((a19==3)&&((((a16==9)&&((a21==11)&&((a28==1)&&((input==1)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))))))&&(a3==1))&&!(a20==1))))&&(a1==13)))){ + a23 = 0; + a15 = 1; + a20 = 1; + a21 = 10; + a5 = 5; + a19 = 2; + a9 = 9; + a1 = 12; + a12 = 0; + a16 = 10; + return -1; + } else if(((((!(a20==1)&&(((a11==1)&&((a21==12)&&((a2==1)&&(a12==1))))&&(a19==4)))&&(a1==13))&&(a9==7))&&(((((a3==1)&&((((input==1)&&((a5==5)||(a5==6)))&&(a3==1))&&(a3==1)))&&(a17==2))&&(a12==1))&&(a16==8)))){ + if((a6==1)){ + a16 = 7; + a20 = 1; + a21 = 10; + a5 = 6; + a14 = 1; + a9 = 9; + a7 = 1; + a19 = 1; + a10 = 0; + }else{ + a9 = 10; + a2 = 0; + a26 = 1; + a22 = 1; + a16 = 9; + a19 = 3; + a5 = 6; + } + return -1; + } else if(((((((((a6==1)&&(a13==1))&&(a23==1))&&(a16==8))&&(a17==2))&&!(a4==1))&&(a28==1))&&(((a19==2)&&(((a1==14)&&(!(a20==1)&&((a21==11)&&((input==4)&&((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4)))))))&&!(a0==1)))&&!(a27==1)))){ + a28 = 1; + a5 = 4; + a20 = 1; + a16 = 7; + a19 = 1; + a3 = 1; + a21 = 10; + a9 = 7; + a8 = 0; + a1 = 12; + return -1; + } else if(((((a16==10)&&(!(a20==1)&&(!(a28==1)||((!(a27==1)&&((a17==2)&&(a28==1)))||(a27==1)))))&&(a21==12))&&((a19==4)&&(((a3==1)&&(((a1==14)&&((input==1)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))))&&(a28==1)))&&(a13==1))))){ + a5 = 5; + a6 = 0; + a23 = 0; + a16 = 7; + a13 = 0; + a19 = 1; + a21 = 10; + a20 = 1; + a9 = 9; + return -1; + } else if(((((a23==1)&&(((a1==13)&&(!(a18==1)&&((a5==6)&&(((input==6)&&(a9==10))&&(a19==2)))))&&!(a0==1)))&&(a16==9))&&((a17==2)&&((((!(a2==1)||((a20==1)&&(a6==1)))&&(a12==1))&&(a21==10))||!(a11==1))))){ + a13 = 1; + a9 = 9; + a5 = 4; + a18 = 0; + a19 = 5; + a12 = 1; + return 25; + } else if((((a6==1)&&((a23==1)&&((((a20==1)&&(((a1==14)&&((a16==9)&&(a23==1)))&&(a13==1)))&&(a21==10))&&!(a26==1))))&&((((a19==5)&&(((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==1))&&(a17==2)))&&(a2==1))&&!(a26==1)))){ + a9 = 11; + a4 = 0; + a11 = 1; + a21 = 12; + a19 = 2; + a5 = 5; + a27 = 0; + return 21; + } else if((((a1==14)&&(((a17==2)&&((a19==1)&&(((!(a27==1)&&(a12==1))&&!(a8==1))&&!(a27==1))))&&(a9==7)))&&((a5==6)&&((a23==1)&&(((a28==1)&&(((a16==8)&&((input==5)&&!(a20==1)))&&(a21==11)))&&!(a0==1)))))){ + a20 = 1; + a27 = 0; + a5 = 5; + a1 = 12; + a19 = 2; + a21 = 10; + a9 = 10; + a24 = 0; + return 25; + } else if(((((a11==1)&&((a13==1)&&((a12==1)&&!(a4==1))))&&(a9==9))&&((a19==2)&&((((((((a6==1)&&(((a5==5)&&(input==6))&&(a16==10)))&&(a1==13))&&(a17==2))&&(a6==1))&&!(a24==1))&&(a21==11))&&!(a20==1))))){ + if((a13==1)){ + a15 = 0; + a20 = 1; + a24 = 1; + a9 = 8; + a21 = 12; + a5 = 4; + a14 = 1; + }else{ + a24 = 1; + a16 = 8; + a18 = 1; + a5 = 6; + a20 = 1; + a13 = 0; + a19 = 4; + a9 = 7; + } + return -1; + } else if((((a23==1)&&((a23==1)&&(!(a24==1)&&(((((a20==1)&&((a16==8)&&(!(a27==1)&&((input==1)&&(a21==12)))))&&(a12==1))&&(a5==5))&&(a19==4)))))&&(((!(a23==1)||((a3==1)&&(a9==8)))&&(a1==14))&&(a17==2)))){ + a1 = 12; + a9 = 10; + a19 = 1; + a6 = 1; + a13 = 1; + a7 = 0; + return -1; + } else if((((((a16==8)&&((a28==1)&&(!(a27==1)&&(!(a8==1)&&((a1==12)&&((a19==2)&&(((a5==5)||(a5==6))&&(input==5))))))))&&(a21==12))&&(a9==11))&&(((a17==2)&&(!(a14==1)&&((a4==1)||(!(a12==1)||(a3==1)))))&&!(a20==1)))){ + a29 = 1; + a19 = 4; + a5 = 5; + a20 = 1; + a9 = 7; + a21 = 10; + a10 = 1; + a1 = 14; + a6 = 0; + return -1; + } else if(((((!(a23==1)||(!(a6==1)||((a2==1)&&(a9==11))))&&!(a26==1))||(a8==1))&&((a28==1)&&((((a16==11)&&((a12==1)&&((((a1==14)&&(((a5==4)||(a5==5))&&(input==4)))&&(a20==1))&&(a19==4))))&&(a21==11))&&(a17==2))))){ + a19 = 1; + a14 = 0; + a16 = 7; + a1 = 12; + a23 = 1; + a9 = 7; + a21 = 10; + a3 = 1; + a5 = 4; + return -1; + } else if(((((!(a0==1)&&((a1==12)&&(((((a5==4)||(a5==5))&&(input==3))&&(a19==1))&&(a16==10))))&&(a12==1))&&(a21==12))&&(!(a18==1)&&((a20==1)&&((((a13==1)&&(((a28==1)&&(a9==9))&&(a17==2)))&&!(a4==1))&&(a2==1)))))){ + a9 = 7; + a21 = 10; + a16 = 7; + a3 = 1; + a8 = 0; + a5 = 4; + return -1; + } else if((((a24==1)||((a21==11)&&(((a1==12)&&(!(a27==1)&&(a23==1)))||(a26==1))))&&(((a19==2)&&((((a11==1)&&(((((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a16==10))&&(a17==2))&&!(a20==1)))&&(a23==1))&&(a9==11)))&&(a3==1)))){ + a5 = 6; + a16 = 7; + a21 = 10; + a9 = 10; + a22 = 0; + a29 = 0; + a19 = 1; + a1 = 13; + a23 = 0; + a20 = 1; + return -1; + } else if((((a16==8)&&((a1==12)&&((((((a28==1)&&!(a0==1))&&!(a20==1))||!(a13==1))&&(a21==12))&&(a17==2))))&&((a19==2)&&((a2==1)&&(((!(a14==1)&&((input==5)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))))&&(a11==1))&&!(a18==1)))))){ + a10 = 0; + a20 = 1; + a5 = 6; + a27 = 1; + a7 = 1; + a16 = 7; + a9 = 11; + a21 = 10; + return -1; + } else if((((a2==1)&&(((a16==8)&&((((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(input==6)))&&(a3==1)))&&(!(a8==1)&&(!(a4==1)&&(((((a1==13)&&(((!(a2==1)||(a3==1))&&(a17==2))&&(a21==12)))&&!(a20==1))&&(a19==3))&&!(a7==1)))))){ + a21 = 10; + a1 = 12; + a5 = 6; + a19 = 1; + a16 = 11; + a9 = 10; + a11 = 0; + a25 = 0; + return -1; + } else if((((a21==12)&&((a17==2)&&((a11==1)&&(a6==1))))&&((a23==1)&&((!(a26==1)&&(((a23==1)&&((a16==7)&&(((a2==1)&&((input==6)&&(((a9==11)&&((a1==13)&&(a5==6)))||(((a1==14)&&(a5==4))&&(a9==7)))))&&(a19==1))))&&(a20==1)))&&(a11==1))))){ + a5 = 4; + a21 = 10; + a9 = 7; + a2 = 1; + a27 = 0; + a1 = 12; + return -1; + } else if(((!(a6==1)||((((a24==1)||((a13==1)&&(((a1==14)&&((a19==1)&&((a2==1)&&(a21==12))))&&(a13==1))))&&(a17==2))&&(a9==9)))&&((a16==10)&&((a28==1)&&(((a13==1)&&((input==6)&&((a5==4)||(a5==5))))&&!(a20==1)))))){ + a1 = 12; + a13 = 0; + a21 = 11; + a14 = 1; + a9 = 7; + a16 = 9; + a5 = 4; + a18 = 1; + return 23; + } else if(((!(a20==1)&&((a19==4)&&(!(a4==1)&&((((input==3)&&(a5==4))&&(a28==1))&&(a2==1)))))&&((a1==14)&&(((a16==10)&&((((a18==1)||((a11==1)&&((a21==12)&&(a13==1))))||(a27==1))&&(a17==2)))&&(a9==7))))){ + a5 = 5; + a14 = 1; + a6 = 0; + a1 = 13; + a28 = 0; + a9 = 8; + a21 = 10; + a16 = 7; + a19 = 3; + a20 = 1; + return 23; + } else if((((a19==2)&&(!(a27==1)&&((a28==1)&&((a21==12)&&(!(a26==1)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&(a1==13))&&(a2==1)))))))&&((a17==2)&&((a16==8)&&(!(a2==1)||((a18==1)||((a9==11)&&((a20==1)&&(a11==1))))))))){ + a19 = 1; + a2 = 1; + a0 = 0; + a9 = 7; + a5 = 4; + a1 = 12; + a21 = 10; + a16 = 7; + return -1; + } else if((((a4==1)||(((a1==14)&&((a17==2)&&(a13==1)))&&(a11==1)))&&((((!(a26==1)&&((((((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==5))&&!(a7==1))&&(a16==9))&&!(a20==1))&&(a19==5)))&&(a28==1))&&(a21==11))&&!(a24==1)))){ + if((a28==1)){ + a12 = 0; + a21 = 10; + a20 = 1; + a9 = 7; + a2 = 0; + a16 = 7; + a1 = 12; + a6 = 0; + a19 = 2; + a5 = 4; + }else{ + a3 = 0; + a16 = 8; + a5 = 4; + a22 = 1; + a9 = 7; + a10 = 1; + a21 = 10; + a1 = 12; + } + return -1; + } else if((((a9==8)&&((a19==1)&&(((a6==1)&&((a6==1)&&((!(a18==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3)))&&!(a8==1))))&&(a16==8))))&&((!(a4==1)&&((!(a14==1)&&((a21==10)&&((a17==2)&&(a28==1))))&&!(a20==1)))&&(a1==13)))){ + a16 = 7; + a6 = 1; + a1 = 12; + a20 = 1; + a9 = 7; + a28 = 1; + a5 = 4; + a26 = 0; + return -1; + } else if((((((a16==9)&&((a3==1)&&((a23==1)&&(!(a8==1)&&(!(a4==1)&&(((a21==12)&&((a9==7)&&(input==6)))&&(a17==2)))))))&&(a28==1))&&(a13==1))&&(((a19==4)&&(((a5==4)&&(a6==1))&&(a20==1)))&&(a1==13)))){ + a3 = 1; + a4 = 0; + a16 = 7; + a26 = 0; + a1 = 12; + a21 = 10; + a19 = 1; + return -1; + } else if((((!(a18==1)&&(((((a5==5)||(a5==6))&&(input==5))&&(a9==8))&&(a17==2)))&&(a1==14))&&((a2==1)&&((((a19==2)&&(!(a20==1)&&((!(a23==1)||(!(a4==1)&&((a6==1)&&(a21==10))))&&(a16==10))))&&(a3==1))&&!(a14==1))))){ + a20 = 1; + a16 = 7; + a9 = 7; + a1 = 13; + a8 = 1; + a5 = 4; + a10 = 0; + a2 = 0; + return 21; + } else if((((a3==1)&&(((a12==1)&&((a20==1)&&(((a0==1)||(!(a27==1)&&(a11==1)))&&(a16==11))))&&(a12==1)))&&((a28==1)&&((a17==2)&&((input==3)&&((((a21==10)&&((a19==5)&&((a9==11)&&((a5==5)&&(a1==14)))))||(((((a1==14)&&(a5==6))&&(a9==11))&&(a19==5))&&(a21==10)))||((a21==11)&&((a19==1)&&(((a5==4)&&(a1==12))&&(a9==7)))))))))){ + a21 = 11; + a16 = 9; + a0 = 0; + a19 = 5; + a9 = 11; + a28 = 1; + a1 = 14; + a14 = 0; + a5 = 5; + return 21; + } else if(((((a19==3)&&((a21==10)&&((((a23==1)&&(a28==1))||!(a12==1))&&!(a27==1))))&&(a1==14))&&((a3==1)&&(((((a16==9)&&(((((a5==5)||(a5==6))&&(input==3))&&(a20==1))&&(a2==1)))&&(a13==1))&&(a9==10))&&(a17==2))))){ + a19 = 1; + a28 = 1; + a5 = 4; + a26 = 0; + a9 = 7; + a16 = 7; + a1 = 12; + a11 = 1; + return -1; + } else if((((((a23==1)&&((((a12==1)&&(((input==6)&&(a1==12))&&(a3==1)))&&(a16==11))&&(a2==1)))&&(a11==1))&&(a21==12))&&((a9==10)&&(((a19==5)&&((((a5==4)&&(a11==1))&&(a17==2))&&(a20==1)))&&!(a4==1))))){ + a1 = 13; + a21 = 10; + a28 = 1; + a12 = 1; + a19 = 2; + a26 = 0; + a16 = 9; + return -1; + } else if((((((((a1==14)&&((!(a24==1)&&((input==6)&&(((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))))&&(a19==5)))&&(a20==1))&&!(a14==1))&&!(a0==1))&&(a17==2))&&(((a6==1)&&(!(a28==1)||((a28==1)&&((a6==1)&&(a21==11)))))&&(a16==8)))){ + a5 = 4; + a0 = 0; + a1 = 12; + a21 = 10; + a19 = 1; + a8 = 0; + a12 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if((((a17==2)&&((!(a27==1)&&(!(a0==1)&&((!(a4==1)&&((input==3)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))))&&!(a4==1))))&&(a1==13)))&&((a19==2)&&((a21==11)&&((a16==9)&&(!(a23==1)||((!(a20==1)&&(a2==1))||(a27==1)))))))){ + a9 = 7; + a1 = 12; + a3 = 0; + a16 = 7; + a19 = 1; + a13 = 0; + a10 = 0; + a21 = 10; + a20 = 1; + a5 = 6; + return 21; + } else if(((!(a4==1)&&((a16==11)&&((a3==1)&&(((a17==2)&&(a2==1))&&(a20==1)))))&&((a1==13)&&((((((!(a18==1)&&((a2==1)&&((input==1)&&((a5==6)||((a5==4)||(a5==5))))))&&!(a8==1))&&(a21==12))&&(a23==1))&&(a9==9))&&(a19==5))))){ + a13 = 1; + a21 = 10; + a8 = 0; + a19 = 1; + a16 = 7; + a20 = 0; + a27 = 0; + a5 = 5; + a9 = 7; + return 21; + } else if(((!(a14==1)&&(((a16==9)&&((!(a24==1)&&((a23==1)||(a8==1)))&&(a19==3)))&&(a21==10)))&&(((a1==12)&&(((a9==11)&&(!(a8==1)&&(((a20==1)&&(((a5==4)||(a5==5))&&(input==1)))&&!(a24==1))))&&(a17==2)))&&(a11==1)))){ + a16 = 7; + a5 = 4; + a20 = 0; + a1 = 14; + a2 = 1; + a0 = 0; + a9 = 10; + a21 = 11; + a13 = 1; + return 26; + } else if(((((a16==11)&&((a19==5)&&(((a27==1)||((a1==12)&&((a17==2)&&((a20==1)&&(a6==1)))))&&(a21==10))))&&!(a7==1))&&((((((a11==1)&&(((a5==4)||(a5==5))&&(input==4)))&&(a2==1))&&(a23==1))&&!(a26==1))&&(a9==9)))){ + a9 = 7; + a19 = 1; + a18 = 0; + a5 = 4; + a7 = 0; + a16 = 7; + return -1; + } else if(((((a21==12)&&((a16==8)&&((a17==2)&&((a9==9)&&(!(a0==1)&&((a14==1)||(a6==1)))))))&&!(a20==1))&&((((!(a24==1)&&((((input==1)&&((a5==5)||(a5==6)))&&(a12==1))&&(a12==1)))&&!(a8==1))&&(a19==1))&&(a1==13)))){ + a10 = 0; + a25 = 0; + a7 = 1; + a21 = 10; + a1 = 12; + a9 = 8; + a20 = 1; + a5 = 5; + a16 = 7; + return 26; + } else if(((!(a8==1)&&(((a20==1)&&(!(a0==1)&&(((!(a26==1)&&((a28==1)&&(a16==11)))&&(a19==1))||(a18==1))))&&(a23==1)))&&((a17==2)&&(((a1==13)&&(((input==4)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(a21==10)))&&!(a0==1))))){ + a5 = 4; + a16 = 7; + a12 = 1; + a2 = 1; + a9 = 7; + a4 = 0; + a1 = 12; + return -1; + } else if(((!(a14==1)&&((a2==1)&&((a21==11)&&(!(a18==1)&&(((a5==4)||(a5==5))&&(input==1))))))&&((((a1==12)&&((a9==10)&&((a6==1)&&(((((a16==8)&&(a11==1))||!(a12==1))&&(a17==2))&&(a20==1)))))||(a24==1))&&(a19==1)))){ + a21 = 10; + a16 = 7; + a18 = 0; + a9 = 7; + a2 = 1; + a5 = 4; + a7 = 0; + return -1; + } else if(((((a1==12)&&(((a20==1)&&(a23==1))&&!(a4==1)))&&(a12==1))&&(((((a17==2)&&(!(a0==1)&&((a21==11)&&(((a5==4)&&(((a19==4)&&(input==3))&&(a9==7)))&&(a2==1)))))&&!(a27==1))&&(a16==9))&&!(a4==1)))){ + a19 = 1; + a3 = 1; + a4 = 0; + a16 = 7; + a18 = 0; + a21 = 10; + return -1; + } else if(((((a16==8)&&(!(a3==1)&&((((!(a11==1)&&((a21==11)&&((input==3)&&(a1==13))))&&!(a2==1))&&(a5==5))&&(a4==1))))&&(a20==1))&&((a9==7)&&(((a14==1)&&(((a19==3)&&(a28==1))&&(a17==2)))&&!(a13==1))))){ + a26 = 1; + a20 = 0; + a5 = 4; + a16 = 7; + a8 = 1; + a9 = 8; + a21 = 12; + a22 = 1; + return -1; + } else if(((((a27==1)||(!(a12==1)||(((a4==1)||((a17==2)&&((a16==10)&&(a23==1))))&&(a20==1))))||(a0==1))&&((a28==1)&&(((a21==11)&&((input==4)&&((((a9==7)&&((a5==4)&&(a1==12)))&&(a19==4))||(((a19==3)&&((a9==11)&&((a1==14)&&(a5==5))))||((a19==3)&&((a9==11)&&((a5==6)&&(a1==14))))))))&&(a13==1))))){ + a4 = 0; + a16 = 7; + a9 = 7; + a21 = 10; + a1 = 12; + a6 = 1; + a19 = 1; + a2 = 1; + a5 = 4; + return -1; + } else if((((a1==14)&&(!(a20==1)&&(((a5==6)&&(((a9==7)&&((a16==8)&&(input==1)))&&(a19==5)))&&(a17==2))))&&((a21==12)&&((a23==1)&&((a2==1)&&(!(a18==1)&&(((a14==1)||((a3==1)&&(a3==1)))||!(a11==1)))))))){ + a0 = 1; + a1 = 13; + a28 = 0; + a9 = 11; + a2 = 0; + a21 = 10; + a19 = 4; + a20 = 1; + return 23; + } else if((((a28==1)&&((a2==1)&&(((input==5)&&(((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))))&&!(a14==1))))&&((((((a1==13)&&(((((a21==12)&&(a3==1))&&(a17==2))&&(a16==7))||(a24==1)))&&(a19==1))&&!(a20==1))||(a14==1))||!(a3==1)))){ + a13 = 1; + a21 = 11; + a14 = 0; + a28 = 1; + a9 = 8; + a19 = 5; + a1 = 12; + a5 = 6; + a16 = 8; + a20 = 1; + return 21; + } else if(((!(a0==1)&&(((a19==1)&&((a21==11)&&((a5==5)&&((a13==1)&&(a11==1)))))&&(a17==2)))&&(((a13==1)&&(((a16==11)&&(!(a26==1)&&(((a20==1)&&((input==3)&&(a9==9)))&&(a1==13))))&&!(a8==1)))&&(a3==1)))){ + a6 = 1; + a26 = 0; + a5 = 6; + a19 = 5; + a9 = 11; + return 22; + } else if((((((((!(a2==1)||(a28==1))||(a26==1))||(a24==1))&&(a19==5))&&(a21==10))&&(a20==1))&&((a16==11)&&((!(a27==1)&&((a1==13)&&((((input==4)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&!(a24==1))&&!(a27==1))))&&(a17==2))))){ + a24 = 0; + a5 = 4; + a16 = 7; + a9 = 7; + a1 = 12; + a4 = 0; + a19 = 1; + a28 = 1; + return -1; + } else if(((((a17==2)&&((a26==1)&&(((a11==1)&&!(a3==1))&&(a21==12))))&&(a27==1))&&((a26==1)&&(!(a23==1)&&((a20==1)&&((a18==1)&&((a16==7)&&((input==3)&&((((((a1==14)&&(a5==6))&&(a9==11))&&(a19==4))||((a19==5)&&((a9==7)&&((a1==12)&&(a5==4)))))||((a19==5)&&((a9==7)&&((a1==12)&&(a5==5))))))))))))){ + a28 = 0; + a19 = 1; + a5 = 4; + a21 = 10; + a15 = 1; + a9 = 10; + a22 = 0; + a1 = 13; + return -1; + } else if(((((a20==1)&&(((((a11==1)&&((a28==1)&&((input==6)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))))&&!(a8==1))&&(a16==7))&&(a19==4)))&&(a17==2))&&((a21==10)&&((a24==1)||((!(a13==1)||((a1==14)&&(a28==1)))&&!(a24==1)))))){ + a9 = 9; + a4 = 0; + a11 = 1; + a21 = 11; + a5 = 4; + a19 = 5; + a6 = 1; + return 21; + } else if(((((((!(a20==1)&&(input==3))&&(a13==1))&&(a17==2))&&(a21==12))&&(a5==6))&&((((a19==1)&&(!(a27==1)&&((((((a27==1)||(a13==1))||(a26==1))&&(a23==1))||!(a28==1))&&(a1==13))))&&(a16==9))&&(a9==9)))){ + a16 = 7; + a25 = 1; + a19 = 2; + a20 = 1; + a28 = 0; + a1 = 12; + a21 = 10; + a12 = 0; + a5 = 4; + return -1; + } else if((((a21==10)&&((a19==1)&&(((a23==1)&&((a17==2)&&((input==5)&&((((a1==12)&&(a5==6))&&(a9==11))||((a9==7)&&((a1==13)&&(a5==4)))))))&&!(a27==1))))&&(!(a20==1)&&((((a3==1)&&(((a28==1)&&!(a27==1))&&!(a0==1)))&&(a3==1))&&(a16==11))))){ + a22 = 1; + a6 = 0; + a1 = 13; + a5 = 6; + a9 = 10; + a16 = 7; + a11 = 0; + a20 = 1; + return 26; + } else if(((((!(a14==1)&&((a19==3)&&(((a1==12)&&(((((a12==1)&&(a20==1))||!(a3==1))&&(a9==9))&&(a17==2)))&&(a21==12))))||(a18==1))&&(a11==1))&&((a12==1)&&((a16==11)&&(((a5==6)&&(input==5))&&!(a14==1)))))){ + a21 = 10; + a19 = 1; + a11 = 1; + a16 = 7; + a9 = 7; + a5 = 4; + a28 = 1; + return -1; + } else if((((a2==1)&&((a14==1)||((a9==11)&&((((!(a11==1)||((a23==1)&&(a20==1)))||!(a2==1))&&(a17==2))&&(a5==6)))))&&(((a16==8)&&(((a21==11)&&(!(a7==1)&&((a19==5)&&(input==4))))&&!(a7==1)))&&(a1==12)))){ + a21 = 10; + a18 = 0; + a16 = 7; + a5 = 4; + a9 = 7; + a19 = 1; + a4 = 0; + a3 = 1; + return -1; + } else if((((a4==1)||(!(a18==1)&&((a28==1)&&((a20==1)&&((((a18==1)||(a28==1))&&(a17==2))&&(a16==9))))))&&((a21==10)&&((a1==12)&&(!(a24==1)&&(((((input==6)&&((a5==5)||(a5==6)))&&(a3==1))&&(a9==7))&&(a19==5))))))){ + a12 = 1; + a6 = 1; + a5 = 4; + a19 = 1; + a28 = 1; + a16 = 7; + return -1; + } return calculate_output29(input); + } + + int calculate_output29(int input) { + if((((a20==1)&&(((a21==12)&&(((a16==9)&&(!(a3==1)||((a9==9)&&(!(a23==1)||(!(a14==1)&&(a11==1))))))&&(a17==2)))&&(a1==12)))&&((((a5==4)&&(!(a7==1)&&((input==6)&&(a19==3))))&&(a2==1))&&!(a8==1)))){ + a16 = 7; + a11 = 1; + a21 = 10; + a18 = 0; + a9 = 10; + a1 = 13; + a19 = 2; + a5 = 5; + a8 = 0; + return -1; + } else if((((((((a21==11)&&(!(a20==1)&&(!(a26==1)&&((input==6)&&((a5==4)||(a5==5))))))&&(a9==11))&&(a11==1))&&(a23==1))&&!(a18==1))&&((a2==1)&&(((a12==1)&&((a19==1)&&((a17==2)&&((a28==1)&&(a1==14)))))&&(a16==9))))){ + a5 = 6; + a1 = 13; + a3 = 0; + a16 = 7; + a19 = 4; + a21 = 10; + a9 = 10; + a0 = 1; + a11 = 0; + return 23; + } else if((((a14==1)||(!(a8==1)&&(((a21==11)&&(a6==1))||!(a3==1))))&&(((((a6==1)&&(!(a14==1)&&((a19==5)&&(((a9==8)&&(((input==4)&&(a20==1))&&(a1==13)))&&(a16==11)))))&&(a17==2))&&(a5==6))&&!(a26==1)))){ + a12 = 1; + a5 = 4; + a11 = 1; + a9 = 7; + a1 = 12; + a19 = 1; + a3 = 1; + a21 = 10; + a16 = 7; + return -1; + } else if((((a16==8)&&(((!(a20==1)&&((a19==5)&&(a11==1)))&&(a1==13))&&!(a0==1)))&&((a17==2)&&(((((a3==1)&&((a21==11)&&((a11==1)&&(((a5==5)&&(input==5))&&(a9==10)))))&&!(a7==1))&&(a28==1))&&!(a7==1))))){ + a9 = 7; + a16 = 7; + a19 = 2; + a5 = 6; + a20 = 1; + a21 = 10; + a12 = 0; + a1 = 12; + a15 = 1; + a8 = 1; + return -1; + } else if((((((a26==1)||((a5==6)&&((a9==8)&&((!(a27==1)&&(a28==1))||!(a13==1)))))||!(a11==1))&&(a19==1))&&((a20==1)&&((a12==1)&&((((a21==10)&&(((input==1)&&(a16==9))&&(a17==2)))&&(a1==13))&&!(a18==1)))))){ + a16 = 10; + a18 = 0; + a1 = 12; + a21 = 12; + a19 = 3; + a28 = 1; + a24 = 0; + a9 = 10; + a5 = 5; + return 25; + } else if(((!(a18==1)&&(((a8==1)||((a11==1)&&((a28==1)&&(a1==12))))&&!(a20==1)))&&((a5==5)&&((!(a26==1)&&(((a16==7)&&(((!(a8==1)&&((input==1)&&(a19==1)))&&(a21==10))&&!(a18==1)))&&(a17==2)))&&(a9==9))))){ + a3 = 1; + a2 = 1; + a5 = 4; + a11 = 1; + a20 = 1; + a9 = 7; + return -1; + } else if((((a1==14)&&((((a6==1)&&(!(a27==1)&&((a16==7)&&(input==4))))&&(a5==4))&&(a17==2)))&&((a21==11)&&((a19==1)&&(((a8==1)||(!(a4==1)&&(((!(a20==1)&&(a12==1))||!(a13==1))&&(a9==8))))||!(a12==1)))))){ + a20 = 1; + a24 = 0; + a5 = 6; + a13 = 1; + a26 = 0; + a19 = 4; + a9 = 11; + a1 = 13; + return 23; + } else if(((((((a16==10)&&((a1==14)&&((a21==12)&&((a19==1)&&(input==6)))))&&(a2==1))&&(a9==11))&&(a20==1))&&(!(a7==1)&&((a24==1)||((((a14==1)||((a17==2)&&((a26==1)||(a3==1))))&&!(a18==1))&&(a5==4)))))){ + a16 = 7; + a19 = 2; + a5 = 5; + a9 = 9; + a1 = 13; + a6 = 1; + a21 = 10; + a2 = 1; + return -1; + } else if(((!(a26==1)&&((((a1==14)&&(input==5))&&(a5==5))&&!(a20==1)))&&((((a11==1)&&(!(a6==1)||((a9==9)&&(((a19==4)&&(((a4==1)||((a21==12)&&(a12==1)))&&(a16==7)))&&(a17==2)))))&&(a23==1))&&(a3==1)))){ + a18 = 0; + a0 = 0; + a1 = 12; + a19 = 1; + a7 = 0; + a21 = 10; + a20 = 1; + a5 = 6; + a16 = 11; + return 26; + } else if(((((a19==5)&&((((a23==1)&&((a28==1)&&((input==4)&&(a21==12))))&&(a28==1))&&(a5==4)))&&!(a27==1))&&(!(a28==1)||((((((a1==14)&&((a3==1)&&(a17==2)))&&(a9==7))&&!(a20==1))&&(a16==8))||!(a2==1))))){ + if((a12==1)){ + a11 = 0; + a1 = 12; + a14 = 1; + a9 = 11; + a20 = 1; + a19 = 3; + a4 = 1; + a21 = 11; + }else{ + a19 = 1; + a11 = 0; + a21 = 10; + a2 = 0; + a28 = 0; + a16 = 11; + a9 = 8; + } + return -1; + } else if((((a14==1)||(((a1==13)&&((a17==2)&&(((a21==12)&&(a2==1))&&(a20==1))))&&!(a26==1)))&&(((!(a27==1)&&((a19==5)&&((a16==8)&&(!(a18==1)&&((a9==8)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6))))))))&&(a23==1))&&!(a27==1)))){ + a6 = 1; + a19 = 1; + a23 = 1; + a5 = 4; + a9 = 7; + a21 = 10; + a1 = 12; + a3 = 1; + a16 = 7; + return -1; + } else if((((a6==1)&&((a20==1)&&((a17==2)&&(((a1==14)&&((a21==10)&&(a23==1)))&&(a6==1)))))&&(!(a0==1)&&((a12==1)&&(!(a27==1)&&(((((input==4)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(a19==5))&&(a16==9))&&(a3==1))))))){ + a2 = 1; + a16 = 7; + a9 = 7; + a12 = 1; + a1 = 12; + a5 = 4; + a19 = 1; + a24 = 0; + return -1; + } else if((((!(a6==1)||((a14==1)||(!(a20==1)&&((a3==1)&&(a21==10)))))||!(a2==1))&&(((a11==1)&&((((a19==2)&&((((((a1==13)&&(a5==5))&&(a9==7))||(((a9==11)&&((a5==6)&&(a1==12)))||((a9==7)&&((a5==4)&&(a1==13)))))&&(input==4))&&(a17==2)))&&(a2==1))&&!(a18==1)))&&(a16==9)))){ + if((a10==1)){ + a16 = 10; + a27 = 1; + a22 = 0; + a5 = 6; + a10 = 1; + a20 = 1; + a21 = 12; + a1 = 13; + a9 = 8; + }else{ + a9 = 9; + a16 = 8; + a5 = 4; + a14 = 1; + a6 = 0; + a20 = 1; + a19 = 5; + a1 = 12; + a15 = 0; + } + return 21; + } else if(((!(a18==1)&&((((((input==5)&&(a16==7))&&(a9==11))&&!(a7==1))&&!(a20==1))&&(a21==10)))&&(((!(a0==1)&&(!(a7==1)&&(!(a4==1)&&(((a19==3)&&((a6==1)&&(a17==2)))||(a7==1)))))&&(a1==12))&&(a5==6)))){ + a3 = 1; + a27 = 0; + a5 = 4; + a11 = 1; + a9 = 7; + a20 = 1; + a19 = 1; + return -1; + } else if(((!(a2==1)||((((a19==2)&&((a13==1)&&((a6==1)||!(a2==1))))&&(a9==9))||!(a23==1)))&&((((!(a18==1)&&(!(a8==1)&&((a5==6)&&((a17==2)&&((input==1)&&!(a20==1))))))&&(a16==8))&&(a21==11))&&(a1==14)))){ + if((a25==1)){ + a18 = 0; + a19 = 5; + a13 = 1; + a5 = 5; + a24 = 0; + a1 = 12; + a9 = 10; + }else{ + a9 = 11; + a19 = 1; + a24 = 0; + a20 = 1; + a16 = 10; + a21 = 10; + a18 = 0; + a1 = 13; + } + return 21; + } else if((((a9==8)&&(((a27==1)||((a21==10)&&((a1==13)&&(a2==1))))&&(a16==11)))&&((a6==1)&&(!(a18==1)&&(!(a7==1)&&(!(a20==1)&&((a28==1)&&(((((input==4)&&(a17==2))&&(a5==6))&&(a3==1))&&(a19==4))))))))){ + if((a27==1)){ + a19 = 1; + a12 = 0; + a8 = 1; + a29 = 1; + a16 = 8; + a9 = 10; + a21 = 12; + }else{ + a1 = 12; + a16 = 7; + a20 = 1; + a19 = 1; + a18 = 1; + a12 = 0; + a5 = 4; + a25 = 0; + } + return -1; + } else if((((a20==1)&&(((((((input==6)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5))))&&(a21==12))&&(a3==1))&&(a17==2))&&(a11==1))&&(a16==10)))&&((a8==1)||((a1==13)&&((a19==1)&&((a27==1)||((!(a8==1)&&(a28==1))||(a26==1)))))))){ + a9 = 7; + a1 = 12; + a6 = 1; + a11 = 1; + a18 = 0; + a5 = 4; + a21 = 10; + a16 = 7; + return -1; + } else if((((a28==1)&&((a21==10)&&((a1==12)&&((((input==1)&&(a17==2))&&!(a18==1))&&(a6==1)))))&&(((a5==4)&&((((a19==3)&&((a9==10)&&(!(a26==1)&&((a16==11)&&(a6==1)))))||(a18==1))&&!(a14==1)))&&(a20==1)))){ + a2 = 1; + a3 = 1; + a9 = 7; + a19 = 1; + a24 = 0; + a16 = 7; + return -1; + } else if((((a9==11)&&((a1==13)&&(!(a0==1)&&(!(a0==1)&&(!(a18==1)&&(((a21==12)&&((a12==1)&&(a2==1)))&&(a16==11)))))))&&((((a20==1)&&((a17==2)&&(((input==6)&&(a5==5))&&!(a0==1))))&&(a3==1))&&(a19==5)))){ + a21 = 10; + a0 = 0; + a6 = 1; + a19 = 1; + a20 = 0; + a16 = 7; + a9 = 10; + a27 = 0; + return 23; + } else if(((((a9==9)&&((a17==2)&&(((((a1==13)&&((a6==1)&&(a23==1)))&&(a2==1))||(a18==1))&&(a16==11))))||(a4==1))&&(!(a27==1)&&((a19==3)&&(((a21==10)&&((a6==1)&&(((a5==4)||(a5==5))&&(input==6))))&&!(a20==1)))))){ + if((a9==10)){ + a12 = 0; + a15 = 1; + a19 = 5; + a16 = 7; + a5 = 5; + a9 = 8; + a18 = 1; + a1 = 14; + a21 = 11; + }else{ + a20 = 1; + a1 = 14; + a27 = 1; + a9 = 8; + a5 = 6; + a16 = 7; + a19 = 1; + a10 = 0; + a18 = 1; + } + return 23; + } else if(((((a23==1)&&(((a19==1)&&(((a5==5)||(a5==6))&&(input==3)))&&!(a8==1)))&&(a9==11))&&(((((a20==1)&&(((a27==1)||(((a24==1)||((a13==1)&&(a17==2)))&&(a21==11)))&&(a16==9)))&&(a2==1))||!(a12==1))&&(a1==13)))){ + a8 = 0; + a14 = 0; + a9 = 7; + a1 = 12; + a5 = 4; + a27 = 0; + a16 = 7; + a21 = 10; + return -1; + } else if(((((a17==2)&&((a6==1)&&(((a11==1)&&(a23==1))&&(a11==1))))&&(a21==12))&&((((!(a26==1)&&((!(a4==1)&&(((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==3))&&(a16==7)))&&!(a20==1)))&&!(a0==1))&&(a1==13))&&(a19==5)))){ + a5 = 4; + a19 = 1; + a1 = 12; + a20 = 1; + a9 = 7; + a21 = 10; + a6 = 1; + a27 = 0; + a8 = 0; + return -1; + } else if(((((!(a28==1)&&((!(a3==1)&&((a21==12)&&((input==5)&&(a5==6))))&&!(a11==1)))&&!(a28==1))&&(a17==2))&&((a19==1)&&((((((a16==10)&&((a6==1)&&(a4==1)))&&(a20==1))&&(a1==12))&&(a9==9))&&(a7==1))))){ + a1 = 13; + a20 = 0; + a5 = 4; + a13 = 0; + a9 = 7; + a27 = 1; + a19 = 2; + a28 = 0; + a21 = 11; + a16 = 8; + return -1; + } else if(((((((a23==1)&&((a17==2)&&(!(a6==1)||(a3==1))))&&!(a7==1))&&(a19==4))&&(a16==8))&&(((a9==8)&&(!(a4==1)&&((!(a8==1)&&(!(a24==1)&&(((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&(a1==13))))&&(a21==10))))&&!(a20==1)))){ + a1 = 14; + a16 = 9; + a5 = 6; + a20 = 1; + a6 = 1; + a12 = 1; + a19 = 2; + a7 = 0; + return 25; + } else if(((!(a24==1)&&((a28==1)&&((a11==1)&&(((a21==11)&&((a17==2)&&((input==5)&&((((a5==6)&&(a1==12))&&(a9==11))||(((a1==13)&&(a5==4))&&(a9==7))))))&&(a20==1)))))&&(((((a16==10)&&((a19==2)&&(a28==1)))&&(a28==1))&&!(a7==1))||!(a23==1)))){ + a9 = 11; + a16 = 11; + a5 = 5; + a19 = 1; + a23 = 1; + a0 = 0; + a1 = 13; + a18 = 0; + return 23; + } else if((((!(a0==1)&&(((((((input==3)&&((a5==4)||(a5==5)))&&(a19==4))&&(a17==2))&&(a9==10))&&(a16==7))&&!(a4==1)))&&(a3==1))&&(((a1==13)&&(!(a26==1)&&((((a0==1)||(a12==1))&&(a21==11))&&(a20==1))))&&(a13==1)))){ + a14 = 0; + a28 = 1; + a19 = 1; + a5 = 4; + a2 = 1; + a9 = 7; + a1 = 12; + a21 = 10; + return -1; + } else if(((((a16==11)&&(((a3==1)&&(((a2==1)&&((a6==1)&&((a21==12)&&((a9==9)&&(input==6)))))&&(a28==1)))&&!(a0==1)))&&!(a4==1))&&((a19==3)&&((((a1==14)&&((a17==2)&&(a11==1)))&&(a20==1))&&(a5==6))))){ + a9 = 10; + a16 = 8; + a27 = 0; + a8 = 0; + a5 = 5; + a19 = 5; + a21 = 11; + a20 = 0; + a1 = 12; + a28 = 1; + return 21; + } else if((((a17==2)&&((a19==4)&&(!(a18==1)&&((((((a12==1)&&((input==3)&&(((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8))))))&&(a16==9))&&(a3==1))&&(a11==1))&&(a21==11)))))&&(((a20==1)&&(((a3==1)&&(a13==1))&&(a3==1)))&&(a1==13)))){ + a16 = 7; + a0 = 0; + a26 = 0; + a9 = 7; + a12 = 1; + a1 = 12; + a21 = 10; + a19 = 1; + a5 = 4; + return -1; + } else if((((((a19==1)&&((((!(a13==1)||((((a11==1)&&(a21==12))&&(a20==1))&&(a3==1)))&&!(a18==1))&&(a17==2))&&(a16==11)))||!(a2==1))&&(a1==13))&&(((a11==1)&&((((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9))))&&(input==3)))&&!(a0==1)))){ + a1 = 12; + a9 = 7; + a2 = 1; + a3 = 1; + a21 = 10; + a23 = 1; + a5 = 4; + a16 = 7; + return -1; + } else if((((((!(a4==1)&&((a21==12)&&(((input==3)&&(((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))))&&(a16==11))))&&(a17==2))&&(a6==1))&&!(a18==1))&&((a19==5)&&((a4==1)||(((a20==1)&&(((a6==1)&&!(a7==1))&&(a11==1)))&&(a1==14)))))){ + a21 = 10; + a5 = 4; + a26 = 0; + a19 = 1; + a8 = 0; + a16 = 7; + a14 = 0; + a1 = 12; + a9 = 7; + return -1; + } else if((((!(a7==1)&&((a19==4)&&(((((a2==1)&&(a6==1))&&!(a20==1))||(a0==1))&&(a1==12))))||!(a12==1))&&(!(a26==1)&&((((((a9==7)&&(((a5==4)||(a5==5))&&(input==1)))&&(a13==1))&&(a21==10))&&(a17==2))&&(a16==9))))){ + if((a21==12)){ + a14 = 1; + a16 = 7; + a11 = 0; + a5 = 5; + a9 = 9; + a1 = 14; + a26 = 1; + a19 = 1; + a20 = 1; + }else{ + a12 = 0; + a16 = 7; + a9 = 9; + a2 = 0; + a5 = 6; + a11 = 0; + a1 = 13; + a20 = 1; + a19 = 1; + } + return 25; + } else if((((a19==2)&&((a16==11)&&(((a21==10)&&((a18==1)||((a27==1)||((a6==1)||(a0==1)))))&&!(a20==1))))&&((a9==11)&&((a17==2)&&(((a1==13)&&(!(a7==1)&&(!(a18==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))))&&!(a18==1)))))){ + a0 = 1; + a29 = 0; + a5 = 6; + a1 = 14; + a21 = 11; + a18 = 1; + a16 = 8; + return -1; + } else if((((a17==2)&&((a5==5)&&(((((a23==1)&&(a9==10))||(a24==1))&&(a11==1))||!(a28==1))))&&(((((!(a14==1)&&((a11==1)&&((a16==11)&&((a1==13)&&(input==3)))))&&(a21==11))&&(a20==1))&&!(a27==1))&&(a19==2)))){ + a18 = 0; + a21 = 10; + a1 = 12; + a16 = 7; + a5 = 4; + a12 = 1; + a9 = 7; + a13 = 1; + a19 = 1; + return -1; + } else if(((!(a0==1)&&((a20==1)&&(((a1==14)&&(((a19==2)&&(((a2==1)||(a26==1))&&(a9==11)))&&(a6==1)))&&(a21==12))))&&((a11==1)&&((((((a16==10)&&(input==5))&&(a11==1))&&(a5==5))&&(a28==1))&&(a17==2))))){ + a16 = 7; + a4 = 0; + a13 = 1; + a1 = 13; + a5 = 4; + a9 = 9; + a21 = 10; + return 25; + } else if(((((a19==2)&&(((a2==1)&&((a21==12)&&((a13==1)||!(a23==1))))&&!(a27==1)))&&(a16==7))&&((a17==2)&&((a13==1)&&(((a6==1)&&(!(a27==1)&&((((a9==7)&&((a5==5)&&(a1==14)))||((((a1==13)&&(a5==6))&&(a9==11))||((a9==7)&&((a1==14)&&(a5==4)))))&&(input==5))))&&(a20==1)))))){ + a26 = 0; + a16 = 9; + a1 = 13; + a5 = 6; + a19 = 3; + a27 = 0; + a9 = 11; + a21 = 10; + return 26; + } else if(((((a28==1)&&((a17==2)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a19==5))&&!(a0==1))&&(a21==11))))&&!(a0==1))&&((a8==1)||((!(a2==1)||((a9==9)&&((a20==1)&&((a16==8)&&((a3==1)&&(a1==12))))))&&(a28==1))))){ + a13 = 1; + a9 = 10; + a19 = 3; + a2 = 1; + a5 = 4; + a4 = 0; + a16 = 10; + return 25; + } else if(((((a16==9)&&((a21==10)&&((!(a26==1)&&((a9==8)&&((a6==1)&&(a1==14))))&&(a2==1))))&&(a19==3))&&(!(a18==1)&&(((a5==5)&&(!(a26==1)&&((a17==2)&&(((input==3)&&!(a20==1))&&(a12==1)))))&&(a13==1))))){ + if((a8==1)){ + a19 = 2; + a9 = 10; + a16 = 7; + a6 = 0; + a1 = 12; + a15 = 1; + a20 = 1; + a5 = 4; + a29 = 0; + }else{ + a20 = 1; + a5 = 4; + a1 = 13; + a29 = 1; + a28 = 0; + a26 = 1; + a9 = 10; + a19 = 2; + } + return -1; + } else if(((((a21==12)&&(a23==1))||(a7==1))&&(((((a3==1)&&(((((a16==7)&&((!(a0==1)&&(((a20==1)&&(input==1))&&!(a7==1)))&&!(a4==1)))&&(a1==13))&&(a5==5))&&(a17==2)))&&(a6==1))&&(a19==2))&&(a9==11)))){ + a7 = 0; + a19 = 3; + a23 = 1; + a8 = 0; + a5 = 6; + a16 = 9; + a21 = 10; + a9 = 10; + return 21; + } else if((((a19==1)&&((a17==2)&&(((a1==13)&&((a2==1)&&((((a5==4)||(a5==5))&&(input==1))&&!(a20==1))))&&(a9==11))))&&(!(a2==1)||(((a16==10)&&((a27==1)||((!(a18==1)&&((a28==1)&&(a21==10)))&&!(a8==1))))||!(a13==1))))){ + a1 = 14; + a28 = 0; + a19 = 3; + a9 = 7; + a16 = 7; + a5 = 4; + a11 = 0; + a2 = 0; + return -1; + } else if(((((a19==2)&&((a20==1)&&(!(a7==1)&&((a21==10)&&((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))&&(input==3))))))&&(a16==7))&&((((a17==2)&&((a3==1)&&((!(a11==1)||(!(a11==1)||(a6==1)))&&!(a7==1))))&&(a1==14))||(a24==1)))){ + a27 = 0; + a5 = 4; + a9 = 7; + a19 = 1; + a6 = 1; + a3 = 1; + a1 = 12; + return -1; + } else if((((!(a20==1)&&((((a5==5)&&(a11==1))&&(a2==1))&&(a9==9)))&&(a1==14))&&(((a23==1)&&((a17==2)&&(((a13==1)&&((a21==10)&&(!(a26==1)&&(((input==5)&&(a19==5))&&(a16==10)))))&&!(a27==1))))&&!(a14==1)))){ + a2 = 0; + a19 = 3; + a22 = 0; + a9 = 7; + a5 = 6; + a29 = 0; + return 26; + } else if((((a28==1)&&(!(a14==1)&&(((a16==11)&&((a18==1)||((a17==2)&&((a19==2)&&((a1==13)&&((a13==1)||(a26==1)))))))&&(a20==1))))&&(((a21==11)&&(((input==6)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&!(a26==1)))&&!(a8==1)))){ + a1 = 12; + a24 = 0; + a6 = 1; + a5 = 6; + a21 = 12; + a9 = 10; + a19 = 1; + a11 = 1; + return 21; + } else if((((a6==1)&&((a1==12)&&((((((input==1)&&((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4))))&&(a17==2))&&(a12==1))&&!(a18==1))&&!(a20==1))))&&(((a21==11)&&(!(a13==1)||((a19==2)&&((!(a12==1)||(a28==1))&&!(a7==1)))))&&(a16==9)))){ + a16 = 7; + a21 = 10; + a9 = 11; + a5 = 4; + a12 = 0; + a20 = 1; + a18 = 1; + a7 = 1; + return -1; + } else if(((!(a14==1)&&(((a17==2)&&((!(a7==1)&&((input==1)&&((((a9==11)&&((a1==14)&&(a5==6)))&&(a19==3))||((((a5==4)&&(a1==12))&&(a9==7))&&(a19==4)))))&&!(a8==1)))&&(a20==1)))&&(((((a14==1)||((a6==1)&&(a3==1)))&&(a21==10))||!(a12==1))&&(a16==11)))){ + a18 = 0; + a5 = 5; + a6 = 1; + a9 = 8; + a19 = 3; + a21 = 11; + a1 = 14; + return 22; + } else if(((!(a26==1)&&(((a6==1)&&(!(a20==1)&&((a21==11)&&(((a17==2)&&((a5==4)&&(input==3)))&&!(a26==1)))))&&(a9==7)))&&((a16==7)&&((a19==4)&&((a1==12)&&((((a3==1)||!(a3==1))||!(a6==1))&&!(a14==1))))))){ + a21 = 10; + a19 = 1; + a2 = 1; + a3 = 1; + a4 = 0; + a20 = 1; + return -1; + } else if(((!(a0==1)&&(((a17==2)&&((((((((a1==12)&&(a5==5))&&(a9==11))||((a9==11)&&((a1==12)&&(a5==6))))||((a9==7)&&((a5==4)&&(a1==13))))&&(input==6))&&(a21==10))&&!(a18==1)))&&(a6==1)))&&((a4==1)||(((((a19==1)&&((a12==1)&&(a16==10)))&&(a20==1))||!(a28==1))&&(a2==1))))){ + a9 = 7; + a7 = 0; + a5 = 4; + a16 = 7; + a1 = 12; + a23 = 1; + a8 = 0; + return -1; + } else if(((((a18==1)&&(((input==6)&&(((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))))&&(a8==1)))&&(a1==14))&&((a19==4)&&((a17==2)&&((a0==1)&&((a16==10)&&((a24==1)&&(!(a2==1)&&(((a0==1)&&((a23==1)&&(a20==1)))&&(a21==11)))))))))){ + a19 = 1; + a10 = 0; + a29 = 0; + a21 = 10; + a3 = 0; + a9 = 8; + a5 = 5; + a16 = 7; + return 25; + } else if((((a19==3)&&((!(a7==1)&&(!(a4==1)&&((((a17==2)&&((a9==7)&&(input==3)))&&!(a8==1))&&(a1==12))))&&(a21==11)))&&(((a4==1)||(((a26==1)||((a13==1)&&((a11==1)&&(a16==7))))&&(a20==1)))&&(a5==6)))){ + a16 = 8; + a9 = 8; + a2 = 1; + a19 = 4; + a1 = 14; + a7 = 0; + a5 = 5; + a12 = 1; + a21 = 10; + return 26; + } else if(((((((a21==10)&&((a13==1)||(a0==1)))&&(a5==6))&&(a17==2))&&!(a20==1))&&((((a28==1)&&((a19==2)&&(((((a9==9)&&((a1==14)&&(input==6)))&&!(a27==1))&&!(a14==1))&&!(a4==1))))&&(a16==11))&&!(a4==1)))){ + if((a6==1)){ + a18 = 1; + a24 = 1; + a16 = 7; + a5 = 5; + a19 = 1; + a20 = 1; + a25 = 0; + }else{ + a5 = 5; + a22 = 1; + a27 = 1; + a20 = 1; + a9 = 7; + a29 = 1; + a16 = 7; + a19 = 1; + } + return 21; + } else if(((((a19==4)&&((a16==9)&&((a3==1)&&(a21==10))))&&(a1==13))&&((a12==1)&&((a6==1)&&((a17==2)&&(((!(a8==1)&&((!(a18==1)&&(((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a5==4)&&(a9==8)))&&(input==1)))&&(a20==1)))&&(a12==1))&&!(a26==1))))))){ + a16 = 7; + a5 = 4; + a21 = 12; + a11 = 1; + a8 = 0; + a19 = 3; + a1 = 12; + a26 = 0; + a9 = 7; + return 25; + } else if(((!(a3==1)||((!(a24==1)&&((a21==10)&&(a3==1)))&&(a17==2)))&&((a19==3)&&(!(a20==1)&&((a6==1)&&((((a16==9)&&(!(a27==1)&&((a1==13)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==5)))))&&(a3==1))&&!(a14==1))))))){ + a22 = 1; + a0 = 1; + a1 = 14; + a9 = 10; + a5 = 5; + a16 = 7; + return 21; + } else if((((a5==6)&&((a21==12)&&((a9==7)&&((a17==2)&&((!(a18==1)&&(((a12==1)&&((a23==1)&&((a13==1)&&((a16==9)&&(input==5)))))&&(a1==12)))&&(a20==1))))))&&((a19==3)&&((a8==1)||((a8==1)||(a2==1)))))){ + a5 = 4; + a19 = 1; + a3 = 1; + a4 = 0; + a16 = 7; + a21 = 10; + return -1; + } else if(((!(a18==1)&&((((a24==1)||(((a16==7)&&(a12==1))&&(a21==11)))&&(a9==10))&&(a23==1)))&&(((!(a20==1)&&((((a17==2)&&(((input==1)&&(a5==5))&&(a6==1)))&&(a19==2))&&(a1==14)))&&(a3==1))&&!(a27==1)))){ + a19 = 1; + a1 = 12; + a9 = 7; + a5 = 4; + a27 = 0; + a20 = 1; + a6 = 1; + a21 = 10; + a18 = 0; + return -1; + } else if((((((a9==7)&&((a26==1)||(((a21==10)&&((a16==8)&&((a28==1)&&!(a18==1))))||!(a23==1))))&&(a1==14))&&(a17==2))&&(!(a20==1)&&((!(a0==1)&&((a3==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a12==1))))&&(a19==1))))){ + a5 = 4; + a28 = 1; + a20 = 1; + a4 = 0; + a1 = 12; + a16 = 7; + a6 = 1; + return -1; + } else if((((a19==5)&&((a1==13)&&((a7==1)&&((a9==9)&&((a14==1)&&((a7==1)&&(!(a13==1)&&(((a17==2)&&(input==3))&&(a21==11)))))))))&&(((a16==11)&&((a5==6)&&(((a4==1)&&(a3==1))&&!(a3==1))))&&(a20==1)))){ + a22 = 1; + a21 = 12; + a26 = 1; + a15 = 0; + a9 = 10; + a16 = 10; + return 23; + } else if((((a21==10)&&(!(a0==1)&&(((a3==1)&&(a2==1))&&!(a20==1))))&&((a19==2)&&((((!(a26==1)&&(!(a26==1)&&(!(a7==1)&&((((a9==11)&&((a5==6)&&(a1==13)))||((a9==7)&&((a1==14)&&(a5==4))))&&(input==5)))))&&(a2==1))&&(a17==2))&&(a16==7))))){ + a18 = 0; + a12 = 1; + a1 = 12; + a5 = 4; + a0 = 0; + a20 = 1; + a19 = 1; + a9 = 7; + return -1; + } else if(((((((a6==1)&&((a1==14)&&(((((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))&&(input==3))&&!(a26==1))&&!(a18==1))))&&(a16==9))&&(a20==1))&&(a17==2))&&((a2==1)&&(!(a7==1)&&((a19==4)&&(((a2==1)&&(a6==1))&&(a21==11))))))){ + a1 = 12; + a5 = 4; + a28 = 1; + a14 = 0; + a16 = 7; + a6 = 1; + a9 = 7; + a21 = 10; + a19 = 1; + return -1; + } else if(((((a20==1)&&(((a6==1)&&(((a17==2)&&(((a2==1)&&((input==1)&&((a5==5)||(a5==6))))&&!(a7==1)))&&(a9==7)))&&(a16==9)))&&!(a27==1))&&(!(a14==1)&&(((((a1==13)&&(a2==1))&&(a19==2))&&(a21==12))&&(a11==1))))){ + a28 = 1; + a9 = 9; + a8 = 0; + a23 = 1; + a5 = 5; + a16 = 10; + a21 = 11; + return 21; + } else if(((((a7==1)||((a19==5)&&(((a21==12)&&(!(a23==1)||((((a0==1)||(a11==1))&&(a6==1))||!(a3==1))))||!(a3==1))))&&(a16==9))&&((((a20==1)&&(((input==1)&&((a5==4)||(a5==5)))&&(a1==12)))&&(a9==9))&&(a17==2)))){ + a13 = 1; + a27 = 0; + a19 = 1; + a21 = 10; + a3 = 1; + a5 = 4; + a16 = 7; + a9 = 7; + return -1; + } else if((((a16==9)&&((a21==10)&&(((a28==1)&&(a28==1))||(a26==1))))&&((a20==1)&&((a19==1)&&((a17==2)&&((a23==1)&&(!(a7==1)&&((a13==1)&&((a6==1)&&((input==1)&&(((a9==7)&&((a5==4)&&(a1==13)))||(((a9==11)&&((a5==5)&&(a1==12)))||((a9==11)&&((a5==6)&&(a1==12))))))))))))))){ + a4 = 0; + a1 = 12; + a5 = 4; + a9 = 7; + a16 = 7; + a23 = 1; + a13 = 1; + return -1; + } else if((((((((a19==3)&&((a6==1)&&((a2==1)&&(a12==1))))&&(a17==2))&&(a9==9))||!(a23==1))||(a27==1))&&(!(a14==1)&&((a20==1)&&((((a6==1)&&(((a16==8)&&(input==3))&&(a5==5)))&&(a1==12))&&(a21==12)))))){ + a5 = 4; + a21 = 10; + a9 = 7; + a19 = 1; + a27 = 0; + a28 = 1; + a16 = 7; + a13 = 1; + return -1; + } else if((((a16==9)&&(((((a21==12)&&(((a13==1)||(a24==1))&&!(a8==1)))||!(a3==1))&&!(a24==1))&&!(a8==1)))&&(!(a20==1)&&((a1==12)&&((a3==1)&&((((input==5)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(a19==2))&&(a17==2))))))){ + a9 = 11; + a25 = 0; + a5 = 4; + a21 = 11; + a3 = 0; + a20 = 1; + a26 = 1; + a16 = 8; + return -1; + } else if(((!(a12==1)||((((a9==7)&&((!(a4==1)&&(a23==1))&&(a1==14)))||(a26==1))&&(a5==5)))&&((a16==10)&&(((!(a14==1)&&(((((input==5)&&(a19==3))&&!(a18==1))&&(a17==2))&&(a20==1)))&&(a21==10))&&(a23==1))))){ + a21 = 11; + a8 = 0; + a1 = 13; + a14 = 0; + a5 = 6; + a4 = 0; + a9 = 9; + a19 = 2; + return 21; + } else if((((a4==1)||((a4==1)||(((a20==1)&&((a3==1)&&!(a24==1)))&&(a16==7))))&&((((((a5==6)&&(((a2==1)&&(!(a26==1)&&((input==1)&&(a1==13))))&&(a19==2)))&&(a21==10))&&(a17==2))&&(a9==9))&&(a3==1)))){ + a4 = 0; + a26 = 0; + a5 = 4; + a18 = 0; + a19 = 3; + a1 = 12; + return 26; + } else if((((a23==1)&&((((((!(a18==1)&&((a21==12)&&(!(a20==1)&&(((a5==5)||(a5==6))&&(input==4)))))&&(a17==2))&&(a19==3))&&(a9==8))&&!(a26==1))&&(a2==1)))&&((((a16==10)&&((a1==12)&&(a28==1)))&&!(a4==1))&&(a6==1)))){ + a13 = 0; + a27 = 1; + a16 = 7; + a21 = 10; + a25 = 0; + a20 = 1; + a5 = 6; + a19 = 2; + return -1; + } else if((((a9==10)&&((a1==14)&&((a17==2)&&((a21==10)&&((a12==1)&&((a2==1)&&((((input==1)&&(a5==6))&&!(a7==1))&&(a3==1))))))))&&((((((a6==1)&&(a23==1))&&!(a8==1))&&(a20==1))&&(a19==3))&&(a16==7)))){ + a5 = 4; + a21 = 11; + a18 = 0; + a9 = 8; + a1 = 12; + a11 = 1; + a2 = 1; + return 21; + } else if((((a16==10)&&((a19==5)&&((((a12==1)&&(!(a20==1)&&((a11==1)&&((input==1)&&(a5==5)))))&&(a21==12))&&!(a26==1))))&&((((!(a27==1)&&(((a6==1)&&!(a14==1))&&(a17==2)))&&(a28==1))&&(a9==8))&&(a1==14)))){ + a14 = 1; + a9 = 11; + a20 = 1; + a1 = 13; + a10 = 1; + a19 = 4; + a16 = 7; + return 23; + } else if((((a1==12)&&((a3==1)&&((a21==10)&&(!(a11==1)||((a13==1)&&((a23==1)||(a0==1)))))))&&((((a16==11)&&(!(a0==1)&&((!(a4==1)&&((input==4)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))))&&!(a20==1))))&&(a19==2))&&(a17==2)))){ + if((a16==10)){ + a28 = 0; + a19 = 4; + a21 = 12; + a29 = 1; + a1 = 13; + a5 = 6; + a20 = 1; + a9 = 7; + }else{ + a3 = 0; + a16 = 10; + a20 = 1; + a21 = 11; + a22 = 0; + a19 = 1; + a9 = 9; + a0 = 1; + a5 = 5; + } + return 23; + } else if((((a3==1)&&(!(a0==1)&&((a19==5)&&((a1==13)&&((!(a26==1)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==6)))&&(a16==8))))))&&((a0==1)||((a7==1)||((a21==11)&&((a17==2)&&((!(a20==1)&&(a3==1))&&(a6==1)))))))){ + a9 = 10; + a16 = 7; + a13 = 0; + a1 = 12; + a18 = 1; + a14 = 1; + a20 = 1; + a19 = 1; + a21 = 10; + a5 = 5; + return 25; + } else if((((a1==12)&&(((a3==1)&&((a12==1)&&(((a2==1)&&(a19==1))||(a14==1))))&&(a20==1)))&&(((!(a0==1)&&(((((((a5==5)||(a5==6))&&(input==1))&&(a9==9))&&(a16==8))&&(a2==1))&&!(a7==1)))&&(a17==2))&&(a21==12)))){ + if((a7==1)){ + a21 = 11; + a5 = 5; + a19 = 4; + a20 = 0; + a18 = 0; + a14 = 0; + a6 = 1; + }else{ + a14 = 0; + a16 = 10; + a21 = 11; + a19 = 4; + a28 = 1; + a9 = 8; + a1 = 14; + a7 = 0; + a5 = 4; + } + return 26; + } else if(((((a17==2)&&((a3==1)||(a14==1)))&&(a3==1))&&((!(a20==1)&&(((((a5==6)&&((((((a21==12)&&(input==5))&&!(a8==1))&&(a1==13))&&(a19==4))&&(a12==1)))&&!(a26==1))&&(a13==1))&&(a16==7)))&&(a9==10)))){ + a0 = 0; + a21 = 10; + a19 = 5; + a16 = 9; + a1 = 12; + a9 = 11; + a24 = 0; + a8 = 0; + a20 = 1; + return 21; + } else if(((((a19==5)&&((((a16==7)&&(a2==1))||!(a12==1))&&!(a20==1)))&&(a21==10))&&((a17==2)&&(!(a0==1)&&(((a13==1)&&((a13==1)&&((a23==1)&&((a1==13)&&((input==6)&&((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a5==4)&&(a9==9))))))))&&!(a14==1)))))){ + a1 = 12; + a26 = 0; + a5 = 5; + a9 = 7; + a19 = 4; + a21 = 11; + a7 = 0; + a20 = 1; + a16 = 9; + a6 = 1; + return 21; + } else if(((((a16==10)&&(((a13==1)&&((a17==2)&&((input==1)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8))))))&&!(a18==1)))&&(a21==12))&&((a19==4)&&(((((!(a13==1)||((a13==1)&&(a1==13)))&&!(a20==1))||(a18==1))||(a14==1))&&!(a14==1))))){ + a5 = 6; + a12 = 0; + a16 = 7; + a19 = 1; + a8 = 1; + a9 = 8; + return -1; + } else if((((a17==2)&&((a19==4)&&((a9==10)&&((a23==1)&&((a3==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))))))&&(!(a26==1)&&(!(a20==1)&&(((a11==1)&&((a1==12)&&(((a3==1)&&((a6==1)&&(a16==10)))&&!(a27==1))))&&(a21==10)))))){ + if((a27==1)){ + a1 = 13; + a2 = 0; + a19 = 5; + a16 = 9; + a21 = 11; + a24 = 1; + a5 = 4; + a20 = 1; + a29 = 1; + a9 = 7; + }else{ + a9 = 11; + a16 = 7; + a2 = 0; + a5 = 5; + a13 = 0; + a15 = 1; + a19 = 1; + a21 = 12; + } + return -1; + } else if((((a9==11)&&(!(a27==1)&&(!(a12==1)||((((((a12==1)&&(a16==9))&&(a20==1))&&(a21==10))&&(a1==13))&&!(a18==1)))))&&((a19==2)&&((((a23==1)&&((((a5==5)||(a5==6))&&(input==1))&&(a17==2)))&&(a3==1))&&(a3==1))))){ + a16 = 8; + a28 = 1; + a5 = 5; + a27 = 0; + a19 = 5; + a1 = 14; + a9 = 8; + a6 = 1; + return 25; + } else if((((((a16==7)&&((a17==2)&&((a19==1)&&((((((a5==6)&&(a1==12))&&(a9==11))||((a9==7)&&((a1==13)&&(a5==4))))||(((a5==5)&&(a1==13))&&(a9==7)))&&(input==3)))))&&!(a20==1))&&!(a0==1))&&((a7==1)||((((((a3==1)||(a27==1))||(a24==1))&&(a21==10))&&!(a14==1))||!(a2==1))))){ + a2 = 1; + a9 = 7; + a4 = 0; + a1 = 12; + a20 = 1; + a27 = 0; + a5 = 4; + return -1; + } else if((((a16==8)&&((((((a17==2)&&((((a20==1)&&(input==1))&&(a19==5))&&(a3==1)))&&(a1==14))&&!(a27==1))&&(a5==5))&&!(a27==1)))&&(((a21==10)&&(!(a0==1)&&((a11==1)&&((a3==1)||!(a28==1)))))&&(a9==8)))){ + a19 = 1; + a16 = 7; + a12 = 1; + a2 = 1; + a9 = 7; + a5 = 4; + a1 = 12; + return -1; + } else if(((!(a4==1)&&((a17==2)&&(((a6==1)||!(a3==1))&&(a16==10))))&&(((a23==1)&&((!(a20==1)&&((a21==10)&&((a19==3)&&((a9==10)&&((a3==1)&&(!(a24==1)&&(((a5==5)||(a5==6))&&(input==5))))))))&&(a1==14)))&&(a2==1)))){ + a0 = 1; + a9 = 11; + a27 = 1; + a20 = 1; + a5 = 6; + a19 = 1; + a16 = 7; + a3 = 0; + return -1; + } else if(((!(a20==1)&&((!(a12==1)||((((a16==9)&&(a13==1))&&(a11==1))||(a7==1)))&&(a21==10)))&&(((a19==3)&&(((!(a18==1)&&((((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&(a11==1))&&(a17==2)))&&(a1==12))&&(a23==1)))&&(a9==7)))){ + a19 = 1; + a16 = 7; + a23 = 0; + a5 = 4; + a1 = 13; + a6 = 0; + a15 = 0; + a20 = 1; + return 25; + } else if((((a8==1)&&((a18==1)&&((a17==2)&&(((a1==14)&&(a2==1))&&(a21==12)))))&&((a4==1)&&((!(a2==1)&&((a20==1)&&(((a7==1)&&((((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10)))&&(input==6))&&(a19==1)))&&(a16==7))))&&(a14==1))))){ + a16 = 10; + a5 = 6; + a19 = 4; + a1 = 12; + a21 = 11; + a9 = 10; + a6 = 0; + a4 = 1; + a23 = 0; + return -1; + } else if((((((!(a8==1)&&((a13==1)&&(((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a5==4)&&(a9==9)))&&(input==5))))&&!(a7==1))&&(a17==2))&&(a21==11))&&(((a20==1)&&((a19==2)&&(((a4==1)||((a24==1)||((a1==12)&&(a6==1))))&&!(a14==1))))&&(a16==8)))){ + a1 = 14; + a16 = 10; + a3 = 1; + a9 = 7; + a26 = 0; + a5 = 6; + a19 = 3; + a6 = 1; + a21 = 10; + return 22; + } else if(((((a16==11)&&((a1==14)&&((a23==1)&&((a23==1)&&(((input==4)&&((a5==4)||(a5==5)))&&(a9==11))))))&&!(a0==1))&&((((a19==1)&&(!(a0==1)&&((((a17==2)&&(a12==1))&&(a20==1))&&(a21==11))))||!(a11==1))||!(a28==1)))){ + a16 = 7; + a21 = 10; + a26 = 0; + a7 = 0; + a14 = 0; + a1 = 12; + a5 = 4; + a9 = 7; + return -1; + } else if((((a17==2)&&((a21==10)&&((a23==1)&&((((a5==4)||(a5==5))&&(input==6))&&!(a8==1)))))&&((!(a2==1)||((((a9==7)&&(((a1==13)&&(((a2==1)||(a0==1))&&(a19==5)))&&(a20==1)))||!(a28==1))&&(a16==11)))||!(a23==1)))){ + a21 = 11; + a1 = 14; + a27 = 0; + a9 = 9; + a0 = 0; + a19 = 4; + a5 = 5; + a18 = 0; + return 25; + } else if((((a19==2)&&(((a16==9)&&((((a17==2)&&((a23==1)&&(((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5)))&&(input==3))))&&!(a24==1))&&!(a8==1)))&&(a11==1)))&&((a1==13)&&(!(a13==1)||((a13==1)&&((a21==11)&&((a20==1)&&(a2==1)))))))){ + a18 = 0; + a21 = 10; + a19 = 1; + a4 = 0; + a5 = 4; + a2 = 1; + a16 = 7; + a1 = 12; + a9 = 7; + return -1; + } else if(((((((a1==14)&&((a24==1)||(a13==1)))&&!(a7==1))||(a7==1))&&(a17==2))&&((((a16==9)&&(((!(a20==1)&&(((((a5==4)||(a5==5))&&(input==4))&&!(a26==1))&&(a19==5)))&&(a13==1))&&!(a4==1)))&&(a9==7))&&(a21==10)))){ + a1 = 12; + a16 = 7; + a5 = 4; + a28 = 0; + a20 = 1; + a6 = 0; + a19 = 2; + a29 = 1; + return 21; + } else if(((!(a0==1)&&(((a17==2)&&((a19==2)&&((a20==1)&&(((a16==9)&&(input==4))&&!(a27==1)))))&&(a9==11)))&&(!(a0==1)&&(((((a1==14)&&(((a2==1)&&!(a0==1))&&!(a8==1)))||!(a6==1))&&(a5==6))&&(a21==10))))){ + a19 = 1; + a8 = 0; + a5 = 4; + a9 = 7; + a16 = 7; + a1 = 12; + a3 = 1; + a12 = 1; + return -1; + } else if((((a21==12)&&(((a16==8)&&(!(a6==1)||((((a3==1)&&(a12==1))||!(a28==1))&&!(a0==1))))&&(a20==1)))&&((a19==2)&&(((a3==1)&&(((a13==1)&&(((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4)))&&(input==4)))&&(a1==13)))&&(a17==2))))){ + a16 = 7; + a19 = 1; + a21 = 10; + a23 = 1; + a9 = 7; + a11 = 1; + a5 = 4; + a1 = 12; + return -1; + } else if(((((a17==2)&&(((a11==1)&&((a16==8)&&((a20==1)&&((input==3)&&(a19==1)))))&&(a5==5)))&&(a1==14))&&((((a8==1)||((a21==10)&&(((a12==1)&&(!(a18==1)&&(a11==1)))&&(a9==8))))&&!(a4==1))||!(a3==1)))){ + a7 = 0; + a23 = 1; + a16 = 7; + a1 = 12; + a11 = 1; + a9 = 7; + a5 = 4; + return -1; + } else if((((a2==1)&&((a9==7)&&((((a20==1)&&((((input==3)&&(a17==2))&&!(a27==1))&&!(a14==1)))&&(a5==6))&&(a19==4))))&&(!(a13==1)||((a16==7)&&((a21==10)&&((a1==13)&&((!(a4==1)&&(a6==1))||!(a11==1)))))))){ + a2 = 1; + a26 = 0; + a1 = 12; + a5 = 4; + a18 = 0; + a19 = 1; + return -1; + } else if(((((a17==2)&&(!(a12==1)||(((!(a3==1)||((!(a20==1)&&((a9==9)&&(a23==1)))&&!(a8==1)))&&(a16==7))||(a4==1))))&&(a1==14))&&(!(a8==1)&&(((a21==11)&&((a19==3)&&((input==6)&&((a5==6)||((a5==4)||(a5==5))))))&&(a12==1))))){ + a21 = 10; + a0 = 0; + a8 = 0; + a19 = 2; + a20 = 1; + a4 = 0; + a5 = 4; + return 23; + } else if(((((a21==11)&&((a1==14)&&(((a23==1)&&((a11==1)&&((!(a20==1)&&(a3==1))&&(a19==5))))&&(a28==1))))&&!(a7==1))&&((!(a0==1)&&((a17==2)&&(((a9==11)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))&&(a16==10))))&&!(a26==1)))){ + if((a17==3)){ + a19 = 1; + a15 = 0; + a5 = 5; + a2 = 0; + a10 = 0; + a9 = 8; + a16 = 7; + a1 = 12; + a21 = 10; + a20 = 1; + }else{ + a10 = 0; + a25 = 1; + a5 = 5; + a1 = 12; + a2 = 0; + } + return -1; + } else if((((a16==8)&&(!(a20==1)&&((a2==1)&&(!(a7==1)&&((a21==11)&&((a11==1)&&(((a9==10)&&(input==6))&&(a19==5))))))))&&((a17==2)&&((((((a14==1)||(a2==1))||!(a3==1))||!(a6==1))&&(a5==6))&&(a1==14))))){ + a16 = 7; + a19 = 1; + a3 = 0; + a5 = 4; + a21 = 10; + a20 = 1; + a18 = 1; + a1 = 12; + return 23; + } else if(((!(a8==1)&&((a1==12)&&((!(a4==1)&&((a23==1)&&(((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==3))&&(a19==1))))&&(a6==1))))&&((a12==1)&&(((a21==12)&&((!(a8==1)&&(!(a20==1)&&(a3==1)))&&(a16==10)))&&(a17==2))))){ + if((a0==1)){ + a4 = 1; + a16 = 9; + a1 = 13; + a20 = 1; + a12 = 0; + a9 = 9; + a19 = 4; + a11 = 0; + a5 = 5; + }else{ + a20 = 1; + a10 = 0; + a21 = 10; + a5 = 6; + a22 = 1; + a9 = 7; + a16 = 7; + a23 = 0; + a1 = 14; + } + return 23; + } else if((((((((a3==1)&&((a2==1)&&(!(a20==1)&&((a8==1)||((a11==1)&&(a3==1))))))&&(a17==2))&&(a1==14))&&(a21==11))&&(a19==4))&&((((a12==1)&&(!(a26==1)&&((a16==9)&&(input==6))))&&(a9==10))&&(a5==5)))){ + a21 = 12; + a16 = 7; + a5 = 4; + a9 = 9; + a20 = 1; + a1 = 12; + a25 = 1; + a23 = 0; + a11 = 0; + a19 = 5; + return 25; + } else if((((a9==7)&&((a1==14)&&((a16==8)&&(!(a23==1)||((a21==12)&&((a19==1)&&(a6==1)))))))&&((a28==1)&&((a13==1)&&(((!(a27==1)&&(!(a24==1)&&(((a17==2)&&(input==4))&&!(a20==1))))&&!(a8==1))&&(a5==4)))))){ + a1 = 13; + a10 = 0; + a16 = 7; + a26 = 1; + a21 = 10; + a3 = 0; + a5 = 6; + a9 = 11; + a20 = 1; + return -1; + } else if(((((!(a2==1)||((a16==8)&&(!(a11==1)||((!(a6==1)||((a11==1)&&(a6==1)))&&(a17==2)))))&&(a9==10))&&(a19==5))&&(((a21==11)&&(((a20==1)&&(!(a26==1)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6)))))&&!(a14==1)))&&(a1==12)))){ + a16 = 7; + a5 = 4; + a13 = 1; + a4 = 0; + a21 = 10; + a9 = 7; + a19 = 1; + a8 = 0; + return -1; + } else if(((((a1==14)&&((a17==2)&&(((a9==11)&&(!(a20==1)&&(a6==1)))&&!(a0==1))))&&(a21==12))&&((a19==5)&&(!(a0==1)&&((a23==1)&&(!(a4==1)&&(((!(a24==1)&&((input==5)&&((a5==4)||(a5==5))))&&!(a26==1))&&(a16==9)))))))){ + a9 = 10; + a21 = 10; + a1 = 12; + a10 = 1; + a5 = 4; + a6 = 0; + a20 = 1; + a14 = 1; + a16 = 7; + a19 = 1; + return 23; + } else if((((a11==1)&&(!(a13==1)||(((((a17==2)&&(((a2==1)&&(a19==5))&&(a5==5)))&&(a1==13))||!(a2==1))&&!(a27==1))))&&((a13==1)&&(((a6==1)&&((((a16==11)&&(input==1))&&(a20==1))&&(a21==12)))&&(a9==11))))){ + a16 = 7; + a5 = 4; + a24 = 0; + a28 = 1; + a21 = 10; + a1 = 12; + a19 = 1; + a9 = 7; + return -1; + } else if(((((a2==1)&&(((((((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&!(a0==1))&&!(a20==1))&&(a16==9))&&(a28==1))&&(a21==12)))&&(a28==1))&&((((((a19==5)&&((a28==1)&&(a23==1)))&&(a9==9))&&(a1==13))&&(a17==2))||!(a23==1)))){ + a16 = 7; + a22 = 0; + a21 = 10; + a18 = 1; + a9 = 11; + a19 = 1; + a13 = 0; + a5 = 6; + a1 = 14; + a20 = 1; + return 23; + } else if((((!(a20==1)&&(((a21==11)&&((input==1)&&((a5==5)||(a5==6))))&&(a19==2)))&&!(a4==1))&&((a3==1)&&(!(a18==1)&&(((a17==2)&&((a0==1)||(((a16==7)&&(((a28==1)&&(a9==7))&&(a1==13)))&&!(a14==1))))||!(a2==1)))))){ + a8 = 0; + a6 = 1; + a26 = 0; + a5 = 4; + a1 = 12; + a20 = 1; + a21 = 10; + a19 = 1; + return -1; + } else if((((a24==1)||((((a19==1)&&((((a6==1)&&(a17==2))&&!(a20==1))&&(a1==12)))&&(a16==8))||!(a6==1)))&&(!(a26==1)&&(!(a8==1)&&((a13==1)&&((a3==1)&&(((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==6))&&(a21==10)))))))){ + a5 = 6; + a26 = 0; + a9 = 11; + a20 = 1; + a18 = 0; + a1 = 14; + a21 = 12; + a13 = 1; + a19 = 2; + a16 = 9; + return 21; + } else if((((a13==1)&&(((!(a8==1)&&(((input==4)&&((a5==5)||(a5==6)))&&(a19==4)))&&(a21==11))&&(a13==1)))&&((((a16==10)&&((a23==1)&&((a28==1)&&((a9==11)&&((!(a20==1)&&(a11==1))&&(a17==2))))))&&(a1==13))||(a8==1)))){ + a25 = 1; + a20 = 1; + a19 = 1; + a21 = 10; + a16 = 7; + a1 = 12; + a5 = 6; + a23 = 0; + a22 = 0; + a9 = 7; + return -1; + } else if((((a19==1)&&((((a3==1)&&!(a8==1))&&(a9==7))&&(a21==10)))&&((a20==1)&&((((a2==1)&&((((!(a7==1)&&(((input==3)&&((a5==4)||(a5==5)))&&(a17==2)))&&(a12==1))&&(a13==1))&&(a16==8)))&&(a28==1))&&(a1==12))))){ + a16 = 7; + a5 = 4; + a4 = 0; + a13 = 1; + a11 = 1; + return -1; + } else if((((a17==2)&&((((!(a7==1)&&(((input==3)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&(a28==1)))&&(a12==1))&&(a19==3))&&(a16==10)))&&((a21==11)&&(!(a20==1)&&((a1==13)&&(((a18==1)||((a11==1)&&(a11==1)))||!(a3==1))))))){ + a20 = 1; + a5 = 6; + a9 = 7; + a25 = 0; + a14 = 1; + a19 = 1; + a16 = 7; + a21 = 10; + return 25; + } else if((((a21==12)&&(((((((input==4)&&(((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))))&&(a4==1))&&(a16==10))&&!(a23==1))&&(a20==1))&&(a17==2)))&&(((!(a11==1)&&((((a12==1)&&!(a2==1))&&(a1==14))&&(a19==3)))&&!(a6==1))&&(a18==1)))){ + a3 = 0; + a19 = 1; + a27 = 1; + a9 = 10; + a5 = 5; + a1 = 12; + a21 = 10; + a12 = 0; + a16 = 7; + return -1; + } else if((((a17==2)&&(((a21==11)&&(((a9==9)&&((a1==13)&&((a11==1)&&(a16==10))))&&(a19==5)))&&(a2==1)))&&((a13==1)&&(((!(a7==1)&&((!(a20==1)&&(((a5==4)||(a5==5))&&(input==5)))&&(a23==1)))&&(a23==1))&&(a13==1))))){ + a9 = 8; + a20 = 1; + a16 = 9; + a5 = 5; + a0 = 1; + a19 = 4; + a21 = 12; + a2 = 0; + a3 = 0; + return -1; + } else if((((a4==1)||((a17==2)&&((a1==12)&&((!(a0==1)&&(a23==1))&&(a19==5)))))&&((a16==11)&&((((((a21==11)&&((a9==9)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&!(a8==1))))&&(a3==1))&&!(a8==1))&&!(a18==1))&&(a20==1))))){ + a8 = 0; + a5 = 4; + a13 = 1; + a16 = 7; + a21 = 10; + a9 = 7; + a19 = 1; + return -1; + } else if((((a17==2)&&(!(a7==1)&&(((a12==1)&&((a2==1)&&((a1==13)&&((a3==1)&&(((a21==11)&&(input==3))&&(a9==7))))))&&!(a24==1))))&&((a16==10)&&((!(a20==1)&&(((a6==1)&&(a19==3))&&(a5==5)))||(a26==1))))){ + if((a3==1)){ + a9 = 11; + a15 = 0; + a1 = 12; + a24 = 1; + a21 = 10; + a20 = 1; + a16 = 7; + a29 = 0; + a19 = 1; + }else{ + a19 = 1; + a16 = 7; + a15 = 0; + a11 = 0; + a21 = 10; + a9 = 9; + a3 = 0; + a20 = 1; + } + return -1; + } else if(((!(a20==1)&&(((a19==4)&&((a16==8)&&((a7==1)||((a21==11)&&(a12==1)))))&&!(a26==1)))&&(((a13==1)&&((((((a9==11)&&((a17==2)&&(input==1)))&&!(a27==1))&&(a5==5))&&(a1==13))&&!(a0==1)))&&!(a14==1)))){ + a1 = 14; + a19 = 3; + a0 = 0; + a4 = 0; + a5 = 6; + a28 = 1; + a9 = 8; + a16 = 11; + a20 = 1; + return 21; + } else if((((a17==2)&&((a9==11)&&((a21==12)&&(((a18==1)||((a1==13)&&(((a28==1)&&(a5==4))||(a8==1))))&&!(a4==1)))))&&((a2==1)&&((a19==5)&&(((a16==10)&&((a3==1)&&(!(a20==1)&&(input==3))))&&!(a24==1)))))){ + a19 = 2; + a20 = 1; + a16 = 7; + a13 = 0; + a9 = 7; + a21 = 10; + a2 = 0; + a15 = 0; + a5 = 6; + a1 = 12; + return 25; + } else if((((a16==7)&&(!(a2==1)&&((a5==4)&&((((a23==1)&&(a20==1))&&!(a28==1))&&(a9==8)))))&&(((((a17==2)&&((a19==5)&&((a8==1)&&(((a21==12)&&(input==3))&&(a1==13)))))&&(a4==1))&&(a18==1))&&(a27==1)))){ + a1 = 12; + a5 = 6; + a16 = 11; + a21 = 11; + a4 = 1; + a9 = 10; + a10 = 0; + a11 = 0; + return -1; + } else if((((a16==11)&&((((((a4==1)&&(!(a2==1)&&((a21==10)&&((input==5)&&(((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6))))))))&&!(a12==1))&&(a1==12))&&(a19==2))&&(a17==2)))&&((a20==1)&&(!(a11==1)&&(((a28==1)&&!(a12==1))&&(a7==1)))))){ + a9 = 10; + a27 = 1; + a28 = 0; + a5 = 4; + a16 = 7; + return 25; + } else if(((((a21==11)&&((a26==1)||(a2==1)))&&!(a20==1))&&((a16==8)&&((((a28==1)&&(!(a4==1)&&((a9==9)&&((((a19==3)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a1==12)))&&!(a4==1))&&(a12==1)))))&&!(a26==1))&&(a17==2))))){ + a19 = 4; + a20 = 1; + a1 = 14; + a26 = 0; + a27 = 0; + a5 = 6; + a9 = 8; + a16 = 7; + return 26; + } else if((((a9==7)&&((a18==1)||(!(a12==1)||((!(a20==1)&&(((a6==1)&&(a19==4))&&(a1==13)))||(a7==1)))))&&((a17==2)&&((((a16==9)&&(!(a7==1)&&(((input==3)&&(a21==12))&&!(a4==1))))&&(a5==5))&&!(a26==1))))){ + if((a23==1)){ + a14 = 1; + a9 = 10; + a21 = 10; + a1 = 12; + a20 = 1; + a5 = 6; + a16 = 7; + a19 = 1; + a22 = 1; + }else{ + a14 = 1; + a16 = 7; + a23 = 0; + a1 = 14; + a9 = 11; + a19 = 3; + a5 = 4; + } + return -1; + } else if((((a23==1)&&(!(a14==1)&&((a1==13)&&(((a9==9)&&(((((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&(a11==1))&&(a13==1))&&(a19==4)))&&!(a0==1)))))&&((a17==2)&&(((a7==1)||((a21==12)&&(!(a20==1)&&(a6==1))))&&(a16==10))))){ + if((a28==1)){ + a9 = 7; + a11 = 0; + a20 = 1; + a21 = 10; + a16 = 7; + a5 = 4; + a19 = 1; + a10 = 1; + a2 = 0; + }else{ + a9 = 8; + a29 = 1; + a19 = 2; + a20 = 1; + a22 = 0; + a1 = 12; + a0 = 1; + a5 = 4; + } + return -1; + } else if((((((a19==3)&&((a20==1)&&((a6==1)&&(a6==1))))||!(a13==1))&&(a1==12))&&((!(a4==1)&&((((a16==8)&&((a17==2)&&(((a23==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1)))&&(a9==11))))&&!(a14==1))&&(a13==1)))&&(a21==12)))){ + a6 = 1; + a16 = 10; + a5 = 6; + a19 = 2; + a1 = 13; + a9 = 9; + a12 = 1; + return 22; + } else if((((a9==10)&&((((!(a0==1)&&((a21==12)&&(((input==4)&&(a19==1))&&(a17==2))))&&!(a24==1))&&(a5==4))&&(a6==1)))&&((a1==13)&&((a16==8)&&((((!(a0==1)&&(a28==1))&&!(a20==1))||(a14==1))||(a26==1)))))){ + a23 = 0; + a3 = 0; + a29 = 0; + a5 = 6; + a19 = 2; + a20 = 1; + return 21; + } else if((((a1==14)&&(((((a21==10)&&((input==6)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))&&(a11==1))&&(a17==2))&&!(a18==1)))&&(((a12==1)&&(!(a13==1)||((((a19==3)&&((a13==1)||(a4==1)))&&(a16==9))&&!(a20==1))))||!(a13==1)))){ + if((a11==1)){ + a1 = 13; + a5 = 4; + a20 = 1; + a3 = 0; + a2 = 0; + a0 = 1; + a9 = 9; + a19 = 1; + }else{ + a20 = 1; + a28 = 0; + a5 = 6; + a15 = 0; + a1 = 12; + a9 = 8; + a16 = 7; + a29 = 1; + } + return -1; + } else if(((((a4==1)||((a3==1)&&((a11==1)&&(((a1==13)&&((((a13==1)&&(a23==1))&&(a17==2))&&(a9==9)))&&(a20==1)))))||!(a28==1))&&((((a16==11)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a19==5)))&&(a21==12))&&!(a14==1)))){ + a8 = 0; + a19 = 1; + a4 = 0; + a9 = 7; + a21 = 10; + a1 = 12; + a16 = 7; + a0 = 0; + a5 = 4; + return -1; + } else if((((!(a0==1)&&(!(a0==1)&&(((((a17==2)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))&&(a16==7))&&(a9==9))&&(a19==2))))&&!(a27==1))&&(((a11==1)&&((((a21==12)&&((a23==1)&&!(a20==1)))&&(a12==1))&&(a1==14)))&&(a11==1)))){ + a21 = 11; + a28 = 1; + a6 = 1; + a9 = 8; + a12 = 1; + a20 = 1; + a5 = 5; + a19 = 1; + return 22; + } else if(((((((!(a7==1)&&((a16==8)&&((a12==1)&&((((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(input==1)))))&&(a19==2))&&(a21==10))&&!(a26==1))&&(a6==1))&&(!(a2==1)||((!(a12==1)||(((a1==12)&&(a6==1))&&(a20==1)))&&(a17==2))))){ + a9 = 7; + a14 = 0; + a16 = 7; + a19 = 1; + a7 = 0; + a2 = 1; + a5 = 4; + return -1; + } else if((((a19==2)&&((a20==1)&&(!(a18==1)&&(((a13==1)&&!(a27==1))&&!(a7==1)))))&&((a1==14)&&((a9==11)&&(((a12==1)&&((!(a18==1)&&((((input==6)&&(a5==6))&&!(a26==1))&&(a16==9)))&&(a17==2)))&&(a21==10)))))){ + a9 = 7; + a5 = 4; + a16 = 7; + a19 = 1; + a3 = 1; + a7 = 0; + a1 = 12; + a12 = 1; + return -1; + } else if(((((a21==11)&&((a1==14)&&((!(a24==1)&&((a18==1)||(a2==1)))||!(a23==1))))&&(a19==5))&&(((((a11==1)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&(a9==9))&&(a16==7))&&(a17==2)))&&(a13==1))&&!(a20==1))&&(a28==1)))){ + a2 = 1; + a20 = 1; + a1 = 12; + a8 = 0; + a26 = 0; + a21 = 10; + a5 = 4; + a19 = 1; + a9 = 7; + return -1; + } else if(((((a9==8)&&((((a19==1)&&(((a5==4)||(a5==5))&&(input==1)))&&(a21==10))&&!(a26==1)))&&(a20==1))&&((a1==14)&&((a17==2)&&(((a8==1)||(((a27==1)||(((a3==1)&&(a16==9))||(a18==1)))&&!(a7==1)))&&!(a27==1)))))){ + a1 = 13; + a24 = 0; + a3 = 1; + a5 = 6; + a0 = 0; + a9 = 11; + return 26; + } else if((((a16==11)&&((a20==1)&&((a27==1)||(((a9==8)&&((a0==1)||((a0==1)||((a21==10)&&(a23==1)))))&&(a28==1)))))&&(((((a17==2)&&(((input==3)&&((a5==4)||(a5==5)))&&(a13==1)))&&(a19==1))&&(a6==1))&&(a1==13)))){ + if((a22==1)){ + a5 = 4; + a1 = 14; + a19 = 4; + a9 = 10; + a16 = 8; + a20 = 0; + a2 = 1; + a27 = 0; + a12 = 1; + }else{ + a5 = 6; + a19 = 2; + a2 = 1; + a6 = 1; + a1 = 14; + a21 = 11; + a9 = 10; + a16 = 9; + a0 = 0; + } + return 21; + } else if((((a6==1)&&(!(a14==1)&&(((((((((a5==5)||(a5==6))&&(input==6))&&(a12==1))&&(a12==1))&&(a16==7))&&(a19==5))&&!(a14==1))&&(a20==1))))&&(!(a4==1)&&((((a1==12)&&((a9==8)&&(a2==1)))&&(a17==2))&&(a21==11))))){ + a6 = 1; + a13 = 1; + a9 = 11; + a1 = 14; + a16 = 8; + a5 = 6; + return 26; + } else if(((!(a8==1)&&(((a17==2)&&((a7==1)||(a6==1)))||!(a2==1)))&&(!(a0==1)&&((a28==1)&&(((a19==2)&&((a21==12)&&((((a20==1)&&((input==3)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))&&(a16==7))&&(a1==14))))&&!(a0==1)))))){ + a9 = 7; + a27 = 0; + a5 = 4; + a19 = 1; + a1 = 12; + a6 = 1; + a26 = 0; + a21 = 10; + return -1; + } else if((((a19==1)&&((a17==2)&&(((a9==11)&&(((a1==12)&&(((a28==1)&&((((a5==5)||(a5==6))&&(input==6))&&(a20==1)))&&(a11==1)))&&(a11==1)))&&(a21==11))))&&((a16==8)&&((a12==1)&&((a0==1)||((a12==1)&&!(a18==1))))))){ + a4 = 0; + a21 = 10; + a24 = 0; + a5 = 4; + a9 = 7; + a23 = 1; + a16 = 7; + return -1; + } else if((((!(a27==1)&&(((a2==1)&&(((a1==14)&&(((a16==10)&&((input==4)&&(a19==4)))&&(a21==11)))&&(a9==10)))&&(a17==2)))&&!(a18==1))&&((a20==1)&&((a3==1)&&((a5==5)&&(!(a27==1)&&((a3==1)&&(a11==1)))))))){ + a23 = 1; + a5 = 4; + a7 = 0; + a19 = 1; + a8 = 0; + a16 = 8; + return 25; + } else if((((((((a19==5)&&(((((a12==1)||(a24==1))&&!(a26==1))&&(a16==8))||!(a12==1)))||(a24==1))&&(a20==1))&&(a21==12))&&(a17==2))&&((((((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&!(a4==1))&&(a3==1))&&(a1==13))&&(a9==9)))){ + a5 = 5; + a16 = 10; + a1 = 12; + a6 = 1; + a11 = 1; + return 23; + } else if((((a1==14)&&((a9==9)&&(((a3==1)&&((((((a16==11)&&(a12==1))&&!(a20==1))||!(a3==1))||(a7==1))&&(a21==10)))&&(a13==1))))&&((!(a27==1)&&((((input==4)&&(a19==1))&&(a5==4))&&(a28==1)))&&(a17==2)))){ + a25 = 0; + a0 = 1; + a18 = 1; + a16 = 7; + a1 = 13; + a20 = 1; + return 22; + } else if((((a17==2)&&((a11==1)&&(!(a24==1)&&(((((a21==11)&&(input==5))&&(a16==7))&&(a23==1))&&(a1==13)))))&&(((!(a20==1)&&(!(a4==1)&&((((a6==1)&&(a6==1))&&(a28==1))&&(a9==11))))&&(a19==1))&&(a5==4)))){ + a16 = 8; + a20 = 1; + a7 = 0; + a19 = 3; + a2 = 1; + a1 = 14; + a8 = 0; + a21 = 10; + return 26; + } else if(((((a21==10)&&(((a16==7)&&(!(a4==1)&&((!(a24==1)&&(!(a4==1)&&((a1==13)&&((input==3)&&((a5==5)||(a5==6))))))&&!(a20==1))))&&(a19==3)))&&!(a8==1))&&((a17==2)&&((a24==1)||(((a12==1)&&(a9==8))||!(a12==1)))))){ + a13 = 1; + a20 = 1; + a1 = 12; + a5 = 4; + a24 = 0; + a19 = 1; + a9 = 7; + a26 = 0; + return -1; + } else if((((a0==1)||((!(a3==1)||((((a16==7)&&(a2==1))&&(a1==12))&&(a19==1)))&&(a20==1)))&&(((((a28==1)&&(((a9==8)&&((a21==12)&&((input==5)&&(a17==2))))&&(a5==6)))&&(a2==1))&&(a23==1))&&(a23==1)))){ + a19 = 4; + a11 = 1; + a16 = 8; + a28 = 1; + a9 = 10; + a5 = 5; + return 21; + } else if((((a9==9)&&((((((a26==1)||((!(a3==1)||(a12==1))&&!(a26==1)))&&(a17==2))&&(a21==12))&&(a19==2))&&(a20==1)))&&(((!(a4==1)&&((!(a4==1)&&(((a5==5)||(a5==6))&&(input==5)))&&(a1==13)))&&!(a7==1))&&(a16==11)))){ + a5 = 5; + a21 = 10; + a1 = 12; + a19 = 1; + a27 = 0; + a2 = 1; + a16 = 10; + a12 = 1; + a9 = 8; + return 21; + } else if((((a1==13)&&(((a21==12)&&(!(a7==1)&&((((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==6))))&&!(a7==1)))&&((a17==2)&&((a16==11)&&(!(a14==1)&&((a20==1)&&(!(a13==1)||((((a19==2)&&(a13==1))||!(a2==1))&&(a3==1))))))))){ + a19 = 3; + a6 = 1; + a9 = 8; + a20 = 0; + a26 = 0; + a5 = 6; + a16 = 7; + a1 = 14; + return 26; + } else if(((((((((a16==8)&&(((a20==1)&&((a17==2)&&(input==5)))&&(a5==4)))&&(a2==1))&&(a1==14))&&(a19==5))&&(a21==11))&&!(a14==1))&&(!(a11==1)||(((a9==7)&&(((a11==1)||(a0==1))||(a7==1)))||!(a23==1))))){ + a2 = 1; + a24 = 0; + a12 = 1; + return -1; + } else if(((((!(a3==1)||((a13==1)&&(a17==2)))&&(a12==1))||(a24==1))&&((a13==1)&&(((((a21==12)&&(((a9==11)&&(((a16==7)&&((a19==4)&&(input==6)))&&(a1==14)))&&(a5==4)))&&!(a20==1))&&(a11==1))&&(a28==1))))){ + a1 = 12; + a19 = 1; + a20 = 1; + a21 = 10; + a9 = 7; + a0 = 0; + a27 = 0; + a4 = 0; + return -1; + } else if(((!(a20==1)&&((a11==1)&&(((((((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(input==1))&&(a11==1))&&!(a4==1))&&(a19==4))))&&(((a21==12)&&((a1==12)&&((!(a12==1)||((a0==1)||((a23==1)&&(a17==2))))||(a14==1))))&&(a16==9)))){ + if((a12==1)){ + a16 = 11; + a5 = 5; + a9 = 11; + a22 = 1; + a1 = 14; + a24 = 1; + a21 = 10; + a20 = 1; + a29 = 1; + }else{ + a9 = 11; + a4 = 1; + a5 = 6; + a20 = 1; + a18 = 1; + a22 = 1; + } + return 22; + } else if((((a23==1)&&((!(a2==1)||(((a19==5)&&((a23==1)&&(a16==7)))&&(a21==12)))&&(a20==1)))&&((!(a8==1)&&(!(a8==1)&&(((a17==2)&&((input==5)&&((((a5==6)&&(a1==13))&&(a9==11))||((a9==7)&&((a1==14)&&(a5==4))))))&&!(a7==1))))&&(a11==1)))){ + a5 = 4; + a13 = 1; + a21 = 10; + a19 = 1; + a1 = 12; + a4 = 0; + a3 = 1; + a9 = 7; + return -1; + } else if((((a7==1)||(!(a28==1)||(((a18==1)||(!(a2==1)||(a28==1)))&&!(a4==1))))&&(((!(a20==1)&&(((a17==2)&&((a19==5)&&(((a5==6)&&((a16==8)&&(input==3)))&&(a1==12))))&&!(a14==1)))&&(a9==7))&&(a21==10)))){ + a4 = 0; + a16 = 7; + a5 = 5; + a9 = 9; + a3 = 1; + a19 = 2; + a28 = 1; + a20 = 1; + a1 = 13; + return -1; + } else if((((((((a20==1)&&(!(a4==1)&&((((a5==5)||(a5==6))&&(input==6))&&!(a14==1))))&&!(a14==1))&&(a13==1))&&(a1==13))&&(a16==9))&&((a21==12)&&((a19==2)&&(((a17==2)&&(!(a18==1)&&((a13==1)&&(a11==1))))&&(a9==7)))))){ + a14 = 0; + a1 = 12; + a16 = 7; + a19 = 1; + a3 = 1; + a5 = 4; + a21 = 10; + a12 = 1; + return -1; + } else if(((!(a26==1)&&(!(a24==1)&&((a21==10)&&((a9==7)&&(!(a18==1)&&(((input==1)&&((a5==5)||(a5==6)))&&(a17==2)))))))&&(((a19==2)&&((a1==13)&&(((a20==1)&&((a16==8)&&(!(a14==1)&&(a2==1))))&&!(a14==1))))&&(a12==1)))){ + a6 = 1; + a19 = 1; + a12 = 1; + a24 = 0; + a16 = 7; + a1 = 12; + a5 = 4; + return -1; + } else if((((a17==2)&&(((a28==1)&&((((a6==1)&&(((a2==1)&&(a23==1))&&(a9==7)))&&(a3==1))&&(a21==11)))&&(a19==1)))&&(((!(a0==1)&&((a20==1)&&(((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a28==1))))&&(a16==10))&&(a1==14)))){ + a23 = 1; + a24 = 0; + a1 = 12; + a3 = 1; + a16 = 7; + a5 = 4; + a21 = 10; + return -1; + } else if((((!(a27==1)&&((a2==1)&&((a21==12)&&(input==5))))&&!(a24==1))&&(((a16==10)&&(((a5==5)&&((a26==1)||((a6==1)&&((((a17==2)&&(!(a20==1)&&(a11==1)))&&(a1==12))&&(a19==4)))))&&(a6==1)))&&(a9==7)))){ + if((a28==1)){ + a8 = 1; + a10 = 1; + a3 = 0; + a5 = 6; + a16 = 7; + a1 = 13; + a21 = 10; + a19 = 1; + a20 = 1; + }else{ + a1 = 14; + a22 = 0; + a23 = 0; + a20 = 1; + a0 = 1; + } + return 25; + } else if((((((a1==14)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))&&(input==4)))&&(a19==4))&&(a16==7))&&((a18==1)||((((a2==1)&&(((a17==2)&&(!(a0==1)&&((a21==12)&&(!(a18==1)&&(a13==1)))))&&(a20==1)))||(a14==1))&&(a2==1))))){ + a19 = 1; + a1 = 12; + a21 = 10; + a5 = 4; + a9 = 7; + a12 = 1; + a11 = 1; + a6 = 1; + return -1; + } else if(((((a20==1)&&((a21==12)&&((a13==1)&&(a16==8))))&&(a17==2))&&((a11==1)&&((a11==1)&&((a19==5)&&(!(a0==1)&&(((((a11==1)&&((((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))&&(input==4)))&&!(a8==1))&&(a11==1))&&(a1==12)))))))){ + a5 = 4; + a21 = 10; + a16 = 7; + a4 = 0; + a9 = 7; + a6 = 1; + a19 = 1; + a0 = 0; + return -1; + } else if(((!(a8==1)&&(!(a26==1)&&(!(a18==1)&&((a20==1)&&((input==3)&&((a5==5)||(a5==6)))))))&&((a9==7)&&(((a17==2)&&((a19==3)&&(((a1==14)&&((a16==10)&&((a21==12)&&(!(a11==1)||(a28==1)))))||(a14==1))))&&(a12==1))))){ + a5 = 4; + a21 = 10; + a19 = 1; + a1 = 12; + a6 = 1; + a16 = 7; + a28 = 1; + return -1; + } else if((((a16==11)&&((((a19==4)&&((a17==2)&&(!(a26==1)&&(a6==1))))&&(a20==1))&&(a21==11)))&&((((a1==12)&&((a6==1)&&(!(a4==1)&&((a3==1)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==3))))))&&!(a18==1))&&(a23==1)))){ + a5 = 4; + a9 = 7; + a28 = 1; + a21 = 10; + a19 = 1; + a24 = 0; + a6 = 1; + a16 = 7; + return -1; + } else if(((((a17==2)&&((a19==4)&&((!(a4==1)&&(((input==6)&&((a5==5)||(a5==6)))&&(a16==7)))&&!(a14==1))))&&(a1==12))&&(!(a20==1)&&((a21==11)&&(((!(a13==1)||(!(a6==1)||((a14==1)||(a3==1))))&&(a9==8))||!(a13==1)))))){ + a9 = 7; + a5 = 4; + a16 = 8; + a4 = 0; + a1 = 13; + a20 = 1; + a27 = 0; + a21 = 10; + return 25; + } else if((((a13==1)&&((a6==1)&&((a1==14)&&(((((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))&&(input==3))&&!(a27==1))&&(a19==4))&&!(a14==1)))))&&(((((a20==1)&&(((a2==1)&&!(a18==1))&&(a17==2)))&&(a21==11))&&(a16==10))||!(a2==1)))){ + a5 = 5; + a19 = 2; + a28 = 1; + a16 = 7; + a9 = 9; + a12 = 1; + a21 = 10; + a11 = 1; + a1 = 13; + return 26; + } else if((((a28==1)&&(((((((a12==1)&&(a21==12))&&(a19==3))||!(a11==1))&&(a16==9))||!(a23==1))&&(a6==1)))&&((a17==2)&&(((a28==1)&&((a12==1)&&((input==4)&&((((a5==4)&&(a1==14))&&(a9==7))||((((a1==13)&&(a5==5))&&(a9==11))||(((a1==13)&&(a5==6))&&(a9==11)))))))&&!(a20==1))))){ + a9 = 8; + a27 = 1; + a1 = 12; + a16 = 7; + a5 = 6; + a20 = 1; + a8 = 1; + a19 = 1; + a21 = 10; + a13 = 0; + return -1; + } else if((((((a9==9)&&(((a12==1)&&((a16==8)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3))))&&(a19==4)))&&(a6==1))&&!(a7==1))&&((a4==1)||(!(a20==1)&&((a21==10)&&((a17==2)&&((!(a3==1)||((a3==1)&&!(a4==1)))&&(a1==13)))))))){ + a16 = 7; + a23 = 1; + a5 = 4; + a18 = 0; + a20 = 1; + a28 = 1; + a9 = 7; + a19 = 1; + a1 = 12; + return -1; + } else if((((((a20==1)&&((a21==10)&&(!(a4==1)&&((a23==1)&&((((input==5)&&(((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))))&&(a28==1))&&!(a18==1))))))&&(a19==4))&&(a1==12))&&(((a17==2)&&(((a13==1)&&(a11==1))&&(a6==1)))&&(a16==11)))){ + a9 = 7; + a5 = 4; + a27 = 0; + a16 = 7; + a19 = 1; + a12 = 1; + return -1; + } else if(((((a17==2)&&((a21==12)&&(((((a12==1)&&((((a5==4)||(a5==5))&&(input==4))&&!(a0==1)))&&(a1==13))&&!(a26==1))&&!(a8==1))))&&(a16==7))&&((a19==1)&&(((a28==1)&&(((a12==1)&&!(a20==1))&&(a11==1)))&&(a9==8))))){ + a2 = 1; + a21 = 10; + a5 = 4; + a20 = 1; + a1 = 12; + a8 = 0; + a9 = 7; + a23 = 1; + return -1; + } else if((((a17==2)&&(((a5==5)&&(!(a24==1)&&((((a19==3)&&(input==4))&&(a16==9))&&(a12==1))))&&(a28==1)))&&((a1==14)&&(((((a12==1)&&(((a13==1)&&!(a7==1))&&(a21==12)))&&(a9==7))&&!(a7==1))&&!(a20==1))))){ + if((a4==1)){ + a9 = 10; + a20 = 1; + a1 = 12; + a3 = 0; + a19 = 1; + a21 = 10; + a4 = 1; + a16 = 7; + }else{ + a21 = 10; + a1 = 13; + a25 = 0; + a9 = 11; + a29 = 1; + a19 = 4; + } + return -1; + } else if((((a20==1)&&((a21==10)&&(!(a18==1)&&((a16==11)&&((!(a14==1)&&(((a9==9)&&((a11==1)&&((input==1)&&(a17==2))))&&!(a27==1)))&&(a19==3))))))&&((a5==6)&&((a1==13)&&((!(a12==1)||(a11==1))&&(a13==1)))))){ + a19 = 1; + a16 = 7; + a1 = 12; + a9 = 7; + a23 = 1; + a5 = 4; + a13 = 1; + return -1; + } else if((((((((a3==1)&&(!(a4==1)&&(((a16==10)&&(((a19==3)&&(((a5==5)||(a5==6))&&(input==5)))&&!(a27==1)))&&(a17==2))))&&(a9==11))&&!(a4==1))&&(a21==12))&&!(a20==1))&&((((a3==1)&&(a23==1))&&!(a27==1))&&(a1==12)))){ + if((a26==1)){ + a9 = 7; + a27 = 1; + a1 = 13; + a16 = 9; + a19 = 2; + a5 = 6; + }else{ + a25 = 0; + a18 = 1; + a19 = 1; + a1 = 13; + a16 = 7; + a5 = 4; + a20 = 1; + a21 = 10; + a9 = 8; + a3 = 0; + } + return -1; + } else if(((!(a7==1)&&((((!(a0==1)&&((a11==1)&&(a21==12)))&&(a16==10))&&(a20==1))&&(a13==1)))&&(!(a4==1)&&(((((((input==1)&&(((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))))&&(a23==1))&&(a1==14))&&(a17==2))&&(a28==1))&&(a19==5))))){ + a6 = 1; + a18 = 0; + a19 = 2; + a5 = 5; + a1 = 13; + a16 = 7; + a12 = 1; + a9 = 9; + a21 = 10; + return 25; + } else if((((a1==13)&&(!(a14==1)&&((!(a18==1)&&(((a9==11)&&((input==5)&&(a20==1)))&&(a28==1)))&&(a12==1))))&&(((a11==1)&&((a11==1)&&((a21==10)&&((a17==2)&&(((a19==1)&&(a11==1))&&(a16==9))))))&&(a5==6)))){ + a13 = 1; + a5 = 4; + a9 = 7; + a8 = 0; + a16 = 7; + a26 = 0; + a1 = 12; + return -1; + } else if((((a20==1)&&(((a9==9)&&((a17==2)&&((a23==1)&&(!(a12==1)||(((a19==2)&&(!(a24==1)&&((a24==1)||(a28==1))))||(a26==1))))))&&(a16==8)))&&(!(a0==1)&&((((a21==12)&&(input==5))&&(a1==12))&&(a5==6))))){ + a16 = 7; + a13 = 1; + a23 = 1; + a26 = 0; + a1 = 14; + a21 = 10; + return 21; + } else if(((!(a8==1)&&((!(a18==1)&&(!(a4==1)&&((a17==2)&&((((((input==1)&&(((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))))&&(a21==11))&&(a20==1))&&(a16==10))&&(a19==5)))))&&!(a0==1)))&&((((a1==13)&&(a13==1))&&(a23==1))&&!(a0==1)))){ + a19 = 4; + a26 = 0; + a8 = 0; + a6 = 1; + a9 = 10; + a16 = 7; + a5 = 5; + a21 = 10; + return 25; + } else if(((((a20==1)&&((a9==7)&&((!(a2==1)||(((a2==1)&&(((a7==1)||(a11==1))||(a24==1)))&&(a16==8)))&&(a23==1))))&&(a21==12))&&((a1==13)&&((a19==1)&&(((a6==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))&&(a17==2)))))){ + a8 = 0; + a16 = 7; + a5 = 4; + a21 = 10; + a13 = 1; + a6 = 1; + a1 = 12; + return -1; + } else if(((((a7==1)&&(((!(a6==1)&&((((a16==9)&&(a12==1))&&(a18==1))&&(a1==12)))&&(a21==11))&&(a18==1)))&&(a27==1))&&((a9==7)&&((a20==1)&&((a17==2)&&(!(a6==1)&&((((a5==5)||(a5==6))&&(input==1))&&(a19==4)))))))){ + a20 = 0; + a23 = 0; + a8 = 1; + a19 = 3; + a16 = 8; + a5 = 4; + a7 = 1; + a1 = 14; + return -1; + } else if(((!(a6==1)||(((a1==14)&&(!(a2==1)||((a0==1)||((!(a4==1)&&((a17==2)&&(((a16==8)&&(a28==1))&&(a21==10))))&&(a20==1)))))&&(a19==2)))&&(!(a4==1)&&(((input==1)&&(((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))))&&(a3==1))))){ + a16 = 9; + a11 = 1; + a1 = 12; + a24 = 0; + a5 = 4; + a13 = 1; + a21 = 12; + a19 = 4; + a9 = 11; + return 25; + } else if(((((a9==9)&&((a16==8)&&((a21==12)&&(((a1==14)&&(a28==1))&&(a12==1)))))&&!(a0==1))&&((a28==1)&&((a12==1)&&((!(a18==1)&&((((a19==1)&&(((a5==5)||(a5==6))&&(input==3)))&&!(a20==1))&&(a17==2)))&&(a12==1)))))){ + a5 = 6; + a21 = 10; + a20 = 1; + a27 = 1; + a29 = 1; + a16 = 7; + a4 = 1; + return 21; + } else if((((a16==9)&&((a1==14)&&((a5==6)&&((a24==1)||(!(a20==1)&&((a7==1)||((!(a11==1)||(a11==1))&&!(a27==1))))))))&&(((a17==2)&&((a12==1)&&(((a9==9)&&((a21==12)&&(input==5)))&&(a28==1))))&&(a19==5)))){ + if((a3==1)){ + a18 = 1; + a10 = 1; + a21 = 10; + a5 = 5; + a16 = 10; + a9 = 10; + a24 = 1; + }else{ + a4 = 1; + a21 = 10; + a28 = 0; + a19 = 4; + a20 = 1; + a5 = 4; + a9 = 7; + a16 = 8; + } + return -1; + } else if((((a1==12)&&((a19==4)&&((((a9==11)&&(((a26==1)||(a11==1))&&(a16==9)))&&(a21==12))&&(a6==1))))&&((a5==5)&&(((((!(a24==1)&&((input==4)&&(a17==2)))&&!(a26==1))&&(a20==1))&&!(a7==1))&&!(a4==1))))){ + if((a4==1)){ + a6 = 1; + a8 = 0; + a16 = 7; + a1 = 14; + a19 = 1; + a28 = 1; + a20 = 0; + }else{ + a28 = 1; + a16 = 8; + a24 = 0; + a19 = 5; + a5 = 4; + a1 = 14; + a13 = 1; + } + return 25; + } else if(((((((a13==1)&&(a13==1))||!(a6==1))||!(a28==1))&&(a1==13))&&((a9==10)&&((a19==5)&&((!(a26==1)&&((a16==10)&&((((!(a27==1)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6))))&&(a20==1))&&(a21==10))&&(a6==1))))&&(a17==2)))))){ + a16 = 7; + a24 = 0; + a5 = 4; + a9 = 7; + a12 = 1; + a18 = 0; + a1 = 12; + a19 = 1; + return -1; + } else if((((!(a3==1)||((a9==7)&&((a20==1)&&((((!(a13==1)||(a6==1))&&(a11==1))&&!(a14==1))&&(a17==2)))))&&(a21==10))&&((((a12==1)&&(((a19==5)&&((a16==7)&&(input==1)))&&(a11==1)))&&(a1==12))&&(a5==5)))){ + a8 = 0; + a26 = 0; + a5 = 4; + a24 = 0; + a19 = 1; + return -1; + } else if(((((a17==2)&&((a1==13)&&((((a21==11)&&(((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))&&(input==6)))&&(a3==1))&&!(a20==1))))&&(a16==9))&&(((((((a11==1)&&(a13==1))||(a26==1))||!(a12==1))&&!(a14==1))&&!(a26==1))&&(a19==1)))){ + a21 = 10; + a5 = 4; + a10 = 0; + a6 = 0; + a16 = 7; + a9 = 8; + a26 = 1; + a20 = 1; + a1 = 14; + return -1; + } else if(((((a1==12)&&(((a16==8)&&(((a2==1)&&(a17==2))&&(a21==10)))||!(a3==1)))&&(a28==1))&&((a20==1)&&(!(a7==1)&&(((a19==5)&&(!(a7==1)&&(!(a0==1)&&((((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a5==6)&&(a9==10))))&&(input==4)))))&&!(a0==1)))))){ + a9 = 7; + a16 = 7; + a4 = 0; + a5 = 4; + a26 = 0; + a19 = 1; + a11 = 1; + return -1; + } else if((((a21==10)&&((a19==2)&&((((a5==5)||(a5==6))&&(input==6))&&(a12==1))))&&((a17==2)&&((a9==8)&&(!(a2==1)||((((a14==1)||(!(a27==1)&&((((a13==1)||(a18==1))&&(a1==14))&&(a28==1))))&&!(a20==1))&&(a16==10))))))){ + if((a2==1)){ + a10 = 1; + a1 = 13; + a5 = 4; + a25 = 0; + a16 = 7; + a19 = 1; + a20 = 1; + a9 = 9; + a18 = 1; + }else{ + a2 = 0; + a16 = 11; + a10 = 1; + a5 = 6; + a25 = 0; + a9 = 7; + a1 = 13; + } + return 21; + } else if(((!(a0==1)&&((((!(a26==1)&&((a19==1)&&(a11==1)))&&(a16==7))||(a18==1))&&(a6==1)))&&((a1==14)&&(((a21==10)&&(((a12==1)&&(!(a20==1)&&((input==6)&&((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4))))))&&(a17==2)))&&(a28==1))))){ + a16 = 8; + a19 = 4; + a5 = 4; + a9 = 10; + a24 = 0; + a26 = 0; + a6 = 1; + return 21; + } else if((((a9==9)&&((a21==10)&&((a16==10)&&((!(a23==1)||((a18==1)||(!(a27==1)&&((a3==1)||!(a13==1)))))&&(a17==2)))))&&(((a20==1)&&((!(a26==1)&&((a19==2)&&((input==6)&&((a5==4)||(a5==5)))))&&(a23==1)))&&(a1==12)))){ + a0 = 0; + a9 = 7; + a13 = 1; + a16 = 7; + a19 = 1; + a5 = 4; + return -1; + } else if((((((((a18==1)||((a3==1)&&(a3==1)))&&!(a7==1))&&(a17==2))&&(a9==7))&&(a1==14))&&(((((a3==1)&&((a21==10)&&((a19==4)&&(!(a27==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3))))))&&(a3==1))&&(a20==1))&&(a16==8)))){ + a1 = 12; + a5 = 4; + a11 = 1; + a8 = 0; + a16 = 7; + a19 = 1; + return -1; + } else if((((a12==1)&&(((((input==4)&&((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a5==4)&&(a9==9))))&&(a16==7))&&(a1==13))&&!(a7==1)))&&((((a14==1)||((((a2==1)&&((a21==11)&&((a13==1)&&(a17==2))))&&(a20==1))&&(a19==5)))&&!(a27==1))||!(a3==1)))){ + a9 = 7; + a1 = 12; + a5 = 4; + a14 = 0; + a21 = 10; + a8 = 0; + a11 = 1; + a19 = 1; + return -1; + } else if((((!(a7==1)&&(((a16==11)&&(((a12==1)&&(a17==2))&&!(a7==1)))&&!(a20==1)))||!(a13==1))&&(((!(a8==1)&&(!(a0==1)&&((a2==1)&&(((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==1))&&(a21==10)))))&&(a1==12))&&(a19==1)))){ + a11 = 0; + a19 = 3; + a16 = 10; + a20 = 1; + a1 = 13; + a12 = 0; + a29 = 0; + a21 = 12; + a9 = 9; + a5 = 4; + return -1; + } else if((((a6==1)&&(!(a27==1)&&((((((a9==11)&&((input==1)&&(a19==1)))&&(a5==4))&&(a17==2))&&(a1==12))&&(a3==1))))&&(!(a18==1)&&((a13==1)&&(((a0==1)||(((a6==1)&&(a20==1))&&(a16==10)))&&(a21==10)))))){ + a2 = 1; + a14 = 0; + a16 = 7; + a23 = 1; + a9 = 7; + return -1; + } else if((((a17==2)&&((a1==12)&&((a3==1)&&((a16==8)&&(!(a8==1)&&(a23==1))))))&&(((a11==1)&&(!(a26==1)&&(!(a0==1)&&((!(a14==1)&&((a19==4)&&((input==5)&&(((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))))))&&(a21==10)))))&&!(a20==1)))){ + a20 = 1; + a5 = 5; + a9 = 7; + a21 = 12; + a16 = 9; + a27 = 0; + a7 = 0; + a19 = 2; + a26 = 0; + return 21; + } else if(((!(a27==1)&&(((!(a12==1)||(((a2==1)||!(a23==1))&&(a9==9)))&&!(a20==1))&&!(a8==1)))&&(!(a7==1)&&((a17==2)&&(((a12==1)&&((a21==12)&&((((a1==12)&&(input==3))&&(a5==4))&&(a16==10))))&&(a19==2)))))){ + a20 = 1; + a16 = 11; + a15 = 0; + a2 = 0; + a8 = 1; + a5 = 5; + a19 = 5; + a21 = 11; + a9 = 10; + return 25; + } else if((((((((a18==1)||((((a3==1)||(a24==1))||(a24==1))||(a24==1)))&&(a17==2))&&(a11==1))&&(a16==8))&&(a1==14))&&(((a19==3)&&((((a9==10)&&((a21==10)&&(input==5)))&&(a5==6))&&!(a24==1)))&&!(a20==1)))){ + a9 = 7; + a5 = 5; + a6 = 1; + a20 = 1; + a13 = 1; + a21 = 11; + a16 = 7; + a26 = 0; + return 23; + } else if((((((((a28==1)&&(a5==5))&&!(a6==1))&&!(a28==1))&&(a21==11))&&(a19==2))&&((a16==11)&&(((a9==10)&&(((a8==1)&&(((a0==1)&&(((input==5)&&(a17==2))&&!(a28==1)))&&(a1==13)))&&(a4==1)))&&(a20==1))))){ + a9 = 11; + a24 = 1; + a23 = 0; + a29 = 1; + a16 = 10; + a5 = 4; + a21 = 12; + a1 = 14; + return -1; + } else if((((!(a8==1)&&(((a9==7)&&((a16==9)&&((((a5==4)||(a5==5))&&(input==6))&&(a17==2))))&&(a20==1)))&&!(a0==1))&&((a4==1)||(!(a12==1)||((((((a6==1)&&!(a4==1))&&(a1==14))||(a27==1))&&(a19==3))&&(a21==11)))))){ + a21 = 12; + a8 = 0; + a19 = 1; + a9 = 8; + a11 = 1; + a13 = 1; + a16 = 8; + a5 = 6; + return 21; + } else if((((a7==1)||(((((a11==1)&&(a16==7))&&(a11==1))&&(a5==6))&&!(a20==1)))&&((((a1==14)&&((a13==1)&&(!(a14==1)&&((a21==11)&&((a17==2)&&((a2==1)&&((input==3)&&(a9==11))))))))&&(a19==2))&&(a23==1)))){ + a11 = 1; + a28 = 1; + a5 = 5; + a20 = 1; + a7 = 0; + a19 = 5; + a16 = 9; + return 21; + } else if((((a20==1)&&((a17==2)&&(((a2==1)&&((a21==10)&&((a16==8)&&(a28==1))))||!(a13==1))))&&((!(a7==1)&&((((a6==1)&&((((((a5==5)&&(a1==12))&&(a9==11))||(((a1==12)&&(a5==6))&&(a9==11)))||((a9==7)&&((a5==4)&&(a1==13))))&&(input==1)))&&(a19==4))&&(a28==1)))&&!(a0==1)))){ + a27 = 0; + a5 = 4; + a19 = 1; + a1 = 12; + a16 = 7; + a9 = 7; + a26 = 0; + a11 = 1; + return -1; + } else if((((((a17==2)&&((a2==1)&&(a19==5)))&&(a1==12))&&!(a0==1))&&((!(a27==1)&&((a11==1)&&(((((((((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6))))&&(input==6))&&(a16==8))&&(a2==1))&&(a20==1))&&(a21==10))&&(a6==1))))&&(a2==1)))){ + a7 = 0; + a28 = 1; + a16 = 7; + a23 = 1; + a5 = 4; + a19 = 1; + a9 = 7; + return -1; + } else if(((((((a17==2)&&(((a1==13)&&(a3==1))&&(a19==4)))||(a14==1))||!(a28==1))&&!(a26==1))&&(!(a7==1)&&((((a21==11)&&((a12==1)&&((a20==1)&&((input==5)&&(((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))))))&&(a16==11))&&!(a4==1))))){ + a9 = 11; + a16 = 7; + a8 = 0; + a1 = 12; + a20 = 0; + a5 = 5; + a3 = 1; + a19 = 2; + a6 = 1; + a21 = 12; + return 22; + } else if((((!(a20==1)&&(((a16==10)&&((a13==1)&&((a13==1)&&((!(a8==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))&&(a23==1)))))&&(a1==13)))&&(a19==4))&&((a21==12)&&((a7==1)||(((a17==2)&&((a2==1)||(a14==1)))&&(a9==11)))))){ + if((a18==1)){ + a9 = 9; + a19 = 2; + a16 = 7; + a1 = 12; + a21 = 10; + a20 = 1; + a7 = 1; + a5 = 4; + a25 = 1; + }else{ + a9 = 9; + a20 = 1; + a6 = 0; + a5 = 5; + a29 = 1; + a19 = 1; + a16 = 8; + a10 = 0; + } + return -1; + } else if(((((((a16==7)&&((a19==1)&&(a23==1)))&&!(a4==1))||(a7==1))&&(a1==13))&&((((a28==1)&&((a12==1)&&(!(a20==1)&&(((((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a28==1))&&(a21==12))&&(a12==1)))))&&(a9==7))&&(a17==2)))){ + a21 = 10; + a18 = 0; + a0 = 0; + a1 = 12; + a3 = 1; + a5 = 4; + a20 = 1; + return -1; + } else if((((((a19==1)&&(((a1==12)&&(((a20==1)&&((input==1)&&(a16==11)))&&(a9==8)))&&(a21==10)))&&(a11==1))&&!(a26==1))&&((!(a8==1)&&((a11==1)&&(((a24==1)||((a17==2)&&(a13==1)))&&(a5==6))))||(a8==1)))){ + a16 = 7; + a4 = 0; + a9 = 7; + a6 = 1; + a5 = 4; + return -1; + } else if(((((!(a12==1)||(((a17==2)&&((!(a0==1)&&((a13==1)&&((a16==10)&&(a28==1))))&&(a21==11)))&&(a1==14)))&&(a19==5))&&(a2==1))&&((a2==1)&&((a20==1)&&(((input==6)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(a23==1)))))){ + a19 = 2; + a21 = 10; + a2 = 1; + a16 = 7; + a27 = 0; + a1 = 13; + a5 = 5; + a9 = 9; + return 25; + } else if((((((!(a14==1)&&((a21==10)&&((a28==1)&&!(a20==1))))&&(a17==2))&&(a9==10))&&(a16==10))&&(!(a24==1)&&((((a19==2)&&(!(a24==1)&&(!(a14==1)&&(!(a18==1)&&(((a5==5)||(a5==6))&&(input==6))))))&&(a1==13))&&(a11==1))))){ + if((a24==1)){ + a8 = 1; + a5 = 4; + a4 = 1; + a16 = 9; + a20 = 1; + }else{ + a9 = 7; + a5 = 4; + a7 = 1; + a13 = 0; + a16 = 7; + a20 = 1; + a14 = 1; + a19 = 1; + } + return 22; + } else if((((a17==2)&&((((a16==7)&&(((a9==9)&&((a6==1)&&((a1==12)&&(input==6))))&&!(a4==1)))&&(a2==1))&&(a28==1)))&&((((a19==4)&&((((a5==5)&&(a3==1))&&(a21==12))&&(a23==1)))||!(a6==1))&&(a20==1)))){ + a27 = 0; + a5 = 4; + a19 = 1; + a16 = 9; + a21 = 11; + a12 = 1; + a1 = 13; + a23 = 1; + a9 = 11; + return 23; + } else if((((!(a27==1)&&(((a19==2)&&((a17==2)&&((input==5)&&(((((a5==5)&&(a1==13))&&(a9==11))||(((a1==13)&&(a5==6))&&(a9==11)))||((a9==7)&&((a1==14)&&(a5==4)))))))&&!(a7==1)))&&!(a24==1))&&((!(a27==1)&&((a21==11)&&((a16==7)&&(!(a14==1)&&((a6==1)&&(a20==1))))))||!(a2==1)))){ + a9 = 11; + a21 = 10; + a19 = 3; + a1 = 14; + a16 = 8; + a27 = 0; + a23 = 1; + a5 = 4; + return 26; + } else if((((a19==4)&&((a1==12)&&((a21==11)&&(((!(a20==1)&&(((a17==2)&&(!(a13==1)||(a3==1)))&&(a9==8)))||(a24==1))&&(a28==1)))))&&((((((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a16==9))&&(a28==1))&&(a23==1))&&(a2==1)))){ + a19 = 1; + a10 = 0; + a6 = 0; + a21 = 10; + a9 = 11; + a16 = 7; + a20 = 1; + a5 = 5; + a1 = 14; + a18 = 1; + return -1; + } else if((((!(a28==1)||((a14==1)||((a26==1)||((a2==1)&&(a12==1)))))&&(a1==14))&&((a19==4)&&((!(a20==1)&&((a17==2)&&((a16==9)&&((a2==1)&&((a21==10)&&((input==3)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))))))))&&!(a18==1))))){ + a24 = 1; + a9 = 8; + a0 = 1; + a5 = 6; + a16 = 7; + a1 = 12; + a19 = 2; + a20 = 1; + a10 = 0; + return -1; + } else if((((a19==3)&&(((a5==5)&&((a17==2)&&((((a1==12)&&((a12==1)&&(((a16==10)&&(input==6))&&!(a14==1))))&&(a13==1))&&(a21==11))))&&(a20==1)))&&((a9==7)&&((a26==1)||((a11==1)&&((a7==1)||(a12==1))))))){ + a26 = 0; + a19 = 1; + a21 = 10; + a16 = 7; + a28 = 1; + a5 = 4; + a27 = 0; + return -1; + } else if(((((a9==10)&&(((a19==1)&&(((a2==1)&&(!(a20==1)&&(input==5)))&&!(a26==1)))&&!(a18==1)))&&(a21==12))&&(((((a5==4)&&(((a6==1)&&((a13==1)&&!(a26==1)))&&!(a8==1)))&&(a16==9))&&(a1==13))&&(a17==2)))){ + a21 = 11; + a15 = 0; + a19 = 4; + a20 = 1; + a5 = 6; + a0 = 1; + a10 = 0; + a9 = 7; + return -1; + } else if((((((a23==1)&&((!(a4==1)&&(((!(a0==1)&&(!(a20==1)&&(input==4)))&&(a16==10))&&(a5==5)))&&(a2==1)))&&(a19==5))&&(a9==7))&&((a1==14)&&((a21==12)&&((a17==2)&&(((a2==1)||(a14==1))&&!(a27==1))))))){ + a14 = 1; + a21 = 11; + a1 = 13; + a9 = 8; + a5 = 6; + a20 = 1; + a24 = 1; + a15 = 1; + return -1; + } else if((((!(a4==1)&&((a16==11)&&((a21==12)&&((a9==10)&&((a13==1)&&((a1==13)&&((input==6)&&((a5==5)||(a5==6)))))))))&&(a23==1))&&((!(a12==1)||((a19==1)&&((((a13==1)&&(a20==1))&&(a17==2))||(a8==1))))||(a26==1)))){ + a9 = 7; + a0 = 0; + a21 = 10; + a24 = 0; + a6 = 1; + a16 = 7; + a1 = 12; + a5 = 4; + return -1; + } else if(((!(a24==1)&&((a11==1)&&(((a5==6)&&((a19==5)&&((a21==10)&&((a6==1)&&(((a11==1)&&((a1==12)&&(input==5)))&&(a17==2))))))&&!(a20==1))))&&((a16==9)&&((((a27==1)||(a3==1))||(a8==1))&&(a9==10))))){ + a19 = 1; + a7 = 1; + a26 = 1; + a1 = 13; + a10 = 0; + a20 = 1; + a16 = 7; + return -1; + } else if((((a8==1)&&(!(a28==1)&&((a17==2)&&((((!(a11==1)&&(a12==1))&&(a19==5))&&(a16==11))&&(a7==1)))))&&((a21==11)&&((a18==1)&&((a1==14)&&((a20==1)&&(((input==4)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(a27==1)))))))){ + a1 = 12; + a2 = 0; + a16 = 7; + a21 = 10; + a19 = 1; + a13 = 0; + a18 = 1; + a9 = 10; + a5 = 4; + return -1; + } else if((((((a16==7)&&((a12==1)&&(((((a23==1)&&(a1==14))&&!(a20==1))&&(a21==10))||!(a23==1))))&&(a9==8))||!(a23==1))&&(!(a7==1)&&((a2==1)&&((a17==2)&&(((a19==2)&&(((a5==5)||(a5==6))&&(input==6)))&&(a6==1))))))){ + a20 = 1; + a7 = 0; + a19 = 4; + a1 = 12; + a21 = 11; + a9 = 11; + a28 = 1; + a16 = 8; + a23 = 1; + a5 = 5; + return 22; + } else if(((((a19==4)&&((a20==1)&&(((input==6)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(a28==1))))&&(a1==13))&&(((a16==9)&&(!(a7==1)&&((((!(a7==1)&&((a3==1)||(a26==1)))||!(a12==1))||!(a3==1))&&(a17==2))))&&(a21==10)))){ + a28 = 1; + a16 = 10; + a1 = 14; + a5 = 5; + a9 = 7; + a7 = 0; + a4 = 0; + a19 = 2; + return 21; + } else if((((a19==1)&&(((a17==2)&&((a1==12)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a9==9))))&&!(a20==1)))&&(((a23==1)&&((((a28==1)&&((((a24==1)||(a3==1))&&(a16==8))&&(a2==1)))||(a26==1))||!(a11==1)))&&(a21==12)))){ + a1 = 14; + a16 = 7; + a29 = 0; + a21 = 10; + a5 = 6; + a20 = 1; + a14 = 1; + a9 = 7; + a27 = 1; + return -1; + } else if((((((a26==1)||(((((a2==1)&&(a11==1))||(a0==1))||!(a13==1))&&(a23==1)))&&!(a20==1))&&(a1==14))&&(((((a17==2)&&(((input==3)&&((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a5==4)&&(a9==10))))&&(a23==1)))&&(a16==9))&&(a19==4))&&(a21==10)))){ + a7 = 1; + a28 = 0; + a20 = 1; + a5 = 6; + a1 = 13; + a19 = 1; + a9 = 8; + a16 = 7; + return -1; + } else if((((a21==12)&&(!(a0==1)&&((a6==1)&&((a17==2)&&(!(a4==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4)))))))&&((a19==2)&&((!(a28==1)||(((!(a6==1)||((a12==1)&&((a23==1)&&(a1==12))))&&(a9==11))&&(a20==1)))&&(a16==9))))){ + a5 = 4; + a26 = 0; + a14 = 0; + a7 = 0; + a21 = 10; + a9 = 7; + a19 = 1; + a16 = 7; + return -1; + } else if(((!(a27==1)&&(!(a24==1)&&(((((((input==3)&&(a21==10))&&(a5==5))&&(a17==2))&&(a19==5))&&(a9==7))&&(a1==12))))&&(!(a28==1)||(((((a16==7)&&((a6==1)&&!(a24==1)))&&!(a20==1))||!(a13==1))&&!(a4==1))))){ + a19 = 1; + a11 = 1; + a8 = 0; + a20 = 1; + a5 = 4; + a23 = 1; + return -1; + } else if(((((((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4)))&&(input==1))&&(a11==1))&&(a1==13))&&(((a14==1)||(((a20==1)&&(((a3==1)&&((a6==1)&&((a21==11)&&(((a23==1)&&(a16==11))||!(a11==1)))))&&(a17==2)))&&!(a26==1)))&&(a19==1)))){ + a14 = 0; + a4 = 0; + a9 = 10; + a5 = 4; + a19 = 5; + a23 = 1; + return 21; + } else if((((((!(a14==1)&&((a28==1)&&((a20==1)&&((a3==1)||(a26==1)))))&&(a16==9))&&(a9==7))&&(a23==1))&&((a11==1)&&(!(a0==1)&&((a17==2)&&((a1==12)&&((((input==3)&&((a5==5)||(a5==6)))&&(a19==5))&&(a21==10)))))))){ + a24 = 0; + a19 = 1; + a0 = 0; + a5 = 4; + a27 = 0; + a16 = 7; + return -1; + } else if((((a19==5)&&((a23==1)&&(((((a1==13)&&((((a28==1)&&(a16==9))&&!(a24==1))&&(a23==1)))&&!(a14==1))&&(a28==1))&&(a20==1))))&&((((a21==12)&&(((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&(a17==2)))&&(a11==1))&&(a9==7)))){ + a4 = 0; + a1 = 14; + a19 = 1; + a5 = 4; + a6 = 1; + a21 = 10; + a3 = 1; + a16 = 10; + return 21; + } else if(((((a11==1)&&((a17==2)&&((a21==11)&&((a16==10)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4))))))&&!(a8==1))&&((a11==1)&&((a23==1)&&(((a12==1)&&(((((a20==1)&&(a23==1))&&(a1==13))&&(a9==8))&&(a19==2)))||!(a23==1)))))){ + a1 = 12; + a21 = 10; + a13 = 1; + a14 = 0; + a5 = 4; + a19 = 1; + a9 = 7; + a16 = 7; + a2 = 1; + return -1; + } else if((((a19==2)&&(!(a18==1)&&(!(a13==1)||((a23==1)&&(a2==1)))))&&((((a13==1)&&((a16==10)&&((((a17==2)&&((a11==1)&&((input==1)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))))&&!(a20==1))&&(a1==12))))&&(a2==1))&&(a21==10)))){ + a16 = 8; + a5 = 6; + a21 = 12; + a9 = 11; + a25 = 0; + a8 = 1; + a1 = 14; + a19 = 1; + a2 = 0; + return -1; + } else if((((a19==2)&&(((a16==7)&&(!(a20==1)&&((((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&!(a18==1))&&!(a8==1))))&&(a17==2)))&&((a21==10)&&(!(a23==1)||(((a2==1)&&((!(a18==1)&&((a6==1)&&!(a27==1)))&&(a1==14)))&&(a9==9)))))){ + a18 = 0; + a27 = 0; + a5 = 4; + a9 = 7; + a11 = 1; + a19 = 1; + a20 = 1; + a1 = 12; + return -1; + } else if(((((((a27==1)&&((a24==1)&&(((input==6)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(a17==2))))&&(a24==1))&&!(a23==1))&&(a27==1))&&((a16==7)&&(((!(a28==1)&&(((a3==1)&&(a1==13))&&!(a20==1)))&&(a21==12))&&(a19==4))))){ + a1 = 12; + a19 = 2; + a21 = 10; + a20 = 1; + a23 = 0; + a9 = 8; + a5 = 6; + a18 = 1; + a14 = 1; + return -1; + } else if((((a16==9)&&(!(a18==1)&&((!(a8==1)&&((input==4)&&(((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))))&&(a28==1))))&&((((((a7==1)||((a1==12)&&((a21==10)&&(!(a26==1)&&(a13==1)))))&&!(a20==1))&&(a11==1))&&(a17==2))&&(a19==4)))){ + a14 = 1; + a19 = 3; + a5 = 4; + a22 = 0; + a16 = 8; + a20 = 1; + a9 = 7; + return -1; + } else if((((a16==7)&&((a17==2)&&((((a19==5)&&(((input==1)&&(a20==1))&&(a5==4)))&&(a11==1))&&!(a4==1))))&&(((((a4==1)||((a21==11)&&(((a14==1)||(a28==1))||!(a13==1))))&&!(a8==1))&&(a1==13))&&(a9==10)))){ + a21 = 12; + a11 = 1; + a2 = 1; + a19 = 2; + a0 = 0; + a9 = 7; + a16 = 8; + return 25; + } else if(((((((!(a23==1)||((a28==1)&&(a21==11)))&&(a19==1))&&(a28==1))&&(a17==2))&&(a1==13))&&((((a9==7)&&((a16==7)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a20==1))&&!(a14==1))&&(a28==1))))&&(a2==1))&&(a6==1)))){ + a16 = 8; + a21 = 10; + a24 = 0; + a5 = 5; + a9 = 8; + a14 = 0; + a13 = 1; + a1 = 12; + return 21; + } else if((((!(a20==1)&&(((((input==5)&&(((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))))&&(a2==1))&&(a17==2))&&(a16==11)))&&(a28==1))&&(!(a24==1)&&(((a14==1)||((a19==4)&&((((a12==1)&&(a21==10))&&(a3==1))||(a26==1))))&&(a1==12))))){ + a21 = 11; + a19 = 5; + a22 = 0; + a9 = 7; + a20 = 1; + a27 = 1; + a5 = 4; + a11 = 0; + return -1; + } return calculate_output30(input); + } + + int calculate_output30(int input) { + if((((a1==13)&&((a17==2)&&((!(a0==1)&&(!(a28==1)||((a21==11)&&(((a12==1)&&(a12==1))&&(a13==1)))))&&(a20==1))))&&((a19==4)&&(((a3==1)&&((a16==11)&&(((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))&&(input==1))))&&!(a0==1))))){ + a5 = 4; + a14 = 0; + a16 = 10; + a19 = 2; + a0 = 0; + a23 = 1; + a21 = 10; + a9 = 8; + a1 = 14; + return 21; + } else if(((!(a12==1)||(((((((a9==7)&&((a13==1)&&(a17==2)))&&!(a20==1))&&(a19==3))&&(a16==9))||(a27==1))&&!(a4==1)))&&(!(a24==1)&&(!(a8==1)&&((a23==1)&&((((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a1==12))&&(a21==10))))))){ + a5 = 4; + a16 = 11; + a9 = 11; + a19 = 1; + a1 = 14; + a29 = 0; + a25 = 0; + a21 = 12; + a20 = 1; + return -1; + } else if(((((((a20==1)&&(!(a7==1)&&((((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==5))&&(a17==2))&&(a23==1))))&&(a19==4))&&(a11==1))&&(a21==10))&&(!(a11==1)||((a7==1)||(!(a24==1)&&((a1==13)&&((a2==1)&&(a16==7)))))))){ + a19 = 5; + a21 = 11; + a9 = 7; + a2 = 1; + a5 = 6; + a11 = 1; + a1 = 12; + a28 = 1; + return 26; + } else if((((a23==1)&&((a6==1)&&((((a21==10)&&((a1==13)&&(((input==5)&&((a5==5)||(a5==6)))&&(a20==1))))&&!(a27==1))&&(a17==2))))&&((((((a7==1)||((a23==1)&&(a9==9)))&&(a19==5))&&(a2==1))||(a18==1))&&(a16==7)))){ + a13 = 1; + a9 = 10; + a5 = 5; + a23 = 1; + a0 = 0; + a21 = 12; + a19 = 3; + return 22; + } else if((((a20==1)&&(!(a2==1)||(((a13==1)&&(a17==2))&&(a16==9))))&&(!(a14==1)&&((a23==1)&&(((a6==1)&&(((a21==11)&&((input==3)&&(((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==2))||((((a5==4)&&(a1==12))&&(a9==7))&&(a19==3)))||((((a5==5)&&(a1==12))&&(a9==7))&&(a19==3)))))&&(a11==1)))&&(a12==1)))))){ + a9 = 7; + a5 = 4; + a16 = 7; + a14 = 0; + a21 = 10; + a24 = 0; + a19 = 1; + a13 = 1; + a1 = 12; + return -1; + } else if((((a14==1)||(((a9==9)&&((a21==12)&&(a23==1)))&&(a19==1)))&&((a12==1)&&((((a11==1)&&((((((a17==2)&&((input==1)&&(a20==1)))&&(a16==11))&&(a5==6))&&!(a18==1))&&(a28==1)))&&(a1==12))&&(a11==1))))){ + a27 = 0; + a21 = 10; + a16 = 7; + a5 = 4; + a26 = 0; + a9 = 7; + return -1; + } else if((((a6==1)&&((((a21==10)&&((((a2==1)||!(a6==1))&&(a17==2))&&(a3==1)))||(a0==1))&&!(a4==1)))&&((a16==7)&&((((a20==1)&&((a9==7)&&(((input==3)&&(a19==5))&&(a1==12))))&&!(a7==1))&&(a5==5))))){ + a8 = 0; + a24 = 0; + a19 = 1; + a27 = 0; + a5 = 4; + return -1; + } else if(((((a16==7)&&((!(a0==1)&&((((a13==1)&&(a1==14))&&!(a0==1))&&(a28==1)))&&(a21==11)))&&(a19==3))&&((a20==1)&&(!(a0==1)&&((!(a7==1)&&(!(a0==1)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==1))))&&(a17==2)))))){ + if((a23==1)){ + a9 = 10; + a7 = 0; + a4 = 0; + a5 = 5; + a8 = 0; + a20 = 0; + }else{ + a7 = 0; + a16 = 8; + a5 = 4; + a8 = 0; + a1 = 13; + a6 = 1; + a9 = 11; + a19 = 2; + } + return 22; + } else if(((((a16==10)&&(((((a12==1)&&(a13==1))||(a26==1))&&(a17==2))||!(a23==1)))&&(a12==1))&&((!(a20==1)&&(((a1==14)&&(!(a4==1)&&((a6==1)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==6)))))&&(a21==10)))&&(a19==3)))){ + a9 = 9; + a14 = 1; + a15 = 0; + a16 = 7; + a5 = 5; + a20 = 1; + a1 = 13; + a19 = 1; + a18 = 1; + return -1; + } else if((((!(a7==1)&&((((a16==10)&&(((a13==1)&&((a21==10)&&(!(a0==1)&&((a5==5)&&(input==4)))))&&(a1==12)))&&(a19==2))&&(a9==10)))&&(a6==1))&&((a17==2)&&(((a3==1)&&(!(a3==1)||(a13==1)))&&(a20==1))))){ + a19 = 4; + a16 = 9; + a3 = 1; + a5 = 6; + a12 = 1; + a23 = 1; + a1 = 13; + return -1; + } else if((((a21==11)&&(!(a14==1)&&(((a3==1)&&((a5==5)&&((((a3==1)&&(((input==1)&&(a17==2))&&!(a27==1)))&&(a23==1))&&(a19==4))))&&(a12==1))))&&(((a1==12)&&(!(a20==1)&&((a11==1)&&(a9==8))))&&(a16==8)))){ + a0 = 0; + a2 = 1; + a19 = 3; + a13 = 1; + a20 = 1; + a1 = 13; + a9 = 7; + a21 = 10; + a16 = 7; + return 25; + } else if(((((((a12==1)||!(a2==1))&&!(a14==1))||!(a3==1))&&(a9==8))&&(((((a5==5)&&(((a12==1)&&(((a17==2)&&((a3==1)&&((input==4)&&(a16==8))))&&(a11==1)))&&(a19==1)))&&(a21==10))&&(a1==12))&&(a20==1)))){ + a16 = 7; + a5 = 4; + a6 = 1; + a9 = 7; + a26 = 0; + a2 = 1; + return -1; + } else if(((((((((((!(a0==1)&&((a6==1)&&((input==4)&&((a5==6)||((a5==4)||(a5==5))))))&&(a9==9))&&!(a18==1))&&(a1==12))&&(a16==7))&&(a17==2))&&!(a20==1))&&(a19==4))&&!(a24==1))&&((!(a23==1)||((a21==12)&&(a12==1)))&&!(a24==1)))){ + a20 = 1; + a19 = 1; + a9 = 7; + a24 = 0; + a5 = 4; + a13 = 1; + a21 = 10; + a2 = 1; + return -1; + } else if((((a21==11)&&(((a20==1)&&((a13==1)&&(((a1==14)&&((a28==1)&&((a17==2)&&((((a9==10)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))&&(a16==11))&&(a2==1)))))&&!(a4==1))))&&(a11==1)))&&((a11==1)&&((a11==1)&&(a19==4))))){ + a21 = 10; + a16 = 7; + a6 = 1; + a18 = 0; + a24 = 0; + a1 = 12; + a5 = 4; + a9 = 7; + a19 = 1; + return -1; + } else if(((((((a24==1)||(((a17==2)&&(((a23==1)&&(a6==1))&&(a16==8)))&&(a13==1)))&&(a23==1))&&(a21==12))&&(a19==3))&&(((a13==1)&&((a1==14)&&(((input==3)&&(((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))))&&(a13==1))))&&!(a20==1)))){ + a19 = 1; + a22 = 0; + a1 = 13; + a10 = 1; + a16 = 10; + a5 = 5; + a9 = 11; + a11 = 0; + a21 = 11; + a20 = 1; + return -1; + } else if((((a19==2)&&((a1==13)&&(((a17==2)&&(((a28==1)&&((a23==1)&&(!(a27==1)&&((!(a20==1)&&(input==5))&&(a21==12)))))&&(a16==10)))&&(a5==6))))&&(((!(a11==1)||(!(a7==1)&&(a28==1)))||(a7==1))&&(a9==7)))){ + if((a24==1)){ + a1 = 12; + a20 = 1; + a13 = 0; + a15 = 0; + a21 = 10; + a14 = 1; + a16 = 7; + a19 = 1; + a9 = 10; + }else{ + a21 = 10; + a19 = 1; + a20 = 1; + a1 = 12; + a5 = 5; + a9 = 10; + a6 = 0; + a7 = 1; + a29 = 0; + a16 = 7; + } + return -1; + } else if(((((a24==1)&&((((a16==8)&&((a1==13)&&((a18==1)&&(a11==1))))&&(a17==2))&&(a21==11)))&&!(a13==1))&&(((a4==1)&&((((((input==6)&&((a5==4)||(a5==5)))&&(a19==3))&&(a14==1))&&!(a20==1))&&(a9==8)))&&!(a12==1)))){ + a20 = 1; + a5 = 6; + a2 = 0; + a7 = 1; + a11 = 0; + a1 = 12; + a21 = 12; + return -1; + } else if(((!(a7==1)&&((((a16==8)&&(((a20==1)&&(!(a7==1)&&((a19==3)&&((input==1)&&((a5==5)||(a5==6))))))&&(a12==1)))&&(a17==2))&&!(a18==1)))&&(((a21==12)&&(!(a7==1)&&(((a11==1)&&(a9==9))&&(a1==14))))||(a18==1)))){ + a13 = 1; + a11 = 1; + a5 = 4; + a1 = 12; + a24 = 0; + a9 = 7; + a19 = 1; + a21 = 10; + a16 = 7; + return -1; + } else if((((((a14==1)||(!(a20==1)&&((a16==10)&&((a19==5)&&((a3==1)&&(a21==12))))))&&(a13==1))&&(a13==1))&&(!(a4==1)&&((a2==1)&&((a17==2)&&((((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==1))&&!(a27==1))&&(a1==13))))))){ + a1 = 12; + a29 = 0; + a9 = 11; + a5 = 5; + a15 = 0; + a2 = 0; + return -1; + } else if((((a21==11)&&((((!(a24==1)&&(((a11==1)&&(!(a14==1)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==6))))&&(a11==1)))&&!(a4==1))&&(a19==4))&&(a1==14)))&&((a6==1)&&((((a2==1)&&(a20==1))&&(a17==2))&&(a16==10))))){ + a1 = 12; + a16 = 8; + a5 = 5; + a3 = 1; + a12 = 1; + a9 = 9; + a0 = 0; + a19 = 5; + a21 = 10; + return 22; + } else if(((!(a7==1)&&((a21==10)&&(((((a1==14)&&((((a5==4)||(a5==5))&&(input==5))&&!(a8==1)))&&!(a14==1))&&(a20==1))&&(a11==1))))&&((!(a0==1)&&((a9==11)&&((a17==2)&&(((a16==8)&&(a11==1))||(a18==1)))))&&(a19==1)))){ + a18 = 0; + a5 = 5; + a19 = 3; + a16 = 9; + a21 = 12; + a4 = 0; + a1 = 12; + a0 = 0; + a9 = 10; + return 21; + } else if(((((((a21==10)&&((a19==1)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==5))))&&!(a0==1))&&!(a26==1))&&!(a24==1))&&((a16==11)&&((a12==1)&&(((a17==2)&&((a4==1)||(!(a20==1)&&((a11==1)||!(a23==1)))))&&(a1==14)))))){ + a26 = 1; + a20 = 1; + a3 = 0; + a9 = 11; + a24 = 1; + a16 = 8; + a19 = 5; + a1 = 13; + a5 = 4; + return -1; + } else if((((!(a20==1)&&(!(a3==1)||((a19==3)&&(a6==1))))&&(a21==11))&&((a11==1)&&(((!(a18==1)&&((a16==10)&&(!(a18==1)&&(!(a24==1)&&((((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5)))&&(input==1))&&(a11==1))))))&&(a17==2))&&(a1==13))))){ + a15 = 1; + a16 = 11; + a10 = 1; + a9 = 8; + a1 = 14; + a20 = 1; + a5 = 6; + a29 = 1; + return -1; + } else if((((a1==13)&&((a23==1)&&(((((((a20==1)&&((a21==10)&&(!(a4==1)&&((a16==11)&&((input==5)&&((a5==4)||(a5==5)))))))&&(a11==1))&&(a3==1))&&(a19==2))&&(a13==1))&&(a9==11))))&&((a17==2)&&((a7==1)||(a28==1))))){ + a18 = 0; + a26 = 0; + a9 = 8; + a1 = 14; + a4 = 0; + a21 = 11; + a5 = 5; + return 25; + } else if(((((a20==1)&&(((((((((input==3)&&(a19==1))&&!(a4==1))&&(a6==1))&&!(a0==1))&&(a23==1))&&(a17==2))&&(a9==10))&&(a21==12)))&&(a1==13))&&((a16==8)&&((a5==4)&&(((a2==1)&&(a13==1))||!(a23==1)))))){ + a1 = 12; + a16 = 7; + a21 = 10; + a12 = 1; + a9 = 7; + a4 = 0; + a18 = 0; + return -1; + } else if(((((((a20==1)&&((!(a18==1)&&((a21==12)&&(input==1)))&&(a17==2)))&&!(a4==1))&&!(a0==1))&&(a1==14))&&((a16==10)&&(((a5==6)&&(!(a23==1)||((a19==5)&&(!(a11==1)||((a12==1)&&(a28==1))))))&&(a9==9))))){ + a18 = 0; + a16 = 7; + a21 = 10; + a6 = 1; + a19 = 2; + a9 = 11; + a27 = 0; + return 21; + } else if((((a20==1)&&(((a3==1)&&((((((a5==4)||(a5==5))&&(input==5))&&(a3==1))&&!(a4==1))&&(a9==9)))&&(a16==11)))&&((a21==10)&&((((a2==1)&&((((a2==1)||(a26==1))||(a24==1))&&(a1==12)))&&(a19==5))&&(a17==2))))){ + a27 = 0; + a9 = 7; + a16 = 7; + a19 = 1; + a5 = 4; + a26 = 0; + a3 = 1; + return -1; + } else if((((((!(a7==1)&&(((((a5==5)||(a5==6))&&(input==5))&&!(a20==1))&&(a1==12)))&&(a19==2))&&!(a14==1))&&!(a8==1))&&((a17==2)&&((a16==7)&&((a3==1)&&(((a11==1)&&((a21==10)&&((a9==8)&&(a13==1))))||!(a6==1))))))){ + if((a3==1)){ + a21 = 11; + a19 = 3; + a16 = 8; + a18 = 0; + a5 = 5; + a23 = 1; + a9 = 11; + a14 = 0; + a1 = 13; + }else{ + a6 = 1; + a26 = 0; + a9 = 7; + a5 = 4; + a1 = 14; + a0 = 0; + } + return 25; + } else if((((((a19==5)&&(!(a4==1)&&((!(a24==1)&&(((input==5)&&((a5==4)||(a5==5)))&&(a16==8)))&&(a11==1))))&&(a9==10))&&(a17==2))&&(((a21==12)&&(!(a3==1)||(!(a6==1)||(((a1==14)&&(a23==1))||(a14==1)))))&&(a20==1)))){ + a5 = 4; + a4 = 0; + a11 = 1; + a9 = 7; + a8 = 0; + return -1; + } else if((((a12==1)&&((a11==1)&&((a23==1)&&(((a5==4)&&((a1==12)&&((a20==1)&&(((a17==2)&&(input==6))&&(a16==7)))))&&(a19==3)))))&&(!(a4==1)&&((a11==1)&&((((a28==1)&&!(a26==1))&&(a21==11))&&(a9==10)))))){ + a19 = 1; + a8 = 0; + a9 = 7; + a23 = 1; + a21 = 10; + a13 = 1; + return -1; + } else if(((!(a2==1)||((!(a11==1)||((!(a26==1)&&((a19==1)&&(!(a7==1)&&(a6==1))))&&(a17==2)))&&(a20==1)))&&((((a11==1)&&((a21==11)&&((a1==12)&&((((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(input==6)))))&&!(a0==1))&&(a16==10)))){ + a19 = 3; + a9 = 9; + a1 = 13; + a6 = 1; + a16 = 8; + a23 = 1; + a12 = 1; + a5 = 4; + return 21; + } else if((((a13==1)&&(((a21==10)&&((a16==10)&&(!(a4==1)&&((!(a24==1)&&((input==6)&&(a5==6)))&&(a17==2)))))&&(a9==11)))&&((a12==1)&&((((a1==12)&&((!(a0==1)&&(a3==1))&&(a19==3)))&&!(a20==1))||(a4==1))))){ + if((a6==1)){ + a26 = 1; + a16 = 9; + a19 = 5; + a8 = 1; + a15 = 1; + a21 = 12; + a1 = 14; + }else{ + a20 = 1; + a2 = 0; + a19 = 2; + a28 = 0; + a16 = 7; + a3 = 0; + a5 = 4; + a9 = 9; + } + return -1; + } else if(((!(a26==1)&&((a6==1)&&((a19==2)&&(!(a0==1)&&((a9==9)&&(((a3==1)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&!(a20==1))&&(a28==1)))&&(a28==1)))))))&&(((a17==2)&&(((a1==14)&&(a3==1))&&(a21==12)))&&(a16==7)))){ + if((a24==1)){ + a4 = 0; + a1 = 13; + a5 = 4; + a9 = 8; + a19 = 4; + a6 = 1; + }else{ + a9 = 7; + a21 = 11; + a11 = 1; + a12 = 1; + a8 = 0; + a5 = 6; + a19 = 1; + a20 = 1; + } + return 21; + } else if(((((a1==12)&&((a17==2)&&((a21==11)&&(!(a8==1)&&(!(a7==1)&&((a5==4)&&((a16==7)&&(a6==1))))))))&&!(a20==1))&&((a19==2)&&(!(a4==1)&&(((a13==1)&&(((a9==7)&&(input==3))&&(a3==1)))&&(a3==1)))))){ + a2 = 1; + a19 = 1; + a4 = 0; + a20 = 1; + a21 = 10; + return -1; + } else if((((a19==4)&&((a17==2)&&(((((!(a26==1)&&(a13==1))&&!(a0==1))&&!(a8==1))&&(a5==5))&&(a20==1))))&&((a9==7)&&(!(a8==1)&&((a16==11)&&(((((a21==12)&&(input==4))&&(a1==12))&&(a28==1))&&(a6==1))))))){ + a16 = 7; + a5 = 4; + a19 = 1; + a21 = 10; + a18 = 0; + a23 = 1; + a12 = 1; + return -1; + } else if((((a19==2)&&((a16==8)&&(!(a14==1)&&((((((input==4)&&((a5==4)||(a5==5)))&&!(a7==1))&&(a3==1))&&(a1==14))&&(a17==2)))))&&((a9==11)&&(((a21==11)&&(!(a12==1)||((!(a20==1)&&(a11==1))||(a7==1))))||(a26==1))))){ + a20 = 1; + a1 = 12; + a16 = 7; + a9 = 7; + a2 = 1; + a21 = 10; + a6 = 1; + a5 = 4; + a19 = 1; + return -1; + } else if(((((a1==13)&&((a5==6)&&(((!(a24==1)&&(((input==1)&&(a20==1))&&(a21==11)))&&!(a7==1))&&(a9==8))))&&(a16==8))&&((a19==1)&&(!(a6==1)||(((a17==2)&&((a0==1)||((a23==1)&&!(a18==1))))&&(a3==1)))))){ + a23 = 1; + a28 = 1; + a21 = 10; + a19 = 5; + a5 = 5; + a20 = 0; + return 22; + } else if(((((a9==8)&&((((a19==4)&&(!(a18==1)&&(a23==1)))&&(a28==1))&&(a16==9)))&&(a21==11))&&((a13==1)&&(!(a20==1)&&((a23==1)&&(((!(a0==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&!(a18==1)))&&(a17==2))&&(a1==13))))))){ + if((a29==1)){ + a26 = 1; + a1 = 12; + a19 = 5; + a16 = 7; + a5 = 5; + a3 = 0; + a21 = 10; + }else{ + a21 = 10; + a0 = 1; + a23 = 0; + a5 = 5; + a19 = 1; + a9 = 11; + a20 = 1; + a22 = 0; + a16 = 11; + } + return -1; + } else if(((((!(a7==1)&&((a21==10)&&((a19==1)&&((a11==1)||(a26==1)))))&&(a5==5))&&(a20==1))&&(((((!(a14==1)&&((((a9==10)&&(input==4))&&(a13==1))&&(a17==2)))&&!(a4==1))&&(a1==14))&&(a13==1))&&(a16==8)))){ + a0 = 0; + a9 = 7; + a7 = 0; + a28 = 1; + a1 = 12; + a16 = 7; + a5 = 4; + return -1; + } else if(((((a18==1)&&((a16==7)&&((a18==1)&&(a23==1))))&&!(a13==1))&&((a17==2)&&(((a1==12)&&(((!(a13==1)&&(!(a13==1)&&((((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4)))&&(input==4))&&(a21==10))))&&!(a20==1))&&(a24==1)))&&(a19==3))))){ + a20 = 1; + a22 = 1; + a9 = 9; + a11 = 0; + a27 = 1; + a5 = 5; + a19 = 1; + return -1; + } else if((((a1==13)&&((a9==10)&&(((((a5==6)&&(input==3))&&(a16==10))&&(a13==1))&&!(a24==1))))&&(((((!(a26==1)&&((((a6==1)&&(a2==1))&&(a21==11))&&(a11==1)))&&(a23==1))&&(a19==2))&&(a17==2))&&(a20==1)))){ + a5 = 4; + a7 = 0; + a1 = 12; + a19 = 1; + a13 = 1; + a21 = 10; + a16 = 7; + a4 = 0; + a9 = 7; + return -1; + } else if((((((((a21==12)&&(((a5==6)&&((input==4)&&(a19==3)))&&(a16==8)))&&!(a18==1))&&(a20==1))&&(a1==13))&&(a9==9))&&((!(a28==1)||((((!(a2==1)||(a23==1))&&!(a24==1))||!(a2==1))||(a26==1)))&&(a17==2)))){ + a19 = 1; + a9 = 7; + a16 = 7; + a23 = 1; + a8 = 0; + a5 = 4; + a1 = 12; + a21 = 10; + a11 = 1; + return -1; + } else if((((!(a12==1)||(((a18==1)||(((!(a4==1)&&(!(a2==1)||(a13==1)))&&(a20==1))&&(a16==7)))&&(a3==1)))&&(a21==12))&&(!(a4==1)&&((a17==2)&&((a19==4)&&(((((a5==6)&&(a1==12))&&(a9==11))||(((a5==4)&&(a1==13))&&(a9==7)))&&(input==3))))))){ + a1 = 12; + a6 = 1; + a7 = 0; + a5 = 4; + a19 = 1; + a21 = 10; + a9 = 7; + a4 = 0; + return -1; + } else if((((((a13==1)&&(((a17==2)&&((a1==12)&&((input==5)&&((a5==5)||(a5==6)))))&&(a16==8)))&&(a21==11))&&!(a0==1))&&(((!(a8==1)&&((a9==8)&&((a19==1)&&(((a11==1)&&!(a27==1))&&(a20==1)))))||(a8==1))||(a7==1)))){ + a16 = 10; + a21 = 10; + a19 = 2; + a5 = 5; + a14 = 0; + a3 = 1; + a1 = 14; + a9 = 10; + a7 = 0; + return 23; + } else if((((!(a14==1)&&((a1==13)&&(((a13==1)&&((a17==2)&&((a20==1)&&((a21==10)&&(((input==3)&&(a19==5))&&(a5==4))))))&&(a3==1))))&&(a16==9))&&((!(a7==1)&&((a9==7)&&((a13==1)&&(a2==1))))&&!(a7==1)))){ + a26 = 0; + a28 = 1; + a1 = 12; + a11 = 1; + a16 = 7; + a19 = 1; + return -1; + } else if(((((((a19==5)&&((((a2==1)||!(a13==1))&&(a3==1))&&(a1==13)))&&(a11==1))||(a0==1))&&(a20==1))&&(((a2==1)&&(((a9==7)&&(!(a4==1)&&((a17==2)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))))&&(a16==7)))&&(a21==11)))){ + a6 = 1; + a24 = 0; + a21 = 10; + a26 = 0; + a9 = 10; + a20 = 0; + a5 = 4; + return 25; + } else if((((a19==4)&&((((a13==1)&&(((a11==1)&&(a1==12))&&(a20==1)))&&(a6==1))&&(a9==8)))&&((((((((a16==11)&&((input==3)&&((a5==5)||(a5==6))))&&!(a27==1))&&(a12==1))&&(a2==1))&&(a21==10))&&(a2==1))&&(a17==2)))){ + a26 = 0; + a16 = 7; + a19 = 1; + a9 = 7; + a27 = 0; + a5 = 4; + a18 = 0; + return -1; + } else if((((a4==1)&&(((!(a6==1)&&((a0==1)&&((a21==10)&&(((a20==1)&&(((a1==14)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))&&(a24==1)))&&(a26==1)))))&&(a17==2))&&!(a12==1)))&&(((a19==2)&&((a11==1)&&(a16==7)))&&(a9==11)))){ + a19 = 1; + a7 = 1; + a13 = 0; + a1 = 12; + a5 = 6; + a12 = 0; + return -1; + } else if(((!(a18==1)&&(((a17==2)&&((!(a4==1)&&((((a2==1)&&(a3==1))&&(a21==11))&&(a9==8)))&&(a6==1)))&&(a5==6)))&&((!(a26==1)&&(!(a20==1)&&(!(a7==1)&&((a1==13)&&((a16==7)&&(input==3))))))&&(a19==5)))){ + a21 = 10; + a27 = 0; + a0 = 0; + a8 = 0; + a1 = 12; + a9 = 7; + a5 = 4; + a19 = 1; + a20 = 1; + return -1; + } else if(((!(a24==1)&&(!(a8==1)&&((((((a5==4)||(a5==5))&&(input==1))&&(a9==7))&&(a19==2))&&(a16==7))))&&(((!(a24==1)&&(!(a20==1)&&((a11==1)&&(!(a11==1)||((a21==11)&&((a13==1)||(a24==1)))))))&&(a1==14))&&(a17==2)))){ + a21 = 10; + a6 = 1; + a2 = 1; + a26 = 0; + a5 = 4; + a20 = 1; + a19 = 1; + a1 = 12; + return -1; + } else if(((((a17==2)&&((!(a0==1)&&((a13==1)&&((((a9==11)&&(input==6))&&!(a27==1))&&(a19==3))))&&(a21==12)))&&(a16==7))&&(!(a23==1)||((!(a4==1)&&(!(a7==1)&&(!(a20==1)&&((a13==1)&&(a1==13)))))&&(a5==4))))){ + a19 = 2; + a13 = 1; + a20 = 1; + a26 = 0; + a2 = 1; + a21 = 10; + a9 = 9; + return -1; + } else if((((((a9==11)&&((a19==4)&&(((a5==5)||(a5==6))&&(input==6))))&&(a11==1))&&!(a14==1))&&(((a21==12)&&((((a1==12)&&((a17==2)&&((!(a6==1)||((a16==11)&&(a6==1)))||(a4==1))))&&(a20==1))&&!(a27==1)))&&!(a7==1)))){ + a9 = 7; + a19 = 5; + a12 = 1; + a1 = 14; + a0 = 0; + a2 = 1; + a5 = 4; + return 21; + } else if((((a6==1)&&(((a1==13)&&((!(a24==1)&&((a3==1)&&!(a20==1)))||(a8==1)))||!(a13==1)))&&((a5==5)&&((((a12==1)&&(((a9==9)&&((a28==1)&&((input==4)&&(a19==2))))&&(a17==2)))&&(a16==10))&&(a21==11))))){ + a19 = 3; + a22 = 1; + a20 = 1; + a23 = 0; + a5 = 4; + return -1; + } else if((((a20==1)&&(!(a13==1)||(!(a12==1)||((!(a8==1)&&(a3==1))&&(a21==12)))))&&((!(a0==1)&&(((a16==7)&&((a28==1)&&((((((a5==5)&&(a1==12))&&(a9==7))&&(a19==5))||(((a19==4)&&(((a1==14)&&(a5==6))&&(a9==11)))||(((a9==7)&&((a1==12)&&(a5==4)))&&(a19==5))))&&(input==5))))&&!(a7==1)))&&(a17==2)))){ + a19 = 1; + a9 = 8; + a14 = 0; + a24 = 0; + a1 = 14; + a5 = 6; + a7 = 0; + a16 = 8; + return 21; + } else if((((((a21==11)&&((!(a14==1)&&(((a6==1)&&((input==3)&&(((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8))))))&&!(a27==1)))&&(a19==1)))&&(a17==2))&&(a16==11))&&((a1==12)&&((a20==1)&&(!(a12==1)||((a23==1)&&((a2==1)&&!(a7==1)))))))){ + a9 = 7; + a27 = 0; + a16 = 7; + a5 = 4; + a21 = 10; + a13 = 1; + a11 = 1; + return -1; + } else if(((!(a20==1)&&((a7==1)||((a28==1)||(a26==1))))&&(!(a27==1)&&(((((a28==1)&&((a3==1)&&(((a16==7)&&(((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))&&(input==6))&&(a21==10)))&&(a17==2))))&&!(a8==1))&&(a1==12))&&(a19==5))))){ + a0 = 0; + a21 = 11; + a20 = 1; + a5 = 5; + a19 = 4; + a9 = 8; + a18 = 0; + a16 = 10; + a12 = 1; + return 21; + } else if((((!(a8==1)&&(!(a20==1)&&((a1==13)&&(((a28==1)&&(a16==8))&&(a21==11)))))&&!(a7==1))&&(((((((((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9)))&&(input==6))&&!(a14==1))&&(a17==2))&&!(a0==1))&&!(a0==1))&&(a19==5))&&(a23==1)))){ + if((a13==1)){ + a23 = 0; + a21 = 10; + a1 = 12; + a25 = 1; + a26 = 1; + a19 = 1; + a20 = 1; + a5 = 6; + a16 = 7; + a9 = 11; + }else{ + a19 = 4; + a29 = 1; + a16 = 9; + a20 = 1; + a9 = 8; + a0 = 1; + a21 = 12; + a5 = 6; + a1 = 14; + a28 = 0; + } + return -1; + } else if((((a4==1)||(!(a8==1)&&((!(a3==1)||(a23==1))&&(a20==1))))&&(((a19==2)&&((!(a0==1)&&((a13==1)&&((a17==2)&&(((a16==7)&&((a21==11)&&(((a5==5)||(a5==6))&&(input==1))))&&!(a8==1)))))&&(a1==14)))&&(a9==10)))){ + a11 = 1; + a5 = 4; + a19 = 4; + a21 = 10; + a1 = 13; + a2 = 1; + a16 = 8; + a9 = 9; + a13 = 1; + return 25; + } else if((((((a21==10)&&((a16==9)&&(((((((a1==14)&&(a5==6))&&(a9==11))&&(a19==1))||((a19==2)&&((a9==7)&&((a5==4)&&(a1==12)))))&&(input==6))&&!(a7==1))))&&(a11==1))&&(a2==1))&&(!(a0==1)&&((a17==2)&&((!(a27==1)&&((a20==1)&&(a12==1)))||!(a3==1)))))){ + a19 = 1; + a5 = 6; + a1 = 13; + a27 = 0; + a28 = 1; + a2 = 1; + a9 = 7; + a16 = 11; + return 26; + } else if(((((!(a3==1)||((a11==1)&&((a1==14)&&(((a9==9)&&(a11==1))&&!(a20==1)))))&&(a21==10))&&(a17==2))&&(((a16==7)&&((!(a14==1)&&((a11==1)&&(((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a23==1))))&&!(a0==1)))&&(a19==4)))){ + a5 = 4; + a28 = 1; + a19 = 1; + a1 = 12; + a26 = 0; + a12 = 1; + a9 = 7; + a20 = 1; + return -1; + } else if((((((((a20==1)&&((a1==14)&&(a11==1)))&&(a21==11))&&(a13==1))||!(a12==1))||(a0==1))&&((a11==1)&&((a9==11)&&((!(a8==1)&&((a17==2)&&((!(a14==1)&&(((a5==4)||(a5==5))&&(input==5)))&&(a19==3))))&&(a16==9)))))){ + a19 = 1; + a14 = 0; + a16 = 7; + a21 = 10; + a1 = 12; + a5 = 4; + a9 = 7; + a28 = 1; + a12 = 1; + return -1; + } else if((((a8==1)||((a19==2)&&(((a6==1)||(a8==1))&&!(a7==1))))&&(((!(a20==1)&&((a13==1)&&((a21==12)&&(((a13==1)&&((((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))&&(input==4))&&(a2==1)))&&(a1==12)))))&&(a16==8))&&(a17==2)))){ + if((a16==7)){ + a20 = 1; + a5 = 6; + a16 = 7; + a28 = 0; + a9 = 11; + a21 = 10; + a7 = 1; + a1 = 13; + a19 = 1; + }else{ + a26 = 1; + a21 = 10; + a15 = 0; + a13 = 0; + a9 = 11; + a5 = 4; + a20 = 1; + a16 = 7; + } + return -1; + } else if((((((a19==2)&&(a12==1))&&(a16==7))&&(a21==12))&&(((((a23==1)&&(!(a27==1)&&(!(a8==1)&&(((((((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(input==3))&&!(a20==1))&&(a28==1))&&(a6==1)))))&&(a17==2))&&(a28==1))&&(a1==13)))){ + a9 = 8; + a21 = 10; + a3 = 1; + a5 = 6; + a20 = 1; + a16 = 9; + a26 = 0; + a18 = 0; + a19 = 1; + return -1; + } else if(((((((((a11==1)&&(a17==2))&&(a20==1))&&!(a24==1))||(a7==1))||!(a3==1))&&(a9==7))&&((a19==3)&&((((a28==1)&&((a6==1)&&((((input==3)&&(a5==4))&&(a21==11))&&(a16==10))))&&(a1==12))&&(a13==1))))){ + a21 = 10; + a19 = 1; + a18 = 0; + a16 = 7; + a28 = 1; + a7 = 0; + return -1; + } else if((((!(a0==1)&&((a1==12)&&(((a2==1)&&((a28==1)&&(a9==9)))&&!(a27==1))))&&(a20==1))&&((a17==2)&&((a28==1)&&((a19==4)&&(!(a0==1)&&((((a23==1)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))&&(a21==11))&&(a16==8)))))))){ + a5 = 5; + a16 = 10; + a11 = 1; + a26 = 0; + a19 = 2; + a23 = 1; + a9 = 8; + return 21; + } else if(((((a16==9)&&(!(a11==1)||((a1==14)&&((a13==1)&&((((a13==1)&&(a12==1))||(a27==1))||!(a23==1))))))&&(a20==1))&&((a19==4)&&((a21==10)&&((a11==1)&&(((input==1)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(a17==2))))))){ + a1 = 12; + a24 = 0; + a9 = 7; + a16 = 7; + a5 = 4; + a23 = 1; + a19 = 1; + return -1; + } else if((((a9==11)&&((a17==2)&&(!(a27==1)&&(((a20==1)&&(!(a13==1)||(a6==1)))&&(a1==12)))))&&((a21==12)&&(((!(a4==1)&&((!(a7==1)&&(!(a7==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6))))&&(a2==1)))&&(a19==4))&&(a16==10))))){ + a24 = 0; + a1 = 14; + a21 = 10; + a20 = 0; + a4 = 0; + a16 = 8; + a3 = 1; + a5 = 4; + a19 = 2; + return -1; + } else if((((a17==2)&&((((a16==9)&&((a2==1)&&((a19==2)&&(((a13==1)&&(((a1==13)&&(input==3))&&!(a24==1)))&&!(a18==1)))))&&!(a0==1))&&(a20==1)))&&(((a5==6)&&(((a6==1)&&(a9==7))||(a26==1)))&&(a21==11)))){ + a1 = 12; + a12 = 1; + a7 = 0; + a21 = 10; + a16 = 7; + a11 = 1; + a5 = 4; + a19 = 1; + return -1; + } else if((((a17==2)&&(((a9==11)&&((a21==12)&&((a19==5)&&((((a16==9)&&(((a12==1)||!(a6==1))&&!(a24==1)))||!(a28==1))||(a18==1)))))&&(a20==1)))&&(((((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a23==1))&&!(a26==1))&&(a1==13)))){ + a8 = 0; + a21 = 10; + a14 = 0; + a16 = 7; + a9 = 7; + a19 = 1; + a1 = 12; + a12 = 1; + a5 = 4; + return -1; + } else if(((((a20==1)&&((a13==1)&&((((a17==2)&&((a21==10)&&(((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5)))&&(input==1))))&&(a16==10))&&!(a7==1))))&&!(a7==1))&&(!(a11==1)||(!(a23==1)||(!(a3==1)||((a19==3)&&((a12==1)&&(a1==13)))))))){ + a19 = 1; + a26 = 0; + a9 = 7; + a27 = 0; + a28 = 1; + a16 = 7; + a1 = 12; + a5 = 4; + return -1; + } else if((((!(a27==1)&&((a3==1)&&((((((a28==1)&&((a1==14)&&(input==3)))&&!(a26==1))&&(a16==10))&&(a17==2))&&(a5==5))))&&(a20==1))&&(((a9==8)&&(((a21==11)&&((a13==1)&&!(a4==1)))&&(a13==1)))&&(a19==3)))){ + a21 = 10; + a5 = 4; + a3 = 1; + a7 = 0; + a16 = 7; + a19 = 1; + a23 = 1; + a9 = 7; + a1 = 12; + return -1; + } else if(((((((((input==5)&&(a5==5))&&(a2==1))&&(a2==1))&&(a19==2))&&(a13==1))&&(a17==2))&&((a9==7)&&(((a1==14)&&((a16==10)&&(((!(a24==1)&&((a28==1)&&(a21==12)))&&!(a20==1))||!(a11==1))))||!(a11==1))))){ + a9 = 10; + a21 = 10; + a5 = 4; + a22 = 1; + a27 = 1; + a16 = 7; + a1 = 12; + a19 = 1; + a10 = 1; + a20 = 1; + return 26; + } else if(((!(a20==1)&&((a7==1)||((a16==10)&&((a27==1)||(!(a11==1)||(a12==1))))))&&((a2==1)&&((((((a9==11)&&((((input==1)&&(a1==14))&&(a5==6))&&(a23==1)))&&(a17==2))&&(a19==4))&&(a21==10))&&!(a8==1))))){ + a16 = 7; + a9 = 7; + a5 = 5; + a1 = 13; + a26 = 1; + a21 = 12; + a20 = 1; + a8 = 1; + a7 = 1; + return -1; + } else if((((((a13==1)&&((a21==10)&&((a7==1)||(a23==1))))&&(a1==13))&&!(a8==1))&&((a9==7)&&(((a16==9)&&((a11==1)&&((a17==2)&&((a20==1)&&(((((a5==4)||(a5==5))&&(input==5))&&!(a18==1))&&!(a27==1))))))&&(a19==2))))){ + a9 = 10; + a5 = 4; + a2 = 1; + a16 = 8; + a28 = 1; + a19 = 4; + a1 = 14; + a20 = 0; + a7 = 0; + return 21; + } else if(((!(a28==1)||((a1==13)&&((!(a4==1)&&((a19==1)&&(a28==1)))||!(a3==1))))&&(!(a0==1)&&((a28==1)&&(((!(a20==1)&&(((((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))&&(input==6))&&(a21==10))&&(a16==11)))&&(a17==2))&&!(a27==1)))))){ + a5 = 6; + a20 = 1; + a16 = 7; + a12 = 0; + a10 = 1; + a22 = 0; + a9 = 11; + return -1; + } else if((((a8==1)||(((!(a3==1)||((((a8==1)||((a12==1)&&(a16==11)))||!(a3==1))&&(a20==1)))&&(a17==2))||(a8==1)))&&(((a21==11)&&((a9==9)&&((((input==3)&&(a1==14))&&(a28==1))&&(a5==4))))&&(a19==3)))){ + a21 = 10; + a18 = 0; + a16 = 7; + a9 = 7; + a19 = 1; + a2 = 1; + a1 = 12; + a13 = 1; + return -1; + } else if((((((!(a6==1)||((((a2==1)&&(a1==14))&&!(a14==1))&&(a12==1)))&&!(a18==1))&&(a20==1))&&(a21==12))&&(((((((a16==8)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6))))&&!(a18==1))&&(a9==10))&&(a12==1))&&(a19==2))&&(a17==2)))){ + a1 = 12; + a23 = 1; + a5 = 4; + a21 = 10; + a16 = 7; + a26 = 0; + a9 = 7; + a19 = 1; + a7 = 0; + return -1; + } else if((((((a1==13)&&((a9==10)&&((a21==10)&&(!(a11==1)||(!(a11==1)||(!(a26==1)&&(((a28==1)&&(a20==1))&&!(a27==1))))))))&&(a19==5))&&(a17==2))&&((a16==10)&&((a6==1)&&((a11==1)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6)))))))){ + a1 = 14; + a9 = 11; + a6 = 1; + a8 = 0; + a21 = 12; + a19 = 2; + a5 = 5; + a16 = 9; + a28 = 1; + return 21; + } else if((((a11==1)&&(!(a18==1)&&((a16==9)&&((a20==1)&&((a1==12)&&(((a5==5)||(a5==6))&&(input==6)))))))&&(((((((((a19==5)&&(a28==1))&&(a17==2))||!(a28==1))||!(a3==1))&&(a21==11))||(a24==1))||(a4==1))&&(a9==11)))){ + a6 = 1; + a21 = 10; + a9 = 10; + a23 = 1; + a19 = 2; + a5 = 4; + a16 = 7; + a27 = 0; + a1 = 13; + return 21; + } else if((((((a17==2)&&((((((((a5==6)&&(input==6))&&(a1==13))&&(a12==1))&&(a13==1))&&!(a0==1))&&(a9==10))&&!(a27==1)))&&!(a26==1))&&(a3==1))&&(((a19==3)&&(((a12==1)&&(a21==12))&&(a16==11)))&&(a20==1)))){ + a9 = 7; + a16 = 7; + a5 = 4; + a21 = 10; + a1 = 12; + a19 = 1; + a12 = 1; + a27 = 0; + a13 = 1; + return -1; + } else if((((a23==1)&&((a28==1)&&((((a19==5)&&((input==3)&&(a9==9)))&&(a21==12))&&(a5==6))))&&((!(a12==1)||(!(a12==1)||((a1==13)&&(((a17==2)&&(!(a20==1)&&(!(a11==1)||(a6==1))))&&(a16==10)))))&&(a2==1)))){ + a21 = 10; + a5 = 4; + a1 = 12; + a19 = 2; + a11 = 0; + a0 = 1; + a20 = 1; + a3 = 0; + a16 = 7; + return 26; + } else if(((((a6==1)&&((a19==4)&&(((a17==2)&&(((input==4)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&!(a20==1)))&&!(a27==1))))&&!(a8==1))&&((a3==1)&&(((a18==1)||((a1==14)&&(((a16==9)&&(a11==1))&&(a21==10))))||!(a3==1))))){ + a19 = 5; + a21 = 12; + a18 = 1; + a20 = 1; + a16 = 10; + a10 = 1; + a9 = 7; + a1 = 13; + a5 = 5; + a11 = 0; + return 21; + } else if((((a19==5)&&(((a8==1)||((a17==2)&&(!(a27==1)&&(a6==1))))||!(a11==1)))&&((((((!(a18==1)&&((a16==10)&&((input==6)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))))&&!(a24==1))&&(a6==1))&&!(a20==1))&&(a21==11))&&(a1==13)))){ + if((a27==1)){ + a11 = 0; + a9 = 11; + a21 = 12; + a28 = 0; + a5 = 5; + a8 = 1; + a19 = 3; + }else{ + a27 = 1; + a1 = 14; + a13 = 0; + a16 = 7; + a21 = 10; + a5 = 4; + a20 = 1; + a6 = 0; + a9 = 8; + a19 = 1; + } + return 21; + } else if((((a20==1)&&((a9==11)&&(((((a6==1)&&((((!(a0==1)&&(a12==1))&&(a28==1))||!(a11==1))&&(a2==1)))&&(a17==2))&&(a19==1))&&(a21==10))))&&(!(a26==1)&&(((a1==13)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))&&(a16==10))))){ + a16 = 7; + a13 = 1; + a4 = 0; + a19 = 3; + a1 = 14; + a9 = 10; + a2 = 1; + a5 = 6; + return -1; + } else if((((a9==9)&&((!(a26==1)&&(!(a18==1)&&((a28==1)&&((a23==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&!(a0==1))))))&&(a19==3)))&&(((((a16==7)&&((a1==14)&&((a24==1)||(a6==1))))&&(a17==2))&&!(a20==1))&&(a21==10)))){ + a19 = 1; + a26 = 0; + a2 = 1; + a9 = 7; + a5 = 4; + a20 = 1; + a14 = 0; + a1 = 12; + return -1; + } else if((((((a17==2)&&(((input==1)&&((a5==4)||(a5==5)))&&!(a8==1)))&&(a1==13))&&(a21==10))&&((a9==9)&&(((!(a20==1)&&(!(a18==1)&&(((a27==1)||(!(a0==1)&&((a23==1)||(a8==1))))||(a14==1))))&&(a19==2))&&(a16==8))))){ + if((a1==12)){ + a3 = 1; + a21 = 11; + a24 = 0; + a8 = 0; + a5 = 6; + a1 = 12; + a9 = 10; + }else{ + a24 = 0; + a19 = 1; + a8 = 0; + a7 = 0; + a20 = 1; + a9 = 10; + a5 = 4; + a21 = 11; + } + return -1; + } else if(((((a2==1)&&((!(a28==1)||((a12==1)&&(a12==1)))||(a0==1)))&&!(a20==1))&&((a16==7)&&((((((a9==7)&&((a19==4)&&(((input==4)&&((a5==5)||(a5==6)))&&(a1==14))))&&!(a24==1))&&!(a27==1))&&(a21==10))&&(a17==2))))){ + a26 = 0; + a20 = 1; + a1 = 12; + a5 = 4; + a7 = 0; + a19 = 1; + a14 = 0; + return -1; + } else if((((((a2==1)&&((a28==1)&&(((a21==10)&&(((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11)))&&(input==3)))&&(a20==1))))&&(a11==1))&&(a6==1))&&(((a19==1)&&((a16==8)&&(((a17==2)&&((a12==1)&&(a1==12)))&&(a6==1))))||!(a6==1)))){ + a24 = 0; + a16 = 7; + a6 = 1; + a9 = 7; + a5 = 4; + return -1; + } else if((((((a1==12)&&((a27==1)||((a3==1)||(a8==1))))&&(a16==8))&&(a21==12))&&((((a17==2)&&(!(a14==1)&&((a13==1)&&((a20==1)&&((a19==3)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==5)))))))&&!(a7==1))&&(a6==1)))){ + a8 = 0; + a9 = 9; + a21 = 10; + a16 = 7; + a5 = 5; + a19 = 2; + a11 = 1; + a1 = 13; + a26 = 0; + return -1; + } else if((((a19==4)&&((a17==2)&&((((a21==12)&&((((((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4)))&&(input==4))&&(a1==12)))&&(a16==7))&&!(a0==1))))&&((a23==1)&&((!(a13==1)||((a11==1)&&((a27==1)||((a20==1)&&(a13==1)))))||(a14==1))))){ + a12 = 1; + a21 = 10; + a5 = 4; + a19 = 1; + a9 = 7; + a7 = 0; + return -1; + } else if((((a19==4)&&((a0==1)||((a12==1)&&((a23==1)&&(a23==1)))))&&(!(a0==1)&&((a17==2)&&((a1==14)&&((a21==10)&&(((a2==1)&&((!(a20==1)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==6)))&&(a16==10)))&&(a23==1)))))))){ + a1 = 12; + a10 = 0; + a14 = 1; + a19 = 5; + a25 = 1; + a5 = 6; + a9 = 7; + return -1; + } else if((((a8==1)||((a27==1)||(((a3==1)&&(a17==2))&&(a21==10))))&&(((a28==1)&&(((!(a18==1)&&((a19==5)&&((((((a1==13)&&(a5==5))&&(a9==7))||(((a9==11)&&((a5==6)&&(a1==12)))||(((a1==13)&&(a5==4))&&(a9==7))))&&(input==3))&&!(a20==1))))&&(a16==10))&&(a28==1)))&&(a28==1)))){ + if((a1==13)){ + a1 = 13; + a15 = 0; + a3 = 0; + a16 = 9; + a9 = 7; + a10 = 0; + a21 = 11; + a19 = 2; + a5 = 5; + }else{ + a1 = 13; + a5 = 4; + a0 = 1; + a16 = 11; + a9 = 7; + a8 = 1; + a6 = 0; + a20 = 1; + } + return -1; + } else if((((a6==1)&&((a16==7)&&((a1==14)&&(((((a20==1)&&((input==4)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))))&&!(a14==1))&&!(a27==1))&&(a17==2)))))&&((!(a14==1)&&(((a7==1)||(!(a13==1)||(a12==1)))&&(a21==12)))&&(a19==2)))){ + a21 = 10; + a5 = 4; + a2 = 1; + a1 = 12; + a26 = 0; + a27 = 0; + a19 = 1; + a9 = 7; + return -1; + } else if((((!(a27==1)&&((a9==9)&&((((input==1)&&((a5==5)||(a5==6)))&&(a20==1))&&(a17==2))))&&(a3==1))&&(((a1==13)&&(((a19==2)&&(((((a16==7)&&(a23==1))&&(a21==12))&&(a3==1))||!(a28==1)))&&(a28==1)))&&(a11==1)))){ + a6 = 1; + a21 = 10; + a4 = 0; + a16 = 9; + a19 = 3; + a9 = 7; + a26 = 0; + a5 = 5; + return 22; + } else if(((((a17==2)&&((a2==1)&&(((a13==1)&&(!(a24==1)&&((input==1)&&((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4))))))&&!(a14==1))))&&(a21==12))&&((((a1==12)&&(((a6==1)&&(!(a27==1)&&(a13==1)))&&(a19==4)))&&(a16==8))&&!(a20==1)))){ + a20 = 1; + a19 = 3; + a22 = 0; + a15 = 1; + a25 = 0; + a5 = 6; + a9 = 8; + return 21; + } else if((((!(a3==1)&&((a7==1)&&(!(a23==1)&&((a16==10)&&((a5==6)&&((((a1==14)&&(input==6))&&!(a11==1))&&(a17==2)))))))&&(a26==1))&&(!(a28==1)&&(((((a2==1)&&(a19==2))&&(a21==11))&&(a20==1))&&(a9==8))))){ + a9 = 10; + a5 = 4; + a26 = 1; + a19 = 3; + a16 = 7; + a1 = 12; + a12 = 0; + a25 = 0; + return -1; + } else if((((a9==8)&&(((a16==10)&&((((a20==1)&&((a23==1)&&(a23==1)))||!(a13==1))&&(a19==2)))&&(a11==1)))&&((a12==1)&&(((a6==1)&&((((((a5==5)||(a5==6))&&(input==4))&&(a17==2))&&!(a7==1))&&(a21==10)))&&(a1==12))))){ + a16 = 8; + a8 = 0; + a18 = 0; + a5 = 5; + a19 = 5; + a21 = 12; + a9 = 7; + a2 = 1; + a1 = 13; + return 26; + } else if(((!(a20==1)&&(((a14==1)||((a19==5)&&(((a13==1)&&(((a12==1)&&(a28==1))&&(a16==7)))&&(a17==2))))&&(a1==13)))&&((((a21==10)&&(((input==1)&&((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a5==4)&&(a9==10))))&&(a13==1)))&&!(a7==1))&&(a11==1)))){ + a5 = 5; + a9 = 9; + a19 = 2; + a7 = 0; + a23 = 1; + a20 = 1; + return 25; + } else if(((((a1==12)&&((!(a18==1)&&(((a13==1)&&(((a21==12)&&(input==3))&&(a5==4)))&&(a19==5)))&&(a9==9)))&&(a16==8))&&((a26==1)||(((a17==2)&&((!(a13==1)||((a20==1)&&(a3==1)))&&!(a26==1)))&&!(a4==1))))){ + a21 = 10; + a16 = 7; + a1 = 13; + a13 = 1; + a8 = 0; + a11 = 1; + a5 = 5; + a19 = 2; + return -1; + } else if(((((a17==2)&&(!(a7==1)&&((a19==2)&&((a2==1)||!(a2==1)))))&&(a16==10))&&((a2==1)&&(((a1==14)&&((a28==1)&&(((a20==1)&&((a21==10)&&((input==4)&&((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4))))))&&!(a24==1))))&&(a13==1))))){ + a6 = 1; + a9 = 7; + a5 = 4; + a24 = 0; + a19 = 1; + a1 = 12; + a11 = 1; + a16 = 7; + return -1; + } else if((((!(a26==1)&&((a18==1)||(!(a8==1)&&(!(a20==1)&&(a13==1)))))||!(a11==1))&&(((a21==12)&&((!(a0==1)&&(((a3==1)&&((a17==2)&&((input==3)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))))&&(a1==13)))&&(a19==5)))&&(a16==9)))){ + if((a1==14)){ + a28 = 0; + a16 = 8; + a20 = 1; + a1 = 12; + a23 = 0; + a5 = 6; + a9 = 10; + a19 = 2; + a10 = 0; + a21 = 11; + }else{ + a7 = 1; + a5 = 4; + a1 = 14; + a20 = 1; + a3 = 0; + a21 = 10; + a19 = 1; + a12 = 0; + a16 = 7; + a9 = 10; + } + return 21; + } else if(((((!(a11==1)||((((a20==1)&&(a11==1))&&(a23==1))&&(a16==9)))&&!(a0==1))&&(a9==7))&&(((a1==12)&&((a21==10)&&((a17==2)&&(((a12==1)&&(!(a14==1)&&((input==3)&&((a5==4)||(a5==5)))))&&!(a7==1)))))&&(a19==4)))){ + a5 = 4; + a19 = 1; + a23 = 1; + a8 = 0; + a4 = 0; + a16 = 7; + return -1; + } else if((((a1==13)&&((((a23==1)&&((a19==2)&&((input==4)&&((a5==4)||(a5==5)))))&&!(a27==1))&&(a11==1)))&&((a13==1)&&(((a20==1)&&((a21==10)&&(!(a7==1)&&((((a16==11)&&(a28==1))&&(a17==2))||(a7==1)))))&&(a9==11))))){ + a1 = 12; + a9 = 7; + a16 = 8; + a5 = 5; + a19 = 4; + a4 = 0; + a28 = 1; + a0 = 0; + return 25; + } else if((((a16==9)&&((a12==1)&&((a13==1)&&((((((((a19==4)&&(((a1==14)&&(a5==6))&&(a9==11)))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==5)))&&(input==3))&&!(a7==1))&&(a21==12))&&(a20==1))&&(a17==2)))))&&(!(a11==1)||(((a23==1)&&(a3==1))||(a24==1))))){ + a28 = 1; + a19 = 1; + a1 = 12; + a18 = 0; + a5 = 4; + a7 = 0; + a16 = 7; + a9 = 7; + a21 = 10; + return -1; + } else if(((!(a20==1)&&((a16==9)&&((((a3==1)&&((a17==2)&&(!(a7==1)&&(!(a14==1)&&((input==1)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))))))&&(a19==3))&&!(a24==1))))&&((a21==11)&&((a1==14)&&((a3==1)&&((a2==1)&&(a12==1))))))){ + a12 = 0; + a19 = 4; + a5 = 6; + a9 = 8; + a20 = 1; + a27 = 1; + a16 = 11; + a21 = 12; + return 21; + } else if((((a24==1)||((((a19==3)&&((a2==1)&&!(a8==1)))&&!(a20==1))&&(a16==11)))&&(!(a26==1)&&(((a11==1)&&((((a17==2)&&((input==5)&&(((((a5==5)&&(a1==12))&&(a9==11))||(((a1==12)&&(a5==6))&&(a9==11)))||(((a5==4)&&(a1==13))&&(a9==7)))))&&(a23==1))&&(a21==10)))&&!(a8==1))))){ + a28 = 0; + a3 = 0; + a1 = 12; + a19 = 2; + a5 = 6; + a20 = 1; + a4 = 1; + a9 = 10; + a16 = 7; + return -1; + } else if(((((!(a2==1)||((!(a3==1)||(((a2==1)||!(a6==1))&&(a5==4)))&&!(a20==1)))&&!(a7==1))&&(a1==12))&&((((((((input==4)&&(a17==2))&&(a11==1))&&!(a24==1))&&(a16==10))&&(a19==5))&&(a21==11))&&(a9==7)))){ + a9 = 10; + a25 = 1; + a29 = 1; + a5 = 5; + a26 = 1; + a1 = 14; + a21 = 12; + a19 = 3; + return -1; + } else if((((a16==8)&&((a21==11)&&((a5==4)&&((a1==13)&&((((((((a17==2)&&(input==1))&&(a26==1))&&(a4==1))&&(a9==11))&&(a24==1))&&(a20==1))&&(a19==3))))))&&((a0==1)&&(((a14==1)&&(a23==1))&&(a18==1))))){ + a5 = 5; + a25 = 0; + a27 = 1; + a16 = 7; + a1 = 12; + a21 = 10; + a19 = 2; + a3 = 0; + a9 = 7; + return -1; + } else if((((((a21==12)&&((a18==1)||((a6==1)&&(a1==12))))||(a14==1))&&(a28==1))&&((a28==1)&&(((a17==2)&&(!(a27==1)&&((((((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))&&(input==6))&&!(a27==1))&&!(a20==1))&&(a16==7))))&&(a19==3))))){ + a16 = 9; + a14 = 0; + a20 = 1; + a5 = 5; + a9 = 11; + a13 = 1; + a28 = 1; + a19 = 1; + a1 = 14; + return 22; + } else if(((!(a14==1)&&(((((a5==6)&&((a23==1)&&!(a20==1)))&&(a13==1))||!(a13==1))&&!(a4==1)))&&((a11==1)&&(((a11==1)&&((((((input==1)&&(a17==2))&&(a9==8))&&(a1==13))&&(a19==4))&&(a21==12)))&&(a16==9))))){ + a1 = 12; + a20 = 1; + a21 = 10; + a16 = 7; + a10 = 1; + a19 = 2; + a5 = 4; + a9 = 7; + a27 = 1; + a22 = 1; + return 22; + } else if(((!(a0==1)&&(((a28==1)&&((((((a12==1)&&(a16==9))&&(a9==10))&&(a2==1))&&(a19==2))&&(a5==5)))&&(a3==1)))&&(!(a24==1)&&((a21==10)&&(((a17==2)&&(((a20==1)&&(input==4))&&(a1==13)))&&(a11==1)))))){ + a21 = 11; + a27 = 0; + a1 = 12; + a8 = 0; + a16 = 8; + a9 = 11; + a7 = 0; + a19 = 4; + return 25; + } else if((((a16==11)&&((a21==12)&&(((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a5==4)&&(a9==9)))&&(input==3))))&&(!(a7==1)&&((a28==1)&&((a14==1)||((((a3==1)&&((a19==1)&&(!(a0==1)&&((a17==2)&&((a23==1)&&(a1==13))))))||(a0==1))&&(a20==1))))))){ + a9 = 7; + a21 = 10; + a26 = 0; + a5 = 4; + a14 = 0; + a18 = 0; + a1 = 12; + a16 = 7; + return -1; + } else if((((((!(a20==1)&&((a23==1)||!(a2==1)))&&!(a26==1))||(a24==1))&&(a1==14))&&(((a9==11)&&((a21==10)&&((a23==1)&&((a17==2)&&(!(a14==1)&&((a28==1)&&(((input==1)&&(a16==8))&&(a19==1))))))))&&(a5==4)))){ + if((a16==7)){ + a7 = 0; + a21 = 11; + a19 = 4; + a5 = 5; + a9 = 8; + a4 = 0; + a1 = 12; + }else{ + a1 = 13; + a16 = 7; + a9 = 10; + a27 = 0; + a20 = 1; + a19 = 2; + a7 = 0; + a2 = 1; + } + return 21; + } else if(((((((a16==9)&&((((a6==1)&&((a6==1)&&(((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a19==4))))&&(a20==1))&&(a17==2)))&&(a13==1))&&!(a27==1))&&(a13==1))&&((((a21==10)&&((a9==7)&&(a28==1)))&&(a1==14))&&(a13==1)))){ + a16 = 8; + a9 = 10; + a21 = 11; + a4 = 0; + a19 = 1; + a5 = 4; + a28 = 1; + a1 = 13; + return -1; + } else if((((a21==10)&&(!(a23==1)||((!(a24==1)&&(((a17==2)&&(a13==1))||(a24==1)))||(a7==1))))&&((a23==1)&&((a19==1)&&((((a16==11)&&((input==5)&&(((a9==7)&&((a5==5)&&(a1==14)))||(((a9==11)&&((a1==13)&&(a5==6)))||((a9==7)&&((a1==14)&&(a5==4)))))))&&(a28==1))&&!(a20==1)))))){ + a1 = 12; + a23 = 0; + a3 = 0; + a20 = 1; + a29 = 0; + a5 = 6; + a9 = 8; + a16 = 7; + return -1; + } else if((((a21==12)&&((((a19==4)&&((!(a11==1)||((a9==10)&&(a6==1)))||(a7==1)))||!(a12==1))||!(a11==1)))&&((((a17==2)&&(((!(a8==1)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6))))&&!(a26==1))&&(a16==9)))&&(a1==12))&&(a20==1)))){ + a9 = 7; + a11 = 1; + a13 = 1; + a5 = 4; + a16 = 7; + a19 = 1; + a21 = 10; + a2 = 1; + return -1; + } else if((((((a28==1)&&(!(a24==1)&&((((((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8)))&&(input==3))&&(a21==10))&&(a16==7))&&(a19==5))))&&(a20==1))&&(a1==14))&&((a17==2)&&(!(a27==1)&&((a24==1)||(((a23==1)||(a0==1))&&(a23==1))))))){ + a23 = 1; + a9 = 7; + a26 = 0; + a7 = 0; + a1 = 12; + a5 = 4; + a19 = 1; + return -1; + } else if((((!(a24==1)&&((!(a28==1)||((a5==6)&&((a11==1)&&(a16==11))))||!(a28==1)))&&(a17==2))&&((a20==1)&&((a1==13)&&(((((((a21==11)&&(input==1))&&!(a27==1))&&(a23==1))&&(a9==10))&&!(a7==1))&&(a19==3)))))){ + a21 = 12; + a23 = 1; + a1 = 14; + a9 = 11; + a26 = 0; + a19 = 1; + a11 = 1; + return 25; + } else if((((a17==2)&&(((((a2==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&!(a20==1)))&&(a6==1))&&(a1==12))&&(a9==11)))&&((((((((a23==1)||(a27==1))&&(a19==5))&&(a21==11))&&!(a8==1))&&(a16==7))&&(a3==1))&&(a13==1)))){ + a2 = 1; + a19 = 1; + a26 = 0; + a9 = 7; + a20 = 1; + a0 = 0; + a21 = 10; + a5 = 4; + return -1; + } else if(((!(a8==1)&&(!(a0==1)&&(((!(a8==1)&&((a1==12)&&(((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))&&(input==6))))&&(a17==2))&&(a3==1))))&&(((((((a13==1)&&(a11==1))&&(a21==10))&&(a19==3))&&(a16==8))&&(a20==1))&&(a13==1)))){ + a11 = 1; + a4 = 0; + a16 = 7; + a19 = 1; + a8 = 0; + a5 = 4; + a9 = 7; + return -1; + } else if(((((a21==11)&&((a8==1)||(!(a2==1)||((a11==1)||!(a28==1)))))&&!(a20==1))&&((a16==7)&&((a19==1)&&((a9==9)&&(((((a17==2)&&(((input==6)&&((a5==4)||(a5==5)))&&(a13==1)))&&(a1==13))&&!(a7==1))&&!(a4==1))))))){ + if((a25==1)){ + a16 = 8; + a9 = 8; + a3 = 1; + a19 = 4; + a1 = 12; + a8 = 0; + a12 = 1; + a5 = 5; + }else{ + a20 = 1; + a21 = 10; + a9 = 10; + a19 = 2; + a27 = 0; + a6 = 1; + a4 = 0; + a5 = 4; + } + return 21; + } else if((((a27==1)||(((((a9==11)&&((((a16==9)&&(a11==1))&&(a17==2))&&(a20==1)))&&!(a24==1))&&!(a24==1))||!(a11==1)))&&(((a19==4)&&((((a21==10)&&(((a5==5)||(a5==6))&&(input==5)))&&!(a7==1))&&(a1==13)))&&!(a14==1)))){ + if((a4==1)){ + a1 = 14; + a7 = 0; + a19 = 2; + a16 = 8; + a3 = 1; + a5 = 6; + a28 = 1; + a20 = 0; + }else{ + a9 = 8; + a3 = 1; + a2 = 1; + a5 = 6; + a19 = 1; + a28 = 1; + a1 = 12; + } + return 25; + } else if((((a17==2)&&((a20==1)&&(((a1==12)&&(((!(a18==1)&&((a11==1)&&(a2==1)))&&(a19==3))&&!(a8==1)))||(a7==1))))&&((a16==9)&&(((a12==1)&&((a21==11)&&(((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5)))&&(input==6))))&&(a13==1))))){ + a11 = 1; + a19 = 2; + a5 = 6; + a1 = 13; + a9 = 9; + a24 = 0; + a16 = 10; + return 21; + } else if((((!(a14==1)&&(!(a20==1)&&(!(a0==1)&&((input==6)&&((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4)))))))&&(a17==2))&&((a1==14)&&((((a16==7)&&((a21==10)&&(((a19==3)&&((a13==1)&&(a2==1)))&&!(a27==1))))&&(a13==1))&&(a3==1))))){ + a20 = 1; + a9 = 7; + a1 = 12; + a5 = 4; + a6 = 1; + a7 = 0; + a26 = 0; + a19 = 1; + return -1; + } else if((((a7==1)||((a12==1)&&(a9==10)))&&(((a17==2)&&(((a28==1)&&((a21==10)&&(((a16==11)&&((!(a18==1)&&((a20==1)&&(((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a19==3))))&&(a1==13)))&&(a11==1))))&&!(a4==1)))&&(a13==1)))){ + a6 = 1; + a19 = 1; + a9 = 7; + a7 = 0; + a4 = 0; + a5 = 4; + a1 = 12; + a16 = 7; + return -1; + } else if((((a16==9)&&((a19==3)&&(((a8==1)||((((a13==1)||!(a11==1))||(a26==1))||!(a2==1)))&&(a17==2))))&&((a5==6)&&((((a1==14)&&((a13==1)&&(!(a20==1)&&((input==1)&&(a9==9)))))&&(a21==12))&&!(a4==1))))){ + if((a9==9)){ + a27 = 1; + a25 = 0; + a21 = 11; + a16 = 7; + a19 = 1; + a12 = 0; + a9 = 10; + a5 = 5; + a20 = 1; + }else{ + a19 = 1; + a29 = 0; + a15 = 0; + a8 = 1; + a16 = 7; + a9 = 7; + a21 = 10; + a1 = 13; + a5 = 4; + a20 = 1; + } + return 21; + } else if(((((a5==4)&&((input==1)&&(a21==12)))&&(a17==2))&&((a20==1)&&((a9==11)&&(!(a18==1)&&(!(a28==1)||((!(a2==1)||((a18==1)||((a1==14)&&(((a11==1)&&((a2==1)&&(a16==8)))&&(a19==2)))))||!(a13==1)))))))){ + a1 = 13; + a26 = 0; + a21 = 10; + a9 = 9; + a3 = 1; + a16 = 7; + a14 = 0; + return 23; + } else if(((((a2==1)&&(((((a6==1)&&(a20==1))&&(a2==1))&&(a17==2))&&(a5==4)))||(a0==1))&&(((a6==1)&&(((a21==12)&&((((a16==11)&&((input==5)&&(a19==1)))&&(a1==12))&&(a23==1)))&&(a9==10)))&&(a6==1)))){ + a16 = 7; + a14 = 0; + a21 = 10; + a9 = 7; + a28 = 1; + return -1; + } else if(((((((((a19==1)&&(!(a24==1)&&((a12==1)&&(a13==1))))&&(a21==11))&&(a13==1))&&(a9==9))&&(a16==9))&&(a17==2))&&((!(a24==1)&&((!(a14==1)&&((a1==12)&&((input==4)&&(a5==5))))&&(a28==1)))&&!(a20==1)))){ + if((a0==1)){ + a21 = 10; + a1 = 14; + a0 = 1; + a20 = 1; + a9 = 11; + a5 = 6; + a29 = 1; + a16 = 7; + }else{ + a5 = 4; + a12 = 0; + a19 = 2; + a18 = 1; + a9 = 7; + a20 = 1; + a23 = 0; + } + return 23; + } else if((((!(a7==1)&&((((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))&&(input==5))&&(a1==12))&&(a20==1)))&&(a2==1))&&(!(a18==1)&&(((a17==2)&&((((!(a23==1)||((a11==1)&&(a21==10)))||!(a2==1))||(a26==1))&&(a16==9)))&&(a19==1))))){ + a5 = 4; + a21 = 12; + a9 = 9; + a7 = 0; + a19 = 3; + a24 = 0; + a11 = 1; + return 21; + } else if(((!(a8==1)&&(((a11==1)||(a18==1))||(a7==1)))&&((a12==1)&&((a2==1)&&((a16==8)&&(((a20==1)&&(((((a21==10)&&((a19==5)&&((a9==11)&&((a1==14)&&(a5==6)))))||(((a19==1)&&(((a1==12)&&(a5==4))&&(a9==7)))&&(a21==11)))&&(input==5))&&(a13==1)))&&(a17==2))))))){ + a13 = 1; + a1 = 14; + a19 = 2; + a5 = 5; + a27 = 0; + a21 = 10; + a9 = 8; + a0 = 0; + a16 = 10; + return 23; + } else if(((((((a5==6)&&(input==3))&&(a19==1))&&!(a26==1))&&!(a20==1))&&(((a1==13)&&((a16==10)&&(!(a2==1)||(((a12==1)&&((!(a24==1)&&(((a23==1)&&(a6==1))&&(a17==2)))&&(a9==11)))||!(a3==1)))))&&(a21==11)))){ + if((a19==2)){ + a20 = 1; + a0 = 1; + a9 = 7; + a5 = 4; + a22 = 1; + a1 = 12; + a16 = 7; + a21 = 10; + a15 = 1; + }else{ + a12 = 0; + a21 = 10; + a16 = 7; + a9 = 8; + a1 = 14; + a29 = 0; + a10 = 1; + a20 = 1; + } + return -1; + } else if((((a17==2)&&((a9==7)&&(((a21==11)&&((a28==1)&&(((((a6==1)&&(((input==3)&&((a5==5)||(a5==6)))&&(a1==14)))&&!(a20==1))&&(a19==4))&&(a12==1))))&&(a23==1))))&&((((a13==1)||!(a12==1))||(a8==1))&&(a16==10)))){ + if((a2==1)){ + a20 = 1; + a7 = 1; + a21 = 10; + a1 = 12; + a25 = 1; + a24 = 1; + a5 = 5; + a16 = 11; + a9 = 11; + a19 = 2; + }else{ + a24 = 1; + a9 = 8; + a3 = 0; + a20 = 1; + a21 = 10; + a1 = 12; + a16 = 7; + a19 = 2; + a5 = 5; + a7 = 1; + } + return 25; + } else if((((a21==11)&&(!(a27==1)&&(((!(a7==1)&&((((a23==1)&&((a6==1)&&((input==3)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9))))))&&!(a0==1))&&!(a26==1)))&&!(a20==1))&&(a17==2))))&&((a16==7)&&((a19==4)&&((a1==14)&&(a12==1)))))){ + a19 = 1; + a12 = 1; + a7 = 0; + a1 = 12; + a9 = 7; + a20 = 1; + a5 = 4; + a21 = 10; + a3 = 1; + return -1; + } else if((((a21==10)&&((((((((a16==8)&&(input==6))&&(a17==2))&&(a23==1))&&(a13==1))&&(a5==4))&&(a9==7))&&(a11==1)))&&(((a13==1)&&(!(a0==1)&&((a1==13)&&((a19==3)&&((a20==1)&&(a28==1))))))&&(a13==1)))){ + a9 = 10; + a5 = 6; + a14 = 0; + a19 = 4; + a16 = 9; + a28 = 1; + a18 = 0; + a1 = 14; + a21 = 12; + return 25; + } else if((((a9==11)&&(((a17==2)&&((a5==6)&&((((a12==1)&&(((a21==10)&&((a20==1)&&(input==1)))&&!(a8==1)))&&(a11==1))&&(a1==14))))&&(a19==4)))&&((!(a2==1)||((!(a24==1)&&(a23==1))&&(a6==1)))&&(a16==7)))){ + a21 = 12; + a2 = 1; + a9 = 7; + a5 = 4; + a24 = 0; + a28 = 1; + a19 = 1; + return 21; + } else if((((a21==10)&&((((a19==2)&&((((a4==1)||((a12==1)&&((a23==1)&&(a3==1))))&&(a9==10))&&!(a20==1)))&&!(a4==1))&&!(a24==1)))&&((!(a18==1)&&((a17==2)&&((a16==7)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6))))))&&(a1==14)))){ + a20 = 1; + a19 = 1; + a27 = 0; + a1 = 12; + a18 = 0; + a9 = 7; + a13 = 1; + a5 = 4; + return -1; + } else if(((((a3==1)&&(a11==1))&&(a16==10))&&((a11==1)&&((a13==1)&&((a1==13)&&(((((a21==11)&&((((((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))&&(input==4))&&!(a20==1))&&!(a24==1))&&(a19==3)))&&(a2==1))&&(a17==2))&&(a11==1))))))){ + if((a23==1)){ + a19 = 2; + a9 = 11; + a1 = 14; + a21 = 10; + a16 = 7; + a8 = 1; + a5 = 4; + a26 = 1; + a25 = 1; + }else{ + a1 = 12; + a21 = 10; + a19 = 2; + a9 = 10; + a16 = 7; + a3 = 0; + a20 = 1; + a27 = 1; + a0 = 1; + a5 = 5; + } + return -1; + } else if((((a6==1)&&((((a21==10)&&(((((a19==1)&&(input==6))&&!(a0==1))&&(a11==1))&&(a16==8)))&&(a9==9))&&(a1==12)))&&((a17==2)&&(((!(a20==1)&&((a5==5)&&((a13==1)&&!(a7==1))))&&(a23==1))||(a18==1))))){ + a6 = 1; + a8 = 0; + a1 = 13; + a19 = 2; + a9 = 8; + a5 = 6; + a23 = 1; + return 25; + } else if((((a2==1)&&((((a3==1)||!(a6==1))&&(a28==1))&&(a1==14)))&&((a9==8)&&(((a21==12)&&((!(a20==1)&&((a2==1)&&(((a5==6)&&(((a17==2)&&(input==4))&&(a16==7)))&&(a23==1))))&&!(a7==1)))&&(a19==5))))){ + a5 = 4; + a21 = 10; + a28 = 1; + a9 = 7; + a2 = 1; + a7 = 0; + a1 = 12; + a19 = 1; + a20 = 1; + return -1; + } else if((((a13==1)&&((!(a20==1)&&(((a16==7)&&(((input==5)&&(a5==4))&&(a21==11)))&&(a1==12)))&&(a3==1)))&&((!(a24==1)&&(((a2==1)&&(((!(a8==1)&&(a12==1))&&(a19==2))&&(a9==7)))&&(a17==2)))&&(a6==1)))){ + a19 = 1; + a20 = 1; + a0 = 0; + a6 = 1; + a21 = 10; + a2 = 1; + return -1; + } else if((((a1==14)&&((((a13==1)&&(a2==1))&&(a28==1))&&!(a20==1)))&&((a21==11)&&(((((a16==10)&&(!(a24==1)&&((a17==2)&&((a2==1)&&(((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11)))&&(input==5))))))&&(a23==1))&&(a19==1))&&(a23==1))))){ + if((a6==1)){ + a21 = 10; + a9 = 7; + a10 = 0; + a1 = 13; + a19 = 2; + a16 = 7; + a5 = 4; + a26 = 1; + a27 = 1; + a20 = 1; + }else{ + a5 = 6; + a9 = 8; + a19 = 2; + a16 = 11; + a12 = 0; + a21 = 12; + a15 = 1; + a20 = 1; + a4 = 1; + } + return -1; + } else if(((((a1==13)&&(((a19==2)&&((a3==1)&&((a12==1)&&((((a6==1)&&(((a5==5)||(a5==6))&&(input==3)))&&(a23==1))&&(a16==10)))))&&(a23==1)))&&(a21==11))&&((a9==9)&&((a23==1)&&((a20==1)&&((a17==2)&&(a28==1))))))){ + a1 = 12; + a21 = 10; + a9 = 7; + a24 = 0; + a19 = 1; + a5 = 4; + a2 = 1; + a16 = 7; + a28 = 1; + return -1; + } else if(((!(a8==1)&&((!(a27==1)&&(((a5==4)||(a5==5))&&(input==4)))&&(a1==14)))&&((a13==1)&&(((a2==1)&&(((!(a20==1)&&(((a17==2)&&(((a13==1)&&(a16==9))&&(a21==10)))&&(a9==8)))&&(a19==2))||!(a28==1)))||!(a3==1))))){ + a16 = 7; + a9 = 11; + a20 = 1; + a21 = 11; + a5 = 4; + a15 = 0; + a19 = 5; + a13 = 0; + a1 = 12; + return -1; + } else if((((!(a24==1)&&((a16==7)&&((((a17==2)&&(a12==1))&&(a1==14))&&(a21==12))))&&!(a18==1))&&((a12==1)&&(!(a8==1)&&(((a3==1)&&((a19==4)&&(((((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6))))&&(input==4))&&!(a20==1))))&&(a6==1)))))){ + a19 = 1; + a20 = 1; + a12 = 1; + a5 = 4; + a21 = 10; + a3 = 1; + a1 = 12; + a9 = 7; + a11 = 1; + return -1; + } else if((((a17==2)&&((!(a13==1)&&((((((((a1==12)&&(a28==1))&&!(a23==1))&&(a16==10))&&!(a12==1))&&!(a11==1))&&(a19==2))&&(a21==12)))&&(a26==1)))&&(!(a23==1)&&((a20==1)&&((a9==9)&&((input==6)&&((a5==5)||(a5==6)))))))){ + a19 = 1; + a15 = 0; + a5 = 6; + a18 = 1; + a16 = 7; + a24 = 1; + a21 = 10; + a9 = 10; + return -1; + } else if((((a16==10)&&((a20==1)&&((a1==14)&&(((input==1)&&(a17==2))&&!(a24==1)))))&&((a9==11)&&((((((a27==1)||((a19==2)&&(((a11==1)&&!(a18==1))&&!(a4==1))))&&(a3==1))||!(a11==1))&&(a5==5))&&(a21==11))))){ + a23 = 1; + a9 = 9; + a21 = 10; + a18 = 0; + a16 = 7; + a1 = 13; + a11 = 1; + return 25; + } else if(((!(a8==1)&&((a23==1)&&(((((a9==7)&&((a5==5)&&(a1==12)))&&(a19==5))||((((a9==11)&&((a1==14)&&(a5==6)))&&(a19==4))||((a19==5)&&((a9==7)&&((a5==4)&&(a1==12))))))&&(input==4))))&&((a26==1)||(((a17==2)&&((!(a7==1)&&(((a20==1)&&((a12==1)&&(a16==7)))||!(a13==1)))&&(a21==12)))||(a8==1))))){ + a9 = 7; + a5 = 4; + a1 = 12; + a27 = 0; + a19 = 1; + a14 = 0; + a21 = 10; + a28 = 1; + return -1; + } else if((((a6==1)&&((a17==2)&&((((a16==11)&&(input==5))&&!(a0==1))&&(a20==1))))&&((a19==1)&&((a21==11)&&((a5==4)&&(!(a26==1)&&((a9==7)&&(!(a11==1)||((a4==1)||(((a1==13)&&(a28==1))||(a24==1))))))))))){ + a8 = 0; + a4 = 0; + a5 = 6; + a19 = 5; + a2 = 1; + a9 = 9; + return 25; + } else if((((a9==10)&&(((!(a27==1)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a6==1))&&(a16==9)))&&(a17==2))&&(a21==10)))&&(!(a12==1)||((a1==12)&&((a8==1)||(((((a18==1)||(a6==1))||!(a12==1))&&(a19==3))&&(a20==1))))))){ + a23 = 1; + a19 = 2; + a1 = 14; + a5 = 5; + a26 = 0; + a0 = 0; + a9 = 7; + a16 = 10; + return 21; + } else if((((((a16==8)&&((input==1)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))))&&(a17==2))&&(a19==2))&&((!(a12==1)||(((((a1==12)&&(!(a24==1)&&((!(a3==1)||(a28==1))||!(a12==1))))&&(a21==10))&&(a2==1))||!(a13==1)))&&(a20==1)))){ + a5 = 4; + a7 = 0; + a14 = 0; + a2 = 1; + a16 = 7; + a19 = 1; + a9 = 7; + return -1; + } else if((((((a2==1)&&((a1==12)&&((a17==2)&&(a11==1))))&&(a21==10))&&!(a4==1))&&(((a20==1)&&((a28==1)&&(!(a7==1)&&((a19==4)&&((!(a27==1)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==1)))&&(a12==1))))))&&(a16==7)))){ + a13 = 1; + a1 = 14; + a21 = 11; + a9 = 9; + a26 = 0; + a19 = 3; + a5 = 5; + a11 = 1; + return 22; + } else if(((((a19==4)&&((((!(a4==1)&&((input==5)&&(a20==1)))&&!(a14==1))&&!(a27==1))&&(a21==11)))&&(a11==1))&&((a17==2)&&((((((a9==8)&&((a16==11)&&(a12==1)))&&!(a27==1))&&(a5==4))||!(a11==1))&&(a1==14))))){ + a9 = 11; + a13 = 1; + a21 = 12; + a28 = 1; + a19 = 2; + a6 = 1; + return 25; + } else if(((((((((!(a3==1)||(a6==1))&&(a28==1))&&!(a8==1))&&(a23==1))&&(a5==6))&&!(a20==1))&&(a21==11))&&(((a17==2)&&((a19==2)&&((a9==11)&&((a11==1)&&((a6==1)&&((input==6)&&(a1==14)))))))&&(a16==7)))){ + a14 = 0; + a16 = 9; + a5 = 5; + a20 = 1; + a27 = 0; + a18 = 0; + a19 = 5; + return 21; + } else if((((a17==2)&&((a1==14)&&(((a16==7)&&(((a2==1)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&!(a4==1))&&!(a14==1)))&&(a20==1)))&&(a21==11))))&&(((a13==1)&&((((a2==1)&&!(a7==1))||(a24==1))&&(a19==4)))&&(a9==10)))){ + if((a14==1)){ + a9 = 9; + a5 = 4; + a23 = 1; + a26 = 0; + a13 = 1; + a19 = 2; + a21 = 10; + a20 = 0; + a16 = 8; + a1 = 12; + }else{ + a26 = 0; + a9 = 11; + a5 = 4; + a27 = 0; + a19 = 5; + a24 = 0; + a1 = 12; + a16 = 8; + } + return 22; + } else if(((!(a23==1)||(((a21==12)&&((a23==1)&&(a16==8)))&&(a17==2)))&&(!(a24==1)&&((a19==4)&&((a1==14)&&((a3==1)&&((a13==1)&&(!(a20==1)&&(((((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a12==1))&&(a9==8))&&(a3==1)))))))))){ + a9 = 11; + a12 = 0; + a19 = 1; + a1 = 12; + a5 = 5; + a16 = 7; + a23 = 0; + a20 = 1; + a4 = 1; + a21 = 10; + return -1; + } else if(((((!(a20==1)&&(((a16==8)&&((((((((input==1)&&((a5==4)||(a5==5)))&&(a17==2))&&(a21==11))&&!(a24==1))&&!(a18==1))&&(a1==12))&&(a28==1)))&&(a3==1)))&&!(a8==1))&&(a9==9))&&((a19==1)&&(!(a24==1)&&(a12==1))))){ + a21 = 10; + a8 = 0; + a16 = 7; + a20 = 1; + a19 = 4; + a9 = 7; + a5 = 6; + a12 = 1; + a13 = 1; + a1 = 13; + return 21; + } else if((((a19==3)&&(((((a16==7)&&(((!(a20==1)&&(input==3))&&!(a27==1))&&!(a24==1)))&&(a21==12))&&(a9==8))&&!(a27==1)))&&((!(a2==1)||(((a17==2)&&(((a23==1)||(a18==1))||!(a3==1)))&&(a1==12)))&&(a5==6)))){ + a20 = 1; + a5 = 4; + a9 = 7; + a28 = 1; + a19 = 1; + a21 = 10; + a27 = 0; + a24 = 0; + return -1; + } else if(((!(a8==1)&&(((a17==2)&&((a20==1)&&(((a16==8)&&((a21==10)&&(a2==1)))||!(a23==1))))&&(a19==5)))&&(((a5==5)&&((a1==14)&&(!(a0==1)&&(!(a8==1)&&((a2==1)&&((input==4)&&(a9==7)))))))&&!(a24==1)))){ + a1 = 12; + a0 = 0; + a24 = 0; + a19 = 1; + a2 = 1; + a5 = 4; + a16 = 7; + return -1; + } else if((((a21==10)&&((a19==2)&&((a9==9)&&((!(a14==1)&&(((a5==4)||(a5==5))&&(input==4)))&&(a13==1)))))&&((!(a3==1)||((a16==8)&&(((((a6==1)&&((a11==1)&&!(a20==1)))||!(a12==1))&&(a11==1))&&(a17==2))))&&(a1==13)))){ + a6 = 1; + a9 = 11; + a5 = 5; + a20 = 1; + a23 = 1; + a13 = 1; + a19 = 1; + a1 = 14; + a21 = 11; + return -1; + } else if((((a16==10)&&((a20==1)&&(((a1==13)&&((a21==10)&&(!(a7==1)&&(((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==3))&&!(a14==1)))))&&!(a7==1))))&&(((a11==1)&&(((a4==1)||((a2==1)&&!(a27==1)))&&(a17==2)))&&(a19==3)))){ + a27 = 0; + a5 = 4; + a16 = 7; + a26 = 0; + a9 = 7; + a19 = 1; + a12 = 1; + a1 = 12; + return -1; + } else if(((((!(a18==1)&&(((((((input==4)&&((((a1==13)&&(a5==6))&&(a9==11))||(((a5==4)&&(a1==14))&&(a9==7))))&&(a16==7))&&!(a26==1))&&(a17==2))&&!(a27==1))&&(a20==1)))&&(a19==3))&&!(a14==1))&&(!(a14==1)&&(!(a11==1)||((a11==1)&&(a21==10)))))){ + a5 = 4; + a1 = 12; + a14 = 0; + a19 = 1; + a28 = 1; + a9 = 7; + a6 = 1; + return -1; + } else if((((a5==4)&&(((((a21==11)&&((a13==1)&&(((input==6)&&(a1==13))&&(a12==1))))&&!(a8==1))&&(a16==8))&&(a19==2)))&&((a17==2)&&(((a9==7)&&(!(a23==1)||(((a12==1)&&(a28==1))||(a27==1))))&&!(a20==1))))){ + a16 = 11; + a0 = 0; + a9 = 8; + a12 = 1; + a20 = 1; + a5 = 5; + a1 = 12; + a27 = 0; + a19 = 5; + return 23; + } else if((((a21==11)&&((a8==1)||(((((a16==11)&&(a13==1))&&(a1==13))||(a24==1))&&!(a14==1))))&&((a20==1)&&(((a2==1)&&((((((a17==2)&&(input==4))&&(a19==2))&&(a5==5))&&!(a14==1))&&!(a24==1)))&&(a9==9))))){ + a6 = 1; + a1 = 12; + a19 = 1; + a18 = 0; + a21 = 10; + a5 = 4; + a16 = 7; + a9 = 7; + a14 = 0; + return -1; + } else if((((a19==3)&&(((!(a11==1)||((((a6==1)&&(a16==11))||!(a28==1))&&(a17==2)))||!(a23==1))&&(a2==1)))&&(!(a14==1)&&(((((a9==10)&&(((input==6)&&((a5==4)||(a5==5)))&&(a21==12)))&&(a20==1))&&(a1==13))&&(a11==1))))){ + a1 = 12; + a19 = 1; + a21 = 10; + a28 = 1; + a9 = 7; + a14 = 0; + a16 = 7; + a23 = 1; + a5 = 4; + return -1; + } else if((((a23==1)&&((((a16==7)&&(((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a11==1)))&&(a20==1))&&(a2==1)))&&(((((a21==11)&&(((((a28==1)&&(a1==14))&&(a17==2))&&(a9==9))&&(a19==1)))&&(a23==1))||!(a23==1))||(a24==1)))){ + a24 = 0; + a4 = 0; + a1 = 12; + a9 = 7; + a27 = 0; + a21 = 10; + a5 = 4; + return -1; + } else if(((((a12==1)&&((a19==4)&&((a1==12)&&(((input==4)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(a3==1)))))&&(a11==1))&&(!(a3==1)||(!(a4==1)&&(!(a2==1)||((a21==12)&&((!(a20==1)&&((a17==2)&&(a23==1)))&&(a16==10)))))))){ + a5 = 4; + a14 = 1; + a20 = 1; + a9 = 10; + a16 = 7; + a19 = 1; + a3 = 0; + a24 = 1; + a21 = 10; + return -1; + } else if((((a1==12)&&((((!(a26==1)&&((input==5)&&((a5==4)||(a5==5))))&&(a23==1))&&(a17==2))&&!(a18==1)))&&((a21==12)&&((a16==10)&&((((a20==1)&&((a6==1)&&((a13==1)&&((a19==3)&&(a6==1)))))&&(a13==1))&&(a9==7)))))){ + a5 = 5; + a14 = 0; + a19 = 2; + a21 = 10; + a9 = 9; + a1 = 13; + a11 = 1; + a16 = 7; + a18 = 0; + return 25; + } else if((((a19==3)&&((((a12==1)&&((a23==1)&&(!(a14==1)&&(((input==3)&&(a20==1))&&(a17==2)))))&&!(a8==1))&&(a5==6)))&&(((a9==11)&&((a21==11)&&((a16==9)&&(!(a3==1)||(!(a28==1)||(a28==1))))))&&(a1==13)))){ + a6 = 1; + a13 = 1; + a5 = 4; + a16 = 10; + a9 = 8; + a24 = 0; + a19 = 5; + return 21; + } else if((((a12==1)&&((a3==1)&&((a23==1)&&((a13==1)&&(a17==2)))))&&((a11==1)&&(!(a20==1)&&(((a6==1)&&((a19==1)&&(((a21==12)&&((a1==14)&&(((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8)))&&(input==4))))&&!(a27==1))))&&(a16==9)))))){ + a5 = 6; + a19 = 2; + a24 = 1; + a20 = 1; + a3 = 0; + a16 = 7; + a21 = 10; + a1 = 12; + a22 = 0; + a9 = 8; + return 21; + } else if((((((a6==1)&&(((a1==13)&&(((a17==2)&&((input==3)&&(a21==10)))&&(a5==4)))&&!(a14==1)))&&(a16==11))&&(a23==1))&&(((a14==1)||(!(a4==1)&&((a19==3)&&((a20==1)&&((a6==1)&&(a9==11))))))||!(a2==1)))){ + a18 = 0; + a1 = 12; + a9 = 8; + a23 = 1; + a2 = 1; + a19 = 4; + return 21; + } else if((((a9==7)&&(((a16==9)&&(((input==1)&&(a17==2))&&!(a27==1)))&&(a21==10)))&&(((!(a23==1)||((a20==1)&&((!(a24==1)&&(((a19==1)&&((a12==1)&&(a3==1)))&&(a5==5)))||(a24==1))))&&(a2==1))&&(a1==12)))){ + a21 = 11; + a7 = 0; + a3 = 1; + a16 = 8; + a20 = 0; + a5 = 4; + a19 = 4; + a1 = 13; + a28 = 1; + return 26; + } else if((((!(a4==1)&&((a21==12)&&((a20==1)&&((!(a24==1)&&((input==1)&&((((a19==3)&&((a9==11)&&((a5==5)&&(a1==14))))||((((a5==6)&&(a1==14))&&(a9==11))&&(a19==3)))||(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==4)))))&&!(a4==1)))))&&(a2==1))&&(((a8==1)||((a17==2)&&((a12==1)&&(a16==9))))||(a26==1)))){ + a9 = 7; + a16 = 8; + a1 = 12; + a27 = 0; + a8 = 0; + a19 = 5; + a5 = 6; + a7 = 0; + return 25; + } else if(((((a21==12)&&(!(a11==1)||((a12==1)&&(a11==1))))&&(a1==12))&&(((!(a0==1)&&((!(a7==1)&&(!(a20==1)&&((a19==2)&&((a2==1)&&((input==1)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))))))&&(a28==1)))&&(a16==9))&&(a17==2)))){ + a5 = 5; + a10 = 0; + a21 = 10; + a1 = 14; + a0 = 1; + a9 = 11; + a16 = 7; + a20 = 1; + a19 = 1; + return -1; + } else if(((((!(a20==1)&&(((a9==7)&&(a6==1))&&!(a18==1)))&&(a6==1))&&(a16==8))&&((((a19==3)&&((a3==1)&&((((((input==1)&&((a5==4)||(a5==5)))&&(a3==1))&&(a12==1))&&(a21==10))&&(a11==1))))&&(a1==14))&&(a17==2)))){ + a19 = 1; + a9 = 9; + a16 = 9; + a26 = 0; + a14 = 0; + a11 = 1; + a20 = 1; + a5 = 4; + return 21; + } else if(((((a21==12)&&(((a17==2)&&((!(a0==1)&&((a23==1)&&(((a11==1)&&(((a5==4)||(a5==5))&&(input==3)))&&(a16==7))))&&(a1==12)))&&(a9==11)))&&(a20==1))&&(((((a11==1)&&(a6==1))||!(a2==1))||(a7==1))&&(a19==1)))){ + a5 = 4; + a19 = 5; + a3 = 1; + a9 = 7; + a13 = 1; + a16 = 8; + return 26; + } else if(((((((a16==8)&&((a12==1)&&(a21==12)))&&(a20==1))&&(a2==1))||!(a23==1))&&(((a13==1)&&((a5==5)&&(((a19==1)&&(!(a27==1)&&(((a3==1)&&((input==6)&&(a1==14)))&&(a9==8))))&&(a17==2))))&&(a13==1)))){ + if((a9==9)){ + a12 = 1; + a11 = 1; + a20 = 0; + a18 = 0; + a21 = 11; + a19 = 2; + a9 = 11; + }else{ + a19 = 5; + a2 = 1; + a9 = 9; + a16 = 10; + a8 = 0; + a5 = 4; + a21 = 11; + a0 = 0; + a1 = 13; + } + return 22; + } else if(((!(a14==1)&&((((a21==11)&&((a16==9)&&((a28==1)&&(a20==1))))&&(a1==13))||(a14==1)))&&((!(a7==1)&&(((a12==1)&&((a19==2)&&(((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==4))&&(a11==1))))&&(a17==2)))&&(a6==1)))){ + a1 = 14; + a23 = 1; + a9 = 7; + a19 = 3; + a21 = 10; + a4 = 0; + a5 = 5; + a14 = 0; + a16 = 11; + return 23; + } else if((((a20==1)&&((a2==1)&&(((a16==9)&&((a27==1)||(a6==1)))&&(a17==2))))&&((a19==1)&&((a21==10)&&(((((a2==1)&&(((((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6))))&&(input==6))&&(a1==13)))&&(a6==1))&&!(a14==1))&&(a6==1)))))){ + a28 = 1; + a5 = 4; + a1 = 12; + a9 = 7; + a16 = 7; + a18 = 0; + return -1; + } else if((((((a21==10)&&((a5==6)&&((((a19==2)&&(((input==4)&&(a17==2))&&(a16==9)))&&(a1==14))&&!(a18==1))))&&!(a20==1))&&!(a24==1))&&(!(a28==1)||(((((a13==1)&&(a9==10))||!(a12==1))||(a24==1))||(a27==1))))){ + a21 = 12; + a29 = 1; + a10 = 0; + a9 = 8; + a14 = 1; + return -1; + } else if(((((!(a23==1)||(a2==1))&&(a21==12))&&(a1==12))&&((a9==7)&&(((((!(a20==1)&&(!(a4==1)&&(!(a26==1)&&(!(a7==1)&&(((input==1)&&(a17==2))&&(a16==8))))))&&(a5==4))&&(a19==2))&&(a6==1))&&!(a7==1))))){ + a19 = 1; + a1 = 13; + a18 = 1; + a16 = 7; + a9 = 10; + a15 = 0; + a20 = 1; + a21 = 10; + a5 = 6; + a24 = 1; + return -1; + } else if((((((((a21==10)&&((((a2==1)||!(a12==1))||!(a13==1))&&(a3==1)))&&(a16==8))||(a27==1))&&(a1==14))&&(a9==10))&&((a17==2)&&(((a5==5)&&((((a20==1)&&(input==3))&&(a2==1))&&(a19==1)))&&(a23==1))))){ + a16 = 7; + a5 = 4; + a28 = 1; + a9 = 7; + a4 = 0; + a23 = 1; + a1 = 12; + return -1; + } else if((((((a16==9)&&((a4==1)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==1))))&&(a21==11))&&(a19==1))&&((a8==1)&&((a17==2)&&(!(a23==1)&&((((((a12==1)&&(a20==1))&&(a1==14))&&!(a28==1))&&!(a6==1))&&(a27==1))))))){ + a5 = 6; + a21 = 10; + a9 = 11; + a22 = 1; + a1 = 13; + a24 = 1; + a16 = 7; + return 21; + } else if((((a17==2)&&((a21==12)&&(!(a0==1)&&(!(a3==1)||((a13==1)||(a18==1))))))&&((a1==13)&&((a9==7)&&(((a11==1)&&((((a16==7)&&(!(a18==1)&&(((a5==5)||(a5==6))&&(input==5))))&&(a12==1))&&(a20==1)))&&(a19==1)))))){ + a19 = 5; + a9 = 8; + a13 = 1; + a5 = 5; + a16 = 8; + a27 = 0; + a28 = 1; + return 21; + } else if((((a5==5)&&(((a20==1)&&(((a12==1)&&(((a19==4)&&((a9==9)&&(input==4)))&&!(a14==1)))&&(a13==1)))&&(a17==2)))&&(((a16==9)&&(((a24==1)||(!(a27==1)&&((a13==1)&&(a6==1))))&&(a1==14)))&&(a21==10)))){ + a18 = 0; + a9 = 7; + a19 = 1; + a16 = 7; + a5 = 4; + a3 = 1; + a1 = 12; + a12 = 1; + return -1; + } else if(((((((a13==1)&&((((((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==5))&&!(a20==1))&&(a1==13))&&!(a14==1))&&(a21==10)))&&(a13==1))&&!(a7==1))&&(a16==10))&&((a17==2)&&(!(a8==1)&&((a27==1)||((a19==4)&&(a6==1))))))){ + a19 = 1; + a10 = 0; + a1 = 14; + a13 = 0; + a9 = 10; + a16 = 7; + a14 = 1; + a20 = 1; + a5 = 5; + return 21; + } else if((((((((((a16==10)&&((!(a14==1)&&(((input==6)&&(a1==13))&&(a21==11)))&&(a5==6)))&&(a9==11))&&(a17==2))&&(a20==1))&&!(a7==1))&&!(a0==1))&&(a12==1))&&(!(a8==1)&&((a19==4)&&(!(a3==1)||(a28==1)))))){ + a16 = 7; + a19 = 2; + a9 = 9; + a13 = 1; + a21 = 10; + a12 = 1; + a4 = 0; + a5 = 5; + return 25; + } else if((((a19==2)&&((a28==1)&&(!(a18==1)&&(((a6==1)&&((input==6)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))))&&!(a20==1)))))&&(((a21==12)&&((a17==2)&&(!(a2==1)||(!(a24==1)&&((!(a13==1)||(a13==1))&&(a16==8))))))&&(a1==12)))){ + if((a2==1)){ + a26 = 1; + a25 = 1; + a16 = 7; + a22 = 1; + a9 = 11; + a20 = 1; + a21 = 10; + a5 = 6; + }else{ + a5 = 5; + a19 = 1; + a13 = 0; + a1 = 13; + a21 = 10; + a26 = 1; + a9 = 7; + a14 = 1; + a20 = 1; + a16 = 7; + } + return -1; + } else if(((!(a6==1)||((((a17==2)&&((a28==1)||!(a2==1)))||!(a2==1))&&!(a20==1)))&&((a13==1)&&(((a21==11)&&(!(a27==1)&&((a6==1)&&((((((a1==13)&&(a5==4))&&(a9==7))||((((a1==12)&&(a5==5))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==12)))))&&(input==1))&&(a16==7)))))&&(a19==2))))){ + a19 = 1; + a21 = 10; + a5 = 4; + a1 = 12; + a28 = 1; + a4 = 0; + a20 = 1; + a24 = 0; + a9 = 7; + return -1; + } else if(((((!(a24==1)&&(!(a4==1)&&((a21==10)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))))&&(a17==2))&&(a19==3))&&(((((a13==1)&&((a13==1)&&((a9==7)&&(((a2==1)&&!(a4==1))||(a24==1)))))&&(a20==1))&&(a16==7))&&(a1==12)))){ + a5 = 4; + a19 = 5; + a3 = 1; + a18 = 0; + a24 = 0; + return 26; + } else if((((a1==12)&&((a16==7)&&(!(a7==1)&&((a6==1)&&((a28==1)&&(a21==10))))))&&((a20==1)&&(((!(a18==1)&&((a3==1)&&(((a23==1)&&((input==3)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5)))))&&!(a0==1))))&&(a19==5))&&(a17==2))))){ + a21 = 12; + a0 = 0; + a3 = 1; + a19 = 2; + a5 = 5; + a9 = 10; + a7 = 0; + return 21; + } else if(((((a28==1)&&((a21==11)&&(((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))&&(input==4))&&(a20==1))))&&(a16==8))&&((a17==2)&&((a1==14)&&(!(a11==1)||(!(a0==1)&&((((a3==1)&&((a3==1)&&(a3==1)))&&(a19==4))||!(a11==1)))))))){ + a9 = 7; + a13 = 1; + a1 = 12; + a5 = 4; + a28 = 1; + a4 = 0; + a21 = 10; + a16 = 7; + a19 = 1; + return -1; + } else if((((((a2==1)&&(a1==13))&&(a13==1))||!(a13==1))&&(((((((a3==1)&&(!(a14==1)&&(((((input==3)&&((a5==5)||(a5==6)))&&(a21==12))&&(a9==9))&&(a19==1))))&&(a17==2))&&(a16==8))&&!(a20==1))&&!(a4==1))&&!(a26==1)))){ + a16 = 9; + a5 = 5; + a19 = 3; + a9 = 10; + a22 = 0; + a15 = 1; + a25 = 1; + return 21; + } else if(((((a27==1)&&((((!(a2==1)&&((a23==1)&&(a9==10)))&&!(a2==1))&&(a16==9))&&(a17==2)))&&!(a2==1))&&((a4==1)&&(!(a3==1)&&((a21==12)&&((a19==5)&&((a1==13)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a20==1))))))))){ + a9 = 11; + a25 = 0; + a1 = 12; + a5 = 4; + a16 = 7; + a21 = 10; + a10 = 0; + a18 = 1; + a19 = 2; + return -1; + } else if(((((a21==11)&&(((a1==12)&&((((a17==2)&&(a3==1))&&(a19==2))&&!(a7==1)))&&!(a7==1)))&&!(a4==1))&&(((a16==10)&&((a9==10)&&(!(a18==1)&&(!(a7==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&!(a20==1))))))&&(a28==1)))){ + a5 = 6; + a16 = 8; + a2 = 0; + a1 = 13; + a9 = 9; + a4 = 1; + a20 = 1; + a21 = 12; + a19 = 4; + a8 = 1; + return 21; + } else if((((a27==1)||((!(a0==1)&&(!(a11==1)||(((a11==1)||!(a3==1))&&(a1==13))))&&(a16==8)))&&((((((((((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7))))&&(input==4))&&(a19==5))&&(a17==2))&&(a21==12))&&!(a20==1))&&(a6==1))&&!(a24==1)))){ + if((a21==11)){ + a21 = 10; + a9 = 11; + a16 = 7; + a5 = 5; + a22 = 0; + a14 = 1; + a19 = 3; + a10 = 1; + }else{ + a20 = 1; + a21 = 11; + a15 = 1; + a12 = 0; + a16 = 7; + a9 = 10; + a5 = 5; + a11 = 0; + } + return 25; + } else if(((!(a14==1)&&((!(a0==1)&&((((input==1)&&((a5==4)||(a5==5)))&&(a20==1))&&(a17==2)))&&(a16==10)))&&((((((a1==14)&&((((a21==10)&&(a11==1))&&(a19==1))||(a27==1)))&&(a9==9))&&(a28==1))&&(a23==1))&&!(a27==1)))){ + a26 = 0; + a5 = 4; + a9 = 7; + a1 = 12; + a23 = 1; + a7 = 0; + a16 = 7; + return -1; + } else if((((!(a4==1)&&(!(a23==1)||(((((a2==1)&&(a21==10))&&(a17==2))||(a8==1))&&(a1==12))))&&(a19==4))&&((a20==1)&&((a16==10)&&((a3==1)&&((a12==1)&&(!(a7==1)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==6))))))))){ + a16 = 7; + a12 = 1; + a18 = 0; + a11 = 1; + a9 = 7; + a19 = 1; + a5 = 4; + return -1; + } else if(((((!(a14==1)&&((a3==1)&&(a23==1)))&&(a6==1))&&(a16==7))&&((a17==2)&&((((((a1==14)&&((a11==1)&&((a19==1)&&(!(a14==1)&&((a21==11)&&(input==6))))))&&(a9==7))&&!(a14==1))&&(a5==6))&&!(a20==1))))){ + a20 = 1; + a5 = 4; + a14 = 0; + a3 = 1; + a1 = 12; + a4 = 0; + a21 = 10; + return -1; + } else if(((((!(a27==1)&&((a16==11)&&((a1==13)&&((a17==2)&&((a21==10)&&((input==6)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))))))))&&!(a18==1))&&(a19==5))&&(!(a4==1)&&(((a4==1)||((!(a23==1)||(a6==1))||!(a2==1)))&&(a20==1))))){ + a16 = 7; + a8 = 0; + a9 = 7; + a27 = 0; + a23 = 1; + a5 = 4; + a1 = 12; + a19 = 1; + return -1; + } else if((((((a17==2)&&((a20==1)&&((a1==12)&&(!(a7==1)&&((a28==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3)))))))&&(a16==10))&&(a21==12))&&((((!(a24==1)&&((a14==1)||((a12==1)&&(a9==11))))&&(a19==4))||(a18==1))&&!(a8==1)))){ + a0 = 0; + a1 = 14; + a5 = 6; + a7 = 0; + a21 = 10; + return -1; + } else if((((!(a20==1)&&(((a19==4)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&!(a8==1))&&(a23==1))&&!(a18==1)))&&!(a26==1)))&&(a1==12))&&((((a16==7)&&((a9==8)&&((a21==12)&&((a12==1)||!(a11==1)))))||(a7==1))&&(a17==2)))){ + a12 = 1; + a20 = 1; + a9 = 7; + a19 = 1; + a21 = 10; + a26 = 0; + a5 = 4; + a4 = 0; + return -1; + } else if(((!(a23==1)||(((a23==1)&&((a14==1)||((((a17==2)&&((a23==1)&&!(a7==1)))&&(a16==8))&&(a21==12))))&&!(a0==1)))&&((a1==14)&&((a19==4)&&(!(a20==1)&&((((input==3)&&((a5==5)||(a5==6)))&&(a9==7))&&!(a26==1))))))){ + a27 = 1; + a15 = 1; + a13 = 0; + a19 = 2; + a16 = 7; + a1 = 12; + a20 = 1; + a21 = 10; + a5 = 4; + a9 = 8; + return 21; + } else if((((((a2==1)&&(((a21==12)&&(((a17==2)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a19==5)))&&(a16==8)))&&(a28==1)))&&!(a0==1))&&(a9==8))&&(((!(a4==1)&&(!(a20==1)&&((a13==1)&&(a28==1))))&&!(a8==1))&&(a1==14)))){ + if((a14==1)){ + a6 = 0; + a21 = 10; + a5 = 4; + a1 = 12; + a15 = 0; + a19 = 1; + a16 = 7; + a26 = 1; + a20 = 1; + }else{ + a9 = 10; + a6 = 0; + a25 = 0; + a12 = 0; + a5 = 4; + } + return -1; + } else if(((((a3==1)&&((a17==2)&&((a16==10)&&(((((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(input==4))&&!(a4==1)))))&&(a20==1))&&((a21==11)&&((a27==1)||(!(a12==1)||(((a19==2)&&(!(a28==1)||((a14==1)||(a6==1))))&&(a1==14))))))){ + a21 = 10; + a9 = 7; + a27 = 0; + a16 = 7; + a1 = 12; + a12 = 1; + a11 = 1; + a19 = 1; + a5 = 4; + return -1; + } else if((((!(a7==1)&&((((((a16==11)&&(input==1))&&(a19==1))&&!(a20==1))&&(a11==1))&&(a5==5)))&&!(a4==1))&&(!(a7==1)&&((a21==10)&&((a17==2)&&(!(a14==1)&&((((a3==1)&&(a9==8))&&(a1==12))||!(a12==1)))))))){ + a8 = 1; + a20 = 1; + a1 = 14; + a5 = 4; + a16 = 8; + a15 = 1; + a19 = 3; + a29 = 1; + return -1; + } else if(((((a2==1)&&((!(a27==1)&&((a13==1)&&!(a18==1)))&&(a21==12)))&&!(a20==1))&&((a1==12)&&(!(a7==1)&&((a2==1)&&(((a16==8)&&((a11==1)&&((a17==2)&&((((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6))))&&(input==5)))))&&(a19==2))))))){ + if((a29==1)){ + a1 = 13; + a16 = 7; + a19 = 1; + a5 = 6; + a21 = 10; + a10 = 0; + a7 = 1; + a20 = 1; + a9 = 7; + a3 = 0; + }else{ + a1 = 13; + a5 = 6; + a20 = 1; + a9 = 11; + a16 = 10; + a7 = 1; + a4 = 1; + a18 = 1; + } + return -1; + } else if((((((((input==1)&&(((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))))&&(a28==1))&&!(a18==1))&&(a16==9))&&(a19==1))&&((((((a12==1)&&((!(a0==1)&&((a13==1)||!(a3==1)))||!(a6==1)))&&(a1==13))&&(a21==12))&&(a17==2))&&(a20==1)))){ + a19 = 2; + a16 = 8; + a27 = 0; + a2 = 1; + a3 = 1; + a5 = 5; + a9 = 10; + a21 = 11; + a1 = 14; + return 25; + } else if(((!(a26==1)&&(!(a8==1)&&(((((((a11==1)&&((input==5)&&((a5==5)||(a5==6))))&&(a9==10))&&(a12==1))&&!(a24==1))&&(a1==13))&&(a16==8))))&&(!(a20==1)&&((a4==1)||(((a19==3)&&((a21==10)&&(a2==1)))&&(a17==2)))))){ + a20 = 1; + a24 = 0; + a12 = 1; + a16 = 9; + a28 = 1; + a5 = 6; + a19 = 1; + return -1; + } else if(((((a21==12)&&((a13==1)&&(((((input==3)&&(a1==12))&&!(a20==1))&&(a11==1))&&(a6==1))))&&(a19==5))&&(((a17==2)&&((a11==1)&&((!(a3==1)||(((a9==7)&&(a3==1))&&(a2==1)))&&(a16==10))))&&(a5==5)))){ + a16 = 7; + a21 = 10; + a19 = 1; + a20 = 1; + a9 = 10; + a25 = 1; + a1 = 14; + a5 = 6; + a6 = 0; + a15 = 1; + return -1; + } else if(((!(a14==1)&&(!(a26==1)&&((a12==1)&&((((a17==2)&&((a28==1)&&(a2==1)))&&(a19==4))&&(a20==1)))))&&(!(a7==1)&&((a21==10)&&((a16==8)&&((((((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(input==6))&&(a12==1))&&(a1==14))))))){ + a21 = 12; + a18 = 0; + a5 = 6; + a3 = 1; + a19 = 1; + a9 = 8; + a14 = 0; + return 21; + } else if((((a18==1)||(((((a13==1)&&((a16==8)&&(!(a13==1)||((a20==1)&&((a6==1)&&(a5==4))))))||!(a2==1))&&(a19==3))||!(a2==1)))&&(((a1==13)&&((((a9==11)&&(input==5))&&(a21==11))&&(a17==2)))&&(a28==1)))){ + a1 = 14; + a9 = 7; + a3 = 1; + a7 = 0; + a19 = 1; + a20 = 0; + a21 = 12; + a16 = 7; + a2 = 1; + return 21; + } else if((((((a23==1)&&((a19==2)&&((a16==7)&&(!(a27==1)&&((a20==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a11==1)))))))&&!(a7==1))&&(a21==12))&&((((((a28==1)&&(a9==8))&&(a1==12))&&(a17==2))||(a4==1))||(a27==1)))){ + a23 = 1; + a21 = 10; + a9 = 7; + a19 = 1; + a5 = 4; + a28 = 1; + return -1; + } else if(((!(a0==1)&&((a2==1)&&((a21==11)&&(((a12==1)&&((a5==6)&&(input==5)))&&(a16==7)))))&&(!(a24==1)&&((((a17==2)&&(((a9==10)&&(((a19==5)&&(a23==1))&&(a1==13)))&&(a20==1)))&&!(a4==1))&&(a12==1))))){ + a1 = 14; + a16 = 8; + a23 = 1; + a8 = 0; + a5 = 4; + a11 = 1; + a9 = 7; + a19 = 2; + a21 = 12; + return 22; + } else if((((a6==1)&&((((a12==1)&&(((input==5)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&!(a27==1)))&&(a16==9))&&(a3==1)))&&((a19==2)&&((a17==2)&&((a21==12)&&((a1==14)&&(!(a2==1)||((a24==1)||((a2==1)&&!(a20==1)))))))))){ + a19 = 4; + a10 = 1; + a5 = 6; + a25 = 0; + a16 = 8; + a21 = 10; + a0 = 1; + a9 = 9; + return 21; + } else if((((a17==2)&&(!(a14==1)&&((((((((a9==9)&&(((a5==4)||(a5==5))&&(input==5)))&&!(a20==1))&&(a23==1))&&(a19==3))&&(a21==12))&&!(a14==1))&&(a3==1))))&&((a0==1)||((!(a26==1)&&((a13==1)&&(a1==14)))&&(a16==7))))){ + a21 = 10; + a11 = 1; + a5 = 5; + a14 = 0; + a20 = 1; + a18 = 0; + a16 = 11; + a1 = 12; + return 21; + } else if(((!(a2==1)||(((a24==1)||((((a17==2)&&((a19==3)&&((a23==1)&&(a2==1))))&&(a28==1))&&(a16==9)))&&(a1==14)))&&((a20==1)&&(((a21==11)&&(!(a0==1)&&((input==5)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))))&&(a28==1))))){ + a1 = 12; + a16 = 7; + a5 = 4; + a27 = 0; + a9 = 7; + a21 = 10; + a4 = 0; + a19 = 1; + return -1; + } else if(((((a2==1)&&((((a6==1)&&!(a20==1))&&(a16==10))&&(a23==1)))&&(a21==10))&&(((a6==1)&&((a9==9)&&(((a13==1)&&(((a1==14)&&(!(a7==1)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a17==2)))&&!(a4==1))))&&(a19==2)))){ + a5 = 4; + a29 = 0; + a24 = 1; + a16 = 9; + a20 = 1; + a9 = 10; + a8 = 1; + a1 = 13; + return -1; + } else if((((a9==10)&&(((a1==13)&&((((((a5==4)||(a5==5))&&(input==4))&&(a28==1))&&!(a0==1))&&(a23==1)))&&(a17==2)))&&((a21==10)&&(((a16==9)&&(!(a6==1)||(!(a11==1)||((!(a0==1)&&(a3==1))&&(a19==4)))))&&!(a20==1))))){ + if((a2==1)){ + a9 = 8; + a10 = 0; + a20 = 1; + a11 = 0; + a5 = 5; + a24 = 1; + a16 = 7; + a19 = 1; + }else{ + a20 = 1; + a23 = 0; + a1 = 12; + a9 = 7; + a8 = 1; + a5 = 6; + a16 = 8; + a28 = 0; + a19 = 1; + } + return 26; + } else if(((((a6==1)&&((((a21==11)&&((a11==1)&&((((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(input==1))))&&!(a20==1))&&(a1==12)))&&!(a8==1))&&((((a18==1)||((!(a12==1)||((a17==2)&&(a23==1)))||!(a13==1)))&&(a19==1))&&(a16==9)))){ + a21 = 10; + a24 = 1; + a18 = 1; + a5 = 4; + a16 = 11; + a9 = 7; + a22 = 1; + a19 = 2; + return -1; + } return calculate_output31(input); + } + + int calculate_output31(int input) { + if(((((a9==10)&&((a3==1)&&((a1==13)&&((a5==4)&&((a3==1)&&(((a16==9)&&(a23==1))||(a14==1)))))))&&(a21==11))&&((a17==2)&&((a19==4)&&((((a11==1)&&((input==4)&&!(a20==1)))&&(a2==1))&&!(a7==1)))))){ + a22 = 0; + a16 = 11; + a29 = 0; + a1 = 14; + a20 = 1; + a9 = 9; + a21 = 10; + a15 = 0; + return -1; + } else if(((!(a14==1)&&(((a21==10)&&((a6==1)&&(a17==2)))&&!(a18==1)))&&((a9==11)&&(!(a18==1)&&((((a16==9)&&((((((a5==6)&&(input==6))&&!(a0==1))&&(a3==1))&&(a19==5))&&(a6==1)))&&(a1==14))&&(a20==1)))))){ + a11 = 1; + a20 = 0; + a16 = 8; + a28 = 1; + a19 = 1; + a9 = 8; + a1 = 12; + a27 = 0; + return -1; + } else if(((((a1==14)&&((a5==6)&&((a17==2)&&(!(a20==1)&&((!(a6==1)||((a21==11)&&((a0==1)||(a12==1))))&&(a6==1))))))&&(a19==4))&&((a16==10)&&(((((a9==10)&&(input==4))&&(a11==1))&&(a3==1))&&(a23==1))))){ + a21 = 10; + a20 = 1; + a9 = 7; + a19 = 1; + a22 = 0; + a16 = 7; + a11 = 0; + a5 = 5; + a15 = 0; + return 25; + } else if(((!(a27==1)&&(!(a0==1)&&((((a28==1)&&((a17==2)&&(input==3)))&&!(a8==1))&&(a5==6))))&&((a1==13)&&((((a20==1)&&(((((a23==1)&&(a19==3))&&!(a8==1))&&!(a4==1))&&(a16==7)))&&(a9==10))&&(a21==12))))){ + a16 = 8; + a9 = 8; + a19 = 5; + a1 = 14; + a7 = 0; + a6 = 1; + a5 = 5; + a21 = 10; + a27 = 0; + return 25; + } else if(((((((a9==7)&&(!(a28==1)||(a11==1)))&&!(a8==1))&&(a16==9))||!(a13==1))&&(!(a20==1)&&(((a1==13)&&((a19==4)&&((a13==1)&&(!(a0==1)&&(!(a26==1)&&(((input==1)&&(a21==10))&&(a17==2)))))))&&(a5==6))))){ + a6 = 0; + a19 = 1; + a22 = 0; + a25 = 0; + a16 = 7; + a20 = 1; + a9 = 10; + return -1; + } else if(((((((a18==1)||((a12==1)||!(a6==1)))&&(a23==1))&&(a16==8))&&(a9==9))&&((a1==14)&&((a28==1)&&((a12==1)&&((a19==2)&&(!(a26==1)&&((a5==4)&&((a21==11)&&(((input==5)&&(a20==1))&&(a17==2))))))))))){ + a21 = 10; + a9 = 7; + a1 = 12; + a0 = 0; + a19 = 1; + a16 = 7; + a27 = 0; + a28 = 1; + return -1; + } else if((((a19==1)&&((!(a28==1)||(((a12==1)||!(a6==1))&&!(a4==1)))&&(a20==1)))&&((((((((a9==9)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a13==1)))&&(a1==14))&&!(a26==1))&&(a12==1))&&(a21==12))&&(a17==2))&&(a16==9)))){ + a3 = 1; + a16 = 7; + a5 = 4; + a18 = 0; + a21 = 10; + a9 = 7; + a13 = 1; + a1 = 12; + return -1; + } else if((((a17==2)&&((a19==3)&&((a1==14)&&(((a21==12)&&(a6==1))&&!(a8==1)))))&&(!(a7==1)&&((a20==1)&&(((a11==1)&&((a11==1)&&((a16==10)&&((((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10)))&&(input==6))&&(a2==1)))))&&(a6==1)))))){ + a1 = 12; + a16 = 7; + a5 = 4; + a21 = 10; + a14 = 0; + a23 = 1; + a9 = 7; + a19 = 1; + return -1; + } else if(((!(a20==1)&&((((a21==10)&&(!(a27==1)&&(((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==5))&&(a12==1))))&&(a1==12))&&(a6==1)))&&((a16==8)&&((((((a19==1)&&(a13==1))||(a24==1))&&(a12==1))&&(a17==2))&&(a11==1))))){ + a20 = 1; + a27 = 0; + a21 = 11; + a19 = 4; + a11 = 1; + a16 = 9; + a5 = 6; + a9 = 7; + return 21; + } else if(((((a16==9)&&((a19==5)&&((a3==1)&&((((a13==1)&&((a5==6)&&(input==6)))&&!(a4==1))&&(a20==1)))))&&(a9==9))&&((((((a0==1)||((a6==1)&&!(a14==1)))||(a27==1))&&(a17==2))&&(a1==12))&&(a21==10)))){ + a19 = 1; + a4 = 0; + a11 = 1; + a9 = 7; + a16 = 7; + a5 = 4; + a26 = 0; + return -1; + } else if(((((a2==1)&&(((((input==3)&&!(a20==1))&&(a13==1))&&!(a24==1))&&(a11==1)))&&(a19==5))&&((a17==2)&&((a1==14)&&((a16==7)&&(((((a9==8)&&((a11==1)&&(a28==1)))||(a26==1))&&(a5==5))&&(a21==10))))))){ + a23 = 1; + a20 = 1; + a0 = 0; + a9 = 7; + a5 = 4; + a1 = 12; + a24 = 0; + a19 = 1; + return -1; + } else if((((((a20==1)&&((a6==1)&&(((a21==10)&&(!(a14==1)&&((a17==2)&&((((input==3)&&(a5==4))&&!(a27==1))&&!(a0==1)))))&&(a16==10))))&&(a9==10))&&!(a7==1))&&((a19==3)&&((a13==1)&&((a3==1)&&(a1==12)))))){ + if((a8==1)){ + a4 = 0; + a19 = 5; + a26 = 0; + a20 = 0; + a1 = 14; + a16 = 7; + }else{ + a19 = 4; + a9 = 8; + a21 = 12; + a18 = 0; + a2 = 1; + a16 = 8; + a5 = 5; + a1 = 14; + a4 = 0; + } + return -1; + } else if((((a17==2)&&((a16==10)&&((a12==1)&&((a28==1)&&((!(a4==1)&&((input==1)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5)))))&&(a11==1))))))&&((((a20==1)&&((a21==12)&&(!(a11==1)||((a11==1)||(a8==1)))))&&(a19==4))&&(a1==14)))){ + a19 = 2; + a9 = 9; + a14 = 0; + a27 = 0; + a21 = 10; + a1 = 13; + a6 = 1; + a16 = 7; + a5 = 4; + return -1; + } else if(((((a9==8)&&(((a19==3)&&(((((input==1)&&((a5==5)||(a5==6)))&&!(a18==1))&&(a3==1))&&!(a26==1)))&&(a12==1)))&&(a1==14))&&((a20==1)&&((((((a6==1)||(a7==1))&&(a17==2))&&(a21==12))||!(a13==1))&&(a16==9))))){ + a11 = 1; + a27 = 0; + a1 = 13; + a5 = 6; + a9 = 10; + a21 = 10; + a19 = 2; + a16 = 7; + return 25; + } else if((((a19==1)&&((a5==4)&&((a14==1)||((a28==1)&&!(a0==1)))))&&(!(a4==1)&&(((a9==8)&&(((a17==2)&&((a16==8)&&((a1==12)&&((a3==1)&&((a12==1)&&(!(a20==1)&&(input==4)))))))&&!(a0==1)))&&(a21==10))))){ + a0 = 0; + a5 = 6; + a9 = 11; + a16 = 9; + a13 = 1; + a1 = 13; + a20 = 1; + a26 = 0; + return 25; + } else if(((((a17==2)&&((a12==1)&&((a9==9)&&((a16==10)&&((input==3)&&(a19==4))))))&&(a12==1))&&((a3==1)&&(!(a12==1)||((a20==1)&&((((a5==5)&&(((a6==1)&&!(a18==1))&&(a1==13)))&&(a28==1))&&(a21==10))))))){ + a16 = 7; + a1 = 12; + a9 = 7; + a7 = 0; + a28 = 1; + a24 = 0; + a5 = 4; + a19 = 1; + return -1; + } else if((((a19==4)&&(((!(a7==1)&&(((a9==11)&&(input==1))&&!(a24==1)))&&(a21==11))&&(a5==4)))&&((a1==12)&&((((a28==1)&&((a0==1)||((((a23==1)&&(a20==1))&&(a12==1))||(a24==1))))&&(a17==2))&&(a16==7))))){ + a16 = 8; + a9 = 9; + a6 = 1; + a19 = 3; + a0 = 0; + a2 = 1; + a1 = 13; + a5 = 6; + return 21; + } else if((((a13==1)&&((!(a20==1)&&((!(a4==1)&&((a3==1)&&(((a5==4)||(a5==5))&&(input==1))))&&!(a4==1)))&&(a9==11)))&&(((a17==2)&&(((a19==2)&&(((a21==10)&&((a2==1)&&(a3==1)))||(a27==1)))&&(a16==10)))&&(a1==14)))){ + a22 = 1; + a1 = 12; + a27 = 1; + a11 = 0; + a16 = 7; + a9 = 7; + a5 = 6; + a20 = 1; + return 22; + } else if(((((a1==14)&&((a21==12)&&((a16==11)&&(((input==5)&&(a19==4))&&!(a27==1)))))&&(a5==6))&&(((((((((a23==1)&&(a12==1))&&(a2==1))||!(a6==1))||(a26==1))||!(a12==1))&&(a9==11))&&(a17==2))&&(a20==1)))){ + a16 = 7; + a9 = 7; + a7 = 0; + a19 = 1; + a26 = 0; + a8 = 0; + a5 = 4; + a21 = 10; + a1 = 12; + return -1; + } else if((((a19==1)&&((a21==11)&&((a16==9)&&(!(a27==1)&&((((a1==13)&&(((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))&&(input==6)))&&(a2==1))&&(a28==1))))))&&((a23==1)&&((!(a8==1)&&(!(a20==1)&&((a12==1)&&(a23==1))))&&(a17==2))))){ + a22 = 0; + a19 = 2; + a20 = 1; + a16 = 7; + a21 = 10; + a24 = 1; + a9 = 10; + a12 = 0; + a1 = 12; + a5 = 5; + return 21; + } else if((((a19==4)&&((a17==2)&&(((a9==7)&&(((((a21==12)&&(a2==1))||!(a6==1))&&!(a18==1))&&(a1==13)))&&(a5==4))))&&(!(a26==1)&&(!(a7==1)&&((a11==1)&&((a23==1)&&(((a20==1)&&(input==1))&&(a16==8)))))))){ + a14 = 0; + a9 = 8; + a19 = 3; + a24 = 0; + a16 = 10; + a1 = 14; + a5 = 5; + return 22; + } else if((((((a9==7)&&(!(a23==1)||((a19==2)&&(a2==1))))&&(a16==9))&&(a17==2))&&(!(a20==1)&&((a21==10)&&(((((a6==1)&&(!(a8==1)&&((((a5==4)||(a5==5))&&(input==6))&&!(a24==1))))&&(a1==14))&&(a12==1))&&(a12==1)))))){ + a5 = 6; + a16 = 7; + a22 = 1; + a1 = 12; + a15 = 0; + a25 = 0; + a9 = 8; + a20 = 1; + return -1; + } else if(((!(a12==1)||((a28==1)&&(!(a12==1)||(((a13==1)&&(a16==11))&&(a21==10)))))&&((a6==1)&&((a1==13)&&((((a9==10)&&((a17==2)&&((!(a20==1)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))&&(a19==2))))&&!(a27==1))&&(a12==1)))))){ + if((a25==1)){ + a20 = 1; + a7 = 1; + a1 = 12; + a9 = 7; + a18 = 1; + a19 = 1; + a5 = 6; + a16 = 7; + }else{ + a5 = 5; + a21 = 12; + a1 = 14; + a28 = 0; + a16 = 9; + a29 = 0; + a20 = 1; + a15 = 0; + a19 = 1; + } + return 23; + } else if(((((a20==1)&&(!(a2==1)&&((a16==9)&&(((a23==1)&&(a9==7))&&(a1==12)))))&&(a19==2))&&((!(a28==1)&&((a17==2)&&((!(a28==1)&&(((a8==1)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6))))&&(a27==1)))&&(a21==11))))&&(a24==1)))){ + a5 = 5; + a23 = 0; + a16 = 7; + a21 = 10; + a1 = 13; + a27 = 1; + a29 = 1; + a19 = 1; + return -1; + } else if((((a17==2)&&(((a23==1)&&(!(a27==1)&&(!(a24==1)&&(((a1==14)&&((a2==1)&&((a16==10)&&((input==6)&&((a5==5)||(a5==6))))))&&(a19==4)))))&&(a23==1)))&&(((a21==11)&&(!(a20==1)&&((a14==1)||(a2==1))))&&(a9==7)))){ + a23 = 0; + a3 = 0; + a21 = 12; + a14 = 1; + a5 = 6; + a9 = 10; + a19 = 5; + a1 = 13; + return -1; + } else if(((((a9==11)&&((!(a23==1)&&((a14==1)&&(((a20==1)&&(input==1))&&!(a12==1))))&&(a21==11)))&&(a5==4))&&((a16==8)&&((a1==13)&&((a19==3)&&(((!(a12==1)&&((a17==2)&&(a13==1)))&&(a7==1))&&(a26==1))))))){ + a0 = 1; + a29 = 0; + a19 = 5; + a9 = 8; + a7 = 1; + a5 = 6; + a16 = 11; + return 25; + } else if((((a19==5)&&(((a12==1)&&((a1==13)&&((a16==11)&&((a28==1)&&(a3==1)))))||!(a28==1)))&&((a9==11)&&((((a5==4)&&(((a6==1)&&(!(a26==1)&&((input==6)&&(a20==1))))&&(a17==2)))&&!(a14==1))&&(a21==10))))){ + a7 = 0; + a19 = 4; + a9 = 8; + a2 = 1; + a16 = 7; + a27 = 0; + a1 = 12; + return -1; + } else if((((a18==1)||(((!(a27==1)&&((a9==9)&&((a17==2)&&((((a12==1)&&(a21==12))&&(a19==5))||!(a23==1)))))||(a24==1))||(a4==1)))&&(!(a14==1)&&((a1==14)&&(((a16==7)&&((input==5)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a20==1)))))){ + a5 = 4; + a20 = 1; + a4 = 0; + a6 = 1; + a19 = 1; + a21 = 10; + a9 = 7; + a0 = 0; + a1 = 12; + return -1; + } else if(((!(a4==1)&&((a11==1)&&((!(a20==1)&&((a17==2)&&(((input==4)&&(((((a1==14)&&(a5==6))&&(a9==11))&&(a19==1))||(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==2))))&&(a28==1))))&&(a16==9))))&&((((a21==11)&&(!(a4==1)&&(a28==1)))&&(a12==1))&&!(a4==1)))){ + a20 = 1; + a15 = 1; + a9 = 10; + a24 = 1; + a1 = 14; + a19 = 1; + a5 = 5; + a21 = 12; + a16 = 7; + a0 = 1; + return 25; + } else if(((((((((((a3==1)||!(a6==1))&&(a16==9))&&(a20==1))||(a14==1))||!(a3==1))&&(a19==5))&&(a9==11))&&(a21==10))&&((a6==1)&&(((a1==13)&&(!(a8==1)&&(!(a26==1)&&(((a5==5)||(a5==6))&&(input==3)))))&&(a17==2))))){ + a26 = 0; + a9 = 7; + a14 = 0; + a5 = 4; + a19 = 1; + a8 = 0; + a16 = 7; + a1 = 12; + return -1; + } else if(((((a3==1)&&(((a11==1)&&((input==1)&&(a9==7)))&&(a19==2)))&&(a21==12))&&(!(a20==1)&&((a1==12)&&((a17==2)&&((a5==6)&&((a26==1)||(((a11==1)&&((a0==1)||((a12==1)&&(a2==1))))&&(a16==7))))))))){ + a14 = 0; + a20 = 1; + a16 = 8; + a9 = 9; + a19 = 3; + a11 = 1; + return 25; + } else if((((a1==12)&&((a5==6)&&((!(a27==1)&&(((a2==1)&&!(a14==1))&&(a13==1)))||!(a12==1))))&&(((((((a9==7)&&((a21==12)&&((a20==1)&&(input==5))))&&(a19==2))&&(a2==1))&&!(a4==1))&&(a16==10))&&(a17==2)))){ + a5 = 5; + a21 = 10; + a16 = 7; + a9 = 9; + a24 = 0; + a1 = 13; + a13 = 1; + a11 = 1; + return -1; + } else if((((((a7==1)&&(((a27==1)&&((a14==1)&&((a7==1)&&((a5==6)&&(input==5)))))&&(a19==4)))&&(a24==1))&&(a21==10))&&((a20==1)&&(((((a9==7)&&((a12==1)&&(a17==2)))&&(a16==7))&&(a1==13))&&!(a6==1))))){ + a28 = 0; + a15 = 0; + a19 = 1; + a5 = 4; + a9 = 9; + a0 = 1; + return -1; + } else if(((((!(a14==1)&&((a16==11)&&(((a28==1)&&(((a5==5)||(a5==6))&&(input==4)))&&(a20==1))))&&!(a24==1))&&(a9==11))&&((((a17==2)&&(!(a3==1)||(((a21==10)&&((a14==1)||(a11==1)))||(a18==1))))&&(a19==4))&&(a1==13)))){ + a9 = 7; + a16 = 7; + a19 = 1; + a5 = 4; + a1 = 12; + a11 = 1; + a4 = 0; + a0 = 0; + return -1; + } else if(((((a17==2)&&((((a13==1)&&((a12==1)&&(!(a7==1)&&((a1==14)&&(input==3)))))&&(a21==10))&&(a20==1)))&&(a19==2))&&(!(a18==1)&&(((a16==11)&&((!(a14==1)&&((a9==9)&&(a2==1)))&&(a13==1)))&&(a5==4))))){ + a16 = 7; + a9 = 7; + a1 = 12; + a19 = 1; + a28 = 1; + a6 = 1; + a18 = 0; + return -1; + } else if(((((a2==1)&&(!(a4==1)&&(((a17==2)&&((a3==1)&&((a9==8)&&(((a1==13)&&(input==5))&&(a23==1)))))&&!(a8==1))))&&(a5==6))&&((a16==10)&&((((a19==5)&&((a21==10)&&(a11==1)))&&!(a20==1))||(a0==1))))){ + a20 = 1; + a8 = 1; + a19 = 3; + a5 = 4; + a16 = 11; + a9 = 11; + a23 = 0; + a10 = 1; + a1 = 12; + return -1; + } else if(((!(a12==1)&&(((a16==9)&&(!(a12==1)&&((a20==1)&&((a21==10)&&(a2==1)))))&&(a17==2)))&&((((a14==1)&&((a8==1)&&((a1==12)&&((((input==4)&&((a5==4)||(a5==5)))&&(a7==1))&&(a9==9)))))&&(a19==4))&&!(a3==1)))){ + a1 = 13; + a21 = 12; + a6 = 0; + a25 = 0; + a16 = 10; + a23 = 0; + a19 = 2; + a5 = 6; + a9 = 11; + return 21; + } else if(((!(a18==1)&&(!(a23==1)||((a2==1)&&!(a20==1))))&&(((a13==1)&&(!(a24==1)&&(((a17==2)&&((input==3)&&(((((a19==5)&&((a16==10)&&((a9==11)&&((a5==6)&&(a1==14)))))&&(a21==12))||((((a16==11)&&((a9==7)&&((a1==12)&&(a5==4))))&&(a19==1))&&(a21==10)))||((a21==10)&&((a19==1)&&((a16==11)&&((a9==7)&&((a1==12)&&(a5==5)))))))))&&!(a27==1))))&&(a12==1)))){ + a13 = 0; + a16 = 7; + a7 = 1; + a5 = 5; + a20 = 1; + a19 = 1; + a25 = 0; + a21 = 10; + a1 = 14; + a9 = 10; + return -1; + } else if((((a5==4)&&(((((a28==1)&&(a9==10))&&!(a20==1))&&(a1==14))||!(a2==1)))&&(((a17==2)&&((((a3==1)&&((!(a4==1)&&(!(a4==1)&&((input==4)&&(a21==11))))&&!(a8==1)))&&!(a18==1))&&(a19==3)))&&(a16==7)))){ + a1 = 13; + a21 = 10; + a28 = 1; + a11 = 1; + a5 = 5; + a20 = 1; + a16 = 9; + a9 = 11; + a19 = 1; + a26 = 0; + return 26; + } else if((((a1==13)&&(((a7==1)||(a6==1))&&(a9==11)))&&((((!(a20==1)&&((a5==6)&&((a28==1)&&(((a28==1)&&((((a21==11)&&(input==5))&&(a6==1))&&(a19==4)))&&!(a8==1)))))&&!(a4==1))&&(a16==9))&&(a17==2)))){ + if((a14==1)){ + a20 = 1; + a21 = 10; + a1 = 12; + a16 = 7; + a5 = 4; + a19 = 1; + a26 = 1; + a22 = 0; + }else{ + a7 = 1; + a16 = 8; + a21 = 10; + a19 = 3; + a3 = 0; + a9 = 8; + a25 = 1; + a5 = 5; + } + return -1; + } else if((((((a5==4)&&((a1==14)&&((!(a11==1)||((a8==1)||(!(a0==1)&&(a6==1))))&&(a9==8))))&&!(a20==1))&&(a16==10))&&(((a21==11)&&(((a19==4)&&(((a17==2)&&(input==6))&&!(a26==1)))&&(a6==1)))&&(a6==1)))){ + a8 = 1; + a19 = 5; + a5 = 6; + a1 = 13; + a9 = 10; + a25 = 0; + a21 = 12; + a10 = 0; + return 22; + } else if((((a1==14)&&(((a19==1)&&(!(a20==1)&&(!(a18==1)&&(((a23==1)&&((a17==2)&&((((input==3)&&(((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))))&&(a11==1))&&(a16==8))))&&(a13==1)))))&&(a21==11)))&&(!(a24==1)&&((a6==1)&&(a3==1))))){ + a5 = 4; + a28 = 1; + a0 = 0; + a3 = 1; + a1 = 12; + a9 = 7; + a16 = 7; + a21 = 10; + a20 = 1; + return -1; + } else if((((a19==4)&&((a1==12)&&(!(a18==1)&&((a13==1)&&((a11==1)&&((((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(input==1)))))))&&((a21==10)&&(!(a20==1)&&((((a2==1)&&((!(a8==1)&&(a6==1))&&(a17==2)))||(a4==1))&&(a16==10)))))){ + a5 = 5; + a19 = 1; + a16 = 7; + a22 = 0; + a20 = 1; + a0 = 1; + a9 = 10; + a10 = 1; + return -1; + } else if((((((a17==2)&&((a9==11)&&(!(a13==1)||(a6==1))))&&(a16==8))&&(a5==5))&&((((!(a20==1)&&((a12==1)&&((a3==1)&&((a21==11)&&(((a19==3)&&(input==6))&&(a1==14))))))&&!(a24==1))&&(a23==1))&&!(a4==1)))){ + a5 = 4; + a9 = 10; + a2 = 1; + a24 = 0; + a20 = 1; + a3 = 1; + a19 = 1; + return -1; + } else if(((!(a26==1)&&(!(a28==1)||((((a6==1)&&(a20==1))&&(a19==2))&&(a17==2))))&&(((a16==9)&&((a1==14)&&((a2==1)&&(((((((a5==5)||(a5==6))&&(input==4))&&!(a18==1))&&!(a24==1))&&!(a4==1))&&(a21==10)))))&&(a9==8)))){ + a12 = 1; + a9 = 7; + a16 = 7; + a2 = 1; + a6 = 1; + a19 = 1; + a5 = 4; + a1 = 12; + return -1; + } else if((((a17==2)&&((a3==1)&&((a23==1)&&((a6==1)&&((a28==1)&&((a21==12)&&(!(a20==1)&&(((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4)))&&(input==3)))))))))&&((a13==1)&&((a16==7)&&((((a12==1)||!(a11==1))&&(a19==4))&&(a1==14)))))){ + a6 = 1; + a9 = 7; + a11 = 1; + a20 = 1; + a21 = 10; + a5 = 4; + a1 = 12; + a19 = 1; + a0 = 0; + return -1; + } else if(((!(a18==1)&&(!(a11==1)||(((a1==13)&&(!(a0==1)&&((a11==1)&&!(a20==1))))&&(a21==12))))&&((a16==8)&&(((((((input==4)&&((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4))))&&!(a18==1))&&(a17==2))&&!(a18==1))&&(a19==5))&&!(a27==1))))){ + a5 = 4; + a3 = 0; + a19 = 1; + a12 = 0; + a20 = 1; + a18 = 1; + a9 = 10; + a21 = 10; + a16 = 7; + a1 = 12; + return 21; + } else if((((((((a26==1)||(a23==1))&&(a21==11))&&(a17==2))&&(a1==12))&&(a19==2))&&(!(a24==1)&&((!(a7==1)&&(((!(a27==1)&&(((input==3)&&((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4))))&&!(a8==1)))&&!(a8==1))&&!(a20==1)))&&(a16==10))))){ + a7 = 1; + a1 = 13; + a5 = 4; + a19 = 5; + a20 = 1; + a15 = 0; + a9 = 11; + a8 = 1; + a16 = 8; + return 23; + } else if((((!(a8==1)&&((((a23==1)&&(((a28==1)&&(((input==1)&&(a9==7))&&(a19==5)))&&(a11==1)))&&!(a18==1))&&(a17==2)))&&(a5==5))&&((a21==12)&&(((a16==10)&&(((a1==14)&&(a6==1))||!(a3==1)))&&!(a20==1))))){ + a21 = 10; + a19 = 1; + a28 = 0; + a27 = 1; + a9 = 8; + a20 = 1; + a1 = 12; + a7 = 1; + a16 = 7; + a5 = 4; + return -1; + } else if((((a20==1)&&((!(a7==1)&&(((a19==4)&&(!(a12==1)||((a23==1)&&(a16==9))))||!(a3==1)))&&(a1==13)))&&((a17==2)&&(((a11==1)&&(!(a27==1)&&((((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))&&(input==1))&&(a11==1))))&&(a21==12))))){ + a16 = 7; + a7 = 0; + a4 = 0; + a19 = 1; + a21 = 10; + a1 = 12; + a2 = 1; + a9 = 7; + a5 = 4; + return -1; + } else if(((((a27==1)||((!(a20==1)&&(((a11==1)||!(a3==1))&&!(a27==1)))&&(a6==1)))&&(a19==3))&&((a1==13)&&((a16==10)&&(((!(a27==1)&&((a11==1)&&((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==5))))&&(a21==11))&&(a17==2)))))){ + a29 = 1; + a19 = 4; + a21 = 12; + a2 = 0; + a0 = 1; + a9 = 9; + a16 = 8; + a1 = 14; + a5 = 5; + return 26; + } else if((((a14==1)||(((!(a14==1)&&((a6==1)&&(a6==1)))&&(a16==8))&&(a17==2)))&&(((a28==1)&&((((((((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))&&(input==3))&&(a20==1))&&(a21==10))&&(a28==1))&&!(a24==1))&&(a19==3)))&&(a1==12)))){ + a2 = 1; + a8 = 0; + a16 = 7; + a5 = 4; + a9 = 7; + a19 = 1; + a0 = 0; + return -1; + } else if(((((a19==4)&&((a17==2)&&((((a5==4)&&(((a21==12)&&((a6==1)&&!(a20==1)))||!(a23==1)))&&(a2==1))&&(a9==11))))||(a18==1))&&((a12==1)&&(((((input==1)&&(a1==14))&&(a16==7))&&!(a14==1))&&!(a26==1))))){ + a20 = 1; + a12 = 1; + a16 = 11; + a9 = 9; + a1 = 13; + a5 = 6; + a2 = 1; + a13 = 1; + a19 = 1; + a21 = 10; + return 25; + } else if(((((a2==1)&&(!(a18==1)&&((a1==13)&&((a17==2)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&!(a14==1))&&!(a14==1))&&(a9==11))))))&&(a21==11))&&((a19==3)&&((a20==1)&&((((a16==10)&&(a2==1))&&(a13==1))||!(a12==1)))))){ + a14 = 0; + a3 = 1; + a27 = 0; + a19 = 1; + a16 = 7; + a5 = 4; + a9 = 7; + a1 = 12; + a21 = 10; + return -1; + } else if(((!(a27==1)&&((a9==8)&&((!(a24==1)&&(((a16==10)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a20==1)))&&!(a7==1)))&&(a19==1))))&&(((!(a6==1)||((((a21==11)&&(a11==1))||!(a11==1))&&(a1==14)))&&(a17==2))||!(a11==1)))){ + a1 = 12; + a28 = 1; + a5 = 4; + a9 = 7; + a23 = 1; + a21 = 10; + a16 = 7; + a13 = 1; + return -1; + } else if((((((((((a9==8)&&((a13==1)&&((a16==10)&&(!(a0==1)&&(((input==5)&&(a17==2))&&(a11==1))))))&&(a21==11))&&!(a4==1))&&(a19==3))&&(a28==1))&&(a5==6))&&(a20==1))&&(!(a13==1)||((a1==12)&&(a13==1))))){ + a21 = 10; + a27 = 0; + a1 = 13; + a19 = 2; + a5 = 5; + a9 = 9; + a16 = 7; + a0 = 0; + a6 = 1; + return 25; + } else if(((((a11==1)&&(((((input==5)&&(a21==10))&&(a5==4))&&(a16==8))&&(a1==14)))&&(a17==2))&&(!(a3==1)||(!(a4==1)&&((a9==7)&&((a19==5)&&((a24==1)||(!(a20==1)&&((a13==1)&&((a3==1)&&(a28==1))))))))))){ + a19 = 2; + a20 = 1; + a9 = 10; + a28 = 1; + a16 = 11; + a8 = 0; + a21 = 12; + a26 = 0; + return 25; + } else if((((a16==8)&&(((a21==12)&&((a27==1)||((a17==2)&&((!(a8==1)&&(a12==1))&&!(a4==1)))))||(a0==1)))&&((a19==3)&&((((a9==11)&&((((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a24==1))&&(a11==1)))&&(a1==13))&&!(a20==1))))){ + if((a29==1)){ + a20 = 1; + a16 = 7; + a19 = 1; + a14 = 1; + a25 = 0; + a9 = 8; + a21 = 10; + a5 = 4; + a28 = 0; + }else{ + a5 = 6; + a20 = 1; + a16 = 11; + a29 = 1; + a24 = 1; + a1 = 14; + a19 = 4; + a21 = 10; + a23 = 0; + a9 = 8; + } + return -1; + } else if((((a21==11)&&(((a19==5)&&((a16==8)&&((a9==10)&&(((a17==2)&&(((a5==4)||(a5==5))&&(input==3)))&&(a13==1)))))&&!(a0==1)))&&(!(a24==1)&&((((a1==12)&&((a8==1)||((a11==1)&&(a28==1))))&&!(a20==1))&&!(a0==1))))){ + a16 = 7; + a14 = 0; + a21 = 10; + a5 = 4; + a0 = 0; + a9 = 7; + a20 = 1; + a19 = 1; + return -1; + } else if((((a17==2)&&(((((a12==1)||(a4==1))&&!(a4==1))||!(a11==1))||(a18==1)))&&((((((((a1==13)&&((input==5)&&(((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6))))))&&(a19==5))&&(a16==8))&&(a21==12))&&!(a20==1))&&(a6==1))&&(a2==1)))){ + if((a8==1)){ + a28 = 0; + a9 = 8; + a21 = 10; + a20 = 1; + a3 = 0; + a19 = 1; + a2 = 0; + a16 = 7; + a5 = 5; + }else{ + a20 = 1; + a15 = 0; + a19 = 1; + a7 = 1; + a10 = 0; + a21 = 10; + a5 = 4; + a16 = 7; + a9 = 9; + } + return -1; + } else if((((((a13==1)&&(a2==1))&&!(a24==1))||(a26==1))&&(!(a27==1)&&((a17==2)&&(!(a14==1)&&((a19==3)&&(!(a20==1)&&(((a16==7)&&(((a1==14)&&(((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4)))&&(input==4)))&&(a13==1)))&&(a21==12))))))))){ + a19 = 1; + a5 = 4; + a1 = 12; + a26 = 0; + a23 = 1; + a20 = 1; + a9 = 7; + a21 = 10; + a2 = 1; + return -1; + } else if(((!(a27==1)&&((a12==1)&&((a28==1)&&(((input==5)&&(((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))))&&(a19==2)))))&&(((a17==2)&&(!(a3==1)||((a13==1)&&(!(a20==1)&&((a14==1)||(((a6==1)&&(a21==10))&&(a16==10)))))))&&(a1==13)))){ + if((a13==1)){ + a9 = 7; + a20 = 1; + a25 = 1; + a19 = 1; + a1 = 12; + a15 = 0; + a16 = 7; + a3 = 0; + a5 = 4; + }else{ + a9 = 9; + a20 = 1; + a19 = 1; + a15 = 0; + a5 = 4; + a25 = 1; + a1 = 14; + a16 = 7; + a27 = 1; + } + return -1; + } else if((((a28==1)&&(((a6==1)&&((a1==12)&&((a9==9)&&((a5==4)&&((a16==8)&&(input==3))))))&&(a20==1)))&&((((a19==4)&&((a6==1)&&((a0==1)||(((a12==1)||(a0==1))||!(a3==1)))))&&(a17==2))&&(a21==12)))){ + a19 = 1; + a9 = 7; + a12 = 1; + a16 = 7; + a21 = 10; + a28 = 1; + return -1; + } else if(((((a11==1)&&((a21==11)&&(((a9==8)&&((a19==4)&&((((input==6)&&((a5==5)||(a5==6)))&&(a17==2))&&!(a27==1))))&&(a23==1))))&&!(a14==1))&&((((a16==10)&&((a1==12)&&((a20==1)&&(a28==1))))&&!(a4==1))&&!(a0==1)))){ + a19 = 5; + a5 = 4; + a13 = 1; + a16 = 7; + a8 = 0; + a18 = 0; + return 22; + } else if(((!(a23==1)||(((a1==12)&&((((a3==1)&&!(a7==1))&&(a21==12))&&(a19==1)))&&(a16==9)))&&(((!(a14==1)&&(!(a18==1)&&(!(a20==1)&&((a9==9)&&((a5==6)&&((input==1)&&(a17==2)))))))&&(a6==1))&&!(a0==1)))){ + a19 = 2; + a23 = 0; + a21 = 10; + a16 = 8; + a20 = 1; + a25 = 0; + a9 = 10; + a1 = 14; + return 25; + } else if(((((a13==1)&&(((a23==1)&&(((a17==2)&&(input==3))&&(a9==11)))&&(a13==1)))&&!(a18==1))&&(((a5==6)&&((((a19==2)&&(((a4==1)||((a21==12)&&(a2==1)))&&(a20==1)))&&(a12==1))&&(a16==10)))&&(a1==14)))){ + a1 = 12; + a9 = 7; + a16 = 7; + a5 = 4; + a14 = 0; + a13 = 1; + a21 = 10; + a0 = 0; + a19 = 1; + return -1; + } else if(((((a12==1)&&((a17==2)&&((a1==12)&&(!(a4==1)&&((a19==1)&&(((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a21==11)))))))&&!(a0==1))&&((a9==9)&&(((((!(a8==1)&&(a12==1))||!(a13==1))&&!(a20==1))&&(a16==7))&&!(a18==1))))){ + a12 = 1; + a9 = 7; + a20 = 1; + a4 = 0; + a5 = 4; + a21 = 10; + a28 = 1; + return -1; + } else if((((((a16==10)&&(((a9==7)&&(a11==1))&&(a1==13)))&&(a17==2))||(a18==1))&&((a21==12)&&((a28==1)&&(!(a24==1)&&(!(a0==1)&&(((a5==5)&&(!(a0==1)&&(((input==5)&&!(a20==1))&&(a6==1))))&&(a19==1)))))))){ + a4 = 1; + a9 = 10; + a16 = 7; + a20 = 1; + a21 = 10; + a5 = 6; + a1 = 14; + a23 = 0; + a22 = 1; + return -1; + } else if(((((a17==2)&&((((!(a14==1)&&(!(a18==1)&&((a1==13)&&(input==3))))&&(a9==10))&&!(a14==1))&&(a16==9)))&&(a19==5))&&((((((a12==1)&&((a6==1)&&!(a0==1)))&&!(a14==1))&&(a5==4))&&(a21==12))&&!(a20==1)))){ + a9 = 11; + a19 = 1; + a21 = 10; + a5 = 5; + a25 = 1; + a16 = 11; + a28 = 0; + a24 = 1; + return 23; + } else if((((a26==1)&&(!(a23==1)&&((a27==1)&&((((a5==6)&&(((a16==9)&&(a11==1))&&(a19==5)))&&!(a23==1))&&(a9==9)))))&&(((a17==2)&&(!(a28==1)&&((a18==1)&&(((input==3)&&(a20==1))&&(a21==12)))))&&(a1==13)))){ + a16 = 7; + a22 = 1; + a21 = 10; + a8 = 1; + a1 = 12; + a19 = 1; + a15 = 0; + return 26; + } else if((((((((a1==14)&&(a23==1))&&(a23==1))&&(a19==4))&&!(a14==1))&&(a16==9))&&(((a21==11)&&((!(a14==1)&&(!(a20==1)&&((((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==5))&&!(a0==1))&&(a11==1))))&&(a17==2)))&&(a6==1)))){ + if((a11==1)){ + a16 = 11; + a9 = 10; + a12 = 0; + a8 = 1; + a7 = 1; + a5 = 6; + a19 = 5; + a20 = 1; + }else{ + a1 = 13; + a7 = 1; + a4 = 1; + a5 = 4; + a10 = 0; + a19 = 3; + a20 = 1; + a21 = 12; + a9 = 7; + } + return -1; + } else if((((((a19==2)&&(!(a0==1)&&((a20==1)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))))&&(a16==7))&&(a21==10))&&((a9==10)&&((a1==14)&&((((a0==1)||((a0==1)||(!(a8==1)&&((a3==1)&&(a28==1)))))||(a18==1))&&(a17==2)))))){ + a0 = 0; + a5 = 5; + a13 = 1; + a9 = 8; + a19 = 4; + return 21; + } else if(((((a1==12)&&((((a2==1)&&(a28==1))&&(a19==1))||!(a2==1)))&&!(a14==1))&&((!(a20==1)&&((a9==9)&&(((a17==2)&&((a3==1)&&((((input==6)&&(a5==6))&&(a21==12))&&!(a24==1))))&&(a16==9))))&&(a2==1)))){ + a19 = 4; + a1 = 14; + a8 = 1; + a9 = 11; + a5 = 4; + a21 = 10; + a4 = 1; + a0 = 1; + return -1; + } else if((((a13==1)&&(!(a8==1)&&((a13==1)&&(((a5==5)&&((input==1)&&(a17==2)))&&(a1==14)))))&&((a7==1)||((((((a21==10)&&((a9==10)&&((a16==7)&&(a28==1))))&&!(a20==1))||!(a2==1))||!(a2==1))&&(a19==1))))){ + a27 = 0; + a9 = 7; + a1 = 12; + a5 = 4; + a11 = 1; + a20 = 1; + return -1; + } else if((((((!(a26==1)&&(((a21==12)&&((((a19==3)&&(((a1==14)&&(a5==6))&&(a9==11)))||(((a9==7)&&((a1==12)&&(a5==4)))&&(a19==4)))&&(input==5)))&&(a17==2)))&&!(a7==1))&&!(a18==1))&&(a2==1))&&(((a20==1)&&(((a23==1)&&!(a14==1))||(a26==1)))&&(a16==11)))){ + a21 = 10; + a19 = 1; + a1 = 12; + a9 = 7; + a8 = 0; + a16 = 7; + a5 = 4; + a18 = 0; + return -1; + } else if(((!(a18==1)&&(((((a23==1)&&(((a16==7)&&((input==6)&&((((a1==12)&&(a5==6))&&(a9==11))||(((a1==13)&&(a5==4))&&(a9==7)))))&&(a11==1)))&&(a6==1))&&!(a0==1))&&!(a20==1)))&&((a14==1)||((a19==2)&&(((a23==1)&&(a17==2))&&(a21==12)))))){ + a13 = 1; + a20 = 1; + a9 = 7; + a1 = 12; + a19 = 1; + a21 = 10; + a26 = 0; + a5 = 4; + return -1; + } else if(((((a2==1)&&((a16==8)&&((a14==1)||((a20==1)&&((a9==11)&&((a6==1)&&(a1==13)))))))&&(a6==1))&&(((a21==11)&&((a12==1)&&((a5==5)&&(!(a18==1)&&(((a19==4)&&(input==1))&&(a17==2))))))&&!(a7==1)))){ + a28 = 1; + a21 = 10; + a9 = 9; + a19 = 2; + a7 = 0; + a5 = 4; + a18 = 0; + a16 = 7; + return 25; + } else if((((a8==1)||((!(a20==1)&&(((((a6==1)&&((a21==10)&&(a28==1)))&&!(a7==1))&&(a6==1))||(a7==1)))&&(a9==9)))&&(!(a4==1)&&((a1==12)&&((a17==2)&&(((((a5==4)||(a5==5))&&(input==5))&&(a19==1))&&(a16==10))))))){ + a1 = 14; + a23 = 0; + a10 = 1; + a5 = 4; + a16 = 7; + a26 = 1; + a20 = 1; + return 25; + } else if(((((((((a12==1)&&(a9==8))&&(a19==4))||(a8==1))||!(a13==1))||(a18==1))&&(a17==2))&&(((a1==14)&&(((a21==10)&&((a16==7)&&(!(a8==1)&&((((a5==5)||(a5==6))&&(input==4))&&!(a20==1)))))&&(a12==1)))&&(a3==1)))){ + a9 = 7; + a1 = 12; + a20 = 1; + a12 = 1; + a13 = 1; + a14 = 0; + a19 = 1; + a5 = 4; + return -1; + } else if(((((a1==13)&&((a9==9)&&(!(a23==1)||((a5==5)&&((a3==1)&&(a12==1))))))&&(a13==1))&&((!(a8==1)&&((!(a20==1)&&((((a16==8)&&((input==6)&&(a19==5)))&&(a6==1))&&(a21==12)))&&(a17==2)))&&(a6==1)))){ + if((a27==1)){ + a16 = 7; + a2 = 0; + a19 = 1; + a1 = 14; + a9 = 8; + a5 = 4; + a28 = 0; + a22 = 1; + a21 = 10; + a20 = 1; + }else{ + a9 = 8; + a18 = 1; + a20 = 1; + a21 = 10; + a19 = 1; + a25 = 1; + a16 = 7; + a5 = 4; + a15 = 1; + a1 = 14; + } + return 21; + } else if((((a1==12)&&(!(a8==1)&&(((((a5==5)||(a5==6))&&(input==6))&&(a20==1))&&!(a8==1))))&&((((a16==7)&&(((a19==1)&&(((a18==1)||((a9==9)&&(!(a3==1)||(a3==1))))&&(a21==12)))&&(a17==2)))||!(a23==1))||(a18==1)))){ + a1 = 13; + a5 = 4; + a18 = 0; + a16 = 8; + a23 = 1; + a19 = 4; + a6 = 1; + a9 = 8; + return 22; + } else if((((!(a14==1)&&(((a11==1)&&((a9==11)&&((((input==4)&&((a5==5)||(a5==6)))&&(a20==1))&&(a19==4))))&&(a17==2)))&&!(a26==1))&&(((((((a13==1)||!(a2==1))&&(a1==12))&&!(a18==1))&&(a16==11))||(a14==1))&&(a21==12)))){ + a9 = 7; + a19 = 1; + a16 = 7; + a2 = 1; + a5 = 4; + a7 = 0; + a21 = 10; + a23 = 1; + return -1; + } else if(((!(a7==1)&&(((a3==1)&&((!(a4==1)&&((input==4)&&(a9==8)))&&!(a20==1)))&&(a1==13)))&&(((a5==4)&&((a27==1)||(!(a18==1)&&((((a21==10)&&((a26==1)||(a6==1)))&&(a16==8))&&(a19==5)))))&&(a17==2)))){ + a13 = 1; + a20 = 1; + a21 = 12; + a1 = 14; + a24 = 0; + a5 = 5; + a2 = 1; + return 25; + } else if((((a3==1)&&((((a19==2)&&((input==6)&&(((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))))&&(a28==1))&&(a17==2)))&&(!(a11==1)||(((a1==12)&&((!(a14==1)&&(((a21==10)&&((a13==1)&&(a20==1)))&&(a11==1)))&&!(a26==1)))&&(a16==9))))){ + a23 = 1; + a6 = 1; + a16 = 7; + a9 = 7; + a19 = 1; + a5 = 4; + return -1; + } else if(((!(a27==1)&&(((((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==4))||((a19==5)&&(((a5==4)&&(a1==12))&&(a9==7))))&&(input==3))&&(a16==9))&&(a21==11)))&&((a23==1)&&(((!(a12==1)||((!(a28==1)||((a24==1)||(a12==1)))&&(a17==2)))&&!(a20==1))&&!(a8==1))))){ + if((a23==1)){ + a1 = 13; + a5 = 4; + a9 = 11; + a15 = 0; + a16 = 10; + a19 = 5; + a20 = 1; + a25 = 0; + a23 = 0; + }else{ + a16 = 8; + a12 = 0; + a5 = 4; + a1 = 12; + a20 = 1; + a19 = 3; + a9 = 11; + a28 = 0; + a15 = 0; + } + return -1; + } else if((((((a6==1)&&((((a16==9)&&(a6==1))&&!(a14==1))&&(a17==2)))&&(a1==14))||!(a13==1))&&(!(a7==1)&&((a6==1)&&(!(a27==1)&&((a19==4)&&(!(a20==1)&&((((a5==5)&&(input==1))&&(a21==10))&&(a9==7))))))))){ + a5 = 6; + a22 = 1; + a19 = 5; + a21 = 11; + a15 = 0; + a1 = 13; + a16 = 8; + a11 = 0; + return 25; + } else if((((a11==1)&&(((((a19==3)&&((a28==1)&&((((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(input==1))))&&(a13==1))&&(a17==2))&&!(a18==1)))&&(!(a3==1)||((a21==11)&&(!(a20==1)&&((a1==12)&&(((a11==1)&&(a16==10))||(a7==1)))))))){ + if((a27==1)){ + a5 = 4; + a20 = 1; + a9 = 7; + a1 = 13; + a16 = 7; + a8 = 1; + a21 = 10; + a4 = 1; + a24 = 1; + a19 = 2; + }else{ + a25 = 0; + a18 = 1; + a19 = 2; + a9 = 8; + a28 = 0; + a5 = 5; + } + return -1; + } else if((((a7==1)||(((((a2==1)&&(a19==1))&&!(a0==1))||!(a13==1))&&(a20==1)))&&(((a13==1)&&((a17==2)&&((a16==9)&&(((a1==14)&&((((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&(a21==12))&&(a2==1)))&&(a9==10)))))&&!(a18==1)))){ + a28 = 1; + a27 = 0; + a16 = 7; + a21 = 10; + a9 = 7; + a1 = 12; + a11 = 1; + a5 = 4; + return -1; + } else if(((!(a20==1)&&((a1==14)&&(((a23==1)&&(a17==2))&&(a21==10))))&&((a16==8)&&((a3==1)&&(!(a8==1)&&((((((!(a27==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))&&(a19==1))&&(a3==1))&&(a9==9))&&!(a14==1))&&!(a4==1))))))){ + a19 = 4; + a21 = 11; + a16 = 9; + a0 = 0; + a18 = 0; + a5 = 5; + a9 = 11; + a20 = 1; + a1 = 12; + a27 = 0; + return 26; + } else if((((!(a14==1)&&((a28==1)&&((((a3==1)&&((a21==11)&&(((input==6)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(a13==1))))&&(a1==13))&&(a2==1))))&&(a17==2))&&(((a19==4)&&(!(a11==1)||((a16==8)&&(a28==1))))&&(a20==1)))){ + a5 = 4; + a9 = 7; + a1 = 12; + a14 = 0; + a24 = 0; + a6 = 1; + a21 = 10; + a16 = 7; + a19 = 1; + return -1; + } else if((((!(a26==1)&&(((a23==1)&&(((input==6)&&(((a21==11)&&((a19==1)&&((a9==7)&&((a1==12)&&(a5==4)))))||((((a19==5)&&(((a5==5)&&(a1==14))&&(a9==11)))&&(a21==10))||(((a19==5)&&(((a1==14)&&(a5==6))&&(a9==11)))&&(a21==10)))))&&(a17==2)))&&!(a8==1)))&&!(a18==1))&&(!(a24==1)&&(((a16==8)&&((a13==1)&&!(a20==1)))&&(a28==1))))){ + a16 = 10; + a6 = 1; + a20 = 1; + a21 = 10; + a11 = 1; + a19 = 4; + a9 = 10; + a1 = 14; + a5 = 5; + a28 = 1; + return 25; + } else if((((a16==9)&&((a19==5)&&((((a17==2)&&(a3==1))||(a24==1))&&(a6==1))))&&((a1==13)&&((a9==9)&&((((!(a4==1)&&((!(a0==1)&&(((a5==4)||(a5==5))&&(input==6)))&&(a20==1)))&&(a13==1))&&(a21==11))&&(a13==1)))))){ + a5 = 4; + a0 = 0; + a9 = 7; + a16 = 7; + a19 = 1; + a18 = 0; + a11 = 1; + a21 = 10; + a1 = 12; + return -1; + } else if((((!(a7==1)&&(((a2==1)&&((a20==1)&&(((a11==1)&&(a2==1))&&(a16==11))))&&!(a4==1)))&&!(a24==1))&&(!(a4==1)&&((a17==2)&&((a21==10)&&((input==6)&&(((a19==3)&&((a9==11)&&((a5==6)&&(a1==14))))||((a19==4)&&(((a5==4)&&(a1==12))&&(a9==7)))))))))){ + a11 = 1; + a9 = 7; + a16 = 7; + a1 = 12; + a23 = 1; + a19 = 1; + a7 = 0; + a5 = 4; + return -1; + } else if(((((a4==1)&&((a16==7)&&((a19==4)&&((a21==12)&&((a17==2)&&(((((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==1))&&!(a23==1))&&!(a20==1))&&(a4==1)))))))&&(a24==1))&&((((a1==13)&&(a3==1))&&(a14==1))&&!(a23==1)))){ + a20 = 1; + a5 = 4; + a21 = 10; + a24 = 1; + a1 = 14; + a16 = 9; + a19 = 2; + a2 = 0; + a15 = 0; + a9 = 7; + return -1; + } else if((((((((a28==1)&&((a19==2)&&(((input==1)&&((a5==4)||(a5==5)))&&!(a7==1))))&&!(a18==1))&&(a16==9))&&(a17==2))&&(a1==14))&&((a21==10)&&((a20==1)&&((a9==9)&&((!(a14==1)&&((a12==1)&&(a2==1)))&&(a3==1))))))){ + a5 = 4; + a16 = 7; + a1 = 12; + a8 = 0; + a24 = 0; + a9 = 7; + a19 = 1; + a4 = 0; + return -1; + } else if((((a19==1)&&((!(a0==1)&&((((((a5==6)&&(input==6))&&(a12==1))&&(a1==14))&&(a16==11))&&(a28==1)))&&(a21==10)))&&(((a20==1)&&((a4==1)||(!(a4==1)&&(((a12==1)&&!(a4==1))&&(a17==2)))))&&(a9==9)))){ + a16 = 9; + a2 = 1; + a8 = 0; + a19 = 3; + a21 = 12; + a28 = 1; + a5 = 4; + a1 = 12; + return 21; + } else if((((a23==1)&&((!(a24==1)&&((((a13==1)&&(a17==2))&&(a21==10))&&!(a4==1)))&&(a16==9)))&&((a13==1)&&((a20==1)&&((((input==5)&&((((a9==7)&&((a5==4)&&(a1==12)))&&(a19==5))||((((a9==11)&&((a5==5)&&(a1==14)))&&(a19==4))||(((a9==11)&&((a5==6)&&(a1==14)))&&(a19==4)))))&&!(a4==1))&&!(a8==1)))))){ + a19 = 5; + a1 = 13; + a21 = 11; + a24 = 0; + a14 = 0; + a2 = 1; + a5 = 6; + a9 = 7; + a16 = 10; + return 21; + } else if(((((((a8==1)||(((((a23==1)&&!(a20==1))||(a26==1))&&(a3==1))&&(a17==2)))||(a27==1))&&(a16==10))&&(a13==1))&&((a21==11)&&(((input==6)&&(((((a5==4)&&(a1==12))&&(a9==7))&&(a19==3))||(((a19==2)&&(((a1==14)&&(a5==5))&&(a9==11)))||((a19==2)&&((a9==11)&&((a1==14)&&(a5==6)))))))&&(a2==1))))){ + if((a8==1)){ + a19 = 5; + a21 = 10; + a9 = 7; + a11 = 0; + a24 = 1; + a5 = 5; + a16 = 8; + a1 = 12; + }else{ + a5 = 4; + a16 = 7; + a20 = 1; + a21 = 10; + a19 = 1; + a13 = 0; + a1 = 12; + a9 = 7; + a18 = 1; + } + return 23; + } else if((((a1==14)&&(((a17==2)&&(((a24==1)||((a6==1)&&((a23==1)&&((a23==1)&&!(a14==1)))))&&(a21==11)))&&(a19==5)))&&((a16==7)&&((!(a27==1)&&((((input==4)&&!(a20==1))&&(a9==10))&&(a3==1)))&&(a5==4))))){ + a20 = 1; + a19 = 1; + a8 = 0; + a21 = 10; + a9 = 7; + a1 = 12; + a3 = 1; + a12 = 1; + return -1; + } else if(((!(a24==1)&&((!(a7==1)&&((a19==5)&&(((a9==7)&&(input==6))&&(a3==1))))&&!(a0==1)))&&(((a27==1)||((a17==2)&&((((a11==1)&&((a5==5)&&((a1==13)&&(a3==1))))&&(a21==11))&&(a16==11))))&&(a20==1)))){ + a7 = 0; + a9 = 8; + a21 = 10; + a5 = 6; + a19 = 4; + a12 = 1; + a1 = 12; + a18 = 0; + a16 = 7; + return -1; + } else if(((((((a5==4)&&(!(a8==1)&&((a28==1)&&(a9==9))))||!(a11==1))&&!(a20==1))&&(a13==1))&&(((!(a8==1)&&(((a19==2)&&((((input==3)&&(a1==13))&&(a21==11))&&(a16==7)))&&(a17==2)))&&!(a4==1))&&(a3==1)))){ + a21 = 10; + a26 = 0; + a14 = 0; + a1 = 12; + a11 = 1; + a20 = 1; + a19 = 1; + a9 = 7; + return -1; + } else if(((!(a28==1)||((a17==2)&&((a12==1)&&((a11==1)&&(((a6==1)&&(a20==1))&&!(a24==1))))))&&(!(a26==1)&&((((((((((a5==6)&&(a1==14))&&(a9==11))&&(a19==5))&&(a21==11))||((a21==12)&&((a19==1)&&((a9==7)&&((a1==12)&&(a5==4))))))||(((((a1==12)&&(a5==5))&&(a9==7))&&(a19==1))&&(a21==12)))&&(input==6))&&(a16==7))&&!(a14==1))))){ + a19 = 3; + a16 = 8; + a7 = 0; + a5 = 5; + a24 = 0; + a9 = 11; + a1 = 14; + a21 = 12; + a13 = 1; + return 25; + } else if((((!(a2==1)||(!(a24==1)&&((a19==4)&&((a6==1)&&(((a11==1)||!(a13==1))&&(a16==7))))))&&(a17==2))&&(((((a2==1)&&((input==1)&&(((((a1==13)&&(a5==5))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==13))))||((a9==7)&&((a1==14)&&(a5==4))))))&&(a21==11))&&!(a20==1))&&!(a18==1)))){ + a5 = 4; + a19 = 1; + a14 = 0; + a9 = 7; + a21 = 10; + a20 = 1; + a23 = 1; + a1 = 12; + return -1; + } else if((((a9==7)&&(((((!(a13==1)&&((a24==1)&&((a7==1)&&(((a28==1)&&(a7==1))&&(a16==7)))))&&!(a13==1))&&!(a20==1))&&(a21==11))&&(a1==12)))&&(((((a5==5)&&(input==4))&&!(a2==1))&&(a17==2))&&(a19==1)))){ + a21 = 10; + a5 = 4; + a24 = 1; + a29 = 0; + a13 = 0; + a1 = 14; + a20 = 1; + a9 = 10; + return -1; + } else if((((((a9==11)&&(!(a20==1)&&((a8==1)||(!(a18==1)&&((a13==1)||!(a11==1))))))&&(a19==4))&&(a1==13))&&(((a12==1)&&(((a16==8)&&(((a17==2)&&((input==5)&&((a5==4)||(a5==5))))&&!(a14==1)))&&(a21==12)))&&(a3==1)))){ + if((a3==1)){ + a20 = 1; + a10 = 1; + a9 = 8; + a16 = 7; + a19 = 1; + a5 = 4; + a24 = 1; + a11 = 0; + }else{ + a22 = 0; + a20 = 1; + a21 = 11; + a5 = 6; + a0 = 1; + a19 = 2; + a16 = 10; + a9 = 7; + a26 = 1; + } + return 21; + } else if(((((a17==2)&&(((!(a8==1)&&((((input==3)&&(((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))))&&!(a14==1))&&(a12==1)))&&(a1==13))&&(a2==1)))&&(a20==1))&&(((((a21==11)&&((a13==1)&&!(a4==1)))&&(a16==7))||(a14==1))&&(a19==4)))){ + a3 = 1; + a21 = 10; + a19 = 1; + a23 = 1; + a5 = 4; + a1 = 12; + a6 = 1; + a9 = 7; + return -1; + } else if(((!(a0==1)&&((a27==1)||(((a17==2)&&(((((a18==1)||(a23==1))&&(a20==1))&&(a1==13))&&(a16==10)))&&!(a0==1))))&&(!(a24==1)&&(((((input==1)&&((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4))))&&(a21==10))&&(a19==4))&&!(a14==1))))){ + a16 = 9; + a28 = 1; + a6 = 1; + a9 = 11; + a19 = 5; + a1 = 14; + a8 = 0; + a5 = 6; + return -1; + } else if(((((a19==3)&&((((a21==10)&&(((a1==14)&&((a28==1)||(a18==1)))&&(a20==1)))&&(a16==8))||!(a12==1)))||(a0==1))&&(((a17==2)&&(((((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))&&(input==5))&&(a13==1))&&(a23==1)))&&!(a26==1)))){ + a12 = 1; + a19 = 1; + a2 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + a1 = 12; + a13 = 1; + return -1; + } else if(((((a2==1)&&(!(a7==1)&&(!(a4==1)&&(((a9==9)&&(input==6))&&!(a4==1)))))&&!(a26==1))&&((!(a20==1)&&((a1==13)&&(((a19==4)&&((((a28==1)&&(a5==5))&&!(a24==1))&&(a16==10)))&&(a17==2))))&&(a21==10)))){ + if((a24==1)){ + a28 = 0; + a11 = 0; + a9 = 11; + a13 = 0; + a16 = 9; + a20 = 1; + a1 = 12; + a5 = 4; + }else{ + a27 = 1; + a16 = 7; + a19 = 1; + a7 = 1; + a5 = 6; + a9 = 11; + a20 = 1; + } + return -1; + } else if((((((a27==1)||((a0==1)||(((a21==11)&&((a17==2)&&((a6==1)||(a24==1))))&&(a19==3))))&&(a16==9))&&(a1==14))&&((((!(a7==1)&&((input==4)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))&&(a23==1))&&!(a7==1))&&!(a20==1)))){ + a15 = 0; + a19 = 1; + a16 = 7; + a5 = 5; + a0 = 1; + a20 = 1; + a25 = 1; + a9 = 9; + return 22; + } else if((((!(a18==1)&&(((!(a8==1)&&((a17==2)&&(((a21==11)&&((input==5)&&(a1==14)))&&!(a24==1))))&&(a6==1))&&(a5==5)))&&(a16==8))&&((((a7==1)||(((a23==1)||(a27==1))&&(a9==8)))&&(a19==2))&&!(a20==1)))){ + a23 = 1; + a5 = 6; + a16 = 10; + a20 = 1; + a21 = 10; + a18 = 0; + a26 = 0; + return 21; + } else if(((((a21==10)&&(a3==1))&&(a17==2))&&(!(a20==1)&&(!(a26==1)&&((!(a7==1)&&(((((((a16==8)&&((input==5)&&(((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))))&&(a1==12))&&!(a24==1))&&(a3==1))&&(a19==4))&&!(a14==1)))&&(a12==1)))))){ + a3 = 1; + a0 = 0; + a5 = 6; + a24 = 0; + a19 = 1; + a20 = 1; + a9 = 8; + a16 = 11; + return 25; + } else if(((((a4==1)||((a19==2)&&(!(a11==1)||((a6==1)&&(a17==2)))))&&(a21==12))&&((((((((input==1)&&(((((a1==12)&&(a5==5))&&(a9==11))||((a9==11)&&((a1==12)&&(a5==6))))||((a9==7)&&((a1==13)&&(a5==4)))))&&(a13==1))&&(a16==11))&&(a20==1))&&(a2==1))&&(a6==1))&&!(a7==1)))){ + if((a6==1)){ + a5 = 6; + a9 = 9; + a19 = 4; + a3 = 1; + a16 = 7; + a1 = 14; + a7 = 0; + a0 = 0; + a20 = 0; + }else{ + a28 = 1; + a5 = 5; + a9 = 10; + a1 = 13; + a21 = 10; + a0 = 0; + a8 = 0; + a16 = 9; + } + return 25; + } else if(((((a20==1)&&(!(a26==1)&&((a28==1)&&((input==5)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))))))&&(a1==14))&&((((a17==2)&&((((a24==1)||(((a28==1)&&!(a14==1))&&(a28==1)))||(a7==1))&&(a16==8)))&&(a21==11))&&(a19==5)))){ + a8 = 0; + a19 = 4; + a26 = 0; + a5 = 6; + a12 = 1; + a16 = 10; + a9 = 9; + a1 = 12; + return 23; + } else if((((a17==2)&&((a16==8)&&(((a28==1)&&(!(a8==1)&&(((a5==5)||(a5==6))&&(input==1))))&&(a21==10))))&&((a19==3)&&((!(a28==1)||((!(a28==1)||((((a11==1)&&(a9==7))&&!(a20==1))&&(a1==13)))||!(a13==1)))||!(a6==1))))){ + a20 = 1; + a18 = 0; + a21 = 12; + a1 = 14; + a19 = 4; + a9 = 8; + a5 = 5; + a6 = 1; + a3 = 1; + return 26; + } else if((((a2==1)&&((a21==10)&&((a19==2)&&(((((a1==14)&&(!(a11==1)||(a6==1)))&&(a9==7))||(a4==1))&&(a17==2)))))&&((((((a13==1)&&(((a5==5)||(a5==6))&&(input==5)))&&(a20==1))&&(a3==1))&&!(a18==1))&&(a16==8)))){ + a13 = 1; + a11 = 1; + a9 = 11; + a21 = 12; + a26 = 0; + a5 = 4; + a16 = 9; + a19 = 3; + return 25; + } else if(((((((a28==1)&&((a6==1)&&(a11==1)))&&(a19==3))&&(a17==2))&&(a16==8))&&((a20==1)&&((a21==10)&&((a1==12)&&(((a11==1)&&(((((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))&&(input==1))&&!(a0==1))&&(a3==1)))&&!(a0==1))))))){ + a9 = 7; + a11 = 1; + a16 = 7; + a26 = 0; + a19 = 1; + a24 = 0; + a5 = 4; + return -1; + } else if((((a14==1)||(((((((a9==11)&&(a13==1))&&(a21==10))&&(a19==3))&&(a17==2))&&(a5==5))&&(a11==1)))&&(((a1==13)&&(!(a27==1)&&(((a13==1)&&((a20==1)&&((a16==7)&&(input==1))))&&(a6==1))))&&!(a27==1)))){ + a5 = 6; + a9 = 7; + a3 = 1; + a13 = 1; + a19 = 1; + a20 = 0; + a11 = 1; + a21 = 11; + return 22; + } else if((((a21==10)&&((((a17==2)&&((a0==1)||(!(a28==1)||((a9==9)&&(((a16==9)&&(a3==1))&&!(a8==1))))))&&(a5==6))&&(a19==3)))&&(((((!(a20==1)&&(input==6))&&!(a18==1))&&(a1==13))&&(a3==1))&&(a23==1)))){ + if((a5==5)){ + a14 = 1; + a19 = 1; + a20 = 1; + a18 = 1; + a10 = 1; + a9 = 8; + a5 = 5; + a16 = 7; + }else{ + a5 = 4; + a3 = 0; + a4 = 1; + a21 = 11; + a13 = 0; + a20 = 1; + a1 = 12; + a9 = 7; + } + return 21; + } else if((((a17==2)&&((a21==12)&&((((a3==1)||!(a3==1))||!(a2==1))||!(a28==1))))&&(((a9==8)&&((a5==5)&&(((!(a8==1)&&(!(a8==1)&&((!(a20==1)&&(input==4))&&(a1==13))))&&(a16==8))&&(a11==1))))&&(a19==4)))){ + a21 = 10; + a1 = 14; + a16 = 7; + a19 = 1; + a9 = 10; + a6 = 0; + a20 = 1; + a10 = 1; + return 25; + } else if((((a16==10)&&((!(a4==1)&&((a19==2)&&((((a5==6)&&((a1==14)&&(input==5)))&&!(a20==1))&&!(a14==1))))&&!(a14==1)))&&(((!(a3==1)||((a12==1)&&(((a17==2)&&(a3==1))&&!(a7==1))))&&(a21==12))&&(a9==10)))){ + a9 = 11; + a19 = 1; + a1 = 13; + a14 = 1; + a20 = 1; + a18 = 1; + a29 = 1; + return -1; + } else if(((!(a4==1)&&((a17==2)&&((((a20==1)&&(((a3==1)&&(((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5)))&&(input==6)))&&!(a14==1)))&&!(a27==1))&&(a16==8))))&&((a21==10)&&(((((a1==13)&&(a23==1))||(a27==1))&&!(a4==1))&&(a19==4))))){ + a13 = 1; + a0 = 0; + a14 = 0; + a16 = 10; + a19 = 1; + a9 = 9; + a5 = 4; + return 25; + } else if(((((a11==1)&&((!(a28==1)||((a1==13)&&(!(a28==1)||((a21==11)&&(a13==1)))))||!(a28==1)))||(a27==1))&&(((a16==9)&&(!(a14==1)&&((a19==2)&&((a17==2)&&((((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(input==4))))))&&(a20==1)))){ + a16 = 10; + a9 = 7; + a18 = 0; + a26 = 0; + a21 = 10; + a19 = 4; + a4 = 0; + a5 = 6; + return 25; + } else if((((a21==10)&&(((a1==12)&&((a17==2)&&(((!(a8==1)&&((((a5==4)||(a5==5))&&(input==4))&&(a9==9)))&&(a16==8))&&!(a0==1))))&&!(a20==1)))&&(((a19==5)&&((a2==1)&&((!(a8==1)&&(a11==1))||(a14==1))))&&!(a14==1)))){ + a7 = 0; + a11 = 1; + a20 = 1; + a16 = 7; + a5 = 4; + a19 = 1; + a9 = 7; + a3 = 1; + return -1; + } else if((((((a1==13)&&((a16==9)&&((((input==3)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&!(a18==1))&&!(a20==1))))&&(a19==4))&&(a21==10))&&(!(a0==1)&&((a7==1)||((((a17==2)&&(!(a4==1)&&(a13==1)))||!(a23==1))||(a7==1)))))){ + a29 = 1; + a1 = 14; + a16 = 10; + a5 = 5; + a9 = 10; + a15 = 1; + a21 = 12; + return 26; + } else if(((((!(a26==1)&&((input==4)&&(a21==10)))&&!(a7==1))&&(a5==6))&&((a17==2)&&((a9==10)&&((((a19==3)&&((a1==14)&&(((a6==1)&&(((a3==1)||!(a11==1))||!(a28==1)))&&(a16==8))))&&!(a20==1))&&(a6==1)))))){ + a5 = 4; + a28 = 1; + a16 = 7; + a19 = 1; + a9 = 7; + a1 = 12; + a3 = 1; + a20 = 1; + a12 = 1; + return -1; + } else if(((!(a11==1)||((a17==2)&&((a1==12)&&((a12==1)&&(a21==11)))))&&(((((a3==1)&&(!(a20==1)&&((a19==2)&&(((a16==9)&&((input==4)&&((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9)))))&&(a28==1)))))&&!(a0==1))&&(a12==1))&&!(a14==1)))){ + a5 = 6; + a8 = 1; + a29 = 0; + a19 = 1; + a16 = 7; + a21 = 10; + a20 = 1; + a14 = 1; + a1 = 14; + a9 = 10; + return 25; + } else if((((((a16==9)&&((a19==4)&&((!(a8==1)&&((a9==8)&&(input==4)))&&(a17==2))))&&(a21==12))&&(a5==6))&&(!(a20==1)&&((a1==13)&&((a8==1)||(!(a13==1)||((!(a3==1)||((a6==1)&&(a13==1)))&&(a11==1)))))))){ + if((a12==1)){ + a16 = 8; + a9 = 10; + a21 = 10; + a8 = 1; + a20 = 1; + a19 = 3; + a29 = 1; + a5 = 5; + a13 = 0; + a1 = 14; + }else{ + a4 = 1; + a14 = 1; + a19 = 1; + a20 = 1; + a16 = 7; + a21 = 10; + a5 = 4; + a1 = 14; + a12 = 0; + } + return 25; + } else if(((((((a1==12)&&(((!(a20==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))&&(a23==1))&&!(a27==1)))&&(a11==1))&&(a16==9))&&(a19==5))&&(((!(a18==1)&&((((a6==1)&&(a17==2))||!(a6==1))&&(a12==1)))&&(a9==10))&&(a21==11)))){ + a22 = 1; + a16 = 7; + a13 = 0; + a5 = 4; + a29 = 0; + a19 = 4; + return -1; + } else if(((((a1==13)&&(!(a24==1)&&((a23==1)&&(!(a7==1)&&(((input==3)&&(a19==2))&&(a13==1))))))&&(a17==2))&&((((((((a6==1)&&(a16==9))||(a4==1))&&(a21==11))&&(a9==7))&&(a5==5))&&(a2==1))&&(a20==1)))){ + a27 = 0; + a19 = 1; + a16 = 7; + a18 = 0; + a1 = 12; + a21 = 10; + a5 = 4; + return -1; + } else if((((((a13==1)&&!(a24==1))||!(a2==1))&&(a20==1))&&((a9==9)&&(((a21==12)&&((!(a18==1)&&(((a16==11)&&(((a13==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&(a17==2)))&&!(a26==1)))&&(a1==13)))&&!(a14==1)))&&(a19==5))))){ + a19 = 1; + a21 = 10; + a23 = 1; + a5 = 4; + a11 = 1; + a9 = 7; + a16 = 7; + a0 = 0; + a1 = 12; + return -1; + } else if(((!(a18==1)&&(((((a17==2)&&((a21==11)&&((!(a4==1)&&(((a16==9)&&(input==4))&&!(a26==1)))&&(a6==1))))&&!(a24==1))&&(a2==1))&&(a1==14)))&&((((a9==8)&&((a28==1)&&(a19==1)))&&(a5==6))&&!(a20==1)))){ + a1 = 13; + a21 = 10; + a20 = 1; + a14 = 1; + a25 = 0; + a9 = 11; + a16 = 7; + a11 = 0; + a5 = 5; + return -1; + } else if((((!(a4==1)&&((a2==1)&&((!(a18==1)&&((a13==1)&&((a9==8)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&(a21==11)))))&&!(a18==1))))&&(a1==14))&&((((a16==7)&&((a17==2)&&((a3==1)&&(a3==1))))&&(a19==5))&&!(a20==1)))){ + a26 = 0; + a5 = 4; + a20 = 1; + a9 = 7; + a7 = 0; + a19 = 1; + a1 = 12; + a0 = 0; + a21 = 10; + return -1; + } else if(((!(a24==1)&&((a23==1)&&(((a1==13)&&((((input==5)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&(a19==5))&&!(a8==1)))&&!(a26==1))))&&(((a18==1)||(((a21==11)&&(!(a20==1)&&((a17==2)&&(a23==1))))&&(a16==7)))||!(a2==1)))){ + a26 = 0; + a19 = 3; + a21 = 10; + a9 = 10; + a27 = 0; + a0 = 0; + a5 = 5; + a1 = 12; + a16 = 8; + return 21; + } else if(((((a17==2)&&((((!(a8==1)&&(((a19==5)&&(input==4))&&(a28==1)))&&(a16==11))&&(a2==1))&&(a9==10)))&&(a20==1))&&((a21==10)&&((a5==6)&&(((!(a0==1)&&((a28==1)||(a26==1)))||(a7==1))&&(a1==12)))))){ + a16 = 9; + a19 = 3; + a28 = 1; + a9 = 7; + a11 = 1; + a5 = 5; + return 25; + } else if((((!(a2==1)||(((!(a20==1)&&((a19==2)&&(a3==1)))&&(a1==14))&&(a17==2)))||!(a23==1))&&((((((a9==7)&&((a16==10)&&(((a21==12)&&(input==3))&&(a5==6))))&&!(a24==1))&&!(a27==1))&&(a2==1))&&!(a26==1)))){ + a21 = 10; + a1 = 12; + a16 = 7; + a6 = 0; + a25 = 0; + a9 = 10; + a5 = 4; + a19 = 1; + a29 = 0; + a20 = 1; + return -1; + } else if((((((!(a4==1)&&((input==1)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))))&&(a16==10))&&(a3==1))&&(a2==1))&&((a19==3)&&((a21==11)&&((a17==2)&&(!(a24==1)&&(!(a20==1)&&(!(a3==1)||(((a2==1)&&(a1==13))&&!(a0==1)))))))))){ + if((a15==1)){ + a9 = 11; + a29 = 1; + a5 = 5; + a16 = 7; + a21 = 10; + a20 = 1; + a25 = 1; + a19 = 1; + a2 = 0; + }else{ + a9 = 9; + a19 = 5; + a16 = 8; + a1 = 12; + a8 = 1; + a21 = 12; + a27 = 1; + a5 = 6; + a2 = 0; + } + return -1; + } else if((((a1==13)&&((a9==10)&&(((((a17==2)&&(a23==1))||(a4==1))&&(a23==1))||(a0==1))))&&(!(a7==1)&&((a21==11)&&((((a28==1)&&((!(a20==1)&&((a19==4)&&(input==6)))&&(a5==6)))&&!(a27==1))&&(a16==7)))))){ + a19 = 2; + a5 = 4; + a21 = 10; + a16 = 9; + a20 = 1; + a2 = 1; + a1 = 14; + a8 = 0; + a13 = 1; + return 21; + } else if((((a16==8)&&((!(a28==1)||(((a28==1)&&(a28==1))||(a24==1)))&&!(a8==1)))&&((!(a20==1)&&((a1==14)&&((a17==2)&&((!(a27==1)&&((a19==4)&&((input==4)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5))))))&&!(a8==1)))))&&(a21==12)))){ + a1 = 12; + a13 = 0; + a29 = 1; + a21 = 10; + a5 = 4; + a19 = 2; + a16 = 7; + a26 = 1; + a20 = 1; + a9 = 7; + return -1; + } else if((((((a0==1)||(!(a14==1)&&(!(a14==1)&&((a21==10)&&(a28==1)))))&&(a17==2))&&(a1==12))&&(((a16==10)&&((((!(a0==1)&&(((input==4)&&(a19==3))&&!(a24==1)))&&(a20==1))&&(a5==6))&&!(a0==1)))&&(a9==9)))){ + a9 = 7; + a2 = 1; + a16 = 7; + a19 = 1; + a5 = 4; + a24 = 0; + a18 = 0; + return -1; + } else if(((((a17==2)&&((!(a11==1)||(((a28==1)||!(a12==1))&&(a19==4)))&&(a9==10)))&&(a20==1))&&(((!(a8==1)&&((a6==1)&&((a28==1)&&((a1==12)&&((a6==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))))))&&(a21==12))&&(a16==10)))){ + if((a13==1)){ + a19 = 5; + a16 = 7; + a8 = 0; + a5 = 5; + a7 = 0; + a21 = 11; + a20 = 0; + }else{ + a5 = 5; + a21 = 11; + a19 = 2; + a6 = 1; + a9 = 9; + a4 = 0; + a24 = 0; + } + return 25; + } else if(((!(a4==1)&&((a12==1)&&(((a28==1)&&((a9==9)&&((((a5==4)||(a5==5))&&(input==1))&&(a17==2))))&&(a21==11))))&&(((a12==1)&&(((a20==1)&&((((a2==1)||!(a3==1))&&(a19==3))&&!(a14==1)))&&(a1==14)))&&(a16==8)))){ + a21 = 10; + a2 = 1; + a9 = 7; + a6 = 1; + a24 = 0; + a1 = 12; + a5 = 4; + a16 = 7; + a19 = 1; + return -1; + } else if((((a17==2)&&(((a26==1)||((((a7==1)||(a6==1))||!(a23==1))&&(a11==1)))&&(a16==10)))&&((a19==1)&&((((a6==1)&&((a6==1)&&((((input==4)&&(a20==1))&&(a21==10))&&(a9==9))))&&(a5==6))&&(a1==13))))){ + a5 = 5; + a11 = 1; + a16 = 9; + a21 = 12; + a24 = 0; + a28 = 1; + a19 = 2; + return 25; + } else if((((((!(a27==1)&&((a8==1)||((a28==1)&&(a21==11))))&&!(a7==1))&&(a20==1))||(a26==1))&&(((a17==2)&&((!(a27==1)&&((input==1)&&(((((a1==12)&&(a5==5))&&(a9==7))&&(a19==3))||(((a19==2)&&(((a5==6)&&(a1==14))&&(a9==11)))||((a19==3)&&((a9==7)&&((a5==4)&&(a1==12))))))))&&(a16==9)))&&(a3==1)))){ + a21 = 10; + a1 = 12; + a2 = 1; + a16 = 7; + a19 = 1; + a5 = 4; + a14 = 0; + a24 = 0; + a9 = 7; + return -1; + } else if((((a1==14)&&((a9==8)&&((a16==9)&&(((a5==5)&&(((a21==10)&&(!(a24==1)&&(a23==1)))||(a14==1)))&&(a17==2)))))&&(!(a20==1)&&(((!(a7==1)&&((a11==1)&&((input==6)&&(a19==3))))&&!(a24==1))&&(a28==1))))){ + if((a2==1)){ + a16 = 10; + a15 = 0; + a6 = 0; + a19 = 2; + a5 = 4; + a1 = 12; + a9 = 10; + a25 = 1; + }else{ + a16 = 7; + a1 = 12; + a12 = 0; + a21 = 11; + a9 = 9; + a3 = 0; + a19 = 5; + a22 = 0; + } + return -1; + } else if((((a16==8)&&((a1==12)&&((((a11==1)&&((a28==1)&&(!(a14==1)&&(((a19==1)&&(input==4))&&(a17==2)))))&&!(a8==1))&&(a12==1))))&&((a21==10)&&((a5==5)&&(!(a20==1)&&(((a13==1)&&(a9==10))&&!(a26==1))))))){ + a16 = 7; + a13 = 1; + a9 = 7; + a20 = 1; + a4 = 0; + a5 = 4; + return -1; + } else if(((((a13==1)||!(a6==1))&&(a1==12))&&((a17==2)&&((((a19==2)&&(!(a26==1)&&(((a20==1)&&(!(a18==1)&&(!(a26==1)&&(!(a8==1)&&(((a9==9)&&(input==1))&&(a6==1))))))&&(a16==10))))&&(a5==4))&&(a21==11))))){ + a16 = 8; + a9 = 10; + a1 = 14; + a20 = 0; + a13 = 1; + a21 = 10; + a11 = 1; + a19 = 4; + a6 = 1; + return 21; + } else if(((((((a16==11)&&((a1==12)&&(((a3==1)&&((a5==5)&&(input==6)))&&(a9==8))))&&(a20==1))&&!(a0==1))&&!(a27==1))&&((!(a2==1)||(((((a13==1)&&(a17==2))||(a14==1))&&(a21==12))&&(a19==4)))&&!(a14==1)))){ + a0 = 0; + a5 = 4; + a3 = 1; + a27 = 0; + a9 = 7; + a16 = 7; + a21 = 10; + a19 = 1; + return -1; + } else if((((((a17==2)&&((a21==12)&&((!(a14==1)&&(((a11==1)&&(a19==2))&&(a16==11)))&&(a9==11))))||!(a3==1))&&(a28==1))&&((!(a14==1)&&(!(a8==1)&&((a20==1)&&((a1==12)&&((input==4)&&(a5==4))))))&&(a2==1)))){ + a21 = 10; + a16 = 7; + a11 = 1; + a6 = 1; + a9 = 7; + a7 = 0; + a19 = 1; + return -1; + } else if((((((!(a26==1)&&((((a17==2)&&(((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5)))&&(input==3)))&&(a19==2))&&(a1==13)))&&(a13==1))&&(a28==1))&&(a11==1))&&((((a21==11)&&(((a20==1)&&(a11==1))&&(a16==8)))||!(a2==1))||!(a3==1)))){ + a18 = 0; + a16 = 7; + a21 = 10; + a19 = 1; + a5 = 4; + a23 = 1; + a9 = 7; + a1 = 12; + return -1; + } else if((((a24==1)&&((((input==3)&&((a5==4)||(a5==5)))&&(a9==11))&&(a0==1)))&&(!(a13==1)&&(((a1==12)&&((a21==12)&&((((a14==1)&&(!(a2==1)&&((!(a2==1)&&(a12==1))&&(a20==1))))&&(a16==7))&&(a17==2))))&&(a19==1))))){ + a9 = 10; + a12 = 0; + a21 = 10; + a5 = 6; + a10 = 0; + a1 = 14; + a15 = 0; + return -1; + } else if(((((a2==1)&&(((a1==12)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a3==1)))&&(a17==2)))&&!(a20==1))&&((a2==1)&&(((a9==8)&&((a19==5)&&(((!(a6==1)||((a12==1)&&(a16==10)))&&(a21==10))||!(a11==1))))||(a27==1))))){ + if((a8==1)){ + a3 = 0; + a5 = 6; + a21 = 11; + a19 = 3; + a9 = 9; + a12 = 0; + a24 = 1; + a1 = 13; + }else{ + a24 = 1; + a19 = 1; + a7 = 1; + a2 = 0; + a5 = 4; + a20 = 1; + a16 = 7; + a9 = 11; + } + return -1; + } else if(((((a23==1)&&((a7==1)||((((a1==13)&&((a6==1)&&(a13==1)))&&(a9==7))&&(a16==7))))||!(a2==1))&&(!(a27==1)&&(((a17==2)&&((((a20==1)&&((input==6)&&(a19==4)))&&(a13==1))&&(a5==5)))&&(a21==11))))){ + a9 = 10; + a5 = 6; + a23 = 1; + a27 = 0; + a1 = 14; + a19 = 3; + a6 = 1; + a16 = 8; + return 21; + } else if((((a19==1)&&((a1==14)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&!(a24==1))))&&(!(a18==1)&&((a24==1)||((((!(a24==1)&&((((a17==2)&&(!(a26==1)&&(a3==1)))&&(a16==10))&&!(a20==1)))&&(a21==11))&&(a9==7))||(a8==1)))))){ + if((a1==14)){ + a0 = 1; + a5 = 5; + a21 = 10; + a22 = 1; + a19 = 4; + a1 = 12; + a16 = 7; + a29 = 1; + }else{ + a29 = 0; + a1 = 13; + a5 = 5; + a9 = 10; + a20 = 1; + a16 = 7; + a21 = 10; + a10 = 1; + a25 = 0; + } + return 21; + } else if(((!(a26==1)&&((((input==5)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(a19==2))&&(a16==10)))&&((a3==1)&&(!(a6==1)||((a8==1)||(((a1==14)&&((a12==1)&&(!(a20==1)&&(((a23==1)||(a4==1))&&(a21==10)))))&&(a17==2))))))){ + a1 = 13; + a14 = 1; + a20 = 1; + a0 = 1; + a16 = 7; + a5 = 4; + a9 = 7; + return 21; + } else if((((a1==12)&&((((!(a27==1)&&((!(a7==1)&&(!(a20==1)&&(input==1)))&&(a5==4)))&&(a6==1))&&(a16==8))&&(a3==1)))&&(!(a26==1)&&((a21==11)&&((a0==1)||(((a17==2)&&((a9==11)&&(a13==1)))&&(a19==1))))))){ + a2 = 1; + a9 = 7; + a16 = 7; + a23 = 1; + a3 = 1; + a21 = 10; + a20 = 1; + return -1; + } else if((((a1==13)&&((a26==1)||(!(a2==1)||((a17==2)&&((a13==1)||!(a28==1))))))&&((((((a23==1)&&(((a2==1)&&((((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7))))&&(input==3)))&&(a16==9)))&&(a21==10))&&!(a7==1))&&(a20==1))&&(a19==4)))){ + a9 = 7; + a26 = 0; + a1 = 12; + a19 = 1; + a16 = 7; + a24 = 0; + a3 = 1; + a5 = 4; + return -1; + } else if(((!(a4==1)&&((((((a16==8)&&((input==6)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))&&!(a27==1))&&(a12==1))&&(a19==1))&&(a20==1)))&&((a0==1)||((a12==1)&&(((((a23==1)&&(a21==10))&&(a17==2))&&(a2==1))&&(a1==14)))))){ + a23 = 1; + a1 = 12; + a9 = 7; + a5 = 4; + a16 = 7; + a4 = 0; + a27 = 0; + return -1; + } else if(((!(a23==1)||(((((((((a11==1)||!(a11==1))&&(a23==1))&&(a17==2))&&!(a20==1))&&(a9==11))||!(a6==1))&&(a19==1))||!(a6==1)))&&((a5==6)&&((a16==7)&&((a11==1)&&((a21==12)&&((input==5)&&(a1==12)))))))){ + if((a23==1)){ + a21 = 11; + a5 = 5; + a14 = 0; + a0 = 0; + a9 = 8; + a19 = 4; + a16 = 8; + a2 = 1; + }else{ + a1 = 13; + a20 = 1; + a21 = 10; + a9 = 10; + a19 = 2; + a11 = 1; + a14 = 0; + a23 = 1; + a5 = 4; + } + return 21; + } else if((((a23==1)&&((a6==1)&&((a21==12)&&((((((a5==5)||(a5==6))&&(input==6))&&(a9==7))&&!(a0==1))&&(a16==7)))))&&((a17==2)&&((((a1==13)&&((a19==3)&&(((a7==1)||(a23==1))&&!(a18==1))))||!(a28==1))&&!(a20==1))))){ + a16 = 8; + a21 = 10; + a23 = 1; + a1 = 14; + a5 = 4; + a3 = 1; + return 25; + } else if(((((((a21==10)&&((a1==13)&&(!(a18==1)&&((a11==1)&&(a16==10)))))&&!(a4==1))&&(a20==1))&&(a19==4))&&((a17==2)&&((((a3==1)&&(!(a0==1)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==5))))&&!(a27==1))&&!(a7==1))))){ + a19 = 1; + a1 = 12; + a12 = 1; + a9 = 7; + a16 = 7; + a6 = 1; + a5 = 4; + return -1; + } else if((((a19==3)&&(!(a24==1)&&(((a1==12)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==3)))&&(a11==1))))&&((a17==2)&&(((((a21==11)&&((a8==1)||((a16==9)&&((a3==1)&&(a23==1)))))&&(a20==1))||(a0==1))&&!(a26==1))))){ + a2 = 1; + a19 = 1; + a5 = 4; + a13 = 1; + a9 = 7; + a18 = 0; + a16 = 7; + a21 = 10; + return -1; + } else if((((((a0==1)||(((((a11==1)&&((((a3==1)&&!(a0==1))&&(a17==2))&&(a3==1)))&&(a19==4))&&!(a27==1))&&(a16==11)))&&(a21==10))&&!(a20==1))&&(((((a9==11)&&((a5==6)&&(a1==12)))||((a9==7)&&((a5==4)&&(a1==13))))&&(input==1))&&(a2==1)))){ + a29 = 0; + a9 = 7; + a1 = 13; + a5 = 6; + a20 = 1; + a26 = 1; + a19 = 1; + a28 = 0; + a16 = 7; + return -1; + } else if(((((a27==1)||((a21==10)&&((a16==10)&&(a23==1))))||(a7==1))&&((!(a18==1)&&((a3==1)&&(((((((a19==1)&&(((a1==14)&&(a5==6))&&(a9==11)))||((a19==2)&&((a9==7)&&((a1==12)&&(a5==4)))))&&(input==1))&&(a17==2))&&!(a14==1))&&(a20==1))))&&!(a7==1)))){ + a23 = 1; + a27 = 0; + a1 = 12; + a21 = 11; + a12 = 1; + a19 = 4; + a5 = 6; + a16 = 8; + a9 = 11; + return 25; + } else if((((a19==4)&&(((((((a3==1)&&((a13==1)&&((a6==1)&&(a16==7))))&&(a21==10))&&(a1==14))&&(a13==1))||(a18==1))&&(a17==2)))&&(!(a0==1)&&((a2==1)&&((a20==1)&&((input==6)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5))))))))){ + a14 = 0; + a5 = 4; + a9 = 7; + a24 = 0; + a1 = 12; + a3 = 1; + a19 = 1; + return -1; + } else if((((a16==9)&&((!(a18==1)&&((((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6))))&&(input==1)))&&(a23==1)))&&((a0==1)||((!(a4==1)&&((((a20==1)&&(((a17==2)&&((a3==1)&&(a21==12)))&&(a19==3)))&&(a2==1))&&(a1==13)))&&!(a24==1))))){ + a21 = 10; + a14 = 0; + a19 = 1; + a12 = 1; + a5 = 4; + a2 = 1; + a1 = 12; + a16 = 10; + a9 = 8; + return 21; + } else if(((((((a6==1)||(a14==1))&&!(a18==1))&&(a17==2))&&(a16==8))&&((a19==3)&&((a5==5)&&((a9==11)&&(!(a7==1)&&(!(a18==1)&&((a13==1)&&((((a12==1)&&((input==3)&&(a21==11)))&&!(a20==1))&&(a1==13)))))))))){ + a1 = 12; + a24 = 0; + a21 = 10; + a20 = 1; + a5 = 4; + a19 = 1; + a8 = 0; + a16 = 7; + a14 = 0; + a9 = 7; + return -1; + } else if(((((!(a14==1)&&((a21==10)&&((input==5)&&(((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))))))&&(a3==1))&&(a23==1))&&((a18==1)||((a16==10)&&(((a0==1)||((a17==2)&&(((a1==14)&&((a28==1)&&!(a0==1)))&&(a19==5))))&&(a20==1)))))){ + a5 = 4; + a9 = 7; + a8 = 0; + a19 = 1; + a2 = 1; + a1 = 12; + a16 = 7; + a23 = 1; + return -1; + } else if(((((((a9==7)&&((a23==1)&&((input==1)&&(a17==2))))&&(a23==1))&&(a16==7))&&(a19==5))&&((a5==4)&&((a21==10)&&(((a20==1)&&((a11==1)&&((a24==1)||((a6==1)&&((a6==1)&&(a11==1))))))&&(a1==13)))))){ + a3 = 1; + a1 = 12; + a19 = 1; + a26 = 0; + a13 = 1; + return -1; + } else if((((a9==7)&&(((((((a19==4)&&(((input==1)&&(a17==2))&&(a28==1)))&&(a28==1))&&!(a26==1))&&!(a27==1))&&(a16==11))&&(a20==1)))&&(((a1==13)&&((a21==11)&&(((a11==1)||!(a28==1))&&!(a26==1))))&&(a5==5)))){ + a19 = 2; + a16 = 10; + a9 = 8; + a2 = 1; + a7 = 0; + a21 = 12; + a3 = 1; + return 21; + } else if((((a16==9)&&(!(a13==1)||(!(a20==1)&&(!(a3==1)||(!(a26==1)&&((a21==10)&&(((a3==1)&&(a11==1))||(a26==1))))))))&&(((a17==2)&&(((a19==4)&&(((a1==14)&&(input==6))&&(a9==10)))&&!(a24==1)))&&(a5==5)))){ + if((a26==1)){ + a16 = 7; + a9 = 8; + a8 = 1; + a19 = 1; + a5 = 6; + a20 = 1; + a0 = 1; + a15 = 0; + a1 = 12; + }else{ + a16 = 10; + a9 = 9; + a20 = 1; + a1 = 12; + a25 = 1; + a21 = 12; + a19 = 2; + a18 = 1; + } + return -1; + } else if((((!(a24==1)&&((a16==8)&&((a13==1)&&((a5==6)&&((!(a20==1)&&(input==5))&&(a9==11))))))&&(a23==1))&&(((a17==2)&&((((((a27==1)||(a2==1))&&(a21==10))&&(a1==14))&&(a19==2))||!(a11==1)))||!(a2==1)))){ + a5 = 4; + a23 = 1; + a20 = 1; + a9 = 7; + a7 = 0; + a19 = 5; + a26 = 0; + return -1; + } else if((((a19==1)&&(((a20==1)&&((a3==1)&&((a5==6)&&(a28==1))))&&(a1==12)))&&(((((((a17==2)&&(((a21==12)&&((a16==10)&&(input==1)))&&(a28==1)))&&(a13==1))&&!(a24==1))&&!(a7==1))&&(a9==7))&&(a13==1)))){ + a16 = 7; + a21 = 10; + a5 = 4; + a12 = 1; + a24 = 0; + a28 = 1; + return -1; + } else if((((!(a7==1)&&(((a16==11)&&((a1==12)&&(((a5==4)&&((a9==8)&&(input==6)))&&!(a27==1))))&&(a17==2)))&&(a2==1))&&(((a26==1)||((a19==1)&&((a21==10)&&(((a23==1)&&(a20==1))&&!(a27==1)))))||!(a23==1)))){ + a16 = 7; + a1 = 14; + a27 = 0; + a24 = 0; + a5 = 6; + a19 = 4; + a9 = 10; + a26 = 0; + return 25; + } else if((((a16==10)&&(!(a2==1)||((((((a6==1)&&(a11==1))&&(a19==1))&&(a17==2))||!(a3==1))&&(a1==12))))&&((a21==11)&&((a20==1)&&(((a12==1)&&(((((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(input==5))&&(a3==1)))&&!(a8==1)))))){ + a20 = 0; + a5 = 4; + a11 = 1; + a19 = 4; + a16 = 7; + a13 = 1; + a9 = 8; + a7 = 0; + return 25; + } else if((((((!(a26==1)&&((a13==1)&&(((a1==13)&&(input==6))&&(a13==1))))&&(a19==4))&&(a21==10))&&(a17==2))&&((!(a20==1)&&(((!(a12==1)||((a3==1)&&((a12==1)&&!(a8==1))))&&(a16==9))&&(a9==7)))&&(a5==6)))){ + a13 = 0; + a16 = 7; + a1 = 14; + a19 = 1; + a26 = 1; + a9 = 9; + a12 = 0; + a20 = 1; + return -1; + } else if((((((a3==1)&&((a19==3)&&((a11==1)&&((a1==13)&&(a13==1)))))&&(a2==1))&&(a21==11))&&(!(a20==1)&&(((a16==7)&&((a6==1)&&((a2==1)&&(!(a0==1)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==5))))))&&(a17==2))))){ + a1 = 14; + a7 = 0; + a16 = 10; + a5 = 6; + a13 = 1; + a20 = 1; + a21 = 10; + a19 = 2; + a9 = 7; + a11 = 1; + return 21; + } else if((((a16==11)&&((a21==10)&&((a24==1)||((a13==1)&&!(a26==1)))))&&((a9==10)&&((((((((((input==1)&&(a20==1))&&(a19==3))&&!(a18==1))&&(a17==2))&&(a1==14))&&!(a0==1))&&(a5==5))&&!(a27==1))&&!(a4==1))))){ + a6 = 1; + a19 = 1; + a5 = 4; + a1 = 12; + a7 = 0; + a9 = 7; + a13 = 1; + a16 = 7; + return -1; + } else if((((a21==11)&&(((a9==9)&&((a23==1)&&(!(a27==1)&&((a23==1)&&(((a17==2)&&(input==1))&&(a19==5))))))&&(a20==1)))&&(((a5==5)&&((a1==12)&&(!(a8==1)&&((a12==1)&&((a24==1)||(a3==1))))))&&(a16==7)))){ + a9 = 7; + a18 = 0; + a19 = 1; + a16 = 8; + a1 = 13; + a5 = 6; + a21 = 12; + a7 = 0; + return 26; + } else if((((a17==2)&&(((a16==7)&&(((a3==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1)))&&(a21==11)))&&(a13==1)))&&((a19==1)&&(((!(a7==1)&&((a7==1)||(((a20==1)&&(!(a8==1)&&(a12==1)))&&(a9==8))))&&!(a14==1))&&(a1==13))))){ + a21 = 10; + a4 = 0; + a6 = 1; + a27 = 0; + a16 = 8; + a5 = 5; + a1 = 12; + a9 = 10; + return 22; + } else if((((a19==4)&&(((a6==1)&&(((a3==1)&&((input==6)&&(a16==11)))&&!(a26==1)))&&!(a24==1)))&&((!(a3==1)||((a20==1)&&((a9==11)&&((a21==12)&&((a26==1)||((a5==6)&&((a11==1)&&(a1==13))))))))&&(a17==2)))){ + a5 = 4; + a16 = 7; + a8 = 0; + a21 = 10; + a9 = 7; + a1 = 12; + a23 = 1; + a19 = 1; + a18 = 0; + return -1; + } else if((((a1==12)&&(!(a26==1)&&((a16==11)&&(((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5)))&&(input==5)))))&&(!(a12==1)||(!(a20==1)&&((a19==4)&&(((((a4==1)||(((a23==1)&&(a17==2))&&!(a24==1)))&&(a21==10))||!(a23==1))||(a27==1))))))){ + a29 = 1; + a11 = 0; + a5 = 5; + a20 = 1; + a9 = 8; + a16 = 7; + a1 = 13; + a19 = 1; + a27 = 1; + return 25; + } else if((((a6==1)&&((a21==10)&&((input==1)&&(a9==8))))&&((a1==12)&&((a5==5)&&((((((a16==10)&&(((((a28==1)&&(a6==1))&&!(a20==1))||(a24==1))||!(a6==1)))&&(a19==4))&&(a17==2))||!(a2==1))||!(a3==1)))))){ + if((a4==1)){ + a10 = 1; + a16 = 8; + a9 = 9; + a5 = 4; + a28 = 0; + a19 = 5; + a21 = 12; + a20 = 1; + a15 = 0; + }else{ + a23 = 0; + a9 = 7; + a1 = 13; + a5 = 4; + a19 = 2; + a0 = 1; + a15 = 0; + a16 = 7; + a20 = 1; + } + return -1; + } else if((((a13==1)&&((!(a6==1)||(((!(a2==1)||(a3==1))&&(a2==1))&&(a16==10)))&&(a21==10)))&&((a2==1)&&((a17==2)&&((a19==3)&&(!(a7==1)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&(a1==14))&&(a9==9))&&(a20==1)))))))){ + a5 = 4; + a9 = 7; + a19 = 1; + a8 = 0; + a3 = 1; + a1 = 12; + a28 = 1; + a16 = 7; + return -1; + } else if((((a16==10)&&(((a19==4)&&(((a28==1)&&(((((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6))))&&(input==5))&&!(a8==1)))&&!(a14==1)))&&(a1==13)))&&((a21==10)&&((((a20==1)&&(((a23==1)&&(a28==1))&&(a28==1)))||!(a28==1))&&(a17==2))))){ + a5 = 4; + a9 = 10; + a16 = 8; + a24 = 0; + a21 = 11; + a1 = 12; + a0 = 0; + a8 = 0; + return 26; + } else if(((((a19==4)&&((a24==1)||(((a28==1)&&(a28==1))&&(a1==13))))&&(a6==1))&&((!(a7==1)&&((a3==1)&&(((a21==12)&&((a16==7)&&(((a20==1)&&(((a5==5)||(a5==6))&&(input==1)))&&(a9==7))))&&(a17==2))))&&(a11==1)))){ + a1 = 12; + a21 = 10; + a19 = 1; + a24 = 0; + a5 = 4; + a18 = 0; + a13 = 1; + return -1; + } else if(((((((((a8==1)||(((a23==1)||!(a13==1))||(a4==1)))&&(a17==2))&&(a16==7))&&!(a18==1))||!(a11==1))&&(a21==11))&&((a19==4)&&((a20==1)&&((((a9==10)&&(((a5==4)||(a5==5))&&(input==1)))&&(a6==1))&&(a1==13)))))){ + a6 = 1; + a7 = 0; + a5 = 4; + a9 = 7; + a24 = 0; + a21 = 10; + a19 = 1; + a1 = 12; + return -1; + } else if(((((a8==1)||(((a11==1)&&(a16==9))&&(a21==11)))&&(a28==1))&&((((((((((input==6)&&((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a5==4)&&(a9==9))))&&(a20==1))&&(a17==2))&&(a19==5))&&(a1==14))&&!(a0==1))&&(a13==1))&&!(a14==1))&&(a6==1)))){ + if((a2==1)){ + a11 = 1; + a7 = 0; + a20 = 0; + a9 = 8; + a16 = 8; + a1 = 12; + a5 = 5; + a19 = 4; + a3 = 1; + }else{ + a5 = 4; + a21 = 10; + a19 = 2; + a0 = 0; + a16 = 7; + a4 = 0; + a9 = 10; + a24 = 0; + a1 = 13; + } + return 21; + } else if(((((a3==1)&&((((a16==8)&&((a9==10)&&(((input==5)&&((a5==4)||(a5==5)))&&(a12==1))))&&(a17==2))&&(a12==1)))&&!(a18==1))&&(!(a20==1)&&((a1==14)&&(((a19==3)&&(!(a2==1)||(!(a3==1)||(a12==1))))&&(a21==10)))))){ + a5 = 4; + a20 = 1; + a19 = 1; + a1 = 12; + a16 = 7; + a13 = 1; + a27 = 0; + a9 = 7; + a6 = 1; + return -1; + } else if(((((((a21==11)&&(((((input==4)&&((a5==4)||(a5==5)))&&(a1==14))&&(a3==1))&&(a11==1)))&&(a13==1))&&(a17==2))&&(a20==1))&&((!(a3==1)||((!(a3==1)||((!(a6==1)||(a23==1))&&(a16==9)))&&(a19==3)))&&(a9==7)))){ + a16 = 7; + a7 = 0; + a18 = 0; + a19 = 1; + a13 = 1; + a5 = 4; + a1 = 12; + a21 = 10; + return -1; + } else if((((a20==1)&&((((((((a3==1)&&(a19==1))&&(a23==1))&&(a23==1))&&!(a27==1))&&(a16==7))&&(a13==1))&&(a21==11)))&&(((!(a14==1)&&((a17==2)&&(!(a27==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5)))))))&&(a9==10))&&(a1==14)))){ + a5 = 4; + a27 = 0; + a9 = 9; + a19 = 2; + a1 = 12; + a21 = 10; + a16 = 8; + a18 = 0; + a4 = 0; + return 21; + } else if(((((a16==8)&&((!(a4==1)&&(((a19==3)&&((a3==1)&&!(a20==1)))&&(a11==1)))&&(a1==12)))||(a8==1))&&(!(a8==1)&&(!(a14==1)&&((((a21==12)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&!(a7==1)))&&(a17==2))&&(a9==7)))))){ + a26 = 1; + a20 = 1; + a21 = 10; + a16 = 9; + a9 = 10; + a19 = 4; + a5 = 4; + a22 = 0; + a10 = 0; + return -1; + } else if(((((((((input==6)&&(a1==12))&&(a5==5))&&(a17==2))&&!(a14==1))&&(a21==12))&&(a9==11))&&(((a12==1)&&(((((a16==7)&&((a19==5)&&((a28==1)&&(a6==1))))||(a24==1))&&!(a20==1))||!(a23==1)))&&(a3==1)))){ + a16 = 8; + a13 = 1; + a21 = 11; + a7 = 0; + a28 = 1; + a20 = 1; + return 23; + } else if(((((((a21==12)&&((((a16==10)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&(a1==12))&&!(a0==1)))&&(a6==1))&&(a2==1))&&(a13==1))&&(((a27==1)||((((a9==8)&&((a19==2)&&(a3==1)))&&!(a20==1))&&(a17==2)))&&!(a8==1)))){ + a15 = 0; + a21 = 10; + a19 = 3; + a5 = 4; + a16 = 9; + a22 = 1; + a7 = 1; + return -1; + } else if((((a21==12)&&((a6==1)&&(a3==1)))&&((((!(a14==1)&&((((a23==1)&&((a11==1)&&(((a16==7)&&(!(a0==1)&&((a9==7)&&(input==4))))&&!(a14==1))))&&(a20==1))&&(a19==5)))&&(a17==2))&&(a1==12))&&(a5==6)))){ + a18 = 0; + a11 = 1; + a5 = 4; + a27 = 0; + a21 = 10; + a19 = 1; + return -1; + } else if((((a19==3)&&((a9==9)&&(((((((((a24==1)||((a12==1)&&(a3==1)))||(a14==1))&&(a17==2))||(a14==1))&&(a16==8))&&(a20==1))||(a24==1))&&(a5==5))))&&((a1==13)&&((a2==1)&&((input==5)&&(a21==11)))))){ + a26 = 0; + a7 = 0; + a2 = 1; + a19 = 1; + a16 = 10; + a1 = 12; + a5 = 4; + return 21; + } else if((((a8==1)||((((a17==2)&&(((a28==1)&&(a1==13))&&!(a27==1)))&&(a5==5))||!(a3==1)))&&(((((a21==12)&&(((((a16==7)&&(input==1))&&(a19==3))&&(a28==1))&&(a20==1)))&&(a3==1))&&(a9==10))&&(a12==1)))){ + a3 = 1; + a19 = 5; + a5 = 6; + a16 = 9; + a21 = 10; + a11 = 1; + a2 = 1; + a9 = 9; + return 21; + } else if((((!(a18==1)&&((a19==4)&&((a1==13)&&((a13==1)&&(a17==2)))))&&(a21==12))&&(((a16==8)&&((a6==1)&&((a13==1)&&(!(a20==1)&&((a13==1)&&((a12==1)&&(((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))&&(input==3))))))))&&!(a7==1)))){ + if((a4==1)){ + a21 = 11; + a20 = 1; + a18 = 1; + a16 = 11; + a5 = 6; + a25 = 1; + a9 = 11; + a15 = 1; + }else{ + a24 = 1; + a1 = 14; + a14 = 1; + a9 = 7; + a20 = 1; + a19 = 1; + a5 = 6; + a16 = 7; + a21 = 10; + a25 = 0; + } + return 26; + } else if((((a28==1)&&((a19==2)&&(!(a27==1)&&(!(a28==1)||(a11==1)))))&&((a1==14)&&((a21==12)&&((a17==2)&&((a20==1)&&((a9==9)&&(!(a8==1)&&(!(a4==1)&&(((a16==8)&&((input==6)&&((a5==5)||(a5==6))))&&(a11==1))))))))))){ + a28 = 1; + a8 = 0; + a5 = 4; + a13 = 1; + a1 = 12; + a19 = 1; + a21 = 10; + a9 = 7; + a16 = 7; + return -1; + } else if((((a16==7)&&((a6==1)&&((a19==5)&&(!(a14==1)&&((((a1==12)&&(((input==3)&&(((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))))&&!(a7==1)))&&(a13==1))&&(a13==1))))))&&(!(a20==1)&&(((a21==11)&&(!(a13==1)||(a13==1)))&&(a17==2))))){ + a9 = 7; + a20 = 1; + a19 = 1; + a6 = 1; + a21 = 10; + a7 = 0; + a5 = 4; + return -1; + } else if((((((a3==1)&&((a21==11)&&((a19==5)&&((a16==7)&&((a20==1)&&(!(a24==1)&&((input==3)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))))))))&&(a28==1))&&(a3==1))&&(!(a6==1)||((a3==1)&&(((a12==1)&&(a1==14))&&(a17==2)))))){ + a24 = 0; + a23 = 1; + a4 = 0; + a21 = 10; + a19 = 1; + a5 = 4; + a1 = 12; + a9 = 7; + return -1; + } else if((((a9==8)&&((!(a24==1)&&((a11==1)&&((a12==1)&&((input==4)&&(a1==13)))))&&!(a20==1)))&&(((((((((a27==1)||(a13==1))||(a0==1))&&(a19==1))&&(a13==1))&&(a17==2))&&(a21==12))&&(a16==9))&&(a5==5)))){ + a21 = 10; + a19 = 2; + a16 = 7; + a9 = 9; + a26 = 1; + a4 = 1; + a12 = 0; + a1 = 12; + a5 = 6; + a20 = 1; + return -1; + } else if((((a9==9)&&(!(a14==1)&&(!(a14==1)&&((a12==1)&&(((!(a0==1)&&(((a16==8)&&((input==4)&&((a5==4)||(a5==5))))&&(a1==13)))&&(a19==2))&&(a28==1))))))&&(((a21==12)&&(((a28==1)||!(a13==1))&&(a17==2)))&&(a20==1)))){ + a9 = 7; + a21 = 10; + a0 = 0; + a13 = 1; + a1 = 12; + a16 = 7; + a5 = 4; + a19 = 1; + a2 = 1; + return -1; + } else if((((a13==1)&&(!(a20==1)&&((a2==1)&&(a21==10))))&&(!(a0==1)&&(!(a24==1)&&((((((a2==1)&&((a13==1)&&(((input==5)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5))))&&(a1==12))))&&(a17==2))&&(a19==5))&&(a16==7))&&!(a27==1)))))){ + a1 = 13; + a11 = 1; + a18 = 0; + a9 = 7; + a5 = 6; + a13 = 1; + return 26; + } else if((((a20==1)&&((((a28==1)&&!(a26==1))&&!(a26==1))&&(a21==10)))&&(((a17==2)&&((a16==10)&&(((a6==1)&&(!(a27==1)&&((a6==1)&&(((input==3)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5))))&&(a19==2)))))&&!(a27==1))))&&(a1==12)))){ + a9 = 7; + a4 = 0; + a16 = 7; + a19 = 1; + a5 = 4; + a3 = 1; + return -1; + } else if((((!(a20==1)&&((((((a16==8)&&(input==1))&&(a19==5))&&(a17==2))&&(a2==1))&&(a13==1)))&&(a21==10))&&((((a0==1)||(((a1==12)&&(!(a13==1)||(!(a0==1)&&(a11==1))))&&(a5==6)))&&!(a8==1))&&(a9==11)))){ + a3 = 1; + a1 = 14; + a19 = 2; + a16 = 9; + a20 = 1; + a21 = 12; + a11 = 1; + return 21; + } else if((((((((a28==1)&&((a1==12)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==5))))&&(a21==11))&&!(a14==1))&&(a20==1))&&(a12==1))&&(((a17==2)&&((((a16==10)&&((a19==5)&&(a11==1)))&&!(a0==1))||!(a6==1)))&&!(a24==1)))){ + a1 = 14; + a7 = 0; + a21 = 12; + a23 = 1; + a16 = 8; + a9 = 8; + a5 = 5; + return -1; + } else if((((((((a1==12)&&((a12==1)&&((a28==1)&&((a16==10)&&(input==6)))))&&(a21==12))&&(a9==10))&&(a5==6))&&(a17==2))&&(((((!(a12==1)||(!(a12==1)||(a12==1)))||!(a3==1))&&(a20==1))&&!(a7==1))&&(a19==5)))){ + a1 = 14; + a26 = 0; + a18 = 0; + a19 = 4; + a16 = 7; + a21 = 10; + a2 = 1; + return 25; + } else if(((((a11==1)&&((a19==2)&&((a17==2)&&(((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==3))&&(a28==1)))))&&!(a8==1))&&(!(a23==1)||(!(a20==1)&&((a1==14)&&((!(a13==1)||(((a21==12)&&(a11==1))||(a26==1)))&&(a16==9))))))){ + if((a7==1)){ + a1 = 13; + a22 = 1; + a19 = 3; + a7 = 1; + a20 = 1; + a9 = 10; + a5 = 6; + a16 = 11; + }else{ + a19 = 1; + a27 = 1; + a1 = 13; + a5 = 6; + a20 = 1; + a9 = 7; + a22 = 1; + a16 = 7; + a29 = 1; + a21 = 10; + } + return 23; + } else if(((!(a2==1)||((a20==1)&&(((a16==7)&&(((a8==1)||((a11==1)||(a27==1)))&&(a1==14)))&&(a17==2))))&&((((a3==1)&&(((a23==1)&&(((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&(a9==11)))&&!(a18==1)))&&(a21==10))&&(a19==2)))){ + a9 = 7; + a7 = 0; + a28 = 1; + a6 = 1; + a5 = 4; + a19 = 1; + a1 = 12; + return -1; + } else if((((a1==12)&&(!(a8==1)&&((a21==11)&&(((a13==1)&&(!(a20==1)&&((a17==2)&&(input==4))))&&(a5==5)))))&&((((a12==1)&&((a4==1)||((!(a13==1)||((a26==1)||(a12==1)))&&(a16==10))))&&(a9==8))&&(a19==3)))){ + a9 = 10; + a1 = 14; + a27 = 1; + a19 = 1; + a5 = 4; + a20 = 1; + a21 = 10; + a11 = 0; + a16 = 7; + return -1; + } else if((((((a16==10)&&((a9==9)&&((!(a23==1)||(((a2==1)&&(a19==2))&&(a1==12)))&&(a21==12))))||!(a2==1))||!(a28==1))&&(((((a2==1)&&((a20==1)&&(((a5==5)||(a5==6))&&(input==5))))&&(a17==2))&&(a28==1))&&(a23==1)))){ + a16 = 8; + a2 = 1; + a19 = 5; + a21 = 10; + a12 = 1; + a9 = 11; + a20 = 0; + a7 = 0; + a5 = 5; + return 21; + } else if((((a27==1)&&((!(a3==1)&&((a19==3)&&(a13==1)))&&(a21==11)))&&(!(a3==1)&&((a27==1)&&((a1==12)&&(((a16==9)&&(!(a12==1)&&(((a20==1)&&((input==5)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))))&&!(a11==1))))&&(a17==2))))))){ + a19 = 5; + a4 = 1; + a21 = 12; + a5 = 6; + a9 = 10; + a16 = 7; + return 26; + } else if((((a19==5)&&((a17==2)&&((!(a6==1)||(a13==1))&&!(a20==1))))&&(((a12==1)&&((a1==14)&&((((a3==1)&&(!(a14==1)&&(!(a27==1)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==5)))))&&!(a4==1))&&(a16==7))))&&(a21==10)))){ + a23 = 1; + a9 = 7; + a19 = 1; + a5 = 4; + a26 = 0; + a20 = 1; + a1 = 12; + return -1; + } else if((((a19==2)&&((a27==1)&&(((((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a6==1))&&(a17==2))&&(a14==1))))&&(((a21==10)&&((a9==10)&&((((((a28==1)&&(a1==12))&&(a14==1))&&!(a2==1))&&(a20==1))&&(a0==1))))&&(a16==9)))){ + a9 = 11; + a21 = 11; + a16 = 8; + a22 = 1; + a24 = 1; + a28 = 0; + a19 = 3; + a5 = 6; + return 22; + } else if(((((a21==10)&&(((a17==2)&&((((a1==12)&&((((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==4)))&&(a28==1))&&(a19==3)))&&!(a8==1)))&&!(a4==1))&&((a20==1)&&(((a16==8)&&((a2==1)&&((a2==1)||!(a2==1))))&&!(a0==1))))){ + a18 = 0; + a9 = 7; + a5 = 4; + a2 = 1; + a16 = 7; + a19 = 1; + return -1; + } else if((((a16==10)&&((a12==1)&&(!(a18==1)&&(((a28==1)&&(((input==5)&&(a17==2))&&(a2==1)))&&(a5==6)))))&&((a1==12)&&((!(a26==1)&&(((a19==2)&&((a20==1)&&((a23==1)&&(a21==11))))||(a7==1)))&&(a9==7))))){ + a5 = 4; + a19 = 1; + a6 = 1; + a0 = 0; + a24 = 0; + a16 = 7; + a21 = 10; + return -1; + } else if((((a24==1)||(((((a11==1)&&(a21==11))||!(a2==1))||(a7==1))&&!(a0==1)))&&((((a16==8)&&((((a3==1)&&((a1==14)&&(((input==5)&&((a5==5)||(a5==6)))&&(a19==4))))&&(a20==1))&&(a9==9)))&&(a17==2))&&!(a4==1)))){ + a21 = 10; + a0 = 0; + a1 = 12; + a19 = 1; + a9 = 7; + a16 = 7; + a28 = 1; + a5 = 4; + return -1; + } else if((((a6==1)&&((((a17==2)&&((a20==1)&&(((a6==1)&&((input==1)&&(((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))))&&!(a4==1))))&&(a3==1))&&!(a7==1)))&&((((((a21==11)&&(a12==1))&&(a1==14))&&(a19==2))&&(a16==10))||(a14==1)))){ + a16 = 7; + a12 = 1; + a21 = 10; + a9 = 8; + a7 = 0; + a5 = 6; + a27 = 0; + return -1; + } else if(((!(a0==1)&&((a17==2)&&(!(a14==1)&&((!(a0==1)&&(((a19==2)&&((input==3)&&((a5==5)||(a5==6))))&&!(a7==1)))&&(a1==12)))))&&(!(a20==1)&&((a21==12)&&((a9==10)&&(((a16==10)&&((a3==1)&&(a28==1)))||(a24==1))))))){ + a21 = 11; + a16 = 8; + a5 = 4; + a1 = 13; + a19 = 3; + a10 = 0; + a26 = 1; + a20 = 1; + a9 = 11; + return -1; + } return calculate_output32(input); + } + + int calculate_output32(int input) { + if(((((a20==1)&&(((a6==1)&&((a23==1)&&((((a5==4)||(a5==5))&&(input==6))&&(a1==13))))&&(a23==1)))&&(a9==11))&&((((a19==3)&&(((!(a12==1)||(!(a23==1)||(a12==1)))&&(a16==9))||!(a3==1)))&&(a21==11))&&(a17==2)))){ + a19 = 4; + a9 = 7; + a1 = 12; + a5 = 6; + a2 = 1; + a23 = 1; + return 21; + } else if((((a21==12)&&((a8==1)||(((((a5==5)&&((a23==1)&&(a13==1)))&&!(a20==1))&&(a17==2))||!(a6==1))))&&(!(a26==1)&&((a2==1)&&(!(a24==1)&&(((((a1==12)&&(input==1))&&(a9==11))&&(a16==10))&&(a19==4))))))){ + a25 = 0; + a16 = 7; + a9 = 9; + a27 = 1; + a5 = 6; + a20 = 1; + a21 = 10; + a19 = 2; + a11 = 0; + return -1; + } else if(((!(a8==1)&&(!(a18==1)&&(((a20==1)&&((a1==12)&&((a21==11)&&(a28==1))))||!(a12==1))))&&((a19==4)&&((a28==1)&&(!(a24==1)&&(!(a18==1)&&(((a16==8)&&((a9==11)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a17==2)))))))){ + a9 = 9; + a21 = 10; + a1 = 13; + a2 = 1; + a19 = 5; + a5 = 5; + return -1; + } else if(((((a19==2)&&((a16==7)&&((a17==2)&&(((a9==11)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a3==1)))))&&!(a12==1))&&(!(a3==1)&&(((a1==14)&&((((a14==1)&&((a6==1)&&(a26==1)))&&(a21==12))&&!(a20==1)))&&!(a2==1))))){ + a19 = 1; + a5 = 6; + a18 = 1; + a3 = 0; + a6 = 0; + a20 = 1; + a16 = 9; + a21 = 10; + return -1; + } else if(((!(a6==1)||(((((!(a20==1)&&((a21==11)&&((a28==1)&&(a19==3))))&&(a1==12))&&!(a4==1))&&(a6==1))&&(a3==1)))&&((((a17==2)&&(((a12==1)&&((input==5)&&((a5==6)||((a5==4)||(a5==5)))))&&(a9==10)))&&(a16==7))&&!(a24==1)))){ + a19 = 1; + a20 = 1; + a6 = 1; + a9 = 7; + a5 = 4; + a21 = 10; + a23 = 1; + return -1; + } else if((((((a20==1)&&((a16==9)&&(!(a27==1)&&((((a5==5)||(a5==6))&&(input==1))&&(a21==11)))))&&(a17==2))&&(a2==1))&&(!(a11==1)||(((a9==10)&&(((((a1==12)&&(a11==1))&&(a6==1))||!(a23==1))&&(a19==3)))||!(a28==1))))){ + a9 = 11; + a1 = 13; + a7 = 0; + a5 = 4; + a16 = 10; + a19 = 1; + a21 = 10; + a14 = 0; + a3 = 1; + return 21; + } else if(((((a3==1)&&((a1==13)&&((a19==3)&&(((!(a26==1)&&(!(a26==1)&&((input==3)&&(a20==1))))&&(a9==11))&&(a5==5)))))&&(a21==10))&&(!(a14==1)&&((a17==2)&&(!(a2==1)||(((a3==1)||(a14==1))&&(a16==7))))))){ + a5 = 4; + a1 = 12; + a3 = 1; + a18 = 0; + a19 = 1; + a9 = 7; + a4 = 0; + return -1; + } else if(((((a9==11)&&(((!(a7==1)&&((a20==1)&&(a3==1)))&&(a17==2))&&(a12==1)))||(a18==1))&&(!(a27==1)&&((a28==1)&&(!(a7==1)&&(((a16==8)&&(((((a5==5)||(a5==6))&&(input==3))&&(a21==12))&&(a1==14)))&&(a19==4))))))){ + a21 = 10; + a0 = 0; + a16 = 7; + a5 = 4; + a14 = 0; + a24 = 0; + a19 = 2; + return 21; + } else if((((a5==6)&&((a9==10)&&((a21==11)&&(((input==1)&&(a1==14))&&(a17==2)))))&&(!(a23==1)||((((!(a2==1)||(((a7==1)||(((a2==1)&&(a16==8))||!(a2==1)))&&(a20==1)))&&(a19==2))||!(a11==1))||(a8==1))))){ + a9 = 11; + a1 = 12; + a5 = 5; + a28 = 1; + a21 = 10; + a23 = 1; + a16 = 10; + a19 = 5; + return 23; + } else if((((a16==10)&&(!(a27==1)&&(((a21==12)&&((a17==2)&&(((a6==1)&&((a23==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3))))&&!(a8==1))))&&(a20==1))))&&(((a19==1)&&((((a12==1)||(a8==1))&&(a9==8))&&!(a4==1)))&&(a1==12)))){ + a4 = 0; + a5 = 4; + a11 = 1; + a9 = 7; + a16 = 7; + a21 = 10; + a28 = 1; + return -1; + } else if(((!(a14==1)&&((((!(a2==1)||((a21==10)&&(((a13==1)||!(a28==1))&&!(a18==1))))&&(a5==4))&&(a16==10))&&(a17==2)))&&(((a19==5)&&(((a9==7)&&(!(a20==1)&&((a1==14)&&(input==3))))&&(a6==1)))&&(a3==1)))){ + a16 = 7; + a9 = 11; + a10 = 1; + a19 = 1; + a1 = 13; + a5 = 6; + a3 = 0; + a20 = 1; + a15 = 0; + return -1; + } else if(((((a19==3)&&(!(a13==1)||(a3==1)))&&(a9==10))&&(((a16==8)&&((a2==1)&&((a20==1)&&(((a21==12)&&((a3==1)&&(!(a14==1)&&((a1==13)&&(!(a18==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3)))))))&&!(a27==1)))))&&(a17==2)))){ + a8 = 0; + a9 = 7; + a1 = 12; + a24 = 0; + a23 = 1; + a16 = 7; + a21 = 10; + a5 = 4; + a19 = 1; + return -1; + } else if(((((a11==1)&&((((((a21==10)&&((input==4)&&((((a9==11)&&((a1==14)&&(a5==6)))&&(a19==4))||(((a9==7)&&((a1==12)&&(a5==4)))&&(a19==5)))))&&(a17==2))&&(a28==1))&&(a16==11))&&(a13==1)))&&!(a27==1))&&(!(a13==1)||(((a23==1)&&!(a4==1))&&(a20==1))))){ + a1 = 12; + a5 = 4; + a28 = 1; + a6 = 1; + a9 = 7; + a19 = 1; + a2 = 1; + a16 = 7; + return -1; + } else if(((!(a14==1)&&(((a3==1)&&(!(a7==1)&&(!(a20==1)&&(((((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9)))&&(input==4))&&(a16==7))&&(a2==1)))))&&(a1==13)))&&((((a19==1)&&(!(a7==1)&&((a12==1)&&(a17==2))))&&(a21==10))||(a24==1)))){ + a20 = 1; + a21 = 12; + a9 = 11; + a8 = 0; + a5 = 6; + a16 = 10; + a0 = 0; + a19 = 5; + return 25; + } else if((((a9==8)&&((a1==12)&&(((!(a26==1)&&((a17==2)&&(input==1)))&&(a21==12))&&(a5==4))))&&((a12==1)&&(!(a13==1)||((a19==5)&&(((((a16==7)&&((a13==1)||(a8==1)))||(a27==1))||!(a3==1))&&(a20==1))))))){ + a13 = 1; + a9 = 7; + a21 = 10; + a27 = 0; + a23 = 1; + a19 = 1; + return -1; + } else if((((((a5==5)&&(((a1==14)&&(a6==1))&&(a24==1)))&&(a16==7))&&!(a3==1))&&((a19==5)&&((a21==11)&&(((a20==1)&&((a18==1)&&(!(a23==1)&&((((input==1)&&(a9==7))&&(a17==2))&&(a0==1)))))&&(a14==1)))))){ + a19 = 2; + a9 = 11; + a1 = 12; + a25 = 0; + a22 = 0; + a5 = 4; + a10 = 1; + a21 = 10; + return -1; + } else if((((a7==1)||(!(a6==1)||(!(a14==1)&&((!(a20==1)&&((a13==1)&&(a1==14)))||!(a2==1)))))&&(!(a27==1)&&(((a21==12)&&((a19==5)&&((a16==8)&&(((((a5==5)||(a5==6))&&(input==4))&&(a17==2))&&(a9==10)))))&&!(a18==1))))){ + a20 = 1; + a19 = 3; + a25 = 1; + a15 = 0; + a16 = 9; + a13 = 0; + a5 = 5; + a1 = 12; + return -1; + } else if((((!(a3==1)||((((a6==1)&&((a19==3)&&((a28==1)||(a27==1))))&&!(a14==1))||!(a13==1)))&&(a17==2))&&((a1==12)&&((a9==11)&&((a16==9)&&((!(a8==1)&&(!(a20==1)&&((input==5)&&((a5==5)||(a5==6)))))&&(a21==10))))))){ + if((a29==1)){ + a7 = 1; + a19 = 5; + a20 = 1; + a16 = 11; + a5 = 5; + a24 = 1; + a15 = 1; + a9 = 9; + }else{ + a10 = 0; + a28 = 0; + a9 = 9; + a20 = 1; + a5 = 4; + a19 = 1; + a29 = 0; + a16 = 7; + } + return 23; + } else if(((((!(a7==1)&&((a1==14)&&(!(a4==1)&&((((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a16==9))&&(a21==11)))))&&!(a20==1))&&(a17==2))&&(!(a13==1)||(((a9==10)&&((a19==1)&&((a13==1)&&((a12==1)&&(a2==1)))))&&!(a24==1))))){ + a19 = 4; + a6 = 0; + a9 = 9; + a3 = 0; + a25 = 1; + a16 = 8; + a1 = 12; + a5 = 6; + return -1; + } else if((((((!(a7==1)&&(((a28==1)&&!(a18==1))&&!(a4==1)))&&(a20==1))&&(a21==10))||(a4==1))&&(!(a7==1)&&(((a1==13)&&((a16==11)&&((a19==4)&&((a17==2)&&((input==1)&&(((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))))))))&&(a28==1))))){ + a9 = 9; + a23 = 1; + a21 = 11; + a27 = 0; + a26 = 0; + a5 = 4; + a1 = 12; + return 26; + } else if((((a17==2)&&((a16==8)&&((((input==4)&&(a1==13))&&!(a27==1))&&!(a4==1))))&&((a5==6)&&(((a9==10)&&((a7==1)||(((!(a8==1)&&(((a21==12)&&(a12==1))&&(a23==1)))&&(a23==1))&&(a19==2))))&&(a20==1))))){ + a5 = 4; + a9 = 7; + a26 = 0; + a19 = 1; + a1 = 12; + a2 = 1; + a21 = 10; + a24 = 0; + a16 = 7; + return -1; + } else if((((a6==1)&&(((((a1==14)&&((a12==1)&&(a17==2)))&&(a21==12))&&(a16==7))&&(a11==1)))&&(((((a19==3)&&(!(a27==1)&&(!(a4==1)&&((((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6))))&&(input==1)))))&&(a20==1))&&(a28==1))&&(a28==1)))){ + a11 = 1; + a5 = 5; + a23 = 1; + a9 = 7; + a20 = 0; + a21 = 10; + a19 = 5; + return 21; + } else if(((!(a26==1)&&(!(a27==1)&&((((a21==12)&&(!(a0==1)&&(!(a20==1)&&(input==4))))&&!(a7==1))&&(a16==8))))&&(((!(a27==1)&&((((a1==12)&&((a9==8)&&(a11==1)))&&(a17==2))&&(a19==5)))&&(a23==1))&&(a5==5)))){ + a29 = 0; + a14 = 1; + a16 = 7; + a9 = 9; + a3 = 0; + a19 = 4; + a1 = 14; + return -1; + } else if((((a21==12)&&((a12==1)&&((a1==13)&&((a23==1)&&((a2==1)||(a8==1))))))&&((a6==1)&&((a23==1)&&(((a16==9)&&((((((a5==6)&&(input==3))&&!(a20==1))&&(a19==4))&&(a17==2))&&(a9==8)))&&(a23==1)))))){ + if((a26==1)){ + a1 = 12; + a2 = 0; + a9 = 7; + a21 = 10; + a26 = 1; + a19 = 2; + a5 = 4; + a16 = 7; + a22 = 1; + a20 = 1; + }else{ + a9 = 7; + a5 = 4; + a8 = 1; + a29 = 0; + a16 = 8; + a21 = 10; + a19 = 3; + a2 = 0; + } + return 21; + } else if(((!(a20==1)&&(((((((!(a18==1)&&(((a5==5)||(a5==6))&&(input==3)))&&!(a8==1))&&(a17==2))&&(a1==14))&&!(a4==1))&&(a9==8))&&(a16==7)))&&((a21==12)&&(((a28==1)&&(((a6==1)&&(a19==3))&&(a12==1)))||!(a3==1))))){ + a5 = 4; + a9 = 7; + a21 = 10; + a20 = 1; + a1 = 12; + a3 = 1; + a28 = 1; + a19 = 1; + a4 = 0; + return -1; + } else if((((a3==1)&&((a17==2)&&((((a16==8)&&((a1==14)&&((a3==1)&&!(a26==1))))&&(a9==7))&&(a21==12))))&&((!(a20==1)&&((a2==1)&&((a5==4)&&(!(a26==1)&&((a6==1)&&((input==5)&&(a19==1)))))))&&(a11==1)))){ + if((a28==1)){ + a2 = 0; + a20 = 1; + a26 = 1; + a1 = 12; + a5 = 5; + a21 = 10; + a16 = 7; + a29 = 0; + }else{ + a10 = 1; + a9 = 11; + a1 = 13; + a21 = 10; + a16 = 7; + a19 = 3; + a15 = 1; + a27 = 1; + } + return -1; + } else if((((!(a26==1)&&(((a11==1)&&(((a19==5)&&(!(a18==1)&&((a16==8)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))))&&(a20==1)))&&!(a0==1)))&&!(a24==1))&&(((a1==12)&&((a17==2)&&((a9==7)&&(!(a4==1)&&(a13==1)))))&&(a21==10)))){ + a19 = 1; + a2 = 1; + a26 = 0; + a5 = 4; + a12 = 1; + a16 = 7; + return -1; + } else if(((((((!(a7==1)&&(((a11==1)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==1)))&&!(a8==1)))&&(a11==1))&&(a1==13))&&(a21==10))&&(a16==7))&&((a20==1)&&(((a17==2)&&((a19==3)&&((a3==1)||!(a28==1))))&&(a11==1))))){ + a7 = 0; + a12 = 1; + a21 = 11; + a23 = 1; + a9 = 11; + a5 = 4; + a19 = 1; + return 22; + } else if((((((a16==9)&&(((a0==1)||((a28==1)&&(a5==6)))&&(a1==14)))||(a26==1))||(a27==1))&&((a9==8)&&((a21==12)&&(((a17==2)&&(((((input==4)&&(a19==2))&&!(a27==1))&&!(a20==1))&&(a6==1)))&&(a28==1)))))){ + a29 = 1; + a2 = 0; + a16 = 10; + a1 = 12; + a9 = 10; + a20 = 1; + a21 = 10; + a5 = 5; + a22 = 0; + return -1; + } else if(((((a21==10)&&((a17==2)&&((a11==1)&&((((a5==4)&&(input==4))&&(a20==1))&&(a16==10)))))&&(a9==11))&&((((a1==13)&&(!(a0==1)&&((a8==1)||((a19==5)&&((a11==1)&&!(a18==1))))))||!(a6==1))&&(a11==1)))){ + a13 = 1; + a16 = 7; + a9 = 7; + a3 = 1; + a19 = 1; + a1 = 12; + a27 = 0; + return -1; + } else if((((a6==1)&&((a16==9)&&(!(a20==1)&&(!(a14==1)&&(((a6==1)&&(a19==3))&&(a1==14))))))&&((a11==1)&&((a13==1)&&((a21==11)&&(((a3==1)&&(!(a8==1)&&((input==1)&&((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4))))))&&(a17==2))))))){ + a5 = 6; + a20 = 1; + a16 = 8; + a21 = 12; + a12 = 0; + a9 = 8; + a1 = 12; + a13 = 0; + a19 = 4; + a11 = 0; + return -1; + } else if((((((a1==14)&&((a9==7)&&((a28==1)&&(a19==2))))||!(a23==1))&&(a2==1))&&((((a12==1)&&(((a21==10)&&(!(a7==1)&&(!(a7==1)&&(!(a0==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1))))))&&!(a20==1)))&&(a16==11))&&(a17==2)))){ + a21 = 12; + a23 = 0; + a1 = 13; + a22 = 1; + a10 = 1; + a16 = 10; + a5 = 6; + a20 = 1; + a19 = 4; + a9 = 11; + return 22; + } else if(((!(a7==1)&&((a17==2)&&(((a21==12)&&((a16==8)&&(a23==1)))&&(a13==1))))&&(((a19==5)&&(((a23==1)&&(!(a7==1)&&((a6==1)&&(!(a0==1)&&(((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4)))&&(input==3))))))&&(a1==12)))&&!(a20==1)))){ + a20 = 1; + a21 = 10; + a26 = 1; + a19 = 2; + a5 = 6; + a9 = 10; + a14 = 1; + a16 = 7; + a18 = 1; + return 21; + } else if(((((((a11==1)&&((a26==1)||((a13==1)&&(a13==1))))&&(a19==4))&&!(a20==1))||(a4==1))&&((a21==10)&&((a16==10)&&((a1==14)&&(!(a4==1)&&(((a23==1)&&((input==4)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))&&(a17==2)))))))){ + if((a23==1)){ + a16 = 7; + a12 = 0; + a9 = 11; + a1 = 13; + a19 = 1; + a20 = 1; + a5 = 4; + a6 = 0; + a27 = 1; + }else{ + a20 = 1; + a9 = 9; + a10 = 0; + a23 = 0; + a5 = 5; + a19 = 2; + a1 = 12; + a16 = 7; + } + return -1; + } else if(((((a16==7)&&((a21==12)&&(((a4==1)||((a24==1)||(a2==1)))&&(a17==2))))&&(a11==1))&&(((a1==12)&&((a3==1)&&(((a5==6)&&(!(a27==1)&&((a20==1)&&((a9==7)&&(input==5)))))&&(a19==5))))&&!(a0==1)))){ + a5 = 4; + a13 = 1; + a26 = 0; + a18 = 0; + a19 = 1; + a21 = 10; + return -1; + } else if((((((a18==1)||((((a9==8)&&(!(a8==1)&&(a11==1)))&&(a17==2))&&(a1==14)))&&(a5==4))&&(a16==8))&&((a20==1)&&(((a2==1)&&(((((input==6)&&(a19==2))&&!(a7==1))&&!(a26==1))&&(a21==11)))&&!(a18==1))))){ + a8 = 0; + a5 = 5; + a27 = 0; + a16 = 10; + a9 = 7; + a19 = 4; + a24 = 0; + a21 = 10; + return 21; + } else if((((a19==2)&&(((a9==9)&&(!(a24==1)&&((a3==1)||!(a13==1))))&&(a21==11)))&&(((a13==1)&&((a5==4)&&(((((a3==1)&&((a20==1)&&((a17==2)&&(input==1))))&&(a12==1))&&(a16==11))&&(a12==1))))&&(a1==14)))){ + a19 = 1; + a9 = 7; + a16 = 7; + a1 = 12; + a23 = 1; + a12 = 1; + a21 = 10; + return -1; + } else if((((a19==4)&&((a16==8)&&(((a28==1)&&((((input==6)&&((a5==4)||(a5==5)))&&(a20==1))&&!(a26==1)))&&(a13==1))))&&(((!(a18==1)&&((((a9==8)&&((a13==1)&&(a23==1)))||!(a3==1))&&(a17==2)))&&(a21==10))&&(a1==14)))){ + a16 = 7; + a1 = 12; + a28 = 1; + a23 = 1; + a5 = 4; + a19 = 1; + a3 = 1; + a9 = 7; + return -1; + } else if(((((((a21==11)&&(((a9==10)&&(!(a4==1)&&(((a19==4)&&(input==5))&&(a16==10))))&&!(a8==1)))&&(a5==5))&&(a2==1))&&(a17==2))&&((!(a12==1)||((((a11==1)&&(a11==1))&&(a1==13))&&(a20==1)))||!(a11==1)))){ + if((a20==1)){ + a9 = 9; + a20 = 0; + a11 = 1; + a5 = 6; + a23 = 1; + a21 = 10; + a1 = 14; + a16 = 8; + a6 = 1; + }else{ + a1 = 12; + a9 = 9; + a16 = 7; + a6 = 1; + a19 = 5; + a5 = 4; + a7 = 0; + } + return 25; + } else if(((((a13==1)&&(!(a20==1)&&(((a21==11)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==1)))&&(a11==1))))&&!(a4==1))&&((a19==1)&&((((a17==2)&&((((a7==1)||(a6==1))&&(a16==8))&&(a2==1)))||!(a3==1))&&(a1==12))))){ + a20 = 1; + a19 = 2; + a1 = 13; + a24 = 0; + a28 = 1; + a9 = 9; + a5 = 5; + a16 = 7; + a21 = 10; + a14 = 0; + return 25; + } else if(((!(a28==1)&&((((a16==7)&&((a8==1)&&(!(a20==1)&&((a9==11)&&(a11==1)))))&&(a1==13))&&(a18==1)))&&(!(a6==1)&&(!(a6==1)&&(!(a2==1)&&((a21==11)&&((((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&(a17==2))&&(a19==3)))))))){ + a0 = 1; + a1 = 14; + a21 = 10; + a5 = 6; + a20 = 1; + a9 = 8; + a25 = 1; + a19 = 1; + a15 = 0; + return -1; + } else if((((a26==1)&&((((a16==11)&&(((a21==10)&&((a9==11)&&((a13==1)&&!(a2==1))))&&!(a28==1)))&&(a5==5))&&(a8==1)))&&(!(a6==1)&&((a8==1)&&(((a19==3)&&((a17==2)&&((a20==1)&&(input==4))))&&(a1==12)))))){ + a9 = 10; + a19 = 4; + a21 = 12; + a1 = 13; + a28 = 0; + a5 = 4; + return -1; + } else if(((((((((!(a23==1)||(a3==1))||!(a3==1))&&!(a20==1))&&!(a26==1))&&(a16==7))&&!(a4==1))&&(a17==2))&&((a19==1)&&((a13==1)&&(((a21==12)&&((a13==1)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==3))))&&(a1==14)))))){ + a20 = 1; + a1 = 12; + a23 = 1; + a14 = 0; + a5 = 4; + a9 = 7; + a21 = 10; + a27 = 0; + return -1; + } else if(((((a1==13)&&((a17==2)&&(((((input==3)&&((a5==5)||(a5==6)))&&!(a8==1))&&(a6==1))&&!(a27==1))))&&(a21==11))&&(((((a19==5)&&(((a24==1)||((a16==8)&&(a13==1)))||!(a13==1)))&&(a9==9))&&!(a14==1))&&(a20==1)))){ + a5 = 4; + a21 = 10; + a19 = 1; + a26 = 0; + a28 = 1; + a1 = 12; + a16 = 7; + a6 = 1; + a9 = 7; + return -1; + } else if((((!(a12==1)||((a6==1)&&(a23==1)))||(a14==1))&&((((a28==1)&&(((((((a21==10)&&((input==6)&&(((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6))))))&&!(a0==1))&&!(a20==1))&&(a17==2))&&(a1==12))&&(a16==8)))&&(a19==4))&&(a12==1)))){ + a19 = 1; + a9 = 10; + a27 = 0; + a2 = 1; + a16 = 10; + a14 = 0; + a20 = 1; + a5 = 6; + return 21; + } else if((((a19==4)&&(!(a8==1)&&((((!(a11==1)||((a13==1)&&(a16==9)))||(a14==1))&&!(a20==1))||(a4==1))))&&((a28==1)&&((a21==12)&&(!(a7==1)&&(((((a17==2)&&(input==4))&&(a1==13))&&(a5==5))&&(a9==11))))))){ + if((a14==1)){ + a21 = 10; + a5 = 4; + a19 = 5; + a16 = 7; + a4 = 1; + a28 = 0; + a1 = 14; + a29 = 1; + a9 = 7; + }else{ + a9 = 9; + a5 = 6; + a16 = 10; + a4 = 1; + a2 = 0; + a19 = 3; + a25 = 1; + a20 = 1; + } + return -1; + } else if((((a21==10)&&(((((a9==10)&&(a11==1))&&(a19==5))&&(a6==1))||(a14==1)))&&(((a16==11)&&((a17==2)&&((((a2==1)&&((a20==1)&&(!(a18==1)&&((input==3)&&((a5==5)||(a5==6))))))&&!(a26==1))&&(a1==14))))&&(a13==1)))){ + a14 = 0; + a19 = 1; + a5 = 4; + a0 = 0; + a9 = 7; + a1 = 12; + a6 = 1; + a16 = 7; + return -1; + } else if(((!(a6==1)||(!(a27==1)&&(((!(a3==1)||((a7==1)||((a13==1)&&(a16==11))))&&(a17==2))||(a26==1))))&&((a20==1)&&(((a21==10)&&((((((a1==14)&&(a5==6))&&(a9==11))&&(a19==4))||((a19==5)&&((a9==7)&&((a1==12)&&(a5==4)))))&&(input==6)))&&!(a0==1))))){ + a1 = 14; + a24 = 0; + a19 = 2; + a9 = 10; + a16 = 9; + a4 = 0; + a5 = 4; + a21 = 11; + return 21; + } else if((((!(a20==1)&&((a17==2)&&((a16==7)&&(a2==1))))&&(a23==1))&&((((a1==13)&&(((a19==5)&&((((((input==1)&&(a9==11))&&!(a14==1))&&!(a26==1))&&(a13==1))&&(a21==12)))&&(a5==5)))&&!(a26==1))&&!(a7==1)))){ + a27 = 0; + a20 = 1; + a13 = 1; + a16 = 9; + a6 = 1; + a9 = 7; + a5 = 4; + a1 = 12; + a19 = 3; + return 21; + } else if((((((((a26==1)||(a6==1))&&(a17==2))&&(a9==9))&&(a2==1))||!(a23==1))&&((a6==1)&&((a28==1)&&((((a16==10)&&(((a21==11)&&(((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a20==1)))&&(a19==5)))&&(a1==12))&&(a23==1)))))){ + a19 = 1; + a5 = 4; + a9 = 11; + a20 = 1; + a15 = 1; + a21 = 10; + a23 = 0; + a16 = 7; + a27 = 1; + return -1; + } else if((((a19==5)&&(((a9==9)&&(((a21==11)&&(((a3==1)||(a4==1))&&(a3==1)))&&(a1==13)))&&(a16==11)))&&(((a3==1)&&((a5==5)&&(((a11==1)&&(!(a8==1)&&((input==1)&&(a17==2))))&&(a20==1))))&&!(a24==1)))){ + a16 = 7; + a14 = 0; + a9 = 7; + a23 = 1; + a5 = 4; + a3 = 1; + a19 = 1; + a21 = 10; + a1 = 12; + return -1; + } else if(((((a1==12)&&((a17==2)&&((a28==1)&&((a13==1)&&((((a21==12)&&((input==1)&&(a9==9)))&&(a13==1))&&!(a0==1))))))&&(a2==1))&&((a26==1)||((!(a20==1)&&((a19==5)&&((a16==8)&&(a11==1))))&&(a5==6))))){ + if((a12==1)){ + a9 = 8; + a16 = 11; + a21 = 10; + a20 = 1; + a1 = 14; + a7 = 1; + a6 = 0; + a18 = 1; + a19 = 2; + a5 = 5; + }else{ + a12 = 0; + a9 = 8; + a20 = 1; + a19 = 1; + a22 = 0; + a1 = 13; + a25 = 0; + a16 = 7; + a21 = 10; + } + return 26; + } else if(((((!(a23==1)||((((a2==1)&&!(a8==1))&&(a16==10))&&!(a27==1)))&&(a1==13))&&(a9==11))&&(((!(a26==1)&&((a17==2)&&((!(a27==1)&&((a21==10)&&(!(a20==1)&&(input==1))))&&(a5==4))))&&!(a26==1))&&(a19==5)))){ + a8 = 1; + a20 = 1; + a16 = 7; + a21 = 11; + a9 = 8; + a23 = 0; + a6 = 0; + a19 = 4; + a5 = 5; + a1 = 14; + return -1; + } else if(((((a21==12)&&((a14==1)||((((a23==1)&&(a19==3))&&(a23==1))&&!(a24==1))))&&(a12==1))&&((a17==2)&&((a9==10)&&(!(a20==1)&&(!(a7==1)&&((!(a27==1)&&((a1==12)&&((input==6)&&((a5==5)||(a5==6)))))&&(a16==9)))))))){ + a16 = 7; + a29 = 1; + a5 = 4; + a9 = 8; + a1 = 13; + a19 = 1; + a21 = 10; + a20 = 1; + a11 = 0; + a2 = 0; + return -1; + } else if(((((a19==4)&&((a3==1)&&((a20==1)&&((input==4)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))))))&&!(a27==1))&&((a17==2)&&(((a21==10)&&((a6==1)&&(!(a11==1)||(!(a3==1)||((a1==14)&&(!(a26==1)&&(a2==1)))))))&&(a16==7))))){ + a5 = 4; + a13 = 1; + a19 = 1; + a1 = 12; + a26 = 0; + a0 = 0; + a9 = 7; + return -1; + } else if((((a13==1)&&(!(a0==1)&&((((((a19==5)&&(((((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10))))&&(input==1))&&(a21==11)))&&(a1==13))&&(a17==2))&&!(a20==1))&&(a12==1))))&&(!(a12==1)||((!(a24==1)&&((a16==10)&&(a28==1)))||!(a28==1))))){ + a19 = 2; + a23 = 0; + a10 = 0; + a5 = 5; + a9 = 8; + a3 = 0; + a16 = 8; + return 22; + } else if(((!(a20==1)&&((a21==12)&&(!(a7==1)&&((!(a8==1)&&((a6==1)&&((a17==2)&&((a5==6)&&(input==6)))))&&(a19==2)))))&&((a16==10)&&(!(a6==1)||((!(a8==1)&&(!(a6==1)||((a1==14)&&(a6==1))))&&(a9==10)))))){ + a16 = 11; + a21 = 11; + a1 = 13; + a7 = 1; + a29 = 1; + a20 = 1; + a10 = 0; + a5 = 5; + return -1; + } else if((((a16==9)&&(((a6==1)&&(((!(a2==1)||((a19==2)&&(a13==1)))||!(a13==1))&&!(a27==1)))&&(a1==13)))&&(((a17==2)&&(((a21==12)&&((((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a5==4)&&(a9==10)))&&(input==3))&&!(a14==1)))&&!(a4==1)))&&!(a20==1)))){ + if((a11==1)){ + a0 = 1; + a12 = 0; + a19 = 4; + a9 = 9; + a5 = 6; + a16 = 10; + a21 = 10; + a7 = 1; + a1 = 12; + }else{ + a28 = 0; + a9 = 7; + a18 = 1; + a14 = 1; + a16 = 7; + a5 = 5; + a21 = 10; + a1 = 14; + a19 = 1; + a20 = 1; + } + return -1; + } else if(((((((a9==9)&&((a17==2)&&(((input==1)&&(a19==5))&&(a1==13))))&&(a23==1))&&(a13==1))&&(a12==1))&&(((a5==5)&&(((a27==1)||((a4==1)||((a16==9)&&((a20==1)&&(a13==1)))))&&(a21==12)))&&!(a14==1)))){ + a9 = 10; + a21 = 10; + a19 = 2; + a26 = 0; + a13 = 1; + a5 = 6; + a11 = 1; + a16 = 7; + return 25; + } else if(((((a23==1)&&(((a1==13)&&((a5==6)&&((a19==5)&&(input==4))))&&(a21==11)))&&!(a0==1))&&((!(a7==1)&&((a12==1)&&(((a16==9)&&((a17==2)&&(((a9==11)&&(a2==1))&&(a13==1))))&&(a20==1))))||!(a23==1)))){ + a19 = 1; + a21 = 10; + a1 = 12; + a16 = 7; + a9 = 7; + a6 = 1; + a5 = 4; + a7 = 0; + return -1; + } else if((((((a16==9)&&((((((input==3)&&(a21==11))&&!(a4==1))&&(a2==1))&&(a19==1))&&(a13==1)))&&(a1==13))&&(a9==7))&&((a5==5)&&((a26==1)||(!(a20==1)&&(!(a8==1)&&((a17==2)&&((a11==1)&&(a6==1))))))))){ + a16 = 7; + a24 = 1; + a20 = 1; + a1 = 14; + a12 = 0; + a21 = 10; + a6 = 0; + return 21; + } else if((((a5==4)&&((a17==2)&&((((a12==1)&&(a23==1))&&(a9==8))&&(a16==10))))&&(!(a8==1)&&((!(a20==1)&&(!(a24==1)&&(!(a8==1)&&(((((a21==12)&&(input==6))&&(a19==4))&&(a1==14))&&(a3==1)))))&&!(a7==1))))){ + a15 = 0; + a0 = 1; + a20 = 1; + a1 = 13; + a29 = 0; + a19 = 3; + a5 = 6; + a16 = 8; + a9 = 11; + a21 = 10; + return -1; + } else if((((!(a14==1)&&((!(a27==1)&&((a2==1)&&(a28==1)))&&(a16==9)))&&(a1==14))&&((((((a12==1)&&((a9==7)&&((a21==11)&&(((input==5)&&!(a20==1))&&(a5==6)))))&&(a13==1))&&(a17==2))&&(a19==4))&&!(a8==1)))){ + a20 = 1; + a21 = 10; + a16 = 7; + a23 = 0; + a4 = 1; + a19 = 1; + a27 = 1; + a9 = 8; + return 26; + } else if(((((a4==1)||(((a16==8)&&((a11==1)||!(a13==1)))||(a24==1)))&&!(a4==1))&&(((a28==1)&&((a21==12)&&((a20==1)&&((a19==2)&&(((input==4)&&(((((a5==5)&&(a1==12))&&(a9==11))||((a9==11)&&((a1==12)&&(a5==6))))||(((a5==4)&&(a1==13))&&(a9==7))))&&(a17==2))))))&&(a3==1)))){ + a5 = 4; + a19 = 1; + a8 = 0; + a9 = 7; + a6 = 1; + a2 = 1; + a21 = 10; + a16 = 7; + a1 = 12; + return -1; + } else if(((((a23==1)&&((a16==8)&&((a6==1)&&((((((a9==11)&&((a5==6)&&(a1==13)))||((a9==7)&&((a1==14)&&(a5==4))))&&(input==3))&&(a17==2))&&(a11==1)))))&&(a6==1))&&(((a19==4)&&((((a21==12)&&(a11==1))&&!(a20==1))||(a4==1)))||(a27==1)))){ + a12 = 0; + a20 = 1; + a21 = 10; + a19 = 1; + a23 = 0; + a9 = 7; + a16 = 7; + a14 = 1; + a1 = 12; + a5 = 4; + return -1; + } else if((((a1==12)&&((a19==3)&&(((!(a20==1)&&(!(a27==1)&&((input==1)&&(a17==2))))&&(a16==10))&&(a3==1))))&&((a21==10)&&(((a5==6)&&(!(a12==1)||((((a2==1)&&!(a7==1))&&(a11==1))&&!(a14==1))))&&(a9==9))))){ + a13 = 0; + a16 = 9; + a5 = 5; + a24 = 1; + a21 = 11; + a1 = 13; + a19 = 4; + a15 = 0; + a20 = 1; + return -1; + } else if((((((((((input==5)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(a1==13))&&!(a20==1))&&!(a27==1))&&(a19==3))&&!(a8==1))&&!(a4==1))&&((((a17==2)&&((a21==10)&&((a0==1)||((a12==1)&&(a16==7)))))||(a7==1))||(a8==1)))){ + a12 = 1; + a5 = 5; + a9 = 11; + a4 = 0; + a1 = 14; + a11 = 1; + return 21; + } else if(((((a21==10)&&((((a8==1)&&((a9==7)&&((input==6)&&(a5==5))))&&(a0==1))&&(a14==1)))&&(a17==2))&&(((!(a11==1)&&((a20==1)&&(!(a6==1)&&(((a23==1)&&(a14==1))&&(a16==7)))))&&(a19==2))&&(a1==13)))){ + a19 = 1; + a5 = 6; + a13 = 0; + a16 = 9; + a29 = 0; + a10 = 0; + a1 = 14; + return -1; + } else if(((((a6==1)&&((a12==1)&&((((((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(input==6))&&(a11==1))&&(a1==13))))&&(a17==2))&&((((a21==11)&&(!(a23==1)||((!(a0==1)&&((a4==1)||(a13==1)))&&(a19==4))))&&!(a20==1))&&(a16==10)))){ + a5 = 6; + a20 = 1; + a24 = 1; + a21 = 10; + a19 = 5; + a11 = 0; + a9 = 11; + a10 = 0; + a1 = 12; + return -1; + } else if(((((a21==12)&&(((a9==9)&&((a24==1)&&(((a19==4)&&(a23==1))&&(a20==1))))&&(a8==1)))&&!(a6==1))&&(!(a2==1)&&((a16==10)&&((((a1==12)&&(!(a6==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4))))&&(a4==1))&&(a17==2)))))){ + a9 = 7; + a21 = 10; + a10 = 0; + a20 = 0; + a29 = 1; + a16 = 7; + a1 = 14; + a25 = 0; + a5 = 5; + return 22; + } else if((((a11==1)&&((a3==1)&&(a13==1)))&&(((((((a17==2)&&((a16==9)&&((a19==5)&&((((input==5)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&!(a20==1))&&(a1==13)))))&&(a21==12))&&!(a27==1))&&!(a7==1))&&!(a4==1))&&!(a7==1)))){ + if((a14==1)){ + a23 = 0; + a20 = 1; + a8 = 1; + a1 = 14; + a2 = 0; + a5 = 6; + a16 = 7; + a9 = 11; + a19 = 1; + }else{ + a23 = 0; + a5 = 5; + a29 = 0; + a21 = 10; + a9 = 8; + a19 = 2; + a16 = 7; + a20 = 1; + a1 = 12; + a15 = 1; + } + return -1; + } else if((((((a19==1)&&((!(a0==1)&&(a3==1))&&!(a27==1)))&&(a17==2))&&(a1==14))&&((!(a4==1)&&(!(a18==1)&&((((a21==12)&&((a11==1)&&((input==3)&&(((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))))&&!(a0==1))&&(a16==8))))&&!(a20==1)))){ + a16 = 9; + a22 = 1; + a5 = 4; + a9 = 7; + a4 = 1; + a19 = 5; + a13 = 0; + a20 = 1; + return 26; + } else if(((((a28==1)&&((a23==1)&&(((((a13==1)&&(((a9==9)&&(a6==1))&&(a17==2)))&&(a19==3))&&(a21==10))&&!(a26==1))))||(a14==1))&&((a1==14)&&(!(a20==1)&&((!(a26==1)&&((input==5)&&((a5==4)||(a5==5))))&&(a16==10)))))){ + a16 = 7; + a19 = 2; + a9 = 8; + a20 = 1; + a22 = 1; + a5 = 6; + a29 = 0; + a1 = 12; + a6 = 0; + return -1; + } else if((((!(a20==1)&&((a19==5)&&((a17==2)&&((a21==12)&&((((a16==9)&&(((input==5)&&(a5==5))&&(a23==1)))&&(a3==1))&&(a9==10))))))&&!(a18==1))&&(!(a8==1)&&(!(a12==1)||((a11==1)&&((a23==1)&&(a1==13))))))){ + a21 = 10; + a20 = 1; + a15 = 1; + a18 = 1; + a9 = 8; + a19 = 1; + a16 = 7; + a25 = 1; + a1 = 14; + a5 = 4; + return 25; + } else if(((((a19==3)&&(((((a6==1)&&((((a5==5)||(a5==6))&&(input==5))&&(a16==11)))&&(a6==1))&&(a21==10))&&!(a0==1)))&&(a1==13))&&((a17==2)&&(((a2==1)&&((!(a12==1)||((a3==1)&&!(a7==1)))&&(a9==11)))&&!(a20==1))))){ + a28 = 0; + a19 = 1; + a16 = 7; + a9 = 9; + a29 = 0; + a20 = 1; + a1 = 12; + a7 = 1; + a5 = 6; + return 25; + } else if((((a28==1)&&(((a19==3)&&(((a17==2)&&(((((a9==11)&&(a2==1))&&(a20==1))&&(a16==8))||!(a13==1)))&&(a1==14)))||(a18==1)))&&(!(a0==1)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a21==12))&&!(a27==1))&&!(a18==1))))){ + if((a6==1)){ + a19 = 5; + a12 = 1; + a16 = 7; + a4 = 0; + a5 = 6; + a1 = 12; + a9 = 9; + a20 = 0; + }else{ + a5 = 4; + a21 = 10; + a6 = 1; + a28 = 1; + a14 = 0; + a19 = 5; + a9 = 7; + a1 = 13; + } + return -1; + } else if((((!(a26==1)&&((a16==7)&&((a19==4)&&((a20==1)&&((((a6==1)&&!(a7==1))&&(a21==11))&&(a9==9))))))||!(a6==1))&&((((a17==2)&&(!(a24==1)&&((a5==6)&&((input==6)&&(a1==13)))))&&!(a14==1))&&!(a27==1)))){ + a9 = 7; + a13 = 1; + a5 = 5; + a16 = 8; + a0 = 0; + a24 = 0; + return 22; + } else if((((((a17==2)&&(((a11==1)&&(((((a9==10)&&(a23==1))&&!(a18==1))||!(a28==1))&&(a21==11)))&&(a20==1)))&&!(a26==1))&&(a19==4))&&((a16==8)&&((a1==13)&&(!(a8==1)&&(!(a4==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3)))))))){ + a19 = 2; + a0 = 0; + a26 = 0; + a6 = 1; + a9 = 9; + a5 = 5; + a16 = 10; + return 21; + } else if((((((!(a14==1)&&((((a16==10)&&(input==1))&&(a9==10))&&(a21==10)))&&(a28==1))&&(a5==6))&&!(a20==1))&&((a26==1)||((a19==2)&&((a17==2)&&(!(a23==1)||((a23==1)&&(((a23==1)&&(a1==14))&&(a23==1))))))))){ + a19 = 3; + a5 = 4; + a28 = 0; + a16 = 8; + a9 = 11; + a25 = 1; + return 26; + } else if(((((((a16==10)&&(((a1==13)&&(((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5)))&&(input==4)))&&!(a27==1)))&&!(a14==1))&&(a13==1))&&(a19==2))&&(!(a20==1)&&((a21==11)&&((!(a4==1)&&(((a17==2)&&(a12==1))||(a27==1)))&&!(a8==1)))))){ + a5 = 5; + a22 = 1; + a18 = 1; + a20 = 1; + a9 = 9; + a21 = 10; + a29 = 1; + a16 = 7; + a1 = 12; + return -1; + } else if((((a17==2)&&((!(a13==1)||((a21==11)&&((a23==1)&&((a20==1)&&((a18==1)||(a2==1))))))&&(a1==12)))&&(((!(a8==1)&&((((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==6))&&(a19==1))&&(a28==1)))&&(a16==10))&&(a6==1)))){ + a21 = 10; + a27 = 0; + a24 = 0; + a5 = 4; + a18 = 0; + a16 = 7; + a9 = 7; + return -1; + } else if((((a28==1)&&(((a12==1)&&((a16==11)&&(!(a4==1)&&(((a1==12)&&(input==3))&&(a17==2)))))&&(a5==5)))&&((a23==1)&&(!(a8==1)&&((!(a12==1)||((a21==10)&&(!(a20==1)&&((a19==1)&&(a3==1)))))&&(a9==8)))))){ + a13 = 0; + a5 = 4; + a16 = 10; + a21 = 12; + a1 = 13; + a27 = 1; + a18 = 1; + a19 = 5; + return -1; + } else if(((((a17==2)&&(!(a7==1)&&((a28==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&!(a4==1)))))&&(a1==12))&&((a9==8)&&((a14==1)||((a16==7)&&(!(a24==1)&&(((a21==10)&&((a19==3)&&((a11==1)&&(a28==1))))&&(a20==1)))))))){ + a5 = 6; + a6 = 1; + a9 = 9; + a13 = 1; + a19 = 5; + a2 = 1; + return 23; + } else if((((((((a23==1)&&(a23==1))&&(a21==11))||(a24==1))&&(a9==10))&&(a16==8))&&((a19==2)&&((a3==1)&&(((a1==13)&&(!(a0==1)&&((!(a18==1)&&(!(a8==1)&&((input==4)&&((a5==4)||(a5==5)))))&&(a17==2))))&&(a20==1)))))){ + a6 = 1; + a0 = 0; + a16 = 7; + a5 = 4; + a21 = 10; + a1 = 12; + a11 = 1; + a9 = 7; + a19 = 1; + return -1; + } else if((((a17==2)&&((a16==10)&&((a19==4)&&(!(a28==1)||(!(a13==1)||(a2==1))))))&&(((a21==11)&&((((!(a8==1)&&(((((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(input==4))&&!(a20==1)))&&(a6==1))&&(a23==1))&&(a6==1)))&&(a1==13)))){ + if((a25==1)){ + a20 = 1; + a5 = 5; + a28 = 0; + a9 = 8; + a6 = 0; + a13 = 0; + a19 = 3; + }else{ + a19 = 1; + a13 = 0; + a5 = 4; + a29 = 1; + a21 = 12; + a15 = 0; + a16 = 7; + a1 = 12; + a9 = 8; + a20 = 1; + } + return -1; + } else if((((a23==1)&&((a21==11)&&(((a20==1)&&(a6==1))||(a7==1))))&&(((a1==14)&&((a6==1)&&((((a13==1)&&(((a17==2)&&((input==3)&&(((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))))&&(a16==10)))&&(a3==1))&&(a19==3))))&&!(a27==1)))){ + a28 = 1; + a1 = 12; + a9 = 7; + a5 = 4; + a11 = 1; + a21 = 10; + a16 = 7; + a23 = 1; + a19 = 1; + return -1; + } else if((((a11==1)&&((a23==1)&&((a19==5)&&(((!(a27==1)&&(((a5==4)||(a5==5))&&(input==6)))&&(a21==12))&&(a2==1)))))&&((a12==1)&&((a20==1)&&((a16==11)&&(((a17==2)&&(((a9==8)&&(a2==1))&&(a1==14)))&&!(a14==1))))))){ + a16 = 7; + a5 = 4; + a21 = 10; + a9 = 7; + a26 = 0; + a28 = 1; + a1 = 12; + a19 = 1; + a23 = 1; + return -1; + } else if((((((a1==12)&&(a13==1))||!(a28==1))&&(a5==5))&&(((a21==10)&&((a11==1)&&((a23==1)&&(((!(a26==1)&&((a13==1)&&((((a16==9)&&(input==6))&&(a17==2))&&(a19==5))))&&(a9==9))&&!(a4==1)))))&&!(a20==1)))){ + a27 = 1; + a19 = 4; + a1 = 14; + a20 = 1; + a29 = 0; + a5 = 6; + a3 = 0; + a16 = 7; + a21 = 11; + return -1; + } else if((((a19==5)&&((a17==2)&&((a9==11)&&((a16==8)&&((a23==1)&&(((a12==1)&&(((a5==5)||(a5==6))&&(input==5)))&&(a13==1)))))))&&(((a1==12)&&((a20==1)&&(!(a11==1)||((!(a6==1)||(a11==1))&&(a11==1)))))&&(a21==10)))){ + a5 = 4; + a19 = 1; + a6 = 1; + a9 = 7; + a14 = 0; + a16 = 7; + a8 = 0; + return -1; + } else if((((((a21==11)&&(((a13==1)&&((((a5==5)&&((a1==14)&&((a13==1)&&(a20==1))))&&(a16==7))&&(a3==1)))&&(a19==2)))&&(a9==7))||!(a12==1))&&((a11==1)&&(((a12==1)&&((a17==2)&&(input==4)))&&!(a26==1))))){ + a27 = 0; + a1 = 12; + a7 = 0; + a19 = 1; + a18 = 0; + a21 = 10; + a5 = 4; + return -1; + } else if(((((!(a23==1)&&(((((a9==11)&&((a1==12)&&(a5==6)))||(((a1==13)&&(a5==4))&&(a9==7)))||((a9==7)&&((a1==13)&&(a5==5))))&&(input==3)))&&(a16==7))&&!(a3==1))&&((a27==1)&&(!(a11==1)&&((a19==2)&&((a21==11)&&((a20==1)&&((a18==1)&&(((a3==1)&&(a24==1))&&(a17==2)))))))))){ + a27 = 1; + a9 = 11; + a1 = 14; + a25 = 0; + a29 = 1; + a5 = 5; + a21 = 10; + a19 = 1; + return 21; + } else if((((a18==1)||(!(a26==1)&&(((((a20==1)&&(a11==1))&&(a1==12))||(a27==1))&&(a19==2))))&&((a9==7)&&((a21==10)&&(((a17==2)&&(((!(a14==1)&&((a16==8)&&(input==5)))&&(a12==1))&&!(a18==1)))&&(a5==5)))))){ + a13 = 1; + a16 = 9; + a19 = 3; + a11 = 1; + a1 = 13; + a21 = 12; + return 25; + } else if(((((!(a0==1)&&((a21==10)&&((((a2==1)||(a26==1))&&!(a4==1))&&(a9==10))))&&(a5==6))&&(a19==5))&&(!(a20==1)&&((!(a26==1)&&(!(a14==1)&&(!(a14==1)&&((a1==12)&&((input==1)&&(a17==2))))))&&(a16==9))))){ + a16 = 7; + a19 = 1; + a26 = 1; + a20 = 1; + a9 = 7; + a25 = 0; + a11 = 0; + a5 = 5; + return 21; + } else if((((((!(a18==1)&&((a20==1)&&((a1==12)&&((((a5==6)&&(input==4))&&(a19==2))&&!(a24==1)))))&&(a2==1))&&!(a7==1))&&(a11==1))&&(((a9==10)&&(((a6==1)&&((a11==1)&&(a16==9)))&&(a21==12)))&&(a17==2)))){ + a19 = 1; + a11 = 1; + a3 = 1; + a5 = 4; + a16 = 7; + a9 = 7; + a21 = 10; + return -1; + } else if(((((a17==2)&&((a14==1)||((a16==9)&&(!(a28==1)||(a12==1)))))&&(a21==10))&&((a2==1)&&(((a19==4)&&((a20==1)&&(!(a4==1)&&(((input==3)&&((((a1==13)&&(a5==4))&&(a9==7))||(((a9==11)&&((a1==12)&&(a5==5)))||(((a1==12)&&(a5==6))&&(a9==11)))))&&(a23==1)))))&&(a11==1))))){ + a8 = 0; + a9 = 7; + a13 = 1; + a1 = 12; + a19 = 1; + a5 = 4; + a16 = 7; + a2 = 1; + return -1; + } else if((((((a13==1)&&((a17==2)&&((a23==1)&&((a16==7)&&(((input==4)&&(a9==11))&&!(a8==1))))))&&(a20==1))&&(a21==11))&&(((a11==1)&&((a5==4)&&(!(a26==1)&&(((a3==1)&&(a19==3))||(a26==1)))))&&(a1==12)))){ + a19 = 5; + a16 = 8; + a21 = 10; + a27 = 0; + a9 = 7; + a5 = 6; + a1 = 13; + a3 = 1; + return 23; + } else if((((a21==12)&&(((a20==1)&&(!(a3==1)||((a14==1)||(a11==1))))&&(a9==10)))&&((((((a2==1)&&(!(a24==1)&&((((input==5)&&(a5==6))&&!(a14==1))&&(a28==1))))&&(a19==1))&&(a16==7))&&(a17==2))&&(a1==12)))){ + a23 = 1; + a9 = 9; + a2 = 1; + a16 = 8; + a1 = 14; + a13 = 1; + a19 = 4; + return 25; + } else if((((!(a14==1)&&((((a12==1)&&((input==5)&&(a1==14)))&&(a13==1))&&(a5==4)))&&(a20==1))&&((a3==1)&&((((a21==10)&&((a19==2)&&((a17==2)&&(!(a6==1)||((a9==9)&&(a6==1))))))&&(a16==8))&&(a6==1))))){ + a19 = 1; + a12 = 1; + a3 = 1; + a11 = 1; + a16 = 7; + a9 = 7; + a1 = 12; + return -1; + } else if((((a17==2)&&((!(a0==1)&&((a5==6)&&((a2==1)&&(((a21==12)&&(input==3))&&(a13==1)))))&&(a1==13)))&&(!(a20==1)&&((a8==1)||((!(a13==1)||((((a19==2)&&(a28==1))||!(a28==1))&&(a16==10)))&&(a9==7)))))){ + a18 = 1; + a5 = 4; + a9 = 10; + a16 = 7; + a27 = 1; + a1 = 14; + a11 = 0; + return 25; + } else if((((!(a7==1)&&((a8==1)||(((a3==1)&&!(a7==1))&&(a20==1))))&&(a17==2))&&((a13==1)&&((!(a26==1)&&((a21==12)&&((a19==2)&&(((a1==12)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))&&(input==5)))&&(a16==8)))))&&!(a8==1))))){ + a18 = 0; + a5 = 4; + a3 = 1; + a2 = 1; + a16 = 7; + a21 = 10; + a9 = 7; + a19 = 1; + return -1; + } else if(((!(a18==1)&&((((input==3)&&((((a21==11)&&((a19==5)&&(((a5==5)&&(a1==14))&&(a9==11))))||(((a19==5)&&((a9==11)&&((a5==6)&&(a1==14))))&&(a21==11)))||((a21==12)&&(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==1)))))&&(a20==1))&&(a6==1)))&&((a28==1)&&((a28==1)&&((!(a3==1)||((a17==2)&&((a11==1)&&(a12==1))))&&(a16==11)))))){ + a11 = 1; + a1 = 13; + a0 = 0; + a21 = 11; + a5 = 6; + a9 = 7; + a19 = 2; + a23 = 1; + return 21; + } else if((((a16==9)&&((a17==2)&&(((!(a0==1)&&(((a6==1)&&!(a8==1))||!(a12==1)))&&(a9==8))&&!(a14==1))))&&(((a21==11)&&((a19==2)&&((a1==13)&&((((a5==5)&&(input==4))&&(a11==1))&&(a20==1)))))&&(a2==1)))){ + a9 = 7; + a21 = 10; + a1 = 12; + a5 = 4; + a6 = 1; + a19 = 1; + a11 = 1; + a0 = 0; + a16 = 7; + return -1; + } else if((((a7==1)||(!(a11==1)||((((a1==13)&&((a17==2)&&((a19==2)&&((a21==10)&&(a13==1)))))||(a24==1))&&(a20==1))))&&(((!(a7==1)&&((!(a0==1)&&(((a5==5)||(a5==6))&&(input==4)))&&(a9==7)))&&(a16==11))&&(a13==1)))){ + a13 = 1; + a16 = 9; + a21 = 11; + a9 = 10; + a3 = 1; + a19 = 4; + a5 = 6; + a14 = 0; + return 22; + } else if((((a16==10)&&(((a1==14)&&((((a12==1)&&(a6==1))&&!(a26==1))&&(a23==1)))&&(a9==11)))&&(((((a17==2)&&((a19==2)&&(((a23==1)&&((input==1)&&(a20==1)))&&!(a14==1))))&&!(a8==1))&&(a5==6))&&(a21==12)))){ + a23 = 1; + a21 = 10; + a3 = 1; + a1 = 13; + a5 = 5; + a2 = 1; + a9 = 9; + a16 = 7; + return 25; + } else if((((a2==1)&&(!(a20==1)&&(((((a19==2)&&((((a9==11)&&((a5==6)&&(a1==13)))||((a9==7)&&((a1==14)&&(a5==4))))&&(input==3)))&&(a21==10))&&(a17==2))&&(a6==1))))&&((((!(a11==1)||((a23==1)&&(a16==7)))&&!(a4==1))&&!(a4==1))&&(a23==1)))){ + a9 = 7; + a20 = 1; + a19 = 1; + a18 = 0; + a1 = 12; + a5 = 4; + a3 = 1; + a24 = 0; + return -1; + } else if(((!(a23==1)||((a1==12)&&((a8==1)||((a19==4)&&((a20==1)&&(((a24==1)||((a16==9)&&(a13==1)))&&(a5==4)))))))&&((a9==7)&&((a23==1)&&(((a21==11)&&(((input==5)&&(a17==2))&&(a3==1)))&&(a6==1)))))){ + a24 = 0; + a19 = 3; + a5 = 6; + a9 = 9; + a21 = 12; + a23 = 1; + a12 = 1; + return 21; + } else if((((a1==13)&&((a11==1)&&(!(a12==1)||(((a12==1)||!(a11==1))||(a27==1)))))&&((a16==11)&&(((a9==11)&&(!(a27==1)&&((a23==1)&&((a21==10)&&((a19==3)&&((((a5==5)||(a5==6))&&(input==4))&&(a17==2)))))))&&!(a20==1))))){ + a20 = 1; + a16 = 7; + a5 = 4; + a22 = 0; + a15 = 0; + a1 = 12; + a19 = 2; + a23 = 0; + a9 = 9; + return 26; + } else if(((!(a20==1)&&((a17==2)&&(((a19==2)&&((a5==4)&&(a23==1)))&&(a12==1))))&&((a1==12)&&((((a12==1)&&((a13==1)&&((a13==1)&&((a12==1)&&(!(a24==1)&&((input==1)&&(a16==8)))))))&&(a21==10))&&(a9==7))))){ + a20 = 1; + a23 = 1; + a13 = 1; + a7 = 0; + a19 = 1; + a16 = 7; + return -1; + } else if((((!(a8==1)&&((((!(a24==1)&&((a6==1)&&(a17==2)))&&!(a27==1))&&(a1==12))&&(a19==4)))&&(a23==1))&&(!(a8==1)&&((((((input==6)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9))))&&(a16==11))&&(a20==1))&&(a21==12))&&!(a4==1))))){ + a9 = 7; + a5 = 4; + a16 = 7; + a14 = 0; + a4 = 0; + a28 = 1; + a19 = 1; + a21 = 10; + return -1; + } else if((((((!(a4==1)&&(((a9==8)&&((((input==6)&&((a5==4)||(a5==5)))&&(a6==1))&&(a21==10)))&&!(a18==1)))&&(a19==5))&&(a16==9))&&(a1==12))&&((((!(a6==1)||((a0==1)||(a3==1)))&&!(a7==1))&&(a17==2))&&(a20==1)))){ + a5 = 4; + a26 = 0; + a16 = 7; + a6 = 1; + a9 = 7; + a2 = 1; + a19 = 1; + return -1; + } else if(((((a16==9)&&((!(a2==1)||(((a19==1)&&((((a3==1)&&(a13==1))&&(a6==1))&&(a9==10)))||!(a6==1)))&&!(a20==1)))&&!(a14==1))&&((a5==6)&&((a17==2)&&((((a21==11)&&(input==6))&&(a1==13))&&(a3==1)))))){ + a2 = 0; + a16 = 7; + a9 = 8; + a21 = 10; + a19 = 2; + a8 = 1; + a1 = 12; + a5 = 5; + a20 = 1; + a3 = 0; + return 23; + } else if((((((a19==5)&&((a23==1)&&(!(a26==1)&&((a12==1)&&((!(a14==1)&&((a21==11)&&(((a5==4)||(a5==5))&&(input==5))))&&!(a8==1))))))&&(a9==11))&&(a16==10))&&(((a20==1)&&(((a17==2)&&(a6==1))||(a4==1)))&&(a1==12)))){ + a19 = 4; + a16 = 7; + a5 = 5; + a21 = 10; + a9 = 10; + a1 = 13; + a12 = 1; + a2 = 1; + return 25; + } else if((((a8==1)&&((((((a20==1)&&(input==3))&&(a4==1))&&(a19==4))&&!(a13==1))&&!(a3==1)))&&((a17==2)&&(((a21==11)&&(((!(a23==1)&&((a1==12)&&((a6==1)&&(a16==7))))&&(a27==1))&&(a9==11)))&&(a5==4))))){ + a15 = 1; + a5 = 6; + a19 = 2; + a22 = 1; + a21 = 10; + return 21; + } else if((((((((a12==1)||!(a13==1))||!(a13==1))&&(a9==9))&&!(a14==1))&&(a1==13))&&((a23==1)&&((a17==2)&&(!(a20==1)&&(((a2==1)&&((a21==10)&&((a5==5)&&((a19==4)&&((a16==9)&&(input==3))))))&&!(a27==1))))))){ + a1 = 12; + a10 = 1; + a19 = 3; + a5 = 6; + a27 = 1; + a2 = 0; + a9 = 10; + a20 = 1; + return -1; + } else if((((a17==2)&&(((a3==1)&&((a21==12)&&(((a16==7)&&((a28==1)&&((a2==1)&&!(a20==1))))&&!(a4==1))))&&!(a4==1)))&&(((!(a27==1)&&(((input==1)&&(((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))))&&(a19==1)))&&!(a8==1))&&(a1==13)))){ + a1 = 12; + a5 = 4; + a0 = 0; + a21 = 10; + a24 = 0; + a9 = 7; + a6 = 1; + a20 = 1; + return -1; + } else if((((a17==2)&&((a16==8)&&(((a24==1)||(((a11==1)&&(a28==1))&&!(a0==1)))&&(a19==3))))&&(((a1==13)&&((((((((a5==5)||(a5==6))&&(input==5))&&(a11==1))&&(a20==1))&&(a11==1))&&!(a26==1))&&(a9==10)))&&(a21==10)))){ + a19 = 1; + a1 = 12; + a26 = 0; + a3 = 1; + a11 = 1; + a9 = 7; + a5 = 4; + a16 = 7; + return -1; + } else if((((((!(a8==1)&&((!(a7==1)&&(a3==1))&&(a19==5)))||(a0==1))&&!(a24==1))&&(a1==12))&&(((!(a20==1)&&(((((((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6))))&&(input==5))&&(a16==10))&&(a13==1))&&(a21==11)))&&!(a4==1))&&(a17==2)))){ + a20 = 1; + a9 = 8; + a22 = 1; + a25 = 1; + a16 = 11; + a5 = 4; + a1 = 14; + a24 = 1; + return 23; + } else if(((((((a19==5)&&((a1==12)&&((a23==1)&&((input==6)&&(a5==4)))))&&(a2==1))&&(a17==2))&&(a9==7))&&((a21==12)&&(((a2==1)&&(!(a28==1)||(((a11==1)&&(!(a20==1)&&(a11==1)))||!(a6==1))))&&(a16==10))))){ + if((a18==1)){ + a23 = 0; + a5 = 6; + a22 = 1; + a0 = 1; + a19 = 1; + a16 = 7; + a20 = 1; + a9 = 11; + }else{ + a18 = 1; + a14 = 1; + a20 = 1; + a15 = 0; + a19 = 4; + a1 = 14; + } + return -1; + } else if(((((a16==7)&&((a5==6)&&((a23==1)&&((a17==2)&&(!(a4==1)&&(a3==1))))))&&(a21==12))&&((((a13==1)&&((((((input==4)&&(a19==2))&&!(a20==1))&&!(a4==1))&&(a1==13))&&(a2==1)))&&(a3==1))&&(a9==10)))){ + a7 = 0; + a20 = 1; + a19 = 4; + a1 = 12; + a28 = 1; + a21 = 10; + a5 = 4; + a27 = 0; + a9 = 8; + return 21; + } else if((((((input==6)&&((a5==5)||(a5==6)))&&(a19==1))&&(a6==1))&&(!(a11==1)||(((!(a20==1)&&((a16==7)&&((((a1==13)&&(((a17==2)&&(!(a3==1)||(a2==1)))&&(a3==1)))&&(a9==7))&&(a21==11))))&&(a13==1))&&(a6==1))))){ + if((a4==1)){ + a21 = 10; + a23 = 1; + a24 = 0; + a5 = 6; + a3 = 1; + a9 = 10; + a1 = 12; + a16 = 8; + }else{ + a14 = 0; + a20 = 1; + a1 = 14; + a5 = 4; + a19 = 2; + a21 = 10; + a7 = 0; + a16 = 8; + } + return 26; + } else if((((a1==13)&&(((a21==10)&&(((a19==3)&&(((a2==1)||!(a11==1))||(a26==1)))&&(a11==1)))&&(a20==1)))&&((a17==2)&&((a16==11)&&((!(a26==1)&&(!(a8==1)&&((((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(input==3))))&&(a6==1)))))){ + a1 = 12; + a3 = 1; + a11 = 1; + a19 = 4; + a9 = 7; + a5 = 6; + a23 = 1; + return 21; + } else if((((((a5==5)&&((a17==2)&&(((((input==1)&&(a16==10))&&!(a26==1))&&(a28==1))&&(a20==1))))&&(a1==12))&&(a21==11))&&(((!(a26==1)&&((a19==3)&&(((a14==1)||(a12==1))||!(a13==1))))||(a24==1))&&(a9==7)))){ + a2 = 1; + a21 = 10; + a27 = 0; + a8 = 0; + a5 = 4; + a16 = 7; + a19 = 1; + return -1; + } else if((((((!(a4==1)&&((((a13==1)&&(a23==1))&&(a19==1))&&(a3==1)))&&(a16==7))&&(a17==2))&&!(a20==1))&&((!(a24==1)&&((((((input==3)&&(a9==10))&&(a21==10))&&(a5==5))&&(a11==1))&&(a1==14)))&&!(a7==1)))){ + a27 = 0; + a20 = 1; + a1 = 12; + a5 = 4; + a24 = 0; + a28 = 1; + a9 = 7; + return -1; + } else if(((!(a8==1)&&((a23==1)&&((a1==12)&&(!(a4==1)&&((((a9==10)&&(((a2==1)&&((a5==4)&&(input==6)))&&(a16==7)))&&(a13==1))&&(a21==12))))))&&(((a17==2)&&((a8==1)||(!(a20==1)&&(a3==1))))&&(a19==2)))){ + a9 = 7; + a11 = 1; + a20 = 1; + a19 = 1; + a14 = 0; + a7 = 0; + a21 = 10; + return -1; + } else if(((((a17==2)&&((a12==1)&&(((a6==1)&&((input==6)&&(a9==8)))&&(a20==1))))&&(a1==12))&&((a5==6)&&((a16==8)&&(((!(a27==1)&&((a2==1)&&((a21==12)&&((a23==1)||(a14==1)))))||(a8==1))&&(a19==3)))))){ + a26 = 0; + a16 = 7; + a5 = 4; + a19 = 1; + a21 = 10; + a11 = 1; + a9 = 7; + a3 = 1; + return -1; + } else if((((a1==14)&&((((a8==1)&&(((a16==10)&&((a26==1)&&(a11==1)))&&!(a3==1)))&&(a19==2))&&(a21==12)))&&((((((a18==1)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==1)))&&(a26==1))&&(a17==2))&&!(a6==1))&&(a20==1)))){ + a1 = 12; + a21 = 10; + a5 = 6; + a14 = 1; + a16 = 7; + a9 = 9; + a29 = 1; + a22 = 0; + return 21; + } else if((((((a12==1)&&((!(a4==1)&&(!(a7==1)&&((a21==10)&&((((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6))))&&(input==5)))))&&(a28==1)))&&!(a18==1))&&(a1==12))&&((((a13==1)&&((!(a20==1)&&(a2==1))&&(a17==2)))&&(a19==2))&&(a16==11)))){ + a5 = 6; + a15 = 0; + a19 = 1; + a10 = 0; + a16 = 8; + a21 = 11; + a29 = 1; + a9 = 8; + return 23; + } else if(((((((a14==1)||(((a2==1)&&(a16==9))&&(a9==8)))&&(a1==12))||(a0==1))&&(a13==1))&&(!(a4==1)&&(!(a20==1)&&(((a21==12)&&(((((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a19==1))&&!(a7==1))&&(a17==2)))&&(a2==1)))))){ + a0 = 1; + a10 = 1; + a21 = 10; + a5 = 6; + a20 = 1; + a3 = 0; + a16 = 7; + a9 = 9; + a1 = 13; + return -1; + } else if((((a20==1)&&((a1==14)&&(((a19==2)&&((a9==8)&&(((a11==1)&&(a3==1))||(a14==1))))&&(a16==11))))&&(((!(a18==1)&&(((a2==1)&&(!(a7==1)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6)))))&&!(a18==1)))&&(a17==2))&&(a21==10)))){ + a1 = 12; + a5 = 4; + a14 = 0; + a28 = 1; + a9 = 7; + a8 = 0; + a16 = 7; + a19 = 1; + return -1; + } else if(((((a16==9)&&(!(a0==1)&&(((a17==2)&&(input==6))&&(a6==1))))&&(a19==5))&&((!(a11==1)||(((((a9==10)&&((a3==1)&&(((a20==1)&&(a3==1))||!(a3==1))))&&(a1==14))&&!(a8==1))&&(a5==5)))&&(a21==12)))){ + a23 = 1; + a21 = 10; + a16 = 7; + a9 = 9; + a5 = 4; + a1 = 13; + a19 = 2; + a24 = 0; + a6 = 1; + return 23; + } else if((((((a17==2)&&((((a19==5)&&((a6==1)&&(a16==8)))&&(a1==13))&&(a20==1)))&&!(a0==1))||!(a13==1))&&(!(a14==1)&&((a9==9)&&(((a21==12)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&!(a27==1))&&(a6==1)))&&(a6==1)))))){ + a21 = 10; + a19 = 2; + a14 = 0; + a16 = 7; + a4 = 0; + a5 = 5; + a24 = 0; + return -1; + } else if((((a17==2)&&(((a8==1)||((a8==1)||((!(a20==1)&&((a16==9)&&(!(a7==1)&&(a2==1))))||!(a23==1))))&&(a21==11)))&&((a28==1)&&(((a1==12)&&((((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a5==4)&&(a9==8)))&&(input==5))&&(a6==1)))&&(a19==2))))){ + if((a11==1)){ + a9 = 7; + a19 = 1; + a16 = 7; + a20 = 1; + a8 = 1; + a14 = 1; + a21 = 10; + a2 = 0; + a1 = 14; + a5 = 5; + }else{ + a10 = 0; + a11 = 0; + a9 = 11; + a16 = 7; + a28 = 0; + a20 = 1; + a5 = 5; + a21 = 10; + } + return 22; + } else if(((((a17==2)&&((a16==8)&&((a0==1)||(((a19==5)&&((a11==1)&&(a3==1)))||!(a3==1)))))&&(a20==1))&&((a21==10)&&((a1==12)&&((a23==1)&&(((a9==8)&&((a13==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1))))&&!(a0==1))))))){ + a13 = 1; + a24 = 0; + a16 = 7; + a4 = 0; + a9 = 7; + a5 = 4; + a19 = 1; + return -1; + } else if(((((a13==1)&&(((a16==7)&&((input==3)&&(a9==7)))&&(a1==14)))&&!(a20==1))&&((a5==6)&&((a13==1)&&(!(a13==1)||((a19==1)&&(!(a7==1)&&(!(a18==1)&&(((a17==2)&&((a21==12)&&(a13==1)))||(a0==1)))))))))){ + a20 = 1; + a1 = 12; + a6 = 1; + a21 = 10; + a11 = 1; + a5 = 4; + a23 = 1; + return -1; + } else if(((((!(a18==1)&&(((((input==1)&&(a16==10))&&!(a4==1))&&!(a18==1))&&(a5==4)))&&(a20==1))&&!(a26==1))&&(((!(a4==1)&&(((a9==9)&&(((a2==1)&&(a19==5))&&(a1==13)))&&(a21==11)))&&(a17==2))&&!(a8==1)))){ + a19 = 1; + a21 = 10; + a2 = 1; + a9 = 7; + a16 = 7; + a1 = 12; + a3 = 1; + a24 = 0; + return -1; + } else if(((((a16==7)&&(((input==6)&&((((a5==5)&&(a1==14))&&(a9==7))||(((a9==11)&&((a1==13)&&(a5==6)))||((a9==7)&&((a1==14)&&(a5==4))))))&&(a17==2)))&&(a11==1))&&(!(a8==1)&&(!(a4==1)&&((((a19==2)&&(((a7==1)||(!(a11==1)||(a12==1)))&&(a20==1)))&&(a21==12))||(a24==1)))))){ + a24 = 0; + a19 = 1; + a9 = 7; + a21 = 10; + a2 = 1; + a5 = 4; + a18 = 0; + a1 = 12; + return -1; + } else if(((((a1==12)&&((((a13==1)&&(a13==1))&&!(a26==1))&&(a20==1)))||(a26==1))&&((a3==1)&&((((((a19==2)&&((a9==7)&&(((input==3)&&((a5==5)||(a5==6)))&&(a16==10))))&&(a3==1))&&(a17==2))&&(a21==10))&&!(a18==1))))){ + a6 = 1; + a2 = 1; + a5 = 4; + a11 = 1; + a16 = 7; + a19 = 1; + return -1; + } else if((((((a14==1)||((((a17==2)&&((a11==1)&&(a16==7)))||!(a23==1))||!(a12==1)))&&(a21==12))&&(a1==13))&&(((!(a14==1)&&(((a6==1)&&(((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))&&(input==6)))&&(a28==1)))&&(a19==2))&&(a20==1)))){ + a26 = 0; + a9 = 7; + a19 = 1; + a13 = 1; + a21 = 10; + a1 = 12; + a5 = 4; + a2 = 1; + return -1; + } else if(((((a12==1)&&((a9==10)&&((a4==1)||(a6==1))))&&(a16==11))&&((a1==14)&&((a17==2)&&((a21==11)&&((a3==1)&&((((((a19==3)&&((input==3)&&((a5==4)||(a5==5))))&&(a11==1))&&!(a24==1))&&(a20==1))&&!(a18==1)))))))){ + a4 = 0; + a21 = 10; + a1 = 12; + a6 = 1; + a9 = 7; + a5 = 4; + a19 = 1; + a28 = 1; + a16 = 7; + return -1; + } else if(((((((a0==1)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))&&(a0==1))&&(a9==7))&&!(a20==1))&&((((a4==1)&&((a18==1)&&(((a16==7)&&((a27==1)&&(((a19==5)&&(a23==1))&&(a14==1))))&&(a1==14))))&&(a17==2))&&(a21==11)))){ + a11 = 0; + a20 = 1; + a16 = 10; + a3 = 0; + a5 = 6; + a21 = 12; + a9 = 11; + a1 = 13; + a24 = 1; + return -1; + } else if((((a9==7)&&(((((a20==1)&&(!(a26==1)&&((a1==13)&&(input==1))))&&(a17==2))&&(a21==10))&&(a16==10)))&&((a8==1)||(!(a28==1)||(((a19==3)&&((a2==1)&&(((a12==1)&&!(a7==1))&&(a5==5))))||!(a6==1)))))){ + a26 = 0; + a5 = 4; + a19 = 1; + a16 = 7; + a13 = 1; + a1 = 12; + return -1; + } else if(((((((a2==1)&&(a20==1))||!(a28==1))&&(a9==11))&&(a12==1))&&((((a23==1)&&(((a13==1)&&((a19==5)&&((a16==10)&&((((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a17==2))&&(a21==12)))))&&!(a4==1)))&&!(a26==1))&&(a1==13)))){ + a26 = 0; + a4 = 0; + a5 = 5; + a12 = 1; + a19 = 4; + return -1; + } else if((((a16==11)&&((a21==10)&&(!(a20==1)&&((a19==1)&&(((((a9==11)&&((a1==13)&&(a5==6)))||(((a5==4)&&(a1==14))&&(a9==7)))||(((a1==14)&&(a5==5))&&(a9==7)))&&(input==1))))))&&(((a18==1)||((a2==1)&&((a2==1)&&(((a24==1)||((a23==1)||(a7==1)))&&!(a18==1)))))&&(a17==2)))){ + a18 = 1; + a5 = 5; + a19 = 5; + a20 = 1; + a16 = 10; + a9 = 10; + a28 = 0; + a21 = 11; + a1 = 12; + a14 = 1; + return -1; + } else if(((!(a20==1)&&(((!(a27==1)&&(((((a5==5)||(a5==6))&&(input==4))&&(a17==2))&&!(a0==1)))&&(a13==1))&&(a9==11)))&&(((!(a3==1)||((a16==7)&&((((a1==12)&&(a13==1))||(a14==1))||!(a28==1))))&&(a21==10))&&(a19==2)))){ + a28 = 1; + a8 = 0; + a20 = 1; + a9 = 7; + a19 = 1; + a5 = 4; + a12 = 1; + return -1; + } else if((((a20==1)&&(((((((a9==7)&&((a6==1)&&(a21==12)))&&!(a0==1))&&(a1==12))||(a8==1))&&(a16==9))&&(a19==5)))&&((a13==1)&&(!(a0==1)&&((a12==1)&&((a17==2)&&(((input==3)&&((a5==5)||(a5==6)))&&!(a8==1)))))))){ + a18 = 0; + a11 = 1; + a5 = 4; + a19 = 1; + a27 = 0; + a21 = 10; + a16 = 7; + return -1; + } else if(((((!(a0==1)&&((a4==1)||(((a11==1)&&(a2==1))&&(a17==2))))&&(a21==11))&&(a9==8))&&((((a1==14)&&((a11==1)&&(((((input==3)&&(a16==11))&&(a20==1))&&(a19==4))&&(a5==4))))&&(a11==1))&&!(a8==1)))){ + a19 = 1; + a16 = 7; + a23 = 1; + a21 = 10; + a9 = 7; + a2 = 1; + a1 = 12; + a8 = 0; + return -1; + } else if((((a16==9)&&((!(a11==1)||((a17==2)&&((!(a24==1)&&(!(a18==1)&&(!(a18==1)&&(a12==1))))&&(a20==1))))||(a24==1)))&&(((a3==1)&&(((input==1)&&(((((a5==5)&&(a1==12))&&(a9==11))||(((a5==6)&&(a1==12))&&(a9==11)))||(((a5==4)&&(a1==13))&&(a9==7))))&&(a21==12)))&&(a19==1)))){ + a24 = 0; + a9 = 7; + a1 = 12; + a5 = 4; + a21 = 10; + a16 = 7; + a23 = 1; + a0 = 0; + return -1; + } else if((((a21==11)&&(!(a13==1)||((a18==1)||(!(a20==1)&&((a1==14)&&((a28==1)&&((((a16==8)&&(a12==1))&&!(a8==1))&&(a17==2))))))))&&((((a28==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a3==1)))&&(a9==9))&&(a19==1)))){ + a20 = 1; + a9 = 7; + a12 = 1; + a21 = 10; + a18 = 0; + a1 = 12; + a16 = 7; + a5 = 4; + a14 = 0; + return -1; + } else if((((a21==11)&&((a17==2)&&((a13==1)&&((a3==1)&&((a9==8)&&((((((a16==11)&&(input==4))&&(a1==12))&&(a5==5))&&(a3==1))&&!(a14==1)))))))&&(((a20==1)&&((a14==1)||(!(a13==1)||(a3==1))))&&(a19==5)))){ + a19 = 1; + a27 = 0; + a21 = 10; + a9 = 7; + a16 = 7; + a5 = 4; + a4 = 0; + a2 = 1; + return -1; + } else if((((a4==1)||(((((a5==5)&&((a28==1)&&(a13==1)))&&(a16==9))&&(a9==9))&&(a19==4)))&&((a17==2)&&(((a20==1)&&((a11==1)&&((!(a4==1)&&((a11==1)&&((input==3)&&(a1==13))))&&!(a18==1))))&&(a21==11))))){ + a5 = 4; + a8 = 0; + a21 = 10; + a12 = 1; + a26 = 0; + a16 = 7; + a19 = 2; + a9 = 10; + return 21; + } else if((((a21==12)&&((!(a0==1)&&(!(a27==1)&&((((a5==5)||(a5==6))&&(input==6))&&(a1==14))))&&(a17==2)))&&(((a9==7)&&(!(a14==1)&&(((a16==7)&&((((a2==1)&&!(a20==1))||(a4==1))||!(a3==1)))&&!(a27==1))))&&(a19==2)))){ + a5 = 5; + a1 = 13; + a21 = 11; + a6 = 1; + a19 = 5; + a24 = 0; + a16 = 11; + a20 = 1; + return 21; + } else if((((!(a20==1)&&(((a8==1)&&(((a19==2)&&((a4==1)&&((a8==1)&&(((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&!(a3==1)))))&&!(a13==1)))&&(a9==11)))&&(a17==2))&&(((a1==14)&&(((a16==7)&&(a6==1))&&(a21==12)))&&(a27==1)))){ + a3 = 0; + a20 = 1; + a19 = 5; + a9 = 10; + a5 = 4; + a1 = 12; + a16 = 11; + a6 = 0; + a10 = 0; + return -1; + } else if((((a9==10)&&((((((a17==2)&&(!(a18==1)&&((input==5)&&((a5==4)||(a5==5)))))&&!(a18==1))&&!(a26==1))&&(a3==1))&&(a1==13)))&&(((((a21==10)&&((a27==1)||((a11==1)||!(a2==1))))&&(a19==3))&&(a16==7))&&(a20==1)))){ + a13 = 1; + a3 = 1; + a12 = 1; + a5 = 4; + a1 = 14; + a21 = 11; + a19 = 1; + a9 = 9; + return 25; + } else if((((!(a3==1)||(((a9==10)&&((a11==1)&&(a20==1)))&&(a17==2)))&&!(a27==1))&&(!(a4==1)&&((a11==1)&&((((a23==1)&&((a1==14)&&((a21==11)&&((a19==5)&&((input==6)&&((a5==5)||(a5==6)))))))&&!(a7==1))&&(a16==10)))))){ + a5 = 4; + a1 = 13; + a19 = 2; + a26 = 0; + a9 = 9; + a2 = 1; + a21 = 10; + a16 = 7; + a28 = 1; + return 25; + } else if((((((((((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a17==2))&&!(a24==1))&&!(a20==1))&&(a28==1))&&!(a24==1))&&(a28==1))&&((((a9==8)&&(((((a19==2)&&(a12==1))&&(a16==10))&&(a21==12))&&(a1==13)))||!(a3==1))&&(a3==1)))){ + if((a5==4)){ + a1 = 14; + a12 = 0; + a24 = 1; + a21 = 10; + a16 = 7; + a20 = 1; + a9 = 10; + a28 = 0; + a5 = 4; + a19 = 1; + }else{ + a10 = 1; + a1 = 12; + a19 = 5; + a5 = 5; + a26 = 1; + a9 = 11; + a21 = 11; + a8 = 1; + a16 = 9; + } + return -1; + } else if((((a1==12)&&(!(a20==1)&&((a9==10)&&(((!(a14==1)&&(((a16==8)&&(((a5==5)||(a5==6))&&(input==4)))&&!(a8==1)))&&(a12==1))&&(a12==1)))))&&((a19==4)&&((a21==11)&&(((a17==2)&&(!(a2==1)||(a11==1)))&&(a3==1)))))){ + a12 = 1; + a27 = 0; + a24 = 0; + a20 = 1; + a5 = 5; + return 25; + } else if(((((((a14==1)||(((a13==1)&&((a13==1)||!(a6==1)))&&(a16==10)))&&(a19==1))&&(a21==10))&&(a20==1))&&((a1==13)&&(((a5==6)&&(((!(a7==1)&&((input==3)&&(a9==10)))&&(a17==2))&&!(a7==1)))&&!(a27==1))))){ + a5 = 4; + a11 = 1; + a1 = 12; + a16 = 7; + a6 = 1; + a14 = 0; + a9 = 7; + return -1; + } else if((((a19==2)&&(((((a16==7)&&(!(a0==1)&&((((a9==10)&&(input==4))&&(a11==1))&&!(a4==1))))&&(a17==2))&&(a5==5))&&(a20==1)))&&((a21==12)&&(((a26==1)||(((a27==1)||(a6==1))||(a26==1)))&&(a1==12))))){ + a11 = 1; + a3 = 1; + a0 = 0; + a5 = 4; + a9 = 7; + a19 = 1; + a21 = 10; + return -1; + } else if((((a13==1)&&(((a13==1)&&((a19==2)&&(((((a21==10)&&((a1==13)&&(input==4)))&&(a9==7))&&(a16==7))&&!(a26==1))))&&(a23==1)))&&((((!(a3==1)||((a12==1)&&(a5==5)))||!(a23==1))&&(a17==2))&&(a20==1)))){ + a13 = 1; + a5 = 6; + a3 = 1; + a12 = 1; + return 25; + } else if(((((a21==11)&&((!(a8==1)&&((a3==1)&&(((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==1))&&!(a26==1))))&&(a16==7)))&&(a19==2))&&(((((a6==1)&&((a27==1)||((a17==2)&&(a12==1))))&&(a13==1))&&(a1==12))&&!(a20==1)))){ + a11 = 1; + a3 = 1; + a8 = 0; + a16 = 11; + a9 = 7; + a5 = 6; + a20 = 1; + a21 = 12; + a19 = 5; + return 21; + } else if(((((((((a16==10)&&(a11==1))&&(a1==14))&&!(a18==1))&&(a5==5))&&!(a20==1))||!(a13==1))&&(((a3==1)&&(((!(a4==1)&&((a17==2)&&((a9==8)&&((a21==11)&&(input==6)))))&&!(a7==1))&&(a19==4)))&&(a2==1)))){ + a19 = 5; + a5 = 6; + a18 = 1; + a24 = 1; + a21 = 10; + a7 = 1; + return 22; + } else if((((a16==10)&&((((a12==1)&&((a13==1)&&(((input==6)&&((a5==4)||(a5==5)))&&(a17==2))))&&!(a7==1))&&(a9==11)))&&((a20==1)&&(((((a2==1)&&(!(a0==1)&&((a21==11)&&(a12==1))))||!(a3==1))&&(a19==1))&&(a1==14))))){ + a3 = 1; + a9 = 10; + a16 = 8; + a5 = 6; + a1 = 13; + a19 = 5; + a4 = 0; + a6 = 1; + a21 = 12; + return -1; + } else if((((a16==8)&&((a19==2)&&((((((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8))))&&(input==6))&&!(a26==1))&&!(a4==1))))&&(((((a21==10)&&((a28==1)&&((!(a20==1)&&((a13==1)||!(a13==1)))&&(a6==1))))&&(a1==14))&&(a17==2))||(a0==1)))){ + a9 = 9; + a28 = 1; + a3 = 1; + a21 = 11; + a5 = 5; + a8 = 0; + a1 = 12; + return 26; + } else if(((((a23==1)&&((a16==11)&&((a21==10)&&(((a23==1)&&((input==3)&&((((a5==6)&&(a1==12))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==13))))))&&(a19==1)))))&&(a13==1))&&(((a2==1)&&(((a18==1)||((a17==2)&&(a11==1)))&&!(a20==1)))||!(a11==1)))){ + a5 = 5; + a8 = 1; + a25 = 0; + a14 = 1; + a16 = 7; + a9 = 8; + a1 = 12; + a20 = 1; + return 25; + } else if((((a1==13)&&((((a19==4)&&(!(a0==1)&&(((a5==4)||(a5==5))&&(input==1))))&&(a17==2))&&(a21==12)))&&((((a3==1)&&((a11==1)&&((a9==7)&&((((a23==1)&&!(a18==1))||!(a13==1))||(a7==1)))))&&(a20==1))&&(a16==10)))){ + a5 = 6; + a1 = 12; + a21 = 10; + a6 = 1; + a19 = 5; + a9 = 9; + a16 = 8; + a11 = 1; + a14 = 0; + return 22; + } else if((((a14==1)||(!(a23==1)||((a27==1)||((a9==10)&&((a17==2)&&((a7==1)||((((a28==1)&&(a16==11))&&!(a0==1))&&(a20==1))))))))&&((a12==1)&&((a19==3)&&((a21==12)&&((a1==13)&&(((a5==4)||(a5==5))&&(input==4)))))))){ + a16 = 7; + a21 = 10; + a5 = 4; + a9 = 7; + a19 = 1; + a11 = 1; + a0 = 0; + a1 = 12; + return -1; + } else if((((!(a7==1)&&((((a21==11)&&((a1==13)&&(!(a18==1)&&((a16==11)&&((input==3)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))))))&&!(a14==1))&&(a17==2)))&&(a3==1))&&(((((a19==2)&&(a11==1))&&(a3==1))||(a8==1))&&(a20==1)))){ + a19 = 1; + a1 = 12; + a14 = 0; + a21 = 10; + a13 = 1; + a16 = 7; + a24 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if(((!(a14==1)&&(((!(a27==1)&&((a16==10)&&(!(a14==1)&&((((((a1==13)&&(a5==5))&&(a9==7))||(((a9==11)&&((a1==12)&&(a5==6)))||((a9==7)&&((a1==13)&&(a5==4)))))&&(input==6))&&(a13==1)))))&&(a17==2))&&(a21==12)))&&((((a7==1)||((a23==1)&&!(a20==1)))||!(a28==1))&&(a19==4)))){ + if((a11==1)){ + a1 = 13; + a16 = 7; + a20 = 1; + a19 = 1; + a15 = 1; + a2 = 0; + a21 = 10; + a5 = 6; + a9 = 11; + a26 = 1; + }else{ + a19 = 3; + a8 = 1; + a9 = 10; + a21 = 11; + a29 = 0; + a5 = 6; + a1 = 12; + a2 = 0; + a16 = 9; + } + return 26; + } else if((((((!(a14==1)&&(((a20==1)&&((a16==11)&&(input==1)))&&(a23==1)))&&(a21==11))&&(a5==6))&&(a19==1))&&(!(a3==1)||(!(a14==1)&&((a9==10)&&((a6==1)&&(((a17==2)&&((a26==1)||(a23==1)))&&(a1==12)))))))){ + a5 = 4; + a9 = 7; + a24 = 0; + a16 = 7; + a13 = 1; + a21 = 10; + return -1; + } else if((((a3==1)&&((a14==1)||((a19==3)&&(((a20==1)&&((a8==1)||(a23==1)))&&(a16==7)))))&&((((a1==14)&&((a21==11)&&((((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))&&(input==3))&&(a28==1))&&(a17==2))))&&(a12==1))&&!(a0==1)))){ + a6 = 1; + a19 = 1; + a21 = 10; + a2 = 1; + a1 = 12; + a18 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if(((((a3==1)&&(((((input==6)&&(a5==5))&&!(a7==1))&&(a17==2))&&(a19==2)))&&(a23==1))&&((((((a16==10)&&(((!(a0==1)&&(a3==1))||!(a13==1))&&(a1==12)))&&(a21==10))&&!(a27==1))&&(a9==10))&&(a20==1)))){ + a14 = 0; + a21 = 11; + a5 = 6; + a13 = 1; + a1 = 13; + a26 = 0; + a19 = 4; + a16 = 9; + return -1; + } else if((((!(a27==1)&&((a9==7)&&((((((a21==10)&&(input==4))&&(a5==6))&&(a1==14))&&(a17==2))&&(a19==1))))&&(a28==1))&&(!(a6==1)||(((a16==9)&&(((a13==1)&&((a28==1)||(a7==1)))&&!(a20==1)))&&!(a0==1))))){ + a16 = 7; + a1 = 12; + a11 = 0; + a14 = 1; + a20 = 1; + a19 = 2; + return 21; + } else if((((a16==9)&&((a21==10)&&((a1==12)&&(((a2==1)&&((a19==5)&&((((a5==4)||(a5==5))&&(input==5))&&(a3==1))))&&(a11==1)))))&&((((!(a11==1)||(((a11==1)&&!(a8==1))&&(a17==2)))&&!(a26==1))&&(a9==7))&&!(a20==1)))){ + if((a9==11)){ + a2 = 0; + a5 = 6; + a19 = 1; + a1 = 14; + a16 = 7; + a3 = 0; + a13 = 0; + a20 = 1; + }else{ + a10 = 0; + a19 = 2; + a20 = 1; + a6 = 0; + a9 = 10; + a16 = 7; + a12 = 0; + a5 = 6; + } + return -1; + } else if(((((((a2==1)&&(!(a20==1)&&((input==1)&&(a19==1))))&&(a6==1))&&(a5==6))&&(a21==10))&&((((a16==11)&&((a17==2)&&((a24==1)||((((a3==1)&&!(a26==1))&&(a23==1))&&!(a8==1)))))&&(a9==8))&&(a1==13)))){ + a6 = 0; + a20 = 1; + a16 = 7; + a5 = 4; + a10 = 1; + a9 = 9; + a27 = 1; + a1 = 14; + return -1; + } else if(((!(a20==1)&&((((a2==1)&&(a5==4))&&!(a7==1))&&(a17==2)))&&(!(a18==1)&&((a21==11)&&((a12==1)&&((a16==7)&&(((a23==1)&&((!(a7==1)&&(((input==5)&&(a9==8))&&(a11==1)))&&(a19==4)))&&(a1==12)))))))){ + a19 = 1; + a9 = 7; + a21 = 10; + a24 = 0; + a11 = 1; + a20 = 1; + return -1; + } else if((((a1==14)&&(!(a20==1)&&((a17==2)&&(((!(a4==1)&&(!(a7==1)&&((input==1)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))))&&(a28==1))&&(a16==9)))))&&(!(a11==1)||((a28==1)&&((a21==10)&&((a19==4)&&((a11==1)&&(a13==1)))))))){ + a1 = 13; + a24 = 1; + a19 = 2; + a23 = 0; + a5 = 4; + a4 = 1; + a9 = 7; + a20 = 1; + a16 = 7; + return -1; + } else if(((!(a6==1)||(!(a20==1)&&((a21==12)&&((a2==1)&&((a13==1)&&((a19==3)&&(((a3==1)&&((a1==14)&&(a3==1)))&&(a17==2))))))))&&((((a16==7)&&(((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))&&(input==3)))&&!(a0==1))&&!(a14==1)))){ + a19 = 1; + a12 = 1; + a9 = 7; + a21 = 10; + a5 = 4; + a20 = 1; + a1 = 12; + a11 = 1; + return -1; + } else if(((((a2==1)&&((a9==11)&&(!(a8==1)&&(((a13==1)&&(a21==12))&&!(a20==1)))))&&(a19==5))&&(((a17==2)&&((!(a0==1)&&((a3==1)&&(((a3==1)&&((input==6)&&(a16==10)))&&!(a24==1))))&&(a5==5)))&&(a1==12)))){ + if((a23==1)){ + a16 = 7; + a9 = 7; + a21 = 10; + a19 = 1; + a20 = 1; + a2 = 0; + a13 = 0; + a22 = 0; + a1 = 14; + }else{ + a21 = 10; + a20 = 1; + a23 = 0; + a16 = 7; + a25 = 1; + a19 = 1; + a9 = 10; + } + return 25; + } else if((((!(a24==1)&&((!(a4==1)&&((!(a27==1)&&((a1==12)&&(((input==4)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9))))&&!(a26==1))))&&(a17==2)))&&(a21==12)))&&(a19==2))&&(!(a3==1)||((a16==8)&&((!(a20==1)&&(a23==1))||(a0==1)))))){ + if((a23==1)){ + a20 = 1; + a19 = 1; + a1 = 14; + a16 = 7; + a7 = 1; + a5 = 6; + a21 = 10; + a29 = 1; + a9 = 8; + }else{ + a16 = 7; + a9 = 7; + a15 = 0; + a19 = 1; + a21 = 10; + a20 = 1; + a13 = 0; + a5 = 6; + } + return 25; + } else if((((((a3==1)&&((((a2==1)&&(a12==1))&&(a19==5))&&!(a24==1)))&&(a16==11))&&(a1==13))&&(((a12==1)&&((a21==10)&&(((a13==1)&&((a17==2)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==6))))&&(a20==1))))&&(a2==1)))){ + a4 = 0; + a12 = 1; + a1 = 12; + a9 = 7; + a19 = 1; + a8 = 0; + a5 = 4; + a16 = 7; + return -1; + } else if(((((!(a12==1)||((((((a19==2)&&(a13==1))&&!(a20==1))&&(a1==14))&&(a23==1))&&(a9==10)))||!(a2==1))||(a26==1))&&((((a17==2)&&(((a16==8)&&((a5==6)&&(input==3)))&&(a21==10)))&&(a13==1))&&(a23==1)))){ + a24 = 0; + a1 = 12; + a2 = 1; + a19 = 1; + a9 = 7; + a20 = 1; + a0 = 0; + a5 = 4; + a16 = 7; + return -1; + } else if(((!(a6==1)||((a21==12)&&((a13==1)&&(!(a23==1)||((!(a20==1)&&((a23==1)&&((a3==1)&&(a3==1))))&&(a9==10))))))&&((a19==4)&&((a1==14)&&((a16==7)&&(((((a5==5)||(a5==6))&&(input==3))&&(a17==2))&&!(a7==1))))))){ + a21 = 10; + a1 = 12; + a4 = 0; + a19 = 1; + a5 = 4; + a20 = 1; + a9 = 7; + a11 = 1; + return -1; + } else if((((((((a1==13)&&(((a7==1)||(a23==1))&&(a21==12)))&&!(a20==1))&&(a17==2))||(a18==1))||!(a2==1))&&((!(a24==1)&&((a19==2)&&((a16==9)&&((((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4)))&&(input==5))&&(a28==1)))))&&!(a26==1)))){ + a27 = 1; + a23 = 0; + a21 = 11; + a0 = 1; + a20 = 1; + a9 = 9; + a16 = 10; + a5 = 6; + a1 = 12; + return -1; + } else if((((((a3==1)&&((a20==1)&&((a1==14)&&((a21==10)&&((a9==8)&&((input==6)&&((a5==4)||(a5==5))))))))&&(a6==1))&&!(a4==1))&&(!(a18==1)&&((((((a16==11)&&(a13==1))&&(a19==1))||!(a28==1))&&(a17==2))||!(a2==1))))){ + a11 = 1; + a5 = 4; + a18 = 0; + a2 = 1; + a9 = 7; + a1 = 12; + a16 = 7; + return -1; + } else if((((a21==11)&&((!(a18==1)&&(((((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a26==1))&&(a16==9))&&!(a26==1)))&&(a9==7)))&&(((a1==12)&&((a20==1)&&(!(a27==1)&&(((a7==1)||((a6==1)||!(a23==1)))&&(a17==2)))))&&(a19==2)))){ + a21 = 10; + a19 = 1; + a4 = 0; + a5 = 4; + a6 = 1; + a16 = 7; + return -1; + } else if(((((a17==2)&&(!(a20==1)&&((a12==1)&&((a6==1)&&(((a13==1)&&(((a21==11)&&(((input==4)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5))))&&(a19==3)))&&(a6==1)))&&!(a14==1))))))&&(a16==10))&&((a1==12)&&((a23==1)||(a4==1))))){ + a1 = 13; + a9 = 7; + a22 = 1; + a20 = 1; + a8 = 1; + a15 = 0; + a19 = 2; + a21 = 12; + a16 = 9; + a5 = 5; + return -1; + } else if((((!(a24==1)&&(!(a12==1)||(((a21==10)&&((a19==4)&&(a2==1)))&&!(a20==1))))&&(a17==2))&&((a16==9)&&(((((!(a26==1)&&(((input==1)&&((a5==4)||(a5==5)))&&(a1==12)))&&(a9==11))&&(a3==1))&&(a13==1))&&!(a27==1))))){ + a9 = 7; + a13 = 0; + a20 = 1; + a5 = 6; + a16 = 7; + a27 = 1; + a19 = 2; + a28 = 0; + return -1; + } else if(((!(a6==1)||((a5==4)&&(!(a4==1)&&((((((a3==1)&&(a16==10))&&!(a4==1))||!(a2==1))&&(a21==12))&&(a19==2)))))&&((!(a20==1)&&((((a28==1)&&((input==4)&&(a1==13)))&&!(a18==1))&&(a17==2)))&&(a9==10)))){ + a16 = 7; + a7 = 1; + a19 = 4; + a6 = 0; + a20 = 1; + a5 = 6; + a21 = 11; + a29 = 1; + a1 = 12; + a9 = 8; + return 22; + } else if((((((!(a20==1)&&((((a11==1)&&(a11==1))&&(a16==7))||!(a6==1)))||!(a13==1))&&(a17==2))&&(a1==12))&&((((a9==9)&&(((((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a8==1))&&(a21==11))&&(a23==1)))&&(a19==3))&&!(a7==1)))){ + a26 = 0; + a5 = 4; + a19 = 1; + a14 = 0; + a9 = 7; + a21 = 10; + a4 = 0; + a20 = 1; + return -1; + } else if(((!(a12==1)||((((!(a23==1)||(a12==1))&&!(a20==1))||!(a3==1))||(a4==1)))&&((a16==7)&&(((a21==12)&&((((input==4)&&((((a9==11)&&((a1==14)&&(a5==6)))&&(a19==3))||(((a9==7)&&((a1==12)&&(a5==4)))&&(a19==4))))&&(a6==1))&&!(a8==1)))&&(a17==2))))){ + a5 = 4; + a16 = 8; + a14 = 0; + a1 = 14; + a24 = 0; + a20 = 1; + a18 = 0; + a9 = 10; + a19 = 1; + a21 = 11; + return 25; + } else if(((((((a19==5)&&(((a11==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))&&!(a20==1)))&&(a1==12))&&!(a24==1))&&!(a18==1))&&((a2==1)&&((((a8==1)||((a9==8)&&(((a6==1)&&(a21==10))&&(a17==2))))&&(a16==8))&&!(a26==1))))){ + a5 = 6; + a3 = 1; + a13 = 1; + a9 = 10; + a23 = 1; + return 21; + } else if((((a5==4)&&((((a17==2)&&((input==1)&&(a1==13)))&&(a21==10))&&(a12==1)))&&((a16==10)&&(!(a0==1)&&((a9==10)&&(!(a28==1)||((a28==1)&&((a19==1)&&((((a11==1)&&(a20==1))&&(a2==1))&&(a3==1)))))))))){ + a0 = 0; + a27 = 0; + a16 = 7; + a9 = 7; + a1 = 12; + a26 = 0; + return -1; + } else if(((((a6==1)&&((a1==12)&&((((a12==1)&&((a9==8)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a17==2))&&(a21==12))))&&(a23==1))&&((a13==1)&&(!(a26==1)&&(!(a20==1)&&((a19==1)&&((a16==10)&&((a2==1)&&(a28==1))))))))){ + if((a5==4)){ + a19 = 2; + a26 = 1; + a9 = 7; + a16 = 11; + a21 = 11; + a20 = 1; + a22 = 0; + a1 = 14; + a5 = 6; + a27 = 1; + }else{ + a14 = 1; + a7 = 1; + a20 = 1; + a5 = 5; + a16 = 7; + a21 = 10; + } + return -1; + } else if((((a6==1)&&(a13==1))&&((a23==1)&&((a16==9)&&((!(a27==1)&&((a12==1)&&(!(a20==1)&&(!(a7==1)&&(((!(a4==1)&&((((a21==11)&&(input==1))&&(a19==3))&&(a1==13)))&&(a17==2))&&(a9==8))))))&&(a5==5)))))){ + a29 = 1; + a23 = 0; + a16 = 7; + a14 = 1; + a20 = 1; + a21 = 10; + a9 = 11; + a5 = 4; + a19 = 1; + return 22; + } else if((((((a17==2)&&((a24==1)&&(((a13==1)&&(a20==1))&&(a4==1))))&&(a21==10))&&(a1==14))&&(!(a12==1)&&((a16==10)&&(((((((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))&&(input==3))&&(a19==5))&&!(a11==1))&&!(a28==1))&&(a26==1)))))){ + a16 = 7; + a14 = 1; + a5 = 6; + a25 = 1; + a19 = 1; + a9 = 11; + a4 = 1; + return 21; + } else if(((!(a20==1)&&(((((a12==1)&&!(a0==1))&&(a9==7))||!(a2==1))||(a26==1)))&&((a21==11)&&((a1==12)&&(((((a11==1)&&(((a12==1)&&((a16==9)&&(input==1)))&&(a17==2)))&&(a5==5))&&(a28==1))&&(a19==1)))))){ + a19 = 5; + a7 = 1; + a1 = 14; + a5 = 4; + a16 = 8; + a20 = 1; + a21 = 10; + a0 = 1; + a27 = 1; + return -1; + } else if((((a6==1)&&((((((((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11)))&&(input==3))&&(a19==2))&&!(a20==1))&&(a17==2))&&!(a7==1))&&(a21==11)))&&((a11==1)&&((((a4==1)||((a24==1)||((a12==1)&&(a1==14))))&&(a16==7))||(a8==1))))){ + a24 = 0; + a21 = 10; + a16 = 9; + a1 = 13; + a5 = 5; + a3 = 1; + a9 = 8; + a2 = 1; + a19 = 3; + a20 = 1; + return 21; + } else if(((((!(a26==1)&&((!(a8==1)&&(!(a7==1)&&((input==5)&&(a16==10))))&&(a21==11)))&&(a9==11))&&(a19==4))&&((a17==2)&&((((a20==1)&&((a0==1)||((a23==1)&&((a28==1)&&(a5==6)))))||(a26==1))&&(a1==13))))){ + a4 = 0; + a2 = 1; + a21 = 10; + a16 = 7; + a26 = 0; + a9 = 9; + return 21; + } else if(((!(a3==1)||((a4==1)||((a1==14)&&(a13==1))))&&(((a17==2)&&((a11==1)&&(!(a20==1)&&(((((a5==5)&&(!(a8==1)&&(((a16==7)&&(input==4))&&!(a14==1))))&&(a19==1))&&!(a26==1))&&(a9==11)))))&&(a21==11)))){ + a20 = 1; + a1 = 12; + a9 = 7; + a11 = 1; + a21 = 10; + a3 = 1; + a5 = 4; + a0 = 0; + return -1; + } else if(((((a21==10)&&(!(a27==1)&&((a17==2)&&((a6==1)&&((a1==12)&&(!(a20==1)&&((a13==1)&&((input==3)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))))))))))&&!(a0==1))&&((!(a8==1)&&((a16==10)&&(!(a13==1)||(a28==1))))&&(a19==1)))){ + if((a16==8)){ + a5 = 4; + a16 = 7; + a1 = 14; + a15 = 1; + a9 = 10; + a8 = 1; + a20 = 1; + a0 = 1; + }else{ + a20 = 1; + a13 = 0; + a14 = 1; + a1 = 14; + a5 = 5; + a9 = 11; + a6 = 0; + a16 = 7; + } + return 23; + } else if(((((a21==10)&&(!(a23==1)||((a13==1)&&(!(a18==1)&&(a3==1)))))&&(a16==8))&&((((a23==1)&&((a19==3)&&((a17==2)&&(!(a18==1)&&((a6==1)&&((input==3)&&((((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4)))))))))&&!(a20==1))&&(a1==12)))){ + a26 = 0; + a2 = 1; + a20 = 1; + a9 = 7; + a3 = 1; + a19 = 1; + a16 = 7; + a5 = 4; + return -1; + } else if((((a21==11)&&((a16==9)&&(((((a7==1)||((a20==1)&&((a2==1)&&!(a27==1))))&&(a5==4))&&(a17==2))&&(a19==2))))&&((!(a27==1)&&((a9==8)&&((((a1==13)&&(input==3))&&(a28==1))&&!(a7==1))))&&!(a18==1)))){ + a1 = 12; + a9 = 7; + a2 = 1; + a21 = 10; + a8 = 0; + a7 = 0; + a19 = 1; + a16 = 7; + return -1; + } else if((((a21==11)&&((a20==1)&&(((a16==7)&&(((a17==2)&&(((a11==1)&&(a11==1))&&(a3==1)))&&!(a7==1)))||(a4==1))))&&((!(a0==1)&&(!(a18==1)&&((((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))&&(input==6))&&(a19==3))))&&(a1==13)))){ + a19 = 1; + a11 = 1; + a21 = 10; + a27 = 0; + a1 = 12; + a9 = 7; + a5 = 4; + return -1; + } else if(((!(a0==1)&&((a16==8)&&((a17==2)&&((a1==12)&&((!(a0==1)&&(((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11)))&&(input==1)))&&(a2==1))))))&&((a13==1)&&(((a21==12)&&((((a0==1)||(a13==1))&&!(a0==1))&&!(a20==1)))&&(a19==5))))){ + if((a27==1)){ + a28 = 0; + a14 = 1; + a8 = 1; + a1 = 13; + a9 = 8; + a5 = 6; + a21 = 10; + a19 = 4; + a16 = 11; + }else{ + a25 = 0; + a14 = 1; + a5 = 6; + a1 = 13; + a12 = 0; + a21 = 10; + a9 = 8; + } + return 21; + } else if((((a19==3)&&((a17==2)&&((((a21==11)&&(!(a7==1)&&((!(a18==1)&&((a9==11)&&(input==3)))&&!(a20==1))))&&(a1==12))&&(a28==1))))&&((((a16==8)&&((a0==1)||((a28==1)&&(a5==5))))||!(a2==1))||(a24==1)))){ + a1 = 14; + a20 = 1; + a5 = 6; + a14 = 0; + a0 = 0; + a28 = 1; + a21 = 12; + a19 = 5; + return 22; + } else if(((((a16==7)&&((((a27==1)&&((a17==2)&&(input==3)))&&(a19==5))&&(a9==8)))&&(a26==1))&&((((((a26==1)&&((((a28==1)&&(a5==4))&&(a20==1))&&!(a2==1)))&&(a1==12))&&(a21==11))&&(a4==1))&&!(a3==1)))){ + a16 = 8; + a27 = 1; + a20 = 0; + a21 = 10; + a19 = 4; + a23 = 0; + a1 = 13; + a9 = 10; + a12 = 0; + return 22; + } else if((((((((a16==7)&&((!(a7==1)&&((input==1)&&(a21==12)))&&(a12==1)))&&(a2==1))&&!(a4==1))&&(a9==8))&&(a19==3))&&(((((((a2==1)||!(a11==1))&&(a3==1))&&(a1==14))&&(a17==2))&&(a20==1))&&(a5==6)))){ + a12 = 1; + a5 = 4; + a1 = 12; + a21 = 10; + a28 = 1; + a19 = 1; + a2 = 1; + a9 = 7; + return -1; + } else if((((a1==14)&&((a3==1)&&((((!(a0==1)&&((a5==4)&&((a17==2)&&((a3==1)&&((a20==1)&&(input==4))))))&&(a19==2))&&(a16==10))&&(a21==12))))&&(((((a2==1)&&!(a4==1))&&(a9==8))&&(a11==1))||(a18==1)))){ + a19 = 1; + a28 = 1; + a16 = 7; + a7 = 0; + a9 = 7; + a18 = 0; + a1 = 12; + a21 = 10; + return -1; + } else if((((a1==12)&&(!(a28==1)||(((a2==1)&&(a6==1))||(a18==1))))&&((a28==1)&&((((a16==8)&&(!(a4==1)&&((a17==2)&&(((((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5)))&&(input==4))&&!(a20==1))&&(a21==12)))))&&(a13==1))&&(a19==5))))){ + if((a25==1)){ + a19 = 4; + a20 = 1; + a9 = 10; + a5 = 5; + a8 = 1; + a1 = 13; + a16 = 9; + a10 = 0; + }else{ + a1 = 14; + a6 = 0; + a14 = 1; + a11 = 0; + a5 = 5; + a19 = 1; + a9 = 7; + } + return -1; + } else if(((!(a18==1)&&((!(a20==1)&&((a19==5)&&((a21==11)&&((a1==13)&&(!(a14==1)&&((input==5)&&((a5==4)||(a5==5))))))))&&!(a4==1)))&&(((((a23==1)&&(((a27==1)||(a6==1))&&(a17==2)))&&(a9==7))&&(a16==7))||(a8==1)))){ + a18 = 0; + a13 = 1; + a1 = 12; + a20 = 1; + a0 = 0; + a19 = 1; + a5 = 4; + a21 = 10; + return -1; + } else if((((a11==1)&&((((a1==13)&&((!(a12==1)||(a11==1))&&(a19==2)))&&(a21==12))&&(a9==11)))&&(!(a20==1)&&((((((a17==2)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&(a11==1)))&&!(a4==1))&&!(a27==1))&&(a12==1))&&(a16==9))))){ + a5 = 5; + a21 = 10; + a27 = 1; + a16 = 11; + a22 = 1; + a10 = 0; + a9 = 9; + return -1; + } else if((((a9==11)&&(!(a23==1)||((a5==6)&&((a19==3)&&((a0==1)||((((a17==2)&&(a28==1))&&(a21==11))||!(a3==1)))))))&&(!(a8==1)&&(((!(a7==1)&&(((a1==14)&&(input==6))&&!(a20==1)))&&(a2==1))&&(a16==7))))){ + a23 = 1; + a13 = 1; + a19 = 1; + a3 = 1; + a9 = 7; + a21 = 10; + a20 = 1; + a1 = 12; + a5 = 4; + return -1; + } else if((((!(a23==1)||(((a16==7)&&((((((!(a27==1)&&((a12==1)&&!(a20==1)))||!(a3==1))&&(a19==5))||!(a12==1))&&(a21==11))&&(a1==13)))&&(a17==2)))||!(a12==1))&&((a23==1)&&((a9==7)&&((input==6)&&((a5==4)||(a5==5))))))){ + a20 = 1; + a5 = 4; + a6 = 1; + a1 = 12; + a26 = 0; + a19 = 1; + a21 = 10; + a2 = 1; + return -1; + } else if((((a17==2)&&((a16==8)&&(((a12==1)&&!(a26==1))&&(a19==3))))&&((((((a21==10)&&((((a1==14)&&((input==5)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))&&(a6==1))&&!(a20==1)))&&(a11==1))&&!(a7==1))&&!(a4==1))&&!(a18==1)))){ + a6 = 1; + a19 = 4; + a9 = 8; + a16 = 7; + a20 = 1; + a14 = 0; + a5 = 5; + a3 = 1; + return 21; + } else if((((a18==1)||((!(a3==1)||((a17==2)&&((a1==14)&&(a3==1))))||!(a3==1)))&&((a19==3)&&((((!(a27==1)&&((((input==6)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10))))&&(a21==12))&&(a20==1)))&&(a6==1))&&(a2==1))&&(a16==9))))){ + a18 = 0; + a9 = 7; + a19 = 1; + a6 = 1; + a23 = 1; + a5 = 6; + a21 = 10; + return 25; + } else if((((a3==1)&&(!(a18==1)&&((a6==1)&&(((a17==2)&&(((((a1==12)&&(a5==6))&&(a9==11))||(((a1==13)&&(a5==4))&&(a9==7)))&&(input==1)))&&!(a20==1)))))&&(((a19==1)&&(!(a14==1)&&((((a11==1)||(a18==1))&&!(a7==1))&&(a21==12))))&&(a16==10)))){ + if((a1==12)){ + a10 = 0; + a20 = 1; + a5 = 4; + a21 = 10; + a9 = 7; + a22 = 0; + a19 = 5; + a15 = 0; + a16 = 8; + a1 = 12; + }else{ + a21 = 10; + a5 = 5; + a2 = 0; + a1 = 12; + a0 = 1; + a16 = 7; + a20 = 1; + a3 = 0; + a9 = 8; + } + return -1; + } else if((((a1==13)&&(((a21==12)&&(((!(a13==1)||((((a4==1)||(a23==1))&&(a2==1))&&(a6==1)))||!(a23==1))&&(a5==6)))&&(a17==2)))&&((a16==9)&&(((a9==8)&&(((input==6)&&!(a20==1))&&(a11==1)))&&(a19==5))))){ + a26 = 1; + a19 = 1; + a20 = 1; + a16 = 7; + a9 = 10; + a4 = 1; + a3 = 0; + a1 = 14; + a21 = 10; + return -1; + } else if(((!(a24==1)&&(((((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))&&(input==5))&&!(a20==1))&&(a16==10))&&(a1==12)))&&(((a28==1)&&(((a12==1)&&(((a19==1)&&(((a23==1)&&(a17==2))&&(a21==10)))&&!(a7==1)))&&(a6==1)))||(a7==1)))){ + a27 = 1; + a9 = 11; + a22 = 0; + a5 = 6; + a16 = 8; + a25 = 0; + a19 = 2; + a21 = 11; + a1 = 14; + return 26; + } else if((((a21==10)&&(!(a11==1)||(!(a14==1)&&((a23==1)&&((a1==12)&&((a16==7)&&((a6==1)||!(a3==1))))))))&&((!(a26==1)&&((a17==2)&&(!(a20==1)&&(((((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&(input==6))&&!(a7==1)))))&&(a19==5)))){ + a5 = 4; + a1 = 13; + a3 = 1; + a7 = 0; + a9 = 7; + a28 = 1; + return 22; + } else if((((a1==13)&&((((a17==2)&&(a13==1))&&(a13==1))&&(a16==7)))&&((!(a20==1)&&(((a21==11)&&((a6==1)&&(((!(a24==1)&&(((input==4)&&((a5==4)||(a5==5)))&&(a12==1)))&&!(a8==1))&&(a12==1))))&&(a9==9)))&&(a19==1)))){ + a20 = 1; + a21 = 10; + a4 = 0; + a5 = 4; + a1 = 12; + a14 = 0; + a9 = 7; + return -1; + } return calculate_output33(input); + } + + int calculate_output33(int input) { + if((((((!(a0==1)&&(((((((a9==11)&&((a1==12)&&(a5==6)))||(((a5==4)&&(a1==13))&&(a9==7)))&&(input==1))&&(a21==11))&&(a6==1))&&(a17==2)))&&(a16==7))&&(a6==1))&&!(a4==1))&&(!(a3==1)||(!(a6==1)||((a19==1)&&((a28==1)&&!(a20==1))))))){ + a21 = 10; + a18 = 0; + a1 = 14; + a27 = 0; + a5 = 5; + a9 = 7; + a19 = 2; + return 21; + } else if((((((((((input==1)&&(a21==12))&&(a9==8))&&(a28==1))&&(a12==1))&&(a2==1))&&(a5==4))&&(a19==5))&&((a17==2)&&(((((a16==11)&&((a27==1)||(!(a8==1)&&(a23==1))))&&(a1==13))&&!(a7==1))&&(a20==1))))){ + a1 = 12; + a16 = 9; + a5 = 5; + a13 = 1; + a21 = 11; + a14 = 0; + a9 = 7; + a3 = 1; + a19 = 4; + return 21; + } else if((((((((a12==1)&&(a11==1))&&!(a20==1))||(a14==1))&&(a16==7))&&(a19==2))&&(((!(a24==1)&&(((a9==8)&&((a17==2)&&((a6==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a21==12)))))&&(a1==14)))&&!(a27==1))&&(a23==1)))){ + a5 = 4; + a18 = 0; + a9 = 9; + a20 = 1; + a6 = 1; + a1 = 12; + a24 = 0; + a21 = 11; + return 25; + } else if((((a21==11)&&((a1==13)&&((((a17==2)&&((a28==1)&&((a16==9)&&(((input==5)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10))))&&!(a14==1)))))&&(a11==1))&&!(a20==1))))&&(((a6==1)&&(((a2==1)&&!(a14==1))&&(a19==3)))||(a18==1)))){ + if((a13==1)){ + a9 = 11; + a1 = 12; + a20 = 1; + a7 = 1; + a5 = 4; + a21 = 10; + a22 = 1; + a16 = 7; + a19 = 1; + a8 = 1; + }else{ + a21 = 10; + a19 = 1; + a20 = 1; + a10 = 0; + a9 = 8; + a5 = 5; + a16 = 7; + a14 = 1; + a1 = 14; + } + return 22; + } else if(((((a23==1)&&((a21==12)&&(((a5==6)&&(((a17==2)&&((a3==1)&&(a9==8)))||!(a13==1)))||(a7==1))))&&!(a14==1))&&((a3==1)&&((((a19==1)&&(((a16==7)&&(input==5))&&(a1==14)))&&(a20==1))&&!(a18==1))))){ + a16 = 9; + a18 = 0; + a21 = 10; + a9 = 9; + a13 = 1; + a7 = 0; + return 23; + } else if((((((a16==10)&&(((a20==1)&&(((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5)))&&(input==1)))&&(a1==14)))&&(a2==1))&&(a6==1))&&(!(a8==1)&&((((a21==11)&&(!(a11==1)||(((a3==1)&&(a19==3))||(a27==1))))&&(a17==2))||(a27==1))))){ + a5 = 5; + a24 = 0; + a9 = 9; + a1 = 13; + a16 = 7; + a21 = 10; + a13 = 1; + a19 = 2; + a14 = 0; + return -1; + } else if((((a21==10)&&((!(a3==1)||(((((((a26==1)||(a6==1))&&(a19==5))&&(a17==2))&&(a1==12))||(a26==1))||(a24==1)))&&(a6==1)))&&(!(a20==1)&&((a16==10)&&((a9==8)&&(((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&!(a26==1))))))){ + a10 = 1; + a5 = 5; + a19 = 2; + a9 = 10; + a20 = 1; + a29 = 0; + a16 = 7; + a12 = 0; + return -1; + } else if((((a17==2)&&(!(a26==1)&&(!(a20==1)&&((a21==11)&&((a6==1)&&(((a1==14)&&(((a5==4)||(a5==5))&&(input==5)))&&(a9==11)))))))&&((a16==9)&&(!(a18==1)&&(!(a28==1)||((a12==1)&&(!(a28==1)||((a19==1)&&(a2==1))))))))){ + a16 = 7; + a9 = 8; + a20 = 1; + a1 = 12; + a21 = 10; + a18 = 1; + a15 = 1; + a19 = 2; + a5 = 4; + return 21; + } else if(((((((a11==1)&&(a19==1))&&!(a0==1))&&(a17==2))&&(a21==11))&&((a20==1)&&(((a9==10)&&((a3==1)&&((a12==1)&&((a28==1)&&((a5==6)&&((a1==14)&&((a13==1)&&((a16==11)&&(input==1)))))))))&&!(a24==1))))){ + a16 = 7; + a9 = 7; + a11 = 1; + a2 = 1; + a1 = 12; + a28 = 1; + a5 = 4; + a21 = 10; + return -1; + } else if(((!(a20==1)&&(!(a6==1)||(((a19==3)&&((a28==1)||!(a28==1)))&&(a17==2))))&&(!(a27==1)&&((((a13==1)&&(((a28==1)&&(((((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(input==5))&&(a21==11)))&&!(a0==1)))&&(a16==10))&&(a1==13))))){ + a9 = 10; + a20 = 1; + a11 = 0; + a3 = 0; + a21 = 10; + a5 = 5; + a16 = 7; + a0 = 1; + a19 = 1; + return -1; + } else if(((((a19==3)&&(!(a7==1)&&((((a28==1)&&(a9==7))&&(a5==4))&&(a20==1))))&&(a21==11))&&(((((((a13==1)&&(((input==6)&&(a17==2))&&!(a7==1)))&&(a16==10))&&!(a27==1))&&(a1==13))&&!(a14==1))&&(a28==1)))){ + a21 = 10; + a16 = 7; + a8 = 0; + a1 = 12; + a19 = 1; + a23 = 1; + return -1; + } else if((((((a16==11)&&((a23==1)&&(a1==14)))&&(a19==1))&&(a21==10))&&((a20==1)&&(!(a7==1)&&((a9==7)&&(((a3==1)&&((a3==1)&&((a17==2)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a13==1))&&(a12==1)))))&&(a13==1))))))){ + a1 = 12; + a28 = 1; + a5 = 4; + a4 = 0; + a16 = 7; + a6 = 1; + return -1; + } else if((((a19==3)&&(((a20==1)&&((a0==1)||((a21==11)&&(((a5==4)&&(a2==1))||!(a23==1)))))||!(a13==1)))&&(!(a7==1)&&((a16==7)&&((((((input==6)&&(a17==2))&&(a9==8))&&(a1==12))&&!(a24==1))&&(a11==1)))))){ + a5 = 5; + a6 = 1; + a24 = 0; + a18 = 0; + a16 = 8; + a1 = 14; + a19 = 4; + a21 = 10; + a9 = 10; + return 25; + } else if((((a11==1)&&(((a21==10)&&((a11==1)&&(!(a20==1)&&((((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4)))&&(input==3))&&(a11==1)))))&&(a16==7)))&&(((a1==14)&&((!(a3==1)||(((a18==1)||(a11==1))||!(a2==1)))&&(a19==1)))&&(a17==2)))){ + a9 = 7; + a5 = 4; + a2 = 1; + a23 = 1; + a1 = 12; + a20 = 1; + return -1; + } else if(((((a27==1)||((a9==9)&&((a1==12)&&((!(a27==1)&&(a2==1))&&(a16==10)))))||(a26==1))&&((a17==2)&&(!(a7==1)&&((!(a0==1)&&(!(a20==1)&&((a19==5)&&(!(a26==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5))))))&&(a21==12)))))){ + a25 = 0; + a20 = 1; + a16 = 8; + a19 = 2; + a5 = 6; + a13 = 0; + a1 = 13; + a21 = 11; + a28 = 0; + return 23; + } else if((((a23==1)&&((a20==1)&&(!(a0==1)&&(((((input==4)&&((a5==5)||(a5==6)))&&(a19==5))&&!(a18==1))&&(a3==1)))))&&((a17==2)&&((a21==12)&&((!(a28==1)||(((a24==1)||((a9==8)&&(a23==1)))&&(a1==12)))&&(a16==7)))))){ + a19 = 3; + a5 = 6; + a9 = 9; + a1 = 14; + a3 = 1; + a2 = 1; + a14 = 0; + a21 = 11; + a16 = 9; + return 26; + } else if(((((((a1==14)&&(!(a23==1)||((a28==1)||!(a28==1))))&&(a6==1))&&(a21==12))||!(a3==1))&&((a11==1)&&((((a19==4)&&((((input==6)&&(((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))))&&!(a20==1))&&(a11==1)))&&(a16==7))&&(a17==2))))){ + a21 = 10; + a8 = 0; + a20 = 1; + a4 = 0; + a5 = 4; + a28 = 1; + a1 = 12; + a19 = 1; + a9 = 7; + return -1; + } else if(((((((a11==1)&&(a21==10))&&!(a7==1))||(a26==1))&&(a19==3))&&((a20==1)&&((!(a7==1)&&((a17==2)&&(((a1==13)&&(((a16==8)&&(((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a24==1)))&&(a9==11)))&&!(a18==1))))&&!(a8==1))))){ + a13 = 1; + a5 = 4; + a9 = 7; + a26 = 0; + a14 = 0; + a19 = 1; + a16 = 7; + a1 = 12; + return -1; + } else if((((a19==2)&&((((a9==11)&&((a13==1)&&((a14==1)||(a12==1))))&&!(a27==1))&&(a16==10)))&&((((!(a26==1)&&((a21==10)&&(((a1==13)&&((input==3)&&((a5==5)||(a5==6))))&&(a17==2))))&&(a23==1))&&(a23==1))&&(a20==1)))){ + a27 = 0; + a19 = 1; + a1 = 12; + a9 = 7; + a5 = 4; + a16 = 7; + a11 = 1; + a13 = 1; + return -1; + } else if(((((!(a24==1)&&(((!(a20==1)&&((((input==3)&&((a5==5)||(a5==6)))&&(a16==10))&&(a17==2)))&&(a19==2))&&!(a24==1)))&&(a2==1))&&(a11==1))&&(((a1==12)&&((a27==1)||((a21==11)&&((a28==1)&&(a9==9)))))&&(a13==1)))){ + a9 = 8; + a20 = 1; + a29 = 0; + a11 = 0; + a5 = 5; + a21 = 10; + a19 = 1; + a16 = 7; + a22 = 1; + a1 = 13; + return -1; + } else if(((!(a18==1)&&((((!(a18==1)&&((((a21==11)&&((a20==1)&&((input==4)&&((a5==4)||(a5==5)))))&&(a3==1))&&(a1==14)))&&(a17==2))&&(a16==8))&&(a28==1)))&&((a19==3)&&(((a9==9)&&((a12==1)&&(a11==1)))&&!(a27==1))))){ + a16 = 7; + a5 = 4; + a21 = 10; + a24 = 0; + a8 = 0; + a9 = 7; + a1 = 12; + a19 = 1; + return -1; + } else if((((((a19==2)&&((a4==1)&&((a24==1)&&(a28==1))))&&!(a2==1))&&!(a23==1))&&((a27==1)&&((a16==7)&&((((((input==5)&&((((a9==11)&&((a1==12)&&(a5==6)))||(((a1==13)&&(a5==4))&&(a9==7)))||(((a5==5)&&(a1==13))&&(a9==7))))&&(a21==11))&&!(a12==1))&&(a20==1))&&(a17==2)))))){ + a19 = 1; + a10 = 1; + a12 = 0; + a1 = 13; + a29 = 0; + a5 = 4; + a9 = 8; + a21 = 10; + return 21; + } else if((((a16==7)&&((((a19==2)&&(!(a8==1)&&(((((a2==1)||!(a28==1))&&(a17==2))&&(a9==8))||!(a23==1))))&&(a1==14))&&(a21==11)))&&((!(a27==1)&&(!(a20==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&!(a18==1))))&&(a3==1)))){ + a5 = 4; + a21 = 10; + a20 = 1; + a1 = 12; + a13 = 1; + a3 = 1; + a19 = 1; + a9 = 7; + a4 = 0; + return -1; + } else if(((((a17==2)&&((!(a20==1)&&((a28==1)&&(((a19==3)&&(input==5))&&(a16==7))))&&!(a18==1)))&&(a9==7))&&(((((!(a18==1)&&((a5==4)&&((a11==1)||!(a23==1))))||(a14==1))&&(a1==13))||!(a3==1))&&(a21==10)))){ + a14 = 0; + a12 = 1; + a1 = 12; + a21 = 12; + a19 = 2; + a5 = 5; + a16 = 9; + a6 = 1; + a20 = 1; + return 21; + } else if(((((a19==2)&&(((a26==1)&&(((a16==7)&&(a2==1))&&(a21==12)))&&(a1==14)))&&!(a23==1))&&((a7==1)&&((!(a13==1)&&((((a17==2)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&!(a20==1)))&&(a14==1))&&!(a13==1)))&&(a9==11))))){ + a5 = 4; + a11 = 0; + a25 = 0; + a14 = 1; + a21 = 11; + a9 = 9; + return 21; + } else if(((((!(a7==1)&&((a12==1)||(a14==1)))||!(a3==1))||(a0==1))&&((a3==1)&&((a17==2)&&((((!(a18==1)&&((input==5)&&(((a19==4)&&(((a1==12)&&(a5==4))&&(a9==7)))||(((((a5==5)&&(a1==14))&&(a9==11))&&(a19==3))||((a19==3)&&((a9==11)&&((a5==6)&&(a1==14))))))))&&(a21==12))&&(a20==1))&&(a16==7)))))){ + a5 = 4; + a28 = 1; + a1 = 12; + a9 = 7; + a4 = 0; + a21 = 10; + a19 = 1; + return -1; + } else if((((!(a23==1)&&(!(a6==1)&&((a20==1)&&((a16==8)&&((a17==2)&&(a12==1))))))&&!(a2==1))&&(((a21==12)&&(!(a28==1)&&(((input==4)&&(((((a1==12)&&(a5==5))&&(a9==7))&&(a19==2))||(((a19==1)&&(((a5==6)&&(a1==14))&&(a9==11)))||(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==2)))))&&(a8==1))))&&!(a13==1)))){ + a1 = 12; + a16 = 7; + a5 = 6; + a28 = 0; + a10 = 0; + a19 = 1; + a9 = 10; + a21 = 10; + a26 = 1; + return -1; + } else if((((a16==8)&&(((a21==11)&&(!(a23==1)||(!(a13==1)||((a5==6)&&(a23==1)))))&&(a17==2)))&&((a19==5)&&((a1==14)&&(!(a14==1)&&((!(a4==1)&&((a9==11)&&((a28==1)&&((input==3)&&(a20==1)))))&&!(a8==1))))))){ + a3 = 1; + a19 = 1; + a9 = 7; + a5 = 4; + a8 = 0; + a1 = 12; + a21 = 10; + a16 = 7; + a13 = 1; + return -1; + } else if(((((a17==2)&&(!(a4==1)&&((a1==13)&&((((a21==12)&&(input==6))&&(a5==4))&&!(a18==1)))))&&!(a8==1))&&(((a16==9)&&(!(a2==1)||(!(a20==1)&&((a9==7)&&((a19==4)&&((a28==1)&&!(a26==1)))))))&&(a12==1)))){ + if((a22==1)){ + a0 = 1; + a20 = 1; + a1 = 12; + a13 = 0; + a9 = 11; + a19 = 1; + a6 = 0; + a21 = 10; + a16 = 7; + a5 = 6; + }else{ + a20 = 1; + a6 = 0; + a21 = 10; + a1 = 12; + a16 = 7; + a28 = 0; + a19 = 2; + a13 = 0; + } + return -1; + } else if(((!(a18==1)&&((((a20==1)&&(((((input==3)&&((((a1==13)&&(a5==6))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==14)))))&&(a16==7))&&(a19==1))&&!(a4==1)))&&(a17==2))&&!(a24==1)))&&(!(a8==1)&&((a24==1)||(!(a12==1)||((a12==1)&&(a21==12))))))){ + a21 = 10; + a8 = 0; + a18 = 0; + a1 = 12; + a5 = 4; + a7 = 0; + a9 = 7; + return -1; + } else if((((a11==1)&&((((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6))))&&(input==3)))&&((a23==1)&&(((a21==11)&&(!(a14==1)&&((((a16==9)&&(((a17==2)&&(((a11==1)&&!(a24==1))&&(a19==5)))&&(a1==13)))&&(a20==1))||(a0==1))))||!(a13==1))))){ + a19 = 1; + a5 = 4; + a13 = 1; + a1 = 12; + a21 = 10; + a2 = 1; + a9 = 7; + a16 = 7; + return -1; + } else if(((((a2==1)&&(((a16==10)&&((a17==2)&&((((((a9==11)&&((a5==5)&&(a1==12)))||(((a1==12)&&(a5==6))&&(a9==11)))||((a9==7)&&((a5==4)&&(a1==13))))&&(input==6))&&!(a8==1))))&&!(a20==1)))&&(a21==10))&&((!(a12==1)||((a27==1)||(!(a12==1)||(!(a11==1)||(a28==1)))))&&(a19==1)))){ + a20 = 1; + a6 = 0; + a9 = 10; + a26 = 1; + a5 = 5; + a1 = 14; + a13 = 0; + a16 = 7; + return 21; + } else if((((a17==2)&&((!(a27==1)&&(((!(a0==1)&&((((((a19==2)&&((a9==11)&&((a1==14)&&(a5==6))))||(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==3)))||((a19==3)&&((a9==7)&&((a1==12)&&(a5==5)))))&&(input==4))&&(a11==1)))&&(a23==1))&&(a11==1)))&&(a16==8)))&&((!(a2==1)||((a3==1)&&(a21==11)))&&!(a20==1)))){ + a0 = 0; + a16 = 7; + a20 = 1; + a19 = 1; + a5 = 4; + a1 = 12; + a21 = 10; + a4 = 0; + a9 = 7; + return -1; + } else if(((!(a24==1)&&((((a20==1)&&((a19==5)&&((a28==1)&&(a1==13))))&&(a21==11))&&!(a0==1)))&&((((!(a8==1)&&((a6==1)&&((((input==5)&&((a5==5)||(a5==6)))&&!(a7==1))&&(a9==8))))&&(a16==9))&&(a17==2))&&(a12==1)))){ + a6 = 1; + a1 = 12; + a9 = 7; + a5 = 5; + a8 = 0; + a19 = 4; + a18 = 0; + return 21; + } else if(((!(a20==1)&&((((!(a4==1)&&(((input==5)&&((a5==5)||(a5==6)))&&(a28==1)))&&!(a24==1))&&(a17==2))&&(a16==7)))&&(((a0==1)||(((a21==12)&&(((!(a11==1)||(a3==1))||(a7==1))&&(a19==3)))&&(a1==13)))&&(a9==7)))){ + a20 = 1; + a3 = 1; + a5 = 6; + a11 = 1; + a9 = 8; + a19 = 1; + a1 = 14; + a24 = 0; + return 25; + } else if((((a27==1)||(((!(a13==1)||(!(a12==1)||(((a17==2)&&(a23==1))&&(a16==10))))&&(a1==13))&&(a19==3)))&&(!(a27==1)&&((a21==10)&&(!(a24==1)&&((a11==1)&&((a9==11)&&((a20==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))))))))){ + a14 = 0; + a11 = 1; + a1 = 14; + a21 = 12; + a5 = 6; + a12 = 1; + a16 = 8; + a9 = 8; + a19 = 5; + return -1; + } else if((((!(a20==1)&&((a17==2)&&(((a19==1)&&((a1==14)&&(((!(a26==1)&&((input==6)&&((a5==5)||(a5==6))))&&!(a18==1))&&!(a24==1))))&&!(a18==1))))&&(a2==1))&&(((a21==10)&&((a9==11)&&((a12==1)&&(a16==11))))||!(a3==1)))){ + a13 = 0; + a5 = 6; + a1 = 12; + a19 = 2; + a22 = 0; + a9 = 9; + a16 = 7; + a20 = 1; + a4 = 1; + return 21; + } else if(((((!(a2==1)||((((a2==1)&&(a1==14))&&(a20==1))&&(a9==7)))&&(a16==9))||(a14==1))&&(((a28==1)&&((((a21==12)&&((a11==1)&&(((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a17==2))))&&(a12==1))&&!(a0==1)))&&(a19==1)))){ + a3 = 1; + a5 = 4; + a16 = 7; + a24 = 0; + a1 = 12; + a21 = 10; + a23 = 1; + return -1; + } else if((((((a12==1)&&((a17==2)&&((a19==1)&&(((!(a14==1)&&((a24==1)||(a3==1)))&&(a9==7))&&(a1==12)))))&&(a23==1))&&!(a4==1))&&(!(a24==1)&&(((a21==11)&&(((input==6)&&((a5==4)||(a5==5)))&&(a20==1)))&&(a16==7))))){ + a12 = 1; + a21 = 12; + a7 = 0; + a19 = 5; + a1 = 13; + a6 = 1; + a5 = 4; + return 26; + } else if((((a16==9)&&((a17==2)&&((!(a4==1)&&((a4==1)||(a6==1)))||!(a11==1))))&&((!(a18==1)&&(!(a20==1)&&((a21==12)&&(!(a27==1)&&((input==4)&&((((a19==4)&&((a9==11)&&((a5==6)&&(a1==14))))||((a19==5)&&(((a1==12)&&(a5==4))&&(a9==7))))||((a19==5)&&(((a1==12)&&(a5==5))&&(a9==7)))))))))&&!(a4==1)))){ + if((a11==1)){ + a6 = 0; + a20 = 1; + a5 = 4; + a3 = 0; + a26 = 1; + a1 = 13; + a21 = 10; + a16 = 7; + a19 = 1; + a9 = 8; + }else{ + a16 = 7; + a5 = 6; + a27 = 1; + a24 = 1; + a1 = 13; + a19 = 1; + a21 = 10; + a4 = 1; + a9 = 7; + a20 = 1; + } + return -1; + } else if(((((!(a13==1)||(!(a20==1)&&(((a4==1)||(((a11==1)||(a4==1))&&(a17==2)))&&(a1==12))))||!(a2==1))&&(a11==1))&&(((a21==10)&&(((a9==11)&&(((input==5)&&((a5==5)||(a5==6)))&&(a12==1)))&&(a16==9)))&&(a19==5)))){ + a5 = 4; + a22 = 1; + a19 = 4; + a14 = 1; + a21 = 11; + a20 = 1; + a9 = 10; + return 25; + } else if((((a26==1)||(((a4==1)||((a16==9)&&(!(a12==1)||(((a9==7)&&((a21==11)&&(a2==1)))&&(a19==4)))))&&(a28==1)))&&(!(a14==1)&&((((((input==1)&&((a5==5)||(a5==6)))&&(a17==2))&&(a20==1))&&(a1==12))&&!(a14==1))))){ + a9 = 11; + a19 = 3; + a3 = 1; + a14 = 0; + a5 = 4; + a23 = 1; + a16 = 7; + a21 = 10; + return 22; + } else if((((a16==7)&&((a21==12)&&(((!(a27==1)&&((a1==14)&&((input==1)&&((a5==5)||(a5==6)))))&&(a2==1))&&(a11==1))))&&((a19==4)&&((a17==2)&&((((!(a12==1)||((a12==1)||(a4==1)))&&(a9==9))&&!(a14==1))&&(a20==1)))))){ + a1 = 12; + a4 = 0; + a5 = 4; + a0 = 0; + a27 = 0; + a21 = 10; + a19 = 1; + a9 = 7; + return -1; + } else if((((a11==1)&&((((a13==1)&&((a19==4)&&(a2==1)))&&(a17==2))||!(a2==1)))&&(((((((!(a0==1)&&((input==3)&&((((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4)))))&&(a16==9))&&(a1==12))&&(a21==12))&&(a20==1))&&(a12==1))&&!(a8==1)))){ + a5 = 4; + a3 = 1; + a9 = 7; + a21 = 10; + a2 = 1; + a19 = 1; + a16 = 7; + a18 = 0; + return -1; + } else if(((((a16==9)&&((a19==2)&&(!(a4==1)&&((!(a27==1)&&(((a6==1)&&((input==5)&&((a5==5)||(a5==6))))&&!(a7==1)))&&(a21==11)))))&&(a20==1))&&((a1==13)&&((a13==1)&&(!(a4==1)&&(((a13==1)&&(a9==11))&&(a17==2))))))){ + a21 = 10; + a1 = 12; + a19 = 1; + a12 = 1; + a5 = 5; + a18 = 0; + a9 = 8; + a16 = 10; + a7 = 0; + return 21; + } else if((((a20==1)&&((a16==9)&&(((a21==12)&&(!(a27==1)&&(((a19==2)&&((input==1)&&(a1==14)))&&(a3==1))))&&(a5==5))))&&((!(a3==1)||(((!(a23==1)||((a3==1)&&!(a0==1)))&&(a17==2))&&(a2==1)))&&(a9==9)))){ + a28 = 1; + a12 = 1; + a19 = 1; + a1 = 12; + a5 = 4; + a9 = 7; + a21 = 10; + a16 = 7; + return -1; + } else if((((!(a14==1)&&(!(a26==1)&&((((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))&&(input==1))))&&(a17==2))&&(((!(a11==1)||(((a19==4)&&((a23==1)&&(!(a14==1)&&((a16==10)&&((a12==1)&&(a20==1))))))&&(a21==10)))||!(a2==1))&&(a1==12)))){ + a5 = 5; + a18 = 0; + a16 = 9; + a9 = 7; + a11 = 1; + a21 = 11; + return 21; + } else if((((a11==1)&&(!(a18==1)&&(((a17==2)&&((((((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&(input==5))&&!(a4==1))&&(a20==1)))&&!(a24==1))))&&((a0==1)||((((a21==10)&&((a1==12)&&((a6==1)&&(a19==2))))||!(a2==1))&&(a16==8))))){ + a19 = 1; + a14 = 0; + a21 = 12; + a1 = 14; + a7 = 0; + a5 = 6; + a9 = 8; + a26 = 0; + return 21; + } else if((((a9==11)&&(((((a5==4)&&((((!(a0==1)&&((input==5)&&(a17==2)))&&(a19==3))&&(a12==1))&&!(a26==1)))&&!(a20==1))&&!(a7==1))&&!(a24==1)))&&(((((a16==9)&&(a28==1))||(a18==1))&&(a21==10))&&(a1==14)))){ + a24 = 1; + a16 = 8; + a19 = 2; + a29 = 1; + a9 = 8; + a21 = 12; + a22 = 0; + a1 = 12; + return -1; + } else if((((a3==1)&&(!(a4==1)&&(!(a18==1)&&((a1==12)&&((a17==2)&&(!(a0==1)&&((input==5)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10))))))))))&&((a16==7)&&(((((a28==1)&&((a13==1)&&(a21==11)))||!(a13==1))&&(a19==4))&&(a20==1))))){ + a16 = 8; + a24 = 0; + a5 = 5; + a19 = 3; + a9 = 11; + a27 = 0; + a11 = 1; + return 22; + } else if(((!(a7==1)&&((((a5==6)&&((a16==11)&&((input==6)&&(a19==4))))&&(a1==14))&&(a20==1)))&&((!(a23==1)||((a17==2)&&(((a9==8)&&((a6==1)&&((a21==10)&&((a28==1)&&!(a4==1)))))||!(a12==1))))||(a18==1)))){ + a5 = 5; + a9 = 10; + a21 = 11; + a28 = 1; + a1 = 13; + a2 = 1; + a4 = 0; + return 22; + } else if((((a9==11)&&((!(a24==1)&&((a6==1)&&(!(a8==1)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))))&&(a17==2)))&&((a20==1)&&((((a26==1)||((((a16==7)&&((a6==1)&&(a21==11)))&&(a3==1))||(a18==1)))&&(a1==13))&&(a19==4))))){ + a6 = 1; + a23 = 1; + a16 = 8; + a5 = 4; + return 26; + } else if(((((!(a6==1)&&((a19==3)&&((!(a23==1)&&((a12==1)&&(a20==1)))&&(a1==13))))&&(a16==8))&&(a21==11))&&((!(a13==1)&&(((((((a5==5)||(a5==6))&&(input==1))&&(a9==8))&&(a17==2))&&(a8==1))&&!(a2==1)))&&(a18==1)))){ + a5 = 5; + a16 = 10; + a10 = 1; + a7 = 1; + a19 = 5; + a24 = 1; + a1 = 14; + a9 = 9; + return 21; + } else if((((a3==1)&&((((a17==2)&&(((a19==5)&&(((a16==9)&&((!(a20==1)&&(a2==1))&&!(a26==1)))&&(a9==7)))&&(a2==1)))&&!(a0==1))&&(a2==1)))&&((a12==1)&&((a21==11)&&(((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a1==13)))))){ + a15 = 1; + a16 = 8; + a9 = 9; + a21 = 10; + a24 = 1; + a1 = 12; + a19 = 2; + a5 = 6; + a10 = 1; + return -1; + } else if((((a17==2)&&((!(a11==1)||(((a23==1)||(a27==1))&&(a13==1)))&&(a20==1)))&&((((a21==11)&&((a16==7)&&(((!(a7==1)&&((a9==8)&&((input==1)&&((a5==6)||((a5==4)||(a5==5))))))&&(a2==1))&&!(a27==1))))&&(a1==14))&&(a19==3)))){ + a21 = 10; + a19 = 1; + a4 = 0; + a28 = 1; + a5 = 4; + a9 = 7; + a1 = 12; + return -1; + } else if((((a2==1)&&(((a13==1)&&((a1==14)&&((a19==5)&&((!(a14==1)&&((a21==10)&&((input==5)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))))&&(a3==1)))))&&(a16==8)))&&(((a24==1)||((a20==1)&&(!(a18==1)&&(a28==1))))&&(a17==2)))){ + if((a28==1)){ + a20 = 0; + a3 = 1; + a1 = 13; + a27 = 0; + a5 = 5; + a19 = 3; + a21 = 11; + a4 = 0; + a16 = 7; + a9 = 8; + }else{ + a21 = 12; + a9 = 7; + a27 = 0; + a23 = 1; + a1 = 13; + a8 = 0; + a5 = 6; + } + return 25; + } else if((((a13==1)&&(((a8==1)||(!(a20==1)&&((a16==10)&&(a28==1))))||(a24==1)))&&(((a2==1)&&((a17==2)&&((a19==2)&&((a2==1)&&((a1==14)&&((a21==11)&&((((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(input==6))))))))&&(a12==1)))){ + a5 = 4; + a25 = 1; + a11 = 0; + a1 = 13; + a26 = 1; + a20 = 1; + a16 = 7; + a9 = 7; + a21 = 10; + return 26; + } else if((((((a3==1)&&((a1==14)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a3==1))))&&!(a14==1))&&!(a4==1))&&(((((a9==10)&&(!(a28==1)||(((a4==1)||((a23==1)&&(a16==11)))&&(a17==2))))&&!(a20==1))&&(a19==2))&&(a21==10)))){ + a4 = 1; + a16 = 7; + a21 = 12; + a25 = 0; + a19 = 4; + a5 = 4; + a1 = 13; + a8 = 1; + return -1; + } else if(((((a13==1)&&(((((a17==2)&&((a21==10)&&((a3==1)&&(a11==1))))&&!(a20==1))&&(a1==14))&&(a19==2)))&&!(a14==1))&&((a16==11)&&(((a2==1)&&(!(a4==1)&&((input==5)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))))&&!(a26==1))))){ + if((a2==1)){ + a1 = 13; + a0 = 1; + a20 = 1; + a5 = 6; + a16 = 7; + a19 = 1; + a9 = 8; + a14 = 1; + a11 = 0; + }else{ + a1 = 12; + a14 = 1; + a21 = 12; + a9 = 9; + a20 = 1; + a7 = 1; + a19 = 5; + a6 = 0; + a16 = 9; + a5 = 5; + } + return -1; + } else if(((((a19==5)&&((a21==10)&&((!(a26==1)&&((a11==1)&&((a6==1)&&((a16==8)&&((input==3)&&((a5==5)||(a5==6)))))))&&(a28==1))))&&(a17==2))&&(((a1==13)&&((a9==7)&&((!(a4==1)&&(a12==1))&&(a20==1))))||(a4==1)))){ + a1 = 12; + a19 = 1; + a7 = 0; + a16 = 7; + a23 = 1; + a5 = 4; + return -1; + } else if(((((a16==7)&&(((a19==3)&&(((((a5==4)||(a5==5))&&(input==3))&&(a3==1))&&(a20==1)))&&(a2==1)))&&(a9==10))&&((a21==10)&&(((((((a12==1)&&(a6==1))||!(a13==1))&&(a12==1))&&(a1==13))&&(a17==2))||(a24==1))))){ + a24 = 0; + a19 = 1; + a5 = 4; + a9 = 7; + a1 = 12; + a6 = 1; + a4 = 0; + return -1; + } else if((((a21==10)&&(((a12==1)&&(((a1==12)&&(((input==6)&&(((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))))&&(a17==2)))&&!(a4==1)))&&!(a20==1)))&&(((a19==2)&&((!(a27==1)&&((!(a14==1)&&(a11==1))&&(a16==11)))&&!(a0==1)))&&!(a24==1)))){ + if((a7==1)){ + a21 = 12; + a16 = 7; + a1 = 13; + a9 = 8; + a2 = 0; + a15 = 1; + a26 = 1; + a19 = 5; + a5 = 4; + }else{ + a3 = 0; + a22 = 1; + a16 = 7; + a19 = 1; + a9 = 10; + a20 = 1; + a5 = 6; + a18 = 1; + } + return 25; + } else if(((((!(a24==1)&&((a17==2)&&(((a28==1)&&((a23==1)&&((input==6)&&(a16==8))))&&(a19==4))))&&(a5==6))&&(a1==12))&&((a9==8)&&(((a11==1)&&(!(a13==1)||((a21==12)&&(!(a14==1)&&(a2==1)))))&&(a20==1))))){ + a5 = 4; + a21 = 10; + a19 = 1; + a9 = 7; + a16 = 7; + a24 = 0; + a8 = 0; + a13 = 1; + return -1; + } else if(((((((a11==1)&&(a17==2))&&(a6==1))&&(a13==1))&&(a21==11))&&(((a16==7)&&((a20==1)&&((((a2==1)&&(((a1==14)&&((((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(input==3)))&&(a23==1)))&&!(a27==1))&&!(a7==1))))&&(a19==5)))){ + a19 = 1; + a21 = 10; + a9 = 7; + a27 = 0; + a1 = 12; + a5 = 4; + a7 = 0; + return -1; + } else if(((((a9==10)&&((a16==10)&&(((a20==1)&&((a19==1)&&(((a11==1)&&(a3==1))&&(a1==12))))&&(a21==12))))||!(a2==1))&&(!(a24==1)&&((((a13==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a13==1)))&&(a11==1))&&(a17==2))))){ + a5 = 5; + a3 = 1; + a21 = 10; + a23 = 1; + a16 = 7; + a19 = 2; + a1 = 14; + a27 = 0; + return 21; + } else if((((a1==14)&&((((a20==1)&&(((a21==12)&&(a12==1))&&(a16==11)))&&(a4==1))&&(a14==1)))&&(!(a28==1)&&(!(a3==1)&&((a19==1)&&((!(a28==1)&&(((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(input==4))&&(a17==2)))&&!(a13==1))))))){ + a9 = 8; + a7 = 1; + a16 = 7; + a23 = 0; + a21 = 10; + a5 = 6; + a1 = 12; + a19 = 2; + a2 = 0; + return -1; + } else if((((!(a8==1)&&((a12==1)&&(a11==1)))&&(a2==1))&&(((a21==11)&&((((!(a4==1)&&((!(a4==1)&&(((input==6)&&(((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))))&&(a19==5)))&&(a2==1)))&&(a17==2))&&(a20==1))&&(a16==10)))&&(a1==13)))){ + a16 = 7; + a13 = 1; + a19 = 4; + a5 = 5; + a26 = 0; + a9 = 10; + a21 = 10; + a12 = 1; + return 25; + } else if(((((a16==8)&&(((a19==2)&&(!(a20==1)&&(((a21==10)&&(a23==1))&&(a1==14))))&&(a17==2)))&&(a13==1))&&(!(a7==1)&&((!(a4==1)&&(!(a8==1)&&(((input==3)&&((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9))))&&!(a14==1))))&&!(a8==1))))){ + a8 = 0; + a19 = 5; + a5 = 4; + a26 = 0; + a11 = 1; + a9 = 7; + a16 = 9; + a20 = 1; + return 21; + } else if(((((!(a20==1)&&(((((a11==1)&&(a3==1))||!(a2==1))&&(a19==1))&&(a21==12)))&&!(a7==1))&&(a17==2))&&((a1==12)&&((a16==9)&&(((!(a7==1)&&(!(a14==1)&&(((a5==4)||(a5==5))&&(input==5))))&&(a9==11))&&!(a4==1)))))){ + a20 = 1; + a5 = 5; + a7 = 1; + a1 = 13; + a10 = 1; + a16 = 7; + a21 = 10; + a26 = 1; + a9 = 8; + return -1; + } else if((((a1==12)&&((!(a28==1)||(((((a3==1)&&(a23==1))&&(a19==3))||!(a13==1))&&(a23==1)))&&(a21==10)))&&((a17==2)&&((a16==7)&&((!(a20==1)&&((a2==1)&&((input==4)&&(((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))))&&(a3==1)))))){ + a6 = 1; + a9 = 8; + a16 = 10; + a1 = 13; + a20 = 1; + a13 = 1; + a5 = 5; + a19 = 5; + a21 = 12; + a23 = 1; + return 25; + } else if((((a19==4)&&(((!(a24==1)&&((((((input==6)&&(((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))))&&(a28==1))&&(a23==1))&&(a17==2))&&!(a18==1)))&&(a23==1))&&(a1==14)))&&((a21==10)&&(!(a6==1)||(((a3==1)&&!(a20==1))&&(a16==9)))))){ + a20 = 1; + a10 = 1; + a19 = 2; + a5 = 6; + a1 = 12; + a28 = 0; + a9 = 11; + a16 = 10; + a3 = 0; + return 25; + } else if((((a9==11)&&(((a1==12)&&((((a0==1)||(!(a6==1)||(a2==1)))||!(a13==1))&&!(a4==1)))&&(a16==9)))&&((((((a5==6)&&((a21==11)&&((input==4)&&(a17==2))))&&!(a7==1))&&!(a27==1))&&(a19==1))&&!(a20==1)))){ + a25 = 1; + a21 = 10; + a23 = 0; + a4 = 1; + a9 = 7; + a5 = 4; + return -1; + } else if(((!(a23==1)||((a17==2)&&((a21==12)&&((((a1==12)&&(a2==1))&&(a16==10))||!(a23==1)))))&&((a6==1)&&(((((a9==9)&&((a13==1)&&((a20==1)&&((input==3)&&(a5==4)))))&&!(a14==1))&&(a19==2))&&(a6==1))))){ + a21 = 10; + a9 = 7; + a19 = 1; + a12 = 1; + a16 = 7; + a6 = 1; + a3 = 1; + return -1; + } else if(((((((a3==1)&&((a11==1)&&((a11==1)&&((a21==11)&&(input==1)))))&&(a17==2))&&(a1==14))&&(a20==1))&&((((a7==1)||(!(a4==1)&&(!(a4==1)&&((a5==4)&&((a6==1)&&(a16==11))))))&&(a9==7))&&(a19==4)))){ + a19 = 1; + a21 = 10; + a16 = 7; + a4 = 0; + a3 = 1; + a1 = 12; + a7 = 0; + return -1; + } else if((((((a12==1)&&((a23==1)&&(a12==1)))&&(a21==12))&&!(a26==1))&&((((a6==1)&&(((a1==14)&&((a3==1)&&(((a19==3)&&(((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a5==4)&&(a9==11)))&&(input==4)))&&!(a20==1))))&&(a17==2)))&&(a16==10))&&(a28==1)))){ + a15 = 0; + a19 = 2; + a14 = 1; + a16 = 8; + a21 = 11; + a5 = 4; + a20 = 1; + a9 = 9; + a29 = 1; + return -1; + } else if((((a16==8)&&((a13==1)&&(!(a20==1)&&((((a9==8)&&((((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&(a21==10))&&(a12==1)))&&(a28==1))&&(a1==13)))))&&(!(a0==1)&&((a2==1)&&(!(a6==1)||((a17==2)&&((a19==3)&&(a13==1)))))))){ + a1 = 12; + a19 = 1; + a16 = 7; + a20 = 1; + a9 = 7; + a14 = 0; + a5 = 4; + a6 = 1; + a4 = 0; + return -1; + } else if((((a20==1)&&(((a8==1)||(((a3==1)&&(a3==1))&&!(a4==1)))&&(a17==2)))&&(((a11==1)&&((a21==11)&&(!(a24==1)&&(!(a4==1)&&(((a19==5)&&((((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6))))&&(input==5)))&&(a16==9))))))&&(a1==12)))){ + a16 = 7; + a5 = 4; + a26 = 0; + a8 = 0; + a21 = 10; + a23 = 1; + a9 = 7; + a19 = 1; + return -1; + } else if((((a1==12)&&((a16==8)&&(a23==1)))&&(((a2==1)&&((a28==1)&&((((a21==11)&&(((((a19==5)&&(((input==4)&&((a5==4)||(a5==5)))&&!(a4==1)))&&!(a8==1))&&(a17==2))&&!(a20==1)))&&!(a27==1))&&!(a26==1))))&&(a9==8)))){ + a21 = 10; + a20 = 1; + a9 = 11; + a5 = 4; + a16 = 7; + a3 = 1; + a4 = 0; + a7 = 0; + return -1; + } else if((((((!(a20==1)&&(((a19==2)&&((a6==1)&&(a3==1)))&&(a1==12)))||!(a3==1))&&(a17==2))&&(a9==10))&&(!(a18==1)&&((!(a4==1)&&((a13==1)&&((!(a4==1)&&((input==4)&&(a21==12)))&&(a16==7))))&&(a5==4))))){ + a26 = 0; + a9 = 7; + a20 = 1; + a14 = 0; + a21 = 10; + a19 = 1; + return -1; + } else if((((((((a5==5)&&((((((a6==1)&&(a2==1))&&(a21==10))||(a18==1))&&(a17==2))&&(a1==12)))&&!(a27==1))||!(a6==1))&&!(a20==1))&&(a16==10))&&((((a6==1)&&((input==5)&&(a19==2)))&&!(a4==1))&&(a9==10)))){ + a6 = 0; + a26 = 1; + a19 = 1; + a9 = 11; + a5 = 6; + a20 = 1; + a16 = 7; + a23 = 0; + return 26; + } else if(((((a14==1)||(!(a24==1)&&((a8==1)||(((a16==7)&&(a2==1))&&(a6==1)))))&&(a20==1))&&((a17==2)&&(((a21==12)&&(!(a0==1)&&(((((a9==11)&&((a1==12)&&(a5==6)))||(((a1==13)&&(a5==4))&&(a9==7)))&&(input==5))&&!(a18==1))))&&(a19==1))))){ + a9 = 8; + a16 = 8; + a5 = 5; + a1 = 12; + a19 = 5; + a4 = 0; + a0 = 0; + a8 = 0; + return 26; + } else if((((a16==10)&&((!(a28==1)||((a17==2)&&(((a3==1)&&(a21==10))||(a14==1))))&&(a1==12)))&&((a19==4)&&((!(a26==1)&&((a23==1)&&((((input==5)&&(((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))))&&(a23==1))&&(a20==1))))&&!(a27==1))))){ + a9 = 7; + a16 = 7; + a11 = 1; + a19 = 1; + a13 = 1; + a5 = 4; + return -1; + } else if(((!(a7==1)&&(!(a0==1)&&(((((a19==2)&&((a16==9)&&((a0==1)||((a3==1)&&(a17==2)))))&&(a9==8))&&(a13==1))&&(a21==11))))&&((a13==1)&&((a13==1)&&(((a20==1)&&(((a5==4)||(a5==5))&&(input==6)))&&(a1==12)))))){ + a9 = 7; + a5 = 5; + a19 = 5; + a21 = 10; + a16 = 7; + a23 = 1; + a0 = 0; + a18 = 0; + a1 = 14; + return 26; + } else if(((!(a24==1)&&((((a19==5)&&((a12==1)&&(a28==1)))&&!(a7==1))||(a8==1)))&&(((!(a20==1)&&(((a2==1)&&(((((input==4)&&(a17==2))&&(a1==14))&&(a9==11))&&(a5==5)))&&(a16==10)))&&(a23==1))&&(a21==12)))){ + a6 = 0; + a1 = 12; + a10 = 1; + a5 = 6; + a9 = 10; + a4 = 1; + a16 = 8; + a20 = 1; + return -1; + } else if((((a20==1)&&(((a1==13)&&((((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&(a13==1))&&(a19==5)))&&(a12==1)))&&(((a8==1)||(!(a26==1)&&((a21==12)&&((((a12==1)&&((a9==11)&&(a13==1)))||(a26==1))&&(a16==9)))))&&(a17==2)))){ + a9 = 7; + a27 = 0; + a16 = 7; + a21 = 10; + a1 = 12; + a19 = 1; + a14 = 0; + a5 = 4; + a3 = 1; + return -1; + } else if(((((a19==5)&&(((a27==1)||((a16==11)&&((a12==1)&&(a23==1))))||!(a6==1)))&&(a1==14))&&(((((a21==12)&&(!(a18==1)&&(!(a14==1)&&((a17==2)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4))))))&&!(a7==1))&&(a9==7))&&(a20==1)))){ + a6 = 1; + a21 = 10; + a19 = 1; + a16 = 7; + a18 = 0; + a3 = 1; + a1 = 12; + a5 = 4; + return -1; + } else if(((((a26==1)&&((((a1==12)&&(a3==1))&&(a20==1))&&(a16==9)))&&(a7==1))&&((a9==10)&&(((a17==2)&&(!(a11==1)&&(!(a2==1)&&((a14==1)&&((a21==10)&&(((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&!(a6==1)))))))&&(a19==2))))){ + a16 = 7; + a19 = 1; + a1 = 14; + a5 = 4; + a28 = 0; + a29 = 0; + a22 = 1; + a9 = 9; + return 25; + } else if(((!(a0==1)&&(((a9==10)&&((a21==10)&&((a16==10)&&((a5==5)&&(input==4)))))&&(a1==13)))&&((((a17==2)&&((a8==1)||(((a26==1)||(!(a7==1)&&((a2==1)||(a27==1))))&&(a19==1))))&&!(a26==1))&&(a20==1)))){ + a1 = 12; + a14 = 0; + a12 = 1; + a5 = 4; + a16 = 7; + a9 = 7; + return -1; + } else if((((a1==13)&&((a23==1)&&(!(a13==1)||(((a17==2)&&(a28==1))||!(a23==1)))))&&((a21==12)&&((a16==9)&&(((!(a14==1)&&(!(a8==1)&&((a20==1)&&(((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4)))&&(input==4)))))&&!(a24==1))&&(a19==1)))))){ + a16 = 7; + a5 = 4; + a21 = 10; + a23 = 1; + a14 = 0; + a12 = 1; + a9 = 7; + a1 = 12; + return -1; + } else if((((a17==2)&&(((a1==14)&&((a16==8)&&((a13==1)&&(((a11==1)||(a18==1))&&(a23==1)))))&&(a19==1)))&&((a21==11)&&((a20==1)&&((((((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a8==1))&&!(a14==1))&&!(a14==1))&&(a9==8)))))){ + if((a4==1)){ + a13 = 1; + a5 = 6; + a20 = 0; + a9 = 11; + a1 = 12; + a16 = 7; + a19 = 5; + a8 = 0; + }else{ + a1 = 13; + a9 = 7; + a26 = 0; + a23 = 1; + a21 = 10; + a8 = 0; + a19 = 3; + a5 = 6; + a16 = 10; + } + return 26; + } else if((((a20==1)&&(((a9==7)&&((input==3)&&((a5==5)||(a5==6))))&&(a11==1)))&&((((a12==1)&&((a1==13)&&((a17==2)&&((!(a3==1)||((((a3==1)||(a18==1))||!(a2==1))&&(a16==7)))&&!(a26==1)))))&&(a21==12))&&(a19==1)))){ + a7 = 0; + a5 = 6; + a19 = 5; + a16 = 8; + a0 = 0; + a6 = 1; + return 25; + } else if(((!(a18==1)&&((((a12==1)&&!(a27==1))&&!(a24==1))&&(a16==7)))&&(!(a7==1)&&((a2==1)&&(((a1==14)&&(!(a14==1)&&((a21==10)&&((a17==2)&&((a19==4)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))&&(input==5)))))))&&(a20==1)))))){ + a19 = 5; + a4 = 0; + a9 = 9; + a0 = 0; + a5 = 5; + a18 = 0; + a21 = 11; + return 21; + } else if(((((a19==2)&&((a27==1)||((a27==1)||(((!(a3==1)||(a2==1))&&(a17==2))&&(a23==1)))))&&(a21==11))&&((((a16==9)&&(((a28==1)&&(((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5)))&&(input==3)))&&!(a20==1)))&&(a28==1))&&(a1==14)))){ + if((a7==1)){ + a21 = 10; + a24 = 1; + a18 = 1; + a19 = 1; + a16 = 7; + a6 = 0; + a20 = 1; + a5 = 4; + a9 = 11; + }else{ + a9 = 8; + a11 = 0; + a19 = 1; + a20 = 1; + a21 = 10; + a5 = 5; + a12 = 0; + a16 = 7; + a10 = 0; + } + return -1; + } else if(((((((a12==1)&&((a17==2)&&((a23==1)||(a14==1))))&&(a28==1))&&!(a27==1))||!(a3==1))&&((a6==1)&&((a16==7)&&(((a21==10)&&((input==5)&&(((a19==3)&&(((a5==6)&&(a1==14))&&(a9==11)))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==4)))))&&!(a20==1)))))){ + if((a8==1)){ + a19 = 5; + a6 = 1; + a1 = 13; + a21 = 11; + a0 = 0; + a5 = 4; + a9 = 11; + }else{ + a9 = 8; + a26 = 0; + a2 = 1; + a5 = 4; + a8 = 0; + a19 = 4; + a1 = 13; + } + return 26; + } else if((((a20==1)&&(!(a6==1)&&((a17==2)&&((a5==5)&&(a3==1)))))&&((((a14==1)&&(((a16==7)&&((((a9==7)&&(((a1==12)&&(input==1))&&(a19==2)))&&(a21==11))&&!(a2==1)))&&(a7==1)))&&!(a13==1))&&!(a6==1)))){ + a2 = 0; + a21 = 10; + a10 = 1; + a9 = 9; + a25 = 1; + return -1; + } else if(((((a17==2)&&((a9==10)&&((((a11==1)&&!(a20==1))&&(a13==1))||(a18==1))))&&(a21==11))&&(((a19==2)&&((a13==1)&&((a28==1)&&((a16==7)&&(((a28==1)&&((a1==14)&&(input==6)))&&!(a27==1))))))&&(a5==5)))){ + a24 = 0; + a23 = 1; + a11 = 1; + a16 = 9; + a20 = 1; + a21 = 10; + return 21; + } else if((((a9==8)&&((((((a19==1)&&(((((a5==5)||(a5==6))&&(input==6))&&(a11==1))&&(a20==1)))&&(a17==2))&&(a12==1))&&(a16==7))&&!(a27==1)))&&(!(a3==1)||(((((a13==1)&&(a21==12))||!(a2==1))&&(a1==13))&&(a12==1))))){ + a5 = 4; + a16 = 8; + a28 = 1; + a9 = 9; + a1 = 14; + a7 = 0; + a8 = 0; + a19 = 5; + return 25; + } else if(((!(a6==1)&&(((a21==10)&&((a9==8)&&((a1==14)&&(((a6==1)&&(a16==9))&&(a17==2)))))&&!(a2==1)))&&((((a19==2)&&((a14==1)&&((a20==1)&&((a26==1)&&(((a5==5)||(a5==6))&&(input==5))))))&&(a27==1))&&!(a3==1)))){ + a9 = 7; + a1 = 12; + a11 = 0; + a8 = 1; + a19 = 1; + a5 = 6; + a16 = 7; + a15 = 0; + return 26; + } else if(((((!(a6==1)&&(!(a11==1)&&((a21==10)&&(a6==1))))&&!(a6==1))&&(a17==2))&&((a16==9)&&(((a1==14)&&(((((((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4)))&&(input==3))&&!(a2==1))&&(a4==1))&&(a27==1))&&(a20==1)))&&(a19==4))))){ + a26 = 1; + a5 = 4; + a21 = 12; + a13 = 0; + a8 = 1; + a16 = 7; + a9 = 8; + return -1; + } else if((((a19==4)&&((!(a0==1)&&(((a17==2)&&((a21==10)&&((input==6)&&((a5==4)||(a5==5)))))&&!(a20==1)))&&!(a8==1)))&&(((a9==7)&&((a1==13)&&((a16==7)&&(((a24==1)||((a8==1)||(a2==1)))||(a7==1)))))&&(a2==1)))){ + a13 = 1; + a20 = 1; + a11 = 1; + a16 = 11; + a21 = 12; + a14 = 0; + a9 = 8; + a5 = 6; + a1 = 12; + a19 = 3; + return 21; + } else if(((((a19==3)&&((a6==1)&&((a16==7)&&(!(a4==1)&&((input==3)&&(a9==9))))))&&(a17==2))&&(!(a20==1)&&((!(a0==1)&&((a23==1)&&(!(a0==1)&&((a5==5)&&((a3==1)&&((a21==10)&&(a13==1)))))))&&(a1==12))))){ + a19 = 1; + a11 = 1; + a14 = 0; + a20 = 1; + a5 = 4; + a9 = 7; + a12 = 1; + return -1; + } else if((((((a19==4)&&((a1==13)&&((a17==2)&&(((!(a24==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&!(a26==1)))&&(a13==1))&&!(a18==1)))))&&(a21==12))&&(a9==7))&&(((a16==7)&&(!(a2==1)||((a13==1)&&(a6==1))))&&!(a20==1)))){ + a8 = 0; + a21 = 10; + a5 = 4; + a1 = 12; + a2 = 1; + a20 = 1; + a19 = 1; + a12 = 1; + return -1; + } else if((((a21==10)&&((a23==1)&&((((a2==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&!(a18==1)))&&(a17==2))&&!(a26==1))))&&(((a19==2)&&((a1==12)&&((a9==10)&&((a23==1)&&(((a16==8)&&(a2==1))&&!(a20==1))))))&&!(a24==1)))){ + a9 = 11; + a5 = 5; + a23 = 1; + a20 = 1; + a19 = 1; + a12 = 1; + a1 = 14; + a14 = 0; + a21 = 11; + return -1; + } else if((((a27==1)||((((a14==1)||(a2==1))||(a26==1))&&(a19==3)))&&((((a5==6)&&((!(a7==1)&&(!(a0==1)&&((((a21==10)&&((input==4)&&(a16==10)))&&!(a20==1))&&(a1==12))))&&(a28==1)))&&(a17==2))&&(a9==11)))){ + if((a12==1)){ + a2 = 0; + a9 = 8; + a1 = 14; + a20 = 1; + a6 = 0; + a0 = 1; + a21 = 12; + }else{ + a14 = 1; + a16 = 7; + a9 = 9; + a20 = 1; + a15 = 1; + a24 = 1; + a19 = 1; + } + return 21; + } else if((((a5==4)&&(!(a20==1)&&(((!(a27==1)&&((input==3)&&(a21==10)))&&!(a24==1))&&(a19==3))))&&((((a28==1)&&((a1==14)&&((!(a28==1)||((a16==9)&&(!(a27==1)&&(a28==1))))||!(a3==1))))&&(a9==11))&&(a17==2)))){ + a18 = 1; + a16 = 10; + a25 = 1; + a1 = 13; + a5 = 6; + a15 = 1; + a20 = 1; + a21 = 12; + return 26; + } else if((((!(a27==1)&&((a21==11)&&((((a11==1)&&((a6==1)&&(((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4)))&&(input==1))))&&(a3==1))&&(a20==1))))&&(a17==2))&&((a16==9)&&((((a19==4)&&((a11==1)||(a8==1)))||(a4==1))&&(a1==13))))){ + if((a20==1)){ + a19 = 2; + a0 = 0; + a21 = 10; + a1 = 14; + a16 = 8; + a20 = 0; + a9 = 11; + a11 = 1; + a5 = 6; + a8 = 0; + }else{ + a21 = 10; + a23 = 1; + a2 = 1; + a19 = 1; + a1 = 12; + a5 = 4; + a9 = 8; + a13 = 1; + } + return -1; + } else if((((a6==1)&&((a8==1)||((!(a20==1)&&(((a9==7)&&((a1==14)&&(a12==1)))&&(a17==2)))&&(a19==3))))&&(((a11==1)&&(((a21==11)&&((a16==7)&&(!(a18==1)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6))))))&&(a6==1)))&&!(a0==1)))){ + a9 = 9; + a21 = 10; + a16 = 8; + a20 = 1; + a0 = 0; + a26 = 0; + a5 = 6; + a19 = 5; + a3 = 1; + a1 = 12; + return 25; + } else if(((((a11==1)&&((a19==2)&&((a17==2)&&((((((a5==5)||(a5==6))&&(input==4))&&!(a27==1))&&(a13==1))&&(a1==12)))))&&(a9==11))&&(((!(a28==1)||(((a28==1)&&(!(a8==1)&&(a11==1)))&&!(a20==1)))&&(a21==12))&&(a16==8)))){ + a29 = 0; + a21 = 10; + a2 = 0; + a10 = 0; + a9 = 9; + a5 = 5; + a19 = 1; + a20 = 1; + a1 = 14; + a16 = 7; + return -1; + } else if((((((a19==4)&&((a17==2)&&(!(a18==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&(a6==1)))))&&(a20==1))&&(a9==10))&&(!(a14==1)&&((!(a18==1)&&((a21==12)&&((((a1==13)&&(a3==1))&&(a16==10))||(a7==1))))&&(a3==1))))){ + a27 = 0; + a9 = 11; + a28 = 1; + a19 = 2; + a21 = 10; + a4 = 0; + a1 = 14; + a16 = 7; + a5 = 4; + return 21; + } else if(((!(a12==1)||((((a1==14)&&(((a21==12)&&((a19==1)&&((a23==1)||!(a28==1))))&&(a17==2)))&&(a3==1))&&!(a20==1)))&&(!(a4==1)&&((!(a8==1)&&((a23==1)&&((input==3)&&((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5))))))&&(a16==7))))){ + a19 = 5; + a5 = 6; + a4 = 0; + a20 = 1; + a28 = 1; + a16 = 8; + a13 = 1; + a9 = 8; + return -1; + } else if((((!(a18==1)&&((!(a20==1)&&((a21==12)&&((a9==7)&&(a11==1))))&&(a16==10)))||!(a13==1))&&(((((a19==2)&&(((a5==6)&&((a13==1)&&((input==5)&&(a17==2))))&&(a1==12)))&&!(a8==1))&&(a23==1))&&(a2==1)))){ + a21 = 11; + a15 = 1; + a9 = 10; + a1 = 14; + a12 = 0; + a27 = 1; + a19 = 1; + return -1; + } else if((((a17==2)&&(!(a20==1)&&(((!(a14==1)&&(((input==6)&&(a9==8))&&!(a4==1)))&&(a16==8))&&!(a24==1))))&&((!(a12==1)||((a19==5)&&(((a23==1)&&(((a23==1)&&(a1==12))&&(a12==1)))&&(a21==12))))&&(a5==5)))){ + a20 = 1; + a13 = 0; + a5 = 6; + a8 = 1; + a18 = 1; + a21 = 11; + a19 = 1; + a16 = 7; + return -1; + } else if(((((a16==9)&&(((a23==1)&&(!(a4==1)&&(!(a28==1)||(a11==1))))&&(a19==4)))&&(a17==2))&&((a1==13)&&(((((a11==1)&&(!(a7==1)&&(((input==5)&&((a5==5)||(a5==6)))&&!(a7==1))))&&(a21==10))&&(a9==10))&&(a20==1))))){ + a4 = 0; + a21 = 12; + a9 = 11; + a16 = 10; + a7 = 0; + a28 = 1; + a5 = 5; + return 25; + } else if(((!(a7==1)&&(((a28==1)&&((a21==12)&&(a6==1)))&&(a19==5)))&&((!(a4==1)&&(!(a20==1)&&((a16==8)&&(((!(a14==1)&&(((((a5==6)&&(a1==12))&&(a9==11))||((a9==7)&&((a1==13)&&(a5==4))))&&(input==1)))&&(a17==2))&&!(a4==1)))))&&!(a27==1)))){ + a11 = 0; + a21 = 10; + a3 = 0; + a19 = 1; + a16 = 7; + a22 = 0; + a1 = 14; + a5 = 4; + a20 = 1; + a9 = 10; + return -1; + } else if((((a9==7)&&((!(a26==1)&&(((a21==11)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a28==1)))&&!(a26==1)))&&(a1==12)))&&((((a17==2)&&(((((a6==1)&&(a11==1))&&(a2==1))&&(a19==2))||(a27==1)))&&(a20==1))&&(a16==9)))){ + a16 = 10; + a5 = 5; + a28 = 1; + a11 = 1; + a21 = 10; + a12 = 1; + a9 = 8; + return 22; + } else if(((!(a0==1)&&((a17==2)&&(((a21==12)&&((a2==1)&&((input==6)&&((((a19==2)&&((a9==11)&&((a1==14)&&(a5==5))))||((((a5==6)&&(a1==14))&&(a9==11))&&(a19==2)))||((a19==3)&&(((a5==4)&&(a1==12))&&(a9==7)))))))&&!(a26==1))))&&((a11==1)&&(!(a11==1)||(!(a28==1)||(((a20==1)&&(a3==1))&&(a16==9))))))){ + a5 = 6; + a21 = 10; + a1 = 12; + a28 = 1; + a20 = 0; + a19 = 5; + a23 = 1; + a16 = 8; + a9 = 11; + return 25; + } else if(((!(a8==1)&&(((a5==5)&&(((!(a18==1)&&(a11==1))&&(a21==10))&&(a20==1)))&&(a17==2)))&&(!(a8==1)&&((((a1==14)&&((a13==1)&&((a3==1)&&((a16==10)&&((a9==11)&&(input==4))))))&&(a13==1))&&(a19==1))))){ + a8 = 0; + a19 = 5; + a0 = 0; + a2 = 1; + a9 = 9; + a16 = 8; + a5 = 4; + a1 = 12; + return -1; + } else if((((a13==1)&&((a26==1)||(!(a14==1)&&((((((((a1==13)&&(a2==1))&&(a17==2))&&(a9==10))&&!(a26==1))&&(a20==1))&&(a19==2))&&(a21==12)))))&&((((a13==1)&&(((a5==4)||(a5==5))&&(input==6)))&&(a16==7))&&(a13==1)))){ + a5 = 5; + a9 = 7; + a21 = 10; + a20 = 0; + a6 = 1; + a3 = 1; + a19 = 5; + a26 = 0; + a1 = 14; + a16 = 8; + return 26; + } else if((((a7==1)||((a27==1)||((a21==11)&&(((!(a7==1)&&(a13==1))&&(a16==10))&&(a1==13)))))&&(((a19==4)&&((((!(a14==1)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==5)))&&!(a20==1))&&(a17==2))&&(a28==1)))&&!(a14==1)))){ + a9 = 9; + a19 = 2; + a0 = 1; + a5 = 5; + a20 = 1; + a25 = 0; + a21 = 10; + a13 = 0; + a1 = 12; + a16 = 7; + return 21; + } else if(((((a5==5)&&((!(a14==1)&&(((a21==10)&&((a23==1)&&((a1==14)&&(input==6))))&&(a19==5)))&&(a3==1)))&&(a16==8))&&(((a17==2)&&(!(a11==1)||((a20==1)&&(!(a24==1)&&((a12==1)&&(a28==1))))))&&(a9==8)))){ + a20 = 0; + a7 = 0; + a6 = 1; + a1 = 13; + a24 = 0; + a16 = 7; + a21 = 12; + a19 = 2; + return 22; + } else if((((a6==1)&&((a21==11)&&((!(a18==1)&&((a9==11)&&(((a16==8)&&(a28==1))&&(a1==12))))&&(a19==4))))&&(!(a24==1)&&((a11==1)&&(((a20==1)&&((a17==2)&&(!(a4==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))))&&(a28==1)))))){ + a2 = 1; + a12 = 1; + a9 = 9; + a16 = 10; + a19 = 2; + a28 = 1; + a5 = 4; + return 23; + } else if((((a21==12)&&((((a19==4)&&((a17==2)&&((a13==1)&&((((a9==11)&&((a5==6)&&(a1==12)))||(((a5==4)&&(a1==13))&&(a9==7)))&&(input==5)))))&&(a28==1))&&(a20==1)))&&((a23==1)&&((a27==1)||((a24==1)||(!(a0==1)&&((a16==7)&&(a3==1)))))))){ + a28 = 1; + a19 = 2; + a3 = 1; + a16 = 9; + a11 = 1; + a1 = 12; + a21 = 11; + a9 = 9; + a5 = 4; + return 25; + } else if((((a19==2)&&((a3==1)&&(((((a1==14)&&(!(a24==1)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==1))))&&!(a24==1))&&!(a24==1))&&(a23==1))))&&((a16==9)&&(((a20==1)&&((a17==2)&&((a21==12)&&(a28==1))))&&!(a4==1))))){ + a16 = 7; + a19 = 1; + a1 = 12; + a7 = 0; + a5 = 4; + a9 = 7; + a14 = 0; + a21 = 10; + a18 = 0; + return -1; + } else if((((a16==8)&&((a1==12)&&((((a8==1)||(((a21==10)&&(a3==1))&&(a19==5)))&&(a5==5))&&(a17==2))))&&((a9==7)&&((a12==1)&&(((a23==1)&&((a13==1)&&((!(a20==1)&&(input==5))&&!(a24==1))))&&(a11==1)))))){ + a5 = 4; + a13 = 1; + a9 = 10; + a14 = 0; + a20 = 1; + a21 = 11; + a16 = 9; + a19 = 3; + a24 = 0; + return 22; + } else if(((((a5==5)&&(((((a6==1)&&((input==5)&&(a1==12)))&&(a21==11))&&!(a24==1))&&!(a24==1)))&&!(a0==1))&&((a12==1)&&(!(a23==1)||((a19==2)&&((a16==9)&&(((a9==9)&&(!(a20==1)&&(a3==1)))&&(a17==2)))))))){ + if((a28==1)){ + a26 = 1; + a21 = 10; + a14 = 1; + a5 = 4; + a25 = 0; + a16 = 8; + a1 = 14; + a19 = 4; + }else{ + a5 = 6; + a21 = 10; + a9 = 8; + a19 = 1; + a16 = 11; + a2 = 0; + a20 = 1; + a29 = 0; + a26 = 1; + } + return -1; + } else if(((((a24==1)||(((a14==1)||((((a16==7)&&((a3==1)||(a27==1)))&&(a5==6))&&(a3==1)))&&(a12==1)))&&(a21==12))&&(((a23==1)&&((((a20==1)&&((a1==12)&&(input==1)))&&(a19==1))&&(a17==2)))&&(a9==8)))){ + a8 = 0; + a19 = 4; + a16 = 8; + a26 = 0; + a9 = 10; + a4 = 0; + return 25; + } else if((((a21==10)&&(!(a8==1)&&(((a23==1)&&(a16==9))&&!(a18==1))))&&(!(a4==1)&&((a1==12)&&((((a19==2)&&((a28==1)&&(((((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11)))&&(input==6))&&(a17==2))&&!(a7==1))))&&!(a20==1))&&(a12==1)))))){ + a3 = 0; + a9 = 9; + a20 = 1; + a5 = 4; + a15 = 0; + a16 = 7; + a25 = 1; + return -1; + } else if((((!(a13==1)||((a14==1)||((a9==11)&&((((a0==1)||(a11==1))&&!(a20==1))&&(a19==4)))))&&(a17==2))&&((((a28==1)&&((a16==7)&&(!(a26==1)&&((((a5==5)||(a5==6))&&(input==6))&&(a1==12)))))&&(a21==12))&&(a23==1)))){ + a5 = 4; + a9 = 7; + a26 = 0; + a28 = 1; + a20 = 1; + a6 = 1; + a19 = 1; + a21 = 10; + return -1; + } else if(((((!(a12==1)||((a11==1)&&((a21==10)&&(!(a2==1)||(a2==1)))))&&(a20==1))&&(a1==12))&&((a17==2)&&((((!(a8==1)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a19==3))&&(a16==7)))&&!(a14==1))&&(a11==1))&&(a9==11))))){ + a5 = 4; + a19 = 1; + a9 = 7; + a26 = 0; + a6 = 1; + a11 = 1; + return -1; + } else if((((((a16==9)&&((a5==4)&&(((((a9==8)&&(((((input==1)&&!(a20==1))&&(a21==11))&&!(a26==1))&&!(a24==1)))&&!(a14==1))&&(a17==2))&&(a1==12))))&&!(a18==1))&&!(a14==1))&&(((a6==1)&&(a19==3))||!(a6==1)))){ + if((a22==1)){ + a16 = 8; + a24 = 1; + a20 = 1; + a21 = 10; + a9 = 10; + a15 = 0; + a29 = 0; + a19 = 1; + }else{ + a9 = 7; + a16 = 8; + a1 = 13; + a2 = 0; + a4 = 1; + a24 = 1; + a19 = 1; + } + return -1; + } else if(((((a16==8)&&((((((a13==1)&&(a23==1))&&!(a24==1))&&(a13==1))||(a14==1))&&(a9==10)))&&(a1==13))&&((((a5==6)&&(((((a21==12)&&(input==6))&&(a11==1))&&(a19==4))&&(a17==2)))&&(a11==1))&&!(a20==1)))){ + a1 = 12; + a15 = 0; + a19 = 1; + a21 = 10; + a20 = 1; + a16 = 7; + a9 = 7; + a3 = 0; + return 22; + } else if((((!(a20==1)&&((((a16==7)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==5)))&&!(a18==1))&&!(a8==1)))&&!(a8==1))&&(!(a7==1)&&(((a19==4)&&((a2==1)&&((!(a27==1)&&((a13==1)&&(a1==13)))&&(a17==2))))&&(a21==11))))){ + a21 = 10; + a16 = 8; + a8 = 0; + a5 = 4; + a24 = 0; + a20 = 1; + a26 = 0; + a9 = 11; + a19 = 5; + a1 = 12; + return 23; + } else if(((!(a24==1)&&(((a21==11)&&((((((a1==14)&&(a5==6))&&(a9==11))&&(a19==1))||((a19==2)&&(((a5==4)&&(a1==12))&&(a9==7))))&&(input==5)))&&(a28==1)))&&(((!(a26==1)&&(((a16==9)&&((a17==2)&&(!(a28==1)||(a2==1))))&&!(a20==1)))||(a7==1))&&!(a24==1)))){ + if((a5==4)){ + a9 = 7; + a24 = 1; + a21 = 10; + a0 = 1; + a16 = 7; + a5 = 4; + a1 = 13; + a19 = 1; + a2 = 0; + a20 = 1; + }else{ + a9 = 8; + a16 = 7; + a22 = 1; + a1 = 12; + a20 = 1; + a19 = 1; + a21 = 10; + a13 = 0; + a5 = 6; + } + return 21; + } else if((((a14==1)||((a9==9)&&((a17==2)&&(((!(a3==1)||(a11==1))&&(a5==6))&&(a12==1)))))&&(((((a21==12)&&((((a1==13)&&((a19==4)&&(input==3)))&&(a3==1))&&(a20==1)))&&(a16==10))&&!(a26==1))&&!(a27==1)))){ + a21 = 10; + a2 = 1; + a5 = 4; + a19 = 1; + a1 = 12; + a9 = 7; + a0 = 0; + a16 = 7; + a8 = 0; + return -1; + } else if((((a6==1)&&((!(a27==1)&&((a9==10)&&(((((((input==3)&&((a5==5)||(a5==6)))&&(a16==7))&&(a17==2))&&!(a0==1))&&(a19==5))&&(a11==1))))&&(a6==1)))&&(((a1==14)&&((a21==11)&&(!(a20==1)&&(a23==1))))||(a7==1)))){ + a13 = 1; + a16 = 8; + a5 = 6; + a6 = 1; + a1 = 12; + a20 = 1; + a9 = 11; + a19 = 4; + a8 = 0; + return -1; + } else if(((((!(a3==1)||((a3==1)&&((((a0==1)||(a6==1))||(a8==1))&&(a1==13))))&&(a5==5))&&(a16==8))&&((((a17==2)&&(!(a26==1)&&((a21==10)&&((a12==1)&&((input==1)&&(a9==7))))))&&(a20==1))&&(a19==3)))){ + a5 = 4; + a8 = 0; + a1 = 12; + a3 = 1; + a19 = 1; + a27 = 0; + a16 = 7; + return -1; + } else if(((!(a24==1)&&((a17==2)&&(((a16==11)&&((a1==12)&&((a21==10)&&(!(a0==1)&&((a20==1)&&(a23==1))))))&&(a19==3))))&&((a6==1)&&(((((input==6)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(a28==1))&&!(a18==1))&&!(a24==1))))){ + a23 = 1; + a27 = 0; + a16 = 10; + a24 = 0; + a21 = 12; + a5 = 5; + a9 = 10; + return 25; + } else if((((((((a28==1)&&((((input==4)&&((a5==5)||(a5==6)))&&(a2==1))&&(a9==9)))&&!(a27==1))&&(a19==2))&&(a17==2))&&(a21==10))&&((a1==13)&&(!(a20==1)&&((a16==7)&&((a26==1)||((a6==1)&&((a3==1)&&(a2==1))))))))){ + a5 = 4; + a20 = 1; + a11 = 1; + a1 = 12; + a4 = 0; + a9 = 7; + a19 = 1; + return -1; + } else if((((a9==11)&&((a20==1)&&((!(a13==1)&&((a17==2)&&(!(a3==1)&&(((a11==1)&&!(a13==1))&&!(a23==1)))))&&(a19==1))))&&((a16==8)&&((((a1==12)&&((a4==1)&&((input==1)&&((a5==5)||(a5==6)))))&&(a14==1))&&(a21==12))))){ + a12 = 0; + a5 = 6; + a1 = 14; + a9 = 10; + a2 = 0; + a21 = 10; + a24 = 1; + a16 = 7; + return 26; + } else if((((!(a18==1)&&(!(a27==1)&&((((a21==10)&&(((a1==12)&&((a16==10)&&(!(a0==1)&&((input==1)&&((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a5==4)&&(a9==11)))))))&&(a17==2)))&&!(a0==1))&&(a20==1))))&&(a12==1))&&(!(a28==1)||((a19==3)&&(a13==1))))){ + a16 = 7; + a5 = 6; + a7 = 0; + a19 = 2; + a9 = 7; + a2 = 1; + a26 = 0; + a1 = 13; + return 22; + } else if(((((a20==1)&&((a24==1)||(!(a8==1)&&((((a28==1)&&(a19==4))&&(a28==1))||(a18==1)))))&&(a16==7))&&((a1==14)&&(((a21==11)&&(((a9==8)&&((a2==1)&&(((a5==4)||(a5==5))&&(input==3))))&&(a2==1)))&&(a17==2))))){ + a21 = 10; + a27 = 0; + a9 = 7; + a5 = 4; + a1 = 12; + a19 = 1; + a13 = 1; + a2 = 1; + return -1; + } else if(((((a9==8)&&((!(a0==1)&&((((a20==1)&&(((input==1)&&(a1==14))&&(a13==1)))&&(a2==1))&&(a19==3)))&&(a17==2)))&&(a21==12))&&((a5==4)&&((a24==1)||(((!(a3==1)||(a28==1))||!(a13==1))&&(a16==9)))))){ + a21 = 10; + a2 = 1; + a1 = 12; + a9 = 7; + a7 = 0; + a6 = 1; + a19 = 1; + a16 = 7; + return -1; + } else if((((!(a7==1)&&(((((((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))&&(input==5))&&(a16==8))&&!(a20==1))&&(a3==1))&&!(a8==1)))&&(a1==14))&&(((a18==1)||((a6==1)&&((((a21==12)&&(a13==1))&&!(a4==1))&&(a17==2))))&&(a19==1)))){ + a21 = 10; + a6 = 0; + a9 = 11; + a2 = 0; + a1 = 12; + a15 = 1; + a5 = 4; + a19 = 2; + return 25; + } else if(((((a16==8)&&((a9==11)&&((((a17==2)&&((a21==10)&&(!(a4==1)&&((a12==1)&&!(a20==1)))))||!(a28==1))||!(a12==1))))&&(a2==1))&&((!(a8==1)&&((a2==1)&&((a1==14)&&(((a5==5)||(a5==6))&&(input==5)))))&&(a19==1)))){ + a20 = 1; + a23 = 1; + a16 = 7; + a26 = 0; + a2 = 1; + a5 = 5; + a21 = 12; + return 26; + } else if(((!(a0==1)&&(((((a7==1)||(!(a20==1)&&(a28==1)))&&(a5==6))&&(a19==5))&&!(a8==1)))&&((a3==1)&&(((!(a14==1)&&((a9==8)&&((((a21==10)&&(input==5))&&(a17==2))&&(a1==14))))&&(a16==9))&&(a6==1))))){ + a25 = 0; + a5 = 5; + a3 = 0; + a9 = 7; + a28 = 0; + a21 = 12; + return -1; + } else if((((!(a0==1)&&(!(a20==1)&&((a24==1)||(((a21==10)&&((a19==2)&&((a28==1)&&(a16==7))))&&(a1==12)))))&&(a17==2))&&(((((!(a14==1)&&(((a5==5)||(a5==6))&&(input==4)))&&!(a26==1))&&(a3==1))&&(a9==9))&&!(a27==1)))){ + a5 = 6; + a23 = 1; + a9 = 8; + a6 = 1; + a28 = 1; + a1 = 14; + return 22; + } else if(((((a16==7)&&((a20==1)&&((((a28==1)&&((a3==1)&&((a23==1)&&!(a18==1))))||!(a2==1))||!(a23==1))))&&(a17==2))&&((((a5==5)&&((((a21==11)&&(input==1))&&(a19==1))&&!(a18==1)))&&(a1==12))&&(a9==9)))){ + a19 = 5; + a9 = 7; + a28 = 1; + a13 = 1; + a21 = 12; + a1 = 14; + a27 = 0; + return 22; + } else if((((((((a23==1)&&(((a0==1)||((a0==1)||(a13==1)))&&(a17==2)))&&(a21==10))||!(a2==1))||(a7==1))&&(a1==12))&&(((a20==1)&&((!(a0==1)&&((((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10))))&&(input==1)))&&(a16==7)))&&(a19==4)))){ + a12 = 1; + a5 = 6; + a9 = 10; + a24 = 0; + a18 = 0; + a21 = 11; + return 22; + } else if((((((!(a23==1)&&(!(a11==1)&&(((a17==2)&&(input==5))&&!(a6==1))))&&!(a20==1))&&(a1==14))&&(a9==10))&&((a5==4)&&((!(a2==1)&&((((a19==2)&&((a16==7)&&(a23==1)))&&!(a13==1))&&!(a23==1)))&&(a21==12))))){ + a5 = 6; + a20 = 1; + a0 = 1; + a19 = 1; + a10 = 1; + a21 = 10; + a9 = 11; + return -1; + } else if((((a21==11)&&((((((a16==7)&&(((a28==1)&&(a3==1))&&(a19==4)))||(a7==1))&&!(a20==1))&&!(a27==1))&&(a6==1)))&&((a17==2)&&(((((input==4)&&(((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))))&&!(a7==1))&&(a1==13))&&!(a7==1))))){ + a3 = 1; + a1 = 12; + a9 = 7; + a20 = 1; + a8 = 0; + a5 = 4; + a21 = 10; + a4 = 0; + a19 = 1; + return -1; + } else if(((((a17==2)&&(((a9==7)&&(((a12==1)||(a18==1))&&(a1==12)))||!(a13==1)))&&(a21==10))&&(((!(a4==1)&&(!(a4==1)&&((((((a5==5)||(a5==6))&&(input==1))&&!(a0==1))&&(a16==10))&&!(a24==1))))&&(a19==2))&&(a20==1)))){ + a5 = 4; + a3 = 1; + a9 = 10; + a16 = 7; + a21 = 11; + a13 = 1; + a19 = 3; + a24 = 0; + return -1; + } else if(((((((a28==1)&&(a3==1))&&!(a27==1))&&(a20==1))&&(a19==5))&&((((a21==10)&&((((a17==2)&&(((((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4)))&&(input==3))&&!(a24==1))&&!(a4==1)))&&!(a26==1))&&!(a0==1)))&&(a1==12))&&(a16==8)))){ + a9 = 7; + a19 = 1; + a23 = 1; + a5 = 4; + a6 = 1; + a16 = 7; + a12 = 1; + return -1; + } else if((((a16==8)&&((((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==1))&&(a17==2))&&!(a18==1)))&&(!(a0==1)&&((a21==11)&&((!(a18==1)&&((a11==1)&&(!(a20==1)&&((!(a26==1)&&((a19==4)&&(a28==1)))||!(a13==1)))))&&(a1==12)))))){ + a1 = 14; + a16 = 7; + a20 = 1; + a3 = 1; + a5 = 4; + a19 = 3; + a21 = 10; + a9 = 8; + return 25; + } else if(((!(a27==1)&&((a16==8)&&((a1==14)&&(a11==1))))&&((a28==1)&&(((!(a0==1)&&(((a6==1)&&((((a20==1)&&((input==5)&&(((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))))&&(a17==2))&&(a21==10)))&&(a19==2)))&&(a6==1))&&(a23==1))))){ + a0 = 0; + a9 = 11; + a16 = 9; + a21 = 12; + a4 = 0; + a5 = 5; + a19 = 4; + a14 = 0; + a1 = 12; + return 21; + } else if((((a19==4)&&((((((((a9==10)&&(input==4))&&(a21==12))&&!(a7==1))&&(a28==1))&&(a5==4))&&!(a27==1))&&(a20==1)))&&(((((((a3==1)||!(a28==1))&&(a16==9))&&(a17==2))||!(a13==1))&&!(a27==1))&&(a1==14)))){ + a3 = 1; + a4 = 0; + a19 = 1; + a24 = 0; + a1 = 12; + a9 = 7; + a21 = 10; + a16 = 7; + return -1; + } else if(((!(a20==1)&&(!(a14==1)&&((a19==5)&&(!(a14==1)&&((a21==10)&&(((a9==9)&&(((a5==5)||(a5==6))&&(input==4)))&&(a13==1)))))))&&(((a23==1)&&((a17==2)&&((a1==13)&&(!(a23==1)||((a16==9)&&(a11==1))))))&&!(a27==1)))){ + a9 = 8; + a19 = 1; + a5 = 4; + a25 = 0; + a20 = 1; + a14 = 1; + a16 = 7; + a10 = 1; + return 25; + } else if((((a24==1)||(((a7==1)||((a17==2)&&((a19==3)&&((a1==13)&&((a20==1)&&((a21==10)&&(!(a2==1)||(!(a26==1)&&(a13==1)))))))))||!(a13==1)))&&(((a16==7)&&((((a5==5)||(a5==6))&&(input==5))&&(a9==9)))&&(a12==1)))){ + a27 = 0; + a1 = 14; + a19 = 1; + a2 = 1; + a9 = 7; + a21 = 11; + a5 = 5; + return 25; + } else if((((a7==1)||((a1==12)&&(((a21==11)&&(!(a6==1)||((a19==1)&&(a6==1))))||!(a23==1))))&&(((((a6==1)&&((a16==9)&&(((((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&(input==3))&&(a20==1))))&&(a17==2))&&!(a0==1))&&(a3==1)))){ + a3 = 1; + a28 = 1; + a23 = 1; + a5 = 4; + a1 = 14; + a19 = 2; + a9 = 10; + a21 = 10; + return 21; + } else if((((((a24==1)||((a18==1)||((a17==2)&&(((((a6==1)||!(a3==1))&&(a6==1))&&(a1==14))&&(a16==9)))))&&(a19==5))&&!(a20==1))&&(((((a3==1)&&((input==3)&&((a5==4)||(a5==5))))&&(a21==12))&&(a9==8))&&(a28==1)))){ + a9 = 11; + a20 = 1; + a1 = 13; + a14 = 1; + a21 = 10; + a6 = 0; + a19 = 1; + a22 = 0; + a16 = 7; + a5 = 4; + return 26; + } else if((((!(a18==1)&&((!(a4==1)&&((a16==10)&&(((a3==1)||!(a23==1))&&!(a26==1))))&&(a23==1)))&&(a1==13))&&(((a20==1)&&((a23==1)&&(((a17==2)&&(((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4)))&&(input==3)))&&(a21==11))))&&(a19==4)))){ + a9 = 7; + a1 = 12; + a21 = 10; + a19 = 1; + a14 = 0; + a5 = 4; + a13 = 1; + a16 = 7; + a12 = 1; + return -1; + } else if(((((a2==1)&&(((((a5==5)||(a5==6))&&(input==1))&&(a1==12))&&(a11==1)))&&!(a18==1))&&(((a21==12)&&(((a23==1)&&(((!(a3==1)||((!(a20==1)&&(a6==1))&&(a12==1)))&&(a16==8))&&(a9==11)))&&(a19==4)))&&(a17==2)))){ + a19 = 3; + a21 = 10; + a15 = 1; + a16 = 10; + a5 = 5; + a9 = 10; + a10 = 1; + a26 = 1; + return -1; + } else if(((((a3==1)&&(!(a8==1)&&((a9==10)&&((a16==10)&&(((a5==4)||(a5==5))&&(input==5))))))&&(a17==2))&&((((a21==12)&&((a20==1)&&((a24==1)||(((a24==1)||((a3==1)||!(a12==1)))||(a0==1)))))&&(a19==5))&&(a1==12)))){ + a19 = 4; + a14 = 0; + a5 = 6; + a16 = 8; + a12 = 1; + a13 = 1; + a21 = 11; + return 26; + } else if(((((a3==1)&&((a9==11)&&((((a17==2)&&((input==4)&&(a5==5)))&&(a20==1))&&(a6==1))))&&(a16==9))&&((a19==2)&&(((a21==12)&&(!(a28==1)||((!(a27==1)&&((a28==1)&&(a1==13)))&&(a13==1))))||!(a11==1))))){ + a2 = 1; + a28 = 1; + a21 = 10; + a16 = 7; + a1 = 12; + a24 = 0; + a19 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if((((a6==1)&&(((a5==6)&&(((a23==1)&&((a23==1)&&(a1==12)))&&(a20==1)))&&(a21==11)))&&((!(a24==1)&&((!(a0==1)&&((a17==2)&&(((a2==1)&&((input==3)&&(a9==7)))&&(a16==11))))&&(a19==5)))&&(a23==1)))){ + a18 = 0; + a16 = 7; + a8 = 0; + a3 = 1; + a21 = 10; + a19 = 1; + a5 = 4; + return -1; + } else if((((((a19==3)&&((((((a5==6)&&(a1==12))&&(a9==11))||((a9==7)&&((a1==13)&&(a5==4))))&&(input==6))&&(a21==12)))&&(a12==1))&&(a6==1))&&((a28==1)&&((((a17==2)&&((a18==1)||((a23==1)&&((a12==1)&&(a16==7)))))&&(a3==1))&&!(a20==1))))){ + a8 = 0; + a21 = 10; + a5 = 5; + a12 = 1; + a13 = 1; + a9 = 9; + a1 = 13; + a20 = 1; + a19 = 2; + return 25; + } else if((((a7==1)||((a16==7)&&(((a23==1)&&((a4==1)||((a11==1)&&(a23==1))))&&!(a0==1))))&&((a19==1)&&((a17==2)&&(((!(a26==1)&&(((a1==12)&&((input==6)&&(a21==10)))&&(a5==4)))&&(a9==9))&&!(a20==1)))))){ + a26 = 0; + a27 = 0; + a0 = 0; + a20 = 1; + a9 = 7; + return -1; + } else if((((a9==11)&&((a21==11)&&(((a17==2)&&((a16==8)&&(a23==1)))&&(a20==1))))&&((((a1==13)&&(((!(a18==1)&&(((((a5==4)||(a5==5))&&(input==5))&&(a12==1))&&(a6==1)))&&!(a24==1))&&!(a24==1)))&&!(a27==1))&&(a19==5)))){ + a1 = 12; + a5 = 4; + a19 = 1; + a4 = 0; + a16 = 7; + a21 = 10; + a7 = 0; + a9 = 7; + a0 = 0; + return -1; + } else if(((((a1==12)&&((a14==1)||((((a19==3)&&((a3==1)||(a8==1)))||!(a3==1))&&!(a14==1))))&&(a5==6))&&((a17==2)&&((a9==8)&&((a21==10)&&(((a20==1)&&((a3==1)&&((a16==9)&&(input==1))))&&!(a27==1))))))){ + a27 = 0; + a6 = 1; + a4 = 0; + a16 = 7; + a19 = 1; + a9 = 7; + a5 = 4; + return -1; + } else if(((((((!(a20==1)&&((a1==14)&&(((a5==5)||(a5==6))&&(input==5))))&&(a17==2))&&(a23==1))&&(a13==1))&&!(a27==1))&&((a23==1)&&(((a24==1)||((a21==11)&&(((a9==10)&&((a13==1)&&(a16==10)))&&!(a14==1))))&&(a19==5))))){ + a19 = 3; + a21 = 10; + a20 = 1; + a9 = 8; + a16 = 11; + a6 = 0; + a28 = 0; + a8 = 1; + a1 = 12; + a5 = 5; + return -1; + } else if(((!(a27==1)&&(((((a3==1)&&(a1==13))&&(a21==12))&&(a9==10))||!(a23==1)))&&((a16==8)&&((a11==1)&&((a23==1)&&(((((((input==6)&&(a5==5))&&!(a20==1))&&!(a24==1))&&(a19==2))&&(a12==1))&&(a17==2))))))){ + a10 = 1; + a27 = 1; + a5 = 6; + a21 = 10; + a1 = 14; + a16 = 7; + a19 = 1; + a20 = 1; + a25 = 0; + return -1; + } else if(((((a13==1)&&((a11==1)&&((((((input==5)&&((((a9==7)&&((a5==4)&&(a1==12)))&&(a19==4))||(((((a5==5)&&(a1==14))&&(a9==11))&&(a19==3))||((a19==3)&&((a9==11)&&((a1==14)&&(a5==6)))))))&&!(a7==1))&&(a16==9))&&!(a0==1))&&(a21==12))))&&(a20==1))&&((a17==2)&&((a6==1)&&((a11==1)&&!(a0==1)))))){ + a1 = 12; + a5 = 4; + a9 = 7; + a13 = 1; + a4 = 0; + a16 = 7; + a28 = 1; + a21 = 10; + a19 = 1; + return -1; + } else if((((((((!(a6==1)||(a11==1))||(a26==1))&&(a5==5))&&(a17==2))&&(a16==11))&&(a20==1))&&((a21==11)&&((a9==9)&&(((a28==1)&&(!(a8==1)&&((((input==1)&&(a1==13))&&(a11==1))&&!(a26==1))))&&(a19==1)))))){ + a1 = 14; + a12 = 1; + a27 = 0; + a0 = 0; + a5 = 6; + a21 = 12; + a16 = 8; + a9 = 8; + return 21; + } else if(((((a20==1)&&(((input==4)&&(((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))&&(a12==1)))&&(a17==2))&&((a1==14)&&((a16==11)&&(((a12==1)&&((a0==1)||((a19==2)&&(((a21==12)&&(!(a23==1)||(a11==1)))||(a14==1)))))||!(a6==1)))))){ + a19 = 1; + a1 = 12; + a27 = 0; + a21 = 10; + a8 = 0; + a16 = 7; + a9 = 7; + a4 = 0; + a5 = 4; + return -1; + } else if((((a19==4)&&((a17==2)&&((!(a24==1)&&(a3==1))||!(a11==1))))&&((a6==1)&&((a16==9)&&((((a6==1)&&(!(a24==1)&&(((input==5)&&((((a9==11)&&((a1==13)&&(a5==6)))||(((a5==4)&&(a1==14))&&(a9==7)))||((a9==7)&&((a5==5)&&(a1==14)))))&&(a21==12))))&&!(a20==1))&&(a11==1)))))){ + if((a4==1)){ + a29 = 1; + a9 = 7; + a10 = 1; + a16 = 7; + a1 = 12; + a5 = 5; + a4 = 1; + }else{ + a21 = 10; + a16 = 7; + a20 = 1; + a9 = 7; + a5 = 4; + a19 = 1; + a23 = 0; + a1 = 14; + a4 = 1; + a28 = 0; + } + return 25; + } else if(((!(a26==1)&&(((((a9==9)&&((a13==1)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a16==10))&&!(a20==1))&&!(a8==1)))&&(((a11==1)&&(((a17==2)&&((a19==5)&&((a1==12)&&((a6==1)&&(a6==1)))))&&(a21==11)))&&!(a14==1)))){ + a25 = 0; + a16 = 11; + a19 = 1; + a5 = 6; + a9 = 11; + a28 = 0; + a20 = 1; + a3 = 0; + a1 = 14; + return 25; + } else if((((((a19==1)&&((a20==1)&&((a13==1)&&(((((((input==6)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&!(a26==1))&&(a21==10))&&(a16==9))&&!(a0==1))&&(a1==12)))))&&(a17==2))&&(a23==1))&&((a13==1)&&((a23==1)&&!(a24==1))))){ + a9 = 7; + a27 = 0; + a7 = 0; + a28 = 1; + a16 = 7; + a5 = 4; + return -1; + } else if((((a20==1)&&((((input==4)&&(a17==2))&&(a9==8))&&(a21==10)))&&(((!(a3==1)||(((a7==1)||((a19==3)&&((a16==9)&&((a18==1)||(((a23==1)&&(a3==1))&&!(a27==1))))))&&!(a4==1)))&&(a1==14))&&(a5==5)))){ + a5 = 4; + a16 = 7; + a9 = 7; + a19 = 1; + a24 = 0; + a6 = 1; + a1 = 12; + a14 = 0; + return -1; + } else if((((a24==1)||(((((a28==1)&&(a9==7))&&(a19==5))&&(a17==2))&&(a13==1)))&&(!(a24==1)&&(((a1==12)&&(((a5==5)&&((!(a7==1)&&(((input==3)&&(a21==11))&&(a20==1)))&&(a16==10)))&&!(a4==1)))&&!(a18==1))))){ + a11 = 1; + a7 = 0; + a19 = 1; + a16 = 7; + a21 = 10; + a5 = 4; + return -1; + } else if((((a21==11)&&(((((a16==9)&&((a23==1)&&(a6==1)))&&(a17==2))||!(a13==1))&&(a2==1)))&&(!(a18==1)&&(((a19==5)&&((((((input==4)&&((a5==5)||(a5==6)))&&(a9==9))&&(a1==14))&&!(a14==1))&&(a20==1)))&&!(a24==1))))){ + a21 = 10; + a23 = 1; + a19 = 1; + a16 = 7; + a1 = 12; + a0 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if(((!(a0==1)&&((a3==1)&&((!(a20==1)&&(!(a7==1)&&((((((a19==5)&&((a9==11)&&((a1==14)&&(a5==5))))&&(a21==10))||(((((a5==6)&&(a1==14))&&(a9==11))&&(a19==5))&&(a21==10)))||((a21==11)&&((a19==1)&&((a9==7)&&((a1==12)&&(a5==4))))))&&(input==5))))&&!(a4==1))))&&((a16==8)&&(((a17==2)&&((a0==1)||(a13==1)))&&!(a8==1))))){ + a18 = 0; + a5 = 4; + a16 = 9; + a3 = 1; + a0 = 0; + a19 = 3; + a9 = 7; + a1 = 13; + a21 = 11; + a20 = 1; + return 25; + } else if(((((!(a3==1)&&((a7==1)&&(((a17==2)&&(input==5))&&!(a3==1))))&&!(a12==1))&&(a5==6))&&((((a9==9)&&(((!(a23==1)&&(!(a20==1)&&((a19==2)&&(a12==1))))&&(a1==12))&&(a0==1)))&&(a21==11))&&(a16==8)))){ + a13 = 0; + a10 = 0; + a9 = 7; + a1 = 14; + a5 = 4; + a19 = 1; + a21 = 12; + a25 = 1; + a20 = 1; + return 21; + } else if(((((a9==11)&&((((a1==14)&&(!(a26==1)&&((a11==1)&&(!(a27==1)&&(!(a8==1)&&((a19==4)&&((a20==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))))))))&&(a16==8))&&!(a18==1)))&&(a17==2))&&((a21==10)&&((a3==1)||!(a12==1))))){ + a2 = 1; + a27 = 0; + a14 = 0; + a9 = 8; + a5 = 4; + a19 = 1; + a16 = 10; + return 26; + } else if((((a19==3)&&((a20==1)&&(!(a2==1)||(((a28==1)&&!(a0==1))&&!(a8==1)))))&&(((((a17==2)&&(!(a4==1)&&((((((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(input==5))&&(a28==1))&&(a11==1))))&&(a21==12))&&(a1==13))&&(a16==10)))){ + a9 = 9; + a27 = 0; + a0 = 0; + a16 = 7; + a28 = 1; + a5 = 4; + a19 = 2; + a21 = 10; + return 25; + } else if((((a9==7)&&(((((a17==2)&&((a21==12)&&(input==6)))&&!(a14==1))&&(a13==1))&&!(a20==1)))&&(((((((a5==5)&&(((a19==2)&&(a2==1))&&!(a24==1)))&&(a16==7))||!(a13==1))||(a26==1))&&(a1==12))&&!(a26==1)))){ + a12 = 1; + a5 = 4; + a26 = 0; + a19 = 1; + a0 = 0; + a20 = 1; + a21 = 10; + return -1; + } else if((((a17==2)&&((!(a0==1)&&(((input==4)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5))))&&(a1==12)))&&(a11==1)))&&((a16==9)&&((((a23==1)&&(((((a28==1)||(a0==1))&&!(a20==1))&&(a21==10))||!(a11==1)))||!(a11==1))&&(a19==4))))){ + a1 = 13; + a19 = 1; + a5 = 4; + a16 = 7; + a10 = 0; + a20 = 1; + a26 = 1; + a9 = 11; + a7 = 1; + return 21; + } else if((((!(a11==1)||(a6==1))||(a14==1))&&(((a12==1)&&(((a21==10)&&(((a19==2)&&((a11==1)&&((a16==10)&&((a1==14)&&((a20==1)&&((input==6)&&(((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6))))))))))&&(a17==2)))&&!(a26==1)))&&(a12==1)))){ + a5 = 5; + a16 = 8; + a9 = 11; + a8 = 0; + a19 = 5; + a7 = 0; + a28 = 1; + return 25; + } else if((((((a24==1)||((a5==6)&&((a3==1)&&((((a16==7)&&((((a13==1)&&(a28==1))&&(a9==10))&&(a19==4)))&&(a20==1))||!(a13==1)))))&&(a6==1))&&(a17==2))&&((a21==11)&&((a13==1)&&((a1==13)&&(input==1)))))){ + a1 = 12; + a19 = 1; + a9 = 7; + a5 = 4; + a12 = 1; + a21 = 10; + a26 = 0; + a28 = 1; + return -1; + } else if((((a9==8)&&(!(a8==1)&&(((a27==1)||((a2==1)&&(a17==2)))&&(a19==1))))&&((((((!(a27==1)&&((a1==13)&&((a20==1)&&((input==6)&&((a5==5)||(a5==6))))))&&(a16==9))&&!(a14==1))&&(a12==1))&&(a13==1))&&(a21==11)))){ + if((a22==1)){ + a5 = 6; + a9 = 10; + a3 = 1; + a1 = 14; + a19 = 2; + a27 = 0; + a21 = 10; + a16 = 8; + a20 = 0; + a4 = 0; + }else{ + a5 = 5; + a2 = 1; + a6 = 1; + a1 = 14; + a19 = 3; + a21 = 10; + a4 = 0; + a16 = 10; + } + return 21; + } else if(((!(a8==1)&&((a26==1)||(((!(a11==1)||(((((a23==1)&&(a9==10))&&(a17==2))||!(a11==1))&&!(a14==1)))&&(a20==1))&&(a16==11))))&&((!(a7==1)&&((a21==11)&&((a19==5)&&(((a5==4)||(a5==5))&&(input==6)))))&&(a1==12)))){ + a23 = 1; + a26 = 0; + a19 = 3; + a21 = 12; + a6 = 1; + a5 = 4; + a16 = 10; + a1 = 13; + return 21; + } else if((((a13==1)&&((a3==1)&&((((input==5)&&((((a9==7)&&((a1==12)&&(a5==4)))&&(a19==3))||((((a9==11)&&((a5==5)&&(a1==14)))&&(a19==2))||((((a1==14)&&(a5==6))&&(a9==11))&&(a19==2)))))&&(a21==11))&&(a12==1))))&&(((!(a20==1)&&((a17==2)&&(((a6==1)&&(a2==1))&&(a16==10))))||!(a2==1))&&(a28==1)))){ + a19 = 2; + a20 = 1; + a16 = 7; + a1 = 12; + a5 = 5; + a21 = 10; + a9 = 11; + a22 = 1; + a11 = 0; + return 22; + } else if(((!(a4==1)&&(!(a26==1)&&(!(a0==1)&&((a17==2)&&(((a21==10)&&((!(a20==1)&&((input==4)&&(a16==7)))&&(a2==1)))&&(a5==5))))))&&((a0==1)||((a7==1)||(((a19==1)&&((a23==1)&&(a1==14)))&&(a9==10)))))){ + a1 = 12; + a20 = 1; + a5 = 4; + a3 = 1; + a9 = 7; + a2 = 1; + a14 = 0; + return -1; + } else if((((a16==9)&&(((a11==1)&&(((a20==1)&&(a12==1))||(a0==1)))&&(a1==14)))&&((a5==5)&&(((a21==12)&&(((!(a14==1)&&(!(a8==1)&&(!(a24==1)&&((a9==10)&&(input==4)))))&&(a19==5))&&(a17==2)))&&(a13==1))))){ + a23 = 1; + a7 = 0; + a0 = 0; + a16 = 8; + a9 = 11; + return 22; + } else if((((a9==9)&&((!(a23==1)&&((a16==7)&&(((a19==2)&&(input==1))&&!(a12==1))))&&(a20==1)))&&((a1==13)&&(((((a21==12)&&((a18==1)&&(((a8==1)&&(a3==1))&&!(a2==1))))&&(a0==1))&&(a5==4))&&(a17==2))))){ + a11 = 0; + a29 = 0; + a19 = 5; + a21 = 11; + a9 = 7; + a1 = 14; + a5 = 5; + a15 = 1; + return 21; + } else if((((a21==11)&&((a16==7)&&((a2==1)&&((a13==1)&&(((((((a5==6)&&(a1==14))&&(a9==11))&&(a19==4))||((a19==5)&&((a9==7)&&((a5==4)&&(a1==12)))))&&(input==6))&&!(a8==1))))))&&(!(a20==1)&&(!(a23==1)||((a4==1)||(((a2==1)&&(a28==1))&&(a17==2))))))){ + a26 = 0; + a5 = 6; + a9 = 10; + a11 = 1; + a1 = 13; + a20 = 1; + a21 = 10; + a19 = 2; + return 25; + } else if(((((!(a0==1)&&((a20==1)&&(!(a24==1)&&((a16==9)&&(!(a2==1)||((a11==1)&&!(a27==1)))))))&&(a19==1))&&(a21==10))&&((((a9==8)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&!(a8==1))&&(a17==2)))&&(a3==1))&&(a1==12)))){ + a21 = 12; + a16 = 8; + a12 = 1; + a1 = 13; + a19 = 5; + a9 = 10; + a6 = 1; + a5 = 5; + a14 = 0; + return -1; + } else if((((a12==1)&&((a9==7)&&(((a21==10)&&(((a16==8)&&((a19==5)&&((((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a12==1))&&(a17==2))))&&(a3==1)))&&!(a0==1))))&&((a18==1)||(((a20==1)&&((a6==1)&&(a23==1)))&&(a1==12))))){ + a5 = 5; + a16 = 10; + a9 = 9; + a1 = 14; + a19 = 1; + a8 = 0; + return 26; + } else if(((!(a27==1)&&(((a28==1)&&((((a11==1)&&((a16==8)&&(!(a20==1)&&((input==6)&&(a5==4)))))&&(a9==10))&&!(a26==1)))&&!(a4==1)))&&(((((a19==1)&&((a1==13)&&(a28==1)))&&(a2==1))&&(a17==2))&&(a21==12)))){ + if((a0==1)){ + a16 = 7; + a1 = 14; + a6 = 0; + a7 = 1; + a18 = 1; + a20 = 1; + a21 = 10; + a9 = 8; + }else{ + a1 = 14; + a5 = 6; + a19 = 3; + a16 = 9; + a10 = 0; + a9 = 9; + a0 = 1; + } + return 21; + } else if(((!(a6==1)||((a17==2)&&(((a0==1)||(((a1==13)&&(a23==1))&&(a9==7)))&&(a19==5))))&&(((((a12==1)&&(((a2==1)&&((a6==1)&&((input==4)&&((a5==5)||(a5==6)))))&&(a21==10)))&&(a16==8))&&(a20==1))&&(a2==1)))){ + a19 = 1; + a16 = 7; + a8 = 0; + a1 = 12; + a5 = 4; + a0 = 0; + a12 = 1; + return -1; + } else if(((((a3==1)&&((a12==1)&&(!(a0==1)&&((((input==1)&&((a5==4)||(a5==5)))&&(a17==2))&&(a9==9)))))&&(a19==4))&&((a1==14)&&((!(a13==1)||((((a20==1)&&((a23==1)||!(a11==1)))&&!(a14==1))&&(a16==9)))&&(a21==11))))){ + a16 = 7; + a1 = 12; + a21 = 10; + a3 = 1; + a9 = 7; + a14 = 0; + a5 = 4; + a12 = 1; + a19 = 1; + return -1; + } else if(((!(a11==1)||(((a17==2)&&(((((!(a6==1)||((a5==6)&&(a23==1)))||(a14==1))&&(a1==14))&&(a2==1))&&(a16==8)))||!(a12==1)))&&(((((a19==4)&&((a9==8)&&(input==6)))&&!(a8==1))&&!(a20==1))&&(a21==11)))){ + a6 = 1; + a16 = 10; + a21 = 10; + a9 = 7; + a5 = 4; + a11 = 1; + a20 = 1; + a0 = 0; + a19 = 1; + return 21; + } else if(((((!(a12==1)||(((a17==2)&&(a23==1))&&(a16==11)))&&(a19==3))&&!(a20==1))&&((!(a4==1)&&(((((((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==1))&&(a1==12))&&!(a4==1))&&(a13==1))&&(a3==1))&&(a23==1)))&&(a21==10)))){ + a5 = 6; + a22 = 0; + a19 = 2; + a21 = 12; + a9 = 9; + a16 = 10; + a0 = 1; + a29 = 1; + a1 = 14; + return -1; + } else if(((((!(a18==1)&&(!(a4==1)&&(!(a7==1)&&((a13==1)&&(!(a14==1)&&(((input==5)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(a17==2)))))))&&(a16==11))&&(a20==1))&&((a19==5)&&((a1==14)&&((a26==1)||((a21==11)&&(a3==1))))))){ + a1 = 13; + a9 = 7; + a5 = 4; + a0 = 0; + a23 = 1; + a3 = 1; + a16 = 9; + a19 = 3; + return 25; + } else if(((((((a21==12)&&(((a17==2)&&((input==6)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))))&&(a19==3)))&&(a11==1))&&(a1==13))&&(a3==1))&&((((a2==1)&&((a26==1)||(((a6==1)&&(a20==1))&&(a16==7))))&&(a3==1))||!(a2==1)))){ + a16 = 9; + a5 = 6; + a28 = 1; + a1 = 12; + a11 = 1; + a6 = 1; + a21 = 10; + a9 = 9; + a19 = 5; + return 23; + } else if((((a28==1)&&((((a19==1)&&((a6==1)&&(a23==1)))&&!(a0==1))&&(a17==2)))&&((a13==1)&&((a3==1)&&((a21==10)&&((a16==10)&&((!(a20==1)&&((input==3)&&(((((a5==5)&&(a1==12))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==12))))||(((a1==13)&&(a5==4))&&(a9==7)))))&&(a23==1)))))))){ + if((a16==11)){ + a21 = 11; + a16 = 7; + a5 = 5; + a8 = 1; + a19 = 2; + a26 = 1; + a13 = 0; + a9 = 9; + a1 = 13; + }else{ + a1 = 13; + a4 = 1; + a5 = 5; + a9 = 11; + a12 = 0; + a21 = 11; + a16 = 9; + a2 = 0; + a19 = 4; + } + return 21; + } else if((((a18==1)&&((a21==12)&&((a1==13)&&((!(a3==1)&&((((a7==1)&&((((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6))))&&(input==4)))&&!(a3==1))&&(a14==1)))&&(a16==10)))))&&((a17==2)&&(((a19==1)&&((a26==1)&&(a2==1)))&&(a20==1))))){ + a23 = 0; + a16 = 7; + a9 = 9; + a5 = 6; + a21 = 10; + a1 = 12; + a2 = 0; + return 21; + } else if((((a28==1)&&(((a6==1)&&((a17==2)&&(((((a19==1)&&(input==3))&&(a6==1))&&(a3==1))&&(a16==8))))&&!(a20==1)))&&((a1==12)&&(((a21==12)&&(!(a4==1)&&(((a9==7)&&(a2==1))||(a8==1))))&&(a5==4))))){ + a27 = 1; + a21 = 10; + a8 = 1; + a1 = 14; + a10 = 0; + a16 = 7; + a20 = 1; + return -1; + } else if((((((!(a27==1)&&((((a6==1)&&(a23==1))&&!(a14==1))||(a14==1)))&&!(a20==1))&&(a16==10))&&(a1==14))&&(((a19==1)&&((!(a8==1)&&((a17==2)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==3))))&&!(a0==1)))&&(a21==12)))){ + if((a2==1)){ + a5 = 4; + a4 = 1; + a9 = 11; + a19 = 2; + a1 = 13; + a26 = 1; + a3 = 0; + a16 = 7; + a21 = 11; + }else{ + a21 = 10; + a24 = 1; + a9 = 10; + a5 = 4; + a16 = 7; + a3 = 0; + a20 = 1; + } + return -1; + } else if(((((a12==1)&&((((a28==1)&&!(a20==1))&&!(a8==1))&&!(a27==1)))&&(a16==7))&&((a5==4)&&((a1==12)&&((a21==11)&&((a17==2)&&(!(a8==1)&&((a9==8)&&(!(a14==1)&&(((a19==4)&&(input==6))&&(a11==1))))))))))){ + if((a27==1)){ + a21 = 10; + a3 = 1; + a16 = 8; + a1 = 14; + a18 = 0; + a19 = 3; + a6 = 1; + }else{ + a20 = 1; + a19 = 3; + a6 = 1; + a1 = 13; + a8 = 0; + a9 = 10; + a16 = 8; + a5 = 5; + } + return 22; + } else if((((!(a26==1)&&((a12==1)&&((!(a12==1)||(!(a28==1)||(!(a20==1)&&(((a13==1)&&(a16==7))&&(a21==10)))))&&(a19==2))))&&!(a7==1))&&(((a17==2)&&((((a5==4)&&(input==4))&&(a9==9))&&(a1==12)))&&(a28==1)))){ + a20 = 1; + a19 = 1; + a26 = 0; + a9 = 7; + return -1; + } else if((((a20==1)&&((a16==8)&&(((a1==14)&&((a13==1)&&((((((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6))))&&(input==1))&&(a12==1))&&(a21==12))))&&!(a14==1))))&&((((((a2==1)&&!(a24==1))||(a0==1))||!(a28==1))&&(a17==2))&&(a19==3)))){ + a5 = 6; + a16 = 10; + a18 = 0; + a9 = 11; + a0 = 0; + a19 = 2; + a23 = 1; + return 21; + } else if(((((a19==4)&&((a1==13)&&((a20==1)&&((a16==11)&&(((a17==2)&&((a6==1)&&(!(a24==1)&&((((a5==5)||(a5==6))&&(input==4))&&!(a4==1)))))&&(a23==1))))))&&(a21==10))&&((a8==1)||((a9==9)&&((a6==1)&&(a23==1)))))){ + a19 = 1; + a16 = 7; + a1 = 12; + a24 = 0; + a5 = 4; + a9 = 7; + a6 = 1; + a13 = 1; + return -1; + } else if((((a1==14)&&(!(a20==1)&&(((((a4==1)||(a12==1))&&(a19==1))&&(a17==2))||(a4==1))))&&((a3==1)&&(((a9==7)&&(!(a8==1)&&((a16==10)&&((a2==1)&&((a21==12)&&((input==4)&&((a5==5)||(a5==6))))))))&&(a13==1))))){ + if((a1==12)){ + a21 = 11; + a20 = 1; + a29 = 1; + a19 = 4; + a26 = 1; + a9 = 10; + a10 = 0; + a5 = 4; + }else{ + a11 = 0; + a1 = 13; + a5 = 6; + a19 = 2; + a8 = 1; + a16 = 11; + a25 = 1; + a21 = 10; + a20 = 1; + a9 = 8; + } + return -1; + } else if((((((a17==2)&&(!(a4==1)&&((((input==1)&&(a19==3))&&!(a8==1))&&(a9==7))))&&(a20==1))&&(a21==12))&&((a5==6)&&(((((a0==1)||((!(a13==1)||(a6==1))&&(a16==9)))&&!(a4==1))&&!(a4==1))&&(a1==14))))){ + a16 = 7; + a1 = 13; + a9 = 10; + a27 = 0; + a19 = 2; + a21 = 10; + a24 = 0; + return 25; + } else if((((a2==1)&&((((!(a27==1)&&((input==5)&&((a5==4)||(a5==5))))&&!(a20==1))&&!(a24==1))&&!(a7==1)))&&(((a28==1)&&((((a1==13)&&(((a17==2)&&((a16==7)&&(a13==1)))&&(a9==11)))&&(a19==2))&&(a21==10)))&&!(a27==1)))){ + a20 = 1; + a11 = 1; + a5 = 4; + a3 = 1; + a9 = 7; + a2 = 1; + a1 = 12; + a19 = 1; + return -1; + } else if((((a9==10)&&((((!(a26==1)&&((a13==1)||(a24==1)))&&(a3==1))||(a24==1))&&(a28==1)))&&((((a1==12)&&((a16==10)&&((a19==3)&&(((!(a20==1)&&(input==6))&&(a21==10))&&(a23==1)))))&&(a5==4))&&(a17==2)))){ + a10 = 0; + a19 = 4; + a4 = 1; + a1 = 14; + a9 = 11; + a8 = 1; + a21 = 12; + a5 = 6; + a16 = 7; + return -1; + } else if((((((((!(a8==1)&&((a27==1)||(a2==1)))&&(a21==11))&&!(a20==1))&&(a13==1))&&(a3==1))&&(a3==1))&&(((((((((a5==6)&&(a1==12))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==13))))&&(input==5))&&(a19==1))&&(a17==2))&&(a2==1))&&(a16==7)))){ + a21 = 10; + a20 = 1; + a1 = 12; + a5 = 4; + a9 = 7; + a18 = 0; + a28 = 1; + a11 = 1; + return -1; + } else if((((((!(a14==1)&&((a16==7)&&((a17==2)&&((a3==1)&&((a20==1)&&((input==3)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))))))))&&(a1==13))&&(a19==2))&&(a21==12))&&(!(a28==1)||((((a13==1)||(a8==1))&&(a12==1))||!(a6==1))))){ + a1 = 12; + a16 = 9; + a21 = 10; + a9 = 7; + a8 = 0; + a23 = 1; + a26 = 0; + a5 = 6; + a19 = 3; + return 22; + } else if((((a21==10)&&((a19==3)&&(((((a13==1)&&!(a20==1))&&!(a24==1))||(a14==1))&&(a11==1))))&&((a17==2)&&((!(a18==1)&&(((((input==4)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&!(a7==1))&&(a16==7))&&(a11==1)))&&(a1==13))))){ + a23 = 1; + a20 = 1; + a27 = 0; + a8 = 0; + a5 = 4; + a19 = 1; + a1 = 12; + a9 = 7; + return -1; + } else if(((!(a12==1)||(!(a20==1)&&((a24==1)||((a17==2)&&((a12==1)&&(a19==4))))))&&((a16==10)&&(((a21==10)&&(!(a7==1)&&(((((input==4)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&!(a18==1))&&!(a4==1))&&(a1==13))))&&(a28==1))))){ + a20 = 1; + a18 = 1; + a24 = 1; + a5 = 4; + a9 = 9; + a21 = 11; + a16 = 11; + a19 = 5; + a23 = 0; + return 21; + } else if(((((a9==11)&&(((a13==1)||!(a3==1))&&(a16==9)))&&(a20==1))&&((a21==12)&&(!(a8==1)&&((a12==1)&&(((a11==1)&&((((a19==4)&&((a1==14)&&((a5==5)&&(input==5))))&&!(a27==1))&&(a17==2)))&&!(a24==1))))))){ + a5 = 4; + a1 = 12; + a14 = 0; + a19 = 1; + a16 = 7; + a21 = 10; + a24 = 0; + a9 = 7; + return -1; + } return calculate_output34(input); + } + + int calculate_output34(int input) { + if((((a9==9)&&(((a19==3)&&(((a21==10)&&((((a1==13)&&((a5==6)&&(!(a11==1)||(a28==1))))||!(a2==1))&&(a13==1)))&&(a17==2)))&&(a20==1)))&&((a12==1)&&((((input==4)&&(a16==10))&&!(a26==1))&&(a13==1))))){ + a9 = 7; + a0 = 0; + a2 = 1; + a28 = 1; + a19 = 1; + a1 = 12; + a5 = 4; + a16 = 7; + return -1; + } else if(((((a19==4)&&(((a17==2)&&(a28==1))||!(a13==1)))||(a26==1))&&(((a16==10)&&(((!(a4==1)&&((a21==11)&&((!(a26==1)&&((((a5==4)||(a5==5))&&(input==3))&&(a9==10)))&&!(a20==1))))&&(a11==1))&&(a1==14)))&&(a6==1)))){ + if((a24==1)){ + a15 = 0; + a20 = 1; + a9 = 11; + a21 = 10; + a0 = 1; + a23 = 0; + a5 = 6; + a19 = 5; + }else{ + a9 = 9; + a6 = 0; + a8 = 1; + a1 = 12; + a21 = 10; + a16 = 7; + a5 = 5; + a20 = 1; + a19 = 2; + a10 = 0; + } + return -1; + } else if(((((a20==1)&&(!(a24==1)&&(((input==5)&&((a5==4)||(a5==5)))&&(a21==12))))&&(a9==8))&&((a19==5)&&(((a16==9)&&((((((a17==2)&&((a13==1)&&!(a26==1)))||!(a11==1))&&(a11==1))||!(a11==1))||(a18==1)))&&(a1==14))))){ + a23 = 1; + a9 = 7; + a16 = 7; + a21 = 10; + a1 = 12; + a12 = 1; + a5 = 4; + a19 = 1; + return -1; + } else if((((a16==8)&&((a19==3)&&(((a9==11)&&(!(a20==1)&&((a12==1)&&(a28==1))))&&(a1==13))))&&((a2==1)&&(((a17==2)&&(((((((a5==5)||(a5==6))&&(input==4))&&!(a18==1))&&!(a24==1))&&(a21==10))&&(a3==1)))&&!(a7==1))))){ + a12 = 1; + a16 = 7; + a20 = 1; + a9 = 7; + a5 = 4; + a4 = 0; + a14 = 0; + a19 = 1; + a1 = 12; + return -1; + } else if((((a17==2)&&((!(a20==1)&&(((a27==1)||(a6==1))||(a7==1)))&&(a19==2)))&&(((a9==10)&&((a13==1)&&(((a21==10)&&((a11==1)&&((a2==1)&&(((input==4)&&((a5==4)||(a5==5)))&&(a16==10)))))&&(a12==1))))&&(a1==14)))){ + if((a5==4)){ + a19 = 1; + a9 = 7; + a5 = 6; + a12 = 0; + a20 = 1; + a28 = 0; + a15 = 0; + a16 = 7; + }else{ + a5 = 4; + a9 = 9; + a13 = 0; + a20 = 1; + a0 = 1; + a15 = 0; + a1 = 13; + a19 = 1; + a16 = 7; + } + return -1; + } else if(((((!(a24==1)&&((!(a18==1)&&((a16==11)&&(((input==3)&&((a5==4)||(a5==5)))&&(a6==1))))&&!(a27==1)))&&(a1==14))&&(a21==11))&&((a9==7)&&(((a18==1)||((a6==1)&&((a19==5)&&((a20==1)&&(a2==1)))))&&(a17==2))))){ + a16 = 7; + a5 = 4; + a26 = 0; + a19 = 1; + a1 = 12; + a21 = 10; + a0 = 0; + a13 = 1; + return -1; + } else if(((!(a20==1)&&((((a5==6)&&((!(a27==1)&&((a11==1)&&((((a21==12)&&((input==1)&&(a16==10)))&&(a1==14))&&(a17==2))))&&(a6==1)))&&(a13==1))&&(a9==11)))&&(((a27==1)||((a2==1)||!(a28==1)))&&(a19==4)))){ + if((a8==1)){ + a4 = 1; + a12 = 0; + a19 = 1; + a21 = 10; + a16 = 7; + a5 = 5; + a25 = 0; + a20 = 1; + a9 = 10; + a1 = 13; + }else{ + a20 = 1; + a12 = 0; + a16 = 7; + a19 = 1; + a21 = 10; + a10 = 0; + a18 = 1; + a1 = 12; + } + return 25; + } else if(((((a19==2)&&(((!(a12==1)||((a17==2)&&((!(a11==1)||(a3==1))&&(a2==1))))&&(a1==14))&&(a21==12)))&&(a9==7))&&(((!(a8==1)&&(!(a4==1)&&(((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a16==10))))&&!(a0==1))&&(a20==1)))){ + a16 = 7; + a11 = 1; + a6 = 1; + a5 = 4; + a4 = 0; + a21 = 10; + a19 = 4; + return 25; + } else if((((a19==4)&&(((((a21==10)&&(((a1==13)&&(!(a2==1)||((a2==1)||(a26==1))))&&(a17==2)))||(a27==1))&&(a16==11))&&(a5==6)))&&((!(a20==1)&&((a23==1)&&(((a9==9)&&(input==6))&&(a13==1))))&&!(a8==1)))){ + a20 = 1; + a5 = 4; + a1 = 14; + a9 = 11; + a16 = 7; + a22 = 1; + a25 = 0; + a10 = 1; + a19 = 1; + return -1; + } else if(((!(a20==1)&&((!(a27==1)&&(((input==4)&&(a5==4))&&(a2==1)))&&(a23==1)))&&((a19==2)&&((((!(a13==1)||((a6==1)&&((a9==7)&&(((a1==14)&&(a12==1))&&(a17==2)))))&&(a21==12))&&(a16==9))&&(a23==1))))){ + if((a6==1)){ + a19 = 5; + a21 = 10; + a2 = 0; + a26 = 1; + a20 = 1; + a1 = 12; + a5 = 6; + a14 = 1; + a16 = 10; + }else{ + a19 = 4; + a25 = 0; + a21 = 11; + a24 = 1; + a20 = 1; + a16 = 11; + a1 = 12; + a4 = 1; + } + return -1; + } else if((((a21==11)&&((a17==2)&&((a16==11)&&((!(a26==1)&&(((a23==1)&&((a5==6)&&((input==3)&&(a20==1))))&&(a13==1)))&&(a9==10)))))&&((!(a8==1)&&(((!(a6==1)||(a13==1))&&(a1==14))&&(a28==1)))&&(a19==1)))){ + a1 = 12; + a5 = 4; + a28 = 1; + a9 = 7; + a13 = 1; + a11 = 1; + a21 = 10; + a16 = 7; + return -1; + } else if(((((((a17==2)&&((a19==4)&&(input==4)))&&(a9==11))&&(a1==14))&&(a16==7))&&(((!(a11==1)||((!(a2==1)||(!(a4==1)&&((((a28==1)&&(a6==1))||(a4==1))&&(a21==12))))&&(a5==4)))&&(a2==1))&&!(a20==1)))){ + a20 = 1; + a28 = 1; + a12 = 1; + a27 = 0; + a9 = 7; + a21 = 10; + a1 = 12; + a19 = 1; + return -1; + } else if((((((((a16==8)&&((a1==13)&&(((((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==5))&&!(a8==1))))&&!(a14==1))&&(a23==1))&&!(a4==1))&&(a12==1))&&(!(a20==1)&&((a21==11)&&((a19==5)&&(((a17==2)&&(a3==1))&&(a13==1))))))){ + a1 = 14; + a9 = 11; + a21 = 12; + a25 = 0; + a19 = 2; + a6 = 0; + a5 = 5; + a16 = 10; + return 26; + } else if((((a2==1)&&((!(a7==1)&&((a16==9)&&((((a21==11)&&((a3==1)&&(a20==1)))||(a27==1))||!(a2==1))))&&(a9==9)))&&((a1==13)&&(((((a17==2)&&((input==1)&&((a5==4)||(a5==5))))&&(a19==1))&&(a13==1))&&!(a7==1))))){ + a19 = 3; + a3 = 1; + a0 = 0; + a21 = 12; + a5 = 6; + a1 = 12; + return 21; + } else if((((a4==1)||(((a2==1)&&(a20==1))&&!(a7==1)))&&(!(a7==1)&&(((((!(a0==1)&&((a17==2)&&((((a19==5)&&(((a5==4)&&(a1==12))&&(a9==7)))||((((a9==11)&&((a1==14)&&(a5==5)))&&(a19==4))||((a19==4)&&(((a1==14)&&(a5==6))&&(a9==11)))))&&(input==4))))&&(a16==10))&&!(a14==1))&&!(a24==1))&&(a21==11))))){ + a19 = 1; + a9 = 7; + a11 = 1; + a16 = 7; + a5 = 4; + a21 = 10; + a7 = 0; + a1 = 12; + a13 = 1; + return -1; + } else if((((((((a2==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&(a9==11))&&(a28==1))&&(a2==1))&&!(a7==1))&&(!(a14==1)&&((a16==7)&&((a1==13)&&(!(a28==1)||((a21==12)&&(((a17==2)&&((a19==2)&&(a11==1)))&&!(a20==1))))))))){ + a27 = 0; + a5 = 4; + a2 = 1; + a16 = 8; + a8 = 0; + a20 = 1; + a1 = 14; + return 25; + } else if((((!(a8==1)&&(!(a7==1)&&(((a6==1)&&(a12==1))&&(a1==14))))&&(a16==9))&&((((a3==1)&&((a17==2)&&(((a9==7)&&(!(a4==1)&&(!(a20==1)&&((a19==1)&&(input==6)))))&&!(a4==1))))&&(a21==10))&&(a5==6)))){ + a5 = 4; + a8 = 1; + a24 = 1; + a20 = 1; + a1 = 13; + a29 = 1; + a16 = 7; + return -1; + } else if(((((a1==13)&&(!(a7==1)&&((a4==1)||(!(a27==1)&&(!(a4==1)&&(((a23==1)&&(a16==9))&&!(a20==1)))))))&&(a21==12))&&(((a9==8)&&((!(a8==1)&&((a13==1)&&((a19==1)&&(input==3))))&&(a17==2)))&&(a5==5)))){ + if((a4==1)){ + a20 = 1; + a16 = 7; + a2 = 0; + a22 = 1; + a5 = 6; + a19 = 4; + }else{ + a26 = 1; + a9 = 7; + a6 = 0; + a20 = 1; + a5 = 4; + a16 = 7; + a25 = 0; + a21 = 10; + } + return 22; + } else if((((((a19==2)&&((a12==1)&&((a21==11)&&(((a16==10)&&((((a9==7)&&((a1==14)&&(a5==5)))||((((a1==13)&&(a5==6))&&(a9==11))||(((a1==14)&&(a5==4))&&(a9==7))))&&(input==3)))&&(a6==1)))))&&!(a24==1))&&(a17==2))&&(!(a20==1)&&((a0==1)||(((a23==1)&&!(a4==1))&&!(a14==1)))))){ + if((a13==1)){ + a19 = 4; + a13 = 0; + a25 = 0; + a5 = 4; + a20 = 1; + a1 = 14; + a8 = 1; + a9 = 9; + a21 = 10; + }else{ + a10 = 0; + a5 = 4; + a20 = 1; + a1 = 12; + a21 = 10; + a7 = 1; + a16 = 7; + a25 = 1; + a9 = 11; + } + return -1; + } else if((((a21==11)&&((a19==4)&&((a17==2)&&((a12==1)&&((a9==9)&&((a3==1)&&(((a5==5)||(a5==6))&&(input==6))))))))&&((!(a13==1)||((!(a7==1)&&(!(a6==1)||((a20==1)&&((a1==14)&&(a13==1)))))&&(a28==1)))&&(a16==8)))){ + a18 = 0; + a16 = 7; + a5 = 4; + a0 = 0; + a1 = 12; + a3 = 1; + a19 = 1; + a21 = 10; + a9 = 7; + return -1; + } else if((((a9==10)&&(((a5==4)&&((((a6==1)&&((input==3)&&(a19==4)))&&(a23==1))&&(a23==1)))&&(a1==14)))&&((((a21==12)&&(((a20==1)&&((a27==1)||(!(a23==1)||(a6==1))))&&(a28==1)))&&(a16==7))&&(a17==2)))){ + a24 = 0; + a14 = 0; + a21 = 10; + a0 = 0; + a1 = 12; + a19 = 1; + a9 = 7; + return -1; + } else if((((a21==12)&&((((a5==4)&&(((!(a28==1)||((a3==1)&&(a17==2)))||!(a11==1))||!(a28==1)))&&(a1==12))&&(a20==1)))&&((a9==7)&&(((a13==1)&&((((a19==3)&&(input==6))&&(a28==1))&&(a16==11)))&&(a13==1))))){ + a16 = 7; + a11 = 1; + a21 = 10; + a19 = 1; + a14 = 0; + a3 = 1; + return -1; + } else if((((!(a20==1)&&(((((a21==11)&&((a6==1)&&!(a13==1)))&&(a9==8))&&!(a6==1))&&(a19==2)))&&(a16==8))&&((a24==1)&&((a24==1)&&((!(a12==1)&&((a26==1)&&((a1==13)&&((input==3)&&((a5==4)||(a5==5))))))&&(a17==2)))))){ + a16 = 7; + a2 = 0; + a13 = 0; + a29 = 1; + a5 = 5; + a19 = 1; + a20 = 1; + a9 = 11; + a21 = 10; + return -1; + } else if((((!(a20==1)&&(((a5==4)||(a5==5))&&(input==4)))&&!(a14==1))&&(!(a12==1)||((a4==1)||((a14==1)||((a2==1)&&((a16==8)&&(((a17==2)&&(((((a11==1)&&(a1==14))&&(a19==4))||!(a12==1))&&(a9==7)))&&(a21==11))))))))){ + a1 = 12; + a19 = 1; + a20 = 1; + a21 = 10; + a16 = 7; + a3 = 1; + a13 = 1; + a5 = 4; + a6 = 1; + return -1; + } else if(((((a17==2)&&(((a9==7)&&((a19==2)&&(!(a4==1)&&(((a1==14)&&((a12==1)&&(a28==1)))&&!(a0==1)))))&&(a5==5)))&&!(a20==1))&&((a16==10)&&(((a6==1)&&(((input==6)&&(a21==12))&&(a12==1)))&&(a23==1))))){ + a16 = 8; + a28 = 0; + a24 = 1; + a22 = 0; + a20 = 1; + a19 = 4; + a5 = 4; + return 21; + } else if((((!(a0==1)&&((!(a20==1)&&(!(a27==1)&&((((((a5==6)&&(a1==14))&&(a9==11))&&(a19==3))||((a19==4)&&((a9==7)&&((a1==12)&&(a5==4)))))&&(input==1))))&&!(a8==1)))&&(a3==1))&&(((a16==9)&&((a17==2)&&(((a11==1)&&(a6==1))&&(a21==12))))&&(a3==1)))){ + if((a14==1)){ + a21 = 10; + a1 = 14; + a16 = 7; + a20 = 1; + a4 = 1; + a9 = 10; + a5 = 4; + a22 = 0; + a8 = 1; + a19 = 1; + }else{ + a21 = 10; + a20 = 1; + a5 = 5; + a1 = 12; + a23 = 0; + a29 = 0; + a9 = 8; + a16 = 7; + a19 = 2; + a10 = 0; + } + return 21; + } else if(((((a17==2)&&(((a3==1)&&((a18==1)||(a11==1)))||(a27==1)))&&(a21==11))&&(((a9==7)&&(((a16==8)&&(((a13==1)&&((((input==1)&&((a5==4)||(a5==5)))&&(a23==1))&&!(a20==1)))&&!(a4==1)))&&(a1==14)))&&(a19==4)))){ + a21 = 10; + a18 = 0; + a13 = 1; + a16 = 7; + a20 = 1; + a6 = 1; + a5 = 4; + a19 = 1; + a1 = 12; + return -1; + } else if((((a18==1)&&((a7==1)&&((a26==1)&&((a19==2)&&((a1==14)&&((a5==4)&&(((a17==2)&&(a11==1))&&(a21==12))))))))&&(((a9==11)&&(((((a16==8)&&(input==5))&&(a4==1))&&!(a11==1))&&(a20==1)))&&!(a6==1)))){ + a19 = 4; + a9 = 8; + a22 = 1; + a16 = 11; + a10 = 0; + a5 = 5; + a14 = 1; + return -1; + } else if(((((a11==1)&&(((((a17==2)&&(((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==3))&&(a1==14)))&&(a16==8))&&!(a4==1))&&(a21==12)))&&(a11==1))&&((!(a8==1)&&((!(a3==1)||((a2==1)&&!(a0==1)))&&!(a20==1)))&&(a19==2)))){ + a10 = 0; + a9 = 11; + a23 = 0; + a20 = 1; + a29 = 0; + a1 = 12; + a19 = 4; + a5 = 5; + a21 = 10; + a16 = 7; + return 21; + } else if((((a27==1)||(!(a28==1)||((a17==2)&&((a20==1)&&(((a1==13)&&((a13==1)||!(a23==1)))||(a26==1))))))&&((a19==4)&&(((((a21==10)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a12==1)))&&!(a4==1))&&(a16==11))&&(a9==10))))){ + a5 = 4; + a4 = 0; + a11 = 1; + a1 = 14; + a9 = 11; + a7 = 0; + return 21; + } else if(((((a19==4)&&((((a3==1)&&!(a27==1))||!(a11==1))&&(a20==1)))&&(a5==5))&&((a16==10)&&((a9==10)&&((a17==2)&&(!(a24==1)&&((((((input==1)&&(a1==13))&&!(a24==1))&&(a13==1))&&(a21==11))&&!(a7==1)))))))){ + a16 = 7; + a21 = 10; + a0 = 0; + a27 = 0; + a3 = 1; + a5 = 4; + return -1; + } else if((((a3==1)&&((!(a18==1)&&(((a6==1)&&((a6==1)&&((a9==9)&&(input==6))))&&!(a4==1)))&&(a5==5)))&&(((((a21==10)&&((a1==12)&&((a24==1)||((a19==1)&&(a12==1)))))&&!(a20==1))&&(a16==7))&&(a17==2)))){ + a8 = 0; + a18 = 0; + a20 = 1; + a0 = 0; + a5 = 4; + a9 = 7; + return -1; + } else if(((!(a7==1)&&(((a16==10)&&((a19==2)&&(((((a5==5)||(a5==6))&&(input==5))&&(a23==1))&&(a11==1))))&&(a21==10)))&&((((a1==14)&&((a20==1)&&((a0==1)||(((a6==1)&&(a9==9))&&(a2==1)))))&&(a17==2))||!(a2==1)))){ + a1 = 12; + a5 = 6; + a18 = 0; + a13 = 1; + a16 = 8; + a20 = 0; + a19 = 3; + a9 = 10; + a27 = 0; + return 21; + } else if((((a1==12)&&((a28==1)&&((((a24==1)||(a12==1))&&(a19==2))&&(a16==8))))&&((a12==1)&&(!(a27==1)&&((a23==1)&&(((a21==12)&&((!(a20==1)&&(((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))&&(input==6)))&&(a2==1)))&&(a17==2))))))){ + a15 = 0; + a8 = 1; + a12 = 0; + a9 = 7; + a5 = 4; + a1 = 13; + a16 = 7; + a21 = 10; + a20 = 1; + return -1; + } else if((((a1==12)&&((a17==2)&&((!(a28==1)||(!(a4==1)&&((!(a28==1)||(a13==1))&&(a9==7))))||!(a13==1))))&&(((a16==7)&&(((((((a5==5)||(a5==6))&&(input==6))&&(a2==1))&&!(a20==1))&&(a21==12))&&!(a7==1)))&&(a19==4)))){ + a19 = 1; + a8 = 0; + a5 = 4; + a20 = 1; + a24 = 0; + a23 = 1; + a21 = 10; + return -1; + } else if((((a19==3)&&((a11==1)&&((((a5==4)||(a5==5))&&(input==6))&&(a1==12))))&&((a16==9)&&((a21==12)&&((a17==2)&&((((!(a11==1)||((((a12==1)&&(a13==1))&&!(a4==1))&&(a20==1)))&&(a9==11))&&(a2==1))&&!(a0==1))))))){ + a5 = 4; + a21 = 10; + a16 = 7; + a9 = 7; + a26 = 0; + a14 = 0; + a19 = 1; + return -1; + } else if(((!(a14==1)&&(((a16==11)&&((((a5==4)||(a5==5))&&(input==6))&&(a17==2)))&&(a1==14)))&&((!(a26==1)&&(!(a18==1)&&(((a3==1)&&((a9==9)&&(((a21==10)&&((a3==1)&&(a20==1)))&&(a19==1))))||!(a3==1))))&&(a12==1)))){ + a1 = 12; + a8 = 0; + a16 = 7; + a13 = 1; + a9 = 7; + a5 = 4; + a18 = 0; + return -1; + } else if((((a1==14)&&(((a16==11)&&((!(a27==1)&&(((a17==2)&&((input==6)&&((a5==4)||(a5==5))))&&(a23==1)))&&!(a24==1)))&&(a19==5)))&&((a20==1)&&((((a3==1)&&(((a13==1)&&(a2==1))&&(a9==9)))||!(a28==1))&&(a21==10))))){ + a23 = 1; + a21 = 11; + a5 = 6; + a0 = 0; + a9 = 8; + a7 = 0; + a1 = 12; + return 25; + } else if((((a11==1)&&(!(a27==1)&&(!(a14==1)&&(!(a20==1)&&(((((((a1==12)&&(a5==6))&&(a9==11))||((a9==7)&&((a1==13)&&(a5==4))))||((a9==7)&&((a5==5)&&(a1==13))))&&(input==6))&&(a6==1))))))&&((a8==1)||((a26==1)||(((((a28==1)&&(a19==5))&&(a21==12))&&(a17==2))&&(a16==9)))))){ + if((a22==1)){ + a5 = 5; + a19 = 2; + a24 = 1; + a1 = 14; + a16 = 7; + a13 = 0; + a9 = 11; + }else{ + a4 = 1; + a1 = 14; + a12 = 0; + a22 = 1; + a5 = 4; + a21 = 10; + a9 = 11; + a16 = 7; + } + return -1; + } else if(((((a23==1)&&(!(a18==1)&&((a19==4)&&((a21==11)&&((input==1)&&((a5==6)||((a5==4)||(a5==5))))))))&&(a2==1))&&(!(a20==1)&&(((((((a16==7)&&((a12==1)&&(a17==2)))&&!(a27==1))&&(a1==12))||!(a23==1))&&(a6==1))&&(a9==9))))){ + a9 = 7; + a5 = 4; + a19 = 1; + a20 = 1; + a14 = 0; + a21 = 10; + a24 = 0; + a11 = 1; + return -1; + } else if((((a21==11)&&((a23==1)&&((((a19==5)&&((((a3==1)&&((input==5)&&(a5==4)))&&!(a14==1))&&(a1==12)))&&(a17==2))&&(a11==1))))&&((((a16==9)&&(((a2==1)||!(a12==1))&&(a9==11)))||(a18==1))&&(a20==1)))){ + a7 = 0; + a20 = 0; + a4 = 0; + a9 = 8; + a3 = 1; + a16 = 8; + a5 = 5; + a19 = 4; + return 22; + } else if((((a13==1)&&(!(a0==1)&&(((a19==5)&&(input==3))&&(a6==1))))&&((a16==10)&&((a1==13)&&((a9==8)&&((a5==6)&&((((!(a2==1)||(((a11==1)&&!(a20==1))||!(a3==1)))||(a26==1))&&(a21==10))&&(a17==2)))))))){ + if((a26==1)){ + a16 = 7; + a9 = 10; + a19 = 1; + a10 = 0; + a25 = 0; + a1 = 14; + a5 = 4; + a26 = 1; + a20 = 1; + }else{ + a20 = 1; + a5 = 4; + a19 = 1; + a3 = 0; + a27 = 1; + a1 = 12; + a16 = 7; + a4 = 1; + } + return 25; + } else if(((((a21==11)&&(!(a26==1)&&(!(a7==1)&&((((a17==2)&&((((a9==7)&&((a5==5)&&(a1==13)))||((((a5==6)&&(a1==12))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==13)))))&&(input==3)))&&!(a24==1))&&!(a20==1)))))&&(a16==10))&&((((!(a12==1)||(a28==1))||!(a3==1))||(a24==1))&&(a19==1)))){ + if((a5==6)){ + a25 = 0; + a5 = 4; + a20 = 1; + a16 = 7; + a4 = 1; + a1 = 13; + a21 = 10; + a9 = 10; + a28 = 0; + }else{ + a9 = 9; + a4 = 1; + a1 = 12; + a3 = 0; + a20 = 1; + a5 = 6; + a7 = 1; + a19 = 3; + a16 = 9; + } + return -1; + } else if((((a17==2)&&(((!(a13==1)||(!(a24==1)&&(a6==1)))&&(a19==3))||(a7==1)))&&((a9==10)&&((a21==12)&&((a1==12)&&((((a16==9)&&((a3==1)&&((a20==1)&&((input==4)&&((a5==5)||(a5==6))))))&&(a28==1))&&(a3==1))))))){ + a7 = 0; + a23 = 1; + a5 = 5; + a16 = 7; + a9 = 9; + a19 = 5; + a20 = 0; + a4 = 0; + return 22; + } else if(((!(a20==1)&&((a12==1)&&((a21==11)&&((a28==1)&&(a9==11)))))&&((a17==2)&&(!(a24==1)&&(((a1==13)&&(((a13==1)&&(!(a14==1)&&(((a19==1)&&((a5==6)&&(input==6)))&&(a6==1))))&&(a16==10)))&&!(a27==1)))))){ + a1 = 12; + a5 = 4; + a21 = 10; + a9 = 8; + a13 = 0; + a18 = 1; + a16 = 7; + a15 = 0; + a20 = 1; + return 26; + } else if((((((a16==7)&&(!(a12==1)&&((!(a11==1)&&(((input==5)&&((a5==5)||(a5==6)))&&(a27==1)))&&!(a12==1))))&&(a20==1))&&(a19==3))&&((a9==9)&&(!(a28==1)&&((a1==12)&&((a21==11)&&(((a17==2)&&(a11==1))&&(a26==1)))))))){ + a19 = 1; + a1 = 13; + a23 = 0; + a9 = 8; + a4 = 1; + a21 = 10; + a25 = 0; + a5 = 5; + return -1; + } else if(((((a19==5)&&(((((!(a4==1)&&((((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7))))&&(input==4)))&&(a17==2))&&(a12==1))&&(a11==1))&&!(a7==1)))&&(a21==11))&&((a16==7)&&(((a1==12)&&((a18==1)||((a3==1)||(a26==1))))&&!(a20==1))))){ + a16 = 8; + a19 = 2; + a7 = 0; + a9 = 11; + a5 = 4; + a12 = 1; + a20 = 1; + a1 = 14; + a18 = 0; + return 21; + } else if((((a21==12)&&((a1==13)&&((a13==1)&&((a16==7)&&(((input==3)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&!(a8==1))))))&&((a17==2)&&((a24==1)||(!(a7==1)&&(!(a3==1)||((a20==1)&&((a19==3)&&((a3==1)||(a26==1)))))))))){ + a26 = 0; + a21 = 10; + a5 = 4; + a9 = 7; + a14 = 0; + a19 = 1; + a1 = 12; + return -1; + } else if(((((a21==12)&&((a26==1)||((a1==13)&&((((!(a20==1)&&(a23==1))&&(a16==10))&&(a2==1))||(a0==1)))))&&(a17==2))&&((a9==11)&&((a11==1)&&((!(a0==1)&&(!(a7==1)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a19==4)))))){ + if((a12==1)){ + a9 = 9; + a16 = 7; + a14 = 1; + a19 = 2; + a21 = 10; + a20 = 1; + a0 = 1; + a1 = 12; + a5 = 4; + }else{ + a20 = 1; + a19 = 1; + a6 = 0; + a9 = 8; + a25 = 0; + a16 = 7; + a21 = 10; + a18 = 1; + a5 = 4; + } + return 21; + } else if(((!(a26==1)&&((a11==1)&&((((!(a20==1)&&((a1==12)&&((a21==10)&&((((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5)))&&(input==5))&&(a19==4)))))&&(a2==1))&&!(a27==1))&&!(a7==1))))&&(!(a24==1)&&((a16==10)&&((a13==1)&&(a17==2)))))){ + a21 = 12; + a9 = 11; + a19 = 2; + a1 = 14; + a22 = 0; + a5 = 5; + a10 = 1; + return -1; + } else if((((a17==2)&&((a21==12)&&((a19==3)&&((a6==1)&&(!(a8==1)&&(a6==1))))))&&((a20==1)&&(((a1==14)&&((a9==9)&&((!(a7==1)&&((((a16==11)&&(input==3))&&!(a14==1))&&(a13==1)))&&(a5==5))))&&!(a8==1))))){ + a9 = 7; + a21 = 10; + a12 = 1; + a19 = 1; + a7 = 0; + a5 = 4; + a16 = 7; + a1 = 12; + a27 = 0; + return -1; + } else if(((!(a20==1)&&(!(a0==1)&&((a17==2)&&(((a28==1)&&(((a23==1)&&(!(a14==1)&&((((((a1==13)&&(a5==5))&&(a9==7))||(((a9==11)&&((a5==6)&&(a1==12)))||((a9==7)&&((a5==4)&&(a1==13)))))&&(input==4))&&(a3==1))))&&(a19==1)))&&(a28==1)))))&&((a21==10)&&((a12==1)&&(a16==7))))){ + a3 = 1; + a16 = 9; + a9 = 11; + a1 = 13; + a28 = 1; + a5 = 4; + a20 = 1; + return 25; + } else if((((!(a20==1)&&((a2==1)&&((a19==2)&&(((((!(a26==1)&&((input==5)&&(a9==11)))&&!(a4==1))&&(a11==1))&&(a5==5))&&(a1==13)))))&&(a21==11))&&(((((a12==1)&&(a17==2))&&!(a0==1))&&(a16==9))&&(a11==1)))){ + a1 = 14; + a20 = 1; + a19 = 4; + a8 = 1; + a9 = 7; + a21 = 12; + a16 = 7; + a10 = 0; + return 21; + } else if(((!(a24==1)&&((a11==1)&&(((a17==2)&&((a21==12)&&(input==5)))&&(a13==1))))&&(((a18==1)||((a26==1)||((a9==11)&&((((a20==1)&&((a1==13)&&((a16==10)&&(a12==1))))&&(a5==5))&&(a19==2)))))||(a26==1)))){ + if((a4==1)){ + a16 = 8; + a20 = 0; + a9 = 7; + a19 = 3; + a13 = 1; + a21 = 10; + a7 = 0; + a23 = 1; + a5 = 4; + }else{ + a24 = 0; + a18 = 0; + a19 = 4; + a16 = 7; + a9 = 7; + a21 = 10; + a1 = 14; + } + return 25; + } else if((((a19==1)&&((a13==1)&&((a17==2)&&((a23==1)&&((a12==1)&&((((input==6)&&(a16==9))&&(a9==8))&&(a6==1)))))))&&((a5==4)&&(!(a20==1)&&((a21==10)&&((a2==1)&&(!(a18==1)&&((a28==1)&&(a1==13))))))))){ + a3 = 0; + a13 = 0; + a19 = 2; + a20 = 1; + a10 = 1; + a5 = 5; + a9 = 9; + a1 = 12; + a16 = 7; + return -1; + } else if(((((((a3==1)&&(!(a14==1)&&((a9==7)&&((a21==10)&&(input==1)))))&&(a17==2))&&(a19==3))&&(a1==13))&&(!(a20==1)&&((((a24==1)||((((a13==1)||(a27==1))&&(a5==4))||!(a23==1)))||!(a13==1))&&(a16==7))))){ + a16 = 9; + a12 = 1; + a20 = 1; + a5 = 6; + a23 = 1; + a9 = 9; + a1 = 12; + a21 = 12; + return 21; + } else if(((((a1==14)&&(((a3==1)||!(a2==1))||!(a13==1)))&&(a21==11))&&((a19==5)&&((a20==1)&&((!(a26==1)&&(((a17==2)&&(!(a14==1)&&((a16==9)&&(((input==6)&&((a5==5)||(a5==6)))&&(a9==9)))))&&!(a24==1)))&&(a6==1)))))){ + if((a21==11)){ + a7 = 0; + a1 = 12; + a23 = 1; + a19 = 4; + a5 = 5; + a16 = 8; + a20 = 0; + a9 = 8; + }else{ + a3 = 1; + a9 = 10; + a16 = 7; + a24 = 0; + a19 = 2; + a5 = 4; + a12 = 1; + a1 = 13; + a21 = 10; + } + return 21; + } else if(((((a20==1)&&((a16==11)&&(((((a23==1)&&!(a4==1))&&(a17==2))&&(a21==10))&&(a19==5))))||(a27==1))&&((!(a14==1)&&((((a1==12)&&((((a5==5)||(a5==6))&&(input==3))&&(a28==1)))&&(a9==7))&&(a28==1)))&&!(a18==1)))){ + a19 = 1; + a16 = 7; + a18 = 0; + a26 = 0; + a5 = 4; + a28 = 1; + return -1; + } else if((((a27==1)||((a17==2)&&(((((a11==1)&&(a9==9))||!(a11==1))||(a14==1))&&!(a4==1))))&&(((a19==4)&&(((a21==11)&&(((a28==1)&&((a16==7)&&((input==1)&&((a5==5)||(a5==6)))))&&(a2==1)))&&(a1==13)))&&!(a20==1)))){ + a21 = 10; + a9 = 8; + a16 = 9; + a20 = 1; + a19 = 1; + a4 = 0; + a24 = 0; + a1 = 14; + a5 = 6; + return 21; + } else if((((a21==10)&&(((((a14==1)||(!(a13==1)||((a13==1)&&((a9==8)&&((a16==7)&&(a28==1))))))&&!(a7==1))&&(a19==3))&&(a1==12)))&&((a17==2)&&(((a23==1)&&(((input==3)&&((a5==5)||(a5==6)))&&!(a0==1)))&&!(a20==1))))){ + a11 = 1; + a9 = 7; + a5 = 4; + a6 = 1; + a8 = 0; + a19 = 1; + a20 = 1; + return -1; + } else if(((((!(a20==1)&&(((((a13==1)&&(((((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4)))&&(input==1)))&&(a16==10))&&(a21==12))&&(a19==3)))&&!(a8==1))&&!(a14==1))&&(!(a18==1)&&((a23==1)&&((a17==2)&&((a12==1)&&((a12==1)&&(a1==14)))))))){ + a4 = 1; + a21 = 10; + a22 = 1; + a1 = 13; + a12 = 0; + a9 = 7; + a5 = 4; + a19 = 5; + a20 = 1; + a16 = 9; + return 21; + } else if((((a19==3)&&((a17==2)&&(((a28==1)&&!(a20==1))||(a4==1))))&&((a28==1)&&(((a9==11)&&(!(a26==1)&&((((a21==10)&&((a6==1)&&((a28==1)&&(((a5==5)||(a5==6))&&(input==1)))))&&!(a8==1))&&(a16==11))))&&(a1==13))))){ + a20 = 1; + a11 = 0; + a5 = 5; + a19 = 2; + a1 = 12; + a3 = 0; + a9 = 8; + a23 = 0; + a16 = 7; + return 25; + } else if((((a11==1)&&(((a17==2)&&((((input==5)&&((a5==5)||(a5==6)))&&(a16==10))&&(a1==13)))&&(a9==11)))&&((a24==1)||(((a21==10)&&(((((a11==1)&&((a6==1)&&!(a20==1)))||!(a13==1))||!(a13==1))&&(a19==5)))||(a4==1))))){ + a9 = 9; + a5 = 6; + a1 = 12; + a25 = 1; + a12 = 0; + a18 = 1; + a19 = 4; + a21 = 11; + return 21; + } else if((((!(a27==1)&&(((a19==1)&&((a20==1)&&(((input==6)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5))))&&(a16==9))))&&(a17==2)))&&(a6==1))&&(!(a0==1)&&(((((a21==12)&&((a23==1)&&(a12==1)))&&(a1==12))||!(a23==1))&&(a11==1))))){ + a16 = 7; + a8 = 0; + a21 = 10; + a11 = 1; + a9 = 7; + a5 = 4; + a24 = 0; + return -1; + } else if((((((((a19==1)&&((a17==2)&&((a20==1)&&((a27==1)||(a23==1)))))||(a8==1))&&!(a18==1))||(a27==1))&&(a16==8))&&(!(a7==1)&&((((input==1)&&((((a9==11)&&((a5==5)&&(a1==13)))||((a9==11)&&((a1==13)&&(a5==6))))||((a9==7)&&((a5==4)&&(a1==14)))))&&(a21==12))&&(a13==1))))){ + a5 = 5; + a0 = 0; + a21 = 10; + a9 = 10; + a7 = 0; + a19 = 4; + a1 = 13; + a16 = 7; + a8 = 0; + return 25; + } else if(((((a0==1)||(!(a20==1)&&((a19==3)&&((a1==12)&&((a6==1)&&(a21==12))))))&&(a17==2))&&((a12==1)&&((a9==11)&&(((a16==10)&&((a23==1)&&((a2==1)&&((((a5==5)||(a5==6))&&(input==4))&&(a28==1)))))&&(a3==1)))))){ + a19 = 2; + a21 = 10; + a20 = 1; + a26 = 1; + a9 = 10; + a16 = 7; + a10 = 0; + a22 = 0; + a5 = 5; + return 22; + } else if((((((!(a26==1)&&((a13==1)&&(((((input==3)&&((a5==4)||(a5==5)))&&(a21==11))&&(a23==1))&&!(a8==1))))&&!(a20==1))&&(a6==1))&&(a28==1))&&((((a19==1)&&(((a11==1)&&(a16==10))&&(a9==9)))&&(a17==2))&&(a1==14)))){ + a20 = 1; + a1 = 12; + a16 = 7; + a21 = 10; + a5 = 4; + a9 = 10; + a8 = 1; + a29 = 1; + a11 = 0; + return -1; + } else if((((((a16==11)&&((a20==1)&&(a11==1)))&&(a9==11))&&(a17==2))&&(((((a19==3)&&(!(a18==1)&&((!(a26==1)&&((!(a7==1)&&((input==1)&&(a21==10)))&&!(a24==1)))&&!(a0==1))))&&(a1==13))&&(a6==1))&&(a5==4)))){ + a9 = 7; + a1 = 12; + a23 = 1; + a19 = 1; + a16 = 7; + a13 = 1; + a28 = 1; + return -1; + } else if(((((a2==1)&&((((a12==1)&&(((input==1)&&(((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))&&(a19==2)))&&!(a18==1))&&(a21==10)))&&(a12==1))&&(((a3==1)&&(((a16==11)&&(((a28==1)&&(a17==2))&&!(a20==1)))&&!(a4==1)))&&(a1==13)))){ + a22 = 1; + a5 = 5; + a15 = 1; + a20 = 1; + a10 = 0; + a19 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if(((((a5==4)&&(!(a24==1)&&(!(a28==1)||(a11==1))))&&(a19==3))&&(((!(a8==1)&&(((a2==1)&&(((a16==9)&&(!(a26==1)&&(((a1==14)&&(input==6))&&(a3==1))))&&(a21==10)))&&(a20==1)))&&(a17==2))&&(a9==7)))){ + a19 = 2; + a1 = 12; + a9 = 11; + a5 = 5; + a16 = 11; + a26 = 0; + a0 = 0; + a2 = 1; + return 21; + } else if(((((a4==1)||(!(a2==1)||(!(a28==1)||((!(a14==1)&&((a23==1)&&(a12==1)))&&(a20==1)))))&&(a21==12))&&((a1==14)&&((a19==2)&&(!(a4==1)&&((a16==11)&&((a17==2)&&(((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5)))&&(input==5))))))))){ + a1 = 12; + a7 = 0; + a9 = 7; + a2 = 1; + a16 = 7; + a5 = 4; + a21 = 10; + a6 = 1; + a19 = 1; + return -1; + } else if((((a9==7)&&((a20==1)&&((((!(a27==1)&&(a3==1))||!(a23==1))&&(a1==12))&&(a21==10))))&&((a17==2)&&(((((((((a5==4)||(a5==5))&&(input==4))&&(a13==1))&&(a19==4))&&(a2==1))&&!(a8==1))&&!(a18==1))&&(a16==9))))){ + a5 = 4; + a6 = 1; + a4 = 0; + a16 = 7; + a11 = 1; + a19 = 1; + return -1; + } else if(((((!(a20==1)&&((a21==10)&&(((((a2==1)&&(a17==2))||(a26==1))&&!(a26==1))||(a4==1))))&&(a28==1))&&(a28==1))&&((!(a26==1)&&((a19==5)&&((a16==10)&&((a5==5)&&((input==6)&&(a1==13))))))&&(a9==9)))){ + if((a7==1)){ + a22 = 0; + a13 = 0; + a16 = 9; + a15 = 0; + a19 = 4; + a5 = 4; + a9 = 8; + }else{ + a16 = 7; + a5 = 6; + a20 = 1; + a15 = 0; + a19 = 1; + a11 = 0; + a0 = 1; + } + return -1; + } else if((((((a17==2)&&(((((input==6)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10))))&&(a2==1))&&(a19==5))&&!(a20==1)))&&!(a8==1))&&!(a4==1))&&((!(a6==1)||(!(a3==1)||(((a16==10)&&((a21==10)&&(a11==1)))&&(a1==13))))&&(a28==1)))){ + a9 = 7; + a20 = 1; + a29 = 1; + a5 = 6; + a16 = 7; + a1 = 12; + a6 = 0; + a19 = 1; + a15 = 0; + return 25; + } else if((((a20==1)&&((((!(a24==1)&&(a6==1))&&(a1==13))&&!(a26==1))||!(a28==1)))&&((a17==2)&&((((((a2==1)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&(a16==8))&&(a19==1)))&&(a21==11))&&(a9==10))&&!(a0==1))&&!(a26==1))))){ + a9 = 8; + a18 = 0; + a5 = 5; + a28 = 1; + return -1; + } else if((((a1==14)&&(((a21==10)&&((a19==5)&&(((a13==1)&&(!(a4==1)&&((a12==1)&&(!(a8==1)&&(((input==3)&&((a5==5)||(a5==6)))&&!(a14==1))))))&&(a16==8))))&&(a17==2)))&&(((a9==9)&&((a12==1)&&(a12==1)))&&!(a20==1)))){ + a16 = 7; + a8 = 0; + a5 = 6; + a19 = 2; + a9 = 7; + a0 = 0; + a11 = 1; + a20 = 1; + a1 = 13; + return 22; + } else if((((a1==14)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&!(a8==1))&&(a12==1)))&&(!(a18==1)&&((a24==1)||((a17==2)&&((a19==5)&&((a6==1)&&(((((a21==11)&&((a6==1)&&!(a20==1)))&&(a16==7))&&(a9==7))&&(a23==1))))))))){ + a21 = 10; + a5 = 4; + a26 = 0; + a20 = 1; + a23 = 1; + a19 = 1; + a1 = 12; + return -1; + } else if(((!(a27==1)&&(((a1==14)&&(((a21==10)&&((a19==2)&&((((input==6)&&(a17==2))&&(a20==1))&&(a16==8))))&&(a12==1)))&&(a3==1)))&&(!(a12==1)||((a11==1)&&((a5==4)&&((a9==7)&&((a11==1)&&(a3==1)))))))){ + a21 = 12; + a8 = 0; + a16 = 9; + a28 = 1; + a9 = 10; + a5 = 5; + a7 = 0; + a19 = 3; + return 21; + } else if((((a17==2)&&(((a5==6)&&((a13==1)&&((((a2==1)&&(a11==1))&&!(a8==1))&&(a16==7))))&&(a21==11)))&&((((((((input==5)&&(a20==1))&&!(a8==1))&&(a1==13))&&!(a4==1))&&!(a8==1))&&(a19==3))&&(a9==9)))){ + a23 = 1; + a16 = 8; + a26 = 0; + a1 = 12; + a18 = 0; + a19 = 1; + return 25; + } else if(((!(a8==1)&&(!(a27==1)&&((a20==1)&&(((a28==1)&&((a9==10)&&((a21==11)&&(((a6==1)&&(((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&(a17==2)))&&(a6==1)))))&&(a19==1)))))&&(((a28==1)&&((a16==8)&&(a2==1)))&&(a1==13)))){ + a24 = 0; + a1 = 12; + a9 = 7; + a5 = 4; + a21 = 10; + a16 = 7; + a27 = 0; + a8 = 0; + return -1; + } else if((((a20==1)&&((a5==6)&&(((a21==12)&&(((((a4==1)||(a12==1))&&(a6==1))&&(a23==1))&&(a19==1)))&&(a16==8))))&&(((((a23==1)&&(((input==1)&&(a9==8))&&!(a27==1)))&&(a13==1))&&(a17==2))&&(a1==14)))){ + a18 = 0; + a6 = 1; + a21 = 11; + a16 = 10; + a12 = 1; + a5 = 4; + a9 = 7; + a19 = 5; + return 22; + } else if(((!(a27==1)&&(((a12==1)&&((((((a1==13)&&(a5==5))&&(a9==7))||(((a9==11)&&((a5==6)&&(a1==12)))||(((a1==13)&&(a5==4))&&(a9==7))))&&(input==1))&&(a16==8)))&&(a19==1)))&&(((a2==1)&&((a12==1)&&((a17==2)&&(((a20==1)&&((a23==1)&&(a23==1)))&&(a21==10)))))&&(a2==1)))){ + a23 = 1; + a4 = 0; + a27 = 0; + a9 = 7; + a1 = 12; + a5 = 4; + a16 = 7; + return -1; + } else if((((a16==8)&&((!(a7==1)&&(((a1==12)&&((((!(a20==1)&&(((input==3)&&((((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))||((a5==4)&&(a9==10))))&&(a19==4)))&&!(a8==1))&&(a21==10))&&!(a4==1)))&&(a11==1)))&&(a23==1)))&&(((a28==1)&&(a17==2))&&(a28==1)))){ + a9 = 7; + a20 = 1; + a8 = 0; + a16 = 7; + a2 = 1; + a19 = 1; + a5 = 4; + a7 = 0; + return -1; + } else if(((((a16==11)&&(!(a4==1)&&((((input==5)&&(a9==11))&&(a19==5))&&(a2==1))))&&(a3==1))&&(((((a1==13)&&((!(a7==1)&&(((a3==1)&&(a20==1))&&(a5==6)))&&(a17==2)))&&(a21==11))&&(a23==1))&&!(a18==1)))){ + a1 = 12; + a9 = 7; + a12 = 1; + a5 = 4; + a16 = 7; + a3 = 1; + a19 = 1; + a26 = 0; + a21 = 10; + return -1; + } else if(((((a21==10)&&(!(a26==1)&&(((((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&(input==5))&&(a6==1))))&&(a1==13))&&((a17==2)&&(((a19==2)&&((!(a4==1)&&((!(a20==1)&&((a16==8)&&(a13==1)))||(a8==1)))&&(a6==1)))||!(a6==1))))){ + a9 = 7; + a16 = 11; + a20 = 1; + a11 = 1; + a19 = 1; + a5 = 4; + a21 = 11; + a7 = 0; + return 22; + } else if((((((a2==1)&&((a0==1)||(((a2==1)||(a4==1))||(a8==1))))&&(a5==4))&&(a21==10))&&((((a9==7)&&(((!(a4==1)&&((a20==1)&&((a16==10)&&(input==6))))&&(a19==1))&&(a12==1)))&&(a17==2))&&(a1==14)))){ + a9 = 10; + a13 = 1; + a16 = 7; + a14 = 0; + a27 = 0; + a19 = 3; + a5 = 6; + return -1; + } else if((((a17==2)&&((a4==1)||(!(a3==1)||(((a24==1)||(a11==1))&&!(a7==1)))))&&((((a19==4)&&((a21==12)&&((!(a27==1)&&((a12==1)&&(((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10)))&&(input==1))))&&(a16==9))))&&!(a20==1))&&(a1==14)))){ + a1 = 12; + a14 = 1; + a10 = 0; + a19 = 2; + a5 = 6; + a20 = 1; + a27 = 1; + a16 = 7; + a9 = 11; + a21 = 10; + return 25; + } else if((((a21==12)&&(((!(a2==1)||((a1==12)&&((a4==1)||(a28==1))))||(a26==1))&&(a17==2)))&&((a6==1)&&((a20==1)&&(((a19==2)&&((((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==4))&&!(a24==1))&&(a16==9)))&&(a11==1)))))){ + a9 = 7; + a5 = 4; + a13 = 1; + a16 = 7; + a21 = 10; + a26 = 0; + a23 = 1; + a19 = 1; + return -1; + } else if((((((((a20==1)&&(((((input==5)&&(a5==4))&&(a28==1))&&(a21==12))&&(a28==1)))&&(a9==9))&&!(a27==1))&&!(a27==1))&&(a23==1))&&(((a16==9)&&(((a19==5)&&((a2==1)&&!(a0==1)))&&(a1==14)))&&(a17==2)))){ + a19 = 1; + a7 = 0; + a28 = 1; + a16 = 7; + a1 = 12; + a9 = 7; + a21 = 10; + a0 = 0; + return -1; + } else if((((((!(a14==1)&&(!(a24==1)&&(!(a26==1)&&((input==5)&&(a1==13)))))&&(a6==1))&&(a16==11))&&(a17==2))&&((a19==5)&&(((a21==12)&&(!(a23==1)||(!(a2==1)||(((a13==1)&&(a20==1))&&(a9==8)))))&&(a5==4))))){ + if((a22==1)){ + a24 = 0; + a1 = 14; + a0 = 0; + a9 = 10; + a20 = 0; + a21 = 10; + a16 = 8; + a19 = 4; + a3 = 1; + }else{ + a6 = 1; + a21 = 11; + a9 = 10; + a7 = 0; + a19 = 2; + a1 = 14; + a16 = 9; + a11 = 1; + a5 = 5; + } + return 21; + } else if((((!(a0==1)&&((((a28==1)&&(a11==1))&&(a11==1))&&(a19==2)))&&(a9==8))&&(((a17==2)&&((a5==4)&&((a13==1)&&((((((input==5)&&(a21==10))&&(a16==9))&&(a12==1))&&(a1==14))&&!(a4==1)))))&&(a20==1)))){ + a2 = 1; + a9 = 10; + a19 = 3; + a11 = 1; + a21 = 12; + a24 = 0; + a5 = 5; + a1 = 12; + return 21; + } else if(((((((a16==10)&&((((((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10))))&&(input==6))&&!(a20==1))&&(a13==1)))&&!(a0==1))&&!(a27==1))&&(a2==1))&&((((a21==12)&&((a19==1)&&((a17==2)&&((a1==13)&&(a13==1)))))&&!(a8==1))&&!(a14==1)))){ + if((a8==1)){ + a5 = 6; + a22 = 0; + a9 = 11; + a21 = 10; + a29 = 0; + a10 = 1; + a16 = 7; + a20 = 1; + }else{ + a16 = 7; + a5 = 5; + a22 = 0; + a1 = 12; + a10 = 0; + a21 = 11; + a19 = 2; + a9 = 9; + a4 = 1; + } + return -1; + } else if((((!(a20==1)&&((a4==1)||((a6==1)&&((a2==1)&&(a21==12)))))&&(a1==14))&&((a19==1)&&((a16==8)&&(((((a17==2)&&(!(a26==1)&&((((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(input==1))))&&!(a8==1))&&(a3==1))&&(a2==1)))))){ + a25 = 1; + a15 = 0; + a14 = 1; + a9 = 7; + a16 = 10; + a5 = 5; + a21 = 10; + a20 = 1; + a19 = 3; + return 22; + } else if(((!(a7==1)&&(!(a11==1)||(!(a11==1)||((a16==7)&&(a28==1)))))&&(((((a20==1)&&((a21==11)&&(!(a26==1)&&(((input==6)&&((((a1==13)&&(a5==6))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==14)))))&&(a13==1)))))&&!(a7==1))&&(a19==5))&&(a17==2)))){ + a8 = 0; + a21 = 12; + a1 = 12; + a16 = 8; + a18 = 0; + a19 = 3; + a5 = 6; + a2 = 1; + a9 = 8; + return 25; + } else if((((a2==1)&&((((a1==12)&&((a28==1)||(a27==1)))&&(a16==10))&&(a21==10)))&&(!(a7==1)&&((a23==1)&&((a19==4)&&(((a20==1)&&(!(a27==1)&&(((input==5)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5))))&&(a17==2))))&&(a11==1))))))){ + if((a11==1)){ + a20 = 0; + a19 = 5; + a27 = 0; + a21 = 11; + a9 = 10; + a16 = 8; + a7 = 0; + a5 = 5; + }else{ + a9 = 11; + a27 = 0; + a19 = 1; + a1 = 13; + a5 = 4; + a2 = 1; + a14 = 0; + } + return 21; + } else if(((((((a21==10)&&(((a12==1)&&!(a7==1))&&(a28==1)))||!(a28==1))||(a27==1))&&(a1==14))&&((a9==9)&&((a16==10)&&((a17==2)&&((a20==1)&&((a11==1)&&((((input==1)&&((a5==5)||(a5==6)))&&(a19==2))&&(a28==1))))))))){ + a16 = 7; + a12 = 1; + a19 = 1; + a24 = 0; + a1 = 12; + a8 = 0; + a5 = 4; + a9 = 7; + return -1; + } else if((((((a23==1)&&((a28==1)&&((a9==7)&&((a3==1)&&(a1==14)))))&&(a20==1))||!(a2==1))&&(!(a4==1)&&((a16==8)&&((((((a17==2)&&((input==3)&&((a5==5)||(a5==6))))&&(a19==4))&&(a6==1))&&(a21==11))&&(a3==1)))))){ + a18 = 0; + a16 = 7; + a5 = 4; + a21 = 10; + a19 = 1; + a11 = 1; + a1 = 12; + return -1; + } else if((((((a28==1)&&((a2==1)&&(a16==9)))&&!(a20==1))&&(a17==2))&&((a19==5)&&((a1==14)&&((a21==10)&&((((a2==1)&&((((input==6)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&!(a14==1))&&!(a7==1)))&&(a2==1))&&!(a24==1))))))){ + if((a5==5)){ + a25 = 1; + a19 = 2; + a23 = 0; + a16 = 7; + a9 = 11; + a5 = 4; + a7 = 1; + a20 = 1; + a1 = 12; + }else{ + a20 = 1; + a21 = 12; + a19 = 3; + a9 = 8; + a25 = 0; + a1 = 12; + a5 = 6; + a14 = 1; + } + return 23; + } else if(((!(a8==1)&&((a17==2)&&(((a3==1)&&(((((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6))))&&(input==6))&&(a16==11)))&&(a20==1))))&&(!(a2==1)||(((a27==1)||(((((a1==12)&&(a13==1))||(a26==1))&&(a21==10))&&(a19==4)))||(a7==1))))){ + a3 = 1; + a13 = 1; + a5 = 4; + a9 = 11; + a16 = 7; + a19 = 3; + a27 = 0; + return 23; + } else if((((!(a24==1)&&((((a19==3)&&(((a5==4)||(a5==5))&&(input==6)))&&(a12==1))&&(a21==12)))&&(a2==1))&&(!(a24==1)&&((a9==10)&&(!(a20==1)&&((a1==14)&&(((a17==2)&&((a4==1)||(!(a26==1)&&(a3==1))))&&(a16==9)))))))){ + a2 = 0; + a9 = 8; + a1 = 13; + a13 = 0; + a19 = 1; + a16 = 7; + a20 = 1; + a8 = 1; + a21 = 10; + a5 = 6; + return 22; + } else if((((!(a18==1)&&((((a1==13)&&((a17==2)&&(a6==1)))&&!(a0==1))||!(a6==1)))&&(a9==10))&&(((a28==1)&&((!(a20==1)&&((a12==1)&&((((input==5)&&((a5==4)||(a5==5)))&&(a19==4))&&(a16==11))))&&!(a24==1)))&&(a21==10)))){ + if((a28==1)){ + a21 = 11; + a18 = 1; + a5 = 6; + a22 = 1; + a6 = 0; + a1 = 14; + a16 = 7; + a9 = 11; + }else{ + a21 = 11; + a1 = 12; + a11 = 0; + a26 = 1; + a15 = 0; + a5 = 4; + a9 = 8; + a19 = 1; + a16 = 10; + } + return -1; + } else if((((a9==8)&&((a1==14)&&((a21==10)&&(((!(a27==1)&&(a2==1))&&(a12==1))&&(a5==4)))))&&((a17==2)&&(((((a16==9)&&((a20==1)&&(!(a14==1)&&((a19==4)&&(input==6)))))&&(a13==1))&&(a23==1))&&!(a4==1))))){ + a19 = 1; + a13 = 1; + a9 = 7; + a12 = 1; + a16 = 7; + a1 = 12; + return -1; + } else if((((a27==1)||(!(a0==1)&&((a3==1)&&((a27==1)||((!(a20==1)&&(a6==1))&&(a17==2))))))&&(!(a4==1)&&(((a1==14)&&((a13==1)&&(((((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a9==8))&&(a21==11))&&(a16==7))))&&(a19==3))))){ + a5 = 4; + a1 = 12; + a11 = 1; + a19 = 1; + a27 = 0; + a20 = 1; + a7 = 0; + a9 = 7; + a21 = 10; + return -1; + } else if(((((a2==1)&&(!(a2==1)||((((a3==1)&&(a21==11))&&(a13==1))||!(a12==1))))&&(a17==2))&&((a5==5)&&(((((a1==12)&&((a16==7)&&(!(a26==1)&&((a9==7)&&(input==3)))))&&(a6==1))&&(a19==2))&&(a20==1))))){ + a3 = 1; + a21 = 10; + a19 = 1; + a13 = 1; + a5 = 4; + return -1; + } else if(((!(a11==1)&&(((a16==7)&&((((a21==10)&&((a1==13)&&(a3==1)))&&(a9==9))&&!(a13==1)))&&(a8==1)))&&(!(a3==1)&&((a18==1)&&((((((input==3)&&((a5==5)||(a5==6)))&&(a17==2))&&(a19==2))&&!(a20==1))&&!(a13==1)))))){ + a5 = 4; + a20 = 1; + a16 = 10; + a9 = 8; + a18 = 1; + a26 = 1; + a2 = 0; + return -1; + } else if((((a20==1)&&(!(a18==1)&&((a16==10)&&((a21==12)&&(!(a27==1)&&(a2==1))))))&&((!(a7==1)&&(!(a24==1)&&((((((((a9==11)&&((a5==5)&&(a1==14)))&&(a19==3))||((a19==3)&&((a9==11)&&((a1==14)&&(a5==6)))))||((a19==4)&&(((a5==4)&&(a1==12))&&(a9==7))))&&(input==5))&&!(a27==1))&&!(a27==1))))&&(a17==2)))){ + a9 = 7; + a11 = 1; + a5 = 4; + a21 = 10; + a8 = 0; + a16 = 7; + a13 = 1; + a19 = 1; + a1 = 12; + return -1; + } else if((((((a14==1)||(!(a2==1)||(((a9==7)&&(((a17==2)&&(a6==1))&&!(a24==1)))&&(a20==1))))&&(a21==12))&&(a19==3))&&((((!(a8==1)&&(((input==3)&&(a5==6))&&!(a26==1)))&&(a16==9))&&(a2==1))&&(a1==14)))){ + a2 = 1; + a19 = 1; + a1 = 12; + a21 = 10; + a18 = 0; + a5 = 4; + a0 = 0; + a16 = 7; + return -1; + } else if(((((a19==4)&&(((((a6==1)&&(a1==14))||(a26==1))&&(a12==1))&&!(a8==1)))&&!(a20==1))&&((((!(a4==1)&&(((((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4)))&&(input==4))&&!(a24==1))&&(a21==10)))&&(a17==2))&&!(a14==1))&&(a16==7)))){ + a14 = 0; + a19 = 1; + a9 = 7; + a1 = 12; + a5 = 4; + a20 = 1; + a11 = 1; + return -1; + } else if((((a3==1)&&(((a19==3)&&((a21==10)&&((((a5==5)||(a5==6))&&(input==4))&&!(a27==1))))&&(a9==8)))&&(!(a8==1)&&((a16==10)&&((a17==2)&&(!(a20==1)&&((a1==14)&&((a23==1)&&(((a2==1)||(a14==1))||(a18==1)))))))))){ + if((a8==1)){ + a9 = 11; + a0 = 1; + a15 = 0; + a21 = 12; + a5 = 5; + a16 = 7; + a19 = 4; + a1 = 13; + a22 = 1; + }else{ + a20 = 1; + a2 = 0; + a5 = 6; + a16 = 7; + a15 = 0; + a19 = 1; + a22 = 0; + } + return -1; + } else if((((a16==7)&&((a3==1)&&(((a11==1)&&((a21==12)&&((((input==4)&&((a5==5)||(a5==6)))&&(a17==2))&&!(a27==1))))&&(a2==1))))&&((a20==1)&&((a1==13)&&(!(a14==1)&&((a9==10)&&((!(a8==1)&&(a2==1))&&(a19==5)))))))){ + a26 = 0; + a18 = 0; + a9 = 8; + a24 = 0; + a16 = 9; + a1 = 14; + a5 = 4; + a21 = 11; + return 26; + } else if((((!(a8==1)&&((a21==11)&&((a16==10)&&(((a9==10)&&((a1==13)&&((a23==1)&&!(a8==1))))&&(a17==2)))))&&!(a14==1))&&(!(a18==1)&&(!(a7==1)&&(!(a7==1)&&((a20==1)&&(((input==4)&&((a5==5)||(a5==6)))&&(a19==3)))))))){ + a5 = 4; + a11 = 1; + a1 = 12; + a19 = 1; + a9 = 7; + a0 = 0; + a24 = 0; + a16 = 7; + a21 = 10; + return -1; + } else if((((((((a1==14)&&(!(a14==1)&&((a21==11)&&((input==3)&&((a5==5)||(a5==6))))))&&(a16==10))&&(a17==2))&&!(a27==1))&&(a28==1))&&(((a20==1)&&((!(a2==1)||(((a28==1)&&(a9==7))&&(a3==1)))&&(a19==3)))||!(a12==1)))){ + a19 = 1; + a16 = 7; + a3 = 1; + a21 = 10; + a5 = 4; + a1 = 12; + a7 = 0; + return -1; + } else if(((!(a4==1)&&((a21==11)&&((a16==7)&&(((a1==12)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==3)))&&!(a14==1)))))&&((((((((a2==1)&&(a19==1))&&(a17==2))&&!(a20==1))&&!(a14==1))&&!(a27==1))&&!(a8==1))&&!(a0==1)))){ + a21 = 10; + a3 = 1; + a5 = 4; + a26 = 0; + a9 = 7; + a0 = 0; + a20 = 1; + return -1; + } else if(((((((!(a8==1)&&(((((input==6)&&(a5==6))&&(a2==1))&&(a28==1))&&(a3==1)))&&!(a14==1))&&(a17==2))&&(a9==10))&&(a19==5))&&((a1==13)&&((!(a20==1)&&((a16==10)&&((a14==1)||(a12==1))))&&(a21==12))))){ + a25 = 0; + a1 = 14; + a9 = 11; + a21 = 10; + a20 = 1; + a23 = 0; + a18 = 1; + a16 = 11; + a19 = 2; + return -1; + } else if((((((a9==8)&&((!(a7==1)&&((a17==2)&&(((a5==4)||(a5==5))&&(input==5))))&&(a2==1)))&&!(a26==1))&&!(a20==1))&&((a21==12)&&((((a2==1)&&((a1==14)&&(!(a7==1)&&((a13==1)&&!(a4==1)))))&&(a19==5))&&(a16==9))))){ + if((a17==3)){ + a5 = 5; + a21 = 11; + a20 = 1; + a18 = 1; + a16 = 10; + a10 = 1; + a28 = 0; + a1 = 12; + }else{ + a16 = 7; + a5 = 5; + a1 = 12; + a20 = 1; + a9 = 7; + a2 = 0; + a0 = 1; + a28 = 0; + a19 = 1; + a21 = 10; + } + return 21; + } else if(((((a19==3)&&((((a17==2)&&(a13==1))||(a14==1))&&(a1==13)))||!(a12==1))&&(((a3==1)&&((a23==1)&&((a16==8)&&(((a21==12)&&(!(a20==1)&&(!(a8==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5)))))&&(a9==11)))))&&!(a26==1)))){ + if((a26==1)){ + a20 = 1; + a25 = 0; + a5 = 4; + a0 = 1; + a21 = 10; + a16 = 11; + }else{ + a14 = 1; + a20 = 1; + a9 = 9; + a15 = 0; + a28 = 0; + a5 = 5; + a21 = 10; + } + return 21; + } else if((((((a1==14)&&(!(a23==1)&&((a21==11)&&((((a16==10)&&((input==3)&&((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10)))))&&(a19==4))&&(a20==1)))))&&!(a3==1))&&!(a11==1))&&(((a0==1)&&(((a2==1)&&(a17==2))&&!(a23==1)))&&!(a3==1)))){ + a1 = 12; + a16 = 7; + a4 = 1; + a21 = 12; + a18 = 1; + a19 = 1; + a5 = 4; + a9 = 9; + return 21; + } else if(((!(a2==1)||(((a3==1)&&((a16==7)&&((a3==1)&&(a20==1))))||(a24==1)))&&((((((a19==2)&&(((a17==2)&&((((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==5)))&&(a12==1)))&&(a1==14))&&(a21==12))&&(a3==1))&&(a6==1)))){ + a16 = 9; + a9 = 10; + a5 = 6; + a2 = 1; + a1 = 12; + a6 = 1; + a18 = 0; + a19 = 4; + a21 = 10; + return 22; + } else if((((a2==1)&&(((((((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6))))&&(input==6))&&!(a14==1))&&(a17==2))&&!(a24==1)))&&((a21==12)&&((a18==1)||(((a1==14)&&(((a16==7)&&(((a24==1)||(a28==1))&&!(a20==1)))||!(a28==1)))&&(a19==4)))))){ + a1 = 13; + a9 = 11; + a8 = 0; + a20 = 1; + a0 = 0; + a5 = 5; + a19 = 1; + a12 = 1; + a16 = 9; + return 21; + } else if((((a1==14)&&(((a16==10)&&((((a17==2)&&((((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(input==5)))&&(a18==1))&&(a18==1)))&&(a21==10)))&&((a20==1)&&(((!(a11==1)&&(((a28==1)&&(a4==1))&&!(a3==1)))&&!(a3==1))&&(a19==5))))){ + a5 = 6; + a10 = 1; + a15 = 0; + a9 = 9; + a16 = 8; + a21 = 11; + a19 = 4; + return 26; + } else if(((((a18==1)||((a20==1)&&(!(a14==1)&&((!(a23==1)||((a28==1)||(a8==1)))&&(a21==11)))))&&!(a7==1))&&((((((a19==2)&&((input==6)&&((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10)))))&&(a1==12))&&(a6==1))&&(a17==2))&&(a16==8)))){ + a21 = 10; + a13 = 1; + a27 = 0; + a5 = 4; + a0 = 0; + a9 = 7; + a16 = 7; + a19 = 1; + return -1; + } else if(((((a13==1)&&((a18==1)||((a12==1)&&(((a2==1)&&(a19==4))&&(a20==1)))))&&(a17==2))&&((a21==10)&&(((!(a24==1)&&((a16==9)&&(((input==4)&&((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4))))&&!(a24==1))))&&(a1==14))&&(a23==1))))){ + a16 = 7; + a5 = 4; + a6 = 1; + a28 = 1; + a24 = 0; + a9 = 7; + a19 = 1; + a1 = 12; + return -1; + } else if(((((a17==2)&&(((a13==1)&&!(a14==1))&&(a16==7)))&&(a1==13))&&((((!(a26==1)&&((a19==3)&&((!(a20==1)&&((a21==12)&&((input==1)&&(((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))))&&!(a18==1))))&&(a13==1))&&(a12==1))&&!(a0==1)))){ + a19 = 1; + a21 = 10; + a1 = 12; + a20 = 1; + a8 = 0; + a5 = 4; + a9 = 7; + a3 = 1; + a23 = 1; + return -1; + } else if((((a16==11)&&((a19==1)&&((a1==14)&&((a21==11)&&((a9==10)&&((a17==2)&&(input==4)))))))&&((a20==1)&&((a12==1)&&((a3==1)&&((a27==1)||(!(a2==1)||((((a12==1)||(a7==1))&&(a12==1))&&(a5==6))))))))){ + a21 = 10; + a9 = 7; + a1 = 12; + a5 = 4; + a26 = 0; + a16 = 7; + a2 = 1; + a23 = 1; + return -1; + } else if((((a21==12)&&(((a28==1)&&((((input==3)&&((a5==4)||(a5==5)))&&(a11==1))&&(a16==7)))&&!(a27==1)))&&((a9==9)&&((a19==5)&&((a17==2)&&((a20==1)&&(!(a23==1)||((a1==13)&&(!(a26==1)&&(!(a28==1)||(a12==1))))))))))){ + a5 = 4; + a9 = 7; + a3 = 1; + a21 = 10; + a24 = 0; + a1 = 12; + a19 = 1; + return -1; + } else if(((((a16==8)&&((a7==1)||(((a26==1)||(((a11==1)&&(a28==1))&&!(a24==1)))&&!(a27==1))))&&(a9==9))&&(((a1==13)&&((a11==1)&&((a17==2)&&((a19==1)&&((((a5==5)||(a5==6))&&(input==1))&&(a21==10))))))&&(a20==1)))){ + a16 = 7; + a1 = 12; + a14 = 0; + a5 = 4; + a8 = 0; + a3 = 1; + a9 = 7; + return -1; + } else if((((a5==4)&&(!(a7==1)&&(((a9==7)&&((((input==5)&&(a16==10))&&!(a20==1))&&(a21==12)))&&(a1==12))))&&(!(a2==1)||((((a19==4)&&(((a17==2)&&((a11==1)&&!(a24==1)))&&!(a8==1)))&&!(a18==1))||(a24==1))))){ + a19 = 2; + a20 = 1; + a16 = 7; + a21 = 10; + a18 = 1; + a0 = 1; + a9 = 8; + a28 = 0; + return -1; + } else if(((((a1==13)&&((a21==12)&&(((((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10)))&&(input==4))&&(a3==1))&&(a13==1))))&&(a19==2))&&(((!(a13==1)||(((!(a20==1)&&((a17==2)&&(a2==1)))||!(a12==1))||!(a3==1)))||!(a2==1))&&(a16==8)))){ + if((a0==1)){ + a21 = 10; + a5 = 5; + a18 = 1; + a11 = 0; + a1 = 12; + a20 = 1; + a8 = 1; + a9 = 7; + a16 = 7; + }else{ + a20 = 1; + a9 = 8; + a16 = 7; + a1 = 12; + a13 = 0; + a10 = 1; + a5 = 4; + a22 = 1; + a21 = 10; + } + return -1; + } else if(((!(a3==1)||((!(a13==1)||((a8==1)||((a21==11)&&((a5==6)&&(a23==1)))))||!(a11==1)))&&((((a19==3)&&(((a16==9)&&((a20==1)&&(((input==6)&&(a17==2))&&(a9==10))))&&(a1==14)))&&!(a7==1))&&(a23==1)))){ + a19 = 1; + a1 = 12; + a13 = 1; + a5 = 4; + a16 = 7; + a4 = 0; + a9 = 7; + a21 = 10; + return -1; + } else if(((((((a20==1)&&(((((input==6)&&(a1==14))&&(a6==1))&&(a17==2))&&(a12==1)))&&(a19==2))&&!(a0==1))&&(a16==10))&&(((a9==10)&&(!(a8==1)&&((!(a4==1)&&((a2==1)&&(a5==5)))||(a24==1))))&&(a21==12)))){ + a14 = 0; + a16 = 9; + a11 = 1; + a9 = 11; + a19 = 5; + a23 = 1; + a21 = 11; + a1 = 12; + a5 = 4; + return 21; + } else if(((!(a0==1)&&((a1==12)&&((!(a7==1)&&(a2==1))&&(a21==10))))&&((((((a23==1)&&((a17==2)&&(((a19==5)&&(!(a26==1)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a23==1))))&&(a9==7))&&(a13==1))&&(a20==1))&&(a16==10)))){ + a9 = 9; + a12 = 1; + a1 = 13; + a19 = 2; + a5 = 6; + a11 = 1; + a16 = 7; + a28 = 1; + return 26; + } else if((((a5==4)&&((((a12==1)&&(a1==14))&&!(a4==1))||(a24==1)))&&((((!(a0==1)&&((a19==2)&&(((a16==8)&&((a17==2)&&((a11==1)&&((input==5)&&!(a20==1)))))&&!(a26==1))))&&(a2==1))&&(a9==11))&&(a21==10)))){ + a27 = 0; + a1 = 12; + a19 = 5; + a20 = 1; + a6 = 1; + a9 = 9; + a11 = 1; + return -1; + } else if((((!(a27==1)&&(!(a6==1)||((a17==2)&&((a19==2)&&(((!(a20==1)&&(a6==1))&&!(a18==1))||!(a13==1))))))&&(a2==1))&&(((((a1==14)&&((a16==9)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5))))&&!(a4==1))&&(a21==10))&&(a9==11)))){ + a9 = 10; + a28 = 0; + a16 = 7; + a20 = 1; + a19 = 1; + a11 = 0; + a13 = 0; + a5 = 5; + return 21; + } else if((((a17==2)&&(((a1==12)&&((a19==4)&&(((a16==11)&&((a9==9)&&((a6==1)&&(a13==1))))||!(a23==1))))&&!(a4==1)))&&((a23==1)&&(((((a20==1)&&((input==4)&&(a5==4)))&&(a13==1))&&(a21==10))&&(a6==1))))){ + a9 = 7; + a6 = 1; + a23 = 1; + a27 = 0; + a19 = 1; + a16 = 7; + return -1; + } else if((((a14==1)&&(((a16==8)&&(((a18==1)&&(((a27==1)&&(((((a19==3)&&(((a5==5)&&(a1==12))&&(a9==7)))||(((((a5==6)&&(a1==14))&&(a9==11))&&(a19==2))||(((a9==7)&&((a1==12)&&(a5==4)))&&(a19==3))))&&(input==4))&&(a27==1)))&&(a14==1)))&&(a21==11)))&&!(a3==1)))&&((!(a20==1)&&(a23==1))&&(a17==2)))){ + a1 = 12; + a9 = 10; + a26 = 1; + a21 = 10; + a23 = 0; + a16 = 7; + a19 = 1; + a5 = 4; + a20 = 1; + a11 = 0; + return -1; + } else if((((((a7==1)&&(((a21==10)&&(!(a12==1)&&((((input==3)&&(a9==11))&&(a19==3))&&(a7==1))))&&(a17==2)))&&(a20==1))&&!(a12==1))&&((a16==11)&&(!(a28==1)&&((((a3==1)&&!(a28==1))&&(a5==5))&&(a1==12)))))){ + a10 = 0; + a21 = 11; + a13 = 0; + a1 = 14; + a16 = 7; + a7 = 1; + return -1; + } else if((((a6==1)&&((a1==12)&&((a6==1)&&((a11==1)&&(a21==10)))))&&((a9==10)&&((a11==1)&&((a16==9)&&(!(a18==1)&&((a3==1)&&((a3==1)&&((a17==2)&&(!(a20==1)&&(((a19==3)&&(input==4))&&(a5==6)))))))))))){ + if((a1==14)){ + a19 = 5; + a6 = 0; + a5 = 4; + a20 = 1; + a1 = 14; + a21 = 11; + a0 = 1; + a24 = 1; + }else{ + a20 = 1; + a9 = 7; + a2 = 0; + a19 = 2; + a23 = 0; + a21 = 11; + a27 = 1; + } + return 23; + } else if((((a6==1)&&((((a3==1)&&(((a5==6)&&(((input==6)&&(a9==7))&&!(a4==1)))&&(a19==2)))&&!(a8==1))&&!(a20==1)))&&((a17==2)&&(!(a6==1)||((a16==7)&&((a21==12)&&(((a23==1)||!(a23==1))&&(a1==12)))))))){ + a7 = 0; + a5 = 5; + a20 = 1; + a2 = 1; + a12 = 1; + a9 = 9; + a19 = 3; + a16 = 8; + return 22; + } else if((((!(a24==1)&&((a20==1)&&((a2==1)&&(((a16==8)&&((input==3)&&(((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))))&&(a2==1)))))&&(a6==1))&&(((a19==5)&&(((a1==14)&&((!(a14==1)&&(a6==1))&&(a21==11)))&&(a17==2)))&&(a12==1)))){ + a16 = 10; + a5 = 6; + a7 = 0; + a0 = 0; + a19 = 3; + a9 = 11; + return 26; + } else if(((((a23==1)&&((a9==8)&&(((a20==1)&&(((a5==6)&&(((a21==12)&&(input==1))&&(a17==2)))&&(a13==1)))&&(a6==1))))&&(a13==1))&&((a1==12)&&((a16==8)&&((((a12==1)&&(a28==1))&&!(a4==1))&&(a19==5)))))){ + a9 = 9; + a4 = 0; + a19 = 4; + a16 = 10; + a5 = 5; + a1 = 14; + a11 = 1; + a23 = 1; + return 23; + } else if((((a17==2)&&(!(a8==1)&&(((!(a20==1)&&((a6==1)||(a27==1)))||(a7==1))&&(a16==7))))&&((a21==10)&&((!(a18==1)&&(((a19==3)&&(((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(input==1))&&(a23==1)))&&(a11==1)))&&(a1==14))))){ + a5 = 5; + a3 = 1; + a13 = 1; + a19 = 4; + a11 = 1; + a9 = 7; + a1 = 13; + return 25; + } else if((((a21==10)&&(((a18==1)&&((((a5==4)||(a5==5))&&(input==1))&&(a24==1)))&&(a20==1)))&&(((a16==8)&&((a24==1)&&(((a19==5)&&(!(a13==1)&&((((a14==1)&&(a12==1))&&(a17==2))&&!(a2==1))))&&(a1==13))))&&(a9==9)))){ + a5 = 5; + a19 = 2; + a14 = 1; + a21 = 11; + a1 = 12; + a28 = 0; + a9 = 10; + a0 = 1; + return -1; + } else if(((((a9==11)&&((a23==1)&&(((a17==2)&&((a23==1)||!(a13==1)))&&!(a20==1))))&&(a13==1))&&((a1==13)&&((!(a7==1)&&(!(a7==1)&&(((a16==7)&&((a21==11)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5))))&&(a12==1))))&&(a19==3))))){ + a14 = 0; + a16 = 9; + a20 = 1; + a5 = 4; + a26 = 0; + a23 = 1; + a9 = 7; + return 25; + } else if((((a11==1)&&(!(a0==1)&&((((a16==7)&&(((input==3)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9))))&&(a1==13)))&&(a20==1))&&(a21==11))))&&(((a17==2)&&(((((a6==1)&&(a19==2))&&(a12==1))||!(a12==1))&&(a13==1)))||!(a11==1)))){ + a21 = 10; + a19 = 1; + a3 = 1; + a23 = 1; + a9 = 7; + a5 = 4; + a1 = 12; + a14 = 0; + return -1; + } else if((((((a9==11)&&(a3==1))&&(a16==9))||!(a12==1))&&(((a21==10)&&(((a11==1)&&(((a13==1)&&(!(a24==1)&&((a2==1)&&((a19==3)&&((a1==14)&&((input==1)&&((a5==5)||(a5==6))))))))&&!(a20==1)))&&(a3==1)))&&(a17==2)))){ + a20 = 1; + a19 = 1; + a7 = 1; + a9 = 8; + a6 = 0; + a5 = 5; + a16 = 7; + a13 = 0; + return -1; + } else if(((((((a21==11)&&((!(a13==1)||((a3==1)&&(a3==1)))&&(a20==1)))&&(a16==7))&&(a19==4))&&!(a24==1))&&((a2==1)&&((a2==1)&&((a17==2)&&((a3==1)&&(((input==6)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5))))&&(a1==14)))))))){ + a16 = 8; + a19 = 5; + a4 = 0; + a9 = 7; + a5 = 5; + a28 = 1; + a1 = 12; + a13 = 1; + return 22; + } else if((((((a5==5)&&((a1==13)&&(((!(a4==1)&&(((input==1)&&(a21==10))&&(a9==9)))&&(a12==1))&&(a13==1))))&&!(a8==1))&&(a20==1))&&((a19==3)&&(((((a3==1)&&!(a24==1))&&(a11==1))&&(a16==8))&&(a17==2))))){ + if((a16==8)){ + a23 = 1; + a21 = 11; + a28 = 1; + a1 = 12; + a9 = 7; + a13 = 1; + a16 = 7; + a20 = 0; + }else{ + a9 = 8; + a19 = 5; + a12 = 1; + a13 = 1; + a21 = 12; + a5 = 6; + a16 = 9; + a1 = 12; + } + return 23; + } else if((((a5==5)&&(((((a13==1)&&(a1==13))||(a7==1))&&(a20==1))&&(a16==7)))&&(((((!(a26==1)&&((a17==2)&&(!(a8==1)&&(((a21==12)&&(input==4))&&!(a0==1)))))&&!(a0==1))&&!(a7==1))&&(a19==4))&&(a9==9)))){ + a14 = 0; + a1 = 12; + a9 = 7; + a13 = 1; + a12 = 1; + a21 = 10; + a5 = 4; + a19 = 1; + return -1; + } else if((((a26==1)||((a1==13)&&((a5==4)&&(((a13==1)&&!(a18==1))&&(a21==11)))))&&((a9==7)&&(((((a16==10)&&((a2==1)&&(!(a4==1)&&((a28==1)&&((a17==2)&&(input==3))))))&&!(a24==1))&&(a20==1))&&(a19==3))))){ + a23 = 1; + a16 = 7; + a28 = 1; + a4 = 0; + a21 = 10; + a19 = 1; + a1 = 12; + return -1; + } else if((((!(a4==1)&&((a2==1)&&(((a5==4)&&(input==1))&&(a21==12))))&&(a9==11))&&(((a0==1)||((a19==4)&&(!(a23==1)||((a16==10)&&((a2==1)&&(!(a20==1)&&(((a23==1)&&(a1==12))&&(a17==2))))))))&&(a13==1)))){ + a9 = 7; + a6 = 0; + a20 = 1; + a19 = 5; + a28 = 0; + a22 = 1; + a16 = 11; + return 25; + } else if((((!(a23==1)&&(((((a5==6)&&((!(a20==1)&&(a2==1))&&(a24==1)))&&(a17==2))&&(a24==1))&&!(a3==1)))&&(a9==8))&&(((((((a19==3)&&(input==5))&&!(a23==1))&&(a16==7))&&(a21==12))&&(a1==12))&&!(a11==1)))){ + a9 = 10; + a8 = 1; + a10 = 0; + a29 = 0; + a1 = 14; + a5 = 5; + a21 = 10; + a19 = 5; + return -1; + } else if((((a9==11)&&(!(a20==1)&&((a6==1)&&(!(a23==1)||(!(a3==1)||((a6==1)&&(a21==11)))))))&&((a17==2)&&((!(a7==1)&&((a16==10)&&(((a13==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a1==12)))&&!(a24==1))))&&(a19==3))))){ + a20 = 1; + a19 = 2; + a18 = 1; + a24 = 1; + a9 = 7; + a21 = 10; + a16 = 7; + a5 = 4; + return 25; + } else if(((((((a11==1)&&((a26==1)||(((a13==1)&&(a13==1))&&(a17==2))))&&(a16==10))&&!(a26==1))&&!(a20==1))&&(((a19==4)&&(((a1==13)&&(!(a4==1)&&((input==1)&&(((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))))))&&(a2==1)))&&(a21==11)))){ + if((a10==1)){ + a18 = 1; + a16 = 7; + a19 = 1; + a5 = 4; + a9 = 11; + a27 = 1; + a12 = 0; + }else{ + a2 = 0; + a9 = 10; + a8 = 1; + a11 = 0; + a21 = 10; + a19 = 2; + a5 = 5; + a16 = 9; + a20 = 1; + a1 = 14; + } + return 21; + } else if(((!(a20==1)&&((a21==12)&&((((!(a26==1)&&(((input==3)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&(a11==1)))&&(a1==14))&&(a3==1))&&(a23==1))))&&((a16==8)&&(((a19==5)&&(!(a23==1)||((a3==1)&&(a13==1))))&&(a17==2))))){ + a9 = 7; + a5 = 5; + a11 = 0; + a20 = 1; + a19 = 2; + a21 = 10; + a22 = 1; + a16 = 7; + a24 = 1; + a1 = 12; + return -1; + } else if(((((!(a13==1)||((a17==2)&&((a16==10)&&((((a23==1)&&(a13==1))||(a24==1))||!(a12==1)))))&&(a20==1))&&(a5==6))&&((a12==1)&&((a1==14)&&((a19==2)&&((a21==11)&&(((input==1)&&(a9==8))&&(a11==1)))))))){ + a11 = 1; + a5 = 4; + a21 = 10; + a19 = 1; + a9 = 7; + a7 = 0; + a27 = 0; + a16 = 7; + a1 = 12; + return -1; + } else if((((a16==9)&&((a19==2)&&(((a6==1)&&((((a21==12)&&(a23==1))||!(a6==1))&&!(a8==1)))&&(a1==14))))&&((((a9==8)&&(((((input==3)&&!(a20==1))&&(a17==2))&&!(a26==1))&&(a5==6)))&&(a28==1))&&(a11==1)))){ + a0 = 1; + a5 = 5; + a20 = 1; + a6 = 0; + a21 = 11; + a9 = 9; + a16 = 7; + a27 = 1; + return 26; + } else if((((a4==1)&&(((!(a13==1)&&(((a19==2)&&(((((a9==11)&&((a1==13)&&(a5==6)))||((a9==7)&&((a1==14)&&(a5==4))))||((a9==7)&&((a1==14)&&(a5==5))))&&(input==5)))&&(a21==11)))&&(a18==1))&&!(a12==1)))&&((a27==1)&&((a17==2)&&(((a20==1)&&(!(a23==1)&&(a6==1)))&&(a16==11)))))){ + a5 = 6; + a21 = 10; + a25 = 0; + a28 = 0; + a20 = 0; + a16 = 7; + a14 = 1; + a9 = 8; + a19 = 4; + a1 = 14; + return -1; + } else if(((!(a20==1)&&((a17==2)&&((a19==1)&&(((a23==1)||(a26==1))&&(a16==10)))))&&((a21==11)&&(!(a27==1)&&((!(a4==1)&&((!(a27==1)&&((((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))&&(input==5))&&!(a14==1)))&&(a1==14)))&&!(a24==1)))))){ + a26 = 1; + a29 = 0; + a19 = 3; + a5 = 5; + a1 = 12; + a10 = 1; + a9 = 11; + a16 = 8; + return -1; + } else if((((a17==2)&&((a12==1)&&((!(a20==1)&&(((input==6)&&((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==1))||((a19==2)&&(((a5==4)&&(a1==12))&&(a9==7)))))&&!(a24==1)))&&!(a8==1))))&&(((a21==12)&&((((a16==7)&&(a23==1))&&(a2==1))||!(a11==1)))||(a8==1)))){ + a9 = 11; + a21 = 11; + a8 = 0; + a4 = 0; + a1 = 14; + a19 = 4; + a5 = 5; + a26 = 0; + a16 = 9; + a20 = 1; + return 23; + } else if(((((a3==1)&&((!(a4==1)&&((a17==2)&&(((a1==13)&&(input==5))&&(a13==1))))&&!(a14==1)))&&(a16==7))&&((((a9==9)&&(((((a6==1)&&!(a20==1))&&(a3==1))&&(a21==11))&&(a23==1)))&&(a5==4))&&(a19==2)))){ + a9 = 7; + a21 = 10; + a19 = 1; + a4 = 0; + a7 = 0; + a6 = 1; + a20 = 1; + a1 = 12; + return -1; + } else if(((((a21==11)&&((((((a28==1)&&((input==3)&&((a5==4)||(a5==5))))&&!(a14==1))&&(a16==7))&&(a17==2))&&(a9==9)))&&(a1==12))&&((a19==5)&&(!(a20==1)&&((((a27==1)||((a12==1)&&(a2==1)))||(a27==1))&&!(a4==1)))))){ + a5 = 4; + a9 = 7; + a19 = 1; + a20 = 1; + a23 = 1; + a2 = 1; + a21 = 10; + a14 = 0; + return -1; + } else if((((a9==9)&&((a21==10)&&(!(a23==1)||((!(a20==1)&&(a6==1))&&(a3==1)))))&&((((a6==1)&&(((a23==1)&&(((a16==7)&&(((input==4)&&(a17==2))&&(a19==1)))&&!(a8==1)))&&(a5==5)))&&(a1==12))&&(a11==1)))){ + a0 = 0; + a5 = 4; + a9 = 7; + a2 = 1; + a18 = 0; + a20 = 1; + return -1; + } else if(((((a21==10)&&(((a12==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3)))&&!(a27==1)))&&(a19==1))&&((a1==14)&&((a9==7)&&((a18==1)||(((a16==11)&&(((a20==1)&&(!(a6==1)||((a11==1)||(a26==1))))&&(a17==2)))||!(a6==1))))))){ + a18 = 0; + a5 = 4; + a28 = 1; + a16 = 7; + a14 = 0; + a1 = 12; + return -1; + } else if((((a17==2)&&((a19==4)&&(!(a24==1)&&((a2==1)&&(((((a1==14)&&((input==6)&&((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4)))))&&!(a14==1))&&!(a14==1))&&!(a24==1))))))&&((((a20==1)&&((a6==1)||(a8==1)))&&(a21==10))&&(a16==9)))){ + a9 = 10; + a20 = 0; + a5 = 4; + a16 = 8; + a28 = 1; + a0 = 0; + a13 = 1; + return 21; + } else if((((a12==1)&&((a27==1)||((a16==10)&&((a17==2)&&((!(a26==1)&&((a6==1)&&(a9==7)))&&(a21==10))))))&&(((a28==1)&&(!(a20==1)&&(!(a26==1)&&((((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a1==12))&&(a19==5)))))&&!(a14==1)))){ + a21 = 12; + a20 = 1; + a19 = 2; + a9 = 8; + a12 = 0; + a25 = 1; + a1 = 13; + a5 = 4; + a2 = 0; + return 25; + } else if(((((((a6==1)&&((a4==1)||(((a1==14)&&((a19==5)&&(a13==1)))&&(a12==1))))&&(a20==1))&&(a21==11))&&(a9==7))&&(((a16==10)&&((a17==2)&&((((input==6)&&(a5==5))&&(a23==1))&&!(a27==1))))&&!(a8==1)))){ + a19 = 2; + a5 = 4; + a9 = 9; + a21 = 10; + a27 = 0; + a4 = 0; + a16 = 7; + a8 = 0; + a1 = 13; + return -1; + } else if((((a27==1)||((a19==5)&&((a3==1)&&(!(a13==1)||((a17==2)&&(((a6==1)||(a7==1))&&!(a0==1)))))))&&(((a1==14)&&((a20==1)&&((a21==12)&&((a16==11)&&((input==5)&&(((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))))))))&&(a6==1)))){ + a1 = 13; + a2 = 1; + a27 = 0; + a9 = 7; + a0 = 0; + a5 = 5; + a21 = 11; + return 21; + } else if(((!(a20==1)&&((!(a0==1)&&(!(a14==1)&&((input==4)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))))&&(a13==1)))&&(((a21==12)&&((a28==1)&&(!(a6==1)||((a17==2)&&((((a16==8)&&(a11==1))&&(a1==14))&&(a19==4))))))||(a0==1)))){ + a20 = 1; + a26 = 1; + a16 = 7; + a1 = 13; + a18 = 1; + a21 = 10; + a9 = 10; + a5 = 6; + a19 = 1; + a10 = 1; + return -1; + } else if(((!(a26==1)&&(!(a24==1)&&((a3==1)&&((((a23==1)&&((input==5)&&((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4)))))&&(a11==1))&&(a19==1)))))&&(((a16==10)&&(!(a26==1)&&((a17==2)&&(((a3==1)&&!(a20==1))&&(a21==12)))))&&(a1==13)))){ + if((a3==1)){ + a25 = 0; + a24 = 1; + a21 = 11; + a5 = 4; + a1 = 12; + a16 = 7; + a9 = 10; + a3 = 0; + }else{ + a19 = 5; + a15 = 1; + a14 = 1; + a21 = 11; + a5 = 5; + a20 = 1; + a18 = 1; + a9 = 9; + a1 = 14; + } + return -1; + } else if(((((a24==1)&&((!(a6==1)&&((a9==8)&&(((((a24==1)&&(a3==1))&&(a17==2))&&(a20==1))&&(a21==11))))&&(a16==9)))&&!(a2==1))&&((a5==5)&&(!(a12==1)&&((a1==13)&&(((input==4)&&(a19==2))&&(a26==1))))))){ + a16 = 7; + a9 = 11; + a25 = 0; + a20 = 0; + a15 = 0; + a19 = 3; + return -1; + } else if(((!(a28==1)&&((a21==10)&&((a7==1)&&(!(a13==1)&&((a14==1)&&((a4==1)&&(((a3==1)&&(a1==14))&&!(a28==1))))))))&&(((a17==2)&&((a16==8)&&(!(a20==1)&&(((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a19==2)))))&&(a9==7)))){ + a16 = 9; + a29 = 0; + a5 = 5; + a13 = 0; + a19 = 5; + a20 = 1; + a9 = 8; + a1 = 12; + a18 = 1; + a21 = 12; + return -1; + } else if(((((a23==1)&&((a16==10)&&((a17==2)&&(!(a0==1)&&((input==3)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8))))))))&&(a28==1))&&((a6==1)&&((((a1==14)&&((a8==1)||(((a20==1)&&(a6==1))&&(a11==1))))&&(a19==2))&&(a21==11))))){ + a4 = 0; + a23 = 1; + a16 = 7; + a13 = 1; + a21 = 10; + a1 = 13; + a5 = 5; + a9 = 9; + return -1; + } else if((((a16==9)&&((a12==1)&&((a19==1)&&((a21==10)&&((((((a5==5)||(a5==6))&&(input==4))&&(a9==9))&&(a17==2))&&(a3==1))))))&&((((a2==1)&&((!(a4==1)&&((a11==1)&&(a20==1)))&&(a1==12)))||!(a23==1))||!(a28==1)))){ + a9 = 7; + a5 = 4; + a16 = 7; + a2 = 1; + a27 = 0; + a8 = 0; + return -1; + } else if((((!(a4==1)&&((!(a20==1)&&((((!(a4==1)&&((input==4)&&(((a9==7)&&((a5==4)&&(a1==14)))||(((a9==11)&&((a1==13)&&(a5==5)))||(((a1==13)&&(a5==6))&&(a9==11))))))&&(a2==1))&&(a21==10))&&(a16==7)))&&!(a4==1)))&&!(a24==1))&&(!(a0==1)&&((a19==3)&&((a28==1)&&(a17==2)))))){ + a1 = 12; + a20 = 1; + a5 = 4; + a11 = 1; + a18 = 0; + a3 = 1; + a9 = 7; + a19 = 1; + return -1; + } else if(((((a16==9)&&(((a23==1)&&(((a9==9)&&(((((input==3)&&((a5==4)||(a5==5)))&&(a1==14))&&(a19==2))&&(a3==1)))&&(a20==1)))&&(a17==2)))&&(a6==1))&&(((a21==10)&&((a13==1)&&(!(a18==1)&&(a6==1))))&&(a2==1)))){ + a6 = 1; + a1 = 13; + a5 = 6; + a16 = 10; + a21 = 11; + a7 = 0; + a28 = 1; + return 21; + } else if(((!(a3==1)||(((!(a6==1)||((a18==1)||((a13==1)&&(a20==1))))&&(a16==11))&&(a17==2)))&&(((a12==1)&&((a19==2)&&((((((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&(a21==12))&&(a9==10))&&!(a7==1))&&(a1==12))))&&(a3==1)))){ + if((a26==1)){ + a20 = 0; + a19 = 5; + a3 = 1; + a21 = 11; + a9 = 8; + a11 = 1; + a16 = 8; + a5 = 5; + a12 = 1; + }else{ + a26 = 0; + a1 = 13; + a9 = 7; + a3 = 1; + a5 = 6; + a21 = 11; + a18 = 0; + } + return 21; + } else if(((((a21==12)&&((a19==2)&&((a13==1)&&((input==1)&&((((a1==12)&&(a5==6))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==13))))))))&&(a17==2))&&(((a20==1)&&(((!(a0==1)&&((a24==1)||(!(a24==1)&&(a11==1))))&&!(a4==1))&&!(a27==1)))&&(a16==7)))){ + a28 = 1; + a16 = 9; + a9 = 8; + a5 = 4; + a21 = 10; + a27 = 0; + a6 = 1; + a1 = 14; + return 26; + } else if((((a24==1)&&(!(a3==1)&&(((a17==2)&&((((a21==11)&&((a5==5)&&(a11==1)))&&(a1==12))&&!(a6==1)))&&(a4==1))))&&((a8==1)&&((a27==1)&&(((((input==1)&&(a20==1))&&(a9==7))&&(a19==2))&&(a16==8)))))){ + a16 = 10; + a22 = 0; + a9 = 10; + a29 = 1; + a5 = 6; + a3 = 0; + a19 = 1; + a21 = 10; + return 26; + } else if(((((a28==1)&&((((a21==11)&&(!(a14==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a1==13))))&&!(a4==1))&&(a16==7)))&&(a9==10))&&(((a20==1)&&(!(a3==1)||((((a19==1)&&(a11==1))||!(a3==1))||(a14==1))))&&(a17==2)))){ + a21 = 10; + a28 = 1; + a5 = 4; + a13 = 1; + a9 = 7; + a1 = 12; + return -1; + } else if(((!(a20==1)&&(!(a14==1)&&(((a9==7)&&((a8==1)||(((((a2==1)&&(a19==2))&&!(a18==1))||(a8==1))&&!(a4==1))))&&(a17==2))))&&(((a16==8)&&(((((a5==5)||(a5==6))&&(input==4))&&(a21==10))&&!(a8==1)))&&(a1==13)))){ + a20 = 1; + a5 = 4; + a16 = 7; + a1 = 12; + a14 = 0; + a28 = 1; + a19 = 1; + return -1; + } else if((((a17==2)&&(!(a13==1)||((a21==11)&&((a28==1)&&!(a14==1)))))&&((((a20==1)&&(((a1==12)&&((a6==1)&&(((a2==1)&&((a9==9)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a2==1))))&&(a19==5)))&&!(a14==1))&&(a16==11)))){ + a9 = 7; + a19 = 1; + a11 = 1; + a21 = 10; + a16 = 7; + a5 = 4; + a3 = 1; + a7 = 0; + return -1; + } else if((((a12==1)&&(((a17==2)&&(((((input==3)&&((((a9==11)&&((a1==12)&&(a5==5)))||((a9==11)&&((a1==12)&&(a5==6))))||(((a1==13)&&(a5==4))&&(a9==7))))&&(a16==7))&&(a21==11))&&(a20==1)))&&(a3==1)))&&(((!(a28==1)||(!(a6==1)||((a19==4)&&(a11==1))))||(a8==1))&&(a3==1)))){ + a4 = 0; + a1 = 12; + a5 = 4; + a28 = 1; + a19 = 1; + a21 = 10; + a9 = 7; + a6 = 1; + return -1; + } else if((((!(a13==1)||((a27==1)||((a0==1)||(((a23==1)&&(a17==2))&&(a11==1)))))&&(a21==10))&&(((!(a0==1)&&((a16==9)&&((!(a8==1)&&((input==1)&&((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9)))))&&!(a20==1))))&&(a19==2))&&(a1==13)))){ + a10 = 0; + a23 = 0; + a27 = 1; + a1 = 14; + a20 = 1; + a9 = 9; + a19 = 5; + a5 = 4; + return -1; + } else if(((((a16==7)&&(!(a7==1)&&((a13==1)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a28==1))&&(a12==1)))))&&(a9==10))&&((((a19==2)&&((((a0==1)||((a1==14)&&(a13==1)))&&!(a20==1))&&(a17==2)))||!(a28==1))&&(a21==10)))){ + a18 = 0; + a19 = 1; + a27 = 0; + a5 = 4; + a9 = 7; + a20 = 1; + a2 = 1; + a1 = 12; + return -1; + } else if((((!(a18==1)&&(((a20==1)&&((!(a23==1)||(a23==1))&&(a19==5)))||(a8==1)))&&(a16==7))&&((!(a4==1)&&(!(a24==1)&&((a28==1)&&(((input==5)&&((((a1==13)&&(a5==6))&&(a9==11))||(((a1==14)&&(a5==4))&&(a9==7))))&&(a17==2)))))&&(a21==11)))){ + a9 = 9; + a1 = 12; + a16 = 8; + a19 = 3; + a18 = 0; + a21 = 12; + a8 = 0; + a13 = 1; + a5 = 4; + return 22; + } else if(((!(a24==1)&&(((a20==1)&&((a17==2)&&((a28==1)&&(a16==8))))&&!(a14==1)))&&(((a3==1)&&((a11==1)&&((a23==1)&&(((((input==4)&&((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4))))&&(a1==13))&&(a19==4))&&(a21==12)))))&&!(a8==1)))){ + a16 = 7; + a9 = 7; + a21 = 10; + a19 = 1; + a1 = 12; + a3 = 1; + a0 = 0; + a5 = 4; + return -1; + } else if(((!(a12==1)||(((a13==1)&&((!(a20==1)&&(((a1==13)&&(a13==1))||(a18==1)))&&(a19==2)))&&(a13==1)))&&((a21==10)&&(!(a4==1)&&((((((input==6)&&((a5==5)||(a5==6)))&&!(a24==1))&&(a9==7))&&(a16==8))&&(a17==2)))))){ + a19 = 1; + a1 = 12; + a8 = 0; + a5 = 4; + a20 = 1; + a2 = 1; + a16 = 7; + a27 = 0; + return -1; + } else if((((a28==1)&&((((a9==11)&&((a5==6)&&(input==3)))&&(a20==1))&&(a21==11)))&&(((a1==12)&&(!(a28==1)||((a16==8)&&(((a19==5)&&(!(a27==1)&&(!(a18==1)&&((a28==1)||(a26==1)))))&&(a17==2)))))&&!(a4==1)))){ + a9 = 7; + a24 = 0; + a5 = 4; + a19 = 1; + a23 = 1; + a21 = 10; + a16 = 7; + a27 = 0; + return -1; + } else if((((a19==1)&&(((a11==1)&&((a12==1)&&(((input==4)&&(((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))))&&!(a26==1))))&&(a21==12)))&&(((((a4==1)||((a1==13)&&((a24==1)||((a13==1)&&(a16==10)))))||(a14==1))&&(a20==1))&&(a17==2)))){ + a16 = 7; + a2 = 1; + a9 = 7; + a1 = 12; + a5 = 4; + a21 = 10; + a13 = 1; + a6 = 1; + return -1; + } else if((((a18==1)||((a20==1)&&((a4==1)||((((a1==12)&&(((a28==1)&&(a17==2))||!(a6==1)))&&(a23==1))&&(a16==7)))))&&(!(a7==1)&&((((a5==5)&&(!(a24==1)&&((a19==4)&&(input==4))))&&(a9==9))&&(a21==11))))){ + if((a26==1)){ + a20 = 0; + a19 = 3; + a28 = 1; + a18 = 0; + a1 = 13; + a26 = 0; + a9 = 11; + a5 = 6; + a21 = 12; + }else{ + a16 = 8; + a19 = 3; + a23 = 1; + a0 = 0; + a2 = 1; + a9 = 11; + a5 = 4; + } + return 21; + } else if(((!(a0==1)&&((((a19==2)&&(!(a18==1)&&(((a6==1)&&(!(a7==1)&&((a5==4)&&((a2==1)&&((a21==12)&&((a1==14)&&(input==1)))))))&&(a16==8))))&&(a9==7))&&(a20==1)))&&(((a13==1)&&!(a18==1))&&(a17==2)))){ + a9 = 11; + a6 = 1; + a19 = 1; + a2 = 1; + a16 = 10; + a0 = 0; + a1 = 13; + a5 = 5; + return 21; + } else if(((!(a20==1)&&((a17==2)&&((a19==2)&&(!(a8==1)&&((a16==8)&&(((((a8==1)||(a3==1))&&(a9==11))||(a8==1))||(a4==1)))))))&&(((a1==13)&&((!(a26==1)&&((input==4)&&((a5==6)||((a5==4)||(a5==5)))))&&(a13==1)))&&(a21==10)))){ + a28 = 1; + a27 = 0; + a20 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + a8 = 0; + a1 = 12; + a19 = 1; + return -1; + } else if(((((a19==5)&&((a5==5)&&((a17==2)&&((a16==7)&&(!(a7==1)&&((input==3)&&(a9==10)))))))&&(a21==10))&&((((a2==1)&&((!(a3==1)||((!(a20==1)&&(a28==1))&&(a6==1)))&&!(a18==1)))&&(a1==14))||(a0==1)))){ + a20 = 1; + a1 = 12; + a5 = 4; + a8 = 0; + a9 = 7; + a19 = 1; + a27 = 0; + a23 = 1; + return -1; + } else if(((!(a24==1)&&((a16==7)&&((a19==2)&&((a21==12)&&((a3==1)&&(a9==10))))))&&(((((a28==1)&&(!(a0==1)&&(!(a20==1)&&(((a5==6)&&((a17==2)&&(input==5)))&&(a11==1)))))&&!(a7==1))&&!(a8==1))&&(a1==13)))){ + a19 = 3; + a4 = 0; + a20 = 1; + a1 = 14; + a7 = 0; + a27 = 0; + a21 = 10; + a9 = 11; + return 22; + } else if((((a17==2)&&((!(a14==1)&&((a12==1)&&(!(a4==1)&&((a21==10)&&((((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6))))&&(input==4))))))&&(a11==1)))&&(((a16==11)&&(((a1==12)&&((a23==1)&&((a28==1)&&!(a7==1))))&&(a20==1)))&&(a19==3)))){ + a16 = 7; + a5 = 4; + a9 = 7; + a26 = 0; + a14 = 0; + a19 = 1; + return -1; + } else if(((((a20==1)&&((a16==11)&&((a13==1)&&((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==3)))))&&(a21==12))&&((a0==1)||(((a1==12)&&((a12==1)&&((a14==1)||((a17==2)&&((a19==1)&&(!(a14==1)&&(a6==1)))))))&&(a28==1))))){ + a5 = 4; + a18 = 0; + a13 = 1; + a16 = 7; + a9 = 7; + a21 = 10; + a4 = 0; + return -1; + } else if(((!(a8==1)&&((!(a20==1)&&((!(a7==1)&&((((((a19==1)&&(((a5==4)&&(a1==12))&&(a9==7)))&&(a21==11))||(((a21==10)&&((((a1==14)&&(a5==5))&&(a9==11))&&(a19==5)))||((a21==10)&&((((a5==6)&&(a1==14))&&(a9==11))&&(a19==5)))))&&(input==1))&&!(a8==1)))&&(a13==1)))&&(a17==2)))&&((a2==1)&&(((a28==1)&&(a11==1))&&(a16==8))))){ + a1 = 12; + a9 = 9; + a19 = 2; + a16 = 10; + a6 = 1; + a5 = 6; + a13 = 1; + a21 = 11; + a26 = 0; + a20 = 1; + return 25; + } else if((((!(a27==1)&&((((a5==6)&&((a19==5)&&((a1==14)&&(a28==1))))&&(a21==12))&&!(a4==1)))||!(a11==1))&&((a13==1)&&((a13==1)&&(((a20==1)&&((a16==9)&&(!(a4==1)&&((input==5)&&(a9==7)))))&&(a17==2)))))){ + a1 = 12; + a19 = 1; + a16 = 7; + a18 = 0; + a24 = 0; + a23 = 1; + a21 = 10; + a5 = 4; + return -1; + } else if(((!(a2==1)||((a26==1)||(!(a4==1)&&((a12==1)&&(((a13==1)&&(a21==11))&&(a17==2))))))&&((((!(a27==1)&&(((a1==14)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==5)))&&(a19==5)))&&(a6==1))&&!(a20==1))&&(a16==8)))){ + a9 = 11; + a19 = 4; + a5 = 4; + a29 = 0; + a20 = 1; + a16 = 9; + a18 = 1; + return -1; + } else if((((!(a23==1)||((((a9==11)&&((a12==1)&&(a12==1)))&&(a19==3))&&(a16==11)))&&(a1==13))&&((a20==1)&&(((a21==12)&&(((!(a18==1)&&((a17==2)&&((input==3)&&((a5==6)||((a5==4)||(a5==5))))))&&!(a14==1))&&(a13==1)))&&!(a7==1))))){ + a19 = 1; + a23 = 1; + a27 = 0; + a16 = 7; + a1 = 12; + a9 = 7; + a7 = 0; + a5 = 4; + a21 = 10; + return -1; + } else if((((a17==2)&&((a21==11)&&((((a24==1)||(!(a2==1)||((a12==1)||!(a2==1))))||!(a23==1))&&(a13==1))))&&((a5==6)&&((!(a20==1)&&((a16==8)&&(!(a26==1)&&(((input==3)&&(a9==11))&&(a1==13)))))&&(a19==4))))){ + a20 = 1; + a8 = 0; + a9 = 7; + a1 = 12; + a19 = 1; + a16 = 7; + a21 = 10; + a5 = 4; + a0 = 0; + a26 = 0; + return -1; + } else if(((!(a20==1)&&(!(a13==1)||((a21==12)&&(((a16==10)&&((a2==1)&&(a13==1)))||(a26==1)))))&&((((a19==1)&&((a6==1)&&(((input==3)&&((((a1==12)&&(a5==6))&&(a9==11))||(((a5==4)&&(a1==13))&&(a9==7))))&&(a3==1))))&&!(a27==1))&&(a17==2)))){ + a5 = 5; + a9 = 8; + a1 = 13; + a4 = 1; + a16 = 7; + a21 = 10; + a0 = 1; + a20 = 1; + a11 = 0; + return 22; + } else if(((!(a8==1)&&(!(a0==1)&&(((a28==1)&&((a12==1)&&!(a0==1)))&&!(a20==1))))&&((a11==1)&&(((a19==4)&&((a16==9)&&(((((input==3)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(a17==2))&&!(a8==1))&&(a1==14))))&&(a21==11))))){ + if((a21==12)){ + a9 = 7; + a13 = 0; + a8 = 1; + a19 = 1; + a16 = 7; + a10 = 0; + a21 = 10; + a5 = 4; + a1 = 12; + a20 = 1; + }else{ + a29 = 0; + a10 = 0; + a6 = 0; + a5 = 4; + a1 = 12; + a19 = 2; + a16 = 7; + a20 = 1; + a21 = 10; + a9 = 9; + } + return 21; + } else if((((a17==2)&&(((a3==1)&&(((a20==1)&&(!(a4==1)&&(((a9==11)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1)))&&(a13==1))))&&(a19==4)))&&(a1==14)))&&((a16==10)&&((a21==10)&&(!(a23==1)||(!(a18==1)&&(!(a7==1)&&(a3==1)))))))){ + a26 = 0; + a21 = 12; + a9 = 10; + a16 = 8; + a0 = 0; + a19 = 5; + a1 = 13; + a5 = 4; + return -1; + } else if((((!(a18==1)&&((((a17==2)&&((a1==13)&&((a19==3)&&(input==6))))&&(a6==1))&&(a12==1)))&&!(a20==1))&&((((((a8==1)||(((a5==4)&&(a23==1))&&(a16==10)))&&(a12==1))&&!(a27==1))&&(a9==10))&&(a21==10)))){ + a16 = 11; + a11 = 0; + a21 = 11; + a14 = 1; + a19 = 2; + a12 = 0; + a20 = 1; + a9 = 8; + a1 = 12; + return 26; + } else if((((a5==4)&&(((a6==1)&&((a16==7)&&(((a28==1)&&((((a21==10)&&(input==4))&&(a19==1))&&!(a20==1)))&&(a1==13))))&&(a17==2)))&&((((((a23==1)||!(a12==1))||!(a11==1))&&(a9==8))&&(a13==1))||(a14==1)))){ + a9 = 7; + a13 = 1; + a20 = 1; + a1 = 12; + a2 = 1; + a27 = 0; + return -1; + } else if((((a16==8)&&((a21==11)&&(!(a20==1)&&(((((input==6)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&!(a8==1))&&!(a26==1))&&(a1==13)))))&&((((a3==1)&&((!(a27==1)&&((a6==1)&&(a2==1)))&&(a2==1)))&&(a19==3))&&(a17==2)))){ + a5 = 6; + a4 = 0; + a9 = 8; + a1 = 12; + a23 = 1; + a20 = 1; + a24 = 0; + a21 = 12; + return 25; + } else if(((!(a8==1)&&((a3==1)&&(!(a20==1)&&(((a21==11)&&(!(a14==1)&&(a3==1)))||!(a13==1)))))&&(((((((input==6)&&((((a1==13)&&(a5==5))&&(a9==7))||((((a5==6)&&(a1==12))&&(a9==11))||(((a1==13)&&(a5==4))&&(a9==7)))))&&(a6==1))&&(a3==1))&&(a17==2))&&(a16==10))&&(a19==4)))){ + a9 = 11; + a21 = 10; + a19 = 5; + a16 = 7; + a27 = 1; + a5 = 5; + a1 = 13; + a29 = 0; + a10 = 1; + return -1; + } else if((((a19==2)&&(((a26==1)&&((a8==1)&&((a5==5)&&((a16==7)&&(!(a2==1)&&(a28==1))))))&&!(a28==1)))&&((a1==12)&&((a26==1)&&(((((a21==11)&&((input==5)&&(a20==1)))&&(a17==2))&&(a9==7))&&(a27==1)))))){ + a19 = 1; + a21 = 10; + a1 = 14; + a3 = 0; + a25 = 1; + a10 = 0; + a5 = 4; + a9 = 11; + return 21; + } else if((((a17==2)&&((a9==8)&&(!(a20==1)&&((a1==14)&&((!(a8==1)&&(((!(a4==1)&&(a3==1))||!(a2==1))||!(a13==1)))&&(a19==5))))))&&((!(a14==1)&&(((a21==11)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4)))&&(a6==1)))&&(a16==7)))){ + a19 = 1; + a24 = 0; + a9 = 7; + a21 = 10; + a3 = 1; + a26 = 0; + a1 = 12; + a20 = 1; + a5 = 4; + return -1; + } else if((((!(a26==1)&&((a16==7)&&(((a12==1)&&((a13==1)&&(!(a8==1)&&((input==1)&&(a5==4)))))&&(a2==1))))&&(a1==12))&&((!(a20==1)&&((a21==12)&&((((a3==1)||!(a6==1))&&(a19==1))&&(a9==8))))&&(a17==2)))){ + a26 = 0; + a20 = 1; + a21 = 10; + a2 = 1; + a11 = 1; + a9 = 7; + return -1; + } else if((((a6==1)&&((((!(a28==1)||((a23==1)&&!(a8==1)))&&!(a24==1))&&(a17==2))&&(a5==4)))&&(((a21==12)&&((a19==2)&&(((a16==11)&&(!(a0==1)&&((a9==9)&&((a20==1)&&(input==3)))))&&(a1==13))))&&!(a7==1)))){ + a13 = 1; + a4 = 0; + a19 = 5; + a8 = 0; + a1 = 14; + a9 = 7; + a21 = 11; + return 21; + } else if((((a23==1)&&((a13==1)&&(((((((a21==10)&&((input==5)&&!(a20==1)))&&(a16==9))&&(a1==12))&&(a19==1))&&(a9==10))&&(a17==2))))&&(!(a3==1)||((!(a12==1)||(((a28==1)&&(a11==1))&&(a5==4)))||!(a11==1))))){ + a19 = 2; + a3 = 0; + a9 = 9; + a21 = 12; + a12 = 0; + a5 = 5; + return -1; + } else if((((a9==10)&&(((((a23==1)&&(!(a8==1)&&(((a1==14)&&((a16==7)&&(((input==3)&&(a21==12))&&(a6==1))))&&(a19==2))))&&(a20==1))&&(a6==1))&&(a5==5)))&&((a17==2)&&(!(a28==1)||((a27==1)||(a11==1)))))){ + a9 = 7; + a5 = 4; + a1 = 12; + a23 = 1; + a21 = 10; + a4 = 0; + a19 = 1; + a24 = 0; + return -1; + } else if(((((((a3==1)&&(((a26==1)||((a16==11)&&((((a3==1)&&!(a24==1))||(a26==1))&&(a20==1))))&&(a1==14)))||!(a23==1))&&(a17==2))&&(a21==10))&&((a5==5)&&((((input==4)&&(a19==3))&&(a9==10))&&!(a26==1))))){ + a9 = 7; + a2 = 1; + a12 = 1; + a19 = 1; + a1 = 12; + a23 = 1; + a5 = 4; + a16 = 7; + return -1; + } else if((((((((a13==1)&&((a17==2)&&((input==6)&&((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4))))))&&(a1==12))&&(a28==1))&&!(a18==1))&&(a23==1))&&(((a21==10)&&(((a3==1)&&((a19==3)&&((a6==1)&&(a16==8))))&&!(a20==1)))||!(a3==1)))){ + a16 = 7; + a19 = 1; + a9 = 7; + a18 = 0; + a20 = 1; + a5 = 4; + a12 = 1; + return -1; + } else if((((((a19==3)&&(((((input==5)&&!(a20==1))&&(a21==12))&&(a3==1))&&(a28==1)))&&(a17==2))&&(a1==14))&&((a9==7)&&(((!(a8==1)&&((a0==1)||(((a28==1)&&(a6==1))&&!(a14==1))))&&(a16==9))&&(a5==5))))){ + a20 = 1; + a29 = 1; + a21 = 10; + a1 = 13; + a19 = 1; + a27 = 1; + a6 = 0; + a16 = 7; + return -1; + } else if((((a17==2)&&((!(a20==1)&&((a16==7)&&((a19==3)&&((a1==14)&&(((((((a5==5)||(a5==6))&&(input==5))&&!(a0==1))&&(a23==1))&&(a9==8))&&(a13==1))))))&&(a21==12)))&&(!(a4==1)&&(((a12==1)||!(a28==1))||(a24==1))))){ + a24 = 0; + a26 = 0; + a7 = 0; + a19 = 5; + a5 = 4; + a16 = 11; + a9 = 9; + a20 = 1; + return 26; + } else if((((a17==2)&&((((a21==11)&&(!(a3==1)||(((a3==1)&&(!(a24==1)&&(((a7==1)||(a23==1))||(a4==1))))||(a7==1))))&&(a19==3))&&(a1==12)))&&((((((a5==5)||(a5==6))&&(input==1))&&(a16==7))&&(a9==10))&&(a20==1)))){ + a5 = 6; + a21 = 10; + a6 = 1; + a7 = 0; + a9 = 11; + a0 = 0; + a19 = 5; + a16 = 8; + return 23; + } else if((((a6==1)&&(((a3==1)&&((((a21==12)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))&&(a3==1))&&(a16==10)))&&(a6==1)))&&((a9==8)&&((a1==14)&&(!(a24==1)&&(((((a17==2)&&(a28==1))||(a8==1))&&(a19==2))&&!(a20==1))))))){ + if((a16==10)){ + a19 = 1; + a8 = 1; + a9 = 9; + a25 = 1; + a1 = 13; + a21 = 10; + a20 = 1; + a16 = 7; + a5 = 4; + a3 = 0; + }else{ + a5 = 5; + a21 = 10; + a20 = 1; + a3 = 0; + a6 = 0; + a9 = 7; + a1 = 12; + a15 = 1; + a16 = 7; + } + return 26; + } return calculate_output35(input); + } + + int calculate_output35(int input) { + if((((a26==1)||(!(a18==1)&&(!(a20==1)&&(!(a11==1)||((a2==1)&&(!(a24==1)&&((a23==1)&&(a16==10))))))))&&((((((((a1==14)&&(input==3))&&(a9==7))&&(a5==5))&&(a17==2))&&(a21==12))&&(a11==1))&&(a19==5)))){ + a5 = 4; + a15 = 1; + a25 = 1; + a9 = 9; + a21 = 10; + a16 = 9; + a11 = 0; + return 22; + } else if((((a19==4)&&((((!(a20==1)&&((a28==1)&&(!(a4==1)&&(!(a24==1)&&((a1==13)&&(a23==1))))))||!(a6==1))&&(a17==2))&&(a21==12)))&&((a23==1)&&((!(a18==1)&&((input==4)&&(((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))))&&(a16==10))))){ + a22 = 0; + a20 = 1; + a21 = 10; + a9 = 11; + a29 = 0; + a16 = 9; + a1 = 12; + a5 = 4; + a15 = 1; + return 25; + } else if((((!(a2==1)||(((a13==1)||(a7==1))&&(a17==2)))&&(a16==7))&&(((!(a20==1)&&((!(a0==1)&&((a1==12)&&(!(a18==1)&&(((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==4))&&!(a8==1)))))&&(a28==1)))&&(a19==5))&&(a21==11)))){ + a0 = 0; + a9 = 7; + a2 = 1; + a21 = 10; + a6 = 1; + a19 = 1; + a5 = 4; + a20 = 1; + return -1; + } else if(((((a26==1)||((a16==8)&&(((((!(a2==1)||((a11==1)||(a4==1)))&&(a17==2))&&!(a18==1))&&(a20==1))&&!(a18==1))))&&(a21==11))&&(((((a9==7)&&((input==6)&&((a5==5)||(a5==6))))&&(a19==3))&&(a3==1))&&(a1==14)))){ + a14 = 0; + a16 = 7; + a19 = 1; + a3 = 1; + a21 = 10; + a1 = 12; + a5 = 4; + return -1; + } else if(((!(a27==1)&&((a1==14)&&((((a9==11)&&(((a16==11)&&(!(a0==1)&&((input==6)&&(a21==10))))&&(a20==1)))&&!(a7==1))&&(a19==5))))&&((a11==1)&&((((a17==2)&&((a7==1)||(a6==1)))||(a7==1))&&(a5==4))))){ + a14 = 0; + a16 = 8; + a21 = 12; + a5 = 5; + a9 = 8; + a19 = 4; + a4 = 0; + a6 = 1; + return 22; + } else if((((a17==2)&&(!(a4==1)&&((!(a18==1)&&(!(a7==1)&&(((a19==5)&&((a9==8)&&(((a5==4)||(a5==5))&&(input==1))))&&!(a20==1))))&&(a1==12))))&&((a0==1)||((a21==11)&&((!(a3==1)||((a14==1)||(a13==1)))&&(a16==8)))))){ + a20 = 1; + a0 = 0; + a21 = 10; + a14 = 0; + a6 = 1; + a9 = 11; + a5 = 4; + a16 = 7; + return -1; + } else if(((((a5==5)&&(((!(a20==1)&&(!(a23==1)||((a23==1)&&(a2==1))))&&(a9==11))||(a8==1)))&&!(a14==1))&&(!(a7==1)&&(((((a17==2)&&((a13==1)&&((a16==8)&&(input==3))))&&(a21==10))&&(a19==2))&&(a1==14))))){ + a16 = 7; + a26 = 0; + a1 = 12; + a5 = 4; + a9 = 7; + a19 = 1; + a12 = 1; + a3 = 1; + a20 = 1; + return -1; + } else if((((((a19==1)&&(((input==1)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9))))&&(a16==9)))&&!(a20==1))&&!(a14==1))&&(((((a17==2)&&(((a2==1)&&((!(a23==1)||(a23==1))&&(a21==12)))&&(a1==13)))||!(a28==1))&&!(a27==1))||!(a13==1)))){ + a20 = 1; + a2 = 0; + a21 = 10; + a7 = 1; + a5 = 6; + a9 = 7; + a16 = 7; + a8 = 1; + return -1; + } else if((((((a16==8)&&((a21==12)&&(((((a28==1)&&(!(a20==1)&&(input==6)))&&!(a14==1))&&(a11==1))&&(a17==2))))&&(a9==8))&&(a5==6))&&(!(a23==1)||(!(a2==1)||((((a23==1)&&(a1==12))&&(a19==3))||!(a12==1)))))){ + a1 = 14; + a9 = 11; + a21 = 11; + a19 = 1; + a12 = 0; + a16 = 7; + a2 = 0; + a18 = 1; + return -1; + } else if((((a17==2)&&(!(a0==1)&&(((a23==1)&&((!(a7==1)&&((a2==1)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a21==11)))&&(a1==12))))&&(((a16==9)&&((a19==3)&&(((a20==1)&&((a6==1)||(a18==1)))&&(a6==1))))&&(a9==11)))){ + a21 = 10; + a5 = 6; + a9 = 8; + a1 = 13; + a19 = 1; + a28 = 1; + a26 = 0; + return 25; + } else if(((((a1==12)&&((((a13==1)&&(!(a14==1)&&((input==5)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5))))))&&(a12==1))&&(a21==11)))&&(a17==2))&&((a19==2)&&(((a16==7)&&(!(a20==1)&&(((a11==1)&&!(a18==1))&&!(a18==1))))&&(a28==1))))){ + a28 = 1; + a5 = 4; + a21 = 12; + a20 = 1; + a16 = 8; + a9 = 9; + a2 = 1; + a19 = 3; + a1 = 13; + a14 = 0; + return 25; + } else if(((!(a27==1)&&(!(a18==1)&&(((((input==1)&&(((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))))&&(a21==10))&&(a17==2))&&(a19==4))))&&((((a6==1)&&((a1==14)&&((a20==1)&&((a18==1)||((a16==8)&&(a6==1))))))||(a14==1))||!(a11==1)))){ + a3 = 1; + a5 = 6; + a21 = 12; + a9 = 8; + a8 = 0; + a19 = 1; + return 21; + } else if(((((!(a0==1)&&(!(a20==1)&&((a28==1)&&(a11==1))))&&(a16==7))&&(a21==11))&&(((a17==2)&&(((a28==1)&&((((!(a27==1)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))&&!(a26==1))&&(a1==12))&&(a11==1)))&&(a9==10)))&&(a19==3)))){ + a8 = 0; + a13 = 1; + a20 = 1; + a0 = 0; + a21 = 10; + a19 = 2; + a9 = 9; + a16 = 9; + a5 = 4; + return 25; + } else if(((!(a8==1)&&((a2==1)&&((!(a20==1)&&(((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&(a17==2)))&&(a6==1))))&&((a1==14)&&(((a9==9)&&((a16==11)&&(((((a28==1)||(a14==1))&&(a19==3))||(a7==1))&&(a23==1))))&&(a21==10))))){ + if((a16==11)){ + a16 = 10; + a7 = 1; + a13 = 0; + a19 = 2; + a5 = 4; + a24 = 1; + a20 = 1; + }else{ + a5 = 5; + a11 = 0; + a16 = 8; + a13 = 0; + a9 = 10; + a20 = 1; + a19 = 2; + a6 = 0; + } + return -1; + } else if(((((((a16==11)&&((a9==10)&&(!(a11==1)&&(a12==1))))&&(a20==1))&&!(a6==1))&&(a21==12))&&((a19==1)&&((a4==1)&&((a17==2)&&((((((input==1)&&((a5==5)||(a5==6)))&&(a1==13))&&(a8==1))&&!(a3==1))&&!(a28==1))))))){ + a9 = 11; + a5 = 6; + a15 = 1; + a10 = 1; + a1 = 14; + a20 = 0; + a16 = 7; + return -1; + } else if((((((a17==2)&&((((!(a4==1)&&(((((a5==6)&&(a1==12))&&(a9==11))||(((a1==13)&&(a5==4))&&(a9==7)))&&(input==5)))&&(a20==1))&&(a16==10))&&(a19==5)))&&!(a0==1))&&(a21==10))&&(!(a8==1)&&(((a13==1)&&((a23==1)&&!(a26==1)))||!(a28==1))))){ + if((a13==1)){ + a4 = 0; + a23 = 1; + a5 = 6; + a14 = 0; + a16 = 8; + a9 = 10; + a19 = 2; + a20 = 0; + a1 = 14; + }else{ + a23 = 1; + a1 = 14; + a5 = 5; + a24 = 0; + a9 = 8; + a19 = 3; + a6 = 1; + } + return 21; + } else if(((((((((a1==12)&&(((input==3)&&((a5==5)||(a5==6)))&&(a28==1)))&&(a12==1))&&(a9==8))&&(a20==1))&&(a16==8))&&!(a8==1))&&((a17==2)&&((a21==11)&&(((((a2==1)&&(a12==1))&&(a3==1))&&(a19==4))||(a26==1)))))){ + a5 = 4; + a19 = 1; + a4 = 0; + a16 = 7; + a27 = 0; + a9 = 7; + a24 = 0; + a21 = 10; + return -1; + } else if(((((a6==1)&&(((a1==13)&&((((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==3))&&(a21==11))&&!(a24==1)))&&(a3==1)))&&!(a14==1))&&(((a16==9)&&(((a19==3)&&(!(a18==1)&&((a17==2)&&(a6==1))))&&!(a20==1)))&&(a3==1)))){ + a16 = 10; + a9 = 11; + a25 = 1; + a1 = 12; + a21 = 10; + a22 = 1; + a26 = 1; + a5 = 6; + return -1; + } else if((((!(a26==1)&&((a1==13)&&((((a6==1)&&((a19==2)&&((input==1)&&((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4))))))&&(a21==12))&&(a17==2))))&&!(a0==1))&&((((a16==9)&&(((a23==1)&&!(a20==1))&&(a11==1)))||!(a23==1))&&(a13==1)))){ + a19 = 5; + a15 = 0; + a9 = 9; + a10 = 0; + a5 = 4; + a16 = 10; + a24 = 1; + return -1; + } else if(((((a16==7)&&(((!(a20==1)&&((a21==10)&&((a2==1)&&(a17==2))))&&(a9==9))&&(a11==1)))&&!(a24==1))&&((!(a14==1)&&((a19==3)&&(!(a7==1)&&((a2==1)&&(((input==5)&&((a5==4)||(a5==5)))&&(a1==13))))))&&(a11==1)))){ + a23 = 1; + a5 = 5; + a4 = 0; + a1 = 14; + a24 = 0; + return 23; + } else if((((a1==12)&&((a17==2)&&((((((a19==2)&&((input==6)&&(a9==8)))&&!(a24==1))&&(a28==1))&&(a13==1))&&(a16==8))))&&((((a5==5)&&((((a13==1)&&!(a24==1))||!(a11==1))||!(a3==1)))&&!(a20==1))&&(a21==12)))){ + a1 = 14; + a18 = 1; + a5 = 4; + a29 = 0; + a19 = 1; + a20 = 1; + a7 = 1; + a21 = 10; + a16 = 7; + return -1; + } else if((((a9==9)&&((a1==14)&&(!(a11==1)||((a12==1)&&!(a8==1)))))&&((((a19==1)&&((a16==8)&&((!(a20==1)&&((a23==1)&&((a6==1)&&(!(a7==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4))))))&&!(a14==1))))&&(a21==10))&&(a17==2)))){ + a3 = 1; + a20 = 1; + a13 = 1; + a16 = 7; + a1 = 12; + a11 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if((((a19==2)&&((a1==13)&&((a16==10)&&((a9==9)&&(((a21==11)&&(a3==1))||(a7==1))))))&&((a17==2)&&(((a20==1)&&(!(a7==1)&&((a11==1)&&(!(a0==1)&&((((a5==5)||(a5==6))&&(input==5))&&(a2==1))))))&&!(a7==1))))){ + a16 = 7; + a19 = 4; + a11 = 1; + a5 = 4; + a28 = 1; + a13 = 1; + a9 = 11; + return -1; + } else if(((!(a18==1)&&(((a16==9)&&((a12==1)&&((a6==1)&&(a17==2))))&&(a21==10)))&&(((a2==1)&&((((a19==2)&&(((a1==13)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==5)))&&!(a20==1)))&&(a28==1))&&!(a0==1)))&&!(a0==1)))){ + a5 = 5; + a9 = 9; + a20 = 1; + a7 = 1; + a27 = 1; + a16 = 7; + a1 = 12; + a10 = 0; + return -1; + } else if((((((a28==1)&&((((a19==2)&&(!(a4==1)&&((input==4)&&(a9==7))))&&!(a20==1))&&(a23==1)))&&(a17==2))&&(a21==12))&&((!(a0==1)&&(!(a7==1)&&((((a5==4)&&(a6==1))&&(a16==7))||(a14==1))))&&(a1==14)))){ + a19 = 1; + a14 = 0; + a1 = 13; + a5 = 6; + a21 = 11; + a16 = 8; + a3 = 1; + a27 = 0; + a20 = 1; + a9 = 8; + return 25; + } else if((((((a6==1)&&(a13==1))&&!(a20==1))&&(a19==2))&&((a17==2)&&((!(a0==1)&&((((a1==13)&&((a28==1)&&(((a12==1)&&(((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10)))&&(input==6)))&&!(a18==1))))&&!(a27==1))&&(a21==12)))&&(a16==9))))){ + a5 = 5; + a9 = 11; + a16 = 7; + a20 = 1; + a11 = 0; + a21 = 11; + a1 = 12; + a18 = 1; + a25 = 1; + return -1; + } else if(((!(a7==1)&&((a21==10)&&(((a9==10)&&((a19==2)&&(input==5)))&&(a17==2))))&&(!(a3==1)||((!(a4==1)&&((((a1==13)&&((((a28==1)&&!(a0==1))||!(a6==1))&&(a16==7)))&&(a20==1))&&(a5==5)))||!(a11==1))))){ + if((a18==1)){ + a19 = 5; + a9 = 9; + a18 = 0; + a21 = 12; + a20 = 0; + a1 = 12; + a28 = 1; + }else{ + a19 = 3; + a5 = 4; + a4 = 0; + a3 = 1; + a26 = 0; + } + return 22; + } else if(((((((((a28==1)&&(a23==1))&&(a1==12))&&(a19==3))&&(a21==12))&&!(a20==1))&&(a17==2))&&(((!(a8==1)&&(((((input==6)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(a28==1))&&(a11==1))&&!(a8==1)))&&!(a26==1))&&(a16==7)))){ + a20 = 1; + a21 = 11; + a26 = 0; + a5 = 4; + a24 = 0; + a19 = 1; + a9 = 10; + return 26; + } else if(((((a20==1)&&(!(a2==1)||(((((a3==1)&&(a1==13))&&!(a24==1))&&!(a7==1))&&!(a26==1))))&&(a19==2))&&((a17==2)&&(((a2==1)&&((a28==1)&&(((a16==7)&&((a5==6)&&(input==3)))&&(a9==10))))&&(a21==10))))){ + a28 = 1; + a6 = 1; + a19 = 3; + a14 = 0; + return 22; + } else if((((a5==6)&&(((((a16==10)&&(((a17==2)&&((a9==8)&&((a1==12)&&(input==4))))&&!(a8==1)))&&(a11==1))&&(a21==11))&&(a19==1)))&&(!(a20==1)&&((!(a4==1)&&((!(a13==1)||(a11==1))||(a7==1)))&&(a2==1))))){ + a9 = 9; + a16 = 8; + a19 = 2; + a11 = 0; + a29 = 1; + a24 = 1; + return -1; + } else if((((((a20==1)&&((a5==4)&&((a23==1)&&((a21==10)&&((input==3)&&(a19==3))))))&&!(a18==1))&&!(a7==1))&&((a16==9)&&((!(a11==1)||(((a14==1)||(((a9==10)&&(a2==1))&&(a17==2)))&&(a6==1)))&&(a1==13))))){ + a16 = 7; + a11 = 1; + a13 = 1; + a1 = 12; + a9 = 7; + a19 = 1; + a8 = 0; + return -1; + } else if(((!(a23==1)||((a8==1)||(((((a16==11)&&((((a5==6)&&(a3==1))&&(a2==1))&&(a17==2)))&&(a1==12))&&(a9==8))||(a14==1))))&&((((a13==1)&&((a21==10)&&((input==4)&&!(a20==1))))&&(a19==1))&&!(a0==1)))){ + a1 = 13; + a16 = 7; + a20 = 1; + a9 = 7; + a29 = 0; + a18 = 1; + return -1; + } else if((((a16==7)&&(((a20==1)&&((((!(a4==1)&&((a1==12)&&((input==5)&&(a17==2))))&&(a9==9))&&!(a8==1))&&!(a27==1)))&&(a21==10)))&&((a13==1)&&(((a8==1)||((a23==1)&&((a13==1)&&(a19==4))))&&(a5==5))))){ + a2 = 1; + a21 = 11; + a27 = 0; + a24 = 0; + a5 = 4; + a1 = 14; + a19 = 3; + a9 = 11; + return 21; + } else if((((a1==12)&&((a12==1)&&(((a13==1)&&((a17==2)&&(((a23==1)&&((input==1)&&(a9==11)))&&(a21==11))))&&(a16==8))))&&(((a5==6)&&(!(a20==1)&&((a19==5)&&((a28==1)&&((a6==1)&&!(a24==1))))))||(a26==1)))){ + if((a15==1)){ + a1 = 14; + a9 = 7; + a21 = 10; + a15 = 1; + a5 = 4; + a16 = 7; + a13 = 0; + a27 = 1; + a19 = 3; + }else{ + a8 = 1; + a21 = 10; + a28 = 0; + a6 = 0; + a19 = 2; + a5 = 4; + a16 = 7; + a20 = 1; + a9 = 8; + } + return -1; + } else if((((a1==12)&&((a17==2)&&((a4==1)||((a16==10)&&((a12==1)&&((a19==3)&&(a13==1)))))))&&((!(a0==1)&&((a21==10)&&((a20==1)&&(((a12==1)&&((a13==1)&&((input==4)&&(a9==8))))&&(a23==1)))))&&(a5==4)))){ + a6 = 1; + a14 = 0; + a26 = 0; + a9 = 7; + a16 = 7; + a19 = 1; + return -1; + } else if(((((a12==1)&&((input==3)&&((((a21==12)&&((a19==5)&&((a16==11)&&(((a9==11)&&((a5==5)&&(a1==14)))&&(a20==1)))))||((a21==12)&&((a19==5)&&((a16==11)&&(((a9==11)&&((a5==6)&&(a1==14)))&&(a20==1))))))||((a21==10)&&(((a16==7)&&(((a9==7)&&((a1==12)&&(a5==4)))&&!(a20==1)))&&(a19==1))))))&&!(a14==1))&&(((a2==1)&&((!(a23==1)||((a17==2)&&(a12==1)))&&!(a24==1)))||(a4==1)))){ + a16 = 7; + a23 = 1; + a13 = 1; + a19 = 1; + a20 = 1; + a1 = 12; + a21 = 10; + a9 = 7; + a26 = 0; + a5 = 4; + return -1; + } else if((((a2==1)&&(!(a4==1)&&((a2==1)&&((((((a21==10)&&(((input==5)&&(((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))))&&(a2==1)))&&(a20==1))&&(a28==1))&&(a1==13))&&(a16==11)))))&&((a17==2)&&(((a6==1)||!(a12==1))&&(a19==4))))){ + a5 = 4; + a24 = 0; + a9 = 7; + a18 = 0; + a6 = 1; + a1 = 12; + a16 = 7; + a19 = 1; + return -1; + } else if((((!(a26==1)&&((a9==8)&&(((a17==2)&&((!(a20==1)&&((a21==10)&&(input==3)))&&!(a24==1)))&&(a28==1))))&&(a1==13))&&(((a19==2)&&(!(a0==1)&&((((a28==1)&&(a5==5))&&(a16==11))||(a0==1))))&&(a12==1)))){ + if((a25==1)){ + a9 = 9; + a1 = 12; + a29 = 1; + a8 = 1; + a20 = 1; + a16 = 7; + a5 = 4; + }else{ + a19 = 4; + a22 = 1; + a2 = 0; + a9 = 11; + a20 = 1; + a21 = 12; + a24 = 1; + a5 = 4; + } + return -1; + } else if((((a6==1)&&(!(a6==1)||((a9==8)&&(a11==1))))&&(((((a3==1)&&(((a11==1)&&((a20==1)&&((a19==5)&&(((a21==12)&&((a1==14)&&(input==3)))&&(a17==2)))))&&(a12==1)))&&!(a26==1))&&(a16==7))&&(a5==5)))){ + a13 = 1; + a21 = 10; + a9 = 7; + a1 = 12; + a24 = 0; + a19 = 1; + a6 = 1; + a5 = 4; + return -1; + } else if((((a21==10)&&(((a1==13)&&((((!(a3==1)||(a6==1))&&!(a24==1))&&!(a14==1))||!(a12==1)))&&(a20==1)))&&((a16==9)&&((((((a3==1)&&(((a5==5)||(a5==6))&&(input==6)))&&(a9==11))&&(a13==1))&&(a17==2))&&(a19==5))))){ + a16 = 8; + a21 = 12; + a24 = 0; + a5 = 4; + a23 = 1; + a9 = 10; + a6 = 1; + return 25; + } else if(((((a17==2)&&((a24==1)||((a18==1)||((((((a2==1)&&(a28==1))&&(a21==11))&&(a1==14))||(a27==1))&&!(a27==1)))))&&(a16==7))&&((a19==2)&&((a20==1)&&(((input==5)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(a28==1)))))){ + a19 = 1; + a21 = 10; + a18 = 0; + a12 = 1; + a5 = 4; + a6 = 1; + a9 = 7; + a1 = 12; + return -1; + } else if((((a28==1)&&(((((((a11==1)&&((a11==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6))))&&!(a20==1))&&!(a27==1))&&(a1==14))&&(a21==11))&&(a13==1)))&&((a19==3)&&((a17==2)&&((a16==7)&&((a9==8)&&((a12==1)&&(a3==1)))))))){ + a21 = 10; + a1 = 13; + a20 = 1; + a5 = 6; + a12 = 1; + a19 = 4; + a9 = 9; + a11 = 1; + return 21; + } else if(((((a6==1)&&((a19==2)&&(((a16==8)&&((a11==1)&&((input==1)&&((((a1==13)&&(a5==6))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==14)))))))&&!(a7==1))))&&(a2==1))&&((a17==2)&&(((!(a20==1)&&((a21==11)&&(a23==1)))||!(a23==1))||!(a6==1))))){ + a16 = 7; + a5 = 4; + a9 = 7; + a20 = 1; + a19 = 1; + a21 = 10; + a0 = 0; + a12 = 1; + a1 = 12; + return -1; + } else if(((!(a4==1)&&(((((((a2==1)&&((input==4)&&(((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6))))))&&(a1==13))&&(a17==2))&&!(a18==1))&&!(a26==1))&&!(a8==1)))&&((a16==10)&&(((a21==12)&&((!(a28==1)||(a13==1))&&(a19==2)))&&!(a20==1))))){ + if((a11==1)){ + a21 = 10; + a11 = 0; + a5 = 4; + a20 = 1; + a22 = 1; + a9 = 7; + }else{ + a19 = 1; + a1 = 12; + a0 = 1; + a12 = 0; + a5 = 5; + a9 = 8; + a20 = 1; + a16 = 7; + a21 = 10; + } + return -1; + } else if((((a28==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&(a1==12)))&&((!(a0==1)&&((((((a19==3)&&(((((a9==7)&&(a6==1))&&(a20==1))&&(a17==2))&&(a16==10)))&&(a11==1))&&(a12==1))&&(a6==1))||(a18==1)))&&(a21==10)))){ + a16 = 7; + a3 = 1; + a7 = 0; + a6 = 1; + a5 = 4; + a19 = 1; + return -1; + } else if((((a21==12)&&((a20==1)&&((a24==1)&&(((!(a3==1)&&((a16==9)&&((a9==9)&&(input==4))))&&(a0==1))&&!(a13==1)))))&&(((a17==2)&&(((a26==1)&&(((a19==3)&&(a23==1))&&(a1==12)))&&(a24==1)))&&(a5==4)))){ + a1 = 14; + a16 = 11; + a6 = 0; + a5 = 5; + a9 = 11; + a19 = 2; + a8 = 1; + a10 = 0; + return -1; + } else if((((((a21==11)&&((!(a26==1)&&(((input==6)&&((a5==4)||(a5==5)))&&(a2==1)))&&(a28==1)))&&(a1==13))&&(a17==2))&&(((!(a20==1)&&((!(a13==1)||((a19==4)&&((a18==1)||(a28==1))))&&(a9==9)))&&(a16==8))&&!(a27==1)))){ + a5 = 4; + a9 = 7; + a0 = 0; + a16 = 7; + a20 = 1; + a19 = 1; + a1 = 12; + a8 = 0; + a11 = 1; + a21 = 10; + return -1; + } else if(((!(a27==1)&&(((a23==1)&&((((a21==11)&&((((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10))))&&(input==6)))&&(a17==2))&&(a20==1)))&&(a1==12)))&&(((!(a24==1)&&((a13==1)&&(!(a27==1)&&((a16==7)&&(a13==1)))))&&(a19==2))&&!(a18==1)))){ + a11 = 1; + a19 = 3; + a9 = 9; + a0 = 0; + a23 = 1; + a21 = 10; + a5 = 4; + a16 = 8; + return 21; + } else if((((a21==12)&&((a2==1)&&(!(a4==1)&&(((a5==5)||(a5==6))&&(input==5)))))&&((a1==13)&&(((a9==10)&&((a19==4)&&(((a16==7)&&((((a6==1)&&((a3==1)||(a4==1)))||!(a23==1))&&(a20==1)))&&!(a4==1))))&&(a17==2))))){ + a7 = 0; + a19 = 1; + a12 = 1; + a13 = 1; + a1 = 14; + a5 = 6; + a16 = 8; + a9 = 8; + return 21; + } else if((((((a17==2)&&((a9==9)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&!(a24==1))&&(a19==3))))&&!(a4==1))&&(a2==1))&&(((a21==12)&&((!(a23==1)||((a1==12)&&((a20==1)&&((a28==1)||(a27==1)))))&&(a16==10)))||!(a11==1)))){ + a19 = 2; + a16 = 7; + a12 = 1; + a5 = 5; + a1 = 13; + a21 = 10; + a4 = 0; + a28 = 1; + return 25; + } else if(((((!(a18==1)&&((a11==1)||!(a13==1)))&&(a19==2))&&(a17==2))&&((a16==11)&&((a21==11)&&((a23==1)&&((a20==1)&&(!(a27==1)&&(!(a0==1)&&(!(a26==1)&&((a1==12)&&((((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(input==5)))))))))))){ + a5 = 6; + a9 = 8; + a1 = 13; + a0 = 0; + a16 = 7; + a19 = 4; + a3 = 1; + a20 = 0; + a27 = 0; + return 21; + } else if((((a5==5)&&(((a20==1)&&((((((a19==2)&&(((a11==1)&&(a1==12))&&(a17==2)))&&(a18==1))&&!(a28==1))&&!(a3==1))&&(a21==10)))&&!(a28==1)))&&((a9==7)&&((((a16==8)&&(input==3))&&!(a28==1))&&!(a23==1))))){ + a9 = 10; + a1 = 14; + a21 = 11; + a19 = 4; + a15 = 1; + a2 = 0; + a22 = 1; + a5 = 6; + a16 = 11; + return 25; + } else if((((((((a9==8)&&((a3==1)&&(!(a8==1)&&((a19==2)&&(input==4)))))&&(a12==1))&&(a5==5))&&!(a20==1))&&(a17==2))&&(((!(a8==1)&&((a1==13)&&(!(a3==1)||((a16==11)&&(a6==1)))))||(a0==1))&&(a21==10)))){ + a29 = 1; + a24 = 1; + a1 = 12; + a5 = 4; + a16 = 7; + a20 = 1; + a8 = 1; + a9 = 7; + return -1; + } else if(((((a17==2)&&(((a4==1)&&(a13==1))&&!(a20==1)))&&(a9==10))&&((a16==8)&&((a19==1)&&((a18==1)&&(!(a3==1)&&((a1==13)&&((!(a3==1)&&((((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&!(a11==1))&&(a21==10)))&&(a14==1))))))))){ + a16 = 7; + a22 = 1; + a19 = 4; + a12 = 0; + a5 = 5; + a20 = 1; + a21 = 11; + a27 = 1; + a1 = 12; + return -1; + } else if(((!(a27==1)&&((((a9==11)&&(!(a18==1)&&(((a2==1)&&((a19==2)&&((a17==2)&&(input==5))))&&!(a18==1))))&&(a1==14))&&(a21==10)))&&(((a5==4)&&((((a0==1)||(a6==1))||!(a23==1))&&!(a20==1)))&&(a16==7)))){ + a20 = 1; + a23 = 1; + a12 = 1; + a1 = 12; + a19 = 1; + a9 = 7; + a24 = 0; + return -1; + } else if((((a19==2)&&((((!(a13==1)||((!(a0==1)&&((a13==1)&&((a13==1)||(a24==1))))&&!(a14==1)))&&(a17==2))&&!(a14==1))&&(a9==7)))&&((a16==10)&&((((a20==1)&&(((a5==5)||(a5==6))&&(input==1)))&&(a1==13))&&(a21==11))))){ + a3 = 1; + a19 = 1; + a11 = 1; + a16 = 7; + a13 = 1; + a5 = 4; + a21 = 10; + a1 = 12; + return -1; + } else if((((a0==1)||(!(a11==1)||(((a1==12)&&(((a12==1)&&((a12==1)&&(a16==8)))||(a4==1)))&&!(a18==1))))&&((((a21==10)&&((a5==6)&&((a9==8)&&(((input==1)&&(a19==4))&&(a17==2)))))&&!(a20==1))&&!(a27==1)))){ + a23 = 1; + a1 = 13; + a2 = 1; + a20 = 1; + a19 = 3; + a5 = 4; + a0 = 0; + a16 = 11; + a9 = 10; + return 25; + } else if(((((a1==13)&&(!(a26==1)&&(!(a14==1)&&(((a13==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&(a9==11)))&&(a21==12)))))&&(a17==2))&&((a19==3)&&(((a20==1)&&((((a16==7)&&(a3==1))&&!(a14==1))||(a14==1)))||!(a3==1))))){ + a18 = 0; + a0 = 0; + a21 = 10; + a16 = 9; + a26 = 0; + a19 = 5; + a5 = 5; + return 21; + } else if(((((((((a28==1)&&(a16==8))&&(a20==1))||!(a11==1))&&(a1==12))&&(a28==1))&&!(a24==1))&&(((((a9==11)&&(((a17==2)&&((a21==11)&&((a19==5)&&(input==6))))&&(a5==4)))&&(a23==1))&&(a6==1))&&(a2==1)))){ + a21 = 10; + a12 = 1; + a11 = 1; + a8 = 0; + a16 = 7; + a9 = 7; + a19 = 1; + return -1; + } else if(((((((a16==10)&&((a0==1)&&((a1==12)&&((a12==1)&&(a17==2)))))&&!(a23==1))&&(a19==3))&&(a5==4))&&((!(a23==1)&&((!(a3==1)&&((((a21==10)&&(input==3))&&(a9==8))&&!(a28==1)))&&(a20==1)))&&(a24==1)))){ + a9 = 11; + a13 = 0; + a25 = 0; + a19 = 2; + a29 = 1; + a16 = 7; + a5 = 6; + return 26; + } else if((((a5==6)&&((a19==1)&&((a20==1)&&(((a9==8)&&((a3==1)&&(a16==7)))&&!(a7==1)))))&&((!(a14==1)&&((a1==12)&&((a2==1)&&(((((a17==2)&&(input==4))&&!(a26==1))&&(a11==1))&&(a21==12)))))&&(a11==1)))){ + a5 = 4; + a23 = 1; + a21 = 10; + a14 = 0; + a3 = 1; + a9 = 7; + return -1; + } else if(((((a20==1)&&((a3==1)&&(((((a4==1)||((a3==1)&&!(a18==1)))&&(a21==10))||!(a6==1))&&(a3==1))))&&(a5==4))&&((a19==5)&&(((a2==1)&&(((a1==13)&&((a17==2)&&(input==4)))&&(a9==11)))&&(a16==11))))){ + a9 = 7; + a16 = 7; + a26 = 0; + a19 = 1; + a14 = 0; + a1 = 12; + a24 = 0; + return -1; + } else if(((((a20==1)&&((a13==1)&&((a16==7)&&(!(a24==1)&&((a13==1)&&((a1==13)&&((a5==6)&&(a3==1))))))))||(a24==1))&&(!(a0==1)&&((a19==4)&&((a17==2)&&((a23==1)&&((a21==10)&&((a9==7)&&(input==5))))))))){ + a0 = 0; + a9 = 8; + a21 = 11; + a5 = 4; + a1 = 14; + a24 = 0; + a18 = 0; + return 21; + } else if(((((a28==1)&&((((a17==2)&&(input==1))&&!(a7==1))&&!(a24==1)))&&(a9==8))&&(!(a20==1)&&(((((a1==12)&&((((a3==1)&&((a6==1)&&(a5==5)))&&(a3==1))||(a0==1)))&&(a19==5))&&(a21==12))&&(a16==8))))){ + a20 = 1; + a19 = 2; + a21 = 10; + a2 = 0; + a5 = 6; + a18 = 1; + a8 = 1; + a16 = 7; + return -1; + } else if(((((a23==1)&&(!(a7==1)&&((a1==14)&&((a13==1)&&((a21==12)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==4)))))))&&(a16==10))&&((a17==2)&&((!(a4==1)&&((a19==2)&&((a7==1)||((a20==1)&&(a6==1)))))||(a7==1))))){ + a16 = 7; + a19 = 1; + a0 = 0; + a27 = 0; + a21 = 10; + a9 = 7; + a14 = 0; + a5 = 4; + a1 = 12; + return -1; + } else if(((((a6==1)&&(((a19==4)&&((a20==1)&&((a21==11)&&(a2==1))))||!(a6==1)))||(a7==1))&&((a17==2)&&((((a1==13)&&((a9==11)&&(((a16==11)&&(((a5==5)||(a5==6))&&(input==4)))&&!(a0==1))))&&!(a7==1))&&(a11==1))))){ + if((a7==1)){ + a16 = 7; + a20 = 0; + a23 = 1; + a24 = 0; + a19 = 5; + a11 = 1; + a5 = 4; + a1 = 14; + }else{ + a1 = 14; + a27 = 0; + a9 = 8; + a19 = 2; + a7 = 0; + a21 = 12; + a3 = 1; + a5 = 5; + } + return 25; + } else if(((!(a28==1)&&(((((((input==3)&&((a5==4)||(a5==5)))&&(a17==2))&&!(a3==1))&&(a16==7))&&!(a13==1))&&(a4==1)))&&((a4==1)&&((a21==12)&&(((a20==1)&&((a1==12)&&(((a3==1)&&(a9==10))&&(a26==1))))&&(a19==1)))))){ + a5 = 5; + a2 = 0; + a22 = 1; + a1 = 14; + a9 = 9; + a27 = 1; + a21 = 10; + return -1; + } else if((((((a11==1)&&((a16==7)&&(!(a4==1)&&(((a9==8)&&((!(a4==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3)))&&(a17==2)))&&!(a27==1)))))&&(a19==2))&&(a3==1))&&(((((a12==1)&&(a21==10))&&(a20==1))||(a24==1))&&(a1==13)))){ + if((a4==1)){ + a9 = 10; + a0 = 0; + a5 = 5; + a18 = 0; + a4 = 0; + a1 = 14; + a16 = 8; + a20 = 0; + }else{ + a5 = 4; + a6 = 1; + a23 = 1; + a9 = 11; + } + return 23; + } else if((((((a14==1)||((a3==1)&&((a18==1)||(a12==1))))||!(a11==1))&&(a20==1))&&((a19==1)&&((a16==7)&&((a1==13)&&((a17==2)&&(((a9==9)&&(((((a5==4)||(a5==5))&&(input==3))&&(a21==12))&&(a28==1)))&&!(a14==1)))))))){ + a2 = 1; + a23 = 1; + a9 = 7; + a28 = 1; + a1 = 12; + a5 = 5; + a16 = 9; + a21 = 10; + return 21; + } else if((((a17==2)&&(((a3==1)&&((a21==10)&&((((a16==7)&&(a11==1))||!(a23==1))||(a26==1))))&&!(a8==1)))&&(((a19==5)&&(((a23==1)&&(((input==6)&&(((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))&&!(a18==1)))&&(a20==1)))&&(a1==12)))){ + a13 = 1; + a2 = 1; + a19 = 1; + a9 = 7; + a18 = 0; + a5 = 4; + return -1; + } else if((((a3==1)&&((!(a18==1)&&(!(a4==1)&&(((a19==2)&&(((input==1)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(a1==14)))&&!(a18==1))))&&(a21==12)))&&((((a17==2)&&(((a23==1)&&(a28==1))&&(a20==1)))&&(a16==10))&&!(a8==1)))){ + a21 = 10; + a1 = 12; + a9 = 7; + a27 = 0; + a16 = 7; + a19 = 1; + a18 = 0; + a5 = 4; + a26 = 0; + return -1; + } else if((((a18==1)||((((a2==1)&&!(a27==1))&&(a23==1))||!(a23==1)))&&((((a9==9)&&((a21==10)&&(((a1==14)&&(!(a4==1)&&((a19==5)&&(((input==4)&&((a5==5)||(a5==6)))&&(a16==7)))))&&!(a14==1))))&&!(a20==1))&&(a17==2)))){ + a7 = 0; + a9 = 7; + a11 = 1; + a5 = 4; + a23 = 1; + a19 = 1; + a1 = 12; + a20 = 1; + return -1; + } else if((((((a19==4)&&(!(a14==1)&&((a12==1)&&((a16==8)&&(((a21==12)&&((a27==1)||(a28==1)))&&(a5==6))))))&&(a2==1))&&!(a0==1))&&(((!(a20==1)&&(((input==5)&&(a9==10))&&(a13==1)))&&(a1==13))&&(a17==2)))){ + if((a1==12)){ + a16 = 7; + a29 = 1; + a21 = 10; + a2 = 0; + a9 = 9; + a19 = 1; + a5 = 5; + a25 = 1; + a20 = 1; + a1 = 12; + }else{ + a21 = 10; + a5 = 4; + a16 = 7; + a7 = 1; + a11 = 0; + a9 = 7; + a1 = 12; + a19 = 1; + a15 = 1; + a20 = 1; + } + return -1; + } else if((((!(a0==1)&&((((a19==4)&&(a13==1))||(a18==1))&&(a17==2)))&&!(a20==1))&&(((a21==11)&&((a3==1)&&(!(a24==1)&&(!(a8==1)&&(((((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))&&(input==5))&&(a1==13))&&(a3==1))))))&&(a16==10)))){ + if((a19==2)){ + a6 = 0; + a9 = 8; + a5 = 5; + a1 = 12; + a20 = 1; + a19 = 2; + a0 = 1; + a21 = 12; + a26 = 1; + }else{ + a1 = 12; + a29 = 0; + a3 = 0; + a5 = 5; + a19 = 1; + a16 = 7; + a9 = 7; + a21 = 10; + a20 = 1; + a2 = 0; + } + return 21; + } else if(((((((a4==1)||(!(a24==1)&&(((a9==10)&&(a13==1))||!(a11==1))))&&!(a4==1))&&(a1==14))&&(a20==1))&&((!(a0==1)&&((a17==2)&&((a21==11)&&((a16==7)&&(((input==4)&&((a5==5)||(a5==6)))&&!(a4==1))))))&&(a19==2)))){ + a19 = 1; + a21 = 10; + a9 = 7; + a11 = 1; + a1 = 12; + a13 = 1; + a5 = 4; + a23 = 1; + return -1; + } else if(((((!(a3==1)||(!(a26==1)&&((a17==2)&&(!(a18==1)&&((a6==1)||!(a6==1))))))||(a18==1))&&(a1==13))&&((a21==11)&&((a16==9)&&((!(a27==1)&&((a20==1)&&((((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10))))&&(input==5))))&&(a19==1)))))){ + a16 = 7; + a21 = 10; + a5 = 4; + a6 = 1; + a9 = 7; + a11 = 1; + a1 = 12; + a8 = 0; + return -1; + } else if((((((a17==2)&&((a16==10)&&(!(a20==1)&&((a28==1)&&((a11==1)&&((a19==5)&&((input==6)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))))))))&&(a2==1))&&(a21==12))&&(!(a18==1)&&((a1==12)&&(((a23==1)&&(a2==1))&&!(a27==1)))))){ + a19 = 1; + a21 = 10; + a4 = 1; + a20 = 1; + a5 = 6; + a1 = 14; + a16 = 7; + a29 = 1; + a25 = 1; + a9 = 11; + return 21; + } else if((((a17==2)&&((((((((a2==1)&&(((input==1)&&(((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))))&&(a16==10)))&&(a23==1))&&(a1==14))&&!(a14==1))&&!(a20==1))&&(a2==1))&&(a11==1)))&&((((a19==3)&&(a11==1))&&(a21==11))&&!(a0==1)))){ + if((a6==1)){ + a5 = 5; + a16 = 8; + a10 = 0; + a12 = 0; + a1 = 12; + a19 = 1; + a7 = 1; + a9 = 10; + }else{ + a9 = 11; + a25 = 1; + a20 = 1; + a16 = 7; + a19 = 1; + a21 = 10; + a29 = 1; + a5 = 5; + a15 = 0; + } + return 26; + } else if(((((a1==13)&&((a12==1)&&((((a11==1)&&((a17==2)&&(!(a7==1)&&((((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10))))&&(input==6)))))&&(a21==11))&&(a19==4))))&&!(a14==1))&&((!(a27==1)&&((a16==8)&&(!(a20==1)&&(a6==1))))&&!(a8==1)))){ + a2 = 1; + a20 = 1; + a7 = 0; + a5 = 4; + a9 = 9; + a11 = 1; + a16 = 7; + return 25; + } else if((((a21==11)&&((a16==10)&&(((a17==2)&&(((a5==4)||(a5==5))&&(input==5)))&&!(a18==1))))&&(((((((((a24==1)||((a2==1)&&(a1==14)))&&(a3==1))&&(a9==9))&&(a12==1))&&!(a24==1))||!(a11==1))&&(a19==1))&&(a20==1)))){ + a3 = 1; + a16 = 7; + a19 = 4; + a5 = 5; + a2 = 1; + a8 = 0; + a9 = 7; + a1 = 13; + return 22; + } else if((((((((!(a7==1)&&((((a3==1)&&(a5==5))&&!(a14==1))&&(a16==8)))&&(a11==1))&&(a9==10))&&(a1==12))&&!(a27==1))&&!(a20==1))&&((a2==1)&&((a21==10)&&(((a19==1)&&((a17==2)&&(input==5)))&&!(a4==1)))))){ + a12 = 1; + a2 = 1; + a20 = 1; + a9 = 7; + a8 = 0; + a16 = 7; + a5 = 4; + return -1; + } else if(((((((((a17==2)&&((!(a20==1)&&(input==5))&&(a16==8)))&&(a1==13))&&(a9==11))&&!(a8==1))&&!(a27==1))&&!(a27==1))&&((((a26==1)||((((a19==2)&&(a13==1))||(a18==1))&&(a21==11)))&&(a5==5))||(a14==1)))){ + a9 = 7; + a20 = 1; + a1 = 14; + a21 = 12; + a5 = 4; + a12 = 1; + a6 = 1; + a19 = 4; + a13 = 1; + return 22; + } else if((((((((a5==5)&&(!(a23==1)||(a2==1)))&&!(a20==1))&&(a21==12))&&(a16==9))||(a7==1))&&(!(a14==1)&&((a3==1)&&(((((a6==1)&&((a13==1)&&((a1==13)&&(input==3))))&&(a9==10))&&(a19==5))&&(a17==2)))))){ + a2 = 0; + a27 = 1; + a19 = 1; + a22 = 1; + a21 = 10; + a16 = 7; + a5 = 4; + return -1; + } else if(((((a20==1)&&((a21==11)&&((((a13==1)&&((input==6)&&((((a5==6)&&(a1==12))&&(a9==11))||((a9==7)&&((a1==13)&&(a5==4))))))&&(a17==2))&&(a16==11))))&&(a11==1))&&(!(a13==1)||(!(a18==1)&&((((a2==1)||!(a23==1))&&(a19==2))||!(a23==1)))))){ + a16 = 7; + a5 = 4; + a18 = 0; + a19 = 1; + a21 = 10; + a3 = 1; + a1 = 12; + a9 = 7; + a24 = 0; + return -1; + } else if((((a28==1)&&((a9==9)&&((a21==11)&&(((((a28==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a16==9)))&&(a1==12))&&(a19==4))&&!(a27==1)))))&&(!(a4==1)&&((((a4==1)||(!(a20==1)&&(a6==1)))&&(a17==2))||(a0==1))))){ + if((a15==1)){ + a5 = 5; + a1 = 14; + a9 = 8; + a14 = 1; + a21 = 12; + a7 = 1; + a16 = 7; + a25 = 1; + a19 = 3; + }else{ + a5 = 4; + a9 = 8; + a16 = 7; + a28 = 0; + a12 = 0; + a21 = 12; + a19 = 1; + a10 = 1; + } + return -1; + } else if(((((a1==13)&&(((!(a20==1)&&(((a11==1)&&(((a5==5)||(a5==6))&&(input==6)))&&(a28==1)))&&(a16==8))&&(a19==4)))&&(a9==7))&&((((a12==1)&&(((a24==1)||((a17==2)&&(a23==1)))&&(a2==1)))&&!(a8==1))&&(a21==10)))){ + a16 = 7; + a27 = 0; + a20 = 1; + a26 = 0; + a19 = 2; + a5 = 5; + a9 = 9; + return 25; + } else if((((((a21==10)&&(!(a3==1)||((a17==2)&&(a6==1))))||!(a2==1))&&(a19==3))&&((a1==14)&&(((a12==1)&&((((a9==9)&&(((((a5==4)||(a5==5))&&(input==6))&&!(a14==1))&&!(a4==1)))&&!(a20==1))&&(a16==10)))&&(a11==1))))){ + a5 = 4; + a21 = 12; + a9 = 8; + a20 = 1; + a15 = 1; + a4 = 1; + a16 = 7; + a19 = 5; + a18 = 1; + return 25; + } else if(((!(a7==1)&&(((((a17==2)&&((((a1==12)&&(((a2==1)&&!(a24==1))||!(a13==1)))&&(a21==10))&&!(a20==1)))&&(a5==5))&&(a19==3))&&!(a26==1)))&&(!(a14==1)&&((a16==7)&&((a11==1)&&((a9==9)&&(input==4))))))){ + a13 = 1; + a20 = 1; + a8 = 0; + a5 = 4; + a0 = 0; + a19 = 1; + a9 = 7; + return -1; + } else if((((a21==10)&&((a5==6)&&(!(a24==1)&&(((a23==1)&&(a1==12))&&(a13==1)))))&&((a13==1)&&((a2==1)&&(!(a18==1)&&(!(a8==1)&&((a20==1)&&((((a17==2)&&((a19==1)&&(input==1)))&&(a9==10))&&(a16==10))))))))){ + a7 = 0; + a27 = 0; + a24 = 0; + a5 = 4; + a19 = 2; + a21 = 11; + a1 = 14; + a16 = 7; + return 22; + } else if((((a9==11)&&(!(a24==1)&&((a23==1)&&(((a21==12)&&(input==3))&&(a16==10)))))&&((a3==1)&&(((a19==5)&&((!(a3==1)||(((!(a20==1)&&((a5==5)&&(a11==1)))||!(a12==1))&&(a23==1)))&&(a17==2)))&&(a1==12))))){ + a25 = 1; + a9 = 10; + a16 = 11; + a20 = 1; + a10 = 1; + a13 = 0; + a19 = 1; + return -1; + } else if(((((!(a23==1)&&((((input==4)&&(a17==2))&&(a0==1))&&(a19==4)))&&(a21==11))&&(a9==9))&&((a8==1)&&(((a5==4)&&((a7==1)&&(((((a11==1)&&!(a2==1))&&!(a20==1))&&(a16==8))&&(a8==1))))&&(a1==14))))){ + a19 = 1; + a1 = 13; + a0 = 1; + a21 = 10; + a15 = 0; + a16 = 7; + a9 = 8; + a7 = 1; + return -1; + } else if((((a4==1)||((a9==11)&&(((a14==1)||((a2==1)&&(((a5==4)&&((((a2==1)&&(a6==1))&&(a19==4))&&(a21==12)))||!(a2==1))))&&(a1==14))))&&(((((input==6)&&(a16==9))&&(a12==1))&&(a20==1))&&(a17==2)))){ + a9 = 10; + a1 = 13; + a16 = 10; + a14 = 0; + a4 = 0; + a5 = 5; + a19 = 3; + a11 = 1; + return 21; + } else if((((a1==12)&&(((a17==2)&&((a21==12)&&((((a11==1)&&((input==3)&&((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11)))))&&(a19==4))&&!(a14==1))))&&!(a20==1)))&&(!(a0==1)&&(((((a23==1)&&(a6==1))&&(a16==8))&&!(a8==1))&&(a11==1))))){ + if((a28==1)){ + a23 = 0; + a21 = 11; + a9 = 11; + a14 = 1; + a5 = 6; + a16 = 7; + a1 = 14; + a11 = 0; + }else{ + a5 = 5; + a10 = 1; + a14 = 1; + a19 = 1; + a21 = 11; + a9 = 11; + a16 = 7; + a1 = 13; + a22 = 0; + } + return -1; + } else if((((a20==1)&&((a16==8)&&((a27==1)||((((a19==5)&&((((a21==12)&&(a23==1))||(a24==1))&&!(a0==1)))&&(a9==8))&&!(a26==1)))))&&((a5==6)&&((!(a24==1)&&(((a1==12)&&(input==5))&&(a17==2)))&&(a12==1))))){ + a4 = 0; + a28 = 1; + a16 = 7; + a5 = 4; + a9 = 7; + a19 = 1; + a18 = 0; + a21 = 10; + return -1; + } else if(((((a5==5)&&((a16==10)&&((((a21==12)&&(!(a3==1)||(((a3==1)&&(a6==1))||!(a6==1))))||!(a28==1))&&(a9==10))))&&!(a24==1))&&((a2==1)&&(((a19==5)&&(!(a20==1)&&((a17==2)&&(input==3))))&&(a1==14))))){ + a2 = 0; + a10 = 1; + a21 = 10; + a28 = 0; + a1 = 13; + a19 = 2; + return -1; + } else if((((a16==8)&&(((a1==13)&&(!(a8==1)&&(((!(a14==1)&&((a9==10)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a28==1))&&(a21==11))))&&(a20==1)))&&(!(a6==1)||(!(a24==1)&&((a17==2)&&((a19==5)&&((a23==1)&&(a12==1)))))))){ + a9 = 7; + a5 = 4; + a0 = 0; + a4 = 0; + a1 = 12; + a19 = 1; + a16 = 7; + a24 = 0; + a21 = 10; + return -1; + } else if((((a16==9)&&((((a13==1)&&((a1==14)&&((a3==1)&&(a13==1))))&&(a9==7))&&!(a7==1)))&&((a21==11)&&((a3==1)&&(((a17==2)&&((a28==1)&&((!(a20==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))&&(a19==1))))&&!(a26==1)))))){ + a16 = 8; + a18 = 1; + a1 = 12; + a21 = 10; + a9 = 9; + a25 = 1; + a2 = 0; + a5 = 5; + return -1; + } else if(((((a1==12)&&((a3==1)&&((((input==1)&&!(a20==1))&&!(a4==1))&&(a9==8))))&&(a16==10))&&((a17==2)&&((!(a24==1)&&(!(a28==1)||(((((a3==1)&&(a5==5))&&(a19==3))||!(a23==1))&&(a3==1))))&&(a21==11))))){ + if((a28==1)){ + a15 = 1; + a6 = 0; + a5 = 4; + a9 = 7; + a16 = 9; + a26 = 1; + a19 = 2; + }else{ + a19 = 2; + a21 = 12; + a8 = 1; + a5 = 4; + a9 = 9; + a14 = 1; + a16 = 9; + a13 = 0; + a1 = 13; + } + return -1; + } else if(((((a19==4)&&(((a21==12)&&(!(a26==1)&&((a3==1)&&((((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))&&(input==5))&&(a16==11)))))&&(a23==1)))&&(a20==1))&&(((!(a3==1)||((a0==1)||((a12==1)&&(a1==12))))&&(a12==1))&&(a17==2)))){ + a5 = 5; + a1 = 13; + a19 = 5; + a27 = 0; + a11 = 1; + a24 = 0; + a9 = 10; + return 25; + } else if((((a12==1)&&((a3==1)&&((a19==1)&&((a6==1)&&((a3==1)&&((((input==3)&&((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8))))&&(a16==11))&&(a23==1)))))))&&((((a20==1)&&(((a12==1)&&(a21==11))&&(a1==13)))&&(a17==2))&&!(a26==1)))){ + a1 = 12; + a13 = 1; + a21 = 10; + a24 = 0; + a16 = 7; + a28 = 1; + a9 = 7; + a5 = 4; + return -1; + } else if(((!(a2==1)||(((a17==2)&&((a21==11)&&(a28==1)))||(a27==1)))&&(!(a18==1)&&(((((a20==1)&&((!(a8==1)&&((a5==4)&&(((input==3)&&(a1==14))&&(a9==11))))&&(a16==7)))&&(a3==1))&&(a19==4))&&!(a18==1))))){ + a23 = 1; + a1 = 12; + a0 = 0; + a24 = 0; + a19 = 1; + a9 = 7; + a21 = 10; + return -1; + } else if((((a3==1)&&((a13==1)&&((((((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==6))&&(a17==2))&&!(a26==1))))&&((a7==1)||((a19==3)&&(((((((a12==1)&&(a16==7))&&(a1==14))&&!(a20==1))&&(a21==12))&&!(a14==1))&&!(a18==1)))))){ + a26 = 0; + a3 = 1; + a9 = 9; + a21 = 10; + a16 = 11; + a5 = 4; + a20 = 1; + a12 = 1; + a19 = 4; + return 22; + } else if(((((a6==1)&&((a12==1)&&(!(a24==1)&&((((a21==12)&&(((((a9==7)&&((a1==13)&&(a5==5)))||(((a9==11)&&((a5==6)&&(a1==12)))||((a9==7)&&((a1==13)&&(a5==4)))))&&(input==1))&&!(a20==1)))&&(a19==4))&&(a3==1)))))&&(a23==1))&&(((a24==1)||((a28==1)&&(a17==2)))&&(a16==10)))){ + if((a4==1)){ + a1 = 12; + a21 = 10; + a16 = 7; + a9 = 7; + a7 = 1; + a8 = 1; + a5 = 5; + a20 = 1; + a19 = 1; + a29 = 0; + }else{ + a16 = 11; + a1 = 12; + a5 = 4; + a19 = 3; + a18 = 1; + a9 = 9; + a3 = 0; + a20 = 1; + a21 = 11; + } + return 21; + } else if((((a21==11)&&(((((a23==1)&&(((a6==1)&&(((a5==4)||(a5==5))&&(input==6)))&&!(a26==1)))&&!(a20==1))&&(a23==1))&&(a1==13)))&&((((a17==2)&&((a26==1)||(((a12==1)&&(a16==8))&&(a9==7))))&&(a19==4))&&!(a4==1)))){ + a21 = 10; + a4 = 0; + a20 = 1; + a5 = 5; + a19 = 2; + a9 = 9; + a16 = 7; + a11 = 1; + return 25; + } else if((((a6==1)&&((a28==1)&&((!(a20==1)&&((a3==1)&&(((a5==4)||(a5==5))&&(input==5))))&&(a1==14))))&&((a19==2)&&(((a21==12)&&((((((a17==2)&&(a11==1))&&!(a26==1))||(a7==1))&&(a16==8))&&(a9==8)))&&!(a18==1))))){ + a25 = 0; + a9 = 7; + a5 = 6; + a19 = 3; + a29 = 1; + a24 = 1; + a1 = 12; + return -1; + } else if((((a24==1)||(!(a13==1)||((a1==14)&&(((a4==1)||((a14==1)||((((!(a13==1)||(a6==1))&&(a11==1))&&!(a20==1))&&(a16==9))))&&(a17==2)))))&&((((((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==4))&&(a21==11))&&(a19==5)))){ + if((a17==4)){ + a22 = 1; + a27 = 1; + a5 = 6; + a16 = 7; + a1 = 12; + a8 = 1; + a19 = 2; + a9 = 10; + a20 = 1; + a21 = 10; + }else{ + a9 = 11; + a21 = 10; + a5 = 6; + a0 = 1; + a18 = 1; + a1 = 13; + a22 = 1; + a20 = 1; + a16 = 8; + } + return -1; + } else if((((a1==13)&&((a6==1)&&((((input==6)&&((a5==4)||(a5==5)))&&(a20==1))&&!(a18==1))))&&((a19==3)&&(((a8==1)||((((!(a13==1)||(((a16==11)&&(a6==1))||!(a3==1)))&&(a2==1))&&(a17==2))&&(a9==11)))&&(a21==11))))){ + a28 = 1; + a5 = 5; + a19 = 2; + a14 = 0; + a21 = 12; + a9 = 7; + a7 = 0; + a1 = 12; + return 23; + } else if(((((((((a20==1)&&((a9==8)&&((((a6==1)&&(((a5==4)||(a5==5))&&(input==3)))&&!(a4==1))&&(a3==1))))&&(a3==1))&&(a17==2))&&!(a8==1))&&(a19==3))&&(a16==9))&&((a21==11)&&(((a1==14)&&(a3==1))||(a27==1))))){ + a19 = 1; + a21 = 10; + a1 = 12; + a12 = 1; + a9 = 7; + a5 = 4; + a16 = 7; + a3 = 1; + return -1; + } else if((((((!(a8==1)&&(((a21==12)&&((((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(input==6)))&&(a12==1)))&&!(a27==1))&&(a1==14))&&(a19==3))&&((a17==2)&&(((a16==7)&&(!(a4==1)&&((!(a3==1)||(a23==1))||!(a2==1))))&&(a20==1))))){ + a9 = 9; + a28 = 1; + a5 = 5; + a21 = 10; + a19 = 5; + a23 = 1; + a16 = 9; + a24 = 0; + return 25; + } else if(((((((a8==1)||((a26==1)||(((a21==12)&&(a2==1))&&(a17==2))))&&(a20==1))&&(a19==1))||!(a6==1))&&((a1==12)&&((((((a16==9)&&((input==3)&&(a5==6)))&&!(a26==1))&&!(a7==1))&&(a3==1))&&(a9==8))))){ + a1 = 13; + a5 = 4; + a27 = 0; + a21 = 10; + a18 = 0; + a16 = 8; + a19 = 5; + a9 = 7; + a24 = 0; + return 25; + } else if((((!(a14==1)&&((a9==9)&&(((((a1==14)&&((input==4)&&((a5==4)||(a5==5))))&&!(a27==1))&&(a19==4))&&(a17==2))))&&(a23==1))&&((a13==1)&&((a20==1)&&((!(a26==1)&&((a21==11)&&((a13==1)&&!(a24==1))))&&(a16==9)))))){ + a5 = 4; + a19 = 1; + a16 = 7; + a1 = 12; + a21 = 10; + a3 = 1; + a9 = 7; + a13 = 1; + a7 = 0; + return -1; + } else if(((((((a19==1)&&((a3==1)||!(a6==1)))&&(a20==1))&&(a9==8))||(a24==1))&&((a1==14)&&(((a5==5)&&((a28==1)&&(!(a26==1)&&((a16==7)&&(!(a26==1)&&(!(a18==1)&&((input==5)&&(a17==2))))))))&&(a21==12))))){ + a5 = 4; + a21 = 10; + a7 = 0; + a1 = 12; + a23 = 1; + a8 = 0; + a9 = 7; + return -1; + } else if((((a8==1)||((((a11==1)||(a24==1))&&(a17==2))||(a8==1)))&&((((a9==7)&&((a20==1)&&(((a6==1)&&((((a1==13)&&((input==1)&&(a5==5)))&&(a16==10))&&(a21==12)))&&(a19==2))))&&!(a8==1))&&!(a18==1)))){ + if((a7==1)){ + a21 = 10; + a20 = 0; + a28 = 1; + a19 = 5; + a7 = 0; + a9 = 11; + a1 = 12; + a2 = 1; + a16 = 8; + }else{ + a5 = 6; + a16 = 7; + a26 = 0; + a21 = 10; + a1 = 14; + a9 = 10; + a27 = 0; + a7 = 0; + } + return 21; + } else if(((!(a7==1)&&(((a1==14)&&((a16==8)&&((a19==1)&&((a17==2)&&((!(a26==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&(a20==1))))))&&!(a8==1)))&&((!(a4==1)&&(((a9==9)&&((a23==1)||!(a23==1)))&&(a21==12)))&&(a12==1)))){ + a28 = 1; + a5 = 4; + a18 = 0; + a16 = 7; + a9 = 7; + a21 = 10; + a1 = 12; + a13 = 1; + return -1; + } else if((((((a27==1)||((((a28==1)&&(a1==12))&&(a5==4))||!(a2==1)))||!(a12==1))&&!(a20==1))&&(((a12==1)&&((((!(a27==1)&&((a21==12)&&((input==1)&&(a19==5))))&&(a17==2))&&(a9==10))&&(a16==10)))&&!(a7==1)))){ + a9 = 9; + a16 = 8; + a21 = 10; + a1 = 13; + a5 = 5; + a15 = 1; + a10 = 0; + a13 = 0; + return -1; + } else if((((!(a4==1)&&((a1==12)&&((((a16==9)&&((a17==2)&&(a28==1)))||(a27==1))&&(a6==1))))&&(a11==1))&&((a5==4)&&((((a21==10)&&((((a19==2)&&(input==6))&&(a12==1))&&!(a20==1)))&&!(a27==1))&&(a9==8))))){ + a16 = 7; + a11 = 0; + a28 = 0; + a5 = 5; + a20 = 1; + a9 = 11; + a3 = 0; + return -1; + } else if((((a21==11)&&((a3==1)&&(!(a26==1)&&(!(a27==1)&&((((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(input==6))))))&&(((a18==1)||(((((((a3==1)&&!(a8==1))&&(a12==1))&&(a1==12))&&(a17==2))&&(a20==1))&&(a19==2)))&&(a16==7)))){ + a6 = 1; + a23 = 1; + a21 = 10; + a1 = 13; + a16 = 8; + a24 = 0; + a5 = 5; + a9 = 11; + return 22; + } else if((((!(a6==1)||(((a12==1)&&((a8==1)||((a17==2)&&((a27==1)||(((a7==1)||((a1==13)&&(a13==1)))&&(a16==9))))))&&!(a20==1)))&&(a19==5))&&((((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==4))&&!(a8==1))&&(a21==10)))){ + a8 = 1; + a19 = 1; + a2 = 0; + a9 = 8; + a5 = 5; + a1 = 14; + a16 = 7; + a20 = 1; + return -1; + } else if((((((a21==10)&&((a20==1)&&(((a3==1)||(a14==1))&&(a13==1))))&&(a1==12))||(a14==1))&&(!(a18==1)&&((a13==1)&&((a16==7)&&(!(a0==1)&&((((input==4)&&(((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))&&(a19==5))&&(a17==2)))))))){ + a19 = 1; + a13 = 1; + a9 = 7; + a24 = 0; + a8 = 0; + a5 = 4; + return -1; + } else if((((((((a26==1)||((a16==7)&&((a7==1)||(a11==1))))&&(a28==1))&&(a1==12))||(a4==1))&&(a19==3))&&((a21==12)&&((!(a7==1)&&(!(a4==1)&&((((input==1)&&(a5==5))&&(a9==9))&&!(a20==1))))&&(a17==2))))){ + a1 = 13; + a27 = 0; + a23 = 1; + a9 = 7; + a19 = 2; + a21 = 10; + a16 = 11; + a0 = 0; + a20 = 1; + return 25; + } else if((((a1==13)&&((a16==10)&&((((!(a0==1)&&(((((a5==6)&&(input==1))&&(a6==1))&&(a17==2))&&!(a0==1)))&&!(a0==1))&&(a28==1))&&!(a18==1))))&&((((a21==10)&&((a19==4)&&(a12==1)))&&(a9==11))&&!(a20==1)))){ + if((a13==1)){ + a22 = 1; + a1 = 12; + a25 = 0; + a13 = 0; + a20 = 1; + a16 = 7; + a9 = 10; + a19 = 2; + }else{ + a28 = 0; + a16 = 8; + a21 = 11; + a9 = 10; + a23 = 0; + a20 = 1; + a25 = 0; + } + return -1; + } else if(((!(a24==1)&&(((a21==10)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==6)))&&(a1==12)))&&(((a2==1)&&((((((a19==4)&&((a20==1)&&((a13==1)&&(a17==2))))&&(a16==7))||(a7==1))||(a18==1))||!(a12==1)))&&(a2==1)))){ + a6 = 1; + a5 = 5; + a8 = 0; + a21 = 11; + a1 = 14; + a28 = 1; + a9 = 8; + a19 = 3; + return 23; + } else if((((a16==7)&&(((((a26==1)&&((a21==12)&&(!(a2==1)&&((a11==1)&&(a19==2)))))&&(a14==1))&&(a9==7))&&(a26==1)))&&((a17==2)&&((!(a20==1)&&((((input==1)&&(a5==6))&&!(a28==1))&&(a24==1)))&&(a1==12))))){ + a11 = 0; + a21 = 10; + a5 = 5; + a20 = 1; + a25 = 1; + a19 = 3; + a16 = 11; + a2 = 0; + a9 = 11; + return -1; + } else if((((a17==2)&&((((a16==9)&&((a11==1)&&((a19==3)&&((a11==1)&&!(a26==1)))))&&!(a20==1))&&(a9==11)))&&(((((((a11==1)&&(((a5==4)||(a5==5))&&(input==3)))&&(a1==12))&&(a6==1))&&(a21==11))&&!(a7==1))&&(a28==1)))){ + if((a22==1)){ + a21 = 10; + a15 = 0; + a5 = 6; + a16 = 7; + a23 = 0; + a19 = 1; + a2 = 0; + a20 = 1; + }else{ + a7 = 1; + a9 = 8; + a5 = 4; + a20 = 1; + a19 = 1; + a3 = 0; + a16 = 7; + a21 = 10; + } + return 23; + } else if((((a28==1)&&(((((a17==2)&&(((a20==1)&&(((input==5)&&((a5==5)||(a5==6)))&&(a19==1)))&&(a9==10)))&&(a21==12))&&!(a0==1))&&(a23==1)))&&((a18==1)||((a27==1)||((a1==14)&&((a16==10)&&((a14==1)||(a2==1)))))))){ + a14 = 0; + a26 = 0; + a5 = 4; + a4 = 0; + a16 = 7; + a9 = 7; + a21 = 10; + a1 = 12; + return -1; + } else if(((((a7==1)||((((a21==11)&&((a1==14)&&((a3==1)&&(a13==1))))&&!(a7==1))&&(a9==11)))&&(a5==4))&&((a17==2)&&(!(a26==1)&&((a16==8)&&((((a20==1)&&((input==5)&&(a19==2)))&&!(a14==1))&&(a2==1))))))){ + a16 = 7; + a0 = 0; + a9 = 7; + a21 = 10; + a6 = 1; + a1 = 12; + a19 = 1; + a23 = 1; + return -1; + } else if(((!(a20==1)&&(((a12==1)&&(((((a6==1)||(a7==1))&&(a1==14))&&(a16==11))&&(a6==1)))||!(a12==1)))&&((a19==2)&&((a12==1)&&(((a13==1)&&((a21==10)&&((input==6)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))))&&(a17==2)))))){ + a16 = 7; + a9 = 7; + a5 = 6; + a22 = 0; + a18 = 1; + a1 = 13; + a19 = 3; + a20 = 1; + a10 = 1; + return -1; + } else if(((((a28==1)&&((a17==2)&&((a11==1)&&(((a12==1)&&((a19==2)&&(input==6)))&&(a9==7)))))&&(a16==9))&&((((a28==1)&&(!(a20==1)&&((a21==11)&&(((a5==5)&&(a2==1))||(a27==1)))))||!(a2==1))&&(a1==13)))){ + a8 = 1; + a11 = 0; + a19 = 4; + a20 = 1; + a26 = 1; + a1 = 12; + a5 = 4; + return -1; + } else if((((a21==11)&&(((a17==2)&&(a3==1))||!(a6==1)))&&((a11==1)&&((a11==1)&&((!(a26==1)&&((((((a1==14)&&((((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&(input==1)))&&(a16==10))&&!(a20==1))&&(a19==1))&&(a13==1)))&&!(a7==1)))))){ + if((a3==1)){ + a16 = 7; + a1 = 12; + a7 = 1; + a9 = 7; + a4 = 1; + a19 = 5; + a25 = 0; + a20 = 1; + a5 = 5; + }else{ + a18 = 1; + a5 = 5; + a6 = 0; + a21 = 10; + a9 = 10; + a0 = 1; + a20 = 1; + a16 = 7; + } + return 21; + } else if(((((((a17==2)&&((a16==7)&&((a23==1)&&(a14==1))))&&!(a20==1))&&(a19==2))&&!(a13==1))&&((((a9==8)&&(!(a3==1)&&((a21==11)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&(a1==14))&&(a14==1)))))&&!(a28==1))&&!(a3==1)))){ + a28 = 0; + a20 = 1; + a5 = 5; + a19 = 1; + a9 = 9; + a15 = 0; + a21 = 10; + a18 = 1; + return -1; + } else if(((((a1==12)&&(((a20==1)&&((!(a24==1)&&((a16==7)&&(input==1)))&&(a21==12)))&&(a9==10)))&&(a5==5))&&((((a24==1)||(((a23==1)&&(((a11==1)||!(a13==1))||(a24==1)))||(a14==1)))&&(a17==2))&&(a19==2)))){ + a9 = 7; + a21 = 10; + a26 = 0; + a3 = 1; + a0 = 0; + a5 = 4; + a19 = 1; + return -1; + } else if((((((a13==1)&&((a17==2)&&((a16==8)&&(!(a8==1)&&((input==6)&&((a5==5)||(a5==6)))))))&&!(a8==1))&&!(a4==1))&&((a21==10)&&((a1==14)&&(((a19==2)&&((((a12==1)||(a14==1))&&(a20==1))&&(a11==1)))&&(a9==7)))))){ + a21 = 12; + a0 = 0; + a19 = 1; + a5 = 6; + a28 = 1; + a9 = 8; + a12 = 1; + return 21; + } else if((((a21==11)&&(((!(a20==1)&&((a11==1)&&(a23==1)))&&(a13==1))||(a0==1)))&&(((a16==7)&&(((a19==5)&&(((((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==1))&&(a23==1))&&(a17==2))&&(a13==1)))&&(a3==1)))&&(a1==13)))){ + a27 = 0; + a5 = 4; + a9 = 7; + a21 = 10; + a20 = 1; + a3 = 1; + a1 = 12; + a19 = 1; + a28 = 1; + return -1; + } else if(((((a21==10)&&((((a9==9)&&((a19==4)&&(!(a18==1)&&((a23==1)&&(((a5==4)||(a5==5))&&(input==6))))))&&(a1==13))&&(a23==1)))&&(a17==2))&&((a28==1)&&((!(a20==1)&&(((a13==1)&&(a3==1))&&(a16==11)))&&(a28==1))))){ + if((a14==1)){ + a25 = 1; + a5 = 5; + a20 = 1; + a19 = 1; + a14 = 1; + a3 = 0; + a21 = 12; + a16 = 10; + a9 = 11; + }else{ + a21 = 11; + a16 = 7; + a10 = 1; + a29 = 1; + a5 = 5; + a20 = 1; + } + return -1; + } else if(((((((((!(a26==1)&&((a20==1)&&(input==3)))&&(a3==1))&&(a21==10))&&(a5==6))&&!(a0==1))&&(a9==8))&&(a19==1))&&((a1==12)&&(((a16==11)&&((a23==1)&&((a17==2)&&((a6==1)&&(a28==1)))))||!(a23==1))))){ + a6 = 1; + a5 = 4; + a9 = 7; + a3 = 1; + a16 = 7; + a8 = 0; + return -1; + } else if((((((a6==1)||(a18==1))&&!(a8==1))&&(a20==1))&&(((a16==11)&&(((((a21==10)&&((a17==2)&&(!(a26==1)&&((((input==4)&&((a5==4)||(a5==5)))&&!(a8==1))&&(a19==5)))))&&!(a14==1))&&(a9==9))&&!(a14==1)))&&(a1==14)))){ + a19 = 1; + a9 = 7; + a5 = 4; + a2 = 1; + a12 = 1; + a16 = 7; + a1 = 12; + return -1; + } else if(((((a16==8)&&(!(a24==1)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==6))))&&(a6==1))&&((!(a20==1)&&(((a21==11)&&((a0==1)||(!(a13==1)||((a1==12)&&((a2==1)&&((a19==1)&&(a2==1)))))))&&(a17==2)))||(a27==1)))){ + a5 = 6; + a8 = 0; + a27 = 0; + a20 = 1; + a2 = 1; + a9 = 8; + a1 = 14; + a21 = 12; + return 21; + } else if(((!(a14==1)&&(((!(a23==1)||((a7==1)||((a9==11)&&(a11==1))))||(a7==1))&&(a16==8)))&&(((a21==12)&&((a1==13)&&(!(a20==1)&&((a17==2)&&((!(a26==1)&&(((a5==4)||(a5==5))&&(input==3)))&&(a19==4))))))&&(a2==1)))){ + a5 = 4; + a21 = 11; + a22 = 1; + a19 = 3; + a9 = 10; + a16 = 10; + a15 = 0; + a1 = 12; + a29 = 1; + return -1; + } else if(((!(a18==1)&&((((a13==1)&&((a19==2)&&((a21==10)&&(input==1))))&&!(a4==1))&&(a5==4)))&&((a9==11)&&(((a17==2)&&((((((a2==1)||(a27==1))||(a14==1))||(a27==1))&&(a1==14))&&(a16==11)))&&!(a20==1))))){ + a9 = 7; + a5 = 6; + a20 = 1; + a25 = 0; + a16 = 9; + a19 = 4; + a29 = 1; + a1 = 13; + return -1; + } else if(((((a13==1)&&(((((((a5==6)&&(a1==13))&&(a9==11))||(((a5==4)&&(a1==14))&&(a9==7)))||((a9==7)&&((a1==14)&&(a5==5))))&&(input==3))&&(a28==1)))&&(a3==1))&&((a21==11)&&((a20==1)&&((((a19==2)&&((((a0==1)||(a13==1))&&(a16==11))&&(a3==1)))&&(a17==2))&&(a13==1)))))){ + a26 = 0; + a21 = 10; + a18 = 0; + a19 = 1; + a5 = 4; + a6 = 1; + a1 = 12; + a16 = 7; + a9 = 7; + return -1; + } else if(((((a16==10)&&((a13==1)&&(((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==4))&&(a17==2))))&&!(a20==1))&&(((((a1==14)&&((!(a3==1)||((a0==1)||((a21==12)&&(a28==1))))||!(a2==1)))&&!(a26==1))&&(a19==5))||!(a11==1)))){ + a20 = 1; + a19 = 1; + a7 = 1; + a21 = 10; + a5 = 4; + a16 = 7; + a9 = 11; + a18 = 1; + a22 = 1; + return 21; + } else if(((!(a4==1)&&((a19==4)&&(!(a27==1)&&(!(a8==1)&&(((a17==2)&&((a18==1)||(((a3==1)&&(a13==1))&&(a16==7))))&&(a13==1))))))&&((a1==12)&&(!(a20==1)&&(((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==3))&&(a21==10)))))){ + a14 = 0; + a1 = 14; + a9 = 10; + a8 = 0; + a5 = 5; + a16 = 9; + a3 = 1; + a20 = 1; + a21 = 11; + return 21; + } else if((((a21==12)&&(!(a20==1)&&(((((a17==2)&&((a7==1)||(a11==1)))||!(a23==1))||!(a12==1))||!(a12==1))))&&(((a19==4)&&(((a16==7)&&((a9==7)&&(!(a0==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4)))))&&(a3==1)))&&(a1==13)))){ + a14 = 0; + a20 = 1; + a13 = 1; + a16 = 8; + a1 = 14; + a9 = 11; + a5 = 4; + a2 = 1; + a21 = 11; + a19 = 2; + return 21; + } else if((((a9==7)&&((a16==10)&&((a6==1)&&((a17==2)&&(a3==1)))))&&((!(a18==1)&&(((!(a8==1)&&((a1==13)&&(((((input==6)&&((a5==5)||(a5==6)))&&(a13==1))&&(a20==1))&&(a6==1))))&&(a19==1))&&(a21==11)))&&(a11==1)))){ + a1 = 12; + a21 = 10; + a24 = 0; + a16 = 7; + a5 = 4; + a18 = 0; + a11 = 1; + return -1; + } else if(((((((a6==1)&&(a19==5))||!(a6==1))&&(a16==10))&&(a20==1))&&(((a17==2)&&(((a11==1)&&((a21==11)&&((!(a18==1)&&(((((a1==14)&&(a5==4))&&(a9==7))||(((a9==11)&&((a1==13)&&(a5==5)))||((a9==11)&&((a5==6)&&(a1==13)))))&&(input==4)))&&!(a18==1))))&&(a3==1)))&&(a12==1)))){ + a7 = 0; + a16 = 7; + a21 = 10; + a19 = 1; + a1 = 12; + a14 = 0; + a5 = 4; + a6 = 1; + a9 = 7; + return -1; + } else if((((a16==11)&&(((a17==2)&&((a1==13)&&(((((input==6)&&((a5==5)||(a5==6)))&&(a11==1))&&!(a7==1))&&(a2==1))))&&(a9==10)))&&(((a20==1)&&((a13==1)&&(!(a6==1)||((a21==12)&&((a13==1)||!(a6==1))))))&&(a19==4)))){ + if((a14==1)){ + a5 = 6; + a21 = 10; + a3 = 1; + a16 = 8; + a7 = 0; + a20 = 0; + a6 = 1; + }else{ + a5 = 4; + a12 = 1; + a14 = 0; + a1 = 14; + a11 = 1; + a19 = 5; + } + return 26; + } else if((((a17==2)&&(((((a1==14)&&((input==3)&&(a5==5)))&&(a12==1))&&!(a8==1))&&(a21==11)))&&(!(a20==1)&&((a9==11)&&(((((a27==1)||(((a28==1)||(a14==1))&&(a19==3)))||!(a3==1))||(a7==1))&&(a16==7)))))){ + a20 = 1; + a19 = 1; + a3 = 1; + a1 = 12; + a5 = 4; + a9 = 7; + a4 = 0; + a21 = 10; + return -1; + } else if((((a20==1)&&((a18==1)||((((a21==12)&&(a13==1))||!(a13==1))&&(a9==10))))&&((!(a0==1)&&(!(a18==1)&&(((a1==14)&&((a17==2)&&(((a2==1)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))&&(a3==1))))&&(a16==8))))&&(a19==2)))){ + a9 = 7; + a8 = 0; + a5 = 4; + a3 = 1; + a14 = 0; + a19 = 1; + a16 = 7; + a21 = 10; + a1 = 12; + return -1; + } else if(((((a16==8)&&((a17==2)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==4))))&&(a6==1))&&((a21==11)&&((a19==4)&&(!(a2==1)||(!(a4==1)&&(!(a20==1)&&(!(a24==1)&&((a8==1)||((a1==13)&&(!(a0==1)&&(a23==1)))))))))))){ + a14 = 0; + a9 = 11; + a2 = 1; + a1 = 14; + a19 = 2; + a20 = 1; + a7 = 0; + a5 = 4; + return 21; + } else if((((((a20==1)&&(((a9==9)&&(!(a27==1)&&(!(a8==1)&&((((input==4)&&((a5==5)||(a5==6)))&&(a12==1))&&(a1==14)))))&&!(a8==1)))&&(a17==2))&&(a19==1))&&(((a21==11)&&((!(a6==1)||(a6==1))||(a27==1)))&&(a16==9)))){ + a16 = 7; + a28 = 1; + a9 = 7; + a5 = 4; + a21 = 10; + a27 = 0; + a6 = 1; + a1 = 12; + return -1; + } else if((((((a1==13)&&((((a7==1)||(((a3==1)&&(a23==1))&&(a20==1)))&&!(a7==1))||(a4==1)))||(a24==1))&&(a19==3))&&(((a16==10)&&(((a21==11)&&(((input==5)&&((a5==4)||(a5==5)))&&(a9==9)))&&(a2==1)))&&(a17==2)))){ + a9 = 11; + a5 = 4; + a16 = 8; + a19 = 4; + a27 = 0; + a12 = 1; + a13 = 1; + a1 = 12; + return 25; + } else if((((a1==13)&&(((!(a4==1)&&((a12==1)&&((!(a0==1)&&(a12==1))&&(a28==1))))&&(a9==11))&&(a17==2)))&&((a16==9)&&(!(a20==1)&&(((a19==5)&&((a23==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&(a13==1))))&&(a21==11)))))){ + if((a12==1)){ + a5 = 6; + a21 = 10; + a1 = 14; + a23 = 0; + a7 = 1; + a19 = 1; + a20 = 1; + a11 = 0; + a16 = 7; + a9 = 7; + }else{ + a19 = 1; + a16 = 7; + a20 = 1; + a27 = 1; + a9 = 8; + a1 = 12; + a18 = 1; + a21 = 10; + a5 = 4; + a3 = 0; + } + return -1; + } else if((((((a20==1)&&((a3==1)&&((((((input==3)&&(((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))))&&(a2==1))&&(a16==7))&&(a19==3))&&(a21==12))))&&(a1==12))&&(a6==1))&&(((!(a7==1)&&((a4==1)||(a13==1)))&&(a17==2))&&(a11==1)))){ + a4 = 0; + a27 = 0; + a18 = 0; + a1 = 14; + a16 = 8; + a19 = 5; + a9 = 8; + a5 = 6; + return 22; + } else if(((((a12==1)&&(!(a7==1)&&(((a1==12)&&((((!(a7==1)&&((a21==12)&&((input==5)&&((a5==6)||((a5==4)||(a5==5))))))&&(a20==1))&&!(a8==1))&&(a9==11)))&&(a19==5))))&&(a17==2))&&(!(a2==1)||(((a6==1)&&(a16==10))&&!(a7==1))))){ + a16 = 7; + a5 = 6; + a2 = 1; + a19 = 4; + a1 = 14; + a21 = 10; + a9 = 10; + a8 = 0; + a3 = 1; + return 25; + } else if((((((((a16==10)&&((!(a27==1)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))&&(a20==1)))&&(a17==2))&&!(a8==1))&&(a2==1))&&(a3==1))&&((a2==1)&&((a19==1)&&(!(a27==1)&&((((a6==1)&&(a9==8))&&(a1==14))&&(a21==11))))))){ + a5 = 4; + a23 = 1; + a7 = 0; + a21 = 10; + a16 = 7; + a1 = 12; + a13 = 1; + a9 = 7; + return -1; + } else if(((((!(a20==1)&&(((a17==2)&&((((a6==1)&&((a13==1)&&(a21==10)))&&(a23==1))||!(a11==1)))&&(a3==1)))&&(a16==7))&&(a9==8))&&(((a28==1)&&(((((a5==5)||(a5==6))&&(input==6))&&(a23==1))&&(a1==14)))&&(a19==3)))){ + a19 = 2; + a21 = 11; + a1 = 12; + a0 = 0; + a24 = 0; + a13 = 1; + a5 = 6; + a16 = 10; + a20 = 1; + return -1; + } else if(((!(a14==1)&&((((a16==8)&&(((a21==12)&&((input==5)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))))&&(a19==3)))&&(a12==1))&&(a6==1)))&&(!(a12==1)||((((a17==2)&&(((a2==1)&&!(a4==1))&&(a1==12)))&&!(a7==1))&&!(a20==1))))){ + a25 = 1; + a19 = 5; + a5 = 4; + a1 = 13; + a29 = 1; + a11 = 0; + a21 = 10; + a9 = 10; + return -1; + } else if(((((a3==1)&&((!(a26==1)&&(((a16==10)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&!(a20==1))&&!(a18==1)))&&(a11==1)))&&!(a26==1)))&&(a17==2))&&(((((!(a11==1)||(a11==1))&&(a9==8))&&(a21==12))&&(a19==2))&&(a1==13)))){ + if((a9==7)){ + a1 = 14; + a9 = 7; + a7 = 1; + a16 = 7; + a20 = 1; + a21 = 10; + a15 = 0; + a29 = 0; + a19 = 1; + a5 = 5; + }else{ + a9 = 7; + a5 = 4; + a19 = 3; + a0 = 1; + a20 = 1; + a21 = 10; + a1 = 14; + a27 = 1; + a16 = 11; + a29 = 1; + } + return -1; + } else if(((((a17==2)&&((((a0==1)||((a21==12)&&(a3==1)))||(a18==1))||(a26==1)))&&(a20==1))&&(((a16==8)&&((a28==1)&&((a19==1)&&((a2==1)&&((a1==12)&&((input==3)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))))))))&&(a11==1)))){ + a21 = 10; + a19 = 2; + a12 = 1; + a14 = 0; + a3 = 1; + a16 = 7; + a1 = 14; + a9 = 9; + a5 = 6; + return 21; + } else if(((((((a13==1)&&((((a9==11)&&((a23==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5))))))&&(a16==10))&&(a1==12)))&&(a2==1))&&!(a20==1))&&(a19==2))&&((a24==1)||(((a17==2)&&((!(a14==1)&&(a13==1))&&(a28==1)))&&(a21==11))))){ + a5 = 4; + a27 = 1; + a16 = 7; + a9 = 10; + a2 = 0; + a6 = 0; + return -1; + } else if((((a19==3)&&((a5==5)&&((((a6==1)&&((a21==12)&&(input==5)))&&(a28==1))&&(a9==7))))&&((a17==2)&&((a20==1)&&((a16==8)&&((a4==1)||((a0==1)||((a0==1)||(((a27==1)||(a23==1))&&(a1==14)))))))))){ + a1 = 12; + a21 = 10; + a6 = 1; + a5 = 4; + a4 = 0; + a16 = 7; + a12 = 1; + a19 = 1; + return -1; + } else if(((((a9==9)&&((((a5==6)&&(((!(a6==1)&&(!(a20==1)&&(input==4)))&&!(a13==1))&&!(a6==1)))&&(a17==2))&&(a27==1)))&&(a16==8))&&((a1==12)&&((a18==1)&&((((a11==1)&&(a19==2))&&(a4==1))&&(a21==11)))))){ + a5 = 4; + a21 = 10; + a22 = 0; + a12 = 0; + a16 = 7; + a20 = 1; + a28 = 0; + a19 = 1; + return -1; + } else if((((((((a21==10)&&(!(a12==1)||(a12==1)))&&(a17==2))&&(a16==11))&&(a28==1))&&!(a20==1))&&((!(a7==1)&&(((((((a19==3)&&(((a5==6)&&(a1==14))&&(a9==11)))||(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==4)))||((a19==4)&&(((a1==12)&&(a5==5))&&(a9==7))))&&(input==3))&&!(a27==1))&&(a6==1)))&&!(a14==1)))){ + a29 = 1; + a25 = 1; + a1 = 14; + a5 = 5; + a9 = 7; + a19 = 2; + a2 = 0; + a20 = 1; + a16 = 8; + return -1; + } else if((((a16==10)&&((a20==1)&&((a1==14)&&(((a17==2)&&(a23==1))&&!(a24==1)))))&&((a19==5)&&(!(a24==1)&&(((((((input==4)&&((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4))))&&(a21==12))&&(a13==1))&&(a28==1))&&(a12==1))&&(a28==1)))))){ + a21 = 10; + a5 = 4; + a16 = 7; + a9 = 7; + a19 = 1; + a2 = 1; + a18 = 0; + a1 = 12; + a14 = 0; + return -1; + } else if(((((((!(a18==1)&&((a26==1)||(a3==1)))&&(a1==14))&&(a19==1))&&(a17==2))&&(a16==7))&&((a28==1)&&(((a5==6)&&((a21==11)&&(((!(a18==1)&&((input==5)&&(a9==7)))&&!(a0==1))&&(a11==1))))&&!(a20==1))))){ + a21 = 10; + a19 = 4; + a16 = 8; + a1 = 13; + a8 = 0; + a20 = 1; + a14 = 0; + a9 = 11; + return 25; + } else if((((a17==2)&&(((a9==10)&&(((!(a28==1)||(a11==1))&&(a12==1))||!(a6==1)))||(a7==1)))&&(((a19==2)&&((((a16==9)&&(((a21==12)&&((input==3)&&(a1==12)))&&(a20==1)))&&!(a8==1))&&!(a7==1)))&&(a5==6)))){ + a3 = 1; + a4 = 0; + a21 = 10; + a16 = 7; + a9 = 7; + a19 = 1; + a5 = 4; + return -1; + } else if((((a17==2)&&((!(a24==1)&&(((!(a20==1)&&((a5==5)&&((a19==4)&&(input==3))))&&!(a0==1))&&(a9==10)))&&!(a4==1)))&&(!(a12==1)||((((((a21==10)&&(a2==1))&&(a2==1))&&(a3==1))&&(a16==10))&&(a1==14))))){ + a19 = 2; + a16 = 9; + a18 = 1; + a5 = 6; + a23 = 0; + return -1; + } else if(((((a9==10)&&((input==5)&&(a1==13)))&&(a16==11))&&((a20==1)&&((a2==1)&&(!(a8==1)&&(((a23==1)&&((((a5==6)&&((a21==11)&&((a19==3)&&(!(a18==1)&&(a23==1)))))&&(a17==2))&&!(a4==1)))||!(a12==1))))))){ + a18 = 0; + a19 = 1; + a26 = 0; + a21 = 10; + a14 = 0; + a16 = 7; + a1 = 12; + a5 = 4; + a9 = 7; + return -1; + } else if((((((a9==7)&&(((a3==1)&&(((((a20==1)&&(((a5==4)||(a5==5))&&(input==5)))&&(a21==10))&&(a1==14))&&!(a7==1)))&&!(a27==1)))&&(a16==11))&&(a19==5))&&(((a17==2)&&(!(a26==1)&&(!(a23==1)||(a13==1))))&&!(a14==1)))){ + a1 = 12; + a9 = 8; + a21 = 11; + a24 = 0; + a4 = 0; + a5 = 4; + a23 = 1; + return 25; + } else if(((((a21==12)&&((!(a18==1)&&(((!(a4==1)&&((a1==12)&&((a19==2)&&((((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))&&(input==3))&&!(a20==1)))))&&!(a26==1))&&!(a24==1)))&&(a12==1)))&&(a17==2))&&(((a16==9)&&(a6==1))||(a18==1)))){ + a19 = 1; + a14 = 1; + a9 = 8; + a5 = 5; + a11 = 0; + a20 = 1; + a22 = 0; + a16 = 7; + a1 = 13; + a21 = 10; + return 21; + } else if((((a17==2)&&((((!(a4==1)&&((a14==1)||((a3==1)||(a18==1))))&&(a16==7))&&(a1==13))&&(a20==1)))&&((a9==9)&&(((a19==1)&&((a2==1)&&((((input==1)&&((a5==4)||(a5==5)))&&!(a4==1))&&(a3==1))))&&(a21==12))))){ + a9 = 7; + a13 = 1; + a24 = 0; + a5 = 4; + a21 = 10; + a3 = 1; + a1 = 12; + return -1; + } else if((((((a2==1)&&((a1==13)&&((a21==10)&&((a19==3)&&(a3==1)))))&&(a17==2))||(a14==1))&&((a11==1)&&((a20==1)&&((a28==1)&&((a12==1)&&(((a16==9)&&((input==3)&&(((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))))&&!(a8==1)))))))){ + a24 = 0; + a1 = 12; + a16 = 7; + a9 = 7; + a19 = 1; + a5 = 4; + a28 = 1; + a23 = 1; + return -1; + } else if(((!(a4==1)&&(!(a14==1)&&((((((a5==4)||(a5==5))&&(input==5))&&(a16==10))&&(a3==1))&&(a21==11))))&&((a1==12)&&(((a3==1)&&(((a9==7)&&((((a2==1)&&(a19==1))&&(a20==1))||!(a28==1)))&&(a17==2)))||!(a3==1))))){ + a18 = 0; + a5 = 5; + a9 = 10; + a21 = 10; + a26 = 0; + a19 = 4; + a16 = 7; + a27 = 0; + return 25; + } else if((((((((((!(a18==1)&&((input==1)&&((a5==5)||(a5==6))))&&(a19==3))&&(a17==2))&&!(a8==1))&&(a21==12))&&(a20==1))&&!(a14==1))&&!(a27==1))&&(!(a28==1)||((a16==10)&&((((a2==1)&&!(a7==1))&&(a9==7))&&(a1==14)))))){ + a3 = 1; + a21 = 10; + a5 = 5; + a9 = 9; + a4 = 0; + a16 = 7; + a1 = 13; + a19 = 2; + a18 = 0; + return 25; + } else if((((a1==13)&&((a13==1)&&((a9==10)&&((((a19==5)&&((a17==2)&&((input==5)&&((a5==5)||(a5==6)))))&&(a3==1))&&(a23==1)))))&&(!(a8==1)&&((a20==1)&&((a16==8)&&(((a4==1)||((a21==10)&&(a13==1)))&&!(a7==1))))))){ + a23 = 1; + a3 = 1; + a16 = 7; + a9 = 7; + a5 = 4; + a19 = 4; + a1 = 12; + return 26; + } else if((((a1==12)&&(((((a0==1)||(a11==1))&&(a3==1))||(a18==1))&&(a17==2)))&&(((a21==10)&&((a16==10)&&(((((((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a19==4))&&(a2==1))&&(a2==1))&&(a9==10))&&(a13==1))))&&!(a20==1)))){ + a19 = 5; + a27 = 1; + a5 = 4; + a1 = 14; + a21 = 11; + a15 = 1; + a4 = 1; + a16 = 9; + return -1; + } else if(((((a28==1)&&((a23==1)&&(a13==1)))&&(a9==8))&&(((((!(a0==1)&&((a16==7)&&((!(a24==1)&&(((a3==1)&&((input==3)&&(a20==1)))&&(a1==14)))&&(a17==2))))&&(a19==1))&&(a13==1))&&(a21==11))&&(a5==6)))){ + a5 = 4; + a8 = 0; + a1 = 12; + a9 = 7; + a21 = 10; + a12 = 1; + return -1; + } else if(((!(a20==1)&&(((a16==7)&&((((((input==5)&&((((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4))))&&!(a14==1))&&(a19==3))&&!(a18==1))&&(a2==1)))&&(a21==10)))&&((((((a1==12)&&(a23==1))&&!(a26==1))||!(a11==1))||!(a28==1))&&(a17==2)))){ + a5 = 5; + a28 = 1; + a1 = 13; + a14 = 0; + a7 = 0; + a9 = 8; + return 23; + } else if((((a14==1)||(((a16==8)&&(((((a12==1)&&(a21==11))||(a24==1))||(a26==1))&&!(a26==1)))||!(a13==1)))&&((a12==1)&&(((((((input==6)&&(a9==7))&&(a1==12))&&(a5==5))&&(a20==1))&&(a17==2))&&(a19==2))))){ + a0 = 0; + a2 = 1; + a5 = 4; + a9 = 11; + a19 = 4; + return 26; + } else if((((a17==2)&&((a16==7)&&((((a1==12)&&(!(a8==1)&&(!(a23==1)||(a13==1))))&&!(a20==1))||(a8==1))))&&(((a11==1)&&((a19==2)&&((!(a24==1)&&((input==4)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))&&(a13==1))))&&(a21==10)))){ + a20 = 1; + a9 = 7; + a14 = 0; + a19 = 1; + a0 = 0; + a24 = 0; + a5 = 4; + return -1; + } else if((((a11==1)&&((a27==1)||((a9==10)&&(!(a0==1)&&(((!(a11==1)||(a13==1))&&(a17==2))&&!(a20==1))))))&&(((a23==1)&&((a1==14)&&(((a21==10)&&((a16==8)&&(((a5==5)||(a5==6))&&(input==6))))&&(a19==4))))&&(a11==1)))){ + a5 = 6; + a6 = 1; + a1 = 12; + a7 = 0; + a2 = 1; + a19 = 5; + return 21; + } else if((((a21==12)&&((((a16==9)&&(((a17==2)&&((!(a7==1)&&(a12==1))&&(a1==12)))||(a7==1)))&&!(a14==1))&&(a19==4)))&&((a2==1)&&(!(a7==1)&&((((input==3)&&(((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))))&&!(a4==1))&&!(a20==1)))))){ + if((a6==1)){ + a21 = 10; + a16 = 7; + a19 = 2; + a5 = 6; + a2 = 0; + a14 = 1; + a20 = 1; + a7 = 1; + a9 = 11; + }else{ + a21 = 10; + a5 = 5; + a16 = 7; + a8 = 1; + a28 = 0; + a9 = 7; + a19 = 1; + a20 = 1; + a22 = 1; + } + return 25; + } else if(((((a23==1)&&(!(a27==1)&&((a19==3)&&((a11==1)&&(a2==1)))))&&(a1==14))&&((a21==12)&&((a17==2)&&(((((a12==1)&&(!(a24==1)&&((a3==1)&&((input==1)&&(a16==8)))))&&(a5==5))&&(a20==1))&&(a9==7)))))){ + a16 = 10; + a5 = 6; + a13 = 1; + a23 = 1; + a9 = 10; + a8 = 0; + a19 = 2; + return 25; + } else if(((((((((a2==1)&&(!(a24==1)&&((input==1)&&((a5==6)||((a5==4)||(a5==5))))))&&(a16==10))&&!(a7==1))&&(a19==4))&&(a21==11))&&(a1==14))&&(((a13==1)&&((a12==1)&&((((a27==1)||(a13==1))&&(a9==7))&&(a20==1))))&&(a17==2)))){ + a1 = 13; + a19 = 5; + a21 = 10; + a16 = 8; + a24 = 0; + a5 = 4; + a7 = 0; + return -1; + } else if((((a17==2)&&(((!(a18==1)&&(!(a24==1)&&((input==3)&&((a5==4)||(a5==5)))))&&(a21==10))&&(a9==7)))&&(((a20==1)&&(((((!(a28==1)||(!(a4==1)&&(a3==1)))&&(a2==1))||!(a3==1))&&(a16==10))&&(a19==2)))&&(a1==13)))){ + a5 = 4; + a19 = 1; + a1 = 12; + a13 = 1; + a4 = 0; + a27 = 0; + a16 = 7; + return -1; + } else if(((((a20==1)&&((a9==7)&&((((a28==1)&&((a5==4)&&((a16==9)&&(input==4))))&&!(a27==1))&&(a17==2))))&&(a2==1))&&(!(a27==1)&&(!(a4==1)&&((((a1==12)&&((a19==1)&&(a23==1)))&&(a21==11))||(a24==1)))))){ + a21 = 10; + a28 = 1; + a2 = 1; + a16 = 7; + a13 = 1; + return -1; + } else if((((((a28==1)&&((a21==11)&&(!(a27==1)&&((((a19==4)&&((a9==7)&&((a5==4)&&(a1==12))))||(((a19==3)&&(((a5==5)&&(a1==14))&&(a9==11)))||((a19==3)&&((a9==11)&&((a5==6)&&(a1==14))))))&&(input==4)))))&&(a20==1))&&!(a18==1))&&((a28==1)&&(!(a2==1)||((((a16==11)&&(a28==1))&&(a17==2))||(a14==1)))))){ + a9 = 7; + a5 = 4; + a0 = 0; + a19 = 1; + a1 = 12; + a21 = 10; + a23 = 1; + a16 = 7; + a18 = 0; + return -1; + } else if(((((!(a6==1)||((a21==12)&&((a7==1)||(a28==1))))&&(a1==12))||(a7==1))&&(((a16==7)&&(((a17==2)&&((a9==10)&&(((a20==1)&&((((a5==4)||(a5==5))&&(input==4))&&!(a7==1)))&&(a13==1))))&&(a19==1)))&&(a23==1)))){ + a21 = 10; + a9 = 7; + a14 = 0; + a6 = 1; + a24 = 0; + a5 = 4; + return -1; + } else if(((!(a2==1)||((a20==1)&&(!(a7==1)&&((a2==1)&&(((!(a23==1)||(!(a8==1)&&(a11==1)))&&(a16==11))&&(a21==11))))))&&((a17==2)&&((a19==3)&&((a6==1)&&((input==4)&&((((a9==11)&&((a5==6)&&(a1==13)))||((a9==7)&&((a5==4)&&(a1==14))))||((a9==7)&&((a5==5)&&(a1==14)))))))))){ + a2 = 1; + a9 = 7; + a16 = 7; + a1 = 12; + a13 = 1; + a5 = 4; + a19 = 1; + a0 = 0; + a21 = 10; + return -1; + } else if((((a21==12)&&(((a3==1)&&((a16==9)&&(((!(a20==1)&&((a13==1)&&!(a27==1)))&&(a1==13))&&!(a0==1))))&&(a19==2)))&&((a9==8)&&((a2==1)&&((a17==2)&&((a2==1)&&(!(a27==1)&&((input==1)&&((a5==4)||(a5==5)))))))))){ + a1 = 14; + a13 = 0; + a21 = 10; + a16 = 7; + a19 = 1; + a9 = 9; + a7 = 1; + a27 = 1; + a5 = 5; + a20 = 1; + return 25; + } else if((((a9==10)&&(((a1==13)&&((((((!(a8==1)&&(!(a8==1)&&(((a5==4)||(a5==5))&&(input==4))))&&(a17==2))&&(a3==1))&&(a23==1))&&!(a14==1))&&(a19==4)))&&(a21==11)))&&((a16==7)&&((a20==1)&&((a11==1)&&!(a0==1)))))){ + a1 = 12; + a26 = 0; + a19 = 1; + a4 = 0; + a5 = 4; + a21 = 10; + a6 = 1; + a9 = 7; + return -1; + } else if(((((a9==8)&&(((a23==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a12==1)))&&!(a8==1)))&&(a19==2))&&((a16==9)&&((((a20==1)&&(((!(a23==1)||((a17==2)&&(a13==1)))&&!(a8==1))||!(a12==1)))&&(a1==14))&&(a21==11))))){ + a7 = 0; + a16 = 7; + a5 = 4; + a14 = 0; + a1 = 12; + a3 = 1; + a9 = 7; + a19 = 1; + a21 = 10; + return -1; + } else if((((a16==8)&&(((((input==5)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(a3==1))&&(a28==1))&&!(a14==1)))&&(((a24==1)||(!(a20==1)&&(((((a27==1)||((a23==1)||(a4==1)))&&(a19==1))&&(a1==12))&&(a21==11))))&&(a17==2)))){ + a0 = 0; + a16 = 7; + a5 = 4; + a12 = 1; + a20 = 1; + a21 = 10; + a23 = 1; + a9 = 7; + return -1; + } else if((((((a19==1)&&(!(a20==1)&&((a13==1)||!(a28==1))))||!(a23==1))||!(a11==1))&&((a23==1)&&(!(a26==1)&&(!(a7==1)&&((a21==12)&&((((((input==4)&&(a9==7))&&(a17==2))&&(a1==12))&&(a5==6))&&(a16==9)))))))){ + a26 = 1; + a27 = 1; + a19 = 5; + a9 = 8; + a10 = 1; + a20 = 1; + a1 = 14; + return -1; + } else if((((!(a20==1)&&(((a7==1)||((a13==1)&&((a1==13)&&(a3==1))))&&(a21==11)))&&(a16==7))&&((a9==8)&&(((a19==2)&&((!(a27==1)&&((((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a23==1))&&!(a26==1)))&&(a13==1)))&&(a17==2))))){ + a9 = 7; + a28 = 1; + a1 = 12; + a5 = 4; + a20 = 1; + a3 = 1; + a11 = 1; + a21 = 10; + a19 = 1; + return -1; + } else if(((((a19==3)&&((((((!(a20==1)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))&&(a28==1))&&(a12==1))&&!(a27==1))&&!(a26==1))&&(a21==12)))&&(a16==7))&&(((((a17==2)&&(!(a0==1)&&(a28==1)))&&!(a24==1))&&(a9==8))&&(a1==13)))){ + a21 = 10; + a13 = 1; + a9 = 7; + a5 = 4; + a24 = 0; + a19 = 1; + a0 = 0; + a1 = 12; + a20 = 1; + return -1; + } else if(((!(a4==1)&&((((a19==3)&&((a3==1)&&!(a4==1)))&&(a17==2))&&(a9==7)))&&(((!(a27==1)&&((a1==14)&&((a16==7)&&((a11==1)&&((a20==1)&&((a11==1)&&((input==5)&&((a5==5)||(a5==6)))))))))&&(a23==1))&&(a21==11)))){ + a26 = 0; + a9 = 10; + a11 = 1; + a16 = 8; + a5 = 4; + a1 = 12; + a19 = 2; + return 22; + } else if(((((a21==11)&&((((a16==10)&&((((a9==10)&&(a2==1))&&(a19==1))&&(a17==2)))&&(a4==1))&&(a1==12)))&&(a18==1))&&((a20==1)&&((a4==1)&&((!(a6==1)&&(((input==3)&&((a5==4)||(a5==5)))&&!(a12==1)))&&(a4==1)))))){ + a16 = 9; + a5 = 5; + a19 = 4; + a1 = 14; + a9 = 9; + a21 = 10; + a27 = 1; + a26 = 1; + return -1; + } else if((((((a16==9)&&((a20==1)&&(((a5==5)&&(((a12==1)&&(a3==1))&&!(a8==1)))&&!(a27==1))))&&(a1==13))&&(a21==10))&&((a19==3)&&((a17==2)&&((a3==1)&&((((input==6)&&(a9==10))&&!(a18==1))&&(a12==1))))))){ + a13 = 1; + a9 = 7; + a19 = 1; + a23 = 1; + a24 = 0; + a5 = 4; + a16 = 7; + a1 = 12; + return -1; + } else if(((!(a7==1)&&((a1==13)&&(((input==6)&&((a5==4)||(a5==5)))&&(a3==1))))&&(((((a19==1)&&((!(a11==1)||(((a16==7)&&((a17==2)&&(!(a24==1)&&(a13==1))))&&!(a26==1)))&&(a21==12)))&&(a9==8))&&!(a20==1))&&!(a7==1)))){ + a1 = 12; + a21 = 10; + a20 = 1; + a5 = 4; + a19 = 4; + a0 = 0; + a26 = 0; + a28 = 1; + return -1; + } else if(((!(a7==1)&&((((a17==2)&&(((a13==1)&&!(a26==1))&&(a9==10)))||!(a2==1))||(a18==1)))&&((a1==13)&&((a19==1)&&((a16==7)&&(!(a24==1)&&(!(a20==1)&&(((a21==11)&&((a5==4)&&(input==1)))&&(a11==1))))))))){ + a1 = 12; + a9 = 8; + a12 = 1; + a19 = 2; + a8 = 0; + a14 = 0; + a5 = 5; + return 21; + } else if(((!(a8==1)&&((a27==1)||(((a28==1)&&(a16==8))&&(a20==1))))&&((a3==1)&&((a13==1)&&((((!(a14==1)&&(((input==5)&&((((a5==4)&&(a1==14))&&(a9==7))||(((a9==11)&&((a5==5)&&(a1==13)))||(((a5==6)&&(a1==13))&&(a9==11)))))&&!(a4==1)))&&(a19==1))&&(a17==2))&&(a21==12)))))){ + a21 = 10; + a16 = 7; + a19 = 4; + a5 = 5; + a9 = 10; + a6 = 1; + a27 = 0; + a1 = 13; + a26 = 0; + return 25; + } else if((((a17==2)&&((!(a27==1)&&((a19==4)&&(a13==1)))&&(a21==10)))&&((a16==11)&&(((!(a7==1)&&((a28==1)&&(!(a27==1)&&(!(a24==1)&&(((a1==12)&&((a9==10)&&(input==4)))&&!(a26==1))))))&&(a5==5))&&!(a20==1))))){ + if((a11==1)){ + a19 = 5; + a3 = 0; + a22 = 1; + a0 = 1; + a9 = 11; + a5 = 6; + a21 = 12; + a16 = 7; + }else{ + a8 = 1; + a11 = 0; + a0 = 1; + a16 = 7; + a20 = 1; + a19 = 1; + } + return 21; + } else if((((a9==8)&&((((a28==1)&&(a2==1))&&(a21==10))&&(a16==8)))&&((!(a26==1)&&(!(a18==1)&&((((a17==2)&&(((a1==13)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a3==1)))&&(a3==1)))&&(a2==1))&&(a19==2))))&&(a20==1)))){ + a19 = 1; + a16 = 7; + a5 = 4; + a0 = 0; + a9 = 7; + a1 = 12; + a11 = 1; + return -1; + } else if((((a27==1)||(((a1==13)&&(((((a19==5)&&((a21==10)&&(a12==1)))&&(a5==5))&&(a3==1))&&(a16==10)))||!(a23==1)))&&(!(a4==1)&&(((((a20==1)&&((a17==2)&&(input==6)))&&(a9==7))&&(a3==1))&&(a13==1))))){ + a16 = 7; + a6 = 1; + a5 = 4; + a1 = 12; + a19 = 1; + a24 = 0; + a8 = 0; + return -1; + } else if(((((a6==1)&&(((a28==1)&&((!(a18==1)&&((a16==10)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a13==1)))&&(a21==11)))&&(a9==9))&&((!(a14==1)&&((a1==12)&&(((a19==5)&&(!(a7==1)&&(a28==1)))&&(a17==2))))&&!(a20==1)))){ + if((a8==1)){ + a7 = 1; + a20 = 1; + a1 = 14; + a28 = 0; + a5 = 6; + a18 = 1; + a19 = 4; + }else{ + a20 = 1; + a11 = 0; + a5 = 6; + a1 = 13; + a21 = 10; + a19 = 1; + a16 = 7; + a9 = 7; + a22 = 1; + } + return -1; + } else if((((a16==8)&&(((a9==7)&&((a7==1)||((a1==12)&&(a12==1))))&&!(a4==1)))&&((((!(a4==1)&&((a17==2)&&(((((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&!(a4==1))&&!(a7==1))&&!(a0==1))))&&(a21==10))&&(a20==1))&&(a19==4)))){ + a11 = 1; + a5 = 4; + a19 = 1; + a24 = 0; + a16 = 7; + return -1; + } else if(((((((((a11==1)&&(((input==3)&&(((a9==11)&&((a5==6)&&(a1==12)))||((a9==7)&&((a1==13)&&(a5==4)))))&&!(a4==1)))&&!(a18==1))&&(a17==2))&&(a21==12))&&(a13==1))&&!(a26==1))&&(!(a20==1)&&((((a2==1)&&(a16==7))&&(a19==3))||(a0==1))))){ + a1 = 12; + a20 = 1; + a2 = 1; + a9 = 7; + a21 = 10; + a11 = 1; + a19 = 1; + a5 = 4; + a28 = 1; + return -1; + } else if(((!(a12==1)||(!(a0==1)&&((a17==2)&&((a23==1)||!(a23==1)))))&&((a5==4)&&(((a9==10)&&((a19==1)&&((a16==8)&&(!(a18==1)&&(!(a7==1)&&(((a1==13)&&((a21==12)&&(input==1)))&&(a2==1)))))))&&(a20==1))))){ + a23 = 1; + a16 = 7; + a8 = 0; + a13 = 1; + a21 = 10; + a5 = 5; + a19 = 4; + return 25; + } else if(((((!(a27==1)&&((!(a27==1)&&((a16==8)&&(!(a20==1)&&(((a13==1)&&((input==5)&&((a5==5)||(a5==6))))&&(a11==1)))))&&(a19==2)))&&(a13==1))&&(a1==12))&&((a17==2)&&((a9==7)&&(!(a2==1)||((a21==10)&&(a12==1))))))){ + a4 = 0; + a19 = 3; + a5 = 4; + a6 = 1; + a21 = 12; + a28 = 1; + a20 = 1; + a9 = 10; + a16 = 9; + return 21; + } else if((((a16==11)&&(!(a4==1)&&((a17==2)&&((((a9==10)&&(((input==5)&&((a5==5)||(a5==6)))&&(a1==13)))&&!(a7==1))&&(a28==1)))))&&(((a21==10)&&((a23==1)&&((a28==1)&&((a20==1)&&((a3==1)&&(a28==1))))))&&(a19==2)))){ + a16 = 7; + a9 = 7; + a14 = 0; + a5 = 4; + a1 = 12; + a19 = 1; + a11 = 1; + return -1; + } else if((((a17==2)&&((a19==1)&&((a16==7)&&((a0==1)&&((a21==12)&&((a14==1)&&(a11==1)))))))&&(!(a6==1)&&((((a20==1)&&(((input==6)&&((((a1==13)&&(a5==6))&&(a9==11))||((a9==7)&&((a1==14)&&(a5==4)))))&&(a14==1)))&&!(a11==1))&&(a4==1))))){ + a9 = 10; + a1 = 12; + a10 = 1; + a6 = 0; + a5 = 5; + a21 = 10; + a18 = 1; + return 21; + } else if((((a1==12)&&((!(a0==1)&&(((a17==2)&&((input==1)&&(a16==9)))&&(a9==11)))&&(a21==11)))&&((a19==5)&&((((!(a24==1)&&((((a12==1)||!(a13==1))||!(a11==1))&&!(a0==1)))&&(a20==1))||!(a6==1))&&(a5==4))))){ + if((a27==1)){ + a20 = 0; + a16 = 8; + a19 = 4; + a9 = 8; + a5 = 5; + a8 = 0; + a14 = 0; + }else{ + a16 = 7; + a9 = 10; + a3 = 1; + a19 = 2; + a21 = 10; + a1 = 13; + a12 = 1; + } + return -1; + } else if(((!(a8==1)&&(!(a18==1)&&((a16==8)&&((input==6)&&((((a9==7)&&((a5==5)&&(a1==12)))&&(a19==3))||(((a19==2)&&(((a1==14)&&(a5==6))&&(a9==11)))||((a19==3)&&(((a5==4)&&(a1==12))&&(a9==7)))))))))&&((a2==1)&&(((!(a24==1)&&(((a17==2)&&((a6==1)&&(a21==11)))&&!(a20==1)))&&(a6==1))||!(a6==1))))){ + a19 = 2; + a18 = 0; + a9 = 9; + a5 = 5; + a16 = 7; + a1 = 13; + a20 = 1; + a12 = 1; + a21 = 10; + a4 = 0; + return 25; + } else if(((!(a0==1)&&((a9==7)&&((((a28==1)&&((a0==1)||((a5==5)&&((a23==1)&&(a16==10)))))&&(a19==2))&&(a21==12))))&&((((a11==1)&&((a20==1)&&(((input==5)&&(a17==2))&&(a28==1))))&&(a1==13))&&(a3==1)))){ + a5 = 4; + a16 = 7; + a19 = 1; + a7 = 0; + a28 = 1; + a21 = 10; + a24 = 0; + a1 = 12; + return -1; + } else if((((a20==1)&&(!(a7==1)&&(((a19==3)&&((a2==1)&&((a16==7)&&(((((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4)))&&(input==6))&&(a1==12))&&!(a7==1)))))&&(a28==1))))&&(((a24==1)||((a21==12)&&((a17==2)&&(a11==1))))&&!(a4==1)))){ + a16 = 8; + a24 = 0; + a21 = 11; + a19 = 1; + a12 = 1; + a18 = 0; + a9 = 10; + a5 = 4; + a1 = 14; + return 25; + } else if(((!(a7==1)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==5)))&&((!(a27==1)&&(((((a1==12)&&((a16==8)&&(((a17==2)&&(((a19==1)&&(a28==1))&&(a21==10)))&&(a20==1))))&&(a13==1))&&!(a0==1))||!(a3==1)))||(a0==1)))){ + a5 = 4; + a9 = 7; + a28 = 1; + a16 = 7; + a6 = 1; + a8 = 0; + return -1; + } else if((((a16==9)&&((a9==11)&&((!(a14==1)&&((a2==1)&&(a19==1)))||(a27==1))))&&(((((a13==1)&&(!(a24==1)&&(!(a24==1)&&((a13==1)&&((!(a20==1)&&(input==3))&&(a17==2))))))&&(a1==12))&&(a5==6))&&(a21==11)))){ + a29 = 1; + a19 = 2; + a21 = 10; + a16 = 7; + a20 = 1; + a14 = 1; + return 21; + } else if((((((a1==14)&&((a0==1)||((((a2==1)&&(a16==7))&&!(a0==1))&&!(a4==1))))&&(a21==11))&&(a11==1))&&(!(a24==1)&&(!(a7==1)&&((a20==1)&&((((a17==2)&&((input==4)&&((a5==4)||(a5==5))))&&(a19==4))&&(a9==8))))))){ + a19 = 1; + a5 = 4; + a11 = 1; + a21 = 10; + a1 = 12; + a26 = 0; + a24 = 0; + a9 = 7; + return -1; + } else if((((a26==1)||((a19==5)&&(!(a26==1)&&(((a21==11)&&(!(a18==1)&&(((a2==1)||!(a3==1))&&(a16==7))))&&(a9==10)))))&&((a23==1)&&(((a1==13)&&((a28==1)&&((a17==2)&&((input==4)&&(a5==4)))))&&(a20==1))))){ + a21 = 10; + a4 = 0; + a19 = 1; + a1 = 12; + a9 = 7; + a18 = 0; + a28 = 1; + return -1; + } return calculate_output36(input); + } + + int calculate_output36(int input) { + if((((!(a28==1)||(((a7==1)||((a21==12)&&(((((a19==2)&&((a16==11)&&(a12==1)))&&(a23==1))&&(a17==2))&&(a20==1))))&&!(a8==1)))&&(a13==1))&&((a1==13)&&(!(a24==1)&&((((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==4)))))){ + a21 = 10; + a1 = 12; + a5 = 4; + a2 = 1; + a9 = 7; + a6 = 1; + a18 = 0; + a19 = 1; + a16 = 7; + return -1; + } else if(((!(a18==1)&&(!(a0==1)&&(((a1==13)&&(((((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(input==4))&&!(a20==1)))&&(a16==7))))&&(((!(a13==1)||((a21==12)&&((a4==1)||(((a19==5)&&(a2==1))||(a0==1)))))||!(a2==1))&&(a17==2)))){ + a19 = 4; + a14 = 0; + a16 = 8; + a11 = 1; + a2 = 1; + a20 = 1; + a1 = 14; + a5 = 4; + a9 = 10; + return -1; + } else if((((a3==1)&&((((a19==4)&&(((a1==14)&&((!(a8==1)&&(((a16==9)&&(((input==4)&&(a21==10))&&(a17==2)))&&(a9==7)))&&!(a26==1)))&&!(a18==1)))&&(a3==1))&&!(a0==1)))&&(!(a20==1)&&((a5==4)&&(a3==1))))){ + if((a23==1)){ + a21 = 12; + a2 = 0; + a1 = 12; + a20 = 1; + a5 = 6; + a16 = 8; + a22 = 1; + a9 = 8; + a19 = 3; + a0 = 1; + }else{ + a23 = 0; + a9 = 10; + a19 = 3; + a1 = 12; + a20 = 1; + a12 = 0; + a8 = 1; + a21 = 12; + } + return 21; + } else if((((a12==1)&&(!(a14==1)&&(!(a13==1)||(((a20==1)&&((a21==11)&&(((a16==8)&&(a2==1))||(a24==1))))&&(a19==5)))))&&((a28==1)&&(!(a0==1)&&((a1==14)&&(((input==4)&&(((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))&&(a17==2))))))){ + a9 = 7; + a16 = 7; + a4 = 0; + a1 = 12; + a21 = 10; + a18 = 0; + a19 = 1; + a5 = 4; + a23 = 1; + return -1; + } else if((((a20==1)&&(((a4==1)||(((!(a27==1)&&((a3==1)&&(a5==5)))||(a18==1))||(a8==1)))&&(a16==7)))&&((a1==14)&&((a17==2)&&((a9==8)&&((a6==1)&&((a12==1)&&(((a19==1)&&(input==4))&&(a21==12))))))))){ + a27 = 0; + a16 = 9; + a13 = 1; + a6 = 1; + a21 = 10; + return 22; + } else if((((((a19==2)&&((((((a21==11)&&(a23==1))&&(a9==10))&&(a28==1))&&(a1==12))&&(a17==2)))&&(a6==1))&&(a13==1))&&((!(a18==1)&&(((a20==1)&&(!(a4==1)&&((input==5)&&(a16==11))))&&(a5==4)))&&(a28==1)))){ + a21 = 10; + a8 = 0; + a16 = 7; + a27 = 0; + a3 = 1; + a9 = 7; + a19 = 1; + return -1; + } else if(((!(a7==1)&&((!(a27==1)&&((((a28==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5)))))&&(a19==2))&&(a23==1)))&&!(a14==1)))&&(((((a9==9)&&(((a1==12)&&((a16==7)&&(a13==1)))&&(a21==12)))&&!(a20==1))&&(a17==2))&&!(a8==1)))){ + a7 = 0; + a14 = 0; + a9 = 7; + a19 = 1; + a5 = 4; + a18 = 0; + a21 = 10; + a20 = 1; + return -1; + } else if((((((a21==11)&&((a24==1)&&((((a12==1)&&(a19==5))&&!(a23==1))&&!(a3==1))))&&(a20==1))&&(a17==2))&&(!(a11==1)&&((a1==13)&&(((a16==8)&&(((a9==11)&&((input==3)&&((a5==4)||(a5==5))))&&(a27==1)))&&!(a3==1)))))){ + a21 = 12; + a4 = 1; + a5 = 4; + a23 = 0; + a19 = 4; + a16 = 11; + a13 = 0; + return 21; + } else if((((a6==1)&&((a17==2)&&(((!(a4==1)&&(a11==1))&&(a6==1))&&(a1==13))))&&(!(a26==1)&&((!(a7==1)&&((a19==4)&&((((((input==6)&&(a20==1))&&(a16==8))&&(a12==1))&&(a5==4))&&(a21==12))))&&(a9==7))))){ + a28 = 1; + a13 = 1; + a21 = 10; + a1 = 12; + a16 = 7; + a19 = 1; + a18 = 0; + return -1; + } else if((((((((a17==2)&&((a23==1)||!(a23==1)))&&!(a24==1))&&(a1==12))&&(a9==7))&&!(a20==1))&&((((a21==10)&&((((a3==1)&&((a28==1)&&((input==4)&&((a5==4)||(a5==5)))))&&(a16==11))&&!(a8==1)))&&!(a27==1))&&(a19==2)))){ + a19 = 1; + a9 = 8; + a2 = 0; + a7 = 1; + a11 = 0; + a1 = 13; + a5 = 4; + a16 = 9; + return 23; + } else if((((((a16==9)&&(!(a4==1)&&(a6==1)))&&!(a18==1))||!(a12==1))&&(((a19==5)&&(((a1==12)&&((((a17==2)&&(!(a0==1)&&((input==3)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9))))))&&(a13==1))&&(a20==1)))&&!(a24==1)))&&(a21==10)))){ + a27 = 0; + a9 = 7; + a4 = 0; + a6 = 1; + a19 = 1; + a16 = 7; + a5 = 4; + return -1; + } else if((((a19==1)&&((a20==1)&&((a9==10)&&(!(a11==1)||(((a24==1)||(!(a3==1)||(a2==1)))&&(a17==2))))))&&(((((!(a27==1)&&(((input==3)&&((a5==4)||(a5==5)))&&(a21==10)))&&!(a8==1))&&!(a4==1))&&(a1==12))&&(a16==9)))){ + a9 = 7; + a5 = 4; + a23 = 1; + a3 = 1; + a16 = 7; + a13 = 1; + return -1; + } else if((((a16==8)&&((((a13==1)&&(((a9==9)&&((((a3==1)&&(a17==2))&&(a2==1))&&(a23==1)))||!(a2==1)))&&!(a24==1))||(a18==1)))&&((((((input==3)&&(a5==6))&&(a21==12))&&(a19==2))&&(a1==12))&&(a20==1)))){ + a21 = 10; + a27 = 0; + a24 = 0; + a1 = 13; + a5 = 5; + a16 = 7; + a28 = 1; + return -1; + } else if(((!(a26==1)&&(!(a8==1)&&((!(a2==1)||((((a13==1)&&(a20==1))&&(a1==13))&&(a5==5)))&&(a28==1))))&&(((a16==9)&&((((a2==1)&&(((a17==2)&&(input==5))&&(a21==12)))&&(a9==9))&&(a19==3)))&&!(a0==1)))){ + a19 = 1; + a9 = 7; + a5 = 4; + a16 = 7; + a1 = 12; + a21 = 10; + a3 = 1; + a18 = 0; + return -1; + } else if(((((!(a3==1)||(((a6==1)&&!(a8==1))||!(a2==1)))||(a8==1))&&!(a8==1))&&((a21==12)&&((a17==2)&&((((a16==7)&&((a23==1)&&((((a1==12)&&(input==6))&&!(a20==1))&&(a5==5))))&&(a9==9))&&(a19==3)))))){ + a8 = 0; + a24 = 0; + a20 = 1; + a21 = 11; + a16 = 10; + a12 = 1; + return 25; + } else if((((a26==1)||((((((a1==12)&&(((!(a6==1)||(a11==1))||!(a12==1))&&(a19==4)))&&!(a0==1))||!(a6==1))&&!(a8==1))&&(a17==2)))&&(((a21==11)&&(((input==1)&&(((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))))&&(a16==7)))&&(a20==1)))){ + a13 = 1; + a19 = 1; + a3 = 1; + a5 = 4; + a21 = 10; + a9 = 7; + a14 = 0; + return -1; + } else if((((a17==2)&&((((a4==1)||((a27==1)||(a11==1)))&&(a19==1))||!(a2==1)))&&((((a1==12)&&((a11==1)&&((a16==8)&&((a23==1)&&((a23==1)&&((((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))&&(input==6)))))))&&(a20==1))&&(a21==10)))){ + a7 = 0; + a18 = 0; + a21 = 12; + a9 = 7; + a24 = 0; + a5 = 5; + a16 = 9; + a19 = 2; + return 21; + } else if(((((((a23==1)&&(((a21==12)&&((!(a4==1)&&(!(a14==1)&&(((a5==5)||(a5==6))&&(input==4))))&&!(a27==1)))&&!(a8==1)))&&(a19==3))&&(a20==1))&&(a9==11))&&(((a1==13)&&((a16==9)&&((a17==2)&&(a13==1))))&&!(a26==1)))){ + a5 = 5; + a0 = 0; + a7 = 0; + a16 = 10; + a2 = 1; + a1 = 12; + a9 = 10; + return 25; + } else if(((!(a26==1)&&((((a21==10)&&((a13==1)&&((a5==6)&&((input==4)&&(a17==2)))))&&(a19==4))&&!(a24==1)))&&((((a9==8)&&(((((a23==1)&&!(a8==1))&&!(a4==1))&&(a20==1))&&(a16==9)))&&(a1==12))&&!(a26==1)))){ + a16 = 7; + a5 = 4; + a9 = 7; + a14 = 0; + a19 = 1; + a13 = 1; + a11 = 1; + return -1; + } else if((((a19==5)&&((!(a27==1)&&(((a16==10)&&(!(a4==1)&&((input==3)&&(a17==2))))&&!(a27==1)))&&!(a4==1)))&&((a5==4)&&(((a1==13)&&(((a21==12)&&((a3==1)&&((a3==1)&&(a2==1))))&&(a20==1)))&&(a9==7))))){ + a0 = 0; + a1 = 12; + a6 = 1; + a21 = 10; + a16 = 7; + a19 = 1; + a13 = 1; + return -1; + } else if((((a21==10)&&((((a17==2)&&((a28==1)&&(a20==1)))&&!(a24==1))&&(a3==1)))&&((a19==5)&&((((((((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==4))&&(a16==9))&&(a28==1))&&(a2==1))&&(a11==1))&&(a1==13))&&(a13==1))))){ + a3 = 1; + a5 = 6; + a0 = 0; + a8 = 0; + a9 = 10; + a19 = 1; + return 26; + } else if(((!(a7==1)&&((a12==1)&&((((((a3==1)&&(a16==10))&&(a1==13))&&(a19==2))&&(a28==1))&&!(a0==1))))&&(!(a18==1)&&((((((a21==11)&&(((a5==5)||(a5==6))&&(input==4)))&&(a17==2))&&!(a4==1))&&(a9==9))&&(a20==1))))){ + a23 = 1; + a1 = 14; + a19 = 1; + a5 = 4; + a8 = 0; + a4 = 0; + a16 = 11; + return 21; + } else if((((a21==11)&&((a19==1)&&(!(a18==1)&&((a20==1)&&(!(a11==1)||((a13==1)&&(a16==8)))))))&&((a1==12)&&((((!(a8==1)&&(((((a5==5)||(a5==6))&&(input==3))&&!(a18==1))&&!(a26==1)))&&(a28==1))&&(a9==11))&&(a17==2))))){ + a24 = 0; + a5 = 4; + a21 = 10; + a16 = 7; + a9 = 7; + a14 = 0; + a8 = 0; + return -1; + } else if((((((((a18==1)||(((a3==1)&&(a28==1))&&!(a4==1)))&&!(a20==1))&&(a16==7))||!(a12==1))&&(a21==12))&&((!(a24==1)&&(((((input==4)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(a19==5))&&(a17==2))&&(a13==1)))&&(a1==12)))){ + a9 = 7; + a20 = 1; + a5 = 4; + a19 = 1; + a6 = 1; + a26 = 0; + a21 = 10; + a12 = 1; + return -1; + } else if(((((a12==1)&&(!(a24==1)&&((!(a20==1)&&(a28==1))&&(a1==13))))||(a27==1))&&((((((((a19==4)&&(((input==4)&&((a5==5)||(a5==6)))&&(a16==8)))&&(a3==1))&&!(a14==1))&&(a21==12))&&(a11==1))&&(a9==7))&&(a17==2)))){ + if((a25==1)){ + a16 = 7; + a21 = 10; + a14 = 1; + a5 = 6; + a19 = 1; + a23 = 0; + a27 = 1; + a20 = 1; + }else{ + a5 = 4; + a18 = 1; + a16 = 9; + a21 = 10; + a12 = 0; + a15 = 1; + a19 = 5; + a1 = 14; + } + return 25; + } else if((((((a16==7)&&((a14==1)||((a13==1)&&(a3==1))))||!(a12==1))||(a14==1))&&((a2==1)&&((a1==14)&&((a20==1)&&((((a21==10)&&(!(a24==1)&&(((input==1)&&((a5==5)||(a5==6)))&&(a17==2))))&&(a19==2))&&(a9==9))))))){ + a19 = 1; + a14 = 0; + a1 = 12; + a9 = 7; + a5 = 4; + a8 = 0; + a6 = 1; + return -1; + } else if(((!(a20==1)&&(((a21==12)&&((a23==1)||!(a6==1)))&&(a17==2)))&&((a13==1)&&(((a6==1)&&(!(a0==1)&&((((a1==13)&&(((a23==1)&&((input==3)&&((a5==4)||(a5==5))))&&(a16==9)))&&!(a8==1))&&(a9==7))))&&(a19==2))))){ + if((a12==1)){ + a5 = 5; + a20 = 1; + a22 = 1; + a1 = 12; + a16 = 8; + a9 = 8; + a18 = 1; + a19 = 4; + }else{ + a1 = 12; + a10 = 1; + a5 = 4; + a20 = 1; + a3 = 0; + a16 = 7; + a8 = 1; + a21 = 10; + a9 = 9; + } + return 21; + } else if((((a21==10)&&((a19==2)&&(!(a24==1)&&((a9==11)&&((((a20==1)&&(input==5))&&(a23==1))&&(a1==13))))))&&((!(a27==1)&&((a17==2)&&(((a6==1)&&((a8==1)||((a5==4)&&(a23==1))))&&(a16==7))))||!(a12==1)))){ + a19 = 3; + a12 = 1; + a5 = 6; + a24 = 0; + a9 = 9; + a1 = 14; + return 23; + } else if((((((((a21==11)&&((a17==2)&&(((a28==1)||!(a6==1))&&!(a27==1))))&&!(a27==1))&&(a16==10))&&(a2==1))&&(a23==1))&&((a20==1)&&(((a1==13)&&(!(a4==1)&&(((input==1)&&((a5==4)||(a5==5)))&&(a9==11))))&&(a19==2))))){ + a28 = 1; + a11 = 1; + a3 = 1; + a21 = 10; + a9 = 9; + a16 = 7; + a5 = 4; + return -1; + } else if(((((a5==6)&&((a17==2)&&(((a16==7)&&(!(a7==1)&&((a23==1)&&((((a1==13)&&(input==5))&&!(a27==1))&&!(a8==1)))))&&(a19==4))))&&(a9==9))&&((((a21==11)&&((a20==1)&&(a12==1)))&&(a2==1))||!(a2==1)))){ + a3 = 1; + a16 = 8; + a24 = 0; + a5 = 5; + a23 = 1; + a9 = 8; + return 22; + } else if((((a17==2)&&(((a23==1)&&(((a2==1)&&((a9==9)&&((a19==2)&&(!(a7==1)&&((a20==1)&&(input==1))))))&&(a16==11)))&&(a1==13)))&&((((a26==1)||((!(a4==1)&&(a11==1))&&(a21==11)))&&!(a8==1))&&(a5==5)))){ + a21 = 10; + a27 = 0; + a19 = 1; + a9 = 7; + a16 = 7; + a1 = 12; + a4 = 0; + a2 = 1; + a5 = 4; + return -1; + } else if((((((a18==1)&&((a23==1)&&(a20==1)))&&!(a13==1))&&(a16==8))&&((a19==4)&&((a17==2)&&(((((a21==11)&&(!(a3==1)&&((a1==14)&&(!(a6==1)&&(((a5==5)||(a5==6))&&(input==1))))))&&(a9==9))&&!(a23==1))&&!(a11==1)))))){ + a19 = 2; + a23 = 0; + a5 = 5; + a16 = 7; + a1 = 12; + a7 = 1; + a21 = 12; + a9 = 7; + a0 = 1; + a20 = 0; + return -1; + } else if((((a3==1)&&((a17==2)&&(((a3==1)&&((a2==1)&&((((input==4)&&(a16==10))&&(a21==11))&&(a6==1))))&&(a2==1))))&&(((a1==13)&&((a20==1)&&((!(a18==1)&&((a3==1)&&(a19==3)))&&(a5==6))))&&(a9==8)))){ + a21 = 10; + a4 = 0; + a1 = 12; + a27 = 0; + a16 = 7; + a5 = 4; + a6 = 1; + a9 = 7; + a19 = 1; + return -1; + } else if(((((!(a18==1)&&((((input==5)&&((a5==4)||(a5==5)))&&!(a7==1))&&(a28==1)))&&(a19==3))&&(a21==12))&&((a9==9)&&((a1==14)&&((a17==2)&&(((a14==1)||((((a11==1)&&(a20==1))&&!(a4==1))&&!(a24==1)))&&(a16==9))))))){ + a1 = 13; + a9 = 8; + a5 = 5; + a16 = 10; + a3 = 1; + a19 = 2; + a28 = 1; + a18 = 0; + return 21; + } else if((((((a11==1)&&(((((a21==10)&&(input==6))&&(a3==1))&&!(a18==1))&&(a11==1)))&&(a16==10))&&(a19==4))&&(((a5==5)&&((!(a6==1)||((a17==2)&&((a18==1)||((a13==1)&&(a1==12)))))&&!(a20==1)))&&(a9==8)))){ + if((a16==7)){ + a0 = 1; + a7 = 1; + a5 = 6; + a9 = 10; + a19 = 1; + a16 = 7; + a20 = 1; + a26 = 1; + }else{ + a19 = 1; + a4 = 1; + a15 = 1; + a16 = 7; + a9 = 11; + a20 = 1; + a5 = 4; + a26 = 1; + } + return -1; + } else if((((((a17==2)&&(input==3))&&(a19==5))&&(a28==1))&&((a16==11)&&(((a9==8)&&(!(a7==1)&&(((a6==1)&&((((((a23==1)&&(a28==1))&&(a1==12))&&(a21==11))||!(a11==1))||(a26==1)))&&(a20==1))))&&(a5==5))))){ + a16 = 7; + a19 = 1; + a5 = 4; + a24 = 0; + a21 = 10; + a9 = 7; + a12 = 1; + a6 = 1; + return -1; + } else if(((((((((((((a1==12)&&(a5==5))&&(a9==11))||(((a5==6)&&(a1==12))&&(a9==11)))||(((a5==4)&&(a1==13))&&(a9==7)))&&(input==6))&&(a6==1))&&(a21==10))&&(a19==4))&&(a17==2))&&(a6==1))&&((((!(a14==1)&&(((a23==1)&&(a13==1))&&(a20==1)))&&(a16==8))&&!(a7==1))&&!(a8==1)))){ + a9 = 9; + a14 = 0; + a3 = 1; + a12 = 1; + a5 = 5; + a19 = 1; + a1 = 12; + a16 = 10; + return 22; + } else if((((((a19==4)&&((a6==1)&&(((a13==1)&&(((a5==5)||(a5==6))&&(input==3)))&&(a6==1))))&&(a6==1))&&(a21==12))&&(((a16==7)&&(((!(a27==1)&&((a17==2)&&((a13==1)&&(a6==1))))&&!(a20==1))&&(a1==12)))&&(a9==7)))){ + a20 = 1; + a13 = 1; + a21 = 10; + a5 = 4; + a19 = 1; + a6 = 1; + a28 = 1; + return -1; + } else if((((((a23==1)&&((a12==1)&&((a3==1)||(a0==1))))&&(a21==12))||(a8==1))&&((a1==14)&&((a16==9)&&(!(a4==1)&&((((((input==3)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10))))&&(a17==2))&&(a19==2))&&(a20==1))&&(a12==1))))))){ + a13 = 1; + a21 = 11; + a19 = 5; + a1 = 13; + a3 = 1; + a5 = 6; + a16 = 10; + a9 = 7; + return 21; + } else if(((!(a14==1)&&((a21==11)&&((a13==1)&&((input==1)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5)))))))&&((a19==5)&&(((!(a2==1)||((a17==2)&&(((!(a20==1)&&((a6==1)&&!(a0==1)))||(a24==1))&&!(a8==1))))&&(a16==8))&&(a1==13))))){ + a19 = 1; + a18 = 1; + a1 = 14; + a9 = 7; + a5 = 4; + a21 = 10; + a28 = 0; + a20 = 1; + a16 = 7; + a14 = 1; + return 22; + } else if((((a21==12)&&(((a17==2)&&((((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6))))&&(input==1)))&&(a20==1)))&&(((((a23==1)&&(((a24==1)||((a19==2)&&((a1==14)&&((a16==9)&&(a13==1)))))||!(a2==1)))||!(a3==1))&&!(a18==1))||(a7==1)))){ + a5 = 5; + a19 = 3; + a1 = 13; + a3 = 1; + a21 = 10; + a12 = 1; + a23 = 1; + a9 = 9; + a16 = 7; + return 21; + } else if((((a28==1)&&(a9==7))&&(((!(a26==1)&&(!(a4==1)&&(((!(a0==1)&&((a1==14)&&(((((a28==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a20==1))&&(a17==2))&&!(a27==1))))&&(a21==11))&&!(a18==1))))&&(a16==7))&&(a19==3)))){ + a19 = 1; + a21 = 10; + a4 = 0; + a5 = 4; + a1 = 12; + a2 = 1; + a20 = 1; + a11 = 1; + return -1; + } else if((((((a20==1)&&(((((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6))))&&(input==6))&&(a16==11)))&&(a21==10))&&(a17==2))&&((((a19==2)&&(((((!(a13==1)||(a11==1))&&!(a7==1))||(a18==1))||(a24==1))&&(a1==14)))&&!(a4==1))&&(a3==1)))){ + a5 = 4; + a28 = 1; + a19 = 1; + a3 = 1; + a13 = 1; + a9 = 7; + a16 = 7; + a1 = 12; + return -1; + } else if(((!(a6==1)||(((a23==1)||(a8==1))&&(a16==8)))&&(!(a4==1)&&(!(a8==1)&&((a1==14)&&((a20==1)&&((a12==1)&&(((((a17==2)&&((input==5)&&(((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))))&&!(a14==1))&&(a21==12))&&(a19==3))))))))){ + a24 = 0; + a9 = 7; + a1 = 12; + a3 = 1; + a16 = 10; + a28 = 1; + a5 = 4; + return 22; + } else if((((((((a9==10)&&((a16==8)&&((a19==3)&&(a3==1))))&&(a17==2))&&!(a20==1))&&!(a0==1))&&(a21==10))&&((((((!(a24==1)&&((input==1)&&((a5==4)||(a5==5))))&&(a3==1))&&(a1==14))&&!(a18==1))&&(a23==1))&&(a6==1)))){ + if((a4==1)){ + a5 = 5; + a9 = 9; + a7 = 0; + a4 = 0; + a21 = 11; + a19 = 4; + a26 = 0; + }else{ + a14 = 0; + a16 = 11; + a0 = 0; + a20 = 1; + a21 = 11; + a9 = 9; + a3 = 1; + a19 = 4; + a1 = 12; + a5 = 4; + } + return 26; + } else if((((a18==1)||((a5==4)&&((((a1==12)&&((a19==3)&&((a23==1)&&!(a20==1))))||!(a28==1))&&(a9==9))))&&(((!(a18==1)&&(((!(a18==1)&&((a16==9)&&(input==1)))&&(a21==11))&&(a17==2)))&&!(a18==1))&&(a13==1)))){ + a19 = 1; + a1 = 14; + a16 = 7; + a3 = 0; + a9 = 10; + a21 = 10; + a29 = 1; + a4 = 1; + return -1; + } else if(((((a1==13)&&(((a19==3)&&((a20==1)&&((a3==1)&&(((input==3)&&(a16==7))&&(a17==2)))))&&(a21==10)))&&(a3==1))&&(((((a4==1)||(((a23==1)&&(a9==8))&&!(a14==1)))||!(a23==1))&&(a5==5))||!(a2==1)))){ + a0 = 0; + a1 = 12; + a19 = 1; + a5 = 4; + a24 = 0; + a2 = 1; + a9 = 7; + return -1; + } else if((((a21==12)&&(((a19==5)&&((a2==1)&&((a11==1)&&(((a17==2)&&((input==6)&&(((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6))))))&&!(a24==1)))))&&!(a20==1)))&&((a1==13)&&(!(a24==1)&&((a16==7)&&(((a23==1)&&(a23==1))||!(a13==1))))))){ + a21 = 10; + a7 = 0; + a9 = 7; + a19 = 1; + a5 = 4; + a20 = 1; + a14 = 0; + a24 = 0; + a1 = 12; + return -1; + } else if(((!(a18==1)&&(((a21==11)&&((((a9==7)&&((a17==2)&&((a20==1)&&((a5==6)&&(input==1)))))&&(a19==1))&&(a16==7)))&&!(a18==1)))&&(!(a3==1)||(!(a27==1)&&(((a3==1)&&((a28==1)&&(a11==1)))&&(a1==14)))))){ + a5 = 4; + a2 = 1; + a13 = 1; + a21 = 10; + a18 = 0; + a9 = 9; + a16 = 8; + return 26; + } else if(((!(a23==1)&&(((((a5==5)&&((a19==2)&&(((!(a12==1)&&(a23==1))&&(a1==12))&&(a16==8))))&&!(a11==1))&&(a17==2))&&(a9==7)))&&((a14==1)&&(((((a20==1)&&(input==5))&&(a21==11))&&(a26==1))&&(a14==1))))){ + a9 = 8; + a19 = 3; + a5 = 6; + a16 = 9; + a27 = 1; + a1 = 13; + a21 = 12; + a10 = 0; + a15 = 1; + return -1; + } else if((((((a7==1)||((a28==1)&&(a16==10)))&&(a12==1))&&(a11==1))&&((((a1==14)&&((((a5==5)&&((a28==1)&&((a6==1)&&(((a21==10)&&(input==5))&&(a20==1)))))&&(a23==1))&&(a19==1)))&&(a17==2))&&(a9==11)))){ + a16 = 9; + a14 = 0; + a19 = 5; + a5 = 4; + a1 = 12; + a18 = 0; + a13 = 1; + return -1; + } else if((((a12==1)&&((a21==11)&&(((input==5)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&!(a14==1))))&&((a1==12)&&((((a19==5)&&((a16==7)&&((a17==2)&&(!(a11==1)||(!(a20==1)&&((a28==1)||!(a13==1)))))))||!(a12==1))&&!(a0==1))))){ + a1 = 14; + a2 = 1; + a5 = 6; + a21 = 10; + a14 = 0; + a16 = 8; + a19 = 2; + a9 = 10; + a6 = 1; + return 21; + } else if(((!(a4==1)&&((a19==5)&&((a21==10)&&(((a27==1)||((a23==1)||!(a2==1)))&&!(a18==1)))))&&((a16==7)&&((a28==1)&&(((a9==10)&&(!(a18==1)&&((a20==1)&&(((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a17==2)))))&&(a1==13)))))){ + a19 = 1; + a1 = 12; + a28 = 1; + a18 = 0; + a5 = 4; + a9 = 7; + a24 = 0; + return -1; + } else if((((a23==1)&&((a9==9)&&(((((input==5)&&(a1==14))&&(a23==1))&&(a16==11))&&(a6==1))))&&(!(a3==1)||(((a21==12)&&(((((a19==2)&&((a17==2)&&(a2==1)))&&(a5==5))&&!(a8==1))||!(a13==1)))&&(a20==1))))){ + a12 = 1; + a14 = 0; + a19 = 4; + a0 = 0; + a9 = 8; + return 25; + } else if((((a21==11)&&((!(a8==1)&&(!(a0==1)&&((a23==1)&&((!(a8==1)&&((a16==8)&&((a2==1)&&((input==5)&&((a5==5)||(a5==6))))))&&(a19==4)))))&&(a1==13)))&&((((a17==2)&&(!(a20==1)&&(a3==1)))||!(a13==1))&&(a9==8)))){ + a21 = 10; + a26 = 0; + a5 = 5; + a18 = 0; + a16 = 7; + a9 = 9; + a19 = 1; + a0 = 0; + return 23; + } else if((((a1==13)&&((a9==9)&&((a17==2)&&(((a16==8)&&(((a5==5)&&(a6==1))||(a0==1)))&&!(a18==1)))))&&(((a3==1)&&(((!(a24==1)&&(((a19==3)&&(input==6))&&(a20==1)))&&(a2==1))&&(a21==10)))&&(a13==1)))){ + a12 = 1; + a5 = 4; + a16 = 7; + a18 = 0; + a1 = 12; + a19 = 1; + a9 = 7; + return -1; + } else if(((!(a27==1)&&(!(a7==1)&&(((a17==2)&&(((((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a21==10))&&(a19==2))&&(a13==1))&&(a16==11)))&&!(a18==1))))&&((((((a9==11)&&(a2==1))||(a0==1))&&!(a20==1))&&(a1==13))&&!(a7==1)))){ + if((a18==1)){ + a1 = 14; + a5 = 4; + a16 = 7; + a9 = 8; + a25 = 1; + a19 = 1; + a15 = 1; + a26 = 1; + a20 = 1; + }else{ + a7 = 1; + a14 = 1; + a20 = 1; + a1 = 12; + a5 = 5; + a10 = 0; + a19 = 1; + a9 = 8; + a16 = 7; + } + return -1; + } else if(((((a0==1)||((((a17==2)&&((a24==1)||((a3==1)&&(a1==14))))&&!(a24==1))&&(a16==8)))&&(a21==10))&&(((a9==7)&&((a3==1)&&(!(a27==1)&&((a19==2)&&((((a5==5)||(a5==6))&&(input==3))&&(a20==1))))))&&(a13==1)))){ + a12 = 1; + a16 = 7; + a19 = 1; + a5 = 4; + a1 = 12; + a27 = 0; + a2 = 1; + return -1; + } else if(((((((a5==5)&&((a12==1)&&((input==1)&&(a19==1))))&&(a21==10))&&(a16==8))&&!(a4==1))&&((a20==1)&&((a17==2)&&(((((((a28==1)&&(a9==9))&&(a6==1))&&(a1==14))||(a8==1))||(a4==1))&&!(a0==1)))))){ + a0 = 0; + a5 = 4; + a8 = 0; + a9 = 7; + a16 = 7; + a28 = 1; + a1 = 12; + return -1; + } else if((((((((a9==9)&&(!(a28==1)||(a12==1)))&&(a2==1))&&(a21==12))&&!(a24==1))&&(a1==13))&&(((a20==1)&&((a16==8)&&((a2==1)&&((a19==5)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&(a17==2))&&!(a14==1))))))&&!(a8==1)))){ + a8 = 0; + a19 = 1; + a5 = 6; + a1 = 14; + a26 = 0; + a13 = 1; + a9 = 8; + return 21; + } else if((((((((a17==2)&&(((input==1)&&!(a20==1))&&(a9==8)))&&(a21==12))&&(a5==5))&&(a3==1))&&(a11==1))&&(!(a23==1)||((((a19==1)&&((((a8==1)||(a13==1))&&(a1==13))&&(a16==9)))&&(a11==1))||(a26==1))))){ + a24 = 1; + a5 = 4; + a20 = 1; + a19 = 2; + a1 = 12; + a21 = 10; + a26 = 1; + a9 = 11; + a16 = 7; + a29 = 0; + return 22; + } else if(((((((((!(a8==1)&&(!(a20==1)&&((a21==10)&&(a3==1))))||!(a12==1))&&(a17==2))&&(a5==4))&&(a9==10))&&(a2==1))||!(a12==1))&&(((a1==14)&&(((a13==1)&&((input==6)&&(a16==7)))&&(a19==3)))&&(a6==1)))){ + a19 = 1; + a1 = 12; + a12 = 1; + a9 = 7; + a20 = 1; + a0 = 0; + a8 = 0; + return -1; + } else if((((((!(a13==1)||((a1==12)&&(((a19==3)&&((a23==1)&&!(a18==1)))&&(a23==1))))&&!(a20==1))&&(a21==12))||!(a12==1))&&(!(a26==1)&&(((a9==10)&&(((a17==2)&&(((a5==5)||(a5==6))&&(input==1)))&&(a16==9)))&&!(a0==1))))){ + if((a24==1)){ + a5 = 5; + a20 = 1; + a21 = 10; + a9 = 11; + a14 = 1; + a15 = 1; + a1 = 13; + a10 = 1; + }else{ + a1 = 13; + a14 = 1; + a25 = 1; + a10 = 0; + a5 = 5; + a9 = 9; + } + return 21; + } else if((((a21==12)&&(((!(a20==1)&&(!(a28==1)||(a11==1)))&&!(a8==1))||(a0==1)))&&(((a1==14)&&(((((((((a5==4)||(a5==5))&&(input==1))&&(a16==7))&&!(a0==1))&&(a9==8))&&(a19==1))&&(a2==1))&&(a6==1)))&&(a17==2)))){ + a7 = 0; + a14 = 0; + a20 = 1; + a1 = 12; + a21 = 10; + a4 = 0; + a5 = 4; + a9 = 7; + return -1; + } else if(((((((((a16==11)&&(a11==1))||(a0==1))||(a0==1))&&!(a27==1))&&(a20==1))&&(a6==1))&&((((a17==2)&&((a28==1)&&((((((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(input==5))&&(a19==4))&&(a23==1))))&&(a1==13))&&(a21==11)))){ + a1 = 14; + a16 = 8; + a5 = 4; + a11 = 1; + a9 = 10; + a8 = 0; + a7 = 0; + a19 = 1; + return 25; + } else if(((((!(a8==1)&&((a3==1)&&((((a5==5)||(a5==6))&&(input==6))&&!(a24==1))))&&(a19==2))&&(a1==12))&&(((a16==10)&&(!(a4==1)&&((((a26==1)||((a17==2)&&((a23==1)&&(a6==1))))&&(a9==10))&&(a21==12))))&&!(a20==1)))){ + a5 = 6; + a3 = 0; + a21 = 11; + a19 = 4; + a22 = 1; + a11 = 0; + return -1; + } else if(((((((((a20==1)&&((a23==1)&&((a13==1)||!(a3==1))))||!(a6==1))&&(a17==2))||(a26==1))&&(a21==10))&&(a19==1))&&(!(a24==1)&&((a9==7)&&((((a16==8)&&(((a5==4)||(a5==5))&&(input==6)))&&(a23==1))&&(a1==14)))))){ + a19 = 2; + a16 = 9; + a21 = 12; + a5 = 4; + a12 = 1; + a26 = 0; + a18 = 0; + return 26; + } else if((((a17==2)&&(((!(a2==1)||((((a2==1)&&!(a20==1))||!(a12==1))&&!(a24==1)))&&(a1==12))&&(a9==10)))&&((a16==9)&&(((a21==11)&&(((a28==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&(a3==1)))&&(a19==4)))&&(a3==1))))){ + a16 = 7; + a22 = 1; + a12 = 0; + a21 = 10; + a20 = 1; + a19 = 2; + a3 = 0; + a5 = 5; + a9 = 7; + return -1; + } else if(((((((a21==12)&&((a16==10)&&(a28==1)))&&(a17==2))&&!(a18==1))&&!(a27==1))&&(((((a12==1)&&((((a5==5)&&(((a19==2)&&(input==6))&&(a9==9)))&&(a11==1))&&(a6==1)))&&(a1==14))&&(a20==1))&&!(a8==1)))){ + a8 = 0; + a1 = 12; + a16 = 7; + a5 = 4; + a19 = 1; + a9 = 7; + a2 = 1; + a21 = 10; + return -1; + } else if(((((a16==7)&&((a17==2)&&((!(a0==1)&&(!(a8==1)&&(!(a4==1)&&((input==5)&&((a5==5)||(a5==6))))))&&(a23==1))))&&(a21==10))&&((!(a20==1)&&(((a1==14)&&((!(a11==1)||(a28==1))||!(a12==1)))&&(a19==4)))&&(a9==7)))){ + a23 = 1; + a9 = 10; + a18 = 0; + a19 = 1; + a5 = 4; + return 21; + } else if((((((a17==2)&&((a21==11)&&((a11==1)&&(((a12==1)&&(a16==9))&&(a19==3)))))||(a8==1))&&(a2==1))&&((a11==1)&&(!(a27==1)&&(((!(a18==1)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==3)))&&(a1==13))&&!(a20==1)))))){ + if((a16==10)){ + a26 = 1; + a16 = 7; + a21 = 10; + a5 = 6; + a9 = 9; + a3 = 0; + a19 = 1; + a20 = 1; + a14 = 1; + }else{ + a16 = 7; + a21 = 10; + a13 = 0; + a20 = 1; + a6 = 0; + a5 = 6; + a9 = 7; + a1 = 12; + a23 = 0; + a19 = 2; + } + return -1; + } else if((((a17==2)&&((((a23==1)&&(!(a20==1)&&((a24==1)||((!(a4==1)&&(a2==1))&&(a21==11)))))&&(a19==2))&&!(a24==1)))&&((((!(a8==1)&&(((input==3)&&((a5==4)||(a5==5)))&&(a2==1)))&&(a16==8))&&(a9==7))&&(a1==12)))){ + a16 = 7; + a5 = 4; + a2 = 1; + a28 = 1; + a19 = 1; + a14 = 0; + a21 = 10; + a20 = 1; + return -1; + } else if(((((!(a20==1)&&((a9==10)&&((a16==8)&&((a1==13)&&(a3==1)))))&&(a11==1))||(a0==1))&&((!(a7==1)&&((a6==1)&&((a11==1)&&((a5==6)&&((a17==2)&&(((input==3)&&(a21==10))&&(a19==4)))))))&&!(a24==1)))){ + a8 = 0; + a16 = 7; + a5 = 4; + a1 = 12; + a20 = 1; + a19 = 1; + a26 = 0; + a13 = 1; + a9 = 7; + return -1; + } else if((((((a16==10)&&((a12==1)&&((a19==1)&&((input==3)&&(((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7))))))))&&(a17==2))&&(a20==1))&&(!(a18==1)&&(((a23==1)&&((a14==1)||((a21==12)&&(((a1==14)&&(a13==1))&&(a11==1)))))&&(a3==1))))){ + a11 = 1; + a19 = 2; + a3 = 1; + a9 = 9; + a5 = 4; + a16 = 7; + a14 = 0; + a1 = 13; + a21 = 10; + return -1; + } else if(((((a5==4)&&((!(a14==1)&&((input==1)&&(a16==10)))&&!(a27==1)))&&(a17==2))&&((a9==8)&&(!(a20==1)&&(!(a6==1)||(((!(a27==1)&&((a28==1)&&(((a19==5)&&(a13==1))&&(a3==1))))&&(a1==14))&&(a21==10))))))){ + a9 = 9; + a5 = 5; + a15 = 0; + a19 = 1; + a1 = 13; + a20 = 1; + a16 = 7; + a22 = 0; + a13 = 0; + return -1; + } else if(((((a16==10)&&(!(a18==1)&&((!(a26==1)&&((a9==9)&&((a19==5)&&((a5==5)&&(input==5)))))&&(a21==11))))&&!(a27==1))&&((a17==2)&&((!(a28==1)||((a1==14)&&((a20==1)&&((a3==1)&&!(a14==1)))))||(a7==1))))){ + a1 = 12; + a21 = 10; + a9 = 7; + a16 = 7; + a5 = 4; + a24 = 0; + a6 = 1; + a19 = 1; + a23 = 1; + return -1; + } else if(((!(a23==1)||((!(a27==1)&&((a17==2)&&(!(a28==1)||(((a16==8)&&((a0==1)||(a13==1)))&&(a13==1)))))&&(a20==1)))&&((a19==3)&&((a21==11)&&(!(a24==1)&&(((input==6)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(a1==13))))))){ + a16 = 7; + a5 = 4; + a8 = 0; + a1 = 12; + a26 = 0; + a21 = 10; + a27 = 0; + a9 = 7; + a19 = 1; + return -1; + } else if((((a1==13)&&((!(a0==1)&&((a11==1)&&((((!(a20==1)&&((((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(input==3)))&&(a16==10))&&!(a18==1))&&!(a4==1))))&&!(a8==1)))&&((a19==4)&&((a21==11)&&((a17==2)&&((a23==1)&&!(a14==1))))))){ + a28 = 0; + a1 = 14; + a27 = 1; + a9 = 8; + a13 = 0; + a21 = 10; + a16 = 8; + a19 = 5; + a20 = 1; + a5 = 5; + return -1; + } else if((((a9==10)&&(((a27==1)||((a2==1)||!(a28==1)))&&(a1==12)))&&(((a17==2)&&(((!(a8==1)&&((((((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&!(a4==1))&&(a19==1))&&!(a14==1))&&(a16==8)))&&!(a0==1))&&!(a20==1)))&&(a21==12)))){ + if((a27==1)){ + a20 = 1; + a1 = 14; + a9 = 8; + a21 = 10; + a7 = 1; + a29 = 1; + a5 = 4; + a16 = 7; + a23 = 0; + }else{ + a28 = 0; + a18 = 1; + a16 = 7; + a20 = 1; + a9 = 9; + a19 = 2; + a8 = 1; + a21 = 10; + a5 = 4; + } + return -1; + } else if((((a14==1)&&(!(a28==1)&&((a20==1)&&(((a21==12)&&((input==1)&&(((a9==11)&&((a5==6)&&(a1==13)))||((a9==7)&&((a5==4)&&(a1==14))))))&&(a17==2)))))&&(((((((a0==1)&&(a2==1))&&(a19==3))&&(a16==10))&&!(a13==1))&&(a4==1))&&(a8==1)))){ + a12 = 0; + a9 = 11; + a10 = 0; + a16 = 7; + a0 = 1; + a19 = 1; + a5 = 4; + a1 = 13; + return 23; + } else if((((a19==1)&&((((((((a21==12)&&((input==3)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11)))))&&!(a14==1))&&(a6==1))&&(a20==1))&&(a17==2))&&(a16==8))&&!(a26==1)))&&((a0==1)||((((a1==14)&&(a6==1))&&(a23==1))&&(a2==1))))){ + a9 = 7; + a21 = 10; + a4 = 0; + a8 = 0; + a16 = 7; + a1 = 12; + a5 = 4; + a14 = 0; + return -1; + } else if((((((a23==1)&&((((a3==1)&&(((a19==3)&&((!(a4==1)&&((a16==8)&&(input==1)))&&(a17==2)))&&(a2==1)))&&!(a20==1))&&(a13==1)))&&(a5==4))&&!(a4==1))&&((a1==14)&&(((a21==12)&&(a12==1))&&(a9==8))))){ + a19 = 2; + a23 = 0; + a21 = 10; + a9 = 11; + a3 = 0; + a15 = 0; + a5 = 5; + a1 = 12; + a16 = 7; + a20 = 1; + return 26; + } else if(((((a19==5)&&(a11==1))&&(a16==9))&&((a23==1)&&((a13==1)&&(((((((a17==2)&&(!(a14==1)&&((a21==10)&&(((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))&&(input==6)))))&&!(a4==1))&&(a1==12))&&!(a26==1))&&!(a14==1))&&!(a20==1)))))){ + a9 = 10; + a19 = 1; + a16 = 7; + a15 = 1; + a25 = 0; + a20 = 1; + a5 = 6; + return 21; + } else if(((!(a2==1)||((a17==2)&&((((a26==1)||((a2==1)||(a24==1)))&&!(a18==1))&&(a19==2))))&&((((a16==11)&&((a9==8)&&(((a1==14)&&(!(a4==1)&&(((a5==5)||(a5==6))&&(input==1))))&&(a21==11))))&&(a20==1))&&(a23==1)))){ + a1 = 12; + a21 = 10; + a19 = 1; + a14 = 0; + a2 = 1; + a11 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + return -1; + } else if(((!(a27==1)&&(((((((a16==9)&&(a2==1))||!(a13==1))&&(a20==1))&&(a1==13))||!(a11==1))&&!(a24==1)))&&((((((a19==1)&&(((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))&&(input==4)))&&(a6==1))&&(a17==2))&&(a12==1))&&(a21==10)))){ + a13 = 1; + a16 = 7; + a5 = 4; + a9 = 7; + a1 = 12; + a2 = 1; + a23 = 1; + return -1; + } else if((((a9==7)&&((a17==2)&&((a24==1)||((a3==1)&&((a1==12)&&((a4==1)||((a16==10)&&(a23==1))))))))&&(!(a20==1)&&((a21==11)&&((a6==1)&&((a19==2)&&((!(a0==1)&&((input==6)&&((a5==4)||(a5==5))))&&(a3==1)))))))){ + a2 = 0; + a19 = 5; + a20 = 1; + a9 = 8; + a16 = 7; + a5 = 4; + a14 = 1; + a1 = 14; + a29 = 1; + return -1; + } else if(((((a21==11)&&((a19==4)&&(a6==1)))&&(a1==13))&&((!(a18==1)&&((a3==1)&&((!(a24==1)&&(((((a17==2)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==3)))&&!(a20==1))&&(a16==7))&&(a3==1)))&&(a11==1))))&&(a2==1)))){ + a3 = 1; + a9 = 7; + a0 = 0; + a1 = 12; + a19 = 1; + a5 = 4; + a21 = 10; + a20 = 1; + a23 = 1; + return -1; + } else if(((!(a26==1)&&(!(a24==1)&&(((((a21==10)&&((input==5)&&(a1==13)))&&(a28==1))&&(a2==1))&&!(a18==1))))&&((((a5==6)&&(((a16==8)&&(((a19==2)&&(a3==1))&&!(a20==1)))&&(a9==10)))&&(a17==2))||!(a3==1)))){ + a9 = 7; + a5 = 4; + a16 = 7; + a20 = 1; + a19 = 1; + a8 = 0; + a24 = 0; + a1 = 12; + return -1; + } else if((((a21==12)&&((((!(a20==1)&&(!(a8==1)&&((a26==1)||((a1==14)&&(a23==1)))))&&(a16==8))||(a14==1))&&(a5==4)))&&(!(a18==1)&&(!(a26==1)&&((a28==1)&&((((input==6)&&(a19==5))&&(a9==9))&&(a17==2))))))){ + if((a15==1)){ + a23 = 0; + a29 = 0; + a27 = 1; + }else{ + a16 = 7; + a18 = 1; + a5 = 6; + a9 = 7; + a19 = 1; + a20 = 1; + a3 = 0; + a29 = 0; + a21 = 10; + } + return -1; + } else if(((!(a11==1)||((a26==1)||(((a16==10)&&((a17==2)&&(a11==1)))&&(a1==12))))&&((a2==1)&&((a21==12)&&(((a19==5)&&(!(a8==1)&&(((a9==9)&&(((input==6)&&((a5==5)||(a5==6)))&&(a20==1)))&&!(a18==1))))&&(a12==1)))))){ + a21 = 10; + a5 = 4; + a16 = 7; + a19 = 2; + a13 = 1; + a1 = 13; + a6 = 1; + a14 = 0; + return -1; + } else if((((((a17==2)&&(!(a0==1)&&((((a19==3)&&((input==1)&&(((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6))))))&&!(a24==1))&&(a1==12))))&&(a20==1))&&!(a7==1))&&(!(a4==1)&&((a0==1)||((a28==1)&&(((a16==7)&&(a3==1))&&(a21==10))))))){ + a28 = 1; + a3 = 1; + a19 = 5; + a5 = 5; + a1 = 14; + a4 = 0; + a9 = 7; + return 26; + } else if(((((a26==1)||((a1==13)&&((a13==1)&&(a16==11))))&&(a13==1))&&(((a3==1)&&((a20==1)&&((a21==10)&&(!(a8==1)&&((a17==2)&&(((a3==1)&&(((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))&&(input==3)))&&(a2==1)))))))&&(a19==1)))){ + a12 = 1; + a9 = 7; + a16 = 7; + a27 = 0; + a1 = 12; + a3 = 1; + a5 = 4; + return -1; + } else if(((((((a28==1)&&(((!(a0==1)&&((a9==7)&&(input==4)))&&(a17==2))&&(a12==1)))&&(a1==14))&&(a16==8))&&(a21==12))&&((((((a23==1)&&((a11==1)&&!(a27==1)))||(a14==1))&&(a19==5))&&(a5==6))&&(a20==1)))){ + if((a28==1)){ + a23 = 1; + a9 = 10; + a21 = 10; + a12 = 1; + a1 = 12; + a19 = 2; + a6 = 1; + a20 = 0; + a5 = 5; + }else{ + a13 = 1; + a19 = 4; + a5 = 5; + a12 = 1; + a1 = 12; + } + return -1; + } else if((((a19==2)&&((a17==2)&&((a4==1)||((((a6==1)&&(a21==12))||(a14==1))&&(a12==1)))))&&((a1==12)&&(((((!(a20==1)&&((((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(input==5)))&&(a16==9))&&!(a7==1))&&!(a26==1))&&!(a0==1))))){ + a21 = 11; + a28 = 0; + a0 = 1; + a5 = 5; + a16 = 10; + a19 = 1; + a9 = 9; + a4 = 1; + return -1; + } else if((((a5==4)&&((((a20==1)&&(((a16==10)&&(!(a7==1)&&(a13==1)))||(a0==1)))&&(a19==1))&&(a17==2)))&&((!(a24==1)&&((a9==11)&&(((((input==4)&&(a1==14))&&(a6==1))&&(a21==12))&&(a3==1))))&&(a2==1)))){ + a7 = 0; + a16 = 7; + a27 = 0; + a26 = 0; + a21 = 10; + a1 = 12; + a9 = 7; + return -1; + } else if((((a17==2)&&(((a23==1)&&((a6==1)&&((a8==1)||(a28==1))))&&(a20==1)))&&((a9==11)&&(((((((((input==4)&&(a1==12))&&!(a7==1))&&(a21==10))&&(a2==1))&&(a12==1))&&(a16==9))&&(a19==4))&&(a5==4))))){ + a13 = 1; + a9 = 7; + a14 = 0; + a19 = 1; + a16 = 7; + a8 = 0; + return -1; + } else if((((a16==8)&&((!(a27==1)&&((a17==2)&&((!(a8==1)&&((input==6)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5)))))&&(a21==10))))&&(a20==1)))&&((a26==1)||(((a1==12)&&(((a26==1)||(!(a26==1)&&(a13==1)))||(a18==1)))&&(a19==2))))){ + a16 = 7; + a19 = 1; + a12 = 1; + a5 = 4; + a13 = 1; + a27 = 0; + a9 = 7; + return -1; + } else if((((a17==2)&&(((a1==12)&&(!(a18==1)&&((a2==1)||(a24==1))))&&(a16==7)))&&(((!(a24==1)&&((!(a20==1)&&(((a19==5)&&((input==4)&&(((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6))))))&&!(a27==1)))&&(a23==1)))&&(a6==1))&&(a21==12)))){ + a23 = 1; + a5 = 4; + a12 = 1; + a21 = 10; + a20 = 1; + a9 = 7; + a18 = 0; + a19 = 1; + return -1; + } else if(((((a8==1)||((a26==1)||((((a21==12)&&(((a28==1)&&(a17==2))||!(a6==1)))&&(a19==1))&&(a16==7))))&&(a20==1))&&((a1==14)&&((a3==1)&&((((a2==1)&&((a9==8)&&(input==6)))&&(a2==1))&&(a5==6)))))){ + a16 = 9; + a14 = 0; + a9 = 10; + a21 = 10; + a2 = 1; + a5 = 5; + return 21; + } else if(((a11==1)&&((((a6==1)&&((a21==12)&&((a1==12)&&(!(a14==1)&&((a17==2)&&(!(a20==1)&&((a13==1)&&(!(a14==1)&&((((((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7))))&&(input==6))&&(a16==10))&&!(a7==1))))))))))&&(a19==3))&&(a3==1)))){ + a9 = 8; + a19 = 1; + a8 = 1; + a16 = 9; + a2 = 0; + a21 = 10; + a3 = 0; + a5 = 4; + a20 = 1; + return -1; + } else if((((a24==1)||(((((a17==2)&&(a28==1))&&(a19==5))||(a18==1))&&(a21==10)))&&((a1==13)&&(((a23==1)&&((a16==9)&&((a9==9)&&(!(a24==1)&&((a12==1)&&((a20==1)&&((input==1)&&((a5==5)||(a5==6)))))))))&&!(a8==1))))){ + a6 = 1; + a5 = 4; + a19 = 1; + a1 = 12; + a16 = 7; + a28 = 1; + a27 = 0; + a9 = 7; + return -1; + } else if((((((a6==1)&&(((a1==12)&&(!(a24==1)&&(!(a20==1)&&(!(a0==1)&&((((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==6))))))&&(a28==1)))&&(a19==1))&&(a17==2))&&((((!(a26==1)&&(a28==1))&&(a21==11))&&(a16==10))&&!(a14==1)))){ + a20 = 1; + a5 = 4; + a16 = 7; + a11 = 0; + a28 = 0; + a1 = 14; + a21 = 10; + a9 = 10; + return -1; + } else if((((((!(a14==1)&&(!(a7==1)&&(((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==6))&&(a19==5))))&&(a1==13))&&!(a0==1))&&!(a18==1))&&((a16==9)&&((((!(a0==1)&&((a20==1)&&(a13==1)))&&!(a26==1))&&(a17==2))&&(a21==10))))){ + a23 = 1; + a8 = 0; + a9 = 9; + a5 = 6; + a1 = 12; + a16 = 8; + return 26; + } else if((((a20==1)&&(!(a27==1)&&((a5==6)&&(!(a24==1)&&((a17==2)&&(input==3))))))&&((((a7==1)||(((a21==12)&&((a23==1)&&((((a28==1)&&(a16==8))&&(a19==3))&&!(a18==1))))&&(a1==12)))&&(a9==8))&&!(a7==1)))){ + a21 = 10; + a5 = 4; + a19 = 1; + a4 = 0; + a16 = 7; + a2 = 1; + a7 = 0; + a9 = 7; + return -1; + } else if(((!(a23==1)&&((a16==10)&&(((a0==1)&&((a8==1)&&(!(a6==1)&&((((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(input==3)))))&&(a1==13))))&&((((((a7==1)&&((a3==1)&&(a20==1)))&&(a21==12))&&(a17==2))&&(a19==2))&&!(a23==1)))){ + a9 = 10; + a21 = 10; + a16 = 7; + a1 = 14; + a10 = 0; + a5 = 6; + a22 = 1; + a19 = 1; + return -1; + } else if((((a21==11)&&((!(a12==1)||(((((a13==1)&&(a6==1))&&(a1==12))&&!(a14==1))||!(a6==1)))||!(a2==1)))&&((a19==3)&&((a17==2)&&((a16==8)&&((!(a0==1)&&((a9==11)&&((input==4)&&!(a20==1))))&&(a5==4))))))){ + a28 = 1; + a13 = 1; + a20 = 1; + a21 = 10; + a9 = 7; + a27 = 0; + a19 = 1; + a16 = 7; + return -1; + } else if(((((((a6==1)&&(((a28==1)||(a8==1))&&(a9==7)))&&(a17==2))||!(a13==1))&&(a16==10))&&((a19==3)&&((a23==1)&&(((a5==4)&&((a1==13)&&((a21==10)&&(!(a0==1)&&((a20==1)&&(input==3))))))&&!(a0==1)))))){ + a16 = 7; + a1 = 12; + a8 = 0; + a18 = 0; + a0 = 0; + a19 = 1; + return -1; + } else if((((a13==1)&&((a9==11)&&((a5==4)&&((a17==2)&&((a20==1)&&(((a6==1)||(a0==1))&&(a1==12)))))))&&(!(a4==1)&&((a23==1)&&(((!(a7==1)&&(((a21==11)&&(input==4))&&(a19==5)))&&!(a0==1))&&(a16==9)))))){ + if((a24==1)){ + a16 = 8; + a24 = 0; + a9 = 8; + a3 = 1; + a23 = 1; + a5 = 5; + a19 = 4; + a20 = 0; + }else{ + a1 = 13; + a7 = 0; + a8 = 0; + a19 = 2; + a4 = 0; + a9 = 10; + a21 = 10; + a16 = 7; + } + return 21; + } else if((((a19==4)&&((((!(a27==1)&&((a13==1)&&((input==1)&&(((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))))))&&(a12==1))&&(a28==1))&&(a17==2)))&&(!(a27==1)&&((((!(a23==1)||((a21==11)&&(a28==1)))&&(a1==12))&&(a16==8))&&(a20==1))))){ + a5 = 4; + a16 = 7; + a0 = 0; + a6 = 1; + a24 = 0; + a9 = 7; + a21 = 10; + a19 = 1; + return -1; + } else if((((((a17==2)&&(((((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))&&(input==4))&&(a21==10)))&&!(a26==1))&&(a2==1))&&((a7==1)||(((a7==1)||((a16==10)&&(!(a28==1)||(((a1==13)&&((a13==1)&&!(a20==1)))&&(a19==1)))))||(a27==1))))){ + a0 = 1; + a16 = 7; + a5 = 6; + a20 = 1; + a1 = 12; + a11 = 0; + a9 = 11; + return 21; + } else if((((a19==3)&&(!(a8==1)&&((a11==1)&&((a9==10)&&((((a5==4)||(a5==5))&&(input==3))&&(a21==11))))))&&((!(a18==1)&&((((!(a13==1)||(((a23==1)&&(a16==10))&&!(a20==1)))&&(a17==2))||(a18==1))&&!(a26==1)))&&(a1==13)))){ + if((a27==1)){ + a22 = 0; + a5 = 5; + a16 = 7; + a20 = 1; + a21 = 10; + a1 = 14; + a9 = 8; + a25 = 1; + a14 = 1; + a19 = 1; + }else{ + a5 = 4; + a19 = 1; + a20 = 1; + a13 = 0; + a24 = 1; + a21 = 10; + a9 = 7; + a16 = 7; + a1 = 14; + } + return -1; + } else if(((!(a11==1)||((a19==2)&&(((a3==1)&&(a3==1))||(a14==1))))&&((!(a7==1)&&(((((a9==11)&&((a17==2)&&((((input==4)&&((a5==5)||(a5==6)))&&(a1==12))&&(a20==1))))&&(a21==11))&&(a12==1))&&(a16==9)))&&(a11==1)))){ + a5 = 4; + a19 = 1; + a13 = 1; + a16 = 7; + a21 = 10; + a28 = 1; + a9 = 7; + a23 = 1; + return -1; + } else if((((a9==10)&&((a17==2)&&((a19==1)&&((input==3)&&(a21==10)))))&&((!(a7==1)&&((!(a18==1)&&(((((!(a12==1)||((a28==1)&&(a5==5)))&&!(a0==1))&&(a12==1))&&(a1==13))||!(a2==1)))&&(a16==10)))&&(a20==1)))){ + a14 = 0; + a1 = 12; + a13 = 1; + a16 = 7; + a2 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if((((a17==2)&&(!(a7==1)&&((a24==1)||((!(a4==1)&&((a1==13)&&((a21==12)&&(a11==1))))||(a14==1)))))&&(((a19==1)&&(((a2==1)&&(((((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10))))&&(input==5))&&!(a27==1)))&&!(a20==1)))&&(a16==9)))){ + a7 = 1; + a9 = 11; + a16 = 7; + a21 = 10; + a5 = 5; + a27 = 1; + a3 = 0; + a20 = 1; + return -1; + } else if((((((!(a3==1)||(((a19==4)&&(!(a28==1)||(((a21==10)&&(a2==1))&&(a17==2))))&&(a9==9)))||!(a6==1))||!(a12==1))&&!(a26==1))&&(((a5==5)&&((a20==1)&&((a3==1)&&((input==4)&&(a16==7)))))&&(a1==12)))){ + a14 = 0; + a19 = 3; + a21 = 11; + a1 = 14; + a13 = 1; + a12 = 1; + a5 = 6; + return 21; + } else if(((((a21==10)&&(((a16==9)&&(input==3))&&(a17==2)))&&(a9==8))&&((a27==1)||((((a20==1)&&(((a2==1)&&(((a19==2)&&(((a11==1)&&(a13==1))&&(a11==1)))||!(a28==1)))||(a14==1)))&&(a5==6))&&(a1==13))))){ + a16 = 7; + a5 = 4; + a14 = 0; + a1 = 12; + a9 = 7; + a12 = 1; + a19 = 1; + a28 = 1; + return -1; + } else if((((a16==7)&&((a2==1)&&(((a20==1)&&(!(a27==1)&&((((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(input==5))))&&(a12==1))))&&((((((a1==12)&&((a17==2)&&((a12==1)&&!(a27==1))))&&(a21==10))&&(a19==5))||!(a23==1))||!(a12==1)))){ + a9 = 10; + a24 = 0; + a2 = 1; + a5 = 4; + a19 = 2; + a21 = 12; + a14 = 0; + return 25; + } else if((((a9==11)&&(!(a28==1)||((a21==10)&&((((a6==1)&&(a2==1))||(a4==1))&&(a17==2)))))&&((((a23==1)&&((a5==5)&&(!(a18==1)&&((a19==1)&&(((input==5)&&(a16==11))&&(a12==1))))))&&!(a20==1))&&(a1==13)))){ + a19 = 3; + a28 = 0; + a5 = 4; + a16 = 9; + a7 = 1; + a15 = 0; + a21 = 11; + a9 = 8; + return -1; + } else if((((((a19==2)&&((a11==1)||!(a2==1)))&&!(a7==1))&&(a12==1))&&(((a1==12)&&(((a9==9)&&((a20==1)&&((a16==10)&&(((((input==1)&&((a5==5)||(a5==6)))&&(a2==1))&&(a17==2))&&(a23==1)))))&&(a21==12)))&&!(a0==1)))){ + a5 = 4; + a1 = 13; + a21 = 10; + a2 = 1; + a16 = 7; + a13 = 1; + a14 = 0; + return -1; + } else if(((!(a8==1)&&(!(a12==1)||((a3==1)&&((a20==1)&&((a1==14)&&((((a12==1)&&(a3==1))&&(a9==7))&&(a17==2)))))))&&(!(a8==1)&&((a19==5)&&(!(a24==1)&&((((input==4)&&((a5==4)||(a5==5)))&&(a21==10))&&(a16==11))))))){ + a6 = 1; + a5 = 4; + a0 = 0; + a19 = 1; + a16 = 7; + a11 = 1; + a1 = 12; + return -1; + } else if(((((((a16==8)&&((a19==3)&&(!(a24==1)&&((a9==8)&&((a23==1)||(a0==1))))))&&(a3==1))&&!(a18==1))&&(a5==4))&&(!(a27==1)&&((a1==12)&&((((a23==1)&&(!(a20==1)&&(input==1)))&&(a21==10))&&(a17==2)))))){ + a19 = 1; + a20 = 1; + a16 = 7; + a13 = 1; + a2 = 1; + a23 = 1; + a9 = 7; + return -1; + } else if(((((a27==1)||((a16==9)&&((a13==1)&&(a20==1))))&&(a11==1))&&((!(a26==1)&&((a1==13)&&(((a21==10)&&((!(a0==1)&&(((input==4)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11))))&&!(a26==1)))&&(a19==1)))&&(a17==2))))&&!(a0==1)))){ + a5 = 5; + a9 = 8; + a11 = 1; + a20 = 0; + a16 = 8; + a1 = 12; + a3 = 1; + return -1; + } else if(((((a19==5)&&((a1==12)&&((!(a20==1)&&(((a12==1)&&(!(a14==1)&&((input==3)&&(((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))))))&&!(a26==1)))&&!(a14==1))))&&(a21==10))&&(((!(a27==1)&&((a23==1)||(a14==1)))&&(a17==2))&&(a16==7)))){ + a9 = 9; + a1 = 13; + a5 = 4; + a12 = 1; + a20 = 1; + a6 = 1; + a23 = 1; + a19 = 1; + return -1; + } else if((((!(a14==1)&&((a12==1)&&(!(a0==1)&&(!(a24==1)&&(((input==4)&&((a5==5)||(a5==6)))&&(a9==9))))))&&(a17==2))&&((a21==10)&&((((a1==12)&&(!(a18==1)&&(!(a20==1)&&((a19==3)&&(a6==1)))))&&(a16==11))||!(a12==1))))){ + a19 = 2; + a16 = 7; + a6 = 0; + a5 = 4; + a20 = 1; + a1 = 13; + a9 = 7; + a18 = 1; + a22 = 1; + return 21; + } else if((((a1==13)&&((a21==11)&&((((a11==1)&&(a17==2))&&!(a8==1))&&(a9==8))))&&((a19==4)&&((((((a11==1)&&(((a13==1)&&(((a5==4)||(a5==5))&&(input==1)))&&(a3==1)))&&(a11==1))&&!(a24==1))&&(a16==8))&&(a20==1))))){ + a1 = 12; + a5 = 6; + a9 = 11; + a19 = 2; + a7 = 0; + a16 = 10; + a3 = 1; + a12 = 1; + return 23; + } else if(((((((a5==4)||(a5==5))&&(input==6))&&!(a4==1))&&(a19==1))&&((a9==11)&&((a1==12)&&((a16==11)&&(!(a23==1)||((a8==1)||((((a17==2)&&(!(a13==1)||(!(a20==1)&&((a13==1)||!(a2==1)))))&&!(a14==1))&&(a21==10))))))))){ + a1 = 13; + a9 = 7; + a5 = 6; + a0 = 1; + a27 = 1; + a16 = 7; + a20 = 1; + return 26; + } else if(((!(a3==1)||((a27==1)||(((a17==2)&&((a9==7)&&((!(a2==1)||((a21==12)&&(a23==1)))||!(a2==1))))&&!(a20==1))))&&(((a1==13)&&((a16==9)&&((a19==4)&&(((a5==5)&&(input==4))&&!(a8==1)))))&&(a3==1)))){ + a25 = 0; + a28 = 0; + a21 = 10; + a19 = 2; + a27 = 1; + a9 = 10; + a16 = 8; + return -1; + } else if(((((a13==1)&&(!(a8==1)&&((((a17==2)&&(!(a18==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4))))&&(a13==1))&&(a1==13))))&&!(a26==1))&&((((((a9==11)&&((a19==1)&&(a11==1)))&&(a16==8))&&(a21==12))&&!(a20==1))&&!(a7==1)))){ + a5 = 6; + a6 = 0; + a9 = 10; + a12 = 0; + a1 = 14; + a19 = 5; + a22 = 0; + return 21; + } else if((((a21==12)&&((!(a24==1)&&(((a23==1)||(a26==1))||(a18==1)))&&!(a27==1)))&&((a12==1)&&((((a1==14)&&(!(a8==1)&&((((input==6)&&(((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))))&&(a20==1))&&(a19==2))))&&(a17==2))&&(a16==8))))){ + a3 = 1; + a11 = 1; + a5 = 4; + a16 = 7; + a8 = 0; + a21 = 10; + a9 = 7; + a1 = 12; + a19 = 1; + return -1; + } else if((((((a12==1)&&((((a20==1)&&((((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a16==8))&&!(a8==1)))&&(a21==11))&&!(a7==1)))&&(a17==2))&&(a23==1))&&((a6==1)&&(((a9==8)&&((a19==5)&&((a23==1)&&(a1==13))))&&!(a7==1))))){ + a12 = 1; + a21 = 10; + a0 = 0; + a1 = 12; + a7 = 0; + a19 = 1; + a16 = 7; + a5 = 4; + a9 = 7; + return -1; + } else if(((((a17==2)&&((((a6==1)&&(((a1==13)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5)))&&!(a27==1)))&&!(a26==1))&&(a16==8)))&&(a9==11))&&((((a11==1)&&((!(a12==1)||((a11==1)&&(a23==1)))&&(a19==4)))&&!(a20==1))&&(a21==10)))){ + a19 = 1; + a5 = 4; + a28 = 1; + a16 = 7; + a20 = 1; + a6 = 1; + a9 = 7; + a0 = 0; + a1 = 12; + return -1; + } else if((((a14==1)&&(!(a11==1)&&((!(a23==1)&&((!(a23==1)&&((a19==2)&&(!(a12==1)&&((a6==1)&&(a8==1)))))&&(a17==2)))&&(a20==1))))&&((a21==11)&&((a16==9)&&((a1==13)&&((((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10))))&&(input==6))))))){ + a16 = 10; + a12 = 0; + a11 = 0; + a19 = 1; + a5 = 5; + a1 = 14; + a9 = 9; + a7 = 1; + a21 = 12; + return -1; + } else if((((a8==1)||((a8==1)||((a19==1)&&((a9==9)&&((a16==9)&&((a21==11)&&((a2==1)&&(a17==2))))))))&&((a13==1)&&(((a20==1)&&((((((a5==4)||(a5==5))&&(input==3))&&!(a18==1))&&(a1==12))&&!(a24==1)))&&(a13==1))))){ + a21 = 10; + a9 = 7; + a23 = 1; + a5 = 4; + a16 = 7; + a2 = 1; + return -1; + } else if(((((!(a6==1)||(((a17==2)&&(a28==1))&&(a1==12)))&&!(a26==1))||!(a3==1))&&(((!(a26==1)&&((a20==1)&&((!(a4==1)&&((a21==12)&&((a19==2)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3)))))&&(a9==10))))&&(a23==1))&&(a16==10)))){ + a3 = 1; + a28 = 1; + a5 = 4; + a16 = 7; + a21 = 10; + a14 = 0; + a9 = 7; + a19 = 1; + return -1; + } else if(((((((a6==1)&&((a21==12)&&(((((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5)))&&(input==6))&&(a20==1))&&(a16==11))))&&!(a8==1))&&!(a26==1))&&!(a18==1))&&(!(a3==1)||((a18==1)||((((a19==1)&&(a12==1))&&(a17==2))&&(a1==14)))))){ + a2 = 1; + a7 = 0; + a24 = 0; + a1 = 12; + a21 = 10; + a9 = 7; + a16 = 7; + a5 = 4; + return -1; + } else if(((((((a9==7)&&((a16==8)&&((input==6)&&((a5==6)||((a5==4)||(a5==5))))))&&!(a26==1))&&!(a20==1))&&(a19==2))&&((a27==1)||(((a8==1)||(!(a0==1)&&((a17==2)&&((((a1==14)&&(a2==1))&&!(a4==1))&&(a21==10)))))||!(a11==1))))){ + a1 = 12; + a9 = 9; + a8 = 0; + a19 = 5; + a5 = 6; + a20 = 1; + a16 = 11; + a28 = 1; + a18 = 0; + return 26; + } else if(((((!(a12==1)||((((a16==11)&&((a19==5)&&((a21==12)&&(a11==1))))&&(a20==1))&&(a17==2)))||(a14==1))||(a24==1))&&((a1==12)&&((a3==1)&&(!(a26==1)&&((a13==1)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==3)))))))){ + a21 = 10; + a5 = 4; + a18 = 0; + a19 = 1; + a16 = 7; + a14 = 0; + a9 = 7; + a2 = 1; + return -1; + } else if((((((a1==14)&&(((!(a4==1)&&(((a3==1)&&(a17==2))||(a7==1)))&&(a16==8))&&(a20==1)))&&(a19==4))||(a0==1))&&((a28==1)&&((a21==11)&&((a6==1)&&((a28==1)&&((input==6)&&(((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8))))))))))){ + a5 = 5; + a26 = 0; + a16 = 10; + a4 = 0; + a14 = 0; + a9 = 9; + a19 = 2; + return 21; + } else if((((a19==5)&&(((a16==8)&&(((a8==1)||(!(a6==1)||((a2==1)&&(a9==8))))||!(a12==1)))&&!(a20==1)))&&((a2==1)&&((a21==10)&&(((a1==12)&&(((a6==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3)))&&!(a18==1)))&&(a17==2)))))){ + a1 = 13; + a20 = 1; + a5 = 4; + a16 = 7; + a9 = 9; + a19 = 2; + a2 = 1; + a24 = 0; + a8 = 0; + return 26; + } else if(((((a4==1)||((!(a20==1)&&((((a13==1)||(a14==1))&&(a17==2))&&(a16==10)))&&(a9==11)))&&!(a14==1))&&((((a2==1)&&(((a1==14)&&((a21==11)&&((a19==4)&&(input==1))))&&(a5==6)))&&!(a27==1))&&!(a4==1)))){ + if((a8==1)){ + a19 = 5; + a16 = 8; + a20 = 1; + a8 = 1; + a22 = 0; + a9 = 8; + a21 = 12; + a4 = 1; + }else{ + a5 = 5; + a9 = 7; + a15 = 0; + a16 = 9; + a19 = 2; + a10 = 0; + a18 = 1; + } + return 25; + } else if((((a5==4)&&((a3==1)&&((a23==1)&&((a19==4)&&((a16==11)&&(a11==1))))))&&(!(a0==1)&&(!(a24==1)&&((a20==1)&&(!(a18==1)&&((((a17==2)&&(((a21==12)&&(input==6))&&(a23==1)))&&(a9==8))&&(a1==14)))))))){ + a19 = 3; + a16 = 7; + a24 = 0; + a21 = 10; + a0 = 0; + a9 = 10; + a4 = 0; + return 23; + } else if((((a26==1)||(((a4==1)||(((!(a11==1)||((a20==1)&&((a23==1)&&(a16==7))))||(a27==1))&&(a19==2)))&&(a9==10)))&&((a5==4)&&(((a1==12)&&(((a17==2)&&((a21==12)&&(input==6)))&&!(a14==1)))&&(a12==1))))){ + a19 = 3; + a27 = 0; + a5 = 6; + a23 = 1; + a21 = 10; + a9 = 7; + a12 = 1; + return 26; + } else if((((((a5==6)&&(((((a28==1)&&((input==6)&&(a19==4)))&&!(a4==1))&&(a9==11))&&(a6==1)))&&!(a14==1))&&(a17==2))&&((((a21==10)&&((a11==1)&&(((a28==1)||(a14==1))&&(a20==1))))&&(a16==8))&&(a1==13)))){ + a16 = 10; + a9 = 9; + a19 = 1; + a13 = 1; + a4 = 0; + a18 = 0; + return 21; + } else if(((((((((a2==1)&&((((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a9==11))&&(a13==1)))&&(a20==1))&&(a21==11))&&!(a14==1))&&(a16==11))&&!(a0==1))&&(!(a14==1)&&(((a1==12)&&(((a28==1)&&(a17==2))&&(a19==3)))||(a24==1))))){ + a19 = 1; + a21 = 10; + a2 = 1; + a16 = 7; + a12 = 1; + a9 = 7; + a5 = 4; + return -1; + } else if(((((a17==2)&&((a9==11)&&(!(a6==1)||(!(a7==1)&&((a14==1)||(((a28==1)||!(a13==1))||!(a2==1)))))))&&(a21==12))&&(((a1==14)&&((a6==1)&&(((a20==1)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))&&(a19==5))))&&(a16==7)))){ + a19 = 1; + a2 = 1; + a5 = 4; + a1 = 12; + a21 = 10; + a8 = 0; + a14 = 0; + a9 = 7; + return -1; + } else if((((a16==7)&&((a20==1)&&((a21==10)&&((a1==12)&&((a19==5)&&((a18==1)||(a11==1)))))))&&((a13==1)&&((((!(a0==1)&&((a12==1)&&((input==1)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9))))))&&!(a0==1))&&!(a18==1))&&(a17==2))))){ + a5 = 6; + a21 = 12; + a9 = 9; + a4 = 0; + a8 = 0; + a19 = 2; + a0 = 0; + return 21; + } else if(((!(a20==1)&&((((a19==2)&&(!(a4==1)&&((((a17==2)&&(input==5))&&(a1==12))&&!(a18==1))))&&(a12==1))&&(a16==9)))&&(!(a6==1)||((a5==6)&&((a3==1)&&((((a9==7)&&(a2==1))&&(a28==1))&&(a21==10))))))){ + a22 = 0; + a25 = 1; + a23 = 0; + a5 = 5; + a20 = 1; + a16 = 7; + return 23; + } else if(((((((a2==1)&&(((((a9==7)&&((a1==13)&&(a5==5)))||((((a5==6)&&(a1==12))&&(a9==11))||((a9==7)&&((a1==13)&&(a5==4)))))&&(input==4))&&!(a8==1)))&&!(a20==1))&&(a28==1))&&!(a8==1))&&(((a21==11)&&(((a17==2)&&(((a3==1)&&!(a7==1))||!(a23==1)))&&(a19==3)))&&(a16==8)))){ + a20 = 1; + a9 = 7; + a5 = 4; + a18 = 0; + a19 = 1; + a14 = 0; + a21 = 10; + a28 = 1; + a1 = 12; + a16 = 7; + return -1; + } else if((((a1==14)&&((((a9==10)&&((input==1)&&(a5==6)))&&(a16==10))&&(a19==2)))&&(!(a14==1)&&(((a21==12)&&(((a17==2)&&(((a20==1)&&(!(a3==1)||(!(a2==1)||(a28==1))))&&(a28==1)))||!(a6==1)))&&(a28==1))))){ + a21 = 10; + a28 = 1; + a24 = 0; + a16 = 7; + a0 = 0; + a5 = 4; + return 21; + } else if((((a5==4)&&(!(a7==1)&&(((!(a20==1)&&((a13==1)&&(a9==9)))&&!(a14==1))&&(a16==7))))&&(((a2==1)&&((((a12==1)&&((((a19==3)&&(input==3))&&(a21==10))&&!(a8==1)))&&(a6==1))&&(a17==2)))&&(a1==12)))){ + a2 = 1; + a6 = 1; + a20 = 1; + a9 = 7; + a27 = 0; + a19 = 1; + return -1; + } else if((((((a5==6)&&((!(a0==1)&&(((input==3)&&(a1==12))&&(a19==2)))&&(a6==1)))&&(a9==9))&&!(a24==1))&&((((((((a23==1)&&!(a0==1))&&!(a20==1))&&!(a27==1))&&(a17==2))&&!(a26==1))&&(a16==8))&&(a21==11)))){ + a21 = 10; + a28 = 1; + a4 = 0; + a19 = 1; + a9 = 7; + a6 = 1; + a16 = 7; + a5 = 4; + a20 = 1; + return -1; + } else if(((((a28==1)&&((((a1==12)&&((a20==1)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==5))))&&!(a14==1))&&(a28==1)))&&(a16==8))&&((!(a26==1)&&((a13==1)&&((((a19==4)&&(a3==1))&&(a17==2))&&(a21==10))))||!(a3==1)))){ + a5 = 4; + a9 = 7; + a6 = 1; + a19 = 1; + a23 = 1; + a16 = 7; + a2 = 1; + return -1; + } else if((((((a3==1)&&((a12==1)&&!(a0==1)))&&(a21==11))&&(a19==3))&&(((((a17==2)&&(((!(a26==1)&&((a1==14)&&((input==3)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8))))))&&(a6==1))&&(a12==1)))&&!(a27==1))&&!(a20==1))&&(a16==8)))){ + a1 = 12; + a4 = 0; + a7 = 0; + a21 = 10; + a16 = 7; + a19 = 1; + a5 = 4; + a13 = 1; + a20 = 1; + a9 = 7; + return -1; + } else if(((((a9==10)&&(((!(a24==1)&&(!(a20==1)&&(((a13==1)&&((((a5==4)||(a5==5))&&(input==3))&&(a21==10)))&&(a16==7))))&&!(a4==1))&&(a19==4)))&&(a1==13))&&((((a8==1)||((a12==1)||(a24==1)))||(a26==1))&&(a17==2)))){ + a19 = 1; + a13 = 1; + a5 = 4; + a8 = 0; + a20 = 1; + a9 = 7; + a28 = 1; + a1 = 12; + return -1; + } else if(((((!(a0==1)&&(((((a20==1)&&((a12==1)&&(a1==13)))&&(a9==9))&&(a19==1))&&!(a0==1)))&&(a16==7))&&(a12==1))&&(!(a14==1)&&((a21==11)&&(!(a18==1)&&(((a13==1)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))&&(a17==2))))))){ + a28 = 1; + a8 = 0; + a16 = 8; + a5 = 5; + a1 = 12; + a9 = 11; + a21 = 10; + a4 = 0; + return 21; + } else if((((a1==12)&&(((((!(a8==1)&&((!(a4==1)&&((((a5==4)||(a5==5))&&(input==3))&&!(a8==1)))&&!(a26==1)))&&!(a24==1))&&(a21==12))&&(a20==1))&&(a16==9)))&&((a19==5)&&((a17==2)&&((a9==8)&&((a28==1)||(a14==1))))))){ + a19 = 1; + a21 = 10; + a6 = 1; + a16 = 7; + a9 = 7; + a13 = 1; + a5 = 4; + return -1; + } else if((((a5==6)&&((a1==14)&&(((a27==1)||(!(a12==1)||(a6==1)))&&(a19==1))))&&((((a9==7)&&(!(a18==1)&&((!(a20==1)&&((a6==1)&&((a21==11)&&((input==1)&&(a16==7)))))&&!(a26==1))))&&!(a4==1))&&(a17==2)))){ + if((a11==1)){ + a19 = 5; + a21 = 12; + a1 = 13; + a5 = 4; + a9 = 10; + a28 = 1; + a2 = 1; + }else{ + a21 = 10; + a1 = 13; + a5 = 5; + a9 = 11; + a20 = 1; + a19 = 4; + a26 = 0; + a23 = 1; + a16 = 8; + a27 = 0; + } + return 21; + } else if((((((a13==1)&&(a3==1))&&(a9==8))&&(a19==5))&&((a17==2)&&((((((((a23==1)&&((!(a20==1)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))&&(a3==1)))&&(a21==11))&&(a1==12))&&(a16==9))&&(a12==1))&&(a3==1))&&(a28==1))))){ + if((a4==1)){ + a19 = 2; + a9 = 7; + a25 = 1; + a11 = 0; + a15 = 0; + a16 = 7; + a20 = 1; + a21 = 10; + a5 = 5; + }else{ + a8 = 1; + a9 = 11; + a20 = 1; + a16 = 8; + a5 = 5; + a11 = 0; + a10 = 0; + a1 = 14; + } + return -1; + } else if((((a16==10)&&((a13==1)&&((a3==1)&&(((a17==2)&&((input==6)&&((a5==4)||(a5==5))))&&(a20==1)))))&&((a8==1)||(!(a23==1)||((((((a9==11)&&((a6==1)&&(a1==12)))&&(a19==2))||(a26==1))&&!(a24==1))&&(a21==11)))))){ + a21 = 10; + a24 = 0; + a1 = 14; + a19 = 4; + a20 = 0; + a18 = 0; + a16 = 8; + a8 = 0; + a9 = 10; + a5 = 4; + return 21; + } else if((((((((a21==10)&&(((a28==1)&&(a16==11))&&(a19==4)))&&(a20==1))&&(a1==12))&&(a6==1))||(a8==1))&&(!(a4==1)&&((a17==2)&&((((a12==1)&&((((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7))))&&(input==5)))&&(a23==1))&&!(a14==1)))))){ + a8 = 0; + a1 = 13; + a9 = 10; + a19 = 2; + a5 = 4; + a4 = 0; + a26 = 0; + a16 = 7; + return -1; + } else if((((a21==12)&&(((a19==3)&&(((((a5==6)&&((a23==1)&&(a11==1)))&&(a23==1))||!(a11==1))&&(a2==1)))&&(a23==1)))&&((a1==12)&&((a20==1)&&((a17==2)&&((a16==9)&&((a23==1)&&((a9==7)&&(input==6))))))))){ + a19 = 4; + a21 = 10; + a1 = 13; + a9 = 11; + a16 = 11; + a28 = 1; + a13 = 1; + a4 = 0; + return 21; + } else if((((a11==1)&&((a1==13)&&((a16==9)&&(((a19==5)&&(a6==1))||!(a3==1)))))&&((((a23==1)&&((!(a20==1)&&((((input==1)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(a17==2))&&(a28==1)))&&(a21==11)))&&(a3==1))&&!(a14==1)))){ + a9 = 7; + a3 = 0; + a19 = 4; + a5 = 6; + a22 = 0; + a16 = 7; + a15 = 1; + return -1; + } else if(((((!(a14==1)&&(((input==6)&&(a16==11))&&(a1==12)))&&!(a8==1))&&(a20==1))&&(((a19==5)&&((!(a14==1)&&((a17==2)&&(!(a14==1)&&(!(a0==1)&&((a21==10)&&((a2==1)&&(a13==1)))))))&&(a5==6)))&&(a9==10)))){ + a7 = 0; + a5 = 4; + a9 = 7; + a12 = 1; + a16 = 7; + a6 = 1; + a19 = 1; + return -1; + } else if((((!(a3==1)||(a3==1))&&(a9==11))&&(((a16==10)&&((((((a17==2)&&((((a1==12)&&((a3==1)&&(!(a20==1)&&(input==3))))&&(a6==1))&&(a12==1)))&&(a21==10))&&(a5==6))&&(a11==1))&&(a3==1)))&&(a19==3)))){ + a19 = 1; + a8 = 1; + a1 = 13; + a20 = 1; + a7 = 1; + a16 = 7; + a9 = 10; + a28 = 0; + return -1; + } else if(((((a19==3)&&((a1==13)&&((((a6==1)&&((a21==11)&&((((input==3)&&(a5==4))&&(a20==1))&&!(a8==1))))&&(a2==1))&&(a9==9))))&&(a17==2))&&((a13==1)&&((!(a23==1)||((a11==1)&&(a13==1)))&&(a16==8))))){ + a11 = 1; + a21 = 10; + a26 = 0; + a1 = 12; + a9 = 7; + a0 = 0; + a19 = 1; + a16 = 7; + return -1; + } else if((((((a5==6)&&((a20==1)&&((a1==12)&&((a6==1)&&((!(a26==1)&&((a9==11)&&(input==4)))&&(a16==9))))))&&(a19==4))&&(a21==12))&&(((a17==2)&&(!(a3==1)||((a11==1)&&((a2==1)&&(a28==1)))))||(a4==1)))){ + a5 = 4; + a8 = 0; + a16 = 7; + a21 = 10; + a9 = 7; + a2 = 1; + a19 = 1; + a3 = 1; + return -1; + } else if(((((!(a26==1)&&((a16==10)&&(!(a20==1)&&((a1==12)&&((((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7))))&&(input==4))))))&&(a17==2))&&!(a8==1))&&((((!(a23==1)||(((a19==5)&&(a12==1))||!(a28==1)))&&(a21==11))&&(a28==1))&&!(a27==1)))){ + if((a8==1)){ + a23 = 0; + a9 = 7; + a19 = 1; + a5 = 4; + a14 = 1; + a25 = 1; + }else{ + a16 = 7; + a22 = 0; + a19 = 1; + a5 = 5; + a1 = 13; + a20 = 1; + a9 = 11; + a21 = 10; + a11 = 0; + } + return 23; + } else if((((a6==1)&&(((a16==7)&&((!(a0==1)&&(!(a18==1)&&(((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))&&(input==4))))&&!(a8==1)))&&(a1==13)))&&((((a21==11)&&(((a3==1)&&((a12==1)&&(a2==1)))&&(a20==1)))&&(a17==2))&&(a19==2)))){ + a21 = 10; + a12 = 1; + a5 = 4; + a19 = 1; + a13 = 1; + a7 = 0; + a9 = 7; + a1 = 12; + return -1; + } else if((((((a9==9)&&((a17==2)&&((((input==5)&&((a5==4)||(a5==5)))&&(a12==1))&&(a6==1))))&&(a3==1))&&(a1==13))&&(((a16==7)&&((a21==11)&&(!(a6==1)||(!(a20==1)&&(((a23==1)&&(a19==1))||(a7==1))))))||(a8==1)))){ + a16 = 8; + a28 = 1; + a19 = 4; + a13 = 1; + a9 = 8; + a1 = 12; + a3 = 1; + a5 = 5; + return 21; + } else if((((((a8==1)||(((a9==8)&&(((a3==1)||(a0==1))||(a4==1)))&&!(a20==1)))||(a18==1))&&(a21==12))&&((((!(a8==1)&&((a3==1)&&(((input==6)&&(a19==4))&&(a17==2))))&&(a16==8))&&(a5==4))&&(a1==13)))){ + if((a14==1)){ + a20 = 1; + a9 = 10; + a16 = 7; + a10 = 0; + a21 = 10; + a11 = 0; + a5 = 5; + a19 = 1; + }else{ + a9 = 7; + a4 = 1; + a0 = 1; + a28 = 0; + a5 = 6; + a19 = 5; + a16 = 9; + } + return -1; + } else if(((((((a6==1)&&((a12==1)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a12==1))&&(a28==1))))&&(a21==10))&&(a17==2))&&(a9==10))&&((a1==13)&&(((!(a20==1)&&(((a12==1)||(a18==1))||(a0==1)))&&(a19==3))&&(a16==9))))){ + a26 = 1; + a16 = 7; + a5 = 4; + a9 = 8; + a25 = 0; + a20 = 1; + a19 = 1; + a6 = 0; + return -1; + } else if((((!(a4==1)&&(((((a2==1)&&((a11==1)&&((a19==4)&&((a1==12)&&(input==5)))))&&(a23==1))&&(a5==4))&&(a16==7)))&&!(a4==1))&&(((!(a20==1)&&((!(a24==1)&&(a3==1))&&(a17==2)))&&(a9==10))&&(a21==11)))){ + a28 = 1; + a9 = 7; + a2 = 1; + a20 = 1; + a21 = 10; + a19 = 1; + return -1; + } else if((((a17==2)&&(!(a14==1)&&((((a6==1)&&(!(a7==1)&&((((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(input==4))))&&!(a8==1))&&!(a24==1))))&&((a20==1)&&(!(a6==1)||((a21==10)&&((a1==12)&&(((a12==1)&&(a19==2))&&(a16==11)))))))){ + a14 = 0; + a5 = 4; + a16 = 7; + a0 = 0; + a9 = 7; + a19 = 1; + a24 = 0; + return -1; + } else if((((!(a7==1)&&((((a1==12)&&((((a2==1)&&((a19==5)&&((((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(input==6))))&&(a17==2))&&(a21==11)))&&(a20==1))&&!(a14==1)))&&!(a0==1))&&(((a27==1)||((a2==1)&&(a16==8)))&&(a23==1)))){ + a9 = 7; + a28 = 1; + a11 = 1; + a16 = 7; + a27 = 0; + a19 = 1; + a5 = 4; + a21 = 10; + return -1; + } else if((((a18==1)||((a21==11)&&(!(a20==1)&&((a5==4)&&(((a11==1)||!(a23==1))&&(a17==2))))))&&(!(a7==1)&&((((a13==1)&&(((((input==6)&&(a9==9))&&(a19==3))&&(a16==8))&&(a13==1)))&&(a1==14))&&!(a8==1))))){ + a21 = 10; + a19 = 1; + a2 = 1; + a14 = 0; + a9 = 7; + a13 = 1; + a16 = 7; + a1 = 12; + a20 = 1; + return -1; + } else if(((!(a24==1)&&((a11==1)&&((a21==10)&&(((a2==1)&&(((a12==1)||!(a11==1))&&(a16==9)))&&(a17==2)))))&&((((a9==9)&&(((a28==1)&&(((input==6)&&((a5==5)||(a5==6)))&&(a1==13)))&&(a19==2)))&&!(a20==1))&&!(a24==1)))){ + a4 = 1; + a20 = 1; + a19 = 1; + a9 = 11; + a5 = 4; + a15 = 1; + a16 = 7; + return 25; + } else if((((a20==1)&&((a1==14)&&(!(a14==1)&&((((((a5==5)||(a5==6))&&(input==3))&&(a21==11))&&(a11==1))&&(a19==3)))))&&((((a9==7)&&((a17==2)&&((((a4==1)||(a6==1))||(a14==1))&&(a23==1))))&&(a16==7))||!(a23==1)))){ + a19 = 1; + a13 = 1; + a1 = 12; + a5 = 4; + a11 = 1; + a7 = 0; + a21 = 10; + return -1; + } else if((((!(a8==1)&&((a12==1)&&((a11==1)&&((input==6)&&(a9==8)))))&&(a16==11))&&(((a5==6)&&((a17==2)&&((a1==14)&&(((a18==1)||((a20==1)&&((a19==1)&&((a11==1)||!(a11==1)))))&&(a28==1)))))&&(a21==10)))){ + a26 = 0; + a5 = 5; + a1 = 13; + a16 = 10; + a19 = 5; + a21 = 12; + a28 = 1; + a23 = 1; + return -1; + } else if(((((a0==1)||((a11==1)&&((a17==2)&&((a11==1)&&(a23==1)))))&&(a16==9))&&((a19==4)&&(((a6==1)&&((a3==1)&&((a1==13)&&(((a20==1)&&((input==6)&&(((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6))))))&&(a28==1)))))&&(a21==12))))){ + a1 = 12; + a21 = 10; + a12 = 1; + a19 = 3; + a16 = 10; + a8 = 0; + a9 = 10; + a5 = 4; + a3 = 1; + return 25; + } else if(((!(a18==1)&&((a2==1)&&((a16==8)&&(!(a8==1)&&((a3==1)&&!(a26==1))))))&&(((((a23==1)&&((a1==14)&&(((a19==5)&&((a17==2)&&(((a5==5)||(a5==6))&&(input==5))))&&!(a18==1))))&&!(a20==1))&&(a9==7))&&(a21==11)))){ + a15 = 1; + a20 = 1; + a5 = 5; + a14 = 1; + a1 = 12; + a9 = 10; + a19 = 2; + return -1; + } else if(((((a11==1)&&(!(a26==1)&&(!(a20==1)&&(input==1))))&&(a5==4))&&((a1==13)&&((a21==10)&&((a19==2)&&((!(a27==1)&&((a17==2)&&(((((a2==1)&&!(a0==1))&&(a16==10))&&(a9==11))||(a27==1))))&&(a28==1))))))){ + a20 = 1; + a5 = 6; + a1 = 14; + a9 = 9; + a16 = 7; + a3 = 0; + a19 = 4; + a4 = 1; + return -1; + } else if(((((((a6==1)&&(a6==1))&&(a21==12))&&(a23==1))&&(a9==8))&&(((a17==2)&&((a16==9)&&((a23==1)&&((a19==2)&&(((a20==1)&&((!(a26==1)&&(((a5==5)||(a5==6))&&(input==6)))&&(a13==1)))&&!(a27==1))))))&&(a1==14)))){ + if((a13==1)){ + a16 = 7; + a5 = 4; + a20 = 0; + a26 = 0; + a9 = 9; + a6 = 1; + a12 = 1; + }else{ + a2 = 1; + a16 = 7; + a9 = 9; + a1 = 13; + a27 = 0; + a21 = 10; + a12 = 1; + a5 = 5; + a19 = 3; + } + return 21; + } else if((((a16==9)&&((((a2==1)||!(a11==1))&&(a11==1))&&(a19==3)))&&((a21==11)&&(!(a20==1)&&((a17==2)&&((((a28==1)&&(!(a24==1)&&((input==4)&&((((a9==11)&&((a1==13)&&(a5==5)))||((a9==11)&&((a5==6)&&(a1==13))))||(((a1==14)&&(a5==4))&&(a9==7))))))&&!(a7==1))&&!(a4==1))))))){ + if((a13==1)){ + a21 = 10; + a5 = 4; + a22 = 1; + a4 = 1; + a19 = 4; + a20 = 1; + a28 = 0; + a1 = 12; + a9 = 11; + }else{ + a5 = 6; + a22 = 1; + a16 = 7; + a25 = 0; + a1 = 14; + a15 = 1; + a19 = 5; + a9 = 7; + a21 = 12; + } + return -1; + } else if(((!(a18==1)&&(((((!(a0==1)&&((input==6)&&(a16==10)))&&(a1==12))&&!(a20==1))&&!(a7==1))&&(a2==1)))&&((a24==1)||(((a21==10)&&(((a7==1)||(((a12==1)&&(a17==2))&&(a9==7)))&&(a5==4)))&&(a19==4))))){ + a4 = 1; + a19 = 1; + a1 = 14; + a23 = 0; + a16 = 7; + a20 = 1; + a5 = 6; + a9 = 10; + a22 = 1; + return 25; + } else if((((((((((input==3)&&(a17==2))&&(a16==10))&&(a9==8))&&(a21==10))&&!(a24==1))&&(a5==6))&&!(a26==1))&&(((a7==1)||(!(a12==1)||((a19==1)&&(((a20==1)&&((a24==1)||(a23==1)))&&(a1==12)))))||!(a3==1)))){ + a13 = 1; + a16 = 7; + a5 = 4; + a9 = 7; + a6 = 1; + a8 = 0; + return -1; + } else if((((a21==12)&&((a20==1)&&(((a16==11)&&((a27==1)||((a1==12)&&(a12==1))))||!(a13==1))))&&(((a17==2)&&((a12==1)&&((!(a24==1)&&(!(a0==1)&&((((a5==5)||(a5==6))&&(input==6))&&(a13==1))))&&(a9==11))))&&(a19==5)))){ + a16 = 9; + a14 = 0; + a5 = 6; + a13 = 1; + a21 = 11; + a4 = 0; + a9 = 7; + a19 = 4; + return 21; + } else if((((a17==2)&&((a9==9)&&(((((a19==3)&&((((a16==10)&&(a13==1))||!(a3==1))&&(a5==4)))||(a14==1))||(a26==1))||!(a6==1))))&&(((a20==1)&&((((input==5)&&(a21==12))&&(a1==14))&&!(a7==1)))&&(a13==1)))){ + a16 = 7; + a19 = 2; + a4 = 0; + a21 = 10; + a14 = 0; + a1 = 13; + a3 = 1; + a5 = 5; + return -1; + } else if((((a20==1)&&(((a21==10)&&(((a17==2)&&((((((a1==13)&&(a5==6))&&(a9==11))||(((a5==4)&&(a1==14))&&(a9==7)))&&(input==5))&&(a28==1)))&&(a16==7)))&&!(a7==1)))&&((a19==3)&&((a28==1)&&(((a2==1)&&(!(a11==1)||(a23==1)))&&(a3==1)))))){ + a19 = 2; + a5 = 4; + a9 = 7; + a8 = 0; + a1 = 13; + a21 = 11; + a23 = 1; + a18 = 0; + return 23; + } else if(((((a19==1)&&((a17==2)&&((((a3==1)&&((input==5)&&(((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6))))))&&(a1==12))&&(a2==1))))&&!(a27==1))&&(((!(a7==1)&&((((a16==8)&&(a11==1))&&(a21==10))||!(a12==1)))&&(a20==1))||(a18==1)))){ + a19 = 2; + a16 = 9; + a5 = 6; + a21 = 12; + a9 = 7; + a12 = 1; + a27 = 0; + return 25; + } else if(((((((!(a18==1)&&(!(a4==1)&&((a5==6)&&(((a21==11)&&(input==1))&&!(a14==1)))))&&!(a4==1))&&(a19==2))&&(a20==1))&&(a1==12))&&((((((a16==10)&&(a12==1))||(a0==1))&&!(a26==1))&&(a17==2))&&(a9==10)))){ + a19 = 1; + a13 = 1; + a1 = 13; + a9 = 9; + a11 = 1; + a16 = 11; + a2 = 1; + return 25; + } else if((((a16==9)&&(((a21==11)&&(!(a6==1)&&(!(a13==1)&&(((a7==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&!(a2==1)))&&(a26==1)))))&&(a20==1)))&&((a26==1)&&((a17==2)&&((((a1==14)&&(a13==1))&&(a19==5))&&(a9==7)))))){ + a7 = 1; + a19 = 1; + a5 = 6; + a21 = 10; + a16 = 7; + a23 = 0; + a29 = 1; + return -1; + } else if((((!(a27==1)&&((a28==1)&&(!(a20==1)&&((a17==2)&&(((a21==10)&&((((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6))))&&(input==4)))&&(a6==1))))))&&!(a7==1))&&((a16==8)&&(((a19==3)&&((!(a11==1)||(a12==1))&&(a3==1)))&&(a1==12))))){ + a28 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + a26 = 0; + a20 = 1; + a19 = 1; + return -1; + } else if(((((a16==7)&&((a9==10)&&(!(a24==1)&&(((a3==1)&&(a13==1))&&(a3==1)))))&&(a5==6))&&(!(a0==1)&&((a20==1)&&((a1==13)&&(((a17==2)&&((a11==1)&&(!(a7==1)&&((input==1)&&(a19==5)))))&&(a21==11))))))){ + a9 = 8; + a28 = 1; + a21 = 12; + a5 = 4; + a16 = 8; + a19 = 2; + a1 = 14; + a6 = 1; + a11 = 1; + return 23; + } else if((((((!(a4==1)&&(!(a2==1)||((a16==8)&&(!(a27==1)&&(a13==1)))))&&(a9==9))&&!(a8==1))&&(a17==2))&&(((((!(a14==1)&&(((a1==13)&&(input==6))&&(a3==1)))&&(a21==11))&&(a5==4))&&(a19==5))&&(a20==1)))){ + a18 = 0; + a16 = 10; + a28 = 1; + a19 = 3; + a12 = 1; + a5 = 6; + return 21; + } else if(((((((a17==2)&&((a1==12)&&((a6==1)&&!(a0==1))))&&(a21==12))&&(a6==1))&&(a23==1))&&(((!(a26==1)&&((a6==1)&&((a19==3)&&((a6==1)&&((input==6)&&((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a5==4)&&(a9==10))))))))&&(a20==1))&&(a16==9)))){ + a26 = 0; + a21 = 10; + a9 = 10; + a14 = 0; + a16 = 7; + a12 = 1; + a5 = 4; + a1 = 13; + return -1; + } else if(((((a17==2)&&((a4==1)&&((a14==1)&&((!(a6==1)&&((((a24==1)&&((a12==1)&&(a19==4)))&&(a21==10))&&(a7==1)))&&(a7==1)))))&&(a20==1))&&((((((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&(input==6))&&(a16==7))&&(a1==13)))){ + a15 = 0; + a1 = 12; + a13 = 0; + a5 = 5; + a4 = 1; + a19 = 1; + a9 = 10; + return 21; + } else if(((((!(a6==1)||(((a21==11)&&((a19==2)&&((a23==1)&&!(a20==1))))&&(a16==10)))&&(a2==1))||(a14==1))&&((a1==13)&&((a28==1)&&(((a17==2)&&(!(a4==1)&&(((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5)))&&(input==1))))&&(a6==1)))))){ + a22 = 1; + a15 = 0; + a5 = 5; + a1 = 14; + a19 = 4; + a29 = 0; + a9 = 11; + a16 = 7; + a20 = 1; + a21 = 12; + return 21; + } else if((((a21==11)&&(((((a12==1)&&(((a9==8)&&(input==5))&&!(a8==1)))&&(a16==11))&&(a17==2))&&(a20==1)))&&((a5==5)&&((((a1==14)&&(((a23==1)&&((a24==1)||(a2==1)))&&(a13==1)))&&(a12==1))&&(a19==4))))){ + a5 = 4; + a19 = 1; + a1 = 12; + a9 = 7; + a3 = 1; + a21 = 10; + a11 = 1; + a12 = 1; + a16 = 7; + return -1; + } else if((((!(a3==1)||(((a21==10)&&((!(a20==1)&&(a12==1))&&(a2==1)))&&(a1==13)))&&(a9==10))&&(((a16==7)&&(((a17==2)&&((a19==2)&&(!(a26==1)&&(((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a12==1)))))&&(a6==1)))&&!(a14==1)))){ + a3 = 1; + a13 = 1; + a9 = 7; + a28 = 1; + a20 = 1; + a5 = 4; + a1 = 12; + a19 = 1; + return -1; + } else if(((((((((!(a0==1)&&((a20==1)&&((input==6)&&(a5==4))))&&(a9==9))&&(a21==12))&&(a12==1))&&!(a26==1))&&!(a7==1))&&(a13==1))&&((((a1==13)&&(((a2==1)&&(a16==7))&&(a17==2)))&&(a19==2))&&!(a26==1)))){ + a2 = 1; + a0 = 0; + a3 = 1; + a19 = 1; + a1 = 12; + a9 = 7; + a21 = 10; + return -1; + } else if((((((a5==6)&&((a21==10)&&(!(a12==1)&&((a17==2)&&(!(a13==1)&&(a28==1))))))&&(a1==14))&&(a19==5))&&(!(a12==1)&&((((((a20==1)&&((a9==11)&&(input==4)))&&(a16==7))&&(a24==1))&&(a24==1))&&!(a13==1))))){ + a26 = 1; + a27 = 1; + a22 = 1; + a9 = 9; + a19 = 1; + a5 = 4; + return 21; + } else if((((a16==8)&&(((a11==1)&&((a17==2)&&(!(a24==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1)))))&&(a1==14)))&&((a21==10)&&(((a9==10)&&((((((a12==1)||(a7==1))||(a18==1))&&(a6==1))||!(a3==1))&&!(a20==1)))&&(a19==1))))){ + a27 = 0; + a20 = 1; + a1 = 12; + a16 = 7; + a9 = 7; + a5 = 4; + a7 = 0; + a18 = 0; + return -1; + } else if((((((!(a14==1)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a1==12))&&(a23==1))&&!(a24==1)))&&(a23==1))&&(a21==10))&&(a9==11))&&((a17==2)&&(((a16==11)&&((!(a14==1)&&((a13==1)&&(a13==1)))&&(a19==1)))&&(a20==1))))){ + if((a2==1)){ + a5 = 4; + a20 = 0; + a0 = 0; + a9 = 9; + a18 = 0; + a16 = 8; + a6 = 1; + a1 = 13; + a19 = 2; + }else{ + a8 = 0; + a4 = 0; + a24 = 0; + a1 = 14; + a19 = 3; + a21 = 11; + a5 = 5; + a16 = 8; + } + return 25; + } else if(((((a1==14)&&((a20==1)&&(((a24==1)||(((a23==1)||(a8==1))&&(a21==10)))&&!(a7==1))))&&(a19==3))&&(((((a16==7)&&((a9==10)&&(!(a0==1)&&((input==5)&&((a5==4)||(a5==5))))))&&!(a8==1))&&(a17==2))&&(a23==1)))){ + a1 = 12; + a11 = 1; + a24 = 0; + a5 = 4; + a7 = 0; + a9 = 7; + a21 = 11; + return 26; + } else if(((((a21==11)&&(((a1==13)&&((a11==1)&&(((input==3)&&(a9==11))&&!(a24==1))))&&(a19==4)))&&!(a27==1))&&((!(a7==1)&&((((((a6==1)&&!(a20==1))&&(a17==2))&&!(a7==1))&&(a5==4))&&(a3==1)))&&(a16==7)))){ + a23 = 1; + a1 = 14; + a20 = 1; + a8 = 0; + a21 = 12; + a16 = 8; + a5 = 6; + a24 = 0; + a19 = 1; + a9 = 8; + return 21; + } else if((((a17==2)&&((a11==1)&&((((a1==12)&&(input==3))&&!(a4==1))&&!(a20==1))))&&((((((a19==1)&&((a0==1)||((a21==11)&&(!(a4==1)&&((a5==6)&&(a12==1))))))||!(a23==1))&&(a12==1))&&(a9==8))&&(a16==10)))){ + a21 = 12; + a29 = 0; + a11 = 0; + a16 = 8; + a1 = 13; + a19 = 4; + a9 = 10; + a14 = 1; + return 21; + } else if((((((a16==9)&&(!(a14==1)&&(!(a24==1)&&((a21==10)&&((a7==1)||(a12==1))))))&&(a3==1))&&(a5==4))&&((a20==1)&&((((((a9==7)&&((input==5)&&(a17==2)))&&!(a14==1))&&(a19==5))&&(a1==13))&&(a2==1))))){ + a23 = 1; + a19 = 1; + a24 = 0; + a16 = 7; + a1 = 12; + a6 = 1; + return -1; + } else if((((a28==1)&&(!(a27==1)&&((!(a20==1)&&((((a5==4)||(a5==5))&&(input==3))&&(a1==12)))&&(a17==2))))&&((a23==1)&&(((((a0==1)||((a4==1)||((a9==11)&&((a12==1)&&(a21==10)))))&&(a16==9))&&(a19==4))&&!(a24==1))))){ + a11 = 0; + a20 = 1; + a6 = 0; + a5 = 4; + a21 = 12; + a1 = 14; + return -1; + } else if(((((a17==2)&&(((a21==10)&&(((((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==4))&&(a2==1))&&!(a8==1))&&(a16==11)))&&(a1==14)))&&(a3==1))&&((a14==1)||((!(a20==1)&&(!(a13==1)||((a19==1)&&(a28==1))))||(a7==1))))){ + a22 = 0; + a10 = 0; + a5 = 6; + a1 = 13; + a0 = 1; + a20 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if((((((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a20==1))&&(a13==1))&&((!(a18==1)&&(((((((a14==1)||((a1==12)&&(!(a3==1)||((a8==1)||(a12==1)))))&&(a9==9))&&(a16==8))&&(a17==2))&&(a21==11))||(a18==1)))&&(a19==3)))){ + a5 = 6; + a21 = 10; + a16 = 10; + a28 = 1; + a19 = 5; + a1 = 13; + a24 = 0; + a9 = 10; + return 25; + } else if(((((a28==1)&&((a6==1)&&(((!(a7==1)&&((a17==2)&&((a19==2)&&((input==1)&&(((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6))))))))&&(a20==1))&&(a28==1))))&&(a28==1))&&(((a21==11)&&((a1==14)&&((a23==1)&&(a16==11))))||!(a6==1)))){ + a5 = 4; + a6 = 1; + a1 = 12; + a13 = 1; + a9 = 7; + a21 = 10; + a8 = 0; + a19 = 1; + a16 = 7; + return -1; + } else if((((a16==7)&&(!(a28==1)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a21==11))&&(a9==8))))&&((((!(a6==1)&&((a4==1)&&(((((a8==1)&&(a3==1))&&!(a6==1))&&(a17==2))&&!(a2==1))))&&!(a20==1))&&(a19==2))&&(a1==14)))){ + a20 = 1; + a14 = 1; + a9 = 10; + a19 = 1; + a11 = 0; + a21 = 10; + a28 = 0; + a5 = 4; + return 25; + } else if(((!(a11==1)&&((((((a20==1)&&(((a7==1)&&(a13==1))&&!(a12==1)))&&(a5==4))&&(a9==8))&&(a17==2))&&(a19==4)))&&(((a1==13)&&((!(a28==1)&&(!(a28==1)&&((a21==11)&&(input==6))))&&(a16==9)))&&(a0==1)))){ + a27 = 1; + a21 = 10; + a19 = 1; + a5 = 6; + a9 = 10; + a3 = 0; + a16 = 7; + a23 = 0; + a1 = 12; + return -1; + } else if((((a19==4)&&((((input==6)&&((a5==4)||(a5==5)))&&(a21==12))&&(a1==12)))&&(!(a6==1)||((a11==1)&&(((a2==1)&&(!(a13==1)||((a11==1)&&(!(a20==1)&&((a9==10)&&((a17==2)&&((a16==10)&&(a12==1))))))))||(a8==1)))))){ + if((a5==6)){ + a15 = 1; + a16 = 8; + a20 = 1; + a5 = 5; + a7 = 1; + a9 = 7; + a19 = 2; + a21 = 10; + a29 = 1; + }else{ + a10 = 1; + a7 = 1; + a21 = 10; + a19 = 2; + a2 = 0; + a16 = 7; + a9 = 7; + a5 = 5; + a20 = 1; + } + return -1; + } else if(((((a20==1)&&((a21==11)&&(!(a24==1)&&(((((a11==1)&&((input==4)&&((((a5==6)&&(a1==13))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==14))))))&&!(a0==1))&&(a17==2))&&!(a4==1)))))&&!(a18==1))&&((((a19==5)&&(a28==1))&&(a16==7))||(a24==1)))){ + a2 = 1; + a13 = 1; + a14 = 0; + a9 = 7; + a1 = 12; + a5 = 4; + a19 = 1; + a21 = 10; + return -1; + } else if((((((((a19==4)&&(a13==1))&&(a23==1))&&(a21==11))&&(a16==8))&&!(a26==1))&&((a3==1)&&((a13==1)&&((a6==1)&&((!(a24==1)&&((a20==1)&&((a1==12)&&(((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a17==2)))))&&(a9==9))))))){ + a19 = 1; + a3 = 1; + a2 = 1; + a9 = 7; + a16 = 7; + a5 = 4; + a21 = 10; + return -1; + } else if(((((a1==12)&&(((((a17==2)&&(((!(a4==1)&&(!(a27==1)&&(((input==5)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&!(a20==1))))&&!(a18==1))&&(a6==1)))&&!(a24==1))&&(a21==11))&&(a23==1)))&&(a16==10))&&((a3==1)&&(a19==3)))){ + a23 = 0; + a1 = 14; + a21 = 10; + a9 = 9; + a13 = 0; + a19 = 2; + a5 = 5; + a22 = 0; + a16 = 11; + return -1; + } else if(((((a16==9)&&((a20==1)&&((((a17==2)&&((a26==1)||(a3==1)))&&!(a26==1))||!(a28==1))))&&(a1==13))&&((a23==1)&&(!(a26==1)&&(((a2==1)&&(((((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&(input==6))&&(a21==10)))&&(a19==1)))))){ + a1 = 12; + a12 = 1; + a9 = 7; + a16 = 7; + a5 = 4; + a4 = 0; + a7 = 0; + return -1; + } else if(((!(a14==1)&&(!(a0==1)&&(((((a21==11)&&(((((a5==4)||(a5==5))&&(input==3))&&(a20==1))&&(a16==11)))&&(a17==2))&&(a19==1))&&!(a18==1))))&&((((((a3==1)&&!(a24==1))&&(a1==14))||!(a12==1))&&(a9==11))&&!(a0==1)))){ + a9 = 7; + a7 = 0; + a11 = 1; + a5 = 4; + a21 = 10; + a16 = 7; + a1 = 12; + return -1; + } else if((((((!(a4==1)&&(((a2==1)||(a24==1))&&(a5==4)))&&(a19==4))||(a18==1))&&(a16==8))&&(((!(a0==1)&&((((a17==2)&&(((input==6)&&(a1==12))&&(a20==1)))&&!(a0==1))&&(a11==1)))&&(a21==12))&&(a9==7)))){ + a23 = 1; + a19 = 1; + a13 = 1; + a0 = 0; + a21 = 10; + a16 = 7; + return -1; + } return calculate_output37(input); + } + + int calculate_output37(int input) { + if(((((a9==7)&&(!(a24==1)&&((a8==1)||(((!(a7==1)&&(((a16==7)&&((a23==1)&&(a21==11)))||(a8==1)))&&(a19==3))&&(a17==2)))))&&(a13==1))&&((a13==1)&&((a1==14)&&(((input==6)&&((a5==5)||(a5==6)))&&(a20==1)))))){ + a23 = 1; + a21 = 10; + a13 = 1; + a19 = 1; + a1 = 12; + a6 = 1; + a5 = 4; + return -1; + } else if((((a21==11)&&((a17==2)&&(((a19==5)&&((a13==1)&&((a16==9)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==6)))))&&(a6==1))))&&(!(a20==1)&&((a12==1)&&((((!(a28==1)||(a23==1))||!(a2==1))||(a14==1))&&(a1==13)))))){ + if((a18==1)){ + a19 = 3; + a21 = 10; + a1 = 14; + a16 = 10; + a28 = 0; + a5 = 4; + a29 = 1; + a15 = 1; + a9 = 8; + }else{ + a10 = 0; + a19 = 3; + a9 = 9; + a0 = 1; + a5 = 4; + a27 = 1; + a20 = 1; + a21 = 12; + } + return -1; + } else if((((((((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4)))&&(input==4))&&(a21==10))&&!(a27==1))&&(a23==1))&&(((a12==1)&&((a23==1)&&(((((((a11==1)&&!(a20==1))&&(a16==7))&&(a19==2))&&(a1==14))&&(a17==2))||(a27==1))))||(a0==1)))){ + a26 = 0; + a1 = 12; + a5 = 4; + a20 = 1; + a9 = 7; + a8 = 0; + a19 = 1; + a3 = 1; + return -1; + } else if((((((a19==1)&&(!(a14==1)&&(((a9==10)&&(((((a5==5)||(a5==6))&&(input==6))&&(a12==1))&&(a1==12)))&&(a16==10))))&&!(a20==1))&&(a17==2))&&(((((a6==1)&&((a3==1)&&!(a27==1)))&&(a2==1))&&(a2==1))&&(a21==12)))){ + if((a2==1)){ + a20 = 1; + a13 = 0; + a21 = 11; + a9 = 7; + a4 = 1; + a19 = 3; + a1 = 14; + a5 = 5; + a22 = 0; + }else{ + a21 = 10; + a16 = 11; + a5 = 6; + a18 = 1; + a6 = 0; + a20 = 1; + a9 = 8; + a3 = 0; + } + return 25; + } else if((((a21==12)&&((!(a24==1)&&((a28==1)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a16==8))&&(a17==2))))&&(a19==2)))&&((!(a11==1)||((((((a2==1)&&(a1==14))&&!(a14==1))&&!(a20==1))&&(a3==1))&&(a2==1)))&&(a9==10)))){ + a19 = 1; + a20 = 1; + a29 = 1; + a28 = 0; + a8 = 1; + a5 = 6; + a16 = 7; + a21 = 10; + return -1; + } else if((((a1==12)&&(!(a27==1)&&((a17==2)&&((!(a26==1)&&((a23==1)&&(a12==1)))||(a27==1)))))&&((((((a16==7)&&((a19==1)&&((a21==11)&&((a5==5)&&(input==6)))))&&!(a4==1))&&(a9==9))&&(a20==1))&&!(a24==1)))){ + a1 = 14; + a21 = 12; + a9 = 8; + a19 = 5; + a13 = 1; + a18 = 0; + a3 = 1; + return 23; + } else if((((a19==3)&&(!(a7==1)&&((a9==9)&&((a21==10)&&((((input==5)&&(a5==5))&&(a28==1))&&(a23==1))))))&&((!(a18==1)&&((a16==11)&&((a1==13)&&((a4==1)||((a17==2)&&((a12==1)&&(a11==1)))))))&&(a20==1)))){ + a16 = 7; + a19 = 1; + a1 = 12; + a5 = 4; + a9 = 7; + a23 = 1; + a28 = 1; + a24 = 0; + return -1; + } else if(((((((!(a24==1)&&(!(a14==1)&&((((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a5==4)&&(a9==8)))&&(input==5))&&(a19==3))))&&(a1==12))&&!(a27==1))&&(a17==2))&&(a21==12))&&(((a16==10)&&((a2==1)&&((a12==1)&&((a23==1)&&!(a20==1)))))&&!(a4==1)))){ + if((a29==1)){ + a13 = 0; + a5 = 5; + a1 = 13; + a23 = 0; + a19 = 1; + a9 = 9; + a20 = 1; + a7 = 1; + a21 = 10; + a16 = 7; + }else{ + a4 = 1; + a16 = 7; + a21 = 10; + a19 = 1; + a9 = 10; + a14 = 1; + a20 = 1; + a22 = 0; + a5 = 6; + a1 = 13; + } + return 25; + } else if((((((((a21==11)&&((a23==1)&&(a9==7)))||!(a12==1))&&(a19==3))||!(a2==1))&&(a23==1))&&(((!(a27==1)&&(!(a4==1)&&(((a1==14)&&((((a5==5)||(a5==6))&&(input==4))&&(a16==10)))&&!(a0==1))))&&!(a20==1))&&(a17==2)))){ + a20 = 1; + a3 = 0; + a19 = 2; + a5 = 6; + a1 = 13; + a13 = 0; + a15 = 0; + a16 = 11; + a9 = 8; + return -1; + } else if((((((a14==1)||(!(a11==1)||((a1==14)&&((((!(a13==1)||((a23==1)&&(a6==1)))&&!(a20==1))&&!(a27==1))&&(a21==11)))))&&!(a24==1))&&(a19==3))&&((a16==7)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a9==9))&&(a17==2))))){ + a12 = 1; + a21 = 10; + a20 = 1; + a23 = 1; + a0 = 0; + a5 = 4; + a1 = 12; + a19 = 1; + a9 = 7; + return -1; + } else if(((!(a18==1)&&((!(a8==1)&&((a17==2)&&((a28==1)&&(a20==1))))&&(a21==11)))&&((((a16==8)&&((a1==12)&&(((((a9==11)&&((input==5)&&((a5==5)||(a5==6))))&&(a19==1))&&!(a8==1))&&(a23==1))))&&!(a27==1))&&!(a14==1)))){ + a23 = 1; + a21 = 10; + a9 = 7; + a14 = 0; + a5 = 4; + a24 = 0; + a16 = 7; + return -1; + } else if((((!(a0==1)&&((((a17==2)&&(((a6==1)&&((input==6)&&(((a19==4)&&((a9==11)&&((a1==14)&&(a5==6))))||((a19==5)&&((a9==7)&&((a5==4)&&(a1==12)))))))&&(a16==9)))&&!(a0==1))&&!(a8==1)))&&!(a0==1))&&((a21==12)&&(((a23==1)&&(a11==1))&&(a20==1))))){ + a8 = 0; + a19 = 1; + a24 = 0; + a5 = 4; + a9 = 7; + a21 = 10; + a18 = 0; + a16 = 7; + a1 = 12; + return -1; + } else if((((((!(a12==1)||(!(a7==1)&&(((a0==1)||((!(a8==1)&&(a28==1))||(a8==1)))&&(a16==10))))&&!(a18==1))&&(a19==5))&&(a17==2))&&((((((input==6)&&(a20==1))&&(a5==5))&&(a1==12))&&(a9==10))&&(a21==11)))){ + a4 = 0; + a1 = 13; + a24 = 0; + a9 = 9; + a19 = 2; + a21 = 10; + a12 = 1; + a16 = 7; + return 25; + } else if(((((a19==2)&&((a9==7)&&(((a3==1)&&((a17==2)&&((a28==1)||!(a12==1))))&&!(a4==1))))&&(a16==10))&&((a1==13)&&(((a5==5)&&(((a23==1)&&((!(a20==1)&&(input==5))&&!(a0==1)))&&!(a7==1)))&&(a21==12))))){ + if((a11==1)){ + a5 = 4; + a21 = 10; + a12 = 0; + a28 = 0; + a20 = 1; + a9 = 9; + a19 = 1; + a22 = 1; + a1 = 12; + a16 = 7; + }else{ + a20 = 1; + a24 = 1; + a21 = 10; + a16 = 7; + a25 = 0; + a22 = 1; + a9 = 8; + a1 = 14; + a19 = 4; + } + return -1; + } else if(((((a9==9)&&(!(a23==1)||(!(a11==1)||(a2==1))))&&(a17==2))&&((((((((a3==1)&&(((a3==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))&&(a16==8)))&&(a2==1))&&!(a0==1))&&(a19==2))&&(a1==13))&&(a20==1))&&(a21==11)))){ + a16 = 10; + a21 = 10; + a9 = 8; + a13 = 1; + a19 = 4; + a23 = 1; + a3 = 1; + a5 = 6; + return 25; + } else if(((!(a14==1)&&((a28==1)&&((a28==1)&&((a19==5)&&(!(a14==1)&&(((input==6)&&((a5==5)||(a5==6)))&&(a1==12)))))))&&((a16==9)&&(!(a20==1)&&((a26==1)||(((a17==2)&&(((a21==10)&&(a6==1))&&!(a18==1)))&&(a9==11))))))){ + if((a21==11)){ + a5 = 5; + a28 = 0; + a19 = 1; + a1 = 14; + a8 = 1; + a29 = 0; + a16 = 7; + a20 = 1; + a9 = 7; + }else{ + a29 = 0; + a10 = 1; + a22 = 0; + a20 = 1; + a9 = 10; + a5 = 5; + a16 = 10; + a19 = 1; + a21 = 11; + } + return -1; + } else if((((!(a26==1)&&(((((a17==2)&&((a12==1)&&(((input==6)&&(a1==14))&&(a3==1))))&&(a21==11))&&(a19==5))&&!(a7==1)))&&(a5==4))&&((!(a20==1)&&((((a9==7)&&(a6==1))&&!(a18==1))&&(a3==1)))&&(a16==9)))){ + if((a12==1)){ + a19 = 1; + a22 = 1; + a21 = 10; + a16 = 7; + a20 = 1; + a1 = 13; + a5 = 6; + a29 = 1; + a14 = 1; + }else{ + a5 = 5; + a19 = 1; + a16 = 7; + a1 = 12; + a21 = 10; + a15 = 0; + a9 = 11; + a18 = 1; + a3 = 0; + a20 = 1; + } + return 25; + } else if(((((((a19==2)&&(((a5==5)&&(!(a20==1)&&(((a17==2)&&((a9==10)&&((a21==11)&&(input==4))))&&(a6==1))))&&(a3==1)))&&!(a7==1))&&(a1==13))&&(a3==1))&&((a7==1)||(!(a12==1)||((a16==8)&&(a28==1)))))){ + a16 = 7; + a21 = 10; + a8 = 0; + a19 = 1; + a20 = 1; + a1 = 12; + a23 = 1; + a5 = 4; + a9 = 7; + a12 = 1; + return -1; + } else if(((((a21==10)&&(!(a20==1)&&(((a17==2)&&(!(a26==1)&&(((a12==1)&&(a19==1))&&(a16==7))))&&!(a18==1))))&&!(a4==1))&&((a3==1)&&((((input==6)&&(((((a5==5)&&(a1==13))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==13))))||((a9==7)&&((a5==4)&&(a1==14)))))&&(a6==1))&&!(a7==1))))){ + a28 = 1; + a11 = 1; + a5 = 4; + a9 = 7; + a20 = 1; + a7 = 0; + a1 = 12; + return -1; + } else if(((((((a21==10)&&((!(a4==1)&&((((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6))))&&(input==5)))&&(a1==14)))&&(a17==2))&&(a19==3))&&(a11==1))&&(((((a16==9)&&(((a23==1)||!(a11==1))&&(a28==1)))&&(a20==1))||!(a13==1))&&!(a14==1)))){ + a5 = 4; + a1 = 12; + a21 = 11; + a0 = 0; + a16 = 8; + a19 = 4; + a27 = 0; + a9 = 10; + a12 = 1; + return 25; + } else if(((((a21==12)&&(!(a18==1)&&((((a28==1)&&((((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(input==1)))&&!(a27==1))&&(a16==8))))&&(a19==3))&&((((a1==14)&&((((a13==1)||!(a13==1))&&(a17==2))||!(a13==1)))&&!(a24==1))&&!(a20==1)))){ + a5 = 4; + a23 = 0; + a9 = 9; + a21 = 11; + a19 = 2; + a28 = 0; + a16 = 7; + a10 = 1; + a1 = 12; + return 26; + } else if((((((a14==1)||((a16==8)&&(((a19==4)&&((a23==1)&&(a17==2)))&&(a1==14))))&&(a21==10))&&(a13==1))&&((a12==1)&&((a12==1)&&((((!(a4==1)&&((input==3)&&((a5==5)||(a5==6))))&&(a9==10))&&!(a24==1))&&!(a20==1)))))){ + a5 = 4; + a13 = 1; + a9 = 9; + a6 = 1; + a19 = 2; + a1 = 13; + a28 = 1; + a16 = 7; + a20 = 1; + return -1; + } else if((((a9==10)&&(!(a20==1)&&(((a27==1)||((!(a6==1)||(a13==1))&&(a1==14)))||!(a2==1))))&&((a19==3)&&((a5==6)&&((a21==10)&&(!(a14==1)&&((a6==1)&&((a16==9)&&(!(a0==1)&&((a17==2)&&(input==5))))))))))){ + if((a4==1)){ + a20 = 1; + a19 = 2; + a15 = 1; + a18 = 1; + a1 = 12; + a9 = 7; + a4 = 1; + a16 = 7; + }else{ + a5 = 4; + a20 = 1; + a1 = 12; + a26 = 1; + a19 = 1; + a9 = 11; + a16 = 7; + a10 = 0; + a22 = 0; + } + return -1; + } else if((((a28==1)&&(((a2==1)&&(((input==6)&&((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a5==4)&&(a9==8))))&&(a28==1)))&&(a2==1)))&&((((a16==10)&&((((((a13==1)&&(a21==10))&&(a19==4))&&(a1==13))&&(a20==1))&&(a17==2)))&&!(a26==1))||!(a3==1)))){ + a21 = 12; + a16 = 8; + a19 = 3; + a18 = 0; + a5 = 5; + a1 = 14; + a9 = 11; + a0 = 0; + a2 = 1; + return -1; + } else if((((a2==1)&&((a2==1)&&(((((a17==2)&&(!(a2==1)||((a20==1)&&(a2==1))))&&(a21==11))||(a0==1))&&(a19==4))))&&((a23==1)&&(((((input==4)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(a16==10))&&(a1==14))&&(a28==1))))){ + a0 = 0; + a21 = 10; + a5 = 4; + a7 = 0; + a9 = 11; + a20 = 0; + a19 = 5; + a13 = 1; + a16 = 7; + return -1; + } else if(((!(a14==1)&&(((a19==1)&&((a1==13)&&(((a16==11)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==1)))&&(a6==1))))&&(a21==10)))&&((a4==1)||(!(a27==1)&&((((a17==2)&&((a3==1)||(a24==1)))&&(a20==1))&&(a2==1)))))){ + a4 = 0; + a1 = 12; + a5 = 4; + a16 = 7; + a0 = 0; + a18 = 0; + a9 = 7; + return -1; + } else if((((((a1==14)&&(((a19==1)&&(((!(a24==1)&&((a9==11)&&(input==3)))&&(a21==10))&&!(a8==1)))&&!(a8==1)))&&!(a14==1))&&!(a20==1))&&(!(a18==1)&&((a16==8)&&(!(a14==1)&&(((a5==4)&&(a2==1))&&(a17==2))))))){ + a26 = 0; + a1 = 12; + a13 = 1; + a9 = 7; + a20 = 1; + a16 = 7; + return -1; + } else if(((!(a12==1)||((!(a13==1)||(!(a2==1)||((a4==1)||((!(a8==1)&&(((a8==1)||((a1==12)&&(a23==1)))&&(a19==2)))&&!(a20==1)))))&&(a16==9)))&&((a17==2)&&((a21==10)&&(((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5)))&&(input==1)))))){ + if((a16==11)){ + a19 = 4; + a5 = 6; + a16 = 8; + a28 = 0; + a12 = 0; + a9 = 8; + a21 = 11; + a29 = 0; + }else{ + a13 = 0; + a9 = 11; + a16 = 7; + a20 = 1; + a24 = 1; + a5 = 5; + a2 = 0; + } + return -1; + } else if((((a3==1)&&(!(a8==1)&&((a13==1)&&((((a16==10)&&(((a9==10)&&((a13==1)&&!(a20==1)))||!(a6==1)))&&(a1==12))&&(a21==10)))))&&((((((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&(a19==4))&&(a6==1))&&(a17==2))&&(a23==1)))){ + a16 = 7; + a24 = 1; + a9 = 7; + a19 = 1; + a7 = 1; + a5 = 6; + a22 = 0; + a20 = 1; + return 23; + } else if(((!(a14==1)&&((a9==9)&&((((a1==13)&&((a16==7)&&((a13==1)&&((a11==1)&&((a21==12)&&((input==4)&&(a5==6)))))))&&(a28==1))&&!(a26==1))))&&((a19==2)&&(((a11==1)&&((a23==1)&&!(a20==1)))&&(a17==2))))){ + a5 = 4; + a4 = 0; + a20 = 1; + a19 = 1; + a21 = 10; + a6 = 1; + a13 = 1; + a1 = 12; + a9 = 7; + return -1; + } else if(((((a20==1)&&(!(a13==1)&&(!(a13==1)&&(!(a28==1)&&((a2==1)&&!(a13==1))))))&&(a17==2))&&((a21==10)&&(!(a12==1)&&((a19==2)&&(!(a23==1)&&(((a16==11)&&(((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4)))&&(input==6)))&&(a1==12)))))))){ + a16 = 7; + a5 = 4; + a25 = 1; + a7 = 1; + a9 = 8; + a18 = 1; + return -1; + } else if((((((((((input==3)&&(a9==10))&&(a11==1))&&(a5==4))&&(a11==1))&&!(a7==1))&&(a21==10))&&(a16==7))&&((a19==3)&&(((((((a23==1)&&(a11==1))&&(a17==2))&&!(a14==1))&&!(a20==1))||(a26==1))&&(a1==14))))){ + a19 = 1; + a20 = 1; + a23 = 1; + a9 = 7; + a2 = 1; + a1 = 12; + a11 = 1; + return -1; + } else if((((a9==11)&&((a4==1)||((a18==1)||((((a5==5)&&(a13==1))&&(a21==12))||(a24==1)))))&&((((a17==2)&&(((a16==10)&&((a1==12)&&(!(a20==1)&&((a19==5)&&(input==5)))))&&(a3==1)))&&!(a26==1))&&!(a8==1)))){ + a19 = 1; + a9 = 10; + a16 = 7; + a1 = 13; + a20 = 1; + a21 = 10; + a5 = 6; + a13 = 0; + a3 = 0; + return -1; + } else if(((((((!(a7==1)&&(((a21==12)&&(((a20==1)&&(input==5))&&!(a7==1)))&&(a5==5)))&&!(a27==1))&&(a19==4))&&!(a4==1))&&(a1==12))&&(!(a12==1)||((((a16==9)&&((a6==1)&&(a9==11)))&&(a28==1))&&(a17==2))))){ + a16 = 7; + a9 = 7; + a6 = 1; + a5 = 4; + a24 = 0; + a19 = 1; + a0 = 0; + a21 = 10; + return -1; + } else if((((a28==1)&&((((a21==10)&&(((((((((a5==4)||(a5==5))&&(input==3))&&!(a20==1))&&(a23==1))&&(a3==1))&&(a1==13))&&(a2==1))&&(a6==1)))&&(a9==7))&&(a17==2)))&&(((a19==5)&&(!(a3==1)||(a12==1)))&&(a16==7)))){ + a9 = 9; + a1 = 14; + a19 = 1; + a28 = 1; + a14 = 0; + a20 = 1; + a24 = 0; + a5 = 5; + return -1; + } else if(((((((a17==2)&&(a6==1))&&(a1==14))&&(a28==1))&&(a20==1))&&(((a16==9)&&((a19==5)&&((a21==10)&&(((a3==1)&&((!(a18==1)&&((input==3)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))))&&(a6==1)))&&(a13==1)))))&&(a23==1)))){ + a16 = 7; + a5 = 4; + a24 = 0; + a9 = 7; + a18 = 0; + a2 = 1; + a19 = 1; + a1 = 12; + return -1; + } else if((((a5==6)&&(!(a4==1)&&((!(a4==1)&&(((a2==1)&&((a19==4)&&(input==5)))&&(a16==9)))&&!(a18==1))))&&(!(a11==1)||(((a21==12)&&(!(a20==1)&&(((!(a8==1)&&(a23==1))&&(a17==2))&&(a9==8))))&&(a1==13))))){ + a2 = 0; + a16 = 8; + a26 = 1; + a9 = 10; + a19 = 3; + a3 = 0; + return 26; + } else if(((((a17==2)&&((((a5==5)||(a5==6))&&(input==3))&&(a21==12)))&&(a23==1))&&(((((a16==7)&&(((a9==9)&&((a19==4)&&((((a12==1)&&(a1==14))&&!(a7==1))&&(a13==1))))&&(a20==1)))&&(a28==1))||!(a12==1))&&!(a4==1)))){ + a21 = 10; + a1 = 12; + a9 = 7; + a5 = 4; + a14 = 0; + a6 = 1; + a13 = 1; + a19 = 1; + return -1; + } else if((((a21==12)&&(!(a20==1)&&((a3==1)&&((a16==9)&&((a7==1)||(((a23==1)&&(a19==5))&&!(a26==1)))))))&&((((a1==13)&&((a6==1)&&((!(a0==1)&&((input==5)&&(a5==6)))&&(a3==1))))&&(a9==8))&&(a17==2)))){ + if((a10==1)){ + a2 = 0; + a21 = 10; + a4 = 1; + a9 = 9; + a20 = 1; + a19 = 4; + }else{ + a16 = 7; + a18 = 1; + a6 = 0; + a26 = 1; + a9 = 9; + a1 = 14; + a21 = 10; + a19 = 1; + a20 = 1; + a5 = 4; + } + return 21; + } else if((((a4==1)||((a7==1)||(!(a23==1)||(!(a0==1)&&((((a21==11)&&((a19==3)&&((a1==14)&&((a12==1)&&(a16==8)))))&&(a20==1))&&(a9==11))))))&&(((a12==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a17==2)))&&!(a26==1)))){ + a19 = 1; + a11 = 1; + a24 = 0; + a5 = 4; + a13 = 1; + a16 = 10; + return 22; + } else if((((a5==5)&&((((!(a18==1)&&((a2==1)&&((a17==2)&&((a8==1)||(a2==1)))))&&(a16==8))&&(a9==11))&&(a21==11)))&&((!(a7==1)&&((!(a14==1)&&((a1==13)&&((input==6)&&!(a20==1))))&&(a13==1)))&&(a19==4)))){ + a9 = 7; + a19 = 1; + a21 = 10; + a1 = 12; + a20 = 1; + a16 = 7; + a3 = 1; + a5 = 4; + a18 = 0; + return -1; + } else if((((((a19==1)&&(!(a13==1)||((a17==2)&&(((a1==12)&&(a3==1))&&(a21==10)))))&&!(a4==1))||!(a11==1))&&((((a13==1)&&(((a16==10)&&(((input==3)&&((a5==4)||(a5==5)))&&(a20==1)))&&!(a4==1)))&&(a9==8))&&(a13==1)))){ + a5 = 4; + a28 = 1; + a16 = 7; + a2 = 1; + a23 = 1; + a9 = 7; + return -1; + } else if((((a16==9)&&(((a20==1)&&((a3==1)&&!(a27==1)))&&(a19==2)))&&(((a2==1)&&((a1==14)&&((a21==12)&&(!(a18==1)&&((a11==1)&&(((a2==1)&&((input==4)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))))&&(a17==2)))))))&&!(a18==1)))){ + a28 = 1; + a0 = 0; + a9 = 7; + a1 = 12; + a18 = 0; + a21 = 10; + a5 = 4; + a19 = 1; + a16 = 7; + return -1; + } else if((((a9==7)&&(((a17==2)&&((a1==14)&&(!(a24==1)&&((input==4)&&((a5==4)||(a5==5))))))&&!(a14==1)))&&((!(a20==1)&&((!(a14==1)&&(((((a21==10)&&(a2==1))||!(a6==1))&&(a12==1))&&!(a14==1)))&&(a19==4)))&&(a16==10)))){ + a9 = 9; + a13 = 0; + a16 = 11; + a5 = 6; + a14 = 1; + a19 = 2; + a10 = 1; + return -1; + } else if(((((a5==6)&&(!(a2==1)||((a21==12)&&(((a16==7)&&(a11==1))&&(a20==1)))))||(a27==1))&&((a11==1)&&(!(a4==1)&&((a19==1)&&(!(a7==1)&&(!(a8==1)&&((a9==10)&&((a1==12)&&((a17==2)&&(input==1))))))))))){ + a16 = 8; + a1 = 14; + a26 = 0; + a5 = 5; + a9 = 8; + a24 = 0; + a19 = 4; + return 26; + } else if((((a16==9)&&(((!(a11==1)||((a3==1)&&(a17==2)))&&(a21==10))&&(a9==9)))&&(((a20==1)&&((a19==1)&&(!(a14==1)&&((((((a1==12)&&(input==1))&&!(a18==1))&&!(a24==1))&&(a2==1))&&(a3==1)))))&&(a5==4)))){ + a5 = 5; + a24 = 0; + a19 = 4; + a1 = 14; + a9 = 11; + a16 = 7; + a14 = 0; + return 25; + } else if(((!(a0==1)&&(((((a1==14)&&((((input==5)&&((a5==4)||(a5==5)))&&(a19==4))&&(a17==2)))&&(a16==10))&&!(a24==1))&&(a12==1)))&&((!(a6==1)||(((a9==7)&&(((a21==10)&&(a12==1))&&!(a20==1)))||(a24==1)))&&!(a18==1)))){ + a1 = 12; + a25 = 1; + a16 = 7; + a19 = 1; + a3 = 0; + a0 = 1; + a20 = 1; + a5 = 4; + return 25; + } else if(((!(a3==1)||((((!(a8==1)&&(a6==1))&&(a19==3))&&(a17==2))&&(a16==10)))&&((a2==1)&&((a23==1)&&(((!(a14==1)&&(((((input==3)&&((a5==5)||(a5==6)))&&(a1==12))&&(a21==12))&&!(a20==1)))&&!(a0==1))&&(a9==11)))))){ + if((a10==1)){ + a19 = 1; + a14 = 1; + a21 = 10; + a0 = 1; + a9 = 10; + a25 = 1; + a20 = 1; + a5 = 6; + a16 = 7; + }else{ + a23 = 0; + a3 = 0; + a20 = 1; + a9 = 10; + a19 = 1; + a21 = 11; + a5 = 5; + a13 = 0; + a16 = 8; + } + return 26; + } else if((((((((a23==1)&&(a21==11))&&(a9==10))&&!(a8==1))&&!(a20==1))||(a4==1))&&((((a1==12)&&(((!(a4==1)&&(((((a5==5)||(a5==6))&&(input==1))&&(a19==5))&&!(a8==1)))&&(a11==1))&&(a13==1)))&&(a16==7))&&(a17==2)))){ + a6 = 1; + a9 = 7; + a28 = 1; + a16 = 8; + a1 = 14; + a0 = 0; + a21 = 10; + a20 = 1; + a5 = 4; + return 25; + } else if(((((a20==1)&&(((a0==1)||((a19==2)&&((a23==1)&&!(a18==1))))&&!(a18==1)))||!(a12==1))&&(((a16==10)&&(((a9==7)&&(((((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&(a23==1))&&(a17==2))&&(a28==1)))&&(a1==14)))&&(a21==12)))){ + a23 = 1; + a7 = 0; + a27 = 0; + a5 = 5; + a19 = 4; + a16 = 7; + a21 = 10; + return 25; + } else if(((((((a5==5)&&(((!(a4==1)&&(((a21==10)&&(input==3))&&(a20==1)))&&(a16==11))&&(a9==9)))&&!(a4==1))&&(a28==1))&&(a1==13))&&((!(a28==1)||(((a17==2)&&((a23==1)&&(a19==3)))&&(a28==1)))&&!(a0==1)))){ + a9 = 7; + a1 = 12; + a5 = 4; + a16 = 7; + a26 = 0; + a11 = 1; + a19 = 1; + a6 = 1; + return -1; + } else if((((a16==9)&&((!(a7==1)&&((((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))&&(input==4))&&(a17==2))&&!(a26==1)))&&!(a27==1)))&&(((a1==12)&&((a20==1)&&((a21==11)&&((!(a13==1)||(!(a18==1)&&(a12==1)))||(a14==1)))))&&(a19==4)))){ + a5 = 4; + a19 = 1; + a14 = 0; + a21 = 10; + a9 = 7; + a16 = 7; + a13 = 1; + a24 = 0; + return -1; + } else if((((((!(a27==1)&&(((((a1==14)&&((a21==12)&&(((a5==5)||(a5==6))&&(input==5))))&&(a23==1))&&(a17==2))&&(a13==1)))&&(a9==9))&&(a19==4))&&(a16==9))&&(!(a24==1)&&((((a2==1)&&(a13==1))&&(a2==1))&&(a20==1))))){ + a9 = 7; + a21 = 10; + a1 = 12; + a0 = 0; + a16 = 10; + a5 = 5; + a12 = 1; + a19 = 1; + return 21; + } else if(((!(a18==1)&&(((((a3==1)&&(((a16==8)&&((input==5)&&((a5==4)||(a5==5))))&&!(a20==1)))&&(a9==9))&&(a17==2))&&(a21==10)))&&(((a19==2)&&((a8==1)||(((!(a11==1)||(a2==1))||!(a3==1))&&(a11==1))))&&(a1==13)))){ + a3 = 1; + a20 = 1; + a19 = 1; + a9 = 11; + a5 = 6; + a21 = 11; + a14 = 0; + a1 = 14; + return -1; + } else if((((((a19==3)&&(!(a28==1)||(!(a11==1)||(a6==1))))&&(a1==13))&&(a21==10))&&((((a13==1)&&((((a13==1)&&((a23==1)&&((input==4)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))))&&(a16==10))&&(a6==1)))&&(a20==1))&&(a17==2)))){ + a18 = 0; + a16 = 7; + a2 = 1; + a6 = 1; + a1 = 12; + a5 = 4; + a9 = 7; + a19 = 1; + return -1; + } else if((((a8==1)||((a20==1)&&(((a12==1)&&(a17==2))&&(a6==1))))&&(((a1==12)&&((a13==1)&&((a21==11)&&(((a19==5)&&((!(a8==1)&&((a6==1)&&((input==6)&&((a5==4)||(a5==5)))))&&!(a7==1)))&&(a9==11)))))&&(a16==10)))){ + a16 = 7; + a1 = 13; + a4 = 0; + a9 = 10; + a5 = 5; + a21 = 10; + a18 = 0; + a13 = 1; + a19 = 4; + return 25; + } else if(((((a13==1)&&(((a18==1)||(((a17==2)&&((a5==6)&&(a13==1)))&&(a3==1)))&&(a16==9)))||!(a2==1))&&(!(a7==1)&&((a19==5)&&((a21==12)&&((a1==14)&&(((!(a20==1)&&(input==4))&&(a2==1))&&(a9==9)))))))){ + a1 = 12; + a15 = 1; + a16 = 10; + a5 = 5; + a9 = 10; + a25 = 1; + a19 = 3; + return -1; + } else if(((((((((a11==1)&&(!(a24==1)&&((a5==4)&&(a6==1))))||!(a3==1))&&(a16==10))&&(a21==12))&&(a17==2))&&(a9==10))&&((a19==1)&&((!(a14==1)&&(((a20==1)&&((a1==13)&&(input==6)))&&(a23==1)))&&!(a14==1))))){ + a16 = 7; + a1 = 12; + a3 = 1; + a9 = 7; + a8 = 0; + a21 = 10; + return -1; + } else if((((!(a7==1)&&((((a16==7)&&(a2==1))&&(a1==13))&&(a19==2)))||!(a3==1))&&((a13==1)&&(((!(a20==1)&&((!(a27==1)&&((((a5==4)&&(input==1))&&(a9==9))&&(a21==11)))&&!(a24==1)))&&(a17==2))&&!(a14==1))))){ + a9 = 8; + a20 = 1; + a26 = 0; + a18 = 0; + a16 = 10; + a5 = 6; + a19 = 3; + a4 = 0; + a1 = 14; + a21 = 10; + return 21; + } else if(((!(a7==1)&&((a17==2)&&(((a16==9)&&(((a1==12)&&((a19==5)&&(!(a26==1)&&((input==5)&&((a5==6)||((a5==4)||(a5==5)))))))&&(a21==12)))&&(a9==11))))&&(((!(a2==1)||(((a8==1)||(a3==1))&&(a20==1)))||!(a28==1))&&(a2==1)))){ + if((a9==9)){ + a21 = 10; + a1 = 14; + a19 = 4; + a16 = 8; + a14 = 0; + a5 = 4; + a13 = 1; + a2 = 1; + a20 = 0; + a9 = 10; + }else{ + a21 = 11; + a9 = 10; + a5 = 4; + a19 = 2; + a26 = 0; + a27 = 0; + a1 = 14; + a7 = 0; + } + return 21; + } else if(((((a3==1)&&(((((a17==2)&&((input==3)&&(((a9==11)&&((a1==13)&&(a5==6)))||(((a5==4)&&(a1==14))&&(a9==7)))))&&(a12==1))&&!(a26==1))&&!(a8==1)))&&(a20==1))&&((a19==5)&&((!(a14==1)&&((a16==7)&&((a2==1)&&!(a26==1))))&&(a21==12))))){ + a3 = 1; + a28 = 1; + a5 = 5; + a21 = 11; + a16 = 9; + a1 = 14; + a9 = 10; + a18 = 0; + return 25; + } else if((((a4==1)||(((a4==1)||(!(a2==1)||(((a21==11)&&(a11==1))&&(a20==1))))||(a24==1)))&&(!(a4==1)&&(!(a26==1)&&(((a16==10)&&((((input==5)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8))))&&(a17==2))&&(a19==1)))&&(a1==12)))))){ + a21 = 10; + a5 = 5; + a4 = 0; + a16 = 7; + a19 = 4; + a23 = 1; + a9 = 10; + a13 = 1; + return -1; + } else if(((!(a4==1)&&((((a26==1)||(a3==1))&&(a3==1))||!(a13==1)))&&((a16==8)&&(((!(a7==1)&&((a17==2)&&(((a21==12)&&(((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))&&(input==1))&&(a1==14)))&&!(a7==1))))&&(a20==1))&&(a19==5))))){ + a9 = 10; + a21 = 10; + a5 = 4; + a16 = 7; + a24 = 0; + a18 = 0; + a20 = 0; + a3 = 1; + return -1; + } else if((((a2==1)&&((a1==12)&&((a21==12)&&(((a19==1)&&((input==6)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))))&&!(a7==1)))))&&(!(a4==1)&&((a23==1)&&((a12==1)&&((a16==8)&&((a17==2)&&((a20==1)&&((a2==1)&&(a23==1)))))))))){ + a21 = 10; + a14 = 0; + a16 = 7; + a5 = 4; + a9 = 7; + a27 = 0; + return -1; + } else if(((((a9==7)&&(a12==1))&&(a19==5))&&((a17==2)&&((a20==1)&&(!(a4==1)&&((a16==8)&&(!(a18==1)&&((a11==1)&&((a23==1)&&(((a1==12)&&(!(a26==1)&&(!(a7==1)&&((input==1)&&((a5==4)||(a5==5))))))&&(a21==12))))))))))){ + a26 = 0; + a19 = 2; + a12 = 1; + a5 = 4; + a1 = 14; + a9 = 11; + a4 = 0; + return -1; + } else if(((((!(a18==1)&&((a1==12)&&((((a5==4)&&(input==4))&&(a3==1))&&(a21==10))))&&(a17==2))&&(a19==3))&&((((a16==7)&&((a9==9)&&(((a23==1)&&((a11==1)||(a8==1)))&&(a23==1))))||(a18==1))&&!(a20==1)))){ + a8 = 0; + a9 = 7; + a18 = 0; + a19 = 1; + a20 = 1; + return -1; + } else if(((((a16==8)&&((a18==1)||((((!(a24==1)&&(a11==1))&&(a19==5))&&(a1==13))&&!(a20==1))))&&(a21==12))&&((((a17==2)&&((!(a18==1)&&((input==5)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5)))))&&(a12==1)))&&!(a8==1))&&(a6==1)))){ + if((a1==13)){ + a16 = 7; + a5 = 6; + a20 = 1; + a21 = 10; + a6 = 0; + a19 = 1; + a9 = 11; + a15 = 0; + a1 = 12; + a22 = 0; + }else{ + a10 = 0; + a16 = 7; + a1 = 12; + a9 = 10; + a26 = 1; + a20 = 1; + a19 = 4; + a5 = 6; + a18 = 1; + a21 = 11; + } + return -1; + } else if((((a20==1)&&((((a3==1)&&(((((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6))))&&(input==3))&&!(a24==1)))&&!(a4==1))&&(a1==14)))&&(((((a17==2)&&(((a18==1)||((a26==1)||(a12==1)))&&(a19==3)))&&(a12==1))&&(a16==9))&&(a21==10)))){ + a5 = 4; + a9 = 7; + a14 = 0; + a16 = 7; + a23 = 1; + a19 = 1; + a1 = 12; + a24 = 0; + return -1; + } else if((((a3==1)&&((!(a20==1)&&(!(a4==1)&&((!(a26==1)&&(((((a5==4)||(a5==5))&&(input==3))&&!(a8==1))&&(a19==5)))&&(a17==2))))&&(a3==1)))&&((((a21==11)&&(((a11==1)&&(a16==8))&&(a9==7)))&&(a1==13))||(a26==1)))){ + if((a28==1)){ + a19 = 1; + a16 = 7; + a1 = 14; + a9 = 8; + a18 = 1; + a20 = 1; + a21 = 10; + a5 = 4; + a22 = 0; + }else{ + a20 = 1; + a19 = 4; + a15 = 1; + a5 = 6; + a0 = 1; + a1 = 12; + a21 = 10; + a7 = 1; + a16 = 10; + } + return -1; + } else if((((a14==1)||((a12==1)&&(((((a2==1)&&(a21==12))||(a26==1))&&(a16==9))&&(a23==1))))&&((((a17==2)&&(!(a26==1)&&((input==1)&&(((((a1==12)&&(a5==4))&&(a9==7))&&(a19==3))||(((a19==2)&&((a9==11)&&((a1==14)&&(a5==5))))||((((a5==6)&&(a1==14))&&(a9==11))&&(a19==2)))))))&&(a20==1))&&!(a27==1)))){ + a19 = 5; + a9 = 11; + a3 = 1; + a5 = 6; + a4 = 0; + a16 = 8; + a1 = 12; + a21 = 10; + a20 = 0; + return 25; + } else if(((((a13==1)&&(((a20==1)&&((a1==14)&&((a9==10)&&(a23==1))))&&!(a24==1)))||(a14==1))&&((a16==8)&&(((a17==2)&&(((!(a26==1)&&((a6==1)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a19==2))&&(a28==1)))&&(a21==12))))){ + a12 = 1; + a19 = 1; + a5 = 4; + a2 = 1; + a9 = 11; + a27 = 0; + a16 = 10; + return 25; + } else if((((a17==2)&&(!(a20==1)&&(((a19==3)&&(!(a6==1)||(((a1==14)&&(a28==1))||(a18==1))))&&!(a26==1))))&&((a21==11)&&(((a16==8)&&((!(a0==1)&&((input==3)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))))&&!(a0==1)))&&!(a18==1))))){ + a28 = 1; + a2 = 1; + a9 = 10; + a16 = 7; + a5 = 4; + a20 = 1; + a21 = 10; + a1 = 13; + a0 = 0; + a19 = 2; + return 21; + } else if((((!(a4==1)&&(!(a27==1)&&(((a21==10)&&(((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==1))||(((a9==7)&&((a1==12)&&(a5==4)))&&(a19==2)))&&(input==6)))&&(a17==2))))&&(a11==1))&&(((!(a0==1)&&((a20==1)&&((a16==8)&&(a3==1))))||!(a11==1))&&(a3==1)))){ + a5 = 6; + a21 = 12; + a11 = 1; + a2 = 1; + a9 = 11; + a16 = 9; + a14 = 0; + a19 = 3; + a1 = 12; + return 22; + } else if((((a17==2)&&(!(a2==1)||(((a19==1)&&(a11==1))&&!(a14==1))))&&((((((((a21==11)&&((a5==6)&&(((input==3)&&!(a20==1))&&(a1==14))))&&(a28==1))&&(a3==1))&&!(a7==1))&&!(a7==1))&&(a9==7))&&(a16==7)))){ + a14 = 0; + a21 = 10; + a5 = 4; + a1 = 12; + a0 = 0; + a11 = 1; + a20 = 1; + return -1; + } else if(((((a18==1)||((a28==1)||(a26==1)))&&(a20==1))&&((a21==11)&&((((!(a8==1)&&(((((((a17==2)&&(input==6))&&(a6==1))&&(a16==7))&&(a9==7))&&(a5==5))&&(a19==5)))&&!(a26==1))&&(a6==1))&&(a1==14))))){ + a21 = 12; + a9 = 9; + a19 = 3; + a1 = 12; + a16 = 8; + a13 = 1; + a7 = 0; + return 22; + } else if((((!(a18==1)&&((a9==11)&&((((((input==4)&&(a16==7))&&(a23==1))&&(a20==1))&&(a21==10))&&(a19==5))))&&!(a26==1))&&(((a3==1)&&((a17==2)&&(!(a14==1)&&((a1==13)&&((a5==4)&&(a23==1))))))||(a7==1)))){ + a21 = 12; + a27 = 0; + a9 = 10; + a1 = 14; + a19 = 3; + a6 = 1; + a3 = 1; + return 25; + } else if((((((((a8==1)&&(!(a11==1)&&((input==1)&&(a9==10))))&&(a21==11))&&!(a13==1))&&!(a2==1))&&(a17==2))&&((a5==6)&&((a20==1)&&(((a19==4)&&((a1==12)&&(!(a2==1)&&((a24==1)&&(a28==1)))))&&(a16==9)))))){ + a21 = 10; + a9 = 7; + a1 = 13; + a10 = 1; + a13 = 0; + a16 = 7; + a27 = 1; + a19 = 1; + return -1; + } else if((((a1==13)&&((((a19==2)&&(((a12==1)&&(a5==6))&&(a21==10)))&&(a23==1))&&(a17==2)))&&(((a6==1)&&((a3==1)&&((a16==7)&&(((a9==7)&&(!(a27==1)&&((a20==1)&&(input==1))))&&!(a27==1)))))&&(a11==1)))){ + a13 = 1; + a5 = 4; + a8 = 0; + a7 = 0; + a9 = 10; + return 21; + } else if(((!(a23==1)&&((a19==4)&&((a1==13)&&(((!(a23==1)&&((a27==1)&&(a6==1)))&&(a20==1))&&(a16==7)))))&&((a8==1)&&((a27==1)&&((a21==11)&&((a4==1)&&((a17==2)&&((input==5)&&(((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))))))))){ + a26 = 1; + a11 = 0; + a21 = 10; + a5 = 4; + a1 = 12; + a9 = 7; + a14 = 1; + a19 = 1; + return 25; + } else if((((((a7==1)||((a1==13)&&((a17==2)&&(a12==1))))||!(a12==1))&&(a9==10))&&(!(a0==1)&&((!(a18==1)&&((a5==6)&&((!(a20==1)&&(((a16==10)&&((input==4)&&(a21==12)))&&!(a24==1)))&&(a13==1))))&&(a19==5))))){ + a24 = 1; + a9 = 7; + a21 = 10; + a0 = 1; + a11 = 0; + a1 = 14; + a19 = 1; + a16 = 11; + return -1; + } else if(((((((((a20==1)&&(input==6))&&(a11==1))&&(a21==12))&&(a17==2))&&!(a18==1))&&(a16==9))&&(((a3==1)&&(((a1==12)&&((((a19==2)&&((a5==5)&&(a23==1)))&&(a23==1))&&!(a27==1)))&&(a9==7)))&&!(a4==1)))){ + a16 = 7; + a0 = 0; + a27 = 0; + a21 = 10; + a1 = 13; + a9 = 10; + a28 = 1; + return -1; + } else if(((((a20==1)&&((a1==13)&&((a21==10)&&((!(a8==1)&&(!(a14==1)&&((a28==1)&&(((input==6)&&((a5==5)||(a5==6)))&&!(a14==1)))))&&!(a26==1)))))&&(a17==2))&&((!(a28==1)||((a19==1)&&((a12==1)&&(a9==9))))&&(a16==8)))){ + a23 = 1; + a5 = 4; + a9 = 7; + a1 = 12; + a11 = 1; + a2 = 1; + a16 = 7; + return -1; + } else if((((a23==1)&&(((a3==1)&&(!(a14==1)&&((a20==1)&&((((((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6))))&&(input==1))&&(a21==11))&&!(a8==1)))))&&!(a26==1)))&&(((((a16==7)&&((a3==1)&&(a19==5)))&&(a17==2))&&(a1==14))||(a24==1)))){ + a9 = 7; + a1 = 12; + a19 = 1; + a14 = 0; + a28 = 1; + a21 = 10; + a5 = 4; + return -1; + } else if(((((a17==2)&&(((a2==1)&&(((((input==5)&&((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9))))&&!(a7==1))&&(a28==1))&&!(a18==1)))&&(a20==1)))&&(a21==10))&&((((((a11==1)&&(a11==1))&&!(a18==1))&&(a19==3))&&(a16==8))&&(a1==14)))){ + a21 = 12; + a9 = 11; + a4 = 0; + a16 = 9; + a2 = 1; + a1 = 13; + a19 = 5; + a7 = 0; + a5 = 5; + return 21; + } else if((((a8==1)||((a17==2)&&((a18==1)||(((a19==3)&&((a12==1)||!(a6==1)))&&(a1==13)))))&&((!(a20==1)&&((((a21==10)&&(((input==6)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(a16==7)))&&(a6==1))&&!(a24==1)))&&(a23==1)))){ + a19 = 1; + a9 = 7; + a20 = 1; + a1 = 12; + a14 = 0; + a5 = 4; + a28 = 1; + return -1; + } else if(((((a16==8)&&((a17==2)&&((a20==1)&&((a3==1)&&((a2==1)&&((a9==10)&&(input==4)))))))&&(a5==6))&&(((a19==5)&&((a11==1)&&((((a1==13)&&((a12==1)&&(a13==1)))&&(a6==1))&&(a21==12))))&&(a12==1)))){ + a3 = 1; + a1 = 12; + a0 = 0; + a2 = 1; + a16 = 10; + a9 = 11; + a5 = 4; + return 21; + } else if((((a16==7)&&((!(a20==1)&&((a2==1)&&((a21==12)&&(!(a24==1)&&(!(a26==1)&&((input==4)&&(a17==2)))))))&&(a11==1)))&&(((a9==7)&&(((((a2==1)&&(a1==12))&&(a5==6))||(a18==1))&&!(a4==1)))&&(a19==1)))){ + a23 = 1; + a5 = 5; + a24 = 0; + a21 = 10; + a16 = 10; + a20 = 1; + a11 = 1; + a1 = 14; + a9 = 11; + return 22; + } else if(((((a28==1)&&(((a1==13)&&((((a20==1)&&(!(a8==1)&&(a6==1)))&&!(a14==1))&&!(a24==1)))&&(a16==7)))&&(a17==2))&&((a13==1)&&((a3==1)&&(((a9==7)&&((((a5==5)||(a5==6))&&(input==4))&&(a19==5)))&&(a21==12)))))){ + a19 = 1; + a28 = 1; + a5 = 4; + a1 = 12; + a11 = 1; + a21 = 10; + a0 = 0; + return -1; + } else if((((((a17==2)&&((a19==3)&&(a12==1)))||(a14==1))&&!(a4==1))&&((a12==1)&&(!(a24==1)&&(((((a16==7)&&((((a13==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3)))&&(a1==12))&&(a9==11)))&&(a21==10))&&(a2==1))&&(a20==1)))))){ + a19 = 1; + a9 = 7; + a5 = 4; + a13 = 1; + a18 = 0; + a0 = 0; + return -1; + } else if((((a28==1)&&((((a20==1)&&((a9==8)&&(((input==5)&&((a5==5)||(a5==6)))&&!(a8==1))))&&(a1==13))&&(a3==1)))&&((((((((a28==1)||!(a23==1))&&(a21==11))&&!(a18==1))&&(a16==8))&&(a19==2))&&(a17==2))&&(a11==1)))){ + a21 = 12; + a5 = 6; + a3 = 1; + a1 = 14; + a27 = 0; + a19 = 1; + a23 = 1; + return 21; + } else if((((a17==2)&&((a16==11)&&(((a18==1)||((((a28==1)&&(a3==1))&&(a5==6))&&(a21==12)))&&(a9==9))))&&((((a11==1)&&(!(a0==1)&&(!(a4==1)&&((a20==1)&&((a19==1)&&(input==5))))))&&(a1==12))&&(a28==1)))){ + a7 = 0; + a16 = 7; + a3 = 1; + a21 = 10; + a18 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if(((!(a20==1)&&((a17==2)&&((((!(a26==1)&&((a1==13)&&((a16==8)&&((a3==1)&&(((a21==11)&&((input==4)&&((a5==4)||(a5==5))))&&!(a26==1))))))&&(a12==1))&&(a9==8))&&(a19==3))))&&(((a13==1)&&(a23==1))&&(a2==1)))){ + a8 = 0; + a19 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + a21 = 10; + a0 = 0; + a14 = 0; + a1 = 12; + a20 = 1; + return -1; + } else if(((!(a20==1)&&((a17==2)&&(((((a2==1)&&((a18==1)||(a13==1)))&&(a19==4))&&(a2==1))&&(a21==10))))&&((a16==9)&&(!(a8==1)&&(((a6==1)&&(((input==5)&&(((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))))&&!(a4==1)))&&(a1==14)))))){ + a12 = 0; + a1 = 13; + a9 = 8; + a20 = 1; + a3 = 0; + a7 = 1; + a5 = 5; + a16 = 7; + a19 = 1; + return -1; + } else if((((a9==10)&&((a19==3)&&(((!(a24==1)&&(((input==4)&&((a5==4)||(a5==5)))&&(a2==1)))&&(a21==12))&&(a17==2))))&&((!(a3==1)||((a16==11)&&((!(a8==1)&&((a20==1)&&((a28==1)&&(a23==1))))&&(a1==14))))||(a14==1)))){ + a18 = 0; + a1 = 12; + a16 = 7; + a19 = 1; + a7 = 0; + a14 = 0; + a9 = 7; + a21 = 10; + a5 = 4; + return -1; + } else if((((a1==12)&&((a5==5)&&(((((((input==1)&&(a9==7))&&!(a0==1))&&!(a18==1))&&(a23==1))&&!(a4==1))&&(a21==12))))&&((((((a26==1)||((a6==1)&&(a17==2)))&&(a16==10))&&!(a20==1))&&(a12==1))&&(a19==5)))){ + a20 = 1; + a25 = 1; + a11 = 0; + a16 = 7; + a21 = 10; + a4 = 1; + a19 = 2; + return 21; + } else if((((a6==1)&&(((a17==2)&&((!(a12==1)||((a12==1)&&!(a20==1)))&&(a28==1)))||(a26==1)))&&(!(a4==1)&&(((a16==11)&&(((((a19==2)&&((a9==11)&&((a5==6)&&(a1==14))))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==3)))&&(input==6))&&!(a14==1)))&&(a21==10))))){ + if((a28==1)){ + a20 = 1; + a5 = 5; + a16 = 7; + a1 = 12; + a9 = 7; + a10 = 0; + a15 = 1; + a19 = 1; + }else{ + a19 = 1; + a20 = 1; + a29 = 0; + a1 = 14; + a5 = 4; + a16 = 7; + a22 = 0; + a15 = 1; + a9 = 10; + } + return -1; + } else if(((((a17==2)&&((a21==11)&&(((((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a6==1))&&!(a4==1))&&(a1==14))))&&(a28==1))&&(!(a26==1)&&((a3==1)&&(((a9==8)&&((((a12==1)&&(a20==1))&&(a16==9))&&(a12==1)))&&(a19==4)))))){ + a5 = 4; + a1 = 12; + a21 = 10; + a3 = 1; + a27 = 0; + a9 = 7; + a16 = 7; + a6 = 1; + a19 = 1; + return -1; + } else if((((((a21==11)&&(!(a0==1)&&(!(a4==1)&&((!(a7==1)&&((input==1)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))))&&!(a27==1)))))&&(a17==2))&&(a1==12))&&((!(a28==1)||((a26==1)||((a20==1)&&((a12==1)&&(a16==11)))))&&(a19==1)))){ + a21 = 10; + a24 = 0; + a5 = 4; + a16 = 7; + a12 = 1; + a9 = 7; + a27 = 0; + return -1; + } else if((((a23==1)&&(!(a24==1)&&(((a3==1)&&((a9==8)&&(!(a24==1)&&((((a19==1)&&((input==5)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a20==1))&&(a21==11)))))&&(a16==8))))&&(((!(a23==1)||((a6==1)&&(a1==14)))&&(a17==2))||!(a6==1)))){ + a9 = 7; + a5 = 4; + a21 = 10; + a20 = 1; + a28 = 1; + a7 = 0; + a1 = 12; + a16 = 7; + return -1; + } else if(((((a9==10)&&((a24==1)||(((((a16==9)&&((((a6==1)&&!(a20==1))&&(a21==12))&&(a1==14)))&&(a11==1))||!(a11==1))||(a7==1))))&&(a17==2))&&((!(a27==1)&&((a5==6)&&((input==6)&&(a19==3))))&&!(a7==1)))){ + a19 = 2; + a27 = 1; + a9 = 9; + a18 = 1; + a14 = 1; + a21 = 11; + a16 = 8; + a1 = 12; + return -1; + } else if((((a19==1)&&((a1==12)&&(!(a8==1)&&((a17==2)&&(((a23==1)&&((input==6)&&((a5==4)||(a5==5))))&&(a28==1))))))&&((a9==11)&&((!(a24==1)&&((!(a2==1)||(!(a20==1)&&((a28==1)&&(a16==9))))||!(a6==1)))&&(a21==11))))){ + a20 = 1; + a0 = 1; + a9 = 9; + a16 = 7; + a15 = 0; + a1 = 14; + a5 = 5; + a21 = 10; + a2 = 0; + return -1; + } else if((((!(a20==1)&&((((!(a14==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1)))&&!(a7==1))&&(a16==11))&&(a28==1)))&&(a9==9))&&((a17==2)&&((((a1==14)&&(!(a11==1)||((!(a12==1)||(a13==1))||(a0==1))))&&(a21==10))&&(a19==3))))){ + if((a20==1)){ + a9 = 7; + a26 = 1; + a19 = 5; + a15 = 0; + a5 = 5; + a16 = 8; + }else{ + a1 = 12; + a16 = 7; + a4 = 1; + a19 = 2; + a5 = 6; + a13 = 0; + a20 = 1; + a9 = 11; + a14 = 1; + } + return 25; + } else if((((!(a11==1)||((!(a20==1)&&((a19==1)&&((a1==12)&&(a12==1))))&&(a3==1)))&&(a23==1))&&((((a3==1)&&(((a21==10)&&((((a16==11)&&(input==1))&&(a11==1))&&(a5==6)))&&(a28==1)))&&(a9==8))&&(a17==2)))){ + if((a2==1)){ + a5 = 5; + a20 = 1; + a10 = 0; + a1 = 14; + a3 = 0; + a9 = 7; + a11 = 0; + a16 = 7; + }else{ + a21 = 11; + a15 = 1; + a20 = 1; + a19 = 5; + a6 = 0; + a25 = 0; + } + return -1; + } else if(((((((a23==1)&&(((a12==1)&&((a11==1)&&(a12==1)))&&(a19==1)))&&(a17==2))&&(a1==13))&&(a16==7))&&((a21==12)&&(((a20==1)&&((!(a8==1)&&((a3==1)&&((input==1)&&((a5==5)||(a5==6)))))&&(a12==1)))&&(a9==8))))){ + a19 = 5; + a1 = 14; + a5 = 6; + a11 = 1; + a28 = 1; + a2 = 1; + a9 = 7; + a16 = 8; + return 25; + } else if((((a11==1)&&((a26==1)||((a24==1)||((!(a20==1)&&(((a3==1)&&(a1==14))&&(a9==8)))&&(a16==7)))))&&(!(a14==1)&&((a11==1)&&(((a21==11)&&(((a19==3)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))&&(a17==2)))&&!(a18==1)))))){ + a1 = 12; + a19 = 1; + a28 = 1; + a9 = 7; + a5 = 4; + a20 = 1; + a21 = 10; + a0 = 0; + return -1; + } else if(((!(a20==1)&&((!(a8==1)&&((a17==2)&&(!(a7==1)&&((a21==11)&&(a6==1)))))||!(a13==1)))&&(!(a0==1)&&(((((a16==7)&&((((a9==10)&&(input==6))&&(a12==1))&&(a1==14)))&&(a5==4))&&!(a0==1))&&(a19==2))))){ + a23 = 1; + a1 = 12; + a9 = 7; + a20 = 1; + a21 = 10; + a4 = 0; + a19 = 1; + a11 = 1; + return -1; + } else if((((a19==4)&&(((a9==10)&&((a6==1)&&(((!(a3==1)||((a2==1)||!(a11==1)))&&(a1==14))&&(a21==12))))&&(a20==1)))&&((a16==9)&&(!(a27==1)&&((!(a7==1)&&(((input==3)&&(a5==4))&&(a2==1)))&&(a17==2)))))){ + a16 = 7; + a7 = 0; + a1 = 12; + a13 = 1; + a9 = 7; + a21 = 10; + a19 = 1; + return -1; + } else if(((((a11==1)&&((((((input==5)&&(a9==11))&&(a21==12))&&(a16==10))&&(a2==1))&&(a13==1)))&&(a1==14))&&((((((((a5==5)&&(a2==1))&&(a17==2))&&!(a20==1))&&!(a26==1))&&!(a24==1))||!(a28==1))&&(a19==5)))){ + a19 = 2; + a0 = 1; + a21 = 10; + a5 = 6; + a20 = 1; + a11 = 0; + a1 = 12; + a16 = 7; + a29 = 1; + return -1; + } else if(((((((a18==1)||(((a13==1)&&!(a20==1))||!(a11==1)))||!(a2==1))&&(a21==12))&&(a19==3))&&((((a9==10)&&(((a28==1)&&((a12==1)&&((((a5==4)||(a5==5))&&(input==4))&&(a16==9))))&&(a1==14)))&&!(a8==1))&&(a17==2)))){ + if((a26==1)){ + a28 = 0; + a20 = 1; + a3 = 0; + a25 = 0; + a9 = 8; + a19 = 5; + a5 = 4; + a21 = 11; + }else{ + a5 = 5; + a1 = 12; + a11 = 0; + a28 = 0; + a19 = 1; + a27 = 1; + a20 = 1; + a16 = 7; + a21 = 10; + a9 = 11; + } + return 23; + } else if(((!(a4==1)&&(((a1==12)&&(((a2==1)&&!(a20==1))&&(a17==2)))||!(a12==1)))&&((((a5==6)&&(!(a24==1)&&((!(a24==1)&&((a9==8)&&(((input==6)&&(a16==11))&&(a6==1))))&&(a21==10))))&&(a19==1))&&(a12==1)))){ + a16 = 7; + a20 = 1; + a1 = 13; + a27 = 1; + a23 = 0; + a29 = 1; + return 23; + } else if((((a16==8)&&((a9==10)&&(!(a26==1)&&((!(a7==1)&&((((a19==1)&&((a5==5)&&(input==4)))&&!(a4==1))&&!(a8==1)))&&(a2==1)))))&&((a1==13)&&((a20==1)&&((((a3==1)&&(a17==2))&&(a21==12))&&!(a14==1)))))){ + a21 = 11; + a7 = 0; + a19 = 5; + a12 = 1; + a5 = 6; + a16 = 10; + a26 = 0; + a1 = 12; + a9 = 11; + return 21; + } else if((((a16==10)&&(!(a11==1)||(((a7==1)||((((a28==1)&&!(a20==1))&&(a21==10))&&(a5==4)))&&(a9==11))))&&(((((!(a24==1)&&(((a1==13)&&(input==6))&&(a3==1)))&&(a19==2))&&(a11==1))&&(a3==1))&&(a17==2)))){ + a16 = 7; + a19 = 1; + a5 = 5; + a25 = 0; + a9 = 8; + a8 = 1; + a15 = 1; + a1 = 12; + a20 = 1; + return 22; + } else if((((a9==7)&&(((a21==10)&&(!(a7==1)&&(!(a0==1)&&(((a5==4)||(a5==5))&&(input==1)))))&&!(a14==1)))&&(((a3==1)&&((a19==5)&&((a14==1)||((a16==11)&&(((a11==1)&&((a3==1)&&(a1==13)))&&(a17==2))))))&&(a20==1)))){ + a7 = 0; + a1 = 12; + a5 = 4; + a19 = 1; + a13 = 1; + a16 = 7; + a23 = 1; + return -1; + } else if((((a20==1)&&(!(a18==1)&&(!(a3==1)||((a12==1)&&((a21==12)&&(a2==1))))))&&((a19==5)&&((a9==9)&&((!(a18==1)&&(((((a17==2)&&((a16==9)&&(input==4)))&&(a5==6))&&!(a8==1))&&(a1==13)))&&!(a8==1)))))){ + a5 = 4; + a1 = 12; + a9 = 7; + a19 = 1; + a3 = 1; + a7 = 0; + a6 = 1; + a21 = 10; + a16 = 7; + return -1; + } else if(((((((((a7==1)||((a3==1)&&(!(a27==1)&&(a6==1))))||!(a11==1))&&(a17==2))&&(a20==1))&&(a21==12))&&(a16==11))&&((a19==3)&&((a1==12)&&((a5==6)&&(!(a26==1)&&(((input==6)&&(a9==9))&&(a23==1)))))))){ + if((a8==1)){ + a16 = 7; + a20 = 0; + a1 = 14; + a5 = 4; + a9 = 10; + a19 = 4; + a18 = 0; + a13 = 1; + }else{ + a21 = 10; + a2 = 1; + a9 = 10; + a28 = 1; + a5 = 5; + a1 = 13; + a19 = 2; + a16 = 9; + a27 = 0; + } + return 25; + } else if(((((a21==11)&&((((a19==5)&&((a9==8)&&((a5==4)&&(input==1))))&&(a20==1))&&!(a0==1)))&&!(a8==1))&&((a1==12)&&(!(a3==1)||(!(a3==1)||((a17==2)&&((a2==1)&&((a12==1)&&((a16==7)&&(a2==1)))))))))){ + a27 = 0; + a19 = 1; + a1 = 14; + a5 = 5; + a9 = 7; + a2 = 1; + a20 = 0; + a13 = 1; + return 25; + } else if(((((((((a3==1)&&((a1==13)&&(((a16==9)&&(input==5))&&(a9==9))))&&(a17==2))&&(a28==1))&&(a5==4))&&(a19==3))&&(a2==1))&&((!(a7==1)&&(((a20==1)&&((a7==1)||(a3==1)))&&(a21==12)))&&!(a18==1)))){ + a28 = 1; + a1 = 12; + a21 = 11; + a9 = 11; + a19 = 5; + a3 = 1; + a27 = 0; + return 21; + } else if((((a12==1)&&((a2==1)&&(!(a14==1)&&((a17==2)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6)))))))&&((a1==12)&&(!(a20==1)&&((a16==7)&&((a9==7)&&((a12==1)&&((a21==12)&&((a12==1)&&((a19==3)&&((a11==1)&&!(a27==1)))))))))))){ + a20 = 1; + a21 = 10; + a23 = 1; + a19 = 1; + a5 = 4; + a11 = 1; + a4 = 0; + return -1; + } else if((((!(a4==1)&&((((a6==1)&&((a20==1)&&(input==5)))&&(a9==7))&&(a5==5)))&&(a19==4))&&((((!(a26==1)&&(((((a23==1)&&!(a4==1))&&(a28==1))&&(a13==1))&&(a16==8)))&&(a1==13))&&(a17==2))&&(a21==12)))){ + a9 = 9; + a18 = 0; + a21 = 10; + a14 = 0; + a16 = 7; + a4 = 0; + a19 = 2; + return 25; + } else if((((a9==7)&&(((!(a20==1)&&(!(a0==1)&&((((((input==5)&&((a5==5)||(a5==6)))&&(a28==1))&&(a16==10))&&!(a26==1))&&(a17==2))))&&(a19==4))&&(a21==11)))&&((a1==14)&&(!(a3==1)||((a4==1)||(!(a23==1)||(a2==1))))))){ + if((a3==1)){ + a5 = 4; + a9 = 9; + a22 = 0; + a19 = 3; + a16 = 8; + a13 = 0; + a8 = 1; + a1 = 12; + }else{ + a25 = 0; + a8 = 1; + a5 = 4; + a21 = 10; + a20 = 1; + a16 = 7; + a23 = 0; + a19 = 1; + a1 = 13; + a9 = 9; + } + return 25; + } else if((((((a21==12)&&((a20==1)&&((((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))&&(input==1))&&(a1==12))))&&(a12==1))&&!(a7==1))&&(((a18==1)||((a16==7)&&((a19==1)&&((a17==2)&&(!(a11==1)||((a28==1)||(a14==1)))))))&&(a6==1)))){ + a20 = 0; + a6 = 1; + a19 = 3; + a21 = 11; + a5 = 4; + a16 = 8; + a9 = 7; + a14 = 0; + return 22; + } else if((((a19==1)&&((((a16==7)&&((a20==1)&&((a17==2)&&(!(a14==1)&&((!(a0==1)&&(((input==5)&&((a5==5)||(a5==6)))&&!(a7==1)))&&(a23==1))))))&&(a13==1))&&(a1==13)))&&((a9==8)&&(((a21==12)&&(a11==1))||!(a11==1))))){ + a16 = 8; + a1 = 14; + a2 = 1; + a19 = 5; + a24 = 0; + a5 = 5; + return 22; + } else if((((a21==10)&&((a17==2)&&(((a7==1)||((a24==1)||(!(a13==1)||((a12==1)&&(a28==1)))))&&!(a0==1))))&&((a19==5)&&(((a1==14)&&(((a20==1)&&(((input==6)&&(a16==11))&&(a5==6)))&&(a9==7)))&&(a12==1))))){ + a5 = 4; + a12 = 1; + a16 = 7; + a19 = 1; + a1 = 12; + a0 = 0; + a26 = 0; + return -1; + } else if(((((((!(a20==1)&&((input==4)&&(((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))))&&!(a24==1))&&(a1==14))&&(a17==2))&&(a19==1))&&((a21==11)&&(((a0==1)||(((a8==1)||((a16==10)&&(!(a6==1)||(a23==1))))&&!(a7==1)))||(a7==1))))){ + a10 = 0; + a3 = 0; + a16 = 7; + a23 = 0; + a5 = 4; + a20 = 1; + a9 = 9; + a21 = 10; + return 23; + } else if(((((a17==2)&&((a13==1)&&((a21==12)&&((input==1)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))))))&&!(a24==1))&&((((a20==1)&&((a8==1)||((a19==2)&&(((a1==12)&&((a16==9)&&(a13==1)))&&(a23==1)))))||!(a12==1))||!(a28==1)))){ + a9 = 7; + a19 = 1; + a21 = 10; + a13 = 1; + a23 = 1; + a5 = 4; + a16 = 7; + a3 = 1; + return -1; + } else if(((!(a7==1)&&((((a16==10)&&(((((((a1==13)&&(a5==5))&&(a9==11))||((a9==11)&&((a1==13)&&(a5==6))))||(((a5==4)&&(a1==14))&&(a9==7)))&&(input==5))&&(a28==1)))&&!(a0==1))&&(a21==12)))&&((((a4==1)||((a17==2)&&(((a12==1)&&(a11==1))&&!(a20==1))))&&(a19==1))||(a27==1)))){ + a29 = 1; + a3 = 0; + a1 = 13; + a19 = 5; + a9 = 9; + a16 = 9; + a5 = 6; + a20 = 1; + a6 = 0; + return 21; + } else if(((!(a14==1)&&(!(a4==1)&&(!(a7==1)&&((a1==14)&&((a16==8)&&((!(a20==1)&&(a11==1))||(a26==1)))))))&&(!(a18==1)&&((a12==1)&&((((((input==1)&&((a5==4)||(a5==5)))&&(a21==11))&&(a9==11))&&(a19==2))&&(a17==2)))))){ + a19 = 1; + a21 = 10; + a9 = 7; + a8 = 0; + a16 = 7; + a20 = 1; + a5 = 4; + a28 = 1; + a1 = 12; + a27 = 0; + return -1; + } else if(((!(a20==1)&&((a21==10)&&((!(a14==1)&&(((a9==9)&&((a17==2)&&(a13==1)))||!(a13==1)))&&(a3==1))))&&((a1==12)&&((a16==10)&&((a2==1)&&((a19==5)&&((((input==6)&&((a5==4)||(a5==5)))&&!(a7==1))&&(a28==1)))))))){ + a19 = 2; + a25 = 0; + a2 = 0; + a9 = 11; + a20 = 1; + a22 = 1; + a16 = 7; + a5 = 5; + return -1; + } else if(((((a17==2)&&(!(a20==1)&&((((((a21==10)&&((a1==13)&&(input==3)))&&!(a14==1))&&(a11==1))&&(a9==9))&&(a3==1))))&&(a19==4))&&(!(a8==1)&&((a5==6)&&((!(a6==1)||((a8==1)||(a6==1)))&&(a16==11)))))){ + a21 = 11; + a9 = 7; + a25 = 1; + a5 = 5; + a19 = 5; + a24 = 1; + a29 = 0; + a20 = 1; + return -1; + } else if(((!(a27==1)&&((((a1==12)&&((a19==3)&&(!(a23==1)||((a9==10)&&((a16==7)&&((a28==1)&&(a12==1)))))))&&(a20==1))||(a0==1)))&&(!(a0==1)&&((!(a4==1)&&((a21==12)&&(((a5==4)||(a5==5))&&(input==3))))&&(a17==2))))){ + a28 = 1; + a27 = 0; + a21 = 10; + a18 = 0; + a19 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if(((((a16==10)&&((a1==14)&&((((a21==12)&&(a28==1))||!(a28==1))&&!(a7==1))))&&(a19==2))&&(!(a8==1)&&(((a9==8)&&(((!(a20==1)&&((a17==2)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6))))&&!(a8==1))&&!(a18==1)))&&(a28==1))))){ + a21 = 10; + a22 = 0; + a26 = 1; + a5 = 5; + a1 = 13; + a19 = 4; + a20 = 1; + a16 = 11; + a15 = 0; + a9 = 11; + return 21; + } else if(((((a6==1)&&(((((input==5)&&(a9==10))&&(a21==11))&&(a19==1))&&(a16==11)))&&(a20==1))&&((((a1==12)&&(((a17==2)&&((a5==6)&&(((a28==1)||!(a6==1))&&(a3==1))))&&!(a24==1)))||!(a6==1))&&(a6==1)))){ + a21 = 10; + a12 = 1; + a5 = 4; + a23 = 1; + a7 = 0; + a9 = 7; + a16 = 7; + return -1; + } else if((((a17==2)&&((a1==13)&&((a12==1)&&(!(a4==1)&&(((a19==3)&&(((a5==5)||(a5==6))&&(input==3)))&&!(a14==1))))))&&(((a16==8)&&((a9==8)&&((a2==1)&&(!(a14==1)&&(((a12==1)&&(a3==1))&&(a20==1))))))&&(a21==11)))){ + a21 = 10; + a3 = 1; + a1 = 12; + a9 = 7; + a19 = 1; + a13 = 1; + a16 = 7; + a5 = 4; + a26 = 0; + return -1; + } else if(((((a8==1)||((a6==1)||(a14==1)))&&(a1==14))&&(((a17==2)&&((((((!(a20==1)&&(((input==6)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8))))&&!(a26==1)))&&(a13==1))&&(a21==11))&&(a16==8))&&!(a26==1))&&(a19==3)))&&!(a26==1)))){ + a5 = 4; + a20 = 1; + a28 = 1; + a21 = 10; + a1 = 12; + a12 = 1; + a26 = 0; + a19 = 1; + a9 = 7; + a16 = 7; + return -1; + } else if(((((a11==1)&&(((a23==1)&&((a19==4)&&((a17==2)&&((input==1)&&(((a9==11)&&((a1==12)&&(a5==6)))||((a9==7)&&((a5==4)&&(a1==13))))))))&&!(a14==1)))&&(a28==1))&&((!(a14==1)&&((a21==10)&&((a20==1)&&((a23==1)&&(a16==11)))))||(a14==1)))){ + a2 = 1; + a5 = 6; + a9 = 10; + a21 = 11; + a0 = 0; + a1 = 14; + a19 = 3; + return 21; + } else if((((a17==2)&&((a1==13)&&((a0==1)||((a3==1)&&(a6==1)))))&&((a28==1)&&((a19==5)&&((a20==1)&&((a16==8)&&((a9==10)&&((a21==11)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&!(a27==1))&&!(a4==1))&&(a2==1)))))))))){ + a23 = 1; + a19 = 1; + a21 = 10; + a8 = 0; + a1 = 12; + a9 = 7; + a5 = 4; + a16 = 7; + return -1; + } else if(((!(a0==1)&&((a16==9)&&(((a17==2)&&((!(a24==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3)))&&(a19==3)))&&(a1==12))))&&(((((a9==11)&&(((a6==1)&&((a20==1)&&(a3==1)))||!(a2==1)))&&(a12==1))&&(a21==11))||(a14==1)))){ + a9 = 7; + a19 = 1; + a5 = 4; + a2 = 1; + a21 = 10; + a16 = 7; + a0 = 0; + a4 = 0; + return -1; + } else if((((!(a24==1)&&((((a16==8)&&(((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5)))&&(input==5)))&&!(a18==1))&&!(a8==1)))&&(a1==13))&&((a21==12)&&((a17==2)&&(((!(a20==1)&&((a19==3)&&((a8==1)||(a13==1))))||(a0==1))&&!(a24==1)))))){ + if((a19==2)){ + a5 = 5; + a19 = 2; + a6 = 0; + a21 = 10; + a16 = 7; + a28 = 0; + a3 = 0; + a9 = 7; + a1 = 12; + a20 = 1; + }else{ + a28 = 0; + a12 = 0; + a9 = 7; + a5 = 5; + a1 = 12; + a21 = 10; + a16 = 7; + a19 = 1; + a2 = 0; + a20 = 1; + } + return -1; + } else if(((((((a16==10)&&(((((a17==2)&&((a3==1)||!(a3==1)))&&(a1==12))||(a26==1))||!(a23==1)))&&(a11==1))&&(a21==10))&&(a19==3))&&(((!(a4==1)&&(!(a18==1)&&((input==4)&&(a9==9))))&&!(a20==1))&&(a5==5)))){ + if((a13==1)){ + a27 = 1; + a28 = 0; + a16 = 8; + a20 = 1; + a11 = 0; + }else{ + a2 = 0; + a16 = 7; + a20 = 1; + a0 = 1; + a9 = 8; + a19 = 1; + a1 = 14; + } + return 25; + } else if((((a16==10)&&((((a1==13)&&(((((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a21==11))&&(a17==2))&&!(a18==1))&&(a3==1)))&&!(a20==1))&&(a28==1)))&&(((a9==7)&&(!(a3==1)||(((a23==1)||(a8==1))&&!(a14==1))))&&(a19==5)))){ + a25 = 1; + a0 = 1; + a1 = 14; + a5 = 4; + a29 = 1; + a9 = 9; + a21 = 12; + a19 = 4; + return 25; + } else if(((!(a26==1)&&((((a16==10)&&((((a1==14)&&((((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(input==5)))&&(a19==4))&&(a12==1)))&&(a20==1))&&(a17==2)))&&((a8==1)||((a18==1)||((!(a28==1)||((a23==1)&&(a23==1)))&&(a21==12)))))){ + a19 = 2; + a18 = 0; + a13 = 1; + a5 = 4; + a28 = 1; + a9 = 9; + a1 = 13; + a16 = 7; + a21 = 10; + return 25; + } else if((((!(a27==1)&&(((((((a20==1)&&((input==4)&&((a5==4)||(a5==5))))&&!(a14==1))&&(a21==12))&&!(a0==1))&&!(a24==1))&&(a16==9)))&&(a1==12))&&((((((a23==1)&&(a19==5))&&(a17==2))||!(a2==1))&&(a9==9))&&!(a0==1)))){ + a13 = 1; + a5 = 4; + a19 = 1; + a16 = 7; + a21 = 10; + a3 = 1; + a9 = 7; + a18 = 0; + return -1; + } else if(((!(a6==1)||(!(a23==1)||((a27==1)||((a16==10)&&(((a19==3)&&(a23==1))&&(a21==10))))))&&(((a3==1)&&(!(a26==1)&&((a17==2)&&(!(a20==1)&&((((a9==7)&&((a5==5)&&(a1==14)))||((((a5==6)&&(a1==13))&&(a9==11))||(((a5==4)&&(a1==14))&&(a9==7))))&&(input==6))))))&&(a13==1)))){ + a3 = 0; + a26 = 1; + a0 = 1; + a16 = 11; + a5 = 6; + a19 = 4; + a21 = 11; + a1 = 13; + a9 = 10; + a20 = 1; + return -1; + } else if((((a26==1)||(((a17==2)&&(((a20==1)&&((((a23==1)&&(a1==12))&&(a19==2))&&!(a27==1)))&&(a16==10)))&&(a21==12)))&&(!(a7==1)&&((((a23==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a9==11)))&&!(a14==1))&&!(a14==1))))){ + a16 = 7; + a12 = 1; + a19 = 1; + a21 = 10; + a6 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if((((((((((a13==1)&&(a19==2))||!(a23==1))||(a24==1))&&(a9==10))&&(a16==7))&&(a1==12))&&(a6==1))&&(((a21==10)&&((a28==1)&&(((((input==6)&&((a5==4)||(a5==5)))&&!(a27==1))&&(a17==2))&&!(a20==1))))&&!(a14==1)))){ + a9 = 9; + a1 = 14; + a5 = 4; + a28 = 1; + a13 = 1; + a2 = 1; + return 25; + } else if(((((a21==12)&&((a19==5)&&((((input==4)&&(a1==13))&&(a23==1))&&!(a20==1))))&&(a28==1))&&(!(a4==1)&&((a17==2)&&(((a24==1)||((a9==10)&&(((a23==1)&&((a5==5)&&(a2==1)))&&(a16==9))))||!(a3==1)))))){ + if((a20==1)){ + a27 = 1; + a9 = 9; + a16 = 7; + a5 = 4; + a10 = 1; + a8 = 1; + a19 = 1; + }else{ + a23 = 0; + a16 = 7; + a20 = 1; + a5 = 6; + a29 = 1; + a21 = 10; + a19 = 1; + a7 = 1; + a9 = 7; + } + return -1; + } else if(((((a20==1)&&((a19==2)&&(((!(a13==1)&&(a11==1))&&!(a12==1))&&(a8==1))))&&(a1==14))&&((a16==9)&&((((a27==1)&&((a21==10)&&(((a4==1)&&(((a5==5)||(a5==6))&&(input==1)))&&!(a12==1))))&&(a17==2))&&(a9==8))))){ + a16 = 7; + a19 = 1; + a5 = 4; + a2 = 0; + a6 = 0; + a14 = 1; + return 26; + } else if(((((a20==1)&&((!(a26==1)&&((a11==1)&&((a16==8)&&((a5==6)&&(a6==1)))))&&(a1==12)))&&(a19==5))&&(!(a8==1)&&((a12==1)&&((a17==2)&&((a9==11)&&((a13==1)&&(!(a4==1)&&((input==1)&&(a21==11)))))))))){ + a5 = 4; + a9 = 7; + a23 = 1; + a24 = 0; + a19 = 1; + a12 = 1; + a16 = 7; + a21 = 10; + return -1; + } else if((((a19==1)&&((((input==5)&&(((a9==11)&&((a5==6)&&(a1==12)))||(((a5==4)&&(a1==13))&&(a9==7))))&&(a17==2))&&!(a20==1)))&&(!(a7==1)&&((a16==10)&&((((a21==12)&&(((a8==1)||((a18==1)||(a11==1)))&&(a28==1)))||(a27==1))||!(a11==1)))))){ + a21 = 10; + a9 = 7; + a12 = 0; + a5 = 4; + a4 = 1; + a16 = 7; + a18 = 1; + a1 = 14; + a20 = 1; + return 22; + } else if(((!(a3==1)||((a23==1)&&(((a18==1)||(!(a28==1)||((((a21==11)&&(a23==1))&&!(a20==1))||!(a11==1))))&&(a19==3))))&&((a16==7)&&(((a9==11)&&((a11==1)&&((a17==2)&&((input==4)&&(a1==14)))))&&(a5==6))))){ + a9 = 7; + a20 = 1; + a11 = 1; + a13 = 1; + a5 = 4; + a23 = 1; + a21 = 10; + a1 = 12; + a19 = 1; + return -1; + } else if(((!(a7==1)&&(((a17==2)&&(((!(a24==1)&&((a9==10)&&(input==3)))&&(a16==7))&&(a5==6)))&&(a1==13)))&&((a21==11)&&((a7==1)||(((((a20==1)&&((a6==1)&&(a6==1)))&&(a13==1))&&!(a14==1))&&(a19==4)))))){ + a5 = 4; + a4 = 0; + a19 = 1; + a9 = 7; + a1 = 12; + a21 = 10; + a27 = 0; + a18 = 0; + return -1; + } else if(((((a21==11)&&((a9==8)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4))))&&!(a14==1))&&((a20==1)&&(!(a0==1)&&((a1==14)&&(!(a11==1)||(((a19==3)&&((a16==7)&&(((a7==1)||((a14==1)||(a3==1)))||!(a11==1))))&&(a17==2)))))))){ + a1 = 12; + a19 = 1; + a6 = 1; + a21 = 10; + a23 = 1; + a9 = 7; + a5 = 4; + a2 = 1; + return -1; + } else if(((((a12==1)&&(!(a20==1)&&((((!(a26==1)&&((a11==1)&&(a28==1)))||(a0==1))&&(a1==12))&&(a21==10))))&&(a12==1))&&(((a17==2)&&((a16==10)&&(((input==3)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(a11==1))))&&(a19==3)))){ + a21 = 11; + a20 = 1; + a9 = 11; + a7 = 1; + a28 = 0; + a19 = 4; + a15 = 1; + a5 = 4; + return -1; + } else if((((a16==9)&&((a14==1)||((a20==1)&&(!(a11==1)||((((a9==8)&&(a11==1))&&!(a0==1))&&(a23==1))))))&&(((a21==11)&&(((((a23==1)&&(((a5==4)||(a5==5))&&(input==4)))&&(a17==2))&&(a23==1))&&(a1==14)))&&(a19==1)))){ + a16 = 7; + a27 = 0; + a1 = 12; + a21 = 10; + a9 = 7; + a5 = 4; + a6 = 1; + a23 = 1; + return -1; + } else if(((((a21==10)&&(!(a8==1)&&(((a5==5)&&(((a11==1)&&!(a7==1))||(a26==1)))||!(a2==1))))&&(a16==7))&&(((((((a12==1)&&(!(a20==1)&&(input==4)))&&(a11==1))&&(a19==3))&&(a9==10))&&(a1==14))&&(a17==2)))){ + a5 = 4; + a3 = 1; + a9 = 7; + a19 = 1; + a20 = 1; + a1 = 12; + a8 = 0; + return -1; + } else if((((a1==12)&&((a9==9)&&((!(a7==1)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))&&(a17==2))))&&(!(a20==1)&&(((a21==11)&&((((a16==10)&&(!(a4==1)&&((a6==1)&&(!(a27==1)&&(a6==1)))))&&!(a4==1))||!(a28==1)))&&(a19==5))))){ + a28 = 0; + a5 = 4; + a19 = 2; + a20 = 1; + a12 = 0; + a9 = 11; + a29 = 1; + a16 = 8; + return 25; + } else if(((((((a19==1)&&(a3==1))&&(a16==7))&&!(a4==1))&&!(a0==1))&&((((a1==12)&&((a20==1)&&((a13==1)&&((a2==1)&&(((((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))&&(input==3))&&(a23==1))&&!(a7==1))))))&&(a21==11))&&(a17==2)))){ + a1 = 13; + a5 = 5; + a3 = 1; + a4 = 0; + a6 = 1; + a21 = 12; + a19 = 5; + a9 = 8; + return 23; + } else if((((a19==5)&&((a21==11)&&((((a20==1)&&(((((input==3)&&(((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))&&(a1==13))&&!(a4==1))&&(a13==1)))&&(a17==2))&&(a3==1))))&&(((((a6==1)&&(a16==9))&&!(a24==1))&&(a13==1))&&!(a8==1)))){ + a28 = 1; + a16 = 7; + a9 = 7; + a23 = 1; + a5 = 4; + a18 = 0; + a1 = 12; + a19 = 1; + a21 = 10; + return -1; + } else if((((!(a0==1)&&((((a17==2)&&((input==4)&&(((a19==2)&&(((a1==12)&&(a5==5))&&(a9==7)))||(((((a5==6)&&(a1==14))&&(a9==11))&&(a19==1))||((((a5==4)&&(a1==12))&&(a9==7))&&(a19==2))))))&&(a21==10))&&(a2==1)))&&(a11==1))&&((!(a20==1)&&((a12==1)&&(((a3==1)&&(a16==7))&&(a23==1))))&&!(a14==1)))){ + a19 = 1; + a5 = 4; + a9 = 7; + a20 = 1; + a1 = 12; + a27 = 0; + a4 = 0; + a0 = 0; + return -1; + } else if((((a9==10)&&((a2==1)&&(!(a7==1)&&(((a16==8)&&((a13==1)&&(!(a20==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))))&&!(a24==1)))))&&((((a17==2)&&((a21==12)&&(((a3==1)&&(a23==1))&&!(a0==1))))&&(a19==2))&&(a1==14)))){ + if((a22==1)){ + a5 = 4; + a20 = 1; + a12 = 0; + a16 = 7; + a1 = 12; + a21 = 10; + a22 = 0; + a9 = 7; + }else{ + a20 = 1; + a4 = 1; + a1 = 12; + a16 = 10; + a19 = 5; + a5 = 5; + a9 = 9; + a29 = 1; + a21 = 10; + } + return 25; + } else if((((a19==5)&&((a9==9)&&((a24==1)||((a16==8)&&((a20==1)&&((a28==1)&&((a5==4)&&(a12==1))))))))&&((((a21==10)&&(!(a14==1)&&(((a12==1)&&((a1==12)&&(input==1)))&&!(a4==1))))&&(a17==2))&&!(a4==1)))){ + a26 = 0; + a19 = 3; + a23 = 1; + a21 = 11; + a9 = 10; + a16 = 7; + return 21; + } else if(((((a16==7)&&((a11==1)&&((!(a20==1)&&((((input==1)&&(a19==5))&&(a6==1))&&(a5==4)))&&!(a27==1))))&&(a6==1))&&((a9==10)&&((((a17==2)&&(!(a4==1)&&(!(a7==1)&&(a2==1))))&&(a21==10))&&(a1==14))))){ + a11 = 1; + a27 = 0; + a19 = 1; + a8 = 0; + a1 = 12; + a16 = 8; + a21 = 12; + a20 = 1; + return -1; + } else if((((((a27==1)||(((a0==1)||(((a6==1)&&(a1==14))&&(a17==2)))&&!(a18==1)))&&(a19==3))||!(a23==1))&&(!(a0==1)&&((((a16==8)&&(((((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(input==5))&&!(a8==1)))&&(a21==10))&&!(a20==1))))){ + a19 = 1; + a16 = 7; + a5 = 4; + a20 = 1; + a9 = 7; + a12 = 1; + a1 = 12; + a14 = 0; + return -1; + } else if((((a9==10)&&((((a17==2)&&((a2==1)&&((a20==1)&&((input==1)&&(a1==14)))))&&!(a18==1))&&(a5==6)))&&(((!(a24==1)&&(((((a19==1)&&(a23==1))&&(a16==9))&&(a23==1))&&!(a7==1)))||!(a6==1))&&(a21==10)))){ + a16 = 7; + a1 = 12; + a5 = 4; + a24 = 0; + a9 = 7; + a3 = 1; + a23 = 1; + return -1; + } else if((((a13==1)&&(((((!(a0==1)&&((a26==1)||((a9==8)&&(a28==1))))&&(a23==1))&&(a17==2))||(a18==1))&&(a5==5)))&&((a19==5)&&((!(a24==1)&&((a20==1)&&((a21==12)&&((a1==13)&&(input==6)))))&&(a16==10))))){ + a12 = 1; + a13 = 1; + a21 = 10; + a1 = 12; + a16 = 7; + a9 = 7; + a2 = 1; + a5 = 4; + a19 = 1; + return -1; + } else if((((a26==1)||(!(a20==1)&&(a2==1)))&&(((a2==1)&&((((((a9==7)&&(((a1==13)&&(!(a14==1)&&((a16==8)&&((a17==2)&&(input==3)))))&&(a19==2)))&&(a28==1))&&(a5==4))&&(a21==11))&&(a28==1)))&&!(a7==1)))){ + a20 = 1; + a16 = 7; + a19 = 1; + a24 = 0; + a21 = 10; + a8 = 0; + a26 = 0; + a1 = 12; + return -1; + } else if((((a16==10)&&(((a9==10)&&((a19==5)&&((a13==1)&&((a5==5)&&((a20==1)&&((a21==11)&&(input==5)))))))&&(a1==12)))&&(!(a11==1)||((a23==1)&&((((!(a24==1)&&(a3==1))||!(a28==1))||!(a6==1))&&(a17==2)))))){ + a6 = 1; + a21 = 10; + a8 = 0; + a19 = 4; + a1 = 13; + a16 = 7; + a27 = 0; + return 25; + } else if(((((((a1==14)&&((a21==11)&&((input==1)&&(((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))))))&&!(a14==1))&&!(a0==1))&&(a16==11))&&(((a8==1)||(((a17==2)&&(!(a14==1)&&((a20==1)&&((a27==1)||(a2==1)))))&&!(a0==1)))&&(a19==5)))){ + a14 = 0; + a13 = 1; + a19 = 1; + a28 = 1; + a1 = 12; + a5 = 4; + a9 = 7; + a21 = 10; + a16 = 7; + return -1; + } else if((((a21==12)&&((((a11==1)&&(!(a0==1)&&(!(a3==1)||((a5==6)&&((a28==1)&&!(a27==1))))))&&(a1==13))&&(a9==9)))&&((a17==2)&&(!(a27==1)&&(((((input==1)&&(a20==1))&&(a16==8))&&(a19==3))&&(a11==1)))))){ + a5 = 4; + a9 = 7; + a23 = 1; + a19 = 1; + a1 = 12; + a4 = 0; + a21 = 10; + a11 = 1; + a16 = 7; + return -1; + } else if((((a16==9)&&((a9==10)&&((a11==1)&&(((a3==1)||!(a3==1))&&(a17==2)))))&&(((((((a1==13)&&((a5==6)&&(!(a24==1)&&((input==3)&&(a19==4)))))&&!(a4==1))&&(a20==1))&&(a21==11))&&(a11==1))&&!(a27==1)))){ + if((a2==1)){ + a6 = 1; + a9 = 8; + a5 = 5; + a27 = 0; + a16 = 8; + a1 = 12; + a20 = 0; + }else{ + a16 = 7; + a21 = 10; + a7 = 0; + a19 = 2; + a11 = 1; + a5 = 4; + a27 = 0; + } + return 21; + } else if((((a23==1)&&((a19==1)&&((a28==1)&&(!(a20==1)&&((((a21==10)&&(a13==1))&&!(a4==1))||!(a12==1))))))&&((a1==14)&&(!(a14==1)&&((a13==1)&&((((((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(input==3))&&(a16==9))&&(a17==2))))))){ + a20 = 1; + a1 = 13; + a21 = 12; + a19 = 4; + a25 = 0; + a11 = 0; + a5 = 5; + a9 = 11; + return 21; + } else if((((((a17==2)&&((a20==1)&&((((a28==1)&&(a6==1))&&(a19==5))&&(a11==1))))&&(a21==10))&&(a16==11))&&((!(a7==1)&&((a1==13)&&((((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==5))&&!(a26==1))&&!(a14==1))))&&!(a18==1)))){ + a19 = 2; + a0 = 0; + a23 = 1; + a6 = 1; + a9 = 9; + a1 = 14; + a16 = 10; + a5 = 4; + return 21; + } else if(((((((((((((a5==4)&&(a1==12))&&(a9==7))&&(a19==3))||(((a19==2)&&((a9==11)&&((a5==5)&&(a1==14))))||((a19==2)&&(((a5==6)&&(a1==14))&&(a9==11)))))&&(input==1))&&(a16==11))&&(a21==11))&&!(a14==1))&&(a20==1))&&(a6==1))&&(((a27==1)||((((a11==1)&&(a3==1))&&(a17==2))&&!(a0==1)))&&(a6==1)))){ + a5 = 5; + a1 = 12; + a16 = 8; + a4 = 0; + a13 = 1; + a19 = 5; + a8 = 0; + a21 = 12; + a9 = 7; + return 25; + } else if((((a16==11)&&(((!(a4==1)&&((input==5)&&((((a1==12)&&(a5==6))&&(a9==11))||(((a5==4)&&(a1==13))&&(a9==7)))))&&(a3==1))&&(a21==10)))&&(((a17==2)&&((a19==4)&&(!(a27==1)&&(((a8==1)||((a2==1)||(a14==1)))||!(a11==1)))))&&!(a20==1)))){ + a5 = 5; + a9 = 9; + a23 = 0; + a20 = 1; + a1 = 13; + a19 = 1; + a16 = 7; + a22 = 1; + return -1; + } else if((((((!(a26==1)&&((((a6==1)&&(((a21==11)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a7==1)))&&(a16==9))&&!(a14==1)))&&!(a4==1))&&(a9==11))&&(a20==1))&&((a19==4)&&(((a17==2)&&((a6==1)&&(a2==1)))&&(a1==13))))){ + a19 = 2; + a23 = 1; + a6 = 1; + a16 = 7; + a21 = 10; + a5 = 4; + a9 = 10; + a12 = 1; + return 21; + } else if(((((a5==4)&&((a26==1)&&((a20==1)&&(!(a11==1)&&(a11==1)))))&&(a1==13))&&((((((a26==1)&&((a18==1)&&((((input==3)&&(a17==2))&&(a21==12))&&(a9==7))))&&(a18==1))&&(a16==7))&&!(a2==1))&&(a19==5)))){ + a29 = 1; + a19 = 4; + a5 = 6; + a20 = 0; + a28 = 0; + a25 = 0; + a16 = 8; + a1 = 14; + a21 = 11; + a9 = 10; + return -1; + } else if((((a1==13)&&(((((input==6)&&((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a5==4)&&(a9==9))))&&(a12==1))&&(a3==1))&&(a16==9)))&&((a21==12)&&((a19==5)&&((a20==1)&&((((a7==1)||((a23==1)&&((a8==1)||(a13==1))))&&(a17==2))||(a27==1))))))){ + a19 = 2; + a12 = 1; + a5 = 6; + a4 = 0; + a21 = 10; + a1 = 14; + a7 = 0; + a9 = 9; + return 21; + } else if((((a19==1)&&((a14==1)||((((a3==1)&&(((a2==1)&&(a17==2))&&(a21==12)))&&(a6==1))&&(a1==12))))&&((a9==9)&&(((a20==1)&&((!(a14==1)&&((a16==10)&&(((a5==4)||(a5==5))&&(input==5))))&&(a11==1)))&&(a6==1))))){ + a13 = 1; + a9 = 10; + a26 = 0; + a19 = 2; + a1 = 14; + a16 = 7; + a5 = 5; + a6 = 1; + a21 = 10; + return 21; + } else if(((((((a5==4)&&(!(a4==1)&&((a16==11)&&((a21==11)&&(input==5)))))&&(a2==1))&&(a9==11))&&(a23==1))&&((a20==1)&&((a17==2)&&((((a1==12)&&((a19==4)&&((a3==1)&&!(a4==1))))||(a18==1))&&(a3==1)))))){ + a1 = 14; + a13 = 1; + a27 = 0; + a16 = 9; + a18 = 0; + a19 = 5; + return 21; + } else if((((a2==1)&&(!(a4==1)&&((a9==7)&&(((((input==3)&&((a5==5)||(a5==6)))&&!(a26==1))&&(a23==1))&&(a16==8)))))&&((a1==14)&&((((a19==3)&&(((a3==1)&&((a3==1)&&(a2==1)))&&(a20==1)))&&(a21==11))&&(a17==2))))){ + a28 = 1; + a5 = 4; + a27 = 0; + a19 = 1; + a21 = 10; + a16 = 7; + a8 = 0; + a1 = 12; + return -1; + } else if(((((a17==2)&&((!(a20==1)&&(!(a27==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3))))&&(a11==1)))&&(a19==3))&&(!(a4==1)&&(((a21==12)&&((!(a8==1)&&((((a16==10)&&(a6==1))&&(a9==9))&&(a23==1)))&&(a1==12)))||(a4==1))))){ + a1 = 14; + a5 = 6; + a26 = 1; + a19 = 5; + a9 = 7; + a21 = 11; + a10 = 0; + a0 = 1; + return 21; + } else if((((((a21==11)&&(!(a24==1)&&(((a13==1)&&(a2==1))&&!(a4==1))))&&!(a20==1))&&(a19==2))&&((a1==13)&&(((a11==1)&&(((((input==5)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5))))&&(a17==2))&&!(a4==1))&&(a11==1)))&&(a16==8))))){ + a14 = 0; + a1 = 12; + a24 = 0; + a6 = 1; + a5 = 4; + a21 = 10; + a20 = 1; + a19 = 5; + a9 = 10; + a16 = 9; + return 25; + } else if((((a3==1)&&((a21==10)&&(!(a20==1)&&((((((((a11==1)&&(a19==3))||!(a28==1))&&(a12==1))&&(a9==9))||!(a3==1))&&(a6==1))&&(a16==8)))))&&((((a1==14)&&((input==4)&&((a5==5)||(a5==6))))&&(a17==2))&&!(a26==1)))){ + a9 = 7; + a20 = 1; + a19 = 1; + a16 = 7; + a26 = 0; + a18 = 0; + a1 = 12; + a5 = 4; + return -1; + } else if(((!(a11==1)||((a21==12)&&(((((a13==1)&&(a23==1))||!(a12==1))&&(a17==2))&&(a19==1))))&&(((a2==1)&&((!(a26==1)&&((((a1==14)&&((input==4)&&((a5==5)||(a5==6))))&&(a9==9))&&(a11==1)))&&!(a20==1)))&&(a16==8)))){ + if((a24==1)){ + a16 = 9; + a5 = 5; + a29 = 0; + a25 = 0; + a21 = 10; + a19 = 3; + a0 = 1; + a1 = 13; + }else{ + a9 = 11; + a19 = 3; + a25 = 1; + a14 = 1; + a21 = 11; + a18 = 1; + a16 = 9; + a1 = 12; + a5 = 5; + } + return 21; + } else if((((((((a19==2)&&((a2==1)&&(((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==5))&&!(a8==1))))&&!(a0==1))&&!(a14==1))&&(a21==12))&&(a20==1))&&(((a1==14)&&((a17==2)&&(((a6==1)&&(a23==1))||(a27==1))))&&(a16==11)))){ + a23 = 1; + a14 = 0; + a19 = 4; + a13 = 1; + a5 = 6; + a9 = 7; + return 25; + } else if(((!(a7==1)&&((a21==11)&&(((a1==13)&&(input==5))&&!(a14==1))))&&((((((a8==1)||(((!(a13==1)||((a9==9)&&((a3==1)||!(a23==1))))&&(a19==1))&&(a16==7)))&&!(a20==1))&&(a17==2))&&(a5==6))&&!(a4==1)))){ + a8 = 0; + a9 = 11; + a16 = 8; + a2 = 1; + a18 = 0; + a19 = 4; + a20 = 1; + a1 = 12; + a5 = 4; + return 25; + } else if((((a17==2)&&(!(a0==1)&&((a6==1)&&(((a19==1)&&(!(a20==1)&&((((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))&&(input==3))))&&(a1==12)))))&&((a21==10)&&(!(a14==1)&&((!(a24==1)&&((a16==8)&&((a13==1)&&(a11==1))))||!(a23==1)))))){ + a19 = 5; + a27 = 0; + a5 = 6; + a20 = 1; + a7 = 0; + a1 = 13; + a4 = 0; + a9 = 9; + return -1; + } else if((((a21==11)&&(((a17==2)&&(((a1==14)&&(!(a4==1)&&((a11==1)&&((a19==1)&&((((a5==4)||(a5==5))&&(input==3))&&!(a0==1))))))&&(a16==11)))&&(a9==8)))&&((a20==1)&&((!(a27==1)&&(!(a18==1)&&(a13==1)))||!(a13==1))))){ + a7 = 0; + a9 = 7; + a21 = 10; + a28 = 1; + a4 = 0; + a1 = 12; + a5 = 4; + a16 = 7; + return -1; + } else if((((!(a18==1)&&(((((((a5==5)||(a5==6))&&(input==5))&&(a17==2))&&(a1==12))&&(a21==10))&&(a16==10)))&&(a12==1))&&((!(a11==1)||((a9==11)&&(((((a28==1)&&(a19==3))||(a24==1))&&(a20==1))||!(a12==1))))||(a7==1)))){ + a9 = 10; + a16 = 9; + a5 = 4; + a14 = 0; + a2 = 1; + a27 = 0; + a21 = 12; + return 21; + } else if(((((a12==1)&&((input==6)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))))&&!(a4==1))&&((((!(a27==1)&&((a20==1)&&(!(a6==1)||((((a16==8)&&((a13==1)&&(a13==1)))&&(a21==12))&&!(a7==1)))))&&(a19==1))&&(a17==2))&&(a1==13)))){ + a5 = 5; + a9 = 10; + a2 = 1; + a18 = 0; + a16 = 7; + a19 = 4; + a3 = 1; + a21 = 10; + return 25; + } else if(((((a16==9)&&((a24==1)||((a1==13)&&(a28==1))))&&!(a24==1))&&(((a12==1)&&((!(a4==1)&&((a23==1)&&(((a21==10)&&((a9==8)&&((a19==1)&&((input==5)&&(a20==1)))))&&(a5==5))))&&(a17==2)))&&(a2==1)))){ + a27 = 0; + a16 = 7; + a9 = 7; + a5 = 4; + a1 = 12; + a18 = 0; + return -1; + } else if((((a19==5)&&((a21==10)&&(a23==1)))&&((a12==1)&&(!(a18==1)&&((a16==8)&&((a11==1)&&((((a17==2)&&((!(a0==1)&&(((input==5)&&(((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))))&&(a1==14)))&&!(a0==1)))&&(a20==1))&&!(a18==1)))))))){ + a5 = 4; + a9 = 7; + a16 = 7; + a4 = 0; + a28 = 1; + a1 = 12; + a19 = 4; + return -1; + } else if((((!(a8==1)&&(!(a26==1)&&(!(a20==1)&&(((a1==14)&&(((input==3)&&(a16==8))&&(a17==2)))&&!(a4==1)))))&&(a19==3))&&((((a26==1)||((((a21==11)&&(a23==1))&&!(a8==1))||(a4==1)))&&(a5==4))&&(a9==9)))){ + a1 = 12; + a16 = 9; + a2 = 1; + a8 = 0; + a5 = 5; + a20 = 1; + a21 = 12; + a26 = 0; + return 21; + } else if(((((a1==12)&&((a23==1)&&((a19==5)&&(((((a17==2)&&((a11==1)&&(a6==1)))||!(a23==1))||!(a6==1))||(a18==1)))))&&!(a20==1))&&(((a21==11)&&(((a13==1)&&(((a5==4)||(a5==5))&&(input==1)))&&(a16==8)))&&(a9==11)))){ + a1 = 13; + a7 = 1; + a21 = 10; + a10 = 0; + a0 = 1; + a5 = 5; + a20 = 1; + return -1; + } else if(((((!(a4==1)&&((a0==1)||((a18==1)||((a16==7)&&(((a7==1)||((a21==11)&&(a3==1)))&&(a19==5))))))&&(a1==12))&&(a17==2))&&(((!(a18==1)&&(!(a26==1)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a9==11))&&!(a20==1)))){ + a9 = 7; + a20 = 1; + a18 = 0; + a3 = 1; + a19 = 1; + a5 = 4; + a23 = 1; + a21 = 10; + return -1; + } else if(((!(a24==1)&&(((((a18==1)||((a21==12)&&(((a12==1)&&(a19==3))&&(a1==12))))&&!(a4==1))||!(a23==1))&&(a16==7)))&&(((a11==1)&&(((((input==1)&&((a5==4)||(a5==5)))&&!(a8==1))&&(a17==2))&&(a20==1)))&&(a9==10)))){ + a2 = 1; + a16 = 9; + a21 = 10; + a9 = 8; + a19 = 4; + a5 = 5; + a28 = 1; + a1 = 14; + a4 = 0; + return 26; + } else if((((a9==10)&&((((a16==8)&&(a2==1))&&(a6==1))||!(a23==1)))&&(((a20==1)&&((a21==11)&&((a28==1)&&(!(a0==1)&&(!(a24==1)&&(((a6==1)&&((a17==2)&&((a1==12)&&(input==5))))&&(a5==6)))))))&&(a19==2)))){ + a5 = 4; + a6 = 1; + a19 = 1; + a16 = 7; + a9 = 7; + a21 = 10; + a11 = 1; + return -1; + } else if(((!(a7==1)&&((a16==9)&&(!(a4==1)&&(((((a18==1)||(a12==1))&&(a5==5))&&!(a20==1))||!(a28==1)))))&&((a1==12)&&((((a19==3)&&((((a9==9)&&(input==3))&&(a6==1))&&(a21==10)))&&!(a8==1))&&(a17==2))))){ + a7 = 1; + a8 = 1; + a9 = 11; + a19 = 1; + a20 = 1; + a1 = 13; + a5 = 6; + a16 = 7; + a0 = 1; + return 26; + } else if(((!(a20==1)&&((a16==8)&&((a1==12)&&((((a17==2)&&(((a23==1)&&(((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4)))&&(input==6)))&&(a13==1)))&&(a19==3))&&!(a14==1)))))&&((!(a27==1)&&(((a3==1)&&(a21==10))&&(a3==1)))||!(a3==1)))){ + a18 = 0; + a24 = 0; + a8 = 0; + a21 = 11; + a20 = 1; + a9 = 8; + a5 = 4; + return 25; + } else if((((((((a16==10)&&(((!(a4==1)&&((input==5)&&((a5==5)||(a5==6))))&&(a17==2))&&(a19==1)))&&(a21==11))&&!(a24==1))&&(a1==14))&&(a11==1))&&((a9==10)&&(!(a6==1)||((((a2==1)&&(a12==1))&&(a20==1))&&(a2==1)))))){ + a9 = 7; + a19 = 4; + a1 = 13; + a24 = 0; + a23 = 1; + a16 = 7; + a26 = 0; + a5 = 5; + return 25; + } else if((((a19==2)&&((a17==2)&&((a13==1)&&((!(a24==1)&&(((input==5)&&(((a9==7)&&((a1==13)&&(a5==4)))||(((a9==11)&&((a1==12)&&(a5==5)))||((a9==11)&&((a1==12)&&(a5==6))))))&&(a21==10)))&&(a6==1)))))&&(!(a26==1)&&(!(a20==1)&&((a16==8)&&(((a3==1)&&(a11==1))||(a8==1))))))){ + a14 = 0; + a21 = 11; + a16 = 11; + a24 = 0; + a19 = 1; + a9 = 10; + a20 = 1; + a1 = 14; + a5 = 4; + a12 = 1; + return 25; + } else if((((((((a17==2)&&(a13==1))&&!(a18==1))||!(a2==1))&&(a19==3))||(a18==1))&&((a11==1)&&((a13==1)&&(((a9==9)&&(((a20==1)&&(!(a27==1)&&(((input==1)&&(a16==9))&&(a21==11))))&&(a1==14)))&&(a5==5)))))){ + a19 = 1; + a9 = 7; + a27 = 0; + a21 = 10; + a11 = 1; + a5 = 4; + a28 = 1; + a1 = 12; + a16 = 7; + return -1; + } else if((((((a9==7)&&(((((a1==13)&&(input==3))&&!(a24==1))&&(a2==1))&&!(a20==1)))&&(a16==9))&&!(a27==1))&&((((a19==2)&&((a8==1)||((!(a28==1)||((a21==11)&&(a28==1)))&&(a5==5))))||!(a28==1))&&(a17==2)))){ + a5 = 6; + a0 = 1; + a9 = 10; + a1 = 12; + a22 = 0; + a15 = 1; + return 25; + } else if((((((a21==10)&&((!(a6==1)||(a28==1))&&(a17==2)))&&!(a20==1))&&!(a0==1))&&(((a16==8)&&((a3==1)&&(((a1==13)&&(!(a27==1)&&(!(a24==1)&&((a19==3)&&(((a5==5)||(a5==6))&&(input==6))))))&&!(a27==1))))&&(a9==10)))){ + a16 = 9; + a19 = 1; + a2 = 1; + a20 = 1; + a5 = 5; + a27 = 0; + a9 = 11; + a4 = 0; + return -1; + } else if((((a28==1)&&(((((((((a21==11)&&(((a9==11)&&((a5==6)&&(a1==14)))&&(a19==5)))||((a21==12)&&((a19==1)&&(((a5==4)&&(a1==12))&&(a9==7)))))||((a21==12)&&((((a5==5)&&(a1==12))&&(a9==7))&&(a19==1))))&&(input==4))&&(a16==10))&&(a17==2))&&(a3==1))&&!(a0==1)))&&(((((a20==1)&&(a3==1))||(a18==1))&&(a2==1))||!(a12==1)))){ + a2 = 1; + a9 = 7; + a16 = 7; + a3 = 1; + a21 = 10; + a19 = 1; + a1 = 12; + a5 = 4; + a13 = 1; + return -1; + } else if((((a8==1)||(((((((a19==5)&&((((a27==1)||((a17==2)&&(a23==1)))&&!(a26==1))&&!(a7==1)))&&(a16==11))&&(a1==14))&&(a9==8))&&(a20==1))&&!(a18==1)))&&(!(a4==1)&&((a21==10)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))))){ + a2 = 1; + a5 = 4; + a12 = 1; + a19 = 1; + a9 = 7; + a11 = 1; + a16 = 7; + a1 = 12; + return -1; + } else if(((((a21==10)&&((((((a3==1)||!(a13==1))&&(a19==4))&&!(a20==1))||!(a23==1))&&(a16==8)))&&(a1==12))&&((a3==1)&&(!(a27==1)&&((a28==1)&&(!(a8==1)&&(((((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(input==4))&&(a17==2)))))))){ + a9 = 7; + a16 = 7; + a20 = 1; + a24 = 0; + a28 = 1; + a5 = 4; + a23 = 1; + a19 = 1; + return -1; + } else if(((!(a20==1)&&((!(a14==1)&&(((a3==1)&&(((a5==5)||(a5==6))&&(input==4)))&&(a21==11)))&&(a17==2)))&&((a9==11)&&(!(a23==1)||((a16==9)&&(!(a28==1)||(!(a8==1)&&((a1==14)&&(((a19==3)&&(a3==1))||!(a28==1)))))))))){ + a9 = 8; + a5 = 5; + a19 = 1; + a1 = 12; + a27 = 1; + a20 = 1; + a14 = 1; + a16 = 7; + a21 = 10; + a12 = 0; + return 21; + } else if(((!(a27==1)&&((a21==12)&&((((a1==12)&&((a20==1)&&(((a17==2)&&(((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==1))&&!(a26==1)))&&!(a24==1))))&&(a2==1))&&(a12==1))))&&((!(a11==1)||((a3==1)&&(a16==11)))&&(a19==4)))){ + a1 = 14; + a9 = 10; + a16 = 9; + a26 = 0; + a5 = 4; + a19 = 2; + a18 = 0; + a7 = 0; + a21 = 10; + return 21; + } else if(((!(a7==1)&&(((a5==4)&&(((((a2==1)&&(a20==1))||(a4==1))&&(a1==14))&&!(a27==1)))&&(a11==1)))&&(((a9==11)&&((((a16==9)&&(((input==6)&&(a21==12))&&(a28==1)))&&(a19==5))&&(a17==2)))&&!(a7==1)))){ + a28 = 1; + a1 = 12; + a9 = 7; + a5 = 5; + a11 = 1; + a19 = 2; + a12 = 1; + return 21; + } else if(((!(a28==1)||((!(a18==1)&&((a11==1)&&((a6==1)||!(a6==1))))||(a18==1)))&&((!(a20==1)&&((a17==2)&&((((a21==10)&&(((a16==8)&&((a9==7)&&((a5==5)&&(a1==12))))&&(a19==1)))||(((a21==12)&&(((((a5==6)&&(a1==14))&&(a9==11))&&(a16==7))&&(a19==5)))||(((((a9==7)&&((a1==12)&&(a5==4)))&&(a16==8))&&(a19==1))&&(a21==10))))&&(input==6))))&&(a6==1)))){ + a19 = 1; + a23 = 1; + a7 = 0; + a16 = 7; + a20 = 1; + a1 = 12; + a21 = 10; + a5 = 4; + a9 = 7; + return -1; + } else if((((((a19==3)&&((a16==10)&&((a17==2)&&(!(a18==1)&&(!(a0==1)&&(((a12==1)&&(((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5)))&&(input==5)))&&(a2==1)))))))&&(a21==12))&&(a1==12))&&((((a3==1)&&(a3==1))&&(a20==1))||(a24==1)))){ + a5 = 4; + a13 = 1; + a1 = 13; + a21 = 10; + a0 = 0; + a19 = 2; + a28 = 1; + a9 = 9; + a16 = 7; + return 25; + } else if((((a21==11)&&(!(a7==1)&&(!(a2==1)||(((a13==1)&&!(a24==1))&&(a1==14)))))&&((a9==10)&&((a5==6)&&(((((a16==10)&&(!(a0==1)&&(((a19==4)&&(input==3))&&(a17==2))))&&(a23==1))&&!(a27==1))&&!(a20==1)))))){ + if((a8==1)){ + a21 = 10; + a19 = 1; + a5 = 4; + a16 = 7; + a1 = 12; + a25 = 0; + a24 = 1; + a14 = 1; + a9 = 7; + a20 = 1; + }else{ + a23 = 0; + a20 = 1; + a1 = 12; + a16 = 11; + a19 = 5; + a18 = 1; + a9 = 8; + a26 = 1; + } + return 21; + } else if((((!(a3==1)||((a2==1)&&((a28==1)&&(a28==1))))||(a26==1))&&((((((((((input==1)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(a21==12))&&(a19==5))&&(a17==2))&&!(a24==1))&&(a20==1))&&(a1==14))&&(a16==7))&&!(a14==1)))){ + a9 = 7; + a5 = 4; + a23 = 1; + a18 = 0; + a19 = 1; + a1 = 12; + a21 = 10; + a14 = 0; + return -1; + } else if((((a17==2)&&((!(a2==1)||((a1==14)&&(((a21==12)&&(a2==1))||(a26==1))))&&(a2==1)))&&((a5==5)&&(!(a20==1)&&((a12==1)&&(((a9==9)&&((a16==8)&&(!(a0==1)&&((input==4)&&(a19==5)))))&&(a23==1))))))){ + a1 = 12; + a23 = 0; + a21 = 10; + a19 = 1; + a20 = 1; + a25 = 1; + a12 = 0; + a16 = 7; + return 22; + } else if((((((a17==2)&&(((a16==9)&&(((a12==1)&&(((input==3)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&(a20==1)))&&!(a18==1)))&&(a6==1)))&&(a19==3))&&(a21==10))&&(((a1==14)&&(!(a27==1)&&((a13==1)&&(a6==1))))&&(a13==1)))){ + a9 = 7; + a19 = 1; + a7 = 0; + a8 = 0; + a16 = 7; + a18 = 0; + a1 = 12; + a5 = 4; + return -1; + } else if(((((a16==10)&&((a21==10)&&((a1==12)&&(((a20==1)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==1)))&&!(a14==1)))))&&(a3==1))&&(!(a14==1)&&((!(a6==1)||(((a24==1)||((a13==1)&&(a19==4)))&&(a17==2)))&&(a13==1))))){ + a0 = 0; + a16 = 11; + a19 = 1; + a21 = 11; + a9 = 9; + a5 = 5; + a3 = 1; + a28 = 1; + return 26; + } else if(((!(a12==1)||((a9==8)&&((a6==1)&&!(a24==1))))&&((((((a20==1)&&((!(a27==1)&&((a23==1)&&(!(a8==1)&&((a17==2)&&(((a5==5)||(a5==6))&&(input==6))))))&&(a19==2)))&&(a16==8))&&(a21==11))&&(a1==14))&&!(a18==1)))){ + a1 = 12; + a2 = 1; + a3 = 1; + a16 = 7; + a5 = 4; + a21 = 10; + a9 = 7; + a19 = 1; + a18 = 0; + return -1; + } else if(((((a21==10)&&((!(a2==1)||(a2==1))||(a27==1)))&&(a1==14))&&((a16==10)&&((a17==2)&&((a3==1)&&((!(a7==1)&&((a19==3)&&((((input==5)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&!(a8==1))&&(a20==1))))&&!(a26==1))))))){ + a4 = 0; + a23 = 1; + a9 = 7; + a5 = 4; + a19 = 1; + a14 = 0; + return 21; + } else if((((!(a24==1)&&(!(a13==1)||((a12==1)&&((a16==8)&&(a12==1)))))&&(a20==1))&&((a17==2)&&(((((!(a24==1)&&(((((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6))))&&(input==1))&&(a1==14)))&&(a21==10))&&!(a24==1))&&(a19==3))&&!(a0==1))))){ + a16 = 9; + a21 = 12; + a19 = 5; + a18 = 0; + a11 = 1; + a9 = 7; + a5 = 6; + return 25; + } return calculate_output38(input); + } + + int calculate_output38(int input) { + if((((((((((a20==1)&&((a17==2)&&(a13==1)))&&(a21==12))||!(a23==1))&&(a28==1))||(a26==1))||(a4==1))||!(a11==1))&&((a3==1)&&((a16==7)&&((a19==3)&&(((((a9==11)&&((a1==12)&&(a5==6)))||(((a5==4)&&(a1==13))&&(a9==7)))||(((a1==13)&&(a5==5))&&(a9==7)))&&(input==1))))))){ + if((a13==1)){ + a19 = 1; + a23 = 1; + a5 = 4; + a16 = 8; + a20 = 0; + a1 = 13; + a21 = 11; + a26 = 0; + a9 = 10; + a4 = 0; + }else{ + a9 = 7; + a8 = 0; + a18 = 0; + a5 = 5; + a16 = 8; + a21 = 11; + a2 = 1; + a19 = 2; + a1 = 12; + } + return 22; + } else if(((!(a20==1)&&((a1==13)&&((a16==9)&&((a19==3)&&(((((a8==1)||((a11==1)&&!(a24==1)))||(a14==1))&&!(a14==1))&&!(a7==1))))))&&((a17==2)&&(!(a26==1)&&(((a21==11)&&((input==5)&&(a9==8)))&&(a5==4)))))){ + a19 = 1; + a1 = 12; + a8 = 1; + a20 = 1; + a23 = 0; + a16 = 7; + a4 = 1; + a21 = 10; + a5 = 6; + a9 = 10; + return 25; + } else if((((((a1==13)&&((((!(a8==1)&&(((a5==4)||(a5==5))&&(input==6)))&&(a3==1))&&(a2==1))&&!(a26==1)))&&(a16==9))&&(a9==8))&&((a19==5)&&(!(a20==1)&&((a17==2)&&((((a13==1)&&!(a8==1))&&(a21==11))&&(a2==1))))))){ + a15 = 1; + a5 = 4; + a21 = 12; + a1 = 12; + a20 = 1; + a9 = 10; + a19 = 2; + a12 = 0; + return -1; + } else if((((a5==4)&&((!(a4==1)&&(((a6==1)&&((a19==5)&&(!(a20==1)&&(!(a0==1)&&((input==3)&&(a16==9))))))&&(a9==7)))&&(a21==11)))&&(((!(a27==1)&&(!(a3==1)||((a13==1)&&(a11==1))))&&(a1==14))&&(a17==2)))){ + a19 = 1; + a24 = 1; + a11 = 0; + a21 = 10; + a1 = 13; + a20 = 1; + a8 = 1; + a5 = 6; + a16 = 7; + a9 = 8; + return -1; + } else if((((((a20==1)&&((a12==1)&&(a17==2)))||(a27==1))&&(a16==9))&&(((((a19==1)&&((((a21==12)&&((((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))&&(input==4))&&!(a4==1)))&&(a2==1))&&(a1==13)))&&(a13==1))&&(a2==1))&&!(a27==1)))){ + a8 = 0; + a5 = 4; + a9 = 7; + a0 = 0; + a6 = 1; + a1 = 12; + a16 = 7; + a21 = 10; + return -1; + } else if(((!(a8==1)&&(((((a3==1)&&(a17==2))&&(a20==1))&&(a19==5))||!(a6==1)))&&((a3==1)&&((((a16==9)&&((((((input==1)&&(a1==13))&&(a9==8))&&!(a8==1))&&(a28==1))&&(a21==10)))&&(a5==6))&&!(a7==1))))){ + a8 = 0; + a23 = 1; + a19 = 1; + a16 = 8; + a21 = 11; + return 25; + } else if((((a3==1)&&((a11==1)&&(!(a20==1)&&(((a21==10)&&(((input==3)&&((((a9==11)&&((a1==13)&&(a5==5)))||(((a5==6)&&(a1==13))&&(a9==11)))||(((a1==14)&&(a5==4))&&(a9==7))))&&(a11==1)))&&(a17==2)))))&&(((((!(a14==1)&&(a6==1))&&(a16==7))&&(a19==3))||(a18==1))||(a18==1)))){ + a19 = 1; + a20 = 1; + a5 = 4; + a4 = 0; + a12 = 1; + a9 = 7; + a1 = 12; + a28 = 1; + return -1; + } else if(((!(a12==1)||((a1==12)&&((a21==11)&&((a17==2)&&((a4==1)||(!(a18==1)&&(a12==1)))))))&&(!(a26==1)&&((a16==10)&&((!(a20==1)&&(((a12==1)&&(((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8)))&&(input==6)))&&(a19==5)))&&!(a27==1)))))){ + a5 = 5; + a25 = 1; + a1 = 13; + a9 = 7; + a13 = 0; + a10 = 1; + return -1; + } else if(((!(a8==1)&&((a12==1)&&((((a21==10)&&((((a11==1)&&(a5==6))&&!(a24==1))&&(a19==3)))||!(a2==1))&&(a9==10))))&&(((((((input==6)&&(a16==9))&&(a1==12))&&!(a0==1))&&!(a20==1))&&(a17==2))&&(a11==1)))){ + if((a26==1)){ + a5 = 4; + a9 = 11; + a19 = 2; + a16 = 7; + a28 = 0; + a4 = 1; + a27 = 1; + a20 = 1; + }else{ + a25 = 0; + a26 = 1; + a21 = 12; + a29 = 0; + a16 = 8; + a1 = 13; + } + return -1; + } else if((((a19==2)&&(((a9==10)&&(((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a20==1)))&&(a16==9)))&&((a8==1)&&(((a14==1)&&(((a21==10)&&(!(a6==1)&&((a1==12)&&(((a26==1)&&(a11==1))&&(a17==2)))))&&(a26==1)))&&!(a11==1))))){ + a11 = 0; + a5 = 4; + a16 = 7; + a15 = 0; + a9 = 9; + a2 = 0; + return -1; + } else if((((!(a24==1)&&(((((a17==2)&&(((input==6)&&((a5==5)||(a5==6)))&&(a2==1)))&&(a13==1))&&(a16==9))&&(a19==1)))&&(a23==1))&&((a28==1)&&(!(a20==1)&&(((a27==1)||(((a6==1)&&(a1==13))&&(a21==10)))&&(a9==7)))))){ + a1 = 14; + a21 = 12; + a22 = 1; + a19 = 3; + a9 = 11; + a20 = 1; + a5 = 4; + a27 = 1; + a18 = 1; + return -1; + } else if(((!(a24==1)&&((a23==1)&&((a20==1)&&((a1==12)&&(((((a14==1)||((a28==1)&&(a17==2)))||!(a23==1))||(a27==1))&&(a19==2))))))&&((a21==11)&&(((a5==5)&&(((input==1)&&(a16==8))&&(a12==1)))&&(a9==7))))){ + a5 = 4; + a4 = 0; + a11 = 1; + a21 = 10; + a16 = 7; + a0 = 0; + a19 = 1; + return -1; + } else if(((((a9==11)&&((!(a12==1)||((((a28==1)&&!(a26==1))||!(a12==1))&&(a1==12)))&&(a21==11)))&&(a17==2))&&(!(a20==1)&&(((a12==1)&&((a23==1)&&((a16==9)&&(!(a24==1)&&((input==5)&&((a5==4)||(a5==5)))))))&&(a19==1))))){ + if((a12==1)){ + a13 = 0; + a21 = 10; + a9 = 10; + a20 = 1; + a5 = 6; + a1 = 13; + a16 = 7; + a12 = 0; + }else{ + a9 = 8; + a1 = 13; + a22 = 1; + a5 = 4; + a16 = 11; + a19 = 2; + a8 = 1; + a4 = 1; + a21 = 10; + } + return -1; + } else if(((((a5==5)&&(((!(a7==1)&&(((a6==1)||(a0==1))&&(a9==7)))&&(a21==10))&&(a19==3)))&&(a17==2))&&((a1==14)&&(!(a8==1)&&((a23==1)&&((a16==9)&&(!(a8==1)&&(((input==4)&&!(a20==1))&&!(a8==1))))))))){ + if((a24==1)){ + a1 = 12; + a20 = 1; + a26 = 1; + a13 = 0; + a9 = 10; + a16 = 7; + a19 = 2; + a2 = 0; + a5 = 4; + }else{ + a6 = 0; + a1 = 13; + a9 = 11; + a5 = 6; + a19 = 5; + a22 = 1; + a20 = 1; + a23 = 0; + a21 = 11; + a16 = 8; + } + return -1; + } else if((((a17==2)&&((a1==12)&&(((((input==5)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(a19==1))&&(a16==8))&&(a20==1))))&&(((a18==1)||((a3==1)&&((((!(a28==1)||(a28==1))&&(a21==12))&&(a28==1))||!(a2==1))))||!(a3==1)))){ + a27 = 0; + a9 = 7; + a2 = 1; + a4 = 0; + a5 = 4; + a16 = 7; + a21 = 10; + return -1; + } else if((((((a19==4)&&((a1==13)&&((!(a18==1)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==3)))&&(a16==7))))&&(a17==2))&&(a12==1))&&((((((a13==1)&&((a23==1)||(a26==1)))&&(a20==1))&&(a21==10))||(a26==1))&&(a28==1)))){ + a5 = 4; + a12 = 1; + a19 = 1; + a1 = 12; + a7 = 0; + a9 = 7; + return -1; + } else if((((a1==13)&&((a21==10)&&(!(a11==1)||(((a8==1)||((a3==1)||(a14==1)))||!(a28==1)))))&&((((a19==5)&&((a23==1)&&((a11==1)&&((a17==2)&&(((input==3)&&!(a20==1))&&(a9==11))))))&&(a16==8))&&(a5==6)))){ + a7 = 0; + a9 = 7; + a19 = 1; + a23 = 1; + a20 = 1; + a1 = 12; + a5 = 4; + a16 = 7; + a3 = 1; + return -1; + } else if((((!(a26==1)&&(((a9==9)&&(((((a16==11)&&((input==4)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a27==1))&&(a20==1))&&!(a7==1)))&&(a13==1)))&&(a21==12))&&(((a3==1)&&((((a11==1)&&(a19==4))&&(a1==14))&&!(a0==1)))&&(a17==2)))){ + a16 = 7; + a14 = 0; + a19 = 3; + a3 = 1; + a21 = 11; + a6 = 1; + a5 = 4; + return 23; + } else if((((a20==1)&&((a6==1)&&((a17==2)&&((a13==1)&&((((a2==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))&&(a19==1))&&(a16==10))))))&&((a26==1)||((((a12==1)&&(((a21==10)&&(a13==1))&&(a1==13)))||(a27==1))&&(a9==11))))){ + a20 = 0; + a18 = 0; + a5 = 6; + a3 = 1; + a21 = 11; + a8 = 0; + a16 = 8; + return 25; + } else if((((!(a27==1)&&((!(a24==1)&&(((((a19==1)&&((a9==11)&&((a1==14)&&(a5==6))))||(((a9==7)&&((a1==12)&&(a5==4)))&&(a19==2)))||((((a1==12)&&(a5==5))&&(a9==7))&&(a19==2)))&&(input==5)))&&(a20==1)))&&(a13==1))&&(((a16==10)&&((a3==1)&&(((a27==1)||((a21==11)&&(a6==1)))&&(a17==2))))||!(a13==1)))){ + a9 = 7; + a28 = 1; + a19 = 1; + a5 = 4; + a16 = 7; + a1 = 12; + a21 = 10; + a6 = 1; + return -1; + } else if((((a12==1)&&((!(a27==1)&&((a1==14)&&(((input==3)&&(a16==9))&&(a21==11))))&&!(a0==1)))&&(((((a19==3)&&(!(a20==1)&&((((a27==1)||(a6==1))&&(a5==5))&&(a17==2))))&&(a12==1))&&!(a24==1))&&(a9==8)))){ + a1 = 13; + a21 = 10; + a9 = 9; + a16 = 7; + a8 = 1; + a12 = 0; + a10 = 0; + a5 = 4; + a20 = 1; + a19 = 1; + return -1; + } else if((((a21==10)&&(((a1==13)&&(((!(a24==1)&&(a6==1))&&!(a20==1))&&(a28==1)))&&(a17==2)))&&((a16==9)&&(!(a24==1)&&((a9==11)&&(((a19==4)&&((!(a18==1)&&(((a5==5)||(a5==6))&&(input==5)))&&(a6==1)))&&(a11==1))))))){ + a16 = 10; + a29 = 1; + a23 = 0; + a20 = 1; + a19 = 3; + a18 = 1; + a9 = 7; + a5 = 4; + return 21; + } else if((((a16==7)&&(((a20==1)&&((((a2==1)&&(!(a26==1)&&((a17==2)&&(((input==1)&&((a5==4)||(a5==5)))&&!(a26==1)))))&&!(a14==1))&&(a1==12)))&&(a21==12)))&&((((!(a7==1)&&(a2==1))&&(a19==1))||!(a6==1))&&(a9==11)))){ + a27 = 0; + a21 = 10; + a11 = 1; + a9 = 7; + a5 = 4; + return -1; + } else if((((((a16==8)&&((((!(a27==1)&&(a3==1))||!(a6==1))&&(a20==1))&&(a17==2)))&&!(a24==1))&&(a6==1))&&((a21==12)&&(((((a12==1)&&(((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))&&(input==6)))&&(a2==1))&&(a1==13))&&(a19==4))))){ + a16 = 10; + a5 = 5; + a1 = 12; + a9 = 7; + a2 = 1; + a12 = 1; + return 22; + } else if((((a7==1)||((!(a14==1)&&(((a2==1)&&(a28==1))&&(a17==2)))&&(a12==1)))&&(!(a14==1)&&(((a28==1)&&((((input==4)&&((((a19==4)&&(((a1==14)&&(a5==6))&&(a9==11)))||((a19==5)&&(((a1==12)&&(a5==4))&&(a9==7))))||((((a5==5)&&(a1==12))&&(a9==7))&&(a19==5))))&&(a16==8))&&(a21==11)))&&(a20==1))))){ + a16 = 7; + a5 = 4; + a19 = 1; + a9 = 7; + a11 = 1; + a1 = 12; + a0 = 0; + a21 = 10; + return -1; + } else if((((a19==5)&&((a20==1)&&((!(a18==1)&&((a6==1)&&(!(a8==1)&&(!(a7==1)&&((a12==1)&&((input==6)&&(((((a5==5)&&(a1==13))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==13))))||((a9==7)&&((a1==14)&&(a5==4))))))))))&&(a11==1))))&&(((a16==7)&&((a17==2)&&(a2==1)))&&(a21==10)))){ + a3 = 1; + a5 = 6; + a1 = 12; + a19 = 4; + a7 = 0; + a8 = 0; + a9 = 9; + a21 = 12; + return 21; + } else if((((!(a7==1)&&((a21==11)&&((((input==3)&&((a5==5)||(a5==6)))&&!(a18==1))&&!(a20==1))))&&(a9==10))&&((a16==8)&&(((a11==1)&&((a27==1)||((a23==1)&&((a1==12)&&(((a3==1)&&(a17==2))&&(a19==4))))))||(a8==1))))){ + a19 = 1; + a20 = 1; + a21 = 10; + a5 = 4; + a9 = 7; + a16 = 7; + a27 = 0; + a18 = 0; + a8 = 0; + return -1; + } else if((((a9==10)&&((a18==1)||((((a17==2)&&(((((a16==8)&&((a6==1)&&(a12==1)))&&(a19==3))||!(a11==1))||!(a13==1)))&&(a20==1))&&(a11==1))))&&((a21==12)&&(!(a7==1)&&((a1==13)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4))))))){ + a1 = 12; + a4 = 0; + a5 = 4; + a21 = 10; + a19 = 1; + a7 = 0; + a9 = 7; + a18 = 0; + a16 = 7; + return -1; + } else if((((a17==2)&&((a1==12)&&(((((a16==8)&&((a21==12)&&((a12==1)||!(a13==1))))&&(a13==1))&&!(a0==1))||!(a23==1))))&&((a13==1)&&(((a5==4)&&((((a19==5)&&(input==6))&&(a9==10))&&!(a8==1)))&&!(a20==1))))){ + if((a13==1)){ + a19 = 4; + a16 = 7; + a1 = 13; + a9 = 7; + a25 = 0; + a15 = 0; + a8 = 1; + a5 = 6; + a21 = 10; + }else{ + a29 = 1; + a9 = 7; + a20 = 1; + a21 = 10; + a16 = 11; + a18 = 1; + a25 = 1; + a1 = 13; + a5 = 5; + a19 = 1; + } + return -1; + } else if(((((a1==14)&&((((a21==10)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))&&!(a4==1))&&(a17==2)))&&(a16==8))&&((((a24==1)||(!(a20==1)&&(((((a19==2)&&(a12==1))&&(a11==1))&&(a9==7))||(a27==1))))||!(a11==1))&&!(a24==1)))){ + a24 = 0; + a4 = 0; + a19 = 1; + a14 = 0; + a16 = 7; + a20 = 1; + a1 = 12; + a5 = 4; + return -1; + } else if(((((!(a2==1)||(!(a28==1)||((a5==6)&&(((a16==7)&&(a3==1))&&(a23==1)))))&&!(a26==1))&&!(a20==1))&&(((a17==2)&&((!(a0==1)&&(((a21==12)&&((a19==1)&&(input==5)))&&(a1==12)))&&!(a18==1)))&&(a9==7)))){ + a13 = 1; + a11 = 1; + a20 = 1; + a21 = 10; + a5 = 4; + a12 = 1; + return -1; + } else if((((((a5==4)||(a5==5))&&(input==6))&&(a1==12))&&((a17==2)&&(((a21==11)&&((a19==5)&&((((!(a28==1)||(!(a6==1)||((a16==9)&&((a4==1)||(!(a28==1)||(a12==1))))))||!(a11==1))&&(a9==9))||(a24==1))))&&!(a20==1))))){ + a20 = 1; + a16 = 7; + a19 = 2; + a13 = 0; + a23 = 0; + a21 = 10; + a14 = 1; + a5 = 6; + return 21; + } else if(((((a6==1)&&((a21==12)&&(((a16==7)&&((input==5)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a14==1))))&&!(a27==1))&&(!(a2==1)||((a26==1)||((a9==9)&&((a19==4)&&(((((a11==1)&&(a17==2))&&!(a20==1))&&(a1==12))||(a27==1)))))))){ + if((a12==1)){ + a21 = 10; + a19 = 5; + a5 = 5; + a28 = 1; + a9 = 11; + a13 = 1; + a4 = 0; + a16 = 8; + }else{ + a21 = 10; + a19 = 2; + a9 = 10; + a11 = 1; + a1 = 14; + a5 = 6; + a20 = 1; + a14 = 0; + a6 = 1; + } + return 21; + } else if(((!(a8==1)&&((a17==2)&&(((((a13==1)&&(a5==5))||!(a12==1))&&(a20==1))&&(a16==9))))&&((a28==1)&&(!(a8==1)&&((((((a19==2)&&((input==6)&&(a9==7)))&&(a21==11))&&(a1==13))&&(a12==1))&&!(a4==1)))))){ + a1 = 12; + a21 = 10; + a5 = 4; + a6 = 1; + a26 = 0; + a19 = 1; + a8 = 0; + a16 = 7; + return -1; + } else if((((a21==12)&&((a1==13)&&((((((a2==1)&&(((a17==2)&&((input==4)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))))&&(a16==7)))&&!(a26==1))&&(a12==1))&&!(a20==1))&&(a19==5))))&&(((a2==1)&&((a13==1)&&!(a24==1)))&&!(a0==1)))){ + a8 = 0; + a20 = 1; + a23 = 1; + a16 = 10; + a5 = 5; + a19 = 1; + a21 = 10; + a9 = 8; + a28 = 1; + return 21; + } else if((((a24==1)||((!(a6==1)||(((a1==13)&&(!(a28==1)||(a2==1)))&&(a21==11)))&&(a9==11)))&&((a12==1)&&((a19==2)&&((a16==11)&&((((a20==1)&&(!(a26==1)&&((input==6)&&((a5==4)||(a5==5)))))&&(a17==2))&&!(a0==1))))))){ + a14 = 0; + a5 = 4; + a19 = 1; + a21 = 10; + a18 = 0; + a9 = 7; + a16 = 7; + a1 = 12; + a28 = 1; + return -1; + } else if((((a14==1)&&((a18==1)&&(((((a1==12)&&(((a5==5)||(a5==6))&&(input==6)))&&(a16==9))&&!(a13==1))&&(a19==5))))&&(((a21==11)&&(((a20==1)&&((((a11==1)&&(a18==1))&&!(a28==1))&&(a17==2)))&&(a9==11)))&&!(a28==1)))){ + a22 = 1; + a16 = 7; + a1 = 14; + a9 = 7; + a24 = 1; + a25 = 0; + a5 = 4; + a21 = 10; + a19 = 1; + return -1; + } else if(((((((a21==10)&&(((a17==2)&&(a3==1))&&(a28==1)))&&(a23==1))&&!(a26==1))&&(a9==7))&&((a5==5)&&(!(a20==1)&&((a6==1)&&((((((a1==12)&&(input==1))&&!(a18==1))&&(a19==3))&&(a16==11))&&(a11==1))))))){ + a16 = 7; + a19 = 1; + a9 = 10; + a20 = 1; + a15 = 1; + a23 = 0; + a5 = 6; + a1 = 14; + return 23; + } else if(((!(a20==1)&&(!(a26==1)&&((a17==2)&&(!(a27==1)&&(!(a4==1)&&((input==4)&&((a5==6)||((a5==4)||(a5==5)))))))))&&((((a21==11)&&((a19==2)&&(((a9==11)&&(((a8==1)||(a28==1))&&!(a8==1)))&&!(a4==1))))&&(a1==12))&&(a16==8)))){ + a9 = 7; + a19 = 1; + a20 = 1; + a21 = 10; + a27 = 0; + a14 = 0; + a5 = 4; + a16 = 7; + a26 = 0; + return -1; + } else if((((!(a3==1)||((a19==4)&&(!(a2==1)||((a27==1)||((a11==1)&&(a16==8))))))||(a4==1))&&(!(a24==1)&&((a20==1)&&((a17==2)&&((a2==1)&&((a21==10)&&(((((a1==13)&&(a5==4))&&(a9==7))||(((a9==11)&&((a5==5)&&(a1==12)))||((a9==11)&&((a1==12)&&(a5==6)))))&&(input==5))))))))){ + a11 = 1; + a0 = 0; + a16 = 10; + a9 = 10; + a1 = 12; + a19 = 1; + a5 = 5; + return 22; + } else if((((((a21==11)&&(!(a7==1)&&((a16==11)&&((input==4)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))))))&&(a13==1))&&(a17==2))&&(((((a19==2)&&(((a1==14)&&((a3==1)&&(a12==1)))&&!(a4==1)))&&(a20==1))||!(a3==1))&&!(a14==1)))){ + a21 = 10; + a19 = 1; + a16 = 7; + a1 = 12; + a9 = 7; + a7 = 0; + a5 = 4; + a12 = 1; + a8 = 0; + return -1; + } else if(((((a27==1)&&(((a23==1)&&(a24==1))&&(a9==10)))&&(a24==1))&&(((((a20==1)&&((a4==1)&&((a21==11)&&((((a5==5)&&((a19==2)&&(input==1)))&&(a1==13))&&(a17==2)))))&&(a16==11))&&!(a6==1))&&!(a3==1)))){ + a29 = 0; + a10 = 1; + a21 = 10; + a24 = 1; + a9 = 11; + a1 = 12; + a16 = 7; + return -1; + } else if((((a23==1)&&(((a3==1)&&((a20==1)&&((a28==1)&&(!(a27==1)&&((input==4)&&((((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8))))))))&&(a1==13)))&&((a21==10)&&((a17==2)&&(((((a16==9)&&(a11==1))&&!(a18==1))&&(a19==1))&&!(a8==1)))))){ + a14 = 0; + a5 = 4; + a1 = 12; + a7 = 0; + a16 = 7; + a0 = 0; + a9 = 7; + return -1; + } else if(((((((a19==3)&&((a13==1)&&(!(a4==1)&&((((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6))))&&(input==3)))))&&(a6==1))&&(a17==2))&&(a20==1))&&((a1==14)&&((a4==1)||((!(a24==1)&&(((a2==1)&&(a16==7))&&(a21==12)))||!(a6==1)))))){ + if((a3==1)){ + a5 = 5; + a20 = 0; + a13 = 1; + a21 = 11; + a26 = 0; + a16 = 8; + a9 = 11; + a6 = 1; + }else{ + a7 = 0; + a19 = 4; + a9 = 9; + a5 = 5; + a3 = 1; + a26 = 0; + a16 = 8; + } + return 25; + } else if((((!(a20==1)&&(((((((a2==1)&&!(a14==1))&&(a28==1))&&(a13==1))&&(a1==14))&&(a17==2))&&(a5==4)))||(a27==1))&&((((((a13==1)&&((a16==8)&&(input==5)))&&(a9==11))&&!(a24==1))&&(a21==11))&&(a19==5)))){ + a10 = 0; + a3 = 0; + a21 = 10; + a1 = 13; + a14 = 1; + a20 = 1; + a16 = 7; + a19 = 1; + a9 = 7; + return -1; + } else if(((((a20==1)&&((!(a7==1)&&((((a16==9)&&(a13==1))&&(a19==1))&&(a12==1)))&&(a21==12)))&&(a1==12))&&((a9==9)&&(((a17==2)&&(!(a18==1)&&((a11==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a12==1)))))&&(a28==1))))){ + a9 = 7; + a21 = 10; + a5 = 4; + a27 = 0; + a16 = 7; + a26 = 0; + a11 = 1; + return -1; + } else if((((a19==4)&&((a9==11)&&((a7==1)||((!(a24==1)&&((a20==1)&&((a21==10)&&(a12==1))))&&(a16==11)))))&&((((a1==12)&&((((((a5==4)||(a5==5))&&(input==1))&&!(a4==1))&&(a17==2))&&!(a8==1)))&&(a13==1))&&!(a24==1)))){ + a9 = 10; + a13 = 1; + a8 = 0; + a21 = 11; + a11 = 1; + a19 = 3; + a1 = 14; + a5 = 5; + return 23; + } else if((((((a21==10)&&((a3==1)&&(((a17==2)&&((input==6)&&((a5==5)||(a5==6))))&&(a19==3))))&&(a20==1))&&(a6==1))&&((((((((a28==1)&&!(a27==1))||!(a2==1))&&(a1==13))&&(a6==1))&&!(a27==1))&&(a16==8))&&(a9==10)))){ + a9 = 7; + a4 = 0; + a13 = 1; + a21 = 12; + a16 = 9; + a5 = 4; + a19 = 5; + a3 = 1; + return 25; + } else if((((a17==2)&&((a16==8)&&((a8==1)||((a28==1)&&((((((a6==1)||(a18==1))&&(a28==1))&&(a19==3))&&(a23==1))&&(a1==14))))))&&((!(a4==1)&&((a21==12)&&((((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(input==5))))&&!(a20==1)))){ + a6 = 0; + a16 = 10; + a20 = 1; + a9 = 8; + a19 = 1; + a21 = 10; + a5 = 6; + a1 = 12; + a10 = 1; + return -1; + } else if(((!(a7==1)&&((a2==1)&&(((a23==1)&&((a1==14)&&((input==5)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))))&&!(a18==1))))&&(((a19==5)&&((((((a12==1)&&(a16==11))&&(a21==12))&&(a20==1))&&(a17==2))&&(a23==1)))&&(a28==1)))){ + if((a7==1)){ + a16 = 8; + a14 = 0; + a20 = 0; + a2 = 1; + a7 = 0; + a5 = 4; + a9 = 8; + a21 = 10; + a19 = 1; + }else{ + a5 = 5; + a13 = 1; + a12 = 1; + a20 = 0; + a19 = 1; + a21 = 10; + a9 = 9; + a4 = 0; + a16 = 7; + } + return 25; + } else if((((a20==1)&&((a28==1)&&((a17==2)&&((input==4)&&((a5==5)||(a5==6))))))&&((a21==11)&&((a16==10)&&((a9==7)&&(!(a23==1)||(((((a2==1)&&((a19==2)&&(!(a3==1)||(a13==1))))&&(a2==1))&&(a1==13))&&(a6==1)))))))){ + a21 = 10; + a5 = 4; + a4 = 0; + a19 = 3; + a1 = 12; + a16 = 9; + a28 = 1; + a27 = 0; + return 25; + } else if(((((((a16==10)&&(a23==1))&&(a17==2))||!(a11==1))||!(a6==1))&&(((a11==1)&&((a11==1)&&(((a3==1)&&(((input==3)&&((((a19==2)&&(((a1==14)&&(a5==5))&&(a9==11)))||((((a1==14)&&(a5==6))&&(a9==11))&&(a19==2)))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==3))))&&(a21==11)))&&!(a20==1))))&&!(a26==1)))){ + a21 = 12; + a19 = 2; + a1 = 13; + a22 = 1; + a16 = 9; + a5 = 6; + a6 = 0; + a25 = 1; + a9 = 11; + return 25; + } else if(((((((((a28==1)&&(a12==1))||!(a2==1))&&!(a4==1))||!(a28==1))&&!(a20==1))&&(a16==10))&&(((a21==12)&&((a9==7)&&((a5==4)&&(!(a7==1)&&(((a19==4)&&((a1==14)&&(input==4)))&&(a3==1))))))&&(a17==2)))){ + a19 = 5; + a6 = 0; + a3 = 0; + a28 = 0; + a9 = 8; + return -1; + } else if(((((((a9==7)&&(!(a26==1)&&(((a5==4)&&(((input==1)&&(a21==11))&&(a11==1)))&&(a16==8))))&&!(a20==1))&&(a11==1))&&(a2==1))&&(((((a17==2)&&((a3==1)&&(a19==2)))&&(a1==13))||(a14==1))&&(a28==1)))){ + a11 = 1; + a1 = 12; + a19 = 1; + a28 = 1; + a20 = 1; + a21 = 10; + a16 = 7; + a24 = 0; + return -1; + } else if((((a20==1)&&((a2==1)&&((a3==1)&&((a11==1)&&((a21==11)&&(((input==1)&&((a5==4)||(a5==5)))&&(a9==8)))))))&&((((a0==1)||(((((a13==1)&&(a1==14))&&(a17==2))&&(a16==7))&&(a6==1)))||!(a6==1))&&(a19==4)))){ + a5 = 6; + a16 = 8; + a27 = 0; + a14 = 0; + a3 = 1; + a9 = 9; + return 21; + } else if((((!(a18==1)&&(((a17==2)&&(!(a20==1)&&((!(a8==1)&&((input==3)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))))&&(a21==10))))&&(a19==5)))&&(a6==1))&&((a24==1)||((((!(a23==1)||(a23==1))&&(a1==14))&&(a12==1))&&(a16==7))))){ + a9 = 8; + a12 = 1; + a8 = 0; + a5 = 4; + a1 = 13; + a7 = 0; + a20 = 1; + a16 = 10; + a21 = 12; + a19 = 4; + return 21; + } else if((((a21==12)&&((((!(a0==1)&&(!(a20==1)&&(a6==1)))&&(a16==8))&&!(a24==1))&&(a5==5)))&&(((a19==5)&&((((a13==1)&&((a3==1)&&(!(a24==1)&&((input==5)&&(a1==14)))))&&(a9==9))&&!(a18==1)))&&(a17==2)))){ + if((a7==1)){ + a20 = 1; + a12 = 0; + a10 = 1; + a19 = 1; + a16 = 7; + a21 = 10; + a22 = 1; + a9 = 8; + a5 = 6; + a1 = 13; + }else{ + a1 = 13; + a5 = 4; + a7 = 1; + a16 = 9; + a8 = 1; + a19 = 1; + a9 = 10; + a3 = 0; + } + return 26; + } else if((((a1==12)&&((a21==11)&&((a19==2)&&(!(a14==1)&&((a12==1)&&((a23==1)&&((a16==9)&&((((input==6)&&(((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))&&(a12==1))&&(a12==1)))))))))&&((((a20==1)&&(a12==1))&&(a17==2))||(a8==1)))){ + if((a11==1)){ + a21 = 10; + a4 = 0; + a16 = 7; + a20 = 0; + a1 = 14; + a8 = 0; + a9 = 9; + a5 = 6; + a19 = 5; + }else{ + a19 = 4; + a21 = 10; + a24 = 0; + a9 = 9; + a12 = 1; + a16 = 8; + a3 = 1; + a5 = 4; + a20 = 0; + } + return 23; + } else if(((((a4==1)&&((a21==11)&&(!(a20==1)&&((a1==12)&&((a14==1)&&((a23==1)&&(a17==2)))))))&&!(a2==1))&&(((a24==1)&&(((a16==7)&&((a19==5)&&((a9==8)&&(((a5==5)||(a5==6))&&(input==1)))))&&(a24==1)))&&!(a13==1)))){ + a4 = 1; + a21 = 10; + a9 = 11; + a19 = 4; + a5 = 5; + a18 = 1; + a15 = 0; + return 22; + } else if((((a17==2)&&(((a19==1)&&((a20==1)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a3==1))&&(a3==1))&&(a21==12))))&&(a1==13)))&&((a9==11)&&(((a16==9)&&((a24==1)||((!(a28==1)||(a28==1))&&!(a7==1))))||!(a11==1))))){ + a5 = 6; + a16 = 10; + a4 = 0; + a12 = 1; + a19 = 4; + a24 = 0; + a21 = 11; + a1 = 14; + a9 = 8; + return 25; + } else if(((!(a4==1)&&(!(a4==1)&&(!(a20==1)&&((a1==13)&&(!(a24==1)&&(((input==4)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(a23==1)))))))&&(((a21==11)&&((((a17==2)&&((a23==1)&&(a19==5)))||(a24==1))&&(a28==1)))&&(a16==10)))){ + if((a19==2)){ + a21 = 10; + a6 = 0; + a19 = 1; + a5 = 6; + a9 = 11; + a20 = 1; + a1 = 14; + a24 = 1; + a16 = 7; + a10 = 1; + }else{ + a9 = 11; + a5 = 5; + a21 = 10; + a16 = 7; + a19 = 1; + a12 = 0; + a14 = 1; + a20 = 1; + } + return -1; + } else if(((((a19==5)&&((a20==1)&&((a6==1)&&((a1==13)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==6))))))&&(a28==1))&&(((a2==1)&&((((((a2==1)&&(a16==10))&&(a21==12))||!(a6==1))&&(a17==2))&&(a11==1)))||(a0==1)))){ + a19 = 2; + a3 = 1; + a18 = 0; + a16 = 7; + a5 = 5; + a12 = 1; + a9 = 9; + a21 = 10; + return -1; + } else if(((((((a21==10)&&(!(a27==1)&&((a23==1)&&((a20==1)&&(((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a19==3))))))&&(a13==1))&&(a11==1))&&(a1==12))&&((a9==7)&&((a16==7)&&((!(a12==1)||((a17==2)&&(a12==1)))||!(a11==1)))))){ + a19 = 4; + a16 = 8; + a1 = 13; + a2 = 1; + a5 = 6; + a21 = 11; + a9 = 11; + a26 = 0; + a20 = 0; + return 21; + } else if(((((!(a13==1)&&((a8==1)&&((a1==13)&&((!(a12==1)&&(a28==1))&&!(a20==1)))))&&(a16==8))&&(a24==1))&&((a26==1)&&(((a21==11)&&(!(a11==1)&&(((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==5))&&(a19==2))))&&(a17==2))))){ + a6 = 0; + a9 = 8; + a5 = 4; + a1 = 12; + a16 = 7; + a19 = 4; + a14 = 1; + a25 = 1; + return -1; + } else if(((!(a18==1)&&(((a6==1)&&((a17==2)&&((a16==7)&&((a26==1)||((a12==1)&&(a19==1))))))||!(a2==1)))&&((((a1==13)&&(!(a14==1)&&((a28==1)&&((input==4)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))))))&&!(a20==1))&&(a21==12)))){ + a5 = 4; + a6 = 1; + a2 = 1; + a27 = 0; + a9 = 7; + a21 = 10; + a20 = 1; + a1 = 12; + return -1; + } else if(((!(a14==1)&&(!(a18==1)&&((a16==9)&&(!(a8==1)&&((a2==1)&&((a17==2)&&(((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a5==4)&&(a9==10)))&&(input==6))))))))&&(!(a27==1)&&((((((a20==1)&&(a11==1))&&(a1==12))&&(a21==11))&&(a28==1))&&(a19==5))))){ + a13 = 1; + a14 = 0; + a9 = 10; + a5 = 4; + a23 = 1; + a1 = 14; + a19 = 2; + return 21; + } else if(((!(a24==1)&&(((((a17==2)&&(a2==1))&&(a1==12))||!(a3==1))&&(a21==10)))&&((!(a7==1)&&(((((((input==3)&&(((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))))&&(a19==2))&&(a11==1))&&(a20==1))&&(a16==11))&&!(a26==1)))&&!(a4==1)))){ + a16 = 7; + a14 = 0; + a23 = 1; + a5 = 4; + a19 = 1; + a9 = 7; + a2 = 1; + return -1; + } else if((((a5==5)&&(((!(a23==1)||((a0==1)||((a9==10)&&(a28==1))))&&(a28==1))&&(a20==1)))&&((a16==11)&&((a21==12)&&((a1==12)&&(!(a4==1)&&((a17==2)&&((a13==1)&&(!(a14==1)&&((input==1)&&(a19==1))))))))))){ + a5 = 4; + a21 = 10; + a8 = 0; + a4 = 0; + a9 = 7; + a16 = 7; + a18 = 0; + return -1; + } else if((((a23==1)&&(!(a0==1)&&((a12==1)&&((!(a8==1)&&((a13==1)&&((a9==10)&&((a16==10)&&(input==1)))))&&!(a8==1)))))&&(((((((a13==1)&&(a21==12))&&(a1==13))&&(a17==2))&&(a19==2))&&(a5==4))&&!(a20==1)))){ + a16 = 8; + a5 = 6; + a20 = 1; + a21 = 11; + a0 = 1; + a9 = 11; + a1 = 12; + a22 = 0; + a25 = 1; + return -1; + } else if((((a19==2)&&(((a14==1)&&((a18==1)&&((((a3==1)&&(a4==1))&&!(a3==1))&&(a1==13))))&&(a21==11)))&&((a20==1)&&((a27==1)&&(((a17==2)&&((a16==9)&&((input==3)&&((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4))))))&&(a14==1)))))){ + a19 = 1; + a16 = 7; + a21 = 10; + a9 = 11; + a3 = 0; + a15 = 0; + a22 = 1; + a5 = 4; + a1 = 14; + return -1; + } else if(((!(a27==1)&&((!(a28==1)||((a3==1)&&((((a23==1)&&(a12==1))&&(a16==7))&&(a9==7))))&&(a17==2)))&&((a1==13)&&(((a19==2)&&(((a6==1)&&((a21==11)&&(((a5==5)||(a5==6))&&(input==4))))&&(a11==1)))&&!(a20==1))))){ + a20 = 1; + a9 = 8; + a21 = 10; + a26 = 0; + a11 = 1; + a16 = 10; + a5 = 4; + a4 = 0; + a19 = 4; + return 25; + } else if((((((a6==1)&&((a9==9)&&(!(a14==1)&&((((input==4)&&(a16==9))&&(a19==3))&&!(a27==1)))))&&!(a20==1))&&(a17==2))&&((((!(a0==1)&&(!(a24==1)&&((a6==1)||(a26==1))))&&(a5==6))&&(a1==13))&&(a21==10)))){ + if((a12==1)){ + a16 = 7; + a20 = 1; + a15 = 1; + a7 = 1; + a5 = 4; + a1 = 12; + a24 = 1; + a21 = 12; + a9 = 8; + }else{ + a16 = 7; + a19 = 1; + a20 = 1; + a28 = 0; + a15 = 0; + a9 = 8; + a29 = 1; + } + return -1; + } else if((((a16==10)&&((a18==1)||(!(a2==1)||(a2==1))))&&(!(a18==1)&&((a21==12)&&(((a9==8)&&(((((a19==4)&&((a3==1)&&(((a1==13)&&(input==6))&&!(a8==1))))&&(a5==6))&&!(a20==1))&&!(a7==1)))&&(a17==2)))))){ + a21 = 10; + a9 = 9; + a20 = 1; + a0 = 1; + a4 = 1; + a16 = 7; + a22 = 0; + a1 = 14; + a19 = 1; + return -1; + } else if((((!(a18==1)&&((a6==1)&&((((!(a4==1)&&(!(a20==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5))))))&&!(a4==1))&&(a19==4))&&(a3==1))))&&(a17==2))&&(((a9==8)&&((((a6==1)&&(a21==12))&&(a1==14))||!(a28==1)))&&(a16==8)))){ + if((a9==11)){ + a20 = 1; + a19 = 1; + a2 = 0; + a6 = 0; + a21 = 10; + a9 = 9; + a1 = 12; + a16 = 7; + a5 = 5; + a25 = 1; + }else{ + a22 = 1; + a16 = 7; + a19 = 1; + a21 = 10; + a9 = 11; + a5 = 5; + a18 = 1; + a20 = 1; + a27 = 1; + } + return -1; + } else if((((a18==1)||(!(a7==1)&&(((!(a3==1)||(((a21==12)&&((a5==6)&&(a28==1)))&&(a28==1)))&&(a1==12))&&(a16==9))))&&(!(a24==1)&&((!(a20==1)&&(((a9==10)&&((a19==2)&&(input==4)))&&!(a14==1)))&&(a17==2))))){ + if((a21==10)){ + a26 = 1; + a5 = 4; + a8 = 1; + a21 = 11; + a19 = 3; + }else{ + a21 = 10; + a16 = 7; + a20 = 1; + a10 = 1; + a29 = 0; + a1 = 14; + a19 = 1; + a9 = 7; + a22 = 0; + } + return -1; + } else if(((((((((((a5==5)||(a5==6))&&(input==3))&&!(a18==1))&&(a21==11))&&(a16==11))&&(a13==1))&&(a9==10))&&!(a26==1))&&(((((((!(a12==1)||(a28==1))&&(a20==1))&&(a2==1))&&(a6==1))&&(a19==3))&&(a1==12))&&(a17==2)))){ + a7 = 0; + a9 = 7; + a19 = 1; + a18 = 0; + a5 = 4; + a14 = 0; + a21 = 10; + a16 = 7; + return -1; + } else if(((((a20==1)&&((a16==9)&&((((a1==13)&&((a13==1)&&((a6==1)&&((input==3)&&((a5==5)||(a5==6))))))&&!(a14==1))&&(a9==11))))&&!(a14==1))&&((a21==12)&&((((a6==1)&&((a13==1)&&(a19==3)))&&(a17==2))&&!(a24==1))))){ + a14 = 0; + a16 = 7; + a12 = 1; + a1 = 12; + a19 = 1; + a5 = 4; + a2 = 1; + a9 = 7; + a21 = 10; + return -1; + } else if((((a12==1)&&(((a17==2)&&((((((a20==1)&&(input==3))&&(a21==12))&&(a2==1))&&(a19==3))&&(a5==4)))&&(a13==1)))&&((((a9==9)&&(!(a11==1)||(((a6==1)||!(a23==1))&&(a1==14))))&&(a16==7))||!(a23==1)))){ + a21 = 10; + a9 = 7; + a1 = 12; + a11 = 1; + a3 = 1; + a19 = 1; + return -1; + } else if((((((a16==10)&&(((a20==1)&&((a21==11)&&(((input==1)&&((a5==5)||(a5==6)))&&(a19==2))))&&!(a14==1)))&&(a1==13))&&(a12==1))&&((!(a4==1)&&(!(a27==1)&&((a17==2)&&(((a2==1)&&(a9==9))||(a27==1)))))&&(a12==1)))){ + a16 = 7; + a19 = 1; + a5 = 4; + a26 = 0; + a9 = 7; + a8 = 0; + a1 = 12; + a21 = 10; + a7 = 0; + return -1; + } else if(((!(a26==1)&&(((input==4)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8))))&&(a1==14)))&&((a17==2)&&((!(a28==1)||(((((a21==10)&&((a11==1)&&(((a16==10)&&(a28==1))||!(a23==1))))||!(a28==1))&&(a20==1))||!(a2==1)))&&(a19==5))))){ + a9 = 7; + a5 = 4; + a3 = 1; + a7 = 0; + a16 = 7; + a1 = 12; + a14 = 0; + a19 = 1; + return -1; + } else if((((a1==14)&&((a21==12)&&(((a13==1)&&((((a19==1)&&((a3==1)&&(((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a5==4)&&(a9==8)))&&(input==1))))&&(a16==8))&&(a2==1)))&&!(a7==1))))&&(!(a24==1)&&((a17==2)&&(((a12==1)&&!(a14==1))&&(a20==1)))))){ + a21 = 10; + a1 = 12; + a13 = 1; + a5 = 4; + a3 = 1; + a16 = 7; + a9 = 7; + a14 = 0; + return -1; + } else if((((a21==10)&&((a1==14)&&(((a9==8)&&((a16==8)&&(((a5==6)&&((a17==2)&&(input==4)))&&(a19==1))))&&!(a20==1))))&&(!(a2==1)||((a13==1)&&((a24==1)||((a12==1)&&(((a6==1)&&!(a7==1))||(a27==1)))))))){ + a1 = 12; + a9 = 7; + a12 = 1; + a16 = 7; + a28 = 1; + a20 = 1; + a5 = 4; + a3 = 1; + return -1; + } else if((((a21==10)&&(!(a4==1)&&((a9==7)&&((a20==1)&&(!(a0==1)&&((a11==1)&&((a19==5)&&(input==4))))))))&&((((a18==1)||(!(a0==1)&&(!(a4==1)&&((a1==13)&&((a16==8)&&(a6==1))))))&&(a17==2))&&(a5==4)))){ + a1 = 12; + a8 = 0; + a0 = 0; + a9 = 9; + a26 = 0; + return -1; + } else if((((((a19==5)&&((a3==1)&&(a21==10)))||(a14==1))&&!(a14==1))&&(!(a26==1)&&((a11==1)&&(((a1==14)&&((a3==1)&&((a20==1)&&((((((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(input==4))&&(a17==2))&&(a16==10)))))&&!(a27==1)))))){ + a16 = 7; + a4 = 0; + a1 = 12; + a3 = 1; + a19 = 1; + a5 = 4; + a2 = 1; + a9 = 7; + return -1; + } else if((((((((input==1)&&(a21==10))&&(a16==9))&&(a5==6))&&(a6==1))&&(a11==1))&&((a13==1)&&((((a19==3)&&((((a17==2)&&(((a6==1)&&(a9==9))&&!(a20==1)))&&(a23==1))||(a0==1)))&&(a1==13))||(a18==1))))){ + a5 = 4; + a21 = 12; + a16 = 8; + a20 = 1; + a0 = 1; + a13 = 0; + a9 = 10; + a19 = 2; + return 26; + } else if((((((a19==3)&&(!(a26==1)&&((((((input==3)&&(((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))&&(a11==1))&&(a16==11))&&(a1==12))&&!(a7==1))))&&!(a0==1))&&(a17==2))&&(((((a21==12)&&(a3==1))||!(a12==1))&&(a20==1))&&(a3==1)))){ + a19 = 1; + a21 = 10; + a16 = 7; + a24 = 0; + a27 = 0; + a5 = 4; + a2 = 1; + a9 = 7; + return -1; + } else if(((((!(a0==1)&&(((a20==1)&&(((a13==1)||(a8==1))&&(a16==11)))||(a14==1)))&&(a3==1))&&(a17==2))&&((a1==14)&&(((a9==11)&&(((a12==1)&&((a2==1)&&(((a5==4)||(a5==5))&&(input==5))))&&(a21==11)))&&(a19==1))))){ + a9 = 7; + a13 = 1; + a0 = 0; + a5 = 4; + a21 = 10; + a16 = 7; + a1 = 12; + a7 = 0; + return -1; + } else if(((!(a24==1)&&((((((a1==13)&&(((((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6))))&&(input==1))&&(a16==9)))&&!(a18==1))&&(a19==1))&&!(a27==1))&&(a3==1)))&&((((((a12==1)&&(a20==1))&&!(a8==1))&&(a17==2))&&(a21==11))||!(a11==1)))){ + a5 = 5; + a19 = 4; + a2 = 1; + a16 = 10; + a6 = 1; + a1 = 12; + a26 = 0; + a9 = 8; + return 21; + } else if(((!(a20==1)&&(((a1==13)&&(!(a4==1)&&(((!(a27==1)&&((input==4)&&((a5==5)||(a5==6))))&&(a11==1))&&!(a0==1))))&&(a16==9)))&&((a21==10)&&((a17==2)&&((a9==9)&&((!(a24==1)&&((a27==1)||(a3==1)))&&(a19==2))))))){ + a9 = 11; + a5 = 6; + a8 = 1; + a16 = 7; + a7 = 1; + a20 = 1; + a24 = 1; + a1 = 12; + return 23; + } else if(((!(a26==1)&&((a6==1)&&((a1==13)&&((((a5==4)||(a5==5))&&(input==6))&&(a3==1)))))&&((!(a24==1)&&((a9==9)&&(((!(a18==1)&&((((a16==7)&&(a2==1))&&(a17==2))&&(a19==2)))||!(a2==1))&&(a21==10))))&&(a20==1)))){ + a9 = 11; + a5 = 4; + a11 = 1; + a7 = 0; + a16 = 8; + a19 = 5; + a1 = 12; + a24 = 0; + a20 = 0; + return 21; + } else if(((((!(a20==1)&&((((a16==10)&&(((a5==5)||(a5==6))&&(input==5)))&&(a11==1))&&(a19==5)))&&(a11==1))&&(a9==11))&&(((a21==12)&&(((!(a4==1)&&((!(a3==1)||(a11==1))&&!(a4==1)))&&(a12==1))&&(a1==13)))&&(a17==2)))){ + if((a7==1)){ + a16 = 7; + a19 = 1; + a10 = 1; + a1 = 14; + a5 = 5; + a9 = 9; + a0 = 1; + a20 = 1; + a21 = 10; + }else{ + a16 = 9; + a18 = 1; + a19 = 3; + a5 = 6; + a21 = 10; + a9 = 9; + a22 = 0; + a1 = 12; + a25 = 1; + } + return -1; + } else if((((!(a13==1)&&((((((a28==1)&&(a21==10))&&(a7==1))&&!(a3==1))&&(a16==9))&&(a20==1)))&&(a27==1))&&(((a17==2)&&((((a1==12)&&(!(a2==1)&&((input==3)&&((a5==4)||(a5==5)))))&&(a9==9))&&(a19==4)))&&(a27==1)))){ + a19 = 1; + a9 = 7; + a5 = 5; + a22 = 0; + a1 = 13; + a16 = 7; + a29 = 1; + a11 = 0; + return -1; + } else if(((((a6==1)&&(a16==11))&&(a20==1))&&((a12==1)&&(!(a4==1)&&(((((a28==1)&&((a19==4)&&((a9==11)&&(((a5==4)&&(((input==6)&&(a21==11))&&(a11==1)))&&(a3==1)))))&&(a11==1))&&(a17==2))&&(a1==13)))))){ + a24 = 0; + a7 = 0; + a19 = 5; + a28 = 1; + a16 = 9; + a1 = 12; + return 21; + } else if((((((a2==1)&&(a23==1))&&(a17==2))&&(a20==1))&&(!(a26==1)&&(((a9==7)&&(((a1==14)&&(((a16==8)&&((((a12==1)&&(((a5==4)||(a5==5))&&(input==5)))&&(a23==1))&&(a19==1)))&&(a12==1)))&&(a13==1)))&&(a21==10))))){ + a5 = 4; + a16 = 7; + a27 = 0; + a1 = 12; + a23 = 1; + a11 = 1; + return -1; + } else if((((((((input==6)&&((a5==4)||(a5==5)))&&!(a26==1))&&(a17==2))&&(a6==1))&&(a6==1))&&(!(a13==1)||((a21==12)&&((a1==12)&&((a18==1)||((a2==1)&&((a16==8)&&((a19==3)&&(((a20==1)&&(a2==1))&&(a9==7))))))))))){ + a13 = 1; + a11 = 1; + a21 = 10; + a19 = 1; + a16 = 7; + a5 = 4; + a14 = 0; + return -1; + } else if((((a1==14)&&(((a21==10)&&((a6==1)&&((!(a0==1)&&((((input==1)&&(a5==5))&&(a16==8))&&(a6==1)))&&!(a7==1))))&&(a13==1)))&&((a17==2)&&(((a9==8)&&(((a6==1)&&(a19==1))&&(a20==1)))||!(a13==1))))){ + a16 = 9; + a3 = 1; + a21 = 12; + a9 = 9; + a5 = 4; + a7 = 0; + a0 = 0; + a19 = 2; + return 21; + } else if((((a1==13)&&((a17==2)&&((a9==7)&&(!(a24==1)&&(!(a7==1)&&((input==3)&&((a5==5)||(a5==6))))))))&&(((a21==10)&&(((a6==1)&&((!(a11==1)||(((a6==1)&&(a28==1))&&!(a18==1)))&&(a19==1)))&&(a16==10)))&&!(a20==1)))){ + if((a23==1)){ + a1 = 12; + a9 = 11; + a18 = 1; + a5 = 4; + a2 = 0; + a16 = 7; + a20 = 1; + a19 = 2; + a26 = 1; + }else{ + a20 = 1; + a16 = 7; + a25 = 1; + a9 = 9; + a1 = 12; + a12 = 0; + a19 = 2; + a5 = 6; + a10 = 1; + } + return -1; + } else if(((((((((a19==5)&&(((a2==1)||!(a6==1))&&(a21==10)))&&(a16==9))||!(a6==1))&&!(a18==1))&&(a17==2))||!(a28==1))&&(!(a0==1)&&(((((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==4))&&(a20==1))&&!(a8==1))&&(a1==14))))){ + a1 = 12; + a23 = 1; + a19 = 1; + a5 = 4; + a3 = 1; + a9 = 7; + a2 = 1; + a16 = 7; + return -1; + } else if((((a16==7)&&(!(a7==1)&&((a21==12)&&((a1==14)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&(a9==10))&&!(a27==1))&&(a20==1))))))&&((a19==5)&&((a17==2)&&((!(a12==1)||((a26==1)||((a14==1)||(a12==1))))||(a27==1)))))){ + a27 = 0; + a26 = 0; + a19 = 1; + a5 = 4; + a1 = 12; + a21 = 10; + a9 = 7; + return -1; + } else if(((((a12==1)&&(((((a9==10)&&((input==4)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a20==1))&&(a11==1))&&(a13==1)))&&!(a24==1))&&((((a16==8)&&((a19==3)&&((a8==1)||(((a3==1)&&(a21==11))&&(a17==2)))))||(a18==1))&&(a1==12)))){ + a14 = 0; + a23 = 1; + a20 = 1; + a3 = 1; + a9 = 7; + a16 = 7; + a19 = 1; + a21 = 10; + a5 = 4; + return -1; + } else if(((((a9==10)&&(!(a14==1)&&(((a23==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&(a21==11))))&&(a19==2))&&(!(a3==1)||((a6==1)&&(((((a16==10)&&(((a12==1)||(a27==1))&&(a17==2)))||(a0==1))&&(a1==14))&&(a20==1)))))){ + a9 = 7; + a5 = 4; + a19 = 1; + a16 = 7; + a21 = 10; + a1 = 12; + a28 = 1; + a6 = 1; + a11 = 1; + return -1; + } else if(((((!(a28==1)&&((a6==1)&&(a16==9)))&&(a14==1))&&(a21==10))&&((a20==1)&&(((((a19==2)&&(((((a9==8)&&(((a5==5)||(a5==6))&&(input==4)))&&!(a2==1))&&(a26==1))&&!(a3==1)))&&(a27==1))&&(a17==2))&&(a1==14))))){ + a13 = 0; + a9 = 10; + a5 = 6; + a0 = 1; + a1 = 13; + return -1; + } else if(((((((((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10))))&&(input==4))&&!(a18==1))&&(a17==2))&&!(a8==1))&&(((a6==1)&&((a28==1)&&(((a11==1)&&(((a1==13)&&(((a12==1)&&(a20==1))&&(a16==9)))&&(a21==12)))&&(a19==2))))||(a18==1)))){ + a1 = 12; + a13 = 1; + a5 = 4; + a12 = 1; + a16 = 7; + a7 = 0; + a19 = 1; + a9 = 7; + a21 = 10; + return -1; + } else if(((!(a8==1)&&((((a3==1)&&((a5==5)&&(!(a20==1)&&((a1==13)&&(input==5)))))&&(a16==7))&&(a11==1)))&&((a3==1)&&(((a17==2)&&(((a19==1)&&((a9==10)&&(!(a26==1)&&(a28==1))))&&(a11==1)))&&(a21==11))))){ + a21 = 10; + a8 = 0; + a9 = 9; + a4 = 0; + a19 = 2; + a24 = 0; + a20 = 1; + a5 = 4; + return 25; + } else if(((((a23==1)&&((a16==10)&&((((!(a18==1)&&(a23==1))&&(a21==10))&&(a12==1))&&!(a27==1))))&&(a17==2))&&((a19==4)&&(((a1==13)&&(((a13==1)&&((input==6)&&(((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))))&&(a20==1)))&&!(a7==1))))){ + a16 = 9; + a21 = 12; + a19 = 3; + a27 = 0; + a1 = 12; + a9 = 9; + a8 = 0; + a5 = 4; + return 21; + } else if((((a4==1)||((a17==2)&&(!(a20==1)&&((a19==2)&&((a14==1)||(!(a26==1)&&((a23==1)&&(a9==10))))))))&&(!(a27==1)&&((a21==10)&&((a13==1)&&(!(a27==1)&&(((((a5==4)||(a5==5))&&(input==6))&&(a16==9))&&(a1==14)))))))){ + if((a13==1)){ + a19 = 1; + a20 = 1; + a16 = 7; + a4 = 1; + a14 = 1; + a2 = 0; + a1 = 13; + a5 = 4; + a9 = 7; + }else{ + a1 = 12; + a5 = 4; + a15 = 1; + a3 = 0; + a9 = 8; + a19 = 3; + a7 = 1; + } + return -1; + } else if((((a16==9)&&(((a20==1)&&(((!(a14==1)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6))))&&(a6==1))&&(a21==11)))&&(a11==1)))&&((a1==13)&&((a19==4)&&((!(a12==1)||((a26==1)||((a6==1)&&((a11==1)&&(a9==11)))))&&(a17==2)))))){ + a16 = 8; + a3 = 1; + a5 = 5; + a1 = 12; + a9 = 8; + a23 = 1; + a20 = 0; + a28 = 1; + return -1; + } else if((((a27==1)||((a8==1)||(!(a20==1)&&((a19==2)&&((a13==1)||!(a6==1))))))&&((a12==1)&&(!(a8==1)&&(((a21==10)&&((a12==1)&&((a17==2)&&(((a9==10)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&(a16==7)))))&&(a1==14)))))){ + a5 = 4; + a20 = 1; + a6 = 1; + a23 = 1; + a1 = 12; + a14 = 0; + a19 = 1; + a9 = 7; + return -1; + } else if((((a11==1)&&((((((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==4))&&(a17==2))&&!(a7==1))&&(a20==1))&&(a3==1)))&&(((a3==1)&&((a3==1)&&(((a19==3)&&(((a16==11)&&(a13==1))&&(a1==14)))&&(a21==10))))||(a24==1)))){ + a9 = 7; + a16 = 7; + a3 = 1; + a8 = 0; + a5 = 4; + a28 = 1; + a19 = 1; + a1 = 12; + return -1; + } else if((((a18==1)||(((a17==2)&&((a6==1)&&(((a20==1)&&(!(a12==1)||((a3==1)&&(a19==3))))&&(a21==10))))&&(a23==1)))&&((a16==9)&&((a12==1)&&((!(a18==1)&&((input==5)&&(((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))))&&(a1==13)))))){ + a21 = 11; + a11 = 1; + a1 = 12; + a5 = 5; + a28 = 1; + a16 = 10; + a23 = 1; + a9 = 9; + return 25; + } else if(((((a13==1)&&(a20==1))&&(a28==1))&&(((((a16==9)&&((((a21==11)&&(!(a7==1)&&(((((a19==2)&&(((a1==14)&&(a5==6))&&(a9==11)))||((a19==3)&&(((a1==12)&&(a5==4))&&(a9==7))))||(((a9==7)&&((a5==5)&&(a1==12)))&&(a19==3)))&&(input==6))))&&!(a14==1))&&(a17==2)))&&!(a7==1))&&(a12==1))&&(a11==1)))){ + a9 = 8; + a5 = 4; + a14 = 0; + a21 = 10; + a1 = 14; + a19 = 3; + a7 = 0; + a0 = 0; + a16 = 11; + return 26; + } else if(((!(a8==1)&&(((a19==3)&&((!(a20==1)&&((input==6)&&(((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))))&&(a23==1)))&&(a1==12)))&&(!(a27==1)&&((!(a3==1)||(((a16==9)&&((a17==2)&&((a3==1)&&(a2==1))))&&(a21==10)))||(a18==1))))){ + a9 = 11; + a23 = 0; + a8 = 1; + a28 = 0; + a20 = 1; + a19 = 2; + a5 = 6; + a16 = 8; + return -1; + } else if((((a1==13)&&((((a11==1)&&((a16==8)&&((a13==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4)))))&&!(a20==1))&&!(a14==1)))&&((a17==2)&&((a21==10)&&(((a6==1)&&((a18==1)||((a19==4)&&((a11==1)&&(a9==11)))))||!(a23==1)))))){ + a9 = 7; + a20 = 1; + a5 = 4; + a14 = 0; + a19 = 1; + a13 = 1; + a1 = 12; + a16 = 7; + a12 = 1; + return -1; + } else if(((!(a8==1)&&((a28==1)&&((a19==3)&&((a5==6)&&((((a16==7)&&(input==6))&&(a21==11))&&(a20==1))))))&&(((a28==1)&&(!(a24==1)&&((a28==1)&&((a9==9)&&(((a1==13)&&(a12==1))&&(a17==2))))))&&!(a14==1)))){ + a21 = 10; + a20 = 0; + a19 = 4; + a4 = 0; + a5 = 5; + a16 = 8; + a11 = 1; + a28 = 1; + return 21; + } else if(((((a20==1)&&(((a17==2)&&(((a4==1)&&((a24==1)&&(((input==5)&&(((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))))&&(a8==1))))&&(a1==13)))&&(a16==11)))&&(a21==11))&&(((((a19==4)&&(a3==1))&&!(a3==1))&&(a27==1))&&(a26==1)))){ + a9 = 11; + a26 = 1; + a16 = 7; + a19 = 1; + a8 = 1; + a21 = 10; + a5 = 4; + a1 = 12; + a22 = 1; + return -1; + } else if(((((a12==1)&&(!(a7==1)&&((a12==1)&&(((a16==10)&&(((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9)))&&(input==1)))&&(a19==3)))))&&!(a8==1))&&((a21==10)&&((((a20==1)&&(((a1==12)&&(a6==1))&&!(a7==1)))&&(a28==1))&&(a17==2))))){ + a9 = 9; + a1 = 14; + a26 = 0; + a16 = 11; + a0 = 0; + a19 = 5; + a4 = 0; + a5 = 4; + return 21; + } else if((((a19==3)&&((((((a28==1)&&(a28==1))&&(a12==1))&&(a9==9))&&(a3==1))&&(a5==5)))&&((!(a4==1)&&((((!(a26==1)&&(((input==5)&&(a20==1))&&(a16==9)))&&(a1==14))&&(a21==11))&&!(a26==1)))&&(a17==2)))){ + a1 = 12; + a5 = 4; + a9 = 8; + a23 = 1; + a16 = 11; + a0 = 0; + a19 = 4; + a21 = 10; + a3 = 1; + return 21; + } else if((((a17==2)&&(!(a20==1)&&((a19==1)&&((!(a7==1)&&((a12==1)&&(((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4)))&&(input==3))))&&(a2==1)))))&&((a16==9)&&((a21==10)&&((a1==12)&&((!(a18==1)&&(!(a7==1)&&(a3==1)))&&!(a8==1))))))){ + a29 = 0; + a16 = 7; + a26 = 1; + a5 = 6; + a20 = 1; + a9 = 8; + a12 = 0; + return -1; + } else if((((((a19==4)&&(((a3==1)&&((input==5)&&(a17==2)))&&(a6==1)))&&(a5==6))&&(a16==8))&&((((a21==12)&&((a24==1)||(!(a27==1)&&(((a1==12)&&((a28==1)||(a27==1)))&&(a20==1)))))||!(a11==1))&&(a9==10)))){ + if((a18==1)){ + a13 = 1; + a9 = 9; + a21 = 10; + a5 = 4; + a1 = 14; + a0 = 0; + a20 = 0; + a19 = 3; + a24 = 0; + }else{ + a16 = 10; + a14 = 0; + a9 = 9; + a19 = 3; + a4 = 0; + a1 = 13; + } + return 21; + } else if(((((!(a2==1)&&((a26==1)&&((a24==1)&&(((a1==13)&&(((a13==1)&&(a24==1))&&!(a20==1)))&&(a8==1)))))&&(a19==1))&&(a21==12))&&((a17==2)&&((a16==7)&&(((((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(input==6))&&(a8==1)))))){ + a21 = 10; + a19 = 2; + a5 = 4; + a9 = 7; + a3 = 0; + a1 = 12; + a14 = 1; + a20 = 1; + a29 = 0; + return -1; + } else if((((a20==1)&&((a9==10)&&((!(a18==1)&&(((a23==1)&&(a3==1))&&(a12==1)))&&(a1==12))))&&(((a16==7)&&((!(a18==1)&&((!(a8==1)&&((((a5==4)||(a5==5))&&(input==1))&&(a12==1)))&&(a19==1)))&&(a21==12)))&&(a17==2)))){ + a1 = 13; + a9 = 11; + a0 = 0; + a14 = 0; + a19 = 4; + a16 = 8; + a5 = 6; + a13 = 1; + return 22; + } else if(((((((a2==1)&&(!(a20==1)&&((a3==1)&&(((input==1)&&(a9==11))&&!(a8==1)))))&&(a1==14))&&(a13==1))&&(a17==2))&&((a16==9)&&(((a19==3)&&((a5==4)&&((a21==12)&&(!(a8==1)&&(a3==1)))))&&(a12==1))))){ + a11 = 0; + a19 = 1; + a18 = 1; + a9 = 7; + a20 = 1; + a5 = 5; + a25 = 1; + a16 = 7; + a21 = 10; + a1 = 12; + return -1; + } else if((((a20==1)&&(((((a1==13)&&(((a4==1)&&(!(a3==1)&&((a19==2)&&((a21==10)&&(input==6)))))&&!(a23==1)))&&(a17==2))&&(a5==6))&&(a9==10)))&&(!(a11==1)&&(((a16==7)&&((a11==1)&&!(a12==1)))&&(a18==1))))){ + a1 = 12; + a29 = 0; + a19 = 1; + a3 = 0; + a9 = 11; + return -1; + } else if(((((((a9==11)&&((a12==1)&&(a5==5)))&&(a28==1))&&(a19==1))&&(a1==13))&&(((a23==1)&&(!(a18==1)&&((!(a14==1)&&((!(a20==1)&&((a21==12)&&((a17==2)&&(input==4))))&&(a16==7)))&&!(a4==1))))&&!(a0==1)))){ + a6 = 1; + a20 = 1; + a27 = 0; + a11 = 1; + a5 = 4; + a21 = 10; + a9 = 7; + a1 = 12; + return -1; + } else if((((!(a27==1)&&((((input==4)&&((a5==4)||(a5==5)))&&(a28==1))&&(a9==7)))&&(a11==1))&&((a16==10)&&((a17==2)&&((((a21==12)&&((a18==1)||(((a19==2)&&(!(a3==1)||(a11==1)))&&!(a0==1))))&&(a1==12))&&(a20==1)))))){ + a8 = 0; + a21 = 10; + a16 = 7; + a19 = 1; + a14 = 0; + a5 = 4; + return -1; + } else if(((!(a7==1)&&((((a20==1)&&((!(a27==1)&&((a9==10)&&(input==6)))&&(a21==11)))&&(a1==13))&&(a19==4)))&&((a16==11)&&(((((a17==2)&&((!(a28==1)||(a13==1))&&(a5==6)))||!(a28==1))&&!(a14==1))||!(a2==1))))){ + a9 = 7; + a5 = 4; + a19 = 1; + a2 = 1; + a21 = 10; + a1 = 12; + a26 = 0; + a11 = 1; + a16 = 7; + return -1; + } else if(((!(a0==1)&&(!(a4==1)&&(((a13==1)&&((a19==2)&&(input==4)))&&!(a20==1))))&&(((a5==4)&&((((a13==1)&&(((((a13==1)&&(a21==11))||(a0==1))&&(a16==7))&&(a1==12)))||(a27==1))&&(a17==2)))&&(a9==7)))){ + a7 = 0; + a20 = 1; + a3 = 1; + a24 = 0; + a21 = 10; + a19 = 1; + return -1; + } else if(((((a2==1)&&((a16==8)&&(!(a18==1)&&(!(a14==1)&&(((a6==1)&&((input==5)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))))&&(a17==2))))))&&(a13==1))&&(((a21==11)&&((a1==13)&&((a28==1)&&((a6==1)&&(a19==3)))))&&!(a20==1)))){ + a3 = 1; + a20 = 1; + a27 = 0; + a2 = 1; + a5 = 4; + a21 = 12; + a1 = 12; + a9 = 9; + return 22; + } else if((((a1==13)&&((a9==8)&&((((a13==1)&&(a16==11))&&!(a24==1))&&(a11==1))))&&((a19==1)&&(((((a20==1)&&((a23==1)&&((((input==5)&&((a5==4)||(a5==5)))&&(a23==1))&&(a2==1))))&&!(a14==1))&&(a21==10))&&(a17==2))))){ + a18 = 0; + a5 = 4; + a1 = 12; + a2 = 1; + a9 = 7; + a16 = 7; + a26 = 0; + return -1; + } else if(((((a4==1)||(((((a11==1)&&(!(a23==1)||(a13==1)))&&(a9==7))&&(a1==12))&&(a19==5)))&&!(a4==1))&&((a21==10)&&((((a17==2)&&(!(a27==1)&&(((input==5)&&!(a20==1))&&(a5==6))))&&(a16==8))&&(a23==1))))){ + a4 = 0; + a5 = 4; + a9 = 9; + a23 = 1; + a16 = 7; + a1 = 13; + a11 = 1; + a20 = 1; + a19 = 4; + return 21; + } else if(((((a14==1)||(((a20==1)&&((a21==10)&&((a16==8)&&(a12==1))))&&(a28==1)))||!(a28==1))&&((a17==2)&&(((a6==1)&&(!(a24==1)&&((((input==5)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5))))&&(a1==14))&&(a19==5))))&&(a3==1))))){ + a27 = 0; + a19 = 1; + a16 = 7; + a9 = 7; + a12 = 1; + a5 = 4; + a18 = 0; + a1 = 12; + return -1; + } else if((((((a5==4)&&((a6==1)&&((a27==1)||((a6==1)&&(a23==1)))))&&(a28==1))&&(a6==1))&&((a17==2)&&(((a9==11)&&(((a19==2)&&((a1==12)&&((a28==1)&&((input==3)&&(a21==12)))))&&(a20==1)))&&(a16==11))))){ + a9 = 7; + a21 = 10; + a16 = 7; + a26 = 0; + a28 = 1; + a19 = 1; + a13 = 1; + return -1; + } else if((((a23==1)&&((!(a14==1)&&((a6==1)&&((((((a5==6)&&(input==4))&&(a1==13))&&(a23==1))&&(a9==8))&&(a20==1))))&&(a17==2)))&&((a16==10)&&(((((a24==1)||(a2==1))&&(a21==11))||(a26==1))&&(a19==5))))){ + a1 = 12; + a19 = 1; + a5 = 4; + a4 = 0; + a16 = 7; + a12 = 1; + a21 = 10; + a9 = 7; + a14 = 0; + return -1; + } else if((((((a16==10)&&(((a5==5)&&((((a9==8)&&(input==3))&&(a21==11))&&!(a20==1)))&&(a17==2)))&&!(a14==1))&&!(a8==1))&&((!(a28==1)||((a12==1)&&((((a1==12)&&(a12==1))&&(a19==4))&&!(a27==1))))&&!(a8==1)))){ + a25 = 0; + a19 = 2; + a9 = 9; + a5 = 6; + a21 = 10; + a13 = 0; + a16 = 7; + a2 = 0; + a20 = 1; + return 22; + } else if(((((((a9==11)&&((a11==1)&&(a13==1)))&&(a28==1))&&(a1==14))&&(a11==1))&&((a17==2)&&(((((a3==1)&&((!(a20==1)&&((((a5==5)||(a5==6))&&(input==4))&&(a21==11)))&&!(a26==1)))&&(a2==1))&&(a16==8))&&(a19==5))))){ + a23 = 0; + a21 = 10; + a5 = 6; + a10 = 1; + a1 = 13; + a16 = 7; + a19 = 1; + a3 = 0; + a20 = 1; + return 26; + } else if(((!(a0==1)&&(((((a17==2)&&(!(a7==1)&&(((input==1)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9))))&&(a21==11))))&&(a19==4))&&(a3==1))&&!(a14==1)))&&((a16==7)&&(!(a18==1)&&((a1==14)&&((a20==1)&&((a6==1)||(a26==1)))))))){ + a6 = 1; + a16 = 8; + a28 = 1; + a5 = 6; + a3 = 1; + a9 = 10; + return 22; + } else if((((a2==1)&&((a16==8)&&((a21==12)&&((a13==1)&&((a2==1)&&((!(a26==1)&&(((input==3)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(a17==2)))&&!(a20==1)))))))&&((a19==2)&&((((a6==1)||!(a2==1))&&(a1==13))||!(a11==1))))){ + a5 = 5; + a9 = 11; + a19 = 4; + a0 = 1; + a20 = 1; + a8 = 1; + a12 = 0; + a21 = 10; + a1 = 14; + a16 = 10; + return 25; + } else if(((!(a20==1)&&(((((((a11==1)||(a26==1))||!(a13==1))&&(a1==14))&&(a9==10))&&!(a8==1))&&!(a27==1)))&&((a19==5)&&((a17==2)&&(((a16==10)&&(((a2==1)&&((input==4)&&((a5==5)||(a5==6))))&&(a21==11)))&&!(a7==1)))))){ + a6 = 0; + a27 = 1; + a21 = 10; + a5 = 4; + a1 = 12; + a20 = 1; + a19 = 1; + a16 = 7; + a10 = 1; + return 21; + } else if(((!(a0==1)&&(((!(a23==1)||((a21==12)&&((a23==1)||!(a28==1))))&&!(a20==1))||!(a13==1)))&&(((((a17==2)&&((((((a5==6)&&(a1==14))&&(a9==11))&&(a19==1))||((((a5==4)&&(a1==12))&&(a9==7))&&(a19==2)))&&(input==1)))&&(a28==1))&&(a16==7))&&(a13==1)))){ + a11 = 1; + a5 = 5; + a19 = 4; + a1 = 14; + a21 = 11; + a9 = 10; + a16 = 9; + a0 = 0; + a20 = 1; + a27 = 0; + return 21; + } else if((((((a13==1)&&(!(a28==1)||((a26==1)||(((a16==8)&&((a3==1)&&(a21==12)))&&(a17==2)))))||!(a28==1))&&!(a7==1))&&((((a19==2)&&(((input==6)&&(((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))))&&(a1==13)))&&!(a4==1))&&(a20==1)))){ + a2 = 1; + a5 = 4; + a11 = 1; + a28 = 1; + a19 = 1; + a1 = 12; + a16 = 10; + a9 = 9; + return 23; + } else if(((!(a13==1)&&(!(a2==1)&&((a1==13)&&(((((a19==2)&&((a21==11)&&(!(a3==1)&&((a16==7)&&(a6==1)))))&&!(a6==1))&&!(a2==1))&&!(a6==1)))))&&(((a9==10)&&(!(a20==1)&&(((a5==4)||(a5==5))&&(input==6))))&&(a17==2)))){ + a5 = 6; + a9 = 8; + a21 = 10; + a27 = 1; + a15 = 0; + a20 = 1; + a29 = 0; + a1 = 12; + return -1; + } else if((((a16==8)&&((((a14==1)||((!(a8==1)&&((a1==12)&&((a28==1)&&(a21==11))))&&!(a18==1)))||!(a3==1))&&(a17==2)))&&((((a9==10)&&((((input==1)&&(a20==1))&&(a19==2))&&(a5==5)))&&(a11==1))&&(a13==1)))){ + a11 = 1; + a19 = 3; + a8 = 0; + a1 = 14; + a16 = 10; + a24 = 0; + a21 = 10; + return 22; + } else if(((((a17==2)&&((((a13==1)&&((input==1)&&(a5==6)))&&!(a24==1))&&(a1==13)))&&(a21==12))&&(((a9==8)&&(((((a19==2)&&((a16==9)&&((a24==1)||(a3==1))))||(a14==1))&&!(a18==1))||!(a11==1)))&&!(a20==1)))){ + a15 = 0; + a21 = 10; + a24 = 1; + a9 = 10; + a18 = 1; + a19 = 1; + a20 = 1; + a1 = 14; + return 21; + } else if((((a21==10)&&(((((((input==5)&&((a5==4)||(a5==5)))&&!(a24==1))&&(a17==2))&&(a3==1))&&!(a0==1))&&(a19==1)))&&(((a20==1)&&((a6==1)&&((((a1==13)&&((a13==1)&&(a11==1)))&&(a3==1))&&(a9==9))))&&(a16==9)))){ + a5 = 5; + a16 = 8; + a1 = 14; + a11 = 1; + a28 = 1; + a19 = 5; + a9 = 8; + a8 = 0; + return 25; + } else if((((((a18==1)||(((a8==1)||(((a12==1)&&(a16==11))&&!(a24==1)))||(a0==1)))&&(a3==1))&&(a21==11))&&((a6==1)&&((a1==13)&&((((a17==2)&&(((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5)))&&(input==3)))&&(a20==1))&&(a19==4)))))){ + a14 = 0; + a16 = 7; + a9 = 7; + a19 = 1; + a21 = 10; + a28 = 1; + a1 = 12; + a5 = 4; + return -1; + } else if(((!(a8==1)&&((a12==1)&&((a13==1)&&(((a9==8)&&(((a16==11)&&(input==6))&&(a1==14)))&&!(a0==1)))))&&((a17==2)&&((a21==11)&&((!(a27==1)&&(((a19==4)&&((a11==1)&&(a5==5)))||(a24==1)))&&(a20==1)))))){ + if((a11==1)){ + a1 = 12; + a9 = 10; + a16 = 8; + a12 = 1; + a19 = 5; + a20 = 0; + a2 = 1; + a6 = 1; + }else{ + a21 = 10; + a2 = 1; + a4 = 0; + a27 = 0; + a9 = 11; + a19 = 1; + a16 = 10; + a1 = 13; + } + return 21; + } else if((((a14==1)||((a17==2)&&(((a2==1)||!(a12==1))&&(a19==3))))&&((a20==1)&&(((a5==4)&&(((!(a18==1)&&((((a28==1)&&((a16==10)&&(input==4)))&&(a28==1))&&(a9==7)))&&!(a4==1))&&(a1==13)))&&(a21==10))))){ + a16 = 7; + a3 = 1; + a1 = 12; + a28 = 1; + a26 = 0; + a19 = 1; + return -1; + } else if((((a3==1)&&(((((a16==10)&&(input==6))&&(a1==12))&&(a19==1))&&(a23==1)))&&((a3==1)&&(((a20==1)&&((((a9==10)&&((a11==1)&&(!(a27==1)&&(!(a23==1)||(a12==1)))))&&(a17==2))&&(a21==10)))&&(a5==6))))){ + a1 = 14; + a21 = 11; + a3 = 1; + a5 = 4; + a7 = 0; + a16 = 7; + a19 = 2; + return 23; + } else if(((((!(a27==1)&&(((a2==1)&&!(a4==1))||!(a2==1)))&&(a19==4))&&(a17==2))&&((a1==14)&&(((((a21==11)&&((a12==1)&&((((input==1)&&(a16==9))&&(a2==1))&&(a5==5))))&&(a6==1))&&(a9==10))&&!(a20==1))))){ + a1 = 13; + a29 = 1; + a16 = 7; + a19 = 2; + a21 = 12; + a20 = 1; + a5 = 4; + a0 = 1; + return -1; + } else if((((a17==2)&&(((a3==1)&&((a1==13)&&((((a6==1)&&((a13==1)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==1))))&&(a19==2))&&(a20==1))))&&!(a0==1)))&&(!(a12==1)||((((a11==1)&&(a21==10))&&(a16==10))&&!(a8==1))))){ + a9 = 9; + a6 = 1; + a0 = 0; + a19 = 5; + a8 = 0; + a16 = 11; + a5 = 5; + return 25; + } else if((((a21==10)&&((!(a14==1)&&((((a17==2)&&(((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a5==4)&&(a9==9)))&&(input==5)))&&(a23==1))&&(a3==1)))&&!(a20==1)))&&((a19==1)&&((a16==8)&&(!(a7==1)&&((a1==12)&&(!(a6==1)||((a11==1)&&(a13==1))))))))){ + a20 = 1; + a21 = 12; + a3 = 1; + a5 = 4; + a11 = 1; + a16 = 7; + a9 = 8; + a1 = 13; + a8 = 0; + return 22; + } else if(((!(a2==1)&&((!(a11==1)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==4)))&&(a16==11)))&&((((a24==1)&&((!(a3==1)&&((a19==3)&&(((a21==12)&&((a1==14)&&(a2==1)))&&(a20==1))))&&(a17==2)))&&(a0==1))&&(a27==1)))){ + a16 = 7; + a19 = 1; + a21 = 10; + a4 = 1; + a9 = 9; + a3 = 0; + a5 = 4; + return 21; + } else if((((!(a27==1)&&((a21==11)&&(((a2==1)&&(a9==10))&&(a5==6))))&&(a23==1))&&((((a16==7)&&(!(a18==1)&&(((((!(a20==1)&&(input==5))&&(a6==1))&&(a17==2))&&(a6==1))&&(a19==1))))&&(a1==13))&&(a28==1)))){ + a6 = 1; + a23 = 1; + a21 = 10; + a20 = 1; + a24 = 0; + a9 = 7; + a5 = 4; + a1 = 12; + return -1; + } else if((((((((a9==7)&&(((a28==1)&&(a26==1))&&(a21==10)))&&(a5==6))&&(a16==7))&&!(a6==1))&&(a0==1))&&((a0==1)&&(((a17==2)&&((a20==1)&&((a4==1)&&(!(a11==1)&&((a19==4)&&(input==4))))))&&(a1==13))))){ + a1 = 12; + a10 = 1; + a5 = 5; + a19 = 1; + a9 = 10; + a8 = 1; + a22 = 1; + return -1; + } else if(((((((a3==1)&&((input==6)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))))&&(a28==1))&&(a16==7))&&(a19==5))&&((a21==12)&&((((a27==1)||((((!(a27==1)&&(a6==1))&&(a11==1))&&(a20==1))&&(a1==13)))&&!(a26==1))&&(a17==2))))){ + if((a26==1)){ + a21 = 11; + a14 = 0; + a16 = 8; + a1 = 12; + a5 = 5; + a20 = 0; + a9 = 8; + a19 = 4; + a27 = 0; + }else{ + a19 = 2; + a4 = 0; + a5 = 4; + a21 = 10; + a11 = 1; + a9 = 10; + } + return 21; + } else if((((((a17==2)&&((a19==5)&&(((a5==4)||(a5==5))&&(input==3))))&&!(a20==1))&&(a9==7))&&((a16==9)&&(!(a24==1)&&(((((((a28==1)&&((a28==1)&&(a13==1)))&&(a21==10))&&(a1==14))&&!(a14==1))&&(a6==1))&&!(a27==1)))))){ + if((a9==11)){ + a15 = 1; + a16 = 7; + a23 = 0; + a19 = 1; + a9 = 11; + a5 = 4; + a1 = 13; + a13 = 0; + a20 = 1; + a21 = 12; + }else{ + a21 = 12; + a1 = 13; + a0 = 1; + a25 = 0; + a18 = 1; + a5 = 6; + a9 = 8; + a16 = 10; + a19 = 1; + } + return -1; + } else if(((((a23==1)&&((a4==1)||(((((a16==9)&&(((a6==1)&&(a1==12))&&(a21==11)))&&(a9==11))&&(a19==5))&&!(a14==1))))||(a24==1))&&(((a20==1)&&((!(a4==1)&&((input==3)&&((a5==5)||(a5==6))))&&(a17==2)))&&!(a7==1)))){ + a11 = 1; + a9 = 7; + a16 = 7; + a19 = 1; + a28 = 1; + a5 = 4; + a21 = 10; + a2 = 1; + return -1; + } else if((((a21==11)&&((((a6==1)&&((a1==12)&&((a9==11)&&((a6==1)||(a27==1)))))&&(a19==3))&&!(a14==1)))&&((((a23==1)&&((((a16==10)&&(((a5==5)||(a5==6))&&(input==3)))&&(a17==2))&&(a20==1)))&&(a3==1))&&(a12==1)))){ + a5 = 4; + a19 = 1; + a16 = 7; + a4 = 0; + a26 = 0; + a21 = 10; + a28 = 1; + a9 = 7; + return -1; + } else if(((((((a28==1)&&((a19==4)&&(a6==1)))&&!(a20==1))&&(a17==2))&&(a16==7))&&(!(a0==1)&&((((a28==1)&&(((!(a14==1)&&((input==3)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))))&&!(a27==1))&&(a21==10)))&&(a23==1))&&(a1==12))))){ + a9 = 7; + a26 = 0; + a20 = 1; + a7 = 0; + a5 = 4; + a6 = 1; + a19 = 1; + return -1; + } else if((((((a17==2)&&((((a9==7)&&(input==4))&&!(a18==1))&&!(a26==1)))&&!(a20==1))&&(a3==1))&&((a8==1)||((a5==6)&&((a21==11)&&(((a4==1)||((a1==12)&&(((a13==1)&&(a19==3))||!(a13==1))))&&(a16==8))))))){ + a12 = 1; + a16 = 7; + a11 = 1; + a20 = 1; + a5 = 4; + a0 = 0; + a19 = 1; + a21 = 10; + return -1; + } else if(((!(a13==1)||(!(a6==1)||((((a11==1)||(a14==1))&&(a1==12))&&(a19==5))))&&((((((a5==6)&&((a21==10)&&((((a17==2)&&(input==6))&&(a20==1))&&(a6==1))))&&(a12==1))&&(a9==11))&&(a2==1))&&(a16==9)))){ + a19 = 1; + a9 = 7; + a5 = 4; + a16 = 7; + a23 = 1; + a26 = 0; + return -1; + } else if(((((((!(a12==1)||(((a27==1)||((a13==1)&&!(a26==1)))||(a7==1)))&&(a21==10))&&(a17==2))&&(a23==1))&&(a20==1))&&((a9==7)&&((a16==7)&&(((!(a7==1)&&(((a5==4)||(a5==5))&&(input==3)))&&(a1==14))&&(a19==4)))))){ + if((a22==1)){ + a5 = 6; + a3 = 1; + a1 = 13; + a21 = 12; + a20 = 0; + a24 = 0; + a9 = 11; + a12 = 1; + a19 = 2; + }else{ + a5 = 5; + a13 = 1; + a21 = 11; + a19 = 5; + a26 = 0; + a24 = 0; + a1 = 13; + a9 = 11; + } + return 26; + } else if(((!(a2==1)||(((a18==1)||((a21==10)&&(((a7==1)||(a23==1))||(a0==1))))&&(a20==1)))&&((!(a24==1)&&((a19==4)&&(((((input==4)&&(((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))))&&(a17==2))&&(a23==1))&&(a16==11))))&&(a1==12)))){ + a2 = 1; + a9 = 7; + a19 = 1; + a5 = 4; + a26 = 0; + a16 = 7; + a28 = 1; + return -1; + } else if((((a16==8)&&((!(a7==1)&&(((a9==10)&&((a19==1)&&((a17==2)&&((a21==11)&&(input==1)))))&&(a6==1)))&&(a20==1)))&&((a5==6)&&((a28==1)&&((a1==12)&&(((!(a4==1)&&(a13==1))&&(a12==1))&&!(a27==1))))))){ + a9 = 7; + a21 = 10; + a2 = 1; + a6 = 1; + a24 = 0; + a5 = 4; + a16 = 7; + return -1; + } else if(((((!(a13==1)||(((a5==5)&&(((a6==1)||(a14==1))&&(a21==10)))||!(a3==1)))||(a26==1))&&(a1==14))&&((a16==11)&&((!(a20==1)&&(((a13==1)&&(!(a0==1)&&((input==1)&&(a9==8))))&&(a17==2)))&&(a19==2))))){ + a5 = 4; + a10 = 0; + a9 = 11; + a25 = 0; + a16 = 7; + a1 = 12; + a20 = 1; + return 22; + } else if(((((((a16==8)&&(((a20==1)&&(a12==1))&&(a19==1)))&&(a17==2))&&(a12==1))||(a14==1))&&(!(a7==1)&&((((!(a4==1)&&(((input==1)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(a1==12)))&&(a21==12))&&(a11==1))&&!(a4==1))))){ + a2 = 1; + a4 = 0; + a9 = 7; + a21 = 10; + a7 = 0; + a16 = 7; + a5 = 4; + return -1; + } else if(((((((a5==6)&&((a9==10)&&(input==5)))&&(a2==1))&&(a20==1))&&(a12==1))&&((a2==1)&&(((!(a13==1)||((a19==5)&&((a21==10)&&((!(a3==1)||((a3==1)||(a26==1)))&&(a16==11)))))&&(a17==2))&&(a1==12))))){ + a9 = 7; + a19 = 1; + a7 = 0; + a4 = 0; + a16 = 7; + a5 = 4; + a26 = 0; + return -1; + } else if(((((a28==1)&&((a16==10)&&((a23==1)&&(a21==11))))&&!(a24==1))&&((a17==2)&&(((((a9==8)&&(!(a24==1)&&((!(a4==1)&&((a3==1)&&((input==5)&&((a5==6)||((a5==4)||(a5==5))))))&&!(a20==1))))&&(a19==5))&&(a1==14))&&!(a4==1))))){ + a29 = 1; + a25 = 1; + a9 = 9; + a21 = 10; + a1 = 12; + a16 = 7; + a5 = 5; + a11 = 0; + a20 = 1; + a19 = 1; + return -1; + } else if(((!(a11==1)||((a5==5)&&((a2==1)&&(a9==7))))&&(((a28==1)&&((((a16==7)&&(((a21==12)&&(!(a4==1)&&(((a11==1)&&((a20==1)&&(input==6)))&&(a1==13))))&&(a19==2)))&&(a2==1))&&(a28==1)))&&(a17==2)))){ + a27 = 0; + a21 = 10; + a1 = 12; + a8 = 0; + a14 = 0; + a19 = 1; + a5 = 4; + return -1; + } else if(((((((((a16==9)&&((((a19==4)&&(a11==1))&&(a1==12))||!(a13==1)))||(a27==1))||!(a3==1))&&(a9==10))&&!(a8==1))&&(a17==2))&&((((a2==1)&&(!(a24==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3))))&&(a21==12))&&(a20==1)))){ + a14 = 0; + a21 = 10; + a9 = 7; + a5 = 4; + a12 = 1; + a24 = 0; + a19 = 1; + a16 = 7; + return -1; + } else if((((!(a28==1)||(((!(a26==1)&&(((a23==1)&&(a28==1))&&(a17==2)))||(a24==1))&&!(a20==1)))&&(a1==14))&&((((((a21==11)&&((input==1)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))))&&!(a18==1))&&(a16==7))&&(a2==1))&&(a19==4)))){ + a1 = 12; + a9 = 7; + a5 = 4; + a18 = 0; + a20 = 1; + a21 = 10; + a19 = 1; + a0 = 0; + a12 = 1; + return -1; + } else if((((a16==8)&&((((a18==1)||((a19==3)&&(!(a0==1)&&(a11==1))))&&(a21==10))&&(a2==1)))&&((((a23==1)&&(((a17==2)&&((a9==11)&&(((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&(a1==13))))&&!(a27==1)))&&(a20==1))&&!(a27==1)))){ + a27 = 0; + a21 = 12; + a12 = 1; + a5 = 4; + a9 = 8; + a19 = 5; + a16 = 9; + return 25; + } else if((((a19==4)&&((!(a13==1)||(((a16==8)&&(((a24==1)||(a13==1))||(a0==1)))&&(a5==4)))&&!(a18==1)))&&(((((a9==7)&&(!(a24==1)&&(((input==5)&&(a21==12))&&(a1==12))))&&(a20==1))&&!(a26==1))&&(a17==2)))){ + a23 = 1; + a5 = 5; + a16 = 10; + a9 = 11; + a0 = 0; + a26 = 0; + a19 = 3; + return 25; + } else if((((!(a24==1)&&((a21==10)&&(!(a3==1)||((a20==1)&&(a13==1)))))&&!(a18==1))&&((a19==4)&&((((a28==1)&&((((a1==12)&&(((input==1)&&(a5==5))&&!(a4==1)))&&(a16==8))&&!(a0==1)))&&(a9==10))&&(a17==2))))){ + a8 = 0; + a19 = 1; + a16 = 7; + a13 = 1; + a12 = 1; + a9 = 7; + a5 = 4; + return -1; + } else if((((!(a27==1)&&(((input==1)&&(a16==7))&&(a21==12)))&&(a12==1))&&((a23==1)&&(((a19==1)&&((a3==1)&&(((a5==5)&&(((a1==14)&&(((a28==1)&&(a23==1))&&(a17==2)))||!(a11==1)))&&(a20==1))))&&(a9==8))))){ + a9 = 7; + a5 = 4; + a23 = 1; + a1 = 12; + a2 = 1; + a4 = 0; + a21 = 10; + return -1; + } else if(((((a20==1)&&((a16==9)&&(((a9==8)&&((input==1)&&(a17==2)))&&!(a26==1))))&&(a5==6))&&((a19==3)&&((a11==1)&&((a6==1)&&(((a13==1)&&((a0==1)||(((a21==12)&&(a11==1))&&(a28==1))))&&(a1==13))))))){ + a21 = 10; + a5 = 4; + a1 = 12; + a19 = 1; + a26 = 0; + a7 = 0; + a3 = 1; + a9 = 7; + a16 = 7; + return -1; + } else if(((((a20==1)&&((a7==1)||((a5==6)&&((((((a12==1)&&(a17==2))&&(a1==13))&&(a9==9))||!(a11==1))||(a24==1)))))&&(a16==11))&&((a13==1)&&(!(a14==1)&&((!(a24==1)&&((input==4)&&(a21==11)))&&(a19==5)))))){ + a5 = 4; + a18 = 0; + a21 = 10; + a23 = 1; + a1 = 12; + a9 = 7; + a16 = 7; + a28 = 1; + a19 = 1; + return -1; + } else if((((((a28==1)||(a24==1))||!(a6==1))&&(a21==10))&&((a20==1)&&(!(a14==1)&&((((((((((((a1==12)&&(a5==6))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==13))))||(((a1==13)&&(a5==5))&&(a9==7)))&&(input==6))&&!(a0==1))&&(a19==3))&&!(a0==1))&&(a3==1))&&(a16==11))&&(a17==2)))))){ + a2 = 1; + a26 = 0; + a8 = 0; + a1 = 13; + a21 = 11; + a5 = 4; + a9 = 7; + return 26; + } else if(((!(a7==1)&&((!(a11==1)||((a2==1)||!(a23==1)))&&(a21==12)))&&(!(a7==1)&&(!(a14==1)&&((a20==1)&&((((a16==7)&&((input==1)&&(((a19==1)&&(((a1==14)&&(a5==6))&&(a9==11)))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==2)))))&&(a17==2))&&(a12==1))))))){ + a21 = 10; + a12 = 1; + a5 = 4; + a19 = 1; + a6 = 1; + a1 = 12; + a4 = 0; + a9 = 7; + return -1; + } else if((((((a26==1)||(((a3==1)&&(a6==1))&&(a21==10)))&&(a1==12))&&(a20==1))&&((a19==5)&&((a16==11)&&(!(a24==1)&&((((((((a5==5)||(a5==6))&&(input==1))&&(a17==2))&&(a2==1))&&(a2==1))&&(a9==7))&&!(a4==1))))))){ + a18 = 0; + a9 = 9; + a1 = 13; + a27 = 0; + a16 = 9; + a5 = 4; + a13 = 1; + return 25; + } else if((((a17==2)&&((a16==7)&&(((a6==1)&&(!(a20==1)&&(!(a11==1)||((a3==1)&&((a21==11)&&(a23==1))))))&&(a3==1))))&&((a2==1)&&((a5==6)&&(!(a14==1)&&((a9==10)&&((a19==1)&&((a1==13)&&(input==6))))))))){ + a20 = 1; + a12 = 1; + a1 = 12; + a16 = 8; + a9 = 8; + a5 = 4; + a11 = 1; + a23 = 1; + a21 = 10; + a19 = 5; + return -1; + } else if((((a17==2)&&((!(a28==1)||(((a3==1)&&((((a5==4)&&(a6==1))&&!(a4==1))&&(a21==10)))&&!(a20==1)))&&(a9==8)))&&(((!(a7==1)&&((((a16==8)&&(input==1))&&(a19==2))&&(a1==14)))&&(a23==1))&&!(a24==1)))){ + a8 = 0; + a16 = 7; + a9 = 7; + a23 = 1; + a1 = 12; + a20 = 1; + a19 = 1; + return -1; + } else if(((((a16==10)&&(!(a4==1)&&((((a1==12)&&(((a17==2)&&(input==3))&&(a6==1)))&&(a21==12))&&!(a18==1))))&&(a19==5))&&((((a13==1)&&((a5==4)&&(((a7==1)||(a12==1))&&!(a14==1))))&&!(a20==1))&&(a9==10)))){ + a24 = 1; + a5 = 6; + a27 = 1; + a10 = 1; + a19 = 2; + a1 = 13; + a21 = 10; + return -1; + } else if((((a27==1)||(((a24==1)||(!(a6==1)||((!(a18==1)&&(a12==1))&&(a17==2))))&&!(a20==1)))&&((((a1==12)&&(((a19==1)&&(((((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(input==4))&&(a21==11)))&&!(a26==1)))&&!(a7==1))&&(a16==9)))){ + a6 = 0; + a16 = 11; + a19 = 3; + a21 = 10; + a20 = 1; + a13 = 0; + a9 = 11; + a5 = 4; + a0 = 1; + a1 = 13; + return -1; + } else if((((a21==12)&&((((((a19==5)&&((a16==9)&&(((a20==1)&&(a6==1))&&(a11==1))))&&(a1==14))&&(a17==2))||!(a2==1))||!(a3==1)))&&(((!(a18==1)&&((input==4)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))))&&!(a4==1))&&!(a24==1)))){ + a19 = 2; + a9 = 10; + a5 = 5; + a21 = 10; + a16 = 8; + a13 = 1; + a20 = 0; + return 23; + } else if((((((((a9==10)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1)))&&(a16==9))&&(a3==1))&&(a19==5))&&(a23==1))&&((((a21==12)&&((((((a1==13)&&(a2==1))&&(a20==1))&&(a17==2))||(a0==1))&&!(a7==1)))||(a4==1))&&(a3==1)))){ + a21 = 10; + a19 = 1; + a5 = 4; + a1 = 12; + a9 = 7; + a3 = 1; + a4 = 0; + a24 = 0; + a16 = 7; + return -1; + } else if((((a5==5)&&(((!(a20==1)&&(((a6==1)&&(a17==2))&&(a1==14)))&&!(a18==1))&&(a19==5)))&&(((a28==1)&&(((((((a9==7)&&(input==6))&&(a23==1))&&!(a4==1))&&(a2==1))&&(a21==10))&&(a16==7)))&&!(a7==1)))){ + a20 = 1; + a1 = 12; + a16 = 11; + a5 = 4; + a9 = 10; + a13 = 1; + a12 = 1; + a19 = 3; + a18 = 0; + return 23; + } else if((((a16==8)&&((a21==12)&&(((a3==1)&&((!(a7==1)&&((input==5)&&(a9==8)))&&(a19==3)))&&(a28==1))))&&((a1==14)&&((a26==1)||(!(a20==1)&&(((a2==1)&&((a17==2)&&((a5==4)&&(a13==1))))&&(a2==1))))))){ + if((a16==7)){ + a20 = 1; + a19 = 1; + a15 = 0; + a16 = 7; + a5 = 5; + a21 = 10; + a1 = 13; + a9 = 11; + a27 = 1; + a12 = 0; + }else{ + a16 = 10; + a19 = 1; + a4 = 1; + a9 = 9; + a15 = 0; + a1 = 12; + a6 = 0; + } + return 21; + } else if(((!(a27==1)&&((a3==1)&&(a28==1)))&&((a9==10)&&((((a23==1)&&(!(a26==1)&&((((a17==2)&&((a16==10)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&!(a8==1))&&(a1==12))))&&(a21==10))&&(a20==1))))&&(a19==5))&&!(a0==1))))){ + a9 = 8; + a4 = 0; + a8 = 0; + a1 = 14; + a16 = 8; + a5 = 5; + return 25; + } else if((((((a17==2)&&((a5==4)&&(!(a8==1)&&(((a20==1)&&((a9==11)&&(input==5)))&&(a16==11)))))&&(a13==1))&&!(a18==1))&&(!(a13==1)||((!(a7==1)&&((((a12==1)&&(a1==12))&&(a19==1))&&(a21==11)))&&(a23==1))))){ + a21 = 10; + a9 = 7; + a24 = 0; + a4 = 0; + a14 = 0; + a16 = 7; + return -1; + } else if((((a5==5)&&((((a9==9)&&(((((a6==1)&&(!(a6==1)||(a2==1)))||(a18==1))&&(a1==13))||(a27==1)))&&(a16==10))||(a27==1)))&&((a17==2)&&((a19==4)&&(!(a20==1)&&(!(a24==1)&&((input==3)&&(a21==10)))))))){ + a9 = 10; + a12 = 0; + a26 = 1; + a23 = 0; + a16 = 11; + return -1; + } else if((((a12==1)&&((a21==10)&&((a27==1)||(!(a6==1)||(a12==1)))))&&(!(a14==1)&&((((a12==1)&&(!(a20==1)&&((a16==11)&&((input==5)&&(((a19==2)&&((a9==11)&&((a1==14)&&(a5==6))))||((a19==3)&&((a9==7)&&((a1==12)&&(a5==4)))))))))&&(a17==2))&&!(a4==1))))){ + a1 = 14; + a9 = 11; + a19 = 1; + a5 = 4; + a20 = 1; + a26 = 1; + a0 = 1; + return -1; + } else if(((((a2==1)&&(((!(a8==1)&&((!(a18==1)&&((a5==5)&&((a19==5)&&((input==4)&&(a1==13)))))&&(a21==10)))&&(a17==2))&&(a9==9)))&&(a11==1))&&((a16==10)&&(((a12==1)&&((a2==1)&&!(a20==1)))||!(a28==1))))){ + a16 = 8; + a6 = 0; + a15 = 0; + a19 = 4; + a9 = 8; + a21 = 12; + a8 = 1; + a5 = 6; + return 21; + } else if(((((!(a3==1)||(((a6==1)&&((a19==2)&&((a1==13)&&((a28==1)&&(a21==10)))))&&(a17==2)))&&(a13==1))||!(a28==1))&&((a16==10)&&(((a20==1)&&(((input==4)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&!(a14==1)))&&!(a8==1))))){ + a16 = 7; + a1 = 12; + a3 = 1; + a5 = 4; + a19 = 1; + a9 = 7; + a6 = 1; + a13 = 1; + return -1; + } else if((((a21==10)&&((((a16==8)&&(((a17==2)&&(((a7==1)||(!(a24==1)&&((a12==1)||(a8==1))))||!(a13==1)))||!(a23==1)))&&(a19==4))&&(a1==12)))&&((!(a27==1)&&((input==4)&&((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4)))))&&(a20==1)))){ + a16 = 7; + a9 = 7; + a19 = 1; + a5 = 4; + a14 = 0; + a27 = 0; + a24 = 0; + return -1; + } else if(((((((a7==1)||(((a6==1)&&(!(a20==1)&&(a3==1)))&&(a5==4)))&&(a23==1))&&(a6==1))&&(a12==1))&&((a1==13)&&((a19==3)&&((a16==10)&&((a17==2)&&(((a6==1)&&((input==3)&&(a9==10)))&&(a21==10)))))))){ + if((a13==1)){ + a15 = 1; + a19 = 1; + a27 = 1; + a9 = 8; + a21 = 11; + a6 = 0; + a1 = 14; + a16 = 7; + }else{ + a13 = 0; + a19 = 2; + a20 = 1; + a12 = 0; + a9 = 11; + a21 = 11; + a18 = 1; + a16 = 8; + a1 = 14; + } + return 26; + } else if(((!(a28==1)||(!(a8==1)&&((((a1==12)&&(((!(a20==1)&&((a28==1)&&(a21==10)))&&(a19==4))&&(a17==2)))||!(a13==1))||!(a2==1))))&&(((a16==7)&&(((input==6)&&(((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))))&&!(a0==1)))&&(a11==1)))){ + a6 = 1; + a1 = 13; + a0 = 0; + a9 = 10; + a24 = 0; + a5 = 4; + return 23; + } else if(((!(a3==1)||((((a12==1)&&(a21==10))&&(a12==1))&&(a19==2)))&&((a2==1)&&(((a1==12)&&((((a17==2)&&(!(a26==1)&&(((input==6)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(a16==7))))&&!(a20==1))&&(a2==1)))&&(a6==1))))){ + a20 = 1; + a5 = 4; + a19 = 1; + a9 = 7; + a2 = 1; + a4 = 0; + a12 = 1; + return -1; + } else if(((!(a20==1)&&((a21==11)&&(((a1==12)&&(((((a13==1)&&(a12==1))||(a24==1))&&(a16==7))&&(a19==5)))&&(a9==8))))&&((a12==1)&&((((!(a7==1)&&((input==6)&&((a5==5)||(a5==6))))&&(a17==2))&&(a28==1))&&!(a7==1))))){ + a14 = 0; + a5 = 5; + a20 = 1; + a23 = 1; + a1 = 13; + a9 = 7; + a16 = 8; + a19 = 3; + return 26; + } else if(((((a23==1)&&(!(a8==1)&&((!(a18==1)&&((a23==1)&&(a17==2)))&&(a12==1))))&&!(a24==1))&&(((((a16==11)&&((input==3)&&((((a19==4)&&(((a1==14)&&(a5==6))&&(a9==11)))||(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==5)))||((a19==5)&&((a9==7)&&((a1==12)&&(a5==5)))))))&&(a21==11))&&!(a14==1))&&(a20==1)))){ + a21 = 10; + a5 = 4; + a14 = 0; + a9 = 7; + a19 = 1; + a1 = 12; + a23 = 1; + a16 = 7; + return -1; + } else if(((!(a20==1)&&(((a19==1)&&((a3==1)&&(((a12==1)&&!(a24==1))||!(a11==1))))&&(a16==7)))&&((a17==2)&&(!(a18==1)&&((a23==1)&&(!(a14==1)&&((a1==13)&&((a21==10)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==5)))))))))){ + a23 = 1; + a1 = 12; + a0 = 0; + a5 = 4; + a9 = 7; + a27 = 0; + a20 = 1; + return -1; + } else if((((a17==2)&&((a9==11)&&((a26==1)&&((a16==8)&&((((a21==10)&&((a1==13)&&((a7==1)&&((a28==1)&&(a19==3)))))&&!(a2==1))&&(a0==1))))))&&(((a24==1)&&(((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&!(a13==1)))&&(a20==1)))){ + a19 = 5; + a16 = 11; + a3 = 0; + a4 = 1; + a10 = 0; + a1 = 12; + a9 = 7; + a5 = 5; + return -1; + } else if(((!(a20==1)&&(((a1==14)&&((a19==1)&&(((a28==1)||!(a13==1))&&(a17==2))))||(a26==1)))&&((((a12==1)&&(((!(a27==1)&&(((input==3)&&(a21==10))&&!(a8==1)))&&(a5==5))&&(a9==7)))&&!(a26==1))&&(a16==9)))){ + if((a25==1)){ + a26 = 1; + a2 = 0; + a16 = 7; + a21 = 12; + a12 = 0; + a1 = 13; + a9 = 10; + }else{ + a16 = 7; + a26 = 1; + a24 = 1; + a27 = 1; + a20 = 1; + a9 = 11; + } + return -1; + } else if((((a19==2)&&(((a8==1)||((((!(a12==1)||(a23==1))||!(a13==1))&&(a1==12))&&(a21==12)))&&(a17==2)))&&(!(a14==1)&&((!(a8==1)&&(((a16==8)&&(((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4)))&&(input==6)))&&!(a8==1)))&&(a20==1))))){ + a5 = 5; + a19 = 5; + a11 = 1; + a12 = 1; + a21 = 10; + a1 = 13; + a9 = 8; + a20 = 0; + a16 = 7; + return 26; + } else if(((((a6==1)||!(a23==1))||!(a12==1))&&(((a20==1)&&(!(a4==1)&&((a16==10)&&(!(a0==1)&&((a19==1)&&((a17==2)&&((a1==14)&&((a3==1)&&((a21==10)&&((input==1)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))))))))))))&&(a28==1)))){ + a27 = 0; + a5 = 5; + a16 = 8; + a0 = 0; + a19 = 4; + a13 = 1; + a21 = 12; + a9 = 9; + return -1; + } else if((((a19==2)&&((((((a6==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4)))&&!(a26==1))&&(a9==8))&&(a12==1))&&(a16==7)))&&((a21==10)&&((a17==2)&&(((!(a24==1)&&((a11==1)&&((a12==1)&&(a23==1))))&&(a1==13))&&(a20==1)))))){ + a1 = 14; + a14 = 0; + a6 = 1; + a5 = 4; + a3 = 1; + return 22; + } else if((((a16==7)&&(((!(a8==1)&&((a12==1)&&((a2==1)||!(a3==1))))&&(a1==13))&&(a19==4)))&&(((a23==1)&&(!(a4==1)&&((a21==11)&&((!(a26==1)&&(((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))&&(input==6)))&&(a17==2)))))&&(a20==1)))){ + a16 = 8; + a5 = 4; + a1 = 12; + a9 = 7; + a27 = 0; + a18 = 0; + a11 = 1; + return 23; + } else if(((((a16==8)&&(((a6==1)&&(a23==1))&&(a19==5)))&&(a17==2))&&((a21==12)&&((((((!(a7==1)&&((((a9==7)&&((a1==13)&&(a5==4)))||(((a9==11)&&((a1==12)&&(a5==5)))||(((a5==6)&&(a1==12))&&(a9==11))))&&(input==1)))&&!(a24==1))&&(a20==1))&&(a6==1))&&!(a18==1))&&!(a27==1))))){ + a16 = 10; + a12 = 1; + a5 = 5; + a27 = 0; + a1 = 12; + a9 = 8; + a0 = 0; + return 21; + } else if((((!(a27==1)&&(((((a11==1)&&(a21==12))||!(a12==1))&&(a16==9))&&!(a14==1)))&&(a17==2))&&(((((((!(a27==1)&&((input==1)&&(a1==12)))&&(a28==1))&&(a5==6))&&(a19==2))&&!(a20==1))&&(a3==1))&&(a9==10)))){ + if((a10==1)){ + a20 = 1; + a21 = 11; + a7 = 1; + a1 = 13; + a25 = 1; + a19 = 4; + a16 = 11; + a29 = 1; + }else{ + a9 = 9; + a16 = 7; + a21 = 10; + a5 = 5; + a29 = 1; + a20 = 1; + a27 = 1; + } + return -1; + } else if(((((a9==11)&&(!(a7==1)&&((a19==3)&&((a20==1)&&(((a12==1)&&(a28==1))&&(a16==7))))))&&(a23==1))&&(!(a24==1)&&((((a1==12)&&(((a17==2)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))&&(a21==10)))&&(a11==1))&&(a12==1))))){ + a1 = 14; + a14 = 0; + a27 = 0; + a19 = 5; + a5 = 6; + a2 = 1; + return 22; + } else if((((((((a17==2)&&(a28==1))&&(a1==12))&&(a16==10))&&(a11==1))&&(a2==1))&&((!(a7==1)&&((a9==9)&&((a12==1)&&(!(a8==1)&&((a21==12)&&((a19==5)&&(!(a20==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))))))))&&(a12==1)))){ + if((a26==1)){ + a13 = 0; + a19 = 1; + a21 = 11; + a9 = 7; + a6 = 0; + a1 = 13; + a23 = 0; + a5 = 5; + }else{ + a5 = 4; + a16 = 7; + a28 = 0; + a25 = 0; + a19 = 2; + a11 = 0; + a20 = 1; + a9 = 11; + a21 = 10; + } + return -1; + } else if(((!(a0==1)&&((((((((a19==1)&&(((a5==4)||(a5==5))&&(input==6)))&&(a12==1))&&(a6==1))&&(a21==12))&&(a17==2))&&(a9==10))&&(a23==1)))&&((a1==12)&&((a20==1)&&((a26==1)||(!(a14==1)&&((a16==7)&&(a23==1)))))))){ + a19 = 4; + a16 = 8; + a2 = 1; + a1 = 13; + a9 = 9; + a5 = 6; + a13 = 1; + a28 = 1; + return 21; + } else if(((((a9==7)&&(((((((a16==8)&&(((a5==5)||(a5==6))&&(input==1)))&&(a8==1))&&(a8==1))&&!(a6==1))&&!(a28==1))&&(a1==14)))&&(a17==2))&&((a18==1)&&((a21==11)&&(((a18==1)&&((a20==1)&&(a11==1)))&&(a19==4)))))){ + a5 = 4; + a19 = 5; + a9 = 9; + a26 = 1; + a16 = 10; + a21 = 10; + a1 = 12; + a18 = 1; + a24 = 1; + return -1; + } else if(((((((a7==1)||((a19==5)&&(!(a14==1)&&(a13==1))))&&(a13==1))&&(a2==1))&&(a21==12))&&((a17==2)&&((((a23==1)&&((a9==9)&&(((a5==6)&&((input==6)&&(a16==9)))&&(a13==1))))&&(a1==13))&&(a20==1))))){ + a21 = 10; + a24 = 0; + a14 = 0; + a7 = 0; + a9 = 11; + a1 = 14; + return 25; + } else if((((!(a2==1)||(a13==1))&&(a3==1))&&((a2==1)&&((((a23==1)&&(!(a7==1)&&((!(a27==1)&&((a21==11)&&((input==1)&&(((((a9==11)&&((a5==5)&&(a1==14)))&&(a19==2))||((a19==2)&&(((a1==14)&&(a5==6))&&(a9==11))))||((a19==3)&&(((a5==4)&&(a1==12))&&(a9==7)))))))&&(a20==1))))&&(a17==2))&&(a16==7))))){ + if((a17==2)){ + a12 = 1; + a6 = 1; + a19 = 5; + a20 = 0; + a21 = 12; + a18 = 0; + a9 = 9; + a1 = 13; + a5 = 6; + }else{ + a1 = 13; + a5 = 6; + a21 = 10; + a4 = 0; + a9 = 10; + a6 = 1; + a19 = 4; + a16 = 8; + a13 = 1; + } + return 21; + } else if((((!(a11==1)||((a11==1)&&!(a20==1)))&&!(a8==1))&&((((a1==13)&&((((a17==2)&&(((a19==5)&&(((input==4)&&(((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))))&&!(a27==1)))&&(a23==1)))&&(a16==7))&&(a23==1)))&&(a21==12))&&(a2==1)))){ + a5 = 4; + a20 = 1; + a1 = 12; + a6 = 1; + a9 = 7; + a19 = 1; + a21 = 10; + a13 = 1; + a28 = 1; + return -1; + } else if((((a19==3)&&((a17==2)&&((a16==7)&&(((a28==1)&&(((a13==1)&&(((a28==1)&&((input==1)&&((a5==4)||(a5==5))))&&(a3==1)))&&(a28==1)))&&(a9==9)))))&&(((((a2==1)&&(a21==12))||!(a12==1))&&!(a20==1))&&(a1==13)))){ + a7 = 0; + a28 = 1; + a20 = 1; + a21 = 10; + a9 = 7; + a19 = 1; + a1 = 12; + a5 = 4; + return -1; + } else if((((a17==2)&&((((a24==1)||(!(a26==1)&&((a20==1)&&(((a12==1)&&(!(a7==1)&&(a11==1)))||(a18==1)))))&&!(a14==1))&&(a1==12)))&&((a9==10)&&(((((input==3)&&((a5==5)||(a5==6)))&&(a21==10))&&(a16==11))&&(a19==4))))){ + a8 = 0; + a5 = 4; + a9 = 7; + a0 = 0; + a26 = 0; + a19 = 1; + a16 = 7; + return -1; + } else if((((a1==13)&&(((a3==1)&&(((a13==1)&&(a17==2))&&!(a27==1)))&&(a16==9)))&&((a9==8)&&((a5==5)&&(((a2==1)&&((!(a18==1)&&((((input==6)&&!(a20==1))&&!(a7==1))&&(a19==1)))&&(a12==1)))&&(a21==12)))))){ + a20 = 1; + a5 = 6; + a21 = 10; + a18 = 1; + a16 = 7; + a23 = 0; + a1 = 12; + a22 = 1; + a9 = 11; + return -1; + } else if((((a21==11)&&(((a1==14)&&(((a18==1)||(a6==1))&&!(a27==1)))&&(a16==10)))&&((!(a14==1)&&((((((((input==1)&&((a5==4)||(a5==5)))&&(a6==1))&&(a19==1))&&!(a24==1))&&(a9==9))&&(a17==2))&&(a20==1)))&&(a6==1)))){ + a4 = 0; + a9 = 7; + a19 = 4; + a0 = 0; + a5 = 5; + a16 = 7; + a1 = 13; + return -1; + } return calculate_output39(input); + } + + int calculate_output39(int input) { + if((((!(a6==1)&&(((a4==1)&&((((a1==14)&&((a6==1)&&(a5==5)))&&(a4==1))&&(a17==2)))&&(a20==1)))&&(a16==9))&&(((a4==1)&&((a21==12)&&((((a9==9)&&(input==1))&&!(a6==1))&&(a19==2))))&&(a18==1)))){ + a19 = 1; + a21 = 10; + a2 = 0; + a9 = 10; + a16 = 7; + a18 = 1; + return -1; + } else if(((((a17==2)&&((a16==8)&&(((((a5==4)||(a5==5))&&(input==1))&&!(a27==1))&&(a20==1))))&&!(a4==1))&&(((((a1==13)&&(!(a13==1)||(((!(a11==1)||(a3==1))||(a7==1))&&(a21==11))))&&(a9==7))&&!(a4==1))&&(a19==1)))){ + a21 = 10; + a4 = 0; + a5 = 4; + a1 = 12; + a16 = 7; + a18 = 0; + a23 = 1; + return -1; + } else if(((!(a7==1)&&((!(a27==1)&&((a19==1)&&((a16==9)&&((a3==1)&&(((a21==10)&&(((input==4)&&((((a5==4)&&(a1==13))&&(a9==7))||(((a9==11)&&((a5==5)&&(a1==12)))||((a9==11)&&((a5==6)&&(a1==12))))))&&(a17==2)))&&!(a24==1))))))&&(a12==1)))&&((a20==1)&&((a3==1)&&(a12==1))))){ + a9 = 7; + a4 = 0; + a5 = 4; + a7 = 0; + a16 = 7; + a1 = 12; + return -1; + } else if(((!(a7==1)&&(!(a18==1)&&(((!(a4==1)&&((!(a20==1)&&(((input==1)&&(a21==12))&&(a16==10)))&&(a19==4)))&&(a1==12))&&(a9==7))))&&((a8==1)||((a17==2)&&(((a23==1)&&((a11==1)&&(a13==1)))&&(a5==4)))))){ + if((a14==1)){ + a19 = 1; + a20 = 1; + a1 = 14; + a27 = 1; + a6 = 0; + a9 = 11; + a0 = 1; + a21 = 10; + a16 = 7; + }else{ + a15 = 1; + a5 = 6; + a19 = 5; + a4 = 1; + a29 = 0; + a16 = 8; + a21 = 10; + } + return -1; + } else if(((((a16==7)&&((a19==1)&&(!(a4==1)&&(((a21==10)&&((((input==3)&&(a5==4))&&!(a18==1))&&(a3==1)))&&!(a20==1)))))&&(a1==12))&&((a17==2)&&(((((a12==1)||!(a3==1))&&!(a0==1))||!(a28==1))&&(a9==9))))){ + a14 = 0; + a12 = 1; + a9 = 7; + a20 = 1; + a24 = 0; + return -1; + } else if((((((((((a2==1)&&(((input==4)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(a17==2)))&&(a6==1))&&!(a4==1))&&(a23==1))&&(a20==1))&&(a1==14))&&(a16==7))&&((((a23==1)&&(!(a12==1)||(a6==1)))&&(a19==5))&&(a21==12)))){ + a0 = 0; + a19 = 1; + a27 = 0; + a9 = 7; + a28 = 1; + a5 = 4; + a1 = 12; + a21 = 10; + return -1; + } else if((((((((!(a4==1)&&((a19==5)&&(input==3)))&&(a9==8))&&(a21==12))&&(a16==10))&&!(a0==1))&&(a2==1))&&((!(a11==1)||(((a17==2)&&(((a20==1)&&((a5==5)&&(a23==1)))&&(a1==13)))||!(a23==1)))||(a4==1)))){ + if((a12==1)){ + a24 = 0; + a5 = 6; + a21 = 10; + a9 = 11; + a1 = 14; + a8 = 0; + a16 = 8; + a6 = 1; + a19 = 2; + a20 = 0; + }else{ + a21 = 10; + a19 = 1; + a13 = 1; + a1 = 12; + a28 = 1; + a16 = 9; + a5 = 6; + } + return 22; + } else if(((((a19==5)&&((a1==13)&&((!(a0==1)&&((a28==1)&&(a16==9)))&&!(a27==1))))&&!(a4==1))&&((a12==1)&&(((a21==10)&&((!(a20==1)&&((a13==1)&&((a17==2)&&((input==6)&&((a5==5)||(a5==6))))))&&!(a27==1)))&&(a9==11))))){ + a19 = 3; + a9 = 8; + a29 = 0; + a2 = 0; + a20 = 1; + a5 = 5; + a27 = 1; + return -1; + } else if(((((a11==1)||!(a13==1))&&(a28==1))&&((a16==7)&&((((a11==1)&&(((a20==1)&&((a9==9)&&((a17==2)&&((a11==1)&&(((a11==1)&&(((a5==5)||(a5==6))&&(input==3)))&&!(a26==1))))))&&(a1==13)))&&(a21==12))&&(a19==2))))){ + a21 = 10; + a7 = 0; + a5 = 5; + a14 = 0; + a16 = 9; + a23 = 1; + a19 = 3; + a9 = 8; + return 21; + } else if((((((a16==9)&&((((input==1)&&(((((a1==14)&&(a5==6))&&(a9==11))&&(a19==2))||((a19==3)&&((a9==7)&&((a5==4)&&(a1==12))))))&&(a17==2))&&(a21==11)))&&!(a20==1))&&!(a24==1))&&((a24==1)||((((a23==1)&&(!(a12==1)||(a6==1)))||(a18==1))&&!(a0==1))))){ + a18 = 1; + a16 = 7; + a2 = 0; + a19 = 2; + a21 = 10; + a20 = 1; + a9 = 11; + a5 = 5; + a1 = 12; + a24 = 1; + return -1; + } else if(((((a9==9)&&(((a17==2)&&((a6==1)&&((!(a0==1)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6))))&&(a23==1))))&&!(a7==1)))&&(a19==3))&&(((!(a2==1)||(((a16==8)&&((a1==12)&&(a28==1)))&&(a3==1)))&&!(a20==1))&&(a21==11)))){ + a9 = 11; + a5 = 5; + a16 = 7; + a20 = 1; + a24 = 0; + a2 = 1; + a1 = 13; + a19 = 4; + return 23; + } else if(((!(a4==1)&&(!(a14==1)&&(!(a7==1)&&((((a5==5)&&(((a17==2)&&(input==1))&&(a19==3)))&&(a1==14))&&(a11==1)))))&&(((a26==1)||(((!(a20==1)&&((a21==11)&&(a3==1)))&&(a16==8))&&(a9==9)))&&!(a4==1)))){ + a9 = 7; + a19 = 1; + a28 = 1; + a16 = 7; + a0 = 0; + a21 = 10; + a20 = 1; + a1 = 12; + a5 = 4; + return -1; + } else if((((a3==1)&&((!(a13==1)||(a11==1))&&!(a20==1)))&&((((((a17==2)&&(!(a4==1)&&((a11==1)&&(!(a8==1)&&(!(a18==1)&&((((a5==5)||(a5==6))&&(input==1))&&(a21==10)))))))&&(a9==10))&&(a16==8))&&(a19==4))&&(a1==14)))){ + a16 = 10; + a5 = 6; + a3 = 1; + a1 = 12; + a9 = 7; + a21 = 12; + a19 = 2; + a20 = 1; + a26 = 0; + return 26; + } else if(((((!(a23==1)||((a11==1)&&((a13==1)&&!(a20==1))))&&(a21==12))&&(a19==5))&&((!(a27==1)&&((a17==2)&&((a1==14)&&(!(a8==1)&&((a16==7)&&(!(a7==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a12==1))))))))&&(a9==7)))){ + a18 = 0; + a20 = 1; + a19 = 1; + a21 = 10; + a26 = 0; + a12 = 1; + a5 = 4; + a1 = 12; + return -1; + } else if(((!(a20==1)&&(!(a8==1)&&(((a1==13)&&((a21==10)&&((((input==1)&&((a5==4)||(a5==5)))&&(a19==3))&&!(a14==1))))&&(a16==9))))&&(((a0==1)||(((a8==1)||(((a11==1)&&(a17==2))&&(a9==7)))||!(a3==1)))||(a14==1)))){ + a8 = 1; + a9 = 10; + a4 = 1; + a5 = 5; + a29 = 0; + a19 = 2; + return 21; + } else if((((((a1==14)&&((a19==5)&&(!(a2==1)||((a21==11)&&(a28==1)))))&&(a16==9))&&(a17==2))&&((a6==1)&&(!(a8==1)&&((((!(a8==1)&&((((a5==4)||(a5==5))&&(input==6))&&(a11==1)))&&(a12==1))&&(a20==1))&&(a9==11)))))){ + a1 = 13; + a16 = 7; + a5 = 5; + a18 = 0; + a4 = 0; + a19 = 3; + a21 = 10; + a24 = 0; + a9 = 7; + return 25; + } else if((((a20==1)&&((!(a4==1)&&(((((a6==1)&&((input==5)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))))&&!(a18==1))&&(a19==5))&&!(a7==1)))&&(a17==2)))&&((a16==7)&&((a28==1)&&((a21==12)&&((!(a23==1)||(a2==1))&&(a1==14))))))){ + a5 = 4; + a12 = 1; + a9 = 7; + a7 = 0; + a23 = 1; + a19 = 1; + a1 = 12; + a21 = 10; + return -1; + } else if((((((a17==2)&&((!(a27==1)&&(a28==1))&&(a13==1)))||(a26==1))||(a7==1))&&(((a21==11)&&(((a16==10)&&((a1==12)&&((!(a8==1)&&(((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11)))&&(input==1)))&&!(a26==1))))&&(a19==1)))&&!(a20==1)))){ + a16 = 8; + a19 = 5; + a9 = 9; + a23 = 0; + a5 = 4; + a8 = 1; + a28 = 0; + return -1; + } else if((((a21==11)&&((a28==1)&&((a17==2)&&(!(a27==1)&&(((a3==1)&&(a1==12))&&(a12==1))))))&&((((((a19==4)&&((!(a26==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3)))&&!(a26==1)))&&(a28==1))&&(a20==1))&&(a16==8))&&(a9==10)))){ + a11 = 1; + a19 = 5; + a2 = 1; + a9 = 9; + a21 = 10; + a5 = 6; + a8 = 0; + return -1; + } else if(((!(a4==1)&&((a17==2)&&((a1==13)&&((a23==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a9==7))))))&&((!(a2==1)||((a21==12)&&((a11==1)&&(!(a3==1)||((((a20==1)&&(a28==1))&&!(a27==1))&&(a19==1))))))&&(a16==8)))){ + a1 = 12; + a16 = 7; + a3 = 1; + a14 = 0; + a21 = 10; + a5 = 4; + a6 = 1; + return -1; + } else if((((a9==8)&&((a12==1)&&(((a17==2)&&(((a20==1)&&(((a5==4)||(a5==5))&&(input==4)))&&!(a24==1)))&&(a23==1))))&&((a16==8)&&((a1==13)&&(((((!(a13==1)||(a3==1))&&!(a7==1))&&!(a4==1))&&(a19==4))&&(a21==11)))))){ + a3 = 1; + a9 = 7; + a1 = 12; + a5 = 4; + a21 = 10; + a2 = 1; + a16 = 7; + a11 = 1; + a19 = 1; + return -1; + } else if((((a1==13)&&(((a16==10)&&((((a17==2)&&((((input==3)&&(a21==11))&&!(a8==1))&&!(a7==1)))&&(a5==5))&&!(a4==1)))&&(a9==10)))&&((a19==1)&&((a20==1)&&(((a6==1)&&(!(a8==1)&&(a2==1)))&&!(a27==1)))))){ + a6 = 1; + a1 = 12; + a24 = 0; + a21 = 10; + a23 = 1; + a16 = 7; + a5 = 4; + a9 = 7; + return -1; + } else if(((!(a18==1)&&((((a17==2)&&(!(a8==1)&&((!(a14==1)&&((input==4)&&((a5==5)||(a5==6))))&&(a1==13))))&&(a9==9))&&(a11==1)))&&(!(a26==1)&&(!(a20==1)&&((a19==1)&&((a4==1)||((a16==8)&&((a21==12)&&(a13==1))))))))){ + a20 = 1; + a21 = 10; + a25 = 1; + a6 = 0; + a9 = 10; + a22 = 0; + a5 = 6; + a16 = 7; + return -1; + } else if((((!(a18==1)&&(((a9==7)&&(!(a26==1)&&((a17==2)&&(input==5))))&&(a16==10)))&&(a5==4))&&((a1==13)&&(((a19==5)&&((!(a2==1)||(!(a12==1)||(((a28==1)&&!(a24==1))||(a0==1))))&&(a20==1)))&&(a21==12))))){ + a19 = 4; + a21 = 10; + a9 = 11; + a16 = 7; + a14 = 0; + a27 = 0; + a1 = 14; + return 25; + } else if(((!(a3==1)||(((((a19==2)&&((a6==1)&&(a11==1)))&&(a21==12))&&(a17==2))&&!(a14==1)))&&(!(a20==1)&&(!(a14==1)&&(((a9==10)&&((((a1==14)&&((a16==7)&&(input==1)))&&(a23==1))&&!(a0==1)))&&(a5==4)))))){ + a21 = 10; + a19 = 1; + a1 = 12; + a23 = 1; + a20 = 1; + a13 = 1; + a9 = 7; + a14 = 0; + return -1; + } else if((((a16==10)&&((a1==13)&&((a11==1)&&((((input==3)&&(a5==6))&&!(a26==1))&&(a11==1)))))&&((a18==1)||((a9==7)&&((((a28==1)&&((a17==2)&&(((a2==1)&&(a20==1))&&(a21==12))))&&!(a0==1))&&(a19==2)))))){ + a1 = 12; + a16 = 7; + a2 = 1; + a21 = 10; + a26 = 0; + a5 = 4; + a19 = 1; + a0 = 0; + return -1; + } else if((((!(a20==1)&&(((a19==1)&&((a1==12)&&(!(a12==1)||((a8==1)||(!(a2==1)||(a23==1))))))&&(a16==8)))&&(a17==2))&&((a9==7)&&((a2==1)&&(((((input==5)&&((a5==5)||(a5==6)))&&(a6==1))&&(a12==1))&&(a21==12)))))){ + if((a6==1)){ + a22 = 1; + a16 = 7; + a5 = 6; + a20 = 1; + a19 = 2; + a23 = 0; + a21 = 10; + a29 = 1; + a9 = 11; + }else{ + a5 = 5; + a16 = 11; + a24 = 1; + a15 = 1; + a18 = 1; + a19 = 4; + a9 = 8; + a21 = 10; + } + return 22; + } else if((((a16==10)&&((a17==2)&&((a2==1)&&(((a1==12)&&((a5==5)&&(!(a7==1)&&(!(a8==1)&&(!(a20==1)&&(input==3))))))&&!(a14==1)))))&&(((a19==4)&&(((a21==12)&&((a4==1)||(a28==1)))&&(a12==1)))&&(a9==11)))){ + a5 = 4; + a20 = 1; + a16 = 7; + a9 = 10; + a29 = 1; + a19 = 1; + a21 = 10; + a15 = 0; + a1 = 14; + a25 = 0; + return 25; + } else if((((a9==9)&&(((((a3==1)&&((a2==1)&&(a23==1)))&&(a1==13))&&(a16==7))&&!(a20==1)))&&((a19==3)&&(((a23==1)&&(!(a8==1)&&((a28==1)&&((a17==2)&&((a23==1)&&(((a5==4)||(a5==5))&&(input==6)))))))&&(a21==12))))){ + a26 = 0; + a20 = 1; + a16 = 9; + a23 = 1; + a19 = 4; + a27 = 0; + a5 = 6; + return 21; + } else if((((!(a7==1)&&(((a1==12)&&((a16==7)&&(((((input==4)&&((a5==5)||(a5==6)))&&!(a4==1))&&(a17==2))&&(a6==1))))&&!(a26==1)))&&!(a4==1))&&((a19==1)&&((a9==8)&&(((a21==11)&&(!(a26==1)&&(a12==1)))&&!(a20==1)))))){ + a12 = 1; + a7 = 0; + a1 = 14; + a21 = 12; + a16 = 8; + a5 = 6; + a23 = 1; + a20 = 1; + a19 = 5; + return -1; + } else if(((!(a28==1)&&((((a9==8)&&((((a11==1)&&(a16==7))&&!(a3==1))&&(a19==5)))&&!(a20==1))&&!(a3==1)))&&(((a4==1)&&(((a21==12)&&((a1==14)&&((((a5==4)||(a5==5))&&(input==3))&&(a17==2))))&&(a0==1)))&&!(a2==1)))){ + a20 = 1; + a6 = 0; + a19 = 1; + a25 = 1; + a24 = 1; + a21 = 10; + a5 = 6; + a9 = 9; + return -1; + } else if((((a16==10)&&(((((a5==5)&&((a21==11)&&((a7==1)||((a9==10)&&(a2==1)))))||!(a12==1))&&!(a27==1))&&!(a7==1)))&&((((!(a4==1)&&((a20==1)&&((input==1)&&(a19==1))))&&!(a4==1))&&(a1==13))&&(a17==2)))){ + a24 = 0; + a11 = 1; + a16 = 7; + a9 = 7; + a13 = 1; + a19 = 4; + return 25; + } else if(((((a9==11)&&((a20==1)&&(!(a18==1)&&(((input==6)&&((a5==4)||(a5==5)))&&(a12==1)))))&&(a17==2))&&(((!(a2==1)||((((a21==10)&&((a19==5)&&((a3==1)||(a0==1))))&&(a16==9))||!(a6==1)))&&!(a14==1))&&(a1==14)))){ + a1 = 12; + a3 = 1; + a16 = 7; + a26 = 0; + a19 = 1; + a5 = 4; + a9 = 7; + a18 = 0; + return -1; + } else if((((a2==1)&&((((!(a24==1)&&(((a0==1)||(a2==1))&&(a17==2)))||(a26==1))||(a0==1))&&(a21==10)))&&(((((a1==14)&&((a9==10)&&(((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&(a16==7))))&&(a19==2))&&!(a20==1))&&!(a4==1)))){ + a5 = 4; + a20 = 1; + a2 = 1; + a19 = 1; + a9 = 7; + a1 = 12; + a24 = 0; + a12 = 1; + return -1; + } else if(((((a17==2)&&((a20==1)&&((a16==7)&&(((input==6)&&(a21==12))&&(a9==8)))))&&!(a27==1))&&((((a3==1)&&(((a5==6)&&((((a3==1)||(a14==1))&&!(a18==1))&&(a19==2)))&&(a1==13)))&&(a2==1))||!(a12==1)))){ + a1 = 12; + a5 = 4; + a19 = 5; + a16 = 8; + a3 = 1; + a2 = 1; + a9 = 7; + a6 = 1; + return 26; + } else if((((a17==2)&&(!(a3==1)||(((a9==10)&&((((a6==1)||!(a2==1))&&(a5==6))&&!(a18==1)))&&!(a8==1))))&&((a1==13)&&((a20==1)&&((a19==2)&&(((a16==7)&&(((a21==12)&&(input==4))&&(a23==1)))&&(a11==1))))))){ + a1 = 12; + a19 = 1; + a21 = 10; + a8 = 0; + a5 = 4; + a9 = 7; + a12 = 1; + a14 = 0; + return -1; + } else if(((((a21==12)&&(((a6==1)&&((input==4)&&((((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4)))))&&!(a24==1)))&&(a1==12))&&(!(a20==1)&&((!(a6==1)||((((a7==1)||(((a28==1)&&(a19==5))&&(a16==8)))||(a27==1))&&(a17==2)))&&(a12==1))))){ + a21 = 10; + a5 = 5; + a20 = 1; + a22 = 1; + a9 = 8; + a1 = 13; + a2 = 0; + a0 = 1; + return -1; + } else if(((!(a0==1)&&((!(a20==1)&&(((((input==5)&&(((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))))&&(a3==1))&&(a19==1))&&(a21==10)))&&(a2==1)))&&((a2==1)&&((a26==1)||(((((a28==1)&&(a17==2))||!(a6==1))&&(a1==14))&&(a16==9)))))){ + if((a15==1)){ + a13 = 0; + a5 = 4; + a16 = 11; + a1 = 13; + a21 = 11; + a26 = 1; + a20 = 1; + a9 = 11; + a2 = 0; + a19 = 3; + }else{ + a19 = 5; + a1 = 12; + a23 = 0; + a9 = 8; + a5 = 5; + a15 = 1; + a28 = 0; + a16 = 11; + a21 = 11; + a20 = 1; + } + return 22; + } else if((((((a17==2)&&((a20==1)&&(((a11==1)&&((a16==10)&&(((a5==4)||(a5==5))&&(input==5))))&&(a21==11))))&&(a9==8))&&!(a27==1))&&((a6==1)&&(!(a12==1)||((a1==13)&&(!(a14==1)&&((a28==1)&&((a13==1)&&(a19==3))))))))){ + a9 = 7; + a6 = 1; + a13 = 1; + a7 = 0; + a1 = 12; + a16 = 7; + a5 = 4; + a19 = 1; + a21 = 10; + return -1; + } else if(((!(a26==1)&&(((((((!(a7==1)&&((((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(input==3)))&&(a21==10))&&(a11==1))&&(a1==14))&&(a16==9))&&!(a4==1))&&(a12==1)))&&((a19==5)&&((a17==2)&&((a20==1)&&((a28==1)&&!(a7==1))))))){ + a19 = 1; + a5 = 4; + a16 = 7; + a6 = 1; + a9 = 7; + a3 = 1; + a27 = 0; + a1 = 12; + return -1; + } else if((((a2==1)&&((!(a20==1)&&((a1==14)&&((((a28==1)&&((a28==1)&&(a16==7)))&&(a9==7))&&(a3==1))))&&(a17==2)))&&(((a5==6)&&((a23==1)&&(((a13==1)&&((a21==11)&&(input==4)))&&!(a27==1))))&&(a19==2)))){ + a21 = 10; + a3 = 1; + a1 = 12; + a5 = 4; + a19 = 1; + a20 = 1; + a13 = 1; + a23 = 1; + return -1; + } else if(((((((a17==2)&&(a23==1))||!(a23==1))&&!(a4==1))||!(a12==1))&&(((a21==11)&&(((a11==1)&&(((a16==9)&&(((input==5)&&((((a1==12)&&(a5==6))&&(a9==11))||((a9==7)&&((a1==13)&&(a5==4)))))&&(a6==1)))&&!(a20==1)))&&!(a26==1)))&&(a19==3)))){ + a19 = 2; + a8 = 1; + a1 = 12; + a20 = 1; + a16 = 7; + a9 = 9; + a10 = 1; + a2 = 0; + a21 = 10; + a5 = 4; + return 25; + } else if(((!(a4==1)&&((((a28==1)&&!(a4==1))||(a18==1))&&(a19==2)))&&((((a13==1)&&(((!(a26==1)&&(((a1==14)&&(((input==1)&&(a17==2))&&(a5==4)))&&(a21==12)))&&(a23==1))&&(a9==7)))&&!(a20==1))&&(a16==7)))){ + a20 = 1; + a3 = 1; + a23 = 1; + a18 = 0; + a1 = 12; + a21 = 10; + a19 = 1; + return -1; + } else if((((a19==4)&&(((a23==1)&&(((a16==9)&&((a3==1)&&(a12==1)))&&(a21==11)))&&(a9==7)))&&(((((((a1==13)&&(!(a4==1)&&(((a5==5)||(a5==6))&&(input==6))))&&!(a26==1))&&!(a27==1))&&(a20==1))&&(a17==2))&&!(a4==1)))){ + a5 = 5; + a19 = 2; + a24 = 0; + a16 = 10; + a14 = 0; + a23 = 1; + a9 = 9; + return 21; + } else if(((((a2==1)&&((a19==5)&&((((input==1)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(a21==10))&&!(a4==1))))&&(a1==13))&&((((((a13==1)&&((!(a28==1)||(a11==1))&&(a11==1)))&&(a16==10))||!(a2==1))&&(a20==1))&&(a17==2)))){ + a9 = 7; + a11 = 1; + a19 = 1; + a16 = 7; + a24 = 0; + a5 = 4; + a27 = 0; + a1 = 12; + return -1; + } else if(((((a16==10)&&((!(a14==1)&&(((a6==1)&&(((input==1)&&(a1==14))&&!(a8==1)))&&(a13==1)))&&(a2==1)))&&(a20==1))&&((((a17==2)&&((!(a23==1)||((a9==11)&&(a28==1)))&&(a21==12)))&&(a19==2))&&(a5==5)))){ + a1 = 12; + a3 = 1; + a19 = 1; + a28 = 1; + a9 = 7; + a26 = 0; + a5 = 4; + a21 = 10; + a16 = 7; + return -1; + } else if(((((a9==7)&&((a1==13)&&(!(a2==1)&&((!(a20==1)&&(a6==1))&&(a16==8)))))&&(a26==1))&&((!(a2==1)&&(((a19==2)&&(!(a2==1)&&(((a8==1)&&((input==5)&&((a5==5)||(a5==6))))&&(a17==2))))&&(a21==10)))&&(a0==1)))){ + a20 = 1; + a23 = 0; + a22 = 0; + a16 = 7; + a5 = 6; + a1 = 14; + a9 = 10; + a13 = 0; + a19 = 1; + return -1; + } else if((((a20==1)&&((a16==9)&&((!(a4==1)&&(a23==1))&&!(a14==1))))&&((a17==2)&&(!(a24==1)&&(!(a14==1)&&((a23==1)&&(((((a21==10)&&((input==5)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5)))))&&(a1==13))&&(a19==1))&&!(a24==1)))))))){ + a9 = 8; + a19 = 5; + a16 = 8; + a1 = 14; + a21 = 12; + a5 = 5; + a24 = 0; + a18 = 0; + return 25; + } else if((((a16==7)&&((a5==5)&&((((a17==2)&&((a1==14)&&(!(a24==1)&&(!(a0==1)&&((input==5)&&(a21==10))))))&&!(a20==1))&&(a9==7))))&&(((a28==1)&&((a19==5)&&((a18==1)||((a23==1)&&!(a26==1)))))&&!(a8==1)))){ + a1 = 12; + a23 = 1; + a19 = 1; + a5 = 4; + a20 = 1; + a13 = 1; + a18 = 0; + return -1; + } else if((((a16==11)&&((a19==3)&&((a20==1)&&((a1==14)&&((a9==7)&&((a3==1)&&((((a12==1)&&((input==6)&&(a17==2)))&&(a23==1))&&(a28==1))))))))&&(((a5==5)&&(((a13==1)&&(a28==1))||!(a28==1)))&&(a21==10)))){ + a1 = 12; + a28 = 1; + a5 = 4; + a16 = 7; + a23 = 1; + a24 = 0; + a19 = 1; + return -1; + } else if(((((!(a20==1)&&((((a21==10)&&(((input==5)&&(a5==5))&&(a17==2)))&&(a1==13))&&(a16==8)))&&!(a8==1))&&!(a7==1))&&(((a9==8)&&((a14==1)||((((a28==1)&&(a19==5))&&!(a14==1))&&(a3==1))))&&(a28==1)))){ + a26 = 0; + a20 = 1; + a1 = 14; + a24 = 0; + a21 = 12; + a4 = 0; + a9 = 7; + return -1; + } else if(((((a5==6)&&((a3==1)&&((a20==1)&&((((a1==12)&&(a3==1))&&(a16==9))&&(a19==4)))))&&(a17==2))&&((!(a26==1)&&(!(a26==1)&&(!(a8==1)&&(((a9==10)&&((a21==11)&&(input==1)))&&!(a27==1)))))&&(a2==1)))){ + if((a12==1)){ + a9 = 8; + a13 = 1; + a8 = 0; + a5 = 5; + a2 = 1; + a16 = 8; + a20 = 0; + }else{ + a16 = 7; + a5 = 4; + a18 = 0; + a2 = 1; + a1 = 13; + a27 = 0; + a19 = 2; + a21 = 10; + } + return 21; + } else if((((a3==1)&&((((a27==1)||(((a11==1)&&(a1==13))&&(a17==2)))&&(a21==12))&&(a16==10)))&&(((((a19==2)&&(!(a0==1)&&((a20==1)&&(((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))&&(input==1)))))&&(a6==1))&&(a6==1))&&(a11==1)))){ + a7 = 0; + a21 = 10; + a19 = 5; + a5 = 5; + a16 = 8; + a9 = 11; + a27 = 0; + a20 = 0; + a1 = 12; + a18 = 0; + return 21; + } else if((((a9==8)&&((!(a26==1)&&((a14==1)||(((!(a0==1)&&(a2==1))&&(a19==2))&&(a1==14))))&&(a20==1)))&&(!(a24==1)&&((((a13==1)&&(!(a14==1)&&((a16==10)&&((a5==4)&&(input==6)))))&&(a17==2))&&(a21==12))))){ + a3 = 1; + a21 = 10; + a16 = 7; + a2 = 1; + a24 = 0; + a19 = 1; + a9 = 7; + a1 = 12; + return -1; + } else if((((!(a4==1)&&(((((a21==11)&&((input==1)&&((a5==4)||(a5==5))))&&(a16==8))&&!(a26==1))&&(a1==14)))&&(a11==1))&&(!(a12==1)||(((a9==8)&&((a19==5)&&(!(a20==1)&&((a26==1)||((a0==1)||(a3==1))))))&&(a17==2))))){ + a14 = 1; + a20 = 1; + a16 = 10; + a19 = 3; + a1 = 12; + a21 = 10; + a25 = 0; + a9 = 11; + a6 = 0; + a5 = 5; + return 25; + } else if((((a21==11)&&(!(a18==1)&&((a11==1)&&(((a16==11)&&((a17==2)&&((input==5)&&((a5==5)||(a5==6)))))&&(a20==1)))))&&((((a1==12)&&((!(a6==1)||(!(a7==1)&&((a12==1)||(a0==1))))&&(a19==3)))||!(a11==1))&&(a9==7)))){ + a19 = 1; + a8 = 0; + a21 = 10; + a18 = 0; + a16 = 7; + a5 = 4; + a27 = 0; + return -1; + } else if((((a19==4)&&(!(a4==1)&&((a21==12)&&(a11==1))))&&(((!(a14==1)&&((!(a0==1)&&((!(a26==1)&&((a16==10)&&((a12==1)&&((((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(input==3)))))&&(a1==13)))&&(a2==1)))&&(a20==1))&&(a17==2)))){ + a9 = 7; + a19 = 1; + a14 = 0; + a1 = 12; + a21 = 10; + a5 = 4; + a23 = 1; + a26 = 0; + a16 = 7; + return -1; + } else if(((!(a24==1)&&(((a16==8)&&((!(a4==1)&&(((input==1)&&((a5==4)||(a5==5)))&&(a17==2)))&&(a1==13)))&&(a9==9)))&&((a21==12)&&((a20==1)&&((a19==2)&&((!(a4==1)&&(((a28==1)||(a27==1))&&(a11==1)))||!(a6==1))))))){ + a16 = 10; + a19 = 1; + a13 = 1; + a5 = 4; + a1 = 12; + a9 = 10; + a4 = 0; + a23 = 1; + return 25; + } else if((((a14==1)&&((a19==4)&&(((((a16==8)&&(((a11==1)&&(a1==12))&&(a20==1)))&&(a0==1))&&!(a2==1))&&(a0==1))))&&(((a21==12)&&(((((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))&&(input==6))&&!(a13==1))&&!(a11==1)))&&(a17==2)))){ + a3 = 0; + a16 = 7; + a21 = 10; + a22 = 1; + a25 = 0; + a19 = 1; + a1 = 13; + a5 = 6; + a9 = 8; + return 21; + } else if((((a12==1)&&(!(a8==1)&&(((a17==2)&&(!(a4==1)&&((a3==1)&&((a19==1)&&((((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6))))&&(input==1))))))&&(a2==1))))&&(((a8==1)||((a16==9)&&((a21==10)&&((a1==13)&&(a2==1)))))&&(a20==1)))){ + a6 = 1; + a5 = 4; + a16 = 7; + a18 = 0; + a4 = 0; + a9 = 7; + a1 = 12; + return -1; + } else if(((((a20==1)&&((((a1==12)&&(((a5==5)&&(input==1))&&(a28==1)))&&(a6==1))&&(a3==1)))&&(a19==2))&&((a17==2)&&(((a16==8)&&((!(a13==1)||((a14==1)||((a0==1)||(a11==1))))&&(a21==10)))&&(a9==7))))){ + a9 = 8; + a27 = 0; + a5 = 6; + a19 = 1; + a14 = 0; + a1 = 14; + a21 = 12; + return 21; + } else if(((!(a23==1)||(((a8==1)||(((a21==10)&&(a12==1))&&!(a20==1)))&&(a17==2)))&&((a11==1)&&((a28==1)&&(!(a24==1)&&((a16==11)&&(((a19==1)&&((a9==9)&&((a23==1)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6))))))&&(a1==13)))))))){ + if((a27==1)){ + a20 = 1; + a9 = 11; + a25 = 1; + a5 = 6; + a21 = 12; + a16 = 10; + a27 = 1; + a1 = 14; + a19 = 2; + a4 = 1; + }else{ + a27 = 1; + a14 = 1; + a10 = 0; + a1 = 12; + a5 = 4; + a9 = 11; + a19 = 2; + a16 = 10; + } + return -1; + } else if((((a20==1)&&((((a1==12)&&(((a21==10)&&(a11==1))&&(a11==1)))&&!(a14==1))||(a4==1)))&&(((a13==1)&&(((a9==11)&&((a19==1)&&((a17==2)&&(!(a4==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5))))))))&&(a16==11)))&&!(a24==1)))){ + a11 = 1; + a3 = 1; + a16 = 8; + a21 = 11; + a1 = 14; + a13 = 1; + a5 = 5; + a20 = 0; + a9 = 7; + return 26; + } else if(((((a21==10)&&((((a3==1)&&(a4==1))&&(a20==1))&&!(a2==1)))&&!(a12==1))&&(!(a3==1)&&((((a19==2)&&((a9==8)&&((a17==2)&&((a16==8)&&((a14==1)&&(((a5==5)||(a5==6))&&(input==3)))))))&&(a1==14))&&!(a28==1))))){ + a29 = 0; + a21 = 11; + a0 = 1; + a8 = 1; + a16 = 10; + a5 = 4; + a9 = 7; + a19 = 3; + return -1; + } else if((((a18==1)&&(!(a23==1)&&((a16==7)&&((a19==3)&&(a12==1)))))&&((a21==12)&&((a26==1)&&((a17==2)&&(((a20==1)&&(!(a6==1)&&((a18==1)&&(!(a23==1)&&((input==3)&&((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8))))))))&&(a1==12))))))){ + a19 = 1; + a21 = 10; + a13 = 0; + a25 = 1; + a5 = 6; + a24 = 1; + a1 = 13; + a9 = 8; + return 26; + } else if(((((a17==2)&&((a3==1)&&(!(a14==1)&&((((((input==1)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(a2==1))&&(a21==10))&&(a1==12))&&(a13==1)))))&&(a19==4))&&((((a20==1)&&((a16==7)&&(a23==1)))&&(a2==1))&&(a28==1)))){ + a5 = 4; + a21 = 11; + a19 = 3; + a9 = 9; + a3 = 1; + a1 = 13; + a12 = 1; + return 21; + } else if(((((a1==12)&&((a9==10)&&(((a17==2)&&(!(a4==1)&&((((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a20==1))&&(a21==12))))&&(a28==1))))&&(a16==10))&&(!(a3==1)||(((((a19==1)&&(a6==1))||(a18==1))||(a7==1))||(a7==1))))){ + a9 = 9; + a19 = 2; + a5 = 4; + a21 = 10; + a0 = 0; + a3 = 1; + a7 = 0; + a16 = 7; + a1 = 13; + return -1; + } else if((((!(a24==1)&&(((((input==6)&&(a17==2))&&!(a18==1))&&(a11==1))&&(a16==11)))&&(a1==12))&&((a20==1)&&((a5==4)&&((((a3==1)&&((a19==3)&&(((a2==1)&&(a2==1))&&(a21==10))))||!(a6==1))&&(a9==10)))))){ + a21 = 11; + a3 = 1; + a11 = 1; + a28 = 1; + a5 = 6; + a9 = 9; + return 26; + } else if((((a2==1)&&(a20==1))&&(((a11==1)&&(((a21==11)&&((((((a23==1)&&((a23==1)&&((a5==6)&&(((input==5)&&(a1==12))&&(a16==10)))))&&(a12==1))&&(a17==2))&&!(a14==1))&&(a9==10)))&&(a19==4)))&&!(a27==1)))){ + a0 = 0; + a16 = 7; + a8 = 0; + a21 = 10; + a9 = 8; + a11 = 1; + a1 = 13; + return 21; + } else if(((((a5==6)&&((a17==2)&&((a20==1)&&((a6==1)&&((a16==9)&&((((((input==6)&&(a19==5))&&!(a14==1))&&!(a7==1))&&(a28==1))&&(a3==1)))))))&&(a21==10))&&((((a11==1)&&(a1==13))||(a4==1))&&(a9==8)))){ + a5 = 4; + a18 = 0; + a1 = 12; + a16 = 7; + a19 = 1; + a12 = 1; + a7 = 0; + a9 = 7; + return -1; + } else if((((((a21==10)&&((a23==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a9==11))))&&(a20==1))&&(a16==10))&&(((a1==13)&&((a11==1)&&((a17==2)&&(!(a4==1)&&(!(a18==1)&&(!(a13==1)||((a23==1)&&(a28==1))))))))&&(a19==1)))){ + a1 = 14; + a28 = 1; + a24 = 0; + a16 = 7; + a19 = 3; + a5 = 6; + a3 = 1; + a9 = 10; + return 25; + } else if((((!(a18==1)&&((((a1==12)&&((((a5==4)||(a5==5))&&(input==5))&&(a20==1)))&&(a16==10))&&(a19==5)))&&(a28==1))&&(!(a26==1)&&((((((a21==10)&&((a28==1)&&(a17==2)))&&(a9==11))||!(a2==1))||(a0==1))&&(a3==1))))){ + a9 = 7; + a5 = 4; + a4 = 0; + a16 = 7; + a26 = 0; + a27 = 0; + a19 = 1; + return -1; + } else if((((!(a20==1)&&((a23==1)&&((a16==7)&&((!(a26==1)&&(((a5==5)||(a5==6))&&(input==6)))&&!(a14==1)))))&&(a28==1))&&(((((a17==2)&&(((a9==9)&&((a21==10)&&(a23==1)))&&(a19==5)))&&(a1==14))&&!(a4==1))&&!(a26==1)))){ + a5 = 4; + a27 = 0; + a3 = 1; + a20 = 1; + a1 = 12; + a2 = 1; + a19 = 1; + a9 = 7; + return -1; + } else if((((a17==2)&&((a21==12)&&(((a11==1)&&(a6==1))&&!(a14==1))))&&(((((((a9==10)&&((((((a5==5)||(a5==6))&&(input==4))&&(a2==1))&&(a23==1))&&!(a24==1)))&&(a1==12))&&(a19==1))&&(a23==1))&&!(a20==1))&&(a16==9)))){ + a9 = 8; + a15 = 1; + a29 = 1; + a21 = 10; + a16 = 7; + a22 = 1; + a20 = 1; + a5 = 4; + return -1; + } else if((((a28==1)&&((((a21==12)&&((a17==2)&&(a3==1)))||(a24==1))&&(a16==8)))&&(!(a18==1)&&(!(a18==1)&&((((a19==1)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a9==9))&&(a20==1))&&(a1==13)))&&(a2==1))&&(a23==1)))))){ + a16 = 7; + a9 = 7; + a1 = 12; + a23 = 1; + a21 = 10; + a7 = 0; + a5 = 4; + a24 = 0; + return -1; + } else if(((((a21==11)&&((a16==11)&&((a17==2)&&((a1==14)&&(((a12==1)&&((a19==2)&&(input==5)))&&(a9==9))))))&&(a6==1))&&(((a20==1)&&((a5==4)&&(!(a23==1)||(!(a6==1)||(!(a4==1)&&(a23==1))))))&&(a6==1)))){ + a16 = 7; + a0 = 0; + a1 = 12; + a21 = 10; + a4 = 0; + a12 = 1; + a9 = 7; + a19 = 1; + return -1; + } else if((((a19==5)&&((((((a20==1)&&(((a23==1)&&((a5==6)&&(input==3)))&&!(a14==1)))&&(a21==12))&&(a2==1))&&(a16==9))&&(a17==2)))&&(((a1==14)&&((!(a8==1)&&((a2==1)&&(a9==10)))||!(a12==1)))&&!(a18==1)))){ + a16 = 7; + a1 = 12; + a19 = 1; + a12 = 1; + a28 = 1; + a26 = 0; + a9 = 7; + a5 = 4; + a21 = 10; + return -1; + } else if(((((a19==1)&&((a16==7)&&((a23==1)&&(((a5==5)&&(input==5))&&(a3==1)))))&&!(a27==1))&&(((!(a24==1)&&((((((a17==2)&&(a11==1))||!(a11==1))&&(a1==14))&&!(a20==1))&&(a3==1)))&&(a21==10))&&(a9==9)))){ + a9 = 11; + a5 = 4; + a16 = 9; + a3 = 1; + a6 = 1; + a19 = 5; + a20 = 1; + a21 = 11; + a18 = 0; + return 21; + } else if(((!(a20==1)&&((a9==9)&&((a1==14)&&((!(a0==1)&&(a23==1))||!(a13==1)))))&&((((a19==3)&&(((((a6==1)&&(((input==6)&&((a5==4)||(a5==5)))&&(a17==2)))&&(a12==1))&&(a13==1))&&(a28==1)))&&(a21==12))&&(a16==8)))){ + a28 = 0; + a5 = 6; + a29 = 0; + a6 = 0; + a19 = 5; + a9 = 7; + return 26; + } else if((((a19==1)&&(((a23==1)&&((a1==14)&&(((a21==12)&&(!(a24==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4))))&&!(a20==1))))&&(a9==10)))&&((a17==2)&&((!(a12==1)||(!(a28==1)||((!(a12==1)||(a23==1))&&(a6==1))))&&(a16==8))))){ + if((a28==1)){ + a3 = 0; + a21 = 10; + a19 = 2; + a20 = 1; + a29 = 0; + a5 = 4; + a1 = 12; + a16 = 7; + a22 = 0; + a9 = 9; + }else{ + a16 = 7; + a21 = 10; + a19 = 2; + a4 = 1; + a15 = 1; + a1 = 12; + a20 = 1; + a5 = 6; + a7 = 1; + a9 = 8; + } + return -1; + } else if((((!(a20==1)&&(((((a1==13)&&(input==3))&&(a17==2))&&!(a26==1))&&(a12==1)))&&(a13==1))&&((((a5==4)&&(((a16==7)&&((a19==3)&&(!(a0==1)&&((a13==1)||!(a3==1)))))&&(a21==10)))&&(a23==1))&&(a9==7)))){ + a21 = 12; + a0 = 0; + a20 = 1; + a1 = 12; + a11 = 1; + a19 = 2; + a16 = 9; + a3 = 1; + a5 = 5; + return 21; + } else if((((a17==2)&&((((a5==5)&&((((a19==3)&&(input==3))&&(a28==1))&&(a9==7)))&&(a28==1))&&(a11==1)))&&(((a20==1)&&(((!(a7==1)&&(((a16==8)&&(a2==1))||!(a23==1)))||!(a2==1))&&(a21==11)))&&(a1==13)))){ + a5 = 4; + a1 = 12; + a26 = 0; + a13 = 1; + a6 = 1; + a19 = 1; + a21 = 10; + a16 = 7; + return -1; + } else if((((a2==1)&&((a21==11)&&((((a19==4)&&((((a9==7)&&((a5==4)&&(a1==13)))||((((a1==12)&&(a5==5))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==12)))))&&(input==4)))&&(a20==1))&&(a16==7))))&&((a18==1)||((!(a7==1)&&((a27==1)||(((a11==1)&&(a23==1))&&(a17==2))))||!(a13==1))))){ + a9 = 7; + a6 = 1; + a12 = 1; + a21 = 10; + a11 = 1; + a5 = 4; + a19 = 1; + a1 = 12; + return -1; + } else if((((a21==12)&&((a4==1)||((a19==1)&&(((a13==1)&&(((a6==1)&&(a9==8))&&(a17==2)))&&!(a8==1)))))&&(((a1==12)&&((a5==6)&&((a13==1)&&((((input==6)&&(a20==1))&&(a11==1))&&(a23==1)))))&&(a16==7)))){ + a28 = 1; + a9 = 11; + a19 = 4; + a5 = 4; + a16 = 8; + a14 = 0; + return 21; + } else if((((a17==2)&&((a9==7)&&(((((a6==1)&&((a5==5)&&((a23==1)&&(a16==10))))||(a24==1))||(a0==1))&&(a20==1))))&&(!(a7==1)&&(((a21==12)&&((a19==5)&&(((a1==13)&&(input==3))&&!(a0==1))))&&!(a14==1))))){ + a24 = 0; + a9 = 9; + a5 = 6; + a11 = 1; + a8 = 0; + a1 = 12; + a21 = 10; + a16 = 8; + return -1; + } else if(((((!(a24==1)&&(((a28==1)&&(((a19==3)&&(((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11)))&&(input==6)))&&(a16==9)))&&(a13==1)))&&(a1==13))&&(a3==1))&&((a21==10)&&(!(a24==1)&&((a20==1)&&((a17==2)&&((a23==1)&&(a28==1)))))))){ + a6 = 1; + a14 = 0; + a9 = 7; + a4 = 0; + a1 = 12; + a5 = 4; + a16 = 7; + a19 = 1; + return -1; + } else if((((a20==1)&&(((((a4==1)||(!(a3==1)||(!(a23==1)||((((a23==1)&&(a19==3))&&(a16==11))&&(a21==10)))))&&(a11==1))&&(a1==14))&&(a17==2)))&&((!(a18==1)&&((input==3)&&(((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))))&&!(a26==1)))){ + a3 = 1; + a16 = 10; + a9 = 8; + a5 = 5; + a23 = 1; + return 21; + } else if(((((a21==12)&&(((!(a0==1)&&((a19==1)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==1))))&&(a6==1))&&(a16==8)))&&!(a8==1))&&((a17==2)&&((!(a3==1)||((a1==12)&&((a12==1)&&((a13==1)&&(a13==1)))))&&(a20==1))))){ + if((a10==1)){ + a9 = 9; + a27 = 0; + a8 = 0; + a16 = 7; + a7 = 0; + a20 = 0; + a5 = 6; + a21 = 11; + }else{ + a5 = 6; + a21 = 11; + a0 = 0; + a1 = 13; + a16 = 10; + a26 = 0; + a9 = 11; + a19 = 4; + a12 = 1; + } + return 23; + } else if((((!(a7==1)&&((a9==7)&&(((a17==2)&&((a19==4)&&((a12==1)&&(a16==11))))&&(a20==1))))&&(a13==1))&&((!(a8==1)&&(!(a26==1)&&((a21==11)&&(((((a5==5)||(a5==6))&&(input==5))&&!(a26==1))&&(a1==14)))))&&!(a26==1)))){ + a21 = 12; + a18 = 0; + a9 = 9; + a19 = 2; + a5 = 6; + a0 = 0; + a7 = 0; + return 25; + } else if((((((!(a4==1)&&((a11==1)&&((!(a26==1)&&((input==3)&&(a16==7)))&&(a19==5))))&&(a21==10))&&(a5==4))&&!(a20==1))&&((a17==2)&&(!(a24==1)&&((a9==10)&&(((a1==14)&&(!(a7==1)&&(a23==1)))&&!(a14==1))))))){ + a6 = 1; + a1 = 13; + a5 = 5; + a16 = 10; + a19 = 4; + a3 = 1; + a21 = 12; + a20 = 1; + a9 = 7; + a18 = 0; + return 25; + } else if(((((a16==11)&&(((a17==2)&&(!(a18==1)&&(((((a23==1)&&(((a4==1)||(a11==1))&&(a20==1)))&&!(a24==1))&&(a3==1))&&(a21==12))))||!(a11==1)))&&(a1==14))&&((a9==11)&&((a19==3)&&((input==3)&&(a5==5)))))){ + a9 = 8; + a5 = 4; + a19 = 5; + a1 = 13; + a14 = 0; + a12 = 1; + a28 = 1; + return 26; + } else if(((!(a18==1)&&(((a17==2)&&(((a9==11)&&(a2==1))&&(a1==13)))||(a4==1)))&&((((a19==2)&&((!(a7==1)&&(((a20==1)&&(((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&(a16==8)))&&(a21==10)))&&(a2==1)))&&!(a8==1))&&!(a27==1)))){ + a9 = 7; + a16 = 7; + a18 = 0; + a5 = 4; + a3 = 1; + a1 = 12; + a19 = 1; + a13 = 1; + return -1; + } else if((((((a16==9)&&((a20==1)&&((a6==1)&&(a28==1))))||!(a3==1))&&!(a14==1))&&((((a21==11)&&(((((a17==2)&&((input==6)&&((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a5==4)&&(a9==11)))))&&(a1==13))&&(a12==1))&&(a11==1)))&&(a12==1))&&(a19==1)))){ + a9 = 7; + a1 = 12; + a21 = 10; + a23 = 1; + a2 = 1; + a16 = 7; + a18 = 0; + a5 = 4; + return -1; + } else if(((((a24==1)||((a6==1)&&(a21==11)))||(a7==1))&&(!(a0==1)&&(((a19==3)&&(!(a4==1)&&(!(a7==1)&&((((!(a18==1)&&((input==3)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))))&&(a1==14))&&!(a20==1))&&(a16==10)))))&&(a17==2))))){ + a5 = 5; + a1 = 13; + a22 = 0; + a9 = 9; + a15 = 0; + a20 = 1; + a21 = 10; + a4 = 1; + a19 = 5; + a16 = 11; + return -1; + } else if((((a1==13)&&((((a17==2)&&((a28==1)&&(a19==3)))||!(a11==1))||(a14==1)))&&(!(a24==1)&&((a23==1)&&(((((a21==12)&&((a16==7)&&((input==4)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8))))))&&(a28==1))&&(a20==1))&&!(a14==1)))))){ + a11 = 1; + a23 = 1; + a19 = 1; + a1 = 12; + a13 = 1; + a9 = 7; + a21 = 10; + a5 = 4; + return -1; + } else if((((((((a6==1)&&((((a6==1)&&(a21==12))&&!(a8==1))&&(a16==7)))&&(a12==1))&&(a11==1))&&(a5==5))&&(a1==12))&&((a17==2)&&(((a6==1)&&((!(a8==1)&&((a19==3)&&(input==5)))&&!(a20==1)))&&(a9==11))))){ + a19 = 2; + a20 = 1; + a12 = 1; + a1 = 14; + a16 = 11; + a5 = 4; + a11 = 1; + a6 = 1; + return 25; + } else if((((a20==1)&&((a12==1)&&((a19==4)&&(!(a4==1)&&((((input==3)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&!(a14==1))&&(a23==1))))))&&(((a26==1)||(!(a27==1)&&((a21==12)&&((a1==13)&&((a12==1)&&(a17==2))))))&&(a16==11)))){ + a19 = 1; + a9 = 7; + a5 = 5; + a21 = 10; + a16 = 10; + a1 = 12; + a2 = 1; + a12 = 1; + a14 = 0; + return 21; + } else if((((a11==1)&&((a27==1)||((a28==1)&&(((a6==1)&&(a17==2))&&(a21==10)))))&&((a9==7)&&(!(a24==1)&&((((a19==4)&&((a16==9)&&((a20==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a1==14)))))&&!(a27==1))&&(a13==1)))))){ + a16 = 7; + a7 = 0; + a1 = 12; + a26 = 0; + a2 = 1; + a19 = 1; + a5 = 4; + return -1; + } else if((((a17==2)&&((a28==1)&&((a23==1)&&(((a16==10)&&((a11==1)&&(a6==1)))||!(a12==1)))))&&(((((a9==10)&&((a28==1)&&(((a20==1)&&((input==5)&&(a19==4)))&&(a5==5))))&&!(a8==1))&&(a21==11))&&(a1==14)))){ + a21 = 10; + a5 = 4; + a16 = 7; + a18 = 0; + a19 = 1; + a9 = 7; + a8 = 0; + a7 = 0; + a1 = 12; + return -1; + } else if((((((((((input==5)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&!(a4==1))&&(a16==11))&&(a28==1))&&(a19==1))&&!(a26==1))&&(a11==1))&&(((a17==2)&&(!(a20==1)&&(((a3==1)&&((a28==1)&&(a1==12)))&&(a21==10))))||!(a13==1)))){ + a14 = 1; + a20 = 1; + a11 = 0; + a5 = 6; + a16 = 7; + a1 = 13; + a9 = 7; + return 22; + } else if(((((a21==11)&&((a12==1)&&(((a28==1)&&(((a5==4)||(a5==5))&&(input==3)))&&(a2==1))))&&(a16==7))&&((a20==1)&&((((((a9==7)&&((a26==1)||((a12==1)&&(a23==1))))&&(a1==12))&&!(a18==1))&&(a19==4))&&(a17==2))))){ + a16 = 8; + a13 = 1; + a19 = 2; + a5 = 5; + a18 = 0; + a9 = 9; + a1 = 14; + return 25; + } else if((((a14==1)||(!(a18==1)&&(((a9==10)&&(((((a16==10)&&((a2==1)&&(a6==1)))&&!(a20==1))&&(a5==5))&&(a1==14)))&&(a28==1))))&&((((a21==11)&&((a23==1)&&((a17==2)&&(input==4))))&&(a19==2))&&!(a24==1)))){ + a20 = 1; + a1 = 13; + a26 = 1; + a19 = 4; + a6 = 0; + a29 = 1; + return 21; + } else if(((((a3==1)&&((((a13==1)&&(a3==1))&&(a21==12))&&(a19==4)))||!(a28==1))&&((a13==1)&&((a20==1)&&((((a12==1)&&((a17==2)&&((((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4)))&&(input==5))&&(a1==13))))&&(a3==1))&&(a16==8)))))){ + a1 = 12; + a16 = 7; + a7 = 0; + a5 = 4; + a19 = 1; + a21 = 10; + a14 = 0; + a9 = 7; + a4 = 0; + return -1; + } else if((((a21==12)&&(((((!(a6==1)||(a11==1))&&(a12==1))||(a27==1))&&(a16==10))||(a26==1)))&&((a1==12)&&((a17==2)&&(((a19==3)&&((a6==1)&&((((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&(a13==1))&&(a20==1))))&&(a9==8)))))){ + a11 = 1; + a14 = 0; + a19 = 2; + a5 = 5; + a16 = 7; + a9 = 9; + a1 = 13; + a21 = 10; + a4 = 0; + return 25; + } else if((((a9==10)&&(((a7==1)&&(((a19==2)&&((((input==6)&&(a20==1))&&!(a3==1))&&(a17==2)))&&(a5==5)))&&!(a2==1)))&&((a16==11)&&(!(a6==1)&&(!(a6==1)&&((a1==13)&&((a21==11)&&(!(a12==1)&&(a3==1))))))))){ + a5 = 6; + a1 = 14; + a19 = 3; + a16 = 9; + a23 = 0; + a2 = 0; + a21 = 12; + a25 = 1; + return -1; + } else if(((((((a2==1)&&((a3==1)&&!(a18==1)))&&!(a0==1))&&!(a20==1))&&(a17==2))&&(((a6==1)&&((a6==1)&&((a23==1)&&((a16==7)&&((((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==4))&&(a19==1))&&(a1==14))))))&&(a21==12)))){ + if((a23==1)){ + a26 = 0; + a21 = 10; + a9 = 11; + a3 = 1; + a16 = 8; + a5 = 4; + a19 = 2; + }else{ + a12 = 1; + a20 = 1; + a5 = 6; + a9 = 7; + a16 = 8; + a19 = 5; + a6 = 1; + a4 = 0; + } + return -1; + } else if(((((a16==10)&&(((!(a24==1)&&(((!(a24==1)&&((input==5)&&(a21==10)))&&!(a24==1))&&(a3==1)))&&(a17==2))&&(a6==1)))&&(a9==7))&&(!(a27==1)&&((a5==5)&&((((a11==1)&&(a19==1))&&(a1==13))&&(a20==1)))))){ + a1 = 12; + a26 = 0; + a5 = 4; + a16 = 7; + a23 = 1; + a8 = 0; + return -1; + } else if((((a16==9)&&(!(a20==1)&&((!(a8==1)&&((input==6)&&((a5==4)||(a5==5))))&&(a19==4))))&&(((!(a14==1)&&((a17==2)&&((((a23==1)&&((a21==11)&&((a28==1)&&(a1==13))))&&(a11==1))&&!(a7==1))))&&(a9==11))&&!(a24==1)))){ + a5 = 6; + a19 = 2; + a9 = 9; + a16 = 7; + a28 = 0; + a15 = 0; + a21 = 12; + return 21; + } else if((((a21==10)&&(((a9==11)&&((!(a4==1)&&(((!(a12==1)||(a3==1))&&(a12==1))||!(a13==1)))&&(a13==1)))&&(a20==1)))&&(((((((a17==2)&&(input==1))&&(a16==9))&&(a6==1))&&(a5==6))&&(a19==5))&&(a1==14)))){ + a1 = 12; + a9 = 8; + a24 = 0; + a16 = 8; + a5 = 4; + a27 = 0; + a13 = 1; + return 25; + } else if((((((!(a24==1)&&(((a5==5)||(a5==6))&&(input==5)))&&!(a18==1))&&!(a18==1))&&(a21==12))&&(!(a28==1)||((!(a24==1)&&((((a9==9)&&(((a17==2)&&((a1==12)&&(a3==1)))&&(a19==4)))&&(a23==1))&&(a16==9)))&&(a20==1))))){ + a11 = 1; + a5 = 4; + a16 = 7; + a7 = 0; + a18 = 0; + a19 = 1; + a9 = 7; + a21 = 10; + return -1; + } else if((((a12==1)&&(!(a23==1)||(!(a20==1)&&((a1==13)&&(!(a18==1)&&(((a21==12)&&(a2==1))&&(a16==10)))))))&&((!(a14==1)&&(((a9==9)&&((a19==4)&&(((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a23==1))))&&(a17==2)))&&!(a14==1)))){ + if((a9==8)){ + a21 = 10; + a19 = 1; + a16 = 7; + a20 = 1; + a18 = 1; + a2 = 0; + a5 = 6; + a12 = 0; + a9 = 8; + }else{ + a1 = 12; + a19 = 1; + a16 = 7; + a9 = 7; + a5 = 4; + a20 = 1; + a6 = 0; + a7 = 1; + a11 = 0; + a21 = 10; + } + return 21; + } else if((((a5==5)&&((a9==7)&&(((((!(a6==1)||((a17==2)&&((a28==1)&&(a20==1))))&&!(a7==1))&&!(a24==1))&&!(a24==1))&&(a19==2))))&&((a21==12)&&(!(a4==1)&&(!(a18==1)&&(((input==5)&&(a16==9))&&(a1==12))))))){ + a7 = 0; + a26 = 0; + a9 = 8; + a19 = 3; + a16 = 7; + a27 = 0; + a21 = 10; + a1 = 13; + return 22; + } else if((((a19==5)&&(((input==4)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5))))&&(a17==2)))&&(!(a18==1)&&((a20==1)&&((((a1==14)&&(((!(a6==1)||((!(a2==1)||(a23==1))||!(a28==1)))&&(a21==10))&&!(a27==1)))||(a7==1))&&(a16==8)))))){ + a12 = 1; + a23 = 1; + a16 = 7; + a1 = 12; + a5 = 4; + a7 = 0; + a9 = 7; + a19 = 1; + return -1; + } else if((((a24==1)&&(((a1==12)&&(((a17==2)&&(a2==1))&&(a21==12)))&&!(a12==1)))&&((((a9==9)&&((a5==4)&&((a27==1)&&(((((input==6)&&(a19==3))&&!(a13==1))&&!(a13==1))&&(a16==9)))))&&(a20==1))&&!(a11==1)))){ + a21 = 10; + a19 = 1; + a16 = 7; + a13 = 0; + a23 = 0; + a5 = 5; + a1 = 14; + return -1; + } else if((((((!(a23==1)||(((a28==1)&&!(a20==1))&&(a1==14)))&&(a16==8))||!(a13==1))&&!(a8==1))&&(!(a26==1)&&((a9==8)&&((a17==2)&&((a21==12)&&((a19==3)&&(((a28==1)&&((input==3)&&((a5==5)||(a5==6))))&&!(a4==1))))))))){ + a21 = 11; + a5 = 5; + a28 = 0; + a19 = 4; + a4 = 1; + a9 = 10; + a16 = 9; + a18 = 1; + return -1; + } else if(((((a2==1)&&((!(a8==1)&&(((((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))&&(input==6))&&!(a24==1))&&(a13==1)))&&(a21==11)))&&(a16==11))&&(((a6==1)&&((((a20==1)&&((a12==1)&&(a19==4)))&&(a1==13))&&(a11==1)))&&(a17==2)))){ + a5 = 6; + a7 = 0; + a9 = 11; + a21 = 12; + a13 = 1; + a19 = 2; + a23 = 1; + return 22; + } else if((((!(a14==1)&&(((((input==1)&&((a5==5)||(a5==6)))&&(a17==2))&&(a16==8))&&(a1==14)))&&!(a14==1))&&((a18==1)||(((a21==12)&&(((!(a20==1)&&((a19==1)&&((a3==1)&&!(a0==1))))||(a14==1))||!(a12==1)))&&(a9==9))))){ + if((a8==1)){ + a16 = 7; + a23 = 0; + a5 = 4; + a1 = 12; + a2 = 0; + a21 = 10; + a20 = 1; + a9 = 8; + }else{ + a5 = 5; + a28 = 0; + a21 = 10; + a16 = 7; + a25 = 0; + a1 = 13; + a20 = 1; + a2 = 0; + } + return 25; + } else if((((a16==7)&&(((((a1==14)&&((!(a20==1)&&(input==3))&&(a12==1)))&&(a2==1))&&!(a26==1))&&(a3==1)))&&(((!(a8==1)&&((a5==4)&&(((a8==1)||((a28==1)&&(a9==8)))&&(a17==2))))&&(a21==10))&&(a19==5)))){ + a1 = 12; + a20 = 1; + a19 = 1; + a9 = 7; + a28 = 1; + a13 = 1; + a7 = 0; + return -1; + } else if((((((((a26==1)||(a13==1))&&!(a20==1))&&(a19==1))&&(a17==2))&&(a21==10))&&(!(a26==1)&&((!(a7==1)&&(!(a4==1)&&((((input==3)&&((((a5==6)&&(a1==13))&&(a9==11))||(((a1==14)&&(a5==4))&&(a9==7))))&&(a16==9))&&!(a0==1))))&&!(a8==1))))){ + a13 = 0; + a9 = 8; + a1 = 13; + a5 = 6; + a16 = 7; + a28 = 0; + a20 = 1; + a26 = 1; + return 23; + } else if(((((((a12==1)&&(a20==1))||(a7==1))||!(a3==1))&&(a5==5))&&((((a6==1)&&((a11==1)&&(((a17==2)&&((((a2==1)&&((input==1)&&(a1==12)))&&(a16==11))&&(a3==1)))&&(a9==8))))&&(a21==12))&&(a19==4)))){ + a21 = 10; + a16 = 7; + a5 = 4; + a4 = 0; + a0 = 0; + a9 = 7; + a19 = 1; + a13 = 1; + return -1; + } else if((((a21==10)&&((a1==12)&&((a17==2)&&((a7==1)&&((input==4)&&(a20==1))))))&&(!(a28==1)&&((a8==1)&&((a5==4)&&(((((a16==10)&&((!(a11==1)&&(a2==1))&&!(a13==1)))&&(a18==1))&&(a9==8))&&(a19==3))))))){ + a19 = 1; + a5 = 6; + a9 = 10; + a1 = 13; + a23 = 0; + a25 = 1; + a10 = 1; + a21 = 12; + return -1; + } else if(((((((a3==1)&&(a19==2))&&!(a2==1))&&(a21==10))&&(a4==1))&&((!(a6==1)&&(((!(a13==1)&&((a17==2)&&(!(a6==1)&&((a20==1)&&((a1==12)&&((input==5)&&(a5==5)))))))&&(a27==1))&&(a16==8)))&&(a9==7)))){ + a22 = 1; + a9 = 8; + a5 = 4; + a16 = 10; + a1 = 14; + a25 = 0; + a15 = 0; + a19 = 1; + a21 = 12; + return -1; + } else if((((a20==1)&&((a16==7)&&((a19==4)&&(!(a6==1)&&(!(a23==1)&&(a12==1))))))&&((!(a13==1)&&(((a24==1)&&((a17==2)&&((((input==4)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&!(a13==1))&&(a1==14))))&&!(a2==1)))&&(a21==10)))){ + a6 = 0; + a29 = 0; + a19 = 1; + a9 = 9; + a24 = 1; + a5 = 5; + a1 = 12; + return 22; + } else if(((!(a14==1)&&((a27==1)||((a13==1)&&(((a19==5)&&((a21==10)&&(!(a14==1)&&((a1==13)&&(((a13==1)&&(a9==9))&&(a16==10))))))||!(a2==1)))))&&(!(a18==1)&&((a20==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a17==2)))))){ + a19 = 4; + a21 = 11; + a1 = 12; + a5 = 4; + a6 = 1; + a18 = 0; + a27 = 0; + a16 = 7; + return 22; + } else if((((a21==12)&&((a1==12)&&((a12==1)&&((a5==5)&&(((a17==2)&&(((a16==7)&&(input==3))&&(a12==1)))&&!(a27==1))))))&&(!(a20==1)&&((a19==5)&&((a9==11)&&((((a6==1)&&!(a8==1))||(a8==1))&&(a11==1))))))){ + a6 = 1; + a19 = 1; + a5 = 4; + a13 = 1; + a20 = 1; + a21 = 10; + a11 = 1; + a9 = 7; + return -1; + } else if((((a20==1)&&((((a11==1)&&(a16==9))&&!(a26==1))&&(a17==2)))&&(!(a24==1)&&(((a28==1)&&(((((input==1)&&(((((a5==4)&&(a1==12))&&(a9==7))&&(a19==5))||(((a19==4)&&(((a1==14)&&(a5==5))&&(a9==11)))||((a19==4)&&((a9==11)&&((a5==6)&&(a1==14)))))))&&!(a24==1))&&!(a8==1))&&(a21==11)))&&(a23==1))))){ + a1 = 12; + a21 = 10; + a16 = 7; + a9 = 7; + a14 = 0; + a26 = 0; + a5 = 4; + a19 = 1; + return -1; + } else if((((a21==10)&&((((a13==1)&&((a27==1)||((a16==10)&&(!(a20==1)&&(a13==1)))))||(a8==1))&&(a1==12)))&&(((a12==1)&&((a2==1)&&(((a19==5)&&((input==6)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11)))))&&(a6==1))))&&(a17==2)))){ + if((a6==1)){ + a9 = 7; + a16 = 7; + a24 = 1; + a14 = 1; + a21 = 12; + a5 = 5; + a20 = 1; + a28 = 0; + }else{ + a5 = 6; + a10 = 0; + a9 = 7; + a1 = 14; + a23 = 0; + a20 = 1; + a19 = 2; + a16 = 9; + a21 = 12; + } + return -1; + } else if(((!(a18==1)&&(((((((a19==3)&&((((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(input==4)))&&!(a14==1))&&(a1==12))&&(a17==2))&&(a20==1))&&(a16==8)))&&((!(a3==1)||(!(a28==1)||(((a21==10)&&(a12==1))&&!(a4==1))))||(a0==1)))){ + a5 = 4; + a23 = 1; + a16 = 7; + a7 = 0; + a19 = 1; + a0 = 0; + a9 = 7; + return -1; + } else if(((((((a17==2)&&((a19==4)&&(((((input==4)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9))))&&!(a20==1))&&(a2==1))&&(a1==12))))&&(a16==8))&&(a28==1))&&!(a18==1))&&(!(a14==1)&&((!(a27==1)&&((a0==1)||(a12==1)))&&(a21==11))))){ + a6 = 1; + a5 = 4; + a3 = 1; + a4 = 0; + a9 = 7; + a19 = 5; + return -1; + } else if((((!(a26==1)&&(((a21==10)&&(((((a9==10)&&(((a19==1)&&(input==4))&&(a17==2)))&&(a5==6))&&(a16==10))&&(a20==1)))&&(a1==13)))&&!(a26==1))&&((a28==1)&&((!(a7==1)&&((a2==1)||(a26==1)))&&(a11==1))))){ + a9 = 7; + a1 = 12; + a16 = 7; + a4 = 0; + a7 = 0; + a5 = 4; + a14 = 0; + return -1; + } else if((((!(a8==1)&&((a21==10)&&(!(a7==1)&&(!(a7==1)&&((a19==3)&&(input==5))))))&&!(a18==1))&&((a16==8)&&((a9==7)&&((((a2==1)&&((a20==1)&&(((a23==1)&&(a1==14))||(a24==1))))&&(a5==4))&&(a17==2)))))){ + a16 = 7; + a19 = 1; + a28 = 1; + a13 = 1; + a3 = 1; + a1 = 12; + return -1; + } else if((((a2==1)&&(((a11==1)&&!(a27==1))&&(a17==2)))&&(((!(a27==1)&&((a21==11)&&((((((a16==8)&&((input==3)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))))&&!(a20==1))&&(a6==1))&&(a1==12))&&(a19==4))))&&(a12==1))&&!(a14==1)))){ + a9 = 7; + a21 = 10; + a13 = 1; + a20 = 1; + a5 = 4; + a7 = 0; + a19 = 1; + a2 = 1; + a16 = 7; + return -1; + } else if((((a3==1)&&((a1==13)&&(((a3==1)&&(((a26==1)||((a17==2)&&(a28==1)))&&(a21==10)))&&!(a24==1))))&&(((!(a26==1)&&(((((input==1)&&(a5==4))&&(a9==10))&&(a19==3))&&(a16==8)))&&!(a18==1))&&(a20==1)))){ + a21 = 11; + a19 = 2; + a20 = 0; + a5 = 6; + a6 = 1; + a16 = 7; + a3 = 1; + return 25; + } else if((((a6==1)&&((a21==11)&&(((((a19==4)&&(((a20==1)&&(input==1))&&(a2==1)))&&!(a4==1))&&(a1==14))&&(a6==1))))&&((a17==2)&&((a16==7)&&(((a9==9)&&((a8==1)||((a5==6)&&(a28==1))))||(a27==1)))))){ + a14 = 0; + a1 = 12; + a26 = 0; + a16 = 8; + a18 = 0; + a19 = 5; + return 23; + } else if(((((!(a24==1)&&((((a7==1)||(a11==1))&&(a28==1))||(a27==1)))&&(a17==2))&&(a1==14))&&((a16==9)&&(((a20==1)&&(((a9==7)&&((!(a27==1)&&((a5==4)&&(input==3)))&&!(a14==1)))&&(a21==10)))&&(a19==3))))){ + a16 = 7; + a6 = 1; + a14 = 0; + a19 = 1; + a27 = 0; + a1 = 12; + return -1; + } else if(((((a19==2)&&(!(a8==1)&&((a16==10)&&(((!(a2==1)||(a2==1))&&(a1==14))&&(a17==2)))))&&(a11==1))&&(((((a21==12)&&(((a23==1)&&(((a5==4)||(a5==5))&&(input==1)))&&(a9==10)))&&!(a20==1))&&!(a26==1))&&!(a0==1)))){ + a5 = 4; + a25 = 1; + a8 = 1; + a20 = 1; + a1 = 12; + a21 = 10; + a16 = 7; + a0 = 1; + return -1; + } else if(((((!(a7==1)&&(!(a7==1)&&(((input==6)&&((a5==5)||(a5==6)))&&(a19==1))))&&(a11==1))&&(a17==2))&&(((!(a2==1)||((a16==8)&&(((a27==1)||((!(a2==1)||(a2==1))&&(a9==10)))&&(a20==1))))&&(a1==14))&&(a21==11)))){ + a24 = 0; + a9 = 7; + a16 = 7; + a1 = 12; + a5 = 4; + a3 = 1; + a21 = 10; + return -1; + } else if((((a3==1)&&(!(a0==1)&&(((a21==12)&&((input==3)&&((((a5==5)&&(a1==13))&&(a9==7))||(((a9==11)&&((a5==6)&&(a1==12)))||(((a1==13)&&(a5==4))&&(a9==7))))))&&(a19==1))))&&(((!(a26==1)&&((a11==1)&&((((a6==1)&&!(a20==1))&&(a16==9))&&(a17==2))))||(a14==1))&&(a28==1)))){ + a9 = 9; + a21 = 10; + a20 = 1; + a15 = 1; + a27 = 1; + a16 = 7; + a5 = 4; + a1 = 12; + a3 = 0; + return 25; + } else if((((a27==1)||((a8==1)||((a21==10)&&((a11==1)||!(a12==1)))))&&(((a5==5)&&((a20==1)&&((!(a14==1)&&((((a3==1)&&(((input==3)&&(a16==8))&&!(a0==1)))&&(a1==14))&&(a9==7)))&&(a19==5))))&&(a17==2)))){ + a1 = 12; + a19 = 1; + a28 = 1; + a5 = 4; + a8 = 0; + a24 = 0; + a16 = 7; + return -1; + } else if((((a17==2)&&(!(a20==1)&&((a16==8)&&(a28==1))))&&((((a21==12)&&((a13==1)&&((!(a27==1)&&((a3==1)&&(((((((a1==14)&&(a5==5))&&(a9==11))&&(a19==4))||((a19==4)&&(((a1==14)&&(a5==6))&&(a9==11))))||((a19==5)&&((a9==7)&&((a1==12)&&(a5==4)))))&&(input==4))))&&!(a0==1))))&&(a13==1))&&(a3==1)))){ + if((a25==1)){ + a15 = 0; + a1 = 12; + a5 = 4; + a19 = 1; + a16 = 7; + a25 = 1; + a20 = 1; + a21 = 10; + a9 = 10; + a13 = 0; + }else{ + a26 = 1; + a19 = 2; + a5 = 6; + a21 = 10; + a18 = 1; + a20 = 1; + a1 = 14; + a9 = 9; + a16 = 10; + a12 = 0; + } + return 23; + } else if((((((!(a6==1)||((a11==1)&&(a19==2)))||!(a3==1))&&(a16==11))&&(a21==10))&&((((a20==1)&&((!(a0==1)&&(((!(a0==1)&&(((a5==4)||(a5==5))&&(input==1)))&&(a9==8))&&(a17==2)))&&(a11==1)))&&(a2==1))&&(a1==13)))){ + a0 = 0; + a11 = 1; + a19 = 1; + a1 = 12; + a14 = 0; + a16 = 7; + a9 = 7; + a5 = 4; + return -1; + } else if((((a20==1)&&((((a17==2)&&(!(a4==1)&&((a1==13)&&((((a5==5)||(a5==6))&&(input==4))&&!(a27==1)))))&&!(a18==1))&&!(a4==1)))&&((a21==11)&&((a9==7)&&(!(a11==1)||(!(a23==1)||((a19==3)&&((a16==9)&&(a13==1))))))))){ + a1 = 12; + a12 = 1; + a21 = 10; + a0 = 0; + a7 = 0; + a16 = 7; + a19 = 1; + a5 = 4; + return -1; + } else if((((((a9==10)&&(((a19==2)&&(((a5==4)&&(input==5))&&!(a0==1)))&&!(a26==1)))&&(a21==10))&&(a16==9))&&((a17==2)&&(!(a6==1)||(!(a20==1)&&(((a2==1)&&(((a11==1)&&(a23==1))||(a0==1)))&&(a1==12))))))){ + a2 = 0; + a1 = 13; + a8 = 1; + a23 = 0; + a9 = 7; + a16 = 7; + a5 = 5; + a19 = 1; + a20 = 1; + return 25; + } else if((((a23==1)&&(((a17==2)&&((((input==1)&&(a21==12))&&(a19==5))&&!(a27==1)))&&!(a27==1)))&&(!(a4==1)&&((a5==5)&&(!(a18==1)&&((a16==10)&&((!(a27==1)&&((!(a20==1)&&(a11==1))&&(a9==11)))&&(a1==12)))))))){ + a9 = 7; + a5 = 6; + a7 = 1; + a19 = 1; + a4 = 1; + a25 = 1; + a1 = 13; + a21 = 11; + a16 = 7; + return -1; + } else if((((a20==1)&&((a19==1)&&(((a1==12)&&(((a9==10)&&(((input==4)&&(a21==12))&&(a16==11)))&&!(a27==1)))&&(a12==1))))&&(!(a12==1)||((a17==2)&&((!(a13==1)||(!(a6==1)||((a5==4)&&(a11==1))))&&!(a4==1)))))){ + a8 = 0; + a16 = 7; + a3 = 1; + a9 = 7; + a21 = 10; + a6 = 1; + return -1; + } else if((((a1==13)&&((((!(a11==1)||((a21==11)&&((a13==1)&&!(a27==1))))||(a24==1))&&(a19==5))&&!(a20==1)))&&(((!(a8==1)&&(((a13==1)&&(!(a8==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6))))&&(a9==8)))&&(a16==10))&&(a17==2)))){ + if((a25==1)){ + a5 = 5; + a12 = 0; + a19 = 1; + a22 = 1; + a9 = 9; + a27 = 1; + a1 = 14; + a20 = 1; + a16 = 8; + }else{ + a16 = 7; + a5 = 4; + a6 = 0; + a27 = 1; + a20 = 1; + a25 = 0; + a1 = 14; + a19 = 2; + a9 = 11; + } + return -1; + } else if(((!(a14==1)&&(!(a8==1)&&((a2==1)&&(!(a18==1)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a9==8))&&(a23==1))))))&&((((((a20==1)&&(((a17==2)&&(a6==1))&&!(a7==1)))&&(a1==13))&&(a19==2))&&(a21==10))&&(a16==7)))){ + a14 = 0; + a12 = 1; + a9 = 11; + a5 = 6; + a0 = 0; + return 25; + } else if((((a19==1)&&(((a17==2)&&((a24==1)||((a13==1)&&(((a7==1)||((a13==1)&&(a16==9)))||(a7==1)))))&&(a1==14)))&&((a21==11)&&(((((((a5==4)||(a5==5))&&(input==1))&&(a11==1))&&(a20==1))&&(a9==8))&&!(a24==1))))){ + a21 = 10; + a2 = 1; + a16 = 7; + a6 = 1; + a12 = 1; + a5 = 4; + a9 = 7; + a1 = 12; + return -1; + } else if(((!(a0==1)&&(((!(a7==1)&&((a9==8)&&((((((a5==4)||(a5==5))&&(input==3))&&(a2==1))&&(a17==2))&&(a12==1))))&&(a21==10))&&(a19==4)))&&(!(a24==1)&&(((a1==14)&&((a16==11)&&((a23==1)&&(a20==1))))||(a8==1))))){ + a19 = 1; + a1 = 12; + a4 = 0; + a26 = 0; + a24 = 0; + a16 = 7; + a9 = 7; + a5 = 4; + return -1; + } else if(((((((a19==2)&&(!(a23==1)&&(a11==1)))&&(a21==10))&&(a16==8))&&!(a28==1))&&((a14==1)&&((!(a12==1)&&(!(a6==1)&&(((a9==8)&&((a17==2)&&((a20==1)&&((input==5)&&((a5==5)||(a5==6))))))&&(a1==14))))&&(a18==1))))){ + a1 = 13; + a11 = 0; + a19 = 1; + a16 = 7; + a5 = 5; + a27 = 1; + a2 = 0; + a9 = 10; + return 23; + } else if(((((((!(a20==1)&&((a9==9)&&(input==3)))&&(a19==1))&&(a2==1))&&(a1==14))&&!(a18==1))&&((a0==1)||(!(a28==1)||((a27==1)||((a8==1)||((a16==11)&&(((a17==2)&&((a5==5)&&(a3==1)))&&(a21==10))))))))){ + if((a13==1)){ + a16 = 7; + a15 = 1; + a7 = 1; + a20 = 1; + a27 = 1; + a1 = 13; + }else{ + a14 = 1; + a10 = 1; + a22 = 0; + a1 = 13; + a19 = 4; + a21 = 11; + a9 = 8; + a16 = 8; + } + return -1; + } else if(((((!(a20==1)&&(((((a17==2)&&(a3==1))&&!(a8==1))&&(a16==11))&&(a21==10)))&&(a19==2))&&!(a26==1))&&(((a11==1)&&(((!(a4==1)&&(((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8)))&&(input==3)))&&!(a18==1))&&(a1==13)))&&!(a7==1)))){ + if((a13==1)){ + a24 = 1; + a16 = 9; + a1 = 12; + a9 = 11; + a29 = 1; + a20 = 1; + a6 = 0; + a21 = 12; + a5 = 5; + }else{ + a9 = 8; + a5 = 4; + a4 = 1; + a28 = 0; + a0 = 1; + a16 = 7; + a19 = 1; + a20 = 1; + a1 = 14; + } + return -1; + } else if(((((a17==2)&&((((!(a0==1)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==6)))&&(a19==2))&&(a11==1))&&(a23==1)))&&(a3==1))&&(((((a16==11)&&(((a3==1)||(a0==1))&&!(a20==1)))&&!(a4==1))&&(a21==10))&&(a1==12)))){ + a9 = 11; + a16 = 8; + a23 = 0; + a11 = 0; + a13 = 0; + a5 = 4; + a1 = 13; + return 25; + } else if(((((a1==13)&&((a21==11)&&(!(a4==1)&&(((a17==2)&&((a2==1)&&(a6==1)))&&(a20==1)))))&&!(a0==1))&&(((!(a14==1)&&(((((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8)))&&(input==5))&&(a16==10))&&(a19==5)))&&(a11==1))&&!(a26==1)))){ + a23 = 1; + a19 = 4; + a12 = 1; + a21 = 10; + a5 = 5; + a16 = 7; + a0 = 0; + a9 = 10; + return 25; + } else if((((a21==11)&&((a9==10)&&(((a27==1)&&(!(a23==1)&&((input==5)&&((a5==4)||(a5==5)))))&&(a1==13))))&&((((a14==1)&&(((a16==7)&&((a4==1)&&(((a13==1)&&!(a20==1))&&(a19==2))))&&(a17==2)))&&(a14==1))&&!(a2==1)))){ + a16 = 10; + a21 = 10; + a5 = 5; + a26 = 1; + a14 = 1; + a9 = 11; + a19 = 1; + a20 = 1; + a1 = 12; + a0 = 1; + return 25; + } else if((((!(a8==1)&&((((a11==1)&&(((a19==5)&&((a21==10)&&((a9==8)&&(input==6))))&&!(a20==1)))&&!(a14==1))&&(a13==1)))&&(a5==5))&&(((a1==13)&&((((a13==1)||(a7==1))&&(a12==1))&&(a17==2)))&&(a16==9)))){ + if((a23==1)){ + a21 = 11; + a19 = 4; + a1 = 12; + a16 = 10; + a18 = 1; + a20 = 1; + a26 = 1; + a9 = 7; + a5 = 4; + a22 = 0; + }else{ + a19 = 1; + a7 = 1; + a20 = 1; + a16 = 7; + a9 = 11; + a2 = 0; + a5 = 6; + a6 = 0; + } + return -1; + } else if((((((a16==7)&&(((a1==12)&&(a13==1))&&(a19==2)))||!(a6==1))&&(a21==11))&&((a20==1)&&(((a17==2)&&((a11==1)&&((((((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4)))&&(input==1))&&(a13==1))&&!(a0==1))&&(a13==1))))&&!(a8==1))))){ + if((a21==10)){ + a0 = 0; + a21 = 12; + a5 = 4; + a1 = 13; + a7 = 0; + a9 = 9; + a19 = 3; + a20 = 0; + a2 = 1; + }else{ + a9 = 7; + a6 = 1; + a0 = 0; + a19 = 3; + a16 = 8; + a5 = 6; + a21 = 10; + a13 = 1; + } + return 21; + } else if((((a5==4)&&((a19==5)&&(!(a11==1)&&(!(a3==1)&&((a13==1)&&(a16==7))))))&&((a1==12)&&(((((!(a12==1)&&((a21==11)&&((a17==2)&&((a9==8)&&(input==4)))))&&(a20==1))&&(a24==1))&&!(a13==1))&&(a8==1))))){ + a24 = 1; + a1 = 14; + a9 = 11; + a12 = 0; + a5 = 6; + a21 = 10; + a19 = 1; + a15 = 0; + return -1; + } else if(((!(a7==1)&&(((((((!(a8==1)&&((input==3)&&((a5==4)||(a5==5))))&&(a2==1))&&!(a18==1))&&(a19==3))&&(a17==2))&&(a9==9))&&(a2==1)))&&((a21==10)&&((a12==1)&&((!(a20==1)&&((a1==14)&&(a13==1)))&&(a16==10)))))){ + if((a18==1)){ + a20 = 1; + a19 = 1; + a22 = 0; + a28 = 0; + a9 = 10; + a16 = 7; + a5 = 6; + a23 = 0; + a1 = 12; + }else{ + a16 = 7; + a10 = 1; + a1 = 13; + a19 = 1; + a5 = 4; + a20 = 1; + a0 = 1; + } + return 21; + } else if((((!(a20==1)&&((a21==10)&&(((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9)))&&(input==1))))&&(a1==14))&&(((a13==1)&&((a2==1)&&((a4==1)||((a16==7)&&((((a8==1)||(!(a12==1)||(a3==1)))||!(a11==1))&&(a17==2))))))&&(a19==1)))){ + a4 = 0; + a11 = 1; + a1 = 12; + a5 = 4; + a12 = 1; + a20 = 1; + a9 = 7; + return -1; + } else if((((((a23==1)&&((a21==10)&&((!(a20==1)&&((input==1)&&((a5==4)||(a5==5))))&&(a17==2))))&&(a12==1))&&(a23==1))&&(((a28==1)&&((a16==11)&&((a9==11)&&(((a19==3)&&((a1==14)&&(a23==1)))&&(a28==1)))))||!(a23==1)))){ + a16 = 7; + a21 = 11; + a20 = 1; + a25 = 0; + a9 = 9; + a19 = 1; + a23 = 0; + a12 = 0; + a5 = 5; + return -1; + } else if(((((a2==1)&&((a1==14)&&(!(a20==1)&&((a19==3)&&(((a9==9)&&(((a23==1)&&((input==1)&&((a5==4)||(a5==5))))&&(a16==10)))&&(a17==2))))))&&!(a4==1))&&(!(a4==1)&&((((a28==1)&&(a2==1))&&(a21==11))||(a7==1))))){ + if((a29==1)){ + a16 = 7; + a5 = 4; + a21 = 10; + a19 = 1; + a9 = 10; + a24 = 1; + a20 = 1; + a28 = 0; + a18 = 1; + }else{ + a16 = 7; + a7 = 1; + a9 = 8; + a6 = 0; + a19 = 1; + a21 = 10; + a20 = 1; + a10 = 1; + a1 = 12; + a5 = 4; + } + return 21; + } else if(((((a21==12)&&((a20==1)&&((a13==1)&&((!(a26==1)&&((a19==2)&&((input==4)&&((a5==5)||(a5==6)))))&&!(a8==1)))))&&(a16==11))&&(((!(a7==1)&&(((a1==12)&&((a13==1)&&(a17==2)))||!(a2==1)))||(a24==1))&&(a9==7)))){ + a6 = 1; + a16 = 7; + a19 = 1; + a23 = 1; + a18 = 0; + a21 = 10; + a5 = 4; + return -1; + } else if(((((a27==1)&&(((a16==8)&&((a14==1)&&((a14==1)&&((!(a20==1)&&(a6==1))&&(a21==10)))))&&(a19==2)))&&(a14==1))&&((a26==1)&&((((a9==7)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&!(a3==1)))&&(a1==14))&&(a17==2))))){ + a19 = 5; + a9 = 8; + a20 = 1; + a28 = 0; + a12 = 0; + a4 = 1; + a5 = 5; + return 21; + } else if((((a24==1)||((a7==1)||(((a9==10)&&((((!(a20==1)&&(a12==1))&&(a16==9))&&(a5==5))||(a7==1)))||(a14==1))))&&((((!(a4==1)&&((a2==1)&&((input==4)&&(a1==12))))&&(a21==10))&&(a19==5))&&(a17==2)))){ + if((a13==1)){ + a22 = 0; + a25 = 1; + a19 = 1; + a15 = 1; + a9 = 8; + a16 = 7; + a20 = 1; + }else{ + a6 = 0; + a20 = 1; + a16 = 7; + a19 = 2; + a7 = 1; + a15 = 0; + } + return 21; + } else if((((a1==12)&&((a5==4)&&((!(a20==1)&&(input==4))&&(a11==1))))&&((a17==2)&&((((((a12==1)&&((a19==1)&&((a16==9)&&(((a13==1)||(a14==1))||(a18==1)))))||!(a6==1))||!(a6==1))&&(a21==11))&&(a9==7))))){ + a19 = 4; + a9 = 9; + a1 = 13; + a2 = 0; + a10 = 0; + a21 = 10; + a14 = 1; + a20 = 1; + return -1; + } else if((((((((a13==1)&&(((a5==5)||(a5==6))&&(input==1)))&&(a17==2))&&!(a4==1))&&(a1==12))&&(a9==7))&&((a20==1)&&((a13==1)&&(!(a18==1)&&(((a19==3)&&((!(a12==1)||((a11==1)&&(a11==1)))&&(a16==8)))&&(a21==11))))))){ + a16 = 7; + a3 = 1; + a5 = 4; + a12 = 1; + a19 = 1; + a21 = 10; + return -1; + } else if((((a17==2)&&((a1==13)&&(((!(a4==1)&&((a28==1)&&((input==4)&&(a19==5))))&&!(a20==1))&&(a21==10))))&&((a5==5)&&((((((!(a4==1)&&(a23==1))&&(a16==8))&&!(a26==1))||(a26==1))&&!(a14==1))&&(a9==11))))){ + a5 = 4; + a16 = 7; + a1 = 12; + a19 = 1; + a9 = 7; + a20 = 1; + a2 = 1; + a27 = 0; + a3 = 1; + return -1; + } else if((((a3==1)&&((a1==13)&&(((a9==8)&&(((!(a7==1)&&(!(a20==1)&&(input==3)))&&(a21==12))&&(a16==9)))&&(a19==5))))&&(((a4==1)||((((a17==2)&&(!(a2==1)||(a6==1)))&&!(a14==1))&&(a5==6)))||!(a23==1)))){ + if((a9==10)){ + a9 = 9; + a1 = 12; + a16 = 7; + a12 = 0; + a20 = 1; + a19 = 1; + a21 = 10; + a29 = 1; + a10 = 1; + }else{ + a24 = 1; + a2 = 0; + a1 = 12; + a9 = 10; + a3 = 0; + a21 = 10; + a19 = 2; + a20 = 1; + a16 = 7; + } + return 25; + } else if((((((((((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9)))&&(input==1))&&(a17==2))&&!(a20==1))&&!(a0==1))&&(a23==1))&&(a16==7))&&(((!(a4==1)&&(!(a18==1)&&((a1==13)&&((a21==11)&&((a13==1)&&(a23==1))))))&&(a19==4))||!(a23==1)))){ + a9 = 7; + a5 = 4; + a21 = 10; + a1 = 12; + a19 = 1; + a20 = 1; + a4 = 0; + a24 = 0; + a18 = 0; + return -1; + } else if((((((a16==9)&&(((a1==14)&&((((((input==5)&&((a5==4)||(a5==5)))&&(a9==11))&&(a2==1))&&(a13==1))&&(a19==1)))&&(a21==12)))&&(a6==1))&&(a20==1))&&((a17==2)&&((((a11==1)&&!(a14==1))||!(a6==1))||(a8==1))))){ + if((a28==1)){ + a16 = 8; + a19 = 2; + a26 = 0; + a18 = 0; + a21 = 10; + a2 = 1; + a20 = 0; + a9 = 10; + a5 = 6; + }else{ + a9 = 8; + a13 = 1; + a11 = 1; + a19 = 3; + a5 = 6; + a24 = 0; + a16 = 10; + a21 = 10; + } + return 21; + } else if(((((((((a20==1)&&((((a9==11)&&((a1==12)&&(a5==6)))||((a9==7)&&((a5==4)&&(a1==13))))&&(input==3)))&&(a11==1))&&(a21==11))&&!(a7==1))&&(a16==10))&&(a11==1))&&((a8==1)||(((((a6==1)&&(a17==2))||!(a23==1))&&(a19==2))||(a8==1))))){ + a1 = 12; + a6 = 1; + a21 = 10; + a28 = 1; + a19 = 1; + a5 = 4; + a16 = 7; + a9 = 7; + a4 = 0; + return -1; + } else if(((((((((!(a14==1)&&(a6==1))&&(a1==12))&&!(a20==1))&&(a21==10))&&!(a0==1))||(a27==1))||!(a6==1))&&(((((a16==7)&&((a17==2)&&((input==6)&&(((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))))))&&!(a24==1))&&(a19==5))&&!(a7==1)))){ + a24 = 0; + a9 = 8; + a5 = 5; + a19 = 1; + a20 = 1; + a28 = 1; + a0 = 0; + return -1; + } else if((((a28==1)&&((a12==1)&&((((((a17==2)&&(((input==3)&&(((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))))&&(a23==1)))&&(a19==4))&&(a21==12))&&(a12==1))&&(a1==14))))&&((a18==1)||(!(a0==1)&&(((a20==1)&&(a12==1))&&(a16==10)))))){ + a19 = 2; + a0 = 0; + a16 = 7; + a9 = 11; + a5 = 4; + a13 = 1; + a21 = 10; + return 21; + } else if(((!(a28==1)&&((((!(a11==1)&&(((a11==1)&&(a19==2))&&(a16==11)))&&(a26==1))&&(a26==1))&&(a1==13)))&&(((a27==1)&&((a9==9)&&((a20==1)&&(((a21==12)&&((input==3)&&((a5==5)||(a5==6))))&&(a17==2)))))&&(a27==1)))){ + a10 = 0; + a9 = 10; + a16 = 7; + a5 = 5; + a19 = 1; + a21 = 10; + a13 = 0; + a2 = 0; + return -1; + } else if((((((a21==10)&&((((a13==1)&&(a5==5))&&(a3==1))&&(a1==13)))||!(a2==1))&&(a9==11))&&(((((!(a7==1)&&((((a19==1)&&(input==4))&&(a11==1))&&!(a18==1)))&&(a17==2))&&!(a20==1))&&(a16==9))&&(a23==1)))){ + a10 = 1; + a16 = 11; + a5 = 6; + a19 = 3; + a0 = 1; + a18 = 1; + a20 = 1; + return -1; + } else if(((((a13==1)&&((((a12==1)&&((input==5)&&((((a19==1)&&((a16==9)&&(((a5==4)&&(a1==12))&&(a9==7))))&&(a21==10))||(((a21==12)&&((((a9==11)&&((a5==5)&&(a1==14)))&&(a16==8))&&(a19==5)))||((a21==12)&&((a19==5)&&((a16==8)&&(((a5==6)&&(a1==14))&&(a9==11)))))))))&&(a17==2))&&(a11==1)))&&!(a27==1))&&(!(a13==1)||(((a11==1)&&(a20==1))||!(a13==1))))){ + a1 = 14; + a8 = 0; + a5 = 4; + a19 = 5; + a9 = 7; + a21 = 12; + a23 = 1; + a16 = 10; + a28 = 1; + return 22; + } else if((((a21==11)&&(((a28==1)&&((((a1==14)&&(input==3))&&(a5==5))&&(a12==1)))&&!(a20==1)))&&(((a19==4)&&((a16==9)&&(((a6==1)&&(((a17==2)&&((a28==1)||!(a13==1)))||!(a2==1)))&&(a9==10))))&&!(a14==1)))){ + if((a5==5)){ + a20 = 1; + a9 = 11; + a19 = 1; + a8 = 1; + a16 = 7; + a26 = 1; + a21 = 10; + a1 = 12; + }else{ + a21 = 12; + a16 = 11; + a20 = 1; + a25 = 0; + a9 = 7; + a22 = 1; + a1 = 12; + a19 = 1; + a18 = 1; + } + return -1; + } else if((((a8==1)||(((a17==2)&&(((a9==10)&&(a12==1))&&!(a20==1)))||!(a12==1)))&&((!(a14==1)&&(((a19==4)&&(((((((a5==5)||(a5==6))&&(input==5))&&(a13==1))&&(a1==13))&&(a21==10))&&(a16==10)))&&!(a18==1)))&&!(a18==1)))){ + a1 = 12; + a20 = 1; + a25 = 0; + a10 = 0; + a9 = 8; + a5 = 5; + a23 = 0; + return -1; + } else if(((((((((a11==1)&&(a1==14))||!(a2==1))||!(a6==1))&&(a21==12))||(a14==1))&&!(a8==1))&&((a16==7)&&((a19==5)&&((((a11==1)&&((a17==2)&&((input==5)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5))))))&&(a11==1))&&!(a20==1)))))){ + a24 = 0; + a5 = 4; + a4 = 0; + a20 = 1; + a21 = 10; + a2 = 1; + a1 = 12; + a9 = 7; + a19 = 1; + return -1; + } else if(((((!(a24==1)&&(((((a5==4)||(a5==5))&&(input==6))&&!(a27==1))&&!(a20==1)))&&(a28==1))&&(a21==10))&&(((a1==14)&&((a27==1)||(((a9==8)&&((a24==1)||((!(a24==1)&&(a23==1))&&(a16==8))))&&(a19==1))))&&(a17==2)))){ + a9 = 7; + a16 = 7; + a20 = 1; + a5 = 4; + a2 = 1; + a8 = 0; + a1 = 12; + a12 = 1; + return -1; + } else if((((a3==1)&&((a19==3)&&((a21==10)&&(((((((a5==6)&&(a2==1))&&(a16==9))||!(a12==1))&&(a2==1))||(a18==1))&&(a17==2)))))&&(((a1==12)&&(((!(a20==1)&&(input==5))&&(a9==10))&&(a6==1)))&&!(a14==1)))){ + a16 = 7; + a13 = 0; + a15 = 1; + a9 = 11; + a20 = 1; + a19 = 1; + a26 = 1; + return -1; + } else if(((((((a16==10)&&((a2==1)&&((a19==2)&&(a13==1))))||!(a2==1))||!(a3==1))&&(a17==2))&&(((!(a4==1)&&(!(a0==1)&&((((((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9))))&&(input==5))&&!(a20==1))&&(a21==10))))&&!(a24==1))&&(a1==12)))){ + a5 = 4; + a9 = 8; + a20 = 1; + a16 = 7; + a28 = 0; + a15 = 1; + a18 = 1; + return 26; + } else if(((((!(a20==1)&&(((input==1)&&((((a21==12)&&(((a16==10)&&((a9==11)&&((a5==6)&&(a1==14))))&&(a19==5)))||((((a16==11)&&((a9==7)&&((a1==12)&&(a5==4))))&&(a19==1))&&(a21==10)))||(((a19==1)&&((a16==11)&&(((a1==12)&&(a5==5))&&(a9==7))))&&(a21==10))))&&(a17==2)))&&!(a26==1))&&!(a7==1))&&(((((a23==1)&&(a3==1))||(a0==1))||(a18==1))&&!(a27==1)))){ + a21 = 10; + a8 = 1; + a19 = 3; + a18 = 1; + a5 = 5; + a20 = 1; + a16 = 7; + a1 = 14; + a4 = 1; + a9 = 10; + return -1; + } else if((((a28==1)&&((a19==2)&&(!(a14==1)&&(((a17==2)&&(((a1==13)&&((a5==5)&&(((a9==11)&&(input==4))&&!(a8==1))))&&!(a26==1)))&&(a3==1)))))&&((a11==1)&&(((a16==9)&&(!(a20==1)&&(a3==1)))&&(a21==11))))){ + a29 = 0; + a5 = 4; + a22 = 0; + a19 = 5; + a9 = 8; + a1 = 12; + a16 = 8; + return 21; + } else if((((a17==2)&&((((a16==9)&&(((a21==12)&&((input==5)&&((((a5==5)&&(a1==13))&&(a9==7))||(((a9==11)&&((a1==12)&&(a5==6)))||(((a5==4)&&(a1==13))&&(a9==7))))))&&(a19==1)))&&!(a20==1))&&!(a27==1)))&&((!(a6==1)||(!(a14==1)&&((a26==1)||((a13==1)&&(a13==1)))))&&(a28==1)))){ + a21 = 10; + a2 = 0; + a1 = 13; + a9 = 10; + a19 = 5; + a27 = 1; + a5 = 5; + a26 = 1; + return -1; + } else if((((!(a8==1)&&((a17==2)&&(((a1==13)&&(((!(a11==1)||((a12==1)||(a4==1)))&&(a9==11))&&(a16==9)))&&(a21==10))))||!(a13==1))&&((a2==1)&&(((a13==1)&&((a19==2)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5))))&&!(a20==1))))){ + a5 = 4; + a9 = 10; + a1 = 12; + a19 = 1; + a14 = 1; + a7 = 1; + a8 = 1; + a20 = 1; + a16 = 7; + return 21; + } else if((((((a20==1)&&((a19==3)&&(((a2==1)&&(((((input==4)&&(((a9==7)&&((a5==4)&&(a1==14)))||((((a5==5)&&(a1==13))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==13))))))&&(a17==2))&&!(a7==1))&&(a3==1)))&&(a16==8))))&&(a12==1))&&(a23==1))&&(!(a24==1)&&((a23==1)&&(a21==11))))){ + a5 = 4; + a9 = 7; + a19 = 1; + a2 = 1; + a21 = 10; + a26 = 0; + a1 = 12; + a16 = 7; + return -1; + } else if((((a19==5)&&((a5==4)&&(((!(a27==1)&&(((a9==11)&&(input==1))&&!(a14==1)))&&(a21==12))&&(a16==11))))&&(((a20==1)&&((!(a8==1)&&(((a14==1)||((a17==2)&&(a6==1)))||(a27==1)))&&!(a8==1)))&&(a1==13)))){ + a1 = 12; + a12 = 1; + a24 = 0; + a16 = 7; + a21 = 10; + a19 = 1; + a9 = 7; + a2 = 1; + return -1; + } else if(((((a17==2)&&(((a12==1)&&(((input==1)&&((a5==4)||(a5==5)))&&(a3==1)))&&!(a0==1)))&&(a9==8))&&((a1==12)&&(((!(a3==1)||((!(a3==1)||((a21==10)&&((a2==1)&&(a16==9))))&&!(a18==1)))&&!(a20==1))&&(a19==1))))){ + a11 = 0; + a0 = 1; + a22 = 1; + a20 = 1; + a5 = 6; + a16 = 7; + return 21; + } else if((((a9==7)&&(!(a26==1)&&((!(a26==1)&&((a17==2)&&((a3==1)&&(!(a18==1)&&((input==6)&&((a5==5)||(a5==6)))))))&&(a21==11))))&&(!(a11==1)||(!(a20==1)&&((a1==13)&&((!(a14==1)&&((a12==1)&&(a19==4)))&&(a16==9))))))){ + a9 = 10; + a24 = 1; + a1 = 12; + a16 = 8; + a3 = 0; + a8 = 1; + a20 = 1; + a19 = 5; + a21 = 12; + a5 = 6; + return 21; + } else if((((a28==1)&&(((a7==1)||(!(a20==1)&&((a23==1)&&((a21==11)&&((a17==2)&&((((a9==9)&&(a6==1))&&(a6==1))&&(a19==4)))))))&&(a16==9)))&&(((a1==13)&&((a2==1)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a3==1)))){ + a1 = 14; + a16 = 7; + a19 = 1; + a5 = 4; + a20 = 1; + a23 = 0; + a29 = 0; + a21 = 10; + a10 = 1; + return -1; + } else if(((((a17==2)&&(!(a12==1)||((a23==1)&&(!(a4==1)&&((a21==10)&&(!(a20==1)&&((a11==1)&&!(a0==1))))))))&&!(a0==1))&&(((a16==11)&&((a6==1)&&((input==3)&&((((a9==11)&&((a1==13)&&(a5==6)))||((a9==7)&&((a1==14)&&(a5==4))))||((a9==7)&&((a5==5)&&(a1==14)))))))&&(a19==1)))){ + a20 = 1; + a11 = 0; + a3 = 0; + a16 = 7; + a9 = 11; + a5 = 6; + a15 = 0; + a1 = 12; + return -1; + } else if((((a19==5)&&((a9==11)&&(((a24==1)&&(!(a12==1)&&((a2==1)&&(a26==1))))&&(a17==2))))&&((!(a13==1)&&((a21==11)&&((!(a23==1)&&((((input==6)&&((a5==4)||(a5==5)))&&(a7==1))&&(a20==1)))&&(a16==8))))&&(a1==13)))){ + a1 = 14; + a25 = 1; + a15 = 1; + a21 = 10; + a9 = 9; + a10 = 0; + a16 = 7; + a19 = 1; + a5 = 5; + return 21; + } else if((((a16==8)&&((((a20==1)&&((a9==11)&&(a12==1)))&&(a21==10))&&(a1==14)))&&((!(a26==1)&&((a12==1)&&(((((a6==1)&&(!(a26==1)&&((a19==2)&&(input==4))))&&!(a7==1))&&(a5==5))&&(a6==1))))&&(a17==2)))){ + a1 = 12; + a16 = 7; + a9 = 7; + a5 = 4; + a19 = 1; + a27 = 0; + a7 = 0; + a12 = 1; + return -1; + } else if((((a16==10)&&(!(a13==1)||(!(a24==1)&&((!(a28==1)||((a19==5)&&(((a11==1)||(a8==1))&&!(a20==1))))&&(a17==2)))))&&((a1==12)&&((a9==9)&&(((((input==4)&&((a5==4)||(a5==5)))&&!(a14==1))&&(a21==10))&&!(a0==1)))))){ + if((a14==1)){ + a5 = 5; + a12 = 0; + a16 = 9; + a19 = 1; + a9 = 11; + a10 = 0; + a20 = 1; + a13 = 0; + a21 = 11; + }else{ + a16 = 7; + a5 = 6; + a7 = 1; + a20 = 1; + a1 = 14; + a0 = 1; + a9 = 8; + a19 = 1; + a27 = 1; + } + return -1; + } else if(((((!(a13==1)||((a21==11)&&(((a28==1)&&(a2==1))&&(a17==2))))||(a24==1))&&(a13==1))&&(!(a27==1)&&((a23==1)&&((a19==4)&&(!(a20==1)&&(((a16==9)&&(((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4)))&&(input==1)))&&(a1==14)))))))){ + a21 = 10; + a9 = 11; + a19 = 1; + a20 = 1; + a25 = 1; + a16 = 7; + a5 = 5; + a0 = 1; + a28 = 0; + return 22; + } else if((((a21==10)&&((a13==1)&&(((((((a5==5)||(a5==6))&&(input==6))&&(a6==1))&&(a17==2))&&(a19==2))&&(a11==1))))&&(((a9==9)&&((a16==7)&&(((!(a12==1)||((a6==1)&&!(a4==1)))&&!(a20==1))&&(a2==1))))&&(a1==12)))){ + a27 = 0; + a9 = 10; + a20 = 1; + a16 = 8; + a21 = 12; + a5 = 6; + a6 = 1; + a1 = 13; + a7 = 0; + a19 = 5; + return 26; + } else if((((a8==1)||((a17==2)&&((a13==1)||(a0==1))))&&(((a1==12)&&(!(a20==1)&&((((a19==4)&&((a16==8)&&(!(a8==1)&&((((((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4)))&&(input==4))&&(a21==11)))))&&!(a26==1))&&!(a4==1))))&&(a6==1)))){ + a5 = 5; + a21 = 12; + a18 = 0; + a20 = 1; + a11 = 1; + a6 = 1; + a9 = 7; + return -1; + } else if((((a16==8)&&(((!(a0==1)&&((a1==12)&&(!(a7==1)&&(((((input==5)&&(a21==12))&&(a19==2))&&!(a8==1))&&!(a20==1)))))&&(a11==1))&&(a17==2)))&&(((((a3==1)&&(a5==4))&&!(a7==1))&&!(a7==1))&&(a9==11)))){ + if((a26==1)){ + a2 = 0; + a1 = 14; + a19 = 5; + a9 = 8; + a24 = 1; + a5 = 6; + a8 = 1; + }else{ + a19 = 3; + a26 = 1; + a9 = 7; + a21 = 10; + a3 = 0; + a20 = 1; + a1 = 13; + a14 = 1; + a5 = 6; + a16 = 11; + } + return 21; + } else if(((((a27==1)||((((a21==11)&&(!(a2==1)||(a3==1)))||!(a2==1))&&(a1==13)))||(a4==1))&&(!(a7==1)&&((a16==11)&&(((((a19==2)&&((a9==11)&&(((a5==4)||(a5==5))&&(input==5))))&&(a17==2))&&(a2==1))&&(a20==1)))))){ + a21 = 10; + a5 = 4; + a6 = 1; + a9 = 7; + a19 = 1; + a28 = 1; + a1 = 12; + a16 = 7; + a7 = 0; + return -1; + } else if((((a14==1)||((a16==8)&&(((a2==1)&&((a20==1)&&(a6==1)))||(a7==1))))&&(((a17==2)&&((!(a27==1)&&((((((a9==11)&&((a1==14)&&(a5==6)))&&(a19==1))||((((a5==4)&&(a1==12))&&(a9==7))&&(a19==2)))&&(input==4))&&!(a18==1)))&&(a28==1)))&&(a21==11)))){ + a1 = 13; + a5 = 5; + a19 = 5; + a21 = 12; + a28 = 1; + a9 = 7; + a3 = 1; + a24 = 0; + return 26; + } else if(((((a1==12)&&(((a16==10)&&(((a2==1)&&(((a13==1)&&(a17==2))||!(a23==1)))||(a7==1)))&&(a20==1)))&&(a21==10))&&(((((((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4)))&&(input==4))&&(a3==1))&&(a6==1))&&!(a26==1))&&(a19==3)))){ + a11 = 1; + a16 = 7; + a5 = 4; + a9 = 7; + a19 = 1; + a7 = 0; + return -1; + } else if(((((((a21==12)&&(((a16==8)&&((a19==5)&&((!(a4==1)&&((a3==1)||!(a3==1)))&&(a9==8))))&&(a17==2)))||(a27==1))&&(a28==1))||!(a23==1))&&((a1==14)&&((((a20==1)&&(input==3))&&(a5==6))&&(a3==1))))){ + a27 = 0; + a16 = 10; + a5 = 4; + a2 = 1; + a1 = 13; + return 23; + } else if((((a6==1)&&((a13==1)&&(!(a27==1)&&((a2==1)&&(!(a20==1)&&((input==6)&&(((((a5==5)&&(a1==12))&&(a9==11))||((a9==11)&&((a1==12)&&(a5==6))))||(((a1==13)&&(a5==4))&&(a9==7)))))))))&&((a21==11)&&((a16==7)&&((a17==2)&&((a27==1)||(((a19==2)&&(a2==1))||(a4==1)))))))){ + a5 = 5; + a19 = 3; + a21 = 12; + a1 = 14; + a3 = 1; + a9 = 8; + a4 = 0; + return 26; + } else if((((a16==7)&&((a2==1)&&(a17==2)))&&((a3==1)&&((((!(a8==1)&&((a21==10)&&((a19==4)&&((a20==1)&&(((input==3)&&(((((a5==6)&&(a1==12))&&(a9==11))||(((a5==4)&&(a1==13))&&(a9==7)))||(((a5==5)&&(a1==13))&&(a9==7))))&&(a13==1))))))&&!(a27==1))&&!(a4==1))&&(a28==1))))){ + a9 = 7; + a7 = 0; + a11 = 1; + a1 = 12; + a13 = 1; + a5 = 4; + a19 = 1; + return -1; + } else if((((a16==11)&&((((((a13==1)&&(((input==3)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(a19==3)))&&(a3==1))&&!(a0==1))&&(a1==14))&&(a20==1)))&&((a21==10)&&(!(a2==1)||(!(a2==1)||((a4==1)||((a6==1)&&(a17==2)))))))){ + a28 = 1; + a5 = 4; + a19 = 4; + a3 = 1; + a9 = 11; + a4 = 0; + return 21; + } else if(((((a26==1)||((((a3==1)&&(a19==1))&&!(a18==1))&&(a20==1)))&&(a17==2))&&(((a28==1)&&((((a11==1)&&(!(a26==1)&&(((((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))&&(input==3))&&(a1==14))))&&(a2==1))&&(a21==10)))&&(a16==9)))){ + a5 = 4; + a9 = 7; + a16 = 7; + a1 = 12; + a28 = 1; + a24 = 0; + a27 = 0; + return -1; + } else if(((((a21==12)&&(((a9==7)&&(a11==1))&&(a19==4)))&&!(a20==1))&&((a17==2)&&((a5==5)&&((a1==12)&&(!(a8==1)&&(!(a0==1)&&(!(a26==1)&&((a2==1)&&((!(a7==1)&&((input==5)&&(a16==9)))&&(a3==1))))))))))){ + a9 = 8; + a25 = 1; + a21 = 10; + a29 = 1; + a22 = 0; + a20 = 1; + a19 = 2; + a16 = 7; + return -1; + } else if(((!(a6==1)||((!(a26==1)&&((a1==13)&&(!(a8==1)&&(a3==1))))||(a18==1)))&&((a19==3)&&((((a12==1)&&((a2==1)&&((a17==2)&&(((a16==10)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))&&(a9==9)))))&&!(a20==1))&&(a21==10))))){ + a19 = 2; + a16 = 7; + a20 = 1; + a9 = 10; + a1 = 12; + a5 = 5; + a13 = 0; + a26 = 1; + return -1; + } else if(((((!(a0==1)&&((a9==10)&&((a18==1)||(((a17==2)&&((a1==14)&&(a13==1)))||(a27==1)))))||(a14==1))||!(a3==1))&&((a16==11)&&((((a20==1)&&(((input==4)&&((a5==5)||(a5==6)))&&(a19==5)))&&(a3==1))&&(a21==10))))){ + a12 = 1; + a9 = 7; + a13 = 1; + a3 = 1; + a16 = 7; + a1 = 12; + a19 = 1; + a5 = 4; + return -1; + } else if(((!(a7==1)&&((((a21==10)&&((((a5==5)||(a5==6))&&(input==1))&&!(a4==1)))&&(a13==1))&&(a3==1)))&&(!(a20==1)&&((a9==8)&&(((((a1==14)&&((a12==1)&&((a28==1)&&(a16==7))))&&!(a14==1))&&(a17==2))&&(a19==2)))))){ + if((a18==1)){ + a21 = 11; + a13 = 1; + a16 = 8; + a12 = 1; + a19 = 1; + a1 = 13; + a9 = 9; + a5 = 4; + a18 = 0; + }else{ + a9 = 7; + a20 = 1; + a19 = 4; + a16 = 10; + a0 = 0; + a8 = 0; + a24 = 0; + a21 = 11; + a5 = 4; + } + return 22; + } else if((((((a28==1)&&(((a6==1)&&!(a7==1))&&(a28==1)))&&!(a20==1))&&(a9==10))&&((((a16==10)&&((a19==4)&&(!(a24==1)&&((a1==14)&&((((a5==4)&&(input==3))&&(a21==10))&&(a17==2))))))&&(a3==1))&&(a23==1)))){ + a9 = 9; + a13 = 0; + a15 = 1; + a0 = 1; + a16 = 7; + a1 = 12; + a19 = 1; + a20 = 1; + return 25; + } else if((((a16==10)&&((a21==12)&&(!(a14==1)&&((((a5==4)&&(a13==1))||(a24==1))||!(a13==1)))))&&((a20==1)&&((!(a27==1)&&((a1==14)&&(((((a19==5)&&(input==1))&&(a9==7))&&!(a26==1))&&(a17==2))))&&!(a27==1))))){ + a19 = 1; + a18 = 0; + a21 = 10; + a3 = 1; + a16 = 7; + a1 = 12; + return -1; + } else if((((a19==5)&&(((!(a7==1)&&(((a23==1)&&(a1==14))&&(a20==1)))||!(a28==1))&&(a17==2)))&&((((a11==1)&&(((a11==1)&&((((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))&&(input==1))&&(a13==1)))&&(a16==10)))&&!(a8==1))&&(a21==10)))){ + a1 = 12; + a4 = 0; + a23 = 1; + a16 = 7; + a18 = 0; + a5 = 4; + a19 = 1; + a9 = 7; + return -1; + } else if((((a5==6)&&(((a1==13)&&(((((!(a14==1)&&((a17==2)&&(input==5)))&&!(a26==1))&&(a13==1))&&!(a24==1))&&(a20==1)))&&(a19==2)))&&((a21==11)&&((a9==11)&&((((a13==1)&&(a16==10))||(a18==1))&&!(a7==1)))))){ + a8 = 0; + a13 = 1; + a19 = 3; + a1 = 12; + a21 = 10; + a9 = 10; + a5 = 4; + a28 = 1; + return -1; + } else if((((a12==1)&&((a9==10)&&((a11==1)&&(((a16==7)&&((((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a21==12))&&(a19==4)))&&(a6==1)))))&&((a28==1)&&((((((a11==1)&&!(a20==1))||!(a6==1))&&(a17==2))&&(a23==1))&&(a1==12))))){ + a19 = 3; + a28 = 1; + a18 = 0; + a0 = 0; + a1 = 14; + a5 = 5; + a16 = 11; + a20 = 1; + return 25; + } else if((((!(a26==1)&&(((!(a0==1)&&((a19==4)&&(a6==1)))&&(a11==1))&&(a1==13)))&&(a5==5))&&((((a13==1)&&(((a17==2)&&(!(a18==1)&&(((a21==11)&&(input==5))&&(a16==7))))&&!(a14==1)))&&(a9==9))&&(a20==1)))){ + a5 = 4; + a16 = 8; + a12 = 1; + a3 = 1; + a9 = 7; + a8 = 0; + return 23; + } else if((((a1==12)&&(((((a21==10)&&(a12==1))||!(a23==1))||!(a11==1))&&(a19==3)))&&(((((a16==10)&&(!(a20==1)&&((a17==2)&&((a11==1)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==5))))))&&(a2==1))&&(a12==1))&&(a28==1)))){ + a18 = 1; + a1 = 13; + a9 = 11; + a11 = 0; + a27 = 1; + a19 = 5; + a16 = 8; + a21 = 12; + a5 = 6; + return -1; + } else if(((((a26==1)||((a16==7)&&((!(a20==1)&&(!(a28==1)||(a13==1)))&&(a11==1))))||(a18==1))&&((!(a4==1)&&(((a17==2)&&(((((a9==11)&&((a1==14)&&(a5==6)))&&(a19==3))||((a19==4)&&(((a5==4)&&(a1==12))&&(a9==7))))&&(input==1)))&&(a21==12)))&&(a23==1)))){ + if((a6==1)){ + a19 = 5; + a5 = 5; + a9 = 8; + a23 = 1; + a1 = 13; + a21 = 10; + a6 = 1; + a16 = 8; + }else{ + a5 = 5; + a19 = 5; + a2 = 1; + a20 = 1; + a16 = 8; + a1 = 14; + a0 = 0; + a8 = 0; + a9 = 10; + } + return 25; + } return calculate_output40(input); + } + + int calculate_output40(int input) { + if(((!(a18==1)&&((a2==1)&&((a21==12)&&((a17==2)&&(!(a4==1)&&((input==1)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))))))))&&((!(a12==1)||(!(a24==1)&&((!(a3==1)||((a1==14)&&((a16==7)&&(a11==1))))&&(a19==2))))&&(a20==1)))){ + a3 = 1; + a2 = 1; + a21 = 10; + a19 = 1; + a23 = 1; + a1 = 12; + a9 = 7; + a5 = 4; + return -1; + } else if((((a17==2)&&((a5==5)&&(!(a27==1)&&((!(a26==1)&&(!(a20==1)&&((a21==10)&&(((input==4)&&(a1==14))&&(a9==8)))))&&(a12==1)))))&&((a19==5)&&(((((a2==1)||(a8==1))||!(a6==1))||(a7==1))&&(a16==7))))){ + a9 = 7; + a5 = 4; + a20 = 1; + a3 = 1; + a1 = 12; + a8 = 0; + a2 = 1; + a19 = 1; + return -1; + } else if(((((!(a12==1)||((a13==1)&&(a16==9)))&&(a19==5))&&(a17==2))&&((a1==12)&&(((((((a12==1)&&(((a9==7)&&((input==5)&&((a5==5)||(a5==6))))&&(a2==1)))&&(a21==10))&&!(a18==1))&&(a20==1))&&!(a8==1))&&!(a14==1))))){ + a16 = 7; + a8 = 0; + a19 = 1; + a12 = 1; + a0 = 0; + a5 = 4; + return -1; + } else if((((a19==5)&&((a9==8)&&(((a17==2)&&(((((a3==1)&&(a23==1))||(a26==1))||!(a6==1))||(a0==1)))&&!(a4==1))))&&(((!(a20==1)&&(((a21==12)&&((input==6)&&(a5==6)))&&(a6==1)))&&(a1==12))&&(a16==10)))){ + if((a13==1)){ + a19 = 3; + a1 = 14; + a5 = 5; + a29 = 0; + a4 = 1; + a11 = 0; + }else{ + a23 = 0; + a9 = 7; + a19 = 1; + a8 = 1; + a5 = 5; + a21 = 11; + a16 = 9; + } + return 26; + } else if(((((a6==1)&&(((!(a18==1)&&(((((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7))))&&(input==1))&&(a17==2)))&&(a20==1))&&(a16==8)))&&(a6==1))&&(((a21==11)&&(((a19==1)&&((a18==1)||((a13==1)||(a27==1))))&&(a1==12)))&&!(a26==1)))){ + a11 = 1; + a19 = 2; + a13 = 1; + a9 = 8; + a16 = 10; + a21 = 10; + a1 = 14; + a5 = 6; + a12 = 1; + return 21; + } else if(((((!(a20==1)&&(((a17==2)&&((a16==11)&&((a21==10)&&((((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a5==6)&&(a9==10))))&&(input==3)))))&&(a6==1)))&&(a1==14))&&(a12==1))&&(((a24==1)||((((a2==1)&&(a19==1))&&!(a26==1))||!(a3==1)))||(a4==1)))){ + if((a2==1)){ + a23 = 0; + a3 = 0; + a25 = 0; + a16 = 10; + a19 = 3; + a9 = 10; + a1 = 12; + a5 = 5; + }else{ + a5 = 5; + a19 = 2; + a1 = 13; + a9 = 9; + a16 = 7; + a28 = 0; + a27 = 1; + a10 = 0; + } + return 22; + } else if((((((!(a27==1)&&(!(a4==1)&&((!(a8==1)&&(((a16==7)&&(input==3))&&!(a27==1)))&&(a1==14))))&&!(a18==1))&&(a21==10))&&(a19==4))&&(((a17==2)&&((((a12==1)&&(a13==1))&&(a9==10))&&!(a20==1)))&&(a5==4)))){ + a1 = 12; + a9 = 7; + a11 = 1; + a0 = 0; + a20 = 1; + a18 = 0; + a19 = 1; + return -1; + } else if(((((a17==2)&&((!(a14==1)&&(((a23==1)&&((a6==1)&&(((((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&(input==5))&&!(a0==1))))&&!(a24==1)))&&(a1==12)))&&(a19==3))&&((a21==10)&&((((a11==1)||!(a2==1))&&(a16==9))&&!(a20==1))))){ + a19 = 4; + a3 = 0; + a9 = 9; + a1 = 13; + a21 = 12; + a22 = 1; + a16 = 7; + a5 = 5; + a20 = 1; + return -1; + } else if((((a1==12)&&((a16==9)&&((a21==12)&&((((a2==1)&&(((input==4)&&(a19==1))&&!(a0==1)))&&(a6==1))&&!(a27==1)))))&&(((a17==2)&&((a9==11)&&((((a8==1)||(a28==1))&&(a5==4))&&(a12==1))))&&(a20==1)))){ + a21 = 10; + a6 = 1; + a9 = 7; + a3 = 1; + a16 = 7; + a4 = 0; + return -1; + } else if((((a28==1)&&((a11==1)&&(((a2==1)&&((a16==8)&&(((a19==1)&&((a9==11)&&(!(a20==1)&&(input==6))))&&(a17==2))))&&(a1==14))))&&((a13==1)&&((a21==10)&&((!(a12==1)||((a5==4)&&(a13==1)))||(a4==1)))))){ + a11 = 1; + a5 = 5; + a27 = 0; + a19 = 4; + a18 = 0; + a9 = 8; + a1 = 12; + a21 = 11; + return 21; + } else if(((!(a20==1)&&(!(a0==1)&&(!(a4==1)&&(!(a24==1)&&((a12==1)&&((a9==7)&&(input==6)))))))&&((a6==1)&&((a5==4)&&((((a21==10)&&((((a12==1)&&(a1==14))&&(a19==5))&&(a17==2)))&&(a13==1))&&(a16==8)))))){ + a16 = 7; + a20 = 1; + a4 = 0; + a1 = 12; + a8 = 0; + a19 = 1; + return -1; + } else if((((a8==1)||(((!(a20==1)&&((a19==5)&&((a16==7)&&((a2==1)&&(a17==2)))))&&(a21==12))&&!(a26==1)))&&((a23==1)&&((a13==1)&&(((((input==4)&&(((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))))&&!(a0==1))&&(a1==14))&&(a2==1)))))){ + a19 = 3; + a21 = 10; + a16 = 11; + a4 = 0; + a20 = 1; + a14 = 0; + a9 = 7; + a23 = 1; + a5 = 5; + return 23; + } else if((((((a9==8)&&(((!(a7==1)&&((a17==2)&&((a21==12)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))))&&(a2==1))&&!(a27==1)))&&!(a20==1))&&(a19==4))&&((((a2==1)&&((a16==7)&&(!(a2==1)||(a12==1))))||!(a2==1))&&(a1==12)))){ + a20 = 1; + a1 = 14; + a9 = 7; + a5 = 6; + a16 = 8; + a14 = 0; + a2 = 1; + a21 = 10; + a19 = 3; + return 23; + } else if((((((a16==7)&&((a2==1)&&(a1==12)))&&!(a14==1))||(a8==1))&&(!(a26==1)&&(!(a4==1)&&((a23==1)&&(!(a7==1)&&((a17==2)&&((a9==8)&&(((((input==1)&&(a19==4))&&(a21==11))&&(a20==1))&&(a5==6)))))))))){ + a5 = 4; + a3 = 1; + a23 = 1; + a19 = 1; + a9 = 7; + a0 = 0; + a21 = 10; + return -1; + } else if((((a9==10)&&(((((a12==1)&&(a1==13))&&(a17==2))&&(a3==1))||(a24==1)))&&((((a28==1)&&(((((a11==1)&&(((a16==8)&&(input==3))&&(a21==10)))&&!(a27==1))&&(a5==6))&&(a19==2)))&&(a2==1))&&!(a20==1)))){ + a26 = 0; + a7 = 0; + a9 = 7; + a28 = 1; + a1 = 12; + a20 = 1; + a16 = 7; + a5 = 4; + a19 = 1; + return -1; + } else if((((a1==12)&&(!(a20==1)&&((((a28==1)&&(a9==10))||!(a11==1))||(a4==1))))&&(((((a3==1)&&((((a2==1)&&(((input==6)&&((a5==5)||(a5==6)))&&(a13==1)))&&!(a7==1))&&(a21==11)))&&(a19==1))&&(a17==2))&&(a16==8)))){ + a16 = 10; + a6 = 1; + a21 = 12; + a9 = 8; + a20 = 1; + a5 = 4; + a26 = 0; + a19 = 2; + a28 = 1; + a1 = 13; + return 21; + } else if(((!(a20==1)&&(((a6==1)&&((a11==1)&&((a6==1)&&(((input==4)&&((((((a5==5)&&(a1==14))&&(a9==11))&&(a19==2))||((((a1==14)&&(a5==6))&&(a9==11))&&(a19==2)))||((a19==3)&&(((a5==4)&&(a1==12))&&(a9==7)))))&&(a16==7)))))&&(a21==10)))&&(((a17==2)&&((a4==1)||((a6==1)&&(a2==1))))&&(a13==1)))){ + a9 = 7; + a8 = 0; + a5 = 4; + a11 = 1; + a1 = 12; + a26 = 0; + a19 = 1; + a20 = 1; + return -1; + } else if(((((a17==2)&&(((a19==1)&&((a1==13)&&(a11==1)))&&(a21==10)))&&(a20==1))&&(((a6==1)&&((!(a4==1)&&((a6==1)&&((a16==8)&&((a13==1)&&((input==4)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))))))&&(a3==1)))&&(a6==1)))){ + a4 = 0; + a5 = 4; + a18 = 0; + a16 = 7; + a1 = 12; + a9 = 7; + a24 = 0; + return -1; + } else if(((!(a2==1)&&(((a9==10)&&(((a21==10)&&((a16==7)&&((a17==2)&&(input==4))))&&(a20==1)))&&(a24==1)))&&(((((a1==13)&&((a19==2)&&((a4==1)&&((a11==1)&&(a5==6)))))&&(a27==1))&&!(a6==1))&&(a27==1)))){ + a7 = 1; + a1 = 12; + a29 = 1; + a20 = 0; + a25 = 0; + return 25; + } else if(((!(a3==1)||(((!(a27==1)&&(((a16==8)&&(a12==1))||!(a6==1)))||!(a11==1))&&(a1==13)))&&((!(a24==1)&&((a19==1)&&(((a17==2)&&(((((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(input==5))&&(a12==1)))&&(a20==1))))&&(a21==11)))){ + a16 = 10; + a21 = 10; + a9 = 10; + a5 = 4; + a19 = 3; + a7 = 0; + a2 = 1; + a23 = 1; + a1 = 12; + return 25; + } else if(((!(a3==1)||(((((a6==1)&&(a20==1))&&(a21==12))&&(a19==2))&&!(a27==1)))&&((!(a14==1)&&(((a12==1)&&((a16==9)&&((a17==2)&&((((a9==11)&&((a1==13)&&(a5==6)))||((a9==7)&&((a5==4)&&(a1==14))))&&(input==4)))))&&!(a26==1)))&&!(a24==1)))){ + a9 = 7; + a24 = 0; + a7 = 0; + a16 = 7; + a1 = 12; + a5 = 4; + a21 = 10; + a26 = 0; + a19 = 1; + return -1; + } else if((((a16==8)&&(!(a24==1)&&(((((a23==1)&&(a2==1))&&(a19==1))&&(a21==11))&&(a11==1))))&&((((!(a27==1)&&((((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==3))&&(a17==2))&&!(a20==1)))&&(a6==1))&&(a1==13))&&(a23==1)))){ + a20 = 1; + a4 = 0; + a24 = 0; + a19 = 4; + a6 = 1; + a1 = 12; + a5 = 5; + a9 = 10; + return 26; + } else if(((((a17==2)&&((a2==1)&&((a1==14)&&((a19==3)&&((a16==9)&&((input==3)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))))))))&&(a21==10))&&((((((a24==1)||((a0==1)||(a3==1)))&&(a6==1))&&(a13==1))&&(a20==1))||!(a12==1)))){ + a4 = 0; + a19 = 1; + a9 = 7; + a16 = 7; + a26 = 0; + a1 = 12; + a14 = 0; + a5 = 4; + return -1; + } else if(((((a6==1)&&(!(a18==1)&&((a17==2)&&(((a5==5)||(a5==6))&&(input==5)))))&&(a16==11))&&((a20==1)&&((a19==4)&&(((((!(a2==1)||(((a24==1)||(a12==1))&&!(a7==1)))&&(a12==1))&&(a1==13))&&(a9==11))&&(a21==11)))))){ + a5 = 4; + a9 = 7; + a21 = 10; + a1 = 12; + a19 = 1; + a16 = 7; + a23 = 1; + a0 = 0; + a4 = 0; + return -1; + } else if((((((((a16==10)&&((a2==1)&&(a21==12)))&&(a20==1))&&(a28==1))&&!(a7==1))&&!(a8==1))&&(((a17==2)&&((a19==4)&&(((a1==14)&&(((((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==4))&&(a12==1)))&&!(a26==1))))&&(a13==1)))){ + a21 = 10; + a5 = 4; + a9 = 7; + a24 = 0; + a1 = 12; + a0 = 0; + a12 = 1; + a16 = 7; + a19 = 1; + return -1; + } else if((((((((a20==1)&&((((((a5==5)||(a5==6))&&(input==1))&&(a19==5))&&(a3==1))&&(a9==9)))&&(a17==2))&&(a21==12))&&(a16==7))&&(a3==1))&&((!(a27==1)&&((a28==1)&&((a27==1)||((a13==1)&&(a1==12)))))&&!(a18==1)))){ + a5 = 6; + a1 = 14; + a21 = 11; + a11 = 1; + a19 = 3; + a9 = 11; + a16 = 9; + a24 = 0; + return 26; + } else if((((((a9==9)&&((((((a21==11)&&((input==4)&&((a5==4)||(a5==5))))&&(a20==1))&&(a12==1))&&(a1==13))&&!(a26==1)))&&(a16==10))&&(a17==2))&&(!(a11==1)||((a19==3)&&((a23==1)&&((a23==1)&&(!(a14==1)&&(a2==1)))))))){ + a7 = 0; + a19 = 1; + a21 = 10; + a16 = 7; + a5 = 4; + a18 = 0; + a9 = 7; + a1 = 12; + return -1; + } else if(((((a5==4)&&((a19==3)&&(((a9==11)&&((a28==1)&&((!(a20==1)&&(input==3))&&!(a18==1))))&&(a1==12))))&&(a16==9))&&(!(a27==1)&&(!(a28==1)||(((a21==10)&&(((a13==1)&&(a17==2))||!(a11==1)))||!(a2==1)))))){ + a20 = 1; + a19 = 1; + a9 = 9; + a25 = 0; + a16 = 7; + a29 = 0; + a1 = 14; + a12 = 0; + return -1; + } else if(((((!(a12==1)||(((a17==2)&&((a19==2)&&((a23==1)||!(a12==1))))&&(a11==1)))&&!(a27==1))&&(a16==7))&&(((a1==13)&&((!(a7==1)&&(((((a5==4)||(a5==5))&&(input==1))&&!(a20==1))&&!(a7==1)))&&(a9==10)))&&(a21==12)))){ + a19 = 1; + a20 = 1; + a2 = 1; + a1 = 12; + a18 = 0; + a5 = 4; + a9 = 7; + a21 = 10; + a8 = 0; + return -1; + } else if(((!(a20==1)&&((a3==1)||(a18==1)))&&(((a16==8)&&((a1==12)&&(((a21==11)&&((a6==1)&&((a6==1)&&((!(a27==1)&&((a17==2)&&((a6==1)&&((a5==4)&&(input==1)))))&&(a9==11)))))&&(a19==3))))&&(a13==1)))){ + a20 = 1; + a16 = 11; + a23 = 1; + a9 = 8; + a19 = 1; + a5 = 5; + a1 = 13; + a24 = 0; + a26 = 0; + return 23; + } else if(((((a19==5)&&((!(a24==1)&&((a21==11)&&((((a9==11)&&((a1==13)&&(a5==6)))||((a9==7)&&((a1==14)&&(a5==4))))&&(input==1))))&&(a12==1)))&&(a16==7))&&((a17==2)&&((a20==1)&&((a8==1)||(((a6==1)&&((a12==1)&&!(a7==1)))&&(a12==1))))))){ + a8 = 0; + a16 = 8; + a5 = 5; + a9 = 8; + a1 = 12; + a28 = 1; + a19 = 3; + a21 = 12; + a6 = 1; + return 26; + } else if(((!(a23==1)||((a5==5)&&((((a11==1)&&(a1==13))&&(a19==3))&&(a21==11))))&&((((a28==1)&&((a20==1)&&(!(a8==1)&&((a2==1)&&(((a16==11)&&((a9==10)&&(input==5)))&&(a17==2))))))&&(a11==1))&&(a28==1)))){ + a21 = 12; + a5 = 4; + a19 = 1; + a6 = 1; + a3 = 1; + a8 = 0; + a1 = 14; + a9 = 11; + return 22; + } else if((((((((((!(a20==1)&&(((a5==5)||(a5==6))&&(input==5)))&&(a16==8))&&(a19==2))&&(a9==7))&&(a13==1))&&(a1==13))&&(a17==2))&&(a12==1))&&(!(a2==1)||((!(a2==1)||((a21==10)&&((a28==1)||!(a6==1))))||!(a11==1))))){ + a23 = 1; + a11 = 1; + a16 = 7; + a3 = 1; + a19 = 1; + a1 = 12; + a20 = 1; + a5 = 4; + return -1; + } else if((((a21==10)&&((((a17==2)&&(!(a0==1)&&((!(a8==1)&&(((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11)))&&(input==4)))&&(a11==1))))&&(a12==1))&&(a19==5)))&&((a1==14)&&(((a2==1)&&(((a23==1)&&(a16==7))&&(a20==1)))&&!(a4==1))))){ + a9 = 7; + a5 = 4; + a23 = 1; + a1 = 12; + a14 = 0; + a3 = 1; + a19 = 1; + return -1; + } else if((((a21==10)&&(((a20==1)&&(a12==1))&&(a1==14)))&&((a28==1)&&(((((a16==9)&&(!(a24==1)&&(((a17==2)&&(((input==3)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(a6==1)))&&(a2==1))))&&(a19==1))&&(a6==1))&&!(a8==1))))){ + a16 = 7; + a1 = 12; + a5 = 4; + a24 = 0; + a9 = 7; + a8 = 0; + a7 = 0; + return -1; + } else if((((((!(a0==1)&&(((a2==1)&&(a9==11))&&(a1==12)))&&!(a26==1))&&(a20==1))&&(a16==8))&&((((a23==1)&&(((!(a8==1)&&(!(a18==1)&&((input==1)&&((a5==5)||(a5==6)))))&&(a21==12))&&(a12==1)))&&(a17==2))&&(a19==1)))){ + a9 = 10; + a21 = 11; + a5 = 5; + a16 = 10; + a4 = 0; + a19 = 4; + a1 = 14; + a12 = 1; + a7 = 0; + return 21; + } else if((((a16==9)&&(!(a27==1)&&((a19==4)&&(((a6==1)&&((a13==1)&&(((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))&&(input==5))))&&(a21==12)))))&&(((!(a27==1)&&((a17==2)&&(!(a20==1)&&((a11==1)&&!(a7==1)))))&&(a23==1))&&(a1==12)))){ + a6 = 0; + a14 = 1; + a0 = 1; + a1 = 13; + a9 = 7; + a21 = 10; + a16 = 7; + a20 = 1; + a19 = 1; + a5 = 6; + return -1; + } else if((((!(a7==1)&&(!(a26==1)&&((a16==10)&&((input==4)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))))))&&(a12==1))&&((a6==1)&&((a17==2)&&(!(a6==1)||((a21==11)&&(((((a13==1)&&(a12==1))&&(a1==14))&&(a19==4))&&(a20==1)))))))){ + a9 = 7; + a5 = 4; + a11 = 1; + a1 = 12; + a19 = 1; + a16 = 7; + a21 = 10; + a27 = 0; + return -1; + } else if(((((a3==1)&&((a9==7)&&(input==4)))&&(a11==1))&&(!(a18==1)&&(!(a7==1)&&((a21==10)&&(((((a16==8)&&(((((a28==1)&&(a19==3))&&(a5==4))&&(a1==13))||!(a13==1)))&&(a17==2))&&!(a20==1))||(a24==1))))))){ + a18 = 0; + a16 = 7; + a5 = 5; + a28 = 1; + a1 = 14; + a21 = 11; + a19 = 5; + a20 = 1; + a11 = 1; + a9 = 8; + return 21; + } else if(((!(a26==1)&&(((a5==4)&&((a6==1)&&(((a9==11)&&((a2==1)&&((a11==1)&&(a16==10))))&&(a19==2))))&&!(a20==1)))&&(!(a8==1)&&(((!(a14==1)&&(((input==3)&&(a21==12))&&(a17==2)))&&(a23==1))&&(a1==14))))){ + if((a9==11)){ + a2 = 0; + a9 = 10; + a20 = 1; + a21 = 10; + a8 = 1; + a4 = 1; + }else{ + a13 = 0; + a16 = 11; + a20 = 1; + a19 = 3; + a21 = 10; + a25 = 0; + a7 = 1; + } + return -1; + } else if((((a14==1)||(((a5==5)&&((a17==2)&&(((((a21==11)&&(a11==1))&&!(a26==1))||!(a28==1))||(a4==1))))||(a4==1)))&&((a20==1)&&((!(a26==1)&&((a19==3)&&((a16==10)&&((input==3)&&(a9==7)))))&&(a1==12))))){ + a21 = 10; + a19 = 1; + a8 = 0; + a27 = 0; + a16 = 7; + a13 = 1; + a5 = 4; + return -1; + } else if(((((a20==1)&&((a28==1)&&(!(a7==1)&&(a28==1))))&&(a19==3))&&((a16==8)&&((a17==2)&&(((a1==14)&&((!(a7==1)&&((!(a24==1)&&(((input==6)&&((a5==5)||(a5==6)))&&(a9==9)))&&(a12==1)))&&!(a26==1)))&&(a21==12)))))){ + a1 = 13; + a23 = 1; + a3 = 1; + a19 = 2; + a16 = 7; + a21 = 10; + a26 = 0; + a5 = 5; + return 25; + } else if((((!(a28==1)||((((a2==1)&&(a21==10))||!(a12==1))&&!(a8==1)))||(a8==1))&&(((((!(a4==1)&&(((a16==11)&&((input==3)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))))&&(a20==1)))&&(a19==5))&&(a17==2))&&(a28==1))&&(a1==13)))){ + a9 = 7; + a24 = 0; + a6 = 1; + a19 = 1; + a2 = 1; + a1 = 12; + a16 = 7; + a5 = 4; + return -1; + } else if(((!(a18==1)&&(!(a7==1)&&((((((input==1)&&(((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))))&&!(a24==1))&&(a16==7))&&!(a20==1))&&(a19==3))))&&((a17==2)&&((a21==12)&&((a1==14)&&((((a3==1)||!(a3==1))&&!(a27==1))||(a18==1))))))){ + if((a3==1)){ + a24 = 0; + a2 = 1; + a19 = 2; + a6 = 1; + a21 = 10; + a5 = 6; + a16 = 8; + a9 = 10; + }else{ + a20 = 1; + a26 = 0; + a24 = 0; + a21 = 10; + a9 = 8; + a5 = 5; + a16 = 10; + a4 = 0; + } + return 21; + } else if((((((a17==2)&&((((a2==1)&&(a21==10))&&(a28==1))&&!(a14==1)))||!(a13==1))&&(a9==9))&&(((a16==7)&&(((!(a18==1)&&(!(a24==1)&&(!(a7==1)&&(((a5==5)||(a5==6))&&(input==1)))))&&(a1==14))&&(a19==5)))&&!(a20==1)))){ + a28 = 1; + a5 = 6; + a1 = 12; + a13 = 1; + a9 = 7; + a20 = 1; + a19 = 4; + a16 = 9; + a21 = 11; + return 21; + } else if((((a19==2)&&((a14==1)||((a8==1)||(((((a3==1)||(a18==1))&&(a9==11))&&!(a24==1))&&!(a27==1)))))&&((a21==11)&&((((a3==1)&&((((input==3)&&((a5==4)||(a5==5)))&&(a20==1))&&(a16==10)))&&(a1==12))&&(a17==2))))){ + a5 = 4; + a0 = 0; + a16 = 7; + a9 = 7; + a19 = 1; + a14 = 0; + a21 = 10; + return -1; + } else if(((!(a2==1)||((a19==4)&&((!(a0==1)&&(a13==1))&&(a16==10))))&&((a13==1)&&(((a6==1)&&((a21==11)&&((((a17==2)&&(((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))&&(input==4))&&(a20==1)))&&(a1==13))&&!(a8==1))))&&!(a0==1))))){ + a18 = 0; + a19 = 1; + a1 = 12; + a21 = 10; + a28 = 1; + a9 = 7; + a16 = 7; + a8 = 0; + a5 = 4; + return -1; + } else if((((a9==7)&&(!(a8==1)&&(((a1==14)&&((a21==10)&&((a23==1)&&(a17==2))))&&!(a7==1))))&&((a16==7)&&((a19==5)&&(((!(a27==1)&&((a12==1)&&(!(a8==1)&&(!(a20==1)&&(input==1)))))&&(a5==6))&&!(a27==1)))))){ + a12 = 1; + a1 = 12; + a20 = 1; + a19 = 1; + a5 = 4; + a3 = 1; + return -1; + } else if(((((a21==10)&&((a0==1)||(((((!(a24==1)&&(a3==1))&&!(a18==1))&&(a16==8))&&(a1==14))&&(a19==1))))&&(a5==5))&&((((a11==1)&&((a20==1)&&(!(a18==1)&&((a17==2)&&(input==3)))))&&!(a7==1))&&(a9==9)))){ + a16 = 7; + a5 = 4; + a9 = 7; + a8 = 0; + a11 = 1; + a1 = 12; + return -1; + } else if((((a1==12)&&((((!(a28==1)||((a19==5)&&(a13==1)))&&(a17==2))||(a27==1))&&(a28==1)))&&((((a21==11)&&(((a20==1)&&(((input==3)&&(((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))&&(a11==1)))&&!(a26==1)))&&(a16==10))&&!(a8==1)))){ + a1 = 14; + a21 = 10; + a2 = 1; + a9 = 9; + a19 = 2; + a3 = 1; + a5 = 5; + a0 = 0; + a16 = 7; + return 21; + } else if((((((((((a1==14)&&((input==3)&&(a19==2)))&&!(a20==1))&&(a9==11))&&(a16==10))&&(a23==1))&&!(a7==1))&&(a12==1))&&((((((a17==2)&&((a12==1)&&(a21==10)))&&(a5==6))&&(a6==1))&&(a2==1))&&(a12==1)))){ + if((a9==9)){ + a16 = 7; + a22 = 1; + a0 = 1; + a1 = 12; + a19 = 1; + a9 = 10; + a20 = 1; + a25 = 0; + }else{ + a10 = 0; + a16 = 7; + a19 = 1; + a20 = 1; + a25 = 0; + a24 = 1; + a5 = 5; + a9 = 10; + } + return -1; + } else if(((!(a18==1)&&((!(a20==1)&&(((a1==13)&&(a3==1))&&(a19==2)))&&(a3==1)))&&(((a2==1)&&(((!(a26==1)&&(((a21==11)&&(((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))&&(input==1)))&&(a16==9)))&&(a17==2))&&(a12==1)))&&(a2==1)))){ + a22 = 0; + a19 = 4; + a16 = 8; + a5 = 5; + a9 = 8; + a10 = 1; + return 25; + } else if(((((a21==11)&&((a17==2)&&(((((input==6)&&(((a9==7)&&((a5==4)&&(a1==13)))||(((a9==11)&&((a5==5)&&(a1==12)))||(((a1==12)&&(a5==6))&&(a9==11)))))&&!(a18==1))&&!(a26==1))&&(a11==1))))&&!(a26==1))&&((((a19==2)&&(((a16==9)&&(a6==1))&&!(a20==1)))||!(a12==1))||!(a3==1)))){ + a9 = 11; + a16 = 11; + a5 = 5; + a20 = 1; + a26 = 1; + a8 = 1; + a21 = 12; + a1 = 13; + a22 = 1; + a19 = 1; + return -1; + } else if((((a1==14)&&(((a23==1)&&(((a20==1)&&((a16==7)&&((a17==2)&&(input==6))))&&!(a18==1)))&&(a19==2)))&&(!(a11==1)||((a23==1)&&((a5==5)&&((!(a23==1)||((!(a23==1)||(a6==1))&&(a21==12)))&&(a9==10))))))){ + a1 = 12; + a5 = 4; + a2 = 1; + a9 = 7; + a19 = 1; + a11 = 1; + a21 = 10; + a28 = 1; + return -1; + } else if(((!(a2==1)&&((a26==1)&&(((a9==9)&&((a19==2)&&(((a17==2)&&(((a5==4)||(a5==5))&&(input==6)))&&(a21==12))))&&(a16==8))))&&(!(a11==1)&&(!(a28==1)&&(((((a12==1)&&(a0==1))&&(a26==1))&&(a1==13))&&(a20==1)))))){ + a16 = 7; + a9 = 8; + a0 = 1; + a21 = 10; + a27 = 1; + a3 = 0; + a1 = 12; + a5 = 4; + return -1; + } else if((((((((((((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7))))&&(input==3))&&(a20==1))&&!(a26==1))&&(a19==4))&&!(a26==1))&&!(a18==1))&&!(a26==1))&&((!(a14==1)&&((((a1==12)&&((a16==10)&&(a23==1)))&&(a17==2))&&(a21==11)))||!(a6==1)))){ + a5 = 4; + a19 = 1; + a9 = 7; + a12 = 1; + a6 = 1; + a21 = 10; + a23 = 1; + a16 = 7; + return -1; + } else if(((!(a27==1)&&(!(a26==1)&&(((!(a26==1)&&(((a9==10)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4)))&&(a20==1)))&&(a28==1))&&!(a4==1))))&&(((a16==9)&&((((a19==2)&&((a17==2)&&(a13==1)))&&(a21==10))&&!(a7==1)))&&(a1==12)))){ + a19 = 1; + a16 = 7; + a24 = 0; + a11 = 1; + a9 = 7; + a8 = 0; + a5 = 4; + return -1; + } else if((((a5==6)&&(((a11==1)&&(a27==1))&&(a9==9)))&&((a21==11)&&((a20==1)&&((a19==5)&&(((!(a3==1)&&(((a8==1)&&(!(a11==1)&&(((a16==11)&&(input==6))&&(a18==1))))&&(a14==1)))&&(a17==2))&&(a1==13))))))){ + a20 = 0; + a25 = 1; + a28 = 0; + a9 = 8; + a16 = 8; + a1 = 14; + a5 = 5; + a19 = 4; + a15 = 1; + return -1; + } else if((((a3==1)&&((a23==1)&&(((a17==2)&&(!(a0==1)&&((a20==1)&&((a5==5)&&(input==5)))))&&(a16==11))))&&((((a24==1)||(((a26==1)||((a2==1)&&((a21==12)&&(a13==1))))&&(a1==13)))&&(a19==5))&&(a9==11)))){ + a16 = 7; + a5 = 4; + a1 = 12; + a27 = 0; + a9 = 7; + a18 = 0; + a4 = 0; + a21 = 10; + a19 = 1; + return -1; + } else if((((a23==1)&&(!(a8==1)&&((a21==11)&&((a19==5)&&((a1==14)&&(!(a18==1)&&((a2==1)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6))))))))))&&(((a9==10)&&(((((a11==1)&&(a16==9))||!(a3==1))&&(a20==1))&&(a17==2)))&&!(a0==1)))){ + a11 = 1; + a16 = 7; + a1 = 12; + a19 = 1; + a21 = 10; + a8 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if(((((a16==7)&&(!(a12==1)||((a13==1)&&((a0==1)||(a11==1)))))&&(a21==11))&&(((((!(a0==1)&&((input==6)&&(((((a9==11)&&((a5==5)&&(a1==14)))&&(a19==1))||((((a1==14)&&(a5==6))&&(a9==11))&&(a19==1)))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==2)))))&&!(a4==1))&&(a12==1))&&(a20==1))&&(a17==2)))){ + a6 = 1; + a9 = 7; + a11 = 1; + a1 = 12; + a21 = 10; + a5 = 4; + a19 = 1; + a3 = 1; + return -1; + } else if(((((a9==7)&&(((a21==12)&&(((a26==1)&&((a1==14)&&(((a2==1)&&(a20==1))&&(a16==9))))&&(a18==1)))&&(a0==1)))&&!(a28==1))&&((a27==1)&&(((a17==2)&&((((a5==4)||(a5==5))&&(input==3))&&(a19==3)))&&(a27==1))))){ + a11 = 0; + a9 = 8; + a5 = 6; + a19 = 1; + a26 = 1; + a13 = 0; + a16 = 8; + return -1; + } else if((((a17==2)&&((a2==1)&&!(a4==1)))&&((a21==10)&&((((a20==1)&&((a12==1)&&((((a19==4)&&(((((input==5)&&((a5==5)||(a5==6)))&&(a12==1))&&(a6==1))&&(a9==9)))&&!(a26==1))&&!(a18==1))))&&(a16==11))&&(a1==14))))){ + a5 = 4; + a9 = 7; + a7 = 0; + a4 = 0; + a2 = 1; + a16 = 7; + a1 = 12; + a19 = 1; + return -1; + } else if(((((a6==1)&&(((a5==5)&&((a20==1)&&((a16==9)&&(((input==3)&&(a21==12))&&(a17==2)))))&&(a13==1)))&&(a28==1))&&((a8==1)||((a7==1)||((((a19==4)&&((a1==13)&&(a2==1)))&&!(a7==1))&&(a9==10)))))){ + a19 = 1; + a16 = 7; + a14 = 0; + a5 = 4; + a21 = 10; + a23 = 1; + a1 = 12; + a9 = 7; + a4 = 0; + return -1; + } else if((((((a12==1)&&((a7==1)||(((a20==1)&&(((a19==2)&&((a11==1)&&(a2==1)))||(a26==1)))&&(a9==9))))&&(a5==5))&&(a16==11))&&((a17==2)&&(((a21==12)&&(((input==6)&&(a1==14))&&!(a18==1)))&&(a6==1))))){ + a16 = 7; + a9 = 7; + a12 = 1; + a19 = 1; + a1 = 12; + a26 = 0; + a21 = 10; + a8 = 0; + a5 = 4; + return -1; + } else if(((((a9==11)&&((a16==9)&&(!(a26==1)&&(((a21==10)&&(((a20==1)&&(input==3))&&(a5==6)))&&(a19==5)))))&&(a17==2))&&((!(a26==1)&&(!(a26==1)&&((!(a3==1)||(!(a6==1)||(a23==1)))&&(a2==1))))&&(a1==14)))){ + a8 = 0; + a3 = 1; + a0 = 0; + return 26; + } else if(((((a3==1)&&(((a16==9)&&((a17==2)&&(!(a20==1)&&((a21==11)&&((input==4)&&(a5==5))))))&&(a11==1)))&&(a6==1))&&((((!(a3==1)||((a9==7)&&((a23==1)||!(a3==1))))&&(a19==1))||!(a2==1))&&(a1==13)))){ + a20 = 1; + a27 = 1; + a1 = 12; + a21 = 10; + a9 = 9; + a25 = 1; + a16 = 7; + a19 = 2; + return 21; + } else if((((a28==1)&&(((a17==2)&&((a6==1)&&(((a9==10)&&((!(a0==1)&&((a16==7)&&((input==1)&&(a19==3))))&&!(a24==1)))&&(a11==1))))&&!(a26==1)))&&((a21==12)&&((a5==6)&&(!(a20==1)&&((a3==1)&&(a1==13))))))){ + a26 = 0; + a9 = 7; + a5 = 4; + a23 = 1; + a21 = 10; + a1 = 12; + a28 = 1; + a20 = 1; + a19 = 1; + return -1; + } else if(((!(a14==1)&&(((a20==1)&&((a5==5)&&(((a16==11)&&((input==5)&&(a21==11)))&&!(a26==1))))&&(a28==1)))&&((a14==1)||((a19==2)&&((((a28==1)&&(((a12==1)&&!(a24==1))&&(a9==9)))&&(a1==13))&&(a17==2)))))){ + a1 = 12; + a19 = 1; + a9 = 10; + a7 = 0; + a14 = 0; + a6 = 1; + a21 = 12; + return 26; + } else if((((((((((a19==4)&&((a6==1)&&((!(a20==1)&&((input==1)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11)))))&&(a16==10))))&&(a28==1))&&(a17==2))&&(a1==12))&&!(a24==1))&&(a11==1))&&(a12==1))&&(((a3==1)&&(a21==11))||(a14==1)))){ + a9 = 11; + a8 = 1; + a1 = 14; + a5 = 5; + a29 = 0; + a23 = 0; + a19 = 5; + a20 = 1; + return 21; + } else if((((a23==1)&&((a12==1)&&(!(a11==1)||((((a11==1)&&(a12==1))&&(a19==3))&&(a21==11)))))&&(!(a24==1)&&((((((((input==5)&&(a16==9))&&(a1==14))&&!(a0==1))&&(a20==1))&&(a9==7))&&(a5==6))&&(a17==2))))){ + a20 = 0; + a16 = 8; + a9 = 10; + a21 = 10; + a12 = 1; + a13 = 1; + a6 = 1; + a1 = 12; + return 21; + } else if(((((((!(a20==1)&&(((a9==11)&&((input==6)&&(a16==7)))&&(a11==1)))&&!(a26==1))&&(a19==1))&&(a21==12))&&(a5==6))&&(((a1==12)&&(((!(a7==1)&&((a8==1)||(a11==1)))&&!(a8==1))&&!(a14==1)))&&(a17==2)))){ + a11 = 1; + a19 = 4; + a2 = 1; + a16 = 8; + a5 = 5; + a21 = 11; + a7 = 0; + a9 = 8; + return 21; + } else if(((((a21==11)&&(((a16==10)&&((a17==2)&&(((((((a19==2)&&((a9==7)&&((a1==12)&&(a5==5))))||(((a19==1)&&(((a5==6)&&(a1==14))&&(a9==11)))||(((a9==7)&&((a1==12)&&(a5==4)))&&(a19==2))))&&(input==1))&&(a2==1))&&!(a4==1))&&(a12==1))))&&(a20==1)))&&!(a0==1))&&((a4==1)||((a2==1)&&!(a14==1))))){ + a1 = 14; + a9 = 10; + a5 = 5; + a19 = 4; + a2 = 1; + a16 = 9; + a7 = 0; + return 21; + } else if((((a21==10)&&(((((a2==1)&&(a5==4))&&!(a14==1))&&(a1==13))&&(a17==2)))&&(((!(a18==1)&&((a16==7)&&(!(a14==1)&&(((a9==11)&&(((a20==1)&&(input==1))&&(a2==1)))&&(a19==2)))))&&!(a7==1))&&(a11==1)))){ + a9 = 10; + a5 = 5; + a27 = 0; + a1 = 14; + a19 = 3; + a13 = 1; + a23 = 1; + return 23; + } else if((((a1==13)&&((a21==10)&&((!(a3==1)||(!(a26==1)&&((a13==1)&&((a9==8)&&((a11==1)&&(a2==1))))))&&(a5==6))))&&((!(a18==1)&&((((a17==2)&&((a16==9)&&(input==5)))&&(a19==1))&&(a28==1)))&&(a20==1)))){ + a5 = 4; + a26 = 0; + a16 = 8; + a18 = 0; + a19 = 5; + a0 = 0; + a1 = 12; + return 26; + } else if(((((a8==1)||((!(a12==1)||((a13==1)&&(a9==11)))&&(a3==1)))&&(a13==1))&&((((a12==1)&&(((a21==11)&&(((a16==11)&&((a1==12)&&(((a5==5)||(a5==6))&&(input==3))))&&(a19==1)))&&(a17==2)))&&(a12==1))&&(a20==1)))){ + a16 = 9; + a21 = 12; + a5 = 6; + a9 = 10; + a2 = 1; + a0 = 0; + a27 = 0; + a19 = 3; + return 21; + } else if((((((a9==7)&&((a17==2)&&(((a0==1)||((a12==1)&&!(a8==1)))&&(a16==9))))&&(a1==14))&&(a21==11))&&(((a19==4)&&((((a3==1)&&(((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&!(a26==1)))&&(a6==1))&&(a11==1)))&&(a20==1)))){ + if((a17==2)){ + a16 = 7; + a9 = 10; + a23 = 1; + a20 = 0; + a3 = 1; + a1 = 13; + a5 = 6; + a19 = 1; + a18 = 0; + }else{ + a16 = 8; + a19 = 2; + a4 = 0; + a1 = 12; + a5 = 4; + a11 = 1; + a14 = 0; + } + return -1; + } else if(((((a17==2)&&((a1==13)&&(((a21==11)&&(((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10)))&&(input==6)))&&(a13==1))))&&(a2==1))&&(!(a3==1)||(((a6==1)&&(((!(a20==1)&&((a19==4)&&(a3==1)))&&(a13==1))&&(a16==10)))||(a0==1))))){ + a20 = 1; + a19 = 1; + a21 = 10; + a9 = 11; + a26 = 1; + a5 = 6; + a15 = 1; + a14 = 1; + a16 = 7; + return -1; + } else if(((((((a28==1)&&((input==3)&&(a19==3)))&&(a20==1))&&!(a4==1))&&(a28==1))&&(((a21==10)&&((a1==13)&&(((!(a14==1)&&((a11==1)&&((a26==1)||((a13==1)&&(a9==7)))))&&(a5==5))&&(a16==8))))&&(a17==2)))){ + a1 = 12; + a16 = 7; + a11 = 1; + a19 = 1; + a5 = 4; + a4 = 0; + a12 = 1; + return -1; + } else if(((!(a7==1)&&((((a17==2)&&(((((a1==13)&&(a5==6))&&(a9==11))||(((a5==4)&&(a1==14))&&(a9==7)))&&(input==1)))&&(a12==1))&&(a19==2)))&&((a8==1)||(((a21==12)&&((((a16==9)&&((a6==1)&&(a13==1)))&&(a20==1))||(a26==1)))&&!(a14==1))))){ + a1 = 12; + a19 = 1; + a16 = 7; + a9 = 7; + a13 = 1; + a5 = 4; + a21 = 10; + a2 = 1; + return -1; + } else if(((!(a14==1)&&(!(a7==1)&&((((!(a27==1)&&((a16==9)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==1))))&&(a19==2))&&(a21==11))&&(a17==2))))&&(((!(a12==1)||(((a6==1)&&(a12==1))&&(a1==13)))&&(a20==1))||!(a13==1)))){ + a1 = 12; + a4 = 0; + a16 = 7; + a19 = 1; + a9 = 7; + a21 = 10; + a5 = 4; + a6 = 1; + a24 = 0; + return -1; + } else if(((((((a6==1)&&((a13==1)&&!(a24==1)))||(a18==1))&&!(a20==1))&&(a1==14))&&((((a16==9)&&(!(a27==1)&&((((a17==2)&&((((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7))))&&(input==1)))&&(a6==1))&&!(a18==1))))&&(a21==11))&&(a19==2)))){ + if((a0==1)){ + a1 = 12; + a5 = 4; + a25 = 0; + a19 = 3; + a13 = 0; + a21 = 10; + a9 = 11; + a22 = 0; + }else{ + a2 = 0; + a21 = 10; + a26 = 1; + a5 = 5; + a16 = 7; + a12 = 0; + a9 = 9; + a19 = 1; + a1 = 13; + a20 = 1; + } + return 22; + } else if(((!(a14==1)&&((a21==11)&&(!(a0==1)&&(((a17==2)&&((((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(input==1)))&&!(a8==1)))))&&((a16==10)&&((a1==12)&&((a20==1)&&((((a2==1)&&((a19==1)&&(a23==1)))&&!(a18==1))||!(a6==1))))))){ + a5 = 6; + a16 = 7; + a27 = 0; + a28 = 1; + a9 = 10; + a11 = 1; + a19 = 4; + return -1; + } else if(((((((a8==1)||(a12==1))||(a8==1))||!(a28==1))&&(a1==14))&&((a19==1)&&((a6==1)&&((((a16==7)&&(((a2==1)&&((a20==1)&&((a21==11)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))))&&(a6==1)))&&(a17==2))&&(a9==10)))))){ + a1 = 12; + a16 = 8; + a7 = 0; + a6 = 1; + a5 = 5; + a8 = 0; + a21 = 10; + a19 = 2; + return 25; + } else if((((((a1==13)&&(((a5==5)||(a5==6))&&(input==6)))&&(a16==10))&&(a19==4))&&((!(a28==1)||(((!(a13==1)||(!(a0==1)&&((!(a6==1)||(((a21==11)&&(a11==1))||(a4==1)))&&!(a18==1))))&&!(a20==1))&&(a9==11)))&&(a17==2)))){ + a19 = 1; + a16 = 7; + a21 = 10; + a20 = 1; + a22 = 1; + a5 = 5; + a13 = 0; + return -1; + } else if((((a16==7)&&(!(a18==1)&&((a21==12)&&(!(a23==1)||(((a9==9)&&((a17==2)&&(a13==1)))&&(a20==1))))))&&((!(a26==1)&&((a23==1)&&((a1==12)&&(!(a26==1)&&(((input==1)&&((a5==5)||(a5==6)))&&(a19==1))))))&&!(a14==1)))){ + a23 = 1; + a19 = 4; + a26 = 0; + a5 = 6; + a1 = 13; + a16 = 8; + a7 = 0; + a9 = 7; + return 26; + } else if((((a9==10)&&((a21==10)&&(((a19==4)&&(((((a5==5)&&(input==3))&&!(a27==1))&&(a23==1))&&(a20==1)))&&(a17==2))))&&((a1==13)&&(((a26==1)||(((a14==1)||(!(a28==1)||(a28==1)))&&(a23==1)))&&(a16==7))))){ + a9 = 7; + a19 = 1; + a2 = 1; + a5 = 4; + a1 = 12; + a8 = 0; + a12 = 1; + return -1; + } else if((((!(a0==1)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6))))&&!(a4==1))&&(((a19==3)&&((a24==1)||((((a21==11)&&((!(a2==1)||((((a2==1)&&!(a20==1))&&(a16==8))||(a7==1)))&&(a17==2)))||!(a6==1))&&(a9==10))))&&(a1==12)))){ + a21 = 10; + a14 = 0; + a7 = 0; + a6 = 1; + a19 = 1; + a5 = 4; + a20 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if((((a19==4)&&((((((a17==2)&&(((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5)))&&(input==5)))&&(a16==10))&&(a1==12))&&(a12==1))&&(a6==1)))&&((!(a2==1)||((!(a3==1)||((a14==1)||(!(a20==1)&&(a28==1))))&&!(a26==1)))&&(a21==11)))){ + a4 = 1; + a19 = 1; + a3 = 0; + a1 = 13; + a9 = 10; + a21 = 10; + a16 = 7; + a2 = 0; + a20 = 1; + a5 = 5; + return 21; + } else if((((a9==10)&&((((a19==1)&&(((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&(a1==12)))&&(a28==1))&&(a6==1)))&&((a21==12)&&(((a12==1)&&((((!(a20==1)&&((a2==1)||(a7==1)))||(a18==1))&&(a17==2))&&(a6==1)))&&(a16==7))))){ + a18 = 0; + a13 = 1; + a20 = 1; + a1 = 13; + a19 = 2; + a21 = 10; + a6 = 1; + a5 = 4; + return 21; + } else if((((a9==8)&&((a18==1)||(a13==1)))&&((!(a24==1)&&(((((a16==8)&&(!(a7==1)&&((!(a8==1)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&!(a20==1))&&(a19==2)))&&(a17==2))))&&(a21==10))&&(a1==13))&&!(a0==1)))&&!(a0==1)))){ + a1 = 12; + a20 = 1; + a9 = 7; + a12 = 1; + a16 = 7; + a18 = 0; + a19 = 1; + a7 = 0; + a5 = 4; + return -1; + } else if(((((a20==1)&&(!(a23==1)||((a26==1)||((a1==13)&&(!(a0==1)&&((a21==12)&&((a16==9)&&(a12==1))))))))&&(a17==2))&&(!(a27==1)&&((a28==1)&&((a6==1)&&(((input==3)&&((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4))))&&(a19==3))))))){ + a2 = 1; + a9 = 7; + a5 = 4; + a27 = 0; + a13 = 1; + a1 = 12; + a21 = 10; + a16 = 7; + a19 = 1; + return -1; + } else if(((((((!(a4==1)&&((a19==2)&&(((a5==5)||(a5==6))&&(input==6))))&&(a1==13))&&(a16==10))&&(a9==7))&&(a20==1))&&((!(a7==1)&&((a17==2)&&((a7==1)||((!(a2==1)||((a21==11)&&(a2==1)))||!(a13==1)))))&&!(a7==1)))){ + a16 = 7; + a7 = 0; + a5 = 4; + a1 = 12; + a21 = 10; + a19 = 1; + a4 = 0; + a2 = 1; + return -1; + } else if(((((((a21==12)&&(a12==1))||(a24==1))&&(a17==2))&&!(a20==1))&&(((a2==1)&&((a19==4)&&((!(a26==1)&&(((a6==1)&&(!(a4==1)&&((input==1)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5))))))&&(a1==12)))&&(a3==1))))&&(a16==9)))){ + if((a25==1)){ + a9 = 7; + a5 = 4; + a3 = 0; + a1 = 13; + a15 = 0; + a19 = 3; + }else{ + a5 = 4; + a12 = 0; + a25 = 0; + a16 = 7; + a1 = 13; + a19 = 1; + a2 = 0; + a9 = 9; + a21 = 10; + a20 = 1; + } + return 26; + } else if((((a19==3)&&((a20==1)&&(!(a2==1)||(((!(a18==1)&&((a28==1)&&(a12==1)))&&(a5==4))&&(a17==2)))))&&(((a9==11)&&((a21==12)&&((a2==1)&&(!(a14==1)&&((a6==1)&&((input==6)&&(a1==14)))))))&&(a16==9)))){ + a18 = 0; + a5 = 5; + a3 = 1; + a19 = 2; + a9 = 7; + a7 = 0; + a1 = 12; + return 21; + } else if((((a19==5)&&(!(a20==1)&&((((((a9==7)&&((a21==11)&&(((a13==1)&&(a16==9))&&(a23==1))))||!(a12==1))&&(a6==1))||(a14==1))&&(a17==2))))&&((a1==14)&&((!(a27==1)&&(((a5==5)||(a5==6))&&(input==5)))&&!(a14==1))))){ + if((a23==1)){ + a5 = 5; + a21 = 10; + a19 = 3; + a15 = 0; + a6 = 0; + a2 = 0; + a9 = 8; + a16 = 10; + }else{ + a26 = 1; + a16 = 7; + a1 = 12; + a29 = 1; + a21 = 10; + a19 = 2; + a13 = 0; + a9 = 9; + a20 = 1; + a5 = 5; + } + return -1; + } else if((((a9==7)&&((a19==5)&&(!(a28==1)||((a20==1)&&(((((a16==8)&&((a23==1)&&!(a8==1)))&&(a13==1))&&(a21==11))&&(a17==2))))))&&((a11==1)&&((((a6==1)&&((input==5)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a4==1))&&(a1==13))))){ + a7 = 0; + a1 = 12; + a19 = 1; + a16 = 7; + a12 = 1; + a26 = 0; + a21 = 10; + a5 = 4; + return -1; + } else if((((a5==5)&&(((!(a20==1)&&((a16==10)&&((a8==1)||((a2==1)&&(a21==10)))))||!(a6==1))&&(a17==2)))&&((a28==1)&&(((a9==8)&&(((a23==1)&&((a1==12)&&((a19==4)&&(input==4))))&&!(a7==1)))&&!(a4==1))))){ + a14 = 1; + a29 = 0; + a2 = 0; + a19 = 2; + a1 = 14; + a9 = 9; + a16 = 7; + a20 = 1; + return -1; + } else if(((((a11==1)&&(!(a20==1)&&(((a16==10)&&((a21==11)&&((a2==1)&&(((input==3)&&(((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))))&&!(a4==1)))))&&!(a24==1))))&&!(a27==1))&&((a1==13)&&(((!(a26==1)&&(a13==1))&&(a17==2))&&(a19==1))))){ + a20 = 1; + a16 = 7; + a18 = 1; + a5 = 6; + a4 = 1; + a21 = 10; + a9 = 11; + a1 = 14; + a29 = 0; + return -1; + } else if((((((a19==4)&&((a17==2)&&((((((a9==11)&&((a5==5)&&(a1==13)))||(((a1==13)&&(a5==6))&&(a9==11)))||(((a5==4)&&(a1==14))&&(a9==7)))&&(input==1))&&(a21==10))))&&!(a7==1))&&(a3==1))&&(!(a8==1)&&((((!(a13==1)||((a2==1)&&(a16==7)))&&!(a20==1))&&!(a8==1))||!(a6==1))))){ + a9 = 9; + a13 = 1; + a5 = 6; + a11 = 1; + a20 = 1; + a7 = 0; + a1 = 12; + return -1; + } else if((((a1==12)&&((a17==2)&&(((((a9==11)&&(a11==1))&&!(a27==1))&&(a5==4))&&!(a8==1))))&&((a20==1)&&((!(a27==1)&&(((!(a18==1)&&(((input==4)&&(a21==11))&&!(a4==1)))&&!(a14==1))&&(a19==2)))&&(a16==8))))){ + a11 = 1; + a21 = 10; + a16 = 7; + a23 = 1; + a8 = 0; + a9 = 7; + a19 = 1; + return -1; + } else if((((a20==1)&&((((a16==7)&&(!(a23==1)||((a3==1)&&!(a7==1))))&&(a17==2))&&(a9==10)))&&(((a1==13)&&((a23==1)&&(((a12==1)&&((a19==4)&&((a12==1)&&(((a5==5)||(a5==6))&&(input==4)))))&&(a3==1))))&&(a21==12)))){ + a8 = 0; + a5 = 4; + a21 = 10; + a12 = 1; + a19 = 1; + a9 = 7; + a1 = 12; + return -1; + } else if((((a16==10)&&((((input==3)&&(((a9==7)&&((a5==5)&&(a1==13)))||((((a1==12)&&(a5==6))&&(a9==11))||(((a5==4)&&(a1==13))&&(a9==7)))))&&(a12==1))&&!(a24==1)))&&(((!(a7==1)&&((a19==5)&&(((a21==11)&&(((a13==1)&&(a17==2))&&(a20==1)))||!(a13==1))))&&!(a27==1))||!(a13==1)))){ + a9 = 7; + a27 = 0; + a21 = 10; + a6 = 1; + a11 = 1; + a16 = 7; + a5 = 4; + a19 = 1; + a1 = 12; + return -1; + } else if((((a2==1)&&(!(a18==1)&&(!(a24==1)&&(((a16==9)&&((a2==1)&&(((a17==2)&&((a1==14)&&(((a5==4)||(a5==5))&&(input==6))))&&(a9==8))))&&(a19==5)))))&&(((a4==1)||(((a11==1)||!(a13==1))&&!(a20==1)))&&(a21==11)))){ + a29 = 1; + a21 = 10; + a3 = 0; + a19 = 2; + a20 = 1; + a16 = 7; + a1 = 12; + a12 = 0; + a5 = 5; + a9 = 9; + return 21; + } else if((((!(a18==1)&&(!(a20==1)&&((((a6==1)&&(a2==1))&&(a16==9))&&!(a14==1))))||!(a2==1))&&((a21==12)&&(((a1==14)&&(((a13==1)&&(((a9==11)&&((input==1)&&((a5==4)||(a5==5))))&&!(a26==1)))&&(a19==5)))&&(a17==2))))){ + a19 = 4; + a20 = 1; + a16 = 11; + a5 = 6; + a7 = 1; + a9 = 8; + a1 = 12; + a6 = 0; + a21 = 10; + a15 = 1; + return 25; + } else if((((a11==1)&&(((((a1==13)&&((a23==1)&&((((a19==3)&&((a17==2)&&(input==4)))&&!(a20==1))&&(a9==9))))&&(a21==10))&&(a12==1))&&(a5==5)))&&((a16==9)&&(((a3==1)&&((a13==1)&&(a28==1)))||(a27==1))))){ + a20 = 1; + a22 = 1; + a9 = 8; + a1 = 12; + a16 = 7; + a24 = 1; + a19 = 1; + a15 = 0; + return -1; + } else if(((((a19==2)&&(((a9==10)&&((a1==13)&&((((input==3)&&((a5==5)||(a5==6)))&&(a3==1))&&!(a0==1))))&&(a12==1)))&&(a20==1))&&(!(a23==1)||((a21==10)&&(!(a18==1)&&((a17==2)&&(((a3==1)&&(a16==11))||!(a3==1)))))))){ + a5 = 4; + a26 = 0; + a9 = 7; + a23 = 1; + a8 = 0; + a16 = 7; + a1 = 12; + a19 = 1; + return -1; + } else if((((!(a20==1)&&((a17==2)&&((!(a7==1)&&(!(a8==1)&&(((input==5)&&(((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))))&&!(a18==1))))&&!(a18==1))))&&(a23==1))&&(((!(a6==1)||(((a3==1)&&(a1==14))&&(a16==7)))&&(a21==12))&&(a19==4)))){ + a1 = 12; + a5 = 4; + a4 = 0; + a19 = 1; + a20 = 1; + a26 = 0; + a28 = 1; + a21 = 10; + a9 = 7; + return -1; + } else if(((!(a14==1)&&((((a13==1)&&(((a21==11)&&((a11==1)&&((((a9==11)&&((a5==6)&&(a1==12)))||((a9==7)&&((a1==13)&&(a5==4))))&&(input==5))))&&!(a0==1)))&&!(a18==1))&&(a16==9)))&&(!(a28==1)||((a20==1)&&((a19==4)&&((a3==1)&&(a17==2))))))){ + a16 = 7; + a21 = 10; + a19 = 2; + a9 = 10; + a1 = 13; + a7 = 0; + a0 = 0; + a2 = 1; + a5 = 4; + return 21; + } else if((((((((a19==2)&&(((a3==1)&&((a12==1)||(a14==1)))&&(a1==13)))&&!(a20==1))&&(a21==12))&&!(a7==1))&&(a17==2))&&((a9==7)&&(((a16==9)&&(!(a24==1)&&(!(a24==1)&&((input==4)&&((a5==4)||(a5==5))))))&&!(a27==1))))){ + a20 = 1; + a22 = 1; + a9 = 10; + a1 = 12; + a16 = 7; + a11 = 0; + a5 = 4; + a21 = 10; + return 21; + } else if(((((a6==1)&&((a21==10)&&((a17==2)&&(((a4==1)||((a16==7)&&((a20==1)&&(a28==1))))||(a0==1)))))&&(a5==4))&&((a1==12)&&((((!(a18==1)&&((input==3)&&(a9==7)))&&(a2==1))&&!(a18==1))&&(a19==5))))){ + a9 = 9; + a19 = 1; + a1 = 14; + a11 = 1; + a21 = 12; + a14 = 0; + a6 = 1; + return 25; + } else if((((((!(a26==1)&&(a11==1))||!(a13==1))&&!(a0==1))&&(a19==1))&&((a17==2)&&((((a16==9)&&(!(a26==1)&&(((((((a9==11)&&((a5==5)&&(a1==12)))||((a9==11)&&((a5==6)&&(a1==12))))||((a9==7)&&((a5==4)&&(a1==13))))&&(input==5))&&!(a27==1))&&(a20==1))))&&(a21==12))&&!(a8==1))))){ + a19 = 4; + a16 = 11; + a1 = 12; + a0 = 0; + a21 = 10; + a9 = 10; + a26 = 0; + a12 = 1; + a5 = 4; + return 25; + } else if((((((((a6==1)&&(((((a20==1)&&((a21==12)&&((input==6)&&(a1==14))))&&!(a18==1))&&(a5==4))&&(a19==4)))&&(a16==7))&&(a9==10))&&(a13==1))&&(a3==1))&&((((a11==1)||!(a13==1))&&(a11==1))&&(a17==2)))){ + a9 = 7; + a0 = 0; + a14 = 0; + a19 = 1; + a21 = 10; + a1 = 12; + a26 = 0; + return -1; + } else if(((((a13==1)&&(((a16==8)&&(((a19==3)&&((input==6)&&(a21==10)))&&!(a20==1)))&&(a23==1)))&&(a13==1))&&(((a28==1)&&((a18==1)||((((a5==6)&&((a2==1)&&!(a4==1)))&&(a1==12))&&(a17==2))))&&(a9==7)))){ + a9 = 8; + a26 = 0; + a1 = 13; + a20 = 1; + a11 = 1; + a28 = 1; + a16 = 9; + a19 = 1; + return 22; + } else if((((!(a8==1)&&((((a16==10)&&((a21==10)&&(((((a9==11)&&((a1==14)&&(a5==6)))&&(a19==1))||(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==2)))&&(input==5))))&&(a20==1))&&!(a18==1)))&&!(a24==1))&&(!(a14==1)&&((((a6==1)&&(a17==2))&&!(a8==1))&&!(a14==1))))){ + a1 = 12; + a19 = 1; + a5 = 4; + a9 = 7; + a12 = 1; + a16 = 7; + return -1; + } else if((((((input==1)&&((a5==5)||(a5==6)))&&(a28==1))&&(a3==1))&&((((a16==8)&&(!(a11==1)||((a7==1)||(((a17==2)&&((a12==1)&&(!(a14==1)&&(((a9==9)&&(a12==1))&&!(a20==1)))))&&(a21==11)))))&&(a1==14))&&(a19==4)))){ + a4 = 0; + a14 = 0; + a16 = 10; + a3 = 1; + a5 = 5; + a20 = 1; + a19 = 1; + a21 = 10; + a1 = 12; + a9 = 8; + return 21; + } else if(((((a9==7)&&((((((a11==1)&&(((a1==13)&&(a3==1))&&(a21==12)))||!(a6==1))&&!(a14==1))||!(a12==1))&&!(a8==1)))&&(a17==2))&&((((a19==1)&&(((input==3)&&((a5==4)||(a5==5)))&&(a16==10)))&&(a2==1))&&(a20==1)))){ + a16 = 7; + a8 = 0; + a21 = 10; + a1 = 12; + a5 = 4; + a6 = 1; + a11 = 1; + return -1; + } else if(((((a5==6)&&((a21==12)&&(!(a14==1)&&((a19==3)&&((!(a3==1)||(a11==1))&&(a17==2))))))&&!(a20==1))&&(!(a7==1)&&((((!(a0==1)&&(!(a27==1)&&((a9==8)&&(input==5))))&&(a28==1))&&(a16==7))&&(a1==12))))){ + a0 = 0; + a9 = 7; + a1 = 13; + a19 = 4; + a5 = 5; + a21 = 11; + a12 = 1; + a20 = 1; + a2 = 1; + return 25; + } else if(((((((a4==1)||((!(a11==1)||((a9==9)&&(a11==1)))&&(a20==1)))&&!(a7==1))&&(a1==12))&&(a19==4))&&((a5==5)&&((a13==1)&&(((a12==1)&&((a2==1)&&((a17==2)&&((input==3)&&(a16==7)))))&&(a21==10)))))){ + a5 = 4; + a3 = 1; + a9 = 10; + a21 = 11; + a2 = 1; + a4 = 0; + a1 = 14; + a19 = 3; + return 23; + } else if(((!(a4==1)&&((!(a0==1)&&((a21==10)&&((input==1)&&(((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))))&&(a17==2)))&&((a0==1)||((a1==12)&&(((!(a4==1)&&((a19==5)&&((a16==7)&&(!(a20==1)&&(a13==1)))))||!(a28==1))&&(a6==1)))))){ + a9 = 11; + a14 = 0; + a7 = 0; + a3 = 1; + a5 = 6; + return 25; + } else if(((((a9==9)&&((((a3==1)&&(a23==1))||(a24==1))&&(a16==11)))&&(a19==3))&&(((((a17==2)&&(!(a27==1)&&(((a1==12)&&(!(a7==1)&&((input==3)&&((a5==5)||(a5==6)))))&&!(a20==1))))&&(a11==1))&&(a21==10))&&!(a27==1)))){ + a29 = 1; + a16 = 7; + a5 = 4; + a10 = 0; + a0 = 1; + a20 = 1; + a19 = 1; + return -1; + } else if(((((!(a4==1)&&((a16==7)&&((a13==1)&&(a9==7))))||(a26==1))&&(a3==1))&&(!(a14==1)&&(((a17==2)&&((a28==1)&&((!(a20==1)&&((((input==4)&&((a5==4)||(a5==5)))&&(a19==4))&&(a1==13)))&&(a21==10))))&&!(a0==1))))){ + a19 = 1; + a13 = 1; + a1 = 12; + a11 = 1; + a5 = 4; + a20 = 1; + return -1; + } else if(((((((a17==2)&&((((a3==1)&&!(a0==1))&&(a16==7))&&(a21==11)))||!(a23==1))&&!(a24==1))&&!(a20==1))&&(((((!(a18==1)&&((input==5)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))&&(a1==12))&&(a19==2))&&!(a24==1))&&(a6==1)))){ + a5 = 4; + a13 = 1; + a20 = 1; + a23 = 1; + a19 = 1; + a6 = 1; + a9 = 7; + a21 = 10; + return -1; + } else if((((a1==14)&&((a9==10)&&((a2==1)&&(((a24==1)||(a12==1))&&!(a8==1)))))&&(((a23==1)&&((((a6==1)&&((a17==2)&&((((input==3)&&(a5==4))&&(a21==11))&&(a19==5))))&&!(a20==1))&&!(a4==1)))&&(a16==7)))){ + a12 = 1; + a9 = 8; + a20 = 1; + a11 = 1; + a7 = 0; + a19 = 2; + a5 = 5; + a21 = 10; + a16 = 8; + return 22; + } else if((((((a20==1)&&((((a1==12)&&(!(a2==1)||((a6==1)&&!(a27==1))))&&(a21==10))||!(a12==1)))&&(a19==5))&&(a16==7))&&(!(a4==1)&&(((!(a26==1)&&((((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&(input==6)))&&(a17==2))&&!(a7==1))))){ + a19 = 2; + a3 = 1; + a11 = 1; + a21 = 12; + a9 = 11; + a5 = 4; + return 21; + } else if(((((!(a12==1)&&(!(a28==1)&&((((a24==1)&&(a11==1))&&!(a6==1))&&(a17==2))))&&(a24==1))&&(a19==1))&&((((a20==1)&&((a1==12)&&((a16==7)&&(((input==1)&&((a5==4)||(a5==5)))&&!(a2==1)))))&&(a9==11))&&(a21==12)))){ + a0 = 1; + a9 = 8; + a5 = 4; + a19 = 5; + a23 = 0; + a10 = 0; + return -1; + } else if((((a21==12)&&((((a17==2)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==1)))&&(a3==1))&&(a19==2)))&&((((a20==1)&&((!(a0==1)&&((a1==13)&&(((a2==1)||(a27==1))&&!(a18==1))))||!(a2==1)))||(a27==1))&&(a16==10)))){ + a1 = 12; + a5 = 4; + a16 = 8; + a27 = 0; + a21 = 10; + a4 = 0; + a20 = 0; + a9 = 11; + a19 = 5; + a13 = 1; + return 21; + } else if(((!(a8==1)&&(!(a14==1)&&((((((a19==1)&&(((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))&&(input==4)))&&!(a20==1))&&(a16==9))&&(a1==13))&&!(a18==1))))&&(!(a11==1)||(((((a6==1)&&(a21==12))&&(a17==2))||!(a11==1))||(a14==1))))){ + a16 = 7; + a21 = 10; + a2 = 0; + a20 = 1; + a5 = 5; + a9 = 9; + a12 = 0; + a27 = 1; + return -1; + } else if(((((a2==1)&&((((!(a18==1)&&((input==3)&&((a5==4)||(a5==5))))&&(a11==1))&&!(a26==1))&&(a1==13)))&&(a21==11))&&(((a17==2)&&(!(a20==1)&&(((((a12==1)&&(a16==7))&&(a19==2))&&(a13==1))||(a27==1))))&&(a9==10)))){ + a9 = 7; + a5 = 4; + a12 = 1; + a21 = 10; + a1 = 12; + a19 = 1; + a20 = 1; + a11 = 1; + return -1; + } else if((((!(a18==1)&&(((a8==1)||(((a1==13)&&(a2==1))||!(a12==1)))&&(a20==1)))&&(a21==11))&&(((a5==4)&&(((a17==2)&&((a19==4)&&((a13==1)&&(((input==5)&&(a9==8))&&!(a8==1)))))&&!(a4==1)))&&(a16==9)))){ + if((a4==1)){ + a0 = 0; + a13 = 1; + a1 = 12; + a11 = 1; + a5 = 5; + a16 = 8; + a20 = 0; + }else{ + a16 = 7; + a9 = 10; + a7 = 0; + a3 = 1; + a21 = 10; + a19 = 2; + a27 = 0; + } + return 21; + } else if((((a7==1)||(((a1==14)&&((a5==6)&&((a21==10)&&(!(a23==1)||(((a17==2)&&(!(a3==1)||(a11==1)))||!(a3==1))))))&&!(a14==1)))&&((a20==1)&&(((((a19==5)&&(input==1))&&(a9==11))&&(a16==10))&&!(a4==1))))){ + a19 = 1; + a16 = 7; + a14 = 0; + a9 = 7; + a1 = 12; + a6 = 1; + a5 = 4; + return -1; + } else if((((a28==1)&&((a1==12)&&((a21==12)&&((!(a18==1)&&((((input==1)&&(((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))))&&!(a27==1))&&!(a7==1)))&&(a12==1)))))&&((a3==1)&&((a16==10)&&((a19==5)&&(((a2==1)&&(a17==2))&&(a20==1))))))){ + a3 = 1; + a16 = 7; + a9 = 7; + a24 = 0; + a0 = 0; + a5 = 4; + a19 = 1; + a21 = 10; + return -1; + } else if(((((((a1==13)&&((a21==11)&&((!(a20==1)&&((a8==1)||(((a17==2)&&(a12==1))&&(a16==10))))||!(a28==1))))&&!(a8==1))||!(a13==1))||(a4==1))&&((((input==4)&&((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4))))&&(a19==2))&&!(a26==1)))){ + a21 = 10; + a12 = 0; + a19 = 1; + a15 = 1; + a16 = 7; + a5 = 4; + a9 = 10; + a20 = 1; + a1 = 12; + return -1; + } else if((((a19==4)&&((a16==7)&&(((a21==10)&&(!(a28==1)&&(!(a12==1)&&((input==3)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5)))))))&&(a27==1))))&&((a17==2)&&((a20==1)&&(!(a11==1)&&(((a1==13)&&((a23==1)&&(a7==1)))&&(a7==1))))))){ + a29 = 0; + a1 = 12; + a19 = 2; + a28 = 0; + a5 = 6; + a15 = 1; + a9 = 9; + return 22; + } else if(((!(a13==1)||((a23==1)&&(a11==1)))&&(((a17==2)&&((a19==3)&&((((((((input==4)&&(((a9==7)&&((a1==13)&&(a5==4)))||(((a9==11)&&((a1==12)&&(a5==5)))||(((a5==6)&&(a1==12))&&(a9==11)))))&&(a6==1))&&!(a0==1))&&!(a4==1))&&(a28==1))&&(a20==1))&&(a16==8))))&&(a21==11)))){ + a1 = 12; + a3 = 1; + a28 = 1; + a19 = 1; + a5 = 4; + a0 = 0; + a21 = 10; + a9 = 7; + a16 = 7; + return -1; + } else if((((a16==9)&&(((a5==4)&&((((a6==1)&&(a11==1))&&(a6==1))&&(a2==1)))&&(a1==13)))&&((a19==5)&&((a9==8)&&((a17==2)&&((a20==1)&&(((((input==5)&&(a21==10))&&!(a26==1))&&(a28==1))&&(a11==1)))))))){ + a19 = 1; + a1 = 12; + a24 = 0; + a28 = 1; + a9 = 7; + a13 = 1; + a16 = 7; + return -1; + } else if((((a16==7)&&((a21==10)&&((((((a19==3)&&((a9==11)&&((a1==14)&&(a5==6))))||((a19==4)&&((a9==7)&&((a5==4)&&(a1==12)))))&&(input==4))&&(a23==1))&&(a28==1))))&&((a17==2)&&((a7==1)||(((((a11==1)||(a4==1))&&!(a20==1))&&(a6==1))||!(a6==1)))))){ + a16 = 8; + a21 = 12; + a1 = 13; + a19 = 5; + a5 = 6; + a2 = 1; + a9 = 10; + a20 = 1; + a27 = 0; + return 22; + } else if((((a20==1)&&(((a16==11)&&(((a0==1)||((a3==1)&&((a28==1)&&(a1==13))))&&(a9==7)))&&(a17==2)))&&((((((a19==5)&&(!(a4==1)&&((input==3)&&((a5==4)||(a5==5)))))&&(a23==1))&&(a12==1))&&(a12==1))&&(a21==10)))){ + a11 = 1; + a16 = 7; + a24 = 0; + a1 = 12; + a19 = 1; + a18 = 0; + a5 = 4; + return -1; + } else if(((((!(a23==1)||((a6==1)&&(!(a27==1)&&(!(a13==1)||(((a2==1)&&(a17==2))&&(a21==11))))))&&(a19==3))&&(a23==1))&&((a5==6)&&(!(a4==1)&&((a20==1)&&(((a16==11)&&((a1==13)&&(input==3)))&&(a9==10))))))){ + a26 = 0; + a19 = 1; + a5 = 4; + a3 = 1; + a21 = 10; + a16 = 7; + a1 = 12; + a7 = 0; + a9 = 7; + return -1; + } else if(((((a6==1)&&(((((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))&&(input==4))&&(a19==1))&&!(a27==1)))&&!(a14==1))&&(((a17==2)&&(((a1==14)&&((a16==11)&&((a20==1)&&((a21==12)&&((a3==1)||(a0==1))))))&&!(a7==1)))&&(a11==1)))){ + a16 = 7; + a9 = 7; + a1 = 12; + a11 = 1; + a27 = 0; + a18 = 0; + a21 = 10; + a5 = 4; + return -1; + } else if((((a20==1)&&(((((a17==2)&&((a11==1)||!(a13==1)))&&!(a4==1))||(a18==1))&&(a21==11)))&&((((a11==1)&&(((!(a4==1)&&((a16==11)&&((a19==1)&&(input==6))))&&(a9==9))&&(a6==1)))&&(a5==5))&&(a1==13)))){ + a5 = 4; + a19 = 5; + a27 = 0; + a9 = 7; + a4 = 0; + a1 = 14; + a24 = 0; + return 21; + } else if(((((a1==12)&&((a12==1)&&((((((a5==4)||(a5==5))&&(input==5))&&(a19==3))&&(a16==9))&&!(a20==1))))&&!(a26==1))&&((((a2==1)&&((a3==1)&&((((a9==7)&&(a11==1))&&(a17==2))&&(a21==12))))||(a26==1))||(a8==1)))){ + if((a17==3)){ + a5 = 6; + a10 = 0; + a1 = 14; + a16 = 7; + a9 = 9; + a21 = 10; + a19 = 1; + a20 = 1; + }else{ + a9 = 11; + a1 = 13; + a5 = 6; + a21 = 10; + a16 = 7; + a8 = 1; + a24 = 1; + a20 = 1; + a19 = 1; + a29 = 0; + } + return -1; + } else if(((((a17==2)&&((a23==1)&&((((input==1)&&!(a20==1))&&(a2==1))&&!(a24==1))))&&(a5==4))&&((a9==10)&&((((!(a2==1)||((a19==2)&&((a16==7)&&((a13==1)&&(a2==1)))))&&!(a0==1))&&(a1==14))&&(a21==11))))){ + a19 = 3; + a9 = 9; + a2 = 1; + a16 = 9; + a1 = 12; + a27 = 0; + a28 = 1; + a20 = 1; + a21 = 12; + return 21; + } else if((((((a19==5)&&(!(a28==1)||(!(a18==1)&&((a5==4)&&(a6==1)))))&&(a16==9))&&(a9==10))&&(((a13==1)&&((a1==13)&&((a6==1)&&(((a17==2)&&(!(a4==1)&&((a21==12)&&(input==6))))&&!(a14==1)))))&&!(a20==1)))){ + a5 = 5; + a27 = 1; + a16 = 7; + a2 = 0; + a21 = 10; + a20 = 1; + a8 = 1; + a19 = 1; + return -1; + } else if((((a9==9)&&(((a19==2)&&(!(a18==1)&&((((a16==7)&&(a3==1))&&(a12==1))&&(a1==14))))||!(a3==1)))&&(((a21==12)&&(!(a0==1)&&(!(a0==1)&&(((a17==2)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a14==1)))))&&!(a20==1)))){ + a1 = 12; + a26 = 0; + a20 = 1; + a19 = 1; + a21 = 10; + a23 = 1; + a9 = 7; + a0 = 0; + a5 = 4; + return -1; + } else if((((a16==7)&&(((a6==1)&&((((a3==1)&&(((a21==10)&&((a19==1)&&(input==5)))&&(a9==9)))&&(a1==14))&&!(a18==1)))&&(a5==6)))&&((a17==2)&&(!(a20==1)&&((((a23==1)||(a0==1))&&!(a27==1))||(a4==1)))))){ + a23 = 1; + a21 = 11; + a16 = 9; + a2 = 1; + a7 = 0; + a20 = 1; + a19 = 4; + return 21; + } else if((((a9==10)&&((a16==8)&&((((a17==2)&&(!(a7==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5))))))&&(a28==1))&&(a21==11))))&&(((!(a13==1)||(((a11==1)&&(((a3==1)||(a26==1))&&(a20==1)))||!(a11==1)))&&(a1==12))&&(a19==5)))){ + a9 = 7; + a0 = 0; + a16 = 7; + a5 = 4; + a19 = 1; + a13 = 1; + a21 = 10; + return -1; + } else if(((((a1==13)&&(!(a23==1)||(((!(a27==1)&&(a12==1))||!(a3==1))&&!(a24==1))))&&(a21==11))&&((a11==1)&&((((a17==2)&&((a20==1)&&((((a19==5)&&(input==3))&&(a9==8))&&(a16==7))))&&(a5==4))&&(a6==1))))){ + a9 = 7; + a1 = 12; + a6 = 1; + a14 = 0; + a7 = 0; + a19 = 1; + a21 = 10; + return -1; + } else if((((((a5==6)&&((a19==4)&&(((a2==1)&&((a21==10)&&(!(a20==1)&&(input==1))))&&(a3==1))))&&(a9==9))&&!(a0==1))&&(((a16==11)&&(((a1==13)&&(!(a7==1)&&((a12==1)&&(a17==2))))||!(a23==1)))||!(a13==1)))){ + a27 = 1; + a1 = 14; + a16 = 10; + a20 = 1; + a11 = 0; + a23 = 0; + a5 = 4; + a9 = 10; + return 22; + } else if(((!(a7==1)&&((((a2==1)&&((((a17==2)&&(((a5==5)||(a5==6))&&(input==1)))&&!(a20==1))&&(a9==8)))&&(a16==8))&&!(a4==1)))&&(((a19==2)&&(((((a21==10)&&(a12==1))||!(a2==1))&&(a1==12))&&(a28==1)))&&!(a0==1)))){ + a1 = 13; + a26 = 0; + a14 = 0; + a21 = 12; + a20 = 1; + a19 = 5; + a9 = 10; + a5 = 5; + return 22; + } else if((((a21==10)&&(((a1==14)&&((((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))&&(input==1))&&(a16==9)))&&!(a20==1)))&&((((((a24==1)||((((a18==1)||(a28==1))&&!(a0==1))&&(a19==1)))&&(a28==1))&&(a17==2))||(a24==1))||!(a2==1)))){ + if((a27==1)){ + a1 = 13; + a16 = 7; + a10 = 1; + a15 = 0; + a9 = 8; + a20 = 1; + a5 = 4; + }else{ + a7 = 1; + a12 = 0; + a19 = 2; + a23 = 0; + a5 = 5; + a16 = 8; + a9 = 7; + a1 = 13; + } + return -1; + } else if(((((a11==1)&&(((a5==6)&&((!(a26==1)&&(((input==1)&&(a16==11))&&(a11==1)))&&(a12==1)))&&(a9==7)))&&(a19==2))&&((((a1==12)&&((a13==1)&&((a20==1)&&(!(a14==1)&&(a28==1)))))&&(a17==2))&&(a21==11)))){ + a8 = 0; + a5 = 4; + a21 = 10; + a13 = 1; + a6 = 1; + a19 = 1; + a16 = 7; + return -1; + } else if(((!(a11==1)&&((a8==1)&&((a2==1)&&(a20==1))))&&(((a18==1)&&(!(a6==1)&&((a16==7)&&((a17==2)&&((a18==1)&&((a21==12)&&((input==1)&&(((a19==5)&&(((a1==12)&&(a5==5))&&(a9==7)))||((((a9==11)&&((a1==14)&&(a5==6)))&&(a19==4))||((a19==5)&&((a9==7)&&((a1==12)&&(a5==4)))))))))))))&&(a26==1)))){ + a10 = 1; + a14 = 1; + a5 = 6; + a9 = 11; + a1 = 12; + a19 = 1; + a21 = 10; + return -1; + } else if((((a17==2)&&((a23==1)&&((a1==12)&&(!(a4==1)&&(!(a14==1)&&(((a5==4)||(a5==5))&&(input==4)))))))&&(((a21==10)&&((a19==1)&&((a14==1)||(!(a28==1)||((a20==1)&&((!(a18==1)&&(a2==1))&&(a9==10)))))))&&(a16==10)))){ + a9 = 7; + a26 = 0; + a24 = 0; + a18 = 0; + a16 = 7; + a5 = 4; + return -1; + } else if(((!(a20==1)&&((((((a16==7)&&(a11==1))&&!(a7==1))||(a18==1))||(a26==1))&&(a9==9)))&&(((((!(a26==1)&&((a19==3)&&(((input==3)&&((a5==4)||(a5==5)))&&!(a18==1))))&&(a11==1))&&(a17==2))&&(a1==13))&&(a21==10)))){ + a7 = 0; + a1 = 12; + a12 = 1; + a20 = 1; + a5 = 4; + a24 = 0; + a19 = 1; + a9 = 7; + return -1; + } else if((((((a13==1)&&(!(a20==1)&&((a3==1)&&(a21==12))))&&(a13==1))&&(a11==1))&&((a23==1)&&(((a9==10)&&((((a17==2)&&((!(a7==1)&&(((a5==5)||(a5==6))&&(input==3)))&&(a19==2)))&&(a2==1))&&(a1==13)))&&(a16==9))))){ + a16 = 7; + a9 = 7; + a1 = 12; + a2 = 0; + a5 = 5; + a26 = 1; + a20 = 1; + a21 = 10; + a0 = 1; + return -1; + } else if((((a20==1)&&((a19==5)&&((!(a14==1)&&(((a17==2)&&(!(a13==1)||((a24==1)||((a1==13)&&(a12==1)))))||(a18==1)))&&!(a4==1))))&&((a21==12)&&((a9==9)&&((a16==11)&&(!(a27==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))))))){ + a19 = 1; + a16 = 7; + a1 = 12; + a21 = 10; + a27 = 0; + a12 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if((((a5==6)&&((a9==8)&&(((a19==2)&&((a17==2)&&(!(a28==1)||(((a21==11)&&(a28==1))&&(a16==10)))))||!(a11==1))))&&(!(a27==1)&&((a23==1)&&(((((a1==12)&&(input==6))&&(a20==1))&&(a23==1))&&!(a24==1)))))){ + a21 = 10; + a13 = 1; + a2 = 1; + a19 = 5; + a16 = 8; + a5 = 5; + return 25; + } else if(((!(a27==1)&&((((!(a20==1)&&(((a5==5)||(a5==6))&&(input==1)))&&(a9==8))&&(a28==1))&&(a1==12)))&&(((a16==7)&&(!(a4==1)&&((a17==2)&&((((a21==10)&&((a28==1)||!(a3==1)))&&(a19==2))||!(a6==1)))))&&!(a8==1)))){ + a19 = 1; + a3 = 1; + a5 = 4; + a0 = 0; + a20 = 1; + a9 = 7; + a18 = 0; + return -1; + } else if((((a17==2)&&((((a21==11)&&(((a13==1)||!(a28==1))&&!(a18==1)))||(a7==1))&&(a19==5)))&&(((((((a1==13)&&((((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))&&(input==4)))&&(a28==1))&&(a3==1))&&!(a24==1))&&!(a20==1))&&(a16==8)))){ + a6 = 0; + a19 = 1; + a20 = 1; + a1 = 14; + a28 = 0; + a9 = 8; + a5 = 6; + a16 = 7; + a13 = 0; + a21 = 10; + return 25; + } else if(((((a1==12)&&(!(a24==1)&&(((a2==1)&&((a12==1)&&(!(a8==1)&&(((a21==12)&&(input==3))&&(a17==2)))))&&(a13==1))))&&(a9==7))&&((((a16==8)&&(!(a24==1)&&((a2==1)&&(a5==5))))&&(a20==1))&&(a19==4)))){ + a12 = 1; + a7 = 0; + a9 = 8; + a5 = 4; + a21 = 10; + a14 = 0; + a19 = 5; + return 26; + } else if(((((a16==7)&&((!(a14==1)&&(((input==1)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5))))&&(a19==2)))&&(a12==1)))&&(a21==12))&&(((((a13==1)&&((((a23==1)&&!(a20==1))&&(a1==12))&&(a17==2)))&&(a28==1))&&!(a24==1))&&(a13==1)))){ + a19 = 1; + a9 = 7; + a20 = 1; + a5 = 4; + a7 = 0; + a14 = 0; + a21 = 10; + a12 = 1; + return -1; + } else if((((a1==13)&&((a19==4)&&(((a3==1)&&(!(a7==1)&&((((a13==1)&&((input==4)&&(a9==8)))&&(a3==1))&&!(a27==1))))&&(a5==6))))&&(((!(a20==1)&&((a17==2)&&((a3==1)||(a26==1))))&&(a21==12))&&(a16==10)))){ + if((a24==1)){ + a9 = 10; + a1 = 14; + a21 = 11; + a19 = 2; + a5 = 4; + a25 = 0; + a27 = 1; + a15 = 0; + a16 = 7; + }else{ + a23 = 0; + a10 = 0; + a19 = 1; + a21 = 10; + a5 = 4; + a16 = 7; + a6 = 0; + a20 = 1; + a9 = 9; + } + return -1; + } else if((((a4==1)||(!(a18==1)&&(((a17==2)&&(!(a20==1)&&((a19==3)&&(a2==1))))&&(a21==11))))&&((a13==1)&&((((a16==10)&&((((((a5==6)&&(a1==13))&&(a9==11))||((a9==7)&&((a1==14)&&(a5==4))))&&(input==1))&&(a23==1)))&&!(a24==1))&&!(a26==1))))){ + a5 = 4; + a9 = 9; + a1 = 12; + a7 = 1; + a21 = 10; + a25 = 0; + a16 = 7; + a19 = 1; + a20 = 1; + a0 = 1; + return 21; + } else if((((((a23==1)&&((((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))&&(input==4))&&(a17==2)))&&(a12==1))&&(a13==1))&&(((a21==11)&&((a16==7)&&((!(a20==1)&&(((a19==4)&&((a8==1)||(a13==1)))&&(a1==14)))||!(a13==1))))&&(a2==1)))){ + a5 = 4; + a9 = 7; + a19 = 5; + a13 = 1; + a20 = 1; + a1 = 13; + a16 = 8; + a8 = 0; + a21 = 10; + a3 = 1; + return 25; + } else if((((!(a20==1)&&((((a13==1)&&((a11==1)&&(a17==2)))||(a0==1))&&!(a14==1)))&&(a1==13))&&((a21==12)&&(((a6==1)&&(!(a27==1)&&(((a19==1)&&((input==1)&&(((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))))&&(a13==1))))&&(a16==8))))){ + a20 = 1; + a5 = 4; + a16 = 11; + a8 = 1; + a19 = 2; + a9 = 10; + a0 = 1; + a21 = 11; + a7 = 1; + return 26; + } else if(((((!(a26==1)&&((((a2==1)&&(((input==6)&&(a5==5))&&(a6==1)))&&(a2==1))&&!(a26==1)))&&(a17==2))&&(a21==12))&&((((a16==10)&&((((a13==1)&&(a9==7))&&(a11==1))&&(a19==5)))&&(a1==12))&&!(a20==1)))){ + a10 = 1; + a3 = 0; + a9 = 8; + a20 = 1; + a16 = 8; + a11 = 0; + return -1; + } else if((((a1==13)&&(((((input==4)&&((((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))||((a5==4)&&(a9==10))))&&!(a18==1))&&(a17==2))&&(a23==1)))&&((a21==10)&&((a16==10)&&((!(a7==1)&&(!(a20==1)&&((a3==1)&&(((a19==2)&&(a6==1))&&!(a7==1)))))&&(a3==1)))))){ + a5 = 4; + a23 = 0; + a21 = 11; + a16 = 7; + a3 = 0; + a24 = 1; + a19 = 4; + a9 = 10; + return 22; + } else if(((((a9==10)&&((a18==1)||((!(a6==1)||((a18==1)||(!(a4==1)&&(a6==1))))&&(a1==13))))&&(a19==2))&&((a21==12)&&((((a20==1)&&(!(a4==1)&&((a17==2)&&((input==1)&&((a5==5)||(a5==6))))))&&!(a27==1))&&(a16==10))))){ + if((a11==1)){ + a12 = 1; + a16 = 8; + a5 = 4; + a20 = 0; + a21 = 10; + a18 = 0; + a1 = 12; + a9 = 11; + a19 = 5; + a7 = 0; + }else{ + a14 = 0; + a21 = 10; + a16 = 7; + a1 = 14; + a4 = 0; + a5 = 4; + a26 = 0; + } + return 21; + } else if(((((a17==2)&&(((a19==5)&&((a9==8)&&(a6==1)))&&(a5==5)))&&!(a14==1))&&(((a2==1)&&(!(a24==1)&&((!(a8==1)&&((a13==1)&&((((input==5)&&!(a20==1))&&(a1==14))&&(a16==10))))&&(a21==10))))&&!(a0==1)))){ + a8 = 1; + a26 = 1; + a5 = 4; + a16 = 9; + a0 = 1; + a1 = 12; + a19 = 3; + return 25; + } else if((((a21==10)&&(!(a6==1)||(!(a14==1)&&((a18==1)||(((a11==1)&&(((a18==1)||(a2==1))&&(a16==11)))&&(a17==2))))))&&(!(a20==1)&&((((a19==4)&&((a9==10)&&((a1==12)&&(input==1))))&&(a5==5))&&(a2==1))))){ + a6 = 0; + a26 = 1; + a19 = 1; + a9 = 7; + a20 = 1; + a22 = 0; + a16 = 7; + return -1; + } else if((((a1==12)&&(((a17==2)&&((a8==1)||(((((!(a26==1)&&(a28==1))&&(a13==1))&&(a21==11))&&(a16==10))||(a0==1))))&&!(a24==1)))&&((a9==7)&&(((!(a8==1)&&((a19==5)&&(input==6)))&&(a5==5))&&(a20==1))))){ + a11 = 1; + a16 = 7; + a1 = 13; + a21 = 10; + a14 = 0; + a28 = 1; + a9 = 9; + a19 = 2; + return 25; + } else if(((!(a13==1)||((a13==1)&&((!(a8==1)&&(((a11==1)&&(a16==11))&&(a17==2)))&&(a3==1))))&&((((((((a19==3)&&(((a1==12)&&(a5==4))&&(a9==7)))||((((a9==11)&&((a5==5)&&(a1==14)))&&(a19==2))||((a19==2)&&((a9==11)&&((a1==14)&&(a5==6))))))&&(input==6))&&!(a24==1))&&(a20==1))&&(a21==11))&&!(a7==1)))){ + a5 = 4; + a14 = 0; + a8 = 0; + a19 = 1; + a1 = 12; + a16 = 7; + a9 = 7; + a21 = 10; + a18 = 0; + return -1; + } else if((((a17==2)&&(!(a6==1)&&(!(a13==1)&&(((a20==1)&&(((((a16==7)&&(input==5))&&(a21==12))&&!(a23==1))&&(a9==9)))&&(a1==13)))))&&((a19==2)&&(!(a23==1)&&((a5==4)&&((!(a23==1)&&(a3==1))&&!(a2==1))))))){ + a10 = 0; + a9 = 11; + a5 = 5; + a29 = 0; + a7 = 1; + a1 = 12; + a21 = 10; + return -1; + } else if(((!(a2==1)||((a17==2)&&((!(a8==1)&&((a21==10)&&((((a9==11)&&((!(a4==1)&&(a28==1))&&(a1==13)))&&(a20==1))&&(a13==1))))&&(a2==1))))&&((((a16==11)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))&&(a2==1))&&(a19==1)))){ + a13 = 1; + a21 = 11; + a19 = 2; + a1 = 12; + a9 = 7; + a8 = 0; + a27 = 0; + a5 = 6; + return 26; + } else if((((((((a16==8)&&((a2==1)&&(a19==5)))||(a8==1))&&(a20==1))&&(a17==2))||!(a23==1))&&(((a2==1)&&((!(a26==1)&&((a9==7)&&((((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&(a21==11))&&!(a27==1))))&&(a12==1)))&&(a1==13)))){ + a1 = 12; + a28 = 1; + a4 = 0; + a16 = 7; + a19 = 1; + a5 = 4; + a11 = 1; + a21 = 10; + return -1; + } else if((((a2==1)&&((a19==1)&&((a4==1)||((a23==1)||!(a28==1)))))&&((a17==2)&&(((a21==11)&&(((a11==1)&&((((((input==3)&&((a5==5)||(a5==6)))&&(a20==1))&&(a9==7))&&(a23==1))&&!(a14==1)))&&(a1==14)))&&(a16==11))))){ + a1 = 12; + a12 = 1; + a27 = 0; + a16 = 7; + a3 = 1; + a5 = 4; + a21 = 10; + return -1; + } else if(((!(a18==1)&&(((a17==2)&&((((a19==4)&&((a16==11)&&((a5==4)&&(input==4))))&&(a20==1))&&!(a18==1)))&&(a21==12)))&&((((a11==1)&&((((a8==1)||(a13==1))&&(a6==1))&&(a9==11)))&&(a1==12))&&!(a24==1)))){ + a9 = 7; + a16 = 7; + a19 = 1; + a21 = 10; + a27 = 0; + a3 = 1; + a14 = 0; + return -1; + } else if((((!(a13==1)||(((a20==1)&&(!(a18==1)&&((((a11==1)&&(a21==11))&&(a19==5))&&(a1==14))))||!(a23==1)))&&(a17==2))&&((a9==11)&&(!(a0==1)&&(((a16==9)&&(((input==5)&&((a5==4)||(a5==5)))&&!(a26==1)))&&(a13==1)))))){ + a19 = 4; + a16 = 8; + a9 = 8; + a20 = 0; + a5 = 5; + a12 = 1; + a28 = 1; + a7 = 0; + a1 = 12; + return -1; + } else if(((!(a8==1)&&(!(a27==1)&&(((!(a18==1)&&(((a9==8)&&(input==3))&&(a19==3)))&&(a5==4))&&!(a20==1))))&&((a16==8)&&((a1==12)&&(!(a2==1)||((a12==1)&&(((a21==12)&&((a13==1)&&(a17==2)))&&!(a18==1)))))))){ + a18 = 1; + a5 = 5; + a16 = 10; + a6 = 0; + a25 = 0; + a9 = 9; + a1 = 14; + a21 = 11; + return -1; + } else if((((a1==14)&&((a16==10)&&((((a0==1)||(!(a20==1)&&(((a18==1)||(a28==1))||!(a23==1))))&&(a13==1))&&(a21==10))))&&((a5==6)&&(((!(a7==1)&&(((input==3)&&(a19==4))&&(a17==2)))&&!(a4==1))&&(a9==11))))){ + a20 = 1; + a8 = 1; + a7 = 1; + a27 = 1; + a9 = 9; + a16 = 7; + a19 = 1; + return 25; + } else if(((((!(a12==1)||((a8==1)||(a13==1)))&&(a19==4))&&(a16==10))&&((((a9==11)&&(((a21==10)&&(!(a18==1)&&((a13==1)&&(((a11==1)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6))))&&(a12==1)))))&&(a20==1)))&&(a17==2))&&(a1==14)))){ + a2 = 1; + a0 = 0; + a5 = 4; + a21 = 12; + a8 = 0; + a9 = 7; + a16 = 8; + return 22; + } else if(((((a6==1)&&(a5==6))&&(a9==11))&&(!(a20==1)&&((a28==1)&&((((((a1==12)&&((a21==12)&&((a23==1)&&((a23==1)&&((a17==2)&&((a19==2)&&(input==1)))))))&&!(a27==1))&&(a16==10))&&(a3==1))&&!(a27==1)))))){ + a9 = 8; + a8 = 1; + a5 = 5; + a29 = 0; + a20 = 1; + a19 = 1; + a21 = 10; + a16 = 7; + a1 = 14; + a14 = 1; + return -1; + } else if((((a19==3)&&((!(a13==1)||(((a11==1)&&(a17==2))&&(a16==8)))&&(a5==5)))&&(((a28==1)&&((((((((input==1)&&!(a20==1))&&!(a26==1))&&(a1==13))&&!(a27==1))&&(a28==1))&&(a9==9))&&(a28==1)))&&(a21==12)))){ + if((a22==1)){ + a1 = 14; + a21 = 11; + a11 = 0; + a9 = 8; + a4 = 1; + a16 = 10; + a29 = 1; + }else{ + a5 = 6; + a1 = 12; + a10 = 0; + a15 = 1; + a4 = 1; + a16 = 10; + a21 = 11; + a20 = 1; + a19 = 5; + } + return 21; + } else if((((((((input==4)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(a13==1))&&(a21==11))&&(a17==2))&&(a1==13))&&(!(a2==1)||(((a19==3)&&((!(a6==1)||(((a16==11)&&((a20==1)&&(a2==1)))||(a7==1)))&&(a2==1)))||!(a3==1))))){ + a18 = 0; + a6 = 1; + a5 = 4; + a3 = 1; + a21 = 10; + a1 = 12; + a16 = 7; + a19 = 1; + a9 = 7; + return -1; + } else if(((((a21==12)&&(((a17==2)&&(!(a13==1)&&(a3==1)))&&(a16==7)))&&!(a20==1))&&(((!(a28==1)&&(((((input==5)&&((((a1==14)&&(a5==4))&&(a9==7))||((((a5==5)&&(a1==13))&&(a9==11))||(((a1==13)&&(a5==6))&&(a9==11)))))&&!(a12==1))&&!(a13==1))&&(a0==1)))&&(a19==3))&&(a4==1)))){ + a19 = 1; + a25 = 0; + a20 = 1; + a9 = 9; + a23 = 0; + a5 = 5; + a1 = 12; + a10 = 0; + a21 = 10; + return -1; + } else if((((((a21==11)&&((a13==1)&&((((a17==2)&&(a6==1))&&!(a14==1))||!(a3==1))))&&(a19==3))&&(a9==9))&&((a16==8)&&((!(a24==1)&&(!(a26==1)&&((a1==14)&&(((input==6)&&((a5==4)||(a5==5)))&&!(a8==1)))))&&(a20==1))))){ + a16 = 7; + a1 = 12; + a23 = 1; + a5 = 4; + a6 = 1; + a11 = 1; + a19 = 1; + a21 = 10; + a9 = 7; + return -1; + } else if((((a12==1)&&((((a21==12)&&(((((((a1==14)&&(a5==6))&&(a9==11))&&(a19==2))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==3)))&&(input==3))&&(a17==2)))&&!(a26==1))&&!(a7==1)))&&((a3==1)&&(!(a8==1)&&(((a27==1)||((a6==1)&&(a16==7)))&&(a20==1)))))){ + a16 = 9; + a19 = 4; + a9 = 11; + a28 = 1; + a1 = 12; + a26 = 0; + a21 = 10; + a0 = 0; + a5 = 4; + return 22; + } else if(((((a21==12)&&(((a12==1)&&(((a13==1)&&(a6==1))||(a24==1)))&&(a16==7)))||(a26==1))&&(((a6==1)&&((!(a4==1)&&((a20==1)&&(((((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6))))&&(input==1))&&(a19==3))))&&(a17==2)))&&(a1==14)))){ + a26 = 0; + a19 = 1; + a9 = 7; + a21 = 11; + a1 = 12; + a16 = 9; + a8 = 0; + a5 = 5; + a18 = 0; + return 26; + } else if((((!(a24==1)&&((a18==1)||((a16==9)&&(!(a8==1)&&((a11==1)||!(a11==1))))))&&(a21==10))&&(((a2==1)&&((a1==13)&&((a5==5)&&(((!(a14==1)&&((a19==5)&&(input==6)))&&(a17==2))&&(a20==1)))))&&(a9==8)))){ + a9 = 10; + a21 = 11; + a5 = 4; + a19 = 2; + a2 = 1; + a16 = 7; + a20 = 0; + a11 = 1; + a27 = 0; + return 21; + } else if(((!(a13==1)||(!(a27==1)&&(!(a24==1)&&((a1==13)&&((a28==1)&&(a20==1))))))&&((((a16==11)&&(!(a0==1)&&(!(a26==1)&&((a17==2)&&(((input==3)&&((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9))))&&(a19==3))))))&&!(a18==1))&&(a21==12)))){ + a0 = 0; + a9 = 7; + a19 = 1; + a1 = 12; + a3 = 1; + a21 = 10; + a16 = 7; + a5 = 4; + a14 = 0; + return -1; + } else if((((((!(a28==1)||(((a13==1)||(a7==1))&&(a16==11)))&&(a20==1))||!(a12==1))&&(a9==9))&&(((((a21==11)&&(((a19==5)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&(a23==1)))&&(a12==1)))&&(a23==1))&&(a1==12))&&(a17==2)))){ + a5 = 6; + a21 = 12; + a9 = 7; + a11 = 1; + a19 = 3; + a2 = 1; + return 21; + } else if((((((a11==1)&&(((a2==1)&&((((a19==3)&&(((a5==6)&&(a1==14))&&(a9==11)))||(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==4)))&&(input==4)))&&(a2==1)))&&(a21==12))&&(a17==2))&&(((((a0==1)||(!(a20==1)&&(a28==1)))||!(a3==1))&&!(a27==1))&&(a16==8)))){ + a16 = 7; + a1 = 12; + a29 = 1; + a21 = 11; + a5 = 5; + a19 = 1; + a0 = 1; + a2 = 0; + a9 = 7; + return 21; + } else if((((a9==8)&&((a13==1)&&((a13==1)&&((((a21==12)&&(input==3))&&(a17==2))&&!(a18==1)))))&&((!(a20==1)&&((a19==1)&&((a16==8)&&(!(a24==1)&&(((a11==1)&&((a26==1)||(a28==1)))&&(a1==13))))))&&(a5==4)))){ + if((a10==1)){ + a20 = 1; + a14 = 1; + a27 = 1; + a5 = 6; + a2 = 0; + a16 = 11; + a1 = 12; + }else{ + a1 = 12; + a9 = 9; + a11 = 0; + a13 = 0; + a19 = 3; + a21 = 11; + } + return -1; + } else if((((a21==10)&&((!(a7==1)&&(((((a13==1)&&(a17==2))&&(a19==2))||!(a13==1))||(a27==1)))&&!(a8==1)))&&((a5==6)&&((a1==13)&&((a9==8)&&(!(a7==1)&&(!(a0==1)&&(((a16==9)&&(input==5))&&(a20==1))))))))){ + if((a12==1)){ + a28 = 1; + a16 = 7; + a6 = 1; + a21 = 12; + a20 = 0; + a19 = 5; + }else{ + a7 = 0; + a16 = 8; + a1 = 12; + a19 = 5; + a9 = 11; + a21 = 12; + a14 = 0; + a18 = 0; + a5 = 5; + } + return 25; + } else if((((a5==4)&&((((!(a0==1)&&((a19==5)&&(a6==1)))&&(a11==1))&&(a1==13))&&(a20==1)))&&((a21==11)&&((((!(a0==1)&&(!(a27==1)&&(((input==5)&&(a9==7))&&(a12==1))))&&(a16==9))&&!(a0==1))&&(a17==2))))){ + a5 = 5; + a16 = 8; + a9 = 9; + a1 = 14; + a21 = 10; + a0 = 0; + a13 = 1; + a2 = 1; + return -1; + } else if(((((((((a2==1)&&(a1==13))||(a8==1))&&(a23==1))||(a0==1))||(a7==1))&&!(a20==1))&&(!(a8==1)&&(((a21==12)&&((a23==1)&&((((input==3)&&((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4))))&&(a17==2))&&(a16==8))))&&(a19==3))))){ + a21 = 11; + a16 = 7; + a19 = 5; + a9 = 11; + a5 = 4; + a2 = 0; + a1 = 14; + a15 = 0; + return -1; + } else if((((a16==8)&&((a21==12)&&((a20==1)&&((a18==1)||((((((a2==1)&&(a9==10))&&(a17==2))||!(a23==1))&&(a12==1))&&(a1==14))))))&&(!(a4==1)&&((a6==1)&&(((((a5==4)||(a5==5))&&(input==4))&&(a19==5))&&!(a14==1)))))){ + a9 = 9; + a14 = 0; + a21 = 10; + a5 = 4; + a11 = 1; + a24 = 0; + return -1; + } else if((((a17==2)&&(((input==1)&&((a5==4)||(a5==5)))&&(a13==1)))&&((!(a20==1)&&(((a9==10)&&((a19==2)&&(((((a12==1)&&((a0==1)||((a1==12)&&(a23==1))))&&!(a4==1))||!(a6==1))&&!(a24==1))))&&(a16==7)))&&(a21==10)))){ + a19 = 1; + a11 = 1; + a12 = 1; + a20 = 1; + a5 = 4; + a9 = 7; + a13 = 1; + return -1; + } else if(((((a1==14)&&((a13==1)&&(a16==11)))&&(a19==5))&&(((a11==1)&&(!(a0==1)&&(((a21==11)&&(((!(a8==1)&&(((input==5)&&((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9))))&&!(a14==1)))&&(a20==1))&&(a17==2)))&&(a11==1))))&&!(a24==1)))){ + a13 = 1; + a21 = 10; + a12 = 1; + a5 = 4; + a11 = 1; + a9 = 7; + a1 = 12; + a19 = 1; + a16 = 7; + return -1; + } else if(((((a16==8)&&((!(a6==1)&&(!(a11==1)&&((a8==1)&&((a17==2)&&(a11==1)))))&&(a26==1)))&&(a19==2))&&((a9==8)&&((((((a21==10)&&(((a5==5)||(a5==6))&&(input==6)))&&!(a23==1))&&(a0==1))&&(a1==14))&&(a20==1))))){ + a21 = 12; + a4 = 1; + a5 = 4; + a27 = 1; + a9 = 11; + a28 = 0; + a16 = 11; + a19 = 1; + a1 = 13; + return 25; + } else if(((!(a8==1)&&((((a17==2)&&((a19==4)&&((a21==11)&&((!(a20==1)&&((a6==1)&&(((a5==4)||(a5==5))&&(input==1))))&&(a9==10)))))&&!(a7==1))&&(a16==7)))&&(((a1==14)&&(((a28==1)||(a27==1))||(a8==1)))&&!(a8==1)))){ + a26 = 0; + a3 = 1; + a21 = 10; + a1 = 12; + a20 = 1; + a7 = 0; + a19 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if(((((a17==2)&&((!(a7==1)&&((a12==1)&&(((a16==10)&&((input==3)&&(((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))))&&(a28==1))))&&(a19==3)))&&(a1==12))&&((a20==1)&&(((((a21==11)&&(a11==1))||!(a12==1))&&!(a18==1))||(a18==1))))){ + a1 = 13; + a19 = 2; + a6 = 1; + a5 = 4; + a8 = 0; + a21 = 10; + a9 = 9; + a16 = 7; + return -1; + } else if(((!(a12==1)&&(!(a13==1)&&(!(a13==1)&&((a5==6)&&(((a9==7)&&((((a4==1)&&(a11==1))&&(a20==1))&&(a19==3)))&&(a21==12))))))&&((!(a3==1)&&((a1==13)&&(((input==5)&&(a17==2))&&(a16==8))))&&(a4==1)))){ + a19 = 1; + a1 = 12; + a5 = 5; + a21 = 10; + a11 = 0; + a14 = 1; + a16 = 7; + a9 = 11; + a23 = 0; + return -1; + } else if((((a2==1)&&(((a16==9)&&((a17==2)&&((a2==1)&&(a23==1))))&&!(a20==1)))&&(!(a4==1)&&(!(a14==1)&&((a13==1)&&(((((((a19==5)&&((a9==11)&&((a5==6)&&(a1==14))))&&(a21==11))||((((a9==7)&&((a1==12)&&(a5==4)))&&(a19==1))&&(a21==12)))||(((((a1==12)&&(a5==5))&&(a9==7))&&(a19==1))&&(a21==12)))&&(input==3))&&!(a8==1))))))){ + a5 = 6; + a1 = 12; + a8 = 1; + a29 = 0; + a16 = 7; + a21 = 10; + a9 = 11; + a19 = 2; + return -1; + } else if((((((a24==1)||(!(a3==1)||(a13==1)))&&!(a20==1))&&(a16==8))&&((a19==2)&&((a5==5)&&((a28==1)&&((((a13==1)&&(!(a0==1)&&((a21==11)&&(((a9==10)&&(input==6))&&(a17==2)))))&&!(a24==1))&&(a1==13))))))){ + a16 = 7; + a19 = 1; + a5 = 4; + a1 = 12; + a9 = 7; + a2 = 1; + a21 = 10; + a28 = 1; + a3 = 1; + a20 = 1; + return -1; + } else if((((((a23==1)&&(!(a14==1)&&(((!(a20==1)&&(((a5==4)||(a5==5))&&(input==4)))&&!(a0==1))&&(a11==1))))&&(a1==14))&&(a21==10))&&(((a17==2)&&((a19==3)&&(!(a27==1)&&(((a2==1)||!(a3==1))&&(a16==8)))))&&(a9==11)))){ + a16 = 7; + a19 = 1; + a1 = 12; + a3 = 1; + a27 = 0; + a9 = 7; + a20 = 1; + a5 = 4; + a0 = 0; + return -1; + } else if((((a19==3)&&(((a16==8)&&((a17==2)&&(!(a18==1)&&((a9==9)&&(((a21==12)&&(a28==1))||!(a11==1))))))&&(a1==12)))&&(!(a20==1)&&(!(a7==1)&&((a13==1)&&((a3==1)&&(!(a0==1)&&(((a5==4)||(a5==5))&&(input==6))))))))){ + if((a24==1)){ + a6 = 0; + a20 = 1; + a16 = 7; + a5 = 6; + a4 = 1; + a21 = 10; + a15 = 0; + a19 = 2; + }else{ + a5 = 4; + a13 = 0; + a16 = 9; + a12 = 0; + a19 = 4; + a11 = 0; + } + return -1; + } else if(((((a1==12)&&((a19==1)&&((!(a6==1)&&(a11==1))&&(a5==6))))&&(a16==7))&&((a9==7)&&((a17==2)&&((!(a28==1)&&(((!(a2==1)&&((!(a20==1)&&(input==6))&&!(a13==1)))&&(a21==10))&&!(a13==1)))&&!(a3==1)))))){ + a9 = 9; + a20 = 1; + a5 = 4; + a13 = 0; + a19 = 2; + a29 = 1; + return 22; + } else if(((((a5==5)&&((a24==1)||((a17==2)&&((a20==1)&&(a23==1)))))&&(a2==1))&&(((((((a9==7)&&((a6==1)&&((a12==1)&&((input==4)&&(a21==12)))))&&(a19==1))&&(a16==7))&&!(a7==1))&&(a1==14))&&!(a24==1)))){ + a12 = 1; + a21 = 10; + a9 = 9; + a11 = 1; + a16 = 9; + a23 = 1; + a1 = 13; + return 26; + } else if((((a17==2)&&((a5==6)&&((((a20==1)&&((a16==7)&&((input==4)&&(a1==14))))&&(a21==12))&&(a3==1))))&&(((a27==1)||((a7==1)||(((!(a0==1)&&(!(a4==1)&&(a2==1)))&&(a19==3))&&(a28==1))))&&(a9==8)))){ + a26 = 0; + a23 = 1; + a1 = 12; + a19 = 1; + a9 = 7; + a12 = 1; + a21 = 10; + a5 = 4; + return -1; + } else if((((a17==2)&&((((a20==1)&&(a28==1))&&!(a0==1))&&(a3==1)))&&((a9==8)&&(((a19==3)&&(!(a4==1)&&((a21==12)&&(!(a8==1)&&(((((a1==13)&&(input==4))&&(a16==10))&&!(a14==1))&&(a5==4))))))&&!(a27==1))))){ + a14 = 0; + a23 = 1; + a19 = 1; + a16 = 7; + a9 = 7; + a21 = 10; + a1 = 12; + a0 = 0; + return -1; + } else if(((!(a20==1)&&(((a21==12)&&(((((input==6)&&(((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))))&&(a2==1))&&(a16==8))&&(a1==13)))&&(a17==2)))&&((!(a12==1)||(((a4==1)||(((a18==1)||(a28==1))&&(a19==5)))&&!(a18==1)))||!(a3==1)))){ + if((a26==1)){ + a19 = 4; + a18 = 1; + a21 = 10; + a16 = 11; + a9 = 9; + a1 = 14; + a20 = 1; + a22 = 1; + a5 = 4; + a28 = 0; + }else{ + a2 = 0; + a19 = 1; + a8 = 1; + a1 = 12; + a16 = 7; + a20 = 1; + a18 = 1; + a9 = 9; + a5 = 6; + a21 = 10; + } + return -1; + } else if(((!(a3==1)||((a28==1)&&((a23==1)&&!(a27==1))))&&((a17==2)&&((a16==11)&&((a20==1)&&(!(a18==1)&&((!(a24==1)&&((input==1)&&(((a21==11)&&((((a1==12)&&(a5==4))&&(a9==7))&&(a19==1)))||(((((a9==11)&&((a1==14)&&(a5==5)))&&(a19==5))&&(a21==10))||((a21==10)&&((((a1==14)&&(a5==6))&&(a9==11))&&(a19==5)))))))&&(a28==1)))))))){ + a19 = 5; + a1 = 14; + a26 = 0; + a5 = 5; + a21 = 11; + a18 = 0; + a9 = 11; + a16 = 9; + a28 = 1; + return 21; + } else if((((a19==1)&&((a1==13)&&(((a16==8)&&((a24==1)||((a7==1)||(a3==1))))&&(a5==4))))&&((a20==1)&&((a3==1)&&(((a2==1)&&((a23==1)&&((a21==10)&&(((input==1)&&(a9==10))&&!(a14==1)))))&&(a17==2)))))){ + a9 = 7; + a11 = 1; + a16 = 7; + a1 = 12; + a14 = 0; + return -1; + } else if((((((((a5==5)||(a5==6))&&(input==3))&&(a1==13))&&!(a14==1))&&(a16==11))&&(((((a20==1)&&((a9==7)&&(((a21==10)&&(((a17==2)&&((a11==1)||(a18==1)))&&(a3==1)))&&(a28==1))))||!(a13==1))||!(a23==1))&&(a19==2)))){ + if((a5==4)){ + a2 = 1; + a16 = 8; + a11 = 1; + a9 = 9; + a20 = 0; + a5 = 5; + a26 = 0; + a19 = 5; + }else{ + a19 = 1; + a16 = 9; + a5 = 6; + a12 = 1; + a11 = 1; + a9 = 8; + a21 = 11; + a1 = 12; + a3 = 1; + } + return -1; + } else if(((((a21==11)&&((!(a4==1)&&((a18==1)||(((a16==7)&&(((a17==2)&&(a28==1))||(a8==1)))&&(a20==1))))||!(a23==1)))&&!(a8==1))&&((((a1==14)&&((((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(input==5)))&&(a19==4))&&(a23==1)))){ + a1 = 12; + a14 = 0; + a5 = 4; + a19 = 5; + a16 = 8; + a9 = 8; + a13 = 1; + a12 = 1; + return 23; + } else if(((((a13==1)&&((((a3==1)&&(!(a24==1)&&(a13==1)))&&(a21==12))&&(a20==1)))||(a8==1))&&(!(a14==1)&&((a16==11)&&((a3==1)&&(((((((a1==14)&&(a5==6))&&(a9==11))&&(a19==3))||((a19==4)&&(((a1==12)&&(a5==4))&&(a9==7))))&&(input==1))&&(a17==2))))))){ + a9 = 8; + a26 = 0; + a6 = 1; + a1 = 13; + a5 = 6; + a7 = 0; + a19 = 5; + return 21; + } else if((((((((a12==1)&&!(a13==1))&&!(a6==1))&&!(a23==1))&&(a21==10))&&(a5==5))&&((((a1==14)&&(!(a2==1)&&((a20==1)&&(((a8==1)&&((a17==2)&&((input==1)&&(a9==8))))&&(a19==4)))))&&(a18==1))&&(a16==7)))){ + a19 = 1; + a5 = 6; + a27 = 1; + a22 = 1; + a2 = 0; + return 21; + } else if(((((a8==1)||(((a17==2)&&(((a20==1)&&((a3==1)&&(a1==12)))&&(a21==10)))&&(a28==1)))&&(a13==1))&&((((!(a26==1)&&(((input==5)&&(((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))))&&(a16==8)))&&(a19==3))&&(a13==1))&&(a12==1)))){ + a21 = 12; + a5 = 5; + a4 = 0; + a18 = 0; + a9 = 11; + a19 = 4; + a16 = 9; + a12 = 1; + a1 = 13; + return 25; + } return calculate_output41(input); + } + + int calculate_output41(int input) { + if((((a23==1)&&(((a9==11)&&((!(a20==1)&&((a1==12)&&(a2==1)))||!(a2==1)))&&!(a4==1)))&&(!(a8==1)&&(((a12==1)&&((a3==1)&&((a21==12)&&((a19==2)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a16==9))))))&&(a17==2))))){ + a9 = 8; + a12 = 0; + a21 = 10; + a8 = 1; + a5 = 5; + a20 = 1; + a10 = 1; + a16 = 7; + return 25; + } else if(((((a21==11)&&((a16==8)&&(((((a1==13)&&(((input==6)&&((a5==5)||(a5==6)))&&!(a4==1)))&&(a17==2))&&(a28==1))&&(a19==1))))&&!(a20==1))&&((((a26==1)||(!(a3==1)||((a9==9)&&(a13==1))))&&!(a24==1))&&!(a4==1)))){ + a9 = 7; + a19 = 2; + a4 = 0; + a16 = 9; + a5 = 5; + a14 = 0; + a20 = 1; + return 23; + } else if(((((a2==1)&&((((input==6)&&(((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))))&&(a19==1))&&(a17==2)))&&(a2==1))&&((a1==13)&&(!(a20==1)&&(((((!(a3==1)||((a21==11)&&(a28==1)))||(a27==1))&&(a16==10))&&(a28==1))&&(a12==1)))))){ + if((a17==3)){ + a1 = 14; + a16 = 7; + a5 = 4; + a21 = 10; + a29 = 1; + a23 = 0; + a9 = 7; + a13 = 0; + a20 = 1; + }else{ + a21 = 10; + a18 = 1; + a16 = 7; + a5 = 4; + a12 = 0; + a20 = 1; + a22 = 0; + a9 = 7; + } + return -1; + } else if((((((a19==3)&&((a5==5)&&(((a17==2)&&((a7==1)||(a13==1)))||!(a6==1))))&&(a6==1))&&!(a27==1))&&(((((a6==1)&&((a1==13)&&(((input==4)&&(a21==10))&&(a9==11))))&&(a20==1))&&(a16==7))&&(a2==1)))){ + a24 = 0; + a0 = 0; + a19 = 1; + a11 = 1; + a5 = 4; + a9 = 7; + a1 = 12; + return -1; + } else if(((((a23==1)&&(((a19==1)&&(!(a11==1)||((a21==11)&&((a1==13)&&(a12==1)))))&&!(a7==1)))&&(a16==7))&&(((a20==1)&&(!(a4==1)&&(!(a14==1)&&((a9==9)&&(!(a7==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))))))&&(a17==2)))){ + a23 = 1; + a21 = 10; + a9 = 7; + a0 = 0; + a5 = 6; + a16 = 8; + a4 = 0; + return 21; + } else if((((a1==12)&&(((a19==4)&&((a6==1)&&(!(a20==1)&&(a28==1))))&&(a21==12)))&&((a16==8)&&(!(a27==1)&&((!(a14==1)&&((!(a0==1)&&(((((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a5==6)&&(a9==10))))&&(input==4))&&!(a26==1)))&&(a17==2)))&&(a23==1)))))){ + if((a18==1)){ + a19 = 5; + a21 = 10; + a11 = 0; + a20 = 1; + a16 = 9; + a5 = 5; + a10 = 0; + a1 = 13; + a2 = 0; + a9 = 9; + }else{ + a20 = 1; + a5 = 6; + a9 = 8; + a29 = 0; + a21 = 10; + a19 = 2; + a7 = 1; + a16 = 7; + } + return 23; + } else if((((((!(a7==1)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&(a9==7))&&(a11==1)))&&(a3==1))&&(a21==10))&&(a17==2))&&((((a16==11)&&((a19==1)&&(((a11==1)&&((a6==1)&&(a11==1)))||(a14==1))))&&(a20==1))&&(a1==12)))){ + a5 = 4; + a27 = 0; + a13 = 1; + a16 = 7; + return -1; + } else if(((((a0==1)||((((a0==1)||((a21==11)&&(a28==1)))&&(a9==9))&&(a19==1)))&&(a2==1))&&((a28==1)&&((((a16==8)&&((a20==1)&&(((a17==2)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))&&(a1==12))))&&!(a26==1))&&!(a27==1))))){ + a16 = 10; + a1 = 14; + a14 = 0; + a11 = 1; + a5 = 4; + a9 = 11; + a21 = 10; + a19 = 2; + a26 = 0; + return 22; + } else if((((a19==3)&&((((a7==1)||(((a2==1)&&(a12==1))||!(a3==1)))&&!(a4==1))&&(a17==2)))&&((a16==8)&&(((a9==7)&&(((a5==4)&&((((input==1)&&(a1==13))&&(a21==10))&&(a2==1)))&&(a23==1)))&&!(a20==1))))){ + a24 = 0; + a21 = 11; + a19 = 5; + a20 = 1; + a27 = 0; + a23 = 1; + a9 = 11; + a16 = 7; + return 23; + } else if((((a4==1)||((a28==1)&&(((!(a2==1)||(a23==1))&&(a16==10))||(a24==1))))&&(!(a18==1)&&((a3==1)&&(((a21==12)&&(((((a1==13)&&((input==6)&&(a19==1)))&&(a17==2))&&(a20==1))&&(a5==6)))&&(a9==9)))))){ + a19 = 2; + a16 = 7; + a21 = 10; + a13 = 1; + a28 = 1; + a5 = 5; + return 25; + } else if(((((((a6==1)&&((a3==1)&&!(a14==1)))&&!(a18==1))&&(a1==14))||(a27==1))&&((a20==1)&&(!(a14==1)&&(((a2==1)&&((a21==11)&&((a16==9)&&(((input==3)&&((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4))))&&(a19==5)))))&&(a17==2)))))){ + a24 = 0; + a9 = 7; + a19 = 1; + a21 = 10; + a5 = 4; + a1 = 12; + a13 = 1; + a16 = 7; + a27 = 0; + return -1; + } else if((((!(a24==1)&&(((a17==2)&&((((a19==4)&&(input==1))&&(a5==4))&&(a1==13)))&&!(a0==1)))&&(a9==8))&&(!(a20==1)&&(((!(a23==1)||((!(a27==1)&&((a28==1)&&(a21==12)))&&!(a8==1)))&&(a16==8))&&(a28==1))))){ + a20 = 1; + a5 = 6; + a15 = 1; + a25 = 1; + a9 = 9; + a2 = 0; + a19 = 2; + return -1; + } else if((((((a19==4)&&((a23==1)&&((a1==12)&&((((input==4)&&((((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4))))&&(a23==1))&&(a16==11)))))&&(a21==10))&&(a3==1))&&(!(a13==1)||(((a27==1)||((a17==2)&&(!(a20==1)&&(a12==1))))||(a18==1))))){ + if((a5==5)){ + a16 = 10; + a21 = 11; + a19 = 3; + a5 = 6; + a9 = 7; + a4 = 1; + a2 = 0; + a20 = 1; + }else{ + a20 = 1; + a0 = 1; + a18 = 1; + a5 = 6; + a16 = 9; + a29 = 0; + a9 = 9; + a21 = 12; + a1 = 13; + } + return -1; + } else if(((((a8==1)||(!(a26==1)&&((a21==11)&&((a28==1)&&(a6==1)))))&&(a9==8))&&((a16==8)&&(((((((((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a20==1))&&(a17==2))&&(a11==1))&&(a19==3))&&(a12==1))&&(a1==12))&&(a13==1))))){ + a28 = 1; + a21 = 10; + a1 = 14; + a19 = 2; + a20 = 1; + a16 = 9; + a5 = 6; + a3 = 1; + a9 = 9; + a2 = 1; + return 21; + } else if((((a16==11)&&((a19==5)&&((a17==2)&&((!(a28==1)||(a3==1))||(a0==1)))))&&((!(a27==1)&&(!(a18==1)&&((((a3==1)&&((a9==11)&&(((a5==4)&&(input==1))&&(a1==14))))&&(a21==10))&&(a12==1))))&&(a20==1)))){ + a24 = 0; + a13 = 1; + a16 = 8; + a9 = 7; + a6 = 1; + return 25; + } else if((((!(a27==1)&&(((((a11==1)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))&&(a23==1))&&(a1==12))&&(a16==9)))&&!(a27==1))&&(((a0==1)||((a20==1)&&(!(a4==1)&&((a17==2)&&(((a6==1)&&(a19==3))&&(a21==10))))))&&(a9==9)))){ + a5 = 5; + a8 = 0; + a19 = 1; + a1 = 14; + a9 = 11; + a7 = 0; + a0 = 0; + a16 = 11; + return 23; + } else if(((((a17==2)&&(((a6==1)&&(a21==12))&&(a16==7)))&&(a9==9))&&(((!(a14==1)&&((!(a14==1)&&((!(a27==1)&&((a11==1)&&(!(a27==1)&&(((a5==5)||(a5==6))&&(input==3)))))&&(a20==1)))&&(a19==5)))&&(a28==1))&&(a1==12)))){ + a21 = 11; + a9 = 7; + a28 = 1; + a19 = 4; + a16 = 9; + a0 = 0; + a5 = 5; + a27 = 0; + return 21; + } else if(((((a17==2)&&(!(a20==1)&&(((a19==1)&&((((a1==12)&&((input==4)&&(a16==7)))&&!(a24==1))&&(a5==5)))&&(a21==10))))&&!(a26==1))&&(!(a28==1)||(((a9==7)&&(((a2==1)||!(a3==1))||!(a28==1)))&&!(a4==1))))){ + a20 = 1; + a13 = 1; + a23 = 1; + a24 = 0; + a5 = 4; + return -1; + } else if((((!(a14==1)&&(((a1==14)&&(a6==1))&&(a21==10)))&&(a16==7))&&(!(a8==1)&&(((a28==1)&&((a20==1)&&((!(a18==1)&&(((a6==1)&&((input==1)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))&&(a17==2)))&&(a19==4))))&&(a12==1))))){ + a13 = 1; + a19 = 5; + a9 = 11; + a14 = 0; + a21 = 11; + a5 = 4; + a3 = 1; + return 23; + } else if((((a21==11)&&((a17==2)&&((a23==1)&&(((a13==1)&&(((a28==1)||(a24==1))&&(a16==11)))&&(a19==1)))))&&((!(a26==1)&&(((a1==13)&&(!(a27==1)&&((input==6)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11))))))&&(a20==1)))&&!(a7==1)))){ + a16 = 7; + a9 = 7; + a6 = 1; + a21 = 10; + a5 = 4; + a18 = 0; + a4 = 0; + a1 = 12; + return -1; + } else if(((((!(a8==1)&&((a16==8)&&((a3==1)&&(a13==1))))&&(a17==2))&&(a19==4))&&((a20==1)&&((((a6==1)&&((a23==1)&&(((((a9==11)&&((a5==6)&&(a1==13)))||((a9==7)&&((a5==4)&&(a1==14))))&&(input==3))&&!(a27==1))))&&(a3==1))&&(a21==11))))){ + a18 = 0; + a5 = 4; + a9 = 7; + a1 = 12; + a0 = 0; + a21 = 10; + a12 = 1; + a19 = 1; + a16 = 7; + return -1; + } else if((((((a9==9)&&(!(a24==1)&&(((a5==5)||(a5==6))&&(input==4))))&&(a17==2))&&!(a24==1))&&((a4==1)||(((a19==1)&&((((a21==12)&&(!(a8==1)&&(((a2==1)&&(a3==1))&&(a16==8))))||(a26==1))&&(a20==1)))&&(a1==12))))){ + a16 = 10; + a14 = 0; + a5 = 6; + a2 = 1; + a9 = 8; + a7 = 0; + a21 = 11; + a1 = 14; + a19 = 4; + return 22; + } else if(((((a12==1)&&((a21==11)&&(((a1==12)&&((a16==10)&&((!(a18==1)&&((a17==2)&&((((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7))))&&(input==3))))&&(a23==1))))&&(a19==5))))&&(a6==1))&&((((a28==1)&&(a12==1))&&(a28==1))&&!(a20==1)))){ + if((a8==1)){ + a1 = 13; + a16 = 8; + a20 = 1; + a9 = 10; + a26 = 1; + a28 = 0; + a27 = 1; + a19 = 3; + a5 = 5; + }else{ + a20 = 1; + a29 = 1; + a16 = 7; + a9 = 11; + a21 = 10; + a19 = 1; + a5 = 6; + a14 = 1; + a3 = 0; + } + return 21; + } else if(((((a17==2)&&((a1==14)&&(((a23==1)&&(a13==1))&&(a2==1))))&&(a12==1))&&(((a6==1)&&((a16==11)&&((a19==3)&&(((a21==12)&&((a6==1)&&((input==6)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))))&&(a20==1)))))&&(a2==1)))){ + a13 = 1; + a19 = 5; + a1 = 12; + a23 = 1; + a18 = 0; + a9 = 11; + a5 = 4; + return 25; + } else if(((!(a26==1)&&((((((a9==10)&&(((a12==1)&&(!(a0==1)&&(((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a21==10))))&&(a19==2)))&&(a17==2))&&(a1==13))&&!(a4==1))&&(a16==7)))&&(((!(a6==1)||(a28==1))&&!(a20==1))||!(a23==1)))){ + a2 = 1; + a20 = 1; + a1 = 12; + a24 = 0; + a19 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if(((((((a8==1)||((a2==1)&&!(a20==1)))&&(a6==1))&&(a19==5))&&(a9==10))&&((a5==4)&&((a17==2)&&(((((!(a7==1)&&(((input==5)&&(a1==12))&&(a16==9)))&&(a23==1))&&(a11==1))&&!(a4==1))&&(a21==10)))))){ + if((a26==1)){ + a25 = 0; + a15 = 0; + a9 = 7; + a16 = 10; + a29 = 1; + a21 = 11; + a1 = 13; + }else{ + a4 = 1; + a20 = 1; + a10 = 0; + a9 = 8; + a5 = 5; + a19 = 2; + a16 = 7; + a22 = 0; + } + return -1; + } else if((((((a1==13)&&(!(a18==1)&&((a17==2)&&(!(a20==1)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6)))))))&&(a11==1))&&(a19==5))&&(((a16==10)&&((((a2==1)&&(((a6==1)&&(a21==11))||(a14==1)))&&(a13==1))&&(a9==8)))||(a18==1)))){ + if((a12==1)){ + a29 = 0; + a16 = 7; + a19 = 1; + a1 = 14; + a9 = 10; + a5 = 6; + a20 = 1; + a22 = 0; + a21 = 10; + a23 = 0; + }else{ + a5 = 5; + a15 = 1; + a16 = 8; + a27 = 1; + a19 = 4; + a29 = 0; + a9 = 10; + a21 = 12; + } + return -1; + } else if((((a1==14)&&((!(a8==1)&&(!(a12==1)||(a28==1)))&&(a21==10)))&&(((a20==1)&&((a19==2)&&((!(a0==1)&&(!(a0==1)&&(!(a7==1)&&(((input==3)&&((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4))))&&(a17==2)))))&&(a16==8))))&&!(a7==1)))){ + a14 = 0; + a19 = 1; + a23 = 1; + a9 = 7; + a5 = 4; + a16 = 7; + a28 = 1; + a1 = 12; + return -1; + } else if((((a9==7)&&((((((a3==1)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&!(a26==1))&&(a1==14))&&(a3==1)))&&(a2==1))&&(a28==1))&&(a16==9))&&(a21==10)))&&((a20==1)&&((a19==2)&&(((a2==1)&&!(a24==1))&&(a17==2)))))){ + a6 = 1; + a16 = 11; + a19 = 1; + a9 = 8; + a5 = 6; + a7 = 0; + a0 = 0; + return 25; + } else if(((((a5==5)&&((a8==1)||(((a28==1)&&!(a0==1))||!(a12==1))))&&(a1==13))&&((((((a20==1)&&(((((input==1)&&(a16==10))&&(a17==2))&&(a19==5))&&(a28==1)))&&(a21==10))&&(a23==1))&&(a9==11))&&(a11==1)))){ + a9 = 8; + a16 = 11; + a18 = 0; + a0 = 0; + a2 = 1; + a21 = 11; + a19 = 1; + return 23; + } else if((((a14==1)||(((a16==7)&&((a17==2)&&(((a24==1)||((a28==1)&&(a3==1)))&&(a9==10))))||(a27==1)))&&(!(a20==1)&&((a3==1)&&((((a21==12)&&(((input==1)&&((a5==5)||(a5==6)))&&(a1==14)))&&(a19==4))&&(a13==1)))))){ + a1 = 13; + a9 = 7; + a21 = 11; + a20 = 1; + a12 = 1; + a26 = 0; + a5 = 4; + a13 = 1; + a16 = 10; + return 25; + } else if((((a18==1)||(!(a18==1)&&(((!(a18==1)&&((a23==1)&&(a17==2)))&&!(a24==1))&&(a20==1))))&&((!(a14==1)&&((((((((a5==4)&&(a1==12))&&(a9==7))&&(a19==4))||(((a19==3)&&(((a5==5)&&(a1==14))&&(a9==11)))||(((a9==11)&&((a5==6)&&(a1==14)))&&(a19==3))))&&(input==6))&&(a16==11))&&!(a7==1)))&&(a21==11)))){ + a0 = 0; + a9 = 7; + a19 = 1; + a4 = 0; + a5 = 4; + a1 = 12; + a16 = 7; + a11 = 1; + a21 = 10; + return -1; + } else if(((!(a12==1)&&(((((a0==1)&&(((((a1==13)&&(a5==5))&&(a9==7))||(((a9==11)&&((a1==12)&&(a5==6)))||((a9==7)&&((a1==13)&&(a5==4)))))&&(input==1)))&&!(a11==1))&&(a20==1))&&(a19==1)))&&((((a4==1)&&((a21==10)&&(((a17==2)&&(a2==1))&&(a16==8))))&&(a18==1))&&(a4==1)))){ + a22 = 0; + a12 = 0; + a2 = 0; + a5 = 5; + a1 = 13; + a9 = 9; + a16 = 7; + return 22; + } else if((((((((a13==1)&&((input==4)&&((a5==6)||((a5==4)||(a5==5)))))&&(a12==1))&&!(a0==1))&&(a1==12))&&(a17==2))&&((a24==1)||(((a9==10)&&((a16==8)&&((((a19==4)&&((a3==1)||!(a3==1)))&&(a21==11))&&(a20==1))))||!(a3==1))))){ + a9 = 7; + a2 = 1; + a16 = 7; + a5 = 4; + a3 = 1; + a19 = 1; + a4 = 0; + a21 = 10; + return -1; + } else if((((a11==1)&&((a16==10)&&((a3==1)&&((a19==3)&&((a13==1)&&((a17==2)&&((a5==4)&&((a11==1)&&((a20==1)&&(input==6))))))))))&&(((((a21==12)&&((a23==1)&&(a9==10)))&&(a1==12))&&!(a27==1))||!(a13==1)))){ + a1 = 14; + a19 = 2; + a24 = 0; + a27 = 0; + a16 = 7; + a21 = 10; + a2 = 1; + return 21; + } else if(((((a17==2)&&((a20==1)&&(!(a26==1)&&(((a16==8)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a19==3)))&&!(a24==1)))))&&(a21==11))&&((((((a28==1)&&(!(a14==1)&&(a23==1)))||(a8==1))||!(a3==1))&&(a9==10))&&(a1==13)))){ + a9 = 7; + a7 = 0; + a1 = 12; + a28 = 1; + a19 = 1; + a21 = 10; + a12 = 1; + a5 = 4; + a16 = 7; + return -1; + } else if((((!(a23==1)&&((a27==1)&&(((a19==2)&&((input==5)&&(((((a1==12)&&(a5==6))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==13))))||(((a1==13)&&(a5==5))&&(a9==7)))))&&(a21==11))))&&!(a6==1))&&(((a20==1)&&((((!(a3==1)&&(a2==1))&&(a16==7))&&!(a6==1))&&(a17==2)))&&(a27==1)))){ + a15 = 1; + a9 = 8; + a1 = 13; + a21 = 10; + a13 = 0; + a25 = 1; + a5 = 5; + a19 = 1; + return 26; + } else if(((((a8==1)||((a19==4)&&(((a1==12)&&((a3==1)&&(a17==2)))&&(a16==7))))&&(a12==1))&&((a28==1)&&(!(a4==1)&&(((a21==10)&&((((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==4))&&(a20==1))&&(a2==1)))&&(a2==1)))))){ + a12 = 1; + a5 = 4; + a19 = 1; + a13 = 1; + a9 = 7; + a4 = 0; + return -1; + } else if(((((a20==1)&&((a11==1)&&((a1==14)&&(((((a19==4)&&(a2==1))&&(a21==11))&&(a23==1))&&(a17==2)))))&&(a5==5))&&((((a9==10)&&((!(a24==1)&&((a16==8)&&(input==4)))&&(a23==1)))&&(a12==1))&&(a2==1)))){ + a5 = 4; + a21 = 10; + a19 = 1; + a16 = 7; + a13 = 1; + a26 = 0; + a7 = 0; + a9 = 7; + a1 = 12; + return -1; + } else if(((((a21==12)&&((a19==1)&&(a12==1)))&&(a9==7))&&((a5==6)&&(((a16==10)&&((((!(a27==1)&&(((a2==1)&&(!(a14==1)&&((input==3)&&(a1==13))))&&(a6==1)))&&!(a26==1))&&!(a26==1))&&!(a20==1)))&&(a17==2))))){ + a16 = 11; + a19 = 4; + a15 = 1; + a20 = 1; + a10 = 1; + a26 = 1; + return -1; + } else if(((((a27==1)||((((((a16==8)&&((a17==2)&&(a6==1)))&&(a1==12))&&(a9==10))&&(a20==1))||!(a2==1)))||!(a3==1))&&((a21==12)&&(((a6==1)&&((!(a24==1)&&((input==3)&&((a5==5)||(a5==6))))&&!(a0==1)))&&(a19==3))))){ + a16 = 7; + a2 = 1; + a5 = 4; + a9 = 9; + a19 = 2; + a6 = 1; + a1 = 13; + a21 = 10; + return -1; + } else if((((a3==1)&&(!(a26==1)&&(!(a24==1)&&((a16==9)&&(!(a4==1)&&(((a19==4)&&((input==5)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))))&&(a1==13)))))))&&(((((a17==2)&&((a4==1)||(a11==1)))&&(a21==12))&&(a20==1))||(a7==1)))){ + a5 = 6; + a1 = 12; + a11 = 1; + a19 = 5; + a9 = 7; + a14 = 0; + a16 = 8; + return -1; + } else if(((((a24==1)||((a28==1)&&(a11==1)))&&(a16==10))&&(((!(a24==1)&&(((!(a24==1)&&((((a1==12)&&((input==1)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))))&&!(a20==1))&&!(a0==1)))&&(a19==5))&&!(a14==1)))&&(a17==2))&&(a21==12)))){ + if((a21==11)){ + a29 = 0; + a9 = 8; + a16 = 7; + a1 = 14; + a25 = 0; + a5 = 5; + a0 = 1; + a20 = 1; + a19 = 1; + a21 = 10; + }else{ + a21 = 11; + a27 = 1; + a10 = 0; + a19 = 2; + a5 = 4; + a9 = 8; + a20 = 1; + } + return 25; + } else if((((a16==8)&&((a19==3)&&(!(a14==1)&&(!(a7==1)&&(((!(a0==1)&&((a21==11)&&(input==6)))&&(a3==1))&&!(a4==1))))))&&((((a1==13)&&(((a5==4)&&((a2==1)&&(a9==11)))&&(a13==1)))&&(a20==1))&&(a17==2)))){ + a19 = 1; + a4 = 0; + a5 = 6; + a9 = 7; + a16 = 10; + a14 = 0; + return 26; + } else if(((((a19==5)&&(!(a20==1)&&((a13==1)&&(a2==1))))||(a0==1))&&((a23==1)&&(((a21==12)&&((((a16==9)&&((!(a27==1)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==5)))&&!(a4==1)))&&(a17==2))&&(a1==12)))&&(a2==1))))){ + a5 = 5; + a15 = 1; + a1 = 13; + a21 = 10; + a26 = 1; + a13 = 0; + a16 = 11; + a19 = 2; + a20 = 1; + a9 = 8; + return -1; + } else if(((!(a28==1)&&((a0==1)&&((a27==1)&&((((a13==1)&&(a1==13))&&(a8==1))&&!(a20==1)))))&&((a17==2)&&((a9==10)&&(((a19==1)&&((a16==8)&&((!(a3==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))&&(a21==10))))&&(a14==1)))))){ + a16 = 11; + a24 = 1; + a2 = 0; + a9 = 8; + a5 = 6; + a1 = 14; + a20 = 1; + a19 = 3; + a28 = 0; + return -1; + } else if((((((((!(a14==1)&&((a20==1)&&((a28==1)&&(a16==7))))&&(a19==5))&&(a1==12))||(a14==1))||!(a23==1))||(a0==1))&&((((a21==12)&&((a9==8)&&((a17==2)&&(((a5==5)||(a5==6))&&(input==5)))))&&!(a24==1))&&!(a14==1)))){ + a9 = 9; + a16 = 9; + a18 = 0; + a5 = 5; + a1 = 14; + a4 = 0; + a21 = 11; + a19 = 3; + a6 = 1; + return 25; + } else if((((a14==1)||(((a17==2)&&((a16==8)&&((a7==1)||(!(a18==1)&&(((a19==4)&&(a11==1))||(a24==1))))))&&(a9==11)))&&((a21==10)&&(((a1==14)&&((a20==1)&&(!(a27==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4)))))&&!(a27==1))))){ + a1 = 12; + a9 = 7; + a16 = 7; + a4 = 0; + a19 = 1; + a5 = 4; + a3 = 1; + a8 = 0; + return -1; + } else if((((((a4==1)&&(((a27==1)&&(((!(a20==1)&&((a9==11)&&(a3==1)))&&!(a28==1))&&(a8==1)))&&!(a13==1)))&&(a1==14))&&!(a11==1))&&((((((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a16==7))&&(a17==2))&&(a21==12))&&(a19==2)))){ + a15 = 0; + a5 = 5; + a25 = 0; + a9 = 10; + a20 = 1; + a22 = 0; + return -1; + } else if(((!(a20==1)&&((a1==13)&&(((a16==7)&&((a9==10)&&(((a17==2)&&((a28==1)&&((a12==1)||!(a2==1))))&&(a13==1))))&&(a19==3))))&&((a21==12)&&((a3==1)&&((a3==1)&&((a6==1)&&((a5==6)&&(input==5)))))))){ + a8 = 0; + a5 = 4; + a18 = 0; + a19 = 2; + a21 = 10; + a20 = 1; + a9 = 9; + a1 = 14; + a7 = 0; + a16 = 10; + return 21; + } else if(((((a16==8)&&((((a1==13)&&((input==3)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))))&&(a11==1))&&(a11==1)))&&(a6==1))&&((a20==1)&&((!(a26==1)&&(((((a19==5)&&(a11==1))&&(a28==1))||(a0==1))&&(a21==10)))&&(a17==2))))){ + a5 = 4; + a1 = 12; + a27 = 0; + a19 = 1; + a24 = 0; + a16 = 7; + a9 = 7; + a13 = 1; + return -1; + } else if((((!(a12==1)||(!(a0==1)&&((a16==8)&&((a12==1)&&!(a14==1)))))||!(a3==1))&&((((((a19==2)&&((a20==1)&&(((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))&&(input==4))&&(a1==12))))&&(a21==12))&&!(a4==1))&&!(a14==1))&&(a17==2)))){ + a5 = 4; + a19 = 1; + a24 = 0; + a21 = 10; + a9 = 7; + a16 = 7; + a27 = 0; + a28 = 1; + return -1; + } else if((((((a28==1)&&(((a17==2)&&((a21==10)&&((input==3)&&(((((a5==5)&&(a1==13))&&(a9==11))||(((a5==6)&&(a1==13))&&(a9==11)))||(((a5==4)&&(a1==14))&&(a9==7))))))&&!(a7==1)))&&(a28==1))&&(a20==1))&&((a16==7)&&(((a19==5)&&(!(a0==1)&&((a23==1)&&!(a7==1))))||(a0==1))))){ + a14 = 0; + a6 = 1; + a19 = 4; + a9 = 9; + a1 = 12; + a5 = 5; + a21 = 12; + return 26; + } else if(((!(a24==1)&&((a12==1)&&((a19==5)&&((!(a26==1)&&((((input==5)&&(a21==12))&&(a28==1))&&!(a26==1)))&&(a5==5)))))&&((a9==9)&&((a1==13)&&(((a17==2)&&((a16==10)&&((a27==1)||(a11==1))))&&!(a20==1)))))){ + if((a23==1)){ + a24 = 1; + a19 = 3; + a5 = 6; + a21 = 10; + a18 = 1; + a16 = 7; + a9 = 11; + }else{ + a13 = 0; + a12 = 0; + a7 = 1; + a5 = 4; + a1 = 14; + a16 = 7; + a9 = 8; + } + return -1; + } else if(((!(a8==1)&&((!(a20==1)&&((a9==10)&&((a11==1)&&((((input==3)&&(a5==4))&&!(a4==1))&&(a1==14)))))&&(a11==1)))&&(!(a7==1)&&(!(a23==1)||((((a17==2)&&((a23==1)&&(a16==7)))&&(a19==1))&&(a21==10)))))){ + a1 = 12; + a27 = 0; + a26 = 0; + a20 = 1; + a9 = 7; + return -1; + } else if((((a19==5)&&((((a20==1)&&((a23==1)||!(a2==1)))&&(a21==10))&&(a17==2)))&&(((a1==12)&&((a16==8)&&((a23==1)&&((((!(a0==1)&&(((a5==5)||(a5==6))&&(input==3)))&&!(a26==1))&&(a6==1))&&(a12==1)))))&&(a9==11)))){ + a5 = 4; + a19 = 1; + a9 = 7; + a28 = 1; + a14 = 0; + a16 = 7; + return -1; + } else if((((((!(a4==1)&&(((a1==12)&&((a9==9)&&((input==3)&&!(a20==1))))&&(a17==2)))&&!(a7==1))&&(a5==6))&&!(a26==1))&&(!(a14==1)&&((a19==1)&&((a2==1)&&((((a12==1)||(a0==1))&&(a16==9))&&(a21==12))))))){ + if((a18==1)){ + a1 = 13; + a5 = 4; + a26 = 1; + a28 = 0; + a21 = 11; + a20 = 1; + a8 = 1; + a9 = 7; + a16 = 10; + a19 = 3; + }else{ + a6 = 0; + a9 = 11; + a21 = 10; + a1 = 14; + a13 = 0; + a20 = 1; + a16 = 7; + a11 = 0; + } + return 25; + } else if((((a16==9)&&(((a21==11)&&((a19==5)&&(!(a3==1)||(!(a23==1)||(((a28==1)&&(a28==1))&&!(a0==1))))))&&(a17==2)))&&((((!(a14==1)&&((input==4)&&(((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))))&&!(a14==1))&&(a1==12))&&(a20==1)))){ + a19 = 1; + a3 = 1; + a21 = 10; + a9 = 7; + a5 = 4; + a16 = 7; + a11 = 1; + return -1; + } else if(((((((a13==1)&&(((a13==1)&&(a1==12))&&!(a20==1)))&&(a5==6))&&!(a7==1))&&(a9==10))&&((a19==3)&&((a16==8)&&(!(a4==1)&&((((((input==1)&&(a17==2))&&!(a18==1))&&(a21==12))&&(a11==1))&&!(a27==1))))))){ + if((a24==1)){ + a16 = 10; + a28 = 0; + a25 = 1; + a0 = 1; + a20 = 1; + a9 = 9; + a5 = 4; + a1 = 14; + }else{ + a9 = 8; + a13 = 0; + a19 = 2; + a21 = 11; + a16 = 10; + a28 = 0; + a20 = 1; + a0 = 1; + } + return -1; + } else if((((((a23==1)&&(!(a26==1)&&((a9==9)&&((a7==1)||(a2==1)))))||!(a13==1))&&(a21==11))&&(((a17==2)&&((a2==1)&&((a1==14)&&(((((input==6)&&(a16==10))&&(a5==6))&&!(a20==1))&&!(a0==1)))))&&(a19==4)))){ + a19 = 1; + a1 = 13; + a6 = 0; + a16 = 7; + a9 = 11; + a13 = 0; + a20 = 1; + a21 = 10; + return -1; + } else if((((a19==3)&&((((a16==10)&&((a13==1)&&(a1==12)))||(a26==1))&&(a21==10)))&&(((a12==1)&&(!(a27==1)&&((a17==2)&&(((((input==6)&&((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9))))&&!(a4==1))&&(a20==1))&&(a13==1)))))&&!(a18==1)))){ + a28 = 1; + a5 = 4; + a4 = 0; + a19 = 1; + a24 = 0; + a16 = 7; + a9 = 7; + return -1; + } else if(((((((a14==1)||((a18==1)||(a28==1)))&&(a16==9))&&(a19==2))&&(a17==2))&&((!(a7==1)&&(!(a26==1)&&(!(a20==1)&&(!(a27==1)&&((a21==11)&&(((((a5==6)&&(a1==13))&&(a9==11))||(((a1==14)&&(a5==4))&&(a9==7)))&&(input==4)))))))&&!(a18==1)))){ + a5 = 6; + a1 = 12; + a20 = 1; + a9 = 9; + a8 = 1; + a21 = 10; + a16 = 7; + a19 = 1; + a28 = 0; + a7 = 1; + return -1; + } else if((((a9==10)&&(((a20==1)&&((a28==1)&&((!(a8==1)&&(((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a1==12)))&&(a21==12))))&&!(a0==1)))&&(((((a19==4)&&((a17==2)&&((a11==1)&&(a16==10))))&&!(a7==1))&&(a12==1))&&(a6==1)))){ + a27 = 0; + a28 = 1; + a7 = 0; + a21 = 10; + a5 = 4; + a9 = 7; + a16 = 7; + a19 = 1; + return -1; + } else if(((((a16==8)&&((a6==1)&&((a7==1)||((a19==1)&&(((a23==1)&&!(a24==1))&&(a9==7))))))&&(a1==13))&&((((a17==2)&&(((a2==1)&&(!(a14==1)&&(((a5==4)||(a5==5))&&(input==5))))&&(a21==11)))&&!(a20==1))&&(a12==1)))){ + a9 = 8; + a16 = 10; + a24 = 0; + a21 = 10; + a6 = 1; + a3 = 1; + a5 = 4; + a20 = 1; + a1 = 12; + return 21; + } else if(((((a28==1)&&(((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==6))&&!(a14==1)))&&(a16==7))&&((a20==1)&&((a17==2)&&((a2==1)&&((a21==11)&&(!(a24==1)&&(((a1==12)&&((a8==1)||((a19==1)&&(a6==1))))&&!(a24==1))))))))){ + a1 = 13; + a8 = 0; + a5 = 6; + a19 = 5; + a9 = 9; + a21 = 12; + a11 = 1; + return 22; + } else if((((a2==1)&&(((a21==10)&&(!(a0==1)&&((a19==3)&&(input==3))))&&(a11==1)))&&(((a5==6)&&((!(a20==1)&&(((a16==9)&&(((a1==14)&&((a2==1)&&(a9==10)))&&!(a14==1)))||(a26==1)))&&(a11==1)))&&(a17==2)))){ + if((a7==1)){ + a16 = 7; + a19 = 2; + a22 = 0; + a5 = 4; + a9 = 7; + a3 = 0; + a6 = 0; + a1 = 13; + a20 = 1; + }else{ + a2 = 0; + a25 = 1; + a19 = 1; + a11 = 0; + a16 = 7; + a1 = 12; + a20 = 1; + a9 = 11; + } + return -1; + } else if(((!(a24==1)&&(((a1==14)&&(((a16==7)&&(!(a20==1)&&(a13==1)))||(a4==1)))||(a4==1)))&&((((!(a4==1)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a23==1))&&(a9==8))&&(a17==2)))&&(a19==2))&&(a21==11))&&(a23==1)))){ + a5 = 4; + a21 = 10; + a13 = 1; + a7 = 0; + a1 = 12; + a9 = 7; + a20 = 1; + a19 = 1; + a2 = 1; + return -1; + } else if((((a19==3)&&((a20==1)&&((a1==14)&&(!(a24==1)&&((a2==1)&&((a16==7)&&(!(a0==1)&&(((a23==1)&&(((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4)))&&(input==1)))&&(a17==2)))))))))&&((((a7==1)||(a13==1))||!(a23==1))&&(a21==10)))){ + a5 = 5; + a7 = 0; + a8 = 0; + a9 = 7; + a21 = 11; + a14 = 0; + a19 = 2; + return 22; + } else if(((((!(a6==1)&&(((a1==12)&&(((((((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6))))&&(input==1))&&(a4==1))&&(a14==1))&&(a21==10)))&&(a16==11)))&&!(a28==1))&&(a19==2))&&(((a20==1)&&(!(a23==1)&&((a6==1)&&(a4==1))))&&(a17==2)))){ + a1 = 14; + a5 = 6; + a4 = 1; + a27 = 1; + a21 = 11; + a19 = 3; + a0 = 1; + a9 = 9; + return 21; + } else if((((((((a16==10)&&(!(a6==1)||(a6==1)))&&(a21==10))&&(a20==1))||!(a13==1))||!(a13==1))&&(((!(a8==1)&&(((((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==5))&&(a1==13))&&(a19==2))&&(a2==1)))&&(a17==2))&&(a2==1)))){ + a2 = 1; + a19 = 1; + a16 = 7; + a14 = 0; + a1 = 12; + a18 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if((((a21==12)&&((((a6==1)&&((a19==1)&&((!(a14==1)&&(!(a7==1)&&((input==6)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5))))))&&!(a24==1))))&&(a1==13))&&(a20==1)))&&((a16==7)&&((a17==2)&&((!(a14==1)&&(a3==1))||!(a13==1)))))){ + a5 = 4; + a1 = 12; + a12 = 1; + a16 = 9; + a21 = 10; + a28 = 1; + a9 = 9; + a13 = 1; + return 21; + } else if((((((!(a20==1)&&((a16==9)&&((a21==11)&&(a3==1))))&&(a3==1))&&(a28==1))&&!(a24==1))&&((((((((a19==1)&&(((a5==6)&&(a1==14))&&(a9==11)))||((a19==2)&&(((a5==4)&&(a1==12))&&(a9==7))))&&(input==6))&&(a11==1))&&!(a4==1))&&(a28==1))&&(a17==2)))){ + a19 = 2; + a3 = 0; + a5 = 4; + a21 = 10; + a12 = 0; + a16 = 7; + a22 = 1; + a1 = 12; + a20 = 1; + a9 = 9; + return -1; + } else if((((a28==1)&&(!(a8==1)&&(!(a24==1)&&((((input==3)&&(((a9==7)&&((a1==14)&&(a5==5)))||(((a9==11)&&((a5==6)&&(a1==13)))||(((a5==4)&&(a1==14))&&(a9==7)))))&&(a11==1))&&(a21==10)))))&&((a20==1)&&((a19==5)&&(!(a24==1)&&((a17==2)&&(((a11==1)||!(a28==1))&&(a16==10)))))))){ + a16 = 7; + a5 = 4; + a19 = 1; + a2 = 1; + a9 = 7; + a7 = 0; + a1 = 12; + return -1; + } else if((((a1==12)&&((a16==10)&&((a19==2)&&((a11==1)&&(!(a27==1)&&(((a6==1)&&((a20==1)&&(input==6)))&&!(a14==1)))))))&&((((a21==11)&&(((!(a4==1)&&(a13==1))&&(a13==1))&&(a17==2)))&&(a9==10))&&(a5==5)))){ + a9 = 9; + a1 = 13; + a27 = 0; + a5 = 6; + a12 = 1; + a8 = 0; + return 21; + } else if((((a17==2)&&(((a1==14)&&((a9==9)&&(((a19==2)&&(((input==1)&&((a5==5)||(a5==6)))&&(a6==1)))&&!(a20==1))))&&(a21==12)))&&((!(a18==1)&&(((a16==8)&&((!(a3==1)||(a6==1))||(a14==1)))||(a4==1)))||(a14==1)))){ + a1 = 13; + a28 = 0; + a5 = 5; + a20 = 1; + a16 = 10; + a9 = 10; + a21 = 10; + a6 = 0; + a19 = 4; + return -1; + } else if(((((a1==12)&&(!(a4==1)&&((a19==1)&&(((input==3)&&(a17==2))&&(a20==1)))))&&(a9==11))&&((a5==4)&&(((!(a4==1)&&((a16==8)&&((!(a14==1)&&((a6==1)&&!(a14==1)))&&(a21==11))))&&!(a18==1))&&(a13==1))))){ + a11 = 1; + a21 = 10; + a16 = 7; + a8 = 0; + a4 = 0; + a9 = 7; + return -1; + } else if((((!(a12==1)||((a24==1)||(!(a28==1)||(((a16==9)&&(((a11==1)&&!(a18==1))&&(a20==1)))&&(a21==10)))))||!(a6==1))&&(((((a19==5)&&((a28==1)&&((a17==2)&&(input==3))))&&(a9==9))&&(a1==12))&&(a5==6)))){ + a9 = 7; + a13 = 1; + a19 = 1; + a5 = 4; + a16 = 7; + a6 = 1; + a7 = 0; + return -1; + } else if((((a21==12)&&((a1==12)&&(((a3==1)&&((a9==10)&&((a19==1)&&(((a5==4)||(a5==5))&&(input==3)))))&&!(a7==1))))&&((a17==2)&&((((!(a26==1)&&((a13==1)&&(!(a13==1)||(a11==1))))||(a18==1))&&(a16==7))&&(a20==1))))){ + a21 = 10; + a11 = 1; + a7 = 0; + a9 = 7; + a23 = 1; + a5 = 4; + return -1; + } else if((((a1==13)&&((a19==5)&&((a4==1)||(!(a12==1)||(((a16==9)&&(a12==1))&&(a21==10))))))&&((((((a9==10)&&(((((a5==4)||(a5==5))&&(input==4))&&!(a4==1))&&!(a0==1)))&&(a23==1))&&(a17==2))&&(a2==1))&&(a20==1)))){ + a16 = 7; + a19 = 1; + a9 = 7; + a5 = 4; + a26 = 0; + a27 = 0; + a13 = 1; + a1 = 12; + return -1; + } else if(((!(a7==1)&&((a1==14)&&((a17==2)&&(((a3==1)&&(!(a26==1)&&((a5==5)&&((input==4)&&(a16==7)))))&&(a20==1)))))&&(((a9==8)&&(((a21==12)&&(((a11==1)&&(a12==1))||!(a2==1)))&&(a19==5)))&&!(a0==1)))){ + a21 = 10; + a5 = 4; + a13 = 1; + a19 = 1; + a12 = 1; + a9 = 7; + a27 = 0; + a1 = 12; + return -1; + } else if((((((a21==11)&&(((a3==1)&&(!(a8==1)&&((input==6)&&((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11))))))&&(a3==1)))&&(a1==13))&&!(a18==1))&&((a20==1)&&(!(a28==1)||(((a19==2)&&(((a16==9)&&(a2==1))||(a24==1)))&&(a17==2)))))){ + a13 = 1; + a12 = 1; + a5 = 6; + a21 = 10; + a1 = 14; + a9 = 7; + a16 = 10; + a6 = 1; + return 21; + } else if(((((!(a2==1)&&(!(a13==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3))))&&(a8==1))&&(a1==13))&&(((((a14==1)&&((a19==3)&&((((a0==1)&&((a6==1)&&!(a6==1)))&&(a9==11))&&!(a20==1))))&&(a21==11))&&(a17==2))&&(a16==7)))){ + a13 = 0; + a20 = 1; + a23 = 0; + a19 = 2; + a21 = 10; + a24 = 1; + a1 = 12; + a5 = 6; + a9 = 7; + return -1; + } else if(((((((a12==1)&&((((a23==1)&&(a9==11))&&(a13==1))&&(a20==1)))&&(a28==1))&&(a19==5))&&(a1==12))&&((a3==1)&&((a17==2)&&(!(a24==1)&&((((a16==7)&&((input==1)&&((a5==5)||(a5==6))))&&(a21==11))&&(a2==1))))))){ + a14 = 0; + a26 = 0; + a19 = 1; + a1 = 14; + a4 = 0; + a9 = 8; + a5 = 5; + a16 = 8; + a21 = 12; + return 26; + } else if(((((((((a6==1)&&(a1==14))||(a26==1))&&(a5==5))&&(a19==4))&&(a17==2))||!(a2==1))&&((a11==1)&&(!(a8==1)&&((a9==8)&&((a21==10)&&(((a20==1)&&(((input==6)&&(a16==7))&&(a2==1)))&&(a13==1)))))))){ + a18 = 0; + a2 = 1; + a7 = 0; + a1 = 12; + a5 = 6; + a19 = 1; + a21 = 12; + return 23; + } else if(((((!(a13==1)&&((!(a11==1)&&((a24==1)&&((a2==1)&&(a9==11))))&&!(a2==1)))&&(a17==2))&&(a16==11))&&((a19==3)&&(((a1==12)&&((a21==10)&&((a24==1)&&(!(a3==1)&&((a5==5)&&(input==6))))))&&(a20==1))))){ + a1 = 13; + a16 = 8; + a15 = 0; + a25 = 0; + a9 = 9; + a21 = 12; + a13 = 0; + return 21; + } else if((((((a1==13)&&(((a16==8)&&((!(a8==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&(a12==1)))&&!(a14==1)))&&(a17==2)))&&(a21==11))&&(a20==1))&&((((((a3==1)&&(a19==4))&&!(a26==1))&&!(a14==1))&&!(a18==1))&&(a9==10)))){ + a16 = 7; + a26 = 0; + a19 = 2; + a27 = 0; + a11 = 1; + a9 = 9; + a5 = 5; + a21 = 10; + return -1; + } else if((((a1==13)&&((a9==10)&&((((a28==1)&&(((input==1)&&((a5==5)||(a5==6)))&&(a16==7)))&&!(a20==1))&&(a2==1))))&&(((a14==1)||((a21==10)&&(((a17==2)&&(((a13==1)&&(a13==1))||(a26==1)))&&(a19==5))))&&(a6==1)))){ + a27 = 0; + a11 = 1; + a7 = 0; + a19 = 2; + a16 = 8; + a5 = 6; + a21 = 12; + a20 = 1; + return 21; + } else if(((((a17==2)&&(!(a8==1)&&(((a20==1)&&((a1==12)&&(((a16==10)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1)))&&(a9==9))))&&(a21==10))))&&(a3==1))&&(!(a11==1)||(!(a27==1)&&((((a12==1)&&(a28==1))&&(a19==5))||!(a3==1)))))){ + a14 = 0; + a16 = 8; + a9 = 7; + a8 = 0; + a1 = 14; + a18 = 0; + a5 = 4; + return 25; + } else if((((a4==1)&&((!(a23==1)&&((((a19==1)&&((a23==1)&&(a16==11)))&&(a17==2))&&(a1==14)))&&!(a28==1)))&&((!(a13==1)&&(((a21==12)&&((a0==1)&&(((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5)))&&(input==3))))&&(a20==1)))&&!(a23==1)))){ + a5 = 5; + a28 = 0; + a9 = 11; + a21 = 11; + a4 = 1; + a16 = 8; + a19 = 5; + a1 = 12; + a14 = 1; + return -1; + } else if((((a17==2)&&((((((a11==1)&&((input==6)&&(a21==11)))&&(a5==4))&&(a9==10))&&!(a4==1))&&(a19==1)))&&((((a11==1)&&((!(a11==1)||((a1==12)&&((a11==1)&&(a6==1))))&&(a16==7)))&&!(a26==1))&&(a20==1)))){ + a5 = 5; + a26 = 0; + a9 = 9; + a1 = 14; + a23 = 1; + a21 = 12; + a19 = 5; + return 21; + } else if((((a21==10)&&((((a13==1)&&(!(a0==1)&&(!(a8==1)&&((a11==1)&&((a9==11)&&((input==3)&&((a5==4)||(a5==5))))))))&&(a1==12))&&(a17==2)))&&(((!(a7==1)&&((a16==11)&&((a8==1)||(a12==1))))&&(a20==1))&&(a19==5)))){ + a9 = 7; + a14 = 0; + a2 = 1; + a19 = 1; + a5 = 4; + a16 = 7; + a3 = 1; + return -1; + } else if(((!(a18==1)&&((((!(a27==1)&&(((a20==1)&&((a19==1)&&(input==4)))&&(a5==5)))&&!(a24==1))&&(a16==8))&&(a1==14)))&&((a21==10)&&((a4==1)||((a17==2)&&((((a3==1)&&!(a0==1))&&!(a8==1))&&(a9==9))))))){ + a1 = 12; + a5 = 4; + a23 = 1; + a3 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if(((((a5==5)&&((a9==11)&&((a11==1)&&((a2==1)&&((a13==1)&&(a20==1))))))||!(a2==1))&&((a1==12)&&((((a16==11)&&((a28==1)&&(!(a8==1)&&((a17==2)&&((a19==1)&&(input==1))))))&&!(a18==1))&&(a21==12))))){ + a16 = 7; + a21 = 10; + a14 = 0; + a5 = 4; + a9 = 7; + a3 = 1; + a13 = 1; + return -1; + } else if((((a19==1)&&((a20==1)&&(((a6==1)&&(((a5==5)||(a5==6))&&(input==4)))&&(a17==2))))&&(((a1==13)&&(((a23==1)&&((((a3==1)&&(((a2==1)&&(a16==7))&&(a9==8)))&&(a13==1))||!(a2==1)))&&!(a4==1)))&&(a21==12)))){ + a5 = 4; + a23 = 1; + a27 = 0; + a16 = 8; + a0 = 0; + a19 = 5; + a1 = 14; + return 21; + } else if(((!(a20==1)&&((a16==7)&&((a17==2)&&(((a1==12)&&(!(a24==1)&&(((input==4)&&((a5==4)||(a5==5)))&&(a9==11))))&&(a21==10)))))&&(((a11==1)&&((((!(a6==1)||(a11==1))||(a7==1))||(a26==1))||(a4==1)))&&(a19==1)))){ + a9 = 7; + a5 = 4; + a3 = 1; + a23 = 1; + a20 = 1; + return -1; + } else if((((!(a2==1)||((a21==12)&&((a9==10)&&((a6==1)&&(a6==1)))))&&(a6==1))&&((((a16==9)&&((!(a20==1)&&((a11==1)&&((((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a17==2))&&(a19==5))))&&(a1==14)))&&(a11==1))&&(a2==1)))){ + if((a13==1)){ + a4 = 1; + a20 = 1; + a19 = 1; + a11 = 0; + a14 = 1; + a16 = 7; + a21 = 10; + a5 = 4; + a1 = 13; + }else{ + a20 = 1; + a5 = 5; + a4 = 1; + a19 = 1; + a16 = 7; + a9 = 9; + a2 = 0; + a7 = 1; + a21 = 10; + a1 = 13; + } + return -1; + } else if((((a3==1)&&((a9==11)&&(((a16==7)&&((a21==10)&&((((a20==1)&&(input==4))&&(a5==6))&&(a19==4))))&&(a1==13))))&&(!(a27==1)&&((a17==2)&&(!(a23==1)||(((!(a3==1)||(a28==1))||(a24==1))||!(a13==1))))))){ + a9 = 7; + a13 = 1; + a5 = 4; + a6 = 1; + a26 = 0; + a1 = 12; + a19 = 1; + return -1; + } else if((((a20==1)&&(((a13==1)&&(((a27==1)||(a23==1))&&(a17==2)))||(a8==1)))&&((a1==14)&&((a19==1)&&((((a23==1)&&(!(a14==1)&&(((a16==9)&&((input==3)&&((a5==4)||(a5==5))))&&(a21==10))))&&(a9==11))&&(a13==1)))))){ + a21 = 11; + a0 = 0; + a12 = 1; + a5 = 4; + a6 = 1; + a19 = 4; + a9 = 10; + return 21; + } else if((((a19==5)&&((!(a2==1)||((!(a13==1)||(!(a3==1)||(a2==1)))&&(a13==1)))&&(a21==12)))&&((!(a20==1)&&((a9==7)&&(((a17==2)&&((((input==1)&&((a5==5)||(a5==6)))&&(a11==1))&&(a1==14)))&&(a2==1))))&&(a16==9)))){ + a19 = 3; + a4 = 1; + a22 = 0; + a9 = 10; + a10 = 0; + a5 = 5; + a16 = 10; + a1 = 13; + return -1; + } else if(((((a5==4)&&((a16==8)&&(!(a2==1)||((((a21==12)&&((((a23==1)||(a18==1))&&(a2==1))&&(a3==1)))&&!(a18==1))&&(a9==7)))))&&(a17==2))&&(!(a20==1)&&(((a28==1)&&((a1==12)&&(input==4)))&&(a19==1))))){ + if((a20==1)){ + a16 = 7; + a15 = 1; + a13 = 0; + a21 = 10; + a5 = 6; + a20 = 1; + }else{ + a7 = 1; + a1 = 13; + a13 = 0; + a20 = 1; + a19 = 4; + a0 = 1; + a21 = 11; + a9 = 11; + } + return 21; + } else if(((!(a6==1)||(((((a5==4)&&(((a3==1)&&!(a24==1))&&(a16==10)))&&(a21==11))&&!(a4==1))||(a26==1)))&&(((a9==11)&&(((((a20==1)&&((a19==4)&&(input==1)))&&(a1==12))&&(a17==2))&&(a6==1)))&&(a2==1)))){ + a19 = 2; + a2 = 1; + a1 = 13; + a9 = 9; + a26 = 0; + a16 = 7; + a21 = 10; + return 25; + } else if((((a8==1)||((a9==11)&&(!(a2==1)||((a16==8)&&(!(a24==1)&&(((((a1==12)&&((a6==1)||!(a11==1)))&&(a20==1))||!(a6==1))&&(a17==2)))))))&&((((((a5==5)||(a5==6))&&(input==5))&&(a21==12))&&(a19==4))&&!(a4==1)))){ + a0 = 0; + a21 = 10; + a16 = 7; + a24 = 0; + a19 = 1; + a23 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if((((a16==9)&&(((a17==2)&&(!(a8==1)&&((a28==1)&&(a23==1))))||!(a3==1)))&&((a20==1)&&((a2==1)&&(((a13==1)&&(((((input==3)&&(((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))))&&(a1==14))&&!(a7==1))&&(a21==10)))&&(a19==2)))))){ + a11 = 1; + a12 = 1; + a9 = 7; + a26 = 0; + a16 = 7; + a19 = 1; + a1 = 12; + a5 = 4; + return -1; + } else if(((!(a20==1)&&((a19==1)&&(((a1==12)&&(((((a21==10)&&((a11==1)||!(a3==1)))&&(a6==1))||(a8==1))||!(a3==1)))&&(a16==11))))&&((a9==11)&&(((a17==2)&&((((a5==4)||(a5==5))&&(input==1))&&(a6==1)))&&(a13==1))))){ + a12 = 0; + a19 = 2; + a5 = 5; + a21 = 12; + a3 = 0; + a11 = 0; + a16 = 9; + a9 = 9; + return -1; + } else if((((a20==1)&&((a21==10)&&((((((((a12==1)&&(a1==12))&&(a12==1))||!(a28==1))&&!(a7==1))&&(a17==2))&&(a9==11))&&(a16==8))))&&((!(a27==1)&&((((input==1)&&((a5==5)||(a5==6)))&&(a23==1))&&!(a24==1)))&&(a19==5)))){ + a16 = 10; + a23 = 1; + a9 = 10; + a14 = 0; + a19 = 2; + a5 = 4; + a7 = 0; + return 21; + } else if(((!(a6==1)||(!(a26==1)&&((((a19==5)&&((a3==1)&&(a17==2)))&&(a21==10))&&(a13==1))))&&((a16==10)&&((((a12==1)&&((a3==1)&&((((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))&&(input==1))&&!(a20==1))))&&(a1==12))&&(a13==1))))){ + a1 = 14; + a21 = 11; + a19 = 2; + a13 = 0; + a22 = 0; + a5 = 4; + a28 = 0; + a9 = 7; + return 25; + } else if((((a28==1)&&((a19==5)&&((a3==1)&&((a18==1)||(((!(a12==1)||(((a2==1)&&(a17==2))&&(a16==10)))||(a0==1))&&(a3==1))))))&&((a21==11)&&((a20==1)&&((a1==13)&&((input==6)&&(((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))))))){ + a24 = 0; + a28 = 1; + a1 = 12; + a8 = 0; + a9 = 8; + a5 = 5; + a21 = 10; + return 25; + } else if(((((a1==13)&&((a21==12)&&((!(a28==1)&&(!(a20==1)&&((a16==7)&&((a6==1)&&!(a3==1)))))&&(a19==1))))&&(a26==1))&&((((a17==2)&&(((input==4)&&(((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))))&&!(a3==1)))&&!(a13==1))&&!(a3==1)))){ + a9 = 9; + a1 = 12; + a20 = 1; + a11 = 0; + a25 = 0; + a5 = 6; + a21 = 10; + return -1; + } else if(((!(a18==1)&&((a17==2)&&((a5==5)&&((((input==4)&&(a9==8))&&(a1==14))&&(a20==1)))))&&(!(a24==1)&&((((!(a24==1)&&(((a16==10)&&((a19==3)&&(a11==1)))&&(a21==11)))||!(a6==1))&&!(a0==1))||!(a23==1))))){ + a21 = 10; + a23 = 1; + a5 = 4; + a1 = 12; + a18 = 0; + a16 = 7; + a9 = 7; + a19 = 1; + a3 = 1; + return -1; + } else if(((!(a8==1)&&((a16==9)&&((!(a20==1)&&(((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==1))||((a19==2)&&(((a1==12)&&(a5==4))&&(a9==7))))&&(input==1)))&&(a13==1))))&&((a23==1)&&((a17==2)&&((a3==1)&&((a21==11)&&(((a13==1)&&(a6==1))||!(a12==1)))))))){ + a8 = 1; + a5 = 6; + a20 = 1; + a9 = 9; + a19 = 2; + a29 = 1; + a1 = 12; + a21 = 10; + a16 = 7; + a25 = 1; + return 26; + } else if(((((a19==5)&&(!(a12==1)||((((a28==1)||!(a2==1))&&(a1==14))&&(a16==7))))&&!(a27==1))&&(!(a24==1)&&((a17==2)&&((a20==1)&&((a28==1)&&(!(a18==1)&&(((input==4)&&(((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))))&&(a21==11))))))))){ + a13 = 1; + a21 = 12; + a9 = 7; + a5 = 6; + a19 = 3; + a16 = 8; + a24 = 0; + a6 = 1; + return 21; + } else if((((!(a20==1)&&((a9==7)&&((a8==1)||(((a2==1)||!(a28==1))||!(a28==1)))))&&(a19==2))&&(((!(a4==1)&&(((a28==1)&&((a17==2)&&((a28==1)&&((a1==12)&&(input==5)))))&&(a5==5)))&&(a16==7))&&(a21==12)))){ + a5 = 4; + a11 = 1; + a20 = 1; + a23 = 1; + a21 = 10; + a18 = 0; + a19 = 1; + return -1; + } else if((((((((((a19==3)&&(((a1==14)&&(a5==6))&&(a9==11)))||((a19==4)&&((a9==7)&&((a1==12)&&(a5==4)))))&&(input==3))&&!(a0==1))&&!(a8==1))&&(a12==1))&&(a21==11))&&(!(a20==1)&&((a16==8)&&(!(a7==1)&&((a17==2)&&((a4==1)||((a24==1)||(a28==1))))))))){ + a16 = 7; + a19 = 1; + a1 = 12; + a14 = 0; + a20 = 1; + a9 = 7; + a7 = 0; + a21 = 10; + a5 = 4; + a18 = 0; + return -1; + } else if((((a1==14)&&((a19==3)&&(((a17==2)&&((a11==1)&&((a9==11)&&(a6==1))))||(a18==1))))&&((a28==1)&&((((a16==10)&&(!(a26==1)&&(((a20==1)&&(((a5==4)||(a5==5))&&(input==4)))&&(a21==10))))&&!(a18==1))&&(a11==1))))){ + a1 = 12; + a7 = 0; + a16 = 7; + a9 = 7; + a19 = 1; + a3 = 1; + a5 = 4; + a4 = 0; + return -1; + } else if((((!(a26==1)&&(!(a7==1)&&((a3==1)&&((((!(a20==1)&&(input==5))&&(a23==1))&&(a16==7))&&!(a7==1)))))&&(a1==14))&&(((a5==5)&&((((!(a12==1)||(a2==1))&&(a9==10))&&(a19==3))&&(a21==11)))&&(a17==2)))){ + a21 = 10; + a1 = 12; + a8 = 0; + a28 = 1; + a20 = 1; + a9 = 7; + a7 = 0; + a19 = 1; + a5 = 4; + return -1; + } else if((((a12==1)&&((((a6==1)&&(((a6==1)&&(a17==2))&&(a19==2)))&&!(a20==1))&&(a12==1)))&&((((((((input==6)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(a21==10))&&(a16==9))&&!(a7==1))&&!(a8==1))&&(a1==14))&&!(a26==1)))){ + a6 = 0; + a28 = 0; + a20 = 1; + a9 = 11; + a5 = 4; + a16 = 11; + a22 = 0; + a19 = 4; + return 25; + } else if((((a2==1)&&((a27==1)||(!(a18==1)&&((((a1==13)&&((a16==7)&&((a17==2)&&((a21==10)&&(a2==1)))))&&!(a20==1))||!(a2==1)))))&&((((a19==1)&&((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==4)))&&!(a0==1))&&!(a27==1)))){ + a9 = 7; + a20 = 1; + a7 = 0; + a24 = 0; + a26 = 0; + a5 = 4; + a1 = 12; + return -1; + } else if((((((((a17==2)&&((a9==9)&&(((a19==2)&&((a21==10)&&(input==5)))&&(a20==1))))&&(a1==13))&&(a6==1))&&!(a8==1))&&!(a4==1))&&(!(a7==1)&&(((a23==1)&&((a5==6)&&((a13==1)&&(a16==7))))&&(a23==1))))){ + a5 = 4; + a23 = 1; + a12 = 1; + a8 = 0; + a19 = 3; + a9 = 8; + a1 = 12; + return 22; + } else if((((((((a13==1)&&((((a17==2)&&(a12==1))||!(a12==1))||!(a28==1)))&&(a19==5))&&(a23==1))&&!(a20==1))&&(a16==10))&&((a21==12)&&(((a9==7)&&((((a5==5)&&(input==5))&&!(a24==1))&&(a1==12)))&&(a12==1))))){ + a9 = 10; + a29 = 1; + a21 = 10; + a5 = 4; + a20 = 1; + a16 = 7; + a7 = 1; + a13 = 0; + a19 = 2; + return 25; + } else if(((((a19==3)&&((!(a8==1)&&((a12==1)&&((!(a24==1)&&((a3==1)&&(a1==12)))&&(a21==11))))&&(a11==1)))&&(a16==10))&&((a20==1)&&((!(a4==1)&&((a17==2)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&!(a8==1))))&&(a9==9))))){ + a4 = 0; + a0 = 0; + a9 = 8; + a1 = 13; + a5 = 5; + a23 = 1; + a16 = 7; + a20 = 0; + return -1; + } else if(((((a21==12)&&(!(a26==1)&&((a23==1)&&(a17==2))))||!(a3==1))&&((((((((input==5)&&(((a19==1)&&((a9==11)&&((a5==6)&&(a1==14))))||((a19==2)&&((a9==7)&&((a1==12)&&(a5==4))))))&&!(a4==1))&&!(a8==1))&&!(a20==1))&&(a16==7))&&!(a7==1))&&(a28==1)))){ + a6 = 1; + a5 = 6; + a2 = 1; + a1 = 14; + a19 = 1; + a9 = 8; + a16 = 8; + a20 = 1; + a13 = 1; + return 21; + } else if((((((a21==10)&&((input==3)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8)))))&&!(a20==1))&&!(a4==1))&&((a27==1)||((a17==2)&&(!(a18==1)&&((((!(a0==1)&&((a4==1)||((a13==1)&&(a1==12))))&&(a19==4))||!(a28==1))&&(a16==9))))))){ + a9 = 9; + a19 = 1; + a26 = 1; + a5 = 5; + a20 = 1; + a0 = 1; + a15 = 0; + a16 = 7; + return -1; + } else if(((((a21==12)&&((a23==1)&&(((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&(a1==12))))&&(a9==10))&&((!(a6==1)||((((((a20==1)&&((a7==1)||((a17==2)&&(a6==1))))&&(a23==1))&&(a16==9))||(a8==1))&&(a19==1)))||(a24==1)))){ + a9 = 7; + a1 = 13; + a7 = 0; + a16 = 7; + a21 = 10; + a5 = 4; + a11 = 1; + a19 = 3; + a2 = 1; + return 25; + } else if((((a17==2)&&(((a21==11)&&((((input==5)&&(a5==5))&&(a20==1))&&!(a14==1)))&&(a2==1)))&&((a24==1)||(((a16==9)&&((a1==12)&&(((((a19==5)&&(a28==1))&&!(a4==1))&&!(a18==1))&&(a23==1))))&&(a9==7))))){ + if((a6==1)){ + a7 = 0; + a11 = 1; + a20 = 0; + a21 = 10; + a16 = 8; + a19 = 3; + a0 = 0; + a9 = 10; + }else{ + a21 = 10; + a18 = 0; + a1 = 13; + a28 = 1; + a16 = 10; + a26 = 0; + a9 = 9; + } + return 21; + } else if((((a2==1)&&((((a20==1)&&((a9==11)&&(((a5==4)||(a5==5))&&(input==3))))&&(a11==1))&&(a16==11)))&&(!(a24==1)&&((a1==13)&&(((a17==2)&&((a7==1)||((((a6==1)&&!(a7==1))&&(a6==1))&&(a19==4))))&&(a21==12)))))){ + a16 = 7; + a19 = 1; + a9 = 7; + a5 = 4; + a4 = 0; + a21 = 10; + a1 = 12; + a6 = 1; + a14 = 0; + return -1; + } else if((((!(a20==1)&&((a3==1)&&(((a13==1)&&(!(a27==1)&&((a1==12)&&((a16==7)&&((a28==1)&&!(a26==1))))))&&(a19==3))))&&(a17==2))&&((a21==10)&&((((input==1)&&((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8))))&&(a13==1))&&!(a0==1))))){ + a8 = 0; + a5 = 4; + a11 = 1; + a13 = 1; + a19 = 1; + a20 = 1; + a9 = 7; + return -1; + } else if((((((a19==5)&&((!(a28==1)||((a6==1)&&(((a21==12)&&(a3==1))&&(a20==1))))&&(a1==13)))&&(a12==1))&&(a9==11))&&(((((a13==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a17==2)))&&!(a7==1))&&(a2==1))&&(a16==9)))){ + if((a8==1)){ + a24 = 0; + a12 = 1; + a20 = 0; + a9 = 8; + a19 = 4; + a16 = 7; + a6 = 1; + a1 = 12; + a5 = 4; + }else{ + a5 = 6; + a23 = 1; + a9 = 10; + a21 = 11; + a8 = 0; + a16 = 7; + a19 = 2; + a11 = 1; + } + return 25; + } else if((((((!(a7==1)&&(((a19==2)&&((a1==14)&&(!(a18==1)&&((a17==2)&&(input==4)))))&&(a6==1)))&&(a5==4))&&(a21==10))&&!(a24==1))&&((((!(a26==1)&&(!(a2==1)||(a2==1)))&&(a9==8))&&(a20==1))&&(a16==8)))){ + a1 = 12; + a0 = 0; + a9 = 7; + a23 = 1; + a7 = 0; + a19 = 1; + a16 = 7; + return -1; + } else if(((((a16==7)&&((a11==1)&&((a21==12)&&((a28==1)&&((a19==2)&&((a6==1)&&((((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(input==6))))))))&&!(a20==1))&&((a1==13)&&(((((a3==1)&&!(a4==1))&&(a17==2))&&(a12==1))||!(a2==1))))){ + a26 = 0; + a19 = 1; + a5 = 4; + a9 = 7; + a4 = 0; + a21 = 10; + a1 = 12; + a3 = 1; + a20 = 1; + return -1; + } else if((((a16==10)&&(((a9==8)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a12==1))&&(a17==2)))&&!(a26==1)))&&((a8==1)||((!(a23==1)||(((a1==12)&&((a19==1)&&((a20==1)&&((a23==1)&&!(a0==1)))))&&(a21==12)))&&!(a18==1))))){ + if((a22==1)){ + a7 = 0; + a9 = 11; + a20 = 0; + a3 = 1; + a16 = 8; + a4 = 0; + a21 = 10; + a19 = 5; + a5 = 5; + }else{ + a7 = 0; + a19 = 2; + a16 = 7; + a13 = 1; + a5 = 5; + a9 = 10; + a27 = 0; + a21 = 10; + a1 = 14; + } + return 21; + } else if((((((a19==4)&&(!(a11==1)||((a27==1)||(a3==1))))&&(a17==2))&&(a1==12))&&(((a16==8)&&((a21==10)&&((a13==1)&&(((((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&!(a27==1))&&(a12==1))&&(a20==1))&&!(a4==1)))))&&(a9==7)))){ + a27 = 0; + a13 = 1; + a4 = 0; + a1 = 14; + a21 = 12; + a9 = 10; + a16 = 9; + a5 = 5; + a19 = 5; + return 22; + } else if(((((a28==1)&&(!(a18==1)&&((a21==10)&&((((a23==1)&&(a23==1))&&(a17==2))&&(a19==2)))))&&!(a0==1))&&(!(a14==1)&&((a9==10)&&(!(a20==1)&&(((((input==5)&&((a5==4)||(a5==5)))&&!(a0==1))&&(a1==12))&&(a16==7))))))){ + a9 = 7; + a20 = 1; + a19 = 1; + a26 = 0; + a7 = 0; + a5 = 4; + return -1; + } else if(((((a0==1)||(((a19==1)&&((a16==10)&&((((a17==2)&&((a6==1)||!(a11==1)))||(a24==1))||!(a3==1))))&&(a9==8)))||(a27==1))&&((a1==13)&&((a20==1)&&((a21==11)&&((a13==1)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))))))){ + a21 = 12; + a9 = 11; + a8 = 0; + a19 = 2; + a1 = 14; + a7 = 0; + a5 = 6; + a13 = 1; + a16 = 9; + return 21; + } else if((((((((a20==1)&&((a17==2)&&((a1==12)&&(input==1))))&&(a16==7))&&(a0==1))&&!(a12==1))&&!(a13==1))&&((a21==12)&&(!(a11==1)&&((a27==1)&&(((a9==9)&&((a19==1)&&((a23==1)&&(a8==1))))&&(a5==4))))))){ + a16 = 8; + a5 = 6; + a24 = 1; + a19 = 4; + a9 = 10; + a23 = 0; + a29 = 0; + a20 = 0; + a21 = 11; + return -1; + } else if(((((a21==12)&&(((a6==1)&&(!(a7==1)&&(!(a4==1)&&((a16==7)&&(input==6)))))&&(a17==2)))&&(a19==5))&&((a5==6)&&((!(a4==1)&&(((((a9==9)&&(a23==1))||!(a2==1))&&!(a18==1))&&(a20==1)))&&(a1==14))))){ + a16 = 9; + a28 = 1; + a4 = 0; + a19 = 1; + a1 = 13; + a24 = 0; + return 25; + } else if(((!(a26==1)&&((a16==10)&&(((a13==1)&&(a17==2))&&(a21==11))))&&((a3==1)&&(((a19==2)&&(((a3==1)&&((((input==6)&&(((a9==11)&&((a5==6)&&(a1==12)))||(((a1==13)&&(a5==4))&&(a9==7))))&&(a3==1))&&(a20==1)))&&(a6==1)))&&(a3==1))))){ + a13 = 1; + a5 = 4; + a18 = 0; + a16 = 7; + a19 = 1; + a8 = 0; + a1 = 12; + a21 = 10; + a9 = 7; + return -1; + } else if(((((a1==14)&&(((a16==11)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==4)))&&(a23==1)))&&(a28==1))&&((a3==1)&&((((((!(a27==1)&&((a2==1)&&(a21==10)))&&!(a7==1))&&!(a20==1))&&(a17==2))&&(a19==1))&&!(a14==1))))){ + a14 = 1; + a16 = 7; + a20 = 1; + a5 = 5; + a1 = 12; + a29 = 1; + a9 = 9; + a2 = 0; + return -1; + } else if(((!(a27==1)&&(!(a27==1)&&((a19==4)&&((((a21==10)&&((a2==1)&&((input==3)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))))&&(a1==13))&&!(a20==1)))))&&((((a17==2)&&((a16==10)&&((a28==1)||!(a12==1))))||(a18==1))||(a4==1)))){ + a9 = 11; + a1 = 14; + a15 = 1; + a13 = 0; + a5 = 4; + a19 = 5; + return 21; + } else if(((((((a21==11)&&((a24==1)||(a28==1)))||(a27==1))&&(a17==2))&&(a20==1))&&(((a3==1)&&(((((a16==10)&&(((((a9==11)&&((a1==12)&&(a5==6)))||((a9==7)&&((a1==13)&&(a5==4))))||(((a5==5)&&(a1==13))&&(a9==7)))&&(input==1)))&&(a11==1))&&(a3==1))&&!(a27==1)))&&(a19==5)))){ + a16 = 7; + a14 = 0; + a21 = 10; + a19 = 4; + a12 = 1; + a5 = 5; + a1 = 13; + a11 = 1; + a9 = 10; + return 25; + } else if(((((a21==11)&&(((a19==2)&&(((((input==6)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5))))&&!(a27==1))&&!(a4==1))&&(a2==1)))&&(a11==1)))&&(a20==1))&&(((a17==2)&&(((a16==9)&&((a12==1)||!(a2==1)))||(a14==1)))&&(a1==12)))){ + a21 = 10; + a9 = 7; + a16 = 7; + a19 = 1; + a5 = 4; + a11 = 1; + a3 = 1; + return -1; + } else if(((((((a21==10)&&(a12==1))&&!(a18==1))||!(a3==1))&&(a28==1))&&((((((!(a20==1)&&((input==3)&&((((((a1==14)&&(a5==5))&&(a9==11))&&(a19==4))||((a19==4)&&((a9==11)&&((a5==6)&&(a1==14)))))||((a19==5)&&((a9==7)&&((a5==4)&&(a1==12)))))))&&(a17==2))&&(a16==7))&&(a6==1))&&(a28==1))&&!(a24==1)))){ + a20 = 1; + a8 = 0; + a1 = 12; + a5 = 4; + a23 = 1; + a9 = 7; + a26 = 0; + a19 = 1; + return -1; + } else if(((((a9==11)&&((a19==4)&&(!(a27==1)&&(((a11==1)&&(a23==1))||(a4==1)))))&&(a1==13))&&((a20==1)&&(((((!(a8==1)&&(((input==5)&&((a5==4)||(a5==5)))&&(a13==1)))&&(a21==12))&&(a12==1))&&(a16==11))&&(a17==2))))){ + a9 = 8; + a5 = 5; + a19 = 2; + a16 = 10; + a3 = 1; + a14 = 0; + a11 = 1; + return 21; + } else if((((a19==4)&&((a17==2)&&((((a5==6)&&(!(a20==1)&&(a11==1)))&&(a16==8))&&(a21==11))))&&(!(a7==1)&&(!(a26==1)&&((a12==1)&&(((a1==13)&&(((a13==1)&&((input==5)&&(a9==11)))&&(a28==1)))&&(a12==1))))))){ + a20 = 1; + a9 = 10; + a18 = 0; + a2 = 1; + a21 = 12; + a16 = 7; + a28 = 1; + a19 = 1; + return 23; + } else if(((((((a8==1)&&(((((a17==2)&&(a13==1))&&(a21==11))&&(a19==4))&&!(a20==1)))&&(a0==1))&&(a8==1))&&!(a28==1))&&((a4==1)&&((a0==1)&&((a16==7)&&((a1==13)&&((input==3)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))))))))){ + a9 = 7; + a19 = 2; + a20 = 1; + a21 = 10; + a23 = 0; + a5 = 4; + a11 = 0; + a18 = 1; + return -1; + } else if((((a4==1)||(((a13==1)&&((a5==4)&&(((a16==9)&&((a20==1)&&((a12==1)&&(a21==12))))&&(a17==2))))&&(a28==1)))&&(!(a7==1)&&((a12==1)&&(((((a19==3)&&(input==3))&&(a9==9))&&(a1==12))&&!(a14==1)))))){ + a21 = 10; + a4 = 0; + a2 = 1; + a19 = 1; + a16 = 7; + a9 = 7; + a12 = 1; + return -1; + } else if(((!(a27==1)&&((a7==1)||((a21==12)&&(!(a12==1)||((a17==2)&&(!(a20==1)&&((a1==12)&&(a28==1))))))))&&(!(a4==1)&&((a16==10)&&((!(a0==1)&&((a19==4)&&(((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5)))&&(input==5))))&&(a2==1)))))){ + a19 = 3; + a5 = 5; + a27 = 1; + a16 = 8; + a3 = 0; + a1 = 13; + a15 = 0; + a9 = 9; + return -1; + } else if((((a23==1)&&((a1==13)&&((a26==1)||((a16==10)&&((((a13==1)&&(a19==5))&&(a12==1))&&(a21==11))))))&&(!(a8==1)&&(((((a17==2)&&((input==3)&&(((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6))))))&&!(a20==1))&&!(a24==1))&&!(a4==1))))){ + if((a23==1)){ + a9 = 9; + a21 = 10; + a7 = 1; + a16 = 7; + a20 = 1; + a15 = 1; + a5 = 4; + a12 = 0; + a19 = 1; + }else{ + a20 = 1; + a19 = 2; + a21 = 10; + a9 = 7; + a5 = 6; + a4 = 1; + a1 = 12; + a16 = 7; + a26 = 1; + a11 = 0; + } + return 21; + } else if(((!(a20==1)&&((!(a8==1)&&((((!(a18==1)&&(((((a5==4)||(a5==5))&&(input==3))&&(a17==2))&&(a1==13)))&&(a6==1))&&!(a24==1))&&(a6==1)))&&(a19==2)))&&(((((a3==1)&&(a9==10))&&!(a27==1))&&(a21==10))&&(a16==9)))){ + a14 = 1; + a28 = 0; + a9 = 9; + a20 = 1; + a5 = 5; + a19 = 3; + a24 = 1; + a1 = 14; + a21 = 11; + return -1; + } else if(((!(a26==1)&&(!(a7==1)&&(!(a13==1)||((!(a18==1)&&((a19==1)&&((a5==5)&&(a11==1))))&&(a17==2)))))&&(!(a18==1)&&((((a1==12)&&((((a21==10)&&(input==5))&&(a16==7))&&!(a7==1)))&&(a9==9))&&!(a20==1))))){ + a19 = 2; + a9 = 8; + a27 = 0; + a7 = 0; + return 26; + } else if(((!(a24==1)&&((((((a13==1)&&((a17==2)&&(((input==4)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(a1==13))))&&(a19==5))&&(a21==10))&&(a16==10))&&!(a14==1)))&&(((a20==1)&&(((a18==1)||(a13==1))&&!(a24==1)))&&!(a4==1)))){ + a5 = 4; + a16 = 7; + a1 = 12; + a9 = 7; + a4 = 0; + a18 = 0; + a19 = 1; + return -1; + } else if((((!(a0==1)&&(((a3==1)&&(a17==2))&&(a5==6)))||(a0==1))&&((((a6==1)&&((a2==1)&&(((a9==9)&&(((a16==10)&&(((a20==1)&&(input==3))&&(a21==10)))&&(a19==3)))&&!(a7==1))))&&(a1==12))&&(a2==1)))){ + a13 = 1; + a19 = 1; + a3 = 1; + a28 = 1; + a5 = 4; + a16 = 7; + a9 = 7; + return -1; + } else if(((((a21==12)&&((a17==2)&&(((a13==1)&&!(a0==1))&&(a19==2))))&&!(a8==1))&&(!(a8==1)&&((!(a24==1)&&(((((a1==14)&&((input==1)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))))&&(a2==1))&&!(a7==1))&&(a16==11)))&&(a20==1))))){ + a21 = 10; + a19 = 1; + a1 = 12; + a3 = 1; + a9 = 7; + a0 = 0; + a16 = 7; + a5 = 4; + return -1; + } else if((((((a5==5)&&((a9==11)&&(((a21==11)&&((a1==13)&&((input==6)&&(a16==9))))&&!(a7==1))))&&(a2==1))&&(a13==1))&&((a0==1)||((a17==2)&&(((a19==2)&&(!(a18==1)&&((a3==1)&&!(a20==1))))&&(a6==1)))))){ + a20 = 1; + a16 = 8; + a0 = 1; + a1 = 14; + a29 = 1; + a11 = 0; + a19 = 4; + return 25; + } else if(((!(a0==1)&&(((((a19==1)&&((input==6)&&(((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))))&&(a6==1))&&(a16==11))&&(a23==1)))&&(((a8==1)||((((a17==2)&&((a21==12)&&((a3==1)&&(a20==1))))&&(a1==14))||(a14==1)))&&(a3==1)))){ + a24 = 0; + a18 = 0; + a16 = 7; + a21 = 10; + a5 = 4; + a23 = 1; + a9 = 7; + a1 = 12; + return -1; + } else if(((((((((((input==4)&&((a5==5)||(a5==6)))&&(a16==9))&&(a17==2))&&(a20==1))&&(a9==9))&&(a3==1))&&(a1==12))&&(a23==1))&&((a19==2)&&((a21==12)&&((a13==1)&&((((a23==1)||(a27==1))&&(a11==1))&&!(a18==1))))))){ + a11 = 1; + a18 = 0; + a28 = 1; + a19 = 1; + a16 = 7; + a5 = 4; + a21 = 10; + a9 = 7; + return -1; + } else if(((((((a16==10)&&(((((input==1)&&(a19==2))&&!(a20==1))&&!(a26==1))&&(a5==6)))&&(a21==10))&&(a9==8))&&(a17==2))&&(!(a2==1)||((((!(a12==1)||(!(a14==1)&&(a23==1)))&&(a12==1))||!(a6==1))&&(a1==13))))){ + a20 = 1; + a19 = 1; + a1 = 14; + a16 = 7; + a29 = 0; + a14 = 1; + a13 = 0; + a5 = 5; + a9 = 11; + return 23; + } else if((((a1==13)&&(((a19==4)&&((a20==1)&&(!(a12==1)||((a2==1)&&(a17==2)))))&&(a16==7)))&&((a21==12)&&((a13==1)&&(((!(a27==1)&&(!(a7==1)&&((input==3)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))))&&!(a14==1))&&!(a7==1)))))){ + a21 = 10; + a13 = 1; + a5 = 4; + a9 = 7; + a19 = 1; + a14 = 0; + a26 = 0; + a1 = 12; + return -1; + } else if((((a21==10)&&((a19==5)&&(((a13==1)&&((a17==2)&&((!(a20==1)&&(input==3))&&(a9==9))))&&(a16==9))))&&((a13==1)&&((a5==6)&&(!(a13==1)||((((a13==1)&&((a6==1)||(a14==1)))&&(a1==12))&&!(a7==1))))))){ + a6 = 0; + a9 = 7; + a21 = 12; + a5 = 5; + a19 = 2; + a24 = 1; + return -1; + } else if((((a17==2)&&(((a1==14)&&(!(a8==1)&&(((a9==10)&&(((a16==8)&&(input==3))&&!(a18==1)))&&(a21==11))))&&!(a26==1)))&&((!(a7==1)&&((a5==5)&&(!(a2==1)||((a24==1)||((a19==4)&&(a3==1))))))&&(a20==1)))){ + a21 = 10; + a28 = 1; + a18 = 0; + a16 = 7; + a12 = 1; + a9 = 7; + a1 = 12; + a5 = 4; + a19 = 1; + return -1; + } else if((((((a16==8)&&((a13==1)&&(((a11==1)&&(!(a7==1)&&((((((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==6))&&(a17==2))&&(a12==1))))&&(a20==1))))&&(a21==11))&&(a28==1))&&((((a7==1)||(a28==1))&&(a1==13))&&(a19==2)))){ + a4 = 0; + a9 = 7; + a16 = 7; + a1 = 12; + a21 = 10; + a19 = 1; + a5 = 4; + a11 = 1; + a6 = 1; + return -1; + } else if(((!(a20==1)&&((a16==8)&&(((a9==7)&&(!(a4==1)&&(((!(a7==1)&&(a28==1))&&!(a0==1))&&!(a27==1))))&&(a19==1))))&&((a17==2)&&((((a2==1)&&((a21==10)&&((input==5)&&((a5==6)||((a5==4)||(a5==5))))))&&(a12==1))&&(a1==13))))){ + a6 = 1; + a13 = 1; + a20 = 1; + a19 = 2; + a1 = 12; + a16 = 9; + a9 = 8; + a7 = 0; + a21 = 12; + a5 = 6; + return 25; + } else if(((((a6==1)&&((a21==11)&&(!(a20==1)&&((input==1)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5)))))))&&(a11==1))&&(!(a28==1)||(((a17==2)&&(((a19==1)&&((a16==10)&&(((a23==1)&&(a2==1))&&(a23==1))))&&(a1==14)))||(a14==1))))){ + a11 = 0; + a19 = 2; + a20 = 1; + a9 = 9; + a24 = 1; + a21 = 10; + a16 = 7; + a5 = 5; + a1 = 12; + return -1; + } else if(((((a9==7)&&(a28==1))&&(a19==2))&&(((a3==1)&&(((a21==11)&&(((a16==8)&&((a20==1)&&((!(a26==1)&&((a5==5)&&(((a17==2)&&(input==4))&&!(a27==1))))&&(a1==13))))&&!(a24==1)))&&(a11==1)))&&!(a7==1)))){ + a5 = 4; + a3 = 1; + a1 = 12; + a11 = 1; + a19 = 1; + a21 = 10; + a16 = 7; + return -1; + } else if(((((((a17==2)&&(((a19==4)&&(((((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))&&(input==1))&&(a20==1))&&!(a27==1)))&&(a16==7)))&&!(a27==1))&&!(a18==1))&&!(a14==1))&&((!(a4==1)&&(((a13==1)||(a0==1))&&(a21==11)))&&(a1==13)))){ + if((a9==11)){ + a16 = 8; + a21 = 10; + a20 = 0; + a3 = 1; + a2 = 1; + a9 = 9; + a19 = 2; + a5 = 5; + a26 = 0; + }else{ + a9 = 11; + a16 = 8; + a7 = 0; + a19 = 3; + a18 = 0; + a5 = 5; + a8 = 0; + a1 = 14; + } + return 22; + } else if((((a21==12)&&((((a16==10)&&(input==4))&&(a5==4))&&(a1==12)))&&((((!(a7==1)&&(((a9==10)&&((a19==3)&&(!(a4==1)&&((a20==1)&&((a7==1)||(a12==1))))))&&(a6==1)))||!(a12==1))&&(a17==2))||(a8==1)))){ + a21 = 10; + a26 = 0; + a16 = 7; + a18 = 0; + a19 = 1; + a13 = 1; + a9 = 7; + return -1; + } else if(((((a21==12)&&(((((a5==6)&&(((input==5)&&(a9==10))&&!(a26==1)))&&(a23==1))&&(a17==2))&&(a16==7)))&&!(a18==1))&&(((a27==1)||((a20==1)&&(((a19==2)&&((a1==13)&&(a12==1)))&&(a12==1))))&&(a23==1)))){ + a16 = 9; + a0 = 0; + a19 = 3; + a21 = 10; + a5 = 4; + a26 = 0; + return 21; + } else if((((a19==3)&&((a17==2)&&(((a1==13)&&((((((a23==1)&&!(a4==1))||(a27==1))&&(a16==9))||(a18==1))&&!(a20==1)))&&(a9==7))))&&((a21==10)&&(!(a0==1)&&(((((a5==4)||(a5==5))&&(input==6))&&!(a27==1))&&(a13==1)))))){ + if((a16==10)){ + a9 = 10; + a16 = 7; + a21 = 12; + a5 = 6; + a4 = 1; + a11 = 0; + a1 = 14; + a2 = 0; + }else{ + a19 = 1; + a1 = 12; + a20 = 1; + a9 = 9; + a4 = 1; + a23 = 0; + a5 = 5; + a3 = 0; + a16 = 7; + } + return 25; + } else if((((a19==3)&&(((a17==2)&&((a21==12)&&((a2==1)&&(!(a7==1)&&((a12==1)&&((((input==6)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&!(a4==1))&&(a12==1)))))))&&(a20==1)))&&((a23==1)&&((a16==11)&&((a3==1)&&(a1==14)))))){ + a7 = 0; + a1 = 13; + a5 = 6; + a12 = 1; + a19 = 5; + a27 = 0; + a9 = 7; + return 25; + } else if((((((a28==1)&&((a16==11)&&((a20==1)&&((((input==1)&&(((a19==4)&&((a9==7)&&((a1==12)&&(a5==4))))||(((a19==3)&&((a9==11)&&((a1==14)&&(a5==5))))||((((a1==14)&&(a5==6))&&(a9==11))&&(a19==3)))))&&(a17==2))&&(a21==11)))))&&!(a4==1))&&!(a26==1))&&(!(a2==1)||(((a3==1)&&(a6==1))||!(a3==1))))){ + a21 = 10; + a16 = 7; + a1 = 12; + a19 = 1; + a23 = 1; + a5 = 4; + a0 = 0; + a4 = 0; + a9 = 7; + return -1; + } else if((((!(a18==1)&&((a21==10)&&(!(a0==1)&&(((a5==4)||(a5==5))&&(input==3)))))&&(a19==1))&&((a9==9)&&((a3==1)&&((((((((a2==1)&&(a16==10))||(a0==1))&&(a2==1))&&(a1==14))&&(a20==1))&&(a17==2))||(a14==1)))))){ + a12 = 1; + a9 = 7; + a26 = 0; + a5 = 4; + a8 = 0; + a1 = 12; + a16 = 7; + return -1; + } else if((((a21==11)&&((!(a4==1)&&(!(a26==1)&&(!(a4==1)&&(!(a20==1)&&(((((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8)))&&(input==1))))))&&(a1==12)))&&((a19==4)&&((a17==2)&&((a4==1)||((a12==1)&&(((a13==1)&&(a16==8))||(a14==1)))))))){ + a14 = 0; + a19 = 5; + a21 = 12; + a9 = 7; + a0 = 0; + a5 = 4; + a18 = 0; + a20 = 1; + a1 = 13; + return -1; + } else if(((!(a4==1)&&(((((!(a26==1)&&(((((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a9==9))&&!(a26==1))&&!(a20==1))&&(a17==2)))&&(a21==12))&&(a16==7))&&(a19==4))&&(a13==1)))&&(((a28==1)&&((a14==1)||(a2==1)))&&(a1==12)))){ + a20 = 1; + a7 = 0; + a5 = 6; + a28 = 1; + a21 = 10; + a19 = 2; + a13 = 1; + a9 = 10; + a1 = 14; + return 21; + } else if(((((a26==1)||((a1==14)&&(!(a20==1)&&(((a16==10)&&((a19==5)&&(a28==1)))||(a26==1)))))&&!(a26==1))&&(!(a14==1)&&((a12==1)&&(((((input==5)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9))))&&(a17==2))&&!(a24==1))&&(a21==12)))))){ + a29 = 1; + a13 = 0; + a1 = 12; + a10 = 0; + a5 = 6; + a16 = 8; + a21 = 11; + a9 = 11; + return 26; + } else if((((a17==2)&&((((a26==1)||((a28==1)&&!(a0==1)))&&(a2==1))&&(a16==9)))&&((a19==4)&&(((!(a20==1)&&((a12==1)&&(((a1==14)&&((input==1)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))))&&(a13==1))))&&(a6==1))&&(a21==11))))){ + if((a28==1)){ + a21 = 10; + a19 = 1; + a20 = 1; + a3 = 0; + a15 = 0; + a26 = 1; + a5 = 4; + a16 = 7; + a9 = 10; + }else{ + a24 = 1; + a19 = 2; + a27 = 1; + a16 = 10; + a5 = 5; + a10 = 0; + a9 = 10; + } + return 21; + } else if(((((a26==1)&&((((((a17==2)&&((a28==1)&&(a19==1)))&&(a21==12))&&(a16==7))&&(a20==1))&&(a27==1)))&&!(a6==1))&&((((((input==3)&&(((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))))&&(a1==14))&&(a4==1))&&(a24==1))&&!(a2==1)))){ + a3 = 0; + a19 = 3; + a7 = 1; + a16 = 10; + a9 = 9; + a21 = 11; + a1 = 12; + a5 = 6; + a22 = 1; + return -1; + } else if(((((a1==12)&&((a21==11)&&(input==4)))&&(a11==1))&&(((a5==4)&&((a19==4)&&((a16==8)&&(((a11==1)&&((a3==1)&&((a14==1)||((a9==7)&&((a3==1)&&((a2==1)&&(a23==1)))))))&&(a20==1)))))&&(a17==2)))){ + a19 = 1; + a11 = 1; + a27 = 0; + a21 = 10; + a8 = 0; + a16 = 7; + return -1; + } else if((((a19==2)&&(((a1==14)&&(((a6==1)||(a27==1))&&(a17==2)))&&(a21==11)))&&((a16==8)&&((!(a26==1)&&((!(a18==1)&&((!(a20==1)&&((a11==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5))))))&&(a12==1)))&&!(a0==1)))&&(a9==10))))){ + a27 = 0; + a20 = 1; + a5 = 4; + a21 = 10; + a26 = 0; + a9 = 7; + a23 = 1; + a19 = 5; + return 25; + } else if((((a7==1)||(((a21==11)&&((((a19==1)&&((a2==1)&&(a1==13)))&&!(a4==1))&&(a16==9)))&&(a9==11)))&&(((!(a27==1)&&((((a17==2)&&(((a5==5)||(a5==6))&&(input==5)))&&(a20==1))&&(a28==1)))&&!(a27==1))&&!(a4==1)))){ + a19 = 2; + a5 = 5; + a9 = 10; + a3 = 1; + a2 = 1; + a21 = 10; + a1 = 14; + return 21; + } else if((((a6==1)&&((!(a18==1)&&((((a20==1)&&(((a2==1)&&((input==4)&&(((((a1==13)&&(a5==5))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==13))))||(((a1==14)&&(a5==4))&&(a9==7)))))&&(a19==1)))&&(a17==2))&&(a16==11)))&&(a21==12)))&&((!(a4==1)&&((a12==1)&&(a28==1)))&&(a2==1)))){ + a1 = 14; + a9 = 11; + a19 = 5; + a5 = 4; + a16 = 8; + a6 = 1; + a7 = 0; + a28 = 1; + return 25; + } else if((((((a9==7)&&((a16==11)&&(((a0==1)&&(a12==1))&&(a20==1))))&&!(a11==1))&&(a27==1))&&((a21==10)&&(!(a3==1)&&(!(a13==1)&&((a19==2)&&(((a1==13)&&((((a5==5)||(a5==6))&&(input==3))&&(a17==2)))&&!(a23==1)))))))){ + a6 = 0; + a12 = 0; + a16 = 7; + a24 = 1; + a9 = 11; + a20 = 0; + a19 = 1; + a5 = 4; + a1 = 14; + a21 = 12; + return -1; + } else if((((a21==11)&&((a9==7)&&(((a1==14)&&((a7==1)&&((a4==1)&&((a24==1)&&(a23==1)))))&&(a17==2))))&&((a5==5)&&(((a19==5)&&(((a24==1)&&((a24==1)&&((input==3)&&(a16==7))))&&(a8==1)))&&(a20==1))))){ + a19 = 3; + a13 = 0; + a5 = 6; + a16 = 11; + a1 = 13; + a21 = 10; + a10 = 1; + a15 = 0; + a9 = 9; + return 21; + } else if((((a21==11)&&(((a20==1)&&(((a7==1)||((a11==1)&&(a16==7)))&&(a13==1)))&&(a9==10)))&&((!(a24==1)&&((a1==12)&&((!(a18==1)&&((a17==2)&&((a28==1)&&(((a5==5)||(a5==6))&&(input==4)))))&&(a6==1))))&&(a19==3)))){ + a2 = 1; + a26 = 0; + a21 = 10; + a11 = 1; + a9 = 7; + a19 = 1; + a5 = 4; + return -1; + } else if(((((((a6==1)&&(a9==11))&&(a16==9))&&!(a26==1))&&(a1==12))&&(!(a7==1)&&(((((a19==5)&&(((a20==1)&&(!(a7==1)&&((a21==12)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6))))))&&(a13==1)))&&(a23==1))&&(a17==2))&&(a3==1))))){ + a14 = 0; + a1 = 14; + a21 = 10; + a19 = 2; + a5 = 6; + a9 = 9; + a23 = 1; + return 21; + } else if(((((a1==14)&&((a21==10)&&((a17==2)&&(!(a13==1)||(!(a18==1)&&((a19==5)&&(a13==1)))))))&&(a20==1))&&((a16==8)&&(((a12==1)&&((a13==1)&&(!(a0==1)&&((input==3)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))))))&&(a2==1))))){ + a16 = 10; + a4 = 0; + a19 = 2; + a12 = 1; + a1 = 13; + a24 = 0; + a5 = 5; + a9 = 10; + return 26; + } else if(((!(a3==1)||(((((a16==7)&&((a9==8)&&(a2==1)))&&!(a7==1))||(a27==1))&&(a19==1)))&&(((a20==1)&&(!(a26==1)&&(!(a8==1)&&((a17==2)&&((a1==13)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&!(a0==1)))))))&&(a21==11)))){ + a1 = 12; + a8 = 0; + a5 = 4; + a28 = 1; + a6 = 1; + a9 = 7; + a21 = 10; + return -1; + } else if((((a21==12)&&((((a17==2)&&((a12==1)&&(((input==4)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10))))&&!(a20==1))))&&(a19==4))&&(a3==1)))&&((a1==12)&&(((((a24==1)||((a16==9)&&(a28==1)))||!(a28==1))||!(a3==1))||!(a2==1))))){ + a19 = 1; + a26 = 1; + a9 = 8; + a3 = 0; + a1 = 14; + a8 = 1; + a21 = 10; + a20 = 1; + a5 = 6; + a16 = 11; + return 22; + } else if((((((a8==1)&&(!(a13==1)&&(((a7==1)&&(((a19==2)&&(input==6))&&(a5==6)))&&(a9==7))))&&(a21==12))&&(a16==7))&&((!(a20==1)&&(((a1==12)&&(((a4==1)&&(a11==1))&&(a14==1)))&&(a26==1)))&&(a17==2)))){ + a20 = 1; + a9 = 10; + a21 = 10; + a4 = 1; + a27 = 1; + a16 = 9; + a19 = 5; + a25 = 1; + a1 = 14; + return 26; + } else if((((a19==2)&&((!(a20==1)&&(((((a1==12)&&(!(a3==1)||(a11==1)))||(a0==1))&&(a21==10))&&(a6==1)))&&(a9==9)))&&(((((!(a7==1)&&(((a5==4)||(a5==5))&&(input==6)))&&(a3==1))&&(a17==2))&&(a28==1))&&(a16==8)))){ + a9 = 7; + a16 = 7; + a20 = 1; + a5 = 4; + a12 = 1; + a19 = 1; + a28 = 1; + return -1; + } else if(((((a16==9)&&(!(a20==1)&&((a1==14)&&(a28==1))))||(a4==1))&&((((((a21==10)&&((a11==1)&&((!(a7==1)&&(((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a2==1)))&&(a19==5))))&&(a17==2))&&!(a26==1))&&(a9==10))&&(a2==1)))){ + if((a23==1)){ + a9 = 11; + a10 = 0; + a19 = 2; + a5 = 4; + a3 = 0; + a23 = 0; + a16 = 8; + }else{ + a2 = 0; + a19 = 4; + a20 = 1; + a9 = 7; + a16 = 7; + a5 = 6; + a22 = 1; + a21 = 11; + a29 = 1; + } + return 25; + } else if(((!(a20==1)&&(((a17==2)&&((a19==2)&&((a21==11)&&((((a18==1)&&(((input==4)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&!(a23==1)))&&!(a12==1))&&(a4==1)))))&&(a16==8)))&&((!(a2==1)&&((a11==1)&&!(a12==1)))&&(a1==13)))){ + a25 = 0; + a1 = 12; + a9 = 8; + a16 = 7; + a20 = 1; + a21 = 10; + a19 = 1; + a28 = 0; + a5 = 4; + a2 = 0; + return 21; + } else if(((((((a21==12)&&(!(a24==1)&&(((((a5==4)||(a5==5))&&(input==1))&&!(a4==1))&&(a1==12))))&&(a9==7))&&!(a20==1))&&(a19==3))&&((a16==9)&&(((a4==1)||(!(a23==1)||((a14==1)||((a6==1)&&(a23==1)))))&&(a17==2))))){ + a21 = 11; + a18 = 1; + a19 = 2; + a5 = 4; + a15 = 0; + a16 = 7; + a28 = 0; + return 25; + } else if(((((((a20==1)&&(((a1==12)&&((((a21==11)&&(a6==1))&&(a13==1))&&(a3==1)))||!(a13==1)))||!(a28==1))||!(a3==1))&&(a17==2))&&((a16==10)&&(((a19==1)&&((input==4)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))))&&(a6==1))))){ + a5 = 4; + a9 = 7; + a16 = 7; + a14 = 0; + a21 = 10; + a0 = 0; + a11 = 1; + return -1; + } else if(((((a9==10)&&((((a19==3)&&(((((input==6)&&(a5==6))&&!(a4==1))&&!(a7==1))&&(a17==2)))&&(a21==10))&&(a11==1)))&&(a1==14))&&(!(a3==1)||((((a23==1)&&((a12==1)&&(a23==1)))&&!(a20==1))&&(a16==8))))){ + a12 = 1; + a20 = 1; + a9 = 8; + a16 = 7; + a5 = 4; + a21 = 11; + a24 = 0; + a23 = 1; + return 23; + } else if((((((a19==2)&&(!(a2==1)||(((a14==1)||(!(a4==1)&&(a12==1)))&&(a12==1))))&&(a17==2))&&(a21==10))&&(((!(a27==1)&&((a28==1)&&((((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))&&(input==4))&&(a16==10))))&&!(a20==1))&&(a1==12)))){ + if((a26==1)){ + a5 = 6; + a25 = 0; + a19 = 4; + a16 = 8; + a11 = 0; + a9 = 10; + a22 = 1; + a20 = 1; + }else{ + a27 = 1; + a16 = 7; + a22 = 1; + a9 = 9; + a28 = 0; + a20 = 1; + a5 = 5; + } + return 21; + } else if(((!(a14==1)&&((a21==11)&&((a3==1)&&((!(a20==1)&&((a17==2)&&((a12==1)&&(a12==1))))&&!(a26==1)))))&&(((a13==1)&&(((a1==12)&&((a16==7)&&((input==4)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10))))))&&(a19==2)))&&(a11==1)))){ + a3 = 1; + a21 = 12; + a5 = 5; + a18 = 0; + a1 = 13; + a19 = 3; + a16 = 8; + a9 = 10; + a20 = 1; + a12 = 1; + return 23; + } else if((((a19==1)&&(((a17==2)&&(((!(a14==1)&&((a2==1)&&!(a24==1)))&&(a1==12))||!(a13==1)))&&(a16==9)))&&((a21==10)&&(((a2==1)&&(((a12==1)&&((input==1)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))))&&(a20==1)))&&!(a8==1))))){ + a1 = 14; + a5 = 5; + a16 = 10; + a28 = 1; + a19 = 3; + a6 = 1; + a9 = 8; + return 21; + } else if((((a16==8)&&((a17==2)&&((((a19==4)&&(((a8==1)||((a28==1)&&(a23==1)))&&(a28==1)))&&!(a4==1))&&!(a4==1))))&&((a21==12)&&((a20==1)&&((a1==12)&&(!(a0==1)&&((a9==11)&&((input==3)&&((a5==5)||(a5==6)))))))))){ + a5 = 4; + a16 = 7; + a27 = 0; + a18 = 0; + a21 = 10; + a23 = 1; + a9 = 7; + a19 = 1; + return -1; + } else if((((a16==8)&&((a8==1)||((a1==12)&&(!(a24==1)&&((a21==12)&&((a8==1)||(((a2==1)||!(a12==1))||!(a11==1))))))))&&(((a5==5)&&(((a9==8)&&((a17==2)&&((input==1)&&(a20==1))))&&(a19==5)))&&!(a24==1)))){ + a19 = 4; + a16 = 7; + a9 = 10; + a1 = 14; + a18 = 0; + a14 = 0; + a21 = 10; + return 25; + } else if(((((a1==13)&&((a3==1)&&(a16==8)))&&(a2==1))&&(!(a27==1)&&((a17==2)&&(!(a24==1)&&(((a23==1)&&((!(a7==1)&&(((a20==1)&&((input==6)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))))&&!(a0==1)))&&(a21==12)))&&(a19==4))))))){ + a28 = 1; + a16 = 7; + a9 = 7; + a21 = 10; + a5 = 4; + a1 = 12; + a19 = 1; + a12 = 1; + return -1; + } else if(((((a26==1)||(((a20==1)&&((!(a8==1)&&((a16==9)&&(a11==1)))||(a0==1)))&&(a1==14)))&&!(a4==1))&&((!(a27==1)&&((((a9==10)&&(((input==6)&&((a5==5)||(a5==6)))&&(a17==2)))&&(a19==5))&&(a21==10)))&&(a11==1)))){ + a5 = 4; + a19 = 1; + a1 = 12; + a28 = 1; + a16 = 7; + a7 = 0; + a9 = 7; + return -1; + } else if(((!(a0==1)&&(((a2==1)&&((((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a26==1))&&!(a24==1)))&&(a19==1)))&&((((a4==1)||((a17==2)&&(((((a28==1)&&!(a20==1))&&(a16==9))||!(a11==1))&&(a1==14))))&&(a9==9))&&(a21==11)))){ + a12 = 0; + a5 = 5; + a1 = 13; + a28 = 0; + a20 = 1; + a16 = 10; + a26 = 1; + a9 = 11; + return -1; + } else if((((((a17==2)&&(((a19==3)&&((((a5==4)||(a5==5))&&(input==1))&&(a3==1)))&&(a11==1)))&&(a23==1))&&(a21==12))&&((!(a20==1)&&((a9==10)&&((a13==1)&&(((a1==13)&&((a13==1)||!(a6==1)))&&!(a24==1)))))&&(a16==10)))){ + a21 = 10; + a29 = 1; + a19 = 1; + a20 = 1; + a28 = 0; + a5 = 5; + a16 = 7; + a1 = 14; + a9 = 11; + a11 = 0; + return 23; + } else if(((((!(a6==1)||(a12==1))&&(a16==9))||(a27==1))&&((a23==1)&&((((a19==4)&&((a1==13)&&(((a17==2)&&((a21==10)&&((((input==3)&&((a5==4)||(a5==5)))&&(a9==9))&&(a20==1))))&&(a28==1))))&&(a28==1))&&!(a18==1))))){ + a9 = 7; + a24 = 0; + a8 = 0; + a1 = 12; + a5 = 4; + a3 = 1; + a16 = 7; + a19 = 1; + return -1; + } else if((((a12==1)&&((a6==1)&&((a21==11)&&(!(a20==1)&&(((a16==8)&&((a19==3)&&(((input==5)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5))))&&!(a26==1))))&&!(a7==1))))))&&(((a1==14)&&(((a17==2)&&(a12==1))||(a26==1)))||(a4==1)))){ + a5 = 4; + a20 = 1; + a8 = 0; + a6 = 1; + a9 = 7; + a12 = 1; + a21 = 10; + a19 = 1; + a1 = 12; + a16 = 7; + return -1; + } else if((((!(a24==1)&&((((((((((a1==14)&&(a5==5))&&(a9==11))&&(a19==4))||((((a1==14)&&(a5==6))&&(a9==11))&&(a19==4)))||((a19==5)&&(((a1==12)&&(a5==4))&&(a9==7))))&&(input==3))&&(a17==2))&&(a6==1))&&!(a8==1)))&&(a3==1))&&((((a21==10)&&((a20==1)&&(!(a8==1)&&(a12==1))))&&(a16==9))||!(a3==1)))){ + a1 = 12; + a12 = 1; + a21 = 11; + a23 = 1; + a19 = 5; + a5 = 4; + a9 = 11; + a26 = 0; + return 21; + } else if(((((a17==2)&&((input==3)&&((a5==4)||(a5==5))))&&(a19==5))&&((a16==9)&&(((a9==11)&&(((a11==1)&&((a21==12)&&(!(a11==1)||(!(a13==1)||((a7==1)||(((a3==1)||!(a3==1))&&!(a14==1)))))))&&!(a20==1)))&&(a1==14))))){ + a19 = 1; + a20 = 1; + a25 = 0; + a23 = 0; + a11 = 0; + a1 = 13; + a5 = 5; + a16 = 7; + return -1; + } else if(((((a21==10)&&((a17==2)&&(((((a11==1)&&(((a5==5)||(a5==6))&&(input==4)))&&(a19==2))&&(a23==1))&&!(a7==1))))&&(a28==1))&&((a9==8)&&(((a16==8)&&((a1==12)&&(((a11==1)&&(a28==1))&&!(a20==1))))||(a26==1))))){ + a7 = 0; + a5 = 5; + a1 = 13; + a19 = 1; + a20 = 1; + a16 = 9; + a9 = 9; + a12 = 1; + return 26; + } else if((((!(a6==1)&&((a9==8)&&((!(a20==1)&&(((a1==13)&&((input==5)&&((a5==4)||(a5==5))))&&(a17==2)))&&(a21==11))))&&(a14==1))&&((a18==1)&&((a8==1)&&((a16==8)&&((((a19==3)&&(a11==1))&&(a0==1))&&!(a13==1))))))){ + a1 = 14; + a21 = 12; + a9 = 7; + a20 = 1; + a0 = 1; + a28 = 0; + a5 = 6; + return -1; + } else if((((a19==5)&&((a17==2)&&(((((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6))))&&(input==6))&&(a12==1))))&&(((a20==1)&&((((a7==1)||((a16==11)&&(!(a14==1)&&(((a21==12)&&(a2==1))&&!(a24==1)))))||!(a12==1))&&!(a27==1)))&&(a1==14)))){ + a16 = 8; + a21 = 11; + a7 = 0; + a3 = 1; + a1 = 12; + a14 = 0; + a20 = 0; + a9 = 8; + a5 = 5; + return 21; + } else if(((!(a24==1)&&(((a12==1)&&((a3==1)&&((!(a4==1)&&((a2==1)&&((((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==4))&&(a3==1))&&(a16==10))))&&(a21==11))))&&(a1==14)))&&((a17==2)&&(((a12==1)&&(a20==1))&&(a19==5))))){ + a11 = 1; + a5 = 4; + a3 = 1; + a8 = 0; + a9 = 7; + a16 = 7; + a1 = 12; + a21 = 10; + a19 = 1; + return -1; + } else if(((((a0==1)||(!(a4==1)&&(((a19==4)&&((a16==10)&&((a28==1)&&!(a27==1))))&&!(a4==1))))&&(a17==2))&&(!(a8==1)&&(((((a21==11)&&(((a5==4)&&(input==1))&&(a13==1)))&&(a1==14))&&!(a20==1))&&(a9==8))))){ + if((a14==1)){ + a29 = 0; + a19 = 1; + a3 = 0; + a16 = 7; + a18 = 1; + a5 = 6; + a1 = 13; + a20 = 1; + a21 = 10; + a9 = 10; + }else{ + a16 = 7; + a19 = 1; + a8 = 1; + a21 = 10; + a20 = 1; + a14 = 1; + a3 = 0; + a9 = 9; + } + return -1; + } else if(((((a16==9)&&((a1==13)&&(((((a5==6)&&((input==3)&&(a17==2)))&&!(a0==1))&&(a23==1))&&!(a20==1))))&&(a19==2))&&((!(a4==1)&&(!(a18==1)&&(!(a6==1)||(!(a18==1)&&((a3==1)&&(a9==8))))))&&(a21==12)))){ + a1 = 12; + a13 = 0; + a21 = 10; + a20 = 1; + a15 = 1; + a9 = 9; + a5 = 4; + a16 = 7; + a12 = 0; + a19 = 1; + return -1; + } else if(((!(a0==1)&&(((a6==1)&&((a21==11)&&((a12==1)||!(a13==1))))&&!(a14==1)))&&(((a1==14)&&((a5==5)&&(((!(a7==1)&&((a16==7)&&((a12==1)&&((a20==1)&&(input==6)))))&&(a17==2))&&(a9==9))))&&(a19==2)))){ + a19 = 4; + a26 = 0; + a24 = 0; + a1 = 12; + a5 = 6; + a9 = 11; + a21 = 10; + a16 = 8; + a12 = 1; + return 25; + } else if(((((a16==11)&&((((((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a20==1))&&!(a14==1))&&(a28==1))&&(a21==12)))&&(a13==1))&&((((!(a18==1)&&((a19==2)&&((a1==12)&&((a17==2)&&(a12==1)))))&&(a9==10))||(a24==1))||!(a28==1)))){ + a28 = 1; + a9 = 7; + a19 = 1; + a21 = 10; + a16 = 7; + a5 = 4; + a26 = 0; + a8 = 0; + return -1; + } else if(((!(a0==1)&&(!(a27==1)&&((a3==1)&&(((a1==14)&&((a17==2)&&((input==3)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))))&&(a3==1)))))&&((((a21==12)&&((!(a20==1)&&((a19==5)&&(a11==1)))&&(a6==1)))&&(a3==1))&&(a16==10)))){ + a1 = 12; + a21 = 10; + a4 = 1; + a9 = 7; + a20 = 1; + a15 = 1; + a5 = 5; + a0 = 1; + a16 = 7; + a19 = 2; + return -1; + } else if(((!(a20==1)&&((((input==5)&&(a5==5))&&!(a8==1))&&(a6==1)))&&((a17==2)&&(((a19==2)&&(((!(a24==1)&&(!(a28==1)||((a3==1)&&((a9==11)&&((a24==1)||(a12==1))))))&&(a16==7))&&(a21==11)))&&(a1==13))))){ + a4 = 0; + a5 = 6; + a18 = 0; + a16 = 10; + a23 = 1; + a20 = 1; + a21 = 12; + a19 = 5; + return 25; + } else if((((((a6==1)&&((a1==14)&&((a19==2)&&((a20==1)&&((a17==2)&&(((a16==11)&&((((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&(input==1)))&&(a6==1)))))))&&!(a4==1))&&!(a4==1))&&(((a21==12)&&((a6==1)&&(a12==1)))||(a26==1)))){ + a5 = 4; + a19 = 5; + a6 = 1; + a21 = 11; + a0 = 0; + a9 = 7; + return 21; + } else if(((((((((a27==1)||((((a13==1)&&(a23==1))&&(a9==9))||(a27==1)))&&(a21==10))&&(a28==1))&&!(a20==1))&&(a5==5))&&(a19==5))&&((a17==2)&&(((((input==1)&&(a1==12))&&(a16==9))&&(a13==1))&&(a2==1))))){ + if((a23==1)){ + a13 = 0; + a1 = 13; + a10 = 1; + a19 = 1; + a9 = 10; + a16 = 7; + a20 = 1; + }else{ + a16 = 10; + a1 = 13; + a21 = 12; + a9 = 7; + a19 = 2; + a20 = 1; + a10 = 1; + a11 = 0; + a13 = 0; + a5 = 4; + } + return 23; + } else if((((a1==14)&&((a17==2)&&((a12==1)&&(!(a24==1)&&((input==3)&&(((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))))))))&&((a4==1)||((a19==5)&&(!(a13==1)||((a26==1)||(((a21==11)&&((a16==7)&&((a20==1)&&(a11==1))))||(a27==1)))))))){ + a9 = 7; + a27 = 0; + a1 = 12; + a19 = 1; + a0 = 0; + a5 = 4; + a21 = 10; + a11 = 1; + return -1; + } else if((((a2==1)&&((((((a16==9)&&(((a19==5)&&(input==4))&&(a1==14)))&&!(a18==1))&&(a17==2))&&(a6==1))&&(a9==8)))&&(!(a2==1)||((a7==1)||((((!(a20==1)&&(a12==1))&&(a5==6))&&(a21==10))&&!(a24==1)))))){ + a12 = 0; + a1 = 13; + a11 = 0; + a20 = 1; + a9 = 10; + a16 = 7; + a23 = 0; + a19 = 1; + return -1; + } return calculate_output42(input); + } + + int calculate_output42(int input) { + if((((a16==11)&&((a1==12)&&((a20==1)&&(!(a14==1)&&(((a17==2)&&(((((a5==5)||(a5==6))&&(input==6))&&(a9==8))&&(a21==10)))&&!(a8==1))))))&&((!(a12==1)||(((a4==1)||((a23==1)&&(a19==4)))&&(a12==1)))&&(a12==1)))){ + a7 = 0; + a5 = 5; + a14 = 0; + a16 = 9; + a19 = 1; + a8 = 0; + return 25; + } else if(((((!(a28==1)||((a17==2)&&(((a21==12)&&((a26==1)||(a28==1)))&&!(a20==1))))&&(a19==5))||!(a12==1))&&(((a6==1)&&((a1==12)&&((a9==9)&&(((a16==9)&&(((a5==4)||(a5==5))&&(input==4)))&&(a23==1)))))&&!(a7==1)))){ + a16 = 7; + a20 = 1; + a1 = 13; + a27 = 1; + a19 = 1; + a9 = 11; + a25 = 1; + a5 = 4; + a21 = 10; + a4 = 1; + return -1; + } else if(((((!(a27==1)&&(((((((input==4)&&((a5==5)||(a5==6)))&&(a12==1))&&!(a18==1))&&!(a18==1))&&(a17==2))&&(a20==1)))&&(a1==12))&&(a9==7))&&((a21==11)&&(((((a11==1)&&(a11==1))&&(a19==1))&&(a13==1))&&(a16==9))))){ + if((a5==4)){ + a1 = 14; + a5 = 5; + a20 = 0; + a0 = 0; + a19 = 3; + a8 = 0; + a9 = 11; + a2 = 1; + a16 = 7; + }else{ + a5 = 5; + a9 = 8; + a16 = 8; + a1 = 13; + a4 = 0; + a8 = 0; + a24 = 0; + } + return 25; + } else if((((a17==2)&&(((a19==1)&&((a13==1)&&((a12==1)&&((a5==5)&&((a20==1)&&((a1==14)&&((input==1)&&(a16==11))))))))&&(a11==1)))&&(!(a13==1)||(((a21==11)&&(((a9==10)&&(a2==1))||(a18==1)))||!(a13==1))))){ + a9 = 7; + a21 = 10; + a16 = 7; + a7 = 0; + a1 = 12; + a5 = 4; + a8 = 0; + a13 = 1; + return -1; + } else if((((a19==5)&&((a1==13)&&((a16==10)&&((a17==2)&&((a27==1)||((a12==1)&&(a12==1)))))))&&((((!(a4==1)&&((((input==1)&&(((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))))&&!(a7==1))&&!(a26==1)))&&!(a20==1))&&(a2==1))&&(a21==10)))){ + a11 = 0; + a19 = 4; + a9 = 10; + a22 = 1; + a16 = 7; + a1 = 14; + a5 = 4; + return 21; + } else if((((a1==14)&&((((((a18==1)&&(((a20==1)&&(!(a6==1)&&(a23==1)))&&(a24==1)))&&!(a3==1))&&(a9==7))&&!(a13==1))&&(a21==12)))&&((((a27==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&(a16==10)))&&(a19==4))&&(a17==2)))){ + a19 = 1; + a5 = 6; + a16 = 7; + a0 = 1; + a20 = 0; + a8 = 1; + a29 = 1; + a9 = 8; + a1 = 12; + return 23; + } else if((((a17==2)&&(((a19==3)&&((!(a14==1)&&((a13==1)&&((a16==8)&&((a28==1)&&((((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&(a9==9))&&!(a26==1))))))&&(a12==1)))&&(a21==11)))&&(((a28==1)&&((a28==1)&&(a1==12)))&&(a20==1)))){ + a9 = 7; + a21 = 10; + a5 = 4; + a18 = 0; + a16 = 7; + a8 = 0; + a0 = 0; + a19 = 1; + return -1; + } else if((((a13==1)&&((a23==1)&&((a17==2)&&((a20==1)&&((a16==8)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))))))&&(((((a21==11)&&(((a4==1)||((!(a8==1)&&(a2==1))&&(a9==10)))&&(a19==5)))&&(a1==12))||(a27==1))&&(a23==1)))){ + a19 = 1; + a5 = 4; + a28 = 1; + a18 = 0; + a9 = 7; + a23 = 1; + a21 = 10; + a16 = 7; + return -1; + } else if(((((a1==12)&&((a3==1)&&(!(a6==1)||((a19==3)&&((a5==6)&&(a13==1))))))&&(a11==1))&&(((!(a18==1)&&((!(a18==1)&&((((input==6)&&(a21==12))&&(a17==2))&&(a16==9)))&&(a9==11)))&&(a20==1))&&!(a18==1)))){ + a28 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + a12 = 1; + a4 = 0; + a21 = 10; + a19 = 1; + return -1; + } else if(((((a9==10)&&((a2==1)&&((a23==1)&&(((a5==4)||(a5==5))&&(input==5)))))&&(a12==1))&&(((a24==1)||(((a20==1)&&((a27==1)||((a21==11)&&((a28==1)&&((a19==4)&&((a16==9)&&(a2==1)))))))&&(a17==2)))&&(a1==12)))){ + if((a13==1)){ + a3 = 1; + a9 = 8; + a5 = 5; + a6 = 1; + a20 = 0; + a16 = 8; + }else{ + a11 = 1; + a5 = 4; + a2 = 1; + a21 = 10; + a19 = 2; + a16 = 7; + a3 = 1; + a1 = 13; + } + return 21; + } else if((((a17==2)&&(!(a3==1)||((a19==5)&&((a12==1)&&(a13==1)))))&&(!(a7==1)&&((!(a20==1)&&(!(a0==1)&&(((a21==11)&&(((((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4)))&&(input==5))&&(a1==13))&&(a16==7)))&&(a23==1))))&&!(a26==1))))){ + a4 = 0; + a16 = 8; + a9 = 7; + a21 = 10; + a5 = 4; + a20 = 1; + a6 = 1; + a28 = 1; + return -1; + } else if(((!(a8==1)&&((((((a16==8)&&(((a20==1)&&(!(a26==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5))))&&(a13==1)))&&(a23==1))&&(a1==12))&&(a19==3))&&(a17==2)))&&(((a21==11)&&(((a2==1)||!(a23==1))&&(a9==10)))||!(a13==1)))){ + a9 = 8; + a5 = 6; + a19 = 1; + a11 = 1; + a1 = 14; + a21 = 12; + a3 = 1; + a8 = 0; + return 21; + } else if(((((a21==12)&&((!(a24==1)&&((!(a18==1)&&((input==3)&&((((a5==6)&&(a1==13))&&(a9==11))||((a9==7)&&((a1==14)&&(a5==4))))))&&(a11==1)))&&(a19==4)))&&(a17==2))&&(!(a20==1)&&((a16==7)&&(!(a24==1)&&(!(a27==1)&&((a23==1)&&(a6==1)))))))){ + a1 = 12; + a27 = 0; + a19 = 1; + a28 = 1; + a5 = 4; + a21 = 10; + a3 = 1; + a20 = 1; + a9 = 7; + return -1; + } else if(((((((a19==3)&&((((a16==8)&&(((a17==2)&&((a1==13)&&(((a5==4)&&(input==5))&&(a28==1))))&&(a21==10)))&&(a3==1))&&(a11==1)))&&!(a14==1))&&(a9==10))&&(a2==1))&&(((a13==1)&&(a6==1))&&!(a20==1)))){ + a9 = 7; + a23 = 1; + a19 = 2; + a21 = 12; + a5 = 5; + a12 = 1; + a16 = 9; + a20 = 1; + a27 = 0; + a1 = 12; + return 21; + } else if(((((((a23==1)&&((a23==1)&&((((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a5==4)&&(a9==8)))&&(input==5))&&(a1==12))))&&!(a0==1))&&!(a8==1))&&(a17==2))&&(((a19==4)&&((a16==8)&&(!(a8==1)&&(!(a28==1)||((a2==1)&&(a21==12))))))&&!(a20==1)))){ + a25 = 0; + a9 = 8; + a21 = 11; + a23 = 0; + a5 = 5; + a16 = 10; + a1 = 13; + a19 = 5; + return -1; + } else if(((((a0==1)||((!(a2==1)||(!(a11==1)||(a12==1)))&&(a19==4)))&&(a9==10))&&((a21==11)&&((a17==2)&&((!(a0==1)&&((a20==1)&&(((a23==1)&&((a23==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4))))&&(a1==14))))&&(a16==7)))))){ + a16 = 8; + a5 = 6; + a19 = 5; + a9 = 11; + a23 = 1; + a3 = 1; + a8 = 0; + a1 = 12; + return 22; + } else if((((a5==6)&&(((a21==11)&&((((((a12==1)&&((a9==10)&&(input==4)))&&(a20==1))&&!(a7==1))&&!(a18==1))&&!(a0==1)))&&(a1==13)))&&((((a16==10)&&((!(a0==1)&&(a2==1))&&(a19==2)))&&(a28==1))&&(a17==2)))){ + a19 = 1; + a16 = 7; + a7 = 0; + a14 = 0; + a9 = 7; + a5 = 4; + a1 = 12; + a21 = 10; + a4 = 0; + return -1; + } else if((((a20==1)&&((((a9==11)&&((a12==1)&&(a16==11)))||!(a6==1))||(a18==1)))&&((a21==11)&&((a3==1)&&((a17==2)&&(((((a19==3)&&((a1==13)&&(((a5==4)||(a5==5))&&(input==3))))&&(a12==1))&&!(a7==1))&&(a2==1))))))){ + a5 = 4; + a11 = 1; + a9 = 7; + a18 = 0; + a21 = 10; + a19 = 1; + a1 = 12; + a14 = 0; + a16 = 7; + return -1; + } else if((((a21==12)&&(!(a26==1)&&(((a14==1)||(((a3==1)&&(a16==10))&&(a20==1)))||(a26==1))))&&(((!(a27==1)&&((a9==9)&&(((a1==14)&&((a19==5)&&((input==6)&&(a17==2))))&&(a5==6))))&&(a6==1))&&(a23==1)))){ + a5 = 5; + a0 = 0; + a14 = 0; + a1 = 13; + a24 = 0; + a21 = 10; + a16 = 7; + a19 = 2; + return -1; + } else if(((((((a11==1)&&(((a12==1)&&!(a4==1))&&(a1==13)))&&(a16==11))&&!(a8==1))&&(a20==1))&&((a9==11)&&((((a21==11)&&((!(a27==1)&&((((a5==4)||(a5==5))&&(input==5))&&(a19==3)))&&(a12==1)))&&(a17==2))&&!(a0==1))))){ + a5 = 4; + a12 = 1; + a19 = 1; + a16 = 7; + a26 = 0; + a21 = 10; + a1 = 12; + a9 = 7; + a4 = 0; + return -1; + } else if((((a16==9)&&(!(a18==1)&&(((((!(a26==1)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==3)))&&(a3==1))&&(a19==5))&&(a1==14))&&!(a20==1))))&&((!(a3==1)||((a27==1)||(!(a12==1)||((a21==11)&&(a12==1)))))&&(a17==2)))){ + if((a22==1)){ + a5 = 6; + a9 = 7; + a16 = 7; + a19 = 1; + a21 = 10; + a7 = 1; + a1 = 12; + a15 = 1; + a20 = 1; + }else{ + a21 = 10; + a9 = 7; + a5 = 6; + a19 = 2; + a20 = 1; + a26 = 1; + a23 = 0; + a22 = 1; + a16 = 10; + } + return 25; + } else if((((a19==2)&&(((!(a0==1)&&((((!(a8==1)&&((input==5)&&((a5==5)||(a5==6))))&&(a17==2))&&(a11==1))&&(a3==1)))&&!(a14==1))&&!(a4==1)))&&(((a21==10)&&(((a1==13)&&((a12==1)&&(a9==7)))&&(a16==11)))&&(a20==1)))){ + a5 = 4; + a19 = 1; + a1 = 12; + a16 = 7; + a2 = 1; + a24 = 0; + return -1; + } else if((((a28==1)&&((a4==1)||((((a28==1)&&(a21==12))&&(a19==4))&&!(a20==1))))&&((a13==1)&&(!(a27==1)&&((a6==1)&&(!(a26==1)&&((((a17==2)&&((input==4)&&(((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6))))))&&(a1==14))&&(a16==9)))))))){ + a29 = 0; + a1 = 12; + a19 = 2; + a16 = 7; + a20 = 1; + a5 = 6; + a21 = 10; + a27 = 1; + a9 = 10; + a25 = 1; + return -1; + } else if(((!(a7==1)&&((!(a27==1)&&(((a12==1)&&((a1==12)&&(((a17==2)&&(input==6))&&!(a4==1))))&&(a13==1)))&&(a16==9)))&&((a5==4)&&(!(a20==1)&&(((((a6==1)&&(a19==3))&&(a21==11))||!(a11==1))&&(a9==9)))))){ + a21 = 10; + a20 = 1; + a19 = 2; + a22 = 0; + a1 = 14; + a16 = 11; + a9 = 10; + a26 = 1; + a5 = 5; + a27 = 1; + return -1; + } else if((((a23==1)&&((a19==5)&&(((((a21==12)&&(((((a9==11)&&((a5==6)&&(a1==13)))||((a9==7)&&((a1==14)&&(a5==4))))&&(input==1))&&!(a4==1)))&&!(a26==1))&&!(a14==1))&&!(a26==1))))&&((a17==2)&&(((a20==1)&&((a16==7)&&(a12==1)))||!(a28==1))))){ + a2 = 1; + a5 = 5; + a3 = 1; + a13 = 1; + a16 = 9; + a1 = 14; + a9 = 11; + a21 = 11; + return 21; + } else if(((((((a11==1)&&((((a6==1)&&(((a16==10)&&(((a5==5)||(a5==6))&&(input==1)))&&(a28==1)))&&(a19==1))&&(a23==1)))&&(a28==1))&&!(a14==1))&&(a9==8))&&((a21==10)&&(((a1==12)&&(!(a20==1)&&(a23==1)))&&(a17==2))))){ + a5 = 4; + a25 = 0; + a16 = 7; + a20 = 1; + a8 = 1; + a19 = 2; + a9 = 7; + a29 = 1; + return 21; + } else if((((a6==1)&&((((a17==2)&&(!(a24==1)&&(((input==1)&&((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11))))&&(a19==5))))&&(a2==1))&&(a16==8)))&&((!(a3==1)||((a1==13)&&((((a6==1)&&(a6==1))&&(a21==10))||(a24==1))))&&!(a20==1)))){ + a1 = 14; + a16 = 7; + a5 = 6; + a9 = 10; + a20 = 1; + a2 = 1; + a19 = 4; + a24 = 0; + return 25; + } else if(((((((((a1==13)&&(!(a0==1)&&(!(a20==1)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==3)))))&&(a19==5))&&(a23==1))&&!(a8==1))&&(a17==2))&&(a21==11))&&((a16==9)&&((a7==1)||((a12==1)&&((a3==1)&&(a23==1))))))){ + if((a13==1)){ + a16 = 7; + a9 = 7; + a24 = 1; + a26 = 1; + a21 = 10; + a19 = 1; + a20 = 1; + a5 = 6; + a3 = 0; + }else{ + a9 = 11; + a20 = 1; + a15 = 1; + a21 = 10; + a1 = 14; + a19 = 2; + a22 = 0; + a29 = 1; + a5 = 5; + a16 = 8; + } + return 21; + } else if(((!(a14==1)&&((a21==10)&&((!(a20==1)&&(input==5))&&(a11==1))))&&(!(a3==1)||((((a1==12)&&((a19==3)&&(!(a28==1)||(((a16==10)&&((a17==2)&&(!(a6==1)||(a3==1))))&&(a9==10)))))&&(a5==4))&&!(a8==1))))){ + a5 = 6; + a27 = 1; + a29 = 0; + a19 = 1; + a28 = 0; + a16 = 9; + a9 = 8; + return -1; + } else if((((a19==2)&&(((a1==13)&&(!(a8==1)&&((((a5==4)||(a5==5))&&(input==3))&&!(a8==1))))&&(a9==10)))&&((a20==1)&&((a17==2)&&(((a28==1)&&((a7==1)||(!(a6==1)||((a21==12)&&((a6==1)&&!(a0==1))))))&&(a16==11)))))){ + a16 = 7; + a5 = 4; + a7 = 0; + a19 = 1; + a18 = 0; + a21 = 10; + a1 = 12; + a13 = 1; + a9 = 7; + return -1; + } else if(((((((a26==1)&&(a28==1))&&(a0==1))&&(a19==1))&&(a1==14))&&((a27==1)&&(!(a6==1)&&(((a7==1)&&(((((a16==11)&&((((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==5)))&&!(a13==1))&&(a17==2))&&(a21==12)))&&(a20==1)))))){ + a16 = 7; + a1 = 12; + a9 = 8; + a25 = 0; + a21 = 10; + a5 = 6; + a4 = 1; + a22 = 1; + return 21; + } else if((((a16==9)&&((a21==10)&&((!(a0==1)&&(((input==1)&&((a5==5)||(a5==6)))&&(a20==1)))&&!(a27==1))))&&((((a11==1)&&(((a19==5)&&((a9==10)&&(((a12==1)||!(a3==1))||!(a2==1))))&&(a28==1)))&&(a1==14))&&(a17==2)))){ + a14 = 0; + a19 = 1; + a13 = 1; + a9 = 7; + a5 = 4; + a16 = 7; + a1 = 12; + return -1; + } else if((((((a1==13)&&((((((input==1)&&(a17==2))&&(a21==11))&&(a28==1))&&(a6==1))&&(a20==1)))&&(a16==11))&&!(a8==1))&&((!(a28==1)||((a19==5)&&((a5==6)&&((a9==11)&&(!(a7==1)&&(a3==1))))))&&!(a26==1)))){ + a19 = 1; + a21 = 10; + a6 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + a7 = 0; + a3 = 1; + a1 = 12; + return -1; + } else if(((!(a20==1)&&((a1==14)&&(!(a24==1)&&((a12==1)&&((a21==11)&&((a17==2)&&((a3==1)&&((a16==8)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==1))))))))))&&(!(a2==1)||((a8==1)||(((a11==1)&&!(a7==1))&&(a19==5)))))){ + a20 = 1; + a9 = 9; + a19 = 1; + a22 = 1; + a21 = 10; + a5 = 6; + a16 = 7; + a27 = 1; + a4 = 1; + return -1; + } else if((((((a16==8)&&((((input==3)&&(a9==11))&&(a1==12))&&!(a24==1)))&&(a3==1))&&(a17==2))&&((((!(a26==1)&&((!(a20==1)&&((a5==4)&&((a21==11)&&(a11==1))))||!(a23==1)))||(a26==1))&&(a19==1))||!(a28==1)))){ + a16 = 7; + a21 = 12; + a11 = 1; + a4 = 0; + a20 = 1; + a23 = 1; + a9 = 7; + a19 = 3; + a5 = 5; + return 26; + } else if((((a21==11)&&((a18==1)&&(((a12==1)&&(a17==2))&&(a8==1))))&&((a16==10)&&((((a20==1)&&(((a0==1)&&(!(a3==1)&&(((input==6)&&(((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))))&&!(a28==1))))&&(a0==1)))&&(a1==12))&&(a19==4))))){ + a16 = 8; + a9 = 11; + a5 = 4; + a2 = 0; + a4 = 1; + a11 = 0; + a19 = 5; + return -1; + } else if((((!(a2==1)||((a19==5)&&((((!(a11==1)||(a11==1))&&(a17==2))&&(a1==13))&&(a16==8))))||!(a3==1))&&((a3==1)&&((((a21==11)&&((a12==1)&&((input==5)&&((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a5==4)&&(a9==10))))))&&!(a20==1))&&(a11==1))))){ + if((a13==1)){ + a22 = 0; + a5 = 4; + a3 = 0; + a19 = 3; + a1 = 12; + a9 = 8; + a21 = 10; + a16 = 7; + }else{ + a21 = 10; + a5 = 6; + a12 = 0; + a25 = 0; + a9 = 9; + a1 = 12; + a19 = 1; + a20 = 1; + a16 = 7; + } + return -1; + } else if((((!(a4==1)&&((((a17==2)&&((a9==9)&&((a21==10)&&((a16==7)&&((a19==3)&&((((a5==4)||(a5==5))&&(input==1))&&(a1==13)))))))&&!(a27==1))&&!(a7==1)))&&!(a4==1))&&(!(a11==1)||((a3==1)&&((a2==1)&&!(a20==1)))))){ + a1 = 14; + a9 = 10; + a5 = 4; + a0 = 0; + a12 = 1; + a13 = 1; + return 25; + } else if(((!(a7==1)&&(!(a14==1)&&((!(a24==1)&&(((a28==1)&&((a17==2)&&(((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&(a16==11))))&&(a13==1)))&&(a21==10))))&&(((a9==10)&&(((a1==13)&&((a13==1)&&(a19==3)))&&(a20==1)))&&(a23==1)))){ + a9 = 7; + a5 = 4; + a18 = 0; + a6 = 1; + a1 = 12; + a19 = 1; + a16 = 7; + return -1; + } else if(((((a23==1)&&(!(a20==1)&&((a23==1)&&(a28==1))))&&(a9==10))&&((a17==2)&&((a21==12)&&((a28==1)&&((a19==4)&&((a5==6)&&((a3==1)&&((a16==8)&&((a2==1)&&(((a1==13)&&(input==3))&&(a23==1)))))))))))){ + if((a6==1)){ + a0 = 1; + a19 = 1; + a20 = 1; + a13 = 0; + a27 = 1; + a1 = 14; + a21 = 10; + a9 = 9; + a16 = 7; + }else{ + a0 = 1; + a9 = 8; + a16 = 7; + a1 = 12; + a5 = 4; + a11 = 0; + a21 = 10; + a7 = 1; + a20 = 1; + a19 = 1; + } + return -1; + } else if(((!(a20==1)&&((a9==7)&&(((a21==10)&&((!(a26==1)&&((a11==1)&&((input==3)&&((a5==5)||(a5==6)))))&&(a28==1)))&&(a1==13))))&&(((a16==8)&&((a19==5)&&((!(a26==1)&&((a23==1)&&!(a26==1)))||!(a3==1))))&&(a17==2)))){ + a14 = 0; + a13 = 1; + a21 = 11; + a9 = 11; + a19 = 3; + a20 = 1; + a12 = 1; + a5 = 4; + return 22; + } else if((((a21==11)&&(((a23==1)&&(((a3==1)&&(!(a27==1)&&(((((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9))))&&(input==6))&&(a16==10))))&&(a2==1)))&&(a19==4)))&&((((a13==1)&&((a18==1)||((a13==1)&&(a17==2))))&&(a20==1))&&(a1==13)))){ + a21 = 10; + a23 = 1; + a13 = 1; + a5 = 5; + a16 = 7; + a7 = 0; + a9 = 9; + return 21; + } else if((((a1==12)&&(((a13==1)&&(!(a11==1)||(((!(a18==1)&&(a12==1))&&(a16==9))||!(a12==1))))&&!(a18==1)))&&((a19==3)&&((((((((a5==5)||(a5==6))&&(input==3))&&(a20==1))&&!(a27==1))&&(a17==2))&&(a21==12))&&(a9==10))))){ + a16 = 7; + a19 = 1; + a21 = 10; + a9 = 7; + a8 = 0; + a28 = 1; + a5 = 4; + a12 = 1; + return -1; + } else if((((((!(a14==1)&&(((input==3)&&(a16==9))&&(a6==1)))&&(a23==1))&&(a21==11))&&(a5==6))&&((a17==2)&&((((((a9==10)&&((a19==3)&&((a2==1)||(a24==1))))||!(a11==1))&&(a20==1))&&(a1==14))||!(a23==1))))){ + a16 = 7; + a1 = 12; + a6 = 1; + a5 = 4; + a24 = 0; + a21 = 10; + a23 = 1; + a19 = 1; + a9 = 7; + return -1; + } else if((((a9==8)&&((((input==6)&&(a20==1))&&(a7==1))&&(a5==4)))&&(!(a28==1)&&(!(a13==1)&&(((((((a19==3)&&((a16==10)&&((a17==2)&&(a11==1))))&&!(a3==1))&&!(a2==1))&&(a18==1))&&(a21==10))&&(a1==12)))))){ + a29 = 1; + a1 = 13; + a19 = 1; + a9 = 11; + a16 = 7; + a14 = 1; + a15 = 1; + return -1; + } else if((((a19==3)&&(((a16==11)&&(((((((a20==1)&&(input==1))&&!(a14==1))&&(a21==12))&&(a11==1))&&(a5==6))&&(a11==1)))&&!(a14==1)))&&((a9==9)&&(((a14==1)||(((a12==1)&&(a6==1))&&(a17==2)))&&(a1==12))))){ + a16 = 7; + a13 = 1; + a21 = 10; + a6 = 1; + a19 = 1; + a5 = 4; + a9 = 7; + a12 = 1; + return -1; + } else if((((a13==1)&&(((a21==11)&&(!(a20==1)&&((!(a7==1)&&((a11==1)&&((a9==7)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5)))))&&!(a0==1))))&&(a11==1)))&&(((((a16==9)&&((a1==14)&&(a6==1)))&&(a17==2))&&(a19==1))&&(a13==1)))){ + if((a24==1)){ + a5 = 6; + a10 = 1; + a1 = 12; + a20 = 1; + a12 = 0; + a16 = 7; + a21 = 10; + }else{ + a26 = 1; + a5 = 4; + a20 = 1; + a21 = 10; + a18 = 1; + a19 = 3; + a16 = 11; + a9 = 11; + a23 = 0; + } + return 21; + } else if(((((((a17==2)&&(((((a21==10)&&((a19==5)&&(input==5)))&&(a1==14))&&(a9==9))&&!(a27==1)))&&(a20==1))&&!(a7==1))&&!(a18==1))&&(((a5==6)&&((a28==1)&&(((a16==7)&&(a28==1))||!(a6==1))))&&!(a7==1)))){ + a14 = 0; + a5 = 5; + a9 = 7; + a19 = 4; + a8 = 0; + a21 = 12; + a4 = 0; + return 22; + } else if((((a17==2)&&((a9==9)&&((a28==1)||!(a6==1))))&&((a23==1)&&((((a1==14)&&(!(a4==1)&&(((!(a14==1)&&((a19==1)&&((a5==6)&&((input==4)&&(a20==1)))))&&!(a8==1))&&(a21==10))))&&(a3==1))&&(a16==11))))){ + a5 = 4; + a16 = 7; + a1 = 12; + a26 = 0; + a18 = 0; + a9 = 7; + a4 = 0; + return -1; + } else if((((a21==10)&&(((((a20==1)&&(((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a3==1)))&&(a3==1))&&!(a26==1))&&(a17==2)))&&((!(a28==1)||((a19==4)&&((a12==1)&&((((a23==1)||(a14==1))&&(a1==12))&&(a9==7)))))&&(a16==8)))){ + a5 = 4; + a19 = 1; + a7 = 0; + a2 = 1; + a16 = 7; + a24 = 0; + return -1; + } else if(((((a21==12)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&(a1==13))&&!(a24==1)))&&(a9==11))&&((a17==2)&&((a16==8)&&((a12==1)&&(!(a18==1)&&(!(a28==1)||((((a13==1)&&((a12==1)&&(a20==1)))&&(a11==1))&&(a19==2))))))))){ + a9 = 7; + a19 = 1; + a26 = 0; + a1 = 12; + a5 = 4; + a16 = 7; + a27 = 0; + a21 = 10; + return -1; + } else if((((a1==13)&&(((a19==3)&&((((a23==1)&&(((a6==1)&&((a21==10)&&((input==5)&&((a5==4)||(a5==5)))))&&(a17==2)))&&!(a18==1))&&(a12==1)))&&!(a20==1)))&&(((a24==1)||(((a28==1)&&(a9==7))&&(a16==10)))||!(a2==1)))){ + if((a0==1)){ + a22 = 0; + a5 = 6; + a20 = 1; + a1 = 14; + a19 = 1; + a9 = 8; + a16 = 7; + a10 = 0; + a18 = 1; + }else{ + a1 = 12; + a9 = 9; + a20 = 1; + a16 = 7; + a19 = 2; + a18 = 1; + a5 = 5; + a23 = 0; + a6 = 0; + } + return -1; + } else if((((((a21==10)&&(a12==1))&&!(a8==1))&&(a28==1))&&((a3==1)&&(((a17==2)&&((!(a24==1)&&((a20==1)&&(((input==4)&&((((a19==3)&&(((a1==14)&&(a5==6))&&(a9==11)))||((a19==4)&&((a9==7)&&((a1==12)&&(a5==4)))))||((a19==4)&&(((a5==5)&&(a1==12))&&(a9==7)))))&&(a16==10))))&&!(a27==1)))&&!(a18==1))))){ + a16 = 7; + a19 = 1; + a1 = 12; + a9 = 7; + a18 = 0; + a7 = 0; + a3 = 1; + a5 = 4; + return -1; + } else if((((((a16==7)&&((a13==1)||(a27==1)))&&(a17==2))&&(a9==7))&&(((a6==1)&&(((a20==1)&&((((a1==12)&&(!(a24==1)&&(!(a4==1)&&(((a5==4)||(a5==5))&&(input==3)))))&&(a19==1))&&(a21==11)))&&!(a4==1)))&&(a6==1)))){ + a3 = 1; + a12 = 1; + a9 = 8; + a5 = 6; + a20 = 0; + a1 = 13; + a19 = 5; + a6 = 1; + return 23; + } else if((((a21==12)&&(((a1==13)&&((((a19==3)&&((a17==2)&&((a2==1)&&(!(a24==1)&&(a23==1)))))&&!(a18==1))&&!(a0==1)))&&(a12==1)))&&((a16==10)&&(((a20==1)&&(((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))&&(input==3)))&&(a13==1))))){ + a21 = 10; + a9 = 7; + a19 = 1; + a16 = 7; + a5 = 4; + a2 = 1; + a1 = 12; + a26 = 0; + a4 = 0; + return -1; + } else if((((a13==1)&&((a1==14)&&(((((a28==1)&&((a23==1)&&!(a18==1)))&&(a20==1))&&(a9==8))||(a27==1))))&&((a17==2)&&((((a19==4)&&((a5==5)&&(((a21==12)&&(input==1))&&!(a26==1))))&&(a16==11))&&(a2==1))))){ + a9 = 7; + a21 = 10; + a1 = 12; + a28 = 1; + a18 = 0; + a2 = 1; + a19 = 1; + a5 = 4; + a16 = 7; + return -1; + } else if((((!(a26==1)&&((((a17==2)&&(!(a20==1)&&((!(a27==1)&&(((a23==1)&&((input==1)&&(((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))))&&(a1==13)))&&(a19==3))))&&(a21==11))&&(a16==10)))&&!(a8==1))&&(((a26==1)||(a23==1))&&(a23==1)))){ + a16 = 7; + a4 = 1; + a0 = 1; + a1 = 12; + a21 = 10; + a18 = 1; + a20 = 1; + a9 = 9; + a19 = 2; + a5 = 6; + return -1; + } else if((((((a26==1)||(!(a2==1)||((a21==12)&&((!(a3==1)||(a23==1))||(a26==1)))))&&(a17==2))&&(a16==9))&&((a6==1)&&((a2==1)&&(!(a20==1)&&(((a1==12)&&((input==4)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))&&(a19==2))))))){ + a1 = 14; + a9 = 7; + a24 = 1; + a20 = 1; + a21 = 10; + a16 = 11; + a8 = 1; + a5 = 4; + a15 = 0; + return -1; + } else if((((a9==9)&&(((a21==12)&&(!(a24==1)&&((((a28==1)&&(((a3==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5)))&&(a1==14)))&&!(a26==1))&&(a11==1))))&&(a17==2)))&&((a19==5)&&((!(a3==1)||((a2==1)&&(a16==8)))&&(a20==1))))){ + a21 = 10; + a3 = 1; + a26 = 0; + a28 = 1; + a1 = 12; + a5 = 6; + return -1; + } else if((((a1==14)&&((a17==2)&&((!(a0==1)&&((((input==1)&&(a21==12))&&!(a24==1))&&(a11==1)))&&(a28==1))))&&((a16==9)&&((a9==7)&&(((!(a20==1)&&(((a19==2)&&(a2==1))&&!(a0==1)))&&(a5==4))&&!(a7==1)))))){ + if((a4==1)){ + a27 = 1; + a5 = 6; + a15 = 0; + a16 = 8; + a3 = 0; + a21 = 10; + a9 = 10; + a19 = 3; + }else{ + a1 = 12; + a22 = 0; + a29 = 0; + a25 = 0; + a21 = 10; + a16 = 7; + a20 = 1; + } + return 25; + } else if((((a24==1)||((!(a3==1)||(!(a20==1)&&((a2==1)&&(a9==10))))||!(a11==1)))&&((!(a26==1)&&(((a21==10)&&(((a17==2)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&(a1==13))&&(a16==9)))&&(a19==3)))&&(a13==1)))&&!(a18==1)))){ + a19 = 5; + a15 = 1; + a9 = 7; + a21 = 11; + a1 = 14; + a16 = 8; + a0 = 1; + a22 = 0; + a5 = 4; + return 25; + } else if((((!(a8==1)&&((a19==1)&&(((a27==1)||((a23==1)&&!(a24==1)))&&!(a20==1))))&&(a21==10))&&(((a2==1)&&(((a12==1)&&(((a9==7)&&((a17==2)&&((input==3)&&((a5==6)||((a5==4)||(a5==5))))))&&(a16==8)))&&(a1==13)))&&(a6==1)))){ + a20 = 1; + a26 = 0; + a11 = 1; + a7 = 0; + a16 = 7; + a5 = 4; + a1 = 12; + return -1; + } else if((((((!(a20==1)&&(((!(a12==1)||(((a16==8)&&(!(a0==1)&&(a2==1)))&&(a2==1)))&&(a19==2))&&(a9==8)))&&(a21==11))&&(a13==1))&&(a17==2))&&(((a11==1)&&(((input==4)&&(a1==14))&&(a28==1)))&&(a5==5)))){ + a21 = 10; + a27 = 0; + a5 = 4; + a16 = 7; + a9 = 7; + a20 = 1; + a24 = 0; + a11 = 1; + a19 = 1; + a1 = 12; + return -1; + } else if((((a16==10)&&(!(a4==1)&&((a28==1)&&((a23==1)&&((a21==12)&&((a11==1)&&((a20==1)&&(((a1==13)&&((input==4)&&(((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))))&&(a6==1)))))))))&&(((a17==2)&&((a6==1)&&(a19==3)))&&!(a0==1)))){ + a18 = 0; + a7 = 0; + a5 = 5; + a1 = 14; + a16 = 7; + a21 = 10; + a19 = 4; + a9 = 8; + a8 = 0; + return 21; + } else if((((((a9==7)&&((!(a4==1)&&(((a16==9)&&(((a21==12)&&((a5==5)&&(input==6)))&&!(a27==1)))&&(a11==1)))&&(a2==1)))&&(a17==2))&&(a19==2))&&((((a1==12)&&(!(a20==1)&&(a11==1)))&&(a2==1))||(a0==1)))){ + a5 = 4; + a18 = 1; + a9 = 8; + a19 = 1; + a20 = 1; + a24 = 1; + a21 = 10; + a16 = 7; + a6 = 0; + return 25; + } else if((((a4==1)||((a16==8)&&((a19==4)&&(!(a2==1)||((((((a21==11)&&(a13==1))&&(a13==1))&&(a1==14))&&!(a0==1))&&(a5==5))))))&&((!(a0==1)&&((((input==1)&&(a9==11))&&(a23==1))&&(a20==1)))&&(a17==2)))){ + a5 = 6; + a23 = 1; + a19 = 2; + a3 = 1; + a16 = 10; + a24 = 0; + return 25; + } else if((((a11==1)&&((a21==12)&&(((a19==4)&&(!(a27==1)&&((input==6)&&(((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))))))&&(a11==1))))&&((((a1==12)&&(((((a11==1)||!(a23==1))||!(a12==1))&&(a17==2))||(a26==1)))&&(a16==9))&&(a20==1)))){ + a23 = 1; + a21 = 11; + a1 = 14; + a9 = 10; + a11 = 1; + a5 = 5; + a19 = 2; + a0 = 0; + return 21; + } else if(((!(a20==1)&&((a13==1)&&((a3==1)&&((!(a14==1)&&((a5==4)&&(a12==1)))||!(a3==1)))))&&((((a19==2)&&(!(a4==1)&&(((a1==12)&&((a23==1)&&((input==6)&&(a9==7))))&&(a21==12))))&&(a16==8))&&(a17==2)))){ + a22 = 0; + a5 = 5; + a19 = 1; + a20 = 1; + a9 = 10; + a3 = 0; + a13 = 0; + return 21; + } else if((((((a17==2)&&(((a4==1)||(!(a20==1)&&(a12==1)))&&(a19==3)))&&!(a24==1))&&!(a27==1))&&((!(a4==1)&&((a12==1)&&(((a1==12)&&((((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10)))&&(input==1))&&(a16==9)))&&(a21==12))))&&!(a7==1)))){ + a9 = 11; + a8 = 1; + a19 = 1; + a0 = 1; + a21 = 10; + a16 = 7; + a24 = 1; + a20 = 1; + a5 = 5; + return -1; + } else if((((a17==2)&&((a28==1)&&(!(a18==1)&&((a9==9)&&(!(a6==1)||(!(a4==1)&&((a21==12)&&((a20==1)&&((a4==1)||((a2==1)&&(a1==12)))))))))))&&((a19==2)&&(((a12==1)&&(((a5==5)||(a5==6))&&(input==5)))&&(a16==11))))){ + if((a12==1)){ + a24 = 0; + a5 = 6; + a19 = 4; + a12 = 1; + a9 = 7; + a16 = 8; + a8 = 0; + a21 = 11; + a20 = 0; + }else{ + a5 = 6; + a9 = 7; + a27 = 0; + a16 = 8; + a1 = 14; + a24 = 0; + a19 = 5; + a11 = 1; + } + return 25; + } else if(((((!(a18==1)&&((a16==11)&&((a1==14)&&((a21==10)&&(((a28==1)&&((a17==2)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6))))&&(a12==1))))))&&(a9==10))&&!(a20==1))&&(((((a2==1)&&(a12==1))||(a18==1))||(a7==1))&&(a19==3)))){ + a19 = 2; + a16 = 9; + a8 = 1; + a9 = 8; + a24 = 1; + a1 = 12; + a5 = 4; + a2 = 0; + return 21; + } else if((((((((a28==1)&&(a19==5))&&(a16==10))&&!(a18==1))||!(a13==1))||!(a6==1))&&(((!(a20==1)&&((a5==4)&&(((!(a14==1)&&(((input==1)&&(a9==7))&&(a17==2)))&&(a3==1))&&!(a18==1))))&&(a1==14))&&(a21==10)))){ + a19 = 2; + a24 = 1; + a1 = 12; + a28 = 0; + a20 = 1; + a16 = 7; + a5 = 5; + a22 = 0; + return 21; + } else if((((!(a4==1)&&((a19==4)&&(!(a18==1)&&((((((((a1==12)&&(a5==6))&&(a9==11))||(((a5==4)&&(a1==13))&&(a9==7)))||(((a1==13)&&(a5==5))&&(a9==7)))&&(input==1))&&(a17==2))&&(a21==10)))))&&(a16==10))&&(((a6==1)&&((((a2==1)&&(a3==1))||(a18==1))&&!(a20==1)))||!(a12==1)))){ + if((a9==8)){ + a1 = 14; + a9 = 9; + a20 = 1; + a7 = 1; + a19 = 1; + a5 = 5; + a27 = 1; + a16 = 7; + }else{ + a9 = 10; + a7 = 1; + a20 = 1; + a5 = 6; + a18 = 1; + a1 = 12; + a19 = 1; + a27 = 1; + a16 = 7; + } + return -1; + } else if(((((!(a14==1)&&((a9==11)&&((((a21==10)&&(((a16==8)&&(a3==1))&&(a19==1)))&&(a1==13))&&!(a18==1))))&&(a17==2))&&(a12==1))&&(((a6==1)&&(!(a26==1)&&((a2==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))))&&(a20==1)))){ + a20 = 0; + a19 = 3; + a1 = 12; + a3 = 1; + a4 = 0; + a9 = 9; + a7 = 0; + a5 = 4; + return 23; + } else if((((a19==1)&&(((!(a20==1)&&((a3==1)&&(a17==2)))&&(a12==1))&&(a16==9)))&&(((a3==1)&&((a21==10)&&(((a1==13)&&((!(a8==1)&&((input==1)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))))&&(a23==1)))&&(a23==1))))&&!(a18==1)))){ + a20 = 1; + a23 = 0; + a19 = 4; + a21 = 11; + a5 = 5; + a8 = 1; + a27 = 1; + a9 = 8; + a16 = 10; + return -1; + } else if((((((!(a7==1)&&((a20==1)&&(((a5==4)||(a5==5))&&(input==4))))&&!(a18==1))&&(a21==10))&&(a17==2))&&((a16==8)&&((a23==1)&&((a0==1)||(((((a1==13)&&(!(a18==1)&&(a6==1)))&&!(a4==1))&&(a19==4))&&(a9==9))))))){ + a0 = 0; + a1 = 12; + a19 = 1; + a5 = 4; + a28 = 1; + a16 = 7; + a24 = 0; + a9 = 7; + return -1; + } else if((((a1==14)&&((!(a20==1)&&(((((a21==10)&&(a13==1))||!(a23==1))&&(a16==9))&&!(a14==1)))&&!(a26==1)))&&(((((((input==4)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(a19==5))&&(a17==2))&&!(a26==1))&&!(a24==1))&&!(a0==1)))){ + a14 = 1; + a25 = 1; + a1 = 12; + a9 = 9; + a5 = 6; + a20 = 1; + a2 = 0; + a19 = 2; + return 21; + } else if(((((a1==13)&&((a26==1)&&((a21==11)&&(((a27==1)&&(((a5==4)||(a5==5))&&(input==1)))&&!(a20==1)))))&&!(a12==1))&&(((a9==8)&&(!(a13==1)&&((a16==8)&&((((a19==3)&&(a23==1))&&!(a2==1))&&!(a11==1)))))&&(a17==2)))){ + a19 = 1; + a9 = 10; + a20 = 1; + a5 = 6; + a6 = 0; + a25 = 0; + a21 = 10; + a16 = 7; + a7 = 1; + return -1; + } else if(((((a1==13)&&(((a19==5)&&(((((a5==4)||(a5==5))&&(input==6))&&(a9==9))&&!(a27==1)))&&!(a8==1)))&&(a21==12))&&(((a20==1)&&(((a3==1)&&((!(a7==1)&&((a3==1)&&(a16==7)))||(a18==1)))&&!(a0==1)))&&(a17==2)))){ + a24 = 0; + a5 = 5; + a21 = 11; + a16 = 9; + a13 = 1; + return 22; + } else if(((((a20==1)&&(((a21==10)&&((a23==1)&&((((input==1)&&(((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))))&&(a19==5))&&!(a8==1))))&&(a16==7)))&&(a6==1))&&(((a17==2)&&((a14==1)||((a1==14)&&(!(a8==1)&&(a3==1)))))&&(a11==1)))){ + a6 = 1; + a14 = 0; + a9 = 8; + a1 = 12; + a5 = 4; + a0 = 0; + a21 = 12; + return 26; + } else if((((a21==11)&&((((a16==11)&&((a1==12)&&((input==3)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))))&&(a20==1))&&!(a8==1)))&&(((a2==1)&&(!(a24==1)&&((((!(a27==1)&&(a6==1))||(a8==1))&&(a19==3))&&(a17==2))))&&(a6==1)))){ + a19 = 1; + a16 = 7; + a9 = 7; + a26 = 0; + a21 = 10; + a28 = 1; + a27 = 0; + a5 = 4; + return -1; + } else if(((((a2==1)&&(a3==1))&&(a21==12))&&((a9==11)&&(((a19==5)&&((a23==1)&&((a16==7)&&((a2==1)&&((a20==1)&&(((a1==13)&&(!(a8==1)&&(((input==3)&&((a5==4)||(a5==5)))&&(a17==2))))&&!(a0==1)))))))&&!(a26==1))))){ + a5 = 4; + a9 = 7; + a18 = 0; + a8 = 0; + a19 = 1; + a21 = 10; + a1 = 12; + return -1; + } else if((((a24==1)||(((a9==11)&&((a19==5)&&(!(a12==1)||(a2==1))))&&(a21==10)))&&((((a11==1)&&(((((a2==1)&&((a1==12)&&(((a5==4)||(a5==5))&&(input==6))))&&(a16==11))&&(a17==2))&&(a20==1)))&&(a13==1))&&(a2==1)))){ + a13 = 1; + a28 = 1; + a23 = 1; + a1 = 14; + a9 = 8; + a21 = 11; + a5 = 5; + a19 = 4; + return 25; + } else if((((a16==7)&&(((((a9==11)&&((a28==1)||(a26==1)))&&(a20==1))||!(a28==1))||!(a13==1)))&&((a5==4)&&((a19==2)&&(((((((input==3)&&(a17==2))&&!(a14==1))&&(a1==13))&&(a13==1))&&!(a26==1))&&(a21==12)))))){ + a19 = 1; + a26 = 0; + a1 = 12; + a23 = 1; + a21 = 10; + a9 = 7; + a18 = 0; + return -1; + } else if((((a23==1)&&(((((a19==1)&&(!(a7==1)&&((a9==11)&&((a3==1)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6)))))))&&(a16==10))&&(a20==1))&&!(a18==1)))&&(((((a21==11)&&((a28==1)&&(a17==2)))||(a26==1))||!(a28==1))&&(a1==13)))){ + a18 = 0; + a1 = 12; + a4 = 0; + a16 = 7; + a9 = 7; + a2 = 1; + a21 = 10; + a5 = 4; + return -1; + } else if(((((a1==14)&&(!(a11==1)||(a13==1)))&&(a9==7))&&(((a21==10)&&((a6==1)&&(!(a27==1)&&((!(a27==1)&&((a20==1)&&((((a16==9)&&(((a5==4)||(a5==5))&&(input==4)))&&(a19==1))&&(a17==2))))&&(a13==1)))))&&(a11==1)))){ + a1 = 13; + a4 = 0; + a9 = 10; + a5 = 6; + a19 = 4; + a11 = 1; + a7 = 0; + return 26; + } else if((((!(a14==1)&&(!(a14==1)&&((a28==1)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==3)))))&&!(a14==1))&&((a1==13)&&((a17==2)&&(!(a20==1)&&((a4==1)||(((((a19==4)&&(a28==1))&&(a16==9))&&(a21==12))&&(a11==1)))))))){ + a3 = 0; + a20 = 1; + a19 = 1; + a5 = 6; + a16 = 7; + a23 = 0; + a2 = 0; + a9 = 11; + return -1; + } else if((((a13==1)&&(((((a28==1)&&(a16==8))&&(a9==8))||!(a2==1))&&(a20==1)))&&((a11==1)&&(((a1==12)&&((a12==1)&&(((a5==6)&&(((a19==5)&&((a21==12)&&(input==4)))&&(a17==2)))&&(a2==1))))&&(a23==1))))){ + a16 = 7; + a9 = 7; + a18 = 0; + a21 = 10; + a5 = 4; + a19 = 1; + a23 = 1; + return -1; + } else if((((a18==1)||((((a1==14)&&((((a21==10)&&((a3==1)&&!(a20==1)))&&(a3==1))&&(a28==1)))&&(a17==2))&&!(a8==1)))&&(!(a4==1)&&(!(a4==1)&&(((((input==5)&&((a5==5)||(a5==6)))&&(a9==11))&&(a19==5))&&(a16==10)))))){ + if((a18==1)){ + a23 = 0; + a25 = 1; + a19 = 1; + a16 = 7; + a5 = 4; + a28 = 0; + a9 = 8; + a20 = 1; + }else{ + a5 = 5; + a0 = 1; + a1 = 12; + a9 = 8; + a19 = 1; + a20 = 1; + a11 = 0; + a16 = 7; + } + return -1; + } else if(((((a17==2)&&(((!(a23==1)||((a19==2)&&(a6==1)))&&(a2==1))&&(a21==10)))&&(a9==9))&&((a28==1)&&((a1==14)&&((((((a20==1)&&(((a5==5)||(a5==6))&&(input==6)))&&!(a18==1))&&(a16==10))&&(a28==1))&&(a6==1)))))){ + a16 = 7; + a4 = 0; + a6 = 1; + a5 = 4; + a19 = 1; + a9 = 7; + a1 = 12; + a3 = 1; + return -1; + } else if((((a16==11)&&((((a3==1)&&((((a21==11)&&((a13==1)&&(((((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(input==1))&&(a17==2))))&&(a19==3))&&(a11==1)))&&(a1==12))&&(a13==1)))&&((a20==1)&&(!(a8==1)&&((a28==1)&&(a23==1)))))){ + a9 = 7; + a6 = 1; + a5 = 4; + a18 = 0; + a19 = 1; + a21 = 10; + a16 = 7; + return -1; + } else if(((!(a20==1)&&((((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6))))&&(input==6)))&&(!(a23==1)||(((((a1==12)&&(((a16==10)&&(((((a24==1)||(a3==1))&&(a21==10))&&!(a0==1))||!(a23==1)))||!(a6==1)))||!(a11==1))&&(a19==2))&&(a17==2))))){ + if((a5==4)){ + a29 = 1; + a20 = 1; + a5 = 5; + a14 = 1; + a19 = 1; + a9 = 7; + a16 = 7; + a22 = 0; + }else{ + a11 = 0; + a3 = 0; + a23 = 0; + a19 = 3; + a16 = 11; + a21 = 12; + a9 = 9; + a20 = 1; + a5 = 6; + } + return 21; + } else if((((((a19==1)&&(((a12==1)&&(!(a18==1)&&((!(a0==1)&&((((((a5==5)&&(a1==13))&&(a9==11))||(((a5==6)&&(a1==13))&&(a9==11)))||(((a5==4)&&(a1==14))&&(a9==7)))&&(input==5)))&&!(a20==1))))&&(a16==8)))&&(a21==11))&&(a3==1))&&((a17==2)&&(((a2==1)&&(a13==1))||(a24==1))))){ + a9 = 8; + a20 = 1; + a7 = 0; + a21 = 10; + a18 = 0; + a28 = 1; + a1 = 14; + a5 = 6; + a19 = 4; + return 25; + } else if((((a20==1)&&(((a16==8)&&((a9==10)&&((a26==1)||((((a26==1)||(a28==1))&&(a17==2))&&!(a7==1)))))&&(a5==4)))&&((a1==13)&&((a19==1)&&((a23==1)&&(!(a27==1)&&(((input==3)&&(a21==10))&&(a28==1)))))))){ + a4 = 0; + a9 = 7; + a13 = 1; + a16 = 7; + a1 = 12; + a26 = 0; + return -1; + } else if((((a16==9)&&((a17==2)&&(((a3==1)&&(((a21==11)&&((a13==1)&&(a12==1)))&&(a28==1)))&&(a1==12))))&&((a19==1)&&(((a11==1)&&((a23==1)&&(((input==3)&&(((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))))&&(a11==1))))&&!(a20==1))))){ + a16 = 8; + a20 = 1; + a2 = 0; + a19 = 2; + a9 = 11; + a21 = 10; + a3 = 0; + a5 = 5; + return -1; + } else if((((((((a19==1)&&(!(a8==1)&&(((a13==1)&&(a23==1))&&(a1==13))))&&!(a27==1))&&(a16==8))&&(a21==12))||!(a28==1))&&(((a9==9)&&((a3==1)&&((a20==1)&&(((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&(a17==2)))))&&(a13==1)))){ + a21 = 11; + a19 = 5; + a13 = 1; + a5 = 5; + a1 = 12; + a28 = 1; + a16 = 10; + return 26; + } else if((((a9==11)&&(((((a3==1)&&(a1==12))&&(a3==1))&&(a17==2))&&(a19==4)))&&((((a6==1)&&((a28==1)&&(!(a8==1)&&((a11==1)&&(((a21==11)&&((input==3)&&((a5==4)||(a5==5))))&&!(a20==1))))))&&(a12==1))&&(a16==9)))){ + a1 = 14; + a14 = 1; + a18 = 1; + a16 = 7; + a21 = 10; + a9 = 10; + a25 = 1; + a20 = 1; + a5 = 4; + a19 = 1; + return -1; + } else if(((((((a5==6)&&((!(a27==1)&&((input==4)&&(a21==11)))&&!(a27==1)))&&(a23==1))&&(a16==9))&&!(a27==1))&&((a17==2)&&((a19==3)&&((a9==9)&&((((a18==1)||(!(a18==1)&&(a2==1)))&&(a20==1))&&(a1==13))))))){ + a2 = 1; + a5 = 4; + a9 = 7; + a19 = 1; + a21 = 10; + a1 = 12; + a8 = 0; + a16 = 7; + a18 = 0; + return -1; + } else if(((!(a26==1)&&((a4==1)||(((((a23==1)&&(a19==4))||(a18==1))&&(a1==14))&&(a17==2))))&&(((((a20==1)&&((a2==1)&&(((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==6))&&(a21==12))))&&!(a26==1))&&(a16==10))&&(a12==1)))){ + a5 = 4; + a21 = 10; + a11 = 1; + a19 = 2; + a12 = 1; + a16 = 7; + a28 = 1; + a1 = 13; + a9 = 9; + return -1; + } else if(((((((a19==1)&&((input==4)&&(((((a5==6)&&(a1==12))&&(a9==11))||(((a5==4)&&(a1==13))&&(a9==7)))||((a9==7)&&((a5==5)&&(a1==13))))))&&(a13==1))&&(a16==11))&&(a20==1))&&((a8==1)||((a21==12)&&((a3==1)&&((a8==1)||(((a17==2)&&((a24==1)||(a2==1)))||!(a3==1)))))))){ + a9 = 7; + a16 = 7; + a1 = 12; + a12 = 1; + a27 = 0; + a28 = 1; + a21 = 10; + a5 = 4; + return -1; + } else if((((a1==13)&&(((a18==1)&&((a20==1)&&((a24==1)&&((a16==9)&&((input==5)&&(((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))))))))&&!(a23==1)))&&((a19==2)&&((a17==2)&&(((!(a12==1)&&((a13==1)&&(a27==1)))&&!(a23==1))&&(a21==11)))))){ + a16 = 7; + a21 = 10; + a24 = 1; + a1 = 12; + a23 = 0; + a10 = 0; + a5 = 4; + a9 = 11; + return 21; + } else if((((!(a2==1)||((a9==7)&&((((!(a3==1)||(((a19==2)&&(a23==1))&&(a16==9)))&&(a1==12))&&(a17==2))&&(a3==1))))&&(a12==1))&&(!(a24==1)&&(((a21==11)&&((a20==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4))))&&(a28==1))))){ + a16 = 7; + a5 = 4; + a21 = 10; + a6 = 1; + a12 = 1; + a19 = 1; + a0 = 0; + return -1; + } else if((((!(a13==1)&&(((((a13==1)&&(a19==2))&&(a9==10))&&(a4==1))&&(a1==13)))&&!(a23==1))&&((a7==1)&&(!(a23==1)&&(!(a3==1)&&(((a16==9)&&(((a17==2)&&((a21==10)&&(input==5)))&&(a5==5)))&&(a20==1))))))){ + a12 = 0; + a5 = 6; + a13 = 0; + a2 = 0; + a1 = 12; + a16 = 7; + return 25; + } else if((((a9==8)&&((a1==14)&&(!(a3==1)||((!(a20==1)&&(a2==1))||!(a2==1)))))&&((a23==1)&&((a19==2)&&(!(a7==1)&&(((((a16==7)&&((a6==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5))))&&(a21==11))&&!(a26==1))&&(a17==2))))))){ + a5 = 6; + a21 = 10; + a16 = 11; + a4 = 0; + a1 = 12; + a27 = 0; + a9 = 9; + a20 = 1; + a13 = 1; + a19 = 3; + return 21; + } else if(((((a20==1)&&((a17==2)&&(((a19==5)&&((a6==1)&&(((a3==1)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==6)))&&!(a27==1))))&&!(a0==1))))&&(a16==7))&&(!(a4==1)&&(((a0==1)||((a28==1)&&(a21==10)))&&(a1==13))))){ + a6 = 1; + a1 = 12; + a19 = 3; + a23 = 1; + a9 = 11; + a5 = 6; + a8 = 0; + a21 = 12; + return 26; + } else if((((!(a4==1)&&((!(a8==1)&&(((a21==12)&&((!(a14==1)&&((input==4)&&(a1==12)))&&(a17==2)))&&(a12==1)))&&(a5==5)))&&(a20==1))&&((a16==8)&&((a19==3)&&(((a28==1)&&((a12==1)&&(a6==1)))&&(a9==9)))))){ + a12 = 1; + a8 = 0; + a19 = 1; + a5 = 4; + a16 = 7; + a21 = 10; + a9 = 7; + return -1; + } else if(((((((a19==2)&&(((a21==11)&&((a16==8)&&(((a1==12)&&(a11==1))&&(a23==1))))&&!(a20==1)))||(a18==1))||(a14==1))||!(a2==1))&&(!(a14==1)&&(!(a14==1)&&((((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a5==4)&&(a9==9)))&&(input==3))&&(a17==2)))))){ + a16 = 7; + a21 = 10; + a8 = 0; + a5 = 4; + a9 = 7; + a13 = 1; + a19 = 1; + a20 = 1; + a18 = 0; + return -1; + } else if((((a9==9)&&(((a21==10)&&(((a5==5)&&(input==5))&&!(a26==1)))&&(a1==13)))&&((a4==1)||(!(a23==1)||((a20==1)&&((a28==1)&&(!(a12==1)||((a16==10)&&(!(a14==1)&&(((a17==2)&&(a23==1))&&(a19==4))))))))))){ + a12 = 1; + a9 = 7; + a19 = 1; + a1 = 12; + a16 = 7; + a3 = 1; + a5 = 4; + a26 = 0; + return -1; + } else if((((((!(a24==1)&&((a9==7)&&((a17==2)&&(input==1))))&&(a11==1))&&(a1==13))&&(a16==9))&&((a19==2)&&((a20==1)&&(((((a4==1)||((a2==1)&&((a23==1)&&!(a27==1))))||(a0==1))&&(a21==11))&&(a5==5)))))){ + a19 = 3; + a23 = 1; + a16 = 11; + a13 = 1; + a11 = 1; + a9 = 10; + a21 = 10; + return 25; + } else if((((a1==12)&&((a17==2)&&(!(a13==1)||(((a19==1)&&(((a18==1)||(((a2==1)&&(a16==8))||!(a3==1)))||(a4==1)))&&(a20==1)))))&&((a2==1)&&((a21==12)&&(((a9==10)&&((input==1)&&((a5==4)||(a5==5))))&&!(a14==1)))))){ + a19 = 4; + a4 = 0; + a5 = 4; + a23 = 1; + a2 = 1; + a21 = 11; + return -1; + } else if((((a2==1)&&((((a19==2)&&((!(a7==1)&&(((a3==1)&&(a16==10))&&(a21==10)))||(a7==1)))||!(a2==1))&&(a20==1)))&&((a11==1)&&(((((a9==10)&&(((a5==4)||(a5==5))&&(input==4)))&&(a17==2))&&!(a4==1))&&(a1==13))))){ + a0 = 0; + a5 = 5; + a16 = 7; + a9 = 8; + a28 = 1; + a27 = 0; + return 25; + } else if((((((((a9==11)&&(((a3==1)&&!(a8==1))&&(a23==1)))&&(a16==8))&&(a17==2))&&(a21==11))&&(a1==13))&&((a19==4)&&((a11==1)&&((a2==1)&&(!(a4==1)&&((((a5==5)&&(input==4))&&!(a20==1))&&(a23==1)))))))){ + a16 = 7; + a9 = 7; + a5 = 4; + a21 = 10; + a19 = 1; + a18 = 0; + a20 = 1; + a24 = 0; + a1 = 12; + a3 = 1; + return -1; + } else if((((!(a8==1)&&(((a17==2)&&(((a21==10)&&(((a5==5)||(a5==6))&&(input==1)))&&(a16==11)))&&(a9==11)))&&(a12==1))&&((a14==1)||((a27==1)||(((a19==5)&&(!(a18==1)&&((a3==1)&&((a3==1)&&(a1==13)))))&&(a20==1)))))){ + a16 = 7; + a12 = 1; + a4 = 0; + a9 = 7; + a19 = 4; + a1 = 12; + a5 = 6; + a2 = 1; + return 25; + } else if((((a21==12)&&((a13==1)&&(((((a14==1)||(a23==1))||(a4==1))&&(a19==1))&&(a16==7))))&&((a17==2)&&((a6==1)&&((a1==14)&&((a20==1)&&(((a11==1)&&((input==3)&&(((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9))))))&&(a23==1)))))))){ + a6 = 1; + a1 = 12; + a5 = 4; + a9 = 7; + a21 = 10; + a4 = 0; + a13 = 1; + return -1; + } else if(((((a16==11)&&(((a12==1)&&((((input==3)&&(a9==9))&&(a19==1))&&(a6==1)))&&(a20==1)))&&(a1==12))&&(((a5==5)&&((a18==1)||((a21==11)&&(!(a28==1)||(((a11==1)&&(a17==2))&&(a23==1))))))&&!(a26==1)))){ + a9 = 7; + a12 = 1; + a21 = 10; + a5 = 4; + a3 = 1; + a16 = 7; + a26 = 0; + return -1; + } else if((((a21==12)&&((a19==3)&&((a16==9)&&((a4==1)||((a20==1)&&((a9==8)&&(!(a8==1)&&(a2==1))))))))&&((a23==1)&&((a1==12)&&((a3==1)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a13==1))&&!(a26==1))&&(a17==2))))))){ + a2 = 1; + a21 = 10; + a5 = 6; + a3 = 1; + a28 = 1; + a16 = 10; + a19 = 1; + a9 = 10; + return 21; + } else if(((((a23==1)&&((a21==12)&&(((a19==4)&&(((a16==9)&&((a12==1)&&(a28==1)))&&(a1==12)))&&!(a20==1))))||(a8==1))&&(!(a27==1)&&((((a17==2)&&(((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))&&(input==6)))&&(a6==1))&&(a13==1))))){ + if((a11==1)){ + a1 = 13; + a11 = 0; + a5 = 5; + a21 = 10; + a16 = 10; + a9 = 11; + a23 = 0; + }else{ + a24 = 1; + a20 = 1; + a19 = 2; + a11 = 0; + a5 = 4; + a21 = 10; + a16 = 7; + a6 = 0; + a9 = 10; + } + return 25; + } else if(((((((a16==11)&&((((a24==1)||(a2==1))&&(a3==1))&&(a1==14)))&&(a17==2))||!(a28==1))&&!(a14==1))&&((a19==1)&&((!(a0==1)&&(((a21==11)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==5)))&&(a20==1)))&&(a12==1))))){ + a19 = 4; + a5 = 5; + a16 = 8; + a9 = 10; + a1 = 13; + a6 = 1; + a13 = 1; + return 25; + } else if((((((a12==1)&&((((((((((a9==11)&&((a1==14)&&(a5==6)))&&(a19==1))||((((a5==4)&&(a1==12))&&(a9==7))&&(a19==2)))||((a19==2)&&((a9==7)&&((a5==5)&&(a1==12)))))&&(input==5))&&(a21==10))&&!(a20==1))&&(a23==1))&&(a28==1)))&&(a12==1))&&(a16==9))&&((a17==2)&&((a18==1)||((a6==1)&&(a2==1)))))){ + a15 = 1; + a29 = 0; + a19 = 5; + a1 = 12; + a0 = 1; + a16 = 10; + a9 = 10; + a21 = 12; + a5 = 6; + a20 = 1; + return 21; + } else if((((a5==5)&&((a16==9)&&(!(a18==1)&&(((a21==10)&&(((input==1)&&!(a20==1))&&(a9==11)))&&(a13==1)))))&&(!(a27==1)&&((a19==1)&&(!(a26==1)&&((!(a6==1)||((a1==13)&&((a2==1)&&(a13==1))))&&(a17==2))))))){ + a21 = 12; + a1 = 14; + a9 = 9; + a4 = 1; + a20 = 1; + a15 = 1; + a19 = 3; + a16 = 10; + a5 = 4; + return 23; + } else if(((((a16==9)&&((a20==1)&&((a9==9)&&(!(a4==1)&&((a2==1)&&((a19==3)&&((((input==4)&&((a5==4)||(a5==5)))&&(a3==1))&&(a17==2))))))))&&!(a14==1))&&(!(a6==1)||((a1==14)&&(((a2==1)&&(a21==12))&&!(a18==1)))))){ + a23 = 1; + a5 = 4; + a19 = 1; + a9 = 7; + a1 = 12; + a11 = 1; + a16 = 7; + a0 = 0; + a21 = 10; + return -1; + } else if((((a17==2)&&((!(a28==1)&&(!(a11==1)&&((a20==1)&&((!(a12==1)&&((input==3)&&((a5==5)||(a5==6))))&&!(a6==1)))))&&(a9==7)))&&((a19==5)&&((!(a2==1)&&((!(a12==1)&&((a16==9)&&(a12==1)))&&(a21==10)))&&(a1==12))))){ + a0 = 1; + a5 = 5; + a16 = 7; + a2 = 0; + a9 = 9; + a26 = 1; + a19 = 1; + return -1; + } else if(((!(a4==1)&&(((((input==1)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(a21==11))&&!(a4==1))&&(a17==2)))&&((a2==1)&&(((a16==9)&&((!(a12==1)||((((a28==1)&&(a1==12))&&(a20==1))&&(a19==5)))&&(a23==1)))||(a0==1))))){ + a18 = 0; + a9 = 8; + a16 = 10; + a5 = 6; + a19 = 4; + a13 = 1; + a23 = 1; + return 21; + } else if((((((((a13==1)&&(((((input==5)&&((a5==4)||(a5==5)))&&(a16==8))&&(a19==3))&&(a3==1)))&&(a17==2))&&!(a27==1))&&(a21==11))&&!(a18==1))&&((a9==9)&&((a20==1)&&((((a1==14)&&(a13==1))||(a4==1))&&!(a18==1)))))){ + a1 = 13; + a8 = 0; + a16 = 10; + a9 = 11; + a5 = 5; + a2 = 1; + a19 = 1; + a14 = 0; + return 21; + } else if(((((a17==2)&&(!(a24==1)&&((a9==7)&&(!(a18==1)&&((((input==3)&&(a16==7))&&(a3==1))&&(a12==1))))))&&(a5==6))&&((a19==2)&&((((a27==1)||(((a6==1)||!(a23==1))&&(a1==12)))&&(a21==12))&&!(a20==1))))){ + a18 = 0; + a23 = 1; + a19 = 3; + a9 = 10; + a20 = 1; + a27 = 0; + a16 = 8; + a5 = 5; + return 26; + } else if((((a21==11)&&((a20==1)&&((!(a8==1)&&(((((input==3)&&(a16==8))&&(a17==2))&&!(a14==1))&&!(a18==1)))&&(a1==12))))&&(((a9==11)&&((!(a12==1)||((a19==5)&&((a3==1)||(a4==1))))||(a24==1)))&&(a5==5)))){ + a2 = 1; + a16 = 7; + a12 = 1; + a21 = 10; + a0 = 0; + a9 = 7; + a5 = 4; + a19 = 1; + return -1; + } else if((((a14==1)||(!(a11==1)||(((a1==14)&&(a2==1))&&(a12==1))))&&((((a21==11)&&(((a17==2)&&((((((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4)))&&(input==6))&&(a16==8))&&!(a7==1))&&(a19==3)))&&!(a20==1)))&&!(a4==1))&&(a2==1)))){ + a21 = 10; + a9 = 8; + a5 = 4; + a19 = 1; + a7 = 0; + a1 = 13; + a26 = 0; + a16 = 7; + return 21; + } else if((((((a17==2)&&((!(a12==1)||((a19==5)&&(!(a23==1)||(!(a26==1)&&(a11==1)))))&&!(a4==1)))||(a24==1))&&(a20==1))&&(((a16==7)&&(!(a14==1)&&(((((a5==4)||(a5==5))&&(input==6))&&(a1==14))&&(a9==10))))&&(a21==10)))){ + a21 = 12; + a6 = 1; + a5 = 5; + a0 = 0; + a9 = 11; + a19 = 4; + return 25; + } else if((((a16==8)&&((!(a20==1)&&((a19==4)&&((!(a27==1)&&(!(a4==1)&&((a9==10)&&((a11==1)&&((a1==14)&&((input==5)&&((a5==6)||((a5==4)||(a5==5)))))))))&&(a13==1))))&&(a21==11)))&&(!(a4==1)&&(((a3==1)&&(a2==1))&&(a17==2))))){ + a13 = 1; + a9 = 7; + a1 = 12; + a20 = 1; + a19 = 1; + a24 = 0; + a5 = 4; + a16 = 7; + a21 = 10; + a18 = 0; + return -1; + } else if(((((a21==12)&&(!(a20==1)&&((((a0==1)||((a1==13)&&(a28==1)))&&!(a24==1))&&(a12==1))))&&!(a0==1))&&(((a5==5)&&(!(a27==1)&&((((a16==8)&&((input==3)&&(a19==4)))&&(a17==2))&&(a9==8))))&&(a13==1)))){ + a15 = 0; + a20 = 1; + a19 = 1; + a21 = 10; + a8 = 1; + a16 = 7; + a5 = 4; + return -1; + } else if(((((a17==2)&&(!(a14==1)&&((a13==1)&&((a19==5)&&((a21==10)&&((a1==13)&&((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==3))))))))&&!(a7==1))&&(((!(a8==1)&&((a20==1)&&((a16==9)&&(a11==1))))||!(a2==1))&&!(a8==1)))){ + if((a23==1)){ + a19 = 1; + a26 = 0; + a6 = 1; + a16 = 8; + a21 = 11; + a20 = 0; + a9 = 11; + a27 = 0; + a5 = 4; + }else{ + a16 = 8; + a21 = 12; + a27 = 0; + a7 = 0; + a1 = 14; + a5 = 5; + a9 = 11; + a4 = 0; + } + return 22; + } else if((((((a12==1)&&(((a9==9)&&(a11==1))&&(a12==1)))&&(a6==1))&&(a19==1))&&((a17==2)&&((a21==10)&&(((!(a20==1)&&(!(a4==1)&&((((a1==13)&&(input==4))&&!(a24==1))&&!(a7==1))))&&(a5==5))&&(a16==9)))))){ + a20 = 1; + a16 = 7; + a25 = 1; + a9 = 8; + a27 = 1; + a1 = 12; + a18 = 1; + return 21; + } else if((((a17==2)&&((a19==1)&&(((((a2==1)&&((((!(a23==1)||((a16==10)&&(a11==1)))&&!(a8==1))||(a27==1))||(a18==1)))&&(a1==13))&&(a21==10))&&(a5==6))))&&((((input==5)&&(a9==10))&&(a20==1))&&(a6==1)))){ + a9 = 8; + a6 = 1; + a14 = 0; + a21 = 12; + a1 = 14; + a16 = 8; + a8 = 0; + return 21; + } else if((((a16==9)&&(((!(a12==1)||((((a12==1)&&(a11==1))&&(a21==11))||!(a6==1)))&&!(a8==1))&&(a9==9)))&&(((a1==12)&&(!(a20==1)&&(((!(a0==1)&&((a5==5)&&(input==1)))&&!(a4==1))&&(a17==2))))&&(a19==2)))){ + a4 = 1; + a1 = 14; + a25 = 0; + a7 = 1; + a16 = 7; + a5 = 4; + a21 = 10; + a20 = 1; + a19 = 1; + return 21; + } else if(((!(a20==1)&&(((a17==2)&&(((a4==1)||(((a23==1)&&(a19==1))&&!(a4==1)))&&(a16==8)))||!(a3==1)))&&((!(a4==1)&&((a3==1)&&(((((input==5)&&((a5==4)||(a5==5)))&&(a9==10))&&(a1==14))&&(a21==11))))&&(a2==1)))){ + a24 = 0; + a1 = 12; + a16 = 7; + a3 = 1; + a11 = 1; + a5 = 4; + a9 = 7; + a20 = 1; + a21 = 10; + return -1; + } else if(((!(a2==1)||((a19==1)&&((!(a28==1)||((((a2==1)&&(a17==2))&&(a2==1))&&!(a18==1)))&&!(a8==1))))&&((a20==1)&&(((((input==6)&&((((a9==11)&&((a1==13)&&(a5==5)))||((a9==11)&&((a1==13)&&(a5==6))))||((a9==7)&&((a1==14)&&(a5==4)))))&&(a16==10))&&(a3==1))&&(a21==12))))){ + a19 = 2; + a9 = 9; + a16 = 7; + a21 = 10; + a1 = 13; + a12 = 1; + a2 = 1; + a5 = 4; + return 25; + } else if(((((!(a27==1)&&((a16==7)&&((a2==1)&&(!(a7==1)&&(((a21==10)&&(a28==1))&&(a19==2))))))&&(a17==2))&&(a1==12))&&(((a9==11)&&((!(a7==1)&&(!(a7==1)&&((input==6)&&((a5==5)||(a5==6)))))&&(a2==1)))&&!(a20==1)))){ + a5 = 4; + a8 = 0; + a1 = 14; + a3 = 1; + a6 = 1; + return 21; + } else if((((a1==13)&&(((a2==1)&&((a20==1)&&(((a13==1)&&((a18==1)||((a21==12)&&(a12==1))))&&(a5==5))))&&!(a24==1)))&&((a16==11)&&((((((input==4)&&(a9==8))&&!(a26==1))&&(a19==5))&&(a2==1))&&(a17==2))))){ + a19 = 1; + a5 = 4; + a12 = 1; + a1 = 12; + a21 = 10; + a26 = 0; + a16 = 7; + a9 = 7; + return -1; + } else if((((!(a20==1)&&(!(a8==1)&&(!(a4==1)&&(((a21==10)&&((a3==1)&&((((a5==4)||(a5==5))&&(input==6))&&(a2==1))))&&(a1==12)))))&&(a17==2))&&(((!(a28==1)||((a9==7)&&((a3==1)||!(a3==1))))&&(a19==1))&&(a16==10)))){ + if((a18==1)){ + a9 = 10; + a5 = 5; + a16 = 7; + a12 = 0; + a22 = 0; + a6 = 0; + a1 = 14; + a20 = 1; + }else{ + a20 = 1; + a16 = 7; + a22 = 1; + a15 = 1; + a1 = 13; + a9 = 8; + a0 = 1; + a5 = 6; + } + return -1; + } else if((((a5==5)&&(((((((a11==1)&&(a2==1))||!(a12==1))&&(a11==1))&&(a17==2))&&(a28==1))&&(a19==2)))&&(((a21==12)&&((!(a7==1)&&(((a12==1)&&((input==4)&&(a20==1)))&&(a1==14)))&&(a9==9)))&&(a16==11)))){ + a1 = 12; + a12 = 1; + a7 = 0; + a5 = 4; + a19 = 1; + a8 = 0; + a9 = 7; + a16 = 7; + a21 = 10; + return -1; + } else if(((!(a4==1)&&(((a16==10)&&(((((a6==1)&&(((a5==5)||(a5==6))&&(input==1)))&&(a3==1))&&(a17==2))&&!(a4==1)))&&!(a26==1)))&&((a19==5)&&(!(a14==1)&&((a1==12)&&((a21==11)&&(((a13==1)&&(a9==11))&&!(a20==1)))))))){ + if((a23==1)){ + a4 = 1; + a19 = 3; + a28 = 0; + a1 = 14; + a9 = 10; + a16 = 7; + a24 = 1; + a21 = 10; + a5 = 4; + }else{ + a1 = 14; + a21 = 10; + a9 = 10; + a20 = 1; + a6 = 0; + a26 = 1; + a19 = 1; + a5 = 6; + a16 = 7; + a25 = 1; + } + return 21; + } else if((((!(a7==1)&&(((a13==1)&&((a16==10)&&(a11==1)))&&(a19==3)))&&(a21==11))&&(!(a8==1)&&((((a1==14)&&(((!(a8==1)&&((input==5)&&(((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))))&&(a17==2))&&!(a24==1)))&&(a20==1))&&!(a4==1))))){ + a9 = 8; + a21 = 10; + a2 = 1; + a5 = 6; + a1 = 13; + a19 = 4; + a12 = 1; + a16 = 7; + return 21; + } else if((((a17==2)&&(((((a1==14)&&((input==6)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))))&&!(a0==1))&&!(a20==1))&&(a2==1)))&&(!(a24==1)&&((((a19==5)&&(((a11==1)&&((a21==10)&&(a6==1)))&&(a16==7)))&&(a3==1))||!(a2==1))))){ + a14 = 0; + a21 = 11; + a9 = 10; + a16 = 8; + a6 = 1; + a20 = 1; + a2 = 1; + a5 = 4; + a19 = 1; + return -1; + } else if((((a21==12)&&((!(a8==1)&&(((input==6)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5))))&&!(a7==1)))&&!(a20==1)))&&((((a1==12)&&((((a11==1)&&(((a11==1)&&!(a8==1))&&(a17==2)))&&!(a27==1))&&!(a14==1)))&&(a16==7))&&(a19==2)))){ + a7 = 0; + a20 = 1; + a23 = 1; + a19 = 4; + a9 = 11; + a5 = 6; + a1 = 13; + a8 = 0; + a16 = 11; + return 25; + } else if(((!(a27==1)&&((a17==2)&&((a16==8)&&(((a28==1)&&(((((input==3)&&((a5==5)||(a5==6)))&&!(a20==1))&&(a19==1))&&(a9==8)))&&!(a27==1)))))&&(((((!(a23==1)||(a6==1))&&(a1==12))&&!(a8==1))&&(a21==11))&&(a28==1)))){ + a20 = 1; + a9 = 10; + a21 = 12; + a11 = 1; + a5 = 5; + a8 = 0; + a19 = 3; + a16 = 10; + a1 = 13; + return 21; + } else if(((!(a3==1)||(((((a19==1)&&(((a2==1)&&(a6==1))&&(a16==10)))||!(a2==1))||!(a13==1))&&(a20==1)))&&(((a1==12)&&((((((input==1)&&((a5==4)||(a5==5)))&&(a9==10))&&!(a27==1))&&!(a26==1))&&(a17==2)))&&(a21==11)))){ + a16 = 7; + a2 = 1; + a28 = 1; + a26 = 0; + a9 = 7; + a21 = 10; + a5 = 4; + return -1; + } else if((((((a5==6)&&(((a27==1)&&((((a27==1)&&((a16==7)&&(input==5)))&&(a27==1))&&(a27==1)))&&!(a3==1)))&&(a21==10))&&!(a20==1))&&((a19==1)&&(((((a9==7)&&(a28==1))&&!(a3==1))&&(a1==12))&&(a17==2))))){ + a22 = 1; + a9 = 10; + a10 = 0; + a15 = 1; + a20 = 1; + a5 = 5; + a1 = 14; + return -1; + } else if((((((a24==1)||(!(a0==1)&&((((a16==10)&&((a20==1)&&(a13==1)))&&(a28==1))||(a26==1))))&&(a1==12))&&(a19==1))&&(!(a27==1)&&((a9==11)&&(((a23==1)&&((a21==12)&&((input==3)&&((a5==6)||((a5==4)||(a5==5))))))&&(a17==2)))))){ + a3 = 1; + a13 = 1; + a11 = 1; + a16 = 7; + a21 = 10; + a5 = 4; + a9 = 7; + return -1; + } else if((((((a17==2)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))&&!(a8==1))&&!(a20==1))&&((a9==7)&&((a19==5)&&(((((a2==1)&&((a3==1)&&((((a16==7)&&(a3==1))||(a18==1))&&(a2==1))))&&(a2==1))&&(a21==11))&&(a1==14)))))){ + a21 = 10; + a2 = 1; + a20 = 1; + a5 = 4; + a1 = 12; + a7 = 0; + a19 = 1; + a6 = 1; + return -1; + } else if(((((((a21==11)&&(((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a12==1)))&&!(a26==1))&&(a19==2))&&(a11==1))&&((((a9==7)&&((a16==9)&&((a17==2)&&(((a1==14)&&((a20==1)&&(a13==1)))||!(a12==1)))))&&!(a27==1))||!(a28==1)))){ + a18 = 0; + a24 = 0; + a16 = 10; + a21 = 10; + a5 = 5; + a7 = 0; + return 21; + } else if(((((!(a6==1)||((a9==8)&&(((a20==1)&&((a16==11)&&(a13==1)))&&(a1==13))))&&!(a4==1))||(a18==1))&&((((a17==2)&&((a21==10)&&((a19==1)&&(!(a0==1)&&(((a5==4)||(a5==5))&&(input==6))))))&&(a6==1))&&!(a8==1)))){ + a16 = 7; + a23 = 1; + a5 = 4; + a2 = 1; + a1 = 12; + a9 = 7; + return -1; + } else if(((((a19==2)&&((a6==1)&&!(a27==1)))||(a18==1))&&(((a1==14)&&((((a6==1)&&((a28==1)&&(((((a21==12)&&((a5==5)&&(input==5)))&&(a9==9))&&(a3==1))&&(a20==1))))&&(a17==2))&&!(a8==1)))&&(a16==10)))){ + a7 = 0; + a28 = 1; + a16 = 7; + a12 = 1; + a1 = 13; + a21 = 10; + return 25; + } else if(((((!(a0==1)&&((a20==1)&&(!(a4==1)&&(((a5==6)&&((a23==1)&&((a17==2)&&((input==5)&&(a19==1)))))&&(a1==14)))))&&(a3==1))&&!(a27==1))&&((a16==11)&&(((a9==10)&&(!(a2==1)||(a13==1)))&&(a21==11))))){ + a20 = 0; + a14 = 0; + a16 = 8; + a7 = 0; + a19 = 2; + a21 = 10; + return 21; + } else if(((((a27==1)&&((a4==1)&&((a19==1)&&((((a21==12)&&(a3==1))&&(a26==1))&&(a8==1)))))&&!(a28==1))&&(((((((input==5)&&(((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))))&&(a4==1))&&(a16==7))&&(a20==1))&&(a1==14))&&(a17==2)))){ + a5 = 5; + a1 = 13; + a21 = 10; + a4 = 1; + a23 = 0; + a9 = 10; + a0 = 1; + return 22; + } else if((((a18==1)&&(((((a19==2)&&(((a1==14)&&((a2==1)&&(a20==1)))&&(a16==10)))&&(a21==12))&&!(a28==1))&&(a4==1)))&&(!(a23==1)&&((!(a28==1)&&((a17==2)&&((input==6)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))))&&!(a28==1))))){ + a5 = 6; + a9 = 11; + a16 = 7; + a21 = 10; + a0 = 1; + a20 = 0; + a19 = 5; + a6 = 0; + a1 = 12; + return -1; + } else if((((a21==10)&&((a1==13)&&(!(a3==1)||(((!(a4==1)&&(a12==1))&&(a9==9))&&!(a24==1)))))&&((((a19==5)&&(((a2==1)&&((a20==1)&&((a17==2)&&((input==4)&&((a5==5)||(a5==6))))))&&!(a26==1)))&&(a23==1))&&(a16==7)))){ + a18 = 0; + a16 = 8; + a20 = 0; + a7 = 0; + a9 = 8; + a1 = 14; + a24 = 0; + a5 = 6; + a19 = 2; + return 23; + } else if(((((a5==5)&&(((((input==5)&&(a21==10))&&(a9==11))&&(a1==14))&&(a17==2)))&&!(a4==1))&&((a13==1)&&((((((a19==2)&&(((a12==1)||(a18==1))&&(a16==11)))&&(a12==1))&&!(a4==1))&&!(a20==1))||!(a2==1))))){ + a1 = 12; + a5 = 4; + a16 = 8; + a12 = 0; + a28 = 0; + a21 = 12; + a27 = 1; + return 25; + } else if((((!(a27==1)&&((((a17==2)&&(((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))&&(input==5))&&!(a14==1)))&&!(a20==1))&&(a16==7)))&&(a23==1))&&((((a19==5)&&((a8==1)||(((a23==1)||!(a6==1))&&(a1==13))))||(a26==1))&&(a21==10)))){ + a5 = 6; + a9 = 10; + a0 = 0; + a27 = 0; + a3 = 1; + a20 = 1; + a1 = 12; + a19 = 1; + return -1; + } else if((((((a11==1)&&(((a17==2)&&((a28==1)&&(a19==1)))&&(a21==11)))||!(a28==1))&&(a16==8))&&((a9==9)&&(((a12==1)&&((a1==13)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&(a11==1))&&(a20==1))&&!(a7==1))))&&(a12==1))))){ + a9 = 8; + a1 = 14; + a5 = 6; + a21 = 12; + a2 = 1; + a24 = 0; + return 21; + } else if(((!(a0==1)&&(((((a6==1)&&((((input==5)&&(a9==8))&&(a21==10))&&!(a20==1)))&&(a13==1))&&(a2==1))&&(a1==12)))&&(((a5==6)&&((a11==1)&&(!(a6==1)||(((a17==2)&&(a3==1))&&(a19==1)))))&&(a16==11)))){ + a11 = 0; + a9 = 11; + a27 = 1; + a19 = 2; + a16 = 7; + a5 = 5; + a15 = 1; + a20 = 1; + return 23; + } else if(((!(a7==1)&&((((((a6==1)&&(a21==11))||!(a13==1))&&(a17==2))&&(a20==1))&&!(a14==1)))&&(!(a24==1)&&((a6==1)&&((a1==14)&&(((!(a27==1)&&((input==3)&&(((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))))&&(a19==3))&&(a16==10))))))){ + a21 = 10; + a11 = 1; + a18 = 0; + a3 = 1; + a5 = 4; + a16 = 7; + a9 = 9; + a19 = 2; + a1 = 13; + return -1; + } else if((((a12==1)&&((!(a18==1)&&((a1==13)&&(((((a6==1)&&((a17==2)&&((a9==11)&&((a19==1)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6)))))))&&(a16==11))&&(a20==1))&&!(a14==1))))&&(a23==1)))&&((a21==10)&&((a28==1)&&!(a18==1))))){ + a0 = 0; + a6 = 1; + a5 = 4; + a1 = 12; + a8 = 0; + a16 = 7; + a9 = 7; + return -1; + } else if((((a27==1)||(!(a14==1)&&(((a5==5)&&(((a17==2)&&((a16==10)&&(a2==1)))&&(a19==5)))&&(a9==9))))&&(((((((a11==1)&&((input==1)&&(a1==14)))&&(a21==12))&&(a20==1))&&!(a7==1))&&!(a27==1))&&(a6==1)))){ + a19 = 4; + a11 = 1; + a9 = 11; + a13 = 1; + a16 = 7; + a4 = 0; + a21 = 10; + a5 = 4; + return 25; + } else if(((((a1==14)&&((!(a2==1)||(((a16==10)&&(a6==1))&&!(a24==1)))||!(a12==1)))&&!(a20==1))&&((a9==7)&&(((a5==4)&&((((a17==2)&&((a2==1)&&((input==4)&&(a19==4))))&&(a6==1))&&(a21==11)))&&!(a24==1))))){ + a1 = 13; + a23 = 0; + a20 = 1; + a9 = 9; + a5 = 6; + a16 = 7; + a28 = 0; + a21 = 10; + a2 = 0; + a19 = 1; + return -1; + } else if((((a6==1)&&(((a3==1)&&(!(a7==1)&&((a16==9)&&((a21==10)&&(((a1==14)&&((input==5)&&((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11)))))&&!(a4==1))))))&&(a28==1)))&&((a6==1)&&(((a19==1)&&((a6==1)&&(a17==2)))&&!(a20==1))))){ + a16 = 7; + a5 = 4; + a26 = 1; + a9 = 7; + a1 = 13; + a20 = 1; + a6 = 0; + return -1; + } else if(((!(a8==1)&&((a3==1)&&(((a17==2)&&((a13==1)&&(((a21==11)&&(((a19==2)&&(input==5))&&(a5==6)))&&(a1==13))))&&(a12==1))))&&((a9==11)&&(!(a4==1)&&((((a16==7)&&(a23==1))&&!(a20==1))&&!(a26==1)))))){ + a20 = 1; + a28 = 1; + a21 = 12; + a1 = 12; + a9 = 9; + a19 = 1; + a18 = 0; + a2 = 1; + a5 = 4; + return 26; + } else if((((((a26==1)||(((a17==2)&&((((a19==4)&&(a28==1))||(a8==1))&&(a23==1)))||!(a28==1)))&&(a20==1))&&(a16==8))&&((a28==1)&&(((a1==12)&&((!(a0==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))&&(a9==7)))&&(a21==10))))){ + a8 = 0; + a5 = 4; + a1 = 13; + a16 = 7; + a9 = 8; + a23 = 1; + a14 = 0; + a19 = 2; + return 25; + } else if(((((a21==12)&&((a1==14)&&((a20==1)&&(((((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4)))&&(input==3))&&(a3==1))&&(a19==2)))))&&(a13==1))&&((((a16==9)&&(!(a11==1)||(((a2==1)&&(a3==1))&&!(a0==1))))&&!(a7==1))&&(a17==2)))){ + a5 = 4; + a23 = 1; + a16 = 7; + a9 = 7; + a3 = 1; + a6 = 1; + a1 = 12; + a19 = 1; + a21 = 10; + return -1; + } else if((((a20==1)&&(!(a8==1)&&(!(a24==1)&&(((input==5)&&(((a9==11)&&((a5==6)&&(a1==13)))||((a9==7)&&((a1==14)&&(a5==4)))))&&(a13==1)))))&&((a16==10)&&((a19==3)&&((a21==12)&&(((a17==2)&&(((a28==1)&&(a12==1))&&!(a4==1)))&&(a23==1))))))){ + a16 = 7; + a21 = 10; + a9 = 9; + a7 = 0; + a19 = 2; + a1 = 13; + a24 = 0; + a28 = 1; + a5 = 4; + return 25; + } else if(((((a16==8)&&((a21==12)&&(((a20==1)&&((((a3==1)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))&&(a1==14))&&(a28==1)))&&!(a4==1))))&&(a9==9))&&((a19==1)&&((a17==2)&&((!(a28==1)||((a8==1)||(a13==1)))&&(a12==1)))))){ + a16 = 10; + a21 = 11; + a23 = 1; + a0 = 0; + a5 = 5; + a9 = 7; + a19 = 5; + return 25; + } else if((((a6==1)&&(!(a23==1)||((a11==1)&&(a20==1))))&&(!(a4==1)&&((a21==10)&&((a1==13)&&(((((a3==1)&&((((input==4)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5))))&&(a19==2))&&(a17==2)))&&!(a0==1))&&(a23==1))&&(a16==10))))))){ + a8 = 0; + a1 = 12; + a2 = 1; + a5 = 4; + a3 = 1; + a16 = 7; + a19 = 1; + a9 = 7; + return -1; + } else if(((((a1==14)&&((a17==2)&&((a20==1)&&(!(a14==1)&&((a16==8)&&(a12==1))))))&&(a21==11))&&((((a28==1)&&((((a6==1)&&((input==6)&&(((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))))&&!(a4==1))&&!(a8==1)))&&(a12==1))&&(a19==5)))){ + a5 = 4; + a21 = 10; + a24 = 0; + a16 = 7; + a19 = 2; + a1 = 13; + a9 = 9; + a2 = 1; + a27 = 0; + return -1; + } else if(((((((a3==1)&&(a20==1))&&(a16==10))&&!(a0==1))&&(a21==11))&&(((a19==2)&&((a23==1)&&((a9==10)&&((((a2==1)&&((a6==1)&&((((a5==4)||(a5==5))&&(input==3))&&(a17==2))))&&(a11==1))&&(a11==1)))))&&(a1==13)))){ + a1 = 12; + a16 = 7; + a3 = 1; + a19 = 1; + a27 = 0; + a9 = 7; + a4 = 0; + a5 = 4; + a21 = 10; + return -1; + } else if((((a19==3)&&((!(a18==1)&&(a3==1))&&(a1==12)))&&(((a17==2)&&((((a5==4)&&((((a21==12)&&(!(a0==1)&&(((input==5)&&(a9==9))&&(a23==1))))&&!(a24==1))&&(a28==1)))&&(a16==8))&&!(a7==1)))&&(a20==1)))){ + a18 = 0; + a16 = 10; + a24 = 0; + a9 = 7; + a19 = 2; + a28 = 1; + a1 = 13; + return 25; + } else if(((!(a3==1)||(((a20==1)&&((a2==1)&&(a5==6)))&&(a16==9)))&&((!(a24==1)&&((a13==1)&&((a1==13)&&((a23==1)&&((a19==3)&&((a17==2)&&((a6==1)&&(((a9==8)&&(input==6))&&!(a4==1)))))))))&&(a21==12)))){ + a14 = 0; + a9 = 10; + a19 = 2; + a11 = 1; + a16 = 8; + a20 = 0; + a4 = 0; + a1 = 14; + a21 = 10; + return 21; + } else if((((a16==7)&&((a1==12)&&((a20==1)&&((a19==5)&&((((input==4)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5))))&&(a2==1))&&(a28==1))))))&&((a21==10)&&((!(a6==1)||((a26==1)||(((a3==1)||(a26==1))&&(a17==2))))&&!(a8==1))))){ + a14 = 0; + a9 = 7; + a7 = 0; + a23 = 1; + a19 = 1; + a5 = 4; + return -1; + } else if(((((!(a3==1)||((((a12==1)&&((!(a0==1)&&((a12==1)&&(a17==2)))||!(a6==1)))&&(a1==12))&&(a16==10)))&&(a20==1))||(a7==1))&&((a21==12)&&(((a9==9)&&(((input==1)&&((a5==5)||(a5==6)))&&(a19==5)))&&!(a24==1))))){ + a5 = 4; + a19 = 2; + a21 = 10; + a13 = 1; + a26 = 0; + a1 = 13; + a16 = 7; + a11 = 1; + return 25; + } else if(((!(a14==1)&&((a19==4)&&(((((a11==1)&&(!(a11==1)||(a11==1)))&&(a17==2))&&(a16==9))&&!(a20==1))))&&((a6==1)&&((((((input==4)&&(((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))))&&(a21==10))&&(a12==1))&&(a13==1))&&(a1==12))))){ + a9 = 10; + a5 = 6; + a14 = 1; + a6 = 0; + a16 = 7; + a21 = 12; + a19 = 2; + a15 = 1; + return 26; + } else if((((((((a19==4)&&(!(a26==1)&&((a9==8)&&(!(a18==1)&&((a23==1)&&(a20==1))))))&&(a17==2))&&(a16==8))&&(a1==13))||!(a28==1))&&(((a21==12)&&(((a2==1)&&(((a5==4)||(a5==5))&&(input==1)))&&!(a18==1)))&&(a6==1)))){ + a19 = 3; + a11 = 1; + a4 = 0; + a9 = 11; + a5 = 5; + a16 = 10; + a27 = 0; + a1 = 14; + return 21; + } else if(((!(a4==1)&&((a2==1)&&(!(a8==1)&&(((a16==9)&&(((a28==1)&&(((input==5)&&(a5==5))&&(a19==1)))&&(a17==2)))&&!(a20==1)))))&&((((((a1==13)&&(a23==1))&&!(a27==1))&&!(a14==1))&&(a9==7))&&(a21==11)))){ + a19 = 3; + a27 = 1; + a13 = 0; + a7 = 1; + a9 = 8; + return -1; + } else if(((!(a4==1)&&((a23==1)&&((!(a20==1)&&(((((a21==11)&&((a9==11)&&(((input==3)&&(a17==2))&&(a11==1))))&&!(a4==1))&&(a13==1))&&!(a0==1)))&&(a1==14))))&&((a5==6)&&((a16==10)&&((a23==1)&&(a19==4)))))){ + a1 = 12; + a5 = 5; + a19 = 5; + a23 = 0; + a21 = 12; + a27 = 1; + a16 = 7; + a7 = 1; + return -1; + } else if((((a16==7)&&((((((a20==1)&&((a6==1)&&(a17==2)))&&(a23==1))||(a0==1))||(a26==1))||(a8==1)))&&((a21==11)&&(((a19==4)&&(((a1==12)&&((((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(input==6)))&&!(a7==1)))&&(a11==1))))){ + a14 = 0; + a9 = 10; + a19 = 2; + a1 = 14; + a11 = 1; + a5 = 6; + a23 = 1; + a16 = 8; + return 21; + } else if(((((a17==2)&&(!(a20==1)&&(((!(a18==1)&&(((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11)))&&(input==4)))&&!(a18==1))&&(a1==12))))&&!(a0==1))&&((a21==11)&&((((!(a4==1)&&((a6==1)&&(a16==10)))||(a7==1))&&(a19==1))&&!(a27==1))))){ + a19 = 5; + a18 = 1; + a9 = 7; + a13 = 0; + a23 = 0; + a21 = 12; + a5 = 4; + a20 = 1; + return 21; + } else if(((((a13==1)||!(a13==1))&&(a2==1))&&((a28==1)&&((a9==7)&&((a5==5)&&((a21==12)&&((!(a4==1)&&(((a17==2)&&((!(a7==1)&&(!(a4==1)&&((a20==1)&&(input==4))))&&(a16==8)))&&(a1==13)))&&(a19==5)))))))){ + a19 = 2; + a16 = 7; + a7 = 0; + a21 = 10; + a12 = 1; + a24 = 0; + a9 = 9; + return 23; + } else if((((((((!(a0==1)&&((a21==11)&&((a1==13)&&(input==6))))&&!(a26==1))&&(a5==4))&&(a3==1))&&(a19==1))&&(a9==10))&&((a16==7)&&((a17==2)&&((a7==1)||(((a23==1)&&(!(a20==1)&&(a11==1)))&&(a3==1))))))){ + a20 = 1; + a19 = 2; + a21 = 10; + a11 = 1; + a9 = 9; + a6 = 1; + a23 = 1; + return 25; + } else if((((a20==1)&&((a1==13)&&((((a14==1)||((a13==1)&&(a11==1)))||!(a13==1))||(a4==1))))&&((a19==2)&&((a21==11)&&((a17==2)&&((a11==1)&&((a28==1)&&((a16==8)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==4)))))))))){ + a1 = 12; + a21 = 10; + a13 = 1; + a7 = 0; + a16 = 7; + a9 = 7; + a8 = 0; + a5 = 4; + a19 = 1; + return -1; + } else if((((a5==4)&&(!(a28==1)||((a19==5)&&(((a11==1)&&(a16==7))&&!(a27==1)))))&&((a17==2)&&((a9==8)&&(((a13==1)&&((!(a8==1)&&((a12==1)&&((a1==13)&&((a21==11)&&(input==4)))))&&(a20==1)))&&(a2==1)))))){ + a21 = 10; + a9 = 7; + a18 = 0; + a1 = 12; + a11 = 1; + a19 = 1; + a27 = 0; + return -1; + } else if((((a16==8)&&(((a5==6)&&(((a3==1)&&((a1==12)&&(a12==1)))&&(a21==11)))&&(a2==1)))&&((((a17==2)&&(!(a4==1)&&((((a13==1)&&((input==6)&&(a9==10)))&&!(a0==1))&&(a13==1))))&&!(a20==1))&&(a19==5)))){ + a5 = 5; + a18 = 1; + a3 = 0; + a16 = 7; + a1 = 14; + a4 = 1; + a21 = 12; + a19 = 2; + return -1; + } else if((((a17==2)&&((a1==14)&&((a13==1)&&((!(a20==1)&&(!(a26==1)&&((a9==9)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5)))))&&!(a24==1)))))&&((a19==3)&&((((a6==1)&&(((a16==11)&&(a13==1))||(a4==1)))&&(a21==10))||(a26==1))))){ + a10 = 0; + a5 = 6; + a19 = 1; + a9 = 7; + a4 = 1; + a16 = 7; + a8 = 1; + a20 = 1; + return -1; + } else if(((((((a2==1)&&((!(a26==1)&&((input==1)&&(a16==8)))&&!(a8==1)))&&(a19==3))&&(a13==1))&&!(a26==1))&&((a1==13)&&((a21==12)&&((a27==1)||((a9==10)&&((a17==2)&&((a5==6)&&((a3==1)&&!(a20==1)))))))))){ + a5 = 4; + a20 = 1; + a10 = 1; + a16 = 7; + a19 = 1; + a28 = 0; + a25 = 0; + a21 = 10; + return 25; + } else if(((((a1==13)&&((((!(a20==1)&&(!(a7==1)&&(a6==1)))&&(a28==1))&&!(a27==1))&&(a21==11)))&&(a5==6))&&((((a3==1)&&((((a9==7)&&((a19==1)&&(input==4)))&&(a16==10))&&!(a4==1)))&&(a17==2))&&!(a24==1)))){ + a16 = 7; + a10 = 1; + a20 = 1; + a1 = 14; + a29 = 1; + a21 = 10; + return -1; + } else if((((a16==8)&&((!(a18==1)&&(((a3==1)&&(!(a7==1)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==3))))&&(a21==10)))&&(a1==12)))&&(((((!(a6==1)||((a12==1)&&!(a7==1)))&&(a20==1))&&!(a4==1))&&(a19==1))&&(a17==2)))){ + a9 = 7; + a16 = 7; + a26 = 0; + a0 = 0; + a5 = 4; + a28 = 1; + return -1; + } else if(((((((a9==7)&&(((a27==1)||((a21==10)&&(a28==1)))&&!(a14==1)))&&(a19==5))&&!(a20==1))&&(a16==7))&&((((a13==1)&&((a6==1)&&(((a28==1)&&(((a5==4)||(a5==5))&&(input==1)))&&(a1==13))))&&(a6==1))&&(a17==2)))){ + if((a12==1)){ + a1 = 14; + a16 = 8; + a19 = 3; + a5 = 4; + a4 = 0; + a11 = 1; + a27 = 0; + a9 = 9; + }else{ + a19 = 3; + a16 = 10; + a9 = 10; + a21 = 12; + a23 = 1; + a20 = 1; + a5 = 5; + a11 = 1; + a18 = 0; + } + return 21; + } else if((((a17==2)&&((a19==2)&&(((input==5)&&((((a5==4)&&(a1==13))&&(a9==7))||(((a9==11)&&((a1==12)&&(a5==5)))||((a9==11)&&((a1==12)&&(a5==6))))))&&!(a14==1))))&&((a16==8)&&((a24==1)||(((!(a0==1)&&(!(a2==1)||(((a21==12)&&(a6==1))&&(a20==1))))&&(a11==1))&&!(a0==1)))))){ + a1 = 12; + a19 = 5; + a5 = 5; + a13 = 1; + a21 = 10; + a9 = 11; + a8 = 0; + a20 = 0; + a14 = 0; + return 21; + } else if(((((!(a27==1)&&((((a21==11)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==4)))&&(a16==8))&&(a1==12)))&&(a17==2))&&(a11==1))&&(!(a8==1)&&(((!(a14==1)&&(((a13==1)&&(a20==1))&&(a19==2)))&&!(a14==1))&&!(a7==1))))){ + a5 = 4; + a9 = 7; + a3 = 1; + a21 = 10; + a16 = 7; + a4 = 0; + a19 = 1; + a28 = 1; + return -1; + } else if(((((a12==1)&&((a8==1)||(((a3==1)&&(((a20==1)&&(a13==1))&&(a17==2)))&&(a5==5))))&&!(a4==1))&&((a13==1)&&((a21==12)&&((a6==1)&&((a1==14)&&(((a16==8)&&((a19==5)&&(input==3)))&&(a9==8)))))))){ + a1 = 13; + a9 = 10; + a7 = 0; + a24 = 0; + a12 = 1; + return -1; + } else if((((a20==1)&&((((((a13==1)&&!(a18==1))&&(a19==2))||(a0==1))&&(a28==1))&&!(a14==1)))&&((((a16==10)&&((a1==12)&&(!(a24==1)&&((a9==8)&&(((input==4)&&(a5==5))&&!(a14==1))))))&&(a17==2))&&(a21==11)))){ + a9 = 9; + a14 = 0; + a19 = 3; + a0 = 0; + a5 = 6; + a23 = 1; + return 25; + } else if((((!(a14==1)&&((a2==1)&&(a19==3)))||(a24==1))&&(((!(a14==1)&&(((a21==12)&&(!(a20==1)&&((a16==9)&&(((input==5)&&((((a9==11)&&((a1==13)&&(a5==5)))||((a9==11)&&((a1==13)&&(a5==6))))||((a9==7)&&((a5==4)&&(a1==14)))))&&(a17==2)))))&&(a12==1)))&&!(a8==1))&&(a3==1)))){ + a21 = 10; + a5 = 5; + a20 = 1; + a19 = 5; + a9 = 11; + a12 = 0; + a1 = 14; + a10 = 1; + return -1; + } else if(((((((((a14==1)||(!(a13==1)||((a19==2)&&(a11==1))))&&!(a18==1))||!(a6==1))&&(a16==9))&&(a17==2))&&!(a0==1))&&((((((((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))&&(input==6))&&!(a20==1))&&(a21==11))&&!(a14==1))&&(a1==12)))){ + a20 = 1; + a16 = 7; + a5 = 6; + a11 = 0; + a21 = 10; + a1 = 14; + a9 = 10; + a19 = 1; + a29 = 1; + return 21; + } else if(((!(a20==1)&&(((a26==1)||((a2==1)&&(((a11==1)&&(a2==1))&&(a21==11))))&&(a1==12)))&&(((a9==8)&&((!(a14==1)&&(!(a27==1)&&((a19==5)&&((((a5==4)||(a5==5))&&(input==5))&&(a28==1)))))&&(a17==2)))&&(a16==8)))){ + a5 = 5; + a12 = 1; + a19 = 3; + a20 = 1; + a6 = 1; + a9 = 10; + a16 = 9; + a3 = 1; + a1 = 13; + a21 = 10; + return 26; + } else if((((((a21==12)&&(((a12==1)&&((a19==1)&&((a9==10)&&((a17==2)&&(input==4)))))&&(a6==1)))&&!(a24==1))&&(a1==13))&&((a5==4)&&((a20==1)&&((((a4==1)||((a2==1)&&!(a4==1)))||!(a23==1))&&(a16==8)))))){ + a1 = 12; + a2 = 1; + a9 = 7; + a16 = 7; + a6 = 1; + a26 = 0; + a21 = 10; + return -1; + } else if((((a20==1)&&(((a21==10)&&(((input==4)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10))))&&(a1==13)))&&(a17==2)))&&((a16==8)&&((!(a27==1)&&((!(a7==1)&&((a23==1)&&(((a2==1)&&(a11==1))||!(a11==1))))&&(a19==4)))||!(a3==1))))){ + a9 = 7; + a8 = 0; + a16 = 7; + a1 = 12; + a19 = 1; + a5 = 4; + a0 = 0; + return -1; + } else if((((a21==10)&&((a19==4)&&(!(a12==1)||((a16==7)&&((a18==1)||(((a8==1)||(!(a4==1)&&(a2==1)))&&(a1==12)))))))&&((!(a24==1)&&((a17==2)&&((((a9==8)&&(input==1))&&(a5==5))&&(a6==1))))&&(a20==1)))){ + a8 = 0; + a5 = 4; + a21 = 11; + a2 = 1; + a1 = 14; + a28 = 1; + a9 = 7; + a19 = 3; + return 23; + } else if((((a17==2)&&((((((((a11==1)&&!(a8==1))&&(a19==2))||(a24==1))&&(a21==12))&&(a1==14))||!(a12==1))&&(a16==7)))&&(((((((a9==9)&&(input==4))&&(a5==5))&&(a3==1))&&!(a24==1))&&(a20==1))&&!(a26==1)))){ + a5 = 4; + a21 = 10; + a19 = 1; + a24 = 0; + a11 = 1; + a9 = 7; + a1 = 12; + a27 = 0; + return -1; + } else if(((((((!(a0==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3)))&&(a9==10))&&(a20==1))&&(a16==9))&&(a17==2))&&((a19==3)&&((a1==12)&&((((a13==1)&&(!(a8==1)&&(!(a12==1)||((a14==1)||(a11==1)))))||!(a12==1))&&(a21==10)))))){ + a18 = 0; + a1 = 13; + a9 = 8; + a24 = 0; + a12 = 1; + a16 = 10; + a5 = 4; + a19 = 2; + a21 = 12; + return 21; + } else if((((a6==1)&&((a16==7)&&(!(a4==1)&&(((a21==12)&&(input==1))&&!(a4==1)))))&&(!(a23==1)||((((a19==1)&&(((a5==5)&&((a20==1)&&(((a11==1)&&(a9==11))||(a26==1))))||(a4==1)))&&(a1==14))&&(a17==2))))){ + a1 = 12; + a2 = 1; + a9 = 7; + a21 = 10; + a5 = 4; + a0 = 0; + a18 = 0; + return -1; + } else if((((!(a26==1)&&(((a9==10)&&((((a5==5)&&(input==5))&&(a13==1))&&!(a20==1)))&&(a21==12)))&&(a28==1))&&(((a27==1)||(((a17==2)&&(((a1==14)&&((a18==1)||(a11==1)))&&(a19==2)))&&(a16==7)))||!(a3==1)))){ + a2 = 1; + a11 = 1; + a19 = 3; + a1 = 13; + a9 = 9; + a27 = 0; + a16 = 9; + a20 = 1; + return 25; + } else if(((((a21==12)&&(((((a20==1)&&(a6==1))&&(a14==1))&&(a16==7))&&(a19==3)))&&!(a3==1))&&(!(a23==1)&&(((a27==1)&&((a17==2)&&((a27==1)&&((a5==5)&&((a9==10)&&((a1==13)&&(input==6)))))))&&(a24==1))))){ + a4 = 1; + a5 = 6; + a10 = 0; + a9 = 7; + a19 = 1; + a2 = 0; + a21 = 10; + return 25; + } else if((((a20==1)&&((((!(a0==1)&&((a5==5)&&((input==4)&&(a16==7))))&&(a6==1))&&(a1==13))&&(a17==2)))&&((a9==11)&&((a21==10)&&((!(a11==1)||(!(a24==1)&&((a19==2)&&((a2==1)&&!(a0==1)))))||!(a6==1)))))){ + a3 = 1; + a5 = 4; + a1 = 12; + a19 = 4; + a9 = 8; + a7 = 0; + a27 = 0; + return 21; + } else if((((a17==2)&&((a21==11)&&(((((a19==4)&&((input==3)&&((a5==5)||(a5==6))))&&(a28==1))&&!(a8==1))&&(a20==1))))&&((((!(a0==1)&&(!(a26==1)&&(((a11==1)&&(a12==1))&&(a12==1))))&&(a16==11))&&(a9==8))&&(a1==12)))){ + a9 = 7; + a16 = 7; + a19 = 1; + a28 = 1; + a0 = 0; + a26 = 0; + a5 = 4; + a21 = 10; + return -1; + } else if(((((a9==11)&&(((a2==1)||(a0==1))&&(a1==14)))&&(a17==2))&&(((!(a14==1)&&((((a12==1)&&(!(a4==1)&&((a19==3)&&(!(a14==1)&&(((a5==4)||(a5==5))&&(input==1))))))&&(a21==11))&&(a3==1)))&&(a16==9))&&(a20==1)))){ + if((a28==1)){ + a20 = 0; + a5 = 5; + a8 = 0; + a16 = 8; + a23 = 1; + a9 = 7; + a6 = 1; + a1 = 12; + a19 = 1; + }else{ + a12 = 1; + a1 = 12; + a2 = 1; + a13 = 1; + a21 = 10; + a16 = 11; + a19 = 4; + a5 = 4; + a9 = 9; + } + return 22; + } else if((((((a19==3)&&((a5==5)&&((a16==9)&&((a14==1)||(!(a26==1)&&(a28==1))))))&&(a1==12))||!(a3==1))&&((a21==12)&&(!(a27==1)&&(((a12==1)&&((a17==2)&&(((input==4)&&(a20==1))&&!(a0==1))))&&(a9==7)))))){ + a21 = 10; + a19 = 1; + a8 = 0; + a7 = 0; + a13 = 1; + a16 = 7; + a5 = 4; + return -1; + } else if((((a9==11)&&(((a6==1)&&(((a17==2)&&((a1==14)&&((((a3==1)&&(a16==8))||!(a12==1))&&!(a26==1))))&&(a23==1)))&&(a21==11)))&&((a20==1)&&(!(a24==1)&&((a6==1)&&(((input==4)&&(a5==5))&&(a19==4))))))){ + a6 = 1; + a5 = 4; + a9 = 7; + a19 = 1; + a1 = 12; + a23 = 1; + a16 = 7; + a21 = 10; + return -1; + } else if((((a9==11)&&(((((a4==1)||((a13==1)&&!(a14==1)))||(a7==1))||!(a6==1))&&(a17==2)))&&((a1==12)&&(((a6==1)&&((a21==12)&&((a13==1)&&((a16==8)&&(!(a20==1)&&((input==1)&&((a5==5)||(a5==6))))))))&&(a19==2))))){ + if((a4==1)){ + a23 = 0; + a10 = 1; + a5 = 6; + a20 = 1; + a7 = 1; + a16 = 7; + a21 = 10; + a9 = 8; + }else{ + a1 = 13; + a6 = 0; + a5 = 5; + a21 = 10; + a20 = 1; + a10 = 1; + a16 = 11; + a9 = 8; + a26 = 1; + a19 = 3; + } + return 26; + } else if(((((a17==2)&&(((a9==10)&&((a16==10)&&(!(a20==1)&&(!(a2==1)||(a11==1)))))&&(a21==11)))&&(a19==3))&&((((a6==1)&&((a6==1)&&(((((a5==5)||(a5==6))&&(input==6))&&!(a24==1))&&!(a26==1))))&&!(a14==1))&&(a1==12)))){ + a5 = 4; + a1 = 13; + a9 = 9; + a10 = 0; + a19 = 5; + a21 = 10; + a24 = 1; + return 22; + } else if((((((a17==2)&&(((((input==5)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5))))&&(a13==1))&&(a16==7))&&(a19==1)))&&!(a24==1))&&(a1==12))&&((((!(a26==1)&&(((a13==1)&&!(a20==1))&&(a21==10)))&&(a11==1))&&!(a24==1))&&(a28==1)))){ + a5 = 4; + a2 = 1; + a20 = 1; + a9 = 7; + a26 = 0; + return -1; + } else if((((a12==1)&&((a23==1)&&((a21==10)&&(((((a23==1)&&(!(a27==1)&&((((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(input==5))))&&(a19==3))&&(a17==2))&&(a13==1)))))&&((a1==12)&&(!(a20==1)&&((a16==7)&&(!(a3==1)||(a3==1))))))){ + a21 = 11; + a16 = 11; + a20 = 1; + a5 = 5; + a3 = 1; + a27 = 0; + a19 = 2; + a2 = 1; + a9 = 11; + return 21; + } else if((((((((a21==12)&&(!(a24==1)&&((a1==13)&&(a6==1))))&&!(a26==1))||!(a3==1))&&(a17==2))&&(a16==9))&&(!(a20==1)&&((!(a18==1)&&(!(a26==1)&&((a28==1)&&(((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5)))&&(input==1)))))&&(a19==5))))){ + if((a5==6)){ + a1 = 12; + a12 = 0; + a19 = 1; + a5 = 5; + a9 = 11; + a21 = 10; + a14 = 1; + a16 = 7; + a27 = 1; + a20 = 1; + }else{ + a9 = 8; + a19 = 4; + a21 = 11; + a5 = 6; + a16 = 7; + a15 = 0; + a12 = 0; + a11 = 0; + a1 = 14; + } + return -1; + } else if(((!(a20==1)&&((a2==1)&&(((a11==1)||(a8==1))&&(a5==4))))&&((((a3==1)&&(((((a16==10)&&((a19==3)&&(((input==5)&&(a21==10))&&(a28==1))))&&(a12==1))&&(a17==2))&&(a9==10)))&&!(a8==1))&&(a1==13)))){ + if((a4==1)){ + a19 = 2; + a16 = 7; + a18 = 1; + a2 = 0; + a1 = 12; + a20 = 1; + a26 = 1; + a9 = 9; + a5 = 6; + }else{ + a20 = 1; + a26 = 1; + a15 = 0; + a9 = 7; + a8 = 1; + a16 = 7; + a19 = 1; + } + return 22; + } else if((((a2==1)&&((a21==10)&&((((a16==7)&&(((a4==1)||(a28==1))&&(a17==2)))&&(a23==1))||(a8==1))))&&((((a23==1)&&((input==6)&&((((a19==2)&&(((a1==14)&&(a5==5))&&(a9==11)))||((a19==2)&&(((a5==6)&&(a1==14))&&(a9==11))))||((a19==3)&&((a9==7)&&((a5==4)&&(a1==12)))))))&&!(a20==1))&&(a3==1)))){ + a16 = 9; + a1 = 14; + a5 = 4; + a20 = 1; + a7 = 0; + a19 = 5; + a14 = 0; + a21 = 11; + a9 = 11; + return 21; + } return calculate_output43(input); + } + + int calculate_output43(int input) { + if(((((a21==11)&&((((((a23==1)&&((input==5)&&(a5==6)))&&!(a14==1))&&(a12==1))&&(a20==1))&&(a17==2)))&&(a1==13))&&(((((((a26==1)||(a28==1))&&(a9==10))&&!(a8==1))&&(a19==1))&&(a16==10))&&(a23==1)))){ + a16 = 7; + a14 = 0; + a9 = 7; + a1 = 12; + a23 = 1; + a5 = 4; + a18 = 0; + a21 = 10; + return -1; + } else if((((a21==10)&&(!(a8==1)&&((a11==1)&&((!(a26==1)&&((a1==13)&&(((input==3)&&(a16==9))&&(a20==1))))&&(a9==8)))))&&(((a5==5)&&(!(a26==1)&&((a19==1)&&((a28==1)&&((a17==2)&&(a23==1))))))&&(a28==1)))){ + a16 = 7; + a4 = 0; + a9 = 7; + a13 = 1; + a1 = 12; + a11 = 1; + a5 = 4; + return -1; + } else if((((a12==1)&&(((a19==3)&&((a21==12)&&((a1==13)&&((a18==1)||((a17==2)&&(!(a20==1)&&(a11==1)))))))||!(a3==1)))&&(((a16==7)&&((a9==7)&&(!(a0==1)&&((((a5==5)||(a5==6))&&(input==4))&&!(a14==1)))))&&(a13==1)))){ + a26 = 0; + a5 = 4; + a19 = 1; + a21 = 10; + a1 = 12; + a20 = 1; + a23 = 1; + a2 = 1; + return -1; + } else if((((a1==12)&&((a20==1)&&((a21==10)&&(((a23==1)&&(a28==1))&&(a17==2)))))&&((((!(a26==1)&&(((a3==1)&&(!(a14==1)&&(((input==4)&&(a16==7))&&(a28==1))))&&(a6==1)))&&(a5==5))&&(a19==4))&&(a9==11)))){ + a14 = 0; + a16 = 8; + a20 = 0; + a28 = 1; + a19 = 2; + a21 = 11; + a4 = 0; + return 26; + } else if(((((a17==2)&&(((!(a20==1)&&(((a5==5)||(a5==6))&&(input==6)))&&!(a7==1))&&(a23==1)))&&!(a14==1))&&((((a9==7)&&(((a28==1)&&(((a16==9)&&((a23==1)&&(a19==5)))&&(a1==14)))&&(a21==11)))&&!(a24==1))||!(a6==1)))){ + a29 = 1; + a9 = 11; + a5 = 5; + a20 = 1; + a21 = 10; + a12 = 0; + a1 = 12; + a8 = 1; + a16 = 7; + a19 = 2; + return -1; + } else if((((a21==10)&&((a16==8)&&((((((((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6))))&&(input==1))&&!(a8==1))&&(a11==1))&&(a19==1))&&(a13==1))))&&((((!(a7==1)&&((a20==1)&&(!(a8==1)&&(a23==1))))||!(a3==1))&&(a1==12))&&(a17==2)))){ + a16 = 9; + a5 = 6; + a9 = 11; + a23 = 1; + a2 = 1; + a21 = 12; + a11 = 1; + a1 = 14; + return 25; + } else if((((a28==1)&&((a6==1)&&((a17==2)&&((((a21==11)&&((input==4)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))))&&!(a27==1))&&(a20==1)))))&&((!(a4==1)&&(((a1==14)&&((a19==1)&&((a16==11)&&(a3==1))))||(a7==1)))&&!(a8==1)))){ + a18 = 0; + a21 = 10; + a7 = 0; + a0 = 0; + a1 = 12; + a5 = 4; + a9 = 7; + a16 = 7; + return -1; + } else if(((((a19==1)&&((!(a6==1)||((a12==1)&&!(a20==1)))||(a27==1)))&&(a17==2))&&((((a16==9)&&(((((input==4)&&(((a9==7)&&((a1==13)&&(a5==4)))||(((a9==11)&&((a1==12)&&(a5==5)))||(((a1==12)&&(a5==6))&&(a9==11)))))&&(a3==1))&&!(a4==1))&&(a11==1)))&&!(a0==1))&&(a21==10)))){ + a16 = 8; + a14 = 1; + a5 = 6; + a19 = 3; + a21 = 12; + a1 = 14; + a9 = 9; + a26 = 1; + a13 = 0; + return -1; + } else if(((((a24==1)&&(((((a0==1)&&(a23==1))&&(a0==1))&&(a18==1))&&(a17==2)))&&(a20==1))&&((!(a28==1)&&((a19==1)&&(!(a28==1)&&((a16==7)&&((input==1)&&(((a9==11)&&((a1==13)&&(a5==6)))||((a9==7)&&((a5==4)&&(a1==14)))))))))&&(a21==12)))){ + a16 = 8; + a19 = 3; + a9 = 7; + a18 = 1; + a1 = 12; + a5 = 5; + a7 = 1; + a29 = 0; + return -1; + } else if((((a9==9)&&((!(a2==1)||((a16==11)&&((((a1==12)&&((a12==1)&&(a20==1)))||(a27==1))&&(a2==1))))&&!(a24==1)))&&((((((a21==10)&&((input==6)&&(a17==2)))&&!(a24==1))&&(a3==1))&&(a19==2))&&(a5==5)))){ + a13 = 1; + a19 = 1; + a14 = 0; + a5 = 6; + a4 = 0; + a16 = 10; + a9 = 10; + return 21; + } else if(((((a9==7)&&(((a17==2)&&((((a27==1)||((a27==1)||((a2==1)&&(a19==5))))&&(a1==12))&&(a21==12)))||(a7==1)))&&(a20==1))&&((a28==1)&&((((((a5==4)||(a5==5))&&(input==6))&&(a16==8))&&!(a7==1))&&!(a7==1))))){ + a21 = 10; + a13 = 1; + a16 = 7; + a19 = 2; + a9 = 9; + a14 = 0; + a28 = 1; + a1 = 13; + a5 = 5; + return 23; + } else if(((((!(a28==1)||(((a27==1)||(((a23==1)&&(a1==12))&&(a16==8)))&&(a28==1)))&&(a21==10))&&!(a18==1))&&(((a19==2)&&(((a11==1)&&((((input==4)&&(a5==4))&&(a17==2))&&(a9==11)))&&(a13==1)))&&!(a20==1)))){ + a19 = 1; + a9 = 7; + a8 = 0; + a27 = 0; + a12 = 1; + a16 = 7; + a20 = 1; + return -1; + } else if(((!(a24==1)&&((((a19==5)&&(((((((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&(input==5))&&(a16==7))&&(a20==1))&&(a13==1)))&&(a1==14))&&(a13==1)))&&((((a11==1)&&((a17==2)&&((a21==10)&&(a11==1))))&&!(a8==1))&&(a12==1)))){ + if((a15==1)){ + a19 = 4; + a9 = 11; + a2 = 1; + a21 = 11; + a1 = 13; + a20 = 0; + a5 = 4; + a14 = 0; + a11 = 1; + }else{ + a20 = 0; + a7 = 0; + a5 = 5; + a19 = 4; + a4 = 0; + a1 = 13; + a21 = 12; + a9 = 9; + a26 = 0; + } + return 25; + } else if((((((!(a18==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a7==1))&&(a12==1))&&(a16==9))&&((a17==2)&&(((a20==1)&&((!(a4==1)&&(((((a28==1)&&(a19==2))||(a14==1))&&(a12==1))&&(a9==11)))&&(a1==12)))&&(a21==10))))){ + a16 = 7; + a9 = 7; + a18 = 0; + a19 = 1; + a6 = 1; + a5 = 4; + a11 = 1; + return -1; + } else if((((!(a26==1)&&((a19==4)&&((a2==1)&&(((a21==10)&&(!(a18==1)&&((input==3)&&(((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))))))&&(a6==1)))))&&(a16==10))&&(((a20==1)&&(((!(a26==1)&&(a6==1))&&(a3==1))&&(a1==12)))&&(a17==2)))){ + a9 = 7; + a4 = 0; + a19 = 1; + a7 = 0; + a3 = 1; + a5 = 4; + a16 = 7; + return -1; + } else if(((!(a4==1)&&(((a21==10)&&(((!(a26==1)&&(!(a14==1)&&((a1==13)&&(a12==1))))&&(a17==2))&&(a9==9)))&&(a16==7)))&&((a13==1)&&(((a20==1)&&(!(a8==1)&&((a19==2)&&(((a5==4)||(a5==5))&&(input==5)))))&&(a6==1))))){ + a9 = 11; + a23 = 1; + a3 = 1; + a5 = 4; + a1 = 14; + a18 = 0; + return 21; + } else if((((a28==1)&&((((((a16==7)&&((((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))&&(input==6))&&(a19==5)))&&(a12==1))&&(a23==1))&&(a1==12))&&(a6==1)))&&(!(a4==1)&&(((!(a20==1)&&((a6==1)&&(a17==2)))||!(a12==1))&&(a21==12))))){ + a16 = 8; + a20 = 1; + a5 = 5; + a9 = 9; + a27 = 0; + a0 = 0; + a21 = 10; + a3 = 1; + return -1; + } else if((((a1==13)&&((a13==1)&&((a5==5)&&(!(a3==1)||((!(a27==1)&&(!(a3==1)||((a21==10)&&((a6==1)&&(a9==7)))))&&!(a18==1))))))&&((a16==8)&&((a19==3)&&(((a20==1)&&((a17==2)&&(input==4)))&&!(a14==1)))))){ + a7 = 0; + a24 = 0; + a1 = 12; + a16 = 9; + a5 = 4; + a27 = 0; + a19 = 5; + a21 = 12; + return 21; + } else if((((a28==1)&&((!(a20==1)&&((((((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))&&(input==5))&&!(a18==1))&&(a17==2))&&(a1==14)))&&(a16==8)))&&((!(a18==1)&&((a19==5)&&((((a6==1)&&!(a27==1))&&(a13==1))&&(a21==10))))||(a14==1)))){ + a13 = 1; + a1 = 12; + a9 = 11; + a5 = 6; + a21 = 12; + a23 = 1; + a20 = 1; + a19 = 3; + a0 = 0; + return 23; + } else if(((((a18==1)||((a11==1)&&(a2==1)))||!(a6==1))&&((((a1==14)&&((((((a19==2)&&((a16==10)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==3))))&&(a17==2))&&(a21==11))&&!(a20==1))&&!(a27==1)))&&!(a0==1))&&!(a14==1)))){ + if((a10==1)){ + a5 = 6; + a14 = 1; + a9 = 11; + a19 = 5; + a16 = 8; + a21 = 10; + a28 = 0; + a6 = 0; + }else{ + a5 = 6; + a1 = 13; + a12 = 0; + a19 = 3; + a8 = 1; + a21 = 10; + a16 = 8; + a27 = 1; + a9 = 7; + } + return 26; + } else if((((a12==1)&&(((a3==1)&&((((a1==14)&&(((a23==1)&&((input==3)&&(a21==10)))&&!(a14==1)))&&(a9==11))&&(a6==1)))&&(a28==1)))&&(((!(a20==1)&&(((a5==6)&&(a13==1))&&(a19==2)))&&(a17==2))&&(a16==8)))){ + a14 = 0; + a20 = 1; + a19 = 5; + a16 = 10; + a5 = 4; + a23 = 1; + a12 = 1; + a21 = 12; + return 25; + } else if(((((a19==2)&&((a20==1)&&(a23==1)))||(a8==1))&&((a2==1)&&((a21==10)&&(((a13==1)&&((a9==10)&&((!(a24==1)&&((a5==5)&&((((input==4)&&(a1==14))&&(a16==8))&&(a28==1))))&&(a17==2))))&&(a28==1)))))){ + a19 = 1; + a5 = 4; + a24 = 0; + a12 = 1; + a1 = 12; + a9 = 7; + a28 = 1; + a16 = 7; + return -1; + } else if((((a1==12)&&((((a17==2)&&((((a24==1)||(!(a0==1)&&((a2==1)||(a18==1))))||(a24==1))&&!(a20==1)))&&(a21==10))&&(a19==1)))&&(!(a7==1)&&((((input==6)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&!(a27==1))&&(a16==11))))){ + a19 = 2; + a9 = 8; + a16 = 7; + a23 = 0; + a5 = 5; + a22 = 0; + a28 = 0; + a20 = 1; + return -1; + } else if((((a17==2)&&(((((!(a18==1)&&((input==3)&&(a19==2)))&&(a20==1))&&(a9==10))&&!(a8==1))&&(a5==5)))&&(((a21==11)&&((((((a12==1)||!(a3==1))&&(a1==12))||!(a2==1))&&(a28==1))&&(a3==1)))&&(a16==10)))){ + a5 = 4; + a19 = 1; + a21 = 10; + a16 = 7; + a18 = 0; + a13 = 1; + a9 = 7; + a2 = 1; + return -1; + } else if(((!(a26==1)&&(((!(a18==1)&&((((a1==13)&&((a19==2)&&(input==3)))&&!(a4==1))&&(a9==11)))&&!(a18==1))&&(a17==2)))&&(((!(a13==1)||((((a20==1)&&(a6==1))&&(a5==6))&&(a16==10)))||!(a23==1))&&(a21==12)))){ + a8 = 0; + a0 = 0; + a21 = 10; + a16 = 7; + a1 = 12; + a5 = 4; + a23 = 1; + a19 = 1; + a9 = 7; + return -1; + } else if((((((a18==1)||((((a13==1)&&(a19==4))&&(a9==10))&&(a17==2)))&&(a28==1))&&!(a27==1))&&(((a20==1)&&((a11==1)&&((a13==1)&&((!(a7==1)&&((a16==11)&&((input==4)&&((a5==5)||(a5==6)))))&&(a21==10)))))&&(a1==12)))){ + a9 = 7; + a7 = 0; + a16 = 7; + a26 = 0; + a19 = 1; + a5 = 4; + a2 = 1; + return -1; + } else if((((!(a6==1)||((a21==11)&&((a16==8)&&((((a19==2)&&((a1==13)&&(a23==1)))&&!(a14==1))||(a27==1)))))||(a7==1))&&((a3==1)&&((a17==2)&&(!(a4==1)&&(!(a20==1)&&((input==3)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))))))){ + a5 = 4; + a9 = 7; + a27 = 0; + a13 = 1; + a7 = 0; + a16 = 7; + a19 = 1; + a21 = 10; + a1 = 12; + a20 = 1; + return -1; + } else if(((!(a27==1)&&((a13==1)&&((a9==9)&&(!(a8==1)&&((a16==10)&&((a11==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4))))))))&&((((a19==5)&&((a1==12)&&((((a28==1)&&(a21==10))&&(a17==2))||!(a12==1))))&&(a20==1))||(a27==1)))){ + if((a20==1)){ + a20 = 0; + a27 = 0; + a5 = 4; + a18 = 0; + a21 = 11; + a19 = 3; + a12 = 1; + a16 = 8; + a9 = 10; + a1 = 14; + }else{ + a11 = 1; + a9 = 7; + a4 = 0; + a7 = 0; + a1 = 13; + a21 = 11; + a5 = 4; + a16 = 9; + } + return -1; + } else if(((((a17==2)&&((a0==1)||((a24==1)||((!(a24==1)&&((!(a6==1)||((a11==1)&&(a19==4)))&&(a9==10)))&&(a1==12)))))&&(a13==1))&&((a16==10)&&(!(a4==1)&&((a20==1)&&(((input==6)&&((a5==4)||(a5==5)))&&(a21==11))))))){ + a5 = 5; + a9 = 9; + a19 = 2; + a6 = 1; + a8 = 0; + a14 = 0; + a16 = 7; + a1 = 13; + a21 = 10; + return -1; + } else if(((((a9==8)&&((!(a7==1)&&((a21==11)&&(!(a14==1)&&((a3==1)&&((((a5==4)||(a5==5))&&(input==1))&&(a1==12))))))&&!(a0==1)))&&(a17==2))&&((a20==1)&&(((((a13==1)||!(a13==1))&&(a16==11))&&(a19==2))&&(a28==1))))){ + a5 = 4; + a19 = 1; + a6 = 1; + a9 = 7; + a13 = 1; + a16 = 7; + a7 = 0; + a21 = 10; + return -1; + } else if(((((a5==4)&&((a23==1)&&((!(a4==1)&&((((a17==2)&&(!(a20==1)&&((a19==5)&&(input==1))))&&(a21==10))&&(a28==1)))&&(a1==14))))&&(a9==8))&&(((a16==7)&&(((a8==1)||(a12==1))||(a7==1)))||!(a11==1)))){ + a9 = 7; + a27 = 0; + a1 = 12; + a20 = 1; + a23 = 1; + a19 = 1; + a0 = 0; + return -1; + } else if((((!(a6==1)||(((a16==8)&&((((a28==1)&&(((a3==1)&&(a19==5))&&!(a20==1)))&&(a2==1))&&(a21==12)))||!(a11==1)))&&(a9==10))&&(!(a26==1)&&((a1==14)&&(((a2==1)&&(((a5==5)||(a5==6))&&(input==3)))&&(a17==2)))))){ + a5 = 4; + a19 = 3; + a20 = 1; + a1 = 12; + a25 = 0; + a14 = 1; + a9 = 9; + a10 = 0; + return 21; + } else if(((!(a4==1)&&(!(a27==1)&&((((a16==9)&&(!(a4==1)&&((((a5==4)||(a5==5))&&(input==6))&&!(a26==1))))&&(a19==3))&&(a9==7))))&&((a1==14)&&((a17==2)&&(((a21==12)&&((a20==1)&&(!(a23==1)||(a12==1))))&&(a12==1)))))){ + a9 = 10; + a24 = 0; + a28 = 1; + a16 = 7; + a18 = 0; + a5 = 6; + a21 = 10; + a19 = 2; + a1 = 13; + return 25; + } else if((((a16==7)&&(!(a14==1)&&((((((a5==4)||(a5==5))&&(input==6))&&(a28==1))&&(a1==14))&&(a9==7))))&&(((!(a20==1)&&(((((a19==2)&&((a6==1)&&(a23==1)))&&!(a7==1))||!(a12==1))||!(a11==1)))&&(a17==2))&&(a21==11)))){ + a1 = 13; + a16 = 11; + a18 = 0; + a5 = 5; + a3 = 1; + a20 = 1; + a23 = 1; + return 21; + } else if((((a1==13)&&(((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&(a17==2)))&&((!(a12==1)||(((!(a8==1)&&((((a16==10)&&(((a21==12)&&((a9==10)&&(a11==1)))&&!(a0==1)))&&(a19==4))&&!(a20==1)))||!(a12==1))||(a14==1)))||(a4==1)))){ + if((a17==3)){ + a21 = 10; + a27 = 1; + a2 = 0; + a29 = 0; + a19 = 1; + a5 = 6; + a20 = 1; + a1 = 12; + a9 = 7; + a16 = 7; + }else{ + a1 = 14; + a0 = 1; + a25 = 1; + a9 = 7; + a14 = 1; + a21 = 10; + a5 = 6; + a19 = 1; + a16 = 7; + a20 = 1; + } + return -1; + } else if(((!(a28==1)||(!(a28==1)||((a13==1)&&(a19==1))))&&(((a13==1)&&(((!(a14==1)&&(((a21==12)&&(!(a24==1)&&((a28==1)&&((a17==2)&&((a5==4)&&(input==1))))))&&(a9==10)))&&(a1==12))&&!(a20==1)))&&(a16==9)))){ + a16 = 7; + a8 = 1; + a20 = 1; + a11 = 0; + a1 = 14; + a29 = 0; + a21 = 10; + return 22; + } else if(((((a9==11)&&(((a17==2)&&((a21==10)&&(((a6==1)&&(a11==1))&&(a16==10))))||!(a13==1)))&&!(a26==1))&&(((a20==1)&&((!(a14==1)&&((a2==1)&&((a1==14)&&(((a5==5)||(a5==6))&&(input==4)))))&&(a28==1)))&&(a19==2)))){ + a19 = 1; + a11 = 1; + a12 = 1; + a5 = 4; + a8 = 0; + a16 = 7; + a9 = 7; + a1 = 12; + return -1; + } else if((((!(a0==1)&&((a9==7)&&((!(a18==1)&&((input==1)&&((a5==5)||(a5==6))))&&(a17==2))))&&(a20==1))&&((((a1==13)&&((!(a11==1)||((((a11==1)&&!(a8==1))&&(a19==4))&&!(a18==1)))||(a8==1)))&&(a21==11))&&(a16==9)))){ + a24 = 0; + a16 = 10; + a13 = 1; + a28 = 1; + a19 = 5; + a5 = 6; + return 21; + } else if(((((a19==2)&&((a28==1)&&(((a16==7)&&((a26==1)||((((a2==1)&&(a5==5))||(a27==1))&&(a21==12))))&&(a20==1))))&&(a28==1))&&((((a9==7)&&((a1==13)&&((input==3)&&(a17==2))))&&(a2==1))&&(a13==1)))){ + a11 = 1; + a23 = 1; + a3 = 1; + a21 = 10; + a19 = 1; + a1 = 12; + a5 = 4; + return -1; + } else if((((a9==10)&&(!(a24==1)&&((a3==1)&&((a20==1)&&(input==5)))))&&((a1==12)&&(((a16==10)&&((a17==2)&&((((((a2==1)&&((a11==1)&&(a23==1)))&&(a21==10))&&(a5==4))&&(a19==3))&&(a28==1))))||!(a6==1))))){ + a8 = 0; + a21 = 12; + a16 = 8; + a14 = 0; + a19 = 5; + a5 = 6; + a9 = 7; + a1 = 13; + a26 = 0; + return 26; + } else if(((((!(a3==1)||(((!(a6==1)||(a11==1))&&(a19==2))&&(a20==1)))||(a4==1))&&(a13==1))&&((a21==11)&&(!(a24==1)&&((a17==2)&&((a28==1)&&(((a1==12)&&((((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a5==6)&&(a9==10))))&&(input==5)))&&(a16==11)))))))){ + a23 = 1; + a21 = 12; + a9 = 9; + a5 = 5; + a0 = 0; + a19 = 1; + a3 = 1; + return 25; + } else if((((a21==12)&&(!(a18==1)&&(((a28==1)||!(a6==1))&&(a5==6))))&&(!(a18==1)&&((((!(a0==1)&&((a28==1)&&(((a16==10)&&((a17==2)&&((input==3)&&(a20==1))))&&(a1==12))))&&(a6==1))&&(a19==2))&&(a9==7))))){ + a21 = 10; + a9 = 9; + a5 = 5; + a0 = 0; + a16 = 7; + a1 = 13; + a23 = 1; + a27 = 0; + return -1; + } else if((((((a13==1)&&(a18==1))&&(a27==1))&&(a27==1))&&(((a9==10)&&((((((a14==1)&&((a5==5)&&((a17==2)&&(((input==3)&&(a21==10))&&(a4==1)))))&&(a20==1))&&(a19==2))&&(a18==1))&&(a16==11)))&&(a1==14)))){ + a0 = 1; + a1 = 12; + a16 = 7; + a9 = 11; + a25 = 1; + a6 = 0; + a5 = 6; + return -1; + } else if((((a13==1)&&((a12==1)&&((a14==1)||(((a2==1)&&((a19==2)&&(a28==1)))&&(a16==10)))))&&(((a17==2)&&((a21==10)&&(((a20==1)&&(((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))&&(input==4))&&!(a27==1)))&&(a1==14))))&&(a13==1)))){ + a23 = 1; + a2 = 1; + a19 = 1; + a9 = 7; + a13 = 1; + a1 = 12; + a16 = 7; + a5 = 4; + return -1; + } else if((((((((a19==1)&&(((a5==5)||(a5==6))&&(input==3)))&&!(a27==1))&&(a6==1))&&(a13==1))&&(a9==9))&&(((((((((a17==2)&&(a28==1))||!(a12==1))&&(a20==1))||(a14==1))&&(a16==7))&&(a1==12))&&(a21==12))&&(a6==1)))){ + a5 = 4; + a21 = 10; + a0 = 0; + a27 = 0; + a14 = 0; + a9 = 7; + return -1; + } else if((((((!(a24==1)&&(a11==1))&&(a1==13))&&(a16==11))&&(a17==2))&&((!(a27==1)&&(((a2==1)&&((((a3==1)&&(((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))&&(input==3))&&!(a27==1)))&&(a23==1))&&!(a20==1)))&&(a19==3)))&&(a21==10)))){ + a21 = 11; + a23 = 0; + a5 = 4; + a16 = 8; + a15 = 0; + a1 = 14; + a9 = 7; + a19 = 5; + a27 = 1; + return -1; + } else if(((!(a27==1)&&(!(a8==1)&&((a21==10)&&((((a5==4)||(a5==5))&&(input==1))&&(a20==1)))))&&((a23==1)&&(((a19==3)&&(!(a26==1)&&((((((a2==1)&&(a11==1))&&(a1==13))&&(a9==10))&&(a17==2))&&(a16==7))))||(a0==1))))){ + a21 = 11; + a5 = 4; + a1 = 14; + a19 = 1; + a26 = 0; + a6 = 1; + a8 = 0; + a9 = 11; + return 26; + } else if(((((!(a27==1)&&((a1==13)&&(((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&(a3==1))))&&(a16==11))&&(a23==1))&&((((((a19==2)&&((((a17==2)&&(a6==1))&&!(a20==1))&&(a28==1)))&&(a21==10))&&!(a8==1))&&(a9==10))||(a0==1)))){ + a5 = 4; + a29 = 0; + a19 = 1; + a1 = 14; + a20 = 1; + a26 = 1; + a16 = 7; + return -1; + } else if((((((a19==4)&&((((a28==1)&&(a1==14))||(a26==1))&&(a21==12)))&&(a20==1))&&(a2==1))&&((a11==1)&&((!(a24==1)&&(((((input==6)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(a16==7))&&(a17==2))&&(a13==1)))&&(a28==1))))){ + a21 = 11; + a23 = 1; + a8 = 0; + a5 = 6; + a1 = 12; + a19 = 3; + a16 = 9; + a27 = 0; + a9 = 11; + return 26; + } else if((((a17==2)&&((a19==1)&&((a16==7)&&((a13==1)&&((((((a9==7)&&((a1==14)&&(a5==4)))||(((a9==11)&&((a5==5)&&(a1==13)))||((a9==11)&&((a5==6)&&(a1==13)))))&&(input==5))&&(a11==1))&&!(a20==1))))))&&(!(a7==1)&&((a21==10)&&((((a2==1)&&!(a24==1))||(a8==1))||(a7==1)))))){ + a20 = 1; + a8 = 0; + a21 = 12; + a13 = 1; + a16 = 8; + a27 = 0; + a5 = 6; + a9 = 9; + a1 = 12; + return 25; + } else if((((a7==1)||(((a19==3)&&(!(a2==1)||((a23==1)||(a27==1))))&&(a20==1)))&&(!(a4==1)&&((a3==1)&&(((a21==11)&&((a1==14)&&(((a17==2)&&((((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(input==6)))&&(a16==11))))&&(a3==1)))))){ + a16 = 7; + a5 = 4; + a21 = 10; + a23 = 1; + a1 = 12; + a19 = 1; + a9 = 7; + a24 = 0; + a11 = 1; + return -1; + } else if(((((a6==1)&&((a2==1)&&(((input==4)&&((a5==4)||(a5==5)))&&!(a18==1))))&&!(a20==1))&&((a8==1)||((a9==8)&&(((a19==1)&&((a16==7)&&((a17==2)&&((((a1==14)&&(a23==1))&&(a21==12))&&!(a8==1)))))||!(a11==1)))))){ + a3 = 1; + a23 = 1; + a21 = 10; + a20 = 1; + a14 = 0; + a9 = 7; + a5 = 4; + a1 = 12; + return -1; + } else if((((a9==9)&&(((a19==5)&&((a28==1)&&((input==1)&&(a21==10))))&&(a5==5)))&&(((((a2==1)&&((a16==10)&&(!(a23==1)||(((a13==1)&&((a28==1)&&(a2==1)))&&!(a20==1)))))&&!(a7==1))&&(a1==14))&&(a17==2)))){ + a1 = 12; + a5 = 4; + a12 = 0; + a9 = 10; + a21 = 11; + a19 = 2; + a22 = 0; + a8 = 1; + a16 = 7; + return -1; + } else if((((a23==1)&&((a28==1)&&((a23==1)&&(((a1==14)&&(((a20==1)&&((a16==8)&&((a19==4)&&(a12==1))))||!(a13==1)))&&!(a18==1)))))&&((a5==4)&&(((a21==11)&&(((a9==8)&&(input==4))&&(a17==2)))&&(a28==1))))){ + a19 = 1; + a16 = 7; + a1 = 12; + a27 = 0; + a14 = 0; + a18 = 0; + a21 = 10; + a9 = 7; + return -1; + } else if((((((((a3==1)&&(((a19==2)&&((a21==10)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a11==1)))&&(a3==1))&&(a16==9))&&(a3==1))&&(a17==2))&&((a1==13)&&((a2==1)&&((a20==1)&&((!(a2==1)||(a13==1))&&(a9==9))))))){ + a21 = 12; + a16 = 10; + a1 = 12; + a9 = 11; + a19 = 4; + a0 = 0; + a6 = 1; + a23 = 1; + a5 = 6; + return 22; + } else if(((!(a3==1)||((a3==1)&&(((a11==1)&&((a2==1)&&(a16==10)))&&(a19==4))))&&(!(a18==1)&&((a6==1)&&(((a17==2)&&(((a2==1)&&((a21==12)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a20==1))))&&(a1==13)))&&(a9==11)))))){ + a21 = 10; + a18 = 0; + a1 = 14; + a13 = 1; + a2 = 1; + a5 = 5; + return -1; + } else if((((((((a28==1)&&(!(a28==1)||(a13==1)))||(a14==1))&&(a13==1))&&(a1==12))&&(a17==2))&&((a16==9)&&((a19==4)&&((a9==11)&&((((!(a4==1)&&((input==4)&&((a5==4)||(a5==5))))&&(a23==1))&&!(a20==1))&&(a21==10))))))){ + a9 = 8; + a26 = 1; + a19 = 1; + a16 = 7; + a20 = 1; + a14 = 1; + a5 = 6; + a1 = 13; + a7 = 1; + return 23; + } else if((((a21==11)&&((a20==1)&&(((a19==3)&&(!(a28==1)||((((a23==1)&&(!(a14==1)&&(a12==1)))&&(a17==2))||!(a28==1))))&&!(a8==1))))&&((a16==8)&&(((((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))&&(input==3))&&(a1==14))&&(a2==1))))){ + a9 = 7; + a0 = 0; + a19 = 1; + a5 = 4; + a11 = 1; + a1 = 12; + a21 = 10; + a12 = 1; + a16 = 7; + return -1; + } else if(((!(a3==1)&&((a1==13)&&((((a18==1)&&((a7==1)&&(a13==1)))&&!(a12==1))&&(a7==1))))&&(((a5==4)&&(((((a20==1)&&(!(a3==1)&&((a21==11)&&(input==5))))&&(a9==8))&&(a17==2))&&(a19==4)))&&(a16==9)))){ + a1 = 12; + a28 = 0; + a16 = 7; + a5 = 6; + a21 = 10; + a9 = 7; + a19 = 1; + a13 = 0; + a6 = 0; + return 23; + } else if((((a16==7)&&((a1==13)&&((a11==1)&&(!(a8==1)&&((a19==3)&&(((input==4)&&((a5==5)||(a5==6)))&&!(a20==1)))))))&&((a9==8)&&(!(a11==1)||((a17==2)&&(!(a13==1)||((((a3==1)&&!(a4==1))||!(a6==1))&&(a21==10)))))))){ + a20 = 1; + a11 = 1; + a9 = 7; + a26 = 0; + a0 = 0; + a1 = 12; + a5 = 4; + a19 = 1; + return -1; + } else if((((((a26==1)||(((a1==12)&&(((a21==11)&&(a12==1))||(a4==1)))&&!(a8==1)))&&(a6==1))||!(a2==1))&&((a13==1)&&(((a20==1)&&(((a9==10)&&((a16==10)&&(((a5==4)||(a5==5))&&(input==5))))&&(a17==2)))&&(a19==1))))){ + a5 = 4; + a26 = 0; + a27 = 0; + a19 = 4; + a9 = 11; + a14 = 0; + a16 = 7; + return 25; + } else if(((((((a7==1)&&((a17==2)&&((a13==1)&&(a16==9))))&&(a9==10))&&!(a11==1))&&(a19==2))&&(((((a1==13)&&((((a20==1)&&((input==4)&&(a5==4)))&&(a4==1))&&(a26==1)))&&!(a28==1))&&!(a6==1))&&(a21==10)))){ + a19 = 1; + a16 = 7; + a28 = 0; + a3 = 0; + a22 = 1; + a1 = 12; + a5 = 5; + return -1; + } else if(((((!(a20==1)&&(((a23==1)||!(a6==1))||(a24==1)))&&(a16==7))&&(a19==1))&&(!(a24==1)&&(((a21==12)&&((a2==1)&&((a2==1)&&(((a1==12)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a9==9)))&&(a17==2)))))&&!(a14==1))))){ + a20 = 1; + a9 = 7; + a24 = 0; + a11 = 1; + a21 = 10; + a12 = 1; + a5 = 4; + return -1; + } else if((((a19==4)&&((a23==1)&&((a5==4)&&((!(a0==1)&&((((a21==12)&&(input==3))&&!(a26==1))&&(a23==1)))&&!(a27==1)))))&&(((((((a6==1)&&(a28==1))&&!(a20==1))&&(a1==13))&&(a9==8))&&(a17==2))&&(a16==8)))){ + if((a23==1)){ + a20 = 1; + a16 = 7; + a19 = 1; + a21 = 10; + a14 = 1; + a2 = 0; + }else{ + a19 = 2; + a5 = 6; + a21 = 10; + a9 = 10; + a18 = 1; + a4 = 1; + a0 = 1; + } + return 25; + } else if(((((a21==12)&&(!(a13==1)||((((!(a24==1)&&(a28==1))||!(a13==1))||(a0==1))&&(a20==1))))&&(a17==2))&&((a16==8)&&((a13==1)&&(((input==6)&&((((a19==1)&&((a9==11)&&((a1==14)&&(a5==6))))||((a19==2)&&((a9==7)&&((a1==12)&&(a5==4)))))||(((a9==7)&&((a5==5)&&(a1==12)))&&(a19==2))))&&(a11==1)))))){ + a1 = 12; + a19 = 1; + a6 = 1; + a21 = 10; + a12 = 1; + a3 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + return -1; + } else if(((((a3==1)&&((((a2==1)&&((a21==10)&&(!(a4==1)&&((a17==2)&&(((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))&&(input==4))))))&&(a1==14))&&(a3==1)))&&(a2==1))&&(((a13==1)&&(((a6==1)&&(a16==8))&&!(a20==1)))&&(a19==3)))){ + a6 = 1; + a20 = 1; + a7 = 0; + a16 = 7; + a14 = 0; + a5 = 4; + a9 = 7; + a1 = 12; + a19 = 1; + return -1; + } else if((((a16==10)&&((!(a0==1)&&((a11==1)&&((a11==1)&&(((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==3))&&!(a14==1)))))&&!(a20==1)))&&((a17==2)&&((a1==14)&&((a19==5)&&((a13==1)&&(((a3==1)&&(a3==1))&&(a21==11)))))))){ + if((a12==1)){ + a16 = 7; + a13 = 0; + a1 = 12; + a21 = 10; + a9 = 11; + a5 = 6; + a19 = 2; + a2 = 0; + a29 = 0; + a20 = 1; + }else{ + a2 = 0; + a26 = 1; + a19 = 2; + a9 = 9; + a5 = 6; + a16 = 8; + a21 = 12; + a22 = 0; + } + return -1; + } else if((((((!(a20==1)&&(((a19==3)&&((a23==1)&&(a17==2)))||(a14==1)))&&(a23==1))&&(a21==11))||!(a23==1))&&((((!(a0==1)&&((((((a5==6)&&(a1==12))&&(a9==11))||(((a5==4)&&(a1==13))&&(a9==7)))||((a9==7)&&((a5==5)&&(a1==13))))&&(input==1)))&&(a16==8))&&(a28==1))&&!(a8==1)))){ + a8 = 0; + a5 = 4; + a24 = 0; + a20 = 1; + a9 = 7; + a1 = 12; + a16 = 7; + a19 = 1; + a21 = 10; + return -1; + } else if(((((((input==6)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(a16==11))&&(a19==4))&&!(a27==1))&&(!(a18==1)&&((a21==10)&&((a11==1)&&(!(a4==1)&&((a27==1)||((a17==2)&&((a1==12)&&(((a7==1)||(a12==1))&&!(a20==1))))))))))){ + a4 = 1; + a9 = 7; + a19 = 1; + a15 = 1; + a16 = 10; + a13 = 0; + a5 = 5; + a1 = 14; + return 25; + } else if(((((a26==1)||((a18==1)||((((((a1==14)&&(a2==1))&&(a17==2))&&(a19==4))&&!(a4==1))&&!(a20==1))))&&(a5==6))&&((a16==10)&&((a6==1)&&((a23==1)&&((a6==1)&&((a21==11)&&((input==4)&&(a9==9))))))))){ + if((a2==1)){ + a10 = 1; + a19 = 2; + a5 = 5; + a21 = 10; + a4 = 1; + a20 = 1; + a1 = 13; + }else{ + a26 = 1; + a1 = 12; + a16 = 7; + a11 = 0; + a5 = 5; + a21 = 10; + a9 = 10; + a20 = 1; + a19 = 2; + a8 = 1; + } + return -1; + } else if((((((a19==2)&&((a1==13)&&(a11==1)))&&(a16==7))||(a27==1))&&(!(a20==1)&&(!(a27==1)&&((((((a28==1)&&((a17==2)&&((input==4)&&(((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))))))&&!(a0==1))&&!(a7==1))&&!(a27==1))&&(a21==10)))))){ + a19 = 1; + a7 = 0; + a5 = 4; + a27 = 0; + a20 = 1; + a13 = 1; + a9 = 7; + a1 = 12; + return -1; + } else if((((a3==1)&&((a17==2)&&((((a20==1)&&((a19==5)&&(!(a8==1)&&(((a5==4)||(a5==5))&&(input==1)))))&&(a21==10))&&!(a7==1))))&&(((a1==12)&&(((a16==9)&&(((a28==1)||(a14==1))&&!(a7==1)))&&(a9==8)))&&!(a27==1)))){ + a19 = 2; + a9 = 9; + a12 = 1; + a16 = 11; + a24 = 0; + a5 = 4; + a11 = 1; + a1 = 14; + return 25; + } else if(((((((input==3)&&(((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))))&&!(a24==1))&&!(a20==1))&&(a17==2))&&(!(a24==1)&&((a2==1)&&((a8==1)||(((a1==13)&&(!(a13==1)||((((a16==10)&&(a12==1))||!(a13==1))&&(a21==10))))&&(a19==2))))))){ + a2 = 0; + a5 = 4; + a16 = 7; + a19 = 1; + a29 = 1; + a9 = 8; + a14 = 1; + return -1; + } else if((((a9==9)&&((!(a23==1)||(((a12==1)&&(a17==2))&&(a11==1)))&&(a16==7)))&&(((a6==1)&&((a21==12)&&(((a5==5)&&((a2==1)&&(((a13==1)&&((a20==1)&&(input==5)))&&(a19==2))))&&!(a7==1))))&&(a1==14)))){ + a27 = 0; + a19 = 1; + a5 = 4; + a2 = 1; + a1 = 12; + a9 = 7; + a21 = 10; + return -1; + } else if((((a13==1)&&(((a21==12)&&((a3==1)&&(a19==2)))&&!(a20==1)))&&(((((a28==1)&&(((a17==2)&&(((input==5)&&((((a9==11)&&((a1==13)&&(a5==5)))||((a9==11)&&((a1==13)&&(a5==6))))||((a9==7)&&((a1==14)&&(a5==4)))))&&(a13==1)))&&!(a14==1)))&&(a16==8))&&(a23==1))&&!(a14==1)))){ + a1 = 12; + a9 = 9; + a25 = 1; + a19 = 3; + a21 = 10; + a8 = 1; + a16 = 11; + a5 = 6; + a3 = 0; + return -1; + } else if(((((a16==7)&&((!(a13==1)&&(((a24==1)&&(a28==1))&&(a26==1)))&&(a5==5)))&&(a8==1))&&((((((a21==11)&&((((a19==2)&&(input==6))&&(a17==2))&&(a20==1)))&&(a9==7))&&(a4==1))&&(a1==12))&&!(a11==1)))){ + a16 = 11; + a9 = 10; + a21 = 12; + a19 = 3; + a5 = 4; + a10 = 0; + a1 = 13; + a14 = 1; + a3 = 0; + return -1; + } else if((((!(a24==1)&&(((!(a8==1)&&((a9==8)&&(((a5==6)&&(input==5))&&(a21==12))))&&(a13==1))&&!(a27==1)))&&(a17==2))&&(((a8==1)||(((((a1==14)&&(a23==1))&&(a16==7))&&!(a20==1))&&!(a27==1)))&&(a19==5)))){ + a23 = 1; + a16 = 8; + a20 = 1; + a2 = 1; + a19 = 1; + a12 = 1; + return 21; + } else if((((a5==4)&&((a3==1)&&((((!(a8==1)&&(!(a4==1)&&(((a9==8)&&(input==1))&&(a1==13))))&&(a17==2))&&(a12==1))&&(a21==11))))&&((a16==9)&&((a19==2)&&((a24==1)||(((a20==1)&&(a12==1))||(a14==1))))))){ + a16 = 7; + a1 = 12; + a23 = 1; + a21 = 10; + a8 = 0; + a19 = 1; + a9 = 7; + return -1; + } else if((((!(a7==1)&&((((input==6)&&(((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))))&&(a17==2))&&(a19==1)))&&!(a24==1))&&(((a16==11)&&(!(a11==1)||(!(a18==1)&&(((a21==10)&&((a1==13)&&((a18==1)||(a13==1))))&&!(a20==1)))))||(a24==1)))){ + a21 = 12; + a5 = 5; + a19 = 2; + a16 = 7; + a11 = 0; + a9 = 10; + a1 = 12; + a2 = 0; + a12 = 0; + return -1; + } else if((((!(a13==1)||(((((a28==1)&&(a12==1))&&(a19==1))&&!(a20==1))&&(a17==2)))&&(a16==7))&&((!(a14==1)&&((a21==11)&&((a5==4)&&((a12==1)&&((((input==3)&&(a9==8))&&!(a8==1))&&(a1==14))))))&&(a13==1)))){ + a20 = 1; + a24 = 0; + a13 = 1; + a21 = 10; + a9 = 7; + a12 = 1; + a1 = 12; + return -1; + } else if((((((a21==10)&&((a20==1)&&(((input==5)&&(a1==14))&&(a5==5))))&&(a9==8))&&!(a26==1))&&(((!(a23==1)||(((a19==4)&&(!(a14==1)&&(!(a12==1)||(!(a4==1)&&(a23==1)))))&&(a16==7)))&&!(a4==1))&&(a17==2)))){ + a5 = 4; + a1 = 12; + a19 = 5; + a9 = 10; + a12 = 1; + a0 = 0; + a6 = 1; + a20 = 0; + a16 = 8; + return 22; + } else if(((((a1==13)&&(((a23==1)&&(!(a26==1)&&(a13==1)))&&(a28==1)))&&(a16==7))&&((a19==4)&&(!(a8==1)&&(((a5==6)&&(!(a18==1)&&(((a21==11)&&((a17==2)&&(!(a20==1)&&(input==4))))&&(a9==10))))&&(a28==1)))))){ + a0 = 0; + a28 = 1; + a21 = 10; + a5 = 4; + a9 = 7; + a19 = 1; + a20 = 1; + a1 = 12; + return -1; + } else if(((!(a7==1)&&((a2==1)&&((a1==13)&&((a17==2)&&(((a16==10)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==1)))&&(a21==10))))))&&((a6==1)&&((a11==1)&&(((a12==1)&&((!(a20==1)&&(a23==1))||!(a12==1)))&&(a19==3)))))){ + a10 = 1; + a9 = 7; + a16 = 7; + a19 = 1; + a4 = 1; + a5 = 5; + a20 = 1; + return -1; + } else if((((a9==11)&&(!(a24==1)&&((a19==3)&&((((a2==1)&&(a21==12))&&(a17==2))&&!(a7==1)))))&&((a16==10)&&(((((a5==6)&&((!(a0==1)&&((input==6)&&(a20==1)))&&(a1==12)))&&!(a4==1))&&(a23==1))&&!(a27==1))))){ + a5 = 4; + a24 = 0; + a13 = 1; + a21 = 10; + a27 = 0; + a16 = 7; + a19 = 2; + a1 = 13; + a9 = 9; + return 25; + } else if((((a19==5)&&((!(a12==1)||(((a17==2)&&((a1==13)&&(a12==1)))&&(a5==5)))&&!(a18==1)))&&(!(a26==1)&&((a23==1)&&((a16==11)&&(((a9==9)&&((!(a24==1)&&((input==3)&&(a21==10)))&&(a6==1)))&&(a20==1))))))){ + a8 = 0; + a26 = 0; + a3 = 1; + a1 = 14; + a9 = 11; + a19 = 4; + a21 = 11; + return 22; + } else if((((((a9==9)&&((input==6)&&((a5==4)||(a5==5))))&&(a16==7))&&(a17==2))&&((((a19==3)&&((a8==1)||((a20==1)&&((!(a3==1)||(((a18==1)||(!(a13==1)||(a13==1)))&&(a1==14)))||!(a13==1)))))&&(a2==1))&&(a21==11)))){ + a5 = 6; + a19 = 2; + a11 = 1; + a7 = 0; + a1 = 12; + a9 = 10; + a13 = 1; + a16 = 8; + return 25; + } else if((((a1==13)&&(((!(a13==1)&&((a21==10)&&(((input==5)&&((a5==4)||(a5==5)))&&(a19==1))))&&(a16==11))&&(a9==8)))&&(((((a17==2)&&((a20==1)&&(!(a11==1)&&(!(a2==1)&&(a6==1)))))&&!(a3==1))&&!(a23==1))&&(a4==1)))){ + a4 = 1; + a5 = 6; + a19 = 4; + a1 = 14; + a2 = 0; + a21 = 12; + a0 = 1; + return 21; + } else if((((((a9==11)&&((((!(a3==1)||(a11==1))&&(a17==2))||(a18==1))&&(a6==1)))&&(a1==13))&&(a19==1))&&((((((a6==1)&&((a13==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4))))&&(a16==9))&&!(a26==1))&&(a20==1))&&(a21==12)))){ + a11 = 1; + a23 = 1; + a1 = 14; + a4 = 0; + a16 = 10; + a5 = 6; + return 25; + } else if((((a17==2)&&((a3==1)&&((a6==1)&&((a6==1)&&(((((((a5==6)&&(a1==13))&&(a9==11))||(((a5==4)&&(a1==14))&&(a9==7)))||((a9==7)&&((a5==5)&&(a1==14))))&&(input==4))&&(a2==1))))))&&(((a16==7)&&((a21==11)&&(((a6==1)&&(!(a23==1)||(a2==1)))&&(a20==1))))&&(a19==1)))){ + a1 = 14; + a19 = 4; + a5 = 6; + a20 = 0; + a14 = 0; + a4 = 0; + a26 = 0; + a9 = 7; + return 23; + } else if((((((((a9==10)&&(((a17==2)&&(!(a20==1)&&(input==3)))&&!(a4==1)))&&(a11==1))&&(a13==1))&&(a5==6))&&(a1==12))&&(((a16==8)&&(((a13==1)&&(!(a6==1)||((a19==2)&&(a23==1))))&&!(a7==1)))&&(a21==12)))){ + a29 = 0; + a24 = 1; + a5 = 4; + a16 = 7; + a19 = 1; + a9 = 7; + a2 = 0; + a20 = 1; + a1 = 14; + a21 = 10; + return -1; + } else if(((((a28==1)&&((a1==13)&&(!(a26==1)&&((a16==9)&&(((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11)))&&(input==6))))))&&(a11==1))&&((a17==2)&&((!(a8==1)&&((a21==11)&&((((a20==1)&&(a6==1))&&(a19==5))||(a27==1))))||(a7==1))))){ + a5 = 4; + a21 = 10; + a1 = 12; + a2 = 1; + a14 = 0; + a12 = 1; + a9 = 7; + a19 = 1; + a16 = 7; + return -1; + } else if((((((!(a0==1)&&((((a5==4)||(a5==5))&&(input==1))&&(a20==1)))&&(a6==1))&&(a16==11))&&(a19==5))&&(((a1==12)&&((((a21==11)&&((a9==10)&&((!(a11==1)||(a23==1))&&(a12==1))))&&(a12==1))||!(a11==1)))&&(a17==2)))){ + a18 = 0; + a1 = 14; + a9 = 8; + a27 = 0; + a21 = 10; + a5 = 6; + a16 = 8; + a20 = 0; + a19 = 3; + return 21; + } else if((((!(a7==1)&&((a1==14)&&(((input==5)&&((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a5==4)&&(a9==10))))&&!(a27==1))))&&(a19==4))&&((a21==10)&&(((((a17==2)&&((((a12==1)||!(a28==1))&&(a20==1))&&(a16==10)))||!(a3==1))||(a18==1))||(a24==1))))){ + a26 = 0; + a19 = 3; + a5 = 5; + a16 = 7; + a9 = 8; + a20 = 0; + a1 = 13; + a8 = 0; + a21 = 11; + a28 = 1; + return -1; + } else if((((a16==10)&&(!(a27==1)&&((a28==1)&&(((a1==13)&&(!(a24==1)&&(((a17==2)&&(input==1))&&(a19==1))))&&!(a27==1)))))&&((a21==11)&&(!(a4==1)&&((a5==6)&&((a9==11)&&(!(a20==1)&&((a2==1)&&(a6==1))))))))){ + if((a4==1)){ + a14 = 1; + a20 = 1; + a16 = 7; + a21 = 10; + a11 = 0; + a5 = 5; + a9 = 7; + }else{ + a16 = 11; + a19 = 4; + a5 = 4; + a12 = 0; + a20 = 1; + a1 = 14; + a8 = 1; + a9 = 8; + } + return -1; + } else if((((a3==1)&&(((a14==1)||(((a6==1)&&!(a4==1))&&(a17==2)))||(a8==1)))&&(((a21==11)&&((((((input==5)&&((((a9==11)&&((a5==5)&&(a1==13)))||(((a5==6)&&(a1==13))&&(a9==11)))||((a9==7)&&((a1==14)&&(a5==4)))))&&(a11==1))&&(a19==1))&&!(a27==1))&&!(a20==1)))&&(a16==7)))){ + a21 = 10; + a9 = 7; + a5 = 4; + a20 = 1; + a7 = 0; + a6 = 1; + a1 = 12; + a4 = 0; + return -1; + } else if(((((((a19==3)&&((a16==9)&&((((a12==1)&&(a9==9))||(a4==1))||!(a12==1))))&&(a21==11))&&!(a14==1))&&!(a18==1))&&((a12==1)&&(((a5==4)&&(!(a20==1)&&(((a17==2)&&(input==3))&&(a1==12))))&&!(a0==1))))){ + a19 = 1; + a24 = 1; + a16 = 7; + a21 = 10; + a9 = 11; + a5 = 6; + a20 = 1; + a18 = 1; + return 25; + } else if(((((a23==1)&&((a23==1)&&((a19==1)&&(((a28==1)&&(((((input==1)&&((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10))))&&(a1==14))&&!(a20==1))&&!(a27==1)))&&(a16==7)))))&&(a12==1))&&((a7==1)||(((a3==1)&&(a21==11))&&(a17==2))))){ + a13 = 1; + a9 = 7; + a5 = 4; + a0 = 0; + a21 = 10; + a1 = 12; + a20 = 1; + a2 = 1; + return -1; + } else if(((((a18==1)||((((a17==2)&&((((a9==10)&&(a12==1))&&(a1==12))&&!(a8==1)))&&(a16==9))&&(a21==11)))&&(a19==3))&&((a3==1)&&(((!(a27==1)&&(((input==6)&&((a5==5)||(a5==6)))&&(a20==1)))&&(a3==1))&&!(a7==1))))){ + a11 = 1; + a9 = 7; + a19 = 1; + a26 = 0; + a3 = 1; + a21 = 10; + a5 = 4; + a16 = 7; + return -1; + } else if((((a20==1)&&(((!(a14==1)&&((a16==8)&&(a2==1)))&&(a13==1))&&(a2==1)))&&(((a17==2)&&((((a28==1)&&(((a21==12)&&((a6==1)&&((input==4)&&(a9==7))))&&!(a14==1)))&&(a19==4))&&(a5==5)))&&(a1==12)))){ + a19 = 1; + a12 = 1; + a13 = 1; + a5 = 4; + a16 = 7; + a6 = 1; + a21 = 10; + return -1; + } else if((((a21==11)&&((a1==12)&&((a20==1)&&(((a12==1)&&(((a5==5)&&(a28==1))&&!(a0==1)))&&!(a7==1)))))&&((a17==2)&&((a16==10)&&(!(a0==1)&&((a9==8)&&(((a11==1)&&((input==1)&&(a19==2)))&&!(a18==1)))))))){ + a24 = 0; + a6 = 1; + a19 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + a21 = 10; + return -1; + } else if((((a27==1)&&(!(a3==1)&&(((a17==2)&&(((a8==1)&&(a13==1))&&!(a13==1)))&&(a20==1))))&&(!(a13==1)&&((((a16==8)&&((input==3)&&((((a9==7)&&((a5==5)&&(a1==12)))&&(a19==2))||((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==1))||((a19==2)&&((a9==7)&&((a5==4)&&(a1==12))))))))&&(a21==12))&&!(a6==1))))){ + a15 = 1; + a19 = 1; + a1 = 13; + a16 = 7; + a9 = 8; + a5 = 6; + a22 = 0; + a21 = 10; + a11 = 0; + return 26; + } else if((((a21==11)&&((!(a20==1)&&(((a19==3)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==6)))&&!(a18==1)))&&(a16==8)))&&(((a17==2)&&(((a14==1)||(((a13==1)&&((a0==1)||(a11==1)))&&(a11==1)))&&!(a27==1)))&&(a1==14)))){ + a2 = 1; + a11 = 1; + a9 = 7; + a5 = 5; + a1 = 12; + a20 = 1; + a0 = 0; + a21 = 12; + a19 = 4; + return 26; + } else if((((((a3==1)&&(((!(a14==1)&&((a16==10)&&((input==5)&&(a1==14))))&&(a19==1))&&(a3==1)))&&(a6==1))&&(a5==5))&&(((a9==9)&&(((a21==12)&&((a17==2)&&((a12==1)||(a7==1))))||!(a13==1)))&&(a20==1)))){ + a19 = 2; + a13 = 1; + a16 = 7; + a1 = 13; + a21 = 10; + a18 = 0; + return 25; + } else if(((((((a17==2)&&((a16==10)&&(a23==1)))||!(a23==1))&&(a3==1))&&!(a26==1))&&(((a1==14)&&(((((a28==1)&&(!(a7==1)&&((input==5)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))))&&(a21==12))&&(a20==1))&&(a19==1)))&&(a23==1)))){ + a9 = 7; + a12 = 1; + a16 = 7; + a1 = 12; + a5 = 4; + a21 = 10; + a14 = 0; + a4 = 0; + return -1; + } else if((((((a17==2)&&((!(a26==1)&&((a9==11)&&((input==6)&&((a5==5)||(a5==6)))))&&!(a14==1)))&&!(a24==1))&&(a16==9))&&(((((!(a3==1)||((a14==1)||(!(a20==1)&&(a12==1))))&&(a19==4))&&(a28==1))&&(a1==13))&&(a21==10)))){ + if((a15==1)){ + a26 = 1; + a19 = 1; + a16 = 7; + a2 = 0; + a5 = 6; + a20 = 1; + a1 = 14; + a0 = 1; + }else{ + a4 = 1; + a15 = 1; + a5 = 6; + a19 = 5; + a20 = 1; + a9 = 9; + a28 = 0; + a16 = 11; + } + return -1; + } else if((((a28==1)&&((!(a14==1)&&((a3==1)&&((input==6)&&(a9==11))))&&(a17==2)))&&((((((((((a28==1)&&(a2==1))&&(a5==5))&&!(a0==1))||!(a6==1))&&(a21==11))&&(a1==12))&&(a16==8))&&(a20==1))&&(a19==5)))){ + a13 = 1; + a0 = 0; + a1 = 13; + a9 = 7; + a19 = 3; + a16 = 10; + a6 = 1; + return 23; + } else if((((!(a14==1)&&((((a1==13)&&((a16==9)&&((a2==1)||(a8==1))))&&(a17==2))&&(a2==1)))||!(a23==1))&&(!(a4==1)&&(!(a0==1)&&((a19==1)&&(((((((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4)))&&(input==1))&&(a20==1))&&(a21==12))))))){ + a18 = 0; + a19 = 3; + a9 = 10; + a5 = 4; + a1 = 12; + a7 = 0; + return 21; + } else if((((a3==1)&&(((!(a14==1)&&(((a20==1)&&((((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))&&(input==4)))&&(a1==14)))&&(a2==1))&&(a21==10)))&&((a27==1)||((a19==2)&&(((((a17==2)&&(a2==1))&&!(a8==1))||!(a2==1))&&(a16==7)))))){ + a5 = 4; + a9 = 7; + a1 = 12; + a2 = 1; + a28 = 1; + a23 = 1; + a19 = 1; + return -1; + } else if((((a20==1)&&((!(a23==1)||(a28==1))&&!(a24==1)))&&((a6==1)&&(((((a23==1)&&((a21==12)&&((a16==8)&&(((a1==12)&&((input==3)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))))&&!(a18==1)))))&&(a17==2))&&(a19==2))&&!(a4==1))))){ + a21 = 10; + a23 = 1; + a11 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + a6 = 1; + a19 = 1; + return -1; + } else if((((a21==11)&&((a17==2)&&((a23==1)&&((((input==1)&&((a5==4)||(a5==5)))&&!(a18==1))&&(a28==1)))))&&(((a1==14)&&((a19==5)&&(((a24==1)||((a20==1)&&(((a3==1)||(a18==1))&&(a16==11))))&&!(a26==1))))&&(a9==7)))){ + a2 = 1; + a20 = 0; + a27 = 0; + a5 = 5; + a19 = 4; + a9 = 10; + a16 = 7; + return -1; + } else if((((a26==1)||(!(a4==1)&&(!(a3==1)||(((a6==1)&&(a21==10))&&!(a4==1)))))&&((a16==7)&&(!(a20==1)&&((((a19==4)&&((((input==6)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(a17==2))&&(a3==1)))&&(a1==12))&&!(a4==1)))))){ + a19 = 1; + a28 = 1; + a23 = 1; + a9 = 7; + a5 = 4; + a20 = 1; + a2 = 1; + return -1; + } else if((((a8==1)||(((a16==11)&&(!(a0==1)&&(!(a24==1)&&((a3==1)&&!(a7==1)))))||(a14==1)))&&((a19==1)&&((a17==2)&&((a21==11)&&(((a6==1)&&(((a20==1)&&((input==3)&&(a5==5)))&&(a1==13)))&&(a9==8))))))){ + a5 = 4; + a9 = 7; + a8 = 0; + a3 = 1; + a16 = 7; + a1 = 12; + a7 = 0; + a21 = 10; + return -1; + } else if((((a3==1)&&(!(a11==1)||(!(a4==1)&&((((a17==2)&&(a3==1))&&(a19==5))||(a18==1)))))&&((((((!(a20==1)&&((input==1)&&((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4)))))&&(a16==10))&&(a1==12))&&(a21==11))&&!(a8==1))&&(a23==1)))){ + a0 = 1; + a27 = 1; + a16 = 7; + a29 = 0; + a9 = 7; + a5 = 5; + a20 = 1; + a21 = 10; + a19 = 2; + return 25; + } else if(((!(a18==1)&&(((a17==2)&&((((a21==10)&&(a28==1))&&!(a4==1))&&(a9==8)))&&(a19==3)))&&(!(a14==1)&&((((((a16==7)&&(((input==1)&&((a5==5)||(a5==6)))&&!(a0==1)))&&!(a20==1))&&(a28==1))&&(a1==13))&&(a11==1))))){ + a5 = 6; + a18 = 0; + a28 = 1; + a1 = 14; + a9 = 7; + a3 = 1; + return 22; + } else if((((((a6==1)&&((!(a27==1)&&(((a5==4)||(a5==5))&&(input==4)))&&!(a14==1)))&&(a17==2))&&(a1==13))&&(((a9==10)&&(!(a12==1)||((a21==12)&&((a19==2)&&(((a27==1)||((a6==1)&&(a16==7)))||!(a6==1))))))&&!(a20==1)))){ + a13 = 1; + a1 = 12; + a7 = 0; + a9 = 7; + a20 = 1; + a16 = 9; + a19 = 5; + a28 = 1; + a5 = 4; + return 21; + } else if((((a1==14)&&(!(a4==1)&&((!(a26==1)&&((a21==10)&&(!(a0==1)&&(a28==1))))&&(a19==1))))&&(((!(a0==1)&&((a28==1)&&((a17==2)&&(((input==5)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&!(a0==1)))))&&!(a20==1))&&(a16==10)))){ + if((a24==1)){ + a27 = 1; + a5 = 6; + a9 = 7; + a20 = 1; + a16 = 7; + a15 = 1; + a1 = 12; + a28 = 0; + }else{ + a26 = 1; + a19 = 2; + a1 = 12; + a20 = 1; + a16 = 7; + a5 = 5; + a9 = 9; + a3 = 0; + a15 = 0; + } + return -1; + } else if((((a19==1)&&((((a8==1)||(((a23==1)&&((a1==13)&&((!(a0==1)&&((a21==11)&&(a28==1)))&&(a17==2))))||!(a2==1)))&&(a28==1))&&!(a24==1)))&&(!(a20==1)&&(((((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&(input==5))&&(a16==9))))){ + if((a10==1)){ + a29 = 0; + a9 = 9; + a1 = 12; + a10 = 0; + a21 = 12; + a19 = 3; + a5 = 4; + a16 = 8; + a20 = 1; + a11 = 0; + }else{ + a6 = 0; + a19 = 5; + a5 = 5; + a22 = 0; + a16 = 8; + a20 = 1; + a1 = 12; + a4 = 1; + a9 = 11; + } + return 26; + } else if(((((a20==1)&&((a4==1)||((((a8==1)||((a16==7)&&(((a1==13)&&(a13==1))&&(a17==2))))&&(a13==1))&&(a19==3))))&&(a21==11))&&(((((((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7))))&&(input==4))&&(a11==1))&&!(a26==1))&&(a6==1)))){ + a9 = 9; + a19 = 5; + a23 = 1; + a0 = 0; + a11 = 1; + a1 = 14; + a5 = 4; + a21 = 10; + a16 = 8; + return 25; + } else if((((a1==12)&&((a17==2)&&((a19==5)&&(!(a24==1)&&(!(a20==1)&&((a16==7)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6)))))))))&&((((!(a12==1)||((a21==11)&&(((a4==1)||(a23==1))&&!(a0==1))))||!(a13==1))&&(a23==1))&&(a9==11)))){ + a20 = 1; + a19 = 2; + a16 = 10; + a5 = 5; + a28 = 1; + a9 = 7; + a21 = 10; + a1 = 14; + a13 = 1; + return 21; + } else if(((((a1==14)&&((a17==2)&&(!(a0==1)&&((((((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9))))&&(input==1))&&(a20==1))&&!(a7==1)))))&&(a21==10))&&(((!(a12==1)||(!(a28==1)||(((a28==1)||!(a2==1))||(a0==1))))&&(a19==2))&&(a16==11)))){ + a28 = 1; + a5 = 4; + a1 = 12; + a14 = 0; + a19 = 1; + a9 = 7; + a2 = 1; + a16 = 7; + return -1; + } else if((((a2==1)&&((a28==1)&&((a18==1)||((a19==2)&&((a14==1)||(a2==1))))))&&(((a17==2)&&((((((((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9)))&&(input==6))&&(a1==12))&&(a6==1))&&(a16==11))&&(a21==12))&&(a20==1)))&&!(a4==1)))){ + a9 = 11; + a24 = 0; + a5 = 4; + a12 = 1; + a13 = 1; + a19 = 4; + return 22; + } else if(((((a20==1)&&((((a12==1)&&(a1==13))&&(a16==9))&&(a19==5)))&&(a9==9))&&((a21==11)&&(!(a0==1)&&((((((!(a14==1)&&(((a5==4)||(a5==5))&&(input==4)))&&(a17==2))&&!(a26==1))&&(a23==1))&&!(a0==1))&&(a12==1)))))){ + a19 = 1; + a16 = 7; + a1 = 12; + a9 = 7; + a2 = 1; + a23 = 1; + a21 = 10; + a5 = 4; + a18 = 0; + return -1; + } else if(((((a16==8)&&((a19==1)&&((a17==2)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&!(a4==1)))))&&(a20==1))&&((a4==1)||(((((a9==11)&&((((a11==1)&&!(a7==1))||!(a12==1))||!(a12==1)))&&!(a7==1))&&(a21==10))&&(a1==13))))){ + a24 = 0; + a9 = 7; + a5 = 4; + a4 = 0; + a16 = 7; + a1 = 12; + return -1; + } else if((((((a19==1)&&((a6==1)&&((a16==7)&&(((a1==13)&&((a6==1)&&(a21==12)))&&!(a20==1)))))&&(a17==2))||(a4==1))&&(((((a11==1)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))&&(input==3)))&&(a23==1))&&!(a18==1))&&!(a27==1)))){ + a20 = 1; + a21 = 10; + a13 = 1; + a3 = 1; + a9 = 8; + a5 = 6; + a1 = 14; + a16 = 10; + a19 = 3; + return 21; + } else if(((((a4==1)||(((a24==1)||((((a2==1)&&!(a24==1))&&(a21==12))&&(a1==13)))&&(a28==1)))&&(a16==8))&&((a17==2)&&((a9==9)&&(((!(a14==1)&&(!(a0==1)&&((a5==5)&&(input==1))))&&(a19==5))&&!(a20==1)))))){ + a19 = 1; + a25 = 1; + a13 = 0; + a0 = 1; + a20 = 1; + a16 = 7; + a21 = 10; + a9 = 7; + a5 = 4; + return 23; + } else if((((a1==14)&&(((a20==1)&&(((((a3==1)&&!(a27==1))&&(a9==10))||(a14==1))||(a0==1)))&&(a19==5)))&&((((((a17==2)&&(!(a18==1)&&(((a5==4)||(a5==5))&&(input==1))))&&!(a7==1))&&(a21==12))&&!(a8==1))&&(a16==8)))){ + a7 = 0; + a9 = 11; + a12 = 1; + a5 = 4; + a27 = 0; + a16 = 10; + a1 = 13; + return 22; + } else if((((((a1==13)&&((a5==6)&&((a19==2)&&((a26==1)||(a6==1)))))||(a14==1))&&(a21==12))&&((a16==7)&&((a3==1)&&(!(a0==1)&&(((a20==1)&&(!(a8==1)&&(((a17==2)&&(input==3))&&(a9==10))))&&!(a14==1))))))){ + a5 = 4; + a19 = 1; + a9 = 7; + a27 = 0; + a14 = 0; + a1 = 12; + a21 = 10; + a18 = 0; + return -1; + } else if(((((a16==10)&&((a14==1)||(!(a28==1)||((a6==1)||!(a23==1)))))&&!(a24==1))&&(((a19==5)&&(((a1==12)&&((a21==11)&&(!(a20==1)&&((a3==1)&&((input==5)&&(((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))))))))&&!(a26==1)))&&(a17==2)))){ + a16 = 7; + a20 = 1; + a8 = 1; + a21 = 10; + a23 = 0; + a19 = 2; + a5 = 5; + a22 = 0; + a9 = 8; + return -1; + } else if(((((((a5==4)&&(((a1==13)&&(!(a11==1)||(!(a28==1)||((a21==10)&&(!(a20==1)&&((!(a13==1)||(a12==1))&&!(a7==1)))))))&&(a9==11)))||(a4==1))&&(a19==5))&&(a16==9))&&(((input==1)&&(a17==2))&&(a13==1)))){ + if((a4==1)){ + a9 = 9; + a16 = 7; + a19 = 2; + a18 = 1; + a20 = 1; + a15 = 1; + a5 = 5; + a4 = 1; + a1 = 12; + }else{ + a16 = 8; + a23 = 0; + a20 = 1; + a5 = 6; + a14 = 1; + a28 = 0; + a19 = 1; + a9 = 10; + a1 = 14; + } + return -1; + } else if(((!(a0==1)&&(!(a8==1)&&((a17==2)&&((((a19==3)&&(((!(a26==1)&&((((a9==7)&&((a5==4)&&(a1==14)))||((((a5==5)&&(a1==13))&&(a9==11))||((a9==11)&&((a1==13)&&(a5==6)))))&&(input==6)))&&(a6==1))&&(a13==1)))&&(a20==1))&&(a21==12)))))&&(((a3==1)&&(a2==1))&&(a16==8)))){ + a23 = 1; + a16 = 10; + a1 = 14; + a5 = 5; + a9 = 10; + a19 = 2; + a28 = 1; + a18 = 0; + return 25; + } else if((((a21==10)&&((a23==1)&&((a1==14)&&(!(a27==1)&&(((a16==8)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6))))&&(a3==1))))))&&((a19==2)&&((a17==2)&&((((a12==1)&&((!(a8==1)&&(a2==1))&&!(a20==1)))&&(a9==7))||!(a11==1)))))){ + a16 = 7; + a5 = 4; + a20 = 1; + a1 = 12; + a6 = 1; + a7 = 0; + a19 = 1; + a11 = 1; + return -1; + } else if((((a17==2)&&((a16==11)&&((a3==1)&&(!(a6==1)||(((a1==14)&&(a2==1))&&(a20==1))))))&&(((!(a0==1)&&(!(a27==1)&&(((a9==8)&&(((input==3)&&(a19==4))&&!(a14==1)))&&(a3==1))))&&(a21==12))&&(a5==6)))){ + a19 = 1; + a9 = 7; + a1 = 12; + a12 = 1; + a21 = 10; + a14 = 0; + a16 = 7; + a13 = 1; + a5 = 4; + return -1; + } else if(((((a17==2)&&(((((((a16==9)&&(a3==1))&&(a3==1))&&!(a8==1))&&(a9==8))&&(a28==1))||!(a2==1)))&&(a1==12))&&((!(a0==1)&&(((a5==6)&&(((a20==1)&&(input==5))&&(a21==10)))&&(a28==1)))&&(a19==4)))){ + a14 = 0; + a7 = 0; + a5 = 4; + a4 = 0; + a16 = 7; + a9 = 7; + a19 = 1; + return -1; + } else if((((a1==14)&&(((((((((a19==5)&&(a28==1))&&(a12==1))&&(a23==1))&&(a16==11))||(a8==1))&&(a20==1))&&(a21==12))&&!(a27==1)))&&(((((input==3)&&(((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))))&&(a13==1))&&(a17==2))&&!(a27==1)))){ + a2 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + a1 = 12; + a19 = 1; + a0 = 0; + a21 = 10; + a4 = 0; + return -1; + } else if((((!(a18==1)&&(((((a5==4)&&(((a20==1)&&((input==1)&&(a1==12)))&&(a17==2)))&&(a23==1))&&(a16==10))&&(a21==10)))&&(a2==1))&&(!(a23==1)||(!(a24==1)&&((a2==1)&&(((a9==10)&&(a13==1))&&(a19==3))))))){ + a23 = 1; + a16 = 7; + a9 = 7; + a19 = 1; + a28 = 1; + a13 = 1; + return -1; + } else if(((((a20==1)&&(((a14==1)||(((a14==1)||((a28==1)&&(a19==2)))&&(a9==10)))&&(a1==14)))&&!(a18==1))&&(!(a8==1)&&((a16==9)&&((a17==2)&&(((a23==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a21==11)))&&!(a26==1))))))){ + if((a9==10)){ + a1 = 13; + a5 = 4; + a20 = 0; + a9 = 9; + a14 = 0; + a12 = 1; + a0 = 0; + a21 = 10; + a16 = 8; + }else{ + a19 = 3; + a7 = 0; + a9 = 11; + a5 = 5; + a13 = 1; + a26 = 0; + a16 = 8; + } + return 25; + } else if(((((a19==5)&&((a21==10)&&((!(a6==1)||(((a11==1)&&(a1==13))||!(a2==1)))&&(a17==2))))&&!(a20==1))&&(!(a8==1)&&((a23==1)&&((!(a4==1)&&(((a16==9)&&((input==6)&&((a5==6)||((a5==4)||(a5==5)))))&&(a9==10)))&&!(a14==1)))))){ + a5 = 6; + a19 = 2; + a29 = 0; + a1 = 12; + a16 = 7; + a2 = 0; + a25 = 1; + a9 = 9; + a20 = 1; + return -1; + } else if((((((a1==14)&&((a11==1)&&(a19==1)))&&(a16==7))&&(a28==1))&&((a17==2)&&((((a21==10)&&(!(a20==1)&&(((((input==5)&&(((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))))&&(a2==1))&&(a13==1))&&!(a8==1))))&&!(a8==1))&&(a23==1))))){ + a0 = 0; + a1 = 12; + a9 = 8; + a6 = 1; + a18 = 0; + a16 = 10; + a5 = 5; + a20 = 1; + return 21; + } else if(((((a6==1)&&((a9==8)&&(((!(a7==1)&&(((a3==1)&&(((a5==4)||(a5==5))&&(input==6)))&&(a17==2)))&&(a1==12))&&(a23==1))))&&(a16==10))&&((((a24==1)||(!(a20==1)&&((a3==1)&&(a19==2))))&&(a21==10))||!(a11==1)))){ + a16 = 8; + a3 = 0; + a0 = 1; + a5 = 4; + a23 = 0; + a20 = 1; + a19 = 5; + a9 = 9; + a21 = 12; + return 23; + } else if((((!(a27==1)&&(((a2==1)&&(a11==1))||!(a12==1)))||(a7==1))&&((a19==5)&&((!(a0==1)&&((a20==1)&&((a21==11)&&((a2==1)&&(((input==4)&&((((a5==4)&&(a1==13))&&(a9==7))||((((a5==5)&&(a1==12))&&(a9==11))||((a9==11)&&((a1==12)&&(a5==6))))))&&(a16==11))))))&&(a17==2))))){ + a21 = 10; + a14 = 0; + a1 = 12; + a16 = 7; + a18 = 0; + a5 = 4; + a9 = 7; + a0 = 0; + a19 = 1; + return -1; + } else if((((((a20==1)&&((((a28==1)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==1)))&&(a3==1))&&!(a18==1)))&&(a21==10))&&!(a24==1))&&((a1==13)&&((a16==11)&&(((a18==1)||(((a19==3)&&(a2==1))||(a26==1)))&&(a17==2)))))){ + a13 = 1; + a1 = 12; + a5 = 4; + a19 = 1; + a27 = 0; + a9 = 7; + a16 = 7; + a6 = 1; + return -1; + } else if((((a5==4)&&((a21==11)&&((!(a26==1)&&(((((a20==1)&&(input==3))&&(a17==2))&&(a3==1))&&(a16==10)))&&(a28==1))))&&(((((a19==3)&&(((a11==1)||!(a13==1))||(a26==1)))&&(a23==1))&&(a1==14))&&(a9==7)))){ + a16 = 7; + a4 = 0; + a7 = 0; + a1 = 12; + a19 = 1; + a21 = 10; + a8 = 0; + return -1; + } else if((((!(a4==1)&&(((((!(a3==1)||(a2==1))&&(a1==12))&&(a17==2))&&(a21==10))&&(a16==8)))&&!(a24==1))&&((!(a7==1)&&((((((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a9==7))&&(a19==5))&&(a13==1))&&(a20==1)))&&!(a18==1)))){ + a12 = 1; + a19 = 1; + a2 = 1; + a3 = 1; + a5 = 4; + a16 = 7; + return -1; + } else if(((!(a27==1)&&((a5==6)&&((a17==2)&&((a2==1)&&(a21==12)))))&&((!(a4==1)&&((((a19==5)&&(!(a18==1)&&(!(a0==1)&&((a1==12)&&(((input==3)&&(a16==7))&&(a9==7))))))&&(a20==1))&&!(a14==1)))&&(a6==1)))){ + a13 = 1; + a21 = 10; + a7 = 0; + a0 = 0; + a19 = 1; + a5 = 4; + return -1; + } else if(((((((a16==11)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a6==1)))&&(a9==7))&&(a3==1))&&(a21==10))&&((!(a8==1)&&(((!(a20==1)&&((a27==1)||(((a1==14)&&(a12==1))&&!(a8==1))))&&(a17==2))&&!(a7==1)))&&(a19==3)))){ + a9 = 8; + a20 = 1; + a10 = 1; + a5 = 6; + a16 = 7; + a6 = 0; + a19 = 1; + a1 = 13; + a14 = 1; + return -1; + } else if((((a20==1)&&(((a3==1)&&(((a1==14)&&((a16==11)&&((a2==1)&&(a9==9))))||(a4==1)))&&!(a24==1)))&&(!(a24==1)&&((((!(a0==1)&&(((input==5)&&((a5==5)||(a5==6)))&&!(a7==1)))&&(a17==2))&&(a19==4))&&(a21==11))))){ + a23 = 1; + a9 = 7; + a8 = 0; + a16 = 9; + a5 = 5; + a28 = 1; + a1 = 12; + return 21; + } else if(((((a1==12)&&((!(a18==1)&&(!(a0==1)&&(a23==1)))&&(a17==2)))&&(a21==12))&&(((((a16==10)&&((a3==1)&&((a28==1)&&(!(a14==1)&&(((input==4)&&(a19==4))&&!(a14==1))))))&&!(a20==1))&&(a9==9))&&(a5==6)))){ + if((a13==1)){ + a16 = 7; + a21 = 10; + a10 = 1; + a5 = 4; + a27 = 1; + a15 = 1; + a1 = 14; + a19 = 1; + a9 = 11; + a20 = 1; + }else{ + a4 = 1; + a19 = 1; + a24 = 1; + a5 = 4; + a20 = 1; + a21 = 10; + a16 = 7; + a12 = 0; + a1 = 13; + } + return 23; + } else if((((((a21==12)&&((a20==1)&&((a16==11)&&(a2==1))))||(a18==1))||(a8==1))&&((a6==1)&&((((a2==1)&&(!(a24==1)&&((a17==2)&&(((input==6)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(a19==5)))))&&(a1==14))&&(a6==1))))){ + a5 = 4; + a3 = 1; + a21 = 10; + a19 = 1; + a18 = 0; + a9 = 7; + a16 = 7; + a1 = 12; + a28 = 1; + return -1; + } else if((((a1==12)&&(((((a6==1)||!(a2==1))&&(a6==1))&&(a13==1))&&!(a18==1)))&&(((a20==1)&&((a17==2)&&((a16==7)&&(((a13==1)&&((!(a14==1)&&((a21==11)&&(input==4)))&&(a5==4)))&&(a9==9)))))&&(a19==5)))){ + a16 = 8; + a3 = 1; + a5 = 6; + a19 = 1; + a9 = 8; + a21 = 12; + a11 = 1; + a0 = 0; + return 23; + } else if((((a16==7)&&((!(a2==1)&&((a17==2)&&((a21==11)&&(a6==1))))&&(a19==3)))&&((!(a6==1)&&((a24==1)&&((((a9==7)&&(((a1==12)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))&&!(a20==1)))&&!(a11==1))&&(a4==1))))&&!(a6==1)))){ + a19 = 1; + a20 = 1; + a13 = 0; + a16 = 10; + a14 = 1; + a5 = 5; + a23 = 0; + a9 = 10; + a1 = 14; + return 21; + } else if(((((a28==1)&&(((a16==7)&&(!(a7==1)&&((a20==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))))&&(a21==11)))&&(a23==1))&&((a9==10)&&((((a6==1)&&((((a23==1)&&(a12==1))&&(a19==1))&&(a1==13)))&&(a17==2))||!(a28==1))))){ + a9 = 7; + a21 = 10; + a8 = 0; + a1 = 12; + a28 = 1; + a5 = 4; + a7 = 0; + return -1; + } else if(((!(a26==1)&&((a9==10)&&((a23==1)&&(((a17==2)&&(a6==1))&&(a16==9)))))&&((a12==1)&&(((a19==2)&&((a20==1)&&((((!(a24==1)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))&&(a21==10))&&!(a14==1))&&(a1==12))))&&(a3==1))))){ + a13 = 1; + a23 = 1; + a1 = 13; + a21 = 11; + a16 = 10; + a0 = 0; + a9 = 8; + a5 = 4; + a19 = 5; + return 21; + } else if(((((a28==1)&&((a1==12)&&(((a3==1)&&((a11==1)&&((input==6)&&(((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))))))&&(a21==10))))&&(a23==1))&&(((a19==3)&&((a20==1)&&(((a16==11)&&((a28==1)&&(a2==1)))&&(a17==2))))||!(a12==1)))){ + a9 = 11; + a0 = 0; + a16 = 9; + a5 = 4; + a19 = 5; + a11 = 1; + a18 = 0; + a21 = 11; + return 21; + } else if((((((a16==7)&&((a19==2)&&((a2==1)&&(a2==1))))&&(a20==1))||(a14==1))&&(!(a7==1)&&((a21==11)&&((a13==1)&&((a17==2)&&(!(a8==1)&&((a1==14)&&((a11==1)&&(((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9)))&&(input==6))))))))))){ + a14 = 0; + a5 = 6; + a21 = 10; + a8 = 0; + a23 = 1; + a16 = 8; + a9 = 8; + a1 = 12; + a19 = 4; + return 23; + } else if(((((a21==10)&&((a24==1)||((!(a12==1)||(a12==1))&&!(a7==1))))&&(a16==7))&&((a17==2)&&(((a11==1)&&((a11==1)&&(((a19==1)&&((((input==6)&&(a5==5))&&(a3==1))&&!(a20==1)))&&(a1==12))))&&(a9==7))))){ + a0 = 0; + a20 = 1; + a2 = 1; + a5 = 4; + return -1; + } else if((((a17==2)&&((a16==8)&&((a1==14)&&(!(a26==1)&&(((!(a14==1)&&((a19==5)&&(input==3)))&&(a21==11))&&!(a8==1))))))&&(((((((a2==1)||!(a12==1))||(a24==1))&&(a6==1))&&(a5==4))&&(a20==1))&&(a9==7)))){ + a7 = 0; + a1 = 13; + a9 = 8; + a28 = 1; + a5 = 6; + a19 = 1; + a14 = 0; + return -1; + } else if(((((!(a4==1)&&(((((a21==12)&&(input==3))&&(a11==1))&&!(a4==1))&&(a5==6)))&&(a19==3))&&(a16==8))&&(((a9==9)&&((a20==1)&&((a17==2)&&(((a18==1)||(!(a28==1)||(a28==1)))||!(a6==1)))))&&(a1==13)))){ + a9 = 7; + a19 = 1; + a11 = 1; + a1 = 12; + a27 = 0; + a16 = 7; + a21 = 10; + a26 = 0; + a5 = 4; + return -1; + } else if((((!(a7==1)&&((((a1==13)&&(((input==5)&&(((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))&&!(a20==1)))&&(a16==8))&&(a3==1)))&&!(a27==1))&&((!(a14==1)&&((((a21==12)&&((a19==4)&&(a23==1)))&&(a17==2))&&!(a18==1)))||!(a6==1)))){ + if((a6==1)){ + a25 = 1; + a20 = 1; + a22 = 0; + a5 = 5; + a1 = 14; + a21 = 10; + a19 = 1; + a9 = 7; + a16 = 7; + a26 = 1; + }else{ + a16 = 7; + a7 = 1; + a21 = 10; + a20 = 1; + a5 = 6; + a22 = 1; + a19 = 1; + a9 = 9; + a15 = 0; + } + return -1; + } else if(((!(a24==1)&&((a11==1)&&((((a12==1)||!(a13==1))&&!(a27==1))&&(a20==1))))&&(((((a21==11)&&((a17==2)&&((input==3)&&((((((a5==6)&&(a1==14))&&(a9==11))&&(a19==4))||(((a9==7)&&((a1==12)&&(a5==4)))&&(a19==5)))||((a19==5)&&(((a5==5)&&(a1==12))&&(a9==7)))))))&&(a28==1))&&!(a4==1))&&(a16==8)))){ + a2 = 1; + a21 = 10; + a23 = 1; + a5 = 4; + a1 = 12; + a9 = 7; + a19 = 1; + a4 = 0; + a16 = 7; + return -1; + } else if((((((((a1==13)&&(((a9==10)&&(input==1))&&(a19==1)))&&(a17==2))&&!(a0==1))&&!(a0==1))&&!(a4==1))&&((a14==1)||((((a16==9)&&((((a11==1)&&(a5==4))&&(a21==12))||(a4==1)))&&!(a20==1))||(a8==1))))){ + a8 = 1; + a16 = 8; + a15 = 1; + a1 = 12; + a21 = 11; + a9 = 11; + a22 = 0; + return -1; + } else if((((a16==7)&&(((a19==5)&&(!(a24==1)&&(!(a26==1)&&((a17==2)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a28==1))))))&&(a28==1)))&&((((a21==11)&&((!(a2==1)||((a1==12)&&(a23==1)))&&(a9==7)))&&(a20==1))&&(a23==1)))){ + a9 = 8; + a5 = 6; + a1 = 14; + a27 = 0; + a16 = 8; + a14 = 0; + a8 = 0; + return 22; + } else if(((!(a3==1)&&(((((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a0==1))&&(a21==10))&&(a27==1))&&(a19==1)))&&(((!(a23==1)&&((((a9==10)&&((a16==8)&&((a1==13)&&(a28==1))))&&(a17==2))&&!(a20==1)))&&(a26==1))&&(a7==1)))){ + a20 = 1; + a9 = 7; + a14 = 1; + a25 = 1; + a16 = 7; + a5 = 4; + a1 = 14; + return 21; + } else if((((a17==2)&&((a16==8)&&((a28==1)&&(!(a7==1)&&((a28==1)&&(((a23==1)&&(a12==1))&&!(a14==1)))))))&&(!(a20==1)&&((a3==1)&&((a21==11)&&((((((a1==12)&&(a5==5))&&(a9==7))&&(a19==3))||(((a19==2)&&((a9==11)&&((a1==14)&&(a5==6))))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==3))))&&(input==1))))))){ + a5 = 4; + a23 = 1; + a1 = 12; + a19 = 1; + a8 = 0; + a20 = 1; + a21 = 10; + a16 = 7; + a6 = 1; + a9 = 7; + return -1; + } else if((((a19==2)&&((a9==9)&&(((a17==2)&&((((a3==1)||!(a28==1))&&(a23==1))||!(a6==1)))&&(a21==11))))&&((((a1==12)&&(((a20==1)&&((a11==1)&&((a16==10)&&(input==5))))&&!(a24==1)))&&!(a4==1))&&(a5==4)))){ + a21 = 10; + a19 = 1; + a9 = 7; + a16 = 7; + a12 = 1; + a8 = 0; + a27 = 0; + return -1; + } else if((((!(a24==1)&&((a9==8)&&((a21==11)&&((a5==4)&&((a16==9)&&((a19==4)&&(input==6)))))))&&(a13==1))&&((a1==12)&&((a11==1)&&((((((a3==1)&&!(a24==1))||!(a13==1))&&(a17==2))||!(a13==1))&&(a20==1)))))){ + a19 = 1; + a21 = 10; + a9 = 7; + a23 = 1; + a16 = 7; + a7 = 0; + return -1; + } else if((((a14==1)||(!(a11==1)||(((((a3==1)&&(a9==10))&&!(a24==1))&&(a19==2))&&(a6==1))))&&(((a1==14)&&((a2==1)&&(((!(a18==1)&&(((input==5)&&((a5==4)||(a5==5)))&&(a16==10)))&&(a21==12))&&(a17==2))))&&!(a20==1)))){ + a16 = 7; + a19 = 1; + a5 = 6; + a3 = 0; + a21 = 10; + a11 = 0; + a9 = 8; + a1 = 12; + a7 = 1; + a20 = 1; + return -1; + } else if(((((((!(a23==1)||(!(a27==1)&&((a4==1)||(a12==1))))&&(a6==1))&&(a9==10))&&!(a20==1))&&(a21==12))&&((a1==13)&&((((((a11==1)&&(((a5==5)||(a5==6))&&(input==6)))&&(a19==4))&&(a11==1))&&(a16==9))&&(a17==2))))){ + if((a27==1)){ + a19 = 1; + a25 = 0; + a20 = 1; + a7 = 1; + a5 = 6; + a15 = 0; + a21 = 10; + a16 = 7; + a1 = 14; + }else{ + a1 = 12; + a5 = 6; + a21 = 11; + a19 = 3; + a0 = 1; + a16 = 10; + a6 = 0; + } + return -1; + } else if(((((a9==11)&&((a24==1)||(!(a23==1)||((a11==1)&&(a11==1)))))&&(a5==6))&&(((a1==13)&&(((((((a17==2)&&((a19==3)&&(input==6)))&&(a20==1))&&(a21==10))&&(a11==1))&&!(a0==1))&&(a3==1)))&&(a16==9)))){ + a26 = 0; + a9 = 7; + a5 = 4; + a1 = 12; + a19 = 1; + a7 = 0; + a16 = 7; + a23 = 1; + return -1; + } else if(((((((a19==2)&&(((((input==6)&&(((((a1==13)&&(a5==6))&&(a9==11))||(((a1==14)&&(a5==4))&&(a9==7)))||((a9==7)&&((a5==5)&&(a1==14)))))&&(a17==2))&&(a21==10))&&!(a20==1)))&&!(a7==1))&&(a16==10))&&(a11==1))&&((((a3==1)&&((a23==1)&&!(a7==1)))||(a7==1))&&(a6==1)))){ + if((a7==1)){ + a22 = 0; + a19 = 5; + a9 = 8; + a11 = 0; + a1 = 14; + a20 = 1; + a16 = 11; + a5 = 5; + a21 = 12; + }else{ + a0 = 1; + a25 = 0; + a27 = 1; + a19 = 1; + a16 = 7; + a20 = 1; + a5 = 5; + a9 = 10; + a1 = 14; + } + return -1; + } else if(((!(a14==1)&&((!(a20==1)&&((a21==10)&&((((a5==4)||(a5==5))&&(input==3))&&(a16==7))))&&(a17==2)))&&(((a3==1)&&(((a11==1)&&((a19==4)&&((((a7==1)||(a2==1))&&(a9==7))&&(a1==13))))&&!(a8==1)))||(a4==1)))){ + a20 = 1; + a9 = 10; + a1 = 12; + a2 = 1; + a24 = 0; + a5 = 6; + a19 = 1; + a16 = 10; + a8 = 0; + return 21; + } else if(((((((((!(a7==1)&&(((((((a5==6)&&(a1==14))&&(a9==11))&&(a19==1))||((a19==2)&&(((a1==12)&&(a5==4))&&(a9==7))))&&(input==4))&&(a11==1)))&&!(a8==1))&&!(a14==1))&&(a17==2))&&(a23==1))&&(a20==1))&&(a3==1))&&((a21==10)&&((a16==10)&&(a2==1))))){ + a5 = 6; + a26 = 0; + a1 = 14; + a28 = 1; + a9 = 8; + a19 = 5; + a2 = 1; + a16 = 8; + return 22; + } else if(((!(a6==1)||((((a9==9)&&((a21==10)&&((((a16==11)&&((a17==2)&&((a19==4)&&(a12==1))))||!(a11==1))&&!(a20==1))))&&(a1==13))&&(a11==1)))&&(!(a24==1)&&(!(a0==1)&&(!(a4==1)&&((input==1)&&((a5==4)||(a5==5)))))))){ + if((a9==10)){ + a6 = 0; + a19 = 1; + a9 = 10; + a2 = 0; + a20 = 1; + a16 = 7; + a5 = 4; + a8 = 1; + }else{ + a5 = 4; + a25 = 1; + a16 = 7; + a19 = 1; + a9 = 10; + a1 = 14; + a26 = 1; + a20 = 1; + a11 = 0; + } + return -1; + } else if(((((a21==11)&&(((((a13==1)&&((a4==1)||(((a12==1)||(a8==1))&&!(a14==1))))&&(a20==1))||(a7==1))&&(a9==9)))&&(a19==4))&&((a1==12)&&((((a16==11)&&(((a5==4)||(a5==5))&&(input==1)))&&(a17==2))&&!(a24==1))))){ + a19 = 1; + a12 = 1; + a0 = 0; + a9 = 8; + a16 = 10; + a21 = 10; + a5 = 4; + a4 = 0; + return 21; + } else if((((a19==5)&&((a9==8)&&((a17==2)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a11==1)))))&&(!(a14==1)&&((a11==1)&&(((a1==14)&&((((((a3==1)&&(a21==11))&&!(a20==1))&&(a16==10))&&!(a7==1))||(a14==1)))&&!(a26==1)))))){ + a9 = 10; + a20 = 1; + a1 = 13; + a26 = 1; + a15 = 1; + a21 = 10; + a5 = 4; + a16 = 7; + a27 = 1; + a19 = 1; + return -1; + } else if((((!(a8==1)&&(((((a6==1)&&!(a8==1))&&(a1==13))&&(a5==5))&&(a16==10)))||(a0==1))&&((!(a0==1)&&((a19==2)&&(((!(a20==1)&&((a9==8)&&((a21==10)&&(input==6))))&&(a11==1))&&(a17==2))))&&!(a14==1)))){ + a15 = 1; + a2 = 0; + a9 = 7; + a16 = 7; + a1 = 12; + a0 = 1; + a20 = 1; + a5 = 4; + return 21; + } else if(((((a19==1)&&((((a17==2)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==6)))&&!(a27==1))&&(a3==1)))&&(a28==1))&&((a6==1)&&((!(a6==1)||(((a21==12)&&((a16==8)&&((a13==1)&&(a1==12))))||(a7==1)))&&(a20==1))))){ + a7 = 0; + a5 = 4; + a12 = 1; + a9 = 7; + a13 = 1; + a21 = 10; + a16 = 7; + return -1; + } else if(((((a1==14)&&((a12==1)&&((a21==12)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))))&&!(a18==1))&&((a17==2)&&((a9==11)&&(((((a20==1)&&((((a16==10)&&(a12==1))&&(a28==1))||(a26==1)))&&!(a14==1))&&(a19==5))||!(a3==1)))))){ + a1 = 13; + a9 = 8; + a7 = 0; + a3 = 1; + a0 = 0; + a5 = 5; + return -1; + } else if((((((a7==1)||((a17==2)&&(((a16==8)&&(((a5==5)&&(a2==1))||!(a3==1)))||!(a13==1))))||!(a3==1))&&(a21==12))&&((((((a9==7)&&((input==3)&&(a19==1)))&&(a1==12))&&(a20==1))&&(a11==1))&&(a2==1)))){ + a24 = 0; + a5 = 4; + a21 = 10; + a3 = 1; + a23 = 1; + a16 = 7; + return -1; + } else if((((a5==5)&&((a9==7)&&((a14==1)||((a2==1)&&(a1==13)))))&&(((((a16==11)&&(((a3==1)&&((!(a14==1)&&(((a19==4)&&(input==5))&&(a20==1)))&&!(a18==1)))&&(a17==2)))&&(a3==1))&&!(a27==1))&&(a21==11)))){ + a19 = 1; + a12 = 1; + a16 = 7; + a1 = 12; + a21 = 10; + a5 = 4; + a26 = 0; + a4 = 0; + return -1; + } else if((((a2==1)&&(((((a19==5)&&((a2==1)||(a0==1)))||!(a28==1))&&!(a20==1))&&(a21==11)))&&(((((a16==10)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a17==2))&&!(a0==1))&&!(a26==1)))&&(a1==14))&&(a9==11))&&!(a18==1)))){ + a16 = 11; + a29 = 1; + a25 = 1; + a5 = 4; + a1 = 12; + a19 = 1; + a9 = 9; + a21 = 10; + a28 = 0; + return -1; + } else if(((!(a6==1)||(!(a28==1)||((a1==14)&&(((a6==1)&&!(a20==1))&&(a17==2)))))&&(!(a8==1)&&((a28==1)&&((a23==1)&&(((a21==11)&&(!(a7==1)&&((((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5)))&&(input==6))&&(a19==4))))&&(a16==7))))))){ + a21 = 10; + a16 = 10; + a3 = 1; + a19 = 3; + a20 = 1; + a1 = 12; + a9 = 10; + a24 = 0; + a2 = 1; + a5 = 4; + return 25; + } else if((((a3==1)&&((a9==9)&&((a21==11)&&((a17==2)&&((a5==4)&&((a3==1)&&(a13==1)))))))&&(((a16==8)&&(!(a0==1)&&((a6==1)&&(((a1==14)&&(((a19==4)&&(input==3))&&!(a20==1)))&&(a2==1)))))&&!(a7==1)))){ + a6 = 1; + a20 = 1; + a9 = 7; + a2 = 1; + a27 = 0; + a16 = 7; + a19 = 3; + a21 = 10; + a1 = 12; + return 25; + } else if((((((a21==12)&&((a13==1)&&((!(a14==1)&&(!(a26==1)&&((a17==2)&&(input==3))))&&!(a27==1))))&&!(a20==1))&&(a16==10))&&((a19==2)&&((a5==4)&&(((((a13==1)&&!(a0==1))&&(a9==7))||!(a12==1))&&(a1==13)))))){ + a19 = 4; + a1 = 14; + a18 = 1; + a11 = 0; + a21 = 10; + a16 = 9; + return -1; + } else if((((a9==9)&&((a19==5)&&(!(a20==1)&&(((a11==1)&&!(a14==1))||(a26==1)))))&&((!(a18==1)&&(!(a26==1)&&(((((a17==2)&&((((a5==4)||(a5==5))&&(input==3))&&(a1==12)))&&(a6==1))&&(a3==1))&&(a21==10))))&&(a16==8)))){ + a6 = 1; + a12 = 1; + a16 = 7; + a20 = 1; + a9 = 7; + a19 = 1; + a4 = 0; + a5 = 4; + return -1; + } else if(((!(a2==1)||((((((a4==1)||(((a8==1)||((a11==1)&&(a19==5)))&&(a20==1)))&&(a1==14))&&(a17==2))&&(a21==12))&&(a12==1)))&&(!(a14==1)&&((a16==10)&&((a9==10)&&(!(a26==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))))))){ + a1 = 13; + a9 = 11; + a2 = 1; + a8 = 0; + a6 = 1; + a5 = 4; + a21 = 10; + a19 = 3; + return 26; + } else if((((a20==1)&&((!(a7==1)&&((((a12==1)&&(((input==1)&&(a16==7))&&(a28==1)))&&(a1==14))&&(a17==2)))&&!(a18==1)))&&(((a9==9)&&(!(a14==1)&&((a21==11)&&(((a2==1)&&(a3==1))&&(a19==3)))))&&(a5==6)))){ + a28 = 1; + a19 = 1; + a1 = 12; + a21 = 10; + a9 = 7; + a5 = 4; + a24 = 0; + a2 = 1; + return -1; + } else if((((a2==1)&&((a17==2)&&(((a5==5)&&(!(a8==1)&&(a13==1)))&&(a19==5))))&&(((a9==11)&&((((((((input==1)&&(a20==1))&&(a28==1))&&!(a26==1))&&!(a4==1))&&(a21==11))&&(a16==8))&&(a1==14)))&&!(a8==1)))){ + a3 = 1; + a14 = 0; + a21 = 10; + a9 = 7; + a16 = 7; + a4 = 0; + a1 = 12; + a5 = 4; + a19 = 1; + return -1; + } else if(((!(a7==1)&&((a23==1)&&((a5==5)&&((((a16==7)&&((a9==9)&&(input==5)))&&!(a7==1))&&(a1==12)))))&&(((a6==1)&&(((a21==11)&&((a17==2)&&(((a19==1)&&(a6==1))&&!(a4==1))))&&(a20==1)))||(a0==1)))){ + a19 = 5; + a9 = 7; + a21 = 12; + a8 = 0; + a2 = 1; + a23 = 1; + a1 = 14; + a5 = 4; + return 23; + } else if(((!(a24==1)&&(!(a27==1)&&(!(a0==1)&&((!(a20==1)&&((a17==2)&&((((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==3))&&(a21==10))&&(a19==2))))&&!(a26==1)))))&&((a2==1)&&((a1==12)&&(((a13==1)||!(a23==1))&&(a16==7)))))){ + a12 = 1; + a20 = 1; + a19 = 1; + a5 = 4; + a6 = 1; + a9 = 7; + a2 = 1; + return -1; + } else if((((a21==12)&&(!(a27==1)&&((a1==12)&&((a6==1)&&((a9==8)&&((a12==1)&&((((input==1)&&((a5==4)||(a5==5)))&&(a17==2))&&!(a24==1))))))))&&((((a12==1)&&(((a7==1)||(a6==1))&&(a19==5)))&&(a16==9))&&(a20==1)))){ + a3 = 1; + a16 = 10; + a8 = 0; + a5 = 5; + a21 = 10; + a24 = 0; + a19 = 1; + a9 = 7; + return 21; + } else if((((a7==1)||(((a16==7)&&((((a19==5)&&((a21==11)&&((a1==13)&&((a4==1)||(a3==1)))))||!(a2==1))&&!(a0==1)))&&(a9==7)))&&((a20==1)&&(((a6==1)&&(!(a14==1)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a17==2))))){ + a5 = 6; + a19 = 1; + a1 = 14; + a16 = 8; + a27 = 0; + a4 = 0; + a9 = 8; + a21 = 12; + a28 = 1; + return 21; + } else if(((((((a13==1)&&((((a17==2)&&((a19==1)&&(((a1==12)&&(input==5))&&!(a27==1))))&&(a9==9))&&(a16==10)))&&!(a24==1))&&(a12==1))&&(a5==4))&&(!(a20==1)&&(((a21==12)&&((a3==1)&&(a13==1)))&&!(a0==1))))){ + if((a11==1)){ + a20 = 1; + a9 = 10; + a19 = 2; + a5 = 5; + a24 = 1; + a16 = 7; + a21 = 10; + a26 = 1; + }else{ + a10 = 1; + a19 = 2; + a18 = 1; + a21 = 10; + a16 = 9; + } + return 21; + } else if((((((((a20==1)&&((a5==4)&&((a9==7)&&((input==3)&&(a17==2)))))&&(a19==5))&&(a6==1))&&!(a18==1))&&(a2==1))&&((a24==1)||((((((a2==1)&&(a1==13))&&(a16==8))&&(a21==10))||(a0==1))&&!(a18==1))))){ + a16 = 10; + a14 = 0; + a3 = 1; + a19 = 2; + a9 = 10; + a5 = 5; + a12 = 1; + a1 = 12; + return 26; + } else if(((!(a13==1)||((a4==1)||((!(a23==1)||(((a16==7)&&((a1==13)&&(a13==1)))&&(a17==2)))||(a24==1))))&&((a19==2)&&(((((((input==1)&&((a5==5)||(a5==6)))&&(a9==9))&&(a28==1))&&(a21==11))&&!(a24==1))&&!(a20==1))))){ + a11 = 1; + a2 = 1; + a9 = 11; + a5 = 4; + a8 = 0; + a20 = 1; + a19 = 4; + return -1; + } else if(((!(a24==1)&&(!(a23==1)||((a21==10)&&((((a1==14)&&((a13==1)&&(a17==2)))&&(a19==3))||!(a11==1)))))&&((((a16==8)&&(!(a20==1)&&(((input==4)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&!(a8==1))))&&(a11==1))&&!(a7==1)))){ + a16 = 7; + a5 = 5; + a20 = 1; + a19 = 4; + a2 = 1; + a8 = 0; + a9 = 8; + return 21; + } else if((((a2==1)&&(((!(a20==1)&&((input==5)&&(((a19==4)&&(((a1==12)&&(a5==5))&&(a9==7)))||(((a19==3)&&((a9==11)&&((a5==6)&&(a1==14))))||((a19==4)&&(((a5==4)&&(a1==12))&&(a9==7)))))))&&(a2==1))&&!(a7==1)))&&(((((a16==8)&&(((a17==2)&&(a28==1))&&(a21==10)))&&(a28==1))&&(a28==1))&&(a11==1)))){ + a16 = 7; + a7 = 0; + a19 = 1; + a20 = 1; + a5 = 4; + a6 = 1; + a23 = 1; + a1 = 12; + a9 = 7; + return -1; + } else if((((a3==1)&&(((a19==4)&&(((a1==13)&&(!(a4==1)&&(((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a5==4)&&(a9==9)))&&(input==4))))&&(a21==10)))&&!(a24==1)))&&((((!(a2==1)||((a17==2)&&((a16==11)&&(a2==1))))&&(a20==1))&&(a2==1))||!(a6==1)))){ + a16 = 7; + a0 = 0; + a19 = 1; + a5 = 4; + a6 = 1; + a1 = 12; + a9 = 7; + a13 = 1; + return -1; + } else if((((a21==11)&&((!(a7==1)&&(!(a18==1)&&((a16==10)&&((((((a9==11)&&((a1==12)&&(a5==6)))||((a9==7)&&((a1==13)&&(a5==4))))||((a9==7)&&((a5==5)&&(a1==13))))&&(input==4))&&(a19==4)))))&&!(a27==1)))&&(((!(a20==1)&&(((a6==1)&&(a17==2))||!(a12==1)))&&(a2==1))||!(a2==1)))){ + a20 = 1; + a21 = 10; + a24 = 1; + a1 = 12; + a10 = 0; + a11 = 0; + a5 = 4; + a19 = 2; + a16 = 7; + a9 = 11; + return -1; + } else if(((!(a20==1)&&(((((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11)))&&(input==5))&&(a19==3))&&(a16==10)))&&((a21==10)&&((a3==1)&&(!(a3==1)||((!(a2==1)||((a1==12)&&((((a13==1)&&(a23==1))&&!(a7==1))||(a4==1))))&&(a17==2))))))){ + if((a23==1)){ + a4 = 1; + a29 = 1; + a16 = 7; + a9 = 8; + a22 = 0; + a20 = 1; + a1 = 14; + a5 = 5; + a19 = 1; + }else{ + a16 = 7; + a1 = 13; + a9 = 10; + a27 = 1; + a21 = 11; + a19 = 2; + a18 = 1; + a29 = 0; + a5 = 5; + } + return -1; + } else if((((a16==7)&&((a28==1)&&((((((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&(input==4))&&(a13==1))&&!(a26==1))))&&((a1==12)&&((((a26==1)||(((!(a18==1)&&(!(a20==1)&&(a12==1)))&&(a19==1))||(a18==1)))&&(a21==10))&&(a17==2))))){ + a4 = 0; + a9 = 7; + a5 = 4; + a20 = 1; + a27 = 0; + return -1; + } else if((((((a17==2)&&((a19==4)&&((a28==1)&&!(a0==1))))&&(a20==1))||(a14==1))&&(!(a0==1)&&(((!(a8==1)&&((a9==10)&&(((a1==13)&&((a21==12)&&(((a5==5)||(a5==6))&&(input==5))))&&(a16==11))))&&(a3==1))&&!(a4==1))))){ + a16 = 7; + a2 = 1; + a23 = 1; + a1 = 12; + a5 = 4; + a21 = 10; + a19 = 1; + a26 = 0; + a9 = 7; + return -1; + } else if((((a26==1)||((a14==1)||(((a17==2)&&(((a2==1)&&(a19==5))&&(a16==7)))&&(a6==1))))&&((((!(a20==1)&&(((a21==12)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))&&(input==5)))&&!(a24==1)))&&!(a27==1))&&!(a8==1))&&(a1==12)))){ + a19 = 1; + a9 = 7; + a14 = 0; + a21 = 10; + a5 = 4; + a3 = 1; + a20 = 1; + return -1; + } else if(((!(a20==1)&&((a9==11)&&((a21==12)&&((((a6==1)||!(a13==1))&&(a5==4))&&!(a27==1)))))&&((a17==2)&&(((((((a11==1)&&((a16==10)&&(input==5)))&&(a23==1))&&(a28==1))&&(a1==14))&&(a23==1))&&(a19==2))))){ + if((a7==1)){ + a20 = 1; + a16 = 7; + a21 = 10; + a28 = 0; + a6 = 0; + a22 = 0; + a9 = 9; + a1 = 12; + }else{ + a21 = 11; + a19 = 3; + a3 = 0; + a5 = 5; + a25 = 1; + a16 = 8; + a9 = 7; + a8 = 1; + } + return 21; + } else if((((((a21==10)&&(!(a23==1)||((a4==1)||((a17==2)&&(a3==1)))))&&(a1==12))||!(a12==1))&&(((a19==5)&&((a16==9)&&((((a3==1)&&(((a9==11)&&(input==4))&&!(a8==1)))&&(a5==4))&&!(a20==1))))&&!(a0==1)))){ + a23 = 0; + a12 = 0; + a21 = 11; + a16 = 8; + a26 = 1; + a5 = 6; + a20 = 1; + a9 = 8; + return -1; + } else if((((a5==5)&&(!(a27==1)&&((a13==1)&&((a16==9)&&((a17==2)&&((!(a8==1)&&(((input==3)&&!(a20==1))&&(a23==1)))&&(a3==1)))))))&&(((!(a3==1)||(((a2==1)&&(a19==4))&&(a21==12)))&&(a1==13))&&(a9==8)))){ + a18 = 1; + a25 = 1; + a19 = 1; + a20 = 1; + a16 = 11; + a9 = 10; + a1 = 12; + a13 = 0; + return 21; + } else if((((a16==8)&&(((((!(a14==1)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&!(a8==1))&&(a12==1)))&&(a19==5))&&(a20==1))&&(a11==1))&&(a21==11)))&&((a1==13)&&((a6==1)&&((((a11==1)&&(a9==10))&&(a17==2))||(a24==1)))))){ + a5 = 6; + a24 = 0; + a26 = 0; + a19 = 3; + a9 = 7; + a2 = 1; + a1 = 14; + a16 = 10; + return 22; + } else if(((((((a9==8)&&((a4==1)||(a12==1)))&&!(a20==1))&&(a23==1))&&(a11==1))&&((a2==1)&&((((a19==4)&&((((a12==1)&&((a21==10)&&((a1==14)&&(input==6))))&&(a16==7))&&(a5==4)))&&(a17==2))&&!(a27==1))))){ + a9 = 7; + a0 = 0; + a2 = 1; + a14 = 0; + a1 = 12; + a20 = 1; + a19 = 1; + return -1; + } else if((((((a12==1)&&((((((((a1==14)&&(a5==6))&&(a9==11))&&(a19==3))||(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==4)))&&(input==3))&&(a28==1))&&(a21==12)))&&(a17==2))&&(a11==1))&&(!(a13==1)||((a2==1)&&(((a27==1)||((a11==1)&&!(a20==1)))&&(a16==9)))))){ + if((a2==1)){ + a16 = 7; + a19 = 1; + a7 = 1; + a5 = 6; + a24 = 1; + a20 = 1; + a21 = 11; + a9 = 8; + a1 = 14; + a2 = 0; + }else{ + a19 = 3; + a14 = 1; + a5 = 5; + a21 = 10; + a1 = 13; + a9 = 8; + a18 = 1; + a20 = 1; + a28 = 0; + a16 = 10; + } + return -1; + } else if((((((a4==1)||((a3==1)&&((((a5==5)&&(a23==1))||!(a28==1))&&(a21==12))))&&(a1==12))&&(a9==8))&&((a17==2)&&((a20==1)&&((((a23==1)&&(((input==4)&&(a19==5))&&(a16==8)))&&(a2==1))&&!(a27==1)))))){ + a7 = 0; + a16 = 10; + a2 = 1; + a1 = 14; + a5 = 6; + a12 = 1; + a19 = 4; + return 23; + } else if((((a19==3)&&(((a17==2)&&((a13==1)&&(((a20==1)&&((input==3)&&((a5==4)||(a5==5))))&&(a21==12))))&&!(a4==1)))&&((a1==14)&&((a16==7)&&((((a12==1)&&((!(a11==1)||(a3==1))&&(a11==1)))&&!(a18==1))&&(a9==7)))))){ + a16 = 9; + a19 = 5; + a21 = 10; + a5 = 4; + a24 = 0; + a26 = 0; + a7 = 0; + return 21; + } else if((((a12==1)&&((a21==10)&&((a4==1)||(((a28==1)&&(((a23==1)&&(a16==9))&&!(a18==1)))&&(a19==2)))))&&((a1==14)&&((a5==6)&&((((((a17==2)&&(input==1))&&(a6==1))&&(a12==1))&&(a20==1))&&(a9==11)))))){ + a24 = 0; + a3 = 1; + a9 = 9; + a19 = 1; + a16 = 11; + a27 = 0; + return 25; + } else if((((a9==9)&&((((a24==1)||((a12==1)&&(a20==1)))&&(a21==11))&&(a17==2)))&&((a19==5)&&((((a1==13)&&(((a23==1)&&((a12==1)&&(((input==3)&&((a5==4)||(a5==5)))&&!(a24==1))))&&(a16==9)))&&!(a14==1))&&!(a18==1))))){ + a9 = 7; + a27 = 0; + a21 = 10; + a13 = 1; + a19 = 1; + a14 = 0; + a16 = 7; + a1 = 12; + a5 = 4; + return -1; + } else if(((!(a20==1)&&(((!(a0==1)&&((a9==10)&&((a28==1)&&(!(a4==1)&&((a17==2)&&(((a21==12)&&(input==6))&&(a5==5)))))))&&(a16==7))&&(a12==1)))&&((a19==2)&&(((a11==1)&&((a23==1)&&(a1==12)))||(a18==1))))){ + a20 = 1; + a1 = 14; + a9 = 7; + a0 = 0; + a19 = 3; + a8 = 0; + a18 = 0; + a16 = 11; + return 21; + } else if(((!(a20==1)&&(((a17==2)&&((a9==10)&&(((a21==11)&&(!(a6==1)||(!(a26==1)&&(a13==1))))||!(a13==1))))&&(a19==5)))&&(!(a26==1)&&((((!(a14==1)&&((input==6)&&((a5==5)||(a5==6))))&&(a1==12))&&(a11==1))&&(a16==7))))){ + a19 = 1; + a20 = 1; + a8 = 0; + a13 = 1; + a9 = 7; + a5 = 4; + a21 = 10; + a0 = 0; + return -1; + } else if((((a17==2)&&((!(a26==1)&&(!(a24==1)&&((a13==1)&&((a21==11)&&(((a23==1)&&(a16==9))&&(a19==1))))))&&!(a14==1)))&&((((a28==1)&&(((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==6))&&(a1==12)))&&!(a26==1))&&!(a20==1)))){ + a21 = 10; + a16 = 7; + a5 = 6; + a9 = 7; + a1 = 14; + a20 = 1; + a19 = 2; + a13 = 0; + a29 = 1; + return 23; + } else if((((a17==2)&&((((a19==5)&&(!(a14==1)&&((a3==1)&&(a9==8))))||!(a11==1))&&(a21==12)))&&((((a13==1)&&(!(a20==1)&&((!(a26==1)&&(!(a18==1)&&((input==5)&&(a5==5))))&&(a16==9))))&&(a1==13))&&!(a14==1)))){ + a26 = 1; + a27 = 1; + a16 = 8; + a5 = 4; + a10 = 1; + a21 = 10; + return -1; + } else if((((a19==2)&&(((a9==10)&&(((((input==6)&&(a21==10))&&(a24==1))&&!(a2==1))&&!(a12==1)))&&(a1==14)))&&(!(a13==1)&&((((a5==5)&&((a20==1)&&(((a17==2)&&(a23==1))&&!(a11==1))))&&(a16==11))&&!(a11==1))))){ + a22 = 0; + a0 = 1; + a10 = 1; + a5 = 4; + a16 = 7; + a19 = 1; + a9 = 11; + a1 = 13; + return 21; + } else if((((((a17==2)&&(((a9==7)&&(((a12==1)&&((a6==1)&&(a3==1)))&&(a16==9)))&&!(a20==1)))&&(a19==5))&&(a21==10))&&(((a23==1)&&((((a6==1)&&(((a5==4)||(a5==5))&&(input==6)))&&(a23==1))&&!(a8==1)))&&(a1==13)))){ + if((a20==1)){ + a0 = 1; + a29 = 1; + a19 = 1; + a5 = 5; + a20 = 1; + a9 = 10; + a16 = 7; + a27 = 1; + }else{ + a1 = 12; + a8 = 1; + a5 = 5; + a7 = 1; + a9 = 8; + a16 = 10; + a19 = 2; + a22 = 0; + a21 = 12; + } + return -1; + } else if((((a21==10)&&(((a5==4)&&((a23==1)&&((a1==14)&&((((a9==7)&&(input==6))&&!(a0==1))&&(a19==4)))))&&(a17==2)))&&(((!(a20==1)&&(((a8==1)||(!(a23==1)||(a11==1)))&&(a16==9)))&&!(a27==1))&&!(a7==1)))){ + a13 = 0; + a20 = 1; + a9 = 8; + a5 = 6; + a19 = 1; + a1 = 12; + a10 = 0; + a16 = 7; + return 22; + } else if(((!(a11==1)||((((((a16==8)&&(a6==1))&&(a17==2))&&(a20==1))&&(a3==1))&&(a1==12)))&&((((a21==11)&&((((a19==4)&&((input==3)&&((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4)))))&&!(a7==1))&&!(a14==1)))&&(a6==1))&&!(a27==1)))){ + a5 = 4; + a19 = 1; + a24 = 0; + a8 = 0; + a16 = 7; + a21 = 10; + a9 = 7; + return -1; + } return calculate_output44(input); + } + + int calculate_output44(int input) { + if((((((a20==1)&&((a2==1)&&(((((a5==4)||(a5==5))&&(input==6))&&(a1==12))&&(a16==11))))&&!(a24==1))&&(a9==11))&&(((a21==12)&&(!(a23==1)||(((a19==3)&&((a17==2)&&((a24==1)||(a12==1))))&&!(a8==1))))||(a18==1)))){ + a19 = 1; + a27 = 0; + a16 = 7; + a5 = 4; + a6 = 1; + a9 = 7; + a28 = 1; + a21 = 10; + return -1; + } else if((((!(a20==1)&&((a5==5)&&((a16==8)&&((a24==1)||((a6==1)&&(!(a8==1)&&(((a12==1)&&(a21==10))&&(a1==13))))))))&&(a9==11))&&((a19==5)&&(((a13==1)&&(!(a24==1)&&((a17==2)&&(input==5))))&&!(a7==1))))){ + a19 = 1; + a1 = 12; + a13 = 1; + a14 = 0; + a5 = 4; + a20 = 1; + a9 = 7; + a7 = 0; + a16 = 7; + return -1; + } else if(((((a20==1)&&((((a1==12)&&((a2==1)&&!(a7==1)))&&(a2==1))&&!(a0==1)))&&(a21==11))&&((!(a27==1)&&(((((((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a12==1))&&(a17==2))&&(a23==1))&&(a9==9))&&(a19==5)))&&(a16==8)))){ + a23 = 1; + a24 = 0; + a21 = 10; + a19 = 1; + a16 = 7; + a5 = 4; + a9 = 7; + a3 = 1; + return -1; + } else if((((((((a12==1)&&(a6==1))||!(a13==1))&&(a21==11))&&(a19==3))&&!(a18==1))&&(!(a8==1)&&((a3==1)&&((a9==7)&&(((((a17==2)&&((a1==13)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4))))&&(a16==11))&&(a6==1))&&(a20==1))))))){ + a26 = 0; + a5 = 4; + a23 = 1; + a21 = 10; + a1 = 12; + a4 = 0; + a19 = 1; + a16 = 7; + return -1; + } else if((((a28==1)&&((a13==1)&&((a9==7)&&(((a13==1)&&((a16==11)&&((a19==2)&&(input==3))))&&(a3==1)))))&&(!(a11==1)||((a20==1)&&(((((a0==1)||((a5==6)&&(a11==1)))&&(a17==2))&&(a1==12))&&(a21==11)))))){ + a3 = 1; + a11 = 1; + a16 = 7; + a19 = 1; + a21 = 10; + a5 = 4; + a26 = 0; + return -1; + } else if((((a12==1)&&((((a19==3)&&(a2==1))&&(a21==10))&&(a2==1)))&&(!(a24==1)&&((a28==1)&&((((!(a14==1)&&(((((a9==7)&&((a1==13)&&(a5==4)))||(((a9==11)&&((a5==5)&&(a1==12)))||((a9==11)&&((a5==6)&&(a1==12)))))&&(input==6))&&(a16==11)))&&(a17==2))&&!(a20==1))&&!(a14==1)))))){ + if((a20==1)){ + a20 = 1; + a27 = 1; + a16 = 7; + a19 = 1; + a12 = 0; + a1 = 14; + a5 = 5; + a9 = 8; + a6 = 0; + }else{ + a19 = 1; + a3 = 0; + a16 = 7; + a20 = 1; + a9 = 8; + a27 = 1; + a5 = 6; + a1 = 14; + a2 = 0; + } + return -1; + } else if((((a4==1)&&((!(a3==1)&&((a9==8)&&((((((a5==4)||(a5==5))&&(input==1))&&(a19==3))&&!(a20==1))&&(a16==8))))&&(a8==1)))&&(!(a28==1)&&((a1==13)&&(((!(a13==1)&&((a21==11)&&(a12==1)))&&(a8==1))&&(a17==2)))))){ + a5 = 5; + a12 = 0; + a21 = 10; + a11 = 0; + a1 = 12; + a9 = 10; + a19 = 2; + a25 = 1; + a16 = 7; + a20 = 1; + return -1; + } else if((((a6==1)&&((a3==1)&&(((!(a20==1)&&((input==3)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))))&&(a1==14))&&(a2==1))))&&((!(a0==1)&&(((a21==10)&&((a16==9)&&((a19==3)&&((a3==1)&&(a23==1)))))&&(a17==2)))&&!(a0==1)))){ + if((a21==11)){ + a21 = 12; + a20 = 1; + a1 = 13; + a7 = 1; + a5 = 4; + a4 = 1; + a12 = 0; + a9 = 10; + a16 = 7; + a19 = 5; + }else{ + a9 = 8; + a0 = 1; + a16 = 11; + a6 = 0; + a21 = 11; + a1 = 12; + a20 = 1; + a11 = 0; + a5 = 4; + } + return -1; + } else if(((((a23==1)&&(((a21==12)&&(((a19==2)&&(((input==5)&&(a1==12))&&(a11==1)))&&(a5==5)))&&!(a20==1)))&&(a16==7))&&(((a9==10)&&((a17==2)&&((!(a7==1)&&((a24==1)||(a2==1)))||!(a13==1))))&&!(a7==1)))){ + a18 = 0; + a11 = 1; + a13 = 1; + a20 = 1; + a19 = 1; + a5 = 4; + a9 = 7; + a21 = 10; + return -1; + } else if(((!(a13==1)||((!(a27==1)&&((a17==2)&&((!(a3==1)||(!(a26==1)&&((a16==8)&&(a11==1))))&&(a12==1))))&&(a2==1)))&&(((((((input==4)&&(a9==8))&&(a19==4))&&(a21==12))&&(a1==12))&&(a5==6))&&(a20==1)))){ + a9 = 7; + a16 = 7; + a28 = 1; + a19 = 1; + a21 = 10; + a5 = 4; + a23 = 1; + a26 = 0; + return -1; + } else if(((((a16==10)&&(!(a20==1)&&((((a12==1)&&(((a2==1)&&((input==5)&&(a1==13)))&&!(a8==1)))&&(a3==1))&&(a9==8))))&&!(a27==1))&&((((a21==10)&&((a17==2)&&((a6==1)&&(a19==1))))&&(a5==4))||!(a6==1)))){ + a29 = 1; + a12 = 0; + a23 = 0; + a9 = 10; + a16 = 7; + a20 = 1; + a5 = 6; + return 21; + } else if(((!(a11==1)&&((a14==1)&&(((a19==3)&&(((a20==1)&&(a13==1))&&(a17==2)))&&!(a28==1))))&&(!(a12==1)&&((a14==1)&&((a21==10)&&((((a16==8)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&(a4==1)))&&(a9==11))&&(a1==13))))))){ + a27 = 1; + a9 = 9; + a21 = 12; + a12 = 0; + a16 = 10; + a1 = 14; + a2 = 0; + a5 = 5; + a19 = 1; + return 25; + } else if(((!(a27==1)&&((a16==9)&&(!(a8==1)&&(a13==1))))&&((a3==1)&&(((a19==4)&&(!(a20==1)&&((a21==11)&&(((a17==2)&&(!(a8==1)&&(((((a5==6)&&(a1==12))&&(a9==11))||(((a1==13)&&(a5==4))&&(a9==7)))&&(input==5))))&&(a2==1)))))&&!(a24==1))))){ + a18 = 1; + a19 = 2; + a5 = 4; + a9 = 10; + a27 = 1; + a21 = 10; + a16 = 7; + a24 = 1; + a1 = 14; + a20 = 1; + return -1; + } else if((((a1==13)&&((a17==2)&&((((a28==1)&&(!(a18==1)&&((a13==1)&&((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(input==3)))))&&!(a18==1))&&(a3==1))))&&((a20==1)&&(((((a23==1)&&(a19==4))&&(a21==10))||(a27==1))&&(a16==7))))){ + a8 = 0; + a2 = 1; + a13 = 1; + a5 = 4; + a1 = 12; + a9 = 7; + a19 = 1; + return -1; + } else if((((a5==5)&&((a19==3)&&((((a9==10)&&(!(a11==1)||(!(a8==1)&&(a23==1))))&&(a1==14))&&(a21==11))))&&(((!(a7==1)&&((a28==1)&&((((input==3)&&(a17==2))&&!(a4==1))&&(a16==7))))&&(a6==1))&&!(a20==1)))){ + a5 = 4; + a23 = 1; + a9 = 7; + a26 = 0; + a1 = 12; + a20 = 1; + a19 = 1; + a21 = 10; + return -1; + } else if(((((a2==1)&&(((a20==1)&&(!(a28==1)||(a3==1)))&&(a19==3)))||!(a2==1))&&((a16==9)&&((a12==1)&&(((a1==12)&&((a13==1)&&(((((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&(a9==7))&&(a17==2))&&(a21==10))))&&(a6==1)))))){ + a18 = 0; + a16 = 8; + a23 = 1; + a11 = 1; + a1 = 14; + a9 = 11; + a21 = 12; + a5 = 4; + a19 = 2; + return 22; + } else if((((a18==1)||((a9==7)&&(!(a14==1)&&(((a11==1)&&(a17==2))&&(a2==1)))))&&(((a12==1)&&((((a21==11)&&(((a1==12)&&((a13==1)&&(((a5==4)||(a5==5))&&(input==6))))&&(a16==10)))&&(a20==1))&&(a19==1)))&&!(a18==1)))){ + a8 = 0; + a16 = 7; + a13 = 1; + a23 = 1; + a21 = 10; + a5 = 4; + return -1; + } else if((((((a23==1)&&(!(a7==1)&&((a16==7)&&((a19==4)&&((input==1)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))))))&&(a1==12))&&(a20==1))&&((((a17==2)&&(!(a26==1)&&((a6==1)&&((a26==1)||(a23==1)))))&&(a21==10))&&!(a7==1)))){ + a21 = 11; + a28 = 1; + a18 = 0; + a26 = 0; + a5 = 5; + a9 = 9; + return 22; + } else if((((a21==10)&&(!(a26==1)&&((a17==2)&&((a6==1)&&((((a1==13)&&(input==3))&&!(a0==1))&&(a5==6))))))&&(((((((!(a13==1)||(a6==1))&&(a19==5))&&(a3==1))&&(a9==8))&&!(a27==1))&&(a20==1))&&(a16==9)))){ + a5 = 4; + a1 = 12; + a24 = 0; + a16 = 7; + a0 = 0; + a19 = 1; + a12 = 1; + a9 = 7; + return -1; + } else if(((!(a20==1)&&((a17==2)&&(((a28==1)&&(!(a7==1)&&(((a14==1)||(a3==1))&&!(a26==1))))&&(a9==9))))&&((a16==7)&&(((a1==14)&&(!(a27==1)&&((((input==1)&&((a5==4)||(a5==5)))&&(a19==3))&&(a23==1))))&&(a21==12))))){ + a5 = 4; + a9 = 7; + a20 = 1; + a19 = 1; + a8 = 0; + a21 = 10; + a1 = 12; + a13 = 1; + return -1; + } else if(((((((a16==9)&&((!(a26==1)&&(((a9==10)&&(((a11==1)&&(((a5==4)||(a5==5))&&(input==5)))&&(a13==1)))&&(a1==12)))&&(a20==1)))&&(a17==2))&&!(a4==1))&&(a11==1))&&((((a11==1)||!(a13==1))&&(a19==2))&&(a21==12)))){ + a5 = 5; + a9 = 9; + a2 = 1; + a3 = 1; + a21 = 10; + a18 = 0; + a19 = 5; + a16 = 8; + return 26; + } else if((((!(a27==1)&&((((((a21==12)&&((((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4)))&&(input==5))&&(a17==2)))&&(a3==1))&&(a23==1))&&!(a4==1))&&(a28==1)))&&!(a18==1))&&((a19==5)&&((a1==12)&&(!(a20==1)&&((a28==1)&&(a16==10))))))){ + a5 = 5; + a21 = 10; + a9 = 8; + a15 = 1; + a29 = 0; + a16 = 7; + a19 = 2; + a20 = 1; + return -1; + } else if(((((!(a6==1)&&((((a19==3)&&((a21==12)&&(((a5==6)&&(input==3))&&(a17==2))))&&(a1==14))&&(a27==1)))&&(a7==1))&&!(a13==1))&&((a8==1)&&((a27==1)&&((a9==7)&&((a16==8)&&((a6==1)&&(a20==1)))))))){ + a21 = 10; + a5 = 5; + a19 = 1; + a1 = 12; + a27 = 1; + a9 = 9; + a16 = 7; + a23 = 0; + a24 = 1; + return -1; + } else if((((a20==1)&&(((a17==2)&&((!(a27==1)&&((a1==13)&&((input==5)&&((a5==6)||((a5==4)||(a5==5))))))&&(a21==12)))&&(a9==10)))&&((((((((a13==1)||(a8==1))&&(a13==1))&&(a11==1))&&(a11==1))||!(a3==1))&&(a19==5))&&(a16==10)))){ + a19 = 2; + a21 = 10; + a5 = 5; + a9 = 9; + a11 = 1; + a16 = 7; + a28 = 1; + return 25; + } else if((((a23==1)&&((((input==5)&&(((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))))&&(a21==10))&&(a13==1)))&&(((((((a19==4)&&(((a12==1)&&((a23==1)||!(a23==1)))||!(a23==1)))&&(a16==10))&&(a20==1))&&(a3==1))&&(a1==13))&&(a17==2)))){ + a19 = 3; + a7 = 0; + a6 = 1; + a21 = 11; + a16 = 7; + a5 = 6; + a0 = 0; + a1 = 14; + a9 = 11; + return 25; + } else if(((((((a5==5)&&((a28==1)&&(a9==8)))&&(a21==12))&&(a17==2))||(a24==1))&&(((!(a20==1)&&(((!(a24==1)&&((((input==4)&&(a1==13))&&!(a27==1))&&(a19==4)))&&(a16==9))&&(a12==1)))&&!(a26==1))&&!(a7==1)))){ + a22 = 1; + a5 = 4; + a19 = 2; + a26 = 1; + a16 = 7; + a20 = 1; + a25 = 1; + a1 = 12; + a21 = 10; + return 26; + } else if((((a21==12)&&((a3==1)&&((a9==8)&&(!(a20==1)&&((!(a27==1)&&((a3==1)&&(((a5==4)||(a5==5))&&(input==5))))&&(a13==1))))))&&((a19==1)&&(((a18==1)||((((a1==13)&&(a6==1))&&(a17==2))&&(a16==7)))||!(a2==1))))){ + a9 = 7; + a24 = 0; + a20 = 1; + a5 = 6; + a14 = 0; + a13 = 1; + a21 = 11; + a16 = 8; + a1 = 12; + return 25; + } else if((((a19==1)&&(!(a20==1)&&(((!(a12==1)||(((a5==4)&&((a2==1)&&((a28==1)&&(a11==1))))&&(a17==2)))&&(a13==1))&&(a11==1))))&&((a9==10)&&(!(a18==1)&&((a21==11)&&((a16==8)&&((a1==13)&&(input==6)))))))){ + a1 = 12; + a19 = 4; + a8 = 0; + a2 = 1; + a5 = 6; + a27 = 0; + a20 = 1; + a9 = 11; + return 26; + } else if(((((!(a27==1)&&((a13==1)&&(!(a18==1)&&(((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4)))&&(input==5)))))&&(a3==1))&&(a17==2))&&((a21==11)&&(((a19==1)&&((a20==1)&&((((a6==1)&&(a11==1))||(a27==1))&&(a1==14))))&&(a16==9))))){ + a6 = 1; + a9 = 7; + a21 = 10; + a3 = 1; + a1 = 12; + a16 = 7; + a5 = 4; + a28 = 1; + return -1; + } else if((((a17==2)&&(((a23==1)&&((a1==13)&&(!(a18==1)&&((a20==1)&&(((a5==5)||(a5==6))&&(input==5))))))&&(a16==9)))&&((a14==1)||((((a21==12)&&((((a2==1)&&!(a0==1))||(a8==1))||(a26==1)))&&(a9==7))&&(a19==4))))){ + a16 = 7; + a21 = 10; + a23 = 1; + a7 = 0; + a19 = 1; + a1 = 12; + a24 = 0; + a5 = 4; + return -1; + } else if(((((a2==1)&&((((!(a24==1)&&((a20==1)&&(((a5==5)||(a5==6))&&(input==6))))&&(a9==7))&&(a17==2))&&!(a24==1)))&&(a3==1))&&(((((a1==13)&&(((a3==1)&&!(a0==1))&&(a16==10)))&&(a19==3))&&(a21==12))||!(a11==1)))){ + a0 = 0; + a13 = 1; + a5 = 5; + a7 = 0; + a19 = 2; + a16 = 7; + a9 = 9; + a21 = 10; + return 25; + } else if(((((((a6==1)&&((a21==12)&&(!(a26==1)&&((a19==3)&&((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))&&(input==4))))))&&(a17==2))&&(a2==1))&&!(a8==1))&&((a2==1)&&((((a1==13)&&((a2==1)&&(a16==11)))&&(a20==1))&&(a12==1))))){ + a9 = 7; + a5 = 4; + a1 = 12; + a26 = 0; + a14 = 0; + a16 = 7; + a21 = 10; + a28 = 1; + a19 = 1; + return -1; + } else if(((((!(a8==1)&&(((a16==10)&&((a13==1)&&((a6==1)&&((((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6))))&&(input==4)))))&&(a17==2)))&&(a19==5))&&!(a20==1))&&((a21==12)&&(((a23==1)&&(!(a24==1)&&((a28==1)&&(a1==12))))&&!(a24==1))))){ + if((a11==1)){ + a26 = 1; + a12 = 0; + a9 = 10; + a20 = 1; + a16 = 7; + a5 = 6; + a19 = 1; + a2 = 0; + a21 = 10; + }else{ + a9 = 11; + a19 = 2; + a20 = 1; + a14 = 1; + a16 = 11; + a5 = 6; + a24 = 1; + a1 = 13; + a25 = 1; + a21 = 10; + } + return -1; + } else if(((!(a27==1)&&(((a21==11)&&((a6==1)&&((a20==1)&&((((a11==1)&&(a17==2))&&(a23==1))&&(a2==1)))))&&!(a4==1)))&&((a23==1)&&((a19==3)&&((((input==1)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(a16==8))&&(a1==13)))))){ + a26 = 0; + a28 = 1; + a1 = 14; + a5 = 6; + a9 = 9; + a19 = 5; + a16 = 10; + a23 = 1; + a21 = 10; + return 22; + } else if(((!(a20==1)&&((a17==2)&&(((((((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(input==3))&&(a16==10))&&(a3==1))&&(a13==1))))&&((a0==1)||((!(a8==1)&&(((a28==1)&&(((a1==13)&&(a28==1))&&(a19==5)))&&(a21==10)))||!(a23==1))))){ + a20 = 1; + a16 = 7; + a5 = 5; + a8 = 1; + a1 = 12; + a9 = 8; + a26 = 1; + a22 = 0; + a19 = 1; + return 21; + } else if((((!(a26==1)&&(!(a27==1)&&((a28==1)&&(((((a20==1)&&((input==4)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))))&&(a17==2))&&(a1==13))&&(a16==7)))))&&(a6==1))&&((((a21==10)&&((a19==3)&&(a13==1)))&&!(a0==1))||(a7==1)))){ + a24 = 0; + a28 = 1; + a1 = 12; + a19 = 1; + a0 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if((((a1==12)&&((a8==1)||((a8==1)||((a24==1)||((a17==2)&&((a16==8)&&(a3==1)))))))&&(((a3==1)&&(((a21==10)&&((((input==1)&&((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9))))&&!(a8==1))&&!(a20==1)))&&(a3==1)))&&(a19==3)))){ + a4 = 0; + a9 = 7; + a20 = 1; + a16 = 7; + a5 = 4; + a19 = 1; + a24 = 0; + a3 = 1; + return -1; + } else if((((a12==1)&&((((((a16==7)&&((!(a24==1)&&((a21==11)&&((input==6)&&(((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))))))&&(a19==1)))&&!(a26==1))&&!(a20==1))&&(a17==2))&&(a6==1)))&&((a1==14)&&(((a23==1)||(a14==1))&&!(a27==1))))){ + if((a13==1)){ + a14 = 0; + a11 = 1; + a5 = 5; + a26 = 0; + a16 = 8; + a9 = 11; + a19 = 5; + a21 = 10; + a1 = 12; + }else{ + a14 = 0; + a20 = 1; + a21 = 10; + a19 = 2; + a9 = 10; + a12 = 1; + a5 = 6; + a18 = 0; + } + return 21; + } else if(((((a19==4)&&((a6==1)&&(((a7==1)||((a21==10)&&(a23==1)))&&!(a27==1))))&&(a5==6))&&((a9==10)&&((!(a8==1)&&(((((a17==2)&&(!(a20==1)&&(input==4)))&&(a3==1))&&!(a24==1))&&(a1==12)))&&(a16==9))))){ + a19 = 2; + a5 = 4; + a9 = 11; + a20 = 1; + a23 = 0; + a16 = 7; + a26 = 1; + a15 = 0; + return -1; + } else if((((((a7==1)&&(!(a6==1)&&((input==5)&&(a1==12))))&&!(a6==1))&&(a21==11))&&(!(a2==1)&&((((!(a12==1)&&((a19==1)&&((a9==11)&&(((a26==1)&&(a2==1))&&(a5==4)))))&&(a16==8))&&(a17==2))&&!(a20==1))))){ + a29 = 0; + a1 = 14; + a5 = 5; + a21 = 10; + a3 = 0; + a16 = 7; + a20 = 1; + a9 = 7; + a22 = 0; + return 25; + } else if((((!(a23==1)||((a7==1)||((a1==12)&&(((a20==1)&&((a6==1)&&(a9==7)))&&(a17==2)))))||!(a2==1))&&(!(a14==1)&&((!(a26==1)&&((((a21==11)&&((input==1)&&((a5==4)||(a5==5))))&&(a19==4))&&!(a14==1)))&&(a16==7))))){ + a12 = 1; + a0 = 0; + a28 = 1; + a21 = 10; + a5 = 4; + a19 = 1; + return -1; + } else if(((!(a18==1)&&(!(a18==1)&&((a11==1)&&((((a20==1)&&(a23==1))&&(a21==11))&&(a19==3)))))&&((a23==1)&&(((a12==1)&&((((a1==13)&&((((a5==4)||(a5==5))&&(input==1))&&(a16==9)))&&(a17==2))&&(a9==9)))&&!(a27==1))))){ + a21 = 12; + a1 = 12; + a5 = 5; + a16 = 10; + a9 = 10; + a12 = 1; + a0 = 0; + return 25; + } else if(((!(a12==1)||((a16==9)&&((a28==1)&&(a17==2))))&&((a19==3)&&(!(a4==1)&&((((((a21==11)&&(((!(a24==1)&&((a5==5)&&(input==5)))&&(a1==14))&&!(a20==1)))&&!(a8==1))&&(a9==8))&&(a3==1))&&!(a26==1)))))){ + a14 = 1; + a28 = 0; + a16 = 7; + a5 = 6; + a21 = 10; + a1 = 12; + a8 = 1; + a9 = 7; + a20 = 1; + a19 = 2; + return -1; + } else if(((((((a2==1)&&((((!(a24==1)&&((input==4)&&((a5==4)||(a5==5))))&&(a19==1))&&(a20==1))&&(a9==11)))&&(a16==7))&&!(a24==1))&&!(a8==1))&&(((a21==12)&&(!(a23==1)||(((a2==1)&&(a1==12))&&(a17==2))))||(a18==1)))){ + a19 = 2; + a26 = 0; + a20 = 0; + a5 = 4; + a9 = 9; + a2 = 1; + a1 = 13; + a6 = 1; + return 23; + } else if(((!(a18==1)&&(((a21==11)&&((a23==1)&&(((a13==1)||(a0==1))||(a0==1))))||!(a28==1)))&&((((a16==10)&&((((a9==10)&&(((input==4)&&((a5==4)||(a5==5)))&&(a17==2)))&&(a1==13))&&!(a20==1)))&&(a19==3))&&(a23==1)))){ + if((a22==1)){ + a19 = 1; + a5 = 5; + a9 = 11; + a6 = 0; + a20 = 1; + a10 = 1; + a16 = 8; + a18 = 1; + }else{ + a21 = 12; + a12 = 0; + a29 = 0; + a7 = 1; + a19 = 2; + a9 = 9; + a5 = 6; + a1 = 12; + } + return -1; + } else if(((!(a18==1)&&((a17==2)&&(((a1==14)&&((a16==7)&&(a6==1)))&&(a21==11))))&&((!(a18==1)&&((a2==1)&&(!(a18==1)&&(!(a27==1)&&(((a19==1)&&(((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a20==1)))&&(a9==10))))))&&(a13==1)))){ + a1 = 12; + a9 = 7; + a28 = 1; + a5 = 4; + a21 = 10; + a3 = 1; + return -1; + } else if((((a17==2)&&((a21==10)&&(((a14==1)||((!(a7==1)&&(!(a27==1)&&(a2==1)))&&!(a26==1)))&&(a16==9))))&&(((a20==1)&&((!(a8==1)&&((a19==5)&&((input==5)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))))&&(a1==14)))&&(a12==1)))){ + a11 = 1; + a5 = 5; + a4 = 0; + a9 = 11; + a21 = 11; + a14 = 0; + return 21; + } else if((((a1==14)&&((a19==2)&&((!(a4==1)&&((a28==1)||(a24==1)))&&(a9==8))))&&((((!(a20==1)&&(!(a14==1)&&(!(a7==1)&&((a3==1)&&((((a5==4)||(a5==5))&&(input==1))&&(a23==1))))))&&(a21==12))&&(a16==8))&&(a17==2)))){ + a22 = 0; + a29 = 0; + a20 = 1; + a9 = 9; + a21 = 10; + a5 = 5; + a16 = 9; + a1 = 12; + a10 = 1; + return -1; + } else if((((a19==4)&&(!(a18==1)&&((!(a7==1)&&(((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==5))&&!(a0==1)))&&(a20==1))))&&((a1==12)&&(((a6==1)&&((a16==7)&&(((a4==1)||((a3==1)&&(a17==2)))&&(a13==1))))&&(a21==10))))){ + if((a16==8)){ + a19 = 2; + a8 = 0; + a20 = 0; + a16 = 8; + a7 = 0; + a3 = 1; + a9 = 11; + a5 = 4; + }else{ + a3 = 1; + a9 = 10; + a21 = 11; + a5 = 4; + a23 = 1; + a19 = 3; + a1 = 13; + } + return 26; + } else if(((((!(a26==1)&&(((a17==2)&&(((a1==13)&&((((input==6)&&((a5==4)||(a5==5)))&&!(a20==1))&&(a11==1)))&&(a21==12)))&&(a13==1)))&&(a12==1))&&(a28==1))&&(((a19==3)&&(((a11==1)&&(a16==9))&&(a9==10)))&&(a6==1)))){ + a20 = 1; + a29 = 0; + a19 = 2; + a15 = 0; + a5 = 4; + a16 = 11; + a9 = 9; + a12 = 0; + return 23; + } else if((((!(a0==1)&&(((a6==1)&&((a21==11)&&(input==1)))&&(a28==1)))&&!(a20==1))&&(((a19==3)&&(((a9==11)&&((a1==14)&&(!(a11==1)||(!(a24==1)&&(((a11==1)||!(a3==1))&&(a17==2))))))&&(a5==6)))&&(a16==10)))){ + a5 = 5; + a25 = 1; + a9 = 9; + a16 = 7; + a20 = 1; + a22 = 0; + a18 = 1; + a19 = 1; + a21 = 10; + return -1; + } else if((((a9==9)&&((a1==12)&&((a13==1)&&(((a17==2)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))&&!(a27==1)))))&&((!(a20==1)&&(((a14==1)||(!(a6==1)||((a23==1)&&((a13==1)&&((a21==11)&&(a11==1))))))&&(a16==8)))&&(a19==3)))){ + a20 = 1; + a19 = 4; + a5 = 4; + a28 = 1; + a1 = 14; + a27 = 0; + a16 = 7; + a9 = 7; + return 26; + } else if((((a14==1)||((a19==1)&&((a21==10)&&((!(a18==1)&&((a1==13)&&(!(a20==1)&&(a6==1))))&&(a16==9)))))&&(!(a26==1)&&((a23==1)&&(((((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==4))&&(a23==1))&&(a17==2))&&(a11==1)))))){ + a24 = 1; + a5 = 6; + a0 = 1; + a16 = 7; + a9 = 9; + a8 = 1; + a20 = 1; + return 25; + } else if(((((!(a18==1)&&((a17==2)&&((a21==11)&&((input==6)&&(a5==4)))))&&(a19==4))&&(a20==1))&&((a1==14)&&(!(a23==1)||(!(a3==1)||(((a9==7)&&(((a24==1)||(!(a3==1)||(a2==1)))&&(a16==11)))&&!(a8==1))))))){ + a26 = 0; + a21 = 12; + a5 = 5; + a2 = 1; + a19 = 2; + a4 = 0; + a9 = 9; + return 25; + } else if((((a23==1)&&((a17==2)&&((((a6==1)&&(a19==2))||(a14==1))&&(a20==1))))&&((a1==14)&&(((((a13==1)&&(((a23==1)&&((input==4)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))))&&!(a26==1)))&&(a3==1))&&(a21==10))&&(a16==8))))){ + a11 = 1; + a9 = 7; + a2 = 1; + a1 = 12; + a16 = 7; + a5 = 4; + a4 = 0; + a19 = 1; + return -1; + } else if((((((((((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6))))&&(input==4))&&(a13==1))&&(a1==12))&&!(a24==1))&&(a20==1))&&(((a17==2)&&((a16==11)&&(((((a7==1)||((a23==1)&&!(a24==1)))&&(a23==1))&&(a19==4))||!(a11==1))))&&(a21==11)))){ + a9 = 7; + a19 = 1; + a16 = 7; + a21 = 10; + a0 = 0; + a12 = 1; + a5 = 4; + a8 = 0; + return -1; + } else if(((!(a8==1)&&(((a7==1)||(((a28==1)&&((a2==1)&&(a17==2)))&&(a16==11)))&&!(a24==1)))&&((a13==1)&&((a19==3)&&((a20==1)&&(((((input==1)&&((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a5==4)&&(a9==9))))&&(a1==14))&&(a21==10))&&(a6==1))))))){ + a16 = 9; + a6 = 1; + a19 = 5; + a28 = 1; + a9 = 11; + a5 = 5; + a21 = 11; + a12 = 1; + return 21; + } else if((((a7==1)&&((a21==10)&&(!(a11==1)&&((a1==14)&&((a4==1)&&(((a17==2)&&(input==3))&&(a5==5)))))))&&((((((((a13==1)&&(a16==8))&&!(a20==1))&&(a24==1))&&(a26==1))&&(a26==1))&&(a19==5))&&(a9==7)))){ + a26 = 1; + a19 = 1; + a22 = 0; + a16 = 7; + a1 = 12; + a20 = 1; + a9 = 10; + return 25; + } else if((((((((a20==1)&&(a11==1))||(a24==1))&&(a17==2))&&!(a0==1))&&(a1==14))&&((a21==11)&&(((a23==1)&&((a16==9)&&(((!(a4==1)&&((((a5==5)||(a5==6))&&(input==3))&&!(a18==1)))&&!(a24==1))&&(a9==9))))&&(a19==1))))){ + a18 = 0; + a9 = 7; + a1 = 12; + a16 = 7; + a5 = 4; + a6 = 1; + a21 = 10; + a24 = 0; + return -1; + } else if((((a21==11)&&(((((input==1)&&(a16==7))&&(a18==1))&&(a5==4))&&!(a6==1)))&&(((a20==1)&&((a9==8)&&((a19==5)&&(((((a0==1)&&((a28==1)&&!(a23==1)))&&!(a2==1))&&!(a28==1))&&(a17==2)))))&&(a1==12)))){ + a21 = 10; + a8 = 1; + a16 = 9; + a5 = 6; + a15 = 1; + a9 = 9; + a1 = 13; + a26 = 1; + return 21; + } else if(((!(a4==1)&&((a23==1)&&((a17==2)&&((!(a20==1)&&((a1==13)&&((a19==3)&&(((((!(a18==1)&&((input==4)&&((a5==5)||(a5==6))))&&(a16==7))&&(a9==10))&&(a21==11))&&!(a7==1)))))&&!(a4==1)))))&&(!(a6==1)||(a13==1)))){ + a9 = 7; + a0 = 0; + a20 = 1; + a3 = 1; + a23 = 1; + a21 = 10; + a19 = 1; + a1 = 12; + a5 = 4; + return -1; + } else if(((((a28==1)&&((a21==12)&&((((a5==5)&&(a6==1))&&(a9==8))||!(a23==1))))||(a0==1))&&(((a6==1)&&((((((a19==2)&&((a16==9)&&(input==6)))&&(a1==14))&&!(a18==1))&&!(a20==1))&&(a17==2)))&&!(a4==1)))){ + if((a2==1)){ + a6 = 0; + a25 = 0; + a1 = 12; + a16 = 8; + a20 = 1; + a15 = 1; + a21 = 11; + }else{ + a20 = 1; + a11 = 0; + a28 = 0; + a1 = 12; + a19 = 4; + a13 = 0; + a21 = 10; + a16 = 8; + a5 = 6; + } + return 21; + } else if(((!(a14==1)&&((a2==1)&&((a1==13)&&(!(a14==1)&&((((a5==4)||(a5==5))&&(input==1))&&!(a27==1))))))&&(((a9==9)&&((a16==9)&&((a19==5)&&((((!(a7==1)&&(a3==1))&&(a17==2))&&(a20==1))&&(a21==11)))))&&!(a24==1)))){ + a12 = 1; + a1 = 12; + a23 = 1; + a9 = 8; + a20 = 0; + a5 = 5; + a16 = 8; + a19 = 4; + a27 = 0; + return 21; + } else if(((((a19==2)&&((a9==8)&&((!(a4==1)&&(((a3==1)&&((((a1==12)&&(input==4))&&(a20==1))&&(a6==1)))&&(a17==2)))&&(a28==1))))&&(a21==10))&&((((a16==10)&&((a6==1)||!(a13==1)))||(a4==1))&&(a5==4)))){ + a16 = 8; + a4 = 0; + a9 = 10; + a2 = 1; + a23 = 1; + a19 = 5; + return 25; + } else if((((((!(a24==1)&&(((((!(a7==1)&&(a12==1))&&!(a7==1))&&(a21==12))&&(a9==7))||!(a6==1)))&&(a23==1))&&(a1==12))&&(a19==5))&&((a2==1)&&((((((a5==4)||(a5==5))&&(input==3))&&(a20==1))&&(a17==2))&&(a16==8))))){ + a5 = 6; + a24 = 0; + a9 = 11; + a1 = 13; + a7 = 0; + a16 = 10; + a19 = 4; + a13 = 1; + return 25; + } else if((((((a4==1)||((a18==1)||(((a2==1)&&(a28==1))&&(a5==5))))&&(a6==1))&&(a9==8))&&((((a1==12)&&((a17==2)&&(((((input==3)&&(a16==10))&&(a11==1))&&!(a20==1))&&(a28==1))))&&(a21==11))&&(a19==3)))){ + a18 = 1; + a9 = 11; + a1 = 14; + a5 = 4; + a25 = 1; + a20 = 1; + a19 = 2; + a10 = 1; + a16 = 9; + a21 = 12; + return -1; + } else if((((a9==9)&&(((a19==5)&&((a23==1)&&((a2==1)&&((a1==14)&&(input==4)))))&&(a12==1)))&&((a5==4)&&(((((!(a12==1)||((a13==1)&&((a28==1)||!(a12==1))))&&(a20==1))&&(a21==12))&&(a17==2))&&(a16==9))))){ + a21 = 10; + a16 = 7; + a3 = 1; + a1 = 12; + a19 = 1; + a14 = 0; + a9 = 7; + return -1; + } else if((((((a3==1)&&(!(a7==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1))))&&(a19==1))&&(a12==1))&&((a21==11)&&((((a17==2)&&((((((a23==1)&&(a13==1))&&(a9==8))&&(a16==8))||(a27==1))&&!(a20==1)))&&(a1==14))||(a7==1))))){ + a20 = 1; + a5 = 5; + a6 = 1; + a1 = 12; + a19 = 2; + a9 = 11; + a11 = 1; + a16 = 11; + a2 = 1; + return 21; + } else if((((a12==1)&&((((a23==1)&&((a16==8)&&(!(a8==1)&&((((input==5)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(a19==4))&&(a17==2)))))&&!(a18==1))&&(a1==13)))&&(!(a12==1)||((a20==1)&&(((a28==1)&&(a21==12))||!(a12==1)))))){ + a21 = 10; + a8 = 0; + a28 = 1; + a16 = 7; + a26 = 0; + a19 = 1; + a5 = 4; + a1 = 12; + a9 = 7; + return -1; + } else if(((((((a12==1)||!(a11==1))&&(a21==10))||(a4==1))&&(a20==1))&&(((a1==12)&&(((((a19==3)&&(((a6==1)&&((a11==1)&&((input==6)&&(a17==2))))&&(a23==1)))&&(a5==4))&&(a9==9))&&(a16==7)))&&(a23==1)))){ + a7 = 0; + a23 = 1; + a3 = 1; + a1 = 13; + a5 = 6; + a9 = 8; + a19 = 5; + return 22; + } else if((((a19==2)&&(!(a20==1)&&(((input==4)&&((((a5==6)&&(a1==13))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==14)))))&&(a12==1))))&&(((!(a11==1)||(((a17==2)&&(!(a4==1)&&((a16==8)&&((a21==11)&&(a28==1)))))&&!(a14==1)))||(a7==1))||(a0==1)))){ + a4 = 0; + a1 = 12; + a9 = 7; + a20 = 1; + a16 = 7; + a6 = 1; + a21 = 10; + a19 = 1; + a5 = 4; + a23 = 1; + return -1; + } else if((((a5==5)&&((a28==1)&&((a13==1)&&((input==1)&&(a16==8)))))&&((a9==7)&&((a1==13)&&((a17==2)&&((a19==4)&&(((a21==12)&&((a11==1)&&(!(a7==1)&&(((a23==1)&&!(a27==1))&&(a2==1)))))&&(a20==1)))))))){ + a16 = 7; + a27 = 0; + a5 = 4; + a21 = 10; + a1 = 12; + a2 = 1; + a19 = 1; + a28 = 1; + return -1; + } else if((((a17==2)&&(((a21==12)&&((((a16==10)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6))))&&!(a26==1))&&!(a7==1)))&&!(a24==1)))&&((a1==13)&&((((a11==1)&&((((a23==1)||(a7==1))&&(a20==1))&&(a19==5)))||!(a28==1))&&(a9==9))))){ + a19 = 2; + a5 = 5; + a13 = 1; + a7 = 0; + a6 = 1; + a16 = 9; + return 25; + } else if((((a1==13)&&((((a21==11)&&((a9==10)&&((a26==1)||((a12==1)||!(a2==1)))))&&(a17==2))&&(a13==1)))&&((((a11==1)&&((a28==1)&&(!(a18==1)&&((a5==5)&&((a16==8)&&(input==1))))))&&(a19==5))&&!(a20==1)))){ + a20 = 1; + a19 = 4; + a6 = 0; + a9 = 7; + a18 = 1; + a1 = 14; + a15 = 1; + return -1; + } else if((((!(a7==1)&&(((a2==1)&&((a12==1)&&((input==3)&&((a5==4)||(a5==5)))))&&(a17==2)))&&(a9==9))&&((((a18==1)||((((!(a20==1)&&((a12==1)&&(a19==3)))&&(a21==12))||!(a11==1))&&(a1==12)))&&(a16==8))||(a7==1)))){ + a19 = 2; + a5 = 5; + a0 = 1; + a25 = 0; + a1 = 14; + a9 = 8; + a21 = 11; + return -1; + } else if((((a24==1)||(((((a2==1)&&(a5==4))||(a24==1))&&(a1==14))||(a27==1)))&&((a17==2)&&(!(a24==1)&&((a9==7)&&(((a21==10)&&((a19==5)&&((((input==5)&&!(a20==1))&&!(a0==1))&&(a3==1))))&&(a16==10))))))){ + if((a26==1)){ + a19 = 1; + a5 = 6; + a10 = 0; + a16 = 7; + a9 = 10; + a1 = 13; + a29 = 1; + a21 = 11; + a23 = 0; + }else{ + a19 = 2; + a5 = 5; + a2 = 0; + a1 = 12; + a6 = 0; + a16 = 7; + a26 = 1; + a20 = 1; + } + return 25; + } else if((((a19==3)&&(!(a3==1)||(((a26==1)||((a17==2)&&(a12==1)))&&(a16==9))))&&((a21==10)&&((a20==1)&&(((!(a26==1)&&(!(a4==1)&&((a3==1)&&((input==4)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))))))&&(a23==1))&&(a1==13)))))){ + if((a24==1)){ + a4 = 0; + a14 = 0; + a5 = 6; + a9 = 10; + a21 = 11; + a19 = 2; + a16 = 7; + a20 = 0; + a1 = 14; + }else{ + a9 = 9; + a23 = 1; + a19 = 2; + a16 = 7; + a2 = 1; + a5 = 5; + a21 = 12; + a3 = 1; + } + return 25; + } else if((((((!(a7==1)&&((a19==1)&&(((a5==5)||(a5==6))&&(input==4))))&&!(a14==1))&&!(a20==1))&&(a21==11))&&(((a3==1)&&(((!(a28==1)||((((a1==12)&&(a2==1))&&(a17==2))&&!(a14==1)))&&(a9==11))&&(a13==1)))&&(a16==8)))){ + a16 = 7; + a20 = 1; + a5 = 4; + a9 = 7; + a18 = 0; + a2 = 1; + a21 = 10; + a23 = 1; + return -1; + } else if(((!(a12==1)||((!(a3==1)||(!(a14==1)&&((a20==1)&&(((!(a12==1)||((a9==8)&&(a28==1)))&&(a21==11))&&(a19==5)))))||!(a2==1)))&&(((((a17==2)&&((a5==6)&&(input==1)))&&(a1==13))&&(a16==10))&&!(a8==1)))){ + a19 = 3; + a11 = 1; + a21 = 12; + a12 = 1; + a9 = 9; + return 21; + } else if((((((((a20==1)&&(a28==1))&&!(a27==1))&&(a21==11))&&(a16==8))&&!(a7==1))&&((((a2==1)&&((!(a4==1)&&((((input==3)&&(((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))))&&(a17==2))&&(a1==12)))&&(a19==2)))&&(a2==1))&&(a3==1)))){ + a9 = 7; + a27 = 0; + a4 = 0; + a5 = 4; + a21 = 10; + a3 = 1; + a16 = 7; + a19 = 1; + return -1; + } else if((((a21==11)&&(!(a8==1)&&((a16==10)&&((a9==10)&&((a20==1)&&((a17==2)&&(((a26==1)||(a13==1))&&(a28==1))))))))&&(!(a14==1)&&(((a1==12)&&((a28==1)&&((a19==3)&&(((a5==4)||(a5==5))&&(input==1)))))&&!(a18==1))))){ + a24 = 0; + a26 = 0; + a19 = 1; + a5 = 4; + a9 = 7; + a23 = 1; + a21 = 10; + a16 = 7; + return -1; + } else if(((((a1==12)&&((a17==2)&&((a16==8)&&((a12==1)&&(((input==5)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&(a2==1))))))&&(a19==1))&&((a21==11)&&(!(a20==1)&&(((((a6==1)&&(a13==1))||!(a28==1))||(a26==1))&&(a28==1)))))){ + a9 = 9; + a4 = 0; + a16 = 10; + a1 = 13; + a2 = 1; + a3 = 1; + a5 = 4; + a20 = 1; + return 21; + } else if((((a23==1)&&(((a21==10)&&(((a1==13)&&((a20==1)&&(((((a19==3)&&(input==3))&&(a17==2))&&!(a0==1))&&(a9==11))))&&(a5==6)))&&!(a8==1)))&&((((a16==9)&&((a11==1)&&!(a26==1)))||!(a23==1))&&(a3==1)))){ + a6 = 1; + a5 = 4; + a16 = 7; + a28 = 1; + a19 = 1; + a9 = 7; + a1 = 12; + a11 = 1; + return -1; + } else if((((((a9==8)&&((!(a0==1)&&(((a5==5)||(a5==6))&&(input==5)))&&(a16==11)))&&(a20==1))&&(a21==11))&&((a19==2)&&((!(a12==1)||((((((a1==14)&&(a13==1))||!(a11==1))&&(a17==2))||!(a11==1))&&(a3==1)))&&(a12==1))))){ + a1 = 13; + a19 = 1; + a2 = 1; + a21 = 12; + a5 = 6; + a28 = 1; + a8 = 0; + a9 = 10; + return 25; + } else if(((!(a4==1)&&(((((a20==1)&&(((a17==2)&&(a23==1))&&(a19==1)))&&(a3==1))&&(a2==1))||!(a13==1)))&&((((a9==11)&&((a16==10)&&((a1==13)&&((a21==10)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6)))))))&&!(a4==1))&&!(a18==1)))){ + a9 = 10; + a16 = 9; + a14 = 0; + a5 = 4; + a27 = 0; + a19 = 2; + return 25; + } else if((((a23==1)&&((((a16==8)&&((a12==1)&&((a1==12)&&((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(input==6)))))&&!(a20==1))&&(a3==1)))&&((a26==1)||((a21==10)&&(((a19==5)&&((a7==1)||((a17==2)&&(a3==1))))||(a18==1)))))){ + a20 = 1; + a6 = 1; + a1 = 14; + a16 = 7; + a19 = 4; + a5 = 5; + a12 = 1; + a9 = 8; + return 21; + } else if((((a17==2)&&((a19==3)&&((a28==1)&&(((input==5)&&(((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))&&!(a27==1)))))&&((a18==1)||((a16==10)&&(!(a28==1)||((a28==1)&&(((a6==1)&&((a1==13)&&((a13==1)&&(a20==1))))&&(a21==10)))))))){ + a2 = 1; + a19 = 2; + a12 = 1; + a21 = 11; + a9 = 9; + a27 = 0; + a5 = 5; + return 21; + } else if((((!(a27==1)&&((a0==1)||(!(a2==1)||((a27==1)||((a23==1)&&(((a3==1)&&((a19==2)&&(a3==1)))&&(a16==9)))))))&&(a17==2))&&((a20==1)&&(((a9==11)&&((a1==12)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5))))&&(a21==12))))){ + a19 = 1; + a9 = 7; + a16 = 7; + a14 = 0; + a21 = 10; + a27 = 0; + a11 = 1; + a5 = 4; + return -1; + } else if((((!(a26==1)&&(!(a24==1)&&((((a13==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))&&(a23==1))&&(a9==9))))&&(a28==1))&&((!(a20==1)&&((a1==12)&&(((a21==11)&&(((a28==1)||!(a2==1))&&(a17==2)))&&(a19==1))))&&(a16==7)))){ + a1 = 13; + a20 = 1; + a19 = 4; + a5 = 6; + a7 = 0; + a18 = 0; + a21 = 10; + return 21; + } else if(((((a21==11)&&((a9==7)&&((a17==2)&&((!(a18==1)&&(((a5==6)&&(input==6))&&(a1==12)))&&(a16==11)))))&&(a20==1))&&((!(a26==1)&&((!(a6==1)||(((a23==1)||!(a12==1))&&!(a27==1)))&&(a19==5)))||(a18==1)))){ + a6 = 1; + a9 = 10; + a8 = 0; + a16 = 10; + a19 = 1; + a2 = 1; + a21 = 10; + return 21; + } else if(((((!(a24==1)&&((a21==10)&&((a16==9)&&(((a5==5)||(a5==6))&&(input==3)))))&&!(a20==1))&&!(a0==1))&&((a1==12)&&(((a28==1)&&((a17==2)&&(((((a9==8)&&(a3==1))||!(a13==1))&&!(a4==1))&&(a19==2))))||!(a11==1))))){ + if((a14==1)){ + a20 = 1; + a29 = 0; + a19 = 1; + a4 = 1; + a16 = 7; + a5 = 6; + a1 = 13; + a9 = 11; + a25 = 0; + }else{ + a5 = 4; + a19 = 1; + a28 = 0; + a16 = 7; + a15 = 0; + a20 = 1; + a9 = 7; + a12 = 0; + } + return 25; + } else if((((((a1==13)&&((a19==4)&&(((a17==2)&&((a16==10)&&((a12==1)&&(a21==10))))||(a27==1))))||(a24==1))&&!(a18==1))&&((!(a20==1)&&(!(a4==1)&&((((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))&&(input==1))&&!(a8==1))))&&(a11==1)))){ + a28 = 0; + a19 = 1; + a9 = 9; + a16 = 7; + a7 = 1; + a1 = 14; + a0 = 1; + a20 = 1; + a5 = 5; + return -1; + } else if(((((a3==1)&&((!(a24==1)&&((a17==2)&&((a1==13)&&(!(a24==1)&&(a11==1)))))&&!(a26==1)))&&!(a8==1))&&(!(a0==1)&&(((a16==7)&&((a20==1)&&((a19==4)&&((input==5)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))))))&&(a21==12))))){ + a12 = 1; + a9 = 11; + a19 = 2; + a21 = 11; + a24 = 0; + a16 = 9; + a14 = 0; + a5 = 6; + return 22; + } else if(((!(a20==1)&&((a5==5)&&(((a1==12)&&((!(a27==1)&&(!(a8==1)&&(((a9==8)&&(input==3))&&!(a27==1))))&&(a17==2)))&&(a11==1))))&&(((a16==8)&&(!(a24==1)&&((a7==1)||((a23==1)&&(a21==12)))))&&(a19==3)))){ + a13 = 0; + a19 = 1; + a20 = 1; + a16 = 7; + a6 = 0; + a24 = 1; + a5 = 6; + a21 = 10; + a9 = 9; + a1 = 13; + return -1; + } else if(((((!(a12==1)&&((((((a16==10)&&((a24==1)&&(((a11==1)&&(a1==12))&&(a19==1))))&&!(a23==1))&&(a17==2))&&(a21==11))&&(a20==1)))&&(a0==1))&&(a7==1))&&(((a9==10)&&((input==6)&&((a5==4)||(a5==5))))&&(a14==1)))){ + a16 = 8; + a5 = 5; + a19 = 2; + a21 = 10; + a10 = 0; + a27 = 1; + a1 = 14; + return 26; + } else if(((((a0==1)||(!(a8==1)&&(!(a20==1)&&(!(a28==1)||(((a12==1)&&(a16==7))&&(a1==12))))))||!(a12==1))&&((((a9==9)&&(((((input==5)&&(a19==1))&&(a21==10))&&(a5==4))&&(a3==1)))&&(a17==2))&&(a13==1)))){ + a9 = 7; + a12 = 1; + a7 = 0; + a23 = 1; + a20 = 1; + return -1; + } else if((((a23==1)&&((((a3==1)&&((a21==12)&&(((a6==1)&&(((input==3)&&(a19==3))&&(a23==1)))&&(a17==2))))&&!(a20==1))&&(a13==1)))&&((((a23==1)&&(((a28==1)&&(a1==14))&&(a9==8)))&&(a5==4))&&(a16==8)))){ + a19 = 1; + a11 = 0; + a27 = 1; + a5 = 6; + a21 = 10; + a23 = 0; + a16 = 7; + a20 = 1; + a9 = 10; + return 21; + } else if((((a16==7)&&((((!(a7==1)&&(a3==1))||(a7==1))&&!(a20==1))||(a0==1)))&&(((a21==12)&&((a12==1)&&(!(a27==1)&&(((a17==2)&&(((input==6)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&(a6==1)))&&(a1==14)))))&&(a19==4)))){ + a19 = 1; + a20 = 1; + a6 = 1; + a21 = 11; + a9 = 8; + a5 = 6; + a1 = 13; + a7 = 0; + a16 = 8; + return -1; + } else if(((((!(a0==1)&&((a17==2)&&((a12==1)&&((a11==1)&&((input==6)&&((((a1==14)&&(a5==4))&&(a9==7))||((((a1==13)&&(a5==5))&&(a9==11))||(((a5==6)&&(a1==13))&&(a9==11)))))))))&&!(a20==1))&&(a13==1))&&(((a16==10)&&((a18==1)||(!(a24==1)&&((a19==2)&&(a23==1)))))&&(a21==12)))){ + a16 = 7; + a5 = 6; + a6 = 0; + a20 = 1; + a9 = 9; + a21 = 10; + a25 = 1; + a19 = 1; + a3 = 0; + a1 = 13; + return 25; + } else if((((a7==1)||((!(a6==1)||((a13==1)&&(((a6==1)&&!(a20==1))||!(a23==1))))&&(a16==9)))&&(((a19==4)&&((a28==1)&&((((a17==2)&&((a9==11)&&((input==6)&&((a5==4)||(a5==5)))))&&(a13==1))&&(a1==12))))&&(a21==10)))){ + a5 = 6; + a9 = 8; + a21 = 12; + a22 = 0; + a27 = 1; + a8 = 1; + a19 = 2; + return -1; + } else if((((a20==1)&&((((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==3))||(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==4)))&&(input==6))&&!(a27==1)))&&(((((a4==1)||((((a16==11)&&(!(a7==1)&&(a23==1)))&&!(a26==1))&&!(a18==1)))&&(a11==1))&&(a17==2))&&(a21==12)))){ + a16 = 7; + a24 = 0; + a1 = 12; + a5 = 4; + a28 = 1; + a14 = 0; + a9 = 7; + a21 = 10; + a19 = 1; + return -1; + } else if((((a19==5)&&(((((input==6)&&((a5==4)||(a5==5)))&&!(a0==1))&&(a9==9))&&!(a18==1)))&&((!(a13==1)||((a3==1)&&(((a1==12)&&(((((a12==1)&&(a20==1))||!(a13==1))&&(a16==9))&&!(a0==1)))&&(a21==12))))&&(a17==2)))){ + a16 = 7; + a21 = 10; + a9 = 7; + a18 = 0; + a19 = 1; + a5 = 4; + a2 = 1; + a23 = 1; + return -1; + } else if((((((a1==12)&&(!(a4==1)&&(((a3==1)||(a7==1))||(a24==1))))&&(a3==1))&&(a20==1))&&(((a9==10)&&(!(a18==1)&&(((a21==12)&&(!(a8==1)&&(((a5==4)&&(input==3))&&(a16==10))))&&(a19==3))))&&(a17==2)))){ + a19 = 1; + a7 = 0; + a16 = 7; + a9 = 7; + a21 = 10; + a24 = 0; + return -1; + } else if((((a16==7)&&((a21==11)&&(!(a20==1)&&((a7==1)||((a17==2)&&((!(a6==1)||((a4==1)||(a6==1)))&&!(a14==1)))))))&&(((((a3==1)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==4)))&&(a19==3))&&!(a8==1))&&(a1==14)))){ + a1 = 12; + a19 = 1; + a9 = 7; + a20 = 1; + a28 = 1; + a6 = 1; + a14 = 0; + a5 = 4; + a21 = 10; + return -1; + } else if(((!(a27==1)&&((a13==1)&&((a6==1)&&((a16==9)&&(a3==1)))))&&(!(a8==1)&&((a6==1)&&(((((((input==5)&&((((a1==13)&&(a5==6))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==14)))))&&(a19==1))&&!(a20==1))&&(a17==2))&&(a21==10))&&(a12==1)))))){ + if((a13==1)){ + a9 = 10; + a20 = 1; + a29 = 1; + a5 = 6; + a1 = 14; + a26 = 1; + }else{ + a5 = 4; + a16 = 7; + a19 = 2; + a9 = 11; + a18 = 1; + a8 = 1; + a1 = 12; + a24 = 1; + a20 = 1; + } + return 22; + } else if(((!(a24==1)&&(((a1==14)&&((!(a11==1)||(((a18==1)||(a3==1))&&!(a20==1)))&&(a16==7)))&&(a19==4)))&&(((((a9==10)&&((a2==1)&&((a2==1)&&(((a5==4)||(a5==5))&&(input==5)))))&&!(a4==1))&&(a17==2))&&(a21==11)))){ + a5 = 4; + a20 = 1; + a21 = 10; + a24 = 0; + a19 = 1; + a7 = 0; + a1 = 12; + a9 = 7; + return -1; + } else if((((a24==1)||(((a1==14)&&(!(a26==1)&&((a21==10)&&(!(a28==1)||(((a12==1)&&(a3==1))&&(a19==2))))))&&(a20==1)))&&(((((a16==8)&&((a17==2)&&((input==4)&&((a5==5)||(a5==6)))))&&!(a26==1))&&(a28==1))&&(a9==7)))){ + a27 = 0; + a16 = 7; + a23 = 1; + a28 = 1; + a1 = 12; + a5 = 4; + a19 = 1; + return -1; + } else if(((!(a12==1)||(((a17==2)&&((((a3==1)&&!(a14==1))&&(a16==9))&&(a1==12)))||!(a12==1)))&&((a20==1)&&(((a2==1)&&(((a12==1)&&(((((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))&&(input==3))&&(a19==4)))&&(a23==1)))&&(a21==11))))){ + a9 = 7; + a16 = 7; + a13 = 1; + a27 = 0; + a21 = 10; + a19 = 1; + a6 = 1; + a5 = 4; + return -1; + } else if(((!(a20==1)&&((a17==2)&&(((!(a0==1)&&(((a3==1)&&!(a7==1))&&(a9==8)))||(a24==1))||(a24==1))))&&((a19==1)&&(((((a1==13)&&(!(a26==1)&&(((a5==4)||(a5==5))&&(input==3))))&&(a16==10))&&(a21==11))&&(a23==1))))){ + if((a17==4)){ + a8 = 1; + a15 = 1; + a16 = 7; + a1 = 14; + a22 = 0; + a19 = 2; + a9 = 11; + a5 = 4; + a20 = 1; + }else{ + a29 = 1; + a15 = 0; + a5 = 5; + a21 = 10; + a9 = 10; + a1 = 14; + a19 = 3; + a22 = 0; + } + return 25; + } else if(((((a19==4)&&(((a17==2)&&((a27==1)&&(!(a28==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))))&&(a20==1)))&&(a9==7))&&(((a1==14)&&((a21==12)&&(!(a6==1)&&((!(a28==1)&&((a28==1)&&(a7==1)))&&(a27==1)))))&&(a16==10)))){ + a2 = 0; + a21 = 10; + a9 = 10; + a5 = 5; + a19 = 1; + a16 = 7; + a18 = 1; + a25 = 0; + return -1; + } else if((((((a1==13)&&((!(a7==1)&&((a7==1)||(((((a24==1)||(a11==1))&&(a19==1))||(a8==1))&&(a13==1))))&&(a21==12)))&&(a17==2))&&(a16==9))&&(!(a20==1)&&((a12==1)&&((input==6)&&(((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))))))){ + a23 = 0; + a25 = 0; + a10 = 0; + a9 = 9; + a1 = 14; + a20 = 1; + a5 = 4; + a19 = 4; + a16 = 10; + a21 = 10; + return -1; + } else if((((a3==1)&&((a9==8)&&((a20==1)&&((a16==8)&&((!(a14==1)&&((a17==2)&&(((a23==1)&&((a11==1)&&((a19==1)&&(input==3))))&&(a21==10))))&&(a5==5))))))&&(!(a26==1)&&(((a11==1)&&(a1==12))&&(a11==1))))){ + a9 = 7; + a3 = 1; + a16 = 7; + a5 = 4; + a0 = 0; + a24 = 0; + return -1; + } else if(((((a0==1)||(!(a20==1)&&(((a9==9)&&((a23==1)||(a8==1)))&&(a2==1))))&&(a19==5))&&(((((a16==9)&&((a1==12)&&(((a3==1)&&((input==1)&&((a5==4)||(a5==5))))&&(a17==2))))&&(a23==1))&&!(a24==1))&&(a21==12)))){ + a16 = 7; + a19 = 1; + a26 = 1; + a20 = 1; + a9 = 8; + a1 = 14; + a21 = 10; + a10 = 0; + a14 = 1; + a5 = 5; + return 21; + } else if((((a20==1)&&((((!(a26==1)&&(a23==1))&&!(a7==1))&&(a13==1))&&!(a7==1)))&&((a16==11)&&(!(a14==1)&&((a1==13)&&((a17==2)&&((a19==4)&&((((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==5))&&!(a18==1))&&(a21==12))))))))){ + a5 = 4; + a21 = 10; + a1 = 12; + a9 = 7; + a6 = 1; + a16 = 7; + a14 = 0; + a19 = 1; + return -1; + } else if(((((a14==1)||((a21==12)&&((!(a20==1)&&(((a12==1)&&(a12==1))&&(a19==1)))&&(a17==2))))||(a26==1))&&(((a1==12)&&(!(a24==1)&&((a13==1)&&(((a5==4)&&((a9==7)&&(input==3)))&&(a16==10)))))&&(a28==1)))){ + a21 = 10; + a11 = 0; + a16 = 7; + a19 = 2; + a8 = 1; + a13 = 0; + a20 = 1; + a1 = 13; + return -1; + } else if((((!(a11==1)||((a21==12)&&((a17==2)&&(!(a14==1)&&((a19==5)&&((a16==9)&&((a13==1)||!(a23==1))))))))&&!(a7==1))&&((!(a4==1)&&(!(a24==1)&&((input==5)&&((((a5==6)&&(a1==13))&&(a9==11))||(((a5==4)&&(a1==14))&&(a9==7))))))&&!(a20==1)))){ + a29 = 1; + a19 = 1; + a1 = 12; + a20 = 1; + a9 = 10; + a12 = 0; + a13 = 0; + a16 = 7; + a5 = 4; + return -1; + } else if((((a19==1)&&((((a21==11)&&((a0==1)&&(((a26==1)&&(!(a6==1)&&((input==1)&&((a5==5)||(a5==6)))))&&(a9==8))))&&(a0==1))&&(a16==8)))&&(((((a1==12)&&((a3==1)&&!(a20==1)))&&(a8==1))&&!(a11==1))&&(a17==2)))){ + a16 = 7; + a23 = 0; + a25 = 0; + a9 = 11; + a5 = 5; + a21 = 10; + a1 = 14; + a6 = 0; + a20 = 1; + return -1; + } else if((((!(a0==1)&&(a6==1))&&(a16==8))&&(((a6==1)&&((!(a0==1)&&((a21==12)&&((a19==2)&&(!(a27==1)&&((a1==12)&&(((a9==8)&&(!(a26==1)&&(!(a20==1)&&(input==5))))&&(a17==2)))))))&&(a23==1)))&&(a5==5)))){ + if((a0==1)){ + a18 = 1; + a1 = 14; + a21 = 10; + a5 = 4; + a26 = 1; + a13 = 0; + a9 = 9; + a16 = 7; + a19 = 1; + a20 = 1; + }else{ + a19 = 1; + a21 = 10; + a23 = 0; + a16 = 7; + a2 = 0; + a5 = 4; + a24 = 1; + a20 = 1; + a1 = 13; + } + return -1; + } else if((((a17==2)&&(((a20==1)&&(((((a1==14)&&(!(a4==1)&&(a23==1)))&&(a11==1))||!(a13==1))&&!(a7==1)))&&(a19==1)))&&(((a21==10)&&((((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==4))&&(a16==8))&&!(a27==1)))&&(a3==1)))){ + a14 = 0; + a9 = 7; + a5 = 4; + a1 = 12; + a23 = 1; + a16 = 7; + a6 = 1; + return -1; + } else if((((a16==7)&&((a1==13)&&((((a28==1)&&(((((input==5)&&(((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))))&&(a13==1))&&(a13==1))&&!(a27==1)))&&(a19==3))&&(a17==2))))&&(((a20==1)&&(((a3==1)&&(a3==1))&&(a28==1)))&&(a21==11)))){ + a1 = 12; + a21 = 10; + a8 = 0; + a20 = 0; + a28 = 1; + a19 = 2; + a5 = 4; + a14 = 0; + a9 = 8; + a16 = 8; + return 21; + } else if((((a24==1)||(((a20==1)&&((a28==1)&&((a11==1)&&(a21==12))))||!(a6==1)))&&((a3==1)&&((a28==1)&&(((a19==5)&&((a17==2)&&((((a16==7)&&((input==6)&&(a1==14)))&&(a9==9))&&(a5==5))))&&!(a8==1)))))){ + a16 = 9; + a1 = 13; + a6 = 1; + a11 = 1; + a13 = 1; + a5 = 4; + a19 = 1; + return 21; + } else if((((((a27==1)||((a21==12)&&((a9==7)&&((a17==2)&&(a12==1)))))&&(a20==1))||!(a12==1))&&(!(a14==1)&&((((((a23==1)&&((((a5==4)||(a5==5))&&(input==5))&&!(a8==1)))&&(a1==14))&&(a16==7))&&(a19==3))&&!(a24==1))))){ + a19 = 5; + a18 = 0; + a13 = 1; + a27 = 0; + a21 = 10; + a9 = 8; + a5 = 5; + a16 = 9; + return 23; + } else if((((((a1==14)&&((((a19==1)&&(a13==1))&&(a21==12))&&(a16==11)))||(a14==1))&&(a17==2))&&(((a6==1)&&((a11==1)&&(!(a18==1)&&(((a20==1)&&(!(a26==1)&&(((a5==4)||(a5==5))&&(input==5))))&&(a3==1)))))&&(a9==8)))){ + a9 = 7; + a16 = 7; + a1 = 12; + a11 = 1; + a21 = 10; + a5 = 4; + a13 = 1; + a24 = 0; + return -1; + } else if((((!(a20==1)&&((a12==1)&&(((a5==4)&&(a13==1))&&(a21==10))))&&(a16==7))&&((a9==8)&&((a12==1)&&((a2==1)&&(!(a14==1)&&((((a19==5)&&((a28==1)&&((a1==14)&&(input==4))))&&(a17==2))&&(a2==1)))))))){ + a18 = 0; + a19 = 1; + a1 = 12; + a0 = 0; + a9 = 7; + a20 = 1; + a24 = 0; + return -1; + } else if(((!(a14==1)&&(!(a28==1)||(((a6==1)&&((a12==1)&&(a1==13)))&&(a9==11))))&&((a23==1)&&(((a11==1)&&(((((((input==6)&&(a16==11))&&(a20==1))&&(a19==5))&&(a5==4))&&(a17==2))&&(a13==1)))&&(a21==12))))){ + a2 = 1; + a1 = 12; + a18 = 0; + a16 = 7; + a21 = 10; + a14 = 0; + a19 = 1; + a9 = 7; + return -1; + } else if((((((a1==13)&&(((a16==8)&&((a20==1)&&(!(a18==1)&&((a13==1)&&((a5==5)&&(input==4))))))&&(a19==3)))&&(a17==2))&&(a21==11))&&(!(a14==1)&&((((a18==1)||((a23==1)&&(a28==1)))&&(a9==9))&&(a2==1))))){ + a18 = 0; + a27 = 0; + a21 = 10; + a5 = 4; + a28 = 1; + a1 = 12; + a19 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if((((((a23==1)&&(((((a1==13)&&((input==5)&&((a5==5)||(a5==6))))&&!(a20==1))&&!(a14==1))&&!(a27==1)))&&(a16==7))&&(a17==2))&&(((a21==10)&&(!(a6==1)||(!(a28==1)||(((a12==1)&&!(a27==1))&&(a9==10)))))&&(a19==5)))){ + a19 = 2; + a5 = 4; + a14 = 0; + a20 = 1; + a16 = 8; + a0 = 0; + a8 = 0; + a21 = 12; + return 22; + } else if(((!(a18==1)&&(((a27==1)||((a16==11)&&(a13==1)))&&(a20==1)))&&((a11==1)&&(!(a4==1)&&(((a21==12)&&((((((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==6))&&!(a27==1))&&(a17==2))&&(a19==4))&&(a1==12)))&&(a6==1)))))){ + if((a10==1)){ + a1 = 14; + a21 = 10; + a11 = 1; + a5 = 6; + a6 = 1; + a20 = 0; + a23 = 1; + a19 = 2; + a9 = 10; + a16 = 8; + }else{ + a9 = 8; + a16 = 10; + a5 = 5; + a27 = 0; + a21 = 10; + a13 = 1; + a19 = 3; + a1 = 14; + } + return 21; + } else if((((a17==2)&&((a16==7)&&(!(a4==1)&&(!(a7==1)&&(((input==3)&&(a20==1))&&(a6==1))))))&&(((a1==12)&&((a2==1)&&(((!(a3==1)||((a3==1)&&((a9==11)&&(a11==1))))&&(a19==5))&&(a21==10))))&&(a5==4)))){ + a19 = 1; + a4 = 0; + a9 = 7; + a28 = 1; + a2 = 1; + return -1; + } else if(((((((((a2==1)||!(a2==1))&&(a19==1))&&(a1==13))&&(a21==12))&&(a28==1))&&!(a0==1))&&((a13==1)&&((a2==1)&&((a16==8)&&((((a6==1)&&((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==4)))&&(a17==2))&&(a20==1))))))){ + a11 = 1; + a21 = 10; + a1 = 12; + a9 = 7; + a13 = 1; + a5 = 4; + a23 = 1; + a16 = 7; + return -1; + } else if(((((((a19==3)&&((a9==9)&&((((input==4)&&(a17==2))&&!(a23==1))&&!(a6==1))))&&(a20==1))&&(a16==10))&&(a5==4))&&((((!(a6==1)&&(((a8==1)&&(a28==1))&&!(a6==1)))&&!(a2==1))&&(a1==14))&&(a21==12)))){ + a9 = 8; + a16 = 7; + a22 = 0; + a19 = 2; + a1 = 12; + a25 = 0; + a11 = 0; + a20 = 0; + return -1; + } else if(((((a17==2)&&(((((((a5==4)||(a5==5))&&(input==6))&&(a19==3))&&(a11==1))&&(a12==1))&&(a21==12)))&&(a9==7))&&(!(a20==1)&&((a1==12)&&((((a11==1)&&((!(a12==1)||(a13==1))&&(a16==9)))&&(a12==1))||!(a23==1)))))){ + if((a10==1)){ + a11 = 0; + a16 = 7; + a21 = 11; + a9 = 10; + a19 = 2; + a5 = 4; + a6 = 0; + a18 = 1; + }else{ + a6 = 0; + a21 = 10; + a16 = 7; + a20 = 1; + a5 = 4; + a25 = 0; + a12 = 0; + } + return 23; + } else if(((((((!(a28==1)||(!(a24==1)&&(a6==1)))||!(a3==1))&&(a16==9))&&!(a8==1))&&(a1==14))&&((((a19==3)&&(((((((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6))))&&(input==6))&&(a17==2))&&!(a4==1))&&(a11==1)))&&(a21==11))&&!(a20==1)))){ + a21 = 10; + a9 = 8; + a7 = 1; + a14 = 1; + a2 = 0; + a1 = 12; + a5 = 4; + return -1; + } else if((((!(a7==1)&&(!(a4==1)&&(((a16==7)&&((a2==1)&&(((((a17==2)&&((input==3)&&((a5==4)||(a5==5))))&&(a21==12))&&(a9==8))&&(a19==5))))&&(a28==1))))&&(a1==14))&&(((a12==1)&&(!(a20==1)&&(a23==1)))||(a27==1)))){ + a21 = 10; + a20 = 1; + a9 = 7; + a1 = 12; + a2 = 1; + a19 = 1; + a5 = 4; + a3 = 1; + a0 = 0; + return -1; + } else if((((a17==2)&&((a20==1)&&((a0==1)||((!(a14==1)&&((a1==13)&&(!(a12==1)||(a23==1))))&&(a13==1)))))&&((a9==8)&&((((a2==1)&&(((a16==10)&&(((a5==4)||(a5==5))&&(input==4)))&&(a19==2)))&&(a3==1))&&(a21==12))))){ + if((a26==1)){ + a5 = 4; + a20 = 0; + a7 = 0; + a19 = 3; + a16 = 8; + a3 = 1; + a9 = 7; + a26 = 0; + a21 = 10; + }else{ + a13 = 1; + a21 = 10; + a5 = 4; + a1 = 14; + a16 = 7; + a9 = 7; + a19 = 4; + a24 = 0; + } + return 25; + } else if((((a26==1)&&((a27==1)&&((a18==1)&&((a9==10)&&(a12==1)))))&&((a21==11)&&((a1==12)&&((a19==4)&&((a17==2)&&((a20==1)&&(((a16==9)&&((a24==1)&&(((a5==6)&&(input==6))&&!(a28==1))))&&(a26==1))))))))){ + a27 = 1; + a16 = 7; + a9 = 7; + a21 = 10; + a22 = 0; + a1 = 13; + a19 = 5; + a7 = 1; + return 25; + } else if((((((a19==2)&&(((a5==5)&&(input==6))&&(a1==13)))&&(a28==1))&&(a6==1))&&((!(a4==1)&&((!(a24==1)&&(!(a27==1)&&(((a21==10)&&((a17==2)&&((a3==1)&&(a20==1))))&&(a9==11))))&&(a16==7)))&&!(a8==1)))){ + a9 = 7; + a1 = 12; + a6 = 1; + a5 = 4; + a13 = 1; + a2 = 1; + a19 = 1; + return -1; + } else if(((((a20==1)&&(((((!(a2==1)&&((a17==2)&&((a19==2)&&((input==5)&&((a5==6)||((a5==4)||(a5==5)))))))&&(a24==1))&&(a24==1))&&(a27==1))&&(a9==11)))&&(a1==14))&&((a16==7)&&((a21==10)&&(((a11==1)&&!(a28==1))&&(a0==1)))))){ + a13 = 0; + a1 = 12; + a27 = 1; + a5 = 4; + a20 = 0; + a15 = 1; + a9 = 8; + a16 = 8; + return -1; + } else if(((!(a26==1)&&(((a17==2)&&((a19==4)&&(!(a20==1)&&(a12==1))))||(a0==1)))&&(((a16==7)&&(!(a24==1)&&(((((((a21==11)&&(input==5))&&(a1==12))&&(a23==1))&&(a5==4))&&!(a24==1))&&(a9==7))))&&!(a24==1)))){ + a7 = 0; + a19 = 1; + a0 = 0; + a20 = 1; + a21 = 10; + a6 = 1; + return -1; + } else if((((a1==13)&&((((a11==1)&&((a17==2)&&(input==6)))&&(a2==1))&&(a9==10)))&&((((((a3==1)&&((a5==5)&&((a6==1)&&(!(a23==1)||((a12==1)&&(a13==1))))))&&(a19==1))&&(a21==10))&&(a16==10))&&(a20==1)))){ + a24 = 0; + a26 = 0; + a19 = 5; + a12 = 1; + a1 = 12; + a16 = 11; + a5 = 4; + return 26; + } else if(((((a19==2)&&(((((((a11==1)&&(a3==1))&&!(a20==1))&&(a16==8))||(a26==1))&&!(a0==1))&&!(a4==1)))&&(a17==2))&&((((((input==6)&&(((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))))&&!(a27==1))&&!(a4==1))&&(a21==11))&&(a1==14)))){ + a28 = 1; + a0 = 0; + a1 = 12; + a16 = 9; + a20 = 1; + a21 = 12; + a9 = 9; + a27 = 0; + a5 = 6; + a19 = 3; + return 21; + } else if((((!(a4==1)&&(((a6==1)&&((a2==1)&&((a1==13)&&(((a21==11)&&(input==5))&&(a5==4)))))&&!(a8==1)))&&(a17==2))&&(((a16==10)&&((a20==1)&&((a19==5)&&(((a11==1)||!(a11==1))||(a26==1)))))&&(a9==9)))){ + a12 = 1; + a6 = 1; + a19 = 2; + a16 = 7; + a2 = 1; + a21 = 10; + return 25; + } else if((((((a16==9)&&(((a19==2)&&((a23==1)&&!(a4==1)))&&(a20==1)))||!(a3==1))&&(a9==11))&&((a12==1)&&((((((((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a11==1))&&(a21==12))&&!(a14==1))&&(a6==1))&&(a17==2))&&(a1==12))))){ + a21 = 10; + a5 = 4; + a14 = 0; + a19 = 1; + a9 = 7; + a16 = 7; + a7 = 0; + return -1; + } else if(((((a20==1)&&((a17==2)&&(((!(a4==1)&&((a9==7)&&(a11==1)))&&(a12==1))&&(a21==11))))&&!(a7==1))&&(!(a14==1)&&((a5==4)&&((a16==7)&&((!(a4==1)&&((a11==1)&&((input==6)&&(a1==14))))&&(a19==3))))))){ + a9 = 9; + a19 = 2; + a16 = 8; + a1 = 12; + a27 = 0; + a3 = 1; + return 25; + } else if((((a6==1)&&((((((a19==3)&&(!(a8==1)&&(((input==1)&&(a16==9))&&!(a18==1))))&&!(a24==1))&&(a17==2))&&(a9==7))&&(a5==4)))&&((a21==11)&&((!(a26==1)&&(!(a27==1)&&((a13==1)&&(a1==13))))&&(a20==1))))){ + a5 = 6; + a6 = 1; + a19 = 5; + a1 = 12; + a3 = 1; + a16 = 8; + a21 = 12; + a14 = 0; + return 22; + } else if(((((((a27==1)||((a16==9)&&(a28==1)))&&(a19==5))||!(a3==1))||!(a23==1))&&((((a17==2)&&((a1==13)&&((a23==1)&&((((input==4)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&!(a20==1))&&(a21==11)))))&&!(a4==1))&&(a28==1)))){ + a5 = 6; + a18 = 1; + a19 = 2; + a20 = 1; + a3 = 0; + a9 = 9; + a16 = 7; + a21 = 10; + a14 = 1; + a1 = 12; + return -1; + } else if(((((!(a7==1)&&((!(a7==1)&&(((a13==1)&&((a17==2)&&(input==4)))&&!(a14==1)))&&(a5==6)))&&!(a20==1))&&(a21==12))&&(((a9==10)&&(((((a2==1)&&(a16==7))||(a8==1))&&(a1==13))&&!(a24==1)))&&(a19==3)))){ + a8 = 0; + a20 = 1; + a19 = 1; + a9 = 7; + a13 = 1; + a1 = 12; + a5 = 4; + a21 = 10; + return -1; + } else if(((!(a24==1)&&(((((input==5)&&(a5==5))&&(a9==11))&&(a28==1))&&!(a27==1)))&&((a6==1)&&((a14==1)||(((a3==1)&&(((a20==1)&&((a16==7)&&(((a3==1)&&(a21==10))&&(a17==2))))&&(a19==2)))&&(a1==13)))))){ + a1 = 14; + a6 = 1; + a19 = 3; + a14 = 0; + a8 = 0; + return 22; + } else if((((a23==1)&&((a6==1)&&((a16==11)&&((a1==12)&&((a20==1)&&(((((a13==1)&&((a19==1)&&(input==5)))&&(a9==10))&&(a17==2))&&(a5==4)))))))&&(((((a28==1)&&(a21==10))||(a27==1))||(a27==1))&&!(a0==1)))){ + a21 = 11; + a18 = 0; + a2 = 1; + a1 = 14; + a5 = 5; + a27 = 0; + return 23; + } else if((((a19==1)&&(((!(a8==1)&&((a2==1)&&((((a21==12)&&((input==1)&&(((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))))&&(a16==11))&&(a17==2))))&&(a20==1))&&(a1==14)))&&(!(a4==1)&&((((a2==1)||(a14==1))&&(a6==1))||(a14==1))))){ + if((a18==1)){ + a9 = 10; + a1 = 12; + a16 = 8; + a19 = 5; + a5 = 4; + a12 = 1; + a7 = 0; + a21 = 11; + a14 = 0; + a20 = 0; + }else{ + a16 = 10; + a9 = 11; + a5 = 5; + a14 = 0; + a4 = 0; + a21 = 10; + a7 = 0; + a1 = 13; + } + return 21; + } else if((((a7==1)||((a7==1)||(!(a3==1)||(((!(a18==1)&&((a1==13)&&(a23==1)))&&(a20==1))&&(a21==11)))))&&(!(a7==1)&&(((a16==8)&&((a19==1)&&(!(a27==1)&&(((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&(a17==2)))))&&(a9==10))))){ + a5 = 4; + a19 = 5; + a8 = 0; + a4 = 0; + a28 = 1; + a21 = 10; + a9 = 9; + a1 = 12; + return -1; + } else if((((a16==10)&&((((((((a3==1)&&(a12==1))&&(a19==3))&&!(a7==1))||!(a13==1))&&(a11==1))&&(a17==2))&&(a21==10)))&&((a3==1)&&((a1==14)&&(((((input==5)&&((a5==5)||(a5==6)))&&(a20==1))&&(a11==1))&&(a9==8)))))){ + a1 = 12; + a16 = 7; + a9 = 7; + a5 = 4; + a13 = 1; + a19 = 1; + a7 = 0; + return -1; + } else if(((((!(a8==1)&&((a23==1)&&(!(a8==1)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==4)))))&&(a17==2))&&(a16==10))&&((a21==11)&&(!(a20==1)&&(((!(a28==1)||((a1==14)&&((a27==1)||(a3==1))))&&!(a26==1))&&(a19==2)))))){ + if((a29==1)){ + a9 = 7; + a7 = 1; + a5 = 6; + a1 = 12; + a25 = 0; + a19 = 1; + a24 = 1; + a21 = 10; + a16 = 11; + }else{ + a19 = 3; + a13 = 0; + a9 = 10; + a5 = 4; + a22 = 1; + a16 = 7; + a8 = 1; + } + return -1; + } else if((((((a1==12)&&((a21==10)&&((a24==1)||(!(a12==1)||((a9==9)&&((a5==5)&&(a23==1)))))))||(a14==1))||(a8==1))&&(!(a27==1)&&(!(a20==1)&&((((a16==7)&&((a17==2)&&(input==6)))&&(a19==5))&&!(a27==1)))))){ + a18 = 0; + a6 = 1; + a27 = 0; + a19 = 2; + a20 = 1; + return -1; + } else if((((a11==1)&&(((a17==2)&&(!(a20==1)&&(((a16==9)&&(((((((a5==5)&&(a1==14))&&(a9==11))&&(a19==1))||((((a1==14)&&(a5==6))&&(a9==11))&&(a19==1)))||((a19==2)&&(((a1==12)&&(a5==4))&&(a9==7))))&&(input==3)))&&(a13==1))))&&(a3==1)))&&(!(a14==1)&&((((a11==1)&&(a13==1))&&(a21==12))&&!(a4==1))))){ + a2 = 0; + a21 = 10; + a5 = 5; + a16 = 7; + a28 = 0; + a1 = 13; + a9 = 8; + a20 = 1; + a19 = 1; + return -1; + } else if(((((a9==11)&&(!(a23==1)&&((a17==2)&&((a19==2)&&((a14==1)&&((a21==12)&&(a23==1)))))))&&(a16==8))&&((a8==1)&&((a24==1)&&((a1==14)&&(((((a5==4)&&(input==3))&&!(a2==1))&&(a20==1))&&(a26==1))))))){ + a7 = 1; + a19 = 1; + a25 = 0; + a0 = 1; + a16 = 9; + a9 = 8; + return -1; + } else if(((((a21==11)&&((((a9==11)&&(((a6==1)||!(a11==1))&&(a6==1)))&&(a20==1))&&(a16==8)))||!(a2==1))&&(!(a4==1)&&(((a19==3)&&(!(a7==1)&&((((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&(a28==1))&&(a17==2))))&&(a1==14))))){ + a19 = 5; + a6 = 1; + a9 = 9; + a12 = 1; + a5 = 5; + a2 = 1; + a21 = 12; + return 26; + } else if((((a9==11)&&(!(a2==1)||(((((a11==1)&&(a16==8))&&!(a18==1))&&(a13==1))&&!(a18==1))))&&(((a20==1)&&((a19==5)&&((!(a0==1)&&((((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a17==2))&&!(a7==1)))&&(a1==13))))&&(a21==12)))){ + a4 = 0; + a19 = 2; + a21 = 11; + a7 = 0; + a5 = 5; + a9 = 10; + a1 = 14; + return -1; + } else if((((a19==2)&&((a21==12)&&(((a16==9)&&((a28==1)&&!(a4==1)))&&(a20==1))))&&(((a17==2)&&((a1==14)&&((a6==1)&&(((((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==3))&&!(a4==1))&&(a2==1))&&(a28==1)))))&&!(a14==1)))){ + a5 = 4; + a1 = 12; + a19 = 1; + a21 = 10; + a16 = 7; + a23 = 1; + a7 = 0; + a11 = 1; + a9 = 7; + return -1; + } else if((((a1==12)&&((a9==11)&&(((a8==1)||(((((a12==1)&&(a16==11))&&!(a7==1))&&(a17==2))&&(a2==1)))||!(a23==1))))&&(((((a19==5)&&(((input==4)&&((a5==4)||(a5==5)))&&(a28==1)))&&!(a7==1))&&(a20==1))&&(a21==10)))){ + a19 = 1; + a16 = 7; + a9 = 7; + a27 = 0; + a14 = 0; + a5 = 4; + a18 = 0; + return -1; + } else if(((((((((a19==5)&&((a6==1)&&(a11==1)))&&(a21==12))||(a14==1))&&(a1==14))&&!(a26==1))||!(a11==1))&&(((((a9==9)&&((!(a27==1)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6))))&&!(a20==1)))&&(a17==2))&&(a16==7))&&(a3==1)))){ + a19 = 1; + a13 = 1; + a20 = 1; + a1 = 12; + a12 = 1; + a9 = 7; + a5 = 4; + a21 = 10; + return -1; + } else if(((!(a20==1)&&((a16==8)&&((a21==12)&&((!(a24==1)&&((!(a8==1)&&((a6==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6))))&&!(a24==1)))&&(a9==11)))))&&((a17==2)&&((a1==13)&&((a19==3)&&(!(a3==1)||((a24==1)||(a12==1)))))))){ + a21 = 11; + a20 = 1; + a14 = 1; + a25 = 0; + a1 = 12; + a19 = 4; + a9 = 9; + a5 = 4; + a22 = 0; + a16 = 7; + return -1; + } else if((((a19==4)&&((a7==1)||(!(a4==1)&&((a1==13)&&((a21==10)&&((((a6==1)&&((a28==1)&&(a16==8)))&&(a9==11))&&(a17==2)))))))&&(!(a8==1)&&(((a6==1)&&(((input==3)&&(a5==6))&&(a20==1)))&&!(a27==1))))){ + a16 = 7; + a1 = 12; + a23 = 1; + a2 = 1; + a9 = 7; + a5 = 4; + a19 = 1; + return -1; + } else if((((a21==12)&&((a23==1)||(a4==1)))&&((!(a20==1)&&((a17==2)&&(((a11==1)&&((((a1==13)&&((a6==1)&&((((a16==9)&&(input==5))&&(a19==4))&&(a9==7))))&&(a5==5))&&(a13==1)))&&!(a4==1))))&&!(a0==1)))){ + if((a18==1)){ + a1 = 14; + a4 = 1; + a9 = 9; + a5 = 4; + a10 = 1; + a20 = 1; + a7 = 1; + a21 = 10; + a19 = 1; + a16 = 7; + }else{ + a15 = 1; + a16 = 10; + a1 = 14; + a21 = 10; + a19 = 5; + a22 = 0; + a7 = 1; + a5 = 6; + } + return -1; + } else if((((((!(a14==1)&&((a3==1)&&(((a11==1)&&((input==5)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))))&&(a20==1))))&&(a17==2))&&(a19==5))&&(a12==1))&&(!(a0==1)&&((((a21==11)&&((a16==10)&&(a2==1)))&&(a1==12))||!(a3==1))))){ + a5 = 4; + a1 = 13; + a12 = 1; + a14 = 0; + a9 = 9; + a16 = 7; + a23 = 1; + a19 = 2; + a21 = 10; + return 25; + } else if((((a1==13)&&(!(a0==1)&&(!(a2==1)||((a16==10)&&((a8==1)||((a14==1)||(a23==1)))))))&&((((a12==1)&&((a19==3)&&((a5==4)&&((((a20==1)&&(input==6))&&(a12==1))&&(a21==12)))))&&(a9==7))&&(a17==2)))){ + if((a14==1)){ + a13 = 1; + a1 = 12; + a6 = 1; + a9 = 10; + a20 = 0; + a19 = 5; + a16 = 8; + a21 = 10; + a7 = 0; + a5 = 6; + }else{ + a1 = 14; + a23 = 1; + a13 = 1; + a19 = 2; + a28 = 1; + a5 = 6; + a21 = 10; + a16 = 7; + a9 = 10; + } + return 21; + } else if((((a14==1)||((a21==10)&&((a17==2)&&(((((a0==1)||((a3==1)&&(a2==1)))&&(a5==6))&&(a9==7))||!(a28==1)))))&&(!(a20==1)&&(((a11==1)&&((((a16==7)&&(input==1))&&(a6==1))&&(a1==13)))&&(a19==1))))){ + a24 = 0; + a1 = 12; + a27 = 0; + a9 = 10; + a5 = 5; + a8 = 0; + a19 = 2; + return 25; + } else if((((((a19==1)&&(!(a0==1)&&((a21==10)&&((a3==1)&&((a16==8)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))))))&&!(a20==1))&&(a13==1))&&(((((a17==2)&&(!(a27==1)&&((a11==1)&&(a13==1))))&&!(a18==1))&&(a1==13))&&(a9==7)))){ + a23 = 1; + a12 = 1; + a11 = 1; + a5 = 4; + a16 = 7; + a20 = 1; + a1 = 12; + return -1; + } else if((((a17==2)&&((((((a16==7)&&(a3==1))&&(a28==1))&&(a19==3))&&!(a4==1))&&(a5==5)))&&(!(a20==1)&&((a21==11)&&((a9==11)&&(!(a7==1)&&(((!(a24==1)&&((input==5)&&(a1==14)))&&(a11==1))&&(a13==1)))))))){ + a20 = 1; + a5 = 4; + a9 = 10; + a12 = 1; + a21 = 10; + a11 = 1; + a16 = 10; + a18 = 0; + a1 = 12; + return 25; + } else if((((a1==13)&&(!(a18==1)&&((a21==11)&&((a17==2)&&((a6==1)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==5)))))))&&((!(a13==1)||((a16==9)&&(!(a20==1)&&(!(a13==1)||(!(a11==1)||(!(a23==1)||(a13==1)))))))&&(a19==5)))){ + a19 = 1; + a5 = 4; + a9 = 11; + a0 = 1; + a16 = 7; + a6 = 0; + a21 = 10; + a2 = 0; + a20 = 1; + return 23; + } else if((((a19==4)&&((((input==5)&&(((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))))&&!(a14==1))&&(a17==2)))&&((a16==8)&&(((a1==14)&&(!(a2==1)||(!(a28==1)||(((!(a12==1)||((a6==1)||!(a23==1)))&&(a20==1))||(a7==1)))))&&(a21==12))))){ + a24 = 0; + a12 = 1; + a1 = 12; + a5 = 4; + a16 = 7; + a9 = 7; + a21 = 10; + a19 = 1; + a2 = 1; + return -1; + } else if(((((a2==1)&&(((a1==14)&&(!(a0==1)&&(((a20==1)&&(a6==1))&&(a23==1))))&&(a17==2)))||(a14==1))&&((!(a26==1)&&(((a16==9)&&((a21==11)&&((input==6)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))))&&(a19==1)))&&(a6==1)))){ + a8 = 0; + a16 = 7; + a19 = 5; + a28 = 1; + a6 = 1; + a9 = 7; + a21 = 10; + a5 = 4; + return 25; + } else if((((a20==1)&&((a1==12)&&(((a19==3)&&(!(a26==1)&&(!(a0==1)&&((((a28==1)&&(((a5==4)||(a5==5))&&(input==5)))&&(a16==8))&&!(a8==1)))))&&(a21==12))))&&(((a7==1)||(((a17==2)&&(a3==1))||!(a23==1)))&&(a9==7)))){ + a4 = 0; + a8 = 0; + a9 = 9; + a19 = 2; + a16 = 10; + a5 = 4; + return 25; + } else if(((!(a13==1)||((((a19==3)&&((a16==7)&&(!(a27==1)&&(a11==1))))&&!(a20==1))||(a26==1)))&&(((a1==12)&&((a17==2)&&((a13==1)&&(((a21==11)&&((a9==11)&&(((a5==4)||(a5==5))&&(input==5))))&&!(a0==1)))))&&(a6==1)))){ + a9 = 9; + a21 = 10; + a14 = 0; + a12 = 1; + a5 = 5; + a6 = 1; + a20 = 1; + a19 = 2; + a1 = 13; + return 25; + } else if((((a16==11)&&((!(a11==1)||(!(a28==1)||((a17==2)&&((a7==1)||((a9==7)&&((a6==1)&&!(a26==1)))))))&&(a1==13)))&&(((((a12==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a21==10)))&&(a3==1))&&(a20==1))&&(a19==1)))){ + a5 = 4; + a1 = 12; + a26 = 0; + a27 = 0; + a21 = 11; + a9 = 8; + a16 = 9; + a4 = 0; + return 25; + } else if(((!(a11==1)||((a17==2)&&(((a23==1)&&(!(a0==1)&&((a1==12)&&(a11==1))))&&(a19==4))))&&((((a21==10)&&(!(a26==1)&&((((((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9))))&&(input==4))&&(a16==7))&&!(a20==1))))&&(a13==1))&&(a23==1)))){ + a8 = 0; + a13 = 1; + a20 = 1; + a19 = 1; + a5 = 4; + a9 = 7; + a0 = 0; + return -1; + } else if((((((a9==11)&&(((((a0==1)||(a6==1))||!(a3==1))||!(a11==1))&&(a20==1)))||(a8==1))&&(a23==1))&&((a17==2)&&(((a1==12)&&((a19==3)&&((a21==12)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&(a23==1)))))&&(a16==8))))){ + a9 = 10; + a23 = 1; + a1 = 13; + a16 = 10; + a2 = 1; + a19 = 2; + a24 = 0; + a5 = 6; + return 22; + } else if((((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&((a9==7)&&((!(a26==1)&&((a1==13)&&(((a0==1)||((a24==1)||(((a21==11)&&(((((a6==1)&&(a3==1))&&(a16==8))||(a0==1))&&(a19==5)))&&!(a8==1))))&&(a20==1))))&&(a17==2))))){ + a16 = 7; + a5 = 4; + a1 = 12; + a19 = 1; + a6 = 1; + a27 = 0; + a18 = 0; + a21 = 10; + return -1; + } else if((((((((a20==1)&&(((a16==10)&&(a6==1))&&(a21==12)))&&(a19==1))&&(a0==1))&&(a4==1))&&(a4==1))&&(((a26==1)&&((a0==1)&&((a17==2)&&((a1==13)&&((input==3)&&((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4))))))))&&!(a23==1)))){ + a5 = 6; + a21 = 10; + a19 = 5; + a9 = 11; + a20 = 0; + a11 = 0; + a26 = 1; + a1 = 12; + a16 = 7; + return 21; + } else if((((a27==1)||((a18==1)||((((a14==1)||((a3==1)&&(a20==1)))&&(a16==7))&&!(a26==1))))&&((a19==4)&&(((!(a27==1)&&((((a1==13)&&((input==4)&&(a5==6)))&&(a21==11))&&(a9==10)))&&(a17==2))&&!(a4==1))))){ + a6 = 1; + a19 = 1; + a9 = 7; + a1 = 12; + a21 = 10; + a5 = 4; + a24 = 0; + return -1; + } else if((((!(a20==1)&&(((((!(a18==1)&&(a28==1))&&(a16==8))&&(a2==1))||!(a2==1))&&(a9==8)))&&(a1==12))&&((a19==2)&&(((a5==4)&&(((a21==10)&&((a28==1)&&((a17==2)&&(input==6))))&&!(a27==1)))&&(a3==1))))){ + a8 = 0; + a20 = 1; + a14 = 0; + a19 = 1; + a16 = 7; + a9 = 7; + a6 = 1; + return -1; + } else if((((((a2==1)&&(((a5==5)||(a5==6))&&(input==4)))&&(a21==12))&&(a23==1))&&((a16==10)&&(((!(a18==1)&&((a3==1)&&((((a19==1)&&(((a2==1)&&(a1==14))&&(a17==2)))&&(a20==1))||(a7==1))))&&(a9==11))&&!(a26==1))))){ + a9 = 7; + a1 = 13; + a5 = 5; + a14 = 0; + a27 = 0; + a8 = 0; + a19 = 5; + return 26; + } else if(((((a20==1)&&((((a19==1)&&(((a23==1)||!(a23==1))&&!(a8==1)))&&(a17==2))||!(a28==1)))&&(a9==10))&&((((!(a24==1)&&((((input==6)&&((a5==4)||(a5==5)))&&!(a4==1))&&!(a24==1)))&&(a16==8))&&(a1==12))&&(a21==11)))){ + a5 = 6; + a8 = 0; + a9 = 8; + a1 = 14; + a21 = 12; + a26 = 0; + a28 = 1; + return 21; + } else if((((a9==9)&&(((a17==2)&&((((a1==14)&&((a5==4)&&(((input==6)&&(a19==5))&&!(a20==1))))&&(a6==1))&&(a16==10)))&&!(a7==1)))&&((a28==1)&&(((a2==1)&&(!(a26==1)&&((a21==11)&&(a3==1))))&&(a13==1))))){ + a19 = 3; + a9 = 10; + a12 = 0; + a10 = 1; + a5 = 5; + a21 = 10; + a16 = 8; + a25 = 1; + return 25; + } else if((((a21==10)&&((a7==1)&&((a20==1)&&((((((a5==4)&&((a3==1)&&(a0==1)))&&(a18==1))&&(a9==10))&&!(a11==1))&&!(a28==1)))))&&((((a26==1)&&(((a17==2)&&(input==1))&&(a16==9)))&&(a1==13))&&(a19==2)))){ + a29 = 0; + a10 = 0; + a16 = 7; + a19 = 1; + a9 = 7; + a1 = 12; + a11 = 0; + return -1; + } else if((((a16==9)&&(((a21==12)&&((((((a12==1)&&(a9==11))&&!(a14==1))&&!(a0==1))||(a26==1))&&(a17==2)))||(a8==1)))&&((!(a8==1)&&((((((a5==5)||(a5==6))&&(input==5))&&(a19==5))&&(a3==1))&&(a1==14)))&&(a20==1)))){ + a24 = 0; + a14 = 0; + a16 = 10; + a5 = 6; + a19 = 2; + a8 = 0; + a9 = 8; + a21 = 10; + return 21; + } else if(((!(a24==1)&&(((!(a8==1)&&((input==6)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))))&&(a3==1))&&(a16==10)))&&(((((!(a12==1)||((a19==4)&&((a17==2)&&((a20==1)&&(a23==1)))))&&(a1==13))&&(a21==10))||(a18==1))||(a27==1)))){ + if((a25==1)){ + a19 = 5; + a20 = 0; + a28 = 1; + a4 = 0; + a16 = 7; + a21 = 11; + a5 = 5; + a9 = 11; + a1 = 14; + a14 = 0; + }else{ + a21 = 11; + a18 = 0; + a9 = 10; + a1 = 12; + a13 = 1; + a16 = 11; + a19 = 1; + a11 = 1; + a5 = 6; + } + return 23; + } else if(((((a0==1)||((((a5==4)&&((a2==1)&&(a1==14)))&&(a17==2))&&(a21==11)))&&(a2==1))&&((!(a18==1)&&(((((a16==10)&&((a20==1)&&((input==6)&&(a19==3))))&&(a9==7))&&(a23==1))&&!(a24==1)))&&(a2==1)))){ + a9 = 9; + a1 = 13; + a16 = 7; + a18 = 0; + a21 = 10; + a19 = 2; + a14 = 0; + a7 = 0; + return 25; + } else if(((((a9==7)&&((a21==11)&&(((a13==1)&&(((a5==5)&&(a2==1))&&(a17==2)))&&(a23==1))))&&(a16==11))&&((a3==1)&&(!(a8==1)&&((a1==13)&&((a2==1)&&((a19==5)&&(((input==4)&&(a20==1))&&!(a4==1))))))))){ + a16 = 7; + a26 = 0; + a19 = 1; + a1 = 12; + a21 = 10; + a28 = 1; + a5 = 4; + a8 = 0; + return -1; + } else if((((a16==11)&&((a27==1)&&(((a21==11)&&(((a1==13)&&(a28==1))&&(a24==1)))&&(a20==1))))&&((((((((input==4)&&(((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))))&&!(a23==1))&&(a19==4))&&(a0==1))&&!(a28==1))&&(a17==2))&&!(a13==1)))){ + a9 = 8; + a16 = 7; + a14 = 1; + a10 = 1; + a5 = 4; + a21 = 10; + a19 = 1; + a0 = 1; + a1 = 12; + return 22; + } else if((((((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&(a11==1))&&(a9==9))&&((a17==2)&&((a21==10)&&((a1==14)&&((((((a11==1)&&((a0==1)||((a0==1)||((a16==10)&&(a6==1)))))&&(a3==1))&&!(a14==1))&&(a19==3))&&(a20==1))))))){ + a16 = 9; + a27 = 0; + a23 = 1; + a5 = 5; + a19 = 5; + a9 = 11; + a21 = 11; + a2 = 1; + return 21; + } else if((((!(a3==1)||((a5==4)&&((a19==1)&&((a6==1)&&!(a0==1)))))&&(a21==10))&&((a20==1)&&((a1==12)&&((a9==11)&&(((a13==1)&&(((((input==3)&&(a16==10))&&!(a14==1))&&(a17==2))&&!(a7==1)))&&(a6==1))))))){ + a7 = 0; + a1 = 14; + a11 = 1; + a0 = 0; + a16 = 11; + a19 = 4; + return 21; + } else if((((!(a8==1)&&((a21==11)&&(((a19==3)&&(((((a5==4)||(a5==5))&&(input==5))&&!(a0==1))&&(a17==2)))&&!(a20==1))))&&(a1==13))&&(((a9==10)&&(!(a18==1)&&((((a13==1)||!(a13==1))&&(a16==10))&&!(a27==1))))&&(a13==1)))){ + if((a18==1)){ + a5 = 6; + a1 = 14; + a9 = 11; + a14 = 1; + a19 = 2; + a16 = 7; + a21 = 12; + a25 = 0; + a22 = 1; + }else{ + a16 = 7; + a11 = 0; + a9 = 7; + a20 = 1; + a5 = 5; + a8 = 1; + a13 = 0; + a21 = 10; + a19 = 1; + } + return -1; + } else if((((a17==2)&&((!(a20==1)&&(((a4==1)||(!(a26==1)&&((a12==1)&&(!(a12==1)||(((!(a14==1)&&(a28==1))&&(a19==3))&&(a1==14))))))&&!(a0==1)))&&(a16==10)))&&((a21==10)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==6))))){ + a9 = 9; + a3 = 0; + a29 = 1; + a19 = 2; + a25 = 1; + a16 = 7; + a1 = 12; + a20 = 1; + a5 = 5; + return 25; + } else if(((((!(a4==1)&&(((a17==2)&&((a9==11)&&((a13==1)||(a27==1))))||(a24==1)))&&!(a4==1))&&(a16==7))&&((((((((input==4)&&(a20==1))&&(a5==4))&&(a21==10))&&(a1==13))&&(a23==1))&&(a3==1))&&(a19==2)))){ + a0 = 0; + a1 = 12; + a9 = 7; + a8 = 0; + a19 = 1; + a13 = 1; + return -1; + } else if(((!(a14==1)&&((((input==5)&&(((a19==4)&&(((a1==14)&&(a5==6))&&(a9==11)))||(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==5))))&&(a17==2))&&!(a27==1)))&&(!(a28==1)||((!(a12==1)||((a16==9)&&((a20==1)&&((a3==1)&&((a3==1)&&(a21==12))))))||(a8==1))))){ + a21 = 10; + a5 = 4; + a7 = 0; + a18 = 0; + a1 = 12; + a24 = 0; + a19 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if((((a17==2)&&(((a20==1)&&(!(a24==1)&&((a1==13)&&((a16==9)&&(a11==1)))))&&(a19==3)))&&((a21==12)&&((!(a26==1)&&((a6==1)&&(!(a18==1)&&((a23==1)&&((input==5)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))))))&&!(a0==1))))){ + a16 = 7; + a5 = 6; + a26 = 0; + a13 = 1; + a24 = 0; + a19 = 2; + a9 = 10; + a21 = 10; + return 25; + } else if((((a11==1)&&(!(a14==1)&&((a17==2)&&((a21==11)&&(!(a14==1)&&(a12==1))))))&&(((!(a4==1)&&((((a1==13)&&((a19==3)&&((input==6)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))))&&(a11==1))&&(a6==1)))&&(a20==1))&&(a16==10)))){ + a19 = 2; + a9 = 9; + a24 = 0; + a13 = 1; + a7 = 0; + a16 = 7; + a21 = 10; + a5 = 4; + return 25; + } else if((((a23==1)&&((!(a20==1)&&(((((a16==8)&&((a17==2)&&((input==5)&&((a5==5)||(a5==6)))))&&(a1==13))&&(a3==1))&&!(a24==1)))&&!(a27==1)))&&((a6==1)&&((a9==10)&&(!(a3==1)||((a19==1)&&((a13==1)&&(a21==12)))))))){ + if((a29==1)){ + a11 = 0; + a20 = 1; + a5 = 5; + a21 = 10; + a19 = 2; + a9 = 7; + a1 = 14; + a28 = 0; + a7 = 1; + }else{ + a21 = 10; + a27 = 1; + a5 = 6; + a9 = 11; + a16 = 7; + a25 = 1; + a20 = 1; + a1 = 12; + a19 = 2; + a29 = 1; + } + return 25; + } else if(((((a21==12)&&(((a19==4)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4)))&&(a23==1)))&&!(a7==1))&&(((a13==1)&&((a1==14)&&((a11==1)&&((((((a3==1)&&(a12==1))&&(a16==11))&&(a9==7))&&(a20==1))&&(a17==2)))))||(a24==1)))){ + a3 = 1; + a8 = 0; + a13 = 1; + a5 = 4; + a19 = 1; + a16 = 7; + a1 = 12; + a21 = 10; + return -1; + } else if(((((a19==2)&&((a20==1)&&(input==4)))&&(a16==9))&&((a21==12)&&((a1==14)&&(((((a5==5)&&(!(a7==1)&&((a26==1)||((a17==2)&&(((a2==1)&&!(a18==1))||(a18==1))))))||!(a6==1))&&(a9==9))&&!(a27==1)))))){ + a5 = 4; + a21 = 10; + a19 = 1; + a1 = 12; + a16 = 7; + a0 = 0; + a9 = 7; + a28 = 1; + a8 = 0; + return -1; + } else if((((a27==1)||(((a16==10)&&(a13==1))||(a18==1)))&&(((!(a0==1)&&(!(a7==1)&&((a21==12)&&((a17==2)&&(((((a19==2)&&(((a1==12)&&(a5==5))&&(a9==7)))||(((((a5==6)&&(a1==14))&&(a9==11))&&(a19==1))||((((a5==4)&&(a1==12))&&(a9==7))&&(a19==2))))&&(input==5))&&!(a20==1))))))&&(a28==1))&&(a12==1)))){ + a20 = 1; + a27 = 1; + a0 = 1; + a9 = 10; + a5 = 6; + a21 = 10; + a16 = 7; + a1 = 13; + a8 = 1; + a19 = 1; + return -1; + } else if((((!(a18==1)&&((((a5==4)&&(((a19==4)&&(input==5))&&(a1==14)))&&(a21==12))&&(a16==7)))&&(a17==2))&&(!(a20==1)&&((a3==1)&&(!(a4==1)&&(((a9==11)&&(((a3==1)&&(a28==1))||!(a6==1)))||!(a11==1))))))){ + a1 = 13; + a7 = 0; + a0 = 0; + a19 = 1; + a5 = 6; + a18 = 0; + a20 = 1; + a21 = 10; + a16 = 11; + a9 = 8; + return 25; + } else if(((((!(a18==1)&&(((a16==11)&&(a11==1))&&(a2==1)))&&(a12==1))||(a7==1))&&((a28==1)&&((a1==14)&&((a17==2)&&((((a20==1)&&((a19==3)&&(((input==1)&&((a5==4)||(a5==5)))&&(a11==1))))&&(a9==10))&&(a21==11))))))){ + a1 = 12; + a21 = 10; + a19 = 1; + a5 = 4; + a11 = 1; + a9 = 7; + a18 = 0; + a16 = 7; + return -1; + } else if(((((a2==1)&&(!(a26==1)&&((a20==1)&&((a1==14)&&((a2==1)&&((((input==3)&&((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4))))&&(a17==2))&&!(a14==1)))))))&&!(a27==1))&&(((((a12==1)||!(a12==1))&&(a21==10))&&(a19==3))&&(a16==8)))){ + a7 = 0; + a1 = 12; + a9 = 7; + a16 = 7; + a5 = 4; + a19 = 1; + a13 = 1; + a28 = 1; + return -1; + } else if((((a13==1)&&((((a3==1)&&((((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))&&(input==3)))&&(a19==3))&&(a20==1)))&&(((((a11==1)&&((a12==1)&&((a1==12)&&(((a3==1)&&!(a27==1))||!(a3==1)))))&&(a16==10))&&(a17==2))&&(a21==10)))){ + a4 = 0; + a9 = 7; + a26 = 0; + a19 = 1; + a11 = 1; + a5 = 4; + a16 = 7; + return -1; + } else if(((((a27==1)||((a16==10)&&((a19==4)&&((a4==1)||(a13==1)))))||(a4==1))&&((((!(a4==1)&&((a12==1)&&((a17==2)&&((((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4)))&&(input==4))&&(a20==1)))))&&!(a4==1))&&(a21==10))&&(a1==13)))){ + a1 = 12; + a11 = 1; + a19 = 1; + a9 = 7; + a27 = 0; + a5 = 4; + a16 = 7; + a14 = 0; + return -1; + } else if((((((a17==2)&&((((a5==6)&&(a23==1))&&(a23==1))||!(a2==1)))&&(a9==11))&&(a21==11))&&(!(a20==1)&&((a19==4)&&((((a28==1)&&((!(a8==1)&&((a16==9)&&(input==6)))&&!(a4==1)))&&(a1==13))&&!(a8==1)))))){ + a19 = 2; + a21 = 10; + a16 = 7; + a20 = 1; + a1 = 12; + a10 = 0; + a29 = 0; + a9 = 7; + return -1; + } else if((((a0==1)||(!(a11==1)||(((a16==9)&&(((((a20==1)&&((a13==1)&&(a9==11)))||(a8==1))||(a4==1))&&(a17==2)))&&(a21==11))))&&(((a19==2)&&(((a23==1)&&(((a5==4)||(a5==5))&&(input==5)))&&(a6==1)))&&(a1==14)))){ + a7 = 0; + a5 = 5; + a9 = 7; + a6 = 1; + a24 = 0; + a1 = 12; + a21 = 12; + return 21; + } else if(((((!(a24==1)&&((((a21==10)&&((a17==2)&&(((input==6)&&((((a1==13)&&(a5==4))&&(a9==7))||((((a5==5)&&(a1==12))&&(a9==11))||((a9==11)&&((a1==12)&&(a5==6))))))&&(a16==9))))&&(a20==1))&&(a6==1)))&&(a11==1))&&(a12==1))&&(((a13==1)&&((a11==1)&&!(a14==1)))&&(a19==1)))){ + a9 = 7; + a16 = 7; + a28 = 1; + a5 = 4; + a1 = 12; + a4 = 0; + return -1; + } else if(((((!(a8==1)&&((a21==12)&&((!(a24==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4)))&&(a17==2))))&&(a19==3))&&(a1==12))&&(!(a28==1)||(((a9==10)&&(((((a16==11)&&(a6==1))&&(a28==1))||(a0==1))&&!(a8==1)))&&(a20==1))))){ + a28 = 1; + a0 = 0; + a11 = 1; + a5 = 4; + a16 = 7; + a21 = 10; + a9 = 7; + a19 = 1; + return -1; + } else if((((!(a13==1)||(!(a20==1)&&((a21==11)&&(!(a18==1)&&((a19==4)&&((a9==11)&&((a17==2)&&((a11==1)&&!(a18==1)))))))))&&(a23==1))&&((((a16==9)&&(((input==3)&&((a5==4)||(a5==5)))&&(a1==13)))&&!(a0==1))&&!(a27==1)))){ + a9 = 7; + a19 = 1; + a13 = 0; + a21 = 10; + a5 = 6; + a23 = 0; + a16 = 10; + return -1; + } else if((((((a21==10)&&((a20==1)&&(((((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(input==5))&&(a17==2))))&&!(a18==1))&&(a1==13))&&((a16==10)&&(!(a23==1)||(((!(a6==1)||(((a19==1)&&(a23==1))||!(a13==1)))||(a8==1))||!(a11==1)))))){ + a5 = 4; + a16 = 7; + a23 = 1; + a9 = 7; + a1 = 12; + a18 = 0; + return -1; + } else if((((a28==1)&&((!(a8==1)&&((a17==2)&&(!(a26==1)&&(!(a8==1)&&(((input==4)&&(a21==10))&&(a3==1))))))&&(a9==10)))&&((((a1==14)&&(((a23==1)&&((a19==1)&&(a3==1)))&&(a5==4)))&&!(a20==1))&&(a16==7)))){ + a14 = 0; + a20 = 1; + a0 = 0; + a1 = 13; + a16 = 10; + a2 = 1; + a5 = 5; + a9 = 7; + return -1; + } else if((((((a9==7)&&((a11==1)&&(((input==1)&&((a5==5)||(a5==6)))&&!(a14==1))))&&(a20==1))&&(a17==2))&&(((a1==13)&&(((((a19==2)&&(!(a13==1)||((a28==1)||(a4==1))))&&(a3==1))&&(a23==1))&&(a16==11)))&&(a21==11)))){ + a19 = 5; + a21 = 10; + a2 = 1; + a5 = 4; + a9 = 11; + a1 = 12; + a11 = 1; + a13 = 1; + a16 = 7; + return -1; + } else if(((((((a1==14)&&((((a28==1)&&(a2==1))&&!(a4==1))||!(a2==1)))||(a14==1))&&(a21==12))&&(a17==2))&&((((a19==5)&&((a5==6)&&((a3==1)&&(((a9==8)&&(input==6))&&!(a20==1)))))&&(a16==7))&&!(a24==1)))){ + a4 = 0; + a5 = 4; + a19 = 1; + a1 = 12; + a9 = 7; + a21 = 10; + a27 = 0; + a20 = 1; + a13 = 1; + return -1; + } else if((((((a21==10)&&(((a16==8)&&((a2==1)||(a8==1)))&&(a20==1)))||(a7==1))||(a4==1))&&(((a11==1)&&((a17==2)&&((((a19==3)&&(((input==3)&&(a1==14))&&(a11==1)))&&(a12==1))&&(a9==7))))&&(a5==4)))){ + a1 = 12; + a7 = 0; + a2 = 1; + a19 = 1; + a16 = 7; + a6 = 1; + return -1; + } else if((((a17==2)&&((a5==4)&&(((a16==10)&&((input==6)&&(a19==5)))&&!(a0==1))))&&((a1==13)&&((a9==9)&&(((a11==1)&&(((((a21==11)&&(!(a4==1)&&(a23==1)))&&(a23==1))&&(a20==1))&&!(a14==1)))||!(a23==1)))))){ + a16 = 7; + a19 = 1; + a14 = 0; + a13 = 1; + a1 = 12; + a8 = 0; + a21 = 10; + a9 = 7; + return -1; + } else if((((a3==1)&&(!(a8==1)&&(((a16==8)&&(((a21==10)&&((a2==1)&&((input==1)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))))&&(a20==1)))&&(a23==1))))&&(!(a24==1)&&(((a1==12)&&(((a3==1)&&(a17==2))||(a4==1)))&&(a19==1))))){ + a6 = 1; + a5 = 6; + a16 = 9; + a9 = 8; + a21 = 12; + a1 = 14; + a11 = 1; + a26 = 0; + return 22; + } else if((((a17==2)&&((((a23==1)&&(((a19==5)&&(input==6))&&!(a24==1)))&&(a1==13))&&(a9==9)))&&(((a21==10)&&(!(a14==1)&&((a5==5)&&((a16==8)&&((a6==1)&&(((a23==1)&&(a13==1))&&!(a20==1)))))))||(a26==1)))){ + a8 = 0; + a14 = 0; + a5 = 4; + a0 = 0; + a20 = 1; + a1 = 12; + return 22; + } return calculate_output45(input); + } + + int calculate_output45(int input) { + if((((a17==2)&&((a20==1)&&((a3==1)&&(!(a4==1)&&(((input==3)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&!(a24==1))))))&&((a1==14)&&(((a16==7)&&((((a19==5)&&(!(a4==1)&&(a11==1)))&&!(a27==1))||(a24==1)))&&(a21==12))))){ + a19 = 1; + a11 = 1; + a6 = 1; + a0 = 0; + a21 = 10; + a1 = 12; + a9 = 7; + a5 = 4; + return -1; + } else if((((((((((a19==5)&&(((input==4)&&(((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))&&!(a20==1)))&&(a21==10))&&(a1==13))&&(a16==10))&&(a17==2))&&!(a0==1))&&(a13==1))&&((!(a11==1)||(((a3==1)||(a8==1))||(a14==1)))&&!(a14==1)))){ + a6 = 0; + a10 = 1; + a19 = 1; + a7 = 1; + a20 = 1; + a9 = 8; + a16 = 7; + a5 = 6; + return -1; + } else if((((a24==1)||((a0==1)||((((a1==13)&&(!(a27==1)&&((a28==1)&&(a2==1))))&&(a17==2))&&(a20==1))))&&((a16==11)&&((a28==1)&&((((a19==5)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==1)))&&(a12==1))&&(a21==10)))))){ + a13 = 1; + a16 = 7; + a0 = 0; + a27 = 0; + a19 = 1; + a9 = 7; + a1 = 12; + a5 = 4; + return -1; + } else if((((a9==7)&&(((a17==2)&&(a28==1))&&(a19==2)))&&(((a1==12)&&(!(a20==1)&&(((a12==1)&&((!(a4==1)&&((((a6==1)&&((a5==4)&&(input==1)))&&!(a26==1))&&(a6==1)))&&(a16==7)))&&(a12==1))))&&(a21==11)))){ + a2 = 1; + a20 = 1; + a19 = 1; + a26 = 0; + a21 = 10; + a8 = 0; + return -1; + } else if(((((a1==12)&&((!(a8==1)&&((a19==3)&&((a18==1)||(a13==1))))&&(a20==1)))&&(a21==12))&&((a17==2)&&((a16==9)&&(((a6==1)&&((a2==1)&&(((input==4)&&((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10))))&&!(a18==1))))&&!(a26==1)))))){ + a20 = 0; + a5 = 4; + a6 = 1; + a16 = 7; + a19 = 5; + a24 = 0; + a23 = 1; + a9 = 9; + return 22; + } else if((((a3==1)&&((a9==11)&&(!(a7==1)&&((a17==2)&&(((a19==3)&&(input==5))&&(a11==1))))))&&(!(a0==1)&&((a21==10)&&((((!(a0==1)&&((a20==1)&&((a11==1)&&(a1==14))))&&(a5==5))&&(a16==11))||(a7==1)))))){ + a13 = 1; + a16 = 7; + a5 = 4; + a9 = 7; + a19 = 1; + a1 = 12; + a8 = 0; + a28 = 1; + return -1; + } else if((((!(a7==1)&&(((!(a20==1)&&((a1==12)&&(input==4)))&&(a19==2))&&(a16==8)))&&(a23==1))&&(!(a3==1)||(((a21==12)&&(((((a17==2)&&((a9==7)&&(a3==1)))&&!(a27==1))&&(a5==4))||!(a3==1)))||!(a23==1))))){ + a6 = 0; + a20 = 1; + a27 = 1; + a9 = 8; + a8 = 1; + a21 = 10; + a16 = 7; + a5 = 6; + return -1; + } else if(((((!(a8==1)&&(((!(a8==1)&&(((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))&&(input==3)))&&!(a0==1))&&!(a4==1)))&&(a17==2))&&(a16==9))&&((a19==4)&&((a1==12)&&(((a11==1)&&((a13==1)&&((a2==1)&&(a21==12))))&&!(a20==1)))))){ + a14 = 1; + a5 = 5; + a19 = 1; + a20 = 1; + a16 = 7; + a9 = 7; + a26 = 1; + a21 = 10; + a10 = 1; + return -1; + } else if(((((a20==1)&&((((((a9==10)&&(((a27==1)||(((a21==11)&&(a28==1))||!(a6==1)))&&(a1==12)))&&(a17==2))&&!(a7==1))&&(a19==3))&&(a23==1)))&&(a16==8))&&((((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&!(a0==1))&&(a28==1)))){ + a7 = 0; + a21 = 10; + a16 = 7; + a19 = 1; + a8 = 0; + a9 = 7; + a26 = 0; + a5 = 4; + return -1; + } else if(((((a2==1)&&((a6==1)&&(((a1==13)&&(((((a5==4)||(a5==5))&&(input==6))&&(a16==7))&&(a19==5)))&&(a23==1))))&&(a21==10))&&(((!(a6==1)||(!(a4==1)&&((a20==1)&&((a9==8)&&(a6==1)))))&&(a17==2))&&!(a26==1)))){ + a21 = 12; + a19 = 3; + a5 = 6; + a12 = 1; + a13 = 1; + a23 = 1; + a1 = 12; + return 21; + } else if(((((((a19==3)&&(!(a23==1)||((a14==1)||(a11==1))))&&(a16==8))&&(a21==12))&&(a1==12))&&(((a9==7)&&(((((((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a2==1))&&(a6==1))&&!(a7==1))&&!(a20==1))&&(a3==1)))&&(a17==2)))){ + if((a7==1)){ + a18 = 1; + a16 = 7; + a28 = 0; + a19 = 2; + a20 = 1; + a9 = 10; + a5 = 5; + a21 = 10; + a7 = 1; + }else{ + a21 = 10; + a1 = 13; + a9 = 9; + a19 = 1; + a7 = 1; + a22 = 0; + a26 = 1; + a20 = 1; + a16 = 7; + a5 = 4; + } + return -1; + } else if((((a5==6)&&((a27==1)||(((a1==12)&&(a28==1))&&!(a20==1))))&&((!(a8==1)&&((a17==2)&&((((((a9==9)&&(((input==4)&&(a16==10))&&!(a8==1)))&&(a21==10))&&(a19==4))&&!(a14==1))&&(a6==1))))&&!(a0==1)))){ + if((a9==11)){ + a21 = 12; + a27 = 1; + a10 = 1; + a18 = 1; + a16 = 8; + a19 = 5; + }else{ + a20 = 1; + a19 = 2; + a5 = 5; + a6 = 0; + a22 = 0; + a16 = 7; + a9 = 8; + } + return -1; + } else if((((a1==14)&&(((((input==1)&&(a17==2))&&!(a20==1))&&(a12==1))&&(a21==11)))&&(((!(a27==1)&&(((a9==10)&&((a4==1)||((a16==10)&&((a19==2)&&((a3==1)&&(a5==5))))))&&!(a14==1)))||(a7==1))&&!(a27==1)))){ + if((a11==1)){ + a1 = 12; + a21 = 12; + a27 = 1; + a20 = 1; + a4 = 1; + a16 = 11; + a5 = 4; + a19 = 5; + a15 = 1; + }else{ + a27 = 1; + a21 = 12; + a9 = 9; + a28 = 0; + a29 = 1; + a5 = 6; + a1 = 12; + a16 = 9; + } + return 26; + } else if((((a9==7)&&(((a20==1)&&((input==4)&&((a5==4)||(a5==5))))&&!(a18==1)))&&(((a1==14)&&((a16==11)&&(!(a14==1)&&((a17==2)&&(((a8==1)||((((a2==1)&&(a12==1))||(a26==1))&&(a21==12)))||!(a23==1))))))&&(a19==2)))){ + a5 = 4; + a1 = 12; + a21 = 10; + a23 = 1; + a0 = 0; + a19 = 1; + a16 = 7; + a27 = 0; + return -1; + } else if((((a16==8)&&((a21==11)&&((!(a14==1)&&((a28==1)&&(a19==4)))||!(a12==1))))&&((a20==1)&&(((a1==12)&&((((a23==1)&&(((a23==1)&&(((a5==5)||(a5==6))&&(input==4)))&&!(a24==1)))&&!(a8==1))&&(a9==8)))&&(a17==2))))){ + a28 = 1; + a14 = 0; + a19 = 1; + a5 = 4; + a21 = 10; + a16 = 7; + a9 = 7; + a26 = 0; + return -1; + } else if((((a16==8)&&((((a2==1)&&(a6==1))&&(a9==11))&&(a19==1)))&&((a1==12)&&(((((a13==1)&&(((a12==1)&&(((a17==2)&&((input==6)&&((a5==5)||(a5==6))))&&!(a8==1)))&&(a21==11)))&&!(a18==1))&&!(a20==1))&&!(a27==1))))){ + a20 = 1; + a6 = 1; + a4 = 0; + a16 = 10; + a19 = 3; + a12 = 1; + a5 = 6; + a21 = 12; + return 22; + } else if((((a19==1)&&((a1==14)&&((a23==1)&&((a11==1)&&((a11==1)&&(((a9==9)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))&&!(a4==1)))))))&&(((((((a28==1)&&(a17==2))||(a24==1))||(a14==1))&&(a16==7))&&(a20==1))&&(a21==11)))){ + a9 = 11; + a21 = 10; + a5 = 5; + a16 = 8; + a8 = 0; + a2 = 1; + a28 = 1; + return 26; + } else if(((!(a20==1)&&((((a28==1)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==5)))&&(a12==1))&&(a1==13)))&&(((a21==12)&&((a14==1)||(((a13==1)&&((((a0==1)||(a6==1))&&(a19==2))&&(a17==2)))||!(a11==1))))&&(a16==8)))){ + a20 = 1; + a16 = 11; + a21 = 11; + a25 = 1; + a9 = 11; + a1 = 12; + a15 = 0; + a5 = 4; + a19 = 1; + a12 = 0; + return 25; + } else if((((a17==2)&&(((a16==10)&&(!(a18==1)&&(!(a7==1)&&(!(a24==1)&&(((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==6))&&(a11==1))))))&&(a21==12)))&&(((((a19==5)&&(!(a18==1)&&(a13==1)))||(a4==1))&&(a1==14))&&!(a20==1)))){ + a4 = 1; + a20 = 1; + a28 = 0; + a16 = 7; + a21 = 10; + a9 = 7; + a6 = 0; + a19 = 1; + a5 = 4; + return 25; + } else if(((((((input==3)&&(((a9==11)&&((a5==6)&&(a1==12)))||((a9==7)&&((a1==13)&&(a5==4)))))&&(a16==10))&&(a19==5))&&!(a8==1))&&(!(a24==1)&&(!(a24==1)&&((a26==1)||(!(a14==1)&&((a14==1)||((((a6==1)&&(a21==10))&&(a17==2))&&(a20==1))))))))){ + a1 = 12; + a19 = 1; + a9 = 7; + a16 = 7; + a2 = 1; + a8 = 0; + a5 = 4; + a28 = 1; + return -1; + } else if((((a19==4)&&(((a2==1)&&(!(a11==1)||((((a6==1)&&(a16==7))||(a27==1))||!(a3==1))))&&(a21==12)))&&((a17==2)&&(((a1==12)&&((((input==4)&&(((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))))&&(a2==1))&&(a23==1)))&&(a20==1))))){ + a5 = 4; + a3 = 1; + a9 = 7; + a21 = 10; + a19 = 1; + a8 = 0; + a6 = 1; + return -1; + } else if(((((a21==12)&&(((((a3==1)&&(!(a8==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4))))&&(a11==1))&&(a17==2))&&(a19==3)))&&(a9==9))&&((a16==10)&&(((!(a26==1)&&(((a11==1)&&(a11==1))&&(a3==1)))&&(a1==12))&&!(a20==1))))){ + if((a8==1)){ + a1 = 14; + a21 = 10; + a11 = 0; + a20 = 1; + a19 = 1; + a15 = 0; + a5 = 4; + a9 = 8; + a16 = 7; + a3 = 0; + }else{ + a19 = 2; + a6 = 0; + a5 = 4; + a7 = 1; + a16 = 7; + a4 = 1; + a9 = 10; + } + return 25; + } else if((((a5==4)&&((((a7==1)&&(!(a11==1)&&((!(a28==1)&&((a16==8)&&(((a21==11)&&((a17==2)&&(a6==1)))&&!(a23==1))))&&(a1==13))))&&!(a13==1))&&(a9==11)))&&((a20==1)&&(!(a11==1)&&((a19==3)&&(input==5)))))){ + a26 = 1; + a20 = 0; + a1 = 14; + a28 = 0; + a9 = 7; + a21 = 12; + a16 = 7; + a24 = 1; + return 21; + } else if(((!(a6==1)||((((!(a12==1)||((a16==9)&&(((a6==1)&&(a9==9))&&(a21==11))))&&(a1==14))&&!(a18==1))&&(a17==2)))&&((((a28==1)&&((a19==3)&&(((input==3)&&((a5==4)||(a5==5)))&&(a11==1))))&&!(a20==1))&&!(a14==1)))){ + a5 = 4; + a0 = 1; + a9 = 8; + a21 = 10; + a16 = 10; + a25 = 0; + a1 = 13; + a2 = 0; + return 21; + } else if(((!(a28==1)||((!(a3==1)||(((a2==1)||(a24==1))||!(a12==1)))&&(a21==11)))&&((a19==2)&&((a13==1)&&(((a17==2)&&((a20==1)&&(((input==5)&&(((((a5==6)&&(a1==12))&&(a9==11))||((a9==7)&&((a1==13)&&(a5==4))))||((a9==7)&&((a1==13)&&(a5==5)))))&&!(a0==1))))&&(a16==7)))))){ + a7 = 0; + a16 = 8; + a9 = 10; + a11 = 1; + a1 = 12; + a21 = 10; + a8 = 0; + a19 = 3; + a5 = 6; + return 25; + } else if(((((a9==8)&&(((a17==2)&&((a5==6)&&(((a24==1)||((a6==1)||!(a2==1)))&&(a28==1))))||(a26==1)))&&(a19==1))&&((a16==9)&&(((a3==1)&&((a21==12)&&((a13==1)&&((input==1)&&(a1==12)))))&&(a20==1))))){ + a21 = 11; + a20 = 0; + a19 = 4; + a8 = 0; + a16 = 8; + a2 = 1; + a5 = 5; + a6 = 1; + return 21; + } else if(((((a17==2)&&(((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==1))&&(a3==1)))&&(a23==1))&&((!(a13==1)||(((a1==13)&&(((a20==1)&&((a16==7)&&(((a26==1)||(a12==1))&&!(a7==1))))&&(a19==3)))&&(a21==11)))&&(a3==1)))){ + a11 = 1; + a9 = 7; + a4 = 0; + a19 = 1; + a16 = 8; + a5 = 4; + a26 = 0; + return 23; + } else if(((((a5==6)&&(((a9==11)&&(!(a14==1)&&(((!(a20==1)&&(input==6))&&!(a26==1))&&(a19==1))))&&(a16==10)))&&(a3==1))&&(((((((a23==1)&&(a23==1))&&(a3==1))&&(a17==2))&&(a1==14))&&(a21==11))||(a27==1)))){ + a12 = 0; + a5 = 5; + a26 = 1; + a9 = 7; + a20 = 1; + a29 = 0; + a1 = 13; + a16 = 7; + a21 = 10; + return -1; + } else if((((a5==6)&&(((((a16==9)&&(input==6))&&(a21==11))&&(a17==2))&&(a9==7)))&&((a0==1)||(((a26==1)||((!(a20==1)&&((a2==1)&&((!(a18==1)&&((a28==1)&&(a1==14)))&&(a19==4))))||!(a2==1)))||(a7==1))))){ + a19 = 1; + a20 = 1; + a1 = 12; + a12 = 0; + a21 = 10; + a4 = 1; + a16 = 7; + a29 = 1; + a5 = 4; + return -1; + } else if((((a12==1)&&(((a9==7)&&((a19==5)&&((((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a16==10))&&(a21==10))))&&!(a7==1)))&&((((!(a13==1)||((((a11==1)&&!(a20==1))&&(a1==12))&&(a17==2)))||(a4==1))&&(a23==1))||(a7==1)))){ + if((a28==1)){ + a5 = 6; + a27 = 1; + a21 = 11; + a11 = 0; + a22 = 1; + a9 = 10; + a16 = 7; + a1 = 13; + }else{ + a6 = 0; + a18 = 1; + a5 = 4; + a9 = 8; + a16 = 7; + a20 = 1; + a3 = 0; + a19 = 2; + } + return 21; + } else if(((!(a20==1)&&(!(a18==1)&&(((a2==1)&&((a1==13)&&(((a2==1)&&((a9==7)&&(input==5)))&&(a17==2))))&&!(a26==1))))&&(((a5==6)&&(((!(a13==1)||((a4==1)||(a2==1)))&&(a19==1))&&(a21==12)))&&(a16==10)))){ + if((a8==1)){ + a16 = 8; + a21 = 11; + a22 = 1; + a9 = 9; + a1 = 12; + a20 = 1; + a29 = 0; + a19 = 3; + }else{ + a21 = 11; + a9 = 11; + a20 = 1; + a23 = 0; + a1 = 12; + a16 = 8; + a25 = 1; + a0 = 1; + } + return -1; + } else if(((((a21==12)&&(a2==1))&&(a6==1))&&((a2==1)&&(!(a0==1)&&((((!(a7==1)&&(!(a18==1)&&((((a19==3)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==3)))&&!(a20==1))&&(a1==12))))&&(a17==2))&&(a16==10))&&!(a0==1)))))){ + a19 = 2; + a20 = 1; + a9 = 10; + a22 = 1; + a5 = 4; + a16 = 7; + a24 = 1; + a28 = 0; + a21 = 10; + return -1; + } else if(((!(a26==1)&&(!(a20==1)&&((((a1==13)&&(((a12==1)&&((a5==5)&&(a28==1)))&&(a17==2)))||!(a23==1))&&(a16==10))))&&(!(a27==1)&&((a9==7)&&(!(a14==1)&&((((a21==12)&&(input==6))&&(a12==1))&&(a19==2))))))){ + if((a0==1)){ + a9 = 10; + a4 = 1; + a5 = 4; + a19 = 3; + a21 = 10; + a1 = 12; + a16 = 7; + a20 = 1; + a15 = 1; + a28 = 0; + }else{ + a7 = 1; + a21 = 10; + a20 = 1; + a16 = 7; + a9 = 9; + a8 = 1; + a19 = 1; + a5 = 4; + a25 = 0; + } + return -1; + } else if((((((!(a8==1)&&((a23==1)&&(a21==10)))&&(a17==2))&&(a19==3))&&(a9==10))&&((!(a24==1)&&((a6==1)&&(!(a0==1)&&((a3==1)&&((a1==13)&&(((a16==10)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))&&!(a24==1)))))))&&(a20==1)))){ + a1 = 12; + a19 = 1; + a14 = 0; + a16 = 7; + a5 = 4; + a13 = 1; + a9 = 7; + a28 = 1; + return -1; + } else if((((((!(a24==1)&&(((a3==1)&&(((input==3)&&!(a20==1))&&!(a8==1)))&&!(a8==1)))&&(a21==12))&&(a17==2))&&(a16==8))&&(((a19==5)&&((a5==6)&&((a26==1)||((a18==1)||((a2==1)&&(a1==13))))))&&(a9==9)))){ + a16 = 7; + a23 = 0; + a22 = 1; + a19 = 4; + a1 = 12; + a0 = 1; + a20 = 1; + a5 = 4; + return 22; + } else if(((((((a5==4)&&((!(a12==1)||((a17==2)&&((((!(a20==1)&&(a12==1))&&(a12==1))&&(a9==11))||(a14==1))))&&!(a26==1)))&&(a19==2))&&(a3==1))&&(a16==9))&&((a1==13)&&(((a21==11)&&(input==5))&&!(a4==1))))){ + a0 = 1; + a5 = 6; + a16 = 7; + a20 = 1; + a8 = 1; + a19 = 1; + a1 = 14; + a21 = 10; + a6 = 0; + a9 = 9; + return -1; + } else if((((((a6==1)&&(a28==1))&&!(a27==1))||(a26==1))&&(!(a27==1)&&((a1==12)&&(((a16==7)&&(!(a26==1)&&(((a17==2)&&(((((input==6)&&((a5==5)||(a5==6)))&&!(a27==1))&&(a21==10))&&(a9==10)))&&(a19==3))))&&(a20==1)))))){ + a8 = 0; + a19 = 5; + a5 = 6; + a18 = 0; + a23 = 1; + a9 = 9; + a1 = 14; + return 21; + } else if((((a1==14)&&((a20==1)&&((a21==10)&&((a4==1)||((a17==2)&&((a11==1)&&(!(a7==1)&&((a23==1)||!(a3==1)))))))))&&(((a19==5)&&((((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==1))&&(a11==1))&&!(a24==1)))&&(a16==9)))){ + a21 = 12; + a5 = 5; + a19 = 3; + a1 = 12; + a27 = 0; + a13 = 1; + a8 = 0; + a9 = 9; + return 21; + } else if((((a1==13)&&(((((a21==12)&&((!(a7==1)&&((input==4)&&(((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))))&&(a19==5)))&&(a16==9))&&(a2==1))&&!(a18==1)))&&(!(a13==1)||((((a17==2)&&(!(a20==1)&&(a3==1)))||!(a13==1))&&!(a0==1))))){ + if((a0==1)){ + a11 = 0; + a6 = 0; + a19 = 3; + a1 = 12; + a9 = 7; + a13 = 0; + a20 = 1; + a5 = 5; + }else{ + a19 = 1; + a20 = 1; + a5 = 4; + a18 = 1; + a14 = 1; + a0 = 1; + a9 = 8; + } + return -1; + } else if((((a27==1)||((a6==1)&&(!(a26==1)&&(((a11==1)&&(a21==10))&&(a2==1)))))&&(!(a20==1)&&(((a1==14)&&((a17==2)&&((((a19==5)&&(((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))&&(input==3)))&&(a11==1))&&!(a0==1))))&&(a16==10))))){ + a1 = 12; + a25 = 0; + a19 = 2; + a9 = 8; + a20 = 1; + a5 = 4; + a3 = 0; + a18 = 1; + a16 = 7; + return 21; + } else if(((((a1==13)&&((((((a13==1)&&((input==1)&&(((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6))))))&&!(a27==1))&&!(a27==1))&&(a17==2))&&(a21==10)))&&!(a20==1))&&(((a19==3)&&(((a11==1)&&((a12==1)&&!(a0==1)))&&(a11==1)))&&(a16==11)))){ + a6 = 0; + a8 = 1; + a19 = 5; + a5 = 5; + a16 = 9; + a29 = 0; + a9 = 11; + return 25; + } else if((((((a1==12)&&(a28==1))&&(a16==10))&&!(a0==1))&&(((((!(a0==1)&&(!(a8==1)&&(((a17==2)&&((a11==1)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==6))))&&(a19==3))))&&!(a7==1))&&(a21==11))&&!(a20==1))&&!(a8==1)))){ + if((a2==1)){ + a24 = 1; + a3 = 0; + a14 = 1; + a21 = 10; + a5 = 5; + a19 = 1; + a16 = 7; + a20 = 1; + a9 = 10; + }else{ + a19 = 2; + a28 = 0; + a4 = 1; + a5 = 5; + a21 = 10; + a16 = 11; + a24 = 1; + a9 = 11; + a20 = 1; + } + return 23; + } else if((((a21==12)&&(!(a24==1)&&((input==6)&&(((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))))))&&(!(a28==1)||(!(a20==1)&&((a1==12)&&((a24==1)||((a17==2)&&(((((a23==1)&&((a16==10)&&(a11==1)))&&(a19==2))&&(a23==1))||(a7==1))))))))){ + a9 = 8; + a21 = 10; + a0 = 1; + a16 = 7; + a11 = 0; + a20 = 1; + a28 = 0; + a5 = 5; + return -1; + } else if(((((a17==2)&&((a28==1)&&(((a5==4)||(a5==5))&&(input==5))))&&(a12==1))&&((!(a28==1)||(((((((a27==1)||((!(a20==1)&&(a11==1))&&(a21==10)))&&(a9==8))&&(a19==1))&&(a16==9))&&(a1==12))||!(a11==1)))||!(a13==1)))){ + a14 = 1; + a5 = 4; + a9 = 9; + a3 = 0; + a22 = 0; + a19 = 2; + a20 = 1; + a16 = 7; + return -1; + } else if(((!(a26==1)&&((a21==10)&&((a9==9)&&(!(a13==1)||(!(a0==1)&&(a12==1))))))&&(((a17==2)&&(((((((a16==9)&&((input==1)&&!(a20==1)))&&(a23==1))&&!(a26==1))&&!(a27==1))&&(a19==4))&&(a5==6)))&&(a1==13)))){ + if((a18==1)){ + a20 = 1; + a19 = 1; + a22 = 1; + a4 = 1; + a1 = 14; + a5 = 4; + a9 = 10; + a3 = 0; + a16 = 7; + }else{ + a24 = 1; + a19 = 5; + a21 = 12; + a5 = 5; + a15 = 1; + a9 = 11; + a3 = 0; + } + return 21; + } else if((((a12==1)&&((((a16==11)&&(((a2==1)&&(a13==1))&&(a17==2)))&&(a19==4))&&(a3==1)))&&((((((a13==1)&&((!(a4==1)&&((a21==11)&&(input==3)))&&(a5==5)))&&(a9==8))&&(a20==1))&&(a1==14))&&!(a7==1)))){ + a19 = 1; + a21 = 10; + a11 = 1; + a5 = 4; + a9 = 7; + a27 = 0; + a14 = 0; + a16 = 7; + a1 = 12; + return -1; + } else if((((a16==7)&&((a9==8)&&((((!(a12==1)||(((a28==1)&&(a11==1))&&(a1==14)))&&!(a18==1))&&(a19==5))&&!(a20==1))))&&((a5==4)&&(((a11==1)&&((((a21==10)&&(input==5))&&(a23==1))&&(a3==1)))&&(a17==2))))){ + a2 = 1; + a20 = 1; + a9 = 7; + a26 = 0; + a19 = 1; + a11 = 1; + a1 = 12; + return -1; + } else if((((a17==2)&&((((a16==7)&&((a20==1)&&(a6==1)))&&(a21==11))&&(a19==2)))&&(((a3==1)&&((a23==1)&&((!(a0==1)&&((!(a14==1)&&(((a9==7)&&(input==5))&&(a5==5)))&&(a23==1)))&&(a12==1))))&&(a1==14)))){ + a5 = 6; + a7 = 0; + a9 = 11; + a2 = 1; + a11 = 1; + a19 = 3; + a16 = 8; + a21 = 10; + return 26; + } else if((((a11==1)&&(!(a24==1)&&((a3==1)&&((a16==10)&&((a28==1)&&(a19==4))))))&&(((((a1==12)&&(((((((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6))))&&(input==3))&&!(a4==1))&&(a21==12))&&(a20==1)))&&!(a4==1))&&(a17==2))&&!(a18==1)))){ + a9 = 7; + a7 = 0; + a16 = 7; + a6 = 1; + a21 = 10; + a12 = 1; + a19 = 1; + a5 = 4; + return -1; + } else if((((a17==2)&&((a21==11)&&((!(a8==1)&&(((a6==1)&&((((a5==4)||(a5==5))&&(input==1))&&!(a8==1)))&&(a16==8)))&&(a23==1))))&&((a1==13)&&(((!(a20==1)&&(!(a6==1)||(!(a27==1)&&(a28==1))))&&(a19==4))&&(a9==9))))){ + a23 = 1; + a16 = 11; + a21 = 12; + a1 = 12; + a19 = 3; + a5 = 6; + a14 = 0; + a28 = 1; + a20 = 1; + return 21; + } else if(((((a9==9)&&(((a1==12)&&((((input==6)&&(a16==9))&&(a11==1))&&!(a27==1)))&&!(a26==1)))&&!(a20==1))&&(((a17==2)&&(((((a19==2)&&((a24==1)||(a2==1)))||(a27==1))&&(a5==5))&&(a21==11)))||!(a28==1)))){ + a21 = 10; + a22 = 0; + a16 = 7; + a20 = 1; + a2 = 0; + a9 = 7; + a3 = 0; + a1 = 13; + a19 = 1; + return 25; + } else if((((((a5==6)&&(!(a2==1)&&((a8==1)&&((a12==1)&&(a19==1)))))&&(a8==1))&&(a8==1))&&(((a21==10)&&((((a9==8)&&((a1==12)&&(((a16==10)&&(input==3))&&!(a12==1))))&&(a26==1))&&(a17==2)))&&(a20==1)))){ + a20 = 0; + a19 = 2; + a11 = 0; + a24 = 1; + a16 = 7; + a12 = 0; + a9 = 11; + a5 = 4; + return 21; + } else if((((a12==1)&&((a16==8)&&((a19==4)&&(!(a20==1)&&((a13==1)&&(((a21==12)&&(input==1))&&(a28==1)))))))&&((((a5==5)&&(((((a9==8)&&(a2==1))&&!(a7==1))&&(a3==1))&&(a1==13)))&&(a17==2))&&!(a27==1)))){ + if((a12==1)){ + a15 = 1; + a1 = 12; + a21 = 10; + a20 = 1; + a18 = 1; + a16 = 7; + a22 = 0; + a19 = 1; + a9 = 9; + a5 = 6; + }else{ + a9 = 11; + a20 = 1; + a5 = 4; + a18 = 1; + a21 = 10; + a1 = 12; + a19 = 1; + a27 = 1; + a13 = 0; + a16 = 7; + } + return 23; + } else if((((((!(a11==1)||((!(a27==1)&&((a2==1)||!(a11==1)))||!(a11==1)))&&(a19==1))&&(a21==11))&&(a1==13))&&((a17==2)&&((((((input==6)&&(((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))))&&!(a18==1))&&!(a24==1))&&!(a20==1))&&(a16==8))))){ + a16 = 7; + a9 = 7; + a5 = 4; + a0 = 0; + a7 = 0; + a1 = 12; + a20 = 1; + a21 = 10; + a14 = 0; + return -1; + } else if(((((((a11==1)||!(a6==1))&&!(a20==1))&&(a5==5))&&(a17==2))&&(((a19==5)&&((a21==12)&&((a23==1)&&((!(a0==1)&&(((a6==1)&&((a9==8)&&((a16==10)&&(input==5))))&&(a6==1)))&&(a11==1)))))&&(a1==14)))){ + a3 = 0; + a5 = 6; + a6 = 0; + a9 = 7; + a21 = 11; + a23 = 0; + a1 = 13; + a19 = 1; + return -1; + } else if((((((!(a28==1)||((a2==1)&&((a19==2)&&((a6==1)&&(a17==2)))))&&(a20==1))||!(a3==1))&&(a6==1))&&(((a21==11)&&((((((a9==11)&&((a5==6)&&(a1==12)))||((a9==7)&&((a1==13)&&(a5==4))))&&(input==3))&&(a16==11))&&(a13==1)))&&!(a14==1)))){ + a16 = 7; + a19 = 1; + a5 = 4; + a9 = 7; + a21 = 10; + a7 = 0; + a1 = 12; + a26 = 0; + a14 = 0; + return -1; + } else if((((a21==11)&&(!(a11==1)||(((a17==2)&&(!(a12==1)||(a2==1)))&&(a23==1))))&&((!(a20==1)&&(((a16==9)&&(!(a24==1)&&((a6==1)&&((((a9==7)&&((a1==13)&&(a5==4)))||((((a5==5)&&(a1==12))&&(a9==11))||((a9==11)&&((a1==12)&&(a5==6)))))&&(input==1)))))&&(a3==1)))&&(a19==2)))){ + a5 = 4; + a20 = 1; + a10 = 1; + a9 = 9; + a16 = 7; + a25 = 1; + a15 = 1; + a1 = 14; + a21 = 10; + a19 = 1; + return 25; + } else if(((((((a12==1)&&(a16==11))&&(a19==3))||!(a3==1))||(a14==1))&&(((a23==1)&&((((a23==1)&&(((a21==11)&&(((a20==1)&&(((a5==5)||(a5==6))&&(input==1)))&&(a17==2)))&&(a1==14)))&&(a9==9))&&!(a0==1)))&&(a23==1)))){ + a5 = 5; + a9 = 8; + a16 = 10; + a4 = 0; + a6 = 1; + a1 = 12; + a19 = 4; + a23 = 1; + return 21; + } else if((((!(a23==1)||((a13==1)&&((((((a21==12)&&(a6==1))||(a7==1))&&(a19==3))&&(a1==14))&&!(a20==1))))&&(a17==2))&&(!(a26==1)&&(!(a26==1)&&((a3==1)&&((a16==10)&&(((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4)))&&(input==3)))))))){ + a13 = 0; + a9 = 7; + a19 = 4; + a16 = 7; + a5 = 5; + a6 = 0; + a14 = 1; + a21 = 11; + return -1; + } else if((((((a16==11)&&((!(a26==1)&&((a3==1)&&(a19==5)))&&(a2==1)))&&(a21==12))&&(a2==1))&&((!(a7==1)&&((a23==1)&&(((a20==1)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a17==2))&&(a9==7)))&&(a1==13))))&&!(a14==1)))){ + a19 = 1; + a27 = 0; + a12 = 1; + a4 = 0; + a5 = 4; + a1 = 12; + a21 = 10; + a16 = 7; + return -1; + } else if((((((a28==1)&&(((a6==1)&&(a2==1))&&(a16==9)))&&!(a0==1))&&(a17==2))&&(((((a12==1)&&(!(a27==1)&&((((input==4)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&!(a7==1))&&(a19==4))))&&(a1==13))&&!(a20==1))&&(a21==10)))){ + a5 = 5; + a19 = 1; + a9 = 8; + a26 = 1; + a16 = 7; + a20 = 1; + a1 = 12; + a12 = 0; + return 26; + } else if(((!(a24==1)&&((a20==1)&&((a26==1)||((((a11==1)&&(a13==1))&&!(a24==1))||!(a12==1)))))&&(!(a8==1)&&(((((a16==10)&&((a9==10)&&(((input==3)&&((a5==4)||(a5==5)))&&(a1==12))))&&(a21==11))&&(a19==3))&&(a17==2))))){ + a5 = 5; + a28 = 1; + a0 = 0; + a21 = 12; + a1 = 13; + a7 = 0; + return 21; + } else if(((!(a4==1)&&(((a9==9)&&((a13==1)&&((a1==12)&&((((a20==1)&&(input==4))&&(a16==8))&&(a2==1)))))&&(a19==4)))&&((((((a18==1)||((a6==1)&&(a17==2)))||!(a2==1))&&(a28==1))&&(a21==12))&&(a5==4)))){ + a21 = 10; + a18 = 0; + a16 = 7; + a11 = 1; + a19 = 1; + a9 = 7; + a14 = 0; + return -1; + } else if((((a21==11)&&(((((a11==1)&&(((!(a8==1)&&(((input==5)&&((a5==4)||(a5==5)))&&(a9==10)))&&!(a26==1))&&!(a4==1)))&&(a2==1))&&(a20==1))&&!(a0==1)))&&((a19==2)&&(((a1==13)&&((a16==10)&&(a6==1)))&&(a17==2))))){ + a4 = 0; + a13 = 1; + a21 = 10; + a5 = 5; + a12 = 1; + a1 = 14; + a9 = 8; + a16 = 7; + return -1; + } else if((((((a26==1)||(((a26==1)||(((a28==1)&&(a19==1))&&!(a18==1)))&&!(a20==1)))&&!(a7==1))&&(a17==2))&&((a5==5)&&(((!(a14==1)&&((((a1==12)&&(input==1))&&(a13==1))&&(a9==10)))&&(a16==11))&&(a21==10))))){ + a27 = 1; + a16 = 7; + a22 = 0; + a14 = 1; + a9 = 8; + a20 = 1; + a1 = 13; + return 25; + } else if((((a21==12)&&((a28==1)&&(((a20==1)&&((a13==1)&&(a16==8)))||!(a12==1))))&&(((a17==2)&&(((a19==5)&&((!(a27==1)&&(((((a9==11)&&((a1==12)&&(a5==5)))||((a9==11)&&((a1==12)&&(a5==6))))||(((a1==13)&&(a5==4))&&(a9==7)))&&(input==3)))&&(a3==1)))&&(a12==1)))&&(a6==1)))){ + a3 = 1; + a5 = 6; + a16 = 10; + a23 = 1; + a9 = 7; + a24 = 0; + a1 = 12; + return 21; + } else if(((((a9==9)&&((((input==4)&&((a5==4)||(a5==5)))&&(a1==13))&&(a21==11)))&&(a16==9))&&((((!(a27==1)&&((((a20==1)&&(((a3==1)&&(a17==2))&&(a11==1)))&&!(a8==1))&&(a28==1)))&&(a19==3))||(a18==1))||(a18==1)))){ + a21 = 10; + a23 = 1; + a16 = 7; + a6 = 1; + a24 = 0; + a9 = 7; + a19 = 1; + a5 = 4; + a1 = 12; + return -1; + } else if((((a19==5)&&((!(a26==1)&&(((((((a12==1)||(a27==1))&&!(a24==1))&&(a21==12))||(a4==1))||!(a28==1))&&(a20==1)))&&(a16==8)))&&((((a1==12)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==6)))&&!(a7==1))&&(a17==2)))){ + a14 = 0; + a19 = 4; + a16 = 10; + a5 = 6; + a9 = 7; + a23 = 1; + a7 = 0; + a1 = 14; + return 21; + } else if(((!(a20==1)&&((a3==1)&&((a13==1)&&((a21==10)&&(((((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))&&(input==6))&&(a11==1))&&(a19==4))))))&&(((!(a8==1)&&((((a28==1)||!(a3==1))&&!(a4==1))&&(a1==13)))&&(a16==11))&&(a17==2)))){ + if((a20==1)){ + a19 = 1; + a27 = 1; + a26 = 1; + a16 = 7; + a9 = 8; + a20 = 1; + a24 = 1; + a5 = 5; + }else{ + a5 = 4; + a16 = 7; + a15 = 0; + a14 = 1; + a9 = 10; + a1 = 14; + a20 = 1; + a19 = 1; + a29 = 1; + } + return -1; + } else if((((a5==6)&&((((a21==11)&&((a3==1)&&((a16==7)&&((a20==1)&&(input==6)))))&&(a1==12))&&(a9==8)))&&((((a17==2)&&(!(a6==1)||((!(a27==1)&&((a11==1)&&(a19==4)))&&(a13==1))))||!(a12==1))||(a24==1)))){ + a18 = 0; + a9 = 7; + a16 = 8; + a5 = 4; + a19 = 3; + a3 = 1; + a2 = 1; + return 22; + } else if(((((a17==2)&&(!(a23==1)&&((((a7==1)&&((input==5)&&(((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6))))))&&(a19==4))&&(a16==10))))&&!(a12==1))&&(!(a12==1)&&((a21==11)&&((a1==14)&&((((a20==1)&&(a6==1))&&(a26==1))&&!(a2==1))))))){ + a5 = 5; + a13 = 0; + a16 = 7; + a21 = 10; + a9 = 8; + a19 = 1; + a6 = 0; + a1 = 13; + a23 = 0; + return -1; + } else if(((((((a1==14)&&((a21==11)&&(!(a27==1)&&(!(a13==1)||(a6==1)))))&&(a17==2))&&(a19==5))||(a26==1))&&((a5==4)&&(((((a2==1)&&(((a16==10)&&(input==1))&&!(a24==1)))&&(a6==1))&&(a9==9))&&!(a20==1))))){ + if((a20==1)){ + a20 = 1; + a16 = 7; + a1 = 12; + a19 = 2; + a21 = 10; + a10 = 1; + a7 = 1; + }else{ + a16 = 11; + a1 = 13; + a9 = 7; + a14 = 1; + a19 = 3; + a27 = 1; + a21 = 10; + a5 = 5; + a25 = 0; + } + return 21; + } else if((((((!(a0==1)&&(a12==1))&&(a23==1))||!(a13==1))&&!(a7==1))&&((a1==14)&&((a17==2)&&((a20==1)&&(((a16==8)&&((a11==1)&&(((a11==1)&&((((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6))))&&(input==6)))&&(a19==2))))&&(a21==11))))))){ + a21 = 10; + a27 = 0; + a19 = 5; + a7 = 0; + a9 = 9; + a3 = 1; + a1 = 13; + a5 = 4; + return -1; + } else if((((((a16==8)&&((a6==1)&&((a1==12)&&(((a17==2)&&(input==4))&&(a20==1)))))&&(a23==1))&&!(a8==1))&&((((a9==11)&&(((a11==1)&&(((a6==1)||(a7==1))&&(a21==11)))&&(a19==1)))&&!(a14==1))&&(a5==4)))){ + a16 = 7; + a9 = 7; + a6 = 1; + a18 = 0; + a21 = 10; + a12 = 1; + return -1; + } else if((((a9==7)&&((((a17==2)&&((a19==1)&&((!(a7==1)&&((a12==1)&&(a2==1)))&&(a16==9))))||(a8==1))&&(a1==12)))&&((((a21==10)&&(!(a20==1)&&(((input==4)&&((a5==5)||(a5==6)))&&!(a24==1))))&&!(a4==1))&&(a23==1)))){ + a20 = 1; + a9 = 11; + a14 = 1; + a5 = 6; + a1 = 14; + a26 = 1; + a11 = 0; + a16 = 7; + return -1; + } else if(((((a16==8)&&((!(a12==1)||((!(a11==1)||((a11==1)&&((a28==1)&&(a20==1))))&&(a1==13)))&&!(a24==1)))&&(a21==10))&&(((a19==4)&&(((a13==1)&&((input==1)&&(((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7))))))&&!(a26==1)))&&(a17==2)))){ + a5 = 6; + a23 = 1; + a9 = 8; + a0 = 0; + a19 = 1; + a21 = 12; + a1 = 14; + return 21; + } else if(((((a16==8)&&(((a9==7)&&((a12==1)&&((!(a4==1)&&(!(a24==1)&&((input==3)&&(a5==6))))&&(a17==2))))&&(a11==1)))&&(a1==14))&&(!(a23==1)||(((((a2==1)||!(a12==1))&&(a21==11))&&!(a20==1))&&(a19==1))))){ + a21 = 10; + a5 = 4; + a16 = 7; + a0 = 0; + a8 = 0; + a27 = 0; + a20 = 1; + a1 = 12; + return -1; + } else if(((((a19==4)&&((a9==10)&&((a11==1)&&((((input==1)&&(a21==11))&&(a17==2))&&(a16==7)))))&&(a6==1))&&(!(a28==1)||(!(a23==1)||((((a1==12)&&(((a3==1)&&(a20==1))||!(a13==1)))&&(a5==6))&&!(a0==1)))))){ + a9 = 9; + a13 = 1; + a5 = 5; + a7 = 0; + a19 = 3; + a27 = 0; + a1 = 13; + a16 = 8; + return 23; + } else if(((!(a20==1)&&(((a18==1)||(((a11==1)&&(a17==2))&&(a19==4)))||(a18==1)))&&(((((a16==9)&&(((a1==13)&&(((((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))&&(input==4))&&!(a18==1)))&&!(a0==1)))&&!(a18==1))&&(a21==12))&&!(a24==1)))){ + if((a17==4)){ + a1 = 12; + a9 = 11; + a5 = 5; + a3 = 0; + a21 = 10; + a8 = 1; + a14 = 1; + a19 = 2; + a20 = 1; + a16 = 7; + }else{ + a19 = 1; + a20 = 1; + a23 = 0; + a25 = 1; + a1 = 14; + a5 = 6; + a27 = 1; + a21 = 10; + a9 = 8; + a16 = 7; + } + return 21; + } else if((((a24==1)||(((a19==2)&&((a23==1)&&((((((a9==11)&&((a21==12)&&(a3==1)))&&(a16==7))&&!(a26==1))&&(a6==1))||!(a3==1))))||!(a12==1)))&&((a1==13)&&((a17==2)&&((a20==1)&&((a5==5)&&(input==6))))))){ + a19 = 1; + a14 = 0; + a21 = 10; + a18 = 0; + a9 = 7; + a1 = 12; + a5 = 4; + return -1; + } else if((((((a2==1)&&(((input==5)&&((a5==4)||(a5==5)))&&(a19==4)))&&(a9==7))&&(a17==2))&&((a1==14)&&(((((((a27==1)||((!(a26==1)&&(a3==1))&&(a6==1)))||(a0==1))||!(a23==1))&&(a20==1))&&(a16==7))&&(a21==10))))){ + a19 = 3; + a13 = 1; + a1 = 13; + a27 = 0; + a16 = 8; + a21 = 11; + a20 = 0; + a5 = 4; + a9 = 10; + a28 = 1; + return 23; + } else if((((a28==1)&&(((a1==14)&&(!(a8==1)&&((a19==1)&&((a17==2)&&((a11==1)&&(((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9)))&&(input==3)))))))&&!(a20==1)))&&(!(a27==1)&&((((a16==7)&&((a21==11)&&(a23==1)))||(a26==1))&&!(a8==1))))){ + a26 = 0; + a20 = 1; + a18 = 0; + a9 = 7; + a1 = 12; + a5 = 4; + a21 = 10; + a4 = 0; + return -1; + } else if((((!(a23==1)||(((a17==2)&&(((a9==9)&&(a6==1))&&(a19==3)))||!(a12==1)))||!(a3==1))&&(((a5==5)&&(!(a4==1)&&(!(a20==1)&&((a3==1)&&((((input==6)&&(a1==12))&&(a21==10))&&(a16==7))))))&&(a28==1)))){ + a9 = 7; + a19 = 5; + a16 = 11; + a11 = 1; + a1 = 13; + a21 = 11; + a20 = 1; + a18 = 0; + return 21; + } else if((((((((((a17==2)&&(((a5==4)||(a5==5))&&(input==1)))&&(a16==7))&&(a3==1))&&(a13==1))&&!(a20==1))&&(a12==1))&&!(a14==1))&&((a19==2)&&(!(a8==1)&&(((((a13==1)&&(a1==13))&&!(a27==1))&&(a9==11))&&(a21==10)))))){ + a20 = 1; + a13 = 1; + a9 = 7; + a19 = 1; + a5 = 4; + a1 = 12; + a3 = 1; + a14 = 0; + return -1; + } else if((((a7==1)||((((a2==1)&&(a11==1))&&(a1==14))&&(a16==10)))&&(!(a18==1)&&((((((((a2==1)&&((a20==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3))))&&(a17==2))&&(a9==7))&&(a21==12))&&(a19==2))&&!(a18==1))&&(a28==1))))){ + a26 = 0; + a4 = 0; + a18 = 0; + a19 = 1; + a21 = 10; + a1 = 12; + a5 = 4; + a16 = 7; + return -1; + } else if((((a21==12)&&((a9==10)&&((a1==14)&&(((a13==1)&&(a19==4))&&(a12==1)))))&&((((a5==4)&&(!(a14==1)&&(((((a13==1)&&((a20==1)&&(input==1)))&&(a6==1))&&(a16==9))&&!(a24==1))))&&(a28==1))&&(a17==2)))){ + a9 = 7; + a19 = 1; + a2 = 1; + a16 = 7; + a12 = 1; + a21 = 10; + a18 = 0; + a1 = 12; + return -1; + } else if(((((a21==10)&&((a16==9)&&((a19==1)&&(((a13==1)&&(((((input==5)&&((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4))))&&(a23==1))&&(a17==2))&&(a1==14)))&&(a12==1)))))&&!(a4==1))&&((a8==1)||((a3==1)&&((a20==1)&&(a13==1)))))){ + a5 = 5; + a21 = 12; + a9 = 10; + a19 = 3; + a28 = 1; + a0 = 0; + a1 = 12; + return 21; + } else if((((a16==10)&&((a19==1)&&(((a9==11)&&((((((a21==10)&&(input==6))&&!(a0==1))&&(a5==4))&&(a1==12))&&(a28==1)))&&(a11==1))))&&(((a17==2)&&((a24==1)||((!(a8==1)&&(a23==1))&&(a2==1))))&&(a20==1)))){ + a16 = 7; + a7 = 0; + a9 = 7; + return -1; + } else if((((a7==1)||((a2==1)&&(((a23==1)||!(a12==1))&&!(a24==1))))&&((a3==1)&&((((a21==11)&&((((((((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(input==6))&&(a17==2))&&(a20==1))&&(a1==12))&&!(a24==1)))&&(a19==3))&&(a16==11))))){ + a9 = 7; + a19 = 1; + a18 = 0; + a5 = 4; + a21 = 10; + a8 = 0; + a16 = 7; + return -1; + } else if((((a16==11)&&((a9==11)&&(((a13==1)&&((a17==2)&&((a19==3)&&((input==6)&&((a5==4)||(a5==5))))))&&!(a26==1))))&&(!(a26==1)&&((!(a3==1)||((a21==10)&&((a26==1)||((a1==14)&&(!(a20==1)&&(a6==1))))))||!(a2==1))))){ + if((a1==14)){ + a15 = 1; + a5 = 5; + a20 = 1; + a3 = 0; + a29 = 0; + a16 = 7; + a19 = 1; + a9 = 9; + }else{ + a27 = 1; + a4 = 1; + a16 = 7; + a5 = 5; + a19 = 1; + a20 = 1; + a3 = 0; + a9 = 9; + } + return -1; + } else if(((((a17==2)&&((((a21==10)&&(!(a18==1)&&((a5==4)&&(input==6))))&&(a13==1))&&(a16==7)))&&(a9==11))&&(!(a20==1)&&(((a23==1)&&((a19==4)&&((a12==1)&&((a27==1)||((a6==1)||!(a6==1))))))&&(a1==13))))){ + a5 = 5; + a9 = 7; + a27 = 0; + a13 = 1; + a19 = 5; + a1 = 12; + return 25; + } else if((((a21==11)&&((!(a2==1)||((a5==4)&&((a20==1)&&(((a23==1)||(a7==1))||(a27==1)))))||!(a23==1)))&&((a17==2)&&(((a1==12)&&(!(a0==1)&&((((input==4)&&(a19==5))&&(a9==8))&&(a16==11))))&&!(a0==1))))){ + a13 = 1; + a9 = 7; + a19 = 1; + a21 = 10; + a27 = 0; + a16 = 7; + a11 = 1; + return -1; + } else if(((((a17==2)&&((a16==7)&&((a21==11)&&(input==4))))&&(a12==1))&&((a8==1)||((a19==3)&&((a1==14)&&((a7==1)||((a8==1)||((a9==9)&&((a3==1)&&(((a20==1)&&((a11==1)&&(a3==1)))&&(a5==6))))))))))){ + a1 = 12; + a24 = 0; + a19 = 1; + a5 = 4; + a0 = 0; + a21 = 10; + a23 = 1; + a9 = 7; + return -1; + } else if((((a21==11)&&((((a1==14)&&(((((input==1)&&!(a20==1))&&!(a26==1))&&!(a8==1))&&(a16==7)))&&(a19==5))&&(a17==2)))&&((a9==11)&&((((!(a8==1)&&((a23==1)&&(a13==1)))&&(a5==4))||(a14==1))||!(a2==1))))){ + if((a29==1)){ + a4 = 0; + a19 = 2; + a21 = 10; + a24 = 0; + a16 = 8; + a0 = 0; + a9 = 10; + a5 = 5; + }else{ + a4 = 0; + a19 = 2; + a21 = 10; + a20 = 1; + a12 = 1; + a13 = 1; + a1 = 13; + } + return 21; + } else if(((((((a23==1)&&((a28==1)&&((!(a0==1)&&(((input==4)&&(a1==12))&&(a5==4)))&&(a19==3))))&&(a12==1))&&(a13==1))&&(a20==1))&&((((a9==11)&&(!(a2==1)||((a16==8)&&(a2==1))))&&(a17==2))&&(a21==11)))){ + a3 = 1; + a19 = 1; + a0 = 0; + a9 = 7; + a21 = 10; + a16 = 7; + return -1; + } else if(((((((input==3)&&(((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))))&&(a1==13))&&(a2==1))&&!(a20==1))&&(!(a7==1)&&(!(a24==1)&&(((a23==1)&&(((a17==2)&&((a19==5)&&((a16==10)&&(!(a3==1)||(a13==1)))))&&(a21==10)))&&!(a0==1)))))){ + a12 = 0; + a19 = 1; + a20 = 1; + a5 = 5; + a10 = 0; + a16 = 7; + a9 = 7; + a13 = 0; + return -1; + } else if((((a19==2)&&((a21==10)&&(((a20==1)&&(!(a26==1)&&((((a17==2)&&(((((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&(input==4))&&(a1==14)))&&!(a26==1))&&!(a7==1))))&&(a16==9))))&&((((a28==1)&&!(a26==1))&&!(a0==1))||!(a13==1)))){ + a28 = 1; + a13 = 1; + a1 = 13; + a0 = 0; + a5 = 6; + a16 = 10; + a9 = 11; + a21 = 11; + return 25; + } else if((((!(a20==1)&&(((a17==2)&&(((a0==1)||(a12==1))||!(a23==1)))&&(a1==12)))||(a14==1))&&((a12==1)&&((a16==10)&&((((a21==11)&&((a19==5)&&(((input==5)&&(a9==7))&&(a5==4))))&&(a11==1))&&(a2==1)))))){ + a16 = 11; + a1 = 13; + a23 = 0; + a28 = 0; + a21 = 10; + a5 = 6; + a18 = 1; + a19 = 1; + a9 = 8; + return 21; + } else if(((((a21==11)&&(!(a23==1)||((((a5==5)&&(a12==1))&&(a17==2))&&(a19==5))))||(a26==1))&&(((a1==14)&&((((a6==1)&&((((input==5)&&(a16==10))&&(a12==1))&&(a20==1)))&&(a9==7))&&(a13==1)))&&(a13==1)))){ + a14 = 0; + a16 = 7; + a18 = 0; + a0 = 0; + a19 = 1; + a21 = 10; + a1 = 12; + a5 = 4; + return -1; + } else if((((a19==5)&&((a12==1)&&((a11==1)&&((a3==1)&&(((a21==11)&&((input==3)&&((a5==5)||(a5==6))))&&!(a26==1))))))&&(!(a20==1)&&(((a17==2)&&(!(a11==1)||((a16==8)&&(((a23==1)&&(a9==9))&&(a1==14)))))||!(a11==1))))){ + if((a11==1)){ + a21 = 12; + a4 = 1; + a16 = 10; + a9 = 7; + a27 = 1; + a5 = 6; + a6 = 0; + }else{ + a9 = 7; + a25 = 0; + a7 = 1; + a16 = 10; + a5 = 5; + a19 = 4; + a22 = 0; + a21 = 10; + } + return -1; + } else if((((((a11==1)&&(!(a14==1)&&((((a13==1)&&(!(a27==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6))))&&(a1==14))&&(a20==1))))&&(a16==8))&&!(a4==1))&&((a17==2)&&(((((a21==11)&&(a3==1))&&!(a0==1))&&(a9==9))&&(a19==1))))){ + a19 = 3; + a1 = 13; + a2 = 1; + a16 = 10; + a3 = 1; + a5 = 5; + a27 = 0; + a21 = 10; + return 22; + } else if((((((a4==1)||(((a12==1)&&(a13==1))&&(a3==1)))&&!(a24==1))&&!(a20==1))&&((a1==12)&&(((a17==2)&&((!(a4==1)&&(!(a18==1)&&((a19==4)&&((input==6)&&(((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))))))&&(a21==10)))&&(a16==9))))){ + a23 = 0; + a5 = 5; + a15 = 0; + a16 = 7; + a9 = 7; + a1 = 14; + a20 = 1; + a13 = 0; + a19 = 1; + return -1; + } else if((((((a0==1)||(a3==1))||!(a2==1))&&(a17==2))&&((((((a13==1)&&((((a6==1)&&((a3==1)&&(((a21==11)&&(input==4))&&(a9==11))))&&(a19==3))&&(a5==6)))&&(a1==14))&&!(a8==1))&&(a16==9))&&(a20==1)))){ + a16 = 7; + a21 = 10; + a28 = 1; + a9 = 7; + a24 = 0; + a5 = 4; + a7 = 0; + a1 = 12; + a19 = 1; + return -1; + } else if((((a4==1)||(!(a20==1)&&(((a21==11)&&(a23==1))&&(a17==2))))&&(!(a8==1)&&(!(a0==1)&&(!(a18==1)&&(((a16==10)&&((a1==14)&&((((input==1)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&!(a24==1))&&(a19==2))))&&(a2==1))))))){ + a2 = 0; + a20 = 1; + a5 = 5; + a16 = 8; + a21 = 12; + a9 = 8; + a19 = 3; + a27 = 1; + a22 = 1; + return -1; + } else if((((a17==2)&&(((a28==1)&&((a5==5)&&((a16==7)&&(a11==1))))&&(a19==5)))&&(((a6==1)&&(((a1==12)&&((!(a20==1)&&(!(a8==1)&&((a21==10)&&((a9==7)&&(input==6)))))&&(a2==1)))&&!(a27==1)))&&(a13==1)))){ + a20 = 1; + a19 = 4; + a9 = 9; + a18 = 0; + a16 = 9; + a5 = 6; + a26 = 0; + a11 = 1; + a21 = 11; + a1 = 14; + return 21; + } else if((((a20==1)&&((a9==9)&&((!(a26==1)&&(((a2==1)&&((a5==4)&&(input==6)))&&(a28==1)))&&(a1==12))))&&((a17==2)&&((((((a19==3)&&(!(a2==1)||(a12==1)))&&(a21==12))||(a18==1))||!(a6==1))&&(a16==8))))){ + a16 = 7; + a2 = 1; + a21 = 10; + a4 = 0; + a6 = 1; + a1 = 13; + a5 = 5; + a19 = 2; + return 25; + } else if(((((((a13==1)&&(((!(a7==1)&&(((input==5)&&((a5==5)||(a5==6)))&&!(a26==1)))&&(a1==12))&&!(a14==1)))&&(a9==10))&&(a17==2))&&(a16==8))&&((a21==11)&&(((a18==1)||(((a23==1)||(a26==1))&&!(a20==1)))&&(a19==2))))){ + a3 = 1; + a4 = 0; + a19 = 5; + a21 = 10; + a20 = 1; + a5 = 4; + a27 = 0; + a9 = 9; + return -1; + } else if((((a1==14)&&((((a9==9)&&((a20==1)&&(((!(a8==1)&&((input==5)&&((a5==4)||(a5==5))))&&(a17==2))&&!(a27==1))))&&!(a4==1))&&(a12==1)))&&((!(a13==1)||((a16==10)&&((a18==1)||((a21==12)&&(a23==1)))))&&(a19==4)))){ + a1 = 12; + a0 = 0; + a21 = 10; + a19 = 1; + a5 = 4; + a7 = 0; + a2 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if((((a1==14)&&(((a7==1)||((!(a28==1)||((a20==1)&&(a23==1)))&&(a19==3)))&&(a21==11)))&&(((((a16==9)&&((!(a27==1)&&((a17==2)&&((input==5)&&((a5==4)||(a5==5)))))&&!(a26==1)))&&(a9==8))&&!(a7==1))&&(a11==1)))){ + a5 = 5; + a7 = 0; + a16 = 11; + a23 = 1; + a21 = 10; + a2 = 1; + a9 = 11; + return 22; + } else if(((((a12==1)&&((a1==14)&&(((a19==4)&&(input==6))&&(a21==12))))&&(a11==1))&&(((a5==4)&&((a17==2)&&(((a16==9)&&(((((a2==1)&&(a2==1))||(a14==1))&&(a20==1))||(a24==1)))||(a7==1))))&&(a9==9)))){ + a1 = 12; + a9 = 7; + a3 = 1; + a16 = 7; + a14 = 0; + a7 = 0; + a21 = 10; + a19 = 1; + return -1; + } else if(((((a12==1)&&((a13==1)&&((a21==12)&&((((a20==1)&&(!(a14==1)&&(((a19==1)&&(input==6))&&(a28==1))))&&!(a24==1))&&(a17==2)))))&&(a1==12))&&((!(a7==1)&&(((a9==7)&&(a28==1))&&(a16==8)))&&(a5==5)))){ + a16 = 7; + a14 = 0; + a5 = 4; + a21 = 10; + a11 = 1; + a7 = 0; + return -1; + } else if(((((a24==1)||((a16==8)&&((!(a20==1)&&(a13==1))&&(a17==2))))&&!(a14==1))&&(!(a26==1)&&((((a19==5)&&(((a2==1)&&((input==5)&&(((a9==11)&&((a5==6)&&(a1==13)))||(((a1==14)&&(a5==4))&&(a9==7)))))&&(a21==11)))&&(a28==1))&&(a2==1))))){ + a9 = 11; + a28 = 0; + a11 = 0; + a12 = 0; + a19 = 2; + a5 = 6; + a1 = 14; + a16 = 9; + return 25; + } else if((((!(a13==1)||((a1==14)&&((a19==4)&&(((a23==1)&&(a21==10))&&(a16==11)))))&&(a2==1))&&((a9==9)&&(((a17==2)&&(((a12==1)&&((((input==6)&&((a5==5)||(a5==6)))&&(a3==1))&&(a20==1)))&&!(a4==1)))&&(a23==1))))){ + a19 = 1; + a1 = 12; + a5 = 4; + a26 = 0; + a27 = 0; + a9 = 7; + a16 = 7; + return -1; + } else if((((a11==1)&&(!(a7==1)&&((((a1==13)&&((!(a4==1)&&((((a5==5)||(a5==6))&&(input==3))&&(a20==1)))&&(a19==1)))&&(a21==11))&&!(a8==1))))&&(((a17==2)&&((a16==10)&&(!(a13==1)||((a2==1)&&(a9==7)))))&&!(a14==1)))){ + a23 = 1; + a21 = 10; + a1 = 14; + a24 = 0; + a19 = 2; + a9 = 9; + a5 = 4; + a8 = 0; + return 21; + } else if((((a21==12)&&((a28==1)&&((a17==2)&&((((a9==11)&&((((a23==1)&&((input==3)&&(a5==4)))&&!(a18==1))&&(a1==12)))&&!(a14==1))&&(a11==1)))))&&(((((a20==1)&&(a2==1))||(a4==1))&&(a16==9))&&(a19==4)))){ + a21 = 10; + a24 = 0; + a28 = 1; + a19 = 1; + a9 = 7; + a13 = 1; + a16 = 7; + return -1; + } else if(((((a21==10)&&(!(a18==1)&&((((a19==2)&&(input==6))&&!(a20==1))&&!(a14==1))))&&(a9==7))&&((((!(a27==1)&&(((((a12==1)||(a0==1))&&(a5==6))||(a27==1))&&(a17==2)))||(a24==1))&&(a1==12))&&(a16==10)))){ + if((a29==1)){ + a29 = 1; + a8 = 1; + a9 = 11; + a16 = 7; + a13 = 0; + a5 = 5; + a20 = 1; + a19 = 1; + }else{ + a9 = 8; + a21 = 12; + a2 = 0; + a20 = 1; + a1 = 14; + a10 = 0; + a16 = 11; + a28 = 0; + } + return -1; + } else if(((((((((a17==2)&&(!(a7==1)&&(((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a0==1))))&&(a1==14))&&(a11==1))&&!(a27==1))&&!(a4==1))&&(a21==11))&&(((a6==1)&&((a19==1)&&(((a13==1)&&!(a20==1))&&(a16==8))))&&(a9==8)))){ + a9 = 7; + a20 = 1; + a27 = 0; + a21 = 10; + a13 = 1; + a28 = 1; + a16 = 7; + a5 = 4; + a1 = 12; + return -1; + } else if((((a11==1)&&(!(a0==1)&&(!(a20==1)&&((a21==11)&&((a17==2)&&(((a23==1)&&((((a9==11)&&((a1==13)&&(a5==6)))||(((a5==4)&&(a1==14))&&(a9==7)))&&(input==5)))&&!(a4==1)))))))&&(((a3==1)&&(((a2==1)&&(a19==3))||!(a3==1)))&&(a16==10)))){ + if((a5==5)){ + a1 = 13; + a9 = 7; + a20 = 1; + a22 = 0; + a15 = 1; + a24 = 1; + a5 = 5; + a16 = 8; + a19 = 2; + }else{ + a19 = 1; + a4 = 1; + a21 = 10; + a5 = 6; + a1 = 14; + a28 = 0; + a9 = 7; + a20 = 1; + a8 = 1; + a16 = 7; + } + return 26; + } else if((((a17==2)&&(!(a27==1)&&((!(a24==1)&&((input==3)&&(((a19==3)&&((a9==7)&&((a1==12)&&(a5==5))))||(((a19==2)&&((a9==11)&&((a1==14)&&(a5==6))))||((a19==3)&&((a9==7)&&((a1==12)&&(a5==4))))))))&&!(a20==1))))&&((((a21==11)&&(!(a24==1)&&((a26==1)||((a16==8)&&(a12==1)))))||!(a6==1))&&!(a7==1)))){ + a9 = 7; + a11 = 1; + a19 = 1; + a21 = 10; + a1 = 12; + a16 = 7; + a20 = 1; + a2 = 1; + a5 = 4; + return -1; + } else if((((a2==1)&&(!(a14==1)&&((((a19==2)&&((((((a1==13)&&(a5==5))&&(a9==11))||(((a1==13)&&(a5==6))&&(a9==11)))||((a9==7)&&((a5==4)&&(a1==14))))&&(input==5)))&&!(a24==1))&&(a21==12))))&&(((((((a16==10)&&(a12==1))||(a26==1))&&(a17==2))&&!(a20==1))&&!(a14==1))||!(a2==1)))){ + a9 = 9; + a1 = 14; + a19 = 5; + a23 = 0; + a22 = 0; + a26 = 1; + a5 = 5; + a20 = 1; + return 25; + } else if(((((((a5==4)&&(!(a14==1)&&(!(a24==1)&&(((a13==1)&&(((a19==4)&&(input==5))&&!(a27==1)))&&(a21==12)))))&&(a1==12))&&(a20==1))&&(a16==8))&&(((a17==2)&&(!(a3==1)||((a6==1)&&(a13==1))))&&(a9==11)))){ + a18 = 0; + a1 = 14; + a16 = 10; + a19 = 3; + a8 = 0; + a3 = 1; + a9 = 7; + return 23; + } else if(((((a9==10)&&((a16==7)&&((((!(a20==1)&&(input==5))&&!(a26==1))&&!(a0==1))&&(a3==1))))&&(a21==10))&&(((a5==6)&&((((a24==1)||(((a17==2)&&(a3==1))||(a0==1)))&&(a19==4))&&!(a18==1)))&&(a1==13)))){ + a9 = 7; + a5 = 4; + a20 = 1; + a1 = 12; + a19 = 1; + a7 = 0; + a27 = 0; + return -1; + } else if((((a1==14)&&((a16==9)&&(((a9==8)&&(((a20==1)&&((a21==11)&&(((a28==1)||!(a12==1))&&(a19==3))))||!(a12==1)))&&(a17==2))))&&((((a6==1)&&((((a5==4)||(a5==5))&&(input==4))&&!(a14==1)))&&(a23==1))&&!(a26==1)))){ + a0 = 0; + a9 = 7; + a19 = 1; + a5 = 4; + a21 = 10; + a16 = 7; + a8 = 0; + a1 = 12; + a24 = 0; + return -1; + } else if((((((a1==13)&&(((a11==1)&&((input==3)&&((a5==4)||(a5==5))))&&(a19==2)))&&(a21==12))&&!(a20==1))&&(((a16==8)&&((a9==7)&&(((!(a23==1)||((a2==1)&&((a23==1)||(a0==1))))||!(a23==1))&&(a11==1))))&&(a17==2)))){ + if((a24==1)){ + a15 = 1; + a13 = 0; + a16 = 9; + a20 = 1; + a14 = 1; + a5 = 4; + a1 = 12; + }else{ + a20 = 1; + a22 = 1; + a19 = 5; + a1 = 14; + a16 = 11; + a5 = 6; + a11 = 0; + a9 = 9; + } + return -1; + } else if((((((a3==1)&&((((a17==2)&&(!(a7==1)&&(a28==1)))&&(a21==12))&&(a1==12)))||!(a6==1))&&(a2==1))&&((a16==7)&&((!(a14==1)&&(((a19==4)&&((input==6)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))&&(a20==1)))&&(a23==1))))){ + a5 = 5; + a19 = 1; + a0 = 0; + a26 = 0; + a27 = 0; + a1 = 13; + a21 = 11; + a16 = 9; + a9 = 9; + return 25; + } else if((((!(a26==1)&&(!(a14==1)&&((!(a24==1)&&((a9==10)&&(((input==1)&&((a5==4)||(a5==5)))&&(a21==10))))&&(a13==1))))&&!(a18==1))&&((!(a24==1)&&((a16==10)&&(((a19==1)&&((a1==12)&&(a3==1)))&&(a17==2))))&&!(a20==1)))){ + if((a13==1)){ + a4 = 1; + a16 = 7; + a25 = 1; + a5 = 4; + a20 = 1; + a27 = 1; + a1 = 13; + }else{ + a24 = 1; + a16 = 7; + a19 = 5; + a5 = 5; + a11 = 0; + a1 = 13; + a0 = 1; + a21 = 12; + } + return -1; + } else if((((a16==7)&&((a12==1)&&(((a20==1)&&((a17==2)&&(((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a11==1))))&&(a12==1))))&&((a26==1)||((((a19==1)&&((a9==10)&&(((a28==1)&&(a28==1))&&(a21==11))))&&(a1==13))&&(a13==1))))){ + a4 = 0; + a9 = 7; + a5 = 4; + a14 = 0; + a1 = 12; + a21 = 10; + a18 = 0; + return -1; + } else if(((((a20==1)&&((a12==1)&&((a13==1)&&(a23==1))))&&(a23==1))&&(((a19==1)&&((a1==14)&&((a16==10)&&((!(a18==1)&&((a21==10)&&((a17==2)&&((input==4)&&(((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))))))&&!(a0==1)))))&&(a6==1)))){ + a28 = 1; + a16 = 7; + a18 = 0; + a1 = 12; + a9 = 7; + a5 = 4; + a8 = 0; + return -1; + } else if(((((a9==8)&&((a5==6)&&(!(a11==1)||((a3==1)&&(a19==5)))))&&(a20==1))&&(!(a24==1)&&(((!(a8==1)&&((a6==1)&&((a17==2)&&(((a16==11)&&((input==6)&&(a21==12)))&&!(a8==1)))))&&(a1==13))&&!(a24==1))))){ + a19 = 1; + a1 = 12; + a14 = 0; + a5 = 4; + a16 = 7; + a21 = 10; + a8 = 0; + a9 = 7; + return -1; + } else if(((!(a26==1)&&((!(a8==1)&&((((a17==2)&&(input==1))&&!(a20==1))&&!(a14==1)))&&(a5==5)))&&(!(a4==1)&&((((((a0==1)||(((a2==1)&&(a16==7))&&(a19==3)))&&(a1==12))&&(a9==9))&&(a21==10))&&!(a0==1))))){ + a27 = 0; + a19 = 2; + a21 = 11; + a23 = 1; + a14 = 0; + a20 = 1; + a16 = 11; + a9 = 11; + return 21; + } else if((((a21==11)&&((((((((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4)))&&(input==6))&&(a19==5))&&!(a14==1))&&(a13==1)))&&(((!(a20==1)&&(!(a2==1)||((a17==2)&&(((a28==1)&&((a1==13)&&(a13==1)))&&!(a4==1)))))||!(a6==1))&&(a16==8)))){ + if((a13==1)){ + a20 = 1; + a9 = 10; + a19 = 1; + a5 = 5; + a13 = 0; + a21 = 10; + a3 = 0; + a16 = 7; + }else{ + a19 = 4; + a25 = 0; + a13 = 0; + a16 = 10; + a1 = 14; + a8 = 1; + a5 = 6; + a20 = 1; + a21 = 10; + a9 = 11; + } + return 25; + } else if(((!(a7==1)&&((a7==1)||((a2==1)&&(a17==2))))&&(((((!(a8==1)&&((a20==1)&&(((((a1==12)&&((input==6)&&((a5==5)||(a5==6))))&&(a9==9))&&(a2==1))&&(a21==12))))&&(a19==4))&&(a16==8))&&(a12==1))&&!(a7==1)))){ + a4 = 0; + a19 = 2; + a16 = 7; + a5 = 4; + a0 = 0; + a1 = 13; + a21 = 10; + a28 = 1; + return 25; + } else if((((!(a13==1)||(!(a28==1)||(((a0==1)||((a16==7)&&(((a17==2)&&((a13==1)&&(a1==14)))&&!(a20==1))))&&(a12==1))))||!(a13==1))&&(((!(a27==1)&&((input==4)&&((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a5==4)&&(a9==11)))))&&(a21==11))&&(a19==1)))){ + a9 = 7; + a1 = 12; + a27 = 0; + a21 = 10; + a26 = 0; + a5 = 4; + a20 = 1; + a28 = 1; + return -1; + } else if((((a16==9)&&(!(a8==1)&&((a20==1)&&(((a21==12)&&(!(a27==1)&&((input==1)&&((a5==4)||(a5==5)))))&&(a17==2)))))&&((a7==1)||((a2==1)&&((a9==10)&&((a19==2)&&(((a1==12)&&(!(a28==1)||(a2==1)))||!(a23==1)))))))){ + a9 = 8; + a21 = 10; + a19 = 1; + a14 = 0; + a5 = 4; + a4 = 0; + a27 = 0; + a1 = 14; + return -1; + } else if((((a3==1)&&((a20==1)&&((((a0==1)||(((a23==1)&&(a1==13))&&(a3==1)))&&(a12==1))&&(a21==11))))&&(((((a17==2)&&(((input==4)&&(((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))&&(a19==1)))&&!(a7==1))&&(a16==8))&&(a12==1)))){ + a16 = 7; + a1 = 12; + a21 = 10; + a9 = 7; + a12 = 1; + a3 = 1; + a5 = 4; + a23 = 1; + return -1; + } else if(((((a6==1)&&(((a19==1)&&((a1==12)&&((a20==1)&&((input==6)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))))))&&!(a24==1)))&&!(a18==1))&&(!(a0==1)&&(((a17==2)&&((((a16==8)&&(a6==1))||!(a12==1))&&!(a24==1)))&&(a21==10))))){ + a5 = 4; + a23 = 1; + a6 = 1; + a21 = 12; + a1 = 14; + a16 = 9; + a9 = 11; + a0 = 0; + return 22; + } else if(((((a17==2)&&((a20==1)&&((input==6)&&(((((a5==5)&&(a1==12))&&(a9==7))&&(a19==5))||((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==4))||((a19==5)&&(((a5==4)&&(a1==12))&&(a9==7))))))))&&(a27==1))&&(!(a6==1)&&((a0==1)&&(((a14==1)&&((((a16==7)&&(a2==1))&&(a7==1))&&(a4==1)))&&(a21==12)))))){ + a9 = 11; + a16 = 10; + a13 = 0; + a12 = 0; + a5 = 6; + a1 = 12; + a19 = 3; + a14 = 1; + return 22; + } else if((((((a1==14)&&((a9==10)&&(!(a20==1)&&((a17==2)&&(a2==1)))))&&!(a4==1))&&!(a24==1))&&(((a19==4)&&(((((!(a27==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))&&(a16==8))&&!(a0==1))&&!(a24==1))&&(a21==11)))&&(a13==1)))){ + a18 = 0; + a20 = 1; + a6 = 1; + a19 = 5; + a21 = 10; + a16 = 9; + a5 = 5; + a9 = 9; + return 25; + } else if(((!(a13==1)||(!(a28==1)||(((a19==1)&&((((a21==12)&&(a11==1))&&(a17==2))&&(a9==10)))&&(a1==12))))&&(!(a8==1)&&(((a16==9)&&(((a3==1)&&((a28==1)&&((input==5)&&((a5==5)||(a5==6)))))&&!(a20==1)))&&(a6==1))))){ + a16 = 7; + a20 = 1; + a25 = 0; + a19 = 2; + a7 = 1; + a21 = 10; + a9 = 8; + a14 = 1; + a5 = 6; + return -1; + } else if(((((!(a11==1)&&(((!(a23==1)&&(((!(a2==1)&&((input==4)&&((((a9==11)&&((a1==12)&&(a5==5)))||(((a1==12)&&(a5==6))&&(a9==11)))||((a9==7)&&((a5==4)&&(a1==13))))))&&(a19==3))&&(a21==11)))&&(a27==1))&&(a16==7)))&&(a20==1))&&!(a28==1))&&((a17==2)&&((a24==1)&&(a11==1))))){ + a21 = 10; + a1 = 12; + a22 = 1; + a12 = 0; + a5 = 5; + a13 = 0; + a9 = 10; + a19 = 2; + return -1; + } else if(((!(a18==1)&&(!(a13==1)||((!(a3==1)||(a6==1))&&(a19==1))))&&((((((a20==1)&&((a17==2)&&((a3==1)&&((a13==1)&&(((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8)))&&(input==3))))))&&(a1==13))&&(a16==10))&&(a21==10))&&(a6==1)))){ + a1 = 12; + a5 = 4; + a9 = 7; + a13 = 1; + a12 = 1; + a26 = 0; + a16 = 7; + return -1; + } else if(((!(a20==1)&&(!(a4==1)&&((a11==1)&&(!(a8==1)&&(((a17==2)&&((a3==1)&&(((input==1)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(a19==1))))&&(a23==1))))))&&(((a8==1)||(((a16==10)&&(a11==1))&&(a21==12)))&&(a1==13)))){ + if((a14==1)){ + a5 = 4; + a29 = 0; + a22 = 0; + a20 = 1; + a16 = 7; + a4 = 1; + a21 = 10; + a9 = 8; + a1 = 14; + }else{ + a5 = 6; + a1 = 12; + a20 = 1; + a12 = 0; + a6 = 0; + a21 = 10; + a19 = 2; + a9 = 8; + a16 = 7; + a18 = 1; + } + return 25; + } else if((((a17==2)&&((((a19==5)&&(a11==1))||(a27==1))||(a0==1)))&&((((a9==9)&&(((((a6==1)&&((((input==6)&&(a21==12))&&!(a8==1))&&!(a8==1)))&&(a1==14))&&(a11==1))&&(a5==6)))&&(a16==9))&&!(a20==1)))){ + if((a12==1)){ + a26 = 1; + a20 = 1; + a12 = 0; + a3 = 0; + a21 = 11; + a19 = 3; + a9 = 7; + a16 = 8; + }else{ + a21 = 10; + a4 = 1; + a5 = 5; + a14 = 1; + a19 = 1; + a20 = 1; + a22 = 1; + a9 = 11; + a16 = 7; + } + return -1; + } else if(((((a21==11)&&(!(a8==1)&&((a12==1)&&((a6==1)&&((a19==1)&&((a17==2)&&(((a1==12)&&((input==3)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))))&&!(a18==1))))))))&&(a16==8))&&(!(a6==1)||(!(a20==1)&&(!(a4==1)&&(a28==1)))))){ + a20 = 1; + a14 = 0; + a13 = 1; + a16 = 7; + a9 = 7; + a5 = 4; + a21 = 10; + return -1; + } else if(((((!(a2==1)||(((a3==1)||(a18==1))&&!(a27==1)))||(a0==1))&&(a1==14))&&((((((!(a8==1)&&(((a9==8)&&((input==1)&&(a21==11)))&&(a16==7)))&&(a28==1))&&(a17==2))&&(a5==6))&&(a19==1))&&(a20==1)))){ + a1 = 12; + a21 = 10; + a9 = 7; + a7 = 0; + a13 = 1; + a5 = 4; + a8 = 0; + return -1; + } else if(((((a2==1)&&((!(a4==1)&&((((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&(input==5)))&&(a1==13)))&&(a20==1))&&(((((a16==8)&&(((((a11==1)||(a26==1))&&!(a18==1))||(a8==1))&&(a17==2)))&&(a21==11))&&(a19==2))&&!(a24==1)))){ + a5 = 4; + a26 = 0; + a21 = 10; + a16 = 7; + a19 = 1; + a1 = 12; + a23 = 1; + a9 = 7; + a11 = 1; + return -1; + } else if((((a17==2)&&((((a20==1)&&((input==6)&&((a5==5)||(a5==6))))&&(a19==2))&&(a21==10)))&&((a1==14)&&((a16==9)&&((a24==1)&&(!(a2==1)&&(((((a4==1)&&((a7==1)&&(a23==1)))&&!(a12==1))&&(a9==8))&&!(a28==1)))))))){ + a5 = 6; + a19 = 1; + a25 = 1; + a16 = 8; + a7 = 1; + return -1; + } else if(((((((input==1)&&(((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))))&&(a13==1))&&(a21==11))&&(a16==7))&&((a1==12)&&(((!(a7==1)&&((!(a14==1)&&((((a13==1)||(a24==1))&&(a6==1))&&(a19==1)))||(a26==1)))&&(a17==2))&&(a20==1))))){ + a21 = 10; + a6 = 1; + a4 = 0; + a9 = 7; + a5 = 4; + a2 = 1; + return -1; + } else if((((a21==11)&&((!(a18==1)&&((((input==5)&&(a19==1))&&(a16==10))&&(a1==12)))&&(a9==10)))&&(!(a7==1)&&((a5==5)&&(((((!(a4==1)&&(!(a20==1)&&(a6==1)))&&(a17==2))&&(a3==1))||!(a13==1))&&!(a4==1)))))){ + a9 = 11; + a21 = 10; + a27 = 1; + a20 = 1; + a3 = 0; + a12 = 0; + a16 = 11; + a19 = 3; + return -1; + } else if(((!(a8==1)&&((a13==1)&&(((a17==2)&&((a19==1)&&(((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11)))&&(input==6))))&&(a21==10))))&&(!(a7==1)&&(!(a11==1)||(((a16==10)&&(((!(a20==1)&&(a13==1))&&(a1==14))||(a26==1)))&&(a6==1)))))){ + if((a27==1)){ + a7 = 1; + a16 = 7; + a15 = 1; + a9 = 7; + a11 = 0; + a5 = 5; + a20 = 1; + a1 = 13; + }else{ + a4 = 1; + a20 = 1; + a9 = 7; + a16 = 9; + a19 = 3; + a5 = 4; + a0 = 1; + a28 = 0; + } + return 22; + } else if(((!(a20==1)&&((!(a13==1)||((((a21==12)&&((a18==1)||((a14==1)||(a23==1))))&&(a1==12))||!(a2==1)))&&(a9==9)))&&(((a3==1)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&!(a24==1))&&(a17==2))&&(a19==3)))&&(a16==10)))){ + a25 = 1; + a9 = 10; + a26 = 1; + a5 = 5; + a16 = 7; + a20 = 1; + a19 = 2; + a22 = 0; + a21 = 10; + return -1; + } else if(((!(a28==1)||((a23==1)||(a26==1)))&&(!(a20==1)&&((((a21==11)&&(((((a19==5)&&(((a9==10)&&(((input==3)&&(a17==2))&&!(a0==1)))&&(a23==1)))&&(a5==4))&&(a1==12))&&!(a27==1)))&&!(a4==1))&&(a16==10))))){ + if((a11==1)){ + a9 = 11; + a12 = 0; + a21 = 10; + a19 = 1; + a16 = 7; + a20 = 1; + a11 = 0; + a10 = 0; + }else{ + a29 = 0; + a10 = 0; + a16 = 7; + a19 = 2; + a20 = 1; + a21 = 10; + a5 = 5; + a9 = 11; + } + return -1; + } else if(((((a18==1)||(((a21==11)&&(!(a18==1)&&(a23==1)))||!(a28==1)))&&!(a20==1))&&((a19==2)&&(((!(a27==1)&&((a17==2)&&(((((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11)))&&(input==5))&&(a13==1))&&!(a24==1))))&&(a1==14))&&(a16==9))))){ + if((a15==1)){ + a14 = 1; + a5 = 4; + a22 = 1; + a27 = 1; + a16 = 8; + a20 = 1; + a19 = 3; + a9 = 9; + a21 = 12; + }else{ + a5 = 4; + a9 = 9; + a1 = 12; + a16 = 8; + a21 = 10; + a29 = 0; + a19 = 4; + a12 = 0; + a4 = 1; + } + return -1; + } else if((((a17==2)&&(((a16==9)&&(((a2==1)||(a8==1))&&(a1==14)))||(a18==1)))&&((a11==1)&&((((a2==1)&&(!(a26==1)&&((a21==11)&&(((a19==3)&&((input==3)&&((a5==5)||(a5==6))))&&!(a20==1)))))&&(a9==11))&&!(a18==1))))){ + a23 = 0; + a20 = 1; + a16 = 7; + a21 = 10; + a10 = 1; + a19 = 1; + a1 = 13; + a26 = 1; + a5 = 5; + return -1; + } else if(((!(a13==1)||(((a8==1)||((a2==1)&&((((a19==4)&&((a8==1)||(a13==1)))&&(a20==1))&&(a1==12))))&&(a16==7)))&&((!(a18==1)&&(((a17==2)&&((input==3)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))&&(a2==1)))&&(a21==10)))){ + a24 = 0; + a5 = 4; + a0 = 0; + a3 = 1; + a19 = 1; + a9 = 7; + return -1; + } else if((((!(a14==1)&&((a3==1)&&(((a23==1)||(a4==1))&&(a12==1))))&&(a21==12))&&(((a11==1)&&((a9==9)&&((((a16==8)&&(((a1==12)&&((a17==2)&&(input==4)))&&(a5==6)))&&(a19==2))&&(a20==1))))&&(a12==1)))){ + a9 = 7; + a21 = 10; + a5 = 4; + a13 = 1; + a19 = 1; + a16 = 7; + a28 = 1; + a4 = 0; + return -1; + } else if((((a27==1)&&(!(a28==1)&&(!(a11==1)&&((a1==12)&&(a3==1)))))&&((a19==4)&&((a21==11)&&(((((((a16==8)&&(((input==3)&&((a5==5)||(a5==6)))&&(a9==10)))&&(a7==1))&&!(a20==1))&&(a24==1))&&(a17==2))&&!(a2==1)))))){ + a1 = 13; + a11 = 0; + a21 = 10; + a5 = 6; + a19 = 1; + a14 = 1; + a29 = 0; + a16 = 7; + a9 = 9; + a20 = 1; + return 22; + } else if((((a11==1)&&(!(a26==1)&&((input==1)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5))))))&&(((((((a19==5)&&(((a12==1)&&(!(a7==1)&&(!(a11==1)||(a12==1))))||!(a12==1)))&&(a21==10))&&!(a20==1))&&(a17==2))&&(a1==12))&&(a16==8)))){ + a13 = 1; + a26 = 0; + a21 = 12; + a5 = 5; + a9 = 9; + a20 = 1; + a1 = 14; + a19 = 3; + a12 = 1; + return 23; + } else if(((((a1==14)&&((a19==1)&&((((a4==1)||(((a4==1)||((a16==8)&&(a11==1)))||(a7==1)))||(a4==1))||(a4==1))))&&(a9==8))&&((a20==1)&&((a21==10)&&((a23==1)&&(((a17==2)&&(input==5))&&(a5==5))))))){ + a8 = 0; + a7 = 0; + a16 = 9; + a21 = 12; + a19 = 2; + a23 = 1; + return 21; + } else if((((!(a13==1)||(!(a6==1)||((!(a27==1)&&(a23==1))&&(a1==13))))&&(a21==12))&&((a16==10)&&((a19==5)&&(!(a8==1)&&(!(a27==1)&&((((((a17==2)&&(input==4))&&(a9==11))&&(a5==4))&&!(a20==1))&&(a28==1)))))))){ + a15 = 1; + a2 = 0; + a0 = 1; + a5 = 5; + a1 = 12; + a16 = 8; + a19 = 1; + a9 = 7; + return 21; + } else if((((((a23==1)&&((a1==12)&&((a11==1)&&!(a20==1))))||!(a28==1))||!(a2==1))&&(((a2==1)&&(!(a26==1)&&((a19==3)&&(((a17==2)&&((a21==10)&&(((a5==4)&&(input==4))&&(a16==9))))&&(a9==11)))))&&!(a18==1)))){ + if((a6==1)){ + a4 = 1; + a20 = 1; + a26 = 1; + a19 = 1; + a29 = 1; + a16 = 7; + a1 = 13; + }else{ + a5 = 6; + a0 = 1; + a16 = 8; + a9 = 9; + a13 = 0; + a19 = 4; + a1 = 14; + } + return -1; + } else if((((a1==12)&&((a19==2)&&((a9==11)&&(((a12==1)&&((((a20==1)&&(a12==1))&&(a23==1))||(a7==1)))&&(a17==2)))))&&((a21==12)&&(((((a23==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a14==1))&&!(a26==1))&&(a16==9))))){ + a4 = 0; + a18 = 0; + a16 = 7; + a21 = 10; + a19 = 1; + a9 = 7; + a5 = 4; + a11 = 1; + return -1; + } else if((((a20==1)&&((a16==9)&&((((a9==9)&&(((a28==1)&&((a2==1)&&((input==3)&&((a5==4)||(a5==5)))))&&!(a0==1)))&&(a19==3))&&!(a24==1))))&&((((((a21==11)&&(a2==1))||!(a28==1))&&(a1==13))||(a27==1))&&(a17==2)))){ + a23 = 1; + a5 = 4; + a9 = 7; + a1 = 12; + a19 = 1; + a16 = 7; + a7 = 0; + a18 = 0; + a21 = 10; + return -1; + } else if((((((a19==5)&&((((((a5==5)||(a5==6))&&(input==5))&&!(a14==1))&&(a6==1))&&(a21==11)))&&(a2==1))&&!(a27==1))&&(((a1==14)&&((a16==10)&&((!(a20==1)&&((a2==1)&&(!(a2==1)||(a6==1))))&&(a9==7))))&&(a17==2)))){ + if((a8==1)){ + a19 = 3; + a5 = 4; + a1 = 13; + a20 = 1; + a9 = 8; + a10 = 1; + a16 = 7; + a29 = 1; + a21 = 12; + }else{ + a15 = 0; + a20 = 1; + a5 = 4; + a9 = 11; + a2 = 0; + a16 = 7; + a21 = 10; + a19 = 1; + a12 = 0; + a1 = 12; + } + return -1; + } else if((((((a20==1)&&((a2==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5))))))&&(a21==12))&&!(a0==1))&&(((((!(a24==1)&&((a14==1)||(((a17==2)&&((a2==1)&&(a1==13)))&&(a9==7))))&&(a16==11))&&(a13==1))&&(a19==5))&&!(a0==1)))){ + a1 = 12; + a11 = 1; + a16 = 7; + a19 = 1; + a13 = 1; + a5 = 4; + a21 = 10; + a8 = 0; + return -1; + } else if((((!(a28==1)&&((((a1==12)&&(((a4==1)&&(a23==1))&&(a21==10)))&&(a20==1))&&!(a12==1)))&&(a14==1))&&(((a17==2)&&((a19==4)&&(((((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5)))&&(input==5))&&(a27==1))&&(a4==1))))&&(a16==10)))){ + a16 = 9; + a2 = 0; + a9 = 9; + a5 = 6; + a29 = 0; + a15 = 0; + return -1; + } else if((((!(a20==1)&&((a19==4)&&((a12==1)&&((a11==1)||!(a28==1)))))||!(a6==1))&&(!(a8==1)&&(((((((((((a5==6)&&(a1==12))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==13))))||(((a5==5)&&(a1==13))&&(a9==7)))&&(input==3))&&(a17==2))&&(a21==10))&&(a3==1))&&!(a24==1))&&(a16==10))))){ + if((a16==8)){ + a23 = 0; + a21 = 11; + a9 = 9; + a10 = 1; + a5 = 5; + a1 = 12; + a25 = 1; + a16 = 9; + a20 = 1; + }else{ + a1 = 12; + a9 = 8; + a23 = 0; + a16 = 7; + a28 = 0; + a19 = 1; + a5 = 4; + a20 = 1; + } + return 25; + } else if(((((a13==1)&&((a13==1)&&((a1==13)&&((a13==1)&&(((((a16==8)&&(((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a5==4)&&(a9==11)))&&(input==5)))&&(a19==1))&&!(a20==1))&&(a21==11))))))&&!(a8==1))&&((!(a27==1)&&((a17==2)&&(a2==1)))||(a4==1)))){ + a9 = 7; + a14 = 0; + a2 = 1; + a20 = 1; + a21 = 12; + a1 = 14; + a16 = 10; + a19 = 5; + a5 = 4; + return 22; + } else if(((((a19==5)&&(((!(a27==1)&&((input==1)&&((a5==4)||(a5==5))))&&(a21==11))&&!(a18==1)))&&(a1==14))&&(!(a11==1)||(!(a14==1)&&(!(a20==1)&&((a16==9)&&((a9==8)&&((a17==2)&&(!(a7==1)&&(!(a28==1)||(a11==1))))))))))){ + a9 = 10; + a16 = 7; + a5 = 5; + a1 = 12; + a27 = 1; + a22 = 0; + a19 = 2; + a20 = 1; + a21 = 10; + a29 = 1; + return -1; + } else if((((((((!(a7==1)&&((a19==2)&&((a17==2)&&((((a9==11)&&((a20==1)&&(input==6)))&&(a11==1))&&!(a18==1)))))&&!(a18==1))&&(a1==14))&&(a13==1))&&(a16==8))&&(a21==12))&&(((a13==1)&&(a5==5))&&!(a24==1)))){ + a5 = 6; + a18 = 0; + a21 = 10; + a16 = 7; + a9 = 10; + a12 = 1; + a11 = 1; + return 21; + } else if((((a17==2)&&((!(a8==1)&&((!(a0==1)&&((((a5==4)||(a5==5))&&(input==6))&&(a19==4)))&&(a28==1)))&&(a1==12)))&&((a9==8)&&((((!(a18==1)&&(((a3==1)||(a18==1))&&(a21==10)))&&!(a20==1))&&(a16==7))&&!(a27==1))))){ + a19 = 1; + a11 = 1; + a2 = 1; + a5 = 4; + a9 = 7; + a20 = 1; + return -1; + } else if(((((((a1==14)&&((a16==7)&&((((a6==1)&&((input==1)&&((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4)))))&&!(a27==1))&&(a13==1))))&&(a21==11))&&!(a8==1))&&(a19==5))&&((a17==2)&&(((!(a8==1)&&(a3==1))&&(a23==1))&&(a20==1))))){ + a7 = 0; + a19 = 3; + a6 = 1; + a5 = 5; + a16 = 8; + a9 = 7; + a13 = 1; + a21 = 12; + return 26; + } else if(((((a19==4)&&(((a13==1)&&!(a20==1))&&(a21==11)))&&!(a4==1))&&((((((!(a7==1)&&((a13==1)&&(((input==3)&&(((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))&&(a1==14))))&&(a23==1))&&(a16==7))&&(a17==2))&&!(a14==1))&&(a3==1)))){ + a27 = 0; + a26 = 0; + a20 = 1; + a19 = 1; + a0 = 0; + a21 = 10; + a9 = 7; + a5 = 4; + a1 = 12; + return -1; + } else if(((!(a0==1)&&(((((a0==1)||(a2==1))&&(a16==11))||(a18==1))&&(a19==3)))&&(((a6==1)&&((a6==1)&&((!(a4==1)&&((((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==5))&&!(a20==1))&&(a1==12)))&&(a17==2))))&&(a21==10)))){ + a1 = 14; + a29 = 1; + a12 = 0; + a20 = 1; + a9 = 8; + a5 = 5; + a19 = 1; + a13 = 0; + a16 = 7; + return -1; + } else if((((a21==11)&&((a17==2)&&(!(a0==1)&&(((a12==1)&&((((!(a27==1)&&((a9==7)&&(((a3==1)&&((a19==5)&&(input==3)))&&(a5==5))))&&(a1==12))&&(a20==1))&&(a16==9)))&&!(a8==1)))))&&((a23==1)&&(a13==1)))){ + a23 = 1; + a2 = 1; + a21 = 10; + a5 = 4; + a8 = 0; + a16 = 7; + a19 = 1; + return -1; + } else if((((((a21==11)&&((a16==9)&&((a26==1)||((a18==1)||(!(a2==1)||(((a23==1)&&(a19==1))&&(a17==2)))))))||(a14==1))&&(a1==12))&&((!(a20==1)&&(((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==5))&&!(a4==1)))&&(a2==1)))){ + a26 = 1; + a9 = 11; + a25 = 0; + a1 = 13; + a8 = 1; + a16 = 7; + a20 = 1; + a21 = 10; + a5 = 4; + return -1; + } else if((((a16==8)&&((a19==4)&&(!(a23==1)&&(a6==1))))&&((a9==7)&&((((a20==1)&&(((a17==2)&&(((a18==1)&&((((input==5)&&((a5==5)||(a5==6)))&&(a21==11))&&(a1==14)))&&!(a6==1)))&&(a26==1)))&&(a26==1))&&(a24==1))))){ + a21 = 12; + a9 = 9; + a16 = 7; + a26 = 1; + a12 = 0; + a5 = 5; + a19 = 3; + return 21; + } else if((((a16==11)&&(!(a4==1)&&(((a17==2)&&(((input==4)&&(a9==10))&&(a23==1)))&&!(a4==1))))&&((a19==1)&&((a5==5)&&(!(a23==1)||(!(a26==1)&&((a23==1)&&(!(a20==1)&&(((a21==10)&&(a11==1))&&(a1==12)))))))))){ + a5 = 4; + a22 = 0; + a20 = 1; + a29 = 0; + a1 = 14; + a9 = 9; + a16 = 7; + a6 = 0; + return 25; + } else if((((a6==1)&&(!(a4==1)&&(((a16==8)&&((((a19==3)&&(input==3))&&(a9==7))&&(a5==4)))&&(a17==2))))&&((((!(a24==1)&&((a2==1)&&(((a2==1)&&!(a0==1))&&(a20==1))))&&!(a0==1))&&(a21==12))&&(a1==13)))){ + a28 = 1; + a3 = 1; + a19 = 1; + a27 = 0; + a1 = 12; + a21 = 10; + a16 = 7; + return -1; + } else if((((a21==11)&&((a28==1)&&(((((a13==1)&&(a1==13))&&(a19==3))||!(a23==1))&&!(a24==1))))&&(((a23==1)&&((a9==11)&&(!(a8==1)&&((a17==2)&&((!(a18==1)&&(((a5==4)||(a5==5))&&(input==1)))&&(a16==11))))))&&(a20==1)))){ + a1 = 12; + a3 = 1; + a9 = 7; + a13 = 1; + a16 = 7; + a5 = 4; + a21 = 10; + a7 = 0; + a19 = 1; + return -1; + } else if(((!(a8==1)&&(((a20==1)&&((((a21==11)&&(((a16==8)&&((a19==2)&&(input==4)))&&(a5==5)))&&(a1==12))&&(a13==1)))&&!(a26==1)))&&((!(a4==1)&&(((a17==2)&&((a3==1)&&(a9==10)))&&(a11==1)))||(a14==1)))){ + a11 = 1; + a9 = 7; + a5 = 4; + a21 = 10; + a16 = 7; + a19 = 1; + a27 = 0; + a18 = 0; + return -1; + } else if((((!(a12==1)||((a0==1)||((!(a13==1)||(!(a6==1)||((a8==1)||(a12==1))))&&(a9==11))))&&(a19==3))&&((a17==2)&&((a1==13)&&((((a16==7)&&((a21==11)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1))))&&(a11==1))&&!(a20==1)))))){ + a16 = 10; + a20 = 1; + a8 = 0; + a24 = 0; + a1 = 12; + a19 = 2; + a9 = 9; + a5 = 5; + return 25; + } else if((((a17==2)&&((!(a7==1)&&(!(a26==1)&&((((input==5)&&((a5==4)||(a5==5)))&&(a19==4))&&(a2==1))))&&(a21==10)))&&((a9==11)&&(!(a20==1)&&((a8==1)||((a23==1)&&((a16==10)&&((a24==1)||((a2==1)&&(a1==12)))))))))){ + a16 = 11; + a1 = 14; + a20 = 1; + a10 = 1; + a8 = 1; + a0 = 1; + a19 = 5; + a21 = 11; + a5 = 4; + a9 = 7; + return -1; + } else if(((((a13==1)&&((a20==1)&&((a17==2)&&(((input==5)&&(((((a1==14)&&(a5==6))&&(a9==11))&&(a19==3))||(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==4))))&&(a16==11)))))&&!(a0==1))&&(!(a3==1)||(((a21==10)&&(!(a2==1)||((a13==1)&&!(a7==1))))&&(a13==1))))){ + a2 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + a1 = 12; + a19 = 1; + a4 = 0; + return -1; + } else if(((((((a28==1)&&((a16==7)&&((((input==3)&&(((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))))&&!(a20==1))&&(a2==1))))&&(a28==1))&&(a1==14))&&(a11==1))&&((a19==1)&&((a21==10)&&(((a17==2)&&((a6==1)||(a27==1)))&&(a13==1)))))){ + a9 = 7; + a27 = 0; + a5 = 4; + a24 = 0; + a18 = 0; + a20 = 1; + a1 = 12; + return -1; + } else if(((!(a0==1)&&((a3==1)&&(!(a0==1)&&(!(a2==1)||((a17==2)&&(((a13==1)&&(a9==7))&&(a21==11)))))))&&(((a16==10)&&((a3==1)&&(!(a14==1)&&(((a5==4)&&((a1==13)&&(input==5)))&&(a19==2)))))&&!(a20==1)))){ + if((a12==1)){ + a20 = 1; + a0 = 1; + a9 = 11; + a21 = 10; + a25 = 1; + a7 = 1; + a1 = 12; + a5 = 6; + a16 = 7; + }else{ + a9 = 10; + a15 = 1; + a20 = 1; + a7 = 1; + a26 = 1; + a16 = 7; + a1 = 12; + a21 = 10; + } + return -1; + } else if((((a16==10)&&(((a17==2)&&(!(a14==1)&&(!(a8==1)&&(((input==5)&&(a19==5))&&!(a26==1)))))&&(a9==7)))&&((a20==1)&&((!(a27==1)&&(!(a27==1)&&((a21==10)&&((a1==13)&&((a3==1)&&!(a7==1))))))&&(a5==5))))){ + a12 = 1; + a19 = 1; + a5 = 4; + a16 = 11; + a21 = 11; + a18 = 0; + a11 = 1; + return 22; + } else if(((((((a21==12)&&((input==5)&&((a5==4)||(a5==5))))&&(a16==11))&&(a13==1))&&!(a18==1))&&(((a17==2)&&((((a3==1)&&((((a19==2)&&((a13==1)&&(a20==1)))||(a7==1))||!(a2==1)))||(a27==1))&&(a1==14)))&&(a9==7)))){ + a1 = 12; + a21 = 10; + a5 = 4; + a8 = 0; + a16 = 7; + a2 = 1; + a19 = 1; + a12 = 1; + return -1; + } else if(((!(a20==1)&&((a23==1)&&((((a16==7)&&(((((((input==3)&&((a5==4)||(a5==5)))&&!(a18==1))&&(a1==13))&&!(a0==1))&&!(a24==1))&&(a17==2)))&&!(a7==1))&&(a9==10))))&&((a19==4)&&((a21==11)&&(!(a4==1)&&(a11==1)))))){ + a1 = 12; + a3 = 1; + a19 = 1; + a12 = 1; + a20 = 1; + a24 = 0; + a9 = 7; + a5 = 4; + a21 = 10; + return -1; + } else if((((a17==2)&&((!(a13==1)&&((((a19==2)&&(a13==1))&&!(a12==1))&&(a24==1)))&&(a21==10)))&&(((a16==9)&&((a20==1)&&((a18==1)&&(((((input==6)&&(a1==13))&&(a9==10))&&!(a12==1))&&!(a11==1)))))&&(a5==5)))){ + a9 = 8; + a16 = 7; + a1 = 12; + a15 = 1; + a23 = 0; + return -1; + } else if((((a21==11)&&(((a19==5)&&(!(a20==1)&&((((a1==12)&&(input==4))&&!(a14==1))&&!(a7==1))))&&(a5==6)))&&((a17==2)&&((a11==1)&&((a9==11)&&((a16==8)&&((!(a7==1)&&((a2==1)||!(a12==1)))&&!(a26==1)))))))){ + a9 = 10; + a20 = 1; + a25 = 0; + a21 = 10; + a19 = 1; + a13 = 0; + a3 = 0; + a16 = 7; + return -1; + } else if((((((a21==11)&&((!(a3==1)||(!(a2==1)||((!(a2==1)||(!(a24==1)&&(a6==1)))&&!(a20==1))))||!(a3==1)))&&(a16==10))&&(a9==11))&&(((!(a4==1)&&((a19==1)&&((input==3)&&(a17==2))))&&(a5==6))&&(a1==14)))){ + if((a4==1)){ + a5 = 4; + a16 = 7; + a9 = 8; + a4 = 1; + a21 = 10; + a20 = 1; + a22 = 0; + a29 = 1; + }else{ + a25 = 0; + a29 = 1; + a16 = 9; + a1 = 13; + a20 = 1; + a9 = 9; + a5 = 4; + a2 = 0; + } + return -1; + } else if((((a17==2)&&((a3==1)&&(((a3==1)&&(!(a4==1)&&((a3==1)&&((a19==1)&&(input==1)))))&&(a5==6))))&&((a9==8)&&(((a16==8)&&((a21==10)&&(!(a20==1)&&(((a6==1)&&(a1==14))||!(a12==1)))))&&!(a8==1))))){ + if((a10==1)){ + a19 = 2; + a9 = 10; + a18 = 0; + a13 = 1; + a2 = 1; + }else{ + a19 = 3; + a23 = 1; + a20 = 1; + a8 = 0; + a13 = 1; + a16 = 10; + } + return 21; + } else if((((((a2==1)&&((!(a7==1)&&((a23==1)&&(a17==2)))&&(a16==8)))&&!(a24==1))&&(a28==1))&&((((a1==14)&&((!(a0==1)&&((a20==1)&&((input==6)&&(((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))))))&&(a19==4)))&&(a21==12))&&!(a26==1)))){ + a28 = 1; + a5 = 4; + a16 = 7; + a2 = 1; + a9 = 7; + a13 = 1; + a1 = 12; + a19 = 1; + a21 = 10; + return -1; + } else if(((!(a26==1)&&(!(a18==1)&&(((a19==4)&&(((((a5==6)&&(a1==12))&&(a9==11))||((a9==7)&&((a1==13)&&(a5==4))))&&(input==4)))&&(a21==10))))&&((a23==1)&&((a0==1)||((a17==2)&&((a20==1)&&(((a2==1)&&((a0==1)||(a28==1)))&&(a16==10)))))))){ + a16 = 7; + a27 = 0; + a5 = 4; + a1 = 12; + a9 = 7; + a19 = 1; + a0 = 0; + a8 = 0; + return -1; + } else if((((a17==2)&&((a16==7)&&((a5==5)&&((!(a24==1)&&((a11==1)&&((!(a20==1)&&(input==6))&&(a21==12))))&&(a23==1)))))&&(((a19==1)&&(((a28==1)&&(((a2==1)&&(a1==12))&&(a6==1)))&&!(a7==1)))&&(a9==7)))){ + a5 = 4; + a20 = 1; + a0 = 0; + a19 = 2; + a21 = 10; + a24 = 0; + a9 = 9; + a14 = 0; + a1 = 13; + return 25; + } else if(((((a5==6)&&(((a21==10)&&((((a11==1)&&((a9==9)&&(((input==5)&&(a19==1))&&!(a24==1))))&&!(a8==1))&&!(a20==1)))&&(a17==2)))&&(a1==12))&&((a16==10)&&(!(a23==1)||((!(a23==1)||(a11==1))||!(a12==1)))))){ + a13 = 0; + a5 = 4; + a12 = 0; + a20 = 1; + a16 = 7; + return -1; + } else if(((((a9==11)&&((a18==1)||(((a16==9)&&(((a13==1)&&(a17==2))&&!(a26==1)))||(a18==1))))&&(a6==1))&&(((!(a26==1)&&((!(a14==1)&&(((input==5)&&((a5==5)||(a5==6)))&&!(a20==1)))&&(a19==2)))&&(a1==14))&&(a21==12)))){ + if((a24==1)){ + a0 = 1; + a5 = 4; + a19 = 5; + a8 = 1; + a23 = 0; + a16 = 7; + a9 = 8; + a1 = 12; + }else{ + a16 = 7; + a20 = 1; + a1 = 12; + a3 = 0; + a22 = 0; + a8 = 1; + a21 = 10; + a9 = 8; + a5 = 5; + } + return -1; + } else if((((a19==4)&&((((a24==1)||(((a16==9)&&(a12==1))&&!(a0==1)))&&(a23==1))&&(a1==13)))&&(((a20==1)&&(!(a7==1)&&(((a17==2)&&((a9==11)&&(((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a12==1))))&&(a23==1))))&&(a21==11)))){ + a19 = 1; + a5 = 4; + a16 = 7; + a9 = 7; + a18 = 0; + a11 = 1; + a21 = 10; + a1 = 12; + a6 = 1; + return -1; + } else if(((((((a16==11)&&(((a2==1)&&((a2==1)&&((input==5)&&(a5==5))))&&(a13==1)))&&(a19==5))&&(a3==1))&&!(a8==1))&&((a21==10)&&((a9==9)&&((a17==2)&&((!(a2==1)||((a12==1)&&(a20==1)))&&(a1==13))))))){ + a9 = 7; + a5 = 4; + a16 = 7; + a14 = 0; + a19 = 1; + a1 = 12; + a13 = 1; + return -1; + } else if((((!(a27==1)&&(!(a27==1)&&((a16==9)&&((a1==12)&&((((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5)))&&(input==5))&&(a6==1))))))&&!(a18==1))&&((a26==1)||(((((a21==10)&&((a17==2)&&(a13==1)))||(a14==1))&&(a19==4))&&!(a20==1))))){ + a5 = 5; + a21 = 11; + a25 = 1; + a19 = 5; + a9 = 7; + a27 = 1; + a29 = 1; + return -1; + } else if(((((((a1==12)&&((!(a8==1)&&((input==4)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))))&&(a21==10)))&&!(a24==1))&&(a28==1))&&!(a8==1))&&((((!(a20==1)&&(((a3==1)&&(a17==2))&&(a28==1)))&&(a16==11))&&(a19==1))&&(a11==1)))){ + a22 = 1; + a9 = 8; + a23 = 0; + a26 = 1; + a20 = 1; + a16 = 7; + a5 = 6; + return 25; + } else if((((a17==2)&&((((!(a24==1)&&(((((input==6)&&((a5==5)||(a5==6)))&&!(a14==1))&&(a23==1))&&!(a24==1)))&&!(a4==1))&&(a21==12))&&!(a20==1)))&&((a1==14)&&(((a16==8)&&((a9==9)&&(!(a2==1)||(a2==1))))&&(a19==1))))){ + a9 = 10; + a1 = 13; + a20 = 1; + a14 = 1; + a16 = 10; + a10 = 0; + a5 = 5; + a18 = 1; + return -1; + } else if((((a16==9)&&(((a24==1)||((a19==1)&&((a9==8)&&(a13==1))))&&(a21==12)))&&(!(a8==1)&&(!(a20==1)&&((a2==1)&&(((!(a24==1)&&((((input==5)&&((a5==5)||(a5==6)))&&(a17==2))&&(a2==1)))&&(a1==14))&&(a3==1))))))){ + a20 = 1; + a29 = 0; + a27 = 1; + a5 = 6; + a16 = 7; + a9 = 10; + a21 = 10; + a6 = 0; + a1 = 12; + return 21; + } else if((((a23==1)&&(!(a2==1)||(!(a23==1)||((a14==1)||(((a17==2)&&((a19==1)&&(((a13==1)&&(a9==8))&&(a1==12))))&&(a21==10))))))&&((a23==1)&&((((a5==6)&&(!(a20==1)&&(input==3)))&&(a16==9))&&!(a27==1))))){ + if((a28==1)){ + a7 = 1; + a20 = 1; + a19 = 2; + a16 = 7; + a14 = 1; + a9 = 10; + a13 = 0; + }else{ + a9 = 7; + a12 = 0; + a1 = 14; + a20 = 1; + a16 = 7; + a14 = 1; + a6 = 0; + } + return -1; + } else if((((a9==7)&&(((a17==2)&&((a2==1)&&(a8==1)))&&(a1==14)))&&((!(a2==1)&&(!(a13==1)&&((a21==11)&&(((a16==7)&&(!(a13==1)&&(!(a11==1)&&(((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a24==1)))))&&(a19==5)))))&&!(a20==1)))){ + a20 = 1; + a9 = 8; + a24 = 1; + a21 = 12; + a19 = 3; + a1 = 13; + a16 = 9; + a5 = 4; + a22 = 0; + a6 = 0; + return 26; + } else if((((a13==1)&&(((a17==2)&&((!(a20==1)&&(((((a21==10)&&((a19==5)&&((a9==11)&&((a1==14)&&(a5==5)))))||(((((a1==14)&&(a5==6))&&(a9==11))&&(a19==5))&&(a21==10)))||((((a9==7)&&((a1==12)&&(a5==4)))&&(a19==1))&&(a21==11)))&&(input==5)))&&(a16==7)))&&(a6==1)))&&(((a23==1)&&((a23==1)&&(!(a27==1)&&(a28==1))))||(a24==1)))){ + a3 = 1; + a21 = 10; + a28 = 1; + a5 = 4; + a9 = 7; + a20 = 1; + a1 = 12; + a19 = 1; + a26 = 0; + return -1; + } else if((((a19==3)&&((a16==7)&&((a17==2)&&((((((!(a18==1)&&((((((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))&&(input==3))&&(a3==1))&&!(a8==1)))&&!(a26==1))&&!(a18==1))&&(a2==1))&&(a1==12))&&(a21==12)))))&&((a3==1)&&(a20==1)))){ + a21 = 10; + a19 = 1; + a9 = 7; + a8 = 0; + a5 = 4; + a23 = 1; + return -1; + } else if((((a17==2)&&((a1==12)&&((a2==1)&&((a16==9)&&((((a2==1)&&!(a4==1))&&(a5==4))&&(a13==1))))))&&((!(a0==1)&&(((((a9==8)&&((input==5)&&(a20==1)))&&(a21==11))&&(a3==1))&&!(a14==1)))&&(a19==4)))){ + a4 = 0; + a19 = 3; + a0 = 0; + a28 = 1; + a21 = 12; + a9 = 7; + return 21; + } else if(((((a18==1)||(((a9==9)&&((a16==11)&&(((a5==4)&&((a12==1)&&((a20==1)&&((a3==1)&&(a1==14)))))&&!(a0==1))))||(a7==1)))&&(a17==2))&&(!(a14==1)&&(((a2==1)&&((a21==10)&&(input==5)))&&(a19==2))))){ + a9 = 7; + a12 = 1; + a23 = 1; + a11 = 1; + a19 = 1; + a16 = 7; + a1 = 12; + return -1; + } else if(((((a1==13)&&(a11==1))&&(a17==2))&&((a19==1)&&((((a23==1)&&(((!(a27==1)&&(((a5==6)&&(((a21==12)&&((input==1)&&(a20==1)))&&(a11==1)))&&!(a26==1)))&&(a3==1))&&(a16==7)))&&(a12==1))&&(a9==10))))){ + a5 = 4; + a1 = 12; + a27 = 0; + a23 = 1; + a9 = 7; + a12 = 1; + a21 = 10; + return -1; + } else if(((((((a2==1)&&(!(a13==1)||(a11==1)))&&(a20==1))&&(a17==2))&&(a19==5))&&((a1==13)&&((a16==9)&&((a21==11)&&(!(a14==1)&&(!(a7==1)&&((a9==8)&&((a28==1)&&((a11==1)&&((input==3)&&((a5==5)||(a5==6))))))))))))){ + a19 = 1; + a1 = 12; + a13 = 1; + a16 = 10; + a5 = 5; + a12 = 1; + a11 = 1; + a21 = 10; + return 21; + } else if(((((a19==4)&&(!(a7==1)&&(((((!(a0==1)&&((a16==8)&&((a1==12)&&(input==4))))&&(a21==10))&&(a9==8))&&(a17==2))&&(a13==1))))&&!(a20==1))&&((a5==6)&&(((!(a8==1)&&(a3==1))||(a4==1))&&(a12==1))))){ + a16 = 7; + a14 = 0; + a9 = 7; + a5 = 4; + a0 = 0; + a20 = 1; + a19 = 1; + a28 = 1; + return -1; + } else if(((((((input==4)&&((a5==4)||(a5==5)))&&!(a14==1))&&!(a7==1))&&(a21==11))&&(((a20==1)&&(!(a6==1)||((((!(a27==1)&&(((a13==1)&&((a1==14)&&(a23==1)))&&(a16==10)))&&(a19==2))&&(a3==1))&&(a9==7))))&&(a17==2)))){ + a3 = 1; + a5 = 4; + a19 = 1; + a16 = 7; + a28 = 1; + a21 = 10; + a26 = 0; + a1 = 12; + return -1; + } else if(((((((((a20==1)&&((a3==1)&&(((a2==1)&&(a13==1))&&!(a7==1))))||(a27==1))&&!(a14==1))&&(a1==13))&&(a19==3))&&(a9==11))&&((a17==2)&&((a21==12)&&((((input==6)&&(a16==10))&&!(a7==1))&&(a5==5)))))){ + a21 = 10; + a16 = 7; + a14 = 0; + a19 = 2; + a9 = 10; + a1 = 14; + a27 = 0; + a18 = 0; + return 21; + } else if((((a19==1)&&((!(a8==1)&&(((input==4)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&(a17==2)))&&!(a26==1)))&&((((((a16==9)&&((a26==1)||(((a12==1)&&!(a8==1))&&(a3==1))))&&(a20==1))&&(a1==12))&&(a21==10))||!(a23==1)))){ + a12 = 1; + a27 = 0; + a9 = 7; + a16 = 7; + a5 = 4; + a2 = 1; + return -1; + } else if(((((a27==1)||((a9==11)&&(!(a6==1)||(!(a27==1)&&((a6==1)&&(a21==11))))))&&(a1==12))&&((((a13==1)&&((((a17==2)&&((a5==4)&&((input==4)&&(a19==4))))&&(a11==1))&&(a20==1)))&&!(a14==1))&&(a16==10)))){ + a21 = 10; + a12 = 1; + a0 = 0; + a16 = 7; + a18 = 0; + a19 = 1; + a9 = 7; + return -1; + } else if((((((a23==1)&&(!(a20==1)&&((a1==14)&&((((a5==4)&&(input==5))&&!(a7==1))&&(a28==1)))))&&(a19==3))&&(a16==7))&&((a11==1)&&((a0==1)||(((((a21==10)&&(a12==1))&&(a17==2))&&(a9==10))&&!(a8==1)))))){ + a23 = 1; + a20 = 1; + a19 = 1; + a9 = 7; + a27 = 0; + a2 = 1; + a1 = 12; + return -1; + } else if(((!(a24==1)&&((a21==12)&&((a17==2)&&(((a9==9)&&(((!(a8==1)&&((a5==6)&&(input==5)))&&(a28==1))&&(a16==8)))&&!(a20==1)))))&&((((((a6==1)&&(a3==1))&&(a19==5))&&!(a24==1))&&(a1==12))||(a24==1)))){ + if((a15==1)){ + a14 = 1; + a19 = 1; + a9 = 11; + a21 = 10; + a16 = 10; + a20 = 1; + a7 = 1; + a5 = 4; + a12 = 0; + }else{ + a28 = 0; + a6 = 0; + a18 = 1; + a1 = 13; + a5 = 5; + a16 = 7; + a9 = 8; + a19 = 1; + a21 = 10; + a20 = 1; + } + return 21; + } else if(((((!(a13==1)||((!(a18==1)&&(a23==1))&&(a19==5)))&&!(a14==1))&&(a5==6))&&((a16==8)&&((((a17==2)&&((a20==1)&&(((a13==1)&&((a6==1)&&((a1==12)&&(input==5))))&&(a23==1))))&&(a21==11))&&(a9==11))))){ + a1 = 13; + a5 = 5; + a24 = 0; + a21 = 10; + a19 = 2; + a16 = 7; + a9 = 9; + a0 = 0; + a7 = 0; + return 25; + } return calculate_output46(input); + } + + int calculate_output46(int input) { + if((((a3==1)&&(((a28==1)&&((a28==1)&&((a19==2)&&((a21==11)&&((input==4)&&(a9==9))))))&&(a23==1)))&&((a13==1)&&((a11==1)&&((!(a20==1)&&((a16==9)&&(((a3==1)&&(a17==2))&&(a5==5))))&&(a1==12)))))){ + a20 = 1; + a19 = 1; + a26 = 1; + a1 = 13; + a21 = 10; + a27 = 1; + a16 = 7; + a9 = 7; + a12 = 0; + a5 = 4; + return 25; + } else if(((!(a27==1)&&(!(a7==1)&&(((((a16==11)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6))))&&!(a20==1))&&(a9==10))&&(a17==2))))&&((((((a2==1)&&((a21==10)&&(!(a28==1)||(a3==1))))&&(a1==14))&&(a19==2))&&!(a0==1))&&(a28==1)))){ + a21 = 11; + a20 = 1; + a19 = 5; + a16 = 10; + a1 = 13; + a22 = 0; + a2 = 0; + a5 = 6; + a3 = 0; + a9 = 11; + return -1; + } else if(((!(a27==1)&&(((a9==7)&&((a23==1)&&((!(a7==1)&&((((input==3)&&((a5==4)||(a5==5)))&&(a16==7))&&!(a20==1)))&&(a21==11))))&&(a23==1)))&&(((a1==14)&&((a2==1)&&((a17==2)&&((a2==1)&&(a19==2)))))&&(a2==1)))){ + a19 = 1; + a21 = 10; + a20 = 1; + a1 = 12; + a5 = 4; + a8 = 0; + a18 = 0; + a4 = 0; + return -1; + } else if((((a17==2)&&((((((a19==1)&&((a9==8)&&(((input==6)&&((a5==4)||(a5==5)))&&!(a18==1))))&&!(a8==1))&&!(a8==1))&&(a1==14))&&(a12==1)))&&(((a20==1)&&((!(a27==1)&&((a13==1)&&(a21==10)))&&(a28==1)))&&(a16==9)))){ + a3 = 1; + a8 = 0; + a12 = 1; + a5 = 4; + a16 = 7; + a9 = 7; + a1 = 12; + return -1; + } else if((((a8==1)||(!(a20==1)&&((a6==1)&&(((a28==1)&&(a1==13))&&(a17==2)))))&&(((!(a0==1)&&((a13==1)&&((((a5==6)&&(((input==4)&&(a21==11))&&(a19==1)))&&(a9==11))&&(a16==10))))&&(a2==1))&&!(a18==1)))){ + if((a2==1)){ + a6 = 0; + a19 = 3; + a24 = 1; + a9 = 8; + a1 = 14; + a2 = 0; + a16 = 8; + }else{ + a3 = 0; + a24 = 1; + a16 = 7; + a20 = 1; + a9 = 10; + a21 = 10; + } + return 22; + } else if((((a19==5)&&((a17==2)&&((a27==1)||(((a16==8)&&(a23==1))||!(a28==1)))))&&((a2==1)&&(((a11==1)&&(((((a9==8)&&((a1==14)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1))))&&!(a20==1))&&(a21==12))&&(a6==1)))&&!(a26==1))))){ + a21 = 10; + a24 = 1; + a19 = 2; + a9 = 9; + a5 = 5; + a2 = 0; + a1 = 12; + a20 = 1; + a15 = 1; + a16 = 7; + return -1; + } else if((((a17==2)&&(((a16==9)&&(!(a3==1)||((a1==12)&&((a19==1)&&(!(a4==1)&&((a12==1)||!(a3==1)))))))&&(a21==12)))&&((((!(a8==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&(a9==8)))&&(a13==1))&&!(a7==1))&&!(a20==1)))){ + if((a4==1)){ + a20 = 1; + a22 = 1; + a21 = 11; + a5 = 6; + a1 = 14; + a27 = 1; + a19 = 4; + a29 = 0; + }else{ + a5 = 5; + a21 = 10; + a16 = 7; + a29 = 0; + a2 = 0; + a28 = 0; + a1 = 14; + a20 = 1; + } + return -1; + } else if((((((a1==12)&&(((!(a13==1)&&((a24==1)&&((input==4)&&((a5==5)||(a5==6)))))&&!(a12==1))&&!(a2==1)))&&(a17==2))&&(a19==3))&&((a21==11)&&((a9==9)&&(((a16==7)&&((!(a28==1)&&(a28==1))&&(a20==1)))&&!(a6==1)))))){ + a5 = 4; + a21 = 10; + a13 = 0; + a19 = 5; + a10 = 1; + a28 = 0; + a9 = 11; + return 21; + } else if((((a16==8)&&((a20==1)&&(((((a28==1)&&((((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==1))&&(a12==1))&&!(a4==1)))&&(a17==2))&&(a21==11))&&!(a14==1))))&&(((a19==4)&&((!(a18==1)&&(a3==1))&&(a1==13)))||(a27==1)))){ + a9 = 7; + a5 = 4; + a21 = 10; + a1 = 12; + a6 = 1; + a16 = 7; + a4 = 0; + a19 = 1; + a11 = 1; + return -1; + } else if(((!(a27==1)&&((a20==1)&&(((a21==10)&&((((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==6))&&(a19==3))&&!(a27==1)))&&!(a14==1))))&&(((a1==13)&&((!(a12==1)||(((a12==1)&&(a23==1))&&(a17==2)))&&(a16==7)))&&(a23==1)))){ + a18 = 0; + a9 = 9; + a26 = 0; + a5 = 6; + a21 = 11; + a19 = 1; + a7 = 0; + return 22; + } else if((((((!(a6==1)||(!(a20==1)&&((a8==1)||(a2==1))))||(a14==1))&&(a17==2))&&(a1==13))&&((a16==10)&&(!(a24==1)&&(((((a21==11)&&((input==5)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11)))))&&!(a4==1))&&(a19==2))&&(a12==1)))))){ + if((a4==1)){ + a9 = 10; + a16 = 9; + a7 = 1; + a12 = 0; + a3 = 0; + a1 = 14; + a20 = 1; + a5 = 4; + a19 = 1; + }else{ + a10 = 0; + a19 = 1; + a16 = 7; + a24 = 1; + a9 = 7; + a20 = 1; + a5 = 4; + a1 = 14; + a29 = 0; + a21 = 10; + } + return 22; + } else if((((a12==1)&&(((a1==12)&&((a19==3)&&(((a16==7)&&((a21==10)&&(input==4)))&&(a6==1))))&&!(a26==1)))&&((a12==1)&&((a5==6)&&((((((a9==11)&&(a11==1))&&!(a20==1))&&(a3==1))||!(a3==1))&&(a17==2)))))){ + a12 = 1; + a20 = 1; + a19 = 2; + a14 = 0; + a21 = 11; + a7 = 0; + a16 = 10; + a9 = 8; + return 22; + } else if((((a16==10)&&(!(a20==1)&&(((a19==4)&&(((a13==1)&&((a23==1)&&(!(a14==1)&&((a23==1)&&(((a5==5)||(a5==6))&&(input==1))))))&&(a9==11)))&&!(a4==1))))&&((a17==2)&&((a21==11)&&(((a23==1)&&(a1==13))&&!(a4==1)))))){ + a11 = 0; + a19 = 1; + a21 = 10; + a9 = 7; + a16 = 7; + a1 = 14; + a5 = 5; + a14 = 1; + a22 = 1; + a20 = 1; + return -1; + } else if(((((a2==1)&&(!(a27==1)&&((a19==2)&&((((input==1)&&((((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4))))&&!(a20==1))&&(a28==1)))))&&(a2==1))&&(((a1==14)&&((a21==10)&&((((a28==1)&&!(a24==1))&&(a16==8))&&(a17==2))))||!(a3==1)))){ + a9 = 11; + a16 = 11; + a20 = 1; + a1 = 13; + a19 = 4; + a4 = 0; + a5 = 6; + a21 = 11; + a26 = 0; + return 21; + } else if((((((a8==1)||((((((a3==1)||(a4==1))&&(a5==6))&&(a9==7))&&!(a18==1))&&!(a20==1)))||(a26==1))&&(a21==12))&&(((a17==2)&&(!(a26==1)&&((((input==6)&&(a1==13))&&(a19==2))&&(a12==1))))&&(a16==9)))){ + if((a9==8)){ + a22 = 1; + a16 = 7; + a5 = 4; + a13 = 0; + a20 = 1; + a21 = 10; + a15 = 1; + a19 = 1; + a9 = 8; + }else{ + a20 = 1; + a5 = 5; + a9 = 8; + a19 = 3; + a7 = 1; + a11 = 0; + a16 = 7; + a21 = 10; + } + return 22; + } else if(((((((((((a5==4)||(a5==5))&&(input==4))&&(a21==11))&&!(a28==1))&&!(a11==1))&&(a16==10))&&!(a6==1))&&(a1==12))&&((a14==1)&&((((((a17==2)&&((a11==1)&&(a26==1)))&&(a20==1))&&(a9==7))&&(a19==1))&&!(a12==1))))){ + a21 = 10; + a1 = 14; + a7 = 1; + a5 = 5; + a13 = 0; + a9 = 8; + a16 = 7; + a15 = 0; + return 23; + } else if((((((!(a20==1)&&((!(a13==1)||((a12==1)&&((a19==2)&&(a28==1))))&&(a3==1)))&&(a16==9))&&(a21==12))||(a8==1))&&((((a12==1)&&((a1==14)&&(!(a18==1)&&((input==1)&&(a9==8)))))&&(a5==5))&&(a17==2)))){ + a4 = 1; + a25 = 1; + a20 = 1; + a16 = 7; + a5 = 4; + a19 = 1; + a15 = 1; + a21 = 10; + return -1; + } else if(((((a5==6)&&((a17==2)&&((a4==1)||((a9==9)&&((a28==1)||!(a11==1))))))||(a18==1))&&(!(a20==1)&&((a16==10)&&(((((((input==5)&&(a1==12))&&(a19==3))&&!(a4==1))&&!(a4==1))&&!(a7==1))&&(a21==10)))))){ + a5 = 4; + a29 = 1; + a20 = 1; + a9 = 10; + a16 = 7; + a15 = 0; + a8 = 1; + a19 = 2; + a1 = 13; + return -1; + } else if((((a3==1)&&((a28==1)&&((!(a27==1)&&((a19==5)&&((a17==2)&&((((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&!(a4==1))&&!(a8==1)))))&&(a2==1))))&&((((a21==11)&&(((a28==1)&&(a1==13))&&(a9==8)))&&!(a20==1))&&(a16==10)))){ + a16 = 7; + a20 = 1; + a19 = 4; + a13 = 0; + a22 = 1; + a15 = 0; + a21 = 10; + a1 = 14; + a5 = 5; + return -1; + } else if((((a9==10)&&(((a21==12)&&((((((a17==2)&&(input==5))&&(a5==4))&&!(a24==1))&&(a1==12))&&(a16==7)))&&(a20==1)))&&((a19==5)&&(!(a7==1)&&((((a18==1)||((a23==1)&&(a11==1)))&&(a3==1))&&(a13==1)))))){ + if((a16==8)){ + a9 = 11; + a16 = 8; + a24 = 0; + a1 = 14; + a19 = 1; + a21 = 10; + a20 = 0; + a4 = 0; + a28 = 1; + }else{ + a5 = 6; + a6 = 1; + a9 = 8; + a21 = 11; + a27 = 0; + a19 = 4; + a16 = 9; + a23 = 1; + } + return 23; + } else if(((((a20==1)&&(((a14==1)&&((a17==2)&&(input==4)))&&(a1==14)))&&(a7==1))&&(!(a6==1)&&((!(a12==1)&&((((a19==1)&&((a16==10)&&(((a11==1)&&!(a3==1))&&(a5==5))))&&(a21==12))&&(a9==9)))&&(a24==1))))){ + a1 = 13; + a21 = 10; + a9 = 7; + a22 = 0; + a15 = 0; + a5 = 6; + a3 = 0; + a16 = 7; + return 25; + } else if(((!(a4==1)&&(((a28==1)&&(a9==11))&&(a21==10)))&&((a12==1)&&((a6==1)&&(!(a27==1)&&(!(a4==1)&&(((((a16==9)&&((a17==2)&&((((a5==5)||(a5==6))&&(input==6))&&(a1==14))))&&!(a20==1))&&(a6==1))&&(a19==3)))))))){ + if((a27==1)){ + a9 = 7; + a8 = 1; + a5 = 6; + a1 = 13; + a20 = 1; + a21 = 12; + a25 = 0; + a7 = 1; + a16 = 7; + a19 = 2; + }else{ + a9 = 7; + a1 = 13; + a2 = 0; + a5 = 6; + a16 = 8; + a20 = 1; + a19 = 1; + a15 = 1; + } + return -1; + } else if((((((a16==7)&&((a11==1)&&(((a21==10)&&(input==3))&&!(a20==1))))&&!(a8==1))&&(a9==9))&&((((a5==5)&&((a1==12)&&(((!(a7==1)&&((a24==1)||(a6==1)))||(a4==1))||(a0==1))))&&(a19==1))&&(a17==2)))){ + a20 = 1; + a5 = 4; + a7 = 0; + a6 = 1; + a9 = 7; + a24 = 0; + return -1; + } else if((((a1==14)&&(((!(a0==1)&&((a7==1)||(((!(a2==1)||(a3==1))&&(a9==8))||!(a2==1))))&&!(a20==1))||(a14==1)))&&((a16==10)&&(((((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a17==2))&&(a21==11))&&(a19==1))&&!(a26==1))))){ + if((a2==1)){ + a20 = 1; + a9 = 7; + a16 = 11; + a1 = 12; + a14 = 1; + a22 = 1; + a5 = 6; + a19 = 2; + a28 = 0; + }else{ + a26 = 1; + a16 = 11; + a28 = 0; + a20 = 1; + a5 = 5; + a9 = 10; + a19 = 3; + } + return -1; + } else if(((((a12==1)&&(((a21==11)&&((((a19==2)&&((a17==2)&&(((a1==12)&&((input==5)&&(a16==11)))&&(a5==5))))&&!(a4==1))&&(a9==11)))&&(a12==1)))&&!(a8==1))&&((((a20==1)&&(a23==1))||(a7==1))||!(a12==1)))){ + a21 = 12; + a9 = 9; + a16 = 7; + a1 = 13; + a5 = 4; + a4 = 0; + a7 = 0; + a2 = 1; + return -1; + } else if((((a5==4)&&((a24==1)||((!(a3==1)||(((a6==1)&&(a16==11))&&(a17==2)))&&!(a18==1))))&&(((a19==1)&&(((((!(a7==1)&&((a21==12)&&(input==6)))&&(a2==1))&&(a1==13))&&(a20==1))&&(a28==1)))&&(a9==11)))){ + a9 = 7; + a26 = 0; + a5 = 5; + a14 = 0; + a6 = 1; + a1 = 12; + a19 = 4; + return 21; + } else if((((a23==1)&&((a5==4)&&(!(a20==1)&&((!(a26==1)&&((a16==8)&&((input==5)&&(a9==8))))&&!(a0==1)))))&&((a17==2)&&((!(a14==1)&&((a13==1)&&((a1==12)&&(!(a13==1)||((a12==1)&&(a19==3))))))&&(a21==10))))){ + a24 = 0; + a4 = 0; + a16 = 7; + a9 = 7; + a19 = 1; + a20 = 1; + return -1; + } else if((((a11==1)&&(((((a3==1)&&((input==3)&&((a5==4)||(a5==5))))&&!(a14==1))&&(a1==12))&&!(a26==1)))&&(((a21==10)&&((a9==11)&&((!(a7==1)&&((((a23==1)&&(a20==1))&&(a17==2))&&(a19==4)))||(a14==1))))&&(a16==11)))){ + a8 = 0; + a5 = 4; + a9 = 7; + a27 = 0; + a16 = 7; + a26 = 0; + a19 = 1; + return -1; + } else if((((a20==1)&&(((((a16==11)&&((a12==1)||(a24==1)))||!(a23==1))&&(a17==2))&&(a21==12)))&&((a19==4)&&((a1==12)&&((a28==1)&&(((a28==1)&&(((input==3)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(a28==1)))&&(a12==1))))))){ + a5 = 4; + a21 = 10; + a19 = 1; + a18 = 0; + a27 = 0; + a9 = 7; + a16 = 7; + return -1; + } else if((((a1==12)&&((a16==9)&&(!(a4==1)&&(((a11==1)&&!(a26==1))&&(a20==1)))))&&(((a5==4)&&((a21==12)&&((a19==1)&&((((((input==3)&&(a9==11))&&(a13==1))&&(a3==1))&&!(a24==1))&&!(a18==1)))))&&(a17==2)))){ + a23 = 1; + a16 = 7; + a7 = 0; + a13 = 1; + a9 = 7; + a21 = 10; + return -1; + } else if(((((a21==12)&&((a3==1)&&(!(a27==1)&&((((input==6)&&(a17==2))&&!(a14==1))&&(a13==1)))))&&(a5==5))&&(((a0==1)||((!(a14==1)&&((((a6==1)&&(a20==1))&&(a19==2))&&(a1==12)))&&(a9==9)))&&(a16==8)))){ + a27 = 0; + a18 = 0; + a19 = 5; + a16 = 10; + a14 = 0; + a9 = 10; + a21 = 11; + a1 = 14; + return 21; + } else if(((((((a3==1)&&(((a21==10)&&((input==1)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))&&(a1==14)))&&(a13==1))&&!(a27==1))&&(a6==1))&&((!(a12==1)||(((a19==3)&&(((a14==1)||(a23==1))&&(a16==11)))&&(a17==2)))&&(a20==1)))){ + a9 = 7; + a27 = 0; + a16 = 7; + a5 = 5; + a4 = 0; + a20 = 0; + a0 = 0; + a21 = 12; + return 25; + } else if((((a1==13)&&(((a16==7)&&(((!(a8==1)&&(!(a18==1)&&(a11==1)))||!(a23==1))&&!(a24==1)))&&(a13==1)))&&((((((a21==11)&&((input==6)&&(((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7))))))&&(a17==2))&&(a3==1))&&(a20==1))&&(a19==3)))){ + a3 = 1; + a1 = 14; + a5 = 6; + a9 = 7; + a6 = 1; + a19 = 5; + a0 = 0; + a16 = 8; + a21 = 10; + return 21; + } else if((((((((a28==1)&&(a20==1))&&(a12==1))&&!(a18==1))&&(a17==2))||(a26==1))&&(((a19==2)&&(!(a27==1)&&((a9==9)&&(((a21==12)&&((a1==13)&&((a3==1)&&((input==6)&&((a5==5)||(a5==6))))))&&(a16==11)))))&&!(a18==1)))){ + a16 = 7; + a5 = 4; + a19 = 1; + a2 = 1; + a4 = 0; + a1 = 12; + a9 = 7; + a21 = 10; + a24 = 0; + return -1; + } else if((((a4==1)||((a26==1)||(((a17==2)&&(a23==1))&&(a19==1))))&&((((a13==1)&&((a16==8)&&(!(a20==1)&&(!(a7==1)&&((a1==14)&&((a21==11)&&(((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11)))&&(input==1))))))))&&!(a27==1))&&!(a4==1)))){ + a9 = 7; + a16 = 7; + a21 = 10; + a1 = 12; + a5 = 4; + a26 = 0; + a7 = 0; + a20 = 1; + a12 = 1; + return -1; + } else if((((a19==4)&&(!(a14==1)&&((a6==1)&&(((a16==7)&&(!(a27==1)&&(((a6==1)||!(a2==1))||!(a28==1))))&&(a9==11)))))&&((a21==10)&&((((a28==1)&&(((input==1)&&((a5==5)||(a5==6)))&&(a17==2)))&&!(a20==1))&&(a1==12))))){ + a24 = 0; + a5 = 4; + a8 = 0; + a13 = 1; + a1 = 13; + return 25; + } else if((((a1==12)&&((((a9==10)&&((a21==12)&&((((((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&!(a18==1))&&(a11==1))&&(a2==1))&&!(a14==1))))&&!(a20==1))&&(a19==4)))&&((a17==2)&&((a16==7)&&(((a11==1)&&(a13==1))&&!(a14==1)))))){ + a21 = 10; + a0 = 0; + a9 = 7; + a19 = 1; + a5 = 4; + a20 = 1; + a24 = 0; + return -1; + } else if(((!(a14==1)&&((a19==4)&&((a20==1)&&((a16==9)&&((a23==1)&&((input==5)&&((((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))||((a5==4)&&(a9==10)))))))))&&(((a2==1)&&((!(a12==1)||(((a1==13)&&((a12==1)&&(a17==2)))&&(a6==1)))&&(a21==12)))||!(a13==1)))){ + a1 = 12; + a21 = 10; + a9 = 7; + a19 = 1; + a2 = 1; + a16 = 7; + a23 = 1; + a24 = 0; + a5 = 4; + return -1; + } else if((((a17==2)&&((!(a27==1)&&(((!(a3==1)||(a23==1))&&!(a14==1))||!(a28==1)))&&!(a4==1)))&&((a21==11)&&(((((((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==6))&&(a19==3))&&(a16==9))&&!(a26==1))&&(a1==12))&&(a20==1))))){ + a3 = 1; + a23 = 1; + a18 = 0; + a19 = 1; + a21 = 10; + a5 = 4; + a9 = 7; + a16 = 7; + return -1; + } else if((((a6==1)&&(((a19==1)&&((a9==8)&&((a17==2)&&((a5==6)&&(input==1)))))&&(a6==1)))&&((((a1==14)&&(((!(a8==1)&&(!(a20==1)&&((a23==1)&&(a21==11))))||!(a12==1))&&(a6==1)))&&(a16==9))||(a7==1)))){ + a15 = 1; + a9 = 10; + a16 = 8; + a19 = 3; + a1 = 13; + a8 = 1; + a28 = 0; + a21 = 10; + return -1; + } else if((((((a28==1)&&((a11==1)&&((((a9==10)&&(!(a4==1)&&((input==1)&&(a5==5))))&&(a2==1))&&(a16==10))))&&!(a0==1))&&(a19==4))&&((a21==10)&&(((((a1==12)&&(a6==1))&&!(a8==1))&&(a20==1))&&(a17==2))))){ + a9 = 9; + a16 = 9; + a19 = 3; + a2 = 1; + a27 = 0; + a6 = 1; + a5 = 4; + a21 = 12; + return 21; + } else if(((((((a1==13)&&((!(a0==1)&&(a13==1))||(a27==1)))&&(a20==1))||!(a23==1))||(a27==1))&&((!(a26==1)&&((a19==4)&&((a9==9)&&(((((input==4)&&((a5==4)||(a5==5)))&&(a28==1))&&(a16==11))&&(a21==12)))))&&(a17==2)))){ + a16 = 7; + a13 = 1; + a21 = 10; + a1 = 12; + a5 = 4; + a19 = 1; + a14 = 0; + a9 = 7; + a8 = 0; + return -1; + } else if((((a12==1)&&((a21==12)&&(!(a12==1)||(((a9==8)&&((a13==1)&&((a20==1)&&(!(a24==1)&&((a12==1)||(a18==1))))))&&(a1==12)))))&&((((((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a17==2))&&(a23==1))&&(a16==10))&&(a19==2)))){ + a1 = 14; + a21 = 10; + a16 = 7; + a0 = 0; + a2 = 1; + a9 = 10; + a5 = 6; + a4 = 0; + return 21; + } else if((((!(a13==1)||((a19==3)&&((((a11==1)&&(a16==10))&&(a17==2))&&(a1==13))))&&!(a7==1))&&(!(a27==1)&&(((((!(a14==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a9==8)))&&!(a0==1))&&(a21==12))&&!(a20==1))&&(a3==1))))){ + a20 = 1; + a5 = 4; + a15 = 1; + a16 = 7; + a2 = 0; + a9 = 9; + a21 = 10; + a19 = 1; + a1 = 14; + a8 = 1; + return -1; + } else if((((a9==7)&&((a1==13)&&((a2==1)&&((a12==1)&&(!(a14==1)&&(!(a24==1)&&((input==6)&&((a5==4)||(a5==5)))))))))&&((((a21==12)&&(((((a6==1)||!(a13==1))&&(a17==2))&&!(a4==1))&&(a20==1)))&&(a19==1))&&(a16==10)))){ + a9 = 9; + a5 = 5; + a0 = 0; + a16 = 7; + a21 = 10; + a19 = 2; + a3 = 1; + return 25; + } else if(((!(a23==1)||((a16==10)&&((((((a12==1)&&(a11==1))&&(a21==12))&&(a17==2))&&(a19==2))&&!(a27==1))))&&((((((!(a26==1)&&((input==6)&&(a5==6)))&&(a20==1))&&(a9==11))&&(a1==14))&&!(a7==1))&&!(a4==1)))){ + a7 = 0; + a16 = 7; + a5 = 5; + a21 = 10; + a9 = 9; + a13 = 1; + a1 = 13; + a26 = 0; + return 25; + } else if((((((a5==6)&&(!(a8==1)&&(((a23==1)&&((a7==1)||(((a21==12)&&((a2==1)&&(a1==13)))&&(a9==10))))&&(a16==7))))||(a8==1))||!(a3==1))&&((((a28==1)&&((input==3)&&(a19==4)))&&(a17==2))&&!(a20==1)))){ + a5 = 4; + a20 = 1; + a12 = 1; + a19 = 1; + a9 = 7; + a0 = 0; + a1 = 12; + a2 = 1; + a21 = 10; + return -1; + } else if(((((((a21==10)&&(!(a13==1)||((a9==8)&&((a12==1)&&(a16==10)))))&&(a23==1))&&(a19==3))&&!(a14==1))&&((((a20==1)&&((((((a5==5)||(a5==6))&&(input==4))&&(a28==1))&&(a17==2))&&(a1==14)))&&!(a14==1))&&(a12==1)))){ + a11 = 1; + a9 = 7; + a16 = 7; + a5 = 4; + a21 = 11; + a12 = 1; + a6 = 1; + return 23; + } else if((((a1==12)&&((a21==11)&&((((a17==2)&&(!(a20==1)&&(a3==1)))||!(a13==1))&&(a19==2))))&&(((a12==1)&&(!(a24==1)&&(!(a8==1)&&((((a9==11)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6))))&&(a16==8))&&(a11==1)))))&&(a3==1)))){ + a9 = 7; + a0 = 0; + a5 = 4; + a21 = 10; + a19 = 1; + a20 = 1; + a16 = 7; + a18 = 0; + return -1; + } else if((((((!(a27==1)&&(!(a18==1)&&((a9==10)&&((a21==11)&&(input==1)))))&&!(a0==1))&&(a1==12))&&(a5==4))&&((((a7==1)||(((a19==4)&&((a18==1)||((a28==1)&&(a17==2))))||(a27==1)))&&(a16==7))&&!(a20==1)))){ + a19 = 1; + a27 = 0; + a5 = 6; + a21 = 10; + a2 = 1; + a20 = 1; + a4 = 0; + a16 = 10; + return 21; + } else if(((!(a13==1)||((((a11==1)&&(a20==1))&&(a19==5))&&(a5==4)))&&(!(a26==1)&&(((a2==1)&&((a9==9)&&((((a17==2)&&((((a16==7)&&(input==1))&&(a1==12))&&(a11==1)))&&!(a14==1))&&(a21==12))))&&(a28==1))))){ + a24 = 0; + a19 = 1; + a8 = 0; + a9 = 7; + a21 = 10; + a13 = 1; + return -1; + } else if((((a28==1)&&(((((((((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a5==6)&&(a9==10))))&&(input==5))&&(a21==11))&&(a16==7))&&(a1==12))&&(a6==1))&&!(a24==1)))&&((!(a26==1)&&(!(a0==1)&&((((a28==1)&&!(a0==1))&&(a17==2))&&(a19==2))))&&(a20==1)))){ + a16 = 8; + a19 = 3; + a8 = 0; + a9 = 7; + a23 = 1; + a21 = 10; + a2 = 1; + a5 = 4; + return 21; + } else if((((((((a11==1)&&((a11==1)&&(a23==1)))||!(a12==1))&&(a5==4))&&(a1==14))&&(a12==1))&&((a19==2)&&(((((a21==11)&&((a20==1)&&((a6==1)&&((a17==2)&&(input==4)))))&&(a2==1))&&(a16==8))&&(a9==9))))){ + a27 = 0; + a14 = 0; + a8 = 0; + a19 = 4; + a16 = 10; + a21 = 10; + a9 = 10; + return 25; + } else if(((((((a21==10)&&((a16==8)&&(((a28==1)&&(a9==7))&&(a1==12))))&&(a28==1))&&(a23==1))&&!(a26==1))&&((((a19==3)&&(((((input==4)&&((a5==4)||(a5==5)))&&(a23==1))&&(a17==2))&&!(a20==1)))&&!(a8==1))&&(a6==1)))){ + a23 = 1; + a8 = 0; + a16 = 7; + a27 = 0; + a19 = 1; + a5 = 4; + a20 = 1; + return -1; + } else if(((((a13==1)&&(((a1==14)&&(!(a7==1)&&((!(a20==1)&&(input==5))&&!(a18==1))))&&(a21==12)))&&(a12==1))&&((!(a18==1)&&((a17==2)&&(((a16==10)&&((a5==6)&&((a9==7)&&(a2==1))))&&(a19==2))))&&(a2==1)))){ + a1 = 12; + a4 = 1; + a21 = 10; + a9 = 9; + a20 = 1; + a29 = 0; + a16 = 7; + a22 = 1; + return -1; + } else if(((!(a8==1)&&((a17==2)&&((a12==1)&&((a21==12)&&(!(a20==1)&&(((a0==1)||((a3==1)&&!(a27==1)))||(a0==1)))))))&&((a16==7)&&((a19==3)&&((((((a5==6)&&(a1==12))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==13))))&&(input==4))&&(a13==1)))))){ + a20 = 1; + a19 = 1; + a21 = 10; + a1 = 12; + a9 = 7; + a27 = 0; + a5 = 4; + a18 = 0; + return -1; + } else if(((!(a7==1)&&((((a6==1)&&((((input==4)&&(((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))))&&(a19==5))&&(a16==8)))&&(a21==11))&&(a1==13)))&&((a4==1)||((!(a0==1)&&(!(a20==1)&&(((a17==2)&&(a28==1))&&(a3==1))))||!(a13==1))))){ + if((a29==1)){ + a26 = 1; + a5 = 6; + a2 = 0; + a19 = 4; + a24 = 1; + a21 = 12; + a20 = 1; + a9 = 10; + }else{ + a10 = 1; + a21 = 10; + a5 = 4; + a1 = 12; + a23 = 0; + a20 = 1; + a9 = 9; + a28 = 0; + a16 = 7; + a19 = 2; + } + return 25; + } else if(((((a5==5)&&((a19==2)&&(!(a12==1)||(((a26==1)||(a13==1))&&!(a18==1)))))&&(a16==10))&&((!(a14==1)&&(!(a18==1)&&((a20==1)&&(((a9==11)&&((a17==2)&&((a21==12)&&(input==1))))&&(a1==13)))))&&(a28==1)))){ + a9 = 7; + a14 = 0; + a4 = 0; + a5 = 4; + a1 = 12; + a19 = 1; + a21 = 10; + a16 = 7; + return -1; + } else if(((((((a20==1)&&((((a4==1)||((a23==1)&&(((a28==1)&&(a2==1))||!(a28==1))))&&(a5==6))&&(a1==14)))&&(a17==2))&&(a16==9))&&(a9==10))&&((a19==5)&&((a2==1)&&(((a21==12)&&(input==4))&&(a6==1)))))){ + a5 = 4; + a19 = 1; + a28 = 1; + a1 = 12; + a9 = 7; + a16 = 7; + a24 = 0; + a21 = 10; + return -1; + } else if((((a17==2)&&(((!(a6==1)||(a6==1))&&(a1==14))&&(a20==1)))&&(((!(a27==1)&&(((a16==10)&&((((((a19==3)&&(input==1))&&(a23==1))&&(a28==1))&&(a21==11))&&(a5==4)))&&(a3==1)))&&!(a4==1))&&(a9==8)))){ + a21 = 10; + a28 = 1; + a19 = 1; + a13 = 1; + a14 = 0; + a16 = 7; + a1 = 12; + a9 = 7; + return -1; + } else if((((!(a14==1)&&((a11==1)&&!(a20==1)))&&(a28==1))&&(((a9==10)&&((!(a26==1)&&(((a16==8)&&(((((a19==4)&&((input==5)&&((a5==5)||(a5==6))))&&!(a0==1))&&(a13==1))&&!(a24==1)))&&(a21==11)))&&(a1==12)))&&(a17==2)))){ + a26 = 0; + a20 = 1; + a19 = 5; + a2 = 1; + a18 = 0; + a5 = 4; + a21 = 10; + a9 = 9; + return 25; + } else if((((a12==1)&&(((!(a20==1)&&((a5==6)&&((a17==2)&&(input==4))))&&!(a27==1))&&(a2==1)))&&(((a21==11)&&(((a9==7)&&(!(a7==1)&&((!(a13==1)||((a11==1)&&!(a18==1)))&&(a1==14))))&&(a16==7)))&&(a19==1)))){ + a20 = 1; + a1 = 12; + a21 = 10; + a5 = 4; + a23 = 1; + a3 = 1; + a13 = 1; + return -1; + } else if((((a1==13)&&((a16==7)&&((((a19==4)&&((a12==1)&&((a28==1)||(a27==1))))&&!(a7==1))&&!(a24==1))))&&((a21==10)&&(((!(a4==1)&&(((input==6)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&!(a24==1)))&&(a17==2))&&!(a20==1))))){ + a21 = 12; + a1 = 12; + a5 = 5; + a4 = 0; + a20 = 1; + a3 = 1; + a18 = 0; + a9 = 8; + a16 = 11; + return 23; + } else if((((a21==10)&&(((((((a12==1)&&((!(a0==1)&&(((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))&&(input==3)))&&(a6==1)))&&(a19==5))&&(a3==1))&&(a6==1))&&!(a8==1))&&(a16==7)))&&(!(a20==1)&&((a17==2)&&((a2==1)&&(a1==13)))))){ + a19 = 1; + a20 = 1; + a3 = 1; + a24 = 0; + a8 = 0; + a9 = 7; + a5 = 4; + a1 = 12; + return -1; + } else if((((!(a24==1)&&(((a18==1)||((a27==1)||((a13==1)&&(a12==1))))&&!(a27==1)))&&(a1==12))&&((a13==1)&&(((a20==1)&&((a19==3)&&((a16==9)&&((a17==2)&&((input==1)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8))))))))&&(a21==11))))){ + if((a28==1)){ + a12 = 1; + a21 = 12; + a2 = 1; + a9 = 10; + a20 = 0; + a16 = 7; + a14 = 0; + a19 = 1; + a5 = 6; + a1 = 13; + }else{ + a3 = 1; + a5 = 5; + a9 = 8; + a1 = 14; + a16 = 11; + a21 = 10; + a23 = 1; + a28 = 1; + } + return 25; + } else if(((!(a12==1)||(((a0==1)||(((a1==12)&&((a5==5)&&(((a6==1)&&!(a20==1))&&!(a27==1))))&&(a19==3)))&&(a16==9)))&&(!(a7==1)&&(((a12==1)&&(((a21==10)&&((input==6)&&(a9==9)))&&(a17==2)))&&!(a27==1))))){ + a14 = 1; + a26 = 1; + a16 = 8; + a13 = 0; + a21 = 11; + a20 = 1; + a5 = 4; + return 22; + } else if(((((a19==1)&&((a17==2)&&(!(a8==1)&&((((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(input==6)))))&&(a16==10))&&(!(a20==1)&&((a2==1)&&((((((a21==11)&&((a13==1)&&(a1==13)))&&(a2==1))||(a7==1))||!(a3==1))||!(a6==1)))))){ + a20 = 1; + a16 = 7; + a18 = 1; + a1 = 14; + a9 = 11; + a22 = 1; + a21 = 10; + a12 = 0; + a5 = 5; + return -1; + } else if((((a1==12)&&((((!(a26==1)&&((a4==1)||(a6==1)))&&(a16==7))&&!(a20==1))||(a26==1)))&&((a21==10)&&((((!(a8==1)&&(((input==6)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(a13==1)))&&(a28==1))&&(a19==4))&&(a17==2))))){ + a1 = 13; + a19 = 1; + a21 = 11; + a13 = 1; + a9 = 9; + a0 = 0; + a2 = 1; + a5 = 6; + return 25; + } else if((((a0==1)||(!(a24==1)&&(((a27==1)||(((a13==1)&&(a28==1))&&(a16==7)))&&(a21==12))))&&((a28==1)&&(((a19==3)&&((!(a20==1)&&((a17==2)&&((input==4)&&(((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))))))&&(a1==14)))&&!(a0==1))))){ + a19 = 1; + a5 = 4; + a4 = 0; + a9 = 7; + a18 = 0; + a11 = 1; + a21 = 10; + a20 = 1; + a1 = 12; + return -1; + } else if(((!(a8==1)&&(!(a0==1)&&(!(a20==1)&&((a13==1)&&(((input==3)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&(a16==9))))))&&((((a19==1)&&(((a23==1)&&((a21==12)&&((a28==1)&&(a17==2))))&&(a1==14)))||!(a23==1))||(a7==1)))){ + if((a26==1)){ + a19 = 4; + a5 = 6; + a2 = 0; + a14 = 1; + a20 = 1; + a16 = 11; + a1 = 12; + a29 = 1; + a9 = 7; + }else{ + a6 = 0; + a16 = 7; + a9 = 9; + a26 = 1; + a20 = 1; + a10 = 1; + a21 = 10; + a5 = 5; + a1 = 13; + } + return 23; + } else if((((a21==11)&&((a3==1)&&(((((a28==1)&&(((a2==1)&&((a17==2)&&(input==5)))&&(a1==13)))&&(a16==10))&&(a19==3))&&(a5==6))))&&((!(a20==1)&&(!(a8==1)&&((a7==1)||((a14==1)||(a11==1)))))&&(a9==9)))){ + if((a18==1)){ + a15 = 0; + a29 = 1; + a20 = 1; + a22 = 0; + a16 = 11; + a1 = 14; + a21 = 10; + a19 = 4; + a9 = 10; + }else{ + a21 = 10; + a20 = 1; + a29 = 1; + a9 = 10; + a1 = 12; + a8 = 1; + a16 = 7; + a5 = 5; + a19 = 2; + a2 = 0; + } + return 25; + } else if(((!(a12==1)||(!(a11==1)||((a16==7)&&((((a3==1)&&(a21==12))&&!(a4==1))&&(a11==1)))))&&(((a17==2)&&((((a28==1)&&((((a9==11)&&((a5==6)&&(a1==12)))||(((a1==13)&&(a5==4))&&(a9==7)))&&(input==3)))&&(a11==1))&&(a19==2)))&&(a20==1)))){ + a27 = 0; + a12 = 1; + a11 = 1; + a1 = 14; + a9 = 8; + a16 = 9; + a21 = 10; + a5 = 6; + return 25; + } else if((((a0==1)||((!(a27==1)&&((a27==1)||(!(a0==1)&&((a24==1)||((a13==1)&&(a16==9))))))&&(a1==12)))&&((a21==10)&&(((a5==4)&&((((a6==1)&&((a9==11)&&(input==3)))&&(a17==2))&&!(a20==1)))&&(a19==5))))){ + a29 = 1; + a1 = 13; + a5 = 6; + a14 = 1; + a11 = 0; + a20 = 1; + a19 = 1; + a9 = 8; + a16 = 7; + return -1; + } else if((((!(a27==1)&&((a1==14)&&((a6==1)&&(!(a2==1)||(a2==1)))))&&(a19==3))&&((a16==11)&&((((!(a7==1)&&((((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))&&(input==1))&&(a12==1))&&(a17==2)))&&(a13==1))&&(a20==1))&&(a21==12))))){ + a21 = 10; + a4 = 0; + a16 = 7; + a7 = 0; + a19 = 1; + a9 = 7; + a1 = 12; + a2 = 1; + a5 = 4; + return -1; + } else if((((((a21==11)&&((((!(a20==1)&&(input==3))&&!(a8==1))&&(a1==13))&&(a9==10)))&&(a19==1))&&!(a18==1))&&((((!(a7==1)&&(((a16==7)&&((a4==1)||(a3==1)))&&!(a27==1)))&&(a17==2))&&(a5==6))||!(a11==1)))){ + a20 = 1; + a24 = 0; + a9 = 7; + a5 = 4; + a1 = 12; + a21 = 10; + a0 = 0; + return -1; + } else if((((((a1==12)&&((a17==2)&&((a28==1)&&(a23==1))))||(a18==1))||(a4==1))&&((a2==1)&&((((a19==5)&&((a5==4)&&(((a9==9)&&((a16==8)&&((a21==12)&&(input==6))))&&(a3==1))))&&(a28==1))&&(a20==1))))){ + a19 = 2; + a5 = 5; + a21 = 10; + a1 = 13; + a28 = 1; + a16 = 7; + a3 = 1; + a2 = 1; + return -1; + } else if(((((a16==7)&&(((a2==1)&&(((a21==11)&&((a1==14)&&((input==3)&&((a5==6)||((a5==4)||(a5==5))))))&&(a9==9)))&&!(a27==1)))&&(a11==1))&&((!(a18==1)&&(((a17==2)&&((a19==5)&&((a2==1)&&!(a20==1))))||!(a23==1)))&&(a11==1)))){ + a26 = 0; + a1 = 12; + a19 = 1; + a24 = 0; + a5 = 4; + a9 = 7; + a20 = 1; + a18 = 0; + a21 = 10; + return -1; + } else if(((((a6==1)&&((((a16==7)&&((input==1)&&((((a5==5)&&(a1==14))&&(a9==7))||((((a1==13)&&(a5==6))&&(a9==11))||((a9==7)&&((a1==14)&&(a5==4)))))))&&(a20==1))&&(a6==1)))&&(a6==1))&&((a21==10)&&((a2==1)&&(((a24==1)||((a17==2)&&(!(a13==1)||(a28==1))))&&(a19==2)))))){ + a19 = 4; + a9 = 9; + a28 = 1; + a6 = 1; + a5 = 5; + a1 = 12; + return 26; + } else if((((((((a21==12)&&(a2==1))&&(a19==4))&&(a20==1))||!(a11==1))&&(a17==2))&&((a23==1)&&((((a11==1)&&((a16==10)&&((!(a7==1)&&(!(a8==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6))))&&(a9==8))))&&(a12==1))&&(a1==14))))){ + a4 = 0; + a13 = 1; + a19 = 1; + a21 = 10; + a1 = 12; + a16 = 7; + a9 = 7; + a6 = 1; + a5 = 4; + return -1; + } else if((((((a19==1)&&(((a21==11)&&(((a9==10)&&(((a5==5)||(a5==6))&&(input==4)))&&(a3==1)))&&(a23==1)))&&(a17==2))&&!(a20==1))&&((a16==8)&&((!(a6==1)||((((a13==1)&&!(a4==1))||(a18==1))||(a0==1)))&&(a1==12))))){ + a5 = 4; + a0 = 0; + a2 = 1; + a20 = 1; + a9 = 7; + a21 = 10; + a11 = 1; + a16 = 7; + return -1; + } else if((((((a19==5)&&(a12==1))||(a4==1))&&(a16==7))&&((((a9==7)&&(((a2==1)&&((a21==11)&&((a17==2)&&(((a1==13)&&((((a5==4)||(a5==5))&&(input==3))&&!(a14==1)))&&!(a20==1)))))&&(a12==1)))&&(a6==1))&&!(a26==1)))){ + a6 = 1; + a0 = 0; + a5 = 4; + a21 = 10; + a1 = 12; + a3 = 1; + a19 = 1; + a20 = 1; + return -1; + } else if(((!(a0==1)&&(((a16==10)&&(!(a4==1)&&(((((a28==1)&&(!(a20==1)&&(input==3)))&&(a17==2))&&(a13==1))&&!(a7==1))))&&!(a14==1)))&&((((a21==12)&&((a9==9)&&((a2==1)&&(a1==13))))&&(a5==5))&&(a19==5)))){ + a26 = 1; + a9 = 8; + a21 = 10; + a20 = 1; + a3 = 0; + a19 = 1; + a16 = 7; + a12 = 0; + a1 = 14; + return 21; + } else if(((((a20==1)&&(((((a17==2)&&(a28==1))&&(a16==9))&&(a21==12))||!(a23==1)))&&(a3==1))&&(((a6==1)&&(((a28==1)&&((((a19==1)&&((a9==11)&&((a5==6)&&(a1==14))))||((((a5==4)&&(a1==12))&&(a9==7))&&(a19==2)))&&(input==1)))&&(a3==1)))&&!(a27==1)))){ + a1 = 12; + a20 = 0; + a9 = 11; + a23 = 1; + a21 = 10; + a11 = 1; + a16 = 8; + a19 = 3; + a5 = 4; + return 21; + } else if((((a16==9)&&((a17==2)&&((a18==1)||((((a26==1)||(a28==1))&&(a1==14))&&(a9==7)))))&&(!(a18==1)&&((a23==1)&&(((!(a0==1)&&((a2==1)&&((a19==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))))&&(a21==12))&&(a20==1)))))){ + if((a29==1)){ + a21 = 11; + a5 = 6; + a24 = 0; + a16 = 7; + a19 = 2; + a4 = 0; + a13 = 1; + a20 = 0; + }else{ + a24 = 0; + a9 = 11; + a16 = 11; + a28 = 1; + a5 = 6; + a14 = 0; + a1 = 12; + a19 = 4; + a21 = 10; + } + return 23; + } else if((((a12==1)&&((a20==1)&&(!(a2==1)||((a12==1)&&(((a0==1)||((a14==1)||(a12==1)))&&(a16==10))))))&&((((a3==1)&&((a19==1)&&(((input==6)&&(((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))))&&(a17==2))))&&(a1==13))&&(a21==10)))){ + a5 = 4; + a1 = 12; + a9 = 7; + a16 = 7; + a3 = 1; + return -1; + } else if((((((a1==14)&&(!(a0==1)&&((input==6)&&((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10))))))&&!(a27==1))&&(a21==11))&&((a19==2)&&((a20==1)&&(((!(a14==1)&&((a17==2)&&((!(a28==1)||(a6==1))||(a26==1))))||!(a28==1))&&(a16==11)))))){ + a9 = 11; + a13 = 1; + a6 = 1; + a19 = 1; + a5 = 4; + a0 = 0; + a1 = 13; + a21 = 12; + return 23; + } else if(((((((((a12==1)&&((!(a7==1)&&((a9==10)&&(input==1)))&&(a16==8)))&&!(a14==1))&&(a12==1))&&(a3==1))&&(a20==1))&&(a19==3))&&((a21==10)&&((a1==12)&&((a28==1)&&((a5==5)&&((a13==1)&&(a17==2)))))))){ + a19 = 4; + a21 = 12; + a24 = 0; + a11 = 1; + a9 = 8; + a28 = 1; + a16 = 9; + a1 = 14; + return 25; + } else if((((a6==1)&&(!(a14==1)&&((a12==1)&&(!(a11==1)||(((a16==7)&&(((a2==1)&&(a19==3))||(a7==1)))&&(a17==2))))))&&((a12==1)&&((a21==11)&&(((input==6)&&((((a1==13)&&(a5==4))&&(a9==7))||(((a9==11)&&((a5==5)&&(a1==12)))||(((a5==6)&&(a1==12))&&(a9==11)))))&&(a20==1)))))){ + a19 = 5; + a9 = 10; + a1 = 13; + a16 = 8; + a5 = 6; + a21 = 10; + a0 = 0; + a7 = 0; + a6 = 1; + return 22; + } else if((((!(a11==1)||((a9==9)&&((a1==14)&&(((a16==11)&&((a7==1)||((a20==1)&&(a11==1))))||(a8==1)))))&&(a17==2))&&((a19==4)&&((!(a24==1)&&(((a13==1)&&(((a5==5)||(a5==6))&&(input==6)))&&(a6==1)))&&(a21==11))))){ + a1 = 13; + a2 = 1; + a5 = 5; + a19 = 5; + a24 = 0; + a9 = 7; + a28 = 1; + return 21; + } else if(((((a21==11)&&((((a16==7)&&(!(a27==1)&&(!(a24==1)&&((a17==2)&&(input==5)))))&&(a1==12))&&(a28==1)))&&(a19==3))&&((a20==1)&&((a5==4)&&(((((a13==1)||!(a2==1))&&(a9==10))||(a8==1))&&!(a24==1)))))){ + a19 = 5; + a16 = 8; + a8 = 0; + a21 = 10; + a4 = 0; + a5 = 5; + a3 = 1; + a9 = 9; + return 25; + } else if((((a23==1)&&(((!(a6==1)||((a16==7)&&(((a11==1)&&(!(a20==1)&&((a0==1)||(((a3==1)&&(a9==11))&&(a17==2)))))&&(a19==2))))&&(a1==12))&&(a12==1)))&&(((a21==10)&&((input==3)&&((a5==5)||(a5==6))))&&!(a7==1)))){ + a8 = 0; + a19 = 1; + a5 = 4; + a12 = 1; + a9 = 7; + a20 = 1; + return -1; + } else if(((((a21==10)&&(((a16==8)&&((a19==4)&&(((a0==1)||((a12==1)&&(a1==12)))&&(a20==1))))&&!(a18==1)))&&!(a7==1))&&(!(a27==1)&&(((a6==1)&&(!(a27==1)&&((a9==8)&&((input==4)&&((a5==4)||(a5==5))))))&&(a17==2))))){ + a5 = 4; + a7 = 0; + a16 = 7; + a9 = 7; + a3 = 1; + a0 = 0; + a19 = 1; + return -1; + } else if((((a1==13)&&((a9==8)&&(!(a14==1)&&(((a19==5)&&((a24==1)||(((a11==1)||!(a13==1))&&(a17==2))))&&(a20==1)))))&&((a13==1)&&((((a28==1)&&((((a5==4)||(a5==5))&&(input==1))&&(a21==10)))&&!(a0==1))&&(a16==7))))){ + a21 = 12; + a6 = 1; + a1 = 12; + a9 = 11; + a12 = 1; + a19 = 3; + a18 = 0; + a5 = 5; + return 21; + } else if(((((a17==2)&&((a27==1)||(((a7==1)||(a13==1))&&(a1==14))))||!(a3==1))&&(!(a24==1)&&(((a20==1)&&((((((a16==7)&&((input==4)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a7==1))&&(a19==5))&&(a21==12))&&(a9==10)))&&(a11==1))))){ + a2 = 1; + a9 = 7; + a7 = 0; + a19 = 1; + a1 = 12; + a21 = 10; + a5 = 4; + a4 = 0; + return -1; + } else if((((((a11==1)&&((((((a21==12)&&(((input==3)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5))))&&(a28==1)))&&!(a4==1))&&!(a20==1))&&(a1==13))&&(a17==2)))&&!(a14==1))&&(a19==5))&&((a16==9)&&(((a12==1)||(a26==1))&&!(a8==1))))){ + a1 = 14; + a19 = 2; + a20 = 1; + a9 = 11; + a2 = 0; + a16 = 10; + a0 = 1; + a22 = 0; + a5 = 6; + return -1; + } else if((((!(a11==1)||((((a9==11)&&(!(a7==1)&&(a12==1)))&&(a17==2))&&(a21==11)))||!(a3==1))&&((!(a0==1)&&((((((a19==1)&&(((a5==4)||(a5==5))&&(input==6)))&&(a1==13))&&(a20==1))&&(a16==7))&&(a28==1)))&&!(a4==1)))){ + a21 = 10; + a18 = 0; + a13 = 1; + a5 = 4; + a1 = 12; + a9 = 7; + return -1; + } else if((((((a16==9)&&(!(a18==1)&&((input==4)&&(a1==14))))&&(a6==1))&&(a2==1))&&((a17==2)&&((a21==10)&&((a19==5)&&((((a9==9)&&(!(a4==1)&&(!(a2==1)||((a28==1)&&(a13==1)))))&&(a20==1))&&(a5==5))))))){ + a19 = 1; + a16 = 7; + a9 = 7; + a5 = 4; + a1 = 12; + a4 = 0; + a24 = 0; + return -1; + } else if(((((((((!(a27==1)&&(!(a14==1)&&((input==1)&&((a5==5)||(a5==6)))))&&(a1==12))&&(a16==8))&&(a19==4))&&!(a18==1))&&(a20==1))&&(a17==2))&&(((a9==9)&&((a21==12)&&(((a3==1)||(a27==1))&&!(a14==1))))&&(a11==1)))){ + a9 = 7; + a23 = 1; + a19 = 1; + a5 = 4; + a21 = 10; + a27 = 0; + a24 = 0; + a16 = 7; + return -1; + } else if(((((((a4==1)||(((a12==1)||!(a13==1))&&!(a14==1)))||(a18==1))&&(a19==5))&&(a20==1))&&((a1==12)&&(((((a21==11)&&(((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==4))&&(a23==1)))&&!(a7==1))&&(a16==10))&&(a17==2))))){ + a16 = 7; + a3 = 1; + a5 = 4; + a19 = 1; + a0 = 0; + a21 = 10; + a9 = 7; + return -1; + } else if((((((a19==5)&&((a7==1)||((a3==1)||!(a11==1))))&&(a21==11))&&(a20==1))&&(((!(a7==1)&&(((a16==11)&&((a17==2)&&(((input==3)&&(((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))&&!(a14==1))))&&!(a24==1)))&&!(a14==1))&&(a1==13)))){ + a28 = 1; + a9 = 7; + a1 = 12; + a16 = 7; + a21 = 10; + a7 = 0; + a19 = 1; + a5 = 4; + return -1; + } else if(((!(a20==1)&&(((((input==1)&&(a19==4))&&(a13==1))&&!(a0==1))&&(a5==6)))&&(((a21==11)&&(((((((a16==8)&&((a28==1)&&!(a18==1)))||(a27==1))||!(a2==1))&&!(a14==1))&&(a9==11))&&(a17==2)))&&(a1==14)))){ + a9 = 8; + a6 = 1; + a13 = 1; + a21 = 12; + a19 = 5; + a24 = 0; + a20 = 1; + a16 = 9; + a5 = 4; + return 25; + } else if((((a1==14)&&((a9==7)&&((a19==1)&&((a3==1)&&(((a16==10)&&((a11==1)&&(a17==2)))||(a14==1))))))&&(!(a20==1)&&((((!(a24==1)&&(((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&(a6==1)))&&(a21==10))&&(a3==1))&&!(a8==1))))){ + a15 = 0; + a13 = 0; + a16 = 8; + a1 = 12; + a10 = 1; + a5 = 5; + a9 = 11; + a21 = 11; + a19 = 4; + return -1; + } else if((((a20==1)&&(((a16==7)&&((a1==13)&&((((a6==1)&&(((!(a2==1)||(a6==1))||(a4==1))||!(a2==1)))&&(a17==2))&&(a21==10))))&&(a19==5)))&&((a9==11)&&((!(a7==1)&&((a5==4)&&(input==3)))&&!(a4==1))))){ + a21 = 12; + a1 = 12; + a13 = 1; + a19 = 4; + a18 = 0; + a9 = 7; + a11 = 1; + return 25; + } else if((((a20==1)&&((a9==7)&&(((((a17==2)&&((input==5)&&(a16==7)))&&(a21==11))&&(a23==1))&&(a1==12))))&&((a5==5)&&(!(a24==1)&&(((a11==1)&&(((a19==2)&&((a12==1)||(a4==1)))&&!(a7==1)))&&(a2==1)))))){ + a5 = 6; + a23 = 1; + a16 = 8; + a1 = 13; + a14 = 0; + a21 = 10; + a4 = 0; + return 25; + } else if((((a2==1)&&((a5==4)&&((a16==9)&&((!(a27==1)&&((input==1)&&(a21==11)))&&(a17==2)))))&&((a11==1)&&(((!(a23==1)||((a1==13)&&((a4==1)||(((a9==10)&&(a2==1))&&(a19==4)))))&&!(a20==1))||(a14==1))))){ + a9 = 8; + a19 = 5; + a20 = 1; + a11 = 0; + a21 = 12; + a10 = 1; + a16 = 7; + a23 = 0; + a5 = 5; + return 25; + } else if((((((((a17==2)&&(((a16==7)&&((input==4)&&(a9==8)))&&(a1==12)))&&(a5==4))&&(a28==1))&&(a21==12))&&(a19==5))&&(!(a7==1)&&((a20==1)&&(((((a12==1)&&(a3==1))||(a26==1))&&!(a24==1))||(a14==1)))))){ + a14 = 0; + a3 = 1; + a21 = 10; + a19 = 1; + a9 = 7; + a7 = 0; + return -1; + } else if((((a13==1)&&(((a5==5)&&((((((input==5)&&(a9==8))&&!(a8==1))&&(a19==5))&&(a17==2))&&(a21==10)))&&(a1==12)))&&(!(a26==1)&&(!(a14==1)&&(((((a3==1)&&!(a20==1))&&(a16==7))||!(a23==1))||(a14==1)))))){ + a27 = 0; + a24 = 0; + a9 = 9; + a28 = 1; + return 25; + } else if((((a19==2)&&(((!(a4==1)&&((((a21==11)&&(input==3))&&(a6==1))&&!(a18==1)))&&(a2==1))&&(a16==9)))&&((!(a7==1)&&((!(a20==1)&&((!(a24==1)&&((a28==1)&&(a5==5)))&&(a17==2)))&&(a1==12)))&&(a9==9)))){ + a2 = 0; + a7 = 1; + a0 = 1; + a21 = 10; + a20 = 1; + a1 = 13; + a19 = 5; + a9 = 7; + return 26; + } else if((((a19==3)&&((((a1==12)&&(!(a18==1)&&((a11==1)&&((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==3)))))&&!(a26==1))&&(a2==1)))&&((a17==2)&&((((!(a28==1)||((a6==1)&&!(a27==1)))&&!(a20==1))&&(a21==10))&&(a16==7))))){ + a3 = 1; + a20 = 1; + a27 = 0; + a19 = 1; + a9 = 7; + a5 = 4; + a4 = 0; + return -1; + } else if((((a21==12)&&((a2==1)&&((a12==1)&&(((((a1==13)&&(a5==6))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==14))))&&(input==3)))))&&((((((!(a20==1)&&(((a12==1)&&(a6==1))||(a8==1)))&&(a6==1))||!(a12==1))&&(a17==2))&&(a19==3))&&(a16==10)))){ + a16 = 7; + a1 = 14; + a29 = 1; + a10 = 0; + a8 = 1; + a5 = 6; + a19 = 1; + a20 = 1; + a9 = 10; + a21 = 10; + return 21; + } else if(((((((a1==13)&&(!(a2==1)||(a12==1)))&&!(a4==1))&&(a16==10))&&!(a8==1))&&((((a21==11)&&(((a23==1)&&(!(a7==1)&&((a6==1)&&(((a19==1)&&(input==1))&&(a9==10)))))&&(a20==1)))&&(a17==2))&&(a5==6)))){ + a5 = 4; + a14 = 0; + a21 = 10; + a9 = 7; + a16 = 7; + a27 = 0; + a1 = 12; + a24 = 0; + return -1; + } else if((((a12==1)&&(!(a26==1)&&(((((a19==3)&&(((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==1))&&(a13==1)))&&!(a18==1))&&(a16==10))&&(a20==1))))&&(((a24==1)||((a17==2)&&(((a1==14)&&(a12==1))&&(a21==11))))&&(a3==1)))){ + a1 = 13; + a5 = 5; + a27 = 0; + a14 = 0; + a16 = 7; + a26 = 0; + a19 = 2; + a9 = 9; + a21 = 10; + return 25; + } else if((((a17==2)&&((a13==1)&&(!(a7==1)&&((a9==8)&&((a19==2)&&(!(a8==1)&&((a1==13)&&((a16==8)&&((((a5==5)||(a5==6))&&(input==1))&&(a23==1))))))))))&&((a28==1)&&((((a20==1)&&(a2==1))&&(a21==11))&&(a2==1))))){ + a0 = 0; + a24 = 0; + a5 = 4; + a21 = 10; + a9 = 7; + a16 = 7; + a23 = 1; + a19 = 1; + a1 = 12; + return -1; + } else if((((!(a26==1)&&(((a12==1)&&(a23==1))&&(a19==5)))||!(a12==1))&&(!(a14==1)&&((a21==12)&&(((a17==2)&&((a20==1)&&((a2==1)&&((a1==12)&&((((input==4)&&((a5==4)||(a5==5)))&&(a28==1))&&(a9==7))))))&&(a16==8)))))){ + if((a9==9)){ + a11 = 1; + a2 = 1; + a21 = 10; + a19 = 1; + a9 = 9; + a5 = 4; + a13 = 1; + a20 = 0; + }else{ + a3 = 1; + a9 = 11; + a8 = 0; + a1 = 13; + a2 = 1; + a5 = 4; + } + return 25; + } else if(((!(a28==1)||(((a1==14)&&(((a11==1)&&(a9==9))&&(a17==2)))&&!(a18==1)))&&((((a13==1)&&((!(a20==1)&&((((((a5==5)||(a5==6))&&(input==3))&&!(a24==1))&&(a12==1))&&(a16==8)))&&(a23==1)))&&(a19==3))&&(a21==10)))){ + a19 = 1; + a28 = 1; + a5 = 4; + a24 = 0; + a20 = 1; + a1 = 12; + a12 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if((((a21==11)&&(!(a8==1)&&((a23==1)||!(a23==1))))&&(((a17==2)&&((a28==1)&&(((!(a8==1)&&(!(a8==1)&&(((a19==3)&&((a13==1)&&((input==5)&&((a5==5)||(a5==6)))))&&!(a20==1))))&&(a9==11))&&(a16==9))))&&(a1==14)))){ + a9 = 8; + a1 = 13; + a21 = 10; + a19 = 1; + a22 = 1; + a20 = 1; + a10 = 1; + a5 = 6; + a16 = 7; + a29 = 1; + return -1; + } else if((((((a21==11)&&((a3==1)&&(!(a3==1)||(((a2==1)&&(a3==1))||(a4==1)))))&&(a16==11))&&(a17==2))&&((a20==1)&&(((a1==14)&&((a23==1)&&((a6==1)&&(((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))&&(input==6)))))&&(a19==1))))){ + a4 = 0; + a21 = 12; + a2 = 1; + a1 = 12; + a5 = 5; + a19 = 2; + a9 = 7; + a16 = 9; + return 21; + } else if(((!(a27==1)&&(!(a13==1)||(!(a20==1)&&((a23==1)&&((a19==5)&&(!(a11==1)||((a5==4)&&(a23==1))))))))&&((((a17==2)&&(((a1==14)&&((a16==8)&&((a9==9)&&(input==5))))&&(a21==12)))&&!(a4==1))&&!(a24==1)))){ + a15 = 0; + a12 = 0; + a16 = 7; + a21 = 10; + a2 = 0; + a5 = 6; + a20 = 1; + a19 = 1; + return -1; + } else if(((!(a0==1)&&((((a11==1)&&((a17==2)&&((a20==1)&&(((((input==3)&&((((a9==7)&&((a1==12)&&(a5==4)))&&(a19==4))||(((((a1==14)&&(a5==5))&&(a9==11))&&(a19==3))||((((a5==6)&&(a1==14))&&(a9==11))&&(a19==3)))))&&!(a14==1))&&(a21==11))&&(a16==10)))))&&!(a26==1))&&(a11==1)))&&(!(a13==1)||(a6==1)))){ + a21 = 10; + a24 = 0; + a5 = 4; + a1 = 12; + a19 = 1; + a16 = 7; + a23 = 1; + a9 = 7; + return -1; + } else if((((a9==11)&&(((((((a1==13)&&(((a5==4)||(a5==5))&&(input==5)))&&(a11==1))&&(a20==1))&&(a2==1))&&(a6==1))&&(a3==1)))&&((a18==1)||((a24==1)||(((a16==11)&&((a17==2)&&((a19==5)&&(a28==1))))&&(a21==11)))))){ + a4 = 0; + a21 = 10; + a19 = 1; + a1 = 12; + a16 = 7; + a5 = 4; + a9 = 7; + a7 = 0; + a2 = 1; + return -1; + } else if(((((a6==1)&&(!(a24==1)&&((a19==4)&&((((a16==10)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==1)))&&!(a20==1))&&(a1==13)))))&&(a3==1))&&((a21==10)&&(((!(a4==1)&&((a2==1)||(a18==1)))||!(a2==1))&&(a17==2))))){ + a19 = 1; + a3 = 0; + a21 = 11; + a22 = 1; + a16 = 8; + a10 = 0; + a5 = 4; + a9 = 11; + a1 = 12; + return -1; + } else if(((!(a8==1)&&((!(a0==1)&&((a6==1)&&((a1==14)&&(((input==5)&&(((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))&&(a20==1)))))&&(a28==1)))&&((!(a4==1)&&((a17==2)&&((a19==3)&&(((a21==11)&&(a3==1))&&(a16==8)))))&&(a6==1)))){ + a16 = 10; + a8 = 0; + a11 = 1; + a9 = 9; + a5 = 4; + a19 = 1; + a27 = 0; + return 25; + } else if((((a1==14)&&(((!(a3==1)||(((((a5==6)&&(a23==1))&&(a20==1))&&!(a7==1))&&(a19==3)))&&(a16==9))||!(a3==1)))&&((a6==1)&&(((((a17==2)&&((a9==7)&&(input==3)))&&(a21==11))&&(a13==1))&&!(a0==1))))){ + a4 = 0; + a21 = 10; + a0 = 0; + a18 = 0; + a16 = 7; + a19 = 1; + a5 = 4; + a1 = 12; + return -1; + } else if((((((((a16==9)&&((((a17==2)&&((input==6)&&(((((a1==13)&&(a5==5))&&(a9==11))||((a9==11)&&((a1==13)&&(a5==6))))||(((a5==4)&&(a1==14))&&(a9==7)))))&&(a21==12))&&(a2==1)))&&(a19==3))&&!(a26==1))&&(a12==1))&&!(a18==1))&&((a4==1)||((a23==1)&&(!(a20==1)&&(a23==1)))))){ + if((a24==1)){ + a20 = 1; + a5 = 5; + a1 = 12; + a21 = 10; + a15 = 1; + a9 = 9; + a19 = 2; + a16 = 7; + a29 = 1; + a13 = 0; + }else{ + a19 = 4; + a16 = 7; + a1 = 13; + a13 = 0; + a29 = 0; + a20 = 1; + a5 = 5; + a6 = 0; + a9 = 10; + } + return -1; + } else if(((((a12==1)&&((a11==1)&&((a21==11)&&((a19==2)&&((a9==11)&&(((((input==6)&&(a5==4))&&(a17==2))&&(a16==9))&&!(a7==1)))))))&&(a23==1))&&(((!(a3==1)||((a3==1)&&(a1==13)))&&!(a20==1))||(a7==1)))){ + a14 = 1; + a23 = 0; + a19 = 1; + a5 = 6; + a3 = 0; + a16 = 7; + a21 = 10; + a20 = 1; + a9 = 7; + return -1; + } else if(((((a20==1)&&((a19==1)&&((a2==1)&&((a9==9)&&(((a5==4)&&((a17==2)&&(input==3)))&&(a21==12))))))&&(a1==12))&&((((a16==7)&&((a0==1)||((a12==1)&&((a28==1)&&(a12==1)))))&&!(a18==1))&&!(a7==1)))){ + a21 = 10; + a7 = 0; + a13 = 1; + a2 = 1; + a9 = 7; + return -1; + } else if(((((a14==1)||((a19==3)&&(((a18==1)||(a2==1))||(a8==1))))&&(a1==13))&&(((((a20==1)&&((a23==1)&&(!(a7==1)&&(((a17==2)&&((a9==10)&&(input==4)))&&(a16==11)))))&&(a21==11))&&(a5==6))&&(a6==1)))){ + a21 = 10; + a2 = 1; + a3 = 1; + a0 = 0; + a5 = 4; + a16 = 7; + a19 = 1; + a9 = 7; + a1 = 12; + return -1; + } else if(((!(a20==1)&&((!(a27==1)&&(((!(a27==1)&&((a7==1)||(a23==1)))&&!(a27==1))||!(a13==1)))&&(a9==7)))&&((a17==2)&&((((a21==10)&&((a2==1)&&((a1==12)&&((input==1)&&(a16==7)))))&&(a5==6))&&(a19==1))))){ + if((a27==1)){ + a1 = 14; + a0 = 0; + a7 = 0; + a19 = 5; + a21 = 11; + }else{ + a1 = 14; + a11 = 1; + a18 = 0; + a5 = 5; + a24 = 0; + a9 = 11; + } + return 25; + } else if(((((((!(a0==1)&&(((((input==4)&&(a9==11))&&(a19==3))&&(a1==12))&&(a20==1)))&&(a12==1))&&(a5==6))&&(a17==2))&&(a21==12))&&((!(a0==1)&&(((a16==9)&&(!(a24==1)&&(a6==1)))||!(a28==1)))&&(a2==1)))){ + a0 = 0; + a9 = 7; + a23 = 1; + a16 = 7; + a18 = 0; + a19 = 1; + a5 = 4; + a21 = 10; + return -1; + } else if(((((((a1==13)&&(((a11==1)&&((a16==8)&&(((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))&&(input==4))))&&(a2==1)))&&(a2==1))&&!(a20==1))&&!(a4==1))&&((((a2==1)&&((a21==11)&&((a2==1)&&(a17==2))))&&(a19==1))||(a26==1)))){ + a9 = 7; + a3 = 1; + a20 = 1; + a21 = 10; + a5 = 4; + a1 = 12; + a12 = 1; + a16 = 7; + a4 = 0; + return -1; + } else if((((((a17==2)&&((((input==5)&&(a1==13))&&!(a14==1))&&(a16==8)))&&(a19==3))&&(a5==5))&&((a21==12)&&(((((!(a14==1)&&(((a9==7)&&(a6==1))&&(a2==1)))&&(a6==1))||!(a11==1))||!(a11==1))&&(a20==1))))){ + a7 = 0; + a19 = 2; + a3 = 1; + a9 = 11; + a2 = 1; + a16 = 10; + a5 = 6; + return 21; + } else if((((a2==1)&&((a23==1)&&(((a6==1)&&!(a14==1))&&!(a20==1))))&&(((a28==1)&&((a9==9)&&(((((((a17==2)&&((input==5)&&((a5==5)||(a5==6))))&&(a16==8))&&(a21==12))&&(a1==14))&&(a19==2))&&(a12==1))))&&!(a18==1)))){ + a9 = 8; + a26 = 1; + a20 = 1; + a3 = 0; + a19 = 4; + a16 = 11; + a21 = 10; + a5 = 4; + return -1; + } else if(((((((a1==12)&&(((a26==1)&&((a16==9)&&(((a18==1)&&(a6==1))&&!(a2==1))))&&!(a12==1)))&&(a19==3))&&!(a2==1))&&(a20==1))&&(((a17==2)&&((a21==11)&&((input==4)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))))&&!(a3==1)))){ + a16 = 8; + a19 = 2; + a12 = 0; + a5 = 4; + a15 = 1; + a9 = 7; + a21 = 10; + a10 = 1; + return -1; + } else if((((((!(a14==1)&&((!(a27==1)&&((a9==8)&&(a28==1)))||!(a6==1)))&&!(a20==1))||!(a12==1))&&(a21==11))&&((a1==14)&&(((!(a8==1)&&((a17==2)&&((a16==9)&&((a19==3)&&(input==1)))))&&(a5==5))&&!(a4==1))))){ + a5 = 4; + a16 = 7; + a19 = 1; + a21 = 10; + a1 = 13; + a0 = 1; + a12 = 0; + a20 = 1; + a8 = 1; + return -1; + } else if((((((!(a13==1)||((a3==1)&&(a17==2)))&&!(a14==1))&&(a5==6))&&(a16==8))&&((((a12==1)&&((((a19==5)&&((a6==1)&&(((input==3)&&(a1==12))&&!(a4==1))))&&(a21==11))&&!(a0==1)))&&(a9==10))&&!(a20==1)))){ + if((a23==1)){ + a1 = 14; + a16 = 7; + a19 = 2; + a20 = 1; + a9 = 8; + a10 = 1; + a5 = 5; + a26 = 1; + a11 = 0; + }else{ + a19 = 4; + a5 = 4; + a15 = 0; + a29 = 1; + a21 = 10; + a10 = 1; + a9 = 8; + a16 = 7; + } + return -1; + } else if((((((!(a20==1)&&((a28==1)&&(((((a28==1)&&(((a5==4)||(a5==5))&&(input==1)))&&(a9==8))&&(a17==2))&&(a1==12))))&&(a21==10))&&(a19==4))&&!(a7==1))&&(!(a24==1)&&(!(a28==1)||((a24==1)||((a16==7)&&(a12==1))))))){ + a4 = 0; + a9 = 7; + a5 = 4; + a20 = 1; + a6 = 1; + a13 = 1; + a19 = 1; + return -1; + } else if(((((a9==8)&&((a19==1)&&(((a27==1)||((a21==12)&&(!(a6==1)||((a12==1)&&(a20==1)))))&&(a17==2))))&&!(a7==1))&&(((((a16==7)&&((a1==13)&&(((a5==5)||(a5==6))&&(input==3))))&&!(a27==1))&&!(a24==1))&&(a28==1)))){ + a5 = 6; + a6 = 1; + a1 = 14; + a4 = 0; + a19 = 5; + a7 = 0; + a16 = 8; + return 25; + } else if(((!(a11==1)&&((a20==1)&&((a17==2)&&((a1==13)&&((a7==1)&&(((!(a11==1)&&(a12==1))&&(a21==12))&&(a27==1)))))))&&(((((((input==4)&&((a5==5)||(a5==6)))&&!(a11==1))&&(a9==10))&&(a16==11))&&(a18==1))&&(a19==1)))){ + a15 = 1; + a5 = 6; + a16 = 7; + a2 = 0; + a21 = 10; + a3 = 0; + return -1; + } else if((((((a14==1)||((((a28==1)&&(a17==2))&&(a9==8))&&(a20==1)))&&(a16==7))&&(a1==13))&&((((((a19==4)&&((!(a24==1)&&(((a5==4)||(a5==5))&&(input==1)))&&!(a24==1)))&&(a28==1))&&(a21==12))&&(a3==1))&&(a23==1)))){ + a5 = 6; + a26 = 0; + a19 = 2; + a16 = 9; + a9 = 7; + a13 = 1; + a21 = 11; + a0 = 0; + return 21; + } else if((((((a28==1)&&(((((a5==4)||(a5==5))&&(input==5))&&(a1==14))&&(a23==1)))&&(a23==1))&&(a3==1))&&((a21==10)&&((a23==1)&&(((((((a6==1)&&(a19==3))&&(a9==11))&&(a16==10))&&(a17==2))&&(a20==1))||(a14==1)))))){ + a9 = 7; + a0 = 0; + a1 = 12; + a16 = 7; + a11 = 1; + a5 = 4; + a19 = 1; + a18 = 0; + return -1; + } else if((((a19==2)&&(!(a8==1)&&((((a16==9)&&((input==4)&&(((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))))&&(a1==14))&&(a21==11))))&&(((a0==1)||((a17==2)&&(!(a8==1)&&(!(a13==1)||(!(a20==1)&&((a8==1)||(a11==1)))))))||!(a13==1)))){ + a11 = 0; + a9 = 11; + a20 = 1; + a15 = 0; + a6 = 0; + a5 = 4; + a21 = 12; + a16 = 10; + return 25; + } else if((((a19==3)&&(((a1==13)&&(!(a28==1)||((((a3==1)&&(a5==5))||(a24==1))&&(a17==2))))&&(a20==1)))&&(((a2==1)&&((a23==1)&&(((a9==9)&&((a16==9)&&((a21==12)&&(input==4))))&&!(a14==1))))&&(a12==1)))){ + a19 = 1; + a9 = 7; + a5 = 4; + a4 = 0; + a8 = 0; + a16 = 7; + a21 = 10; + a1 = 12; + a26 = 0; + return -1; + } else if(((((((((a11==1)||(a8==1))&&(a16==8))&&(a9==8))&&(a1==12))&&(a6==1))&&(a5==6))&&((((!(a26==1)&&(((((input==5)&&(a19==5))&&(a20==1))&&!(a18==1))&&!(a26==1)))&&(a21==11))&&!(a7==1))&&(a17==2)))){ + a7 = 0; + a16 = 10; + a9 = 9; + a13 = 1; + a28 = 1; + a19 = 3; + return 25; + } else if((((((!(a20==1)&&(!(a24==1)&&(a28==1)))&&(a17==2))&&!(a14==1))&&(a19==1))&&((!(a8==1)&&((a16==9)&&((((((((a9==11)&&((a1==12)&&(a5==5)))||(((a1==12)&&(a5==6))&&(a9==11)))||((a9==7)&&((a1==13)&&(a5==4))))&&(input==3))&&(a11==1))&&(a21==10))&&!(a0==1))))&&!(a24==1)))){ + if((a27==1)){ + a13 = 0; + a5 = 4; + a1 = 12; + a16 = 7; + a19 = 2; + a25 = 1; + a9 = 9; + a14 = 1; + a20 = 1; + }else{ + a9 = 7; + a5 = 6; + a19 = 2; + a16 = 7; + a15 = 0; + a10 = 1; + a1 = 12; + a24 = 1; + a20 = 1; + } + return -1; + } else if((((a17==2)&&(!(a0==1)&&((a16==7)&&((((a1==14)&&(a13==1))||!(a12==1))&&(a6==1)))))&&((((a21==11)&&(((a19==4)&&(((((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&(input==4))&&(a13==1)))&&!(a4==1)))&&!(a24==1))&&!(a20==1)))){ + a20 = 1; + a0 = 0; + a9 = 7; + a5 = 4; + a4 = 0; + a21 = 10; + a14 = 0; + a1 = 12; + a19 = 1; + return -1; + } else if((((a23==1)&&(((!(a24==1)&&(!(a26==1)&&((((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(input==6))))&&(a1==12))&&!(a0==1)))&&((((a16==8)&&(((a19==4)&&(((a17==2)&&(a28==1))&&(a3==1)))&&(a12==1)))&&(a21==10))&&!(a20==1)))){ + a16 = 7; + a19 = 1; + a9 = 7; + a3 = 1; + a27 = 0; + a4 = 0; + a20 = 1; + a5 = 4; + return -1; + } else if((((a3==1)&&((!(a7==1)&&((a16==11)&&((a19==3)&&(((((a1==14)&&(((input==4)&&(a17==2))&&(a3==1)))&&(a5==4))&&(a21==11))&&(a6==1)))))&&(a9==9)))&&(!(a4==1)&&(((a20==1)&&(a23==1))||!(a6==1))))){ + a19 = 1; + a9 = 7; + a1 = 12; + a14 = 0; + a11 = 1; + a21 = 10; + a28 = 1; + a16 = 7; + return -1; + } else if((((!(a8==1)&&((((!(a7==1)&&((input==3)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))))&&(a6==1))&&(a16==10))&&(a1==14)))&&(a3==1))&&((a24==1)||((((((a26==1)||(a13==1))&&(a19==1))&&(a17==2))&&(a20==1))&&(a21==10))))){ + a1 = 12; + a16 = 7; + a9 = 7; + a23 = 1; + a0 = 0; + a5 = 4; + a18 = 0; + return -1; + } else if(((!(a12==1)||((a4==1)||((!(a8==1)&&((a1==12)&&((a2==1)&&((a19==3)&&(a13==1)))))&&!(a26==1))))&&(((a21==10)&&(!(a4==1)&&((a16==10)&&((a9==9)&&((a5==5)&&((input==3)&&(a20==1)))))))&&(a17==2)))){ + a14 = 0; + a19 = 1; + a5 = 4; + a24 = 0; + a16 = 7; + a9 = 7; + return -1; + } else if(((!(a6==1)||(((((a1==14)&&((((a18==1)||((a12==1)&&!(a4==1)))&&(a16==9))&&(a17==2)))&&(a19==4))&&(a21==11))||!(a6==1)))&&(((a9==7)&&((!(a18==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4)))&&(a20==1)))&&!(a7==1)))){ + a1 = 12; + a19 = 1; + a13 = 1; + a16 = 7; + a5 = 4; + a8 = 0; + a3 = 1; + a21 = 10; + return -1; + } else if(((((a19==1)&&(((((a2==1)&&(a17==2))&&!(a20==1))&&!(a18==1))&&(a1==14)))&&(a9==7))&&(!(a26==1)&&((a13==1)&&(((a5==5)&&((a28==1)&&(((a16==7)&&((a21==11)&&(input==6)))&&(a3==1))))&&!(a4==1)))))){ + a13 = 1; + a20 = 1; + a9 = 9; + a1 = 13; + a14 = 0; + a19 = 2; + a4 = 0; + a21 = 10; + return -1; + } else if((((!(a3==1)||(((a11==1)||(a14==1))&&(a23==1)))&&(a11==1))&&((((a17==2)&&(((((a23==1)&&(!(a20==1)&&((a11==1)&&(((a5==5)||(a5==6))&&(input==5)))))&&(a16==10))&&(a9==7))&&(a21==10)))&&(a1==12))&&(a19==4)))){ + a9 = 11; + a6 = 0; + a20 = 1; + a5 = 5; + a16 = 7; + a22 = 0; + a19 = 1; + a25 = 1; + return 25; + } else if((((a19==3)&&(((a16==7)&&(a12==1))&&(a17==2)))&&((((a1==13)&&((((((a11==1)&&(((input==4)&&(((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))&&!(a24==1)))&&!(a18==1))&&(a23==1))&&(a28==1))&&(a12==1)))&&(a21==11))&&!(a20==1)))){ + a19 = 5; + a9 = 9; + a1 = 12; + a0 = 0; + a5 = 4; + a16 = 8; + a14 = 0; + a20 = 1; + a21 = 10; + return -1; + } else if((((!(a24==1)&&((!(a18==1)&&(((((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==4))&&(a21==12))&&!(a14==1))&&!(a26==1)))&&!(a7==1)))&&(a20==1))&&((a17==2)&&(((((a2==1)||(a7==1))&&(a1==12))&&(a16==11))&&(a19==1))))){ + a5 = 4; + a9 = 7; + a12 = 1; + a16 = 7; + a6 = 1; + a21 = 10; + a2 = 1; + return -1; + } else if((((((((((a9==7)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a20==1))&&!(a18==1))&&(a3==1))&&(a11==1))&&(a21==11))&&(a19==5))&&(((a1==14)&&((a17==2)&&((a0==1)||((!(a11==1)||(a13==1))||(a26==1)))))&&(a16==7)))){ + if((a4==1)){ + a1 = 12; + a21 = 10; + a2 = 1; + a19 = 2; + a3 = 1; + a5 = 6; + a9 = 9; + a16 = 8; + a14 = 0; + }else{ + a5 = 5; + a1 = 13; + a24 = 0; + a12 = 1; + a26 = 0; + a9 = 9; + a21 = 10; + a19 = 2; + } + return 25; + } else if((((!(a11==1)||((a9==11)&&((a17==2)&&((!(a28==1)||(a28==1))&&!(a18==1)))))&&(a21==12))&&(!(a20==1)&&((a1==12)&&((a16==8)&&(((((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a19==3))&&!(a27==1))&&!(a24==1))&&!(a14==1))))))){ + if((a4==1)){ + a12 = 0; + a19 = 1; + a21 = 10; + a9 = 7; + a5 = 5; + a20 = 1; + a25 = 0; + a14 = 1; + a16 = 7; + }else{ + a21 = 10; + a5 = 4; + a26 = 1; + a6 = 0; + a20 = 1; + a16 = 7; + a19 = 2; + a4 = 1; + } + return -1; + } else if(((!(a18==1)&&((((a13==1)&&((a1==14)&&((a16==10)&&((input==6)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))))))&&(a19==5))&&(a17==2)))&&((!(a3==1)||(((a3==1)&&(((a21==12)&&(a23==1))&&!(a20==1)))||!(a6==1)))||(a8==1)))){ + if((a19==1)){ + a21 = 10; + a22 = 0; + a20 = 1; + a16 = 7; + a19 = 2; + a5 = 6; + a1 = 12; + a24 = 1; + a9 = 11; + }else{ + a4 = 1; + a18 = 1; + a16 = 11; + a20 = 1; + a5 = 6; + a22 = 1; + a9 = 7; + a19 = 2; + } + return -1; + } else if((((a27==1)||(!(a11==1)||(((a21==12)&&(((a1==14)&&((((a17==2)&&(a12==1))&&(a19==2))||(a27==1)))&&!(a27==1)))&&(a3==1))))&&(((a16==9)&&((a9==10)&&((((a5==4)||(a5==5))&&(input==4))&&!(a20==1))))&&!(a26==1)))){ + a21 = 10; + a9 = 7; + a19 = 1; + a27 = 1; + a14 = 1; + a5 = 6; + a20 = 1; + a16 = 7; + a28 = 0; + return -1; + } else if(((((!(a27==1)&&(!(a24==1)&&((a17==2)&&(a2==1))))&&(a1==13))&&(a16==9))&&((!(a26==1)&&(((a9==11)&&((((((input==3)&&((a5==5)||(a5==6)))&&(a23==1))&&!(a14==1))&&(a21==10))&&(a20==1)))&&(a19==2)))&&!(a7==1)))){ + a2 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + a23 = 1; + a19 = 1; + a1 = 12; + a27 = 0; + return -1; + } else if((((!(a0==1)&&(((a16==9)&&(((a9==8)&&(input==6))&&!(a24==1)))&&(a1==12)))&&(a28==1))&&((!(a3==1)||((a11==1)&&(((!(a13==1)||((a21==12)&&((a13==1)&&(a17==2))))&&(a20==1))&&(a5==6))))&&(a19==5)))){ + a9 = 7; + a7 = 0; + a21 = 10; + a0 = 0; + a16 = 7; + a5 = 4; + a19 = 1; + a27 = 0; + return -1; + } else if((((a9==9)&&((a27==1)||((a16==8)&&(((a5==4)&&((a11==1)&&!(a8==1)))&&(a21==10)))))&&((((a17==2)&&((a28==1)&&(!(a0==1)&&((a19==4)&&(((a1==12)&&(input==4))&&(a28==1))))))&&!(a20==1))&&!(a4==1)))){ + a20 = 1; + a9 = 7; + a4 = 0; + a18 = 0; + a19 = 1; + a2 = 1; + a16 = 7; + return -1; + } else if(((((a9==7)&&((a20==1)&&((((input==6)&&(a16==8))&&(a21==10))&&!(a0==1))))&&!(a8==1))&&((a19==3)&&(((((a8==1)||((((a28==1)&&!(a14==1))&&(a1==14))&&(a5==4)))&&!(a8==1))&&(a17==2))||(a8==1))))){ + a18 = 0; + a9 = 9; + a16 = 9; + a3 = 1; + a5 = 5; + a21 = 12; + a1 = 13; + a19 = 5; + a8 = 0; + return 21; + } else if((((a7==1)||((a9==10)&&((a20==1)&&(!(a4==1)&&((a16==7)&&((a12==1)&&(a19==2)))))))&&((a1==13)&&((((!(a14==1)&&(((a5==5)&&((a17==2)&&(input==6)))&&!(a26==1)))&&(a21==10))&&!(a18==1))&&!(a27==1))))){ + a18 = 0; + a5 = 4; + a9 = 9; + a19 = 3; + a13 = 1; + a23 = 1; + return 26; + } else if(((((a21==10)&&(((!(a24==1)&&(((!(a8==1)&&(!(a18==1)&&((input==6)&&(a1==14))))&&(a20==1))&&(a2==1)))&&!(a27==1))&&(a19==1)))&&(a17==2))&&((((!(a23==1)||(a23==1))&&(a9==10))&&(a16==8))&&(a5==5)))){ + a16 = 7; + a6 = 1; + a1 = 12; + a5 = 4; + a14 = 0; + a9 = 7; + return -1; + } else if((((a1==12)&&(!(a27==1)&&(((a5==5)&&(a6==1))&&!(a20==1))))&&((a3==1)&&((!(a14==1)&&(!(a8==1)&&((a17==2)&&((a19==5)&&((!(a18==1)&&((a13==1)&&((a21==10)&&(input==3))))&&(a9==9))))))&&(a16==9))))){ + a16 = 7; + a11 = 0; + a20 = 1; + a6 = 0; + a19 = 3; + a5 = 6; + a21 = 12; + return -1; + } else if((((a1==12)&&((a13==1)&&(((!(a27==1)&&((a16==10)&&((a9==10)&&((a5==4)&&(input==4)))))&&(a28==1))&&(a17==2))))&&((a19==3)&&(!(a20==1)&&(((a24==1)||((a0==1)||((a2==1)||!(a23==1))))&&(a21==10)))))){ + a20 = 1; + a19 = 1; + a9 = 11; + a5 = 5; + a25 = 0; + a16 = 7; + a22 = 1; + a29 = 0; + return -1; + } else if(((((a0==1)||((a21==10)&&(a6==1)))&&(a16==11))&&(((a17==2)&&(((((a12==1)&&((a12==1)&&((!(a24==1)&&(((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))&&(input==6)))&&(a19==4))))&&(a2==1))&&(a1==12))&&(a6==1)))&&(a20==1)))){ + a9 = 9; + a21 = 11; + a7 = 0; + a11 = 1; + a19 = 3; + a1 = 14; + a5 = 4; + a26 = 0; + return 21; + } else if(((((a1==14)&&(((a9==8)&&(((a16==10)&&((a6==1)&&(a6==1)))&&(a3==1)))||(a27==1)))||!(a11==1))&&(((a20==1)&&((a19==4)&&(((((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a17==2))&&(a21==12))&&!(a7==1))))&&!(a27==1)))){ + a16 = 7; + a14 = 0; + a5 = 4; + a9 = 7; + a21 = 10; + a24 = 0; + a1 = 12; + a19 = 1; + return -1; + } else if(((((!(a7==1)&&((a21==10)&&(input==1)))&&(a9==8))&&(a19==1))&&((a17==2)&&(((((a26==1)||((a5==4)&&((((a14==1)||((a1==13)&&(a3==1)))||!(a3==1))&&(a16==10))))&&!(a20==1))||(a4==1))&&(a12==1))))){ + a5 = 6; + a3 = 0; + a19 = 4; + a24 = 1; + a16 = 8; + a6 = 0; + return 25; + } else if((((a20==1)&&(((a12==1)&&(((!(a14==1)&&(((a5==4)||(a5==5))&&(input==1)))&&(a11==1))&&(a16==11)))&&(a11==1)))&&(((((a17==2)&&((a21==12)&&(((a11==1)&&(a9==8))&&(a1==14))))||(a24==1))&&(a19==1))&&(a11==1)))){ + a1 = 12; + a5 = 5; + a6 = 1; + a19 = 4; + a27 = 0; + a23 = 1; + return 26; + } else if(((((a17==2)&&(!(a20==1)&&((a4==1)||((a14==1)||(!(a4==1)&&(((a21==11)&&(a23==1))||!(a6==1)))))))&&(a16==8))&&((a11==1)&&((((((input==1)&&(a19==5))&&(a1==14))&&(a9==11))&&(a5==4))&&!(a26==1))))){ + a20 = 1; + a9 = 7; + a16 = 7; + a14 = 1; + a1 = 13; + a25 = 0; + a11 = 0; + a21 = 10; + return 23; + } else if((((a9==11)&&((a21==12)&&(!(a20==1)&&((a5==5)&&((a12==1)&&(a3==1))))))&&((a19==4)&&(!(a26==1)&&(!(a18==1)&&(((!(a14==1)&&((((a17==2)&&(input==6))&&(a16==10))&&!(a27==1)))&&(a1==12))&&!(a18==1))))))){ + a3 = 0; + a15 = 0; + a9 = 10; + a16 = 7; + a20 = 1; + a14 = 1; + a1 = 14; + return 23; + } else if((((!(a13==1)||((a16==11)&&(a28==1)))||(a4==1))&&((a21==10)&&(((a20==1)&&(!(a7==1)&&((((((((a9==7)&&(input==3))&&(a1==12))&&(a5==4))&&(a17==2))&&(a19==2))&&(a13==1))&&(a28==1))))&&!(a27==1))))){ + a5 = 5; + a4 = 0; + a21 = 11; + a6 = 1; + a12 = 1; + a19 = 4; + a9 = 8; + a16 = 10; + return 21; + } else if((((a13==1)&&(((a16==10)&&((a20==1)&&(a6==1)))||!(a11==1)))&&(!(a7==1)&&((((!(a8==1)&&(!(a14==1)&&((a17==2)&&((a23==1)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==5))))))&&(a19==5))&&(a21==12))&&(a1==12))))){ + a5 = 4; + a1 = 13; + a9 = 9; + a27 = 0; + a8 = 0; + a16 = 7; + a19 = 2; + a3 = 1; + a21 = 10; + return 25; + } else if((((a19==5)&&((((a20==1)&&(!(a11==1)||(!(a27==1)&&((a6==1)&&((a23==1)&&(a16==9))))))||(a14==1))&&(a9==9)))&&((a17==2)&&(((((((a5==5)||(a5==6))&&(input==3))&&(a23==1))&&(a11==1))&&(a1==13))&&(a21==10))))){ + a19 = 1; + a9 = 7; + a16 = 7; + a26 = 0; + a5 = 4; + a23 = 1; + a6 = 1; + a1 = 12; + return -1; + } else if(((!(a24==1)&&((!(a14==1)&&((((a6==1)&&((a16==10)&&((input==4)&&!(a20==1))))&&(a9==11))&&(a5==4)))&&(a13==1)))&&(!(a2==1)||((a17==2)&&(((a1==14)&&((a19==2)&&((a11==1)&&(a21==11))))&&!(a7==1)))))){ + a5 = 6; + a21 = 10; + a20 = 1; + a3 = 0; + a22 = 0; + a1 = 12; + a11 = 0; + a9 = 10; + a16 = 7; + return 25; + } else if(((((a16==8)&&((a19==4)&&((a6==1)&&(((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a4==1)))))&&(a17==2))&&((a9==7)&&(!(a20==1)&&((a21==10)&&((a3==1)&&(((a1==14)&&((a4==1)||(!(a23==1)||(a28==1))))&&(a13==1)))))))){ + a2 = 1; + a8 = 0; + a16 = 7; + a20 = 1; + a1 = 12; + a19 = 1; + a5 = 4; + a4 = 0; + return -1; + } else if((((a8==1)&&(!(a20==1)&&((a7==1)&&((((!(a13==1)&&(a23==1))&&(a17==2))&&!(a3==1))&&(a21==11)))))&&(!(a11==1)&&(!(a23==1)&&((((((a19==2)&&((a9==11)&&((a5==6)&&(a1==14))))||(((a9==7)&&((a1==12)&&(a5==4)))&&(a19==3)))||((a19==3)&&(((a5==5)&&(a1==12))&&(a9==7))))&&(input==1))&&(a16==8)))))){ + a6 = 0; + a19 = 5; + a20 = 1; + a5 = 4; + a2 = 0; + a1 = 12; + a21 = 10; + a18 = 1; + a9 = 9; + return 25; + } else if((((!(a13==1)||(((a21==12)&&((((a26==1)||((a1==13)&&(a23==1)))&&(a20==1))&&(a16==8)))||!(a23==1)))&&(a19==5))&&((a17==2)&&(((a12==1)&&(!(a4==1)&&(!(a4==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4)))))&&(a9==9))))){ + a28 = 1; + a1 = 12; + a19 = 1; + a16 = 7; + a2 = 1; + a14 = 0; + a5 = 4; + a21 = 10; + a9 = 7; + return -1; + } else if((((a19==4)&&((a1==14)&&((((((a2==1)&&((!(a0==1)&&(((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11)))&&(input==4)))&&(a2==1)))&&!(a0==1))&&(a17==2))&&(a23==1))&&(a16==11))))&&(((a20==1)&&((a11==1)&&!(a24==1)))&&(a21==12)))){ + a19 = 1; + a2 = 1; + a24 = 0; + a27 = 0; + a5 = 4; + a1 = 12; + a9 = 7; + a16 = 7; + a21 = 10; + return -1; + } else if(((!(a8==1)&&(((((input==1)&&(a5==6))&&!(a20==1))&&(a16==7))&&(a21==11)))&&(((a14==1)||(((!(a26==1)&&(((((a17==2)&&(a6==1))&&(a9==7))&&(a1==14))&&(a19==2)))&&(a11==1))||(a8==1)))||!(a23==1)))){ + a28 = 1; + a2 = 1; + a16 = 11; + a20 = 1; + a9 = 10; + a4 = 0; + a19 = 3; + return 21; + } else if((((!(a8==1)&&((((a2==1)&&((a6==1)&&(a11==1)))&&(a16==7))&&(a21==11)))||(a14==1))&&((a28==1)&&(((((a1==12)&&((((input==4)&&((a5==4)||(a5==5)))&&!(a27==1))&&(a20==1)))&&(a9==7))&&(a17==2))&&(a19==1))))){ + a5 = 6; + a19 = 5; + a3 = 1; + a26 = 0; + a9 = 11; + a21 = 12; + a23 = 1; + return 25; + } else if(((!(a20==1)&&((a21==11)&&((a17==2)&&(!(a12==1)||(((a16==10)&&(a6==1))&&(a6==1))))))&&((((((a3==1)&&(((input==4)&&((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a5==4)&&(a9==9))))&&(a19==2)))&&!(a7==1))&&!(a8==1))&&!(a26==1))&&(a1==13)))){ + a20 = 1; + a19 = 4; + a21 = 10; + a5 = 4; + a9 = 7; + a16 = 9; + a29 = 0; + a11 = 0; + a23 = 0; + return -1; + } else if((((!(a26==1)&&(!(a8==1)&&(((a19==5)&&((input==5)&&(a20==1)))&&(a17==2))))&&!(a18==1))&&(((a6==1)&&(!(a7==1)&&((a5==6)&&((a21==11)&&((a16==10)&&(((a11==1)&&(a9==8))&&(a1==13)))))))&&(a11==1)))){ + a16 = 7; + a4 = 0; + a7 = 0; + a19 = 2; + a21 = 10; + a14 = 0; + a9 = 9; + a5 = 4; + return 25; + } else if(((((a20==1)&&(!(a8==1)&&(!(a8==1)&&((a17==2)&&(((input==1)&&(a5==4))&&(a23==1))))))&&(a16==10))&&((a28==1)&&((a13==1)&&(((a9==7)&&((a23==1)&&(((a28==1)&&(a1==14))&&(a21==10))))&&(a19==1)))))){ + a5 = 6; + a9 = 10; + a14 = 0; + a19 = 4; + a0 = 0; + a16 = 8; + a11 = 1; + return 25; + } else if((((a9==9)&&((a18==1)||(((((a23==1)&&(a21==10))&&(a17==2))||!(a28==1))&&(a2==1))))&&(((a16==10)&&((a19==1)&&(!(a24==1)&&((((a11==1)&&((input==3)&&(a1==12)))&&(a5==6))&&!(a14==1)))))&&!(a20==1)))){ + a29 = 1; + a5 = 4; + a20 = 1; + a9 = 8; + a16 = 7; + a14 = 1; + a1 = 13; + a25 = 1; + return -1; + } else if(((((a21==10)&&((a19==2)&&((a20==1)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))))&&(a1==13))&&((a17==2)&&(((!(a8==1)&&(((!(a26==1)&&(!(a2==1)||((a6==1)&&(a16==8))))&&(a2==1))&&(a6==1)))||!(a28==1))&&(a9==10))))){ + a5 = 6; + a3 = 1; + a20 = 0; + a1 = 14; + a19 = 1; + a9 = 8; + a18 = 0; + return 22; + } else if((((((a1==13)&&((((a6==1)&&((!(a3==1)||(a13==1))&&(a12==1)))&&(a17==2))&&(a13==1)))&&(a20==1))&&(a19==3))&&((((((input==1)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8))))&&!(a26==1))&&(a21==10))&&(a16==8))&&!(a7==1)))){ + a13 = 1; + a19 = 1; + a7 = 0; + a9 = 7; + a5 = 4; + a16 = 7; + a12 = 1; + a1 = 12; + return -1; + } else if(((((((a21==11)&&((a16==8)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a17==2))))&&(a19==2))&&(a9==11))&&(a3==1))&&(!(a11==1)||((a1==12)&&(!(a26==1)&&((a11==1)&&((a12==1)&&(!(a24==1)&&(!(a20==1)&&(a13==1)))))))))){ + a27 = 0; + a1 = 14; + a24 = 0; + a20 = 1; + a19 = 3; + a5 = 5; + a0 = 0; + return 22; + } else if(((!(a2==1)||((a19==5)&&((a16==10)&&((a8==1)||((a17==2)&&(!(a24==1)&&(!(a20==1)&&((a9==11)&&(a28==1)))))))))&&(((((a2==1)&&((((a5==5)||(a5==6))&&(input==6))&&!(a0==1)))&&(a1==14))&&!(a0==1))&&(a21==10)))){ + a21 = 12; + a1 = 13; + a9 = 7; + a8 = 1; + a18 = 1; + a19 = 3; + a5 = 6; + a20 = 1; + a3 = 0; + a16 = 7; + return 25; + } else if((((a19==5)&&((a17==2)&&(!(a26==1)&&((((((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6))))&&(input==6))&&(a20==1))&&(a16==11)))))&&(((a2==1)&&((a7==1)||(!(a14==1)&&(((a21==12)&&(!(a13==1)||(a2==1)))&&(a1==12)))))&&(a11==1)))){ + a21 = 11; + a3 = 1; + a1 = 13; + a5 = 6; + a9 = 9; + a19 = 2; + a27 = 0; + a8 = 0; + a16 = 10; + return 21; + } else if((((a13==1)&&(!(a27==1)&&(((a17==2)&&(((a19==4)&&((((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))&&(input==3))&&(a1==13))&&(a16==11)))&&(a21==10)))&&(a13==1))))&&(!(a8==1)&&((((a28==1)&&(a20==1))||(a18==1))||!(a12==1))))){ + a9 = 7; + a19 = 1; + a8 = 0; + a5 = 4; + a16 = 7; + a18 = 0; + a1 = 12; + return -1; + } else if(((((a16==9)&&(((((((((a1==13)&&(input==6))&&(a20==1))&&!(a26==1))&&!(a14==1))&&(a2==1))&&!(a24==1))&&(a9==8))&&(a21==10)))&&(a5==5))&&((a17==2)&&((a19==1)&&((a28==1)&&((a2==1)&&(a2==1))))))){ + a16 = 7; + a9 = 7; + a3 = 1; + a12 = 1; + a1 = 12; + a5 = 4; + a13 = 1; + return -1; + } else if(((!(a4==1)&&((((a12==1)&&(a12==1))||!(a12==1))||!(a6==1)))&&((a12==1)&&(((a17==2)&&((a16==8)&&((!(a20==1)&&((input==4)&&(((a19==4)&&((a9==11)&&((a1==14)&&(a5==6))))||((a19==5)&&((a9==7)&&((a1==12)&&(a5==4)))))))&&(a21==10))))&&(a2==1))))){ + a21 = 11; + a9 = 8; + a20 = 1; + a12 = 1; + a6 = 1; + a16 = 10; + a1 = 14; + a19 = 4; + a5 = 6; + a8 = 0; + return -1; + } else if((((((a19==4)&&((a16==8)&&((((a1==13)&&(a28==1))&&!(a20==1))&&(a5==4))))&&(a21==10))&&(a2==1))&&(!(a7==1)&&((a2==1)&&(!(a7==1)&&((a17==2)&&((a12==1)&&(((a9==7)&&(input==4))&&(a11==1))))))))){ + a24 = 0; + a20 = 1; + a23 = 1; + a16 = 7; + a19 = 1; + a1 = 12; + a6 = 1; + return -1; + } else if((((((a17==2)&&((((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&!(a8==1))&&!(a4==1)))&&(a1==14))&&(a19==2))&&((!(a20==1)&&(!(a2==1)||((a14==1)||((a21==10)&&((a16==7)&&(((a23==1)||!(a28==1))&&!(a24==1)))))))&&(a9==9)))){ + a8 = 0; + a1 = 12; + a24 = 0; + a19 = 1; + a12 = 1; + a20 = 1; + a9 = 7; + a5 = 4; + return -1; + } else if((((a21==12)&&((((a1==14)&&((((((a19==3)&&(((a5==4)||(a5==5))&&(input==1)))&&!(a0==1))&&!(a7==1))&&!(a26==1))&&!(a20==1)))&&(a9==10))&&(a17==2)))&&(((a24==1)||((a16==9)&&((a23==1)&&(a2==1))))&&!(a26==1)))){ + a16 = 7; + a20 = 1; + a9 = 7; + a22 = 0; + a21 = 10; + a5 = 5; + a26 = 1; + a13 = 0; + a19 = 2; + a1 = 12; + return -1; + } else if((((a9==9)&&((a28==1)&&((!(a26==1)&&((a16==8)&&(((a4==1)||(!(a20==1)&&((a17==2)&&(a12==1))))&&(a19==5))))&&(a1==13))))&&(((a5==5)&&((a3==1)&&(((input==5)&&(a21==12))&&(a23==1))))&&(a13==1)))){ + a16 = 7; + a21 = 10; + a1 = 14; + a5 = 4; + a27 = 1; + a29 = 0; + a20 = 1; + a12 = 0; + a9 = 10; + a19 = 1; + return -1; + } else if((((a20==1)&&(((!(a0==1)&&((a13==1)&&(a1==12)))&&(a21==10))&&(a9==11)))&&((a16==9)&&((a19==2)&&((a17==2)&&((a13==1)&&(!(a14==1)&&(((!(a14==1)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6))))&&(a28==1))&&(a11==1))))))))){ + a20 = 0; + a24 = 0; + a16 = 8; + a6 = 1; + a9 = 7; + a21 = 11; + a5 = 5; + return 23; + } else if((((a23==1)&&(((a21==10)&&((a2==1)&&(!(a4==1)&&((input==6)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))))))&&(a11==1)))&&(((a16==10)&&((a23==1)&&(((!(a20==1)&&((a3==1)||!(a11==1)))&&(a1==12))&&(a17==2))))&&(a19==1)))){ + a9 = 9; + a5 = 5; + a15 = 0; + a16 = 7; + a1 = 13; + a8 = 1; + a22 = 0; + a20 = 1; + return -1; + } else if((((a12==1)&&((!(a27==1)&&((((input==4)&&(a17==2))&&(a9==9))&&(a16==11)))&&(a19==1)))&&((a1==12)&&(((!(a11==1)||((a21==12)&&(!(a7==1)&&((!(a13==1)||(a23==1))&&(a20==1)))))&&(a5==6))&&(a2==1))))){ + a8 = 0; + a0 = 0; + a2 = 1; + a21 = 10; + a5 = 4; + a16 = 7; + a9 = 7; + return -1; + } else if(((!(a14==1)&&(((a19==4)&&((a9==8)&&(((!(a28==1)||(a23==1))||(a4==1))&&(a20==1))))&&(a1==13)))&&((a16==8)&&((((a17==2)&&(((a21==10)&&(((a5==5)||(a5==6))&&(input==4)))&&!(a26==1)))&&(a13==1))&&!(a27==1))))){ + a9 = 7; + a14 = 0; + a5 = 4; + a1 = 12; + a16 = 7; + a2 = 1; + a19 = 1; + return -1; + } else if((((a17==2)&&((a1==12)&&((a16==11)&&((((a3==1)&&(((input==1)&&(((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))))&&!(a18==1)))&&(a6==1))&&(a11==1)))))&&((((a8==1)||(((a28==1)&&(a12==1))&&(a20==1)))&&(a19==2))&&(a21==10)))){ + a11 = 1; + a19 = 1; + a9 = 7; + a16 = 7; + a3 = 1; + a27 = 0; + a5 = 4; + return -1; + } else if(((((((a6==1)&&(((a13==1)&&(a17==2))&&(a20==1)))&&(a2==1))&&(a21==11))&&(a16==10))&&((a12==1)&&((a12==1)&&(((a19==1)&&(((input==6)&&(((a9==11)&&((a1==12)&&(a5==6)))||(((a5==4)&&(a1==13))&&(a9==7))))&&(a3==1)))&&(a12==1)))))){ + a23 = 1; + a21 = 12; + a12 = 1; + a5 = 5; + a16 = 8; + a24 = 0; + a19 = 4; + a9 = 7; + a1 = 14; + return 25; + } else if((((a5==5)&&((a20==1)&&((a28==1)&&((input==1)&&(a19==2)))))&&(((a17==2)&&(((((!(a7==1)&&((a21==11)&&(((a23==1)&&!(a27==1))&&(a16==7))))&&(a1==12))&&(a9==11))&&(a2==1))||(a4==1)))||!(a23==1)))){ + a16 = 8; + a6 = 1; + a9 = 10; + a19 = 3; + a21 = 10; + a18 = 0; + return 26; + } else if((((((a27==1)||(!(a14==1)&&((a11==1)&&((a23==1)&&((a6==1)&&(a19==5))))))&&(a17==2))&&!(a20==1))&&((a21==12)&&((a12==1)&&(((a5==5)&&((!(a4==1)&&((a16==8)&&(input==6)))&&(a1==14)))&&(a9==9)))))){ + a16 = 7; + a4 = 1; + a1 = 13; + a21 = 10; + a9 = 8; + a5 = 4; + a27 = 1; + a2 = 0; + a19 = 1; + a20 = 1; + return 21; + } else if(((!(a4==1)&&(((((!(a26==1)&&((a21==10)&&(a13==1)))||(a7==1))&&(a19==3))||!(a11==1))&&!(a20==1)))&&((a11==1)&&((a17==2)&&((a1==14)&&(!(a14==1)&&((a16==9)&&((input==4)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))))))))){ + if((a28==1)){ + a9 = 11; + a1 = 12; + a21 = 12; + a29 = 0; + a20 = 1; + a5 = 4; + a24 = 1; + a16 = 11; + }else{ + a19 = 2; + a7 = 1; + a5 = 4; + a16 = 7; + a1 = 12; + a28 = 0; + a8 = 1; + a20 = 1; + a9 = 11; + } + return -1; + } else if((((a20==1)&&((a1==13)&&((((a6==1)&&(((a2==1)&&((a28==1)&&(((input==5)&&(a5==5))&&!(a26==1))))&&(a11==1)))&&(a17==2))&&(a19==5))))&&(((((a16==7)&&(a13==1))||(a4==1))&&(a9==8))&&(a21==12)))){ + a19 = 1; + a5 = 4; + a9 = 7; + a6 = 1; + a24 = 0; + a21 = 10; + a1 = 12; + a2 = 1; + return -1; + } else if((((!(a24==1)&&(((a16==10)&&(input==3))&&(a19==5)))&&(a3==1))&&((a1==13)&&((a17==2)&&((a23==1)&&((!(a7==1)&&((!(a7==1)&&((((a9==9)&&(a28==1))&&(a5==5))&&(a21==10)))&&!(a20==1)))||(a26==1))))))){ + a19 = 1; + a1 = 14; + a20 = 1; + a29 = 0; + a5 = 4; + a4 = 1; + a16 = 7; + a15 = 0; + a9 = 8; + return -1; + } else if((((a5==4)&&(((a1==13)&&((((a2==1)&&((a16==8)&&(a28==1)))&&!(a4==1))&&!(a20==1)))&&(a21==12)))&&(((((a17==2)&&(((a11==1)&&((a9==7)&&(input==5)))&&!(a18==1)))&&(a12==1))&&(a2==1))&&(a19==4)))){ + if((a3==1)){ + a20 = 1; + a14 = 1; + a21 = 10; + a15 = 1; + a22 = 1; + a16 = 7; + a1 = 12; + a19 = 1; + }else{ + a16 = 7; + a20 = 1; + a21 = 10; + a1 = 12; + a12 = 0; + a19 = 1; + a7 = 1; + } + return -1; + } else if((((((a21==10)&&(((a19==4)&&((((a2==1)||(a8==1))&&(a3==1))&&(a16==11)))||(a24==1)))&&(a1==13))&&(a9==7))&&(((!(a20==1)&&((!(a14==1)&&((input==1)&&(a5==5)))&&!(a4==1)))&&(a23==1))&&(a17==2)))){ + if((a0==1)){ + a25 = 0; + a20 = 1; + a24 = 1; + a19 = 1; + a5 = 6; + a23 = 0; + a9 = 10; + a16 = 8; + }else{ + a19 = 1; + a2 = 0; + a29 = 1; + a9 = 10; + a8 = 1; + a16 = 7; + a20 = 1; + } + return -1; + } else if((((((((input==3)&&(a9==11))&&!(a7==1))&&(a5==6))&&(a13==1))&&(a28==1))&&((a8==1)||(!(a26==1)&&((((a20==1)&&((a17==2)&&(((a19==2)&&((a2==1)&&(a21==12)))&&(a1==14))))&&(a16==11))||(a4==1)))))){ + a9 = 7; + a1 = 12; + a21 = 10; + a19 = 1; + a5 = 4; + a4 = 0; + a16 = 7; + a13 = 1; + a2 = 1; + return -1; + } else if(((((((a16==10)&&((a12==1)&&((!(a26==1)&&((a2==1)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==3))))&&!(a4==1))))&&(a17==2))&&(a19==2))&&(a21==10))&&((a26==1)||((a20==1)&&(!(a26==1)&&((a6==1)&&(a1==14))))))){ + a1 = 12; + a2 = 1; + a0 = 0; + a16 = 7; + a23 = 1; + a5 = 4; + a19 = 1; + a9 = 7; + return -1; + } else if((((!(a12==1)||((a19==1)&&((a18==1)||(a11==1))))&&(a16==8))&&((a21==11)&&((a6==1)&&((a20==1)&&(!(a0==1)&&(!(a26==1)&&(((a23==1)&&((((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8)))&&(input==3))&&(a17==2)))&&(a1==12))))))))){ + a13 = 1; + a14 = 0; + a28 = 1; + a9 = 8; + a21 = 12; + a1 = 14; + a5 = 6; + return 21; + } else if((((a20==1)&&(((((a23==1)&&(((((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))&&(input==3))&&!(a24==1)))&&(a19==4))&&(a11==1))&&(a17==2)))&&(((a21==10)&&((a26==1)||(((a24==1)||((a2==1)&&(a12==1)))&&(a1==13))))&&(a16==10)))){ + a16 = 7; + a12 = 1; + a5 = 5; + a4 = 0; + a9 = 10; + a1 = 14; + a19 = 3; + a2 = 1; + a21 = 11; + return -1; + } else if((((((((a16==9)&&(((a1==12)&&(((a9==9)&&((a12==1)||(a7==1)))&&(a19==3)))&&(a20==1)))||(a27==1))&&(a21==10))&&!(a4==1))||!(a6==1))&&((!(a8==1)&&((a17==2)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3))))&&!(a0==1)))){ + a14 = 0; + a9 = 7; + a5 = 4; + a28 = 1; + a18 = 0; + a19 = 1; + a16 = 7; + return -1; + } else if(((((!(a28==1)&&((a27==1)&&((((((((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10))))&&(input==1))&&(a27==1))&&!(a6==1))&&(a0==1))&&(a20==1))))&&(a19==4))&&(a1==14))&&((((a16==9)&&((a12==1)&&!(a2==1)))&&(a17==2))&&(a21==10)))){ + a1 = 12; + a5 = 4; + a12 = 0; + a9 = 7; + a11 = 0; + a19 = 2; + a16 = 7; + return 25; + } else if((((a17==2)&&(((!(a8==1)&&(!(a18==1)&&((a28==1)&&((input==1)&&(((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))))))&&(a21==12))&&(a1==13)))&&((a19==5)&&(((a16==7)&&(!(a23==1)||(((a13==1)||(a26==1))&&!(a7==1))))&&!(a20==1))))){ + a21 = 11; + a13 = 1; + a12 = 1; + a5 = 4; + a20 = 1; + a1 = 12; + a16 = 9; + a9 = 11; + a26 = 0; + return 21; + } else if((((((!(a26==1)&&((a16==9)&&((a9==9)&&((input==4)&&(a5==4)))))&&(a23==1))&&(a1==12))&&(a20==1))&&(((a17==2)&&(((((a27==1)||((a28==1)&&(a23==1)))&&(a21==12))&&(a12==1))&&(a28==1)))&&(a19==3)))){ + a19 = 2; + a27 = 0; + a13 = 1; + a1 = 13; + a0 = 0; + a21 = 10; + a9 = 10; + a16 = 7; + a5 = 5; + return -1; + } else if((((a9==9)&&((((a11==1)&&((a13==1)&&((a19==1)&&((a1==12)&&(a13==1)))))&&(a16==10))&&(a17==2)))&&((((a6==1)&&((a21==10)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a20==1))&&(a6==1))))&&(a28==1))&&!(a27==1)))){ + a23 = 1; + a16 = 7; + a26 = 0; + a3 = 1; + a5 = 4; + a9 = 7; + return -1; + } return calculate_output47(input); + } + + int calculate_output47(int input) { + if((((a16==11)&&((a2==1)&&(((((((input==1)&&(a5==4))&&!(a7==1))&&(a17==2))&&!(a20==1))&&(a12==1))&&(a19==1))))&&(!(a26==1)&&((((((a4==1)||(a2==1))&&(a21==10))&&(a1==14))||!(a6==1))&&(a9==9))))){ + a14 = 1; + a20 = 1; + a16 = 7; + a1 = 12; + a13 = 0; + a9 = 7; + a5 = 5; + a10 = 0; + return -1; + } else if(((((a0==1)||((a16==11)&&(((a17==2)&&(!(a26==1)&&(((a12==1)&&(!(a26==1)&&(a2==1)))&&(a21==12))))&&(a19==2))))||(a4==1))&&(((a9==11)&&((a1==13)&&(((input==6)&&(a20==1))&&!(a27==1))))&&(a5==6)))){ + a9 = 9; + a13 = 1; + a23 = 1; + a3 = 1; + a19 = 4; + return 25; + } else if((((a20==1)&&(((a5==4)&&((a12==1)&&((a11==1)&&(a13==1))))&&(a9==8)))&&((a23==1)&&(((a21==12)&&((a17==2)&&((a2==1)&&((a13==1)&&((a19==2)&&(((a1==13)&&(input==5))&&(a16==9)))))))&&(a23==1))))){ + a5 = 5; + a0 = 0; + a1 = 14; + a9 = 11; + a2 = 1; + a14 = 0; + return 21; + } else if((((a17==2)&&((a1==14)&&((((a18==1)||((a8==1)||((a23==1)&&!(a18==1))))&&!(a26==1))&&(a20==1))))&&((((a12==1)&&(((((a9==7)&&(input==6))&&(a19==5))&&(a21==10))&&(a5==4)))&&(a12==1))&&(a16==8)))){ + a19 = 1; + a16 = 7; + a2 = 1; + a28 = 1; + a7 = 0; + a1 = 12; + return -1; + } else if((((a1==13)&&((((((a23==1)||(a0==1))&&(a20==1))&&(a9==11))||(a26==1))&&(a17==2)))&&(((a12==1)&&((a21==11)&&(!(a0==1)&&((a19==3)&&((a3==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&(a28==1)))))))&&(a16==10)))){ + a12 = 1; + a19 = 1; + a1 = 12; + a9 = 7; + a5 = 4; + a7 = 0; + a27 = 0; + a21 = 10; + a16 = 7; + return -1; + } else if((((((a26==1)||(((a17==2)&&((a28==1)&&(a21==11)))&&(a1==13)))||(a24==1))&&!(a8==1))&&((a3==1)&&((((((a11==1)&&((((a5==4)||(a5==5))&&(input==4))&&(a19==3)))&&(a9==11))&&(a16==11))&&(a20==1))&&!(a4==1))))){ + a23 = 1; + a28 = 1; + a11 = 1; + a1 = 12; + a9 = 7; + a16 = 7; + a19 = 1; + a5 = 4; + a21 = 10; + return -1; + } else if((((a20==1)&&((a23==1)&&(((((input==5)&&(((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))))&&(a16==10))&&(a17==2))&&!(a8==1))))&&(((a23==1)&&(((a21==11)&&((a4==1)||((a1==12)&&((a8==1)||(a6==1)))))&&(a19==4)))||!(a2==1)))){ + a28 = 1; + a19 = 2; + a9 = 8; + a26 = 0; + a5 = 6; + a21 = 10; + a4 = 0; + a16 = 7; + a1 = 14; + return -1; + } else if((((a17==2)&&(((((a1==14)&&(a6==1))&&!(a27==1))&&(a21==12))&&(a19==4)))&&((!(a20==1)&&(!(a14==1)&&((!(a26==1)&&((((((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(input==6))&&!(a24==1))&&!(a18==1)))&&!(a4==1))))&&(a16==10)))){ + a22 = 0; + a21 = 10; + a9 = 10; + a5 = 5; + a7 = 1; + a27 = 1; + a16 = 7; + a19 = 1; + a20 = 1; + a1 = 13; + return -1; + } else if((((((a9==9)&&((a20==1)&&((a1==12)&&((a5==4)&&(input==5)))))&&!(a11==1))&&!(a12==1))&&((((a0==1)&&(((((a14==1)&&((a11==1)&&(a19==5)))&&(a17==2))&&(a16==8))&&(a21==10)))&&!(a3==1))&&(a27==1)))){ + a0 = 1; + a16 = 7; + a29 = 0; + a9 = 10; + a19 = 2; + a14 = 1; + return -1; + } else if(((!(a27==1)&&((((a5==4)&&((a19==1)&&(((a16==8)&&(input==6))&&(a1==14))))&&!(a7==1))&&(a21==11)))&&((((a11==1)&&(((a17==2)&&(((a9==10)&&(a11==1))||!(a6==1)))&&(a20==1)))&&!(a0==1))&&(a11==1)))){ + a1 = 13; + a14 = 0; + a9 = 8; + a26 = 0; + a21 = 10; + a16 = 7; + a5 = 5; + a19 = 2; + a2 = 1; + return -1; + } else if((((!(a28==1)||(((!(a27==1)&&((a7==1)||((a3==1)&&!(a20==1))))&&(a13==1))&&(a21==10)))&&(a17==2))&&((a19==3)&&(((a11==1)&&((a1==14)&&(!(a4==1)&&(((input==1)&&((a5==5)||(a5==6)))&&(a16==8)))))&&(a9==9))))){ + a20 = 1; + a12 = 1; + a8 = 0; + a13 = 1; + a1 = 12; + a19 = 1; + a9 = 10; + a5 = 4; + a16 = 10; + a21 = 12; + return 25; + } else if(((!(a7==1)&&((a21==12)&&((a6==1)&&(!(a24==1)&&((((input==5)&&((((a1==12)&&(a5==6))&&(a9==11))||(((a5==4)&&(a1==13))&&(a9==7))))&&(a19==3))&&!(a4==1))))))&&(!(a14==1)&&(((((a13==1)&&(a6==1))&&(a16==7))&&!(a20==1))&&(a17==2))))){ + a9 = 7; + a2 = 1; + a18 = 0; + a20 = 1; + a19 = 1; + a1 = 12; + a5 = 4; + a21 = 10; + return -1; + } else if(((((a23==1)&&((a28==1)&&(!(a20==1)&&((a16==10)&&(!(a14==1)&&(((a17==2)&&(input==3))&&(a9==8)))))))&&(a21==12))&&((((a1==12)&&((((a4==1)||(a6==1))&&(a19==4))||(a0==1)))&&(a5==5))||(a26==1)))){ + a2 = 0; + a25 = 1; + a20 = 1; + a16 = 7; + a21 = 10; + a9 = 9; + a29 = 1; + a1 = 14; + a19 = 1; + return -1; + } else if(((((a20==1)&&((a16==7)&&(!(a0==1)&&(((((a5==5)||(a5==6))&&(input==5))&&!(a18==1))&&(a21==12)))))&&(a9==9))&&(((a19==4)&&(!(a11==1)||(((((a2==1)&&!(a18==1))&&(a17==2))&&(a23==1))&&(a6==1))))&&(a1==14)))){ + a9 = 7; + a1 = 12; + a21 = 10; + a5 = 4; + a14 = 0; + a23 = 1; + a4 = 0; + a19 = 1; + return -1; + } else if(((((a11==1)&&((!(a24==1)&&((a20==1)&&(((a21==10)&&((a2==1)&&((a13==1)&&(a11==1))))&&!(a24==1))))&&(a17==2)))||!(a6==1))&&(((a19==2)&&((a1==14)&&(((a9==11)&&(input==3))&&(a16==8))))&&(a5==5)))){ + a13 = 1; + a19 = 1; + a9 = 7; + a1 = 12; + a16 = 7; + a5 = 4; + a4 = 0; + return -1; + } else if((((((a20==1)&&(((a28==1)&&((a1==13)&&((input==3)&&(a17==2))))&&(a5==4)))&&!(a7==1))&&(a12==1))&&(((a16==11)&&(((a21==10)&&(((a19==2)&&((a6==1)||!(a28==1)))||(a26==1)))||(a7==1)))&&(a9==10)))){ + a16 = 7; + a4 = 0; + a19 = 1; + a9 = 7; + a3 = 1; + a1 = 12; + a8 = 0; + return -1; + } else if(((((a9==7)&&(!(a18==1)&&(((a12==1)&&((a19==5)&&((a16==8)&&((((input==5)&&!(a20==1))&&(a11==1))&&(a1==14)))))&&(a2==1))))&&(a17==2))&&(((!(a28==1)||((a23==1)||(a0==1)))&&(a21==12))&&(a5==6)))){ + a9 = 9; + a19 = 1; + a24 = 1; + a6 = 0; + a16 = 7; + a21 = 10; + a20 = 1; + a5 = 5; + a13 = 0; + return -1; + } else if((((!(a4==1)&&((a21==12)&&((a20==1)&&((!(a0==1)&&(((a5==5)||(a5==6))&&(input==4)))&&(a16==11)))))&&(a12==1))&&((a4==1)||((a1==13)&&(((a0==1)||(((a19==2)&&((a9==9)&&(a12==1)))||(a4==1)))&&(a17==2)))))){ + a16 = 7; + a9 = 7; + a19 = 1; + a21 = 10; + a1 = 12; + a23 = 1; + a2 = 1; + a5 = 4; + return -1; + } else if(((!(a18==1)&&((a16==11)&&(((a19==5)&&(((a5==5)||(a5==6))&&(input==1)))&&(a1==14))))&&(((!(a13==1)||((a9==10)&&(((a27==1)||((((a28==1)||(a27==1))&&(a17==2))&&(a21==10)))&&(a20==1))))&&!(a14==1))&&(a3==1)))){ + a3 = 1; + a16 = 7; + a5 = 4; + a27 = 0; + a19 = 1; + a1 = 12; + a2 = 1; + a9 = 7; + return -1; + } else if((((a19==1)&&(((!(a14==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5)))&&!(a20==1))&&(a6==1)))&&((((a17==2)&&((((a9==9)&&(!(a27==1)&&(((a12==1)&&!(a24==1))||!(a28==1))))&&(a6==1))&&(a16==7)))&&(a21==12))&&(a1==12)))){ + a21 = 10; + a1 = 13; + a5 = 6; + a20 = 1; + a0 = 0; + a13 = 1; + a4 = 0; + a19 = 3; + a16 = 10; + return 21; + } else if(((((a20==1)&&(!(a13==1)||((a9==10)&&(a28==1))))||(a24==1))&&((a16==11)&&((a17==2)&&((a2==1)&&(((a12==1)&&(((a1==13)&&(((a21==10)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1)))&&!(a4==1)))&&!(a0==1)))&&(a19==4))))))){ + a16 = 7; + a28 = 1; + a11 = 1; + a5 = 4; + a18 = 0; + a19 = 1; + a1 = 12; + a9 = 7; + return -1; + } else if(((!(a20==1)&&((a21==10)&&((a9==7)&&((((((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&(a28==1))&&(a28==1))&&!(a26==1))&&(a12==1)))))&&(((a28==1)&&((a16==11)&&(((a1==14)&&((a17==2)&&(a13==1)))||!(a6==1))))&&(a19==3)))){ + a15 = 0; + a9 = 9; + a12 = 0; + a24 = 1; + a5 = 6; + a19 = 1; + a20 = 1; + a1 = 12; + a16 = 7; + return -1; + } else if(((((a16==9)&&(((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a4==1)))&&(a11==1))&&((((a3==1)&&((((((((a17==2)&&(a23==1))&&(a9==9))&&!(a20==1))&&(a21==11))&&(a19==4))||!(a3==1))&&(a1==12)))&&!(a4==1))||(a26==1)))){ + if((a28==1)){ + a5 = 4; + a21 = 10; + a20 = 1; + a2 = 0; + a12 = 0; + a16 = 7; + a9 = 7; + a19 = 1; + a25 = 0; + a1 = 13; + }else{ + a10 = 1; + a16 = 7; + a11 = 0; + a20 = 1; + a21 = 12; + a9 = 8; + a5 = 6; + } + return -1; + } else if((((a19==4)&&(!(a20==1)&&(!(a0==1)&&(((((a6==1)&&(a16==10))||(a18==1))&&(a11==1))||!(a2==1)))))&&(((((a12==1)&&((a5==4)&&(!(a26==1)&&((a21==10)&&(input==4)))))&&(a1==14))&&(a9==10))&&(a17==2)))){ + a20 = 1; + a13 = 0; + a29 = 1; + a9 = 9; + a1 = 13; + a19 = 2; + a3 = 0; + a16 = 7; + return 21; + } else if((((a26==1)&&((a1==14)&&((a5==5)&&((a16==10)&&(!(a6==1)&&((a13==1)&&(a20==1)))))))&&((a4==1)&&((((((((input==1)&&(a17==2))&&(a19==1))&&(a21==12))&&(a0==1))&&!(a23==1))&&(a9==9))&&!(a11==1))))){ + a21 = 10; + a19 = 2; + a9 = 7; + a1 = 12; + a12 = 0; + a16 = 7; + a11 = 0; + a25 = 0; + a5 = 4; + return 22; + } else if((((a16==11)&&(((a1==13)&&(((a11==1)&&(a6==1))&&!(a27==1)))&&(a21==12)))&&((((a17==2)&&((a2==1)&&((((a3==1)&&((((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&(input==1)))&&!(a7==1))&&!(a26==1))))&&(a19==2))&&(a20==1)))){ + a1 = 12; + a0 = 0; + a9 = 7; + a16 = 7; + a18 = 0; + a21 = 10; + a5 = 4; + a19 = 1; + return -1; + } else if(((!(a20==1)&&((a17==2)&&((!(a24==1)&&((a27==1)||((((a19==1)&&(a23==1))||(a0==1))&&(a1==12))))&&!(a8==1))))&&(((!(a0==1)&&(((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==4))&&(a6==1)))&&(a16==11))&&(a21==10)))){ + a5 = 4; + a16 = 7; + a1 = 13; + a10 = 0; + a9 = 8; + a20 = 1; + a0 = 1; + a25 = 0; + return -1; + } else if((((!(a13==1)||(((a16==9)&&(a28==1))&&(a17==2)))&&(a3==1))&&((a19==3)&&((a1==13)&&((a21==11)&&(((a11==1)&&(((((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==1))&&(a23==1))&&!(a8==1))&&!(a20==1)))&&!(a14==1))))))){ + a19 = 1; + a25 = 1; + a15 = 1; + a21 = 12; + a16 = 8; + a9 = 10; + a5 = 6; + a13 = 0; + return 25; + } else if(((((a9==9)&&((a7==1)||((a12==1)&&((((a21==11)&&(a23==1))&&(a20==1))&&(a19==5)))))&&(a5==4))&&((a2==1)&&((a12==1)&&(((a16==8)&&((((a1==13)&&(input==4))&&(a2==1))&&!(a18==1)))&&(a17==2)))))){ + a16 = 10; + a5 = 5; + a9 = 10; + a8 = 0; + a23 = 1; + a19 = 3; + a14 = 0; + return 23; + } else if((((a7==1)||(((a17==2)&&(a12==1))&&(a16==9)))&&((a12==1)&&((a19==5)&&((a1==13)&&((((a11==1)&&((a21==10)&&((((input==5)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(a2==1))&&(a13==1))))&&!(a7==1))&&(a20==1))))))){ + if((a3==1)){ + a5 = 5; + a16 = 8; + a20 = 0; + a4 = 0; + a3 = 1; + a9 = 8; + a0 = 0; + }else{ + a1 = 14; + a4 = 0; + a11 = 1; + a21 = 12; + a5 = 4; + a9 = 10; + a16 = 8; + a7 = 0; + } + return 22; + } else if((((((a17==2)&&(((a12==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4)))&&(a19==2)))&&(a2==1))&&!(a14==1))&&(!(a26==1)&&((((((a9==11)&&(!(a26==1)&&((a28==1)&&(a20==1))))&&(a21==10))&&(a1==12))&&(a16==9))&&(a6==1))))){ + a24 = 0; + a18 = 0; + a5 = 4; + a16 = 7; + a9 = 7; + a19 = 1; + return -1; + } else if(((((a14==1)||((a1==13)&&(!(a0==1)&&((((a13==1)&&(a19==4))&&(a20==1))&&(a16==7)))))||!(a6==1))&&((a21==11)&&((a5==6)&&((a17==2)&&((((a11==1)&&((a9==9)&&(input==3)))&&!(a7==1))&&(a11==1))))))){ + a19 = 1; + a26 = 0; + a24 = 0; + a27 = 0; + a9 = 7; + a5 = 4; + a21 = 10; + a1 = 12; + return -1; + } else if((((!(a7==1)&&((a8==1)||((a0==1)||(((a11==1)&&(a19==3))&&(a16==8)))))&&(a17==2))&&((a5==4)&&((a1==13)&&(!(a24==1)&&(!(a27==1)&&(((a9==11)&&((a13==1)&&((a21==12)&&(input==6))))&&(a20==1)))))))){ + a21 = 10; + a1 = 12; + a19 = 1; + a16 = 7; + a7 = 0; + a27 = 0; + a9 = 7; + a11 = 1; + return -1; + } else if((((a2==1)&&((!(a28==1)||(((((((a16==10)&&(a11==1))&&(a19==3))&&(a21==11))&&(a2==1))&&(a1==13))&&(a17==2)))&&(a11==1)))&&(!(a0==1)&&(((a20==1)&&(((input==1)&&((a5==4)||(a5==5)))&&(a9==8)))&&(a13==1))))){ + a12 = 1; + a5 = 5; + a3 = 1; + a21 = 10; + a24 = 0; + a19 = 2; + a16 = 7; + a9 = 9; + return 25; + } else if((((a19==1)&&((a21==12)&&(((a1==14)&&((a20==1)&&(((a5==5)&&(input==6))&&!(a12==1))))&&(a9==9))))&&((!(a11==1)&&((a14==1)&&((a16==10)&&((((a13==1)&&!(a6==1))&&(a14==1))&&!(a28==1)))))&&(a17==2)))){ + a16 = 7; + a23 = 0; + a9 = 11; + a13 = 0; + a19 = 2; + a21 = 10; + a25 = 0; + a1 = 12; + return 25; + } else if((((((((((a19==5)&&(!(a20==1)&&(a23==1)))&&(a17==2))&&(a21==11))&&(a16==8))&&(a1==13))||!(a23==1))&&!(a18==1))&&((!(a26==1)&&((((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))&&(input==1))&&(a23==1))&&(a23==1)))&&!(a7==1)))){ + a21 = 10; + a28 = 0; + a19 = 2; + a24 = 1; + a5 = 6; + a20 = 1; + a9 = 9; + a16 = 7; + a10 = 0; + a1 = 12; + return 25; + } else if(((((a5==4)&&(((a19==1)&&(input==5))&&!(a4==1)))&&(a17==2))&&((a20==1)&&(((a1==12)&&((a9==7)&&((a16==9)&&(!(a7==1)&&(!(a8==1)&&((((a12==1)&&(a11==1))&&(a13==1))||!(a28==1)))))))&&(a21==11))))){ + a23 = 1; + a21 = 10; + a8 = 0; + a16 = 7; + a7 = 0; + return -1; + } else if((((a28==1)&&((a28==1)&&((((a16==10)&&(input==3))&&(a9==8))&&!(a24==1))))&&(((a12==1)&&((((a1==12)&&((a21==12)&&((a5==6)&&(((a19==5)&&(a6==1))&&!(a20==1)))))&&(a17==2))||(a7==1)))||!(a6==1)))){ + a21 = 10; + a16 = 7; + a26 = 1; + a23 = 0; + a5 = 5; + a25 = 0; + return -1; + } else if(((!(a12==1)&&((a17==2)&&((a20==1)&&((a5==6)&&((a1==13)&&((input==4)&&(a9==9)))))))&&(!(a3==1)&&((((((a19==5)&&(((a21==12)&&(a13==1))&&!(a28==1)))&&(a16==9))&&(a27==1))&&!(a11==1))&&(a8==1))))){ + a16 = 7; + a21 = 10; + a28 = 0; + a24 = 1; + a1 = 12; + a29 = 1; + a9 = 8; + a5 = 5; + a19 = 1; + return 25; + } else if((((((a16==9)&&(((input==1)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(a2==1)))&&!(a7==1))&&!(a20==1))&&(!(a14==1)&&((((((!(a0==1)&&((a6==1)&&(a21==10)))&&(a17==2))&&(a1==14))||!(a2==1))&&(a19==3))&&(a2==1))))){ + a2 = 0; + a29 = 1; + a9 = 11; + a5 = 4; + a19 = 1; + a20 = 1; + a10 = 1; + a16 = 7; + a1 = 12; + return -1; + } else if(((!(a20==1)&&((a17==2)&&((a1==12)&&((a14==1)||(a11==1)))))&&(((a21==11)&&((((((((input==6)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(a11==1))&&!(a7==1))&&(a16==8))&&!(a7==1))&&(a2==1))&&(a12==1)))&&(a19==4)))){ + a9 = 7; + a26 = 0; + a16 = 7; + a20 = 1; + a11 = 1; + a21 = 10; + a5 = 4; + a19 = 1; + a3 = 1; + return -1; + } else if((((a17==2)&&(!(a20==1)&&(((a4==1)||((a12==1)&&(((a21==10)&&((a23==1)&&(a3==1)))&&(a3==1))))&&(a19==5))))&&((a1==14)&&(((a2==1)&&((a9==7)&&((a2==1)&&((a5==6)&&(input==5)))))&&(a16==7))))){ + a21 = 12; + a19 = 1; + a5 = 5; + a11 = 1; + a3 = 1; + a13 = 1; + return 21; + } else if((((a5==4)&&((a17==2)&&(!(a18==1)&&(((a2==1)&&((((a21==11)&&(input==4))&&(a1==12))&&(a9==8)))&&(a20==1)))))&&(((a26==1)||(((!(a13==1)||((a16==9)&&(a3==1)))||!(a6==1))&&!(a24==1)))&&(a19==4)))){ + a9 = 7; + a19 = 1; + a21 = 10; + a11 = 1; + a16 = 7; + a3 = 1; + return -1; + } else if((((a17==2)&&((a21==11)&&(((a3==1)&&((a20==1)&&(((input==1)&&(a16==8))&&(a5==5))))&&(a6==1))))&&(((a23==1)&&(!(a28==1)||(((a9==11)&&((a19==5)&&((a3==1)&&(a23==1))))&&(a1==12))))||!(a2==1)))){ + a27 = 0; + a0 = 0; + a7 = 0; + a9 = 7; + a21 = 10; + a5 = 4; + a19 = 1; + a16 = 7; + return -1; + } else if((((a11==1)&&(((a6==1)&&(a12==1))&&!(a26==1)))&&(((!(a26==1)&&((!(a20==1)&&((((((((a1==14)&&(a5==6))&&(a9==11))&&(a19==4))||((a19==5)&&((a9==7)&&((a1==12)&&(a5==4)))))&&(input==5))&&(a21==10))&&(a17==2)))&&(a16==8)))&&!(a14==1))&&(a2==1)))){ + a19 = 5; + a12 = 1; + a13 = 1; + a5 = 6; + a1 = 14; + a20 = 1; + a9 = 11; + a16 = 9; + a4 = 0; + return -1; + } else if((((a17==2)&&(((((!(a23==1)||(!(a20==1)&&((a23==1)&&(a21==10))))||(a14==1))&&(a1==13))&&(a19==1))&&(a9==8)))&&((a16==8)&&((((((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&(a23==1))&&(a13==1))&&(a2==1))&&(a23==1))))){ + a14 = 0; + a20 = 1; + a16 = 7; + a1 = 12; + a3 = 1; + a9 = 7; + a7 = 0; + a5 = 4; + return -1; + } else if(((((a11==1)&&((a6==1)&&(((a17==2)&&(((((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))&&(input==4))&&(a19==2))&&(a16==9)))&&!(a24==1))))&&(a1==13))&&((((a18==1)||(!(a20==1)&&((a21==11)&&(a13==1))))&&!(a14==1))&&!(a18==1)))){ + a5 = 6; + a28 = 0; + a25 = 0; + a21 = 10; + a1 = 12; + a15 = 1; + a9 = 11; + a16 = 7; + a19 = 1; + a20 = 1; + return 21; + } else if(((((((a2==1)&&(((a6==1)||(a18==1))&&(a1==14)))||!(a3==1))&&!(a20==1))&&(a17==2))&&((a16==8)&&(((a9==11)&&(((((((a5==4)||(a5==5))&&(input==6))&&!(a8==1))&&(a6==1))&&(a12==1))&&(a21==10)))&&(a19==3))))){ + a23 = 1; + a28 = 1; + a16 = 7; + a8 = 0; + a9 = 7; + a20 = 1; + a1 = 12; + a5 = 4; + a19 = 1; + return -1; + } else if((((a17==2)&&((a1==12)&&(((((a4==1)||(((a23==1)||!(a2==1))||!(a13==1)))||(a26==1))&&(a9==10))&&(a13==1))))&&((a21==12)&&((a19==3)&&((a20==1)&&((a12==1)&&((((a5==5)||(a5==6))&&(input==1))&&(a16==8)))))))){ + a16 = 10; + a7 = 0; + a19 = 2; + a1 = 13; + a23 = 1; + a24 = 0; + a9 = 8; + a5 = 6; + return 22; + } else if((((a23==1)&&((((a19==4)&&((input==5)&&(a9==11)))&&(a21==11))&&(a6==1)))&&(((a5==5)&&(((a27==1)||((a1==13)&&((a17==2)&&(((a18==1)||((a3==1)&&(a20==1)))&&!(a7==1)))))&&!(a4==1)))&&(a16==8)))){ + a14 = 0; + a5 = 4; + a21 = 10; + a1 = 12; + a19 = 1; + a16 = 7; + a23 = 1; + a9 = 7; + return -1; + } else if((((a16==9)&&((((((input==1)&&((a5==4)||(a5==5)))&&!(a27==1))&&(a9==9))&&(a21==12))&&(a28==1)))&&(((((a0==1)||(((((a12==1)&&(a19==3))&&(a17==2))&&!(a27==1))&&(a1==14)))&&!(a0==1))&&(a20==1))&&(a2==1)))){ + a9 = 8; + a6 = 1; + a5 = 6; + a21 = 10; + a2 = 1; + a4 = 0; + a16 = 10; + return 21; + } else if(((!(a24==1)&&(((((a16==10)&&(((!(a13==1)||(a3==1))&&!(a26==1))&&(a1==13)))&&(a19==3))&&(a21==10))||!(a2==1)))&&((((a17==2)&&((((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11)))&&(input==4))&&!(a24==1)))&&!(a20==1))&&(a2==1)))){ + if((a28==1)){ + a1 = 12; + a22 = 0; + a29 = 0; + a16 = 7; + a20 = 1; + a14 = 1; + a19 = 2; + a9 = 10; + a5 = 5; + }else{ + a22 = 1; + a5 = 4; + a19 = 5; + a16 = 8; + a9 = 8; + a20 = 1; + a23 = 0; + a12 = 0; + a21 = 12; + } + return -1; + } else if((((a19==1)&&(((((!(a28==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3)))&&(a21==10))&&!(a23==1))&&(a17==2))&&(a1==14)))&&(((((!(a11==1)&&(((a24==1)&&(a6==1))&&(a9==8)))&&(a18==1))&&(a16==10))&&(a0==1))&&(a20==1)))){ + a22 = 0; + a2 = 0; + a8 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + a1 = 13; + return -1; + } else if((((((((a9==10)&&((((a21==10)&&(a23==1))&&!(a4==1))&&(a19==1)))||(a26==1))&&(a16==10))&&(a1==12))&&!(a7==1))&&(!(a18==1)&&((((((input==5)&&((a5==4)||(a5==5)))&&!(a20==1))&&(a11==1))&&(a13==1))&&(a17==2))))){ + if((a12==1)){ + a21 = 11; + a0 = 1; + a8 = 1; + a5 = 5; + a1 = 13; + a19 = 2; + a29 = 1; + a9 = 11; + }else{ + a9 = 11; + a15 = 1; + a19 = 4; + a5 = 4; + a1 = 13; + a6 = 0; + a21 = 12; + a16 = 9; + } + return -1; + } else if(((((a19==3)&&(((a17==2)&&((a28==1)&&(a3==1)))&&(a21==11)))&&(a3==1))&&((a23==1)&&((!(a18==1)&&((a12==1)&&(((a20==1)&&(((((a9==11)&&((a1==12)&&(a5==5)))||((a9==11)&&((a5==6)&&(a1==12))))||(((a5==4)&&(a1==13))&&(a9==7)))&&(input==5)))&&(a16==7))))&&(a12==1))))){ + a21 = 10; + a9 = 10; + a14 = 0; + a5 = 4; + a19 = 5; + a3 = 1; + a2 = 1; + a16 = 8; + a1 = 13; + return 26; + } else if(((((a11==1)&&(!(a20==1)&&(!(a0==1)&&((((a5==6)&&(input==5))&&(a9==7))&&(a1==13)))))&&(a17==2))&&(!(a14==1)&&((a24==1)||(((a21==10)&&((!(a11==1)||((a19==4)&&(a23==1)))&&!(a27==1)))&&(a16==9)))))){ + a15 = 1; + a20 = 1; + a1 = 12; + a9 = 10; + a6 = 0; + a29 = 0; + a21 = 11; + a19 = 1; + a16 = 11; + return 21; + } else if(((((a20==1)&&(((!(a0==1)&&((a3==1)&&((a16==7)&&((input==5)&&(a1==13)))))&&(a3==1))&&!(a7==1)))&&(a19==1))&&(((a17==2)&&(((((a28==1)||!(a13==1))||(a14==1))&&(a21==12))&&(a9==8)))&&(a5==4)))){ + a9 = 9; + a19 = 5; + a5 = 6; + a16 = 8; + a28 = 1; + a0 = 0; + a24 = 0; + return 23; + } else if(((!(a11==1)||((((((a28==1)&&(a19==1))&&!(a20==1))||!(a3==1))&&(a16==9))&&(a11==1)))&&(!(a27==1)&&((((a17==2)&&(((input==6)&&(((a9==7)&&((a5==4)&&(a1==14)))||((((a1==13)&&(a5==5))&&(a9==11))||(((a5==6)&&(a1==13))&&(a9==11)))))&&(a21==12)))&&!(a0==1))&&!(a0==1))))){ + if((a14==1)){ + a20 = 1; + a16 = 7; + a9 = 7; + a1 = 12; + a21 = 10; + a12 = 0; + a19 = 2; + a18 = 1; + a5 = 4; + }else{ + a29 = 0; + a5 = 5; + a1 = 12; + a19 = 2; + a9 = 9; + a21 = 10; + a7 = 1; + a28 = 0; + } + return 22; + } else if(((((((a11==1)&&(a2==1))&&!(a0==1))&&(a21==12))&&(a1==14))&&((a17==2)&&((a16==7)&&(((a2==1)&&(!(a26==1)&&((!(a20==1)&&((a12==1)&&((input==6)&&(((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))))))&&(a23==1))))&&(a19==3)))))){ + a19 = 1; + a9 = 7; + a7 = 0; + a1 = 12; + a21 = 10; + a8 = 0; + a5 = 4; + a12 = 1; + a20 = 1; + return -1; + } else if((((a19==2)&&(!(a20==1)&&(((a17==2)&&(((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a5==4)&&(a9==8)))&&(input==5)))&&(a21==12))))&&(!(a27==1)&&(!(a24==1)&&(!(a24==1)&&(!(a8==1)&&((a1==14)&&(((a13==1)&&((a16==9)&&(a2==1)))||!(a6==1))))))))){ + a1 = 13; + a23 = 0; + a21 = 10; + a16 = 8; + a19 = 5; + a25 = 1; + a24 = 1; + a5 = 6; + a9 = 11; + return -1; + } else if(((((((a16==10)&&((!(a8==1)&&((((input==1)&&((a5==5)||(a5==6)))&&(a9==7))&&(a2==1)))&&(a3==1)))&&!(a20==1))&&(a12==1))&&!(a26==1))&&((a19==1)&&((a21==12)&&((a8==1)||((a1==14)&&((a13==1)&&(a17==2)))))))){ + a15 = 0; + a19 = 4; + a9 = 11; + a1 = 13; + a5 = 5; + a13 = 0; + a16 = 7; + a20 = 1; + a14 = 1; + return 23; + } else if((((((a1==12)&&((a5==6)&&(((a13==1)&&((a20==1)&&((!(a18==1)&&(((input==1)&&(a9==7))&&(a21==12)))&&(a16==7))))&&(a28==1))))&&!(a18==1))&&!(a18==1))&&(((a18==1)||((a12==1)&&(a19==5)))&&(a17==2)))){ + a19 = 3; + a16 = 9; + a0 = 0; + a18 = 0; + a1 = 14; + a5 = 5; + a9 = 8; + a21 = 11; + a11 = 1; + return 26; + } else if((((a20==1)&&(((a23==1)&&(((!(a7==1)&&(((input==4)&&(a1==13))&&(a16==8)))&&(a9==8))&&!(a8==1)))&&!(a7==1)))&&((a12==1)&&(((((a21==11)&&((a19==1)&&(a6==1)))&&(a5==6))&&(a17==2))||!(a2==1))))){ + a21 = 10; + a27 = 0; + a19 = 3; + a8 = 0; + a16 = 10; + a9 = 10; + a1 = 12; + a12 = 1; + return 25; + } else if((((((((a23==1)&&((a17==2)&&((((input==4)&&(a5==6))&&(a3==1))&&!(a24==1))))&&(a16==8))&&!(a8==1))&&(a9==11))&&!(a8==1))&&((a21==12)&&(((a1==14)&&(((a23==1)&&!(a20==1))&&(a19==1)))||!(a13==1))))){ + if((a9==11)){ + a1 = 12; + a20 = 1; + a21 = 10; + a16 = 7; + a29 = 1; + a15 = 1; + a11 = 0; + }else{ + a18 = 1; + a5 = 4; + a20 = 1; + a9 = 8; + a1 = 13; + a16 = 7; + a25 = 1; + a21 = 10; + } + return -1; + } else if(((((a2==1)&&(((a21==11)&&((a17==2)&&((a1==14)&&(a2==1))))&&!(a24==1)))&&(a3==1))&&(((a9==10)&&((((a19==5)&&((a11==1)&&(!(a18==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4)))))&&(a16==9))&&(a20==1)))&&(a11==1)))){ + a18 = 0; + a21 = 10; + a1 = 12; + a11 = 1; + a26 = 0; + a5 = 4; + a19 = 1; + a9 = 7; + a16 = 7; + return -1; + } else if(((((((!(a11==1)||(((a19==5)&&(a6==1))&&(a1==13)))&&(a9==9))&&(a13==1))||!(a12==1))&&(a20==1))&&((a17==2)&&(((a16==9)&&((!(a8==1)&&((a3==1)&&((input==6)&&(a21==12))))&&(a3==1)))&&(a5==5))))){ + a11 = 1; + a18 = 0; + a16 = 7; + a9 = 10; + a12 = 1; + a5 = 6; + a21 = 10; + a19 = 2; + return 25; + } else if(((!(a3==1)||((a1==13)&&((((a21==12)&&((a19==5)&&(((a12==1)&&(a11==1))&&(a17==2))))||!(a6==1))&&(a20==1))))&&(((a12==1)&&(((a9==10)&&(((input==3)&&((a5==5)||(a5==6)))&&(a16==7)))&&!(a7==1)))&&(a12==1)))){ + a1 = 12; + a11 = 1; + a19 = 1; + a5 = 4; + a26 = 0; + a7 = 0; + a21 = 10; + a9 = 7; + return -1; + } else if((((a20==1)&&((a28==1)&&((a11==1)&&((a1==13)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&!(a18==1))&&(a17==2))&&(a21==11))))))&&((((((a16==8)&&(!(a18==1)&&(a6==1)))&&(a19==3))||(a7==1))||(a24==1))&&(a9==10)))){ + a21 = 10; + a7 = 0; + a14 = 0; + a16 = 7; + a1 = 12; + a19 = 1; + a2 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if((((((!(a28==1)||((!(a6==1)||(a13==1))||(a4==1)))&&!(a18==1))&&(a16==11))&&(a1==14))&&((a17==2)&&(((a21==10)&&((a9==9)&&((a28==1)&&(((a2==1)&&((input==4)&&((a5==4)||(a5==5))))&&(a19==1)))))&&(a20==1))))){ + a5 = 4; + a9 = 10; + a0 = 0; + a4 = 0; + a19 = 2; + a1 = 12; + a21 = 11; + return 26; + } else if((((a23==1)&&(((a20==1)&&(((a2==1)&&((a16==11)&&(!(a27==1)&&((a19==2)&&((input==1)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))))))&&(a23==1)))&&(a17==2)))&&((a21==11)&&((a1==14)&&(((a12==1)||(a4==1))||(a4==1)))))){ + a1 = 13; + a21 = 12; + a19 = 1; + a9 = 9; + a27 = 0; + a7 = 0; + a5 = 5; + a6 = 1; + return 21; + } else if((((a17==2)&&((a2==1)&&((!(a27==1)&&(((input==3)&&(((((a5==5)&&(a1==12))&&(a9==11))||((a9==11)&&((a1==12)&&(a5==6))))||((a9==7)&&((a5==4)&&(a1==13)))))&&(a21==10)))&&(a16==11))))&&((!(a28==1)||(!(a7==1)&&(!(a20==1)&&((a19==3)&&((a6==1)&&(a2==1))))))||!(a2==1)))){ + a18 = 1; + a28 = 0; + a5 = 5; + a19 = 5; + a20 = 1; + a9 = 9; + a1 = 13; + a0 = 1; + return -1; + } else if(((((a17==2)&&((a2==1)&&(((a16==7)&&((a21==11)&&(!(a27==1)&&(!(a7==1)&&((input==1)&&((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11))))))))&&(a13==1))))&&(a20==1))&&((((a19==5)&&((a2==1)&&(a13==1)))&&!(a14==1))&&(a1==12)))){ + a8 = 0; + a19 = 1; + a5 = 4; + a3 = 1; + a16 = 8; + a7 = 0; + a21 = 12; + a1 = 13; + a9 = 10; + return 26; + } else if((((((a16==10)&&(((a26==1)||((a19==5)&&((a9==11)&&(a28==1))))||(a26==1)))&&(a1==13))||!(a28==1))&&((a23==1)&&((!(a0==1)&&(((a3==1)&&((a17==2)&&((input==6)&&!(a20==1))))&&(a5==4)))&&(a21==10))))){ + a13 = 0; + a16 = 7; + a19 = 1; + a2 = 0; + a1 = 12; + a5 = 5; + a15 = 1; + a20 = 1; + return -1; + } else if((((a19==3)&&((a16==8)&&((a14==1)||((((((a2==1)&&!(a4==1))&&!(a20==1))&&(a11==1))&&(a21==11))&&(a1==12)))))&&((a17==2)&&(((a12==1)&&((!(a18==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))&&(a3==1)))&&(a9==10))))){ + a1 = 13; + a19 = 1; + a8 = 0; + a5 = 4; + a20 = 1; + a9 = 9; + a16 = 10; + a13 = 1; + return 21; + } else if(((!(a26==1)&&((a2==1)&&(((a5==4)&&(((((a17==2)&&(!(a26==1)&&((input==1)&&(a9==9))))&&(a16==7))&&(a21==10))&&(a1==12)))&&(a19==3))))&&(((((a2==1)||(a18==1))&&(a20==1))||!(a12==1))&&!(a0==1)))){ + a6 = 1; + a9 = 7; + a13 = 1; + a24 = 0; + a1 = 13; + a19 = 5; + return 21; + } else if(((((a21==12)&&((a19==2)&&((a17==2)&&((((((a5==4)&&(a1==13))&&(a9==7))||((((a1==12)&&(a5==5))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==12)))))&&(input==4))&&(a20==1)))))&&(a13==1))&&(!(a26==1)&&((a16==11)&&((!(a4==1)&&((a27==1)||(!(a4==1)&&(a13==1))))||(a26==1)))))){ + a16 = 8; + a3 = 1; + a9 = 7; + a12 = 1; + a14 = 0; + a19 = 5; + a1 = 13; + a5 = 5; + return 26; + } else if(((((a16==11)&&(!(a13==1)||(((a6==1)&&(((a5==5)&&(a23==1))&&!(a0==1)))&&(a17==2))))||!(a2==1))&&((((!(a27==1)&&((!(a0==1)&&((input==6)&&(a9==8)))&&(a21==10)))&&(a1==12))&&(a20==1))&&(a19==1)))){ + a5 = 4; + a12 = 1; + a9 = 7; + a14 = 0; + a16 = 7; + a23 = 1; + return -1; + } else if((((((!(a20==1)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==3)))&&(a28==1))&&(a16==8))&&(a11==1))&&((((((a7==1)||(!(a3==1)||(((a3==1)&&(a1==14))&&(a17==2))))&&(a19==5))&&(a21==11))&&!(a18==1))&&(a28==1)))){ + a15 = 1; + a1 = 13; + a13 = 0; + a8 = 1; + a9 = 10; + a19 = 3; + a5 = 5; + return -1; + } else if((((a16==9)&&(((!(a8==1)&&((a23==1)&&(((a19==3)&&((input==5)&&((((a9==11)&&((a1==13)&&(a5==5)))||(((a1==13)&&(a5==6))&&(a9==11)))||((a9==7)&&((a5==4)&&(a1==14))))))&&!(a0==1))))&&!(a18==1))&&!(a20==1)))&&(((!(a11==1)||((a3==1)&&(a21==11)))&&(a17==2))&&!(a4==1)))){ + a9 = 7; + a14 = 1; + a22 = 0; + a19 = 1; + a20 = 1; + a16 = 7; + a5 = 6; + a21 = 10; + a1 = 12; + a24 = 1; + return 21; + } else if((((a4==1)&&(((((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))&&(input==1))&&(a19==4)))&&(!(a3==1)&&(((((a18==1)&&(((a8==1)&&(((a16==10)&&((a13==1)&&(a21==11)))&&(a24==1)))&&(a4==1)))&&(a1==14))&&(a17==2))&&(a20==1))))){ + a6 = 0; + a1 = 12; + a12 = 0; + a16 = 7; + a9 = 7; + a18 = 1; + a5 = 6; + a19 = 1; + a21 = 10; + return -1; + } else if((((((a19==1)&&((a21==11)&&((!(a3==1)||(a3==1))&&(a13==1))))&&(a1==13))&&(a20==1))&&((((a28==1)&&(!(a24==1)&&((((a9==9)&&((input==6)&&(a17==2)))&&!(a24==1))&&(a5==4))))&&(a16==10))&&!(a24==1)))){ + a1 = 12; + a27 = 0; + a9 = 7; + a28 = 1; + a21 = 10; + a14 = 0; + a16 = 7; + return -1; + } else if(((((a2==1)&&(!(a18==1)&&(((a2==1)&&(a21==11))&&(a20==1))))||(a0==1))&&(!(a4==1)&&(((((a17==2)&&((((a19==5)&&(((a5==5)&&(a1==12))&&(a9==7)))||(((((a5==6)&&(a1==14))&&(a9==11))&&(a19==4))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==5))))&&(input==5)))&&(a16==11))&&(a23==1))&&(a23==1))))){ + a16 = 7; + a23 = 1; + a9 = 7; + a19 = 1; + a14 = 0; + a21 = 10; + a8 = 0; + a1 = 12; + a5 = 4; + return -1; + } else if(((((((!(a20==1)&&((((input==6)&&((a5==4)||(a5==5)))&&!(a14==1))&&!(a7==1)))&&!(a18==1))&&(a16==7))&&(a17==2))&&(a19==2))&&(((a1==13)&&((a3==1)&&((((a11==1)&&(a12==1))&&(a9==10))&&!(a0==1))))&&(a21==12)))){ + a1 = 14; + a9 = 11; + a19 = 4; + a20 = 1; + a5 = 5; + a27 = 0; + a11 = 1; + a16 = 9; + a12 = 1; + return 26; + } else if(((((a16==10)&&(((a23==1)&&(((a3==1)||(a27==1))&&(a19==1)))&&!(a26==1)))&&(a20==1))&&(((a5==4)&&((a17==2)&&(!(a4==1)&&((a9==10)&&(!(a24==1)&&(((a1==13)&&(input==3))&&!(a18==1)))))))&&(a21==10)))){ + a11 = 1; + a2 = 1; + a16 = 7; + a23 = 1; + a9 = 7; + a1 = 12; + return -1; + } else if((((a8==1)||(!(a20==1)&&(((a1==14)&&(((a11==1)&&!(a8==1))&&(a17==2)))&&!(a26==1))))&&((!(a26==1)&&((a2==1)&&((a3==1)&&(((((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))&&(input==3))&&(a16==10))&&(a21==12)))))&&(a19==4)))){ + a9 = 11; + a1 = 13; + a16 = 9; + a23 = 0; + a15 = 1; + a5 = 4; + a22 = 0; + return -1; + } else if((((a16==7)&&((((a28==1)&&!(a18==1))&&(a19==3))&&(a20==1)))&&(((a3==1)&&(!(a26==1)&&(((a17==2)&&((a23==1)&&((a6==1)&&((a1==13)&&((input==1)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))))))&&!(a14==1))))&&(a21==12)))){ + a13 = 1; + a9 = 7; + a24 = 0; + a21 = 10; + a16 = 9; + a5 = 5; + a4 = 0; + a19 = 5; + return 26; + } else if(((((((a19==2)&&(((a2==1)||(a8==1))&&(a20==1)))&&(a23==1))&&(a23==1))&&(a17==2))&&(((a13==1)&&((a1==13)&&(!(a26==1)&&((((((a5==5)||(a5==6))&&(input==4))&&(a9==10))&&(a21==10))&&!(a24==1)))))&&(a16==11)))){ + a11 = 1; + a16 = 7; + a3 = 1; + a1 = 12; + a9 = 7; + a19 = 1; + a5 = 4; + return -1; + } else if((((a28==1)&&((a21==12)&&((a12==1)&&((a19==3)&&((((a17==2)&&(a11==1))&&(a9==9))||!(a28==1))))))&&(((a13==1)&&((!(a26==1)&&(((((a5==5)||(a5==6))&&(input==3))&&(a1==12))&&(a11==1)))&&(a20==1)))&&(a16==7)))){ + a14 = 0; + a21 = 10; + a5 = 4; + a16 = 9; + a19 = 4; + a1 = 14; + a9 = 8; + a12 = 1; + a28 = 1; + return 21; + } else if(((((a16==10)&&(((a20==1)&&((a28==1)||(a4==1)))&&(a23==1)))&&!(a18==1))&&(((!(a27==1)&&((((input==6)&&((((a19==3)&&(((a1==14)&&(a5==5))&&(a9==11)))||((a19==3)&&(((a5==6)&&(a1==14))&&(a9==11))))||((((a5==4)&&(a1==12))&&(a9==7))&&(a19==4))))&&(a17==2))&&(a21==11)))&&(a11==1))&&(a2==1)))){ + a24 = 0; + a19 = 2; + a9 = 9; + a16 = 7; + a21 = 10; + a5 = 5; + a2 = 1; + a1 = 13; + a4 = 0; + return -1; + } else if((((((((a1==13)&&((a23==1)&&(((a17==2)&&((a16==9)&&(input==4)))&&(a5==5))))&&!(a20==1))&&(a12==1))&&(a19==5))&&!(a24==1))&&(!(a6==1)||((a9==9)&&((a24==1)||((a21==11)&&((a18==1)||(a3==1)))))))){ + a19 = 1; + a25 = 1; + a5 = 6; + a21 = 10; + a9 = 8; + a29 = 0; + a18 = 1; + a20 = 1; + a16 = 7; + return -1; + } else if(((((((((((a1==12)&&((input==4)&&(a5==5)))&&(a17==2))&&(a9==7))&&!(a7==1))&&(a19==5))&&(a6==1))&&(a23==1))&&(a16==7))&&((!(a20==1)&&((a2==1)&&((a11==1)&&(!(a6==1)||(a11==1)))))&&(a21==10)))){ + a4 = 0; + a2 = 1; + a20 = 1; + a19 = 1; + a26 = 0; + a5 = 4; + return -1; + } else if(((((((a27==1)||((a21==12)&&((a16==9)&&((a12==1)&&(a6==1)))))&&(a11==1))&&(a1==13))&&(a19==5))&&((a17==2)&&(((a20==1)&&(!(a27==1)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&!(a24==1))&&!(a26==1))))&&(a9==10))))){ + a5 = 4; + a9 = 7; + a26 = 0; + a16 = 7; + a1 = 12; + a27 = 0; + a21 = 10; + a19 = 1; + a2 = 1; + return -1; + } else if(((((a12==1)&&(!(a2==1)||((a16==7)&&(!(a26==1)&&((a21==10)&&(((a14==1)||((a1==12)&&(a28==1)))||(a4==1)))))))&&(a19==4))&&((a17==2)&&((a3==1)&&((a5==5)&&(((a9==8)&&(input==6))&&(a20==1))))))){ + a19 = 3; + a5 = 6; + a21 = 11; + a1 = 13; + a3 = 1; + a9 = 11; + a4 = 0; + return 26; + } else if((((a11==1)&&(!(a14==1)&&((((a17==2)&&(a2==1))&&(a16==8))&&(a21==10))))&&(!(a8==1)&&(!(a24==1)&&(!(a27==1)&&(((a19==1)&&(((((((a5==6)&&(a1==12))&&(a9==11))||(((a1==13)&&(a5==4))&&(a9==7)))||(((a1==13)&&(a5==5))&&(a9==7)))&&(input==6))&&(a20==1)))&&(a2==1))))))){ + a9 = 7; + a6 = 1; + a16 = 7; + a4 = 0; + a5 = 4; + a28 = 1; + a1 = 12; + return -1; + } else if((((((!(a28==1)||(((a17==2)&&(a2==1))&&(a5==4)))&&(a11==1))||(a4==1))&&(a21==10))&&(((a3==1)&&((((a9==11)&&((!(a14==1)&&((a19==3)&&(input==4)))&&!(a18==1)))&&(a20==1))&&(a1==13)))&&(a16==11)))){ + a18 = 0; + a8 = 0; + a19 = 1; + a3 = 1; + a9 = 7; + a16 = 7; + a1 = 12; + return -1; + } else if(((((((!(a20==1)&&((((a28==1)&&(!(a27==1)&&((input==6)&&(a17==2))))&&(a9==7))&&(a1==12)))&&(a5==6))&&(a16==7))&&(a23==1))&&!(a26==1))&&(!(a28==1)||((!(a24==1)&&((a21==12)&&(a13==1)))&&(a19==1))))){ + a1 = 13; + a19 = 4; + a16 = 9; + a0 = 0; + a14 = 0; + a21 = 11; + a2 = 1; + a9 = 10; + a20 = 1; + return -1; + } else if(((((a14==1)||(!(a24==1)&&(!(a3==1)||(a3==1))))&&(a20==1))&&((a17==2)&&((a19==3)&&(((a1==12)&&((a13==1)&&(!(a27==1)&&(((a13==1)&&((a9==10)&&((a21==12)&&(input==3))))&&(a16==10)))))&&(a5==5)))))){ + a26 = 0; + a21 = 10; + a16 = 9; + a3 = 1; + a4 = 0; + a19 = 5; + return -1; + } else if(((!(a7==1)&&((a1==14)&&((a21==10)&&((a20==1)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==3))))))&&((a12==1)&&((a19==2)&&((a7==1)||((((a8==1)||(((a28==1)||(a24==1))||!(a3==1)))&&(a16==10))&&(a17==2))))))){ + a5 = 4; + a9 = 7; + a1 = 12; + a6 = 1; + a16 = 7; + a19 = 1; + a24 = 0; + return -1; + } else if(((((a9==8)&&(((a21==10)&&((a4==1)||((a26==1)||((a19==5)&&(!(a11==1)||(a3==1))))))&&(a1==13)))&&(a16==9))&&((!(a14==1)&&(((((input==4)&&(a20==1))&&(a6==1))&&(a5==4))&&(a12==1)))&&(a17==2)))){ + a1 = 12; + a16 = 7; + a0 = 0; + a9 = 7; + a19 = 1; + a7 = 0; + a13 = 1; + return -1; + } else if((((a9==10)&&((!(a8==1)&&(((a16==7)&&(a13==1))&&(a19==3)))||!(a3==1)))&&(!(a0==1)&&(((!(a20==1)&&(((a1==12)&&((a17==2)&&(((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&(a21==11))))&&!(a4==1)))&&!(a26==1))&&(a11==1))))){ + a21 = 10; + a7 = 0; + a3 = 1; + a9 = 7; + a19 = 1; + a4 = 0; + a20 = 1; + a5 = 4; + return -1; + } else if((((a16==11)&&((a21==10)&&((a28==1)&&((a17==2)&&(!(a14==1)&&((input==3)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))))))))&&((a19==4)&&(((((((a12==1)&&!(a14==1))||(a8==1))&&(a2==1))&&(a13==1))&&!(a20==1))&&(a1==12))))){ + a27 = 1; + a9 = 7; + a16 = 7; + a25 = 1; + a12 = 0; + a20 = 1; + a19 = 2; + a5 = 6; + return -1; + } else if((((((a19==5)&&((a26==1)||(a12==1)))||!(a2==1))&&(a16==10))&&((a17==2)&&(!(a20==1)&&((((a21==12)&&(((a1==12)&&((a13==1)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))&&(input==5))))&&!(a7==1)))&&(a11==1))&&!(a14==1)))))){ + a19 = 1; + a23 = 0; + a1 = 13; + a9 = 7; + a28 = 0; + a2 = 0; + a21 = 10; + a20 = 1; + a16 = 7; + a5 = 6; + return -1; + } else if((((a11==1)&&((a21==10)&&((a1==14)&&(!(a24==1)&&((a9==11)&&(input==4))))))&&((a26==1)||(((a17==2)&&((((a19==3)&&(!(a8==1)&&((a16==8)&&((a5==6)&&(a6==1)))))||(a26==1))&&(a20==1)))&&(a23==1))))){ + a7 = 0; + a28 = 1; + a16 = 7; + a5 = 4; + a12 = 1; + a1 = 12; + a19 = 1; + a9 = 7; + return -1; + } else if((((((a3==1)&&((!(a18==1)&&((((input==5)&&(a1==13))&&(a28==1))&&(a5==4)))&&(a16==8)))&&!(a0==1))&&(a23==1))&&((a21==10)&&((a9==11)&&((a7==1)||(((a17==2)&&((a2==1)&&!(a20==1)))&&(a19==3))))))){ + a6 = 1; + a16 = 7; + a9 = 7; + a19 = 1; + a14 = 0; + a20 = 1; + a27 = 0; + a1 = 12; + return -1; + } else if((((!(a23==1)||((a1==13)&&((!(a6==1)||(!(a0==1)&&((!(a13==1)||(a2==1))&&(a23==1))))&&(a5==4))))&&(a21==12))&&(((!(a24==1)&&((((input==4)&&(a9==11))&&(a17==2))&&(a19==2)))&&(a20==1))&&(a16==10)))){ + a16 = 7; + a9 = 7; + a12 = 1; + a19 = 1; + a21 = 10; + a2 = 1; + a1 = 12; + a14 = 0; + return -1; + } else if(((!(a24==1)&&(((a16==9)&&((a13==1)&&(((input==4)&&(((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))))&&(a11==1))))&&(a21==10)))&&(!(a6==1)||(!(a20==1)&&(((a1==13)&&((a19==3)&&(!(a13==1)||((a12==1)&&(a17==2)))))||!(a3==1)))))){ + a16 = 7; + a21 = 12; + a19 = 1; + a1 = 14; + a6 = 0; + a5 = 4; + a0 = 1; + a18 = 1; + a9 = 11; + return -1; + } else if((((a17==2)&&(!(a26==1)&&((a23==1)&&(!(a0==1)&&((a9==9)&&(!(a4==1)&&((input==1)&&((a5==4)||(a5==5)))))))))&&((!(a27==1)&&(!(a20==1)&&((a21==11)&&((!(a7==1)&&((a28==1)&&(a16==9)))&&(a1==12)))))&&(a19==5)))){ + if((a29==1)){ + a21 = 10; + a26 = 1; + a1 = 13; + a19 = 1; + a29 = 0; + a5 = 6; + a16 = 7; + a12 = 0; + a20 = 1; + }else{ + a1 = 13; + a16 = 7; + a15 = 0; + a20 = 1; + a19 = 1; + a5 = 5; + a25 = 1; + a21 = 10; + a9 = 8; + } + return 26; + } else if(((((!(a20==1)&&((a17==2)&&((a1==12)&&((a23==1)&&(a11==1)))))&&(a16==9))&&!(a8==1))&&((a12==1)&&(((((a5==4)&&((((a19==3)&&(input==5))&&!(a7==1))&&(a9==8)))&&(a21==11))&&!(a27==1))&&(a11==1))))){ + if((a17==4)){ + a19 = 1; + a20 = 1; + a9 = 10; + a8 = 1; + a21 = 10; + a29 = 1; + a1 = 13; + a16 = 7; + }else{ + a5 = 6; + a20 = 1; + a22 = 0; + a9 = 7; + a16 = 7; + a7 = 1; + a19 = 1; + a21 = 10; + a29 = 1; + } + return -1; + } else if((((((a26==1)&&(!(a3==1)&&((a16==8)&&((a17==2)&&(((input==1)&&(a9==11))&&!(a12==1))))))&&(a1==12))&&(a21==11))&&((a5==4)&&(((a19==1)&&(!(a20==1)&&((!(a12==1)&&(a11==1))&&!(a12==1))))&&(a14==1))))){ + a25 = 0; + a1 = 13; + a15 = 0; + a21 = 10; + a16 = 9; + a20 = 1; + a19 = 5; + a13 = 0; + a5 = 6; + a9 = 10; + return 25; + } else if((((a20==1)&&(((a3==1)&&(((((a21==11)&&((a19==5)&&(((a1==14)&&(a5==5))&&(a9==11))))||((a21==11)&&((a19==5)&&(((a1==14)&&(a5==6))&&(a9==11)))))||((a21==12)&&((a19==1)&&(((a1==12)&&(a5==4))&&(a9==7)))))&&(input==4)))&&!(a8==1)))&&((a17==2)&&((a16==11)&&((!(a24==1)&&(((a12==1)&&(a3==1))||(a4==1)))&&!(a8==1)))))){ + a7 = 0; + a12 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + a1 = 12; + a19 = 1; + a23 = 1; + a21 = 10; + return -1; + } else if(((((a19==2)&&((a9==11)&&(((!(a2==1)||(!(a6==1)||(!(a20==1)&&(a12==1))))||!(a12==1))&&(a16==9))))&&(a17==2))&&((a12==1)&&((((a5==5)&&((a1==13)&&((input==1)&&(a21==11))))&&(a13==1))&&!(a27==1))))){ + a7 = 1; + a20 = 1; + a9 = 8; + a24 = 1; + a25 = 1; + a21 = 10; + a16 = 7; + a19 = 1; + return -1; + } else if((((((a19==1)&&((a28==1)||(a27==1)))&&(a1==12))&&(a20==1))&&((((!(a27==1)&&((((a9==8)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a12==1))&&(a16==9)))&&!(a4==1))&&!(a27==1)))&&!(a27==1))&&(a17==2))&&(a21==11)))){ + a19 = 5; + a16 = 8; + a9 = 11; + a5 = 5; + a0 = 0; + a6 = 1; + a1 = 14; + a23 = 1; + a21 = 12; + return 22; + } else if(((!(a27==1)&&(((a20==1)&&(!(a8==1)&&(((input==4)&&(a16==11))&&(a19==1))))&&(a1==12)))&&(((!(a28==1)||((a21==12)&&((a9==11)&&(((a17==2)&&((a3==1)&&!(a14==1)))&&(a5==5)))))&&(a23==1))||!(a13==1)))){ + a16 = 7; + a21 = 10; + a13 = 1; + a9 = 7; + a2 = 1; + a5 = 4; + a3 = 1; + return -1; + } else if((((a21==10)&&((((((((a2==1)&&(a16==7))||!(a2==1))&&(a19==4))&&!(a27==1))||!(a2==1))&&(a17==2))&&(a1==12)))&&(((((a20==1)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==5)))&&!(a26==1))&&!(a24==1))&&!(a7==1)))){ + a5 = 6; + a9 = 7; + a6 = 1; + a21 = 11; + a4 = 0; + a1 = 14; + a19 = 3; + a0 = 0; + return 23; + } else if((((a16==8)&&((a17==2)&&(!(a4==1)&&(((a23==1)&&(a21==11))||!(a2==1)))))&&(((((a1==14)&&(((a20==1)&&((a6==1)&&(((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&(a3==1))))&&!(a14==1)))&&!(a26==1))&&(a19==1))&&(a9==7)))){ + a12 = 1; + a19 = 4; + a27 = 0; + a16 = 7; + a9 = 9; + a20 = 0; + a5 = 6; + a24 = 0; + return 23; + } else if((((a16==9)&&(((a5==5)&&(input==4))&&(a12==1)))&&(((((a19==1)&&((!(a11==1)||((a9==8)&&(!(a7==1)&&(!(a14==1)&&(((a21==10)&&(a23==1))&&(a17==2))))))||!(a3==1)))&&(a1==13))&&(a23==1))&&(a20==1)))){ + a16 = 7; + a1 = 12; + a5 = 4; + a8 = 0; + a3 = 1; + a26 = 0; + a9 = 7; + return -1; + } else if((((a12==1)&&((a19==4)&&(!(a14==1)&&((a23==1)&&(((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a17==2))))))&&(((((((!(a14==1)&&((a9==7)&&(a11==1)))&&(a21==12))&&(a1==14))||(a0==1))&&(a20==1))&&(a16==10))&&(a2==1)))){ + a5 = 4; + a21 = 10; + a13 = 1; + a1 = 12; + a19 = 1; + a7 = 0; + a16 = 7; + return -1; + } else if((((!(a20==1)&&((((input==5)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10))))&&(a1==12))&&!(a27==1)))&&(a16==9))&&((a12==1)&&(((a17==2)&&(((!(a28==1)||(!(a23==1)||((a28==1)&&(a11==1))))||!(a11==1))&&(a21==11)))&&(a19==2))))){ + a19 = 4; + a11 = 0; + a16 = 10; + a12 = 0; + a21 = 10; + a20 = 1; + a9 = 8; + a5 = 5; + a24 = 1; + return 26; + } else if(((((a14==1)||((a2==1)&&((a9==7)&&((a16==8)&&(((a23==1)&&((a13==1)&&(a21==11)))&&(a19==1))))))&&(a11==1))&&(((a2==1)&&(((((input==4)&&(a17==2))&&!(a20==1))&&(a5==5))&&(a1==12)))&&(a13==1)))){ + a20 = 1; + a16 = 7; + a28 = 1; + a21 = 10; + a5 = 4; + a7 = 0; + a27 = 0; + return -1; + } else if(((((((a27==1)||((a19==1)&&(!(a2==1)||((a3==1)&&(a12==1)))))&&(a6==1))&&(a9==9))&&(a17==2))&&((a21==11)&&((((((a1==14)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6))))&&(a3==1))&&(a16==8))&&!(a8==1))&&(a20==1))))){ + a16 = 7; + a28 = 1; + a5 = 4; + a21 = 10; + a1 = 12; + a9 = 7; + a27 = 0; + a13 = 1; + return -1; + } else if((((a5==6)&&(((a20==1)&&((((a19==4)&&(input==1))&&(a16==11))&&!(a4==1)))&&!(a0==1)))&&(((a17==2)&&(!(a2==1)||((a21==12)&&((a9==8)&&(((!(a0==1)&&(a3==1))||(a14==1))&&(a1==14))))))||(a26==1)))){ + a19 = 1; + a8 = 0; + a1 = 12; + a28 = 1; + a5 = 4; + a21 = 10; + a3 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if(((!(a20==1)&&((a19==1)&&(((a12==1)&&((a0==1)||(((a28==1)||(a24==1))&&(a3==1))))&&(a16==10))))&&(((((a21==10)&&((a13==1)&&(((input==4)&&((a5==4)||(a5==5)))&&(a13==1))))&&(a9==7))&&(a1==12))&&(a17==2)))){ + a9 = 10; + a15 = 1; + a13 = 0; + a1 = 14; + a29 = 0; + a5 = 6; + a16 = 8; + return -1; + } else if(((((a21==12)&&((a23==1)&&((a1==14)&&((a19==1)&&((!(a20==1)&&(input==6))&&!(a8==1))))))&&(a16==10))&&((a5==5)&&((a17==2)&&((!(a23==1)||((!(a6==1)||((a3==1)||!(a12==1)))&&(a9==11)))&&!(a0==1)))))){ + if((a1==13)){ + a0 = 1; + a16 = 7; + a1 = 12; + a5 = 4; + a20 = 1; + a21 = 10; + a14 = 1; + a26 = 1; + }else{ + a22 = 1; + a25 = 0; + a5 = 6; + a21 = 11; + a19 = 2; + a16 = 8; + } + return -1; + } else if(((((a8==1)&&(((a24==1)&&(((a12==1)&&(a1==13))&&(a27==1)))&&(a18==1)))&&(a16==7))&&((((a17==2)&&((((a19==1)&&((input==5)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))))&&!(a20==1))&&!(a12==1)))&&(a21==12))&&(a26==1)))){ + a15 = 1; + a5 = 4; + a21 = 10; + a14 = 1; + a20 = 1; + a19 = 2; + a1 = 12; + a4 = 1; + a9 = 10; + return 25; + } else if((((a17==2)&&((a16==7)&&((((a1==13)&&(((a3==1)&&(((a5==4)||(a5==5))&&(input==6)))&&!(a14==1)))&&!(a7==1))&&(a9==11))))&&((a21==12)&&((((((a3==1)&&(a3==1))&&(a20==1))&&(a28==1))||(a14==1))&&(a19==1))))){ + if((a18==1)){ + a5 = 5; + a11 = 1; + a20 = 0; + a8 = 0; + a0 = 0; + a9 = 9; + a1 = 14; + a19 = 4; + }else{ + a0 = 0; + a8 = 0; + a12 = 1; + a16 = 9; + a9 = 7; + a21 = 10; + a5 = 6; + } + return 26; + } else if(((((a8==1)||((a23==1)&&(a20==1)))&&!(a18==1))&&((a28==1)&&((a23==1)&&((a16==10)&&((((a17==2)&&(((a21==11)&&((((a9==7)&&((a1==13)&&(a5==5)))||(((a9==11)&&((a1==12)&&(a5==6)))||(((a5==4)&&(a1==13))&&(a9==7))))&&(input==4)))&&!(a8==1)))&&(a19==5))&&!(a27==1))))))){ + a12 = 1; + a1 = 12; + a19 = 1; + a24 = 0; + a16 = 7; + a9 = 7; + a21 = 10; + a26 = 0; + a5 = 4; + return -1; + } else if((((a21==10)&&((a16==9)&&(((!(a27==1)&&(((((input==4)&&(((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))))&&(a13==1))&&(a20==1))&&(a13==1)))&&(a19==4))&&!(a24==1))))&&((((a17==2)&&((a3==1)&&!(a8==1)))&&(a1==13))&&(a11==1)))){ + a1 = 14; + a12 = 1; + a5 = 4; + a16 = 8; + a4 = 0; + a21 = 12; + a9 = 7; + return 25; + } else if((((a20==1)&&(((a13==1)&&!(a8==1))&&(a1==13)))&&((a17==2)&&(((!(a7==1)&&(((a11==1)&&((((a19==4)&&((input==6)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))))&&!(a18==1))&&!(a24==1)))&&(a16==10)))&&(a13==1))&&(a21==12))))){ + a19 = 1; + a16 = 7; + a23 = 1; + a1 = 12; + a12 = 1; + a5 = 4; + a6 = 1; + a9 = 7; + a21 = 10; + return -1; + } else if((((((a11==1)&&((!(a4==1)&&(((((a1==14)&&(((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a5==4)&&(a9==8)))&&(input==5)))&&!(a0==1))&&!(a0==1))&&(a17==2)))&&(a21==12)))&&(a19==1))&&(a16==9))&&((!(a20==1)&&(!(a6==1)||(a2==1)))&&(a13==1)))){ + if((a25==1)){ + a5 = 5; + a16 = 7; + a21 = 10; + a29 = 0; + a20 = 1; + a23 = 0; + a9 = 8; + }else{ + a16 = 7; + a13 = 0; + a9 = 9; + a5 = 6; + a20 = 1; + a1 = 13; + a21 = 10; + a10 = 0; + } + return -1; + } else if(((((a20==1)&&((a3==1)&&((a17==2)&&((a28==1)&&((input==1)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))))))&&(a19==1))&&(((a12==1)&&((a6==1)&&((a21==12)&&(!(a2==1)||((a1==14)&&((a12==1)&&(a2==1)))))))&&(a16==10)))){ + a16 = 7; + a19 = 2; + a9 = 9; + a1 = 13; + a27 = 0; + a23 = 1; + a21 = 10; + a5 = 4; + a8 = 0; + return 25; + } else if((((a21==11)&&((a19==1)&&(((!(a14==1)&&((a1==14)&&(!(a2==1)||(((a23==1)&&(a17==2))&&(a2==1)))))&&!(a0==1))||(a7==1))))&&((a12==1)&&(((a16==10)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==4)))&&(a20==1))))){ + a9 = 7; + a14 = 0; + a5 = 4; + a16 = 7; + a1 = 12; + a27 = 0; + a21 = 10; + a0 = 0; + return -1; + } else if(((((a24==1)||((a18==1)||(a28==1)))&&(a17==2))&&((a19==3)&&((a16==10)&&((a23==1)&&((!(a7==1)&&(!(a24==1)&&(((((input==3)&&(((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))))&&(a21==12))&&(a1==12))&&(a20==1))))&&!(a26==1))))))){ + a18 = 0; + a19 = 1; + a9 = 7; + a5 = 4; + a28 = 1; + a16 = 7; + a21 = 10; + return -1; + } else if((((!(a26==1)&&(!(a24==1)&&((a12==1)&&((((a9==10)&&((a20==1)&&(((input==3)&&((a5==5)||(a5==6)))&&(a19==5))))&&(a21==11))&&(a17==2)))))&&(a1==12))&&((a16==9)&&((a27==1)||(((a6==1)&&(a3==1))||!(a28==1)))))){ + a5 = 4; + a0 = 0; + a9 = 7; + a21 = 10; + a16 = 7; + a26 = 0; + a19 = 1; + a2 = 1; + return -1; + } else if((((a6==1)&&(!(a26==1)&&((((a21==10)&&(a23==1))&&!(a4==1))&&(a9==10))))&&(((a20==1)&&((a16==9)&&(!(a27==1)&&((a23==1)&&((a19==2)&&((((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a7==1))&&(a17==2)))))))&&(a1==12)))){ + a9 = 7; + a4 = 0; + a24 = 0; + a16 = 10; + a23 = 1; + a1 = 14; + a5 = 5; + return 21; + } else if((((a21==10)&&((a6==1)&&((a19==5)&&((a1==14)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==3))))))&&(((a17==2)&&(((a12==1)&&((a16==10)&&(((a18==1)||(!(a13==1)||(a23==1)))||!(a13==1))))&&!(a20==1)))&&!(a27==1)))){ + a20 = 1; + a19 = 1; + a5 = 6; + a10 = 1; + a9 = 9; + a29 = 1; + a1 = 12; + a16 = 7; + a8 = 1; + return -1; + } else if(((((!(a20==1)&&((((a1==13)&&(!(a24==1)&&(a28==1)))&&(a21==12))&&(a2==1)))||(a14==1))&&(a16==7))&&(((a5==5)&&((a2==1)&&(!(a7==1)&&((((a19==4)&&(input==5))&&!(a0==1))&&(a9==10)))))&&(a17==2)))){ + a19 = 1; + a9 = 7; + a6 = 1; + a13 = 1; + a5 = 4; + a1 = 12; + a20 = 1; + a21 = 10; + a24 = 0; + return -1; + } else if((((a2==1)&&((a19==5)&&(!(a24==1)&&((a21==11)&&((a9==11)&&(((a28==1)&&(((a5==4)||(a5==5))&&(input==4)))&&(a16==8)))))))&&((((a20==1)&&((a1==13)&&(((a17==2)&&(a11==1))||(a14==1))))&&!(a27==1))&&!(a24==1)))){ + a5 = 4; + a1 = 12; + a21 = 10; + a23 = 1; + a28 = 1; + a19 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if((((a21==10)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&(a19==1))&&!(a2==1)))&&((a20==1)&&(!(a28==1)&&((a26==1)&&((a17==2)&&((!(a11==1)&&((a9==8)&&((((a11==1)&&(a1==14))&&(a24==1))&&(a16==10))))&&!(a23==1)))))))){ + a9 = 11; + a5 = 4; + a1 = 12; + a25 = 0; + a16 = 7; + a19 = 2; + a6 = 0; + a7 = 1; + return 26; + } else if((((a1==13)&&(!(a0==1)&&((a9==7)&&((a2==1)&&(((a23==1)&&((a5==5)&&(input==6)))&&(a2==1))))))&&(((a17==2)&&(((((a20==1)&&((a24==1)||(a2==1)))&&(a12==1))&&(a19==3))&&(a21==10)))&&(a16==8)))){ + if((a21==11)){ + a11 = 1; + a1 = 12; + a9 = 8; + a16 = 7; + a21 = 11; + a13 = 1; + a20 = 0; + a5 = 4; + a14 = 0; + }else{ + a28 = 1; + a21 = 12; + a4 = 0; + a19 = 4; + a16 = 9; + a1 = 14; + a9 = 11; + a18 = 0; + } + return 26; + } else if((((a11==1)&&((a19==2)&&((((a20==1)&&((((a13==1)||(a27==1))||(a7==1))&&(a17==2)))&&(a16==11))&&(a1==12))))&&((!(a18==1)&&((((((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))&&(input==5))&&(a21==10))&&!(a0==1)))&&!(a8==1)))){ + a0 = 0; + a21 = 11; + a1 = 13; + a5 = 6; + a9 = 7; + a6 = 1; + a7 = 0; + return 21; + } else if((((((!(a28==1)||((a20==1)&&(((a6==1)&&(a21==12))||!(a23==1))))&&(a11==1))&&(a16==9))&&(a1==13))&&((a17==2)&&((((a5==4)&&((a12==1)&&(!(a18==1)&&((a9==9)&&(input==1)))))&&!(a18==1))&&(a19==3))))){ + a13 = 1; + a9 = 7; + a21 = 10; + a1 = 12; + a28 = 1; + a16 = 7; + a26 = 0; + a19 = 1; + return -1; + } else if((((a11==1)&&((((!(a12==1)||((a2==1)&&((a16==8)&&(a2==1))))&&!(a26==1))&&(a1==13))&&(a9==7)))&&((a11==1)&&(((((((input==5)&&!(a20==1))&&(a17==2))&&(a21==12))&&(a19==3))&&(a12==1))&&(a5==4))))){ + if((a28==1)){ + a0 = 1; + a22 = 1; + a5 = 6; + a20 = 1; + a21 = 10; + a1 = 12; + a16 = 7; + a19 = 2; + a27 = 1; + }else{ + a9 = 9; + a6 = 0; + a20 = 1; + a1 = 14; + a0 = 1; + a26 = 1; + a16 = 9; + } + return -1; + } else if((((!(a18==1)&&(!(a4==1)&&((a28==1)&&((a9==7)&&(((a5==4)||(a5==5))&&(input==1))))))&&!(a24==1))&&(((a4==1)||((a21==10)&&((a19==5)&&((a1==12)&&((a17==2)&&(((a6==1)&&(a16==9))&&!(a20==1)))))))&&!(a24==1)))){ + a19 = 1; + a1 = 14; + a20 = 1; + a22 = 1; + a16 = 7; + a23 = 0; + a9 = 11; + a5 = 6; + a10 = 1; + return -1; + } else if((((((a1==13)&&(!(a8==1)&&((((((a5==4)||(a5==5))&&(input==3))&&(a19==4))&&!(a7==1))&&!(a4==1))))&&(a20==1))&&(a28==1))&&(!(a0==1)&&((a16==10)&&((a7==1)||(((a17==2)&&((a11==1)&&(a9==7)))&&(a21==12))))))){ + a14 = 0; + a3 = 1; + a21 = 10; + a5 = 5; + a20 = 0; + a0 = 0; + a9 = 8; + a19 = 5; + a16 = 8; + return -1; + } else if((((a9==9)&&((a1==13)&&(((a16==7)&&((a23==1)&&(a21==11)))&&(a17==2))))&&((a13==1)&&((!(a0==1)&&(((((a12==1)&&(((input==1)&&((a5==4)||(a5==5)))&&(a19==1)))&&(a12==1))&&!(a7==1))&&!(a20==1)))&&!(a26==1))))){ + a9 = 8; + a6 = 1; + a5 = 5; + a27 = 0; + a19 = 4; + a2 = 1; + a1 = 12; + a16 = 8; + return 21; + } else if(((((a0==1)&&(((input==4)&&(((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))))&&(a4==1)))&&(a20==1))&&((a16==7)&&(!(a11==1)&&((a19==3)&&(((((a24==1)&&(!(a6==1)&&((a28==1)&&!(a6==1))))&&(a21==12))&&(a1==12))&&(a17==2))))))){ + a16 = 8; + a9 = 8; + a19 = 4; + a5 = 4; + a28 = 0; + a10 = 0; + a24 = 1; + return -1; + } else if((((!(a18==1)&&((a12==1)&&((a21==10)&&(((a19==2)&&((a28==1)&&!(a18==1)))&&(a9==10)))))&&!(a20==1))&&((!(a14==1)&&(((a28==1)&&(((a17==2)&&((input==6)&&(a1==14)))&&!(a0==1)))&&(a16==9)))&&(a5==6)))){ + a9 = 9; + a21 = 12; + a18 = 1; + a24 = 1; + a19 = 1; + a26 = 1; + a5 = 4; + return -1; + } else if(((((a0==1)||((a12==1)&&((!(a6==1)||(((a6==1)&&(a5==5))&&(a16==10)))||!(a12==1))))&&!(a20==1))&&(((a21==10)&&(!(a4==1)&&(((!(a7==1)&&((input==6)&&(a19==1)))&&(a1==14))&&(a9==11))))&&(a17==2)))){ + if((a3==1)){ + a18 = 1; + a3 = 0; + a22 = 1; + a20 = 1; + a9 = 10; + a16 = 7; + }else{ + a5 = 4; + a1 = 13; + a22 = 1; + a20 = 1; + a9 = 10; + a13 = 0; + a16 = 7; + } + return 21; + } else if(((((a13==1)&&(((((((a5==4)&&(a1==14))&&(a9==7))||(((a9==11)&&((a1==13)&&(a5==5)))||((a9==11)&&((a5==6)&&(a1==13)))))&&(input==1))&&(a11==1))&&(a19==3)))&&!(a14==1))&&((a16==8)&&(!(a4==1)&&(((a23==1)&&((a21==11)&&(((a23==1)&&(a23==1))&&(a17==2))))&&(a20==1)))))){ + a8 = 0; + a19 = 1; + a24 = 0; + a16 = 10; + a3 = 1; + a1 = 13; + a9 = 8; + a5 = 5; + return 23; + } else if((((!(a26==1)&&((!(a8==1)&&(!(a7==1)&&((input==3)&&((a5==5)||(a5==6)))))&&(a23==1)))&&!(a24==1))&&((a21==10)&&(((((a19==2)&&((a1==12)&&((a9==8)&&((a23==1)&&(a16==8)))))||(a0==1))&&!(a20==1))&&(a17==2))))){ + a6 = 1; + a9 = 7; + a5 = 6; + a20 = 1; + a19 = 3; + a16 = 7; + a27 = 0; + a7 = 0; + return 26; + } else if((((a9==9)&&(((a5==6)&&(((a1==13)&&((a11==1)&&((a11==1)&&((input==1)&&(a20==1)))))&&!(a14==1)))&&(a19==3)))&&((!(a26==1)&&(((a16==10)&&(!(a26==1)&&((a17==2)&&(a2==1))))&&(a3==1)))&&(a21==10)))){ + a19 = 1; + a1 = 12; + a2 = 1; + a3 = 1; + a5 = 4; + a16 = 7; + a9 = 7; + a0 = 0; + return -1; + } else if(((!(a14==1)&&((a6==1)&&(((((a1==12)&&((a19==5)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1))))&&(a17==2))&&(a20==1))&&!(a24==1))))&&((((a9==10)&&((a4==1)||(((a21==12)&&(a12==1))&&!(a4==1))))&&(a16==9))||(a27==1)))){ + a9 = 7; + a21 = 10; + a16 = 7; + a0 = 0; + a23 = 1; + a19 = 1; + a14 = 0; + a5 = 4; + return -1; + } else if(((((!(a27==1)&&(((a28==1)&&!(a24==1))||(a27==1)))&&(a9==7))&&(a16==10))&&(((((((!(a20==1)&&((((a5==5)||(a5==6))&&(input==5))&&(a19==3)))&&(a2==1))&&!(a27==1))&&(a1==12))&&!(a4==1))&&(a21==10))&&(a17==2)))){ + a5 = 5; + a9 = 11; + a1 = 14; + a8 = 1; + a20 = 1; + a16 = 7; + a19 = 1; + a28 = 0; + a26 = 1; + return -1; + } else if((((((a8==1)||((((a19==4)&&(a23==1))&&(a9==8))&&!(a20==1)))&&(a3==1))||!(a12==1))&&(!(a4==1)&&((!(a4==1)&&((((((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a17==2))&&(a16==7))&&(a1==12))&&(a21==12)))&&(a6==1))))){ + a16 = 8; + a20 = 1; + a8 = 0; + a5 = 6; + a19 = 3; + a0 = 0; + a21 = 10; + a1 = 14; + return 21; + } else if(((((a16==7)&&(((a24==1)||((a23==1)&&(a12==1)))||!(a23==1)))&&(a2==1))&&(((a3==1)&&((!(a27==1)&&(((((a21==12)&&((a20==1)&&(input==1)))&&(a19==2))&&(a9==7))&&(a5==5)))&&(a17==2)))&&(a1==13)))){ + a8 = 0; + a21 = 10; + a19 = 1; + a1 = 12; + a12 = 1; + a5 = 4; + return -1; + } else if((((!(a2==1)||((a11==1)&&(a1==12)))&&!(a14==1))&&(((a19==4)&&((!(a20==1)&&((a28==1)&&(((a17==2)&&((a16==10)&&(((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==4))&&!(a0==1))))&&(a11==1))))&&(a21==11)))&&!(a14==1)))){ + if((a22==1)){ + a19 = 5; + a0 = 1; + a9 = 10; + a16 = 9; + a1 = 14; + a21 = 12; + a23 = 0; + a7 = 1; + a5 = 4; + }else{ + a18 = 1; + a21 = 10; + a10 = 0; + a2 = 0; + a1 = 13; + a20 = 1; + a19 = 1; + a5 = 5; + a16 = 7; + a9 = 7; + } + return -1; + } else if((((a1==14)&&((a21==10)&&((a20==1)&&((a26==1)||((a9==7)&&((a3==1)&&(a12==1)))))))&&(((((a5==5)&&((a12==1)&&(!(a14==1)&&(((a17==2)&&(input==4))&&(a28==1)))))&&!(a26==1))&&(a16==11))&&(a19==3)))){ + a5 = 4; + a1 = 12; + a16 = 7; + a2 = 1; + a7 = 0; + a19 = 1; + a6 = 1; + return -1; + } else if(((((a19==4)&&((((input==1)&&(a5==6))&&(a1==12))&&(a0==1)))&&(a4==1))&&(!(a11==1)&&((((a16==10)&&((a17==2)&&(((a20==1)&&(((a3==1)&&(a0==1))&&(a9==10)))&&(a4==1))))&&(a21==11))&&(a14==1))))){ + a12 = 0; + a19 = 1; + a27 = 1; + a16 = 7; + a5 = 5; + a9 = 7; + a29 = 1; + a21 = 10; + return -1; + } else if(((((!(a27==1)&&((a13==1)&&((a2==1)&&!(a20==1))))&&(a13==1))&&!(a18==1))&&((((((a16==9)&&((((((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&(input==4))&&(a21==11))&&(a1==14)))&&(a3==1))&&!(a8==1))&&(a17==2))&&(a19==5)))){ + a9 = 7; + a5 = 5; + a20 = 1; + a3 = 0; + a21 = 10; + a28 = 0; + a19 = 1; + a14 = 1; + a1 = 12; + a16 = 7; + return -1; + } else if((((((a6==1)&&((((a23==1)&&((a17==2)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==5))))&&!(a14==1))&&(a3==1)))&&(a23==1))&&!(a26==1))&&((((a20==1)&&((a21==10)&&((a3==1)&&(a19==4))))&&(a1==13))&&(a16==9)))){ + a0 = 0; + a9 = 9; + a21 = 11; + a1 = 14; + a4 = 0; + a14 = 0; + a5 = 6; + return 21; + } else if((((a19==1)&&((a17==2)&&((a16==7)&&((a21==12)&&(((a20==1)&&(a23==1))&&!(a8==1))))))&&((a9==11)&&((a23==1)&&((a5==5)&&((((a12==1)&&((a23==1)&&((a1==14)&&(input==4))))&&(a3==1))&&!(a26==1))))))){ + a5 = 4; + a9 = 7; + a1 = 12; + a8 = 0; + a21 = 10; + a11 = 1; + a7 = 0; + return -1; + } else if((((((a7==1)||((a2==1)&&((((a1==12)&&(a11==1))&&!(a20==1))&&(a19==2))))||!(a6==1))&&!(a0==1))&&(((a5==5)&&((a21==11)&&(!(a7==1)&&(((a16==8)&&((input==5)&&(a17==2)))&&(a9==9)))))&&(a11==1)))){ + a0 = 0; + a12 = 1; + a19 = 5; + a16 = 9; + a1 = 14; + a5 = 4; + a11 = 1; + a9 = 11; + a20 = 1; + return 21; + } else if((((!(a24==1)&&((((!(a24==1)&&((((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11)))&&(input==3))&&(a1==12)))&&(a20==1))&&(a17==2))&&(a21==12)))&&!(a26==1))&&(((a24==1)||((a19==5)&&(((a16==11)&&(a6==1))&&(a13==1))))||(a0==1)))){ + a16 = 7; + a21 = 10; + a19 = 1; + a9 = 7; + a8 = 0; + a24 = 0; + a5 = 4; + return -1; + } else if(((((((((a6==1)&&(a18==1))&&(a4==1))&&(a17==2))&&(a16==7))&&(a20==1))&&(a7==1))&&((a27==1)&&((a27==1)&&((a21==12)&&(!(a2==1)&&((input==5)&&(((((a5==5)&&(a1==12))&&(a9==7))&&(a19==5))||(((a19==4)&&((a9==11)&&((a1==14)&&(a5==6))))||(((a9==7)&&((a1==12)&&(a5==4)))&&(a19==5))))))))))){ + a1 = 13; + a28 = 0; + a5 = 4; + a16 = 11; + a15 = 1; + a19 = 3; + a9 = 8; + return 26; + } else if((((a20==1)&&((!(a26==1)&&(((input==5)&&(((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))))&&!(a27==1)))&&(a21==12)))&&(((a16==11)&&((a24==1)||((((a1==13)&&(((a13==1)&&(a19==2))||(a0==1)))||!(a3==1))&&!(a7==1))))&&(a17==2)))){ + a14 = 0; + a19 = 1; + a0 = 0; + a16 = 7; + a11 = 1; + a21 = 10; + a5 = 4; + a1 = 12; + a9 = 7; + return -1; + } else if(((((a21==10)&&((a16==9)&&((a2==1)&&((a3==1)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==1))))))&&(a19==3))&&((a0==1)||(!(a20==1)&&(((a3==1)&&((a23==1)&&((!(a6==1)||(a11==1))&&(a17==2))))&&(a1==12)))))){ + if((a17==3)){ + a10 = 0; + a1 = 13; + a5 = 6; + a15 = 1; + a19 = 5; + a9 = 11; + a16 = 7; + a27 = 1; + }else{ + a5 = 5; + a18 = 1; + a9 = 9; + a16 = 11; + a19 = 1; + a15 = 0; + a27 = 1; + } + return -1; + } else if(((((a16==11)&&(((a19==5)&&(!(a12==1)||(a13==1)))&&(a17==2)))&&(a9==11))&&((((((((((a21==10)&&(input==1))&&(a13==1))&&(a3==1))&&(a23==1))&&(a20==1))&&!(a18==1))&&(a5==4))&&(a11==1))&&(a1==13)))){ + a28 = 1; + a13 = 1; + a1 = 12; + a19 = 4; + a9 = 8; + a16 = 7; + a6 = 1; + return -1; + } else if(((!(a3==1)||((a11==1)&&((((a16==8)&&(a11==1))&&(a17==2))&&(a1==13))))&&((a19==4)&&((a28==1)&&((a21==12)&&(((!(a26==1)&&(((input==6)&&(((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))))&&!(a0==1)))&&(a20==1))&&(a23==1))))))){ + a9 = 9; + a18 = 0; + a16 = 10; + a28 = 1; + a1 = 12; + a11 = 1; + a5 = 5; + return 22; + } else if((((!(a23==1)||(((a7==1)||(a13==1))&&(a20==1)))&&!(a8==1))&&(!(a14==1)&&((a13==1)&&((a28==1)&&(((a17==2)&&(((((a19==1)&&(((a5==6)&&(a1==14))&&(a9==11)))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==2)))&&(input==4))&&(a21==12)))&&(a16==7))))))){ + a5 = 4; + a21 = 10; + a19 = 1; + a26 = 0; + a1 = 12; + a13 = 1; + a6 = 1; + a9 = 7; + return -1; + } else if((((a3==1)&&((a1==14)&&((a21==10)&&((a20==1)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==6))))))&&((a2==1)&&((((a19==1)&&(!(a13==1)||(((a16==8)&&((a13==1)&&(a23==1)))&&(a17==2))))&&!(a24==1))||(a4==1))))){ + a1 = 12; + a16 = 7; + a9 = 7; + a28 = 1; + a5 = 4; + a11 = 1; + return -1; + } else if(((!(a14==1)&&((a28==1)&&(!(a0==1)&&((!(a0==1)&&((a16==10)&&(!(a4==1)&&((a17==2)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6)))))))&&(a21==12)))))&&((a19==3)&&(((((a9==8)&&(a6==1))||!(a28==1))&&!(a20==1))&&(a1==13))))){ + if((a24==1)){ + a20 = 1; + a1 = 12; + a16 = 7; + a2 = 0; + a15 = 1; + a21 = 10; + a5 = 5; + a25 = 0; + a19 = 1; + }else{ + a25 = 0; + a13 = 0; + a7 = 1; + a20 = 1; + a21 = 10; + a1 = 12; + a19 = 2; + a16 = 7; + a5 = 5; + } + return -1; + } else if(((((a16==7)&&((a21==11)&&(((!(a23==1)||(!(a3==1)||((a2==1)&&(a3==1))))&&(a17==2))&&(a13==1))))||(a0==1))&&((a23==1)&&((!(a20==1)&&(((input==1)&&((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4))))&&(a19==4)))&&(a1==12))))){ + a20 = 1; + a5 = 5; + a2 = 1; + a13 = 1; + a19 = 2; + a16 = 9; + a21 = 10; + a1 = 13; + a9 = 10; + return 25; + } else if(((((a2==1)&&((a28==1)&&((a16==10)&&((a23==1)||(a8==1)))))&&(a5==5))&&((!(a20==1)&&((a9==11)&&((((a19==3)&&((a1==13)&&((a13==1)&&((a21==11)&&(input==6)))))&&!(a24==1))&&(a17==2))))&&(a28==1)))){ + a22 = 1; + a20 = 1; + a16 = 7; + a19 = 1; + a6 = 0; + a9 = 7; + a21 = 10; + a14 = 1; + return 25; + } else if((((((a23==1)&&(((a19==1)&&((a1==12)&&((input==6)&&(a20==1))))&&(a28==1)))&&(a3==1))&&(a5==6))&&(((a21==10)&&((a16==10)&&(!(a26==1)&&((a3==1)&&(((a14==1)||(a11==1))&&(a17==2))))))&&(a9==7)))){ + a9 = 11; + a16 = 9; + a5 = 4; + a19 = 5; + a13 = 1; + a21 = 11; + a27 = 0; + return 21; + } else if(((((!(a6==1)&&(((((a14==1)&&(!(a13==1)&&((a9==8)&&(!(a12==1)&&((a21==11)&&(input==3))))))&&!(a3==1))&&(a26==1))&&(a5==4)))&&(a1==14))&&(a16==7))&&((a19==1)&&((a17==2)&&(!(a20==1)&&(a11==1)))))){ + a29 = 0; + a13 = 0; + a1 = 12; + a5 = 6; + a20 = 1; + a24 = 1; + a21 = 10; + return -1; + } else if((((!(a20==1)&&((a3==1)&&((a12==1)&&((((a17==2)&&(((input==6)&&(a1==13))&&!(a14==1)))&&!(a27==1))&&(a16==7)))))&&(a9==11))&&((a5==5)&&(((a21==12)&&(!(a6==1)||((a11==1)&&(a11==1))))&&(a19==1))))){ + a21 = 10; + a12 = 1; + a1 = 12; + a5 = 4; + a28 = 1; + a20 = 1; + a23 = 1; + a9 = 7; + return -1; + } else if((((!(a20==1)&&((a19==4)&&((a8==1)||((a21==12)&&((a26==1)||((a28==1)&&(!(a8==1)&&(a6==1))))))))&&(a9==9))&&((a1==13)&&((a17==2)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a16==10))&&(a12==1))&&!(a0==1)))))){ + a24 = 1; + a13 = 0; + a10 = 1; + a1 = 12; + a19 = 2; + a20 = 1; + a5 = 6; + a16 = 7; + a21 = 10; + return 25; + } else if(((((a21==12)&&((a3==1)&&(!(a7==1)&&((a17==2)&&(((a6==1)||!(a23==1))&&(a3==1))))))&&!(a20==1))&&(((((input==5)&&((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==3))||((a19==4)&&(((a5==4)&&(a1==12))&&(a9==7)))))&&(a28==1))&&(a28==1))&&(a16==7)))){ + a5 = 4; + a19 = 1; + a4 = 0; + a9 = 7; + a18 = 0; + a7 = 0; + a21 = 10; + a20 = 1; + a1 = 12; + return -1; + } else if((((((a14==1)||((!(a14==1)&&((a16==7)&&((a20==1)&&(a3==1))))&&!(a4==1)))&&(a1==14))&&(a9==11))&&((a21==10)&&(((((!(a8==1)&&((input==5)&&(a19==5)))&&!(a27==1))&&(a5==6))&&(a13==1))&&(a17==2))))){ + a21 = 12; + a7 = 0; + a9 = 9; + a1 = 12; + a3 = 1; + return 25; + } else if((((!(a20==1)&&(((a11==1)&&(!(a0==1)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==1))))&&(a12==1)))&&(a1==14))&&(((a19==3)&&(!(a2==1)||((((a13==1)&&((a2==1)&&(a16==9)))||(a4==1))&&(a17==2))))&&(a21==10)))){ + if((a28==1)){ + a28 = 0; + a5 = 5; + a20 = 1; + a0 = 1; + a1 = 12; + a16 = 7; + a19 = 2; + a9 = 8; + a12 = 0; + }else{ + a19 = 2; + a26 = 1; + a9 = 11; + a16 = 7; + a1 = 12; + a5 = 6; + a8 = 1; + a2 = 0; + a20 = 1; + } + return -1; + } else if(((((a6==1)&&((a3==1)&&(((a12==1)&&(((((a9==8)&&((a20==1)&&(input==6)))&&(a21==12))&&!(a4==1))&&(a16==8)))&&!(a0==1))))&&(a19==5))&&((a1==14)&&((!(a11==1)||((a17==2)&&(a2==1)))&&(a5==6))))){ + a1 = 13; + a3 = 1; + a16 = 10; + a4 = 0; + a12 = 1; + return 26; + } else if(((((((((!(a0==1)&&(a28==1))&&(a16==8))&&(a28==1))||(a0==1))&&(a28==1))&&(a21==10))&&(a19==4))&&(((a28==1)&&((a1==13)&&(((a17==2)&&(((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8)))&&(input==6)))&&(a20==1))))&&(a13==1)))){ + a19 = 1; + a3 = 1; + a11 = 1; + a28 = 1; + a16 = 7; + a9 = 7; + a1 = 12; + a5 = 4; + return -1; + } else if(((((((((a23==1)||!(a28==1))&&(a19==3))||(a14==1))&&(a28==1))&&(a16==9))&&(a21==11))&&(((a17==2)&&(!(a14==1)&&((!(a0==1)&&(!(a20==1)&&((input==4)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))))&&!(a0==1))))&&(a1==13)))){ + a23 = 0; + a16 = 7; + a9 = 9; + a21 = 10; + a22 = 0; + a5 = 6; + a6 = 0; + a20 = 1; + a19 = 1; + return 21; + } else if(((!(a20==1)&&(((!(a14==1)&&((((input==3)&&((a5==5)||(a5==6)))&&!(a8==1))&&(a9==11)))&&(a21==11))&&!(a24==1)))&&(((a19==4)&&(((a26==1)||(((a16==10)&&(!(a12==1)||(a11==1)))||(a8==1)))&&(a17==2)))&&(a1==13)))){ + a9 = 10; + a19 = 1; + a5 = 5; + a14 = 1; + a21 = 10; + a13 = 0; + a1 = 14; + a16 = 9; + a20 = 1; + return -1; + } else if((((!(a14==1)&&((((a13==1)&&((input==4)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11)))))&&(a1==14))&&(a21==12)))&&(a23==1))&&((((a17==2)&&((a20==1)&&((((a6==1)&&(a19==2))&&(a16==11))&&!(a18==1))))&&!(a7==1))&&!(a24==1)))){ + a1 = 12; + a21 = 10; + a5 = 4; + a19 = 1; + a9 = 7; + a26 = 0; + a16 = 7; + a6 = 1; + a28 = 1; + return -1; + } else if(((((a2==1)&&((!(a0==1)&&(!(a20==1)&&(((a21==10)&&(a11==1))&&(a19==4))))&&!(a24==1)))&&!(a7==1))&&(!(a8==1)&&(((a16==7)&&(((a1==13)&&(((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4)))&&(input==3)))&&(a17==2)))&&!(a8==1))))){ + a20 = 1; + a1 = 12; + a9 = 7; + a5 = 4; + a11 = 1; + a13 = 1; + a2 = 1; + a19 = 1; + return -1; + } else if((((((a20==1)&&(((a19==2)&&(input==4))&&(a5==6)))&&!(a8==1))&&(a17==2))&&((((((!(a26==1)&&(!(a4==1)&&(((a12==1)&&!(a8==1))&&(a13==1))))&&(a1==12))&&(a21==11))||(a4==1))&&(a16==10))&&(a9==10)))){ + a5 = 4; + a9 = 7; + a18 = 0; + a6 = 1; + a19 = 1; + a21 = 10; + a16 = 7; + return -1; + } else if((((!(a7==1)&&(((((a0==1)||((a26==1)||(a2==1)))||(a4==1))&&(a17==2))&&(a1==13)))&&!(a20==1))&&((a21==12)&&(((((!(a14==1)&&(((a5==5)||(a5==6))&&(input==3)))&&(a19==4))&&(a16==9))&&(a9==10))&&(a3==1))))){ + a2 = 0; + a5 = 5; + a25 = 1; + a9 = 9; + a12 = 0; + a1 = 12; + a16 = 10; + a19 = 1; + return -1; + } else if((((a16==11)&&(((a21==10)&&((a9==10)&&((((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a2==1))&&(a23==1))))&&(a1==14)))&&(((a19==2)&&(!(a20==1)&&(!(a12==1)||((!(a3==1)||((a28==1)&&(a23==1)))&&(a2==1)))))&&(a17==2)))){ + a11 = 0; + a6 = 0; + a22 = 0; + a5 = 4; + a20 = 1; + a19 = 5; + a1 = 12; + a9 = 11; + a16 = 9; + return -1; + } else if((((a21==10)&&(((!(a4==1)&&(((a17==2)&&((a16==10)&&((a19==5)&&(a2==1))))&&!(a20==1)))&&(a9==7))&&(a13==1)))&&(!(a7==1)&&((a2==1)&&(((!(a8==1)&&((input==5)&&((a5==5)||(a5==6))))&&!(a8==1))&&(a1==14)))))){ + a18 = 1; + a19 = 1; + a20 = 1; + a5 = 5; + a16 = 7; + a7 = 1; + a14 = 1; + return -1; + } else if(((((a12==1)&&((a16==8)&&(((a17==2)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5)))&&!(a20==1))))&&(a21==10))&&(((((((a12==1)&&(((a6==1)&&(a9==10))||!(a11==1)))||!(a12==1))&&(a19==1))||(a14==1))&&(a1==14))||!(a12==1)))){ + a16 = 10; + a4 = 0; + a19 = 3; + a21 = 12; + a1 = 13; + a26 = 0; + a27 = 0; + a20 = 1; + a9 = 8; + a5 = 4; + return 25; + } else if((((a16==9)&&((((((a28==1)||(a24==1))&&(a21==12))&&!(a8==1))||(a18==1))&&(a1==12)))&&((a9==10)&&(((((a3==1)&&((a19==5)&&(((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a17==2))))&&!(a0==1))&&(a20==1))&&(a13==1))))){ + a9 = 7; + a5 = 4; + a24 = 0; + a23 = 1; + a2 = 1; + a21 = 10; + a19 = 1; + a16 = 7; + return -1; + } else if(((!(a13==1)||((a1==14)&&(!(a20==1)&&(((a7==1)||((a13==1)&&(a21==12)))||(a0==1)))))&&(!(a24==1)&&(!(a8==1)&&((a19==4)&&(((((input==3)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&!(a27==1))&&(a17==2))&&(a16==9))))))){ + if((a10==1)){ + a16 = 8; + a9 = 9; + a20 = 1; + a25 = 1; + a1 = 12; + a22 = 1; + a19 = 1; + a5 = 6; + }else{ + a15 = 0; + a5 = 4; + a18 = 1; + a9 = 10; + a16 = 10; + a19 = 3; + a21 = 11; + a25 = 1; + } + return -1; + } else if((((((((input==3)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&!(a0==1))&&!(a24==1))&&!(a4==1))&&(a12==1))&&(((a1==14)&&(((a21==11)&&(((((a28==1)&&(a19==5))||(a8==1))&&(a6==1))&&(a20==1)))&&(a16==10)))&&(a17==2)))){ + a7 = 0; + a24 = 0; + a21 = 10; + a9 = 9; + a13 = 1; + a5 = 5; + a16 = 7; + a1 = 13; + a19 = 2; + return -1; + } else if((((((((a23==1)&&(a16==7))&&(a21==12))||(a14==1))&&(a19==4))&&!(a20==1))&&((!(a27==1)&&(!(a27==1)&&(((((a1==14)&&((a17==2)&&((a9==9)&&(input==3))))&&(a2==1))&&(a23==1))&&!(a0==1))))&&(a5==5)))){ + a3 = 1; + a9 = 7; + a5 = 4; + a19 = 1; + a20 = 1; + a1 = 12; + a13 = 1; + a8 = 0; + a21 = 10; + return -1; + } else if(((((!(a23==1)||(((a19==2)&&(!(a13==1)||(a6==1)))&&(a1==14)))&&!(a14==1))&&(a16==10))&&((((!(a7==1)&&(!(a20==1)&&((a23==1)&&(!(a8==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5))))))&&(a9==9))&&(a21==12))&&(a17==2)))){ + a14 = 1; + a1 = 12; + a19 = 1; + a20 = 1; + a21 = 10; + a27 = 1; + a5 = 6; + a15 = 1; + a16 = 7; + return -1; + } else if((((((a2==1)&&(((a28==1)&&(!(a24==1)&&((input==1)&&(((((a5==5)&&(a1==12))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==12))))||(((a1==13)&&(a5==4))&&(a9==7))))))&&(a19==1)))&&(a21==10))&&(a12==1))&&((a17==2)&&((a16==10)&&((((a23==1)&&(a20==1))||!(a23==1))&&(a6==1)))))){ + a9 = 11; + a1 = 14; + a5 = 6; + a7 = 0; + a19 = 4; + a16 = 11; + a23 = 1; + return 23; + } else if((((((a1==13)&&((a16==8)&&(!(a0==1)&&(((a5==4)&&(a11==1))&&!(a18==1)))))&&(a9==7))&&(a21==11))&&((a20==1)&&(((a13==1)&&(((a2==1)&&((a28==1)&&((input==1)&&(a17==2))))&&(a23==1)))&&(a19==4))))){ + a14 = 0; + a19 = 1; + a3 = 1; + a1 = 12; + a21 = 10; + a26 = 0; + a16 = 7; + return -1; + } else if(((((!(a18==1)&&(((a18==1)||((!(a27==1)&&(a6==1))&&(a9==7)))&&(a12==1)))&&(a1==13))&&(a5==4))&&(((a19==2)&&((!(a24==1)&&((((a20==1)&&(input==6))&&(a17==2))&&!(a14==1)))&&(a21==11)))&&(a16==9)))){ + a19 = 3; + a13 = 1; + a24 = 0; + a5 = 6; + a21 = 10; + a1 = 12; + a18 = 0; + return 25; + } else if((((a13==1)&&((a16==10)&&((a20==1)&&(((((a28==1)&&((input==1)&&((a5==4)||(a5==5))))&&(a28==1))&&(a9==11))&&(a19==3)))))&&((a23==1)&&((((a21==10)&&((a17==2)&&(!(a24==1)&&(a2==1))))&&(a1==14))||(a0==1))))){ + a19 = 4; + a9 = 7; + a5 = 5; + a21 = 11; + a16 = 9; + a7 = 0; + a11 = 1; + a1 = 12; + a23 = 1; + return 21; + } else if((((a18==1)||((a16==9)&&((!(a11==1)||(a11==1))&&(a23==1))))&&(!(a14==1)&&((a21==11)&&(((a17==2)&&(((((a12==1)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==6)))&&(a20==1))&&(a1==12))&&!(a18==1)))&&(a19==5)))))){ + a21 = 12; + a1 = 13; + a0 = 0; + a5 = 4; + a27 = 0; + a16 = 10; + a26 = 0; + a9 = 8; + a19 = 2; + return 21; + } else if((((a19==3)&&(((((a23==1)&&(a21==11))&&!(a20==1))&&(a16==9))||!(a2==1)))&&(((a17==2)&&((!(a0==1)&&((((a5==5)&&(!(a18==1)&&((a9==8)&&(input==4))))&&!(a14==1))&&(a6==1)))&&(a11==1)))&&(a1==14)))){ + if((a25==1)){ + a19 = 1; + a15 = 0; + a8 = 1; + a1 = 13; + a16 = 7; + a9 = 9; + a21 = 10; + a5 = 4; + a20 = 1; + }else{ + a1 = 12; + a23 = 0; + a9 = 7; + a20 = 1; + a22 = 1; + a21 = 10; + a19 = 1; + a5 = 6; + a16 = 7; + a26 = 1; + } + return -1; + } else if((((a16==9)&&((((a1==14)&&((!(a6==1)||(a3==1))&&!(a7==1)))&&(a17==2))&&(a20==1)))&&((a3==1)&&((a19==4)&&(((!(a14==1)&&((a21==10)&&((((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6))))&&(input==4))))&&(a11==1))&&(a28==1)))))){ + a18 = 0; + a1 = 12; + a5 = 4; + a24 = 0; + a12 = 1; + a9 = 7; + a16 = 7; + a19 = 1; + return -1; + } else if((((a1==14)&&(((a23==1)&&((!(a4==1)&&(((input==1)&&(a16==7))&&(a20==1)))&&(a5==4)))&&!(a18==1)))&&((a9==7)&&((a17==2)&&((a21==12)&&(((a0==1)||((a19==4)&&(!(a14==1)&&(a6==1))))&&(a12==1))))))){ + a9 = 9; + a26 = 0; + a27 = 0; + a21 = 11; + a1 = 12; + a16 = 9; + a4 = 0; + a19 = 3; + return 25; + } else if((((a6==1)&&(!(a7==1)&&(((((a21==11)&&(((a5==4)||(a5==5))&&(input==3)))&&(a16==10))&&(a19==2))&&(a17==2))))&&((a26==1)||(!(a11==1)||((((a20==1)&&((!(a23==1)||(a28==1))&&(a9==11)))&&(a1==13))||!(a2==1)))))){ + a3 = 1; + a27 = 0; + a21 = 10; + a16 = 7; + a9 = 9; + a8 = 0; + a5 = 4; + return -1; + } else if(((!(a20==1)&&(!(a18==1)&&((a27==1)||((((a1==12)&&((a24==1)||(!(a18==1)&&((a11==1)&&(a17==2)))))&&!(a0==1))&&(a19==3)))))&&((a9==9)&&((((a16==11)&&(((a5==5)||(a5==6))&&(input==5)))&&!(a8==1))&&(a21==10))))){ + a5 = 4; + a9 = 7; + a20 = 1; + a24 = 1; + a11 = 0; + a19 = 5; + a1 = 13; + a21 = 11; + a16 = 9; + a28 = 0; + return 23; + } else if((((a2==1)&&((a17==2)&&(!(a20==1)&&((a21==11)&&(!(a2==1)||((a16==9)&&((a6==1)&&(a1==12))))))))&&((!(a4==1)&&(!(a26==1)&&((a9==10)&&(!(a8==1)&&(((input==5)&&((a5==5)||(a5==6)))&&(a19==1))))))&&(a13==1)))){ + a5 = 4; + a19 = 3; + a9 = 7; + a1 = 14; + a21 = 10; + a28 = 0; + a16 = 11; + a15 = 1; + a10 = 0; + return 25; + } else if((((a19==5)&&((!(a18==1)&&((((input==5)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&!(a24==1))&&!(a14==1)))&&(a16==7)))&&((((a20==1)&&(((!(a3==1)||((a6==1)&&(a21==11)))&&(a1==12))&&(a3==1)))&&(a6==1))&&(a17==2)))){ + a7 = 0; + a1 = 13; + a5 = 6; + a9 = 9; + a21 = 12; + a19 = 1; + a16 = 8; + a23 = 1; + a3 = 1; + return 21; + } else if((((a1==14)&&((a19==2)&&((a16==11)&&(!(a4==1)&&((((a12==1)&&(a9==7))||!(a11==1))&&(a17==2))))))&&((a23==1)&&((!(a8==1)&&(!(a18==1)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&!(a20==1))&&(a21==10))))&&!(a18==1))))){ + a16 = 10; + a21 = 12; + a23 = 0; + a2 = 0; + a5 = 6; + a20 = 1; + a15 = 0; + a9 = 9; + return -1; + } else if((((((a17==2)&&((a21==11)&&(!(a27==1)&&(a28==1))))&&(a13==1))&&(a6==1))&&(!(a7==1)&&((!(a0==1)&&((((a16==7)&&((((a9==11)&&((a5==6)&&(a1==12)))||(((a1==13)&&(a5==4))&&(a9==7)))&&(input==6)))&&(a3==1))&&!(a20==1)))&&(a19==1))))){ + a27 = 0; + a5 = 4; + a1 = 12; + a11 = 1; + a21 = 10; + a9 = 7; + a3 = 1; + a20 = 1; + return -1; + } else if((((a21==12)&&((a16==9)&&(!(a27==1)&&(((input==1)&&(a17==2))&&!(a7==1)))))&&(((a3==1)&&((a9==7)&&(!(a11==1)||((a1==13)&&(!(a20==1)&&((a5==5)&&(!(a4==1)&&((a3==1)&&(a19==4)))))))))&&!(a26==1)))){ + if((a14==1)){ + a13 = 0; + a23 = 0; + a5 = 4; + a9 = 10; + a21 = 10; + a16 = 7; + a24 = 1; + a20 = 1; + a19 = 1; + }else{ + a5 = 6; + a23 = 0; + a1 = 12; + a25 = 0; + a19 = 3; + a9 = 10; + a0 = 1; + a20 = 1; + } + return -1; + } else if(((!(a26==1)&&(((a2==1)&&((a3==1)&&(!(a26==1)&&((a19==5)&&((a1==13)&&((a17==2)&&(((((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6))))&&(input==4))&&!(a14==1))))))))&&(a20==1)))&&((((a2==1)||(a26==1))&&(a16==10))&&(a21==11)))){ + a28 = 1; + a6 = 1; + a19 = 1; + a9 = 7; + a1 = 12; + a24 = 0; + a16 = 7; + a5 = 4; + a21 = 10; + return -1; + } else if(((!(a23==1)&&(((a9==10)&&(((a5==5)&&(input==4))&&(a27==1)))&&(a20==1)))&&((!(a11==1)&&((((((a27==1)&&(!(a23==1)&&((a1==14)&&(a3==1))))&&(a17==2))&&(a16==11))&&(a0==1))&&(a19==2)))&&(a21==10)))){ + a9 = 9; + a21 = 11; + a28 = 0; + a14 = 1; + a19 = 4; + a16 = 7; + a11 = 0; + a1 = 12; + return -1; + } else if((((((!(a20==1)&&(!(a11==1)||((a28==1)||!(a13==1))))&&(a21==12))||!(a28==1))||(a26==1))&&(!(a14==1)&&(((a17==2)&&((a16==8)&&((a19==5)&&((a1==14)&&((input==1)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))))))&&!(a8==1))))){ + if((a28==1)){ + a3 = 0; + a28 = 0; + a20 = 1; + a7 = 1; + a16 = 7; + a9 = 10; + a21 = 10; + a5 = 6; + a1 = 12; + a19 = 2; + }else{ + a21 = 10; + a19 = 1; + a16 = 7; + a4 = 1; + a5 = 6; + a29 = 1; + a9 = 7; + a22 = 1; + a20 = 1; + } + return -1; + } else if((((((a11==1)&&(((input==4)&&(((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))))&&!(a26==1)))&&(a21==12))&&(a19==3))&&((a13==1)&&((!(a11==1)||((!(a23==1)||((a16==7)&&(((a2==1)&&(a1==12))||(a8==1))))&&(a20==1)))&&(a17==2))))){ + a27 = 0; + a0 = 0; + a19 = 4; + a9 = 9; + a16 = 9; + a1 = 13; + a5 = 4; + a21 = 10; + a23 = 1; + return 21; + } else if((((a21==12)&&((!(a27==1)&&(((a9==11)&&((!(a26==1)&&(a2==1))&&(a13==1)))||(a0==1)))&&(a5==5)))&&(((a17==2)&&((a19==4)&&(((((input==1)&&(a1==14))&&!(a14==1))&&(a11==1))&&(a20==1))))&&(a16==9)))){ + a5 = 6; + a4 = 0; + a19 = 2; + a1 = 13; + a0 = 0; + a16 = 7; + a14 = 0; + a9 = 10; + a21 = 10; + return 25; + } else if((((a9==8)&&((a19==1)&&((!(a7==1)&&(((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a4==1)))&&(a6==1))))&&((((a28==1)&&((a17==2)&&(((a16==9)&&(((a3==1)||!(a6==1))&&(a21==12)))&&(a1==14))))&&(a11==1))&&(a20==1)))){ + a7 = 0; + a16 = 7; + a27 = 0; + a21 = 10; + a5 = 4; + a1 = 12; + a9 = 7; + a8 = 0; + return -1; + } else if(((((((((((a19==3)&&(input==6))&&(a5==6))&&(a20==1))&&(a16==9))&&(a21==11))&&(a17==2))&&(a1==13))&&!(a26==1))&&((a8==1)||((!(a0==1)&&((a18==1)||(((a13==1)&&(a9==9))||(a26==1))))||(a27==1))))){ + a2 = 1; + a16 = 10; + a19 = 2; + a1 = 14; + a21 = 10; + a0 = 0; + a26 = 0; + a9 = 7; + return 21; + } else if((((a9==10)&&((!(a2==1)||(!(a23==1)||(a12==1)))&&(a28==1)))&&((a21==12)&&(((((a11==1)&&(((!(a24==1)&&((a16==10)&&((input==4)&&((a5==4)||(a5==5)))))&&(a17==2))&&(a1==13)))&&!(a20==1))&&(a19==5))&&!(a4==1))))){ + if((a18==1)){ + a19 = 2; + a20 = 1; + a5 = 5; + a1 = 12; + a22 = 1; + a2 = 0; + a16 = 8; + }else{ + a16 = 7; + a29 = 0; + a7 = 1; + a20 = 1; + a8 = 1; + a5 = 4; + a19 = 4; + } + return -1; + } else if(((!(a11==1)||((((a9==11)&&((a11==1)&&(((a19==1)&&(((a20==1)&&(a3==1))&&(a6==1)))&&(a17==2))))&&(a1==13))&&!(a26==1)))&&((a23==1)&&((a28==1)&&((a21==11)&&(((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a16==8))))))){ + a16 = 10; + a19 = 3; + a0 = 0; + a13 = 1; + a9 = 7; + a5 = 4; + a6 = 1; + a21 = 10; + return 25; + } return calculate_output48(input); + } + + int calculate_output48(int input) { + if((((((a9==7)&&((a13==1)&&(a1==13)))&&(a23==1))&&(a16==8))&&((!(a20==1)&&((a17==2)&&(((a21==10)&&((a12==1)&&(!(a4==1)&&((((input==1)&&((a5==5)||(a5==6)))&&(a19==2))&&!(a14==1)))))&&!(a0==1))))&&!(a26==1)))){ + a19 = 5; + a4 = 0; + a16 = 11; + a11 = 1; + a9 = 8; + a20 = 1; + a18 = 0; + a5 = 5; + a1 = 12; + return 21; + } else if(((((a16==10)&&((((a9==10)&&(((a6==1)&&((((a1==13)&&(((input==4)&&(a19==4))&&(a6==1)))&&(a20==1))&&(a21==10)))&&(a5==5)))&&(a23==1))&&(a17==2)))&&(a11==1))&&(!(a7==1)&&(!(a13==1)||(a12==1))))){ + a5 = 4; + a18 = 0; + a19 = 1; + a16 = 7; + a26 = 0; + a1 = 12; + a3 = 1; + a9 = 7; + return -1; + } else if(((!(a7==1)&&(((((a2==1)&&(((a17==2)&&(((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a16==9)))&&(a20==1)))&&!(a0==1))&&(a19==3))&&(a6==1)))&&(((a21==10)&&(((a9==7)&&((a12==1)&&(a1==12)))&&!(a18==1)))&&(a12==1)))){ + if((a15==1)){ + a5 = 5; + a9 = 10; + a16 = 7; + a21 = 12; + a8 = 0; + a20 = 0; + a6 = 1; + a7 = 0; + a19 = 5; + }else{ + a19 = 5; + a11 = 1; + a1 = 13; + a5 = 4; + a16 = 8; + a14 = 0; + a23 = 1; + } + return 22; + } else if((((((a1==12)&&(!(a11==1)||(!(a8==1)&&((a13==1)||!(a11==1)))))&&(a21==10))&&(a17==2))&&((a19==3)&&(!(a20==1)&&((!(a14==1)&&((a12==1)&&((a5==5)&&(!(a7==1)&&((a9==7)&&(input==6))))))&&(a16==11)))))){ + if((a21==12)){ + a5 = 4; + a16 = 7; + a2 = 0; + a10 = 0; + a19 = 1; + a20 = 1; + a29 = 0; + }else{ + a3 = 0; + a16 = 7; + a9 = 9; + a6 = 0; + a22 = 0; + a20 = 1; + a19 = 1; + a5 = 4; + } + return 25; + } else if(((((a17==2)&&((a13==1)&&(((a1==14)&&((a19==4)&&((a3==1)&&(a16==8))))&&(a11==1))))&&(a20==1))&&(!(a27==1)&&((a6==1)&&((a9==11)&&((!(a0==1)&&(!(a24==1)&&((input==5)&&((a5==6)||((a5==4)||(a5==5))))))&&(a21==10))))))){ + a19 = 1; + a9 = 7; + a26 = 0; + a4 = 0; + a5 = 4; + a1 = 12; + a13 = 1; + a16 = 7; + return -1; + } else if((((((a11==1)&&(((a5==5)||(a5==6))&&(input==6)))&&!(a0==1))&&(a1==12))&&((a21==11)&&(((a16==11)&&((a17==2)&&((a19==3)&&((((a24==1)||(!(a23==1)||((a28==1)&&!(a18==1))))&&(a9==10))&&!(a24==1)))))&&(a20==1))))){ + a18 = 0; + a19 = 1; + a5 = 6; + a16 = 9; + a12 = 1; + a11 = 1; + a9 = 9; + return 25; + } else if(((!(a0==1)&&(((a16==10)&&(((a12==1)&&((a21==11)&&(input==3)))&&(a19==1)))&&(a1==13)))&&(!(a2==1)||(((!(a3==1)||((a17==2)&&((a6==1)&&(((a9==10)&&(a11==1))&&(a5==6)))))&&(a20==1))||(a26==1))))){ + a5 = 4; + a1 = 12; + a16 = 7; + a24 = 0; + a9 = 7; + a21 = 10; + a4 = 0; + a3 = 1; + return -1; + } else if((((a17==2)&&(((((a11==1)&&((((input==4)&&((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4))))&&(a19==2))&&(a13==1)))&&!(a24==1))&&!(a4==1))&&(a21==11)))&&((a16==10)&&((!(a2==1)||(!(a3==1)||((a1==12)&&(a2==1))))&&!(a20==1))))){ + a21 = 12; + a16 = 7; + a8 = 1; + a19 = 1; + a9 = 8; + a5 = 4; + a6 = 0; + return -1; + } else if(((!(a23==1)||((a11==1)&&((a23==1)&&((a21==10)&&(!(a28==1)||(a11==1))))))&&((a9==11)&&(!(a7==1)&&(!(a20==1)&&((a17==2)&&((a1==13)&&(!(a18==1)&&(((a19==3)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))&&(a16==9)))))))))){ + a20 = 1; + a16 = 7; + a1 = 14; + a19 = 1; + a5 = 4; + a11 = 0; + a7 = 1; + a9 = 10; + a29 = 0; + return -1; + } else if((((((((((input==3)&&(((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))))&&(a3==1))&&(a16==7))&&(a23==1))&&!(a4==1))&&(a2==1))&&(a20==1))&&((a17==2)&&((a21==11)&&((a24==1)||((a26==1)||((a1==13)&&((a19==5)&&(a3==1))))))))){ + a1 = 12; + a19 = 1; + a9 = 7; + a24 = 0; + a5 = 4; + a21 = 10; + a3 = 1; + return -1; + } else if(((((a16==10)&&((a17==2)&&((!(a18==1)&&((a20==1)&&((a19==3)&&((a9==9)&&(input==1)))))&&(a1==12))))&&!(a26==1))&&(!(a28==1)||(((a2==1)&&((!(a4==1)&&((a13==1)&&(a21==10)))&&(a5==5)))||!(a23==1))))){ + a28 = 1; + a19 = 5; + a1 = 14; + a5 = 6; + a18 = 0; + a16 = 11; + a2 = 1; + return 23; + } else if((((((a1==13)&&((a17==2)&&(!(a4==1)&&((input==6)&&(((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7))))))))&&(a13==1))&&(a28==1))&&((a19==3)&&((!(a13==1)||((!(a26==1)&&((a21==12)&&((a23==1)&&!(a20==1))))||(a0==1)))&&(a16==8))))){ + a16 = 7; + a20 = 1; + a12 = 0; + a9 = 9; + a5 = 5; + a10 = 1; + a24 = 1; + a1 = 12; + a21 = 10; + a19 = 1; + return -1; + } else if((((!(a3==1)&&((((((a18==1)&&(((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))&&(input==6)))&&(a20==1))&&(a1==14))&&(a17==2))&&(a24==1)))&&!(a28==1))&&(!(a28==1)&&(!(a28==1)&&(((a21==10)&&((a13==1)&&(a16==10)))&&(a19==5)))))){ + a19 = 3; + a9 = 8; + a1 = 12; + a2 = 0; + a20 = 0; + a15 = 0; + a16 = 8; + a24 = 1; + a5 = 5; + return -1; + } else if((((!(a28==1)||(((a2==1)&&((a13==1)&&(a19==4)))||!(a11==1)))&&!(a20==1))&&(((a21==10)&&((!(a24==1)&&(((a16==9)&&((input==3)&&(((a9==7)&&((a5==5)&&(a1==13)))||((((a1==12)&&(a5==6))&&(a9==11))||((a9==7)&&((a1==13)&&(a5==4)))))))&&!(a24==1)))&&(a11==1)))&&(a17==2)))){ + a1 = 13; + a9 = 10; + a18 = 1; + a4 = 1; + a19 = 5; + a16 = 10; + a2 = 0; + a20 = 1; + a5 = 5; + return 21; + } else if(((!(a23==1)&&(((!(a23==1)&&((a16==8)&&(a11==1)))&&!(a20==1))&&(a1==12)))&&((((a24==1)&&((!(a13==1)&&(((a21==11)&&((a17==2)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6))))&&(a19==3)))&&(a9==10)))&&(a4==1))&&(a4==1)))){ + a20 = 1; + a15 = 1; + a13 = 0; + a1 = 13; + a23 = 0; + a5 = 5; + a16 = 10; + a19 = 2; + a9 = 11; + a21 = 12; + return 26; + } else if(((!(a28==1)&&((a16==7)&&(((a21==11)&&((a1==12)&&(a12==1)))&&!(a11==1))))&&(((a17==2)&&(!(a23==1)&&((a7==1)&&((((a19==1)&&(!(a20==1)&&((input==5)&&(a9==7))))&&(a14==1))&&(a5==5)))))&&(a24==1)))){ + a10 = 0; + a13 = 0; + a19 = 5; + a5 = 4; + a16 = 8; + a20 = 1; + a1 = 14; + a9 = 10; + return 21; + } else if((((!(a0==1)&&(!(a8==1)&&(((((a1==12)&&(a28==1))&&(a9==7))&&(a21==10))&&(a16==7))))||(a27==1))&&(!(a0==1)&&((a20==1)&&(((!(a0==1)&&((a19==3)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a17==2))&&!(a24==1)))))){ + a19 = 1; + a20 = 0; + a1 = 14; + a12 = 1; + a5 = 6; + a9 = 11; + a16 = 8; + a8 = 0; + a0 = 0; + return 23; + } else if(((((!(a18==1)&&(((a21==12)&&(((a17==2)&&(!(a26==1)&&(a3==1)))||(a0==1)))&&(a16==11)))&&(a20==1))&&!(a27==1))&&(((a1==13)&&((((a9==11)&&((input==4)&&((a5==4)||(a5==5))))&&(a2==1))&&(a19==4)))&&!(a8==1)))){ + a21 = 10; + a19 = 1; + a9 = 7; + a26 = 0; + a1 = 12; + a5 = 4; + a3 = 1; + a0 = 0; + a16 = 7; + return -1; + } else if((((((a21==12)&&(((a17==2)&&((!(a20==1)&&(a3==1))&&(a19==3)))&&(a1==13)))&&(a16==10))||!(a28==1))&&(!(a24==1)&&(((a12==1)&&(((((input==5)&&((a5==4)||(a5==5)))&&(a28==1))&&(a9==10))&&(a11==1)))&&!(a24==1))))){ + a21 = 10; + a2 = 0; + a16 = 7; + a5 = 4; + a1 = 12; + a19 = 2; + a22 = 1; + a20 = 1; + a28 = 0; + a9 = 8; + return -1; + } else if((((((!(a0==1)&&(((((a5==5)||(a5==6))&&(input==1))&&(a6==1))&&(a9==9)))&&(a2==1))&&(a19==2))&&(a17==2))&&(((a20==1)&&((!(a23==1)||(((a16==10)&&((a11==1)||(a27==1)))&&(a21==10)))||(a18==1)))&&(a1==13)))){ + a9 = 11; + a7 = 0; + a5 = 6; + a11 = 1; + a19 = 4; + a1 = 12; + a21 = 11; + a16 = 8; + return -1; + } else if((((a1==13)&&(((a2==1)&&((a20==1)&&((a16==9)&&((a9==11)&&((input==6)&&((a5==5)||(a5==6)))))))&&(a6==1)))&&((a23==1)&&((a14==1)||((((a2==1)&&(((a19==2)&&(a12==1))&&(a21==11)))&&(a17==2))&&(a2==1)))))){ + a1 = 12; + a21 = 10; + a3 = 1; + a16 = 10; + a7 = 0; + a14 = 0; + a19 = 1; + a9 = 7; + a5 = 4; + return 21; + } else if((((a14==1)&&(((a16==7)&&(input==4))&&!(a23==1)))&&((a17==2)&&((a9==7)&&(!(a13==1)&&(((a20==1)&&((a5==6)&&((a26==1)&&((a19==4)&&((a1==13)&&(!(a3==1)&&((a28==1)&&(a26==1))))))))&&(a21==10))))))){ + a0 = 1; + a2 = 0; + a19 = 2; + a29 = 0; + a9 = 9; + a1 = 12; + return -1; + } else if(((((a19==3)&&(((a28==1)&&(((a6==1)||!(a2==1))&&(a20==1)))&&(a16==9)))&&(a9==11))&&((a21==10)&&((a17==2)&&((((a12==1)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&!(a14==1))&&(a13==1)))&&(a1==14))&&(a13==1)))))){ + a5 = 6; + a19 = 2; + a26 = 0; + a18 = 0; + a27 = 0; + a16 = 11; + a1 = 13; + a9 = 9; + return 25; + } else if((((((a20==1)&&(((a19==3)&&((a12==1)&&!(a18==1)))&&(a16==7)))||(a24==1))||!(a6==1))&&((a11==1)&&((a3==1)&&(((a21==10)&&((((((a5==5)||(a5==6))&&(input==6))&&(a17==2))&&!(a26==1))&&(a1==14)))&&(a9==9)))))){ + a2 = 1; + a23 = 1; + a8 = 0; + a19 = 2; + a5 = 5; + a21 = 11; + return 22; + } else if((((((a6==1)&&((a5==5)&&(!(a20==1)&&((((a9==7)&&((a3==1)||(a4==1)))&&(a1==14))||(a14==1)))))&&(a19==1))&&(a21==12))&&((a17==2)&&(((((input==1)&&(a16==8))&&!(a14==1))&&!(a0==1))&&(a6==1))))){ + a28 = 0; + a2 = 0; + a10 = 0; + a21 = 10; + a5 = 4; + a9 = 8; + a20 = 1; + a16 = 7; + a1 = 13; + return 21; + } else if(((((a17==2)&&((a20==1)&&(!(a24==1)&&((((a9==11)&&(((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a2==1)))&&(a11==1))&&(a11==1)))))&&(a1==12))&&(((a27==1)||((((a12==1)&&(a21==10))&&(a19==1))&&(a23==1)))&&(a16==11)))){ + a9 = 7; + a5 = 4; + a19 = 3; + a21 = 11; + a4 = 0; + a16 = 9; + a1 = 13; + a3 = 1; + return -1; + } else if(((((((((a5==5)&&(input==3))&&(a4==1))&&!(a11==1))&&!(a13==1))&&(a19==2))&&(a9==10))&&((a17==2)&&((((a1==14)&&(((a8==1)&&(!(a13==1)&&((a20==1)&&(a12==1))))&&!(a13==1)))&&(a16==7))&&(a21==12))))){ + a1 = 12; + a26 = 1; + a19 = 1; + a28 = 0; + a21 = 10; + a9 = 8; + a5 = 6; + a22 = 1; + return 21; + } else if((((a28==1)&&((a16==7)&&((a1==13)&&(((((a5==4)||(a5==5))&&(input==1))&&(a2==1))&&(a13==1)))))&&((!(a23==1)||(((a9==10)&&(!(a13==1)||(!(a20==1)&&(((a21==11)&&(a23==1))&&(a17==2)))))||!(a12==1)))&&(a19==4)))){ + a5 = 4; + a8 = 0; + a21 = 10; + a24 = 0; + a1 = 14; + a19 = 3; + a3 = 1; + return 25; + } else if((((((!(a18==1)&&(!(a14==1)&&((((((a5==4)||(a5==5))&&(input==5))&&(a16==10))&&!(a14==1))&&!(a18==1))))&&(a13==1))&&(a9==10))&&(a20==1))&&((((a1==12)&&(((a13==1)&&(a19==3))&&(a17==2)))&&!(a26==1))&&(a21==11)))){ + a9 = 11; + a5 = 4; + a23 = 1; + a27 = 0; + a1 = 14; + a19 = 5; + a13 = 1; + a16 = 9; + return 21; + } else if(((!(a20==1)&&(!(a23==1)||((a9==7)&&(((a6==1)&&(((((a18==1)||(a3==1))&&(a16==8))||!(a13==1))&&(a17==2)))&&(a1==13)))))&&((!(a24==1)&&((!(a8==1)&&((input==6)&&((a5==5)||(a5==6))))&&(a19==2)))&&(a21==11)))){ + a5 = 4; + a18 = 0; + a19 = 4; + a9 = 9; + a21 = 12; + a1 = 14; + a14 = 0; + a20 = 1; + a6 = 1; + return 25; + } else if(((((a17==2)&&((a6==1)&&((a28==1)&&(((input==4)&&((a5==5)||(a5==6)))&&!(a14==1)))))&&!(a26==1))&&(((((a1==13)&&(!(a20==1)&&((a21==11)&&((a24==1)||((a19==2)&&(a2==1))))))&&(a9==10))&&(a16==9))&&(a12==1)))){ + a19 = 1; + a16 = 7; + a21 = 10; + a20 = 1; + a0 = 1; + a5 = 4; + a10 = 1; + a6 = 0; + return -1; + } else if((((a1==12)&&(((!(a8==1)&&((!(a12==1)||(((a2==1)&&(a11==1))||!(a12==1)))||!(a28==1)))&&(a21==11))&&(a17==2)))&&(!(a20==1)&&((a9==8)&&((a16==7)&&(((a12==1)&&((input==5)&&((a5==5)||(a5==6))))&&(a19==1))))))){ + a20 = 1; + a19 = 4; + a1 = 13; + a2 = 1; + a5 = 6; + a13 = 1; + a16 = 9; + a9 = 10; + a27 = 0; + return 22; + } else if(((((a16==10)&&((a20==1)&&((((a2==1)&&((input==4)&&((a5==5)||(a5==6))))&&(a9==7))&&(a21==10))))&&!(a8==1))&&(((((((!(a24==1)&&(a23==1))&&(a1==14))&&(a17==2))||!(a6==1))&&(a3==1))&&!(a27==1))&&(a19==1)))){ + a16 = 7; + a12 = 1; + a1 = 12; + a5 = 4; + a2 = 1; + return -1; + } else if(((!(a20==1)&&(((a6==1)||!(a3==1))||(a26==1)))&&((a19==1)&&((((a11==1)&&((((a21==12)&&(((a16==10)&&(!(a27==1)&&((input==3)&&((a5==5)||(a5==6)))))&&!(a18==1)))&&(a1==12))&&(a23==1)))&&(a9==10))&&(a17==2))))){ + a21 = 10; + a19 = 2; + a8 = 1; + a16 = 7; + a1 = 13; + a29 = 1; + a5 = 5; + a12 = 0; + return 22; + } else if((((((((a17==2)&&(((a20==1)&&((a2==1)&&(a11==1)))&&(a1==14)))&&(a28==1))&&(a16==9))&&!(a27==1))&&(a11==1))&&((((a9==11)&&((a2==1)&&(((input==3)&&(a5==6))&&(a21==11))))&&(a19==3))&&!(a27==1)))){ + a11 = 1; + a16 = 7; + a21 = 10; + a1 = 12; + a14 = 0; + a9 = 7; + a5 = 4; + a19 = 1; + a28 = 1; + return -1; + } else if(((((a17==2)&&((a1==14)&&((a20==1)&&((a19==4)&&((a3==1)&&(a12==1))))))&&(a16==10))&&(!(a24==1)&&((a13==1)&&((((a23==1)&&(((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==1))&&(a2==1)))&&(a21==11))&&!(a8==1)))))){ + a1 = 12; + a19 = 1; + a16 = 9; + a23 = 1; + a5 = 6; + a26 = 0; + a9 = 7; + return -1; + } else if((((a20==1)&&((a16==11)&&((a11==1)&&(((a5==5)&&((a6==1)&&(!(a8==1)&&((a19==3)&&((a9==9)&&(!(a18==1)&&((a1==14)&&(input==6))))))))&&(a2==1)))))&&((a17==2)&&((a21==12)&&((a23==1)||(a8==1)))))){ + a9 = 11; + a1 = 12; + a19 = 5; + a23 = 1; + a5 = 6; + a27 = 0; + a28 = 1; + return 25; + } else if(((((a16==8)&&((a21==10)&&(!(a26==1)&&(((a1==13)&&(input==4))&&(a9==11)))))&&!(a18==1))&&((a26==1)||((!(a23==1)||((a28==1)&&((a6==1)&&((a17==2)&&(((a5==6)&&(a23==1))&&!(a20==1))))))&&(a19==5))))){ + a9 = 7; + a20 = 1; + a1 = 12; + a16 = 7; + a0 = 0; + a24 = 0; + a19 = 1; + a5 = 4; + a3 = 1; + return -1; + } else if((((a21==12)&&((((!(a27==1)&&(((a23==1)&&(!(a23==1)||(a12==1)))&&(a28==1)))&&(a19==4))&&!(a20==1))&&(a1==14)))&&((a17==2)&&((a16==10)&&((!(a7==1)&&(((input==1)&&((a5==4)||(a5==5)))&&(a9==9)))&&(a12==1)))))){ + a5 = 4; + a20 = 1; + a15 = 0; + a21 = 11; + a28 = 0; + a24 = 1; + a1 = 13; + a19 = 1; + return -1; + } else if((((!(a20==1)&&(!(a24==1)&&((a3==1)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==3)))))&&!(a26==1))&&(((a16==9)&&(!(a14==1)&&((((!(a11==1)||((a1==13)&&(a3==1)))&&(a19==1))&&(a17==2))&&(a21==12))))&&(a13==1)))){ + a19 = 5; + a14 = 1; + a5 = 5; + a20 = 1; + a12 = 0; + a1 = 12; + a16 = 8; + a22 = 0; + a9 = 8; + return 21; + } else if((((a20==1)&&(!(a6==1)||(((a16==10)&&((!(a4==1)&&(a2==1))&&(a28==1)))&&(a21==11))))&&((!(a24==1)&&((a9==9)&&((a1==12)&&(((a19==4)&&((a17==2)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6))))&&!(a7==1)))))&&(a2==1)))){ + a9 = 8; + a16 = 7; + a3 = 1; + a5 = 5; + a21 = 10; + a19 = 2; + a14 = 0; + a1 = 14; + return -1; + } else if(((((a9==8)&&(!(a2==1)||(!(a24==1)&&((a11==1)&&(a16==8)))))&&(a19==2))&&(((a21==10)&&(((((a1==13)&&(!(a0==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&(a13==1))))&&(a6==1))&&(a6==1))&&!(a20==1)))&&(a17==2)))){ + a1 = 12; + a16 = 7; + a19 = 1; + a5 = 4; + a26 = 0; + a14 = 0; + a3 = 1; + a20 = 1; + a9 = 7; + return -1; + } else if((((a17==2)&&((a1==13)&&((a20==1)&&(!(a13==1)&&(((!(a23==1)&&(!(a6==1)&&(a28==1)))&&!(a23==1))&&!(a12==1))))))&&(((a16==8)&&((a5==6)&&((a9==7)&&(((a19==3)&&(input==3))&&(a4==1)))))&&(a21==12)))){ + a5 = 5; + a9 = 8; + a19 = 2; + a13 = 0; + a26 = 1; + a15 = 0; + a16 = 10; + a21 = 10; + return -1; + } else if(((((((a16==9)&&(!(a7==1)&&(((a9==9)&&(input==1))&&(a20==1))))&&!(a24==1))&&(a28==1))&&(a23==1))&&((a8==1)||((a5==5)&&(!(a6==1)||(((((a6==1)&&(a1==14))&&(a21==10))&&(a17==2))&&(a19==4))))))){ + a23 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + a6 = 1; + a27 = 0; + a19 = 1; + a1 = 12; + return -1; + } else if((((a19==2)&&(((a21==11)&&(a13==1))&&(a17==2)))&&(((a13==1)&&((((a13==1)&&((!(a0==1)&&(((input==1)&&((((a1==14)&&(a5==5))&&(a9==7))||(((a9==11)&&((a1==13)&&(a5==6)))||(((a5==4)&&(a1==14))&&(a9==7)))))&&!(a8==1)))&&(a16==11)))&&(a23==1))&&!(a26==1)))&&(a20==1)))){ + if((a29==1)){ + a9 = 10; + a20 = 0; + a16 = 7; + a3 = 1; + a21 = 12; + a19 = 4; + a13 = 1; + a1 = 12; + a5 = 5; + a28 = 1; + }else{ + a0 = 0; + a19 = 5; + a1 = 12; + a2 = 1; + a18 = 0; + a9 = 9; + a20 = 0; + a5 = 4; + a16 = 7; + } + return 25; + } else if((((((((a12==1)&&(((!(a20==1)&&((a1==12)&&((input==5)&&(a17==2))))&&(a16==7))&&(a9==8)))&&(a21==11))&&!(a8==1))&&!(a24==1))&&!(a4==1))&&((((a5==5)&&((a2==1)||!(a28==1)))&&(a19==2))||!(a6==1)))){ + a9 = 9; + a11 = 1; + a21 = 10; + a1 = 13; + a5 = 4; + a12 = 1; + a20 = 1; + a14 = 0; + return 25; + } else if(((((!(a2==1)||((a20==1)&&((((a23==1)&&(a19==5))&&!(a18==1))&&(a16==10))))&&!(a18==1))&&(a1==14))&&(((a3==1)&&(((a17==2)&&(((input==3)&&((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4))))&&!(a0==1)))&&(a23==1)))&&(a21==11)))){ + a12 = 1; + a5 = 4; + a19 = 1; + a1 = 12; + a6 = 1; + a21 = 10; + a16 = 7; + a9 = 7; + return -1; + } else if((((a1==13)&&((a20==1)&&((a17==2)&&((a28==1)||!(a12==1)))))&&((a16==11)&&((((((!(a18==1)&&(((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))&&(input==6))&&!(a14==1)))&&!(a4==1))&&(a6==1))&&(a3==1))&&(a21==12))&&(a19==3))))){ + a5 = 4; + a19 = 1; + a1 = 12; + a9 = 7; + a16 = 7; + a0 = 0; + a24 = 0; + a21 = 10; + return -1; + } else if(((((a26==1)||(!(a20==1)&&((((a21==11)&&((a3==1)&&(a1==14)))&&(a9==8))&&!(a7==1))))&&!(a14==1))&&((((((a11==1)&&((a19==4)&&(((a5==4)||(a5==5))&&(input==4))))&&(a17==2))&&(a3==1))&&(a16==9))&&(a23==1)))){ + if((a14==1)){ + a29 = 1; + a5 = 6; + a9 = 9; + a21 = 10; + a19 = 1; + a20 = 1; + a25 = 1; + a0 = 1; + a16 = 7; + }else{ + a6 = 0; + a5 = 4; + a16 = 10; + a21 = 10; + a20 = 1; + a9 = 7; + a11 = 0; + a0 = 1; + a19 = 3; + } + return -1; + } else if(((((!(a6==1)&&((a16==7)&&((a19==4)&&(a3==1))))&&(a9==11))&&(a21==12))&&(((a1==13)&&((((!(a11==1)&&((a24==1)&&(!(a3==1)&&(((a5==4)||(a5==5))&&(input==3)))))&&!(a3==1))&&!(a20==1))&&(a18==1)))&&(a17==2)))){ + a6 = 0; + a5 = 6; + a21 = 10; + a20 = 1; + a8 = 1; + a9 = 7; + a2 = 0; + a19 = 1; + return 25; + } else if(((((((a9==11)&&((!(a27==1)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&(a17==2))&&(a21==10)))&&!(a7==1)))&&(a13==1))&&(a1==13))&&!(a4==1))&&((a16==8)&&((a20==1)&&(!(a7==1)&&((a19==5)&&((a23==1)||(a24==1)))))))){ + a9 = 7; + a1 = 12; + a2 = 1; + a5 = 4; + a19 = 1; + a6 = 1; + a16 = 7; + a8 = 0; + return -1; + } else if((((a6==1)&&((((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a5==4)&&(a9==11)))&&(input==1))&&!(a7==1)))&&((((((a1==14)&&(((a19==1)&&(((a16==10)&&((a12==1)&&(a6==1)))||!(a11==1)))&&(a21==10)))&&!(a20==1))&&(a17==2))&&(a28==1))&&!(a7==1)))){ + if((a7==1)){ + a1 = 13; + a5 = 5; + a13 = 0; + a23 = 0; + a20 = 1; + a9 = 7; + a22 = 0; + a16 = 7; + }else{ + a5 = 5; + a15 = 1; + a16 = 7; + a4 = 1; + a3 = 0; + a19 = 2; + a20 = 1; + a9 = 7; + a1 = 12; + } + return -1; + } else if((((((a14==1)||((((a1==13)&&(a13==1))&&!(a0==1))||!(a13==1)))&&(a5==5))&&!(a4==1))&&((a16==10)&&((a20==1)&&((a19==3)&&((a17==2)&&((a21==10)&&((a11==1)&&(!(a26==1)&&((a9==8)&&(input==6))))))))))){ + a1 = 12; + a5 = 4; + a19 = 1; + a9 = 7; + a8 = 0; + a16 = 7; + a18 = 0; + a2 = 1; + return -1; + } else if((((a1==14)&&(((((a28==1)&&(a16==9))||(a14==1))&&(a17==2))&&!(a20==1)))&&((a19==3)&&((a3==1)&&(((((a2==1)&&((a21==10)&&((((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(input==1))))&&!(a4==1))&&(a11==1))&&(a23==1)))))){ + a19 = 5; + a21 = 12; + a8 = 1; + a15 = 0; + a5 = 4; + a9 = 10; + a16 = 10; + a26 = 1; + return -1; + } else if((((((((((a12==1)&&(a21==10))&&(a16==7))&&(a1==13))&&(a17==2))&&(a20==1))||(a0==1))&&!(a27==1))&&((((a2==1)&&((((((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==4))&&(a19==4))&&(a3==1)))&&(a23==1))&&(a6==1)))){ + a7 = 0; + a1 = 12; + a5 = 4; + a9 = 7; + a19 = 1; + a14 = 0; + a26 = 0; + return -1; + } else if((((a17==2)&&((a21==11)&&((a24==1)||(!(a13==1)||(a2==1)))))&&((((a1==12)&&((a16==10)&&(((a3==1)&&((!(a27==1)&&(!(a18==1)&&(((a5==4)||(a5==5))&&(input==4))))&&!(a24==1)))&&(a20==1))))&&(a9==11))&&(a19==5)))){ + a12 = 1; + a3 = 1; + a5 = 4; + a19 = 1; + a16 = 7; + a8 = 0; + a21 = 10; + a9 = 7; + return -1; + } else if(((!(a20==1)&&(((((!(a18==1)&&((a12==1)&&((((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9))))&&(input==1))))&&(a16==10))&&!(a4==1))&&!(a26==1))&&(a19==4)))&&((a1==13)&&(!(a4==1)&&((!(a13==1)||((a23==1)&&(a17==2)))&&(a21==11)))))){ + a22 = 1; + a5 = 6; + a20 = 1; + a9 = 9; + a21 = 10; + a4 = 1; + a1 = 12; + a19 = 1; + return -1; + } else if(((!(a27==1)&&(((a1==14)&&(((((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(input==6))&&(a12==1)))&&(a12==1)))&&((((a14==1)||((((((a12==1)&&(a16==10))&&(a20==1))&&(a17==2))&&(a19==4))&&(a21==12)))&&!(a8==1))||!(a11==1)))){ + a9 = 9; + a26 = 0; + a1 = 13; + a18 = 0; + a27 = 0; + a19 = 2; + a21 = 10; + a5 = 4; + a16 = 7; + return 25; + } else if(((!(a7==1)&&((a21==12)&&(((a11==1)&&((a16==10)&&(!(a26==1)&&((a17==2)&&((((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(input==3))))))&&!(a20==1))))&&(!(a8==1)&&((a13==1)&&(!(a3==1)||(((a1==13)&&(a12==1))&&(a19==4))))))){ + if((a27==1)){ + a10 = 1; + a16 = 9; + a9 = 7; + a19 = 1; + a25 = 1; + a21 = 11; + a5 = 4; + }else{ + a28 = 0; + a1 = 14; + a16 = 8; + a29 = 1; + a5 = 6; + a21 = 11; + a19 = 3; + a20 = 1; + a9 = 10; + } + return 23; + } else if((((((a19==3)&&((((!(a7==1)&&((a16==7)&&((a6==1)&&!(a26==1))))||!(a3==1))||!(a12==1))||(a7==1)))&&(a1==13))&&(a21==12))&&(((a9==11)&&((((a17==2)&&(input==1))&&(a5==4))&&(a12==1)))&&!(a20==1)))){ + a27 = 0; + a9 = 9; + a20 = 1; + a8 = 0; + a19 = 2; + a21 = 10; + a26 = 0; + return 26; + } else if((((a21==12)&&((a16==9)&&((a1==14)&&((((!(a26==1)&&(a23==1))&&(a17==2))&&!(a14==1))||(a8==1)))))&&((a5==6)&&(!(a18==1)&&(!(a27==1)&&(((a20==1)&&(((a9==10)&&(input==1))&&(a19==5)))&&!(a4==1))))))){ + a9 = 8; + a8 = 0; + a21 = 10; + a5 = 5; + a13 = 1; + a19 = 3; + a26 = 0; + a16 = 10; + return 21; + } else if((((a1==12)&&((a2==1)&&((a17==2)&&((((a23==1)&&(!(a24==1)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a19==4))&&!(a24==1)))))&&((((((a21==12)&&((a6==1)&&(a16==10)))&&(a9==11))&&!(a8==1))||!(a3==1))&&(a20==1)))){ + a19 = 5; + a5 = 5; + a21 = 10; + a6 = 1; + a9 = 8; + a11 = 1; + a16 = 8; + a27 = 0; + return 25; + } else if((((((!(a6==1)||((a20==1)&&(a3==1)))||!(a6==1))&&(a1==12))&&(a2==1))&&(!(a24==1)&&(((a19==5)&&((a21==12)&&(((((input==6)&&((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10))))&&!(a7==1))&&(a16==8))&&(a17==2))))&&(a11==1))))){ + a2 = 1; + a5 = 4; + a19 = 4; + a13 = 1; + a1 = 14; + a24 = 0; + a16 = 10; + a9 = 11; + return 25; + } else if((((((a13==1)&&(!(a7==1)&&((((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==6))&&!(a14==1))&&(a6==1))))&&(a19==3))&&(a1==13))&&((a17==2)&&(((a24==1)||((a21==11)&&(((a16==11)&&(a12==1))&&(a11==1))))&&(a20==1))))){ + a16 = 7; + a24 = 0; + a19 = 1; + a5 = 4; + a1 = 12; + a6 = 1; + a9 = 7; + a21 = 10; + a0 = 0; + return -1; + } else if((((a17==2)&&((!(a20==1)&&((a1==13)&&((a27==1)||(a11==1))))&&(a19==3)))&&(!(a8==1)&&(!(a18==1)&&(!(a14==1)&&(!(a7==1)&&((a21==10)&&((((((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(input==4))&&!(a7==1))&&(a16==11))))))))){ + if((a21==11)){ + a16 = 7; + a19 = 1; + a5 = 5; + a12 = 0; + a9 = 8; + a20 = 1; + a7 = 1; + }else{ + a5 = 5; + a20 = 1; + a9 = 7; + a16 = 7; + a14 = 1; + a7 = 1; + a19 = 2; + a2 = 0; + a1 = 12; + } + return 21; + } else if((((a16==11)&&(((a1==12)&&((a3==1)&&((((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&(a3==1))&&!(a0==1))))&&(a9==11)))&&((a21==11)&&((a19==3)&&(((a14==1)||(!(a23==1)||((a28==1)&&((a28==1)&&(a17==2)))))&&(a20==1)))))){ + a21 = 10; + a23 = 1; + a9 = 7; + a7 = 0; + a12 = 1; + a19 = 1; + a5 = 4; + a16 = 7; + return -1; + } else if(((((a17==2)&&(!(a20==1)&&(((a6==1)&&((a8==1)||((a12==1)&&(!(a27==1)&&((a7==1)||((a13==1)&&(a19==2)))))))&&(a9==7))))&&(a21==12))&&(((((input==4)&&(a16==10))&&(a5==6))&&(a3==1))&&(a1==12)))){ + a16 = 7; + a5 = 4; + a1 = 13; + a20 = 1; + a27 = 1; + a22 = 1; + a23 = 0; + return -1; + } else if(((((a6==1)&&((a17==2)&&(((((a20==1)&&(input==5))&&!(a4==1))&&(a16==9))&&(a9==9))))&&(a5==6))&&((((a13==1)&&(!(a12==1)||((a3==1)&&(((a13==1)&&(a1==12))||!(a12==1)))))&&(a21==12))&&(a19==5)))){ + a13 = 1; + a16 = 7; + a28 = 1; + a21 = 10; + a5 = 4; + a9 = 7; + a24 = 0; + a19 = 1; + return -1; + } else if((((a11==1)&&((a16==10)&&((a17==2)&&(!(a8==1)&&(!(a28==1)||(!(a4==1)&&((a19==4)&&((a21==11)&&(a3==1)))))))))&&((!(a24==1)&&(!(a20==1)&&((((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))&&(input==5))&&(a1==12))))&&(a13==1)))){ + a21 = 10; + a9 = 9; + a19 = 2; + a6 = 0; + a5 = 4; + a20 = 1; + a16 = 7; + a11 = 0; + a12 = 0; + return -1; + } else if(((((a19==1)&&((((((((a5==5)||(a5==6))&&(input==5))&&!(a4==1))&&(a9==8))&&(a21==11))&&!(a0==1))&&(a17==2)))&&(a20==1))&&((a1==13)&&(((a7==1)||((a7==1)||((a16==9)&&((a13==1)||(a7==1)))))||!(a6==1))))){ + a1 = 14; + a11 = 1; + a21 = 10; + a5 = 5; + a19 = 2; + a18 = 0; + a27 = 0; + a9 = 10; + return 21; + } else if((((a19==3)&&((((!(a3==1)&&(((a23==1)&&(a26==1))&&(a17==2)))&&(a18==1))&&(a5==4))&&(a21==10)))&&((((!(a11==1)&&(((a1==12)&&((input==1)&&(a16==10)))&&(a24==1)))&&(a27==1))&&(a20==1))&&(a9==8)))){ + a20 = 0; + a5 = 5; + a16 = 7; + a21 = 12; + a9 = 11; + a1 = 13; + a29 = 0; + a19 = 4; + a3 = 0; + return -1; + } else if((((a19==5)&&((((a5==4)&&((a23==1)&&(a13==1)))&&(a17==2))&&(a9==11)))&&(((!(a4==1)&&((((((a16==10)&&((input==1)&&(a20==1)))&&(a12==1))&&!(a27==1))&&(a23==1))&&!(a4==1)))&&(a21==10))&&(a1==13)))){ + a8 = 0; + a21 = 12; + a18 = 0; + a9 = 10; + a16 = 9; + a24 = 0; + a1 = 14; + a5 = 5; + return 25; + } else if((((a19==3)&&((a16==8)&&((a17==2)&&((a12==1)&&((a0==1)||((a6==1)||!(a3==1)))))))&&(!(a8==1)&&((a2==1)&&((((a20==1)&&(((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==5))&&(a2==1)))&&(a21==11))&&(a1==13)))))){ + a18 = 0; + a23 = 1; + a21 = 10; + a0 = 0; + a19 = 1; + a5 = 4; + a9 = 7; + a1 = 12; + a16 = 7; + return -1; + } else if((((a6==1)&&((((a4==1)||(a23==1))||(a18==1))||!(a28==1)))&&((a17==2)&&((((a19==2)&&(!(a24==1)&&((a21==10)&&((a3==1)&&((a1==13)&&((input==4)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))))))))&&(a16==10))&&(a20==1))))){ + a9 = 7; + a24 = 0; + a19 = 1; + a28 = 1; + a16 = 7; + a1 = 12; + a2 = 1; + a5 = 4; + return -1; + } else if((((((a11==1)&&((a23==1)&&(((a16==7)&&((input==1)&&(a21==11)))&&(a23==1))))&&(a5==6))&&(a19==1))&&((a17==2)&&((a1==13)&&(!(a24==1)&&(((a9==9)&&((!(a14==1)&&(a28==1))&&!(a20==1)))&&(a12==1))))))){ + a21 = 12; + a16 = 9; + a4 = 0; + a2 = 1; + a5 = 5; + a19 = 2; + a20 = 1; + return 25; + } else if((((a19==4)&&((a5==4)&&((a21==11)&&(((((a1==12)&&((a17==2)&&(input==3)))&&(a23==1))&&(a3==1))&&(a20==1)))))&&(((((a27==1)||(((a28==1)&&(a9==11))&&(a3==1)))&&(a16==11))||(a8==1))&&!(a24==1)))){ + a16 = 7; + a9 = 7; + a2 = 1; + a19 = 1; + a7 = 0; + a21 = 10; + a8 = 0; + return -1; + } else if(((((a13==1)&&(!(a8==1)&&((a21==12)&&((a17==2)&&((((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==3))))))&&!(a26==1))&&((a2==1)&&((((!(a20==1)&&((a16==9)&&((a1==12)&&(a6==1))))||(a4==1))&&(a19==5))&&!(a24==1))))){ + if((a7==1)){ + a1 = 14; + a16 = 7; + a19 = 1; + a3 = 0; + a29 = 1; + a5 = 5; + a24 = 1; + a9 = 9; + }else{ + a1 = 14; + a21 = 10; + a5 = 4; + a20 = 1; + a19 = 1; + a9 = 10; + a16 = 7; + a7 = 1; + a27 = 1; + a29 = 0; + } + return -1; + } else if(((!(a0==1)&&(((a2==1)&&(!(a20==1)&&((a2==1)&&((a11==1)&&((a21==10)&&(!(a8==1)&&((a9==7)&&(input==3))))))))&&(a1==12)))&&(((a19==1)&&((((a6==1)&&(a5==5))&&(a16==7))&&(a17==2)))&&!(a18==1)))){ + a20 = 1; + a5 = 4; + a4 = 0; + a24 = 0; + return -1; + } else if((((!(a11==1)||((!(a20==1)&&(a2==1))||!(a6==1)))&&(a9==9))&&((a16==7)&&((a19==5)&&((!(a14==1)&&(((((a1==14)&&(((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a17==2)))&&(a28==1))&&(a6==1))&&!(a7==1)))&&(a21==11)))))){ + a5 = 4; + a9 = 7; + a4 = 0; + a8 = 0; + a21 = 10; + a1 = 12; + a19 = 1; + a3 = 1; + a20 = 1; + return -1; + } else if((((((a23==1)&&((((((a1==13)&&(!(a7==1)&&((a9==11)&&(input==4))))&&!(a27==1))&&!(a7==1))&&(a28==1))&&(a6==1)))&&(a17==2))&&(a20==1))&&(((a5==5)&&(((a23==1)&&(a21==10))&&(a16==10)))&&(a19==5)))){ + a23 = 1; + a19 = 1; + a16 = 7; + a18 = 0; + a9 = 7; + a1 = 12; + a2 = 1; + a5 = 4; + return -1; + } else if(((((a1==14)&&(((a6==1)&&(!(a0==1)&&(((a16==11)&&((input==4)&&((a5==5)||(a5==6))))&&!(a27==1))))&&!(a8==1)))&&(a21==10))&&((((a20==1)&&(((a9==9)&&(!(a12==1)||(a28==1)))&&(a19==4)))&&!(a7==1))&&(a17==2)))){ + a1 = 12; + a28 = 1; + a5 = 4; + a9 = 7; + a6 = 1; + a16 = 7; + a19 = 1; + a3 = 1; + return -1; + } else if((((a13==1)&&(!(a20==1)&&((a16==11)&&((a27==1)||((a13==1)&&!(a7==1))))))&&((a9==11)&&((!(a24==1)&&((a11==1)&&((!(a0==1)&&((a17==2)&&(((input==5)&&(a5==4))&&(a1==14))))&&(a21==10))))&&(a19==2))))){ + a4 = 1; + a15 = 0; + a16 = 7; + a27 = 1; + a20 = 1; + a1 = 12; + return -1; + } else if((((a16==10)&&(((a21==12)&&(((a18==1)||(((a7==1)||(a13==1))||(a14==1)))&&(a9==7)))&&(a19==5)))&&((a17==2)&&((a5==4)&&((a20==1)&&(!(a0==1)&&((((input==6)&&(a1==13))&&(a23==1))&&(a2==1)))))))){ + a1 = 14; + a0 = 0; + a21 = 10; + a4 = 0; + a19 = 4; + a16 = 7; + a9 = 11; + return 25; + } else if((((((!(a13==1)&&((((((input==4)&&((a5==5)||(a5==6)))&&(a0==1))&&(a19==2))&&(a9==7))&&(a7==1)))&&(a17==2))&&!(a20==1))&&(a21==11))&&((!(a12==1)&&(!(a23==1)&&(((a12==1)&&(a16==8))&&(a1==13))))&&(a0==1)))){ + a19 = 1; + a20 = 1; + a5 = 4; + a25 = 0; + a21 = 10; + a4 = 1; + a1 = 14; + a27 = 1; + a16 = 7; + return 25; + } else if(((((a17==2)&&((((((a12==1)&&(((((input==4)&&((a5==5)||(a5==6)))&&!(a14==1))&&!(a0==1))&&(a13==1)))&&(a11==1))&&(a9==11))&&(a21==12))&&(a1==12)))&&(a16==8))&&(((a20==1)&&(!(a23==1)||(a28==1)))&&(a19==4)))){ + a21 = 10; + a19 = 1; + a9 = 7; + a16 = 7; + a0 = 0; + a3 = 1; + a27 = 0; + a5 = 4; + return -1; + } else if(((((a19==4)&&(((((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(input==4))&&(a20==1)))&&(a21==11))&&((a16==7)&&((a1==13)&&((a0==1)&&(!(a3==1)&&((a17==2)&&(((a27==1)&&(((a23==1)&&(a7==1))&&(a26==1)))&&(a18==1))))))))){ + a21 = 10; + a5 = 4; + a25 = 0; + a29 = 0; + a9 = 9; + a12 = 0; + a19 = 2; + a1 = 12; + return 23; + } else if((((a2==1)&&(((a6==1)&&((a23==1)&&((((input==6)&&((a5==4)||(a5==5)))&&(a21==11))&&(a9==10))))&&(a23==1)))&&(!(a2==1)||(((((!(a20==1)&&((a6==1)||!(a6==1)))&&(a1==14))&&(a19==1))&&(a17==2))&&(a16==8))))){ + a1 = 13; + a16 = 9; + a8 = 0; + a28 = 1; + a5 = 4; + a0 = 0; + a19 = 3; + a9 = 8; + a20 = 1; + return 25; + } else if(((((a9==9)&&((a2==1)&&((a19==2)&&(((a8==1)||(((a6==1)&&(a3==1))&&(a17==2)))&&(a5==6)))))&&!(a20==1))&&(((a6==1)&&(((a21==12)&&(((a1==13)&&(input==1))&&!(a26==1)))&&!(a14==1)))&&(a16==7)))){ + a21 = 10; + a6 = 1; + a16 = 8; + a9 = 10; + a12 = 1; + a1 = 14; + a19 = 4; + a5 = 4; + a13 = 1; + return 21; + } else if(((((!(a7==1)&&((a7==1)||(!(a0==1)&&((a12==1)&&(a17==2)))))&&(a16==7))&&!(a20==1))&&((((a21==10)&&((a12==1)&&((a11==1)&&((((a9==9)&&(input==6))&&(a5==4))&&(a2==1)))))&&(a19==3))&&(a1==12)))){ + a12 = 1; + a26 = 0; + a1 = 13; + a0 = 0; + a9 = 10; + return 23; + } else if((((a4==1)||((a19==4)&&(!(a7==1)&&((a20==1)&&((a23==1)&&(a1==14))))))&&((((!(a4==1)&&((((((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&(a17==2))&&(a16==8))&&(a21==10))&&!(a24==1)))&&(a9==7))&&(a13==1))&&(a12==1)))){ + a1 = 12; + a23 = 1; + a14 = 0; + a26 = 0; + a19 = 1; + a16 = 7; + a5 = 4; + return -1; + } else if((((a19==1)&&((((a20==1)&&((((!(a14==1)&&((a6==1)&&((input==4)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))))&&(a1==12))&&!(a0==1))&&!(a7==1)))&&!(a0==1))&&(a21==12)))&&((a16==8)&&((a8==1)||((a17==2)&&(a23==1)))))){ + a5 = 4; + a9 = 7; + a16 = 7; + a21 = 10; + a0 = 0; + a2 = 1; + a3 = 1; + return -1; + } else if((((!(a27==1)&&(!(a24==1)&&(((a5==4)||(a5==5))&&(input==1))))&&(a16==9))&&(((((a19==3)&&((a21==12)&&(((((a14==1)||((a9==8)&&(a2==1)))&&!(a8==1))||(a14==1))&&(a20==1))))&&(a1==13))||!(a2==1))&&(a17==2)))){ + a2 = 1; + a1 = 12; + a5 = 4; + a21 = 10; + a28 = 1; + a16 = 7; + a9 = 7; + a7 = 0; + a19 = 1; + return -1; + } else if((((a17==2)&&(((!(a12==1)||((((((a12==1)&&(a6==1))&&(a1==12))&&(a28==1))&&(a2==1))&&(a19==1)))&&(a9==9))&&(a28==1)))&&((((a21==10)&&(((input==1)&&!(a20==1))&&!(a27==1)))&&(a5==6))&&(a16==10)))){ + a5 = 5; + a20 = 1; + a16 = 7; + a11 = 0; + a22 = 0; + a1 = 13; + a28 = 0; + return 25; + } else if(((((a14==1)||(((a5==5)&&((a1==12)&&(!(a23==1)||(a2==1))))&&(a16==11)))||!(a6==1))&&(((a12==1)&&(!(a27==1)&&(((((a20==1)&&((a9==8)&&(input==4)))&&(a21==12))&&(a19==1))&&(a17==2))))&&!(a7==1)))){ + a21 = 10; + a5 = 4; + a16 = 7; + a11 = 1; + a13 = 1; + a9 = 7; + return -1; + } else if(((!(a6==1)&&((((((a21==12)&&((a1==14)&&((a5==5)&&(input==3))))&&(a17==2))&&(a19==2))&&(a0==1))&&!(a23==1)))&&((((a20==1)&&((a16==9)&&((a14==1)&&((a9==9)&&(a6==1)))))&&!(a3==1))&&!(a6==1)))){ + a14 = 1; + a20 = 0; + a16 = 8; + a28 = 0; + a5 = 6; + a9 = 11; + a19 = 3; + a7 = 1; + a21 = 11; + a1 = 12; + return -1; + } else if((((((!(a18==1)&&((((a28==1)&&!(a8==1))&&!(a7==1))||!(a11==1)))&&(a1==14))&&(a19==1))&&!(a20==1))&&((a21==10)&&(((a17==2)&&(!(a26==1)&&((a16==11)&&(((a5==5)&&(input==5))&&(a23==1)))))&&(a9==9))))){ + a1 = 12; + a16 = 7; + a12 = 0; + a2 = 0; + a20 = 1; + a26 = 1; + return -1; + } else if((((a28==1)&&(((a11==1)&&(((a1==12)&&((a16==11)&&(((((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4)))&&(input==1))&&(a12==1))&&(a21==12))))&&(a19==1)))&&(a23==1)))&&(((a17==2)&&(!(a3==1)||((a23==1)||(a14==1))))&&(a20==1)))){ + if((a13==1)){ + a26 = 0; + a16 = 8; + a19 = 3; + a5 = 4; + a21 = 10; + a20 = 0; + a9 = 11; + a1 = 13; + a28 = 1; + }else{ + a5 = 5; + a19 = 3; + a3 = 1; + a9 = 10; + a1 = 13; + a0 = 0; + a11 = 1; + } + return 21; + } else if(((((((((a1==14)&&((((a19==1)&&((input==6)&&((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4)))))&&(a13==1))&&(a6==1)))&&(a3==1))&&(a16==9))&&!(a14==1))&&!(a7==1))&&(a21==12))&&(((a17==2)&&((a28==1)&&!(a20==1)))||(a24==1)))){ + a22 = 1; + a20 = 1; + a23 = 0; + a19 = 5; + a16 = 10; + a21 = 11; + a1 = 12; + a5 = 5; + a9 = 9; + return 25; + } else if(((((((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==4))&&!(a26==1))&&(a17==2))&&!(a20==1))&&((a3==1)&&((!(a4==1)&&((a16==7)&&((a21==10)&&((((a7==1)||(!(a13==1)||(a23==1)))&&(a1==14))&&!(a0==1)))))&&(a19==1))))){ + a13 = 1; + a5 = 4; + a2 = 1; + a20 = 1; + a7 = 0; + a1 = 12; + a9 = 7; + return -1; + } else if((((((a16==11)&&((a5==4)&&((a20==1)&&((a21==12)&&(input==1)))))&&(a13==1))&&!(a4==1))&&(((a2==1)&&((a1==14)&&((((((a19==4)&&(a13==1))&&(a6==1))||!(a2==1))&&(a9==8))&&(a17==2))))&&(a2==1)))){ + a19 = 1; + a0 = 0; + a21 = 10; + a9 = 7; + a1 = 12; + a23 = 1; + a18 = 0; + a16 = 7; + return -1; + } else if(((((((a1==12)&&((((a28==1)&&(!(a7==1)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==6))))&&!(a7==1))&&(a19==5)))&&(a20==1))&&(a21==12))&&(a16==10))&&(((!(a26==1)&&((a23==1)&&(a28==1)))&&!(a0==1))&&(a17==2)))){ + a18 = 0; + a21 = 10; + a19 = 2; + a5 = 4; + a16 = 7; + a26 = 0; + a0 = 0; + a9 = 9; + a1 = 13; + return 25; + } else if(((((a12==1)&&(!(a0==1)&&((!(a26==1)&&((((input==3)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(a12==1))&&(a17==2)))&&!(a26==1))))&&(a19==5))&&(((((!(a14==1)&&(a2==1))&&(a21==12))&&(a1==13))&&!(a20==1))&&(a16==10)))){ + a19 = 4; + a23 = 0; + a10 = 0; + a9 = 11; + a21 = 10; + a27 = 1; + a5 = 5; + return 21; + } else if((((a19==3)&&((a1==12)&&(!(a27==1)&&((((((!(a26==1)&&((input==4)&&((a5==4)||(a5==5))))&&(a17==2))&&!(a27==1))&&(a6==1))&&(a13==1))&&(a21==12)))))&&(!(a20==1)&&((a9==7)&&(((a0==1)||(a23==1))&&(a16==9)))))){ + a19 = 5; + a22 = 1; + a4 = 1; + a5 = 4; + a9 = 8; + a1 = 14; + a21 = 11; + a16 = 8; + return 23; + } else if(((((!(a18==1)&&(!(a7==1)&&(!(a0==1)&&(((a20==1)&&((a16==11)&&((input==1)&&(((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))))))&&!(a4==1)))))&&!(a4==1))&&(a13==1))&&((a21==11)&&(((a19==1)&&((a1==14)&&(a23==1)))&&(a17==2))))){ + a12 = 1; + a19 = 3; + a21 = 12; + a18 = 0; + a1 = 12; + a9 = 10; + a23 = 1; + a16 = 9; + a5 = 4; + return 21; + } else if((((a4==1)||((a20==1)&&((a9==8)&&((((((a11==1)&&(a28==1))&&!(a26==1))&&(a16==9))&&(a1==14))||(a24==1)))))&&(((((((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&!(a14==1))&&(a17==2))&&(a13==1))&&(a19==2))&&(a21==11)))){ + a0 = 0; + a5 = 4; + a2 = 1; + a16 = 8; + a21 = 10; + a27 = 0; + a20 = 0; + a19 = 4; + a9 = 10; + return 21; + } else if((((a9==9)&&((((((a21==10)&&((a5==6)&&(((a23==1)&&!(a24==1))&&(a17==2))))&&!(a7==1))&&(a1==13))&&(a12==1))||(a7==1)))&&((a16==10)&&((a19==1)&&(!(a8==1)&&(((a20==1)&&(input==1))&&(a13==1))))))){ + a5 = 4; + a1 = 12; + a13 = 1; + a16 = 7; + a3 = 1; + a9 = 7; + a4 = 0; + return -1; + } else if((((a16==10)&&((a17==2)&&((((a19==2)&&((a3==1)&&(((input==3)&&(a9==7))&&!(a20==1))))&&(a28==1))&&(a5==5))))&&((a21==12)&&(((((a6==1)&&(!(a7==1)&&(a6==1)))||(a18==1))&&(a13==1))&&(a1==14))))){ + if((a15==1)){ + a12 = 0; + a4 = 1; + a21 = 10; + a25 = 1; + a9 = 10; + a20 = 1; + a19 = 1; + a16 = 7; + }else{ + a14 = 1; + a2 = 0; + a5 = 6; + a16 = 7; + a21 = 10; + a19 = 1; + a26 = 1; + a9 = 10; + a20 = 1; + } + return -1; + } else if((((((a20==1)&&(((a17==2)&&(!(a7==1)&&(((((((a9==7)&&(input==4))&&(a11==1))&&(a2==1))&&!(a8==1))&&(a16==11))&&(a6==1))))&&(a19==3)))&&(a21==12))&&(a5==4))&&(((a28==1)&&!(a0==1))&&(a1==12)))){ + a16 = 7; + a14 = 0; + a6 = 1; + a18 = 0; + a21 = 10; + a19 = 1; + return -1; + } else if((((a4==1)||(((!(a20==1)&&((((a23==1)&&(a3==1))&&(a21==10))&&(a9==8)))&&(a17==2))&&(a23==1)))&&((((((a16==8)&&(((input==6)&&(a19==2))&&(a5==4)))&&(a1==14))&&!(a0==1))&&(a11==1))&&!(a4==1)))){ + a1 = 12; + a0 = 0; + a20 = 1; + a19 = 5; + a27 = 0; + a16 = 11; + a9 = 10; + a4 = 0; + return 26; + } else if(((((a17==2)&&((a8==1)||((a1==14)&&(((a19==1)&&((!(a13==1)||(a28==1))||(a14==1)))||(a8==1)))))&&(a5==4))&&((((a21==10)&&((a12==1)&&(!(a0==1)&&((input==5)&&!(a20==1)))))&&(a16==7))&&(a9==10)))){ + if((a13==1)){ + a5 = 5; + a24 = 0; + a19 = 2; + a16 = 8; + a0 = 0; + a28 = 1; + }else{ + a20 = 1; + a19 = 2; + a1 = 13; + a4 = 0; + a11 = 1; + a9 = 11; + a23 = 1; + } + return 23; + } else if(((((a28==1)&&((a21==12)&&((a19==5)&&(((((((a9==11)&&((a5==6)&&(a1==13)))||((a9==7)&&((a1==14)&&(a5==4))))&&(input==4))&&!(a14==1))&&(a17==2))&&!(a20==1)))))&&!(a18==1))&&(!(a11==1)||((a16==9)&&(!(a18==1)&&((a2==1)||(a8==1))))))){ + a19 = 3; + a9 = 8; + a1 = 14; + a28 = 0; + a16 = 11; + a7 = 1; + a5 = 4; + a21 = 10; + a29 = 1; + return -1; + } else if((((a7==1)||((a2==1)&&(((a21==11)&&(a3==1))&&!(a7==1))))&&(!(a4==1)&&(!(a8==1)&&((((((input==3)&&(((a19==5)&&(((a1==12)&&(a5==4))&&(a9==7)))||(((a19==4)&&(((a1==14)&&(a5==5))&&(a9==11)))||(((a9==11)&&((a1==14)&&(a5==6)))&&(a19==4)))))&&(a16==9))&&!(a18==1))&&(a20==1))&&(a17==2)))))){ + a21 = 10; + a4 = 0; + a1 = 12; + a2 = 1; + a6 = 1; + a19 = 1; + a5 = 4; + a16 = 7; + a9 = 7; + return -1; + } else if((((a17==2)&&(((a19==5)&&(((a4==1)||((a21==10)&&((a1==14)&&((a28==1)&&!(a8==1)))))&&(a20==1)))&&!(a0==1)))&&((a16==7)&&(((((input==3)&&(((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))))&&!(a18==1))&&!(a4==1))&&(a11==1))))){ + a9 = 7; + a1 = 12; + a19 = 1; + a6 = 1; + a5 = 4; + a0 = 0; + a28 = 1; + return -1; + } else if((((((!(a4==1)&&((a17==2)&&((input==3)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5))))))&&(a16==7))&&!(a26==1))&&(a13==1))&&((a19==1)&&(!(a20==1)&&((a27==1)||(((!(a2==1)||((a1==13)&&(a3==1)))&&(a21==12))&&(a28==1))))))){ + a20 = 1; + a5 = 4; + a12 = 1; + a9 = 7; + a21 = 10; + a1 = 12; + a14 = 0; + return -1; + } else if(((((a21==10)&&((!(a23==1)||((((!(a11==1)||(a13==1))&&(a17==2))&&(a1==12))&&!(a20==1)))&&(a9==10)))&&(a16==9))&&((a3==1)&&((a5==5)&&(((((a19==2)&&(input==3))&&!(a24==1))&&!(a27==1))&&!(a27==1)))))){ + a5 = 6; + a9 = 11; + a19 = 4; + a21 = 11; + a27 = 1; + a1 = 14; + a20 = 1; + a28 = 0; + a16 = 8; + a2 = 0; + return -1; + } else if(((((a12==1)&&((((a17==2)&&((((((a1==12)&&(a5==5))&&(a9==7))&&(a19==2))||(((((a5==6)&&(a1==14))&&(a9==11))&&(a19==1))||((a19==2)&&((a9==7)&&((a5==4)&&(a1==12))))))&&(input==4)))&&!(a0==1))&&(a20==1)))&&(a11==1))&&((((((a6==1)||!(a6==1))&&(a21==12))||!(a13==1))&&!(a24==1))&&(a16==8)))){ + a24 = 0; + a19 = 1; + a18 = 0; + a16 = 7; + a1 = 12; + a5 = 4; + a9 = 7; + a21 = 10; + a0 = 0; + return -1; + } else if((((((a12==1)&&((a16==11)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&(a17==2))&&(a19==1))))&&(a21==10))&&(a9==7))&&(((a1==12)&&((((a11==1)&&((a11==1)&&((a3==1)&&(a6==1))))&&!(a26==1))&&(a20==1)))&&(a6==1)))){ + a7 = 0; + a13 = 1; + a5 = 4; + a16 = 7; + a28 = 1; + return -1; + } else if((((((a1==13)&&((a21==10)&&(a13==1)))||(a4==1))&&(a9==10))&&((!(a20==1)&&((a12==1)&&((a28==1)&&(((a12==1)&&((a17==2)&&((!(a18==1)&&((input==6)&&((a5==4)||(a5==5))))&&!(a0==1))))&&(a16==9)))))&&(a19==4)))){ + if((a6==1)){ + a25 = 0; + a6 = 0; + a16 = 7; + a5 = 4; + a20 = 1; + a19 = 1; + a26 = 1; + a1 = 14; + }else{ + a23 = 0; + a9 = 9; + a27 = 1; + a14 = 1; + a16 = 7; + a21 = 11; + a5 = 4; + } + return -1; + } else if(((!(a11==1)||((a17==2)&&(((a9==7)&&((a8==1)||(a11==1)))&&(a21==12))))&&((!(a14==1)&&((a5==6)&&((a19==2)&&((((!(a7==1)&&((input==4)&&(a16==8)))&&(a23==1))&&(a1==14))&&!(a20==1)))))&&!(a26==1)))){ + a16 = 7; + a11 = 0; + a29 = 1; + a14 = 1; + a21 = 11; + a9 = 11; + a20 = 1; + a5 = 4; + a19 = 3; + return -1; + } else if((((a16==10)&&(((a17==2)&&((a1==13)&&(((a11==1)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6))))&&(a21==10))))&&!(a0==1)))&&((a11==1)&&(!(a12==1)||(((((a19==3)&&((a13==1)&&(a6==1)))&&!(a24==1))&&(a9==10))&&(a20==1)))))){ + a9 = 8; + a28 = 1; + a16 = 8; + a0 = 0; + a19 = 5; + a1 = 14; + a12 = 1; + a5 = 5; + return -1; + } else if(((((a16==9)&&((a1==14)&&((!(a24==1)&&((a27==1)||(((a21==10)&&(((a2==1)&&((a9==7)&&(a12==1)))&&(a17==2)))&&!(a20==1))))||(a8==1))))&&(a5==4))&&(!(a0==1)&&(((a19==3)&&(input==1))&&(a28==1))))){ + a20 = 1; + a9 = 10; + a8 = 1; + a23 = 0; + a19 = 1; + a18 = 1; + a16 = 7; + return 25; + } else if((((a1==12)&&((a19==4)&&((a18==1)&&((a14==1)&&((a8==1)&&((a21==11)&&((!(a11==1)&&(((a3==1)&&!(a13==1))&&(a16==10)))&&(a20==1))))))))&&((a17==2)&&((a4==1)&&((((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6))))&&(input==1)))))){ + a24 = 1; + a21 = 10; + a12 = 0; + a19 = 1; + a9 = 8; + a5 = 6; + a14 = 1; + return -1; + } else if(((((a28==1)&&(((a17==2)&&(((a1==14)&&(((a5==6)&&(input==3))&&!(a4==1)))&&(a16==8)))&&(a21==12)))&&(a6==1))&&((((((a9==7)&&((a12==1)&&(a23==1)))&&(a19==3))&&(a20==1))||!(a6==1))||!(a13==1)))){ + a3 = 1; + a21 = 10; + a14 = 0; + a1 = 12; + a19 = 1; + a16 = 7; + a23 = 1; + a5 = 4; + return -1; + } else if((((((a12==1)&&(((a19==2)&&(a11==1))&&!(a14==1)))&&(a9==9))||(a4==1))&&((a28==1)&&((a6==1)&&((!(a20==1)&&(((a1==14)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&(a21==12))&&(a16==9)))&&(a17==2)))&&(a2==1)))))){ + a19 = 1; + a10 = 0; + a6 = 0; + a20 = 1; + a21 = 10; + a5 = 5; + a25 = 0; + a16 = 7; + a1 = 13; + a9 = 7; + return -1; + } else if((((a9==10)&&((!(a27==1)&&((((a20==1)&&((a5==5)&&((a27==1)||((a6==1)&&(a17==2)))))&&(a16==11))&&(a11==1)))&&!(a14==1)))&&(((a1==14)&&((!(a4==1)&&((input==5)&&(a21==12)))&&!(a24==1)))&&(a19==4)))){ + a11 = 1; + a19 = 1; + a16 = 7; + a21 = 10; + a4 = 0; + a9 = 7; + a1 = 12; + a7 = 0; + a20 = 0; + return 25; + } else if((((a9==11)&&(((!(a8==1)&&(((a20==1)&&(!(a7==1)&&(((a21==10)&&(input==3))&&(a17==2))))&&!(a8==1)))&&!(a7==1))&&!(a24==1)))&&((a19==4)&&((a16==7)&&((!(a11==1)||((a1==12)&&(a2==1)))&&(a5==5)))))){ + a3 = 1; + a24 = 0; + a19 = 1; + a7 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if((((((!(a4==1)&&(((input==5)&&(((a19==4)&&(((a1==14)&&(a5==6))&&(a9==11)))||((a19==5)&&(((a1==12)&&(a5==4))&&(a9==7)))))&&(a16==7)))&&!(a20==1))&&!(a8==1))&&!(a27==1))&&(!(a13==1)||((((a21==11)&&((a2==1)&&(a17==2)))&&!(a4==1))&&(a12==1))))){ + a24 = 0; + a19 = 2; + a1 = 13; + a3 = 1; + a21 = 10; + a9 = 10; + a20 = 1; + a4 = 0; + a5 = 6; + return 25; + } else if((((a1==13)&&(((a9==9)&&((((!(a20==1)&&(a28==1))&&!(a7==1))&&!(a24==1))&&!(a8==1)))&&(a16==8)))&&((a19==1)&&((!(a14==1)&&((a23==1)&&((a23==1)&&(((input==5)&&((a5==5)||(a5==6)))&&(a17==2)))))&&(a21==11))))){ + a9 = 8; + a5 = 4; + a16 = 9; + a18 = 0; + a20 = 1; + a27 = 0; + a19 = 2; + a7 = 0; + return 22; + } else if((((a16==7)&&((a1==14)&&((!(a2==1)||(((a6==1)&&(!(a23==1)||(a28==1)))&&(a3==1)))&&(a20==1))))&&((a19==2)&&((!(a4==1)&&((((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))&&(input==1))&&(a17==2))&&(a23==1)))&&(a21==11))))){ + a5 = 5; + a16 = 8; + a23 = 1; + a9 = 9; + a19 = 4; + a8 = 0; + a21 = 10; + a13 = 1; + a1 = 12; + return 23; + } else if((((!(a12==1)&&(((((((a11==1)&&(a21==10))&&(a1==13))&&(a17==2))&&(a9==11))&&(a26==1))&&(a19==3)))&&(a0==1))&&(((((((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a6==1))&&!(a13==1))&&!(a3==1))&&(a16==8))&&(a20==1)))){ + a23 = 0; + a11 = 0; + a18 = 1; + a19 = 2; + a5 = 4; + a16 = 7; + a1 = 12; + return -1; + } else if((((a28==1)||(a27==1))&&(!(a0==1)&&((a3==1)&&((a13==1)&&(((a20==1)&&((((a21==12)&&((a17==2)&&((((a19==2)&&((a9==11)&&((a1==14)&&(a5==6))))||((a19==3)&&((a9==7)&&((a5==4)&&(a1==12)))))&&(input==6))))&&(a16==7))&&(a28==1)))&&!(a18==1))))))){ + a5 = 6; + a19 = 4; + a0 = 0; + a6 = 1; + a16 = 9; + a9 = 7; + a21 = 10; + a1 = 13; + a27 = 0; + return 21; + } else if(((((a5==6)&&(((((a17==2)&&(((a16==9)&&(input==3))&&(a21==10)))&&(a1==14))&&(a3==1))&&(a28==1)))&&!(a7==1))&&(((!(a20==1)&&(((a19==5)&&((a28==1)&&!(a26==1)))&&(a9==9)))||!(a6==1))&&!(a4==1)))){ + a22 = 0; + a9 = 7; + a19 = 1; + a5 = 5; + a20 = 1; + a15 = 1; + a2 = 0; + a16 = 7; + a1 = 13; + return 23; + } else if((((((a21==11)&&(((a1==12)&&((input==5)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))))&&!(a24==1)))&&!(a26==1))&&(a17==2))&&((a16==9)&&((!(a2==1)||(((((a2==1)&&(a23==1))&&!(a27==1))&&(a20==1))&&!(a7==1)))&&(a19==3))))){ + a9 = 8; + a19 = 2; + a2 = 1; + a6 = 1; + a16 = 10; + a21 = 12; + a5 = 4; + a8 = 0; + a1 = 13; + return 21; + } else if((((((!(a26==1)&&((a13==1)&&((a16==10)&&(((a3==1)||(a14==1))&&(a17==2)))))&&(a1==13))||(a4==1))&&(a21==11))&&((a9==11)&&((a19==2)&&(((a28==1)&&(((a5==6)&&(input==1))&&(a20==1)))&&!(a18==1)))))){ + a8 = 0; + a6 = 1; + a16 = 7; + a21 = 10; + a9 = 7; + a12 = 1; + return 22; + } else if(((((a4==1)||(!(a20==1)&&((((a21==10)&&((a3==1)&&(a17==2)))&&(a16==9))&&!(a18==1))))&&!(a18==1))&&((a19==2)&&(!(a7==1)&&((((a1==12)&&((a11==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1))))&&(a9==9))&&(a12==1)))))){ + a5 = 5; + a19 = 5; + a9 = 11; + a0 = 1; + a29 = 0; + a1 = 13; + a16 = 10; + a7 = 1; + return -1; + } else if(((((!(a20==1)&&((a23==1)&&(((((a1==13)&&(a5==6))&&(a9==11))||(((a5==4)&&(a1==14))&&(a9==7)))&&(input==6))))&&(a21==11))&&!(a24==1))&&(((!(a18==1)&&((a16==8)&&((((a17==2)&&(a28==1))&&(a19==5))||!(a28==1))))||!(a13==1))||!(a23==1)))){ + a20 = 1; + a9 = 8; + a11 = 0; + a19 = 1; + a14 = 1; + a5 = 6; + a16 = 7; + a18 = 1; + a1 = 13; + a21 = 10; + return 26; + } else if(((((a16==10)&&((a17==2)&&(((((input==3)&&(a1==14))&&(a9==9))&&(a21==11))&&(a5==6))))&&(a2==1))&&(((((a6==1)&&((!(a18==1)&&(!(a27==1)&&(a3==1)))&&(a19==4)))&&!(a20==1))||!(a23==1))&&(a23==1)))){ + a19 = 2; + a1 = 12; + a10 = 1; + a16 = 7; + a7 = 1; + a21 = 10; + a29 = 0; + a9 = 11; + a20 = 1; + return -1; + } else if(((((!(a28==1)||(((a24==1)||((a16==8)&&(a12==1)))&&(a23==1)))&&(a19==1))&&(a9==11))&&(((a1==12)&&(((a3==1)&&(((((input==3)&&((a5==5)||(a5==6)))&&!(a24==1))&&(a17==2))&&(a11==1)))&&!(a20==1)))&&(a21==10)))){ + a20 = 1; + a18 = 0; + a9 = 7; + a5 = 4; + a24 = 0; + a16 = 7; + return -1; + } else if((((!(a12==1)||((((a6==1)&&!(a18==1))&&(a12==1))&&(a17==2)))&&(a20==1))&&(((a16==10)&&((a6==1)&&((((a19==1)&&((a23==1)&&(((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8)))&&(input==6))))&&(a21==12))&&(a6==1))))&&(a1==14)))){ + a13 = 1; + a27 = 0; + a9 = 9; + a5 = 6; + a19 = 2; + a0 = 0; + a1 = 13; + a21 = 11; + return 21; + } else if(((((a20==1)&&((a28==1)&&(!(a18==1)&&((a17==2)&&((a23==1)&&(!(a4==1)&&((input==5)&&((a5==4)||(a5==5)))))))))&&(a19==5))&&((a16==7)&&(((!(a27==1)&&(!(a27==1)&&((a9==8)&&(a11==1))))&&(a1==13))&&(a21==10))))){ + if((a24==1)){ + a6 = 1; + a5 = 6; + a4 = 0; + a14 = 0; + a20 = 0; + a9 = 10; + a21 = 12; + a1 = 14; + a19 = 2; + }else{ + a19 = 3; + a21 = 12; + a12 = 1; + a24 = 0; + a5 = 6; + a1 = 12; + a9 = 10; + } + return 23; + } else if(((((a1==14)&&((!(a26==1)&&(!(a20==1)&&(a12==1)))&&(a16==10)))&&(a9==10))&&((((a13==1)&&((a3==1)&&((a6==1)&&(((a11==1)&&((a17==2)&&((input==3)&&(a5==5))))&&(a21==11)))))&&(a19==2))&&!(a8==1)))){ + a21 = 10; + a28 = 0; + a9 = 7; + a26 = 1; + a22 = 0; + a19 = 1; + a20 = 1; + a16 = 7; + a1 = 13; + return -1; + } else if((((a1==13)&&(((a6==1)&&((a16==10)&&(!(a8==1)&&(((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a14==1)))))&&!(a20==1)))&&(((!(a12==1)||(((a9==9)&&((a24==1)||((a21==12)&&(a12==1))))&&!(a27==1)))&&(a19==2))&&(a17==2)))){ + a9 = 7; + a21 = 10; + a1 = 14; + a3 = 0; + a16 = 11; + a19 = 3; + a22 = 0; + a23 = 0; + a5 = 5; + return -1; + } else if((((((a21==12)&&((a16==10)&&(a13==1)))&&(a19==5))||(a24==1))&&(((((((a20==1)&&(((((a1==14)&&(input==3))&&(a9==7))&&!(a7==1))&&(a5==4)))&&!(a27==1))&&(a17==2))&&(a3==1))&&(a12==1))&&!(a27==1)))){ + a21 = 10; + a28 = 1; + a16 = 7; + a19 = 1; + a1 = 12; + a6 = 1; + return -1; + } else if((((a20==1)&&((((a0==1)||((a2==1)&&(a5==4)))&&(a1==12))&&!(a7==1)))&&((a9==11)&&((a17==2)&&((((!(a14==1)&&((a28==1)&&((a12==1)&&((input==3)&&(a21==12)))))&&(a19==4))&&(a28==1))&&(a16==11)))))){ + a19 = 1; + a9 = 7; + a11 = 1; + a16 = 7; + a21 = 10; + a0 = 0; + a26 = 0; + return -1; + } else if(((((a16==8)&&(((((input==5)&&(a9==10))&&!(a27==1))&&(a11==1))&&(a17==2)))&&(a1==14))&&(((a5==6)&&((((a21==10)&&(!(a28==1)||(!(a7==1)&&((a20==1)&&(a28==1)))))||!(a11==1))||!(a23==1)))&&(a19==5)))){ + a9 = 7; + a8 = 0; + a5 = 4; + a24 = 0; + a19 = 1; + a1 = 12; + a14 = 0; + a16 = 7; + return -1; + } else if(((((a16==10)&&(!(a24==1)&&(!(a4==1)&&((((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&(a21==11))&&(a19==1)))))&&(a20==1))&&((a4==1)||(((a9==8)&&((a24==1)||(!(a26==1)&&((a17==2)&&((a13==1)&&(a1==13))))))&&(a2==1))))){ + a9 = 7; + a21 = 10; + a0 = 0; + a24 = 0; + a5 = 5; + a6 = 1; + a1 = 12; + return 21; + } else if((((((a21==12)&&(((a3==1)&&((a1==14)&&(((input==1)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10))))&&!(a7==1))))&&!(a24==1)))&&!(a4==1))&&!(a4==1))&&(((a20==1)&&((a17==2)&&(((a3==1)&&(a16==11))&&(a19==2))))||!(a2==1)))){ + a18 = 0; + a5 = 4; + a21 = 10; + a1 = 12; + a9 = 7; + a19 = 1; + a2 = 1; + a16 = 7; + a24 = 0; + return -1; + } else if((((a1==13)&&((a19==5)&&((((((input==1)&&((a5==5)||(a5==6)))&&(a12==1))&&(a16==11))&&(a2==1))&&!(a0==1))))&&((!(a2==1)||((((((a21==10)&&(a23==1))&&!(a4==1))&&(a9==10))||!(a23==1))&&(a20==1)))&&(a17==2)))){ + a19 = 1; + a1 = 12; + a23 = 1; + a16 = 7; + a11 = 1; + a5 = 4; + a9 = 7; + a8 = 0; + return -1; + } else if(((((a0==1)||(((((!(a20==1)&&(!(a23==1)||(a2==1)))&&(a19==4))&&!(a8==1))&&(a17==2))&&!(a8==1)))||!(a2==1))&&((((((a21==12)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1)))&&(a13==1))&&(a16==7))&&(a1==13))&&(a9==7)))){ + a5 = 4; + a8 = 0; + a1 = 12; + a20 = 1; + a21 = 10; + a28 = 1; + a18 = 0; + a19 = 1; + return -1; + } else if((((a16==11)&&((a11==1)&&((a21==11)&&((((!(a8==1)&&((!(a0==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&(a17==2)))&&(a9==10)))&&(a13==1))&&(a3==1))&&(a20==1)))))&&((a19==5)&&(!(a24==1)&&((a1==13)&&(a6==1)))))){ + a3 = 1; + a16 = 7; + a21 = 10; + a1 = 12; + a9 = 7; + a19 = 1; + a5 = 4; + a28 = 1; + a4 = 0; + return -1; + } else if(((((((a19==5)&&((a16==9)&&((!(a12==1)&&((a27==1)&&((input==4)&&((a5==5)||(a5==6)))))&&(a20==1))))&&!(a12==1))&&(a1==12))&&(a17==2))&&((a9==11)&&(((((a21==11)&&(a28==1))&&!(a13==1))&&!(a11==1))&&!(a13==1))))){ + a5 = 5; + a9 = 8; + a1 = 13; + a19 = 1; + a25 = 0; + a16 = 7; + a21 = 10; + a29 = 0; + return -1; + } else if((((a26==1)&&(!(a23==1)&&((!(a23==1)&&((a24==1)&&((a16==8)&&((((a6==1)&&(a20==1))&&(a21==10))&&(a0==1)))))&&(a18==1))))&&(((a19==5)&&((a1==13)&&((a9==9)&&((input==3)&&((a5==4)||(a5==5))))))&&(a17==2)))){ + a5 = 6; + a25 = 0; + a14 = 1; + a16 = 7; + a19 = 1; + a6 = 0; + a1 = 12; + a9 = 10; + return 25; + } else if(((((!(a24==1)&&((a4==1)||((a1==13)&&((((a23==1)||!(a6==1))&&(a5==6))||!(a28==1)))))&&(a21==10))&&(a19==1))&&(!(a20==1)&&((a17==2)&&((a16==11)&&(!(a27==1)&&(((a9==8)&&(input==4))&&!(a14==1)))))))){ + a16 = 7; + a3 = 0; + a19 = 4; + a1 = 14; + a2 = 0; + a21 = 11; + return -1; + } else if(((!(a26==1)&&(!(a27==1)&&(!(a14==1)&&((input==3)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11)))))))&&((a7==1)||((!(a2==1)||((a21==11)&&((a19==4)&&(((a17==2)&&(((a3==1)&&(a16==10))&&!(a20==1)))&&(a1==12)))))&&!(a7==1))))){ + a22 = 1; + a0 = 1; + a21 = 10; + a16 = 7; + a5 = 5; + a20 = 1; + a9 = 10; + a19 = 2; + a7 = 1; + return 21; + } else if((((((((a9==11)&&(((a23==1)&&((input==4)&&(a19==3)))&&(a5==4)))&&!(a26==1))&&!(a27==1))&&(a21==10))&&(a16==9))&&((!(a26==1)&&((((a17==2)&&((a28==1)&&!(a14==1)))&&!(a20==1))&&(a1==14)))&&(a11==1)))){ + a15 = 0; + a5 = 6; + a29 = 0; + a25 = 1; + a19 = 1; + a20 = 1; + a21 = 11; + a9 = 9; + a16 = 10; + return 22; + } else if((((!(a23==1)||((a23==1)&&(((((a28==1)&&(a21==10))&&(a19==3))||(a14==1))&&!(a20==1))))||(a26==1))&&(((a17==2)&&((a1==14)&&((a9==11)&&((a16==10)&&(((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&!(a18==1))))))&&(a3==1)))){ + if((a3==1)){ + a9 = 9; + a10 = 1; + a16 = 7; + a13 = 0; + a5 = 6; + a19 = 1; + a20 = 1; + a15 = 1; + }else{ + a16 = 8; + a11 = 0; + a5 = 6; + a14 = 1; + a19 = 2; + a9 = 8; + a25 = 0; + a21 = 11; + } + return -1; + } else if(((((a21==11)&&((((a20==1)&&((((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))&&(input==4))&&!(a24==1)))&&(a19==2))&&(a1==12)))&&!(a7==1))&&(((a11==1)&&((a18==1)||((a12==1)&&(((a3==1)&&(a16==9))&&(a17==2)))))&&!(a0==1)))){ + a9 = 7; + a16 = 7; + a7 = 0; + a19 = 1; + a21 = 10; + a2 = 1; + a5 = 4; + return -1; + } else if((((a21==11)&&((a19==3)&&((!(a20==1)&&(!(a24==1)&&((a17==2)&&((a3==1)&&(a16==7)))))&&(a1==14))))&&((a28==1)&&(!(a4==1)&&((!(a18==1)&&(((input==1)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&!(a7==1)))&&(a13==1)))))){ + a6 = 1; + a20 = 1; + a9 = 7; + a19 = 5; + a4 = 0; + a16 = 10; + a5 = 5; + return 25; + } else if((((((a16==8)&&(((!(a20==1)&&(a13==1))&&(a17==2))&&(a6==1)))&&(a1==13))||!(a23==1))&&((a3==1)&&(((a19==2)&&((!(a4==1)&&(((input==3)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5))))&&(a13==1)))&&!(a24==1)))&&(a21==11))))){ + a9 = 7; + a21 = 10; + a19 = 1; + a1 = 12; + a20 = 1; + a16 = 7; + a7 = 0; + a5 = 4; + a8 = 0; + return -1; + } else if((((a6==1)&&((((a1==13)&&((a21==10)&&((((a12==1)||(a14==1))&&!(a20==1))||(a7==1))))&&(a17==2))||!(a23==1)))&&(!(a0==1)&&((a16==7)&&(((a3==1)&&(((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a5==4)&&(a9==8)))&&(input==5)))&&(a19==2)))))){ + a9 = 7; + a0 = 0; + a3 = 1; + a19 = 1; + a1 = 12; + a20 = 1; + a5 = 4; + return -1; + } else if((((a21==11)&&(((((a5==5)||(a5==6))&&(input==3))&&!(a26==1))&&!(a26==1)))&&(((((a9==9)&&(!(a23==1)||((!(a12==1)||((a19==4)&&((a17==2)&&((a3==1)||!(a13==1)))))&&(a1==14))))&&(a12==1))&&(a20==1))&&(a16==8)))){ + a26 = 0; + a1 = 12; + a9 = 7; + a21 = 10; + a16 = 7; + a5 = 4; + a3 = 1; + a19 = 1; + a13 = 1; + return -1; + } else if((((!(a11==1)||((((a19==3)&&(a11==1))&&(a12==1))&&(a21==11)))&&(a17==2))&&((a1==13)&&(!(a4==1)&&(((a11==1)&&(!(a20==1)&&((a11==1)&&((a16==7)&&((((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(input==5))))))&&(a23==1)))))){ + a20 = 1; + a19 = 1; + a9 = 7; + a21 = 10; + a27 = 0; + a28 = 1; + a1 = 12; + a24 = 0; + a5 = 4; + return -1; + } else if((((a17==2)&&(!(a14==1)&&((!(a20==1)&&(((a14==1)||(((a11==1)||!(a11==1))||!(a28==1)))&&(a16==8)))&&(a19==5))))&&((a23==1)&&(((a21==12)&&((input==4)&&((((a5==6)&&(a1==12))&&(a9==11))||((a9==7)&&((a1==13)&&(a5==4))))))&&!(a0==1))))){ + a21 = 10; + a9 = 7; + a5 = 6; + a19 = 2; + a16 = 7; + a20 = 1; + a22 = 0; + a11 = 0; + a1 = 12; + a26 = 1; + return 25; + } else if((((a1==14)&&((((((a2==1)&&((a3==1)&&!(a24==1)))||(a14==1))||(a0==1))&&(a21==10))&&(a17==2)))&&((a20==1)&&((((!(a0==1)&&((input==4)&&(((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))))&&!(a24==1))&&(a19==4))&&(a16==10))))){ + a14 = 0; + a5 = 5; + a21 = 11; + a16 = 8; + a7 = 0; + a9 = 11; + a1 = 12; + a26 = 0; + return 25; + } else if(((((((a9==11)&&((a6==1)&&(!(a20==1)&&((a21==12)&&(input==4)))))&&(a2==1))&&(a5==4))&&(a19==2))&&((a17==2)&&(((!(a27==1)&&((a16==10)&&((a18==1)||((a1==14)&&(a2==1)))))||(a7==1))&&!(a24==1))))){ + a5 = 5; + a9 = 9; + a22 = 1; + a16 = 9; + a4 = 1; + a21 = 11; + a13 = 0; + a19 = 1; + a20 = 1; + a1 = 12; + return 22; + } else if((((a20==1)&&((!(a26==1)&&((a9==9)&&((((input==1)&&((a5==5)||(a5==6)))&&(a1==13))&&!(a18==1))))&&(a19==5)))&&(!(a13==1)||(((((a28==1)&&(((a16==7)&&(a28==1))&&!(a26==1)))||!(a2==1))&&(a17==2))&&(a21==10))))){ + a3 = 1; + a5 = 6; + a6 = 1; + a12 = 1; + a21 = 12; + a9 = 10; + a19 = 3; + return 25; + } else if((((a17==2)&&(!(a14==1)&&(((a21==11)&&((((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))&&(input==4))&&(a1==12)))&&!(a4==1))))&&((a12==1)&&((!(a6==1)||((!(a13==1)||(((a6==1)&&(a16==11))||!(a28==1)))&&(a19==2)))&&(a20==1))))){ + a21 = 10; + a13 = 1; + a9 = 7; + a19 = 1; + a16 = 7; + a7 = 0; + a26 = 0; + a5 = 4; + return -1; + } else if((((a1==13)&&(((a16==11)&&((a9==7)&&((a23==1)&&(((a23==1)&&((a3==1)&&(a12==1)))||!(a3==1)))))&&(a5==5)))&&(((((!(a27==1)&&((input==6)&&!(a20==1)))&&!(a27==1))&&(a17==2))&&(a21==10))&&(a19==1)))){ + a18 = 1; + a2 = 0; + a16 = 7; + a8 = 1; + a1 = 12; + a20 = 1; + return -1; + } else if(((((((!(a24==1)&&((((a6==1)&&(a19==1))||!(a11==1))||!(a13==1)))&&(a17==2))&&(a13==1))&&(a1==14))&&(a16==8))&&((a21==10)&&(!(a20==1)&&(!(a24==1)&&(((((a5==4)||(a5==5))&&(input==4))&&!(a0==1))&&(a9==8))))))){ + a1 = 12; + a5 = 4; + a9 = 7; + a16 = 7; + a20 = 1; + a26 = 0; + a11 = 1; + return -1; + } else if(((((!(a24==1)&&((a28==1)&&((((((a5==4)||(a5==5))&&(input==3))&&(a16==8))&&(a9==10))&&!(a4==1))))&&!(a20==1))&&!(a14==1))&&((!(a24==1)&&((a21==11)&&((a19==5)&&((a1==14)&&((a12==1)&&(a17==2))))))||(a14==1)))){ + a14 = 1; + a16 = 7; + a1 = 13; + a2 = 0; + a21 = 10; + a5 = 5; + a20 = 1; + a10 = 0; + a19 = 1; + return 25; + } else if((((a9==11)&&((a16==10)&&(((a21==12)&&((a17==2)&&(((a19==1)&&(!(a12==1)||((a13==1)&&(a1==12))))||!(a11==1))))&&(a23==1))))&&((a13==1)&&((a20==1)&&((a28==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&!(a14==1))))))){ + if((a8==1)){ + a20 = 0; + a18 = 0; + a21 = 10; + a14 = 0; + a26 = 0; + a19 = 5; + a5 = 4; + a16 = 8; + }else{ + a1 = 14; + a16 = 7; + a9 = 10; + a21 = 10; + a0 = 0; + a19 = 2; + a5 = 6; + } + return 21; + } else if(((((!(a27==1)&&((a3==1)&&(a19==1)))&&(a21==11))&&(a20==1))&&(((((((a6==1)&&(((a11==1)&&((input==6)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))))&&(a16==11)))&&!(a4==1))&&(a6==1))&&(a23==1))&&(a1==14))&&(a17==2)))){ + a9 = 10; + a1 = 13; + a19 = 4; + a14 = 0; + a24 = 0; + a5 = 5; + a16 = 8; + return 25; + } else if(((((((((a19==2)&&(((a16==11)&&((input==5)&&(((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))))&&!(a8==1)))&&!(a7==1))&&(a28==1))&&(a20==1))&&(a21==11))&&(a17==2))&&(!(a0==1)&&(((a27==1)||((a12==1)&&(a11==1)))&&(a1==14))))){ + a14 = 0; + a3 = 1; + a16 = 7; + a5 = 4; + a1 = 12; + a27 = 0; + a9 = 7; + a19 = 1; + a21 = 10; + return -1; + } else if((((a9==9)&&((((((a2==1)&&(a2==1))&&(a16==7))&&(a19==2))&&(a11==1))&&!(a27==1)))&&((!(a20==1)&&(((((((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&(a17==2))&&!(a24==1))&&(a21==11))&&(a23==1))&&(a1==14)))&&!(a26==1)))){ + a9 = 7; + a28 = 1; + a21 = 10; + a1 = 12; + a19 = 1; + a20 = 1; + a5 = 4; + return -1; + } else if(((((a16==8)&&((a19==5)&&((!(a4==1)&&((a2==1)&&((input==6)&&(a17==2))))&&(a21==10))))&&(a1==12))&&((a9==7)&&(!(a26==1)&&(((!(a11==1)||(((a23==1)&&!(a7==1))&&!(a20==1)))&&(a23==1))&&(a5==6)))))){ + a5 = 5; + a1 = 14; + a20 = 1; + a9 = 8; + a16 = 7; + a14 = 0; + a19 = 2; + a24 = 0; + return 26; + } else if(((((((a19==5)&&(((a16==8)&&(a28==1))||(a26==1)))&&(a21==12))||!(a28==1))||!(a3==1))&&((a6==1)&&((a20==1)&&((!(a4==1)&&((((a1==14)&&((input==5)&&((a5==4)||(a5==5))))&&!(a0==1))&&(a17==2)))&&(a9==7)))))){ + a13 = 1; + a1 = 12; + a19 = 1; + a0 = 0; + a6 = 1; + a5 = 4; + a16 = 7; + a21 = 10; + return -1; + } else if(((((a5==5)&&(((a16==10)&&((a1==12)&&((((input==3)&&(a9==10))&&(a2==1))&&(a17==2))))&&(a19==1)))&&(a21==11))&&(!(a20==1)&&(((a11==1)&&(!(a11==1)||((!(a4==1)&&(a12==1))&&(a12==1))))&&(a6==1))))){ + a20 = 1; + a9 = 7; + a23 = 0; + a19 = 4; + a21 = 12; + a16 = 8; + a29 = 1; + a10 = 0; + a5 = 6; + return -1; + } else if((((a23==1)&&((((!(a18==1)&&(((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a17==2)))&&(a21==10))&&(a9==10))&&(a20==1)))&&(((a27==1)||((a24==1)||((a19==3)&&((a1==12)&&((a28==1)&&((a13==1)&&(a28==1)))))))&&(a16==9)))){ + a19 = 1; + a16 = 7; + a5 = 4; + a4 = 0; + a14 = 0; + a9 = 7; + return -1; + } else if(((((!(a23==1)||(((a7==1)||((a17==2)&&((a12==1)&&(a1==13))))&&(a16==8)))&&(a9==11))&&!(a20==1))&&((a21==10)&&((!(a8==1)&&(((a6==1)&&(((input==1)&&((a5==5)||(a5==6)))&&(a3==1)))&&!(a4==1)))&&(a19==3))))){ + a3 = 1; + a5 = 5; + a20 = 1; + a8 = 0; + a9 = 10; + a19 = 2; + a1 = 14; + a16 = 9; + a27 = 0; + return 21; + } else if(((((a6==1)&&(!(a8==1)&&(!(a26==1)&&(((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4)))&&(input==4)))))&&(a1==12))&&(((a17==2)&&((a19==4)&&((a7==1)||(!(a20==1)&&(((a4==1)||((a23==1)&&(a21==10)))&&!(a14==1))))))&&(a16==11)))){ + a10 = 0; + a19 = 3; + a26 = 1; + a5 = 5; + a9 = 8; + a1 = 14; + a0 = 1; + a16 = 9; + a20 = 1; + return -1; + } else if((((a17==2)&&((!(a20==1)&&((a21==10)&&(!(a28==1)||((((a2==1)&&!(a8==1))&&!(a27==1))&&(a11==1)))))&&(a16==8)))&&((((((a9==7)&&((a5==5)&&(input==6)))&&(a1==14))&&(a28==1))&&(a19==5))&&(a28==1)))){ + a4 = 0; + a16 = 7; + a20 = 1; + a8 = 0; + a5 = 4; + a1 = 12; + a28 = 1; + a19 = 1; + return -1; + } else if((((a17==2)&&(((((a9==8)&&(((a12==1)||!(a28==1))||(a7==1)))||!(a6==1))&&!(a8==1))&&(a1==14)))&&(((a21==11)&&((a16==11)&&(((a2==1)&&((a13==1)&&(((a5==4)||(a5==5))&&(input==6))))&&(a19==1))))&&(a20==1)))){ + a1 = 12; + a16 = 7; + a6 = 1; + a18 = 0; + a21 = 10; + a5 = 4; + a9 = 7; + a13 = 1; + return -1; + } else if(((((!(a20==1)&&((a1==14)&&((a19==4)&&(a11==1))))&&(a17==2))||!(a2==1))&&(!(a4==1)&&((((a21==12)&&(((a3==1)&&(((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==4))&&(a16==7)))&&(a3==1)))&&(a11==1))&&!(a0==1))))){ + a21 = 11; + a5 = 5; + a24 = 0; + a9 = 11; + a28 = 1; + a11 = 1; + a20 = 1; + a16 = 8; + a1 = 12; + return 25; + } else if(((((a12==1)&&(((!(a0==1)&&(((((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==5))&&(a21==11))||(((a19==1)&&((a9==7)&&((a5==4)&&(a1==12))))&&(a21==12)))||((a21==12)&&((((a1==12)&&(a5==5))&&(a9==7))&&(a19==1))))&&(input==1)))&&!(a7==1))&&(a2==1)))&&(a17==2))&&((!(a4==1)&&(((a16==9)&&(a11==1))||!(a6==1)))&&!(a20==1)))){ + a21 = 11; + a9 = 9; + a19 = 5; + a16 = 8; + a5 = 5; + a26 = 1; + a23 = 0; + a1 = 14; + a14 = 1; + return 25; + } else if((((((((a5==4)&&((a19==3)&&(!(a11==1)||(a6==1))))&&(a17==2))&&!(a20==1))||!(a13==1))||(a4==1))&&((((((((input==1)&&(a21==11))&&(a16==10))&&!(a7==1))&&(a9==7))&&(a1==13))&&(a28==1))&&!(a7==1)))){ + a8 = 1; + a21 = 12; + a5 = 6; + a16 = 7; + a27 = 1; + a3 = 0; + a19 = 4; + a9 = 8; + return -1; + } else if((((a1==13)&&(!(a20==1)&&((!(a18==1)&&(((a19==2)&&(!(a0==1)&&((a17==2)&&(input==3))))&&!(a18==1)))&&(a16==8))))&&((a21==11)&&((a12==1)&&((a12==1)&&((a5==5)&&((a9==11)&&((a28==1)&&!(a26==1))))))))){ + a21 = 10; + a9 = 7; + a14 = 0; + a19 = 3; + a16 = 7; + a20 = 1; + a1 = 12; + return 26; + } else if((((a21==10)&&(((a6==1)&&(((a23==1)&&((((input==1)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(a20==1))&&!(a0==1)))&&(a23==1)))&&(a1==14)))&&((((a16==8)&&((a19==1)&&((a28==1)&&!(a8==1))))&&(a2==1))&&(a17==2)))){ + a9 = 7; + a0 = 0; + a5 = 4; + a6 = 1; + a1 = 12; + a23 = 1; + a16 = 7; + return -1; + } else if(((!(a20==1)&&((((a1==13)&&((a19==4)&&(a3==1)))&&(a23==1))&&(a6==1)))&&((a17==2)&&((((((a2==1)&&((a11==1)&&(((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4)))&&(input==6))))&&(a16==7))&&!(a24==1))&&!(a8==1))&&(a21==11))))){ + a9 = 7; + a0 = 0; + a23 = 1; + a20 = 1; + a21 = 10; + a1 = 12; + a19 = 1; + a5 = 4; + a24 = 0; + return -1; + } else if((((((a2==1)&&(((a20==1)&&(!(a4==1)&&((a12==1)&&((a21==10)&&((input==5)&&(((((a1==14)&&(a5==6))&&(a9==11))&&(a19==4))||(((a9==7)&&((a1==12)&&(a5==4)))&&(a19==5))))))))&&(a17==2)))&&!(a26==1))&&(a28==1))&&(((a2==1)&&(a16==11))||(a0==1)))){ + a7 = 0; + a16 = 9; + a8 = 0; + a9 = 11; + a5 = 4; + a19 = 5; + a12 = 1; + a1 = 12; + a21 = 11; + return 21; + } else if((((a9==10)&&(((((((a20==1)&&(a23==1))||(a27==1))||!(a2==1))&&(a1==13))&&(a19==5))&&(a21==11)))&&((a17==2)&&(!(a14==1)&&(!(a8==1)&&((a12==1)&&((a5==6)&&(((a16==7)&&(input==3))&&(a3==1))))))))){ + a24 = 0; + a21 = 10; + a5 = 4; + a4 = 0; + a1 = 12; + a14 = 0; + a19 = 1; + a9 = 7; + return -1; + } else if((((a9==11)&&((a13==1)&&(!(a18==1)&&((a7==1)||((a16==8)&&(a2==1))))))&&(((a19==2)&&(((((((((a5==5)||(a5==6))&&(input==3))&&!(a26==1))&&!(a20==1))&&(a13==1))&&(a1==12))&&(a2==1))&&(a17==2)))&&(a21==12)))){ + if((a29==1)){ + a21 = 10; + a20 = 1; + a4 = 1; + a9 = 8; + a16 = 7; + a5 = 4; + a10 = 1; + a22 = 0; + }else{ + a9 = 10; + a1 = 14; + a5 = 4; + a24 = 1; + a20 = 1; + a16 = 11; + a13 = 0; + a26 = 1; + } + return -1; + } else if(((!(a14==1)&&(((((!(a26==1)&&((a5==5)&&((a19==4)&&(input==4))))&&(a17==2))&&(a16==11))&&!(a4==1))&&(a9==7)))&&(!(a26==1)&&(((a8==1)||(((a21==11)&&((a28==1)&&(a20==1)))&&(a1==13)))||(a4==1))))){ + a1 = 12; + a5 = 4; + a16 = 7; + a21 = 10; + a13 = 1; + a19 = 1; + a24 = 0; + a14 = 0; + return -1; + } else if((((a17==2)&&(((((a11==1)&&(a3==1))&&!(a8==1))&&(a20==1))&&(a19==4)))&&((a16==10)&&(((a1==12)&&(!(a24==1)&&((!(a7==1)&&((!(a7==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3)))&&(a9==9)))&&!(a4==1))))&&(a21==12))))){ + a12 = 1; + a16 = 7; + a19 = 1; + a3 = 1; + a5 = 4; + a13 = 1; + a9 = 7; + a21 = 10; + return -1; + } else if((((a13==1)&&(!(a11==1)||((a26==1)||((a5==6)&&((a3==1)&&(a9==10))))))&&(((a21==10)&&(((((a28==1)&&((a16==9)&&((a1==12)&&((a19==5)&&(input==4)))))&&!(a20==1))&&(a2==1))&&(a17==2)))&&!(a24==1)))){ + a16 = 8; + a9 = 8; + a26 = 1; + a19 = 1; + a25 = 1; + a5 = 4; + a0 = 1; + a20 = 1; + a1 = 14; + return 25; + } else if((((((a19==3)&&((!(a20==1)&&((a2==1)&&((a3==1)&&(((input==5)&&(((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))))&&!(a27==1)))))&&(a2==1)))&&(a17==2))&&(a1==12))&&((a21==10)&&((!(a14==1)&&(!(a26==1)&&(a28==1)))&&(a16==8))))){ + a11 = 1; + a21 = 12; + a26 = 0; + a16 = 9; + a5 = 4; + a9 = 9; + a20 = 1; + a28 = 1; + return 21; + } else if(((!(a27==1)&&((a19==1)&&((!(a28==1)||((a21==11)&&((a24==1)||((!(a23==1)||(a11==1))&&(a17==2)))))&&(a1==13))))&&(((!(a20==1)&&(((input==3)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&!(a4==1)))&&!(a14==1))&&(a16==10)))){ + a5 = 5; + a14 = 1; + a9 = 7; + a1 = 12; + a8 = 1; + a2 = 0; + return 21; + } else if(((((a16==9)&&(((a21==10)&&(input==5))&&(a20==1)))&&(a19==2))&&((a17==2)&&((a1==13)&&((a27==1)&&(((((((a9==10)&&((a3==1)&&!(a3==1)))&&(a4==1))&&(a5==4))&&!(a28==1))&&!(a23==1))&&(a18==1))))))){ + a1 = 14; + a19 = 1; + a9 = 11; + a15 = 0; + a14 = 1; + a16 = 7; + a29 = 0; + a5 = 6; + return -1; + } else if((((a6==1)&&(((a13==1)&&(((((a6==1)&&((a16==7)&&((input==4)&&((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11))))))&&!(a18==1))&&(a1==12))&&(a19==1)))&&(a17==2)))&&(((a21==11)&&(!(a27==1)&&((a2==1)&&(a20==1))))||!(a3==1)))){ + a21 = 10; + a5 = 4; + a9 = 7; + a7 = 0; + a11 = 1; + a6 = 1; + return -1; + } else if(((!(a2==1)||((a1==12)&&(((!(a28==1)||((a21==10)&&((a23==1)&&((a6==1)&&(a17==2)))))||(a26==1))&&!(a14==1))))&&((!(a20==1)&&(((a16==11)&&((a19==2)&&(((a5==4)||(a5==5))&&(input==6))))&&(a9==7)))&&(a13==1)))){ + a3 = 0; + a16 = 7; + a1 = 14; + a0 = 1; + a25 = 1; + a20 = 1; + a9 = 10; + a19 = 1; + a5 = 6; + return -1; + } else if(((((a13==1)&&((((a9==7)&&((((a17==2)&&(((a5==5)||(a5==6))&&(input==1)))&&(a11==1))&&(a19==5)))&&(a21==10))&&(a20==1)))&&(a16==7))&&((a4==1)||(((((a18==1)||(a23==1))||!(a28==1))&&(a28==1))&&(a1==13))))){ + a5 = 4; + a6 = 1; + a8 = 0; + a13 = 1; + a1 = 12; + a19 = 1; + return -1; + } else if(((!(a3==1)&&((((((a21==12)&&((a17==2)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==5))))&&(a7==1))&&(a24==1))&&(a27==1))&&(a19==2)))&&((a0==1)&&(((((a11==1)&&!(a6==1))&&(a16==10))&&(a20==1))&&(a1==14))))){ + a21 = 10; + a5 = 5; + a9 = 11; + a22 = 0; + a27 = 1; + a19 = 1; + a2 = 0; + return -1; + } else if(((!(a28==1)||(((a16==7)&&((a19==1)&&(!(a20==1)&&((a28==1)&&(a21==12)))))&&(a1==13)))&&(((!(a0==1)&&((a17==2)&&((a13==1)&&((a3==1)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==6))))))&&(a6==1))&&(a13==1)))){ + a19 = 2; + a7 = 0; + a24 = 0; + a8 = 0; + a5 = 5; + a9 = 8; + a20 = 1; + a16 = 10; + return 21; + } else if((((a19==2)&&((((a20==1)&&(!(a26==1)&&(a28==1)))&&(a11==1))||(a4==1)))&&((a17==2)&&(((a9==8)&&((!(a8==1)&&((a23==1)&&((a21==12)&&(((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a6==1)))))&&(a16==10)))&&(a1==12))))){ + a24 = 0; + a16 = 7; + a19 = 1; + a9 = 7; + a5 = 4; + a21 = 10; + a12 = 1; + return -1; + } else if((((a21==10)&&(((a19==4)&&(((a28==1)&&(!(a11==1)||(a6==1)))||(a27==1)))&&(a20==1)))&&((((!(a18==1)&&((((((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==1))&&(a28==1))&&(a16==7)))&&!(a7==1))&&(a1==14))&&(a17==2)))){ + a21 = 12; + a12 = 1; + a9 = 8; + a5 = 5; + a1 = 13; + a3 = 1; + a19 = 1; + a23 = 1; + return 22; + } else if(((((!(a14==1)&&((a6==1)&&(a5==6)))&&(a1==12))&&(a17==2))&&((!(a27==1)&&((((a12==1)&&(((a9==11)&&(((a16==8)&&((input==3)&&(a21==11)))&&!(a20==1)))&&(a19==5)))&&!(a14==1))&&!(a24==1)))&&!(a18==1)))){ + a1 = 13; + a5 = 5; + a19 = 1; + a20 = 1; + a21 = 10; + a12 = 0; + a13 = 0; + a8 = 1; + a9 = 10; + a16 = 7; + return 25; + } else if((((a2==1)&&((a9==7)&&((((input==6)&&(a20==1))&&(a5==5))&&!(a7==1))))&&((a1==13)&&((a21==11)&&((a16==11)&&(((a24==1)||((a6==1)&&(!(a23==1)||((a28==1)&&((a11==1)&&(a19==4))))))&&(a17==2))))))){ + a19 = 1; + a24 = 0; + a16 = 7; + a4 = 0; + a5 = 4; + a12 = 1; + a1 = 12; + a21 = 10; + return -1; + } else if((((a1==14)&&(((((((a19==4)&&(input==1))&&(a5==4))&&(a21==10))&&!(a24==1))&&(a3==1))&&!(a24==1)))&&((!(a4==1)&&(!(a20==1)&&(((((a3==1)&&(a9==7))||!(a12==1))&&(a16==9))||!(a6==1))))&&(a17==2)))){ + a19 = 1; + a1 = 12; + a20 = 1; + a5 = 6; + a22 = 1; + a9 = 9; + a16 = 7; + a24 = 1; + a10 = 1; + return -1; + } else if(((((!(a0==1)&&(((((a9==10)&&(input==4))&&(a21==12))&&!(a4==1))&&!(a18==1)))&&(a17==2))&&(a1==12))&&(((a16==10)&&(((!(a18==1)&&(((a3==1)||(a26==1))||(a14==1)))&&(a20==1))&&(a5==6)))&&(a19==5)))){ + a11 = 1; + a1 = 14; + a19 = 4; + a24 = 0; + a16 = 7; + a9 = 11; + a21 = 10; + a5 = 5; + return 25; + } else if(((((a20==1)&&((((((a11==1)&&(a16==11))&&(a8==1))&&(a18==1))&&(a21==10))&&(a8==1)))&&(a17==2))&&(((a5==5)&&((!(a12==1)&&(((a1==12)&&((a9==11)&&(input==1)))&&(a14==1)))&&(a4==1)))&&(a19==3)))){ + a22 = 0; + a24 = 1; + a19 = 1; + a5 = 4; + a16 = 7; + a15 = 0; + a1 = 14; + a9 = 7; + return 21; + } else if((((((((((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))&&(input==5))&&(a19==5))&&(a3==1))&&!(a20==1))&&(a1==14))&&(a28==1))&&(((!(a0==1)&&((((!(a23==1)||(a28==1))&&(a21==10))&&(a16==10))&&!(a14==1)))&&(a17==2))||(a26==1)))){ + a20 = 1; + a4 = 1; + a5 = 5; + a14 = 1; + a1 = 12; + a9 = 8; + a16 = 7; + a12 = 0; + a19 = 1; + return 21; + } else if(((!(a13==1)&&(((a7==1)&&(!(a2==1)&&((a19==2)&&((a12==1)&&(a21==10)))))&&(a16==8)))&&((((a8==1)&&(((a1==13)&&((a17==2)&&(!(a13==1)&&((input==3)&&((a5==5)||(a5==6))))))&&(a9==7)))&&!(a20==1))&&!(a23==1)))){ + a16 = 7; + a19 = 1; + a20 = 1; + a5 = 6; + a29 = 1; + a7 = 1; + return -1; + } else if((((a13==1)&&(((a16==11)&&((a0==1)||(a11==1)))&&!(a20==1)))&&(((((a19==2)&&(((((a1==12)&&((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))&&(input==5)))&&(a23==1))&&!(a26==1))&&(a2==1)))&&(a21==10))&&(a17==2))&&!(a14==1)))){ + a24 = 1; + a19 = 1; + a4 = 1; + a5 = 4; + a16 = 7; + a9 = 11; + a20 = 1; + a1 = 13; + a11 = 0; + return 23; + } else if((((a19==1)&&((!(a20==1)&&(((((a5==5)||(a5==6))&&(input==4))&&!(a18==1))&&(a9==9)))&&(a16==8)))&&((((a17==2)&&(!(a23==1)||((!(a7==1)&&(!(a24==1)&&((a3==1)||!(a12==1))))||(a7==1))))&&(a21==11))&&(a1==13)))){ + a16 = 7; + a18 = 0; + a21 = 10; + a4 = 0; + a20 = 1; + a5 = 4; + a9 = 7; + a2 = 1; + a1 = 12; + return -1; + } else if(((((!(a24==1)&&((a13==1)&&((a17==2)&&((a16==9)&&((a23==1)&&(!(a4==1)&&((((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&(a19==1))&&(a20==1))))))))&&(a2==1))&&(a21==12))&&((a1==12)&&((a24==1)||((a6==1)&&(a9==9)))))){ + if((a11==1)){ + a14 = 0; + a16 = 8; + a19 = 4; + a13 = 1; + a20 = 0; + a12 = 1; + a21 = 11; + a5 = 5; + a9 = 8; + }else{ + a21 = 10; + a18 = 0; + a28 = 1; + a13 = 1; + a9 = 10; + a5 = 4; + a19 = 2; + a1 = 13; + a16 = 7; + } + return 21; + } else if((((!(a28==1)||((((a3==1)&&!(a18==1))&&(a20==1))||!(a2==1)))&&!(a0==1))&&(!(a14==1)&&((a1==12)&&((a19==5)&&(((a3==1)&&(((a21==10)&&(((input==3)&&(a9==10))&&(a16==11)))&&(a5==6)))&&(a17==2))))))){ + a16 = 7; + a5 = 4; + a0 = 0; + a24 = 0; + a19 = 1; + a9 = 7; + a23 = 1; + return -1; + } else if((((a28==1)&&(((a16==9)&&((((a13==1)&&(((((a21==10)&&(input==5))&&(a19==3))&&!(a20==1))&&(a9==8)))&&(a1==14))&&(a13==1)))&&(a17==2)))&&(!(a18==1)&&(((a5==5)&&((a13==1)||(a8==1)))&&(a3==1))))){ + a29 = 1; + a1 = 13; + a5 = 4; + a9 = 10; + a15 = 1; + a19 = 1; + a20 = 1; + a16 = 7; + a11 = 0; + return -1; + } else if(((((a21==12)&&(((a19==2)&&((a17==2)&&((a16==7)&&((a1==14)&&((((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&!(a6==1))&&!(a12==1))))))&&(a4==1)))&&!(a13==1))&&(((a24==1)&&(!(a20==1)&&((a6==1)&&(a9==11))))&&(a27==1)))){ + a13 = 0; + a19 = 1; + a16 = 8; + a8 = 1; + a1 = 13; + a20 = 1; + a21 = 11; + a5 = 6; + a14 = 1; + a9 = 8; + return 23; + } else if((((((!(a20==1)&&((a1==13)&&((!(a26==1)&&(a11==1))&&(a19==4))))&&(a21==11))||(a26==1))&&(a16==7))&&((a17==2)&&(!(a26==1)&&((!(a7==1)&&(((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))&&(input==4))&&(a23==1)))&&!(a7==1)))))){ + a19 = 1; + a23 = 1; + a1 = 12; + a9 = 7; + a3 = 1; + a21 = 10; + a20 = 1; + a5 = 4; + return -1; + } else if((((!(a4==1)&&((((a13==1)&&(a21==12))&&(a19==4))&&(a28==1)))||(a4==1))&&((((!(a4==1)&&((a17==2)&&((a16==8)&&((input==1)&&((((a1==13)&&(a5==6))&&(a9==11))||(((a1==14)&&(a5==4))&&(a9==7)))))))&&!(a20==1))&&!(a18==1))&&!(a7==1)))){ + a24 = 1; + a19 = 2; + a21 = 10; + a9 = 7; + a16 = 7; + a5 = 5; + a20 = 1; + a1 = 12; + a22 = 1; + a29 = 1; + return -1; + } else if(((((((((((a7==1)||(a2==1))&&(a16==10))&&(a9==9))&&(a19==1))&&!(a20==1))&&(a1==14))||!(a11==1))&&(a28==1))&&((!(a27==1)&&(((a21==12)&&(((input==4)&&((a5==4)||(a5==5)))&&(a17==2)))&&(a12==1)))&&!(a4==1)))){ + a21 = 11; + a28 = 0; + a20 = 1; + a5 = 4; + a8 = 1; + a6 = 0; + a16 = 7; + return -1; + } return calculate_output49(input); + } + + int calculate_output49(int input) { + if((((a14==1)||(!(a13==1)||((a9==11)&&((a19==4)&&((a21==12)&&((a5==6)&&(a12==1)))))))&&((a13==1)&&(((((((a17==2)&&((input==4)&&!(a20==1)))&&(a16==9))&&(a12==1))&&(a23==1))&&(a1==12))&&(a6==1))))){ + if((a25==1)){ + a18 = 1; + a16 = 11; + a22 = 1; + a9 = 8; + a19 = 1; + a21 = 10; + a5 = 4; + a25 = 0; + }else{ + a21 = 10; + a16 = 7; + a20 = 1; + a9 = 10; + a22 = 0; + a14 = 1; + a1 = 14; + a19 = 1; + a29 = 0; + } + return 26; + } else if(((((a19==4)&&(((a1==13)&&(!(a7==1)&&((a17==2)&&((input==4)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))))))&&(a16==11)))&&!(a24==1))&&(!(a27==1)&&((((a21==11)&&(((a3==1)&&!(a27==1))&&(a28==1)))&&(a20==1))&&(a13==1))))){ + a16 = 7; + a5 = 4; + a6 = 1; + a19 = 1; + a21 = 10; + a1 = 12; + a9 = 7; + a2 = 1; + return -1; + } else if((((a16==9)&&(((a19==4)&&(((a21==12)&&(a3==1))&&!(a20==1)))&&!(a26==1)))&&(!(a14==1)&&((((a1==12)&&((!(a14==1)&&((a17==2)&&((input==5)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10))))))&&(a3==1)))&&!(a24==1))&&(a6==1))))){ + a1 = 13; + a12 = 0; + a5 = 5; + a28 = 0; + a19 = 1; + a8 = 1; + a20 = 1; + a9 = 10; + a16 = 11; + a21 = 11; + return -1; + } else if((((!(a4==1)&&((((a17==2)&&(((((a20==1)&&((input==5)&&(a16==11)))&&(a21==10))&&!(a26==1))&&(a19==1)))&&(a6==1))&&(a28==1)))&&!(a14==1))&&((a9==11)&&(!(a4==1)&&((a1==14)&&((a5==6)&&(a3==1))))))){ + a2 = 1; + a5 = 4; + a0 = 0; + a1 = 12; + a16 = 7; + a9 = 7; + a7 = 0; + return -1; + } else if((((a17==2)&&((a19==2)&&((((a27==1)||((a6==1)&&(a13==1)))&&(a28==1))&&(a1==14))))&&((a21==12)&&(((a9==9)&&(!(a24==1)&&(!(a18==1)&&((((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a16==10))&&!(a20==1)))))&&(a11==1))))){ + a5 = 5; + a20 = 1; + a25 = 1; + a21 = 10; + a16 = 7; + a24 = 1; + a18 = 1; + a1 = 12; + return -1; + } else if((((a11==1)&&((a1==12)&&(((a13==1)&&(((a16==7)&&((input==1)&&((a5==5)||(a5==6))))&&(a11==1)))&&(a19==4))))&&((((!(a26==1)&&(((a9==7)&&((a12==1)&&(a17==2)))&&(a21==11)))&&!(a20==1))&&!(a8==1))&&(a11==1)))){ + a16 = 8; + a5 = 5; + a9 = 8; + a26 = 0; + a23 = 1; + a19 = 1; + a8 = 0; + a1 = 13; + return 22; + } else if((((!(a27==1)&&((((a16==10)&&((a5==5)&&(((input==6)&&(a1==14))&&(a17==2))))&&!(a7==1))&&(a2==1)))&&(a12==1))&&(((a21==12)&&(((a9==7)&&((a8==1)||((a6==1)&&(a11==1))))&&!(a20==1)))&&(a19==5)))){ + a18 = 1; + a5 = 6; + a20 = 1; + a21 = 10; + a1 = 13; + a16 = 7; + a25 = 0; + a19 = 1; + a15 = 1; + a9 = 9; + return -1; + } else if(((((!(a20==1)&&((a3==1)&&(a16==8)))&&(a1==13))||!(a28==1))&&((((a28==1)&&((a21==11)&&((((a2==1)&&(((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))&&(input==3))&&!(a26==1)))&&(a17==2))&&(a13==1))))&&(a11==1))&&(a19==2)))){ + a19 = 1; + a9 = 7; + a18 = 0; + a16 = 7; + a5 = 4; + a28 = 1; + a1 = 12; + a27 = 0; + a21 = 10; + a20 = 1; + return -1; + } else if((((a19==3)&&(((((a16==8)&&((input==6)&&((a5==4)||(a5==5))))&&!(a0==1))&&(a12==1))&&(a23==1)))&&((a6==1)&&(((a1==13)&&(((a21==12)&&(((a11==1)&&((a6==1)&&(a17==2)))||(a0==1)))&&(a20==1)))&&(a9==9))))){ + a3 = 1; + a9 = 7; + a27 = 0; + a21 = 10; + a16 = 7; + a19 = 1; + a1 = 12; + a5 = 4; + a28 = 1; + return -1; + } else if((((a20==1)&&((a11==1)&&(((a5==4)&&((((a16==8)&&((input==6)&&(a9==11)))&&(a13==1))&&(a17==2)))&&(a19==2))))&&(((((a1==14)&&(((a28==1)&&(a21==11))&&!(a27==1)))||(a14==1))||(a0==1))&&(a11==1)))){ + a1 = 12; + a14 = 0; + a19 = 1; + a7 = 0; + a9 = 7; + a21 = 10; + a16 = 7; + a18 = 0; + return -1; + } else if(((((a5==6)&&(!(a14==1)&&((a3==1)&&(((((a21==12)&&((input==4)&&(a20==1)))&&(a9==7))&&(a6==1))&&(a2==1)))))&&(a16==8))&&(((a17==2)&&((((a1==13)&&(a11==1))||!(a12==1))&&(a23==1)))&&(a19==3)))){ + a0 = 0; + a1 = 12; + a21 = 10; + a19 = 1; + a16 = 7; + a13 = 1; + a5 = 4; + return -1; + } else if(((((a19==1)&&(((a16==11)&&(!(a14==1)&&(((a13==1)&&(a21==10))&&!(a18==1))))&&(a1==12)))&&(a9==7))&&(((((a12==1)&&(!(a8==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a2==1))))&&(a28==1))&&(a20==1))&&(a17==2)))){ + a26 = 0; + a5 = 5; + a2 = 1; + a9 = 9; + a12 = 1; + a19 = 2; + a16 = 7; + a1 = 13; + return 25; + } else if(((((a24==1)||((((a16==10)&&(!(a8==1)&&((a19==5)&&((a3==1)&&(a17==2)))))&&(a21==12))&&!(a14==1)))||!(a2==1))&&(((a1==14)&&((a20==1)&&(((input==3)&&(((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))))&&(a28==1))))&&!(a7==1)))){ + a9 = 7; + a1 = 12; + a27 = 0; + a21 = 10; + a18 = 0; + a5 = 4; + a19 = 1; + a28 = 1; + a16 = 7; + return -1; + } else if(((((((!(a7==1)&&(a6==1))&&(a16==10))||(a7==1))||!(a23==1))||!(a3==1))&&((a21==10)&&((a19==5)&&((!(a4==1)&&(((((input==5)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(a23==1))&&(a1==14))&&!(a20==1)))&&(a17==2)))))){ + a19 = 1; + a9 = 7; + a18 = 1; + a5 = 4; + a20 = 1; + a26 = 1; + a1 = 13; + a16 = 7; + a24 = 1; + return -1; + } else if(((!(a7==1)&&(((a1==13)&&((a2==1)&&((a21==12)&&(((a16==9)&&((a5==6)&&(input==5)))&&(a17==2)))))&&(a9==7)))&&(((((a19==2)&&((!(a4==1)&&(a11==1))||!(a13==1)))&&!(a20==1))&&!(a24==1))&&(a23==1)))){ + if((a27==1)){ + a5 = 5; + a16 = 7; + a4 = 1; + a9 = 11; + a7 = 1; + a1 = 12; + a15 = 0; + a20 = 1; + a21 = 10; + }else{ + a9 = 8; + a16 = 7; + a28 = 0; + a29 = 0; + a19 = 1; + a1 = 12; + a20 = 1; + a13 = 0; + } + return -1; + } else if((((((a9==7)&&((!(a7==1)&&((a17==2)&&((a12==1)&&(a11==1))))||!(a3==1)))&&(a16==8))&&(a21==11))&&((!(a20==1)&&(((a11==1)&&((a11==1)&&((a2==1)&&(((a5==4)||(a5==5))&&(input==6)))))&&(a19==5)))&&(a1==13)))){ + a16 = 10; + a9 = 8; + a5 = 4; + a8 = 1; + a21 = 10; + a25 = 0; + a20 = 1; + a2 = 0; + a19 = 2; + return 23; + } else if(((!(a13==1)&&((((a21==10)&&(((a1==14)&&((a18==1)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))&&(input==6))))&&(a0==1)))&&(a20==1))&&(a19==4)))&&((a24==1)&&(!(a2==1)&&((a16==7)&&((a17==2)&&((a2==1)&&(a0==1)))))))){ + a1 = 12; + a10 = 0; + a23 = 0; + a26 = 1; + a9 = 9; + a21 = 11; + a19 = 3; + a16 = 10; + a5 = 6; + return 23; + } else if((((a20==1)&&(!(a28==1)||((a1==14)&&((a24==1)||((a13==1)||(a24==1))))))&&((a17==2)&&(((((a6==1)&&((((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==3))&&!(a27==1))&&!(a24==1)))&&(a19==1))&&(a16==7))&&(a21==12))))){ + a21 = 10; + a5 = 4; + a18 = 0; + a16 = 9; + a1 = 13; + a26 = 0; + a14 = 0; + a9 = 10; + return 23; + } else if((((a1==13)&&((a16==9)&&((!(a4==1)&&((a21==12)&&(!(a18==1)&&((((a12==1)&&!(a24==1))&&(a9==7))||(a0==1)))))&&(a19==2))))&&(!(a20==1)&&((((((a5==4)||(a5==5))&&(input==5))&&(a23==1))&&(a11==1))&&(a17==2))))){ + a0 = 1; + a20 = 1; + a1 = 14; + a12 = 0; + a16 = 10; + a5 = 5; + a9 = 10; + a21 = 11; + return -1; + } else if(((((a8==1)||((a12==1)&&(((a20==1)&&((a5==5)&&(a2==1)))&&(a1==13))))||!(a12==1))&&(((!(a0==1)&&((a17==2)&&(((a9==7)&&((a19==1)&&((a21==11)&&(input==6))))&&(a16==9))))&&!(a7==1))&&!(a14==1)))){ + a19 = 4; + a3 = 1; + a23 = 1; + a1 = 12; + a5 = 6; + a24 = 0; + return 21; + } else if((((a12==1)&&((!(a27==1)&&((((input==1)&&(a9==8))&&(a23==1))&&(a5==6)))&&!(a20==1)))&&((a8==1)||((a11==1)&&((a19==5)&&((((a17==2)&&(((a3==1)&&!(a26==1))&&(a1==12)))&&(a16==10))&&(a21==11))))))){ + a20 = 1; + a3 = 0; + a19 = 1; + a5 = 5; + a9 = 7; + a21 = 10; + a2 = 0; + a16 = 7; + a11 = 0; + a1 = 13; + return 22; + } else if((((((a23==1)&&((((a1==13)&&((a17==2)&&(a13==1)))&&!(a4==1))&&(a2==1)))&&!(a20==1))&&(a28==1))&&((((((a5==5)&&(((a19==5)&&(input==5))&&!(a18==1)))&&(a13==1))&&(a21==10))&&(a9==9))&&(a16==8)))){ + a8 = 0; + a21 = 11; + a9 = 10; + a24 = 0; + a19 = 1; + a0 = 0; + return 22; + } else if(((((!(a2==1)||((a0==1)||(((a9==9)&&(a13==1))&&(a1==12))))&&!(a20==1))&&(a21==12))&&(((a19==1)&&(((a11==1)&&((!(a8==1)&&((a16==8)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5))))&&!(a14==1)))&&(a2==1)))&&(a17==2)))){ + a0 = 1; + a19 = 2; + a12 = 0; + a16 = 9; + a5 = 6; + a21 = 11; + a2 = 0; + return -1; + } else if(((((a3==1)&&((a7==1)||(!(a20==1)&&((a17==2)&&((a21==12)&&((a28==1)&&((a11==1)&&(a19==2))))))))&&!(a4==1))&&(((a1==14)&&(!(a0==1)&&((a9==10)&&(((input==1)&&((a5==4)||(a5==5)))&&(a16==9)))))&&(a11==1)))){ + a16 = 11; + a1 = 13; + a20 = 1; + a7 = 1; + a19 = 1; + a5 = 6; + a15 = 1; + a29 = 0; + return -1; + } else if(((((((a12==1)&&(a1==12))||(a8==1))&&(a17==2))&&(a21==12))&&(((!(a24==1)&&((((((a16==7)&&((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))&&(input==6)))&&(a20==1))&&(a12==1))&&!(a7==1))&&(a19==3)))&&!(a4==1))&&!(a26==1)))){ + a1 = 13; + a16 = 9; + a24 = 0; + a9 = 11; + a21 = 10; + a8 = 0; + a5 = 4; + a19 = 4; + return 21; + } else if((((a9==10)&&((a17==2)&&(((a2==1)&&!(a28==1))&&(a20==1))))&&((((((!(a11==1)&&(((a19==2)&&(((input==3)&&((a5==4)||(a5==5)))&&(a4==1)))&&!(a2==1)))&&(a21==10))&&!(a6==1))&&(a14==1))&&(a16==10))&&(a1==13)))){ + a24 = 1; + a16 = 7; + a5 = 5; + a21 = 12; + a0 = 1; + a19 = 3; + a3 = 0; + return 25; + } else if(((!(a14==1)&&(((((((a17==2)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6))))&&!(a0==1))&&(a19==3))&&(a3==1))&&!(a24==1))&&!(a7==1)))&&((a9==11)&&((a20==1)&&(((a1==12)&&((a16==8)&&((a2==1)&&(a21==12))))||!(a6==1)))))){ + a6 = 1; + a16 = 7; + a5 = 4; + a19 = 1; + a9 = 7; + a18 = 0; + a28 = 1; + a21 = 10; + return -1; + } else if((((((((a21==11)&&((a16==11)&&(!(a27==1)&&(((((a9==11)&&((a5==6)&&(a1==13)))||(((a1==14)&&(a5==4))&&(a9==7)))||(((a1==14)&&(a5==5))&&(a9==7)))&&(input==1)))))&&!(a26==1))&&(a17==2))&&(a13==1))&&(a13==1))&&((a0==1)||(((a20==1)&&((a23==1)&&(a19==3)))||!(a12==1))))){ + a28 = 1; + a16 = 7; + a9 = 7; + a19 = 1; + a5 = 4; + a21 = 10; + a1 = 12; + a7 = 0; + return -1; + } else if(((((a9==7)&&(((a28==1)&&((a21==11)&&((a8==1)||((!(a20==1)&&(a13==1))&&(a1==13)))))&&!(a18==1)))&&(a16==10))&&((a19==3)&&((!(a14==1)&&((a5==4)&&(!(a8==1)&&((input==3)&&(a17==2)))))&&!(a8==1))))){ + if((a26==1)){ + a9 = 8; + a19 = 1; + a2 = 0; + a16 = 7; + a21 = 10; + a5 = 6; + a1 = 12; + a20 = 1; + a15 = 1; + }else{ + a11 = 0; + a20 = 1; + a12 = 0; + a5 = 5; + a16 = 8; + a25 = 1; + a1 = 14; + } + return -1; + } else if(((!(a28==1)||((!(a6==1)||((a1==12)&&(((a16==8)&&((a20==1)&&((a12==1)&&(a21==10))))&&!(a14==1))))&&!(a4==1)))&&(((a19==3)&&(!(a0==1)&&(((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==5))&&(a17==2))))&&(a3==1)))){ + a19 = 4; + a6 = 1; + a16 = 9; + a5 = 6; + a26 = 0; + a9 = 11; + a21 = 12; + a7 = 0; + a1 = 13; + return 26; + } else if((((a19==2)&&((!(a20==1)&&((((a9==8)&&(a23==1))&&(a21==12))&&(a28==1)))&&(a16==8)))&&((a1==12)&&(((a13==1)&&((a23==1)&&((a23==1)&&((!(a8==1)&&((a17==2)&&(input==3)))&&(a28==1)))))&&(a5==5))))){ + if((a29==1)){ + a9 = 10; + a1 = 14; + a19 = 1; + a21 = 10; + a18 = 1; + a29 = 0; + a20 = 1; + a5 = 6; + a16 = 7; + }else{ + a20 = 1; + a0 = 1; + a9 = 11; + a21 = 10; + a16 = 7; + a26 = 1; + a5 = 6; + a22 = 1; + } + return -1; + } else if(((!(a8==1)&&((a17==2)&&(((!(a26==1)&&((a2==1)&&(((a9==7)&&((a1==13)&&((input==4)&&((a5==5)||(a5==6)))))&&(a19==3))))&&!(a4==1))&&(a2==1))))&&(((a16==10)&&((a20==1)&&((a13==1)||!(a11==1))))&&(a21==12)))){ + a1 = 12; + a27 = 0; + a14 = 0; + a5 = 4; + a16 = 7; + a19 = 1; + a21 = 10; + a23 = 1; + return -1; + } else if((((((((a21==10)&&(((input==6)&&(a17==2))&&!(a18==1)))&&!(a24==1))&&(a2==1))&&(a5==6))&&(a1==14))&&((a16==7)&&((a19==5)&&((a23==1)&&((a9==9)&&((a20==1)&&((a13==1)&&((a13==1)||(a18==1)))))))))){ + a23 = 1; + a28 = 1; + a19 = 4; + a14 = 0; + a21 = 12; + a5 = 4; + return 22; + } else if((((a21==12)&&((!(a6==1)||((!(a4==1)&&(!(a23==1)||((a11==1)&&((a4==1)||(((((a13==1)&&(a2==1))&&(a17==2))&&(a16==9))&&(a9==11))))))&&(a20==1)))&&(a1==14)))&&((a5==5)&&((a19==4)&&(input==6))))){ + a19 = 1; + a27 = 0; + a1 = 12; + a5 = 4; + a7 = 0; + a21 = 10; + a24 = 0; + a9 = 7; + a16 = 7; + return -1; + } else if(((((a7==1)&&((a16==8)&&((!(a3==1)&&((input==4)&&(a5==5)))&&(a17==2))))&&(a8==1))&&(((a9==7)&&((a20==1)&&(((a19==2)&&(!(a23==1)&&((a21==11)&&((a13==1)&&(a1==12)))))&&!(a28==1))))&&(a27==1)))){ + a1 = 14; + a18 = 1; + a20 = 0; + a9 = 11; + a0 = 1; + a11 = 0; + a19 = 4; + return -1; + } else if((((a17==2)&&((a1==14)&&(((a2==1)&&((a8==1)||(((a13==1)&&(a19==1))&&(a12==1))))&&(a16==8))))&&((a9==10)&&((!(a20==1)&&((a2==1)&&((a11==1)&&(!(a7==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6))))))&&(a21==10))))){ + a9 = 8; + a5 = 5; + a18 = 0; + a1 = 13; + a19 = 3; + a28 = 1; + a20 = 1; + a21 = 12; + a16 = 10; + return 25; + } else if((((!(a20==1)&&(((a1==13)&&((((!(a4==1)&&(a28==1))||(a7==1))&&(a19==2))&&(a6==1)))&&(a9==8)))&&!(a7==1))&&((a21==11)&&((a17==2)&&((a16==7)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&!(a7==1))&&(a12==1))))))){ + a20 = 1; + a12 = 1; + a21 = 10; + a1 = 14; + a18 = 0; + a5 = 4; + a9 = 7; + a28 = 1; + a19 = 5; + return 25; + } else if(((!(a7==1)&&((((((a20==1)&&((a13==1)&&(a21==12)))&&(a17==2))&&(a16==8))||!(a13==1))||!(a11==1)))&&(((a1==12)&&(((a19==5)&&(((((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6))))&&(input==3))&&!(a0==1)))&&(a3==1)))&&(a13==1)))){ + a23 = 1; + a19 = 1; + a9 = 7; + a5 = 4; + a11 = 1; + a16 = 7; + a6 = 1; + a21 = 10; + return -1; + } else if((((!(a28==1)||((((a9==8)&&((a1==14)&&((a12==1)&&(a2==1))))||!(a23==1))&&(a16==7)))||!(a28==1))&&(((a11==1)&&(((((a19==2)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1)))&&(a17==2))&&(a21==12))&&!(a20==1)))&&!(a14==1)))){ + a27 = 0; + a23 = 1; + a18 = 0; + a20 = 1; + a1 = 12; + a5 = 6; + a21 = 11; + return 22; + } else if((((a16==10)&&((((a1==14)&&(((a9==8)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3)))&&!(a14==1)))&&!(a4==1))&&!(a27==1)))&&((((a19==2)&&(((a23==1)&&(((a12==1)&&!(a0==1))&&!(a20==1)))&&(a17==2)))&&(a21==12))||(a26==1)))){ + a1 = 12; + a20 = 1; + a15 = 0; + a25 = 1; + a11 = 0; + a21 = 10; + a16 = 7; + a19 = 1; + a5 = 4; + a9 = 9; + return 21; + } else if(((!(a18==1)&&(((a11==1)&&(((((input==4)&&(a17==2))&&(a16==9))&&(a5==4))&&(a21==11)))&&!(a18==1)))&&(!(a8==1)&&(((a1==13)&&(((((a6==1)&&(a9==7))&&(a20==1))&&(a2==1))&&(a19==3)))&&!(a26==1))))){ + a7 = 0; + a9 = 10; + a1 = 12; + a21 = 10; + a5 = 5; + a4 = 0; + a26 = 0; + a16 = 7; + return 23; + } else if((((!(a7==1)&&(((((a23==1)||(a18==1))&&(a1==14))||!(a23==1))&&(a12==1)))&&(a20==1))&&(((a23==1)&&((a17==2)&&((((a19==1)&&(!(a4==1)&&((input==5)&&(a21==11))))&&(a5==6))&&(a16==7))))&&(a9==7)))){ + a21 = 10; + a5 = 4; + a28 = 1; + a1 = 12; + a7 = 0; + return -1; + } else if((((a5==4)&&((((((a17==2)&&((a12==1)&&!(a0==1)))&&!(a24==1))&&(a23==1))&&(a1==12))&&(a9==11)))&&(!(a14==1)&&(((((a28==1)&&(((a16==11)&&(input==6))&&!(a18==1)))&&(a21==12))&&(a20==1))&&(a19==4))))){ + a2 = 1; + a1 = 13; + a19 = 5; + a7 = 0; + a5 = 5; + a8 = 0; + return 23; + } else if((((a5==5)&&((a9==7)&&(((a28==1)&&(!(a14==1)&&(((((a1==13)&&(input==6))&&(a28==1))&&(a20==1))&&!(a26==1))))&&(a12==1))))&&((a19==3)&&(((((a28==1)||(a27==1))&&(a16==8))&&(a21==12))&&(a17==2))))){ + a14 = 0; + a19 = 1; + a21 = 10; + a8 = 0; + a1 = 12; + a13 = 1; + a5 = 4; + a16 = 7; + return -1; + } else if(((!(a6==1)||((((a17==2)&&((a28==1)&&(a21==11)))&&!(a24==1))&&(a13==1)))&&(((a19==2)&&((a9==7)&&((a1==13)&&((((((input==4)&&((a5==5)||(a5==6)))&&(a11==1))&&!(a20==1))&&!(a0==1))&&(a12==1)))))&&(a16==8)))){ + a21 = 10; + a19 = 5; + a23 = 1; + a0 = 0; + a20 = 1; + a1 = 14; + a5 = 4; + a4 = 0; + return -1; + } else if((((a19==2)&&((((a12==1)&&!(a20==1))&&(a28==1))||(a27==1)))&&(((a21==10)&&(((a3==1)&&(!(a24==1)&&((a16==7)&&((((((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7))))&&(input==6))&&!(a4==1))&&(a17==2)))))&&(a6==1)))&&(a1==14)))){ + a3 = 1; + a11 = 1; + a19 = 1; + a1 = 12; + a20 = 1; + a24 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if((((a23==1)&&((a5==4)&&(((a9==10)&&(!(a14==1)&&((((input==5)&&(a20==1))&&(a21==12))&&!(a0==1))))&&(a1==12))))&&((((a17==2)&&(((a16==7)&&((a19==2)&&(a11==1)))&&(a23==1)))||!(a3==1))&&!(a18==1)))){ + a19 = 4; + a9 = 11; + a12 = 1; + a24 = 0; + a16 = 8; + a21 = 11; + a7 = 0; + return 25; + } else if((((a20==1)&&(!(a14==1)&&((a16==10)&&(!(a14==1)&&(a28==1)))))&&((((a1==13)&&((a3==1)&&((a6==1)&&((a9==8)&&((((a3==1)&&((input==6)&&((a5==5)||(a5==6))))&&(a19==5))&&!(a8==1))))))&&(a21==10))&&(a17==2)))){ + if((a13==1)){ + a5 = 4; + a23 = 1; + a2 = 1; + a16 = 8; + a9 = 11; + a1 = 12; + a19 = 3; + a20 = 0; + }else{ + a9 = 9; + a5 = 5; + a3 = 1; + a11 = 1; + a6 = 1; + } + return 21; + } else if((((a9==8)&&((a6==1)&&(((a12==1)&&(a16==10))&&(a21==11))))&&((a13==1)&&(((a28==1)&&(((((((a28==1)&&(((a5==5)||(a5==6))&&(input==3)))&&(a17==2))&&(a1==12))&&(a28==1))&&(a19==4))&&(a20==1)))&&(a3==1))))){ + a19 = 1; + a27 = 0; + a0 = 0; + a24 = 0; + a16 = 7; + a21 = 10; + a5 = 4; + a9 = 7; + return -1; + } else if((((a9==7)&&((((a20==1)&&(((a3==1)||(a7==1))&&(a6==1)))||!(a23==1))&&!(a7==1)))&&((a17==2)&&((a21==11)&&((((a13==1)&&(!(a0==1)&&((((a5==5)||(a5==6))&&(input==4))&&(a1==12))))&&(a16==11))&&(a19==3)))))){ + a5 = 4; + a19 = 1; + a2 = 1; + a21 = 10; + a8 = 0; + a12 = 1; + a16 = 7; + return -1; + } else if(((((((((a3==1)&&(a1==12))&&(a3==1))&&(a6==1))&&(a17==2))&&(a16==11))&&(a21==10))&&((((((a12==1)&&((a2==1)&&((((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7))))&&(input==3))))&&(a12==1))&&(a13==1))&&(a19==4))&&(a20==1)))){ + a5 = 4; + a7 = 0; + a9 = 7; + a16 = 7; + a26 = 0; + a27 = 0; + a19 = 1; + return -1; + } else if(((!(a4==1)&&((((a16==11)&&((a1==13)&&((a19==5)&&((a9==10)&&(((a5==5)||(a5==6))&&(input==3))))))&&(a11==1))&&(a28==1)))&&((a11==1)&&((!(a14==1)&&((a20==1)&&(((a17==2)&&(a28==1))&&(a21==10))))&&!(a4==1))))){ + a16 = 7; + a27 = 0; + a13 = 1; + a19 = 1; + a9 = 7; + a1 = 12; + a2 = 1; + a5 = 4; + return -1; + } else if((((((!(a27==1)&&((input==1)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))))&&(a11==1))&&(a21==10))&&(a1==13))&&(!(a20==1)&&(!(a6==1)||(!(a7==1)&&(((a17==2)&&(((a16==9)&&((a11==1)&&(a19==2)))||(a18==1)))&&(a3==1))))))){ + a4 = 1; + a18 = 1; + a5 = 5; + a20 = 1; + a16 = 7; + a19 = 1; + a13 = 0; + a1 = 12; + a9 = 10; + return 26; + } else if((((a1==13)&&((a28==1)&&((a21==10)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3)))))&&((a3==1)&&(((a16==9)&&(((a19==3)&&((a12==1)&&(!(a24==1)&&((a17==2)&&((a28==1)&&((a23==1)&&(a20==1)))))))&&(a9==9)))||!(a6==1))))){ + a5 = 4; + a2 = 1; + a16 = 7; + a9 = 7; + a19 = 1; + a1 = 12; + a0 = 0; + a3 = 1; + return -1; + } else if((((((a28==1)||(a18==1))||(a4==1))||(a7==1))&&(((a1==14)&&((((a16==11)&&((!(a14==1)&&((a20==1)&&(((((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==3))&&!(a4==1))))&&(a21==12)))&&(a6==1))&&(a17==2)))&&(a19==2)))){ + a6 = 1; + a16 = 7; + a14 = 0; + a21 = 10; + a9 = 7; + a1 = 12; + a5 = 4; + a13 = 1; + a19 = 1; + return -1; + } else if(((((a20==1)&&((((!(a2==1)&&((a1==13)&&((a16==11)&&((((input==1)&&((a5==4)||(a5==5)))&&(a7==1))&&(a17==2)))))&&(a19==2))&&!(a28==1))&&(a21==11)))&&(a14==1))&&((((a23==1)&&!(a12==1))&&!(a2==1))&&(a9==8)))){ + a5 = 5; + a1 = 14; + a6 = 0; + a19 = 1; + a16 = 7; + a9 = 7; + a21 = 10; + a11 = 0; + a27 = 1; + return -1; + } else if((((a6==1)&&((a21==10)&&((a16==9)&&((a17==2)&&((((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&!(a18==1))&&(a20==1))))))&&((!(a13==1)||((a19==1)&&((((!(a12==1)||(a6==1))&&(a1==12))||(a0==1))&&(a9==8))))&&(a6==1)))){ + if((a23==1)){ + a1 = 14; + a9 = 11; + a24 = 0; + a19 = 2; + a5 = 4; + a3 = 1; + a14 = 0; + a20 = 0; + a16 = 8; + }else{ + a9 = 7; + a18 = 0; + a5 = 6; + a28 = 1; + a20 = 0; + a19 = 4; + a21 = 11; + a14 = 0; + a16 = 8; + } + return -1; + } else if(((!(a4==1)&&((((a19==2)&&(((((!(a4==1)&&((a17==2)&&(input==3)))&&(a21==10))&&(a5==5))&&!(a20==1))&&(a1==14)))&&(a6==1))&&!(a8==1)))&&((a4==1)||((a7==1)||(((a13==1)&&(a9==10))&&(a16==8)))))){ + a18 = 0; + a14 = 0; + a20 = 1; + a8 = 0; + a5 = 4; + a19 = 1; + a16 = 7; + a9 = 7; + a1 = 12; + return -1; + } else if((((a27==1)||((a19==3)&&((a16==7)&&(((((a1==12)&&(a12==1))||!(a2==1))||(a24==1))&&(a17==2)))))&&(((a21==10)&&((a6==1)&&((((input==5)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10))))&&(a3==1))&&!(a20==1))))&&(a11==1)))){ + a5 = 6; + a21 = 12; + a18 = 0; + a9 = 11; + a16 = 10; + a20 = 1; + a1 = 13; + a19 = 4; + a28 = 1; + a2 = 1; + return 25; + } else if((((a17==2)&&((a9==10)&&((a1==12)&&(((((((input==6)&&(a5==4))&&!(a8==1))&&!(a7==1))&&(a16==8))&&!(a20==1))&&(a12==1)))))&&((((!(a4==1)&&((a12==1)&&!(a14==1)))||(a0==1))&&(a21==11))&&(a19==2)))){ + a21 = 10; + a20 = 1; + a9 = 7; + a16 = 7; + a23 = 1; + a19 = 1; + a8 = 0; + return -1; + } else if((((a1==12)&&((a16==10)&&((((input==6)&&(a5==4))&&(a2==1))&&!(a7==1))))&&((a9==8)&&(((a19==2)&&((((!(a14==1)&&((a21==11)&&(!(a13==1)||(a13==1))))&&(a12==1))&&!(a7==1))&&(a20==1)))&&(a17==2))))){ + a9 = 9; + a12 = 1; + a24 = 0; + a5 = 5; + a7 = 0; + a1 = 13; + a19 = 1; + a16 = 11; + return 25; + } else if(((((((a6==1)&&((a17==2)&&((a3==1)&&!(a8==1))))||(a4==1))&&(a9==9))&&(a21==12))&&((a20==1)&&((a16==7)&&((!(a0==1)&&((a19==5)&&((a12==1)&&((a1==13)&&((input==5)&&((a5==4)||(a5==5)))))))&&(a12==1)))))){ + a27 = 0; + a16 = 8; + a19 = 1; + a21 = 10; + a20 = 0; + a8 = 0; + a18 = 0; + a1 = 12; + a5 = 6; + return 25; + } else if((((a3==1)&&((((a23==1)&&((a6==1)&&(((a6==1)&&(a17==2))&&(a21==12))))&&(a16==10))&&!(a4==1)))&&(((a1==13)&&(((a19==1)&&(!(a14==1)&&((input==4)&&(((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))))&&(a20==1)))&&(a28==1)))){ + a4 = 0; + a16 = 7; + a5 = 4; + a21 = 10; + a0 = 0; + a1 = 12; + a9 = 7; + return -1; + } else if((((a16==7)&&((a9==10)&&((((a1==14)&&(!(a4==1)&&((a28==1)&&((a5==5)&&(!(a7==1)&&((input==5)&&(a17==2)))))))&&(a21==10))&&(a19==3))))&&(!(a20==1)&&((!(a13==1)||((a4==1)||(a11==1)))&&!(a18==1))))){ + a9 = 9; + a5 = 6; + a4 = 0; + a2 = 1; + a19 = 4; + a1 = 12; + return 25; + } else if((((((a5==6)&&(!(a24==1)&&((a11==1)&&((a19==3)&&((input==5)&&(a9==9))))))&&(a20==1))&&(a1==12))&&(((a6==1)&&((!(a18==1)&&(!(a3==1)||(((a21==10)&&(a2==1))&&(a16==10))))&&(a6==1)))&&(a17==2)))){ + a19 = 1; + a11 = 1; + a18 = 0; + a9 = 7; + a16 = 7; + a28 = 1; + a5 = 4; + return -1; + } else if((((a20==1)&&(!(a4==1)&&((a16==9)&&(((a17==2)&&((a27==1)||((a23==1)||(a4==1))))&&(a21==12)))))&&(((a1==12)&&((((a19==1)&&((a5==6)&&((a9==8)&&(input==4))))&&!(a18==1))&&!(a7==1)))&&(a23==1)))){ + a9 = 7; + a28 = 1; + a4 = 0; + a21 = 10; + a5 = 4; + a16 = 7; + a11 = 1; + return -1; + } else if(((!(a11==1)||((a19==5)&&((((((a28==1)&&(a21==12))||(a26==1))&&(a16==8))&&!(a27==1))&&(a20==1))))&&(((a9==11)&&(((a17==2)&&((a23==1)&&((a1==13)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6))))))&&(a28==1)))&&(a12==1)))){ + if((a22==1)){ + a21 = 11; + a5 = 5; + a18 = 0; + a9 = 10; + a11 = 1; + a1 = 14; + a6 = 1; + a20 = 0; + a16 = 7; + }else{ + a6 = 1; + a0 = 0; + a5 = 4; + a1 = 14; + a19 = 4; + a28 = 1; + a9 = 9; + } + return 25; + } else if(((!(a28==1)||((a1==13)&&((a17==2)&&((a2==1)&&(a20==1)))))&&((!(a26==1)&&((a5==5)&&((a21==12)&&(((a9==7)&&(!(a18==1)&&((((input==6)&&(a19==5))&&(a16==10))&&!(a24==1))))&&(a28==1)))))&&!(a14==1)))){ + a8 = 0; + a24 = 0; + a16 = 9; + a9 = 11; + a19 = 4; + return -1; + } else if(((!(a11==1)&&(((a17==2)&&((a9==8)&&(a3==1)))&&!(a2==1)))&&((!(a23==1)&&((a21==11)&&(!(a11==1)&&((!(a2==1)&&(((a16==11)&&(((input==3)&&((a5==4)||(a5==5)))&&(a1==13)))&&(a20==1)))&&(a19==2)))))&&!(a13==1)))){ + a25 = 1; + a4 = 1; + a1 = 12; + a16 = 7; + a21 = 10; + a5 = 6; + a29 = 0; + return -1; + } else if((((((a19==3)&&(((a13==1)&&(a11==1))&&(a21==11)))&&!(a27==1))&&(a1==14))&&((((a6==1)&&((a2==1)&&((a28==1)&&((((((a5==4)||(a5==5))&&(input==6))&&(a17==2))&&(a13==1))&&(a20==1)))))&&(a16==7))&&(a9==10)))){ + a19 = 2; + a26 = 0; + a28 = 1; + a7 = 0; + a16 = 8; + a9 = 7; + a5 = 6; + a1 = 13; + return 23; + } else if((((a9==8)&&(((a14==1)||((a16==11)&&((!(a23==1)||((a19==5)&&(a2==1)))||!(a28==1))))&&(a20==1)))&&(((a1==13)&&((!(a0==1)&&((!(a8==1)&&((a21==12)&&(input==5)))&&!(a14==1)))&&(a17==2)))&&(a5==6)))){ + a19 = 1; + a28 = 1; + a9 = 11; + a3 = 1; + a16 = 7; + a21 = 10; + a5 = 4; + a20 = 0; + a1 = 12; + return 25; + } else if(((((a1==13)&&((a21==10)&&((a3==1)&&((a2==1)&&(((!(a8==1)&&((input==4)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))))&&(a28==1))&&(a3==1))))))&&(a17==2))&&(((((a28==1)&&(a2==1))&&(a16==7))&&(a19==5))&&(a20==1)))){ + if((a24==1)){ + a2 = 1; + a16 = 8; + a9 = 9; + a26 = 0; + a5 = 5; + a20 = 0; + a1 = 14; + a11 = 1; + }else{ + a21 = 12; + a0 = 0; + a5 = 5; + a3 = 1; + a9 = 9; + a19 = 3; + a11 = 1; + } + return 22; + } else if((((a19==3)&&(!(a2==1)||(((a24==1)||((((a9==8)&&(((a16==10)&&(a12==1))&&(a3==1)))&&(a1==13))&&(a6==1)))&&(a17==2))))&&((((!(a8==1)&&((input==1)&&((a5==5)||(a5==6))))&&!(a14==1))&&(a21==10))&&!(a20==1)))){ + a3 = 0; + a20 = 1; + a16 = 7; + a19 = 1; + a0 = 1; + a9 = 7; + a5 = 4; + a2 = 0; + return -1; + } else if(((((a16==9)&&((a23==1)&&((a21==10)&&(!(a0==1)&&((a9==8)&&(((((a5==4)||(a5==5))&&(input==1))&&(a2==1))&&!(a18==1)))))))&&(a19==3))&&(((a1==12)&&(((!(a8==1)&&(a2==1))&&!(a20==1))||(a0==1)))&&(a17==2)))){ + a9 = 9; + a20 = 1; + a27 = 1; + a26 = 1; + a16 = 7; + a19 = 1; + a5 = 5; + a8 = 1; + return -1; + } else if(((((((a11==1)&&(a9==10))||(a8==1))&&(a5==6))||(a0==1))&&((!(a18==1)&&((((((a6==1)&&(((a21==12)&&((input==3)&&(a16==9)))&&(a1==12)))&&!(a20==1))&&(a19==2))&&(a17==2))&&(a6==1)))&&!(a26==1)))){ + a16 = 7; + a19 = 4; + a21 = 11; + a20 = 1; + a25 = 0; + a9 = 7; + a5 = 5; + a22 = 1; + return -1; + } else if((((((((!(a4==1)&&(!(a27==1)&&((a6==1)&&(a9==7))))&&(a19==2))&&(a21==12))&&!(a20==1))&&!(a26==1))&&(a16==7))&&((((a1==12)&&((a23==1)&&((a17==2)&&((a5==5)&&(input==1)))))&&!(a24==1))&&!(a7==1)))){ + a9 = 8; + a21 = 10; + a19 = 1; + a12 = 1; + a28 = 1; + return 25; + } else if((((a1==13)&&(!(a20==1)&&((a9==10)&&((((a19==4)&&(!(a26==1)&&(!(a27==1)&&((input==4)&&((a5==4)||(a5==5))))))&&(a23==1))&&!(a26==1)))))&&(((a28==1)&&((a21==10)&&((a16==7)&&((a27==1)||(a13==1)))))&&(a17==2)))){ + a20 = 1; + a4 = 0; + a9 = 7; + a19 = 1; + a5 = 4; + a13 = 1; + a14 = 0; + a1 = 12; + return -1; + } else if(((!(a23==1)||((a16==10)&&((a19==5)&&(!(a26==1)&&(!(a20==1)&&(a12==1))))))&&(!(a0==1)&&((a17==2)&&((a2==1)&&((a21==12)&&(((((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==4))&&(a11==1))&&(a1==14))&&!(a26==1)))))))){ + if((a19==1)){ + a15 = 1; + a19 = 2; + a6 = 0; + a9 = 8; + a20 = 1; + a10 = 0; + a21 = 10; + a1 = 12; + a16 = 7; + a5 = 6; + }else{ + a6 = 0; + a5 = 6; + a20 = 1; + a9 = 11; + a8 = 1; + a16 = 7; + a7 = 1; + } + return -1; + } else if((((((a7==1)&&(((a27==1)&&((a16==7)&&((a17==2)&&((input==5)&&((a5==6)||((a5==4)||(a5==5)))))))&&!(a20==1)))&&(a24==1))&&(a19==3))&&((!(a2==1)&&(((a18==1)&&((a21==11)&&((a9==10)&&(a12==1))))&&!(a2==1)))&&(a1==12)))){ + a9 = 11; + a23 = 0; + a5 = 4; + a21 = 12; + a12 = 0; + a22 = 1; + return 21; + } else if((((a23==1)&&((((a6==1)&&(!(a8==1)&&((input==1)&&((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4))))))&&(a21==12))&&!(a27==1)))&&(!(a20==1)&&(!(a14==1)&&(!(a12==1)||(((a1==14)&&((a19==3)&&((a16==10)&&(a11==1))))&&(a17==2))))))){ + a12 = 0; + a28 = 0; + a20 = 1; + a19 = 1; + a9 = 10; + a16 = 7; + a6 = 0; + a21 = 10; + a5 = 5; + return -1; + } else if((((a23==1)&&(!(a18==1)&&((((a1==14)&&((((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(input==6)))&&(a21==11))&&(a20==1))))&&((a14==1)||((a16==9)&&((a28==1)&&((!(a2==1)||(!(a7==1)&&((a2==1)&&(a19==4))))&&(a17==2))))))){ + a20 = 0; + a1 = 12; + a18 = 0; + a16 = 8; + a13 = 1; + a5 = 5; + a9 = 8; + return 21; + } else if((((!(a26==1)&&((a1==12)&&((a23==1)&&((a5==4)&&((((a19==4)&&(input==6))&&(a16==10))&&(a23==1))))))&&!(a4==1))&&((a21==12)&&((((!(a12==1)||(!(a20==1)&&(a3==1)))&&(a17==2))&&!(a26==1))&&(a9==7))))){ + if((a3==1)){ + a5 = 5; + a19 = 1; + a1 = 14; + a21 = 10; + a9 = 8; + a20 = 1; + a7 = 1; + a2 = 0; + a3 = 0; + a16 = 7; + }else{ + a1 = 13; + a16 = 7; + a24 = 1; + a13 = 0; + a9 = 8; + a20 = 1; + a21 = 10; + a11 = 0; + a19 = 1; + } + return 21; + } else if((((((a19==4)&&(!(a8==1)&&((a16==10)&&(((((input==5)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(a17==2))&&(a20==1))&&!(a0==1)))))&&(a23==1))&&(a13==1))&&(((a21==10)&&(((a12==1)&&!(a26==1))&&!(a8==1)))&&(a1==14)))){ + a5 = 4; + a9 = 7; + a0 = 0; + a1 = 12; + a19 = 1; + a4 = 0; + a6 = 1; + a16 = 7; + return -1; + } else if((((((a16==8)&&((a3==1)&&(a12==1)))&&(a17==2))&&!(a4==1))&&((a11==1)&&(((a23==1)&&((a19==2)&&((a21==11)&&(((a20==1)&&((input==5)&&((((a9==11)&&((a1==12)&&(a5==5)))||((a9==11)&&((a5==6)&&(a1==12))))||((a9==7)&&((a1==13)&&(a5==4))))))&&(a28==1)))))&&(a11==1))))){ + a5 = 4; + a9 = 7; + a3 = 1; + a21 = 10; + a28 = 1; + a16 = 7; + a19 = 1; + a11 = 1; + a1 = 12; + return -1; + } else if((((a12==1)&&((a20==1)&&((a14==1)||((a4==1)||((a21==12)&&((a6==1)&&((a3==1)&&(a16==11))))))))&&((a17==2)&&((a19==1)&&((a9==10)&&(!(a0==1)&&(!(a26==1)&&(((a1==12)&&(input==5))&&(a5==5))))))))){ + a23 = 1; + a1 = 14; + a9 = 7; + a8 = 0; + a5 = 6; + a19 = 3; + a18 = 0; + return 25; + } else if((((a21==10)&&(!(a23==1)||(!(a14==1)&&(!(a20==1)&&((a2==1)&&(a9==11))))))&&(((a17==2)&&(((a12==1)&&(((!(a4==1)&&((((a5==5)||(a5==6))&&(input==1))&&(a2==1)))&&(a16==9))&&(a11==1)))&&(a19==4)))&&(a1==14)))){ + if((a28==1)){ + a20 = 1; + a5 = 6; + a15 = 1; + a9 = 10; + a29 = 0; + a19 = 1; + a16 = 7; + }else{ + a21 = 11; + a1 = 12; + a19 = 1; + a22 = 1; + a23 = 0; + a5 = 4; + a16 = 8; + a7 = 1; + } + return -1; + } else if(((((!(a8==1)&&((a19==1)&&(((((((a1==12)&&(a5==5))&&(a9==11))||(((a5==6)&&(a1==12))&&(a9==11)))||(((a5==4)&&(a1==13))&&(a9==7)))&&(input==5))&&(a17==2))))&&!(a4==1))&&(a12==1))&&(!(a20==1)&&((a4==1)||(((a16==10)&&(((a14==1)||(a3==1))&&(a21==10)))||!(a3==1)))))){ + if((a7==1)){ + a1 = 14; + a0 = 1; + a6 = 0; + a16 = 7; + a20 = 1; + a5 = 5; + a9 = 11; + a10 = 1; + }else{ + a9 = 7; + a16 = 7; + a20 = 1; + a24 = 1; + a5 = 5; + a1 = 13; + a11 = 0; + a4 = 1; + } + return 25; + } else if((((a21==12)&&(((a23==1)&&((a13==1)&&((((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7))))&&(input==6))))&&(a17==2)))&&(((!(a20==1)&&((((((a12==1)&&!(a7==1))||(a27==1))||(a14==1))||(a26==1))&&(a16==9)))&&(a1==14))&&(a19==1)))){ + if((a8==1)){ + a21 = 10; + a5 = 5; + a9 = 10; + a20 = 1; + a1 = 13; + a26 = 1; + a16 = 7; + a29 = 1; + }else{ + a29 = 1; + a5 = 6; + a21 = 10; + a20 = 1; + a1 = 13; + a22 = 0; + a28 = 0; + a16 = 7; + a9 = 8; + } + return -1; + } else if((((a21==10)&&((a9==11)&&(((a16==7)&&((((((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a1==12))&&(a11==1))&&!(a7==1))&&(a19==3)))&&(a20==1))))&&((a13==1)&&(((((a2==1)&&(a17==2))||(a18==1))&&(a6==1))&&!(a7==1))))){ + a1 = 14; + a13 = 1; + a19 = 5; + a5 = 5; + a18 = 0; + a3 = 1; + return 26; + } else if((((a6==1)&&(((!(a7==1)&&((a17==2)&&((((a28==1)&&!(a0==1))||!(a6==1))&&(a19==1))))&&(a1==13))&&(a21==12)))&&((a16==10)&&((a9==7)&&(((a13==1)&&(((input==3)&&(a5==5))&&!(a18==1)))&&!(a20==1)))))){ + if((a19==5)){ + a23 = 0; + a16 = 9; + a8 = 1; + a14 = 1; + a19 = 3; + a20 = 1; + a1 = 14; + }else{ + a25 = 1; + a9 = 10; + a16 = 11; + a10 = 0; + a1 = 12; + a5 = 4; + a0 = 1; + a20 = 1; + } + return 21; + } else if((((!(a18==1)&&((!(a27==1)&&((a17==2)&&((((a19==4)&&((a16==10)&&(!(a20==1)&&(((a5==4)||(a5==5))&&(input==6)))))&&(a9==10))&&(a2==1))))&&(a6==1)))&&(a11==1))&&((((a2==1)&&(a21==11))&&(a1==14))&&!(a8==1)))){ + a16 = 7; + a5 = 6; + a2 = 0; + a1 = 12; + a21 = 10; + a7 = 1; + a20 = 1; + a9 = 11; + a19 = 1; + a8 = 1; + return -1; + } else if((((a19==4)&&(a23==1))&&((a17==2)&&((a20==1)&&((a1==12)&&(((a23==1)&&(((a21==10)&&((a3==1)&&(!(a24==1)&&(!(a7==1)&&(!(a0==1)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==5)))))))&&(a3==1)))&&(a16==8))))))){ + a16 = 7; + a3 = 1; + a5 = 4; + a27 = 0; + a9 = 7; + a19 = 1; + return -1; + } else if(((((a5==5)&&(((!(a18==1)&&((a21==11)&&((a9==7)&&((a1==14)&&((a17==2)&&(input==3))))))&&(a16==7))&&!(a20==1)))&&(a13==1))&&((a12==1)&&(!(a13==1)||((a2==1)&&((a19==1)&&((a3==1)||!(a6==1)))))))){ + a19 = 4; + a4 = 0; + a8 = 0; + a20 = 1; + a14 = 0; + a16 = 10; + a5 = 4; + a1 = 12; + return 26; + } else if((((a1==14)&&((((a6==1)&&((a2==1)&&(!(a18==1)&&((a13==1)&&((((((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8)))&&(input==3))&&(a16==8))))))&&(a6==1))&&(a17==2)))&&(((((a6==1)&&!(a18==1))&&!(a20==1))&&(a21==11))&&(a19==2)))){ + a9 = 8; + a20 = 1; + a1 = 12; + a21 = 10; + a19 = 1; + a12 = 1; + a13 = 1; + a3 = 1; + a5 = 4; + a16 = 10; + return 21; + } else if((((!(a12==1)||((a0==1)||(((((a9==9)&&((a2==1)&&(a11==1)))||!(a11==1))&&(a17==2))&&(a19==3))))||(a4==1))&&((!(a27==1)&&((((a20==1)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6))))&&(a21==10))&&(a1==12)))&&(a16==11)))){ + a9 = 7; + a16 = 7; + a5 = 4; + a19 = 1; + a7 = 0; + a23 = 1; + a28 = 1; + return -1; + } else if(((!(a7==1)&&((!(a26==1)&&((a28==1)&&((a16==10)&&((!(a7==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a17==2)))&&(a1==13)))))&&(a23==1)))&&(((!(a2==1)||((a9==11)&&((a6==1)&&(a20==1))))&&(a19==5))&&(a21==12)))){ + a21 = 10; + a9 = 10; + a12 = 1; + a7 = 0; + a19 = 4; + a5 = 6; + a16 = 9; + a3 = 1; + return -1; + } else if((((((a9==9)&&((a19==3)&&((!(a4==1)&&((a21==11)&&(!(a20==1)&&((input==3)&&((a5==5)||(a5==6))))))&&!(a4==1))))&&(a11==1))&&(a13==1))&&(!(a28==1)||((((!(a28==1)||(a3==1))&&(a17==2))&&(a16==9))&&(a1==12))))){ + a22 = 0; + a9 = 11; + a24 = 1; + a5 = 4; + a6 = 0; + a21 = 10; + a16 = 11; + a19 = 4; + return -1; + } else if((((a12==1)&&(!(a26==1)&&((a1==13)&&((a16==8)&&((a17==2)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4)))))))&&(!(a26==1)&&(((((a19==5)&&((a14==1)||(!(a2==1)||(!(a23==1)||(a6==1)))))&&(a9==8))&&(a21==11))&&(a20==1))))){ + a19 = 4; + a21 = 12; + a0 = 0; + a26 = 0; + a1 = 14; + a9 = 7; + a5 = 5; + return 25; + } else if(((((a23==1)&&(((a9==10)&&(((a5==4)||(a5==5))&&(input==4)))&&(a16==10)))&&(a13==1))&&((!(a3==1)||((((a17==2)&&(!(a23==1)||(((a19==2)&&((a23==1)&&(a1==14)))&&(a21==12))))||!(a12==1))&&!(a20==1)))||!(a2==1)))){ + if((a0==1)){ + a21 = 10; + a16 = 7; + a0 = 1; + a2 = 0; + a1 = 13; + a9 = 8; + a26 = 1; + a5 = 4; + a20 = 1; + a19 = 1; + }else{ + a9 = 11; + a20 = 1; + a25 = 0; + a28 = 0; + a16 = 7; + a5 = 6; + a26 = 1; + a21 = 10; + a19 = 1; + } + return 21; + } else if((((((((a23==1)&&(((a21==12)&&((a23==1)&&(((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&!(a27==1))))&&(a13==1)))&&(a3==1))&&(a1==13))&&!(a14==1))&&(a20==1))&&((a19==5)&&((a16==11)&&((a17==2)&&((a9==9)&&(a11==1))))))){ + a14 = 0; + a12 = 1; + a19 = 1; + a5 = 4; + a21 = 10; + a1 = 12; + a9 = 7; + a16 = 7; + return -1; + } else if(((!(a4==1)&&((a1==14)&&((a21==11)&&(((input==1)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(a6==1)))))&&((((!(a14==1)&&((a17==2)&&((a19==5)&&((a20==1)&&((a28==1)&&(a16==10))))))||(a18==1))||(a7==1))&&!(a18==1)))){ + a2 = 1; + a6 = 1; + a26 = 0; + a19 = 1; + a16 = 7; + a9 = 7; + a1 = 12; + a21 = 10; + a5 = 4; + return -1; + } else if(((!(a8==1)&&(((a19==5)&&(((((!(a14==1)&&((a3==1)&&((a16==7)&&(input==5))))&&(a17==2))&&(a2==1))&&!(a20==1))&&!(a24==1)))&&(a21==12)))&&((a1==13)&&((a5==6)&&(!(a12==1)||((a9==11)&&(a2==1))))))){ + a6 = 1; + a8 = 0; + a19 = 1; + a20 = 1; + a16 = 11; + a21 = 11; + a3 = 1; + return 23; + } else if((((a20==1)&&(((a1==13)&&((((a12==1)&&(a21==12))||!(a12==1))||!(a28==1)))&&(a5==4)))&&(((a19==4)&&((a9==7)&&((a11==1)&&((a3==1)&&(((a23==1)&&((input==4)&&(a17==2)))&&!(a4==1))))))&&(a16==9)))){ + a16 = 7; + a1 = 12; + a21 = 10; + a28 = 1; + a19 = 1; + a12 = 1; + a4 = 0; + return -1; + } else if(((((a5==6)&&((a19==1)&&(((((a9==8)&&(input==1))&&(a21==10))&&(a20==1))&&(a0==1))))&&(a17==2))&&(((a4==1)&&((!(a23==1)&&((!(a6==1)&&(!(a28==1)&&(a6==1)))&&!(a12==1)))&&(a16==10)))&&(a1==12)))){ + a6 = 0; + a5 = 4; + a24 = 1; + a12 = 0; + a19 = 2; + a16 = 7; + return -1; + } else if((((((((a1==12)&&((a28==1)&&!(a20==1)))&&(a5==6))||(a14==1))||!(a2==1))||!(a3==1))&&(!(a8==1)&&(!(a18==1)&&((a9==7)&&(((a21==10)&&((((a19==2)&&(input==3))&&(a17==2))&&(a16==10)))&&!(a27==1))))))){ + a27 = 1; + a1 = 13; + a16 = 7; + a9 = 10; + a20 = 1; + a25 = 0; + a19 = 1; + return 25; + } else if((((a21==10)&&((a16==11)&&(((a6==1)&&!(a7==1))&&(a11==1))))&&((a19==5)&&((((a20==1)&&((!(a4==1)&&((a17==2)&&(((input==3)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10))))&&(a3==1))))&&(a1==12)))&&!(a7==1))&&(a13==1))))){ + a16 = 7; + a9 = 7; + a19 = 1; + a28 = 1; + a5 = 4; + a8 = 0; + a11 = 1; + return -1; + } else if(((!(a18==1)&&((a21==11)&&((((!(a18==1)&&((a3==1)&&((input==1)&&(((a9==7)&&((a5==5)&&(a1==14)))||(((a9==11)&&((a5==6)&&(a1==13)))||(((a5==4)&&(a1==14))&&(a9==7)))))))&&(a19==2))&&(a16==10))&&!(a20==1))))&&((a12==1)&&(((a7==1)||((a11==1)&&(a17==2)))&&(a23==1))))){ + a8 = 1; + a29 = 0; + a1 = 14; + a9 = 7; + a16 = 7; + a5 = 6; + a20 = 1; + a24 = 1; + a21 = 10; + a19 = 1; + return -1; + } else if(((!(a3==1)||((a18==1)||((a17==2)&&((a1==14)&&(((a7==1)||(a2==1))&&(a21==11))))))&&((a28==1)&&((a23==1)&&(((((a20==1)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==4)))&&(a16==11))&&(a19==4))&&(a6==1)))))){ + a23 = 1; + a9 = 7; + a21 = 10; + a16 = 7; + a12 = 1; + a5 = 4; + a18 = 0; + a19 = 1; + a1 = 12; + return -1; + } else if((((a23==1)&&((a1==14)&&((a21==12)&&(((a18==1)||((a4==1)||((a6==1)&&(a16==10))))&&(a28==1)))))&&(((a19==3)&&(((a13==1)&&(!(a20==1)&&((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))&&(input==1))))&&(a2==1)))&&(a17==2)))){ + a5 = 6; + a19 = 2; + a9 = 10; + a21 = 11; + a6 = 0; + a14 = 1; + a10 = 1; + return 23; + } else if((((a19==3)&&((!(a27==1)&&(((a5==4)&&(((((a1==13)&&((input==1)&&(a9==7)))&&(a21==12))&&!(a18==1))&&(a6==1)))&&(a12==1)))&&!(a7==1)))&&((a11==1)&&((a16==9)&&(!(a20==1)&&((a17==2)&&(a2==1))))))){ + a16 = 10; + a26 = 1; + a1 = 14; + a9 = 9; + a5 = 6; + a20 = 1; + a22 = 0; + a19 = 5; + a15 = 0; + return -1; + } else if(((((a28==1)&&(((!(a13==1)||((a23==1)&&((a11==1)&&(a16==9))))&&(a20==1))||(a18==1)))&&!(a8==1))&&(((((a5==4)&&((a1==14)&&(((input==4)&&(a19==3))&&(a21==12))))&&(a17==2))&&!(a8==1))&&(a9==11)))){ + a19 = 1; + a16 = 7; + a0 = 0; + a21 = 10; + a2 = 1; + a1 = 12; + a9 = 7; + return -1; + } else if((((((a19==5)&&(((a5==4)||(a5==5))&&(input==4)))&&(a16==8))&&!(a24==1))&&(!(a14==1)&&((a6==1)&&(((a9==7)&&((!(a2==1)||((a20==1)&&((a21==12)&&(((a3==1)&&(a1==14))&&(a17==2)))))&&!(a18==1)))&&!(a24==1)))))){ + a6 = 1; + a27 = 0; + a9 = 8; + a21 = 10; + a5 = 6; + a14 = 0; + return 22; + } else if(((((a11==1)&&((a1==13)&&((((a9==8)&&((!(a14==1)&&((a5==6)&&((a19==4)&&(!(a4==1)&&((input==3)&&(a17==2))))))&&!(a8==1)))&&!(a20==1))&&(a21==10))))&&(a23==1))&&(((a2==1)&&(a16==11))&&(a6==1)))){ + a13 = 0; + a1 = 12; + a16 = 10; + a19 = 3; + a15 = 1; + a22 = 0; + a21 = 11; + a9 = 10; + return -1; + } else if(((((!(a8==1)&&(((input==3)&&((((a5==6)&&(a1==13))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==14)))))&&!(a26==1)))&&(a23==1))&&(a17==2))&&(((a16==11)&&((((((a3==1)&&!(a27==1))||(a26==1))&&(a20==1))&&(a21==11))&&!(a14==1)))&&(a19==1)))){ + a3 = 1; + a16 = 7; + a5 = 4; + a21 = 10; + a9 = 7; + a18 = 0; + a2 = 1; + a1 = 12; + return -1; + } else if(((((((a5==6)&&(((((!(a8==1)&&(a12==1))&&(a21==12))&&(a3==1))&&(a17==2))&&(a19==2)))||(a7==1))&&(a13==1))||(a18==1))&&((((a9==11)&&(((a20==1)&&(input==1))&&!(a24==1)))&&(a16==11))&&(a1==13)))){ + a19 = 4; + a9 = 10; + a8 = 0; + a12 = 1; + a4 = 0; + a5 = 5; + return 22; + } else if(((((a8==1)||((a21==10)&&(a23==1)))||(a8==1))&&(((!(a20==1)&&(((a11==1)&&((a3==1)&&(((a17==2)&&(((((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7))))&&(input==6))&&(a12==1)))&&!(a0==1))))&&(a16==10)))&&(a19==2))&&(a1==13)))){ + if((a0==1)){ + a27 = 1; + a9 = 11; + a19 = 1; + a20 = 1; + a16 = 7; + a5 = 6; + a1 = 12; + a10 = 1; + a13 = 0; + }else{ + a11 = 0; + a19 = 1; + a5 = 5; + a4 = 1; + a18 = 1; + a20 = 1; + a1 = 14; + a16 = 7; + a9 = 7; + } + return 22; + } else if(((((!(a11==1)||(((!(a6==1)||((a16==8)&&(a23==1)))&&(a12==1))&&!(a4==1)))&&(a17==2))&&(a21==11))&&(((a13==1)&&((!(a20==1)&&((a12==1)&&((input==5)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))))&&(a1==12)))&&(a19==4)))){ + a19 = 3; + a21 = 10; + a1 = 14; + a2 = 1; + a4 = 0; + a24 = 0; + a16 = 7; + a20 = 1; + a9 = 7; + a5 = 5; + return 25; + } else if(((((a12==1)&&((a6==1)&&(((((a21==12)&&((a20==1)&&((input==1)&&((a5==6)||((a5==4)||(a5==5))))))&&!(a27==1))&&(a1==14))&&!(a7==1))))&&(a9==9))&&((a17==2)&&(!(a27==1)&&(((!(a18==1)&&(a3==1))&&(a19==1))&&(a16==9)))))){ + a5 = 6; + a16 = 10; + a12 = 1; + a21 = 10; + a9 = 10; + a4 = 0; + a1 = 12; + a11 = 1; + return 21; + } else if((((a21==12)&&(((a17==2)&&((a19==3)&&((!(a11==1)||(!(a2==1)||(((a18==1)||(!(a8==1)&&(a23==1)))&&(a1==14))))&&(a16==9))))&&(a20==1)))&&(!(a27==1)&&((((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))&&(input==1))&&!(a0==1))))){ + a13 = 1; + a19 = 2; + a5 = 6; + a3 = 1; + a1 = 13; + a9 = 10; + a16 = 7; + a7 = 0; + a21 = 10; + return 25; + } else if(((!(a24==1)&&(((((((((a19==3)&&((a9==11)&&((a1==14)&&(a5==5))))||(((a9==11)&&((a1==14)&&(a5==6)))&&(a19==3)))||((((a5==4)&&(a1==12))&&(a9==7))&&(a19==4)))&&(input==3))&&(a16==9))&&(a21==12))&&(a20==1))&&(a17==2)))&&(!(a3==1)||((!(a2==1)||(!(a27==1)&&((a28==1)||!(a11==1))))&&!(a7==1))))){ + a26 = 0; + a21 = 10; + a19 = 1; + a9 = 7; + a13 = 1; + a16 = 7; + a5 = 4; + a1 = 12; + a7 = 0; + return -1; + } else if((((((a20==1)&&((a9==8)&&((a11==1)&&(!(a24==1)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&!(a8==1))&&!(a14==1))&&(a17==2))))))&&(a21==10))&&(a1==13))&&((!(a4==1)&&((a16==7)&&((a2==1)&&(a19==2))))||(a0==1)))){ + a12 = 1; + a5 = 6; + a24 = 0; + a9 = 10; + a26 = 0; + return 23; + } else if((((((a1==13)&&(((a28==1)&&((a28==1)&&((input==3)&&((a5==5)||(a5==6)))))&&(a19==4)))&&(a21==12))&&(a9==7))&&(((!(a2==1)||(((((a20==1)&&(a28==1))||(a24==1))&&(a16==9))||!(a2==1)))||(a4==1))&&(a17==2)))){ + a13 = 1; + a5 = 4; + a19 = 1; + a1 = 12; + a4 = 0; + a16 = 10; + a9 = 8; + a28 = 1; + a21 = 10; + return 21; + } else if(((((a12==1)&&((a20==1)&&(((((a23==1)&&(((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5)))&&(input==3)))&&(a21==10))&&(a17==2))&&!(a26==1))))&&!(a18==1))&&((((a1==14)&&(!(a2==1)||((a16==11)&&(a3==1))))&&(a19==2))&&(a11==1)))){ + a16 = 7; + a5 = 4; + a26 = 0; + a19 = 1; + a9 = 7; + a2 = 1; + a1 = 12; + return -1; + } else if(((((a3==1)&&(!(a4==1)&&((a21==10)&&((a5==4)&&(((a19==5)&&(input==5))&&(a17==2))))))&&!(a8==1))&&((((((a27==1)||((a16==9)&&(!(a26==1)&&(a23==1))))&&(a1==13))&&!(a24==1))&&(a20==1))&&(a9==9)))){ + a0 = 0; + a9 = 10; + a7 = 0; + a3 = 1; + a19 = 3; + a16 = 7; + a1 = 12; + return 25; + } else if((((a12==1)&&((!(a11==1)||((a16==11)&&((a8==1)||(a12==1))))&&!(a26==1)))&&(!(a27==1)&&(((((((a17==2)&&((a28==1)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a20==1))&&(a9==7))&&(a19==4))&&(a21==12))&&(a1==14))))){ + a18 = 0; + a7 = 0; + a1 = 12; + a16 = 7; + a5 = 4; + a28 = 1; + a21 = 10; + a19 = 1; + return -1; + } else if(((((a20==1)&&((((a7==1)&&((a16==10)&&(input==4)))&&!(a2==1))&&(a1==12)))&&(a5==6))&&((a17==2)&&((((((a0==1)&&(!(a6==1)&&((a2==1)&&!(a13==1))))&&(a4==1))&&(a9==10))&&(a21==11))&&(a19==4))))){ + a5 = 5; + a16 = 7; + a23 = 0; + a1 = 13; + a22 = 0; + a7 = 1; + a21 = 10; + a19 = 1; + a9 = 8; + return -1; + } else if(((((a17==2)&&(((((a13==1)&&((input==3)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))))&&!(a7==1))&&!(a24==1))&&(a20==1)))&&(a21==12))&&((a6==1)&&(((!(a28==1)||(((a23==1)&&(a19==5))&&!(a18==1)))&&(a1==14))&&(a16==11))))){ + a21 = 10; + a1 = 12; + a5 = 4; + a24 = 0; + a9 = 7; + a4 = 0; + a19 = 1; + a16 = 7; + return -1; + } else if((((a17==2)&&((a1==14)&&((((input==5)&&(a9==11))&&(a6==1))&&(a5==6))))&&(((a19==1)&&((a21==12)&&((a16==8)&&(((((!(a26==1)&&(a13==1))&&(a12==1))&&(a6==1))||!(a6==1))&&(a3==1)))))&&!(a20==1)))){ + if((a4==1)){ + a1 = 12; + a19 = 2; + a26 = 1; + a20 = 1; + a16 = 7; + a2 = 0; + a21 = 10; + a23 = 0; + a5 = 5; + }else{ + a0 = 1; + a2 = 0; + a1 = 13; + a5 = 5; + a9 = 8; + a19 = 2; + a22 = 1; + } + return -1; + } else if(((!(a4==1)&&(!(a27==1)&&(((input==3)&&(((a9==11)&&((a5==6)&&(a1==13)))||(((a1==14)&&(a5==4))&&(a9==7))))&&(a19==3))))&&(!(a12==1)||(((a17==2)&&((!(a4==1)&&((a2==1)&&((a21==12)&&((a20==1)&&(a11==1)))))&&!(a26==1)))&&(a16==10))))){ + a24 = 0; + a23 = 1; + a5 = 4; + a19 = 1; + a9 = 7; + a16 = 7; + a12 = 1; + a21 = 10; + a1 = 12; + return -1; + } else if(((((((!(a20==1)&&(a12==1))&&(a17==2))||(a27==1))||!(a23==1))&&(a13==1))&&((a3==1)&&((a21==12)&&((a2==1)&&((a16==10)&&((a12==1)&&((((a19==2)&&((a9==7)&&((a5==5)&&(a1==12))))||((((a9==11)&&((a1==14)&&(a5==6)))&&(a19==1))||((a19==2)&&((a9==7)&&((a5==4)&&(a1==12))))))&&(input==6))))))))){ + a1 = 14; + a20 = 1; + a16 = 7; + a7 = 1; + a19 = 2; + a9 = 7; + a5 = 6; + a21 = 11; + a14 = 1; + return -1; + } else if(((((((((((a17==2)&&(input==1))&&(a9==11))&&(a2==1))&&(a5==4))&&(a19==1))&&(a1==13))&&(a28==1))&&(a16==7))&&(((((((a13==1)&&!(a20==1))&&(a21==11))||(a8==1))&&!(a8==1))&&!(a27==1))&&!(a26==1)))){ + a5 = 6; + a19 = 4; + a1 = 14; + a26 = 0; + a6 = 1; + a16 = 8; + return 25; + } else if(((((!(a24==1)&&(((a9==10)&&((input==6)&&(a21==11)))&&(a17==2)))&&!(a7==1))&&(a12==1))&&((a19==2)&&(((((((a13==1)&&((a6==1)&&(a1==13)))&&(a20==1))&&(a16==11))&&(a5==6))||!(a23==1))||(a14==1))))){ + a5 = 4; + a2 = 1; + a0 = 0; + a21 = 10; + a7 = 0; + a16 = 7; + a9 = 7; + a1 = 12; + a19 = 1; + return -1; + } else if(((((a1==13)&&((a20==1)&&(((((a5==5)||(a5==6))&&(input==6))&&(a12==1))&&!(a0==1))))&&(a9==8))&&(((a17==2)&&((a16==9)&&(((a26==1)||(!(a14==1)&&((a27==1)||(!(a4==1)&&(a23==1)))))&&(a19==5))))&&(a21==11)))){ + a11 = 1; + a5 = 6; + a9 = 11; + a19 = 2; + a4 = 0; + a21 = 12; + a1 = 14; + a18 = 0; + return 21; + } else if((((a16==9)&&((a21==12)&&(((((!(a18==1)&&((a9==9)&&(a13==1)))&&!(a24==1))||!(a2==1))&&!(a20==1))&&(a19==1))))&&((a17==2)&&(!(a0==1)&&(!(a24==1)&&((!(a26==1)&&(((a5==4)||(a5==5))&&(input==4)))&&(a1==12))))))){ + if((a21==12)){ + a5 = 4; + a21 = 11; + a22 = 1; + a1 = 14; + a16 = 7; + a2 = 0; + a9 = 11; + a12 = 0; + }else{ + a29 = 0; + a24 = 1; + a11 = 0; + a5 = 6; + a21 = 10; + a16 = 10; + a19 = 3; + a20 = 1; + } + return -1; + } else if((((a1==14)&&((((((((a23==1)&&(((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))&&(input==4)))&&(a17==2))&&!(a8==1))&&!(a8==1))&&(a19==5))&&(a21==10))&&(a20==1)))&&((a16==7)&&(!(a28==1)||(((a11==1)||!(a12==1))||!(a6==1)))))){ + a13 = 1; + a8 = 0; + a5 = 4; + a24 = 0; + a1 = 12; + a9 = 7; + a19 = 1; + return -1; + } else if((((a17==2)&&((((!(a23==1)||(a28==1))||(a24==1))&&(a16==8))&&(a21==12)))&&((a19==1)&&((a20==1)&&((a12==1)&&(!(a0==1)&&(!(a14==1)&&((a6==1)&&(((input==4)&&(((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))))&&(a1==14)))))))))){ + a16 = 7; + a18 = 0; + a14 = 0; + a5 = 4; + a21 = 10; + a9 = 7; + a0 = 0; + a1 = 12; + return -1; + } else if((((a9==10)&&((a16==7)&&((a17==2)&&((((a21==12)&&(input==3))&&(a26==1))&&(a0==1)))))&&((((a7==1)&&((a24==1)&&(((a19==3)&&(((a23==1)&&(a20==1))&&(a1==13)))&&!(a23==1))))&&(a5==5))&&(a26==1)))){ + a1 = 12; + a21 = 10; + a14 = 1; + a19 = 1; + a5 = 4; + a2 = 0; + a0 = 1; + return -1; + } else if((((a28==1)&&((a1==13)&&((!(a4==1)&&((a12==1)&&(((a5==5)||(a5==6))&&(input==5))))&&(a23==1))))&&(((((a16==9)&&(((!(a18==1)&&((a6==1)&&(a19==2)))&&(a9==7))&&(a21==12)))&&(a17==2))&&(a20==1))&&(a6==1)))){ + a5 = 6; + a19 = 3; + a13 = 1; + a9 = 9; + a27 = 0; + a1 = 12; + return 21; + } else if((((a6==1)&&((a28==1)&&(((a9==8)&&(!(a27==1)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a17==2))&&(a21==10))))&&!(a8==1))))&&(!(a20==1)&&((!(a6==1)||((a16==10)&&((a19==1)&&((a3==1)&&(a12==1)))))&&(a1==14))))){ + a7 = 1; + a20 = 1; + a14 = 1; + a1 = 12; + a9 = 9; + a16 = 9; + a21 = 11; + a19 = 2; + a5 = 4; + return -1; + } else if((((a5==5)&&(((!(a18==1)&&((a17==2)&&(input==4)))&&!(a4==1))&&(a19==1)))&&(!(a6==1)||(!(a26==1)&&((!(a6==1)||(!(a20==1)&&((a16==10)&&((((a9==9)&&(a13==1))&&(a1==12))&&!(a27==1)))))&&(a21==12)))))){ + a5 = 6; + a20 = 1; + a7 = 1; + a9 = 8; + a1 = 13; + a16 = 7; + a21 = 10; + a4 = 1; + return -1; + } else if((((a21==10)&&((a19==4)&&(!(a20==1)&&((a12==1)&&((input==4)&&((a5==4)||(a5==5)))))))&&(((a9==9)&&(((!(a3==1)||(!(a12==1)||(((a1==14)&&((a6==1)&&(a2==1)))&&!(a8==1))))&&(a17==2))||!(a13==1)))&&(a16==8)))){ + a3 = 1; + a19 = 1; + a1 = 12; + a7 = 0; + a16 = 7; + a9 = 7; + a23 = 1; + a20 = 1; + a5 = 4; + return -1; + } else if(((((a19==4)&&(((((((a12==1)&&(a28==1))||(a26==1))&&(a1==13))&&(a17==2))&&!(a27==1))&&(a21==10)))&&(a9==7))&&((((a16==7)&&(((a13==1)&&((input==5)&&((a5==4)||(a5==5))))&&(a28==1)))&&(a2==1))&&!(a20==1)))){ + a27 = 0; + a5 = 5; + a1 = 12; + a16 = 10; + a8 = 0; + a9 = 8; + a21 = 11; + a20 = 1; + return 21; + } else if(((((a4==1)||(((((a9==11)&&((a11==1)&&(a20==1)))||!(a23==1))||(a7==1))&&!(a8==1)))||!(a2==1))&&((((a21==12)&&(((a16==7)&&(((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&(a1==13)))&&(a17==2)))&&(a19==3))&&(a3==1)))){ + a2 = 1; + a16 = 9; + a19 = 5; + a21 = 10; + a13 = 1; + a5 = 4; + a7 = 0; + return 26; + } else if((((a0==1)||(((a19==5)&&((a11==1)&&(((a13==1)&&(a1==13))||(a0==1))))&&(a20==1)))&&(!(a18==1)&&((a17==2)&&((a21==11)&&(((((a5==6)&&((a16==8)&&(input==6)))&&!(a24==1))&&!(a24==1))&&(a9==11))))))){ + a9 = 7; + a1 = 12; + a2 = 1; + a5 = 4; + a16 = 7; + a21 = 10; + a7 = 0; + a19 = 1; + a28 = 1; + return -1; + } else if((((((a16==11)&&(!(a2==1)||((a0==1)||(a28==1))))||(a27==1))&&(a21==12))&&((a20==1)&&(((a13==1)&&(((a28==1)&&((input==5)&&((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==1))||((a19==2)&&(((a5==4)&&(a1==12))&&(a9==7))))))&&(a17==2)))&&!(a26==1))))){ + a19 = 4; + a9 = 10; + a20 = 0; + a23 = 1; + a26 = 0; + a16 = 8; + a11 = 1; + a21 = 10; + a5 = 4; + a1 = 14; + return 21; + } else if((((a9==9)&&(((a3==1)&&((!(a26==1)&&((a6==1)&&((a17==2)&&((input==1)&&(a19==3)))))&&!(a26==1)))&&(a20==1)))&&((a2==1)&&((((a21==12)&&((a16==9)&&((a1==12)&&(a13==1))))&&(a5==4))&&!(a0==1))))){ + if((a27==1)){ + a16 = 7; + a26 = 0; + a13 = 1; + a19 = 5; + a20 = 0; + a5 = 5; + a24 = 0; + }else{ + a5 = 5; + a9 = 10; + a12 = 1; + a7 = 0; + a16 = 7; + a21 = 10; + a1 = 13; + a8 = 0; + } + return 22; + } else if((((!(a18==1)&&((a23==1)&&((a19==4)&&((a17==2)&&(((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==4))&&!(a7==1))))))&&!(a20==1))&&(((!(a7==1)&&(((a16==9)&&((a2==1)&&!(a18==1)))||!(a6==1)))&&(a21==12))&&(a1==14)))){ + if((a23==1)){ + a21 = 10; + a16 = 7; + a5 = 5; + a1 = 12; + a15 = 0; + a13 = 0; + a9 = 9; + a20 = 1; + a0 = 1; + a19 = 2; + }else{ + a16 = 10; + a5 = 6; + a20 = 1; + a6 = 0; + a22 = 0; + a19 = 1; + a9 = 7; + a25 = 0; + a21 = 10; + } + return -1; + } else if((((a18==1)||((a16==7)&&((!(a20==1)&&((a9==11)&&((!(a13==1)||(!(a6==1)||((a21==10)&&(a3==1))))||!(a6==1))))&&!(a24==1))))&&((a13==1)&&((((a17==2)&&((a19==5)&&(input==4)))&&(a1==13))&&(a5==5))))){ + a20 = 1; + a16 = 9; + a4 = 0; + a19 = 1; + a26 = 0; + a23 = 1; + return 25; + } else if(((((a16==7)&&((a17==2)&&((a21==10)&&((a1==12)&&(!(a20==1)&&((((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7))))&&(input==4)))))))&&(a3==1))&&(((a11==1)&&((a28==1)&&((a19==3)&&(!(a24==1)&&((a28==1)&&(a3==1))))))||(a4==1)))){ + a11 = 1; + a5 = 4; + a2 = 1; + a20 = 1; + a8 = 0; + a19 = 1; + a9 = 7; + return -1; + } else if((((((((a28==1)&&((a12==1)&&((input==1)&&(a21==10))))&&!(a18==1))&&!(a7==1))&&(a9==7))&&(a19==2))&&(((a5==4)&&((a1==14)&&((((a18==1)||((a14==1)||(a23==1)))&&(a20==1))&&(a17==2))))&&(a16==8)))){ + a5 = 6; + a19 = 3; + a18 = 0; + a21 = 12; + a16 = 9; + a9 = 10; + a27 = 0; + return 21; + } else if(((((a17==2)&&(!(a11==1)||((((!(a28==1)||(((a9==10)&&(a11==1))||!(a28==1)))&&!(a8==1))||(a7==1))&&(a19==2))))&&(a5==5))&&((!(a14==1)&&(((a21==11)&&((a1==14)&&(input==5)))&&!(a20==1)))&&(a16==10)))){ + a20 = 1; + a21 = 10; + a7 = 1; + a2 = 0; + a5 = 4; + a16 = 7; + a4 = 1; + a19 = 1; + return -1; + } else if((((a17==2)&&(((!(a8==1)&&((a16==8)&&((a2==1)&&((a21==10)&&((a13==1)&&((input==1)&&((a5==4)||(a5==5))))))))&&(a23==1))&&(a9==8)))&&((!(a20==1)&&((!(a4==1)&&((a28==1)&&(a19==1)))&&!(a27==1)))&&(a1==14)))){ + a21 = 11; + a4 = 0; + a19 = 5; + a20 = 1; + a16 = 10; + a1 = 13; + a12 = 1; + a5 = 5; + a2 = 1; + return 21; + } else if((((a19==3)&&(!(a14==1)&&((a16==8)&&((a7==1)||((a1==14)&&(!(a13==1)||((a21==10)&&(a23==1))))))))&&((a17==2)&&(!(a24==1)&&((((((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4)))&&(input==1))&&(a2==1))&&!(a18==1))&&(a20==1)))))){ + a16 = 9; + a9 = 9; + a18 = 0; + a1 = 13; + a5 = 6; + a23 = 1; + a19 = 5; + a21 = 12; + return 21; + } else if(((((((!(a24==1)&&((a17==2)&&(!(a0==1)&&((input==5)&&((a5==4)||(a5==5))))))&&(a20==1))&&(a9==11))&&(a28==1))&&(a16==11))&&((a19==4)&&((!(a28==1)||((a1==14)&&(((a3==1)&&!(a27==1))&&(a21==11))))&&(a23==1))))){ + a19 = 2; + a7 = 0; + a6 = 1; + a9 = 10; + a16 = 9; + a5 = 5; + a8 = 0; + return 21; + } else if((((((((a17==2)&&((a28==1)&&!(a18==1)))&&(a6==1))&&!(a4==1))&&!(a20==1))&&(a21==10))&&(((a16==11)&&(!(a4==1)&&((a12==1)&&((((a19==4)&&(((a1==12)&&(a5==5))&&(a9==7)))||(((a19==3)&&(((a1==14)&&(a5==6))&&(a9==11)))||((((a5==4)&&(a1==12))&&(a9==7))&&(a19==4))))&&(input==6)))))&&(a13==1)))){ + a19 = 2; + a1 = 14; + a16 = 7; + a27 = 1; + a21 = 12; + a29 = 1; + a20 = 1; + a5 = 5; + a22 = 1; + a9 = 9; + return -1; + } else if((((a19==2)&&((((a9==10)&&((a1==13)&&(!(a20==1)&&(a11==1))))&&(a6==1))||!(a13==1)))&&(((((a5==6)&&((a2==1)&&((a21==12)&&(((a17==2)&&(input==6))&&(a16==7)))))&&!(a24==1))&&(a12==1))&&!(a8==1)))){ + a9 = 7; + a6 = 1; + a21 = 10; + a12 = 1; + a1 = 12; + a19 = 1; + a20 = 1; + a0 = 0; + a5 = 4; + return -1; + } else if(((((((a11==1)&&((((a12==1)&&(!(a18==1)&&(a23==1)))&&(a16==7))&&(a21==10)))&&!(a20==1))&&(a1==14))&&(a23==1))&&(((a28==1)&&((a19==1)&&(((input==4)&&((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4))))&&(a17==2))))&&(a12==1)))){ + a24 = 0; + a1 = 12; + a9 = 7; + a3 = 1; + a5 = 4; + a13 = 1; + a20 = 1; + return -1; + } else if(((((a16==8)&&((a9==7)&&((a2==1)&&((a2==1)&&(!(a8==1)&&((input==6)&&(a21==10)))))))&&(a20==1))&&((a17==2)&&((a7==1)||((((a5==4)&&(((a3==1)&&(a1==13))&&(a19==2)))&&(a3==1))||!(a11==1)))))){ + a21 = 12; + a16 = 9; + a19 = 3; + a9 = 11; + a3 = 1; + a26 = 0; + a18 = 0; + return 22; + } else if((((a21==10)&&((a20==1)&&((a17==2)&&(((a9==8)&&((((a16==9)&&(input==4))&&!(a18==1))&&(a1==14)))&&(a13==1)))))&&((a5==4)&&((((a13==1)&&((a28==1)&&((a11==1)||(a4==1))))&&(a19==4))&&(a6==1))))){ + a19 = 1; + a9 = 7; + a4 = 0; + a16 = 7; + a7 = 0; + a1 = 12; + a6 = 1; + return -1; + } else if(((!(a18==1)&&(((a6==1)&&(a2==1))&&(a13==1)))&&((a12==1)&&((((a1==13)&&(((a16==8)&&(!(a27==1)&&((a21==10)&&(((a17==2)&&((input==4)&&((a5==5)||(a5==6))))&&(a19==4)))))&&(a9==7)))&&!(a20==1))&&(a13==1))))){ + a20 = 1; + a16 = 7; + a2 = 1; + a5 = 4; + a19 = 1; + a14 = 0; + a1 = 12; + a23 = 1; + return -1; + } else if(((((((((((a2==1)&&((a2==1)&&((input==3)&&(a21==10))))&&(a19==2))&&(a1==12))&&(a17==2))&&!(a18==1))&&(a5==4))&&!(a18==1))&&(a6==1))&&((((a9==10)&&(!(a20==1)&&(a2==1)))&&(a16==9))||!(a3==1)))){ + a16 = 7; + a19 = 1; + a9 = 11; + a25 = 0; + a6 = 0; + a5 = 5; + a20 = 1; + a18 = 1; + return 25; + } else if((((((a0==1)||((((a21==10)&&(((a23==1)&&(a6==1))&&(a9==10)))&&(a5==6))&&(a11==1)))&&!(a0==1))||!(a6==1))&&(((a17==2)&&(((((input==6)&&(a19==1))&&(a16==10))&&(a20==1))&&(a1==13)))&&(a3==1)))){ + a1 = 14; + a0 = 0; + a5 = 4; + a28 = 1; + a16 = 9; + a19 = 2; + a3 = 1; + return 21; + } else if((((a9==11)&&((a1==12)&&((a17==2)&&(((((a6==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))&&!(a4==1))&&(a11==1))&&(a3==1)))))&&(!(a20==1)&&((((a19==2)&&(((a16==9)&&(a2==1))&&(a21==12)))||(a27==1))||(a26==1))))){ + a9 = 8; + a5 = 4; + a20 = 1; + a0 = 1; + a21 = 10; + a16 = 7; + a15 = 0; + a29 = 0; + a19 = 1; + return -1; + } else if(((!(a14==1)&&((input==1)&&(a20==1)))&&((((((a8==1)||(((a1==12)&&((a8==1)||((((!(a3==1)||(a6==1))&&(a19==5))&&(a5==5))&&(a17==2))))&&(a9==10)))&&(a16==10))&&(a21==11))&&(a6==1))&&!(a27==1)))){ + a2 = 1; + a11 = 1; + a1 = 13; + a21 = 10; + a16 = 7; + a0 = 0; + a9 = 9; + a19 = 2; + return 25; + } else if(((((a20==1)&&(!(a0==1)&&((((a6==1)&&(a13==1))&&(a16==10))&&(a17==2))))||(a26==1))&&(!(a26==1)&&(((a5==5)&&(((a6==1)&&((a9==9)&&((a21==12)&&((input==1)&&(a1==14)))))&&!(a0==1)))&&(a19==1))))){ + a1 = 13; + a5 = 4; + a16 = 7; + a21 = 10; + a13 = 1; + a18 = 0; + a19 = 2; + return 25; + } else if((((((a8==1)||((a16==10)&&(((a12==1)&&(a1==12))&&(a9==10))))&&(a11==1))||(a0==1))&&((!(a0==1)&&((a12==1)&&((((a20==1)&&((a21==12)&&((a17==2)&&(input==6))))&&(a19==3))&&(a5==5))))&&!(a27==1)))){ + a13 = 1; + a19 = 5; + a9 = 11; + a14 = 0; + a16 = 9; + a27 = 0; + a5 = 6; + a1 = 14; + a21 = 10; + return -1; + } else if(((!(a26==1)&&(((a16==7)&&(((a1==14)&&(((a21==12)&&((a17==2)&&(a13==1)))||!(a6==1)))||(a8==1)))&&(a13==1)))&&((a19==2)&&(((a12==1)&&((((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11)))&&(input==3))&&(a20==1)))&&(a3==1))))){ + a1 = 12; + a19 = 4; + a23 = 1; + a9 = 9; + a16 = 9; + a2 = 1; + a21 = 10; + a5 = 5; + a11 = 1; + return 22; + } else if((((a17==2)&&(((a21==11)&&(a28==1))&&(a11==1)))&&((a2==1)&&(!(a7==1)&&(!(a8==1)&&(((a16==10)&&(((((a1==14)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))&&(input==4)))&&(a20==1))&&!(a0==1))&&!(a8==1)))&&(a19==3))))))){ + a2 = 1; + a24 = 0; + a5 = 4; + a16 = 7; + a27 = 0; + a21 = 10; + a1 = 12; + a19 = 1; + a9 = 7; + return -1; + } else if(((((!(a4==1)&&((a21==11)&&(!(a13==1)||(a2==1))))||!(a13==1))&&(a13==1))&&((a19==1)&&((!(a14==1)&&(((a16==9)&&((a20==1)&&((input==5)&&(((a9==7)&&((a1==13)&&(a5==4)))||(((a9==11)&&((a1==12)&&(a5==5)))||(((a5==6)&&(a1==12))&&(a9==11)))))))&&!(a27==1)))&&(a17==2))))){ + a12 = 1; + a9 = 9; + a13 = 1; + a1 = 14; + a28 = 1; + a19 = 4; + a5 = 6; + return 21; + } else if((((((((a6==1)&&(a1==14))&&(a9==10))&&!(a24==1))&&(a17==2))&&(a19==5))&&(((a13==1)&&((a23==1)&&((((a20==1)&&((a16==9)&&(!(a4==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5)))))))&&(a21==11))&&(a28==1))))&&(a2==1)))){ + a5 = 4; + a21 = 10; + a16 = 7; + a19 = 1; + a14 = 0; + a9 = 7; + a1 = 12; + a2 = 1; + return -1; + } else if((((!(a0==1)&&((((a16==7)&&(((a19==4)&&((a17==2)&&((input==4)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10))))))&&(a20==1)))&&(a3==1))&&!(a27==1)))&&(a3==1))&&((a13==1)&&(!(a3==1)||((a1==14)&&((a21==10)&&(a23==1))))))){ + a21 = 12; + a1 = 13; + a9 = 7; + a5 = 4; + a6 = 1; + a8 = 0; + a19 = 1; + a12 = 1; + return 21; + } else if((((((((!(a26==1)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==1)))&&(a1==14))&&(a28==1))&&!(a20==1))&&(a17==2))&&(a21==12))&&((a19==4)&&((((((a12==1)&&!(a27==1))||(a26==1))||(a26==1))&&(a2==1))&&(a16==7))))){ + a1 = 12; + a3 = 1; + a12 = 1; + a6 = 1; + a16 = 8; + a9 = 7; + a19 = 5; + a5 = 6; + a20 = 1; + return -1; + } else if((((!(a26==1)&&(((a19==1)&&((((a5==6)&&((input==3)&&(a17==2)))&&(a12==1))&&(a1==12)))&&(a13==1)))&&(a13==1))&&(((a11==1)&&(((a16==8)&&(!(a20==1)&&((a28==1)&&(a21==12))))&&(a9==11)))&&(a2==1)))){ + if((a29==1)){ + a25 = 1; + a24 = 1; + a16 = 7; + a1 = 14; + a6 = 0; + a21 = 10; + a20 = 1; + }else{ + a27 = 1; + a19 = 2; + a21 = 11; + a20 = 1; + a11 = 0; + a15 = 1; + a1 = 14; + } + return -1; + } else if((((a16==9)&&((a5==6)&&((((((a19==2)&&(!(a24==1)&&((a28==1)&&(a9==7))))&&!(a18==1))&&(a17==2))&&!(a20==1))&&(a1==14))))&&((((a28==1)&&(((input==4)&&(a21==10))&&(a11==1)))&&(a28==1))&&(a3==1)))){ + if((a4==1)){ + a20 = 1; + a2 = 0; + a16 = 7; + a8 = 1; + a9 = 8; + a22 = 1; + a19 = 1; + }else{ + a10 = 1; + a14 = 1; + a2 = 0; + a9 = 11; + a20 = 1; + a5 = 5; + a16 = 8; + } + return -1; + } else if((((!(a8==1)&&(!(a20==1)&&(((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==5))&&(a16==9))))&&(a19==1))&&(((!(a11==1)||((((((a17==2)&&(a23==1))&&(a1==13))||!(a28==1))&&!(a8==1))||(a27==1)))||!(a13==1))&&(a21==10)))){ + a9 = 11; + a10 = 0; + a16 = 7; + a26 = 1; + a24 = 1; + a5 = 5; + a20 = 1; + return 25; + } else if((((((((a6==1)&&((a23==1)||(a14==1)))&&!(a24==1))&&(a21==11))||!(a11==1))&&(a17==2))&&(((a16==7)&&((a13==1)&&((a9==10)&&(!(a20==1)&&(((((a5==4)||(a5==5))&&(input==6))&&(a1==14))&&(a19==4))))))&&!(a24==1)))){ + a1 = 13; + a5 = 5; + a9 = 9; + a27 = 0; + a19 = 1; + a7 = 0; + a16 = 11; + a20 = 1; + a28 = 1; + return 25; + } else if(((((a19==1)&&(!(a3==1)&&((a1==12)&&((((a18==1)&&((a23==1)&&(a21==11)))&&!(a2==1))&&(a17==2)))))&&!(a12==1))&&((!(a3==1)&&((a9==7)&&(((a20==1)&&((input==6)&&(a16==9)))&&(a0==1))))&&(a5==4)))){ + a9 = 11; + a1 = 14; + a16 = 8; + a7 = 1; + a3 = 0; + return 23; + } else if(((((((((a20==1)&&((a16==11)&&((a28==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4)))))&&(a21==11))&&(a19==3))&&!(a24==1))&&(a11==1))&&!(a8==1))&&((((((a23==1)&&(a1==12))||!(a23==1))&&(a9==11))&&(a17==2))&&(a3==1)))){ + a3 = 1; + a27 = 0; + a16 = 7; + a21 = 10; + a4 = 0; + a5 = 4; + a9 = 7; + a19 = 1; + return -1; + } else if(((((((input==4)&&((a5==4)||(a5==5)))&&!(a14==1))&&!(a14==1))&&(a9==8))&&((((!(a4==1)&&(((a21==10)&&((a19==3)&&(((!(a12==1)||(a2==1))&&(a17==2))&&(a16==9))))&&(a1==12)))&&!(a20==1))||!(a2==1))||!(a13==1)))){ + a12 = 0; + a9 = 11; + a23 = 0; + a19 = 2; + a16 = 10; + a5 = 4; + a11 = 0; + return -1; + } else if(((((((((a5==6)&&(a1==13))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==14))))&&(input==4))&&(a19==1))&&!(a11==1))&&((a27==1)&&(((a21==12)&&((a7==1)&&((a4==1)&&((!(a2==1)&&((a17==2)&&((a23==1)&&(a16==7))))&&(a20==1)))))&&!(a6==1))))){ + a15 = 0; + a3 = 0; + a21 = 11; + a5 = 6; + a9 = 7; + a1 = 12; + a20 = 0; + a14 = 1; + a19 = 2; + return 21; + } else if((((a20==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&!(a27==1)))&&((a1==13)&&((!(a28==1)||((a13==1)&&((a26==1)||((a19==1)&&((a21==11)&&(((((a12==1)&&(a28==1))&&(a9==10))||(a0==1))&&(a16==8)))))))&&(a17==2))))){ + a13 = 1; + a27 = 0; + a9 = 9; + a19 = 5; + a5 = 4; + a12 = 1; + a21 = 10; + return 26; + } else if((((a19==3)&&((((a12==1)&&((input==3)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))&&(a6==1))&&(a16==11)))&&((a17==2)&&((((((a14==1)||((a21==10)&&((a12==1)&&(a1==14))))||(a24==1))||!(a28==1))&&(a20==1))||!(a28==1))))){ + a1 = 12; + a16 = 7; + a5 = 4; + a14 = 0; + a24 = 0; + a12 = 1; + a9 = 7; + a19 = 1; + return -1; + } else if(((((((((a17==2)&&((a1==14)&&((a9==10)&&((a11==1)&&(((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&!(a18==1))))))&&!(a0==1))&&!(a4==1))&&(a19==2))&&(a21==11))&&(a20==1))&&((((a11==1)||!(a13==1))&&(a3==1))&&(a16==9)))){ + a1 = 12; + a20 = 0; + a16 = 8; + a9 = 8; + a19 = 4; + a18 = 0; + a5 = 5; + a26 = 0; + return 22; + } else if((((a20==1)&&(((a5==5)&&(((a0==1)&&((a21==10)&&(a6==1)))&&(a27==1)))&&(a19==3)))&&((!(a28==1)&&(((a16==11)&&(((((a1==12)&&(input==5))&&(a8==1))&&!(a11==1))&&(a17==2)))&&!(a6==1)))&&(a9==11)))){ + a22 = 1; + a16 = 7; + a24 = 1; + a27 = 1; + a19 = 2; + a5 = 4; + a9 = 7; + return -1; + } else if((((a2==1)&&(!(a24==1)&&((a6==1)&&((((input==1)&&((((a5==6)&&(a1==12))&&(a9==11))||((a9==7)&&((a1==13)&&(a5==4)))))&&(a21==11))&&(a17==2)))))&&((((a23==1)&&((((a20==1)&&(a12==1))&&(a16==10))&&(a19==2)))&&(a13==1))&&(a11==1)))){ + a5 = 4; + a21 = 10; + a19 = 1; + a16 = 7; + a3 = 1; + a24 = 0; + a1 = 12; + a7 = 0; + a9 = 7; + return -1; + } else if(((((!(a3==1)||(((a20==1)&&((a3==1)&&(a21==10)))||!(a6==1)))&&(a16==11))&&(a19==4))&&(((((a28==1)&&((((((a5==6)&&(a1==12))&&(a9==11))||(((a1==13)&&(a5==4))&&(a9==7)))&&(input==3))&&(a17==2)))&&!(a24==1))&&(a11==1))&&!(a27==1)))){ + a4 = 0; + a9 = 7; + a16 = 7; + a5 = 4; + a1 = 12; + a18 = 0; + a19 = 1; + a6 = 1; + return -1; + } else if(((((((((a9==10)&&(a11==1))||!(a11==1))||(a0==1))||(a24==1))&&(a19==4))&&(a21==11))&&(((a17==2)&&((a20==1)&&((!(a14==1)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a2==1))&&!(a0==1)))&&(a16==11))))&&(a1==14)))){ + a16 = 7; + a19 = 1; + a8 = 0; + a1 = 12; + a7 = 0; + a21 = 10; + a9 = 7; + a13 = 1; + a5 = 4; + return -1; + } else if((((((!(a8==1)&&(a12==1))&&(a19==5))||!(a13==1))&&(a21==10))&&((!(a0==1)&&((a9==8)&&((((a17==2)&&(((((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&(a1==13))&&(a16==8))&&(a2==1)))&&!(a7==1))&&(a20==1))))&&(a13==1)))){ + a14 = 0; + a1 = 14; + a12 = 1; + a20 = 0; + a19 = 1; + a5 = 6; + a9 = 7; + a7 = 0; + return 21; + } else if((((a4==1)||(((a20==1)&&((((a9==8)&&((((a6==1)&&((a28==1)||(a0==1)))&&(a19==2))&&(a17==2)))&&(a16==10))&&(a21==11)))||(a7==1)))&&((a1==13)&&((!(a0==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))&&(a23==1))))){ + a19 = 1; + a9 = 7; + a7 = 0; + a23 = 1; + a4 = 0; + a5 = 4; + a1 = 12; + a21 = 10; + a16 = 7; + return -1; + } else if(((((a5==6)&&((a16==7)&&((a17==2)&&(((a6==1)&&((((a1==14)&&(input==6))&&(a19==1))&&(a12==1)))&&(a9==9)))))&&!(a20==1))&&(((a21==10)&&((a6==1)&&(!(a12==1)||((a28==1)||!(a13==1)))))&&(a23==1)))){ + a4 = 0; + a19 = 2; + a3 = 1; + a16 = 10; + a9 = 8; + a20 = 1; + a5 = 5; + a1 = 13; + a6 = 1; + a21 = 12; + return 21; + } else if(((((((a9==10)&&((!(a3==1)&&((a14==1)&&((input==6)&&(a17==2))))&&!(a28==1)))&&(a20==1))&&(a1==13))&&(a16==9))&&((a19==2)&&((((a8==1)&&((!(a2==1)&&(a28==1))&&(a24==1)))&&(a21==10))&&(a5==4))))){ + a16 = 11; + a13 = 0; + a24 = 1; + a19 = 5; + a5 = 5; + a23 = 0; + return -1; + } else if((((a28==1)&&(((a8==1)||(((a21==11)&&((a7==1)||(((a12==1)&&(a16==8))||(a26==1))))||(a26==1)))&&!(a26==1)))&&((!(a20==1)&&((((input==5)&&(((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))))&&(a19==1))&&(a1==14)))&&(a17==2)))){ + a16 = 10; + a1 = 13; + a28 = 1; + a20 = 1; + a19 = 3; + a5 = 4; + a21 = 12; + a4 = 0; + a9 = 8; + return 25; + } else if(((!(a20==1)&&(((((a11==1)&&!(a24==1))&&(a16==7))&&(a9==10))||!(a28==1)))&&(((a28==1)&&((a1==12)&&(((a12==1)&&((a5==4)&&((!(a26==1)&&((a19==2)&&(input==5)))&&(a17==2))))&&(a11==1))))&&(a21==12)))){ + a20 = 1; + a23 = 1; + a3 = 1; + a8 = 0; + a9 = 7; + a21 = 10; + a19 = 1; + return -1; + } else if((((a20==1)&&((a21==10)&&((a23==1)&&((((((a5==6)&&(a1==12))&&(a9==11))||((a9==7)&&((a1==13)&&(a5==4))))&&(input==6))&&(a19==2)))))&&((((a14==1)||((a27==1)||(((a17==2)&&((a23==1)&&(a13==1)))&&(a16==11))))||!(a6==1))&&!(a4==1)))){ + a19 = 1; + a12 = 1; + a1 = 12; + a7 = 0; + a9 = 7; + a5 = 4; + a16 = 7; + a3 = 1; + return -1; + } else if(((((a6==1)&&(((a17==2)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&!(a24==1)))&&(a20==1)))&&(a6==1))&&((a16==10)&&((a9==10)&&((a21==12)&&((a28==1)&&((a1==13)&&(!(a2==1)||((a19==5)&&((a12==1)||!(a12==1))))))))))){ + a21 = 10; + a1 = 12; + a9 = 7; + a6 = 1; + a16 = 7; + a5 = 4; + a19 = 1; + a2 = 1; + return -1; + } else if(((((((a4==1)||((a11==1)||!(a12==1)))&&(a28==1))&&(a12==1))&&(a17==2))&&((a1==13)&&((!(a20==1)&&((a21==10)&&((a19==2)&&(((a5==6)&&((a3==1)&&((a16==9)&&(input==6))))&&(a12==1)))))&&(a9==10))))){ + a20 = 1; + a10 = 0; + a25 = 0; + a21 = 12; + a1 = 14; + a16 = 11; + return -1; + } else if(((!(a20==1)&&((a21==10)&&(((((a19==4)&&((a16==10)&&((!(a12==1)||((a3==1)&&(a1==12)))&&(a11==1))))&&(a9==7))&&(a11==1))&&!(a4==1))))&&((a17==2)&&(!(a27==1)&&(!(a8==1)&&((input==3)&&((a5==5)||(a5==6)))))))){ + if((a14==1)){ + a9 = 10; + a1 = 14; + a28 = 0; + a3 = 0; + a5 = 4; + a0 = 1; + }else{ + a9 = 10; + a16 = 8; + a18 = 1; + a5 = 4; + a22 = 0; + a21 = 11; + a12 = 0; + } + return -1; + } else if((((a12==1)&&(((a1==14)&&(((!(a14==1)&&(((a5==5)||(a5==6))&&(input==6)))&&(a19==4))&&(a28==1)))&&(a16==10)))&&(!(a3==1)||((a9==10)&&((a17==2)&&(((a21==10)&&((a20==1)&&((a12==1)&&(a2==1))))&&(a6==1))))))){ + a1 = 13; + a12 = 1; + a5 = 5; + a19 = 3; + a27 = 0; + a9 = 11; + a0 = 0; + return -1; + } else if((((((!(a14==1)&&((a16==9)&&(a2==1)))&&(a1==14))||!(a12==1))&&(a21==10))&&((((a9==11)&&((((((((a5==5)||(a5==6))&&(input==5))&&(a2==1))&&!(a14==1))&&!(a20==1))&&!(a8==1))&&(a6==1)))&&(a17==2))&&(a19==3)))){ + a5 = 4; + a22 = 0; + a15 = 0; + a24 = 1; + a20 = 1; + a9 = 7; + a16 = 7; + a19 = 1; + return 21; + } else if((((a21==12)&&(((a19==5)&&(((a6==1)&&!(a8==1))&&!(a20==1)))&&(a9==8)))&&((a3==1)&&((a28==1)&&(((a16==7)&&(((a17==2)&&(!(a7==1)&&(!(a18==1)&&((input==6)&&((a5==5)||(a5==6))))))&&!(a26==1)))&&(a1==12)))))){ + a20 = 1; + a21 = 10; + a12 = 1; + a9 = 7; + a5 = 4; + a18 = 0; + a19 = 1; + a23 = 1; + return -1; + } else if(((((a14==1)||((a9==8)&&((((a1==14)&&(a2==1))&&!(a20==1))&&(a16==10))))||(a7==1))&&(((a21==10)&&((a6==1)&&(!(a7==1)&&((a19==3)&&((a17==2)&&((((a5==5)||(a5==6))&&(input==5))&&!(a8==1)))))))&&!(a4==1)))){ + a25 = 0; + a9 = 11; + a5 = 6; + a1 = 12; + a4 = 1; + return -1; + } else if(((((a8==1)||(((a20==1)&&((((a12==1)&&(a9==8))&&(a5==6))&&(a21==11)))||!(a13==1)))||!(a2==1))&&((a17==2)&&(!(a0==1)&&((a23==1)&&((a1==12)&&((a19==5)&&(((a16==8)&&(input==3))&&(a2==1))))))))){ + a5 = 4; + a2 = 1; + a16 = 7; + a9 = 7; + a21 = 10; + a28 = 1; + a19 = 1; + a11 = 1; + return -1; + } else if((((a28==1)&&(((((a20==1)&&(((a9==11)&&((a17==2)&&((a16==7)&&(!(a24==1)&&(((a5==4)||(a5==5))&&(input==4))))))&&!(a27==1)))&&(a1==13))&&(a21==12))&&!(a7==1)))&&((a7==1)||(((a28==1)&&!(a8==1))&&(a19==5))))){ + a21 = 10; + a9 = 7; + a8 = 0; + a1 = 12; + a13 = 1; + a5 = 4; + a19 = 1; + return -1; + } else if((((!(a11==1)||((((((a19==4)&&((a16==10)&&((a20==1)&&(a6==1))))&&(a21==11))||!(a2==1))&&(a3==1))&&!(a8==1)))||(a24==1))&&(!(a8==1)&&((a1==13)&&(((input==4)&&(((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))))&&(a17==2)))))){ + a21 = 10; + a13 = 1; + a1 = 12; + a2 = 1; + a16 = 7; + a5 = 4; + a9 = 7; + a4 = 0; + a19 = 1; + return -1; + } else if(((((((a17==2)&&(((a28==1)&&((input==4)&&(a1==13)))&&!(a14==1)))&&(a19==3))&&!(a0==1))&&(a21==11))&&((a5==5)&&((((((a18==1)||((a3==1)&&(a13==1)))&&!(a20==1))&&(a16==10))||!(a13==1))&&(a9==7))))){ + a1 = 14; + a19 = 1; + a5 = 6; + a29 = 1; + a16 = 7; + a10 = 1; + a21 = 10; + a9 = 9; + a20 = 1; + return -1; + } else if((((((!(a3==1)||(!(a7==1)&&(a11==1)))||(a26==1))||(a26==1))&&(a20==1))&&((a17==2)&&((((a1==12)&&((a16==10)&&((a23==1)&&(((a21==12)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6))))&&!(a14==1)))))&&(a19==2))&&(a9==8))))){ + a21 = 10; + a1 = 13; + a16 = 7; + a9 = 9; + a5 = 5; + a13 = 1; + a11 = 1; + a23 = 1; + return -1; + } else if((((a20==1)&&(((a16==8)&&((a12==1)&&(a1==14)))&&(a21==11)))&&(((!(a7==1)&&(((((a23==1)&&(((a2==1)&&((a19==2)&&(input==3)))&&(a5==6)))&&(a9==7))&&!(a26==1))&&(a17==2)))&&(a13==1))&&(a23==1)))){ + a1 = 13; + a21 = 10; + a12 = 1; + a0 = 0; + a19 = 4; + a24 = 0; + a16 = 10; + a9 = 11; + return 22; + } else if(((((a20==1)&&(((a13==1)&&(!(a26==1)&&(!(a7==1)&&((a17==2)&&(!(a26==1)&&(a6==1))))))&&(a1==13)))&&(a19==5))&&((((a21==10)&&(!(a14==1)&&((a12==1)&&((input==4)&&((a5==6)||((a5==4)||(a5==5)))))))&&(a16==8))&&(a9==11)))){ + a23 = 1; + a27 = 0; + a16 = 10; + a5 = 4; + a19 = 2; + a2 = 1; + a9 = 7; + return 21; + } else if((((a24==1)||(((a13==1)&&((a9==10)&&(((a19==5)&&(a12==1))||(a27==1))))&&(a1==13)))&&((a12==1)&&((a3==1)&&(((a17==2)&&(((a16==7)&&((a12==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5))))&&(a21==10)))&&(a20==1)))))){ + a5 = 4; + a24 = 0; + a1 = 14; + a9 = 9; + a21 = 12; + a4 = 0; + a19 = 3; + return 26; + } else if((((!(a7==1)&&(((((a17==2)&&(!(a20==1)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==5))))&&(a21==10))&&!(a26==1))&&!(a26==1)))&&(a16==10))&&((((a13==1)&&(!(a14==1)&&((a2==1)&&!(a7==1))))&&(a19==4))&&(a1==13)))){ + a1 = 12; + a20 = 1; + a5 = 5; + a22 = 1; + a9 = 9; + a16 = 7; + a7 = 1; + a15 = 1; + a19 = 2; + return -1; + } else if(((((a5==5)&&(((a21==11)&&((a11==1)&&(a13==1)))&&(a17==2)))&&(a23==1))&&(!(a14==1)&&(((a19==2)&&((a13==1)&&(((a16==7)&&(((a9==7)&&((a1==12)&&(input==4)))&&!(a20==1)))&&!(a14==1))))&&(a11==1))))){ + a19 = 1; + a20 = 1; + a11 = 1; + a13 = 1; + a14 = 0; + a5 = 4; + a21 = 10; + return -1; + } else if(((((a0==1)||(((a19==1)&&(!(a7==1)&&((a2==1)&&((a2==1)&&(a21==11)))))||!(a6==1)))&&(a16==7))&&((a1==14)&&((a9==9)&&(((!(a7==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&(a12==1)))&&(a17==2))&&(a20==1)))))){ + a21 = 10; + a1 = 12; + a0 = 0; + a9 = 7; + a19 = 2; + a5 = 4; + a16 = 8; + a11 = 1; + a2 = 1; + return 26; + } else if((((((a8==1)||((!(a13==1)||((a12==1)&&(a17==2)))&&!(a27==1)))&&(a21==12))&&(a20==1))&&(!(a27==1)&&((a16==7)&&(((a6==1)&&((a1==12)&&((a19==2)&&((a11==1)&&((input==4)&&((a5==5)||(a5==6)))))))&&(a9==7)))))){ + a21 = 10; + a11 = 1; + a19 = 1; + a5 = 4; + a28 = 1; + return -1; + } else if((((!(a27==1)&&((a12==1)&&((a3==1)&&(a16==7))))||(a7==1))&&(!(a7==1)&&(((!(a14==1)&&(!(a20==1)&&(((a17==2)&&((input==5)&&((((a9==11)&&((a5==5)&&(a1==12)))||((a9==11)&&((a1==12)&&(a5==6))))||((a9==7)&&((a1==13)&&(a5==4))))))&&(a21==11))))&&(a19==2))&&!(a4==1))))){ + a21 = 10; + a3 = 1; + a19 = 1; + a1 = 12; + a20 = 1; + a5 = 4; + a9 = 7; + a14 = 0; + a18 = 0; + return -1; + } else if((((a6==1)&&((a11==1)&&(!(a24==1)&&((a19==5)&&(!(a14==1)&&((a1==13)&&((((a16==9)&&(((a5==5)&&(input==6))&&(a21==12)))&&(a3==1))&&(a9==8))))))))&&((((a12==1)&&(a17==2))&&!(a20==1))||(a27==1)))){ + if((a11==1)){ + a25 = 1; + a16 = 7; + a9 = 7; + a28 = 0; + a20 = 1; + a19 = 1; + a3 = 0; + }else{ + a20 = 1; + a13 = 0; + a9 = 9; + a21 = 10; + a2 = 0; + a16 = 7; + a8 = 1; + a1 = 14; + a19 = 1; + } + return 21; + } else if((((a2==1)&&((a11==1)&&(((a1==13)&&((a20==1)&&((!(a4==1)&&((a16==11)&&((a21==10)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))))&&(a19==2))))&&(a9==9))))&&(!(a12==1)||(((!(a4==1)&&(a23==1))&&(a17==2))&&(a28==1))))){ + a5 = 4; + a9 = 7; + a16 = 7; + a8 = 0; + a26 = 0; + a19 = 1; + a1 = 12; + return -1; + } else if(((((a20==1)&&((a21==11)&&(!(a8==1)&&((a23==1)&&((input==1)&&((((a19==2)&&(((a1==14)&&(a5==5))&&(a9==11)))||(((a9==11)&&((a1==14)&&(a5==6)))&&(a19==2)))||((a19==3)&&(((a1==12)&&(a5==4))&&(a9==7)))))))))&&(a16==8))&&((a17==2)&&(((a7==1)||(((a23==1)&&(a11==1))&&!(a26==1)))&&!(a24==1))))){ + if((a18==1)){ + a19 = 2; + a21 = 10; + a23 = 1; + a26 = 0; + a1 = 13; + a13 = 1; + a9 = 10; + a5 = 5; + a20 = 0; + }else{ + a1 = 13; + a13 = 1; + a21 = 10; + a3 = 1; + a19 = 5; + a5 = 5; + a24 = 0; + a9 = 7; + a16 = 10; + } + return 23; + } else if(((((((((a21==12)&&((a6==1)&&(a12==1)))&&!(a20==1))&&(a12==1))||(a27==1))&&(a19==3))||!(a6==1))&&((((a16==7)&&((a17==2)&&((a1==12)&&((input==5)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))))))&&!(a8==1))&&!(a7==1)))){ + a20 = 1; + a23 = 1; + a9 = 7; + a12 = 1; + a5 = 4; + a21 = 10; + a13 = 1; + a19 = 1; + return -1; + } else if((((a16==9)&&((((a1==13)&&(a13==1))&&(a21==12))&&(a17==2)))&&((!(a27==1)&&(!(a14==1)&&(((a2==1)&&(((!(a20==1)&&(!(a27==1)&&((a5==4)&&(input==4))))&&!(a26==1))&&(a9==9)))&&(a19==4))))&&!(a24==1)))){ + if((a25==1)){ + a20 = 1; + a19 = 2; + a9 = 8; + a0 = 1; + a21 = 10; + a27 = 1; + a16 = 7; + a13 = 0; + a1 = 12; + }else{ + a28 = 0; + a2 = 0; + a26 = 1; + a21 = 10; + a1 = 14; + a5 = 6; + a20 = 1; + a19 = 1; + } + return -1; + } else if((((a28==1)&&((((a5==4)&&(((a16==9)&&(((a1==14)&&((input==3)&&(a21==12)))&&(a20==1)))&&(a6==1)))&&(a13==1))&&!(a24==1)))&&(!(a12==1)||(!(a12==1)||((((a23==1)&&(a17==2))&&(a9==8))&&(a19==3)))))){ + a9 = 7; + a26 = 0; + a1 = 12; + a16 = 7; + a28 = 1; + a21 = 10; + a27 = 0; + a19 = 1; + return -1; + } return calculate_output50(input); + } + + int calculate_output50(int input) { + if(((!(a28==1)||(!(a20==1)&&((a11==1)&&(!(a4==1)&&(a3==1)))))&&((a9==9)&&(((((a19==3)&&((a3==1)&&(((a17==2)&&((a11==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5))))))&&(a1==13))))&&(a16==10))&&(a21==12))&&!(a0==1))))){ + a19 = 1; + a29 = 0; + a25 = 1; + a21 = 10; + a20 = 1; + a23 = 0; + a9 = 8; + a5 = 6; + a16 = 7; + return 26; + } else if((((((a1==12)&&(((a16==8)&&((a17==2)&&(a2==1)))||(a26==1)))||(a4==1))&&(a3==1))&&((a13==1)&&((((((a23==1)&&((input==5)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5)))))&&!(a8==1))&&(a19==2))&&(a20==1))&&(a21==10))))){ + a9 = 9; + a23 = 1; + a21 = 12; + a1 = 13; + a26 = 0; + a16 = 9; + a5 = 5; + a19 = 3; + return 25; + } else if((((a19==4)&&((a17==2)&&((!(a20==1)&&((!(a4==1)&&((a5==4)&&(input==6)))&&(a3==1)))&&(a16==8))))&&(((a21==10)&&(!(a26==1)&&((((a2==1)&&((a1==12)&&(a2==1)))||!(a11==1))&&!(a4==1))))&&(a9==9)))){ + a19 = 1; + a20 = 1; + a16 = 7; + a8 = 0; + a0 = 0; + a7 = 0; + a9 = 7; + return -1; + } else if(((((a7==1)&&(!(a2==1)&&(((a26==1)&&(a11==1))&&(a20==1))))&&(a16==8))&&((a18==1)&&((((a9==11)&&(!(a3==1)&&(((((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&(a17==2))&&(a19==3))&&(a21==10))))&&(a1==13))&&!(a23==1))))){ + a5 = 4; + a3 = 0; + a7 = 1; + a9 = 7; + a8 = 1; + a21 = 11; + a19 = 2; + return -1; + } else if(((!(a7==1)&&((a9==10)&&(((!(a0==1)&&((a16==8)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3))))&&(a21==10))&&(a1==13))))&&(((a19==1)&&(((!(a20==1)&&((a11==1)&&((a13==1)&&(a6==1))))&&!(a4==1))&&(a17==2)))||!(a28==1)))){ + a16 = 7; + a27 = 0; + a8 = 0; + a5 = 4; + a20 = 1; + a1 = 12; + a0 = 0; + a9 = 7; + return -1; + } else if(((!(a28==1)&&((a17==2)&&((a19==5)&&((a21==12)&&((a1==14)&&((a5==6)&&((a11==1)&&(a27==1))))))))&&((a14==1)&&((((a14==1)&&((((a20==1)&&(input==1))&&(a16==8))&&(a9==7)))&&(a7==1))&&(a0==1))))){ + a5 = 4; + a24 = 1; + a1 = 12; + a21 = 11; + a9 = 11; + a16 = 7; + a20 = 0; + a19 = 3; + a27 = 1; + return -1; + } else if((((((a6==1)&&(((((a21==11)&&((input==1)&&((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4)))))&&(a17==2))&&(a20==1))&&(a1==13)))&&(a11==1))&&!(a14==1))&&(!(a13==1)||((a16==10)&&((((a23==1)||!(a11==1))&&(a19==4))&&(a13==1)))))){ + a5 = 4; + a19 = 1; + a1 = 12; + a27 = 0; + a6 = 1; + a21 = 10; + a9 = 7; + a16 = 7; + a2 = 1; + return -1; + } else if((((a9==10)&&((a16==8)&&(((a1==12)&&((a4==1)||((a12==1)&&(a17==2))))&&(a3==1))))&&(!(a14==1)&&(((((((a20==1)&&((input==6)&&(a5==4)))&&(a19==2))&&(a21==12))&&(a11==1))&&!(a14==1))&&(a28==1))))){ + a16 = 7; + a2 = 1; + a11 = 1; + a9 = 9; + a3 = 1; + a21 = 10; + a1 = 13; + return 25; + } else if((((((a4==1)&&(((a11==1)&&(a14==1))&&!(a2==1)))&&!(a20==1))&&(a17==2))&&(((a4==1)&&((a19==1)&&((a21==11)&&((a5==5)&&((a4==1)&&((a24==1)&&(((a16==7)&&(input==1))&&(a9==7))))))))&&(a1==12)))){ + a20 = 1; + a18 = 1; + a21 = 12; + a9 = 9; + a26 = 1; + a16 = 11; + a19 = 5; + a13 = 0; + a5 = 4; + return -1; + } else if(((!(a14==1)&&((a14==1)||(((((a16==9)&&(((a13==1)&&(a9==7))||(a8==1)))&&(a1==14))&&(a21==11))&&(a20==1))))&&((a17==2)&&(((((a28==1)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))&&(a3==1))&&(a19==5))&&(a12==1))))){ + a16 = 7; + a9 = 10; + a5 = 4; + a19 = 2; + a1 = 13; + a7 = 0; + a21 = 10; + a3 = 1; + a2 = 1; + return 21; + } else if(((((((a20==1)&&(((a3==1)&&(a3==1))&&(a5==6)))||!(a13==1))&&!(a14==1))||(a27==1))&&((a13==1)&&((a16==7)&&((((((a1==12)&&((input==3)&&(a9==10)))&&(a17==2))&&(a21==12))&&(a23==1))&&(a19==3)))))){ + a16 = 9; + a24 = 0; + a4 = 0; + a11 = 1; + a9 = 7; + a21 = 10; + a5 = 4; + a19 = 5; + return 25; + } else if(((((a4==1)&&(((a20==1)&&((((a1==14)&&((a7==1)&&((a28==1)&&(a19==3))))&&(a16==10))&&(a21==11)))&&(a17==2)))&&(a24==1))&&((((!(a3==1)&&((input==6)&&((a5==5)||(a5==6))))&&(a9==7))&&(a8==1))&&!(a6==1)))){ + a21 = 10; + a8 = 1; + a9 = 11; + a2 = 0; + a22 = 0; + a1 = 12; + a5 = 5; + a19 = 1; + a16 = 7; + return -1; + } else if(((((a1==14)&&(((a13==1)&&((a11==1)&&(!(a7==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))))&&(a19==4)))&&(a21==11))&&((a16==8)&&(!(a20==1)&&((a17==2)&&((a9==10)&&((((a28==1)&&(a6==1))&&!(a7==1))||(a26==1)))))))){ + a9 = 7; + a12 = 1; + a19 = 1; + a21 = 10; + a13 = 1; + a1 = 12; + a5 = 4; + a16 = 7; + a20 = 1; + a27 = 0; + return -1; + } else if(((((a21==10)&&((a1==13)&&((a11==1)&&(((((input==5)&&((a5==4)||(a5==5)))&&!(a24==1))&&(a3==1))&&(a3==1)))))&&!(a20==1))&&((a9==10)&&((((a17==2)&&(!(a3==1)||(!(a8==1)&&(a6==1))))&&(a19==2))&&(a16==9))))){ + a1 = 12; + a5 = 4; + a27 = 1; + a9 = 9; + a18 = 1; + a29 = 1; + a20 = 1; + a16 = 7; + return 25; + } else if((((((!(a18==1)&&(((a11==1)&&(a2==1))||!(a28==1)))||!(a28==1))&&(a20==1))||!(a12==1))&&((a28==1)&&((a21==11)&&((a16==11)&&((a17==2)&&(((input==4)&&(((a9==11)&&((a1==13)&&(a5==6)))||(((a1==14)&&(a5==4))&&(a9==7))))&&(a19==1)))))))){ + a5 = 4; + a9 = 7; + a14 = 0; + a16 = 7; + a4 = 0; + a1 = 12; + a6 = 1; + a21 = 10; + return -1; + } else if((((!(a20==1)&&((a0==1)||((a19==2)&&((a3==1)&&!(a14==1)))))&&(a9==10))&&((((((!(a0==1)&&((a17==2)&&(((a5==6)&&(input==3))&&(a16==7))))&&(a2==1))&&(a3==1))&&(a1==14))&&!(a24==1))&&(a21==12)))){ + a11 = 1; + a0 = 0; + a21 = 10; + a9 = 11; + a16 = 9; + a20 = 1; + a28 = 1; + a19 = 4; + return 25; + } else if(((((((a9==8)&&(!(a26==1)&&((a11==1)||!(a23==1))))&&(a16==10))&&(a1==13))&&(a21==10))&&((!(a24==1)&&((((a23==1)&&(((((a5==5)||(a5==6))&&(input==4))&&(a17==2))&&(a19==5)))&&(a20==1))&&(a11==1)))&&!(a14==1)))){ + a9 = 7; + a16 = 7; + a28 = 1; + a0 = 0; + a19 = 1; + a1 = 12; + a11 = 1; + a5 = 4; + return -1; + } else if((((a16==11)&&((a2==1)&&(((!(a24==1)&&(((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a9==9)))&&(a1==12))&&(a13==1))))&&(((a17==2)&&(((a20==1)&&((((a6==1)||!(a6==1))||(a0==1))&&(a19==3)))&&(a3==1)))&&(a21==10)))){ + a5 = 4; + a8 = 0; + a19 = 1; + a9 = 7; + a23 = 1; + a14 = 0; + a16 = 7; + return -1; + } else if((((!(a26==1)&&(!(a20==1)&&(((a16==9)&&((a28==1)&&(a21==11)))&&(a13==1))))&&(a9==11))&&(((!(a26==1)&&(((a23==1)&&((!(a27==1)&&(((a5==4)||(a5==5))&&(input==4)))&&(a19==4)))&&(a1==13)))&&!(a14==1))&&(a17==2)))){ + a6 = 0; + a21 = 10; + a9 = 7; + a5 = 6; + a16 = 7; + a20 = 1; + a25 = 1; + a23 = 0; + a19 = 1; + return -1; + } else if(((((a1==14)&&(((a27==1)||(((a2==1)&&(((a21==10)&&(a3==1))&&(a16==10)))&&(a19==5)))&&!(a18==1)))&&(a20==1))&&((a17==2)&&(((((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==1))&&!(a27==1))&&!(a24==1))&&(a11==1))))){ + a21 = 12; + a5 = 6; + a14 = 0; + a9 = 8; + a3 = 1; + a16 = 8; + a19 = 1; + a23 = 1; + return 21; + } else if((((a19==5)&&((a1==13)&&(((a28==1)&&(((((a17==2)&&(((input==1)&&((a5==5)||(a5==6)))&&!(a26==1)))&&(a21==10))&&!(a20==1))&&!(a24==1)))&&(a16==8))))&&((((a9==7)&&((a23==1)&&(a2==1)))&&!(a4==1))||!(a23==1)))){ + a20 = 1; + a9 = 9; + a5 = 6; + a19 = 3; + a12 = 1; + a3 = 1; + a21 = 11; + a0 = 0; + return 21; + } else if(((((a28==1)&&(((a13==1)&&((input==5)&&(((a9==7)&&((a1==14)&&(a5==5)))||(((a9==11)&&((a5==6)&&(a1==13)))||(((a1==14)&&(a5==4))&&(a9==7))))))&&!(a7==1)))&&(a17==2))&&(((((a16==10)&&((a18==1)||((a19==5)&&((a3==1)&&(a21==10)))))&&(a20==1))||!(a28==1))||(a26==1)))){ + a27 = 0; + a21 = 11; + a2 = 1; + a19 = 1; + a5 = 4; + a1 = 13; + a9 = 9; + a28 = 1; + a16 = 11; + return 22; + } else if(((((a21==11)&&(((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==5))&&(a16==7)))&&!(a26==1))&&((a26==1)||(((((a12==1)&&(((a1==13)&&((a17==2)&&((a13==1)&&(a19==2))))&&(a20==1)))&&!(a0==1))||(a26==1))&&!(a24==1))))){ + a6 = 1; + a21 = 10; + a5 = 4; + a8 = 0; + a1 = 12; + a9 = 7; + a4 = 0; + a19 = 1; + return -1; + } else if(((((a8==1)||(((((a11==1)||!(a2==1))&&(a16==8))||!(a12==1))&&!(a7==1)))&&(a1==13))&&(((((a20==1)&&((!(a27==1)&&(((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4)))&&(input==5)))&&(a17==2)))&&(a28==1))&&(a19==2))&&(a21==12)))){ + a21 = 10; + a9 = 10; + a1 = 14; + a23 = 1; + a6 = 1; + a5 = 4; + a16 = 7; + a0 = 0; + return 21; + } else if((((a19==4)&&((a20==1)&&((((a18==1)||(!(a6==1)||(a11==1)))||(a26==1))&&(a1==13))))&&(((((a6==1)&&((a21==10)&&(!(a27==1)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==3)))))&&(a17==2))&&!(a4==1))&&(a16==9)))){ + a3 = 1; + a27 = 0; + a9 = 10; + a5 = 4; + a1 = 12; + a26 = 0; + a21 = 12; + a19 = 3; + return 21; + } else if((((a1==14)&&((a21==10)&&((a9==11)&&((a16==8)&&(((a19==1)&&(a11==1))||!(a23==1))))))&&(((a3==1)&&(!(a18==1)&&(((!(a14==1)&&((((a5==5)||(a5==6))&&(input==3))&&!(a24==1)))&&!(a20==1))&&!(a8==1))))&&(a17==2)))){ + a16 = 7; + a20 = 1; + a0 = 0; + a9 = 7; + a5 = 4; + a18 = 0; + a14 = 0; + a1 = 12; + return -1; + } else if((((a28==1)&&((a9==10)&&((!(a24==1)&&(((a5==4)||(a5==5))&&(input==5)))&&(a1==13))))&&((a21==12)&&((!(a20==1)&&((a27==1)||((a16==9)&&((a17==2)&&(!(a6==1)||((!(a12==1)||(a11==1))&&(a19==3)))))))&&(a12==1))))){ + if((a20==1)){ + a1 = 12; + a15 = 1; + a19 = 1; + a9 = 11; + a21 = 10; + a23 = 0; + a5 = 6; + a26 = 1; + a16 = 7; + a20 = 1; + }else{ + a21 = 11; + a16 = 8; + a22 = 0; + a1 = 12; + a9 = 8; + a12 = 0; + a0 = 1; + a5 = 4; + a20 = 1; + } + return 21; + } else if((((a20==1)&&((a9==7)&&((a28==1)&&(((a28==1)&&((!(a26==1)&&((a28==1)&&((((a5==5)||(a5==6))&&(input==5))&&(a16==10))))&&!(a14==1)))&&(a17==2)))))&&((a21==11)&&((((a6==1)&&(a19==3))&&(a1==13))&&(a23==1))))){ + a9 = 9; + a21 = 10; + a19 = 2; + a18 = 0; + a14 = 0; + a2 = 1; + a16 = 7; + a5 = 4; + return 25; + } else if(((((a27==1)&&((((a0==1)&&(((a19==5)&&((a16==7)&&((input==6)&&(a20==1))))&&(a1==13)))&&!(a12==1))&&(a21==12)))&&(a14==1))&&(((((a9==8)&&(!(a28==1)&&(a23==1)))&&(a5==4))&&(a24==1))&&(a17==2)))){ + a9 = 9; + a16 = 8; + a2 = 0; + a5 = 6; + a24 = 1; + a1 = 14; + a21 = 10; + a0 = 1; + return -1; + } else if(((((((a3==1)&&(a16==9))||(a4==1))&&(a19==5))&&(a20==1))&&(!(a14==1)&&((a2==1)&&((a1==12)&&((((a17==2)&&((!(a4==1)&&((input==4)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))&&!(a0==1)))&&!(a4==1))&&(a21==11))))))){ + a4 = 0; + a0 = 0; + a7 = 0; + a19 = 1; + a9 = 7; + a5 = 4; + a16 = 7; + a21 = 10; + return -1; + } else if((((a21==12)&&((a19==4)&&(((((a3==1)||!(a2==1))||!(a23==1))||!(a3==1))&&(a16==8))))&&((((((a13==1)&&(!(a18==1)&&(((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))&&(input==1))))&&!(a20==1))&&(a17==2))&&(a3==1))&&(a1==14)))){ + a25 = 1; + a9 = 7; + a3 = 0; + a19 = 1; + a0 = 1; + a5 = 5; + a21 = 11; + return -1; + } else if(((((((!(a26==1)&&(((input==5)&&!(a20==1))&&(a1==12)))&&(a17==2))&&(a5==6))&&(a19==4))&&(a16==10))&&((a9==10)&&(((!(a0==1)&&(((a26==1)||((a23==1)||!(a12==1)))&&(a2==1)))||(a18==1))&&(a21==12))))){ + if((a1==14)){ + a21 = 11; + a19 = 3; + a20 = 1; + a9 = 7; + a1 = 13; + a25 = 1; + a10 = 1; + a16 = 7; + }else{ + a20 = 1; + a24 = 1; + a11 = 0; + a25 = 0; + a16 = 7; + a19 = 1; + a1 = 13; + a21 = 10; + } + return -1; + } else if((((((a12==1)&&((a1==14)&&((a20==1)&&((a5==5)&&((a17==2)&&((a16==8)&&((input==5)&&(a21==12))))))))&&!(a26==1))&&(a13==1))&&((((a23==1)&&((a9==11)&&((a11==1)&&(a19==2))))&&(a28==1))&&(a23==1)))){ + a18 = 0; + a5 = 4; + a14 = 0; + a9 = 7; + a16 = 10; + a23 = 1; + a1 = 12; + return 26; + } else if((((!(a28==1)||((a13==1)&&((a16==8)&&((a19==4)&&((a20==1)&&((a12==1)&&(a5==6)))))))||(a7==1))&&((a17==2)&&((a28==1)&&((a21==10)&&((a3==1)&&((a1==13)&&((a23==1)&&((input==5)&&(a9==11)))))))))){ + a19 = 1; + a18 = 0; + a5 = 4; + a3 = 1; + a0 = 0; + a9 = 10; + a16 = 10; + return 22; + } else if((((a23==1)&&((a17==2)&&((a21==11)&&((a19==4)&&(((a5==4)&&((a20==1)&&(input==4)))&&(a16==11))))))&&(((((((a1==12)&&((a12==1)&&(a2==1)))&&(a11==1))&&!(a27==1))||(a7==1))&&(a9==11))||!(a6==1)))){ + a21 = 10; + a9 = 7; + a4 = 0; + a19 = 1; + a2 = 1; + a0 = 0; + a16 = 7; + return -1; + } else if((((a21==12)&&((a17==2)&&((a16==9)&&((a9==7)&&(((!(a14==1)&&(((a2==1)&&!(a8==1))||(a27==1)))||(a24==1))&&(a1==13))))))&&(!(a20==1)&&((((a5==4)&&((input==4)&&(a19==4)))&&!(a18==1))&&(a2==1))))){ + if((a18==1)){ + a20 = 1; + a1 = 14; + a5 = 6; + a19 = 1; + a27 = 1; + a2 = 0; + a22 = 1; + a21 = 10; + a9 = 8; + a16 = 7; + }else{ + a0 = 1; + a25 = 1; + a1 = 12; + a16 = 8; + a19 = 2; + a21 = 11; + a6 = 0; + } + return -1; + } else if((((a21==12)&&((a5==6)&&(!(a13==1)||(((a8==1)||(((a9==11)&&((!(a6==1)||((a28==1)&&(a16==11)))&&(a19==2)))&&(a20==1)))||!(a3==1)))))&&(!(a8==1)&&(((a17==2)&&((a1==14)&&(input==5)))&&(a28==1))))){ + a11 = 1; + a1 = 12; + a13 = 1; + a9 = 7; + a19 = 1; + a7 = 0; + a5 = 4; + a21 = 10; + a16 = 7; + return -1; + } else if((((((a16==9)&&(!(a24==1)&&(((((input==4)&&(a21==11))&&!(a7==1))&&(a1==13))&&(a19==4))))&&!(a18==1))&&(a28==1))&&((((a17==2)&&((a9==10)&&(!(a24==1)&&((a2==1)&&(a20==1)))))&&(a5==6))&&(a6==1)))){ + a26 = 0; + a28 = 1; + a21 = 12; + a19 = 5; + a20 = 0; + a16 = 7; + a7 = 0; + a9 = 9; + a5 = 5; + return -1; + } else if(((((a16==8)&&((!(a23==1)||(((a2==1)&&((a18==1)||(a23==1)))&&(a1==12)))||!(a3==1)))&&!(a20==1))&&((a9==7)&&((a21==12)&&((a17==2)&&((a19==1)&&(!(a27==1)&&(((input==6)&&((a5==5)||(a5==6)))&&!(a14==1))))))))){ + if((a21==10)){ + a16 = 7; + a19 = 2; + a2 = 0; + a9 = 11; + a15 = 0; + a21 = 11; + a25 = 1; + a5 = 5; + }else{ + a5 = 6; + a1 = 14; + a9 = 10; + a20 = 1; + a6 = 0; + a13 = 0; + a21 = 10; + a16 = 7; + } + return -1; + } else if((((!(a11==1)||(((a13==1)&&((a6==1)&&!(a8==1)))&&(a19==5)))&&(a12==1))&&((a9==7)&&((a20==1)&&((((a21==12)&&(((a23==1)&&((a5==4)&&((a1==13)&&(input==1))))&&!(a24==1)))&&(a16==10))&&(a17==2)))))){ + a16 = 7; + a9 = 10; + a5 = 6; + a11 = 1; + a19 = 4; + a1 = 14; + a3 = 1; + a21 = 10; + a4 = 0; + return 25; + } else if((((a19==3)&&(!(a11==1)||((((!(a11==1)||((a24==1)||((a17==2)&&(a12==1))))||!(a23==1))&&!(a20==1))&&!(a7==1))))&&((a21==11)&&((((((input==3)&&((a5==5)||(a5==6)))&&!(a26==1))&&(a9==10))&&(a16==7))&&(a1==13))))){ + a7 = 0; + a19 = 1; + a5 = 4; + a14 = 0; + a20 = 1; + a18 = 0; + a1 = 12; + a9 = 7; + a21 = 10; + return -1; + } else if(((((a23==1)&&(((a19==2)&&((a21==10)&&((a17==2)&&((a1==14)&&(((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&(a20==1))))))&&(a12==1)))&&!(a18==1))&&(!(a12==1)||(((((a13==1)||(a0==1))&&(a16==11))&&(a9==8))||!(a6==1))))){ + a9 = 7; + a14 = 0; + a8 = 0; + a27 = 0; + a16 = 7; + a5 = 4; + a1 = 12; + a19 = 1; + return -1; + } else if((((a20==1)&&((a9==11)&&((a12==1)&&((a16==10)&&(((a21==12)&&(((input==6)&&(a19==2))&&(a11==1)))&&(a1==13))))))&&(!(a24==1)&&(((a5==4)&&((((a17==2)&&(a11==1))||(a4==1))&&(a3==1)))&&(a12==1))))){ + a16 = 7; + a7 = 0; + a5 = 5; + a21 = 10; + a9 = 9; + a13 = 1; + a11 = 1; + return 25; + } else if(((((((a16==11)&&((a3==1)&&((a6==1)&&(((((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6))))&&(input==4))&&(a21==11)))))&&!(a14==1))&&!(a0==1))&&(a1==14))&&(((a17==2)&&((((a28==1)||(a27==1))&&(a20==1))||!(a3==1)))&&(a19==5)))){ + a18 = 0; + a9 = 7; + a19 = 1; + a14 = 0; + a5 = 4; + a21 = 10; + a16 = 7; + a1 = 12; + a24 = 0; + return -1; + } else if((((((a23==1)&&((a23==1)&&((a11==1)&&((a1==12)&&(((a17==2)&&((a19==2)&&(((a5==5)||(a5==6))&&(input==6))))&&(a9==9))))))&&(a21==12))&&(a16==9))&&(((a20==1)&&(!(a24==1)&&((a3==1)&&(a12==1))))&&!(a0==1)))){ + a13 = 1; + a21 = 10; + a19 = 1; + a5 = 4; + a16 = 7; + a6 = 1; + a9 = 7; + a23 = 1; + return -1; + } else if((((a9==8)&&(((((a27==1)||((a11==1)&&(((a14==1)||((a6==1)&&(a16==9)))&&(a1==14))))&&(a17==2))&&(a21==11))&&(a6==1)))&&(((a20==1)&&((((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&(a19==2))&&!(a14==1)))&&(a6==1)))){ + a11 = 1; + a9 = 7; + a7 = 0; + a16 = 10; + a19 = 1; + a27 = 0; + a21 = 10; + a5 = 4; + return 21; + } else if((((a1==12)&&((a2==1)&&((a21==10)&&(!(a26==1)&&((!(a8==1)&&((((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6))))&&(input==6)))&&(a17==2))))))&&(!(a13==1)||(((a20==1)&&(((!(a12==1)||(a28==1))&&(a19==3))&&(a16==7)))||(a4==1))))){ + a5 = 4; + a0 = 0; + a1 = 13; + a4 = 0; + a9 = 11; + a19 = 5; + a23 = 1; + return 25; + } else if((((a1==12)&&((a19==1)&&((a3==1)&&((a28==1)&&((a11==1)&&(((a3==1)||!(a12==1))&&(a16==9)))))))&&((a5==4)&&((a21==11)&&(((a23==1)&&(((a3==1)&&((a9==7)&&(input==1)))&&(a17==2)))&&(a20==1)))))){ + a3 = 1; + a16 = 7; + a26 = 0; + a21 = 10; + return -1; + } else if((((a14==1)||(((a1==12)&&((((a6==1)&&(a19==5))&&!(a0==1))||!(a13==1)))&&(a16==7)))&&((a17==2)&&(((a21==11)&&(((!(a18==1)&&((((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6))))&&(input==3)))&&(a12==1))&&(a6==1)))&&(a20==1))))){ + a12 = 1; + a27 = 0; + a21 = 10; + a9 = 7; + a5 = 4; + a2 = 1; + a19 = 1; + return -1; + } else if((((a9==7)&&(((a16==9)&&((((a11==1)&&(((a19==4)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))&&(a17==2)))&&(a23==1))&&!(a18==1)))&&(a23==1)))&&((a1==14)&&(((a8==1)||(((a3==1)&&!(a14==1))&&(a21==11)))&&(a20==1))))){ + a4 = 0; + a1 = 12; + a12 = 1; + a16 = 7; + a19 = 1; + a5 = 4; + a21 = 10; + a26 = 0; + return -1; + } else if((((a1==12)&&((((a21==10)&&((a17==2)&&(!(a0==1)&&((a16==10)&&((!(a0==1)&&(a12==1))||(a8==1))))))&&(a9==10))||!(a6==1)))&&((((a19==1)&&(!(a27==1)&&(((a5==4)||(a5==5))&&(input==6))))&&!(a14==1))&&!(a20==1)))){ + if((a17==2)){ + a9 = 7; + a1 = 13; + a19 = 2; + a4 = 1; + a2 = 0; + a16 = 7; + a20 = 1; + a5 = 4; + a25 = 1; + }else{ + a16 = 7; + a3 = 0; + a5 = 4; + a25 = 1; + a23 = 0; + a9 = 9; + a20 = 1; + } + return -1; + } else if(((((a21==11)&&(((!(a6==1)&&((a20==1)&&(a12==1)))&&(a1==13))&&(a16==7)))&&!(a3==1))&&(!(a28==1)&&(((((a26==1)&&((a19==3)&&((input==5)&&((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4))))))&&(a18==1))&&(a17==2))&&!(a28==1))))){ + a9 = 7; + a19 = 2; + a21 = 10; + a10 = 1; + a5 = 4; + a15 = 0; + a23 = 0; + return -1; + } else if(((!(a20==1)&&((a17==2)&&((a19==1)&&(((a16==10)&&(!(a14==1)&&((a12==1)&&(!(a4==1)&&((a3==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4)))))))&&(a21==12)))))&&((a9==8)&&(!(a27==1)&&((a23==1)&&((a1==12)&&(a3==1))))))){ + a10 = 0; + a1 = 13; + a16 = 8; + a19 = 2; + a11 = 0; + a5 = 6; + return -1; + } else if((((!(a0==1)&&((((a13==1)&&(((a17==2)&&((a21==10)&&(input==5)))&&(a13==1)))&&(a3==1))&&!(a20==1)))&&(a1==12))&&((a23==1)&&((a3==1)&&((((a5==6)&&((a13==1)&&(a19==3)))&&(a16==8))&&(a9==7)))))){ + a21 = 12; + a19 = 4; + a5 = 4; + a20 = 1; + a3 = 1; + a1 = 14; + a4 = 0; + a8 = 0; + return 22; + } else if((((a20==1)&&((a1==12)&&((a9==7)&&((!(a2==1)||((!(a23==1)||((a28==1)||(a26==1)))&&(a17==2)))&&(a12==1)))))&&((a16==9)&&(((((a19==5)&&(((a5==5)||(a5==6))&&(input==6)))&&!(a14==1))&&(a21==12))&&(a6==1))))){ + a3 = 1; + a27 = 0; + a12 = 1; + a16 = 7; + a21 = 10; + a5 = 4; + a19 = 1; + return -1; + } else if((((a21==11)&&((((a16==7)&&((a2==1)&&(!(a13==1)||((a13==1)||(a14==1)))))&&(a17==2))||(a8==1)))&&((a1==13)&&((((!(a24==1)&&((((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6))))&&(input==5)))&&!(a20==1))&&(a19==4))&&(a2==1))))){ + a21 = 10; + a3 = 1; + a9 = 8; + a20 = 1; + a5 = 4; + a19 = 1; + a28 = 1; + a16 = 11; + a1 = 14; + a4 = 0; + return 25; + } else if((((((a19==5)&&((((a17==2)&&((!(a4==1)&&((input==5)&&(((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))))&&(a12==1)))&&(a12==1))&&(a13==1)))&&(a21==10))&&(a1==14))&&((a6==1)&&((((a20==1)&&(a13==1))||(a8==1))&&(a16==10))))){ + a5 = 4; + a28 = 1; + a16 = 9; + a1 = 12; + a23 = 1; + a8 = 0; + a9 = 11; + a21 = 11; + return 21; + } else if((((a3==1)&&((a19==5)&&(((a5==4)&&(((input==6)&&(a1==14))&&(a2==1)))&&(a20==1))))&&(((a16==9)&&((a17==2)&&(((((a14==1)||((a3==1)&&!(a8==1)))&&!(a14==1))&&(a21==11))||(a4==1))))&&(a9==8)))){ + a16 = 7; + a9 = 10; + a21 = 10; + a1 = 13; + a0 = 0; + a28 = 1; + a23 = 1; + a19 = 2; + return 21; + } else if((((a9==10)&&(((a17==2)&&((!(a4==1)&&(!(a8==1)&&((a2==1)&&((a21==10)&&(input==3)))))&&(a13==1)))&&(a16==11)))&&(((a1==13)&&(((((a11==1)&&!(a4==1))&&(a5==4))||(a26==1))&&!(a20==1)))&&(a19==1)))){ + a9 = 8; + a1 = 14; + a19 = 3; + a15 = 0; + a18 = 1; + a5 = 6; + a16 = 8; + a25 = 0; + return 21; + } else if(((!(a13==1)&&((a17==2)&&((a1==12)&&(((a19==1)&&((a26==1)&&(a3==1)))&&(a20==1)))))&&((((a18==1)&&(((((a9==9)&&((input==1)&&(a5==6)))&&(a21==12))&&(a27==1))&&!(a23==1)))&&!(a6==1))&&(a16==10)))){ + a9 = 11; + a16 = 7; + a29 = 1; + a5 = 5; + a1 = 13; + a2 = 0; + a8 = 1; + a21 = 10; + return 22; + } else if(((((a1==13)&&(((!(a18==1)&&(!(a27==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a2==1))))&&!(a0==1))&&(a21==10)))&&!(a24==1))&&((a19==2)&&((a9==9)&&((a16==11)&&(((a20==1)&&((a6==1)||(a0==1)))&&(a17==2))))))){ + a23 = 1; + a19 = 1; + a1 = 12; + a16 = 7; + a9 = 7; + a5 = 4; + a27 = 0; + a24 = 0; + return -1; + } else if(((((a20==1)&&((!(a8==1)&&(!(a23==1)||((a6==1)&&(a13==1))))&&(a19==3)))&&(a21==12))&&((((((a28==1)&&((!(a8==1)&&((input==6)&&(a5==6)))&&(a9==7)))&&(a6==1))&&(a1==13))&&(a16==11))&&(a17==2)))){ + a21 = 11; + a0 = 0; + a6 = 1; + a18 = 0; + a9 = 9; + a16 = 10; + a19 = 2; + a5 = 5; + return 21; + } else if(((((((a21==10)&&((a23==1)&&(((input==5)&&((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4))))&&(a28==1))))&&!(a26==1))&&(a1==14))&&(a19==4))&&((a17==2)&&((a16==9)&&(((a6==1)&&((a6==1)&&((a20==1)&&(a3==1))))||!(a6==1)))))){ + a14 = 0; + a9 = 7; + a16 = 7; + a5 = 4; + a11 = 1; + a19 = 1; + a1 = 12; + return -1; + } else if(((((a11==1)&&((a14==1)||((a19==2)&&(a6==1))))&&(a9==7))&&((a21==11)&&(((((a17==2)&&(((((a28==1)&&(((a5==4)||(a5==5))&&(input==1)))&&(a16==8))&&!(a20==1))&&(a28==1)))&&(a13==1))&&(a1==12))&&(a12==1))))){ + a20 = 1; + a5 = 6; + a1 = 14; + a9 = 9; + a16 = 9; + a21 = 10; + a23 = 1; + a2 = 1; + a6 = 1; + return 21; + } else if((((!(a20==1)&&(((a17==2)&&(!(a18==1)&&((((((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(input==5))&&!(a8==1))&&!(a26==1))))&&(a21==12)))&&(a1==14))&&((!(a4==1)&&((a16==7)&&((!(a3==1)||(a6==1))||!(a23==1))))&&(a19==3)))){ + a11 = 1; + a8 = 0; + a20 = 1; + a5 = 4; + a16 = 11; + a9 = 9; + a21 = 11; + a1 = 13; + a12 = 1; + a19 = 2; + return 26; + } else if((((a1==12)&&(((a17==2)&&(!(a14==1)&&((((a23==1)||(a27==1))&&(a2==1))||!(a12==1))))&&(a21==10)))&&(((a5==6)&&((a13==1)&&(!(a4==1)&&((!(a20==1)&&((a19==1)&&(input==4)))&&(a9==8)))))&&(a16==9)))){ + a15 = 0; + a16 = 7; + a9 = 7; + a3 = 0; + a11 = 0; + a5 = 4; + a20 = 1; + return 21; + } else if((((a2==1)&&((((input==1)&&((((a9==11)&&((a1==12)&&(a5==5)))||(((a5==6)&&(a1==12))&&(a9==11)))||(((a1==13)&&(a5==4))&&(a9==7))))&&(a19==2))&&(a2==1)))&&((!(a2==1)||(((((((a3==1)&&(a17==2))&&(a16==8))&&(a21==11))&&(a20==1))&&!(a4==1))&&!(a24==1)))&&!(a0==1)))){ + a16 = 10; + a23 = 1; + a9 = 8; + a21 = 10; + a5 = 4; + a7 = 0; + a19 = 4; + a6 = 1; + a1 = 12; + return 21; + } else if((((a20==1)&&((!(a23==1)||((a18==1)||((a21==10)&&((a5==6)&&((a9==8)&&((!(a12==1)||((a3==1)&&(a13==1)))&&(a19==3)))))))&&(a1==13)))&&((a16==9)&&((((a17==2)&&(input==6))&&!(a27==1))&&!(a27==1))))){ + a13 = 1; + a3 = 1; + a5 = 4; + a1 = 12; + a26 = 0; + a16 = 7; + a19 = 1; + a9 = 7; + return -1; + } else if(((!(a13==1)&&(!(a6==1)&&((((((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a17==2))&&!(a6==1))&&!(a20==1))&&(a9==7))&&(a16==7))))&&((a4==1)&&((a19==3)&&((a1==12)&&((a21==11)&&((a18==1)&&((a12==1)&&!(a3==1))))))))){ + a5 = 6; + a29 = 0; + a6 = 0; + a9 = 8; + a22 = 0; + a21 = 12; + a20 = 1; + a19 = 5; + return 25; + } else if(((!(a8==1)&&(!(a28==1)||((a20==1)&&(((a16==9)&&(a23==1))&&(a21==12)))))&&((a6==1)&&(((!(a0==1)&&(((input==6)&&(((a19==1)&&(((a1==14)&&(a5==6))&&(a9==11)))||((a19==2)&&(((a5==4)&&(a1==12))&&(a9==7)))))&&!(a0==1)))&&(a17==2))&&!(a14==1))))){ + a9 = 8; + a5 = 6; + a19 = 3; + a20 = 0; + a21 = 10; + a27 = 0; + a16 = 8; + a1 = 14; + a14 = 0; + a26 = 0; + return 21; + } else if((((a3==1)&&((!(a20==1)&&((((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a17==2))&&(a11==1)))&&(a21==12)))&&(((a9==8)&&((((!(a23==1)||(((a19==2)&&(a28==1))&&(a3==1)))&&(a1==12))&&!(a8==1))||(a26==1)))&&(a16==10)))){ + a5 = 6; + a16 = 7; + a20 = 1; + a14 = 1; + a2 = 0; + a1 = 14; + a21 = 10; + a19 = 1; + a26 = 1; + return -1; + } else if((((a5==5)&&(((!(a28==1)&&((a21==10)&&(((a7==1)&&((a12==1)&&(a19==2)))&&!(a13==1))))&&(a16==11))&&(a20==1)))&&(((((((input==5)&&(a17==2))&&!(a6==1))&&(a26==1))&&(a18==1))&&(a1==14))&&(a9==10)))){ + a9 = 7; + a5 = 6; + a4 = 1; + a16 = 7; + a19 = 1; + a8 = 1; + a24 = 1; + return -1; + } else if((((a1==12)&&((((a6==1)&&(((((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&(input==5))&&!(a27==1)))&&(a6==1))&&(a16==9)))&&((a20==1)&&(((!(a6==1)||(!(a23==1)||((a19==2)&&((a28==1)&&(a3==1)))))&&(a17==2))&&(a21==11))))){ + a9 = 8; + a1 = 13; + a19 = 1; + a5 = 5; + a27 = 0; + a2 = 1; + a24 = 0; + a20 = 0; + a16 = 7; + return 26; + } else if((((((((a3==1)&&(((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==6))&&!(a14==1)))&&(a3==1))&&(a16==10))&&!(a27==1))&&(a19==5))&&(((!(a18==1)&&((!(a12==1)||((a21==10)&&(a28==1)))&&!(a20==1)))&&(a1==14))&&(a17==2)))){ + a1 = 13; + a7 = 1; + a9 = 7; + a19 = 1; + a16 = 7; + a5 = 4; + a22 = 0; + a20 = 1; + a12 = 0; + return 21; + } else if((((((((a7==1)||(((!(a6==1)||(a2==1))||(a18==1))&&!(a8==1)))&&(a6==1))&&(a21==10))&&(a1==14))&&(a16==9))&&((((((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==3))&&(a6==1))&&(a20==1))&&(a17==2))&&(a19==5)))){ + a14 = 0; + a21 = 12; + a5 = 6; + a12 = 1; + a24 = 0; + a19 = 1; + a9 = 8; + a16 = 8; + return 21; + } else if((((a23==1)&&(((((a9==10)&&((a3==1)&&((input==6)&&!(a20==1))))&&(a6==1))&&(a3==1))&&(a6==1)))&&(((a19==3)&&((((a1==13)&&(((a21==10)&&(a3==1))&&(a5==5)))&&(a16==10))&&(a17==2)))&&!(a24==1)))){ + if((a22==1)){ + a26 = 1; + a14 = 1; + a1 = 12; + a16 = 7; + a23 = 0; + a9 = 9; + a20 = 1; + a19 = 2; + }else{ + a25 = 0; + a5 = 4; + a19 = 2; + a2 = 0; + a20 = 1; + a16 = 7; + a1 = 12; + a9 = 11; + a14 = 1; + } + return -1; + } else if(((((!(a18==1)&&(((a19==3)&&((a2==1)&&(((((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6))))&&(input==1))&&(a16==9))))&&!(a8==1)))&&(a1==14))&&!(a20==1))&&(((!(a14==1)&&(((a17==2)&&(a12==1))||!(a2==1)))||(a27==1))&&(a21==11)))){ + if((a18==1)){ + a21 = 10; + a9 = 9; + a19 = 1; + a2 = 0; + a16 = 7; + a20 = 1; + a5 = 4; + a0 = 1; + }else{ + a9 = 7; + a16 = 7; + a5 = 4; + a19 = 1; + a12 = 0; + a1 = 13; + a21 = 10; + a25 = 0; + a4 = 1; + a20 = 1; + } + return -1; + } else if((((a17==2)&&(!(a7==1)&&(((a13==1)&&((((input==5)&&(a1==12))&&(a9==8))&&(a5==4)))&&(a19==2))))&&(((a23==1)&&(((a20==1)&&((a16==11)&&(((a13==1)&&!(a24==1))&&(a21==12))))||(a7==1)))&&!(a26==1)))){ + a23 = 1; + a16 = 10; + a28 = 1; + a5 = 6; + a4 = 0; + a21 = 10; + return 25; + } else if(((((((!(a20==1)&&((a2==1)&&((a2==1)&&(((a17==2)&&((a2==1)&&((input==1)&&((a5==4)||(a5==5)))))&&(a12==1)))))&&(a21==10))&&(a1==14))&&(a19==1))&&(a9==9))&&((a7==1)||(((a16==10)&&(a23==1))||(a27==1))))){ + a20 = 1; + a14 = 1; + a16 = 9; + a9 = 10; + a3 = 0; + a1 = 13; + a8 = 1; + a19 = 2; + a5 = 5; + return -1; + } else if(((((a3==1)&&((a19==3)&&((a21==11)&&(((a2==1)&&((a1==12)&&(input==3)))&&(a5==5)))))&&(a16==7))&&((!(a4==1)&&((a0==1)||((((!(a2==1)||(a23==1))&&(a20==1))&&(a9==7))||!(a28==1))))&&(a17==2)))){ + a26 = 0; + a19 = 1; + a3 = 1; + a21 = 10; + a5 = 4; + a23 = 1; + return -1; + } else if(((!(a4==1)&&((a21==11)&&((a9==9)&&(((a3==1)&&(a1==12))&&(a19==3)))))&&((a23==1)&&(!(a14==1)&&(((a20==1)&&(((a17==2)&&(((a16==7)&&(((a5==5)||(a5==6))&&(input==5)))&&!(a14==1)))&&!(a24==1)))&&!(a26==1)))))){ + a21 = 10; + a5 = 4; + a19 = 1; + a28 = 1; + a9 = 7; + a24 = 0; + a27 = 0; + return -1; + } else if(((((a7==1)||((a20==1)&&(!(a4==1)&&(a11==1))))&&(a16==10))&&((a1==12)&&((a21==12)&&((a9==9)&&((a19==3)&&((a17==2)&&((a12==1)&&((((a13==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4)))&&!(a8==1))&&(a12==1)))))))))){ + a5 = 4; + a9 = 7; + a24 = 0; + a19 = 1; + a3 = 1; + a21 = 10; + a16 = 7; + a7 = 0; + return -1; + } else if((((((a16==8)&&((a17==2)&&((((a5==6)&&(input==1))&&(a2==1))&&(a1==12))))&&(a9==9))&&!(a20==1))&&((a6==1)&&(!(a11==1)||((a14==1)||((a21==10)&&(!(a3==1)||(!(a28==1)||((a19==2)&&(a23==1)))))))))){ + a5 = 4; + a16 = 7; + a8 = 0; + a19 = 3; + a18 = 0; + return 22; + } else if(((((a1==12)&&((a16==7)&&(((!(a20==1)&&((input==3)&&((a5==5)||(a5==6))))&&(a17==2))&&(a12==1))))&&!(a14==1))&&((((!(a18==1)&&(((!(a26==1)&&(a23==1))&&!(a27==1))&&(a21==10)))&&(a9==9))||(a4==1))&&(a19==2)))){ + if((a25==1)){ + a19 = 1; + a4 = 0; + a5 = 6; + a9 = 8; + a14 = 0; + a21 = 11; + }else{ + a12 = 1; + a5 = 4; + a16 = 9; + a7 = 0; + a19 = 3; + a20 = 1; + a14 = 0; + a9 = 11; + } + return -1; + } else if((((a7==1)||((!(a26==1)&&((a2==1)&&(!(a14==1)&&((a16==10)&&(((a19==4)&&((a12==1)&&(a21==11)))&&!(a27==1))))))&&(a1==13)))&&(((!(a27==1)&&(((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4)))&&(input==4)))&&(a17==2))&&!(a20==1)))){ + if((a13==1)){ + a5 = 4; + a9 = 11; + a10 = 0; + a16 = 7; + a19 = 2; + a22 = 1; + a1 = 12; + a21 = 10; + a29 = 1; + a20 = 1; + }else{ + a21 = 10; + a16 = 7; + a5 = 5; + a26 = 1; + a10 = 1; + a24 = 1; + a19 = 1; + a20 = 1; + a9 = 8; + } + return -1; + } else if((((((a21==11)&&(((((a9==11)&&((a5==6)&&(a1==12)))||((a9==7)&&((a5==4)&&(a1==13))))&&(input==6))&&(a16==9)))&&!(a14==1))&&(a6==1))&&(((a12==1)&&(((((!(a14==1)&&(a28==1))&&(a19==4))&&!(a20==1))&&!(a24==1))&&(a6==1)))&&(a17==2)))){ + a19 = 1; + a5 = 6; + a9 = 9; + a15 = 1; + a1 = 12; + a16 = 10; + a22 = 1; + return -1; + } else if(((((((a1==14)&&(!(a4==1)&&(a23==1)))&&(a17==2))||!(a28==1))||(a26==1))&&(!(a14==1)&&(((a21==12)&&((((!(a20==1)&&((input==1)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))))&&(a16==10))&&(a6==1))&&(a23==1)))&&(a19==5))))){ + if((a24==1)){ + a19 = 1; + a10 = 0; + a20 = 1; + a22 = 0; + a16 = 7; + a9 = 7; + a3 = 0; + a21 = 10; + a5 = 4; + }else{ + a10 = 0; + a9 = 9; + a20 = 1; + a5 = 6; + a16 = 7; + a14 = 1; + a19 = 1; + a21 = 10; + a11 = 0; + } + return -1; + } else if(((!(a11==1)||((((a20==1)&&(((a19==4)&&((a16==10)&&(a28==1)))&&(a21==10)))||!(a11==1))||(a0==1)))&&(((((((((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7))))&&(input==4))&&(a6==1))&&(a1==13))&&!(a8==1))&&(a17==2))&&(a11==1)))){ + a9 = 10; + a5 = 5; + a18 = 0; + a12 = 1; + a8 = 0; + a1 = 14; + return 25; + } else if((((a19==2)&&((a6==1)&&((a28==1)||!(a13==1))))&&((a21==11)&&((a16==7)&&((((a28==1)&&((((!(a20==1)&&((input==4)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))))&&!(a7==1))&&(a6==1))&&(a11==1)))&&(a1==13))&&(a17==2)))))){ + a21 = 10; + a20 = 1; + a5 = 4; + a8 = 0; + a19 = 1; + a14 = 0; + a1 = 12; + a18 = 0; + a9 = 7; + return -1; + } else if(((((((!(a8==1)&&((a23==1)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a23==1))&&(a21==10))&&!(a20==1))))&&(a11==1))&&(a1==13))&&(a9==10))&&(a19==3))&&((a17==2)&&(!(a27==1)&&((!(a23==1)||(a6==1))&&(a16==9)))))){ + a26 = 1; + a29 = 1; + a28 = 0; + a19 = 1; + a16 = 8; + a9 = 9; + a5 = 4; + a21 = 11; + return -1; + } else if((((a1==13)&&(((((!(a23==1)||(((a17==2)&&((a6==1)&&(a20==1)))&&!(a26==1)))||!(a6==1))||(a18==1))&&(a19==5))&&(a16==9)))&&((((a2==1)&&((input==4)&&(((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))))&&(a11==1))&&(a21==12)))){ + a19 = 1; + a5 = 4; + a9 = 7; + a18 = 0; + a21 = 10; + a16 = 7; + a1 = 12; + a3 = 1; + return -1; + } else if((((a12==1)&&((((a28==1)&&!(a20==1))&&!(a24==1))&&(a16==9)))&&((a12==1)&&(((a21==12)&&((!(a14==1)&&((((((input==5)&&(a9==9))&&(a12==1))&&(a5==5))&&(a1==12))&&(a3==1)))&&(a17==2)))&&(a19==2))))){ + if((a23==1)){ + a28 = 0; + a21 = 10; + a5 = 4; + a9 = 8; + a16 = 7; + a29 = 0; + a20 = 1; + a27 = 1; + a19 = 1; + }else{ + a5 = 4; + a7 = 1; + a20 = 1; + a16 = 7; + a28 = 0; + a14 = 1; + a21 = 10; + } + return -1; + } else if((((((a16==11)&&((((a20==1)&&(((a5==5)||(a5==6))&&(input==5)))&&(a28==1))&&(a6==1)))&&(a19==4))&&(a28==1))&&(((((a9==10)&&((((a6==1)&&(a17==2))&&(a21==10))&&!(a24==1)))&&!(a14==1))&&(a3==1))&&(a1==12)))){ + a19 = 1; + a9 = 7; + a14 = 0; + a16 = 7; + a2 = 1; + a5 = 4; + a7 = 0; + return -1; + } else if(((!(a18==1)&&((a17==2)&&(((a19==5)&&((a21==11)&&((a11==1)||(a18==1))))&&(a16==10))))&&(((((!(a20==1)&&((a1==12)&&((input==6)&&((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11))))))&&!(a18==1))&&!(a7==1))&&(a11==1))&&!(a14==1)))){ + if((a19==5)){ + a21 = 10; + a7 = 1; + a19 = 1; + a5 = 6; + a9 = 9; + a16 = 7; + a0 = 1; + a29 = 0; + a1 = 13; + a20 = 1; + }else{ + a15 = 0; + a8 = 1; + a5 = 5; + a20 = 1; + a9 = 7; + a16 = 7; + a21 = 12; + a10 = 0; + a19 = 3; + } + return -1; + } else if(((!(a13==1)||(!(a20==1)&&(((a21==10)&&((a24==1)||(a2==1)))&&(a1==14))))&&((a28==1)&&((((a28==1)&&((a17==2)&&((a9==9)&&(((a19==4)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))&&(a16==7)))))&&(a6==1))&&(a6==1))))){ + a1 = 12; + a5 = 4; + a9 = 7; + a19 = 1; + a3 = 1; + a12 = 1; + a20 = 1; + return -1; + } else if((((a5==6)&&(((((a1==12)&&((a16==11)&&(((a28==1)&&(!(a26==1)&&(a12==1)))||!(a3==1))))&&(a9==9))&&(a20==1))&&(a17==2)))&&((a19==3)&&((a13==1)&&((((a21==12)&&(input==3))&&!(a14==1))&&(a3==1)))))){ + a5 = 4; + a19 = 1; + a21 = 10; + a0 = 0; + a9 = 7; + a16 = 7; + a7 = 0; + a28 = 1; + return -1; + } else if((((!(a28==1)||((!(a11==1)||((a16==8)&&(((a20==1)&&((a1==12)&&(a12==1)))&&(a19==1))))||!(a23==1)))||!(a13==1))&&(!(a26==1)&&((a21==11)&&(((a2==1)&&((((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7))))&&(input==6)))&&(a17==2)))))){ + a21 = 10; + a16 = 10; + a5 = 6; + a9 = 9; + a19 = 2; + a0 = 0; + a6 = 1; + a1 = 14; + a26 = 0; + return 26; + } else if((((a21==11)&&((a11==1)&&((a14==1)||(((a18==1)||((a3==1)&&!(a20==1)))&&(a19==2)))))&&(((a1==12)&&(((a16==8)&&((!(a4==1)&&((((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6))))&&(input==6)))&&(a17==2)))&&!(a18==1)))&&!(a26==1)))){ + a19 = 1; + a18 = 0; + a6 = 1; + a16 = 7; + a5 = 4; + a9 = 7; + a20 = 1; + a21 = 10; + return -1; + } else if((((a28==1)&&((a12==1)&&((a16==10)&&(((((((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&!(a20==1))&&(a1==12))&&(a6==1))&&(a9==8))&&(a21==12)))))&&(((((a7==1)||((a28==1)&&(a19==1)))&&(a17==2))||!(a11==1))||(a0==1)))){ + if((a23==1)){ + a19 = 3; + a5 = 6; + a1 = 13; + a16 = 9; + a29 = 1; + a9 = 9; + a22 = 1; + a21 = 10; + a11 = 0; + }else{ + a5 = 4; + a9 = 7; + a21 = 10; + a0 = 1; + a20 = 1; + a2 = 0; + a19 = 2; + a16 = 7; + a25 = 1; + } + return -1; + } else if((((a1==13)&&((a0==1)||(!(a27==1)&&((a17==2)&&(((a6==1)&&(a13==1))&&(a19==1))))))&&(((a9==7)&&((a12==1)&&((((a11==1)&&(((input==1)&&((a5==5)||(a5==6)))&&(a3==1)))&&!(a20==1))&&(a21==11))))&&(a16==7)))){ + a5 = 4; + a21 = 10; + a23 = 1; + a7 = 0; + a1 = 12; + a20 = 1; + a14 = 0; + return -1; + } else if(((((a17==2)&&((!(a7==1)&&(a28==1))||(a27==1)))&&(a20==1))&&((a21==12)&&((a19==2)&&((a5==4)&&(!(a26==1)&&(((((!(a0==1)&&((input==5)&&(a9==9)))&&(a6==1))&&(a2==1))&&(a16==11))&&(a1==13)))))))){ + a16 = 9; + a5 = 6; + a19 = 3; + a8 = 0; + a1 = 12; + a23 = 1; + return 21; + } else if(((((a1==14)&&(((!(a27==1)&&(((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==3))&&!(a7==1)))&&!(a0==1))&&(a12==1)))&&(a16==7))&&((a20==1)&&((a19==4)&&((a11==1)&&((a17==2)&&((a21==12)&&(!(a11==1)||(a23==1))))))))){ + a11 = 1; + a1 = 12; + a9 = 7; + a21 = 10; + a5 = 4; + a19 = 1; + a14 = 0; + a6 = 1; + return -1; + } else if(((((((a19==3)&&((input==4)&&((a5==4)||(a5==5))))&&!(a12==1))&&!(a3==1))&&(a24==1))&&(((a9==8)&&((a26==1)&&(((a21==11)&&(((a17==2)&&((!(a20==1)&&(a11==1))&&!(a28==1)))&&(a16==8)))&&(a1==13))))&&!(a3==1)))){ + a3 = 0; + a6 = 0; + a16 = 7; + a21 = 10; + a5 = 4; + a1 = 12; + a20 = 1; + a19 = 1; + a9 = 9; + return 21; + } else if((((((((!(a14==1)&&((((input==5)&&((a5==5)||(a5==6)))&&(a11==1))&&(a16==7)))&&(a17==2))&&(a21==11))&&!(a4==1))&&(a20==1))&&(a1==12))&&(((a2==1)&&((!(a12==1)||((a19==1)&&(a12==1)))&&(a9==11)))&&(a12==1)))){ + if((a21==10)){ + a18 = 0; + a21 = 12; + a5 = 4; + a9 = 9; + a19 = 4; + a20 = 0; + a1 = 14; + a2 = 1; + }else{ + a20 = 0; + a4 = 0; + a28 = 1; + a19 = 2; + a5 = 4; + a9 = 8; + a11 = 1; + } + return 23; + } else if(((((a14==1)||(((a14==1)||(a11==1))&&(a21==10)))&&(a16==11))&&(!(a20==1)&&((a13==1)&&((((((((input==1)&&(((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))))&&(a1==12))&&(a17==2))&&(a19==2))&&(a28==1))&&!(a7==1))&&!(a18==1)))))){ + a21 = 12; + a9 = 11; + a11 = 0; + a20 = 1; + a1 = 13; + a28 = 0; + a19 = 1; + a25 = 0; + a5 = 6; + return -1; + } else if(((((a19==1)&&(((a16==11)&&(((((input==6)&&((a5==5)||(a5==6)))&&(a1==12))&&(a21==11))&&!(a24==1)))&&(a2==1)))&&!(a26==1))&&(((a9==11)&&((!(a26==1)&&((a17==2)&&((a12==1)&&(a20==1))))&&(a12==1)))||!(a13==1)))){ + a3 = 1; + a16 = 7; + a12 = 1; + a21 = 10; + a9 = 7; + a5 = 4; + return -1; + } else if((((a21==10)&&((((a20==1)&&((input==4)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))))&&(a11==1))&&(a1==12)))&&(((a26==1)||(((a17==2)&&((!(a14==1)&&(((a4==1)||(a13==1))||!(a13==1)))||!(a3==1)))&&(a19==4)))&&(a16==9)))){ + a24 = 0; + a12 = 1; + a9 = 7; + a5 = 4; + a16 = 7; + a14 = 0; + a19 = 1; + return -1; + } else if((((a28==1)&&(((a9==7)&&((a19==4)&&((a17==2)&&((a20==1)&&((input==4)&&(a21==11))))))&&(a3==1)))&&((a5==4)&&(((a3==1)&&((a8==1)||(((a16==8)&&((a18==1)||(a2==1)))||!(a23==1))))&&(a1==13))))){ + a16 = 7; + a19 = 1; + a3 = 1; + a7 = 0; + a21 = 10; + a11 = 1; + a1 = 12; + return -1; + } else if(((((((a17==2)&&(((((a5==5)||(a5==6))&&(input==6))&&(a23==1))&&!(a0==1)))&&!(a7==1))&&(a19==2))&&(a16==11))&&(((!(a8==1)&&((a3==1)&&((a1==14)&&(((a3==1)&&(a3==1))&&(a9==8)))))&&(a21==11))&&(a20==1)))){ + a19 = 1; + a21 = 10; + a13 = 1; + a16 = 7; + a1 = 12; + a12 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if(((((a2==1)&&((a13==1)&&((a17==2)&&(!(a4==1)&&((a16==8)&&(((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))&&(input==4)))))))&&(a19==3))&&((a21==11)&&((((a13==1)&&(((a2==1)||!(a3==1))&&(a1==13)))&&!(a14==1))&&!(a20==1))))){ + a9 = 10; + a4 = 0; + a5 = 5; + a19 = 2; + a21 = 10; + a8 = 0; + a16 = 9; + a26 = 0; + a20 = 1; + return 25; + } else if((((a13==1)&&((a1==13)&&((a0==1)||((((a16==9)&&(a28==1))&&(a9==11))||(a0==1)))))&&((a19==2)&&((((!(a8==1)&&((((input==4)&&((a5==5)||(a5==6)))&&!(a18==1))&&!(a7==1)))&&(a17==2))&&(a20==1))&&(a21==10))))){ + a19 = 1; + a5 = 4; + a9 = 7; + a1 = 12; + a16 = 7; + a18 = 0; + a2 = 1; + a8 = 0; + return -1; + } else if((((a17==2)&&((a27==1)&&(!(a2==1)&&((a16==7)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1))))))&&(!(a20==1)&&((a9==7)&&(((a1==12)&&((a14==1)&&(((a19==3)&&(((a26==1)&&(a13==1))&&(a27==1)))&&(a4==1))))&&(a21==11)))))){ + a20 = 1; + a9 = 10; + a12 = 0; + a1 = 14; + a6 = 0; + a19 = 5; + a16 = 9; + a5 = 6; + a15 = 0; + return -1; + } else if(((((a21==10)&&((!(a4==1)&&((input==3)&&(((a19==4)&&((a9==11)&&((a5==6)&&(a1==14))))||((a19==5)&&((a9==7)&&((a5==4)&&(a1==12)))))))&&(a11==1)))&&(a16==11))&&((a17==2)&&(!(a24==1)&&(((a20==1)&&(((a26==1)||(a13==1))&&!(a27==1)))&&!(a18==1)))))){ + a16 = 7; + a6 = 1; + a18 = 0; + a19 = 1; + a12 = 1; + a9 = 7; + a1 = 12; + a5 = 4; + return -1; + } else if((((a9==11)&&(!(a20==1)&&((a17==2)&&(((!(a27==1)&&(((input==1)&&((a5==5)||(a5==6)))&&(a21==10)))&&(a3==1))&&(a19==5)))))&&(((a16==9)&&(((a2==1)&&(!(a4==1)&&((a6==1)&&!(a24==1))))&&(a3==1)))&&(a1==13)))){ + if((a7==1)){ + a9 = 7; + a6 = 0; + a5 = 4; + a21 = 12; + a19 = 3; + a25 = 1; + a16 = 8; + a10 = 1; + }else{ + a25 = 1; + a16 = 7; + a19 = 3; + a21 = 12; + a1 = 14; + a5 = 4; + a10 = 0; + a20 = 1; + } + return -1; + } else if(((((a1==14)&&(((!(a24==1)&&((a28==1)&&((a21==12)&&((input==4)&&(a9==8)))))&&!(a14==1))&&(a16==10)))&&(a19==4))&&(((a17==2)&&(((!(a8==1)&&((a11==1)&&(a2==1)))&&!(a24==1))&&!(a20==1)))&&(a5==4)))){ + a9 = 11; + a21 = 10; + a1 = 12; + a20 = 1; + a8 = 1; + a19 = 1; + a16 = 7; + a25 = 1; + a5 = 6; + a23 = 0; + return -1; + } else if((((a20==1)&&(((a9==7)&&((a26==1)||(((a23==1)&&(a28==1))||!(a3==1))))&&!(a14==1)))&&((((a1==13)&&((((((input==3)&&((a5==5)||(a5==6)))&&(a19==5))&&(a21==10))&&(a13==1))&&(a28==1)))&&(a17==2))&&(a16==7)))){ + a5 = 6; + a26 = 0; + a21 = 12; + a14 = 0; + a3 = 1; + a1 = 12; + a19 = 3; + return 26; + } else if(((((a16==11)&&((a17==2)&&(!(a27==1)&&(((a19==4)&&((((((a5==5)||(a5==6))&&(input==1))&&(a21==11))&&(a9==10))&&(a12==1)))&&!(a24==1)))))&&!(a4==1))&&((((a24==1)||((a20==1)&&(a28==1)))&&!(a26==1))&&(a1==12)))){ + if((a20==1)){ + a19 = 2; + a16 = 7; + a14 = 0; + a13 = 1; + a9 = 11; + a20 = 0; + a5 = 6; + }else{ + a26 = 0; + a11 = 1; + a27 = 0; + a21 = 12; + a1 = 13; + a5 = 6; + a19 = 2; + } + return 23; + } else if(((((((a16==7)&&((!(a3==1)&&((!(a3==1)&&((input==6)&&(a1==14)))&&(a9==11)))&&(a18==1)))&&(a21==10))&&(a20==1))&&(a17==2))&&((a19==5)&&((a5==6)&&((((a0==1)&&(a3==1))&&(a26==1))&&(a7==1)))))){ + a19 = 2; + a12 = 0; + a6 = 0; + a9 = 10; + a1 = 12; + a5 = 4; + return -1; + } else if((((((a3==1)&&(((a21==12)&&(((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&!(a14==1)))&&!(a7==1)))&&!(a0==1))&&(a9==9))&&((a19==5)&&(((a16==7)&&((a6==1)&&((!(a13==1)||((a13==1)&&(a1==14)))&&(a17==2))))&&!(a20==1))))){ + a4 = 0; + a21 = 10; + a19 = 2; + a5 = 4; + a1 = 13; + a28 = 1; + a20 = 1; + a14 = 0; + return 25; + } else if((((!(a20==1)&&(((!(a13==1)||((a12==1)&&(a19==2)))&&(a21==10))&&(a28==1)))&&!(a27==1))&&(!(a26==1)&&(!(a14==1)&&(((((!(a8==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5)))))&&(a1==14))&&(a9==7))&&(a16==11))&&(a17==2)))))){ + if((a3==1)){ + a9 = 9; + a29 = 0; + a11 = 0; + a16 = 7; + a19 = 1; + a20 = 1; + a1 = 12; + a22 = 1; + a5 = 4; + }else{ + a16 = 7; + a20 = 1; + a14 = 1; + a1 = 12; + a25 = 0; + a19 = 1; + a10 = 1; + a9 = 10; + a5 = 4; + } + return -1; + } else if((((a16==10)&&((((a21==10)&&(((!(a27==1)&&(((a5==5)||(a5==6))&&(input==5)))&&(a19==3))&&(a28==1)))&&!(a4==1))&&!(a27==1)))&&(((((((a12==1)&&(a9==8))||(a7==1))&&(a1==13))&&(a12==1))&&!(a20==1))&&(a17==2)))){ + a19 = 4; + a1 = 12; + a24 = 1; + a5 = 5; + a20 = 1; + a16 = 7; + a10 = 0; + return -1; + } else if((((a19==5)&&(!(a20==1)&&((((a1==14)&&((a13==1)&&(a21==11)))||(a14==1))&&(a3==1))))&&((a17==2)&&((a16==9)&&((a13==1)&&((a2==1)&&((!(a0==1)&&((input==3)&&(((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))))&&(a23==1)))))))){ + a25 = 1; + a21 = 10; + a16 = 7; + a6 = 0; + a19 = 1; + a20 = 1; + a11 = 0; + a5 = 5; + a9 = 10; + return -1; + } else if(((((a13==1)&&(((a11==1)&&(!(a0==1)&&((input==1)&&((a5==6)||((a5==4)||(a5==5))))))&&(a1==12)))&&(a9==8))&&((a19==3)&&((a20==1)&&((a17==2)&&((a21==10)&&((a23==1)&&((a7==1)||((a8==1)||((a16==7)&&(a11==1))))))))))){ + a5 = 4; + a9 = 7; + a19 = 1; + a0 = 0; + a7 = 0; + a6 = 1; + return -1; + } else if(((!(a0==1)&&(((!(a26==1)&&(((a17==2)&&((input==3)&&(a9==10)))&&(a20==1)))&&(a19==5))&&!(a7==1)))&&(((((a16==11)&&(((a1==12)&&((a21==12)&&(a12==1)))&&(a2==1)))&&(a5==4))&&(a2==1))||(a27==1)))){ + a5 = 6; + a12 = 1; + a21 = 10; + a16 = 7; + a4 = 0; + a20 = 0; + a8 = 0; + a19 = 1; + return 25; + } else if(((!(a20==1)&&((a27==1)||((a14==1)||(((((a3==1)&&(a12==1))&&(a9==8))||!(a3==1))||!(a28==1)))))&&((a17==2)&&((((a16==10)&&(((((a5==5)||(a5==6))&&(input==3))&&!(a8==1))&&(a21==10)))&&(a19==2))&&(a1==14))))){ + a15 = 0; + a23 = 0; + a21 = 11; + a5 = 5; + a19 = 5; + a2 = 0; + a16 = 9; + a9 = 9; + return 21; + } else if(((((!(a4==1)&&(((((input==6)&&(a20==1))&&(a16==9))&&!(a18==1))&&(a12==1)))&&(a9==11))&&(a1==13))&&((a19==4)&&((a5==5)&&((!(a27==1)&&(((!(a27==1)&&(a28==1))&&!(a8==1))&&(a17==2)))&&(a21==12)))))){ + a24 = 0; + a5 = 4; + a12 = 1; + a9 = 8; + a1 = 12; + a19 = 5; + a3 = 1; + a16 = 8; + return -1; + } else if((((a14==1)||(((((a17==2)&&((a1==13)&&(a2==1)))&&(a20==1))&&(a13==1))&&!(a14==1)))&&(((a21==10)&&((((((input==6)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(a16==8))&&(a19==1))&&(a12==1))&&!(a8==1)))&&!(a14==1)))){ + a21 = 12; + a5 = 4; + a2 = 1; + a19 = 2; + a16 = 9; + a1 = 12; + a28 = 1; + a9 = 11; + a3 = 1; + return 23; + } else if(((((a6==1)&&((a1==14)&&(!(a4==1)&&(((a28==1)&&((a19==4)&&(((a16==11)&&((a5==6)&&(!(a27==1)&&((a17==2)&&(input==1)))))&&(a21==12))))&&(a13==1)))))&&(a20==1))&&((a9==11)&&((a13==1)||(a8==1))))){ + a9 = 7; + a18 = 0; + a16 = 7; + a12 = 1; + a5 = 4; + a19 = 1; + a21 = 10; + a1 = 12; + a13 = 1; + return -1; + } else if(((((a9==10)&&((a23==1)&&(((input==3)&&((a5==4)||(a5==5)))&&(a12==1))))&&(a19==2))&&((a16==10)&&(((a7==1)||(((!(a27==1)&&((a17==2)&&(((a23==1)&&(a6==1))&&(a21==12))))&&(a1==14))||(a26==1)))&&!(a20==1))))){ + a23 = 0; + a19 = 1; + a5 = 4; + a16 = 7; + a22 = 0; + a21 = 10; + a20 = 1; + a9 = 11; + a13 = 0; + a1 = 13; + return -1; + } else if(((((a17==2)&&(!(a26==1)&&(((a3==1)&&((((a9==8)&&(input==5))&&(a16==10))&&(a21==12)))&&!(a0==1))))&&!(a20==1))&&((a1==14)&&((a19==4)&&(((a14==1)||((a5==4)&&((a23==1)&&(a6==1))))&&(a2==1)))))){ + a1 = 12; + a16 = 7; + a19 = 2; + a20 = 1; + a9 = 7; + a21 = 10; + a15 = 0; + a10 = 0; + a26 = 1; + return 23; + } else if((((a1==13)&&((((!(a7==1)&&((a19==2)&&(!(a27==1)&&((((a5==5)||(a5==6))&&(input==5))&&(a2==1)))))&&!(a14==1))&&(a17==2))&&(a21==12)))&&((a9==10)&&((a16==9)&&(!(a20==1)&&(!(a14==1)&&(!(a23==1)||(a12==1)))))))){ + if((a17==2)){ + a1 = 14; + a15 = 1; + a20 = 1; + a5 = 4; + a16 = 10; + a14 = 1; + a22 = 0; + a9 = 11; + }else{ + a2 = 0; + a16 = 7; + a28 = 0; + a26 = 1; + a21 = 11; + a20 = 1; + a5 = 6; + } + return -1; + } else if((((a1==12)&&(((a17==2)&&((a21==10)&&(((a4==1)||(a28==1))||(a8==1))))&&(a23==1)))&&((a9==9)&&(((!(a26==1)&&((((a16==10)&&((input==4)&&!(a20==1)))&&(a19==3))&&!(a0==1)))&&(a12==1))&&(a5==6))))){ + a5 = 4; + a16 = 11; + a1 = 14; + a22 = 0; + a20 = 1; + a21 = 11; + a10 = 0; + a9 = 7; + a25 = 1; + a19 = 5; + return -1; + } else if(((((((((!(a24==1)&&(a23==1))&&(a9==10))||!(a12==1))&&(a1==12))||(a7==1))&&(a3==1))||!(a28==1))&&((((a16==8)&&((a17==2)&&((a21==11)&&(((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a19==5)))))&&(a28==1))&&(a20==1)))){ + a4 = 0; + a5 = 5; + a2 = 1; + a9 = 11; + a19 = 3; + a16 = 10; + a28 = 1; + return 22; + } else if((((a21==11)&&((((((a1==12)&&((input==1)&&(a9==10)))&&!(a4==1))&&!(a7==1))&&(a19==5))&&(a20==1)))&&((a16==10)&&(!(a14==1)&&((a3==1)&&((a5==6)&&((a26==1)||(((a13==1)&&(a13==1))&&(a17==2))))))))){ + a19 = 4; + a1 = 13; + a16 = 7; + a21 = 10; + a5 = 5; + a23 = 1; + a11 = 1; + a7 = 0; + return 25; + } else if((((a5==5)&&((a7==1)||(!(a2==1)||(!(a4==1)&&((a0==1)||((a2==1)&&(a21==11)))))))&&(((a17==2)&&(((a1==12)&&((a9==10)&&(!(a20==1)&&(((input==6)&&(a19==1))&&(a3==1)))))&&!(a7==1)))&&(a16==10)))){ + a9 = 11; + a15 = 0; + a29 = 1; + a16 = 8; + a5 = 4; + return -1; + } else if(((((a19==5)&&((input==1)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))))&&!(a4==1))&&((a24==1)||(((a1==13)&&((a24==1)||(((a16==10)&&(!(a3==1)||(((a17==2)&&(!(a20==1)&&(a12==1)))||(a27==1))))||(a14==1))))&&(a21==10))))){ + a7 = 1; + a19 = 2; + a5 = 4; + a9 = 8; + a15 = 0; + a10 = 0; + a1 = 12; + a20 = 1; + a16 = 7; + return 23; + } else if((((((a11==1)&&(((((input==5)&&(a19==3))&&(a28==1))&&(a9==11))&&(a6==1)))&&(a16==9))&&(a1==14))&&((a21==12)&&((((a17==2)&&((a5==4)&&((!(a13==1)||(a3==1))||!(a3==1))))&&!(a24==1))&&!(a20==1))))){ + a12 = 0; + a4 = 1; + a20 = 1; + a16 = 7; + a5 = 6; + a18 = 1; + a1 = 13; + a19 = 1; + a21 = 10; + return 21; + } else if(((!(a27==1)&&((!(a4==1)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a17==2))&&!(a24==1)))&&(a21==10)))&&(((a9==11)&&((((((a1==13)&&(!(a20==1)&&(a11==1)))||!(a2==1))&&!(a4==1))&&(a19==1))&&(a16==8)))||(a14==1)))){ + a20 = 1; + a16 = 7; + a8 = 0; + a5 = 4; + a9 = 7; + a24 = 0; + a1 = 12; + a18 = 0; + return -1; + } else if((((a21==12)&&(((a16==7)&&((((a13==1)&&(a19==2))&&(a6==1))||!(a11==1)))&&(a17==2)))&&((((((a13==1)&&((a2==1)&&((((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(input==5))))&&!(a24==1))&&!(a26==1))&&!(a20==1))&&(a1==13)))){ + a19 = 5; + a9 = 9; + a5 = 6; + a11 = 1; + a4 = 0; + a1 = 12; + a27 = 0; + return 22; + } else if((((!(a26==1)&&(((!(a6==1)||((a21==11)&&(((a13==1)&&(a3==1))&&(a16==8))))&&!(a24==1))&&!(a26==1)))&&(a20==1))&&(((a17==2)&&(((a1==12)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a19==4)))&&!(a8==1)))&&(a9==11)))){ + if((a12==1)){ + a0 = 0; + a13 = 1; + a9 = 10; + a19 = 2; + a20 = 0; + a5 = 6; + a12 = 1; + }else{ + a13 = 1; + a6 = 1; + a9 = 10; + a14 = 0; + a19 = 1; + a5 = 4; + a1 = 13; + } + return -1; + } else if((((!(a6==1)||(!(a26==1)&&(((a17==2)&&((a16==8)&&((a19==5)&&((a20==1)&&(a6==1)))))&&(a9==8))))||!(a28==1))&&(!(a18==1)&&((!(a0==1)&&((a1==12)&&((a2==1)&&((input==5)&&((a5==6)||((a5==4)||(a5==5)))))))&&(a21==10))))){ + a19 = 1; + a28 = 1; + a11 = 1; + a9 = 7; + a16 = 7; + a18 = 0; + a5 = 4; + return -1; + } else if(((((((((((input==6)&&(a17==2))&&(a16==7))&&!(a27==1))&&!(a24==1))&&(a19==5))&&(a5==5))&&!(a26==1))&&!(a27==1))&&(!(a18==1)&&((a1==14)&&(((((a21==10)&&(a13==1))&&!(a20==1))&&!(a4==1))&&(a9==8)))))){ + a9 = 9; + a19 = 2; + a27 = 0; + a20 = 1; + a1 = 13; + a6 = 1; + return 25; + } else if(((((a26==1)||((((a9==9)&&((a19==1)&&(a12==1)))&&(a1==12))&&(a21==10)))&&(a13==1))&&(!(a0==1)&&((a6==1)&&(((!(a20==1)&&((a17==2)&&(((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a18==1))))&&(a16==9))&&!(a14==1)))))){ + a19 = 5; + a5 = 6; + a21 = 11; + a1 = 14; + a27 = 1; + a2 = 0; + a16 = 11; + a20 = 1; + a3 = 0; + a9 = 8; + return -1; + } else if((((a1==14)&&((a23==1)&&((((a19==1)&&((((a17==2)&&(input==6))&&(a3==1))&&(a23==1)))&&(a6==1))&&(a16==7))))&&(!(a20==1)&&((a5==5)&&(!(a11==1)||((a9==9)&&((a21==10)&&((a12==1)||!(a13==1))))))))){ + a1 = 12; + a26 = 0; + a20 = 1; + a9 = 7; + a5 = 4; + a12 = 1; + return -1; + } else if(((!(a20==1)&&((((a9==10)&&(((a28==1)&&((a16==10)&&(((a5==5)||(a5==6))&&(input==4))))&&!(a7==1)))&&(a11==1))&&(a13==1)))&&(((a17==2)&&(((((a12==1)&&!(a26==1))||!(a2==1))&&(a1==12))&&(a19==2)))&&(a21==12)))){ + a19 = 3; + a22 = 0; + a5 = 4; + a15 = 0; + a9 = 9; + a29 = 1; + a16 = 7; + return -1; + } else if((((a14==1)&&(((a8==1)&&((a17==2)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a16==10))))&&(a9==8)))&&((a1==14)&&(((a27==1)&&(!(a11==1)&&(((a19==1)&&((!(a13==1)&&(a13==1))&&(a21==10)))&&(a8==1))))&&(a20==1))))){ + a7 = 1; + a12 = 0; + a19 = 4; + a5 = 5; + a9 = 7; + a1 = 12; + a22 = 0; + return -1; + } else if(((!(a0==1)&&(!(a0==1)&&((a16==11)&&((a20==1)&&((((input==4)&&((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10))))&&(a21==11))&&!(a26==1))))))&&((a7==1)||((((a13==1)&&((a1==14)&&((a17==2)&&(a13==1))))&&(a6==1))&&(a19==1))))){ + a5 = 4; + a16 = 7; + a9 = 7; + a1 = 12; + a21 = 10; + a14 = 0; + a18 = 0; + a23 = 1; + return -1; + } else if(((((((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==1))&&(a21==11))&&(a16==7))&&(a1==12))&&(!(a20==1)&&(((((((!(a26==1)&&((a11==1)||!(a13==1)))&&!(a27==1))&&!(a27==1))&&(a19==1))||!(a23==1))&&(a17==2))||(a7==1))))){ + a28 = 1; + a1 = 13; + a19 = 2; + a21 = 10; + a5 = 6; + a20 = 1; + a9 = 10; + a13 = 1; + return 25; + } else if((((((((((a21==11)&&((a6==1)&&(a17==2)))&&(a19==5))&&!(a18==1))||!(a13==1))&&!(a4==1))||(a4==1))||(a26==1))&&(((((a16==7)&&((input==6)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))))&&!(a20==1))&&(a1==12))&&!(a4==1)))){ + a5 = 4; + a9 = 7; + a19 = 1; + a21 = 10; + a23 = 1; + a28 = 1; + a20 = 1; + return -1; + } else if((((a9==8)&&(((a12==1)&&(((a16==9)&&(!(a8==1)&&(!(a8==1)&&((a17==2)&&((a19==5)&&(((a23==1)&&((a1==12)&&(input==3)))&&(a6==1)))))))&&(a12==1)))&&(a21==12)))&&(((a5==6)&&(a13==1))&&(a20==1)))){ + a9 = 7; + a19 = 1; + a12 = 1; + a5 = 4; + a7 = 0; + a16 = 7; + a21 = 10; + return -1; + } else if(((!(a14==1)&&((a13==1)&&(((((a16==7)&&(a6==1))&&(a17==2))||!(a13==1))||(a0==1))))&&((((a21==10)&&(((((((a1==13)&&(a5==6))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==14))))&&(input==1))&&(a19==3))&&(a20==1)))&&!(a8==1))&&!(a14==1)))){ + a21 = 11; + a9 = 10; + a5 = 6; + a6 = 1; + a1 = 12; + a11 = 1; + a19 = 2; + a2 = 1; + return 26; + } else if((((a5==4)&&(((a26==1)&&(((a16==7)&&((!(a6==1)&&(a11==1))&&(a20==1)))&&(a21==11)))&&(a17==2)))&&((((a4==1)&&((!(a2==1)&&(((input==5)&&(a1==12))&&(a19==5)))&&!(a6==1)))&&(a14==1))&&(a9==8)))){ + a19 = 1; + a11 = 0; + a21 = 10; + a9 = 11; + a5 = 5; + a7 = 1; + a22 = 1; + return 23; + } else if(((!(a8==1)&&(!(a8==1)&&(!(a27==1)&&((a12==1)&&((input==5)&&((((a5==5)&&(a1==14))&&(a9==7))||((((a1==13)&&(a5==6))&&(a9==11))||((a9==7)&&((a1==14)&&(a5==4))))))))))&&(((!(a24==1)&&(((a17==2)&&(((a21==10)&&(a23==1))&&!(a20==1)))&&(a16==10)))||!(a2==1))&&(a19==3)))){ + if((a25==1)){ + a9 = 10; + a0 = 1; + a16 = 9; + a7 = 1; + a24 = 1; + a5 = 5; + a1 = 14; + }else{ + a19 = 1; + a5 = 6; + a20 = 1; + a1 = 14; + a10 = 0; + a11 = 0; + a9 = 7; + a16 = 7; + a15 = 0; + } + return -1; + } else if((((a19==2)&&(((!(a8==1)&&((a28==1)&&((((a5==5)||(a5==6))&&(input==6))&&(a17==2))))&&!(a18==1))&&(a9==7)))&&(((a16==11)&&(((a8==1)||((((a3==1)&&!(a7==1))&&(a11==1))&&(a1==13)))&&(a20==1)))&&(a21==11)))){ + a16 = 7; + a5 = 4; + a13 = 1; + a23 = 1; + a9 = 11; + a21 = 12; + return 22; + } else if((((((((a28==1)||(a18==1))||!(a2==1))&&(a16==7))&&!(a20==1))&&!(a24==1))&&(((a2==1)&&((a21==12)&&((((input==3)&&((((((a1==14)&&(a5==5))&&(a9==11))&&(a19==4))||((a19==4)&&(((a5==6)&&(a1==14))&&(a9==11))))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==5))))&&(a28==1))&&(a17==2))))&&(a12==1)))){ + a9 = 7; + a1 = 12; + a11 = 1; + a21 = 10; + a19 = 1; + a27 = 0; + a24 = 0; + a20 = 1; + a5 = 4; + return -1; + } else if((((a1==12)&&((((((a16==9)&&((((a5==4)||(a5==5))&&(input==5))&&!(a18==1)))&&(a17==2))&&(a11==1))&&(a9==11))&&!(a20==1)))&&((a21==11)&&((a19==3)&&((!(a12==1)||((!(a6==1)||(a6==1))&&!(a27==1)))&&(a28==1)))))){ + if((a4==1)){ + a9 = 10; + a19 = 2; + a16 = 7; + a21 = 10; + a15 = 0; + a25 = 1; + a20 = 1; + a3 = 0; + a5 = 4; + }else{ + a21 = 10; + a5 = 4; + a27 = 1; + a1 = 13; + a16 = 8; + a20 = 1; + a10 = 1; + a19 = 1; + a14 = 1; + a9 = 8; + } + return -1; + } else if(((((a19==2)&&(!(a8==1)&&((a17==2)&&(((a5==5)||(a5==6))&&(input==3)))))&&(a11==1))&&((!(a0==1)&&(((((a9==7)&&((a2==1)&&(((a11==1)&&(a16==8))&&!(a20==1))))&&!(a24==1))&&(a21==10))&&(a1==13)))||(a8==1)))){ + a12 = 1; + a0 = 0; + a16 = 7; + a5 = 4; + a1 = 12; + a13 = 1; + a19 = 1; + a20 = 1; + return -1; + } else if((((a28==1)&&(((a17==2)&&((a1==13)&&((a16==8)&&(input==3))))&&!(a7==1)))&&((a27==1)||((((!(a28==1)||((a19==4)&&(((!(a27==1)&&(a28==1))&&(a5==6))&&(a21==11))))&&(a9==7))&&(a20==1))||!(a12==1))))){ + a5 = 4; + a16 = 7; + a11 = 1; + a1 = 12; + a4 = 0; + a21 = 10; + a19 = 1; + a13 = 1; + return -1; + } else if(((!(a3==1)||(((a17==2)&&((a16==7)&&((a19==3)&&(a13==1))))&&(a21==10)))&&((!(a0==1)&&(((a28==1)&&(!(a4==1)&&(((((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))&&(input==6))&&!(a20==1))&&!(a27==1))))&&(a1==12)))&&!(a14==1)))){ + a11 = 1; + a12 = 1; + a5 = 4; + a24 = 0; + a9 = 11; + a1 = 13; + return 21; + } else if((((a9==9)&&((a7==1)||(!(a12==1)||((((a1==12)&&(a2==1))&&(a5==5))&&(a13==1)))))&&(((a16==8)&&((a3==1)&&(((!(a7==1)&&((a17==2)&&((input==1)&&(a21==11))))&&!(a20==1))&&!(a27==1))))&&(a19==2)))){ + a19 = 3; + a20 = 1; + a5 = 6; + a21 = 12; + a11 = 1; + a0 = 0; + a7 = 0; + a16 = 9; + return 21; + } else if((((a5==4)&&((a21==12)&&((a16==9)&&(!(a27==1)&&(((a17==2)&&((a1==13)&&(input==3)))&&(a6==1))))))&&(((((!(a20==1)&&(((a28==1)||(a27==1))&&(a9==10)))&&(a11==1))&&!(a24==1))&&(a28==1))&&(a19==1)))){ + a19 = 4; + a5 = 6; + a22 = 0; + a21 = 10; + a14 = 1; + a24 = 1; + a9 = 8; + return -1; + } else if(((((a5==4)&&((!(a20==1)&&((a28==1)&&(a23==1)))&&(a21==12)))&&(a23==1))&&(((a3==1)&&((a19==2)&&(((((a16==9)&&(((input==5)&&(a1==14))&&(a9==7)))&&!(a8==1))&&(a17==2))&&(a3==1))))&&!(a24==1)))){ + a19 = 4; + a9 = 9; + a24 = 1; + a0 = 1; + a23 = 0; + a5 = 5; + return 21; + } else if((((a16==8)&&((a19==2)&&(!(a20==1)&&(((a21==11)&&((((a26==1)||(a28==1))||!(a2==1))&&!(a7==1)))&&(a2==1)))))&&(((a11==1)&&((((((a5==6)&&(a1==13))&&(a9==11))||(((a1==14)&&(a5==4))&&(a9==7)))&&(input==5))&&!(a7==1)))&&(a17==2)))){ + a13 = 1; + a16 = 7; + a1 = 13; + a5 = 6; + a2 = 1; + a9 = 10; + a21 = 10; + a18 = 0; + a20 = 1; + return 25; + } else if((((((((((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&!(a13==1))&&(a9==7))&&(a21==12))&&(a26==1))&&(a19==4))&&(a20==1))&&((a1==14)&&(((!(a11==1)&&((a17==2)&&((a16==10)&&((a2==1)&&(a18==1)))))&&(a27==1))&&!(a6==1))))){ + a21 = 10; + a14 = 1; + a1 = 13; + a5 = 4; + a16 = 7; + a26 = 1; + a9 = 9; + a19 = 1; + a15 = 1; + return -1; + } else if((((a9==8)&&(((((!(a0==1)&&((a6==1)&&(((a21==11)&&(input==5))&&(a1==14))))&&(a12==1))&&!(a20==1))&&(a5==6))&&(a17==2)))&&(((((!(a13==1)||(a11==1))||!(a13==1))&&(a19==1))||(a27==1))&&(a16==9)))){ + a10 = 0; + a6 = 0; + a21 = 10; + a20 = 1; + a5 = 4; + a16 = 7; + a1 = 12; + a15 = 1; + return -1; + } else if((((((a27==1)||((((a2==1)&&(a9==9))||!(a6==1))||(a4==1)))&&(a19==5))&&(a17==2))&&(((a16==9)&&(((((a20==1)&&(!(a26==1)&&((input==5)&&(a5==5))))&&!(a14==1))&&(a1==14))&&(a2==1)))&&(a21==10)))){ + a16 = 10; + a28 = 1; + a5 = 4; + a19 = 2; + a9 = 8; + return 21; + } else if((((a4==1)||(((((a1==13)&&(((a20==1)&&((a12==1)&&(a12==1)))||!(a23==1)))&&(a19==1))&&(a9==7))&&(a5==5)))&&(((((a16==9)&&(!(a18==1)&&((input==4)&&(a21==11))))&&(a17==2))&&(a28==1))&&(a13==1)))){ + a21 = 10; + a24 = 0; + a1 = 12; + a27 = 0; + a5 = 4; + a11 = 1; + a16 = 7; + return -1; + } else if((((a20==1)&&((((a9==11)&&((((input==5)&&(a5==4))&&(a2==1))&&!(a26==1)))&&(a19==3))&&(a21==11)))&&((a16==7)&&(((((a1==12)&&(((a2==1)&&(a11==1))&&(a17==2)))||!(a2==1))&&!(a27==1))&&!(a18==1))))){ + a5 = 5; + a21 = 10; + a19 = 5; + a4 = 0; + a16 = 8; + a28 = 1; + a0 = 0; + a1 = 13; + a9 = 9; + return 26; + } else if(((!(a28==1)||(((a16==7)&&(!(a7==1)&&((a19==5)&&(a6==1))))&&!(a14==1)))&&(((((a21==12)&&((a9==7)&&(((a28==1)&&(!(a7==1)&&(((a5==5)||(a5==6))&&(input==1))))&&(a17==2))))&&(a1==13))&&(a3==1))&&(a20==1)))){ + a1 = 14; + a19 = 4; + a9 = 9; + a0 = 0; + a11 = 1; + a16 = 9; + a5 = 6; + a21 = 11; + return 21; + } else if(((((a1==13)&&(((((((!(a27==1)&&(a13==1))&&!(a20==1))||!(a3==1))||(a4==1))&&(a9==11))||(a26==1))&&(a5==6)))&&(a21==11))&&(((a17==2)&&((((input==4)&&(a19==2))&&!(a0==1))&&!(a0==1)))&&(a16==7)))){ + a19 = 1; + a20 = 1; + a21 = 10; + a23 = 1; + a26 = 0; + a1 = 12; + a9 = 7; + a6 = 1; + a5 = 4; + return -1; + } else if((((a19==4)&&((((a20==1)&&(((!(a4==1)&&(((((a5==5)||(a5==6))&&(input==1))&&(a21==10))&&(a2==1)))&&!(a14==1))&&(a16==9)))&&(a13==1))&&(a1==13)))&&(((a17==2)&&(!(a26==1)&&((a12==1)||!(a12==1))))&&(a9==11)))){ + a3 = 1; + a0 = 0; + a18 = 0; + a5 = 4; + a1 = 12; + a16 = 7; + a19 = 1; + a9 = 7; + return -1; + } else if(((((a21==10)&&((((!(a23==1)||(!(a18==1)&&(a23==1)))||!(a2==1))&&(a6==1))&&(a1==14)))&&(a16==9))&&((a19==4)&&((a17==2)&&((a12==1)&&(!(a20==1)&&(((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))&&(input==1))&&!(a8==1)))))))){ + a19 = 2; + a9 = 10; + a3 = 0; + a5 = 5; + a22 = 0; + a16 = 7; + a6 = 0; + a20 = 1; + a1 = 12; + return 25; + } else if((((!(a4==1)&&(((a28==1)&&!(a26==1))&&(a21==10)))||(a27==1))&&((((a16==9)&&((a19==3)&&((a17==2)&&((a13==1)&&(((input==5)&&(((((a1==12)&&(a5==6))&&(a9==11))||(((a1==13)&&(a5==4))&&(a9==7)))||(((a5==5)&&(a1==13))&&(a9==7))))&&!(a8==1))))))&&(a20==1))&&!(a24==1)))){ + a19 = 5; + a0 = 0; + a2 = 1; + a14 = 0; + a9 = 10; + a21 = 12; + a5 = 5; + a1 = 14; + a16 = 8; + return 22; + } else if((((!(a23==1)||((a14==1)||(((!(a28==1)||(!(a20==1)&&(a13==1)))&&(a21==12))&&(a16==7))))||!(a28==1))&&(!(a14==1)&&((a17==2)&&((((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==1))||((a19==2)&&(((a1==12)&&(a5==4))&&(a9==7))))&&(input==4))&&(a6==1)))))){ + a9 = 7; + a20 = 1; + a26 = 0; + a21 = 10; + a5 = 4; + a11 = 1; + a28 = 1; + a1 = 12; + a19 = 1; + return -1; + } else if(((!(a24==1)&&((((a19==4)&&((input==3)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))))&&(a20==1))&&(a12==1)))&&((a17==2)&&(((((((a16==7)&&((a21==10)&&(a28==1)))||!(a23==1))&&(a23==1))||!(a6==1))&&(a1==14))||!(a3==1))))){ + a1 = 12; + a19 = 1; + a9 = 7; + a5 = 4; + a27 = 0; + a24 = 0; + return -1; + } else if(((!(a18==1)&&(((((a19==3)&&(((a17==2)&&(!(a0==1)&&((((a9==7)&&((a1==14)&&(a5==4)))||((((a5==5)&&(a1==13))&&(a9==11))||((a9==11)&&((a1==13)&&(a5==6)))))&&(input==1))))&&(a11==1)))&&(a21==10))&&(a3==1))&&!(a14==1)))&&((a28==1)&&((a16==7)&&(!(a20==1)&&(a2==1)))))){ + a2 = 1; + a7 = 0; + a19 = 4; + a9 = 7; + a1 = 12; + a5 = 4; + return 25; + } else if((((a27==1)||((a21==12)&&(!(a13==1)||((a20==1)&&(((a12==1)&&(a1==13))&&(a17==2))))))&&((((!(a27==1)&&(((a16==10)&&((((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(input==1)))&&!(a8==1)))&&(a13==1))&&(a19==4))&&!(a18==1)))){ + a16 = 8; + a19 = 5; + a5 = 5; + a21 = 10; + a7 = 0; + a12 = 1; + a9 = 10; + return -1; + } else if(((!(a26==1)&&((a6==1)&&((!(a4==1)&&((a6==1)&&((((a5==5)||(a5==6))&&(input==4))&&(a9==7))))&&(a19==3))))&&((a26==1)||(((a16==7)&&((a1==14)&&(((a23==1)&&((a21==11)&&(a6==1)))&&(a17==2))))&&(a20==1))))){ + a24 = 0; + a1 = 12; + a2 = 1; + a21 = 10; + a28 = 1; + a19 = 1; + a5 = 4; + return -1; + } else if((((a16==8)&&((a19==3)&&((a12==1)&&(!(a0==1)&&(!(a18==1)&&(!(a26==1)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6)))))))))&&((((!(a20==1)&&((a9==11)&&(((a28==1)||!(a11==1))&&(a17==2))))&&(a21==12))&&!(a27==1))&&(a1==12)))){ + a5 = 6; + a20 = 1; + a9 = 9; + a16 = 10; + a10 = 0; + a19 = 2; + a27 = 1; + a12 = 0; + return 26; + } else if((((a1==14)&&((((((a16==8)&&(((input==1)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&(a21==11)))&&(a2==1))&&(a19==4))&&(a12==1))&&(a6==1)))&&((a12==1)&&(!(a2==1)||(((a17==2)&&((a20==1)&&(a11==1)))||!(a23==1)))))){ + a8 = 0; + a3 = 1; + a19 = 2; + a9 = 11; + a16 = 10; + a13 = 1; + a5 = 5; + return 21; + } else if(((((!(a11==1)&&(((a16==10)&&((a9==11)&&(((a17==2)&&(!(a2==1)&&((a6==1)&&(a21==10))))&&(a19==3))))&&!(a12==1)))&&!(a3==1))&&!(a2==1))&&((a20==1)&&((a1==12)&&(!(a6==1)&&((input==5)&&((a5==5)||(a5==6)))))))){ + a23 = 0; + a13 = 0; + a21 = 11; + a5 = 5; + a1 = 14; + a19 = 2; + a16 = 11; + a9 = 8; + a26 = 1; + return 25; + } else if((((((((a19==4)&&((a3==1)&&(((a17==2)&&((a12==1)&&(((input==3)&&((a5==5)||(a5==6)))&&(a9==11))))&&!(a7==1))))&&(a23==1))&&(a16==9))&&(a1==14))&&!(a20==1))&&((((a23==1)&&(a21==10))||!(a6==1))&&(a12==1)))){ + a3 = 0; + a1 = 13; + a9 = 10; + a5 = 5; + a20 = 1; + a29 = 1; + a21 = 11; + a27 = 1; + a16 = 10; + return -1; + } else if(((((((a17==2)&&(!(a27==1)&&(!(a20==1)&&(!(a0==1)&&((input==6)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))))))&&!(a18==1))&&(a19==4))&&(a16==9))&&((((((a4==1)||(a23==1))&&(a1==14))&&(a23==1))&&(a21==12))||!(a6==1)))){ + a9 = 11; + a7 = 1; + a1 = 13; + a20 = 1; + a25 = 1; + a21 = 10; + a19 = 1; + a5 = 5; + a16 = 7; + a22 = 1; + return -1; + } else if((((a19==2)&&((a6==1)&&(((a3==1)&&((a17==2)&&((a0==1)||(a12==1))))&&(a20==1))))&&(((((a2==1)&&(!(a0==1)&&((a21==11)&&((((a5==5)||(a5==6))&&(input==3))&&!(a8==1)))))&&(a16==9))&&(a9==11))&&(a1==12)))){ + a16 = 7; + a18 = 0; + a9 = 7; + a19 = 1; + a13 = 1; + a21 = 10; + a5 = 4; + a28 = 1; + return -1; + } else if((((((a16==11)&&((a19==3)&&((a17==2)&&((a6==1)&&((!(a8==1)&&((((a5==5)||(a5==6))&&(input==6))&&(a9==9)))&&(a11==1))))))&&(a28==1))&&(a1==12))&&(!(a24==1)&&((a21==10)&&(!(a20==1)&&((a23==1)&&(a13==1))))))){ + a23 = 0; + a5 = 4; + a19 = 2; + a9 = 8; + a15 = 1; + a11 = 0; + a16 = 7; + a20 = 1; + return -1; + } else if(((!(a20==1)&&(!(a14==1)&&((((a6==1)&&(a1==12))&&(a21==10))||!(a12==1))))&&(((((a2==1)&&(((((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==1))&&(a16==7))&&(a17==2))&&(a6==1)))&&(a3==1))&&!(a27==1))&&(a19==4)))){ + a9 = 7; + a20 = 1; + a24 = 0; + a19 = 1; + a5 = 4; + a18 = 0; + return -1; + } else if((((((a16==7)&&(!(a26==1)&&((a11==1)&&((a6==1)&&((a19==3)&&((input==1)&&(a1==13)))))))&&!(a8==1))&&(a5==5))&&((a9==9)&&((a17==2)&&((a21==12)&&(((a0==1)||((a6==1)&&(a20==1)))&&!(a8==1))))))){ + a5 = 4; + a1 = 12; + a11 = 1; + a12 = 1; + a21 = 10; + a18 = 0; + a9 = 7; + a19 = 1; + return -1; + } else if((((a1==12)&&((a19==2)&&((((((a5==4)&&((a6==1)||!(a2==1)))&&(a28==1))||(a26==1))&&!(a7==1))&&(a9==11))))&&((a21==11)&&((a16==8)&&(((!(a7==1)&&((a17==2)&&(input==1)))&&(a12==1))&&(a20==1)))))){ + a19 = 4; + a9 = 7; + a21 = 10; + a0 = 0; + a3 = 1; + a11 = 1; + a16 = 10; + return 25; + } else if((((a21==11)&&(((a13==1)&&(((a3==1)&&((!(a7==1)&&((input==6)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))))&&(a12==1)))&&!(a8==1)))&&(a17==2)))&&((((((a20==1)&&(a3==1))&&(a19==3))&&!(a24==1))&&(a16==11))&&(a1==12)))){ + a7 = 0; + a21 = 10; + a13 = 1; + a14 = 0; + a16 = 7; + a19 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if(((((a9==8)&&((!(a18==1)&&((!(a27==1)&&(((((a5==5)||(a5==6))&&(input==4))&&(a6==1))&&(a28==1)))&&(a1==12)))&&!(a18==1)))&&(a16==8))&&((((a8==1)||(((a6==1)&&(a17==2))&&(a19==1)))&&(a21==11))&&!(a20==1)))){ + a5 = 4; + a21 = 10; + a20 = 1; + a12 = 1; + a8 = 0; + a23 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if((((a20==1)&&(((a9==7)&&((!(a26==1)&&(((a21==10)&&((a11==1)&&(a1==12)))&&(a16==9)))||!(a13==1)))&&!(a0==1)))&&((a19==2)&&((a17==2)&&(!(a27==1)&&((a12==1)&&(!(a26==1)&&((input==1)&&((a5==5)||(a5==6)))))))))){ + a26 = 0; + a16 = 7; + a4 = 0; + a5 = 4; + a19 = 1; + a13 = 1; + return -1; + } else if(((!(a14==1)&&(!(a27==1)&&((a6==1)&&((a9==11)&&(((a16==7)&&((a21==11)&&(((input==3)&&(a17==2))&&!(a4==1))))&&!(a4==1))))))&&((a1==14)&&((a5==4)&&((a19==2)&&((!(a6==1)||(a11==1))&&(a20==1))))))){ + a9 = 7; + a19 = 1; + a21 = 10; + a0 = 0; + a1 = 12; + a3 = 1; + a6 = 1; + return -1; + } else if((((!(a18==1)&&(!(a4==1)&&(!(a24==1)&&(((a1==12)&&((((input==6)&&(((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))))&&(a20==1))&&(a19==5)))&&!(a7==1)))))&&(a11==1))&&(!(a4==1)&&(((a16==7)&&((a17==2)&&(a11==1)))&&(a21==12))))){ + a21 = 11; + a16 = 9; + a14 = 0; + a5 = 4; + a19 = 4; + a1 = 13; + a12 = 1; + a13 = 1; + a9 = 8; + return 23; + } else if((((a7==1)||(!(a18==1)&&((a13==1)&&((a21==12)&&((a20==1)&&(a11==1))))))&&((a16==7)&&(((((a17==2)&&((input==5)&&(((((a5==6)&&(a1==14))&&(a9==11))&&(a19==1))||((a19==2)&&(((a5==4)&&(a1==12))&&(a9==7))))))&&(a13==1))&&!(a26==1))&&(a3==1))))){ + a1 = 12; + a19 = 1; + a6 = 1; + a24 = 0; + a2 = 1; + a21 = 10; + a9 = 7; + a5 = 4; + return -1; + } else if((((a23==1)&&(((a4==1)||((a5==5)&&((a19==1)&&((((a26==1)||(a2==1))&&(a16==10))||!(a28==1)))))||!(a2==1)))&&((a21==11)&&((!(a18==1)&&((a17==2)&&(((input==1)&&(a9==10))&&(a1==12))))&&!(a20==1))))){ + if((a21==12)){ + a16 = 7; + a29 = 0; + a21 = 10; + a26 = 1; + a20 = 1; + a22 = 1; + a9 = 8; + a1 = 13; + }else{ + a11 = 0; + a16 = 7; + a10 = 0; + a20 = 1; + a28 = 0; + a9 = 9; + a5 = 4; + a21 = 10; + } + return -1; + } else if((((a16==8)&&((a17==2)&&(!(a26==1)&&((a21==12)&&(((a1==13)&&(((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))&&(input==4)))&&(a3==1))))))&&((a19==4)&&((a12==1)&&((((a26==1)||((a2==1)&&(a23==1)))&&(a20==1))||(a24==1)))))){ + a1 = 12; + a23 = 1; + a2 = 1; + a16 = 7; + a18 = 0; + a21 = 10; + a19 = 1; + a9 = 7; + a5 = 4; + return -1; + } else if((((((a5==5)&&((!(a20==1)&&(a6==1))||!(a3==1)))&&(a21==11))&&(a9==7))&&(((((!(a26==1)&&(((((a16==8)&&(input==3))&&(a19==1))&&(a17==2))&&(a1==12)))&&(a11==1))&&!(a0==1))&&(a12==1))&&!(a0==1)))){ + a21 = 10; + a6 = 1; + a5 = 4; + a18 = 0; + a20 = 1; + a4 = 0; + a16 = 7; + return -1; + } else if((((a5==5)&&((a21==10)&&(((((input==1)&&(a17==2))&&!(a4==1))&&!(a24==1))&&(a19==4))))&&((a16==9)&&(((a13==1)&&((((a9==10)&&((a1==14)&&((a7==1)||(a3==1))))||!(a23==1))&&!(a20==1)))||!(a12==1))))){ + a18 = 1; + a20 = 1; + a19 = 1; + a3 = 0; + a22 = 1; + a5 = 6; + a9 = 11; + a16 = 10; + return 21; + } else if((((((!(a0==1)&&((input==4)&&((((a19==3)&&((a9==11)&&((a5==6)&&(a1==14))))||((a19==4)&&((a9==7)&&((a5==4)&&(a1==12)))))||((a19==4)&&(((a5==5)&&(a1==12))&&(a9==7))))))&&!(a20==1))&&(a28==1))&&!(a26==1))&&(((a27==1)||((a21==10)&&((a8==1)||(((a16==8)&&(a2==1))&&(a17==2)))))||!(a3==1)))){ + a16 = 7; + a9 = 7; + a26 = 0; + a20 = 1; + a5 = 4; + a19 = 1; + a1 = 12; + a13 = 1; + return -1; + } else if((((a2==1)&&(!(a26==1)&&(!(a26==1)&&((((a16==7)&&(a2==1))&&(a19==3))&&!(a20==1)))))&&((!(a4==1)&&((a1==12)&&(((a17==2)&&(((input==1)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&!(a18==1)))&&(a21==12))))&&(a23==1)))){ + a21 = 11; + a5 = 6; + a27 = 0; + a7 = 0; + a19 = 1; + a20 = 1; + a9 = 10; + a4 = 0; + return 25; + } else if(((((a5==4)&&((a1==13)&&((((((a23==1)&&((a19==2)&&(((input==1)&&(a17==2))&&(a23==1))))&&(a2==1))&&!(a7==1))&&(a21==10))&&(a16==9))))&&(a9==11))&&((!(a4==1)&&(!(a23==1)||(a12==1)))&&(a20==1)))){ + a16 = 10; + a1 = 14; + a9 = 7; + a4 = 0; + a6 = 1; + a19 = 1; + a7 = 0; + return 21; + } else if((((((!(a3==1)||(a2==1))&&!(a18==1))&&(a5==4))&&(a16==10))&&(!(a20==1)&&((a9==8)&&((a19==4)&&((!(a18==1)&&(((((a11==1)&&((input==4)&&(a17==2)))&&(a21==11))&&(a11==1))&&(a1==14)))&&!(a18==1))))))){ + a14 = 1; + a1 = 13; + a16 = 11; + a20 = 1; + a26 = 1; + a21 = 10; + a9 = 10; + a19 = 2; + a7 = 1; + return -1; + } else if((((((a9==11)&&(!(a7==1)&&(((a2==1)&&(a21==10))&&(a16==7))))||(a27==1))&&(a1==12))&&((a20==1)&&((a19==5)&&((!(a4==1)&&(((a3==1)&&((((a5==5)||(a5==6))&&(input==6))&&(a17==2)))&&!(a8==1)))&&(a6==1)))))){ + a19 = 2; + a1 = 14; + a21 = 12; + a4 = 0; + a9 = 8; + a5 = 5; + a24 = 0; + a28 = 1; + return 22; + } else if(((((a19==3)&&((!(a28==1)||(((a1==14)&&((a0==1)||((a16==8)&&(a13==1))))||(a24==1)))&&(a17==2)))&&(a20==1))&&(((a12==1)&&((((a9==7)&&((input==1)&&((a5==5)||(a5==6))))&&(a21==11))&&!(a7==1)))&&!(a24==1)))){ + a21 = 10; + a3 = 1; + a19 = 1; + a11 = 1; + a5 = 4; + a4 = 0; + a16 = 7; + a1 = 12; + return -1; + } else if(((!(a20==1)&&(((a19==2)&&(((a7==1)||(!(a13==1)||((!(a28==1)||((a18==1)||(a6==1)))&&(a6==1))))&&(a21==12)))&&(a16==7)))&&(((a17==2)&&(!(a4==1)&&((input==5)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9))))))&&(a1==13)))){ + a20 = 1; + a28 = 1; + a21 = 10; + a5 = 4; + a9 = 9; + a23 = 1; + a24 = 0; + return -1; + } else if(((((a21==10)&&((a9==7)&&((!(a14==1)&&((a24==1)||(a12==1)))&&!(a20==1))))&&(a28==1))&&(((((a19==3)&&((a1==13)&&((a17==2)&&((((a5==4)||(a5==5))&&(input==3))&&(a16==10)))))&&(a23==1))&&(a6==1))&&(a23==1)))){ + if((a17==4)){ + a5 = 4; + a10 = 1; + a16 = 7; + a1 = 12; + a0 = 1; + a19 = 2; + a20 = 1; + a9 = 10; + }else{ + a0 = 1; + a19 = 2; + a4 = 1; + a1 = 14; + a5 = 4; + } + return 21; + } else if(((((a5==6)&&((a23==1)&&(!(a3==1)||(!(a24==1)&&((a2==1)&&!(a27==1))))))&&(a16==10))&&((a1==13)&&(((((a20==1)&&(((a11==1)&&((a21==11)&&(input==6)))&&(a17==2)))&&(a19==2))&&(a12==1))&&(a9==10))))){ + a28 = 1; + a5 = 5; + a9 = 9; + a24 = 0; + a16 = 7; + a21 = 10; + a7 = 0; + return 25; + } else if(((((((a12==1)&&((a1==13)&&((a20==1)&&(input==4))))&&(a2==1))&&(a6==1))&&(a17==2))&&(((!(a2==1)||((a5==6)&&(((a9==11)&&(((a2==1)&&(a3==1))&&(a16==11)))||!(a11==1))))&&(a21==10))&&(a19==2)))){ + a4 = 0; + a13 = 1; + a1 = 12; + a16 = 7; + a19 = 1; + a5 = 4; + a9 = 7; + a23 = 1; + return -1; + } else if(((!(a18==1)&&(!(a18==1)&&((a19==4)&&((a21==11)&&(((input==3)&&(((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))))&&(a16==10))))))&&((((((((a1==13)&&(a13==1))||!(a28==1))&&!(a0==1))||(a7==1))&&(a6==1))&&(a17==2))&&!(a20==1)))){ + if((a11==1)){ + a5 = 6; + a16 = 7; + a7 = 1; + a9 = 7; + a18 = 1; + a1 = 14; + a19 = 1; + a3 = 0; + a20 = 1; + a21 = 12; + }else{ + a21 = 10; + a27 = 1; + a11 = 0; + a5 = 4; + a9 = 8; + a20 = 1; + a16 = 7; + a19 = 1; + a8 = 1; + } + return 26; + } else if((((a18==1)||((a16==9)&&((a11==1)&&(((a5==5)&&((a28==1)&&(a6==1)))&&(a9==8)))))&&((!(a14==1)&&((a1==13)&&(!(a20==1)&&((a19==5)&&((a6==1)&&(((input==1)&&(a21==10))&&(a17==2)))))))&&(a6==1)))){ + if((a8==1)){ + a29 = 1; + a21 = 11; + a1 = 14; + a16 = 7; + a19 = 1; + a9 = 11; + a11 = 0; + a26 = 1; + }else{ + a20 = 1; + a16 = 7; + a3 = 0; + a9 = 9; + a1 = 12; + a29 = 0; + a19 = 1; + a15 = 0; + } + return 26; + } else if((((a8==1)||(((a21==11)&&(a28==1))&&(a19==4)))&&(!(a7==1)&&((a11==1)&&((a17==2)&&((a16==10)&&((!(a14==1)&&((a13==1)&&(((input==5)&&((((a1==13)&&(a5==4))&&(a9==7))||((((a5==5)&&(a1==12))&&(a9==11))||((a9==11)&&((a1==12)&&(a5==6))))))&&(a20==1))))&&!(a14==1)))))))){ + a21 = 10; + a11 = 1; + a12 = 1; + a9 = 7; + a19 = 1; + a5 = 4; + a1 = 12; + a16 = 7; + return -1; + } else if((((a20==1)&&(((a16==9)&&((a13==1)&&(((a3==1)&&(a19==3))&&(a11==1))))&&(a28==1)))&&((a13==1)&&(((a1==14)&&(((a21==12)&&(!(a0==1)&&((((a5==4)||(a5==5))&&(input==5))&&(a9==7))))&&(a17==2)))&&(a3==1))))){ + a1 = 13; + a16 = 7; + a0 = 0; + a3 = 1; + a21 = 10; + a19 = 2; + a5 = 6; + a9 = 10; + return 25; + } else if(((!(a20==1)&&((!(a12==1)||(((a17==2)&&((a16==7)&&((a23==1)&&(a13==1))))&&(a2==1)))||(a26==1)))&&((a9==8)&&(((((a19==1)&&((((a5==5)||(a5==6))&&(input==4))&&(a11==1)))&&(a21==12))&&(a1==12))&&!(a24==1))))){ + a16 = 8; + a5 = 5; + a3 = 1; + a20 = 1; + a19 = 5; + a26 = 0; + a9 = 10; + a1 = 13; + a18 = 0; + return -1; + } else if((((a5==5)&&((a12==1)&&((a9==8)&&(!(a18==1)&&((((a16==10)&&((!(a2==1)||(a2==1))&&(a6==1)))&&!(a4==1))&&(a19==2))))))&&((a1==14)&&(((a20==1)&&(((input==3)&&(a17==2))&&(a21==10)))&&(a12==1))))){ + a16 = 7; + a5 = 4; + a9 = 7; + a23 = 1; + a1 = 12; + a19 = 1; + a14 = 0; + return -1; + } else if(((((a24==1)||((!(a20==1)&&((a2==1)&&!(a26==1)))&&(a1==14)))||!(a23==1))&&((a16==9)&&(((a21==11)&&(((a17==2)&&((a6==1)&&((a5==6)&&(!(a24==1)&&((a9==7)&&(input==1))))))&&(a12==1)))&&(a19==4))))){ + a16 = 7; + a9 = 8; + a12 = 0; + a29 = 0; + a20 = 1; + a5 = 4; + a19 = 1; + a21 = 10; + a26 = 1; + return 25; + } else if(((((a5==6)&&((!(a26==1)&&((a12==1)&&((a1==12)&&(input==6))))&&(a17==2)))&&(a9==7))&&((!(a20==1)&&((a18==1)||(!(a12==1)||((a16==9)&&(!(a14==1)&&((a7==1)||((a21==10)&&(a13==1))))))))&&(a19==2)))){ + a8 = 1; + a19 = 1; + a16 = 7; + a5 = 4; + a3 = 0; + a20 = 1; + a9 = 11; + a4 = 1; + return 21; + } else if((((((a14==1)||((!(a28==1)||((a23==1)&&((a19==1)&&(a23==1))))&&(a16==9)))||!(a23==1))||!(a28==1))&&((((((a17==2)&&(((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a24==1)))&&(a1==12))&&(a21==10))&&!(a20==1))&&(a9==9)))){ + a19 = 2; + a23 = 0; + a20 = 1; + a18 = 1; + a8 = 1; + a5 = 6; + a16 = 7; + return 21; + } else if(((((((a23==1)&&((!(a18==1)&&((((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))&&(input==3))&&!(a20==1)))&&(a19==4)))&&(a1==13))&&(a11==1))&&!(a0==1))&&((((a26==1)||((a11==1)&&((a17==2)&&(a3==1))))&&(a21==10))&&(a16==10)))){ + a9 = 10; + a20 = 1; + a28 = 0; + a19 = 2; + a5 = 4; + a1 = 12; + a3 = 0; + a13 = 0; + a16 = 7; + return 25; + } else if((((a8==1)||(((a19==3)&&((a1==13)&&(a11==1)))&&(a17==2)))&&(((((a9==8)&&(!(a20==1)&&((!(a24==1)&&(((a21==10)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))&&(a16==8)))&&(a6==1))))&&!(a27==1))&&(a28==1))&&(a12==1)))){ + a26 = 0; + a20 = 1; + a19 = 2; + a23 = 1; + a5 = 4; + a16 = 9; + a9 = 7; + a21 = 12; + return 25; + } else if(((((a12==1)&&(((a16==9)&&(((a13==1)&&((a28==1)&&(a21==10)))&&(a19==1)))&&(a20==1)))&&!(a8==1))&&(!(a14==1)&&((a2==1)&&(!(a4==1)&&((((a1==12)&&((input==1)&&((a5==4)||(a5==5))))&&(a9==10))&&(a17==2))))))){ + a16 = 7; + a5 = 4; + a14 = 0; + a13 = 1; + a9 = 7; + a4 = 0; + return -1; + } return calculate_output51(input); + } + + int calculate_output51(int input) { + if((((((a3==1)&&((((input==6)&&(a9==8))&&(a28==1))&&(a13==1)))&&(a21==11))&&!(a7==1))&&((a19==3)&&(((a1==12)&&((a5==4)&&((a17==2)&&((!(a20==1)&&((a6==1)||(a4==1)))&&(a16==9)))))||(a24==1))))){ + if((a20==1)){ + a9 = 11; + a16 = 7; + a7 = 1; + a0 = 1; + a5 = 5; + a2 = 0; + a21 = 10; + a19 = 2; + a20 = 1; + }else{ + a14 = 1; + a20 = 1; + a21 = 10; + a1 = 13; + a16 = 11; + a9 = 11; + a18 = 1; + a19 = 5; + a6 = 0; + } + return -1; + } else if((((a19==3)&&((!(a28==1)||((a23==1)&&((a16==9)&&(a28==1))))&&!(a20==1)))&&((((a23==1)&&((!(a18==1)&&((!(a0==1)&&((input==4)&&(((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6))))))&&(a1==14)))&&(a21==11)))&&!(a4==1))&&(a17==2)))){ + if((a14==1)){ + a5 = 4; + a9 = 9; + a10 = 1; + a12 = 0; + a6 = 0; + a19 = 1; + a1 = 13; + }else{ + a9 = 8; + a5 = 4; + a16 = 8; + a29 = 1; + a19 = 4; + a2 = 0; + a21 = 12; + a3 = 0; + } + return 21; + } else if(((((((a9==8)&&((a19==1)&&((a1==12)&&((a17==2)&&((a16==8)&&(!(a20==1)&&((input==4)&&((a5==5)||(a5==6)))))))))&&(a18==1))&&!(a13==1))&&(a7==1))&&(!(a2==1)&&(((a8==1)&&((a2==1)&&(a21==11)))&&!(a2==1))))){ + a1 = 14; + a11 = 0; + a16 = 7; + a20 = 1; + a5 = 6; + a24 = 1; + a7 = 1; + a21 = 10; + a9 = 7; + return -1; + } else if((((a12==1)&&(((a13==1)&&((a19==5)&&((((a6==1)&&((input==3)&&(a21==10)))&&(a9==7))&&(a17==2))))&&(a16==11)))&&(!(a28==1)||(((a20==1)&&(!(a13==1)||((!(a0==1)&&(a2==1))&&(a5==6))))&&(a1==14))))){ + a26 = 0; + a19 = 1; + a14 = 0; + a16 = 7; + a27 = 0; + a5 = 4; + a1 = 12; + return -1; + } else if(((((a3==1)&&((a21==11)&&((a9==8)&&(((((input==1)&&((a5==4)||(a5==5)))&&(a17==2))&&!(a0==1))&&(a19==1)))))&&(a3==1))&&((a2==1)&&(((((a1==14)&&((a16==9)&&(a12==1)))&&!(a20==1))||!(a3==1))||(a0==1))))){ + if((a14==1)){ + a5 = 6; + a12 = 0; + a9 = 9; + a16 = 11; + a20 = 1; + a26 = 1; + a19 = 2; + a25 = 0; + a1 = 13; + }else{ + a28 = 0; + a23 = 0; + a20 = 1; + a16 = 7; + a29 = 0; + a5 = 5; + a21 = 10; + } + return -1; + } else if(((((!(a20==1)&&(((a12==1)&&(!(a4==1)&&(a28==1)))||!(a3==1)))&&(a1==13))&&(a17==2))&&(((((!(a8==1)&&(((((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9))))&&(input==3))&&!(a7==1)))&&(a12==1))&&(a21==12))&&(a19==1))&&(a16==10)))){ + a5 = 4; + a10 = 0; + a19 = 4; + a20 = 1; + a26 = 1; + a9 = 7; + a22 = 1; + return -1; + } else if(((((a9==11)&&((a19==2)&&((a7==1)||(((a17==2)&&(((a21==12)&&(a3==1))&&(a16==11)))||!(a6==1)))))||!(a12==1))&&((a5==4)&&((a20==1)&&(((((input==1)&&(a1==12))&&!(a0==1))&&!(a0==1))&&(a23==1)))))){ + a5 = 6; + a19 = 4; + a24 = 0; + a6 = 1; + a27 = 0; + return 22; + } else if(((!(a26==1)&&(((a12==1)&&((a21==12)&&((a17==2)&&((((((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4)))&&(input==3))&&!(a18==1))&&!(a20==1))&&(a3==1)))))&&(a12==1)))&&(!(a4==1)&&(((a19==3)&&((a23==1)&&(a16==10)))&&(a1==12))))){ + a18 = 1; + a16 = 8; + a21 = 10; + a10 = 0; + a19 = 2; + a9 = 10; + a20 = 1; + a5 = 4; + return 21; + } else if(((((a6==1)&&(!(a7==1)&&(!(a7==1)&&((((((a5==4)&&(a1==13))&&(a9==7))||((((a5==5)&&(a1==12))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==12)))))&&(input==5))&&(a19==2)))))&&(a16==9))&&((!(a20==1)&&((((!(a13==1)||(a12==1))||(a24==1))||!(a23==1))&&(a17==2)))&&(a21==11)))){ + a19 = 4; + a9 = 9; + a12 = 0; + a5 = 4; + a18 = 1; + a1 = 13; + a21 = 12; + a27 = 1; + a16 = 7; + return -1; + } else if((((a20==1)&&((a17==2)&&((a21==10)&&(!(a27==1)&&((!(a18==1)&&((input==5)&&((a5==4)||(a5==5))))&&(a23==1))))))&&(((a16==11)&&(((a27==1)||(!(a28==1)||(!(a18==1)&&((a19==1)&&(a6==1)))))&&(a1==14)))&&(a9==11)))){ + a7 = 0; + a19 = 2; + a1 = 12; + a8 = 0; + a5 = 4; + a21 = 11; + return 22; + } else if(((((a6==1)&&(((a2==1)&&(((a23==1)&&(((a1==14)&&((a16==10)&&((((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(input==1))))&&!(a20==1)))&&(a3==1)))&&(a19==5)))&&(a3==1))&&((a28==1)&&((a21==10)&&((a17==2)&&(a3==1)))))){ + if((a6==1)){ + a16 = 7; + a1 = 12; + a25 = 0; + a23 = 0; + a5 = 4; + a21 = 11; + a22 = 0; + a9 = 10; + }else{ + a20 = 1; + a26 = 1; + a16 = 7; + a9 = 7; + a5 = 4; + a28 = 0; + a10 = 1; + a19 = 1; + } + return -1; + } else if(((((a19==4)&&((((a2==1)&&((a23==1)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==3))))&&(a28==1))&&(a20==1)))&&(a17==2))&&((a27==1)||((a21==12)&&(((!(a4==1)&&((a11==1)&&(a1==13)))||!(a11==1))&&(a16==7)))))){ + a5 = 6; + a19 = 2; + a9 = 10; + a13 = 1; + a28 = 1; + a16 = 9; + a7 = 0; + a21 = 11; + return 25; + } else if((((((a28==1)&&(((!(a27==1)&&(!(a2==1)||(a2==1)))&&(a5==5))&&(a16==9)))&&(a6==1))&&(a21==12))&&((a1==14)&&((((a2==1)&&(!(a20==1)&&(((a17==2)&&(input==5))&&(a11==1))))&&(a19==3))&&(a9==11))))){ + if((a16==11)){ + a29 = 1; + a3 = 0; + a16 = 7; + a20 = 1; + a21 = 10; + a22 = 0; + a1 = 12; + a19 = 1; + }else{ + a15 = 0; + a10 = 0; + a9 = 9; + a20 = 1; + a1 = 13; + a21 = 11; + a16 = 7; + a12 = 0; + a5 = 6; + a19 = 4; + } + return 21; + } else if((((a9==7)&&(((a20==1)&&(((a28==1)&&(!(a7==1)&&((a6==1)&&(a11==1))))&&(a2==1)))&&(a1==13)))&&(((a21==11)&&(((a16==9)&&(((a13==1)&&((input==1)&&(a19==1)))&&!(a18==1)))&&(a17==2)))&&(a5==5)))){ + a13 = 1; + a21 = 10; + a5 = 4; + a27 = 0; + a3 = 1; + a1 = 12; + a16 = 7; + return -1; + } else if(((((a1==13)&&(!(a27==1)&&((a11==1)&&(((a21==11)&&((((((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))||((a5==4)&&(a9==10)))&&(input==6))&&!(a4==1)))&&!(a0==1)))))&&(a20==1))&&(((a19==5)&&(((a0==1)||((a13==1)&&(a16==10)))&&!(a7==1)))&&(a17==2)))){ + a18 = 0; + a21 = 10; + a9 = 7; + a19 = 1; + a1 = 12; + a27 = 0; + a16 = 7; + a5 = 4; + a13 = 1; + return -1; + } else if((((!(a20==1)&&(((a19==2)&&((!(a26==1)&&((a1==12)&&((((a3==1)&&(((a5==4)||(a5==5))&&(input==4)))&&(a23==1))&&(a9==11))))&&(a28==1)))&&(a21==12)))&&(a16==10))&&(((a2==1)&&((a2==1)&&(a28==1)))&&(a17==2)))){ + if((a25==1)){ + a24 = 1; + a6 = 0; + a5 = 4; + a25 = 1; + a1 = 13; + a16 = 7; + a20 = 1; + a19 = 1; + a21 = 10; + }else{ + a19 = 5; + a5 = 4; + a24 = 1; + a9 = 8; + a28 = 0; + a1 = 14; + a21 = 10; + a14 = 1; + } + return -1; + } else if(((((((((input==5)&&(a20==1))&&(a9==11))&&(a1==13))&&(a11==1))&&(a21==10))&&!(a8==1))&&((a17==2)&&((a7==1)||(((!(a0==1)&&((a14==1)||(((a2==1)&&(a16==7))&&(a5==4))))&&(a19==5))&&!(a0==1)))))){ + a23 = 1; + a28 = 1; + a1 = 14; + a19 = 3; + a21 = 12; + a14 = 0; + return 22; + } else if((((a6==1)&&(!(a18==1)&&(((a16==10)&&((a5==5)&&((input==6)&&(a1==14))))&&(a9==10))))&&(((a12==1)&&((a18==1)||((!(a11==1)||((((a2==1)&&(a19==5))&&!(a20==1))&&(a21==12)))&&(a17==2))))||!(a3==1)))){ + a20 = 1; + a25 = 0; + a16 = 11; + a28 = 0; + a19 = 2; + a15 = 1; + a21 = 10; + return 25; + } else if((((a9==11)&&(!(a8==1)&&((a17==2)&&((a26==1)||(!(a23==1)||(!(a26==1)&&(a11==1)))))))&&((a21==11)&&(((a1==12)&&((!(a7==1)&&((!(a7==1)&&((input==5)&&(a16==7)))&&(a20==1)))&&(a5==5)))&&(a19==2))))){ + a4 = 0; + a19 = 3; + a9 = 10; + a21 = 10; + a7 = 0; + a16 = 8; + a5 = 4; + a23 = 1; + return 23; + } else if((((a12==1)&&((a13==1)&&((((!(a20==1)&&((((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(input==1)))&&(a16==8))&&(a6==1))&&(a17==2))))&&(((a26==1)||(((a1==13)&&((a12==1)&&((a11==1)&&(a23==1))))&&(a21==12)))&&(a19==4)))){ + a15 = 1; + a22 = 1; + a1 = 12; + a20 = 1; + a9 = 11; + a5 = 4; + a21 = 10; + a19 = 3; + return -1; + } else if((((a19==5)&&((((a16==9)&&((a20==1)&&((((input==5)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8))))&&!(a11==1))&&!(a6==1))))&&!(a3==1))&&(a1==14)))&&((a17==2)&&((a21==10)&&(((a14==1)&&((a2==1)&&(a7==1)))&&(a4==1)))))){ + a9 = 7; + a1 = 13; + a21 = 12; + a16 = 7; + a28 = 0; + a5 = 5; + a4 = 1; + a7 = 1; + a20 = 0; + a19 = 4; + return -1; + } else if((((((a1==13)&&((a9==10)&&((!(a11==1)||((a23==1)&&((a11==1)&&(a11==1))))&&(a17==2))))&&(a11==1))&&(a19==2))&&(((a21==10)&&(((a12==1)&&(((input==4)&&(a5==6))&&!(a20==1)))&&(a2==1)))&&(a16==8)))){ + a16 = 7; + a1 = 12; + a5 = 4; + a6 = 1; + a19 = 1; + a9 = 7; + a11 = 1; + a20 = 1; + a12 = 1; + return -1; + } else if((((((a20==1)&&(((a19==1)&&(a28==1))&&(a23==1)))||(a27==1))||(a24==1))&&((!(a27==1)&&((a16==11)&&(((a17==2)&&(!(a7==1)&&((a21==11)&&((input==1)&&(((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))))))&&(a1==13))))&&(a3==1)))){ + a2 = 1; + a20 = 0; + a18 = 0; + a9 = 11; + a16 = 7; + a23 = 1; + a5 = 4; + a19 = 3; + return 21; + } else if((((!(a24==1)&&(!(a14==1)&&(((a23==1)&&!(a20==1))&&(a19==2))))&&(a12==1))&&((!(a0==1)&&((a16==11)&&(((a1==12)&&((!(a14==1)&&((input==4)&&(((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6))))))&&(a21==10)))&&(a17==2))))&&!(a14==1)))){ + if((a17==4)){ + a5 = 6; + a19 = 1; + a26 = 1; + a16 = 7; + a9 = 10; + a14 = 1; + a1 = 14; + a22 = 1; + a20 = 1; + }else{ + a5 = 6; + a10 = 0; + a20 = 1; + a16 = 8; + a19 = 1; + a22 = 0; + a1 = 14; + a9 = 9; + a6 = 0; + } + return -1; + } else if((((a19==2)&&(((a8==1)||(!(a24==1)&&(!(a8==1)&&(((a1==12)&&(a12==1))&&(a2==1)))))&&(a21==11)))&&((a16==11)&&((((!(a18==1)&&(!(a0==1)&&(((a5==4)||(a5==5))&&(input==5))))&&(a9==8))&&(a20==1))&&(a17==2))))){ + a21 = 10; + a28 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + a12 = 1; + a19 = 1; + return -1; + } else if(((((a28==1)&&(((a28==1)&&((a19==5)&&(((a16==8)&&((a17==2)&&((a1==14)&&((input==4)&&(((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))))))&&(a21==11))))&&!(a8==1)))&&!(a27==1))&&(!(a0==1)&&((a20==1)&&((a2==1)||(a18==1)))))){ + a9 = 7; + a16 = 7; + a1 = 12; + a21 = 10; + a13 = 1; + a3 = 1; + a19 = 1; + a5 = 4; + a2 = 1; + return -1; + } else if(((((!(a7==1)&&((a6==1)&&((((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a3==1))&&(a13==1))))&&(a21==10))&&(a23==1))&&(((a20==1)&&(!(a24==1)&&((a1==12)&&((a17==2)&&(((a16==8)&&(a2==1))&&(a9==7))))))&&(a19==5)))){ + a0 = 0; + a3 = 1; + a19 = 1; + a16 = 7; + a11 = 1; + a5 = 4; + return -1; + } else if(((((((a1==13)&&(!(a18==1)&&((a18==1)||((a27==1)||((a12==1)||!(a12==1))))))&&(a19==4))&&(a20==1))&&(a21==12))&&((a9==7)&&((a17==2)&&(((a16==10)&&(!(a0==1)&&(((a5==4)||(a5==5))&&(input==5))))&&!(a24==1)))))){ + a7 = 0; + a1 = 12; + a21 = 10; + a19 = 1; + a5 = 4; + a12 = 1; + a16 = 7; + a3 = 1; + return -1; + } else if((((a11==1)&&((a6==1)&&((a12==1)&&((a17==2)&&(((input==3)&&(a5==4))&&(a9==9))))))&&((a26==1)||(!(a3==1)||(((a1==14)&&(((((a23==1)&&(a21==11))&&(a20==1))&&(a16==11))||!(a12==1)))&&(a19==2)))))){ + if((a28==1)){ + a21 = 10; + a19 = 3; + a16 = 8; + a2 = 1; + a6 = 1; + a20 = 0; + a7 = 0; + }else{ + a8 = 0; + a19 = 3; + a9 = 10; + a0 = 0; + a21 = 12; + a7 = 0; + a1 = 13; + a5 = 5; + a16 = 10; + } + return 21; + } else if((((!(a8==1)&&(!(a20==1)&&(((a19==1)&&(a13==1))&&(a23==1))))||(a7==1))&&(!(a8==1)&&(((a23==1)&&((a16==10)&&((a17==2)&&(((a1==13)&&((((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))&&(input==5)))&&(a12==1)))))&&(a21==10))))){ + a1 = 12; + a9 = 10; + a20 = 1; + a12 = 0; + a16 = 7; + a2 = 0; + a5 = 6; + a6 = 0; + return 25; + } else if((((!(a0==1)&&((a1==12)&&(!(a0==1)&&((((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8)))&&(input==3))&&(a2==1)))))&&(a19==4))&&((((!(a8==1)&&((a20==1)&&((a16==7)&&((a21==12)&&(a11==1)))))&&!(a4==1))&&!(a27==1))&&(a17==2)))){ + a5 = 4; + a11 = 1; + a9 = 7; + a8 = 0; + a23 = 1; + a19 = 1; + a21 = 10; + return -1; + } else if((((a16==9)&&(((!(a18==1)&&((a3==1)&&(a17==2)))&&(a9==9))&&(a19==3)))&&(((a21==12)&&((a13==1)&&((a28==1)&&((((!(a26==1)&&(!(a20==1)&&(input==6)))&&(a1==12))&&!(a24==1))&&(a3==1)))))&&(a5==4)))){ + a19 = 1; + a1 = 14; + a16 = 7; + a29 = 0; + a0 = 1; + a21 = 10; + a5 = 6; + a20 = 1; + return -1; + } else if(((((a21==10)&&(((((a16==9)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&(a2==1))&&!(a20==1))&&(a9==11)))&&!(a4==1))&&(!(a12==1)||(((a7==1)||((a28==1)&&(((a3==1)&&((a17==2)&&(a3==1)))&&(a1==14))))&&(a19==2))))){ + if((a1==13)){ + a5 = 4; + a16 = 7; + a12 = 0; + a1 = 12; + a26 = 1; + a20 = 1; + a22 = 0; + }else{ + a9 = 7; + a5 = 5; + a16 = 7; + a1 = 12; + a20 = 1; + a25 = 1; + a22 = 0; + a4 = 1; + } + return 23; + } else if((((!(a24==1)&&((!(a6==1)||((a5==5)&&(!(a3==1)||(a12==1))))&&(a20==1)))&&(a1==13))&&(!(a4==1)&&((((a21==12)&&(((a17==2)&&(((a9==8)&&(input==6))&&(a12==1)))&&(a19==3)))&&(a3==1))&&(a16==10))))){ + if((a15==1)){ + a16 = 8; + a20 = 0; + a1 = 12; + a8 = 0; + a19 = 5; + a2 = 1; + a7 = 0; + a21 = 10; + a9 = 11; + }else{ + a14 = 0; + a5 = 6; + a1 = 14; + a16 = 7; + a19 = 2; + a9 = 10; + a26 = 0; + a7 = 0; + a21 = 10; + } + return 21; + } else if((((a19==2)&&((a11==1)&&((!(a24==1)&&(((a21==11)&&(input==4))&&(a6==1)))&&(a1==13))))&&(((((a9==9)&&((((a7==1)||((a26==1)||(a3==1)))&&(a16==7))&&(a5==4)))&&(a17==2))&&!(a20==1))||(a26==1)))){ + a20 = 1; + a9 = 7; + a2 = 1; + a21 = 10; + a19 = 1; + a4 = 0; + a1 = 12; + a11 = 1; + return -1; + } else if((((((a26==1)||((a16==9)&&((a20==1)&&(a2==1))))&&(a17==2))&&(a21==10))&&((a1==13)&&((a13==1)&&(!(a8==1)&&(!(a8==1)&&(((a2==1)&&((a9==8)&&(((input==1)&&(a19==2))&&(a5==6))))&&(a28==1)))))))){ + a19 = 1; + a9 = 7; + a24 = 0; + a5 = 4; + a1 = 12; + a16 = 7; + a23 = 1; + return -1; + } else if(((!(a3==1)||(((a19==4)&&(!(a3==1)||((a13==1)||(a14==1))))&&!(a24==1)))&&((a20==1)&&((!(a18==1)&&((a21==11)&&(((a9==7)&&((a1==12)&&((((a5==4)||(a5==5))&&(input==4))&&(a16==7))))&&(a17==2))))&&(a2==1))))){ + a1 = 14; + a11 = 1; + a13 = 1; + a27 = 0; + a19 = 2; + a9 = 10; + a16 = 8; + a5 = 5; + return 25; + } else if((((a1==14)&&((((!(a18==1)&&(a3==1))&&!(a27==1))&&(a20==1))&&!(a14==1)))&&(!(a8==1)&&((a21==11)&&(((a17==2)&&((a19==1)&&(((a13==1)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==4)))&&!(a24==1))))&&(a16==9)))))){ + a24 = 0; + a21 = 10; + a5 = 4; + a16 = 7; + a6 = 1; + a13 = 1; + a9 = 7; + a1 = 12; + return -1; + } else if(((((!(a23==1)||((a2==1)&&(((a21==10)&&((a26==1)||((a14==1)||((a23==1)&&(a1==12)))))&&!(a20==1))))&&(a16==10))&&(a17==2))&&(((((input==4)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10))))&&(a12==1))&&!(a18==1))&&(a19==5)))){ + if((a12==1)){ + a5 = 5; + a14 = 1; + a25 = 0; + a9 = 8; + a19 = 2; + a22 = 1; + a16 = 7; + a1 = 13; + a20 = 1; + }else{ + a20 = 1; + a9 = 8; + a19 = 1; + a1 = 13; + a5 = 6; + a12 = 0; + a16 = 7; + a18 = 1; + a29 = 1; + } + return -1; + } else if((((a11==1)&&(((a21==11)&&(((a19==3)&&((!(a14==1)&&(((a5==5)||(a5==6))&&(input==1)))&&!(a18==1)))&&(a17==2)))&&(a23==1)))&&((((a20==1)&&((a12==1)&&(((a3==1)&&(a9==7))&&!(a27==1))))&&(a16==9))&&(a1==13)))){ + a21 = 10; + a5 = 4; + a1 = 12; + a16 = 7; + a19 = 1; + a13 = 1; + a14 = 0; + a23 = 1; + return -1; + } else if((((a1==12)&&((((a20==1)&&(!(a4==1)&&((a13==1)&&((a16==11)&&((((a5==5)||(a5==6))&&(input==6))&&!(a27==1))))))&&(a28==1))&&(a19==2)))&&((((a17==2)&&(((a12==1)||(a14==1))||(a8==1)))&&(a9==7))&&(a21==12)))){ + a9 = 10; + a5 = 6; + a19 = 4; + a13 = 1; + a2 = 1; + a26 = 0; + return 25; + } else if(((!(a26==1)&&(((a2==1)&&(((a16==7)&&((a28==1)&&(a17==2)))&&(a2==1)))&&!(a24==1)))&&((a11==1)&&(((a2==1)&&(!(a20==1)&&((a1==12)&&((a19==2)&&((input==5)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5))))))))&&(a21==12))))){ + a13 = 1; + a4 = 0; + a5 = 4; + a19 = 1; + a20 = 1; + a9 = 7; + a21 = 10; + a12 = 1; + return -1; + } else if((((((!(a4==1)&&((input==4)&&((a5==5)||(a5==6))))&&(a19==2))&&(a9==8))&&(a21==10))&&(((a3==1)&&(((((((!(a28==1)||(a12==1))&&(a16==8))&&(a6==1))&&(a17==2))||!(a28==1))&&(a11==1))&&(a1==14)))&&(a20==1)))){ + a12 = 1; + a23 = 1; + a16 = 7; + a5 = 4; + a19 = 1; + a3 = 1; + a1 = 12; + a9 = 7; + return -1; + } else if((((a11==1)&&((!(a14==1)&&((a1==12)&&(((a9==9)&&(!(a27==1)&&((a2==1)&&(a16==11))))&&(a21==10))))&&!(a18==1)))&&(((a20==1)&&(((a19==3)&&(((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&(a17==2)))&&!(a27==1)))&&(a2==1)))){ + a9 = 7; + a13 = 1; + a19 = 1; + a5 = 4; + a28 = 1; + a16 = 7; + a3 = 1; + return -1; + } else if(((((a16==9)&&((((a13==1)&&(((((((input==4)&&((a5==4)||(a5==5)))&&(a2==1))&&(a19==4))&&(a17==2))&&!(a0==1))&&(a21==11)))&&(a1==14))&&(a9==7)))&&(a3==1))&&((!(a20==1)&&((a18==1)||(a11==1)))&&(a11==1)))){ + a14 = 1; + a9 = 9; + a21 = 10; + a15 = 0; + a26 = 1; + a16 = 7; + a20 = 1; + a19 = 1; + a5 = 6; + return 23; + } else if(((!(a8==1)&&((a11==1)&&((a16==8)&&(((a1==12)&&(((a19==3)&&(input==5))&&(a21==12)))&&(a20==1)))))&&((a13==1)&&(!(a12==1)||((a17==2)&&(!(a7==1)&&(((!(a2==1)||(a13==1))&&(a5==5))&&(a9==9)))))))){ + a8 = 0; + a24 = 0; + a1 = 14; + a9 = 11; + a20 = 0; + a16 = 7; + a2 = 1; + a19 = 1; + a21 = 11; + a5 = 4; + return 25; + } else if((((a1==12)&&((((((a6==1)&&((input==6)&&(a21==12)))&&(a11==1))&&(a5==4))&&(a23==1))&&(a9==11)))&&(((a19==2)&&(((((a12==1)&&(!(a8==1)&&(a23==1)))&&(a2==1))&&(a16==11))&&(a17==2)))&&(a20==1)))){ + a11 = 1; + a21 = 10; + a6 = 1; + a9 = 7; + a16 = 7; + a19 = 1; + return -1; + } else if(((!(a18==1)&&((((a13==1)&&((a9==9)&&(((((a5==5)||(a5==6))&&(input==5))&&(a20==1))&&(a1==13))))&&(a2==1))&&(a17==2)))&&((a12==1)&&(((a19==5)&&((a13==1)&&(((a28==1)||!(a6==1))&&(a21==11))))&&(a16==7))))){ + a5 = 4; + a9 = 7; + a1 = 12; + a21 = 10; + a3 = 1; + a0 = 0; + a4 = 0; + a19 = 1; + return -1; + } else if((((a17==2)&&(((a11==1)&&((a1==12)&&(!(a14==1)&&(((input==5)&&(((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))))&&!(a26==1)))))&&(a20==1)))&&(((((((a12==1)&&(a21==12))||!(a23==1))&&(a16==7))&&!(a7==1))||(a8==1))&&(a19==3)))){ + a23 = 1; + a9 = 7; + a5 = 4; + a12 = 1; + a21 = 10; + a24 = 0; + a19 = 1; + return -1; + } else if((((((((a9==10)&&(!(a13==1)||((a4==1)||((a21==10)&&(((a12==1)||!(a11==1))&&(a11==1))))))&&(a20==1))&&(a16==8))&&(a5==5))&&(a17==2))&&(((a19==3)&&((a11==1)&&((a1==12)&&(input==3))))&&!(a26==1)))){ + a16 = 7; + a0 = 0; + a23 = 1; + a5 = 4; + a19 = 1; + a7 = 0; + a9 = 7; + return -1; + } else if((((a17==2)&&(!(a13==1)||(((a20==1)&&(a3==1))&&(a1==13))))&&((a16==10)&&((!(a26==1)&&((a6==1)&&((((((((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(input==6))&&(a2==1))&&!(a18==1))&&(a6==1))&&(a19==2))))&&(a21==10))))){ + a16 = 7; + a9 = 7; + a28 = 1; + a19 = 1; + a12 = 1; + a5 = 4; + a3 = 1; + a1 = 12; + return -1; + } else if(((!(a8==1)&&((((a13==1)&&(((a16==10)&&((((input==6)&&(a17==2))&&(a5==6))&&(a13==1)))&&!(a14==1)))&&(a19==5))&&(a9==8)))&&((((a21==11)&&((a23==1)&&((a3==1)&&(a1==13))))&&(a20==1))||(a7==1)))){ + a21 = 10; + a19 = 1; + a4 = 0; + a9 = 7; + a18 = 0; + a1 = 12; + a16 = 7; + a5 = 4; + a12 = 1; + return -1; + } else if(((((((a3==1)&&(((a16==8)&&((((a21==12)&&(input==1))&&(a17==2))&&(a1==12)))&&!(a20==1)))&&(a23==1))&&(a19==2))&&(a5==5))&&((a9==8)&&(((((a3==1)&&!(a0==1))&&!(a18==1))||!(a2==1))&&!(a8==1))))){ + a20 = 1; + a9 = 10; + a19 = 1; + a16 = 7; + a21 = 10; + a6 = 0; + a5 = 6; + a25 = 1; + return -1; + } else if((((a3==1)&&(!(a0==1)&&((((a3==1)&&((((a19==2)&&((a21==12)&&(input==1)))&&(a5==5))&&(a17==2)))&&(a16==7))&&(a23==1))))&&(!(a26==1)&&(((a1==14)&&((a20==1)&&((a9==10)&&(a2==1))))&&(a28==1))))){ + a2 = 1; + a5 = 6; + a9 = 7; + a1 = 12; + a23 = 1; + a8 = 0; + a19 = 4; + a21 = 10; + a16 = 9; + return 21; + } else if((((a19==3)&&((a9==9)&&((!(a28==1)||(!(a26==1)&&((a28==1)&&(a11==1))))||!(a23==1))))&&(((a2==1)&&((a3==1)&&((a17==2)&&(((a21==12)&&(!(a20==1)&&(((a5==4)||(a5==5))&&(input==3))))&&(a1==14)))))&&(a16==7)))){ + a7 = 0; + a20 = 1; + a4 = 0; + a9 = 7; + a13 = 1; + a21 = 10; + a1 = 12; + a5 = 4; + a19 = 1; + return -1; + } else if((((a13==1)&&(((a16==8)&&(((a17==2)&&((a1==13)&&(((((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9))))&&(input==3))&&!(a27==1))))&&(a19==5)))&&!(a27==1)))&&((a23==1)&&((!(a14==1)&&(((a13==1)&&!(a20==1))&&(a21==11)))&&(a2==1))))){ + a26 = 1; + a19 = 2; + a6 = 0; + a5 = 6; + a9 = 11; + a12 = 0; + return 22; + } else if((((a19==1)&&((((a20==1)&&(!(a27==1)&&(((a5==5)||(a5==6))&&(input==5))))&&(a21==11))&&!(a26==1)))&&((a17==2)&&((a4==1)||((((a8==1)||(((a16==9)&&((a13==1)&&(a6==1)))&&(a1==12)))&&(a9==7))&&(a28==1)))))){ + a24 = 0; + a16 = 7; + a19 = 5; + a9 = 10; + a11 = 1; + a21 = 10; + a1 = 14; + a20 = 0; + a5 = 4; + a0 = 0; + return 25; + } else if(((((a13==1)&&(((((input==6)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&!(a27==1))&&(a1==12))&&!(a24==1)))&&(a21==10))&&((((a17==2)&&(((a16==7)&&(!(a4==1)&&((a6==1)&&!(a26==1))))||!(a6==1)))&&!(a20==1))&&(a19==5)))){ + a28 = 1; + a3 = 1; + a18 = 0; + a20 = 1; + a9 = 8; + a19 = 2; + a5 = 4; + return -1; + } else if((((a5==6)&&((a1==13)&&((a17==2)&&((a20==1)&&((a12==1)&&((((a2==1)&&((input==5)&&(a9==7)))&&(a16==11))&&!(a4==1)))))))&&((a19==4)&&((a21==12)&&((((a11==1)&&(a11==1))&&!(a26==1))||!(a12==1)))))){ + a5 = 4; + a7 = 0; + a9 = 9; + a24 = 0; + a16 = 10; + a19 = 2; + a2 = 1; + a21 = 10; + a1 = 14; + return 21; + } else if((((((a5==5)&&((a9==11)&&((input==5)&&(a21==10))))&&(a17==2))&&(a1==14))&&((a20==1)&&(((!(a11==1)||(((a28==1)&&((a16==8)&&(!(a13==1)||((a3==1)||!(a23==1)))))||(a0==1)))&&(a19==2))||!(a28==1))))){ + a9 = 8; + a16 = 9; + a1 = 13; + a7 = 0; + a26 = 0; + a19 = 4; + a28 = 1; + a21 = 12; + a5 = 4; + return 25; + } else if((((a17==2)&&((((a16==10)&&((a21==11)&&((a28==1)||!(a23==1))))&&!(a7==1))&&!(a24==1)))&&(((a19==4)&&((a20==1)&&(((a6==1)&&(!(a14==1)&&((input==5)&&(((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))))))&&!(a0==1))))&&(a1==14)))){ + a19 = 2; + a9 = 9; + a2 = 1; + a6 = 1; + a14 = 0; + a5 = 5; + a16 = 7; + a21 = 10; + a1 = 13; + return 25; + } else if((((((a9==8)&&(a3==1))||!(a23==1))||!(a2==1))&&((((((a11==1)&&((a1==12)&&((a21==12)&&(((((input==1)&&((a5==5)||(a5==6)))&&(a17==2))&&(a19==5))&&!(a20==1)))))&&(a16==7))&&(a3==1))&&!(a18==1))&&!(a18==1)))){ + a9 = 7; + a6 = 1; + a20 = 1; + a21 = 10; + a19 = 1; + a5 = 4; + a23 = 1; + a11 = 1; + return -1; + } else if(((((a9==9)&&((a19==5)&&((a7==1)||((a0==1)||(!(a14==1)&&((a21==12)&&(!(a6==1)||(a2==1))))))))&&(a1==12))&&((!(a4==1)&&(((a6==1)&&((((a5==5)||(a5==6))&&(input==3))&&(a16==11)))&&(a17==2)))&&(a20==1)))){ + a21 = 10; + a19 = 1; + a16 = 7; + a11 = 1; + a2 = 1; + a9 = 7; + a5 = 4; + a4 = 0; + return -1; + } else if((((!(a18==1)&&(!(a18==1)&&(!(a7==1)&&(((a19==3)&&((input==1)&&(a16==7)))&&(a5==4)))))&&(a9==9))&&(((a17==2)&&((!(a14==1)&&(((!(a6==1)||(a2==1))&&(a21==12))&&!(a20==1)))&&(a1==12)))&&!(a7==1)))){ + a2 = 1; + a13 = 1; + a9 = 7; + a19 = 1; + a20 = 1; + a21 = 10; + return -1; + } else if((((a16==7)&&((a9==11)&&((a19==1)&&((((a2==1)&&(a11==1))&&(a13==1))&&(a1==12)))))&&(((!(a20==1)&&(((!(a0==1)&&((a3==1)&&((input==5)&&((a5==4)||(a5==5)))))&&!(a4==1))&&!(a24==1)))&&(a17==2))&&(a21==12)))){ + a28 = 1; + a20 = 1; + a6 = 1; + a9 = 7; + a21 = 10; + a5 = 4; + a12 = 1; + return -1; + } else if(((!(a8==1)&&((a23==1)&&((a19==2)&&((a16==8)&&((a17==2)&&((a11==1)&&(a9==9)))))))&&(!(a0==1)&&((((a21==12)&&((a20==1)&&((((input==5)&&((a5==4)||(a5==5)))&&(a1==13))&&(a2==1))))&&(a23==1))&&!(a8==1))))){ + a6 = 1; + a16 = 7; + a8 = 0; + a21 = 10; + a7 = 0; + a5 = 4; + return 25; + } else if(((((a16==7)&&((a17==2)&&(!(a3==1)||((a19==1)&&(a6==1)))))&&(a13==1))&&(((!(a24==1)&&(!(a26==1)&&(((a5==5)&&((((a21==12)&&(input==3))&&(a9==10))&&!(a20==1)))&&(a1==14))))&&!(a26==1))&&(a23==1)))){ + a5 = 4; + a9 = 7; + a28 = 1; + a1 = 12; + a8 = 0; + a20 = 1; + a21 = 10; + a26 = 0; + return -1; + } else if(((((!(a27==1)&&(((a5==4)&&((a13==1)&&((input==1)&&(a9==9))))&&(a17==2)))&&!(a4==1))&&(a20==1))&&(((((((a27==1)||((a6==1)&&!(a8==1)))&&!(a26==1))&&(a21==11))&&(a19==2))&&(a1==13))&&(a16==10)))){ + a11 = 1; + a16 = 7; + a21 = 10; + a7 = 0; + a1 = 12; + a28 = 1; + a9 = 7; + a19 = 1; + return -1; + } else if((((a28==1)&&(!(a20==1)&&(((a6==1)&&((!(a4==1)&&(a23==1))||(a4==1)))&&(a19==1))))&&(((a17==2)&&(((a28==1)&&((a5==4)&&((((a16==8)&&(input==5))&&(a28==1))&&(a21==11))))&&(a9==10)))&&(a1==13)))){ + a8 = 0; + a0 = 0; + a19 = 5; + a9 = 9; + a20 = 1; + a2 = 1; + a5 = 6; + a21 = 10; + a1 = 12; + return -1; + } else if((((a9==9)&&(((a21==12)&&((a0==1)||((a16==8)&&((a23==1)&&(((a23==1)&&(a17==2))&&(a11==1))))))&&(a19==1)))&&(((a1==14)&&(((a6==1)&&(((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&(a3==1)))&&(a11==1)))&&(a20==1)))){ + a5 = 6; + a23 = 1; + a9 = 8; + a12 = 1; + return 21; + } else if((((((((input==6)&&((a5==4)||(a5==5)))&&(a6==1))&&(a1==13))&&(a20==1))&&(a9==10))&&(((a23==1)&&(((a8==1)||((a21==10)&&((!(a8==1)&&((a16==10)&&((a13==1)&&(a28==1))))&&(a17==2))))&&(a19==2)))&&!(a26==1)))){ + a1 = 14; + a5 = 4; + a20 = 0; + a3 = 1; + a13 = 1; + a18 = 0; + a19 = 5; + a9 = 11; + a16 = 7; + return 22; + } else if((((a5==5)&&((((a3==1)||!(a12==1))||!(a6==1))||!(a6==1)))&&((a16==10)&&(((a21==11)&&((a17==2)&&(!(a4==1)&&((a19==1)&&((a13==1)&&((a23==1)&&(!(a20==1)&&((a1==13)&&(input==1)))))))))&&(a9==10))))){ + a9 = 7; + a21 = 10; + a20 = 1; + a28 = 0; + a6 = 0; + a11 = 0; + a1 = 12; + a16 = 7; + a5 = 4; + a19 = 2; + return -1; + } else if((((((a1==13)&&((a21==10)&&((!(a8==1)&&(a3==1))&&(a20==1))))||(a8==1))&&(a19==1))&&(!(a27==1)&&((!(a26==1)&&((a12==1)&&(((((input==4)&&((a5==4)||(a5==5)))&&(a16==11))&&(a3==1))&&(a9==8))))&&(a17==2))))){ + a9 = 7; + a5 = 4; + a1 = 12; + a3 = 1; + a16 = 7; + a28 = 1; + return -1; + } else if(((((a16==8)&&((a21==12)&&((!(a18==1)&&((input==5)&&((a5==5)||(a5==6))))&&(a17==2))))&&(a12==1))&&(((a19==4)&&((a1==13)&&(((a3==1)&&((a13==1)&&((!(a24==1)&&(a28==1))&&!(a20==1))))&&!(a4==1))))&&(a9==7)))){ + a1 = 14; + a19 = 3; + a29 = 0; + a20 = 1; + a16 = 9; + a28 = 0; + a5 = 5; + a2 = 0; + return 21; + } else if((((a1==14)&&((((a11==1)&&((a19==2)&&(((input==1)&&(a17==2))&&(a9==11))))&&(a5==6))&&(a12==1)))&&(!(a20==1)&&(((a18==1)||(((((a28==1)&&(a28==1))||!(a23==1))&&!(a8==1))&&(a16==8)))&&(a21==10))))){ + a9 = 7; + a3 = 1; + a20 = 1; + a18 = 0; + a19 = 5; + a23 = 1; + a21 = 12; + return -1; + } else if(((((a17==2)&&(((a16==10)&&(((a11==1)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==1)))&&(a19==5)))&&!(a27==1)))&&(a20==1))&&((a28==1)&&((!(a7==1)&&(!(a12==1)||(((a1==12)&&(a6==1))||(a8==1))))&&(a21==11))))){ + a19 = 2; + a5 = 6; + a3 = 1; + a6 = 1; + a9 = 8; + a28 = 1; + return -1; + } else if(((((a26==1)||(!(a6==1)||(((a17==2)&&(!(a7==1)&&(a2==1)))&&(a21==12))))&&(a16==11))&&((a19==3)&&((!(a0==1)&&((a13==1)&&(!(a24==1)&&(((((a1==13)&&(a5==5))&&(a9==7))||(((a9==11)&&((a5==6)&&(a1==12)))||((a9==7)&&((a5==4)&&(a1==13)))))&&(input==6)))))&&(a20==1))))){ + a5 = 6; + a19 = 1; + a9 = 10; + a3 = 1; + a0 = 0; + a16 = 10; + a21 = 10; + a1 = 12; + a12 = 1; + return 21; + } else if(((!(a28==1)||(((a21==12)&&(((a16==8)&&((a13==1)&&(a13==1)))&&(a17==2)))&&!(a20==1)))&&((a23==1)&&(((!(a4==1)&&(((((a9==7)&&((a1==14)&&(a5==4)))||((((a1==13)&&(a5==5))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==13)))))&&(input==4))&&(a19==2)))&&(a28==1))&&(a28==1))))){ + if((a20==1)){ + a5 = 4; + a20 = 1; + a19 = 1; + a1 = 13; + a0 = 1; + a11 = 0; + a9 = 8; + a21 = 11; + a28 = 0; + }else{ + a12 = 0; + a3 = 0; + a9 = 8; + a19 = 5; + a1 = 12; + a25 = 1; + a5 = 5; + a21 = 11; + } + return -1; + } else if((((a1==12)&&((a21==11)&&((a19==2)&&(((((a4==1)||((((a3==1)&&!(a27==1))&&!(a18==1))&&!(a27==1)))&&!(a20==1))||!(a2==1))&&(a5==6)))))&&(!(a4==1)&&((((input==4)&&(a17==2))&&(a9==9))&&(a16==8))))){ + a9 = 7; + a1 = 14; + a3 = 1; + a16 = 9; + a6 = 1; + a19 = 1; + a26 = 0; + a21 = 10; + a5 = 5; + a20 = 1; + return 25; + } else if((((((((a20==1)&&(input==3))&&(a1==13))&&(a21==11))&&!(a8==1))&&(a23==1))&&(((!(a8==1)&&((((a17==2)&&((((a28==1)&&!(a4==1))&&(a9==8))&&(a19==1)))&&(a16==8))&&(a5==6)))||(a8==1))||(a4==1)))){ + a27 = 0; + a9 = 7; + a16 = 7; + a1 = 12; + a11 = 1; + a5 = 4; + a21 = 10; + return -1; + } else if((((!(a8==1)&&(((!(a24==1)&&((a21==10)&&(!(a11==1)||(a12==1))))&&(a9==11))&&(a16==8)))&&(a28==1))&&(!(a4==1)&&((a12==1)&&(((a5==6)&&((a17==2)&&((a19==5)&&(!(a20==1)&&(input==6)))))&&(a1==12)))))){ + a20 = 1; + a5 = 4; + a9 = 7; + a8 = 0; + a19 = 1; + a16 = 7; + a23 = 1; + return -1; + } else if(((!(a18==1)&&(((a6==1)&&((a21==10)&&((a17==2)&&(!(a24==1)&&((a19==2)&&((a1==13)&&(((input==1)&&(a20==1))&&(a9==10))))))))&&!(a8==1)))&&(!(a12==1)||((a5==4)&&(!(a8==1)&&((a11==1)&&(a16==11))))))){ + a1 = 12; + a16 = 7; + a19 = 1; + a26 = 0; + a3 = 1; + a9 = 7; + a6 = 1; + return -1; + } else if(((((!(a2==1)||((a17==2)&&(((((a3==1)||(a4==1))&&(a21==10))&&!(a4==1))&&(a1==13))))&&(a19==3))&&(a20==1))&&((((a9==9)&&((a11==1)&&(((a5==5)&&(input==5))&&(a3==1))))&&!(a8==1))&&(a16==8)))){ + a21 = 12; + a16 = 9; + a1 = 12; + a4 = 0; + a11 = 1; + a5 = 4; + a19 = 5; + return 22; + } else if((((!(a3==1)||((((((a19==5)&&((a6==1)&&(a11==1)))&&(a13==1))&&(a16==7))&&(a12==1))&&!(a18==1)))&&(a21==12))&&((a1==13)&&((((a23==1)&&((input==5)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))&&!(a20==1))&&(a17==2))))){ + a20 = 1; + a7 = 0; + a5 = 4; + a13 = 1; + a27 = 0; + a19 = 1; + a21 = 10; + a9 = 7; + a1 = 12; + return -1; + } else if((((a19==4)&&(!(a26==1)&&(((a1==12)&&((a23==1)||!(a3==1)))&&(a6==1))))&&(!(a20==1)&&(!(a26==1)&&(((!(a24==1)&&(((((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5)))&&(input==6))&&(a17==2))&&!(a26==1)))&&(a21==10))&&(a16==9)))))){ + a22 = 1; + a16 = 7; + a19 = 1; + a5 = 6; + a15 = 1; + a9 = 9; + a20 = 1; + a10 = 1; + return -1; + } else if(((((a28==1)&&((a17==2)&&(((a1==13)&&((a9==8)&&(input==3)))&&!(a18==1))))&&!(a20==1))&&(((a23==1)&&((a19==4)&&(((((a16==9)&&((a5==4)&&(a23==1)))||(a8==1))||!(a28==1))&&(a21==10))))&&(a12==1)))){ + if((a28==1)){ + a9 = 9; + a1 = 12; + a13 = 0; + a21 = 11; + a28 = 0; + a5 = 5; + a27 = 1; + }else{ + a8 = 1; + a5 = 5; + a19 = 2; + a9 = 10; + a1 = 12; + a28 = 0; + } + return 25; + } else if((((a26==1)||((((((a1==14)&&(!(a3==1)||(a23==1)))&&!(a4==1))&&!(a14==1))&&(a16==9))&&(a19==4)))&&((a13==1)&&((((a21==10)&&(((input==5)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(a17==2)))&&(a3==1))&&!(a20==1))))){ + a13 = 0; + a16 = 11; + a29 = 1; + a5 = 6; + a21 = 11; + a19 = 2; + a20 = 1; + a9 = 8; + a1 = 12; + a28 = 0; + return -1; + } else if((((a17==2)&&(((a21==10)&&(((a18==1)&&(((a24==1)&&(((((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==5))&&!(a6==1)))&&!(a11==1)))&&(a16==7)))&&(a20==1)))&&((a1==13)&&(!(a3==1)&&(((a2==1)&&(a19==4))&&!(a23==1)))))){ + a24 = 1; + a0 = 1; + a9 = 7; + a1 = 12; + a16 = 10; + a21 = 11; + a10 = 0; + a5 = 5; + a19 = 3; + return -1; + } else if(((((a16==11)&&((a17==2)&&(!(a3==1)||((((a19==1)&&(!(a13==1)||(a6==1)))||!(a3==1))&&(a21==11)))))&&(a20==1))&&((((((((a1==13)&&(a5==6))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==14))))&&(input==1))&&(a12==1))&&(a2==1))&&(a28==1)))){ + a21 = 10; + a11 = 1; + a9 = 7; + a16 = 7; + a1 = 12; + a4 = 0; + a5 = 4; + a18 = 0; + return -1; + } else if((((((a6==1)&&((((a20==1)&&((!(a27==1)&&(a11==1))&&(a1==12)))&&(a21==12))&&(a19==1)))&&!(a24==1))||!(a6==1))&&((((a17==2)&&(((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==4))&&(a16==8)))&&(a13==1))&&!(a14==1)))){ + a21 = 11; + a4 = 0; + a19 = 4; + a1 = 14; + a9 = 9; + a2 = 1; + a16 = 10; + a8 = 0; + a5 = 5; + return 22; + } else if((((a17==2)&&(((a20==1)&&((a11==1)&&((a16==7)&&((a19==5)&&(input==3)))))&&(a28==1)))&&(!(a26==1)&&((a4==1)||((((((a3==1)&&((a6==1)&&(a1==13)))&&(a9==8))&&!(a0==1))&&(a5==5))&&(a21==12)))))){ + a6 = 1; + a23 = 1; + a20 = 0; + a19 = 4; + a1 = 12; + a11 = 1; + a5 = 4; + a9 = 7; + a16 = 8; + a21 = 11; + return 26; + } else if(((((a5==4)&&(!(a13==1)||(!(a11==1)||((a28==1)&&(a9==11)))))&&(a1==12))&&(((((a3==1)&&((a17==2)&&(!(a14==1)&&(((!(a20==1)&&(input==1))&&!(a4==1))&&(a12==1)))))&&(a21==10))&&(a16==8))&&(a19==2)))){ + a16 = 7; + a9 = 7; + a7 = 0; + a20 = 1; + a24 = 0; + a19 = 1; + a26 = 0; + return -1; + } else if(((((a16==8)&&((a17==2)&&((a11==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5)))))&&(a1==12))&&((!(a12==1)||((!(a20==1)&&((a8==1)||((a19==3)&&((((a6==1)&&!(a7==1))&&(a9==9))&&!(a27==1)))))||(a18==1)))&&(a21==11)))){ + a8 = 0; + a18 = 0; + a13 = 1; + a19 = 4; + a5 = 4; + a20 = 1; + a9 = 8; + a16 = 7; + a1 = 14; + return 21; + } else if(((!(a4==1)&&((a12==1)&&((a16==7)&&((a2==1)&&!(a20==1)))))&&(((a13==1)&&((a28==1)&&((a2==1)&&((a17==2)&&((input==6)&&(((((a19==5)&&(((a1==14)&&(a5==5))&&(a9==11)))&&(a21==11))||(((a19==5)&&((a9==11)&&((a1==14)&&(a5==6))))&&(a21==11)))||((a21==12)&&((a19==1)&&(((a5==4)&&(a1==12))&&(a9==7))))))))))&&!(a8==1)))){ + a6 = 1; + a21 = 11; + a27 = 0; + a20 = 1; + a9 = 8; + a1 = 13; + a19 = 5; + a16 = 11; + a7 = 0; + a5 = 6; + return 26; + } else if(((((a9==7)&&((((((((a12==1)&&(a23==1))||(a7==1))||(a7==1))&&(a13==1))&&(a17==2))&&(a16==8))&&(a1==14)))&&(a19==1))&&(((a13==1)&&((a28==1)&&((a21==11)&&(!(a20==1)&&(input==3)))))&&(a5==5)))){ + a20 = 1; + a9 = 9; + a26 = 0; + a1 = 12; + a2 = 1; + a12 = 1; + a16 = 9; + return -1; + } else if((((!(a20==1)&&((a19==3)&&(!(a0==1)&&((a9==7)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6)))))))&&(a3==1))&&(((((a17==2)&&((((a16==8)&&((a11==1)&&(a3==1)))&&(a21==12))&&!(a7==1)))&&(a12==1))&&(a1==14))||(a7==1)))){ + a20 = 1; + a21 = 11; + a11 = 0; + a16 = 11; + a22 = 0; + a5 = 5; + a15 = 1; + a1 = 13; + return -1; + } else if((((a21==10)&&(((a9==10)&&(((a26==1)||((a19==4)&&((a26==1)||((a1==13)&&(a3==1)))))&&!(a0==1)))&&(a17==2)))&&((a3==1)&&(!(a0==1)&&((a20==1)&&((!(a4==1)&&(((a5==5)||(a5==6))&&(input==6)))&&(a16==9))))))){ + a5 = 6; + a21 = 12; + a0 = 0; + a19 = 3; + a28 = 1; + a8 = 0; + a16 = 7; + a9 = 8; + a1 = 12; + return 21; + } else if(((!(a4==1)&&(!(a27==1)&&(((!(a26==1)&&((((a21==12)&&((input==5)&&((a5==6)||((a5==4)||(a5==5)))))&&(a1==14))&&(a3==1)))&&!(a0==1))&&(a19==4))))&&((a16==10)&&(((((a13==1)&&(a20==1))&&(a17==2))&&(a13==1))&&(a9==8))))){ + a9 = 9; + a19 = 2; + a18 = 0; + a1 = 13; + a16 = 7; + a26 = 0; + a5 = 5; + a28 = 1; + a21 = 10; + return 25; + } else if(((((a13==1)&&(!(a24==1)&&(((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))&&(input==1))))&&(a1==13))&&((a20==1)&&((!(a26==1)&&(((a27==1)||(((a4==1)||((a21==11)&&((a17==2)&&(a13==1))))&&(a19==2)))||(a26==1)))&&(a16==9))))){ + a1 = 12; + a19 = 1; + a5 = 4; + a16 = 7; + a23 = 1; + a9 = 7; + a21 = 10; + a28 = 1; + return -1; + } else if((((a16==7)&&((a20==1)&&(!(a18==1)&&(((a19==2)&&((input==5)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))))&&!(a7==1)))))&&(((a1==13)&&((((a17==2)&&(((a23==1)&&(a6==1))&&(a28==1)))&&!(a27==1))&&(a21==11)))||!(a2==1)))){ + a9 = 7; + a21 = 10; + a5 = 4; + a19 = 1; + a1 = 12; + a14 = 0; + a13 = 1; + a0 = 0; + return -1; + } else if(((((a17==2)&&(!(a26==1)&&((((a21==11)&&(((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))&&(input==3)))&&!(a4==1))&&(a23==1))))&&(a16==11))&&((a20==1)&&(((a19==2)&&((((a1==14)&&(a13==1))||!(a28==1))||!(a23==1)))&&(a6==1))))){ + a27 = 0; + a1 = 12; + a5 = 4; + a21 = 10; + a0 = 0; + a9 = 7; + a16 = 7; + a19 = 1; + a18 = 0; + return -1; + } else if((((a6==1)&&(((a5==5)&&(((a16==8)&&((a23==1)&&(((input==3)&&(a17==2))&&(a12==1))))&&(a1==13)))&&(a19==4)))&&(!(a8==1)&&(!(a4==1)&&(((a9==7)&&((a21==12)&&((a12==1)&&(a6==1))))&&(a20==1)))))){ + a5 = 4; + a1 = 12; + a12 = 1; + a19 = 1; + a6 = 1; + a16 = 7; + a3 = 1; + a21 = 10; + return -1; + } else if((((a0==1)&&((a21==12)&&((a20==1)&&(!(a6==1)&&((a23==1)&&(a24==1))))))&&(!(a3==1)&&(!(a2==1)&&((a17==2)&&(((!(a23==1)&&((((a9==11)&&((a1==13)&&(a5==6)))||((a9==7)&&((a1==14)&&(a5==4))))&&(input==4)))&&(a19==3))&&(a16==10))))))){ + a15 = 1; + a19 = 2; + a16 = 7; + a5 = 6; + a25 = 1; + a27 = 1; + a21 = 10; + a9 = 10; + a1 = 12; + return -1; + } else if(((((((((a1==12)&&(((a12==1)&&(((a5==4)||(a5==5))&&(input==3)))&&(a2==1)))&&(a20==1))&&!(a8==1))&&(a21==12))&&!(a27==1))&&(a19==3))&&(((a17==2)&&(((a4==1)||((a9==11)&&(a2==1)))&&(a16==7)))&&!(a18==1)))){ + a11 = 1; + a0 = 0; + a5 = 4; + a6 = 1; + a9 = 7; + a19 = 1; + a21 = 10; + return -1; + } else if((((a12==1)&&(((a20==1)&&(((a17==2)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==4)))&&!(a26==1)))&&(a19==1)))&&(!(a24==1)&&(((!(a23==1)||(((a1==12)&&((a3==1)&&!(a27==1)))&&(a16==8)))&&(a21==12))||(a14==1))))){ + a5 = 4; + a16 = 7; + a21 = 10; + a13 = 1; + a9 = 7; + a23 = 1; + a7 = 0; + return -1; + } else if((((a21==10)&&(((a19==5)&&((a27==1)||((a11==1)||!(a11==1))))&&!(a20==1)))&&(((a1==13)&&((a9==11)&&((a17==2)&&(((a11==1)&&(((((a5==5)||(a5==6))&&(input==5))&&!(a7==1))&&(a16==9)))&&(a11==1)))))&&!(a7==1)))){ + if((a0==1)){ + a5 = 5; + a16 = 7; + a19 = 1; + a20 = 1; + a11 = 0; + a2 = 0; + }else{ + a22 = 1; + a20 = 1; + a6 = 0; + a14 = 1; + a9 = 10; + a1 = 12; + a16 = 7; + a19 = 2; + a5 = 4; + } + return -1; + } else if(((!(a4==1)&&(!(a13==1)||((a20==1)&&((a1==13)&&((a13==1)&&(((a3==1)&&(a19==2))||!(a23==1)))))))&&(!(a8==1)&&(((a6==1)&&((((((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(input==5))&&(a17==2))&&(a21==11)))&&(a16==9))))){ + a3 = 1; + a9 = 7; + a4 = 0; + a11 = 1; + a19 = 3; + a16 = 11; + a1 = 14; + a21 = 10; + a5 = 4; + return 21; + } else if(((((((((a1==13)&&(((a9==10)&&(input==4))&&(a21==11)))&&!(a20==1))&&(a19==1))&&(a5==6))&&(a12==1))&&(a6==1))&&((a3==1)&&((((((a16==7)&&(a12==1))&&(a17==2))||!(a28==1))||!(a2==1))||!(a12==1))))){ + a8 = 0; + a20 = 1; + a21 = 12; + a24 = 0; + a9 = 7; + a16 = 8; + a19 = 5; + a0 = 0; + a5 = 5; + return 26; + } else if((((a16==9)&&(!(a20==1)&&(((((a12==1)&&(a2==1))&&(a1==13))||(a24==1))||(a24==1))))&&(((!(a0==1)&&(((a21==12)&&((((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10)))&&(input==3))&&(a2==1)))&&!(a14==1)))&&(a17==2))&&(a19==4)))){ + a1 = 12; + a18 = 1; + a19 = 5; + a5 = 4; + a9 = 8; + a25 = 1; + a6 = 0; + a21 = 10; + return -1; + } else if((((a21==11)&&(((((!(a23==1)||((a13==1)&&!(a20==1)))&&(a1==14))&&(a17==2))&&!(a27==1))&&!(a8==1)))&&((a19==5)&&(!(a0==1)&&(((a16==10)&&((a6==1)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==4))))&&!(a8==1)))))){ + a9 = 7; + a15 = 1; + a11 = 0; + a4 = 1; + a16 = 7; + a5 = 5; + return -1; + } else if((((a21==11)&&((a19==1)&&(((a18==1)||((((a9==7)&&(!(a3==1)||(((a3==1)&&(a17==2))||(a8==1))))&&(a12==1))&&(a1==14)))&&!(a18==1))))&&((a5==5)&&((a13==1)&&(((input==1)&&(a16==8))&&!(a20==1)))))){ + a20 = 1; + a21 = 10; + a9 = 8; + a13 = 1; + a5 = 4; + a7 = 0; + a16 = 9; + a4 = 0; + return -1; + } else if((((a1==12)&&(((!(a18==1)&&((!(a27==1)&&(((input==4)&&(((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))&&!(a14==1)))&&(a20==1)))&&(a21==11))&&(a19==2)))&&((a23==1)&&(((a17==2)&&((a16==7)&&((a6==1)||!(a2==1))))&&!(a27==1))))){ + a14 = 0; + a3 = 1; + a9 = 7; + a21 = 10; + a2 = 1; + a19 = 1; + a5 = 4; + return -1; + } else if((((a6==1)&&(!(a8==1)&&(((a1==14)&&((a16==10)&&((input==6)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))))&&(a21==12))))&&((((((a17==2)&&(((a12==1)||!(a3==1))&&(a19==1)))&&(a12==1))&&!(a27==1))||!(a6==1))&&!(a20==1)))){ + a21 = 10; + a13 = 0; + a1 = 12; + a23 = 0; + a15 = 1; + a9 = 8; + a16 = 7; + a5 = 6; + a20 = 1; + return -1; + } else if(((!(a20==1)&&(((a28==1)&&((((a9==9)&&(input==3))&&(a16==7))&&!(a4==1)))&&(a1==12)))&&(((a21==12)&&((((((a7==1)||((a6==1)||!(a11==1)))||(a27==1))&&!(a18==1))&&(a5==5))&&(a17==2)))&&(a19==3)))){ + a19 = 1; + a21 = 10; + a28 = 1; + a9 = 7; + a5 = 4; + a4 = 0; + a14 = 0; + a20 = 1; + return -1; + } else if(((((a19==2)&&((a1==13)&&(a13==1)))&&(a21==10))&&(((a3==1)&&(!(a4==1)&&(((((((a17==2)&&((((a5==4)||(a5==5))&&(input==3))&&(a6==1)))&&(a9==9))&&(a20==1))&&!(a14==1))&&!(a14==1))&&(a11==1))))&&(a16==7)))){ + a5 = 6; + a1 = 14; + a14 = 0; + a11 = 1; + a26 = 0; + return 21; + } else if(((((!(a20==1)&&((a27==1)||((a2==1)&&(((a11==1)&&(a17==2))&&(a1==13)))))||!(a13==1))&&!(a4==1))&&(!(a24==1)&&((((a13==1)&&(((((a5==4)||(a5==5))&&(input==1))&&(a9==7))&&(a19==5)))&&(a21==11))&&(a16==8))))){ + if((a0==1)){ + a1 = 12; + a16 = 7; + a15 = 1; + a20 = 1; + a21 = 10; + a14 = 1; + a9 = 9; + a24 = 1; + a5 = 5; + a19 = 1; + }else{ + a21 = 10; + a5 = 5; + a19 = 1; + a14 = 1; + a1 = 12; + a16 = 7; + a29 = 1; + a20 = 1; + a9 = 8; + } + return -1; + } else if((((a1==14)&&((a5==5)&&((!(a28==1)||((((a9==7)&&(a3==1))&&(a20==1))&&!(a8==1)))&&(a16==7))))&&(!(a24==1)&&(((a21==12)&&(!(a14==1)&&(!(a4==1)&&((a17==2)&&((a19==5)&&(input==5))))))&&!(a24==1))))){ + a5 = 6; + a2 = 1; + a19 = 1; + a9 = 8; + a0 = 0; + a16 = 9; + a1 = 12; + a11 = 1; + return 22; + } else if((((!(a20==1)&&(!(a8==1)&&(((a1==13)&&((a6==1)&&(a21==10)))||!(a23==1))))||(a26==1))&&(((((a16==8)&&((((input==1)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&!(a14==1))&&(a17==2)))&&(a19==5))&&!(a4==1))&&!(a18==1)))){ + a8 = 0; + a9 = 8; + a1 = 12; + a19 = 4; + a5 = 6; + a20 = 1; + a16 = 9; + a3 = 1; + a27 = 0; + return 23; + } else if((((a21==12)&&((a12==1)&&((!(a0==1)&&((a19==2)&&((!(a20==1)&&(((input==3)&&(a5==5))&&(a12==1)))&&(a1==12))))&&!(a8==1))))&&((a17==2)&&(((a16==7)&&(((a13==1)||!(a28==1))||!(a13==1)))&&(a9==7))))){ + a21 = 10; + a5 = 4; + a18 = 0; + a20 = 1; + a19 = 1; + a2 = 1; + return -1; + } else if(((!(a8==1)&&((a23==1)&&((a12==1)&&((a12==1)&&((a16==11)&&(((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a9==8)))))))&&((((((a19==4)&&((a20==1)&&((a6==1)&&(a17==2))))&&(a1==13))&&(a21==12))||(a26==1))||(a18==1)))){ + a1 = 12; + a5 = 4; + a13 = 1; + a21 = 10; + a8 = 0; + a16 = 7; + a9 = 7; + a6 = 1; + a19 = 1; + return -1; + } else if((((a21==10)&&(((a5==4)&&((a1==13)&&((((a19==4)&&(input==5))&&(a16==9))&&!(a2==1))))&&(a20==1)))&&(!(a23==1)&&((a17==2)&&((((((a14==1)&&(a11==1))&&(a14==1))&&!(a11==1))&&(a9==11))&&(a26==1)))))){ + a19 = 1; + a10 = 0; + a9 = 7; + a16 = 7; + a22 = 1; + a1 = 12; + a8 = 1; + return 21; + } else if((((a17==2)&&((a19==2)&&((!(a2==1)||((a21==11)&&((((a3==1)&&(a9==10))&&!(a27==1))&&(a12==1))))&&!(a18==1))))&&((((a20==1)&&((((input==6)&&((a5==5)||(a5==6)))&&(a2==1))&&(a16==7)))&&(a3==1))&&(a1==14)))){ + a19 = 4; + a1 = 13; + a9 = 8; + a18 = 0; + a21 = 10; + a12 = 1; + a5 = 5; + a13 = 1; + a16 = 8; + return 23; + } else if(((((a19==3)&&(!(a20==1)&&((a16==8)&&(((((a5==5)||(a5==6))&&(input==6))&&(a0==1))&&(a7==1)))))&&(a17==2))&&((((a18==1)&&(((a9==9)&&(!(a23==1)&&((a6==1)&&(a24==1))))&&!(a2==1)))&&(a1==14))&&(a21==10)))){ + a6 = 0; + a4 = 1; + a20 = 1; + a18 = 1; + a9 = 11; + a16 = 7; + a19 = 1; + a1 = 13; + a5 = 6; + return -1; + } else if(((!(a23==1)||(((a17==2)&&((a1==13)&&(((a9==8)&&(a3==1))&&(a16==11))))&&(a5==6)))&&(!(a18==1)&&((a23==1)&&((a21==10)&&(!(a18==1)&&((!(a8==1)&&(((a20==1)&&(input==1))&&(a12==1)))&&(a19==2)))))))){ + a16 = 7; + a5 = 4; + a1 = 12; + a13 = 1; + a9 = 7; + a27 = 0; + a19 = 1; + a18 = 0; + return -1; + } else if(((((((a7==1)||(((a17==2)&&(a3==1))&&(a20==1)))&&(a21==10))&&(a28==1))&&!(a27==1))&&(!(a26==1)&&(((a16==9)&&(((a23==1)&&((input==6)&&((((a1==13)&&(a5==4))&&(a9==7))||((((a1==12)&&(a5==5))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==12)))))))&&(a12==1)))&&(a19==4))))){ + a23 = 1; + a9 = 11; + a19 = 2; + a5 = 6; + a1 = 14; + a6 = 1; + a16 = 7; + a12 = 1; + a21 = 12; + return 25; + } else if((((a28==1)&&(((!(a18==1)&&(((((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a1==13))&&(a21==11))&&(a19==1)))&&!(a4==1))&&(a20==1)))&&((((((a17==2)&&((a13==1)||(a26==1)))&&(a23==1))&&!(a26==1))&&(a16==7))&&(a9==7)))){ + a7 = 0; + a21 = 10; + a8 = 0; + a18 = 0; + a5 = 4; + a1 = 12; + return -1; + } else if(((((((!(a13==1)||((!(a28==1)||(((a2==1)&&(a21==10))&&(a17==2)))&&!(a4==1)))&&(a28==1))&&!(a20==1))&&(a1==12))&&(a19==4))&&(((!(a26==1)&&(((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a5==4)&&(a9==10)))&&(input==5)))&&(a16==7))&&(a3==1)))){ + a9 = 7; + a18 = 0; + a5 = 4; + a6 = 1; + a19 = 1; + a20 = 1; + a12 = 1; + return -1; + } else if(((!(a12==1)||(((a6==1)&&((((a24==1)||(a13==1))&&!(a20==1))||!(a23==1)))&&(a1==13)))&&((!(a18==1)&&(((a17==2)&&((a16==9)&&((a19==4)&&(((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a5==4)&&(a9==9)))&&(input==6)))))&&(a21==10)))&&(a23==1)))){ + a2 = 0; + a20 = 1; + a5 = 5; + a19 = 1; + a9 = 8; + a16 = 7; + a10 = 1; + return 26; + } else if((((a13==1)&&((a19==1)&&((((((a21==12)&&(input==1))&&(a11==1))&&(a3==1))&&(a17==2))&&(a16==8))))&&(!(a26==1)&&(!(a27==1)&&((a1==13)&&((a9==10)&&((a5==4)&&(!(a20==1)&&((a11==1)&&(a23==1)))))))))){ + a20 = 1; + a16 = 7; + a4 = 1; + a14 = 1; + a5 = 6; + a21 = 10; + a15 = 0; + a9 = 9; + a1 = 12; + return 21; + } else if((((a16==7)&&((a6==1)&&((a21==12)&&(((a23==1)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==4)))&&(a19==4)))))&&((a17==2)&&((((!(a27==1)&&(((a23==1)&&(a13==1))&&!(a18==1)))&&(a13==1))&&(a20==1))&&(a1==12))))){ + a28 = 1; + a18 = 0; + a5 = 4; + a9 = 7; + a3 = 1; + a19 = 1; + a21 = 10; + return -1; + } else if((((!(a11==1)&&((((a16==11)&&(((a4==1)&&((input==6)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))))&&(a4==1)))&&(a17==2))&&(a26==1)))&&(a21==12))&&((((a1==14)&&(!(a28==1)&&((a18==1)&&(a28==1))))&&(a19==3))&&(a20==1)))){ + a13 = 0; + a2 = 0; + a5 = 6; + a19 = 1; + a9 = 9; + a21 = 10; + a25 = 1; + a16 = 7; + return 21; + } else if(((((a18==1)||(((a1==13)&&((a0==1)||((a6==1)&&(a19==3))))&&(a21==10)))&&(a17==2))&&(((a6==1)&&(((a13==1)&&(((a6==1)&&(((((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4)))&&(input==3)))&&(a16==11)))&&!(a20==1)))&&(a23==1)))){ + if((a12==1)){ + a21 = 12; + a10 = 0; + a14 = 1; + a16 = 10; + a25 = 1; + a9 = 7; + a1 = 12; + a5 = 4; + }else{ + a1 = 12; + a10 = 1; + a16 = 9; + a9 = 11; + a5 = 4; + a19 = 5; + a8 = 1; + a22 = 0; + } + return 21; + } else if((((a3==1)&&((!(a13==1)||((a28==1)&&(a6==1)))||!(a12==1)))&&(((a19==2)&&((a21==11)&&((a17==2)&&(((((a16==11)&&((input==5)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))))&&!(a24==1))&&(a1==14))&&(a13==1)))))&&(a20==1)))){ + a28 = 1; + a21 = 10; + a0 = 0; + a19 = 1; + a6 = 1; + a1 = 12; + a16 = 7; + a5 = 4; + a9 = 7; + return -1; + } else if((((a16==11)&&(((((a24==1)||(((a24==1)||(a6==1))&&(a19==4)))&&(a11==1))&&!(a20==1))&&(a17==2)))&&((((a1==13)&&((a21==10)&&(!(a26==1)&&(((input==5)&&(a9==8))&&(a11==1)))))&&!(a4==1))&&(a5==6)))){ + a5 = 4; + a19 = 5; + a22 = 0; + a27 = 1; + a15 = 1; + a16 = 7; + a21 = 12; + a1 = 14; + return -1; + } else if(((((!(a14==1)&&(((a19==3)&&(((a2==1)&&(((((a5==5)&&(a1==14))&&(a9==7))||(((a9==11)&&((a5==6)&&(a1==13)))||(((a5==4)&&(a1==14))&&(a9==7))))&&(input==3)))&&(a17==2)))&&(a2==1)))&&(a23==1))&&(a16==10))&&((a21==10)&&(!(a20==1)&&((a28==1)&&(!(a7==1)&&(a13==1))))))){ + if((a29==1)){ + a5 = 4; + a19 = 4; + a21 = 11; + a22 = 1; + a9 = 8; + a16 = 7; + a1 = 14; + }else{ + a9 = 8; + a5 = 4; + a4 = 1; + a6 = 0; + a21 = 11; + a25 = 1; + a19 = 5; + a16 = 9; + a1 = 13; + } + return 25; + } else if((((a21==10)&&((a1==12)&&(((!(a28==1)&&((((a23==1)&&(a24==1))&&(a27==1))&&(a17==2)))&&(a24==1))&&(a20==1))))&&((a16==10)&&((a19==3)&&((a7==1)&&(((a9==11)&&(((a5==5)||(a5==6))&&(input==3)))&&!(a23==1))))))){ + a14 = 1; + a26 = 1; + a5 = 6; + a9 = 8; + a19 = 4; + a28 = 0; + a16 = 8; + a20 = 0; + return 25; + } else if(((((((a14==1)||((a19==3)&&((a1==13)&&((a28==1)&&(a6==1)))))||(a24==1))&&(a21==10))&&!(a20==1))&&((((a17==2)&&((!(a7==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a16==9)))&&(a6==1)))&&!(a27==1))&&(a9==11)))){ + if((a0==1)){ + a9 = 7; + a21 = 11; + a4 = 1; + a28 = 0; + a25 = 0; + a5 = 5; + a1 = 12; + }else{ + a27 = 1; + a1 = 14; + a5 = 4; + a19 = 1; + a7 = 1; + a20 = 1; + a16 = 7; + a6 = 0; + } + return -1; + } else if((((((a21==11)&&(((a19==5)&&(!(a7==1)&&((((a20==1)&&(input==3))&&(a9==7))&&(a23==1))))&&!(a4==1)))&&(a16==10))&&(a17==2))&&((((a2==1)&&(!(a12==1)||((a23==1)&&(a5==5))))&&(a3==1))&&(a1==14)))){ + a19 = 2; + a16 = 7; + a1 = 13; + a28 = 1; + a9 = 9; + a21 = 10; + a6 = 1; + return -1; + } else if(((((((((input==3)&&(((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))&&!(a24==1))&&(a2==1))&&!(a20==1))&&(a19==4))&&(a17==2))&&(((a3==1)&&((a16==10)&&((!(a0==1)&&(!(a24==1)&&(!(a26==1)&&(a6==1))))&&(a21==10))))&&(a1==12)))){ + a29 = 1; + a5 = 4; + a1 = 14; + a9 = 11; + a20 = 1; + a19 = 1; + a14 = 1; + a16 = 7; + a8 = 1; + return -1; + } else if((((a9==10)&&(((((a2==1)&&(((a5==4)||(a5==5))&&(input==5)))&&(a1==14))&&(a19==5))&&!(a20==1)))&&(((((a0==1)||(((((a13==1)&&(a21==11))&&(a16==8))||(a0==1))&&(a23==1)))||(a14==1))&&(a13==1))&&(a17==2)))){ + if((a27==1)){ + a9 = 7; + a25 = 0; + a1 = 13; + a16 = 7; + a19 = 1; + a5 = 5; + a20 = 1; + a10 = 1; + a21 = 10; + a8 = 1; + }else{ + a25 = 1; + a2 = 0; + a19 = 4; + a5 = 6; + a20 = 1; + a18 = 1; + a21 = 10; + a9 = 7; + } + return -1; + } else if((((((a11==1)&&(((((a1==12)&&((a11==1)&&(a21==12)))||(a18==1))&&(a9==10))&&(a19==5)))&&(a16==7))&&(a5==5))&&(((((((a20==1)&&(input==6))&&(a6==1))&&(a17==2))&&(a23==1))&&!(a0==1))&&(a6==1)))){ + if((a10==1)){ + a16 = 8; + a21 = 11; + a20 = 0; + a24 = 0; + a13 = 1; + a1 = 13; + a4 = 0; + a5 = 4; + a19 = 2; + }else{ + a9 = 11; + a19 = 4; + a16 = 9; + a21 = 11; + a6 = 1; + a5 = 6; + a14 = 0; + a23 = 1; + } + return 22; + } else if((((a6==1)&&((a3==1)&&((a1==12)&&((a19==1)&&(!(a20==1)&&((a16==9)&&(((((a5==5)||(a5==6))&&(input==6))&&!(a7==1))&&(a3==1))))))))&&((a0==1)||((a21==11)&&((a17==2)&&((a9==10)&&((a13==1)&&!(a4==1)))))))){ + a21 = 10; + a1 = 13; + a5 = 4; + a9 = 9; + a20 = 1; + a16 = 7; + a4 = 1; + a22 = 0; + a14 = 1; + return -1; + } else if((((a16==10)&&(!(a23==1)||((a21==11)&&((a1==12)&&(!(a12==1)||((!(a12==1)||((a20==1)&&(a28==1)))&&(a17==2)))))))&&((a19==5)&&((!(a7==1)&&(((((a5==4)||(a5==5))&&(input==1))&&(a9==11))&&(a6==1)))&&(a28==1))))){ + a5 = 5; + a1 = 13; + a12 = 1; + a16 = 7; + a19 = 4; + a4 = 0; + a21 = 10; + a9 = 10; + a18 = 0; + return 25; + } else if(((((a1==12)&&((a19==3)&&((a9==10)&&(!(a2==1)||((a28==1)&&(a17==2))))))&&(a20==1))&&((a16==8)&&((!(a27==1)&&((a3==1)&&((((a3==1)&&(((a5==5)||(a5==6))&&(input==4)))&&!(a26==1))&&!(a0==1))))&&(a21==12))))){ + a5 = 4; + a9 = 7; + a21 = 10; + a13 = 1; + a28 = 1; + a19 = 1; + a16 = 7; + a14 = 0; + return -1; + } else if((((a1==14)&&((((a24==1)||(!(a20==1)&&((a28==1)&&(a23==1))))&&(a19==4))&&(a16==10)))&&((a21==11)&&(((a17==2)&&((a9==11)&&((((a6==1)&&((input==5)&&((a5==4)||(a5==5))))&&(a6==1))&&(a2==1))))&&(a3==1))))){ + a21 = 10; + a29 = 0; + a9 = 9; + a5 = 5; + a20 = 1; + a16 = 7; + a25 = 1; + a22 = 1; + a19 = 1; + return 21; + } else if(((((((a12==1)&&((input==6)&&(a19==5)))&&!(a27==1))&&!(a14==1))&&(a20==1))&&((a16==8)&&((a17==2)&&((a1==13)&&((a21==10)&&((a9==7)&&(((((a13==1)&&(a11==1))&&(a23==1))&&(a5==4))||(a24==1))))))))){ + a4 = 0; + a1 = 12; + a5 = 6; + a18 = 0; + a24 = 0; + a9 = 9; + return -1; + } else if((((a3==1)&&((a6==1)&&((a6==1)&&((((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==3))&&(a1==13))&&(a17==2)))))&&(((((a21==10)&&(((a20==1)&&((a3==1)&&(a16==11)))&&(a19==5)))||!(a12==1))&&(a11==1))||!(a6==1)))){ + a9 = 7; + a16 = 7; + a0 = 0; + a28 = 1; + a5 = 4; + a19 = 1; + a12 = 1; + a1 = 12; + return -1; + } else if(((!(a12==1)||(((((a2==1)&&(a2==1))||!(a6==1))&&(a16==10))||!(a6==1)))&&((((a9==10)&&(((a1==14)&&((a28==1)&&(((!(a20==1)&&(input==5))&&(a17==2))&&(a19==4))))&&(a5==5)))&&(a21==10))&&(a2==1)))){ + a21 = 12; + a9 = 8; + a12 = 0; + a19 = 5; + a10 = 1; + a3 = 0; + a5 = 6; + a16 = 7; + return -1; + } else if((((a6==1)&&(((((((a20==1)&&(a28==1))&&(a1==14))&&!(a27==1))&&!(a18==1))||!(a28==1))&&!(a4==1)))&&(((a16==11)&&(((((a9==10)&&((input==6)&&((a5==4)||(a5==5))))&&!(a26==1))&&(a19==3))&&(a21==12)))&&(a17==2)))){ + a5 = 6; + a19 = 1; + a28 = 1; + a16 = 8; + a9 = 8; + a0 = 0; + a8 = 0; + return 21; + } else if(((((a0==1)||((a21==11)&&(!(a7==1)&&(((a17==2)&&(!(a13==1)||((a6==1)&&(a19==5))))&&(a1==13)))))&&(a20==1))&&(((a9==9)&&((!(a27==1)&&(((input==3)&&(a5==6))&&!(a14==1)))&&(a16==11)))&&!(a26==1)))){ + a5 = 4; + a9 = 7; + a28 = 1; + a19 = 3; + a3 = 1; + a6 = 1; + a21 = 12; + return 22; + } else if((((a26==1)||((((a12==1)&&!(a20==1))&&(a1==13))||(a0==1)))&&(((a19==4)&&((a17==2)&&((!(a18==1)&&(((((a21==12)&&((a9==9)&&(input==5)))&&(a13==1))&&(a5==4))&&(a28==1)))&&(a16==9))))&&(a13==1)))){ + a21 = 10; + a16 = 7; + a20 = 1; + a12 = 0; + a9 = 11; + a5 = 6; + a19 = 1; + a27 = 1; + return -1; + } else if(((((((!(a14==1)&&(!(a14==1)&&(!(a20==1)&&(!(a0==1)&&((((input==4)&&((((a1==12)&&(a5==6))&&(a9==11))||((a9==7)&&((a1==13)&&(a5==4)))))&&!(a26==1))&&(a17==2))))))&&(a21==10))&&!(a7==1))&&(a3==1))&&(a16==11))&&((a19==1)&&(a11==1)))){ + a20 = 1; + a5 = 4; + a24 = 1; + a19 = 4; + a1 = 13; + a25 = 1; + a9 = 7; + a21 = 11; + a14 = 1; + return -1; + } else if((((a12==1)&&((a9==8)&&((a16==11)&&(!(a27==1)&&(((a1==13)&&((((((a5==4)||(a5==5))&&(input==3))&&(a6==1))&&(a6==1))&&(a12==1)))&&(a20==1))))))&&(((((a6==1)&&(a17==2))&&(a21==11))||!(a13==1))&&(a19==3)))){ + a16 = 9; + a9 = 9; + a24 = 0; + a18 = 0; + a1 = 12; + a12 = 1; + a21 = 12; + a5 = 5; + return 21; + } else if(((!(a26==1)&&((((a12==1)&&(((input==3)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(a21==11)))&&(a20==1))&&(a16==11)))&&((a3==1)&&((a1==13)&&((a17==2)&&(!(a3==1)||((a6==1)&&(!(a8==1)&&((a19==2)&&(a11==1)))))))))){ + a16 = 7; + a5 = 4; + a9 = 7; + a18 = 0; + a21 = 10; + a1 = 12; + a12 = 1; + a19 = 1; + a14 = 0; + return -1; + } else if((((a19==3)&&(((a21==11)&&(!(a27==1)&&(!(a24==1)&&(((a11==1)&&(((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==3))&&(a1==13)))&&!(a26==1)))))&&!(a20==1)))&&(((a16==7)&&((a17==2)&&((a11==1)&&(a13==1))))||(a27==1)))){ + a9 = 7; + a12 = 1; + a27 = 0; + a20 = 1; + a21 = 10; + a19 = 1; + a1 = 12; + a28 = 1; + a5 = 4; + return -1; + } else if((((((a16==9)&&(((a3==1)||!(a13==1))||(a18==1)))&&(a13==1))||(a0==1))&&((((!(a8==1)&&(((((a19==1)&&((a9==7)&&((a1==12)&&(a5==5))))&&(a21==12))||(((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==5))&&(a21==11))||((a21==12)&&(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==1)))))&&(input==6)))&&(a17==2))&&(a20==1))&&!(a24==1)))){ + a5 = 5; + a19 = 1; + a0 = 0; + a9 = 8; + a21 = 10; + a1 = 12; + a16 = 10; + a7 = 0; + a23 = 1; + return 21; + } else if(((((a11==1)&&(((a16==8)&&(a3==1))&&(a12==1)))&&(a20==1))&&(((!(a7==1)&&((a17==2)&&(!(a4==1)&&(((((a19==1)&&(((a5==6)&&(a1==14))&&(a9==11)))||((a19==2)&&((a9==7)&&((a1==12)&&(a5==4)))))&&(input==5))&&(a21==10)))))&&!(a4==1))&&!(a24==1)))){ + a16 = 7; + a1 = 12; + a23 = 1; + a7 = 0; + a13 = 1; + a5 = 4; + a19 = 1; + a9 = 7; + return -1; + } else if((((a21==10)&&((a19==5)&&((((a11==1)||!(a11==1))&&(a9==9))&&!(a20==1))))&&((a1==14)&&(((!(a27==1)&&(((a17==2)&&(((a11==1)&&((a16==9)&&(input==6)))&&(a3==1)))&&(a6==1)))&&(a28==1))&&(a5==6))))){ + a19 = 3; + a29 = 0; + a1 = 13; + a15 = 0; + a22 = 1; + a9 = 10; + a21 = 12; + return -1; + } else if((((a8==1)||(((a21==11)&&((((a17==2)&&(!(a7==1)&&(a12==1)))&&!(a8==1))||(a26==1)))||(a24==1)))&&(((!(a8==1)&&(!(a20==1)&&((input==5)&&((((a9==11)&&((a5==6)&&(a1==13)))||(((a5==4)&&(a1==14))&&(a9==7)))||(((a5==5)&&(a1==14))&&(a9==7))))))&&(a19==2))&&(a16==10)))){ + if((a3==1)){ + a19 = 1; + a2 = 0; + a5 = 5; + a9 = 11; + a1 = 12; + a23 = 0; + a14 = 1; + a16 = 7; + a21 = 12; + a20 = 1; + }else{ + a28 = 0; + a20 = 1; + a13 = 0; + a19 = 1; + a21 = 10; + a5 = 5; + a9 = 9; + a1 = 12; + a16 = 7; + a29 = 1; + } + return -1; + } else if((((a28==1)&&((a7==1)||((a17==2)&&(!(a6==1)||(((a16==7)&&((a23==1)&&!(a26==1)))&&(a20==1))))))&&((((a21==12)&&((input==3)&&(((a19==1)&&((a9==11)&&((a1==14)&&(a5==6))))||((a19==2)&&(((a5==4)&&(a1==12))&&(a9==7))))))&&(a3==1))&&!(a4==1)))){ + a9 = 7; + a0 = 0; + a24 = 0; + a21 = 10; + a19 = 1; + a1 = 12; + a27 = 0; + a5 = 4; + return -1; + } else if(((((((((a12==1)&&((a1==14)&&((a16==10)&&(((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4)))&&(input==6)))))&&(a17==2))&&(a20==1))&&!(a18==1))&&(a21==12))&&!(a27==1))&&(((((a3==1)&&(a13==1))||!(a13==1))||!(a12==1))&&(a19==5)))){ + a5 = 4; + a16 = 7; + a11 = 1; + a19 = 1; + a12 = 1; + a4 = 0; + a9 = 7; + a21 = 10; + a1 = 12; + return -1; + } else if((((a21==11)&&((a17==2)&&((a1==12)&&(!(a7==1)&&((a19==1)&&(!(a13==1)||(!(a12==1)||(a6==1))))))))&&((a16==9)&&((!(a27==1)&&((a23==1)&&(((((a5==4)||(a5==5))&&(input==6))&&(a9==9))&&!(a14==1))))&&(a20==1))))){ + a9 = 8; + a21 = 10; + a11 = 1; + a20 = 0; + a5 = 6; + a7 = 0; + a16 = 8; + a8 = 0; + return 25; + } else if(((((((a9==9)&&(((a14==1)&&(((a12==1)&&(a5==5))&&(a21==12)))&&(a1==14)))&&(a16==9))&&(a24==1))&&!(a11==1))&&((!(a23==1)&&((a20==1)&&(!(a12==1)&&(((a17==2)&&(input==4))&&(a19==2)))))&&!(a3==1)))){ + a25 = 0; + a9 = 11; + a19 = 1; + a11 = 0; + a21 = 10; + a29 = 1; + a16 = 7; + return -1; + } else if(((((!(a20==1)&&((((a12==1)&&(a9==10))&&(a1==13))&&(a16==7)))&&(a3==1))&&!(a27==1))&&((a3==1)&&((((a11==1)&&((a21==11)&&(((((a5==4)||(a5==5))&&(input==4))&&(a17==2))&&(a19==2))))&&(a28==1))&&(a6==1))))){ + a9 = 7; + a19 = 1; + a20 = 1; + a0 = 0; + a1 = 12; + a12 = 1; + a5 = 4; + a8 = 0; + a21 = 10; + return -1; + } else if((((((a19==3)&&(((a11==1)&&(a21==12))&&!(a20==1)))||(a8==1))&&(a23==1))&&((((a17==2)&&(((a13==1)&&((!(a26==1)&&((a16==9)&&((input==5)&&((a5==6)||((a5==4)||(a5==5))))))&&(a11==1)))&&(a6==1)))&&(a1==12))&&(a9==11)))){ + a1 = 13; + a22 = 0; + a16 = 11; + a9 = 7; + a5 = 5; + a19 = 2; + a25 = 1; + a26 = 1; + a21 = 10; + return 23; + } else if(((((a21==11)&&(!(a27==1)&&((a9==11)&&((a1==13)&&((a23==1)&&((a23==1)&&(a19==2)))))))||(a4==1))&&(!(a26==1)&&(((a3==1)&&((a11==1)&&((((input==6)&&(a16==10))&&(a17==2))&&(a20==1))))&&(a5==6))))){ + a9 = 7; + a16 = 9; + a2 = 1; + a11 = 1; + a19 = 3; + a5 = 4; + a14 = 0; + return -1; + } else if((((((((!(a8==1)&&((((input==5)&&(a1==13))&&(a12==1))&&(a17==2)))&&(a3==1))&&(a9==10))&&(a3==1))&&(a5==6))&&(a3==1))&&((a19==1)&&((!(a20==1)&&(((a3==1)||(a18==1))&&(a16==9)))&&(a21==11))))){ + a19 = 3; + a20 = 1; + a23 = 0; + a1 = 14; + a18 = 1; + a12 = 0; + a9 = 11; + a21 = 10; + a16 = 11; + return -1; + } else if((((a1==12)&&(((!(a20==1)&&((a28==1)&&((a13==1)&&(a6==1))))&&(a19==2))&&(a21==10)))&&((a9==8)&&((a16==10)&&((a17==2)&&((((!(a14==1)&&((input==4)&&((a5==4)||(a5==5))))&&!(a4==1))&&!(a14==1))&&(a6==1))))))){ + a5 = 5; + a16 = 7; + a9 = 9; + a1 = 13; + a20 = 1; + a7 = 1; + a25 = 1; + a19 = 3; + a21 = 11; + a22 = 0; + return 25; + } else if((((a9==8)&&(((a3==1)&&(((a19==1)&&((a1==13)&&((a2==1)&&((input==4)&&(a16==7)))))&&!(a0==1)))&&(a21==12)))&&((a5==4)&&((a17==2)&&(((!(a0==1)&&((a28==1)||!(a13==1)))||!(a6==1))&&(a20==1)))))){ + a28 = 1; + a19 = 5; + a5 = 6; + a16 = 8; + a9 = 10; + a12 = 1; + return 26; + } else if((((((a18==1)||((a17==2)&&(((a9==11)&&(a13==1))&&(a5==5))))||!(a6==1))&&!(a0==1))&&((!(a4==1)&&(!(a0==1)&&((a21==12)&&((a16==7)&&(((a11==1)&&((a19==4)&&(input==4)))&&(a1==14))))))&&(a20==1)))){ + a1 = 12; + a9 = 7; + a5 = 4; + a7 = 0; + a19 = 1; + a26 = 0; + a21 = 10; + return -1; + } else if(((((!(a0==1)&&((a16==8)&&((a28==1)&&(a17==2))))||(a14==1))&&(a19==5))&&(((a9==9)&&(((a28==1)&&(!(a7==1)&&(!(a4==1)&&(((a3==1)&&(((a5==5)||(a5==6))&&(input==5)))&&(a1==12)))))&&!(a20==1)))&&(a21==11)))){ + a19 = 1; + a23 = 1; + a9 = 7; + a21 = 10; + a4 = 0; + a20 = 1; + a8 = 0; + a5 = 4; + a16 = 7; + return -1; + } else if(((((a19==2)&&((a1==12)&&(a12==1)))&&(a16==7))&&((((((!(a24==1)&&(((((((a5==4)||(a5==5))&&(input==5))&&(a2==1))&&(a12==1))&&!(a14==1))&&(a17==2)))&&(a12==1))&&!(a20==1))&&!(a0==1))&&(a21==12))&&(a9==8)))){ + a20 = 1; + a5 = 4; + a19 = 1; + a6 = 1; + a7 = 0; + a21 = 10; + a8 = 0; + a9 = 7; + return -1; + } else if((((((a17==2)&&(!(a14==1)&&(((input==5)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(a16==8))))&&(a21==11))&&(a23==1))&&((a14==1)||((((((a14==1)||((a12==1)&&(a1==13)))&&(a19==2))&&(a20==1))&&(a23==1))&&!(a8==1))))){ + a21 = 10; + a1 = 12; + a9 = 7; + a19 = 1; + a5 = 4; + a12 = 1; + a24 = 0; + a16 = 7; + a23 = 1; + return -1; + } else if((((((((a1==14)&&((a5==5)&&(a3==1)))&&(a21==11))&&!(a7==1))||(a14==1))&&!(a8==1))&&((a11==1)&&((a12==1)&&((a17==2)&&((((a9==9)&&((!(a20==1)&&(input==5))&&(a19==5)))&&(a16==10))&&(a23==1))))))){ + a20 = 1; + a5 = 6; + a16 = 7; + a9 = 8; + a21 = 10; + a19 = 1; + a24 = 1; + a10 = 1; + a11 = 0; + return -1; + } else if((((a1==12)&&((a17==2)&&((a21==11)&&(!(a4==1)&&((a28==1)&&(a23==1))))))&&(((a19==1)&&(((((a2==1)&&(((((a5==4)||(a5==5))&&(input==6))&&!(a24==1))&&!(a14==1)))&&(a3==1))&&!(a20==1))&&(a16==10)))&&(a9==8)))){ + a9 = 7; + a5 = 5; + a1 = 14; + a16 = 8; + a19 = 5; + a6 = 0; + a4 = 1; + a21 = 10; + a10 = 0; + return 21; + } else if(((!(a7==1)&&((a16==7)&&((!(a7==1)&&((a21==11)&&((((a5==6)&&(input==6))&&(a17==2))&&(a19==1))))&&(a2==1))))&&(((!(a20==1)&&((!(a27==1)&&((a9==11)&&(a13==1)))&&!(a7==1)))&&(a1==14))||!(a3==1)))){ + a20 = 1; + a23 = 1; + a21 = 10; + a9 = 7; + a4 = 0; + a6 = 1; + a1 = 12; + a5 = 4; + return -1; + } else if((((((a12==1)&&(((((a16==10)&&((a21==10)&&((input==1)&&((a5==6)||((a5==4)||(a5==5))))))&&(a3==1))&&!(a20==1))&&(a9==9)))&&(a17==2))&&(a12==1))&&(((a19==3)&&(!(a23==1)||((a1==13)&&((a23==1)||(a4==1)))))&&!(a26==1)))){ + a3 = 0; + a20 = 1; + a15 = 1; + a1 = 12; + a0 = 1; + a9 = 10; + a19 = 2; + a16 = 8; + a5 = 5; + return 21; + } else if((((((a5==5)&&((((((a6==1)&&(a6==1))&&(a21==10))&&!(a24==1))&&(a9==8))||(a18==1)))&&(a16==10))||(a4==1))&&(((a3==1)&&((a20==1)&&((a3==1)&&((a19==2)&&((input==4)&&(a1==14))))))&&(a17==2)))){ + a9 = 7; + a19 = 1; + a3 = 1; + a16 = 7; + a1 = 12; + a12 = 1; + a5 = 4; + a11 = 1; + return -1; + } else if(((((a9==7)&&((a1==12)&&((((!(a7==1)&&((((input==4)&&(a16==10))&&(a17==2))&&!(a18==1)))&&!(a4==1))&&!(a14==1))&&(a3==1))))&&(a19==3))&&(((((a12==1)&&!(a27==1))&&!(a20==1))&&(a5==5))&&(a21==11)))){ + if((a3==1)){ + a21 = 12; + a19 = 1; + a3 = 0; + a20 = 1; + a9 = 10; + a12 = 0; + a16 = 11; + a1 = 13; + a29 = 0; + }else{ + a16 = 8; + a13 = 0; + a9 = 8; + a19 = 4; + a10 = 1; + a26 = 1; + } + return -1; + } else if(((((a19==5)&&(((a16==9)&&(!(a2==1)||(!(a24==1)&&(!(a20==1)&&(a12==1)))))&&!(a4==1)))&&(a21==12))&&(((a6==1)&&((((((a17==2)&&(input==5))&&(a1==14))&&(a9==11))&&!(a24==1))&&!(a27==1)))&&(a5==6)))){ + a6 = 0; + a16 = 7; + a21 = 10; + a1 = 13; + a22 = 0; + a19 = 1; + a20 = 1; + a5 = 4; + a15 = 1; + return 26; + } else if(((!(a18==1)&&(!(a8==1)&&((a19==2)&&(((input==4)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(a17==2)))))&&((a1==12)&&((((a16==10)&&((!(a28==1)||(((a21==11)&&(a3==1))&&!(a20==1)))||!(a13==1)))||!(a23==1))||!(a3==1))))){ + a9 = 8; + a21 = 10; + a16 = 7; + a5 = 4; + a25 = 1; + a15 = 0; + a20 = 1; + a23 = 0; + return -1; + } else if(((!(a4==1)&&(!(a28==1)||((a18==1)||((a17==2)&&((((((a3==1)&&(a20==1))&&(a1==12))&&(a9==7))&&(a11==1))&&!(a8==1))))))&&((a5==4)&&(((((a16==8)&&(input==4))&&(a19==1))&&!(a26==1))&&(a21==12))))){ + a21 = 10; + a23 = 1; + a16 = 7; + a13 = 1; + return -1; + } else if((((!(a20==1)&&(((a21==12)&&((a3==1)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==6))))&&(a19==1)))&&!(a18==1))&&(((((((a16==8)&&((a11==1)&&!(a0==1)))&&(a1==14))&&!(a27==1))&&(a17==2))||(a0==1))&&(a28==1)))){ + a1 = 12; + a25 = 0; + a9 = 11; + a26 = 1; + a5 = 5; + a15 = 0; + a20 = 1; + a16 = 7; + return -1; + } else if(((!(a18==1)&&(!(a27==1)&&((a20==1)&&((((a17==2)&&((a5==6)&&((a19==5)&&(input==5))))&&(a16==10))&&(a28==1)))))&&((a11==1)&&((a2==1)&&(((a1==14)&&(((a11==1)&&(a21==10))&&(a9==11)))&&(a13==1)))))){ + a9 = 7; + a6 = 1; + a5 = 4; + a16 = 7; + a19 = 1; + a1 = 12; + a2 = 1; + a24 = 0; + return -1; + } else if((((((input==6)&&((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4))))&&(a1==14))&&!(a24==1))&&((a20==1)&&((a21==10)&&(!(a18==1)&&((!(a12==1)||((a17==2)&&((!(a12==1)||((a16==9)&&((a19==4)&&(a13==1))))||!(a28==1))))||(a18==1))))))){ + a18 = 0; + a9 = 11; + a1 = 13; + a19 = 2; + a6 = 1; + a5 = 6; + a16 = 11; + a4 = 0; + return 23; + } else if(((!(a0==1)&&((((input==1)&&(a20==1))&&(a1==14))&&!(a14==1)))&&((a9==7)&&(((a26==1)||((((((((a3==1)&&(a23==1))||!(a23==1))||(a14==1))&&(a17==2))&&(a16==7))&&(a5==4))&&(a19==3)))&&(a21==11))))){ + a14 = 0; + a19 = 1; + a21 = 10; + a1 = 12; + a6 = 1; + return -1; + } else if(((((((((a17==2)&&(a2==1))&&(a16==7))&&!(a14==1))&&(a1==12))&&(a5==5))&&(a19==1))&&(((!(a7==1)&&(!(a0==1)&&((!(a7==1)&&((a28==1)&&((input==4)&&(a9==7))))&&!(a0==1))))&&(a21==11))&&!(a20==1)))){ + a21 = 10; + a11 = 1; + a23 = 1; + a12 = 1; + a20 = 1; + a5 = 4; + return -1; + } else if((((a13==1)&&((!(a24==1)&&(((!(a26==1)&&(((a1==12)&&(input==3))&&(a19==1)))&&(a5==6))&&(a2==1)))&&(a23==1)))&&((((!(a11==1)||((a16==10)&&((a20==1)&&(a28==1))))&&(a17==2))&&(a21==12))&&(a9==7)))){ + a5 = 4; + a16 = 7; + a21 = 10; + a8 = 0; + a14 = 0; + a4 = 0; + return -1; + } else if((((((((!(a14==1)&&(a6==1))&&(a21==11))||(a24==1))&&(a16==11))&&(a23==1))&&!(a14==1))&&(((((a6==1)&&((a20==1)&&(((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==6))&&(a19==2))))&&(a17==2))&&(a1==14))&&!(a8==1)))){ + a16 = 7; + a9 = 7; + a24 = 0; + a2 = 1; + a21 = 10; + a5 = 4; + a6 = 1; + a1 = 12; + a19 = 1; + return -1; + } else if(((((((a16==8)&&((((a9==7)&&((a5==4)&&(a1==14)))||((((a1==13)&&(a5==5))&&(a9==11))||(((a5==6)&&(a1==13))&&(a9==11))))&&(input==1)))&&(a19==1))&&(a3==1))&&(a2==1))&&((((((!(a20==1)&&((a28==1)&&(a21==11)))||!(a13==1))&&(a17==2))&&!(a14==1))&&!(a7==1))||!(a2==1)))){ + a5 = 6; + a6 = 1; + a9 = 9; + a21 = 10; + a19 = 4; + a1 = 14; + a20 = 1; + a28 = 1; + return 25; + } else if(((((a1==13)&&((a9==9)&&((a14==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a0==1)))))&&(a20==1))&&((!(a2==1)&&((!(a3==1)&&((a17==2)&&((a19==1)&&(((a23==1)&&(a14==1))&&(a16==8)))))&&(a27==1)))&&(a21==12)))){ + a6 = 0; + a16 = 7; + a1 = 12; + a21 = 10; + a9 = 11; + a5 = 6; + a7 = 1; + a3 = 0; + return 25; + } else if((((((((a17==2)&&(!(a4==1)&&(a2==1)))||!(a6==1))&&(a20==1))&&(a1==12))&&(a21==10))&&((a16==10)&&((((a28==1)&&((!(a18==1)&&(!(a27==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5))))))&&(a11==1)))&&(a19==5))&&(a9==10))))){ + a21 = 11; + a16 = 8; + a0 = 0; + a18 = 0; + a5 = 4; + a12 = 1; + a19 = 4; + return -1; + } else if(((!(a14==1)&&((a1==13)&&((((a17==2)&&(((a11==1)&&((a19==1)&&((input==3)&&(a20==1))))&&(a5==4)))&&(a9==7))&&!(a14==1))))&&(((a18==1)||(((a21==11)&&(!(a28==1)||(a13==1)))&&(a16==11)))||(a4==1)))){ + a21 = 10; + a16 = 7; + a1 = 12; + a4 = 0; + a18 = 0; + a27 = 0; + return -1; + } else if(((((a23==1)&&((!(a7==1)&&((a19==5)&&(((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11)))&&(input==4))))&&(a17==2)))&&(a12==1))&&((a23==1)&&((a1==13)&&(((!(a27==1)&&((a23==1)&&((a23==1)&&(a21==10))))&&(a16==8))&&!(a20==1)))))){ + a11 = 1; + a16 = 7; + a20 = 1; + a9 = 11; + a5 = 5; + a19 = 4; + a1 = 14; + a28 = 1; + a13 = 1; + return 25; + } else if((((a23==1)&&((a3==1)&&((a1==12)&&((a21==12)&&((a19==3)&&((a9==8)&&((input==5)&&((a5==6)||((a5==4)||(a5==5))))))))))&&((((!(a13==1)||((a17==2)&&(!(a28==1)||((a16==9)&&(a3==1)))))&&!(a20==1))&&(a23==1))&&(a13==1)))){ + a29 = 1; + a5 = 5; + a19 = 4; + a9 = 11; + a2 = 0; + a20 = 1; + return -1; + } else if((((!(a2==1)||((a23==1)&&!(a8==1)))&&(a23==1))&&(((a16==10)&&(((((a17==2)&&((a19==4)&&(!(a7==1)&&((a28==1)&&((a5==4)&&((input==6)&&!(a20==1)))))))&&(a21==11))&&(a1==14))&&(a9==7)))&&(a6==1)))){ + a16 = 9; + a5 = 5; + a28 = 0; + a18 = 1; + a20 = 1; + a14 = 1; + a1 = 12; + return -1; + } else if((((a1==14)&&((((a5==5)&&(((a2==1)&&((a19==1)&&(!(a14==1)&&(a6==1))))&&!(a20==1)))||!(a23==1))&&(a9==11)))&&((a16==7)&&((((((input==1)&&(a17==2))&&!(a7==1))&&(a21==11))&&(a6==1))&&!(a7==1))))){ + a1 = 12; + a20 = 1; + a16 = 11; + a19 = 3; + a2 = 1; + a4 = 0; + a13 = 1; + a5 = 6; + a21 = 10; + return 25; + } else if(((((a19==5)&&(!(a6==1)||((((a2==1)||!(a12==1))&&(a21==11))&&(a17==2))))&&!(a20==1))&&((a9==7)&&((a11==1)&&((a16==9)&&(((!(a18==1)&&((a1==12)&&((input==1)&&((a5==5)||(a5==6)))))&&!(a24==1))&&(a12==1))))))){ + a20 = 1; + a16 = 11; + a21 = 12; + a5 = 6; + a9 = 11; + a27 = 1; + a13 = 0; + a6 = 0; + return 25; + } else if((((a23==1)&&((a20==1)&&((((a6==1)&&!(a4==1))&&(a1==14))&&(a9==10))))&&(((a19==2)&&(((((((a5==6)&&((a16==8)&&(input==4)))&&(a21==11))&&!(a0==1))&&(a3==1))&&(a3==1))&&!(a26==1)))&&(a17==2)))){ + a26 = 0; + a9 = 7; + a1 = 12; + a2 = 1; + a5 = 4; + a16 = 7; + a13 = 1; + a19 = 1; + a21 = 10; + return -1; + } else if((((a18==1)||((a14==1)||((a24==1)||(!(a11==1)||(((!(a23==1)||((a19==4)&&(a23==1)))&&(a16==10))||(a7==1))))))&&(((a17==2)&&((((input==4)&&((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4))))&&(a21==11))&&(a20==1)))&&(a1==12)))){ + a21 = 10; + a16 = 7; + a9 = 7; + a19 = 1; + a12 = 1; + a28 = 1; + a5 = 4; + a13 = 1; + return -1; + } else if(((((a20==1)&&((a17==2)&&(!(a26==1)&&((a12==1)&&(((a6==1)&&(!(a8==1)&&((((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6))))&&(input==3))))&&(a21==11))))))&&(a1==14))&&((a16==7)&&((((a11==1)&&(a19==5))||!(a6==1))||(a24==1))))){ + a27 = 0; + a5 = 4; + a1 = 12; + a9 = 7; + a14 = 0; + a19 = 1; + a24 = 0; + a21 = 10; + return -1; + } else if(((((a28==1)&&(a2==1))&&(a17==2))&&(((a16==7)&&((a9==11)&&((a19==5)&&(!(a18==1)&&((a21==10)&&(((((((input==3)&&!(a20==1))&&(a13==1))&&(a13==1))&&!(a18==1))&&(a5==6))&&(a28==1)))))))&&(a1==12)))){ + a21 = 11; + a1 = 14; + a20 = 1; + a0 = 0; + a28 = 1; + a13 = 1; + a5 = 5; + a16 = 11; + a9 = 7; + return 21; + } else if(((((a19==2)&&(((a5==6)&&((a21==11)&&((input==4)&&(a17==2))))&&(a20==1)))&&!(a26==1))&&(!(a28==1)||((a11==1)&&((a16==10)&&((((((a14==1)||(a3==1))&&(a1==13))&&!(a8==1))&&(a9==11))&&!(a4==1))))))){ + a13 = 1; + a9 = 9; + a21 = 10; + a16 = 7; + a0 = 0; + a5 = 4; + a3 = 1; + return 23; + } else if(((((a17==2)&&(((!(a20==1)&&(((((input==3)&&(((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))))&&!(a0==1))&&!(a27==1))&&!(a24==1)))&&!(a18==1))&&(a1==12)))&&(a19==3))&&((a3==1)&&((a16==7)&&(!(a4==1)&&((a21==10)&&(a23==1))))))){ + a20 = 1; + a0 = 0; + a9 = 7; + a5 = 4; + a19 = 1; + a2 = 1; + a11 = 1; + return -1; + } else if(((((a21==12)&&((((a3==1)&&!(a20==1))&&(a9==10))&&(a16==8)))&&!(a26==1))&&(((a17==2)&&((a6==1)&&(((!(a27==1)&&(((a28==1)&&(((a5==4)||(a5==5))&&(input==5)))&&(a6==1)))&&(a19==5))&&(a1==13))))&&(a23==1)))){ + a9 = 9; + a21 = 10; + a20 = 1; + a16 = 9; + a4 = 1; + a12 = 0; + a5 = 4; + a11 = 0; + return 26; + } else if(((((a19==5)&&((!(a27==1)&&((a21==11)&&((a3==1)&&!(a0==1))))||!(a6==1)))&&(a1==13))&&((a20==1)&&((a17==2)&&((a12==1)&&((!(a0==1)&&((a16==10)&&((input==3)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8))))))&&!(a4==1))))))){ + a5 = 4; + a16 = 7; + a9 = 7; + a19 = 1; + a1 = 12; + a23 = 1; + a6 = 1; + a28 = 1; + a21 = 10; + return -1; + } else if((((((a5==4)&&((a6==1)&&((a18==1)||(((a12==1)&&(a17==2))||(a27==1)))))&&(a16==10))&&(a21==11))&&((a9==7)&&(((a3==1)&&((a23==1)&&((a19==2)&&(((a1==13)&&(input==3))&&!(a14==1)))))&&!(a20==1))))){ + a21 = 12; + a19 = 5; + a0 = 1; + a11 = 0; + a20 = 1; + a27 = 1; + return -1; + } else if((((a17==2)&&((a21==10)&&(!(a18==1)&&(((((a3==1)||(a4==1))||(a8==1))&&(a19==4))&&(a20==1)))))&&(!(a18==1)&&(!(a27==1)&&(((((input==1)&&(((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))))&&(a16==10))&&!(a7==1))&&(a1==14)))))){ + a24 = 0; + a2 = 1; + a3 = 1; + a5 = 5; + a1 = 13; + a19 = 5; + a16 = 8; + a9 = 10; + return 25; + } else if((((a11==1)&&((((a1==13)&&(!(a20==1)&&(a13==1)))&&!(a0==1))&&!(a26==1)))&&(!(a26==1)&&((a19==3)&&((a16==8)&&((!(a27==1)&&((((input==3)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10))))&&(a3==1))&&(a21==12)))&&(a17==2))))))){ + a19 = 2; + a16 = 7; + a1 = 12; + a20 = 1; + a3 = 0; + a10 = 1; + a5 = 4; + a21 = 10; + a9 = 7; + a15 = 1; + return 21; + } else if(((((a9==8)&&(((a0==1)||((a20==1)&&(((a21==11)&&((a1==13)&&(a6==1)))&&!(a26==1))))||!(a11==1)))&&(a19==3))&&((a16==9)&&(((a12==1)&&(!(a14==1)&&((a17==2)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))))&&(a3==1))))){ + a21 = 12; + a18 = 0; + a5 = 4; + a1 = 12; + a3 = 1; + a9 = 9; + a6 = 1; + return 21; + } else if((((a7==1)||((a9==11)&&(!(a7==1)&&((a16==7)&&(((a18==1)||(!(a11==1)||((a19==4)&&(a13==1))))&&!(a20==1))))))&&(((a1==13)&&(((((a5==4)&&(input==3))&&(a6==1))&&(a21==10))&&(a17==2)))&&(a23==1)))){ + a9 = 7; + a19 = 5; + a4 = 0; + a1 = 12; + a27 = 0; + a11 = 1; + return 25; + } else if((((a16==11)&&(((a17==2)&&((a8==1)||((!(a11==1)||((a19==4)&&(a2==1)))&&(a1==12))))&&(a20==1)))&&((!(a26==1)&&((a23==1)&&(!(a24==1)&&((a6==1)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==1))))))&&(a21==11)))){ + a27 = 0; + a6 = 1; + a21 = 12; + a23 = 1; + a5 = 4; + a1 = 13; + a9 = 9; + a19 = 2; + return 25; + } else if((((!(a18==1)&&(((a17==2)&&(((a6==1)&&(!(a20==1)&&(((((input==4)&&(a5==4))&&(a9==11))&&(a28==1))&&!(a8==1))))&&(a16==8)))&&(a21==12)))&&(a19==2))&&(((a7==1)||((a13==1)||!(a12==1)))&&(a1==12)))){ + a25 = 0; + a5 = 6; + a19 = 5; + a9 = 8; + a22 = 1; + a1 = 13; + a16 = 7; + a12 = 0; + return 21; + } else if(((!(a18==1)&&(!(a24==1)&&(((a17==2)&&(((a1==14)&&((a3==1)&&(a6==1)))||(a14==1)))||(a24==1))))&&((a19==3)&&(((a20==1)&&((a21==11)&&(((input==3)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(a2==1))))&&(a16==9))))){ + a19 = 1; + a5 = 4; + a16 = 7; + a1 = 12; + a4 = 0; + a26 = 0; + a18 = 0; + a9 = 7; + a21 = 10; + return -1; + } else if(((((a28==1)&&(((a1==12)&&((a16==7)&&(!(a6==1)||((a12==1)&&(a17==2)))))&&(a9==8)))||(a8==1))&&((a13==1)&&((!(a20==1)&&(!(a26==1)&&((a3==1)&&((a19==4)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4))))))&&(a21==12))))){ + a6 = 1; + a20 = 1; + a5 = 4; + a4 = 0; + a21 = 10; + a9 = 7; + a19 = 1; + a3 = 1; + return -1; + } else if((((a21==10)&&((a20==1)&&((((a9==10)&&(input==1))&&!(a7==1))&&(a16==10))))&&((a19==3)&&((a1==14)&&(!(a13==1)||((((a24==1)||((!(a2==1)||((a11==1)&&(a23==1)))&&(a5==6)))||!(a6==1))&&(a17==2))))))){ + a6 = 1; + a21 = 11; + a24 = 0; + a16 = 11; + a1 = 12; + a19 = 1; + a9 = 8; + a5 = 4; + return 26; + } else if((((a12==1)&&(((a9==10)&&((a21==12)&&((a16==11)&&(((a7==1)||((a13==1)||!(a6==1)))&&(a20==1)))))&&(a17==2)))&&(!(a4==1)&&((a1==12)&&(!(a26==1)&&((a19==4)&&(((input==5)&&((a5==5)||(a5==6)))&&(a13==1)))))))){ + a21 = 10; + a16 = 7; + a28 = 1; + a6 = 1; + a9 = 7; + a19 = 1; + a26 = 0; + a5 = 4; + return -1; + } else if((((a21==11)&&((a1==13)&&((a17==2)&&(((a11==1)&&((a9==8)&&((((a19==5)&&((input==3)&&((a5==4)||(a5==5))))&&!(a0==1))&&!(a24==1))))&&(a6==1)))))&&(!(a20==1)&&((((a6==1)&&(a16==9))&&!(a24==1))||(a18==1))))){ + a13 = 0; + a19 = 2; + a20 = 1; + a9 = 7; + a1 = 12; + a12 = 0; + a29 = 0; + a5 = 6; + a16 = 10; + return 22; + } else if((((a1==12)&&((a6==1)&&((a9==7)&&(((a3==1)&&(a5==5))&&(a20==1)))))&&((a6==1)&&((a16==11)&&(((a17==2)&&(!(a24==1)&&(((((a19==4)&&(input==1))&&(a12==1))&&(a21==12))&&(a2==1))))&&(a23==1)))))){ + a16 = 7; + a6 = 1; + a3 = 1; + a21 = 10; + a5 = 4; + a7 = 0; + a19 = 1; + return -1; + } else if(((((a24==1)||((((a1==13)&&((a5==5)&&(a2==1)))||!(a23==1))&&(a21==11)))&&(a16==7))&&((((a19==5)&&((a11==1)&&((a13==1)&&(!(a27==1)&&(((input==4)&&(a17==2))&&!(a26==1))))))&&(a9==11))&&(a20==1)))){ + a9 = 7; + a27 = 0; + a21 = 12; + a16 = 8; + a5 = 4; + a7 = 0; + a24 = 0; + a19 = 3; + a1 = 12; + return 23; + } return calculate_output52(input); + } + + int calculate_output52(int input) { + if(((((!(a18==1)&&((!(a8==1)&&((a17==2)&&(((a21==12)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a6==1)))&&!(a8==1))))&&(a9==8)))&&(a28==1))&&(a3==1))&&((((a20==1)&&((a2==1)&&(a1==13)))&&(a19==4))&&(a16==11)))){ + a21 = 11; + a0 = 0; + a2 = 1; + a19 = 5; + a9 = 7; + a16 = 10; + a13 = 1; + a5 = 6; + return 21; + } else if(((((((a1==13)&&((a28==1)&&(a28==1)))&&(a21==10))||(a8==1))&&(a17==2))&&(((a9==9)&&((((((((input==5)&&(a16==11))&&!(a8==1))&&(a3==1))&&(a11==1))&&!(a24==1))&&(a20==1))&&(a5==6)))&&(a19==3)))){ + a6 = 1; + a23 = 1; + a5 = 4; + a16 = 10; + a1 = 14; + a7 = 0; + a19 = 2; + return 21; + } else if(((((a2==1)&&((a17==2)&&((a16==10)&&((a1==14)&&(((!(a20==1)&&((input==5)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5)))))&&!(a14==1))&&(a19==3))))))&&!(a24==1))&&(!(a23==1)||((((a11==1)&&!(a18==1))&&(a21==11))&&(a13==1))))){ + a19 = 1; + a1 = 12; + a16 = 7; + a5 = 6; + a21 = 10; + a25 = 0; + a0 = 1; + a29 = 1; + a20 = 1; + a9 = 11; + return 25; + } else if((((((a5==5)&&(((!(a18==1)&&((a16==9)&&((a11==1)||!(a11==1))))&&(a2==1))&&(a21==11)))&&!(a20==1))&&!(a7==1))&&((a1==12)&&((!(a27==1)&&((a9==7)&&(((input==3)&&(a17==2))&&!(a27==1))))&&(a19==1))))){ + a21 = 10; + a24 = 1; + a5 = 4; + a16 = 7; + a28 = 0; + a13 = 0; + a9 = 10; + a20 = 1; + return -1; + } else if(((((a16==8)&&((a17==2)&&((((a28==1)&&(((input==4)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5))))&&(a1==14)))&&!(a27==1))&&(a13==1))))&&(a19==5))&&((((!(a24==1)&&(!(a28==1)||(a13==1)))||!(a12==1))&&(a20==1))&&(a21==11)))){ + a5 = 4; + a9 = 7; + a28 = 1; + a1 = 12; + a21 = 10; + a18 = 0; + a16 = 7; + a4 = 0; + a19 = 1; + return -1; + } else if((((!(a2==1)||(!(a12==1)||((a17==2)&&(!(a23==1)||(a13==1)))))&&(a20==1))&&(((((((input==5)&&((((a19==2)&&((a9==11)&&((a5==5)&&(a1==14))))||(((a9==11)&&((a5==6)&&(a1==14)))&&(a19==2)))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==3))))&&(a3==1))&&(a16==8))&&(a21==11))&&(a13==1))&&!(a14==1)))){ + a9 = 7; + a7 = 0; + a19 = 1; + a1 = 12; + a5 = 4; + a6 = 1; + a28 = 1; + a21 = 10; + a16 = 7; + return -1; + } else if(((!(a8==1)&&(!(a18==1)&&((a20==1)&&(((a5==4)||(a5==5))&&(input==5)))))&&((((((a19==3)&&((a16==9)&&((a23==1)&&(((a1==13)&&((a21==12)&&(a3==1)))||!(a12==1)))))&&(a17==2))&&(a9==8))&&(a28==1))||!(a13==1)))){ + a16 = 10; + a19 = 2; + a23 = 1; + a21 = 10; + a5 = 4; + a28 = 1; + a0 = 0; + a1 = 14; + return 21; + } else if((((a16==10)&&((a8==1)||((((!(a20==1)&&((((a6==1)||(a8==1))&&(a9==10))&&(a1==13)))&&(a19==3))||(a0==1))&&(a17==2))))&&(!(a7==1)&&((a12==1)&&(((((a5==4)||(a5==5))&&(input==3))&&!(a14==1))&&(a21==12)))))){ + a3 = 0; + a10 = 0; + a5 = 6; + a1 = 14; + a19 = 1; + a20 = 1; + a23 = 0; + a16 = 7; + a21 = 10; + return -1; + } else if(((((a28==1)&&((((!(a27==1)&&((a2==1)&&(!(a20==1)&&((input==6)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))))))&&(a2==1))&&(a3==1))&&(a6==1)))&&(a21==11))&&((a16==9)&&((((a19==2)&&(a2==1))&&(a1==13))&&(a17==2))))){ + if((a1==12)){ + a1 = 12; + a5 = 4; + a6 = 0; + a16 = 7; + a29 = 1; + a9 = 8; + a21 = 10; + a20 = 1; + a25 = 1; + }else{ + a21 = 10; + a20 = 1; + a1 = 12; + a16 = 7; + a5 = 5; + a9 = 7; + a23 = 0; + a2 = 0; + a24 = 1; + } + return -1; + } else if((((a19==1)&&((a1==12)&&(!(a27==1)&&((a20==1)&&((a12==1)&&(a2==1))))))&&(((a16==11)&&((a9==11)&&((((((a2==1)&&((input==5)&&((a5==5)||(a5==6))))&&(a6==1))&&(a11==1))&&!(a18==1))&&(a17==2))))&&(a21==11)))){ + a16 = 7; + a9 = 7; + a4 = 0; + a21 = 10; + a24 = 0; + a5 = 4; + a28 = 1; + return -1; + } else if((((a9==7)&&(((a19==2)&&((a2==1)&&(((a17==2)&&(((!(a7==1)&&((a1==13)&&(input==5)))&&(a28==1))&&!(a8==1)))&&!(a27==1))))&&(a5==4)))&&(((a20==1)&&(((a11==1)&&(a13==1))&&(a16==8)))&&(a21==10)))){ + a21 = 12; + a16 = 9; + a13 = 1; + a19 = 3; + a5 = 6; + a2 = 1; + a9 = 11; + return 21; + } else if(((((!(a20==1)&&((a16==8)&&((((input==1)&&(((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))))&&(a13==1))&&(a1==13))))&&!(a24==1))&&(a28==1))&&(((a12==1)&&((a19==5)&&(!(a26==1)&&(((a21==11)&&(a3==1))&&(a17==2)))))||!(a6==1)))){ + a1 = 12; + a5 = 4; + a21 = 10; + a9 = 10; + a10 = 0; + a19 = 2; + a20 = 1; + a16 = 7; + a14 = 1; + a6 = 0; + return 22; + } else if(((((a27==1)||((a17==2)&&((a4==1)||((a16==11)&&(a11==1)))))&&(a13==1))&&((((a21==12)&&(!(a26==1)&&(((((((a5==4)||(a5==5))&&(input==6))&&(a1==14))&&(a9==8))&&(a28==1))&&(a20==1))))&&(a19==1))&&!(a24==1)))){ + a9 = 7; + a16 = 7; + a21 = 10; + a5 = 4; + a27 = 0; + a26 = 0; + a1 = 12; + return -1; + } else if((((((a17==2)&&(!(a2==1)||((((a3==1)&&(a19==5))&&!(a8==1))&&(a2==1))))&&(a1==13))&&(a16==8))&&((a20==1)&&((a21==12)&&((a3==1)&&(((a9==8)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&!(a7==1)))&&(a11==1))))))){ + a5 = 6; + a2 = 1; + a6 = 1; + a16 = 10; + a1 = 12; + a18 = 0; + return 26; + } else if(((!(a8==1)&&(!(a26==1)&&(!(a0==1)&&((a1==14)&&((a20==1)&&((a16==7)&&((!(a24==1)&&(a28==1))&&(a19==1))))))))&&((a11==1)&&(!(a26==1)&&((a9==8)&&(((a17==2)&&((a5==6)&&(input==6)))&&(a21==11))))))){ + a8 = 0; + a9 = 7; + a18 = 0; + a1 = 12; + a21 = 10; + a5 = 4; + a4 = 0; + return -1; + } else if((((a19==1)&&((a16==7)&&((!(a13==1)||((!(a4==1)&&(!(a20==1)&&((!(a28==1)||(a13==1))&&!(a7==1))))&&(a17==2)))&&(a21==11))))&&(((a5==4)&&((((a9==11)&&(input==4))&&!(a18==1))&&(a2==1)))&&(a1==13)))){ + a8 = 0; + a21 = 10; + a20 = 1; + a24 = 0; + a9 = 7; + a4 = 0; + a1 = 12; + return -1; + } else if((((a17==2)&&(((((a9==8)&&(((a28==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4)))&&(a16==8)))&&(a3==1))&&!(a18==1))&&!(a27==1)))&&((a21==10)&&(((a20==1)&&((a11==1)&&((a1==12)&&((a11==1)&&(a13==1)))))&&(a19==5))))){ + a9 = 11; + a1 = 13; + a16 = 7; + a28 = 1; + a19 = 2; + a7 = 0; + a5 = 5; + a8 = 0; + return -1; + } else if(((((a16==9)&&((a21==11)&&((a1==13)&&((a13==1)&&((a9==7)&&((!(a7==1)&&(!(a20==1)&&((a23==1)&&(a13==1))))||!(a11==1)))))))||(a24==1))&&((((a19==3)&&(((a5==5)||(a5==6))&&(input==1)))&&!(a7==1))&&(a17==2)))){ + a14 = 1; + a5 = 4; + a1 = 14; + a19 = 1; + a11 = 0; + a21 = 10; + a25 = 0; + a20 = 1; + a16 = 7; + return -1; + } else if((((!(a20==1)&&(((a19==4)&&(((((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11)))&&(input==6))&&(a28==1))&&(a28==1)))&&(a16==8)))&&(a17==2))&&(!(a8==1)&&(((a21==10)&&(((a1==12)&&((a13==1)&&!(a8==1)))||!(a28==1)))&&(a12==1))))){ + a21 = 11; + a9 = 8; + a19 = 3; + a16 = 10; + a5 = 6; + a20 = 1; + a14 = 0; + a1 = 13; + return 23; + } else if(((((a6==1)&&(((((a17==2)&&((a1==13)&&((!(a26==1)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6))))&&(a20==1))))&&!(a7==1))&&(a21==12))&&(a3==1)))&&(a3==1))&&((((a16==11)&&((a9==11)&&(a2==1)))&&(a19==3))&&(a23==1)))){ + a1 = 12; + a21 = 10; + a19 = 1; + a9 = 7; + a6 = 1; + a5 = 4; + a11 = 1; + a16 = 7; + a28 = 1; + return -1; + } else if((((a21==10)&&((((a19==4)&&((((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&(input==6)))&&!(a8==1))&&!(a7==1)))&&((((a24==1)||((((a1==13)&&(((a13==1)&&(a6==1))&&(a20==1)))||(a7==1))&&(a17==2)))||(a14==1))&&(a16==10)))){ + a19 = 1; + a3 = 1; + a14 = 0; + a9 = 7; + a16 = 7; + a5 = 4; + a1 = 12; + a7 = 0; + return -1; + } else if(((((a14==1)||((a19==5)&&((a21==12)&&((((a12==1)||(a24==1))&&(a3==1))&&(a20==1)))))&&(a17==2))&&(((a2==1)&&(((a16==7)&&(((input==4)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(a1==13)))&&(a6==1)))&&!(a0==1)))){ + a24 = 0; + a9 = 7; + a21 = 10; + a23 = 1; + a1 = 12; + a4 = 0; + a19 = 1; + a5 = 4; + return -1; + } else if(((((a12==1)&&((((a21==10)&&(((a6==1)&&(((((a17==2)&&(input==1))&&!(a8==1))&&(a16==9))&&(a9==11)))&&!(a20==1)))&&!(a4==1))&&!(a27==1)))&&(a5==4))&&((a19==3)&&(((a6==1)||(a18==1))&&(a1==14))))){ + a16 = 8; + a1 = 13; + a11 = 0; + a3 = 0; + a20 = 1; + a21 = 11; + a25 = 0; + return 25; + } else if((((((a12==1)&&((((a9==9)&&(((!(a27==1)&&(a6==1))&&(a17==2))||!(a3==1)))&&(a21==12))&&!(a20==1)))||!(a6==1))&&(a2==1))&&((a19==4)&&((a28==1)&&((a16==10)&&((a1==14)&&((input==4)&&((a5==4)||(a5==5))))))))){ + a16 = 7; + a9 = 8; + a1 = 12; + a21 = 10; + a27 = 1; + a5 = 6; + a19 = 1; + a20 = 1; + a2 = 0; + a7 = 1; + return -1; + } else if(((((((a27==1)&&((a1==14)&&((a16==9)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&!(a2==1)))))&&(a20==1))&&(a9==7))&&(a19==2))&&((a21==10)&&((((((a17==2)&&(a28==1))&&!(a13==1))&&(a26==1))&&!(a12==1))&&(a27==1))))){ + a5 = 5; + a19 = 5; + a21 = 12; + a24 = 1; + a14 = 1; + a16 = 8; + return -1; + } else if((((((((a20==1)&&((((a9==11)&&((a5==6)&&(a1==13)))||(((a1==14)&&(a5==4))&&(a9==7)))&&(input==1)))&&(a17==2))&&!(a27==1))&&(a13==1))&&(a28==1))&&((((((a19==3)&&((a16==10)&&(a13==1)))&&(a28==1))||(a8==1))&&(a21==12))||!(a11==1)))){ + a16 = 7; + a13 = 1; + a1 = 13; + a9 = 9; + a5 = 4; + a19 = 2; + a4 = 0; + a21 = 10; + return 25; + } else if((((a16==7)&&(((a18==1)||(((((a12==1)||!(a2==1))||(a0==1))&&(a9==9))&&(a5==6)))&&(a19==3)))&&((a21==11)&&((a2==1)&&((a23==1)&&(((a20==1)&&(((input==1)&&(a17==2))&&(a12==1)))&&(a1==13))))))){ + a5 = 5; + a9 = 10; + a16 = 8; + a23 = 1; + a3 = 1; + a13 = 1; + a19 = 1; + a1 = 12; + return 25; + } else if((((a20==1)&&(((a5==6)&&((((!(a0==1)&&(!(a18==1)&&((a16==7)&&(input==4))))&&!(a7==1))&&(a21==10))&&(a19==2)))&&(a9==10)))&&((a17==2)&&(((a23==1)&&(!(a0==1)&&((a23==1)||(a18==1))))&&(a1==13))))){ + a7 = 0; + a6 = 1; + a19 = 1; + a9 = 7; + a5 = 4; + a1 = 12; + a2 = 1; + return -1; + } else if(((((a6==1)&&(!(a13==1)||((a19==4)&&((a28==1)&&(a16==8)))))&&(a2==1))&&(((a3==1)&&((((a28==1)&&((((input==3)&&(((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))))&&(a20==1))&&(a21==12)))&&(a17==2))&&(a1==14)))&&!(a26==1)))){ + a12 = 1; + a1 = 13; + a9 = 8; + a3 = 1; + a16 = 10; + a5 = 4; + a27 = 0; + return 21; + } else if(((((a5==6)&&(((a3==1)&&(a21==12))&&(a17==2)))&&(a16==10))&&((((a28==1)&&((((!(a24==1)&&(!(a4==1)&&(!(a24==1)&&((a9==10)&&(input==3)))))&&(a19==2))&&(a1==14))&&!(a14==1)))&&(a2==1))&&(a20==1)))){ + a1 = 13; + a23 = 1; + a9 = 9; + a5 = 5; + a16 = 7; + a4 = 0; + a21 = 10; + a28 = 1; + return 26; + } else if(((((((!(a13==1)||((a13==1)&&(a12==1)))&&!(a18==1))&&(a16==7))&&(a1==12))||!(a28==1))&&((a19==1)&&((((!(a0==1)&&(!(a26==1)&&((input==3)&&((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4))))))&&(a17==2))&&(a20==1))&&(a21==11))))){ + a9 = 7; + a3 = 1; + a23 = 1; + a21 = 10; + a5 = 4; + a8 = 0; + return -1; + } else if((((((a19==5)&&(((a3==1)&&(((a9==8)&&(((a4==1)||((a21==10)&&((a6==1)||(a4==1))))&&!(a7==1)))&&!(a24==1)))&&(a16==7)))&&(a1==13))&&(a20==1))&&((a17==2)&&(((input==4)&&((a5==4)||(a5==5)))&&(a11==1))))){ + if((a0==1)){ + a24 = 0; + a3 = 1; + a5 = 5; + a28 = 1; + a9 = 10; + a21 = 11; + a19 = 1; + a1 = 12; + a20 = 0; + }else{ + a5 = 5; + a27 = 0; + a18 = 0; + a9 = 10; + a1 = 12; + a21 = 12; + a19 = 3; + } + return 21; + } else if((((a17==2)&&(((!(a24==1)&&(((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==1))&&(a3==1)))&&!(a14==1))&&(a13==1)))&&(((a1==14)&&(((a19==1)&&((a21==10)&&(((a6==1)&&!(a18==1))||(a14==1))))&&!(a20==1)))&&(a16==11)))){ + a20 = 1; + a5 = 5; + a6 = 0; + a29 = 0; + a16 = 7; + a9 = 8; + a1 = 13; + return 26; + } else if(((((a1==14)&&(!(a18==1)&&((a28==1)&&((input==5)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))))))&&(a16==9))&&((a27==1)||(((a19==4)&&((a17==2)&&(((((a6==1)||(a24==1))&&(a21==10))&&(a3==1))||!(a2==1))))&&!(a20==1))))){ + a22 = 1; + a0 = 1; + a5 = 6; + a9 = 11; + a20 = 1; + a16 = 7; + a4 = 1; + a1 = 13; + a19 = 1; + return -1; + } else if((((((!(a13==1)&&(((((a1==13)&&(input==4))&&(a26==1))&&!(a12==1))&&(a5==4)))&&(a16==7))&&(a21==12))&&(a9==7))&&((!(a6==1)&&(((((a19==5)&&(a2==1))&&!(a23==1))&&(a24==1))&&(a20==1)))&&(a17==2)))){ + a18 = 1; + a1 = 14; + a16 = 11; + a9 = 10; + a19 = 3; + a28 = 0; + a2 = 0; + return -1; + } else if(((!(a14==1)&&((((((a21==12)&&((input==5)&&((a5==6)||((a5==4)||(a5==5)))))&&(a1==14))&&!(a14==1))&&!(a26==1))&&!(a27==1)))&&((a19==2)&&(((((a16==7)&&((a9==9)&&((a26==1)||(a12==1))))||(a4==1))&&!(a20==1))&&(a17==2))))){ + a24 = 0; + a8 = 0; + a3 = 1; + a21 = 11; + a19 = 1; + a20 = 1; + a5 = 4; + a9 = 7; + return 25; + } else if(((((!(a7==1)&&((a5==5)&&(((a3==1)&&(a9==10))&&(a17==2))))||!(a23==1))&&(a20==1))&&(((a1==14)&&(!(a26==1)&&((a6==1)&&((!(a0==1)&&((a28==1)&&((a16==11)&&(input==1))))&&(a21==12)))))&&(a19==4)))){ + a19 = 1; + a24 = 0; + a28 = 1; + a16 = 7; + a21 = 10; + a1 = 12; + a5 = 4; + a9 = 7; + a12 = 1; + return -1; + } else if((((((((a9==9)&&((a21==10)&&(a11==1)))&&(a17==2))||!(a6==1))||(a0==1))&&(a1==14))&&(((a12==1)&&(!(a0==1)&&((((a16==10)&&((a19==1)&&((input==6)&&((a5==4)||(a5==5)))))&&(a13==1))&&(a20==1))))&&(a12==1)))){ + a6 = 1; + a8 = 0; + a2 = 1; + a1 = 12; + a16 = 7; + a5 = 4; + a9 = 7; + return -1; + } else if((((((a14==1)||(!(a7==1)&&((a17==2)&&((a3==1)&&!(a27==1)))))&&(a21==10))&&(a19==1))&&(((!(a24==1)&&(!(a0==1)&&((a16==9)&&(!(a7==1)&&((input==3)&&(((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))))))))&&(a20==1))&&(a1==13)))){ + a28 = 1; + a5 = 4; + a14 = 0; + a1 = 12; + a16 = 7; + a9 = 7; + return -1; + } else if(((((((((((a9==7)&&((a1==13)&&(a5==5)))||((((a1==12)&&(a5==6))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==13)))))&&(input==1))&&(a23==1))&&(a11==1))&&(a23==1))&&(a12==1))&&(a19==3))&&((a17==2)&&((a16==11)&&(((a21==12)&&((a8==1)||(!(a12==1)||(a3==1))))&&(a20==1)))))){ + a16 = 7; + a9 = 7; + a1 = 12; + a21 = 10; + a19 = 1; + a5 = 4; + a14 = 0; + a4 = 0; + a27 = 0; + return -1; + } else if(((!(a4==1)&&((a28==1)&&(!(a4==1)&&(!(a7==1)&&((input==5)&&(((a9==7)&&((a1==13)&&(a5==5)))||((((a1==12)&&(a5==6))&&(a9==11))||(((a1==13)&&(a5==4))&&(a9==7)))))))))&&(((a28==1)&&((a16==10)&&((a21==10)&&((a19==4)&&(((a12==1)&&(a17==2))&&!(a20==1))))))&&(a6==1)))){ + if((a3==1)){ + a24 = 1; + a1 = 12; + a16 = 7; + a5 = 4; + a10 = 1; + a9 = 7; + a29 = 0; + a19 = 2; + a20 = 1; + }else{ + a16 = 7; + a5 = 6; + a3 = 0; + a1 = 12; + a19 = 1; + a20 = 1; + a2 = 0; + a9 = 9; + a10 = 0; + } + return 25; + } else if((((((((a26==1)&&((!(a13==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4)))&&(a19==2)))&&(a27==1))&&(a8==1))&&(a9==11))&&(a20==1))&&((a21==10)&&(((a16==7)&&((a1==14)&&(!(a23==1)&&(!(a3==1)&&(a13==1)))))&&(a17==2))))){ + a5 = 5; + a16 = 8; + a10 = 1; + a1 = 12; + a15 = 1; + a9 = 9; + a21 = 12; + a12 = 0; + return 25; + } else if((((a12==1)&&((((!(a26==1)&&((a16==8)&&(((((a5==4)||(a5==5))&&(input==6))&&(a12==1))&&!(a20==1))))&&(a9==7))&&(a19==2))&&!(a18==1)))&&((a7==1)||((a1==12)&&((((a23==1)&&(a12==1))&&(a21==11))&&(a17==2)))))){ + a9 = 8; + a13 = 1; + a16 = 11; + a5 = 4; + a0 = 0; + a20 = 1; + a24 = 0; + return 25; + } else if(((((((a6==1)&&(a13==1))&&!(a14==1))&&!(a20==1))&&(a16==9))&&((a3==1)&&(((a28==1)&&(((a21==12)&&((a13==1)&&(((a19==4)&&((input==1)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))))&&!(a18==1))))&&(a17==2)))&&(a1==14))))){ + if((a0==1)){ + a3 = 0; + a19 = 1; + a5 = 5; + a24 = 1; + a16 = 7; + a21 = 10; + a9 = 11; + a20 = 1; + a1 = 12; + }else{ + a20 = 1; + a21 = 10; + a22 = 1; + a16 = 7; + a9 = 9; + a13 = 0; + a1 = 12; + a7 = 1; + a19 = 2; + a5 = 4; + } + return -1; + } else if((((a28==1)&&((!(a3==1)||(a12==1))&&(a16==7)))&&((a17==2)&&((a6==1)&&((!(a26==1)&&(((a1==12)&&((!(a27==1)&&(((input==4)&&(((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))))&&(a21==12)))&&(a19==2)))&&(a6==1)))&&(a20==1)))))){ + a2 = 1; + a21 = 10; + a18 = 0; + a5 = 4; + a4 = 0; + a19 = 1; + a9 = 7; + return -1; + } else if((((!(a26==1)&&(((input==5)&&(((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))))&&(a3==1)))&&!(a8==1))&&((!(a4==1)&&(((((a17==2)&&(((a19==1)&&((a3==1)||(a7==1)))&&(a21==11)))&&(a20==1))||!(a13==1))&&(a1==12)))&&(a16==7)))){ + a26 = 0; + a14 = 0; + a9 = 7; + a7 = 0; + a5 = 4; + a21 = 10; + return -1; + } else if(((!(a12==1)||(!(a0==1)&&((((a18==1)||(((a21==12)&&((a20==1)&&((((a2==1)&&((a19==1)&&(a28==1)))&&(a13==1))&&(a1==12))))&&(a16==8)))&&(a17==2))&&!(a26==1))))&&((input==1)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))){ + a9 = 8; + a5 = 5; + a16 = 10; + a28 = 1; + a1 = 13; + a11 = 1; + a24 = 0; + a21 = 11; + a19 = 4; + return 25; + } else if((((a12==1)&&((!(a7==1)&&((a1==13)&&((a5==6)&&((((input==4)&&(a21==10))&&(a6==1))&&!(a0==1)))))&&(a11==1)))&&((((((!(a20==1)&&(a2==1))&&(a19==5))&&(a16==10))&&(a9==8))&&(a17==2))&&(a6==1)))){ + if((a14==1)){ + a19 = 2; + a20 = 1; + a16 = 7; + a1 = 12; + a26 = 1; + a7 = 1; + a5 = 4; + a2 = 0; + }else{ + a20 = 1; + a2 = 0; + a18 = 1; + a16 = 8; + a13 = 0; + a5 = 5; + a19 = 2; + } + return -1; + } else if((((((!(a0==1)&&(!(a4==1)&&(!(a24==1)&&((((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))&&(input==5))&&!(a20==1)))))&&(a17==2))&&(a21==11))&&(a19==4))&&(((((a16==7)&&((a1==14)&&(a28==1)))&&!(a0==1))&&!(a24==1))||!(a11==1)))){ + a20 = 1; + a27 = 0; + a9 = 7; + a21 = 10; + a5 = 4; + a7 = 0; + a23 = 1; + a19 = 1; + a1 = 12; + return -1; + } else if((((a16==7)&&((a5==5)&&(((!(a28==1)||((a19==4)&&(a3==1)))&&(a21==12))||(a7==1))))&&((a6==1)&&(((a17==2)&&(((a1==12)&&((!(a26==1)&&((a20==1)&&(input==4)))&&(a9==9)))&&(a3==1)))&&(a13==1))))){ + a9 = 7; + a13 = 1; + a24 = 0; + a21 = 10; + a5 = 4; + a19 = 1; + a28 = 1; + return -1; + } else if((((((a17==2)&&(!(a26==1)&&(((((!(a4==1)&&((!(a8==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5)))))&&(a16==7)))&&!(a7==1))&&!(a24==1))&&!(a14==1))&&(a9==7))))&&(a1==14))&&!(a20==1))&&((a21==11)&&((a19==3)&&(a23==1))))){ + a23 = 1; + a20 = 1; + a9 = 10; + a5 = 4; + a1 = 12; + a6 = 1; + return -1; + } else if(((((a16==11)&&((a12==1)&&((a1==14)&&((((a17==2)&&((a13==1)&&(!(a14==1)&&(!(a7==1)&&((input==5)&&((a5==4)||(a5==5)))))))&&(a20==1))&&(a21==11)))))&&(a19==5))&&((a23==1)&&((a9==7)&&((a28==1)||!(a13==1)))))){ + a19 = 4; + a26 = 0; + a20 = 0; + a9 = 10; + a5 = 5; + a6 = 1; + a8 = 0; + a16 = 7; + return 22; + } else if(((((a19==1)&&(((a1==13)&&((a2==1)&&(a16==7)))&&!(a0==1)))&&(a23==1))&&((a28==1)&&((a3==1)&&((a17==2)&&(!(a20==1)&&((((a23==1)&&(((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))&&(input==3)))&&(a21==12))&&(a6==1)))))))){ + a1 = 12; + a14 = 0; + a21 = 10; + a9 = 7; + a5 = 4; + a0 = 0; + a20 = 1; + return -1; + } else if(((((a13==1)&&(!(a24==1)&&((a16==7)&&((a1==13)&&((((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))&&(input==5))&&(a21==10))))))&&!(a27==1))&&(((a20==1)&&((a23==1)&&(((a17==2)&&((a2==1)&&(a19==4)))||!(a3==1))))||(a8==1)))){ + a19 = 1; + a23 = 1; + a0 = 0; + a9 = 7; + a1 = 12; + a5 = 4; + a28 = 1; + return -1; + } else if(((((((((((a5==4)||(a5==5))&&(input==4))&&(a12==1))&&(a16==8))&&!(a20==1))&&(a1==13))&&!(a18==1))&&(a17==2))&&(((a9==7)&&(!(a24==1)&&((a19==5)&&((a7==1)||(((a2==1)||(a14==1))||!(a12==1))))))&&(a21==11)))){ + a16 = 7; + a9 = 11; + a23 = 0; + a19 = 1; + a12 = 0; + a13 = 0; + a20 = 1; + a1 = 12; + a21 = 10; + a5 = 5; + return -1; + } else if(((!(a12==1)||((a1==12)&&((((a3==1)&&!(a20==1))&&(a16==10))&&(a21==11))))&&((!(a26==1)&&((a9==7)&&((((!(a18==1)&&((((a5==4)||(a5==5))&&(input==3))&&!(a18==1)))&&(a17==2))&&(a19==2))&&!(a26==1))))&&(a13==1)))){ + if((a24==1)){ + a16 = 7; + a1 = 13; + a2 = 0; + a24 = 1; + a5 = 6; + a19 = 4; + a3 = 0; + a20 = 1; + a9 = 9; + }else{ + a20 = 1; + a3 = 0; + a1 = 13; + a16 = 7; + a9 = 8; + a5 = 6; + a7 = 1; + a21 = 10; + a8 = 1; + a19 = 1; + } + return -1; + } else if((((!(a13==1)||(!(a3==1)||((!(a6==1)||((((a20==1)&&((a6==1)&&(a19==2)))&&(a16==11))&&(a9==11)))||(a26==1))))||(a7==1))&&((a17==2)&&((a3==1)&&((a1==13)&&((a21==11)&&((input==4)&&((a5==4)||(a5==5))))))))){ + a13 = 1; + a1 = 12; + a5 = 4; + a9 = 7; + a2 = 1; + a19 = 1; + a16 = 7; + a21 = 10; + a0 = 0; + return -1; + } else if(((((a16==9)&&((a20==1)&&((a14==1)||(((a13==1)||(a0==1))&&(a2==1)))))&&(a1==13))&&(((a13==1)&&((a17==2)&&(!(a4==1)&&((a21==10)&&(((input==3)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11))))&&(a13==1))))))&&(a19==1)))){ + a7 = 0; + a5 = 5; + a6 = 1; + a16 = 8; + a24 = 0; + a19 = 5; + a9 = 9; + return -1; + } else if((((a16==7)&&(((a19==3)&&((a17==2)&&((a13==1)&&(a1==13))))&&(a20==1)))&&((a4==1)&&(!(a11==1)&&((((a4==1)&&(!(a11==1)&&(((input==6)&&((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4))))&&(a21==11))))&&(a26==1))&&(a18==1)))))){ + a21 = 10; + a8 = 1; + a4 = 1; + a28 = 0; + a9 = 10; + a19 = 1; + a1 = 12; + a5 = 6; + return -1; + } else if((((((a13==1)&&((input==6)&&((a5==5)||(a5==6))))&&(a2==1))&&!(a27==1))&&((!(a4==1)&&((a19==1)&&((a21==10)&&((a17==2)&&((((a9==9)&&(((a11==1)||(a18==1))&&!(a20==1)))&&(a16==7))||!(a28==1))))))&&(a1==13)))){ + a9 = 7; + a5 = 4; + a8 = 0; + a18 = 0; + a19 = 2; + a13 = 1; + return 22; + } else if((((a2==1)&&(((a9==11)&&(!(a4==1)&&((a21==11)&&((a16==9)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4))))))&&!(a20==1)))&&(((a17==2)&&(!(a26==1)&&(((((a28==1)&&(a23==1))&&(a19==5))||(a8==1))&&(a1==13))))||(a24==1)))){ + a16 = 7; + a21 = 10; + a9 = 9; + a5 = 5; + a20 = 1; + a1 = 12; + a19 = 1; + a29 = 1; + a11 = 0; + a25 = 1; + return -1; + } else if((((a4==1)||((((((a13==1)&&(a6==1))&&(a17==2))&&(a1==12))||(a27==1))||(a4==1)))&&((((((a16==8)&&(((input==3)&&(((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))&&(a12==1)))&&(a21==12))&&!(a0==1))&&(a19==5))&&!(a20==1)))){ + a5 = 5; + a9 = 11; + a20 = 1; + a19 = 2; + a16 = 7; + a21 = 10; + a25 = 1; + a15 = 0; + a23 = 0; + return -1; + } else if(((!(a27==1)&&((a27==1)||((a17==2)&&(!(a20==1)&&((a21==11)&&(a28==1))))))&&(((((!(a14==1)&&((input==4)&&((((a9==11)&&((a1==14)&&(a5==6)))&&(a19==4))||((a19==5)&&((a9==7)&&((a5==4)&&(a1==12)))))))&&(a12==1))&&(a16==7))&&(a2==1))&&(a28==1)))){ + a1 = 12; + a0 = 0; + a19 = 1; + a5 = 4; + a9 = 7; + a2 = 1; + a21 = 10; + a20 = 1; + return -1; + } else if((((a1==13)&&((((a21==11)&&(((((a5==4)||(a5==5))&&(input==5))&&(a12==1))&&!(a27==1)))&&(a16==9))&&(a23==1)))&&(((((a9==11)&&((a19==4)&&(((a2==1)&&!(a14==1))&&(a23==1))))&&(a17==2))||(a14==1))&&!(a20==1)))){ + a20 = 1; + a5 = 5; + a16 = 7; + a19 = 1; + a1 = 14; + a10 = 1; + a18 = 1; + a3 = 0; + a9 = 9; + a21 = 10; + return 21; + } else if(((((a7==1)||((((a19==4)&&(((a13==1)||(a18==1))&&(a1==13)))&&(a3==1))||(a27==1)))&&(a16==9))&&((a9==10)&&((a17==2)&&((((a6==1)&&(((input==4)&&((a5==5)||(a5==6)))&&!(a4==1)))&&(a21==12))&&!(a20==1)))))){ + a28 = 0; + a5 = 4; + a25 = 0; + a9 = 7; + a1 = 12; + a20 = 1; + a19 = 1; + a21 = 10; + a7 = 1; + a16 = 7; + return -1; + } else if((((a5==5)&&((((((((a2==1)&&(a11==1))&&(a21==11))&&(a6==1))&&(a19==2))&&(a1==13))&&!(a26==1))&&(a9==11)))&&((!(a27==1)&&(((((input==4)&&!(a20==1))&&(a17==2))&&(a13==1))&&(a16==7)))&&!(a24==1)))){ + a19 = 1; + a9 = 7; + a2 = 1; + a27 = 0; + a5 = 4; + a21 = 10; + a1 = 12; + a13 = 1; + a20 = 1; + return -1; + } else if((((a7==1)||(!(a13==1)||((a1==12)&&(((a9==9)&&((a11==1)||(a4==1)))&&(a5==6)))))&&((a17==2)&&(!(a26==1)&&((a12==1)&&(((((a13==1)&&((input==5)&&(a21==10)))&&!(a20==1))&&(a19==5))&&(a16==9))))))){ + if((a21==11)){ + a9 = 10; + a0 = 1; + a20 = 1; + a19 = 4; + a14 = 1; + a16 = 10; + a7 = 1; + }else{ + a21 = 11; + a16 = 7; + a22 = 1; + a2 = 0; + a1 = 13; + a15 = 1; + a9 = 11; + } + return -1; + } else if((((((a21==10)&&((a19==5)&&((a5==6)&&((a12==1)&&(a1==13)))))||(a26==1))||!(a23==1))&&(!(a4==1)&&((a23==1)&&((a11==1)&&(((a9==11)&&((!(a20==1)&&((input==5)&&(a16==8)))&&(a17==2)))&&(a6==1))))))){ + a20 = 1; + a1 = 12; + a16 = 7; + a5 = 4; + a24 = 0; + a14 = 0; + a26 = 0; + a9 = 7; + a19 = 1; + return -1; + } else if(((((a9==8)&&(((a23==1)&&((!(a27==1)&&((a14==1)||(a28==1)))&&(a17==2)))||!(a28==1)))&&(a20==1))&&((a2==1)&&((a28==1)&&((a19==3)&&(((a1==12)&&((a16==8)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4))))&&(a21==11))))))){ + a21 = 10; + a5 = 4; + a19 = 1; + a16 = 7; + a28 = 1; + a9 = 7; + a6 = 1; + return -1; + } else if(((((((((input==6)&&(((a9==7)&&((a5==4)&&(a1==13)))||((((a5==5)&&(a1==12))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==12))))))&&(a17==2))&&(a11==1))&&(a16==8))&&(a20==1))&&(a12==1))&&((a12==1)&&(((a19==5)&&(!(a12==1)||(((a28==1)&&(a21==12))||(a8==1))))&&(a13==1))))){ + a26 = 0; + a19 = 4; + a16 = 10; + a9 = 11; + a23 = 1; + a1 = 14; + a13 = 1; + a5 = 6; + return 23; + } else if(((((!(a20==1)&&(((a6==1)&&(!(a6==1)||((a28==1)&&(!(a26==1)&&(a28==1)))))&&(a16==10)))&&(a17==2))&&(a9==9))&&((a19==4)&&((a1==14)&&((a2==1)&&(((a21==12)&&(((a5==4)||(a5==5))&&(input==6)))&&(a23==1))))))){ + a13 = 0; + a21 = 10; + a5 = 5; + a16 = 7; + a18 = 1; + a20 = 1; + a19 = 1; + a1 = 13; + a11 = 0; + return 25; + } else if((((((((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==1))&&(a13==1))&&!(a20==1))&&(a21==11))&&!(a14==1))&&((!(a24==1)&&(!(a26==1)&&(((a6==1)&&((a16==7)&&((a1==13)&&((a17==2)&&(a28==1)))))&&(a19==4))))||!(a3==1)))){ + a9 = 11; + a5 = 6; + a16 = 8; + a23 = 1; + a1 = 12; + a19 = 5; + a24 = 0; + a20 = 1; + a21 = 10; + return 23; + } else if(((((a21==11)&&(((a13==1)&&((a3==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a12==1))))&&(a9==8)))&&(a11==1))&&(!(a20==1)&&((a1==14)&&((!(a23==1)||(((a19==1)&&((a16==10)&&(a13==1)))&&(a17==2)))&&(a6==1)))))){ + a25 = 1; + a9 = 9; + a1 = 12; + a19 = 2; + a20 = 1; + a10 = 1; + a5 = 4; + a21 = 10; + a16 = 7; + a15 = 0; + return -1; + } else if((((a20==1)&&((((!(a18==1)&&((a21==12)&&((a9==8)&&((a1==13)&&((a28==1)&&(a12==1))))))&&(a19==3))&&!(a26==1))&&(a17==2)))&&((((!(a18==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))&&(a16==8))&&(a28==1))&&(a11==1)))){ + a1 = 12; + a21 = 10; + a19 = 1; + a16 = 7; + a7 = 0; + a26 = 0; + a5 = 4; + a11 = 1; + a9 = 7; + return -1; + } else if(((((((a0==1)||(!(a24==1)&&((a28==1)||!(a23==1))))&&(a19==3))||(a24==1))&&!(a18==1))&&(((a17==2)&&(((a21==12)&&((a28==1)&&((((a1==13)&&(input==1))&&(a5==5))&&(a20==1))))&&(a9==11)))&&(a16==10)))){ + if((a18==1)){ + a11 = 1; + a1 = 12; + a16 = 8; + a20 = 0; + a19 = 5; + a21 = 10; + a26 = 0; + a13 = 1; + }else{ + a5 = 6; + a27 = 0; + a16 = 7; + a2 = 1; + a9 = 10; + a1 = 14; + a4 = 0; + a21 = 10; + a19 = 2; + } + return 21; + } else if((((a21==10)&&(!(a24==1)&&((((a1==12)&&((a5==6)&&((((input==3)&&(a20==1))&&(a16==10))&&(a17==2))))&&!(a26==1))&&(a6==1))))&&(!(a3==1)||(((a9==10)&&((a19==1)&&(!(a23==1)||(a13==1))))||!(a6==1))))){ + a16 = 7; + a28 = 1; + a14 = 0; + a9 = 7; + a5 = 4; + a13 = 1; + return -1; + } else if(((((!(a4==1)&&((a3==1)&&((a16==8)&&((input==4)&&(((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))))))&&!(a4==1))&&(a1==12))&&((a6==1)&&(!(a14==1)&&(((((a19==5)&&((a21==12)&&(a2==1)))&&!(a20==1))&&(a17==2))&&(a12==1)))))){ + a5 = 5; + a19 = 4; + a3 = 0; + a9 = 10; + a12 = 0; + a15 = 1; + a16 = 7; + a21 = 10; + return -1; + } else if((((!(a7==1)&&(!(a14==1)&&(((a19==5)&&((input==3)&&(a21==10)))&&(a17==2))))&&(a12==1))&&((!(a23==1)||((a5==4)&&(!(a20==1)&&(!(a12==1)||(!(a12==1)||((a9==9)&&((a1==13)&&(a11==1))))))))&&(a16==10)))){ + a1 = 12; + a19 = 1; + a0 = 1; + a22 = 1; + a9 = 8; + a20 = 1; + a16 = 7; + return 21; + } else if((((a19==5)&&(((a5==5)&&((!(a7==1)&&(!(a20==1)&&(((a1==14)&&(a11==1))&&(a23==1))))&&(a28==1)))&&(a17==2)))&&((a21==12)&&((a16==10)&&(!(a27==1)&&(!(a0==1)&&((a28==1)&&((input==1)&&(a9==11))))))))){ + if((a28==1)){ + a16 = 7; + a3 = 0; + a21 = 10; + a23 = 0; + a9 = 10; + a1 = 12; + a19 = 2; + a28 = 0; + }else{ + a10 = 1; + a25 = 1; + a9 = 7; + a5 = 6; + a11 = 0; + a20 = 1; + a19 = 1; + a21 = 10; + a16 = 7; + } + return -1; + } else if(((!(a27==1)&&((a1==12)&&(!(a11==1)||(((!(a2==1)||((a17==2)&&(((a23==1)||(a4==1))&&(a3==1))))&&(a9==7))&&(a16==10)))))&&(!(a20==1)&&((a21==12)&&(((a19==4)&&((input==4)&&(a5==5)))&&(a11==1)))))){ + a5 = 6; + a11 = 0; + a1 = 14; + a19 = 5; + a21 = 10; + a2 = 0; + return -1; + } else if(((!(a13==1)||(((((a9==10)&&(!(a4==1)&&((a21==12)&&((a17==2)&&(a23==1)))))||(a8==1))||!(a12==1))&&!(a18==1)))&&((!(a27==1)&&(((((a20==1)&&(input==4))&&(a16==10))&&(a5==5))&&(a1==14)))&&(a19==2)))){ + a16 = 7; + a9 = 7; + a5 = 4; + a19 = 1; + a21 = 10; + a24 = 0; + a1 = 12; + a28 = 1; + a7 = 0; + return -1; + } else if((((a23==1)&&(((((a16==9)&&(((a17==2)&&(input==3))&&(a1==14)))&&(a13==1))&&(a23==1))&&!(a0==1)))&&((((a9==9)&&((!(a20==1)&&((a19==3)&&((a3==1)||!(a13==1))))&&(a5==5)))||(a7==1))&&(a21==12)))){ + a9 = 11; + a21 = 11; + a19 = 1; + a13 = 0; + a5 = 4; + a10 = 0; + a16 = 8; + a6 = 0; + return -1; + } else if((((((a7==1)&&((a0==1)&&((a21==11)&&((!(a3==1)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6))))&&(a14==1)))))&&(a9==9))&&(a16==8))&&((((a17==2)&&((a20==1)&&((a24==1)&&((a13==1)&&(a4==1)))))&&(a19==1))&&(a1==13)))){ + a5 = 6; + a21 = 10; + a16 = 7; + a1 = 12; + a3 = 0; + a19 = 2; + a15 = 0; + a9 = 10; + a10 = 0; + return -1; + } else if((((a17==2)&&(((((((a3==1)&&(((input==3)&&((a5==5)||(a5==6)))&&(a19==1)))&&(a9==9))&&!(a7==1))&&(a11==1))&&(a21==10))&&(a16==9)))&&(((((a20==1)&&((a28==1)&&!(a0==1)))&&!(a4==1))&&(a1==12))||!(a23==1)))){ + a9 = 7; + a16 = 7; + a23 = 1; + a5 = 4; + a12 = 1; + return -1; + } else if((((a19==3)&&((a20==1)&&(!(a8==1)&&((a21==10)&&((a2==1)&&((a28==1)&&((a16==10)&&(input==5))))))))&&((a17==2)&&((a1==13)&&(((a11==1)&&((((a3==1)||(a0==1))||!(a28==1))&&(a5==5)))&&(a9==8)))))){ + a3 = 1; + a19 = 2; + a5 = 4; + a1 = 14; + a4 = 0; + return 21; + } else if((((a16==10)&&(((((a23==1)&&((a13==1)&&((((input==4)&&((a5==5)||(a5==6)))&&!(a20==1))&&(a17==2))))&&(a21==10))&&(a2==1))&&!(a7==1)))&&((a1==13)&&(((a19==1)&&(!(a13==1)||((a9==9)&&(a2==1))))&&(a28==1))))){ + a20 = 1; + a16 = 7; + a1 = 12; + a15 = 0; + a25 = 1; + a9 = 7; + a5 = 6; + a14 = 1; + return 21; + } else if(((((((a9==9)&&(!(a13==1)||((((a3==1)&&(a1==12))&&(a16==7))||(a4==1))))&&(a19==3))&&(a3==1))&&(a3==1))&&((!(a20==1)&&(((a17==2)&&(((a5==4)&&(input==4))&&!(a7==1)))&&(a21==12)))&&!(a7==1)))){ + a16 = 10; + a20 = 1; + a1 = 13; + a9 = 10; + a24 = 0; + a5 = 5; + a26 = 0; + a19 = 4; + a21 = 11; + return 22; + } else if(((((((a20==1)&&((a23==1)&&(((a16==10)&&(input==5))&&!(a0==1))))&&(a21==11))&&(a19==2))&&(a9==9))&&((a5==4)&&((a1==13)&&((!(a7==1)&&((((a17==2)&&(a11==1))&&!(a26==1))&&(a13==1)))||(a18==1)))))){ + a16 = 11; + a1 = 14; + a19 = 1; + a9 = 8; + a5 = 5; + a3 = 1; + a4 = 0; + return 23; + } else if((((a20==1)&&((a16==11)&&((a19==3)&&((a12==1)&&(!(a27==1)&&((!(a27==1)&&((((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6))))&&(input==5)))&&(a21==10)))))))&&((!(a24==1)&&(!(a3==1)||(((a3==1)&&(a17==2))&&(a2==1))))&&(a1==12)))){ + a0 = 0; + a5 = 6; + a21 = 11; + a9 = 10; + a18 = 0; + return 21; + } else if(((((((!(a18==1)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==1)))&&(a12==1))&&(a3==1))&&(a16==10))&&(a11==1))&&((((!(a3==1)||((a19==1)&&(((a28==1)&&(a12==1))&&!(a20==1))))&&(a17==2))&&(a21==10))&&(a1==12)))){ + a19 = 5; + a2 = 0; + a4 = 1; + a5 = 4; + a21 = 11; + a10 = 1; + a1 = 13; + a16 = 8; + a9 = 7; + return -1; + } else if((((a16==11)&&(((a20==1)&&((!(a7==1)&&((((((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(input==3))&&(a19==5))&&(a17==2)))&&(a1==12)))&&!(a7==1)))&&(((!(a27==1)&&((!(a6==1)||(a2==1))&&(a21==12)))||(a24==1))||!(a6==1)))){ + a7 = 0; + a5 = 4; + a21 = 10; + a27 = 0; + a9 = 7; + a19 = 1; + a16 = 7; + a13 = 1; + return -1; + } else if(((!(a26==1)&&((a19==5)&&((((a16==7)&&(!(a0==1)&&((!(a18==1)&&((a9==7)&&(input==4)))&&(a5==5))))&&(a1==12))&&!(a4==1))))&&(((a23==1)&&((a20==1)&&(((a28==1)&&(a17==2))&&(a21==10))))||(a18==1)))){ + a1 = 14; + a23 = 1; + a19 = 1; + a2 = 1; + a9 = 10; + a21 = 12; + a28 = 1; + a5 = 4; + return 22; + } else if(((((!(a2==1)||((a27==1)||((((a17==2)&&(((a12==1)&&(a19==4))&&(a1==12)))&&(a21==10))||!(a11==1))))&&!(a8==1))||!(a3==1))&&(!(a7==1)&&(((a20==1)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==6)))&&(a16==7))))){ + a9 = 9; + a6 = 1; + a5 = 6; + a21 = 11; + a1 = 13; + a26 = 0; + a19 = 3; + a11 = 1; + return 22; + } else if(((!(a4==1)&&(((a28==1)&&(((a1==13)&&((a12==1)&&((a20==1)&&((a9==9)&&(input==5)))))&&(a17==2)))&&(a6==1)))&&((a28==1)&&((((a21==11)&&((a19==5)&&((a13==1)&&(a16==8))))&&!(a0==1))&&(a5==4))))){ + a0 = 0; + a16 = 7; + a21 = 10; + a2 = 1; + a9 = 7; + a19 = 1; + a1 = 12; + a11 = 1; + return -1; + } else if((((((((a19==1)&&((a12==1)&&((!(a20==1)&&((a17==2)&&(input==5)))&&(a2==1))))&&(a9==11))&&!(a7==1))&&(a5==6))&&(a3==1))&&(((((a21==11)&&((a11==1)&&(a11==1)))&&(a1==12))&&(a16==9))&&!(a27==1)))){ + if((a1==14)){ + a10 = 1; + a5 = 4; + a16 = 7; + a21 = 10; + a9 = 10; + a1 = 13; + a20 = 1; + a28 = 0; + a7 = 1; + }else{ + a18 = 1; + a3 = 0; + a20 = 1; + a21 = 10; + a19 = 2; + a9 = 10; + a16 = 7; + a7 = 1; + } + return 23; + } else if(((((a9==8)&&((a21==10)&&((((a11==1)&&((((((a5==5)||(a5==6))&&(input==6))&&(a1==12))&&(a6==1))&&(a16==10)))&&(a17==2))&&(a19==2))))&&(a13==1))&&((a11==1)&&((!(a3==1)||((a28==1)&&(a20==1)))&&!(a24==1))))){ + a5 = 6; + a16 = 8; + a21 = 12; + a19 = 5; + a1 = 14; + a18 = 0; + a7 = 0; + return 26; + } else if((((a28==1)&&((((a8==1)||((a21==11)&&(a3==1)))&&!(a20==1))&&(a16==8)))&&((a23==1)&&(((a3==1)&&((a1==12)&&(((((a2==1)&&((a19==2)&&(input==3)))&&(a9==10))&&(a17==2))&&(a5==4))))&&(a2==1))))){ + a19 = 1; + a7 = 0; + a21 = 10; + a2 = 1; + a16 = 7; + a20 = 1; + a9 = 7; + a24 = 0; + return -1; + } else if((((a9==11)&&((a1==14)&&(((a19==2)&&(((a27==1)&&(!(a20==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5))))&&(a16==7)))&&(a26==1))))&&((a17==2)&&((((((a14==1)&&(a12==1))&&(a4==1))&&(a4==1))&&!(a12==1))&&(a21==12))))){ + a5 = 4; + a21 = 10; + a22 = 0; + a13 = 0; + a20 = 1; + a19 = 1; + a9 = 7; + a1 = 13; + return 21; + } else if((((a9==10)&&(((a12==1)&&((a17==2)&&(!(a27==1)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&(a12==1))&&(a20==1)))))&&(a1==12)))&&((a16==10)&&((a21==12)&&((!(a24==1)&&(!(a28==1)||(!(a3==1)||(a6==1))))&&(a19==1)))))){ + a1 = 13; + a19 = 2; + a21 = 10; + a18 = 0; + a5 = 4; + a9 = 9; + a16 = 7; + a0 = 0; + a8 = 0; + return -1; + } else if((((a21==11)&&(((a16==7)&&(((a4==1)||((!(a0==1)&&(!(a11==1)||(a12==1)))||!(a11==1)))&&!(a24==1)))&&(a20==1)))&&((((!(a0==1)&&((a19==1)&&((a5==4)&&(input==1))))&&(a1==14))&&(a17==2))&&(a9==11)))){ + a3 = 1; + a4 = 0; + a23 = 1; + a9 = 7; + a1 = 12; + a21 = 10; + return -1; + } else if((((!(a27==1)&&((a3==1)&&((a7==1)||((a21==10)&&((a16==10)&&((a1==13)&&((a23==1)&&(a6==1))))))))&&!(a24==1))&&((((a17==2)&&((a9==7)&&((a19==2)&&((input==1)&&((a5==4)||(a5==5))))))&&!(a14==1))&&(a20==1)))){ + a19 = 1; + a1 = 12; + a16 = 7; + a18 = 0; + a3 = 1; + a8 = 0; + a5 = 4; + return -1; + } else if((((((((a17==2)&&(a13==1))&&!(a12==1))&&(a1==14))&&!(a13==1))&&(a27==1))&&(!(a28==1)&&((((((((a19==2)&&((input==5)&&((a5==4)||(a5==5))))&&(a21==11))&&!(a23==1))&&(a9==11))&&(a16==8))&&!(a20==1))&&!(a23==1))))){ + a9 = 9; + a19 = 1; + a20 = 1; + a25 = 1; + a16 = 7; + a1 = 13; + a22 = 1; + a5 = 6; + a15 = 1; + return 25; + } else if((((a9==10)&&((a16==9)&&(((a19==1)&&(!(a8==1)&&((a28==1)&&((input==5)&&(a17==2)))))&&(a5==6))))&&((((a1==14)&&((!(a12==1)||((a7==1)||((a23==1)||!(a12==1))))&&(a21==10)))||!(a12==1))&&(a20==1)))){ + a19 = 4; + a4 = 0; + a28 = 1; + a1 = 12; + a16 = 10; + a9 = 8; + a21 = 11; + a5 = 5; + return 21; + } else if(((!(a18==1)&&(((a17==2)&&((a1==12)&&((a9==11)&&((((a5==5)||(a5==6))&&(input==4))&&!(a20==1)))))&&(a16==7)))&&(((a19==4)&&((!(a2==1)||((((a14==1)||(a28==1))||!(a11==1))&&(a21==10)))&&!(a24==1)))&&(a12==1)))){ + a9 = 7; + a7 = 0; + a5 = 4; + a3 = 1; + a20 = 1; + a19 = 1; + a23 = 1; + return -1; + } else if(((!(a3==1)||(!(a28==1)||((((a6==1)&&!(a14==1))&&(a21==11))&&(a5==5))))&&((a17==2)&&((((a16==7)&&((((a12==1)&&((a13==1)&&((a20==1)&&(input==3))))&&(a9==11))&&(a23==1)))&&(a1==13))&&(a19==5))))){ + a18 = 0; + a19 = 2; + a1 = 14; + a6 = 1; + a5 = 4; + a16 = 8; + a21 = 12; + a23 = 1; + return 25; + } else if((((a16==10)&&((a21==12)&&((input==3)&&((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4))))))&&((a20==1)&&(((!(a6==1)||(!(a4==1)&&((a0==1)||((a19==5)&&((((a14==1)||(a2==1))&&(a12==1))||!(a13==1))))))&&(a1==14))&&(a17==2))))){ + a4 = 0; + a1 = 12; + a19 = 1; + a9 = 7; + a11 = 1; + a5 = 4; + a16 = 7; + a2 = 1; + a21 = 10; + return -1; + } else if(((((((a17==2)&&((a1==14)&&(((!(a28==1)||(a23==1))&&(a13==1))&&(a2==1))))&&(a19==1))&&(a20==1))&&(a21==10))&&((a16==10)&&((!(a4==1)&&(!(a18==1)&&((((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(input==6))))&&!(a4==1))))){ + a12 = 1; + a16 = 7; + a8 = 0; + a23 = 1; + a1 = 12; + a9 = 7; + a5 = 4; + return -1; + } else if((((!(a18==1)&&(((a19==2)&&((a3==1)&&(a6==1)))&&!(a24==1)))&&!(a14==1))&&((((a16==8)&&((a1==12)&&((!(a18==1)&&((((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4)))&&(input==1))&&(a21==11)))&&(a11==1))))&&(a20==1))&&(a17==2)))){ + a5 = 6; + a1 = 14; + a9 = 10; + a2 = 1; + a20 = 0; + a7 = 0; + a18 = 0; + a21 = 10; + return 21; + } else if((((!(a2==1)||((a17==2)&&((a28==1)&&(((((a21==12)&&((a23==1)&&((a20==1)&&((a23==1)&&(a13==1)))))||!(a23==1))&&(a16==9))&&!(a8==1)))))&&(a9==10))&&((((input==5)&&(a19==4))&&(a1==13))&&(a5==5)))){ + a21 = 10; + a12 = 1; + a9 = 7; + a3 = 1; + a1 = 12; + a19 = 1; + a16 = 7; + a5 = 4; + a26 = 0; + return -1; + } else if((((a19==4)&&((a1==14)&&((a3==1)&&!(a14==1))))&&((a3==1)&&((!(a8==1)&&(!(a7==1)&&((((a16==10)&&((a21==12)&&((((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))&&(input==1))&&(a20==1))))&&!(a0==1))&&!(a14==1))))&&(a17==2))))){ + a16 = 7; + a6 = 1; + a21 = 10; + a1 = 12; + a19 = 1; + a13 = 1; + a3 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if((((((((a3==1)&&((((a13==1)||!(a12==1))||(a8==1))&&(a5==4)))&&(a16==7))&&!(a20==1))&&(a23==1))&&(a1==14))&&(((a17==2)&&(((a3==1)&&(!(a4==1)&&((input==6)&&(a9==10))))&&(a19==2)))&&(a21==12)))){ + a1 = 12; + a9 = 7; + a19 = 1; + a27 = 0; + a21 = 10; + a28 = 1; + a20 = 1; + a18 = 0; + return -1; + } else if(((!(a27==1)&&((a17==2)&&(!(a6==1)||((a20==1)&&(!(a8==1)&&((a16==11)&&((a6==1)&&(a21==11))))))))&&(((a19==3)&&(!(a8==1)&&((((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==5))&&!(a14==1))&&!(a18==1))))&&(a1==13)))){ + a13 = 1; + a1 = 14; + a19 = 1; + a21 = 12; + a5 = 4; + a9 = 10; + a26 = 0; + return 21; + } else if(((!(a27==1)&&((a23==1)&&((a9==11)&&(((a21==11)&&((a1==12)&&((a19==5)&&(input==5))))&&(a5==4)))))&&(!(a8==1)&&(((a6==1)&&(((((a3==1)&&(a3==1))&&(a20==1))&&(a16==8))&&(a17==2)))&&(a2==1))))){ + a9 = 7; + a11 = 1; + a19 = 1; + a16 = 7; + a21 = 10; + a28 = 1; + return -1; + } else if((((((a20==1)&&(((a27==1)&&((a21==12)&&((a8==1)&&(((input==3)&&((((a5==6)&&(a1==13))&&(a9==11))||(((a1==14)&&(a5==4))&&(a9==7))))&&(a17==2)))))&&!(a23==1)))&&(a24==1))&&(a16==7))&&(!(a3==1)&&(((a11==1)&&(a19==1))&&(a14==1))))){ + a19 = 5; + a9 = 8; + a15 = 0; + a6 = 0; + a14 = 1; + a1 = 14; + a5 = 6; + a20 = 0; + return -1; + } else if(((!(a27==1)&&((a23==1)&&((a1==14)&&((a19==2)&&((((input==1)&&(((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))))&&(a16==9))&&(a17==2))))))&&((a3==1)&&((((a23==1)&&(!(a20==1)&&((a23==1)&&(a12==1))))||(a0==1))&&(a21==12))))){ + if((a21==11)){ + a9 = 8; + a1 = 12; + a21 = 10; + a3 = 0; + a5 = 5; + a16 = 7; + a13 = 0; + a19 = 1; + a20 = 1; + }else{ + a9 = 11; + a5 = 5; + a20 = 1; + a22 = 0; + a1 = 12; + a6 = 0; + a7 = 1; + a16 = 7; + a21 = 10; + } + return 21; + } else if((((a19==3)&&(((((a3==1)&&((a6==1)&&((a3==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&(a3==1)))))&&!(a20==1))&&(a16==7))&&(a21==10)))&&((a1==14)&&(!(a11==1)||((a9==9)&&((a17==2)&&((a8==1)||(a28==1)))))))){ + a6 = 1; + a20 = 1; + a19 = 1; + a12 = 1; + a9 = 7; + a8 = 0; + a5 = 4; + a1 = 12; + return -1; + } else if(((((!(a24==1)&&(((a21==10)&&((!(a0==1)&&((a19==3)&&(input==6)))&&!(a26==1)))&&!(a20==1)))&&(a1==14))&&(a6==1))&&((a16==9)&&(((((a9==7)&&((a17==2)&&(a12==1)))&&(a12==1))&&(a5==5))||!(a28==1))))){ + a5 = 6; + a15 = 0; + a9 = 8; + a3 = 0; + a4 = 1; + a16 = 8; + return -1; + } else if(((!(a20==1)&&(((a9==9)&&((a3==1)&&((a16==11)&&((a13==1)&&((a1==12)&&(((a5==4)||(a5==5))&&(input==3)))))))&&(a12==1)))&&((a21==10)&&((a19==1)&&(((((a3==1)&&(a6==1))||(a26==1))&&(a17==2))&&!(a18==1)))))){ + a22 = 0; + a20 = 1; + a5 = 5; + a10 = 1; + a16 = 7; + a6 = 0; + a9 = 8; + a19 = 2; + return 23; + } else if((((a6==1)&&(((((!(a27==1)&&(((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8)))&&(input==4)))&&!(a20==1))&&(a17==2))&&(a19==2))&&(a16==9)))&&((((((a21==12)&&((a24==1)||(a6==1)))&&(a12==1))&&(a23==1))&&(a1==14))&&(a2==1)))){ + a5 = 5; + a9 = 8; + a6 = 0; + a19 = 1; + a21 = 10; + a12 = 0; + a20 = 1; + a16 = 7; + a10 = 1; + return 23; + } else if(((!(a13==1)||((((((a20==1)&&((((a21==12)&&(a3==1))||(a0==1))&&(a5==4)))||(a4==1))&&(a17==2))&&(a1==13))||!(a3==1)))&&(((a6==1)&&(!(a14==1)&&(((input==6)&&(a19==2))&&(a9==11))))&&(a16==7)))){ + a2 = 1; + a5 = 5; + a9 = 10; + a8 = 0; + a19 = 3; + a21 = 10; + a6 = 1; + a16 = 9; + return 22; + } else if(((((a19==2)&&((a1==13)&&((a20==1)&&((!(a2==1)&&((((a5==5)||(a5==6))&&(input==6))&&(a9==7)))&&!(a28==1)))))&&(a24==1))&&(!(a2==1)&&(!(a12==1)&&((a8==1)&&((a17==2)&&((a16==11)&&((a21==10)&&(a23==1))))))))){ + a5 = 5; + a28 = 0; + a29 = 0; + a1 = 12; + a9 = 8; + a16 = 9; + a21 = 11; + a10 = 0; + return 21; + } else if(((!(a20==1)&&((a17==2)&&(!(a3==1)||(((a13==1)&&((a19==4)&&((a23==1)||(a14==1))))&&(a16==9)))))&&((((((a9==9)&&(((a1==13)&&(input==6))&&!(a7==1)))&&(a6==1))&&(a11==1))&&(a5==4))&&(a21==12)))){ + a20 = 1; + a26 = 1; + a3 = 0; + a19 = 3; + a6 = 0; + a16 = 10; + a5 = 5; + a9 = 11; + return 22; + } else if(((!(a20==1)&&((a9==8)&&((((a2==1)&&(a21==12))||!(a12==1))&&(a19==4))))&&(((((((a17==2)&&((a12==1)&&((a3==1)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))))&&(a6==1))&&(a11==1))&&!(a7==1))&&(a1==14))&&(a16==8)))){ + a5 = 6; + a19 = 1; + a21 = 10; + a8 = 1; + a22 = 1; + a15 = 1; + a20 = 1; + a16 = 7; + return 21; + } else if(((((!(a0==1)&&(((!(a20==1)&&((a21==12)&&(input==3)))&&!(a4==1))&&(a5==5)))&&(a23==1))&&(a13==1))&&((((a9==10)&&((a13==1)&&((((a17==2)&&(a11==1))&&(a16==7))&&(a19==4))))&&(a1==13))&&(a28==1)))){ + a26 = 0; + a9 = 11; + a21 = 11; + a5 = 4; + a16 = 9; + a20 = 1; + a19 = 5; + a13 = 1; + a1 = 12; + return 21; + } else if(((((a3==1)&&(!(a26==1)&&((a17==2)&&((a1==14)&&((a19==4)&&(((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==1))&&(a21==11)))))))&&!(a7==1))&&(((!(a28==1)||(((a13==1)||!(a11==1))&&(a20==1)))&&(a16==11))&&!(a24==1)))){ + a1 = 12; + a16 = 7; + a9 = 7; + a0 = 0; + a21 = 10; + a5 = 4; + a6 = 1; + a19 = 1; + return -1; + } else if(((((a1==13)&&((!(a12==1)||(a2==1))&&!(a7==1)))&&(a16==7))&&((!(a18==1)&&((!(a0==1)&&(((a19==4)&&((((input==3)&&(((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))))&&!(a20==1))&&(a17==2)))&&(a21==12)))&&!(a14==1)))&&!(a14==1)))){ + a19 = 1; + a5 = 6; + a0 = 0; + a14 = 0; + a9 = 8; + a16 = 8; + a27 = 0; + a1 = 14; + a20 = 1; + return 21; + } else if(((!(a3==1)||((a12==1)&&((a11==1)&&((((((a3==1)&&(a21==11))||!(a28==1))&&(a16==11))&&(a9==7))&&(a17==2)))))&&(!(a7==1)&&((((a1==13)&&(((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&(a20==1)))&&(a19==3))&&!(a8==1))))){ + a8 = 0; + a5 = 4; + a19 = 1; + a16 = 7; + a1 = 12; + a3 = 1; + a21 = 10; + a14 = 0; + return -1; + } else if((((a13==1)&&(((a12==1)&&(((a9==7)&&(((a5==5)||(a5==6))&&(input==1)))&&!(a0==1)))&&!(a8==1)))&&(((((a17==2)&&(((a1==13)&&((a12==1)&&((a19==1)&&(a11==1))))&&(a11==1)))&&(a16==7))&&(a21==12))&&(a20==1)))){ + if((a27==1)){ + a11 = 1; + a2 = 1; + a5 = 4; + a19 = 5; + a27 = 0; + a9 = 9; + a20 = 0; + }else{ + a28 = 1; + a5 = 6; + a23 = 1; + a9 = 11; + a19 = 5; + a16 = 8; + a12 = 1; + a1 = 12; + } + return 22; + } else if(((((a1==13)&&(((((a13==1)&&(!(a11==1)||(a11==1)))&&(a17==2))&&!(a18==1))||(a0==1)))&&(a16==10))&&(((a19==3)&&((!(a20==1)&&((a13==1)&&(!(a4==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4)))))&&(a9==8)))&&(a21==12)))){ + if((a9==10)){ + a5 = 5; + a21 = 10; + a16 = 7; + a19 = 1; + a20 = 1; + a11 = 0; + a9 = 9; + a1 = 12; + a15 = 0; + }else{ + a5 = 5; + a9 = 9; + a19 = 1; + a10 = 1; + a16 = 8; + a11 = 0; + a22 = 1; + } + return -1; + } else if((((a16==11)&&(((a2==1)&&(((input==6)&&(((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))))&&(a20==1)))&&(a2==1)))&&((a19==3)&&((a21==10)&&(((((((a13==1)||!(a11==1))&&(a23==1))&&(a1==14))&&(a28==1))&&(a17==2))||!(a6==1)))))){ + a1 = 13; + a16 = 10; + a18 = 0; + a21 = 12; + a5 = 5; + a23 = 1; + a9 = 8; + a19 = 2; + return 21; + } else if(((!(a14==1)&&((((((a5==5)&&(!(a20==1)&&((input==1)&&(a16==7))))&&(a12==1))&&(a3==1))&&(a19==5))&&(a9==8)))&&((((a24==1)||((a17==2)&&(((a21==10)&&(a11==1))&&!(a14==1))))&&(a1==12))||!(a6==1)))){ + a5 = 4; + a1 = 13; + a19 = 2; + a27 = 0; + a13 = 1; + a9 = 7; + a20 = 1; + a6 = 1; + return -1; + } else if((((!(a20==1)&&(((((a19==4)&&(((input==5)&&((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a5==4)&&(a9==10))))&&!(a27==1)))&&(a2==1))&&!(a26==1))&&(a12==1)))&&(a1==13))&&((a21==11)&&(((!(a0==1)&&((a3==1)&&(a16==10)))&&!(a0==1))&&(a17==2))))){ + a16 = 7; + a9 = 9; + a15 = 0; + a5 = 5; + a1 = 12; + a28 = 0; + a20 = 1; + a21 = 10; + a19 = 2; + return 21; + } else if(((((a5==4)&&((a12==1)&&(!(a26==1)&&((a12==1)&&(!(a7==1)&&(!(a24==1)&&((input==5)&&(a9==7))))))))&&(a1==12))&&((a17==2)&&(((a21==10)&&((a19==3)&&((!(a20==1)&&(a23==1))&&!(a18==1))))&&(a16==10))))){ + if((a16==9)){ + a20 = 1; + a10 = 1; + a19 = 4; + a9 = 9; + a7 = 1; + a4 = 1; + a16 = 8; + a21 = 12; + }else{ + a16 = 9; + a19 = 5; + a26 = 1; + a1 = 14; + a9 = 9; + a21 = 11; + a15 = 0; + } + return 25; + } else if((((a1==12)&&((a19==2)&&((a17==2)&&(((a18==1)||(((!(a12==1)||((a21==10)&&(a23==1)))&&!(a27==1))&&(a9==7)))||!(a23==1)))))&&((a16==11)&&(!(a20==1)&&(((a6==1)&&(((a5==4)||(a5==5))&&(input==5)))&&(a11==1)))))){ + a20 = 1; + a19 = 1; + a18 = 1; + a16 = 7; + a5 = 6; + a23 = 0; + a1 = 13; + a4 = 1; + return -1; + } else if(((((a8==1)||((a6==1)&&((((((a1==14)&&(((a23==1)||!(a23==1))&&(a9==8)))||!(a2==1))&&(a6==1))&&(a17==2))||!(a12==1))))&&(a19==3))&&(((((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a20==1))&&(a16==11))&&(a21==10)))){ + a5 = 4; + a29 = 0; + a1 = 13; + a19 = 1; + a9 = 11; + a18 = 1; + a16 = 9; + a21 = 12; + a11 = 0; + return 21; + } else if((((!(a20==1)&&(((a17==2)&&(((a16==10)&&((a3==1)&&((a11==1)&&((a13==1)&&(a19==2)))))&&(a1==13)))||(a24==1)))&&!(a24==1))&&((a21==10)&&((((a28==1)&&((input==1)&&(a5==5)))&&(a2==1))&&(a9==11))))){ + a20 = 1; + a5 = 6; + a6 = 0; + a1 = 14; + a19 = 1; + a15 = 1; + a24 = 1; + a9 = 7; + a16 = 7; + return -1; + } else if((((a21==10)&&(((a11==1)&&((a16==9)&&(((a3==1)&&((a11==1)||!(a13==1)))&&(a1==12))))&&(a19==4)))&&(((a13==1)&&(!(a14==1)&&(!(a14==1)&&((((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))&&(input==5))&&(a17==2)))))&&!(a20==1)))){ + if((a7==1)){ + a8 = 1; + a25 = 0; + a20 = 1; + a21 = 11; + a5 = 6; + a19 = 5; + a9 = 8; + a7 = 1; + }else{ + a4 = 1; + a8 = 1; + a1 = 13; + a9 = 10; + a5 = 4; + a20 = 1; + a27 = 1; + a19 = 5; + } + return -1; + } else if((((a28==1)&&((a16==10)&&(((((!(a2==1)||(!(a20==1)&&(a2==1)))||(a18==1))&&(a19==3))||!(a11==1))||!(a6==1))))&&((a9==8)&&((a17==2)&&(!(a18==1)&&(((a21==10)&&(((a5==4)||(a5==5))&&(input==1)))&&(a1==12))))))){ + a20 = 1; + a1 = 14; + a25 = 1; + a28 = 0; + a3 = 0; + a19 = 1; + a16 = 7; + a9 = 10; + a5 = 6; + return 21; + } else if(((((a3==1)&&((((a16==9)&&(((a21==10)&&(!(a8==1)&&((input==5)&&((((a9==11)&&((a5==5)&&(a1==12)))||(((a1==12)&&(a5==6))&&(a9==11)))||(((a1==13)&&(a5==4))&&(a9==7))))))&&!(a18==1)))&&!(a7==1))&&!(a20==1)))&&(a13==1))&&((!(a8==1)&&((a28==1)&&(a17==2)))&&(a19==1)))){ + a4 = 1; + a27 = 1; + a5 = 5; + a26 = 1; + a1 = 13; + a16 = 7; + a9 = 8; + a20 = 1; + return -1; + } else if(((((((a17==2)&&((input==4)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8)))))&&(a1==12))&&(a16==8))&&(a19==4))&&(((((a4==1)&&(((((a23==1)&&(a20==1))&&!(a23==1))&&(a7==1))&&(a14==1)))&&(a21==12))&&(a27==1))&&!(a3==1)))){ + a16 = 7; + a9 = 9; + a19 = 2; + a13 = 0; + a21 = 10; + a5 = 4; + a12 = 0; + return -1; + } else if((((((a28==1)&&((a6==1)&&(((((a16==8)&&(a12==1))&&(a1==14))&&(a5==4))&&(a21==11))))&&!(a7==1))||(a24==1))&&((((((a19==5)&&((input==6)&&!(a20==1)))&&(a17==2))&&(a9==11))&&(a2==1))&&(a23==1)))){ + if((a25==1)){ + a10 = 0; + a16 = 7; + a26 = 1; + a19 = 2; + a6 = 0; + a21 = 10; + a20 = 1; + a1 = 12; + a9 = 10; + a5 = 6; + }else{ + a20 = 1; + a21 = 10; + a16 = 7; + a19 = 1; + a5 = 6; + a1 = 12; + a12 = 0; + a2 = 0; + a0 = 1; + a9 = 9; + } + return 21; + } else if(((!(a0==1)&&((a11==1)&&(((a21==11)&&(!(a20==1)&&((((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(input==1))))&&(a1==14))))&&((a17==2)&&((a16==8)&&((a19==4)&&(((!(a23==1)||((a28==1)&&!(a7==1)))&&(a3==1))||(a18==1))))))){ + a1 = 12; + a3 = 1; + a16 = 7; + a20 = 1; + a5 = 4; + a9 = 11; + a26 = 0; + return 25; + } else if((((a13==1)&&((a1==14)&&((a16==9)&&((a21==12)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1))))))&&((!(a14==1)&&(((a8==1)||((a24==1)||((((a9==10)&&((a2==1)&&(a12==1)))&&(a17==2))&&!(a20==1))))&&(a19==5)))||!(a28==1)))){ + a28 = 0; + a10 = 0; + a5 = 4; + a9 = 11; + a16 = 8; + a21 = 11; + a4 = 1; + return 22; + } else if((((a13==1)&&((a16==7)&&((a19==1)&&(((a14==1)||(!(a20==1)&&(a23==1)))||(a8==1)))))&&((((a2==1)&&((a17==2)&&((a1==14)&&(!(a14==1)&&((input==4)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5))))))))&&(a21==12))&&!(a14==1)))){ + a12 = 1; + a24 = 0; + a9 = 7; + a20 = 1; + a1 = 12; + a21 = 10; + a5 = 4; + a23 = 1; + return -1; + } else if((((a16==11)&&((a17==2)&&((!(a24==1)&&((a6==1)&&((a6==1)&&((input==4)&&((a5==5)||(a5==6))))))&&(a20==1))))&&((a1==12)&&((a9==9)&&((a19==2)&&(!(a12==1)||(!(a7==1)&&((a21==12)&&((a6==1)&&!(a4==1)))))))))){ + a9 = 7; + a21 = 10; + a16 = 7; + a19 = 1; + a28 = 1; + a5 = 4; + a23 = 1; + return -1; + } else if((((a17==2)&&(((a5==5)&&((a20==1)&&((a12==1)&&(a19==4))))&&!(a14==1)))&&((a3==1)&&(((!(a27==1)&&((((a6==1)&&((a21==12)&&((a9==7)&&(input==6))))&&(a1==12))&&(a16==8)))&&(a6==1))&&!(a7==1))))){ + a19 = 5; + a23 = 1; + a12 = 1; + a9 = 10; + a5 = 6; + a1 = 13; + a4 = 0; + return 22; + } else if((((a3==1)&&(((a9==10)&&((!(a4==1)&&((a12==1)&&((input==4)&&((a5==4)||(a5==5)))))&&!(a20==1)))&&(a1==13)))&&(!(a8==1)&&(((a21==11)&&((a16==7)&&((((a28==1)||!(a6==1))&&(a17==2))&&(a11==1))))&&(a19==4))))){ + a2 = 1; + a28 = 1; + a5 = 5; + a1 = 14; + a19 = 3; + a21 = 10; + a9 = 8; + a6 = 1; + return 25; + } else if((((a9==9)&&((a17==2)&&((a20==1)&&(!(a24==1)&&((a21==11)&&((a19==3)&&(input==3)))))))&&((a6==1)&&((a28==1)&&(!(a28==1)||(((a5==6)&&(((a16==7)&&((a1==14)&&(a12==1)))||(a0==1)))||(a4==1))))))){ + a2 = 1; + a24 = 0; + a21 = 10; + a1 = 12; + a5 = 4; + a9 = 7; + a19 = 1; + a28 = 1; + return -1; + } else if((((a17==2)&&((((a9==8)&&((a19==3)&&((a23==1)&&((input==6)&&((a5==4)||(a5==5))))))&&(a20==1))&&!(a0==1)))&&(((a12==1)&&((a26==1)||((a16==10)&&((a21==11)&&(((a11==1)||!(a28==1))&&(a3==1))))))&&(a1==13)))){ + a2 = 1; + a1 = 12; + a21 = 10; + a5 = 4; + a16 = 7; + a19 = 1; + a12 = 1; + a9 = 7; + a24 = 0; + return -1; + } else if((((a1==14)&&((a9==11)&&((a16==9)&&(((((a5==4)||(a5==5))&&(input==1))&&(a20==1))&&(a12==1)))))&&((a12==1)&&((a4==1)||((a21==11)&&((!(a0==1)&&(!(a6==1)||(((a6==1)&&(a19==2))&&(a17==2))))||(a14==1))))))){ + a6 = 1; + a21 = 12; + a9 = 8; + a5 = 5; + a16 = 10; + a1 = 13; + a2 = 1; + return 21; + } else if((((a11==1)&&!(a27==1))&&(!(a20==1)&&((a17==2)&&(((((a2==1)&&(((a19==4)&&((((a1==14)&&(((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))&&(input==1)))&&!(a14==1))&&(a21==10)))&&(a6==1)))&&(a16==10))&&(a6==1))&&(a11==1)))))){ + a5 = 5; + a9 = 8; + a20 = 1; + a15 = 0; + a2 = 0; + a16 = 7; + a19 = 1; + a23 = 0; + return 25; + } else if((((a12==1)&&((a18==1)||(((a27==1)||((((a26==1)||((((a9==10)&&(a11==1))&&(a19==1))&&(a5==5)))&&(a17==2))&&(a20==1)))&&!(a14==1))))&&(((((a1==13)&&(input==3))&&(a16==8))&&(a21==12))&&(a13==1)))){ + a13 = 1; + a8 = 0; + a16 = 7; + a5 = 4; + a21 = 10; + a9 = 7; + a1 = 12; + a2 = 1; + return -1; + } else if((((!(a4==1)&&(((((a2==1)&&(!(a14==1)&&((a12==1)&&((((!(a24==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3)))&&(a19==1))&&(a9==8))&&(a20==1)))))&&(a21==11))&&!(a7==1))&&(a17==2)))&&(a1==14))&&((a13==1)&&(a16==10)))){ + a23 = 1; + a13 = 1; + a9 = 7; + a16 = 7; + a1 = 12; + a21 = 10; + a11 = 1; + a5 = 4; + return -1; + } else if(((((((((a9==11)&&(((a5==4)&&((!(a8==1)&&((a17==2)&&(input==6)))&&(a16==8)))&&(a21==11)))&&!(a20==1))&&(a2==1))&&!(a0==1))&&(a11==1))&&!(a27==1))&&((a2==1)&&(((a1==12)&&(a3==1))&&(a19==3))))){ + a4 = 0; + a16 = 7; + a21 = 10; + a9 = 7; + a19 = 1; + a18 = 0; + a20 = 1; + a12 = 1; + return -1; + } else if((((((a19==1)&&(!(a26==1)&&((!(a6==1)||(a11==1))||!(a28==1))))&&!(a20==1))&&(a16==9))&&((((a1==14)&&(((a2==1)&&(((input==5)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9))))&&!(a24==1)))&&!(a7==1)))&&(a21==10))&&(a17==2)))){ + a26 = 1; + a1 = 12; + a5 = 4; + a16 = 7; + a20 = 1; + a0 = 1; + a9 = 10; + a18 = 1; + return -1; + } else if(((((a20==1)&&(((((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a5==4)&&(a9==10)))&&(input==5))&&(a21==11))&&(a28==1)))&&!(a7==1))&&((a4==1)||(((((a16==10)&&((((a28==1)&&(a1==13))&&(a19==4))&&(a17==2)))&&!(a4==1))||!(a11==1))&&!(a7==1))))){ + a9 = 7; + a19 = 1; + a6 = 1; + a18 = 0; + a1 = 12; + a21 = 10; + a23 = 1; + a16 = 7; + a5 = 4; + return -1; + } else if((((((a16==7)&&(((a7==1)||(((a7==1)||((a26==1)||(a11==1)))||(a7==1)))&&(a19==4)))||!(a13==1))&&(a1==12))&&((((a9==10)&&((!(a27==1)&&((a5==6)&&(input==5)))&&(a20==1)))&&(a21==11))&&(a17==2)))){ + a16 = 8; + a19 = 3; + a24 = 0; + a23 = 1; + a9 = 8; + a1 = 13; + a11 = 1; + return 25; + } else if(((((a2==1)&&((((a19==3)&&(((a1==14)&&(a3==1))||!(a12==1)))&&(a17==2))&&(a5==4)))||(a0==1))&&(!(a8==1)&&((a9==7)&&((a20==1)&&((a16==10)&&((((input==1)&&(a21==10))&&!(a24==1))&&!(a7==1)))))))){ + if((a25==1)){ + a16 = 8; + a21 = 11; + a9 = 11; + a20 = 0; + a27 = 0; + a5 = 5; + a18 = 0; + a28 = 1; + }else{ + a2 = 1; + a16 = 8; + a9 = 9; + a11 = 1; + a5 = 5; + a21 = 12; + a14 = 0; + a19 = 4; + } + return -1; + } else if((((a14==1)||((((a11==1)&&(a6==1))&&(a17==2))&&(a16==11)))&&(((a11==1)&&(!(a14==1)&&(!(a14==1)&&((a21==10)&&(((a20==1)&&((((a9==7)&&((a1==14)&&(a5==4)))||(((a9==11)&&((a5==5)&&(a1==13)))||(((a5==6)&&(a1==13))&&(a9==11))))&&(input==3)))&&(a19==3))))))&&!(a27==1)))){ + a9 = 7; + a12 = 1; + a5 = 4; + a18 = 0; + a19 = 1; + a16 = 7; + a1 = 12; + a27 = 0; + return -1; + } else if((((((a9==7)&&((((!(a18==1)&&(a2==1))||(a24==1))||(a24==1))&&(a1==12)))&&(a19==4))||(a4==1))&&((((((((input==6)&&((a5==4)||(a5==5)))&&(a20==1))&&!(a4==1))&&!(a7==1))&&(a16==7))&&(a21==11))&&(a17==2)))){ + a28 = 1; + a14 = 0; + a5 = 4; + a19 = 1; + a4 = 0; + a21 = 10; + return -1; + } else if(((((a17==2)&&(!(a8==1)&&(((((a5==5)||(a5==6))&&(input==4))&&(a21==11))&&(a16==9))))&&(a9==7))&&(((a11==1)&&(((a19==3)&&((((!(a18==1)&&(a28==1))&&!(a20==1))&&(a1==12))||!(a3==1)))||!(a12==1)))&&(a23==1)))){ + a9 = 8; + a0 = 1; + a5 = 4; + a20 = 1; + a28 = 0; + a1 = 13; + a6 = 0; + a19 = 2; + return -1; + } else if((((a16==9)&&((a21==12)&&(((a17==2)&&(a13==1))&&(a9==9))))&&((!(a3==1)&&((((a27==1)&&((((!(a13==1)&&((input==1)&&(a1==13)))&&(a5==6))&&(a20==1))&&!(a3==1)))&&(a26==1))&&(a26==1)))&&(a19==5)))){ + a9 = 11; + a16 = 7; + a24 = 1; + a5 = 5; + a21 = 11; + a1 = 12; + a25 = 1; + return -1; + } else if((((a16==10)&&((((a6==1)&&((!(a8==1)&&((input==6)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))))&&!(a0==1)))&&(a19==1))&&(a28==1)))&&(((a21==11)&&((a17==2)&&((((a6==1)&&!(a8==1))&&!(a26==1))&&(a1==13))))&&!(a20==1)))){ + a9 = 8; + a5 = 5; + a10 = 0; + a22 = 1; + a1 = 12; + a19 = 3; + a21 = 12; + return 21; + } else if(((!(a26==1)&&((a11==1)&&(!(a8==1)&&(((a19==1)&&(((((a9==11)&&((a1==13)&&(a5==5)))||((a9==11)&&((a5==6)&&(a1==13))))||((a9==7)&&((a1==14)&&(a5==4))))&&(input==4)))&&!(a20==1)))))&&(!(a7==1)&&(!(a13==1)||(((a16==8)&&((!(a6==1)||(a13==1))&&(a21==11)))&&(a17==2)))))){ + a7 = 0; + a12 = 1; + a5 = 4; + a16 = 7; + a0 = 0; + a20 = 1; + a9 = 7; + a21 = 10; + a1 = 12; + return -1; + } else if((((a20==1)&&((((a17==2)&&((a21==12)&&((a13==1)&&(a16==8))))&&(a26==1))&&(a4==1)))&&((((!(a11==1)&&(!(a23==1)&&((a27==1)&&((((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(input==3)))))&&!(a11==1))&&(a1==12))&&(a19==4)))){ + a13 = 0; + a9 = 10; + a19 = 1; + a5 = 5; + a25 = 0; + a16 = 7; + a8 = 1; + a21 = 10; + a1 = 13; + return -1; + } else if(((!(a18==1)&&(!(a18==1)&&((a16==8)&&((a21==11)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==5))))))&&(((a3==1)&&((a19==2)&&((a13==1)&&(((a1==12)&&((a20==1)&&((a6==1)&&(a3==1))))&&(a17==2)))))&&!(a27==1)))){ + if((a21==10)){ + a20 = 0; + a5 = 5; + a19 = 4; + a9 = 7; + a7 = 0; + a1 = 14; + a16 = 7; + a6 = 1; + a26 = 0; + }else{ + a9 = 7; + a1 = 14; + a16 = 10; + a8 = 0; + a18 = 0; + a5 = 5; + a19 = 3; + a28 = 1; + a21 = 10; + } + return 25; + } else if((((((a28==1)&&((a5==6)&&(((((a9==8)&&((input==6)&&(a21==11)))&&(a17==2))&&(a1==14))&&!(a8==1))))&&(a16==9))&&!(a26==1))&&((!(a12==1)||((((a28==1)&&!(a26==1))&&(a19==1))&&!(a20==1)))||!(a11==1)))){ + a16 = 7; + a5 = 4; + a1 = 12; + a2 = 0; + a21 = 10; + a9 = 7; + a25 = 1; + a20 = 1; + a8 = 1; + return 21; + } else if((((a1==14)&&((((a17==2)&&((input==4)&&!(a20==1)))&&(a9==10))&&(a27==1)))&&((!(a11==1)&&(!(a23==1)&&(!(a13==1)&&(!(a13==1)&&((a21==12)&&((a16==7)&&(((a8==1)&&(a13==1))&&(a19==2))))))))&&(a5==4)))){ + a4 = 1; + a16 = 11; + a19 = 5; + a15 = 0; + a22 = 1; + a9 = 11; + a20 = 1; + a21 = 10; + return 26; + } else if((((((a20==1)&&((((!(a6==1)||(a3==1))&&(a12==1))&&(a16==8))&&(a3==1)))||(a24==1))||!(a6==1))&&((a17==2)&&(!(a27==1)&&((a21==11)&&((input==6)&&(((((a1==12)&&(a5==5))&&(a9==7))&&(a19==5))||(((((a5==6)&&(a1==14))&&(a9==11))&&(a19==4))||((a19==5)&&((a9==7)&&((a5==4)&&(a1==12)))))))))))){ + a12 = 1; + a19 = 3; + a9 = 7; + a27 = 0; + a5 = 5; + a1 = 12; + a16 = 10; + return 21; + } else if(((((((((a1==12)&&(a5==6))&&(a9==11))||(((a1==13)&&(a5==4))&&(a9==7)))&&(input==5))&&(a16==10))&&!(a14==1))&&((!(a7==1)&&((!(a0==1)&&((((a21==10)&&((a20==1)&&((a11==1)&&(a17==2))))&&(a19==4))&&!(a24==1)))&&(a13==1)))&&!(a4==1)))){ + a5 = 5; + a9 = 8; + a1 = 12; + a26 = 0; + a19 = 1; + a2 = 1; + return 21; + } else if(((((!(a20==1)&&((a16==11)&&((a21==10)&&((!(a4==1)&&(a6==1))||!(a23==1)))))&&(a19==1))&&(a17==2))&&(((a12==1)&&((a1==13)&&((((a23==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a8==1))&&(a6==1))))&&(a9==9)))){ + a19 = 4; + a26 = 1; + a9 = 8; + a12 = 0; + a16 = 7; + a5 = 6; + a14 = 1; + return -1; + } else if(((((a12==1)&&(((a17==2)&&((input==5)&&(a19==1)))&&(a12==1)))&&(a21==12))&&((((((((a18==1)||(((a26==1)||(a2==1))||!(a23==1)))&&(a16==9))&&(a5==4))&&(a9==9))||(a0==1))&&(a1==14))&&!(a20==1)))){ + a1 = 13; + a25 = 1; + a21 = 10; + a26 = 1; + a20 = 1; + a7 = 1; + a16 = 7; + return -1; + } else if((((((((a19==1)&&((input==6)&&((a5==5)||(a5==6))))&&(a16==9))&&(a17==2))&&(a1==13))&&!(a18==1))&&((a2==1)&&((!(a13==1)||(((a21==11)&&((a9==11)&&(((a6==1)&&(a3==1))&&(a13==1))))&&(a20==1)))||(a7==1))))){ + a4 = 0; + a16 = 7; + a9 = 7; + a3 = 1; + a7 = 0; + a5 = 4; + a1 = 12; + a21 = 10; + return -1; + } else if((((a1==13)&&((a13==1)&&((a21==12)&&((a16==11)&&(((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5)))&&(input==3))))))&&((a11==1)&&(((a17==2)&&(((a28==1)&&(!(a26==1)&&((a19==2)&&(!(a3==1)||(a2==1)))))||!(a6==1)))&&(a20==1))))){ + a7 = 0; + a16 = 7; + a2 = 1; + a9 = 7; + a13 = 1; + a19 = 1; + a5 = 4; + a1 = 12; + a21 = 10; + return -1; + } else if((((a14==1)||(!(a7==1)&&((a20==1)&&((a19==3)&&((a11==1)&&(a23==1))))))&&(((((a16==7)&&((!(a18==1)&&(((((a9==11)&&((a1==12)&&(a5==5)))||((a9==11)&&((a5==6)&&(a1==12))))||(((a1==13)&&(a5==4))&&(a9==7)))&&(input==3)))&&!(a14==1)))&&(a17==2))&&(a21==11))&&!(a4==1)))){ + a16 = 8; + a1 = 13; + a5 = 5; + a21 = 10; + a19 = 5; + a9 = 11; + a6 = 1; + a7 = 0; + return 26; + } else if((((a17==2)&&((a19==5)&&((a28==1)&&((a28==1)&&(a21==12)))))&&(((((!(a24==1)&&((a28==1)&&(((a5==5)&&(((input==1)&&(a9==7))&&(a16==8)))&&(a20==1))))&&(a1==13))&&(a6==1))&&(a11==1))&&!(a27==1)))){ + a28 = 1; + a9 = 8; + a21 = 10; + a1 = 12; + a0 = 0; + return 25; + } else if((((!(a24==1)&&(((a6==1)&&((a19==5)&&(!(a0==1)&&(((((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6))))&&(input==4))&&(a17==2)))))&&(a12==1)))&&(a21==10))&&((a16==7)&&(!(a24==1)&&((a1==13)&&((!(a20==1)&&(a13==1))&&!(a18==1))))))){ + a20 = 1; + a26 = 0; + a9 = 7; + a3 = 1; + a19 = 1; + a27 = 0; + a5 = 4; + a1 = 12; + return -1; + } else if(((((a2==1)&&(!(a23==1)||((a21==12)&&(a23==1))))||!(a6==1))&&((!(a18==1)&&((((a17==2)&&((a2==1)&&((((a19==3)&&(((a1==14)&&(a5==6))&&(a9==11)))||((((a5==4)&&(a1==12))&&(a9==7))&&(a19==4)))&&(input==5))))&&(a16==9))&&!(a20==1)))&&!(a18==1)))){ + if((a8==1)){ + a5 = 4; + a20 = 1; + a21 = 10; + a16 = 7; + a1 = 14; + a19 = 1; + a14 = 1; + a0 = 1; + a9 = 7; + }else{ + a5 = 5; + a16 = 7; + a20 = 1; + a11 = 0; + a10 = 0; + a1 = 14; + a21 = 10; + a9 = 9; + a2 = 0; + a19 = 1; + } + return -1; + } else if(((((a9==10)&&((a23==1)&&(((a1==14)&&((a19==3)&&(((((a5==4)||(a5==5))&&(input==5))&&(a12==1))&&(a2==1))))&&(a28==1))))&&!(a18==1))&&(!(a13==1)||((a16==11)&&((a21==12)&&((a20==1)&&((a17==2)&&(a11==1)))))))){ + a9 = 7; + a28 = 1; + a21 = 11; + a24 = 0; + a1 = 13; + a0 = 0; + a19 = 5; + a16 = 10; + a5 = 6; + return 21; + } else if((((((((a16==9)&&(((a3==1)&&((!(a24==1)&&((a1==14)&&(input==3)))&&(a19==5)))&&(a9==10)))&&!(a4==1))&&(a11==1))&&(a17==2))&&(a5==5))&&((((!(a4==1)&&(a6==1))||(a26==1))&&(a20==1))&&(a21==12)))){ + a20 = 0; + a0 = 0; + a5 = 4; + a7 = 0; + a16 = 7; + a4 = 0; + a21 = 10; + return 26; + } else if((((a9==7)&&((a17==2)&&(((((((a5==5)||(a5==6))&&(input==6))&&(a1==12))&&(a28==1))&&(a6==1))&&!(a0==1))))&&(((!(a20==1)&&((a13==1)&&((a7==1)||((a16==10)&&((a13==1)&&(a19==3))))))&&(a21==10))&&!(a26==1)))){ + if((a15==1)){ + a5 = 5; + a26 = 1; + a16 = 11; + a6 = 0; + a19 = 2; + a1 = 14; + a12 = 0; + }else{ + a1 = 14; + a19 = 1; + a5 = 4; + a12 = 0; + a18 = 1; + a16 = 7; + a22 = 1; + a20 = 1; + a9 = 10; + } + return 21; + } else if((((!(a18==1)&&((a3==1)&&((((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(input==4))))&&(a23==1))&&(((a26==1)||((((a1==13)&&(((a21==10)&&((a20==1)&&((a23==1)&&(a16==11))))&&(a17==2)))&&(a19==5))&&(a28==1)))&&!(a24==1)))){ + a23 = 1; + a19 = 1; + a5 = 4; + a16 = 7; + a1 = 12; + a9 = 7; + a0 = 0; + a3 = 1; + return -1; + } else if((((a17==2)&&((a13==1)&&((!(a4==1)&&(((a19==2)&&((input==3)&&((a5==4)||(a5==5))))&&!(a14==1)))&&(a21==10))))&&((a16==11)&&(((((((a1==13)&&(a11==1))||!(a23==1))&&(a9==8))&&(a20==1))||(a7==1))||!(a6==1))))){ + a19 = 1; + a16 = 7; + a9 = 7; + a6 = 1; + a2 = 1; + a0 = 0; + a1 = 12; + a5 = 4; + return -1; + } else if((((!(a26==1)&&((a3==1)&&(((a20==1)&&((((a9==11)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))&&(a12==1))&&(a19==2)))&&(a16==10))))&&(a23==1))&&(((a0==1)||((a17==2)&&(((a21==12)&&(a3==1))&&(a1==12))))&&!(a8==1)))){ + a16 = 7; + a1 = 13; + a9 = 9; + a4 = 0; + a5 = 5; + a21 = 10; + a28 = 1; + a0 = 0; + return 25; + } else if((((a21==10)&&((a5==4)&&((!(a7==1)&&((a17==2)&&(((a16==8)&&((a9==7)&&(input==1)))&&(a2==1))))&&(a19==2))))&&((a1==13)&&((!(a0==1)&&(!(a11==1)||(((a11==1)&&(a20==1))||(a0==1))))||(a18==1))))){ + a1 = 12; + a18 = 0; + a19 = 1; + a16 = 7; + a7 = 0; + a28 = 1; + return -1; + } else if((((((a12==1)&&((a21==12)&&((a23==1)&&(((input==1)&&((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11))))&&(a12==1)))))&&!(a0==1))&&(a28==1))&&(((((a17==2)&&(((a27==1)||(a3==1))&&(a16==10)))&&(a1==14))&&(a19==4))&&!(a20==1)))){ + if((a11==1)){ + a19 = 5; + a4 = 1; + a20 = 1; + a21 = 10; + a26 = 1; + a9 = 7; + a16 = 9; + a22 = 0; + a1 = 13; + a5 = 4; + }else{ + a1 = 12; + a20 = 1; + a5 = 6; + a9 = 9; + a2 = 0; + a28 = 0; + a16 = 9; + a19 = 2; + a18 = 1; + } + return 21; + } else if((((((a21==12)&&((a17==2)&&(a23==1)))&&(a28==1))&&(a20==1))&&((a13==1)&&(!(a27==1)&&((((((a1==13)&&((a5==6)&&(((a9==9)&&(input==3))&&(a16==10))))&&!(a27==1))&&(a19==1))&&!(a14==1))&&!(a26==1)))))){ + a5 = 4; + a9 = 7; + a16 = 7; + a21 = 10; + a1 = 12; + a13 = 1; + a2 = 1; + a26 = 0; + return -1; + } else if((((a19==1)&&((((a0==1)||((a14==1)||((a12==1)&&!(a7==1))))&&(a16==8))&&(a20==1)))&&((!(a14==1)&&((a21==10)&&((((a1==14)&&((input==6)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))))&&!(a27==1))&&!(a4==1))))&&(a17==2)))){ + a4 = 0; + a1 = 12; + a9 = 7; + a5 = 4; + a27 = 0; + a16 = 7; + return -1; + } else if((((((a21==10)&&(((a9==11)&&((a1==13)&&((a16==11)&&(((((input==6)&&((a5==5)||(a5==6)))&&(a6==1))&&(a19==3))&&(a17==2)))))&&(a23==1)))&&!(a20==1))&&(a12==1))&&((a2==1)&&((a0==1)||((a11==1)&&(a2==1)))))){ + a20 = 1; + a9 = 9; + a24 = 1; + a5 = 6; + a19 = 5; + a11 = 0; + a21 = 12; + a16 = 7; + a6 = 0; + a1 = 14; + return -1; + } else if(((((a13==1)&&((a5==5)&&((a23==1)&&(((!(a18==1)&&((a19==2)&&((input==5)&&(a21==11))))&&(a16==8))&&!(a20==1)))))&&!(a26==1))&&((a17==2)&&((a9==10)&&((a1==13)&&(((a3==1)&&!(a26==1))&&!(a18==1))))))){ + a21 = 10; + a5 = 4; + a1 = 12; + a20 = 1; + a9 = 7; + a16 = 7; + a19 = 1; + a24 = 0; + a0 = 0; + return -1; + } else if(((((a28==1)&&((((a20==1)&&((((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9)))&&(input==3))&&(a2==1)))&&(a11==1))&&(a16==11)))&&!(a0==1))&&((((a17==2)&&((a13==1)&&(((a3==1)&&(a21==12))||(a4==1))))&&(a19==2))&&(a1==12)))){ + a16 = 7; + a26 = 0; + a9 = 7; + a7 = 0; + a5 = 4; + a19 = 1; + a2 = 1; + a21 = 10; + return -1; + } else if(((((a19==2)&&((!(a6==1)||((a16==10)&&(!(a4==1)&&((a21==11)&&(a28==1)))))&&(a5==6)))&&!(a27==1))&&(((a9==8)&&(((a17==2)&&(!(a18==1)&&(((a20==1)&&(input==4))&&!(a4==1))))&&(a1==14)))&&!(a0==1)))){ + a6 = 1; + a1 = 12; + a12 = 1; + a28 = 1; + a21 = 10; + a5 = 4; + a19 = 1; + a9 = 7; + a16 = 7; + return -1; + } else if(((((a20==1)&&(((a19==5)&&((input==5)&&((((a5==4)&&(a1==13))&&(a9==7))||((((a1==12)&&(a5==5))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==12)))))))&&(a13==1)))&&(a12==1))&&(((a16==11)&&(!(a2==1)||(((a17==2)&&(!(a2==1)||((a11==1)||!(a23==1))))&&(a11==1))))&&(a21==11)))){ + a5 = 4; + a21 = 10; + a9 = 7; + a28 = 1; + a27 = 0; + a26 = 0; + a16 = 7; + a19 = 1; + a1 = 12; + return -1; + } else if((((a12==1)&&((a23==1)&&(((a13==1)&&(!(a20==1)&&((((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6))))&&(input==5))))&&(a1==12))))&&(!(a0==1)&&((a6==1)&&((((a19==2)&&(((a6==1)&&(a21==10))&&(a16==11)))&&(a17==2))&&!(a7==1)))))){ + if((a20==1)){ + a9 = 11; + a25 = 0; + a19 = 5; + a20 = 1; + a21 = 12; + a1 = 14; + a6 = 0; + a5 = 6; + a16 = 7; + a18 = 1; + }else{ + a20 = 1; + a11 = 0; + a12 = 0; + a5 = 5; + a16 = 7; + a25 = 0; + a9 = 11; + a19 = 1; + a1 = 14; + } + return 25; + } else if(((!(a18==1)&&(!(a24==1)&&((a16==11)&&(!(a4==1)&&((a1==14)&&(((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a5==4)&&(a9==10)))&&(input==4)))))))&&((!(a27==1)&&(((a27==1)||((a20==1)&&((a19==3)&&((a21==10)&&(a13==1)))))&&(a17==2)))&&(a12==1)))){ + a9 = 7; + a12 = 1; + a19 = 1; + a1 = 12; + a11 = 1; + a5 = 4; + a27 = 0; + a16 = 7; + return -1; + } else if((((a17==2)&&((a26==1)||((a12==1)&&((a14==1)||((a21==12)&&(a23==1))))))&&(!(a0==1)&&(((a16==11)&&((a9==8)&&((((((a1==14)&&(input==4))&&(a2==1))&&(a19==4))&&(a5==5))&&(a20==1))))&&!(a24==1))))){ + a11 = 1; + a23 = 1; + a5 = 4; + a19 = 1; + a6 = 1; + a16 = 7; + a1 = 12; + a9 = 7; + a21 = 10; + return -1; + } else if(((((a8==1)||(((!(a18==1)&&(((a12==1)&&(a19==3))&&(a1==14)))&&(a21==10))||!(a6==1)))&&!(a4==1))&&(((!(a7==1)&&((a20==1)&&(((input==1)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&(a17==2))))&&!(a18==1))&&(a16==11)))){ + a12 = 1; + a9 = 7; + a21 = 12; + a5 = 5; + a16 = 9; + a4 = 0; + a24 = 0; + a1 = 12; + a19 = 2; + return 21; + } else if(((((a20==1)&&((a1==13)&&(((a7==1)&&((((a3==1)&&(a5==4))&&(a7==1))&&(a4==1)))&&(a9==8))))&&(a21==12))&&((a17==2)&&(((a0==1)&&((a4==1)&&((a27==1)&&((input==4)&&(a19==5)))))&&(a16==7))))){ + a12 = 0; + a9 = 9; + a10 = 0; + a1 = 12; + a21 = 11; + a23 = 0; + a19 = 2; + return -1; + } else if(((((a23==1)&&((a23==1)&&((a21==10)&&((a1==13)&&((a12==1)&&((a20==1)&&(((input==3)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(a19==5))))))))&&(a11==1))&&((((a23==1)&&((a17==2)&&(a28==1)))&&(a16==10))||!(a11==1)))){ + a8 = 0; + a16 = 7; + a9 = 7; + a19 = 1; + a7 = 0; + a1 = 12; + a5 = 4; + a14 = 0; + return -1; + } else if((((((!(a14==1)&&(((a13==1)&&((a23==1)||!(a3==1)))&&(a3==1)))&&(a1==14))&&(a16==10))&&!(a20==1))&&(((a21==11)&&((a19==2)&&(!(a18==1)&&(((((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(input==6))&&(a17==2)))))&&!(a8==1)))){ + if((a23==1)){ + a16 = 7; + a29 = 0; + a1 = 12; + a9 = 11; + a21 = 10; + a25 = 0; + a5 = 6; + a20 = 1; + a0 = 1; + }else{ + a4 = 1; + a21 = 10; + a20 = 1; + a2 = 0; + a5 = 6; + a9 = 9; + a14 = 1; + a16 = 7; + a1 = 13; + a19 = 1; + } + return -1; + } else if((((a6==1)&&(((a16==11)&&(((a5==4)||(a5==5))&&(input==6)))&&(a12==1)))&&(((((((((a19==4)&&(((a1==14)&&(a28==1))&&(a20==1)))&&(a9==11))&&(a13==1))&&(a21==10))&&(a17==2))||(a0==1))||!(a6==1))&&!(a14==1)))){ + a9 = 8; + a6 = 1; + a5 = 6; + a1 = 13; + a2 = 1; + a16 = 8; + a18 = 0; + return -1; + } else if(((((((!(a14==1)&&(a28==1))&&(a21==10))&&(a1==13))&&!(a20==1))&&!(a24==1))&&(!(a26==1)&&((((((a17==2)&&(((input==4)&&(((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))&&(a19==1)))&&(a16==11))&&(a23==1))&&!(a0==1))&&!(a24==1))))){ + a19 = 2; + a9 = 10; + a29 = 0; + a13 = 0; + a20 = 1; + a21 = 12; + a22 = 1; + a5 = 4; + a16 = 8; + return 22; + } else if((((((!(a11==1)||(((a26==1)||(a23==1))||(a24==1)))&&(a21==11))&&(a16==7))&&(a17==2))&&(((((a1==13)&&((((input==5)&&((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4))))&&(a11==1))&&(a19==5)))&&!(a27==1))&&(a20==1))&&(a11==1)))){ + a1 = 12; + a16 = 8; + a26 = 0; + a9 = 9; + a21 = 12; + a4 = 0; + a5 = 5; + a14 = 0; + a19 = 2; + return 22; + } else if((((a14==1)||(((a17==2)&&(!(a13==1)||(((a28==1)&&(a9==7))&&(a21==12))))&&(a19==5)))&&(((a12==1)&&((a1==12)&&(((!(a20==1)&&(!(a27==1)&&((a16==10)&&(input==4))))&&!(a4==1))&&(a5==4))))&&(a2==1)))){ + a29 = 1; + a10 = 1; + a21 = 11; + a16 = 9; + a1 = 14; + a22 = 0; + a5 = 6; + a19 = 3; + return 21; + } else if((((a18==1)||((((a20==1)&&(((((a1==12)&&((a12==1)&&(a3==1)))||(a4==1))&&!(a14==1))||!(a13==1)))&&(a19==4))||(a7==1)))&&((a21==11)&&((a9==9)&&(((a16==10)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))&&(a17==2)))))){ + a16 = 7; + a24 = 0; + a1 = 14; + a11 = 1; + a5 = 4; + a21 = 10; + a8 = 0; + a19 = 2; + return 23; + } else if(((((a1==13)&&((((a16==9)&&((a20==1)&&((((input==1)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&!(a27==1))&&(a17==2))))&&(a11==1))&&(a2==1)))&&(a19==4))&&(((((a28==1)&&(a3==1))||!(a28==1))&&!(a0==1))&&(a21==12)))){ + if((a14==1)){ + a9 = 7; + a5 = 5; + a16 = 8; + a7 = 0; + a6 = 1; + a1 = 14; + a21 = 11; + a26 = 0; + a20 = 0; + a19 = 1; + }else{ + a5 = 6; + a16 = 8; + a21 = 11; + a23 = 1; + a0 = 0; + a20 = 0; + a9 = 7; + a19 = 2; + } + return -1; + } else if((((a1==12)&&((!(a0==1)&&((!(a4==1)&&(!(a20==1)&&((((a9==11)&&(a28==1))&&(a19==3))&&!(a0==1))))&&!(a27==1)))&&(a16==8)))&&((a17==2)&&(((((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a13==1))&&(a21==12))&&(a3==1))))){ + if((a7==1)){ + a7 = 1; + a21 = 10; + a15 = 1; + a5 = 5; + a20 = 1; + a1 = 13; + a16 = 7; + a4 = 1; + a19 = 1; + }else{ + a9 = 7; + a1 = 14; + a16 = 10; + a5 = 4; + a21 = 11; + a0 = 1; + a25 = 0; + a11 = 0; + } + return 22; + } else if((((a20==1)&&(((a9==7)&&(!(a24==1)&&((a17==2)&&((!(a6==1)||((a23==1)&&(a13==1)))&&(a19==5)))))&&(a13==1)))&&((a21==12)&&((!(a27==1)&&((a16==9)&&((a6==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))))&&(a1==13))))){ + a19 = 2; + a9 = 11; + a27 = 0; + a11 = 1; + a1 = 14; + a5 = 5; + return 21; + } else if((((((a28==1)&&((a6==1)&&((input==3)&&((((((((a5==5)&&(a1==14))&&(a9==11))&&(a16==8))&&(a19==5))&&(a21==12))||(((a19==5)&&((((a5==6)&&(a1==14))&&(a9==11))&&(a16==8)))&&(a21==12)))||(((a19==1)&&(((a9==7)&&((a5==4)&&(a1==12)))&&(a16==9)))&&(a21==10))))))&&(a17==2))&&!(a26==1))&&((((a12==1)&&((a28==1)&&(a20==1)))||!(a6==1))&&!(a26==1)))){ + a21 = 10; + a5 = 5; + a19 = 5; + a1 = 12; + a12 = 1; + a16 = 8; + a0 = 0; + a9 = 9; + return -1; + } else if((((a19==3)&&((((a11==1)&&((a13==1)&&(((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a28==1))))&&(a20==1))&&(a21==11)))&&((((a9==11)&&((!(a8==1)&&(((a12==1)||(a4==1))&&(a1==12)))&&(a3==1)))&&(a16==9))&&(a17==2)))){ + a16 = 8; + a13 = 1; + a19 = 5; + a5 = 4; + a21 = 10; + a23 = 1; + a9 = 9; + a24 = 0; + return 25; + } else if((((a9==8)&&((a17==2)&&((a7==1)&&((a16==10)&&(!(a23==1)&&((!(a13==1)&&((a27==1)&&(a2==1)))&&(a1==14)))))))&&(((!(a11==1)&&((a21==10)&&(((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a6==1))))&&(a20==1))&&(a19==1)))){ + a22 = 0; + a16 = 7; + a9 = 11; + a5 = 5; + a0 = 1; + a24 = 1; + return 21; + } else if(((((a28==1)&&((((a21==11)&&((a20==1)&&(((a17==2)&&(!(a27==1)&&((input==1)&&((a5==4)||(a5==5)))))&&(a9==11))))&&(a1==12))&&!(a4==1)))&&!(a18==1))&&(((a16==9)&&(((a6==1)||(a18==1))&&(a19==4)))||(a7==1)))){ + a0 = 0; + a1 = 13; + a9 = 10; + a21 = 10; + a16 = 7; + a19 = 2; + a26 = 0; + a5 = 4; + a8 = 0; + return 21; + } else if((((!(a7==1)&&(((a1==13)&&(((!(a4==1)&&((((input==4)&&(a21==10))&&(a16==9))&&!(a18==1)))&&(a19==2))&&(a28==1)))&&(a5==6)))&&(a12==1))&&((((!(a2==1)||(a12==1))&&(a20==1))&&(a9==10))&&(a17==2)))){ + a16 = 7; + a9 = 7; + a1 = 12; + a7 = 0; + a5 = 4; + a0 = 0; + a19 = 1; + a13 = 1; + return -1; + } else if(((((a13==1)&&(((a9==11)&&(((a16==10)&&((a1==12)&&((a21==10)&&((input==6)&&((a5==4)||(a5==5))))))&&(a17==2)))&&!(a24==1)))&&(a11==1))&&(!(a24==1)&&(!(a3==1)||((a20==1)&&((a19==5)&&((a12==1)&&(a28==1)))))))){ + a9 = 7; + a19 = 1; + a6 = 1; + a12 = 1; + a16 = 7; + a5 = 4; + return -1; + } else if((((a20==1)&&(!(a18==1)&&((a6==1)&&((a1==13)&&((input==5)&&((a5==5)||(a5==6)))))))&&(((((a0==1)||(((a19==5)&&((((a27==1)||(a3==1))&&(a9==10))&&(a3==1)))&&(a21==12)))&&(a2==1))&&(a17==2))&&(a16==11)))){ + a16 = 7; + a1 = 12; + a9 = 7; + a21 = 10; + a11 = 1; + a5 = 4; + a19 = 1; + a28 = 1; + a13 = 1; + return -1; + } else if((((((a16==8)&&((a9==9)&&(!(a14==1)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a6==1))&&(a2==1)))))&&(a19==5))&&(a17==2))&&((a1==12)&&(((a21==11)&&((((a11==1)||!(a3==1))||!(a6==1))&&(a13==1)))&&(a20==1))))){ + a5 = 4; + a28 = 1; + a16 = 7; + a21 = 10; + a23 = 1; + a6 = 1; + a19 = 1; + a9 = 7; + return -1; + } else if((((a16==7)&&(((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==3))&&!(a0==1)))&&((((a20==1)&&((a21==11)&&((a6==1)&&((((a1==12)&&((!(a12==1)||(a6==1))||!(a2==1)))&&(a2==1))||!(a6==1)))))&&(a19==5))&&(a17==2)))){ + a13 = 1; + a0 = 0; + a19 = 1; + a5 = 4; + a9 = 7; + a21 = 10; + return -1; + } else if((((!(a14==1)&&((a11==1)&&((a28==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))))&&(a17==2))&&((a9==11)&&(!(a13==1)||(((((a11==1)&&(!(a4==1)&&((a19==2)&&((a16==8)&&(a2==1)))))&&!(a20==1))&&(a21==12))&&(a1==14)))))){ + if((a16==9)){ + a5 = 6; + a20 = 1; + a13 = 0; + a21 = 11; + a16 = 7; + a4 = 1; + a19 = 5; + a22 = 1; + a9 = 8; + }else{ + a9 = 7; + a5 = 4; + a22 = 0; + a25 = 1; + a20 = 1; + a1 = 12; + a21 = 11; + a15 = 0; + } + return 26; + } else if(((((a9==10)&&((a16==9)&&((a1==14)&&((!(a8==1)&&(!(a24==1)&&((a6==1)||(a14==1))))||(a24==1)))))&&!(a20==1))&&((((a17==2)&&((((input==5)&&((a5==5)||(a5==6)))&&(a19==4))&&(a11==1)))&&!(a4==1))&&(a21==12)))){ + a5 = 4; + a16 = 8; + a21 = 11; + a14 = 1; + a20 = 1; + a6 = 0; + return -1; + } else if((((a1==13)&&(((a27==1)||((a4==1)||(((a9==9)&&((a3==1)&&(a19==5)))||!(a12==1))))&&(a17==2)))&&(((!(a8==1)&&(!(a26==1)&&(((((a5==5)||(a5==6))&&(input==4))&&!(a0==1))&&(a21==10))))&&(a20==1))&&(a16==9)))){ + a12 = 1; + a1 = 14; + a5 = 6; + a13 = 1; + a21 = 11; + a16 = 10; + a9 = 7; + a19 = 4; + a3 = 1; + return 25; + } return calculate_output53(input); + } + + int calculate_output53(int input) { + if(((((a1==14)&&(((a14==1)||(((!(a26==1)&&(a6==1))&&(a9==8))&&!(a20==1)))&&(a21==11)))&&(a19==4))&&(((a16==9)&&((!(a18==1)&&(((((a5==4)||(a5==5))&&(input==5))&&!(a24==1))&&!(a14==1)))&&!(a4==1)))&&(a17==2)))){ + a28 = 0; + a1 = 12; + a20 = 1; + a16 = 7; + a5 = 5; + a19 = 2; + a21 = 10; + a9 = 10; + a6 = 0; + a22 = 0; + return -1; + } else if(((((!(a24==1)&&((a17==2)&&((a12==1)&&((a12==1)||!(a23==1)))))||!(a23==1))&&(a9==9))&&((((((a23==1)&&(((a6==1)&&((input==6)&&(a16==9)))&&(a20==1)))&&(a5==5))&&(a1==13))&&(a21==12))&&(a19==3)))){ + a9 = 8; + a19 = 2; + a4 = 0; + a1 = 14; + a16 = 10; + a21 = 10; + a11 = 1; + a5 = 4; + a27 = 0; + return 21; + } else if(((!(a20==1)&&((a17==2)&&((a19==5)&&(((((a16==8)&&(a2==1))&&!(a27==1))&&!(a24==1))&&!(a4==1)))))&&(!(a26==1)&&((!(a27==1)&&((a21==12)&&(((input==5)&&(((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))))&&(a1==12))))&&(a28==1))))){ + a19 = 3; + a2 = 0; + a1 = 14; + a14 = 1; + a20 = 1; + a5 = 5; + a9 = 8; + a22 = 0; + a16 = 11; + return -1; + } else if(((((a16==9)&&(((!(a26==1)&&((((a5==5)||(a5==6))&&(input==1))&&(a9==7)))&&(a12==1))&&(a1==12)))&&(a13==1))&&((a24==1)||((a19==5)&&((a20==1)&&(((((a17==2)&&(a11==1))&&!(a14==1))&&(a21==10))||!(a23==1))))))){ + a18 = 0; + a1 = 14; + a19 = 2; + a27 = 0; + a5 = 4; + a3 = 1; + a9 = 8; + a16 = 11; + return 23; + } else if(((((((a11==1)&&(((a13==1)||!(a13==1))||!(a13==1)))&&(a19==4))&&(a16==7))&&!(a20==1))&&((a21==12)&&(((a17==2)&&((((((a9==11)&&((a1==13)&&(a5==6)))||(((a1==14)&&(a5==4))&&(a9==7)))&&(input==6))&&(a6==1))&&!(a26==1)))&&!(a0==1))))){ + a21 = 10; + a19 = 1; + a9 = 7; + a3 = 1; + a11 = 1; + a5 = 4; + a1 = 12; + a20 = 1; + return -1; + } else if((((a21==10)&&(((a19==2)&&((a20==1)&&((a9==10)&&((((a17==2)&&((((a5==4)||(a5==5))&&(input==3))&&(a1==14)))&&(a12==1))&&!(a14==1)))))&&(a3==1)))&&((!(a7==1)&&(((a11==1)||!(a23==1))&&(a16==10)))&&!(a27==1)))){ + a18 = 0; + a9 = 7; + a5 = 4; + a1 = 12; + a0 = 0; + a26 = 0; + a16 = 7; + a19 = 1; + return -1; + } else if(((((a17==2)&&((((a2==1)&&((a21==11)&&(a12==1)))&&(a19==3))||!(a2==1)))&&(a16==8))&&((a3==1)&&(((!(a27==1)&&((((((a1==14)&&(a5==5))&&(a9==7))||((((a1==13)&&(a5==6))&&(a9==11))||(((a5==4)&&(a1==14))&&(a9==7))))&&(input==4))&&!(a7==1)))&&!(a0==1))&&!(a20==1))))){ + a19 = 1; + a2 = 1; + a16 = 7; + a7 = 0; + a20 = 1; + a1 = 12; + a21 = 10; + a26 = 0; + a5 = 4; + a9 = 7; + return -1; + } else if((((a5==6)&&(((a16==9)&&((a21==12)&&(!(a7==1)&&(a13==1))))&&(a20==1)))&&(((a2==1)&&(!(a4==1)&&((a1==12)&&(((a13==1)&&(((a19==5)&&((input==3)&&(a17==2)))&&!(a18==1)))&&(a12==1)))))&&(a9==9)))){ + a5 = 4; + a19 = 1; + a28 = 1; + a9 = 7; + a23 = 1; + a21 = 10; + a16 = 7; + a8 = 0; + return -1; + } else if((((((a17==2)&&((((a21==12)&&(input==3))&&!(a26==1))&&!(a20==1)))&&(a3==1))&&(a12==1))&&(((a9==11)&&((((a1==14)&&((a16==9)&&((a5==5)&&((a6==1)||!(a23==1)))))&&(a19==3))||(a8==1)))||!(a3==1)))){ + a29 = 1; + a10 = 1; + a5 = 6; + a1 = 12; + a16 = 7; + a19 = 2; + a9 = 7; + a21 = 10; + a20 = 1; + a22 = 0; + return -1; + } else if(((!(a20==1)&&((a9==11)&&((((a1==13)&&((a5==4)&&(((input==4)&&(a17==2))&&(a6==1))))&&(a23==1))&&(a13==1))))&&((a16==8)&&(((a12==1)&&(((a19==3)&&((a23==1)&&!(a4==1)))||(a18==1)))&&(a21==10))))){ + a1 = 12; + a9 = 7; + a20 = 1; + a16 = 7; + a28 = 1; + a19 = 1; + a12 = 1; + a4 = 0; + return -1; + } else if((((((a28==1)&&((a6==1)&&(((((a3==1)&&(a1==14))||!(a3==1))&&(a20==1))||(a14==1))))&&(a21==12))&&(a9==8))&&(!(a18==1)&&((a17==2)&&((((a19==5)&&((input==3)&&((a5==4)||(a5==5))))&&(a6==1))&&(a16==11)))))){ + a5 = 4; + a12 = 1; + a9 = 7; + a14 = 0; + a21 = 10; + a1 = 12; + a23 = 1; + a16 = 7; + a19 = 1; + return -1; + } else if(((((a21==11)&&(((a24==1)||((!(a0==1)&&(!(a7==1)&&(!(a26==1)&&(a12==1))))&&(a16==11)))&&(a19==5)))&&(a1==12))&&(((a17==2)&&(!(a26==1)&&(!(a27==1)&&((input==4)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))))))&&(a20==1)))){ + a5 = 4; + a19 = 1; + a9 = 7; + a23 = 1; + a16 = 7; + a21 = 10; + a8 = 0; + a2 = 1; + return -1; + } else if(((!(a14==1)&&((((((a13==1)&&(a23==1))&&(a19==3))&&(a1==13))||(a18==1))&&!(a7==1)))&&((!(a4==1)&&((a16==9)&&(((a21==12)&&(((input==4)&&((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11))))&&(a20==1)))&&(a17==2))))&&!(a4==1)))){ + a24 = 0; + a19 = 1; + a1 = 12; + a16 = 7; + a9 = 7; + a21 = 10; + a8 = 0; + a23 = 1; + a5 = 4; + return -1; + } else if(((((a20==1)&&((((a1==13)&&((a16==7)&&(a6==1)))||(a7==1))&&!(a26==1)))&&(a17==2))&&((((a21==12)&&(!(a24==1)&&(!(a0==1)&&((a19==2)&&((((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(input==5))))))&&(a23==1))&&(a11==1)))){ + a28 = 1; + a1 = 14; + a9 = 11; + a21 = 10; + a5 = 6; + a16 = 9; + a23 = 1; + a7 = 0; + return 21; + } else if((((((a9==10)&&((((((a5==5)||(a5==6))&&(input==1))&&(a1==14))&&(a16==8))&&!(a26==1)))&&(a11==1))&&!(a0==1))&&(!(a2==1)||((((a17==2)&&((a20==1)&&(((a26==1)||(a11==1))&&(a21==12))))&&(a11==1))&&(a19==3))))){ + a13 = 1; + a16 = 10; + a5 = 4; + a8 = 0; + a12 = 1; + a1 = 12; + return 23; + } else if(((((a21==11)&&(((a18==1)||(!(a11==1)||((a17==2)&&((a18==1)||(((a28==1)&&(a19==2))&&(a3==1))))))&&(a20==1)))&&(a16==11))&&(((((a28==1)&&(((a5==4)||(a5==5))&&(input==6)))&&(a28==1))&&(a9==8))&&(a1==12)))){ + if((a15==1)){ + a19 = 4; + a28 = 1; + a27 = 0; + a7 = 0; + a1 = 14; + a20 = 0; + a16 = 8; + a21 = 10; + a9 = 10; + a5 = 4; + }else{ + a12 = 1; + a5 = 4; + a1 = 14; + a9 = 10; + a13 = 1; + a16 = 9; + } + return 21; + } else if((((!(a18==1)&&(((a1==14)&&(((a16==7)&&((a19==3)&&((a8==1)||(a13==1))))&&!(a7==1)))&&(a11==1)))&&(a17==2))&&(((a21==11)&&((a6==1)&&((((input==6)&&(a9==9))&&(a20==1))&&!(a26==1))))&&(a5==6)))){ + a8 = 0; + a9 = 7; + a1 = 12; + a21 = 10; + a13 = 1; + a19 = 1; + a26 = 0; + a5 = 4; + return -1; + } else if((((((a17==2)&&((a1==14)&&((a8==1)||(!(a27==1)&&(a28==1)))))&&!(a26==1))&&(a11==1))&&(((a3==1)&&((!(a8==1)&&(((a9==9)&&(((input==5)&&((a5==5)||(a5==6)))&&(a21==11)))&&!(a20==1)))&&(a19==4)))&&(a16==8)))){ + a20 = 1; + a16 = 11; + a19 = 2; + a14 = 0; + a5 = 6; + a9 = 7; + a1 = 13; + a23 = 1; + return 21; + } else if(((((a20==1)&&((a26==1)&&((a21==11)&&((a16==10)&&((((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4)))&&(input==3))&&(a0==1))))))&&(a19==4))&&(((a1==12)&&(((a26==1)&&((a8==1)&&((a13==1)&&(a17==2))))&&(a24==1)))&&(a27==1)))){ + a6 = 0; + a19 = 2; + a26 = 1; + a16 = 7; + a21 = 10; + a5 = 5; + a27 = 1; + a9 = 10; + return 26; + } else if((((a18==1)&&((a7==1)&&((a17==2)&&(((a8==1)&&((a13==1)&&(a16==10)))&&(a19==2)))))&&(((a27==1)&&((a14==1)&&(!(a28==1)&&(((a21==11)&&((input==4)&&(((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))))&&(a20==1)))))&&(a1==14)))){ + a1 = 13; + a19 = 1; + a21 = 10; + a9 = 8; + a5 = 5; + a16 = 7; + a0 = 1; + a26 = 1; + a29 = 0; + return 21; + } else if(((((a14==1)||(!(a13==1)||((!(a2==1)||((a16==8)&&((a9==11)&&(a12==1))))||!(a13==1))))&&(a17==2))&&((((a21==11)&&((a28==1)&&((a6==1)&&((a1==14)&&(((a5==4)||(a5==5))&&(input==5))))))&&(a20==1))&&(a19==1)))){ + a1 = 13; + a24 = 0; + a9 = 8; + a5 = 4; + a4 = 0; + a13 = 1; + return -1; + } else if(((((!(a8==1)&&(((a19==2)&&((input==5)&&(a9==8)))&&(a1==12)))&&(a3==1))&&(a21==11))&&(((a18==1)||((a20==1)&&((a23==1)&&((a6==1)&&((((a5==4)&&(a11==1))&&(a17==2))||!(a3==1))))))&&(a16==10)))){ + a6 = 1; + a19 = 1; + a9 = 7; + a28 = 1; + a16 = 7; + a4 = 0; + a21 = 10; + return -1; + } else if((((((((a16==10)&&((!(a6==1)||(a3==1))||!(a23==1)))&&(a17==2))||(a27==1))&&(a19==3))||!(a11==1))&&(((a2==1)&&(((a20==1)&&(((input==5)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(a21==11)))&&(a1==14)))&&(a2==1)))){ + a19 = 1; + a9 = 7; + a24 = 0; + a21 = 10; + a1 = 12; + a16 = 7; + a5 = 4; + a23 = 1; + a4 = 0; + return -1; + } else if((((a5==5)&&((a21==10)&&(((a9==10)&&(!(a4==1)&&((!(a7==1)&&(((input==4)&&(a20==1))&&(a17==2)))&&!(a0==1))))&&(a16==8))))&&(((a19==1)&&(!(a7==1)&&(((a12==1)&&!(a26==1))||!(a23==1))))&&(a1==12)))){ + a28 = 1; + a16 = 7; + a5 = 4; + a6 = 1; + a2 = 1; + a9 = 7; + return -1; + } else if((((a17==2)&&((a2==1)&&((!(a28==1)||((a28==1)&&(!(a6==1)||(a2==1))))&&(a19==1))))&&((a21==10)&&((a20==1)&&((!(a4==1)&&((a16==8)&&(((((a5==5)&&(a1==13))&&(a9==7))||(((a9==11)&&((a1==12)&&(a5==6)))||(((a1==13)&&(a5==4))&&(a9==7))))&&(input==3))))&&!(a8==1)))))){ + a1 = 12; + a16 = 7; + a5 = 4; + a2 = 1; + a11 = 1; + a9 = 7; + return -1; + } else if((((a1==14)&&((a19==4)&&(((a27==1)||((a17==2)&&((a2==1)&&(a9==8))))&&(a21==10))))&&(!(a14==1)&&(((!(a4==1)&&((((((a5==5)||(a5==6))&&(input==3))&&!(a20==1))&&(a12==1))&&(a16==7)))&&!(a14==1))&&(a28==1))))){ + a5 = 4; + a9 = 7; + a27 = 0; + a2 = 1; + a19 = 1; + a0 = 0; + a1 = 12; + a20 = 1; + return -1; + } else if((((((a1==13)&&((a17==2)&&(((a24==1)||((a21==12)&&(a12==1)))&&(a19==1))))&&(a28==1))||!(a13==1))&&(((a28==1)&&((a16==9)&&((((input==1)&&(((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))))&&!(a24==1))&&(a20==1))))&&(a6==1)))){ + a9 = 7; + a1 = 12; + a23 = 1; + a5 = 4; + a16 = 7; + a21 = 10; + a7 = 0; + return -1; + } else if((((a9==11)&&((a18==1)||(((!(a12==1)||((a27==1)||(a13==1)))&&(a16==8))||(a4==1))))&&(((a17==2)&&(((((!(a0==1)&&(((a5==4)||(a5==5))&&(input==1)))&&!(a0==1))&&(a20==1))&&(a1==14))&&(a19==1)))&&(a21==11)))){ + a23 = 1; + a9 = 7; + a16 = 7; + a8 = 0; + a5 = 4; + a14 = 0; + a1 = 12; + a21 = 10; + return -1; + } else if(((!(a8==1)&&((a7==1)||((((a19==1)&&((a17==2)&&(a11==1)))||(a24==1))&&(a21==11))))&&(((a12==1)&&((a2==1)&&((a2==1)&&((((input==5)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5))))&&!(a20==1))&&(a16==9)))))&&(a1==12)))){ + a23 = 0; + a18 = 1; + a20 = 1; + a7 = 1; + a19 = 3; + a5 = 4; + a9 = 11; + return 25; + } else if(((((a11==1)&&(((a16==10)&&((a19==2)&&((a1==14)&&(((((a20==1)&&((input==3)&&((a5==4)||(a5==5))))&&(a17==2))&&(a23==1))&&(a6==1)))))&&(a9==7)))&&(a3==1))&&(!(a26==1)&&(((a6==1)&&(a21==11))||(a8==1))))){ + a24 = 0; + a5 = 4; + a23 = 1; + a1 = 12; + a4 = 0; + a19 = 1; + a16 = 7; + a21 = 10; + return -1; + } else if((((a23==1)&&(((((((((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4)))&&(input==4))&&(a16==11))&&(a1==13))&&(a17==2))&&!(a14==1))&&(a11==1))&&(a21==12)))&&(!(a4==1)&&((a20==1)&&((a19==1)&&(((a12==1)||!(a6==1))||!(a23==1))))))){ + a1 = 12; + a9 = 7; + a16 = 7; + a21 = 10; + a14 = 0; + a28 = 1; + a26 = 0; + a5 = 4; + return -1; + } else if(((((a11==1)&&(((a2==1)&&((a19==2)&&(!(a7==1)&&((input==3)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))))))&&(a21==12)))&&!(a20==1))&&(!(a3==1)||((((a27==1)||((a16==8)&&((a1==12)&&(a2==1))))&&(a17==2))&&!(a18==1))))){ + if((a27==1)){ + a2 = 0; + a5 = 4; + a1 = 13; + a12 = 0; + a9 = 7; + a20 = 1; + a21 = 10; + a16 = 7; + a3 = 0; + }else{ + a7 = 1; + a26 = 1; + a18 = 1; + a19 = 1; + a1 = 13; + a5 = 5; + a21 = 11; + a20 = 1; + a9 = 9; + } + return 21; + } else if(((!(a20==1)&&((!(a4==1)&&(((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a6==1)))&&(a11==1)))&&(((a19==1)&&((a21==12)&&((a0==1)||((a17==2)&&((a16==7)&&((a8==1)||((a9==10)&&(!(a3==1)||(a23==1)))))))))&&(a1==12)))){ + a21 = 10; + a23 = 1; + a9 = 7; + a24 = 0; + a14 = 0; + a5 = 4; + a20 = 1; + return -1; + } else if((((a9==10)&&((a16==8)&&(((a3==1)&&(((((a19==3)&&(input==1))&&(a5==5))&&(a21==10))&&(a20==1)))&&(a1==14))))&&((a0==1)||(((((a17==2)&&((a23==1)&&(a28==1)))&&(a6==1))||!(a23==1))||!(a2==1))))){ + a21 = 11; + a7 = 0; + a12 = 1; + a5 = 6; + a20 = 0; + a19 = 2; + a14 = 0; + a16 = 7; + a9 = 11; + return 25; + } else if(((!(a0==1)&&((a13==1)&&((a19==2)&&((a28==1)&&((((input==1)&&(((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))))&&(a1==13))&&(a11==1))))))&&((((a17==2)&&((a2==1)&&(((a23==1)&&!(a24==1))&&(a16==9))))&&(a21==11))&&(a20==1)))){ + a19 = 1; + a21 = 12; + a6 = 1; + a5 = 6; + a1 = 14; + a16 = 8; + a9 = 8; + a14 = 0; + a3 = 1; + return 21; + } else if((((a19==3)&&((a21==11)&&(((a17==2)&&(!(a18==1)&&((!(a4==1)&&(!(a0==1)&&(a12==1)))||!(a12==1))))||(a27==1))))&&((a16==10)&&((a1==12)&&((a11==1)&&((a20==1)&&((input==6)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))))))))){ + a12 = 1; + a9 = 8; + a27 = 0; + a21 = 10; + a20 = 0; + a5 = 6; + a1 = 14; + a28 = 1; + a16 = 8; + return 21; + } else if(((((a20==1)&&(!(a0==1)&&(!(a11==1)||(!(a23==1)||((a19==3)&&((a12==1)&&((a9==9)&&(a28==1))))))))&&(a1==13))&&((a16==9)&&((a13==1)&&((a21==11)&&((((input==6)&&((a5==4)||(a5==5)))&&(a17==2))&&(a23==1))))))){ + a5 = 6; + a9 = 10; + a14 = 0; + a18 = 0; + a2 = 1; + a19 = 4; + a21 = 12; + return 25; + } else if((((a11==1)&&((!(a2==1)||((a17==2)&&((a19==2)&&(a2==1))))&&(a16==9)))&&((a28==1)&&((!(a0==1)&&(((a20==1)&&((a1==14)&&((a5==4)&&(((a21==12)&&(input==5))&&(a3==1)))))&&(a9==9)))&&!(a4==1))))){ + a16 = 7; + a21 = 10; + a1 = 13; + a6 = 1; + a9 = 10; + a7 = 0; + a5 = 5; + a0 = 0; + return 22; + } else if((((a12==1)&&(((a21==12)&&((((a9==9)&&(!(a4==1)&&(a3==1)))&&(a17==2))&&(a28==1)))&&(a19==1)))&&((a11==1)&&((!(a24==1)&&((a1==12)&&((((input==3)&&(a20==1))&&!(a0==1))&&(a16==11))))&&(a5==6))))){ + a5 = 4; + a6 = 1; + a21 = 10; + a12 = 1; + a9 = 7; + a16 = 7; + return -1; + } else if((((a4==1)||(!(a3==1)||((a0==1)||(((a9==9)&&((a20==1)&&(a6==1)))&&(a21==11)))))&&((a1==13)&&(((((a28==1)&&((a17==2)&&((((a5==5)||(a5==6))&&(input==3))&&(a16==7))))&&(a13==1))&&(a19==5))&&!(a14==1))))){ + a9 = 7; + a5 = 4; + a19 = 1; + a21 = 10; + a8 = 0; + a1 = 12; + a24 = 0; + a12 = 1; + return -1; + } else if((((!(a0==1)&&((a16==8)&&((a23==1)&&((a1==14)&&(((a2==1)&&((a19==1)&&(((((input==5)&&(a20==1))&&(a23==1))&&(a3==1))&&(a5==5))))&&(a9==8))))))&&(a17==2))&&((!(a0==1)&&(a13==1))&&(a21==12)))){ + a21 = 10; + a16 = 7; + a5 = 4; + a9 = 7; + a11 = 1; + a1 = 12; + a23 = 1; + a13 = 1; + return -1; + } else if((((((((a28==1)&&((a9==9)&&((a17==2)&&((a21==12)&&(a3==1)))))||(a14==1))&&(a19==4))&&(a2==1))&&(a20==1))&&((a2==1)&&((a16==7)&&((!(a0==1)&&((a11==1)&&((input==3)&&(a5==6))))&&(a1==12)))))){ + a11 = 1; + a9 = 7; + a21 = 10; + a5 = 4; + a12 = 1; + a23 = 1; + a19 = 1; + return -1; + } else if(((((a21==11)&&((a17==2)&&((a16==7)&&((a1==14)&&((a8==1)||(a13==1))))))&&(a23==1))&&((!(a7==1)&&((((a19==2)&&((!(a20==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&(a28==1)))&&(a11==1))&&(a6==1)))&&(a9==9)))){ + a5 = 4; + a19 = 1; + a20 = 1; + a6 = 1; + a21 = 10; + a1 = 12; + a9 = 7; + a4 = 0; + return -1; + } else if((((((a3==1)&&(((a6==1)&&((a17==2)&&(((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&!(a0==1))))&&(a20==1)))&&(a21==11))&&!(a27==1))&&(((((a13==1)&&((a1==12)&&((a12==1)&&(a9==7))))&&(a19==2))&&(a16==9))||(a14==1)))){ + a3 = 1; + a19 = 4; + a16 = 8; + a26 = 0; + a5 = 6; + a9 = 10; + return 26; + } else if(((((a19==2)&&(((a21==11)&&((!(a24==1)&&(a23==1))&&(a17==2)))||!(a11==1)))&&(a23==1))&&(((a16==7)&&(((a9==7)&&(!(a20==1)&&((!(a8==1)&&((input==3)&&(a1==14)))&&(a5==6))))&&!(a24==1)))&&(a2==1)))){ + a19 = 1; + a27 = 0; + a11 = 1; + a21 = 10; + a1 = 12; + a20 = 1; + a5 = 4; + a18 = 0; + return -1; + } else if((((((a1==13)&&(((a20==1)&&(((a16==9)&&(input==6))&&(a19==5)))&&(a23==1)))&&(a5==6))&&(a6==1))&&(((!(a13==1)||(((((a7==1)||(a12==1))&&(a9==11))&&(a17==2))&&(a21==11)))&&!(a27==1))||(a14==1)))){ + a11 = 1; + a16 = 7; + a5 = 4; + a8 = 0; + a9 = 10; + a18 = 0; + a19 = 2; + a21 = 10; + return 21; + } else if((((a21==10)&&((a2==1)&&((a26==1)||(((a19==4)&&(a13==1))&&(a16==11)))))&&((a17==2)&&((((a1==13)&&((a11==1)&&((a9==9)&&((!(a14==1)&&((input==4)&&((a5==4)||(a5==5))))&&!(a8==1)))))&&(a28==1))&&!(a20==1))))){ + a1 = 12; + a9 = 10; + a25 = 1; + a16 = 7; + a19 = 2; + a10 = 1; + a5 = 5; + a22 = 0; + a20 = 1; + return 21; + } else if((((a19==2)&&((a5==6)&&(input==1)))&&(!(a11==1)||(!(a13==1)||((((!(a6==1)||(((a1==14)&&(((a23==1)&&(!(a26==1)&&((a9==11)&&(a13==1))))&&(a16==10)))&&(a12==1)))&&(a17==2))&&!(a20==1))&&(a21==10)))))){ + a20 = 1; + a16 = 7; + a10 = 1; + a9 = 8; + a25 = 0; + a26 = 1; + a1 = 12; + return -1; + } else if((((a1==12)&&((a5==4)&&(((a2==1)&&((a2==1)&&((((input==5)&&(a16==7))&&!(a14==1))&&(a2==1))))&&(a17==2))))&&((a19==5)&&((a21==12)&&((a23==1)&&((a9==9)&&((a20==1)&&((a3==1)&&(a6==1))))))))){ + a0 = 0; + a21 = 11; + a13 = 1; + a5 = 6; + a9 = 10; + a27 = 0; + a19 = 3; + a16 = 9; + a1 = 14; + return 23; + } else if(((((a18==1)&&((((!(a11==1)&&(!(a3==1)&&((input==5)&&((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a5==4)&&(a9==8))))))&&(a19==4))&&(a1==12))&&(a17==2)))&&(a27==1))&&((a16==10)&&(!(a2==1)&&((a21==11)&&(((a13==1)&&(a20==1))&&(a14==1))))))){ + a21 = 12; + a19 = 1; + a16 = 7; + a6 = 0; + a9 = 10; + a5 = 6; + a29 = 1; + return 21; + } else if((((!(a23==1)||((a9==7)&&(((a28==1)||!(a28==1))&&(a21==10))))||(a14==1))&&(((((((a12==1)&&(!(a20==1)&&(!(a7==1)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6))))))&&(a17==2))&&!(a27==1))&&(a1==14))&&(a19==3))&&(a16==11)))){ + a20 = 1; + a15 = 0; + a19 = 1; + a22 = 0; + a1 = 13; + a12 = 0; + a16 = 7; + a5 = 4; + return -1; + } else if((((a21==10)&&(((((a19==5)&&(input==6))&&!(a14==1))&&(a16==8))&&(a5==6)))&&(!(a2==1)||((a11==1)&&(!(a11==1)||((a20==1)&&((((((a6==1)&&(a12==1))&&(a17==2))&&(a1==14))&&(a9==10))&&(a13==1)))))))){ + a19 = 1; + a9 = 7; + a1 = 12; + a16 = 7; + a3 = 1; + a8 = 0; + a5 = 4; + a6 = 1; + return -1; + } else if((((!(a26==1)&&(!(a0==1)&&((a11==1)&&((a16==7)&&(!(a24==1)&&(!(a20==1)&&((input==3)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))))))))&&(a12==1))&&(((a19==2)&&((((a21==10)&&(a23==1))&&(a1==12))||(a27==1)))&&(a17==2)))){ + a6 = 1; + a20 = 1; + a19 = 1; + a9 = 7; + a5 = 4; + a14 = 0; + return -1; + } else if(((((a16==7)&&(((a9==10)&&(!(a4==1)&&((!(a4==1)&&(a28==1))&&!(a27==1))))||(a26==1)))&&(a17==2))&&((a19==5)&&((a20==1)&&(!(a27==1)&&(((((input==5)&&(a1==13))&&(a21==11))&&!(a0==1))&&(a5==5))))))){ + a11 = 1; + a21 = 12; + a24 = 0; + a16 = 8; + a14 = 0; + a5 = 4; + a19 = 2; + return 22; + } else if(((((a27==1)||((((a16==10)&&((a3==1)&&(a12==1)))&&(a9==9))&&(a17==2)))||!(a2==1))&&((a1==13)&&((a2==1)&&(!(a26==1)&&(((a20==1)&&(((a21==11)&&((input==4)&&(a5==4)))&&!(a4==1)))&&(a19==1))))))){ + a1 = 12; + a16 = 7; + a9 = 7; + a26 = 0; + a12 = 1; + a21 = 10; + a4 = 0; + return -1; + } else if(((((!(a26==1)&&(((((a5==4)||(a5==5))&&(input==3))&&(a1==14))&&!(a26==1)))&&(a9==11))&&!(a0==1))&&(!(a18==1)&&(!(a7==1)&&((a17==2)&&((a20==1)&&((a16==11)&&((((a3==1)&&(a13==1))&&(a19==4))&&(a21==11))))))))){ + a16 = 7; + a9 = 7; + a1 = 12; + a21 = 10; + a19 = 1; + a23 = 1; + a5 = 4; + a2 = 1; + return -1; + } else if(((!(a0==1)&&(((a13==1)&&((a16==10)&&((((((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4)))&&(input==6))&&(a19==5))))&&(a6==1)))&&(!(a14==1)&&((!(a8==1)&&(((a17==2)&&((a21==12)&&((a2==1)&&(a20==1))))&&(a1==12)))||!(a28==1))))){ + a16 = 7; + a6 = 1; + a21 = 10; + a9 = 11; + a1 = 14; + a7 = 0; + a5 = 5; + a27 = 0; + a19 = 4; + return 25; + } else if(((((a0==1)||((a16==7)&&((a2==1)&&(a20==1))))&&!(a8==1))&&((((a21==12)&&((a17==2)&&(!(a0==1)&&(!(a4==1)&&((a13==1)&&(!(a24==1)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==3))))))))&&(a1==12))&&(a19==4)))){ + a21 = 11; + a27 = 0; + a3 = 1; + a19 = 1; + a5 = 6; + a1 = 13; + a16 = 9; + a9 = 8; + a23 = 1; + return 22; + } else if((((!(a14==1)&&((((((a5==5)||(a5==6))&&(input==1))&&(a20==1))&&(a17==2))&&(a13==1)))&&!(a26==1))&&(!(a12==1)||(((((a1==13)&&(((!(a28==1)||(a13==1))&&(a21==11))&&(a19==1)))&&(a16==9))&&(a2==1))&&(a9==8))))){ + a1 = 12; + a21 = 12; + a9 = 10; + a19 = 3; + a12 = 1; + a0 = 0; + a5 = 6; + return 21; + } else if(((!(a18==1)&&((a21==10)&&((a19==2)&&(((a20==1)&&(((((a13==1)&&(a17==2))&&(a9==9))&&(a16==9))||!(a2==1)))&&(a23==1)))))&&((a13==1)&&((a1==13)&&((!(a18==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5)))))&&(a28==1)))))){ + if((a4==1)){ + a2 = 1; + a19 = 5; + a1 = 12; + a11 = 1; + a5 = 6; + a16 = 7; + a8 = 0; + a21 = 12; + a20 = 0; + }else{ + a13 = 1; + a16 = 8; + a7 = 0; + a19 = 5; + a5 = 4; + a9 = 7; + } + return -1; + } else if((((a19==1)&&((((((a6==1)&&(a20==1))&&(a12==1))&&(a3==1))&&(a21==12))&&(a9==8)))&&(((!(a27==1)&&((((a1==13)&&(((a16==7)&&(input==1))&&(a6==1)))&&!(a8==1))&&(a2==1)))&&(a17==2))&&(a5==4)))){ + a5 = 6; + a16 = 8; + a20 = 0; + a21 = 10; + a13 = 1; + a1 = 12; + a6 = 1; + return 25; + } else if(((((((((((a1==12)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&!(a18==1)))&&(a17==2))&&!(a4==1))&&(a19==3))&&(a11==1))&&!(a0==1))&&(a21==11))&&(a23==1))&&((a9==11)&&((((a13==1)&&(a12==1))&&!(a20==1))&&(a16==10))))){ + a22 = 0; + a21 = 10; + a1 = 13; + a7 = 1; + a29 = 1; + a9 = 9; + a19 = 1; + a16 = 7; + a5 = 6; + a20 = 1; + return 23; + } else if((((((((a20==1)&&((a12==1)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==4))))&&(a19==1))&&(a21==10))&&(a17==2))&&(a2==1))&&(((((!(a2==1)||(!(a26==1)&&(a28==1)))&&(a1==12))&&(a12==1))&&(a16==8))&&!(a26==1)))){ + a5 = 4; + a23 = 1; + a12 = 1; + a8 = 0; + a16 = 7; + a9 = 7; + return -1; + } else if((((a3==1)&&(((((a1==12)&&((a19==4)&&((((input==5)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&!(a18==1))&&(a17==2))))&&(a16==11))&&!(a7==1))&&(a21==12)))&&(!(a0==1)&&(((a8==1)||((a20==1)&&(a11==1)))||!(a2==1))))){ + a5 = 4; + a24 = 0; + a9 = 7; + a21 = 10; + a19 = 1; + a3 = 1; + a16 = 7; + a13 = 1; + return -1; + } else if((((a11==1)&&((a12==1)&&(((a16==7)&&((((a28==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))&&!(a7==1))&&(a9==8)))&&(a17==2))))&&((!(a26==1)&&((a14==1)||((((a11==1)&&!(a20==1))&&(a21==10))&&(a1==12))))&&(a19==1)))){ + a12 = 1; + a11 = 1; + a20 = 1; + a9 = 7; + a8 = 0; + a5 = 4; + return -1; + } else if(((((a27==1)||(((!(a27==1)&&(((!(a20==1)&&(a28==1))&&(a21==10))&&(a9==10)))&&(a2==1))&&(a1==12)))&&!(a4==1))&&((a19==2)&&((a6==1)&&(((!(a0==1)&&((a17==2)&&(input==3)))&&(a5==5))&&(a16==10)))))){ + a16 = 8; + a19 = 4; + a1 = 14; + a9 = 9; + a20 = 1; + a24 = 1; + a14 = 1; + a15 = 1; + a21 = 11; + a5 = 6; + return 21; + } else if((((((a23==1)&&(((a17==2)&&((!(a20==1)&&(input==5))&&(a23==1)))&&(a5==6)))&&(a2==1))&&(a1==13))&&(((!(a14==1)&&((a16==10)&&(((a19==1)&&((a13==1)&&(a3==1)))&&(a13==1))))&&(a21==10))&&(a9==11)))){ + a29 = 0; + a16 = 7; + a23 = 0; + a20 = 1; + a2 = 0; + return -1; + } else if((((a11==1)&&(!(a0==1)&&((((a16==7)&&(((((a21==10)&&(input==4))&&(a6==1))&&(a5==4))&&(a19==4)))&&!(a26==1))&&(a1==13))))&&(((a17==2)&&(!(a3==1)||((a9==11)&&((a28==1)&&(a13==1)))))&&!(a20==1)))){ + a24 = 0; + a19 = 1; + a9 = 7; + a1 = 12; + a27 = 0; + a3 = 1; + a20 = 1; + return -1; + } else if((((((!(a18==1)&&((input==5)&&((a5==6)||((a5==4)||(a5==5)))))&&(a17==2))&&!(a14==1))&&!(a18==1))&&((a12==1)&&((a12==1)&&((a1==13)&&((a19==4)&&((a16==7)&&(((((a3==1)&&(a20==1))&&(a9==11))&&(a21==12))||(a4==1))))))))){ + a1 = 12; + a9 = 7; + a8 = 0; + a21 = 10; + a5 = 4; + a19 = 1; + a18 = 0; + a2 = 1; + return -1; + } else if(((!(a20==1)&&((a21==12)&&((((a19==1)&&(((a9==8)&&(a23==1))&&(a16==9)))&&(a17==2))&&(a1==12))))&&((a3==1)&&((a11==1)&&(!(a4==1)&&((a11==1)&&(!(a27==1)&&(((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a0==1))))))))){ + a29 = 1; + a22 = 0; + a26 = 1; + a16 = 7; + a9 = 11; + a20 = 1; + a5 = 5; + a21 = 10; + return 25; + } else if((((((a16==7)&&(((a1==12)&&(!(a8==1)&&((a20==1)&&((input==4)&&(a19==5)))))&&(a6==1)))&&(a9==11))&&(a5==4))&&((a21==10)&&(((a18==1)||((a17==2)&&((!(a14==1)&&(a11==1))&&!(a18==1))))||(a24==1))))){ + a1 = 13; + a21 = 12; + a12 = 1; + a18 = 0; + a11 = 1; + a19 = 2; + a5 = 5; + return 23; + } else if((((a23==1)&&(((a16==8)&&(((a21==12)&&(((a3==1)&&((((a6==1)&&(a9==8))&&(a17==2))&&(a20==1)))||(a7==1)))&&(a5==5)))&&(a13==1)))&&(((((a1==12)&&(input==4))&&!(a26==1))&&(a19==1))&&!(a4==1)))){ + a9 = 10; + a21 = 11; + a16 = 10; + a12 = 1; + a0 = 0; + a27 = 0; + a19 = 4; + a1 = 13; + return 22; + } else if(((((((((a20==1)&&((!(a14==1)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6))))&&(a16==11)))&&!(a14==1))&&!(a4==1))&&(a28==1))&&(a17==2))&&(a19==2))&&(((a9==10)&&((a21==12)&&((a26==1)||((a12==1)||!(a6==1)))))&&(a1==12)))){ + a0 = 0; + a21 = 10; + a16 = 7; + a4 = 0; + a3 = 1; + a19 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if((((((((a19==4)&&((a20==1)&&(a6==1)))&&(a16==8))&&!(a4==1))||(a7==1))&&(a6==1))&&(!(a18==1)&&(((a23==1)&&((a5==5)&&(((a17==2)&&((a1==14)&&((input==6)&&(a21==11))))&&(a9==10))))&&(a11==1))))){ + a1 = 12; + a24 = 0; + a9 = 7; + a21 = 10; + a16 = 7; + a5 = 4; + a0 = 0; + a19 = 1; + a18 = 0; + return -1; + } else if((((a9==8)&&(((a7==1)&&(!(a20==1)&&((((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a19==2))&&(a14==1))))&&(a16==7)))&&(!(a13==1)&&(((a21==11)&&(!(a28==1)&&((((a28==1)&&(a1==14))&&!(a6==1))&&!(a6==1))))&&(a17==2))))){ + a5 = 6; + a28 = 0; + a1 = 12; + a20 = 1; + a19 = 1; + a21 = 10; + a15 = 1; + a9 = 9; + return -1; + } else if(((((a17==2)&&((a16==7)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1))))&&!(a0==1))&&(!(a7==1)&&(((((!(a4==1)&&(!(a20==1)&&((a21==12)&&(((a3==1)&&(a1==13))&&!(a26==1)))))||(a24==1))||!(a3==1))&&(a19==1))&&(a9==7))))){ + a21 = 10; + a7 = 0; + a5 = 4; + a20 = 1; + a14 = 0; + a1 = 12; + a4 = 0; + return -1; + } else if((((a21==12)&&((((((a9==7)&&((a2==1)&&!(a13==1)))&&(a24==1))&&(a17==2))&&!(a2==1))&&(a16==8)))&&(((a20==1)&&((!(a6==1)&&(((a5==6)&&((input==3)&&(a19==5)))&&(a8==1)))&&(a24==1)))&&(a1==14)))){ + a9 = 11; + a1 = 13; + a3 = 0; + a19 = 1; + a16 = 7; + a5 = 4; + a21 = 10; + a10 = 1; + return 22; + } else if((((a3==1)&&(((a19==4)&&(((input==6)&&((a5==4)||(a5==5)))&&!(a20==1)))&&(a16==10)))&&((!(a6==1)||(!(a24==1)&&(((a1==12)&&(((((a11==1)||!(a11==1))&&(a21==11))&&(a9==7))||!(a13==1)))||(a8==1))))&&(a17==2)))){ + if((a7==1)){ + a20 = 1; + a29 = 0; + a21 = 10; + a4 = 1; + a1 = 14; + a19 = 1; + a16 = 7; + a5 = 4; + a6 = 0; + a9 = 9; + }else{ + a8 = 1; + a16 = 8; + a9 = 10; + a21 = 12; + a3 = 0; + a25 = 1; + a5 = 6; + } + return 25; + } else if((((a17==2)&&(((a21==12)&&((((((a9==10)&&(a13==1))&&(a12==1))&&(a1==12))||!(a2==1))||(a27==1)))||(a14==1)))&&(((a20==1)&&((!(a18==1)&&(((input==3)&&((a5==4)||(a5==5)))&&(a2==1)))&&(a19==5)))&&(a16==10)))){ + a1 = 14; + a2 = 1; + a16 = 8; + a9 = 11; + a5 = 4; + a0 = 0; + a19 = 2; + a7 = 0; + return -1; + } else if((((a13==1)&&(((((a12==1)&&(((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==5))&&(a21==11)))&&(a19==3))&&!(a18==1))&&!(a18==1)))&&(!(a28==1)||((((a1==13)&&(((a20==1)&&(a28==1))&&(a17==2)))&&(a16==7))||!(a12==1))))){ + a5 = 5; + a19 = 1; + a26 = 0; + a28 = 1; + a16 = 8; + a9 = 10; + a3 = 1; + return 25; + } else if((((a12==1)&&(((a3==1)&&((a17==2)&&((a19==4)&&((input==3)&&((a5==5)||(a5==6))))))&&!(a8==1)))&&((((a12==1)&&((a21==10)&&(((a16==11)&&(((a1==13)&&(a2==1))&&(a9==11)))&&(a20==1))))&&!(a8==1))||(a27==1)))){ + a9 = 7; + a4 = 0; + a1 = 12; + a5 = 4; + a19 = 1; + a2 = 1; + a16 = 7; + return -1; + } else if((((!(a20==1)&&((!(a26==1)&&((a17==2)&&((a23==1)&&((input==4)&&(a16==7)))))&&(a28==1)))&&(a9==7))&&(((a21==11)&&((a5==5)&&(((((a2==1)&&(a2==1))&&(a19==1))||(a8==1))&&!(a26==1))))&&(a1==14)))){ + a20 = 1; + a5 = 4; + a2 = 1; + a24 = 0; + a11 = 1; + a1 = 12; + a21 = 10; + return -1; + } else if(((((a17==2)&&(((a8==1)||(!(a0==1)&&((!(a3==1)||(a3==1))&&(a12==1))))&&(a19==5)))&&(a20==1))&&((((a12==1)&&((((((a9==11)&&((a5==5)&&(a1==12)))||(((a5==6)&&(a1==12))&&(a9==11)))||((a9==7)&&((a5==4)&&(a1==13))))&&(input==4))&&!(a4==1)))&&(a16==8))&&(a21==12)))){ + a9 = 11; + a23 = 1; + a21 = 10; + a16 = 7; + a5 = 4; + a1 = 14; + a20 = 0; + a3 = 1; + return -1; + } else if((((a16==9)&&((a17==2)&&((a19==4)&&(((((a5==5)||(a5==6))&&(input==5))&&(a20==1))&&(a6==1)))))&&((((a14==1)||(((a8==1)||((((a0==1)||(a11==1))&&(a21==12))||!(a28==1)))||!(a2==1)))&&(a9==8))&&(a1==14)))){ + a20 = 0; + a3 = 1; + a26 = 0; + a16 = 8; + a18 = 0; + a9 = 10; + a21 = 10; + a5 = 4; + return 21; + } else if(((((((a6==1)&&(((a23==1)&&(a16==8))||!(a12==1)))||(a26==1))&&(a19==5))&&(a17==2))&&((a13==1)&&((a2==1)&&(((a20==1)&&(((a21==12)&&((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==3)))&&!(a14==1)))&&(a1==14)))))){ + a7 = 0; + a11 = 1; + a9 = 8; + a0 = 0; + a5 = 6; + return -1; + } else if(((!(a24==1)&&(((a16==7)&&((a6==1)&&((a1==13)&&((a19==5)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6)))))))&&!(a8==1)))&&(!(a2==1)||((((((a17==2)&&((a11==1)&&(a9==7)))&&(a20==1))||(a27==1))&&(a21==11))&&!(a14==1))))){ + a2 = 1; + a21 = 10; + a19 = 1; + a5 = 4; + a1 = 12; + a23 = 1; + a6 = 1; + return -1; + } else if(((((a9==10)&&((a16==10)&&(((a13==1)&&((a20==1)&&(a3==1)))&&!(a8==1))))&&(a17==2))&&((a19==1)&&((!(a7==1)&&((a6==1)&&((((a21==11)&&((input==1)&&((a5==5)||(a5==6))))&&(a1==14))&&(a23==1))))&&(a3==1))))){ + a3 = 1; + a24 = 0; + a9 = 7; + a21 = 10; + a1 = 12; + a26 = 0; + a5 = 4; + a16 = 7; + return -1; + } else if((((a16==8)&&(!(a3==1)||((!(a20==1)&&((a27==1)||((a3==1)||(a24==1))))&&(a3==1))))&&((a21==10)&&((a13==1)&&(((a19==4)&&((a17==2)&&((a1==14)&&((a3==1)&&((input==5)&&((a5==4)||(a5==5)))))))&&(a9==11)))))){ + a16 = 7; + a9 = 7; + a5 = 4; + a20 = 1; + a1 = 12; + a24 = 0; + a6 = 1; + a19 = 1; + return -1; + } else if((((a9==11)&&((a19==2)&&(((a11==1)&&((a17==2)&&((!(a0==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5)))&&(a23==1))))&&!(a27==1))))&&((a16==11)&&((!(a20==1)&&(((!(a24==1)&&(a6==1))&&(a21==10))&&(a2==1)))&&(a1==13))))){ + a16 = 7; + a9 = 9; + a5 = 5; + a22 = 1; + a20 = 1; + a15 = 1; + a19 = 1; + a28 = 0; + return -1; + } else if((((a21==10)&&(((a28==1)&&((a1==12)&&(!(a20==1)&&(!(a4==1)&&((a17==2)&&(input==3))))))&&(a19==1)))&&(((!(a23==1)||((a14==1)||(((a24==1)||(!(a2==1)||(a3==1)))&&(a5==4))))&&(a9==8))&&(a16==8)))){ + a0 = 0; + a20 = 1; + a24 = 0; + a9 = 7; + a16 = 7; + a12 = 1; + return -1; + } else if(((!(a12==1)&&(!(a20==1)&&((a16==7)&&((a9==8)&&(((((a5==4)||(a5==5))&&(input==4))&&!(a23==1))&&(a21==12))))))&&(((((a1==14)&&((a19==5)&&((a8==1)&&((a3==1)&&(a8==1)))))&&!(a2==1))&&(a17==2))&&(a26==1)))){ + a5 = 4; + a15 = 0; + a1 = 12; + a24 = 1; + a19 = 1; + a20 = 1; + a21 = 10; + a9 = 7; + return -1; + } else if(((!(a8==1)&&(((a16==10)&&((a21==11)&&((a19==5)&&((input==5)&&((((a5==4)&&(a1==14))&&(a9==7))||((((a1==13)&&(a5==5))&&(a9==11))||(((a5==6)&&(a1==13))&&(a9==11))))))))&&(a11==1)))&&((!(a28==1)||(!(a13==1)||((!(a20==1)&&((a28==1)&&(a3==1)))&&(a17==2))))||(a14==1)))){ + a5 = 6; + a20 = 1; + a16 = 7; + a1 = 12; + a19 = 2; + a25 = 1; + a18 = 1; + a21 = 10; + a9 = 9; + a6 = 0; + return -1; + } else if(((((a9==10)&&((!(a28==1)||((a19==5)&&((a24==1)||((a16==8)&&(((a6==1)&&!(a20==1))&&(a17==2))))))&&(a13==1)))&&(a1==14))&&((a23==1)&&(((!(a0==1)&&(((a5==5)||(a5==6))&&(input==6)))&&(a21==12))&&(a2==1))))){ + a14 = 1; + a1 = 12; + a16 = 7; + a20 = 1; + a19 = 2; + a2 = 0; + a21 = 10; + a9 = 8; + a5 = 6; + return 23; + } else if((((((((a18==1)||((a23==1)&&(a28==1)))||!(a13==1))&&(a16==7))&&(a19==5))&&(a17==2))&&((!(a20==1)&&(((!(a26==1)&&(((((a5==6)&&(a1==13))&&(a9==11))||(((a5==4)&&(a1==14))&&(a9==7)))&&(input==6)))&&(a21==10))&&!(a26==1)))&&!(a27==1)))){ + a20 = 1; + a21 = 12; + a5 = 6; + a1 = 12; + a16 = 9; + a2 = 1; + a9 = 11; + a27 = 0; + a19 = 2; + a4 = 0; + return 23; + } else if((((((a20==1)&&((((a7==1)||((a13==1)||!(a3==1)))&&(a9==9))&&(a21==12)))&&(a16==7))&&(a12==1))&&((a17==2)&&(((a23==1)&&(((((a5==5)&&(input==5))&&!(a7==1))&&(a1==14))&&!(a7==1)))&&(a19==5))))){ + a1 = 12; + a12 = 1; + a26 = 0; + a5 = 4; + a19 = 1; + a8 = 0; + a9 = 7; + a21 = 10; + return -1; + } else if((((a11==1)&&(((a1==14)&&(((input==5)&&((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4))))&&(a20==1)))&&(a2==1)))&&((a4==1)||(((!(a8==1)&&((a21==12)&&(((a19==4)&&((a17==2)&&(a6==1)))&&(a16==9))))||!(a12==1))&&(a12==1))))){ + a26 = 0; + a5 = 4; + a9 = 10; + a16 = 8; + a21 = 10; + a28 = 1; + a13 = 1; + a20 = 0; + return 21; + } else if((((a19==4)&&(((!(a28==1)||(!(a13==1)||((a20==1)&&((a16==7)&&(a13==1)))))&&(a17==2))&&(a21==12)))&&((a1==12)&&(!(a4==1)&&(!(a0==1)&&(!(a26==1)&&(!(a18==1)&&((((a5==4)||(a5==5))&&(input==4))&&(a9==10))))))))){ + a23 = 1; + a19 = 1; + a27 = 0; + a21 = 10; + a18 = 0; + a5 = 4; + a9 = 7; + return -1; + } else if((((((a19==4)&&((a11==1)&&(!(a4==1)&&(!(a7==1)&&((a3==1)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&(a1==12))&&(a20==1)))))))&&(a9==10))&&(a16==9))&&(((a24==1)||(!(a26==1)&&((a17==2)&&(a28==1))))&&(a21==12)))){ + a9 = 7; + a5 = 4; + a19 = 1; + a28 = 1; + a21 = 10; + a24 = 0; + a16 = 7; + a18 = 0; + return -1; + } else if((((a2==1)&&((a9==11)&&((((((a21==11)&&((input==4)&&((a5==4)||(a5==5))))&&(a16==9))&&(a17==2))&&(a19==2))&&(a6==1))))&&((a12==1)&&((((((a6==1)||!(a28==1))&&(a20==1))&&(a1==14))||(a27==1))||!(a3==1))))){ + a21 = 10; + a19 = 1; + a7 = 0; + a13 = 1; + a9 = 7; + a5 = 4; + a16 = 7; + a1 = 12; + a8 = 0; + return -1; + } else if((((a1==13)&&((a9==11)&&(((a17==2)&&((a11==1)&&(((input==5)&&(a21==10))&&(a19==2))))&&(a3==1))))&&((a13==1)&&(((a4==1)||(((((a3==1)&&!(a24==1))&&!(a26==1))&&!(a20==1))&&(a16==10)))&&(a5==5))))){ + if((a6==1)){ + a24 = 1; + a19 = 1; + a1 = 14; + a9 = 9; + a5 = 4; + a22 = 0; + a16 = 7; + a20 = 1; + a10 = 0; + }else{ + a20 = 1; + a9 = 7; + a3 = 0; + a5 = 4; + a16 = 7; + a10 = 1; + a7 = 1; + a19 = 1; + a1 = 12; + } + return -1; + } else if(((!(a26==1)&&(((a19==3)&&((!(a7==1)&&((((((a9==7)&&((a1==13)&&(a5==4)))||(((a9==11)&&((a5==5)&&(a1==12)))||(((a1==12)&&(a5==6))&&(a9==11))))&&(input==6))&&(a6==1))&&(a23==1)))&&!(a18==1)))&&(a21==11)))&&((!(a7==1)&&((a17==2)&&((a16==8)&&(a11==1))))&&(a20==1)))){ + a23 = 1; + a1 = 12; + a2 = 1; + a19 = 1; + a5 = 4; + a16 = 7; + a9 = 7; + a21 = 10; + return -1; + } else if(((((((a16==10)&&(((a24==1)||(!(a2==1)||(!(a18==1)&&(a13==1))))||(a24==1)))&&(a17==2))&&(a9==8))&&(a19==3))&&((((!(a7==1)&&((a5==5)&&(!(a20==1)&&(input==6))))&&!(a26==1))&&(a1==12))&&(a21==11)))){ + if((a0==1)){ + a12 = 0; + a19 = 1; + a21 = 10; + a5 = 6; + a9 = 10; + a18 = 1; + a16 = 7; + a20 = 1; + }else{ + a7 = 1; + a16 = 8; + a9 = 7; + a23 = 0; + a1 = 13; + a19 = 2; + a24 = 1; + a21 = 12; + a20 = 1; + } + return -1; + } else if((((a18==1)||((((a26==1)||(a23==1))||!(a11==1))||(a8==1)))&&((a2==1)&&(((a21==10)&&((a16==11)&&((((((a19==2)&&(((a5==6)&&(a1==14))&&(a9==11)))||((a19==3)&&(((a1==12)&&(a5==4))&&(a9==7))))&&(input==4))&&(a17==2))&&!(a7==1))))&&!(a20==1))))){ + a9 = 8; + a25 = 0; + a19 = 1; + a16 = 7; + a1 = 12; + a20 = 1; + a2 = 0; + a5 = 5; + a29 = 0; + return -1; + } else if(((((a1==14)&&((((a19==3)&&(!(a8==1)&&(!(a23==1)||((a17==2)&&(a11==1)))))&&(a16==11))||(a26==1)))||(a26==1))&&((((!(a7==1)&&((a20==1)&&((input==5)&&(a21==11))))&&(a5==4))&&(a9==9))&&(a12==1)))){ + a19 = 1; + a18 = 0; + a16 = 7; + a9 = 7; + a1 = 12; + a4 = 0; + a21 = 10; + return -1; + } else if(((!(a18==1)&&((!(a4==1)&&((a19==3)&&((a21==11)&&(((!(a4==1)&&((input==6)&&((a5==4)||(a5==5))))&&!(a4==1))&&(a9==11)))))&&!(a20==1)))&&((((a18==1)||(((a17==2)&&(a23==1))&&!(a8==1)))&&(a16==7))&&(a1==12)))){ + a5 = 4; + a20 = 1; + a6 = 1; + a21 = 10; + a9 = 7; + a8 = 0; + a19 = 1; + a12 = 1; + return -1; + } else if((((a21==12)&&((a1==13)&&((a23==1)&&((((!(a18==1)&&((input==4)&&(a16==10)))&&(a5==5))&&!(a4==1))&&!(a8==1)))))&&((a19==5)&&((a17==2)&&((a20==1)&&((a9==7)&&(((a23==1)&&(a11==1))||!(a3==1)))))))){ + a3 = 1; + a26 = 0; + a16 = 7; + a19 = 2; + a21 = 10; + a18 = 0; + a9 = 9; + return 23; + } else if(((((((a13==1)&&((a20==1)&&((input==6)&&(a19==5))))&&(a2==1))&&(a11==1))&&(a16==7))&&((a17==2)&&((((!(a12==1)||((a5==5)&&(((a23==1)&&(a1==14))&&(a21==12))))&&!(a26==1))||!(a6==1))&&(a9==7))))){ + if((a3==1)){ + a16 = 8; + a1 = 12; + a21 = 11; + a6 = 1; + a20 = 0; + a9 = 8; + a19 = 4; + a18 = 0; + a8 = 0; + }else{ + a6 = 1; + a19 = 2; + a3 = 1; + a9 = 10; + a11 = 1; + a1 = 13; + a21 = 10; + a5 = 4; + } + return 21; + } else if(((!(a14==1)&&((((a21==10)&&((a19==1)&&((a12==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))))&&!(a20==1))&&(a9==7)))&&((a2==1)&&(((a1==14)&&((a0==1)||((a17==2)&&((!(a26==1)&&(a3==1))&&(a16==8)))))&&!(a24==1))))){ + a6 = 1; + a1 = 12; + a20 = 1; + a27 = 0; + a5 = 4; + a16 = 7; + a26 = 0; + return -1; + } else if(((((a17==2)&&(((((a20==1)&&(a13==1))&&(a19==4))||!(a6==1))&&(a21==10)))||(a24==1))&&((a28==1)&&((((((a1==14)&&(!(a18==1)&&((input==5)&&((a5==5)||(a5==6)))))&&(a13==1))&&(a9==10))&&!(a8==1))&&(a16==10))))){ + a9 = 7; + a3 = 1; + a16 = 9; + a7 = 0; + a8 = 0; + a5 = 6; + a19 = 1; + return -1; + } else if((((a9==11)&&(!(a14==1)&&(!(a18==1)&&(((((a16==10)&&(input==3))&&(a21==12))&&!(a7==1))&&(a20==1)))))&&((!(a14==1)&&(((((!(a2==1)||(a6==1))&&(a19==2))&&(a17==2))||(a0==1))&&(a5==5)))&&(a1==14)))){ + a1 = 12; + a5 = 4; + a28 = 1; + a2 = 1; + a16 = 7; + a9 = 7; + a19 = 1; + a21 = 10; + a0 = 0; + return -1; + } else if(((((a19==3)&&((((((input==6)&&(a5==6))&&(a3==1))&&(a23==1))&&(a2==1))&&!(a7==1)))&&(a21==12))&&(((a17==2)&&((((((a12==1)&&(a6==1))&&(a1==13))||(a14==1))&&(a16==8))&&!(a20==1)))&&(a9==10)))){ + if((a8==1)){ + a2 = 0; + a19 = 5; + a28 = 0; + a9 = 7; + a13 = 0; + a1 = 14; + }else{ + a22 = 0; + a11 = 0; + a20 = 1; + a9 = 11; + a2 = 0; + a19 = 2; + a1 = 12; + a21 = 10; + a5 = 5; + } + return -1; + } else if(((((((a28==1)&&((a16==7)&&(((!(a7==1)&&((a17==2)&&(input==1)))&&(a9==10))&&!(a27==1))))&&!(a4==1))&&(a5==6))&&(a28==1))&&((a19==2)&&(((a1==13)&&((a13==1)&&((a3==1)&&!(a20==1))))&&(a21==12))))){ + a20 = 1; + a0 = 0; + a21 = 10; + a6 = 1; + a9 = 7; + a12 = 1; + a1 = 12; + a5 = 4; + a19 = 4; + return 26; + } else if((((a1==14)&&((a17==2)&&((a5==4)&&((((a7==1)&&(!(a28==1)&&((a0==1)&&(((a19==4)&&((a16==8)&&(input==1)))&&(a4==1)))))&&(a9==9))&&!(a3==1)))))&&((((a13==1)&&!(a20==1))&&(a21==11))&&!(a11==1)))){ + a8 = 1; + a16 = 7; + a21 = 10; + a20 = 1; + a9 = 8; + a1 = 13; + a0 = 1; + a27 = 1; + a19 = 1; + a5 = 5; + return 21; + } else if((((a20==1)&&((a11==1)&&((a16==7)&&(((((input==4)&&(a19==4))&&(a9==9))&&(a5==6))&&(a23==1)))))&&(!(a0==1)&&(((a0==1)||((a28==1)&&((((a1==14)&&(a2==1))&&(a17==2))&&(a21==11))))||(a7==1))))){ + a5 = 4; + a19 = 1; + a21 = 10; + a9 = 7; + a1 = 12; + a11 = 1; + a14 = 0; + a7 = 0; + return -1; + } else if((((((a21==12)&&(((a24==1)||(a12==1))&&(a17==2)))&&(a23==1))||!(a28==1))&&(((a1==14)&&(((a12==1)&&(((((input==4)&&((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11))))&&(a19==2))&&(a20==1))&&(a16==7)))&&(a13==1)))&&!(a8==1)))){ + a1 = 12; + a21 = 10; + a2 = 1; + a12 = 1; + a28 = 1; + a9 = 7; + a19 = 1; + a5 = 4; + return -1; + } else if((((a16==10)&&(((((input==6)&&(a20==1))&&(a1==12))&&(a17==2))&&(a19==2)))&&((a5==6)&&((((a27==1)||((((a8==1)||(((a9==7)&&(a6==1))||(a8==1)))||!(a3==1))||!(a23==1)))||(a0==1))&&(a21==11))))){ + a16 = 9; + a12 = 1; + a21 = 10; + a24 = 0; + a9 = 10; + a1 = 14; + a26 = 0; + a5 = 5; + return 21; + } else if(((((a11==1)&&((a23==1)&&((a17==2)&&(((a7==1)||(a6==1))&&(a9==7)))))&&!(a20==1))&&((a19==2)&&(((a1==14)&&(((!(a7==1)&&(((input==4)&&((a5==5)||(a5==6)))&&(a23==1)))&&(a16==7))&&(a3==1)))&&(a21==12))))){ + a19 = 1; + a4 = 0; + a24 = 0; + a1 = 12; + a5 = 4; + a21 = 10; + a23 = 1; + a20 = 1; + return -1; + } else if((((((!(a20==1)&&((a13==1)&&((a3==1)&&!(a7==1))))||!(a6==1))&&(a19==2))&&(a1==12))&&((a17==2)&&(((a21==10)&&(((!(a27==1)&&((((a5==5)||(a5==6))&&(input==6))&&(a23==1)))&&(a16==7))&&(a13==1)))&&(a9==8))))){ + a20 = 1; + a8 = 0; + a26 = 0; + a19 = 1; + a18 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if((((((a21==11)&&((((a23==1)&&!(a24==1))&&(a16==9))||(a8==1)))&&(a17==2))&&!(a7==1))&&((a19==3)&&(!(a18==1)&&((a1==14)&&(((((a11==1)&&((input==6)&&((a5==4)||(a5==5))))&&(a9==9))&&(a13==1))&&!(a20==1))))))){ + a1 = 13; + a4 = 1; + a9 = 7; + a26 = 1; + a20 = 1; + a21 = 10; + a5 = 4; + a12 = 0; + a19 = 2; + a16 = 7; + return 21; + } else if(((((a21==11)&&((!(a13==1)&&((a4==1)&&(a3==1)))&&(a17==2)))&&!(a11==1))&&(!(a12==1)&&((((a26==1)&&((((a16==8)&&(((input==6)&&((a5==4)||(a5==5)))&&(a26==1)))&&(a1==13))&&!(a20==1)))&&(a9==8))&&(a19==3))))){ + a21 = 10; + a16 = 9; + a18 = 1; + a25 = 0; + a9 = 7; + a1 = 12; + a5 = 4; + a19 = 1; + a28 = 0; + a20 = 1; + return -1; + } else if(((((a21==10)&&(((((a16==8)&&(!(a0==1)&&(a12==1)))&&(a3==1))&&(a1==14))||(a27==1)))&&!(a20==1))&&((((((a12==1)&&(((input==1)&&(a19==2))&&!(a4==1)))&&(a5==5))&&(a9==10))&&!(a4==1))&&(a17==2)))){ + a12 = 1; + a2 = 1; + a20 = 1; + a19 = 3; + a28 = 1; + a16 = 7; + return 23; + } else if((((!(a13==1)||(((((a5==4)&&(!(a27==1)&&((a9==11)&&((a2==1)&&((a2==1)&&(a21==11))))))&&(a16==7))&&(a19==4))||!(a3==1)))||!(a23==1))&&((a1==14)&&(((a20==1)&&((input==1)&&(a17==2)))&&!(a0==1))))){ + a5 = 6; + a28 = 1; + a0 = 0; + a19 = 5; + a1 = 13; + a16 = 8; + a9 = 8; + a8 = 0; + return 21; + } else if((((a17==2)&&((a21==12)&&((a1==12)&&(!(a20==1)&&((a7==1)||(a13==1))))))&&(((a13==1)&&(!(a24==1)&&(((a19==2)&&((a16==8)&&(!(a4==1)&&((input==3)&&((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8)))))))&&!(a24==1))))&&!(a24==1)))){ + if((a27==1)){ + a9 = 8; + a5 = 6; + a7 = 1; + a20 = 1; + a1 = 13; + a16 = 7; + a15 = 0; + a24 = 1; + a19 = 1; + a21 = 10; + }else{ + a12 = 0; + a19 = 1; + a9 = 11; + a16 = 7; + a10 = 0; + a5 = 4; + a7 = 1; + a21 = 10; + a20 = 1; + a1 = 14; + } + return 22; + } else if(((((a1==14)&&((a17==2)&&(((a21==11)&&((a2==1)&&(((a20==1)&&(!(a8==1)&&((input==4)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))))&&(a16==11))))&&(a19==3))))&&(a23==1))&&(!(a28==1)||(((a12==1)&&!(a0==1))&&!(a24==1))))){ + a9 = 10; + a27 = 0; + a24 = 0; + a20 = 0; + a19 = 2; + a16 = 8; + a5 = 5; + return 25; + } else if(((((a2==1)&&((a6==1)&&(!(a7==1)&&((((((a5==4)||(a5==5))&&(input==5))&&(a9==10))&&!(a24==1))&&(a16==7)))))&&(a17==2))&&((a1==12)&&((a21==12)&&((a19==4)&&((a14==1)||((a13==1)&&((a13==1)&&(a20==1))))))))){ + a19 = 1; + a13 = 1; + a18 = 0; + a9 = 7; + a8 = 0; + a21 = 10; + a5 = 4; + return -1; + } else if((((a16==11)&&((a5==4)&&(((a9==7)&&(a3==1))&&(a20==1))))&&((((((!(a26==1)&&((a6==1)&&((!(a7==1)&&((a1==12)&&(input==5)))&&(a21==12))))&&!(a8==1))&&(a28==1))&&!(a24==1))&&(a19==3))&&(a17==2)))){ + a24 = 0; + a21 = 10; + a19 = 1; + a16 = 7; + a18 = 0; + return -1; + } else if(((!(a13==1)||((!(a6==1)||(((((a12==1)&&(a1==12))&&!(a18==1))&&(a9==10))&&(a16==10)))&&(a28==1)))&&(!(a14==1)&&((((a3==1)&&((a21==11)&&((((a5==4)||(a5==5))&&(input==3))&&(a19==4))))&&(a20==1))&&(a17==2))))){ + a16 = 7; + a5 = 4; + a24 = 0; + a9 = 7; + a3 = 1; + a7 = 0; + a21 = 10; + a19 = 1; + return -1; + } else if(((((((((a7==1)&&((input==4)&&((a5==4)||(a5==5))))&&(a9==11))&&(a19==3))&&!(a11==1))&&(a17==2))&&(a14==1))&&(((a21==10)&&((a0==1)&&((a1==12)&&((a26==1)&&((a20==1)&&((a16==9)&&(a11==1)))))))&&!(a3==1)))){ + a5 = 4; + a8 = 1; + a23 = 0; + a19 = 2; + a9 = 9; + a4 = 1; + a16 = 7; + return 26; + } else if(((((!(a7==1)&&((a17==2)&&(input==1)))&&!(a8==1))&&(a19==5))&&((((a5==6)&&((((((a16==10)&&(((a6==1)&&(a13==1))&&(a1==13)))||(a8==1))&&(a9==8))&&(a21==12))||!(a12==1)))||!(a6==1))&&(a20==1)))){ + a21 = 10; + a3 = 1; + a19 = 2; + a16 = 7; + a9 = 9; + a26 = 0; + a5 = 5; + return 23; + } else if((((a28==1)&&((a1==13)&&((((a23==1)&&(((a19==5)&&(((((input==3)&&(a20==1))&&(a9==8))&&(a21==10))&&(a23==1)))&&(a16==9)))&&(a11==1))&&!(a18==1))))&&((((a5==5)&&(a2==1))&&(a17==2))||!(a13==1)))){ + a16 = 7; + a3 = 1; + a19 = 1; + a5 = 4; + a12 = 1; + a9 = 7; + a28 = 1; + a1 = 12; + return -1; + } else if((((a1==13)&&(((a21==12)&&((((a11==1)&&(a17==2))||!(a6==1))||!(a13==1)))&&(a5==6)))&&(!(a20==1)&&((a9==8)&&((a6==1)&&(!(a27==1)&&((a6==1)&&(((a19==2)&&((input==6)&&(a16==9)))&&!(a7==1))))))))){ + a19 = 1; + a28 = 0; + a5 = 5; + a16 = 7; + a8 = 1; + a20 = 1; + a21 = 10; + a9 = 11; + a2 = 0; + return -1; + } else if((((a9==7)&&(((((a11==1)&&((a19==5)&&((a28==1)&&!(a4==1))))&&(a1==12))||!(a23==1))&&!(a20==1)))&&((a16==9)&&((((a21==11)&&((!(a8==1)&&(((a5==5)||(a5==6))&&(input==6)))&&(a13==1)))&&(a13==1))&&(a17==2))))){ + if((a14==1)){ + a20 = 1; + a15 = 1; + a5 = 5; + a16 = 7; + a21 = 10; + a27 = 1; + a1 = 14; + a19 = 1; + a0 = 1; + }else{ + a21 = 10; + a9 = 9; + a1 = 13; + a19 = 1; + a5 = 5; + a26 = 1; + a20 = 1; + a16 = 7; + a10 = 0; + } + return 25; + } else if(((((!(a24==1)&&((a9==7)&&((input==4)&&(a5==4))))&&(a19==3))&&(a11==1))&&(((a16==10)&&(!(a7==1)&&(((a21==11)&&((((a1==12)&&((a14==1)||(a28==1)))||!(a11==1))&&(a20==1)))&&(a17==2))))&&!(a18==1)))){ + a11 = 1; + a19 = 1; + a21 = 10; + a14 = 0; + a13 = 1; + a16 = 7; + return -1; + } else if((((a19==4)&&(((((((((a9==11)&&((a5==6)&&(a1==12)))||((a9==7)&&((a1==13)&&(a5==4))))||((a9==7)&&((a1==13)&&(a5==5))))&&(input==1))&&(a11==1))&&(a16==9))&&(a28==1))&&(a17==2)))&&((((!(a20==1)&&(((a6==1)||(a24==1))&&(a21==10)))||!(a6==1))&&(a13==1))&&!(a27==1)))){ + a1 = 14; + a7 = 1; + a16 = 7; + a0 = 1; + a27 = 1; + a9 = 7; + a5 = 4; + a19 = 1; + return 21; + } else if((((a13==1)&&(((a6==1)&&(((a17==2)&&((a1==12)&&(input==4)))&&(a21==11)))&&!(a26==1)))&&(((a19==5)&&(((((a5==6)&&(((a6==1)&&(a9==8))&&(a20==1)))&&(a28==1))&&(a16==8))||!(a11==1)))&&!(a7==1)))){ + a21 = 10; + a19 = 1; + a4 = 0; + a9 = 7; + a16 = 7; + a0 = 0; + a8 = 0; + a5 = 4; + return -1; + } else if((((a6==1)&&((!(a8==1)&&(!(a13==1)||((a7==1)||(a13==1))))&&(a16==8)))&&((a20==1)&&((a9==10)&&((((((((input==6)&&(a5==5))&&!(a24==1))&&(a13==1))&&(a17==2))&&(a1==12))&&(a21==10))&&(a19==4)))))){ + a18 = 0; + a9 = 7; + a13 = 1; + a19 = 1; + a2 = 1; + a5 = 6; + a16 = 10; + return 26; + } else if((((a12==1)&&(((((a1==12)&&(!(a20==1)&&((a16==9)&&(input==3))))&&(a9==10))&&(a17==2))&&(a5==5)))&&(!(a11==1)||(!(a11==1)||((!(a27==1)&&((a21==12)&&((a4==1)||((a3==1)&&(a19==2)))))&&!(a8==1)))))){ + a7 = 1; + a1 = 13; + a5 = 4; + a19 = 5; + a21 = 10; + a20 = 1; + a9 = 8; + a25 = 1; + a27 = 1; + return 26; + } else if(((!(a24==1)&&(((((a28==1)&&((a19==1)&&((input==3)&&(a1==12))))&&(a9==8))&&(a28==1))&&(a20==1)))&&(((a21==12)&&((a17==2)&&((((a27==1)||((a28==1)&&(a5==6)))||(a24==1))&&(a16==7))))&&(a11==1)))){ + a9 = 7; + a6 = 1; + a23 = 1; + a21 = 10; + a5 = 4; + a0 = 0; + return -1; + } else if(((!(a27==1)&&((!(a7==1)&&((a19==5)&&((input==5)&&(a21==12))))&&!(a18==1)))&&(((((a5==5)&&((a26==1)||((a17==2)&&((((a9==9)&&(a12==1))&&!(a7==1))&&(a16==9)))))&&(a20==1))&&(a1==13))&&(a23==1)))){ + a6 = 1; + a9 = 7; + a19 = 1; + a16 = 7; + a5 = 4; + a21 = 10; + a11 = 1; + a1 = 12; + a3 = 1; + return -1; + } else if((((a1==14)&&((a16==11)&&(!(a3==1)||(((a21==10)&&(((a28==1)&&(a13==1))&&!(a8==1)))||(a4==1)))))&&((a20==1)&&((((a3==1)&&(((input==4)&&((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4))))&&(a17==2)))&&!(a0==1))&&(a19==2))))){ + a19 = 1; + a16 = 7; + a1 = 12; + a23 = 1; + a13 = 1; + a9 = 7; + a5 = 4; + return -1; + } else if(((((((a20==1)&&((a17==2)&&(((a21==12)&&((((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6))))&&(input==6)))&&(a19==2))))&&(a1==13))&&!(a4==1))&&(a2==1))&&((a2==1)&&(((a11==1)&&(!(a8==1)&&((a16==9)&&(a2==1))))||(a4==1))))){ + a19 = 1; + a16 = 7; + a1 = 12; + a21 = 10; + a14 = 0; + a5 = 4; + a3 = 1; + a9 = 7; + a2 = 1; + return -1; + } else if((((a24==1)&&((!(a6==1)&&((a26==1)&&((a17==2)&&((((a16==11)&&(input==5))&&(a1==13))&&(a5==6)))))&&(a21==10)))&&((!(a28==1)&&((a20==1)&&((a9==9)&&(((a27==1)&&(a13==1))&&(a19==3)))))&&!(a23==1)))){ + a19 = 2; + a21 = 12; + a15 = 0; + a9 = 7; + a5 = 5; + a16 = 10; + a18 = 1; + a2 = 0; + return 25; + } else if((((a16==8)&&((a21==12)&&((a18==1)||(!(a23==1)||(a11==1)))))&&((a9==8)&&((a5==5)&&(((a20==1)&&(((((((a19==5)&&(input==1))&&!(a24==1))&&(a2==1))&&(a2==1))&&(a1==14))&&(a17==2)))&&!(a27==1)))))){ + a3 = 1; + a5 = 6; + a26 = 0; + a9 = 10; + a12 = 1; + a1 = 13; + return -1; + } else if((((a11==1)&&((((a17==2)&&(!(a20==1)&&((a19==2)&&(((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))&&(input==3)))))&&(a3==1))&&(a2==1)))&&((!(a12==1)||((a2==1)&&((a21==12)&&((a16==8)&&((a1==12)&&(a3==1))))))||(a24==1)))){ + a5 = 5; + a1 = 14; + a7 = 1; + a16 = 10; + a8 = 1; + a20 = 1; + a21 = 11; + a19 = 5; + a9 = 7; + a15 = 0; + return -1; + } else if((((a3==1)&&((((a17==2)&&(((a5==5)||(a5==6))&&(input==6)))&&(a9==8))&&(a12==1)))&&((((a12==1)&&(((a21==11)&&(((((a1==12)&&(a2==1))&&(a19==4))&&(a20==1))&&(a16==11)))&&(a13==1)))&&(a12==1))&&(a6==1)))){ + a19 = 2; + a21 = 12; + a9 = 7; + a6 = 1; + a5 = 5; + a14 = 0; + a7 = 0; + a16 = 9; + return 21; + } else if((((a9==8)&&(((a5==5)&&((a1==12)&&((a11==1)&&((a12==1)&&(((a16==7)&&(input==1))&&(a6==1))))))&&(a17==2)))&&(!(a20==1)&&(((a2==1)&&(((!(a24==1)&&(a12==1))&&(a21==11))||(a26==1)))&&(a19==2))))){ + a9 = 7; + a20 = 1; + a26 = 0; + a19 = 1; + a5 = 4; + a2 = 1; + a21 = 10; + return -1; + } else if((((((((((a17==2)&&(a2==1))&&!(a4==1))&&(a1==14))&&(a23==1))||(a27==1))&&(a9==10))&&(a19==5))&&((!(a20==1)&&((a5==5)&&(!(a7==1)&&((((a21==10)&&(input==4))&&!(a24==1))&&(a3==1)))))&&(a16==7)))){ + a19 = 1; + a20 = 1; + a8 = 0; + a5 = 4; + a14 = 0; + a1 = 12; + a9 = 7; + a26 = 0; + return -1; + } else if((((a17==2)&&(((!(a24==1)&&((a11==1)&&((input==1)&&(((((a1==12)&&(a5==4))&&(a9==7))&&(a19==4))||(((a19==3)&&((a9==11)&&((a1==14)&&(a5==5))))||((((a1==14)&&(a5==6))&&(a9==11))&&(a19==3)))))))&&(a23==1))&&(a16==7)))&&(((a21==12)&&((!(a11==1)||((a12==1)&&(a20==1)))||(a26==1)))&&(a2==1)))){ + a16 = 8; + a9 = 11; + a1 = 13; + a5 = 4; + a19 = 5; + a21 = 10; + a13 = 1; + a4 = 0; + a14 = 0; + return 22; + } else if(((((a9==8)&&((a17==2)&&(((a5==4)&&(((a21==12)&&((a1==13)&&(input==3)))&&!(a24==1)))&&(a20==1))))&&!(a8==1))&&(((a16==9)&&(((a24==1)||((!(a18==1)&&(a23==1))||(a0==1)))&&!(a0==1)))&&(a19==2)))){ + a9 = 7; + a27 = 0; + a16 = 7; + a19 = 1; + a24 = 0; + a1 = 12; + a14 = 0; + a21 = 10; + return -1; + } else if(((!(a12==1)||(!(a23==1)||(((a9==11)&&(!(a26==1)&&(((a3==1)&&(a21==10))&&(a19==1))))&&(a16==11))))&&((a13==1)&&((((a20==1)&&((a5==6)&&((a17==2)&&((a1==14)&&(input==1)))))&&(a12==1))&&!(a18==1))))){ + a21 = 11; + a8 = 0; + a23 = 1; + a4 = 0; + a5 = 5; + a1 = 12; + a19 = 2; + return 21; + } else if(((((a23==1)&&(!(a0==1)&&(((!(a12==1)||(a12==1))&&(a20==1))&&(a17==2))))&&(a28==1))&&((a19==3)&&((!(a0==1)&&(((a16==11)&&(((input==3)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(a13==1)))&&(a21==12)))&&(a1==14))))){ + a21 = 10; + a2 = 1; + a5 = 4; + a16 = 7; + a12 = 1; + a9 = 7; + a4 = 0; + a19 = 1; + a1 = 12; + return -1; + } else if((((a20==1)&&(((a4==1)||((a6==1)&&(a6==1)))||(a8==1)))&&((a9==10)&&((a16==9)&&((((((a21==12)&&((a2==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&!(a14==1))))&&(a1==13))&&(a3==1))&&(a17==2))&&(a19==5)))))){ + a16 = 8; + a9 = 8; + a11 = 1; + a19 = 1; + a5 = 6; + a7 = 0; + a12 = 1; + a1 = 14; + return 21; + } else if((((!(a26==1)&&((input==5)&&((a5==5)||(a5==6))))&&!(a24==1))&&((a18==1)||((((!(a0==1)&&((a20==1)&&(((a18==1)||(((a19==4)&&((a6==1)&&(a1==12)))&&(a9==9)))&&(a21==12))))&&(a16==8))&&(a17==2))||(a24==1))))){ + a21 = 10; + a5 = 4; + a19 = 1; + a14 = 0; + a9 = 7; + a16 = 7; + a18 = 0; + a8 = 0; + return -1; + } else if((((a16==9)&&((a17==2)&&((!(a4==1)&&((a3==1)&&((!(a0==1)&&((input==3)&&((a5==4)||(a5==5))))&&(a19==1))))&&(a2==1))))&&((((a24==1)||(((a21==10)&&((a1==14)&&(a11==1)))&&(a20==1)))&&!(a4==1))&&(a9==8)))){ + a16 = 8; + a21 = 12; + a4 = 0; + a23 = 1; + a19 = 5; + a5 = 6; + a24 = 0; + return -1; + } else if(((((a19==1)&&(!(a24==1)&&(((a5==4)&&((a1==14)&&(!(a0==1)&&((input==6)&&(a20==1)))))&&(a21==11))))&&(a17==2))&&((!(a4==1)&&(((a9==11)&&((!(a14==1)&&(a6==1))&&(a16==7)))&&!(a27==1)))&&(a12==1)))){ + a9 = 7; + a23 = 1; + a1 = 12; + a0 = 0; + a21 = 10; + a13 = 1; + return -1; + } else if((((a11==1)&&(((a16==10)&&((a19==4)&&(((a17==2)&&((input==4)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5)))))&&!(a20==1))))&&!(a7==1)))&&((!(a24==1)&&((a21==11)&&((a0==1)||((a14==1)||((a1==12)&&(a28==1))))))||!(a3==1)))){ + a16 = 7; + a9 = 10; + a5 = 4; + a8 = 1; + a21 = 10; + a14 = 1; + a20 = 1; + a19 = 2; + a3 = 0; + return 22; + } else if(((!(a28==1)||((((((a5==5)&&(a23==1))&&(a13==1))&&(a9==8))&&!(a20==1))||(a27==1)))&&((((a19==4)&&(!(a4==1)&&((a21==11)&&((((a17==2)&&(input==4))&&(a16==8))&&(a1==12)))))&&!(a0==1))&&!(a26==1)))){ + a20 = 1; + a9 = 11; + a5 = 6; + a0 = 0; + a27 = 0; + a19 = 3; + a28 = 1; + a21 = 10; + a16 = 7; + return 23; + } else if(((((a1==12)&&((a17==2)&&(!(a26==1)&&((a19==3)&&((((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a0==1))&&!(a14==1))))))&&(a21==11))&&(((a9==9)&&((a16==7)&&(((a14==1)||((a28==1)||!(a6==1)))&&!(a26==1))))&&!(a20==1)))){ + a16 = 10; + a20 = 1; + a12 = 1; + a9 = 8; + a19 = 4; + a27 = 0; + a5 = 5; + a4 = 0; + return 21; + } else if((((a3==1)&&((a16==10)&&(((input==1)&&((((a5==5)&&(a1==14))&&(a9==7))||((((a5==6)&&(a1==13))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==14))))))&&(a21==10))))&&(((!(a20==1)&&(!(a23==1)||(((a17==2)&&((a23==1)&&((a11==1)&&(a2==1))))&&!(a18==1))))||(a4==1))&&(a19==3)))){ + a19 = 1; + a12 = 0; + a2 = 0; + a1 = 12; + a9 = 11; + a16 = 7; + a20 = 1; + a15 = 1; + a5 = 4; + return -1; + } else if((((((!(a20==1)&&((input==1)&&((((a9==11)&&((a5==5)&&(a1==12)))||(((a5==6)&&(a1==12))&&(a9==11)))||(((a1==13)&&(a5==4))&&(a9==7)))))&&(a28==1))&&(a21==10))&&(a12==1))&&((a23==1)&&(((((((a23==1)||(a26==1))||!(a28==1))&&(a19==2))&&(a16==11))&&(a17==2))&&(a11==1))))){ + if((a11==1)){ + a9 = 10; + a16 = 7; + a20 = 1; + a0 = 1; + a28 = 0; + a1 = 13; + a19 = 3; + a5 = 6; + a10 = 0; + }else{ + a16 = 10; + a1 = 12; + a15 = 1; + a9 = 11; + a29 = 1; + a5 = 6; + a19 = 5; + a20 = 1; + a7 = 1; + a21 = 11; + } + return -1; + } else if((((a17==2)&&(((a16==10)&&(a6==1))&&!(a7==1)))&&(((a3==1)&&(!(a20==1)&&((a3==1)&&((a13==1)&&((a1==14)&&((a21==11)&&((a23==1)&&((a6==1)&&((input==4)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9))))))))))))&&(a19==4)))){ + a18 = 1; + a16 = 7; + a21 = 10; + a5 = 6; + a9 = 9; + a1 = 12; + a25 = 0; + a19 = 1; + a20 = 1; + a6 = 0; + return 21; + } else if(((((!(a18==1)&&(!(a7==1)&&((((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(input==5))))&&!(a4==1))&&!(a18==1))&&((a21==11)&&(((a1==13)&&((a16==11)&&(((!(a6==1)||((a2==1)&&(a17==2)))&&(a23==1))&&(a20==1))))&&(a19==4))))){ + a9 = 7; + a16 = 10; + a21 = 10; + a19 = 1; + a4 = 0; + a12 = 1; + a1 = 14; + a5 = 4; + return 21; + } else if((((a20==1)&&(((a11==1)&&(((a19==5)&&((a1==12)&&((a11==1)&&((a21==12)&&((!(a27==1)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==1)))&&(a17==2))))))&&(a3==1)))&&(a16==10)))&&((a26==1)||((a3==1)&&(a6==1))))){ + a26 = 0; + a16 = 7; + a9 = 7; + a21 = 10; + a5 = 4; + a6 = 1; + a4 = 0; + a19 = 1; + return -1; + } else if((((a13==1)&&(!(a28==1)||(((a16==10)&&((a13==1)&&(a19==4)))&&!(a27==1))))&&(!(a26==1)&&((a3==1)&&(((a1==12)&&((a21==11)&&(!(a20==1)&&(((input==6)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(a17==2)))))&&(a6==1)))))){ + a19 = 2; + a16 = 7; + a5 = 6; + a20 = 1; + a7 = 1; + a21 = 10; + a4 = 1; + a9 = 10; + return 25; + } else if((((a1==13)&&((a19==3)&&(!(a14==1)&&((((((input==5)&&((a5==5)||(a5==6)))&&!(a27==1))&&!(a18==1))&&(a11==1))&&(a9==7)))))&&(((a16==9)&&(((a17==2)&&((a3==1)&&((a23==1)&&(a21==11))))&&!(a7==1)))&&(a20==1)))){ + a18 = 0; + a1 = 12; + a3 = 1; + a21 = 10; + a19 = 1; + a16 = 7; + a5 = 4; + a0 = 0; + return -1; + } else if((((!(a20==1)&&((((a2==1)&&((a21==11)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3))))&&!(a8==1))&&(a9==7)))&&(a16==10))&&((((((((a13==1)&&(a17==2))&&!(a26==1))||!(a6==1))&&(a1==14))&&!(a14==1))&&!(a18==1))&&(a19==1)))){ + a13 = 0; + a5 = 5; + a21 = 10; + a20 = 1; + a8 = 1; + a1 = 12; + a19 = 2; + a16 = 7; + a11 = 0; + return -1; + } else if((((((a21==10)&&(((a23==1)&&(a19==3))&&(a17==2)))&&(a16==7))&&(a13==1))&&((!(a26==1)&&(!(a27==1)&&((a1==14)&&(((a12==1)&&(!(a20==1)&&((input==3)&&(((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))))))&&!(a0==1)))))&&!(a18==1)))){ + a1 = 12; + a12 = 1; + a13 = 1; + a19 = 1; + a7 = 0; + a20 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if(((!(a18==1)&&(((a23==1)&&((a3==1)&&((!(a7==1)&&(a2==1))&&!(a20==1))))&&(a16==9)))&&((((((((((a1==14)&&(a5==6))&&(a9==11))&&(a19==1))||((a19==2)&&((a9==7)&&((a5==4)&&(a1==12)))))&&(input==3))&&(a6==1))&&!(a18==1))&&(a21==11))&&(a17==2)))){ + if((a11==1)){ + a13 = 0; + a1 = 14; + a4 = 1; + a5 = 5; + a16 = 8; + a26 = 1; + a19 = 4; + a21 = 12; + a9 = 11; + }else{ + a16 = 10; + a21 = 10; + a1 = 13; + a19 = 2; + a9 = 10; + a12 = 0; + a15 = 1; + a5 = 4; + a11 = 0; + } + return -1; + } else if((((a3==1)&&(((a21==11)&&(!(a12==1)||((a20==1)&&((a16==9)&&((a11==1)&&(a6==1))))))||!(a11==1)))&&(!(a26==1)&&(!(a18==1)&&((a1==12)&&(((a17==2)&&((((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(input==4)))&&(a19==3))))))){ + a19 = 1; + a14 = 0; + a16 = 7; + a21 = 10; + a9 = 7; + a5 = 4; + a12 = 1; + a0 = 0; + return -1; + } else if(((((((((((a3==1)&&(a5==5))&&(a17==2))&&(a1==14))||(a7==1))&&(a21==12))&&(a11==1))&&(a2==1))&&(a9==7))&&(!(a18==1)&&((!(a27==1)&&((a19==1)&&(((a20==1)&&(input==5))&&(a16==7))))&&!(a0==1))))){ + a16 = 8; + a5 = 4; + a19 = 4; + a28 = 1; + a2 = 1; + a11 = 1; + return 22; + } else if(((((a16==8)&&((input==4)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))&&!(a0==1))&&(((!(a24==1)&&((a17==2)&&(!(a20==1)&&(((a1==14)&&((a21==12)&&((!(a14==1)&&(a23==1))||(a27==1))))&&(a28==1)))))&&(a19==1))&&(a3==1)))){ + a5 = 4; + a15 = 1; + a9 = 9; + a19 = 3; + a2 = 0; + a21 = 11; + a8 = 1; + return -1; + } else if((((a20==1)&&((a26==1)||((a14==1)||((a9==11)&&(((a11==1)&&(a21==10))&&(a19==2))))))&&(((a2==1)&&((a1==14)&&((((((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a16==7))&&!(a24==1))&&!(a4==1))&&!(a18==1))))&&(a17==2)))){ + a9 = 7; + a5 = 4; + a28 = 1; + a19 = 1; + a1 = 12; + a2 = 1; + a0 = 0; + return -1; + } else if(((!(a24==1)&&(((a1==12)&&((a21==10)&&((a5==5)&&(a13==1))))&&(a2==1)))&&((a2==1)&&((((a16==11)&&((a17==2)&&(!(a24==1)&&((a19==3)&&(((input==3)&&(a9==7))&&(a13==1))))))&&!(a20==1))&&(a6==1))))){ + a21 = 11; + a19 = 5; + a10 = 0; + a16 = 8; + a23 = 0; + a27 = 1; + a5 = 4; + a9 = 10; + return -1; + } else if((((a19==4)&&((!(a6==1)||((a17==2)&&((((a3==1)&&!(a20==1))&&(a23==1))||!(a11==1))))&&(a28==1)))&&((((a21==12)&&((((((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==3))&&(a12==1))&&(a23==1)))&&(a1==12))&&(a16==9)))){ + if((a23==1)){ + a16 = 10; + a27 = 1; + a21 = 10; + a20 = 1; + a9 = 11; + a4 = 1; + a19 = 3; + a10 = 0; + a5 = 6; + }else{ + a19 = 3; + a29 = 0; + a5 = 4; + a16 = 11; + a20 = 1; + a9 = 8; + a18 = 1; + } + return -1; + } else if(((!(a0==1)&&(!(a26==1)&&((((a16==9)&&(((a5==5)||(a5==6))&&(input==3)))&&(a9==8))&&!(a18==1))))&&(!(a28==1)||(!(a6==1)||((a19==1)&&(((a1==13)&&(((a20==1)&&((a6==1)&&(a12==1)))&&(a21==11)))&&(a17==2))))))){ + a16 = 7; + a4 = 0; + a9 = 7; + a21 = 10; + a14 = 0; + a5 = 4; + a18 = 0; + a1 = 12; + return -1; + } else if(((((a1==12)&&((a21==10)&&(((a26==1)||((a3==1)||(a18==1)))&&(a12==1))))&&(a19==1))&&((a17==2)&&((((!(a24==1)&&(!(a4==1)&&((a20==1)&&(((a5==5)||(a5==6))&&(input==5)))))&&(a3==1))&&(a9==9))&&(a16==9))))){ + a16 = 7; + a4 = 0; + a5 = 4; + a12 = 1; + a9 = 7; + a6 = 1; + return -1; + } else if((((((!(a4==1)&&((a9==10)&&((a1==14)&&(a3==1))))||!(a3==1))&&(a11==1))||!(a2==1))&&(((a19==3)&&((!(a27==1)&&((!(a20==1)&&(((input==4)&&(a5==6))&&(a21==12)))&&(a16==9)))&&(a17==2)))&&!(a4==1)))){ + if((a24==1)){ + a10 = 1; + a9 = 7; + a26 = 1; + a19 = 2; + a16 = 11; + a20 = 1; + a14 = 1; + a1 = 13; + a21 = 11; + }else{ + a9 = 7; + a20 = 1; + a5 = 5; + a1 = 13; + a15 = 1; + a13 = 0; + a19 = 1; + a16 = 7; + a6 = 0; + a21 = 10; + } + return -1; + } else if(((((a2==1)&&((a21==10)&&((a26==1)||(((((a12==1)&&(a16==8))&&(a5==4))&&(a17==2))&&!(a24==1)))))&&(a20==1))&&((((a1==13)&&((a13==1)&&((a2==1)&&((input==5)&&(a19==3)))))&&(a9==7))&&!(a0==1)))){ + a1 = 12; + a14 = 0; + a27 = 0; + a19 = 1; + a16 = 7; + a0 = 0; + return -1; + } else if(((((((a11==1)&&((((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&!(a14==1))&&(a19==1)))&&(a20==1))&&!(a0==1))&&(a9==7))&&((!(a28==1)||((a16==8)&&((a26==1)||((a1==14)&&(((a13==1)&&(a13==1))&&(a21==11))))))&&(a17==2)))){ + a5 = 4; + a6 = 1; + a16 = 7; + a7 = 0; + a2 = 1; + a21 = 10; + a1 = 12; + return -1; + } else if((((a23==1)&&(((((input==1)&&((((a1==12)&&(a5==6))&&(a9==11))||(((a1==13)&&(a5==4))&&(a9==7))))&&(a6==1))&&(a19==4))&&(a21==11)))&&((a16==9)&&(!(a4==1)&&(((a24==1)||((((a20==1)&&(a6==1))&&(a13==1))||!(a13==1)))&&(a17==2)))))){ + a5 = 4; + a11 = 1; + a7 = 0; + a1 = 13; + a9 = 10; + a21 = 10; + a16 = 7; + a19 = 2; + a4 = 0; + return 21; + } else if(((((a14==1)||(((a21==12)&&((a17==2)&&(a11==1)))&&(a1==12)))&&!(a20==1))&&((a13==1)&&(((a11==1)&&((!(a4==1)&&(((a19==5)&&((input==4)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))&&(a13==1)))&&!(a7==1)))&&(a16==10))))){ + if((a25==1)){ + a19 = 1; + a7 = 1; + a15 = 0; + a5 = 4; + a21 = 10; + a26 = 1; + a16 = 7; + a9 = 8; + a20 = 1; + a1 = 13; + }else{ + a25 = 1; + a21 = 10; + a16 = 7; + a20 = 1; + a9 = 8; + a22 = 1; + a24 = 1; + a19 = 1; + a5 = 5; + } + return -1; + } else if(((!(a14==1)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&(a16==7))&&(a13==1))&&!(a18==1)))&&((!(a20==1)&&((((a18==1)||((a21==12)&&(((a17==2)&&((a19==2)&&(a3==1)))&&(a9==11))))&&(a13==1))&&(a28==1)))&&(a1==14)))){ + a5 = 4; + a0 = 0; + a28 = 1; + a21 = 10; + a1 = 12; + a6 = 1; + a19 = 1; + a20 = 1; + a9 = 7; + return -1; + } else if((((a20==1)&&(((a19==3)&&(!(a0==1)&&((a16==8)&&(input==5))))&&(a17==2)))&&(((((a5==4)&&((!(a14==1)&&((a2==1)&&((a21==12)&&((a3==1)&&(a1==13)))))&&(a11==1)))&&(a23==1))||!(a2==1))&&(a9==7)))){ + a1 = 14; + a19 = 5; + a21 = 10; + a26 = 0; + a20 = 0; + a9 = 8; + a12 = 1; + a5 = 6; + a7 = 0; + return 26; + } else if(((((a19==3)&&(!(a3==1)||(((a6==1)&&(!(a8==1)&&(a2==1)))&&(a2==1))))&&!(a20==1))&&((((((!(a27==1)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==6)))&&(a1==13))&&(a28==1))&&(a16==9))&&(a21==11))&&(a17==2)))){ + a11 = 0; + a26 = 1; + a5 = 6; + a9 = 9; + a29 = 0; + a21 = 10; + a19 = 2; + a1 = 14; + return -1; + } else if((((a19==5)&&(((a16==9)&&(((!(a3==1)||((a9==7)&&((a3==1)&&((a21==10)&&(!(a23==1)||(a12==1))))))&&(a1==13))||!(a13==1)))&&!(a20==1)))&&((a17==2)&&(!(a7==1)&&((a6==1)&&(((a5==4)||(a5==5))&&(input==5))))))){ + if((a17==3)){ + a20 = 1; + a16 = 7; + a1 = 12; + a2 = 0; + a19 = 2; + a13 = 0; + a5 = 5; + a26 = 1; + }else{ + a19 = 2; + a5 = 6; + a16 = 10; + a1 = 12; + a21 = 12; + a9 = 11; + a22 = 1; + a11 = 0; + } + return 22; + } else if((((a18==1)&&(!(a6==1)&&(!(a28==1)&&((a17==2)&&((a19==5)&&((((a9==7)&&((((input==5)&&(a5==5))&&!(a13==1))&&(a16==7)))&&!(a13==1))&&(a21==11)))))))&&(!(a23==1)&&(((a23==1)&&(a20==1))&&(a1==14))))){ + a8 = 1; + a10 = 1; + a5 = 6; + a25 = 0; + a21 = 10; + a9 = 11; + a19 = 1; + a1 = 12; + return 22; + } else if(((((((((a19==4)&&((a8==1)&&((a16==8)&&(a28==1))))&&(a7==1))&&(a9==7))&&(a24==1))&&(a1==14))&&(a20==1))&&(((a21==11)&&((a24==1)&&(((((a5==5)||(a5==6))&&(input==1))&&!(a6==1))&&!(a11==1))))&&(a17==2)))){ + a10 = 0; + a1 = 12; + a21 = 10; + a9 = 10; + a19 = 2; + a29 = 0; + a5 = 5; + a16 = 7; + a22 = 1; + return -1; + } else if(((((a17==2)&&(((a16==11)&&(!(a0==1)&&(((!(a24==1)&&((a2==1)&&((input==5)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))))&&(a11==1))&&(a19==3))))&&(a1==14)))&&(a20==1))&&(!(a13==1)||(((a23==1)||(a0==1))&&(a21==11))))){ + a5 = 4; + a9 = 7; + a13 = 1; + a12 = 1; + a19 = 1; + a21 = 10; + a16 = 7; + a28 = 1; + a1 = 12; + return -1; + } else if((((a9==7)&&((((!(a8==1)&&((input==6)&&((a5==5)||(a5==6))))&&!(a18==1))&&(a12==1))&&(a1==12)))&&(((a17==2)&&((a8==1)||(!(a11==1)||((a13==1)&&((a21==11)&&(((a2==1)&&(a19==4))&&(a20==1)))))))&&(a16==9)))){ + a16 = 7; + a23 = 1; + a19 = 3; + a21 = 10; + a9 = 11; + a5 = 5; + a14 = 0; + a18 = 0; + return 23; + } else if((((a1==12)&&((a23==1)&&(((a17==2)&&((a12==1)&&((((input==4)&&(a16==7))&&(a23==1))&&(a3==1))))&&!(a24==1))))&&((((a11==1)&&(((a9==9)&&((a5==4)&&(a3==1)))&&(a20==1)))&&(a19==3))&&(a21==10)))){ + a19 = 5; + a9 = 11; + a18 = 0; + a5 = 5; + a24 = 0; + a12 = 1; + return 21; + } else if((((a20==1)&&((((a16==10)&&((a17==2)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==6))))&&(a1==14))&&!(a24==1)))&&((a6==1)&&((((a24==1)||((!(a4==1)&&((a27==1)||(a6==1)))&&(a19==4)))&&(a21==10))||!(a28==1))))){ + a1 = 12; + a23 = 1; + a0 = 0; + a6 = 1; + a5 = 4; + a16 = 7; + a19 = 1; + a9 = 7; + return -1; + } else if(((((a19==1)&&((!(a18==1)&&((a1==14)&&((input==3)&&((a5==4)||(a5==5)))))&&(a21==10)))&&!(a20==1))&&((((((a8==1)||(!(a24==1)&&((a11==1)&&((a13==1)&&(a9==8)))))||!(a13==1))&&(a16==8))||(a7==1))&&(a17==2)))){ + a28 = 1; + a13 = 1; + a11 = 1; + a16 = 10; + a5 = 4; + a20 = 1; + a9 = 7; + return 21; + } else if(((!(a13==1)||((a0==1)||((((a16==10)&&((((a9==9)&&(!(a13==1)||(a6==1)))&&(a1==12))&&(a17==2)))&&(a28==1))||(a26==1))))&&(((a21==12)&&((a19==5)&&(((input==4)&&((a5==5)||(a5==6)))&&(a20==1))))&&!(a27==1)))){ + a0 = 0; + a5 = 4; + a12 = 1; + a16 = 7; + a11 = 1; + a21 = 10; + a19 = 1; + a9 = 7; + return -1; + } else if(((!(a13==1)||((((a1==14)&&(((a19==2)&&(a23==1))&&(a9==7)))&&(a16==11))&&(a28==1)))&&(((a21==10)&&(((((a2==1)&&(((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&(a20==1)))&&(a6==1))&&!(a4==1))&&(a17==2)))&&!(a7==1)))){ + a21 = 11; + a28 = 1; + a7 = 0; + a5 = 4; + a13 = 1; + a9 = 10; + return 23; + } else if((((a19==3)&&(((input==3)&&(a9==11))&&(a13==1)))&&((!(a20==1)&&(((((a27==1)||((!(a11==1)||(((a17==2)&&((a2==1)&&(a1==14)))||!(a11==1)))&&(a2==1)))&&(a11==1))&&(a5==5))&&(a21==11)))&&(a16==8)))){ + a21 = 12; + a20 = 1; + a16 = 10; + a1 = 13; + a27 = 0; + a9 = 8; + a19 = 4; + a5 = 4; + a24 = 0; + a0 = 0; + return 21; + } else if((((a1==14)&&((a20==1)&&((((a16==8)&&((a4==1)||(((a11==1)&&(a21==10))&&(a5==5))))&&!(a4==1))||!(a11==1))))&&((a17==2)&&(((a11==1)&&((a9==10)&&(((input==1)&&(a19==1))&&!(a24==1))))&&!(a18==1))))){ + a27 = 0; + a1 = 12; + a9 = 7; + a16 = 7; + a5 = 4; + a11 = 1; + a24 = 0; + return -1; + } else if(((!(a24==1)&&((((a1==14)&&(input==6))&&(a9==11))&&(a17==2)))&&((((a20==1)&&(((a19==2)&&(!(a6==1)||((a2==1)&&(!(a13==1)||((!(a27==1)&&(a28==1))||(a0==1))))))&&(a16==10)))&&(a21==11))&&(a5==6)))){ + a16 = 7; + a21 = 10; + a18 = 0; + a26 = 0; + a5 = 4; + a9 = 9; + a14 = 0; + return 25; + } else if(((((a23==1)&&(!(a20==1)&&((!(a0==1)&&((((((a13==1)&&(a12==1))&&(a19==4))||(a7==1))&&(a1==14))&&(a21==12)))&&(a16==7))))&&(a17==2))&&(((a28==1)&&((input==3)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))))&&(a3==1)))){ + a1 = 12; + a20 = 1; + a19 = 1; + a21 = 10; + a5 = 4; + a27 = 0; + a26 = 0; + a9 = 7; + a28 = 1; + return -1; + } else if((((a1==14)&&(((((!(a20==1)&&(input==4))&&(a17==2))&&(a12==1))&&(a2==1))&&(a16==10)))&&((a9==7)&&((a19==2)&&((((a21==12)&&(((a26==1)||((a2==1)&&(a5==5)))&&!(a14==1)))&&(a3==1))||!(a3==1)))))){ + if((a7==1)){ + a24 = 1; + a20 = 1; + a19 = 1; + a9 = 10; + a22 = 1; + a16 = 7; + a6 = 0; + a21 = 10; + }else{ + a1 = 12; + a21 = 10; + a20 = 1; + a10 = 0; + a16 = 7; + a9 = 8; + a2 = 0; + a22 = 0; + a19 = 1; + } + return -1; + } else if(((((a3==1)&&((((a20==1)&&(a13==1))&&(a9==11))&&(a19==4)))&&(a13==1))&&((a11==1)&&(((a1==12)&&((((a17==2)&&(((a16==9)&&((input==4)&&((a5==4)||(a5==5))))&&!(a18==1)))&&(a21==11))&&!(a4==1)))&&(a6==1))))){ + a3 = 1; + a16 = 7; + a9 = 7; + a6 = 1; + a5 = 4; + a19 = 1; + a2 = 1; + a21 = 10; + return -1; + } else if((((((a19==5)&&((a27==1)&&((!(a12==1)&&(((a3==1)&&!(a13==1))&&(a7==1)))&&(a9==9))))&&(a17==2))&&(a16==9))&&(((a1==13)&&(!(a6==1)&&(!(a3==1)&&((a5==6)&&((a20==1)&&(input==6))))))&&(a21==12)))){ + a19 = 2; + a22 = 0; + a5 = 5; + a9 = 11; + a12 = 0; + a16 = 7; + a21 = 10; + a1 = 12; + a6 = 0; + return -1; + } else if(((((((a3==1)&&((a6==1)&&((a9==8)&&((input==1)&&(a17==2)))))&&!(a26==1))&&(a23==1))&&(a1==14))&&(((a2==1)&&((a12==1)&&((a5==4)&&((a19==2)&&((a21==12)&&((a16==8)&&(a6==1)))))))&&(a20==1)))){ + a5 = 5; + a19 = 1; + a2 = 1; + a9 = 9; + a16 = 10; + a27 = 0; + return 25; + } else if(((!(a20==1)&&(((a9==8)&&(!(a12==1)&&(((input==1)&&(a21==12))&&!(a11==1))))&&(a19==5)))&&((a1==14)&&(!(a11==1)&&((!(a28==1)&&((a17==2)&&((((a16==7)&&(a13==1))&&(a4==1))&&(a26==1))))&&(a5==6)))))){ + a15 = 0; + a21 = 10; + a13 = 0; + a19 = 1; + a4 = 1; + a20 = 1; + a1 = 13; + return 26; + } else if((((((((a1==13)&&((a21==12)&&(!(a24==1)&&((a12==1)&&(!(a8==1)&&((a12==1)&&((input==3)&&((a5==5)||(a5==6)))))))))&&!(a7==1))&&(a20==1))&&(a9==7))&&(a19==3))&&(((a17==2)&&((a2==1)&&!(a24==1)))&&(a16==9)))){ + a12 = 1; + a19 = 1; + a1 = 12; + a21 = 10; + a24 = 0; + a5 = 4; + a16 = 10; + a0 = 0; + return 21; + } else if((((a23==1)&&(((a12==1)&&((a9==8)&&(((a5==4)&&((a20==1)&&(input==6)))&&(a16==9))))&&(a23==1)))&&((((a17==2)&&((((a1==13)&&((a19==5)&&(a2==1)))&&(a21==10))&&!(a24==1)))&&!(a4==1))||!(a6==1)))){ + a5 = 6; + a23 = 1; + a19 = 4; + a9 = 7; + a14 = 0; + a16 = 10; + return 25; + } else if((((a13==1)&&(!(a26==1)&&((a17==2)&&(((a12==1)&&(a20==1))||!(a12==1)))))&&(((a12==1)&&((((((((a19==5)&&(((a1==14)&&(a5==5))&&(a9==11)))&&(a21==10))||((a21==10)&&((a19==5)&&(((a5==6)&&(a1==14))&&(a9==11)))))||((a21==11)&&(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==1))))&&(input==6))&&(a11==1))&&(a23==1)))&&(a16==11)))){ + a19 = 1; + a23 = 1; + a9 = 7; + a5 = 4; + a11 = 1; + a21 = 10; + a16 = 7; + a8 = 0; + a1 = 12; + return -1; + } else if((((((((a7==1)||(a28==1))||!(a11==1))&&(a16==10))||!(a2==1))&&(a5==6))&&((a19==2)&&((((a20==1)&&((a2==1)&&(((a2==1)&&((a17==2)&&((a1==12)&&(input==5))))&&!(a8==1))))&&(a21==11))&&(a9==10))))){ + a13 = 1; + a21 = 10; + a16 = 7; + a8 = 0; + a19 = 1; + a5 = 4; + a9 = 7; + a24 = 0; + return -1; + } else if((((a19==2)&&((a9==8)&&(((a13==1)&&((((input==5)&&((a5==5)||(a5==6)))&&(a11==1))&&!(a24==1)))&&(a17==2))))&&(((a21==12)&&((a8==1)||((a2==1)&&(!(a11==1)||((a16==9)&&((a23==1)&&(a1==14)))))))&&(a20==1)))){ + a21 = 10; + a1 = 13; + a9 = 10; + a14 = 0; + a16 = 7; + a27 = 0; + a5 = 5; + a13 = 1; + return 21; + } else if((((((((((!(a8==1)&&((input==1)&&(a1==12)))&&(a11==1))&&(a11==1))&&(a21==11))&&!(a18==1))&&!(a20==1))&&(a16==9))&&(a17==2))&&((a5==6)&&((a9==9)&&((((a12==1)||(a18==1))&&(a19==5))&&!(a14==1)))))){ + if((a5==4)){ + a1 = 13; + a5 = 5; + a10 = 1; + a21 = 12; + a16 = 10; + a29 = 1; + a15 = 0; + }else{ + a22 = 1; + a16 = 7; + a21 = 12; + a20 = 1; + a19 = 2; + a1 = 14; + a6 = 0; + a24 = 1; + } + return 25; + } else if((((a6==1)&&((a21==11)&&(((a19==1)&&(((a17==2)&&((a1==12)&&(input==1)))&&(a5==5)))&&!(a7==1))))&&((((!(a20==1)&&(((!(a8==1)&&(a28==1))&&!(a27==1))&&(a9==7)))||!(a13==1))||!(a12==1))&&(a16==7)))){ + a14 = 0; + a28 = 1; + a12 = 1; + a21 = 10; + a5 = 4; + a20 = 1; + return -1; + } else if((((!(a11==1)||(((a16==10)&&(a12==1))&&!(a24==1)))&&!(a7==1))&&((a6==1)&&(((a19==1)&&((((!(a8==1)&&((((((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8)))&&(input==4))&&(a17==2)))&&(a1==14))&&(a23==1))&&(a21==12)))&&(a20==1))))){ + a1 = 12; + a28 = 1; + a9 = 7; + a7 = 0; + a5 = 4; + a16 = 7; + a21 = 10; + a24 = 0; + return -1; + } else if(((((a19==1)&&((!(a20==1)&&((a3==1)&&(((!(a11==1)||((a28==1)&&(a1==14)))||!(a28==1))||(a24==1))))&&(a5==6)))&&(a16==8))&&((a17==2)&&((!(a8==1)&&((a9==8)&&((a21==10)&&(input==5))))&&(a23==1))))){ + a21 = 12; + a1 = 13; + a24 = 0; + a26 = 0; + a19 = 2; + a5 = 5; + a20 = 1; + a11 = 1; + a16 = 10; + return 21; + } else if((((((a0==1)||((a14==1)||(((a13==1)||(a7==1))&&(a16==10))))&&!(a24==1))&&(a20==1))&&((a17==2)&&(((!(a0==1)&&((a19==4)&&(((((a5==4)||(a5==5))&&(input==6))&&!(a26==1))&&(a1==14))))&&(a9==8))&&(a21==10))))){ + a19 = 1; + a27 = 0; + a16 = 7; + a0 = 0; + a28 = 1; + a1 = 12; + a5 = 4; + a9 = 7; + return -1; + } else if((((a24==1)&&((a21==10)&&(((a17==2)&&((a16==7)&&((((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7))))&&(input==6))))&&!(a11==1))))&&(((a14==1)&&((a19==3)&&(((((a12==1)&&!(a20==1))&&(a1==12))&&!(a11==1))&&(a24==1))))&&(a7==1)))){ + a21 = 12; + a15 = 1; + a8 = 1; + a9 = 11; + a5 = 5; + a20 = 1; + a13 = 0; + return 25; + } else if((((a6==1)&&((a16==9)&&((!(a0==1)&&((a2==1)&&(((a19==4)&&(a23==1))||!(a3==1))))&&(a1==14))))&&(!(a14==1)&&(!(a4==1)&&(((a20==1)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a21==11))&&(a17==2)))&&(a9==8)))))){ + if((a18==1)){ + a1 = 12; + a5 = 5; + a20 = 0; + a6 = 1; + a24 = 0; + a27 = 0; + a16 = 8; + }else{ + a1 = 13; + a9 = 10; + a21 = 10; + a16 = 7; + a11 = 1; + a19 = 2; + a5 = 4; + a27 = 0; + a24 = 0; + } + return 21; + } else if(((((((!(a4==1)&&((((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(input==5)))&&(a21==11))&&!(a0==1))&&(a23==1))&&(a17==2))&&(((a20==1)&&(((a19==2)&&((((a16==10)&&(a11==1))&&(a1==14))||!(a28==1)))&&!(a4==1)))&&(a23==1)))){ + a12 = 1; + a9 = 8; + a21 = 10; + a16 = 7; + a5 = 5; + a13 = 1; + a23 = 1; + return 23; + } else if((((a1==13)&&((a17==2)&&((((a3==1)&&(a20==1))&&(a19==3))||(a18==1))))&&(((a13==1)&&(((a21==11)&&(((a9==10)&&((!(a7==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))&&(a16==9)))&&!(a7==1)))&&(a12==1)))&&(a2==1)))){ + a1 = 12; + a21 = 10; + a19 = 1; + a26 = 0; + a16 = 7; + a28 = 1; + a7 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if((((((a19==5)&&(((a9==10)&&(((((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a1==13))&&(a16==9))&&!(a18==1)))&&(a13==1)))&&(a11==1))&&(a3==1))&&((a21==10)&&(!(a20==1)&&((((a28==1)&&(a17==2))&&(a28==1))||!(a23==1)))))){ + if((a15==1)){ + a19 = 1; + a14 = 1; + a20 = 1; + a21 = 12; + a27 = 1; + a9 = 8; + a29 = 0; + a16 = 7; + a5 = 5; + }else{ + a19 = 1; + a16 = 7; + a9 = 7; + a20 = 1; + a1 = 14; + a11 = 0; + a28 = 0; + a22 = 0; + a5 = 5; + } + return -1; + } else if((((a16==10)&&((a17==2)&&((a1==14)&&((a19==2)&&((a24==1)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==4)))))))&&((a21==12)&&((a27==1)&&((((a20==1)&&((a18==1)&&((a8==1)&&(a2==1))))&&(a4==1))&&(a4==1)))))){ + a5 = 4; + a19 = 1; + a16 = 7; + a6 = 0; + a7 = 1; + a9 = 10; + a15 = 0; + a21 = 10; + return -1; + } else if((((((a5==5)&&((a17==2)&&(((a9==9)&&(input==5))&&(a1==12))))&&(a11==1))&&(a21==10))&&(((!(a7==1)&&(((!(a28==1)||(((a11==1)&&(a19==1))&&!(a24==1)))&&(a11==1))&&!(a20==1)))&&(a16==8))&&!(a7==1)))){ + a16 = 7; + a5 = 4; + a20 = 1; + a9 = 7; + a2 = 1; + a14 = 0; + a6 = 1; + return -1; + } return calculate_output54(input); + } + + int calculate_output54(int input) { + if(((((a27==1)||(!(a3==1)||((((((a19==2)&&((a5==6)&&(a2==1)))||(a24==1))&&(a17==2))||(a24==1))&&(a13==1))))&&(a9==11))&&((((((a20==1)&&(input==4))&&(a12==1))&&(a1==14))&&(a16==8))&&(a21==12)))){ + a16 = 7; + a1 = 12; + a5 = 4; + a21 = 10; + a19 = 1; + a18 = 0; + a13 = 1; + a6 = 1; + a9 = 7; + return -1; + } else if((((a19==1)&&((!(a24==1)&&((a2==1)&&(((((a5==5)||(a5==6))&&(input==5))&&(a11==1))&&!(a0==1))))&&(a2==1)))&&((a9==7)&&((((((a1==13)&&((a17==2)&&(a6==1)))&&(a16==10))&&(a23==1))&&(a20==1))&&(a21==11))))){ + a9 = 10; + a21 = 12; + a14 = 0; + a5 = 4; + a1 = 12; + a16 = 9; + a6 = 1; + a19 = 3; + a28 = 1; + return 21; + } else if(((((a17==2)&&(((!(a20==1)&&((a16==8)&&((input==4)&&(a5==4))))&&!(a24==1))&&(a3==1)))&&(a3==1))&&(!(a12==1)||(((!(a6==1)||((a19==3)&&((a9==9)&&((a13==1)&&(a3==1)))))&&(a21==11))&&(a1==14))))){ + a0 = 0; + a20 = 1; + a1 = 12; + a8 = 0; + a21 = 10; + a14 = 0; + a9 = 7; + a19 = 1; + a16 = 7; + return -1; + } else if((((((a12==1)&&((a17==2)&&((a28==1)&&(!(a14==1)&&(((a1==13)&&((a21==11)&&((a19==3)&&(input==4))))&&(a16==10))))))&&(a2==1))&&!(a26==1))&&(((((a2==1)&&(a9==11))&&(a5==5))&&(a28==1))&&!(a20==1)))){ + if((a11==1)){ + a21 = 12; + a1 = 12; + a10 = 0; + a5 = 6; + a13 = 0; + a19 = 5; + a23 = 0; + }else{ + a9 = 10; + a19 = 1; + a15 = 0; + a16 = 7; + a27 = 1; + a21 = 10; + a20 = 1; + a5 = 6; + a14 = 1; + } + return -1; + } else if(((((a21==10)&&((a16==10)&&((a17==2)&&((a4==1)||((a19==4)&&((a13==1)||!(a11==1)))))))&&(a1==12))&&((((((a23==1)&&((input==4)&&(((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6))))))&&(a6==1))&&(a20==1))&&(a12==1))&&!(a26==1)))){ + a23 = 1; + a9 = 7; + a16 = 7; + a19 = 1; + a13 = 1; + a5 = 4; + a24 = 0; + return -1; + } else if(((!(a14==1)&&(((a9==8)&&((((((a21==12)&&((a17==2)&&(input==1)))&&(a20==1))&&(a16==9))&&!(a18==1))&&!(a24==1)))&&(a19==5)))&&((!(a18==1)&&((a5==4)&&(((a28==1)&&(a2==1))&&(a1==13))))||(a7==1)))){ + a14 = 0; + a21 = 10; + a19 = 1; + a7 = 0; + a16 = 7; + a9 = 7; + a1 = 12; + a13 = 1; + return -1; + } else if(((((a8==1)||((((a6==1)||(a24==1))&&(a19==3))&&(a9==11)))&&(a16==9))&&(!(a24==1)&&(((a23==1)&&((a3==1)&&(((a1==14)&&(!(a20==1)&&((a5==5)&&((input==1)&&(a17==2)))))&&(a6==1))))&&(a21==12))))){ + if((a5==4)){ + a25 = 0; + a9 = 9; + a1 = 13; + a16 = 11; + a21 = 11; + a29 = 0; + a10 = 1; + a20 = 1; + }else{ + a20 = 1; + a21 = 10; + a16 = 7; + a13 = 0; + a29 = 1; + a19 = 2; + a9 = 9; + a1 = 12; + a24 = 1; + } + return 21; + } else if((((((a16==10)&&(((input==5)&&(a21==11))&&(a19==3)))&&(a20==1))&&(a1==13))&&((a17==2)&&(((a12==1)&&((a13==1)&&((a5==6)&&((!(a3==1)||(((a2==1)&&(a13==1))||!(a2==1)))&&(a12==1)))))&&(a9==8))))){ + a21 = 10; + a26 = 0; + a1 = 12; + a27 = 0; + a9 = 7; + a19 = 1; + a5 = 4; + a16 = 7; + return -1; + } else if(((((!(a20==1)&&((a17==2)&&((a9==10)&&(!(a4==1)&&((input==6)&&(a1==12))))))&&!(a26==1))&&(a11==1))&&((a2==1)&&((a16==8)&&((a19==5)&&((a2==1)&&((a5==5)&&(((a11==1)||!(a2==1))&&(a21==12))))))))){ + a21 = 10; + a5 = 6; + a22 = 0; + a9 = 8; + a16 = 7; + a10 = 1; + a20 = 1; + a1 = 13; + a19 = 1; + return -1; + } else if((((input==3)&&((((a21==11)&&((a19==5)&&((a9==11)&&((a5==6)&&(a1==14)))))||(((a19==1)&&(((a1==12)&&(a5==4))&&(a9==7)))&&(a21==12)))||(((a19==1)&&(((a1==12)&&(a5==5))&&(a9==7)))&&(a21==12))))&&(!(a13==1)||(((a17==2)&&((!(a0==1)&&((!(a7==1)&&(((a11==1)&&!(a14==1))&&!(a0==1)))&&(a16==10)))&&!(a24==1)))&&(a20==1))))){ + a5 = 5; + a1 = 13; + a12 = 1; + a13 = 1; + a9 = 9; + a16 = 7; + a26 = 0; + a21 = 10; + a19 = 2; + return -1; + } else if((((a1==12)&&((((a21==11)&&(((a0==1)||((a2==1)&&(!(a3==1)||(a12==1))))&&(a17==2)))&&!(a20==1))&&(a9==7)))&&((a16==9)&&((a19==3)&&((((((a5==5)||(a5==6))&&(input==1))&&(a6==1))&&(a6==1))&&(a6==1)))))){ + if((a9==11)){ + a19 = 1; + a8 = 1; + a2 = 0; + a5 = 6; + a21 = 10; + }else{ + a16 = 7; + a21 = 10; + a5 = 6; + a3 = 0; + a19 = 2; + a20 = 1; + a23 = 0; + a13 = 0; + a9 = 11; + } + return -1; + } else if((((a16==10)&&(!(a27==1)&&(((((((input==3)&&(a9==10))&&(a1==13))&&(a11==1))&&!(a0==1))&&(a3==1))&&(a21==12))))&&((a20==1)&&(((a19==1)&&((a17==2)&&((a11==1)&&((a3==1)||!(a11==1)))))&&(a5==4))))){ + a9 = 7; + a13 = 1; + a14 = 0; + a16 = 7; + a1 = 12; + a21 = 10; + return -1; + } else if((((((a9==11)&&((a17==2)&&(!(a12==1)||(a12==1))))&&(a19==5))&&(a16==7))&&(!(a27==1)&&((a20==1)&&((a11==1)&&((a5==6)&&((((a1==12)&&(((input==6)&&(a21==12))&&!(a8==1)))&&(a3==1))&&(a23==1)))))))){ + a9 = 9; + a13 = 1; + a19 = 4; + a4 = 0; + a1 = 13; + a5 = 5; + a21 = 11; + a16 = 9; + a12 = 1; + return 22; + } else if((((a17==2)&&((!(a13==1)||(!(a6==1)||((a16==7)&&((!(a23==1)||((((a19==1)&&(a23==1))&&!(a7==1))&&(a1==14)))&&(a21==11)))))||!(a13==1)))&&(((a5==4)&&((a20==1)&&((input==3)&&(a9==11))))&&(a12==1)))){ + a9 = 7; + a1 = 12; + a26 = 0; + a4 = 0; + a21 = 10; + a2 = 1; + return -1; + } else if((((a28==1)&&(((((a20==1)&&((input==4)&&(a16==10)))&&(a9==10))&&(a19==3))&&(a1==12)))&&((a2==1)&&(((a5==4)&&(!(a6==1)||((!(a11==1)||(!(a28==1)||((a21==10)&&(a12==1))))&&(a17==2))))||!(a2==1))))){ + a19 = 4; + a27 = 0; + a7 = 0; + a16 = 8; + a26 = 0; + a9 = 7; + return 22; + } else if(((!(a12==1)||(((a17==2)&&((a11==1)&&(a19==1)))||(a0==1)))&&((a16==9)&&((a21==10)&&((!(a14==1)&&((a12==1)&&(((((((a1==13)&&(a5==6))&&(a9==11))||(((a1==14)&&(a5==4))&&(a9==7)))&&(input==6))&&!(a20==1))&&!(a14==1))))&&!(a7==1)))))){ + if((a7==1)){ + a25 = 1; + a22 = 1; + a16 = 7; + a0 = 1; + a20 = 1; + a5 = 4; + a9 = 8; + a1 = 12; + }else{ + a9 = 8; + a22 = 0; + a19 = 4; + a16 = 7; + a8 = 1; + a20 = 1; + a5 = 6; + a15 = 0; + a1 = 12; + } + return 25; + } else if(((((a28==1)&&!(a20==1))&&(a16==8))&&((!(a7==1)&&((a2==1)&&((a17==2)&&((((a9==8)&&((a1==12)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a3==1))&&!(a7==1))&&(a19==1))))&&(a13==1))&&(a21==12)))))&&!(a27==1)))){ + a5 = 4; + a21 = 10; + a3 = 0; + a16 = 7; + a19 = 2; + a9 = 7; + a2 = 0; + a20 = 1; + a22 = 0; + return 25; + } else if((((!(a11==1)&&((a14==1)&&(!(a13==1)&&((a12==1)&&(a19==3)))))&&(a26==1))&&(((a1==12)&&((((a16==7)&&((a4==1)&&((a21==12)&&((((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7))))&&(input==6)))))&&(a26==1))&&(a17==2)))&&(a20==1)))){ + a25 = 0; + a12 = 0; + a9 = 9; + a21 = 10; + a5 = 4; + a18 = 1; + a19 = 2; + return 21; + } else if((((a16==8)&&(((a21==12)&&(!(a24==1)&&((!(a27==1)&&((input==6)&&((a5==5)||(a5==6))))&&(a3==1))))&&(a28==1)))&&((((a9==7)&&(!(a24==1)&&((a1==14)&&(((a12==1)&&(a17==2))||(a4==1)))))&&(a19==4))&&!(a20==1)))){ + if((a3==1)){ + a20 = 1; + a21 = 10; + a5 = 6; + a23 = 0; + a19 = 3; + a25 = 0; + a16 = 7; + a24 = 1; + a9 = 8; + }else{ + a25 = 0; + a23 = 0; + a21 = 11; + a5 = 6; + a10 = 0; + a9 = 9; + } + return -1; + } else if(((((a12==1)&&((((((input==3)&&(((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))))&&(a23==1))&&!(a8==1))&&(a19==1))&&(a6==1)))&&!(a24==1))&&(!(a12==1)||((((((a16==11)&&(a11==1))&&(a20==1))&&(a17==2))&&(a21==12))&&(a1==14))))){ + a5 = 4; + a21 = 10; + a9 = 7; + a16 = 7; + a24 = 0; + a1 = 12; + a23 = 1; + return -1; + } else if(((!(a4==1)&&(!(a20==1)&&((a23==1)&&((a2==1)&&(a19==4)))))&&((a21==12)&&((((a1==12)&&((!(a0==1)&&((a16==7)&&((a9==11)&&((((a5==5)||(a5==6))&&(input==3))&&!(a8==1)))))&&(a13==1)))&&(a12==1))&&(a17==2))))){ + a21 = 10; + a5 = 4; + a2 = 1; + a19 = 1; + a20 = 1; + a9 = 7; + a3 = 1; + a11 = 1; + return -1; + } else if(((((a16==7)&&((a24==1)||((a19==4)&&((a2==1)||(a24==1)))))&&!(a20==1))&&(((a21==11)&&(!(a14==1)&&((!(a26==1)&&((a9==11)&&(!(a26==1)&&((a1==13)&&((a5==4)&&(input==1))))))&&!(a0==1))))&&(a17==2)))){ + a5 = 6; + a20 = 1; + a8 = 0; + a19 = 3; + a1 = 14; + a9 = 7; + a4 = 0; + a27 = 0; + a16 = 9; + return 23; + } else if(((((a1==14)&&(((((a28==1)&&(((a11==1)&&(a16==10))||!(a6==1)))&&!(a20==1))&&(a19==4))&&(a17==2)))||!(a6==1))&&(((a11==1)&&((((input==4)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10))))&&!(a4==1))&&(a21==12)))&&(a23==1)))){ + a9 = 9; + a25 = 0; + a16 = 7; + a19 = 5; + a5 = 4; + a29 = 0; + a1 = 13; + a20 = 1; + a28 = 0; + return -1; + } else if(((!(a6==1)||(!(a8==1)&&((a13==1)&&((a16==8)&&((a19==1)&&(a2==1))))))&&(((a5==5)&&((((a1==12)&&((((a17==2)&&((input==3)&&(a20==1)))&&(a9==8))&&(a23==1)))&&(a28==1))&&(a21==12)))&&!(a18==1)))){ + a5 = 4; + a11 = 1; + a8 = 0; + a21 = 10; + a16 = 7; + a12 = 1; + a9 = 7; + return -1; + } else if(((((((a21==10)&&(((a20==1)&&(a12==1))&&(a1==14)))&&(a19==5))&&(a3==1))||(a4==1))&&(!(a8==1)&&(!(a26==1)&&(!(a0==1)&&(!(a27==1)&&((a5==5)&&((a17==2)&&((a16==7)&&((a9==7)&&(input==1))))))))))){ + a2 = 1; + a19 = 4; + a1 = 12; + a21 = 12; + a12 = 1; + a6 = 1; + a9 = 10; + return 21; + } else if(((((((!(a26==1)&&((((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a6==1))&&!(a24==1)))&&(a19==3))&&(a17==2))&&(a1==14))&&(a21==12))&&((a16==10)&&(((!(a26==1)&&((a2==1)&&((a12==1)&&(a9==8))))||!(a13==1))&&(a20==1))))){ + a19 = 1; + a12 = 1; + a16 = 7; + a7 = 0; + a9 = 7; + a27 = 0; + a5 = 4; + a1 = 12; + a21 = 10; + return -1; + } else if(((((a5==5)&&(((a9==9)&&(!(a7==1)&&((a4==1)||((a23==1)||!(a11==1)))))&&(a16==7)))&&(a1==14))&&(((a23==1)&&(((a17==2)&&((a12==1)&&(((input==6)&&(a21==12))&&(a19==4))))&&(a12==1)))&&!(a20==1)))){ + a5 = 4; + a21 = 10; + a9 = 7; + a1 = 12; + a18 = 0; + a20 = 1; + a2 = 1; + a19 = 1; + return -1; + } else if((((a19==2)&&((a16==11)&&((!(a7==1)&&((a6==1)&&!(a18==1)))&&(a5==6))))&&((!(a27==1)&&(((a21==10)&&((a3==1)&&((a13==1)&&((((input==6)&&(a9==8))&&(a17==2))&&!(a14==1)))))&&(a1==13)))&&(a20==1)))){ + if((a28==1)){ + a5 = 5; + a13 = 1; + a7 = 0; + a1 = 14; + a9 = 10; + a19 = 5; + a20 = 0; + a16 = 7; + a28 = 1; + }else{ + a9 = 10; + a21 = 11; + a14 = 0; + a18 = 0; + a24 = 0; + } + return 21; + } else if((((a1==12)&&((!(a3==1)||((a16==8)&&((a20==1)&&(a12==1))))&&(a17==2)))&&((a21==11)&&(((a9==10)&&(((((a6==1)&&((a28==1)&&((input==1)&&((a5==6)||((a5==4)||(a5==5))))))&&!(a26==1))&&(a2==1))&&(a19==3)))&&(a28==1))))){ + a4 = 0; + a2 = 1; + a16 = 7; + a9 = 7; + a5 = 4; + a6 = 1; + a19 = 1; + a21 = 10; + return -1; + } else if((((a19==4)&&(((a24==1)||(((a3==1)&&(((a6==1)&&(a3==1))&&(a12==1)))&&!(a20==1)))&&(a21==12)))&&((a16==9)&&((((((input==1)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5))))&&!(a27==1))&&(a17==2))&&(a1==12))&&!(a14==1))))){ + a21 = 11; + a5 = 5; + a20 = 1; + a24 = 1; + a19 = 5; + a6 = 0; + a9 = 11; + a11 = 0; + return -1; + } else if((((((a17==2)&&((!(a6==1)||(!(a27==1)&&(a12==1)))&&!(a20==1)))&&(a19==3))&&!(a24==1))&&((a23==1)&&(!(a26==1)&&((a6==1)&&((a21==12)&&((((((a9==11)&&((a1==13)&&(a5==5)))||(((a1==13)&&(a5==6))&&(a9==11)))||((a9==7)&&((a5==4)&&(a1==14))))&&(input==3))&&(a16==9)))))))){ + if((a17==4)){ + a5 = 6; + a10 = 0; + a21 = 10; + a3 = 0; + a16 = 10; + a1 = 14; + a9 = 9; + a19 = 1; + }else{ + a21 = 10; + a3 = 0; + a5 = 6; + a19 = 2; + a13 = 0; + a9 = 10; + a1 = 14; + a24 = 1; + } + return 25; + } else if((((a1==13)&&(((a20==1)&&((((a16==11)&&((a19==5)&&((a4==1)||(a11==1))))&&(a28==1))&&(a28==1)))&&(a21==12)))&&((a28==1)&&(!(a4==1)&&(!(a26==1)&&((a5==5)&&((a9==8)&&((a17==2)&&(input==1))))))))){ + a11 = 1; + a9 = 7; + a16 = 7; + a21 = 10; + a1 = 12; + a5 = 4; + a3 = 1; + a14 = 0; + a19 = 1; + return -1; + } else if(((((a17==2)&&(((a16==11)&&((a1==12)&&(a6==1)))&&(a28==1)))&&(a5==5))&&((a6==1)&&(!(a27==1)&&((a23==1)&&(((!(a27==1)&&((((input==6)&&(a21==11))&&(a9==8))&&(a19==5)))&&(a20==1))&&(a13==1))))))){ + a21 = 10; + a26 = 0; + a5 = 4; + a18 = 0; + a19 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if((((a1==13)&&((a23==1)&&((((a21==11)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==1)))&&(a16==10))&&(a19==1))))&&(((((!(a4==1)&&((!(a20==1)&&(a13==1))||(a14==1)))&&(a13==1))||!(a28==1))&&(a17==2))&&!(a18==1)))){ + if((a9==10)){ + a22 = 1; + a5 = 5; + a16 = 7; + a20 = 1; + a21 = 12; + a9 = 8; + a29 = 0; + a1 = 12; + a19 = 5; + a2 = 0; + }else{ + a1 = 12; + a10 = 1; + a16 = 7; + a19 = 2; + a9 = 7; + a20 = 1; + a21 = 10; + a5 = 4; + } + return -1; + } else if((((a21==11)&&((a17==2)&&(((a3==1)&&((a19==5)&&(!(a3==1)||(a12==1))))&&(a5==6))))&&((((((((a16==8)&&((a9==8)&&(input==6)))&&(a23==1))&&!(a0==1))&&!(a0==1))&&(a11==1))&&(a1==12))&&(a20==1)))){ + a11 = 1; + a21 = 10; + a5 = 4; + a9 = 7; + a4 = 0; + a19 = 1; + a14 = 0; + a16 = 7; + return -1; + } else if((((a13==1)&&((a17==2)&&((a1==12)&&(!(a8==1)&&(((a19==1)&&((a5==5)&&(input==5)))&&(a9==8))))))&&(!(a2==1)||((a28==1)&&(((a20==1)&&(!(a4==1)&&(((a3==1)&&(a16==11))&&(a21==12))))||(a18==1)))))){ + a14 = 0; + a1 = 14; + a8 = 0; + a21 = 10; + a3 = 1; + return 25; + } else if((((!(a3==1)&&(((a9==7)&&((a21==12)&&(((((a0==1)&&((input==6)&&(a16==7)))&&!(a23==1))&&(a24==1))&&(a19==5))))&&(a5==4)))&&(a17==2))&&((a1==13)&&((((a28==1)&&(a27==1))&&(a20==1))&&!(a11==1))))){ + a1 = 12; + a5 = 5; + a21 = 10; + a6 = 0; + a19 = 2; + a14 = 1; + a15 = 0; + return -1; + } else if((((((a20==1)&&((((input==5)&&(a16==7))&&(a13==1))&&(a1==13)))&&(a9==10))&&(a21==12))&&((a19==3)&&((a4==1)||((!(a12==1)||((a17==2)&&((((a3==1)&&(a5==5))&&(a6==1))&&(a12==1))))||!(a12==1)))))){ + a9 = 9; + a7 = 0; + a16 = 9; + a21 = 10; + a23 = 1; + a5 = 4; + a19 = 5; + a6 = 1; + return 25; + } else if(((((a23==1)&&(((a23==1)&&(((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&!(a14==1)))&&(a1==14)))&&!(a20==1))&&(((a9==8)&&((a19==1)&&(!(a12==1)||(((a16==10)&&((a23==1)&&((a14==1)||(a13==1))))&&(a21==11)))))&&(a17==2)))){ + if((a8==1)){ + a21 = 12; + a22 = 0; + a19 = 4; + a20 = 1; + a0 = 1; + a1 = 12; + a16 = 7; + a9 = 9; + a5 = 4; + a13 = 0; + }else{ + a12 = 0; + a21 = 10; + a16 = 7; + a1 = 12; + a27 = 1; + a28 = 0; + a5 = 5; + a19 = 3; + } + return 21; + } else if(((!(a2==1)||((((a1==12)&&(((a28==1)||!(a2==1))&&(a6==1)))&&(a3==1))&&!(a4==1)))&&((a19==3)&&(!(a20==1)&&(((((a2==1)&&((a16==9)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1))))&&(a17==2))&&(a21==11))&&(a9==10)))))){ + if((a9==9)){ + a15 = 1; + a8 = 1; + a21 = 10; + a1 = 14; + a23 = 0; + a20 = 1; + a16 = 10; + a19 = 5; + a5 = 6; + }else{ + a5 = 6; + a1 = 14; + a10 = 1; + a19 = 4; + a13 = 0; + a16 = 7; + } + return 25; + } else if((((((a1==12)&&((a14==1)||(a12==1)))||!(a2==1))&&(a17==2))&&((a21==10)&&((a16==9)&&((a19==4)&&((a5==6)&&((!(a8==1)&&(((a9==9)&&(((input==3)&&(a20==1))&&(a2==1)))&&!(a26==1)))&&!(a7==1)))))))){ + a18 = 0; + a16 = 7; + a5 = 4; + a24 = 0; + a6 = 1; + a9 = 7; + a19 = 1; + return -1; + } else if(((!(a23==1)||(((a11==1)&&!(a7==1))&&(a19==3)))&&(!(a27==1)&&((!(a4==1)&&((!(a24==1)&&((a17==2)&&(!(a20==1)&&(((a16==7)&&((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==5)))&&(a21==10)))))&&(a1==14)))&&(a12==1))))){ + a0 = 0; + a19 = 1; + a9 = 7; + a20 = 1; + a5 = 4; + a1 = 12; + a7 = 0; + a27 = 0; + return -1; + } else if((((a2==1)&&((a11==1)&&((a16==11)&&((a21==12)&&(((a1==12)&&(((a23==1)&&((((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6))))&&(input==6)))&&(a20==1)))&&(a2==1))))))&&(((!(a28==1)||((a3==1)&&(a17==2)))||!(a23==1))&&(a19==1)))){ + a12 = 1; + a21 = 10; + a26 = 0; + a5 = 4; + a0 = 0; + a9 = 7; + a16 = 7; + return -1; + } else if((((a3==1)&&(((a1==14)&&(!(a27==1)&&((a28==1)&&(((a16==8)&&(((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&(a21==10)))&&!(a18==1)))))&&(a17==2)))&&(((a19==1)&&((a14==1)||(!(a20==1)&&((a12==1)||(a4==1)))))&&(a9==9)))){ + a9 = 7; + a16 = 7; + a1 = 12; + a14 = 0; + a24 = 0; + a5 = 4; + a23 = 1; + a20 = 1; + return -1; + } else if((((a19==2)&&(((a11==1)&&(((a3==1)&&((input==3)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))&&(a20==1)))&&(a13==1)))&&(((a21==11)&&((a0==1)||(((a16==7)&&((a14==1)||(!(a11==1)||(a12==1))))&&(a17==2))))&&(a1==13)))){ + a7 = 0; + a11 = 1; + a19 = 3; + a16 = 8; + a21 = 10; + a5 = 5; + a9 = 11; + return 23; + } else if((((a20==1)&&((a5==5)&&((((a21==11)&&(!(a11==1)||(((a12==1)||(a26==1))||!(a23==1))))&&(a17==2))&&(a19==5))))&&((a1==13)&&(((a3==1)&&((((a9==7)&&(input==3))&&!(a0==1))&&(a6==1)))&&(a16==11))))){ + a1 = 12; + a23 = 1; + a21 = 10; + a16 = 7; + a5 = 4; + a19 = 1; + a6 = 1; + a18 = 0; + return -1; + } else if((((a26==1)&&(!(a28==1)&&(((((a17==2)&&(!(a11==1)&&((((a5==4)||(a5==5))&&(input==6))&&(a19==5))))&&(a21==12))&&(a1==14))&&(a9==8))))&&(!(a12==1)&&(((a18==1)&&(!(a20==1)&&((a3==1)&&(a16==7))))&&!(a3==1))))){ + a1 = 13; + a5 = 6; + a9 = 10; + a10 = 1; + a7 = 1; + a19 = 1; + return 25; + } else if((((!(a3==1)&&(((a20==1)&&((a16==10)&&(a6==1)))&&!(a13==1)))&&(a18==1))&&(!(a6==1)&&((a17==2)&&((a1==12)&&(((a19==4)&&((a21==10)&&(((input==4)&&((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5))))&&!(a3==1))))&&(a7==1))))))){ + a7 = 1; + a9 = 9; + a5 = 6; + a19 = 2; + a25 = 0; + a8 = 1; + return 26; + } else if(((((a23==1)&&((a9==8)&&((a28==1)&&((a21==12)&&(input==4)))))&&(a2==1))&&((a2==1)&&((a20==1)&&(((a11==1)&&((a17==2)&&(((a1==13)&&((a19==4)&&((a16==9)&&(a23==1))))&&!(a14==1))))&&(a5==6)))))){ + a2 = 1; + a28 = 1; + a1 = 12; + a9 = 7; + a19 = 1; + a6 = 1; + a16 = 7; + a5 = 4; + a21 = 10; + return -1; + } else if((((a17==2)&&(!(a14==1)&&((a26==1)||((((a5==5)&&((a1==14)&&(((a12==1)&&(a23==1))&&(a3==1))))&&(a6==1))&&!(a20==1)))))&&((!(a8==1)&&((a9==7)&&(((input==1)&&(a21==11))&&(a19==4))))&&(a16==7)))){ + a19 = 1; + a8 = 0; + a21 = 10; + a1 = 12; + a5 = 4; + a20 = 1; + a24 = 0; + return -1; + } else if(((((((a20==1)&&((!(a23==1)||(((a17==2)&&(a2==1))&&(a16==11)))&&(a19==4)))&&(a9==9))||(a4==1))&&(a23==1))&&((!(a26==1)&&(((a13==1)&&((((a5==4)||(a5==5))&&(input==1))&&(a21==12)))&&(a1==13)))&&!(a4==1)))){ + a13 = 1; + a19 = 1; + a21 = 10; + a4 = 0; + a1 = 12; + a5 = 4; + a9 = 7; + a16 = 7; + a24 = 0; + return -1; + } else if((((((((a21==10)&&((((a5==5)&&((a1==13)&&(a11==1)))&&!(a20==1))||(a14==1)))&&(a16==11))||!(a13==1))&&!(a24==1))&&(a28==1))&&((a28==1)&&(!(a14==1)&&((a19==4)&&((a17==2)&&((a9==7)&&(input==6)))))))){ + if((a3==1)){ + a16 = 7; + a2 = 0; + a20 = 1; + a27 = 1; + a19 = 2; + a1 = 12; + a5 = 6; + }else{ + a9 = 9; + a21 = 12; + a1 = 14; + a8 = 1; + a5 = 4; + a4 = 1; + a3 = 0; + a16 = 7; + } + return -1; + } else if(((((a17==2)&&(((!(a27==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&!(a20==1)))&&(a16==8))&&(a9==8)))&&(a21==11))&&((a1==14)&&(((a4==1)||(((a13==1)&&(((a0==1)||(a23==1))&&!(a18==1)))&&(a19==1)))||(a14==1))))){ + a16 = 7; + a24 = 0; + a21 = 10; + a26 = 0; + a20 = 1; + a14 = 0; + a5 = 4; + a1 = 12; + a9 = 7; + return -1; + } else if(((((((!(a8==1)&&(!(a20==1)&&(((a16==9)&&((input==4)&&(((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))))&&(a3==1))))&&!(a24==1))&&(a21==10))&&(a11==1))&&!(a4==1))&&((a1==14)&&((((a23==1)&&!(a27==1))&&(a17==2))&&(a19==3))))){ + a29 = 1; + a19 = 5; + a5 = 5; + a12 = 0; + a20 = 1; + a22 = 1; + a1 = 12; + a9 = 7; + a16 = 8; + a21 = 12; + return 21; + } else if((((a4==1)&&((!(a13==1)&&(a12==1))&&!(a12==1)))&&((!(a12==1)&&((a20==1)&&((a8==1)&&((a4==1)&&((a17==2)&&((a21==10)&&((((((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==5))&&(a16==7))&&(a19==4))))))))&&(a1==13)))){ + a5 = 4; + a10 = 0; + a25 = 1; + a22 = 1; + a1 = 12; + a9 = 9; + a19 = 1; + return -1; + } else if((((!(a12==1)||((a13==1)&&((a5==4)&&((a4==1)||((a28==1)&&(a6==1))))))&&!(a20==1))&&(((((a28==1)&&((a2==1)&&(((a21==10)&&((input==5)&&(a17==2)))&&(a16==8))))&&(a9==8))&&(a19==1))&&(a1==12)))){ + a0 = 0; + a16 = 7; + a20 = 1; + a8 = 0; + a9 = 7; + a12 = 1; + return -1; + } else if((((a17==2)&&((((a1==13)&&(((a19==1)&&(((input==6)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&!(a8==1)))&&(a20==1)))&&(a21==11))&&!(a18==1)))&&(!(a14==1)&&(((a6==1)&&(!(a11==1)||((a16==9)&&(a3==1))))||!(a2==1))))){ + a21 = 12; + a5 = 6; + a9 = 8; + a8 = 0; + a1 = 14; + a16 = 8; + a18 = 0; + a6 = 1; + return 21; + } else if((((((a13==1)&&((a21==12)&&(((a5==5)||(a5==6))&&(input==6))))&&(a9==11))&&(a17==2))&&((a1==12)&&((((a14==1)||((a16==8)&&(((!(a4==1)&&((a11==1)&&!(a20==1)))||!(a11==1))&&(a11==1))))||!(a3==1))&&(a19==4))))){ + a21 = 10; + a9 = 8; + a5 = 5; + a23 = 0; + a16 = 7; + a20 = 1; + a29 = 0; + a26 = 1; + a19 = 2; + return 22; + } else if((((a21==12)&&(((a19==5)&&(a3==1))&&(a16==10)))&&(!(a14==1)&&(!(a26==1)&&((a12==1)&&((((((((a1==14)&&(!(a20==1)&&(input==5)))&&(a9==7))&&!(a0==1))&&(a17==2))&&(a5==5))&&!(a8==1))&&!(a8==1))))))){ + if((a12==1)){ + a9 = 10; + a20 = 1; + a1 = 12; + a27 = 1; + a16 = 7; + a19 = 2; + a4 = 1; + a5 = 6; + a13 = 0; + a21 = 10; + }else{ + a21 = 10; + a0 = 1; + a19 = 1; + a5 = 4; + a16 = 7; + a22 = 1; + a20 = 1; + a12 = 0; + a1 = 12; + a9 = 10; + } + return 21; + } else if(((((((a28==1)&&(!(a7==1)&&(!(a4==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&!(a0==1)))))&&(a17==2))&&(a16==7))&&(a21==10))&&(((a6==1)&&((((a1==14)&&((a8==1)||(a12==1)))&&(a9==9))&&!(a20==1)))&&(a19==4)))){ + a20 = 1; + a1 = 12; + a7 = 0; + a8 = 0; + a19 = 1; + a9 = 7; + a5 = 4; + a27 = 0; + return -1; + } else if((((((a17==2)&&((!(a11==1)&&((a12==1)&&(a1==14)))&&(a21==11)))&&(a16==9))&&(a0==1))&&(((((a9==7)&&(((a20==1)&&(((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&(a0==1)))&&(a26==1)))&&(a19==5))&&!(a28==1))&&(a0==1)))){ + a10 = 1; + a5 = 4; + a9 = 8; + a16 = 11; + a29 = 0; + return 25; + } else if((((a1==12)&&((a17==2)&&((a19==2)&&((!(a8==1)&&((((((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(input==5))&&!(a7==1))&&!(a4==1)))&&!(a18==1)))))&&((a20==1)&&(((((a11==1)||!(a23==1))&&!(a0==1))&&(a21==11))&&(a16==9))))){ + a26 = 0; + a24 = 0; + a14 = 0; + a21 = 10; + a16 = 7; + a5 = 4; + a9 = 7; + a19 = 1; + return -1; + } else if((((a9==8)&&((a17==2)&&(!(a28==1)||(!(a6==1)||((a28==1)||!(a3==1))))))&&(((a16==8)&&(((a1==14)&&((!(a26==1)&&(!(a14==1)&&(((a5==6)&&(input==1))&&(a23==1))))&&!(a20==1)))&&(a19==4)))&&(a21==11)))){ + a16 = 9; + a14 = 0; + a23 = 1; + a20 = 1; + a5 = 4; + a9 = 11; + a19 = 5; + a0 = 0; + a1 = 12; + return 21; + } else if((((a1==13)&&(((a20==1)&&((a17==2)&&(!(a14==1)&&((a2==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&!(a8==1))))))&&(a16==9)))&&((a21==10)&&(!(a14==1)&&(!(a24==1)&&((a9==9)&&(((a19==2)&&(a12==1))&&(a28==1)))))))){ + a16 = 7; + a5 = 4; + a21 = 12; + a3 = 1; + a8 = 0; + a24 = 0; + a1 = 12; + return 21; + } else if((((a23==1)&&(((((a21==10)&&(a13==1))&&(a16==8))&&(a17==2))&&(a9==8)))&&((a11==1)&&((((!(a20==1)&&((a23==1)&&(((a3==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))&&(a19==5))))&&!(a4==1))&&(a1==12))&&(a3==1))))){ + a0 = 0; + a19 = 2; + a27 = 0; + a9 = 9; + a14 = 0; + a16 = 7; + a1 = 13; + a20 = 1; + a5 = 5; + return -1; + } else if(((((a21==12)&&(((!(a18==1)&&((((a3==1)&&(a12==1))||!(a12==1))&&(a1==13)))||(a27==1))&&(a16==7)))&&(a19==3))&&((a17==2)&&(((a23==1)&&(!(a14==1)&&(((a20==1)&&(input==5))&&(a5==5))))&&(a9==9))))){ + a12 = 1; + a2 = 1; + a9 = 11; + a5 = 4; + a13 = 1; + a1 = 14; + a16 = 8; + a19 = 2; + return 22; + } else if(((((a19==2)&&((a1==14)&&(!(a4==1)&&(!(a3==1)||(!(a27==1)&&(a6==1))))))&&(a17==2))&&((((!(a7==1)&&(!(a20==1)&&((a16==9)&&((((a5==4)||(a5==5))&&(input==5))&&!(a14==1)))))&&(a28==1))&&(a9==10))&&(a21==12)))){ + if((a25==1)){ + a26 = 1; + a9 = 9; + a23 = 0; + a21 = 10; + a16 = 7; + a5 = 6; + a20 = 1; + a28 = 0; + a1 = 12; + a19 = 1; + }else{ + a21 = 11; + a16 = 8; + a9 = 9; + a12 = 0; + a20 = 1; + a15 = 0; + a19 = 3; + a23 = 0; + a5 = 6; + } + return -1; + } else if(((((a11==1)&&(((a19==3)&&(((a5==4)&&(input==6))&&(a16==8)))&&(a9==11)))&&(a1==13))&&(((((!(a11==1)||(((a18==1)||((a13==1)&&(a17==2)))||!(a28==1)))&&(a28==1))&&(a3==1))&&(a21==10))&&!(a20==1)))){ + a26 = 0; + a9 = 7; + a28 = 1; + a16 = 7; + a19 = 1; + a1 = 12; + a12 = 1; + a20 = 1; + return -1; + } else if(((((((((a21==12)&&(!(a18==1)&&(!(a20==1)&&((((a5==5)||(a5==6))&&(input==3))&&(a16==9)))))&&(a9==10))&&(a12==1))&&(a2==1))&&(a17==2))&&(a1==12))&&((((a2==1)&&((a13==1)||!(a2==1)))&&!(a18==1))&&(a19==1)))){ + a25 = 0; + a16 = 7; + a9 = 8; + a21 = 10; + a22 = 0; + a15 = 1; + a5 = 6; + a20 = 1; + return -1; + } else if(((!(a24==1)&&(((a2==1)&&((((a5==4)||(a5==5))&&(input==6))&&(a16==10)))&&(a9==9)))&&((a20==1)&&((((a27==1)||((a1==12)&&(!(a23==1)||((a18==1)||((!(a11==1)||(a6==1))&&(a19==1))))))&&(a17==2))&&(a21==12))))){ + if((a26==1)){ + a11 = 1; + a14 = 0; + a9 = 11; + a20 = 0; + a19 = 5; + a24 = 0; + a21 = 10; + a5 = 4; + a16 = 8; + }else{ + a12 = 1; + a9 = 10; + a8 = 0; + a5 = 5; + a1 = 14; + a28 = 1; + a19 = 2; + a16 = 7; + a21 = 10; + } + return 21; + } else if(((((a1==12)&&((a21==10)&&((a3==1)||!(a2==1))))&&(a19==5))&&(((a17==2)&&(!(a7==1)&&((a11==1)&&((a9==7)&&((a16==7)&&((!(a24==1)&&(((input==5)&&(a5==5))&&!(a4==1)))&&(a20==1)))))))&&!(a26==1)))){ + a5 = 4; + a12 = 1; + a24 = 0; + a18 = 0; + a19 = 1; + return -1; + } else if(((((!(a7==1)&&(!(a4==1)&&(!(a7==1)&&((a21==12)&&((a17==2)&&((a16==9)&&(((a5==4)||(a5==5))&&(input==1))))))))&&(a1==14))&&(a20==1))&&(((a3==1)&&((a19==1)&&(((a12==1)||(a8==1))&&(a11==1))))&&(a9==11)))){ + a21 = 10; + a9 = 7; + a2 = 1; + a0 = 0; + a16 = 7; + a1 = 12; + a26 = 0; + a5 = 4; + return -1; + } else if((((a17==2)&&(((a12==1)&&((a14==1)||((a9==9)&&((((a27==1)||((a23==1)&&(a16==8)))||(a27==1))||!(a2==1)))))&&(a1==13)))&&(!(a0==1)&&((a21==12)&&((((input==1)&&((a5==4)||(a5==5)))&&(a20==1))&&(a19==3)))))){ + a1 = 14; + a9 = 8; + a11 = 1; + a16 = 10; + a19 = 2; + a5 = 5; + a13 = 1; + a23 = 1; + return 22; + } else if((((a21==10)&&((a1==12)&&(!(a23==1)&&(((a16==7)&&((a17==2)&&((a18==1)&&((input==1)&&(a5==6)))))&&(a19==1)))))&&(!(a20==1)&&((!(a3==1)&&(((a9==7)&&((a6==1)&&(a18==1)))&&!(a3==1)))&&!(a3==1))))){ + a1 = 14; + a5 = 5; + a19 = 5; + a20 = 1; + a25 = 0; + a16 = 10; + a21 = 11; + a15 = 0; + return 25; + } else if(((((a21==11)&&(((a18==1)||(((a20==1)&&((a12==1)||(a14==1)))&&(a19==1)))||(a7==1)))&&(a17==2))&&((((a9==8)&&((((a6==1)&&((input==6)&&((a5==4)||(a5==5))))&&!(a26==1))&&(a28==1)))&&(a1==14))&&(a16==9)))){ + a26 = 0; + a5 = 4; + a9 = 7; + a21 = 10; + a3 = 1; + a2 = 1; + a19 = 5; + a16 = 7; + return 25; + } else if((((a17==2)&&((a20==1)&&((((a19==2)&&(!(a3==1)&&(((input==6)&&(a1==12))&&(a0==1))))&&(a9==7))&&(a21==11))))&&(!(a3==1)&&((((a4==1)&&(((a11==1)&&(a5==5))&&!(a13==1)))&&(a16==8))&&(a4==1))))){ + a16 = 7; + a5 = 6; + a19 = 3; + a9 = 9; + a1 = 13; + a6 = 0; + a15 = 0; + a7 = 1; + return 25; + } else if((((a21==11)&&(((a1==12)&&((a3==1)&&(!(a14==1)&&(a12==1))))&&!(a7==1)))&&((a20==1)&&((a17==2)&&(!(a18==1)&&((((a9==9)&&((((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a16==10))&&(a2==1)))&&(a13==1))&&(a19==3))))))){ + a19 = 5; + a27 = 0; + a12 = 1; + a5 = 6; + a21 = 10; + a1 = 13; + a6 = 1; + a9 = 11; + a16 = 8; + return -1; + } else if((((a1==12)&&((!(a11==1)||((a21==10)&&((a19==4)&&(a2==1))))&&(a17==2)))&&((!(a27==1)&&(!(a7==1)&&(!(a0==1)&&((a5==4)&&((!(a8==1)&&(!(a20==1)&&((a16==10)&&(input==6))))&&(a9==8))))))&&(a12==1)))){ + a16 = 7; + a9 = 11; + a20 = 1; + a19 = 1; + a22 = 0; + a13 = 0; + a5 = 6; + a15 = 0; + return 21; + } else if(((((((a17==2)&&((a19==3)&&((a21==12)&&(!(a27==1)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==6))))))&&(a23==1))&&(a20==1))&&(a3==1))&&(!(a11==1)||((a1==13)&&(!(a14==1)&&((a16==9)&&((a27==1)||(a2==1)))))))){ + a21 = 10; + a9 = 10; + a19 = 2; + a16 = 7; + a5 = 6; + a18 = 0; + a12 = 1; + return 25; + } else if((((!(a18==1)&&((a13==1)&&(((a21==12)&&((a13==1)&&(a9==10)))&&!(a20==1))))&&(a1==13))&&((((!(a14==1)&&(((((input==4)&&((a5==4)||(a5==5)))&&(a2==1))&&(a17==2))&&(a6==1)))&&!(a27==1))&&(a19==3))&&(a16==9)))){ + a1 = 12; + a9 = 9; + a26 = 1; + a21 = 10; + a5 = 4; + a11 = 0; + a20 = 1; + a19 = 1; + a16 = 7; + a25 = 1; + return -1; + } else if(((((a1==13)&&((((((a7==1)||(!(a4==1)&&(a6==1)))&&(a2==1))||(a7==1))&&(a9==9))&&(a17==2)))&&!(a20==1))&&(!(a0==1)&&((a5==5)&&(((a19==1)&&(((a16==9)&&(input==6))&&(a3==1)))&&(a21==10)))))){ + a5 = 6; + a19 = 4; + a6 = 0; + a20 = 1; + a9 = 8; + a21 = 11; + a16 = 11; + a24 = 1; + return 25; + } else if(((((a21==11)&&(a3==1))||!(a6==1))&&((((a1==12)&&((a17==2)&&(((!(a20==1)&&(((a12==1)&&((a19==2)&&((input==6)&&(((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))))&&(a23==1)))&&!(a7==1))&&(a16==9))))&&(a13==1))&&!(a18==1)))){ + a23 = 0; + a28 = 0; + a1 = 14; + a9 = 11; + a16 = 7; + a21 = 10; + a7 = 1; + a19 = 1; + a5 = 4; + a20 = 1; + return -1; + } else if(((((a19==2)&&(((a11==1)&&(a16==10))&&(a9==9)))&&!(a26==1))&&((a12==1)&&(!(a14==1)&&((a1==12)&&((a21==11)&&((a2==1)&&((((a23==1)&&(((input==6)&&((a5==5)||(a5==6)))&&(a17==2)))&&!(a4==1))&&!(a20==1))))))))){ + a21 = 10; + a5 = 6; + a10 = 1; + a12 = 0; + a22 = 0; + a16 = 7; + a19 = 1; + a20 = 1; + return -1; + } else if((((((((((!(a8==1)&&((input==5)&&((a5==4)||(a5==5))))&&!(a20==1))&&(a21==10))&&(a17==2))&&!(a18==1))&&(a1==12))&&!(a7==1))&&(a16==8))&&(((!(a11==1)||(!(a28==1)||((a3==1)&&(a12==1))))&&(a9==7))&&(a19==3)))){ + a19 = 2; + a9 = 9; + a8 = 0; + a16 = 7; + a5 = 4; + a1 = 13; + a11 = 1; + a20 = 1; + a0 = 0; + return 25; + } else if((((a19==5)&&((((a5==6)&&((a1==14)&&((a13==1)&&(a0==1))))&&!(a23==1))&&(a9==8)))&&((((a24==1)&&(((a17==2)&&(!(a6==1)&&(!(a6==1)&&((input==6)&&!(a20==1)))))&&!(a28==1)))&&(a21==12))&&(a16==7)))){ + a5 = 5; + a9 = 10; + a19 = 1; + a28 = 0; + a16 = 9; + a14 = 1; + a20 = 1; + a22 = 0; + a21 = 11; + return 23; + } else if(((!(a8==1)&&((a6==1)&&(((input==1)&&(((((a1==12)&&(a5==6))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==13))))||(((a1==13)&&(a5==5))&&(a9==7))))&&(a16==11))))&&(((((!(a3==1)||(((a0==1)||((a17==2)&&(a6==1)))&&(a20==1)))&&(a21==10))||(a7==1))&&!(a27==1))&&(a19==3)))){ + a9 = 8; + a27 = 0; + a1 = 12; + a12 = 1; + a19 = 1; + a5 = 4; + a16 = 10; + return 21; + } else if((((a23==1)&&((((a2==1)&&(((a21==10)&&((input==6)&&(a20==1)))&&(a17==2)))&&!(a4==1))&&(a5==6)))&&(((a19==2)&&((a1==13)&&(((a18==1)||((a9==9)&&((a23==1)&&(a12==1))))||(a4==1))))&&(a16==7)))){ + a19 = 3; + a5 = 4; + a1 = 12; + a14 = 0; + a9 = 10; + a13 = 1; + a24 = 0; + return 25; + } else if((((a17==2)&&(((!(a2==1)||((a23==1)&&!(a18==1)))&&(a19==5))&&(a16==7)))&&((!(a26==1)&&(((a1==12)&&(((((input==1)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(a3==1))&&!(a20==1))&&(a28==1)))&&(a21==10)))&&(a28==1)))){ + a18 = 0; + a5 = 5; + a12 = 1; + a9 = 10; + a13 = 1; + return 21; + } else if((((((((a20==1)&&((a1==13)&&(a23==1)))&&(a21==12))&&(a19==3))&&(a17==2))||(a26==1))&&(((((!(a14==1)&&((a16==9)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==3))))&&(a6==1))&&!(a0==1))&&(a3==1))&&(a3==1)))){ + a21 = 10; + a1 = 12; + a19 = 1; + a16 = 7; + a3 = 1; + a9 = 7; + a14 = 0; + a5 = 4; + a24 = 0; + return -1; + } else if((((a16==10)&&((((((a17==2)&&((!(a14==1)&&(((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==5))&&(a21==11)))&&(a19==2)))&&(a1==12))&&(a12==1))&&!(a14==1))&&!(a24==1)))&&((a8==1)||(((a13==1)||!(a3==1))&&!(a20==1))))){ + a21 = 10; + a10 = 1; + a5 = 4; + a3 = 0; + a9 = 9; + a16 = 7; + a19 = 4; + a24 = 1; + a1 = 14; + return -1; + } else if((((a12==1)&&(((a19==3)&&(!(a11==1)||((a21==10)&&((a11==1)&&(a23==1)))))||(a0==1)))&&(((a3==1)&&((a9==9)&&((a16==7)&&(((a20==1)&&(((input==6)&&((a5==5)||(a5==6)))&&(a1==13)))&&(a17==2)))))&&!(a0==1)))){ + a19 = 1; + a21 = 11; + a9 = 8; + a1 = 14; + a3 = 1; + a5 = 4; + a23 = 1; + return 22; + } else if((((((((a2==1)&&(a28==1))&&(a19==2))&&(a16==11))&&(a17==2))&&(a23==1))&&((a23==1)&&((a1==12)&&((a21==10)&&(!(a26==1)&&((((a11==1)&&((((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))&&(input==3)))&&(a12==1))&&!(a20==1)))))))){ + if((a5==6)){ + a6 = 0; + a16 = 7; + a20 = 1; + a9 = 9; + a28 = 0; + a19 = 1; + a1 = 14; + a18 = 1; + a5 = 6; + }else{ + a19 = 1; + a15 = 1; + a1 = 13; + a5 = 5; + a20 = 1; + a24 = 1; + a9 = 7; + a27 = 1; + a16 = 7; + } + return 25; + } else if((((a26==1)||(!(a18==1)&&(((a21==12)&&(!(a20==1)&&((a3==1)&&(a1==13))))||(a8==1))))&&((a2==1)&&(((a17==2)&&((a2==1)&&((a19==3)&&(((((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7))))&&(input==5))&&(a16==8)))))&&(a11==1))))){ + a9 = 10; + a3 = 0; + a21 = 10; + a5 = 6; + a20 = 1; + a19 = 1; + a0 = 1; + a16 = 7; + a8 = 1; + return 26; + } else if(((((((((a19==4)&&(((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a12==1)))&&!(a20==1))&&!(a26==1))&&(a17==2))&&(a9==9))&&(a16==9))&&((!(a13==1)||(!(a11==1)||((a21==11)&&(((a2==1)&&(a12==1))&&(a1==13)))))||!(a23==1)))){ + a1 = 12; + a16 = 10; + a22 = 1; + a7 = 1; + a9 = 11; + a24 = 1; + a19 = 3; + a5 = 5; + a21 = 12; + a20 = 1; + return 25; + } else if(((((a3==1)&&((a13==1)&&((!(a20==1)&&(((((a9==7)&&((a5==4)&&(a1==14)))||((((a1==13)&&(a5==5))&&(a9==11))||((a9==11)&&((a1==13)&&(a5==6)))))&&(input==1))&&(a21==11)))&&(a2==1))))&&!(a4==1))&&((!(a18==1)&&(((a19==3)&&((a11==1)&&(a17==2)))||(a8==1)))&&(a16==9)))){ + a1 = 13; + a26 = 1; + a5 = 5; + a16 = 10; + a10 = 0; + a9 = 11; + a19 = 1; + return 23; + } else if((((a17==2)&&((((((((a1==14)&&(a28==1))||!(a6==1))||(a8==1))&&(a19==3))||(a27==1))||(a14==1))&&(a11==1)))&&((((!(a24==1)&&((input==4)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))&&(a16==10))&&(a20==1))&&(a21==10)))){ + a26 = 0; + a5 = 4; + a1 = 12; + a27 = 0; + a12 = 1; + a16 = 7; + a9 = 7; + a19 = 1; + return -1; + } else if((((a20==1)&&(((((a0==1)||((a17==2)&&((a2==1)&&(a13==1))))&&(a11==1))&&!(a24==1))&&(a11==1)))&&(((a16==8)&&((!(a8==1)&&((((a5==5)&&(input==6))&&(a9==11))&&(a1==14)))&&(a21==10)))&&(a19==2)))){ + a19 = 1; + a27 = 0; + a16 = 7; + a7 = 0; + a28 = 1; + a5 = 4; + a1 = 12; + a9 = 7; + return -1; + } else if((((a17==2)&&(((((((a5==5)||(a5==6))&&(input==3))&&(a16==11))&&(a3==1))&&(a21==12))&&(a19==2)))&&(((!(a3==1)||((!(a4==1)&&((((a7==1)||(a23==1))&&(a1==13))&&(a20==1)))||(a4==1)))||(a0==1))&&(a9==9)))){ + a5 = 5; + a9 = 10; + a7 = 0; + a16 = 9; + a1 = 12; + a23 = 1; + a19 = 3; + return 21; + } else if((((!(a26==1)&&((a20==1)&&(((a1==14)&&(((((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(input==6))&&!(a24==1)))&&(a16==9))))&&(a13==1))&&(((a14==1)||((((a2==1)&&((a19==5)&&(a6==1)))||!(a13==1))&&(a21==10)))&&(a17==2)))){ + a5 = 5; + a9 = 7; + a1 = 12; + a21 = 12; + a6 = 1; + a19 = 2; + a3 = 1; + a24 = 0; + return 21; + } else if((((a16==11)&&((a20==1)&&(((((((((a5==4)||(a5==5))&&(input==4))&&(a19==5))&&!(a7==1))&&(a2==1))&&!(a14==1))&&(a21==12))&&(a17==2))))&&(!(a2==1)||(((a1==14)&&((!(a12==1)||(a3==1))&&(a9==8)))||(a24==1))))){ + a19 = 1; + a16 = 7; + a21 = 10; + a9 = 7; + a27 = 0; + a1 = 12; + a5 = 4; + a8 = 0; + a28 = 1; + return -1; + } else if((((a21==12)&&((a13==1)&&(((!(a18==1)&&((a20==1)&&((a9==7)&&((input==5)&&(a1==13)))))&&!(a27==1))&&(a19==2))))&&((a16==9)&&((a17==2)&&((a13==1)&&((!(a18==1)&&((a28==1)&&(a5==4)))&&!(a4==1))))))){ + a6 = 1; + a8 = 0; + a5 = 6; + a21 = 10; + a19 = 4; + a16 = 11; + a9 = 10; + a4 = 0; + return 25; + } else if(((((a9==10)&&(((a1==14)&&((a6==1)&&(!(a14==1)&&(((((a28==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))&&!(a0==1))&&(a16==9))&&(a20==1)))))&&!(a18==1)))&&(a19==2))&&((((a17==2)&&(a12==1))||!(a3==1))&&(a21==11)))){ + a9 = 9; + a11 = 1; + a21 = 10; + a16 = 7; + a5 = 5; + a8 = 0; + a19 = 5; + return 26; + } else if(((!(a2==1)||(!(a2==1)||((a21==11)&&(!(a7==1)&&((a16==7)&&(((a6==1)&&(a12==1))||!(a12==1)))))))&&(((a17==2)&&((((a20==1)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==6)))&&(a1==14))&&(a19==5)))&&(a12==1)))){ + a9 = 8; + a12 = 1; + a24 = 0; + a16 = 8; + a21 = 12; + a19 = 3; + a5 = 4; + a1 = 13; + return 22; + } else if((((((((a19==3)&&(((a11==1)&&((input==5)&&(a5==4)))&&!(a14==1)))&&!(a24==1))&&(a3==1))&&(a1==14))&&(a21==10))&&((((a16==9)&&(((a11==1)&&(!(a2==1)||(a13==1)))&&(a20==1)))&&(a17==2))&&(a9==7)))){ + a24 = 0; + a16 = 7; + a7 = 0; + a23 = 1; + a19 = 1; + a1 = 12; + return -1; + } else if(((((!(a23==1)||(((((a19==4)&&(((a23==1)&&!(a0==1))||(a8==1)))&&(a21==10))&&(a16==7))&&(a17==2)))&&(a9==8))||!(a6==1))&&((a11==1)&&((a6==1)&&((((input==5)&&((a5==4)||(a5==5)))&&(a1==13))&&(a20==1)))))){ + a19 = 1; + a24 = 0; + a20 = 0; + a5 = 5; + a28 = 1; + a9 = 10; + a21 = 12; + a11 = 1; + return 26; + } else if((((a20==1)&&(((a1==14)&&((!(a7==1)&&((a17==2)&&((a18==1)||(a11==1))))||(a18==1)))&&(a21==10)))&&((a19==3)&&(((a16==10)&&((a13==1)&&((a23==1)&&(!(a7==1)&&((input==3)&&((a5==4)||(a5==5)))))))&&(a9==11))))){ + a19 = 1; + a5 = 4; + a12 = 1; + a7 = 0; + a16 = 7; + a1 = 12; + a9 = 7; + a28 = 1; + return -1; + } else if(((((a26==1)||((a1==14)&&(((a16==8)&&((a9==9)&&(a13==1)))||!(a6==1))))||(a7==1))&&((((((!(a4==1)&&((a17==2)&&(((a5==5)||(a5==6))&&(input==3))))&&(a19==2))&&(a21==12))&&!(a14==1))&&!(a20==1))&&!(a8==1)))){ + a5 = 4; + a27 = 1; + a1 = 12; + a6 = 0; + a16 = 7; + a20 = 1; + a21 = 10; + a9 = 7; + return -1; + } else if((((((a20==1)&&((a6==1)&&((((a2==1)&&((a12==1)&&((a17==2)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==4)))))&&!(a26==1))&&(a23==1))))&&(a19==3))&&(a21==12))&&(!(a8==1)&&(((a6==1)&&(a16==9))&&(a1==13))))){ + a21 = 10; + a5 = 4; + a6 = 1; + a2 = 1; + a9 = 7; + a16 = 7; + a1 = 12; + a19 = 1; + return -1; + } else if((((a19==3)&&(((a16==10)&&(((((a3==1)&&(!(a26==1)&&((a20==1)&&(input==6))))&&(a17==2))&&!(a18==1))&&(a6==1)))&&(a2==1)))&&(((a5==4)&&((a9==10)&&((a6==1)&&((a11==1)&&(a21==10)))))&&(a1==12)))){ + a1 = 14; + a19 = 4; + a23 = 1; + a18 = 0; + a21 = 12; + a6 = 1; + a16 = 7; + a20 = 0; + return -1; + } else if((((((a17==2)&&(((input==6)&&(a20==1))&&!(a7==1)))&&!(a26==1))&&!(a26==1))&&(((((a5==6)&&(((a1==12)&&(((a9==7)&&((a21==11)&&(a13==1)))&&!(a7==1)))||!(a12==1)))&&(a12==1))&&(a19==3))&&(a16==7)))){ + a7 = 0; + a11 = 1; + a19 = 1; + a5 = 4; + a4 = 0; + a21 = 10; + return -1; + } else if(((!(a13==1)||((a21==12)&&((((a16==9)&&(a6==1))&&!(a0==1))&&(a19==3))))&&((a1==14)&&((a17==2)&&(!(a20==1)&&(((((a23==1)&&((input==3)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))))&&(a6==1))&&(a13==1))&&!(a18==1))))))){ + if((a19==1)){ + a9 = 10; + a20 = 1; + a21 = 10; + a6 = 0; + a7 = 1; + a16 = 7; + a29 = 0; + a19 = 1; + a5 = 5; + a1 = 13; + }else{ + a19 = 2; + a16 = 7; + a5 = 4; + a10 = 1; + a9 = 9; + a7 = 1; + a22 = 1; + a1 = 12; + } + return -1; + } else if(((!(a7==1)&&((a21==12)&&((((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==6))))&&((a1==14)&&((((!(a3==1)||((a2==1)&&((a16==7)&&((((a2==1)&&!(a20==1))&&!(a0==1))||(a14==1)))))&&!(a14==1))&&(a19==1))&&(a17==2))))){ + a21 = 10; + a1 = 12; + a3 = 1; + a11 = 1; + a5 = 4; + a9 = 7; + a20 = 1; + return -1; + } else if(((((a6==1)&&(!(a24==1)&&((a6==1)&&(a28==1))))&&(a1==12))&&((a9==7)&&(((a16==7)&&((((a21==11)&&(!(a20==1)&&((!(a0==1)&&((input==4)&&(a17==2)))&&(a12==1))))&&(a28==1))&&(a5==4)))&&(a19==4))))){ + a21 = 10; + a20 = 1; + a19 = 1; + a3 = 1; + a0 = 0; + return -1; + } else if((((!(a0==1)&&(((a2==1)&&((a9==11)&&(!(a4==1)&&(((a17==2)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))&&!(a20==1)))))&&(a16==9)))&&(a21==12))&&((a1==12)&&(!(a28==1)||(!(a2==1)||((!(a12==1)||(a3==1))&&(a19==2))))))){ + a5 = 4; + a16 = 11; + a20 = 1; + a19 = 5; + a9 = 8; + a6 = 0; + a21 = 11; + a28 = 0; + a15 = 0; + return 21; + } else if((((a5==5)&&(((((a28==1)&&(a1==14))&&(a3==1))||(a27==1))&&(a11==1)))&&((a21==10)&&((a17==2)&&((a9==9)&&(((((((input==3)&&(a19==1))&&!(a14==1))&&(a16==7))&&!(a18==1))&&!(a0==1))&&!(a20==1))))))){ + a5 = 4; + a16 = 10; + a9 = 7; + a23 = 1; + a26 = 0; + a4 = 0; + a20 = 1; + return 21; + } else if((((((!(a26==1)&&((a5==4)&&((a23==1)||!(a11==1))))&&(a19==4))||!(a23==1))&&(a20==1))&&((a9==9)&&((a28==1)&&((a17==2)&&((!(a4==1)&&((a16==11)&&(((input==1)&&(a1==14))&&(a21==10))))&&!(a8==1))))))){ + a9 = 8; + a8 = 0; + a23 = 1; + a13 = 1; + a1 = 12; + return 21; + } else if(((((a11==1)&&(((!(a2==1)||(!(a7==1)&&((a8==1)||(a13==1))))&&(a17==2))&&(a16==8)))&&(a28==1))&&(((((a20==1)&&((a21==10)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==6))))&&(a19==5))&&!(a24==1))&&(a1==13)))){ + a5 = 4; + a0 = 0; + a19 = 1; + a6 = 1; + a14 = 0; + a16 = 7; + a9 = 7; + a1 = 12; + return -1; + } else if(((!(a23==1)||((a20==1)&&((!(a23==1)||(!(a18==1)&&((a11==1)&&(a3==1))))||!(a28==1))))&&(((a16==9)&&((a21==11)&&((a19==4)&&((a17==2)&&(!(a14==1)&&((input==4)&&((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4)))))))))&&(a1==13)))){ + a9 = 8; + a1 = 12; + a23 = 1; + a3 = 1; + a12 = 1; + a5 = 5; + a20 = 0; + a16 = 8; + return 21; + } else if((((((((((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8)))&&(input==4))&&(a21==10))&&(a20==1))&&(a19==1))&&(a1==13))&&(a3==1))&&((!(a12==1)||(!(a2==1)||((!(a18==1)&&((a17==2)&&((a16==10)&&(a23==1))))||(a18==1))))&&!(a7==1)))){ + a5 = 6; + a3 = 1; + a9 = 10; + a12 = 1; + a0 = 0; + a1 = 14; + return 25; + } else if((((a16==10)&&((a27==1)||((a24==1)||((!(a23==1)||(a28==1))&&(a21==10)))))&&((((((a9==11)&&((a3==1)&&((((input==6)&&((a5==5)||(a5==6)))&&(a2==1))&&(a20==1))))&&!(a0==1))&&(a1==14))&&(a17==2))&&(a19==2)))){ + a5 = 4; + a9 = 7; + a19 = 1; + a27 = 0; + a7 = 0; + a13 = 1; + a1 = 12; + a16 = 7; + return -1; + } else if(((((a11==1)&&((((!(a3==1)||((a26==1)||((a21==11)&&(a12==1))))||!(a3==1))&&(a9==9))&&!(a0==1)))&&(a1==13))&&((a16==7)&&((a17==2)&&(((a19==1)&&(((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a11==1)))&&(a20==1)))))){ + a5 = 4; + a1 = 12; + a21 = 10; + a3 = 1; + a14 = 0; + a9 = 7; + a0 = 0; + return -1; + } else if((((!(a14==1)&&((a23==1)&&((a1==13)&&(!(a14==1)&&((!(a24==1)&&((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))&&(input==3)))&&(a16==7))))))&&(a2==1))&&((!(a20==1)&&((a21==10)&&(!(a4==1)&&((a3==1)&&(a19==2)))))&&(a17==2)))){ + a5 = 4; + a9 = 7; + a3 = 1; + a8 = 0; + a19 = 1; + a20 = 1; + a1 = 12; + a2 = 1; + return -1; + } else if((((((a17==2)&&((((a11==1)&&((a16==7)&&((a9==7)&&(((input==6)&&((a5==5)||(a5==6)))&&(a1==13)))))&&(a21==12))&&(a11==1)))&&(a20==1))&&(a19==4))&&(!(a26==1)&&(((!(a28==1)||(a2==1))||(a27==1))&&!(a24==1))))){ + a16 = 9; + a21 = 11; + a3 = 1; + a6 = 1; + a13 = 1; + a1 = 12; + a5 = 4; + a19 = 2; + a9 = 11; + return 21; + } else if(((!(a24==1)&&((((a23==1)&&((input==3)&&((a5==5)||(a5==6))))&&(a19==4))&&(a17==2)))&&((((!(a20==1)&&((((a1==13)&&((a21==11)&&((a16==9)&&(a12==1))))&&!(a24==1))&&(a9==10)))||(a8==1))&&(a13==1))||(a18==1)))){ + if((a24==1)){ + a1 = 12; + a15 = 1; + a16 = 7; + a23 = 0; + a21 = 10; + a20 = 1; + a9 = 9; + a5 = 5; + a19 = 1; + a2 = 0; + }else{ + a16 = 7; + a1 = 12; + a20 = 1; + a19 = 1; + a9 = 9; + a5 = 5; + a10 = 0; + a18 = 1; + a21 = 10; + } + return 21; + } else if((((a21==12)&&(((a12==1)&&(((!(a0==1)&&(a2==1))&&(a12==1))&&!(a27==1)))&&(a19==1)))&&((((a16==10)&&((a17==2)&&((((((a5==5)||(a5==6))&&(input==3))&&!(a27==1))&&!(a8==1))&&(a9==10))))&&(a1==14))&&(a20==1)))){ + a27 = 0; + a1 = 12; + a14 = 0; + a5 = 4; + a9 = 7; + a8 = 0; + a21 = 10; + a16 = 7; + return -1; + } else if(((((a1==14)&&((a23==1)&&(((a12==1)&&(((a3==1)||!(a28==1))&&(a17==2)))&&!(a20==1))))||!(a13==1))&&(((a21==11)&&((a28==1)&&((a19==1)&&((a16==8)&&((((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&(input==4))))))&&(a23==1)))){ + a1 = 12; + a9 = 7; + a21 = 10; + a20 = 1; + a16 = 7; + a14 = 0; + a4 = 0; + a24 = 0; + a5 = 4; + return -1; + } else if((((a19==4)&&((a2==1)&&((a16==7)&&((!(a4==1)&&((!(a0==1)&&((!(a26==1)&&(!(a20==1)&&((((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6))))&&(input==1))))&&(a1==14)))&&(a21==12)))&&(a13==1)))))&&((a17==2)&&((a6==1)&&(a2==1))))){ + a23 = 1; + a20 = 1; + a2 = 1; + a16 = 11; + a21 = 11; + a5 = 6; + a19 = 3; + a6 = 1; + a9 = 7; + return 22; + } else if((((a17==2)&&(((a23==1)&&((a1==14)&&(((a20==1)&&((a9==8)&&(input==4)))&&!(a0==1))))&&(a11==1)))&&((a19==2)&&(((a18==1)||((!(a2==1)||((a2==1)&&((a5==4)&&(a3==1))))&&(a16==8)))&&(a21==11))))){ + a21 = 10; + a16 = 7; + a1 = 12; + a7 = 0; + a19 = 1; + a0 = 0; + a9 = 7; + a2 = 1; + return -1; + } else if((((!(a20==1)&&((!(a12==1)||(((a9==8)&&(a3==1))&&(a5==6)))||!(a11==1)))&&!(a14==1))&&(((((a19==1)&&((a17==2)&&(((a16==8)&&((a21==10)&&(input==6)))&&(a1==14))))&&(a2==1))&&(a11==1))&&!(a24==1)))){ + a18 = 0; + a1 = 12; + a4 = 0; + a20 = 1; + a7 = 0; + a16 = 7; + a5 = 4; + a9 = 7; + return -1; + } else if((((((a3==1)&&((a9==10)&&((a21==10)&&((a16==9)&&(a13==1)))))||!(a12==1))||!(a23==1))&&(!(a24==1)&&((((!(a18==1)&&(((a17==2)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))&&(a1==13)))&&(a13==1))&&(a19==5))&&!(a20==1))))){ + a20 = 1; + a5 = 6; + a19 = 2; + a2 = 0; + a23 = 0; + a1 = 12; + a11 = 0; + a16 = 7; + return -1; + } else if((((a24==1)&&((a14==1)&&((a16==8)&&((a21==11)&&((a18==1)&&((a1==13)&&(((a20==1)&&((a3==1)&&(a19==5)))&&(a9==11))))))))&&((a7==1)&&((a24==1)&&((!(a12==1)&&(((a5==4)||(a5==5))&&(input==1)))&&(a17==2)))))){ + a9 = 9; + a12 = 0; + a19 = 1; + a5 = 5; + a2 = 0; + a16 = 7; + a11 = 0; + a21 = 10; + return -1; + } else if((((a2==1)&&((((a1==13)&&((a16==10)&&(input==4)))&&!(a24==1))&&(a3==1)))&&(((a9==7)&&(((a14==1)||((a5==6)&&((a7==1)||((a17==2)&&((a21==12)&&((a13==1)&&!(a20==1)))))))&&!(a26==1)))&&(a19==1)))){ + a0 = 1; + a16 = 8; + a15 = 0; + a9 = 8; + a1 = 12; + a20 = 1; + a5 = 5; + return 25; + } else if((((!(a7==1)&&((a19==2)&&((a17==2)&&((input==3)&&((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a5==4)&&(a9==9)))))))&&(a23==1))&&(((a20==1)&&(((a16==9)&&((a2==1)&&((((a23==1)&&(a13==1))&&(a23==1))&&(a21==10))))&&(a1==12)))||!(a13==1)))){ + a28 = 1; + a9 = 7; + a2 = 1; + a19 = 1; + a16 = 7; + a5 = 4; + a0 = 0; + return -1; + } else if((((((!(a14==1)&&(((((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a3==1))&&(a21==12))&&(a17==2)))&&!(a26==1))&&(a1==13))&&(a6==1))&&(((!(a3==1)||((((a3==1)&&(a9==11))&&(a16==8))&&(a19==5)))&&(a6==1))&&(a20==1)))){ + a5 = 6; + a0 = 0; + a21 = 10; + a8 = 0; + a9 = 9; + a27 = 0; + return -1; + } else if((((a17==2)&&((!(a8==1)&&(!(a4==1)&&((!(a0==1)&&((a21==10)&&(((a13==1)&&((a11==1)&&((input==1)&&((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4))))))&&(a16==11))))&&(a1==13))))&&(a20==1)))&&((a19==1)&&((a3==1)&&(a12==1))))){ + a21 = 11; + a26 = 0; + a5 = 5; + a23 = 1; + a9 = 11; + a1 = 14; + a14 = 0; + return 25; + } else if((((a20==1)&&((a9==9)&&((a19==1)&&((a6==1)&&((((a17==2)&&(!(a7==1)&&((((input==3)&&((a5==4)||(a5==5)))&&(a6==1))&&(a16==9))))&&(a1==13))&&!(a27==1))))))&&(!(a4==1)&&(((a21==10)&&(a23==1))||(a18==1))))){ + a7 = 0; + a5 = 6; + a9 = 11; + a16 = 10; + a1 = 14; + a2 = 1; + a28 = 1; + return 25; + } else if((((!(a14==1)&&((((a11==1)&&(a9==7))||(a8==1))&&!(a20==1)))&&(a21==11))&&((a17==2)&&(((a1==12)&&(!(a24==1)&&(((a23==1)&&(!(a14==1)&&((a5==5)&&((input==6)&&(a16==10)))))&&(a19==3))))&&!(a4==1))))){ + a7 = 1; + a15 = 1; + a12 = 0; + a1 = 14; + a5 = 6; + a20 = 1; + a19 = 1; + a21 = 10; + return 22; + } else if((((a21==12)&&(((a7==1)&&((a7==1)&&((a9==9)&&(((a27==1)&&((input==5)&&((a5==5)||(a5==6))))&&(a26==1)))))&&!(a23==1)))&&((a1==12)&&(((((a19==2)&&((a2==1)&&!(a6==1)))&&(a16==10))&&(a20==1))&&(a17==2))))){ + a21 = 10; + a24 = 1; + a5 = 5; + a19 = 1; + a9 = 11; + a16 = 7; + a25 = 1; + a14 = 1; + return -1; + } else if(((((a1==13)&&((a17==2)&&((a9==10)&&((a21==10)&&(a3==1)))))&&!(a20==1))&&((!(a24==1)&&(!(a0==1)&&(!(a4==1)&&((!(a0==1)&&((a19==4)&&((((a5==4)||(a5==5))&&(input==3))&&(a13==1))))&&(a23==1)))))&&(a16==11)))){ + a19 = 1; + a20 = 1; + a9 = 7; + a16 = 7; + a13 = 0; + a5 = 4; + a10 = 0; + a25 = 0; + return -1; + } else if((((!(a26==1)&&((!(a18==1)&&((((a20==1)&&((((((a1==14)&&(a5==6))&&(a9==11))&&(a19==1))||((a19==2)&&((a9==7)&&((a5==4)&&(a1==12)))))&&(input==4)))&&!(a24==1))&&!(a14==1)))&&!(a14==1)))&&(a16==9))&&(((a17==2)&&((a11==1)&&!(a0==1)))&&(a21==10)))){ + a12 = 1; + a5 = 4; + a6 = 1; + a8 = 0; + a9 = 7; + a19 = 1; + a16 = 7; + a1 = 12; + return -1; + } else if((((a16==8)&&((((a13==1)&&((!(a24==1)&&(((input==1)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11))))&&(a20==1)))&&!(a24==1)))&&(a28==1))&&(a17==2)))&&(((a21==10)&&((a19==3)&&((a14==1)||((a12==1)&&(a3==1)))))&&(a1==12)))){ + a16 = 9; + a19 = 4; + a26 = 0; + a12 = 1; + a7 = 0; + a1 = 14; + a9 = 9; + a5 = 5; + a21 = 12; + return 22; + } else if(((((((!(a20==1)&&(((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&!(a27==1)))&&(a9==11))&&(a21==12))&&!(a18==1))&&!(a7==1))&&(((a6==1)&&((a17==2)&&((a16==7)&&(!(a13==1)||(((a12==1)&&(a1==13))||!(a6==1))))))&&(a19==2)))){ + a11 = 1; + a19 = 1; + a1 = 12; + a21 = 10; + a26 = 0; + a7 = 0; + a5 = 4; + a20 = 1; + a9 = 7; + return -1; + } else if((((((a21==10)&&(!(a24==1)&&((a23==1)&&!(a0==1))))&&!(a24==1))&&(a28==1))&&(((!(a26==1)&&((!(a14==1)&&((a1==13)&&(((input==4)&&(((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))))&&(a17==2))))&&(a16==9)))&&(a19==1))&&!(a20==1)))){ + a24 = 1; + a9 = 8; + a16 = 7; + a13 = 0; + a19 = 2; + a15 = 0; + a5 = 4; + a20 = 1; + a1 = 12; + return 21; + } else if(((!(a14==1)&&(((!(a8==1)&&((a19==2)&&((!(a20==1)&&(((input==4)&&((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4))))&&(a17==2)))&&(a1==12))))&&(a6==1))&&!(a24==1)))&&((a16==11)&&((a21==10)&&((a27==1)||((a28==1)&&(a12==1))))))){ + a16 = 7; + a19 = 3; + a29 = 0; + a1 = 13; + a20 = 1; + a0 = 1; + a5 = 6; + a25 = 0; + a21 = 12; + a9 = 10; + return -1; + } else if((((a17==2)&&(((a5==5)&&((a1==12)&&((a20==1)&&(!(a27==1)&&((((a12==1)&&(a12==1))||(a7==1))&&(a28==1))))))&&(a19==4)))&&((a9==8)&&((a16==11)&&((!(a4==1)&&((input==5)&&(a21==12)))&&!(a4==1)))))){ + a1 = 13; + a5 = 4; + a19 = 5; + a9 = 10; + a4 = 0; + a13 = 1; + a23 = 1; + return 23; + } else if((((!(a20==1)&&((a21==12)&&((a17==2)&&(((a11==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))&&(a9==8)))))&&(a19==2))&&(!(a7==1)&&((((a24==1)||((((a3==1)&&(a1==13))&&(a16==10))||!(a3==1)))||(a27==1))||(a27==1))))){ + a15 = 0; + a21 = 10; + a27 = 1; + a19 = 1; + a16 = 7; + a20 = 1; + a8 = 1; + a5 = 5; + a1 = 12; + a9 = 7; + return -1; + } else if(((((a21==12)&&((a23==1)&&(((a13==1)&&(!(a4==1)&&(((input==5)&&(((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))))&&!(a27==1))))&&(a17==2))))&&(a1==13))&&((a16==9)&&((a19==1)&&((!(a8==1)&&((a20==1)&&(a13==1)))||(a26==1)))))){ + a9 = 7; + a16 = 7; + a5 = 4; + a21 = 10; + a2 = 1; + a0 = 0; + a26 = 0; + a1 = 12; + return -1; + } else if(((((((a17==2)&&((a3==1)&&((((a11==1)||!(a28==1))&&(a6==1))||(a8==1))))||!(a6==1))&&(a19==4))&&(a21==10))&&((a20==1)&&((((((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8)))&&(input==1))&&!(a14==1))&&(a1==12))&&(a16==9))))){ + if((a7==1)){ + a20 = 0; + a9 = 9; + a13 = 1; + a2 = 1; + a16 = 8; + a26 = 0; + a1 = 14; + a5 = 4; + a21 = 11; + }else{ + a9 = 9; + a16 = 7; + a19 = 2; + a1 = 13; + a12 = 1; + a3 = 1; + a5 = 6; + a11 = 1; + } + return 25; + } else if(((((a19==3)&&(((((!(a12==1)||((!(a27==1)&&(!(a11==1)||((a12==1)||!(a11==1))))&&(a1==14)))||(a7==1))&&(a9==10))&&(a17==2))&&!(a20==1)))&&(a5==5))&&((!(a18==1)&&((a16==9)&&(input==1)))&&(a21==10)))){ + a29 = 0; + a9 = 7; + a16 = 7; + a19 = 2; + a15 = 1; + a5 = 4; + a24 = 1; + a1 = 12; + a20 = 1; + return 21; + } else if(((((a16==9)&&((a17==2)&&((a21==10)&&(!(a13==1)||((a3==1)&&!(a24==1))))))&&(a19==1))&&(!(a0==1)&&(((a1==13)&&((((a20==1)&&(((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5)))&&(input==1)))&&!(a27==1))&&(a12==1)))&&(a28==1))))){ + a12 = 1; + a19 = 5; + a21 = 11; + a14 = 0; + a1 = 14; + a16 = 8; + a5 = 4; + a6 = 1; + a9 = 7; + return -1; + } else if(((((!(a27==1)&&((a1==13)&&((input==3)&&((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4))))))&&(a21==10))&&(a19==5))&&((!(a20==1)&&((!(a7==1)&&((a27==1)||(!(a18==1)&&(((a13==1)&&(a23==1))||(a7==1)))))&&(a16==7)))&&(a17==2)))){ + a1 = 12; + a9 = 7; + a19 = 1; + a0 = 0; + a24 = 0; + a12 = 1; + a20 = 1; + a5 = 4; + return -1; + } else if((((a19==5)&&(((a21==11)&&(a13==1))&&(a16==10)))&&((a17==2)&&(((!(a27==1)&&((a3==1)&&(((!(a18==1)&&(((((a9==11)&&((a5==6)&&(a1==12)))||((a9==7)&&((a5==4)&&(a1==13))))||((a9==7)&&((a1==13)&&(a5==5))))&&(input==6)))&&(a3==1))&&(a12==1))))&&!(a7==1))&&(a20==1))))){ + a5 = 5; + a6 = 1; + a19 = 4; + a9 = 10; + a16 = 7; + a21 = 10; + a24 = 0; + a0 = 0; + a1 = 13; + return 25; + } else if((((((a16==7)&&((a0==1)&&((a26==1)&&((!(a3==1)&&((a3==1)&&(a8==1)))&&(a18==1)))))&&(a1==14))&&(a9==7))&&((a17==2)&&((a20==1)&&((a5==5)&&((((a21==11)&&(input==4))&&(a19==5))&&!(a2==1))))))){ + a0 = 1; + a18 = 1; + a19 = 1; + a21 = 10; + a9 = 9; + a22 = 0; + return 25; + } else if((((a21==10)&&((a1==12)&&(((a16==10)&&((a5==6)&&((a6==1)&&((!(a26==1)&&((((a19==4)&&(input==5))&&!(a14==1))&&(a28==1)))&&!(a26==1)))))&&(a17==2))))&&((a9==9)&&(!(a20==1)&&(!(a13==1)||(a2==1)))))){ + a5 = 5; + a3 = 0; + a21 = 12; + a14 = 1; + a1 = 14; + a10 = 1; + a20 = 1; + a16 = 11; + return 23; + } else if(((!(a0==1)&&(!(a0==1)&&((a12==1)&&(((a12==1)&&(((a19==4)&&(((((a9==11)&&((a5==5)&&(a1==13)))||((a9==11)&&((a5==6)&&(a1==13))))||(((a5==4)&&(a1==14))&&(a9==7)))&&(input==6)))&&(a17==2)))&&!(a8==1)))))&&((a16==7)&&((!(a20==1)&&((a23==1)||!(a13==1)))&&(a21==11))))){ + a20 = 1; + a13 = 1; + a9 = 7; + a19 = 1; + a14 = 0; + a5 = 4; + a21 = 10; + a1 = 12; + a18 = 0; + return -1; + } else if((((a1==13)&&((a5==5)&&((a9==7)&&(!(a11==1)&&(((((a21==11)&&((a19==3)&&(input==4)))&&(a16==8))&&!(a23==1))&&(a7==1))))))&&((((((a6==1)&&(a27==1))&&(a4==1))&&(a24==1))&&(a20==1))&&(a17==2)))){ + a5 = 4; + a21 = 10; + a19 = 4; + a9 = 8; + a12 = 0; + a6 = 0; + a4 = 1; + return -1; + } else if((((a26==1)||((a17==2)&&(!(a20==1)&&((a13==1)||!(a28==1)))))&&((a16==10)&&(((a19==4)&&(((a12==1)&&(((!(a14==1)&&((a21==11)&&((input==5)&&(a5==6))))&&(a9==9))&&(a2==1)))&&(a1==14)))&&(a28==1))))){ + a5 = 4; + a19 = 3; + a15 = 0; + a16 = 7; + a7 = 1; + a21 = 10; + a3 = 0; + a9 = 11; + return -1; + } else if((((((a20==1)&&((a24==1)||((a2==1)&&(a23==1))))&&(a16==10))&&(a17==2))&&(((((((a11==1)&&((a1==14)&&((input==5)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))))&&(a19==4))&&(a3==1))&&!(a8==1))&&!(a26==1))&&(a21==11)))){ + a21 = 10; + a5 = 4; + a2 = 1; + a1 = 12; + a13 = 1; + a14 = 0; + a19 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if((((a21==11)&&((a16==10)&&(((a20==1)&&(input==6))&&(a23==1))))&&((a1==13)&&((a8==1)||(((((!(a11==1)||((!(a3==1)||((a19==2)&&(a13==1)))||(a14==1)))&&(a9==9))&&(a5==4))&&(a17==2))||(a7==1)))))){ + a19 = 1; + a9 = 7; + a16 = 7; + a26 = 0; + a21 = 10; + a24 = 0; + a14 = 0; + a1 = 12; + return -1; + } else if((((((((((a20==1)&&((a9==8)&&(((input==6)&&((a5==4)||(a5==5)))&&!(a14==1))))&&(a28==1))&&(a12==1))&&(a17==2))&&(a19==4))&&!(a0==1))&&(a16==7))&&(((((a6==1)&&!(a8==1))||!(a12==1))&&(a1==13))&&(a21==12)))){ + if((a4==1)){ + a21 = 10; + a19 = 5; + a5 = 6; + a9 = 11; + a11 = 1; + a27 = 0; + a1 = 14; + a20 = 0; + }else{ + a7 = 0; + a13 = 1; + a11 = 1; + a21 = 11; + a9 = 7; + a5 = 5; + a16 = 9; + a19 = 2; + } + return 23; + } else if((((a20==1)&&((a16==10)&&((a6==1)&&(!(a26==1)&&((((((a5==5)||(a5==6))&&(input==4))&&(a19==4))&&!(a8==1))&&(a17==2))))))&&((((a8==1)||((a1==12)&&((a9==8)&&((a23==1)&&(a21==11)))))&&!(a14==1))||!(a23==1)))){ + a24 = 0; + a16 = 7; + a19 = 1; + a14 = 0; + a9 = 7; + a5 = 4; + a11 = 1; + a21 = 10; + return -1; + } else if((((!(a3==1)||((a16==11)&&((a12==1)&&(((a23==1)&&(a17==2))&&(a20==1)))))&&!(a7==1))&&((a28==1)&&((a21==11)&&(!(a27==1)&&((a6==1)&&((input==4)&&(((a19==2)&&(((a5==5)&&(a1==12))&&(a9==7)))||(((a19==1)&&(((a1==14)&&(a5==6))&&(a9==11)))||((a19==2)&&(((a1==12)&&(a5==4))&&(a9==7)))))))))))){ + a21 = 10; + a24 = 0; + a16 = 7; + a5 = 4; + a1 = 12; + a19 = 1; + a2 = 1; + a6 = 1; + a9 = 7; + return -1; + } else if((((a16==10)&&((a9==10)&&((a17==2)&&((((((a5==5)||(a5==6))&&(input==4))&&(a23==1))&&(a1==12))&&(a19==3)))))&&(!(a26==1)&&((!(a0==1)&&(((a2==1)&&(((a13==1)&&(a21==11))&&!(a20==1)))||(a18==1)))&&(a12==1))))){ + a9 = 8; + a19 = 1; + a25 = 0; + a21 = 10; + a20 = 1; + a29 = 0; + a24 = 1; + a16 = 7; + a5 = 5; + return 21; + } else if(((((((((a6==1)&&!(a14==1))||(a7==1))||!(a28==1))&&!(a26==1))&&(a5==5))&&(a21==12))&&(((a17==2)&&((a19==1)&&((a1==14)&&((a9==9)&&(((a11==1)&&((input==5)&&(a16==9)))&&(a3==1))))))&&!(a20==1)))){ + a5 = 4; + a0 = 1; + a20 = 1; + a16 = 7; + a24 = 1; + a4 = 1; + a9 = 8; + a21 = 10; + return -1; + } else if((((a16==7)&&(((a1==13)&&((a9==10)&&((((input==6)&&(a19==1))&&(a17==2))&&(a6==1))))&&(a5==5)))&&((!(a2==1)||((a6==1)&&((a12==1)&&(((a28==1)&&((a23==1)&&!(a20==1)))&&!(a14==1)))))&&(a21==11)))){ + a19 = 2; + a23 = 1; + a8 = 0; + a20 = 1; + a5 = 4; + a21 = 10; + a9 = 9; + a6 = 1; + return 25; + } else if((((a28==1)&&(((a16==8)&&((!(a14==1)&&((input==4)&&((a5==4)||(a5==5))))&&(a21==11)))&&!(a7==1)))&&(((a17==2)&&(((a6==1)&&((a24==1)||(((a19==5)&&((a23==1)&&(a1==12)))&&!(a20==1))))&&(a9==11)))||(a8==1)))){ + a6 = 0; + a19 = 2; + a20 = 1; + a29 = 0; + a5 = 5; + a28 = 0; + a9 = 7; + a21 = 10; + a16 = 7; + return -1; + } else if(((((a9==9)&&((a1==14)&&(((a23==1)&&((input==5)&&((a5==6)||((a5==4)||(a5==5)))))&&(a21==11))))&&!(a7==1))&&(((a12==1)&&((((a4==1)||(((a17==2)&&((a28==1)&&(a16==10)))&&(a19==2)))&&(a20==1))&&(a12==1)))||(a24==1)))){ + a1 = 13; + a21 = 10; + a11 = 1; + a16 = 7; + a12 = 1; + a6 = 1; + a5 = 4; + return 25; + } else if(((!(a26==1)&&((a1==12)&&((!(a27==1)&&((!(a18==1)&&(!(a18==1)&&((a19==1)&&(((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&!(a8==1)))))&&(a16==7)))&&(a17==2))))&&((a21==10)&&((a9==8)&&(!(a20==1)&&((a12==1)&&(a28==1))))))){ + a9 = 7; + a20 = 1; + a6 = 1; + a3 = 1; + a5 = 4; + a26 = 0; + return -1; + } else if(((((a19==4)&&((a6==1)&&((a17==2)&&(((input==5)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&!(a27==1)))))&&(a16==7))&&(!(a20==1)&&((a13==1)&&((((!(a0==1)&&((a2==1)&&(a1==13)))||!(a3==1))&&(a21==12))||(a7==1)))))){ + a9 = 7; + a5 = 4; + a7 = 0; + a11 = 1; + a1 = 12; + a21 = 10; + a12 = 1; + a20 = 1; + a19 = 1; + return -1; + } else if((((((((a18==1)||((a1==13)&&(a2==1)))||!(a2==1))||(a24==1))&&(a21==12))&&(a5==4))&&(((((((((input==1)&&(a17==2))&&!(a18==1))&&(a16==10))&&(a11==1))&&!(a0==1))&&(a20==1))&&(a9==10))&&(a19==1)))){ + a9 = 9; + a3 = 1; + a19 = 2; + a0 = 0; + a21 = 10; + a16 = 7; + a5 = 5; + return 25; + } else if((((a2==1)&&(((a16==11)&&((a6==1)&&((((((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(input==5))&&(a2==1))&&(a20==1))))&&(a19==5)))&&(((!(a14==1)&&(((a1==13)&&((a21==11)&&(a13==1)))&&(a17==2)))&&(a28==1))||!(a2==1)))){ + a1 = 12; + a19 = 1; + a5 = 4; + a18 = 0; + a14 = 0; + a23 = 1; + a16 = 7; + a9 = 7; + a21 = 10; + return -1; + } else if((((a13==1)&&((a19==3)&&((a21==11)&&(((a23==1)&&(!(a26==1)&&((a23==1)&&((a17==2)&&(input==3)))))&&(a5==6)))))&&((((((a20==1)&&((a1==12)&&(a12==1)))&&(a28==1))||!(a6==1))&&(a16==10))&&(a9==8)))){ + a16 = 7; + a2 = 1; + a21 = 10; + a28 = 1; + a9 = 7; + a19 = 1; + a5 = 4; + return -1; + } else if(((((a19==5)&&(((a17==2)&&((((((input==4)&&((a5==4)||(a5==5)))&&!(a27==1))&&(a21==10))&&(a23==1))&&!(a27==1)))&&!(a8==1)))&&(a1==14))&&(!(a20==1)&&(!(a6==1)||((a16==9)&&(((a2==1)&&(a9==9))&&!(a24==1))))))){ + if((a28==1)){ + a10 = 0; + a5 = 5; + a20 = 1; + a16 = 7; + a26 = 1; + a6 = 0; + a19 = 2; + a1 = 12; + a9 = 7; + }else{ + a24 = 1; + a9 = 7; + a5 = 5; + a21 = 11; + a20 = 1; + a10 = 1; + a23 = 0; + } + return 21; + } else if(((!(a20==1)&&((a9==9)&&((((((a6==1)&&(((a19==4)&&(input==6))&&(a16==9)))&&!(a14==1))&&!(a24==1))&&(a5==6))&&(a21==10))))&&(((!(a24==1)&&(!(a26==1)&&((a23==1)&&(a23==1))))&&(a1==13))&&(a17==2)))){ + a1 = 12; + a21 = 12; + a13 = 0; + a16 = 10; + a19 = 2; + a12 = 0; + return 23; + } else if((((a1==14)&&((a16==9)&&(((a2==1)&&(((((a21==11)&&(input==4))&&!(a24==1))&&!(a0==1))&&(a19==3)))&&(a11==1))))&&(!(a20==1)&&(!(a12==1)||(!(a4==1)&&((a17==2)&&(((a28==1)&&(a9==8))&&(a5==6)))))))){ + if((a25==1)){ + a19 = 1; + a1 = 13; + a20 = 1; + a16 = 7; + a21 = 10; + a9 = 11; + a18 = 1; + a5 = 5; + a24 = 1; + a8 = 1; + }else{ + a27 = 1; + a5 = 5; + a10 = 0; + a21 = 12; + a1 = 12; + a9 = 11; + a28 = 0; + a16 = 11; + a20 = 1; + a19 = 1; + } + return 26; + } else if((((a17==2)&&(((a0==1)&&(!(a2==1)&&((a20==1)&&((a23==1)&&!(a2==1)))))&&(a1==12)))&&((a16==10)&&(((a9==7)&&(((((a27==1)&&(((a5==4)||(a5==5))&&(input==6)))&&(a7==1))&&(a21==11))&&!(a6==1)))&&(a19==1))))){ + a9 = 10; + a16 = 11; + a19 = 4; + a10 = 0; + a4 = 1; + a5 = 4; + a2 = 0; + a21 = 12; + return -1; + } else if((((!(a4==1)&&((a16==11)&&((((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&(a17==2))&&!(a18==1))))&&!(a20==1))&&((a1==13)&&(((a9==10)&&((a19==2)&&(((!(a26==1)&&(!(a18==1)&&(a11==1)))&&(a13==1))&&(a21==10))))||(a18==1))))){ + a5 = 6; + a16 = 7; + a10 = 1; + a20 = 1; + a9 = 9; + a1 = 12; + a7 = 1; + return -1; + } else if((((((!(a14==1)&&((a12==1)&&((((((a5==5)||(a5==6))&&(input==5))&&(a9==7))&&(a1==12))&&!(a0==1))))&&(a28==1))&&(a17==2))&&(a16==10))&&(!(a20==1)&&(((((a13==1)&&(a21==12))||(a26==1))&&(a19==1))&&!(a8==1))))){ + if((a0==1)){ + a20 = 1; + a21 = 10; + a5 = 5; + a9 = 8; + a16 = 7; + a1 = 14; + a29 = 1; + a6 = 0; + }else{ + a16 = 8; + a5 = 6; + a10 = 1; + a21 = 11; + a9 = 11; + a25 = 0; + a19 = 5; + a20 = 1; + a1 = 13; + a13 = 0; + } + return -1; + } else if((((a21==12)&&((a20==1)&&((a19==5)&&((a9==11)&&((a17==2)&&((a16==10)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&(a23==1))))))))&&(((((a1==14)&&((a14==1)||(!(a27==1)&&(a28==1))))||(a18==1))&&!(a0==1))||(a8==1)))){ + a16 = 8; + a8 = 0; + a5 = 4; + a9 = 9; + a28 = 1; + return 22; + } else if(((((((a12==1)&&((input==6)&&((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a5==4)&&(a9==11)))))&&!(a24==1))&&!(a20==1))&&(a17==2))&&(((((a19==1)&&(((((a12==1)&&(a28==1))&&(a12==1))||(a26==1))&&(a1==13)))&&(a16==8))&&(a3==1))&&(a21==11)))){ + a19 = 5; + a4 = 0; + a9 = 10; + a13 = 1; + a5 = 6; + a21 = 10; + a20 = 1; + a0 = 0; + return -1; + } else if((((a16==7)&&((!(a18==1)&&((a11==1)&&(a21==11)))&&(a19==2)))&&(((a5==4)&&((a17==2)&&((!(a14==1)&&(((a13==1)&&((((input==5)&&(a1==14))&&(a13==1))&&(a23==1)))&&(a3==1)))&&(a20==1))))&&(a9==11)))){ + a9 = 7; + a19 = 1; + a6 = 1; + a28 = 1; + a4 = 0; + a21 = 10; + a1 = 12; + return -1; + } else if((((((a3==1)&&(((((a13==1)&&(((a5==5)||(a5==6))&&(input==4)))&&(a6==1))&&(a9==10))&&(a13==1)))&&(a23==1))&&(a1==13))&&(!(a20==1)&&((a16==9)&&(((a19==5)&&(((a21==11)&&(a11==1))&&!(a4==1)))&&(a17==2)))))){ + a19 = 1; + a10 = 1; + a13 = 0; + a16 = 10; + a22 = 1; + a9 = 11; + a5 = 6; + return -1; + } else if((((a9==11)&&(((((!(a14==1)&&((a17==2)&&((input==1)&&!(a20==1))))&&(a19==1))&&(a16==9))&&!(a27==1))&&(a6==1)))&&(((a7==1)||((a21==11)&&((a1==12)&&(((a13==1)&&(a5==6))||(a14==1)))))&&(a23==1)))){ + a20 = 1; + a27 = 1; + a21 = 10; + a9 = 7; + a16 = 7; + a22 = 0; + a28 = 0; + return 22; + } else if(((((a21==11)&&((((a16==9)&&((a28==1)&&(a6==1)))||(a24==1))||(a24==1)))&&(a17==2))&&((a13==1)&&((!(a18==1)&&(!(a20==1)&&((a19==4)&&(((((a5==6)&&(a1==12))&&(a9==11))||(((a5==4)&&(a1==13))&&(a9==7)))&&(input==4)))))&&!(a24==1))))){ + if((a21==11)){ + a16 = 7; + a29 = 1; + a10 = 1; + a1 = 12; + a19 = 1; + a5 = 4; + a7 = 1; + a20 = 1; + a21 = 10; + a9 = 10; + }else{ + a19 = 2; + a18 = 1; + a21 = 12; + a9 = 9; + a4 = 1; + a25 = 0; + a5 = 5; + a16 = 10; + a1 = 12; + a20 = 1; + } + return -1; + } else if(((((a17==2)&&((a21==11)&&((a14==1)&&((a16==8)&&(input==6)))))&&(a5==4))&&((a20==1)&&(!(a13==1)&&(((a19==3)&&(!(a13==1)&&((a1==13)&&(((a18==1)&&((a9==11)&&(a13==1)))&&!(a12==1)))))&&!(a2==1)))))){ + a9 = 7; + a19 = 4; + a15 = 0; + a5 = 6; + a10 = 1; + a16 = 7; + a23 = 0; + a21 = 12; + return 22; + } else if((((a21==11)&&(((a9==9)&&((a19==1)&&((!(a23==1)||((a12==1)||!(a3==1)))||(a24==1))))||(a7==1)))&&(((a16==9)&&(((a6==1)&&((((a5==5)&&(input==3))&&(a28==1))&&(a17==2)))&&!(a20==1)))&&(a1==12)))){ + a1 = 13; + a22 = 1; + a29 = 1; + a21 = 12; + a9 = 10; + a19 = 2; + a5 = 6; + return 25; + } else if(((((a17==2)&&(((a11==1)&&(a2==1))&&(a20==1)))&&(a19==2))&&(((a1==14)&&((a21==12)&&((a13==1)&&(((a2==1)&&((((input==3)&&((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9))))&&(a28==1))&&!(a27==1)))&&(a13==1)))))&&(a16==11)))){ + a1 = 12; + a13 = 1; + a19 = 4; + a11 = 1; + a5 = 5; + a21 = 10; + a16 = 8; + a9 = 7; + a4 = 0; + return 22; + } else if(((((((a7==1)||((((((a19==3)&&((a2==1)&&(a16==8)))&&(a1==14))||!(a11==1))&&(a21==12))&&(a20==1)))||!(a13==1))||(a14==1))&&(a17==2))&&((a28==1)&&(((input==6)&&((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9))))&&!(a7==1))))){ + a13 = 1; + a7 = 0; + a9 = 9; + a16 = 7; + a0 = 0; + a5 = 4; + a19 = 2; + a1 = 13; + a21 = 10; + return 25; + } else if((((a13==1)&&(!(a7==1)&&(!(a24==1)&&((a13==1)&&((((a17==2)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a20==1))&&(a1==12))))))&&((a16==10)&&((((a19==5)&&(((a2==1)&&(a28==1))&&(a9==7)))&&(a21==10))||!(a2==1))))){ + a1 = 14; + a16 = 8; + a9 = 9; + a0 = 1; + a19 = 4; + a23 = 0; + a5 = 6; + a25 = 1; + return -1; + } else if((((a1==14)&&((a23==1)&&((a6==1)&&((a9==11)&&(((a16==9)&&((a21==10)&&((a11==1)&&(!(a0==1)&&((input==4)&&((a5==5)||(a5==6)))))))&&!(a20==1))))))&&((a19==3)&&(!(a3==1)||((a17==2)&&(!(a11==1)||(a2==1))))))){ + a1 = 12; + a16 = 7; + a9 = 8; + a28 = 0; + a5 = 6; + a20 = 1; + a22 = 0; + a19 = 2; + return 21; + } else if(((((a19==2)&&((a8==1)||((a2==1)&&(((a1==12)&&((((a16==9)&&((a23==1)&&!(a8==1)))&&(a17==2))&&(a13==1)))&&!(a20==1)))))&&(a21==11))&&(((a6==1)&&(((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9)))&&(input==5)))&&!(a0==1)))){ + if((a4==1)){ + a5 = 6; + a19 = 1; + a22 = 1; + a16 = 7; + a7 = 1; + a21 = 10; + a9 = 10; + a6 = 0; + a20 = 1; + }else{ + a5 = 6; + a15 = 0; + a9 = 7; + a23 = 0; + a21 = 10; + a6 = 0; + a16 = 7; + a20 = 1; + } + return -1; + } else if((((a9==7)&&(!(a20==1)&&((a5==5)&&((!(a0==1)&&(((a17==2)&&(input==3))&&(a12==1)))&&(a3==1)))))&&((a19==2)&&((a13==1)&&(((a21==12)&&(((a13==1)&&((a1==12)&&(a11==1)))&&!(a14==1)))&&(a16==9)))))){ + a20 = 1; + a6 = 0; + a21 = 10; + a1 = 13; + a19 = 1; + a7 = 1; + a16 = 7; + a9 = 8; + a24 = 1; + return -1; + } else if(((((!(a23==1)&&(((a0==1)&&((a17==2)&&((a1==12)&&(a2==1))))&&(a16==10)))&&!(a11==1))&&(a14==1))&&(((((a21==11)&&(!(a11==1)&&((a5==6)&&((a9==10)&&(input==3)))))&&(a19==4))&&(a20==1))&&!(a13==1)))){ + a19 = 2; + a6 = 0; + a16 = 7; + a25 = 0; + a21 = 10; + return -1; + } else if((((a16==8)&&((a9==7)&&((a21==10)&&((a5==4)&&(((a1==13)&&(!(a2==1)||(a3==1)))&&!(a20==1))))))&&(!(a0==1)&&(!(a24==1)&&((a17==2)&&(((!(a14==1)&&((input==1)&&(a19==5)))&&!(a7==1))&&!(a18==1))))))){ + a5 = 5; + a6 = 1; + a16 = 7; + a20 = 1; + a19 = 2; + a27 = 0; + a9 = 9; + return 25; + } else if(((!(a20==1)&&((a16==9)&&(!(a27==1)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==5)))))&&(((((((!(a23==1)||(!(a14==1)&&((a23==1)&&!(a0==1))))&&(a1==14))&&(a13==1))&&!(a24==1))&&(a19==4))&&(a21==12))&&(a17==2)))){ + if((a4==1)){ + a3 = 0; + a9 = 8; + a0 = 1; + a19 = 2; + a16 = 7; + a4 = 1; + a1 = 12; + a21 = 10; + a5 = 4; + a20 = 1; + }else{ + a20 = 1; + a9 = 10; + a19 = 5; + a24 = 1; + a16 = 11; + a1 = 13; + a10 = 0; + a5 = 5; + a21 = 10; + a27 = 1; + } + return -1; + } else if((((a8==1)||(((((((a11==1)&&(a28==1))&&!(a7==1))&&(a12==1))&&(a17==2))&&(a19==4))&&!(a27==1)))&&(((((a20==1)&&((a21==10)&&((input==4)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))))&&(a16==7))&&!(a24==1))&&(a1==13)))){ + a13 = 1; + a21 = 11; + a5 = 5; + a18 = 0; + a0 = 0; + a9 = 11; + a1 = 14; + return 25; + } else if(((((((((((a3==1)&&!(a20==1))||!(a23==1))&&(a1==12))&&(a17==2))||(a27==1))&&(a21==11))||!(a3==1))||!(a23==1))&&(((a19==1)&&((!(a26==1)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==4)))&&(a16==9)))&&!(a24==1)))){ + a20 = 1; + a9 = 10; + a21 = 10; + a10 = 0; + a14 = 1; + a0 = 1; + a5 = 5; + a16 = 7; + return -1; + } else if(((((((a23==1)&&((a21==11)&&(a11==1)))||!(a28==1))&&(a20==1))||(a7==1))&&((a23==1)&&((a5==5)&&(((((((a17==2)&&((input==5)&&(a16==10)))&&!(a8==1))&&(a19==2))&&(a9==10))&&(a28==1))&&(a1==12)))))){ + a7 = 0; + a28 = 1; + a9 = 7; + a16 = 7; + a14 = 0; + a21 = 10; + a19 = 1; + a5 = 4; + return -1; + } else if((((a14==1)||(((a13==1)&&((a1==14)&&(((((a17==2)&&(!(a20==1)&&(a6==1)))&&(a5==5))||(a26==1))&&(a2==1))))||(a7==1)))&&(!(a26==1)&&((a19==3)&&((a21==11)&&((a9==10)&&((input==4)&&(a16==7)))))))){ + a2 = 1; + a5 = 4; + a21 = 10; + a9 = 7; + a20 = 1; + a14 = 0; + a1 = 12; + a19 = 1; + a13 = 1; + return -1; + } else if((((a8==1)||((((((a26==1)||((a9==11)&&(((a1==12)&&((a6==1)&&(a21==11)))&&(a17==2))))&&!(a7==1))&&(a19==3))||!(a11==1))&&!(a14==1)))&&((((a16==9)&&((input==5)&&((a5==6)||((a5==4)||(a5==5)))))&&(a20==1))&&!(a18==1)))){ + a12 = 1; + a19 = 1; + a16 = 7; + a13 = 1; + a5 = 4; + a21 = 10; + a9 = 7; + return -1; + } else if((((a3==1)&&(((a17==2)&&((a28==1)&&(((a1==14)&&(input==6))&&(a9==11))))&&!(a20==1)))&&((a16==9)&&((a5==5)&&((a12==1)&&((((a18==1)||((a26==1)||((a21==12)&&(a28==1))))&&!(a7==1))&&(a19==3))))))){ + a4 = 1; + a20 = 1; + a16 = 7; + a7 = 1; + a9 = 9; + a13 = 0; + a19 = 1; + a21 = 10; + return -1; + } else if(((((a19==1)&&(((((a18==1)||(a6==1))&&(a17==2))&&(a9==11))&&(a21==12)))&&!(a8==1))&&((((a6==1)&&((!(a4==1)&&(((a16==8)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))&&!(a20==1)))&&(a6==1)))&&(a1==13))&&(a12==1)))){ + if((a11==1)){ + a9 = 7; + a5 = 5; + a18 = 1; + a21 = 10; + a16 = 7; + a11 = 0; + a20 = 1; + }else{ + a29 = 0; + a20 = 1; + a9 = 7; + a16 = 7; + a6 = 0; + a21 = 10; + a5 = 4; + } + return -1; + } else if(((!(a6==1)||(!(a4==1)&&((a13==1)&&(((((((a23==1)&&(a20==1))||(a0==1))&&(a1==13))&&(a21==11))&&(a16==8))&&(a17==2)))))&&(!(a26==1)&&((a9==11)&&((a19==5)&&(((input==3)&&((a5==4)||(a5==5)))&&!(a14==1))))))){ + a1 = 12; + a13 = 1; + a9 = 7; + a19 = 1; + a21 = 10; + a6 = 1; + a5 = 4; + a16 = 7; + return -1; + } else if((((((a14==1)||((((a23==1)&&(a2==1))&&(a17==2))&&!(a20==1)))||!(a6==1))&&(a12==1))&&(!(a8==1)&&(((a21==11)&&((((a1==14)&&((((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==3)))&&(a19==4))&&(a16==7)))&&(a2==1))))){ + a1 = 12; + a21 = 10; + a19 = 1; + a18 = 0; + a6 = 1; + a5 = 4; + a8 = 0; + a20 = 1; + a9 = 7; + return -1; + } else if(((!(a18==1)&&(!(a8==1)&&(!(a3==1)||((!(a0==1)&&((a19==4)&&(((a3==1)&&(a17==2))&&(a21==11))))&&(a9==7)))))&&((a2==1)&&((((((input==1)&&((a5==4)||(a5==5)))&&!(a18==1))&&(a1==14))&&(a16==9))&&!(a20==1))))){ + a7 = 1; + a20 = 1; + a29 = 1; + a5 = 6; + a1 = 13; + a8 = 1; + a21 = 10; + a19 = 1; + a16 = 7; + return 21; + } else if(((((a9==10)&&(((!(a8==1)&&(((a5==5)||(a5==6))&&(input==6)))&&(a20==1))&&!(a8==1)))&&(a17==2))&&((a16==9)&&((a1==12)&&((((!(a8==1)&&((a28==1)&&((a28==1)||(a0==1))))||(a14==1))&&(a21==11))&&(a19==5)))))){ + a21 = 10; + a0 = 0; + a19 = 1; + a28 = 1; + a9 = 7; + a5 = 4; + a4 = 0; + a16 = 7; + return -1; + } else if(((!(a6==1)&&((a24==1)&&(!(a13==1)&&((a17==2)&&(!(a11==1)&&((input==6)&&(((a19==3)&&(((a1==12)&&(a5==5))&&(a9==7)))||((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==2))||((a19==3)&&((a9==7)&&((a5==4)&&(a1==12))))))))))))&&((a14==1)&&(((((a28==1)&&(a16==8))&&!(a28==1))&&!(a20==1))&&(a21==11))))){ + a5 = 5; + a6 = 0; + a20 = 1; + a21 = 10; + a1 = 12; + a19 = 1; + a9 = 7; + a16 = 7; + a28 = 0; + a2 = 0; + return -1; + } else if(((((((((input==6)&&((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4))))&&(a23==1))&&(a16==9))&&!(a18==1))&&!(a14==1))&&(a1==14))&&((a19==3)&&((a17==2)&&((!(a23==1)||(!(a13==1)||(!(a3==1)||((a21==11)&&(a23==1)))))&&!(a20==1)))))){ + a19 = 5; + a9 = 9; + a5 = 4; + a16 = 11; + a20 = 1; + a21 = 12; + a4 = 1; + a0 = 1; + a26 = 1; + return -1; + } else if(((((a20==1)&&(((a19==5)&&((((a2==1)&&(a12==1))&&(a12==1))&&(a21==12)))&&!(a26==1)))&&(a5==4))&&((((a17==2)&&((!(a8==1)&&(((input==6)&&(a16==7))&&(a2==1)))&&(a1==13)))&&(a9==8))&&!(a24==1)))){ + a21 = 10; + a3 = 1; + a16 = 8; + a19 = 3; + a20 = 0; + a13 = 1; + a9 = 11; + a5 = 5; + a14 = 0; + return 25; + } else if((((a1==14)&&((a17==2)&&((((a4==1)||(a11==1))&&!(a18==1))&&(a19==5))))&&((a21==10)&&(((a2==1)&&((a28==1)&&((((a16==8)&&(((input==3)&&!(a20==1))&&(a5==4)))&&(a23==1))&&(a6==1))))&&(a9==11))))){ + a19 = 2; + a16 = 7; + a18 = 0; + a20 = 1; + a1 = 13; + a9 = 9; + a28 = 1; + a24 = 0; + return -1; + } else if(((((a26==1)||(((a24==1)||((a17==2)&&(a12==1)))&&(a28==1)))&&(a6==1))&&((((a21==10)&&((a20==1)&&(((((a19==3)&&((a9==11)&&((a1==14)&&(a5==6))))||((a19==4)&&((a9==7)&&((a1==12)&&(a5==4)))))&&(input==4))&&(a16==11))))&&!(a7==1))&&(a11==1)))){ + a11 = 1; + a8 = 0; + a16 = 7; + a19 = 1; + a5 = 4; + a1 = 12; + a12 = 1; + a9 = 7; + return -1; + } else if((((((((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&(a20==1))&&(a17==2))&&(a21==12))&&(a19==5))&&(a6==1))&&(!(a18==1)&&(((((a1==13)&&((a9==11)&&(!(a27==1)&&((a12==1)&&(a16==10)))))&&!(a4==1))||(a0==1))&&!(a26==1))))){ + a12 = 1; + a21 = 10; + a9 = 10; + a16 = 8; + a1 = 12; + a2 = 1; + a28 = 1; + a5 = 4; + return 26; + } else if((((!(a8==1)&&((a21==11)&&(((a20==1)&&((((a12==1)&&((input==6)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))))&&(a17==2))&&!(a14==1)))&&!(a0==1))))&&(a16==11))&&((a19==3)&&((a23==1)&&(((a12==1)&&(a1==14))||!(a3==1)))))){ + a1 = 13; + a16 = 8; + a21 = 12; + a11 = 1; + a9 = 7; + a14 = 0; + a5 = 5; + a0 = 0; + a19 = 5; + return 25; + } else if((((((a3==1)&&(!(a20==1)&&(((a23==1)&&((input==3)&&((((a5==6)&&(a1==12))&&(a9==11))||(((a5==4)&&(a1==13))&&(a9==7)))))&&(a16==8))))&&(a2==1))&&(a19==5))&&(!(a11==1)||((((a17==2)&&((a28==1)&&(a12==1)))&&(a21==12))&&!(a26==1))))){ + a21 = 11; + a16 = 7; + a25 = 0; + a19 = 3; + a2 = 0; + a9 = 10; + a1 = 12; + a5 = 5; + a29 = 1; + return -1; + } else if(((((a1==12)&&(((!(a8==1)&&(!(a8==1)&&(((a7==1)||(a2==1))&&(a9==7))))&&(a2==1))&&(a21==11)))&&!(a20==1))&&(((a19==3)&&(((((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&(a11==1))&&(a17==2))&&!(a26==1)))&&(a16==7)))){ + a13 = 1; + a20 = 1; + a3 = 1; + a5 = 4; + a19 = 1; + a21 = 10; + a7 = 0; + return -1; + } else if((((a21==12)&&(((a9==9)&&(!(a4==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5))))&&(a12==1)))&&(((a1==14)&&((((!(a13==1)||((!(a0==1)&&((a13==1)&&!(a20==1)))||(a8==1)))&&!(a27==1))&&(a17==2))&&(a19==2)))&&(a16==9)))){ + a20 = 1; + a21 = 10; + a5 = 5; + a15 = 1; + a13 = 0; + a16 = 7; + a19 = 1; + a26 = 1; + a9 = 7; + return -1; + } else if(((!(a27==1)&&((!(a18==1)&&(((a1==12)&&((a12==1)&&((input==6)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))))&&(a11==1)))&&(a16==8)))&&(!(a24==1)&&((a17==2)&&((a20==1)&&((!(a13==1)||((a3==1)&&(a21==11)))&&(a19==2))))))){ + a9 = 7; + a5 = 4; + a6 = 1; + a21 = 10; + a16 = 7; + a0 = 0; + a19 = 1; + a12 = 1; + return -1; + } else if((((a28==1)&&(((((((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a20==1))&&(a9==9))&&(a16==7))&&(a3==1))&&!(a27==1)))&&(((a1==12)&&(((a19==2)&&((((a2==1)&&!(a4==1))||!(a12==1))&&(a17==2)))&&(a13==1)))&&(a21==12)))){ + a9 = 7; + a20 = 1; + a0 = 0; + a5 = 4; + a13 = 1; + a27 = 0; + a19 = 1; + a21 = 10; + return -1; + } else if(((((a21==11)&&(((a13==1)&&(((((input==3)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&!(a26==1))&&(a6==1))&&!(a7==1)))&&(a16==9)))&&(a1==12))&&(((a20==1)&&((a19==1)&&(((a12==1)&&!(a24==1))||(a26==1))))&&(a17==2)))){ + a0 = 0; + a12 = 1; + a9 = 7; + a5 = 4; + a16 = 7; + a21 = 10; + a24 = 0; + return -1; + } else if((((((((a3==1)&&((a12==1)&&(a1==14)))&&(a19==3))&&(a21==12))&&!(a27==1))&&!(a14==1))&&(((a3==1)&&((((a20==1)&&(((input==3)&&((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4))))&&!(a7==1)))&&(a17==2))&&(a16==10)))&&!(a18==1)))){ + a12 = 1; + a21 = 10; + a1 = 12; + a19 = 1; + a6 = 1; + a9 = 7; + a13 = 1; + a16 = 7; + a5 = 4; + return -1; + } return calculate_output55(input); + } + + int calculate_output55(int input) { + if(((((((((a5==4)||(a5==5))&&(input==4))&&(a11==1))&&!(a8==1))&&(a17==2))&&(a9==11))&&((a16==9)&&(((!(a20==1)&&((a19==4)&&(!(a4==1)&&(!(a2==1)||((a12==1)&&(!(a2==1)||(a11==1)))))))&&(a21==11))&&(a1==12))))){ + a3 = 0; + a5 = 5; + a8 = 1; + a21 = 12; + a19 = 1; + return -1; + } else if(((((a20==1)&&((((a23==1)&&(((input==5)&&((a5==5)||(a5==6)))&&!(a7==1)))&&(a16==9))&&(a1==12)))&&(a9==11))&&((((a21==11)&&((!(a3==1)||(((a17==2)&&(a13==1))||!(a23==1)))||(a26==1)))&&(a23==1))&&(a19==2)))){ + a19 = 3; + a1 = 13; + a21 = 10; + a9 = 9; + a5 = 6; + a27 = 0; + a6 = 1; + a16 = 11; + a23 = 1; + return 25; + } else if((((a19==5)&&(((a12==1)&&(a11==1))&&(a21==12)))&&((((a9==11)&&(((a3==1)&&((a11==1)&&((a17==2)&&(!(a24==1)&&((a28==1)&&(((input==5)&&((a5==5)||(a5==6)))&&(a13==1)))))))&&(a16==11)))&&(a1==12))&&(a20==1)))){ + a9 = 10; + a1 = 14; + a21 = 11; + a4 = 0; + a5 = 5; + a8 = 0; + a16 = 9; + a19 = 4; + a7 = 0; + return 21; + } else if((((a17==2)&&(((((((a2==1)&&(a16==8))&&(a1==12))&&!(a18==1))&&(a21==11))&&!(a20==1))&&(a3==1)))&&((!(a24==1)&&((((!(a27==1)&&((input==4)&&((a5==6)||((a5==4)||(a5==5)))))&&(a9==8))&&(a12==1))&&(a19==3)))&&(a6==1)))){ + a9 = 7; + a19 = 1; + a14 = 0; + a3 = 1; + a16 = 7; + a21 = 10; + a20 = 1; + a5 = 4; + a7 = 0; + return -1; + } else if(((((a20==1)&&(!(a18==1)&&(((a17==2)&&(!(a14==1)&&((a21==12)&&(((a2==1)&&(!(a18==1)&&((a16==7)&&(input==6))))&&(a5==5)))))&&(a9==9))))&&(a19==3))&&(!(a13==1)||(((a12==1)&&(a1==13))||!(a2==1))))){ + a19 = 5; + a5 = 4; + a11 = 1; + a18 = 0; + a21 = 10; + a16 = 9; + a9 = 8; + a27 = 0; + return 21; + } else if((((a24==1)||((a21==12)&&((!(a2==1)||((a28==1)&&(a19==3)))||!(a11==1))))&&((a1==14)&&(((!(a20==1)&&((((a23==1)&&((input==4)&&((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4)))))&&(a16==10))&&!(a24==1)))&&(a17==2))&&(a23==1))))){ + a24 = 1; + a16 = 9; + a5 = 6; + a21 = 10; + a9 = 7; + a19 = 5; + a15 = 0; + a20 = 1; + a1 = 12; + a29 = 1; + return -1; + } else if(((((a1==14)&&((a23==1)&&((((a23==1)&&(((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))&&(input==6)))&&!(a20==1))&&!(a27==1))))&&(a21==12))&&((((a12==1)&&((!(a4==1)&&((a28==1)&&(a12==1)))&&(a16==9)))&&(a19==4))&&(a17==2)))){ + a3 = 0; + a20 = 1; + a19 = 1; + a16 = 7; + a13 = 0; + a21 = 10; + a1 = 13; + a5 = 6; + a22 = 1; + a9 = 9; + return -1; + } else if((((a16==9)&&((a9==7)&&(((a28==1)&&((((a20==1)&&(input==5))&&!(a27==1))&&(a17==2)))&&!(a18==1))))&&((a19==4)&&(((a5==4)&&((((a21==12)&&((a11==1)&&(a13==1)))&&(a28==1))||!(a2==1)))&&(a1==13))))){ + if((a12==1)){ + a23 = 1; + a9 = 10; + a3 = 1; + a5 = 5; + a20 = 0; + a16 = 8; + a28 = 1; + a19 = 3; + a1 = 12; + a21 = 10; + }else{ + a16 = 10; + a9 = 9; + a21 = 10; + a14 = 0; + a5 = 5; + a18 = 0; + a19 = 5; + a28 = 1; + } + return 21; + } else if((((!(a8==1)&&((!(a14==1)&&(!(a8==1)&&(((a5==4)||(a5==5))&&(input==1))))&&(a1==13)))&&(a19==4))&&((((a17==2)&&((a20==1)&&(((((a23==1)||!(a23==1))&&(a23==1))&&!(a8==1))&&(a21==10))))&&(a16==8))&&(a9==9)))){ + a16 = 10; + a12 = 1; + a9 = 11; + a5 = 5; + a13 = 1; + a19 = 1; + a14 = 0; + a1 = 12; + return 25; + } else if(((((a19==5)&&((((a17==2)&&((a3==1)&&!(a2==1)))&&(a16==11))&&(a14==1)))&&(a8==1))&&((!(a12==1)&&((a20==1)&&(((a4==1)&&((a21==11)&&((input==6)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))))&&(a1==14))))&&!(a23==1)))){ + a21 = 10; + a10 = 1; + a9 = 10; + a20 = 0; + a5 = 5; + a12 = 0; + a19 = 2; + a16 = 8; + a14 = 1; + return 25; + } else if(((((a1==14)&&((a21==11)&&(((a28==1)&&(!(a2==1)||(a23==1)))||(a27==1))))&&(a19==2))&&(!(a20==1)&&(((((a11==1)&&(((((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(input==6))&&(a28==1)))&&(a23==1))&&(a17==2))&&(a16==9))))){ + if((a0==1)){ + a2 = 0; + a16 = 7; + a21 = 10; + a18 = 1; + a9 = 10; + a5 = 6; + a1 = 12; + a20 = 1; + a28 = 0; + }else{ + a5 = 6; + a0 = 1; + a13 = 0; + a19 = 1; + a8 = 1; + a9 = 8; + } + return -1; + } else if(((((a12==1)&&(((a19==2)&&((a13==1)&&((input==6)&&((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4))))))&&!(a0==1)))&&!(a26==1))&&(((a1==13)&&((a7==1)||(((((a12==1)&&(a13==1))&&(a16==9))&&(a21==10))&&!(a20==1))))&&(a17==2)))){ + if((a13==1)){ + a16 = 7; + a28 = 0; + a20 = 1; + a9 = 11; + a1 = 12; + a27 = 1; + a5 = 6; + a4 = 1; + }else{ + a1 = 12; + a19 = 3; + a11 = 0; + a9 = 8; + a12 = 0; + a5 = 4; + a22 = 1; + } + return -1; + } else if(((((a11==1)&&(((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4)))&&(input==5)))&&(a13==1))&&((a16==7)&&(((!(a14==1)&&(((((a8==1)||(!(a28==1)||((a19==3)&&(a11==1))))&&(a11==1))&&(a21==12))&&!(a20==1)))&&(a17==2))&&(a1==14))))){ + a19 = 1; + a20 = 1; + a16 = 11; + a5 = 4; + a6 = 1; + a4 = 0; + a9 = 11; + a28 = 1; + return 22; + } else if((((((a4==1)||(((!(a13==1)||(!(a24==1)&&(a3==1)))&&(a17==2))&&(a13==1)))||!(a28==1))&&(a9==11))&&(((((a19==3)&&((a16==9)&&(((input==6)&&((a5==4)||(a5==5)))&&!(a24==1))))&&(a1==12))&&!(a20==1))&&(a21==11)))){ + a3 = 0; + a5 = 5; + a11 = 0; + a20 = 1; + a10 = 0; + a9 = 8; + return -1; + } else if(((((a2==1)&&((a17==2)&&((!(a20==1)&&(((((input==3)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(a1==12))&&(a3==1))&&(a16==9)))&&(a13==1))))&&!(a27==1))&&((a19==5)&&(!(a14==1)&&((a21==10)&&((a11==1)&&!(a27==1))))))){ + if((a11==1)){ + a9 = 8; + a19 = 2; + a13 = 0; + a7 = 1; + a20 = 1; + a5 = 5; + a16 = 7; + a25 = 1; + }else{ + a19 = 2; + a25 = 0; + a9 = 10; + a16 = 7; + a10 = 0; + a5 = 6; + a12 = 0; + a20 = 1; + } + return -1; + } else if((((((((a23==1)&&((a9==11)&&((a16==9)&&(a28==1))))&&(a21==12))||(a0==1))&&(a1==13))&&(a17==2))&&(!(a4==1)&&(((a12==1)&&(((a19==2)&&(((input==6)&&(a20==1))&&(a3==1)))&&!(a8==1)))&&(a5==5))))){ + a1 = 12; + a5 = 4; + a19 = 1; + a9 = 7; + a6 = 1; + a21 = 10; + a16 = 7; + a8 = 0; + a3 = 1; + return -1; + } else if((((a16==7)&&(!(a18==1)&&((((a19==4)&&(!(a7==1)&&(!(a8==1)&&(a28==1))))||(a0==1))&&!(a7==1))))&&((a1==14)&&(((a21==11)&&(!(a24==1)&&((a17==2)&&(((input==4)&&!(a20==1))&&(a5==5)))))&&(a9==7))))){ + a5 = 4; + a21 = 10; + a19 = 1; + a1 = 12; + a18 = 0; + a27 = 0; + a20 = 1; + a11 = 1; + return -1; + } else if(((((((a16==9)&&((a28==1)&&!(a24==1)))||!(a11==1))&&(a9==8))&&(a21==10))&&((a13==1)&&((a19==3)&&((a11==1)&&(((a17==2)&&((a20==1)&&(!(a18==1)&&(((input==5)&&(a5==5))&&(a1==14)))))&&(a12==1))))))){ + a16 = 7; + a19 = 1; + a13 = 1; + a9 = 7; + a1 = 12; + a6 = 1; + a5 = 4; + return -1; + } else if((((!(a20==1)&&((a21==10)&&((((a1==13)&&(((a5==4)||(a5==5))&&(input==4)))&&!(a0==1))&&!(a26==1))))&&(a28==1))&&((a16==11)&&((a9==10)&&(!(a14==1)&&(((a26==1)||((a19==4)&&((a12==1)&&(a13==1))))&&(a17==2))))))){ + a1 = 12; + a11 = 0; + a4 = 1; + a16 = 7; + a5 = 6; + a20 = 1; + a0 = 1; + a19 = 1; + return -1; + } else if((((a11==1)&&(!(a20==1)&&((((((((input==1)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5))))&&(a17==2))&&(a16==9))&&(a28==1))&&(a21==11))&&(a19==1))&&(a28==1))))&&(((a28==1)&&(!(a4==1)&&((a11==1)&&(a1==13))))||(a18==1)))){ + a9 = 10; + a21 = 10; + a20 = 1; + a1 = 12; + a19 = 2; + a10 = 1; + a5 = 5; + a16 = 7; + a25 = 1; + a14 = 1; + return 25; + } else if((((a20==1)&&((a19==2)&&((a27==1)||((a2==1)&&((a1==14)&&(((a3==1)&&(a16==8))||(a27==1)))))))&&(((((((input==4)&&((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4))))&&(a11==1))&&(a17==2))&&(a23==1))&&!(a24==1))&&(a21==11)))){ + a11 = 1; + a1 = 12; + a19 = 1; + a14 = 0; + a5 = 4; + a21 = 10; + a3 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if((((a11==1)&&((((a1==14)&&(((((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==3))&&(a17==2))&&(a23==1))&&(a21==12)))&&(a23==1))&&!(a8==1)))&&((a2==1)&&(!(a0==1)&&(((a20==1)&&((a23==1)&&(a19==1)))&&(a16==10)))))){ + a9 = 7; + a5 = 4; + a21 = 10; + a14 = 0; + a1 = 12; + a16 = 7; + a26 = 0; + a24 = 0; + return -1; + } else if((((!(a23==1)||((a16==10)&&((((!(a13==1)||((a21==10)&&((a2==1)&&!(a20==1))))&&(a17==2))||(a4==1))&&(a19==5))))&&(a13==1))&&(!(a4==1)&&(((a1==14)&&((input==6)&&(((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))))&&(a28==1))))){ + a1 = 13; + a4 = 1; + a9 = 10; + a19 = 1; + a8 = 1; + a16 = 7; + a20 = 1; + a29 = 0; + a5 = 4; + return 23; + } else if((((a16==7)&&((((a12==1)&&(((a6==1)&&(!(a8==1)&&((((a5==4)||(a5==5))&&(input==6))&&(a1==14))))&&!(a0==1)))&&(a6==1))&&(a21==12)))&&(((a20==1)&&((a19==3)&&((!(a11==1)||(a6==1))&&(a17==2))))&&(a9==7)))){ + if((a12==1)){ + a21 = 11; + a16 = 8; + a19 = 2; + a9 = 9; + a20 = 0; + a1 = 12; + a5 = 5; + a11 = 1; + a13 = 1; + a18 = 0; + }else{ + a7 = 0; + a21 = 10; + a16 = 9; + a9 = 8; + a14 = 0; + a23 = 1; + a5 = 6; + a19 = 5; + } + return 26; + } else if((((((((a2==1)&&((a3==1)&&(a21==12)))||!(a23==1))&&(a2==1))&&(a16==8))||!(a23==1))&&(((((a19==4)&&((a20==1)&&((((input==3)&&((a5==5)||(a5==6)))&&(a17==2))&&(a9==11))))&&!(a26==1))&&(a1==13))&&!(a26==1)))){ + a21 = 10; + a5 = 4; + a9 = 7; + a1 = 12; + a0 = 0; + a28 = 1; + a19 = 1; + a11 = 1; + a16 = 7; + return -1; + } else if(((!(a24==1)&&((a24==1)||((a3==1)&&((a17==2)&&(((!(a26==1)&&(!(a0==1)&&(a13==1)))&&!(a20==1))&&(a1==12))))))&&((a23==1)&&((a21==12)&&((a19==4)&&((((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))&&(input==4))&&(a16==8))))))){ + a3 = 0; + a28 = 0; + a5 = 4; + a16 = 7; + a9 = 7; + a21 = 10; + a19 = 3; + a1 = 14; + return -1; + } else if(((((a12==1)&&(((((input==3)&&(a21==10))&&(a16==10))&&(a17==2))&&!(a14==1)))&&(a5==4))&&(((a1==12)&&(((!(a20==1)&&((a28==1)&&((a0==1)||((a28==1)||!(a13==1)))))&&(a9==10))&&(a19==3)))&&(a6==1)))){ + a12 = 0; + a19 = 2; + a1 = 13; + a5 = 5; + a28 = 0; + a9 = 7; + a18 = 1; + a21 = 11; + a16 = 7; + return -1; + } else if(((((a2==1)&&(((((a21==12)&&(((a16==10)&&((a9==11)&&((a1==14)&&(a5==6))))&&(a19==5)))||((((a16==11)&&((a9==7)&&((a1==12)&&(a5==4))))&&(a19==1))&&(a21==10)))||(((a19==1)&&((a16==11)&&(((a1==12)&&(a5==5))&&(a9==7))))&&(a21==10)))&&(input==4)))&&!(a26==1))&&(((((((a2==1)&&(a17==2))&&(a3==1))&&!(a20==1))||(a18==1))||!(a12==1))||(a0==1)))){ + a28 = 0; + a9 = 11; + a1 = 13; + a19 = 1; + a10 = 0; + a5 = 4; + a20 = 1; + a16 = 7; + a22 = 0; + a21 = 10; + return 25; + } else if((((a18==1)||(!(a13==1)||(((a9==10)&&(((a21==11)&&(((a28==1)&&(a20==1))&&(a16==11)))||(a4==1)))&&!(a4==1))))&&(((((((input==4)&&((a5==4)||(a5==5)))&&(a1==12))&&(a17==2))&&(a19==5))&&(a3==1))&&(a23==1)))){ + a19 = 1; + a0 = 0; + a4 = 0; + a28 = 1; + a5 = 4; + a16 = 7; + a21 = 10; + a9 = 7; + return -1; + } else if((((a12==1)&&((!(a26==1)&&((a19==5)&&((((a1==12)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==3)))&&(a16==7))&&(a21==10))))&&(a17==2)))&&(((((!(a24==1)&&(a2==1))||!(a3==1))||!(a11==1))&&!(a20==1))&&!(a18==1)))){ + a28 = 1; + a19 = 2; + a24 = 0; + a5 = 4; + a20 = 1; + a26 = 0; + a9 = 10; + return -1; + } else if(((!(a12==1)||((a23==1)&&((a1==12)&&((a3==1)&&(a5==4)))))&&(((a19==3)&&(((((a16==11)&&((a21==10)&&(((a20==1)&&((a17==2)&&(input==4)))&&!(a0==1))))&&(a9==10))&&!(a14==1))&&!(a26==1)))&&!(a7==1)))){ + a16 = 7; + a2 = 1; + a19 = 1; + a9 = 7; + a18 = 0; + a13 = 1; + return -1; + } else if(((((a17==2)&&(!(a4==1)&&((!(a2==1)||(((a12==1)&&(a21==10))&&(a16==10)))&&(a6==1))))&&(a9==8))&&((a1==13)&&((a19==2)&&((a11==1)&&(!(a26==1)&&(((a2==1)&&(!(a20==1)&&(input==6)))&&(a5==6)))))))){ + a21 = 12; + a19 = 3; + a6 = 0; + a5 = 5; + a20 = 1; + a16 = 7; + a26 = 1; + a3 = 0; + a9 = 9; + return -1; + } else if(((((a17==2)&&(!(a20==1)&&(!(a23==1)||(a6==1))))&&(a16==9))&&((a21==12)&&(((!(a14==1)&&((((((input==6)&&(((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))))&&(a6==1))&&(a23==1))&&!(a7==1))&&!(a7==1)))&&(a19==3))&&(a1==12))))){ + a20 = 1; + a21 = 10; + a16 = 7; + a5 = 6; + a28 = 0; + a2 = 0; + a9 = 9; + a19 = 2; + return -1; + } else if(((((a12==1)&&(!(a8==1)&&((((((a28==1)&&((a21==11)&&(a6==1)))&&(a17==2))||!(a6==1))&&(a19==2))&&(a20==1))))&&!(a26==1))&&((a6==1)&&(((input==5)&&((((a5==5)&&(a1==14))&&(a9==7))||((((a1==13)&&(a5==6))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==14))))))&&(a16==8))))){ + a27 = 0; + a9 = 10; + a5 = 5; + a21 = 10; + a14 = 0; + a19 = 4; + a16 = 10; + a7 = 0; + a1 = 13; + return 26; + } else if((((((a19==2)&&((a21==10)&&((a0==1)||(a6==1))))&&(a20==1))&&(a17==2))&&(((a28==1)&&(((!(a14==1)&&((a16==11)&&(((input==3)&&(((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))&&(a1==12))))&&!(a14==1))&&(a2==1)))&&(a11==1)))){ + a23 = 1; + a2 = 1; + a5 = 4; + a26 = 0; + a19 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if((((a21==10)&&(((((((a1==14)&&(((a19==2)&&((input==3)&&((a5==5)||(a5==6))))&&(a9==8)))&&(a20==1))&&(a7==1))&&!(a23==1))&&(a16==9))&&(a17==2)))&&(!(a13==1)&&(((!(a23==1)&&(a3==1))&&!(a13==1))&&!(a12==1))))){ + a16 = 7; + a5 = 4; + a9 = 7; + a14 = 1; + a1 = 12; + a25 = 1; + a26 = 1; + return 26; + } else if(((((((a27==1)||((((a9==11)&&(a28==1))||!(a11==1))||!(a3==1)))&&(a2==1))&&(a19==1))&&!(a20==1))&&((a16==10)&&((a1==12)&&((!(a14==1)&&((((a21==12)&&(input==6))&&(a5==4))&&(a17==2)))&&!(a27==1)))))){ + a10 = 0; + a1 = 14; + a0 = 1; + a22 = 0; + a19 = 4; + a20 = 1; + a21 = 11; + return 26; + } else if((((a2==1)&&((a17==2)&&((!(a8==1)&&(((((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a5==4)&&(a9==9)))&&(input==1))&&(a13==1))&&(a12==1)))&&(a1==12))))&&(((((((a12==1)&&!(a4==1))&&(a16==8))&&(a21==12))&&(a11==1))&&(a20==1))&&(a19==2)))){ + a21 = 10; + a9 = 7; + a19 = 1; + a0 = 0; + a27 = 0; + a5 = 4; + a16 = 7; + a13 = 1; + return -1; + } else if((((a9==7)&&(((((((a12==1)&&(a6==1))&&(a17==2))&&(a19==1))&&(a21==10))&&!(a20==1))&&(a16==10)))&&((a1==12)&&(!(a4==1)&&(((a2==1)&&(((((a5==4)||(a5==5))&&(input==3))&&(a11==1))&&(a6==1)))&&(a23==1)))))){ + if((a29==1)){ + a12 = 0; + a25 = 0; + a5 = 4; + a20 = 1; + a21 = 11; + a7 = 1; + a16 = 7; + }else{ + a16 = 7; + a5 = 5; + a19 = 2; + a15 = 0; + a11 = 0; + a20 = 1; + a9 = 9; + a0 = 1; + } + return 21; + } else if(((!(a8==1)&&(!(a4==1)&&(((((a3==1)&&((a21==10)&&((input==4)&&(((a9==11)&&((a1==12)&&(a5==6)))||(((a1==13)&&(a5==4))&&(a9==7))))))&&(a17==2))&&(a28==1))&&(a13==1))))&&((a19==2)&&((a16==11)&&(((a11==1)&&(a12==1))&&(a20==1)))))){ + a5 = 4; + a9 = 7; + a19 = 1; + a1 = 12; + a13 = 1; + a18 = 0; + a16 = 7; + return -1; + } else if((((((!(a20==1)&&(!(a6==1)||(((!(a14==1)&&((a1==13)&&(a2==1)))||!(a28==1))&&(a16==9))))&&(a13==1))&&(a17==2))&&(a9==11))&&((!(a18==1)&&((a11==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a19==3))))&&(a21==10)))){ + a25 = 0; + a2 = 0; + a19 = 1; + a1 = 14; + a9 = 7; + a5 = 5; + a16 = 7; + a20 = 1; + return 21; + } else if(((((!(a20==1)&&((a17==2)&&((a12==1)&&(!(a26==1)&&(((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==1))&&(a11==1))))))&&(a21==12))&&(a28==1))&&((a16==9)&&(((a19==3)&&((a1==14)&&((a13==1)&&(a11==1))))||(a27==1))))){ + if((a23==1)){ + a2 = 0; + a5 = 4; + a16 = 7; + a21 = 10; + a25 = 1; + a20 = 1; + a28 = 0; + a19 = 1; + a9 = 9; + }else{ + a9 = 7; + a4 = 1; + a21 = 10; + a5 = 6; + a19 = 2; + a11 = 0; + a20 = 1; + a1 = 12; + a16 = 7; + a10 = 1; + } + return -1; + } else if((((((a4==1)||((a1==13)&&((a17==2)&&(a13==1))))&&!(a20==1))&&(a16==10))&&((a19==3)&&(((((a2==1)&&(((a23==1)&&(((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5)))&&(input==3)))&&(a28==1)))&&(a23==1))&&(a21==12))&&(a2==1))))){ + a11 = 0; + a19 = 1; + a9 = 10; + a20 = 1; + a1 = 14; + a16 = 7; + a10 = 0; + a22 = 1; + a21 = 10; + a5 = 6; + return -1; + } else if((((a16==10)&&(((a1==14)&&(!(a24==1)&&(((a5==4)||(a5==5))&&(input==1))))&&(a21==11)))&&((((a17==2)&&((a20==1)&&((a9==11)&&((((a14==1)||((a28==1)&&(a13==1)))||(a7==1))&&(a23==1)))))&&(a19==5))&&!(a7==1)))){ + a7 = 0; + a8 = 0; + a5 = 5; + a19 = 2; + a1 = 13; + a9 = 9; + a21 = 10; + a27 = 0; + a16 = 7; + return 25; + } else if((((a3==1)&&((((a9==11)&&((a1==13)&&((a16==9)&&((a17==2)&&(!(a2==1)||((a3==1)&&(a2==1)))))))&&(a23==1))||(a27==1)))&&(((a19==5)&&(!(a0==1)&&((a21==11)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6))))))&&!(a20==1)))){ + if((a23==1)){ + a21 = 10; + a16 = 7; + a5 = 5; + a19 = 1; + a9 = 7; + a26 = 1; + a25 = 1; + a20 = 1; + a2 = 0; + }else{ + a9 = 7; + a28 = 0; + a15 = 0; + a16 = 11; + a21 = 10; + a8 = 1; + a1 = 12; + a5 = 4; + a20 = 1; + } + return -1; + } else if((((((((a20==1)&&((((a21==12)&&(input==3))&&(a3==1))&&(a9==11)))&&(a19==1))&&(a16==11))&&(a17==2))&&!(a4==1))&&(!(a4==1)&&(((a1==12)&&((!(a12==1)||((a23==1)&&(a6==1)))||(a24==1)))&&(a5==5))))){ + a18 = 0; + a13 = 1; + a16 = 7; + a7 = 0; + a5 = 4; + a21 = 10; + a9 = 7; + return -1; + } else if((((((!(a23==1)&&((((a5==4)&&((!(a6==1)&&((a17==2)&&(a23==1)))&&(a16==7)))&&(a20==1))&&(a27==1)))&&(a9==9))&&(a21==12))&&(a19==1))&&(((a4==1)&&(((input==3)&&(a1==12))&&(a24==1)))&&(a18==1)))){ + a8 = 1; + a11 = 0; + a27 = 1; + a21 = 10; + a9 = 11; + return -1; + } else if(((!(a13==1)||(((a1==12)&&((a20==1)&&(((a5==5)&&(((a12==1)&&(a3==1))||!(a28==1)))&&!(a4==1))))&&(a13==1)))&&(((a28==1)&&(((a9==10)&&((a17==2)&&((input==3)&&(a16==7))))&&(a21==12)))&&(a19==2)))){ + a0 = 0; + a14 = 0; + a5 = 4; + a9 = 7; + a19 = 1; + a28 = 1; + a21 = 10; + return -1; + } else if((((a9==11)&&((((((a6==1)&&(a2==1))&&(a3==1))||(a8==1))&&(a1==13))&&(a21==12)))&&(((a20==1)&&((a16==7)&&((((!(a27==1)&&((input==5)&&((a5==4)||(a5==5))))&&(a23==1))&&!(a8==1))&&(a19==1))))&&(a17==2)))){ + a18 = 0; + a28 = 1; + a16 = 8; + a26 = 0; + a21 = 10; + a5 = 5; + a19 = 5; + return 25; + } else if((((a26==1)||(((a18==1)||(((a1==12)&&(((a3==1)||(a7==1))&&!(a20==1)))||(a4==1)))&&(a23==1)))&&((a21==12)&&(((a9==8)&&(((a6==1)&&((a16==10)&&(((a5==5)||(a5==6))&&(input==6))))&&(a19==3)))&&(a17==2))))){ + if((a17==4)){ + a19 = 2; + a9 = 10; + a25 = 0; + a10 = 0; + a5 = 4; + a16 = 8; + a20 = 1; + a4 = 1; + }else{ + a21 = 11; + a19 = 4; + a15 = 0; + a16 = 11; + a20 = 1; + a1 = 13; + a6 = 0; + a9 = 7; + a5 = 5; + a22 = 0; + } + return -1; + } else if((((!(a7==1)&&((((a19==2)&&(input==1))&&(a21==11))&&(a6==1)))&&(a9==8))&&(!(a7==1)&&(((((a16==9)&&(((a20==1)&&(((a13==1)&&(a12==1))&&(a1==13)))&&!(a7==1)))&&(a17==2))&&(a11==1))&&(a5==5))))){ + a24 = 0; + a21 = 12; + a5 = 6; + a9 = 11; + a1 = 14; + a12 = 1; + a26 = 0; + return 21; + } else if((((a6==1)&&(((a1==12)&&(((a16==8)&&((a2==1)&&(a28==1)))&&(a9==9)))&&(a11==1)))&&(!(a20==1)&&(((((!(a8==1)&&((a19==1)&&(((a5==4)||(a5==5))&&(input==4))))&&!(a7==1))&&(a23==1))&&(a21==11))&&(a17==2))))){ + a5 = 4; + a21 = 10; + a20 = 1; + a9 = 7; + a6 = 1; + a3 = 1; + a16 = 7; + a23 = 1; + return -1; + } else if((((a26==1)||(!(a11==1)||(((((a26==1)||((a21==10)&&(a23==1)))&&(a17==2))&&(a1==13))&&!(a24==1))))&&(!(a14==1)&&(((!(a20==1)&&((a16==7)&&((((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7))))&&(input==6))))&&(a19==2))&&(a13==1))))){ + a9 = 7; + a19 = 1; + a1 = 12; + a5 = 4; + a3 = 1; + a11 = 1; + a8 = 0; + a20 = 1; + return -1; + } else if((((((a16==7)&&(!(a0==1)&&((((a9==11)&&(((a17==2)&&(a3==1))||!(a13==1)))&&(a21==12))&&(a19==3))))&&(a20==1))||!(a28==1))&&((((a6==1)&&((a1==13)&&((input==3)&&((a5==6)||((a5==4)||(a5==5))))))&&!(a4==1))&&!(a24==1)))){ + a21 = 10; + a9 = 7; + a0 = 0; + a5 = 4; + a19 = 1; + a1 = 12; + a8 = 0; + return -1; + } else if(((!(a27==1)&&(((a16==11)&&((a23==1)&&(((a17==2)&&((a19==3)&&(input==4)))&&(a5==4))))&&(a2==1)))&&((((a21==10)&&(!(a20==1)&&((a27==1)||(!(a8==1)&&((a6==1)&&!(a24==1))))))&&(a9==11))&&(a1==12)))){ + a22 = 1; + a9 = 10; + a19 = 1; + a3 = 0; + a13 = 0; + a1 = 14; + a16 = 7; + a20 = 1; + a5 = 5; + return -1; + } else if((((((a23==1)&&((a17==2)&&(a12==1)))&&(a1==14))&&(a20==1))&&(((a19==5)&&((a11==1)&&((a6==1)&&((a3==1)&&((!(a26==1)&&((a11==1)&&((((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))&&(input==6))))&&(a16==10))))))&&(a21==11)))){ + a7 = 0; + a19 = 1; + a11 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + a21 = 10; + a1 = 12; + return -1; + } else if((((((a14==1)||(!(a28==1)||(a12==1)))||(a8==1))&&(a9==9))&&((a1==13)&&((((a17==2)&&((a20==1)&&((((a19==1)&&(((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a4==1)))&&!(a18==1))&&(a12==1))))&&(a16==8))&&(a21==11))))){ + a2 = 1; + a7 = 0; + a16 = 7; + a5 = 4; + a21 = 10; + a1 = 12; + a9 = 7; + a11 = 1; + return -1; + } else if((((a1==12)&&((a28==1)&&(((a17==2)&&((!(a14==1)&&((input==5)&&(((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))))&&!(a26==1)))&&(a28==1))))&&((((a19==3)&&(!(a2==1)||((a20==1)&&((a21==11)&&(a11==1)))))&&(a16==10))||!(a6==1)))){ + a12 = 1; + a11 = 1; + a13 = 1; + a21 = 10; + a16 = 9; + a9 = 10; + a5 = 4; + a1 = 14; + a19 = 2; + return 21; + } else if(((((a19==2)&&((a11==1)&&((a2==1)&&(((input==5)&&!(a20==1))&&(a21==12)))))&&(a17==2))&&((a9==8)&&((a16==9)&&((a5==5)&&((a1==14)&&(((a8==1)||(((a0==1)||(a12==1))||(a0==1)))||(a18==1)))))))){ + a10 = 1; + a19 = 1; + a20 = 1; + a21 = 10; + a1 = 12; + a27 = 1; + a16 = 7; + a9 = 9; + a7 = 1; + return 22; + } else if(((!(a28==1)||((((((a6==1)&&(a16==9))&&(a21==12))||!(a2==1))&&(a19==3))&&(a23==1)))&&(((a11==1)&&((!(a20==1)&&((a1==14)&&((a6==1)&&(((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))&&(input==3)))))&&(a11==1)))&&(a17==2)))){ + a1 = 12; + a16 = 7; + a15 = 0; + a5 = 6; + a9 = 11; + a19 = 1; + a21 = 10; + a11 = 0; + a20 = 1; + a8 = 1; + return -1; + } else if((((a24==1)&&(!(a6==1)&&((((a16==7)&&(((a12==1)&&(a20==1))&&(a17==2)))&&(a7==1))&&(a26==1))))&&(!(a6==1)&&((a19==3)&&(((((((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7))))&&(input==4))&&!(a23==1))&&(a1==13))&&(a21==11)))))){ + a19 = 1; + a21 = 10; + a25 = 0; + a1 = 14; + a9 = 8; + a4 = 1; + a5 = 6; + return 21; + } else if(((((!(a2==1)||(!(a7==1)&&((a1==13)&&(a12==1))))&&!(a20==1))&&(a16==10))&&((a21==11)&&((((a17==2)&&(((a19==2)&&(!(a18==1)&&((input==6)&&(((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))))))&&!(a4==1)))&&(a13==1))&&!(a7==1))))){ + if((a0==1)){ + a5 = 4; + a9 = 11; + a24 = 1; + a13 = 0; + a20 = 1; + a1 = 14; + a10 = 0; + a16 = 7; + }else{ + a16 = 8; + a28 = 0; + a8 = 1; + a4 = 1; + a19 = 1; + a5 = 6; + a21 = 12; + a9 = 11; + a1 = 12; + } + return 25; + } else if((((((((!(a2==1)||(a6==1))||(a27==1))&&(a9==11))&&(a21==10))&&(a19==1))||(a26==1))&&(((a17==2)&&((a1==14)&&(((((((a5==4)||(a5==5))&&(input==1))&&(a3==1))&&!(a24==1))&&(a20==1))&&(a16==9))))&&(a13==1)))){ + if((a16==7)){ + a11 = 1; + a16 = 8; + a5 = 5; + a19 = 5; + a1 = 12; + a20 = 0; + a28 = 1; + a9 = 10; + a6 = 1; + a21 = 11; + }else{ + a7 = 0; + a13 = 1; + a16 = 10; + a23 = 1; + a5 = 5; + a1 = 13; + } + return 21; + } else if((((a11==1)&&((!(a3==1)||(((((a1==13)&&(((a17==2)&&(!(a20==1)&&(a13==1)))&&(a12==1)))&&(a21==12))&&!(a24==1))||(a24==1)))&&(a19==5)))&&((!(a26==1)&&((((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))&&(input==6)))&&(a16==8)))){ + a19 = 1; + a16 = 7; + a21 = 10; + a5 = 4; + a9 = 10; + a14 = 1; + a7 = 1; + a12 = 0; + a20 = 1; + a1 = 12; + return -1; + } else if((((a19==2)&&((a9==7)&&((!(a8==1)&&((a6==1)&&!(a14==1)))&&!(a0==1))))&&(((a1==12)&&(((((a5==5)&&((a17==2)&&(((a20==1)&&(input==3))&&(a6==1))))&&!(a0==1))&&(a21==10))&&!(a14==1)))&&(a16==8)))){ + a19 = 1; + a27 = 0; + a5 = 4; + a16 = 7; + a8 = 0; + a2 = 1; + return -1; + } else if(((!(a7==1)&&((a3==1)&&((a20==1)&&(!(a7==1)&&((a21==10)&&((a17==2)&&((a1==13)&&(((a6==1)&&((input==5)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))))&&(a12==1)))))))))&&((a16==8)&&(((a6==1)&&(a11==1))&&(a19==5))))){ + if((a24==1)){ + a20 = 0; + a21 = 11; + a5 = 6; + a9 = 10; + a23 = 1; + a13 = 1; + a19 = 1; + }else{ + a2 = 1; + a5 = 5; + a1 = 14; + a21 = 12; + a23 = 1; + a9 = 11; + a27 = 0; + } + return 22; + } else if((((((((a1==12)&&((a2==1)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==5))))&&!(a24==1))&&(a16==8))&&!(a8==1))&&!(a20==1))&&((a17==2)&&((a21==11)&&((a28==1)&&(((!(a28==1)||(a2==1))&&(a6==1))&&(a19==2))))))){ + a20 = 1; + a21 = 10; + a5 = 4; + a8 = 0; + a6 = 1; + a19 = 1; + a24 = 0; + a9 = 7; + a16 = 7; + return -1; + } else if(((((((!(a0==1)&&((((input==5)&&(a5==6))&&!(a27==1))&&(a6==1)))&&(a17==2))&&(a21==12))&&!(a14==1))&&(a20==1))&&((a19==5)&&((a9==8)&&(((((a3==1)&&(a16==9))||!(a2==1))&&(a1==14))&&!(a7==1)))))){ + a5 = 4; + a1 = 12; + a14 = 0; + a16 = 7; + a9 = 7; + a21 = 10; + a13 = 1; + a19 = 1; + a12 = 1; + return -1; + } else if((((!(a28==1)||((a11==1)&&((a2==1)&&(a1==14))))&&(a28==1))&&((a17==2)&&((((a16==9)&&((a11==1)&&((a2==1)&&(!(a14==1)&&((a21==10)&&((input==5)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))))))))&&!(a20==1))&&(a19==3))))){ + if((a26==1)){ + a16 = 7; + a12 = 0; + a21 = 12; + a19 = 5; + a5 = 6; + a18 = 1; + a6 = 0; + a9 = 10; + }else{ + a9 = 8; + a1 = 13; + a16 = 7; + a29 = 1; + a19 = 1; + a4 = 1; + a5 = 6; + a20 = 1; + } + return -1; + } else if(((((a3==1)&&(((a1==13)&&(!(a8==1)&&(((a19==3)&&(a23==1))&&(a21==12))))||!(a13==1)))&&(a9==7))&&((a23==1)&&((a17==2)&&((a5==5)&&((a16==8)&&((!(a0==1)&&((a20==1)&&(input==4)))&&(a12==1)))))))){ + a12 = 1; + a21 = 10; + a24 = 0; + a1 = 12; + a19 = 1; + a16 = 7; + a5 = 4; + a3 = 1; + return -1; + } else if((((((a1==13)&&((a2==1)&&((a13==1)&&(a16==8))))&&(a17==2))&&!(a20==1))&&(((a21==10)&&((a12==1)&&(!(a24==1)&&(!(a7==1)&&(!(a8==1)&&(!(a27==1)&&((input==4)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))))))))&&(a19==5)))){ + a1 = 12; + a16 = 7; + a19 = 1; + a20 = 1; + a14 = 0; + a5 = 4; + a9 = 10; + a0 = 0; + return -1; + } else if((((((a28==1)&&(((((a21==10)&&(((a16==9)&&((a9==7)&&((a5==4)&&(a1==12))))&&(a19==1)))||((((((a9==11)&&((a1==14)&&(a5==5)))&&(a16==8))&&(a19==5))&&(a21==12))||((a21==12)&&((a19==5)&&((a16==8)&&(((a1==14)&&(a5==6))&&(a9==11)))))))&&(input==3))&&!(a27==1)))&&!(a24==1))&&!(a0==1))&&((a18==1)||((!(a20==1)&&((a17==2)&&(a3==1)))||(a24==1))))){ + if((a8==1)){ + a12 = 0; + a19 = 2; + a1 = 12; + a16 = 10; + a25 = 0; + a5 = 5; + a9 = 7; + a10 = 0; + a21 = 11; + }else{ + a24 = 1; + a16 = 10; + a21 = 12; + a19 = 1; + a25 = 1; + a9 = 9; + a4 = 1; + a5 = 6; + a1 = 12; + } + return -1; + } else if((((!(a0==1)&&(((((((a16==8)&&(a6==1))&&(a9==10))&&!(a20==1))&&!(a18==1))&&(a5==6))&&(a19==3)))&&(a11==1))&&(!(a7==1)&&(((!(a27==1)&&(((input==5)&&(a21==12))&&(a1==12)))&&!(a0==1))&&(a17==2))))){ + a20 = 1; + a16 = 11; + a5 = 4; + a24 = 1; + a29 = 1; + a21 = 11; + a19 = 5; + a12 = 0; + a1 = 14; + return -1; + } else if(((((a1==13)&&(((((a5==5)||(a5==6))&&(input==4))&&!(a7==1))&&(a21==10)))&&(a17==2))&&((a19==3)&&((((a26==1)||(((a2==1)&&((a9==8)&&((a16==11)&&(!(a20==1)&&(a2==1)))))&&(a12==1)))&&!(a8==1))&&(a3==1))))){ + if((a23==1)){ + a5 = 6; + a20 = 1; + a13 = 0; + a19 = 1; + a2 = 0; + a16 = 7; + a23 = 0; + }else{ + a3 = 0; + a9 = 9; + a16 = 7; + a19 = 2; + a10 = 0; + a21 = 12; + a20 = 1; + a25 = 1; + a5 = 6; + a1 = 12; + } + return -1; + } else if((((a20==1)&&((a17==2)&&((a19==4)&&((a6==1)&&((a12==1)&&((a13==1)&&(a1==12)))))))&&((a16==9)&&(((!(a8==1)&&(!(a27==1)&&(((input==6)&&(((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))))&&!(a4==1))))&&!(a26==1))&&(a21==11))))){ + a3 = 1; + a9 = 8; + a26 = 0; + a28 = 1; + a5 = 5; + a20 = 0; + a16 = 8; + return 21; + } else if((((((a3==1)&&((a17==2)&&((!(a27==1)&&((input==6)&&(((((a1==14)&&(a5==6))&&(a9==11))&&(a19==1))||(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==2)))))&&!(a7==1))))&&!(a24==1))&&(a21==11))&&((a4==1)||((a20==1)&&(((a11==1)&&(a16==8))&&!(a7==1)))))){ + a6 = 1; + a28 = 1; + a19 = 5; + a1 = 12; + a14 = 0; + a9 = 8; + a5 = 6; + a21 = 10; + return -1; + } else if((((((((a19==1)&&((a0==1)||(a6==1)))&&(a12==1))||!(a13==1))||(a27==1))||(a26==1))&&(((a16==8)&&((a17==2)&&(((a20==1)&&((input==3)&&((((a5==4)&&(a1==14))&&(a9==7))||(((a9==11)&&((a1==13)&&(a5==5)))||((a9==11)&&((a5==6)&&(a1==13)))))))&&!(a26==1))))&&(a21==12)))){ + a9 = 7; + a1 = 12; + a16 = 7; + a5 = 4; + a21 = 10; + a0 = 0; + a23 = 1; + a8 = 0; + return -1; + } else if((((a21==10)&&(((((((a11==1)&&(a19==4))&&(a23==1))&&(a13==1))&&!(a20==1))&&(a16==7))&&(a1==12)))&&((a9==10)&&((a23==1)&&(((a23==1)&&((a5==5)&&((a28==1)&&((a17==2)&&(input==6)))))&&!(a26==1)))))){ + a6 = 1; + a5 = 6; + a12 = 1; + a8 = 0; + a1 = 13; + return 25; + } else if(((((((a1==13)&&(((a12==1)&&((((!(a4==1)&&(((a5==5)||(a5==6))&&(input==6)))&&!(a7==1))&&(a3==1))&&(a21==10)))&&(a19==3)))&&(a13==1))&&!(a0==1))&&!(a20==1))&&(((a16==7)&&((a9==8)&&(a12==1)))&&(a17==2)))){ + a5 = 4; + a1 = 12; + a9 = 7; + a12 = 1; + a19 = 1; + a8 = 0; + a20 = 1; + return -1; + } else if((((a9==10)&&((!(a8==1)&&((a11==1)&&(!(a26==1)&&((((input==4)&&(a5==5))&&!(a14==1))&&(a21==11)))))&&!(a8==1)))&&((((a20==1)&&((a19==1)&&(((a1==14)&&(a13==1))&&!(a18==1))))&&(a16==11))&&(a17==2)))){ + a1 = 12; + a5 = 4; + a7 = 0; + a16 = 7; + a21 = 10; + a2 = 1; + a9 = 7; + return -1; + } else if((((a19==1)&&(((a9==10)&&((a16==9)&&((a3==1)&&(((a17==2)&&(a2==1))||!(a3==1)))))&&(a20==1)))&&(((!(a14==1)&&((a21==12)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a1==14))&&(a28==1))))&&!(a27==1))&&(a3==1)))){ + a5 = 5; + a27 = 0; + a19 = 3; + a1 = 12; + a18 = 0; + a9 = 9; + return 21; + } else if((((((!(a26==1)&&(!(a24==1)&&((((input==3)&&(a19==3))&&!(a27==1))&&!(a4==1))))&&!(a14==1))&&(a16==9))&&(a11==1))&&(((a17==2)&&(((a1==13)&&(((a5==5)&&(a3==1))&&(a9==10)))&&(a20==1)))&&(a21==10)))){ + a3 = 1; + a5 = 4; + a1 = 12; + a11 = 1; + a9 = 7; + a14 = 0; + a16 = 7; + a19 = 1; + return -1; + } else if((((a21==10)&&(((!(a0==1)&&((a8==1)||(((a13==1)&&!(a14==1))&&(a3==1))))&&(a16==11))&&(a1==14)))&&((a19==2)&&(!(a8==1)&&((a20==1)&&((a9==8)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&!(a7==1))&&(a17==2)))))))){ + a3 = 1; + a5 = 4; + a1 = 12; + a19 = 1; + a9 = 7; + a14 = 0; + a16 = 7; + a12 = 1; + return -1; + } else if((((((!(a11==1)||((a17==2)&&(a23==1)))&&(a19==2))||!(a13==1))||!(a28==1))&&((a21==12)&&(!(a8==1)&&(((a20==1)&&(!(a0==1)&&(((input==5)&&((((a5==6)&&(a1==13))&&(a9==11))||(((a1==14)&&(a5==4))&&(a9==7))))&&(a16==9))))&&!(a0==1)))))){ + a26 = 0; + a28 = 1; + a9 = 7; + a21 = 10; + a1 = 12; + a5 = 4; + a19 = 1; + a12 = 1; + a16 = 7; + return -1; + } else if(((((a1==13)&&((((a11==1)&&(a17==2))&&(a21==12))||!(a2==1)))||!(a28==1))&&(!(a27==1)&&(!(a27==1)&&(!(a14==1)&&((a19==1)&&(((a16==11)&&((a20==1)&&(((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a5==4)&&(a9==10)))&&(input==6))))&&(a23==1)))))))){ + a1 = 12; + a5 = 4; + a21 = 10; + a12 = 1; + a9 = 7; + a6 = 1; + a16 = 7; + a28 = 1; + return -1; + } else if((((a23==1)&&((((a11==1)&&((a21==10)&&(((((a17==2)&&(a3==1))||!(a28==1))&&(a19==5))&&(a16==7))))||(a26==1))&&(a1==13)))&&(!(a24==1)&&(((!(a20==1)&&(((a5==4)||(a5==5))&&(input==5)))&&(a9==7))&&(a11==1))))){ + a2 = 1; + a9 = 11; + a19 = 2; + a23 = 1; + a1 = 12; + a5 = 5; + a20 = 1; + return -1; + } else if((((a1==13)&&((a17==2)&&((((a16==11)&&(((a19==1)&&((a13==1)||(a4==1)))&&(a20==1)))||(a8==1))&&!(a8==1))))&&(((a21==12)&&(((a28==1)&&(((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9)))&&(input==4)))&&(a11==1)))&&!(a4==1)))){ + a16 = 7; + a1 = 12; + a9 = 7; + a21 = 10; + a5 = 4; + a14 = 0; + a23 = 1; + return -1; + } else if((((a27==1)||(((!(a4==1)&&(!(a12==1)||((a3==1)&&(a5==4))))&&(a20==1))||!(a28==1)))&&((a28==1)&&((a17==2)&&(((((a19==2)&&(((input==6)&&(a21==10))&&(a16==7)))&&!(a4==1))&&(a1==13))&&(a9==10)))))){ + a1 = 12; + a24 = 0; + a19 = 3; + a5 = 5; + a13 = 1; + a11 = 1; + return 23; + } else if(((!(a14==1)&&(!(a24==1)&&(a28==1)))&&(((a6==1)&&((a20==1)&&(((a13==1)&&((!(a4==1)&&((((((input==3)&&(a1==13))&&!(a4==1))&&(a9==7))&&(a16==8))&&(a19==4)))&&(a5==6)))&&(a21==12))))&&(a17==2)))){ + a1 = 12; + a27 = 0; + a2 = 1; + a21 = 10; + a16 = 7; + a11 = 1; + a5 = 4; + a19 = 1; + return -1; + } else if((((!(a14==1)&&((((a5==6)&&((a1==12)&&(!(a26==1)&&(a2==1))))&&(a9==8))&&!(a8==1)))||(a27==1))&&((((((a17==2)&&(((a19==3)&&(input==4))&&(a21==11)))&&(a20==1))&&(a16==10))&&(a12==1))&&!(a26==1)))){ + a9 = 7; + a21 = 10; + a5 = 4; + a19 = 1; + a28 = 1; + a27 = 0; + a12 = 1; + a16 = 7; + return -1; + } else if(((!(a6==1)||((((a8==1)||((a3==1)&&(a23==1)))&&(a16==7))&&(a1==12)))&&(((((a5==6)&&((a23==1)&&((((a17==2)&&((a9==10)&&(input==3)))&&(a19==5))&&(a20==1))))&&(a21==10))&&(a28==1))&&(a6==1)))){ + a3 = 1; + a1 = 13; + a19 = 2; + a6 = 1; + a14 = 0; + a21 = 12; + a9 = 8; + return 25; + } else if(((((a13==1)&&(((a21==11)&&((a12==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1))))&&(a1==12)))&&(a17==2))&&(((a9==7)&&(((((((a3==1)&&(a28==1))&&!(a0==1))&&(a16==10))&&(a19==1))||!(a23==1))&&(a12==1)))&&!(a20==1)))){ + if((a20==1)){ + a15 = 0; + a9 = 10; + a14 = 1; + a19 = 4; + a10 = 0; + a5 = 4; + }else{ + a16 = 7; + a4 = 1; + a5 = 5; + a21 = 10; + a6 = 0; + a20 = 1; + } + return 26; + } else if((((a17==2)&&((a21==10)&&(((a6==1)&&((a6==1)||!(a2==1)))&&!(a20==1))))&&((a19==4)&&((((((((((a1==14)&&(a5==4))&&(a9==7))||((((a1==13)&&(a5==5))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==13)))))&&(input==3))&&!(a0==1))&&(a16==7))&&(a3==1))&&(a23==1))&&(a23==1))))){ + a11 = 1; + a5 = 4; + a1 = 12; + a20 = 1; + a9 = 7; + a19 = 1; + a23 = 1; + return -1; + } else if((((a6==1)&&(((a17==2)&&((((a21==11)&&(((a12==1)||!(a3==1))||!(a28==1)))&&(a16==7))&&(a20==1)))&&(a23==1)))&&(((a28==1)&&(((a19==1)&&((input==5)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8)))))&&(a1==12)))&&(a12==1)))){ + a19 = 5; + a1 = 13; + a13 = 1; + a28 = 1; + a9 = 8; + a5 = 4; + a21 = 12; + return 23; + } else if((((a19==2)&&(!(a26==1)&&(((a28==1)&&((a24==1)||(!(a20==1)&&(a6==1))))&&(a11==1))))&&((((a1==14)&&(!(a4==1)&&(((a3==1)&&(((input==6)&&(a9==11))&&(a16==10)))&&(a21==12))))&&(a17==2))&&(a5==4)))){ + if((a2==1)){ + a16 = 7; + a5 = 5; + a20 = 1; + a15 = 0; + a19 = 1; + a21 = 10; + a14 = 1; + a22 = 0; + }else{ + a16 = 9; + a1 = 13; + a21 = 10; + a15 = 0; + a23 = 0; + a5 = 5; + a9 = 10; + a10 = 0; + } + return 21; + } else if((((a20==1)&&(((a17==2)&&(a11==1))&&(a21==10)))&&(((a24==1)&&((a19==4)&&((a26==1)&&((!(a28==1)&&(((((input==1)&&(((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))))&&(a4==1))&&!(a6==1))&&!(a13==1)))&&(a16==7)))))&&(a1==13)))){ + a10 = 1; + a16 = 10; + a21 = 12; + a19 = 2; + a5 = 4; + a9 = 9; + a1 = 12; + a13 = 0; + return -1; + } else if((((a4==1)&&((a7==1)&&((a8==1)&&(((a16==8)&&((a6==1)&&(a1==13)))&&!(a28==1)))))&&((a14==1)&&((!(a20==1)&&((((((input==4)&&((a5==5)||(a5==6)))&&(a17==2))&&!(a12==1))&&(a9==7))&&(a21==10)))&&(a19==2))))){ + a20 = 1; + a12 = 0; + a16 = 9; + a14 = 1; + a1 = 12; + a28 = 0; + a5 = 5; + a9 = 8; + a21 = 12; + a19 = 5; + return 26; + } else if(((((a6==1)&&((a8==1)||((((a16==10)&&((a9==7)&&(a2==1)))||(a0==1))&&!(a0==1))))||(a0==1))&&(((a20==1)&&((a19==5)&&((a21==11)&&((a17==2)&&(((a5==5)&&(input==1))&&(a1==14))))))&&(a6==1)))){ + a16 = 7; + a19 = 2; + a9 = 9; + a5 = 6; + a27 = 0; + a0 = 0; + a6 = 1; + a21 = 10; + return 21; + } else if(((!(a28==1)||((a23==1)&&((a7==1)||((a20==1)&&((((a11==1)&&!(a24==1))&&(a1==14))||!(a11==1))))))&&((a12==1)&&((a19==2)&&(((a17==2)&&(((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(input==5))&&(a21==10)))&&(a16==9)))))){ + a1 = 12; + a19 = 1; + a16 = 7; + a5 = 4; + a9 = 7; + a8 = 0; + a24 = 0; + return -1; + } else if(((((((a6==1)&&!(a0==1))&&(a9==7))||!(a13==1))&&(a17==2))&&(((a28==1)&&(((((a5==6)&&(((a21==12)&&(!(a18==1)&&((input==5)&&(a20==1))))&&(a1==13)))&&(a11==1))&&(a3==1))&&(a19==2)))&&(a16==10)))){ + a28 = 1; + a16 = 7; + a1 = 14; + a14 = 0; + a5 = 5; + a4 = 0; + a21 = 10; + a9 = 10; + return 21; + } else if((((a21==11)&&(!(a14==1)&&(((a17==2)&&((a11==1)&&((a16==8)&&(((!(a26==1)&&((((((a1==13)&&(a5==6))&&(a9==11))||(((a5==4)&&(a1==14))&&(a9==7)))||((a9==7)&&((a1==14)&&(a5==5))))&&(input==4)))&&!(a14==1))&&(a19==2)))))&&(a13==1))))&&((a23==1)&&((a2==1)&&(a20==1))))){ + if((a6==1)){ + a16 = 7; + a23 = 1; + a5 = 5; + a12 = 1; + a20 = 0; + a19 = 3; + a0 = 0; + a9 = 8; + a21 = 12; + a1 = 13; + }else{ + a1 = 13; + a3 = 1; + a27 = 0; + a9 = 11; + a5 = 4; + a19 = 4; + a21 = 10; + a16 = 10; + a4 = 0; + } + return 26; + } else if((((!(a27==1)&&((!(a18==1)&&((((((a5==4)||(a5==5))&&(input==6))&&!(a7==1))&&(a16==8))&&(a17==2)))&&(a21==11)))&&(a19==2))&&((a1==14)&&(((((a9==11)&&((a18==1)||(a6==1)))&&!(a20==1))||(a8==1))||(a26==1))))){ + a2 = 1; + a1 = 12; + a16 = 7; + a9 = 7; + a21 = 10; + a14 = 0; + a19 = 1; + a28 = 1; + a20 = 1; + a5 = 4; + return -1; + } else if((((a7==1)||(!(a2==1)||((a20==1)&&((((a8==1)||(a23==1))&&!(a7==1))&&(a1==14)))))&&(!(a7==1)&&(((a21==10)&&(((a5==4)&&((a13==1)&&(((a9==8)&&(input==1))&&(a19==2))))&&(a17==2)))&&(a16==8))))){ + a19 = 1; + a4 = 0; + a3 = 1; + a1 = 12; + a16 = 7; + a9 = 7; + return -1; + } else if(((!(a0==1)&&((a1==12)&&((((a19==3)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&(a21==12)))&&!(a4==1))&&!(a20==1))))&&((a3==1)&&((a17==2)&&((a16==8)&&(!(a24==1)&&(!(a24==1)&&(((a6==1)&&(a23==1))&&(a9==7))))))))){ + a16 = 7; + a19 = 1; + a20 = 1; + a5 = 6; + a8 = 1; + a14 = 1; + a1 = 14; + a21 = 10; + a9 = 8; + return -1; + } else if((((a23==1)&&((a24==1)||(((a1==13)&&(a3==1))&&(a12==1))))&&((((((a17==2)&&((a2==1)&&((a2==1)&&(((((a5==4)||(a5==5))&&(input==4))&&!(a24==1))&&(a19==1)))))&&(a9==8))&&(a20==1))&&(a16==8))&&(a21==12)))){ + a16 = 7; + a6 = 1; + a9 = 7; + a21 = 10; + a5 = 4; + a1 = 12; + a28 = 1; + a11 = 1; + return -1; + } else if((((a17==2)&&((a21==10)&&(((a5==4)&&(!(a4==1)&&(((a11==1)||!(a23==1))&&!(a20==1))))&&(a23==1))))&&((a9==9)&&((a1==12)&&(!(a18==1)&&((a23==1)&&(((a19==2)&&((a16==7)&&(input==3)))&&(a28==1)))))))){ + a9 = 7; + a24 = 0; + a12 = 1; + a19 = 1; + a2 = 1; + a20 = 1; + return -1; + } else if((((((((!(a8==1)&&((input==6)&&((a5==5)||(a5==6))))&&(a13==1))&&(a19==3))&&!(a4==1))&&(a6==1))&&(a1==14))&&(((a21==10)&&((((((a2==1)&&(a2==1))&&(a17==2))&&(a16==9))&&(a20==1))&&(a9==10)))&&!(a27==1)))){ + a6 = 1; + a2 = 1; + a9 = 8; + a23 = 1; + a5 = 6; + a1 = 13; + a16 = 11; + a19 = 2; + return 23; + } else if((((a16==8)&&(!(a20==1)&&(!(a11==1)||((!(a24==1)&&((a19==3)&&(!(a13==1)||(a23==1))))&&(a21==10)))))&&((!(a8==1)&&(!(a7==1)&&((a1==12)&&(((input==4)&&((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9))))&&(a11==1)))))&&(a17==2)))){ + a20 = 1; + a16 = 7; + a9 = 7; + a13 = 1; + a28 = 1; + a5 = 4; + a19 = 1; + a12 = 1; + return -1; + } else if((((!(a0==1)&&((!(a27==1)&&((a1==14)&&((a17==2)&&(((a19==1)&&((input==3)&&(a9==7)))&&(a20==1)))))&&(a11==1)))&&!(a24==1))&&((a26==1)||(((a5==4)&&((a16==10)&&((a11==1)&&(a21==10))))||(a8==1))))){ + a2 = 1; + a1 = 12; + a12 = 1; + a0 = 0; + a16 = 7; + return -1; + } else if(((((!(a26==1)&&((a17==2)&&((!(a26==1)&&((a1==14)&&(((a9==8)&&(a11==1))&&(a16==10))))&&!(a20==1))))&&(a6==1))&&(a28==1))&&((a11==1)&&(((((input==4)&&((a5==5)||(a5==6)))&&(a19==2))&&(a21==10))&&(a6==1))))){ + if((a22==1)){ + a3 = 0; + a23 = 0; + a19 = 1; + a16 = 7; + a20 = 1; + a7 = 1; + a5 = 5; + a9 = 9; + }else{ + a21 = 12; + a9 = 9; + a1 = 12; + a16 = 7; + a19 = 4; + a6 = 0; + a0 = 1; + a5 = 5; + a18 = 1; + } + return 21; + } else if((((a21==12)&&((a28==1)&&((a2==1)&&((((a2==1)||(a4==1))&&!(a8==1))&&(a20==1)))))&&((((a16==10)&&(!(a0==1)&&((a19==5)&&((a9==8)&&((a11==1)&&((a1==13)&&(input==6)))))))&&(a17==2))&&(a5==6)))){ + a3 = 1; + a21 = 11; + a11 = 1; + a16 = 9; + a19 = 4; + a28 = 1; + return -1; + } else if((((((((((a5==5)&&((input==6)&&!(a20==1)))&&(a9==8))&&(a19==5))&&(a21==10))&&(a23==1))&&(a17==2))&&!(a8==1))&&((a24==1)||((a8==1)||(!(a2==1)||(((a16==8)&&(!(a24==1)&&(a3==1)))&&(a1==13))))))){ + a9 = 7; + a5 = 6; + a1 = 12; + a18 = 0; + a21 = 11; + a19 = 4; + a3 = 1; + a7 = 0; + return -1; + } else if((((a16==8)&&((a19==2)&&(((a17==2)&&(a13==1))&&(a6==1))))&&(((a21==12)&&(((!(a8==1)&&((((input==6)&&(((a9==7)&&((a5==4)&&(a1==14)))||((((a1==13)&&(a5==5))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==13))))))&&!(a14==1))&&(a11==1)))&&(a28==1))&&(a3==1)))&&!(a20==1)))){ + if((a18==1)){ + a5 = 5; + a20 = 1; + a9 = 11; + a19 = 4; + a8 = 1; + a15 = 0; + a4 = 1; + a1 = 14; + }else{ + a19 = 1; + a1 = 12; + a21 = 10; + a5 = 6; + a16 = 7; + a9 = 9; + a20 = 1; + a10 = 1; + a29 = 0; + } + return 25; + } else if(((!(a28==1)||(!(a26==1)&&((a26==1)||(!(a8==1)&&((a1==14)&&((a13==1)&&((a9==10)&&(a2==1))))))))&&(!(a20==1)&&(((!(a0==1)&&((a21==11)&&((a19==2)&&((input==5)&&(a17==2)))))&&(a5==6))&&(a16==10))))){ + if((a27==1)){ + a16 = 7; + a29 = 1; + a21 = 10; + a9 = 9; + a20 = 1; + a1 = 12; + a13 = 0; + a11 = 0; + a5 = 4; + }else{ + a11 = 0; + a25 = 1; + a21 = 10; + a19 = 1; + a16 = 7; + a20 = 1; + a12 = 0; + a1 = 12; + a9 = 7; + } + return 25; + } else if(((((a28==1)&&((a1==14)&&(((a19==5)&&((!(a28==1)||((a21==11)&&(a6==1)))||(a26==1)))&&(a11==1))))&&(a16==11))&&(((a2==1)&&((a6==1)&&(((((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))&&(input==6))&&(a20==1))))&&(a17==2)))){ + a0 = 0; + a5 = 4; + a21 = 10; + a23 = 1; + a19 = 1; + a16 = 7; + a28 = 1; + a1 = 12; + a9 = 7; + return -1; + } else if(((!(a12==1)&&(((a26==1)&&((((!(a28==1)&&((input==5)&&((a5==4)||(a5==5))))&&!(a6==1))&&(a26==1))&&(a19==1)))&&(a20==1)))&&(((((a16==10)&&((a9==10)&&((a6==1)&&(a21==11))))&&(a17==2))&&(a1==12))&&!(a13==1)))){ + a5 = 5; + a10 = 0; + a21 = 10; + a7 = 1; + a16 = 7; + a9 = 8; + return 21; + } else if((((a4==1)||((((a21==10)&&((a28==1)&&(a19==1)))&&(a17==2))&&!(a7==1)))&&((a13==1)&&(((a6==1)&&((a16==10)&&(!(a20==1)&&(((((((a5==5)&&(a1==12))&&(a9==11))||((a9==11)&&((a1==12)&&(a5==6))))||(((a1==13)&&(a5==4))&&(a9==7)))&&(input==4))&&!(a4==1)))))&&!(a26==1))))){ + if((a11==1)){ + a3 = 0; + a5 = 4; + a1 = 14; + a9 = 11; + a25 = 0; + a20 = 1; + a16 = 7; + a18 = 1; + }else{ + a28 = 0; + a20 = 1; + a5 = 6; + a1 = 13; + a16 = 7; + a25 = 1; + a9 = 10; + a2 = 0; + } + return -1; + } else if(((((a4==1)||(((((a20==1)&&((a19==3)&&(a11==1)))&&(a1==14))&&(a28==1))||!(a28==1)))&&(a16==8))&&(!(a8==1)&&((!(a18==1)&&(((((input==6)&&((a5==5)||(a5==6)))&&!(a18==1))&&(a9==10))&&(a17==2)))&&(a21==12))))){ + a24 = 0; + a1 = 12; + a20 = 0; + a21 = 10; + a19 = 5; + a5 = 6; + a2 = 1; + a18 = 0; + return 21; + } else if((((((a8==1)&&((a16==7)&&(!(a6==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1)))))&&(a20==1))&&(a9==11))&&((a21==10)&&((a19==2)&&(((((((a3==1)&&!(a6==1))&&(a0==1))&&!(a11==1))&&!(a11==1))&&(a17==2))&&(a1==14)))))){ + a2 = 0; + a9 = 7; + a5 = 4; + a0 = 1; + a1 = 13; + a23 = 0; + a19 = 1; + return -1; + } else if((((a1==12)&&(!(a7==1)&&((a17==2)&&((a21==12)&&((a16==8)&&((((a19==3)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==3)))&&!(a4==1))&&!(a26==1)))))))&&((a20==1)&&((a24==1)||((a27==1)||((a2==1)&&!(a26==1))))))){ + a4 = 0; + a5 = 6; + a1 = 13; + a9 = 7; + a19 = 2; + a6 = 1; + a7 = 0; + a16 = 10; + return 22; + } else if((((((a6==1)&&((a21==12)&&(!(a24==1)&&((((a19==5)&&(((a5==4)&&(a1==12))&&(a9==7)))||(((a19==4)&&(((a5==5)&&(a1==14))&&(a9==11)))||((((a1==14)&&(a5==6))&&(a9==11))&&(a19==4))))&&(input==3)))))&&!(a7==1))&&(a16==8))&&(!(a20==1)&&(((a17==2)&&(((a13==1)||!(a23==1))&&(a6==1)))||(a24==1))))){ + if((a23==1)){ + a19 = 2; + a25 = 1; + a9 = 8; + a22 = 1; + a20 = 1; + a16 = 11; + a1 = 14; + a6 = 0; + a5 = 4; + }else{ + a9 = 8; + a5 = 6; + a1 = 12; + a22 = 1; + a16 = 7; + a20 = 1; + a13 = 0; + a21 = 10; + a8 = 1; + a19 = 1; + } + return -1; + } else if((((a1==12)&&(((a5==4)&&(!(a8==1)&&((a19==3)&&(((!(a18==1)&&(((a21==10)&&(input==3))&&(a6==1)))&&!(a14==1))&&(a2==1)))))&&(a9==8)))&&(!(a20==1)&&((a16==8)&&(((a12==1)&&(a28==1))&&(a17==2)))))){ + a12 = 1; + a19 = 1; + a13 = 1; + a9 = 7; + a16 = 7; + a26 = 0; + a20 = 1; + return -1; + } else if((((a23==1)&&(!(a8==1)&&(((a17==2)&&((a21==12)&&((!(a20==1)&&((a16==10)&&((input==5)&&((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10))))))&&!(a4==1))))&&(a6==1))))&&(((((a19==3)&&(a28==1))&&(a1==14))&&(a6==1))||(a27==1)))){ + a19 = 2; + a20 = 1; + a5 = 4; + a2 = 0; + a16 = 8; + a9 = 9; + a21 = 10; + a26 = 1; + a8 = 1; + a1 = 13; + return -1; + } else if(((((((((a21==12)&&(!(a0==1)&&((a3==1)&&!(a20==1))))||(a0==1))&&(a19==5))&&(a17==2))&&!(a26==1))||!(a11==1))&&((a28==1)&&((a23==1)&&((a16==9)&&((((((a5==6)&&(a1==12))&&(a9==11))||(((a1==13)&&(a5==4))&&(a9==7)))||(((a1==13)&&(a5==5))&&(a9==7)))&&(input==1))))))){ + a5 = 6; + a6 = 0; + a19 = 3; + a27 = 1; + a9 = 10; + a29 = 1; + a1 = 14; + a20 = 1; + return -1; + } else if((((a3==1)&&((((((a16==7)&&(((input==6)&&((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a5==4)&&(a9==11))))&&(a19==5)))&&(a11==1))&&(a28==1))&&(a3==1))&&(a1==14)))&&((!(a7==1)&&((!(a13==1)||((a21==11)&&(a6==1)))&&(a17==2)))&&(a20==1)))){ + a3 = 1; + a19 = 3; + a9 = 8; + a16 = 8; + a21 = 12; + a23 = 1; + a5 = 4; + a28 = 1; + return 23; + } else if((((a19==5)&&(((a24==1)||(((a12==1)&&(!(a2==1)||((a13==1)&&(a16==10))))||(a7==1)))&&(a17==2)))&&((a20==1)&&((((a12==1)&&((a21==10)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))&&(input==6))))&&(a2==1))&&(a1==13))))){ + a19 = 1; + a28 = 1; + a18 = 0; + a9 = 7; + a13 = 1; + a21 = 11; + a5 = 5; + a16 = 11; + return 23; + } else if(((((a6==1)&&((a3==1)&&((((((a21==12)&&((a16==8)&&(!(a24==1)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==6)))))&&(a6==1))&&(a19==4))&&!(a20==1))&&(a17==2))))&&!(a4==1))&&((!(a26==1)&&(a11==1))&&(a1==14)))){ + if((a16==9)){ + a19 = 2; + a20 = 1; + a15 = 1; + a9 = 9; + a21 = 10; + a25 = 0; + a13 = 0; + a5 = 4; + a16 = 7; + a1 = 12; + }else{ + a21 = 11; + a11 = 0; + a16 = 10; + a19 = 5; + a28 = 0; + a5 = 4; + a9 = 9; + a13 = 0; + } + return -1; + } else if((((!(a18==1)&&(((a21==10)&&((a1==14)&&((a9==7)&&(((a19==5)&&(input==6))&&!(a0==1)))))&&(a16==10)))&&(a17==2))&&((!(a26==1)&&(!(a20==1)&&((!(a8==1)&&((a5==4)&&(a2==1)))&&(a13==1))))||(a7==1)))){ + a4 = 1; + a9 = 9; + a25 = 1; + a21 = 12; + a0 = 1; + a1 = 12; + a20 = 1; + a16 = 11; + return -1; + } else if((((a16==7)&&(!(a4==1)&&((a28==1)&&((((a21==12)&&((input==1)&&(a9==8)))&&(a19==2))&&!(a20==1)))))&&(((a5==6)&&((a4==1)||(((a13==1)&&(!(a26==1)&&((a13==1)&&!(a26==1))))&&(a1==12))))&&(a17==2)))){ + a12 = 1; + a16 = 10; + a6 = 1; + a21 = 10; + a20 = 1; + a7 = 0; + a5 = 5; + a19 = 1; + return 21; + } else if(((((!(a3==1)||((!(a12==1)||((((!(a23==1)||((a11==1)||!(a23==1)))&&(a19==4))&&(a17==2))&&(a21==11)))&&!(a0==1)))&&(a16==10))||(a18==1))&&((((((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))&&(input==6))&&(a20==1))&&(a1==14)))){ + a9 = 9; + a21 = 10; + a16 = 7; + a5 = 5; + a13 = 1; + a19 = 2; + a1 = 13; + a24 = 0; + a0 = 0; + return 25; + } else if((((a28==1)&&((a12==1)&&(((a17==2)&&(((a23==1)&&((input==5)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))))&&(a2==1)))&&(a19==2))))&&(!(a14==1)&&((a21==10)&&((a20==1)&&((((a16==10)&&(a28==1))||!(a2==1))&&(a1==13))))))){ + a19 = 5; + a9 = 9; + a5 = 6; + a14 = 0; + a11 = 1; + a26 = 0; + a16 = 11; + return 22; + } else if(((((a6==1)&&((((a21==10)&&(((a9==9)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a2==1)))&&!(a27==1)))&&(a11==1))&&!(a24==1)))&&(a16==9))&&(((a17==2)&&(((a1==12)&&(!(a23==1)||(a2==1)))&&!(a20==1)))&&(a19==2)))){ + a1 = 14; + a3 = 0; + a9 = 10; + a20 = 1; + a29 = 1; + a16 = 7; + a4 = 1; + a5 = 5; + a19 = 1; + return -1; + } else if((((a9==11)&&(!(a20==1)&&((!(a26==1)&&(((a16==10)&&((((input==1)&&(a5==5))&&(a21==11))&&!(a7==1)))&&(a28==1)))&&(a19==3))))&&(((a17==2)&&(!(a0==1)&&((a14==1)||(!(a2==1)||(a13==1)))))&&(a1==13)))){ + a21 = 10; + a5 = 4; + a2 = 0; + a9 = 7; + a16 = 9; + a19 = 5; + a29 = 1; + a20 = 1; + a24 = 1; + return -1; + } else if(((((!(a2==1)||(((((!(a23==1)||((a13==1)||!(a23==1)))||(a8==1))&&(a19==5))&&!(a14==1))||!(a28==1)))&&(a5==6))&&(a21==12))&&((((a1==12)&&((a17==2)&&((input==3)&&(a9==10))))&&(a16==10))&&(a20==1)))){ + a5 = 4; + a16 = 7; + a8 = 0; + a9 = 7; + a19 = 1; + a21 = 10; + a3 = 1; + return -1; + } else if(((((!(a20==1)&&((a9==9)&&(((a13==1)&&((a1==14)&&(a13==1)))&&(a21==10))))&&(a19==3))&&(a16==7))&&(((a3==1)&&(((a17==2)&&((((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a27==1))&&(a2==1)))&&(a28==1)))&&(a13==1)))){ + a19 = 4; + a18 = 0; + a28 = 1; + a5 = 5; + a1 = 12; + a23 = 1; + a9 = 8; + return 23; + } else if(((((a1==14)&&(((((((a16==7)&&((input==5)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))))&&(a19==3))&&!(a7==1))&&!(a14==1))&&!(a27==1))&&(a21==12)))&&!(a18==1))&&((((a27==1)||((a2==1)&&(a17==2)))||(a8==1))&&(a20==1)))){ + a9 = 7; + a24 = 0; + a1 = 12; + a4 = 0; + a21 = 10; + a5 = 4; + a19 = 1; + a12 = 1; + return -1; + } else if((((!(a20==1)&&((!(a7==1)&&((a5==4)&&((!(a8==1)&&(!(a4==1)&&((a21==11)&&(input==1))))&&(a17==2))))&&(a16==9)))&&(a6==1))&&((!(a23==1)||((((a9==11)&&(a3==1))&&(a1==13))&&!(a27==1)))&&(a19==2)))){ + a27 = 1; + a5 = 6; + a1 = 12; + a13 = 0; + a19 = 1; + a29 = 0; + a20 = 1; + a16 = 7; + a9 = 7; + a21 = 10; + return -1; + } else if(((((!(a13==1)||((a18==1)||((a1==13)&&((a6==1)&&(a11==1)))))&&(a17==2))&&(a21==10))&&((((a9==9)&&((a19==1)&&((a2==1)&&(!(a8==1)&&(!(a20==1)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6))))))))&&(a16==8))&&!(a8==1)))){ + a1 = 12; + a16 = 7; + a8 = 0; + a4 = 0; + a5 = 4; + a28 = 1; + a9 = 7; + a20 = 1; + return -1; + } else if((((a17==2)&&((a18==1)&&(((((a11==1)&&(a24==1))&&(a26==1))&&(a19==1))&&!(a3==1))))&&((!(a2==1)&&(((a9==9)&&(((a16==8)&&((a21==12)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6))))&&(a20==1)))&&(a14==1)))&&(a1==13)))){ + a9 = 8; + a21 = 10; + a1 = 14; + a16 = 7; + a5 = 5; + a28 = 0; + a2 = 0; + a18 = 1; + return 26; + } else if(((((a2==1)&&((a17==2)&&((a1==14)&&((((a5==4)||(a5==5))&&(input==3))&&(a9==10)))))&&(a6==1))&&((!(a4==1)&&(((((((a13==1)&&(a16==8))||!(a2==1))&&(a21==10))&&!(a20==1))&&(a19==3))&&!(a0==1)))&&!(a8==1)))){ + a27 = 0; + a5 = 4; + a9 = 7; + a19 = 1; + a23 = 1; + a16 = 7; + a13 = 1; + a1 = 12; + a20 = 1; + return -1; + } else if((((a1==14)&&((((a28==1)&&(((a17==2)&&((a6==1)&&((a12==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))))&&!(a14==1)))&&(a21==12))&&(a20==1)))&&((a19==3)&&(((((a28==1)&&!(a24==1))&&(a6==1))&&(a16==10))&&(a9==8))))){ + a21 = 10; + a19 = 2; + a18 = 0; + a16 = 7; + a3 = 1; + a12 = 1; + a1 = 13; + a5 = 5; + a9 = 9; + return 25; + } else if(((((a16==11)&&((a6==1)&&(((a17==2)&&(a23==1))&&!(a18==1))))&&!(a7==1))&&((a20==1)&&((((((a1==13)&&((a9==8)&&(((input==6)&&((a5==4)||(a5==5)))&&!(a27==1))))&&(a21==11))&&!(a26==1))&&!(a7==1))&&(a19==2))))){ + a1 = 12; + a19 = 4; + a16 = 10; + a3 = 1; + a2 = 1; + a5 = 5; + return 21; + } else if(((!(a24==1)&&((a4==1)||(((((a21==12)&&(!(a20==1)&&((a13==1)&&(a16==8))))&&(a17==2))&&(a12==1))||(a4==1))))&&((a3==1)&&((a1==14)&&(!(a7==1)&&((a19==1)&&(((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))&&(input==6)))))))){ + a21 = 10; + a14 = 1; + a3 = 0; + a16 = 7; + a9 = 10; + a20 = 1; + a29 = 0; + a5 = 6; + return 21; + } else if(((!(a18==1)&&((((((a5==5)||(a5==6))&&(input==5))&&(a12==1))&&!(a20==1))&&(a21==12)))&&((a18==1)||((a23==1)&&(((a9==7)&&((a19==4)&&(((a17==2)&&(((a11==1)&&(a16==8))&&!(a0==1)))&&(a1==14))))||(a26==1)))))){ + if((a27==1)){ + a21 = 11; + a20 = 1; + a13 = 0; + a26 = 1; + a5 = 5; + a1 = 12; + a9 = 9; + a12 = 0; + a19 = 1; + a16 = 11; + }else{ + a27 = 1; + a9 = 9; + a21 = 11; + a10 = 1; + a5 = 6; + a26 = 1; + } + return -1; + } else if(((((a13==1)&&((a13==1)&&((((a9==9)&&(((a13==1)&&((a17==2)&&(((a21==11)&&(input==1))&&(a3==1))))&&(a20==1)))&&(a1==12))&&(a19==5))))&&(a2==1))&&((a14==1)||((a5==5)&&((a28==1)&&(a16==10)))))){ + a9 = 7; + a24 = 0; + a16 = 7; + a28 = 1; + a21 = 10; + a19 = 1; + a5 = 4; + a2 = 1; + return -1; + } else if(((!(a4==1)&&((((!(a20==1)&&(((((input==5)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(a21==11))&&(a19==5))&&(a17==2)))&&!(a8==1))&&!(a4==1))&&!(a18==1)))&&(((a1==12)&&(!(a0==1)&&((a16==8)&&(a6==1))))||!(a23==1)))){ + a5 = 4; + a19 = 1; + a9 = 7; + a18 = 0; + a8 = 0; + a12 = 1; + a20 = 1; + a21 = 10; + a16 = 7; + return -1; + } else if(((!(a7==1)&&((a5==5)&&((a21==10)&&((!(a26==1)&&((a23==1)&&((((input==6)&&(a20==1))&&(a17==2))&&(a1==14))))&&(a9==8)))))&&((!(a24==1)&&((((a3==1)&&(a19==3))&&(a23==1))&&!(a27==1)))&&(a16==9)))){ + a24 = 0; + a1 = 12; + a12 = 1; + a16 = 7; + a5 = 4; + a13 = 1; + a9 = 7; + a19 = 1; + return -1; + } else if((((a3==1)&&((((a1==12)&&((a21==12)&&((a12==1)||!(a11==1))))&&!(a20==1))&&(a16==10)))&&(!(a8==1)&&(((((!(a26==1)&&(((input==5)&&((a5==4)||(a5==5)))&&(a9==10)))&&(a19==3))&&(a17==2))&&(a2==1))&&(a6==1))))){ + if((a13==1)){ + a21 = 10; + a7 = 1; + a16 = 7; + a2 = 0; + a19 = 1; + a6 = 0; + a9 = 7; + a20 = 1; + a5 = 4; + a1 = 13; + }else{ + a9 = 11; + a21 = 10; + a5 = 5; + a7 = 1; + a19 = 1; + a16 = 7; + a4 = 1; + a20 = 1; + a22 = 1; + } + return -1; + } else if((((a16==9)&&((a19==3)&&(((a3==1)||(a14==1))&&(a1==13))))&&(((((a17==2)&&(((!(a20==1)&&(!(a26==1)&&(((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))&&(input==3))))&&!(a24==1))&&!(a14==1)))&&(a28==1))&&(a21==11))&&(a13==1)))){ + if((a26==1)){ + a22 = 0; + a29 = 0; + a20 = 1; + a5 = 6; + a19 = 2; + a9 = 7; + a16 = 7; + a4 = 1; + a21 = 10; + a1 = 12; + }else{ + a19 = 1; + a3 = 0; + a5 = 4; + a15 = 0; + a1 = 12; + a16 = 7; + a20 = 1; + a21 = 12; + a9 = 8; + a22 = 1; + } + return 21; + } else if((((a26==1)||(((((a28==1)&&(a9==8))&&(a2==1))&&(a21==10))&&(a1==13)))&&(!(a18==1)&&((!(a7==1)&&(!(a20==1)&&((((!(a0==1)&&((a5==5)&&(input==5)))&&(a16==11))&&(a17==2))&&(a19==2))))&&!(a26==1))))){ + a20 = 1; + a8 = 1; + a19 = 1; + a9 = 9; + a1 = 14; + a3 = 0; + a2 = 0; + a5 = 6; + a16 = 7; + return -1; + } else if(((((a27==1)||((a4==1)||(((a11==1)&&(a5==4))&&(a11==1))))&&(a21==11))&&((a16==11)&&((((!(a27==1)&&(((((input==6)&&(a1==14))&&(a20==1))&&!(a8==1))&&(a19==3)))&&(a17==2))&&(a3==1))&&(a9==9))))){ + a4 = 0; + a11 = 1; + a21 = 10; + a16 = 7; + a9 = 7; + a19 = 1; + a0 = 0; + a1 = 12; + return -1; + } else if(((!(a18==1)&&((a11==1)&&((a17==2)&&((a20==1)&&((a9==10)&&(((a1==12)&&((a19==2)&&(input==3)))&&(a23==1)))))))&&((a13==1)&&((a5==4)&&(!(a0==1)&&((a16==11)&&(!(a3==1)||((a2==1)&&(a21==11))))))))){ + a16 = 7; + a9 = 7; + a28 = 1; + a21 = 10; + a19 = 1; + a27 = 0; + return -1; + } else if(((!(a27==1)&&(((a21==12)&&(((a16==8)&&(((a28==1)||!(a28==1))&&(a1==13)))||(a4==1)))&&(a17==2)))&&(!(a20==1)&&(((a19==5)&&((a23==1)&&(!(a4==1)&&(((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5)))&&(input==6)))))&&!(a14==1))))){ + if((a20==1)){ + a5 = 4; + a21 = 10; + a13 = 0; + a9 = 9; + a7 = 1; + a0 = 1; + }else{ + a19 = 4; + a16 = 9; + a9 = 10; + a20 = 1; + a5 = 5; + a23 = 0; + a2 = 0; + a11 = 0; + } + return -1; + } else if((((a19==5)&&((a17==2)&&(((a26==1)&&((a26==1)&&((a14==1)&&(a28==1))))&&(a9==7))))&&(((((((a16==8)&&((a5==6)&&((input==5)&&(a1==14))))&&(a21==12))&&!(a28==1))&&(a20==1))&&(a27==1))&&(a7==1)))){ + a22 = 0; + a19 = 1; + a1 = 13; + a5 = 5; + a21 = 10; + a16 = 7; + a8 = 1; + a3 = 0; + return 25; + } else if((((a1==14)&&((a11==1)&&((a21==12)&&((((input==6)&&(a9==9))&&(a17==2))&&(a6==1)))))&&((a7==1)||((((a19==5)&&(((a16==10)&&(((a28==1)&&(a5==5))||!(a23==1)))&&(a20==1)))&&!(a4==1))||!(a2==1))))){ + a4 = 0; + a24 = 0; + a19 = 4; + a14 = 0; + a9 = 11; + a21 = 10; + a16 = 7; + return 25; + } else if(((((a16==11)&&(!(a8==1)&&((a6==1)||(a14==1))))&&(a17==2))&&((!(a4==1)&&((a19==1)&&((a23==1)&&((a28==1)&&(((a21==10)&&((((((a5==6)&&(a1==13))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==14))))||(((a1==14)&&(a5==5))&&(a9==7)))&&(input==6)))&&!(a26==1))))))&&!(a20==1)))){ + if((a23==1)){ + a7 = 1; + a28 = 0; + a1 = 14; + a20 = 1; + a16 = 7; + a5 = 4; + a9 = 10; + a22 = 0; + }else{ + a10 = 0; + a5 = 4; + a22 = 1; + a21 = 11; + a7 = 1; + a1 = 14; + a19 = 3; + a9 = 10; + a16 = 7; + } + return 23; + } else if((((((((a28==1)&&((a19==5)&&((a21==10)&&((a12==1)&&(a6==1)))))&&(a17==2))&&(a12==1))&&(a3==1))&&(a5==5))&&((((a23==1)&&((((a16==7)&&(input==3))&&(a1==12))&&(a12==1)))&&!(a20==1))&&(a9==8)))){ + a0 = 0; + a21 = 11; + a19 = 2; + a9 = 9; + a20 = 1; + a16 = 10; + a5 = 6; + a7 = 0; + a1 = 13; + return 21; + } else if((((a2==1)&&(((a1==12)&&(!(a18==1)&&((a20==1)&&(((a5==5)||(a5==6))&&(input==6)))))&&(a11==1)))&&((a17==2)&&((((a19==2)&&((((a28==1)&&((a21==10)&&(a13==1)))&&(a16==9))&&(a9==9)))&&!(a24==1))||!(a6==1))))){ + a4 = 0; + a16 = 7; + a19 = 1; + a27 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if((((a2==1)&&(!(a7==1)&&((((a6==1)&&(((((a9==7)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3)))&&(a21==12))&&!(a20==1))&&(a17==2)))&&(a1==13))&&(a16==10))))&&((a26==1)||((a24==1)||(((a23==1)&&!(a24==1))&&(a19==3)))))){ + a23 = 0; + a19 = 1; + a4 = 1; + a15 = 0; + a21 = 10; + a1 = 12; + a20 = 1; + a5 = 6; + a9 = 10; + a16 = 7; + return -1; + } else if((((!(a24==1)&&(!(a26==1)&&((a1==13)&&(((a5==4)||(a5==5))&&(input==4)))))&&!(a18==1))&&((a13==1)&&((a19==5)&&((((((((a16==8)&&(a11==1))&&(a9==9))&&!(a8==1))&&(a21==10))&&(a17==2))&&(a20==1))&&!(a27==1)))))){ + a19 = 4; + a21 = 11; + a5 = 5; + a24 = 0; + a28 = 1; + a13 = 1; + a9 = 10; + a1 = 12; + return 26; + } else if((((!(a4==1)&&((a9==7)&&(!(a27==1)&&((((a16==9)&&((a19==5)&&((((input==3)&&(a5==6))&&(a17==2))&&(a21==12))))&&(a20==1))&&!(a14==1)))))&&!(a24==1))&&(!(a18==1)&&((a3==1)&&((a1==14)&&(a13==1)))))){ + a21 = 10; + a19 = 1; + a5 = 4; + a11 = 1; + a16 = 7; + a1 = 12; + a28 = 1; + a24 = 0; + return -1; + } else if(((!(a14==1)&&((a5==5)&&((!(a26==1)&&(a6==1))&&(a9==7))))&&(((a1==12)&&(!(a27==1)&&((((a16==10)&&(!(a8==1)&&((a12==1)&&(((input==5)&&(a17==2))&&(a21==11)))))&&!(a14==1))&&(a20==1))))&&(a19==3)))){ + a9 = 9; + a5 = 4; + a21 = 10; + a16 = 7; + a11 = 1; + a23 = 1; + a0 = 0; + a19 = 2; + a1 = 13; + return 25; + } else if((((!(a27==1)&&((((((!(a0==1)&&((a23==1)&&(a21==11)))||!(a2==1))||!(a2==1))&&(a20==1))&&(a17==2))||(a18==1)))&&(a19==4))&&((a16==7)&&((((((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(input==4))&&(a6==1))&&(a1==12))))){ + a19 = 2; + a16 = 8; + a24 = 0; + a28 = 1; + a9 = 11; + a1 = 14; + a27 = 0; + a5 = 4; + return 21; + } else if((((!(a27==1)&&(((a0==1)||((a1==13)&&((((a17==2)&&(a13==1))&&(a21==12))&&(a20==1))))&&(a6==1)))&&(a16==9))&&(((a28==1)&&(!(a0==1)&&(((((a5==5)||(a5==6))&&(input==4))&&(a23==1))&&(a19==1))))&&(a9==10)))){ + a14 = 0; + a2 = 1; + a16 = 7; + a9 = 7; + a21 = 10; + a1 = 12; + a28 = 1; + a5 = 4; + return -1; + } else if(((((a3==1)&&((a17==2)&&(((a28==1)||!(a3==1))&&!(a27==1))))&&!(a18==1))&&(((a9==7)&&((a19==2)&&((((!(a7==1)&&((a16==8)&&((input==4)&&((a5==5)||(a5==6)))))&&(a21==10))&&(a1==13))&&!(a4==1))))&&(a20==1)))){ + a19 = 1; + a16 = 7; + a27 = 0; + a1 = 12; + a5 = 4; + a26 = 0; + return -1; + } else if((((a19==2)&&(((a9==10)&&(!(a4==1)&&((!(a20==1)&&((a16==11)&&((a7==1)||(a11==1))))&&(a21==10))))&&(a17==2)))&&((a3==1)&&(!(a24==1)&&((a2==1)&&(((a1==14)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5)))&&!(a4==1))))))){ + a2 = 0; + a26 = 1; + a5 = 6; + a27 = 1; + a16 = 7; + a19 = 1; + a1 = 12; + a20 = 1; + return 25; + } else if((((a17==2)&&(((((!(a26==1)&&((a7==1)||((a16==8)&&(a23==1))))&&!(a4==1))&&!(a18==1))&&(a13==1))&&(a9==9)))&&(((a21==12)&&((((a1==14)&&(((a5==4)||(a5==5))&&(input==5)))&&!(a20==1))&&(a28==1)))&&(a19==4)))){ + if((a0==1)){ + a27 = 1; + a1 = 12; + a19 = 2; + a9 = 7; + a5 = 6; + a21 = 10; + a20 = 1; + a16 = 7; + a14 = 1; + a13 = 0; + }else{ + a5 = 6; + a29 = 1; + a21 = 10; + a20 = 1; + a2 = 0; + a1 = 12; + a15 = 0; + a19 = 1; + a16 = 7; + } + return -1; + } else if(((!(a2==1)||(((((a11==1)&&(((a17==2)&&(a11==1))&&!(a27==1)))&&!(a20==1))&&(a13==1))&&(a16==8)))&&(((a19==5)&&(((a13==1)&&((a21==11)&&((a2==1)&&((input==6)&&((a5==4)||(a5==5))))))&&(a9==10)))&&(a1==14)))){ + a5 = 4; + a19 = 2; + a9 = 7; + a25 = 0; + a22 = 0; + a1 = 12; + a18 = 1; + a20 = 1; + return 25; + } else if((((((!(a27==1)&&((a16==7)&&((input==4)&&(a19==5))))&&!(a0==1))&&(a1==14))&&!(a20==1))&&((a23==1)&&((((((a18==1)||((a5==4)&&((a3==1)&&(a17==2))))&&(a2==1))&&(a9==10))&&(a21==10))||(a18==1))))){ + a9 = 9; + a8 = 0; + a1 = 13; + a20 = 1; + a13 = 1; + a19 = 2; + a6 = 1; + return 23; + } else if((((a19==4)&&((a16==10)&&(!(a18==1)&&((a21==11)&&((a20==1)&&(((a13==1)||!(a6==1))||!(a6==1)))))))&&((a17==2)&&((!(a27==1)&&(((((a9==7)&&((a5==4)&&(a1==13)))||(((a9==11)&&((a1==12)&&(a5==5)))||(((a1==12)&&(a5==6))&&(a9==11))))&&(input==6))&&!(a0==1)))&&(a6==1))))){ + a21 = 10; + a19 = 2; + a27 = 0; + a2 = 1; + a1 = 13; + a12 = 1; + a9 = 9; + a5 = 5; + a16 = 7; + return -1; + } else if((((a8==1)&&(!(a23==1)&&((a16==9)&&(!(a28==1)&&((a17==2)&&(a23==1))))))&&(!(a11==1)&&(((a1==12)&&((a19==2)&&(!(a11==1)&&((a20==1)&&(((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==3))&&(a21==12))))))&&(a27==1))))){ + a1 = 14; + a21 = 11; + a9 = 7; + a5 = 5; + a29 = 0; + a23 = 0; + a16 = 7; + a18 = 1; + return 26; + } else if((((a17==2)&&((a18==1)||(((a3==1)&&((((a18==1)||(!(a0==1)&&(a28==1)))&&!(a20==1))&&(a1==14)))&&(a19==5))))&&((a9==11)&&((((((input==1)&&(a16==8))&&(a21==12))&&(a11==1))&&(a13==1))&&(a5==4))))){ + if((a0==1)){ + a13 = 0; + a1 = 12; + a21 = 10; + a20 = 1; + a24 = 1; + a16 = 7; + a9 = 10; + a3 = 0; + a19 = 1; + }else{ + a16 = 9; + a21 = 10; + a5 = 5; + a13 = 0; + a23 = 0; + a9 = 8; + a19 = 3; + a28 = 0; + a20 = 1; + } + return 21; + } else if((((a19==5)&&(((((a17==2)&&((a20==1)&&(((((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))&&(input==1))&&(a2==1))&&(a16==8))))&&(a1==14))&&(a11==1))&&(a12==1)))&&(!(a3==1)||((a18==1)||((!(a27==1)&&(a3==1))&&(a21==11)))))){ + a28 = 1; + a19 = 2; + a16 = 7; + a27 = 0; + a9 = 9; + a21 = 10; + a5 = 4; + a24 = 0; + a1 = 13; + return -1; + } else if(((((((a12==1)&&((a21==12)&&(a6==1)))&&(a1==13))&&(a17==2))&&(a9==9))&&((a11==1)&&(((a16==8)&&((!(a7==1)&&((((((a5==4)||(a5==5))&&(input==6))&&(a19==2))&&!(a14==1))&&(a20==1)))&&!(a27==1)))&&(a11==1))))){ + a19 = 1; + a11 = 1; + a16 = 10; + a2 = 1; + a9 = 11; + a5 = 4; + a1 = 12; + return 22; + } else if((((a6==1)&&((a19==1)&&((((a20==1)&&(a2==1))&&(a16==9))&&(a9==11))))&&((a11==1)&&((((((a1==14)&&((a17==2)&&((a23==1)&&(((a5==4)||(a5==5))&&(input==6)))))&&(a21==10))&&!(a18==1))&&(a13==1))&&(a28==1))))){ + a16 = 8; + a5 = 5; + a13 = 1; + a1 = 12; + a20 = 0; + a9 = 10; + a19 = 3; + a18 = 0; + a23 = 1; + return 21; + } else if((((((a1==12)&&((a0==1)&&(!(a2==1)&&((((a23==1)&&!(a28==1))&&(a18==1))&&(a17==2)))))&&(a9==7))&&(a24==1))&&((a19==1)&&((a20==1)&&(((((a16==9)&&(input==1))&&(a21==11))&&!(a23==1))&&(a5==4)))))){ + a1 = 14; + a22 = 1; + a9 = 8; + a16 = 11; + a4 = 1; + a19 = 2; + a29 = 1; + return 21; + } else if((((a3==1)&&((((!(a12==1)||(a11==1))&&(a21==11))&&!(a8==1))&&(a16==8)))&&((!(a14==1)&&(!(a20==1)&&((((input==4)&&((((a9==11)&&((a1==14)&&(a5==6)))&&(a19==3))||(((a9==7)&&((a1==12)&&(a5==4)))&&(a19==4))))&&!(a27==1))&&(a17==2))))&&!(a14==1)))){ + a5 = 4; + a20 = 1; + a26 = 0; + a16 = 7; + a9 = 7; + a21 = 10; + a0 = 0; + a24 = 0; + a1 = 12; + a19 = 1; + return -1; + } else if((((((((a28==1)&&((!(a2==1)||(!(a2==1)||(((!(a12==1)||(a3==1))&&(a13==1))&&(a16==7))))&&(a11==1)))&&(a9==7))&&(a19==3))&&(a17==2))&&(a1==12))&&(((a21==10)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&(a20==1)))){ + a5 = 5; + a26 = 0; + a19 = 5; + a7 = 0; + return 21; + } else if((((((a1==14)&&(((a17==2)&&((a9==7)&&(input==6)))&&(a19==5)))&&(a26==1))&&(a24==1))&&(!(a13==1)&&((a5==5)&&((a16==7)&&(((a20==1)&&((!(a12==1)&&((a28==1)&&(a27==1)))&&(a21==11)))&&(a0==1))))))){ + a21 = 12; + a9 = 11; + a15 = 0; + a8 = 1; + a1 = 13; + a5 = 6; + a14 = 1; + a20 = 0; + return -1; + } else if((((a1==12)&&((((a9==9)&&(a12==1))||(a27==1))&&(a5==5)))&&(((((a11==1)&&((!(a7==1)&&((a16==8)&&(((a21==12)&&((input==1)&&(a19==3)))&&(a17==2))))&&(a20==1)))&&(a23==1))&&(a12==1))&&!(a26==1)))){ + if((a13==1)){ + a4 = 0; + a19 = 5; + a27 = 0; + a5 = 6; + a20 = 0; + a2 = 1; + a21 = 10; + a9 = 10; + }else{ + a19 = 2; + a28 = 1; + a7 = 0; + a13 = 1; + a1 = 14; + a9 = 10; + a16 = 7; + a21 = 10; + } + return 21; + } else if((((((a20==1)&&((a11==1)&&(a16==11)))&&(a9==10))&&(a17==2))&&(((a21==10)&&((a12==1)&&((((a6==1)&&((((a12==1)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6))))&&(a3==1))&&(a13==1)))&&(a1==14))&&!(a18==1))))&&(a19==4)))){ + a8 = 0; + a21 = 11; + a6 = 1; + a1 = 13; + a9 = 11; + a5 = 4; + a12 = 1; + return 25; + } else if((((((((a19==2)&&(input==4))&&(a17==2))&&!(a14==1))&&(a5==6))&&(a23==1))&&((a6==1)&&(((((((a9==10)&&(((a2==1)&&(a21==11))&&(a20==1)))&&!(a4==1))&&(a16==8))&&(a1==12))||(a4==1))||!(a11==1))))){ + a9 = 7; + a16 = 7; + a19 = 1; + a3 = 1; + a5 = 4; + a13 = 1; + a6 = 1; + a21 = 10; + return -1; + } else if(((((a16==8)&&(((a5==6)&&(((a12==1)&&(((a13==1)&&!(a27==1))&&(a17==2)))&&!(a20==1)))&&!(a7==1)))&&!(a7==1))&&(((a21==12)&&(((a19==1)&&(((a1==12)&&(input==4))&&(a9==11)))&&!(a26==1)))&&(a12==1)))){ + a26 = 1; + a16 = 7; + a12 = 0; + a20 = 1; + a5 = 4; + a19 = 2; + a21 = 10; + a3 = 0; + a9 = 7; + return -1; + } else if(((!(a26==1)&&((a16==10)&&((!(a7==1)&&((a11==1)&&((a19==1)&&((input==5)&&(((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))))))&&!(a27==1))))&&((a20==1)&&((a17==2)&&(((((a6==1)||(a14==1))&&(a1==13))&&(a6==1))&&(a21==10)))))){ + a14 = 0; + a9 = 7; + a5 = 4; + a1 = 12; + a16 = 7; + a2 = 1; + a0 = 0; + return -1; + } else if((((((a26==1)||(a13==1))&&(a2==1))&&(a1==14))&&(((!(a18==1)&&((a21==12)&&((((a20==1)&&((((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))&&(input==3))&&(a19==3))&&(a6==1)))&&(a17==2))&&(a12==1))))&&!(a24==1))&&(a16==8)))){ + a5 = 4; + a9 = 7; + a19 = 1; + a21 = 10; + a12 = 1; + a1 = 12; + a7 = 0; + a16 = 7; + a3 = 1; + return -1; + } else if((((a17==2)&&((!(a13==1)||(((a16==7)&&(((a13==1)&&(a23==1))&&(a20==1)))&&(a11==1)))&&(a19==4)))&&(((!(a24==1)&&((((input==5)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(a12==1))&&(a12==1)))&&(a21==12))&&(a1==14)))){ + a27 = 0; + a5 = 4; + a13 = 1; + a16 = 9; + a9 = 7; + a8 = 0; + a21 = 11; + a19 = 3; + a1 = 13; + return 25; + } else if((((a21==10)&&((a20==1)&&((((a17==2)&&(((a3==1)&&(a6==1))||!(a23==1)))||!(a2==1))&&!(a4==1))))&&((a1==12)&&((a9==7)&&(((a19==1)&&(((a16==8)&&(((a5==4)||(a5==5))&&(input==1)))&&(a2==1)))&&!(a26==1)))))){ + a23 = 1; + a27 = 0; + a5 = 4; + a16 = 7; + return -1; + } else if((((a19==2)&&((((a28==1)&&(a2==1))&&(a16==8))&&(a1==14)))&&((((a11==1)&&(!(a0==1)&&((!(a24==1)&&(!(a7==1)&&((a23==1)&&((input==1)&&(((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))))))&&(a20==1))))&&(a21==11))&&(a17==2)))){ + a9 = 8; + a16 = 10; + a1 = 12; + a21 = 10; + a26 = 0; + a19 = 5; + a5 = 5; + a4 = 0; + return 26; + } else if(((((a21==12)&&((a20==1)&&((input==6)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))))&&!(a4==1))&&((a6==1)&&(((a26==1)||((((((a14==1)||((a16==9)&&(a13==1)))&&(a19==4))&&(a17==2))&&(a1==13))||(a26==1)))||!(a3==1))))){ + a8 = 0; + a21 = 11; + a23 = 1; + a19 = 2; + a9 = 9; + a1 = 14; + a5 = 5; + a16 = 8; + a6 = 1; + return 25; + } else if(((((a17==2)&&(((a28==1)&&(a6==1))&&(a1==13)))&&(a16==10))&&((a9==10)&&((a20==1)&&(((a23==1)&&((((a19==3)&&((a21==10)&&((a12==1)&&((input==5)&&((a5==6)||((a5==4)||(a5==5)))))))&&!(a7==1))&&!(a26==1)))&&(a13==1)))))){ + a9 = 7; + a5 = 4; + a19 = 1; + a24 = 0; + a1 = 12; + a23 = 1; + a0 = 0; + a16 = 7; + return -1; + } else if((((((((a1==14)&&(((a17==2)&&(input==3))&&(a9==7)))&&(a16==9))&&(a5==6))&&!(a26==1))&&!(a4==1))&&((!(a7==1)&&((a19==2)&&((a28==1)&&((((a7==1)||(a2==1))&&!(a20==1))&&(a21==10)))))||!(a13==1)))){ + if((a7==1)){ + a10 = 0; + a20 = 1; + a22 = 1; + a11 = 0; + a9 = 11; + a16 = 11; + a19 = 1; + }else{ + a19 = 1; + a20 = 1; + a9 = 11; + a16 = 7; + a8 = 1; + a13 = 0; + a28 = 0; + a1 = 13; + } + return -1; + } else if(((((a19==2)&&((a2==1)&&(((((a5==4)||(a5==5))&&(input==1))&&(a9==8))&&(a21==12))))&&(a6==1))&&((((a24==1)||((a14==1)||((a16==7)&&(!(a8==1)&&(((a28==1)||(a27==1))&&!(a20==1))))))&&(a17==2))&&(a1==12)))){ + a7 = 0; + a5 = 4; + a19 = 1; + a21 = 10; + a20 = 1; + a9 = 7; + a4 = 0; + a28 = 1; + return -1; + } else if((((((((a17==2)&&((input==6)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))))&&(a21==11))&&(a20==1))&&(a19==4))&&(a16==7))&&((a14==1)&&((((a0==1)&&((a27==1)&&(!(a3==1)&&((a23==1)&&(a1==13)))))&&!(a23==1))&&(a0==1))))){ + a15 = 0; + a21 = 12; + a1 = 12; + a9 = 7; + a19 = 2; + a16 = 8; + a25 = 0; + a13 = 0; + a5 = 4; + return 25; + } else if(((((a16==10)&&((!(a4==1)&&((input==6)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))))&&(a1==14)))&&(a6==1))&&(((((a21==10)&&(((((a14==1)||(a2==1))&&!(a20==1))||(a8==1))&&(a19==2)))&&(a17==2))&&(a6==1))&&(a28==1)))){ + if((a13==1)){ + a9 = 10; + a11 = 0; + a13 = 0; + a20 = 1; + a5 = 4; + a22 = 0; + a1 = 13; + a19 = 1; + a16 = 7; + }else{ + a10 = 0; + a19 = 3; + a9 = 10; + a16 = 9; + a7 = 1; + a22 = 0; + a21 = 11; + a20 = 1; + a1 = 12; + a5 = 4; + } + return -1; + } else if((((((a5==6)&&((a16==10)&&(((a9==7)&&(!(a4==1)&&((a20==1)&&(input==5))))&&(a1==12))))&&(a11==1))&&(a2==1))&&((!(a26==1)&&(((((a28==1)||(a4==1))&&(a21==10))||(a0==1))&&(a17==2)))&&(a19==1)))){ + a0 = 0; + a5 = 4; + a26 = 0; + a16 = 7; + a14 = 0; + return -1; + } else if((((a9==10)&&(((a21==10)&&(((!(a7==1)&&(((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&!(a26==1)))&&!(a24==1))&&!(a14==1)))&&!(a26==1)))&&((a1==14)&&((a20==1)&&((a16==8)&&(((a17==2)&&((a19==4)&&(a2==1)))||!(a13==1))))))){ + a5 = 4; + a9 = 7; + a16 = 10; + a23 = 1; + a4 = 0; + a19 = 1; + a0 = 0; + return 21; + } else if(((!(a7==1)&&((a13==1)&&(((a9==8)&&((a3==1)&&((a28==1)&&(((a17==2)&&(input==5))&&(a21==10)))))&&(a5==5))))&&(((a16==8)&&(((a20==1)&&(!(a6==1)||((a19==5)&&(a12==1))))||(a18==1)))&&(a1==14)))){ + a1 = 12; + a9 = 7; + a19 = 1; + a5 = 4; + a0 = 0; + a16 = 7; + a27 = 0; + return -1; + } else if((((a5==4)&&((a17==2)&&((a9==10)&&((a27==1)||((!(a14==1)&&(a3==1))&&(a6==1))))))&&(!(a26==1)&&((a16==11)&&(((((a11==1)&&((a1==14)&&((input==6)&&(a21==12))))&&(a19==4))&&(a20==1))&&!(a27==1)))))){ + a16 = 9; + a13 = 1; + a11 = 1; + a1 = 12; + a7 = 0; + a19 = 3; + a9 = 9; + return 21; + } else if(((!(a2==1)||(((a1==13)&&(a12==1))||(a18==1)))&&(!(a7==1)&&(((a17==2)&&((a19==4)&&((!(a0==1)&&((a16==8)&&(!(a27==1)&&((((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))&&(input==6))&&!(a20==1)))))&&(a21==12))))&&(a11==1))))){ + a19 = 2; + a1 = 14; + a16 = 10; + a20 = 1; + a14 = 1; + a29 = 0; + a22 = 1; + a5 = 4; + a9 = 7; + return 21; + } else if(((((a6==1)&&((a20==1)&&(!(a8==1)&&((a16==8)&&(((input==1)&&(((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))&&!(a18==1))))))&&!(a14==1))&&((!(a2==1)||(((a19==4)&&(((a13==1)&&(a1==13))&&(a21==12)))&&(a17==2)))||!(a13==1)))){ + a19 = 1; + a21 = 10; + a9 = 7; + a16 = 7; + a1 = 12; + a0 = 0; + a18 = 0; + a5 = 4; + a7 = 0; + return -1; + } else if(((!(a27==1)&&((((a6==1)&&((input==4)&&(a9==10)))&&(a20==1))&&(a21==10)))&&(((a1==12)&&((a19==3)&&((a17==2)&&((((!(a11==1)||((a5==5)&&(a6==1)))&&(a16==8))&&(a11==1))&&!(a4==1)))))&&(a28==1)))){ + a5 = 4; + a19 = 1; + a24 = 0; + a3 = 1; + a16 = 7; + a2 = 1; + a9 = 7; + return -1; + } else if((((a20==1)&&(!(a2==1)||(((a19==5)&&(!(a7==1)&&((((a3==1)&&(a6==1))||!(a2==1))||!(a28==1))))||!(a12==1))))&&((((((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a16==9))&&(a9==10))&&(a21==12))&&(a1==12))&&(a17==2)))){ + a28 = 1; + a27 = 0; + a9 = 7; + a21 = 10; + a1 = 14; + a19 = 3; + a5 = 6; + a16 = 7; + return 25; + } else if((((a21==12)&&((a1==14)&&(!(a0==1)&&(!(a24==1)&&((a12==1)&&(!(a7==1)&&(((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8)))&&(input==1))))))))&&((a17==2)&&((a20==1)&&(((a19==1)&&((a24==1)||((a3==1)&&(a16==10))))&&!(a14==1)))))){ + a19 = 2; + a0 = 0; + a21 = 10; + a28 = 1; + a9 = 9; + a4 = 0; + a16 = 7; + a5 = 5; + a1 = 13; + return -1; + } else if(((((a3==1)&&((input==5)&&(a17==2)))&&(a19==3))&&(((a12==1)&&(!(a23==1)||((a21==12)&&((a20==1)&&((a2==1)&&(!(a8==1)&&(((a9==11)&&((a12==1)&&((a1==14)&&(a11==1))))&&(a5==4))))))))&&(a16==9)))){ + a8 = 0; + a0 = 0; + a16 = 8; + a19 = 1; + a5 = 6; + a9 = 8; + a28 = 1; + return 21; + } else if((((((((input==3)&&(a20==1))&&(a17==2))&&(a28==1))&&(a19==2))&&!(a24==1))&&((!(a4==1)&&(((a26==1)||((((a5==4)&&(!(a4==1)&&((a21==11)&&(a3==1))))&&(a16==10))&&(a1==13)))&&(a9==9)))&&(a13==1)))){ + a1 = 12; + a16 = 7; + a7 = 0; + a9 = 7; + a2 = 1; + a21 = 10; + a19 = 1; + return -1; + } else if((((a1==13)&&((((a13==1)&&((((((a21==10)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==4)))&&!(a20==1))&&!(a7==1))&&(a3==1))&&(a2==1)))&&!(a4==1))&&(a17==2)))&&(((a19==2)&&((a2==1)&&(a16==9)))||(a24==1)))){ + if((a13==1)){ + a1 = 12; + a9 = 9; + a19 = 3; + a5 = 6; + a20 = 1; + a21 = 12; + a24 = 1; + a6 = 0; + a16 = 11; + a23 = 0; + }else{ + a20 = 1; + a1 = 14; + a14 = 1; + a16 = 7; + a5 = 4; + a29 = 1; + a19 = 1; + a9 = 9; + a23 = 0; + } + return -1; + } else if(((!(a0==1)&&((a12==1)||!(a3==1)))&&((a28==1)&&((a16==7)&&((a17==2)&&((((a1==14)&&(((a20==1)&&(!(a18==1)&&((a21==10)&&(((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5)))&&(input==6)))))&&(a19==4)))&&!(a7==1))&&!(a18==1))))))){ + a13 = 1; + a28 = 1; + a5 = 5; + a1 = 12; + a9 = 10; + a21 = 12; + a19 = 1; + a18 = 0; + return 26; + } else if(((((a19==2)&&(((a8==1)||((!(a13==1)||(a12==1))&&(a16==7)))&&(a21==10)))&&(a20==1))&&(((a6==1)&&(((a1==14)&&(((a13==1)&&((a9==10)&&((input==3)&&((a5==6)||((a5==4)||(a5==5))))))&&!(a24==1)))&&(a3==1)))&&(a17==2)))){ + a4 = 0; + a5 = 4; + a0 = 0; + a19 = 1; + a9 = 7; + a1 = 12; + a23 = 1; + return -1; + } else if((((a21==11)&&(!(a4==1)&&(((a28==1)&&((a28==1)&&!(a24==1)))||!(a3==1))))&&((a16==8)&&((a17==2)&&(((a2==1)&&((((((a19==3)&&(input==1))&&(a9==11))&&(a20==1))&&(a13==1))&&(a5==4)))&&(a1==13)))))){ + a19 = 1; + a18 = 0; + a21 = 10; + a1 = 12; + a16 = 7; + a26 = 0; + a9 = 7; + a8 = 0; + return -1; + } else if(((((a19==3)&&((((a21==12)&&(((((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(input==1))&&!(a7==1)))&&(a17==2))&&!(a4==1)))&&!(a20==1))&&(((((((a23==1)||(a26==1))&&!(a7==1))||(a0==1))&&!(a26==1))&&(a16==10))&&(a1==13)))){ + a16 = 7; + a19 = 1; + a9 = 11; + a21 = 11; + a8 = 1; + a14 = 1; + a5 = 6; + a6 = 0; + a20 = 1; + return 21; + } else if((((a3==1)&&((((a1==13)&&((a21==10)&&(((!(a26==1)&&(((a5==4)||(a5==5))&&(input==5)))&&(a16==11))&&(a17==2))))&&!(a20==1))&&(a23==1)))&&((!(a3==1)||((((a19==3)&&(a13==1))&&!(a8==1))&&(a9==9)))||!(a28==1)))){ + a4 = 1; + a20 = 1; + a19 = 2; + a28 = 0; + a9 = 7; + a24 = 1; + a21 = 12; + a16 = 10; + a1 = 14; + a5 = 5; + return -1; + } else if((((((a20==1)&&(!(a26==1)&&(a11==1)))||(a4==1))&&(a9==8))&&(((((a28==1)&&((a11==1)&&((a17==2)&&((a19==2)&&(((a21==12)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))&&!(a7==1))))))&&(a28==1))&&(a1==12))&&(a16==7)))){ + a18 = 0; + a24 = 0; + a23 = 1; + a1 = 13; + a5 = 4; + a21 = 10; + a9 = 7; + a16 = 9; + return 26; + } else if(((((a20==1)&&((a24==1)&&(((a21==12)&&((a8==1)&&(a11==1)))&&(a19==3))))&&(a16==9))&&((a27==1)&&((a27==1)&&((a18==1)&&(((a14==1)&&(((a1==14)&&(((a5==4)||(a5==5))&&(input==5)))&&(a9==7)))&&(a17==2))))))){ + a16 = 7; + a21 = 10; + a7 = 1; + a25 = 0; + a5 = 4; + a6 = 0; + a19 = 1; + return -1; + } else if(((!(a4==1)&&(!(a8==1)&&(((a9==8)&&((a19==4)&&(a6==1)))&&(a16==11))))&&(!(a7==1)&&((a13==1)&&(!(a27==1)&&((a6==1)&&(((a17==2)&&((a20==1)&&((((a5==4)||(a5==5))&&(input==4))&&(a1==14))))&&(a21==10)))))))){ + a5 = 4; + a8 = 0; + a9 = 7; + a24 = 0; + a16 = 7; + a19 = 1; + a1 = 12; + return -1; + } else if(((((a21==11)&&((a17==2)&&((a18==1)||((a13==1)&&((a23==1)&&(a12==1))))))&&!(a0==1))&&(((a20==1)&&(((((((a5==6)&&(input==4))&&(a16==7))&&!(a24==1))&&(a1==12))&&(a9==10))&&(a23==1)))&&(a19==4)))){ + a21 = 10; + a26 = 0; + a23 = 1; + a2 = 1; + a9 = 7; + a19 = 1; + a5 = 4; + return -1; + } else if(((!(a4==1)&&((a1==13)&&(!(a4==1)&&(((a21==11)&&((((((input==3)&&(a16==8))&&(a23==1))&&(a9==10))&&(a17==2))&&(a19==5)))&&!(a20==1)))))&&(((a11==1)&&((a5==5)&&((a11==1)||(a8==1))))&&(a12==1)))){ + if((a15==1)){ + a23 = 0; + a5 = 4; + a4 = 1; + a9 = 11; + a16 = 7; + a1 = 12; + a20 = 1; + a19 = 2; + a21 = 10; + a0 = 1; + }else{ + a10 = 0; + a20 = 1; + a24 = 1; + a21 = 10; + a16 = 7; + a23 = 0; + a9 = 11; + a19 = 1; + a1 = 14; + a5 = 4; + } + return -1; + } else if((((((a21==11)&&((a19==2)&&((a23==1)&&((a26==1)||((a5==6)&&((a12==1)||(a0==1)))))))&&(a16==10))&&(a9==8))&&(((a23==1)&&((a20==1)&&((a1==12)&&((a11==1)&&((a17==2)&&(input==4))))))&&(a28==1)))){ + if((a8==1)){ + a2 = 1; + a5 = 4; + a16 = 8; + a1 = 13; + a20 = 0; + a0 = 0; + a9 = 10; + a19 = 1; + a4 = 0; + }else{ + a6 = 1; + a9 = 7; + a5 = 5; + a18 = 0; + a24 = 0; + a16 = 8; + } + return 22; + } else if((((a17==2)&&((a21==11)&&((a19==3)&&((a16==11)&&((a9==10)&&(!(a6==1)||(a23==1)))))))&&((a11==1)&&(((((a12==1)&&(((((a5==4)||(a5==5))&&(input==4))&&(a23==1))&&(a1==14)))&&(a6==1))&&(a20==1))&&(a2==1))))){ + a3 = 1; + a16 = 7; + a21 = 10; + a19 = 1; + a9 = 7; + a24 = 0; + a28 = 1; + a5 = 4; + a1 = 12; + return -1; + } else if(((((a19==3)&&(((((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==4))&&!(a14==1))&&(a3==1))&&(a16==11)))&&(a20==1))&&((((a1==14)&&((((a21==12)&&((a12==1)&&!(a4==1)))&&(a17==2))&&!(a14==1)))||!(a12==1))||(a8==1)))){ + a19 = 1; + a28 = 1; + a14 = 0; + a1 = 12; + a9 = 7; + a21 = 10; + a16 = 7; + a7 = 0; + a5 = 4; + return -1; + } else if(((!(a28==1)||((a21==11)&&((a1==12)&&((a9==11)&&((a20==1)&&(a6==1))))))&&(((((a12==1)&&((((a17==2)&&(((input==3)&&(a5==4))&&(a19==5)))&&(a16==9))&&!(a8==1)))&&!(a27==1))&&(a3==1))&&!(a18==1)))){ + a27 = 0; + a9 = 7; + a16 = 7; + a19 = 1; + a7 = 0; + a21 = 10; + a11 = 1; + return -1; + } return calculate_output56(input); + } + + int calculate_output56(int input) { + if((((((!(a20==1)&&(!(a26==1)&&(a2==1)))&&(a1==14))&&(a21==12))&&!(a0==1))&&(((((a6==1)&&(((((a16==7)&&((a19==2)&&(input==1)))&&(a3==1))&&!(a26==1))&&!(a14==1)))&&(a17==2))&&(a5==5))&&(a9==10)))){ + a1 = 12; + a12 = 1; + a20 = 1; + a9 = 7; + a2 = 1; + a19 = 1; + a21 = 10; + a8 = 0; + a5 = 4; + return -1; + } else if(((!(a4==1)&&((a20==1)&&((((a17==2)&&(((a1==12)&&(((input==6)&&((a5==5)||(a5==6)))&&(a16==7)))&&(a12==1)))&&(a21==12))&&(a2==1))))&&((((a19==5)&&(((a6==1)&&!(a24==1))&&(a12==1)))&&(a9==9))||!(a2==1)))){ + a4 = 0; + a16 = 9; + a23 = 1; + a5 = 4; + a21 = 11; + a14 = 0; + a19 = 4; + a9 = 8; + return 23; + } else if((((!(a3==1)||((a13==1)&&((a12==1)&&(a16==10))))||(a18==1))&&((a17==2)&&((a12==1)&&(((a20==1)&&((a21==11)&&((a2==1)&&((a19==2)&&((a12==1)&&((((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))&&(input==1)))))))&&(a1==12)))))){ + a9 = 7; + a2 = 1; + a16 = 8; + a21 = 10; + a4 = 0; + a1 = 14; + a19 = 5; + a5 = 4; + a6 = 1; + return 25; + } else if((((a11==1)&&(!(a11==1)||(!(a20==1)&&(!(a7==1)&&((a21==12)&&(a11==1))))))&&((!(a7==1)&&(((a19==5)&&((a17==2)&&((a16==7)&&(((((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6))))&&(input==5))&&(a13==1)))))&&(a3==1)))&&(a1==12)))){ + a5 = 4; + a6 = 1; + a20 = 1; + a9 = 9; + a19 = 1; + a2 = 1; + return 26; + } else if(((!(a0==1)&&((a1==14)&&(!(a7==1)&&((a2==1)&&(((a12==1)&&((a9==10)&&(input==1)))&&!(a18==1))))))&&(((a17==2)&&(((a5==5)&&((a21==10)&&(!(a4==1)&&((a16==11)&&(a3==1)))))&&(a19==2)))&&(a20==1)))){ + a24 = 0; + a5 = 4; + a14 = 0; + a4 = 0; + a1 = 12; + a19 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if((((((a16==10)&&((!(a20==1)&&(((a1==14)&&(a13==1))&&(a19==5)))&&!(a26==1)))&&(a6==1))&&(a5==4))&&((a21==10)&&((a11==1)&&(((a12==1)&&(!(a14==1)&&((a13==1)&&((a17==2)&&(input==6)))))&&(a9==8)))))){ + if((a6==1)){ + a28 = 0; + a9 = 7; + a2 = 0; + a26 = 1; + a16 = 8; + a5 = 6; + a19 = 2; + }else{ + a19 = 4; + a20 = 1; + a0 = 1; + a24 = 1; + a25 = 1; + a5 = 6; + } + return 25; + } else if((((!(a3==1)&&(((a24==1)&&(((a5==4)||(a5==5))&&(input==4)))&&(a21==11)))&&!(a20==1))&&(((a16==7)&&(((a7==1)&&((a9==10)&&(((a26==1)&&((a19==2)&&((a11==1)&&(a26==1))))&&(a1==13))))&&(a17==2)))&&!(a11==1)))){ + a8 = 1; + a14 = 1; + a5 = 6; + a21 = 12; + a1 = 14; + a9 = 7; + a19 = 5; + a22 = 0; + return 22; + } else if((((((((a23==1)&&(a9==7))&&(a5==4))&&(a21==12))||!(a6==1))&&(a12==1))&&(!(a26==1)&&((((((((a16==7)&&((input==4)&&(a17==2)))&&(a19==4))&&(a20==1))&&(a28==1))&&(a1==14))&&(a3==1))&&(a12==1))))){ + a13 = 1; + a21 = 10; + a19 = 1; + a1 = 12; + a8 = 0; + return -1; + } else if((((a21==10)&&((((a5==4)&&((!(a27==1)&&(!(a20==1)&&(input==1)))&&(a1==12)))&&(a3==1))&&(a16==7)))&&((a9==9)&&((a2==1)&&((((a3==1)&&((a19==3)&&((a12==1)&&(a12==1))))||!(a13==1))&&(a17==2)))))){ + a9 = 7; + a11 = 1; + a28 = 1; + a20 = 1; + a8 = 0; + a19 = 1; + return -1; + } else if(((((a16==9)&&((a19==1)&&(!(a28==1)||((a1==14)&&((a9==9)&&(((a11==1)&&(a21==12))&&(a17==2)))))))&&!(a24==1))&&((a6==1)&&((a28==1)&&(((a5==4)&&((a3==1)&&((input==4)&&!(a20==1))))&&!(a18==1)))))){ + a20 = 1; + a16 = 7; + a21 = 10; + a5 = 5; + a9 = 8; + a15 = 0; + a1 = 12; + a12 = 0; + a25 = 0; + return -1; + } else if((((a19==2)&&(((a1==14)&&(((input==3)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(a20==1)))&&(a6==1)))&&((a27==1)||((((a23==1)&&(((a21==11)&&(((a6==1)||(a4==1))&&(a16==7)))&&(a2==1)))&&(a17==2))||!(a13==1))))){ + a5 = 4; + a8 = 0; + a27 = 0; + a9 = 7; + a18 = 0; + a21 = 10; + a19 = 1; + a1 = 12; + return -1; + } else if((((a4==1)||((((a16==11)&&(((a19==2)&&((a9==9)&&((((a5==5)&&(a2==1))&&!(a7==1))&&(a28==1))))&&!(a14==1)))&&(a17==2))&&(a12==1)))&&((!(a20==1)&&((a1==14)&&((a21==10)&&(input==5))))&&(a13==1)))){ + a18 = 1; + a19 = 1; + a2 = 0; + a8 = 1; + a16 = 7; + a1 = 13; + a9 = 8; + a5 = 6; + a20 = 1; + return 21; + } else if(((((((a3==1)&&((a11==1)&&((a9==9)&&((input==1)&&(a16==7)))))&&(a1==13))&&(a19==4))&&!(a0==1))&&((((a17==2)&&((a21==12)&&((a12==1)&&((!(a27==1)&&(a3==1))&&(a5==5)))))&&(a20==1))||(a26==1)))){ + a21 = 10; + a5 = 4; + a9 = 7; + a12 = 1; + a1 = 12; + a28 = 1; + a24 = 0; + a19 = 1; + return -1; + } else if((((((a6==1)&&((((a23==1)&&!(a20==1))&&(a5==5))&&(a17==2)))||(a18==1))||(a7==1))&&((((a11==1)&&((a16==9)&&((a19==5)&&(((a21==10)&&((input==1)&&(a1==12)))&&(a9==10)))))&&(a2==1))&&!(a27==1)))){ + if((a9==8)){ + a15 = 1; + a20 = 1; + a13 = 0; + a19 = 1; + a1 = 13; + a9 = 8; + a29 = 0; + a16 = 7; + a5 = 4; + }else{ + a21 = 11; + a25 = 0; + a1 = 14; + a4 = 1; + a20 = 1; + a16 = 8; + a19 = 3; + } + return 23; + } else if((((a19==3)&&((a5==4)&&((a20==1)&&((a9==9)&&(((input==3)&&(a17==2))&&(a8==1))))))&&(((((((a26==1)&&(!(a6==1)&&((a11==1)&&(a27==1))))&&!(a11==1))&&(a26==1))&&(a16==9))&&(a1==12))&&(a21==12)))){ + a16 = 7; + a4 = 1; + a18 = 1; + a1 = 14; + a21 = 10; + a11 = 0; + a19 = 1; + return -1; + } else if(((((a1==13)&&(!(a0==1)&&((a28==1)&&(((input==1)&&((a5==5)||(a5==6)))&&!(a14==1)))))&&(a20==1))&&((a21==11)&&((((a6==1)&&((!(a23==1)||(((a6==1)&&(a16==8))&&(a9==9)))&&(a17==2)))&&(a19==4))||(a7==1))))){ + a7 = 0; + a19 = 1; + a5 = 4; + a28 = 1; + a9 = 7; + a21 = 10; + a1 = 12; + a16 = 7; + return -1; + } else if((((a21==12)&&((a16==7)&&((((a19==5)&&(((((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6))))&&(input==3))&&(a1==13)))&&(a17==2))&&(a23==1))))&&(((((a8==1)||(((a2==1)&&!(a20==1))||!(a28==1)))&&(a2==1))||!(a23==1))||!(a2==1)))){ + a19 = 1; + a5 = 4; + a27 = 0; + a9 = 7; + a20 = 1; + a21 = 10; + a0 = 0; + a2 = 1; + a1 = 12; + return -1; + } else if((((a16==7)&&((((a19==2)&&(!(a8==1)&&((a21==11)&&((a28==1)&&(a1==14)))))||(a26==1))||(a0==1)))&&((!(a20==1)&&((a3==1)&&(((a28==1)&&((a3==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5))))))&&(a9==8))))&&(a17==2)))){ + a20 = 1; + a28 = 1; + a6 = 1; + a1 = 12; + a19 = 1; + a21 = 10; + a9 = 7; + a5 = 4; + a7 = 0; + return -1; + } else if((((a20==1)&&((a9==10)&&((a0==1)||((a6==1)&&(((a16==7)&&(a12==1))&&(a1==12))))))&&((a19==3)&&(!(a0==1)&&((((((a6==1)&&(((a5==4)||(a5==5))&&(input==5)))&&!(a14==1))&&(a21==12))&&(a17==2))&&!(a0==1)))))){ + a19 = 1; + a28 = 1; + a9 = 7; + a5 = 4; + a6 = 1; + a23 = 1; + a21 = 10; + return -1; + } else if((((a16==11)&&((!(a2==1)||((((a6==1)&&(a11==1))&&(a28==1))||!(a28==1)))&&(a21==10)))&&(((a17==2)&&(((a19==1)&&((((input==5)&&((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10))))&&!(a14==1))&&!(a0==1)))&&(a1==13)))&&(a20==1)))){ + a2 = 1; + a5 = 4; + a13 = 1; + a27 = 0; + a16 = 7; + a9 = 7; + a1 = 12; + return -1; + } else if(((((!(a24==1)&&((a6==1)&&(a9==11)))||(a0==1))&&(a1==12))&&(!(a26==1)&&((((a12==1)&&(((a11==1)&&(((((input==3)&&(a5==6))&&(a20==1))&&!(a14==1))&&(a16==8)))&&(a19==3)))&&(a17==2))&&(a21==10))))){ + a24 = 0; + a3 = 1; + a19 = 1; + a16 = 7; + a5 = 4; + a9 = 7; + return -1; + } else if((((a19==5)&&((a16==7)&&((a28==1)&&(((input==6)&&(((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))))&&!(a20==1)))))&&((((a21==11)&&((a24==1)||(((a1==13)&&((a14==1)||((a17==2)&&(a28==1))))||(a0==1))))||(a0==1))||!(a6==1)))){ + a5 = 5; + a7 = 0; + a21 = 12; + a26 = 0; + a19 = 4; + a1 = 12; + a8 = 0; + a20 = 1; + a9 = 8; + a16 = 11; + return 23; + } else if((((a20==1)&&((a17==2)&&((a26==1)||((!(a6==1)||((a16==11)&&(a11==1)))||(a26==1)))))&&((a5==4)&&((a9==10)&&(((((((input==5)&&(a19==2))&&(a21==10))&&(a2==1))&&(a2==1))&&!(a4==1))&&(a1==13)))))){ + a19 = 1; + a1 = 12; + a13 = 1; + a11 = 1; + a16 = 7; + a4 = 0; + a9 = 7; + return -1; + } else if((((a20==1)&&((a21==11)&&((a23==1)&&((a11==1)&&(!(a0==1)&&((a2==1)&&((input==1)&&(((a9==11)&&((a5==6)&&(a1==12)))||((a9==7)&&((a5==4)&&(a1==13)))))))))))&&(((a16==10)&&(!(a7==1)&&(!(a12==1)||((a17==2)&&(a6==1)))))&&(a19==1)))){ + a20 = 0; + a1 = 14; + a9 = 7; + a23 = 1; + a4 = 0; + a19 = 5; + a14 = 0; + a21 = 10; + a16 = 7; + a5 = 6; + return 25; + } else if(((((a17==2)&&(((((((a27==1)||(a13==1))&&!(a27==1))&&(a1==14))&&(a13==1))||!(a12==1))&&(a21==10)))&&(a16==10))&&((((a28==1)&&((a13==1)&&((a19==4)&&(((a5==4)||(a5==5))&&(input==4)))))&&(a20==1))&&(a9==8)))){ + a19 = 1; + a26 = 0; + a9 = 7; + a11 = 1; + a16 = 7; + a1 = 12; + a5 = 4; + a24 = 0; + return -1; + } else if((((((a11==1)&&(((a17==2)&&(((a1==13)&&(input==4))&&(a9==7)))&&!(a20==1)))&&!(a18==1))&&(a23==1))&&((((((((a6==1)&&(a16==8))&&!(a26==1))||(a8==1))&&(a21==12))&&(a5==4))&&(a19==3))&&!(a0==1)))){ + a21 = 10; + a1 = 14; + a13 = 0; + a11 = 0; + a19 = 1; + a20 = 1; + a10 = 1; + a16 = 7; + return -1; + } else if(((((a16==7)&&(((!(a28==1)||(((a27==1)||((a13==1)&&(a11==1)))&&(a9==7)))&&(a17==2))&&!(a20==1)))&&(a1==13))&&((a19==5)&&((((!(a26==1)&&((input==4)&&((a5==4)||(a5==5))))&&!(a14==1))&&(a21==10))&&(a11==1))))){ + a12 = 1; + a20 = 1; + a7 = 0; + a19 = 2; + a1 = 12; + a13 = 1; + a5 = 6; + return -1; + } else if((((a16==9)&&((a21==11)&&((a7==1)||((a5==6)&&((a1==13)&&((((a17==2)&&(a13==1))||!(a3==1))&&(a20==1)))))))&&(((a2==1)&&(((a12==1)&&((a9==9)&&((a19==3)&&(input==5))))&&!(a27==1)))&&(a3==1)))){ + a19 = 1; + a23 = 1; + a1 = 12; + a9 = 7; + a18 = 0; + a16 = 7; + a21 = 10; + a2 = 1; + a5 = 4; + return -1; + } else if((((a5==6)&&((((((a13==1)&&(((a1==13)&&(input==1))&&(a16==11)))&&(a6==1))&&!(a20==1))&&(a9==8))&&(a21==10)))&&((a19==4)&&((a13==1)&&(((a11==1)&&(((a17==2)&&(a11==1))&&!(a18==1)))||(a7==1)))))){ + a16 = 8; + a15 = 1; + a3 = 0; + a9 = 11; + a5 = 5; + a0 = 1; + a21 = 12; + return -1; + } else if((((a12==1)&&((((!(a20==1)&&((a1==12)&&(((a21==10)&&((a16==7)&&(!(a27==1)&&((((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&(input==6)))))&&(a17==2))))&&!(a8==1))&&(a28==1))&&!(a18==1)))&&((a0==1)||((a12==1)&&(a19==1))))){ + a9 = 7; + a6 = 1; + a20 = 1; + a5 = 4; + a23 = 1; + a26 = 0; + return -1; + } else if(((((((a1==14)&&((a28==1)&&(a17==2)))&&(a13==1))&&(a23==1))&&!(a4==1))&&((!(a26==1)&&(!(a27==1)&&(((a16==9)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a20==1))&&(a19==2))&&(a9==7)))&&!(a8==1))))&&(a21==10)))){ + a9 = 9; + a4 = 0; + a13 = 1; + a5 = 6; + a1 = 13; + a16 = 7; + a11 = 1; + return 25; + } else if((((a17==2)&&((a24==1)||(((a3==1)&&((a23==1)&&!(a4==1)))||(a0==1))))&&((a21==12)&&(((!(a14==1)&&(!(a20==1)&&((!(a8==1)&&(((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a5==4)&&(a9==8)))&&(input==6)))&&(a1==12))))&&(a16==7))&&(a19==5))))){ + a19 = 1; + a20 = 1; + a9 = 10; + a13 = 1; + a4 = 0; + a14 = 0; + a5 = 5; + return 26; + } else if((((((a5==5)&&(!(a24==1)&&(((((a17==2)&&(a12==1))&&!(a20==1))&&(a19==4))&&(a1==13))))||!(a28==1))||(a8==1))&&((a2==1)&&(!(a8==1)&&((a21==10)&&(!(a27==1)&&(((a9==7)&&(input==3))&&(a16==11)))))))){ + if((a14==1)){ + a12 = 0; + a16 = 7; + a13 = 0; + a24 = 1; + a19 = 1; + a1 = 14; + a5 = 6; + a20 = 1; + a9 = 10; + }else{ + a21 = 12; + a16 = 7; + a19 = 3; + a28 = 0; + a9 = 11; + a8 = 1; + a5 = 6; + a1 = 12; + a12 = 0; + } + return -1; + } else if(((((a12==1)&&((((input==5)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&!(a26==1))&&(a1==13)))&&!(a20==1))&&((a19==1)&&((!(a2==1)||(((a16==8)&&((((a12==1)&&(a17==2))&&!(a27==1))&&!(a7==1)))&&!(a7==1)))&&(a21==11))))){ + a19 = 2; + a5 = 5; + a9 = 9; + a20 = 1; + a16 = 9; + a23 = 1; + a24 = 0; + a28 = 1; + a21 = 12; + return -1; + } else if(((((a9==7)&&(!(a2==1)||((a16==9)&&((a4==1)||((a17==2)&&(a28==1))))))&&(a1==14))&&((((a11==1)&&(!(a24==1)&&((!(a4==1)&&((((a5==4)||(a5==5))&&(input==3))&&(a19==5)))&&(a20==1))))&&!(a27==1))&&(a21==10)))){ + a7 = 0; + a1 = 12; + a23 = 1; + a16 = 7; + a5 = 4; + a2 = 1; + a19 = 1; + return -1; + } else if((((((a16==10)&&((a17==2)&&((!(a24==1)&&(a13==1))&&(a13==1))))&&(a3==1))&&(a19==1))&&(((a21==12)&&(((!(a18==1)&&(((input==6)&&(((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))))&&(a6==1)))&&(a1==14))&&!(a0==1)))&&!(a20==1)))){ + a16 = 7; + a4 = 1; + a9 = 9; + a5 = 4; + a21 = 10; + a20 = 1; + a3 = 0; + a0 = 1; + return 21; + } else if((((((a17==2)&&((((!(a23==1)&&((a18==1)&&((a16==8)&&((a7==1)&&((input==5)&&(((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))))))&&!(a13==1))&&(a27==1))&&(a24==1)))&&(a1==12))&&(a20==1))&&((a21==12)&&((a19==4)&&(a13==1))))){ + a14 = 1; + a16 = 9; + a1 = 13; + a21 = 11; + a24 = 1; + a5 = 5; + a9 = 7; + a7 = 1; + return -1; + } else if((((((!(a24==1)&&((a17==2)&&((a20==1)&&(((a2==1)&&((a21==10)&&((input==5)&&((a5==4)||(a5==5)))))&&(a19==1)))))&&!(a8==1))&&!(a7==1))&&!(a24==1))&&((a1==12)&&(((a9==10)&&((a16==10)&&(a13==1)))&&!(a8==1))))){ + a0 = 0; + a4 = 0; + a5 = 4; + a9 = 7; + a16 = 7; + return -1; + } else if(((((((a9==9)&&((((((a11==1)&&(a19==1))&&(a17==2))||(a27==1))&&!(a18==1))&&!(a8==1)))&&(a16==7))&&(a1==12))||!(a28==1))&&((a3==1)&&((((a21==12)&&((input==1)&&(a5==4)))&&(a20==1))&&(a3==1))))){ + a19 = 4; + a1 = 13; + a9 = 7; + a14 = 0; + a5 = 5; + a2 = 1; + a23 = 1; + a16 = 8; + return 26; + } else if((((!(a24==1)&&(((((input==6)&&(((((a1==13)&&(a5==6))&&(a9==11))||(((a5==4)&&(a1==14))&&(a9==7)))||(((a1==14)&&(a5==5))&&(a9==7))))&&!(a7==1))&&(a16==7))&&(a19==1)))&&(a20==1))&&(((a23==1)&&(((((a28==1)&&(a21==11))||(a8==1))&&(a17==2))&&!(a26==1)))||!(a23==1)))){ + a23 = 1; + a5 = 4; + a9 = 11; + a7 = 0; + a1 = 13; + a16 = 8; + a21 = 10; + a6 = 1; + return 26; + } else if(((((!(a12==1)||((a23==1)&&!(a14==1)))&&(a21==11))&&(a17==2))&&((((a3==1)&&((((a11==1)&&((((((a9==11)&&((a5==6)&&(a1==13)))||(((a5==4)&&(a1==14))&&(a9==7)))||(((a1==14)&&(a5==5))&&(a9==7)))&&(input==1))&&(a13==1)))&&(a16==8))&&(a6==1)))&&(a19==3))&&!(a20==1)))){ + a21 = 10; + a14 = 0; + a19 = 1; + a16 = 7; + a1 = 12; + a0 = 0; + a2 = 1; + a9 = 7; + a5 = 4; + a20 = 1; + return -1; + } else if((((a9==8)&&(((a6==1)&&((((a1==13)&&(((!(a0==1)&&((a16==8)&&(input==5)))&&!(a4==1))&&(a19==4)))&&!(a0==1))&&(a21==12)))&&!(a20==1)))&&((a24==1)||(((!(a7==1)&&(a12==1))&&(a17==2))&&(a5==5))))){ + a16 = 7; + a5 = 4; + a15 = 0; + a2 = 0; + a21 = 10; + a10 = 0; + a9 = 7; + a20 = 1; + a19 = 1; + return 25; + } else if(((((((((a28==1)&&((a19==2)&&((input==4)&&(a17==2))))&&!(a24==1))&&!(a4==1))&&(a21==12))&&(a1==14))&&(a16==8))&&((((a7==1)||((a5==5)&&(!(a11==1)||((a6==1)&&!(a0==1)))))&&(a9==11))&&(a20==1)))){ + a19 = 1; + a14 = 0; + a16 = 7; + a4 = 0; + a9 = 7; + a5 = 4; + a1 = 12; + a21 = 10; + a11 = 1; + return -1; + } else if(((((a2==1)&&(((a18==1)||(((a28==1)&&!(a4==1))&&(a17==2)))&&(a28==1)))||(a27==1))&&(!(a20==1)&&(!(a7==1)&&((((a16==8)&&((input==3)&&((((a9==11)&&((a5==5)&&(a1==12)))||((a9==11)&&((a5==6)&&(a1==12))))||((a9==7)&&((a5==4)&&(a1==13))))))&&(a19==2))&&(a21==10)))))){ + a1 = 12; + a28 = 1; + a8 = 0; + a23 = 1; + a19 = 1; + a16 = 7; + a20 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if((((a11==1)&&((!(a24==1)&&((a16==8)&&(((a20==1)&&((input==5)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))))&&!(a4==1))))&&(a19==1)))&&(((a1==14)&&((a21==10)&&(!(a0==1)&&(((a17==2)&&(a3==1))&&!(a0==1)))))||(a0==1)))){ + a9 = 9; + a23 = 1; + a21 = 12; + a19 = 2; + a16 = 9; + a6 = 1; + a5 = 5; + a8 = 0; + return 26; + } else if((((a9==9)&&(((a1==12)&&((((a11==1)&&((a28==1)&&(((a19==4)&&((a2==1)&&(((a5==5)||(a5==6))&&(input==3))))&&(a17==2))))&&(a21==12))&&(a13==1)))&&(a16==8)))&&((!(a14==1)&&((a13==1)&&(a20==1)))&&!(a24==1)))){ + a18 = 0; + a5 = 4; + a19 = 1; + a9 = 7; + a16 = 7; + a0 = 0; + a12 = 1; + a21 = 10; + return -1; + } else if((((a11==1)&&(((a12==1)&&(((a21==10)&&((!(a4==1)&&((input==5)&&(a19==4)))&&(a1==14)))&&(a17==2)))&&(a9==9)))&&(((((a5==6)&&(!(a13==1)||((a13==1)&&(a16==8))))&&(a11==1))&&!(a20==1))||(a26==1)))){ + a27 = 0; + a6 = 1; + a5 = 5; + a9 = 8; + a19 = 1; + a21 = 12; + a28 = 1; + a1 = 12; + a20 = 1; + return 21; + } else if(((((a6==1)&&((a20==1)&&(((a1==12)&&((input==1)&&(a9==8)))&&(a19==5))))&&!(a8==1))&&((a12==1)&&(((a21==11)&&(((a0==1)||((a16==11)&&(((a23==1)&&(a12==1))&&(a5==6))))&&!(a26==1)))&&(a17==2))))){ + a5 = 5; + a16 = 9; + a9 = 7; + a19 = 4; + a11 = 1; + a27 = 0; + a14 = 0; + return 21; + } else if(((!(a18==1)&&((a2==1)&&(((a20==1)&&(((input==4)&&((a5==5)||(a5==6)))&&(a11==1)))&&(a1==12))))&&(((((a9==9)&&((a17==2)&&(((a2==1)&&((a12==1)&&(a16==7)))&&(a19==1))))&&(a21==12))&&(a13==1))||!(a2==1)))){ + a21 = 10; + a8 = 0; + a11 = 1; + a5 = 4; + a12 = 1; + a9 = 7; + return -1; + } else if((((((input==5)&&(a17==2))&&!(a20==1))&&(a9==7))&&((((((a11==1)&&(!(a7==1)&&((!(a28==1)||(((a1==13)&&((a4==1)||(a23==1)))&&!(a24==1)))&&(a19==1))))&&(a13==1))&&(a21==11))&&(a5==6))&&(a16==10)))){ + a16 = 7; + a21 = 10; + a5 = 4; + a2 = 0; + a20 = 1; + a14 = 1; + a1 = 12; + a0 = 1; + a9 = 10; + return -1; + } else if((((a5==5)&&(((((a9==7)&&(input==3))&&(a19==2))&&(a21==10))&&!(a3==1)))&&((a16==7)&&((a20==1)&&(!(a12==1)&&((a8==1)&&((a7==1)&&(((a17==2)&&(((a28==1)&&(a1==13))&&!(a13==1)))&&!(a23==1))))))))){ + a9 = 10; + a1 = 14; + a23 = 0; + a25 = 1; + a5 = 4; + a22 = 1; + a19 = 1; + return -1; + } else if((((a0==1)||((a21==12)&&(!(a11==1)||((((a11==1)||!(a2==1))&&(a2==1))&&!(a20==1)))))&&(!(a7==1)&&((a19==4)&&(((a17==2)&&(((a16==8)&&((((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6))))&&(input==6)))&&(a2==1)))&&(a1==12)))))){ + a20 = 1; + a16 = 7; + a1 = 14; + a21 = 10; + a29 = 0; + a5 = 4; + a19 = 1; + a9 = 7; + a13 = 0; + return -1; + } else if((((a12==1)&&(!(a0==1)&&((a17==2)&&(((a5==5)&&(((a21==12)&&(!(a4==1)&&(!(a27==1)&&((a1==14)&&(input==1)))))&&!(a20==1)))&&(a9==9)))))&&((a2==1)&&((a19==5)&&(((a3==1)||!(a11==1))&&(a16==8)))))){ + a1 = 13; + a2 = 0; + a25 = 1; + a5 = 4; + a16 = 7; + a21 = 10; + a19 = 1; + a26 = 1; + a9 = 8; + a20 = 1; + return -1; + } else if(((((((!(a20==1)&&(a23==1))&&!(a2==1))&&(a21==10))&&(a16==7))&&!(a23==1))&&((a14==1)&&(((a19==2)&&((a1==13)&&(((a27==1)&&((a8==1)&&(((input==5)&&((a5==5)||(a5==6)))&&!(a2==1))))&&(a17==2))))&&(a9==9))))){ + a20 = 1; + a5 = 5; + a6 = 0; + a24 = 1; + a19 = 1; + a9 = 10; + a1 = 14; + a29 = 0; + return 26; + } else if(((((a17==2)&&(!(a7==1)&&(((input==3)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5))))&&(a19==4))))&&(a2==1))&&(((((a21==10)&&((a20==1)&&(((a16==10)&&((a1==13)&&(a13==1)))||(a18==1))))||!(a28==1))||!(a6==1))&&!(a8==1)))){ + a16 = 7; + a6 = 1; + a5 = 4; + a9 = 7; + a2 = 1; + a19 = 1; + a1 = 12; + a27 = 0; + return -1; + } else if(((((a17==2)&&((a5==4)&&((a3==1)&&(a2==1))))&&(a16==8))&&((a19==3)&&(!(a26==1)&&(((!(a24==1)&&((((((input==4)&&(a20==1))&&(a6==1))&&(a6==1))&&(a11==1))&&(a21==12)))&&(a9==7))&&(a1==13)))))){ + a19 = 1; + a28 = 1; + a7 = 0; + a1 = 12; + a16 = 7; + a21 = 10; + a14 = 0; + return -1; + } else if((((a21==12)&&(((!(a24==1)&&(((a9==7)&&(((input==4)&&!(a20==1))&&!(a14==1)))&&!(a7==1)))&&(a16==8))&&(a5==5)))&&(((!(a18==1)&&((a12==1)&&(((a2==1)&&(a1==14))&&(a12==1))))&&(a17==2))&&(a19==5)))){ + if((a5==4)){ + a19 = 2; + a26 = 1; + a15 = 0; + a20 = 1; + a21 = 11; + a22 = 0; + a1 = 12; + }else{ + a25 = 0; + a1 = 13; + a9 = 10; + a21 = 11; + a16 = 10; + a5 = 6; + a20 = 1; + a26 = 1; + a19 = 2; + a28 = 0; + } + return -1; + } else if(((((a19==4)&&((a16==10)&&(!(a4==1)&&((a11==1)||!(a23==1)))))&&!(a20==1))&&((((((a12==1)&&((a2==1)&&(!(a0==1)&&(((a1==14)&&(input==5))&&(a17==2)))))&&(a6==1))&&(a21==12))&&(a9==7))&&(a5==4)))){ + a5 = 6; + a19 = 1; + a25 = 0; + a20 = 1; + a1 = 12; + a16 = 7; + a9 = 10; + a10 = 0; + a21 = 10; + a6 = 0; + return 26; + } else if((((((((((a3==1)&&(a6==1))&&(a9==8))&&!(a14==1))&&(a16==7))&&(a19==5))&&(a17==2))&&(a21==12))&&(((((a2==1)&&((a5==6)&&(((a1==13)&&(input==5))&&(a2==1))))&&!(a7==1))&&(a20==1))&&!(a7==1)))){ + if((a25==1)){ + a1 = 14; + a20 = 0; + a6 = 1; + a21 = 11; + a27 = 0; + a16 = 8; + a19 = 3; + a26 = 0; + a9 = 9; + }else{ + a16 = 9; + a21 = 11; + a5 = 4; + a2 = 1; + a7 = 0; + a9 = 7; + } + return 25; + } else if(((((a12==1)&&((a8==1)||((a17==2)&&(!(a20==1)&&(((((a3==1)||(a24==1))&&(a9==9))&&(a19==1))&&(a13==1))))))||(a8==1))&&(!(a4==1)&&(((a16==10)&&(((input==1)&&((a5==4)||(a5==5)))&&(a1==14)))&&(a21==11))))){ + if((a23==1)){ + a9 = 8; + a1 = 12; + a0 = 1; + a19 = 3; + a16 = 8; + a10 = 1; + a5 = 6; + a3 = 0; + }else{ + a28 = 0; + a6 = 0; + a20 = 1; + a1 = 12; + a5 = 5; + } + return -1; + } else if((((a23==1)&&((a17==2)&&((((a9==7)&&((a20==1)&&(!(a13==1)||((a23==1)&&(a1==12)))))&&(a21==12))&&!(a26==1))))&&((((a19==1)&&(((a12==1)&&((a5==5)&&(input==4)))&&!(a18==1)))&&(a6==1))&&(a16==8)))){ + a23 = 1; + a21 = 10; + a14 = 0; + a6 = 1; + a16 = 7; + a5 = 4; + return -1; + } else if(((((((a1==13)&&(((a16==8)&&((a21==11)&&(!(a3==1)&&((a14==1)&&(a2==1)))))&&(a20==1)))&&!(a3==1))&&(a8==1))&&(a26==1))&&(((a5==4)&&((((a17==2)&&(input==3))&&(a19==3))&&(a4==1)))&&(a9==11)))){ + a5 = 5; + a19 = 1; + a21 = 10; + a7 = 1; + a9 = 8; + a15 = 1; + a18 = 1; + a16 = 7; + return -1; + } else if(((((a9==10)&&((((a12==1)&&(!(a27==1)&&(((a5==4)||(a5==5))&&(input==1))))&&(a21==11))&&(a17==2)))&&(a19==2))&&((a1==13)&&(((!(a23==1)||(!(a7==1)&&((!(a0==1)&&(a28==1))&&(a16==10))))&&(a20==1))||(a14==1))))){ + if((a9==10)){ + a9 = 8; + a20 = 0; + a1 = 14; + a8 = 0; + a16 = 7; + a18 = 0; + a0 = 0; + a19 = 1; + a5 = 4; + }else{ + a28 = 1; + a9 = 7; + a21 = 10; + a16 = 7; + a19 = 4; + a5 = 6; + a12 = 1; + a3 = 1; + } + return 21; + } else if((((!(a18==1)&&((a16==11)&&((a12==1)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&!(a8==1))&&(a19==4))&&!(a26==1)))))&&(a20==1))&&(!(a6==1)||(((a11==1)&&((a9==7)&&((a17==2)&&((a12==1)&&(a1==14)))))&&(a21==10))))){ + a9 = 11; + a4 = 0; + a5 = 5; + a11 = 1; + a1 = 12; + a21 = 11; + a6 = 1; + return 25; + } else if((((a5==6)&&((((!(a0==1)&&((a23==1)&&(!(a12==1)||(a2==1))))&&(a17==2))||!(a28==1))&&(a19==4)))&&((((((a12==1)&&(((a21==12)&&(input==6))&&(a9==10)))&&!(a8==1))&&(a20==1))&&(a16==8))&&(a1==12)))){ + a1 = 14; + a16 = 7; + a19 = 2; + a4 = 0; + a21 = 10; + a5 = 5; + a11 = 1; + a14 = 0; + return 21; + } else if(((!(a18==1)&&(!(a24==1)&&((a3==1)&&(((((((a5==5)||(a5==6))&&(input==6))&&(a9==10))&&(a16==7))&&(a1==14))&&(a19==4)))))&&((a17==2)&&(((a2==1)&&(((!(a3==1)||(a2==1))&&(a6==1))&&(a21==12)))&&!(a20==1))))){ + a6 = 1; + a21 = 10; + a0 = 0; + a1 = 12; + a19 = 1; + a9 = 7; + a20 = 1; + a5 = 4; + a14 = 0; + return -1; + } else if(((((a1==12)&&(((a0==1)||((!(a20==1)&&(a28==1))||(a24==1)))&&(a9==7)))&&(a16==7))&&((a17==2)&&((a13==1)&&((a21==10)&&(!(a8==1)&&((a28==1)&&((a12==1)&&((a19==4)&&((input==3)&&((a5==5)||(a5==6)))))))))))){ + a14 = 0; + a11 = 1; + a6 = 1; + a19 = 1; + a20 = 1; + a5 = 4; + return -1; + } else if((((!(a26==1)&&((a24==1)||(((a11==1)&&(a9==11))&&!(a20==1))))&&!(a4==1))&&(((a17==2)&&(!(a8==1)&&(((a19==1)&&((((((a5==4)||(a5==5))&&(input==5))&&(a16==8))&&(a2==1))&&(a1==12)))&&(a21==12))))&&(a3==1)))){ + a16 = 9; + a19 = 2; + a28 = 0; + a1 = 13; + a4 = 1; + a9 = 8; + a23 = 0; + a21 = 10; + a5 = 6; + return -1; + } else if((((a24==1)||((a13==1)&&((a3==1)&&((!(a23==1)||(a28==1))||(a0==1)))))&&(!(a26==1)&&(((a20==1)&&(((input==5)&&(((a21==12)&&((a19==1)&&(((a5==5)&&(a1==12))&&(a9==7))))||((((((a5==6)&&(a1==14))&&(a9==11))&&(a19==5))&&(a21==11))||(((a19==1)&&(((a1==12)&&(a5==4))&&(a9==7)))&&(a21==12)))))&&(a16==9)))&&(a17==2))))){ + a21 = 10; + a16 = 8; + a5 = 4; + a1 = 12; + a20 = 0; + a28 = 1; + a19 = 3; + a9 = 11; + a11 = 1; + return 21; + } else if((((a19==2)&&(!(a13==1)||((a23==1)||!(a11==1))))&&(((a17==2)&&((a20==1)&&(!(a8==1)&&(!(a18==1)&&((a23==1)&&((a23==1)&&((a21==12)&&(((((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==5))&&(a16==7)))))))))&&(a1==12)))){ + a23 = 1; + a9 = 7; + a5 = 4; + a19 = 1; + a4 = 0; + a18 = 0; + a21 = 10; + return -1; + } else if((((a9==8)&&(!(a27==1)&&((!(a8==1)&&((a5==4)&&((input==3)&&(a16==8))))&&(a3==1))))&&((!(a8==1)&&((a19==5)&&((((((a28==1)&&(a1==14))&&(a17==2))&&(a21==12))&&(a20==1))||!(a3==1))))||(a8==1)))){ + a28 = 1; + a21 = 10; + a1 = 12; + a13 = 1; + a19 = 1; + a3 = 1; + a9 = 7; + a16 = 7; + return -1; + } else if((((a16==11)&&((!(a27==1)&&(((a21==12)&&((a13==1)&&(a9==10)))||!(a6==1)))&&(a17==2)))&&(((a20==1)&&(!(a27==1)&&(((a6==1)&&((!(a4==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))&&(a1==12)))&&!(a24==1))))&&(a19==2)))){ + a27 = 0; + a9 = 7; + a1 = 13; + a21 = 11; + a5 = 5; + a8 = 0; + a3 = 1; + return 21; + } else if((((a7==1)||(((((a5==4)&&((a27==1)||(a11==1)))&&(a16==11))||(a8==1))&&(a19==4)))&&((a9==8)&&((a17==2)&&(((a12==1)&&((((a20==1)&&((input==4)&&(a1==14)))&&(a21==11))&&(a23==1)))&&!(a14==1)))))){ + a19 = 1; + a1 = 12; + a16 = 7; + a21 = 10; + a3 = 1; + a9 = 7; + return -1; + } else if((((a21==10)&&((a17==2)&&((((a13==1)&&(a20==1))&&!(a18==1))&&(a28==1))))&&((a23==1)&&((a16==10)&&(((((a6==1)&&((a1==14)&&((input==3)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5))))))&&!(a24==1))&&!(a8==1))&&(a19==5)))))){ + a16 = 7; + a19 = 1; + a1 = 12; + a5 = 4; + a9 = 7; + a28 = 1; + a13 = 1; + return -1; + } else if((((a19==2)&&((a1==14)&&((a16==9)&&((!(a24==1)&&((a3==1)&&((a3==1)&&((!(a20==1)&&(a28==1))&&!(a27==1)))))||!(a3==1)))))&&(((a9==10)&&((!(a18==1)&&(((a5==4)||(a5==5))&&(input==5)))&&(a21==10)))&&(a17==2)))){ + a1 = 12; + a25 = 0; + a5 = 4; + a4 = 1; + a14 = 1; + a9 = 8; + a16 = 11; + return -1; + } else if((((a19==3)&&((a12==1)&&((((!(a11==1)||(a11==1))&&!(a4==1))&&!(a14==1))&&(a17==2))))&&(((a16==7)&&((!(a7==1)&&((a23==1)&&((input==3)&&(((a9==11)&&((a1==13)&&(a5==6)))||(((a5==4)&&(a1==14))&&(a9==7))))))&&(a21==10)))&&(a20==1)))){ + a1 = 12; + a27 = 0; + a0 = 0; + a9 = 7; + a19 = 1; + a18 = 0; + a5 = 4; + return -1; + } else if(((((a20==1)&&(((((((a5==5)||(a5==6))&&(input==3))&&(a17==2))&&!(a27==1))&&(a16==7))&&(a12==1)))&&(a1==12))&&((((a27==1)||((a21==10)&&((a19==5)&&(!(a28==1)||((a12==1)&&(a9==11))))))&&!(a4==1))||!(a6==1)))){ + a5 = 4; + a27 = 0; + a19 = 1; + a9 = 7; + a14 = 0; + a23 = 1; + return -1; + } else if(((((a20==1)&&((a21==11)&&((a17==2)&&(((input==5)&&(((((a9==11)&&((a5==5)&&(a1==14)))&&(a19==3))||((a19==3)&&(((a5==6)&&(a1==14))&&(a9==11))))||((a19==4)&&((a9==7)&&((a1==12)&&(a5==4))))))&&!(a8==1)))))&&!(a0==1))&&((((((a24==1)||(a13==1))&&(a2==1))||!(a6==1))&&(a16==11))&&(a12==1)))){ + a1 = 13; + a28 = 1; + a3 = 1; + a19 = 2; + a21 = 12; + a6 = 1; + a5 = 6; + a9 = 7; + return 26; + } else if((((((a6==1)&&(!(a26==1)&&((!(a18==1)&&(((input==3)&&((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4))))&&(a11==1)))&&(a19==2))))&&(a28==1))&&(a16==10))&&((((a1==13)&&((a21==12)&&((a12==1)&&(a28==1))))&&(a17==2))&&!(a20==1)))){ + a21 = 10; + a9 = 10; + a16 = 7; + a19 = 1; + a7 = 1; + a22 = 0; + a5 = 5; + a20 = 1; + a10 = 1; + return -1; + } else if((((((a21==11)&&((((a17==2)&&((a12==1)&&!(a18==1)))||(a14==1))&&!(a20==1)))&&!(a26==1))&&(a6==1))&&((((a12==1)&&(((input==6)&&((((a1==13)&&(a5==6))&&(a9==11))||((a9==7)&&((a1==14)&&(a5==4)))))&&!(a26==1)))&&(a19==2))&&(a16==9)))){ + if((a3==1)){ + a9 = 11; + a1 = 14; + a25 = 0; + a22 = 0; + a15 = 1; + a5 = 4; + a21 = 10; + a16 = 7; + a20 = 1; + }else{ + a21 = 10; + a22 = 0; + a20 = 1; + a5 = 5; + a1 = 13; + a4 = 1; + a19 = 1; + a6 = 0; + a16 = 7; + a9 = 9; + } + return 25; + } else if((((a9==7)&&((((a18==1)||(!(a8==1)&&(((a23==1)&&(a11==1))||(a0==1))))&&(a21==10))&&(a20==1)))&&(((a16==9)&&((a12==1)&&(((((input==6)&&((a5==5)||(a5==6)))&&(a19==2))&&(a12==1))&&(a17==2))))&&(a1==12)))){ + a13 = 1; + a16 = 7; + a3 = 1; + a19 = 1; + a5 = 4; + a12 = 1; + return -1; + } else if((((a23==1)&&((((a17==2)&&((a13==1)&&((input==5)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))))&&(a3==1))&&(a16==9)))&&(!(a6==1)||(((((a1==12)&&((a19==2)&&((a11==1)&&(a21==12))))&&!(a20==1))||(a4==1))&&(a13==1))))){ + a9 = 9; + a5 = 6; + a25 = 0; + a16 = 10; + a19 = 4; + a11 = 0; + a1 = 14; + a21 = 10; + return -1; + } else if(((((a2==1)&&((((((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a6==1))&&(a17==2))&&(a19==1))&&(a21==10)))&&(a11==1))&&((!(a23==1)||(!(a20==1)&&((a9==8)&&((a27==1)||(((a12==1)&&(a1==13))||!(a3==1))))))&&(a16==8)))){ + a19 = 5; + a27 = 0; + a5 = 4; + a1 = 14; + a9 = 11; + a21 = 12; + a20 = 1; + a0 = 0; + a23 = 1; + return 25; + } else if((((a3==1)&&(((a1==14)&&((a21==12)&&((a5==6)&&((((a20==1)&&(input==5))&&(a9==10))&&(a16==9)))))&&(a13==1)))&&(((!(a26==1)&&((!(a28==1)||((a2==1)&&(a19==5)))&&!(a18==1)))&&!(a7==1))&&(a17==2)))){ + a1 = 12; + a19 = 1; + a9 = 7; + a13 = 1; + a5 = 4; + a4 = 0; + a8 = 0; + a16 = 7; + a21 = 10; + return -1; + } else if((((((((!(a20==1)&&(a3==1))&&(a19==4))&&(a11==1))&&(a13==1))&&(a16==9))&&(a1==14))&&((a17==2)&&(((((a21==12)&&((a13==1)&&(((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))&&(input==5))))&&!(a8==1))&&(a13==1))&&(a6==1))))){ + if((a5==6)){ + a16 = 8; + a22 = 0; + a23 = 0; + a5 = 5; + a20 = 1; + a25 = 0; + a9 = 8; + }else{ + a20 = 1; + a16 = 7; + a0 = 1; + a4 = 1; + a19 = 1; + a21 = 10; + a5 = 5; + a11 = 0; + a9 = 9; + } + return -1; + } else if((((!(a20==1)&&(((a1==14)&&((((a26==1)||((a17==2)&&(((a19==2)&&(a3==1))&&(a16==11))))&&(a6==1))&&(a21==10)))&&(a9==8)))||!(a2==1))&&(!(a26==1)&&(((a6==1)&&((a5==4)&&(input==1)))&&!(a4==1))))){ + if((a26==1)){ + a28 = 0; + a21 = 12; + a19 = 5; + a16 = 10; + a1 = 12; + a24 = 1; + a5 = 5; + }else{ + a25 = 1; + a16 = 8; + a24 = 1; + a21 = 11; + a19 = 5; + a11 = 0; + a5 = 5; + a1 = 12; + } + return -1; + } else if((((!(a2==1)||((a18==1)||(((a21==10)&&((a28==1)&&(a1==14)))&&(a9==10))))&&(a28==1))&&(((((a16==11)&&((a17==2)&&((a19==3)&&((a11==1)&&((input==4)&&((a5==6)||((a5==4)||(a5==5))))))))&&!(a20==1))&&!(a14==1))&&!(a8==1)))){ + a1 = 13; + a5 = 5; + a19 = 4; + a12 = 0; + a16 = 9; + a9 = 11; + a21 = 12; + a24 = 1; + a15 = 0; + return -1; + } else if(((!(a0==1)&&((a1==13)&&(!(a4==1)&&(((a16==8)&&(((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))&&(input==6))&&!(a20==1)))&&(a6==1)))))&&(!(a11==1)||(((a17==2)&&((((a28==1)&&(a19==2))&&(a21==12))&&(a13==1)))||(a26==1))))){ + a1 = 14; + a2 = 0; + a9 = 11; + a20 = 1; + a14 = 1; + a3 = 0; + a19 = 1; + a5 = 6; + return -1; + } else if((((a0==1)&&((((((input==1)&&(a1==14))&&(a24==1))&&(a19==2))&&(a16==8))&&(a21==12)))&&((!(a13==1)&&((a17==2)&&(!(a6==1)&&(((a20==1)&&((a9==11)&&((a4==1)&&(a3==1))))&&(a5==4)))))&&!(a28==1)))){ + a21 = 11; + a5 = 6; + a1 = 13; + a16 = 11; + a29 = 0; + a11 = 0; + a10 = 1; + return -1; + } else if((((a17==2)&&(((((((!(a8==1)&&(a6==1))||(a0==1))&&!(a8==1))&&(a9==7))&&!(a24==1))&&(a16==10))&&(a19==1)))&&((a1==12)&&((((a20==1)&&(((input==1)&&(a5==6))&&!(a18==1)))&&(a21==10))&&(a11==1))))){ + a8 = 0; + a16 = 7; + a4 = 0; + a5 = 4; + a26 = 0; + return -1; + } else if((((((a21==11)&&(((a20==1)&&((a16==7)&&(!(a3==1)||(a6==1))))&&!(a14==1)))&&(a17==2))&&(a6==1))&&((a13==1)&&((a1==14)&&(((a19==5)&&((a2==1)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==4))))&&(a2==1)))))){ + a16 = 8; + a14 = 0; + a9 = 10; + a13 = 1; + a19 = 3; + a11 = 1; + a5 = 4; + a1 = 13; + a21 = 12; + return 23; + } else if(((!(a24==1)&&((a6==1)&&((a21==12)&&((((!(a20==1)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6))))&&(a16==8))&&(a12==1))&&(a13==1)))))&&(((a19==3)&&((!(a6==1)||((a9==7)&&((a23==1)||(a8==1))))&&(a17==2)))&&(a1==14)))){ + a15 = 0; + a21 = 10; + a16 = 7; + a19 = 1; + a5 = 6; + a2 = 0; + a20 = 1; + a1 = 12; + a9 = 8; + return -1; + } else if(((((a19==5)&&((((a23==1)&&((a28==1)&&(a21==10)))&&(a9==11))&&(a23==1)))&&!(a27==1))&&(((((a1==14)&&(((a17==2)&&(!(a26==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3))))&&(a2==1)))&&!(a20==1))&&!(a0==1))&&(a16==9)))){ + a16 = 7; + a20 = 1; + a11 = 0; + a5 = 6; + a19 = 3; + a26 = 1; + a21 = 11; + a15 = 0; + return -1; + } else if(((!(a24==1)&&((a12==1)&&((a16==7)&&((a13==1)&&((a1==13)&&(!(a18==1)&&((((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(input==1))))))))&&((((a19==2)&&(((a6==1)&&((a21==12)&&(a12==1)))&&(a11==1)))&&(a17==2))&&!(a20==1)))){ + a4 = 0; + a5 = 5; + a19 = 4; + a21 = 11; + a23 = 1; + a9 = 11; + a20 = 1; + a1 = 12; + a16 = 8; + a18 = 0; + return -1; + } else if(((!(a20==1)&&((!(a3==1)||(((a2==1)||!(a13==1))||!(a12==1)))&&(a21==11)))&&((a16==8)&&((a19==4)&&(((((a13==1)&&((!(a7==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5)))))&&(a17==2)))&&!(a4==1))&&(a9==11))&&(a1==12)))))){ + a19 = 3; + a21 = 10; + a5 = 6; + a16 = 10; + a1 = 13; + a9 = 8; + a26 = 0; + a20 = 1; + return 22; + } else if(((!(a12==1)||((a6==1)&&(((a21==12)&&((a1==14)&&(a23==1)))&&(a2==1))))&&(((((!(a7==1)&&(((a19==3)&&((((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(input==1)))&&(a6==1)))&&(a11==1))&&(a16==7))&&!(a20==1))&&(a17==2)))){ + a5 = 4; + a24 = 0; + a6 = 1; + a9 = 7; + a21 = 10; + a20 = 1; + a1 = 12; + a19 = 1; + a28 = 1; + return -1; + } else if((((a21==12)&&((((!(a4==1)&&((((a9==7)&&(input==4))&&(a28==1))&&(a28==1)))&&(a19==2))&&(a3==1))&&(a16==8)))&&((a17==2)&&(((a18==1)||((((a28==1)&&(a3==1))&&(a5==4))&&(a1==14)))&&(a20==1))))){ + a1 = 13; + a3 = 1; + a16 = 10; + a8 = 0; + a13 = 1; + a19 = 1; + a9 = 10; + return 21; + } else if(((((((a19==5)&&((a28==1)&&(((a9==8)&&(a11==1))||!(a12==1))))&&(a17==2))||(a24==1))&&(a12==1))&&((a16==11)&&((!(a18==1)&&((a20==1)&&((a21==10)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a1==14)))))&&!(a4==1))))){ + a0 = 0; + a9 = 7; + a1 = 12; + a5 = 4; + a27 = 0; + a16 = 7; + a19 = 1; + return -1; + } else if((((a9==11)&&((((((((a21==12)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))&&(a16==10))&&(a28==1))&&(a23==1))&&(a6==1))&&(a20==1))&&(a19==4)))&&(((a17==2)&&(!(a4==1)&&((a1==13)&&(!(a24==1)&&(a11==1)))))||!(a2==1)))){ + a21 = 10; + a16 = 7; + a5 = 5; + a9 = 9; + a4 = 0; + a7 = 0; + a0 = 0; + a19 = 2; + return 23; + } else if(((((a21==10)&&((((a0==1)||((a28==1)&&!(a18==1)))&&!(a8==1))&&(a17==2)))&&(a19==4))&&((((!(a18==1)&&((((((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6))))&&(input==5))&&(a20==1))&&!(a7==1)))&&(a1==13))&&(a16==8))&&!(a14==1)))){ + a1 = 12; + a5 = 6; + a0 = 0; + a19 = 1; + a16 = 10; + a9 = 10; + a28 = 1; + return 21; + } else if(((!(a2==1)||((a9==10)&&(((((!(a28==1)||((a6==1)&&(a1==14)))&&(a17==2))&&!(a0==1))&&(a21==10))&&!(a26==1))))&&(!(a4==1)&&((((((a19==3)&&(input==3))&&(a16==8))&&(a5==5))&&(a20==1))&&(a13==1))))){ + a8 = 0; + a28 = 1; + a16 = 7; + a13 = 1; + a9 = 7; + a5 = 4; + a19 = 1; + a1 = 12; + return -1; + } else if(((((a5==4)&&(!(a23==1)||(!(a3==1)||((!(a20==1)&&(a28==1))&&(a2==1)))))&&(a17==2))&&(!(a24==1)&&((((a16==11)&&(((((input==4)&&(a21==10))&&!(a8==1))&&(a1==14))&&(a9==8)))&&(a19==2))&&!(a14==1))))){ + if((a14==1)){ + a9 = 7; + a13 = 0; + a14 = 1; + a16 = 7; + a1 = 13; + a10 = 0; + a20 = 1; + a5 = 6; + a19 = 4; + }else{ + a8 = 1; + a15 = 0; + a20 = 1; + a5 = 6; + a1 = 13; + a16 = 7; + a19 = 1; + a9 = 7; + a27 = 1; + } + return -1; + } else if(((((a6==1)&&(((a19==5)&&(((a16==7)&&((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==3)))&&(a6==1)))&&!(a8==1)))&&(a17==2))&&(!(a20==1)&&((a21==10)&&((a4==1)||((a6==1)&&(((a2==1)||(a26==1))&&(a1==12)))))))){ + a7 = 0; + a5 = 4; + a19 = 1; + a27 = 0; + a1 = 14; + a9 = 11; + a20 = 1; + a4 = 0; + return -1; + } else if((((((a16==11)&&(((a17==2)&&(a11==1))&&!(a7==1)))||!(a2==1))&&!(a0==1))&&(!(a18==1)&&(((a21==11)&&((a11==1)&&(!(a27==1)&&((((((a9==11)&&((a1==13)&&(a5==6)))||(((a5==4)&&(a1==14))&&(a9==7)))||(((a5==5)&&(a1==14))&&(a9==7)))&&(input==5))&&(a20==1)))))&&(a19==3))))){ + a24 = 0; + a5 = 4; + a21 = 10; + a16 = 7; + a19 = 1; + a1 = 12; + a9 = 7; + a13 = 1; + a11 = 1; + return -1; + } else if((((a11==1)&&(!(a20==1)&&(((a17==2)&&((((input==6)&&(a1==12))&&(a23==1))&&(a21==10)))&&(a19==1))))&&((a11==1)&&(!(a12==1)||((((((a5==6)&&(a28==1))||!(a23==1))&&(a16==7))&&(a9==10))&&!(a8==1)))))){ + a20 = 1; + a19 = 2; + a3 = 1; + a18 = 0; + a1 = 14; + a21 = 11; + a16 = 8; + a14 = 0; + a5 = 5; + return 26; + } else if(((!(a4==1)&&((a16==7)&&((!(a26==1)&&((((a5==4)||(a5==5))&&(input==4))&&(a21==12)))&&(a20==1))))&&(((a6==1)&&((!(a27==1)&&((a1==13)&&(((a19==1)&&((a6==1)&&(a9==11)))||!(a6==1))))&&(a17==2)))||(a18==1)))){ + a14 = 0; + a13 = 1; + a9 = 7; + a5 = 4; + a24 = 0; + a16 = 9; + a21 = 10; + return 22; + } else if(((!(a4==1)&&(((a9==11)&&(((a21==10)&&((((a16==10)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))&&(a20==1))&&(a2==1)))&&(a17==2)))&&!(a24==1)))&&((a19==4)&&((((!(a13==1)||(a2==1))||!(a12==1))||!(a28==1))&&(a1==14))))){ + a16 = 7; + a6 = 1; + a9 = 8; + a1 = 13; + a27 = 0; + a2 = 1; + a19 = 2; + a5 = 6; + return 25; + } else if((((a1==14)&&((((a16==9)&&(a2==1))&&!(a26==1))&&(a19==2)))&&(((!(a14==1)&&((a17==2)&&(!(a26==1)&&((a21==12)&&((a23==1)&&((a20==1)&&(((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))&&(input==5))))))))&&!(a18==1))&&!(a27==1)))){ + a5 = 4; + a21 = 10; + a23 = 1; + a14 = 0; + a16 = 7; + a1 = 12; + a9 = 7; + a19 = 1; + a13 = 1; + return -1; + } else if(((!(a26==1)&&((((a1==14)&&((a0==1)||((a21==10)&&(!(a26==1)&&((a19==2)&&((a2==1)&&(a17==2)))))))||(a8==1))&&(a9==9)))&&((((a6==1)&&(((input==3)&&((a5==5)||(a5==6)))&&(a20==1)))&&(a16==10))&&!(a27==1)))){ + a23 = 1; + a19 = 1; + a1 = 12; + a5 = 4; + a9 = 7; + a7 = 0; + a27 = 0; + a16 = 7; + return -1; + } else if((((((a21==12)&&((a17==2)&&((!(a26==1)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a8==1))))&&(a1==14))&&(a19==4))&&(((a16==10)&&(!(a3==1)||(!(a28==1)||(!(a14==1)&&(((a2==1)&&(a9==8))||(a14==1))))))&&(a20==1)))){ + a1 = 13; + a13 = 1; + a2 = 1; + a5 = 5; + a21 = 10; + a9 = 9; + a8 = 0; + a16 = 7; + a19 = 2; + return 25; + } else if(((((a24==1)&&((((!(a20==1)&&((a27==1)&&((a19==3)&&((((a9==7)&&((a1==14)&&(a5==4)))||(((a9==11)&&((a1==13)&&(a5==5)))||((a9==11)&&((a1==13)&&(a5==6)))))&&(input==4)))))&&(a0==1))&&(a0==1))&&(a17==2)))&&(a21==12))&&((((a12==1)&&(a0==1))&&(a8==1))&&(a16==7)))){ + a21 = 10; + a9 = 7; + a19 = 5; + a24 = 1; + a0 = 1; + a5 = 5; + a20 = 1; + a1 = 13; + a16 = 9; + return -1; + } else if(((((a19==2)&&((a17==2)&&((a20==1)&&((input==3)&&((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5)))))))&&(a3==1))&&(((a23==1)&&(((((a21==12)&&(((a23==1)&&(a1==12))&&!(a7==1)))&&(a16==7))||!(a28==1))&&!(a7==1)))&&!(a8==1)))){ + a21 = 10; + a5 = 4; + a0 = 0; + a9 = 7; + a26 = 0; + a19 = 1; + return -1; + } else if(((((a4==1)&&(((a9==11)&&((a21==11)&&((a17==2)&&((a12==1)&&(a7==1)))))&&(a8==1)))&&(a19==1))&&(((a26==1)&&((((a26==1)&&(!(a20==1)&&((a16==7)&&(input==6))))&&(a1==13))&&(a5==4)))&&!(a2==1)))){ + a20 = 1; + a19 = 4; + a9 = 9; + a8 = 1; + a27 = 1; + a21 = 12; + a16 = 11; + a25 = 1; + return 22; + } else if(((!(a24==1)&&((a28==1)&&((a11==1)&&(((((a21==12)&&((a20==1)&&((input==6)&&((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==1))||((a19==2)&&(((a5==4)&&(a1==12))&&(a9==7)))))))&&!(a0==1))&&(a13==1))&&(a16==11)))))&&((a17==2)&&((a28==1)&&(a11==1))))){ + a1 = 14; + a9 = 11; + a5 = 6; + a27 = 0; + a19 = 2; + a16 = 9; + a8 = 0; + a6 = 1; + return 21; + } else if((((!(a27==1)&&(((((a19==5)&&(input==4))&&(a1==13))&&(a9==7))&&(a20==1)))&&(a23==1))&&(!(a11==1)||((a17==2)&&((a5==5)&&((a27==1)||((a24==1)||((((a6==1)&&(a21==10))&&!(a7==1))&&(a16==10))))))))){ + a19 = 1; + a5 = 4; + a28 = 1; + a18 = 0; + a16 = 7; + a26 = 0; + a1 = 12; + return -1; + } else if((((a21==10)&&(!(a20==1)&&(((((a17==2)&&(((input==3)&&((((a1==12)&&(a5==6))&&(a9==11))||(((a1==13)&&(a5==4))&&(a9==7))))&&(a12==1)))&&(a19==4))&&(a16==11))&&(a3==1))))&&((!(a8==1)&&(!(a12==1)||((a2==1)&&!(a24==1))))||!(a2==1)))){ + a9 = 10; + a1 = 12; + a20 = 1; + a5 = 6; + a13 = 0; + a25 = 0; + a19 = 1; + a16 = 7; + a27 = 1; + return -1; + } else if((((a19==2)&&((((!(a18==1)&&((a1==12)&&(((a17==2)&&(a3==1))&&(a21==12))))&&(a16==7))&&!(a0==1))||!(a6==1)))&&(!(a20==1)&&(((((a23==1)&&((input==5)&&((a5==6)||((a5==4)||(a5==5)))))&&(a3==1))&&!(a0==1))&&(a9==9))))){ + a20 = 1; + a6 = 1; + a21 = 10; + a4 = 0; + a8 = 0; + a9 = 7; + a19 = 1; + a5 = 4; + return -1; + } else if((((((a26==1)||((a18==1)||((a20==1)&&((!(a26==1)&&(a3==1))&&(a19==5)))))&&(a1==13))&&(a17==2))&&(((a23==1)&&((!(a18==1)&&(((input==1)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&(a16==11)))&&(a6==1)))&&(a21==10)))){ + a1 = 12; + a5 = 4; + a21 = 11; + a9 = 7; + a11 = 1; + a13 = 1; + a8 = 0; + return 26; + } else if((((a0==1)||(((a17==2)&&((a12==1)&&(a19==5)))&&(a1==14)))&&((((!(a18==1)&&((a11==1)&&(((((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==4))&&(a21==12))&&(a12==1))&&(a16==7))))&&!(a7==1))&&(a20==1))&&!(a7==1)))){ + a9 = 10; + a1 = 13; + a5 = 4; + a7 = 0; + a4 = 0; + a19 = 2; + a12 = 1; + a21 = 10; + return 26; + } else if(((((!(a26==1)&&(((((a16==8)&&(((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a5==4)&&(a9==9)))&&(input==6)))&&!(a27==1))&&!(a18==1))&&(a17==2)))&&(a19==4))&&(a1==12))&&((((a2==1)&&(!(a11==1)||(!(a20==1)&&(a2==1))))&&!(a14==1))&&(a21==12)))){ + if((a8==1)){ + a20 = 1; + a9 = 9; + a15 = 0; + a5 = 6; + a13 = 0; + a29 = 1; + a16 = 7; + a19 = 2; + a21 = 10; + }else{ + a1 = 13; + a22 = 0; + a16 = 7; + a7 = 1; + a21 = 10; + a20 = 1; + a15 = 0; + a5 = 6; + a19 = 5; + a9 = 11; + } + return -1; + } else if((((a1==14)&&(((a14==1)||(((a16==7)&&(a11==1))&&(a9==9)))||!(a13==1)))&&((((a20==1)&&((!(a18==1)&&(((a17==2)&&((a23==1)&&(((a5==5)||(a5==6))&&(input==3))))&&(a21==10)))&&!(a0==1)))&&(a19==3))&&!(a24==1)))){ + a5 = 4; + a7 = 0; + a9 = 7; + a18 = 0; + a1 = 12; + a19 = 1; + return -1; + } else if(((((!(a6==1)||((a9==7)&&((!(a26==1)&&((a21==11)&&(a23==1)))&&(a19==2))))||!(a28==1))&&(a16==11))&&((a1==12)&&((((!(a0==1)&&(((input==4)&&(a5==6))&&(a20==1)))&&!(a27==1))&&(a17==2))&&!(a24==1))))){ + a24 = 0; + a5 = 4; + a21 = 10; + a16 = 7; + a11 = 1; + a12 = 1; + a19 = 1; + return -1; + } else if(((((((((a28==1)&&(((input==1)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&!(a20==1)))&&(a2==1))&&(a3==1))&&(a28==1))&&(a16==10))&&(a1==14))&&((((!(a28==1)||(!(a26==1)&&(a2==1)))&&(a17==2))&&(a21==10))&&(a19==4)))){ + a29 = 1; + a5 = 5; + a16 = 9; + a19 = 5; + a1 = 12; + a0 = 1; + a9 = 9; + return -1; + } else if((((a17==2)&&(!(a20==1)&&((((a9==8)&&(((a26==1)&&((!(a12==1)&&((a0==1)&&(((a5==4)||(a5==5))&&(input==5))))&&(a0==1)))&&(a16==8)))&&(a21==11))&&(a1==13))))&&((a19==2)&&((!(a13==1)&&(a3==1))&&!(a3==1))))){ + a21 = 10; + a20 = 1; + a5 = 5; + a8 = 1; + a9 = 7; + a16 = 7; + a1 = 12; + a14 = 1; + a13 = 0; + return -1; + } else if((((!(a27==1)&&((a5==4)&&(!(a14==1)&&(((a17==2)&&(input==4))&&(a6==1)))))&&(a20==1))&&(((((a7==1)||(((a2==1)&&(!(a18==1)&&((a11==1)&&(a16==9))))&&(a9==9)))&&(a21==12))&&(a1==14))&&(a19==2)))){ + a1 = 12; + a7 = 0; + a21 = 10; + a16 = 7; + a26 = 0; + a18 = 0; + a19 = 1; + a9 = 7; + return -1; + } else if(((((!(a0==1)&&(!(a8==1)&&((a16==8)&&((a11==1)&&(((a19==2)&&(input==1))&&!(a24==1))))))&&(a9==11))&&(a1==14))&&(((((a20==1)&&(((a2==1)&&!(a4==1))&&(a5==4)))&&(a21==11))&&!(a4==1))&&(a17==2)))){ + if((a28==1)){ + a20 = 0; + a19 = 5; + a6 = 1; + a1 = 12; + a9 = 10; + a4 = 0; + a16 = 7; + a2 = 1; + }else{ + a24 = 0; + a21 = 12; + a9 = 8; + a5 = 6; + a4 = 0; + a27 = 0; + a16 = 7; + a19 = 5; + a20 = 0; + a1 = 12; + } + return 25; + } else if(((((a6==1)&&((!(a13==1)||((((a5==6)&&(a12==1))&&(a11==1))&&(a21==11)))&&(a16==7)))&&!(a18==1))&&((a1==13)&&(!(a24==1)&&((a17==2)&&(!(a4==1)&&((!(a20==1)&&((input==1)&&(a19==1)))&&(a9==10)))))))){ + a9 = 7; + a20 = 1; + a5 = 4; + a6 = 1; + a18 = 0; + a21 = 10; + a1 = 12; + a8 = 0; + return -1; + } else if(((!(a24==1)&&((a16==8)&&((a28==1)&&((a3==1)&&(a28==1)))))&&(!(a24==1)&&(!(a7==1)&&((a1==14)&&((((((((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a9==11))&&(a21==10))&&(a28==1))&&(a19==4))&&(a20==1))&&(a17==2))))))){ + a11 = 1; + a6 = 1; + a16 = 7; + a1 = 12; + a5 = 4; + a3 = 1; + a19 = 1; + a9 = 7; + return -1; + } else if((((a1==14)&&(((!(a0==1)&&((a19==4)&&((a28==1)&&((a9==7)&&(!(a4==1)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))))))&&(a28==1))&&(a21==11)))&&((a17==2)&&((!(a4==1)&&(((a12==1)&&(a28==1))&&(a20==1)))&&(a16==10))))){ + if((a27==1)){ + a16 = 8; + a14 = 0; + a20 = 0; + a19 = 2; + a6 = 1; + a4 = 0; + a21 = 10; + a5 = 4; + a9 = 11; + }else{ + a8 = 0; + a5 = 6; + a16 = 8; + a21 = 12; + a3 = 1; + a11 = 1; + a19 = 5; + } + return 26; + } else if(((!(a24==1)&&((!(a8==1)&&(((a21==10)&&(!(a18==1)&&(((a5==5)||(a5==6))&&(input==5))))&&!(a24==1)))&&(a1==14)))&&(((a14==1)||(!(a20==1)&&(((a17==2)&&((a9==10)&&((a6==1)&&(a16==8))))&&(a6==1))))&&(a19==4)))){ + a14 = 0; + a1 = 12; + a11 = 1; + a9 = 7; + a19 = 2; + a5 = 5; + a20 = 1; + a16 = 10; + a21 = 12; + return 26; + } else if((((a3==1)&&(!(a13==1)||(((a16==9)&&(((a19==1)&&(a3==1))||!(a11==1)))&&!(a20==1))))&&((a17==2)&&(((a21==12)&&((a12==1)&&(!(a26==1)&&(((((a9==11)&&((a1==13)&&(a5==5)))||(((a5==6)&&(a1==13))&&(a9==11)))||(((a5==4)&&(a1==14))&&(a9==7)))&&(input==3)))))&&!(a26==1))))){ + a16 = 7; + a19 = 2; + a9 = 7; + a5 = 4; + a24 = 1; + a20 = 1; + a10 = 0; + a1 = 12; + a21 = 10; + return -1; + } else if((((a27==1)||((((a17==2)&&(a3==1))&&(a21==12))&&(a16==9)))&&(!(a0==1)&&(!(a0==1)&&(!(a26==1)&&((!(a18==1)&&(!(a20==1)&&(((a1==14)&&(((input==3)&&(a5==4))&&(a9==9)))&&(a19==1))))&&!(a26==1))))))){ + a9 = 11; + a29 = 1; + a20 = 1; + a16 = 7; + a5 = 5; + a24 = 1; + a0 = 1; + a1 = 13; + a21 = 10; + return 22; + } else if(((!(a26==1)&&(((a19==4)&&((a21==12)&&((((a17==2)&&(input==5))&&(a6==1))&&!(a18==1))))&&(a9==7)))&&((a5==5)&&((((((a1==12)&&((a13==1)||(a14==1)))||(a7==1))&&(a16==11))||!(a23==1))&&(a20==1))))){ + a5 = 4; + a16 = 7; + a12 = 1; + a21 = 10; + a28 = 1; + a24 = 0; + a19 = 1; + return -1; + } else if(((((a16==7)&&((a21==12)&&((a11==1)&&((((((a20==1)&&(input==4))&&!(a4==1))&&!(a24==1))&&(a17==2))&&!(a4==1)))))&&(a5==6))&&((((((a9==10)&&(a28==1))&&(a19==3))&&!(a27==1))&&(a1==12))&&(a11==1)))){ + a11 = 1; + a5 = 4; + a9 = 7; + a21 = 10; + a3 = 1; + a2 = 1; + a19 = 1; + return -1; + } else if((((((a19==1)&&((a21==11)&&(((a23==1)&&((a16==9)&&(input==5)))&&(a9==7))))&&!(a7==1))&&!(a14==1))&&((a1==13)&&((((((!(a12==1)||(a3==1))||(a8==1))&&(a17==2))||(a4==1))&&!(a20==1))&&(a5==4))))){ + a1 = 14; + a19 = 4; + a16 = 10; + a2 = 0; + a0 = 1; + a22 = 1; + a9 = 11; + return 21; + } else if(((!(a11==1)||((((a23==1)&&((a5==6)&&(!(a26==1)&&((a16==8)&&((a1==12)&&(!(a27==1)&&((a12==1)||!(a13==1))))))))&&(a19==1))&&(a21==11)))&&((!(a27==1)&&(((a9==10)&&(input==6))&&(a17==2)))&&(a20==1)))){ + a9 = 8; + a21 = 10; + a8 = 0; + a19 = 3; + a3 = 1; + a5 = 4; + a26 = 0; + a16 = 10; + return 21; + } else if((((a20==1)&&(!(a14==1)&&((a16==9)&&((a21==12)&&(!(a24==1)&&(((((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))&&(input==4))&&(a1==12))&&(a23==1)))))))&&((a12==1)&&(((a19==1)&&((a12==1)&&((a26==1)||(a3==1))))&&(a17==2))))){ + a4 = 0; + a5 = 6; + a23 = 1; + a19 = 2; + a9 = 7; + a7 = 0; + a21 = 11; + return -1; + } else if(((((a16==11)&&((((((a13==1)&&!(a28==1))&&!(a13==1))&&(a24==1))&&(a4==1))&&(a9==8)))&&(a20==1))&&(((a17==2)&&((((a18==1)&&((a7==1)&&((input==4)&&((a5==4)||(a5==5)))))&&(a19==2))&&(a21==11)))&&(a1==13)))){ + a5 = 4; + a18 = 1; + a1 = 12; + a9 = 10; + a21 = 10; + a25 = 1; + a7 = 1; + a19 = 1; + a16 = 7; + return 26; + } else if(((((a16==11)&&(((((a20==1)&&((a12==1)&&((a5==5)&&(input==4))))&&(a12==1))&&(a21==11))&&(a13==1)))&&(a19==1))&&((((a11==1)&&(((a9==9)&&((a6==1)&&!(a24==1)))&&!(a18==1)))&&(a17==2))&&(a1==13)))){ + a9 = 7; + a1 = 12; + a16 = 7; + a24 = 0; + a14 = 0; + a28 = 1; + a21 = 10; + a5 = 4; + return -1; + } else if(((((a21==10)&&((a0==1)||((!(a11==1)||((a3==1)&&(a19==1)))&&!(a0==1))))&&!(a20==1))&&((a6==1)&&((a2==1)&&((a16==8)&&((((a9==8)&&((a3==1)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a1==13))&&(a17==2))))))){ + a1 = 12; + a23 = 1; + a7 = 0; + a16 = 7; + a5 = 4; + a28 = 1; + a9 = 7; + a20 = 1; + return -1; + } else if(((((!(a27==1)&&(((a21==10)&&((a28==1)&&(((a5==4)||(a5==5))&&(input==5))))&&(a19==1)))&&(a1==14))&&!(a4==1))&&(!(a20==1)&&(!(a11==1)||(((a16==9)&&((!(a27==1)&&((a28==1)&&(a17==2)))&&(a2==1)))&&(a9==8)))))){ + if((a24==1)){ + a16 = 7; + a24 = 1; + a20 = 1; + a5 = 4; + a2 = 0; + a9 = 7; + a3 = 0; + }else{ + a5 = 6; + a16 = 7; + a10 = 1; + a1 = 12; + a9 = 10; + a20 = 1; + a3 = 0; + a25 = 0; + } + return -1; + } else if((((a17==2)&&(((!(a28==1)||((a1==13)&&((a3==1)&&(a21==11))))&&(a5==6))&&!(a20==1)))&&((a16==9)&&(!(a24==1)&&(!(a26==1)&&((a9==11)&&((a11==1)&&(!(a24==1)&&(!(a7==1)&&((a19==4)&&(input==4))))))))))){ + a1 = 14; + a5 = 5; + a9 = 7; + a19 = 5; + a12 = 0; + a10 = 1; + a16 = 7; + a26 = 1; + a21 = 12; + return 25; + } else if((((((a16==9)&&((((((a19==3)&&(((a12==1)||(a14==1))||(a8==1)))&&(a1==13))&&(a21==12))||!(a28==1))&&(a6==1)))&&(a5==4))&&(a12==1))&&(!(a20==1)&&((a3==1)&&(((a17==2)&&(input==3))&&(a9==7)))))){ + a13 = 0; + a5 = 6; + a15 = 0; + a4 = 1; + a9 = 10; + return -1; + } else if(((!(a20==1)&&(((a13==1)&&(((!(a11==1)||(!(a12==1)||(a13==1)))&&!(a18==1))||!(a12==1)))&&(a1==12)))&&(((a21==10)&&(!(a18==1)&&((((input==6)&&(((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))))&&(a19==5))&&(a16==8))))&&(a17==2)))){ + a4 = 0; + a20 = 1; + a9 = 10; + a21 = 12; + a7 = 0; + a1 = 14; + a19 = 3; + a24 = 0; + a5 = 4; + return 25; + } else if(((((a1==13)&&((a2==1)&&(!(a7==1)&&(!(a7==1)&&((a21==12)&&((a5==4)&&(((input==1)&&(a9==7))&&(a23==1))))))))&&(a20==1))&&(((a17==2)&&((((a11==1)&&(a19==3))||(a27==1))&&!(a24==1)))&&(a16==8)))){ + a24 = 0; + a1 = 12; + a16 = 7; + a21 = 10; + a23 = 1; + a11 = 1; + a19 = 1; + return -1; + } else if(((((a13==1)&&((a21==10)&&(((a17==2)&&(input==1))&&!(a20==1))))&&(a16==9))&&(((((a9==8)&&(((!(a23==1)||((a1==14)&&((a28==1)&&(a5==6))))||!(a6==1))&&(a19==5)))||(a14==1))||(a4==1))||!(a6==1)))){ + if((a12==1)){ + a6 = 0; + a1 = 12; + a24 = 1; + a19 = 3; + a3 = 0; + a9 = 7; + a16 = 7; + }else{ + a20 = 1; + a28 = 0; + a16 = 7; + a19 = 2; + a1 = 12; + a4 = 1; + a9 = 7; + a13 = 0; + } + return -1; + } else if(((((!(a27==1)&&(((a17==2)&&(a28==1))&&(a21==12)))&&(a1==13))||(a26==1))&&(!(a4==1)&&((((a20==1)&&((((a16==8)&&((a28==1)&&((input==1)&&(a9==7))))&&(a5==6))&&(a19==5)))&&(a3==1))&&!(a4==1))))){ + a26 = 0; + a0 = 0; + a1 = 14; + a21 = 11; + a5 = 5; + a19 = 3; + a9 = 11; + a24 = 0; + return -1; + } else if(((((((((!(a27==1)&&(((input==4)&&((a5==5)||(a5==6)))&&(a20==1)))&&!(a27==1))&&!(a7==1))&&(a19==3))&&!(a27==1))&&(a2==1))&&(a1==14))&&((a16==9)&&((((a17==2)&&((a9==10)&&(a23==1)))&&(a6==1))&&(a21==10))))){ + a16 = 7; + a13 = 1; + a9 = 7; + a5 = 4; + a7 = 0; + a1 = 12; + a2 = 1; + a19 = 1; + return -1; + } else if(((((a2==1)&&((a3==1)&&(((a9==9)&&((((input==3)&&((a5==4)||(a5==5)))&&(a19==4))&&!(a27==1)))&&(a1==14))))&&(a11==1))&&((((a21==12)&&(!(a20==1)&&(((a17==2)&&(a28==1))&&(a16==10))))&&!(a7==1))&&!(a26==1)))){ + if((a22==1)){ + a9 = 11; + a24 = 1; + a23 = 0; + a1 = 12; + a21 = 10; + a20 = 1; + a16 = 7; + a19 = 2; + a12 = 0; + a5 = 5; + }else{ + a10 = 1; + a19 = 5; + a5 = 4; + a13 = 0; + a1 = 13; + a18 = 1; + } + return 21; + } else if(((!(a7==1)&&(((a20==1)&&((a21==10)&&(((a3==1)&&((a17==2)&&((a1==13)&&(((input==6)&&((a5==5)||(a5==6)))&&(a9==11)))))&&!(a14==1))))&&(a3==1)))&&(!(a13==1)||((a19==2)&&((a28==1)&&((a16==9)&&(a2==1))))))){ + a9 = 9; + a2 = 1; + a5 = 6; + a26 = 0; + a28 = 1; + return 25; + } else if(((((a11==1)&&((a5==6)&&(!(a26==1)&&((a16==7)&&(((input==6)&&(a21==10))&&(a9==11))))))&&!(a14==1))&&(((!(a13==1)||(((((a11==1)&&(a17==2))||(a14==1))&&(a19==5))&&(a6==1)))&&!(a20==1))&&(a1==12)))){ + a19 = 2; + a16 = 10; + a21 = 11; + a1 = 13; + a9 = 9; + a20 = 1; + a8 = 0; + a11 = 1; + return 21; + } else if(((((a21==12)&&(((!(a13==1)||((a16==9)&&(!(a23==1)||(a23==1))))&&(a1==12))&&(a19==2)))||(a27==1))&&((((a17==2)&&(((((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4)))&&(input==1))&&(a20==1))&&(a3==1)))&&!(a8==1))&&!(a27==1)))){ + a19 = 1; + a14 = 0; + a16 = 7; + a11 = 1; + a8 = 0; + a9 = 7; + a5 = 4; + a21 = 10; + return -1; + } else if((((((a16==10)&&((a2==1)&&(((a12==1)&&((((input==3)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(a13==1))&&(a13==1)))&&(a1==12))))&&(a21==11))&&!(a20==1))&&((a17==2)&&((((a6==1)&&(a12==1))&&(a11==1))&&(a19==4))))){ + a20 = 1; + a5 = 6; + a9 = 7; + a0 = 1; + a16 = 9; + a27 = 1; + a21 = 10; + a22 = 0; + a19 = 5; + return 23; + } else if((((((((a28==1)&&(a9==8))||(a27==1))&&(a17==2))&&(a16==7))||(a24==1))&&((!(a20==1)&&(((a19==1)&&(!(a27==1)&&((!(a14==1)&&((a13==1)&&(((a5==4)||(a5==5))&&(input==1))))&&(a6==1))))&&(a21==12)))&&(a1==13)))){ + a9 = 7; + a5 = 6; + a20 = 1; + a3 = 1; + a18 = 0; + a21 = 10; + a19 = 4; + a1 = 12; + a0 = 0; + return -1; + } else if(((((a21==10)&&((a18==1)||((a1==13)&&(((a19==1)&&((a4==1)||(a2==1)))||!(a11==1)))))&&(a16==11))&&(!(a27==1)&&((((!(a8==1)&&(((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4)))&&(input==3)))&&(a11==1))&&!(a20==1))&&(a17==2))))){ + a1 = 14; + a26 = 1; + a29 = 0; + a20 = 1; + a16 = 7; + a5 = 4; + a7 = 1; + a9 = 11; + return -1; + } else if((((!(a11==1)||(((a9==11)&&(a13==1))&&(a11==1)))&&(a19==1))&&((a21==10)&&(((a16==8)&&(!(a8==1)&&(((a17==2)&&(!(a26==1)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a6==1))&&(a1==13))))&&(a13==1))))&&!(a20==1))))){ + a20 = 1; + a6 = 1; + a23 = 1; + a16 = 7; + a5 = 4; + a1 = 12; + a2 = 1; + a9 = 7; + return -1; + } else if((((a13==1)&&(!(a24==1)&&(((a19==5)&&((a1==14)&&((!(a8==1)&&(!(a7==1)&&((a17==2)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==6)))))&&(a16==8))))&&(a28==1))))&&(!(a28==1)||(((a13==1)&&!(a20==1))&&(a21==10))))){ + a19 = 2; + a5 = 4; + a9 = 9; + a20 = 1; + a2 = 1; + a16 = 7; + a3 = 1; + a1 = 13; + return 25; + } else if(((!(a28==1)||((a28==1)&&(!(a20==1)&&(((a19==5)&&((a3==1)&&(a16==8)))&&(a17==2)))))&&(((a13==1)&&((((a1==13)&&(((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==1))&&(a12==1)))&&(a21==12))&&!(a14==1)))&&!(a24==1)))){ + a19 = 1; + a12 = 0; + a21 = 10; + a15 = 0; + a26 = 1; + a5 = 6; + a9 = 10; + return 23; + } else if(((((a21==10)&&(((((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a11==1))&&(a9==7))&&(a13==1)))&&(a1==14))&&((((((((a19==2)&&((a20==1)&&(a3==1)))&&(a17==2))||(a24==1))&&!(a26==1))&&(a16==11))||!(a12==1))||(a7==1)))){ + a19 = 1; + a2 = 1; + a3 = 1; + a16 = 7; + a1 = 12; + a5 = 4; + a7 = 0; + return -1; + } else if(((((a4==1)||((a2==1)&&(a11==1)))&&(a17==2))&&((a19==1)&&((a16==7)&&((!(a0==1)&&((!(a4==1)&&((a21==11)&&(((a1==14)&&((input==4)&&(((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))))&&(a3==1))))&&(a23==1)))&&!(a20==1)))))){ + a20 = 1; + a1 = 12; + a11 = 1; + a2 = 1; + a27 = 0; + a5 = 4; + a21 = 10; + a9 = 7; + return -1; + } else if(((((a2==1)&&((a3==1)&&((!(a27==1)&&(!(a8==1)&&((a9==11)&&(input==5))))&&(a17==2))))&&!(a20==1))&&((((a19==5)&&((a16==7)&&((((a21==11)&&(a3==1))&&(a1==14))&&(a5==4))))&&!(a14==1))&&(a3==1)))){ + a21 = 12; + a0 = 0; + a9 = 8; + a2 = 1; + a19 = 4; + a20 = 1; + a6 = 1; + a16 = 11; + return 26; + } else if(((((!(a20==1)&&(((a16==10)&&((((a1==13)&&((a2==1)&&(((a5==4)||(a5==5))&&(input==4))))&&(a19==1))&&(a6==1)))&&(a9==8)))&&!(a18==1))&&(a21==11))&&((((a17==2)&&((a6==1)||!(a28==1)))&&(a2==1))&&(a13==1)))){ + if((a13==1)){ + a9 = 11; + a19 = 2; + a1 = 14; + a8 = 1; + a5 = 4; + a23 = 0; + a29 = 1; + }else{ + a29 = 0; + a19 = 3; + a16 = 8; + a12 = 0; + a5 = 5; + a15 = 0; + a1 = 14; + a20 = 1; + } + return -1; + } else if(((!(a27==1)&&((((a1==14)&&((a21==10)&&((a17==2)&&((!(a14==1)&&((input==4)&&((a5==4)||(a5==5))))&&(a19==1)))))&&(a28==1))&&(a13==1)))&&(((a16==9)&&((a24==1)||(((a28==1)&&(a20==1))&&(a13==1))))&&(a9==8)))){ + a16 = 10; + a1 = 13; + a9 = 11; + a19 = 4; + a11 = 1; + a23 = 1; + a21 = 12; + a13 = 1; + a5 = 4; + return 25; + } else if(((!(a0==1)&&(!(a27==1)&&((((a9==7)&&((a19==2)&&(((a5==5)||(a5==6))&&(input==4))))&&(a23==1))&&!(a27==1))))&&((a21==12)&&(!(a14==1)&&(((a20==1)&&((a1==13)&&(((a12==1)||!(a11==1))&&(a17==2))))&&(a16==9)))))){ + a13 = 1; + a27 = 0; + a6 = 1; + a21 = 10; + a1 = 12; + a16 = 7; + a19 = 1; + a5 = 4; + return -1; + } else if(((((a28==1)&&((!(a20==1)&&(((((a1==12)&&((a3==1)||(a0==1)))||!(a3==1))&&(a19==5))&&(a17==2)))&&(a16==7)))||!(a11==1))&&(((((a21==12)&&((input==4)&&((a5==4)||(a5==5))))&&(a6==1))&&(a9==9))&&(a12==1)))){ + a21 = 10; + a19 = 1; + a4 = 0; + a5 = 4; + a24 = 0; + a20 = 1; + a9 = 7; + a27 = 0; + return -1; + } else if(((((a11==1)&&((((!(a27==1)&&((input==6)&&(a9==7)))&&(a21==12))&&(a23==1))&&(a5==6)))&&(a20==1))&&((a1==13)&&((((a26==1)||((a17==2)&&(((a2==1)||(a8==1))&&(a16==8))))||(a8==1))&&(a19==5))))){ + a16 = 7; + a13 = 1; + a3 = 1; + a14 = 0; + a21 = 10; + a19 = 1; + a1 = 12; + a5 = 4; + return -1; + } else if(((((((a1==13)&&((((a19==3)&&(input==6))&&(a21==11))&&(a20==1)))&&!(a8==1))&&(a9==8))&&(a23==1))&&(((((((a13==1)&&((a3==1)||(a8==1)))&&(a16==7))&&(a5==5))&&(a6==1))&&(a17==2))||!(a2==1)))){ + a19 = 1; + a9 = 7; + a5 = 4; + a1 = 12; + a11 = 1; + a14 = 0; + a2 = 1; + a16 = 8; + return 26; + } else if((((((((input==4)&&(a17==2))&&(a21==11))&&!(a24==1))&&(a16==11))&&(a3==1))&&((a1==13)&&(!(a13==1)||((a5==5)&&(((a19==2)&&((a9==10)&&(!(a3==1)||((a2==1)&&((a20==1)&&(a12==1))))))||(a24==1))))))){ + a21 = 10; + a9 = 7; + a2 = 1; + a24 = 0; + a3 = 1; + a5 = 4; + a1 = 12; + a19 = 1; + a16 = 7; + return -1; + } else if((((a6==1)&&(((((a21==11)&&((((a23==1)&&(a6==1))&&(a19==3))&&(a1==14)))||(a7==1))&&(a17==2))||(a8==1)))&&(!(a20==1)&&(((a11==1)&&(((a5==6)&&((input==3)&&(a16==8)))&&(a9==8)))&&!(a14==1))))){ + a2 = 1; + a3 = 1; + a1 = 12; + a5 = 4; + a20 = 1; + a21 = 10; + a26 = 0; + a9 = 7; + a19 = 1; + a16 = 7; + return -1; + } else if((((((((a23==1)&&!(a20==1))&&(a21==10))||!(a3==1))||(a24==1))&&(a16==7))&&((((((((a6==1)&&((input==4)&&(((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))))&&(a19==4))&&!(a14==1))&&(a13==1))&&!(a7==1))&&(a1==13))&&(a17==2)))){ + a4 = 0; + a19 = 1; + a14 = 0; + a5 = 4; + a9 = 7; + a1 = 12; + a20 = 1; + return -1; + } else if(((((((a9==11)&&((!(a3==1)||((a19==5)&&(a23==1)))||(a0==1)))||!(a12==1))&&(a16==10))&&(a21==10))&&((a20==1)&&(!(a14==1)&&((((a3==1)&&((a17==2)&&(((a5==4)||(a5==5))&&(input==1))))&&(a1==12))&&!(a14==1)))))){ + a19 = 1; + a21 = 11; + a0 = 0; + a16 = 11; + a7 = 0; + a27 = 0; + a5 = 5; + return 25; + } else if(((!(a3==1)||((!(a20==1)&&((a1==12)&&((((a12==1)&&(a9==11))&&(a17==2))&&(a21==11))))&&(a19==5)))&&(((!(a4==1)&&((!(a18==1)&&((((a5==4)||(a5==5))&&(input==3))&&(a16==8)))&&!(a18==1)))&&!(a24==1))&&!(a0==1)))){ + a9 = 10; + a12 = 0; + a20 = 1; + a25 = 1; + a5 = 6; + a19 = 2; + a29 = 0; + a1 = 14; + a21 = 10; + return -1; + } else if((((((((a16==8)&&(a13==1))&&(a28==1))&&(a13==1))&&(a21==12))&&(a19==5))&&(((a5==6)&&(!(a4==1)&&(!(a7==1)&&((((((input==4)&&!(a20==1))&&!(a4==1))&&(a1==12))&&(a9==9))&&(a28==1)))))&&(a17==2)))){ + if((a20==1)){ + a9 = 11; + a5 = 5; + a21 = 11; + a20 = 1; + a24 = 1; + a28 = 0; + a25 = 0; + }else{ + a19 = 2; + a10 = 1; + a3 = 0; + a0 = 1; + a21 = 10; + a9 = 7; + a16 = 11; + a1 = 14; + } + return -1; + } else if(((!(a28==1)||((a21==12)&&(((a17==2)&&((!(a2==1)||(((a23==1)&&(a3==1))&&(a19==4)))||!(a11==1)))&&(a20==1))))&&(!(a24==1)&&((a1==13)&&(((a16==10)&&((input==5)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))))&&!(a26==1)))))){ + a9 = 9; + a7 = 0; + a21 = 10; + a11 = 1; + a19 = 2; + a5 = 5; + a16 = 7; + a23 = 1; + return 25; + } else if((((!(a24==1)&&((a0==1)||(((((a9==8)&&(a13==1))&&(a5==6))||!(a11==1))&&(a13==1))))&&!(a20==1))&&((((a17==2)&&((a16==10)&&((((a21==11)&&(input==1))&&(a13==1))&&(a13==1))))&&(a1==12))&&(a19==1)))){ + a16 = 7; + a21 = 10; + a19 = 2; + a9 = 11; + a10 = 1; + a20 = 1; + a22 = 0; + a15 = 0; + return -1; + } else if((((((a7==1)||(((a1==13)&&(((((a16==8)&&(a28==1))&&!(a27==1))&&(a6==1))&&(a20==1)))&&(a2==1)))||!(a3==1))&&(a19==2))&&((((a28==1)&&((a9==9)&&((input==4)&&((a5==6)||((a5==4)||(a5==5))))))&&(a17==2))&&(a21==10)))){ + a26 = 0; + a9 = 8; + a16 = 9; + a8 = 0; + a21 = 12; + a1 = 14; + a19 = 3; + a28 = 1; + a5 = 5; + return 23; + } else if((((a21==12)&&((a9==7)&&((!(a7==1)&&((((a28==1)&&(a16==10))&&(a20==1))||(a18==1)))||!(a13==1))))&&((!(a24==1)&&((a5==6)&&(!(a27==1)&&((a19==3)&&(((input==4)&&(a17==2))&&(a13==1))))))&&(a1==12)))){ + a9 = 10; + a2 = 1; + a1 = 13; + a16 = 8; + a19 = 5; + a23 = 1; + a27 = 0; + return 25; + } else if((((a3==1)&&(!(a14==1)&&((a9==8)&&((a5==6)&&((a21==10)&&((input==3)&&(a1==14)))))))&&(((((!(a2==1)||(((a16==8)&&((a17==2)&&(a11==1)))&&(a19==1)))&&!(a20==1))||!(a2==1))&&(a28==1))||(a27==1)))){ + a9 = 7; + a20 = 1; + a8 = 0; + a28 = 1; + a5 = 4; + a1 = 12; + a16 = 7; + return -1; + } else if((((a9==8)&&((a19==4)&&(((((!(a8==1)&&((a1==14)&&(!(a0==1)&&(!(a18==1)&&((a5==4)&&(input==3))))))&&!(a20==1))&&!(a26==1))&&!(a27==1))&&(a6==1))))&&((a16==10)&&(((a2==1)&&(a21==12))&&(a17==2))))){ + a9 = 10; + a5 = 6; + a20 = 1; + a10 = 1; + a1 = 12; + a27 = 1; + a21 = 10; + a19 = 2; + a13 = 0; + a16 = 9; + return -1; + } else if(((((a6==1)&&((a21==12)&&(!(a20==1)&&((a17==2)&&((((a19==1)&&((input==3)&&(((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))))&&!(a18==1))&&(a23==1))))))&&(a13==1))&&((a16==7)&&((a1==14)&&(((a13==1)&&!(a18==1))&&(a3==1)))))){ + a12 = 1; + a9 = 7; + a21 = 10; + a20 = 1; + a7 = 0; + a5 = 4; + a28 = 1; + a1 = 12; + return -1; + } else if((((a16==9)&&((((!(a0==1)&&(((((a9==7)&&((a5==4)&&(a1==13)))||(((a9==11)&&((a5==5)&&(a1==12)))||((a9==11)&&((a5==6)&&(a1==12)))))&&(input==1))&&(a6==1)))&&(a2==1))&&!(a18==1))&&!(a20==1)))&&((a21==10)&&((a23==1)&&((a17==2)&&((a28==1)&&((a11==1)&&(a19==1)))))))){ + if((a12==1)){ + a16 = 7; + a19 = 2; + a10 = 0; + a5 = 6; + a9 = 11; + a20 = 1; + a15 = 0; + a13 = 0; + a1 = 12; + }else{ + a20 = 1; + a5 = 6; + a1 = 14; + a29 = 0; + a9 = 7; + a8 = 1; + a16 = 7; + a25 = 0; + } + return -1; + } else if(((((a19==2)&&(!(a4==1)&&((a13==1)&&((a20==1)&&((a3==1)&&((a16==10)&&(((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a7==1))))))))&&(a17==2))&&((a21==11)&&((a1==14)&&((a9==9)&&((a0==1)||(!(a0==1)&&(a6==1)))))))){ + a23 = 1; + a16 = 7; + a27 = 0; + a1 = 12; + a8 = 0; + a9 = 7; + a21 = 10; + a19 = 1; + a5 = 4; + return -1; + } else if((((((a4==1)||((a6==1)&&(((a23==1)&&(!(a6==1)||((((a17==2)&&((a19==1)&&(a6==1)))&&!(a20==1))&&(a1==12))))&&(a16==8))))||(a27==1))||(a18==1))&&((a21==10)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==3))))){ + a5 = 4; + a20 = 1; + a0 = 0; + a24 = 0; + a6 = 1; + a16 = 10; + a9 = 8; + return 21; + } else if((((a9==11)&&((a6==1)&&((a21==11)&&(!(a24==1)&&(((a1==13)&&((input==4)&&(a19==5)))&&(a12==1))))))&&((((((a17==2)&&((a20==1)&&((a5==6)&&(a11==1))))||(a26==1))&&!(a27==1))&&!(a4==1))&&(a16==8)))){ + a5 = 4; + a1 = 12; + a9 = 7; + a19 = 1; + a12 = 1; + a14 = 0; + a16 = 7; + a23 = 1; + a21 = 10; + return -1; + } else if(((!(a14==1)&&((a16==9)&&(((!(a18==1)&&((a3==1)&&((a17==2)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==6)))))&&(a23==1))&&(a23==1))))&&(((((a1==14)&&((a3==1)&&(a19==2)))&&(a20==1))&&(a21==12))||!(a28==1)))){ + a16 = 10; + a0 = 0; + a9 = 8; + a21 = 11; + a5 = 5; + a1 = 12; + a27 = 0; + a19 = 4; + a4 = 0; + return 21; + } else if(((((a12==1)&&((!(a27==1)&&((a21==12)&&((input==1)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))))&&!(a20==1)))&&(a17==2))&&((a1==14)&&(((a16==8)&&(((a19==4)&&(((a13==1)&&(a11==1))&&(a3==1)))&&(a13==1)))||!(a3==1))))){ + a8 = 1; + a20 = 1; + a19 = 1; + a5 = 5; + a27 = 1; + a21 = 10; + a9 = 9; + a18 = 1; + a16 = 7; + return -1; + } else if((((a1==13)&&(((a19==1)&&((a28==1)&&((a9==7)&&(((a5==5)&&(!(a3==1)||((a11==1)&&!(a14==1))))&&(a20==1)))))&&(a21==10)))&&((((a23==1)&&((a12==1)&&((a17==2)&&(input==6))))&&!(a7==1))&&(a16==10)))){ + a1 = 12; + a14 = 0; + a16 = 11; + a13 = 1; + a19 = 5; + a28 = 1; + return 22; + } else if((((a3==1)&&((((((((a17==2)&&(input==4))&&!(a24==1))&&(a19==3))&&(a16==11))&&!(a26==1))&&(a11==1))&&!(a8==1)))&&(((((a5==6)&&((a21==11)&&(!(a8==1)&&(a6==1))))&&(a1==14))&&(a9==8))&&(a20==1)))){ + a7 = 0; + a26 = 0; + a19 = 1; + a2 = 1; + a5 = 4; + a1 = 12; + a9 = 7; + a16 = 7; + a21 = 10; + return -1; + } else if(((((a20==1)&&((a21==12)&&(!(a0==1)&&((a16==9)&&(a13==1)))))&&(a12==1))&&((a23==1)&&(((((((((input==5)&&(a5==6))&&(a1==12))&&(a9==8))&&!(a7==1))&&(a2==1))&&(a11==1))&&(a19==5))&&(a17==2))))){ + a5 = 4; + a21 = 10; + a19 = 1; + a7 = 0; + a12 = 1; + a9 = 7; + a16 = 7; + a27 = 0; + return -1; + } else if(((!(a8==1)&&((!(a20==1)&&(!(a8==1)&&(a11==1)))||!(a13==1)))&&((a28==1)&&(((a19==2)&&((a23==1)&&((a16==10)&&(((a21==12)&&(((((a9==11)&&((a1==13)&&(a5==5)))||(((a1==13)&&(a5==6))&&(a9==11)))||(((a5==4)&&(a1==14))&&(a9==7)))&&(input==3)))&&(a17==2)))))&&!(a14==1))))){ + a5 = 6; + a20 = 1; + a16 = 7; + a6 = 0; + a7 = 1; + a1 = 14; + a9 = 7; + a21 = 11; + a10 = 1; + return -1; + } else if((((!(a24==1)&&((!(a20==1)&&((a21==11)&&(a13==1)))||(a18==1)))||(a24==1))&&(!(a0==1)&&(((a6==1)&&((a16==8)&&((a17==2)&&((a19==1)&&(((((a9==11)&&((a5==5)&&(a1==13)))||((a9==11)&&((a5==6)&&(a1==13))))||((a9==7)&&((a1==14)&&(a5==4))))&&(input==6))))))&&!(a26==1))))){ + a9 = 7; + a20 = 1; + a1 = 12; + a7 = 0; + a16 = 7; + a21 = 10; + a23 = 1; + a5 = 4; + return -1; + } else if(((!(a2==1)&&((a5==5)&&((a20==1)&&((((a19==4)&&(input==3))&&(a21==10))&&(a9==8)))))&&((!(a23==1)&&((a0==1)&&(((a16==7)&&(((!(a23==1)&&(a2==1))&&(a26==1))&&(a17==2)))&&(a1==14))))&&!(a2==1)))){ + a21 = 11; + a19 = 1; + a23 = 0; + a0 = 1; + a5 = 4; + a20 = 0; + a1 = 13; + a9 = 9; + a18 = 1; + return 21; + } else if((((a3==1)&&(((a13==1)&&((a21==11)&&(!(a20==1)&&(!(a14==1)&&(a23==1)))))&&(a19==4)))&&((((a17==2)&&(((a1==14)&&((a23==1)&&((input==1)&&(((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))))))&&(a6==1)))&&(a16==7))&&(a23==1)))){ + a4 = 0; + a27 = 0; + a7 = 0; + a21 = 10; + a1 = 12; + a19 = 1; + a9 = 7; + a5 = 4; + a20 = 1; + return -1; + } else if((((a16==10)&&(((!(a28==1)||(a12==1))&&(a2==1))&&!(a18==1)))&&((a19==5)&&(!(a20==1)&&((a1==13)&&((a21==12)&&((a9==11)&&((a17==2)&&(((!(a24==1)&&(((a5==5)||(a5==6))&&(input==1)))&&!(a0==1))&&(a3==1)))))))))){ + a11 = 0; + a5 = 4; + a10 = 1; + a20 = 1; + a19 = 4; + a27 = 1; + a21 = 11; + return 22; + } else if(((((a19==1)&&(((a17==2)&&(!(a26==1)&&(a13==1)))||(a14==1)))||(a8==1))&&((((a21==10)&&((a23==1)&&((((input==6)&&(((a9==11)&&((a5==6)&&(a1==12)))||(((a5==4)&&(a1==13))&&(a9==7))))&&!(a20==1))&&!(a26==1))))&&(a11==1))&&(a16==11)))){ + a21 = 12; + a5 = 4; + a1 = 14; + a19 = 5; + a29 = 1; + a10 = 0; + a16 = 8; + a9 = 8; + a20 = 1; + return -1; + } else if((((a19==3)&&((!(a23==1)||((a5==4)&&(((a2==1)&&(a1==13))&&!(a0==1))))&&(a21==10)))&&((a9==7)&&(!(a0==1)&&(((a17==2)&&((a16==10)&&((((a20==1)&&(input==1))&&!(a8==1))&&(a13==1))))&&!(a4==1)))))){ + a7 = 0; + a23 = 1; + a16 = 9; + a1 = 14; + a27 = 0; + a5 = 6; + a9 = 9; + a19 = 2; + return 21; + } else if((((!(a23==1)&&(((!(a20==1)&&((!(a6==1)&&(a12==1))&&!(a23==1)))&&(a19==5))&&(a17==2)))&&(a21==11))&&((((!(a3==1)&&((((input==3)&&((a5==5)||(a5==6)))&&!(a28==1))&&(a26==1)))&&(a16==7))&&(a1==12))&&(a9==8)))){ + a19 = 1; + a5 = 6; + a1 = 14; + a12 = 0; + a21 = 10; + a8 = 1; + a25 = 0; + a20 = 1; + a9 = 11; + return -1; + } else if((((a1==13)&&(((a3==1)&&((((a16==7)&&((a20==1)&&(((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11)))&&(input==1))))&&(a19==4))&&!(a4==1)))&&(a2==1)))&&((a0==1)||((!(a0==1)&&(((a6==1)||(a27==1))&&(a21==10)))&&(a17==2))))){ + a9 = 8; + a5 = 6; + a8 = 0; + a26 = 0; + a4 = 0; + a19 = 5; + a21 = 11; + return 26; + } else if((((a2==1)&&((a19==3)&&((a17==2)&&((a20==1)&&((a28==1)&&(a21==11))))))&&(!(a8==1)&&(((!(a4==1)&&(((a1==12)&&(((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==1))&&!(a18==1)))&&!(a24==1)))&&(a16==9))&&(a2==1))))){ + a9 = 7; + a4 = 0; + a5 = 4; + a18 = 0; + a16 = 7; + a2 = 1; + a21 = 10; + a19 = 1; + return -1; + } else if((((a17==2)&&(!(a20==1)&&((a21==10)&&((a3==1)&&((a19==3)&&(a6==1))))))&&(((((a11==1)&&(!(a24==1)&&(((a12==1)&&((input==5)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))&&!(a18==1))))&&!(a8==1))&&(a16==9))&&(a1==12)))){ + a19 = 1; + a24 = 1; + a1 = 13; + a4 = 1; + a9 = 11; + a5 = 5; + a21 = 11; + a25 = 1; + return -1; + } else if((((((a19==4)&&(((a16==11)&&(((a21==12)&&(((a20==1)&&(input==3))&&!(a27==1)))&&(a5==5)))&&(a17==2)))&&!(a14==1))&&(a23==1))&&(!(a2==1)||((a1==14)&&((a9==8)&&(!(a4==1)&&((a28==1)||!(a6==1)))))))){ + a19 = 5; + a1 = 12; + a20 = 0; + a5 = 4; + a16 = 8; + a9 = 10; + a23 = 1; + a0 = 0; + a28 = 1; + a21 = 11; + return 21; + } else if((((a14==1)||(!(a18==1)&&(((a19==4)&&(a28==1))&&!(a0==1))))&&((((a16==8)&&((a20==1)&&((a2==1)&&((a21==11)&&(((((a9==11)&&((a5==6)&&(a1==13)))||(((a1==14)&&(a5==4))&&(a9==7)))&&(input==5))&&(a17==2))))))&&!(a4==1))&&!(a27==1)))){ + a21 = 10; + a19 = 1; + a4 = 0; + a9 = 7; + a5 = 4; + a1 = 12; + a8 = 0; + a16 = 7; + return -1; + } else if((((a13==1)&&(((a21==11)&&((!(a18==1)&&((a20==1)&&(((a5==5)||(a5==6))&&(input==6))))&&!(a26==1)))&&(a12==1)))&&((a11==1)&&((a26==1)||(((a1==12)&&((a16==7)&&((a19==1)&&((a9==11)&&(a3==1)))))&&(a17==2)))))){ + a16 = 8; + a7 = 0; + a9 = 7; + a24 = 0; + a23 = 1; + a5 = 4; + a21 = 10; + return 23; + } else if((((a17==2)&&((a9==8)&&((a13==1)&&((a23==1)&&((a20==1)&&((((input==3)&&(a19==3))&&(a21==12))&&(a5==5)))))))&&((a1==13)&&((!(a12==1)||((a6==1)&&((!(a13==1)||(a23==1))&&(a16==10))))||(a24==1))))){ + a5 = 4; + a21 = 10; + a11 = 1; + a16 = 7; + a6 = 1; + a9 = 9; + a4 = 0; + a19 = 2; + return -1; + } else if((((((((a19==1)&&(a6==1))&&(a1==12))&&(a6==1))&&(a5==4))&&!(a20==1))&&(!(a18==1)&&((a16==10)&&((!(a4==1)&&(!(a8==1)&&((!(a24==1)&&((a9==9)&&((input==6)&&(a17==2))))&&(a21==12))))&&(a12==1)))))){ + a29 = 0; + a20 = 1; + a9 = 11; + a16 = 7; + a7 = 1; + a1 = 13; + a24 = 1; + a21 = 10; + return -1; + } else if(((((a16==10)&&((((((a5==4)||(a5==5))&&(input==6))&&(a3==1))&&(a17==2))&&!(a27==1)))&&(a21==11))&&((!(a12==1)||(((a1==14)&&((((!(a20==1)&&(a28==1))||!(a23==1))&&(a9==11))&&!(a4==1)))&&(a19==4)))||!(a23==1)))){ + a16 = 7; + a23 = 0; + a19 = 3; + a9 = 7; + a5 = 6; + a21 = 12; + a1 = 13; + a26 = 1; + return -1; + } else if((((a19==5)&&((a17==2)&&((a1==13)&&((((a21==12)&&(a13==1))||!(a12==1))&&(a16==10)))))&&(!(a20==1)&&((!(a18==1)&&((!(a0==1)&&((((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))&&(input==5))&&!(a18==1)))&&(a3==1)))&&!(a14==1))))){ + a21 = 11; + a9 = 9; + a25 = 1; + a19 = 1; + a11 = 0; + a5 = 4; + a1 = 14; + a10 = 1; + return -1; + } else if(((!(a20==1)&&((a19==3)&&((((a1==14)&&((((a11==1)&&!(a24==1))&&(a17==2))&&(a16==10)))&&(a21==10))&&!(a18==1))))&&((a9==8)&&(!(a8==1)&&((a3==1)&&((!(a18==1)&&(((a5==5)||(a5==6))&&(input==1)))&&!(a7==1))))))){ + if((a2==1)){ + a1 = 13; + a20 = 1; + a19 = 1; + a5 = 5; + a10 = 1; + a9 = 10; + a25 = 0; + a16 = 7; + a23 = 0; + }else{ + a19 = 4; + a26 = 1; + a29 = 0; + a20 = 1; + a9 = 7; + a21 = 11; + a5 = 5; + a12 = 0; + a16 = 9; + } + return -1; + } else if((((((a14==1)||(((a5==4)&&(!(a8==1)&&((a4==1)||((a6==1)&&(a2==1)))))&&(a20==1)))||!(a12==1))&&(a17==2))&&((a21==12)&&((a16==11)&&(((a19==4)&&((a1==14)&&((a9==8)&&(input==5))))&&(a3==1)))))){ + a23 = 1; + a9 = 11; + a19 = 1; + a16 = 10; + a11 = 1; + a8 = 0; + a21 = 10; + a5 = 5; + return 25; + } else if((((a28==1)&&((a23==1)&&((a24==1)||((a16==7)&&((((a23==1)&&(a20==1))&&(a28==1))&&(a21==10))))))&&((a17==2)&&((a1==12)&&((((a9==7)&&(!(a4==1)&&(((a5==4)||(a5==5))&&(input==3))))&&(a11==1))&&(a19==4)))))){ + a9 = 8; + a4 = 0; + a1 = 13; + a27 = 0; + a5 = 4; + a0 = 0; + a19 = 3; + a21 = 11; + return 22; + } else if(((((a5==4)&&((!(a20==1)&&((a13==1)&&(!(a7==1)&&(((input==1)&&(a1==14))&&!(a8==1)))))&&!(a24==1)))&&(a9==7))&&((a17==2)&&((a16==8)&&(((a2==1)&&((a19==5)&&(!(a6==1)||(a23==1))))&&(a21==10)))))){ + a1 = 12; + a20 = 1; + a11 = 1; + a16 = 7; + a12 = 1; + a19 = 1; + a4 = 0; + return -1; + } else if((((!(a7==1)&&((!(a20==1)&&((!(a4==1)&&(((a5==4)||(a5==5))&&(input==4)))&&(a19==3)))&&(a21==10)))&&!(a14==1))&&((a16==10)&&(!(a2==1)||((a2==1)&&(((a1==12)&&((a9==8)&&((a17==2)&&(a11==1))))||!(a23==1))))))){ + if((a24==1)){ + a16 = 7; + a19 = 2; + a5 = 4; + a6 = 0; + a9 = 7; + a20 = 1; + a11 = 0; + }else{ + a16 = 7; + a19 = 2; + a5 = 4; + a15 = 1; + a21 = 11; + a12 = 0; + a9 = 7; + a28 = 0; + } + return 21; + } else if(((!(a8==1)&&((a1==12)&&(((a28==1)&&(!(a18==1)&&(((a9==9)&&((input==6)&&(a21==10)))&&!(a14==1))))&&!(a8==1))))&&((a5==6)&&(!(a20==1)&&((((a16==8)&&((a18==1)||(a28==1)))&&(a19==2))&&(a17==2)))))){ + a19 = 1; + a9 = 7; + a8 = 0; + a5 = 4; + a14 = 0; + a18 = 0; + a20 = 1; + a16 = 7; + return -1; + } else if(((((a17==2)&&((a9==9)&&(!(a20==1)&&(!(a18==1)&&(!(a18==1)&&((a21==10)&&(a12==1)))))))&&(a19==1))&&((a16==8)&&((a1==13)&&((a13==1)&&(!(a26==1)&&((a12==1)&&((a23==1)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6))))))))))){ + a16 = 7; + a8 = 0; + a1 = 12; + a28 = 1; + a13 = 1; + a5 = 4; + a20 = 1; + a9 = 7; + return -1; + } else if((((a20==1)&&(!(a8==1)&&(((((((input==1)&&(a1==14))&&(a9==7))&&(a16==8))&&!(a18==1))&&(a19==5))&&(a23==1))))&&((a21==12)&&((!(a0==1)&&((a17==2)&&((a5==6)&&((a8==1)||(a11==1)))))||!(a6==1))))){ + a9 = 9; + a16 = 7; + a20 = 0; + a6 = 1; + a24 = 0; + a1 = 13; + a5 = 4; + return -1; + } else if((((((((((a19==3)&&((a9==8)&&(a28==1)))||(a27==1))||!(a11==1))||!(a2==1))&&!(a24==1))&&(a20==1))&&(a21==10))&&((a1==12)&&(((!(a26==1)&&(((input==1)&&((a5==5)||(a5==6)))&&(a17==2)))&&(a12==1))&&(a16==11))))){ + if((a7==1)){ + a19 = 2; + a16 = 8; + a7 = 0; + a1 = 14; + a9 = 9; + a5 = 4; + a3 = 1; + a20 = 0; + a27 = 0; + }else{ + a0 = 0; + a1 = 14; + a9 = 7; + a5 = 4; + a16 = 7; + a21 = 12; + a7 = 0; + } + return 25; + } else if(((((((a21==12)&&((((a6==1)&&!(a4==1))&&(a16==9))&&(a9==7)))||(a24==1))||!(a12==1))&&(a17==2))&&((a19==1)&&((a1==12)&&((!(a24==1)&&(((!(a20==1)&&(input==5))&&(a2==1))&&(a5==6)))&&(a2==1)))))){ + if((a8==1)){ + a9 = 8; + a20 = 1; + a1 = 13; + a25 = 1; + a16 = 11; + a15 = 0; + a21 = 10; + a8 = 1; + }else{ + a1 = 14; + a29 = 1; + a16 = 7; + a6 = 0; + a5 = 4; + a11 = 0; + a21 = 11; + a19 = 5; + } + return -1; + } else if(((((a17==2)&&((a20==1)&&((a3==1)&&(((!(a14==1)&&(!(a14==1)&&((a6==1)&&((input==1)&&((a5==4)||(a5==5))))))&&(a1==14))&&(a9==7)))))&&(a16==10))&&((!(a27==1)&&((a3==1)&&((a21==11)&&(a3==1))))&&(a19==2)))){ + a1 = 13; + a16 = 7; + a21 = 10; + a27 = 0; + a9 = 9; + a5 = 4; + a18 = 0; + a26 = 0; + return 25; + } else if(((((((a17==2)&&((a12==1)&&((((a9==8)&&(input==4))&&(a3==1))&&!(a8==1))))&&(a20==1))&&(a5==4))&&(a19==5))&&((a16==8)&&(((((a1==14)&&((a23==1)||!(a11==1)))||!(a12==1))||!(a28==1))&&(a21==12))))){ + a0 = 0; + a1 = 12; + a21 = 10; + a19 = 1; + a26 = 0; + a9 = 7; + a7 = 0; + a16 = 7; + return -1; + } else if(((((((a21==10)&&(((((((a5==5)&&(a1==12))&&(a9==11))||(((a1==12)&&(a5==6))&&(a9==11)))||(((a1==13)&&(a5==4))&&(a9==7)))&&(input==5))&&(a17==2)))&&(a20==1))&&(a16==9))&&!(a26==1))&&(!(a14==1)&&((((a2==1)&&(((a4==1)||(a23==1))&&!(a0==1)))&&!(a26==1))&&(a19==1))))){ + a13 = 1; + a9 = 8; + a5 = 6; + a4 = 0; + a1 = 12; + a26 = 0; + a16 = 11; + return 25; + } return calculate_output57(input); + } + + int calculate_output57(int input) { + if(((((!(a20==1)&&((a1==12)&&((a16==7)&&((a28==1)&&((a17==2)&&((input==4)&&((a5==4)||(a5==5))))))))&&(a21==12))&&(a19==1))&&((!(a6==1)||(((((a9==11)&&(a13==1))||!(a3==1))||(a7==1))&&!(a14==1)))&&(a3==1)))){ + a5 = 5; + a8 = 0; + a9 = 7; + a16 = 11; + a12 = 1; + a1 = 14; + a20 = 1; + a21 = 10; + a3 = 1; + a19 = 3; + return 23; + } else if((((a9==8)&&((a3==1)&&((((((a21==12)&&((((a5==5)||(a5==6))&&(input==3))&&(a17==2)))&&(a13==1))&&(a1==12))&&!(a27==1))&&(a13==1))))&&(((a16==7)&&(!(a13==1)||((!(a24==1)&&(a12==1))&&(a19==5))))&&!(a20==1)))){ + a4 = 0; + a9 = 7; + a5 = 4; + a20 = 1; + a23 = 1; + a21 = 10; + a19 = 1; + return -1; + } else if((((a3==1)&&(((((a11==1)&&((a3==1)||(a18==1)))&&(a20==1))&&(a21==10))&&(a19==1)))&&((((a17==2)&&((a16==8)&&((((input==3)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(a1==14))&&(a12==1))))&&!(a18==1))&&(a28==1)))){ + a21 = 12; + a9 = 7; + a24 = 0; + a19 = 3; + a23 = 1; + a16 = 9; + a1 = 12; + a2 = 1; + a5 = 5; + return 25; + } else if(((!(a14==1)&&((a20==1)&&((((a16==7)&&((a5==4)&&(input==6)))&&(a21==12))&&(a19==1))))&&((!(a2==1)||((a1==13)&&((((a9==8)&&((a28==1)&&((a23==1)&&(a23==1))))&&!(a14==1))||(a27==1))))&&(a17==2)))){ + a16 = 8; + a3 = 1; + a12 = 1; + a9 = 10; + a0 = 0; + a19 = 5; + return 25; + } else if((((!(a14==1)&&((a16==9)&&((input==1)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8))))))&&!(a20==1))&&((((a21==10)&&((a17==2)&&(((!(a11==1)||(!(a27==1)&&((a19==3)&&(a11==1))))&&(a1==13))&&(a13==1))))||!(a12==1))&&(a2==1)))){ + if((a27==1)){ + a1 = 12; + a19 = 2; + a9 = 9; + a25 = 1; + a16 = 7; + a5 = 6; + a10 = 0; + a20 = 1; + a15 = 1; + }else{ + a1 = 12; + a16 = 8; + a19 = 1; + a9 = 8; + a7 = 1; + a20 = 1; + a5 = 4; + a11 = 0; + a6 = 0; + } + return 22; + } else if((((a19==1)&&((a23==1)&&((a17==2)&&((a1==12)&&((a9==7)&&(a13==1))))))&&((a20==1)&&(!(a0==1)&&(((a21==10)&&((((((input==4)&&((a5==4)||(a5==5)))&&!(a14==1))&&(a16==8))&&!(a8==1))&&(a23==1)))&&!(a8==1)))))){ + a5 = 4; + a6 = 1; + a24 = 0; + a23 = 1; + a16 = 7; + return -1; + } else if((((!(a13==1)||((!(a13==1)||(a28==1))||(a27==1)))&&!(a18==1))&&((a19==3)&&(!(a26==1)&&((((a17==2)&&((a21==11)&&((a16==9)&&(((((a5==6)&&(a1==12))&&(a9==11))||(((a1==13)&&(a5==4))&&(a9==7)))&&(input==1)))))&&!(a20==1))&&(a2==1)))))){ + a5 = 5; + a20 = 1; + a4 = 1; + a16 = 7; + a11 = 0; + a19 = 1; + a1 = 14; + a9 = 10; + a21 = 10; + a27 = 1; + return 21; + } else if((((a6==1)&&(((a1==13)&&(((a17==2)&&((((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&(a9==11))&&(a19==5)))&&(a16==9)))&&!(a27==1)))&&((a14==1)||(((((a3==1)&&((a13==1)&&!(a20==1)))&&(a21==11))&&(a12==1))||!(a11==1))))){ + a5 = 5; + a19 = 2; + a9 = 9; + a24 = 1; + a21 = 10; + a0 = 1; + a1 = 12; + a16 = 7; + a10 = 0; + return -1; + } else if((((!(a12==1)||((a17==2)&&((a4==1)||((a28==1)&&(a21==11)))))&&(a16==10))&&((a1==12)&&(((!(a24==1)&&(!(a20==1)&&(!(a14==1)&&(((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==5))&&!(a0==1)))))&&!(a0==1))&&(a19==1))))){ + a16 = 7; + a9 = 10; + a5 = 4; + a24 = 1; + a15 = 0; + a1 = 14; + a19 = 5; + return -1; + } else if((((a21==12)&&((a17==2)&&(((a6==1)&&(!(a2==1)||((!(a26==1)&&(((a19==1)&&(a13==1))&&!(a24==1)))&&(a16==8))))&&(a9==10))))&&((((a1==14)&&(((input==5)&&((a5==4)||(a5==5)))&&(a20==1)))&&!(a14==1))&&(a2==1)))){ + a5 = 4; + a1 = 13; + a19 = 2; + a9 = 9; + a3 = 1; + a21 = 10; + a16 = 7; + a18 = 0; + return 25; + } else if(((!(a6==1)||((a28==1)&&((a11==1)&&(!(a18==1)&&((a17==2)&&((a21==12)&&(a3==1)))))))&&((((((((input==1)&&(((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))))&&(a19==2))&&(a16==9))&&(a23==1))&&(a1==12))&&!(a20==1))&&!(a26==1)))){ + a5 = 6; + a25 = 0; + a22 = 1; + a3 = 0; + a19 = 3; + a9 = 7; + a20 = 1; + return -1; + } else if(((!(a26==1)&&((a16==11)&&((a19==2)&&((((a7==1)||((a21==12)&&((a9==9)&&(a11==1))))||!(a6==1))&&(a20==1)))))&&(((((((input==1)&&((a5==5)||(a5==6)))&&(a28==1))&&(a17==2))&&(a1==13))&&!(a27==1))&&!(a8==1)))){ + a19 = 5; + a16 = 10; + a18 = 0; + a9 = 8; + a12 = 1; + a5 = 4; + a2 = 1; + a21 = 11; + return 21; + } else if((((a16==8)&&((a12==1)&&(((a19==5)&&(!(a26==1)&&((((a24==1)||((a1==13)&&(a13==1)))||!(a23==1))&&(a21==10))))&&!(a4==1))))&&(((!(a18==1)&&(((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&(a9==11)))&&(a20==1))&&(a17==2)))){ + a1 = 12; + a9 = 7; + a4 = 0; + a5 = 4; + a3 = 1; + a19 = 4; + a0 = 0; + a16 = 7; + return -1; + } else if(((((a4==1)||((a14==1)||(((a12==1)&&(((a28==1)&&(a1==14))&&(a21==12)))||(a27==1))))&&(a16==8))&&(((a20==1)&&(((a17==2)&&(!(a7==1)&&((input==1)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5))))))&&(a13==1)))&&(a19==1)))){ + a9 = 8; + a1 = 12; + a5 = 5; + a11 = 1; + a19 = 2; + a8 = 0; + a16 = 7; + a21 = 11; + a20 = 0; + return 21; + } else if((((a11==1)&&((((a16==9)&&((((input==3)&&((a5==5)||(a5==6)))&&(a19==3))&&!(a24==1)))&&(a9==9))&&!(a7==1)))&&(!(a4==1)&&(!(a23==1)||((a21==12)&&((a1==13)&&((a13==1)&&((a17==2)&&(!(a20==1)&&(a23==1)))))))))){ + if((a26==1)){ + a22 = 1; + a20 = 1; + a21 = 10; + a28 = 0; + a19 = 1; + a9 = 10; + a10 = 0; + a5 = 4; + a16 = 7; + }else{ + a21 = 10; + a12 = 0; + a9 = 7; + a5 = 6; + a16 = 10; + a25 = 1; + } + return -1; + } else if((((a1==12)&&(((a20==1)&&((((a21==12)&&((a3==1)&&(a2==1)))&&(a28==1))&&(a17==2)))&&(a9==11)))&&((!(a7==1)&&(((((a16==7)&&(((a5==4)||(a5==5))&&(input==1)))&&!(a4==1))&&(a19==3))&&(a28==1)))&&!(a0==1)))){ + a12 = 1; + a5 = 4; + a21 = 10; + a9 = 7; + a27 = 0; + a19 = 1; + return -1; + } else if((((a9==10)&&((a16==9)&&((((!(a14==1)&&((!(a20==1)&&(!(a4==1)&&(((a1==13)&&(input==1))&&(a3==1))))&&(a12==1)))&&(a2==1))&&(a6==1))&&(a5==4))))&&((a19==5)&&((a17==2)&&((a28==1)&&(a21==12)))))){ + a8 = 1; + a5 = 5; + a15 = 0; + a19 = 3; + a1 = 14; + a16 = 8; + a9 = 8; + a0 = 1; + return 25; + } else if(((((!(a2==1)||((a28==1)&&((a19==5)&&((a28==1)&&(a16==8)))))&&(a23==1))&&!(a7==1))&&(((a17==2)&&(((!(a20==1)&&(((input==5)&&((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4))))&&!(a18==1)))&&(a21==10))&&(a1==13)))&&(a12==1)))){ + a1 = 12; + a19 = 1; + a5 = 4; + a24 = 0; + a4 = 0; + a9 = 7; + a16 = 7; + a20 = 1; + return -1; + } else if(((((a1==14)&&((((a17==2)&&((a21==11)&&((input==4)&&((a5==4)||(a5==5)))))&&!(a0==1))&&(a9==8)))&&!(a27==1))&&(((a4==1)||((a19==1)&&((a16==11)&&((((a20==1)&&(a23==1))&&!(a4==1))||!(a2==1)))))||!(a3==1)))){ + a21 = 10; + a13 = 1; + a5 = 4; + a9 = 7; + a1 = 12; + a26 = 0; + a16 = 7; + a11 = 1; + return -1; + } else if(((!(a12==1)||(!(a6==1)||((a26==1)||(((a20==1)&&(a11==1))&&(a2==1)))))&&((a2==1)&&(((a21==12)&&(!(a4==1)&&((((a19==4)&&((input==5)&&(((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6))))))&&(a17==2))&&(a16==7))))&&(a1==14))))){ + a1 = 12; + a19 = 1; + a28 = 1; + a13 = 1; + a7 = 0; + a21 = 10; + a5 = 4; + a9 = 7; + return -1; + } else if((((!(a8==1)&&((!(a18==1)&&(((a9==9)&&((a23==1)&&((a19==2)&&(((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&(a16==8)))))&&(a1==13)))&&(a21==11)))&&(a28==1))&&(((a17==2)&&((a7==1)||((a6==1)&&(a20==1))))&&(a28==1)))){ + a16 = 10; + a21 = 10; + a0 = 0; + a9 = 7; + a19 = 4; + a23 = 1; + a5 = 6; + a6 = 1; + return 25; + } else if(((((((a2==1)&&(a16==11))&&(a17==2))&&(a19==4))&&(a11==1))&&((a2==1)&&(!(a7==1)&&(((a12==1)&&((a21==11)&&((((((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))&&(input==3))&&(a20==1))&&(a28==1))&&(a1==13))))&&(a2==1)))))){ + a18 = 0; + a4 = 0; + a9 = 7; + a16 = 7; + a1 = 12; + a5 = 4; + a21 = 10; + a19 = 1; + a26 = 0; + return -1; + } else if((((!(a18==1)&&(((a12==1)&&((a17==2)&&(input==5)))&&!(a20==1)))&&(a9==9))&&((((((!(a3==1)||(!(a14==1)&&((a19==4)&&((a12==1)&&(a5==6)))))&&(a21==10))||!(a11==1))&&(a16==11))&&(a1==13))&&(a12==1)))){ + a11 = 0; + a19 = 1; + a20 = 1; + a16 = 7; + a28 = 0; + a1 = 12; + a15 = 1; + return -1; + } else if((((((a17==2)&&((a5==5)&&(!(a24==1)&&((((a1==14)&&(a28==1))&&(a19==5))||(a0==1)))))&&(a21==10))||(a18==1))&&((a3==1)&&((a23==1)&&(!(a0==1)&&((a20==1)&&(((a9==7)&&(input==1))&&(a16==8)))))))){ + a3 = 1; + a1 = 13; + a24 = 0; + a16 = 10; + a9 = 8; + a19 = 2; + a18 = 0; + a5 = 4; + return 25; + } else if((((a16==9)&&((a17==2)&&((a20==1)&&(!(a7==1)&&(((a28==1)&&((a6==1)&&(a21==10)))||(a14==1))))))&&(!(a24==1)&&((a19==3)&&((a13==1)&&((a1==12)&&((a3==1)&&((a9==10)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))))))))){ + a5 = 5; + a18 = 0; + a21 = 11; + a16 = 8; + a20 = 0; + a9 = 8; + a1 = 14; + a24 = 0; + a19 = 1; + a8 = 0; + return 23; + } else if((((!(a4==1)&&((a12==1)&&(((!(a7==1)&&((((input==6)&&(((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))))&&(a20==1))&&!(a0==1)))&&(a1==14))&&(a3==1))))&&!(a24==1))&&((a16==11)&&(((a19==1)&&((a17==2)&&(a2==1)))&&(a21==12))))){ + a21 = 10; + a8 = 0; + a27 = 0; + a1 = 12; + a5 = 4; + a16 = 7; + a9 = 7; + a28 = 1; + return -1; + } else if((((a17==2)&&((a1==13)&&(((a16==9)&&(((a23==1)&&((((((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&(input==5))&&(a3==1))&&(a2==1)))&&!(a4==1)))&&(a19==3))))&&((a21==10)&&((a20==1)&&((a11==1)&&(!(a2==1)||(a3==1))))))){ + a3 = 1; + a23 = 1; + a4 = 0; + a9 = 9; + a16 = 11; + a1 = 12; + a19 = 2; + a5 = 5; + return 25; + } else if((((((a16==7)&&((((a5==5)&&(!(a3==1)||((a1==12)&&(a11==1))))||(a4==1))&&!(a27==1)))&&(a9==9))&&(a13==1))&&((((a17==2)&&(!(a27==1)&&((!(a20==1)&&(input==3))&&(a21==10))))&&(a19==5))&&!(a0==1)))){ + a1 = 14; + a18 = 0; + a27 = 0; + a20 = 1; + a3 = 1; + a5 = 4; + a19 = 1; + a9 = 10; + return -1; + } else if(((!(a26==1)&&(((!(a7==1)&&((input==1)&&((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==4))||(((a9==7)&&((a1==12)&&(a5==4)))&&(a19==5)))))&&(a17==2))&&(a21==11)))&&((a3==1)&&(((a27==1)||((((a16==7)&&(a3==1))&&!(a20==1))&&!(a4==1)))||(a4==1))))){ + a9 = 7; + a5 = 4; + a20 = 1; + a12 = 1; + a6 = 1; + a8 = 0; + a1 = 12; + a21 = 10; + a19 = 1; + return -1; + } else if((((((((!(a4==1)&&((input==3)&&(a19==3)))&&(a17==2))&&!(a8==1))&&(a9==9))&&(a1==14))&&(a21==12))&&((a5==4)&&(((((((a6==1)&&(a20==1))&&(a16==10))&&(a23==1))&&!(a26==1))&&(a3==1))&&(a11==1))))){ + a9 = 11; + a2 = 1; + a19 = 2; + a16 = 7; + a21 = 10; + a3 = 1; + a5 = 5; + a6 = 1; + return 21; + } else if((((a1==12)&&(((a17==2)&&((((a6==1)&&((a16==8)&&(input==3)))&&(a12==1))&&(a2==1)))&&(a2==1)))&&((a9==7)&&((a20==1)&&((a21==12)&&((a19==1)&&((a24==1)||((a5==4)&&((a28==1)||!(a28==1)))))))))){ + a21 = 10; + a13 = 1; + a7 = 0; + a4 = 0; + a16 = 7; + return -1; + } else if((((((((((a9==9)&&(a6==1))&&(a27==1))&&(a19==2))&&(a14==1))&&(a7==1))&&(a14==1))&&(a26==1))&&((a16==7)&&((a0==1)&&((((a1==13)&&((((a5==5)||(a5==6))&&(input==6))&&!(a20==1)))&&(a21==10))&&(a17==2)))))){ + a18 = 1; + a1 = 12; + a20 = 1; + a5 = 4; + a23 = 0; + a9 = 7; + a19 = 1; + a2 = 0; + return -1; + } else if((((((!(a18==1)&&((a28==1)&&((!(a27==1)&&(a11==1))&&(a2==1))))&&(a21==11))&&(a20==1))&&(a19==1))&&((((a17==2)&&((a1==14)&&((((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&(a9==7))&&(a12==1))))&&(a6==1))&&(a16==8)))){ + a26 = 0; + a12 = 1; + a16 = 7; + a11 = 1; + a5 = 4; + a21 = 10; + a1 = 12; + return -1; + } else if((((a19==1)&&(((a23==1)&&(!(a4==1)&&(a28==1)))||(a0==1)))&&((!(a20==1)&&((a1==14)&&(!(a24==1)&&(((a21==12)&&((a2==1)&&(((input==6)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5))))&&(a23==1))))&&(a16==7)))))&&(a17==2)))){ + a20 = 1; + a26 = 0; + a1 = 12; + a5 = 5; + a9 = 7; + a2 = 1; + a19 = 4; + a16 = 10; + a12 = 1; + return 22; + } else if(((((a19==4)&&(((!(a18==1)&&(((a16==9)&&((a12==1)||(a7==1)))||!(a28==1)))&&(a5==5))&&(a1==13)))&&(a17==2))&&((a21==10)&&((a6==1)&&((a6==1)&&((!(a20==1)&&((input==1)&&(a9==9)))&&!(a18==1))))))){ + a5 = 6; + a12 = 0; + a19 = 2; + a21 = 11; + a25 = 0; + return 25; + } else if(((((a1==14)&&((!(a7==1)&&((((a17==2)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3)))&&!(a7==1))&&(a13==1)))&&(a20==1)))&&(a28==1))&&((a16==9)&&((a19==4)&&((((a21==11)&&(!(a8==1)&&(a6==1)))&&(a9==7))&&!(a18==1)))))){ + a12 = 1; + a5 = 6; + a9 = 11; + a19 = 5; + a23 = 1; + a21 = 10; + return 26; + } else if((((!(a14==1)&&(((((a21==10)&&(input==1))&&(a19==4))&&(a28==1))&&(a1==14)))&&(a17==2))&&(((a9==10)&&(((!(a27==1)&&((a24==1)||((a6==1)&&((a13==1)||(a27==1)))))&&(a16==10))&&(a5==5)))&&!(a20==1)))){ + if((a0==1)){ + a19 = 1; + a5 = 6; + a16 = 7; + a24 = 1; + a27 = 1; + a1 = 13; + a9 = 7; + a20 = 1; + }else{ + a5 = 6; + a1 = 12; + a19 = 5; + a21 = 12; + a4 = 1; + a16 = 9; + a9 = 8; + a11 = 0; + a20 = 1; + } + return 25; + } else if((((!(a26==1)&&((((a23==1)||!(a28==1))&&(a5==6))&&(a21==10)))||!(a6==1))&&(!(a26==1)&&((a16==10)&&((!(a4==1)&&((a19==1)&&((((a1==12)&&((a20==1)&&(input==6)))&&(a9==8))&&(a17==2))))&&!(a0==1)))))){ + a26 = 0; + a1 = 13; + a9 = 9; + a19 = 2; + a5 = 5; + a0 = 0; + a21 = 11; + a8 = 0; + return 21; + } else if((((a20==1)&&(((a9==8)&&(!(a11==1)||((!(a6==1)||(a2==1))&&(a13==1))))&&(a17==2)))&&((a19==3)&&(((a1==12)&&((a21==12)&&(!(a26==1)&&((((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&(a28==1))&&(a12==1)))))&&(a16==9))))){ + a16 = 10; + a27 = 0; + a1 = 13; + a19 = 2; + a5 = 5; + a2 = 1; + return 21; + } else if((((a5==5)&&((a1==14)&&(((!(a14==1)&&((a19==1)&&(a13==1)))||(a26==1))&&(a17==2))))&&(((a16==10)&&(!(a20==1)&&((((a6==1)&&(!(a26==1)&&((input==4)&&(a21==12))))&&!(a8==1))&&(a28==1))))&&(a9==11)))){ + a23 = 0; + a20 = 1; + a2 = 0; + a1 = 12; + a3 = 0; + a16 = 9; + a5 = 6; + return -1; + } else if(((((a17==2)&&(((((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a5==4)&&(a9==11)))&&(input==1))&&(a1==12))&&!(a4==1)))&&!(a20==1))&&(!(a28==1)||((a28==1)&&((a16==8)&&(((a21==10)&&(((a19==3)&&((a23==1)&&!(a0==1)))||!(a3==1)))||!(a6==1))))))){ + a5 = 4; + a20 = 1; + a21 = 11; + a9 = 9; + a13 = 1; + a16 = 7; + a3 = 1; + a19 = 4; + return 22; + } else if((((((a12==1)&&(!(a12==1)||(((a28==1)&&!(a26==1))&&(a5==5))))&&(a9==11))&&(a20==1))&&((((a19==1)&&(((!(a4==1)&&((a2==1)&&((input==1)&&(a16==10))))&&(a17==2))&&!(a0==1)))&&(a1==14))&&(a21==10)))){ + a1 = 12; + a9 = 10; + a16 = 9; + a19 = 5; + a6 = 1; + a0 = 0; + a24 = 0; + a5 = 4; + return -1; + } else if((((!(a28==1)||((((a17==2)&&(((a24==1)||(a12==1))&&(a9==9)))&&(a19==2))&&(a21==10)))&&!(a27==1))&&(((((!(a14==1)&&((a20==1)&&((input==1)&&((a5==4)||(a5==5)))))&&(a16==7))&&(a2==1))&&(a1==13))&&(a6==1)))){ + a1 = 14; + a24 = 0; + a5 = 6; + a23 = 1; + a9 = 8; + a7 = 0; + return 23; + } else if((((a17==2)&&((a21==10)&&(((a26==1)||((a16==10)&&(!(a20==1)&&(!(a12==1)||(a23==1)))))&&(a5==4))))&&(((((!(a8==1)&&((a28==1)&&((input==6)&&(a19==2))))&&(a13==1))&&!(a0==1))&&(a9==9))&&(a1==13)))){ + a16 = 7; + a1 = 14; + a19 = 1; + a11 = 0; + a5 = 6; + a12 = 0; + a20 = 1; + return -1; + } else if((((((((a17==2)&&((a19==2)&&(((a21==11)&&((a11==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a16==10))))&&!(a20==1))))&&(a23==1))&&(a9==11))&&(a13==1))&&!(a18==1))&&(!(a12==1)||(((a1==12)&&(a11==1))||!(a12==1))))){ + a19 = 1; + a9 = 9; + a26 = 1; + a20 = 1; + a21 = 10; + a5 = 6; + a16 = 7; + a22 = 0; + a4 = 1; + return -1; + } else if((((a21==12)&&(!(a27==1)&&(!(a4==1)&&((a16==10)&&((a12==1)&&(((a20==1)&&(((a5==5)||(a5==6))&&(input==1)))&&(a9==8)))))))&&((((a19==2)&&(!(a26==1)&&(((a1==14)&&(a23==1))||!(a28==1))))&&!(a8==1))&&(a17==2)))){ + a16 = 7; + a9 = 7; + a12 = 1; + a5 = 4; + a8 = 0; + a21 = 10; + a1 = 12; + a0 = 0; + a19 = 1; + return -1; + } else if(((!(a20==1)&&((!(a14==1)&&((!(a18==1)&&((input==5)&&(a1==14)))&&(a21==12)))&&(a9==7)))&&((a16==10)&&((a17==2)&&(!(a8==1)&&((((((a12==1)&&(a13==1))&&!(a26==1))||(a4==1))&&(a5==4))&&(a19==5))))))){ + if((a0==1)){ + a19 = 1; + a25 = 1; + a3 = 0; + a9 = 11; + a11 = 0; + a5 = 5; + a16 = 7; + a21 = 10; + a20 = 1; + }else{ + a5 = 5; + a4 = 1; + a19 = 4; + a29 = 1; + a16 = 8; + a9 = 8; + } + return -1; + } else if(((!(a27==1)&&(((a13==1)&&(((a28==1)&&((input==5)&&(a19==3)))&&(a5==6)))&&(a21==12)))&&((((a17==2)&&(((a28==1)&&((a0==1)||(((a16==8)&&(a12==1))&&(a9==8))))||!(a28==1)))&&(a20==1))&&(a1==12)))){ + a24 = 0; + a16 = 10; + a9 = 11; + a18 = 0; + a12 = 1; + a19 = 2; + return 21; + } else if(((!(a26==1)&&(((((a17==2)&&((((a19==5)&&(((a5==4)&&(a1==12))&&(a9==7)))||(((((a5==5)&&(a1==14))&&(a9==11))&&(a19==4))||(((a9==11)&&((a1==14)&&(a5==6)))&&(a19==4))))&&(input==5)))&&(a2==1))&&!(a27==1))&&(a16==10)))&&((((((a21==11)&&(a6==1))&&(a20==1))||!(a3==1))&&!(a8==1))&&!(a4==1)))){ + a16 = 7; + a21 = 10; + a1 = 13; + a9 = 9; + a23 = 1; + a5 = 4; + a2 = 1; + a19 = 2; + a11 = 1; + return 25; + } else if((((a17==2)&&((a9==11)&&(!(a13==1)||((!(a20==1)&&(a3==1))&&(a21==11)))))&&((a19==5)&&(((a11==1)&&(((a3==1)&&((((a3==1)&&(((a5==5)||(a5==6))&&(input==5)))&&(a16==7))&&(a11==1)))&&!(a27==1)))&&(a1==13))))){ + a9 = 9; + a21 = 12; + a19 = 3; + a7 = 0; + a24 = 0; + a5 = 5; + a20 = 1; + a14 = 0; + a16 = 9; + return 25; + } else if((((!(a7==1)&&(((((a13==1)&&((a13==1)||(a27==1)))&&(a21==10))&&(a1==14))&&!(a18==1)))&&(a17==2))&&((a20==1)&&((a19==3)&&(((a9==11)&&((a3==1)&&((a16==10)&&(((a5==4)||(a5==5))&&(input==6)))))&&!(a18==1)))))){ + if((a16==7)){ + a16 = 8; + a14 = 0; + a1 = 12; + a20 = 0; + a9 = 10; + a5 = 5; + a24 = 0; + }else{ + a9 = 9; + a1 = 13; + a5 = 6; + a28 = 1; + a12 = 1; + a19 = 5; + a6 = 1; + } + return 21; + } else if(((((a19==1)&&((a23==1)&&(((((input==6)&&((a5==4)||(a5==5)))&&!(a0==1))&&!(a26==1))&&(a16==10))))&&(a21==10))&&(((a9==9)&&(((a7==1)||((!(a2==1)||((a12==1)&&(a1==14)))||(a7==1)))&&(a17==2)))&&!(a20==1)))){ + if((a24==1)){ + a21 = 11; + a1 = 12; + a5 = 5; + a29 = 0; + a2 = 0; + a28 = 0; + a9 = 8; + a19 = 4; + }else{ + a5 = 6; + a9 = 7; + a25 = 1; + a20 = 1; + a1 = 13; + a24 = 1; + a16 = 7; + a23 = 0; + } + return -1; + } else if(((((a16==9)&&((a6==1)&&((a24==1)||((a12==1)&&(a3==1)))))&&(a13==1))&&((a9==7)&&((a23==1)&&((a19==2)&&((a1==13)&&(!(a26==1)&&(((((input==1)&&((a5==4)||(a5==5)))&&(a20==1))&&(a17==2))&&(a21==10))))))))){ + a5 = 5; + a26 = 0; + a1 = 12; + a19 = 4; + a7 = 0; + a3 = 1; + a21 = 11; + a9 = 8; + a16 = 10; + return 21; + } else if(((((!(a20==1)&&((a28==1)&&((a27==1)||((a16==7)&&((a17==2)&&(((a1==13)&&(a13==1))&&(a19==1)))))))||(a7==1))||!(a2==1))&&(!(a4==1)&&(!(a4==1)&&(((input==6)&&((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4))))&&(a21==10)))))){ + a7 = 0; + a8 = 0; + a9 = 7; + a13 = 1; + a1 = 12; + a5 = 4; + a20 = 1; + return -1; + } else if((((a6==1)&&((((a28==1)&&((a19==5)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==5))))&&(a17==2))&&!(a4==1)))&&(((a0==1)||((a20==1)&&((a1==12)&&(((a16==11)&&((a28==1)&&(a28==1)))&&(a21==12)))))&&!(a24==1)))){ + a21 = 10; + a19 = 1; + a12 = 1; + a4 = 0; + a16 = 7; + a9 = 9; + a2 = 1; + a5 = 5; + a20 = 0; + return 22; + } else if((((a20==1)&&((a12==1)&&(((a2==1)&&((a1==12)&&((input==4)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))))&&(a11==1))))&&((a21==12)&&(((a11==1)&&(!(a6==1)||(!(a8==1)&&(((a12==1)&&(a19==4))&&(a17==2)))))&&(a16==11))))){ + a16 = 7; + a28 = 1; + a9 = 7; + a19 = 1; + a6 = 1; + a21 = 10; + a3 = 1; + a5 = 4; + return -1; + } else if(((((a23==1)&&(((a21==11)&&((a0==1)||(a11==1)))&&!(a20==1)))||!(a11==1))&&((!(a8==1)&&((a17==2)&&(((a1==12)&&(((((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a16==9))&&(a28==1))&&(a19==4)))&&(a12==1))))&&(a9==9)))){ + a7 = 1; + a5 = 6; + a13 = 0; + a16 = 8; + a21 = 12; + a1 = 14; + a9 = 10; + a19 = 5; + return 26; + } else if((((a23==1)&&((a4==1)||(!(a27==1)&&((a6==1)&&(!(a20==1)&&((a9==10)&&((a27==1)||((a16==8)&&(a11==1)))))))))&&(((((a19==4)&&(((input==6)&&((a5==4)||(a5==5)))&&(a17==2)))&&(a21==10))&&(a1==13))&&(a23==1)))){ + a1 = 12; + a9 = 9; + a19 = 2; + a5 = 5; + a4 = 0; + a27 = 0; + a23 = 1; + a20 = 1; + a16 = 9; + return 26; + } else if(((((a21==12)&&(((a20==1)&&((a19==2)&&(((a1==14)&&((a17==2)&&(((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4)))&&(input==6))))&&(a28==1))))&&(a3==1)))&&!(a0==1))&&(!(a11==1)||(!(a14==1)&&((a16==11)&&((a3==1)&&!(a26==1))))))){ + a16 = 8; + a11 = 1; + a9 = 10; + a13 = 1; + a2 = 1; + a19 = 1; + a5 = 4; + a21 = 11; + return 25; + } else if(((((a16==10)&&((((a20==1)&&(!(a0==1)&&(((a5==5)||(a5==6))&&(input==1))))&&(a17==2))&&!(a27==1)))&&(a28==1))&&(((a8==1)||((((a1==14)&&(!(a23==1)||((a3==1)&&(a19==4))))&&(a21==10))&&(a9==7)))||!(a6==1)))){ + a19 = 1; + a6 = 1; + a4 = 0; + a16 = 7; + a8 = 0; + a5 = 4; + a1 = 12; + return -1; + } else if((((a9==7)&&(((a13==1)&&((((((a5==5)||(a5==6))&&(input==3))&&(a17==2))&&(a23==1))&&(a16==8)))&&(a2==1)))&&((a14==1)||((((((a21==10)&&((a12==1)&&(a19==4)))&&!(a18==1))&&!(a20==1))&&(a1==13))&&(a11==1))))){ + a16 = 7; + a4 = 0; + a1 = 12; + a28 = 1; + a19 = 1; + a20 = 1; + a11 = 1; + a5 = 4; + return -1; + } else if(((((a6==1)&&(((!(a8==1)&&(!(a20==1)&&((a3==1)&&((input==4)&&((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4)))))))&&(a16==9))&&(a23==1)))&&!(a7==1))&&(((a1==13)&&((((a19==2)&&(a11==1))&&(a21==10))&&(a17==2)))&&!(a27==1)))){ + a19 = 4; + a21 = 12; + a5 = 5; + a20 = 1; + a9 = 9; + a3 = 0; + a1 = 12; + a16 = 8; + a23 = 0; + a0 = 1; + return -1; + } else if(((((a24==1)&&((a23==1)&&(a27==1)))&&(a17==2))&&(!(a11==1)&&(!(a3==1)&&((a20==1)&&(((a19==4)&&(((((a24==1)&&(((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5)))&&(input==4)))&&(a26==1))&&(a1==13))&&(a16==7)))&&(a21==10))))))){ + a19 = 1; + a5 = 4; + a8 = 1; + a27 = 1; + a1 = 12; + a24 = 1; + a9 = 8; + return 23; + } else if((((a1==14)&&(!(a3==1)||(((((a19==2)&&(((a20==1)&&(((a11==1)&&(a16==10))&&(a9==8)))&&(a21==12)))||!(a2==1))&&(a12==1))&&!(a8==1))))&&((((a6==1)&&((input==6)&&((a5==5)||(a5==6))))&&(a17==2))&&!(a27==1)))){ + a9 = 9; + a27 = 0; + a16 = 7; + a4 = 0; + a21 = 10; + a26 = 0; + a5 = 4; + a1 = 13; + return 25; + } else if((((a20==1)&&((a17==2)&&((((a6==1)&&(((((a21==10)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==3)))&&(a2==1))&&(a6==1))&&(a11==1)))&&(a16==11))&&(a1==13))))&&(((a19==5)&&((a28==1)&&!(a26==1)))||!(a28==1)))){ + a19 = 1; + a24 = 0; + a28 = 1; + a1 = 12; + a5 = 4; + a9 = 7; + a0 = 0; + a16 = 7; + return -1; + } else if((((a21==12)&&((a19==2)&&((a17==2)&&((a1==14)&&((a13==1)&&(((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))&&(input==1)))))))&&((a20==1)&&(((!(a13==1)||(((!(a11==1)||(a2==1))&&!(a7==1))&&(a16==9)))||(a14==1))&&(a2==1))))){ + a16 = 7; + a21 = 10; + a5 = 4; + a27 = 0; + a1 = 12; + a19 = 1; + a24 = 0; + a9 = 7; + return -1; + } else if((((a20==1)&&(((((!(a7==1)&&(!(a7==1)&&((input==4)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))))&&(a6==1))&&(a21==10))&&(a1==14))&&(a2==1)))&&((((a12==1)&&((a19==4)&&((a2==1)&&(a3==1))))&&(a17==2))&&(a16==9)))){ + a1 = 12; + a9 = 7; + a19 = 1; + a5 = 4; + a16 = 7; + a6 = 1; + a18 = 0; + a0 = 0; + return -1; + } else if((((((a23==1)&&((a16==10)&&(((a1==14)&&((a11==1)&&(((input==4)&&(((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))&&(a23==1))))&&!(a24==1))))&&(a21==11))&&(a17==2))&&((a7==1)||(!(a3==1)||(((a13==1)&&!(a20==1))&&(a19==2)))))){ + a21 = 10; + a16 = 7; + a20 = 1; + a29 = 0; + a8 = 1; + a19 = 1; + a9 = 8; + a13 = 0; + a5 = 4; + return 25; + } else if((((((a19==5)&&((((a20==1)&&(((input==1)&&(a5==5))&&(a12==1)))&&(a1==12))&&!(a26==1)))&&(a16==7))&&(a17==2))&&((((!(a27==1)&&((a27==1)||(!(a26==1)&&(a28==1))))||(a18==1))&&(a9==10))&&(a21==12)))){ + a23 = 1; + a0 = 0; + a21 = 11; + a11 = 1; + a16 = 9; + a5 = 6; + a19 = 4; + return 23; + } else if((((a0==1)||(((a3==1)&&((((a1==13)&&(!(a6==1)||(a11==1)))&&(a5==4))&&(a17==2)))||(a27==1)))&&((a9==7)&&(!(a18==1)&&((a21==12)&&((a2==1)&&((a20==1)&&((a19==5)&&((input==5)&&(a16==7)))))))))){ + a21 = 10; + a19 = 1; + a0 = 0; + a18 = 0; + a26 = 0; + a1 = 12; + return -1; + } else if(((((a1==13)&&((a19==5)&&(((a16==9)&&(!(a24==1)&&(a11==1)))&&(a21==11))))&&(a3==1))&&((((a6==1)&&((((a20==1)&&((input==1)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5)))))&&(a17==2))&&!(a24==1)))&&!(a4==1))&&!(a0==1)))){ + a23 = 1; + a13 = 1; + a16 = 7; + a27 = 0; + a21 = 10; + a5 = 4; + a9 = 10; + a19 = 2; + return 21; + } else if((((a20==1)&&(!(a27==1)&&((((!(a27==1)&&((a17==2)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3))))&&(a3==1))&&(a19==2))&&(a11==1))))&&((a21==11)&&((a16==10)&&(((((a11==1)||(a26==1))&&(a1==13))&&(a9==8))&&(a3==1)))))){ + a8 = 0; + a19 = 1; + a1 = 12; + a11 = 1; + a9 = 7; + a5 = 4; + a21 = 10; + a16 = 7; + a26 = 0; + return -1; + } else if((((a20==1)&&(((a5==6)&&(((a28==1)&&((a1==12)&&((input==1)&&(a21==11))))&&(a3==1)))&&!(a26==1)))&&((a6==1)&&((a9==10)&&((((a17==2)&&(((a16==8)&&(a3==1))&&(a19==2)))&&(a28==1))||(a8==1)))))){ + a28 = 1; + a4 = 0; + a1 = 14; + a9 = 8; + a19 = 5; + a16 = 7; + a23 = 1; + a20 = 0; + return 22; + } else if((((a8==1)||(((a9==11)&&(((a28==1)&&(a1==14))&&(a19==3)))&&(a11==1)))&&((!(a27==1)&&(!(a8==1)&&((a20==1)&&((((((input==5)&&(a17==2))&&(a5==6))&&(a6==1))&&(a16==8))&&(a21==10)))))&&!(a4==1)))){ + a1 = 12; + a5 = 4; + a16 = 7; + a12 = 1; + a8 = 0; + a23 = 1; + a9 = 7; + a19 = 1; + return -1; + } else if(((!(a24==1)&&((a13==1)&&(((a1==14)&&((a5==5)&&(!(a4==1)&&((a16==7)&&(!(a20==1)&&((a21==10)&&(input==1)))))))&&(a17==2))))&&(((a9==9)&&(((!(a4==1)&&(a23==1))||!(a23==1))&&(a19==1)))&&!(a7==1)))){ + a16 = 10; + a9 = 8; + a20 = 1; + a5 = 4; + a21 = 11; + a0 = 0; + a1 = 13; + a28 = 1; + a19 = 5; + a2 = 1; + return 21; + } else if(((!(a24==1)&&(!(a20==1)&&(((a13==1)&&(((a23==1)&&(((input==3)&&((((a9==11)&&((a1==13)&&(a5==5)))||(((a5==6)&&(a1==13))&&(a9==11)))||(((a5==4)&&(a1==14))&&(a9==7))))&&(a17==2)))&&(a19==1)))&&(a21==10))))&&((a14==1)||(((!(a8==1)&&(a12==1))&&(a16==7))||!(a3==1))))){ + a5 = 4; + a9 = 7; + a27 = 0; + a4 = 0; + a18 = 0; + a20 = 1; + a1 = 12; + return -1; + } else if((((a1==14)&&((a17==2)&&(((a12==1)&&((!(a26==1)&&((input==1)&&(a9==9)))&&(a3==1)))&&(a16==9))))&&(((a2==1)&&((a5==5)&&((((a21==10)&&((a23==1)||!(a13==1)))&&(a20==1))&&(a19==5))))||(a27==1)))){ + a12 = 1; + a9 = 7; + a19 = 1; + a5 = 4; + a23 = 1; + a3 = 1; + a1 = 12; + a16 = 7; + return -1; + } else if((((a21==12)&&((!(a7==1)&&(((a20==1)&&((!(a8==1)&&(a2==1))&&(a16==11)))&&(a1==14)))&&(a19==5)))&&((a11==1)&&(!(a24==1)&&((!(a24==1)&&(((input==5)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9))))&&(a23==1)))&&(a17==2)))))){ + a8 = 0; + a21 = 10; + a0 = 0; + a19 = 1; + a5 = 5; + a16 = 7; + a20 = 0; + a9 = 8; + return 25; + } else if((((!(a20==1)&&(((a19==2)&&(!(a18==1)&&(((a16==7)&&((input==6)&&(a5==6)))&&(a12==1))))&&(a1==13)))&&(a21==12))&&((a9==9)&&((a17==2)&&((a12==1)&&(((a13==1)&&(!(a8==1)&&(a28==1)))||(a14==1))))))){ + a14 = 0; + a20 = 1; + a3 = 1; + a19 = 1; + a7 = 0; + a1 = 14; + a9 = 8; + a16 = 8; + return 21; + } else if((((((a17==2)&&((a1==14)&&(((a13==1)&&(a23==1))&&(a16==8))))||(a4==1))&&(a3==1))&&((a9==11)&&((a21==11)&&(((!(a27==1)&&((a20==1)&&(((input==1)&&(a19==5))&&!(a7==1))))&&(a2==1))&&(a5==6)))))){ + a19 = 1; + a14 = 0; + a9 = 7; + a5 = 4; + a1 = 12; + a12 = 1; + a16 = 7; + a7 = 0; + a21 = 10; + return -1; + } else if(((((a6==1)&&(!(a12==1)||(((!(a28==1)||(a13==1))&&(a13==1))&&(a17==2))))&&!(a27==1))&&((a16==8)&&((a20==1)&&((a19==2)&&(!(a27==1)&&((((((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))&&(input==5))&&(a21==11))&&(a1==14)))))))){ + a16 = 10; + a9 = 7; + a19 = 5; + a24 = 0; + a1 = 12; + a21 = 10; + a5 = 4; + return 22; + } else if(((((a19==3)&&(!(a12==1)||(((((a1==14)&&(a28==1))&&!(a20==1))&&(a17==2))&&(a21==11))))&&(a16==9))&&(!(a0==1)&&((a12==1)&&(((((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==5))&&!(a18==1))&&!(a7==1))&&(a2==1)))))){ + if((a24==1)){ + a5 = 5; + a15 = 0; + a20 = 1; + a16 = 11; + a19 = 5; + a14 = 1; + a11 = 0; + a9 = 9; + a21 = 10; + }else{ + a14 = 1; + a10 = 1; + a21 = 10; + a20 = 1; + a5 = 4; + a19 = 1; + a9 = 11; + a16 = 7; + a24 = 1; + } + return 25; + } else if(((!(a24==1)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a6==1))&&!(a14==1))&&!(a27==1)))&&((a20==1)&&((a21==12)&&(((a9==9)&&(!(a18==1)&&((((a1==14)&&((a23==1)&&(a16==11)))&&(a19==4))&&(a17==2))))||(a14==1)))))){ + a9 = 11; + a14 = 0; + a11 = 1; + a16 = 8; + a2 = 1; + a19 = 3; + a5 = 4; + return 22; + } else if((((((a21==12)&&((((a20==1)&&((a17==2)&&(a28==1)))&&(a14==1))&&(a7==1)))&&(a16==7))&&(a19==1))&&(((a9==11)&&(!(a13==1)&&(((a27==1)&&((((a5==4)||(a5==5))&&(input==6))&&(a4==1)))&&!(a23==1))))&&(a1==12)))){ + a6 = 0; + a23 = 0; + a21 = 10; + a9 = 8; + a1 = 13; + a3 = 0; + a5 = 5; + return -1; + } else if((((a20==1)&&((a16==9)&&((a4==1)||(!(a2==1)||((((a21==11)&&((a28==1)&&(a11==1)))&&(a1==13))&&(a17==2))))))&&((a19==5)&&((((a6==1)&&(((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))&&(input==1)))&&!(a24==1))&&(a3==1))))){ + a5 = 4; + a1 = 12; + a0 = 0; + a19 = 1; + a9 = 7; + a7 = 0; + a21 = 10; + a16 = 7; + a6 = 1; + return -1; + } else if((((a21==12)&&((a16==9)&&(!(a20==1)&&(((a28==1)&&((a11==1)&&((a1==14)&&((a23==1)&&((a17==2)&&(((a5==4)||(a5==5))&&(input==4)))))))&&(a19==5)))))&&((a9==11)&&((a8==1)||((a28==1)&&((a28==1)||!(a6==1))))))){ + a5 = 5; + a22 = 1; + a21 = 10; + a19 = 1; + a1 = 12; + a16 = 7; + a28 = 0; + a20 = 1; + return -1; + } else if(((((a12==1)&&((a11==1)&&((((a28==1)||!(a23==1))&&(a16==7))||!(a12==1))))&&(a21==12))&&(((((a17==2)&&((((input==4)&&(((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))))&&!(a14==1))&&!(a4==1)))&&!(a20==1))&&(a1==13))&&(a19==1)))){ + a19 = 4; + a8 = 0; + a5 = 4; + a2 = 1; + a21 = 11; + a16 = 8; + a20 = 1; + a9 = 10; + a1 = 12; + a13 = 1; + return 25; + } else if(((((a17==2)&&(!(a8==1)&&(!(a20==1)&&(((((a5==4)||(a5==5))&&(input==1))&&(a6==1))&&(a19==5)))))&&(a21==12))&&((((a16==7)&&((a1==14)&&((a0==1)||(((a3==1)&&(a12==1))&&(a9==8)))))||!(a12==1))&&!(a26==1)))){ + a20 = 1; + a16 = 8; + a19 = 4; + a0 = 0; + a9 = 11; + a8 = 0; + a5 = 5; + a2 = 1; + a21 = 10; + return 21; + } else if((((a12==1)&&((a19==2)&&(((a20==1)&&((a23==1)&&((a12==1)&&(a16==7))))||!(a11==1))))&&((a17==2)&&(((((a1==13)&&((a21==11)&&((((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(input==1))))&&!(a7==1))&&!(a14==1))&&(a23==1))))){ + a21 = 10; + a19 = 3; + a2 = 1; + a18 = 0; + a5 = 6; + a9 = 9; + a4 = 0; + a16 = 8; + return 21; + } else if((((a5==5)&&((a9==10)&&(((a24==1)||(((!(a7==1)&&(a6==1))||!(a28==1))&&(a11==1)))||!(a13==1))))&&((a1==12)&&((a17==2)&&(((a21==10)&&(((a20==1)&&((input==4)&&(a19==4)))&&!(a7==1)))&&(a16==10)))))){ + a19 = 1; + a12 = 1; + a0 = 0; + a16 = 7; + a9 = 7; + a5 = 4; + return -1; + } else if(((((((!(a18==1)&&((a17==2)&&(!(a0==1)&&((input==5)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))))))&&(a2==1))&&(a11==1))&&!(a0==1))&&(a21==11))&&((!(a6==1)||((((a16==7)&&(a2==1))&&(a19==2))&&(a20==1)))&&(a1==12)))){ + a3 = 1; + a8 = 0; + a1 = 13; + a5 = 4; + a24 = 0; + a9 = 10; + a21 = 10; + a16 = 8; + return 23; + } else if((((a9==9)&&(((a2==1)&&(((!(a26==1)&&(((a19==1)&&(a3==1))&&(a16==8)))||!(a2==1))&&!(a20==1)))&&(a17==2)))&&(((((a23==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a28==1)))&&(a6==1))&&(a1==12))&&(a21==12)))){ + a20 = 1; + a16 = 9; + a25 = 0; + a19 = 3; + a1 = 13; + a5 = 5; + a0 = 1; + a9 = 7; + return 23; + } else if((((!(a23==1)||((a28==1)||(a4==1)))&&(a11==1))&&((((((a13==1)&&(((a9==7)&&((!(a26==1)&&((a16==7)&&(((a5==4)||(a5==5))&&(input==1))))&&(a19==5)))&&(a6==1)))&&(a21==11))&&(a1==13))&&!(a20==1))&&(a17==2)))){ + a1 = 12; + a6 = 1; + a9 = 10; + a5 = 5; + a12 = 1; + a16 = 10; + a19 = 1; + a20 = 1; + a14 = 0; + return 22; + } else if((((!(a4==1)&&((((((a23==1)&&(a1==13))&&(a5==6))&&(a28==1))&&!(a4==1))||!(a28==1)))&&(a9==9))&&((((((((a17==2)&&(input==1))&&(a19==5))&&!(a20==1))&&!(a7==1))&&(a16==10))&&(a12==1))&&(a21==12)))){ + a9 = 11; + a1 = 12; + a29 = 0; + a7 = 1; + a16 = 7; + a21 = 10; + a20 = 1; + a19 = 1; + a8 = 1; + return 25; + } else if(((!(a23==1)||(((a21==10)&&((a9==7)&&(((a28==1)&&(a17==2))&&!(a20==1))))||(a24==1)))&&(((a1==12)&&((!(a18==1)&&(((((input==3)&&(a5==4))&&(a16==10))&&!(a18==1))&&(a12==1)))&&(a19==4)))&&!(a24==1)))){ + a25 = 1; + a19 = 2; + a5 = 6; + a11 = 0; + a9 = 11; + a16 = 7; + a20 = 1; + a24 = 1; + return -1; + } else if(((((((((a21==12)&&(!(a13==1)||((((a17==2)&&(a13==1))||(a24==1))||!(a6==1))))||(a0==1))&&(a19==5))&&!(a20==1))||(a24==1))&&(a5==5))&&((((a16==7)&&((a9==11)&&(input==4)))&&(a1==13))&&(a11==1)))){ + a9 = 7; + a19 = 1; + a20 = 1; + a24 = 0; + a0 = 0; + a6 = 1; + a21 = 10; + a1 = 12; + a5 = 4; + return -1; + } else if((((a1==14)&&(((a21==12)&&(!(a26==1)&&((a20==1)&&((a3==1)||(a7==1)))))&&!(a27==1)))&&(((((a19==3)&&(!(a24==1)&&((a17==2)&&((input==3)&&((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))))))&&(a16==7))&&(a3==1))&&!(a0==1)))){ + a7 = 0; + a21 = 10; + a9 = 7; + a0 = 0; + a1 = 12; + a16 = 8; + a5 = 4; + a19 = 4; + a8 = 0; + return 22; + } else if((((a16==7)&&((a17==2)&&(((!(a4==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4)))&&(a21==12))&&(a23==1))))&&((a19==2)&&(!(a20==1)&&((!(a18==1)&&(((((a23==1)&&(a1==14))||!(a12==1))||(a24==1))&&(a9==11)))||!(a13==1)))))){ + a13 = 1; + a21 = 10; + a9 = 7; + a19 = 1; + a26 = 0; + a20 = 1; + a12 = 1; + a1 = 12; + a5 = 4; + return -1; + } else if((((a16==7)&&((a17==2)&&(!(a23==1)||(!(a6==1)||((a24==1)||((a1==12)&&((a12==1)&&((a3==1)&&(a9==8)))))))))&&(((((a19==3)&&(((input==3)&&((a5==4)||(a5==5)))&&!(a26==1)))&&!(a20==1))&&(a11==1))&&(a21==12)))){ + a19 = 1; + a5 = 4; + a9 = 7; + a21 = 10; + a24 = 0; + a20 = 1; + a6 = 1; + return -1; + } else if(((((!(a27==1)&&((((((a19==3)&&(input==5))&&(a9==11))&&(a17==2))&&!(a20==1))&&(a23==1)))&&(a21==11))&&(a1==12))&&((a2==1)&&(((a16==8)&&(((a3==1)&&((a6==1)&&(a28==1)))&&(a5==4)))&&!(a8==1))))){ + a16 = 9; + a12 = 1; + a8 = 0; + a3 = 1; + a21 = 10; + a1 = 14; + a20 = 1; + a9 = 10; + a5 = 5; + a19 = 2; + return 21; + } else if((((((!(a27==1)&&(((((a27==1)||((a3==1)&&(a17==2)))&&(a16==7))&&(a9==10))&&(a13==1)))&&(a1==13))&&(a21==12))&&(a20==1))&&((a2==1)&&((a11==1)&&(((a19==4)&&((input==1)&&((a5==5)||(a5==6))))&&!(a24==1)))))){ + a19 = 2; + a1 = 14; + a16 = 9; + a21 = 11; + a9 = 9; + a26 = 0; + a28 = 1; + a5 = 4; + a3 = 1; + return 23; + } else if(((!(a0==1)&&((a17==2)&&(!(a14==1)&&(((a3==1)&&((((a5==4)||(a5==5))&&(input==1))&&(a20==1)))&&!(a8==1)))))&&((a1==14)&&((a27==1)||(((a6==1)&&(((a19==1)&&((a12==1)&&(a21==11)))&&(a9==8)))&&(a16==7)))))){ + a14 = 0; + a21 = 10; + a24 = 0; + a5 = 4; + a26 = 0; + a9 = 7; + a1 = 12; + return -1; + } else if(((((a4==1)||((a28==1)&&(((a23==1)&&(a19==2))&&(a20==1))))||(a27==1))&&((!(a24==1)&&((a16==7)&&((a21==11)&&(!(a4==1)&&((a17==2)&&((((((a5==5)&&(a1==13))&&(a9==11))||(((a1==13)&&(a5==6))&&(a9==11)))||(((a1==14)&&(a5==4))&&(a9==7)))&&(input==3)))))))&&!(a7==1)))){ + a1 = 12; + a19 = 1; + a8 = 0; + a5 = 4; + a21 = 10; + a7 = 0; + a9 = 7; + a3 = 1; + return -1; + } else if((((!(a11==1)||(((a14==1)||(((((a20==1)&&(a6==1))&&(a11==1))&&(a17==2))&&(a16==7)))&&(a21==10)))||(a4==1))&&((!(a0==1)&&(!(a26==1)&&(((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==4))&&(a1==12))))&&(a19==4)))){ + if((a29==1)){ + a5 = 6; + a9 = 7; + a19 = 5; + a18 = 0; + a13 = 1; + a20 = 0; + a0 = 0; + a21 = 11; + }else{ + a1 = 13; + a20 = 0; + a27 = 0; + a11 = 1; + a9 = 7; + a21 = 12; + a5 = 5; + a23 = 1; + } + return 21; + } else if(((((a17==2)&&(((a16==11)&&((((input==4)&&((a5==4)||(a5==5)))&&(a9==9))&&(a21==12)))&&(a19==1)))&&(a1==12))&&(((a18==1)||(!(a0==1)&&((a13==1)&&(((a18==1)||((a12==1)&&(a20==1)))||(a26==1)))))&&(a3==1)))){ + a9 = 7; + a8 = 0; + a21 = 10; + a5 = 4; + a12 = 1; + a16 = 7; + a14 = 0; + return -1; + } else if((((a14==1)||((a23==1)&&((a3==1)&&(((((a21==10)&&((a11==1)&&(a16==11)))&&(a19==2))&&(a28==1))&&!(a8==1)))))&&((a11==1)&&((!(a20==1)&&((input==4)&&(((a9==7)&&((a1==13)&&(a5==4)))||(((a9==11)&&((a1==12)&&(a5==5)))||((a9==11)&&((a5==6)&&(a1==12)))))))&&(a17==2))))){ + a19 = 1; + a9 = 9; + a22 = 0; + a5 = 5; + a20 = 1; + a1 = 13; + a28 = 0; + a16 = 7; + a3 = 0; + return 22; + } else if(((!(a4==1)&&((((a2==1)&&((a9==11)&&((((a19==5)&&((a1==12)&&(((a5==6)&&(input==6))&&(a16==11))))&&(a17==2))&&(a6==1))))&&(a12==1))&&(a21==10)))&&((((a12==1)&&(a2==1))||!(a2==1))&&(a20==1)))){ + a19 = 1; + a23 = 1; + a27 = 0; + a16 = 7; + a12 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if(((((a11==1)&&((a16==9)&&((a1==12)&&((((a2==1)&&!(a27==1))||(a7==1))||(a4==1)))))&&(a20==1))&&((((((a19==1)&&(((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a17==2)))&&(a21==10))&&(a2==1))&&(a9==8))&&(a12==1)))){ + a11 = 1; + a9 = 10; + a2 = 1; + a21 = 12; + a5 = 4; + a0 = 0; + a1 = 14; + a16 = 10; + a19 = 5; + return 22; + } else if((((a21==12)&&((((a20==1)&&(!(a27==1)&&(((a6==1)&&(a16==10))&&(a13==1))))&&(a1==14))&&(a9==11)))&&(((((a19==5)&&(!(a14==1)&&((a11==1)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))))&&(a17==2))&&(a28==1))&&(a11==1)))){ + a0 = 0; + a19 = 1; + a8 = 0; + a16 = 7; + a1 = 12; + a18 = 0; + a21 = 10; + a9 = 7; + a5 = 4; + return -1; + } else if(((((a12==1)&&((((input==1)&&((a5==4)||(a5==5)))&&(a13==1))&&(a21==12)))&&(a9==11))&&((a16==7)&&((a17==2)&&((a1==13)&&(((!(a7==1)&&(((!(a26==1)&&(a12==1))&&!(a8==1))&&(a20==1)))&&!(a14==1))&&(a19==1))))))){ + a23 = 1; + a21 = 10; + a9 = 7; + a27 = 0; + a26 = 0; + a5 = 4; + a1 = 12; + return -1; + } else if((((a21==10)&&((a1==13)&&(!(a2==1)||(((a16==11)&&(((!(a26==1)&&((a19==1)&&((a20==1)&&((a28==1)&&!(a7==1)))))&&!(a18==1))&&(a17==2)))&&(a9==8)))))&&(!(a27==1)&&((a11==1)&&((input==1)&&((a5==4)||(a5==5))))))){ + a3 = 1; + a16 = 10; + a19 = 2; + a14 = 0; + a21 = 12; + a2 = 1; + a5 = 4; + return 21; + } else if(((((a12==1)&&((a16==7)&&(a3==1)))&&!(a26==1))&&((!(a18==1)&&((((a2==1)&&((a19==4)&&((a12==1)&&(((input==6)&&((((a1==13)&&(a5==5))&&(a9==7))||((((a5==6)&&(a1==12))&&(a9==11))||(((a5==4)&&(a1==13))&&(a9==7)))))&&!(a20==1)))))&&(a21==11))&&(a17==2)))&&!(a18==1)))){ + a21 = 10; + a20 = 1; + a9 = 9; + a18 = 0; + a19 = 2; + a5 = 5; + a1 = 13; + a7 = 0; + a12 = 1; + return 25; + } else if((((a5==5)&&((a1==14)&&((!(a18==1)&&(((a20==1)&&(a2==1))||!(a23==1)))&&(a16==8))))&&(((a9==9)&&((a6==1)&&((a19==1)&&(!(a24==1)&&(!(a18==1)&&(((a17==2)&&(input==5))&&!(a18==1)))))))&&(a21==10)))){ + a5 = 4; + a9 = 7; + a11 = 1; + a18 = 0; + a1 = 12; + a16 = 7; + return -1; + } else if(((!(a4==1)&&((a4==1)||(((!(a20==1)&&((a6==1)||(a4==1)))&&(a1==12))||(a0==1))))&&(((a11==1)&&(((((((input==3)&&(a5==5))&&(a9==9))&&(a17==2))&&(a16==10))&&(a19==1))&&(a21==12)))&&!(a27==1)))){ + a24 = 1; + a3 = 0; + a9 = 10; + a5 = 6; + a20 = 1; + a28 = 0; + a19 = 2; + return 25; + } else if(((!(a0==1)&&(!(a14==1)&&(!(a4==1)&&(!(a13==1)||(!(a24==1)&&(((a19==2)&&(a12==1))&&!(a20==1)))))))&&(!(a7==1)&&((a9==11)&&((((((a21==10)&&(input==1))&&(a5==5))&&(a1==14))&&(a17==2))&&(a16==11)))))){ + if((a3==1)){ + a7 = 1; + a21 = 11; + a9 = 10; + a1 = 13; + a16 = 10; + a5 = 4; + a14 = 1; + a19 = 4; + }else{ + a13 = 0; + a1 = 12; + a21 = 11; + a14 = 1; + a10 = 1; + a16 = 8; + a9 = 7; + a20 = 1; + } + return -1; + } else if(((!(a26==1)&&((((a2==1)&&(!(a8==1)&&(!(a24==1)&&((a1==12)&&(((a5==4)||(a5==5))&&(input==5))))))&&(a17==2))&&(a9==11)))&&((((a21==11)&&((a19==2)&&(((a13==1)&&(a6==1))||!(a23==1))))&&(a16==10))&&(a20==1)))){ + a19 = 1; + a9 = 7; + a16 = 7; + a18 = 0; + a21 = 10; + a6 = 1; + a5 = 4; + a2 = 1; + return -1; + } else if((((((a9==7)&&(!(a24==1)&&(((a1==13)&&((input==3)&&(a5==5)))&&!(a0==1))))&&!(a27==1))&&(a16==11))&&(((a7==1)||((((((a19==1)&&(a3==1))&&(a21==10))&&(a12==1))&&(a17==2))&&(a2==1)))&&!(a20==1)))){ + a10 = 1; + a20 = 1; + a5 = 6; + a16 = 7; + a29 = 1; + a9 = 11; + a28 = 0; + return -1; + } else if((((((!(a27==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))&&!(a4==1))&&(a9==8))&&!(a20==1))&&(((((!(a6==1)||((a7==1)||((a1==12)&&((a26==1)||((a16==9)&&(a2==1))))))||!(a13==1))&&(a19==4))&&(a17==2))&&(a21==11)))){ + a8 = 1; + a10 = 1; + a5 = 6; + a21 = 10; + a9 = 7; + a11 = 0; + a20 = 1; + a19 = 1; + a16 = 7; + a1 = 13; + return 21; + } else if((((a1==14)&&((a2==1)&&(!(a12==1)||((a23==1)&&!(a20==1)))))&&(((((a2==1)&&((a16==8)&&(!(a18==1)&&((!(a27==1)&&(((input==4)&&((a5==4)||(a5==5)))&&(a9==11)))&&(a12==1)))))&&(a21==10))&&(a17==2))&&(a19==4)))){ + a19 = 1; + a20 = 1; + a13 = 1; + a5 = 4; + a1 = 12; + a16 = 7; + a11 = 1; + a2 = 1; + a9 = 7; + return -1; + } else if((((a20==1)&&((((!(a11==1)||(((a17==2)&&((a13==1)||(a14==1)))||(a4==1)))&&(a16==9))&&(a1==12))&&(a19==5)))&&(!(a14==1)&&((a21==11)&&(((((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))&&(input==6))&&!(a24==1))&&(a2==1)))))){ + a4 = 0; + a5 = 4; + a1 = 14; + a3 = 1; + a26 = 0; + a9 = 11; + return 21; + } else if(((!(a28==1)||(((a17==2)&&(!(a20==1)&&((!(a6==1)||((!(a23==1)||(a28==1))&&(a1==13)))&&(a16==9))))&&(a21==11)))&&(((!(a8==1)&&(((a2==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&(a9==11)))&&(a13==1))&&(a19==1)))){ + if((a0==1)){ + a10 = 0; + a26 = 1; + a13 = 0; + a21 = 10; + a9 = 10; + a20 = 1; + a1 = 12; + a5 = 5; + a16 = 7; + }else{ + a20 = 1; + a21 = 10; + a10 = 1; + a9 = 10; + a16 = 7; + a11 = 0; + a5 = 5; + } + return -1; + } else if((((((a24==1)||(((a17==2)&&(a13==1))&&!(a20==1)))&&(a3==1))&&(a16==10))&&(((((!(a14==1)&&((a9==11)&&((((a19==3)&&(input==6))&&!(a14==1))&&(a23==1))))&&!(a7==1))&&(a5==6))&&(a21==11))&&(a1==14)))){ + a19 = 2; + a4 = 1; + a25 = 1; + a2 = 0; + a5 = 5; + a1 = 12; + a9 = 10; + a21 = 10; + return -1; + } else if((((a18==1)||((!(a20==1)&&((a23==1)&&(a16==7)))||(a14==1)))&&((a11==1)&&((a3==1)&&(((a23==1)&&(!(a18==1)&&((input==1)&&((((a21==11)&&((((a1==14)&&(a5==5))&&(a9==11))&&(a19==5)))||(((((a5==6)&&(a1==14))&&(a9==11))&&(a19==5))&&(a21==11)))||(((a19==1)&&((a9==7)&&((a1==12)&&(a5==4))))&&(a21==12))))))&&(a17==2)))))){ + a1 = 12; + a7 = 0; + a21 = 10; + a5 = 4; + a6 = 1; + a20 = 1; + a23 = 1; + a9 = 7; + a19 = 1; + return -1; + } else if(((!(a0==1)&&(((a20==1)&&(((((a28==1)&&((a1==12)&&(!(a27==1)&&((input==1)&&((a5==5)||(a5==6))))))&&(a9==9))&&!(a24==1))&&(a17==2)))&&!(a7==1)))&&((((a19==4)&&((a21==11)&&(a2==1)))&&(a16==9))||(a18==1)))){ + a1 = 13; + a5 = 4; + a19 = 2; + a16 = 7; + a27 = 0; + a23 = 1; + a21 = 10; + a9 = 10; + a8 = 0; + return 21; + } else if((((a9==9)&&(((a5==4)&&(a12==1))||!(a12==1)))&&((a21==12)&&((a19==3)&&((a16==8)&&((a12==1)&&((a12==1)&&(!(a27==1)&&((a20==1)&&((a1==12)&&((!(a27==1)&&((a17==2)&&(input==3)))&&!(a24==1)))))))))))){ + a6 = 1; + a16 = 7; + a26 = 0; + a9 = 7; + a21 = 10; + a2 = 1; + a19 = 1; + return -1; + } else if(((((a18==1)||((!(a26==1)&&((a1==13)&&(a23==1)))&&!(a20==1)))&&!(a14==1))&&((a6==1)&&((a16==10)&&(((!(a26==1)&&(!(a18==1)&&(((input==4)&&(((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))))&&(a19==3))))&&(a21==11))&&(a17==2)))))){ + if((a14==1)){ + a16 = 7; + a20 = 1; + a24 = 1; + a19 = 1; + a5 = 4; + a25 = 0; + a21 = 10; + a1 = 12; + a22 = 1; + a9 = 10; + }else{ + a23 = 0; + a9 = 9; + a20 = 1; + a25 = 0; + a19 = 5; + a5 = 4; + a18 = 1; + a1 = 12; + a21 = 12; + } + return 25; + } else if((((!(a12==1)||(((((a19==3)&&(a2==1))||!(a28==1))||(a24==1))&&!(a20==1)))||!(a11==1))&&((a23==1)&&((a28==1)&&(((((a1==12)&&((input==3)&&((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4)))))&&(a21==10))&&(a17==2))&&(a16==8)))))){ + a5 = 6; + a21 = 12; + a13 = 1; + a20 = 1; + a9 = 9; + a16 = 9; + a2 = 1; + a3 = 1; + return 21; + } else if((((a12==1)&&(((((((((a19==5)&&((a16==10)&&(((a5==6)&&(a1==14))&&(a9==11))))&&(a21==12))||((a21==10)&&((a19==1)&&((a16==11)&&((a9==7)&&((a1==12)&&(a5==4)))))))||((a21==10)&&((a19==1)&&((((a5==5)&&(a1==12))&&(a9==7))&&(a16==11)))))&&(input==6))&&(a2==1))&&!(a20==1))&&!(a18==1)))&&(((a7==1)||(((a17==2)&&(a11==1))||(a0==1)))&&!(a0==1)))){ + if((a29==1)){ + a1 = 14; + a9 = 10; + a29 = 1; + a26 = 1; + a21 = 11; + a19 = 3; + a22 = 0; + a16 = 10; + a5 = 5; + }else{ + a27 = 1; + a21 = 11; + a1 = 13; + a18 = 1; + a5 = 4; + a9 = 8; + a16 = 7; + a19 = 5; + a3 = 0; + } + return -1; + } else if((((a17==2)&&(!(a20==1)&&(((a13==1)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&!(a0==1))&&(a1==14)))&&(a11==1))))&&((((((a14==1)||(((a2==1)&&(a11==1))&&!(a8==1)))&&(a16==11))&&(a19==2))&&(a21==10))&&(a9==10)))){ + a5 = 6; + a9 = 11; + a16 = 9; + a20 = 1; + a1 = 12; + a4 = 1; + a24 = 1; + a25 = 0; + a19 = 5; + return -1; + } else if((((((a4==1)||((((a17==2)&&(a13==1))&&(a3==1))&&(a16==11)))&&(a11==1))&&(a21==11))&&((((a2==1)&&((!(a26==1)&&((a1==13)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==5))))&&(a20==1)))&&!(a26==1))&&(a19==1)))){ + a9 = 7; + a27 = 0; + a1 = 12; + a21 = 10; + a5 = 4; + a8 = 0; + a2 = 1; + a16 = 7; + return -1; + } else if(((((((!(a0==1)&&(!(a20==1)&&(((a5==5)&&((a9==10)&&(input==3)))&&(a17==2))))&&!(a26==1))&&!(a14==1))&&(a21==12))&&(a28==1))&&(((a19==2)&&((a2==1)&&((a1==13)&&((a28==1)&&(a16==8)))))||!(a3==1)))){ + a18 = 1; + a16 = 7; + a20 = 1; + a1 = 12; + a9 = 7; + a14 = 1; + a5 = 6; + a11 = 0; + a21 = 10; + a19 = 1; + return -1; + } else if((((a5==6)&&((a13==1)&&(!(a6==1)||((a13==1)&&(a21==10)))))&&((a3==1)&&(!(a18==1)&&((a16==7)&&(!(a20==1)&&((((!(a0==1)&&((a9==10)&&((a1==13)&&(input==6))))&&!(a18==1))&&(a19==4))&&(a17==2)))))))){ + a9 = 7; + a13 = 1; + a2 = 1; + a1 = 12; + a20 = 1; + a4 = 0; + a19 = 1; + a5 = 4; + return -1; + } else if((((a17==2)&&((a16==9)&&((((!(a27==1)&&(a12==1))&&!(a0==1))&&(a6==1))&&(a3==1))))&&((a19==2)&&(!(a0==1)&&(!(a20==1)&&(((((input==6)&&((((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4))))&&(a21==12))&&!(a4==1))&&(a1==14))))))){ + a22 = 1; + a11 = 0; + a1 = 13; + a9 = 7; + a16 = 7; + a7 = 1; + a5 = 4; + a21 = 10; + a20 = 1; + return 25; + } else if((((a17==2)&&((a9==11)&&(!(a18==1)&&(!(a7==1)&&((a16==10)&&((!(a0==1)&&((a6==1)&&((input==5)&&((a5==5)||(a5==6)))))&&(a6==1)))))))&&((a21==12)&&(((a1==14)&&(((a19==1)&&(a6==1))&&(a6==1)))&&(a20==1))))){ + a5 = 4; + a23 = 1; + a1 = 12; + a6 = 1; + a27 = 0; + a21 = 10; + a9 = 7; + a16 = 7; + return -1; + } else if((((a17==2)&&(!(a14==1)&&((!(a18==1)&&((a28==1)&&(((a1==12)&&((!(a8==1)&&((a21==11)&&(!(a20==1)&&(input==4))))&&(a6==1)))&&(a19==1))))&&(a6==1))))&&((((a3==1)&&(a16==8))&&(a9==11))&&(a5==4)))){ + a19 = 3; + a16 = 7; + a21 = 12; + a9 = 7; + a20 = 1; + a6 = 1; + a3 = 1; + a4 = 0; + return 23; + } else if(((((a2==1)&&((a17==2)&&((a13==1)&&(((((input==3)&&(a16==11))&&!(a27==1))&&(a19==1))&&(a2==1)))))&&(a1==12))&&(!(a11==1)||((((((a9==8)&&(a12==1))||!(a3==1))&&(a21==12))&&(a20==1))&&(a5==6))))){ + a11 = 1; + a12 = 1; + a9 = 7; + a16 = 7; + a21 = 10; + a26 = 0; + a5 = 4; + return -1; + } else if(((((((((a13==1)&&((((input==5)&&((a5==4)||(a5==5)))&&!(a18==1))&&(a28==1)))&&(a16==11))&&(a9==11))&&(a28==1))&&(a1==14))&&(a20==1))&&(((((a21==10)&&((a17==2)&&(a23==1)))||(a0==1))||!(a12==1))&&(a19==4)))){ + a11 = 1; + a9 = 8; + a5 = 5; + a18 = 0; + a16 = 8; + a1 = 13; + a28 = 1; + return -1; + } else if(((!(a12==1)||((((((a16==8)&&((a26==1)||(a3==1)))&&(a17==2))&&!(a20==1))||(a7==1))&&!(a24==1)))&&(((a21==11)&&(((((input==1)&&(((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))))&&(a13==1))&&(a1==13))&&(a19==5)))&&(a3==1)))){ + a5 = 5; + a19 = 1; + a9 = 7; + a20 = 1; + a18 = 1; + a1 = 12; + a16 = 7; + a10 = 0; + a13 = 0; + a21 = 10; + return -1; + } else if((((a20==1)&&((!(a8==1)&&(((a16==10)&&((a11==1)&&((a19==5)&&((((((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==4))&&(a21==10))&&(a1==14)))))&&(a23==1)))&&(a3==1)))&&((((a3==1)||(a0==1))||!(a3==1))&&(a17==2)))){ + a5 = 4; + a11 = 1; + a14 = 0; + a1 = 12; + a19 = 1; + a9 = 7; + a16 = 7; + a2 = 1; + return -1; + } else if((((a9==8)&&(((((a5==5)&&(a28==1))||(a7==1))||(a27==1))&&(a17==2)))&&(((a20==1)&&((a2==1)&&((a21==11)&&((a23==1)&&(((a16==11)&&((a28==1)&&((a1==13)&&(input==4))))&&(a3==1))))))&&(a19==1)))){ + a7 = 0; + a1 = 12; + a24 = 0; + a21 = 10; + a9 = 7; + a12 = 1; + a5 = 4; + a16 = 7; + return -1; + } else if(((((((a19==3)&&((((((a12==1)&&(a28==1))||!(a11==1))||(a8==1))&&(a17==2))&&(a21==10)))&&(a1==12))&&(a16==8))&&(a9==11))&&((a11==1)&&(!(a20==1)&&((!(a4==1)&&((input==5)&&((a5==5)||(a5==6))))&&(a11==1)))))){ + a9 = 7; + a16 = 7; + a0 = 0; + a19 = 1; + a8 = 0; + a14 = 0; + a20 = 1; + a5 = 4; + return -1; + } else if((((a1==12)&&(((((!(a14==1)&&((input==3)&&(((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))))&&!(a18==1))&&!(a26==1))&&(a28==1))&&(a16==7)))&&(((((!(a28==1)||((a17==2)&&(a11==1)))&&!(a20==1))&&(a19==2))&&(a11==1))&&(a21==11)))){ + a8 = 0; + a21 = 10; + a5 = 4; + a20 = 1; + a2 = 1; + a6 = 1; + a19 = 1; + a9 = 7; + return -1; + } else if((((a21==10)&&(((a6==1)&&(((((a1==13)&&(a3==1))&&(a3==1))&&(a19==1))&&(a16==10)))&&(a9==8)))&&(!(a20==1)&&(!(a14==1)&&((a23==1)&&(((a12==1)&&((a5==4)&&((input==6)&&(a17==2))))&&(a2==1))))))){ + a5 = 5; + a1 = 12; + a16 = 9; + a23 = 0; + a10 = 1; + a9 = 10; + a19 = 2; + return 25; + } else if(((((!(a20==1)&&(((((a8==1)||(a28==1))&&(a19==4))&&(a2==1))||(a7==1)))&&!(a8==1))||!(a12==1))&&((a16==10)&&(!(a27==1)&&(((a21==11)&&((((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))&&(input==6))&&(a1==12)))&&(a17==2)))))){ + if((a16==8)){ + a5 = 6; + a16 = 11; + a15 = 1; + a19 = 1; + a2 = 0; + a20 = 1; + a9 = 10; + }else{ + a5 = 6; + a1 = 13; + a19 = 1; + a16 = 7; + a21 = 10; + a2 = 0; + a9 = 10; + a20 = 1; + a22 = 1; + a29 = 1; + } + return -1; + } else if(((((((a16==9)&&((a19==5)&&((a20==1)&&((a17==2)&&((input==4)&&((a5==5)||(a5==6)))))))&&(a21==10))&&(a6==1))&&!(a27==1))&&((a12==1)&&((!(a4==1)&&((((a6==1)&&(a9==10))&&(a1==14))||!(a6==1)))&&!(a26==1))))){ + a21 = 12; + a18 = 0; + a20 = 0; + a28 = 1; + a0 = 0; + a19 = 4; + a5 = 4; + a16 = 7; + return 25; + } else if(((((a1==14)&&((a20==1)&&((!(a24==1)&&(((a16==7)&&((a19==5)&&((input==5)&&(a9==8))))&&(a21==12)))&&!(a24==1))))&&(a23==1))&&(((a5==5)&&((!(a13==1)||((a28==1)&&(a13==1)))&&(a17==2)))||!(a13==1)))){ + a28 = 1; + a23 = 1; + a19 = 1; + a21 = 10; + a13 = 1; + a1 = 12; + a9 = 7; + a5 = 4; + return -1; + } else if((((a16==9)&&(((a5==5)&&((((a1==13)&&((a19==2)&&(input==4)))&&!(a24==1))&&(a2==1)))&&!(a14==1)))&&(!(a13==1)||((a6==1)&&(((a20==1)&&((a9==9)&&(!(a7==1)&&((a21==12)&&(a28==1)))))&&(a17==2)))))){ + a16 = 7; + a9 = 7; + a23 = 1; + a21 = 10; + a4 = 0; + a1 = 12; + a19 = 1; + a5 = 4; + a6 = 1; + return -1; + } else if(((((!(a20==1)&&((a28==1)&&(a16==9)))&&!(a4==1))||(a27==1))&&(!(a26==1)&&((((a9==7)&&((((((a21==10)&&((input==5)&&((a5==4)||(a5==5))))&&(a17==2))&&(a28==1))&&(a19==5))&&(a1==14)))&&(a6==1))&&!(a4==1))))){ + if((a14==1)){ + a16 = 8; + a14 = 1; + a9 = 10; + a18 = 1; + a21 = 12; + a25 = 1; + a20 = 1; + a5 = 4; + }else{ + a2 = 0; + a16 = 7; + a20 = 1; + a12 = 0; + a29 = 1; + a1 = 13; + a19 = 1; + a5 = 4; + } + return -1; + } else if((((a28==1)&&((a13==1)&&((a3==1)&&(((input==4)&&((a5==5)||(a5==6)))&&(a19==4)))))&&(((a17==2)&&((a20==1)&&((a1==12)&&((!(a14==1)&&((a9==8)&&(((a12==1)&&(a2==1))||(a18==1))))&&(a16==10)))))&&(a21==12)))){ + a21 = 10; + a9 = 7; + a5 = 4; + a7 = 0; + a27 = 0; + a16 = 7; + a3 = 1; + a19 = 1; + return -1; + } else if((((!(a27==1)&&((a21==11)&&((a23==1)&&(((((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==4))&&(a16==10))&&(a19==3))&&(a13==1)))))&&(a12==1))&&(((a1==12)&&(!(a20==1)&&(!(a27==1)&&((a11==1)&&(a11==1)))))&&(a17==2)))){ + a5 = 6; + a21 = 10; + a20 = 1; + a24 = 1; + a16 = 7; + a6 = 0; + a29 = 1; + a9 = 11; + a19 = 1; + return 26; + } else if(((((!(a7==1)&&((a21==10)&&(((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==3))&&(a1==14))))&&!(a14==1))&&(a11==1))&&((((a16==11)&&((((a20==1)&&((a3==1)&&(a19==5)))&&(a17==2))&&(a23==1)))&&(a28==1))&&!(a18==1)))){ + a1 = 12; + a9 = 7; + a5 = 4; + a27 = 0; + a19 = 1; + a24 = 0; + a16 = 7; + a7 = 0; + return -1; + } else if((((a2==1)&&((((((((a16==7)&&(((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))&&(input==4)))&&(a3==1))&&(a6==1))&&(a17==2))&&(a19==2))&&!(a4==1))&&(a12==1)))&&((((a21==12)&&((a11==1)&&(a2==1)))&&(a1==13))&&(a20==1)))){ + a5 = 4; + a19 = 1; + a8 = 0; + a20 = 0; + a9 = 11; + a26 = 0; + a21 = 11; + a16 = 8; + return 22; + } else if(((((a23==1)&&((a21==11)&&(((((a27==1)||(a2==1))&&(a1==14))&&(a19==1))||!(a13==1))))&&!(a20==1))&&((a16==8)&&(((((a6==1)&&(((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a11==1)))&&!(a4==1))&&(a9==9))&&(a17==2))))){ + a3 = 1; + a16 = 7; + a9 = 7; + a12 = 1; + a20 = 1; + a21 = 10; + a5 = 4; + a6 = 1; + a1 = 12; + return -1; + } else if(((((((a1==13)&&(((((a5==4)&&((a19==5)&&(input==3)))&&!(a8==1))&&(a28==1))&&(a9==11)))&&(a16==11))&&(a17==2))&&(a2==1))&&((a18==1)||((a11==1)&&(((a21==12)&&((a12==1)&&(a20==1)))||(a0==1)))))){ + a0 = 0; + a21 = 10; + a19 = 1; + a11 = 1; + a9 = 7; + a16 = 7; + a1 = 12; + a27 = 0; + return -1; + } else if((((((input==6)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(a17==2))&&!(a27==1))&&(((((a16==10)&&((a19==3)&&((a13==1)&&(((((a8==1)||(a6==1))&&!(a20==1))||(a24==1))&&(a2==1)))))&&(a21==11))&&(a1==12))&&!(a8==1)))){ + if((a8==1)){ + a20 = 1; + a1 = 14; + a21 = 10; + a16 = 7; + a5 = 6; + a7 = 1; + a25 = 1; + a9 = 9; + a19 = 1; + a27 = 1; + }else{ + a5 = 5; + a20 = 1; + a19 = 2; + a23 = 0; + a9 = 9; + a21 = 12; + a16 = 7; + a1 = 14; + a3 = 0; + a4 = 1; + } + return -1; + } else if((((a19==1)&&((a16==10)&&(!(a20==1)&&(!(a24==1)&&((((a17==2)&&(((input==3)&&((a5==5)||(a5==6)))&&!(a14==1)))&&(a9==7))&&!(a27==1))))))&&(((((a26==1)||((a11==1)&&(a1==14)))&&!(a14==1))&&!(a0==1))&&(a21==12)))){ + a9 = 11; + a5 = 4; + a19 = 5; + a11 = 0; + a21 = 10; + a20 = 1; + a16 = 9; + a28 = 0; + a27 = 1; + return -1; + } else if((((a23==1)&&((!(a14==1)&&((a16==10)&&((a11==1)||!(a23==1))))&&(a17==2)))&&((a20==1)&&((((a1==14)&&(((((((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8))))&&(input==5))&&(a28==1))&&(a21==12))&&(a19==1)))&&(a12==1))&&(a6==1))))){ + a21 = 10; + a9 = 9; + a19 = 2; + a27 = 0; + a5 = 4; + a3 = 1; + a1 = 13; + a16 = 7; + return 22; + } else if((((((a9==11)&&((a11==1)&&((a21==11)&&(a11==1))))&&(a5==6))&&(a1==14))&&(((!(a14==1)&&((!(a8==1)&&(!(a27==1)&&((a17==2)&&(!(a20==1)&&((a19==1)&&(input==3))))))&&(a16==8)))&&!(a27==1))&&!(a4==1)))){ + a21 = 10; + a1 = 12; + a5 = 4; + a2 = 1; + a28 = 1; + a3 = 1; + a20 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if((((a17==2)&&(!(a0==1)&&((((a16==9)&&(((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a21==11)))&&!(a24==1))&&!(a24==1))))&&((a8==1)||((a1==12)&&((((a14==1)||(!(a20==1)&&((a19==4)&&(a23==1))))||(a26==1))&&(a9==8)))))){ + if((a16==7)){ + a16 = 7; + a9 = 10; + a25 = 0; + a7 = 1; + a19 = 2; + a10 = 1; + a21 = 10; + a5 = 5; + a20 = 1; + }else{ + a21 = 12; + a9 = 10; + a16 = 10; + a5 = 5; + a23 = 0; + a11 = 0; + a0 = 1; + } + return 26; + } else if((((((a16==7)&&((a1==13)&&(((a21==11)&&((a17==2)&&((a9==9)&&((a11==1)&&(a20==1)))))||(a24==1))))&&!(a24==1))||!(a23==1))&&((a3==1)&&(((((input==1)&&((a5==5)||(a5==6)))&&(a19==5))&&!(a27==1))&&!(a18==1))))){ + a21 = 12; + a18 = 0; + a19 = 2; + a5 = 4; + a16 = 8; + a8 = 0; + a9 = 10; + a27 = 0; + a1 = 12; + return 23; + } else if((((a1==14)&&((((!(a18==1)&&(a2==1))&&(a11==1))&&(a19==5))||(a7==1)))&&(((!(a20==1)&&((a23==1)&&(((a21==11)&&((((input==3)&&(a17==2))&&!(a18==1))&&!(a26==1)))&&(a9==11))))&&(a5==4))&&(a16==7)))){ + a2 = 1; + a19 = 4; + a1 = 12; + a20 = 1; + a3 = 1; + a9 = 7; + a21 = 10; + a5 = 5; + a27 = 0; + a16 = 8; + return 22; + } else if((((a2==1)&&((((a21==10)&&(((input==4)&&(a1==13))&&(a20==1)))&&!(a0==1))&&!(a14==1)))&&((a19==3)&&((((a17==2)&&(!(a6==1)||((a5==5)&&(((a13==1)&&(a13==1))||(a4==1)))))&&(a16==9))&&(a9==10))))){ + a19 = 1; + a9 = 7; + a2 = 1; + a16 = 7; + a23 = 1; + a24 = 0; + a1 = 12; + a5 = 4; + return -1; + } else if((((a19==2)&&((!(a3==1)||((a9==9)&&(a3==1)))||(a27==1)))&&((((a17==2)&&(((((a11==1)&&((((a5==6)&&(input==5))&&(a3==1))&&(a11==1)))&&!(a8==1))&&(a16==11))&&(a1==14)))&&(a21==10))&&!(a20==1)))){ + if((a23==1)){ + a9 = 10; + a19 = 1; + a16 = 7; + a20 = 1; + a0 = 1; + a1 = 12; + a11 = 0; + }else{ + a16 = 7; + a26 = 1; + a19 = 1; + a5 = 4; + a20 = 1; + a1 = 12; + a8 = 1; + a9 = 8; + a12 = 0; + } + return -1; + } else if(((((a19==4)&&(((((a23==1)&&((((a5==5)||(a5==6))&&(input==3))&&!(a27==1)))&&(a16==7))&&(a2==1))&&(a13==1)))&&(a17==2))&&((((!(a6==1)||(((a3==1)&&(a23==1))&&(a21==10)))&&(a1==13))&&!(a20==1))&&(a9==9)))){ + a19 = 1; + a5 = 4; + a12 = 1; + a1 = 12; + a26 = 0; + a23 = 1; + a20 = 1; + a9 = 7; + return -1; + } else if(((((a17==2)&&((a20==1)&&((!(a14==1)&&((((a28==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&!(a27==1)))&&!(a4==1))&&(a9==10)))&&(a21==10))))&&(a19==4))&&(((((a1==12)&&(a13==1))&&(a3==1))&&!(a18==1))&&(a16==9)))){ + a27 = 0; + a9 = 11; + a1 = 14; + a5 = 5; + a19 = 2; + a28 = 1; + a11 = 1; + a21 = 12; + return 21; + } else if(((!(a0==1)&&((((a9==7)&&(((((a21==11)&&((input==5)&&(a1==13)))&&(a5==6))&&(a20==1))&&(a19==4)))&&(a2==1))&&(a17==2)))&&((a6==1)&&((((a12==1)&&((a16==8)&&(a12==1)))||(a4==1))||(a8==1))))){ + a5 = 4; + a24 = 0; + a1 = 12; + a16 = 10; + a14 = 0; + a19 = 2; + a9 = 11; + a6 = 1; + return 25; + } else if(((((a3==1)&&(((((a6==1)&&(a3==1))&&!(a27==1))&&!(a20==1))&&(a1==14)))&&(a19==2))&&(((a16==7)&&(!(a26==1)&&(((a21==10)&&((a17==2)&&(((input==4)&&((a5==5)||(a5==6)))&&!(a27==1))))&&(a9==8))))&&(a2==1)))){ + a1 = 12; + a14 = 0; + a5 = 4; + a20 = 1; + a9 = 7; + a3 = 1; + a19 = 1; + return -1; + } else if((((((a12==1)&&(((a17==2)&&((((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5)))&&(input==4))&&(a28==1)))&&(a12==1)))&&(a20==1))&&!(a7==1))&&(((a1==12)&&(!(a28==1)||((((a21==12)&&(a12==1))&&(a19==3))&&(a3==1))))&&(a16==11)))){ + a1 = 14; + a19 = 4; + a12 = 1; + a9 = 9; + a5 = 4; + return 25; + } else if((((a20==1)&&((a21==12)&&((((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&(a19==4))&&(a14==1))))&&((a24==1)&&(((a16==10)&&(((((((a14==1)&&(a6==1))&&(a24==1))&&(a4==1))&&(a1==12))&&(a9==9))&&(a24==1)))&&(a17==2))))){ + a22 = 1; + a9 = 7; + a24 = 1; + a5 = 5; + a19 = 3; + a15 = 1; + return 22; + } else if((((a16==8)&&((a3==1)&&(((a3==1)&&(((a19==3)&&((a13==1)&&((a2==1)&&(a28==1))))&&!(a7==1)))||!(a13==1))))&&(!(a20==1)&&((a17==2)&&((a1==12)&&((a5==4)&&(((input==3)&&(a21==11))&&(a9==11)))))))){ + a21 = 10; + a9 = 7; + a20 = 1; + a16 = 7; + a19 = 1; + a11 = 1; + a24 = 0; + a0 = 0; + return -1; + } else if((((!(a24==1)&&((a16==8)&&(((a19==2)&&(!(a7==1)&&(a2==1)))&&(a20==1))))&&(a17==2))&&((a23==1)&&(((a23==1)&&((a1==12)&&(((a2==1)&&(((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5)))&&(input==6)))&&!(a8==1))))&&(a21==10))))){ + a9 = 8; + a7 = 0; + a16 = 9; + a5 = 6; + a19 = 3; + a1 = 13; + a27 = 0; + a11 = 1; + a21 = 12; + return 25; + } else if((((((!(a0==1)&&(((a23==1)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==6)))&&(a21==12)))&&(a16==8))&&!(a18==1))&&(a13==1))&&((((!(a13==1)||(((a3==1)||!(a12==1))&&(a17==2)))&&(a20==1))&&(a1==12))&&(a19==3)))){ + if((a27==1)){ + a9 = 11; + a19 = 5; + a27 = 0; + a3 = 1; + a4 = 0; + a21 = 10; + a5 = 4; + a20 = 0; + }else{ + a19 = 2; + a2 = 1; + a27 = 0; + a16 = 7; + a21 = 10; + a4 = 0; + a5 = 5; + a1 = 14; + a9 = 10; + } + return 21; + } else if(((!(a7==1)&&(((((input==5)&&((a5==4)||(a5==5)))&&(a16==10))&&(a20==1))&&!(a8==1)))&&((((((a1==14)&&((a19==4)&&(((a9==8)&&((a21==11)&&(a23==1)))&&(a17==2))))&&(a28==1))||(a24==1))||!(a2==1))||(a24==1)))){ + a2 = 1; + a19 = 3; + a11 = 1; + a1 = 12; + a21 = 10; + a5 = 4; + a9 = 10; + a23 = 1; + return -1; + } else if(((((a21==11)&&((((a3==1)&&(!(a28==1)||((a8==1)||(a13==1))))||(a7==1))&&(a16==11)))&&(a1==14))&&(((a20==1)&&((a13==1)&&((((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))&&(input==3))&&(a23==1))&&(a19==5))))&&(a17==2)))){ + a27 = 0; + a19 = 1; + a9 = 7; + a1 = 12; + a24 = 0; + a21 = 10; + a16 = 7; + a0 = 0; + a5 = 4; + return -1; + } else if(((((a11==1)&&((a1==12)&&((!(a0==1)&&((a17==2)&&((a19==5)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==4)))))&&(a21==11))))&&!(a27==1))&&((a24==1)||((a2==1)&&(!(a12==1)||((a16==8)&&(!(a20==1)&&(a2==1)))))))){ + a24 = 0; + a16 = 7; + a12 = 1; + a20 = 1; + a19 = 1; + a5 = 4; + a21 = 10; + a9 = 7; + a11 = 1; + return -1; + } else if((((!(a26==1)&&((a17==2)&&(((a6==1)&&(((input==6)&&(((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))))&&(a19==4)))&&!(a18==1))))&&!(a18==1))&&((a21==10)&&((a20==1)&&(((((a28==1)||(a8==1))&&(a1==12))&&(a16==10))||!(a12==1)))))){ + a7 = 0; + a5 = 4; + a4 = 0; + a19 = 1; + a9 = 7; + a16 = 7; + return -1; + } else if((((a1==14)&&(((((a17==2)&&(!(a26==1)&&((a19==2)&&((a16==11)&&(input==1)))))&&!(a4==1))&&(a5==4))&&(a9==9)))&&(!(a27==1)&&((((((a3==1)||(a24==1))&&(a12==1))&&(a21==10))&&(a20==1))&&(a6==1))))){ + a5 = 6; + a23 = 1; + a3 = 1; + a19 = 5; + a16 = 8; + a1 = 13; + a18 = 0; + a20 = 0; + a9 = 11; + return 23; + } else if((((a17==2)&&(((a16==8)&&((((a1==14)&&((a6==1)&&(((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5)))&&(input==6))))&&!(a27==1))&&(a19==1)))&&!(a27==1)))&&((a21==12)&&(((!(a27==1)&&((a20==1)&&(a12==1)))||(a18==1))&&(a12==1))))){ + a1 = 13; + a6 = 1; + a16 = 7; + a19 = 2; + a21 = 10; + a5 = 4; + a13 = 1; + a9 = 9; + return 25; + } else if(((!(a18==1)&&((((a16==8)&&(((input==6)&&(a21==12))&&(a9==9)))&&(a20==1))&&!(a4==1)))&&(!(a4==1)&&((a5==6)&&(!(a23==1)||(((((a17==2)&&((a1==12)&&(a28==1)))&&(a19==2))&&!(a26==1))||(a24==1))))))){ + a5 = 4; + a0 = 0; + a9 = 7; + a7 = 0; + a16 = 7; + a19 = 1; + a14 = 0; + a21 = 10; + return -1; + } else if((((!(a27==1)&&((a21==11)&&((a9==10)&&((a27==1)||(((a17==2)&&(a2==1))&&(a5==6))))))&&!(a0==1))&&(!(a8==1)&&((a20==1)&&((a16==10)&&(!(a14==1)&&(!(a14==1)&&((a1==12)&&((a19==5)&&(input==4)))))))))){ + a19 = 1; + a5 = 4; + a28 = 1; + a14 = 0; + a21 = 10; + a9 = 7; + a4 = 0; + a16 = 7; + return -1; + } else if(((((a5==5)&&(((a13==1)&&((a1==14)&&((a17==2)&&((a16==9)&&(input==3)))))&&!(a18==1)))&&(a9==9))&&((a12==1)&&((a21==10)&&((!(a6==1)||(((a7==1)||((a11==1)&&(a19==4)))&&(a20==1)))&&!(a27==1)))))){ + a13 = 1; + a1 = 12; + a16 = 7; + a5 = 4; + a19 = 1; + a23 = 1; + a9 = 7; + a6 = 1; + return -1; + } else if((((((!(a0==1)&&((a19==1)&&(a12==1)))||(a0==1))&&(a17==2))||!(a3==1))&&(((!(a8==1)&&((((((a16==10)&&((input==4)&&((a5==4)||(a5==5))))&&(a21==11))&&(a9==9))&&!(a20==1))&&(a1==12)))&&(a12==1))&&(a6==1)))){ + a20 = 1; + a22 = 1; + a2 = 0; + a21 = 10; + a9 = 10; + a1 = 14; + a16 = 7; + a5 = 4; + a13 = 0; + return 25; + } else if((((a27==1)&&(((a21==10)&&((a19==1)&&((a18==1)&&(!(a3==1)&&(a23==1)))))&&!(a13==1)))&&((a18==1)&&(((((((input==4)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(a16==8))&&(a1==14))&&(a17==2))&&(a20==1))&&!(a23==1))))){ + a16 = 7; + a4 = 1; + a5 = 5; + a9 = 10; + a6 = 0; + a11 = 0; + return -1; + } else if((((a1==14)&&(((!(a0==1)&&((input==3)&&((a5==4)||(a5==5))))&&(a21==11))&&(a12==1)))&&((a9==8)&&(((((a6==1)&&(!(a12==1)||((a20==1)&&((a11==1)&&((a6==1)&&(a6==1))))))&&(a16==7))&&(a19==1))&&(a17==2))))){ + a26 = 0; + a7 = 0; + a11 = 1; + a1 = 12; + a9 = 7; + a5 = 4; + a21 = 10; + return -1; + } else if((((a28==1)&&((((a13==1)&&(!(a27==1)&&(((a2==1)&&(a5==6))&&(a1==13))))&&(a19==5))||!(a12==1)))&&((a21==12)&&((((((a28==1)&&((a16==8)&&(input==6)))&&(a9==10))&&(a17==2))&&(a20==1))&&!(a27==1))))){ + a1 = 14; + a9 = 7; + a21 = 11; + a2 = 1; + a5 = 4; + return -1; + } else if(((((a16==10)&&((a5==4)&&(!(a2==1)||((a21==10)&&((!(a0==1)&&(a6==1))||(a26==1))))))&&(a9==7))&&((!(a20==1)&&((a19==5)&&(((!(a0==1)&&((a1==14)&&(input==4)))&&(a2==1))&&!(a18==1))))&&(a17==2)))){ + if((a12==1)){ + a15 = 0; + a21 = 11; + a19 = 4; + a6 = 0; + a3 = 0; + a9 = 8; + }else{ + a19 = 4; + a21 = 12; + a5 = 6; + a16 = 7; + a1 = 13; + a13 = 0; + a3 = 0; + } + return -1; + } else if(((((a16==9)&&(((a12==1)&&(((a19==5)&&((a6==1)&&!(a8==1)))&&(a9==9)))&&(a21==12)))&&!(a27==1))&&(((a11==1)&&(((a17==2)&&((!(a20==1)&&((input==6)&&((a5==4)||(a5==5))))&&!(a18==1)))&&(a1==12)))&&!(a4==1)))){ + a20 = 1; + a5 = 6; + a29 = 0; + a9 = 8; + a1 = 13; + a16 = 10; + a27 = 1; + return -1; + } else if((((a21==10)&&((a16==8)&&(((a1==12)&&(((a19==3)&&(input==6))&&(a17==2)))&&(a20==1))))&&(!(a18==1)&&((((((a18==1)||((a9==11)&&((a11==1)&&!(a24==1))))&&(a5==6))||(a18==1))&&(a12==1))&&(a2==1))))){ + a16 = 7; + a6 = 1; + a19 = 1; + a24 = 0; + a5 = 4; + a26 = 0; + a9 = 7; + return -1; + } else if(((((a2==1)&&((a6==1)&&((a17==2)&&((input==6)&&(((a21==10)&&((a19==1)&&((!(a20==1)&&((a9==7)&&((a1==12)&&(a5==4))))&&(a16==7))))||(((a21==12)&&(((((a9==11)&&((a1==14)&&(a5==5)))&&(a20==1))&&(a16==11))&&(a19==5)))||(((a19==5)&&((a16==11)&&((((a1==14)&&(a5==6))&&(a9==11))&&(a20==1))))&&(a21==12))))))))&&(a23==1))&&(((a26==1)||((a13==1)&&(a28==1)))&&!(a26==1)))){ + a23 = 1; + a20 = 0; + a19 = 1; + a8 = 0; + a16 = 7; + a21 = 10; + a18 = 0; + a9 = 9; + a5 = 6; + a1 = 14; + return 22; + } else if((((!(a20==1)&&((!(a0==1)&&(((a21==12)&&((a16==9)&&((a28==1)&&((input==6)&&(((a19==5)&&(((a5==5)&&(a1==12))&&(a9==7)))||(((a19==4)&&(((a5==6)&&(a1==14))&&(a9==11)))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==5))))))))&&!(a24==1)))&&!(a4==1)))&&(a23==1))&&(((a6==1)&&(a17==2))||(a27==1)))){ + if((a26==1)){ + a29 = 0; + a1 = 14; + a21 = 10; + a16 = 11; + a15 = 1; + a19 = 1; + a5 = 4; + a14 = 1; + a9 = 10; + }else{ + a21 = 10; + a14 = 1; + a12 = 0; + a22 = 1; + a1 = 12; + a5 = 6; + a20 = 1; + a19 = 2; + a16 = 7; + a9 = 7; + } + return -1; + } else if((((a17==2)&&(((((a6==1)&&((!(a13==1)||(a6==1))&&(a1==13)))&&!(a20==1))&&!(a0==1))||!(a12==1)))&&(((a16==8)&&((a21==12)&&(((a13==1)&&(((((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4)))&&(input==4)))&&!(a27==1))))&&(a19==3)))){ + if((a16==9)){ + a16 = 7; + a4 = 1; + a20 = 1; + a5 = 6; + a10 = 1; + a12 = 0; + a21 = 10; + a1 = 12; + a19 = 2; + a9 = 10; + }else{ + a9 = 7; + a29 = 0; + a5 = 5; + a16 = 7; + a18 = 1; + a12 = 0; + a21 = 10; + a1 = 14; + a20 = 1; + a19 = 1; + } + return -1; + } else if((((a0==1)||(!(a26==1)&&((a1==13)&&((a9==10)&&(!(a20==1)&&((a19==3)&&((((a3==1)||!(a23==1))&&!(a24==1))&&(a16==10))))))))&&(((((a17==2)&&(((a5==4)||(a5==5))&&(input==6)))&&(a21==12))&&(a3==1))&&!(a8==1)))){ + a19 = 1; + a5 = 4; + a20 = 1; + a21 = 11; + a18 = 1; + a12 = 0; + a16 = 7; + a10 = 1; + a9 = 7; + return 21; + } else if(((((((a17==2)&&((a28==1)||!(a23==1)))&&(a2==1))&&(a9==10))&&(a2==1))&&((a1==12)&&((a28==1)&&((((((a20==1)&&(!(a18==1)&&((input==1)&&((a5==4)||(a5==5)))))&&(a21==11))&&(a19==4))&&(a16==9))&&!(a24==1)))))){ + a14 = 0; + a3 = 1; + a16 = 7; + a21 = 10; + a11 = 1; + a19 = 2; + a5 = 4; + a1 = 13; + return 21; + } else if((((a17==2)&&(((a19==4)&&((a21==11)&&(((input==6)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5))))&&(a28==1))))&&(a13==1)))&&((((((((a2==1)&&(a13==1))||!(a13==1))&&!(a18==1))&&(a1==13))||!(a11==1))&&(a20==1))&&(a16==9)))){ + if((a6==1)){ + a28 = 1; + a1 = 12; + a9 = 8; + a3 = 1; + a5 = 5; + a2 = 1; + a20 = 0; + a16 = 8; + }else{ + a21 = 10; + a4 = 0; + a19 = 2; + a12 = 1; + a2 = 1; + a9 = 10; + a5 = 4; + a16 = 7; + } + return 21; + } else if((((a3==1)&&((a17==2)&&((!(a20==1)&&((((a16==8)&&((a12==1)&&(((input==1)&&((a5==5)||(a5==6)))&&!(a27==1))))&&(a9==7))&&!(a4==1)))&&(a19==4))))&&((a21==10)&&((a11==1)&&((a24==1)||((a23==1)&&(a1==13))))))){ + a19 = 1; + a1 = 12; + a23 = 1; + a16 = 7; + a5 = 4; + a20 = 1; + a2 = 1; + a12 = 1; + return -1; + } else if((((a16==10)&&(!(a8==1)&&((a11==1)&&((a17==2)&&(((a21==10)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4)))&&(a2==1))))))&&((a19==5)&&((a20==1)&&(!(a27==1)&&(!(a18==1)&&((((a9==10)&&(a23==1))||(a7==1))&&(a1==12)))))))){ + a9 = 9; + a6 = 1; + a16 = 9; + a19 = 1; + a1 = 13; + a5 = 4; + a3 = 1; + a13 = 1; + return -1; + } else if((((a1==13)&&((a3==1)&&((a17==2)&&(((a6==1)&&((input==1)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))))&&!(a20==1)))))&&((a21==12)&&((a16==7)&&((((a19==1)&&(((a28==1)&&!(a18==1))&&!(a8==1)))||!(a28==1))||!(a28==1)))))){ + a16 = 9; + a1 = 14; + a11 = 1; + a5 = 5; + a20 = 1; + a19 = 5; + a6 = 1; + a9 = 11; + a21 = 11; + return 21; + } else if(((!(a8==1)&&((a23==1)&&((!(a4==1)&&(!(a26==1)&&(((a1==12)&&(((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==5))&&!(a20==1)))&&(a17==2))))&&!(a8==1))))&&(((((a3==1)&&(a19==1))&&(a21==10))||!(a6==1))&&(a16==8)))){ + a4 = 0; + a6 = 1; + a20 = 1; + a16 = 7; + a9 = 7; + a13 = 1; + a5 = 4; + return -1; + } else if(((((a19==4)&&((a1==13)&&(((a5==6)&&((a6==1)&&((a12==1)&&!(a4==1))))||!(a12==1))))&&!(a8==1))&&((a23==1)&&((((a9==10)&&((((a16==7)&&(input==6))&&(a21==11))&&(a11==1)))&&(a17==2))&&(a20==1))))){ + a5 = 4; + a24 = 0; + a21 = 10; + a19 = 1; + a9 = 7; + a1 = 12; + a18 = 0; + a3 = 1; + return -1; + } else if(((((((a17==2)&&(a6==1))&&(a11==1))&&(a16==8))&&(a21==11))&&(((a1==12)&&((!(a20==1)&&((((((input==6)&&(((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))))&&(a3==1))&&!(a8==1))&&!(a14==1))&&(a6==1)))&&(a19==4)))&&!(a27==1)))){ + a19 = 5; + a11 = 1; + a12 = 1; + a21 = 12; + a20 = 1; + a0 = 0; + a5 = 5; + a9 = 10; + a1 = 13; + return -1; + } else if((((a17==2)&&(((a20==1)&&(((((!(a14==1)&&(!(a4==1)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==5))))&&!(a24==1))&&(a16==11))&&(a6==1))&&(a1==12)))&&(a23==1)))&&((a21==10)&&((a6==1)&&((a13==1)&&(a19==3)))))){ + a9 = 7; + a19 = 1; + a26 = 0; + a7 = 0; + a5 = 4; + a16 = 7; + return -1; + } else if(((((((a28==1)&&((((a14==1)||(!(a18==1)&&((a19==4)&&(a11==1))))&&(a1==12))&&!(a20==1)))||!(a11==1))&&(a16==10))&&(a2==1))&&((a21==11)&&((((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))&&(input==5))&&(a12==1))&&(a17==2))))){ + a1 = 13; + a9 = 10; + a5 = 6; + a16 = 11; + a21 = 10; + a19 = 2; + a8 = 1; + a12 = 0; + a6 = 0; + return -1; + } else if(((((!(a8==1)&&(((a19==5)&&((a16==10)&&((a21==11)&&(a28==1))))&&(a9==10)))||!(a11==1))&&!(a4==1))&&(((!(a20==1)&&(((a17==2)&&((a11==1)&&(((a5==5)||(a5==6))&&(input==6))))&&(a13==1)))&&(a1==14))&&(a11==1)))){ + a24 = 1; + a11 = 0; + a5 = 4; + a19 = 1; + a16 = 7; + a1 = 13; + a29 = 1; + return -1; + } else if((((a13==1)&&((a21==10)&&((((!(a20==1)&&(((a5==4)||(a5==5))&&(input==5)))&&(a16==7))&&(a19==4))&&(a17==2))))&&((a3==1)&&((((((a1==13)&&(!(a23==1)||(a2==1)))&&!(a26==1))&&(a9==10))&&!(a4==1))&&(a13==1))))){ + a5 = 4; + a19 = 1; + a1 = 12; + a9 = 7; + a26 = 0; + a20 = 1; + a7 = 0; + a11 = 1; + return -1; + } else if(((((a14==1)&&((a17==2)&&((a26==1)&&((a19==3)&&((((input==3)&&(((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))))&&(a21==11))&&(a0==1))))))&&(a18==1))&&((((a20==1)&&(((a23==1)&&(a1==12))&&(a16==11)))&&(a18==1))&&!(a28==1)))){ + a1 = 13; + a22 = 0; + a11 = 0; + a9 = 9; + a5 = 5; + a16 = 7; + a19 = 1; + a10 = 1; + a21 = 10; + return 21; + } else if(((((((a27==1)||((a21==12)&&(a3==1)))||!(a6==1))||!(a6==1))&&(a19==4))&&(!(a20==1)&&((a16==7)&&((a28==1)&&((a1==13)&&((a17==2)&&(((a6==1)&&(((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4)))&&(input==4)))&&!(a14==1))))))))){ + a1 = 12; + a21 = 10; + a5 = 4; + a19 = 1; + a9 = 7; + a8 = 0; + a20 = 1; + a28 = 1; + return -1; + } else if(((!(a20==1)&&(!(a6==1)&&(((a9==11)&&(((input==3)&&((a5==4)||(a5==5)))&&(a26==1)))&&!(a2==1))))&&((a17==2)&&((a1==13)&&((a21==10)&&(((!(a28==1)&&((a19==2)&&((a12==1)&&!(a3==1))))&&(a26==1))&&(a16==7))))))){ + a13 = 0; + a1 = 12; + a20 = 1; + a2 = 0; + a26 = 1; + a5 = 4; + return 25; + } else if((((a17==2)&&((!(a24==1)&&((a6==1)&&((a20==1)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==1)))))&&(a12==1)))&&((a1==14)&&((!(a2==1)||(((((a12==1)&&(a16==10))&&!(a24==1))||(a27==1))&&(a19==4)))&&(a21==10))))){ + a21 = 11; + a5 = 4; + a16 = 11; + a26 = 0; + a19 = 1; + a18 = 0; + a9 = 11; + a1 = 12; + a24 = 0; + return 22; + } else if(((((a1==12)&&((a9==11)&&((a17==2)&&((a19==3)&&(((a16==7)&&(a28==1))&&!(a20==1))))))||!(a12==1))&&((a28==1)&&(((a3==1)&&((a13==1)&&(((a2==1)&&((a5==6)&&(input==6)))&&(a21==10))))&&!(a4==1))))){ + a19 = 4; + a20 = 1; + a21 = 12; + a28 = 1; + a16 = 10; + a7 = 0; + a1 = 13; + a6 = 1; + return 25; + } else if(((((a13==1)&&(((a5==6)&&((((a28==1)&&!(a8==1))&&(a11==1))&&(a9==8)))&&(a12==1)))||(a7==1))&&((a21==12)&&((a17==2)&&((a19==5)&&((a16==7)&&((a1==13)&&(!(a14==1)&&((a20==1)&&(input==1)))))))))){ + a8 = 0; + a19 = 1; + a21 = 10; + a1 = 12; + a26 = 0; + a6 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if((((a23==1)&&((a1==12)&&((!(a4==1)&&(((a6==1)&&(((a16==7)&&(a28==1))&&!(a18==1)))&&!(a20==1)))&&(a17==2))))&&((a9==8)&&((a19==3)&&((a21==11)&&((((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&!(a4==1))&&(a2==1))))))){ + a23 = 1; + a26 = 0; + a19 = 1; + a21 = 10; + a5 = 4; + a20 = 1; + a9 = 7; + a0 = 0; + return -1; + } else if((((a19==5)&&(((a9==8)&&(((a21==10)&&((a28==1)&&(a17==2)))&&(a16==11)))&&(a1==12)))&&((((a6==1)&&((((a12==1)&&((a11==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6))))&&!(a4==1))&&(a20==1)))&&(a12==1))&&(a2==1)))){ + a9 = 7; + a19 = 1; + a28 = 1; + a5 = 4; + a16 = 7; + a7 = 0; + return -1; + } else if((((a17==2)&&(((a9==8)&&(((!(a6==1)||(((a7==1)||((a19==1)&&((a16==9)&&((a26==1)||(a6==1)))))&&!(a18==1)))&&(a1==13))&&(a28==1)))&&(a20==1)))&&((((input==4)&&(a5==6))&&(a28==1))&&(a21==10)))){ + a16 = 7; + a19 = 2; + a9 = 7; + a0 = 0; + a11 = 1; + return -1; + } else if(((((a1==13)&&((((((input==3)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9))))&&(a3==1))&&(a28==1))&&(a21==12))&&(a19==4)))&&(a28==1))&&(((!(a28==1)||((a16==8)&&((a20==1)&&((a3==1)&&!(a24==1)))))&&(a17==2))&&(a2==1)))){ + a19 = 1; + a21 = 10; + a5 = 4; + a28 = 1; + a18 = 0; + a1 = 12; + a23 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if(((!(a8==1)&&(((((a21==12)&&(((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4)))&&(input==5)))&&!(a26==1))&&(a1==14))&&(a6==1)))&&((a11==1)&&((a17==2)&&((a19==1)&&(((a20==1)&&((a2==1)&&((a16==7)&&(a11==1))))||!(a6==1))))))){ + a12 = 1; + a9 = 7; + a5 = 4; + a0 = 0; + a18 = 0; + a21 = 10; + a1 = 12; + return -1; + } else if((((((a18==1)||((a27==1)||((a1==12)&&((a20==1)&&((a21==11)&&(((a16==8)&&(a3==1))&&(a19==1)))))))||(a4==1))||!(a6==1))&&(!(a27==1)&&(((a9==11)&&((a17==2)&&((input==1)&&(a5==4))))&&!(a27==1))))){ + a21 = 10; + a23 = 1; + a16 = 7; + a24 = 0; + a26 = 0; + a9 = 7; + return -1; + } else if(((!(a18==1)&&(((a23==1)&&((((a14==1)||((a21==10)&&(a3==1)))&&(a19==3))&&!(a7==1)))&&!(a27==1)))&&((a16==11)&&((a1==12)&&(((((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==3))&&!(a20==1))&&(a17==2))&&!(a14==1)))))){ + a16 = 7; + a10 = 0; + a6 = 0; + a4 = 1; + a20 = 1; + a19 = 1; + a9 = 9; + a5 = 4; + a1 = 13; + return -1; + } else if((((a16==9)&&(((a17==2)&&((!(a8==1)&&((((a5==5)||(a5==6))&&(input==3))&&!(a27==1)))&&!(a24==1)))&&(a19==5)))&&(((a1==12)&&((a9==8)&&(((((a24==1)||(a13==1))&&!(a20==1))&&!(a26==1))&&!(a7==1))))&&(a21==12)))){ + if((a3==1)){ + a16 = 11; + a19 = 1; + a14 = 1; + a9 = 9; + a20 = 1; + a21 = 11; + a5 = 5; + a25 = 1; + a10 = 0; + }else{ + a5 = 5; + a21 = 10; + a16 = 7; + a27 = 1; + a19 = 1; + a10 = 1; + a13 = 0; + a1 = 14; + a20 = 1; + a9 = 10; + } + return -1; + } else if((((a16==11)&&(((a21==10)&&((a5==6)&&(((a2==1)&&((input==1)&&(a9==11)))&&(a17==2))))&&(a20==1)))&&((((a23==1)&&(!(a11==1)||((a19==5)&&((a4==1)||(!(a8==1)&&(a23==1))))))&&(a23==1))&&(a1==12)))){ + a16 = 7; + a24 = 0; + a9 = 7; + a26 = 0; + a18 = 0; + a5 = 4; + a19 = 1; + return -1; + } else if(((((!(a12==1)||((((a2==1)&&(a1==12))&&(a23==1))||!(a6==1)))&&(a19==4))&&(a21==10))&&((((a28==1)&&((a3==1)&&((a5==6)&&((a9==10)&&((!(a20==1)&&(input==6))&&(a17==2))))))&&!(a18==1))&&(a16==9)))){ + if((a25==1)){ + a4 = 1; + a16 = 7; + a9 = 8; + a20 = 1; + a19 = 1; + a22 = 1; + a1 = 14; + a2 = 0; + }else{ + a20 = 1; + a16 = 7; + a10 = 1; + a5 = 4; + a9 = 9; + a23 = 0; + a19 = 1; + } + return 26; + } return calculate_output58(input); + } + + int calculate_output58(int input) { + if((((a17==2)&&(((a20==1)&&(!(a14==1)&&((a12==1)&&((((input==1)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9))))&&(a21==12))&&(a11==1)))))&&!(a26==1)))&&((a16==10)&&(((!(a13==1)||((a28==1)&&(a1==13)))&&(a13==1))&&(a19==3))))){ + a1 = 12; + a3 = 1; + a9 = 7; + a5 = 4; + a21 = 10; + a27 = 0; + a19 = 1; + a23 = 1; + a16 = 7; + return -1; + } else if(((!(a3==1)||((a19==2)&&((a21==12)&&((a17==2)&&((a27==1)||(a11==1))))))&&((a1==13)&&((!(a24==1)&&(((((!(a18==1)&&((input==3)&&((a5==4)||(a5==5))))&&!(a20==1))&&(a16==7))&&!(a18==1))&&!(a24==1)))&&(a9==10))))){ + a20 = 1; + a1 = 12; + a21 = 10; + a9 = 7; + a18 = 0; + a28 = 1; + a5 = 4; + a19 = 1; + a6 = 1; + return -1; + } else if((((((!(a0==1)&&((((a9==7)&&((a5==5)&&(a1==13)))||(((a9==11)&&((a5==6)&&(a1==12)))||((a9==7)&&((a1==13)&&(a5==4)))))&&(input==5)))&&!(a20==1))&&!(a26==1))&&(a17==2))&&((a7==1)||(!(a6==1)||((a16==7)&&((((!(a14==1)&&(a23==1))||(a18==1))&&(a19==3))&&(a21==11))))))){ + a20 = 1; + a18 = 0; + a19 = 2; + a7 = 0; + a9 = 9; + a1 = 13; + a5 = 4; + a21 = 10; + return 25; + } else if((((((a20==1)&&(!(a14==1)&&((!(a26==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))&&(a16==9))))&&(a13==1))&&(a11==1))&&(!(a8==1)&&(((a17==2)&&((a19==1)&&((((a12==1)&&(a1==14))&&(a21==12))&&(a28==1))))&&(a9==10))))){ + a9 = 7; + a5 = 4; + a21 = 10; + a1 = 12; + a0 = 0; + a16 = 7; + a14 = 0; + return -1; + } else if((((a19==1)&&(((a24==1)||((a6==1)&&(!(a2==1)||(a3==1))))&&(a17==2)))&&(((a11==1)&&((a21==11)&&((a23==1)&&((a20==1)&&((a2==1)&&((input==4)&&(((((a1==12)&&(a5==5))&&(a9==11))||(((a5==6)&&(a1==12))&&(a9==11)))||(((a1==13)&&(a5==4))&&(a9==7)))))))))&&(a16==9)))){ + a3 = 1; + a1 = 12; + a9 = 7; + a21 = 10; + a24 = 0; + a16 = 7; + a5 = 4; + a12 = 1; + return -1; + } else if((((!(a14==1)&&(((a16==8)&&((a20==1)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==4))))&&(a17==2)))&&!(a24==1))&&(!(a24==1)&&((a13==1)&&((((a0==1)||((a1==13)&&((a2==1)||!(a28==1))))&&(a21==10))&&(a19==3)))))){ + a23 = 1; + a9 = 7; + a19 = 1; + a1 = 12; + a14 = 0; + a5 = 4; + a16 = 7; + return -1; + } else if((((a17==2)&&((a6==1)&&((((a21==12)&&(a28==1))&&(a28==1))||!(a28==1))))&&((a12==1)&&(((a9==8)&&((a20==1)&&(((a16==11)&&(((a28==1)&&((input==4)&&((a5==4)||(a5==5))))&&(a19==1)))&&!(a24==1))))&&(a1==14))))){ + a5 = 4; + a16 = 7; + a8 = 0; + a6 = 1; + a21 = 10; + a1 = 12; + a28 = 1; + a9 = 7; + return -1; + } else if((((!(a0==1)&&(((a16==10)&&(((((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(input==5))&&!(a18==1)))&&(a1==12)))&&!(a27==1))&&((a26==1)||(!(a18==1)&&((a19==5)&&((((a2==1)&&((a28==1)&&(a21==11)))&&(a20==1))&&(a17==2))))))){ + a26 = 0; + a9 = 10; + a21 = 10; + a5 = 6; + a2 = 1; + a19 = 1; + a28 = 1; + return 21; + } else if(((((((((!(a26==1)&&((a16==7)&&(((((a9==7)&&((a1==14)&&(a5==4)))||((((a1==13)&&(a5==5))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==13)))))&&(input==1))&&(a17==2))))&&!(a20==1))&&(a19==1))&&(a6==1))&&!(a8==1))&&!(a14==1))&&(a28==1))&&(((a13==1)&&(a21==10))||(a8==1)))){ + a9 = 7; + a26 = 0; + a1 = 12; + a5 = 4; + a23 = 1; + a20 = 1; + a14 = 0; + return -1; + } else if((((!(a18==1)&&(((((((a21==12)&&(input==4))&&(a19==5))&&!(a18==1))&&(a20==1))&&(a1==13))&&!(a8==1)))&&(a5==5))&&(!(a7==1)&&((a2==1)&&((a17==2)&&((((a3==1)&&(a16==7))&&(a9==8))&&!(a14==1))))))){ + a1 = 12; + a18 = 0; + a5 = 4; + a26 = 0; + a9 = 7; + a8 = 0; + a21 = 10; + a19 = 1; + return -1; + } else if(((!(a28==1)&&((a17==2)&&((!(a23==1)&&(((!(a23==1)&&((input==6)&&(a1==12)))&&(a19==5))&&(a21==10)))&&(a9==9))))&&(!(a23==1)&&(((a5==4)&&(!(a11==1)&&((a16==8)&&((a20==1)&&(a3==1)))))&&!(a12==1))))){ + a5 = 5; + a19 = 1; + a16 = 7; + a9 = 10; + a4 = 1; + a22 = 1; + a29 = 1; + return -1; + } else if(((!(a12==1)&&(((!(a12==1)&&((a20==1)&&(!(a3==1)&&((input==4)&&(((a19==5)&&(((a1==12)&&(a5==5))&&(a9==7)))||(((a19==4)&&(((a5==6)&&(a1==14))&&(a9==11)))||((a19==5)&&((a9==7)&&((a1==12)&&(a5==4))))))))))&&(a21==12))&&(a17==2)))&&(!(a23==1)&&((((a12==1)&&(a24==1))&&(a0==1))&&(a16==7))))){ + a1 = 14; + a19 = 1; + a28 = 0; + a5 = 4; + a9 = 7; + a23 = 0; + a21 = 10; + a10 = 1; + return -1; + } else if((((a21==12)&&((!(a27==1)&&((a16==7)&&(((input==4)&&(a5==4))&&(a20==1))))&&(a17==2)))&&((((a19==2)&&(((a23==1)&&(((a1==13)&&((a3==1)&&!(a18==1)))&&(a12==1)))&&!(a4==1)))&&(a9==9))||!(a23==1)))){ + a18 = 0; + a3 = 1; + a19 = 1; + a1 = 12; + a13 = 1; + a21 = 10; + a9 = 7; + return -1; + } else if((((((a9==11)&&(((((((a21==12)&&(input==5))&&(a19==2))&&(a5==5))&&(a23==1))&&(a3==1))&&(a12==1)))&&(a1==13))&&(a20==1))&&(((a27==1)||((a2==1)&&(((a17==2)&&(a13==1))||(a8==1))))&&(a16==9)))){ + a21 = 10; + a6 = 1; + a19 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + a1 = 12; + return -1; + } else if((((((((a23==1)&&((a28==1)||!(a2==1)))&&(a16==9))&&(a21==12))&&(a2==1))&&(a17==2))&&((((a20==1)&&(!(a27==1)&&((a1==12)&&((a19==4)&&((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))&&(input==5))))))&&!(a7==1))&&(a2==1)))){ + a16 = 7; + a5 = 4; + a26 = 0; + a21 = 10; + a12 = 1; + a3 = 1; + a19 = 1; + a9 = 7; + return -1; + } else if((((a16==9)&&(!(a27==1)&&((((a4==1)||(((a1==12)&&(a3==1))||!(a28==1)))&&(a19==5))&&(a17==2))))&&((a21==11)&&((a6==1)&&(((((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a2==1))&&(a9==8))&&!(a20==1))&&!(a7==1)))))){ + a5 = 5; + a14 = 1; + a7 = 1; + a21 = 12; + a9 = 9; + a19 = 4; + a20 = 1; + a16 = 7; + a8 = 1; + return -1; + } else if((((((a17==2)&&((!(a24==1)&&((a28==1)&&(((input==5)&&(((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))))&&(a21==11))))&&(a1==13)))&&!(a20==1))&&(a13==1))&&(!(a0==1)&&((a19==3)&&(!(a26==1)&&(((a3==1)||(a14==1))&&(a16==7))))))){ + a13 = 1; + a26 = 0; + a9 = 7; + a2 = 1; + a20 = 1; + a5 = 4; + a19 = 1; + a21 = 10; + a1 = 12; + return -1; + } else if((((((a13==1)&&((a6==1)&&(((a16==8)&&((a12==1)&&((input==4)&&(a1==14))))&&(a9==10))))&&!(a0==1))&&(a21==11))&&(!(a26==1)&&(((a23==1)&&(((a17==2)&&((a23==1)&&(a5==5)))&&(a20==1)))&&(a19==2))))){ + a28 = 1; + a12 = 1; + a5 = 4; + a19 = 1; + a6 = 1; + return -1; + } else if((((a9==10)&&(((a20==1)&&(!(a28==1)||(((a12==1)&&!(a18==1))||!(a28==1))))&&(a21==11)))&&((a17==2)&&(((a16==10)&&(((a23==1)&&((a2==1)&&((((a5==5)||(a5==6))&&(input==6))&&(a23==1))))&&(a1==13)))&&(a19==3))))){ + a24 = 0; + a21 = 10; + a19 = 1; + a9 = 7; + a16 = 7; + a1 = 12; + a7 = 0; + a5 = 4; + a28 = 1; + return -1; + } else if((((a16==8)&&((a23==1)&&((a17==2)&&((a12==1)&&((input==4)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))))))&&((a21==10)&&((!(a28==1)||(!(a7==1)&&((a19==1)&&((((a1==14)&&(a11==1))&&!(a0==1))&&(a20==1)))))&&(a3==1))))){ + a24 = 0; + a16 = 7; + a5 = 4; + a1 = 12; + a11 = 1; + a28 = 1; + a9 = 7; + return -1; + } else if((((a21==12)&&((a5==4)&&((a19==1)&&(((a11==1)&&((!(a26==1)&&(((input==1)&&(a16==8))&&(a20==1)))&&(a3==1)))&&(a1==12)))))&&((a28==1)&&((((a9==7)&&((a13==1)||(a8==1)))||(a18==1))&&(a17==2))))){ + a19 = 4; + a2 = 1; + a21 = 11; + a27 = 0; + a5 = 6; + a9 = 11; + a16 = 10; + a24 = 0; + return 25; + } else if((((a23==1)&&(!(a0==1)&&((((a23==1)&&(((((((a5==6)&&(a1==13))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==14))))&&(input==1))&&!(a24==1))&&(a19==2)))&&!(a24==1))&&!(a20==1))))&&(((((a23==1)&&(a16==7))&&(a21==10))&&(a17==2))||!(a6==1)))){ + a23 = 1; + a20 = 1; + a1 = 12; + a19 = 1; + a28 = 1; + a9 = 7; + a0 = 0; + a5 = 4; + return -1; + } else if((((((!(a4==1)&&(((a19==5)&&((input==6)&&(a1==14)))&&(a21==12)))&&(a11==1))&&(a12==1))&&(a20==1))&&(((!(a23==1)||(!(a13==1)||((a8==1)||((a17==2)&&((a2==1)&&(a5==4))))))&&(a16==8))&&(a9==8)))){ + a16 = 7; + a9 = 7; + a27 = 0; + a4 = 0; + a19 = 1; + a1 = 12; + a26 = 0; + a21 = 10; + return -1; + } else if((((!(a27==1)&&((a19==3)&&((((a5==5)||(a5==6))&&(input==3))&&(a1==12))))&&(a21==12))&&((a9==8)&&(((a16==10)&&(((a18==1)||(((a17==2)&&(((a13==1)&&(a23==1))||(a7==1)))||(a18==1)))&&!(a20==1)))||(a26==1))))){ + a5 = 5; + a3 = 0; + a21 = 11; + a16 = 7; + a9 = 9; + a25 = 0; + a28 = 0; + a1 = 13; + return -1; + } else if((((((a9==9)&&(!(a11==1)||((a23==1)&&(((a19==4)&&((a0==1)||((a24==1)||(a3==1))))&&(a16==9)))))&&(a21==12))&&(a5==4))&&(((a20==1)&&(((a28==1)&&((a17==2)&&(input==5)))&&!(a24==1)))&&(a1==14)))){ + a21 = 10; + a1 = 12; + a16 = 7; + a7 = 0; + a19 = 1; + a9 = 7; + a4 = 0; + a13 = 1; + return -1; + } else if(((!(a24==1)&&((((a17==2)&&(((a23==1)&&((((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&(input==6)))&&(a13==1)))&&!(a4==1))&&(a1==14)))&&(!(a20==1)&&((a21==11)&&(((((a23==1)&&(a28==1))&&(a19==3))||!(a28==1))&&(a16==10)))))){ + a19 = 2; + a20 = 1; + a9 = 8; + a3 = 0; + a25 = 0; + a21 = 10; + a5 = 4; + a1 = 12; + a16 = 7; + a28 = 0; + return -1; + } else if((((((a3==1)&&((a16==9)&&(!(a13==1)||(a12==1))))||(a4==1))&&!(a8==1))&&(((a17==2)&&(((a19==4)&&(((a20==1)&&((a1==14)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&(a9==8))))&&(a21==11)))&&!(a4==1)))&&!(a8==1)))){ + a26 = 0; + a16 = 7; + a21 = 10; + a5 = 4; + a9 = 7; + a19 = 1; + a1 = 12; + a18 = 0; + a0 = 0; + return -1; + } else if((((a9==8)&&(((!(a26==1)&&(((((a5==5)||(a5==6))&&(input==3))&&(a21==12))&&!(a20==1)))&&(a19==1))&&(a1==14)))&&((!(a4==1)&&((a17==2)&&((!(a28==1)||((!(a28==1)||(a11==1))||!(a12==1)))||(a18==1))))&&(a16==9)))){ + a21 = 10; + a8 = 1; + a7 = 1; + a11 = 0; + a1 = 12; + a9 = 7; + a5 = 5; + a20 = 1; + return 25; + } else if(((!(a8==1)&&(((a1==12)&&(!(a20==1)&&((!(a18==1)&&((input==6)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))))&&(a17==2))))&&(a16==7)))&&((!(a24==1)&&((a28==1)&&(!(a23==1)||((a21==12)&&((a11==1)&&(a19==5))))))&&(a23==1)))){ + a19 = 2; + a5 = 6; + a9 = 10; + a20 = 1; + a1 = 13; + a4 = 0; + a6 = 1; + a2 = 1; + a21 = 10; + return 25; + } else if((((a9==8)&&((a16==7)&&((!(a20==1)&&(!(a8==1)&&(!(a3==1)||(((a0==1)||(a12==1))&&(a17==2)))))&&(a21==12))))&&((a19==4)&&(((!(a27==1)&&(((input==5)&&((a5==4)||(a5==5)))&&!(a7==1)))&&(a1==13))&&!(a4==1))))){ + a13 = 1; + a1 = 12; + a21 = 10; + a20 = 1; + a3 = 1; + a9 = 7; + a19 = 1; + a5 = 4; + return -1; + } else if(((!(a12==1)||(((a1==13)&&((a13==1)||(a18==1)))||(a8==1)))&&(((a17==2)&&((a16==8)&&(((!(a4==1)&&((((input==4)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&!(a20==1))&&(a19==5)))&&(a2==1))&&(a11==1))))&&(a21==11)))){ + a13 = 0; + a26 = 1; + a20 = 1; + a19 = 1; + a25 = 0; + a21 = 10; + a1 = 12; + a5 = 5; + a16 = 7; + a9 = 7; + return -1; + } else if((((((a21==12)&&((a1==13)&&(!(a13==1)||(!(a23==1)||((a6==1)&&((a20==1)&&((a4==1)||(a3==1))))))))||(a4==1))&&(a16==7))&&(((a9==8)&&((((a17==2)&&(input==3))&&(a19==1))&&!(a24==1)))&&(a5==4)))){ + a19 = 5; + a9 = 7; + a16 = 8; + a1 = 14; + a3 = 1; + a5 = 5; + a6 = 1; + a11 = 1; + return 22; + } else if(((((((a9==10)&&((a19==1)&&(!(a0==1)&&(a28==1))))&&(a21==12))&&(a17==2))&&(a11==1))&&((((a11==1)&&(((((a11==1)&&(((a5==5)||(a5==6))&&(input==6)))&&(a1==13))&&(a20==1))&&(a16==9)))&&!(a0==1))&&!(a14==1)))){ + a13 = 1; + a27 = 0; + a21 = 10; + a5 = 4; + a24 = 0; + a16 = 7; + a1 = 12; + a9 = 7; + return -1; + } else if(((((((a21==11)&&((!(a27==1)&&(!(a26==1)&&(((((a1==13)&&(a5==5))&&(a9==7))||(((a9==11)&&((a5==6)&&(a1==12)))||((a9==7)&&((a1==13)&&(a5==4)))))&&(input==1))))&&(a17==2)))&&(a28==1))&&(a11==1))&&(a6==1))&&((a19==4)&&((((a24==1)||(a13==1))&&(a16==10))&&!(a20==1))))){ + a16 = 11; + a9 = 8; + a5 = 6; + a26 = 1; + a19 = 5; + a7 = 1; + a20 = 1; + a1 = 13; + a25 = 0; + return -1; + } else if(((((((a11==1)&&((a6==1)&&((a19==4)&&(a2==1))))&&(a20==1))||!(a12==1))&&(a28==1))&&(!(a7==1)&&(((a16==10)&&((a17==2)&&((((input==3)&&(((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))))&&!(a14==1))&&(a1==14))))&&(a21==11))))){ + a9 = 7; + a21 = 10; + a1 = 12; + a5 = 4; + a19 = 1; + a23 = 1; + a18 = 0; + a16 = 7; + return -1; + } else if(((((a21==12)&&((((input==1)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&!(a18==1))&&(a19==2)))&&(a6==1))&&(((a16==8)&&(((a3==1)&&(!(a28==1)||((((a28==1)||!(a23==1))&&(a2==1))&&!(a20==1))))&&(a17==2)))&&(a1==13)))){ + a9 = 10; + a26 = 1; + a1 = 14; + a4 = 1; + a19 = 5; + a5 = 5; + a16 = 10; + a18 = 1; + return -1; + } else if((((a13==1)&&((a23==1)&&((a21==10)&&(!(a27==1)&&(((a5==5)&&((input==3)&&(a1==13)))&&(a17==2))))))&&((!(a0==1)&&((((((a23==1)&&(a9==11))&&(a16==7))&&(a20==1))&&(a19==2))&&!(a8==1)))&&!(a27==1)))){ + a28 = 1; + a1 = 14; + a19 = 3; + a26 = 0; + a9 = 10; + a23 = 1; + a5 = 6; + return 21; + } else if((((a19==3)&&((a5==5)&&((((((a3==1)&&(a17==2))&&!(a27==1))&&!(a18==1))&&(a1==13))&&!(a24==1))))&&((!(a20==1)&&((((a16==9)&&(((a9==9)&&(input==1))&&(a28==1)))&&!(a14==1))&&!(a4==1)))&&(a21==11)))){ + a1 = 12; + a15 = 0; + a18 = 1; + a21 = 10; + a16 = 7; + a19 = 2; + a20 = 1; + a29 = 1; + return -1; + } else if((((((((a5==6)&&((a12==1)&&((input==6)&&(a20==1))))&&(a9==8))&&!(a7==1))&&!(a18==1))&&(a1==12))&&((a17==2)&&((a0==1)||((a19==4)&&(((a21==10)&&(((a11==1)||(a4==1))&&(a16==9)))&&!(a7==1))))))){ + a26 = 0; + a19 = 1; + a18 = 0; + a24 = 0; + a9 = 10; + a16 = 10; + return 21; + } else if((((!(a7==1)&&((a20==1)&&(((a28==1)&&(((a1==14)&&(input==5))&&!(a26==1)))&&(a16==10))))&&(a19==1))&&((a17==2)&&(((a21==12)&&(((!(a6==1)||((a2==1)&&(a28==1)))&&(a9==11))&&(a12==1)))&&(a5==4))))){ + a1 = 13; + a3 = 1; + a18 = 0; + a9 = 9; + a11 = 1; + a16 = 7; + a5 = 5; + a19 = 2; + a21 = 10; + return -1; + } else if(((!(a14==1)&&(((((a28==1)&&((a9==11)&&((a17==2)&&((a16==8)&&((a11==1)&&((input==1)&&(a1==13)))))))&&(a5==6))&&!(a27==1))&&(a13==1)))&&(((a21==10)&&(!(a20==1)&&((a19==5)&&(a23==1))))&&!(a0==1)))){ + a9 = 10; + a27 = 0; + a28 = 1; + a5 = 5; + a1 = 14; + a4 = 0; + a19 = 2; + a21 = 11; + a20 = 1; + a16 = 9; + return 21; + } else if((((a11==1)&&(((a1==12)&&(!(a8==1)&&(((a5==4)||(a5==5))&&(input==6))))&&(a19==4)))&&(!(a18==1)&&((a13==1)&&((a16==8)&&(((((a18==1)||((a12==1)&&((a17==2)&&(a6==1))))&&(a9==10))&&(a21==12))&&(a20==1))))))){ + a11 = 1; + a5 = 4; + a16 = 7; + a19 = 1; + a7 = 0; + a21 = 10; + a9 = 7; + return -1; + } else if(((((((a1==14)&&((((a5==6)&&((a23==1)&&((input==4)&&(a16==9))))&&(a23==1))&&(a21==10)))&&(a9==11))&&(a2==1))&&(a19==5))&&((!(a3==1)||((!(a6==1)||(!(a2==1)||(a28==1)))&&(a17==2)))&&(a20==1)))){ + a20 = 0; + a4 = 0; + a1 = 13; + a16 = 8; + a28 = 1; + a5 = 4; + a13 = 1; + a19 = 1; + a21 = 11; + a9 = 10; + return 25; + } else if(((!(a14==1)&&(!(a14==1)&&(((a16==7)&&((((a20==1)&&((a19==3)&&(((a21==11)&&(input==5))&&(a5==5))))&&(a1==13))&&(a17==2)))&&!(a7==1))))&&(((a9==8)&&(((a2==1)||!(a3==1))||!(a3==1)))||!(a12==1)))){ + a19 = 5; + a1 = 14; + a21 = 10; + a14 = 0; + a28 = 1; + a27 = 0; + a9 = 11; + a16 = 8; + return 25; + } else if((((a20==1)&&(((a21==12)&&((!(a8==1)&&(!(a24==1)&&(!(a14==1)&&(!(a27==1)&&((input==4)&&(a17==2))))))&&(a1==13)))&&(a5==4)))&&((((((a3==1)&&(a6==1))&&(a13==1))&&(a19==5))&&(a9==7))&&(a16==7)))){ + a19 = 4; + a28 = 1; + a16 = 9; + a1 = 14; + a21 = 11; + a9 = 8; + a4 = 0; + a7 = 0; + return 23; + } else if((((((a24==1)&&((((a4==1)&&((a9==9)&&((a13==1)&&(a20==1))))&&!(a13==1))&&(a19==1)))&&(a21==12))&&!(a23==1))&&((a0==1)&&((a16==8)&&(!(a2==1)&&((a1==13)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a17==2)))))))){ + a10 = 0; + a21 = 10; + a14 = 1; + a4 = 1; + a16 = 7; + a1 = 14; + a5 = 4; + return 22; + } else if((((a11==1)&&((a1==14)&&(((a12==1)&&(((((a23==1)&&(a16==8))&&(a17==2))&&!(a20==1))||(a26==1)))&&(a23==1))))&&(((a19==2)&&(((((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))&&(input==5))&&!(a26==1))&&(a21==10)))&&(a2==1)))){ + if((a5==4)){ + a9 = 10; + a5 = 5; + a13 = 1; + a14 = 0; + a11 = 1; + }else{ + a14 = 0; + a12 = 1; + a9 = 11; + a20 = 1; + a16 = 7; + a6 = 1; + a5 = 4; + a1 = 13; + } + return 23; + } else if((((a17==2)&&((((a19==5)&&((!(a8==1)&&((input==5)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))&&(a1==14)))&&(a11==1))&&(a13==1)))&&(((a6==1)&&(((((a2==1)&&(a21==12))&&!(a7==1))&&(a20==1))||!(a12==1)))&&(a16==7)))){ + a8 = 0; + a14 = 0; + a1 = 12; + a11 = 1; + a9 = 9; + a19 = 1; + a16 = 9; + a5 = 4; + return 26; + } else if((((!(a7==1)&&(((a11==1)&&(a19==1))||!(a13==1)))&&(a13==1))&&((a21==10)&&(((a9==7)&&((a11==1)&&((a1==14)&&(!(a0==1)&&((a20==1)&&((((input==1)&&((a5==5)||(a5==6)))&&(a17==2))&&(a16==10)))))))&&(a13==1))))){ + a13 = 1; + a5 = 6; + a19 = 2; + a7 = 0; + a27 = 0; + return 21; + } else if(((((((!(a13==1)||((a21==11)&&((((a1==13)&&(a12==1))&&!(a20==1))||(a27==1))))&&(a11==1))&&(a16==10))&&(a17==2))||!(a2==1))&&((a11==1)&&(!(a7==1)&&((((input==1)&&((a5==4)||(a5==5)))&&(a9==10))&&(a19==3)))))){ + if((a28==1)){ + a15 = 0; + a19 = 2; + a20 = 1; + a5 = 6; + a16 = 7; + a10 = 1; + a3 = 0; + a21 = 10; + a1 = 12; + a9 = 11; + }else{ + a23 = 0; + a9 = 11; + a14 = 1; + a24 = 1; + a16 = 11; + a19 = 2; + a21 = 12; + a5 = 6; + a20 = 1; + a1 = 14; + } + return -1; + } else if((((((!(a28==1)||((((a16==9)&&(a2==1))&&!(a14==1))&&(a21==11)))&&!(a18==1))&&(a17==2))||(a18==1))&&((a9==7)&&((((a19==5)&&((a6==1)&&(!(a20==1)&&((input==1)&&(a1==14)))))&&(a5==4))&&!(a24==1))))){ + if((a0==1)){ + a29 = 0; + a20 = 1; + a5 = 6; + a16 = 7; + a15 = 1; + a21 = 10; + a1 = 13; + a19 = 1; + a10 = 0; + }else{ + a1 = 12; + a21 = 10; + a19 = 1; + a29 = 1; + a16 = 7; + a6 = 0; + a5 = 5; + a20 = 1; + a9 = 11; + a25 = 1; + } + return -1; + } else if((((a1==13)&&((a17==2)&&((!(a2==1)||(a23==1))&&!(a0==1))))&&((((a6==1)&&((a12==1)&&((a19==5)&&((a28==1)&&(!(a20==1)&&(!(a24==1)&&((input==4)&&((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4))))))))))&&(a21==11))&&(a16==10)))){ + a19 = 3; + a25 = 0; + a1 = 12; + a9 = 11; + a16 = 11; + a15 = 0; + a5 = 5; + a20 = 1; + return -1; + } else if(((!(a24==1)&&(((a21==11)&&((!(a14==1)&&(((input==5)&&((((a5==5)&&(a1==14))&&(a9==7))||(((a9==11)&&((a5==6)&&(a1==13)))||(((a1==14)&&(a5==4))&&(a9==7)))))&&(a11==1)))&&(a19==3)))&&!(a18==1)))&&((((!(a20==1)&&((a13==1)||(a8==1)))||!(a2==1))&&(a16==8))&&(a17==2)))){ + a4 = 0; + a20 = 1; + a13 = 1; + a26 = 0; + a9 = 7; + a19 = 1; + a5 = 4; + a1 = 12; + a21 = 10; + a16 = 7; + return -1; + } else if((((a19==4)&&((a9==11)&&((((a28==1)||(a26==1))&&(a21==10))&&(a2==1))))&&((a16==7)&&((a17==2)&&(!(a27==1)&&((((a2==1)&&((a1==12)&&((a13==1)&&((input==6)&&((a5==5)||(a5==6))))))&&!(a26==1))&&!(a20==1))))))){ + a2 = 1; + a6 = 1; + a20 = 1; + a5 = 4; + a19 = 1; + a27 = 0; + a9 = 7; + return -1; + } else if((((a17==2)&&(((((a3==1)&&((a28==1)&&(((a1==13)&&(input==6))&&!(a7==1))))&&!(a18==1))&&(a19==4))&&(a9==11)))&&(((a16==8)&&(((a20==1)&&((!(a12==1)||(a3==1))&&(a5==4)))&&(a21==11)))&&(a3==1)))){ + a9 = 7; + a1 = 12; + a13 = 1; + a19 = 1; + a16 = 7; + a21 = 10; + a24 = 0; + return -1; + } else if(((((a7==1)||((a6==1)&&(((a19==2)&&((a9==8)&&(a2==1)))&&(a3==1))))&&(a16==9))&&(((a20==1)&&(((a11==1)&&((((((a5==4)||(a5==5))&&(input==4))&&!(a24==1))&&(a21==11))&&(a1==12)))&&(a17==2)))&&(a6==1)))){ + a16 = 8; + a7 = 0; + a5 = 4; + a1 = 14; + a19 = 1; + a27 = 0; + a4 = 0; + a9 = 11; + return 25; + } else if((((a17==2)&&((a19==3)&&((((a20==1)&&((((a3==1)||!(a11==1))||!(a13==1))&&(a16==9)))&&!(a24==1))&&!(a0==1))))&&(((a21==11)&&(((a13==1)&&((a1==13)&&(((a5==4)||(a5==5))&&(input==4))))&&!(a27==1)))&&(a9==11)))){ + a5 = 4; + a11 = 1; + a19 = 1; + a23 = 1; + a28 = 1; + a21 = 10; + a1 = 12; + a16 = 7; + a9 = 7; + return -1; + } else if(((!(a28==1)||((a16==7)&&(((a9==7)&&(((a1==13)&&(!(a20==1)&&(a6==1)))||!(a13==1)))||(a14==1))))&&((a13==1)&&((a5==6)&&(!(a0==1)&&(((a11==1)&&((a17==2)&&((input==5)&&(a21==10))))&&(a19==1))))))){ + a5 = 4; + a18 = 0; + a20 = 1; + a1 = 12; + a27 = 0; + a28 = 1; + return -1; + } else if((((a9==11)&&((((a11==1)&&(a3==1))&&(a21==12))&&!(a0==1)))&&(!(a27==1)&&(((((a3==1)&&((a17==2)&&((a5==4)&&(((a1==13)&&((a16==10)&&(input==5)))&&!(a27==1)))))&&!(a18==1))&&(a20==1))&&(a19==2))))){ + a1 = 12; + a16 = 7; + a26 = 0; + a21 = 10; + a3 = 1; + a11 = 1; + a9 = 7; + a19 = 1; + return -1; + } else if(((!(a8==1)&&(((a20==1)&&((((input==3)&&(a16==8))&&(a11==1))&&!(a24==1)))&&(a21==11)))&&(!(a6==1)||((a13==1)&&(((((a19==5)&&((a9==9)&&(!(a4==1)&&(a2==1))))&&(a5==4))&&(a17==2))&&(a1==13)))))){ + a26 = 0; + a18 = 0; + a21 = 10; + a16 = 7; + a19 = 1; + a9 = 7; + a1 = 12; + a12 = 1; + return -1; + } else if((((a21==12)&&(!(a26==1)&&((a17==2)&&(((input==4)&&((a5==4)||(a5==5)))&&(a1==13)))))&&((a27==1)||(((((((!(a20==1)&&((a7==1)||(a6==1)))&&(a9==10))&&(a23==1))&&(a16==10))||!(a6==1))||(a18==1))&&(a19==3))))){ + a1 = 12; + a20 = 1; + a29 = 0; + a4 = 1; + a9 = 8; + a16 = 7; + a21 = 10; + a19 = 1; + a10 = 0; + a5 = 5; + return -1; + } else if((((!(a14==1)&&((a3==1)&&((((input==3)&&((a5==4)||(a5==5)))&&(a21==10))&&!(a8==1))))&&!(a20==1))&&((a17==2)&&((((((!(a23==1)||((a6==1)&&(a11==1)))&&(a19==3))&&(a1==12))&&(a9==7))&&(a16==8))&&(a2==1))))){ + a7 = 0; + a20 = 1; + a5 = 4; + a19 = 1; + a18 = 0; + a0 = 0; + a16 = 7; + return -1; + } else if((((a1==12)&&((a19==2)&&((((a9==10)&&(!(a28==1)||(!(a23==1)||((a11==1)&&(a28==1)))))&&(a16==9))&&(a21==10))))&&((!(a8==1)&&(((((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&(a28==1))&&(a13==1))&&(a17==2)))&&(a20==1)))){ + a16 = 7; + a19 = 1; + a5 = 4; + a6 = 1; + a0 = 0; + a9 = 7; + a14 = 0; + return -1; + } else if((((a4==1)||(((a1==13)&&((a12==1)&&(a2==1)))&&(a9==10)))&&((a19==5)&&(((a20==1)&&((((((a12==1)&&(((a16==7)&&(input==6))&&(a2==1)))&&!(a7==1))&&(a23==1))&&(a17==2))&&(a21==11)))&&(a5==6))))){ + a21 = 12; + a16 = 8; + a1 = 14; + a23 = 1; + a5 = 5; + a0 = 0; + a9 = 7; + a8 = 0; + a19 = 2; + return 26; + } else if(((((a16==10)&&(!(a13==1)||(a12==1)))||(a24==1))&&(((a13==1)&&((a11==1)&&(!(a20==1)&&((a21==11)&&((a2==1)&&((a17==2)&&((((((a1==13)&&(a5==6))&&(a9==11))||(((a5==4)&&(a1==14))&&(a9==7)))&&(input==3))&&(a19==3))))))))&&(a3==1)))){ + if((a23==1)){ + a15 = 0; + a5 = 6; + a1 = 12; + a21 = 12; + a10 = 0; + a9 = 11; + a20 = 1; + a19 = 2; + a16 = 7; + }else{ + a1 = 13; + a9 = 9; + a6 = 0; + a5 = 4; + a15 = 1; + a19 = 4; + a21 = 12; + a16 = 9; + a10 = 0; + } + return -1; + } else if((((a21==12)&&(!(a20==1)&&((((((a23==1)&&(!(a26==1)&&((!(a14==1)&&((input==5)&&(a16==10)))&&!(a4==1))))&&(a5==5))&&(a17==2))&&(a6==1))&&(a1==12))))&&((((a3==1)&&(a6==1))&&(a19==4))&&(a9==8)))){ + a13 = 0; + a21 = 10; + a1 = 14; + a4 = 1; + a5 = 6; + a18 = 1; + a20 = 1; + a19 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if((((a23==1)&&((((a13==1)&&((a21==11)&&(((a2==1)&&((a16==7)&&((a5==6)&&(input==4))))&&(a9==9))))&&(a2==1))&&(a28==1)))&&((((a19==4)&&(((a12==1)&&(a1==14))||(a26==1)))&&(a17==2))&&!(a20==1)))){ + a1 = 12; + a9 = 7; + a3 = 1; + a5 = 4; + a20 = 1; + a21 = 10; + a26 = 0; + a19 = 1; + return -1; + } else if(((((((a2==1)&&((a19==3)&&(((input==6)&&(a21==12))&&!(a20==1))))&&!(a7==1))&&(a2==1))&&!(a18==1))&&(!(a4==1)&&((a1==12)&&((((a16==7)&&(((a5==4)&&(a12==1))||!(a3==1)))&&(a9==9))&&(a17==2)))))){ + a4 = 0; + a19 = 4; + a20 = 1; + a24 = 0; + a16 = 8; + a9 = 10; + a5 = 5; + a28 = 1; + a21 = 11; + return 25; + } else if(((((((a11==1)&&(((a19==2)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==5)))&&(a16==11)))&&!(a4==1))&&!(a4==1))&&(a17==2))&&(!(a12==1)||(((a20==1)&&((((a13==1)&&(a6==1))&&(a1==13))||!(a6==1)))&&(a21==11))))){ + a27 = 0; + a16 = 7; + a28 = 1; + a21 = 12; + a8 = 0; + a20 = 0; + a5 = 5; + a9 = 10; + a1 = 12; + return 26; + } else if((((a17==2)&&(((((a16==9)&&((input==5)&&((a5==5)||(a5==6))))&&(a19==4))&&(a23==1))&&(a28==1)))&&((a23==1)&&(((a7==1)||((a1==14)&&((a20==1)&&(((a13==1)&&((a23==1)&&(a9==10)))&&(a21==12)))))||(a7==1))))){ + a12 = 1; + a0 = 0; + a19 = 1; + a1 = 12; + a21 = 10; + a9 = 7; + a5 = 4; + a27 = 0; + a16 = 7; + return -1; + } else if((((a6==1)&&((((a1==13)&&((a19==5)&&((a9==7)&&((input==5)&&((a5==4)||(a5==5))))))&&!(a8==1))&&(a3==1)))&&(((a24==1)||((a17==2)&&(((a21==11)&&(((a11==1)||!(a13==1))&&!(a20==1)))&&(a16==8))))||(a14==1)))){ + a21 = 10; + a9 = 11; + a20 = 1; + a22 = 1; + a23 = 0; + a19 = 2; + a1 = 12; + a5 = 6; + a16 = 7; + return 25; + } else if((((!(a6==1)||(!(a24==1)&&((a27==1)||((a1==12)&&(((a5==4)&&((a17==2)&&(a6==1)))&&(a16==10))))))&&!(a7==1))&&((a2==1)&&(((!(a20==1)&&(((input==6)&&(a19==1))&&!(a8==1)))&&(a9==7))&&(a21==12))))){ + a10 = 1; + a4 = 1; + a7 = 1; + a21 = 10; + a19 = 4; + a5 = 6; + a1 = 13; + a9 = 9; + return -1; + } else if(((((a1==13)&&((a19==2)&&(((a27==1)&&((a9==7)&&((a14==1)&&(!(a23==1)&&((a17==2)&&((input==4)&&(a16==7)))))))&&!(a6==1))))&&(a21==10))&&((!(a3==1)&&((a20==1)&&(!(a2==1)&&(a12==1))))&&(a5==5)))){ + a9 = 8; + a18 = 1; + a1 = 14; + a5 = 6; + a12 = 0; + a19 = 5; + a16 = 10; + a15 = 0; + return -1; + } else if((((!(a26==1)&&((a12==1)&&((a2==1)&&((((a5==5)||(a5==6))&&(input==6))&&(a16==9)))))&&(a21==11))&&((!(a20==1)&&(!(a12==1)||(((a1==12)&&((((a6==1)&&!(a0==1))&&(a17==2))&&(a19==3)))&&!(a18==1))))&&(a9==7)))){ + a28 = 0; + a5 = 6; + a16 = 7; + a22 = 1; + a18 = 1; + a1 = 13; + a20 = 1; + a9 = 11; + return -1; + } else if((((a1==13)&&((a14==1)||((a28==1)||(a8==1))))&&((a28==1)&&(((a13==1)&&((!(a8==1)&&(((a16==9)&&((a19==4)&&((a20==1)&&((input==3)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))))))&&(a17==2)))&&(a21==11)))&&(a2==1))))){ + a19 = 1; + a9 = 7; + a28 = 1; + a1 = 12; + a6 = 1; + a12 = 1; + a16 = 7; + a5 = 4; + a21 = 10; + return -1; + } else if(((((!(a20==1)&&((a18==1)||((a16==9)&&((a5==4)&&(((!(a0==1)&&(a13==1))||!(a12==1))||!(a11==1))))))&&(a1==12))&&!(a7==1))&&(((a17==2)&&((a9==10)&&(((a19==5)&&(input==3))&&!(a7==1))))&&(a21==10)))){ + if((a2==1)){ + a20 = 1; + a16 = 7; + a19 = 2; + a5 = 6; + a9 = 11; + a2 = 0; + a6 = 0; + a26 = 1; + }else{ + a16 = 7; + a5 = 6; + a21 = 11; + a19 = 3; + a6 = 0; + a8 = 1; + a15 = 1; + } + return -1; + } else if(((((a24==1)||((!(a6==1)||((a1==12)&&(((a11==1)||(a8==1))&&(a19==3))))&&(a3==1)))&&(a21==11))&&((a13==1)&&(!(a20==1)&&((a17==2)&&((((((a5==5)||(a5==6))&&(input==5))&&(a9==8))&&(a16==9))&&(a23==1))))))){ + a21 = 10; + a20 = 1; + a10 = 0; + a16 = 7; + a9 = 10; + a25 = 0; + a19 = 1; + a5 = 5; + a1 = 13; + a6 = 0; + return -1; + } else if((((((a1==13)&&((a16==8)&&(((a2==1)&&!(a18==1))&&!(a20==1))))&&(a19==1))&&(a21==10))&&((((a17==2)&&((!(a4==1)&&(((a9==10)&&((input==5)&&((a5==6)||((a5==4)||(a5==5)))))&&(a13==1)))&&!(a24==1)))&&!(a8==1))&&(a6==1)))){ + a19 = 5; + a1 = 14; + a5 = 5; + a11 = 1; + a3 = 1; + a16 = 11; + a14 = 0; + a21 = 12; + a20 = 1; + return 25; + } else if((((a4==1)&&(((a5==4)&&((!(a20==1)&&((a4==1)&&((a18==1)&&(((a6==1)&&(a19==1))&&(a21==11)))))&&(a4==1)))&&(a9==8)))&&(((!(a23==1)&&((a1==14)&&((a17==2)&&(input==1))))&&(a16==7))&&!(a12==1)))){ + a21 = 10; + a1 = 12; + a14 = 1; + a8 = 1; + a20 = 1; + a7 = 1; + return -1; + } else if(((!(a20==1)&&(((a9==10)&&(!(a23==1)||(((!(a28==1)||(a28==1))&&(a1==13))&&(a16==7))))&&!(a27==1)))&&((a19==1)&&((a3==1)&&((a21==11)&&((a3==1)&&((!(a8==1)&&((input==4)&&(a5==5)))&&(a17==2)))))))){ + a20 = 1; + a13 = 1; + a11 = 1; + a1 = 12; + a6 = 1; + a9 = 7; + a5 = 4; + a21 = 10; + return -1; + } else if(((((a16==8)&&(((a19==4)&&(a13==1))&&!(a14==1)))&&(a21==11))&&((a12==1)&&((a6==1)&&((a20==1)&&((a17==2)&&((a1==13)&&(((a12==1)&&(((input==3)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(a3==1)))&&(a23==1))))))))){ + a9 = 7; + a1 = 12; + a5 = 4; + a19 = 1; + a21 = 10; + a16 = 7; + a26 = 0; + a23 = 1; + return -1; + } else if(((((((a13==1)&&((a11==1)&&((((a21==12)&&((a16==7)&&(input==1)))&&(a23==1))&&!(a24==1))))&&(a20==1))&&(a19==1))&&(a1==14))&&((a12==1)&&((a5==6)&&((a9==8)&&((a23==1)&&((a23==1)&&(a17==2)))))))){ + a1 = 13; + a5 = 5; + a6 = 1; + a19 = 3; + a3 = 1; + a20 = 0; + a0 = 0; + a9 = 7; + return 21; + } else if((((a19==2)&&(((a11==1)&&(a1==13))&&(a16==10)))&&(((a17==2)&&(!(a27==1)&&(!(a26==1)&&((a11==1)&&((a20==1)&&((a21==10)&&((((((a5==4)||(a5==5))&&(input==5))&&(a12==1))&&!(a7==1))&&(a9==7))))))))&&!(a24==1)))){ + a6 = 1; + a9 = 10; + a21 = 12; + a16 = 8; + a5 = 4; + a28 = 1; + a12 = 1; + a1 = 12; + a19 = 1; + return 25; + } else if(((((((a28==1)&&(a9==10))&&(a1==12))&&(a17==2))&&(a19==1))&&(((a28==1)&&(!(a24==1)&&((((a6==1)&&(((((input==1)&&((a5==5)||(a5==6)))&&(a20==1))&&(a21==10))&&(a16==11)))&&!(a18==1))&&!(a27==1))))&&!(a18==1)))){ + a11 = 1; + a16 = 9; + a1 = 14; + a19 = 5; + a5 = 4; + a12 = 1; + a9 = 11; + a21 = 11; + return 21; + } else if((((a21==12)&&((!(a24==1)&&((a16==10)&&(input==3)))&&(a5==5)))&&(((!(a14==1)&&((((((a9==11)&&((a17==2)&&(!(a4==1)&&(a11==1))))&&!(a7==1))||(a18==1))&&(a1==12))||!(a11==1)))&&!(a20==1))&&(a19==1)))){ + a9 = 10; + a16 = 8; + a21 = 11; + a15 = 0; + a19 = 5; + a8 = 1; + a4 = 1; + return -1; + } else if((((a17==2)&&(((a11==1)&&((input==1)&&((a5==5)||(a5==6))))&&(a9==9)))&&(!(a14==1)&&(((a4==1)||((((a1==14)&&(((((a19==2)&&(a11==1))&&(a20==1))&&(a21==12))&&(a16==8)))||!(a12==1))||!(a23==1)))||(a0==1))))){ + a5 = 4; + a23 = 1; + a24 = 0; + a21 = 10; + a1 = 12; + a2 = 1; + a16 = 7; + a19 = 1; + a9 = 7; + return -1; + } else if(((((a16==10)&&((((a3==1)&&((((a23==1)&&((((a5==4)||(a5==5))&&(input==5))&&(a1==14)))&&!(a8==1))&&(a13==1)))&&!(a18==1))&&(a9==8)))&&(a21==12))&&((a19==1)&&(((!(a20==1)&&(a28==1))||(a26==1))&&(a17==2))))){ + if((a29==1)){ + a1 = 12; + a22 = 1; + a4 = 1; + a19 = 2; + a28 = 0; + a16 = 9; + a20 = 1; + a9 = 7; + a5 = 4; + a21 = 10; + }else{ + a9 = 7; + a5 = 4; + a23 = 0; + a29 = 1; + a21 = 10; + a14 = 1; + a1 = 12; + a20 = 1; + a16 = 7; + } + return 25; + } else if((((a16==10)&&(((((!(a26==1)&&((input==6)&&(a21==10)))&&(a1==14))&&(a2==1))&&!(a4==1))&&(a19==5)))&&(((a5==6)&&(!(a28==1)||(((((a20==1)&&(a3==1))&&(a17==2))&&(a11==1))&&(a2==1))))&&(a9==11)))){ + a5 = 4; + a9 = 7; + a11 = 1; + a0 = 0; + a26 = 0; + a19 = 1; + a16 = 7; + a1 = 12; + return -1; + } else if((((((((a23==1)&&((a16==7)&&((a12==1)||(a14==1))))&&(a19==1))&&(a20==1))&&(a11==1))||(a27==1))&&((a2==1)&&(((a21==11)&&(((input==5)&&(((((a1==13)&&(a5==6))&&(a9==11))||(((a1==14)&&(a5==4))&&(a9==7)))||(((a1==14)&&(a5==5))&&(a9==7))))&&(a17==2)))&&!(a8==1))))){ + a9 = 10; + a1 = 13; + a21 = 10; + a5 = 5; + a28 = 1; + a16 = 8; + a12 = 1; + a11 = 1; + return 22; + } else if((((a9==9)&&(((a11==1)&&((((((input==4)&&((a5==5)||(a5==6)))&&(a21==12))&&!(a4==1))&&(a12==1))&&(a13==1)))&&(a16==11)))&&(((a17==2)&&((a1==13)&&((a24==1)||(((a19==3)&&(a11==1))||!(a6==1)))))&&(a20==1)))){ + a21 = 10; + a9 = 7; + a16 = 7; + a1 = 12; + a24 = 0; + a13 = 1; + a5 = 4; + a26 = 0; + a19 = 1; + return -1; + } else if(((((((!(a11==1)||((!(a26==1)&&(a6==1))&&(a20==1)))&&(a28==1))&&(a19==4))&&(a9==11))&&(a16==8))&&(((((a17==2)&&((!(a26==1)&&((input==3)&&(a21==11)))&&(a5==4)))&&!(a18==1))&&(a12==1))&&(a1==13)))){ + a19 = 1; + a21 = 10; + a6 = 1; + a11 = 1; + a7 = 0; + a16 = 7; + a9 = 7; + a1 = 12; + return -1; + } else if((((a14==1)&&(((((((a12==1)&&(a16==9))&&(a21==11))&&(a5==5))&&(a14==1))&&(a20==1))&&!(a12==1)))&&(((((a0==1)&&((((a1==13)&&(input==1))&&(a17==2))&&(a9==8)))&&(a19==2))&&(a26==1))&&(a18==1)))){ + a21 = 10; + a25 = 0; + a9 = 9; + a16 = 7; + a4 = 1; + a1 = 12; + a29 = 0; + a5 = 4; + return 25; + } else if(((((a11==1)&&(!(a24==1)&&((a19==2)&&((a9==7)&&((a3==1)&&!(a18==1))))))&&(a16==10))&&((a1==12)&&((((((a20==1)&&((a2==1)&&(((a5==4)||(a5==5))&&(input==5))))&&(a3==1))&&!(a14==1))&&(a17==2))&&(a21==12))))){ + if((a11==1)){ + a21 = 10; + a12 = 1; + a20 = 0; + a18 = 0; + a9 = 11; + a16 = 8; + a8 = 0; + a5 = 5; + a19 = 5; + }else{ + a1 = 14; + a9 = 10; + a23 = 1; + a5 = 5; + a21 = 10; + a12 = 1; + a16 = 7; + a4 = 0; + } + return 21; + } else if(((((a28==1)&&((((a28==1)&&((((a19==4)&&((input==1)&&(a9==10)))&&!(a4==1))&&(a5==4)))&&(a12==1))&&!(a20==1)))&&(a17==2))&&((a21==10)&&((a1==14)&&((a16==8)&&((!(a8==1)&&(a11==1))||!(a6==1))))))){ + a19 = 3; + a11 = 1; + a20 = 1; + a2 = 1; + a5 = 5; + a21 = 11; + a9 = 11; + a4 = 0; + return 25; + } else if((((((!(a0==1)&&(((a16==8)&&((input==4)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a18==1)))&&(a21==11))&&(a17==2))&&(a19==1))&&((a9==7)&&((a20==1)&&((a1==14)&&(((!(a12==1)||((a12==1)&&(a2==1)))&&(a6==1))||!(a12==1))))))){ + a21 = 10; + a28 = 1; + a12 = 1; + a26 = 0; + a1 = 12; + a16 = 7; + a5 = 4; + return -1; + } else if((((a28==1)&&(((a16==9)&&((((input==6)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(a28==1))&&(a1==13)))&&!(a0==1)))&&(!(a20==1)&&((((a19==2)&&(((a17==2)&&((a13==1)&&(a28==1)))&&(a21==11)))&&!(a8==1))&&!(a24==1))))){ + a9 = 10; + a16 = 10; + a15 = 0; + a11 = 0; + a19 = 5; + a8 = 1; + a5 = 6; + a21 = 10; + return -1; + } else if((((a12==1)&&(((((a21==11)&&((a28==1)&&((a11==1)&&((a16==9)&&((a9==11)&&((a20==1)&&((a5==4)&&(input==6))))))))&&(a12==1))&&(a1==12))&&!(a18==1)))&&((a7==1)||(((a12==1)&&(a19==5))&&(a17==2))))){ + a1 = 13; + a16 = 7; + a24 = 0; + a21 = 10; + a2 = 1; + a4 = 0; + a19 = 2; + a9 = 10; + return -1; + } else if((((a13==1)&&((a19==2)&&((a17==2)&&((a16==9)&&(!(a24==1)&&(((((a5==4)||(a5==5))&&(input==3))&&!(a20==1))&&(a1==14)))))))&&((((a7==1)||(((a4==1)||((a9==8)&&(a13==1)))&&!(a0==1)))&&(a21==10))&&(a2==1)))){ + a19 = 1; + a16 = 7; + a26 = 1; + a9 = 10; + a5 = 4; + a4 = 1; + a12 = 0; + a20 = 1; + a1 = 12; + return -1; + } else if(((((((a17==2)&&((((a5==4)&&(input==6))&&(a2==1))&&(a19==2)))&&(a9==8))&&(a16==11))&&!(a26==1))&&((a21==10)&&(!(a18==1)&&(!(a2==1)||(!(a6==1)||((((a12==1)&&!(a20==1))&&(a1==14))||!(a11==1)))))))){ + if((a16==7)){ + a20 = 1; + a9 = 10; + a13 = 0; + a1 = 13; + a5 = 5; + a21 = 11; + a23 = 0; + }else{ + a20 = 1; + a1 = 13; + a16 = 7; + a19 = 1; + a9 = 7; + a10 = 0; + a3 = 0; + } + return 25; + } else if(((((a21==12)&&((((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7))))&&(input==5)))&&(a1==12))&&((a20==1)&&((a19==4)&&((a17==2)&&(!(a6==1)||((((((!(a8==1)&&(a3==1))&&(a3==1))&&!(a24==1))&&!(a18==1))&&!(a27==1))&&(a16==9)))))))){ + a9 = 8; + a11 = 1; + a19 = 1; + a5 = 6; + a7 = 0; + a18 = 0; + a16 = 8; + a1 = 14; + return 21; + } else if((((((!(a26==1)&&((a17==2)&&((input==5)&&((a5==6)||((a5==4)||(a5==5))))))&&(a9==10))&&(a1==12))&&(a19==2))&&((((!(a7==1)&&(((a2==1)&&(((a16==10)&&(a11==1))&&!(a26==1)))&&!(a26==1)))&&!(a4==1))&&(a20==1))&&(a21==12)))){ + a23 = 1; + a9 = 7; + a16 = 7; + a24 = 0; + a19 = 1; + a12 = 1; + a5 = 4; + a21 = 10; + return -1; + } else if((((!(a14==1)&&((!(a3==1)||((((!(a18==1)&&(a3==1))&&(a19==5))&&(a1==14))&&(a13==1)))&&(a21==12)))&&(a17==2))&&(((!(a8==1)&&(!(a14==1)&&((input==4)&&(((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))))&&(a20==1))&&(a16==11)))){ + a21 = 10; + a14 = 0; + a9 = 7; + a16 = 7; + a28 = 1; + a19 = 1; + a1 = 12; + a5 = 4; + a27 = 0; + return -1; + } else if((((a21==10)&&(!(a3==1)||(!(a11==1)||((a16==11)&&((a3==1)&&(a6==1))))))&&((a13==1)&&((a1==12)&&((a23==1)&&((((a17==2)&&(((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==6))&&(a19==3)))&&!(a20==1))&&!(a24==1))))))){ + if((a2==1)){ + a1 = 14; + a19 = 5; + a6 = 0; + a16 = 8; + a5 = 6; + a9 = 10; + a3 = 0; + a0 = 1; + }else{ + a13 = 0; + a21 = 11; + a9 = 8; + a5 = 6; + a16 = 9; + a20 = 1; + a24 = 1; + a1 = 13; + a6 = 0; + } + return -1; + } else if((((!(a20==1)&&((a21==10)&&((a16==9)&&(((a9==7)&&((a23==1)||(a0==1)))&&(a19==4)))))||!(a2==1))&&((((!(a8==1)&&(((((a5==4)||(a5==5))&&(input==3))&&(a1==12))&&(a17==2)))&&(a28==1))&&!(a24==1))&&(a11==1)))){ + a16 = 10; + a19 = 1; + a20 = 1; + a7 = 1; + a9 = 10; + a22 = 1; + a13 = 0; + a5 = 5; + a1 = 14; + a21 = 12; + return -1; + } else if(((((a9==8)&&((((a13==1)&&((a21==12)&&(input==1)))&&(a17==2))&&(a3==1)))&&(a1==14))&&((a19==4)&&((((((a12==1)&&(((a16==10)&&(a28==1))&&!(a20==1)))||!(a28==1))||(a24==1))&&(a3==1))&&(a5==4))))){ + if((a3==1)){ + a16 = 7; + a2 = 0; + a21 = 10; + a25 = 0; + a1 = 13; + a19 = 1; + a20 = 1; + }else{ + a28 = 0; + a9 = 10; + a1 = 13; + a16 = 8; + a22 = 0; + a11 = 0; + a5 = 6; + a21 = 10; + a19 = 2; + } + return -1; + } else if((((!(a28==1)||((a19==4)&&(!(a20==1)&&(((a13==1)&&(a12==1))&&(a17==2)))))&&(a16==11))&&(((((((a1==12)&&((((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==1)))&&(a13==1))&&(a21==10))&&(a12==1))&&!(a7==1))&&(a23==1)))){ + if((a13==1)){ + a11 = 0; + a9 = 9; + a5 = 4; + a1 = 14; + a19 = 5; + a6 = 0; + a16 = 9; + }else{ + a10 = 0; + a16 = 7; + a20 = 1; + a9 = 8; + a19 = 1; + a5 = 5; + a4 = 1; + a27 = 1; + } + return -1; + } else if(((((((((a21==10)&&(((a5==4)||(a5==5))&&(input==1)))&&(a1==14))&&(a9==10))&&(a20==1))&&(a17==2))&&(a23==1))&&(((a11==1)&&(((a12==1)&&((!(a24==1)&&((a2==1)&&(a16==10)))&&(a19==3)))&&!(a26==1)))&&!(a4==1)))){ + a5 = 5; + a4 = 0; + a9 = 11; + a16 = 11; + a8 = 0; + a19 = 5; + a0 = 0; + return 25; + } else if(((((a21==10)&&(((((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&!(a14==1))&&!(a26==1))&&(a11==1)))&&(a20==1))&&((((a16==7)&&(((((a19==3)&&(!(a2==1)||(a11==1)))&&(a17==2))||(a24==1))&&(a1==14)))&&(a28==1))&&(a9==11)))){ + a1 = 12; + a7 = 0; + a5 = 4; + a11 = 1; + a9 = 10; + a21 = 11; + a27 = 0; + return 21; + } else if(((!(a4==1)&&((((input==6)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5))))&&(a1==12))&&(a17==2)))&&(!(a27==1)&&((!(a24==1)&&(((a16==11)&&(((!(a28==1)||((a23==1)&&!(a4==1)))&&(a21==12))&&(a2==1)))&&(a20==1)))&&(a19==3))))){ + a9 = 7; + a8 = 0; + a5 = 4; + a21 = 10; + a19 = 1; + a16 = 7; + a6 = 1; + a3 = 1; + return -1; + } else if(((((a5==4)&&((((a1==12)&&(!(a18==1)&&((a13==1)&&(a9==11))))&&(a3==1))&&(a11==1)))&&(a20==1))&&((((((a19==1)&&((a13==1)&&((a21==11)&&(input==5))))&&(a16==8))&&(a17==2))&&!(a4==1))&&(a3==1)))){ + a9 = 7; + a21 = 10; + a28 = 1; + a4 = 0; + a27 = 0; + a16 = 7; + return -1; + } else if((((((a4==1)||((a21==10)&&((a17==2)&&((!(a4==1)&&((a16==7)&&(a28==1)))&&(a1==12)))))&&(a9==7))&&(a13==1))&&((a11==1)&&((!(a27==1)&&((((a5==5)&&(input==5))&&(a19==1))&&!(a20==1)))&&(a23==1))))){ + a26 = 0; + a5 = 4; + a20 = 1; + a0 = 0; + a12 = 1; + return -1; + } else if(((!(a24==1)&&(((a12==1)&&((a3==1)&&((a28==1)&&!(a20==1))))&&(a13==1)))&&((!(a18==1)&&((((a16==10)&&(((a1==13)&&((input==6)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))&&(a17==2)))&&(a23==1))&&(a21==10)))&&(a19==3)))){ + a20 = 1; + a10 = 1; + a4 = 1; + a16 = 8; + a21 = 11; + a9 = 8; + a19 = 1; + a5 = 4; + a1 = 14; + a27 = 1; + return -1; + } else if((((((a26==1)||((((a2==1)||(a0==1))&&!(a8==1))&&(a21==11)))&&(a17==2))&&(a16==11))&&((((a20==1)&&((a11==1)&&(((a19==1)&&((a1==14)&&((input==5)&&((a5==4)||(a5==5)))))&&(a9==8))))&&(a23==1))&&!(a26==1)))){ + a28 = 1; + a9 = 10; + a5 = 6; + a2 = 1; + a19 = 5; + a27 = 0; + return 26; + } else if((((((a6==1)&&(((a5==4)||(a5==5))&&(input==6)))&&(a20==1))&&(a12==1))&&((a17==2)&&((((!(a14==1)&&((a16==10)&&(!(a28==1)||(((a1==12)&&(!(a3==1)||(a12==1)))&&(a9==7)))))&&!(a8==1))&&(a19==2))&&(a21==12))))){ + a20 = 0; + a9 = 11; + a24 = 0; + a16 = 8; + a5 = 5; + a28 = 1; + a19 = 5; + a21 = 10; + a7 = 0; + return 21; + } else if((((((a18==1)||(!(a14==1)&&((a19==3)&&(((a1==12)&&(((a23==1)&&(a6==1))||!(a23==1)))&&(a9==11)))))||(a4==1))&&(a21==11))&&((((a12==1)&&(!(a20==1)&&((input==1)&&((a5==4)||(a5==5)))))&&(a17==2))&&(a16==7)))){ + a13 = 1; + a14 = 0; + a5 = 4; + a20 = 1; + a9 = 9; + a19 = 2; + a1 = 13; + a27 = 0; + a21 = 10; + return 25; + } else if((((a1==14)&&((((a20==1)&&(input==6))&&(a28==1))&&(a3==1)))&&(((a21==11)&&(((a13==1)&&((a17==2)&&(!(a12==1)||((a19==3)&&((((a6==1)&&(a5==4))&&!(a26==1))||(a18==1))))))&&(a9==8)))&&(a16==10)))){ + a24 = 0; + a19 = 2; + a9 = 9; + a16 = 7; + a28 = 1; + a1 = 13; + a21 = 10; + a7 = 0; + return 25; + } else if((((a21==11)&&((a1==14)&&((a9==11)&&(((!(a13==1)&&((((a5==4)||(a5==5))&&(input==6))&&(a16==8)))&&(a18==1))&&(a19==2)))))&&((a24==1)&&(((((a27==1)&&((a18==1)&&(a13==1)))&&!(a20==1))&&(a17==2))&&(a7==1))))){ + a1 = 13; + a21 = 10; + a5 = 6; + a10 = 1; + a4 = 1; + a9 = 7; + a19 = 5; + a8 = 1; + return -1; + } else if((((a19==2)&&(((a20==1)&&(!(a28==1)||(((a21==10)&&((((a28==1)||!(a12==1))||!(a2==1))&&(a16==8)))||(a4==1))))&&(a17==2)))&&((a1==13)&&((!(a0==1)&&((a9==11)&&((input==3)&&((a5==6)||((a5==4)||(a5==5))))))&&!(a14==1))))){ + a3 = 1; + a14 = 0; + a9 = 7; + a5 = 4; + a19 = 1; + a16 = 7; + a1 = 12; + a6 = 1; + return -1; + } else if((((a24==1)||(((a16==7)&&((((a28==1)||(a0==1))||!(a6==1))&&(a9==9)))&&(a21==10)))&&((a19==2)&&((a13==1)&&(((a1==13)&&(!(a20==1)&&(!(a14==1)&&((((a5==5)||(a5==6))&&(input==1))&&(a17==2)))))&&!(a27==1)))))){ + a0 = 0; + a8 = 0; + a1 = 12; + a19 = 3; + a5 = 4; + a18 = 0; + return 22; + } else if(((!(a27==1)&&((a12==1)&&((((a1==12)&&((a16==7)&&((((a12==1)&&(!(a20==1)&&(input==5)))&&(a17==2))&&(a21==12))))&&(a23==1))&&!(a14==1))))&&((((a19==2)&&((a9==7)&&(a23==1)))&&(a5==6))&&!(a4==1)))){ + a11 = 1; + a18 = 0; + a3 = 1; + a5 = 4; + a19 = 3; + a9 = 11; + a20 = 1; + a16 = 8; + return 23; + } else if(((((a21==11)&&((((a9==11)&&((a1==13)&&((a16==9)&&((((a11==1)&&!(a7==1))&&(a17==2))||!(a12==1)))))||(a7==1))&&(a3==1)))&&(a13==1))&&(!(a24==1)&&((a19==3)&&((((a5==4)||(a5==5))&&(input==5))&&(a20==1)))))){ + a18 = 0; + a9 = 7; + a12 = 1; + a5 = 4; + a21 = 12; + a1 = 12; + a11 = 1; + return 21; + } else if((((a21==11)&&(((a19==3)&&((a9==8)&&(!(a26==1)&&((a17==2)&&(!(a0==1)&&((a16==8)&&(!(a27==1)&&(((a5==6)&&(input==5))&&(a3==1)))))))))&&(a1==14)))&&(!(a20==1)&&(((a6==1)||!(a12==1))||(a0==1))))){ + a1 = 12; + a16 = 7; + a21 = 10; + a12 = 1; + a19 = 1; + a23 = 1; + a28 = 1; + a5 = 4; + a20 = 1; + a9 = 7; + return -1; + } else if(((((a19==1)&&(((a13==1)&&((input==3)&&(((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a5==6)&&(a9==10))))))&&(a17==2)))&&(a1==14))&&((a13==1)&&((a24==1)||(((((a21==12)&&(!(a8==1)&&((a8==1)||(a23==1))))&&(a16==9))&&!(a20==1))&&(a3==1)))))){ + a16 = 10; + a5 = 5; + a0 = 1; + a9 = 9; + a19 = 2; + a6 = 0; + return -1; + } else if((((a12==1)&&(((!(a0==1)&&((a6==1)&&((a21==12)&&(input==1))))&&!(a26==1))&&(a6==1)))&&((a19==1)&&((a16==10)&&((a1==12)&&((!(a20==1)&&((((a2==1)&&!(a18==1))&&(a17==2))&&(a9==7)))&&(a5==4))))))){ + a0 = 1; + a9 = 9; + a5 = 6; + a23 = 0; + a11 = 0; + a20 = 1; + a21 = 10; + a19 = 2; + a16 = 7; + return 23; + } else if((((!(a27==1)&&(((((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a5==4)&&(a9==11)))&&(input==6))&&(a2==1))&&(a21==12)))&&!(a18==1))&&((a24==1)||(((a16==7)&&((a0==1)||(((a20==1)&&(!(a2==1)||((a17==2)&&(a23==1))))&&(a1==14))))&&(a19==3))))){ + a2 = 1; + a21 = 10; + a19 = 2; + a1 = 13; + a23 = 1; + a7 = 0; + a5 = 6; + a9 = 9; + return 26; + } else if((((((a3==1)&&(((a1==14)&&(!(a13==1)||((a17==2)&&((a2==1)&&(a3==1)))))&&(a9==11)))&&(a11==1))&&(a20==1))&&(((a6==1)&&(!(a24==1)&&((((input==6)&&((a5==4)||(a5==5)))&&(a16==11))&&(a21==11))))&&(a19==4)))){ + a23 = 1; + a3 = 1; + a5 = 4; + a1 = 12; + a19 = 1; + a24 = 0; + a16 = 7; + a21 = 10; + a9 = 7; + return -1; + } else if((((a9==8)&&((((a17==2)&&(((!(a0==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5)))&&(a1==12))&&!(a20==1)))&&(a21==12))&&(a16==9)))&&(((a19==1)&&(((!(a14==1)&&(!(a0==1)&&(a11==1)))||(a26==1))||!(a28==1)))||(a4==1)))){ + a1 = 14; + a5 = 4; + a20 = 1; + a15 = 1; + a26 = 1; + a16 = 7; + a9 = 9; + a12 = 0; + return 21; + } else if((((a16==8)&&((a1==14)&&((a17==2)&&((a3==1)&&((a11==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3)))))))&&(!(a18==1)&&(((((a28==1)&&((((a23==1)&&(a19==2))&&(a21==10))&&(a9==7)))&&(a23==1))&&(a13==1))&&!(a20==1))))){ + a5 = 4; + a19 = 1; + a16 = 7; + a28 = 1; + a20 = 1; + a1 = 12; + a7 = 0; + a24 = 0; + return -1; + } else if((((a12==1)&&((!(a14==1)&&((a21==11)&&((a20==1)&&(((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==5))&&!(a18==1)))))&&(a17==2)))&&((a4==1)||(((a19==4)&&((((a3==1)&&(a1==14))||!(a28==1))&&!(a14==1)))&&(a16==10))))){ + a16 = 7; + a1 = 13; + a21 = 10; + a0 = 0; + a13 = 1; + a5 = 4; + a3 = 1; + a9 = 9; + a19 = 2; + return 25; + } else if(((((!(a27==1)&&(((a2==1)&&((((input==3)&&(((a9==7)&&((a1==13)&&(a5==5)))||(((a9==11)&&((a5==6)&&(a1==12)))||((a9==7)&&((a1==13)&&(a5==4))))))&&(a19==5))&&(a21==12)))&&(a16==10)))&&(a6==1))&&!(a27==1))&&(!(a20==1)&&(!(a13==1)||(!(a12==1)||((a17==2)&&(a11==1))))))){ + a16 = 7; + a19 = 1; + a20 = 1; + a21 = 10; + a1 = 12; + a4 = 1; + a24 = 1; + a14 = 1; + a5 = 5; + a9 = 10; + return 23; + } else if((((a8==1)||(((a2==1)&&(((((a21==12)&&(((a13==1)&&(a11==1))&&(a20==1)))&&(a1==13))&&(a6==1))&&!(a18==1)))&&(a5==4)))&&(((!(a26==1)&&((a19==1)&&((a16==8)&&(input==5))))&&(a17==2))&&(a9==10)))){ + a0 = 0; + a18 = 0; + a21 = 11; + a16 = 10; + a19 = 5; + a5 = 6; + a1 = 12; + a28 = 1; + return 22; + } else if((((a6==1)&&(((a17==2)&&((((a23==1)&&(a6==1))&&(a12==1))&&(a16==9)))&&(a19==2)))&&(((((a21==10)&&(!(a20==1)&&((((input==6)&&(a9==10))&&!(a27==1))&&(a5==4))))&&(a1==12))&&!(a8==1))&&!(a14==1)))){ + a0 = 1; + a20 = 1; + a9 = 11; + a5 = 5; + a16 = 7; + a15 = 0; + a2 = 0; + return 21; + } else if((((a13==1)&&((a17==2)&&((a23==1)&&(a16==8))))&&((a2==1)&&(((!(a8==1)&&((((a21==12)&&((a1==14)&&(((a9==10)&&(((a5==4)||(a5==5))&&(input==3)))&&(a19==5))))&&!(a26==1))&&(a23==1)))&&(a20==1))&&(a11==1))))){ + a11 = 1; + a5 = 4; + a18 = 0; + a9 = 7; + a1 = 12; + a16 = 7; + a21 = 10; + a19 = 1; + a6 = 1; + return -1; + } else if(((((((a6==1)&&((!(a26==1)&&(a13==1))||!(a3==1)))&&(a16==9))&&(a20==1))&&(a21==12))&&((a19==4)&&(((((a13==1)&&(((input==4)&&(((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))))&&(a1==12)))&&(a17==2))&&(a28==1))&&!(a26==1))))){ + a6 = 1; + a5 = 4; + a2 = 1; + a9 = 7; + a19 = 1; + a3 = 1; + a16 = 7; + a21 = 10; + return -1; + } else if(((((a6==1)&&((a20==1)&&(((((a6==1)&&!(a24==1))&&(a5==6))&&(a16==9))&&(a19==5))))&&(a21==10))&&(!(a7==1)&&((a9==11)&&((((a6==1)&&((a13==1)&&((a17==2)&&(input==3))))&&(a13==1))&&(a1==12)))))){ + a9 = 7; + a5 = 4; + a14 = 0; + a16 = 7; + a18 = 0; + a19 = 1; + a4 = 0; + return -1; + } else if(((((a21==10)&&(!(a6==1)||((((a12==1)&&(a19==3))&&(a20==1))&&(a17==2))))&&(a9==11))&&((a1==13)&&(((!(a27==1)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&!(a26==1))&&!(a8==1))&&(a2==1)))&&!(a27==1))&&(a16==10))))){ + a3 = 1; + a5 = 4; + a16 = 8; + a0 = 0; + a19 = 5; + a9 = 9; + a1 = 12; + a7 = 0; + return -1; + } else if((((a27==1)&&(!(a20==1)&&(((a27==1)&&(((a13==1)&&(a5==6))&&(a7==1)))&&(a17==2))))&&((a26==1)&&((a0==1)&&((((a19==3)&&((a16==7)&&(((a1==12)&&(input==4))&&(a9==8))))&&(a21==12))&&!(a12==1)))))){ + a3 = 0; + a21 = 11; + a15 = 1; + a1 = 13; + a16 = 9; + a24 = 1; + a19 = 5; + a20 = 1; + a5 = 4; + return -1; + } else if((((a21==12)&&((a19==3)&&(((a14==1)&&((input==6)&&(((a9==11)&&((a5==6)&&(a1==13)))||((a9==7)&&((a5==4)&&(a1==14))))))&&(a7==1))))&&((a16==10)&&((a17==2)&&(((a27==1)&&(((a20==1)&&((a2==1)&&!(a2==1)))&&(a27==1)))&&!(a11==1)))))){ + a21 = 10; + a24 = 1; + a19 = 1; + a5 = 6; + a1 = 14; + a28 = 0; + a16 = 7; + a12 = 0; + a9 = 7; + return 25; + } else if(((((a23==1)&&((!(a20==1)&&((((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a19==1))&&(a11==1)))&&(a9==9)))&&(a28==1))&&(((a28==1)&&((a1==13)&&((a16==8)&&((((a3==1)&&(a11==1))&&(a21==10))&&(a17==2)))))||!(a13==1)))){ + a16 = 7; + a5 = 4; + a4 = 0; + a9 = 7; + a18 = 0; + a23 = 1; + a20 = 1; + a1 = 12; + return -1; + } else if(((((!(a20==1)&&((input==1)&&(((a19==5)&&(((a1==12)&&(a5==4))&&(a9==7)))||(((a19==4)&&(((a5==5)&&(a1==14))&&(a9==11)))||((a19==4)&&((a9==11)&&((a5==6)&&(a1==14))))))))&&!(a14==1))&&!(a4==1))&&(((((a7==1)||((a21==12)&&((a16==8)&&((a28==1)&&(a17==2)))))&&!(a14==1))&&(a3==1))&&(a28==1)))){ + a20 = 1; + a19 = 1; + a8 = 1; + a5 = 6; + a9 = 11; + a25 = 0; + a21 = 10; + a10 = 0; + a1 = 13; + a16 = 7; + return -1; + } else if((((((((a16==9)&&(((a13==1)&&(!(a4==1)&&(a2==1)))&&(a9==10)))&&(a21==11))||(a0==1))&&(a1==12))&&(a20==1))&&((a28==1)&&((a19==4)&&((a28==1)&&((((a5==6)&&(input==3))&&(a17==2))&&(a13==1))))))){ + a11 = 1; + a26 = 0; + a5 = 4; + a27 = 0; + a19 = 1; + a9 = 7; + a16 = 7; + a21 = 10; + return -1; + } else if(((((a19==1)&&((a6==1)&&((a17==2)&&((a20==1)&&(((a16==11)&&((input==5)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))))&&(a23==1))))))&&(a3==1))&&((a2==1)&&((a1==14)&&((a21==12)&&((!(a0==1)&&(a2==1))&&!(a4==1))))))){ + a5 = 6; + a21 = 10; + a12 = 1; + a19 = 4; + a9 = 7; + a28 = 1; + a11 = 1; + a1 = 12; + return 21; + } else if((((a19==2)&&(((a17==2)&&((a9==8)&&((a21==10)&&(!(a3==1)||(a13==1)))))&&(a11==1)))&&(((a16==11)&&((a20==1)&&((a3==1)&&(!(a8==1)&&(!(a14==1)&&(((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&!(a4==1)))))))&&(a1==14)))){ + a19 = 1; + a16 = 7; + a6 = 1; + a8 = 0; + a9 = 7; + a5 = 4; + a1 = 12; + a18 = 0; + return -1; + } else if(((!(a8==1)&&((a8==1)||(((a14==1)||((((a17==2)&&(a6==1))&&(a19==2))&&(a16==11)))&&(a20==1))))&&((a23==1)&&(((((a21==12)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==3)))&&(a1==14))&&(a6==1))&&(a11==1))))){ + a9 = 7; + a21 = 10; + a28 = 1; + a1 = 12; + a5 = 4; + a6 = 1; + a8 = 0; + a19 = 1; + a16 = 7; + return -1; + } else if(((!(a13==1)||(((((((a28==1)&&((a9==7)&&(a23==1)))||!(a28==1))&&(a17==2))&&(a21==10))&&(a1==14))&&(a19==2)))&&(!(a8==1)&&((a20==1)&&((a5==4)&&((!(a4==1)&&((a16==8)&&(input==3)))&&!(a24==1))))))){ + a16 = 7; + a13 = 1; + a1 = 12; + a27 = 0; + a19 = 1; + a6 = 1; + return -1; + } else if(((((a21==11)&&((a1==14)&&((((((a5==4)||(a5==5))&&(input==1))&&(a13==1))&&!(a7==1))&&(a9==10))))&&!(a7==1))&&((((((a19==5)&&(((a3==1)&&(a12==1))&&(a2==1)))&&(a17==2))&&!(a20==1))&&(a16==8))||(a18==1)))){ + a7 = 1; + a19 = 2; + a20 = 1; + a5 = 5; + a13 = 0; + a16 = 10; + a21 = 12; + a12 = 0; + a9 = 7; + a1 = 13; + return -1; + } else if(((!(a2==1)||((((a1==13)&&((a19==5)&&(((a6==1)||!(a6==1))&&!(a18==1))))||(a7==1))&&(a12==1)))&&((a21==10)&&(((a17==2)&&((((a9==8)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6))))&&(a16==8))&&(a20==1)))&&!(a24==1))))){ + a1 = 12; + a9 = 7; + a16 = 7; + a4 = 0; + a26 = 0; + a19 = 1; + a5 = 4; + a24 = 0; + return -1; + } else if(((!(a12==1)||(((a21==10)&&((a16==11)&&((((a6==1)||(a27==1))&&(a17==2))&&(a1==12))))&&(a12==1)))&&(((!(a8==1)&&((a2==1)&&((((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4)))&&(input==3))&&(a19==2))))&&!(a20==1))&&(a2==1)))){ + a8 = 1; + a4 = 1; + a5 = 6; + a10 = 0; + a19 = 1; + a16 = 7; + a20 = 1; + a1 = 13; + a9 = 8; + return -1; + } else if(((((a13==1)&&(!(a0==1)&&((a21==11)&&((a23==1)&&(((a16==8)&&((input==1)&&((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==1))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==2)))))&&(a23==1))))))&&(a17==2))&&((a20==1)&&((a2==1)&&((a26==1)||(a11==1)))))){ + a16 = 7; + a1 = 12; + a21 = 10; + a11 = 1; + a19 = 1; + a9 = 7; + a18 = 0; + a5 = 4; + a28 = 1; + return -1; + } else if((((!(a14==1)&&((((((a3==1)&&(a19==1))&&(a21==11))&&(a17==2))||(a7==1))&&(a1==13)))||(a24==1))&&(((((a9==7)&&(!(a20==1)&&((a16==8)&&(((a5==4)||(a5==5))&&(input==1)))))&&(a28==1))&&(a3==1))&&(a23==1)))){ + a20 = 1; + a21 = 10; + a6 = 1; + a5 = 4; + a27 = 0; + a16 = 7; + a28 = 1; + a1 = 12; + return -1; + } else if((((((input==6)&&((a5==5)||(a5==6)))&&(a28==1))&&!(a24==1))&&((a19==5)&&((a9==10)&&(!(a11==1)||((a21==10)&&((a2==1)&&(!(a12==1)||((a16==11)&&((((a17==2)&&((a1==13)&&(a28==1)))&&!(a26==1))&&(a20==1))))))))))){ + a28 = 1; + a5 = 4; + a0 = 0; + a16 = 7; + a9 = 7; + a4 = 0; + a1 = 12; + a19 = 1; + return -1; + } else if((((a23==1)&&((a2==1)&&(!(a8==1)&&(!(a20==1)&&((((((a5==4)&&((a21==12)&&(input==4)))&&(a6==1))&&(a16==10))&&(a9==11))&&(a19==4))))))&&(!(a26==1)&&((a1==12)&&(((a2==1)&&(a17==2))&&(a2==1)))))){ + a0 = 1; + a16 = 7; + a1 = 13; + a13 = 0; + a21 = 10; + a19 = 1; + a5 = 5; + a20 = 1; + a9 = 10; + return -1; + } else if((((a28==1)&&((a17==2)&&((a24==1)||((a9==7)&&(((a12==1)&&(a19==1))&&(a1==13))))))&&((a2==1)&&(((a21==10)&&((a16==11)&&(((a13==1)&&(((a5==5)&&(input==1))&&!(a7==1)))&&(a28==1))))&&!(a20==1))))){ + a16 = 10; + a20 = 1; + a5 = 4; + a4 = 1; + a27 = 1; + a22 = 1; + a1 = 12; + return 22; + } else if(((((!(a26==1)&&((((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6))))&&(input==1)))&&!(a26==1))&&(a3==1))&&(((a20==1)&&((a3==1)&&(((((a24==1)||(((a2==1)&&(a17==2))&&(a21==11)))&&(a19==4))&&(a16==11))&&(a1==12))))||!(a6==1)))){ + a9 = 8; + a1 = 13; + a5 = 5; + a27 = 0; + a21 = 12; + a19 = 2; + a3 = 1; + a14 = 0; + return 25; + } else if(((((a13==1)&&((a17==2)&&((((a21==10)&&(a12==1))&&(a19==5))&&!(a24==1))))||(a18==1))&&((((a1==14)&&(((((((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(input==3))&&(a3==1))&&(a13==1))&&(a16==10)))&&!(a26==1))&&(a20==1)))){ + a24 = 0; + a12 = 1; + a19 = 2; + a16 = 9; + a7 = 0; + a9 = 10; + a5 = 5; + return 21; + } else if((((((!(a8==1)&&((a12==1)&&(((((a5==4)||(a5==5))&&(input==1))&&(a20==1))&&(a19==3))))&&(a17==2))&&(a9==10))&&(a3==1))&&((!(a11==1)||((a1==13)&&(((a23==1)&&((a16==7)&&(a6==1)))&&(a21==11))))&&(a2==1)))){ + a14 = 0; + a2 = 1; + a5 = 4; + a21 = 10; + a19 = 1; + a28 = 1; + a9 = 7; + a1 = 12; + return -1; + } else if((((a23==1)&&!(a14==1))&&((a3==1)&&((a1==12)&&((a21==10)&&(((a17==2)&&((a16==10)&&(((a19==1)&&(((((a9==7)&&(((a5==4)||(a5==5))&&(input==3)))&&(a11==1))&&(a13==1))&&(a20==1)))&&(a13==1))))&&!(a26==1))))))){ + a26 = 0; + a12 = 1; + a16 = 7; + a18 = 0; + a5 = 4; + return -1; + } else if(((!(a20==1)&&((((a9==11)&&((a26==1)&&((a27==1)&&(!(a23==1)&&((input==1)&&((a5==4)||(a5==5)))))))&&(a17==2))&&(a16==8)))&&(((!(a13==1)&&((((a23==1)&&(a1==14))&&(a19==2))&&(a27==1)))&&(a21==11))&&!(a11==1)))){ + a19 = 1; + a11 = 0; + a26 = 1; + a5 = 6; + a16 = 7; + a15 = 1; + a9 = 9; + a1 = 13; + return 25; + } else if((((a16==8)&&((((a12==1)||(a18==1))&&!(a0==1))&&(a19==1)))&&(((a13==1)&&((((a23==1)&&(((a1==12)&&((((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11)))&&(input==5))&&!(a4==1)))&&(a3==1)))&&(a21==10))&&(a17==2)))&&(a20==1)))){ + a4 = 0; + a16 = 9; + a9 = 9; + a19 = 2; + a0 = 0; + a21 = 12; + a5 = 6; + a27 = 0; + return 22; + } else if((((((a11==1)&&((a21==12)&&((a28==1)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==3)))))&&(a6==1))&&(a1==14))&&(!(a8==1)&&(((a20==1)&&((((a17==2)&&((a19==5)&&(a13==1)))&&(a13==1))&&(a16==7)))&&(a28==1))))){ + a9 = 7; + a21 = 10; + a2 = 1; + a5 = 4; + a6 = 1; + a1 = 12; + a18 = 0; + a19 = 1; + return -1; + } else if((((a18==1)||(((a19==2)&&(!(a12==1)||((a23==1)&&(a16==10))))||!(a28==1)))&&((a21==10)&&(((((((a28==1)&&((input==3)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))))&&(a17==2))&&!(a27==1))&&(a20==1))&&!(a24==1))&&(a1==12))))){ + a5 = 4; + a19 = 1; + a7 = 0; + a16 = 7; + a27 = 0; + a9 = 7; + a8 = 0; + return -1; + } else if((((((((a17==2)&&((((a5==5)||(a5==6))&&(input==3))&&(a1==12)))&&!(a26==1))&&(a12==1))&&!(a4==1))&&(a19==3))&&((a21==10)&&((a9==10)&&((a27==1)||((((a16==7)&&((a12==1)&&(a20==1)))||(a8==1))&&(a28==1))))))){ + a9 = 7; + a14 = 0; + a28 = 1; + a26 = 0; + a5 = 4; + a19 = 1; + return -1; + } else if((((a21==12)&&((a9==10)&&((a28==1)&&((a28==1)&&(!(a24==1)&&(((input==5)&&(a16==10))&&!(a0==1)))))))&&((a17==2)&&((a5==4)&&((a19==3)&&(!(a28==1)||((a28==1)&&((a1==12)&&((a28==1)&&(a20==1)))))))))){ + a23 = 1; + a5 = 5; + a21 = 10; + a19 = 5; + a16 = 8; + a20 = 0; + a2 = 1; + a27 = 0; + a9 = 11; + return 21; + } else if((((a19==1)&&(((a3==1)&&(((((((a5==6)&&(a1==12))&&(a9==11))||(((a1==13)&&(a5==4))&&(a9==7)))&&(input==6))&&(a17==2))&&!(a14==1)))&&(a16==10)))&&((a21==12)&&(!(a20==1)&&((a4==1)||(!(a0==1)&&(((a28==1)||!(a28==1))||!(a12==1)))))))){ + if((a24==1)){ + a1 = 12; + a2 = 0; + a20 = 1; + a21 = 11; + a9 = 11; + a6 = 0; + a26 = 1; + a5 = 6; + a19 = 4; + }else{ + a1 = 14; + a0 = 1; + a8 = 1; + a9 = 8; + a5 = 6; + a20 = 1; + a16 = 7; + a13 = 0; + a21 = 10; + } + return -1; + } else if(((((a1==13)&&(!(a3==1)||(!(a20==1)&&((((a2==1)||!(a6==1))||!(a3==1))||!(a12==1)))))&&(a9==11))&&((a17==2)&&((((((a16==7)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1)))&&(a23==1))&&(a21==12))&&(a19==2))&&!(a26==1))))){ + a1 = 14; + a20 = 1; + a5 = 6; + a24 = 0; + a26 = 0; + a16 = 8; + a28 = 1; + return 23; + } else if((((a20==1)&&((((((a23==1)&&(((a12==1)&&((a1==13)&&((a6==1)&&(a13==1))))&&(a9==8)))||!(a23==1))&&(a21==10))&&(a17==2))&&(a16==7)))&&((!(a18==1)&&(((input==4)&&((a5==4)||(a5==5)))&&(a28==1)))&&(a19==4)))){ + a11 = 1; + a5 = 4; + a0 = 0; + a9 = 7; + a1 = 12; + a19 = 1; + a3 = 1; + return -1; + } else if(((!(a4==1)&&(((a17==2)&&((a1==13)&&((a20==1)&&(((a5==5)||(a5==6))&&(input==5)))))&&(a3==1)))&&((a3==1)&&(((a21==10)&&(((a9==10)&&((!(a28==1)||((a3==1)&&(a11==1)))&&(a19==1)))||(a27==1)))&&(a16==11))))){ + a5 = 4; + a28 = 1; + a9 = 7; + a3 = 1; + a1 = 12; + a16 = 7; + return -1; + } else if((((a21==12)&&(((((a23==1)&&(a12==1))&&(a16==7))&&(a19==2))&&!(a20==1)))&&(((((a9==8)&&((a23==1)&&((a13==1)&&((a1==12)&&(((a17==2)&&(input==6))&&!(a8==1))))))&&(a6==1))&&(a13==1))&&(a5==6)))){ + a5 = 4; + a28 = 1; + a20 = 1; + a3 = 1; + a19 = 1; + a21 = 10; + a9 = 7; + a0 = 0; + return -1; + } else if(((((a13==1)&&((a20==1)&&((a16==10)&&(!(a7==1)&&((((((a1==13)&&(a5==6))&&(a9==11))||(((a5==4)&&(a1==14))&&(a9==7)))&&(input==4))&&!(a0==1))))))&&(a3==1))&&(!(a27==1)&&((((a17==2)&&((a28==1)&&(a19==3)))&&(a21==12))&&(a12==1))))){ + a19 = 1; + a1 = 12; + a5 = 4; + a9 = 7; + a14 = 0; + a21 = 10; + a3 = 1; + a16 = 7; + a24 = 0; + return -1; + } else if((((a1==13)&&((a5==5)&&(!(a27==1)&&((a20==1)&&((a21==10)&&((a28==1)||(a8==1)))))))&&(((!(a4==1)&&((((((input==4)&&(a19==3))&&(a16==7))&&(a17==2))&&(a9==8))&&!(a26==1)))&&!(a7==1))&&(a3==1)))){ + a5 = 4; + a18 = 0; + a9 = 7; + a19 = 1; + a23 = 1; + a12 = 1; + a1 = 12; + return -1; + } else if(((!(a23==1)||(((a16==10)&&((a8==1)||((((a2==1)&&!(a0==1))&&(a1==14))||(a8==1))))||(a18==1)))&&((a11==1)&&((a20==1)&&((a17==2)&&((a21==10)&&((a9==10)&&((a19==3)&&((input==4)&&((a5==4)||(a5==5))))))))))){ + a5 = 4; + a28 = 1; + a16 = 7; + a23 = 1; + a1 = 12; + a19 = 1; + a2 = 1; + a9 = 7; + return -1; + } else if(((((a8==1)||(!(a13==1)||(!(a0==1)&&((((a20==1)&&(((a6==1)&&(a16==9))&&(a17==2)))&&(a19==4))&&(a21==10)))))&&(a11==1))&&(((((input==6)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&!(a4==1))&&(a23==1))&&(a1==14)))){ + a19 = 1; + a9 = 7; + a16 = 10; + a8 = 0; + a28 = 1; + a7 = 0; + a5 = 4; + return 21; + } else if((((((a17==2)&&((a19==3)&&((a21==12)&&((input==5)&&((((a1==14)&&(a5==4))&&(a9==7))||((((a5==5)&&(a1==13))&&(a9==11))||(((a5==6)&&(a1==13))&&(a9==11))))))))&&(a13==1))&&!(a27==1))&&(!(a8==1)&&((a2==1)&&(!(a6==1)||(!(a0==1)&&((a16==7)&&(!(a20==1)&&(a2==1))))))))){ + if((a2==1)){ + a24 = 0; + a19 = 1; + a28 = 1; + a21 = 10; + a1 = 12; + a9 = 11; + a11 = 1; + a5 = 5; + a16 = 8; + }else{ + a27 = 0; + a19 = 5; + a5 = 5; + a20 = 1; + a16 = 10; + a1 = 14; + a24 = 0; + a21 = 10; + a9 = 7; + } + return 23; + } else if(((!(a18==1)&&((a21==10)&&(((a17==2)&&((a6==1)&&(a11==1)))&&(a16==7))))&&((!(a8==1)&&((a13==1)&&(!(a24==1)&&(((input==5)&&((((a19==2)&&(((a1==14)&&(a5==5))&&(a9==11)))||((a19==2)&&((a9==11)&&((a1==14)&&(a5==6)))))||((((a5==4)&&(a1==12))&&(a9==7))&&(a19==3))))&&!(a20==1)))))&&!(a8==1)))){ + a19 = 1; + a1 = 12; + a5 = 4; + a3 = 1; + a9 = 7; + a2 = 1; + a0 = 0; + a20 = 1; + return -1; + } else if(((!(a20==1)&&((!(a24==1)&&((((!(a26==1)&&((((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a13==1))&&(a17==2)))&&(a23==1))&&(a19==1))&&(a6==1)))&&(a16==8)))&&(((((a9==10)&&(a2==1))&&(a1==13))&&(a21==10))||(a4==1)))){ + a1 = 12; + a20 = 1; + a12 = 1; + a13 = 1; + a16 = 7; + a5 = 4; + a18 = 0; + a9 = 7; + return -1; + } else if(((((!(a28==1)&&(((((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==3))&&!(a20==1))&&!(a2==1))&&(a21==11)))&&(a27==1))&&(a18==1))&&((a16==8)&&((((a17==2)&&(((a2==1)&&(a19==2))&&!(a3==1)))&&(a1==13))&&(a24==1))))){ + a9 = 11; + a4 = 1; + a19 = 3; + a0 = 1; + a16 = 7; + a5 = 6; + return -1; + } else if((((a1==14)&&(((a5==5)&&(((!(a27==1)&&((a17==2)&&(!(a27==1)&&((input==5)&&(a21==11)))))&&!(a26==1))&&!(a8==1)))&&(a19==3)))&&((a16==10)&&((a28==1)&&((a9==8)&&(((a28==1)&&!(a26==1))&&(a20==1))))))){ + a16 = 7; + a3 = 1; + a9 = 9; + a19 = 2; + a2 = 1; + a7 = 0; + a5 = 4; + a1 = 13; + a21 = 10; + return 25; + } else if(((!(a23==1)&&(((a14==1)&&((a9==8)&&(!(a20==1)&&(((a3==1)&&!(a13==1))&&(a16==8)))))&&(a17==2)))&&((((((a0==1)&&(((input==4)&&((a5==4)||(a5==5)))&&(a4==1)))&&(a19==2))&&!(a11==1))&&(a21==11))&&(a1==13)))){ + a1 = 12; + a9 = 9; + a29 = 0; + a5 = 6; + a18 = 1; + a21 = 10; + a8 = 1; + return -1; + } else if(((((a20==1)&&(!(a11==1)||((a17==2)&&((a11==1)||(a27==1)))))&&(a19==3))&&(((!(a8==1)&&(((a16==8)&&(((input==4)&&((((a5==4)&&(a1==14))&&(a9==7))||((((a5==5)&&(a1==13))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==13))))))&&(a2==1)))&&(a11==1)))&&!(a24==1))&&(a21==12)))){ + a2 = 1; + a19 = 1; + a21 = 10; + a6 = 1; + a23 = 1; + a5 = 4; + a1 = 12; + a16 = 7; + a9 = 7; + return -1; + } else if((((((!(a27==1)&&((a2==1)&&((a1==14)&&((((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(input==4)))))&&(a16==9))&&(a21==11))&&(a3==1))&&((((!(a28==1)||((a19==2)&&((a17==2)&&(a11==1))))&&!(a20==1))||!(a28==1))||(a27==1)))){ + if((a14==1)){ + a21 = 10; + a20 = 1; + a1 = 13; + a19 = 1; + a16 = 7; + a5 = 4; + a9 = 7; + a24 = 1; + a12 = 0; + }else{ + a9 = 10; + a5 = 6; + a21 = 12; + a16 = 7; + a3 = 0; + a25 = 0; + a20 = 1; + a24 = 1; + a1 = 13; + a19 = 1; + } + return -1; + } else if((((((a21==10)&&(((a6==1)&&(((a5==4)||(a5==5))&&(input==5)))&&(a1==13)))&&!(a18==1))&&(a23==1))&&(!(a20==1)&&(((((a19==4)&&(((a2==1)&&((a8==1)||(a3==1)))&&(a9==10)))&&!(a4==1))&&(a17==2))&&(a16==8))))){ + a19 = 1; + a1 = 12; + a16 = 7; + a27 = 0; + a20 = 1; + a14 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if((((a17==2)&&((a14==1)||(((!(a26==1)&&(((a27==1)||((a1==13)&&(a13==1)))&&(a23==1)))&&(a19==3))&&!(a18==1))))&&((((a12==1)&&(!(a20==1)&&((a21==11)&&((input==5)&&(a5==5)))))&&(a9==9))&&(a16==9)))){ + a20 = 1; + a2 = 0; + a16 = 11; + a9 = 8; + a29 = 0; + a1 = 14; + a11 = 0; + return -1; + } else if(((!(a14==1)&&((a21==11)&&((a16==7)&&(((a17==2)&&(((((((a5==5)&&(a1==14))&&(a9==7))||(((a9==11)&&((a5==6)&&(a1==13)))||((a9==7)&&((a1==14)&&(a5==4)))))&&(input==3))&&!(a7==1))&&!(a27==1)))&&(a20==1)))))&&(!(a28==1)||((a19==1)&&(((a28==1)&&!(a0==1))||!(a6==1)))))){ + a1 = 14; + a6 = 1; + a14 = 0; + a21 = 10; + a8 = 0; + a9 = 8; + a5 = 5; + a16 = 8; + return 21; + } else if((((((a21==10)&&(((a19==5)&&((a2==1)&&(a20==1)))&&(a16==9)))&&(a1==14))&&!(a18==1))&&((((!(a27==1)&&((a17==2)&&(((((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(input==5))&&!(a27==1))))&&!(a4==1))&&(a13==1))&&(a12==1)))){ + a9 = 9; + a19 = 3; + a8 = 0; + a21 = 12; + a16 = 10; + a1 = 13; + a23 = 1; + a5 = 6; + a6 = 1; + return 21; + } else if((((a19==1)&&(((a11==1)&&(((a11==1)&&((a13==1)&&((a1==14)&&(!(a14==1)&&(((a13==1)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==3)))&&(a16==10))))))&&!(a26==1)))&&(a21==10)))&&(((a13==1)&&!(a20==1))&&(a17==2)))){ + if((a12==1)){ + a5 = 6; + a22 = 1; + a14 = 1; + a16 = 8; + a1 = 12; + a21 = 11; + a19 = 2; + a9 = 9; + }else{ + a1 = 13; + a5 = 4; + a9 = 7; + a23 = 0; + a19 = 2; + a16 = 7; + a29 = 1; + a20 = 1; + a3 = 0; + } + return -1; + } else if((((a3==1)&&(!(a18==1)&&(((a21==11)&&((((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7))))&&(input==5)))&&(a17==2))))&&(((!(a18==1)&&((a19==2)&&((!(a7==1)&&(((a23==1)||!(a12==1))&&(a1==13)))&&!(a20==1))))&&(a13==1))&&(a16==10)))){ + if((a26==1)){ + a5 = 4; + a21 = 10; + a20 = 1; + a11 = 0; + a26 = 1; + a16 = 7; + a0 = 1; + a1 = 12; + a19 = 1; + a9 = 8; + }else{ + a4 = 1; + a16 = 7; + a20 = 1; + a5 = 6; + a9 = 10; + a7 = 1; + a21 = 10; + a19 = 1; + a1 = 14; + a15 = 1; + } + return 21; + } else if((((a21==10)&&(((((((input==4)&&(((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))))&&(a19==5))&&(a2==1))&&!(a8==1))&&!(a27==1))&&(a16==10)))&&((((a17==2)&&((!(a20==1)&&(!(a4==1)&&(a23==1)))&&(a1==13)))&&(a3==1))||(a8==1)))){ + a20 = 1; + a16 = 7; + a7 = 1; + a9 = 8; + a1 = 12; + a12 = 0; + a19 = 1; + a8 = 1; + a5 = 6; + return -1; + } else if(((((a21==10)&&(((a19==5)&&((!(a14==1)&&((((a23==1)&&((input==4)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))))&&!(a27==1))&&!(a4==1)))&&(a13==1)))&&(a16==8)))&&(a20==1))&&((a17==2)&&((a1==14)&&((a23==1)&&!(a27==1)))))){ + a16 = 7; + a13 = 1; + a9 = 7; + a5 = 4; + a0 = 0; + a1 = 12; + a19 = 1; + a14 = 0; + return -1; + } else if((((((((a23==1)&&(a3==1))||!(a28==1))&&!(a24==1))&&(a23==1))&&(a17==2))&&((a21==10)&&((a19==4)&&(!(a20==1)&&((a16==10)&&(((a13==1)&&((input==6)&&((((a9==11)&&((a5==6)&&(a1==12)))||((a9==7)&&((a1==13)&&(a5==4))))||(((a1==13)&&(a5==5))&&(a9==7)))))&&(a2==1)))))))){ + a10 = 0; + a20 = 1; + a19 = 1; + a16 = 7; + a9 = 11; + a13 = 0; + a5 = 6; + a23 = 0; + a1 = 14; + return -1; + } else if((((a1==14)&&((a21==11)&&((((a28==1)&&(((a28==1)&&((a20==1)&&((input==1)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))))&&(a19==5)))&&!(a24==1))&&(a28==1))))&&((a17==2)&&((((a28==1)&&(a16==11))&&(a13==1))&&!(a24==1))))){ + if((a24==1)){ + a8 = 0; + a20 = 0; + a16 = 7; + a0 = 0; + a1 = 12; + a12 = 1; + a5 = 5; + a9 = 10; + }else{ + a19 = 2; + a16 = 10; + a9 = 10; + a2 = 1; + a5 = 4; + a1 = 12; + a3 = 1; + a27 = 0; + } + return 25; + } else if(((((a19==4)&&((a11==1)&&(((a9==8)&&(a6==1))&&!(a18==1))))&&(a16==8))&&((a1==12)&&((((a17==2)&&(!(a27==1)&&((a2==1)&&((((input==5)&&(a5==5))&&(a11==1))&&!(a20==1)))))&&(a21==11))&&(a11==1))))){ + a23 = 1; + a1 = 13; + a6 = 1; + a16 = 7; + a5 = 4; + a21 = 10; + a20 = 1; + a8 = 0; + a19 = 3; + return 22; + } else if((((a19==1)&&((((a21==12)&&(((a4==1)||(a12==1))&&(a1==14)))||!(a23==1))&&(a17==2)))&&((a9==10)&&(((!(a4==1)&&((a11==1)&&((((a5==5)&&(input==5))&&!(a7==1))&&(a16==7))))&&!(a24==1))&&!(a20==1))))){ + a6 = 1; + a20 = 1; + a21 = 10; + a1 = 12; + a3 = 1; + a8 = 0; + a5 = 4; + a9 = 7; + return -1; + } else if((((a1==12)&&(((a11==1)&&((a16==9)&&((a13==1)&&(a20==1))))&&!(a24==1)))&&(((a12==1)&&((!(a0==1)&&((a21==12)&&(((a12==1)&&(!(a24==1)&&((a9==11)&&(input==3))))&&(a5==6))))&&(a17==2)))&&(a19==3)))){ + a13 = 1; + a14 = 0; + a5 = 4; + a27 = 0; + a19 = 1; + a16 = 7; + a9 = 7; + a21 = 10; + return -1; + } else if(((((a19==5)&&(((a28==1)&&((a13==1)&&(((input==4)&&(((a9==11)&&((a1==13)&&(a5==6)))||((a9==7)&&((a5==4)&&(a1==14)))))&&(a28==1))))&&!(a26==1)))&&!(a20==1))&&((a16==8)&&((a17==2)&&((!(a0==1)&&((a7==1)||(a6==1)))&&(a21==11)))))){ + if((a0==1)){ + a1 = 12; + a5 = 5; + a22 = 1; + a9 = 7; + a10 = 1; + a19 = 1; + a16 = 7; + }else{ + a19 = 3; + a20 = 1; + a3 = 0; + a5 = 4; + a1 = 12; + a9 = 7; + a16 = 7; + a14 = 1; + a2 = 0; + a21 = 12; + } + return -1; + } else if(((((a2==1)&&((a17==2)&&((a1==12)&&(a13==1))))&&(a16==11))&&((((a13==1)&&((a9==11)&&((a19==1)&&((((((input==1)&&((a5==5)||(a5==6)))&&!(a8==1))&&(a21==11))&&(a20==1))&&(a28==1)))))&&(a3==1))&&(a28==1)))){ + a24 = 0; + a5 = 5; + a19 = 5; + a1 = 13; + a6 = 1; + a9 = 9; + a28 = 1; + return 22; + } else if(((((a20==1)&&((a17==2)&&((a21==10)&&((a16==10)&&(a11==1)))))&&(a23==1))&&(!(a24==1)&&((a12==1)&&((a19==1)&&((!(a0==1)&&(((input==5)&&((((a5==4)&&(a1==13))&&(a9==7))||(((a9==11)&&((a1==12)&&(a5==5)))||(((a1==12)&&(a5==6))&&(a9==11)))))&&(a6==1)))&&(a23==1))))))){ + a24 = 0; + a9 = 7; + a16 = 7; + a1 = 12; + a4 = 0; + a5 = 4; + a12 = 1; + return -1; + } else if(((((a9==10)&&(((a19==4)&&((((a13==1)&&(a6==1))&&(a12==1))||!(a11==1)))&&!(a20==1)))&&(a5==6))&&((a21==12)&&(((((a17==2)&&(((a1==12)&&(input==6))&&(a28==1)))&&!(a8==1))&&!(a0==1))&&(a16==10))))){ + a12 = 0; + a1 = 13; + a16 = 9; + a26 = 1; + a19 = 2; + a5 = 4; + a9 = 8; + a3 = 0; + return -1; + } else if(((((a5==6)&&((a17==2)&&(!(a8==1)&&(((a16==10)&&(input==6))&&(a21==12)))))&&(a1==14))&&(((a19==4)&&(!(a18==1)&&((a9==11)&&(!(a27==1)&&(((a7==1)||(!(a4==1)&&(a2==1)))&&!(a18==1))))))&&!(a20==1)))){ + a19 = 5; + a5 = 5; + a21 = 11; + a29 = 0; + a1 = 12; + a7 = 1; + a16 = 8; + a24 = 1; + return 22; + } else if((((a21==11)&&((a18==1)||((a17==2)&&(((a16==9)&&(!(a20==1)&&((a12==1)||!(a13==1))))&&(a2==1)))))&&((!(a18==1)&&((a1==13)&&((a11==1)&&(!(a18==1)&&(((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a9==11))))))&&(a19==1)))){ + a1 = 12; + a16 = 7; + a5 = 6; + a20 = 1; + a23 = 0; + a21 = 10; + a29 = 0; + return 25; + } else if((((((((!(a20==1)&&(((input==4)&&(a16==8))&&(a9==7)))&&!(a14==1))&&(a21==11))&&!(a7==1))&&(a17==2))&&!(a7==1))&&(((a19==3)&&((a1==13)&&((a0==1)||(((a11==1)||(a26==1))||!(a13==1)))))&&(a5==6)))){ + a21 = 12; + a12 = 1; + a19 = 5; + a9 = 10; + a5 = 4; + a28 = 1; + a7 = 0; + a20 = 1; + return -1; + } else if((((a16==10)&&(((a17==2)&&(((a19==1)&&((((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))&&(input==3)))&&(a23==1)))&&(a21==10)))&&(!(a0==1)&&(!(a12==1)||((a2==1)&&(!(a2==1)||(((a2==1)&&((a23==1)&&!(a20==1)))&&(a1==13)))))))){ + a3 = 0; + a2 = 0; + a21 = 11; + a5 = 6; + a19 = 3; + a23 = 0; + a9 = 7; + return -1; + } else if((((a1==12)&&(((((a16==9)&&((((a13==1)||(a27==1))&&!(a8==1))&&(a20==1)))&&(a11==1))&&(a19==4))&&!(a0==1)))&&((a9==9)&&(((a21==10)&&(!(a4==1)&&(((input==4)&&((a5==4)||(a5==5)))&&(a17==2))))&&!(a26==1))))){ + a19 = 1; + a27 = 0; + a9 = 7; + a11 = 1; + a28 = 1; + a16 = 7; + a5 = 4; + return -1; + } else if((((((!(a24==1)&&(((((input==5)&&(((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))&&(a13==1))&&(a19==4))&&(a16==9)))&&!(a0==1))&&(a1==12))&&(a17==2))&&((a11==1)&&(!(a24==1)&&(((a13==1)&&(!(a20==1)&&(a3==1)))&&(a21==10)))))){ + if((a24==1)){ + a1 = 13; + a19 = 2; + a5 = 6; + a15 = 0; + a16 = 11; + a9 = 9; + a6 = 0; + }else{ + a12 = 0; + a21 = 12; + a16 = 7; + a5 = 6; + a20 = 1; + a19 = 1; + a22 = 0; + a9 = 10; + a1 = 13; + a0 = 1; + } + return 21; + } else if(((!(a8==1)&&((((a16==8)&&((a21==12)&&((a19==4)&&((a17==2)&&(!(a18==1)&&((input==5)&&(((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))))))))&&(a13==1))&&(a6==1)))&&((a14==1)||((((a20==1)&&(a13==1))||!(a3==1))&&(a1==14))))){ + a0 = 0; + a13 = 1; + a5 = 6; + a21 = 10; + a7 = 0; + a9 = 11; + a20 = 0; + return 26; + } else if((((a7==1)||((((((a21==10)&&(a23==1))&&(a9==9))&&(a1==12))&&(a28==1))&&!(a14==1)))&&((a16==8)&&(((((a5==4)&&(((a6==1)&&((input==1)&&(a19==4)))&&(a23==1)))&&!(a20==1))&&(a17==2))&&(a28==1))))){ + a21 = 11; + a5 = 5; + a20 = 1; + a9 = 7; + a16 = 9; + a24 = 0; + a14 = 0; + a0 = 0; + return 21; + } else if(((((!(a7==1)&&(!(a26==1)&&(((a23==1)&&(((input==5)&&(((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))&&!(a0==1)))&&(a1==14))))&&!(a14==1))&&(a12==1))&&((a17==2)&&(!(a20==1)&&(((a21==11)&&((a11==1)&&(a19==4)))&&(a16==8)))))){ + a5 = 4; + a13 = 1; + a28 = 1; + a27 = 0; + a20 = 1; + a1 = 12; + a16 = 7; + a9 = 11; + return 25; + } else if(((((((a9==10)&&((!(a8==1)&&(!(a20==1)&&((a21==12)&&(((((a5==5)||(a5==6))&&(input==6))&&(a16==9))&&(a17==2)))))&&(a1==12)))&&(a19==1))&&!(a14==1))&&!(a26==1))&&((((a11==1)&&(a3==1))&&!(a27==1))||(a0==1)))){ + a9 = 11; + a20 = 1; + a23 = 0; + a5 = 6; + a22 = 1; + a21 = 10; + a16 = 7; + return 22; + } else if((((a17==2)&&(((((a19==3)&&((a23==1)&&((a14==1)||((a20==1)&&((a16==10)&&((a6==1)&&(a1==12)))))))&&(a21==11))&&(a2==1))&&(a28==1)))&&(((((a9==7)&&(input==1))&&(a11==1))&&(a12==1))&&(a5==4)))){ + a26 = 0; + a16 = 7; + a4 = 0; + a21 = 10; + a19 = 1; + a28 = 1; + return -1; + } else if(((!(a27==1)&&(((((a17==2)&&((((((a9==11)&&((a5==5)&&(a1==14)))&&(a19==4))||((a19==4)&&(((a5==6)&&(a1==14))&&(a9==11))))||((a19==5)&&((a9==7)&&((a5==4)&&(a1==12)))))&&(input==6)))&&(a11==1))&&(a28==1))&&(a23==1)))&&(!(a6==1)||(((((a21==12)&&(a2==1))&&!(a20==1))&&!(a26==1))&&(a16==8))))){ + if((a16==9)){ + a9 = 11; + a24 = 1; + a19 = 1; + a21 = 10; + a20 = 1; + a5 = 4; + a23 = 0; + a16 = 7; + a1 = 14; + }else{ + a20 = 1; + a9 = 10; + a2 = 0; + a5 = 5; + a16 = 7; + a19 = 2; + a22 = 1; + a21 = 10; + a1 = 12; + a28 = 0; + } + return -1; + } else if((((!(a20==1)&&(((a7==1)||((a9==8)&&((a27==1)||(((a17==2)&&((a16==10)&&((a13==1)&&(a5==5))))&&(a28==1)))))||(a14==1)))&&(a21==12))&&(!(a27==1)&&(!(a4==1)&&(((a19==5)&&(input==1))&&(a1==12)))))){ + a5 = 4; + a13 = 0; + a9 = 10; + a11 = 0; + a1 = 13; + a15 = 0; + a19 = 1; + a21 = 10; + a16 = 7; + a20 = 1; + return 25; + } else if(((((a21==11)&&(((((((a5==5)||(a5==6))&&(input==6))&&(a23==1))&&!(a20==1))&&(a12==1))&&(a1==14)))&&(a13==1))&&((a17==2)&&(!(a4==1)&&((a16==9)&&((!(a18==1)&&(!(a27==1)&&((a23==1)&&(a9==11))))&&(a19==3))))))){ + a20 = 1; + a16 = 7; + a22 = 0; + a19 = 2; + a24 = 1; + a21 = 10; + a1 = 12; + a5 = 4; + a2 = 0; + return 25; + } else if((((!(a20==1)&&(((a5==6)&&(((a12==1)&&(((a16==8)&&(input==3))&&(a21==10)))&&!(a26==1)))&&(a9==9)))&&(a1==12))&&((a19==2)&&((!(a4==1)&&(((a27==1)||((a12==1)&&(a3==1)))&&(a17==2)))&&(a23==1))))){ + a23 = 1; + a5 = 4; + a20 = 1; + a9 = 7; + a27 = 0; + a19 = 1; + a28 = 1; + a16 = 7; + return -1; + } else if(((!(a26==1)&&(((((!(a20==1)&&(input==5))&&(a1==13))&&(a5==4))&&!(a14==1))&&(a23==1)))&&((a19==1)&&(((((((a12==1)&&((a28==1)&&(a21==10)))||(a0==1))&&(a9==10))||!(a12==1))&&(a17==2))&&(a16==11))))){ + a19 = 2; + a15 = 1; + a16 = 7; + a23 = 0; + a9 = 9; + a1 = 12; + a20 = 1; + a25 = 1; + return 23; + } else if((((a1==12)&&(((a17==2)&&((a11==1)&&(!(a27==1)&&((input==1)&&((a5==5)||(a5==6))))))&&(a21==11)))&&(!(a0==1)&&((a19==1)&&((a9==11)&&(!(a13==1)||(((a16==7)&&((a26==1)||(!(a8==1)&&(a6==1))))&&(a20==1)))))))){ + a5 = 4; + a26 = 0; + a9 = 7; + a3 = 1; + a28 = 1; + a21 = 10; + return -1; + } else if(((!(a7==1)&&((a20==1)&&((((a28==1)&&((((((a5==4)&&(a1==12))&&(a9==7))&&(a19==5))||(((a19==4)&&((a9==11)&&((a1==14)&&(a5==5))))||((a19==4)&&((a9==11)&&((a1==14)&&(a5==6))))))&&(input==6)))&&(a23==1))&&(a16==9))))&&(((!(a27==1)&&(((a23==1)&&(a21==11))||(a14==1)))||!(a13==1))&&(a17==2)))){ + a1 = 14; + a26 = 0; + a5 = 4; + a2 = 1; + a16 = 10; + a9 = 7; + a21 = 10; + a19 = 1; + a23 = 1; + return 21; + } else if((((a16==11)&&(((a24==1)||(((((a28==1)||(a0==1))&&!(a4==1))&&!(a18==1))&&(a12==1)))||!(a12==1)))&&((((a20==1)&&((a1==12)&&((a21==12)&&((input==5)&&(((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))))))&&(a17==2))&&(a19==3)))){ + a16 = 7; + a9 = 9; + a4 = 0; + a5 = 4; + a8 = 0; + a21 = 11; + a1 = 14; + a18 = 0; + return 23; + } else if((((a17==2)&&((((!(a27==1)&&((input==3)&&(((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))))&&!(a24==1))&&(a28==1))&&(a1==12)))&&(((!(a8==1)&&(((((a16==8)&&(a2==1))&&(a19==4))&&(a21==11))&&!(a20==1)))&&!(a14==1))||(a7==1)))){ + a5 = 5; + a16 = 9; + a20 = 1; + a19 = 1; + a9 = 8; + a28 = 1; + a2 = 1; + return -1; + } else if((((a20==1)&&(((a19==5)&&(!(a14==1)&&((a3==1)||(a18==1))))||!(a2==1)))&&((a9==7)&&(((a1==14)&&(((((((a16==10)&&(input==6))&&(a5==4))&&!(a0==1))&&(a2==1))&&!(a7==1))&&(a17==2)))&&(a21==12))))){ + a13 = 1; + a6 = 1; + a3 = 1; + a5 = 5; + a16 = 8; + return 22; + } else if(((((a18==1)||(((a12==1)&&(!(a20==1)&&(a2==1)))||(a4==1)))&&(a17==2))&&((a19==1)&&((a1==12)&&(((((a9==7)&&(!(a26==1)&&(((a5==4)&&(input==6))&&(a21==11))))&&!(a27==1))&&(a28==1))&&(a16==9)))))){ + a29 = 1; + a3 = 0; + a20 = 1; + a16 = 11; + a1 = 13; + a9 = 9; + a6 = 0; + a5 = 6; + a19 = 5; + return 25; + } else if((((a16==10)&&(((!(a27==1)&&((a21==11)&&(a28==1)))||(a27==1))&&(a28==1)))&&((((((!(a27==1)&&((a19==2)&&(((input==4)&&((a5==4)||(a5==5)))&&!(a18==1))))&&(a20==1))&&!(a27==1))&&(a17==2))&&(a9==11))&&(a1==13)))){ + a4 = 0; + a9 = 7; + a16 = 7; + a5 = 4; + a1 = 12; + a21 = 10; + a18 = 0; + a13 = 1; + a19 = 1; + return -1; + } return calculate_output59(input); + } + + int calculate_output59(int input) { + if(((((a19==2)&&(a2==1))&&(a5==4))&&((((a1==14)&&((a3==1)&&(!(a18==1)&&((a9==7)&&((((a2==1)&&((((input==6)&&(a16==7))&&!(a20==1))&&(a13==1)))&&(a28==1))&&!(a4==1))))))&&(a21==12))&&(a17==2)))){ + a21 = 10; + a14 = 0; + a1 = 12; + a20 = 1; + a28 = 1; + a19 = 1; + return -1; + } else if(((((a1==14)&&(((a16==7)&&((a17==2)&&((a2==1)||(a24==1))))&&(a21==10)))||!(a2==1))&&((((a11==1)&&(!(a0==1)&&((((input==3)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&!(a20==1))&&(a19==5))))&&(a13==1))&&!(a18==1)))){ + a9 = 7; + a4 = 0; + a2 = 1; + a14 = 0; + a1 = 12; + a20 = 1; + a19 = 1; + a5 = 4; + return -1; + } else if((((a20==1)&&((((a13==1)&&(((input==6)&&(((((a9==11)&&((a1==14)&&(a5==5)))&&(a19==2))||((a19==2)&&((a9==11)&&((a5==6)&&(a1==14)))))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==3))))&&(a17==2)))&&(a21==11))&&(a23==1)))&&(((a6==1)&&(((a11==1)&&((a2==1)||!(a13==1)))&&!(a8==1)))&&(a16==8)))){ + a19 = 1; + a9 = 7; + a2 = 1; + a1 = 12; + a5 = 4; + a16 = 7; + a14 = 0; + a23 = 1; + a21 = 10; + return -1; + } else if((((((a21==10)&&(((a17==2)&&((a12==1)&&!(a24==1)))||(a4==1)))&&!(a20==1))&&(a19==5))&&(((!(a4==1)&&((((a11==1)&&(((a5==6)&&(input==1))&&(a16==8)))&&(a9==7))&&!(a4==1)))&&(a28==1))&&(a1==12)))){ + a20 = 1; + a16 = 7; + a5 = 5; + a9 = 8; + a18 = 0; + a19 = 2; + a2 = 1; + a1 = 14; + return 23; + } else if((((a27==1)&&((a8==1)&&((a16==7)&&((a7==1)&&(((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==5))&&(a1==13))))))&&(!(a12==1)&&((((((!(a20==1)&&(a28==1))&&(a21==11))&&(a19==4))&&(a17==2))&&!(a12==1))&&!(a6==1))))){ + a10 = 0; + a1 = 12; + a21 = 10; + a9 = 11; + a2 = 0; + a19 = 2; + a20 = 1; + a5 = 4; + return 23; + } else if((((a16==10)&&(((((a12==1)&&(!(a24==1)&&((!(a14==1)&&(((a5==4)||(a5==5))&&(input==6)))&&(a1==13))))&&(a28==1))&&(a17==2))&&(a9==10)))&&(((!(a18==1)&&((!(a20==1)&&(a12==1))&&(a19==5)))||!(a13==1))&&(a21==12)))){ + a14 = 1; + a22 = 1; + a5 = 4; + a21 = 10; + a16 = 7; + a9 = 11; + a19 = 3; + a15 = 0; + return -1; + } else if((((a21==12)&&(((a16==8)&&(a12==1))&&(a20==1)))&&(!(a8==1)&&(!(a0==1)&&(((a9==9)&&((a19==2)&&(((!(a24==1)&&(((a23==1)&&((input==3)&&((a5==5)||(a5==6))))&&(a17==2)))&&(a1==14))&&(a6==1))))&&(a2==1)))))){ + a1 = 12; + a16 = 7; + a9 = 7; + a11 = 1; + a5 = 4; + a19 = 1; + a26 = 0; + a21 = 10; + a18 = 0; + return -1; + } else if(((((a6==1)&&(!(a7==1)&&((!(a20==1)&&(((a19==5)&&((a6==1)&&(a16==9)))&&(a1==14)))&&(a17==2))))||(a7==1))&&((((((a21==12)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3)))&&(a9==10))&&(a6==1))&&(a28==1))&&(a2==1)))){ + if((a14==1)){ + a16 = 7; + a21 = 10; + a5 = 5; + a9 = 8; + a19 = 2; + a1 = 12; + a13 = 0; + a23 = 0; + a22 = 1; + }else{ + a5 = 5; + a4 = 1; + a1 = 13; + a19 = 3; + a22 = 1; + a16 = 11; + a20 = 1; + a25 = 0; + } + return -1; + } else if((((!(a26==1)&&(((((a16==7)&&((input==5)&&((a5==4)||(a5==5))))&&(a17==2))&&(a21==12))&&!(a20==1)))&&(a2==1))&&((!(a6==1)||(((((a23==1)&&((a14==1)||(a2==1)))&&(a9==9))&&(a1==12))&&(a19==5)))&&(a28==1)))){ + a1 = 14; + a20 = 1; + a21 = 11; + a2 = 1; + a19 = 1; + a14 = 0; + a5 = 4; + a0 = 0; + return 25; + } else if((((a16==9)&&((((a5==4)&&(a28==1))||!(a2==1))&&!(a18==1)))&&((a1==14)&&((a9==10)&&(((a12==1)&&(((((((a21==11)&&(input==1))&&(a20==1))&&(a13==1))&&(a11==1))&&(a13==1))&&(a19==1)))&&(a17==2)))))){ + a16 = 7; + a9 = 7; + a0 = 0; + a3 = 1; + a13 = 1; + a21 = 10; + a19 = 5; + return 25; + } else if(((((((a12==1)&&((a27==1)||(a2==1)))||!(a11==1))&&(a12==1))&&(a16==8))&&(!(a20==1)&&(!(a0==1)&&((a17==2)&&((a1==12)&&((a19==4)&&((a21==12)&&(!(a8==1)&&((input==1)&&(((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))))))))))))){ + a16 = 11; + a5 = 6; + a20 = 1; + a18 = 1; + a22 = 0; + a19 = 3; + a9 = 10; + return -1; + } else if((((a21==11)&&((!(a20==1)&&((!(a14==1)&&((((a16==8)&&((((a23==1)||(a14==1))&&(a11==1))&&(a17==2)))||(a0==1))&&(a1==12)))&&(a2==1)))||!(a13==1)))&&((a9==10)&&((a19==3)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1)))))){ + a9 = 8; + a1 = 13; + a5 = 6; + a6 = 1; + a14 = 0; + a16 = 10; + a12 = 1; + a19 = 1; + a20 = 1; + return 23; + } else if((((((a19==5)&&(((a11==1)&&(((input==1)&&((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4))))&&!(a8==1)))&&!(a8==1)))&&(a2==1))&&(a16==11))&&((a1==14)&&((((a3==1)&&((a21==11)&&((a20==1)&&(a13==1))))||!(a6==1))&&(a17==2))))){ + a6 = 1; + a1 = 13; + a5 = 6; + a9 = 9; + a7 = 0; + a19 = 3; + a21 = 12; + a8 = 0; + return 26; + } else if((((!(a7==1)&&((((((a6==1)&&((a21==12)&&((input==3)&&((a5==4)||(a5==5)))))&&(a16==11))&&(a12==1))&&(a9==11))&&(a20==1)))&&(a1==12))&&(((a17==2)&&((a12==1)&&((a19==3)&&((a6==1)||(a4==1)))))&&(a11==1)))){ + a3 = 1; + a19 = 1; + a0 = 0; + a9 = 7; + a21 = 10; + a5 = 4; + a16 = 7; + a7 = 0; + return -1; + } else if((((((a16==7)&&(((a19==1)&&(!(a20==1)&&((input==1)&&((a5==5)||(a5==6)))))&&(a23==1)))&&!(a4==1))&&(a9==9))&&(((!(a6==1)||(!(a8==1)&&(!(a8==1)&&(((a21==10)&&(a2==1))&&!(a7==1)))))&&(a17==2))&&(a1==13)))){ + a1 = 12; + a20 = 1; + a7 = 0; + a13 = 1; + a5 = 4; + a9 = 7; + a3 = 1; + return -1; + } else if((((!(a24==1)&&(!(a24==1)&&((a21==10)&&((a9==10)&&((a17==2)&&(!(a20==1)&&(((a5==6)&&((a16==10)&&(input==3)))&&(a19==5))))))))&&(a6==1))&&((a1==13)&&((a7==1)||(((a13==1)||(a0==1))||!(a28==1)))))){ + a5 = 4; + a19 = 1; + a13 = 0; + a29 = 0; + a9 = 8; + a0 = 1; + a16 = 7; + a20 = 1; + return -1; + } else if((((a27==1)&&(((a16==7)&&((((((input==6)&&(a5==5))&&(a17==2))&&(a26==1))&&(a4==1))&&(a1==14)))&&(a14==1)))&&((a20==1)&&(((a14==1)&&(((a19==5)&&(!(a28==1)&&(a23==1)))&&(a9==7)))&&(a21==11))))){ + a3 = 0; + a20 = 0; + a9 = 8; + a26 = 1; + a21 = 10; + a0 = 1; + return 25; + } else if((((!(a24==1)&&((!(a23==1)||(!(a14==1)&&((a1==12)&&(((a20==1)&&(a13==1))&&(a19==5)))))&&(a17==2)))&&(a16==10))&&((a21==10)&&((((a2==1)&&((a13==1)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a9==9))&&!(a27==1))))){ + a21 = 11; + a5 = 6; + a2 = 1; + a28 = 1; + a12 = 1; + a16 = 8; + a19 = 1; + a1 = 13; + a9 = 8; + return -1; + } else if((((a19==1)&&((((((a17==2)&&(a2==1))&&(a1==12))&&(a28==1))||!(a12==1))&&(a21==11)))&&((a16==8)&&(!(a26==1)&&((!(a24==1)&&((((input==4)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&!(a18==1))&&!(a20==1)))&&!(a27==1)))))){ + a9 = 7; + a21 = 10; + a20 = 1; + a16 = 7; + a5 = 4; + a6 = 1; + a14 = 0; + a28 = 1; + return -1; + } else if((((a19==1)&&((((a9==7)&&(((a13==1)||!(a2==1))&&(a17==2)))&&(a1==14))&&(a3==1)))&&(((a12==1)&&(!(a24==1)&&(((((a21==10)&&((input==6)&&(a5==6)))&&(a6==1))&&(a16==9))&&(a20==1))))&&!(a26==1)))){ + a5 = 5; + a9 = 8; + a7 = 0; + a27 = 0; + a16 = 8; + a24 = 0; + a19 = 5; + return -1; + } else if(((((a9==11)&&((a19==1)&&((a26==1)||((a23==1)&&!(a7==1)))))&&(a5==5))&&((a1==14)&&(((((!(a7==1)&&((a20==1)&&(((a21==12)&&(input==6))&&(a2==1))))&&!(a18==1))&&(a12==1))&&(a17==2))&&(a16==7))))){ + a2 = 1; + a16 = 9; + a11 = 1; + a9 = 8; + a19 = 2; + a28 = 1; + a21 = 10; + a1 = 12; + return 25; + } else if(((((a14==1)||((a21==11)&&((((a6==1)||!(a6==1))||(a8==1))&&(a28==1))))&&(a1==12))&&((a12==1)&&((a20==1)&&(((a16==10)&&((a19==1)&&(((input==1)&&(((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))))&&!(a14==1))))&&(a17==2)))))){ + a5 = 4; + a8 = 0; + a16 = 7; + a28 = 1; + a13 = 1; + a9 = 8; + a20 = 0; + a19 = 4; + return 25; + } else if((((!(a0==1)&&(((a19==1)&&(((a11==1)&&(a21==10))&&!(a14==1)))||!(a13==1)))&&(a17==2))&&(((a16==7)&&(((a1==13)&&(((((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a5==4)&&(a9==9)))&&(input==1))&&(a13==1))&&!(a4==1)))&&!(a7==1)))&&!(a20==1)))){ + a20 = 1; + a11 = 1; + a1 = 12; + a5 = 4; + a9 = 7; + a27 = 0; + a26 = 0; + return -1; + } else if(((((a28==1)&&((a20==1)&&((a23==1)&&(((a6==1)&&((input==1)&&((a5==5)||(a5==6))))&&(a9==11)))))&&(a19==5))&&((a17==2)&&(((((a11==1)&&(!(a14==1)&&(!(a8==1)&&(a23==1))))&&(a21==12))&&(a1==14))&&(a16==9))))){ + if((a11==1)){ + a26 = 0; + a13 = 1; + a20 = 0; + a16 = 8; + a19 = 4; + a27 = 0; + a21 = 10; + a9 = 10; + a5 = 4; + }else{ + a19 = 2; + a7 = 0; + a14 = 0; + a21 = 11; + a28 = 1; + a5 = 5; + a9 = 10; + } + return 21; + } else if(((!(a14==1)&&((a24==1)||(!(a0==1)&&((a9==11)&&((a21==10)&&((!(a20==1)&&(a23==1))&&(a16==10)))))))&&(((a5==4)&&(((a2==1)&&((((a19==2)&&(input==3))&&!(a8==1))&&(a1==13)))&&(a13==1)))&&(a17==2)))){ + a22 = 0; + a6 = 0; + a4 = 1; + a21 = 11; + a19 = 4; + a9 = 7; + a1 = 12; + return -1; + } else if(((!(a11==1)||((a17==2)&&(a2==1)))&&((!(a8==1)&&(!(a18==1)&&(!(a27==1)&&((a2==1)&&((input==5)&&((((a21==12)&&((a19==5)&&((((a9==11)&&((a1==14)&&(a5==5)))&&(a20==1))&&(a16==11))))||(((a19==5)&&(((a20==1)&&((a9==11)&&((a1==14)&&(a5==6))))&&(a16==11)))&&(a21==12)))||((((a16==7)&&(!(a20==1)&&((a9==7)&&((a5==4)&&(a1==12)))))&&(a19==1))&&(a21==10))))))))&&(a12==1)))){ + a20 = 1; + a13 = 1; + a12 = 1; + a1 = 13; + a5 = 4; + a16 = 10; + a19 = 2; + a21 = 12; + a9 = 8; + return 21; + } else if((((a21==11)&&((!(a24==1)&&((((a5==5)&&(((a27==1)||(a2==1))||(a26==1)))&&(a16==9))&&(a20==1)))&&(a19==4)))&&((a13==1)&&(((a13==1)&&((a2==1)&&((a17==2)&&((input==4)&&(a1==13)))))&&(a9==9))))){ + a9 = 8; + a16 = 8; + a19 = 5; + a24 = 0; + a7 = 0; + a21 = 10; + a1 = 12; + return 25; + } else if((((!(a23==1)||((a19==1)&&((a17==2)&&((!(a26==1)&&(a2==1))&&(a20==1)))))&&(a21==11))&&((a13==1)&&(((a16==11)&&(((!(a4==1)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==4)))&&(a1==13))&&!(a8==1)))&&(a11==1))))){ + a21 = 10; + a5 = 4; + a16 = 7; + a6 = 1; + a24 = 0; + a1 = 12; + a9 = 7; + return -1; + } else if(((((((a28==1)&&(((a20==1)&&((((input==6)&&(a17==2))&&(a5==5))&&(a9==9)))&&(a1==13)))&&!(a27==1))&&!(a27==1))&&!(a24==1))&&(!(a24==1)&&((a3==1)&&((((a21==10)&&(a13==1))&&(a19==5))&&(a16==11)))))){ + a9 = 7; + a16 = 7; + a27 = 0; + a11 = 1; + a5 = 4; + a1 = 12; + a26 = 0; + a19 = 1; + return -1; + } else if((((a9==7)&&((a17==2)&&(((a14==1)&&(((a18==1)&&((a21==11)&&((input==4)&&((a5==5)||(a5==6)))))&&!(a28==1)))&&(a20==1))))&&((a1==14)&&(((a16==10)&&(!(a2==1)&&((a4==1)&&((a11==1)&&(a0==1)))))&&(a19==3))))){ + a19 = 1; + a16 = 7; + a11 = 0; + a10 = 0; + a21 = 10; + a5 = 4; + a25 = 1; + a9 = 8; + a1 = 12; + return 25; + } else if(((((a19==3)&&((a1==12)&&((a16==8)&&(((a17==2)&&((((a5==5)||(a5==6))&&(input==6))&&(a3==1)))&&(a3==1)))))&&(a21==11))&&((a9==7)&&((a20==1)&&((a2==1)&&(!(a23==1)||(((a13==1)||(a27==1))||(a8==1)))))))){ + a28 = 1; + a19 = 5; + a1 = 13; + a24 = 0; + a16 = 10; + a27 = 0; + a5 = 4; + a21 = 10; + a9 = 8; + return 23; + } else if((((!(a12==1)||(((a19==5)&&((((a17==2)&&((a2==1)&&(a16==8)))&&(a1==14))&&(a5==5)))||(a14==1)))&&!(a18==1))&&((a12==1)&&(((a3==1)&&((((input==4)&&(a21==11))&&(a9==11))&&(a20==1)))&&(a28==1))))){ + a1 = 12; + a21 = 10; + a16 = 7; + a13 = 1; + a5 = 4; + a23 = 1; + a9 = 7; + a6 = 1; + a19 = 1; + return -1; + } else if(((((a17==2)&&(((a12==1)&&(a21==11))||!(a28==1)))&&!(a18==1))&&((a28==1)&&((a16==7)&&(((a6==1)&&(!(a20==1)&&(((!(a18==1)&&((input==5)&&((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a5==4)&&(a9==8)))))&&!(a26==1))&&(a19==5))))&&(a1==12)))))){ + a7 = 0; + a2 = 1; + a21 = 10; + a19 = 1; + a9 = 7; + a20 = 1; + a5 = 4; + a8 = 0; + return -1; + } else if((((a19==3)&&(((a26==1)||(a3==1))&&(a21==12)))&&((a9==7)&&((a1==12)&&((a17==2)&&(!(a20==1)&&(!(a18==1)&&(!(a4==1)&&(((a16==7)&&((((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a26==1))&&(a23==1)))&&(a28==1)))))))))){ + a2 = 1; + a5 = 4; + a19 = 1; + a20 = 1; + a21 = 10; + a28 = 1; + a3 = 1; + return -1; + } else if(((((a20==1)&&((!(a0==1)&&(((a3==1)&&((a12==1)&&((a21==12)&&(input==4))))&&!(a7==1)))&&!(a18==1)))&&(a16==9))&&((a9==11)&&((((a5==4)&&(!(a24==1)&&((a6==1)&&(a17==2))))&&(a1==14))&&(a19==4))))){ + a9 = 7; + a13 = 1; + a21 = 10; + a6 = 1; + a16 = 7; + a19 = 1; + a1 = 12; + a11 = 1; + return -1; + } else if(((((!(a7==1)&&((a19==3)&&(!(a11==1)||((a2==1)&&(a2==1)))))||(a4==1))&&(a17==2))&&(((a21==10)&&((((((input==6)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8))))&&!(a27==1))&&(a28==1))&&(a1==13))&&!(a20==1)))&&(a16==9)))){ + a25 = 1; + a1 = 12; + a9 = 11; + a20 = 1; + a15 = 1; + a19 = 5; + a5 = 6; + a2 = 0; + return 23; + } else if((((((a16==9)&&(((((a28==1)&&(((((((a19==5)&&(input==3))&&!(a27==1))&&(a21==10))&&!(a24==1))&&(a5==4))&&(a17==2)))&&!(a20==1))&&(a9==11))&&(a3==1)))&&!(a27==1))&&(a1==13))&&(!(a12==1)||(a11==1)))){ + a19 = 1; + a24 = 1; + a9 = 9; + a20 = 1; + a15 = 1; + a29 = 0; + a16 = 7; + a5 = 6; + return -1; + } else if((((!(a20==1)&&(!(a12==1)||(((a17==2)&&(((a26==1)||((a21==12)&&(a12==1)))&&(a19==2)))&&!(a8==1))))&&(a16==8))&&((!(a14==1)&&((a1==13)&&(((((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(input==3))&&(a6==1))))&&(a2==1)))){ + a9 = 9; + a1 = 14; + a5 = 5; + a29 = 1; + a21 = 10; + a12 = 0; + a16 = 11; + a28 = 0; + return -1; + } else if(((((a13==1)&&((a19==4)&&((a17==2)&&((a26==1)||((a12==1)||(a0==1))))))&&!(a18==1))&&((a20==1)&&((((((!(a7==1)&&((input==6)&&(a9==9)))&&(a21==11))&&!(a4==1))&&(a1==13))&&(a16==9))&&(a5==5))))){ + a16 = 8; + a5 = 6; + a9 = 8; + a27 = 0; + a1 = 14; + a19 = 5; + a3 = 1; + a2 = 1; + a21 = 12; + return 26; + } else if((((((!(a20==1)&&((a21==10)&&(((a5==6)&&(((!(a14==1)&&((a16==7)&&(input==4)))&&(a17==2))&&!(a26==1)))&&!(a7==1))))&&(a19==1))&&!(a0==1))&&(a1==12))&&((a9==7)&&((!(a4==1)&&(a28==1))&&!(a18==1))))){ + a5 = 4; + a6 = 1; + a23 = 1; + a27 = 0; + a20 = 1; + return -1; + } else if((((((a13==1)&&(((((a1==12)&&(a23==1))&&(a19==4))&&(a17==2))||(a18==1)))||!(a23==1))||(a18==1))&&(((a21==11)&&(((((input==5)&&((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a5==4)&&(a9==8))))&&(a16==8))&&(a2==1))&&(a20==1)))&&(a2==1)))){ + a0 = 0; + a19 = 1; + a6 = 1; + a5 = 4; + a9 = 7; + a21 = 10; + a16 = 7; + return -1; + } else if(((((a17==2)&&(((a6==1)&&((a9==7)&&(((a28==1)&&(a19==2))||!(a12==1))))&&(a13==1)))&&(a21==12))&&(((!(a27==1)&&(((a23==1)&&(((a16==8)&&(input==5))&&!(a4==1)))&&(a5==5)))&&(a1==14))&&!(a20==1)))){ + a1 = 13; + a16 = 7; + a19 = 1; + a5 = 4; + a21 = 10; + a20 = 1; + a12 = 0; + a9 = 9; + a15 = 1; + a10 = 1; + return 21; + } else if(((((a20==1)&&((a5==4)&&((!(a24==1)&&((a9==7)&&(((input==1)&&(a16==11))&&(a2==1))))&&(a6==1))))&&!(a26==1))&&((a21==12)&&(((a1==12)&&(!(a14==1)&&(((a12==1)||(a14==1))&&(a17==2))))&&(a19==3))))){ + if((a19==3)){ + a7 = 0; + a5 = 5; + a19 = 2; + a1 = 13; + a21 = 11; + a27 = 0; + a16 = 7; + a9 = 11; + a12 = 1; + a20 = 0; + }else{ + a5 = 6; + a1 = 14; + a9 = 8; + a3 = 1; + a13 = 1; + a19 = 4; + } + return 21; + } else if(((((!(a20==1)&&(((input==4)&&((a5==4)||(a5==5)))&&(a21==12)))&&(a12==1))&&!(a8==1))&&((a1==14)&&(((a17==2)&&((a3==1)&&(!(a18==1)&&((a24==1)||((((a19==1)&&(a12==1))&&(a16==10))&&!(a4==1))))))&&(a9==8))))){ + a21 = 10; + a13 = 0; + a2 = 0; + a24 = 1; + a1 = 12; + a5 = 6; + a19 = 2; + return -1; + } else if(((!(a24==1)&&(((a17==2)&&((a1==14)&&(((a23==1)&&((a21==10)&&(((a16==8)&&(input==6))&&(a5==6))))&&(a19==2))))&&!(a0==1)))&&((((((a23==1)||!(a6==1))&&(a9==11))&&!(a20==1))||(a27==1))&&!(a24==1)))){ + a5 = 4; + a21 = 12; + a9 = 10; + a20 = 1; + a24 = 0; + a19 = 5; + a1 = 13; + a8 = 0; + a14 = 0; + return -1; + } else if(((!(a20==1)&&(((a17==2)&&(!(a4==1)&&((a16==9)&&((a8==1)||(a11==1)))))&&(a21==12)))&&((a19==1)&&((a1==12)&&(((!(a7==1)&&((((input==5)&&(a5==6))&&(a9==9))&&(a11==1)))&&(a2==1))&&!(a26==1)))))){ + a19 = 5; + a1 = 14; + a23 = 0; + a28 = 0; + a9 = 7; + a22 = 0; + return 21; + } else if((((a17==2)&&((a19==1)&&((a3==1)&&(a21==11))))&&((a3==1)&&((a11==1)&&((((a11==1)&&((a20==1)&&((a16==7)&&(!(a8==1)&&(((((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(input==6))&&!(a4==1))))))&&(a1==12))&&!(a7==1)))))){ + a4 = 0; + a27 = 0; + a21 = 10; + a9 = 7; + a28 = 1; + a5 = 4; + return -1; + } else if((((((!(a27==1)&&((a19==3)&&((input==1)&&((((a5==4)&&(a1==14))&&(a9==7))||((((a5==5)&&(a1==13))&&(a9==11))||(((a1==13)&&(a5==6))&&(a9==11)))))))&&(a17==2))&&(a12==1))&&(a16==9))&&((a11==1)&&((a26==1)||(!(a20==1)&&(((a21==12)&&((a3==1)||(a14==1)))||!(a12==1))))))){ + if((a2==1)){ + a1 = 14; + a15 = 0; + a16 = 10; + a25 = 1; + a9 = 8; + a19 = 2; + a5 = 6; + a21 = 11; + }else{ + a16 = 7; + a1 = 12; + a3 = 0; + a20 = 1; + a11 = 0; + a21 = 10; + a5 = 6; + a19 = 2; + a9 = 7; + a15 = 0; + } + return -1; + } else if((((a21==12)&&(((a1==14)&&((a19==4)&&(((a2==1)&&!(a27==1))||(a18==1))))&&(a20==1)))&&(((((((((input==3)&&((a5==5)||(a5==6)))&&(a17==2))&&!(a24==1))&&(a11==1))&&!(a0==1))&&!(a4==1))&&(a9==10))&&(a16==9)))){ + a19 = 1; + a11 = 1; + a0 = 0; + a1 = 12; + a9 = 7; + a16 = 7; + a13 = 1; + a5 = 4; + a21 = 10; + return -1; + } else if((((((a21==10)&&((a17==2)&&((a19==5)&&((input==1)&&((a5==4)||(a5==5))))))&&!(a27==1))&&(a28==1))&&(((((((a20==1)&&(((a11==1)&&!(a7==1))||!(a3==1)))&&(a1==14))&&(a2==1))||(a26==1))&&(a16==9))&&(a9==11)))){ + a7 = 0; + a1 = 12; + a5 = 4; + a16 = 7; + a19 = 1; + a9 = 7; + a13 = 1; + a6 = 1; + return -1; + } else if(((!(a14==1)&&(((((a1==14)&&(!(a20==1)&&((a12==1)||(a26==1))))&&(a16==7))&&(a12==1))&&(a17==2)))&&((((a12==1)&&((a19==5)&&(((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==1))&&!(a8==1))))&&!(a14==1))&&(a21==10)))){ + a1 = 13; + a3 = 1; + a9 = 10; + a5 = 6; + a4 = 0; + a20 = 1; + a11 = 1; + a16 = 8; + return -1; + } else if(((((((((input==1)&&((a5==4)||(a5==5)))&&(a20==1))&&(a1==12))&&(a26==1))&&(a17==2))&&(a14==1))&&(((a19==1)&&((((a16==10)&&((a9==10)&&((a8==1)&&(!(a3==1)&&(a2==1)))))&&(a21==11))&&(a4==1)))&&!(a23==1)))){ + a19 = 2; + a12 = 0; + a5 = 4; + a14 = 1; + a21 = 10; + a16 = 7; + a4 = 1; + return -1; + } else if((((a19==2)&&(((a4==1)||((a23==1)&&(!(a20==1)&&((a9==10)&&((a17==2)&&((a24==1)||((!(a2==1)||(a28==1))||!(a28==1))))))))&&(a21==12)))&&((a5==5)&&(((a1==14)&&((input==4)&&(a16==7)))&&(a2==1))))){ + a19 = 1; + a21 = 10; + a3 = 1; + a18 = 0; + a0 = 0; + a9 = 7; + a20 = 1; + a5 = 4; + a1 = 12; + return -1; + } else if((((((a20==1)&&(((a19==3)&&((a6==1)&&(a16==11)))||(a26==1)))&&(a17==2))&&(a3==1))&&(!(a26==1)&&((!(a0==1)&&((((a1==13)&&((input==1)&&(((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8))))))&&(a21==12))&&(a3==1)))&&!(a7==1))))){ + if((a2==1)){ + a9 = 7; + a20 = 0; + a2 = 1; + a6 = 1; + a12 = 1; + a1 = 12; + a16 = 7; + a5 = 5; + a19 = 2; + }else{ + a1 = 12; + a19 = 5; + a5 = 5; + a8 = 0; + a7 = 0; + a9 = 7; + a28 = 1; + } + return 21; + } else if((((a21==10)&&((!(a27==1)&&((((a1==14)&&(a12==1))&&(a28==1))&&(a17==2)))&&!(a18==1)))&&(((((((a3==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&(a20==1)))&&(a19==4))&&(a28==1))&&(a16==8))&&!(a26==1))&&(a9==11)))){ + a24 = 0; + a6 = 1; + a16 = 7; + a5 = 4; + a19 = 1; + a9 = 7; + a12 = 1; + a1 = 12; + return -1; + } else if(((((a28==1)&&((a5==5)&&(((((a19==2)&&(((a9==10)&&(a13==1))&&(a16==10)))&&(a1==14))||(a14==1))&&(a17==2))))||(a24==1))&&(!(a7==1)&&((!(a4==1)&&(((a21==12)&&(input==1))&&!(a27==1)))&&(a20==1))))){ + a20 = 0; + a4 = 0; + a1 = 12; + a19 = 5; + a16 = 8; + a18 = 0; + a21 = 10; + a6 = 1; + a5 = 6; + return 21; + } else if((((((a5==5)&&(((a9==7)&&(input==6))&&(a1==12)))&&(a17==2))&&(a16==9))&&(((a11==1)&&((a20==1)&&((a12==1)&&((a7==1)||(((a21==11)&&((a26==1)||((a19==5)&&(a13==1))))||!(a13==1))))))&&!(a24==1)))){ + a9 = 8; + a21 = 12; + a1 = 14; + a16 = 8; + a27 = 0; + a8 = 0; + a23 = 1; + a5 = 6; + a19 = 1; + return 21; + } else if(((((a17==2)&&((a16==7)&&((!(a20==1)&&((input==5)&&((a5==4)||(a5==5))))&&!(a24==1))))&&(a11==1))&&(!(a8==1)&&(!(a11==1)||((a21==11)&&((((a4==1)||((a19==2)&&((a9==7)&&(a11==1))))&&(a1==14))||!(a6==1))))))){ + a19 = 5; + a16 = 11; + a5 = 5; + a20 = 1; + a1 = 13; + a3 = 1; + a11 = 1; + return 21; + } else if(((((a19==4)&&((a17==2)&&(((a2==1)&&((a21==11)&&(((a16==8)&&(input==1))&&(a13==1))))&&!(a24==1))))&&(a20==1))&&((a2==1)&&(((a5==5)&&((((a28==1)||(a0==1))&&(a9==10))&&(a1==14)))||!(a6==1))))){ + a12 = 1; + a16 = 10; + a8 = 0; + a19 = 2; + a5 = 6; + a18 = 0; + return 22; + } else if(((!(a20==1)&&((a21==11)&&((a1==12)&&(!(a27==1)&&(((a13==1)&&(((!(a8==1)&&((input==1)&&((a5==5)||(a5==6))))&&!(a24==1))&&(a16==8)))&&(a9==10))))))&&((a18==1)||(!(a23==1)||(((a11==1)&&(a19==4))&&(a17==2)))))){ + a19 = 1; + a13 = 1; + a16 = 7; + a21 = 10; + a5 = 4; + a9 = 7; + a27 = 0; + a20 = 1; + a4 = 0; + return -1; + } else if((((((((a19==4)&&(((input==1)&&(a16==7))&&(a23==1)))&&(a5==5))&&(a20==1))&&!(a0==1))&&(a1==12))&&((a9==9)&&(((!(a4==1)&&((a4==1)||((a27==1)||((a12==1)&&(a17==2)))))&&(a21==12))||!(a28==1))))){ + a9 = 7; + a19 = 1; + a1 = 14; + a0 = 0; + a26 = 0; + a11 = 1; + a16 = 9; + a21 = 11; + return 23; + } else if((((!(a3==1)||((((a19==4)&&(a3==1))||!(a3==1))&&(a20==1)))||(a24==1))&&((a17==2)&&(((a9==10)&&((a1==13)&&((a16==9)&&(!(a24==1)&&((!(a27==1)&&((input==1)&&(a21==12)))&&(a11==1))))))&&(a5==5))))){ + a19 = 2; + a27 = 0; + a16 = 7; + a5 = 6; + a21 = 10; + a7 = 0; + return 25; + } else if(((((((((a5==4)&&(((a4==1)||((a19==3)&&(a11==1)))&&!(a14==1)))&&(a20==1))&&(a9==10))&&!(a7==1))&&(a28==1))||!(a11==1))&&((a1==14)&&((((a21==12)&&((input==3)&&(a17==2)))&&!(a14==1))&&(a16==8))))){ + a24 = 0; + a1 = 12; + a12 = 1; + a16 = 7; + a21 = 10; + a19 = 1; + a9 = 7; + return -1; + } else if((((a18==1)||(((a17==2)&&(((a1==14)&&((a11==1)&&!(a27==1)))&&(a9==9)))||(a26==1)))&&(!(a4==1)&&((a6==1)&&((((((a13==1)&&((input==1)&&((a5==5)||(a5==6))))&&(a19==4))&&(a20==1))&&(a16==8))&&(a21==11)))))){ + a3 = 1; + a12 = 1; + a21 = 10; + a5 = 4; + a19 = 2; + a16 = 7; + a24 = 0; + a1 = 13; + return 25; + } else if((((((a16==10)&&((a12==1)||!(a11==1)))||!(a11==1))&&(a20==1))&&((a19==4)&&((a17==2)&&((a21==11)&&((a1==12)&&((a9==9)&&(!(a0==1)&&((a2==1)&&(!(a18==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a23==1)))))))))))){ + a5 = 4; + a4 = 0; + a24 = 0; + a16 = 7; + a21 = 10; + a19 = 1; + a9 = 7; + a27 = 0; + return -1; + } else if((((a17==2)&&(!(a27==1)&&((a11==1)&&((!(a20==1)&&((a19==4)&&((input==1)&&(((a9==7)&&((a5==5)&&(a1==13)))||((((a1==12)&&(a5==6))&&(a9==11))||((a9==7)&&((a1==13)&&(a5==4))))))))&&!(a27==1)))))&&(!(a27==1)&&((a16==7)&&((a7==1)||((a8==1)||((a21==11)&&(a6==1)))))))){ + a21 = 12; + a20 = 1; + a1 = 13; + a9 = 11; + a28 = 1; + a16 = 9; + a18 = 0; + a5 = 4; + a26 = 0; + return 25; + } else if(((((a12==1)&&(((((((a21==12)&&(a6==1))&&(a1==14))&&(a19==5))||(a0==1))&&!(a18==1))||!(a23==1)))||(a8==1))&&((a16==7)&&(((a17==2)&&(((((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==1))&&!(a20==1)))&&!(a7==1))))){ + a20 = 1; + a6 = 1; + a19 = 1; + a4 = 0; + a9 = 7; + a28 = 1; + a21 = 10; + a1 = 12; + a5 = 4; + return -1; + } else if((((a17==2)&&(!(a11==1)||(((((a3==1)&&!(a14==1))||!(a12==1))||!(a6==1))||!(a12==1))))&&((((a1==14)&&((a19==4)&&((a9==7)&&((!(a20==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5)))))&&(a21==10)))))&&(a16==8))&&(a2==1)))){ + a21 = 11; + a18 = 0; + a20 = 1; + a13 = 1; + a5 = 6; + a19 = 5; + a1 = 13; + a16 = 10; + return 21; + } else if((((a21==12)&&((a16==11)&&((!(a4==1)&&(!(a24==1)&&((((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6))))&&(input==5))))&&(a17==2))))&&((((a1==12)&&((!(a14==1)&&((a0==1)||((a23==1)||!(a28==1))))&&!(a18==1)))&&(a19==2))&&(a20==1)))){ + a9 = 7; + a16 = 7; + a26 = 0; + a21 = 10; + a5 = 4; + a7 = 0; + a19 = 1; + a13 = 1; + return -1; + } else if(((((a16==7)&&((a20==1)&&((a19==4)&&(((a1==14)&&(((((input==5)&&(a17==2))&&(a2==1))&&(a6==1))&&(a13==1)))&&(a13==1)))))&&!(a18==1))&&(((a9==11)&&((a21==10)&&((a5==6)&&(a11==1))))||(a4==1)))){ + a21 = 12; + a9 = 10; + a1 = 13; + a14 = 0; + a0 = 0; + a11 = 1; + a19 = 1; + return 23; + } else if(((((a28==1)&&((((a1==14)&&(((a21==12)&&((a20==1)&&(((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a5==4)&&(a9==9)))&&(input==1))))&&(a19==4)))&&!(a4==1))&&(a6==1)))&&!(a24==1))&&(((a17==2)&&(((a16==7)&&(a6==1))||!(a11==1)))||(a8==1)))){ + a9 = 7; + a14 = 0; + a21 = 10; + a24 = 0; + a19 = 1; + a5 = 4; + a1 = 12; + return -1; + } else if(((((!(a0==1)&&(((a23==1)&&(((input==1)&&(a16==7))&&!(a27==1)))&&!(a18==1)))&&!(a0==1))&&(a17==2))&&((!(a0==1)&&((a1==12)&&((a19==2)&&((a20==1)&&((a9==9)&&((a5==4)&&(a12==1)))))))&&(a21==11)))){ + a12 = 1; + a21 = 10; + a16 = 8; + a4 = 0; + a5 = 5; + a1 = 14; + a27 = 0; + return 26; + } else if((((a16==11)&&(((a28==1)&&(((a17==2)&&(!(a18==1)&&(!(a20==1)&&(((a2==1)||(a7==1))||(a26==1)))))&&!(a8==1)))&&(a1==14)))&&((a21==10)&&(((((input==1)&&(a9==9))&&!(a0==1))&&(a19==2))&&(a5==6))))){ + if((a7==1)){ + a20 = 1; + a16 = 7; + a19 = 1; + a1 = 12; + a25 = 0; + a0 = 1; + }else{ + a20 = 1; + a11 = 0; + a13 = 0; + a16 = 7; + a3 = 0; + a9 = 11; + a19 = 1; + } + return -1; + } else if(((!(a28==1)&&(((a18==1)&&(a13==1))&&(a19==4)))&&((a20==1)&&(((a21==12)&&((a8==1)&&(!(a12==1)&&((((a17==2)&&((a8==1)&&(((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a9==7))))&&!(a28==1))&&(a1==14)))))&&(a16==10))))){ + a5 = 4; + a22 = 1; + a19 = 1; + a9 = 11; + a16 = 7; + a8 = 1; + a29 = 0; + a21 = 10; + return 25; + } else if(((((a21==11)&&((((a19==5)&&((a1==12)&&(!(a8==1)&&((a16==10)&&(((a17==2)&&(((a5==5)||(a5==6))&&(input==6)))&&!(a20==1))))))&&(a2==1))&&(a13==1)))&&(a23==1))&&(!(a23==1)||(((a12==1)&&(a9==11))||!(a12==1))))){ + a19 = 3; + a25 = 1; + a21 = 10; + a9 = 9; + a5 = 6; + a20 = 1; + a18 = 1; + a28 = 0; + a16 = 8; + return 21; + } else if((((a8==1)||(!(a11==1)||((!(a14==1)&&(a6==1))&&(a19==5))))&&(!(a18==1)&&((a20==1)&&(!(a4==1)&&((a21==12)&&((a17==2)&&(((a16==8)&&(((((a1==13)&&(a5==4))&&(a9==7))||(((a9==11)&&((a5==5)&&(a1==12)))||(((a5==6)&&(a1==12))&&(a9==11))))&&(input==5)))&&!(a0==1))))))))){ + a4 = 0; + a5 = 4; + a23 = 1; + a18 = 0; + a9 = 8; + a1 = 12; + return 22; + } else if((((a19==2)&&((a1==12)&&((a16==9)&&(((a28==1)||!(a13==1))&&!(a18==1)))))&&((a12==1)&&(((a9==9)&&(((a17==2)&&(((!(a4==1)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))&&(a11==1))&&!(a20==1)))&&(a21==10)))&&(a2==1))))){ + a24 = 1; + a19 = 5; + a16 = 8; + a27 = 1; + a29 = 0; + a5 = 5; + return 21; + } else if(((!(a7==1)&&((a1==13)&&((!(a24==1)&&((((input==5)&&(a21==10))&&(a19==3))&&(a17==2)))&&(a2==1))))&&((((((a9==8)&&((a16==7)&&((a2==1)&&(a20==1))))&&(a5==4))&&(a23==1))&&!(a27==1))||(a24==1)))){ + a21 = 11; + a2 = 1; + a24 = 0; + a5 = 6; + a19 = 1; + a11 = 1; + a9 = 9; + a1 = 12; + return 23; + } else if(((((((a12==1)&&(a19==4))||(a18==1))&&(a9==9))||!(a12==1))&&(((a16==7)&&(((a20==1)&&((a6==1)&&((a11==1)&&((a5==6)&&(!(a14==1)&&(((input==1)&&(a17==2))&&!(a0==1)))))))&&(a21==12)))&&(a1==12)))){ + a6 = 1; + a24 = 0; + a16 = 9; + a5 = 4; + a14 = 0; + a19 = 1; + a9 = 8; + a21 = 11; + a1 = 14; + return 26; + } else if(((((((a28==1)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a13==1))&&(a16==9)))&&(a3==1))&&(a17==2))&&(a19==1))&&((((a2==1)&&((a20==1)&&((a9==7)&&(((a2==1)||(a14==1))&&(a13==1)))))&&(a1==14))&&(a21==12)))){ + a16 = 7; + a18 = 0; + a8 = 0; + a5 = 4; + a21 = 10; + a1 = 12; + a23 = 1; + return -1; + } else if((((a19==3)&&((a9==8)&&((!(a27==1)&&((a17==2)&&((input==5)&&((a5==5)||(a5==6)))))&&(a12==1))))&&((a1==12)&&(((a16==11)&&((a13==1)&&(!(a27==1)&&(!(a6==1)||((a20==1)&&((a11==1)&&!(a8==1)))))))&&(a21==10))))){ + a24 = 0; + a1 = 14; + a5 = 5; + a12 = 1; + a20 = 0; + a19 = 2; + a8 = 0; + a16 = 8; + return 25; + } else if((((a2==1)&&((a20==1)&&(!(a18==1)&&(((a1==12)&&((a21==11)&&((((input==3)&&(((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))))&&(a17==2))&&!(a18==1))))&&(a19==2)))))&&((a16==9)&&((a7==1)||(!(a23==1)||(!(a13==1)||(a28==1))))))){ + a27 = 0; + a12 = 1; + a21 = 10; + a16 = 7; + a8 = 0; + a5 = 4; + a9 = 7; + a19 = 1; + return -1; + } else if((((a3==1)&&((a9==10)&&(((a3==1)&&((a19==1)&&((a16==7)&&(((a17==2)&&(input==3))&&(a21==12)))))&&(a20==1))))&&(!(a6==1)||(((a5==6)&&(!(a23==1)||(!(a28==1)||((a1==12)&&(a23==1)))))&&(a11==1))))){ + a9 = 9; + a19 = 4; + a1 = 14; + a5 = 4; + a16 = 8; + a2 = 1; + a23 = 1; + a3 = 1; + return 26; + } else if(((!(a4==1)&&(((a11==1)&&((a12==1)&&((a20==1)&&((a6==1)&&((((((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))&&(input==5))&&(a21==10))&&(a1==14))&&(a13==1))))))&&(a19==2)))&&(((a3==1)&&((a12==1)&&(a17==2)))&&(a16==9)))){ + a0 = 0; + a16 = 7; + a9 = 9; + a5 = 6; + a19 = 5; + a26 = 0; + a1 = 12; + a27 = 0; + return -1; + } else if(((((((a9==9)&&(((a5==5)&&(a28==1))||!(a23==1)))&&!(a24==1))&&(a17==2))||(a14==1))&&((((!(a26==1)&&(((((input==4)&&(a21==10))&&!(a18==1))&&!(a26==1))&&(a19==4)))&&(a20==1))&&(a16==10))&&(a1==13)))){ + a11 = 1; + a19 = 1; + a26 = 0; + a1 = 12; + a5 = 4; + a0 = 0; + a16 = 7; + a9 = 7; + return -1; + } else if((((a16==10)&&(((a17==2)&&((((a12==1)&&((a19==1)&&(((a28==1)&&((((a5==5)||(a5==6))&&(input==6))&&(a12==1)))&&!(a4==1))))&&(a21==11))&&(a12==1)))&&(a1==14)))&&((((a23==1)&&(a20==1))&&(a9==10))||(a26==1)))){ + a13 = 1; + a1 = 12; + a9 = 7; + a7 = 0; + a5 = 4; + a24 = 0; + a21 = 10; + a16 = 7; + return -1; + } else if(((((((((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==3))&&(a3==1))&&(a12==1))&&!(a8==1))&&(a20==1))&&(a17==2))&&(((a16==10)&&(!(a3==1)||((a19==2)&&(!(a0==1)&&((a1==13)&&((a21==12)&&(a2==1)))))))||!(a3==1)))){ + a9 = 7; + a7 = 0; + a1 = 12; + a27 = 0; + a21 = 10; + a16 = 7; + a5 = 4; + a19 = 1; + a13 = 1; + return -1; + } else if(((((a21==11)&&(!(a12==1)||(!(a24==1)&&((((a1==14)&&(a3==1))||!(a6==1))&&(a16==9)))))&&(a17==2))&&(((((a9==8)&&(!(a7==1)&&((a19==4)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))))&&!(a7==1))&&!(a27==1))&&(a20==1)))){ + a20 = 0; + a26 = 0; + a3 = 1; + a1 = 12; + a12 = 1; + a16 = 8; + a5 = 5; + return 21; + } else if((((a21==10)&&(((a19==2)&&((a17==2)&&((a20==1)&&(!(a18==1)&&(((input==5)&&(a1==14))&&(a5==5))))))&&!(a18==1)))&&((a16==11)&&(((a13==1)&&(((a27==1)||((a28==1)&&(a13==1)))&&(a9==10)))&&(a6==1))))){ + a21 = 11; + a3 = 1; + a9 = 11; + a14 = 0; + a23 = 1; + return 21; + } else if((((((a1==14)&&(((a21==12)&&((((a13==1)&&(a11==1))||!(a13==1))&&(a17==2)))&&(a9==11)))&&(a19==4))&&(a16==8))&&(!(a7==1)&&(!(a18==1)&&(!(a7==1)&&(((a20==1)&&(((a5==5)||(a5==6))&&(input==5)))&&(a11==1))))))){ + a5 = 4; + a8 = 0; + a4 = 0; + a9 = 9; + a1 = 13; + a7 = 0; + a21 = 10; + a19 = 2; + a16 = 7; + return -1; + } else if(((((a9==10)&&((a1==12)&&((((a20==1)&&((input==5)&&((a5==4)||(a5==5))))&&(a3==1))&&(a17==2))))&&(a19==5))&&(((a16==11)&&(((!(a13==1)||((a3==1)&&(!(a24==1)&&(a28==1))))||(a18==1))||!(a13==1)))&&(a21==11)))){ + a9 = 7; + a19 = 4; + a24 = 0; + a11 = 1; + a16 = 9; + a5 = 5; + return 21; + } else if((((((((((a17==2)&&((a16==11)&&((input==1)&&(((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))))))&&(a1==12))&&!(a7==1))&&!(a26==1))&&(a20==1))&&(a21==12))&&(a2==1))&&(((((a13==1)&&(a28==1))&&(a19==5))&&(a11==1))||(a0==1)))){ + a27 = 0; + a16 = 7; + a19 = 1; + a21 = 10; + a0 = 0; + a5 = 4; + a9 = 7; + a2 = 1; + return -1; + } else if((((a9==8)&&((((!(a12==1)||((a28==1)&&(a21==10)))&&(a1==13))||!(a28==1))&&(a19==1)))&&(!(a20==1)&&((a16==9)&&((a11==1)&&((a5==4)&&(((!(a7==1)&&((input==4)&&(a17==2)))&&(a12==1))&&(a2==1)))))))){ + a27 = 1; + a12 = 0; + a21 = 12; + a0 = 1; + a16 = 8; + a19 = 4; + return -1; + } else if(((((((a9==8)&&((((input==3)&&(a20==1))&&(a28==1))&&(a19==4)))&&(a1==12))&&(a16==9))&&(a2==1))&&(((a11==1)&&((!(a18==1)&&(((a21==11)&&((a5==4)&&(a12==1)))||!(a6==1)))&&(a17==2)))||!(a6==1)))){ + a3 = 1; + a9 = 7; + a21 = 10; + a11 = 1; + a19 = 1; + a16 = 7; + a12 = 1; + return -1; + } else if(((((a3==1)&&(((a13==1)&&((a16==10)&&((a21==10)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4)))))&&(a1==14)))&&(a9==8))&&((a20==1)&&((a19==1)&&((((a17==2)&&(!(a26==1)&&((a3==1)||!(a6==1))))||!(a3==1))&&(a13==1)))))){ + a1 = 12; + a24 = 0; + a5 = 4; + a11 = 1; + a23 = 1; + a9 = 7; + a16 = 7; + return -1; + } else if(((((a1==12)&&((!(a8==1)&&((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==3)))&&!(a14==1)))&&(a17==2))&&(((a11==1)&&((a14==1)||((((((a13==1)&&(a12==1))&&(a16==10))&&(a19==5))||(a4==1))&&(a21==10))))&&!(a20==1)))){ + a20 = 1; + a5 = 4; + a19 = 1; + a16 = 7; + a1 = 13; + a18 = 1; + a3 = 0; + a8 = 1; + a9 = 7; + return 25; + } else if(((((a17==2)&&(((a16==8)&&(((a19==1)&&(input==4))&&!(a20==1)))&&(a5==6)))&&(a1==14))&&((a9==7)&&((a2==1)&&((a0==1)||(!(a12==1)||((!(a6==1)||((a12==1)&&(!(a0==1)&&(a12==1))))&&(a21==11)))))))){ + a20 = 1; + a3 = 1; + a26 = 0; + a5 = 4; + a1 = 12; + a21 = 10; + a27 = 0; + a16 = 7; + return -1; + } else if((((((a11==1)&&((a16==7)&&((a3==1)&&((((input==5)&&((a5==5)||(a5==6)))&&(a20==1))&&(a9==11)))))&&(a21==11))&&(a1==14))&&((((a13==1)&&((a14==1)||(((a8==1)||(a6==1))||(a27==1))))&&(a17==2))&&(a19==4)))){ + a19 = 1; + a28 = 1; + a9 = 7; + a21 = 10; + a1 = 12; + a7 = 0; + a23 = 1; + a5 = 4; + return -1; + } else if(((((a19==2)&&(((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a1==14)))&&!(a18==1))&&(((((a14==1)||(((a21==12)&&((a16==9)&&(!(a20==1)&&(((a9==9)&&(a3==1))&&(a17==2)))))||(a27==1)))||!(a13==1))&&(a13==1))||(a27==1)))){ + a19 = 5; + a27 = 1; + a13 = 0; + a16 = 11; + a21 = 10; + a9 = 10; + a4 = 1; + a1 = 13; + a5 = 5; + a20 = 1; + return 26; + } else if((((((a20==1)&&(((a2==1)&&(a12==1))&&(a3==1)))&&(a16==8))&&(a21==12))&&(((a9==7)&&(!(a8==1)&&((!(a4==1)&&(!(a4==1)&&(((a19==5)&&((input==1)&&((a5==4)||(a5==5))))&&(a17==2))))&&!(a18==1))))&&(a1==14)))){ + a0 = 0; + a23 = 1; + a5 = 4; + a19 = 1; + a1 = 12; + a16 = 7; + a21 = 10; + a12 = 1; + return -1; + } else if(((!(a4==1)&&((((!(a20==1)&&((a28==1)&&(a17==2)))&&(a19==5))&&(a16==8))||(a0==1)))&&(((!(a14==1)&&(!(a18==1)&&((a1==13)&&((a21==10)&&((((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6))))&&(input==6))))))&&!(a18==1))&&!(a27==1)))){ + a26 = 0; + a18 = 0; + a19 = 4; + a5 = 6; + a16 = 7; + a1 = 14; + a2 = 1; + a9 = 10; + a20 = 1; + return 25; + } else if((((((a1==12)&&(!(a11==1)||((a19==3)&&((a21==10)&&(a13==1)))))&&(a20==1))&&(a16==8))&&(!(a0==1)&&((((((a3==1)&&(!(a4==1)&&((input==6)&&(a5==5))))&&(a17==2))&&(a9==10))&&(a3==1))&&(a12==1))))){ + a16 = 7; + a6 = 1; + a9 = 7; + a19 = 1; + a5 = 4; + a24 = 0; + a3 = 1; + return -1; + } else if(((((!(a0==1)&&(!(a4==1)&&(a12==1)))&&(a9==8))&&(a19==2))&&(((((a6==1)&&((a21==11)&&(((((a20==1)&&((input==6)&&(a1==13)))&&(a2==1))&&(a13==1))&&(a28==1))))&&(a5==5))&&(a16==9))&&(a17==2)))){ + a21 = 10; + a19 = 1; + a6 = 1; + a1 = 12; + a7 = 0; + a12 = 1; + a16 = 10; + return 21; + } else if(((!(a7==1)&&(!(a26==1)&&(((a21==11)&&((a16==8)&&((a9==11)&&(((input==3)&&((a5==4)||(a5==5)))&&!(a20==1)))))&&!(a24==1))))&&((!(a7==1)&&((a19==4)&&((a1==14)&&(((a2==1)||!(a6==1))&&(a17==2)))))&&(a28==1)))){ + a21 = 10; + a4 = 0; + a1 = 12; + a16 = 7; + a20 = 1; + a19 = 1; + a5 = 4; + a9 = 7; + a3 = 1; + a23 = 1; + return -1; + } else if(((((a17==2)&&(((a28==1)&&((((a1==14)&&((a19==2)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6)))))&&!(a14==1))&&!(a4==1)))&&(a13==1)))&&(a9==10))&&(!(a20==1)&&((a16==8)&&((((a4==1)||(a11==1))&&!(a18==1))&&(a21==11)))))){ + a21 = 10; + a16 = 9; + a5 = 5; + a1 = 13; + a28 = 1; + a20 = 1; + a0 = 0; + return 25; + } else if((((!(a27==1)&&((((a20==1)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a9==8))&&(a6==1)))&&!(a27==1))&&(a13==1)))&&(a1==12))&&(!(a3==1)||((a21==10)&&((a19==5)&&((a18==1)||(((a28==1)&&(a16==10))&&(a17==2)))))))){ + a9 = 11; + a16 = 8; + a20 = 0; + a19 = 2; + a5 = 4; + a27 = 0; + a8 = 0; + a1 = 14; + a26 = 0; + return 26; + } else if((((a13==1)&&((a20==1)&&(((a17==2)&&((a1==14)&&(!(a2==1)||((a6==1)&&(a2==1)))))&&!(a7==1))))&&(!(a26==1)&&(((((((input==6)&&((a5==4)||(a5==5)))&&(a21==11))&&(a19==5))&&(a16==10))&&(a9==11))&&!(a4==1))))){ + a16 = 7; + a5 = 4; + a9 = 7; + a1 = 12; + a13 = 1; + a21 = 10; + a19 = 1; + a28 = 1; + a2 = 1; + return -1; + } else if(((((a19==1)&&(((((a1==13)&&((a20==1)&&(input==5)))&&(a21==10))&&(a9==10))&&(a23==1)))&&(a11==1))&&(((!(a24==1)&&(((a17==2)&&(((a5==5)&&(a6==1))&&!(a7==1)))||!(a23==1)))&&(a16==10))&&!(a27==1)))){ + a9 = 7; + a26 = 0; + a14 = 0; + a4 = 0; + a1 = 12; + a5 = 4; + a16 = 7; + return -1; + } else if((((a17==2)&&((((input==6)&&((a5==5)||(a5==6)))&&(a16==8))&&(a9==11)))&&((a21==12)&&((!(a24==1)&&((a11==1)&&(!(a13==1)||(!(a8==1)&&((!(a20==1)&&(!(a6==1)||(!(a11==1)||(a13==1))))&&(a19==2))))))&&(a1==12))))){ + a19 = 3; + a20 = 1; + a16 = 10; + a26 = 1; + a3 = 0; + a10 = 1; + a21 = 11; + a5 = 5; + return -1; + } else if(((!(a24==1)&&(((a2==1)&&(((input==3)&&((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a5==4)&&(a9==9))))&&(a3==1)))&&!(a20==1)))&&(!(a27==1)&&((a17==2)&&((a19==2)&&(((!(a13==1)||((a1==13)&&((a16==9)&&(a11==1))))&&(a21==10))||(a4==1))))))){ + a21 = 12; + a11 = 0; + a19 = 1; + a5 = 4; + a16 = 7; + a29 = 1; + a1 = 12; + a9 = 9; + a20 = 1; + a24 = 1; + return 26; + } else if((((a0==1)||((a17==2)&&(!(a0==1)&&((a21==12)&&(!(a4==1)&&(a6==1))))))&&((a19==4)&&(!(a18==1)&&((!(a24==1)&&((a20==1)&&((a28==1)&&(((input==1)&&(((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))))&&(a1==12)))))&&(a16==10)))))){ + a9 = 9; + a24 = 0; + a19 = 2; + a1 = 13; + a2 = 1; + a21 = 10; + a16 = 7; + a5 = 4; + a28 = 1; + return 25; + } else if((((((a17==2)&&(!(a0==1)&&(((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4)))&&(input==5))))&&(a11==1))&&(a6==1))&&((!(a0==1)&&((a1==13)&&((((a16==9)&&((a21==10)&&((a3==1)&&(a11==1))))&&(a19==2))&&!(a20==1))))||!(a28==1)))){ + if((a27==1)){ + a2 = 0; + a5 = 5; + a1 = 12; + a20 = 1; + a8 = 1; + a16 = 7; + a9 = 7; + }else{ + a25 = 0; + a5 = 6; + a23 = 0; + a9 = 10; + a19 = 1; + a16 = 7; + a1 = 12; + a20 = 1; + a4 = 1; + } + return 26; + } else if(((!(a8==1)&&((((((a16==7)&&((a21==10)&&((((a1==12)&&(input==3))&&!(a24==1))&&!(a24==1))))&&(a6==1))&&(a17==2))&&(a13==1))&&(a5==6)))&&((((a9==11)&&((a12==1)&&!(a20==1)))&&(a19==3))||(a4==1)))){ + if((a12==1)){ + a5 = 4; + a19 = 5; + a3 = 1; + a11 = 1; + a24 = 0; + a1 = 14; + }else{ + a21 = 11; + a2 = 1; + a23 = 1; + a16 = 8; + a5 = 5; + a1 = 14; + a12 = 1; + } + return -1; + } else if((((((a19==5)&&((a17==2)&&(!(a20==1)&&(((a12==1)&&(a28==1))&&(a1==13)))))&&!(a27==1))||(a26==1))&&((a23==1)&&((a12==1)&&((a21==11)&&((!(a8==1)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==5)))&&(a16==9))))))){ + a1 = 12; + a28 = 0; + a21 = 10; + a16 = 7; + a19 = 2; + a20 = 1; + a18 = 1; + a23 = 0; + a5 = 5; + a9 = 7; + return 22; + } else if(((!(a8==1)&&((a2==1)&&((((a14==1)||(a23==1))&&!(a27==1))||(a27==1))))&&((a9==9)&&((a1==14)&&((((a19==3)&&((a21==11)&&(((a17==2)&&((input==5)&&((a5==4)||(a5==5))))&&!(a7==1))))&&!(a20==1))&&(a16==9)))))){ + a2 = 0; + a21 = 10; + a16 = 7; + a5 = 6; + a19 = 1; + a9 = 7; + a1 = 13; + a23 = 0; + a20 = 1; + return -1; + } else if((((a19==3)&&((((!(a26==1)&&((a27==1)||(a3==1)))&&(a11==1))&&(a21==11))&&(a20==1)))&&((((a17==2)&&(((!(a4==1)&&((((a5==5)||(a5==6))&&(input==6))&&!(a27==1)))&&(a1==13))&&(a16==8)))&&(a9==8))&&(a23==1)))){ + a8 = 0; + a21 = 12; + a5 = 6; + a19 = 1; + a1 = 14; + a14 = 0; + return 21; + } else if((((a18==1)&&(((a9==11)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))&&!(a12==1)))&&(((a0==1)&&((a19==3)&&((((!(a11==1)&&((a16==8)&&(((a8==1)&&(a3==1))&&(a21==10))))&&(a20==1))&&(a1==13))&&(a17==2))))&&!(a6==1)))){ + a2 = 0; + a14 = 1; + a21 = 11; + a12 = 0; + a5 = 5; + a19 = 4; + a16 = 11; + return 21; + } else if((((((a17==2)&&((a1==14)&&(input==1)))&&(a2==1))&&!(a26==1))&&(((a28==1)&&((a12==1)&&((((a9==7)&&((a16==7)&&((((a13==1)&&(a5==5))&&!(a20==1))||!(a2==1))))&&(a19==5))&&(a21==10))))||!(a28==1)))){ + a19 = 1; + a1 = 12; + a5 = 4; + a6 = 1; + a20 = 1; + a3 = 1; + a7 = 0; + return -1; + } else if((((((a27==1)||(a23==1))&&(a9==11))&&!(a20==1))&&(((!(a18==1)&&((((a3==1)&&((a3==1)&&((a19==5)&&(!(a26==1)&&((a21==10)&&((input==3)&&(a17==2)))))))&&(a16==7))&&(a5==5)))&&(a1==13))&&(a11==1)))){ + a9 = 7; + a28 = 1; + a20 = 1; + a19 = 1; + a1 = 12; + a3 = 1; + a7 = 0; + a5 = 4; + return -1; + } else if((((a17==2)&&((a27==1)||(((a20==1)&&((a4==1)||((a11==1)||!(a3==1))))&&(a19==5))))&&((((a11==1)&&(((((input==4)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(a23==1))&&(a21==10))&&(a1==14)))&&!(a0==1))&&(a16==11)))){ + a23 = 1; + a8 = 0; + a1 = 12; + a26 = 0; + a9 = 7; + a5 = 4; + a19 = 1; + a16 = 7; + return -1; + } else if((((a12==1)&&((a4==1)||(!(a26==1)&&(((a28==1)&&(a1==12))&&(a5==6)))))&&((a13==1)&&((a6==1)&&(((a16==8)&&((a17==2)&&((a9==10)&&((a21==11)&&((a19==5)&&((input==5)&&!(a20==1)))))))&&!(a7==1)))))){ + a5 = 5; + a19 = 1; + a9 = 7; + a20 = 1; + a21 = 10; + a25 = 1; + a16 = 7; + a11 = 0; + a29 = 1; + a1 = 13; + return 23; + } else if(((((((a28==1)&&(!(a20==1)&&((a16==8)&&((a17==2)&&((a21==12)&&(a3==1))))))&&!(a24==1))||(a18==1))||!(a11==1))&&(((((((a9==8)&&(input==5))&&(a1==13))&&(a19==1))&&(a12==1))&&(a5==4))&&(a28==1)))){ + if((a24==1)){ + a16 = 9; + a9 = 11; + a22 = 1; + a14 = 1; + a5 = 6; + a20 = 1; + a19 = 3; + a21 = 11; + a6 = 0; + }else{ + a23 = 0; + a9 = 7; + a20 = 1; + a19 = 2; + a29 = 1; + a16 = 7; + a21 = 10; + a25 = 0; + } + return 21; + } else if(((!(a18==1)&&(!(a0==1)&&(!(a20==1)&&((((a16==8)&&((a1==13)&&(((input==6)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(a12==1))))&&!(a7==1))&&(a19==1)))))&&(((a21==11)&&((!(a7==1)&&(a12==1))&&(a17==2)))&&!(a8==1)))){ + if((a15==1)){ + a1 = 12; + a28 = 1; + a19 = 4; + a11 = 1; + a8 = 0; + a9 = 7; + a5 = 5; + }else{ + a19 = 5; + a20 = 1; + a1 = 14; + a24 = 0; + a21 = 12; + a3 = 1; + a9 = 7; + a5 = 6; + a6 = 1; + } + return 26; + } else if(((((a1==12)&&((((!(a7==1)&&(((input==4)&&((a5==5)||(a5==6)))&&(a16==8)))&&(a19==4))&&!(a18==1))&&(a12==1)))&&(a21==12))&&((a20==1)&&(((a9==9)&&((a14==1)||(!(a11==1)||((a6==1)&&!(a18==1)))))&&(a17==2))))){ + a16 = 7; + a11 = 1; + a24 = 0; + a5 = 4; + a19 = 1; + a8 = 0; + a9 = 7; + a21 = 10; + return -1; + } else if(((((a24==1)&&((a17==2)&&((a20==1)&&((a28==1)&&(a1==13)))))&&!(a11==1))&&((((((a5==4)&&(((a21==11)&&(((a19==3)&&(input==5))&&(a16==8)))&&(a18==1)))&&(a9==11))&&!(a11==1))&&(a4==1))&&!(a23==1)))){ + a15 = 0; + a16 = 7; + a1 = 14; + a22 = 0; + a4 = 1; + a19 = 1; + a21 = 10; + return 22; + } else if((((a5==6)&&((((((a21==12)&&(((a23==1)&&(!(a20==1)&&(((input==1)&&(a17==2))&&(a1==12))))&&!(a18==1)))&&!(a14==1))&&!(a8==1))&&(a13==1))&&!(a14==1)))&&(((a9==9)&&((a16==10)&&(a11==1)))&&(a19==4)))){ + a19 = 5; + a27 = 1; + a9 = 8; + a20 = 1; + a1 = 14; + a22 = 0; + a2 = 0; + a16 = 11; + return 23; + } else if(((((((((a11==1)||!(a13==1))&&(a16==10))&&(a9==11))&&(a17==2))&&(a20==1))||!(a28==1))&&((a12==1)&&(((((!(a26==1)&&(((input==5)&&((a5==5)||(a5==6)))&&(a21==11)))&&(a1==12))&&(a19==3))&&!(a4==1))&&(a3==1))))){ + a21 = 10; + a5 = 4; + a9 = 9; + a26 = 0; + a18 = 0; + a1 = 14; + a0 = 0; + a19 = 2; + return 21; + } else if((((a14==1)||(((a17==2)&&((a21==10)&&(a11==1)))&&(a19==4)))&&(((!(a27==1)&&((a12==1)&&((a16==9)&&((((((a9==7)&&((a1==13)&&(a5==5)))||((((a5==6)&&(a1==12))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==13)))))&&(input==4))&&!(a0==1))&&!(a24==1)))))&&!(a20==1))&&!(a7==1)))){ + a19 = 1; + a26 = 1; + a20 = 1; + a16 = 7; + a1 = 14; + a5 = 5; + a9 = 7; + a23 = 0; + return 26; + } else if(((((a2==1)&&((a12==1)&&((a13==1)&&((a6==1)&&(((((input==1)&&((a5==5)||(a5==6)))&&(a20==1))&&(a17==2))&&(a19==4))))))&&(a16==8))&&((a1==13)&&(!(a14==1)&&((a9==8)&&(((a2==1)&&(a28==1))&&(a21==10))))))){ + a24 = 0; + a1 = 12; + a16 = 7; + a19 = 1; + a8 = 0; + a9 = 7; + a3 = 1; + a5 = 4; + return -1; + } else if((((a26==1)&&((a1==14)&&((input==6)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))))&&(((a18==1)&&((a18==1)&&(((a0==1)&&(((a17==2)&&((((a19==1)&&(a28==1))&&!(a2==1))&&(a21==11)))&&(a16==9)))&&(a20==1))))&&!(a12==1)))){ + a5 = 4; + a23 = 0; + a24 = 1; + a21 = 10; + a27 = 1; + a9 = 8; + a16 = 7; + return 21; + } else if(((!(a0==1)&&(((!(a24==1)&&((a1==13)&&((input==3)&&((a5==4)||(a5==5)))))&&(a9==9))&&(a21==11)))&&((a24==1)||((a27==1)||((!(a20==1)&&(((((a12==1)&&(a19==1))&&!(a14==1))&&(a16==7))&&(a17==2)))&&(a28==1)))))){ + a21 = 10; + a27 = 0; + a9 = 7; + a28 = 1; + a2 = 1; + a20 = 1; + a1 = 12; + a5 = 4; + return -1; + } else if((((a17==2)&&(((a28==1)&&((input==3)&&((a5==5)||(a5==6))))&&!(a20==1)))&&((((((a4==1)||((a13==1)&&((a19==4)&&((((a21==11)&&(a2==1))||(a26==1))&&!(a4==1)))))&&!(a7==1))&&(a9==7))&&(a16==7))&&(a1==12)))){ + a23 = 1; + a20 = 1; + a7 = 0; + a13 = 1; + a5 = 4; + a19 = 1; + a21 = 10; + return -1; + } else if(((!(a2==1)||((a16==9)&&(((a21==11)&&((a19==1)&&(!(a13==1)||(a28==1))))||!(a2==1))))&&((a17==2)&&(((!(a8==1)&&((((input==5)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&!(a7==1))&&(a20==1)))&&(a1==13))&&(a12==1))))){ + a9 = 7; + a8 = 0; + a5 = 4; + a1 = 12; + a16 = 7; + a18 = 0; + a14 = 0; + a21 = 10; + return -1; + } else if((((a5==5)&&(((!(a24==1)&&(!(a26==1)&&(((a19==2)&&(!(a28==1)||((a3==1)&&(a28==1))))&&!(a0==1))))&&(a21==10))&&!(a20==1)))&&(((!(a14==1)&&((a17==2)&&((a1==14)&&(input==3))))&&(a9==8))&&(a16==11)))){ + if((a27==1)){ + a20 = 1; + a19 = 1; + a11 = 0; + a23 = 0; + a16 = 7; + a5 = 4; + a1 = 12; + a4 = 1; + a9 = 9; + }else{ + a27 = 1; + a9 = 10; + a5 = 4; + a22 = 0; + a1 = 12; + a19 = 1; + a20 = 1; + a29 = 0; + a16 = 7; + } + return -1; + } else if((((a21==10)&&((((a16==8)&&(((((a5==6)&&(input==3))&&(a3==1))&&(a19==3))&&(a11==1)))&&(a9==11))&&(a1==14)))&&(((((!(a26==1)&&((a3==1)&&(a12==1)))||(a0==1))&&!(a8==1))&&(a20==1))&&(a17==2)))){ + a19 = 1; + a5 = 4; + a9 = 7; + a27 = 0; + a18 = 0; + a1 = 12; + a26 = 0; + a16 = 7; + return -1; + } else if(((((a12==1)&&((a3==1)&&(((a16==7)&&(a2==1))||!(a6==1))))&&(a12==1))&&((a9==10)&&((((((a5==6)&&(!(a14==1)&&((a19==1)&&((a21==12)&&(input==4)))))&&(a17==2))&&!(a14==1))&&(a1==12))&&(a20==1))))){ + a3 = 1; + a16 = 8; + a19 = 4; + a9 = 8; + a18 = 0; + a1 = 14; + a5 = 4; + return 26; + } else if(((!(a20==1)&&((a17==2)&&(((!(a26==1)&&((a23==1)&&(((((((a5==6)&&(input==5))&&(a9==11))&&(a1==14))&&(a19==1))&&!(a26==1))&&!(a27==1))))&&(a21==11))&&(a16==10))))&&((a3==1)&&((a2==1)||!(a3==1))))){ + a9 = 7; + a16 = 8; + a2 = 0; + a5 = 4; + a19 = 3; + a20 = 1; + a4 = 1; + a7 = 1; + a21 = 12; + return -1; + } else if((((((!(a24==1)&&((a17==2)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a1==13))&&(a28==1))))&&(a21==12))&&(a9==7))&&(a16==10))&&((a19==3)&&(!(a20==1)&&(((a26==1)||(((a3==1)&&!(a7==1))&&(a13==1)))||!(a2==1)))))){ + a6 = 0; + a9 = 8; + a5 = 5; + a16 = 7; + a1 = 12; + a20 = 1; + a13 = 0; + a21 = 10; + a19 = 1; + a10 = 1; + return 26; + } else if((((a28==1)&&((a21==11)&&((a12==1)&&((((((a5==5)&&(a1==13))&&(a9==7))||((((a1==12)&&(a5==6))&&(a9==11))||(((a1==13)&&(a5==4))&&(a9==7))))&&(input==5))&&(a17==2)))))&&((a26==1)||((((a16==10)&&(!(a13==1)||((a26==1)||((a11==1)&&(a19==1)))))&&!(a20==1))||!(a6==1))))){ + a9 = 10; + a14 = 1; + a19 = 5; + a6 = 0; + a16 = 9; + a1 = 13; + a21 = 10; + a20 = 1; + a5 = 5; + return -1; + } else if(((((((((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8)))&&(input==3))&&(a17==2))&&(a21==11))&&(a16==9))&&(a20==1))&&(!(a2==1)||(((((a27==1)||(((a12==1)&&((a1==12)&&(a11==1)))||!(a12==1)))&&(a19==5))||(a4==1))&&!(a7==1))))){ + a5 = 4; + a2 = 1; + a19 = 1; + a13 = 1; + a16 = 7; + a21 = 10; + a18 = 0; + a9 = 7; + return -1; + } else if((((a21==10)&&(((a17==2)&&((a16==11)&&((a6==1)&&(a9==7))))&&!(a27==1)))&&((((((a13==1)&&(((((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&(a1==14))&&!(a18==1))&&(a20==1)))&&!(a24==1))&&!(a27==1))&&(a28==1))&&(a19==4)))){ + a3 = 1; + a21 = 11; + a9 = 11; + a7 = 0; + a28 = 1; + a1 = 12; + a5 = 4; + return 23; + } else if(((((!(a26==1)&&((((((a16==7)&&((input==6)&&(a21==11)))&&(a3==1))&&(a5==4))&&(a17==2))&&!(a24==1)))&&(a9==8))&&(a13==1))&&((!(a7==1)&&(((!(a20==1)&&(a11==1))&&(a13==1))&&(a19==1)))&&(a1==14)))){ + a5 = 5; + a20 = 1; + a19 = 4; + a23 = 1; + a9 = 7; + a24 = 0; + return 26; + } else if(((((a16==10)&&(((a9==8)&&((a19==5)&&((!(a8==1)&&(a3==1))&&!(a7==1))))&&!(a27==1)))&&(a1==12))&&(((((a13==1)&&((a17==2)&&(((a5==5)&&(input==1))&&(a21==11))))&&!(a20==1))&&(a6==1))&&!(a27==1)))){ + if((a3==1)){ + a5 = 4; + a27 = 1; + a14 = 1; + a16 = 7; + a6 = 0; + a20 = 1; + a9 = 9; + a19 = 3; + a1 = 13; + }else{ + a19 = 1; + a5 = 4; + a21 = 10; + a26 = 1; + a16 = 7; + a9 = 11; + a20 = 1; + a25 = 1; + a29 = 1; + } + return -1; + } else if(((((a12==1)&&(!(a18==1)&&(!(a8==1)&&(((((a1==13)&&(a5==5))&&(a9==7))||(((a9==11)&&((a5==6)&&(a1==12)))||((a9==7)&&((a1==13)&&(a5==4)))))&&(input==4)))))&&(a19==2))&&((a26==1)||(((((((a17==2)&&(a11==1))&&!(a14==1))&&(a21==11))&&!(a27==1))&&(a20==1))&&(a16==7))))){ + a3 = 1; + a21 = 10; + a9 = 7; + a5 = 4; + a19 = 1; + a1 = 12; + a12 = 1; + a7 = 0; + return -1; + } else if((((a20==1)&&((!(a27==1)&&((a16==8)&&(!(a8==1)&&((a6==1)&&((a13==1)&&((a1==12)&&((a19==4)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==3)))))))))&&!(a18==1)))&&(((a17==2)&&((a6==1)&&(a21==10)))||!(a13==1)))){ + a0 = 0; + a9 = 7; + a19 = 1; + a2 = 1; + a24 = 0; + a5 = 4; + a16 = 7; + return -1; + } else if(((((((a16==10)&&(((a3==1)&&!(a18==1))&&(a5==4)))&&!(a20==1))&&!(a18==1))&&!(a14==1))&&((!(a18==1)&&((((a1==12)&&((a19==5)&&((a13==1)&&((input==6)&&(a21==11)))))&&(a17==2))&&(a9==7)))&&!(a24==1)))){ + if((a27==1)){ + a16 = 7; + a5 = 5; + a9 = 11; + a19 = 2; + a26 = 1; + a20 = 1; + a7 = 1; + a21 = 10; + a14 = 1; + }else{ + a15 = 0; + a5 = 5; + a16 = 9; + a3 = 0; + a19 = 4; + a20 = 1; + a21 = 12; + a13 = 0; + a9 = 11; + } + return 25; + } else if((((a17==2)&&((a16==9)&&((a20==1)&&(a2==1))))&&((a1==14)&&((!(a26==1)&&(((a2==1)&&(((a21==11)&&((a28==1)&&(!(a7==1)&&(((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4)))&&(input==1)))))&&(a28==1)))&&(a11==1)))&&(a19==1))))){ + a1 = 13; + a19 = 3; + a4 = 0; + a5 = 5; + a9 = 7; + a3 = 1; + a16 = 11; + a21 = 10; + a2 = 1; + return 25; + } else if((((a20==1)&&((a9==9)&&((((a1==14)&&((((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&!(a8==1))&&!(a14==1)))&&(a19==3))&&(a17==2))))&&((a16==10)&&(((a24==1)||((((a13==1)&&!(a7==1))&&!(a4==1))||!(a23==1)))&&(a21==10))))){ + a1 = 12; + a24 = 0; + a5 = 4; + a18 = 0; + a9 = 7; + a19 = 1; + a16 = 7; + a23 = 1; + return -1; + } else if(((!(a0==1)&&((a6==1)&&(((((!(a27==1)&&((a17==2)&&((input==6)&&((a5==6)||((a5==4)||(a5==5))))))&&!(a0==1))&&(a19==3))&&(a16==8))&&!(a24==1))))&&((((a1==13)&&(((a9==11)&&(a3==1))&&(a20==1)))&&(a21==10))||!(a6==1)))){ + a26 = 0; + a0 = 0; + a16 = 7; + a11 = 1; + a5 = 4; + a19 = 1; + a1 = 12; + a9 = 7; + return -1; + } else if((((!(a18==1)&&(((((((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6))))&&(input==5))&&!(a20==1))&&!(a24==1))&&!(a8==1)))&&!(a8==1))&&((a16==10)&&((a24==1)||((((((a19==2)&&(a6==1))&&(a1==13))||!(a6==1))&&(a17==2))&&(a21==12)))))){ + if((a23==1)){ + a1 = 14; + a21 = 10; + a28 = 0; + a13 = 0; + a5 = 4; + a16 = 7; + a24 = 1; + a9 = 11; + }else{ + a1 = 12; + a8 = 1; + a5 = 6; + a15 = 0; + a20 = 1; + a16 = 7; + a21 = 10; + a9 = 8; + a14 = 1; + } + return -1; + } else if(((((a17==2)&&((a19==3)&&(!(a4==1)&&((a28==1)&&((a1==12)&&(!(a4==1)&&(a28==1)))))))&&(a20==1))&&((((a21==11)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&(a16==11))&&(a13==1))&&(a11==1)))&&(a12==1))&&(a9==11)))){ + a5 = 5; + a0 = 0; + a9 = 9; + a19 = 1; + a21 = 12; + a1 = 14; + a2 = 1; + a28 = 1; + return 25; + } else if((((((a20==1)&&((a19==1)&&(((((a21==12)&&(!(a8==1)&&(a23==1)))||(a4==1))||(a0==1))||!(a12==1))))&&(a17==2))&&(a9==8))&&((a11==1)&&((!(a7==1)&&((a1==13)&&((input==5)&&(a16==8))))&&(a5==6))))){ + a1 = 12; + a19 = 5; + a16 = 10; + a7 = 0; + a18 = 0; + a28 = 1; + a21 = 11; + return 25; + } else if(((!(a18==1)&&((((a16==9)&&((a21==10)&&((a19==2)&&((input==3)&&((a5==5)||(a5==6))))))&&(a20==1))&&!(a8==1)))&&(((a9==8)&&(((!(a0==1)&&(((a3==1)||(a7==1))&&(a1==14)))&&!(a8==1))&&(a17==2)))&&!(a26==1)))){ + a5 = 4; + a18 = 0; + a19 = 1; + a28 = 1; + a4 = 0; + a9 = 7; + a16 = 7; + a1 = 12; + return -1; + } else if((((a21==12)&&((a19==5)&&(!(a7==1)&&(((a1==13)&&((((a5==5)||(a5==6))&&(input==3))&&(a16==7)))&&(a9==7)))))&&((((!(a11==1)||(((!(a2==1)||(a3==1))&&!(a26==1))&&(a20==1)))||!(a2==1))||(a26==1))&&(a17==2)))){ + a21 = 11; + a5 = 6; + a2 = 1; + a3 = 1; + a9 = 10; + a19 = 4; + a16 = 9; + a1 = 14; + a27 = 0; + return 26; + } else if((((a1==12)&&(((((a21==10)&&((a6==1)||!(a13==1)))&&(a2==1))&&!(a20==1))&&(a2==1)))&&(((!(a7==1)&&((a16==9)&&((a11==1)&&((a5==4)&&(((input==5)&&(a17==2))&&(a6==1))))))&&(a19==5))&&(a9==11)))){ + a21 = 12; + a27 = 1; + a9 = 7; + a5 = 6; + a10 = 0; + a1 = 13; + a8 = 1; + return 21; + } else if(((((a21==12)&&((a9==7)&&(!(a18==1)&&((a19==2)&&(((a5==4)||(a5==5))&&(input==4))))))&&(a1==13))&&((a16==8)&&((((a27==1)||((((a17==2)&&(!(a7==1)&&(a13==1)))&&!(a8==1))||(a26==1)))&&!(a26==1))&&!(a20==1))))){ + if((a23==1)){ + a22 = 1; + a1 = 12; + a19 = 1; + a13 = 0; + a7 = 1; + a20 = 1; + a21 = 10; + a9 = 10; + a5 = 5; + a16 = 7; + }else{ + a20 = 1; + a19 = 1; + a22 = 0; + a11 = 0; + a29 = 1; + a16 = 7; + a5 = 5; + a21 = 10; + } + return -1; + } else if((((((a20==1)&&(!(a14==1)&&((a17==2)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==4)))))&&!(a18==1))&&(a21==10))&&(((a19==3)&&(((!(a23==1)||((a7==1)||((a16==11)&&(a23==1))))&&!(a26==1))&&!(a8==1)))&&(a1==12)))){ + a16 = 9; + a1 = 13; + a9 = 7; + a27 = 0; + a21 = 11; + a8 = 0; + a28 = 1; + a5 = 4; + return 25; + } else if(((!(a8==1)&&((!(a2==1)||((((a26==1)||(((a28==1)||!(a11==1))&&(a2==1)))&&(a9==9))&&(a1==14)))&&!(a26==1)))&&((a19==2)&&(((((a17==2)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))&&(a21==12))&&!(a20==1))&&(a16==10))))){ + a16 = 7; + a20 = 1; + a21 = 10; + a9 = 11; + a19 = 1; + a1 = 12; + a28 = 0; + a5 = 4; + a29 = 0; + return -1; + } else if(((((((((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6))))&&(input==6))&&(a28==1))&&(a21==12))&&(a20==1))&&(((a17==2)&&(!(a23==1)||(!(a12==1)||(((((a19==3)&&((a11==1)||(a14==1)))&&!(a4==1))&&(a28==1))&&(a1==14)))))&&(a16==11)))){ + a7 = 0; + a16 = 7; + a1 = 12; + a21 = 10; + a5 = 4; + a0 = 0; + a9 = 7; + a19 = 1; + a18 = 0; + return -1; + } else if((((a17==2)&&((a1==13)&&(((a9==11)&&(input==5))&&(a2==1))))&&((a16==7)&&((a21==10)&&(((!(a28==1)||((a14==1)||((!(a4==1)&&((a5==6)&&((a13==1)||(a24==1))))&&!(a8==1))))&&(a20==1))&&(a19==4)))))){ + a5 = 4; + a12 = 1; + a6 = 1; + a9 = 10; + a19 = 5; + a21 = 11; + a7 = 0; + return 25; + } else if((((((((a20==1)&&((a21==12)&&(((a19==1)&&(a6==1))&&(a23==1))))&&(a16==11))&&(a1==13))&&!(a27==1))&&(a17==2))&&(((a6==1)&&((((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))&&(input==6))&&(a3==1))&&(a13==1)))&&(a11==1)))){ + a19 = 3; + a9 = 10; + a7 = 0; + a6 = 1; + a1 = 14; + a5 = 5; + a26 = 0; + return 25; + } else if((((a5==6)&&(((!(a4==1)&&((a0==1)||(a2==1)))&&(a17==2))&&(a9==9)))&&(((((a19==4)&&(!(a20==1)&&(!(a18==1)&&(!(a18==1)&&(((input==1)&&(a16==7))&&!(a0==1))))))&&(a6==1))&&(a21==11))&&(a1==14)))){ + a13 = 1; + a5 = 4; + a9 = 7; + a20 = 1; + a0 = 0; + a21 = 10; + a19 = 1; + a1 = 12; + return -1; + } else if(((!(a8==1)&&(((a19==2)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&(a9==10))&&(a1==14))&&!(a27==1)))&&(a21==10)))&&((a14==1)||((a17==2)&&((a11==1)&&((((a16==7)&&((a3==1)||!(a12==1)))&&!(a18==1))&&(a20==1))))))){ + a0 = 0; + a5 = 6; + a19 = 4; + a2 = 1; + a9 = 7; + a28 = 1; + return 22; + } else if(((!(a0==1)&&((((a17==2)&&(((a16==7)&&((a2==1)&&((a9==10)&&(input==5))))&&(a5==4)))&&(a21==12))&&!(a20==1)))&&(((((((a19==2)&&(a2==1))||(a24==1))&&!(a7==1))&&(a1==14))&&!(a26==1))&&!(a27==1)))){ + a20 = 1; + a19 = 5; + a1 = 13; + a16 = 11; + a12 = 1; + a18 = 0; + a8 = 0; + a5 = 5; + return 25; + } else if(((((a2==1)&&((a19==5)&&((a11==1)||(a26==1))))||!(a13==1))&&(((a21==12)&&((!(a27==1)&&((a16==8)&&((a1==13)&&((!(a0==1)&&((a20==1)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a17==2)))))&&(a9==8)))&&(a2==1)))){ + a19 = 1; + a13 = 1; + a8 = 0; + a5 = 4; + a21 = 10; + a9 = 7; + a1 = 12; + a16 = 7; + a23 = 1; + return -1; + } else if((((a21==10)&&((a13==1)&&!(a24==1)))&&((((a9==8)&&(((a19==5)&&((((a28==1)&&((a12==1)&&(((a11==1)&&((input==1)&&(a5==4)))&&!(a8==1))))&&!(a0==1))&&(a17==2)))&&(a20==1)))&&(a16==9))&&(a1==13)))){ + a6 = 1; + a11 = 1; + a1 = 12; + a19 = 1; + a16 = 7; + a13 = 1; + a9 = 7; + return -1; + } else if((((!(a2==1)||((a28==1)&&((a9==8)&&(((a0==1)||(a6==1))||(a18==1)))))&&(a1==12))&&(((a21==12)&&((a19==4)&&(((a16==10)&&(!(a24==1)&&(((input==1)&&((a5==5)||(a5==6)))&&!(a7==1))))&&(a17==2))))&&(a20==1)))){ + a1 = 13; + a9 = 9; + a21 = 10; + a16 = 7; + a19 = 2; + a23 = 1; + a14 = 0; + a5 = 5; + a8 = 0; + return 25; + } else if(((((a1==13)&&((((!(a20==1)&&((a11==1)&&(a9==9)))||!(a13==1))&&!(a24==1))||(a4==1)))||!(a6==1))&&((a21==12)&&((a19==2)&&((a5==6)&&((a16==7)&&((((a17==2)&&(input==3))&&(a6==1))&&!(a14==1)))))))){ + a6 = 1; + a8 = 0; + a20 = 1; + a21 = 10; + a3 = 1; + a9 = 7; + a19 = 1; + a5 = 4; + a1 = 12; + return -1; + } else if((((((a17==2)&&((a16==10)&&((((a19==5)&&(!(a8==1)&&(!(a8==1)&&(a28==1))))&&(a20==1))&&(a5==5))))||!(a12==1))&&(a1==14))&&(!(a24==1)&&((a23==1)&&(!(a4==1)&&(((input==4)&&(a9==9))&&(a21==12))))))){ + a19 = 4; + a9 = 11; + a12 = 1; + a0 = 0; + a16 = 7; + a21 = 10; + return 25; + } else if(((((((a16==9)&&(((a13==1)&&((a19==3)&&(a12==1)))&&(a21==12)))&&(a20==1))||(a18==1))||!(a13==1))&&((a3==1)&&((a12==1)&&((((((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a17==2))&&(a9==8))&&(a1==12))&&(a6==1)))))){ + a8 = 0; + a9 = 7; + a26 = 0; + a5 = 4; + a24 = 0; + a21 = 10; + a19 = 1; + a16 = 7; + return -1; + } else if((((a17==2)&&(!(a8==1)&&((((a19==3)&&((a2==1)||!(a3==1)))&&(a16==11))&&(a5==4))))&&(((a1==13)&&((a28==1)&&((((((a20==1)&&(input==5))&&!(a0==1))&&!(a26==1))&&(a9==11))&&(a13==1))))&&(a21==10)))){ + a1 = 12; + a16 = 7; + a2 = 1; + a7 = 0; + a9 = 7; + a19 = 1; + a8 = 0; + return -1; + } else if(((((a27==1)||(((a17==2)&&(!(a20==1)&&((a18==1)||((((a3==1)&&(a21==10))&&(a11==1))&&(a16==9)))))||!(a23==1)))&&(a19==3))&&(((a1==13)&&((a11==1)&&(!(a8==1)&&((input==4)&&((a5==4)||(a5==5))))))&&(a9==7)))){ + a9 = 8; + a28 = 0; + a5 = 5; + a14 = 1; + a13 = 0; + a16 = 7; + a20 = 1; + a19 = 1; + return 25; + } else if((((((a21==11)&&(((a17==2)&&((a23==1)&&((((a20==1)&&(input==3))&&(a1==13))&&!(a0==1))))&&!(a0==1)))&&!(a27==1))&&(a16==8))&&((!(a18==1)&&(((a19==5)&&((a9==11)&&(a13==1)))&&!(a0==1)))&&(a5==6)))){ + a23 = 1; + a13 = 1; + a16 = 7; + a18 = 0; + a9 = 7; + a1 = 12; + a19 = 1; + a5 = 4; + a21 = 10; + return -1; + } else if((((((!(a8==1)&&(!(a2==1)||((a20==1)&&(a12==1))))&&(a21==10))&&(a13==1))&&!(a24==1))&&(((a6==1)&&((a16==8)&&(((a1==12)&&(((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==5))&&(a19==1)))&&!(a26==1))))&&(a17==2)))){ + a0 = 0; + a16 = 7; + a2 = 1; + a14 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if(((((((a13==1)&&((a16==9)&&(a28==1)))&&(a1==13))&&(a17==2))&&(a21==10))&&((!(a4==1)&&((!(a4==1)&&(((!(a8==1)&&((((a5==5)||(a5==6))&&(input==3))&&!(a26==1)))&&(a19==2))&&!(a20==1)))&&!(a4==1)))&&(a9==9)))){ + if((a2==1)){ + a11 = 0; + a20 = 1; + a19 = 4; + a9 = 7; + a1 = 14; + a5 = 6; + a8 = 1; + a7 = 1; + a21 = 11; + }else{ + a5 = 6; + a3 = 0; + a7 = 1; + a20 = 1; + a16 = 7; + a19 = 1; + } + return -1; + } else if((((a27==1)||(((a1==13)&&((((a17==2)&&(a23==1))&&(a9==11))&&(a21==10)))&&(a12==1)))&&(((a11==1)&&((a5==6)&&(((!(a18==1)&&(((input==4)&&(a16==8))&&(a20==1)))&&(a6==1))&&(a19==4))))&&(a13==1)))){ + a8 = 0; + a9 = 7; + a16 = 7; + a1 = 12; + a19 = 1; + a11 = 1; + a18 = 0; + a5 = 4; + return -1; + } else if((((a3==1)&&((a12==1)&&((a16==9)&&((a1==13)&&((a19==2)&&(((a17==2)&&((a12==1)&&(!(a8==1)&&((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))&&(input==1)))))&&(a20==1)))))))&&(!(a27==1)&&(((a21==12)&&(a28==1))||!(a23==1))))){ + a16 = 7; + a9 = 7; + a26 = 0; + a21 = 10; + a28 = 1; + a13 = 1; + a1 = 12; + a5 = 4; + a19 = 1; + return -1; + } else if(((((a3==1)&&(a12==1))&&(a16==11))&&((a28==1)&&(!(a14==1)&&((((a12==1)&&(((((((input==4)&&(((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))))&&(a20==1))&&(a19==1))&&(a12==1))&&(a21==11))&&(a1==13)))&&!(a26==1))&&(a17==2)))))){ + a16 = 7; + a14 = 0; + a5 = 4; + a1 = 12; + a7 = 0; + a9 = 7; + a21 = 10; + return -1; + } else if((((a16==7)&&(!(a4==1)&&((((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6))))&&(input==6))))&&(((((a17==2)&&((((a21==12)&&((a20==1)&&((a4==1)||((a23==1)&&(a28==1)))))&&!(a24==1))&&(a19==3)))&&!(a0==1))&&(a1==14))&&!(a14==1)))){ + a26 = 0; + a0 = 0; + a16 = 9; + a21 = 10; + a28 = 1; + a5 = 6; + a9 = 11; + a19 = 5; + return 26; + } else if((((((((((a3==1)&&(((a16==10)&&((input==1)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))))&&(a2==1)))&&(a28==1))&&(a20==1))&&(a1==14))&&(a17==2))&&(a13==1))&&(a21==11))&&(((!(a11==1)||(a28==1))||!(a2==1))&&(a19==1)))){ + a21 = 10; + a5 = 4; + a4 = 0; + a1 = 12; + a0 = 0; + a18 = 0; + a16 = 7; + a9 = 7; + return -1; + } else if((((a20==1)&&((((a1==12)&&((a5==4)&&(!(a24==1)&&((a17==2)&&(input==6)))))&&(a16==11))&&!(a8==1)))&&((((((a19==1)&&(((a12==1)&&(a3==1))&&!(a4==1)))&&(a21==10))&&(a9==10))&&!(a0==1))||!(a11==1)))){ + a26 = 0; + a16 = 7; + a9 = 7; + a7 = 0; + a8 = 0; + return -1; + } else if((((a21==12)&&(((a9==10)&&(!(a12==1)||(((a12==1)&&(a23==1))&&(a17==2))))&&(a16==8)))&&(!(a18==1)&&((a1==12)&&(((!(a14==1)&&(((a23==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))&&!(a4==1)))&&!(a20==1))&&(a19==1)))))){ + if((a12==1)){ + a20 = 1; + a5 = 6; + a9 = 11; + a6 = 0; + a21 = 10; + a25 = 0; + a16 = 7; + }else{ + a14 = 1; + a5 = 6; + a21 = 10; + a16 = 7; + a20 = 1; + a9 = 9; + a15 = 0; + a13 = 0; + } + return 21; + } else if((((a13==1)&&(((a16==10)&&(((((a2==1)||(a0==1))&&(a6==1))&&!(a4==1))&&!(a26==1)))&&(a19==4)))&&((a20==1)&&((a17==2)&&(((a21==10)&&((a23==1)&&((((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==1))))&&(a1==13)))))){ + a19 = 3; + a14 = 0; + a5 = 5; + a1 = 14; + a9 = 11; + a21 = 11; + a3 = 1; + a13 = 1; + a16 = 7; + return 25; + } else if(((!(a18==1)&&((a16==10)&&((a20==1)&&((((a19==5)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))&&(a21==10))&&(a9==8)))))&&((a28==1)&&((a17==2)&&(!(a12==1)||(!(a14==1)&&(((a1==12)&&((a11==1)||!(a23==1)))||(a27==1)))))))){ + if((a4==1)){ + a1 = 13; + a16 = 8; + a24 = 0; + a28 = 1; + a20 = 0; + a27 = 0; + a21 = 11; + a9 = 10; + a5 = 6; + a19 = 1; + }else{ + a5 = 5; + a9 = 11; + a21 = 12; + a27 = 0; + a11 = 1; + a1 = 14; + a16 = 8; + a7 = 0; + } + return 22; + } else if(((((a19==4)&&(((a17==2)&&((a21==11)&&(((!(a28==1)&&((((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(input==3)))&&!(a3==1))&&!(a28==1))))&&(a1==13)))&&(a16==7))&&((a20==1)&&((a7==1)&&(((a28==1)&&!(a11==1))&&!(a6==1)))))){ + a1 = 12; + a19 = 1; + a5 = 4; + a29 = 1; + a22 = 0; + a9 = 10; + a21 = 10; + return -1; + } else if(((((a3==1)&&((a11==1)&&(!(a26==1)&&(!(a0==1)&&(((a5==4)||(a5==5))&&(input==4))))))&&(a19==1))&&(((a9==8)&&(((((((a20==1)&&(a28==1))&&(a16==7))&&!(a7==1))&&(a21==11))||!(a11==1))&&(a17==2)))&&(a1==14)))){ + a1 = 12; + a4 = 0; + a21 = 10; + a9 = 7; + a5 = 4; + a8 = 0; + a2 = 1; + return -1; + } else if((((!(a0==1)&&(((a23==1)&&(((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&(a20==1)))&&(a21==12)))&&(a23==1))&&((a19==5)&&(!(a4==1)&&(!(a28==1)||((a26==1)||((a9==9)&&((((a16==8)&&(a6==1))&&(a17==2))&&(a1==13))))))))){ + a5 = 5; + a2 = 1; + a19 = 2; + a9 = 11; + a21 = 10; + a6 = 1; + a1 = 14; + a16 = 7; + return 21; + } else if((((a9==8)&&(((((((a3==1)&&(((a5==5)||(a5==6))&&(input==4)))&&!(a7==1))&&(a6==1))&&(a21==11))&&(a20==1))&&(a6==1)))&&((a1==13)&&((a19==2)&&((a4==1)||((((a0==1)||(a2==1))&&(a16==8))&&(a17==2))))))){ + a9 = 7; + a21 = 10; + a16 = 7; + a26 = 0; + a23 = 1; + a19 = 1; + a5 = 4; + a2 = 1; + a1 = 12; + return -1; + } else if((((a16==11)&&((a11==1)&&((a3==1)&&(a17==2))))&&((a20==1)&&((a19==4)&&((((a23==1)&&(!(a4==1)&&((a21==11)&&(((input==3)&&((((a9==11)&&((a1==12)&&(a5==5)))||(((a1==12)&&(a5==6))&&(a9==11)))||(((a1==13)&&(a5==4))&&(a9==7))))&&(a13==1)))))&&!(a27==1))&&(a6==1)))))){ + a19 = 1; + a21 = 10; + a27 = 0; + a18 = 0; + a5 = 4; + a23 = 1; + a9 = 7; + a16 = 7; + a1 = 12; + return -1; + } else if(((((a5==6)&&((a21==12)&&((((a8==1)||(((a27==1)||(a2==1))&&(a11==1)))||!(a13==1))&&(a17==2))))&&!(a20==1))&&((((a6==1)&&((a9==8)&&(((input==1)&&(a16==7))&&(a12==1))))&&(a19==3))&&(a1==12)))){ + a24 = 0; + a13 = 1; + a20 = 1; + a9 = 7; + a26 = 0; + a21 = 10; + a5 = 4; + a19 = 1; + return -1; + } else if((((!(a24==1)&&((a12==1)&&((!(a14==1)&&(((a9==8)&&((input==1)&&(a5==4)))&&(a23==1)))&&(a21==10))))&&(a20==1))&&((a16==11)&&((!(a14==1)&&((((a23==1)&&(a17==2))&&(a19==1))&&(a6==1)))&&(a1==12))))){ + a1 = 14; + a19 = 4; + a13 = 1; + a9 = 11; + a2 = 1; + a14 = 0; + a5 = 5; + a16 = 7; + return 25; + } else if((((!(a26==1)&&((a20==1)&&(((a12==1)||(a26==1))&&(a9==9))))||!(a28==1))&&((!(a26==1)&&((a5==5)&&(((a17==2)&&((((a28==1)&&((a21==12)&&(input==3)))&&(a19==5))&&!(a0==1)))&&(a16==7))))&&(a1==14)))){ + a18 = 0; + a9 = 7; + a26 = 0; + a5 = 4; + a1 = 12; + a24 = 0; + a21 = 10; + a19 = 1; + return -1; + } else if(((((((a21==11)&&((a6==1)&&((((a5==4)||(a5==5))&&(input==3))&&!(a20==1))))&&(a11==1))&&(a23==1))&&!(a0==1))&&((a4==1)||(((a19==5)&&(!(a14==1)&&((((a17==2)&&(a23==1))&&(a9==8))&&(a16==9))))&&(a1==14))))){ + if((a0==1)){ + a5 = 5; + a1 = 12; + a19 = 1; + a15 = 0; + a9 = 11; + a0 = 1; + a28 = 0; + a21 = 12; + }else{ + a15 = 0; + a21 = 10; + a16 = 7; + a9 = 11; + a19 = 1; + a20 = 1; + a2 = 0; + a26 = 1; + a5 = 6; + } + return -1; + } else if((((a26==1)||((a19==1)&&((a17==2)&&(!(a4==1)&&((a9==7)&&((!(a6==1)||(a13==1))&&(a21==10)))))))&&((!(a7==1)&&((a16==9)&&((a3==1)&&((a5==5)&&(((a20==1)&&(input==6))&&(a1==12))))))&&!(a14==1)))){ + a1 = 13; + a21 = 12; + a16 = 7; + a19 = 4; + a4 = 0; + a2 = 1; + a9 = 11; + a20 = 0; + return 21; + } else if((((a26==1)||((a19==3)&&(((a17==2)&&((a16==7)&&((a6==1)&&(a6==1))))&&(a21==12))))&&(!(a0==1)&&(((a13==1)&&((a28==1)&&((a20==1)&&(((input==5)&&((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4))))&&(a1==12)))))&&(a12==1))))){ + a21 = 10; + a19 = 4; + a9 = 10; + a5 = 4; + a7 = 0; + a1 = 13; + a16 = 9; + a23 = 1; + a18 = 0; + return 23; + } else if((((!(a28==1)||((((a19==2)&&((((((a21==12)&&((a11==1)&&(a17==2)))&&(a3==1))&&(a16==7))&&(a1==12))&&(a9==9)))&&(a13==1))||!(a12==1)))&&(a20==1))&&((((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a12==1))&&(a12==1)))){ + a6 = 1; + a9 = 8; + a12 = 1; + a16 = 9; + a21 = 10; + a5 = 6; + a8 = 0; + a1 = 13; + return 21; + } else if((((a23==1)&&((a6==1)&&((a1==14)&&((a9==8)&&(((a17==2)&&((input==3)&&(a5==4)))&&(a20==1))))))&&((a19==4)&&((a26==1)||(!(a28==1)||((!(a23==1)||((a21==10)&&((a3==1)&&(a16==9))))&&!(a8==1))))))){ + a26 = 0; + a1 = 12; + a19 = 1; + a9 = 7; + a13 = 1; + a16 = 7; + return -1; + } else if(((!(a27==1)&&(((!(a6==1)||((a8==1)||(((a21==10)&&(((a16==11)&&(a12==1))&&!(a20==1)))&&(a1==14))))&&(a19==1))||!(a23==1)))&&(((((a17==2)&&(((a5==5)||(a5==6))&&(input==4)))&&(a9==11))&&(a11==1))&&!(a18==1)))){ + a21 = 12; + a5 = 4; + a19 = 2; + a9 = 8; + a16 = 7; + a10 = 0; + a23 = 0; + a1 = 12; + a2 = 0; + return -1; + } else if((((((((a9==10)&&((a1==13)&&(((!(a24==1)&&(((input==6)&&((a5==5)||(a5==6)))&&(a19==2)))&&(a13==1))&&(a16==10))))&&(a3==1))&&(a12==1))&&!(a14==1))&&(a12==1))&&((((a28==1)&&(a21==12))&&(a20==1))&&(a17==2)))){ + if((a20==1)){ + a16 = 8; + a18 = 0; + a1 = 12; + a20 = 0; + a24 = 0; + a5 = 6; + a21 = 10; + a6 = 1; + a19 = 5; + }else{ + a1 = 14; + a18 = 0; + a6 = 1; + a21 = 10; + a14 = 0; + a16 = 7; + a5 = 4; + } + return 21; + } else if((((a3==1)&&((a23==1)&&(!(a20==1)&&(((((a16==10)&&(input==5))&&(a9==7))&&(a1==12))&&(a13==1)))))&&(!(a11==1)||((((((a21==12)&&((a19==5)&&(a2==1)))||!(a11==1))&&(a13==1))&&(a5==4))&&(a17==2))))){ + a19 = 2; + a21 = 10; + a2 = 0; + a20 = 1; + a3 = 0; + a9 = 10; + a29 = 0; + a16 = 7; + a5 = 5; + return -1; + } else if((((a6==1)&&(!(a24==1)&&((!(a18==1)&&(((a28==1)&&((input==3)&&(((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6))))))&&(a21==12)))&&(a16==8))))&&(((((((a2==1)&&(a19==4))&&(a1==12))&&!(a20==1))&&(a17==2))||(a14==1))||!(a3==1)))){ + a16 = 7; + a3 = 0; + a15 = 0; + a5 = 6; + a20 = 1; + a28 = 0; + a21 = 10; + a9 = 9; + a19 = 2; + return 21; + } else if((((!(a20==1)&&(!(a24==1)&&(((!(a11==1)||((a2==1)&&(a19==2)))&&(a16==7))&&(a11==1))))&&(a9==10))&&((a11==1)&&(((((((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a1==13))&&(a21==10))&&(a17==2))&&!(a24==1))&&(a12==1))))){ + a26 = 0; + a6 = 1; + a9 = 9; + a18 = 0; + a1 = 12; + a5 = 6; + a19 = 3; + return 21; + } else if((((a21==12)&&(((a0==1)&&((a19==3)&&((((!(a11==1)&&(a12==1))&&(a16==8))&&!(a6==1))&&(a1==13))))&&(a5==6)))&&(((a9==7)&&(!(a23==1)&&((a14==1)&&(((input==1)&&(a20==1))&&(a18==1)))))&&(a17==2)))){ + a21 = 10; + a29 = 1; + a16 = 10; + a19 = 2; + a24 = 1; + a15 = 1; + a1 = 12; + return -1; + } else if((((((((a21==12)&&((a1==13)&&((a7==1)&&((a17==2)&&((((a5==4)||(a5==5))&&(input==6))&&!(a13==1))))))&&(a9==11))&&(a4==1))&&!(a2==1))&&(a18==1))&&(!(a23==1)&&((((a6==1)&&(a16==7))&&!(a20==1))&&(a19==4))))){ + a20 = 1; + a7 = 1; + a25 = 0; + a21 = 10; + a5 = 4; + a19 = 1; + a9 = 8; + a10 = 1; + return -1; + } else if((((((((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a17==2))&&!(a20==1))&&(a19==1))&&!(a18==1))&&(!(a24==1)&&((a9==11)&&(((a18==1)||((a1==13)&&((!(a3==1)||(((a14==1)||(a12==1))&&(a21==11)))&&!(a18==1))))&&(a16==9)))))){ + a20 = 1; + a19 = 5; + a7 = 1; + a21 = 10; + a16 = 10; + a12 = 0; + a5 = 5; + a9 = 7; + a26 = 1; + return 26; + } else if(((!(a12==1)||((a7==1)||((((((a13==1)&&(a16==8))||(a0==1))||(a14==1))&&!(a24==1))&&(a9==11))))&&((a19==1)&&((a17==2)&&((a21==10)&&((a1==14)&&((a20==1)&&((((a5==4)||(a5==5))&&(input==4))&&!(a7==1))))))))){ + a9 = 7; + a16 = 7; + a7 = 0; + a5 = 4; + a3 = 1; + a27 = 0; + a1 = 12; + return -1; + } else if((((a14==1)||((((a17==2)&&((a12==1)&&!(a27==1)))||!(a6==1))||(a4==1)))&&(((!(a7==1)&&(!(a20==1)&&((a16==9)&&((a21==11)&&((input==6)&&((((a1==14)&&(a5==4))&&(a9==7))||(((a9==11)&&((a5==5)&&(a1==13)))||((a9==11)&&((a5==6)&&(a1==13))))))))))&&(a19==3))&&(a12==1)))){ + if((a11==1)){ + a21 = 10; + a1 = 13; + a9 = 8; + a11 = 0; + a16 = 7; + a26 = 1; + a5 = 4; + a10 = 1; + a19 = 1; + a20 = 1; + }else{ + a5 = 4; + a19 = 1; + a15 = 1; + a16 = 7; + a20 = 1; + a0 = 1; + a21 = 10; + a9 = 7; + a1 = 12; + } + return 23; + } else if((((a3==1)&&((a21==12)&&(((a0==1)||(a13==1))&&(a16==7))))&&(((a3==1)&&(!(a20==1)&&((((a19==1)&&(((a3==1)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==5)))&&(a6==1)))&&(a17==2))&&(a1==14))))&&!(a24==1)))){ + a21 = 10; + a19 = 2; + a13 = 1; + a14 = 0; + a16 = 9; + a28 = 1; + a20 = 1; + a5 = 6; + a9 = 9; + return 21; + } else if((((((!(a8==1)&&((input==4)&&((a5==6)||((a5==4)||(a5==5)))))&&(a21==12))&&!(a18==1))&&(a20==1))&&((a17==2)&&(((a19==2)&&((a16==8)&&(((a0==1)||((a0==1)||(!(a13==1)||((a6==1)||(a0==1)))))&&(a9==11))))&&(a1==13))))){ + a19 = 1; + a1 = 12; + a9 = 7; + a24 = 0; + a5 = 4; + a21 = 10; + a8 = 0; + a23 = 1; + a16 = 7; + return -1; + } else if((((!(a12==1)||(a28==1))&&!(a27==1))&&((a28==1)&&((((((((((a20==1)&&((a19==1)&&((a16==8)&&(input==6))))&&(a9==8))&&!(a4==1))&&(a17==2))&&!(a14==1))&&(a5==5))&&(a1==14))&&(a21==10))&&(a28==1))))){ + a1 = 12; + a12 = 1; + a7 = 0; + a24 = 0; + a16 = 7; + a9 = 7; + a5 = 4; + return -1; + } else if(((!(a24==1)&&(((a6==1)&&((a11==1)&&(((((input==1)&&(a21==12))&&(a13==1))&&(a16==7))&&(a19==1))))&&(a12==1)))&&((((!(a23==1)||((a20==1)&&((a17==2)&&(a11==1))))&&(a9==7))&&(a1==14))&&(a5==5)))){ + a19 = 5; + a28 = 1; + a1 = 13; + a16 = 8; + a9 = 10; + a2 = 1; + a5 = 4; + a11 = 1; + return 22; + } else if((((a12==1)&&(((a12==1)&&((((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==1))||((((a5==4)&&(a1==12))&&(a9==7))&&(a19==2)))&&(input==5))&&(a17==2)))&&(a21==11)))&&(!(a23==1)||((a26==1)||(((a13==1)&&((a20==1)&&((a18==1)||(a11==1))))&&(a16==8)))))){ + a0 = 0; + a19 = 1; + a5 = 4; + a16 = 7; + a1 = 12; + a9 = 7; + a8 = 0; + a3 = 1; + a21 = 10; + return -1; + } else if((((a19==1)&&(!(a8==1)&&(((!(a13==1)||(a28==1))||!(a6==1))&&(a1==13))))&&(((a17==2)&&(!(a27==1)&&((a20==1)&&((a21==11)&&(!(a24==1)&&((((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11)))&&(input==3))&&!(a18==1)))))))&&(a16==11)))){ + a1 = 12; + a8 = 0; + a9 = 7; + a12 = 1; + a16 = 7; + a21 = 10; + a14 = 0; + a5 = 4; + return -1; + } else if((((a16==7)&&((((a19==4)&&((a9==8)&&((((!(a26==1)&&(((a5==4)||(a5==5))&&(input==1)))&&(a23==1))&&(a17==2))&&!(a24==1))))&&(a21==10))&&(a1==13)))&&((a26==1)||(!(a4==1)&&((a20==1)&&((a13==1)||(a0==1))))))){ + a21 = 11; + a11 = 1; + a2 = 1; + a1 = 14; + a5 = 4; + a9 = 11; + a26 = 0; + return 21; + } else if((((((a19==1)&&(((a16==7)&&((a5==4)&&(((a28==1)&&(((a28==1)||!(a3==1))||!(a28==1)))||(a14==1))))||(a27==1)))&&(a11==1))&&(a1==13))&&((((a21==10)&&((input==1)&&(a17==2)))&&!(a20==1))&&(a9==8)))){ + a20 = 1; + a23 = 1; + a6 = 1; + a8 = 0; + a9 = 7; + a1 = 12; + return -1; + } else if((((a19==5)&&(!(a14==1)&&((((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a5==4)&&(a9==9)))&&(input==5))&&!(a7==1))))&&(((a28==1)&&(((a2==1)&&(((a20==1)&&(((a6==1)&&((a23==1)&&(a17==2)))&&(a1==13)))&&(a16==9)))&&(a21==12)))||!(a13==1)))){ + a21 = 10; + a23 = 1; + a16 = 10; + a11 = 1; + a4 = 0; + a9 = 9; + a5 = 6; + return 21; + } else if((((a16==8)&&((a19==4)&&(((!(a26==1)&&((input==6)&&(a5==4)))&&!(a18==1))&&!(a24==1))))&&((a21==10)&&((a17==2)&&((a23==1)&&(!(a20==1)&&(!(a3==1)||((((a13==1)&&(a3==1))&&(a1==13))&&(a9==7))))))))){ + a0 = 0; + a21 = 11; + a3 = 1; + a4 = 0; + a20 = 1; + a16 = 9; + return 22; + } else if((((((((a21==12)&&((a20==1)&&(((((!(a28==1)||(a13==1))||(a27==1))&&(a17==2))&&(a23==1))&&(a19==3))))&&(a16==9))||(a14==1))&&(a6==1))&&(a1==13))&&((a9==8)&&(((input==3)&&((a5==4)||(a5==5)))&&!(a26==1))))){ + a16 = 7; + a11 = 1; + a1 = 12; + a23 = 1; + a9 = 7; + a14 = 0; + a21 = 10; + a5 = 4; + a19 = 1; + return -1; + } else if((((a21==12)&&(((a12==1)&&((a17==2)&&((input==3)&&(((a19==4)&&(((a1==12)&&(a5==4))&&(a9==7)))||(((((a5==5)&&(a1==14))&&(a9==11))&&(a19==3))||((((a5==6)&&(a1==14))&&(a9==11))&&(a19==3)))))))&&(a16==7)))&&((!(a13==1)||(((((a3==1)&&!(a27==1))&&!(a14==1))&&(a6==1))||(a26==1)))&&(a20==1)))){ + a2 = 1; + a21 = 11; + a5 = 4; + a1 = 12; + a19 = 1; + a16 = 9; + a11 = 1; + a9 = 8; + a13 = 1; + return 22; + } else if((((a1==12)&&((a9==9)&&((a17==2)&&((a0==1)&&((a21==10)&&(!(a11==1)&&((input==3)&&(a19==5))))))))&&(!(a6==1)&&((a16==8)&&((a20==1)&&((a5==4)&&((a24==1)&&(!(a3==1)&&((a26==1)&&(a3==1)))))))))){ + a16 = 7; + a5 = 6; + a9 = 8; + a19 = 1; + a10 = 0; + a1 = 14; + a27 = 1; + return -1; + } return calculate_output60(input); + } + + int calculate_output60(int input) { + if(((((a1==12)&&((!(a3==1)&&(!(a12==1)&&((a19==4)&&((((a5==5)||(a5==6))&&(input==6))&&(a14==1)))))&&(a20==1)))&&(a17==2))&&(((a21==11)&&(((a7==1)&&((a16==9)&&(!(a6==1)&&(a12==1))))&&(a7==1)))&&(a9==7)))){ + a9 = 11; + a1 = 13; + a27 = 1; + a5 = 5; + a6 = 0; + a16 = 7; + a19 = 5; + return 21; + } else if((((a1==13)&&((a19==5)&&(!(a20==1)&&((a17==2)&&((((a6==1)&&((!(a0==1)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6))))&&(a2==1)))&&(a11==1))&&!(a4==1))))))&&(((((a9==10)&&(a3==1))&&!(a26==1))&&(a21==10))&&(a16==9)))){ + if((a3==1)){ + a20 = 1; + a7 = 1; + a9 = 8; + a16 = 7; + a2 = 0; + a1 = 12; + a5 = 6; + a19 = 2; + a27 = 1; + }else{ + a15 = 1; + a20 = 1; + a5 = 6; + a29 = 1; + a1 = 12; + a16 = 7; + a2 = 0; + a19 = 1; + a9 = 7; + } + return 25; + } else if((((a20==1)&&(((a16==11)&&(((a1==12)&&(((a9==7)&&(input==6))&&(a21==10)))&&(a19==2)))&&(a12==1)))&&((a17==2)&&((a28==1)&&((((((a5==4)&&(a23==1))&&(a2==1))||(a4==1))&&!(a8==1))||!(a12==1)))))){ + a19 = 1; + a6 = 1; + a16 = 7; + a3 = 1; + return -1; + } else if(((((((a23==1)&&((((input==3)&&((((a21==11)&&(((a9==11)&&((a1==14)&&(a5==6)))&&(a19==5)))||((a21==12)&&((a19==1)&&(((a5==4)&&(a1==12))&&(a9==7)))))||((a21==12)&&((((a1==12)&&(a5==5))&&(a9==7))&&(a19==1)))))&&(a17==2))&&(a20==1)))&&(a16==9))&&!(a7==1))&&(a13==1))&&((a11==1)&&(!(a14==1)&&((a8==1)||(a23==1)))))){ + a21 = 10; + a9 = 7; + a12 = 1; + a19 = 1; + a11 = 1; + a1 = 12; + a16 = 7; + a5 = 4; + return -1; + } else if((((a19==3)&&(!(a11==1)||((a11==1)&&(a12==1))))&&(!(a20==1)&&((a16==8)&&((((((!(a0==1)&&((input==6)&&((((a1==13)&&(a5==5))&&(a9==7))||((((a5==6)&&(a1==12))&&(a9==11))||(((a1==13)&&(a5==4))&&(a9==7))))))&&(a2==1))&&(a21==11))&&(a6==1))&&!(a27==1))&&(a17==2)))))){ + a16 = 9; + a20 = 1; + a12 = 1; + a1 = 14; + a19 = 2; + a3 = 1; + a9 = 10; + a13 = 1; + a5 = 4; + return 21; + } else if((((a16==9)&&((((a24==1)||((a20==1)&&(a13==1)))&&(a19==1))&&(a21==10)))&&((a17==2)&&(!(a4==1)&&((!(a26==1)&&((((a13==1)&&(((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))&&(input==3)))&&!(a14==1))&&(a11==1)))&&(a1==13)))))){ + a26 = 0; + a1 = 12; + a0 = 0; + a16 = 7; + a23 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if(((((a19==5)&&(((((a23==1)&&((a3==1)&&((((input==3)&&((a5==4)||(a5==5)))&&(a21==10))&&(a23==1))))&&!(a18==1))&&(a9==10))&&(a1==14)))&&(a16==7))&&(!(a23==1)||((((a17==2)&&(a6==1))&&!(a26==1))&&(a20==1))))){ + a9 = 7; + a11 = 1; + a19 = 1; + a5 = 4; + a3 = 1; + a23 = 1; + a1 = 12; + return -1; + } else if(((((a0==1)||(((a17==2)&&(a28==1))&&(a20==1)))&&!(a7==1))&&((a5==4)&&(((a13==1)&&((a16==7)&&((a21==10)&&((a3==1)&&(((a6==1)&&(((a1==13)&&(input==3))&&!(a0==1)))&&(a19==2))))))&&(a9==11))))){ + a19 = 1; + a13 = 1; + a1 = 12; + a23 = 1; + a2 = 1; + a9 = 7; + return -1; + } else if(((!(a4==1)&&(!(a24==1)&&(((((input==5)&&(((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))))&&(a1==12))&&(a19==2))&&(a2==1))))&&(((a17==2)&&((!(a24==1)&&((a16==8)&&(((a20==1)&&(a28==1))||(a27==1))))||(a8==1)))&&(a21==10)))){ + a7 = 0; + a16 = 7; + a9 = 7; + a5 = 4; + a23 = 1; + a6 = 1; + a19 = 1; + return -1; + } else if(((!(a20==1)&&((a24==1)||(((a1==12)&&(a13==1))&&(a21==12))))&&((a19==4)&&(((((!(a8==1)&&(((a3==1)&&(((input==3)&&(a5==5))&&(a13==1)))&&(a12==1)))&&(a16==9))&&(a3==1))&&(a17==2))&&(a9==7))))){ + a20 = 1; + a21 = 10; + a19 = 1; + a10 = 0; + a9 = 8; + a4 = 1; + a16 = 7; + return 21; + } else if(((((a19==3)&&(!(a4==1)&&((a8==1)||(((a16==7)&&((a12==1)||!(a2==1)))&&(a9==10)))))&&(a20==1))&&((((a21==11)&&((a12==1)&&((a13==1)&&(((input==5)&&((a5==4)||(a5==5)))&&(a11==1)))))&&(a1==14))&&(a17==2)))){ + a16 = 8; + a19 = 2; + a1 = 13; + a5 = 6; + a9 = 8; + a12 = 1; + a8 = 0; + a7 = 0; + return 25; + } else if(((((a17==2)&&((!(a8==1)&&(((input==3)&&(a16==8))&&(a20==1)))&&!(a0==1)))&&(a19==3))&&((((a9==8)&&((!(a7==1)&&(((!(a4==1)&&(a3==1))&&(a21==12))&&(a13==1)))&&!(a14==1)))&&(a5==4))&&(a1==14)))){ + a19 = 1; + a16 = 7; + a3 = 1; + a1 = 12; + a9 = 7; + a0 = 0; + a21 = 10; + return -1; + } else if((((a17==2)&&((a1==13)&&((a21==10)&&(((((a18==1)&&(((a6==1)&&!(a11==1))&&!(a11==1)))&&!(a6==1))&&(a8==1))&&(a19==2)))))&&((a16==8)&&(!(a6==1)&&((a9==7)&&(((input==1)&&((a5==5)||(a5==6)))&&(a20==1))))))){ + a22 = 0; + a29 = 0; + a5 = 6; + a8 = 1; + a19 = 1; + a9 = 10; + a1 = 12; + a16 = 9; + return -1; + } else if(((((a17==2)&&((((a19==1)&&((a14==1)&&((a14==1)&&((input==1)&&(((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6))))))))&&(a1==14))&&(a20==1)))&&(a21==12))&&((a14==1)&&(!(a6==1)&&(!(a28==1)&&((a16==7)&&((a11==1)&&!(a13==1)))))))){ + a19 = 3; + a5 = 5; + a9 = 8; + a11 = 0; + a1 = 13; + a6 = 0; + a16 = 9; + return -1; + } else if((((a7==1)||(!(a18==1)&&(((a16==8)&&((a11==1)&&!(a7==1)))&&(a1==12))))&&((a21==12)&&(!(a8==1)&&(((((a19==2)&&((a11==1)&&((input==1)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9))))))&&(a23==1))&&!(a20==1))&&(a17==2)))))){ + a26 = 1; + a19 = 3; + a9 = 9; + a23 = 0; + a1 = 14; + a5 = 4; + a16 = 10; + a21 = 11; + a8 = 1; + return 25; + } else if((((a5==6)&&((!(a26==1)&&(!(a0==1)&&((a28==1)&&((input==5)&&(a17==2)))))&&(a1==12)))&&(((!(a18==1)&&((a16==9)&&(!(a18==1)&&((a9==10)&&((!(a20==1)&&(a11==1))||!(a3==1))))))&&(a21==10))&&(a19==4)))){ + if((a25==1)){ + a19 = 2; + a21 = 12; + a5 = 5; + a14 = 1; + a1 = 14; + a7 = 1; + a9 = 9; + a23 = 0; + }else{ + a21 = 11; + a10 = 1; + a19 = 1; + a9 = 8; + a22 = 0; + a16 = 7; + a25 = 1; + } + return 26; + } else if(((((a21==12)&&((a20==1)&&((a16==11)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))&&(input==4)))))&&(a26==1))&&(((a1==14)&&(!(a11==1)&&(((a19==3)&&((a17==2)&&(!(a3==1)&&(!(a3==1)&&(a2==1)))))&&(a0==1))))&&!(a28==1)))){ + a0 = 1; + a5 = 4; + a19 = 2; + a9 = 7; + a21 = 10; + a16 = 7; + a1 = 13; + a8 = 1; + a3 = 0; + return -1; + } else if((((!(a18==1)&&(((((a5==4)||(a5==5))&&(input==3))&&(a11==1))&&(a12==1)))&&(a17==2))&&((a16==9)&&((((a19==5)&&(((!(a27==1)&&(((a2==1)&&(a1==12))&&!(a7==1)))||!(a12==1))&&(a21==10)))&&(a9==7))&&!(a20==1))))){ + a1 = 14; + a9 = 9; + a22 = 1; + a5 = 4; + a13 = 0; + a3 = 0; + a19 = 3; + a16 = 8; + a21 = 12; + return -1; + } else if((((((a19==3)&&(!(a20==1)&&((a3==1)&&(a21==12))))&&!(a0==1))&&(a17==2))&&(((a23==1)&&((a1==12)&&((a23==1)&&((a16==8)&&(((a2==1)&&((input==4)&&(((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))))&&(a28==1))))))&&!(a4==1)))){ + if((a20==1)){ + a9 = 7; + a13 = 0; + a20 = 1; + a11 = 0; + a1 = 14; + a21 = 10; + a19 = 1; + a2 = 0; + a5 = 5; + a16 = 7; + }else{ + a22 = 1; + a16 = 7; + a19 = 2; + a20 = 1; + a13 = 0; + a5 = 4; + a1 = 13; + a21 = 10; + a9 = 7; + a25 = 0; + } + return 22; + } else if((((a3==1)&&((a21==11)&&((((a1==12)&&(((a9==7)&&(input==1))&&!(a18==1)))&&(a28==1))&&!(a14==1))))&&((a12==1)&&(((a19==1)&&((!(a20==1)&&((a5==4)&&((a28==1)&&(a16==9))))&&(a17==2)))||!(a12==1))))){ + a2 = 0; + a10 = 1; + a16 = 7; + a5 = 5; + a20 = 1; + a9 = 8; + a22 = 1; + a21 = 10; + return -1; + } else if((((a16==9)&&((((a26==1)&&((a17==2)&&((a19==3)&&((a20==1)&&((a23==1)&&(a26==1))))))&&(a14==1))&&!(a6==1)))&&((!(a2==1)&&((a24==1)&&(((((a5==4)||(a5==5))&&(input==6))&&(a1==12))&&(a21==10))))&&(a9==11)))){ + a0 = 1; + a28 = 0; + a9 = 9; + a21 = 11; + a19 = 4; + a16 = 11; + a8 = 1; + a5 = 4; + a1 = 14; + return -1; + } else if(((((a21==11)&&((a20==1)&&((a3==1)&&(!(a18==1)&&((input==5)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))))))&&(a16==7))&&((a17==2)&&((a19==5)&&((a1==14)&&((a2==1)&&(((a28==1)&&((a23==1)&&(a11==1)))&&!(a4==1)))))))){ + a19 = 3; + a26 = 0; + a16 = 8; + a21 = 12; + a1 = 13; + a18 = 0; + a3 = 1; + a9 = 9; + a5 = 5; + return 25; + } else if((((a16==7)&&(((a1==12)&&(!(a8==1)&&((a5==4)&&(input==4))))&&(a9==8)))&&(((a14==1)||(((!(a20==1)&&((!(a0==1)&&(!(a14==1)&&((a19==1)&&(a11==1))))&&(a17==2)))&&(a21==12))||(a0==1)))&&!(a24==1)))){ + a7 = 0; + a13 = 1; + a9 = 7; + a21 = 10; + a20 = 1; + return -1; + } else if(((((a21==12)&&((((a17==2)&&((a11==1)&&(!(a18==1)&&((input==1)&&(((a19==2)&&((a9==7)&&((a5==4)&&(a1==12))))||(((a19==1)&&((a9==11)&&((a1==14)&&(a5==5))))||((a19==1)&&(((a5==6)&&(a1==14))&&(a9==11)))))))))&&!(a20==1))&&(a23==1)))&&(a16==9))&&((a3==1)&&((!(a23==1)||(a3==1))||!(a12==1))))){ + if((a29==1)){ + a1 = 13; + a5 = 6; + a9 = 8; + a24 = 1; + a19 = 5; + a20 = 1; + a29 = 1; + a21 = 11; + a16 = 11; + a28 = 0; + }else{ + a9 = 8; + a5 = 6; + a1 = 12; + a2 = 0; + a3 = 0; + a19 = 5; + a16 = 8; + a26 = 1; + } + return -1; + } else if((((a26==1)||(!(a14==1)&&(((((a13==1)||!(a2==1))&&(a23==1))&&(a16==9))&&(a9==11))))&&(((a23==1)&&((a21==10)&&((a20==1)&&(((a1==13)&&(((input==6)&&((a5==5)||(a5==6)))&&(a19==4)))&&(a17==2)))))&&!(a27==1)))){ + a19 = 1; + a5 = 4; + a16 = 7; + a9 = 7; + a26 = 0; + a23 = 1; + a14 = 0; + a1 = 12; + return -1; + } else if(((((!(a2==1)||((!(a12==1)||((((a28==1)&&(a9==11))&&(a17==2))&&!(a18==1)))||!(a13==1)))&&(a19==5))||!(a13==1))&&(((a21==12)&&(!(a24==1)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a20==1))&&(a1==13))))&&(a16==9)))){ + a21 = 10; + a16 = 7; + a0 = 0; + a5 = 4; + a9 = 7; + a13 = 1; + a1 = 12; + a19 = 1; + a28 = 1; + return -1; + } else if(((((a19==2)&&((((a13==1)&&((a20==1)&&(input==4)))&&!(a4==1))&&!(a8==1)))&&(a9==7))&&(((a21==11)&&((a1==13)&&((((!(a28==1)||((a14==1)||(a23==1)))||!(a11==1))&&(a16==9))&&(a17==2))))&&(a5==4)))){ + a16 = 7; + a1 = 12; + a19 = 1; + a6 = 1; + a21 = 10; + a18 = 0; + return -1; + } else if((((a2==1)&&((a21==12)&&((!(a20==1)&&((a12==1)&&(((a2==1)&&(a19==2))&&(a3==1))))&&!(a18==1))))&&((a16==8)&&((a23==1)&&((((input==1)&&((((a9==11)&&((a5==5)&&(a1==13)))||(((a5==6)&&(a1==13))&&(a9==11)))||((a9==7)&&((a1==14)&&(a5==4)))))&&(a17==2))&&!(a26==1)))))){ + a20 = 1; + a24 = 1; + a1 = 14; + a9 = 10; + a10 = 0; + a21 = 10; + a2 = 0; + a16 = 7; + a19 = 1; + a5 = 4; + return 21; + } else if((((a21==10)&&((!(a20==1)&&((((a28==1)&&(a12==1))||(a0==1))&&(a16==10)))&&(a17==2)))&&(((((a28==1)&&(!(a24==1)&&(((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))&&(input==1))&&(a3==1))))&&(a1==12))&&(a13==1))&&(a19==2)))){ + a20 = 1; + a1 = 13; + a18 = 1; + a5 = 4; + a16 = 7; + a23 = 0; + a22 = 0; + a19 = 1; + a9 = 10; + return -1; + } else if((((((((((a8==1)||(!(a28==1)||(!(a27==1)&&(a23==1))))&&(a19==2))&&(a21==12))&&(a17==2))&&(a5==4))&&(a20==1))&&(a1==14))&&((a9==11)&&(((((input==5)&&(a16==8))&&(a11==1))&&!(a7==1))&&!(a8==1))))){ + a6 = 1; + a24 = 0; + a1 = 13; + a19 = 5; + a21 = 10; + a9 = 7; + return -1; + } else if(((((((!(a27==1)&&(a6==1))&&!(a20==1))&&(a21==12))&&(a9==7))&&(a16==10))&&(((a17==2)&&((a19==3)&&(!(a4==1)&&(!(a7==1)&&((a2==1)&&((a23==1)&&(((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a7==1))))))))&&(a1==13)))){ + if((a17==4)){ + a19 = 1; + a5 = 6; + a15 = 0; + a22 = 1; + a1 = 12; + a16 = 7; + a21 = 10; + a20 = 1; + a9 = 11; + }else{ + a5 = 5; + a1 = 12; + a21 = 10; + a9 = 10; + a19 = 2; + a22 = 0; + a29 = 0; + a20 = 1; + a10 = 1; + a16 = 7; + } + return 25; + } else if((((a19==4)&&(((((a16==8)&&(((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))&&(input==5)))&&!(a7==1))&&(a1==12))&&(a3==1)))&&((a21==11)&&((!(a4==1)&&((a11==1)&&((((a12==1)&&!(a20==1))&&(a17==2))&&(a28==1))))&&!(a26==1))))){ + a13 = 1; + a26 = 0; + a5 = 4; + a6 = 1; + a9 = 10; + a16 = 10; + a19 = 3; + a20 = 1; + a21 = 10; + return -1; + } else if(((((a21==10)&&((((((a1==14)&&(((a3==1)&&!(a4==1))&&(a16==11)))&&(a12==1))&&(a19==2))&&(a17==2))&&!(a20==1)))||(a18==1))&&((a11==1)&&((((input==4)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(a6==1))&&!(a18==1))))){ + a1 = 12; + a7 = 1; + a16 = 7; + a14 = 1; + a5 = 6; + a9 = 7; + a29 = 1; + a20 = 1; + return 25; + } else if(((((a17==2)&&((a19==4)&&(((a13==1)&&((a5==5)&&((a16==9)&&((a21==12)&&((input==6)&&(a20==1))))))&&!(a7==1))))&&(a9==10))&&((a4==1)||((a11==1)&&((a1==13)&&(!(a23==1)||((a23==1)&&!(a26==1)))))))){ + a6 = 1; + a11 = 1; + a19 = 2; + a0 = 0; + a5 = 6; + a16 = 7; + a21 = 10; + return 25; + } else if(((((a17==2)&&((a21==12)&&((a0==1)||((((a1==14)&&(a13==1))&&!(a18==1))&&(a20==1)))))&&(a5==4))&&((a16==8)&&(((a28==1)&&(((((input==3)&&(a19==2))&&(a6==1))&&!(a14==1))&&(a9==7)))&&!(a7==1))))){ + a21 = 10; + a16 = 7; + a14 = 0; + a1 = 12; + a19 = 1; + a28 = 1; + a0 = 0; + return -1; + } else if((((a1==14)&&((a9==10)&&((a17==2)&&((a0==1)||((a6==1)&&(a19==3))))))&&((a13==1)&&((a20==1)&&((!(a0==1)&&((a21==10)&&((((((a5==4)||(a5==5))&&(input==1))&&!(a26==1))&&(a2==1))&&(a2==1))))&&(a16==7)))))){ + a19 = 2; + a11 = 1; + a0 = 0; + a21 = 11; + a23 = 1; + a5 = 6; + return 26; + } else if((((!(a27==1)&&((a9==8)&&((!(a12==1)||((a20==1)&&(((a6==1)&&(a17==2))&&(a19==3))))||!(a28==1))))||(a18==1))&&((a5==6)&&(((((a1==14)&&((input==6)&&(a21==11)))&&!(a27==1))&&(a16==11))&&(a11==1))))){ + a0 = 0; + a16 = 10; + a13 = 1; + a19 = 1; + a6 = 1; + a21 = 10; + a5 = 5; + a9 = 11; + return 25; + } else if(((((a11==1)&&((!(a20==1)&&((input==4)&&(a5==6)))&&!(a0==1)))&&(a16==8))&&((a3==1)&&((a1==14)&&(!(a13==1)||((a26==1)||((a9==9)&&(((((a17==2)&&(a2==1))&&(a12==1))&&(a19==2))&&(a21==11))))))))){ + a5 = 4; + a2 = 1; + a18 = 0; + a4 = 0; + a20 = 1; + a9 = 7; + a19 = 1; + a16 = 7; + a1 = 12; + a21 = 10; + return -1; + } else if((((a18==1)||((((a9==8)&&(((!(a13==1)||(a12==1))||(a4==1))&&(a21==11)))&&(a17==2))||(a8==1)))&&((a3==1)&&((a3==1)&&(((a16==10)&&(!(a20==1)&&((a5==6)&&((input==6)&&(a1==12)))))&&(a19==1)))))){ + a15 = 1; + a29 = 0; + a21 = 10; + a16 = 7; + a10 = 0; + a20 = 1; + a9 = 11; + return -1; + } else if((((a16==9)&&((!(a18==1)&&(((a17==2)&&(((!(a13==1)||(a28==1))&&(a6==1))&&!(a8==1)))&&!(a20==1)))&&(a1==12)))&&(!(a7==1)&&(((a21==11)&&(((((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7))))&&(input==3))&&(a19==2)))&&!(a18==1))))){ + a9 = 10; + a20 = 1; + a25 = 0; + a19 = 4; + a21 = 10; + a15 = 1; + a5 = 5; + a23 = 0; + a16 = 7; + return -1; + } else if(((((a21==11)&&((a17==2)&&(!(a6==1)||(!(a14==1)&&(!(a28==1)||(((a28==1)&&(a16==9))&&!(a14==1)))))))&&(a19==1))&&(!(a20==1)&&((a1==13)&&((((((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(input==4))&&(a13==1))&&!(a0==1)))))){ + if((a28==1)){ + a16 = 7; + a10 = 1; + a21 = 10; + a2 = 0; + a15 = 0; + a9 = 8; + a5 = 4; + a20 = 1; + a19 = 2; + a1 = 12; + }else{ + a22 = 0; + a5 = 4; + a16 = 10; + a2 = 0; + a19 = 3; + a1 = 14; + a6 = 0; + a9 = 7; + } + return -1; + } else if((((a14==1)||((((a20==1)&&(((a1==12)&&((a14==1)||(a2==1)))||(a8==1)))||(a4==1))||!(a23==1)))&&(((a21==11)&&(((((((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&(input==3))&&(a17==2))&&(a16==7))&&(a19==4)))&&(a13==1)))){ + a5 = 4; + a9 = 7; + a7 = 0; + a26 = 0; + a12 = 1; + a19 = 1; + a21 = 10; + return -1; + } else if(((((a19==5)&&((((a28==1)&&((a21==11)&&(input==1)))&&(a17==2))&&(a9==11)))&&(a23==1))&&((a28==1)&&(((((a5==6)&&(!(a0==1)&&(((a12==1)&&(a12==1))&&(a20==1))))&&(a23==1))&&(a16==9))&&(a1==13))))){ + a19 = 4; + a9 = 8; + a2 = 1; + a14 = 0; + a28 = 1; + a20 = 0; + a1 = 12; + a16 = 8; + a5 = 5; + return 21; + } else if(((((((a3==1)||(a8==1))&&(a28==1))&&(a17==2))&&(a21==10))&&(((((a9==8)&&((a16==8)&&((a23==1)&&(((!(a18==1)&&(((a5==4)||(a5==5))&&(input==5)))&&(a12==1))&&(a13==1)))))&&!(a20==1))&&(a19==1))&&(a1==14)))){ + a21 = 11; + a20 = 1; + a16 = 9; + a19 = 5; + a5 = 4; + a9 = 11; + a6 = 1; + a24 = 0; + a13 = 1; + return 21; + } else if(((((((a21==11)&&(!(a20==1)&&((!(a6==1)||((a23==1)&&(a16==9)))&&(a28==1))))&&!(a18==1))&&(a19==2))&&(a17==2))&&(((!(a8==1)&&(!(a26==1)&&((a9==10)&&((input==1)&&((a5==5)||(a5==6))))))&&!(a8==1))&&(a1==13)))){ + a19 = 1; + a21 = 10; + a13 = 0; + a4 = 1; + a16 = 7; + a1 = 14; + a5 = 5; + a20 = 1; + a11 = 0; + return 22; + } else if(((((((((a9==8)&&((input==1)&&((a5==4)||(a5==5))))&&!(a4==1))&&(a28==1))&&(a16==11))&&(a1==14))&&(a20==1))&&((a17==2)&&((a19==4)&&((a4==1)||(((a4==1)||(!(a3==1)||((a2==1)||(a7==1))))&&(a21==10))))))){ + a5 = 4; + a6 = 1; + a9 = 7; + a19 = 1; + a16 = 7; + a24 = 0; + a1 = 12; + a14 = 0; + return -1; + } else if(((((a14==1)&&((((a20==1)&&(((a1==14)&&((a16==7)&&(input==3)))&&(a21==11)))&&(a17==2))&&!(a2==1)))&&!(a28==1))&&((a19==5)&&((a9==7)&&((a5==5)&&(!(a28==1)&&(!(a13==1)&&((a13==1)&&!(a11==1))))))))){ + a9 = 8; + a19 = 1; + a1 = 13; + a18 = 1; + a29 = 1; + a7 = 1; + return 22; + } else if(((((((a17==2)&&((a16==10)&&(((a3==1)&&(!(a3==1)||(a28==1)))&&!(a14==1))))&&!(a20==1))&&(a9==10))&&(a21==11))&&((a19==4)&&((((!(a8==1)&&((input==6)&&(a1==14)))&&!(a7==1))&&(a5==6))&&!(a26==1))))){ + if((a28==1)){ + a5 = 5; + a6 = 0; + a21 = 10; + a22 = 0; + a20 = 1; + a16 = 7; + a19 = 2; + a9 = 8; + a1 = 12; + }else{ + a21 = 10; + a25 = 0; + a1 = 12; + a9 = 11; + a16 = 7; + a27 = 1; + a19 = 1; + a5 = 4; + a10 = 0; + a20 = 1; + } + return 23; + } else if(((!(a0==1)&&((a19==4)&&((((!(a24==1)&&((a17==2)&&(((((((a1==12)&&(a5==5))&&(a9==11))||(((a5==6)&&(a1==12))&&(a9==11)))||((a9==7)&&((a5==4)&&(a1==13))))&&(input==5))&&(a16==11))))&&(a23==1))&&!(a0==1))&&(a20==1))))&&((a21==11)&&(((a11==1)&&(a6==1))||!(a28==1))))){ + a16 = 8; + a12 = 1; + a9 = 10; + a18 = 0; + a5 = 5; + a20 = 0; + a1 = 12; + a19 = 5; + a2 = 1; + return 21; + } else if((((a20==1)&&((a21==12)&&(!(a26==1)&&((((a2==1)||!(a23==1))||(a24==1))&&(a17==2)))))&&(!(a0==1)&&((a28==1)&&(!(a24==1)&&(((input==3)&&((((a19==3)&&(((a5==5)&&(a1==14))&&(a9==11)))||((((a1==14)&&(a5==6))&&(a9==11))&&(a19==3)))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==4))))&&(a16==10))))))){ + a16 = 7; + a27 = 0; + a0 = 0; + a1 = 12; + a9 = 7; + a19 = 1; + a21 = 10; + a23 = 1; + a5 = 4; + return -1; + } else if(((!(a6==1)||((a0==1)||(((a11==1)&&((a17==2)&&((a2==1)&&(a9==11))))&&(a19==5))))&&((((a2==1)&&((((((input==1)&&((a5==4)||(a5==5)))&&(a16==7))&&(a21==12))&&(a1==13))&&(a20==1)))&&(a23==1))&&(a12==1)))){ + a5 = 5; + a0 = 0; + a4 = 0; + a1 = 12; + a19 = 4; + a16 = 8; + a20 = 0; + a21 = 11; + a9 = 8; + a18 = 0; + return 21; + } else if(((((((a13==1)&&((a19==3)&&((input==4)&&((a5==5)||(a5==6)))))&&(a11==1))&&(a1==14))&&(a16==8))&&((((((!(a0==1)&&(!(a11==1)||((a3==1)||(a4==1))))&&(a9==9))||!(a3==1))&&(a17==2))&&(a21==12))&&(a20==1)))){ + a23 = 1; + a9 = 7; + a21 = 10; + a5 = 4; + a28 = 1; + a19 = 1; + a6 = 1; + a1 = 12; + a16 = 7; + return -1; + } else if(((((a1==13)&&((a8==1)||((((((a28==1)&&(a2==1))&&(a17==2))&&(a21==11))||!(a13==1))||(a14==1))))||!(a13==1))&&((((a16==11)&&((a23==1)&&((input==1)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))))&&(a19==1))&&(a20==1)))){ + a5 = 4; + a23 = 1; + a9 = 11; + a0 = 0; + a19 = 5; + a13 = 1; + return 22; + } else if((((a21==12)&&((!(a23==1)||(!(a13==1)||(a2==1)))&&(a1==14)))&&(((a19==1)&&((a17==2)&&(((!(a18==1)&&((((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==5))&&(a28==1))&&(a6==1)))&&(a2==1))&&!(a20==1))))&&(a16==10)))){ + a4 = 1; + a5 = 4; + a1 = 12; + a20 = 1; + a14 = 1; + a9 = 8; + a19 = 2; + a23 = 0; + a16 = 7; + a21 = 10; + return -1; + } else if(((((((a20==1)&&((a13==1)&&(a21==12)))||(a0==1))&&!(a14==1))&&(a2==1))&&(((((a5==5)&&((((a16==9)&&((a19==3)&&((a1==12)&&(input==3))))&&(a9==7))&&(a11==1)))&&(a28==1))&&(a17==2))&&(a23==1)))){ + a5 = 4; + a27 = 0; + a11 = 1; + a16 = 7; + a3 = 1; + a21 = 10; + a19 = 1; + return -1; + } else if((((((a17==2)&&(((((a9==10)&&(a11==1))||(a27==1))&&(a3==1))&&(a28==1)))&&(a19==4))||!(a28==1))&&((((a5==5)&&(((a1==12)&&((a20==1)&&((a16==8)&&(input==5))))&&(a3==1)))&&(a21==10))&&!(a27==1)))){ + a19 = 1; + a3 = 1; + a11 = 1; + a5 = 4; + a8 = 0; + a9 = 8; + a16 = 10; + return 21; + } else if((((!(a20==1)&&(((a6==1)&&(((!(a27==1)&&(((a5==5)||(a5==6))&&(input==4)))&&(a12==1))&&!(a4==1)))&&(a9==7)))&&(a19==1))&&(((((((a13==1)&&(a16==9))&&(a11==1))||(a4==1))&&(a1==13))&&(a17==2))&&(a21==10)))){ + a20 = 1; + a10 = 1; + a24 = 1; + a5 = 4; + a0 = 1; + a16 = 7; + a1 = 12; + return 21; + } else if((((a6==1)&&((a16==10)&&(!(a7==1)&&(((((a14==1)||((a20==1)&&((a12==1)||!(a2==1))))&&(a6==1))&&(a17==2))&&(a9==10)))))&&(((!(a26==1)&&((((a5==5)||(a5==6))&&(input==1))&&(a1==14)))&&(a21==11))&&(a19==5)))){ + a19 = 1; + a1 = 12; + a21 = 10; + a5 = 4; + a26 = 0; + a0 = 0; + a9 = 7; + a8 = 0; + a16 = 7; + return -1; + } else if((((a16==7)&&(((a6==1)&&((a11==1)&&(!(a20==1)&&(((((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&(input==3))&&(a1==13)))))&&(a19==3)))&&((a17==2)&&(((a12==1)&&((a21==12)&&(((a24==1)||(a28==1))||(a7==1))))||!(a23==1))))){ + a27 = 0; + a20 = 1; + a1 = 12; + a5 = 4; + a21 = 10; + a0 = 0; + a19 = 1; + a26 = 0; + a9 = 7; + return -1; + } else if((((a9==8)&&((!(a2==1)||(a6==1))&&(a17==2)))&&(((((!(a4==1)&&(!(a18==1)&&((a19==3)&&(((!(a20==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5)))))&&(a1==14))&&!(a8==1)))))&&!(a4==1))&&(a16==11))&&!(a8==1))&&(a21==10)))){ + a20 = 1; + a1 = 12; + a19 = 1; + a7 = 1; + a13 = 0; + a5 = 4; + a16 = 8; + a9 = 11; + a18 = 1; + return 21; + } else if((((((a18==1)&&(!(a13==1)&&((a16==7)&&(!(a12==1)&&(!(a3==1)&&(a2==1))))))&&(a17==2))&&(a1==13))&&((a5==4)&&((a20==1)&&((a19==5)&&((a9==7)&&((((a21==12)&&(input==1))&&!(a12==1))&&(a18==1)))))))){ + a21 = 10; + a3 = 0; + a9 = 10; + a29 = 1; + a1 = 12; + a19 = 1; + a22 = 0; + return -1; + } else if(((((a19==3)&&((a21==12)&&((a16==10)&&(((a28==1)&&((a23==1)&&(a2==1)))&&!(a27==1)))))&&(a20==1))&&(!(a18==1)&&((a1==14)&&(((a17==2)&&(!(a7==1)&&(((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10)))&&(input==5))))&&!(a24==1)))))){ + a1 = 13; + a5 = 5; + a18 = 0; + a26 = 0; + a19 = 2; + a16 = 7; + a21 = 10; + a9 = 9; + return 25; + } else if((((a9==11)&&(((a19==2)&&((!(a6==1)||(((a11==1)||!(a23==1))&&(a2==1)))&&(a20==1)))&&(a5==6)))&&(((a1==12)&&(((!(a24==1)&&(!(a0==1)&&((a16==8)&&(input==1))))&&(a23==1))&&(a17==2)))&&(a21==10)))){ + a5 = 4; + a26 = 0; + a9 = 7; + a16 = 7; + a3 = 1; + a19 = 1; + return -1; + } else if((((!(a20==1)&&(((a6==1)&&(((a16==11)&&((a5==4)&&(!(a7==1)&&((a6==1)&&((a1==14)&&(input==6))))))&&(a9==11)))&&!(a8==1)))&&!(a26==1))&&(((a19==2)&&((a17==2)&&(!(a0==1)&&(a2==1))))&&(a21==10)))){ + if((a4==1)){ + a20 = 1; + a9 = 9; + a16 = 9; + a5 = 5; + a28 = 0; + a12 = 0; + a6 = 0; + }else{ + a0 = 1; + a1 = 13; + a9 = 10; + a19 = 1; + a16 = 10; + a5 = 5; + a7 = 1; + a15 = 1; + } + return 21; + } else if(((!(a18==1)&&(((((a9==11)&&((a5==5)&&(a1==13)))||(((a1==13)&&(a5==6))&&(a9==11)))||((a9==7)&&((a1==14)&&(a5==4))))&&(input==5)))&&((((!(a28==1)||((a24==1)||((a17==2)&&(((a19==3)&&(((a11==1)&&(a28==1))&&(a21==11)))&&(a16==8)))))&&(a20==1))&&!(a26==1))||(a24==1)))){ + a1 = 13; + a28 = 1; + a16 = 10; + a9 = 9; + a0 = 0; + a19 = 1; + a11 = 1; + a5 = 4; + return 21; + } else if((((a27==1)||(((a21==12)&&((a16==9)&&(!(a8==1)&&(a23==1))))&&!(a27==1)))&&((a19==5)&&((((((!(a8==1)&&((a6==1)&&((input==6)&&((a5==5)||(a5==6)))))&&(a9==11))&&(a17==2))&&(a20==1))&&(a1==14))&&(a2==1))))){ + a9 = 7; + a16 = 7; + a19 = 1; + a0 = 0; + a1 = 12; + a21 = 10; + a5 = 4; + a26 = 0; + a13 = 1; + return -1; + } else if((((a19==2)&&((a16==11)&&((!(a4==1)&&(a12==1))||!(a11==1))))&&(((a3==1)&&((((((a17==2)&&(!(a14==1)&&((input==4)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))))&&!(a24==1))&&!(a24==1))&&(a1==13))&&(a21==11)))&&(a20==1)))){ + a5 = 4; + a1 = 12; + a21 = 10; + a19 = 1; + a12 = 1; + a16 = 7; + a28 = 1; + a4 = 0; + a9 = 7; + return -1; + } else if((((a24==1)||((a11==1)&&(((a6==1)&&(!(a11==1)||((a17==2)&&((a9==11)&&((a21==11)&&(a3==1))))))&&(a16==8))))&&((a3==1)&&((a1==13)&&((((a20==1)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))&&(a19==1))&&!(a18==1)))))){ + a0 = 0; + a9 = 7; + a16 = 7; + a26 = 0; + a5 = 4; + a1 = 12; + a21 = 10; + a3 = 1; + return -1; + } else if(((((a16==8)&&(!(a3==1)||(!(a20==1)&&((a19==2)&&(a28==1)))))&&(a2==1))&&((a17==2)&&((a21==12)&&(((a1==13)&&((((a28==1)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==4)))&&(a3==1))&&!(a4==1)))&&!(a14==1)))))){ + if((a6==1)){ + a1 = 12; + a16 = 7; + a5 = 4; + a3 = 0; + a21 = 10; + a22 = 1; + a9 = 8; + a15 = 0; + a20 = 1; + }else{ + a11 = 0; + a5 = 4; + a20 = 1; + a1 = 12; + a7 = 1; + a16 = 7; + a21 = 10; + a25 = 1; + a9 = 10; + } + return -1; + } else if((((a16==9)&&((a28==1)&&(((a21==12)&&((a12==1)&&((input==6)&&(a19==1))))&&(a6==1))))&&((a12==1)&&(!(a4==1)&&((!(a20==1)&&((a1==14)&&((((a5==5)&&(a6==1))&&(a17==2))&&(a9==9))))&&(a6==1)))))){ + a13 = 0; + a20 = 1; + a19 = 3; + a16 = 7; + a11 = 0; + a14 = 1; + a9 = 8; + a21 = 11; + return 21; + } else if((((a2==1)&&((a3==1)&&(((a28==1)&&(((input==1)&&(((((a5==5)&&(a1==13))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==13))))||((a9==7)&&((a1==14)&&(a5==4)))))&&!(a14==1)))&&!(a26==1))))&&((a20==1)&&((a21==10)&&((a16==11)&&((((a19==3)&&(a23==1))&&!(a0==1))&&(a17==2))))))){ + a14 = 0; + a19 = 1; + a5 = 4; + a9 = 7; + a24 = 0; + a12 = 1; + a16 = 7; + a1 = 12; + return -1; + } else if((((((a9==10)&&((a28==1)&&((!(a18==1)&&((!(a27==1)&&(((a5==5)||(a5==6))&&(input==3)))&&!(a14==1)))&&(a6==1))))&&(a1==14))&&(a17==2))&&(((a20==1)&&((((a11==1)||!(a13==1))&&(a21==12))&&(a16==8)))&&(a19==3)))){ + a16 = 7; + a12 = 1; + a21 = 10; + a9 = 9; + a23 = 1; + a4 = 0; + a19 = 2; + a5 = 5; + a1 = 13; + return -1; + } else if((((((a2==1)&&((a5==5)&&((a2==1)&&((a19==5)&&(a23==1)))))||!(a3==1))&&(a21==11))&&(((a9==9)&&(((a20==1)&&((a12==1)&&((a17==2)&&(((input==4)&&(a16==11))&&(a1==13)))))&&(a28==1)))&&(a12==1)))){ + a21 = 10; + a16 = 7; + a23 = 1; + a27 = 0; + a1 = 12; + a5 = 4; + a3 = 1; + a9 = 7; + a19 = 1; + return -1; + } else if((((((a9==7)&&((!(a20==1)&&((a28==1)&&((!(a0==1)&&(a11==1))||!(a12==1))))&&(a21==11)))&&(a1==12))&&(a5==5))&&((!(a7==1)&&(((a11==1)&&(((a19==2)&&(input==1))&&(a2==1)))&&(a17==2)))&&(a16==7)))){ + a20 = 1; + a19 = 1; + a21 = 10; + a23 = 1; + a6 = 1; + a5 = 4; + a12 = 1; + return -1; + } else if((((a16==9)&&(((((((a1==14)&&((input==6)&&((a5==4)||(a5==5))))&&(a20==1))&&(a17==2))&&!(a27==1))&&!(a14==1))&&!(a26==1)))&&((!(a28==1)||((a21==11)&&(!(a26==1)&&(((a2==1)||(a26==1))&&(a19==3)))))&&(a9==11)))){ + a5 = 4; + a2 = 1; + a8 = 0; + a16 = 7; + a21 = 10; + a9 = 7; + a27 = 0; + a19 = 1; + a1 = 12; + return -1; + } else if(((((a18==1)||(((a12==1)&&(!(a20==1)&&((a17==2)&&((a6==1)&&(a21==11)))))&&(a19==2)))&&!(a26==1))&&(((a1==12)&&((a12==1)&&((((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==5))&&!(a26==1))&&(a13==1))))&&(a16==7)))){ + a4 = 0; + a9 = 7; + a6 = 1; + a19 = 1; + a20 = 1; + a21 = 10; + a5 = 4; + a23 = 1; + return -1; + } else if(((!(a8==1)&&((((a16==7)&&(((a20==1)&&((a2==1)&&(a17==2)))&&(a1==14)))&&!(a8==1))&&!(a7==1)))&&(((a28==1)&&(((a19==4)&&((a21==12)&&((input==3)&&((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4))))))&&(a3==1)))&&!(a14==1)))){ + a19 = 1; + a5 = 4; + a13 = 1; + a21 = 10; + a9 = 7; + a1 = 12; + a11 = 1; + return -1; + } else if((((a1==13)&&((a17==2)&&((a7==1)||((((a11==1)&&(a11==1))||!(a2==1))||!(a6==1)))))&&(((a16==8)&&((((a20==1)&&(((a2==1)&&((input==1)&&(a5==4)))&&(a9==11)))&&(a28==1))&&(a19==4)))&&(a21==11)))){ + a19 = 2; + a3 = 1; + a6 = 1; + a16 = 10; + a9 = 10; + a26 = 0; + a5 = 6; + return 22; + } else if((((a4==1)||(((a17==2)&&((((a3==1)&&(a23==1))&&!(a24==1))&&(a16==10)))&&(a21==12)))&&(!(a24==1)&&((a19==1)&&(((a23==1)&&(!(a20==1)&&(((((a9==11)&&((a5==5)&&(a1==13)))||(((a5==6)&&(a1==13))&&(a9==11)))||((a9==7)&&((a1==14)&&(a5==4))))&&(input==4))))&&(a11==1)))))){ + a1 = 13; + a9 = 9; + a20 = 1; + a18 = 1; + a10 = 1; + a21 = 10; + a16 = 7; + a2 = 0; + a5 = 5; + return -1; + } else if(((((a21==11)&&((!(a26==1)&&(((a23==1)&&((a2==1)&&(a20==1)))&&(a16==7)))||!(a3==1)))&&(a19==4))&&((a1==12)&&((a17==2)&&((a13==1)&&((((a11==1)&&((a9==9)&&(input==3)))&&!(a26==1))&&(a5==4))))))){ + a11 = 1; + a21 = 10; + a18 = 0; + a19 = 1; + a6 = 1; + a9 = 7; + return -1; + } else if((((a1==12)&&((!(a24==1)&&((a17==2)&&(((a16==8)&&(!(a8==1)&&((a21==11)&&((input==1)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5)))))))&&!(a20==1))))&&(a28==1)))&&(!(a11==1)||(!(a11==1)||((a19==4)&&(!(a2==1)||(a11==1))))))){ + a16 = 10; + a21 = 10; + a7 = 0; + a9 = 8; + a20 = 1; + a1 = 13; + a5 = 4; + a11 = 1; + a28 = 1; + return -1; + } else if(((!(a7==1)&&(((((a23==1)&&(a20==1))&&(a9==7))&&!(a7==1))&&!(a27==1)))&&(((a17==2)&&((a12==1)&&((a21==11)&&((a16==10)&&(((((input==1)&&((a5==5)||(a5==6)))&&(a19==3))&&!(a0==1))&&(a1==13))))))&&(a12==1)))){ + a5 = 4; + a21 = 10; + a28 = 1; + a19 = 1; + a1 = 12; + a16 = 7; + a6 = 1; + a3 = 1; + return -1; + } else if((((a16==8)&&((((!(a20==1)&&(input==4))&&!(a4==1))&&(a9==9))&&(a5==5)))&&((a19==2)&&(((a17==2)&&((((a1==12)&&(!(a27==1)&&(((a23==1)||(a7==1))||(a14==1))))||(a24==1))&&!(a18==1)))&&(a21==11))))){ + a27 = 0; + a16 = 7; + a21 = 10; + a5 = 4; + a2 = 1; + a20 = 1; + a8 = 0; + a9 = 7; + a19 = 1; + return -1; + } else if((((a9==10)&&((a11==1)&&(!(a20==1)&&((a2==1)||(a18==1)))))&&((a19==1)&&(((a5==5)&&(((a16==7)&&((!(a4==1)&&((((a17==2)&&(input==1))&&!(a26==1))&&(a13==1)))&&(a1==13)))&&!(a24==1)))&&(a21==11))))){ + a1 = 12; + a20 = 1; + a5 = 4; + a9 = 7; + a21 = 10; + a26 = 0; + a0 = 0; + a12 = 1; + return -1; + } else if((((a16==9)&&(((a5==4)&&((((a23==1)&&(a20==1))&&(a9==11))&&(a27==1)))&&!(a3==1)))&&(((((!(a3==1)&&((((input==1)&&(a19==4))&&(a24==1))&&(a17==2)))&&!(a12==1))&&(a27==1))&&(a21==10))&&(a1==13)))){ + a1 = 14; + a19 = 1; + a22 = 0; + a13 = 0; + a9 = 7; + a16 = 7; + a5 = 5; + a3 = 0; + return 22; + } else if(((((((a1==12)&&((a6==1)&&((((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a2==1))&&(a17==2))))&&(a21==11))&&(a20==1))&&(a13==1))&&((a9==9)&&((a16==8)&&((a8==1)||((!(a13==1)||((a2==1)&&(a13==1)))&&(a19==1))))))){ + a5 = 4; + a11 = 1; + a16 = 7; + a21 = 10; + a8 = 0; + a9 = 7; + a14 = 0; + return -1; + } else if((((a17==2)&&((((a19==1)&&(!(a8==1)&&(((a21==12)&&(input==6))&&(a5==4))))&&(a1==12))&&(a3==1)))&&(((((((a23==1)&&(!(a24==1)&&(a6==1)))||(a24==1))||(a0==1))&&(a16==8))&&(a20==1))&&(a9==7)))){ + a3 = 1; + a21 = 10; + a16 = 7; + a6 = 1; + a14 = 0; + return -1; + } else if(((!(a2==1)&&((a4==1)&&(!(a11==1)&&(((a20==1)&&(((!(a2==1)&&(a13==1))&&(a19==5))&&(a17==2)))&&(a16==10)))))&&(!(a11==1)&&((((a21==10)&&((input==4)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5)))))&&(a14==1))&&(a1==14))))){ + a27 = 1; + a5 = 6; + a20 = 0; + a28 = 0; + a1 = 13; + a26 = 1; + a19 = 1; + a9 = 8; + a16 = 8; + a21 = 11; + return -1; + } else if((((a28==1)&&((a21==12)&&(((((a20==1)&&((((a19==1)&&((((a9==7)&&((a1==14)&&(a5==4)))||((((a1==13)&&(a5==5))&&(a9==11))||(((a1==13)&&(a5==6))&&(a9==11))))&&(input==5)))&&!(a26==1))&&(a11==1)))&&(a28==1))&&(a28==1))&&(a17==2))))&&(((a16==11)&&(a11==1))||!(a11==1)))){ + a14 = 0; + a9 = 7; + a5 = 4; + a21 = 10; + a16 = 7; + a18 = 0; + a1 = 12; + return -1; + } else if((((a5==6)&&((a17==2)&&((a16==9)&&((((a12==1)&&((a6==1)&&!(a4==1)))||(a0==1))&&(a3==1)))))&&(((a21==10)&&((((a19==5)&&(((input==6)&&(a1==14))&&(a9==8)))&&(a23==1))&&!(a20==1)))&&!(a4==1)))){ + a9 = 11; + a1 = 13; + a5 = 5; + a16 = 8; + a24 = 1; + a19 = 1; + a29 = 0; + a25 = 0; + return -1; + } else if((((!(a4==1)&&((((a21==11)&&((((a17==2)&&((a1==13)&&((input==3)&&((a5==4)||(a5==5)))))&&(a12==1))&&!(a0==1)))&&!(a4==1))&&(a23==1)))&&(a16==9))&&((((a24==1)||((a19==3)&&(a13==1)))&&(a20==1))&&(a9==11)))){ + a18 = 0; + a5 = 4; + a16 = 7; + a14 = 0; + a9 = 7; + a1 = 12; + a23 = 1; + a19 = 1; + a21 = 10; + return -1; + } else if((((((!(a24==1)&&((a19==1)&&((a6==1)&&((input==3)&&(((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))))))&&(a1==12))&&(a21==11))&&(a17==2))&&(((a16==10)&&((a20==1)&&(((!(a23==1)||(a28==1))&&(a12==1))&&(a28==1))))&&!(a26==1)))){ + a3 = 1; + a9 = 10; + a5 = 6; + a12 = 1; + a7 = 0; + a19 = 4; + a21 = 10; + a16 = 7; + return -1; + } else if((((a21==11)&&(((a16==9)&&((a14==1)&&((((a17==2)&&((input==5)&&((a5==5)||(a5==6))))&&(a1==12))&&(a19==5))))&&(a7==1)))&&(((((a27==1)&&(((a23==1)&&(a20==1))&&(a26==1)))&&(a9==11))&&!(a13==1))&&!(a12==1)))){ + a5 = 4; + a16 = 11; + a22 = 1; + a21 = 10; + a1 = 13; + a11 = 0; + a9 = 7; + a29 = 1; + a19 = 4; + return -1; + } else if(((((((a16==10)&&((a5==6)&&(!(a26==1)&&(((a8==1)||(a23==1))||(a26==1)))))&&!(a20==1))&&(a17==2))&&(a19==2))&&((((!(a18==1)&&((a3==1)&&((input==5)&&(a9==10))))&&(a1==14))&&(a2==1))&&(a21==10)))){ + a9 = 9; + a4 = 1; + a19 = 3; + a5 = 4; + a18 = 1; + a1 = 12; + a20 = 1; + a24 = 1; + a16 = 11; + return -1; + } else if((((a9==8)&&((!(a12==1)||((a23==1)&&((a21==12)&&(a12==1))))||!(a13==1)))&&((((a17==2)&&((((a16==10)&&(((a19==3)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5)))&&(a12==1)))&&!(a27==1))&&!(a14==1)))&&(a1==12))&&(a20==1)))){ + a11 = 1; + a19 = 2; + a7 = 0; + a21 = 10; + a16 = 7; + a9 = 9; + a5 = 4; + a1 = 13; + a12 = 1; + return 25; + } else if(((((a13==1)&&(((!(a4==1)&&((input==6)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))))&&!(a8==1))&&(a20==1)))&&(a12==1))&&(((a1==12)&&((a21==12)&&(((a19==1)&&((a16==11)&&(!(a4==1)&&(a13==1))))&&!(a26==1))))&&(a17==2)))){ + a23 = 1; + a21 = 10; + a6 = 1; + a27 = 0; + a9 = 7; + a5 = 4; + a16 = 7; + return -1; + } else if(((((a2==1)&&((((((a9==11)&&((a1==12)&&(a5==6)))||(((a1==13)&&(a5==4))&&(a9==7)))||(((a5==5)&&(a1==13))&&(a9==7)))&&(input==6))&&!(a20==1)))&&(a12==1))&&((a23==1)&&((a14==1)||(((a19==1)&&((((a21==10)&&((a17==2)&&(a3==1)))&&(a16==7))||(a0==1)))&&(a6==1)))))){ + a1 = 12; + a9 = 7; + a5 = 4; + a24 = 0; + a20 = 1; + a12 = 1; + a4 = 0; + return -1; + } else if((((a16==7)&&((a9==7)&&((((a19==3)&&((!(a24==1)&&((input==4)&&((a5==4)||(a5==5))))&&!(a18==1)))&&(a1==14))&&(a21==12))))&&(!(a27==1)&&((a20==1)&&((((a12==1)&&(!(a7==1)&&(a6==1)))||!(a12==1))&&(a17==2)))))){ + a1 = 12; + a3 = 1; + a23 = 1; + a8 = 0; + a19 = 1; + a21 = 10; + a5 = 4; + return -1; + } else if(((((((((a6==1)&&((a23==1)&&((input==4)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))))&&!(a27==1))&&(a12==1))&&(a1==12))&&(a16==10))&&(a17==2))&&((a21==12)&&((!(a12==1)||((a20==1)&&(!(a4==1)&&(a28==1))))&&(a19==5))))){ + a3 = 1; + a19 = 1; + a5 = 4; + a13 = 1; + a21 = 10; + a12 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if(((((a21==10)&&(((!(a18==1)&&((input==5)&&(a1==14)))&&(a16==8))&&(a19==4)))&&(a5==6))&&((((((a17==2)&&((((a26==1)||(a13==1))||!(a11==1))&&(a20==1)))||(a14==1))&&!(a7==1))||!(a23==1))&&(a9==9)))){ + a1 = 12; + a16 = 7; + a3 = 1; + a24 = 0; + a5 = 4; + a19 = 1; + a9 = 7; + a0 = 0; + return -1; + } else if((((a1==13)&&(!(a20==1)&&((((!(a0==1)&&(!(a7==1)&&((a13==1)&&(a16==7))))||(a8==1))||(a26==1))&&(a21==11))))&&((a19==5)&&((a17==2)&&(!(a0==1)&&((a9==7)&&(!(a24==1)&&(((a5==4)||(a5==5))&&(input==4))))))))){ + a3 = 1; + a8 = 0; + a21 = 10; + a19 = 1; + a20 = 1; + a5 = 4; + a1 = 12; + return -1; + } else if((((a6==1)&&(((a17==2)&&((a1==13)&&(((a23==1)&&(((input==1)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5))))&&(a21==12)))&&!(a26==1))))&&(a19==2)))&&(!(a24==1)&&(((a16==8)&&(((a12==1)&&(a28==1))&&!(a24==1)))&&!(a20==1))))){ + a4 = 1; + a9 = 9; + a20 = 1; + a19 = 1; + a1 = 12; + a22 = 0; + a5 = 6; + a18 = 1; + a16 = 7; + a21 = 10; + return 22; + } else if((((a9==8)&&((a17==2)&&(!(a27==1)&&(!(a26==1)&&((((a19==5)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6))))&&(a20==1))&&(a11==1))))))&&((a16==11)&&(((a7==1)||(((a1==12)&&(!(a26==1)&&(a13==1)))&&!(a0==1)))&&(a21==10))))){ + a5 = 4; + a8 = 0; + a9 = 7; + a19 = 1; + a24 = 0; + a28 = 1; + a16 = 7; + return -1; + } else if((((a19==2)&&((a9==11)&&(((((a21==12)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4)))&&(a16==9))&&(a1==13))&&!(a27==1))))&&(((a6==1)&&((a2==1)&&(((((a23==1)&&!(a7==1))&&!(a7==1))&&!(a4==1))&&(a17==2))))&&!(a20==1)))){ + a5 = 5; + a27 = 1; + a1 = 12; + a7 = 1; + a9 = 9; + a16 = 11; + a19 = 1; + a15 = 1; + a20 = 1; + return -1; + } else if((((a16==8)&&(((!(a3==1)||(((a3==1)&&(a28==1))&&(a28==1)))||!(a2==1))&&(a21==12)))&&((((a17==2)&&((a9==10)&&((!(a18==1)&&((a19==1)&&((input==1)&&((a5==4)||(a5==5)))))&&(a23==1))))&&(a20==1))&&(a1==14)))){ + a9 = 9; + a16 = 7; + a19 = 2; + a5 = 5; + a23 = 1; + a1 = 13; + a27 = 0; + a21 = 10; + a6 = 1; + return 25; + } else if(((!(a13==1)||((!(a12==1)||(((((a19==3)&&(a6==1))&&(a21==12))||!(a28==1))&&(a2==1)))||(a0==1)))&&((!(a20==1)&&(((((((a1==13)&&(a5==6))&&(a9==11))||(((a1==14)&&(a5==4))&&(a9==7)))&&(input==4))&&(a16==10))&&(a17==2)))&&(a23==1)))){ + if((a0==1)){ + a20 = 1; + a1 = 12; + a18 = 1; + a9 = 7; + a16 = 7; + a5 = 5; + a19 = 5; + a3 = 0; + a22 = 0; + }else{ + a9 = 11; + a5 = 6; + a1 = 14; + a16 = 7; + a14 = 1; + a3 = 0; + } + return -1; + } else if(((!(a8==1)&&((((((input==5)&&(a1==13))&&(a9==10))&&(a17==2))&&(a16==9))&&!(a7==1)))&&((a4==1)||(((((a21==10)&&((a20==1)&&((!(a6==1)||(a11==1))&&(a5==5))))&&(a19==2))||!(a13==1))&&(a11==1))))){ + a1 = 12; + a23 = 1; + a9 = 7; + a26 = 0; + a16 = 7; + a28 = 1; + a5 = 4; + a19 = 1; + return -1; + } else if((((a17==2)&&((a20==1)&&(((a21==11)&&((!(a2==1)||((a23==1)&&(a16==7)))&&(a1==12)))&&(a23==1))))&&((a23==1)&&(!(a0==1)&&((a19==2)&&((a23==1)&&((a2==1)&&((input==1)&&(((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))))))))))){ + a23 = 1; + a5 = 4; + a21 = 10; + a28 = 1; + a19 = 1; + a4 = 0; + a9 = 7; + return -1; + } else if((((!(a23==1)||((a11==1)&&((((a19==2)&&(((a6==1)||!(a6==1))&&(a21==11)))||!(a13==1))&&(a20==1))))&&(a1==12))&&((a28==1)&&((!(a8==1)&&((a16==8)&&((((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6))))&&(input==1))))&&(a17==2))))){ + a1 = 14; + a7 = 0; + a11 = 1; + a21 = 10; + a5 = 5; + a16 = 10; + a9 = 9; + a19 = 3; + return 25; + } else if((((!(a24==1)&&((a12==1)&&((a6==1)&&((a16==8)&&((a17==2)&&(((a3==1)&&((input==4)&&((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10)))))&&(a23==1)))))))&&(a28==1))&&((a20==1)&&((a19==2)&&(((a3==1)&&(a21==10))&&(a1==14)))))){ + a16 = 7; + a1 = 12; + a24 = 0; + a5 = 4; + a18 = 0; + a8 = 0; + a19 = 1; + a9 = 7; + return -1; + } else if(((((a19==4)&&((!(a27==1)&&(a12==1))&&(a1==13)))&&(a16==8))&&(((a20==1)&&(!(a18==1)&&((a5==4)&&(((a3==1)&&(((a2==1)&&(((input==3)&&(a21==12))&&!(a14==1)))&&!(a4==1)))&&(a17==2)))))&&(a9==7)))){ + a7 = 0; + a19 = 1; + a21 = 10; + a24 = 0; + a1 = 12; + a16 = 7; + return -1; + } else if((((a6==1)&&((a17==2)&&((a13==1)&&((a1==12)&&(((a13==1)&&((input==6)&&(a5==5)))&&(a20==1))))))&&((((a9==7)&&((a21==10)&&((a19==5)&&(((a12==1)&&(a13==1))&&(a16==7)))))&&!(a26==1))||!(a3==1)))){ + a8 = 0; + a18 = 0; + a9 = 9; + a20 = 0; + a0 = 0; + a1 = 13; + a16 = 8; + a19 = 1; + return 21; + } else if(((((a17==2)&&((a21==10)&&((a23==1)&&((((((a9==11)&&((a1==14)&&(a5==6)))&&(a19==2))||((a19==3)&&(((a1==12)&&(a5==4))&&(a9==7))))||((((a1==12)&&(a5==5))&&(a9==7))&&(a19==3)))&&(input==5)))))&&!(a7==1))&&((((((a27==1)||((a16==11)&&(a3==1)))&&(a20==1))&&!(a0==1))&&!(a14==1))&&(a6==1)))){ + a21 = 11; + a5 = 4; + a13 = 1; + a0 = 0; + a27 = 0; + a9 = 8; + a19 = 3; + a1 = 12; + return 21; + } else if((((a5==4)&&((a3==1)&&(!(a20==1)&&((a26==1)||(!(a23==1)||((a12==1)&&(a23==1)))))))&&((((a17==2)&&((a21==12)&&((a28==1)&&((a11==1)&&(((input==5)&&(a16==7))&&(a1==12))))))&&(a19==3))&&(a9==9)))){ + a18 = 0; + a1 = 13; + a20 = 1; + a5 = 5; + a19 = 4; + a21 = 11; + a6 = 1; + a16 = 10; + return 22; + } else if(((((a21==12)&&((a11==1)&&(((a16==7)&&((a19==4)&&(input==3)))&&(a1==14))))&&(a9==11))&&((a3==1)&&((a17==2)&&(((a18==1)||((((a5==5)&&((a13==1)||!(a13==1)))&&(a20==1))||(a18==1)))||!(a2==1)))))){ + a9 = 7; + a23 = 1; + a16 = 9; + a19 = 3; + a21 = 11; + a4 = 0; + a0 = 0; + a5 = 4; + return 22; + } else if(((!(a24==1)&&(!(a7==1)&&((((!(a0==1)&&((((a1==12)&&(a23==1))&&(a23==1))&&(a20==1)))&&(a17==2))&&!(a24==1))&&(a11==1))))&&((((a19==5)&&((input==1)&&(((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))))&&(a21==11))&&(a16==10)))){ + a8 = 0; + a16 = 7; + a5 = 5; + a1 = 14; + a27 = 0; + a21 = 10; + a9 = 9; + a14 = 0; + a19 = 2; + return 21; + } else if((((a27==1)||(((a11==1)&&(!(a20==1)&&((a19==2)&&(((a9==9)&&(a6==1))||!(a11==1)))))&&(a1==13)))&&(((a16==9)&&((a2==1)&&((a21==10)&&(((a17==2)&&(((a5==5)||(a5==6))&&(input==1)))&&(a11==1)))))&&!(a8==1)))){ + if((a1==12)){ + a4 = 1; + a16 = 7; + a1 = 14; + a19 = 3; + a5 = 4; + a0 = 1; + a21 = 11; + a14 = 1; + }else{ + a20 = 1; + a0 = 1; + a22 = 1; + a5 = 5; + a1 = 12; + a16 = 7; + a18 = 1; + } + return -1; + } else if((((!(a28==1)||((a13==1)&&!(a20==1)))||(a14==1))&&(((a19==5)&&((((!(a27==1)&&(((a21==12)&&(((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==1))&&!(a24==1)))&&!(a8==1)))&&(a6==1))&&(a16==7))&&(a17==2)))&&(a1==12)))){ + a20 = 1; + a0 = 0; + a9 = 10; + a3 = 1; + a2 = 1; + a1 = 13; + a21 = 10; + a5 = 6; + a19 = 2; + return 25; + } else if(((!(a4==1)&&(((a17==2)&&((((a21==12)&&(!(a7==1)&&((input==6)&&(a16==8))))&&!(a7==1))&&(a9==11)))&&(a12==1)))&&(((a19==2)&&((a4==1)||((((a3==1)&&(a5==4))&&(a1==14))&&(a20==1))))||(a8==1)))){ + a28 = 1; + a5 = 5; + a0 = 0; + a16 = 10; + a19 = 1; + a26 = 0; + return 22; + } else if(((((((a17==2)&&((a9==8)&&((a23==1)&&((a23==1)||(a7==1)))))||!(a6==1))&&(a21==10))&&!(a20==1))&&((a19==3)&&((a16==7)&&(!(a24==1)&&(!(a18==1)&&((a1==12)&&((a12==1)&&(((a5==5)||(a5==6))&&(input==6)))))))))){ + a4 = 0; + a13 = 1; + a5 = 4; + a20 = 1; + a6 = 1; + a9 = 7; + a19 = 1; + return -1; + } else if(((!(a26==1)&&((((a16==11)&&(((a17==2)&&(((a19==1)&&((a21==10)&&((input==6)&&(a5==6))))&&(a1==12)))&&(a9==8)))&&(a13==1))&&(a13==1)))&&((!(a26==1)&&(((a2==1)&&(a3==1))&&(a20==1)))&&(a13==1)))){ + a5 = 4; + a21 = 12; + a9 = 7; + a19 = 3; + a4 = 0; + a13 = 1; + a23 = 1; + a16 = 9; + return 21; + } else if((((a9==10)&&((a21==10)&&(!(a8==1)&&(((a14==1)||((a16==9)&&(((a18==1)||(a3==1))&&(a5==5))))||!(a11==1)))))&&((a17==2)&&(!(a20==1)&&((a19==4)&&(!(a24==1)&&((a2==1)&&((input==5)&&(a1==14))))))))){ + a16 = 7; + a1 = 12; + a5 = 6; + a27 = 1; + a20 = 1; + a19 = 2; + a28 = 0; + a9 = 7; + a10 = 1; + return 22; + } else if(((((a9==11)&&(((!(a28==1)||(!(a7==1)&&(a6==1)))&&(a13==1))&&(a20==1)))&&(a19==3))&&(((a16==10)&&((((a1==13)&&(((a17==2)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4)))&&!(a18==1)))&&(a3==1))&&!(a4==1)))&&(a21==11)))){ + a5 = 4; + a19 = 1; + a24 = 0; + a16 = 7; + a1 = 12; + a4 = 0; + a2 = 1; + a9 = 7; + a21 = 10; + return -1; + } else if((((!(a20==1)&&((!(a27==1)&&(((a3==1)&&(((a2==1)&&((input==5)&&((a5==5)||(a5==6))))&&(a9==11)))&&!(a14==1)))&&(a21==11)))&&(a17==2))&&(((a19==5)&&(((!(a2==1)||(a11==1))&&(a1==14))||(a7==1)))&&(a16==8)))){ + a27 = 1; + a16 = 7; + a24 = 1; + a21 = 10; + a20 = 1; + a5 = 5; + a19 = 1; + return 23; + } else if((((a19==2)&&((a5==5)&&(((a2==1)&&((a1==13)&&((!(a0==1)&&((a20==1)&&((((input==5)&&(a16==8))&&(a9==7))&&!(a27==1))))&&(a2==1))))&&!(a24==1))))&&((a17==2)&&(((a26==1)||(a13==1))&&(a21==11))))){ + a16 = 10; + a21 = 10; + a19 = 4; + a4 = 0; + a12 = 1; + a1 = 12; + a28 = 1; + a9 = 8; + return 23; + } else if(((((a21==12)&&((((a5==6)&&((a1==12)&&((a23==1)&&!(a8==1))))&&(a9==8))&&(a16==7)))&&!(a18==1))&&((a19==2)&&((!(a14==1)&&(((a23==1)&&(((a17==2)&&(input==5))&&!(a7==1)))&&!(a18==1)))&&!(a20==1))))){ + a11 = 1; + a4 = 0; + a19 = 3; + a16 = 9; + a20 = 1; + a3 = 1; + a5 = 4; + a9 = 10; + return 21; + } else if((((a3==1)&&(((a19==4)&&((((a16==8)&&(a6==1))&&(a17==2))||(a24==1)))||(a7==1)))&&((!(a14==1)&&(((a1==14)&&((((a9==7)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6))))&&(a21==10))&&(a3==1)))&&!(a20==1)))&&(a12==1)))){ + a6 = 1; + a1 = 12; + a20 = 1; + a24 = 0; + a5 = 4; + a19 = 1; + a16 = 7; + return -1; + } else if((((a1==14)&&((a13==1)&&(((a23==1)&&(!(a7==1)&&((input==1)&&(a17==2))))&&(a9==11))))&&((a23==1)&&((a5==5)&&((a21==12)&&(((a19==2)&&((a0==1)||((a20==1)&&((a6==1)&&(a3==1)))))&&(a16==8))))))){ + a0 = 0; + a16 = 10; + a7 = 0; + a9 = 7; + a6 = 1; + a1 = 12; + a5 = 6; + return 26; + } else if(((((!(a3==1)&&(((((a16==7)&&(input==5))&&(a17==2))&&(a7==1))&&(a20==1)))&&!(a12==1))&&!(a12==1))&&((a21==10)&&(((a9==7)&&(!(a3==1)&&((a5==4)&&(((a1==13)&&(a11==1))&&!(a13==1)))))&&(a19==5))))){ + a27 = 1; + a19 = 1; + a22 = 1; + a21 = 11; + a16 = 10; + return -1; + } else if(((!(a28==1)||((!(a3==1)||((a21==12)&&((a9==10)&&((a2==1)&&(a1==12)))))&&(a17==2)))&&(!(a18==1)&&((!(a26==1)&&((a19==3)&&(((a5==6)&&(((input==6)&&!(a20==1))&&(a16==8)))&&(a6==1))))&&!(a14==1))))){ + a19 = 1; + a12 = 0; + a9 = 11; + a22 = 1; + a16 = 7; + a20 = 1; + a1 = 13; + a24 = 1; + a21 = 10; + return -1; + } else if((((!(a27==1)&&((a21==10)&&((a20==1)&&((a3==1)&&((a19==3)&&((((((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))&&(input==5))&&!(a14==1))&&!(a18==1))&&(a17==2)))))))&&(a13==1))&&((a16==11)&&((a1==13)&&(!(a23==1)||(a6==1)))))){ + a7 = 0; + a20 = 0; + a16 = 8; + a21 = 11; + a9 = 10; + a5 = 4; + a19 = 5; + a1 = 12; + a28 = 1; + a13 = 1; + return 21; + } else if(((((a11==1)&&(((a16==9)&&(((a13==1)&&(!(a27==1)&&((input==1)&&(a19==1))))&&(a5==6)))&&!(a0==1)))&&(a21==10))&&((((a14==1)||(!(a20==1)&&(!(a4==1)&&((a28==1)&&(a17==2)))))&&(a1==14))&&(a9==7)))){ + a29 = 0; + a5 = 4; + a16 = 7; + a1 = 13; + a22 = 0; + a9 = 8; + return -1; + } else if((((a9==11)&&((a1==14)&&((a19==2)&&((!(a24==1)&&((a17==2)&&(input==5)))&&(a21==11)))))&&(((a20==1)&&((a16==10)&&(((a27==1)||((((a6==1)||!(a13==1))&&(a6==1))||(a24==1)))&&(a5==5))))||!(a23==1)))){ + a16 = 7; + a9 = 7; + a21 = 10; + a1 = 12; + a5 = 4; + a19 = 1; + a24 = 0; + a28 = 1; + return -1; + } else if(((!(a4==1)&&((((!(a20==1)&&(a13==1))&&(a9==7))&&(a21==10))&&!(a0==1)))&&(((a3==1)&&((a12==1)&&((a17==2)&&((a1==14)&&(((a19==1)&&(((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&!(a27==1)))&&(a13==1))))))&&(a16==8)))){ + a1 = 12; + a5 = 4; + a8 = 0; + a16 = 7; + a20 = 1; + a3 = 1; + a12 = 1; + return -1; + } else if((((((!(a3==1)||(((a13==1)&&(a1==12))&&!(a7==1)))&&(a5==5))&&(a19==2))&&!(a8==1))&&(((a23==1)&&(!(a20==1)&&(!(a14==1)&&(((((a21==12)&&(input==5))&&(a9==7))&&(a17==2))&&!(a24==1)))))&&(a16==9)))){ + a1 = 14; + a21 = 10; + a19 = 5; + a26 = 1; + a10 = 0; + a7 = 1; + a16 = 7; + a5 = 6; + return 25; + } else if(((((a3==1)&&(((((a12==1)||(a7==1))&&(a17==2))&&(a5==4))&&!(a7==1)))||(a7==1))&&((a1==14)&&((((((a9==7)&&(((input==5)&&(a19==5))&&(a21==10)))&&!(a24==1))&&(a16==8))&&!(a8==1))&&(a20==1))))){ + a9 = 8; + a5 = 6; + a1 = 12; + a11 = 1; + a0 = 0; + a2 = 1; + return -1; + } else if((((a21==10)&&((((a14==1)||(((a5==5)&&(a28==1))||!(a13==1)))&&!(a8==1))||!(a6==1)))&&(((a1==13)&&((a9==10)&&(!(a26==1)&&(((((input==4)&&(a19==4))&&(a17==2))&&!(a24==1))&&(a20==1)))))&&(a16==7)))){ + a11 = 1; + a2 = 1; + a1 = 12; + a5 = 4; + a0 = 0; + a9 = 7; + a19 = 1; + return -1; + } else if(((((a0==1)||((a18==1)||((a16==11)&&(a23==1))))&&(a1==12))&&(!(a24==1)&&(((a20==1)&&((((a13==1)&&((a21==11)&&(((((a5==4)||(a5==5))&&(input==1))&&(a19==3))&&!(a7==1))))&&!(a27==1))&&(a9==8)))&&(a17==2))))){ + a21 = 12; + a27 = 0; + a9 = 11; + a28 = 1; + a19 = 1; + a6 = 1; + a1 = 13; + a5 = 5; + return 21; + } else if((((a20==1)&&(((a4==1)||(((((a11==1)||!(a6==1))||(a18==1))&&(a17==2))&&(a16==9)))&&(a2==1)))&&(((a19==5)&&((a21==12)&&((!(a26==1)&&((a9==11)&&(((a5==5)||(a5==6))&&(input==4))))&&(a11==1))))&&(a1==14)))){ + a24 = 0; + a5 = 4; + a19 = 1; + a21 = 10; + a0 = 0; + a1 = 12; + a4 = 0; + a16 = 7; + a9 = 7; + return -1; + } else if(((((((((((((a9==7)&&((a5==4)&&(a1==14)))||(((a9==11)&&((a1==13)&&(a5==5)))||((a9==11)&&((a5==6)&&(a1==13)))))&&(input==1))&&(a12==1))&&!(a26==1))&&(a12==1))&&(a12==1))&&(a13==1))&&(a17==2))&&(a16==10))&&(!(a20==1)&&((((a19==1)&&(a6==1))&&(a21==12))&&(a28==1))))){ + a21 = 10; + a5 = 4; + a8 = 1; + a29 = 1; + a20 = 1; + a9 = 11; + a1 = 12; + a2 = 0; + a19 = 2; + a16 = 7; + return -1; + } else if(((!(a26==1)&&(((a2==1)&&(a21==12))&&(a17==2)))&&((!(a24==1)&&((((!(a20==1)&&((a1==12)&&((((((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6))))&&(input==4))&&(a19==4))&&(a11==1))))&&!(a0==1))&&!(a8==1))&&(a16==8)))&&(a28==1)))){ + a16 = 7; + a21 = 10; + a20 = 1; + a19 = 1; + a9 = 11; + a5 = 4; + a25 = 0; + return 23; + } else if((((a20==1)&&(((a21==10)&&(((a16==9)&&(((a9==9)&&((((a5==4)||(a5==5))&&(input==1))&&(a1==13)))&&(a11==1)))&&(a3==1)))&&(a17==2)))&&((!(a26==1)&&((a19==1)&&(!(a14==1)&&((a23==1)&&!(a0==1)))))||(a8==1)))){ + a23 = 1; + a16 = 7; + a5 = 6; + a27 = 0; + a19 = 2; + a11 = 1; + a9 = 7; + return 22; + } else if((((!(a7==1)&&((a17==2)&&((a11==1)&&((!(a18==1)&&((a9==7)&&((((a3==1)||(a8==1))&&(a6==1))||(a7==1))))&&(a19==1)))))&&(a1==14))&&((((a21==11)&&((input==5)&&((a5==5)||(a5==6))))&&(a16==11))&&(a20==1)))){ + a5 = 4; + a21 = 10; + a1 = 12; + a23 = 1; + a2 = 1; + a16 = 7; + a7 = 0; + return -1; + } else if(((((((a11==1)&&(((((a17==2)&&((a6==1)&&!(a14==1)))&&(a1==12))||!(a2==1))&&!(a20==1)))&&(a19==2))||!(a28==1))&&(a21==11))&&(!(a27==1)&&(((a9==8)&&(((input==3)&&(a16==7))&&(a5==5)))&&(a23==1))))){ + a19 = 1; + a5 = 4; + a2 = 1; + a28 = 1; + a9 = 7; + a21 = 10; + a20 = 1; + a4 = 0; + return -1; + } else if(((((a5==4)&&(((a17==2)&&((a20==1)&&((a21==12)&&(!(a0==1)&&((input==5)&&(a16==10))))))&&(a2==1)))&&(a13==1))&&(!(a24==1)&&((a9==8)&&(((((a1==14)&&(a23==1))&&(a19==2))&&(a11==1))&&(a12==1)))))){ + a1 = 13; + a9 = 9; + a16 = 7; + a27 = 0; + a5 = 5; + a21 = 10; + a11 = 1; + a26 = 0; + return 25; + } else if(((((a3==1)&&((a21==10)&&(((a2==1)&&(a16==8))&&(a9==8))))||!(a23==1))&&(((a19==4)&&(!(a20==1)&&(!(a24==1)&&((((a1==14)&&(((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&(a13==1)))&&(a17==2))&&(a28==1)))))&&(a2==1)))){ + a18 = 0; + a9 = 7; + a20 = 1; + a16 = 7; + a14 = 0; + a11 = 1; + a5 = 4; + a19 = 1; + a1 = 12; + return -1; + } else if(((!(a24==1)&&(((a6==1)&&(a16==7))&&!(a7==1)))&&(((a17==2)&&(((((((a21==12)&&((a19==2)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&!(a27==1))))&&!(a20==1))&&(a6==1))&&!(a14==1))&&(a1==14))&&(a9==11)))&&!(a0==1)))){ + a11 = 1; + a1 = 12; + a21 = 10; + a5 = 4; + a20 = 1; + a9 = 7; + a13 = 1; + a26 = 0; + a19 = 1; + return -1; + } else if((((a6==1)&&((((!(a24==1)&&((((a9==8)&&(input==3))&&!(a20==1))&&(a17==2)))&&(a19==3))&&(a5==5))&&!(a27==1)))&&(((a28==1)&&((((a1==13)&&((a11==1)&&(a28==1)))&&(a16==9))&&(a21==11)))||!(a3==1)))){ + a1 = 12; + a21 = 10; + a16 = 7; + a19 = 1; + a9 = 7; + a20 = 1; + a11 = 0; + a22 = 1; + a10 = 0; + a5 = 6; + return -1; + } else if((((a17==2)&&((a1==12)&&((a6==1)&&(((!(a20==1)&&(!(a26==1)&&(((a5==4)||(a5==5))&&(input==1))))&&(a16==7))&&(a19==1)))))&&((((a7==1)||(!(a18==1)&&((a21==11)&&((a2==1)||!(a6==1)))))||(a26==1))&&(a9==11)))){ + a4 = 0; + a26 = 0; + a6 = 1; + a5 = 5; + a9 = 8; + a21 = 12; + return 25; + } else if((((a21==12)&&((((a17==2)&&(((a12==1)&&!(a26==1))||!(a11==1)))&&(a28==1))&&(a5==4)))&&(((((!(a8==1)&&((a9==11)&&((a3==1)&&((input==4)&&(a16==7)))))&&(a23==1))&&!(a20==1))&&(a1==13))&&(a19==3)))){ + a0 = 0; + a9 = 7; + a19 = 1; + a14 = 0; + a21 = 10; + a20 = 1; + a1 = 12; + return -1; + } else if(((((a28==1)&&((a28==1)&&(!(a4==1)&&((a2==1)&&((a1==12)&&(!(a20==1)&&(((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==1))&&(a21==10))))))))&&!(a27==1))&&(!(a11==1)||((a17==2)&&(((a16==10)&&(a12==1))&&(a19==3)))))){ + a20 = 1; + a21 = 11; + a25 = 1; + a3 = 0; + a1 = 13; + a16 = 8; + a5 = 4; + a9 = 9; + a2 = 0; + a19 = 5; + return 25; + } else if(((!(a3==1)||(!(a28==1)||((a6==1)||(a7==1))))&&(!(a27==1)&&(((a17==2)&&((!(a24==1)&&((((a16==10)&&((input==4)&&(((a9==11)&&((a1==12)&&(a5==6)))||(((a5==4)&&(a1==13))&&(a9==7)))))&&(a21==12))&&!(a20==1)))&&(a3==1)))&&(a19==1))))){ + a9 = 10; + a16 = 7; + a5 = 5; + a1 = 14; + a27 = 1; + a15 = 0; + a20 = 1; + a21 = 10; + a14 = 1; + return -1; + } else if((((a23==1)&&(((a2==1)&&(!(a20==1)&&(((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&!(a8==1))))&&(a11==1)))&&((!(a14==1)&&((a19==1)&&((a9==7)&&(((a21==10)&&(((a16==8)&&(a13==1))&&(a1==13)))&&(a17==2)))))&&(a28==1)))){ + a13 = 1; + a5 = 4; + a26 = 0; + a20 = 1; + a1 = 12; + a16 = 7; + a28 = 1; + return -1; + } else if((((a21==11)&&(((a18==1)||((((a9==8)&&(a28==1))||!(a2==1))&&(a1==13)))&&!(a20==1)))&&(((a19==5)&&(!(a0==1)&&((((!(a26==1)&&((input==4)&&((a5==4)||(a5==5))))&&(a17==2))&&(a11==1))&&!(a0==1))))&&(a16==9)))){ + a23 = 0; + a1 = 12; + a9 = 7; + a19 = 2; + a26 = 1; + a29 = 1; + a16 = 7; + a5 = 5; + return -1; + } else if((((a20==1)&&(((((((a9==7)&&(input==5))&&(a28==1))&&(a11==1))&&!(a14==1))&&(a3==1))&&(a17==2)))&&(((((a1==14)&&((((a6==1)&&(a23==1))&&(a19==3))&&(a11==1)))&&(a5==6))&&(a16==8))&&(a21==12)))){ + a11 = 1; + a6 = 1; + a5 = 4; + a14 = 0; + a16 = 10; + a19 = 2; + a9 = 11; + return 22; + } else if((((a12==1)&&(((((a21==11)&&((a2==1)&&((a9==10)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&!(a24==1)))))&&(a20==1))&&(a1==12))&&!(a27==1)))&&(((a17==2)&&((a11==1)&&(((a16==8)&&(a13==1))&&(a2==1))))&&(a19==3)))){ + a21 = 10; + a5 = 4; + a16 = 7; + a9 = 7; + a19 = 1; + a11 = 1; + a3 = 1; + a12 = 1; + return -1; + } else if(((((((a3==1)&&((!(a11==1)||((a26==1)||(a6==1)))&&(a13==1)))&&(a17==2))&&!(a20==1))&&(a1==12))&&((((a19==2)&&((a16==8)&&((a11==1)&&(((a5==4)&&(input==3))&&(a3==1)))))&&(a9==7))&&(a21==10)))){ + a7 = 0; + a16 = 7; + a19 = 1; + a8 = 0; + a20 = 1; + a6 = 1; + return -1; + } else if((((!(a26==1)&&((a12==1)||(a27==1)))||(a26==1))&&((a21==12)&&(!(a20==1)&&((((!(a27==1)&&((a1==12)&&((a16==8)&&(!(a0==1)&&((a17==2)&&((input==4)&&((a5==6)||((a5==4)||(a5==5)))))))))&&(a19==1))&&(a3==1))&&(a9==9)))))){ + if((a1==13)){ + a3 = 0; + a21 = 10; + a16 = 7; + a14 = 1; + a20 = 1; + a10 = 1; + a5 = 5; + a1 = 14; + }else{ + a26 = 1; + a6 = 0; + a21 = 10; + a16 = 7; + a5 = 4; + } + return -1; + } else if((((!(a0==1)&&((a16==11)&&(((((((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(input==5))&&(a19==2))&&!(a27==1))&&(a1==13))))&&!(a7==1))&&((!(a11==1)||((((a21==10)&&((a3==1)&&(a17==2)))&&!(a20==1))||(a7==1)))||(a8==1)))){ + a1 = 14; + a12 = 0; + a16 = 10; + a5 = 5; + a0 = 1; + a9 = 9; + a21 = 11; + a18 = 1; + return 25; + } else if(((!(a18==1)&&((((a17==2)&&((a21==12)&&((a3==1)&&(((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4)))&&(input==4)))))&&(a16==8))&&!(a0==1)))&&((((a6==1)&&(!(a20==1)&&((a1==12)&&((a11==1)&&(a19==2)))))||!(a23==1))||(a14==1)))){ + if((a14==1)){ + a23 = 0; + a8 = 1; + a16 = 7; + a19 = 1; + a5 = 6; + a20 = 1; + a6 = 0; + a9 = 9; + a21 = 10; + a1 = 14; + }else{ + a3 = 0; + a10 = 0; + a20 = 1; + a19 = 1; + a18 = 1; + a1 = 13; + a9 = 9; + a16 = 7; + a5 = 5; + a21 = 10; + } + return 25; + } else if((((((a4==1)||(((a16==9)&&((a21==10)&&(((!(a14==1)&&(a13==1))&&(a1==13))&&(a17==2))))&&!(a18==1)))&&!(a24==1))&&(a23==1))&&((!(a20==1)&&((((input==5)&&(a19==1))&&(a5==4))&&(a9==8)))&&(a2==1)))){ + if((a11==1)){ + a2 = 0; + a6 = 0; + a21 = 11; + a16 = 7; + a13 = 0; + a9 = 9; + a19 = 3; + a1 = 12; + }else{ + a9 = 7; + a1 = 14; + a20 = 1; + a4 = 1; + a7 = 1; + a16 = 7; + a22 = 0; + } + return -1; + } else if(((((a28==1)&&((a17==2)&&(((a11==1)&&(a19==1))&&(a11==1))))&&(a21==11))&&((((((a13==1)&&((a16==10)&&((((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&!(a14==1))&&!(a18==1))))&&!(a8==1))&&(a9==7))&&(a1==12))&&!(a20==1)))){ + if((a26==1)){ + a16 = 7; + a1 = 14; + a19 = 5; + a5 = 6; + a8 = 1; + a11 = 0; + a9 = 10; + a18 = 1; + }else{ + a13 = 0; + a16 = 9; + a3 = 0; + a9 = 10; + a11 = 0; + a19 = 5; + a5 = 5; + } + return -1; + } else if(((!(a2==1)||((a9==11)&&((a21==12)&&((a16==7)&&(((a11==1)&&(((a2==1)&&(a20==1))&&(a1==13)))&&(a17==2))))))&&(((!(a24==1)&&((!(a0==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))&&(a19==4)))&&!(a0==1))&&!(a8==1)))){ + a19 = 1; + a5 = 4; + a28 = 1; + a9 = 7; + a2 = 1; + a21 = 10; + a13 = 1; + a1 = 12; + return -1; + } else if((((((a9==7)&&(!(a2==1)&&(a6==1)))&&(a0==1))&&(a21==11))&&((((a0==1)&&((((((((a5==4)&&(input==5))&&(a17==2))&&(a20==1))&&!(a12==1))&&(a19==1))&&(a16==9))&&!(a2==1)))&&(a1==12))&&(a8==1)))){ + a1 = 13; + a11 = 0; + a5 = 5; + a16 = 7; + a10 = 0; + a21 = 10; + a9 = 10; + return -1; + } else if((((a9==10)&&((a6==1)&&((a16==7)&&((!(a0==1)&&((a11==1)&&(a13==1)))&&(a12==1)))))&&(((a20==1)&&((((((a1==13)&&((input==6)&&((a5==5)||(a5==6))))&&(a12==1))&&(a17==2))&&(a13==1))&&(a19==4)))&&(a21==12)))){ + if((a11==1)){ + a16 = 8; + a1 = 14; + a27 = 0; + a5 = 4; + a20 = 0; + a26 = 0; + a24 = 0; + a21 = 10; + }else{ + a13 = 1; + a0 = 0; + a5 = 5; + a21 = 11; + a7 = 0; + a19 = 2; + a1 = 14; + a16 = 9; + } + return 21; + } else if((((((((a19==1)&&((a3==1)&&(!(a14==1)&&((((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6))))&&(input==3)))))&&(a16==9))&&!(a8==1))&&!(a18==1))&&(a17==2))&&(!(a20==1)&&((a21==10)&&((((a3==1)&&!(a14==1))||!(a23==1))&&(a1==13)))))){ + if((a24==1)){ + a9 = 11; + a0 = 1; + a12 = 0; + a27 = 1; + a1 = 12; + a20 = 1; + a5 = 6; + a16 = 7; + a19 = 2; + }else{ + a20 = 1; + a5 = 6; + a9 = 10; + a28 = 0; + a16 = 7; + a11 = 0; + } + return -1; + } else if(((((a19==5)&&((((a12==1)&&(a17==2))||!(a6==1))&&(a16==9)))||!(a13==1))&&((a3==1)&&(((a21==12)&&((a1==12)&&(((!(a7==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a20==1)))&&(a9==11))&&!(a24==1))))&&(a28==1))))){ + a19 = 1; + a5 = 4; + a16 = 7; + a9 = 7; + a18 = 0; + a11 = 1; + a28 = 1; + a21 = 10; + return -1; + } else if((((a1==12)&&(((a21==12)&&((a11==1)||!(a6==1)))&&(a13==1)))&&((a3==1)&&((((a16==10)&&(((a17==2)&&((((((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6))))&&(input==1))&&(a13==1))&&!(a18==1)))&&(a3==1)))&&!(a20==1))&&(a19==2))))){ + a20 = 1; + a23 = 0; + a2 = 0; + a19 = 5; + a8 = 1; + a9 = 11; + a16 = 11; + a5 = 6; + a1 = 13; + return 26; + } else if(((((a16==8)&&((a0==1)||(((!(a20==1)&&(((a3==1)||!(a12==1))&&(a17==2)))||!(a28==1))&&(a3==1))))&&(a1==13))&&((a21==11)&&(((a19==3)&&((a28==1)&&((input==6)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5))))))&&!(a18==1))))){ + a9 = 7; + a16 = 7; + a5 = 4; + a2 = 1; + a21 = 10; + a19 = 1; + a1 = 12; + a20 = 1; + a14 = 0; + return -1; + } else if((((((a2==1)&&(a23==1))&&(a9==7))&&!(a20==1))&&((a16==10)&&((a17==2)&&(!(a18==1)&&(((a13==1)&&((a3==1)&&((((a6==1)&&((a5==6)&&((a19==2)&&(input==6))))&&!(a0==1))&&(a1==14))))&&(a21==12))))))){ + a28 = 0; + a22 = 0; + a21 = 10; + a9 = 8; + a19 = 1; + a20 = 1; + a1 = 12; + a14 = 1; + return -1; + } else if(((((((a8==1)||((!(a23==1)||(a23==1))||!(a2==1)))&&(a19==5))&&(a16==7))&&(a17==2))&&((a21==10)&&((a5==4)&&((a13==1)&&(((a28==1)&&((a11==1)&&((a20==1)&&((input==3)&&(a1==13)))))&&(a9==7))))))){ + a1 = 12; + a23 = 1; + a2 = 1; + a8 = 0; + a19 = 1; + return -1; + } else if((((a6==1)&&(((a17==2)&&((!(a14==1)&&((a19==2)&&(input==1)))&&(a1==12)))&&(a16==10)))&&((a21==12)&&(!(a27==1)&&(((((a20==1)&&(((a28==1)&&(a23==1))&&(a5==4)))&&(a9==9))&&(a23==1))&&(a12==1)))))){ + a16 = 7; + a26 = 0; + a1 = 13; + a21 = 10; + a14 = 0; + a13 = 1; + return 25; + } else if(((!(a18==1)&&(((a0==1)||((a21==12)&&((a23==1)&&(a20==1))))&&(a19==2)))&&(((((a17==2)&&((((((a9==11)&&((a5==6)&&(a1==12)))||((a9==7)&&((a1==13)&&(a5==4))))&&(input==4))&&(a28==1))&&(a16==7)))&&!(a27==1))&&!(a14==1))&&(a2==1)))){ + a1 = 12; + a21 = 10; + a6 = 1; + a9 = 7; + a4 = 0; + a19 = 1; + a18 = 0; + a5 = 4; + return -1; + } else if((((((a16==8)&&((((a28==1)&&(a19==5))||(a4==1))||!(a12==1)))&&!(a20==1))&&(a17==2))&&((((a11==1)&&((a23==1)&&((a21==10)&&(((input==5)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&!(a24==1)))))&&(a28==1))&&(a1==13)))){ + a4 = 0; + a16 = 9; + a1 = 12; + a26 = 0; + a19 = 4; + a20 = 1; + a5 = 6; + a9 = 10; + return 22; + } else if(((!(a23==1)||((a18==1)||((a16==9)&&((!(a7==1)&&((a1==13)&&(a3==1)))&&(a19==3)))))&&((a11==1)&&((a5==6)&&((a9==11)&&((((!(a0==1)&&((input==5)&&(a17==2)))&&(a21==10))&&(a20==1))&&(a11==1))))))){ + if((a5==6)){ + a24 = 0; + a16 = 7; + a9 = 9; + a1 = 14; + a21 = 12; + a7 = 0; + a20 = 0; + a12 = 1; + }else{ + a27 = 0; + a16 = 11; + a1 = 12; + a5 = 4; + a28 = 1; + a9 = 10; + a6 = 1; + a19 = 2; + } + return 23; + } else if((((((((a20==1)&&((a17==2)&&(a23==1)))&&(a16==8))&&(a19==3))&&(a21==10))&&!(a11==1))&&(!(a6==1)&&((!(a2==1)&&(!(a28==1)&&(((a24==1)&&(((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a9==11)))&&(a1==13))))&&!(a2==1))))){ + a16 = 7; + a8 = 1; + a5 = 4; + a14 = 1; + a19 = 2; + a18 = 1; + a1 = 12; + a9 = 9; + return -1; + } else if((((!(a14==1)&&((((((a5==6)&&((input==4)&&(a17==2)))&&!(a7==1))&&!(a4==1))&&(a21==11))&&(a20==1)))&&!(a4==1))&&((a27==1)||(((a1==13)&&((a19==5)&&((a9==10)&&((a6==1)&&(a16==7)))))&&(a11==1))))){ + a27 = 0; + a2 = 1; + a5 = 4; + a21 = 10; + a28 = 1; + a1 = 12; + a9 = 7; + a19 = 1; + return -1; + } else if((((a17==2)&&((a21==10)&&(!(a13==1)||((a19==5)&&((a23==1)||(a7==1))))))&&((a6==1)&&((((a16==9)&&((((a9==8)&&((a3==1)&&((input==4)&&!(a20==1))))&&!(a8==1))&&(a5==5)))&&(a1==14))&&!(a24==1))))){ + if((a27==1)){ + a19 = 1; + a29 = 1; + a16 = 7; + a5 = 4; + a20 = 1; + a1 = 13; + a22 = 0; + a4 = 1; + }else{ + a13 = 0; + a5 = 4; + a16 = 8; + a9 = 10; + a19 = 1; + a20 = 1; + a6 = 0; + a22 = 1; + } + return 26; + } else if(((((a17==2)&&(!(a18==1)&&(a28==1)))&&!(a20==1))&&((a21==10)&&(((a19==3)&&((((a16==7)&&((((((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4)))&&(input==5))&&(a1==13))&&!(a4==1))&&!(a24==1)))&&(a6==1))&&!(a24==1)))&&!(a26==1))))){ + a7 = 0; + a9 = 9; + a13 = 1; + a20 = 1; + a16 = 10; + a5 = 5; + a1 = 14; + a6 = 1; + a19 = 4; + return 25; + } else if(((((a1==12)&&(((a16==7)&&((a21==12)&&(((a20==1)&&(input==6))&&!(a4==1))))&&(a12==1)))&&(a3==1))&&(!(a0==1)&&(((a17==2)&&((a9==8)&&((a5==4)&&(((a28==1)||(a27==1))&&(a19==5)))))||!(a11==1))))){ + a12 = 1; + a9 = 7; + a19 = 1; + a23 = 1; + a26 = 0; + a21 = 10; + return -1; + } else if((((a21==10)&&(!(a14==1)&&((a1==14)&&((input==4)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))))))&&(((a17==2)&&((a16==7)&&(((a23==1)&&(((a27==1)||((a26==1)||((a2==1)||!(a11==1))))&&!(a0==1)))&&!(a20==1))))&&(a19==5)))){ + a14 = 0; + a16 = 8; + a9 = 11; + a21 = 12; + a5 = 5; + a13 = 1; + a27 = 0; + a19 = 3; + a20 = 1; + return -1; + } else if((((!(a7==1)&&((a6==1)&&((((a12==1)&&((a19==1)&&(a11==1)))&&(a21==10))||!(a23==1))))&&(a17==2))&&((((((a9==10)&&(((input==4)&&((a5==4)||(a5==5)))&&(a23==1)))&&(a1==12))&&(a23==1))&&(a20==1))&&(a16==9)))){ + a19 = 4; + a5 = 4; + a0 = 0; + a1 = 13; + a9 = 9; + a4 = 0; + a21 = 12; + return 25; + } else if((((a3==1)&&((a16==8)&&((((a12==1)&&(!(a20==1)&&(!(a27==1)&&((((a19==4)&&(((a5==5)&&(a1==12))&&(a9==7)))||(((((a5==6)&&(a1==14))&&(a9==11))&&(a19==3))||((a19==4)&&((a9==7)&&((a1==12)&&(a5==4))))))&&(input==3)))))&&(a21==10))&&(a17==2))))&&(!(a0==1)&&(((a6==1)||(a8==1))&&!(a26==1))))){ + a2 = 1; + a20 = 1; + a18 = 0; + a16 = 7; + a9 = 7; + a1 = 12; + a5 = 4; + a23 = 1; + a19 = 1; + return -1; + } else if(((((a17==2)&&((a16==9)&&((((a1==14)&&((input==6)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8)))))&&(a28==1))&&(a19==4))))&&(a21==12))&&((!(a28==1)||((a4==1)||(!(a20==1)&&(!(a24==1)&&(!(a0==1)&&(a28==1))))))||(a27==1)))){ + a29 = 0; + a1 = 12; + a12 = 0; + a9 = 10; + a20 = 1; + a21 = 10; + a19 = 3; + a2 = 0; + a5 = 6; + a16 = 11; + return -1; + } else if(((((a6==1)&&(!(a8==1)&&((((((a3==1)&&(a19==3))&&(a1==12))&&(a9==9))&&(a23==1))&&(a21==10))))&&(a17==2))&&(((a20==1)&&(!(a4==1)&&((((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&!(a24==1))&&!(a0==1))))&&(a16==11)))){ + a11 = 1; + a16 = 7; + a5 = 4; + a9 = 7; + a19 = 1; + a0 = 0; + a2 = 1; + return -1; + } else if(((((!(a14==1)&&((a12==1)&&((a5==5)&&(((input==5)&&(a9==8))&&(a17==2)))))&&(a16==11))&&(a21==10))&&((!(a28==1)||((!(a20==1)&&((((a1==12)&&(a12==1))&&(a19==1))&&!(a14==1)))&&(a12==1)))||!(a3==1)))){ + if((a12==1)){ + a16 = 8; + a5 = 4; + a19 = 3; + a10 = 1; + a6 = 0; + a21 = 11; + a27 = 1; + a20 = 1; + }else{ + a20 = 1; + a22 = 1; + a29 = 0; + a9 = 11; + a5 = 6; + a16 = 7; + a19 = 2; + a7 = 1; + } + return -1; + } else if(((((a19==3)&&(((a1==14)&&((a6==1)||!(a11==1)))&&(a16==8)))||!(a3==1))&&(((a2==1)&&(((((a17==2)&&((a20==1)&&((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(input==4))))&&!(a0==1))&&(a21==10))&&(a13==1)))&&(a3==1)))){ + a12 = 1; + a3 = 1; + a1 = 12; + a5 = 4; + a16 = 7; + a19 = 1; + a9 = 7; + return -1; + } else if((((a17==2)&&(!(a7==1)&&(!(a4==1)&&(((a5==4)&&(input==6))&&!(a27==1)))))&&((a16==8)&&(!(a20==1)&&((a19==4)&&((a27==1)||((a21==11)&&((a9==9)&&(((a1==14)&&((a28==1)||!(a12==1)))||!(a2==1)))))))))){ + a23 = 1; + a1 = 12; + a19 = 3; + a21 = 10; + a16 = 7; + a5 = 5; + a20 = 1; + a8 = 0; + a3 = 1; + return 25; + } else if((((a12==1)&&(((a21==11)&&(((a17==2)&&(((a28==1)&&(a1==14))||(a18==1)))&&(a23==1)))&&(a20==1)))&&(!(a8==1)&&((a16==7)&&((a13==1)&&((a9==10)&&((a2==1)&&((a19==4)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))))))))){ + a4 = 0; + a16 = 8; + a23 = 1; + a19 = 5; + a1 = 12; + a5 = 5; + a9 = 11; + a0 = 0; + return 23; + } else if((((!(a27==1)&&(!(a20==1)&&(!(a14==1)&&((a11==1)&&(((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5)))&&(input==3))))))&&(a1==12))&&((a19==2)&&((!(a13==1)||(((((a3==1)&&(a3==1))&&!(a7==1))&&(a16==9))&&(a21==10)))&&(a17==2))))){ + a5 = 6; + a29 = 1; + a1 = 13; + a9 = 10; + a19 = 4; + a21 = 11; + a25 = 0; + a20 = 1; + return -1; + } else if((((a17==2)&&((a16==10)&&(!(a4==1)&&((a2==1)&&(a12==1)))))&&((a13==1)&&(((((!(a0==1)&&(((((((a1==13)&&(a5==5))&&(a9==11))||(((a1==13)&&(a5==6))&&(a9==11)))||(((a5==4)&&(a1==14))&&(a9==7)))&&(input==6))&&(a19==1)))&&(a3==1))&&(a21==12))&&!(a0==1))&&!(a20==1))))){ + a1 = 14; + a20 = 1; + a21 = 10; + a5 = 4; + a19 = 4; + a9 = 9; + a16 = 7; + a10 = 1; + a15 = 1; + a22 = 1; + return 25; + } else if((((a5==6)&&((a19==5)&&(!(a4==1)&&(!(a24==1)&&(!(a18==1)&&((input==5)&&(a1==13)))))))&&(((((a17==2)&&((a13==1)&&((a9==10)&&((!(a28==1)||(a6==1))||(a0==1)))))&&(a20==1))&&(a21==12))&&(a16==8)))){ + a2 = 1; + a16 = 10; + a27 = 0; + a1 = 12; + a26 = 0; + return 21; + } else if((((a9==10)&&(((a16==7)&&((a17==2)&&((a1==13)&&((a3==1)&&((input==5)&&((a5==4)||(a5==5)))))))&&!(a20==1)))&&((a19==1)&&((a2==1)&&((!(a26==1)&&(!(a2==1)||(((a2==1)&&(a28==1))&&(a21==10))))&&!(a8==1)))))){ + a1 = 12; + a7 = 0; + a20 = 1; + a9 = 7; + a18 = 0; + a5 = 4; + return -1; + } else if((((a17==2)&&((a2==1)&&((a0==1)||(a2==1))))&&((a5==6)&&((((((!(a14==1)&&(((a9==9)&&((a19==5)&&((input==3)&&(a16==8))))&&!(a0==1)))&&(a28==1))&&(a12==1))&&(a21==12))&&(a1==12))&&!(a20==1))))){ + if((a7==1)){ + a26 = 1; + a20 = 1; + a3 = 0; + a19 = 2; + a21 = 10; + a16 = 7; + a9 = 7; + a2 = 0; + a5 = 4; + }else{ + a16 = 9; + a29 = 1; + a1 = 13; + a9 = 8; + a19 = 4; + a22 = 1; + } + return -1; + } else if((((!(a26==1)&&((a3==1)&&((a19==1)&&((((a5==5)||(a5==6))&&(input==3))&&(a1==13)))))&&!(a4==1))&&(!(a6==1)||(((((a21==10)&&((a20==1)&&(!(a18==1)&&((a9==10)&&(a11==1)))))&&(a17==2))&&(a16==11))&&!(a8==1))))){ + a5 = 4; + a24 = 0; + a16 = 7; + a1 = 12; + a18 = 0; + a9 = 7; + a12 = 1; + return -1; + } else if(((((a6==1)&&((a13==1)&&((((input==5)&&((((a19==3)&&((a9==11)&&((a5==6)&&(a1==14))))||((a19==4)&&(((a1==12)&&(a5==4))&&(a9==7))))||((a19==4)&&((a9==7)&&((a5==5)&&(a1==12))))))&&(a17==2))&&(a16==11))))&&!(a27==1))&&(((!(a20==1)&&((a24==1)||((a3==1)&&(a21==10))))&&(a11==1))&&!(a8==1)))){ + if((a14==1)){ + a11 = 0; + a1 = 13; + a19 = 1; + a22 = 0; + a9 = 10; + a5 = 4; + a16 = 9; + a14 = 1; + a21 = 12; + }else{ + a9 = 7; + a10 = 0; + a5 = 5; + a1 = 13; + a20 = 1; + a25 = 1; + a21 = 12; + a19 = 2; + a0 = 1; + } + return -1; + } else if((((!(a13==1)||((!(a23==1)||((a26==1)||((((a23==1)&&(a1==14))&&(a5==5))&&(a20==1))))||!(a6==1)))&&(a3==1))&&((((a16==8)&&(((a17==2)&&((input==4)&&(a19==5)))&&(a9==8)))&&(a21==12))&&(a23==1)))){ + a7 = 0; + a5 = 4; + a1 = 12; + a24 = 0; + a9 = 7; + a3 = 1; + return -1; + } else if((((a16==11)&&(((a21==12)&&(((a28==1)&&(!(a7==1)&&(a11==1)))&&(a17==2)))&&(a23==1)))&&(!(a26==1)&&(!(a0==1)&&(!(a4==1)&&((a9==10)&&((a20==1)&&((a19==3)&&(((input==3)&&((a5==4)||(a5==5)))&&(a1==13)))))))))){ + a7 = 0; + a21 = 10; + a2 = 1; + a19 = 1; + a1 = 12; + a9 = 7; + a5 = 4; + a27 = 0; + a16 = 7; + return -1; + } else if((((a17==2)&&((a21==12)&&((a1==14)&&(!(a18==1)&&(((a20==1)&&(input==4))&&(a11==1))))))&&((((((((!(a8==1)&&(a12==1))&&!(a8==1))&&(a19==2))&&(a28==1))||!(a12==1))&&(a16==7))&&(a5==5))&&(a9==10)))){ + a0 = 0; + a9 = 7; + a18 = 0; + a1 = 12; + a5 = 4; + a21 = 10; + a19 = 1; + a6 = 1; + return -1; + } else if(((((((((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==4))&&(a16==10))&&!(a14==1))&&(a19==1))&&!(a26==1))&&(a3==1))&&((((((a17==2)&&((a1==14)&&((a6==1)&&!(a14==1))))&&!(a20==1))||!(a28==1))||!(a28==1))&&(a21==12)))){ + a16 = 11; + a9 = 10; + a19 = 2; + a5 = 5; + a3 = 0; + a25 = 0; + a20 = 1; + a10 = 0; + a21 = 11; + a1 = 13; + return -1; + } else if(((((a21==11)&&(!(a0==1)&&(!(a18==1)&&(!(a18==1)&&(!(a20==1)&&((a11==1)&&(a28==1)))))))&&(a16==8))&&((((a19==3)&&((a12==1)&&(((input==1)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(a1==13))))&&(a17==2))&&!(a8==1)))){ + a21 = 12; + a1 = 12; + a14 = 0; + a5 = 4; + a8 = 0; + a9 = 8; + a27 = 0; + a20 = 1; + return 26; + } else if((((a16==9)&&((a17==2)&&((((input==1)&&(a5==6))&&!(a20==1))&&!(a24==1))))&&((a1==14)&&((a19==2)&&((a9==7)&&((a21==10)&&(!(a6==1)||((((a27==1)||((a8==1)||(a28==1)))&&(a6==1))||!(a28==1))))))))){ + a6 = 0; + a20 = 1; + a16 = 8; + a19 = 5; + a5 = 5; + a9 = 8; + a2 = 0; + a23 = 0; + return -1; + } else if(((((a21==11)&&((((!(a2==1)&&(!(a11==1)&&(((input==4)&&(((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))))&&!(a28==1))))&&(a1==13))&&(a0==1))&&(a20==1)))&&(a17==2))&&(!(a28==1)&&((a19==2)&&(((a13==1)&&(a16==9))&&!(a6==1)))))){ + a19 = 1; + a9 = 11; + a0 = 1; + a3 = 0; + a26 = 1; + a5 = 6; + a21 = 10; + return -1; + } else if(((((((a13==1)&&(((a5==6)&&(input==1))&&!(a0==1)))&&!(a24==1))&&!(a4==1))&&(a17==2))&&(((((a9==9)&&(!(a14==1)&&(((a21==10)&&((a6==1)||!(a3==1)))&&(a1==14))))&&!(a20==1))&&(a19==1))&&(a16==7)))){ + a16 = 9; + a11 = 1; + a24 = 0; + a19 = 2; + a20 = 1; + a21 = 12; + a9 = 11; + return 21; + } else if((((a9==11)&&((a0==1)||((a6==1)&&((((a1==12)&&((a11==1)&&((a20==1)&&(a11==1))))&&(a16==8))&&(a17==2)))))&&(((a2==1)&&(((a21==11)&&(!(a7==1)&&((a5==4)&&(input==3))))&&(a19==2)))&&(a11==1)))){ + a14 = 0; + a11 = 1; + a9 = 7; + a8 = 0; + a19 = 1; + a21 = 10; + a16 = 7; + return -1; + } else if(((!(a4==1)&&((a1==14)&&((a19==2)&&((((a5==5)||(a5==6))&&(input==3))&&!(a20==1)))))&&(((a21==12)&&((a17==2)&&(((a26==1)||(((a13==1)&&(((a6==1)&&(a2==1))||!(a23==1)))&&(a16==7)))&&!(a4==1))))&&(a9==7)))){ + a1 = 12; + a0 = 0; + a14 = 0; + a2 = 1; + a20 = 1; + a21 = 10; + a5 = 4; + a19 = 1; + return -1; + } else if((((a19==3)&&(((a28==1)&&(((((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a13==1))&&(a17==2))&&(a11==1)))&&(a21==10)))&&((!(a20==1)&&((a7==1)||((a9==7)&&((a1==14)&&(((a11==1)||(a24==1))&&(a6==1))))))&&(a16==11)))){ + if((a2==1)){ + a9 = 9; + a2 = 0; + a19 = 1; + a16 = 7; + a23 = 0; + a1 = 12; + a25 = 1; + a20 = 1; + a5 = 5; + }else{ + a19 = 1; + a20 = 1; + a16 = 7; + a5 = 4; + a23 = 0; + a25 = 1; + a9 = 8; + a1 = 13; + } + return -1; + } else if((((a2==1)&&(((a9==11)&&((((((((input==1)&&((a5==4)||(a5==5)))&&!(a0==1))&&(a17==2))&&(a19==1))&&!(a24==1))&&(a20==1))&&!(a7==1)))&&!(a4==1)))&&(((a21==11)&&((a18==1)||((a1==14)&&(a12==1))))&&(a16==11)))){ + a11 = 1; + a1 = 12; + a12 = 1; + a0 = 0; + a21 = 12; + a9 = 7; + a5 = 5; + return 21; + } else if(((((a1==13)&&(!(a26==1)&&(!(a13==1)||((a3==1)&&(a9==8)))))&&(a21==12))&&((a19==4)&&(((a6==1)&&((((a28==1)&&((a13==1)&&((((a5==4)||(a5==5))&&(input==3))&&(a16==7))))&&(a6==1))&&(a17==2)))&&!(a20==1))))){ + a14 = 0; + a11 = 1; + a5 = 4; + a27 = 0; + a21 = 10; + a1 = 12; + a20 = 1; + a19 = 1; + a9 = 7; + return -1; + } else if((((((a16==11)&&((((a17==2)&&((a3==1)&&(!(a27==1)&&(((a5==4)||(a5==5))&&(input==4)))))&&(a9==7))&&(a20==1)))&&(a21==12))&&(a1==14))&&((!(a6==1)||(((a27==1)||(!(a4==1)&&(a12==1)))||!(a6==1)))&&(a19==3)))){ + a3 = 1; + a1 = 12; + a21 = 10; + a5 = 4; + a16 = 7; + a2 = 1; + a19 = 1; + a13 = 1; + return -1; + } else if((((a24==1)||((a12==1)&&((((a21==11)&&((a16==7)&&(a28==1)))||!(a13==1))&&(a3==1))))&&((((a9==7)&&(!(a24==1)&&((a17==2)&&((a13==1)&&(!(a20==1)&&((input==5)&&((a5==6)||((a5==4)||(a5==5)))))))))&&(a19==3))&&(a1==14)))){ + a5 = 4; + a4 = 0; + a21 = 10; + a8 = 0; + a20 = 1; + a19 = 1; + a1 = 12; + return -1; + } else if((((a2==1)&&((a17==2)&&(((!(a20==1)&&(((a5==4)||(a5==5))&&(input==3)))&&!(a8==1))&&(a19==4))))&&(!(a13==1)||(!(a12==1)||(((((a1==12)&&((a16==7)&&(!(a28==1)||(a6==1))))&&(a9==8))&&(a21==10))&&!(a8==1)))))){ + a20 = 1; + a5 = 4; + a9 = 7; + a19 = 1; + a23 = 1; + a26 = 0; + return -1; + } else if((((a9==8)&&(((a18==1)||((a4==1)||(a13==1)))&&(a1==13)))&&((a21==10)&&((((a16==11)&&((((!(a24==1)&&((!(a20==1)&&(input==5))&&!(a14==1)))&&(a13==1))&&!(a18==1))&&(a19==1)))&&(a5==6))&&(a17==2))))){ + a19 = 4; + a21 = 12; + a8 = 1; + a22 = 0; + a9 = 7; + a16 = 10; + a1 = 14; + a26 = 1; + return -1; + } else if(((((a1==14)&&((a16==7)&&((a13==1)&&((((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&!(a4==1))&&!(a26==1)))))&&(a21==11))&&((a17==2)&&((a19==3)&&(((!(a13==1)||(((a20==1)&&(a2==1))||(a26==1)))&&(a9==8))||(a18==1)))))){ + a14 = 0; + a1 = 12; + a7 = 0; + a19 = 1; + a3 = 1; + a21 = 10; + a9 = 7; + a5 = 4; + return -1; + } else if(((((((((a16==9)&&((!(a24==1)&&(a12==1))&&(a19==1)))||(a18==1))&&!(a20==1))&&(a21==12))&&(a17==2))&&(a9==9))&&(!(a7==1)&&(((a11==1)&&(!(a4==1)&&((a5==6)&&((a1==13)&&(input==1)))))&&!(a14==1))))){ + a16 = 11; + a14 = 1; + a19 = 3; + a25 = 0; + a9 = 11; + a21 = 10; + return 23; + } else if(((((!(a7==1)&&((a6==1)&&((a17==2)&&((((a5==6)&&(input==1))&&!(a27==1))&&(a2==1)))))&&!(a7==1))&&(a16==8))&&((((a21==10)&&(((a19==4)&&((a2==1)&&(a9==9)))&&(a12==1)))&&(a20==1))&&(a1==14)))){ + a28 = 1; + a3 = 1; + a9 = 8; + a19 = 1; + a21 = 12; + return 21; + } else if((((a19==1)&&(((a20==1)&&((((a3==1)&&(((a17==2)&&((a12==1)&&(a9==10)))&&!(a18==1)))&&!(a8==1))&&(a16==8)))&&!(a27==1)))&&((a3==1)&&(((a1==12)&&((((a5==4)||(a5==5))&&(input==3))&&!(a14==1)))&&(a21==12))))){ + a7 = 0; + a5 = 4; + a9 = 7; + a21 = 10; + a16 = 7; + a26 = 0; + a23 = 1; + return -1; + } else if((((a2==1)&&((a28==1)&&((a19==2)&&(((a17==2)&&((a1==12)&&((input==6)&&((a5==5)||(a5==6)))))&&(a16==8)))))&&((a24==1)||((a9==10)&&((a18==1)||(!(a6==1)||(!(a8==1)&&((a21==11)&&((a13==1)&&!(a20==1)))))))))){ + a20 = 1; + a28 = 1; + a1 = 13; + a19 = 1; + a14 = 0; + a9 = 7; + a5 = 6; + a7 = 0; + return -1; + } else if((((a6==1)&&((((((a17==2)&&((a28==1)&&((a11==1)&&(a21==10))))&&(a20==1))&&(a19==2))&&(a1==14))&&(a11==1)))&&(((a2==1)&&(((((input==5)&&((a5==5)||(a5==6)))&&!(a0==1))&&(a9==8))&&!(a0==1)))&&(a16==8)))){ + a9 = 7; + a28 = 1; + a16 = 7; + a19 = 1; + a26 = 0; + a11 = 1; + a1 = 12; + a5 = 4; + return -1; + } else if((((a1==14)&&(((a11==1)&&((((input==1)&&((a5==4)||(a5==5)))&&(a11==1))&&(a12==1)))&&(a17==2)))&&((a19==2)&&(!(a20==1)&&((a21==10)&&((!(a8==1)&&((a9==10)&&(((a16==10)&&(a6==1))&&(a28==1))))||!(a6==1))))))){ + a10 = 1; + a9 = 9; + a19 = 1; + a20 = 1; + a14 = 1; + a16 = 7; + a15 = 1; + a1 = 12; + a5 = 6; + return -1; + } return calculate_output61(input); + } + + int calculate_output61(int input) { + if(((((a4==1)||(!(a23==1)||(((a16==10)&&(((a24==1)||(a3==1))&&(a19==1)))&&(a20==1))))&&(a21==12))&&(((!(a27==1)&&((a17==2)&&((input==1)&&((((a5==4)&&(a1==14))&&(a9==7))||((((a1==13)&&(a5==5))&&(a9==11))||(((a5==6)&&(a1==13))&&(a9==11)))))))&&(a28==1))&&(a3==1)))){ + a1 = 13; + a23 = 1; + a9 = 9; + a6 = 1; + a5 = 5; + a16 = 7; + a19 = 2; + a21 = 10; + return 25; + } else if(((!(a24==1)&&((a14==1)||(((a11==1)&&!(a20==1))&&!(a4==1))))&&((a11==1)&&(((a16==9)&&((a17==2)&&((!(a24==1)&&((input==6)&&((((a19==1)&&(((a5==6)&&(a1==14))&&(a9==11)))||((a19==2)&&((a9==7)&&((a1==12)&&(a5==4)))))||((a19==2)&&((a9==7)&&((a5==5)&&(a1==12)))))))&&(a21==10))))&&(a2==1))))){ + a16 = 7; + a1 = 14; + a19 = 1; + a9 = 10; + a6 = 0; + a20 = 1; + a29 = 0; + a11 = 0; + a5 = 6; + return 21; + } else if((((a20==1)&&((((a6==1)&&((a19==2)&&(((a12==1)&&((a1==13)&&((((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6))))&&(input==6))))&&!(a27==1))))&&!(a7==1))&&(a16==7)))&&((((!(a2==1)||(a6==1))||!(a6==1))&&(a21==11))&&(a17==2)))){ + a1 = 14; + a14 = 0; + a5 = 6; + a24 = 0; + a16 = 8; + a19 = 3; + a9 = 8; + a21 = 10; + a26 = 0; + return 21; + } else if((((!(a14==1)&&((a20==1)&&(((a13==1)&&(a1==13))&&!(a26==1))))&&(a21==11))&&((a9==8)&&(!(a0==1)&&((a6==1)&&(!(a24==1)&&(!(a14==1)&&((a19==5)&&(((a16==9)&&((input==1)&&((a5==5)||(a5==6))))&&(a17==2)))))))))){ + a5 = 5; + a7 = 0; + a16 = 10; + a24 = 0; + a12 = 1; + return 21; + } else if((((((!(a11==1)&&((a7==1)&&((a11==1)&&(a17==2))))&&(a20==1))&&!(a28==1))&&!(a28==1))&&(((a1==12)&&(((a16==9)&&((a21==11)&&((a0==1)&&((input==1)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))))))&&!(a28==1)))&&(a19==3)))){ + a5 = 4; + a16 = 7; + a26 = 1; + a15 = 1; + a21 = 10; + a19 = 1; + a9 = 8; + a12 = 0; + return -1; + } else if(((((a17==2)&&(((a20==1)&&((a26==1)||(a6==1)))&&!(a27==1)))&&(a16==8))&&(((a23==1)&&((!(a27==1)&&(!(a27==1)&&((a19==1)&&(((a9==7)&&(((a5==4)||(a5==5))&&(input==4)))&&(a1==14)))))&&!(a0==1)))&&(a21==10)))){ + a6 = 1; + a1 = 12; + a16 = 7; + a5 = 4; + a24 = 0; + return -1; + } else if((((a20==1)&&((a19==1)&&((a11==1)&&((a12==1)&&((((a16==10)&&((input==5)&&((a5==4)||(a5==5))))&&!(a0==1))&&(a3==1))))))&&(((a1==14)&&(((a7==1)||(((a13==1)&&(a21==11))||!(a28==1)))&&(a17==2)))&&(a9==11)))){ + a16 = 9; + a9 = 9; + a0 = 0; + a5 = 4; + a28 = 1; + a1 = 12; + return 26; + } else if(((((a28==1)&&(!(a7==1)&&(!(a20==1)&&((!(a26==1)&&(((input==3)&&((a5==5)||(a5==6)))&&!(a4==1)))&&(a16==7)))))&&(a19==5))&&((a21==11)&&((a1==13)&&((a17==2)&&(((a18==1)||((a28==1)&&(a9==11)))||(a8==1))))))){ + a20 = 1; + a9 = 7; + a13 = 1; + a19 = 1; + a21 = 10; + a1 = 12; + a5 = 4; + a7 = 0; + a28 = 1; + return -1; + } else if((((a16==8)&&(((a2==1)&&((a9==10)&&((a11==1)||!(a13==1))))&&(a19==5)))&&((((((a12==1)&&(!(a0==1)&&((!(a7==1)&&((input==4)&&((a5==4)||(a5==5))))&&(a20==1))))&&(a3==1))&&(a1==13))&&(a17==2))&&(a21==12)))){ + a3 = 1; + a16 = 7; + a5 = 5; + a9 = 9; + a19 = 2; + a21 = 10; + a13 = 1; + return 23; + } else if((((a20==1)&&(((a28==1)||(a0==1))&&(a23==1)))&&(!(a18==1)&&((a5==6)&&((a1==12)&&(!(a24==1)&&(((!(a7==1)&&((a17==2)&&((a21==10)&&((a9==11)&&((a16==9)&&(input==1))))))&&(a19==5))&&!(a24==1)))))))){ + a18 = 0; + a0 = 0; + a19 = 1; + a9 = 7; + a7 = 0; + a16 = 7; + a5 = 4; + return -1; + } else if((((a16==8)&&(((a5==5)&&((a28==1)&&((a11==1)&&(((a9==7)&&(((((input==4)&&(a19==1))&&(a3==1))&&(a21==12))&&(a23==1)))&&!(a4==1)))))&&(a11==1)))&&((a1==14)&&(((a3==1)&&!(a20==1))&&(a17==2))))){ + a9 = 10; + a20 = 1; + a19 = 2; + a1 = 12; + a5 = 4; + a21 = 10; + a13 = 0; + a18 = 1; + a22 = 1; + a16 = 7; + return 21; + } else if((((a9==8)&&((a1==12)&&((a14==1)||((a17==2)&&((a14==1)||(a28==1))))))&&((a6==1)&&((a6==1)&&((a19==5)&&((!(a7==1)&&(((a16==7)&&(((input==5)&&(a5==4))&&(a21==12)))&&(a11==1)))&&(a20==1))))))){ + a21 = 11; + a5 = 6; + a19 = 3; + a6 = 1; + a1 = 14; + a16 = 9; + a18 = 0; + a28 = 1; + return 26; + } else if(((((((((a20==1)&&(a23==1))&&(a1==12))&&(a16==11))||!(a2==1))||(a0==1))||!(a23==1))&&(!(a18==1)&&(((a17==2)&&((a19==5)&&((a11==1)&&(((((a5==5)||(a5==6))&&(input==3))&&(a21==12))&&(a9==11)))))&&(a12==1))))){ + a13 = 1; + a9 = 10; + a7 = 0; + a5 = 6; + a3 = 1; + a16 = 9; + a19 = 3; + return 21; + } else if(((!(a8==1)&&(((a20==1)&&(!(a14==1)&&((a17==2)&&(input==5))))&&(a5==6)))&&(!(a13==1)||((a8==1)||((((a16==8)&&(((a1==13)&&(!(a23==1)||((a21==12)&&(a2==1))))||(a18==1)))&&(a9==10))&&(a19==2)))))){ + a16 = 7; + a1 = 12; + a27 = 0; + a5 = 4; + a9 = 7; + a0 = 0; + a19 = 1; + a21 = 10; + a12 = 1; + return -1; + } else if(((((((a13==1)&&(!(a26==1)&&(((a28==1)&&(a13==1))&&!(a20==1))))&&!(a8==1))&&(a3==1))&&(a9==7))&&((a17==2)&&(((a19==5)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&(a1==12))&&(a11==1))&&(a21==11)))&&(a16==8))))){ + a19 = 1; + a11 = 1; + a13 = 1; + a27 = 0; + a21 = 10; + a16 = 7; + a20 = 1; + a5 = 4; + return -1; + } else if(((((a1==13)&&((((a13==1)&&((input==3)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))))&&!(a8==1))&&(a19==4)))&&!(a18==1))&&((a20==1)&&((((a17==2)&&(!(a2==1)||(((a12==1)&&(a16==7))||!(a3==1))))||(a4==1))&&(a21==11))))){ + a19 = 1; + a9 = 7; + a3 = 1; + a1 = 12; + a5 = 4; + a21 = 10; + a0 = 0; + a11 = 1; + return -1; + } else if((((a28==1)&&((a2==1)&&((a12==1)&&((!(a4==1)&&((a11==1)&&((a16==11)&&((a20==1)&&(((a19==4)&&((input==4)&&(((((a1==12)&&(a5==5))&&(a9==11))||(((a1==12)&&(a5==6))&&(a9==11)))||(((a5==4)&&(a1==13))&&(a9==7)))))&&(a21==11))))))&&(a2==1)))))&&((a17==2)&&(a28==1)))){ + a5 = 4; + a16 = 7; + a21 = 10; + a9 = 7; + a14 = 0; + a1 = 12; + a19 = 1; + a2 = 1; + return -1; + } else if((((a17==2)&&(((((((a14==1)||((a8==1)||(a6==1)))||!(a23==1))&&!(a20==1))&&(a9==9))&&(a19==3))&&(a21==11)))&&((a5==6)&&(((((a13==1)&&((input==1)&&(a1==13)))&&(a28==1))&&!(a27==1))&&(a16==10))))){ + a24 = 1; + a29 = 0; + a14 = 1; + a20 = 1; + a19 = 1; + a21 = 10; + a16 = 7; + a9 = 10; + a1 = 12; + a5 = 5; + return -1; + } else if((((a2==1)&&((((a17==2)&&(a11==1))&&(a21==10))&&(a16==10)))&&((((a1==13)&&(((a2==1)&&((a28==1)&&(((a12==1)&&(((((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4)))&&(input==6)))&&(a23==1))))&&!(a27==1)))&&!(a20==1))&&(a19==2)))){ + a29 = 1; + a1 = 12; + a27 = 1; + a21 = 12; + a16 = 9; + a5 = 5; + a9 = 9; + a15 = 0; + return -1; + } else if((((((((a17==2)&&(a2==1))||!(a23==1))&&(a1==13))&&(a28==1))&&(a12==1))&&((a12==1)&&((a12==1)&&((a19==5)&&((a21==10)&&((!(a20==1)&&(((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==6))&&(a16==8)))&&!(a7==1)))))))){ + a20 = 1; + a19 = 1; + a6 = 1; + a2 = 1; + a13 = 1; + a16 = 7; + a1 = 12; + a5 = 4; + a9 = 7; + return -1; + } else if(((((!(a2==1)&&((((((input==4)&&((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a5==4)&&(a9==11))))&&(a19==1))&&(a8==1))&&(a26==1))&&(a20==1)))&&(a1==14))&&!(a28==1))&&(!(a28==1)&&(!(a6==1)&&((a17==2)&&((a16==9)&&((a2==1)&&(a21==11)))))))){ + a1 = 12; + a5 = 5; + a14 = 1; + a29 = 1; + a16 = 7; + a9 = 9; + a15 = 1; + a21 = 10; + return 22; + } else if(((((((a16==9)&&((a5==5)&&(((((a21==10)&&(input==1))&&(a1==14))&&(a17==2))&&(a9==10))))&&(a20==1))&&(a23==1))&&!(a0==1))&&(!(a23==1)||(!(a24==1)&&(!(a8==1)&&((!(a28==1)||(a28==1))&&(a19==1))))))){ + if((a8==1)){ + a9 = 11; + a19 = 3; + a8 = 0; + a20 = 0; + a2 = 1; + a16 = 8; + a21 = 11; + }else{ + a16 = 8; + a5 = 4; + a13 = 1; + a21 = 12; + a12 = 1; + a19 = 4; + a4 = 0; + } + return 25; + } else if((((a9==8)&&(!(a20==1)&&((a2==1)&&((a6==1)&&(a12==1)))))&&(((a17==2)&&((((a21==10)&&((a19==3)&&((!(a7==1)&&((a11==1)&&(((a5==4)||(a5==5))&&(input==6))))&&(a16==9))))&&!(a14==1))&&(a2==1)))&&(a1==12)))){ + a5 = 4; + a25 = 0; + a2 = 0; + a9 = 9; + a19 = 5; + a8 = 1; + a20 = 1; + a1 = 13; + return 25; + } else if((((a19==3)&&((a16==8)&&(((a6==1)&&((a6==1)&&((a3==1)&&((((input==6)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(a21==10))&&(a2==1)))))&&(a1==13))))&&(((!(a14==1)&&((a20==1)&&(a12==1)))||!(a23==1))&&(a17==2)))){ + a16 = 7; + a5 = 4; + a3 = 1; + a9 = 7; + a7 = 0; + a1 = 12; + a19 = 1; + a26 = 0; + return -1; + } else if((((((a1==12)&&((a8==1)||(!(a20==1)&&((a5==6)&&((a12==1)||!(a23==1))))))&&!(a18==1))||(a26==1))&&((a23==1)&&((a16==10)&&((a9==7)&&(((((input==3)&&(a19==2))&&(a17==2))&&(a21==12))&&!(a4==1))))))){ + a5 = 5; + a20 = 1; + a16 = 7; + a19 = 1; + a3 = 0; + a27 = 1; + a2 = 0; + a21 = 10; + a9 = 9; + a1 = 14; + return -1; + } else if(((!(a26==1)&&(!(a28==1)||((a18==1)||(((((a28==1)&&(a19==1))&&(a5==5))&&(a16==10))&&(a21==11)))))&&(((a23==1)&&((a17==2)&&(((!(a0==1)&&((input==5)&&(a9==10)))&&!(a20==1))&&(a1==13))))&&!(a14==1)))){ + a6 = 0; + a10 = 0; + a7 = 1; + a21 = 10; + a5 = 6; + a9 = 7; + a1 = 12; + a20 = 1; + return 25; + } else if((((a11==1)&&(((a1==14)&&(((a28==1)&&(a16==9))||(a0==1)))&&(a23==1)))&&(!(a26==1)&&((a9==11)&&((((a19==3)&&(!(a20==1)&&((a17==2)&&((((a5==5)||(a5==6))&&(input==3))&&(a2==1)))))&&!(a7==1))&&(a21==10)))))){ + if((a27==1)){ + a1 = 13; + a5 = 5; + a20 = 1; + a9 = 8; + a16 = 7; + a19 = 1; + a14 = 1; + a6 = 0; + a22 = 1; + }else{ + a14 = 1; + a21 = 11; + a5 = 5; + a22 = 1; + a10 = 0; + a1 = 12; + a9 = 9; + } + return 22; + } else if(((((a17==2)&&(((((a9==7)&&((a16==8)&&((input==6)&&(a20==1))))&&(a5==5))&&(a19==5))&&(a1==14)))&&(a21==11))&&((a11==1)&&(!(a23==1)||((a11==1)&&(!(a2==1)||((a2==1)&&((a28==1)||!(a28==1))))))))){ + a2 = 1; + a1 = 13; + a5 = 4; + a21 = 10; + a16 = 7; + a9 = 9; + a19 = 2; + a0 = 0; + a11 = 1; + return 25; + } else if((((a17==2)&&((((!(a27==1)&&(a6==1))||!(a2==1))||!(a3==1))||!(a23==1)))&&(((((a6==1)&&(((a12==1)&&((a20==1)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==6))))&&(a16==11)))&&(a19==4))&&(a1==14))&&(a21==11)))){ + a19 = 1; + a16 = 7; + a1 = 12; + a21 = 10; + a24 = 0; + a23 = 1; + a8 = 0; + a5 = 4; + a9 = 7; + return -1; + } else if(((((a19==1)&&(((a1==12)&&(input==4))&&!(a20==1)))&&(a21==11))&&((a5==4)&&(((!(a23==1)&&((a8==1)&&(!(a12==1)&&(((a9==11)&&(((a11==1)&&(a16==8))&&(a8==1)))&&(a24==1)))))&&(a7==1))&&(a17==2))))){ + a16 = 7; + a9 = 10; + a12 = 0; + a19 = 2; + a20 = 1; + a21 = 10; + a29 = 1; + a15 = 1; + a5 = 6; + return -1; + } else if(((((a5==6)&&((a1==12)&&((a21==12)&&((a16==8)&&((a23==1)&&(!(a13==1)||((a11==1)&&(a19==2))))))))&&(a9==10))&&((!(a8==1)&&((!(a7==1)&&((a11==1)&&((input==6)&&!(a20==1))))&&!(a8==1)))&&(a17==2)))){ + a23 = 0; + a21 = 11; + a5 = 5; + a29 = 0; + a25 = 1; + a9 = 7; + return -1; + } else if((((a16==10)&&((!(a20==1)&&((a1==12)&&((a19==5)&&(((((a6==1)&&((input==6)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))))&&(a13==1))&&(a2==1))&&!(a4==1)))))&&(a17==2)))&&(!(a4==1)&&(((a11==1)&&(a21==10))||(a8==1))))){ + a19 = 1; + a1 = 14; + a9 = 10; + a5 = 5; + a16 = 7; + a20 = 1; + a4 = 1; + a12 = 0; + a15 = 1; + return 25; + } else if((((!(a14==1)&&(((((a9==7)&&((a6==1)&&(((input==6)&&(a17==2))&&(a21==10))))&&(a23==1))&&!(a4==1))&&(a1==14)))&&!(a27==1))&&(((a16==10)&&(!(a12==1)||((a5==5)&&((a11==1)&&(a20==1)))))&&(a19==3)))){ + a18 = 0; + a4 = 0; + a19 = 1; + a5 = 4; + a11 = 1; + a16 = 7; + a1 = 12; + return -1; + } else if((((a12==1)&&(((a20==1)&&((((a19==3)&&((((a5==4)||(a5==5))&&(input==3))&&!(a8==1)))&&(a17==2))&&(a1==14)))&&!(a0==1)))&&(((((a21==11)&&((a16==8)&&((a2==1)&&(a28==1))))&&(a9==9))&&(a2==1))||!(a13==1)))){ + a1 = 12; + a5 = 4; + a9 = 7; + a19 = 1; + a8 = 0; + a6 = 1; + a21 = 10; + a16 = 7; + return -1; + } else if((((a17==2)&&((!(a20==1)&&(((input==6)&&(a21==12))&&(a9==8)))&&!(a28==1)))&&(((!(a3==1)&&((((a1==14)&&(!(a23==1)&&((a16==7)&&((a5==6)&&(a23==1)))))&&(a4==1))&&(a8==1)))&&(a19==5))&&!(a6==1)))){ + a23 = 0; + a4 = 1; + a20 = 1; + a1 = 13; + a9 = 9; + a29 = 1; + a19 = 1; + a16 = 9; + a21 = 10; + return -1; + } else if(((((a19==2)&&((a28==1)&&(!(a7==1)&&((a21==11)&&(a13==1)))))&&(a1==14))&&(!(a20==1)&&((a9==10)&&(((a17==2)&&((a13==1)&&((a6==1)&&((((a5==6)&&(input==4))&&(a16==10))&&(a28==1)))))&&(a11==1)))))){ + a20 = 1; + a28 = 0; + a16 = 8; + a5 = 5; + a6 = 0; + a15 = 1; + a9 = 8; + a21 = 10; + a19 = 4; + return 21; + } else if((((a1==13)&&(((a6==1)&&((a7==1)||(((a21==11)&&(!(a18==1)&&(a23==1)))&&!(a4==1))))&&(a17==2)))&&((a19==5)&&((a20==1)&&((((((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))&&(input==5))&&(a13==1))&&(a23==1))&&(a16==9)))))){ + if((a24==1)){ + a20 = 0; + a9 = 8; + a5 = 5; + a16 = 8; + a12 = 1; + a1 = 12; + a8 = 0; + a18 = 0; + a19 = 4; + }else{ + a19 = 2; + a21 = 10; + a9 = 10; + a13 = 1; + a16 = 7; + a12 = 1; + a5 = 4; + a28 = 1; + } + return 21; + } else if(((((a0==1)||(((a9==9)&&(((a23==1)&&(a1==14))&&(a5==6)))||!(a28==1)))&&(a13==1))&&((a11==1)&&((a20==1)&&((a16==11)&&((a21==12)&&((a3==1)&&(!(a24==1)&&((a19==3)&&((input==5)&&(a17==2))))))))))){ + a9 = 7; + a5 = 4; + a7 = 0; + a16 = 10; + a18 = 0; + a2 = 1; + a19 = 1; + a21 = 10; + return 21; + } else if((((((a16==8)&&((a2==1)&&((((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==5))&&!(a18==1))&&(a13==1))))&&(a19==5))&&(a12==1))&&(((((((a17==2)&&(a3==1))&&(a21==12))||!(a6==1))&&(a1==14))&&(a13==1))&&(a20==1)))){ + a3 = 1; + a19 = 1; + a26 = 0; + a2 = 1; + a16 = 7; + a21 = 10; + a5 = 4; + a9 = 7; + a1 = 12; + return -1; + } else if(((!(a4==1)&&((a19==5)&&(!(a7==1)&&((a12==1)&&(((((a21==10)&&(input==6))&&(a9==7))&&!(a27==1))&&(a17==2))))))&&((!(a12==1)||((a5==4)&&((a16==8)&&((a4==1)||((a2==1)&&!(a20==1))))))&&(a1==13)))){ + a27 = 0; + a20 = 1; + a4 = 0; + a16 = 7; + a12 = 1; + a9 = 9; + a5 = 5; + a19 = 2; + return 25; + } else if(((((a11==1)&&(((a20==1)&&((a21==11)&&((a6==1)&&(a13==1))))&&(a9==11)))||(a14==1))&&((a19==2)&&((((((!(a7==1)&&((input==6)&&(a1==14)))&&!(a0==1))&&(a5==4))&&(a17==2))&&!(a0==1))&&(a16==7))))){ + a1 = 12; + a19 = 1; + a3 = 1; + a21 = 10; + a9 = 7; + a0 = 0; + a18 = 0; + return -1; + } else if((((!(a20==1)&&(((a11==1)&&((((a5==4)||(a5==5))&&(input==1))&&(a6==1)))&&(a17==2)))&&(a16==8))&&(((((a9==9)&&(!(a14==1)&&((((a1==14)&&(a12==1))||(a26==1))&&!(a27==1))))&&(a13==1))&&(a21==12))&&(a19==3)))){ + a1 = 12; + a16 = 7; + a9 = 11; + a20 = 1; + a21 = 10; + a14 = 1; + a5 = 4; + a29 = 0; + a24 = 1; + a19 = 2; + return -1; + } else if(((!(a2==1)||(!(a14==1)&&(!(a6==1)||(!(a20==1)&&((a16==11)&&((a26==1)||(a2==1)))))))&&(!(a14==1)&&(((a13==1)&&((a19==4)&&((a21==10)&&((a1==12)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==5))))))&&(a17==2))))){ + if((a15==1)){ + a6 = 0; + a5 = 4; + a15 = 0; + a9 = 11; + a19 = 2; + a26 = 1; + }else{ + a1 = 14; + a19 = 1; + a12 = 0; + a5 = 4; + a16 = 7; + a9 = 8; + a20 = 1; + a18 = 1; + a0 = 1; + } + return 26; + } else if((((((a24==1)||(!(a2==1)||(((((a2==1)&&(a21==10))||(a14==1))&&(a2==1))&&(a1==12))))&&(a16==7))||!(a28==1))&&(((a19==3)&&((a20==1)&&((a11==1)&&((a9==10)&&((input==5)&&((a5==5)||(a5==6)))))))&&(a17==2)))){ + a6 = 1; + a19 = 4; + a1 = 14; + a16 = 8; + a20 = 0; + a7 = 0; + a28 = 1; + a9 = 9; + a5 = 4; + return 21; + } else if((((a9==8)&&(((a19==1)&&((input==1)&&(a1==13)))&&(a20==1)))&&((a17==2)&&(((((!(a12==1)||((a21==11)&&((((a16==11)&&(a13==1))||(a27==1))||!(a11==1))))||!(a3==1))&&(a5==5))&&!(a24==1))||(a14==1))))){ + a6 = 1; + a5 = 4; + a28 = 1; + a1 = 12; + a21 = 10; + a9 = 7; + a16 = 7; + a26 = 0; + return -1; + } else if((((a1==13)&&(((((a20==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a16==11)))&&(a19==1))&&(a21==10))&&(a13==1)))&&((!(a28==1)||((a11==1)&&((a17==2)&&(((!(a2==1)||(a3==1))&&(a9==11))&&(a11==1)))))||(a7==1)))){ + a11 = 1; + a1 = 12; + a16 = 7; + a9 = 7; + a7 = 0; + a5 = 4; + a27 = 0; + return -1; + } else if((((a19==3)&&((!(a14==1)&&((((((input==1)&&(a17==2))&&(a20==1))&&(a2==1))&&(a3==1))&&(a5==6)))&&(a16==9)))&&((a9==9)&&(((a1==13)&&(!(a2==1)||((a21==11)&&((a12==1)&&!(a0==1)))))||!(a23==1))))){ + a18 = 0; + a9 = 7; + a5 = 5; + a19 = 2; + a2 = 1; + a13 = 1; + a21 = 12; + a1 = 12; + return 21; + } else if((((a1==12)&&(((a9==7)&&(!(a4==1)&&((a11==1)&&(((a5==5)||(a5==6))&&(input==4)))))&&(a21==12)))&&((a16==8)&&(((a19==1)&&((!(a8==1)&&(((a11==1)&&((a12==1)&&(a17==2)))||!(a28==1)))&&(a11==1)))&&!(a20==1))))){ + a15 = 0; + a0 = 1; + a8 = 1; + a16 = 9; + a1 = 14; + a19 = 4; + a5 = 4; + a21 = 11; + return 23; + } else if((((((((((a5==5)||(a5==6))&&(input==5))&&!(a4==1))&&(a3==1))&&(a13==1))&&(a19==2))&&(a1==12))&&((a17==2)&&(((a9==10)&&((a21==12)&&(((!(a8==1)&&((a28==1)&&(a12==1)))&&!(a4==1))&&!(a20==1))))&&(a16==10))))){ + if((a17==2)){ + a2 = 0; + a20 = 1; + a16 = 8; + a19 = 4; + a5 = 6; + a7 = 1; + a29 = 1; + a9 = 8; + }else{ + a1 = 14; + a16 = 8; + a0 = 1; + a19 = 3; + a7 = 1; + a5 = 6; + a29 = 1; + a9 = 7; + } + return -1; + } else if(((!(a26==1)&&((((!(a20==1)&&(((a5==5)||(a5==6))&&(input==3)))&&(a19==1))&&(a21==10))&&(a17==2)))&&((((a16==9)&&(!(a28==1)||((!(a8==1)&&((a3==1)&&((a6==1)||!(a13==1))))&&(a1==13))))&&(a11==1))&&(a9==7)))){ + a25 = 1; + a19 = 3; + a16 = 10; + a20 = 1; + a5 = 4; + a26 = 1; + a9 = 10; + a1 = 12; + a10 = 0; + return 21; + } else if(((((a3==1)&&((a28==1)&&((a20==1)&&(((a12==1)&&(a16==7))&&!(a14==1)))))&&(a19==5))&&(((a28==1)&&(((a13==1)&&((((a21==12)&&(((a5==5)||(a5==6))&&(input==1)))&&(a9==8))&&(a17==2)))&&(a1==12)))&&(a11==1)))){ + a12 = 1; + a5 = 4; + a6 = 1; + a18 = 0; + a21 = 10; + a9 = 7; + a19 = 1; + return -1; + } else if((((!(a23==1)||((((!(a14==1)&&(a3==1))&&(a19==2))&&!(a0==1))&&(a6==1)))&&(a21==10))&&((a17==2)&&(((((!(a8==1)&&((input==5)&&(((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))))&&(a1==12))&&(a13==1))&&(a16==11))&&(a20==1))))){ + a5 = 6; + a1 = 13; + a21 = 11; + a9 = 8; + a26 = 0; + a4 = 0; + return 26; + } else if((((((a19==1)&&(!(a11==1)||((a6==1)||(a0==1))))&&(a17==2))&&(a20==1))&&(((a3==1)&&((a2==1)&&(!(a26==1)&&(((a16==7)&&(((((a5==6)&&(a1==12))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==13))))&&(input==4)))&&!(a4==1)))))&&(a21==12)))){ + a8 = 0; + a1 = 12; + a18 = 0; + a9 = 8; + a16 = 8; + a11 = 1; + a5 = 6; + a19 = 5; + return 23; + } else if(((((a23==1)&&((a17==2)&&(((a21==11)&&((input==3)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))&&(a19==3))))&&!(a8==1))&&(((a3==1)&&(((a16==8)&&((a1==13)&&(!(a2==1)||(!(a20==1)&&(a23==1)))))&&!(a27==1)))&&(a2==1)))){ + a16 = 7; + a7 = 0; + a9 = 7; + a21 = 10; + a1 = 12; + a20 = 1; + a19 = 1; + a5 = 4; + a27 = 0; + a8 = 0; + return -1; + } else if(((!(a14==1)&&((!(a8==1)&&((a16==8)&&((a5==5)&&((a17==2)&&(input==1)))))&&(a19==5)))&&((((a13==1)&&(((a1==13)&&(((a2==1)&&((a21==10)&&(a23==1)))&&!(a20==1)))&&(a9==9)))&&(a3==1))&&(a6==1)))){ + a1 = 12; + a19 = 3; + a16 = 7; + a9 = 10; + a6 = 1; + a20 = 1; + a5 = 4; + a27 = 0; + return -1; + } else if(((((((!(a20==1)&&(!(a24==1)&&(a2==1)))&&(a9==8))&&!(a24==1))||!(a28==1))&&(a6==1))&&((a19==2)&&((a1==13)&&((a6==1)&&((a21==10)&&(!(a8==1)&&((((a17==2)&&(input==3))&&(a5==6))&&(a16==10))))))))){ + if((a25==1)){ + a9 = 10; + a15 = 0; + a20 = 1; + a1 = 14; + a16 = 7; + a25 = 1; + a22 = 1; + a19 = 1; + a5 = 5; + }else{ + a19 = 3; + a9 = 9; + a1 = 14; + a21 = 11; + a20 = 1; + a18 = 1; + a6 = 0; + a5 = 4; + a28 = 0; + } + return 26; + } else if((((a23==1)&&((a13==1)&&(((a1==13)&&((a3==1)&&((input==6)&&((a5==5)||(a5==6)))))&&(a16==9))))&&((a9==10)&&((a18==1)||((!(a20==1)&&((a17==2)&&((((a11==1)&&(a19==2))||!(a11==1))&&!(a24==1))))&&(a21==12)))))){ + if((a15==1)){ + a1 = 12; + a12 = 0; + a9 = 8; + a21 = 10; + a19 = 1; + a22 = 0; + a5 = 6; + a16 = 8; + }else{ + a19 = 1; + a15 = 0; + a5 = 6; + a20 = 1; + a16 = 7; + a21 = 10; + a9 = 8; + a23 = 0; + } + return -1; + } else if(((((a11==1)&&((((a19==1)&&(((input==5)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(a12==1)))&&(a21==12))&&(a17==2)))&&(a23==1))&&((a2==1)&&((((!(a20==1)&&((a1==14)&&(a12==1)))&&(a16==8))&&!(a26==1))&&(a13==1))))){ + if((a12==1)){ + a26 = 1; + a7 = 1; + a19 = 3; + a5 = 4; + a9 = 9; + a8 = 1; + a1 = 13; + a16 = 9; + a20 = 1; + }else{ + a19 = 5; + a23 = 0; + a25 = 0; + a1 = 13; + a9 = 8; + a29 = 1; + a21 = 11; + a16 = 9; + a5 = 5; + } + return -1; + } else if(((!(a12==1)||((a19==5)&&((a16==7)&&((a21==10)&&((!(a12==1)||(!(a8==1)&&((a13==1)&&(a20==1))))||(a0==1))))))&&(((a5==4)&&(((a2==1)&&((a3==1)&&((input==5)&&(a1==13))))&&(a9==7)))&&(a17==2)))){ + a21 = 12; + a0 = 0; + a23 = 1; + a19 = 2; + a5 = 6; + a1 = 14; + a28 = 1; + a9 = 9; + return 22; + } else if((((((a21==12)&&((a16==10)&&(!(a26==1)&&(((input==3)&&(((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))&&(a3==1)))))&&!(a24==1))&&(a17==2))&&(((((!(a3==1)||((a1==13)&&(a6==1)))&&(a13==1))||!(a23==1))&&(a20==1))&&(a19==3)))){ + a19 = 1; + a5 = 4; + a16 = 7; + a1 = 12; + a21 = 10; + a13 = 1; + a18 = 0; + a0 = 0; + a9 = 7; + return -1; + } else if(((((a17==2)&&((a20==1)&&((a13==1)&&(((a16==7)&&(((input==4)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&(a6==1)))&&(a21==11)))))&&(a1==14))&&((((((a12==1)&&(a2==1))||(a4==1))&&!(a0==1))&&(a19==2))&&!(a0==1)))){ + a1 = 12; + a7 = 0; + a5 = 4; + a19 = 1; + a14 = 0; + a9 = 7; + a12 = 1; + a21 = 10; + return -1; + } else if((((!(a0==1)&&((a21==10)&&((a19==3)&&((a17==2)&&(!(a18==1)&&(a3==1))))))&&(a13==1))&&(((a9==10)&&(((!(a8==1)&&((a13==1)&&(((input==3)&&((a5==5)||(a5==6)))&&!(a20==1))))&&(a16==8))&&(a1==13)))&&!(a0==1)))){ + a19 = 2; + a20 = 1; + a26 = 0; + a28 = 1; + a21 = 12; + a24 = 0; + a9 = 11; + a1 = 14; + a5 = 4; + return 22; + } else if((((a5==6)&&((a19==3)&&(!(a6==1)&&((((a2==1)&&(a9==7))&&!(a12==1))&&!(a6==1)))))&&((a16==8)&&((a21==12)&&(((a14==1)&&((a17==2)&&((a1==14)&&(((a20==1)&&(input==5))&&(a14==1)))))&&(a4==1)))))){ + a16 = 7; + a9 = 9; + a1 = 12; + a6 = 0; + a27 = 1; + a28 = 0; + a21 = 10; + a19 = 2; + a5 = 4; + return -1; + } else if((((((a3==1)&&(!(a24==1)&&((!(a8==1)&&(((a16==10)&&((input==6)&&(a9==10)))&&!(a20==1)))&&(a5==5))))&&(a11==1))&&(a23==1))&&((a17==2)&&(((((a13==1)&&(a19==2))&&(a21==10))||!(a2==1))&&(a1==12))))){ + a9 = 8; + a5 = 6; + a20 = 1; + a16 = 7; + a19 = 1; + a2 = 0; + a25 = 1; + a10 = 0; + return -1; + } else if(((((a16==10)&&((a13==1)&&(((a9==10)&&(a12==1))||!(a6==1))))&&(a12==1))&&((!(a20==1)&&(((a21==12)&&((!(a27==1)&&((((input==3)&&(a17==2))&&(a5==4))&&!(a8==1)))&&(a1==13)))&&(a19==2)))&&!(a24==1)))){ + a5 = 5; + a22 = 1; + a21 = 11; + a9 = 8; + a29 = 0; + a1 = 14; + a25 = 1; + a16 = 11; + a20 = 1; + return -1; + } else if(((!(a0==1)&&(!(a24==1)&&((a13==1)&&(a6==1))))&&((a1==12)&&((((((a19==1)&&((a17==2)&&(((((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&(a9==8))&&(a6==1))&&(a21==12))))&&(a16==10))&&(a13==1))&&!(a24==1))&&(a20==1))))){ + a21 = 10; + a28 = 1; + a19 = 5; + a20 = 0; + a5 = 5; + a16 = 8; + a9 = 11; + a14 = 0; + return 21; + } else if((((a24==1)&&(((a21==11)&&((a5==4)&&((((input==6)&&(a9==7))&&!(a2==1))&&(a0==1))))&&(a16==8)))&&(!(a2==1)&&(!(a6==1)&&((a4==1)&&((a1==14)&&((a19==5)&&(((a11==1)&&(a17==2))&&(a20==1))))))))){ + a28 = 0; + a9 = 8; + a24 = 1; + a15 = 1; + a19 = 1; + a16 = 7; + a5 = 6; + a21 = 10; + return 21; + } else if((((!(a27==1)&&(((a1==14)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==4)))&&(a28==1)))&&!(a24==1))&&((!(a23==1)||((!(a4==1)&&((a16==10)&&((a21==10)&&((a17==2)&&((a3==1)&&!(a20==1))))))&&(a19==5)))&&!(a27==1)))){ + a20 = 1; + a11 = 0; + a7 = 1; + a9 = 10; + a1 = 13; + a12 = 0; + a5 = 5; + a19 = 2; + return -1; + } else if((((a0==1)||((a13==1)&&((a1==13)&&((a16==7)&&((a17==2)&&((a21==12)&&(a11==1)))))))&&(((a11==1)&&((a13==1)&&((a9==8)&&(((a19==4)&&((((a5==4)||(a5==5))&&(input==4))&&!(a20==1)))&&!(a18==1)))))&&!(a0==1)))){ + a7 = 0; + a27 = 0; + a9 = 7; + a5 = 4; + a1 = 12; + a23 = 1; + a19 = 1; + a21 = 10; + a20 = 1; + return -1; + } else if((((a17==2)&&((a16==7)&&((((((a28==1)||!(a6==1))&&(a28==1))||!(a28==1))&&(a1==12))&&(a11==1))))&&((!(a0==1)&&(((a19==1)&&(((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==6))&&(a6==1)))&&!(a20==1)))&&(a21==11)))){ + a20 = 1; + a5 = 4; + a12 = 1; + a0 = 0; + a9 = 7; + a13 = 1; + a21 = 10; + return -1; + } else if(((((((a19==4)&&((a21==12)&&((a16==10)&&((input==1)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))))&&!(a24==1))&&(a11==1))&&(a2==1))&&(((!(a23==1)||((((a1==12)&&(a13==1))&&(a17==2))&&!(a20==1)))||!(a28==1))&&!(a26==1)))){ + a3 = 0; + a5 = 4; + a19 = 2; + a16 = 9; + a14 = 1; + a9 = 7; + a20 = 1; + a1 = 14; + a22 = 1; + return 25; + } else if((((a16==7)&&((a1==13)&&((a17==2)&&(((a20==1)&&(a12==1))&&(a19==4)))))&&(((a13==1)&&((a3==1)&&((!(a8==1)&&((a21==11)&&(((input==5)&&(((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))&&!(a18==1))))&&(a13==1))))&&(a2==1)))){ + a1 = 12; + a19 = 1; + a23 = 1; + a5 = 4; + a13 = 1; + a6 = 1; + a9 = 7; + a21 = 10; + return -1; + } else if((((a19==3)&&((a2==1)&&((a9==9)&&((a26==1)||((a16==9)&&((a1==12)&&(a3==1)))))))&&((a17==2)&&((a21==10)&&(!(a20==1)&&((!(a0==1)&&((!(a14==1)&&((input==1)&&(a5==5)))&&(a23==1)))&&(a28==1))))))){ + a19 = 2; + a18 = 1; + a16 = 7; + a20 = 1; + a24 = 1; + a10 = 1; + return 23; + } else if(((((a5==4)&&((a0==1)||((a19==4)&&((!(a12==1)||(a2==1))&&(a23==1)))))&&!(a24==1))&&((a16==11)&&(((!(a8==1)&&(!(a0==1)&&((a21==10)&&((a20==1)&&((a9==11)&&(input==3))))))&&(a1==13))&&(a17==2))))){ + a16 = 7; + a4 = 0; + a9 = 7; + a28 = 1; + a19 = 1; + a1 = 12; + a24 = 0; + return -1; + } else if((((((a12==1)&&((a11==1)&&(!(a26==1)&&(((a5==5)&&(((input==3)&&(a17==2))&&(a20==1)))&&(a28==1)))))&&(a23==1))&&(a11==1))&&((a1==13)&&((a9==11)&&((a19==5)&&(((a16==10)&&(a11==1))&&(a21==10))))))){ + a0 = 0; + a5 = 4; + a1 = 12; + a9 = 7; + a23 = 1; + a13 = 1; + a19 = 1; + a16 = 7; + return -1; + } else if(((!(a8==1)&&(!(a26==1)&&((((a16==8)&&(((a21==12)&&((a28==1)&&((a9==8)&&(((a5==5)||(a5==6))&&(input==1)))))&&(a1==13)))&&(a19==2))&&(a20==1))))&&(!(a3==1)||(((a17==2)&&((a11==1)&&!(a26==1)))&&(a3==1))))){ + a16 = 7; + a9 = 10; + a1 = 14; + a4 = 0; + a21 = 10; + a23 = 1; + a5 = 4; + a7 = 0; + return 21; + } else if(((((!(a8==1)&&((a17==2)&&(((((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4)))&&(input==3))&&(a19==5))&&(a13==1))))&&(a23==1))&&(a1==12))&&((a16==9)&&(((a20==1)&&((a23==1)&&(((a23==1)&&(a21==11))||!(a13==1))))&&(a23==1))))){ + a9 = 10; + a1 = 14; + a3 = 1; + a21 = 10; + a14 = 0; + a19 = 2; + a5 = 5; + a23 = 1; + return 21; + } else if((((a16==7)&&((((a28==1)&&((((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==1))&&(a13==1))&&(a20==1)))&&(a17==2))&&(a1==13)))&&((((((a4==1)||((a0==1)||(a2==1)))||!(a11==1))||(a14==1))&&(a21==12))&&(a19==3)))){ + a16 = 9; + a9 = 8; + a21 = 10; + a5 = 6; + a3 = 1; + a19 = 5; + a6 = 1; + return 21; + } else if((((a17==2)&&((a19==3)&&(!(a26==1)&&(((a9==9)&&((a5==6)&&((a20==1)&&(input==6))))&&(a21==12)))))&&((!(a4==1)&&((a28==1)&&((a16==8)&&((((a23==1)&&(a11==1))&&(a13==1))&&!(a24==1)))))&&(a1==13)))){ + a26 = 0; + a16 = 10; + a5 = 4; + a6 = 1; + a19 = 2; + a1 = 14; + a11 = 1; + return 25; + } else if(((((a17==2)&&((((a16==9)&&((a19==5)&&(((a21==11)&&(input==5))&&(a6==1))))&&(a5==5))&&(a2==1)))&&!(a7==1))&&(!(a27==1)&&(((a18==1)||((!(a20==1)&&((a9==9)&&(a6==1)))||(a18==1)))&&(a1==13))))){ + a20 = 1; + a23 = 0; + a15 = 1; + a1 = 12; + a19 = 2; + a21 = 10; + a6 = 0; + a16 = 7; + a5 = 4; + return -1; + } else if((((((((a18==1)||((((a9==9)&&(a2==1))&&(a19==2))&&!(a0==1)))&&(a1==12))&&(a20==1))&&(a12==1))&&(a17==2))&&((((a23==1)&&(((a5==5)&&((a16==11)&&(input==5)))&&(a21==10)))&&!(a26==1))&&!(a7==1)))){ + a0 = 0; + a9 = 10; + a3 = 1; + a26 = 0; + a16 = 8; + a20 = 0; + a5 = 6; + a1 = 14; + return 21; + } else if((((!(a14==1)&&(((((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8)))&&(input==4))&&(a17==2))&&(a16==11)))&&!(a24==1))&&(((a19==1)&&(!(a6==1)||(((a20==1)&&((((a3==1)&&(a21==11))&&!(a27==1))&&!(a8==1)))&&!(a8==1))))&&(a1==13)))){ + a24 = 0; + a21 = 10; + a14 = 0; + a1 = 12; + a9 = 7; + a16 = 7; + a18 = 0; + a5 = 4; + return -1; + } else if((((((((((a1==13)&&(a28==1))&&(a16==9))&&(a11==1))||!(a3==1))||(a27==1))&&(a23==1))&&(a19==1))&&((a5==6)&&((a9==9)&&(((a17==2)&&((a28==1)&&(!(a4==1)&&((input==5)&&!(a20==1)))))&&(a21==12)))))){ + if((a6==1)){ + a19 = 2; + a11 = 0; + a9 = 10; + a25 = 1; + a1 = 12; + a16 = 7; + a4 = 1; + a20 = 1; + a5 = 4; + a21 = 10; + }else{ + a20 = 1; + a5 = 5; + a10 = 1; + a16 = 7; + a3 = 0; + a21 = 10; + a18 = 1; + a19 = 2; + a1 = 12; + a9 = 8; + } + return -1; + } else if((((a1==14)&&(!(a6==1)||((a19==4)&&((((((a12==1)&&(a16==10))&&(a9==8))&&!(a14==1))||(a26==1))&&(a20==1)))))&&(!(a8==1)&&((a2==1)&&(((a21==11)&&(((input==6)&&((a5==4)||(a5==5)))&&!(a14==1)))&&(a17==2)))))){ + a21 = 12; + a12 = 1; + a16 = 8; + a1 = 13; + a19 = 5; + a23 = 1; + a28 = 1; + a5 = 4; + a9 = 10; + return 26; + } else if((((a1==13)&&(((((a12==1)||!(a2==1))&&(a16==7))||(a27==1))||!(a12==1)))&&(((((!(a20==1)&&(!(a4==1)&&(!(a7==1)&&(((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&(a13==1)))))&&(a9==7))&&(a17==2))&&(a21==12))&&(a19==4)))){ + a16 = 8; + a20 = 1; + a5 = 6; + a1 = 14; + a14 = 0; + a21 = 11; + a19 = 2; + a9 = 10; + a28 = 1; + return 21; + } else if((((a1==14)&&(((((a7==1)&&(((a12==1)&&(a19==2))&&(a20==1)))&&!(a11==1))&&!(a28==1))&&(a21==11)))&&((a14==1)&&(((a9==8)&&(((((a16==10)&&(input==5))&&(a26==1))&&(a8==1))&&(a17==2)))&&(a5==6))))){ + a29 = 0; + a19 = 5; + a9 = 11; + a12 = 0; + a5 = 4; + a21 = 10; + a16 = 9; + a1 = 12; + a28 = 0; + return -1; + } else if(((((a11==1)&&((((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==6))&&(a19==4))&&!(a20==1)))&&!(a18==1))&&(((a14==1)||(((a1==14)&&(((((a13==1)&&(a17==2))&&!(a4==1))&&!(a18==1))&&(a16==9)))&&(a21==10)))&&(a12==1)))){ + a29 = 0; + a5 = 4; + a1 = 12; + a0 = 1; + a21 = 11; + a9 = 9; + a25 = 0; + return -1; + } else if(((((a18==1)||((((a19==2)&&((a27==1)||((a16==7)&&(((a1==12)&&(a3==1))&&!(a20==1)))))||!(a2==1))||!(a28==1)))&&(a13==1))&&(!(a24==1)&&((a21==10)&&((a17==2)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==5))))))){ + a5 = 5; + a27 = 0; + a1 = 13; + a9 = 11; + a2 = 1; + return 25; + } else if((((((((a14==1)||(((a19==3)&&((a1==13)&&(a13==1)))&&(a16==8)))&&(a17==2))&&(a12==1))&&(a21==12))&&!(a7==1))&&((a6==1)&&((!(a20==1)&&((((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&!(a27==1))&&(a9==11)))&&(a28==1))))){ + a6 = 0; + a5 = 4; + a13 = 0; + a12 = 0; + a21 = 10; + a20 = 1; + a16 = 7; + a19 = 1; + a9 = 10; + return 25; + } else if((((((a9==11)&&((!(a26==1)&&((a2==1)&&(((a11==1)&&((input==4)&&(a5==4)))&&(a1==13))))&&(a21==10)))&&(a16==9))&&!(a20==1))&&(((a17==2)&&((((a11==1)&&(a28==1))&&(a13==1))&&(a28==1)))&&(a19==5)))){ + if((a28==1)){ + a1 = 12; + a16 = 7; + a19 = 2; + a10 = 1; + a14 = 1; + a6 = 0; + a9 = 7; + a20 = 1; + }else{ + a6 = 0; + a27 = 1; + a16 = 7; + a20 = 1; + a19 = 2; + a9 = 7; + a25 = 0; + } + return 21; + } else if((((((a23==1)&&((((a5==4)&&(!(a20==1)&&(((a9==11)&&((a1==13)&&(input==1)))&&(a16==7))))&&(a19==5))&&!(a14==1)))&&(a17==2))&&!(a18==1))&&((a8==1)||((a21==10)&&((a8==1)||((a3==1)&&(a11==1))))))){ + a7 = 0; + a11 = 1; + a19 = 1; + a9 = 7; + a20 = 1; + a1 = 12; + a24 = 0; + return -1; + } else if(((((((a28==1)&&(a19==5))||(a24==1))&&(a16==10))||!(a2==1))&&(((!(a18==1)&&(((((a28==1)&&((((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))&&(input==3))&&(a17==2)))&&(a21==10))&&!(a8==1))&&(a20==1)))&&(a1==14))&&!(a24==1)))){ + a1 = 12; + a19 = 1; + a9 = 7; + a13 = 1; + a5 = 4; + a16 = 7; + a26 = 0; + return -1; + } else if((((((a13==1)&&(a2==1))&&(a20==1))||!(a11==1))&&((((a13==1)&&(!(a8==1)&&((a16==7)&&((a17==2)&&((input==1)&&(((a21==12)&&(((a9==7)&&((a1==12)&&(a5==5)))&&(a19==1)))||(((a21==11)&&((a19==5)&&(((a5==6)&&(a1==14))&&(a9==11))))||((a21==12)&&(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==1))))))))))&&(a3==1))&&(a3==1)))){ + if((a21==12)){ + a24 = 0; + a16 = 8; + a9 = 11; + a1 = 12; + a13 = 1; + a5 = 6; + a20 = 0; + a19 = 1; + a21 = 11; + a4 = 0; + }else{ + a26 = 0; + a24 = 0; + a9 = 7; + a19 = 4; + a5 = 6; + a16 = 8; + a21 = 12; + a8 = 0; + a1 = 12; + } + return 26; + } else if(((((!(a20==1)&&(!(a24==1)&&(a23==1)))&&(a21==11))&&(a13==1))&&(((!(a7==1)&&(!(a14==1)&&((!(a24==1)&&((((a16==8)&&(((a5==5)||(a5==6))&&(input==1)))&&(a19==1))&&(a1==12)))&&(a9==11))))&&(a17==2))&&!(a27==1)))){ + a21 = 12; + a18 = 0; + a20 = 1; + a19 = 3; + a5 = 4; + a11 = 1; + a9 = 7; + a24 = 0; + a16 = 10; + a1 = 13; + return 25; + } else if((((a5==6)&&((a21==12)&&((a6==1)&&(((a16==11)&&(input==6))&&!(a0==1)))))&&((((a8==1)||((a19==1)&&((a20==1)&&((a9==9)&&((a1==12)&&((a17==2)&&(!(a3==1)||(a3==1))))))))||!(a2==1))&&(a12==1)))){ + a11 = 1; + a1 = 13; + a19 = 3; + a3 = 1; + a9 = 11; + return 23; + } else if(((((a5==4)&&(((a17==2)&&(((!(a20==1)&&(a12==1))&&(a23==1))||(a4==1)))||!(a3==1)))&&(a19==1))&&((((((((a16==8)&&(input==5))&&(a9==7))&&(a23==1))&&(a12==1))&&(a21==12))&&!(a26==1))&&(a1==12)))){ + if((a11==1)){ + a16 = 7; + a21 = 10; + a3 = 0; + a1 = 14; + a5 = 5; + a9 = 11; + a20 = 1; + a10 = 0; + }else{ + a28 = 0; + a21 = 10; + a29 = 1; + a16 = 9; + a5 = 6; + a1 = 13; + a10 = 0; + } + return -1; + } else if((((((a1==12)&&((!(a20==1)&&((a28==1)&&(a5==6)))||!(a3==1)))&&(a16==9))||!(a28==1))&&((a21==11)&&(!(a4==1)&&(((a9==9)&&((!(a7==1)&&(!(a8==1)&&((input==6)&&(a17==2))))&&(a19==5)))&&(a6==1)))))){ + a1 = 14; + a16 = 10; + a5 = 5; + a21 = 10; + a26 = 1; + a7 = 1; + return -1; + } else if(((((a16==9)&&((a1==12)&&((!(a18==1)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&!(a14==1))&&(a23==1)))&&(a13==1))))&&!(a20==1))&&((!(a23==1)||((a21==11)&&(((a19==5)&&((a3==1)&&(a17==2)))&&!(a24==1))))&&(a9==10)))){ + if((a8==1)){ + a5 = 6; + a21 = 10; + a16 = 11; + a26 = 1; + a28 = 0; + a9 = 9; + a19 = 2; + a25 = 1; + }else{ + a21 = 12; + a19 = 1; + a1 = 13; + a29 = 0; + a8 = 1; + a14 = 1; + a16 = 8; + a9 = 11; + a5 = 6; + } + return -1; + } else if((((a9==8)&&(((((((((a5==5)||(a5==6))&&(input==1))&&(a12==1))&&(a13==1))&&(a12==1))&&(a16==9))&&(a17==2))&&(a19==4)))&&((!(a11==1)||((((a21==12)&&((a13==1)&&(a11==1)))&&(a1==14))&&(a20==1)))||!(a2==1)))){ + a21 = 10; + a6 = 1; + a9 = 10; + a27 = 0; + a20 = 0; + a5 = 4; + a16 = 8; + return 21; + } else if((((a17==2)&&((((a28==1)&&(a20==1))||(a26==1))||!(a28==1)))&&((((a12==1)&&(((!(a27==1)&&((((a19==2)&&(((a1==14)&&(a5==6))&&(a9==11)))||(((a9==7)&&((a1==12)&&(a5==4)))&&(a19==3)))&&(input==1)))&&(a21==12))&&(a16==7)))&&!(a24==1))&&!(a8==1)))){ + a19 = 4; + a3 = 1; + a1 = 13; + a16 = 9; + a9 = 8; + a5 = 6; + a0 = 0; + a21 = 10; + a11 = 1; + return 23; + } else if(((((a21==10)&&((((((((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10))))&&(input==3))&&(a17==2))&&(a12==1))&&!(a4==1))&&(a13==1)))&&!(a20==1))&&(((a1==14)&&((!(a4==1)&&((!(a0==1)&&(a3==1))&&(a19==4)))&&(a16==7)))||(a24==1)))){ + a1 = 12; + a5 = 4; + a23 = 1; + a19 = 1; + a20 = 1; + a3 = 1; + a9 = 7; + return -1; + } else if((((a4==1)||(((((a19==2)&&((a11==1)&&((a6==1)&&(a17==2))))&&(a9==9))&&(a20==1))&&!(a27==1)))&&(((a21==10)&&(((a16==10)&&((!(a26==1)&&((input==3)&&((a5==5)||(a5==6))))&&!(a24==1)))&&(a6==1)))&&(a1==13)))){ + a5 = 6; + a16 = 9; + a8 = 0; + a0 = 0; + a6 = 1; + a19 = 1; + a9 = 8; + return -1; + } else if((((a20==1)&&(((a17==2)&&((a19==5)&&(((((input==5)&&(((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))))&&(a21==11))&&(a11==1))&&(a1==13))))&&(a16==10)))&&(!(a7==1)&&(!(a14==1)&&(!(a0==1)&&(((a2==1)&&(a28==1))||!(a28==1))))))){ + a16 = 7; + a19 = 1; + a5 = 4; + a24 = 0; + a21 = 10; + a8 = 0; + a1 = 12; + a14 = 0; + a9 = 7; + return -1; + } else if(((((a17==2)&&(!(a24==1)&&((((((input==3)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&(a2==1))&&(a21==11))&&!(a7==1))&&(a16==10))))&&(a19==3))&&(!(a18==1)&&((a11==1)&&(!(a2==1)||(((a20==1)&&(a6==1))&&(a1==12))))))){ + a19 = 1; + a16 = 7; + a13 = 1; + a28 = 1; + a21 = 10; + a5 = 4; + a2 = 1; + a9 = 7; + return -1; + } else if(((!(a11==1)||((a13==1)&&(((((a6==1)&&(a21==10))&&(a20==1))||!(a12==1))&&(a16==9))))&&((a9==10)&&(!(a14==1)&&((a17==2)&&(((a12==1)&&((((a5==5)&&(input==3))&&!(a14==1))&&(a19==2)))&&(a1==13))))))){ + a1 = 12; + a9 = 7; + a16 = 7; + a23 = 1; + a12 = 1; + a19 = 1; + a5 = 4; + return -1; + } else if((((!(a8==1)&&((((a9==9)&&((!(a2==1)||((a4==1)||(a28==1)))&&(a21==12)))&&(a16==8))||(a0==1)))&&(a23==1))&&(!(a20==1)&&(((((((a5==4)||(a5==5))&&(input==5))&&(a17==2))&&(a1==12))&&(a2==1))&&(a19==3))))){ + a29 = 0; + a28 = 0; + a5 = 6; + a16 = 7; + a21 = 10; + a1 = 14; + a19 = 1; + a20 = 1; + return -1; + } else if(((((((a11==1)&&(((a21==11)&&((a20==1)&&((input==5)&&(((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))))))&&(a1==14)))&&(a16==11))&&!(a0==1))&&!(a26==1))&&((((((a3==1)&&(a2==1))&&(a2==1))&&(a19==3))&&(a17==2))&&!(a26==1)))){ + a14 = 0; + a1 = 12; + a19 = 1; + a21 = 10; + a16 = 7; + a9 = 7; + a5 = 4; + a24 = 0; + a18 = 0; + return -1; + } else if((((a17==2)&&(((a19==1)&&(((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))&&(input==5)))&&(a16==11)))&&((!(a28==1)||((a2==1)&&((((a1==14)&&((a28==1)&&((a8==1)||((a21==12)&&(a12==1)))))&&(a20==1))||!(a3==1))))&&(a11==1)))){ + a5 = 5; + a19 = 4; + a9 = 9; + a11 = 1; + a3 = 1; + a1 = 12; + a23 = 1; + return 23; + } else if(((((((a27==1)||((((!(a6==1)||(a11==1))||!(a11==1))&&(a16==8))&&(a21==10)))&&!(a14==1))&&(a1==12))&&!(a20==1))&&(((a19==5)&&((a17==2)&&(!(a26==1)&&(((a9==7)&&(input==6))&&!(a8==1)))))&&(a5==5)))){ + a18 = 0; + a19 = 1; + a5 = 4; + a16 = 7; + a20 = 1; + a23 = 1; + a14 = 0; + return -1; + } else if((((((a9==7)&&((!(a0==1)&&(a11==1))&&!(a20==1)))&&!(a18==1))&&(a17==2))&&(!(a7==1)&&(((a21==10)&&(((a19==4)&&((a3==1)&&((((a1==13)&&(input==4))&&(a12==1))&&(a3==1))))&&(a16==11)))&&(a5==5))))){ + if((a28==1)){ + a6 = 0; + a20 = 1; + a1 = 12; + a21 = 12; + a5 = 4; + a7 = 1; + a16 = 7; + }else{ + a1 = 14; + a5 = 4; + a23 = 0; + a9 = 9; + a20 = 1; + a16 = 7; + a25 = 0; + a15 = 0; + a19 = 1; + } + return -1; + } else if((((a17==2)&&((!(a20==1)&&(((a23==1)&&(((((((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&!(a4==1))&&(a23==1))&&!(a0==1))&&(a16==7))&&!(a7==1)))&&(a21==11)))&&(a9==8)))&&(((a19==3)&&((a2==1)&&(a3==1)))&&(a1==12)))){ + a20 = 1; + a11 = 1; + a21 = 10; + a9 = 7; + a19 = 1; + a4 = 0; + a5 = 4; + return -1; + } else if((((((!(a27==1)&&((a16==10)&&((a28==1)&&((a17==2)&&((input==5)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11))))))))&&(a11==1))&&(a21==12))&&(a1==14))&&((((!(a4==1)&&((a3==1)&&(a6==1)))||!(a3==1))&&!(a20==1))&&(a19==4)))){ + if((a14==1)){ + a16 = 7; + a1 = 13; + a5 = 4; + a24 = 1; + a20 = 1; + a9 = 7; + a0 = 1; + a2 = 0; + a19 = 2; + a21 = 10; + }else{ + a16 = 7; + a14 = 1; + a21 = 10; + a18 = 1; + a19 = 1; + a5 = 6; + a9 = 9; + a20 = 1; + a1 = 13; + a13 = 0; + } + return 21; + } else if((((((a9==7)&&(((((a19==4)&&((a3==1)&&((a3==1)||(a4==1))))&&(a1==14))&&(a16==11))&&(a21==10)))&&(a17==2))||!(a3==1))&&(!(a24==1)&&(((a20==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&!(a24==1)))&&(a6==1))))){ + a21 = 11; + a26 = 0; + a11 = 1; + a2 = 1; + a5 = 5; + a1 = 13; + return 26; + } else if((((a21==10)&&(((((((a3==1)&&((((a9==7)&&(input==1))&&(a23==1))&&!(a7==1)))&&!(a26==1))&&(a28==1))&&(a5==4))&&(a1==14))&&(a20==1)))&&((a19==2)&&(((a16==10)&&((a23==1)||!(a13==1)))&&(a17==2))))){ + a6 = 1; + a16 = 7; + a27 = 0; + a1 = 12; + a19 = 1; + a23 = 1; + return -1; + } else if(((((a12==1)&&((((((a12==1)&&(a17==2))&&(a21==11))&&!(a24==1))||(a18==1))||(a18==1)))&&!(a24==1))&&(((a16==10)&&(((((a19==4)&&(((a1==12)&&(a5==4))&&(a9==7)))||(((a19==3)&&((a9==11)&&((a5==5)&&(a1==14))))||((((a1==14)&&(a5==6))&&(a9==11))&&(a19==3))))&&(input==1))&&(a20==1)))&&!(a7==1)))){ + a27 = 0; + a18 = 0; + a9 = 9; + a1 = 14; + a19 = 2; + a0 = 0; + a5 = 4; + a21 = 10; + a16 = 7; + return 23; + } else if((((((a6==1)&&(((a1==13)&&((input==1)&&(a16==11)))&&(a9==7)))&&(a3==1))&&!(a26==1))&&(((a19==4)&&(((a5==6)&&((((a21==12)&&((a20==1)&&(a6==1)))&&(a11==1))||!(a13==1)))&&(a17==2)))||!(a13==1)))){ + a21 = 10; + a5 = 4; + a7 = 0; + a1 = 12; + a2 = 1; + a16 = 7; + a19 = 1; + a4 = 0; + return -1; + } else if(((((a11==1)&&((((a9==8)&&(!(a24==1)&&((input==3)&&(a17==2))))&&(a21==12))&&(a1==12)))&&(a28==1))&&((!(a27==1)&&(((a19==2)&&((a16==11)&&(((a3==1)&&(a5==4))&&!(a14==1))))||!(a2==1)))&&(a20==1)))){ + a23 = 1; + a9 = 7; + a19 = 1; + a21 = 10; + a27 = 0; + a12 = 1; + a16 = 7; + return -1; + } else if(((((a0==1)||(!(a20==1)&&(a6==1)))||(a0==1))&&(((a13==1)&&((!(a4==1)&&((a16==11)&&((a17==2)&&((a21==10)&&(((((a9==11)&&((a5==6)&&(a1==12)))||((a9==7)&&((a1==13)&&(a5==4))))&&(input==1))&&(a19==1))))))&&(a12==1)))&&(a2==1)))){ + a20 = 1; + a9 = 11; + a7 = 1; + a5 = 4; + a19 = 2; + a28 = 0; + a13 = 0; + a16 = 7; + a1 = 12; + return -1; + } else if(((!(a14==1)&&((((a1==14)&&((a13==1)&&((a16==8)&&(input==4))))&&(a20==1))&&(a28==1)))&&((((a19==3)&&(!(a2==1)||(((((a28==1)&&(a13==1))&&(a5==4))&&(a9==7))&&(a17==2))))&&(a28==1))&&(a21==10)))){ + a26 = 0; + a16 = 7; + a1 = 12; + a23 = 1; + a19 = 1; + a12 = 1; + return -1; + } else if(((((a17==2)&&(((input==1)&&((((a19==2)&&(((a1==14)&&(a5==5))&&(a9==11)))||(((a9==11)&&((a1==14)&&(a5==6)))&&(a19==2)))||(((a9==7)&&((a1==12)&&(a5==4)))&&(a19==3))))&&!(a20==1)))&&(a11==1))&&(((a6==1)&&(((a21==11)&&((a24==1)||((!(a27==1)&&(a11==1))&&(a16==10))))||(a26==1)))||(a4==1)))){ + a20 = 1; + a5 = 4; + a19 = 1; + a1 = 14; + a21 = 10; + a25 = 0; + a9 = 8; + a2 = 0; + a18 = 1; + a16 = 7; + return -1; + } else if((((a21==11)&&((a20==1)&&(((a17==2)&&(!(a13==1)||(!(a6==1)||(a11==1))))||(a27==1))))&&((a9==7)&&((a16==11)&&((((((a1==14)&&(((a5==4)||(a5==5))&&(input==6)))&&!(a26==1))&&(a19==5))&&(a11==1))&&!(a0==1)))))){ + a5 = 6; + a1 = 12; + a2 = 1; + a9 = 8; + a19 = 4; + a16 = 8; + a28 = 1; + a14 = 0; + return -1; + } else if((((((((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))&&(input==5))&&(a1==14))&&(a20==1))&&!(a26==1))&&!(a0==1))&&((!(a7==1)&&((a0==1)||((a16==10)&&(!(a7==1)&&((((a21==12)&&(a28==1))&&(a17==2))&&(a19==5))))))&&!(a4==1)))){ + a1 = 12; + a5 = 4; + a2 = 1; + a21 = 10; + a9 = 7; + a7 = 0; + a16 = 7; + a8 = 0; + a19 = 1; + return -1; + } else if(((((a3==1)&&(((a3==1)&&((a9==10)&&(!(a20==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))))&&(a19==2)))&&!(a8==1))&&(((a26==1)||((a17==2)&&((a1==12)&&((a21==10)&&(!(a3==1)||((a16==8)&&(a28==1)))))))&&!(a7==1)))){ + a24 = 0; + a21 = 12; + a1 = 13; + a5 = 6; + a0 = 0; + a19 = 5; + a20 = 1; + return 22; + } else if((((a21==10)&&((a17==2)&&((a2==1)&&((a6==1)&&((((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&(a13==1))&&(a16==10))))))&&((a1==13)&&((((a20==1)&&(((a23==1)&&((a24==1)||(a12==1)))&&(a9==11)))&&(a19==3))||(a8==1))))){ + if((a24==1)){ + a5 = 4; + a24 = 0; + a21 = 11; + a20 = 0; + a14 = 0; + a16 = 8; + a0 = 0; + a19 = 1; + }else{ + a21 = 12; + a19 = 5; + a7 = 0; + a13 = 1; + a2 = 1; + a5 = 5; + a16 = 8; + a1 = 14; + } + return 22; + } else if((((a16==11)&&((((a6==1)&&(!(a14==1)&&(!(a0==1)&&((input==6)&&(a5==6)))))&&(a17==2))&&(a9==10)))&&((((((a21==11)&&((!(a24==1)&&(a23==1))&&(a1==14)))&&!(a27==1))||!(a23==1))&&(a20==1))&&(a19==1)))){ + a1 = 12; + a12 = 1; + a16 = 9; + a21 = 12; + a23 = 1; + a19 = 3; + a27 = 0; + a9 = 7; + a5 = 4; + return 21; + } else if((((a20==1)&&((a9==9)&&(((a1==12)&&((a7==1)&&((a27==1)&&((a17==2)&&(a12==1)))))&&(a19==5))))&&(((((a24==1)&&((a18==1)&&((a26==1)&&((a21==10)&&(input==3)))))&&(a5==4))&&!(a2==1))&&(a16==8)))){ + a29 = 1; + a1 = 14; + a16 = 11; + a9 = 11; + a5 = 5; + a19 = 1; + a22 = 1; + a14 = 1; + return -1; + } else if((((a9==9)&&(((a2==1)||(a14==1))&&(a21==10)))&&((((a19==2)&&((a17==2)&&((((a1==13)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a20==1))&&(a12==1))&&(a12==1)))&&(a16==9))&&!(a18==1))))&&(a12==1))&&!(a8==1)))){ + if((a2==1)){ + a5 = 4; + a21 = 11; + a16 = 8; + a20 = 0; + a12 = 1; + a14 = 0; + a19 = 4; + a1 = 14; + }else{ + a5 = 6; + a16 = 7; + a26 = 0; + a23 = 1; + a28 = 1; + } + return 25; + } else if((((a21==11)&&((a16==10)&&(!(a13==1)||(((a1==12)&&((a18==1)||((((a0==1)||(a28==1))&&!(a14==1))&&(a3==1))))&&(a2==1)))))&&((((((input==1)&&!(a20==1))&&(a17==2))&&(a5==4))&&(a19==5))&&(a9==10)))){ + a5 = 6; + a16 = 8; + a15 = 1; + a1 = 14; + a7 = 1; + a9 = 11; + a19 = 4; + a12 = 0; + return 26; + } else if(((!(a27==1)&&(((!(a3==1)||(((a11==1)&&!(a7==1))&&(a17==2)))&&!(a26==1))&&(a16==9)))&&(((a11==1)&&((!(a20==1)&&(((a21==11)&&((a9==8)&&((input==6)&&((a5==6)||((a5==4)||(a5==5))))))&&!(a7==1)))&&(a19==4)))&&(a1==13)))){ + if((a14==1)){ + a14 = 1; + a21 = 12; + a5 = 6; + a23 = 0; + a24 = 1; + a19 = 5; + a16 = 10; + a1 = 12; + }else{ + a5 = 5; + a19 = 5; + a1 = 12; + a20 = 1; + a10 = 1; + a14 = 1; + a21 = 12; + a9 = 11; + a11 = 0; + } + return 22; + } else if((((((((!(a14==1)&&((a3==1)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a17==2))&&(a11==1))&&!(a7==1))&&(a28==1))&&(a9==9))&&(!(a20==1)&&(((a21==10)&&((((a16==10)&&(a28==1))&&(a6==1))&&(a1==13)))&&(a19==3))))){ + a6 = 0; + a16 = 7; + a20 = 1; + a9 = 7; + a26 = 1; + a5 = 4; + a19 = 1; + a28 = 0; + a1 = 12; + return 23; + } else if(((((a12==1)&&(((((a11==1)&&(((a5==4)||(a5==5))&&(input==1)))&&(a9==11))&&(a1==13))&&(a21==11)))&&(a2==1))&&(!(a24==1)&&((a16==11)&&((((a19==2)&&(((a20==1)&&(a28==1))&&!(a14==1)))||(a26==1))&&(a17==2)))))){ + a14 = 0; + a28 = 1; + a21 = 12; + a13 = 1; + a19 = 1; + a9 = 7; + a5 = 6; + return 25; + } else if((((a11==1)&&((a19==1)&&((((a3==1)&&(a9==9))&&!(a18==1))||!(a28==1))))&&(!(a24==1)&&((a21==10)&&((a17==2)&&(((a28==1)&&(((a5==5)&&((a11==1)&&((a16==9)&&(input==3))))&&(a1==13)))&&!(a20==1))))))){ + a25 = 1; + a21 = 11; + a7 = 1; + a5 = 6; + a14 = 1; + return 26; + } else if(((((a9==9)&&(((a6==1)&&(((a5==4)&&(((a19==5)&&(input==4))&&(a2==1)))&&(a12==1)))&&(a21==10)))&&!(a27==1))&&((a20==1)&&(((((a1==12)&&((a13==1)&&(a16==8)))&&(a17==2))||(a8==1))||!(a28==1))))){ + a19 = 2; + a5 = 5; + a7 = 0; + a1 = 14; + a28 = 1; + a21 = 11; + a6 = 1; + a9 = 10; + return 22; + } else if(((((a1==13)&&(!(a26==1)&&(((a28==1)&&(((!(a20==1)&&(input==4))&&(a23==1))&&(a9==7)))&&!(a8==1))))&&(a17==2))&&((a19==1)&&(((a16==9)&&((a5==4)&&(((a6==1)&&!(a24==1))&&(a23==1))))&&(a21==11))))){ + a16 = 10; + a1 = 12; + a21 = 12; + a9 = 9; + a18 = 1; + a2 = 0; + a27 = 1; + return 21; + } else if((((!(a13==1)||((((a17==2)&&((a12==1)&&(a9==11)))&&(a5==4))||(a14==1)))||!(a23==1))&&(((((a16==9)&&(((a1==14)&&((a20==1)&&((input==3)&&(a19==5))))&&(a21==12)))&&!(a4==1))&&(a12==1))&&!(a0==1)))){ + a24 = 0; + a27 = 0; + a1 = 12; + a16 = 7; + a21 = 10; + a9 = 7; + a19 = 1; + a6 = 1; + return -1; + } else if(((((a9==11)&&((a2==1)&&(!(a14==1)&&(((((input==3)&&(a17==2))&&!(a18==1))&&(a1==13))&&(a12==1)))))&&(a19==5))&&((a21==10)&&((a20==1)&&((a16==10)&&((a6==1)&&((a5==4)&&((a23==1)||!(a2==1))))))))){ + a28 = 1; + a26 = 0; + a16 = 7; + a19 = 1; + a3 = 1; + a9 = 7; + a1 = 12; + return -1; + } else if((((a26==1)||((a19==3)&&((a2==1)&&(a21==11))))&&(((!(a18==1)&&(((a17==2)&&((a1==14)&&((!(a24==1)&&(((input==6)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&!(a4==1)))&&!(a27==1))))&&(a16==10)))&&(a20==1))&&(a2==1)))){ + a3 = 1; + a1 = 13; + a0 = 0; + a5 = 5; + a19 = 2; + a21 = 10; + a16 = 7; + a11 = 1; + a9 = 9; + return 25; + } else if(((((a0==1)||((!(a20==1)&&(((a3==1)&&(a16==7))&&(a17==2)))&&!(a27==1)))&&!(a0==1))&&((((((((((a9==11)&&((a5==5)&&(a1==14)))&&(a19==4))||((a19==4)&&((a9==11)&&((a1==14)&&(a5==6)))))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==5)))&&(input==6))&&(a2==1))&&(a21==10))&&(a23==1))&&!(a0==1)))){ + a5 = 4; + a1 = 14; + a6 = 1; + a19 = 1; + a14 = 0; + a12 = 1; + a9 = 10; + return 21; + } else if((((a19==1)&&(((a11==1)&&((a11==1)&&((a1==12)&&(input==6))))&&!(a20==1)))&&((!(a6==1)||((a18==1)||(((((((a6==1)&&(a21==12))&&(a17==2))&&(a5==6))&&!(a8==1))&&!(a18==1))&&(a9==11))))&&(a16==8)))){ + a25 = 0; + a20 = 1; + a3 = 0; + a16 = 7; + a1 = 13; + a21 = 10; + return 25; + } else if(((((!(a27==1)&&((a21==12)&&(((((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a5==4)&&(a9==11)))&&(input==3))&&!(a26==1))&&!(a0==1))))&&!(a7==1))&&(a17==2))&&(((a16==7)&&(((!(a2==1)||((a11==1)&&(a1==14)))||!(a13==1))&&(a19==4)))&&(a20==1)))){ + a21 = 10; + a5 = 4; + a9 = 7; + a12 = 1; + a1 = 12; + a19 = 1; + a28 = 1; + a2 = 1; + return -1; + } else if((((a26==1)||((((a6==1)&&(a11==1))||(a14==1))&&(a1==12)))&&(!(a18==1)&&((!(a0==1)&&((a3==1)&&((a20==1)&&((((a17==2)&&((((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6))))&&(input==5)))&&(a21==10))&&(a16==10)))))&&(a19==3))))){ + a13 = 1; + a5 = 4; + a9 = 7; + a19 = 1; + a27 = 0; + a16 = 7; + a7 = 0; + return -1; + } else if((((a13==1)&&(!(a20==1)&&((((a17==2)&&(((a5==5)||(a5==6))&&(input==4)))&&(a21==11))&&!(a8==1))))&&(((((((a1==12)&&(((a3==1)&&(a16==8))||!(a6==1)))&&(a19==5))&&(a23==1))&&(a9==9))&&!(a26==1))&&!(a24==1)))){ + a19 = 1; + a23 = 1; + a20 = 1; + a5 = 4; + a9 = 7; + a21 = 10; + a16 = 7; + a27 = 0; + a18 = 0; + return -1; + } else if((((a21==10)&&(((a16==7)&&(((!(a27==1)&&(((((a5==4)&&(a1==14))&&(a9==7))||((((a5==5)&&(a1==13))&&(a9==11))||((a9==11)&&((a1==13)&&(a5==6)))))&&(input==6)))&&!(a18==1))&&(a11==1)))&&!(a20==1)))&&((a19==3)&&((a17==2)&&(((!(a14==1)&&(a28==1))||!(a6==1))&&!(a0==1)))))){ + a1 = 13; + a8 = 0; + a3 = 1; + a19 = 1; + a13 = 1; + a9 = 8; + a5 = 4; + return 21; + } else if(((((a20==1)&&((a9==8)&&((a16==11)&&((a6==1)||(a0==1)))))&&!(a14==1))&&(!(a0==1)&&(((((a19==2)&&((a1==13)&&(((a3==1)&&((input==5)&&(a21==10)))&&!(a14==1))))&&(a5==6))&&(a17==2))&&(a2==1))))){ + a19 = 1; + a14 = 0; + a16 = 7; + a9 = 7; + a5 = 4; + a6 = 1; + a23 = 1; + a1 = 12; + return -1; + } else if(((((a13==1)&&((((a12==1)&&(((a16==9)&&(!(a20==1)&&(input==4)))&&(a17==2)))&&!(a24==1))&&(a3==1)))&&(a1==12))&&((a0==1)||((a5==5)&&(((((a12==1)&&(a9==10))&&(a19==2))&&(a21==12))||(a0==1)))))){ + a20 = 1; + a21 = 11; + a5 = 4; + a9 = 7; + a19 = 1; + a12 = 0; + a27 = 1; + a0 = 1; + return -1; + } else if(((((!(a8==1)&&((((((a19==1)&&(a12==1))&&(a16==10))&&(a21==12))&&!(a20==1))&&!(a8==1)))&&!(a4==1))&&(a28==1))&&((!(a4==1)&&((a1==13)&&(((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==4))&&(a17==2))))&&(a28==1)))){ + if((a7==1)){ + a21 = 10; + a4 = 1; + a5 = 6; + a20 = 1; + a29 = 1; + a9 = 11; + a7 = 1; + a16 = 7; + }else{ + a16 = 7; + a21 = 10; + a18 = 1; + a1 = 12; + a19 = 2; + a20 = 1; + a6 = 0; + a5 = 5; + a8 = 1; + a9 = 10; + } + return 21; + } else if((((a19==5)&&(!(a0==1)&&(!(a14==1)&&(a12==1))))&&(((a17==2)&&((a2==1)&&(((((a16==7)&&((a21==12)&&(((((a1==13)&&(a5==6))&&(a9==11))||(((a5==4)&&(a1==14))&&(a9==7)))&&(input==6))))&&(a13==1))&&!(a14==1))&&(a28==1))))&&(a20==1)))){ + a16 = 9; + a23 = 1; + a2 = 1; + a26 = 0; + a9 = 7; + a19 = 1; + a5 = 4; + a1 = 12; + return 26; + } else if((((a23==1)&&((((((input==1)&&(((((a19==5)&&((a16==8)&&(((a1==14)&&(a5==5))&&(a9==11))))&&(a21==12))||((a21==12)&&(((a16==8)&&((a9==11)&&((a1==14)&&(a5==6))))&&(a19==5))))||(((a19==1)&&((((a1==12)&&(a5==4))&&(a9==7))&&(a16==9)))&&(a21==10))))&&(a2==1))&&!(a27==1))&&!(a20==1))&&!(a18==1)))&&(!(a11==1)||((a0==1)||((a11==1)&&(a17==2)))))){ + a9 = 11; + a14 = 1; + a1 = 13; + a21 = 10; + a23 = 0; + a5 = 6; + a19 = 1; + a16 = 7; + a18 = 1; + a20 = 1; + return 26; + } else if((((((a17==2)&&((((a13==1)&&(a21==11))||!(a3==1))||(a27==1)))&&!(a14==1))&&(a9==10))&&((a3==1)&&((a1==13)&&((a16==8)&&((((((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a19==1))&&(a13==1))&&(a20==1))&&!(a18==1))))))){ + a14 = 0; + a5 = 5; + a18 = 0; + a19 = 5; + a0 = 0; + a21 = 10; + return -1; + } else if((((a9==10)&&(!(a26==1)&&(!(a26==1)&&((((a1==13)&&((input==4)&&((a5==6)||((a5==4)||(a5==5)))))&&(a19==1))&&(a16==7)))))&&((a20==1)&&((a21==11)&&((((((a0==1)||(a28==1))||!(a28==1))||(a18==1))&&(a17==2))||!(a13==1)))))){ + a11 = 1; + a1 = 12; + a9 = 7; + a3 = 1; + a21 = 10; + a5 = 4; + a26 = 0; + return -1; + } else if(((((a16==8)&&((a1==14)&&((((a3==1)&&(((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))&&(input==3)))&&!(a20==1))&&!(a0==1))))&&!(a27==1))&&(((a0==1)||(((((a13==1)&&(a3==1))&&(a17==2))&&(a19==4))&&!(a14==1)))&&(a21==12)))){ + a29 = 0; + a21 = 11; + a9 = 9; + a19 = 1; + a25 = 1; + a20 = 1; + a5 = 5; + a16 = 9; + return -1; + } else if(((!(a4==1)&&((a6==1)&&((a19==2)&&(!(a18==1)&&(a2==1)))))&&(!(a14==1)&&((a3==1)&&(((((a16==9)&&(((((a5==6)&&(input==1))&&(a1==13))&&(a17==2))&&(a9==7)))&&(a21==11))&&(a20==1))&&(a6==1)))))){ + a5 = 4; + a19 = 1; + a11 = 1; + a16 = 7; + a7 = 0; + a1 = 12; + a0 = 0; + a21 = 10; + return -1; + } else if((((a23==1)&&((a1==12)&&((input==1)&&(a9==11))))&&((!(a12==1)||(((!(a20==1)&&((((a5==6)&&((((a13==1)&&(a16==9))&&(a19==4))||!(a3==1)))||(a7==1))&&(a17==2)))&&(a21==12))&&!(a4==1)))&&(a23==1)))){ + a21 = 10; + a14 = 1; + a1 = 13; + a20 = 1; + a5 = 5; + a9 = 7; + a4 = 1; + a19 = 1; + a16 = 7; + a18 = 1; + return 25; + } else if((((a21==12)&&((((a1==13)&&(((a13==1)||!(a2==1))&&(a19==1)))||!(a23==1))&&(a20==1)))&&((a16==8)&&(((a5==6)&&(((a11==1)&&((((a17==2)&&(input==6))&&!(a26==1))&&(a28==1)))&&!(a24==1)))&&(a9==8))))){ + a0 = 0; + a9 = 7; + a1 = 12; + a16 = 10; + a12 = 1; + a6 = 1; + a19 = 5; + a21 = 11; + return 25; + } else if((((a21==10)&&((a1==13)&&(a2==1)))&&(((a3==1)&&(((a12==1)&&(((a19==3)&&((((a13==1)&&(!(a26==1)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==4))))&&(a20==1))&&(a3==1)))&&(a16==11)))&&(a17==2)))&&!(a27==1)))){ + a28 = 1; + a1 = 12; + a5 = 4; + a2 = 1; + a9 = 7; + a19 = 1; + a16 = 7; + a23 = 1; + return -1; + } else if(((((a21==11)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&(a13==1))&&(a2==1))&&(a11==1)))&&!(a20==1))&&((!(a3==1)||((a1==14)&&(((a16==10)&&((a12==1)&&(((a17==2)&&(a23==1))&&(a9==8))))&&!(a26==1))))&&(a19==5)))){ + a19 = 4; + a5 = 5; + a9 = 10; + a6 = 0; + a22 = 0; + a26 = 1; + a16 = 9; + return 22; + } else if((((a6==1)&&((((a17==2)&&(!(a18==1)&&((((a2==1)&&((a19==1)&&((input==3)&&(a21==11))))&&!(a4==1))&&(a5==6))))&&!(a27==1))&&!(a26==1)))&&((a16==11)&&(((a1==12)&&((a12==1)&&(a20==1)))&&(a9==10))))){ + a5 = 4; + a16 = 7; + a4 = 0; + a11 = 1; + a13 = 1; + a21 = 10; + a9 = 7; + return -1; + } else if(((((((!(a28==1)&&(((a24==1)&&((a17==2)&&(a23==1)))&&(a1==12)))&&(a24==1))&&(a9==8))&&(a19==5))&&(a16==7))&&(((a24==1)&&((a21==11)&&(((((a5==5)||(a5==6))&&(input==5))&&!(a13==1))&&(a7==1))))&&!(a20==1)))){ + a14 = 1; + a20 = 1; + a6 = 0; + a29 = 0; + a16 = 8; + a21 = 10; + a5 = 5; + a9 = 7; + return -1; + } else if(((((a3==1)&&(((((a17==2)&&(a6==1))&&(a11==1))&&(a1==14))||!(a13==1)))&&(a19==5))&&(!(a20==1)&&((a3==1)&&((!(a26==1)&&(((a21==10)&&(((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8)))&&(input==4)))&&!(a7==1)))&&(a16==8)))))){ + a5 = 4; + a13 = 1; + a9 = 7; + a11 = 1; + a16 = 7; + a6 = 1; + a19 = 1; + a20 = 1; + a1 = 12; + return -1; + } else if(((((a5==5)&&((((input==4)&&(a17==2))&&(a2==1))&&(a12==1)))&&(a21==10))&&((((((a16==11)&&(((((a2==1)&&!(a24==1))&&(a19==2))||(a0==1))||(a8==1)))&&(a1==14))||!(a12==1))&&(a9==9))&&!(a20==1)))){ + if((a24==1)){ + a11 = 0; + a6 = 0; + a1 = 12; + a21 = 11; + a16 = 8; + a19 = 4; + }else{ + a10 = 0; + a16 = 7; + a20 = 1; + a13 = 0; + a9 = 11; + a19 = 1; + a11 = 0; + } + return -1; + } else if((((!(a7==1)&&((((a11==1)&&(a19==3))&&!(a18==1))&&(a16==11)))&&(a2==1))&&((((a3==1)&&((((a21==10)&&((a17==2)&&((a9==8)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))))&&!(a20==1))&&(a1==14)))&&(a3==1))&&(a12==1)))){ + if((a0==1)){ + a6 = 0; + a18 = 1; + a1 = 12; + a24 = 1; + a19 = 1; + a5 = 5; + a9 = 10; + }else{ + a19 = 2; + a21 = 12; + a13 = 0; + a11 = 0; + a20 = 1; + a16 = 10; + a1 = 13; + a5 = 6; + a7 = 1; + a9 = 11; + } + return 22; + } else if(((!(a28==1)||(!(a8==1)&&(((!(a20==1)&&((!(a12==1)||((a23==1)||!(a28==1)))&&(a19==1)))&&!(a4==1))&&!(a26==1))))&&((((a17==2)&&((((a9==11)&&((a1==13)&&(a5==6)))||((a9==7)&&((a1==14)&&(a5==4))))&&(input==1)))&&(a21==10))&&(a16==9)))){ + a9 = 9; + a15 = 1; + a20 = 1; + a29 = 1; + a16 = 7; + a26 = 1; + a1 = 12; + a5 = 5; + return -1; + } else if((((a7==1)||((((!(a4==1)&&(((((a16==9)&&(a6==1))||(a24==1))&&(a1==13))&&(a20==1)))&&(a17==2))&&(a5==4))||(a18==1)))&&(((((a2==1)&&((a9==7)&&(input==6)))&&!(a14==1))&&(a21==11))&&(a19==3)))){ + a3 = 1; + a16 = 7; + a1 = 12; + a5 = 6; + a21 = 10; + a27 = 0; + a14 = 0; + a9 = 10; + return 23; + } else if(((((a3==1)&&(!(a8==1)&&((a19==1)&&(((a23==1)&&((a5==5)&&((a16==7)&&((a1==12)&&(input==3)))))&&(a9==7)))))&&!(a20==1))&&(((a6==1)&&((a17==2)&&((!(a0==1)&&(a28==1))&&(a21==11))))&&!(a24==1)))){ + a24 = 0; + a5 = 4; + a4 = 0; + a21 = 10; + a3 = 1; + a20 = 1; + return -1; + } else if((((!(a24==1)&&(!(a7==1)&&(((!(a4==1)&&((((input==6)&&(a9==11))&&(a1==13))&&!(a18==1)))&&!(a0==1))&&(a21==10))))&&(a19==4))&&((a5==6)&&((a17==2)&&(!(a20==1)&&(((a2==1)&&(a16==10))&&!(a27==1))))))){ + a8 = 1; + a1 = 12; + a20 = 1; + a19 = 2; + a25 = 0; + a16 = 7; + a9 = 8; + return 25; + } else if(((!(a20==1)&&((a16==10)&&((a23==1)&&(((((a1==13)&&((((((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6))))&&(input==4))&&!(a14==1))&&(a3==1)))&&(a17==2))&&(a3==1))&&(a19==2)))))&&(!(a4==1)&&(((a2==1)&&(a13==1))&&(a21==10))))){ + a5 = 4; + a16 = 7; + a19 = 1; + a9 = 8; + a20 = 1; + a22 = 0; + a14 = 1; + a29 = 1; + return -1; + } else if(((((a19==1)&&(((!(a20==1)&&(!(a26==1)&&(!(a14==1)&&(((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==1))&&(a17==2)))))&&(a13==1))&&!(a4==1)))&&(a16==9))&&(((((a13==1)&&!(a8==1))&&(a21==11))&&(a1==12))&&!(a0==1)))){ + a15 = 0; + a9 = 9; + a21 = 10; + a20 = 1; + a8 = 1; + a6 = 0; + a19 = 2; + a5 = 5; + a16 = 10; + a1 = 14; + return -1; + } else if((((a23==1)&&(((a9==10)&&((a5==4)&&(a6==1)))&&(a12==1)))&&((!(a14==1)&&(!(a4==1)&&((((a21==11)&&(((a17==2)&&((a20==1)&&((input==3)&&(a19==5))))&&(a1==13)))&&(a16==7))&&!(a18==1))))&&(a6==1)))){ + a9 = 7; + a5 = 5; + a19 = 2; + a24 = 0; + a16 = 8; + a8 = 0; + a3 = 1; + a21 = 12; + return 25; + } else if(((!(a14==1)&&(((((a16==9)&&((a20==1)&&(((((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4)))&&(input==5))&&!(a0==1))&&(a21==12))))&&(a19==2))&&(a12==1))&&(a13==1)))&&(((a1==13)&&((a17==2)&&(!(a13==1)||(a3==1))))&&!(a7==1)))){ + a19 = 3; + a6 = 1; + a12 = 1; + a9 = 9; + a1 = 12; + a4 = 0; + a5 = 4; + return 21; + } else if((((a2==1)&&((((a9==7)&&((((((a5==5)||(a5==6))&&(input==6))&&(a21==12))&&(a2==1))&&(a17==2)))&&!(a18==1))&&(a19==2)))&&(!(a3==1)||(!(a13==1)||((a1==14)&&((((a6==1)&&(a20==1))&&!(a14==1))&&(a16==8))))))){ + a16 = 10; + a19 = 1; + a5 = 5; + a13 = 1; + a23 = 1; + a12 = 1; + return 25; + } else if(((((a1==14)&&(!(a24==1)&&((!(a6==1)||(a12==1))&&(a17==2))))&&(a16==9))&&((((((a5==4)&&(!(a8==1)&&((a23==1)&&((a3==1)&&((a20==1)&&(input==4))))))&&(a3==1))&&(a19==3))&&(a21==12))&&(a9==8)))){ + a0 = 0; + a11 = 1; + a3 = 1; + a21 = 10; + a16 = 7; + a19 = 1; + a1 = 12; + a9 = 7; + return -1; + } else if((((((a23==1)&&(((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a4==1)))&&(a12==1))&&(a1==12))&&((a19==3)&&((a17==2)&&((!(a18==1)&&(((a12==1)&&((((a12==1)&&!(a20==1))||!(a2==1))&&(a16==11)))&&(a9==10)))&&(a21==10)))))){ + a14 = 1; + a2 = 0; + a4 = 1; + a1 = 13; + a5 = 6; + a19 = 2; + a20 = 1; + a9 = 8; + return 23; + } else if(((((a13==1)&&(a9==10))&&(a17==2))&&((((a19==2)&&((!(a4==1)&&((((a16==9)&&(((a11==1)&&(!(a20==1)&&((input==6)&&((a5==4)||(a5==5)))))&&(a21==10)))&&(a11==1))&&(a23==1)))&&!(a24==1)))&&!(a0==1))&&(a1==13)))){ + a6 = 0; + a19 = 1; + a1 = 12; + a5 = 5; + a20 = 1; + a16 = 7; + a9 = 11; + a29 = 0; + a0 = 1; + return 22; + } else if(((((a16==8)&&(((a13==1)&&(!(a0==1)&&(((a9==11)&&((a1==12)&&((a23==1)&&(!(a20==1)&&((input==6)&&(a5==4))))))&&!(a4==1))))&&!(a14==1)))&&(a17==2))&&((!(a2==1)||((a11==1)&&(a21==12)))&&(a19==2)))){ + a21 = 10; + a20 = 1; + a1 = 13; + a9 = 7; + a14 = 1; + a16 = 7; + a15 = 0; + a18 = 1; + a19 = 1; + return -1; + } else if(((((a28==1)&&((a9==10)&&(((input==4)&&(a5==4))&&(a19==5))))&&!(a24==1))&&(((a3==1)&&((a17==2)&&((a1==12)&&((a21==10)&&((!(a27==1)&&(((a13==1)&&(a16==9))&&!(a20==1)))&&!(a18==1))))))&&(a3==1)))){ + a16 = 7; + a20 = 1; + a12 = 0; + a13 = 0; + a9 = 8; + a25 = 0; + a5 = 5; + a19 = 1; + return 25; + } else if((((a16==7)&&(!(a20==1)&&(((((((a21==10)&&((a17==2)&&(a13==1)))||!(a11==1))&&(a19==5))&&!(a4==1))&&(a1==12))&&!(a24==1))))&&((a3==1)&&((a28==1)&&((a13==1)&&((input==5)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))))))){ + a5 = 4; + a19 = 2; + a20 = 1; + a0 = 0; + a23 = 1; + a9 = 11; + a24 = 0; + return -1; + } else if(((!(a3==1)||(((!(a6==1)||((!(a20==1)&&((a11==1)&&(a1==14)))&&(a17==2)))&&(a19==1))&&!(a0==1)))&&(((!(a24==1)&&(((((input==3)&&((a5==4)||(a5==5)))&&(a9==11))&&(a21==11))&&(a16==9)))&&(a3==1))&&!(a8==1)))){ + a14 = 1; + a20 = 1; + a19 = 2; + a5 = 6; + a6 = 0; + a1 = 13; + a23 = 0; + a9 = 10; + return 26; + } else if((((a16==8)&&((a20==1)&&((((a19==2)&&((a21==12)&&(!(a8==1)&&(((a9==7)&&(input==6))&&(a13==1)))))&&(a6==1))&&!(a8==1))))&&((a1==14)&&(((a2==1)&&((a17==2)&&(!(a11==1)||(a23==1))))&&(a5==4))))){ + a6 = 1; + a1 = 12; + a3 = 1; + a21 = 10; + a8 = 0; + a19 = 1; + a16 = 7; + return -1; + } else if((((a20==1)&&(((((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a21==12))&&(a16==10))&&!(a27==1)))&&((a17==2)&&(((a19==2)&&((a3==1)&&((!(a28==1)||((a12==1)&&(((a6==1)&&(a1==14))&&!(a18==1))))&&(a28==1))))&&(a9==7))))){ + a11 = 1; + a21 = 10; + a5 = 4; + a1 = 13; + a19 = 3; + a13 = 1; + a16 = 8; + a20 = 0; + return 25; + } else if((((a12==1)&&(((((((a1==14)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))&&(a9==7))&&(a19==4))&&(a16==8))&&!(a14==1))&&!(a4==1)))&&((a17==2)&&((((((a28==1)&&(a20==1))||(a0==1))||!(a6==1))&&(a21==10))||(a24==1))))){ + if((a21==12)){ + a20 = 0; + a18 = 0; + a5 = 4; + a9 = 8; + a19 = 2; + a2 = 1; + a12 = 1; + }else{ + a12 = 1; + a16 = 10; + a9 = 10; + a19 = 1; + a24 = 0; + a5 = 5; + a1 = 13; + } + return 26; + } else if((((((a1==14)&&((!(a28==1)||((a2==1)&&((a28==1)&&(a9==8))))&&(a21==10)))&&!(a20==1))&&(a16==10))&&(((a17==2)&&(((((a11==1)&&((a5==5)&&(input==1)))&&(a6==1))&&(a11==1))&&!(a18==1)))&&(a19==5)))){ + a19 = 2; + a16 = 7; + a9 = 11; + a13 = 0; + a26 = 1; + a2 = 0; + a5 = 6; + a20 = 1; + a1 = 12; + return 21; + } else if((((((a16==9)&&((a1==14)&&((a20==1)&&((input==4)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))))))&&!(a14==1))&&(a28==1))&&(((a24==1)||((a3==1)&&((a19==3)&&(!(a26==1)&&(((a3==1)&&(a21==12))&&(a6==1))))))&&(a17==2)))){ + a5 = 5; + a19 = 4; + a11 = 1; + a16 = 10; + a0 = 0; + a1 = 12; + a9 = 11; + a8 = 0; + return 25; + } else if((((((a9==10)&&((!(a24==1)&&((a17==2)&&(((a5==5)&&(((input==5)&&(a21==10))&&(a13==1)))&&(a19==1))))&&(a6==1)))&&!(a26==1))&&(a20==1))&&((((a26==1)||((a16==8)&&(a3==1)))&&!(a0==1))&&(a1==12)))){ + a5 = 6; + a11 = 1; + a9 = 8; + a23 = 1; + a21 = 12; + a16 = 9; + a19 = 2; + return 25; + } else if((((((a23==1)&&((a20==1)&&((a28==1)||(a0==1))))&&(a19==2))&&(a17==2))&&((a6==1)&&(((((((((((a1==12)&&(a5==5))&&(a9==11))||(((a1==12)&&(a5==6))&&(a9==11)))||(((a1==13)&&(a5==4))&&(a9==7)))&&(input==3))&&(a16==11))&&!(a8==1))&&!(a27==1))&&(a12==1))&&(a21==12))))){ + a13 = 1; + a5 = 4; + a9 = 7; + a6 = 1; + a1 = 13; + a19 = 4; + a28 = 1; + return 23; + } else if(((((((a28==1)&&(((a1==13)&&((a23==1)&&(a16==10)))&&!(a20==1)))||(a14==1))&&(a19==1))&&(a21==12))&&((((((((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10)))&&(input==4))&&(a3==1))&&(a17==2))&&(a11==1))&&(a23==1))&&!(a4==1)))){ + a16 = 7; + a6 = 0; + a27 = 1; + a21 = 10; + a1 = 12; + a5 = 5; + a20 = 1; + a15 = 1; + a9 = 10; + return 25; + } else if((((a23==1)&&(((a13==1)&&(((a1==13)&&(((a9==11)&&(((a19==5)&&(input==5))&&(a21==11)))&&(a20==1)))&&(a28==1)))&&!(a26==1)))&&(((!(a6==1)||(((a16==8)&&(a6==1))&&(a17==2)))&&(a5==6))||(a0==1)))){ + a8 = 0; + a26 = 0; + a19 = 1; + a9 = 7; + a11 = 1; + a1 = 12; + a21 = 10; + a5 = 4; + a16 = 7; + return -1; + } else if(((((a21==12)&&((((a19==1)&&(!(a13==1)||(a6==1)))&&(a16==10))&&(a20==1)))||!(a11==1))&&(!(a7==1)&&((a6==1)&&(((a17==2)&&((a1==14)&&(!(a18==1)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==4)))))&&!(a8==1)))))){ + a21 = 10; + a3 = 1; + a1 = 12; + a0 = 0; + a16 = 7; + a9 = 7; + a2 = 1; + a5 = 4; + return -1; + } else if((((a20==1)&&((a9==9)&&((a16==8)&&(((((a5==5)||(a5==6))&&(input==6))&&(a8==1))&&(a19==4)))))&&(((!(a28==1)&&(((((a4==1)&&((a24==1)&&(a28==1)))&&(a27==1))&&!(a12==1))&&(a1==14)))&&(a17==2))&&(a21==11)))){ + a16 = 7; + a23 = 0; + a3 = 0; + a19 = 1; + a5 = 4; + a21 = 10; + a25 = 1; + return 25; + } else if((((a1==13)&&((a19==1)&&((a21==10)&&((a6==1)&&(!(a27==1)&&((a2==1)&&((((a9==11)&&((a16==11)&&(input==6)))&&(a17==2))&&!(a7==1))))))))&&(((((a2==1)||(a8==1))||!(a3==1))&&(a5==5))&&!(a20==1)))){ + a20 = 1; + a16 = 7; + a11 = 0; + a25 = 0; + a1 = 14; + a9 = 10; + a5 = 6; + return -1; + } else if((((a19==3)&&(!(a20==1)&&(((a1==13)&&(!(a6==1)&&(((a2==1)&&(a14==1))&&!(a11==1))))&&!(a2==1))))&&((a17==2)&&((a16==8)&&(((a9==8)&&(((((a5==4)||(a5==5))&&(input==3))&&(a21==11))&&!(a11==1)))&&(a14==1)))))){ + a16 = 7; + a27 = 1; + a12 = 0; + a9 = 11; + a5 = 4; + a4 = 1; + a20 = 1; + a21 = 10; + a19 = 1; + a1 = 14; + return -1; + } else if(((!(a20==1)&&((a23==1)&&((((a19==4)&&(!(a18==1)&&((((((a5==5)&&(a1==13))&&(a9==7))||((((a1==12)&&(a5==6))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==13)))))&&(input==5))&&(a17==2))))&&(a6==1))&&!(a24==1))))&&(((a16==10)&&((!(a6==1)||(a3==1))&&(a21==11)))&&!(a0==1)))){ + a19 = 2; + a9 = 9; + a16 = 7; + a4 = 1; + a5 = 4; + a10 = 1; + a1 = 13; + a25 = 1; + return -1; + } else if(((((a14==1)||((((a9==11)&&((a19==3)&&(a3==1)))&&(a21==10))||(a4==1)))&&(a12==1))&&(((!(a4==1)&&((!(a18==1)&&((a16==9)&&((a17==2)&&((input==1)&&(a5==4)))))&&(a1==12)))&&!(a20==1))&&!(a7==1)))){ + a16 = 7; + a19 = 1; + a20 = 1; + a1 = 14; + a8 = 1; + a6 = 0; + a10 = 0; + return -1; + } else if(((((a0==1)||(((a21==10)&&((a17==2)&&(((a6==1)&&(a19==3))&&!(a0==1))))&&(a20==1)))&&(a16==10))&&(!(a4==1)&&((!(a4==1)&&((a1==12)&&((((input==3)&&((a5==5)||(a5==6)))&&!(a26==1))&&(a9==11))))&&(a11==1))))){ + a9 = 7; + a16 = 7; + a28 = 1; + a5 = 4; + a19 = 1; + a0 = 0; + return -1; + } else if((((((a2==1)&&((a4==1)||((((a11==1)||(a4==1))&&(a1==13))&&(a19==1))))&&(a16==10))&&(a20==1))&&((a17==2)&&((!(a0==1)&&(((a28==1)&&((((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(input==1)))&&(a21==12)))&&(a6==1))))){ + a21 = 10; + a5 = 4; + a19 = 2; + a9 = 9; + a2 = 1; + a7 = 0; + a0 = 0; + a16 = 7; + return 25; + } else if((((a19==2)&&((a17==2)&&((a16==7)&&(((a1==12)&&((a20==1)&&(((input==3)&&(a21==11))&&(a5==5))))&&!(a23==1)))))&&(((a14==1)&&((a0==1)&&((!(a11==1)&&(!(a12==1)&&(a3==1)))&&(a9==7))))&&!(a13==1)))){ + a21 = 10; + a23 = 0; + a3 = 0; + a27 = 1; + a9 = 10; + a5 = 6; + return -1; + } else if((((a16==7)&&((((a28==1)&&(!(a0==1)&&((input==5)&&((((a9==11)&&((a5==6)&&(a1==12)))||(((a5==4)&&(a1==13))&&(a9==7)))||(((a1==13)&&(a5==5))&&(a9==7))))))&&!(a4==1))&&(a28==1)))&&(((!(a23==1)||((a19==4)&&(!(a20==1)&&((a17==2)&&(a23==1)))))||!(a12==1))&&(a21==11)))){ + a21 = 10; + a24 = 0; + a5 = 4; + a19 = 1; + a9 = 7; + a20 = 1; + a4 = 0; + a1 = 12; + return -1; + } else if((((a23==1)&&((a16==8)&&((!(a23==1)||(!(a20==1)&&((a28==1)&&(a6==1))))&&(a17==2))))&&(((((a28==1)&&((a19==3)&&((((input==6)&&(a21==12))&&(a9==9))&&!(a0==1))))&&(a1==13))&&(a5==5))&&!(a18==1)))){ + a18 = 1; + a26 = 1; + a16 = 7; + a21 = 10; + a5 = 6; + a20 = 1; + a10 = 0; + a19 = 1; + a1 = 14; + return 21; + } else if((((((a13==1)&&((input==1)&&((a5==5)||(a5==6))))&&!(a14==1))&&(a9==10))&&(((a21==11)&&(((a16==10)&&(!(a13==1)||((((!(a20==1)&&((a11==1)||!(a3==1)))||(a14==1))||(a0==1))&&(a17==2))))&&(a1==12)))&&(a19==3)))){ + if((a1==13)){ + a19 = 1; + a5 = 6; + a22 = 1; + a20 = 1; + a15 = 0; + a6 = 0; + a16 = 7; + a9 = 9; + a21 = 10; + }else{ + a5 = 6; + a3 = 0; + a19 = 1; + a24 = 1; + a9 = 11; + a16 = 7; + a20 = 1; + a21 = 10; + a1 = 13; + } + return -1; + } else if(((!(a23==1)&&((a21==11)&&((a27==1)&&(((a19==3)&&((a16==7)&&((input==1)&&((((a5==4)&&(a1==13))&&(a9==7))||((((a1==12)&&(a5==5))&&(a9==11))||(((a1==12)&&(a5==6))&&(a9==11)))))))&&(a17==2)))))&&((((((a18==1)&&(a2==1))&&(a20==1))&&(a8==1))&&(a26==1))&&!(a23==1)))){ + a19 = 2; + a21 = 10; + a5 = 4; + a1 = 12; + a3 = 0; + a27 = 1; + a14 = 1; + a9 = 7; + return -1; + } else if(((((a9==9)&&((a7==1)||((((a23==1)&&(a2==1))&&(a6==1))&&!(a14==1))))&&(a20==1))&&((((((a11==1)&&((a17==2)&&((a19==4)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))))&&(a1==14))&&(a16==11))&&(a21==12))&&!(a18==1)))){ + a6 = 1; + a23 = 1; + a5 = 4; + a19 = 1; + a9 = 7; + a21 = 10; + a1 = 12; + a16 = 7; + return -1; + } else if((((a21==10)&&(((a9==9)&&(!(a18==1)&&(!(a24==1)&&(!(a26==1)&&((a13==1)&&((input==1)&&((a5==4)||(a5==5))))))))&&!(a20==1)))&&(((a16==9)&&(((a1==14)&&((a18==1)||((a11==1)&&!(a14==1))))&&(a17==2)))&&(a19==5)))){ + a9 = 11; + a6 = 0; + a1 = 12; + a11 = 0; + a5 = 6; + a20 = 1; + a15 = 0; + a16 = 10; + return 21; + } else if((((((a5==5)&&((a3==1)&&((a21==10)&&(((!(a6==1)||(a12==1))&&(a19==5))&&(a2==1)))))||(a26==1))&&(a1==12))&&(!(a7==1)&&((((!(a24==1)&&((input==5)&&(a16==9)))&&!(a20==1))&&(a17==2))&&(a9==9))))){ + a15 = 0; + a9 = 10; + a19 = 1; + a16 = 7; + a20 = 1; + a2 = 0; + a1 = 13; + a18 = 1; + return -1; + } else if(((((a23==1)&&((a6==1)&&((a5==5)&&(!(a20==1)&&((a17==2)&&((input==1)&&(a9==11)))))))&&(a13==1))&&(((a21==12)&&((((a12==1)&&((a19==4)&&(!(a28==1)||(a28==1))))&&(a16==9))||(a14==1)))&&(a1==13)))){ + a1 = 14; + a16 = 10; + a23 = 0; + a5 = 6; + a21 = 10; + a6 = 0; + a22 = 0; + return -1; + } else if((((((a13==1)&&(((a21==11)&&(((a1==12)&&((((((input==4)&&((a5==4)||(a5==5)))&&(a13==1))&&(a19==2))&&(a28==1))&&(a28==1)))&&(a12==1)))&&(a16==10)))&&(a17==2))&&(a20==1))&&(((a6==1)&&(a13==1))&&(a9==11)))){ + a9 = 7; + a19 = 1; + a8 = 0; + a13 = 1; + a23 = 1; + a5 = 4; + a16 = 7; + a21 = 10; + return -1; + } else if((((((a11==1)&&(!(a4==1)&&(((a6==1)&&((a11==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1))))&&(a23==1))))&&!(a20==1))&&(a9==9))&&((a1==12)&&((a19==5)&&((a16==10)&&((((a17==2)&&(a13==1))&&!(a27==1))&&(a21==12))))))){ + if((a7==1)){ + a29 = 1; + a19 = 2; + a21 = 10; + a16 = 7; + a23 = 0; + a20 = 1; + a5 = 5; + }else{ + a21 = 10; + a20 = 1; + a13 = 0; + a19 = 2; + a16 = 7; + a8 = 1; + a29 = 0; + a1 = 13; + a5 = 4; + a9 = 7; + } + return 25; + } else if(((((a19==3)&&(((a21==11)&&((a1==12)&&(a3==1)))&&!(a24==1)))||!(a2==1))&&((a13==1)&&((a23==1)&&((((a12==1)&&(((((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5)))&&(input==3))&&(a20==1))&&(a17==2)))&&(a16==11))&&!(a8==1)))))){ + a28 = 1; + a9 = 7; + a16 = 7; + a26 = 0; + a5 = 4; + a21 = 10; + a19 = 1; + a8 = 0; + return -1; + } else if((((a18==1)&&((!(a28==1)&&(!(a13==1)&&((a16==7)&&((a0==1)&&(!(a12==1)&&(a12==1))))))&&(a27==1)))&&((a17==2)&&((a19==2)&&(((((((a9==11)&&((a1==12)&&(a5==6)))||((a9==7)&&((a1==13)&&(a5==4))))||(((a5==5)&&(a1==13))&&(a9==7)))&&(input==3))&&(a21==11))&&(a20==1)))))){ + a6 = 0; + a1 = 13; + a3 = 0; + a5 = 4; + a23 = 0; + a9 = 7; + a21 = 10; + a19 = 1; + return 21; + } else if(((((((a21==11)&&(a23==1))||(a27==1))&&(a23==1))||!(a28==1))&&((a9==8)&&((a5==4)&&((a1==14)&&((((((((a16==11)&&(input==6))&&!(a14==1))&&(a17==2))&&(a11==1))&&!(a26==1))&&(a20==1))&&(a19==4))))))){ + a16 = 10; + a1 = 13; + a8 = 0; + a5 = 5; + a14 = 0; + a24 = 0; + a19 = 5; + return 21; + } else if(((((a20==1)&&((a1==14)&&((a17==2)&&(((a13==1)&&(((input==5)&&(a21==12))&&(a16==11)))&&(a9==8)))))&&(a6==1))&&(((!(a24==1)&&((((a6==1)&&!(a7==1))&&(a19==4))||!(a23==1)))&&(a5==5))||(a26==1)))){ + a9 = 7; + a21 = 10; + a16 = 7; + a5 = 4; + a1 = 12; + a7 = 0; + a14 = 0; + a19 = 1; + a26 = 0; + return -1; + } else if((((a16==8)&&(((a1==14)&&((a17==2)&&(((a23==1)&&(!(a27==1)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==6))))&&!(a26==1))))&&(a19==3)))&&(!(a3==1)||((((a21==10)&&(!(a14==1)&&(a11==1)))&&!(a20==1))&&(a11==1))))){ + a3 = 1; + a27 = 0; + a9 = 8; + a19 = 1; + a16 = 7; + a21 = 12; + a4 = 0; + a1 = 12; + a20 = 1; + a5 = 6; + return -1; + } else if(((((((a26==1)||(((a6==1)&&(a9==8))&&!(a20==1)))&&(a21==12))&&(a2==1))&&(a19==3))&&(((a13==1)&&(!(a7==1)&&((a17==2)&&((a16==8)&&((a11==1)&&(!(a0==1)&&(((a5==5)||(a5==6))&&(input==1))))))))&&(a1==14)))){ + a14 = 1; + a16 = 7; + a5 = 4; + a24 = 1; + a21 = 10; + a11 = 0; + a20 = 1; + a9 = 11; + a19 = 1; + a1 = 13; + return 21; + } else if(((((((a6==1)&&((a21==12)&&((a20==1)&&(((a17==2)&&(((((((a9==11)&&((a1==14)&&(a5==5)))&&(a19==2))||((((a1==14)&&(a5==6))&&(a9==11))&&(a19==2)))||((a19==3)&&(((a1==12)&&(a5==4))&&(a9==7))))&&(input==5))&&(a28==1)))&&(a16==9)))))&&(a12==1))&&(a28==1))&&!(a26==1))&&((a6==1)||!(a13==1)))){ + if((a11==1)){ + a9 = 9; + a12 = 1; + a1 = 14; + a8 = 0; + a19 = 2; + a5 = 4; + a16 = 7; + a20 = 0; + }else{ + a21 = 10; + a5 = 6; + a1 = 13; + a13 = 1; + a6 = 1; + a2 = 1; + a9 = 9; + a19 = 3; + a16 = 7; + } + return 22; + } else if(((((a19==4)&&((a1==12)&&((!(a11==1)&&((a0==1)&&(a2==1)))&&(a16==9))))&&(a9==10))&&(((!(a2==1)&&((((!(a13==1)&&((a21==11)&&(input==5)))&&(a26==1))&&!(a23==1))&&(a5==6)))&&(a17==2))&&(a20==1)))){ + a24 = 1; + a16 = 10; + a22 = 0; + a8 = 1; + return 21; + } else if(((((((((a1==13)&&(!(a4==1)&&((((input==5)&&((((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4))))&&(a21==10))&&!(a20==1))))&&(a3==1))&&!(a18==1))&&(a16==7))&&(a17==2))&&(a19==5))&&(((!(a11==1)||(a13==1))&&!(a24==1))&&(a11==1)))){ + a9 = 9; + a3 = 1; + a28 = 1; + a27 = 0; + a5 = 5; + a19 = 2; + a20 = 1; + return 25; + } else if(((((((!(a8==1)&&((a21==12)&&(input==3)))&&!(a27==1))&&!(a27==1))&&(a16==7))&&(a20==1))&&((a17==2)&&(((a5==6)&&((a28==1)&&((a19==2)&&((((a13==1)||!(a12==1))&&(a9==8))||!(a11==1)))))&&(a1==13))))){ + if((a6==1)){ + a13 = 1; + a11 = 1; + a21 = 11; + a16 = 8; + a20 = 0; + a5 = 4; + a4 = 0; + a1 = 14; + }else{ + a1 = 12; + a13 = 1; + a21 = 10; + a12 = 1; + a19 = 3; + a16 = 9; + } + return 23; + } else if((((((a20==1)&&(!(a27==1)&&(((a17==2)&&((input==3)&&(a5==4)))&&!(a18==1))))&&(a19==4))&&(a21==10))&&(((a16==11)&&(((!(a11==1)||(((a2==1)&&(a1==12))||(a24==1)))&&(a3==1))&&(a28==1)))&&(a9==9)))){ + a19 = 1; + a28 = 1; + a2 = 1; + a16 = 7; + a9 = 7; + a12 = 1; + return -1; + } else if((((((a19==5)&&(!(a7==1)&&((((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==6))))&&(a16==7))&&!(a27==1))&&((((a17==2)&&((a1==14)&&((a23==1)&&((!(a11==1)||((a20==1)&&(a2==1)))&&(a21==10)))))&&!(a14==1))&&(a2==1)))){ + a2 = 1; + a5 = 6; + a0 = 0; + a21 = 12; + a1 = 12; + a28 = 1; + a9 = 7; + return 21; + } else if(((!(a14==1)&&((a16==8)&&(((((a17==2)&&(((a9==9)&&(a6==1))||!(a28==1)))&&!(a20==1))||(a14==1))&&(a1==13))))&&(((a2==1)&&((a13==1)&&(((a23==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5)))&&(a21==10))))&&(a19==3)))){ + a20 = 1; + a19 = 1; + a9 = 7; + a16 = 7; + a1 = 12; + a5 = 4; + a7 = 0; + a12 = 1; + return -1; + } else if(((!(a7==1)&&((!(a20==1)&&((((((a17==2)&&(input==6))&&(a5==4))&&(a9==7))&&(a1==13))&&(a19==3)))&&!(a7==1)))&&((!(a27==1)&&(!(a13==1)||((a16==8)&&(((a11==1)&&(a21==12))||(a4==1)))))||!(a2==1)))){ + a21 = 10; + a19 = 1; + a12 = 0; + a1 = 12; + a4 = 1; + a15 = 0; + a20 = 1; + a16 = 7; + a5 = 5; + return -1; + } else if((((a16==8)&&(((!(a4==1)&&((((a21==12)&&((((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11)))&&(input==5))&&(a6==1)))&&(a12==1))&&(a19==2)))&&!(a4==1))&&(a1==12)))&&((!(a2==1)||(((a20==1)&&(a28==1))||(a0==1)))&&(a17==2)))){ + a19 = 5; + a9 = 11; + a28 = 1; + a1 = 14; + a21 = 11; + a23 = 1; + a5 = 6; + a27 = 0; + a16 = 10; + return 25; + } return calculate_output62(input); + } + + int calculate_output62(int input) { + if((((a17==2)&&((a20==1)&&(!(a6==1)||(((!(a14==1)&&(!(a13==1)||((a23==1)&&(a1==14))))&&!(a26==1))&&(a28==1)))))&&((a19==3)&&((a16==10)&&((a9==7)&&(((((a5==5)||(a5==6))&&(input==6))&&!(a7==1))&&(a21==12))))))){ + a1 = 13; + a5 = 5; + a21 = 10; + a6 = 1; + a19 = 2; + a9 = 9; + a8 = 0; + a16 = 7; + return 25; + } else if(((((a17==2)&&((a19==2)&&((a1==13)&&(((a6==1)&&(((a5==5)||(a5==6))&&(input==3)))&&!(a8==1)))))&&!(a4==1))&&((((a24==1)||((a9==9)&&((!(a28==1)||(!(a20==1)&&(a11==1)))&&(a21==10))))&&(a16==7))||(a14==1)))){ + a27 = 0; + a1 = 12; + a5 = 4; + a24 = 0; + a19 = 1; + a9 = 7; + a20 = 1; + a4 = 0; + return -1; + } else if((((((a16==7)&&(!(a24==1)&&(!(a8==1)&&((a20==1)&&(!(a24==1)&&(!(a14==1)&&((((((a5==6)&&(a1==12))&&(a9==11))||((a9==7)&&((a1==13)&&(a5==4))))||((a9==7)&&((a1==13)&&(a5==5))))&&(input==5))))))))&&(a19==4))&&(a17==2))&&((a21==10)&&(((a11==1)||(a4==1))||!(a6==1))))){ + a0 = 0; + a5 = 4; + a2 = 1; + a9 = 10; + a4 = 0; + a21 = 11; + a1 = 13; + return 22; + } else if((((a16==7)&&((((a23==1)||(a14==1))||!(a12==1))&&(a19==5)))&&(((((a20==1)&&((a17==2)&&(!(a26==1)&&(!(a26==1)&&(((a21==10)&&(((a5==5)||(a5==6))&&(input==1)))&&!(a0==1))))))&&(a11==1))&&(a9==11))&&(a1==12)))){ + a19 = 2; + a9 = 9; + a26 = 0; + a1 = 14; + a21 = 12; + a2 = 1; + a27 = 0; + a5 = 5; + return 21; + } else if(((((!(a0==1)&&(((input==3)&&(((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))))&&(a13==1)))&&(a13==1))&&(a17==2))&&(((a1==13)&&((a19==5)&&((((a27==1)||((a16==8)&&((a23==1)&&(a6==1))))&&!(a20==1))||!(a23==1))))&&(a21==12)))){ + a20 = 1; + a8 = 1; + a9 = 8; + a15 = 1; + a1 = 14; + a21 = 11; + a19 = 4; + a5 = 4; + a14 = 1; + return 25; + } else if((((!(a0==1)&&((!(a7==1)&&((a13==1)&&((input==1)&&((a5==4)||(a5==5)))))&&!(a26==1)))&&(a9==8))&&(((a20==1)&&(!(a24==1)&&((((a1==14)&&((!(a12==1)||(a28==1))&&(a16==8)))&&(a21==10))&&(a17==2))))&&(a19==4)))){ + a26 = 0; + a19 = 1; + a1 = 12; + a12 = 1; + a9 = 7; + a16 = 7; + a5 = 4; + return -1; + } else if((((a18==1)||((a19==1)&&((a21==11)&&((a13==1)&&((a12==1)&&(a9==9))))))&&((a17==2)&&((a5==4)&&(((a16==10)&&(!(a8==1)&&((!(a27==1)&&(((input==5)&&(a20==1))&&(a3==1)))&&(a2==1))))&&(a1==13)))))){ + a6 = 1; + a1 = 12; + a28 = 1; + a21 = 12; + a5 = 6; + a16 = 8; + a23 = 1; + return 25; + } else if((((a5==6)&&((a14==1)||((a27==1)||((a19==3)&&((a17==2)&&(!(a24==1)&&(!(a12==1)||((!(a11==1)||((a13==1)&&(a2==1)))&&(a20==1)))))))))&&((a9==10)&&((a21==12)&&(((input==5)&&(a1==14))&&(a16==9)))))){ + a21 = 10; + a26 = 0; + a1 = 12; + a8 = 0; + a16 = 7; + a5 = 4; + a9 = 7; + a19 = 1; + a14 = 0; + return -1; + } else if(((((a21==10)&&((a23==1)&&((a1==14)&&((a3==1)&&((a17==2)&&(!(a20==1)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==5))))))))&&!(a0==1))&&((a16==7)&&(((a19==5)&&((!(a12==1)||(a6==1))&&!(a24==1)))||(a18==1))))){ + a9 = 11; + a5 = 6; + a16 = 8; + a18 = 0; + a19 = 4; + a8 = 0; + a11 = 1; + return 26; + } else if((((!(a20==1)&&((a11==1)&&((a28==1)&&(!(a18==1)&&((a17==2)&&((((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8))))&&(input==4)))))))&&(a21==10))&&(!(a28==1)||(((a16==9)&&((((a1==14)&&(a3==1))&&(a19==4))||!(a23==1)))||(a24==1))))){ + if((a28==1)){ + a1 = 13; + a15 = 0; + a5 = 6; + a9 = 7; + a29 = 1; + a16 = 10; + a13 = 0; + }else{ + a16 = 7; + a5 = 6; + a20 = 1; + a9 = 9; + a1 = 12; + a13 = 0; + a28 = 0; + a6 = 0; + a19 = 1; + } + return 25; + } else if(((((a16==10)&&((a1==13)&&(!(a2==1)&&((a20==1)&&(((a19==2)&&(((a24==1)&&(((a5==4)||(a5==5))&&(input==5)))&&(a21==10)))&&(a17==2))))))&&(a9==10))&&((a24==1)&&((((a2==1)&&(a24==1))&&!(a13==1))&&!(a2==1))))){ + a22 = 0; + a1 = 12; + a16 = 7; + a11 = 0; + a9 = 8; + a7 = 1; + a5 = 4; + return -1; + } else if(((((a23==1)&&(((((((a17==2)&&(input==3))&&(a9==7))&&(a5==5))&&!(a20==1))&&(a16==9))&&(a19==4)))&&(a23==1))&&(((((!(a14==1)&&((a1==14)&&(a3==1)))||(a26==1))&&(a21==10))||!(a23==1))||(a4==1)))){ + if((a2==1)){ + a19 = 2; + a18 = 1; + a1 = 12; + a20 = 1; + a8 = 1; + a9 = 9; + a28 = 0; + a16 = 7; + }else{ + a20 = 1; + a1 = 12; + a9 = 9; + a10 = 1; + a2 = 0; + a16 = 7; + a19 = 2; + } + return -1; + } else if((((a20==1)&&(((a13==1)&&((((((input==4)&&((a5==4)||(a5==5)))&&(a9==11))&&(a13==1))&&!(a14==1))&&(a19==3)))&&(a28==1)))&&(((!(a13==1)||(!(a26==1)&&(((a1==12)&&(a23==1))&&(a21==12))))&&(a17==2))&&(a16==9)))){ + a21 = 10; + a24 = 0; + a28 = 1; + a9 = 7; + a27 = 0; + a16 = 7; + a5 = 4; + a19 = 1; + return -1; + } else if(((!(a2==1)&&(!(a2==1)&&((((a27==1)&&(!(a23==1)&&((input==6)&&(a21==11))))&&!(a11==1))&&(a5==5))))&&((a16==9)&&((a20==1)&&((a9==8)&&(((a1==13)&&(((a17==2)&&(a11==1))&&(a19==2)))&&!(a3==1))))))){ + a20 = 0; + a12 = 0; + a19 = 4; + a9 = 10; + a4 = 1; + a15 = 1; + a16 = 7; + return -1; + } else if(((((a19==5)&&((a23==1)&&((a21==12)&&((a1==13)&&(input==1)))))&&!(a0==1))&&(((((!(a26==1)&&(((((a13==1)&&(a5==5))||(a8==1))&&(a16==7))&&!(a4==1)))&&(a20==1))&&(a17==2))&&(a9==8))||!(a13==1)))){ + a21 = 11; + a5 = 4; + a9 = 11; + a16 = 9; + a12 = 1; + a11 = 1; + a18 = 0; + a1 = 12; + return 21; + } else if((((a21==10)&&((a20==1)&&((((a17==2)&&((((a6==1)||(a14==1))||(a18==1))&&(a13==1)))&&(a28==1))&&(a1==14))))&&(((a3==1)&&(((a11==1)&&((a9==9)&&((input==3)&&(a5==6))))&&(a16==8)))&&(a19==4)))){ + a3 = 1; + a11 = 1; + a5 = 4; + a16 = 7; + a19 = 1; + a1 = 12; + a9 = 7; + return -1; + } else if(((!(a0==1)&&((a9==10)&&(!(a0==1)&&((a23==1)&&(a1==14)))))&&(((((a16==9)&&(((a19==3)&&(!(a26==1)&&((((input==4)&&(a21==11))&&(a23==1))&&(a2==1))))&&(a5==6)))&&!(a0==1))&&(a17==2))&&(a20==1)))){ + a1 = 12; + a9 = 7; + a21 = 10; + a12 = 1; + a23 = 1; + a5 = 4; + a16 = 7; + a14 = 0; + a19 = 1; + return -1; + } else if((((a4==1)||(((!(a20==1)&&((((a19==4)&&(a23==1))&&(a3==1))&&(a9==9)))&&!(a0==1))&&!(a27==1)))&&((a6==1)&&(((a21==10)&&(((a1==14)&&(((a16==8)&&(input==4))&&(a17==2)))&&!(a7==1)))&&(a5==6))))){ + a20 = 1; + a21 = 12; + a11 = 1; + a8 = 0; + a5 = 4; + a19 = 1; + a26 = 0; + a1 = 12; + return 23; + } else if(((((a21==11)&&((a16==8)&&(!(a12==1)||(!(a4==1)&&((a17==2)&&(!(a18==1)&&(a3==1)))))))&&(a5==4))&&(((a11==1)&&(((((a23==1)&&((a19==5)&&(input==1)))&&(a12==1))&&(a9==11))&&(a1==12)))&&(a20==1)))){ + a19 = 3; + a16 = 10; + a0 = 0; + a4 = 0; + a12 = 1; + a1 = 13; + a9 = 7; + return 21; + } else if(((((((a11==1)&&(((a28==1)&&(a19==5))&&(a11==1)))&&(a20==1))&&(a5==4))&&(a17==2))&&((!(a24==1)&&((a21==11)&&((((((input==1)&&(a1==12))&&!(a0==1))&&!(a4==1))&&!(a18==1))&&(a9==8))))&&(a16==11)))){ + a21 = 10; + a9 = 7; + a4 = 0; + a19 = 1; + a16 = 7; + a23 = 1; + a18 = 0; + return -1; + } else if((((((((((a1==12)&&(((input==5)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11))))&&(a28==1)))&&!(a14==1))&&(a21==12))&&(a17==2))&&(a6==1))&&!(a20==1))&&(a19==5))&&(((((a2==1)&&!(a8==1))||!(a11==1))&&(a16==9))||(a26==1)))){ + a7 = 1; + a5 = 4; + a19 = 1; + a20 = 1; + a25 = 0; + a10 = 0; + a9 = 11; + a21 = 11; + return -1; + } else if((((((!(a3==1)||((a19==3)&&(!(a8==1)&&(a3==1))))||!(a3==1))||!(a13==1))||(a7==1))&&((a6==1)&&((a1==12)&&((a20==1)&&(((a21==11)&&((a17==2)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==5))))&&(a16==9))))))){ + a9 = 10; + a14 = 0; + a1 = 14; + a8 = 0; + a16 = 11; + a21 = 10; + a5 = 4; + return 26; + } else if((((!(a0==1)&&((a19==4)&&(!(a7==1)&&(((a3==1)&&((a1==13)&&((input==5)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))))&&(a16==8)))))&&!(a26==1))&&((!(a28==1)||((a11==1)&&(!(a20==1)&&((a6==1)&&(a21==11)))))&&(a17==2)))){ + a19 = 1; + a1 = 12; + a9 = 7; + a21 = 10; + a5 = 4; + a20 = 1; + a16 = 7; + a24 = 0; + a12 = 1; + a27 = 0; + return -1; + } else if(((((a4==1)||((a26==1)||(((((a2==1)&&((a2==1)&&(a1==12)))||(a14==1))&&(a21==11))&&!(a27==1))))&&!(a20==1))&&((a19==4)&&(((((((a5==5)||(a5==6))&&(input==1))&&(a23==1))&&(a17==2))&&(a9==8))&&(a16==7))))){ + a21 = 10; + a27 = 0; + a6 = 1; + a5 = 4; + a20 = 1; + a9 = 7; + a19 = 1; + return -1; + } else if(((((a17==2)&&(!(a3==1)||(a11==1)))&&(a19==1))&&(((((a28==1)&&((a21==12)&&(((!(a4==1)&&((input==3)&&((((a5==5)&&(a1==14))&&(a9==7))||(((a9==11)&&((a1==13)&&(a5==6)))||((a9==7)&&((a1==14)&&(a5==4)))))))&&(a16==7))&&!(a8==1))))&&!(a20==1))&&!(a14==1))&&!(a0==1)))){ + a9 = 7; + a21 = 10; + a20 = 1; + a18 = 0; + a1 = 12; + a5 = 4; + a27 = 0; + a7 = 0; + return -1; + } else if((((((((!(a11==1)&&((((a5==4)||(a5==5))&&(input==3))&&(a7==1)))&&(a19==1))&&!(a3==1))&&(a16==10))&&!(a6==1))&&(a1==12))&&(((a4==1)&&(!(a13==1)&&((a17==2)&&(((a12==1)&&(a20==1))&&(a21==11)))))&&(a9==7)))){ + a10 = 0; + a21 = 10; + a9 = 8; + a12 = 0; + a1 = 13; + a5 = 6; + a28 = 0; + a16 = 7; + return -1; + } else if(((!(a27==1)&&(((a9==9)&&((((a2==1)&&(((a5==4)||(a5==5))&&(input==5)))&&(a17==2))&&(a1==12)))&&(a16==11)))&&((a20==1)&&((a21==11)&&((((a12==1)&&(!(a7==1)&&(!(a26==1)&&(a12==1))))&&(a19==4))||!(a12==1)))))){ + a5 = 6; + a9 = 7; + a4 = 0; + a1 = 13; + a19 = 2; + a0 = 0; + a2 = 1; + return 21; + } else if((((((a21==11)&&(((((a17==2)&&(a6==1))||!(a11==1))&&(a28==1))||(a27==1)))||(a27==1))&&!(a20==1))&&((a16==9)&&(((a3==1)&&(((a3==1)&&((input==5)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))&&(a1==13)))&&(a19==3))))){ + if((a6==1)){ + a4 = 1; + a1 = 14; + a9 = 9; + a2 = 0; + a20 = 1; + a19 = 4; + a21 = 12; + a5 = 5; + a25 = 0; + }else{ + a19 = 5; + a16 = 10; + a5 = 4; + a28 = 0; + a9 = 10; + a14 = 1; + a21 = 10; + a3 = 0; + } + return 26; + } else if((((a3==1)&&((a21==10)&&(((((a12==1)&&((((input==3)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&(a19==5))&&!(a18==1)))&&!(a0==1))&&(a3==1))&&(a1==13))))&&(!(a28==1)||((!(a20==1)&&((a17==2)&&(a3==1)))&&(a16==8))))){ + a20 = 1; + a0 = 0; + a1 = 12; + a12 = 1; + a19 = 4; + a5 = 4; + a16 = 9; + a26 = 0; + a9 = 9; + return 22; + } else if((((a21==10)&&(!(a18==1)&&((a9==9)&&((a1==14)&&((!(a18==1)&&(((((a20==1)&&((input==5)&&((a5==4)||(a5==5))))&&!(a8==1))&&!(a14==1))&&!(a27==1)))&&(a17==2))))))&&((a19==2)&&(!(a3==1)||((a12==1)&&(a16==9)))))){ + a20 = 0; + a13 = 1; + a2 = 1; + a1 = 12; + a6 = 1; + a16 = 8; + a19 = 3; + a9 = 11; + a5 = 4; + return 21; + } else if((((a3==1)&&(((!(a7==1)&&(!(a14==1)&&((a16==9)&&((input==6)&&(a19==3)))))&&(a17==2))&&(a12==1)))&&((a21==12)&&((a1==14)&&(((a5==5)&&((a9==9)&&((!(a24==1)&&(a6==1))&&(a3==1))))&&!(a20==1)))))){ + a19 = 1; + a1 = 13; + a29 = 1; + a9 = 10; + a22 = 1; + a7 = 1; + a21 = 10; + a20 = 1; + a16 = 7; + return 21; + } else if(((!(a0==1)&&((((a21==12)&&(!(a14==1)&&(((input==5)&&((a5==4)||(a5==5)))&&!(a20==1))))&&(a17==2))&&(a1==13)))&&(((a16==10)&&((a19==1)&&(((a9==8)&&((!(a24==1)&&(a6==1))&&!(a14==1)))&&!(a14==1))))&&!(a24==1)))){ + a20 = 1; + a29 = 1; + a5 = 5; + a27 = 1; + a16 = 8; + a9 = 7; + a21 = 11; + a11 = 0; + return -1; + } else if((((a14==1)&&(!(a28==1)&&(((input==5)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9))))&&(a16==10))))&&((((a4==1)&&((a17==2)&&((a1==13)&&((a8==1)&&((a19==2)&&(((a28==1)&&!(a28==1))&&(a20==1)))))))&&!(a28==1))&&(a21==12)))){ + a15 = 0; + a19 = 1; + a21 = 10; + a9 = 9; + a29 = 1; + a24 = 1; + a16 = 7; + a5 = 6; + return 23; + } else if((((a1==14)&&(((a12==1)&&((a5==6)&&(((a9==7)&&(input==4))&&(a16==10))))&&(a28==1)))&&((a21==12)&&((a26==1)||(!(a23==1)||(!(a20==1)&&(((a17==2)&&(!(a11==1)||((a2==1)&&(a19==2))))&&!(a27==1)))))))){ + a20 = 1; + a5 = 5; + a19 = 1; + a9 = 8; + a24 = 1; + a1 = 12; + a21 = 10; + a0 = 1; + a12 = 0; + a16 = 7; + return -1; + } else if((((!(a20==1)&&(((a9==7)&&((a12==1)&&((input==6)&&((a5==4)||(a5==5)))))&&!(a8==1)))&&(a2==1))&&(!(a6==1)||((a16==8)&&((a12==1)&&(((a17==2)&&((((a11==1)&&(a19==2))&&(a1==13))&&(a21==12)))&&(a3==1))))))){ + a5 = 4; + a22 = 0; + a9 = 8; + a20 = 1; + a16 = 9; + a18 = 1; + a1 = 14; + a24 = 1; + a19 = 3; + return 25; + } else if(((((a7==1)||((a21==12)&&(((a17==2)&&((a11==1)&&(!(a24==1)&&((a12==1)||(a27==1)))))||!(a12==1))))||(a24==1))&&(((((a19==1)&&((a1==12)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4))))&&(a16==9))&&(a20==1))&&(a9==10)))){ + a20 = 0; + a21 = 11; + a3 = 1; + a18 = 0; + a19 = 4; + a9 = 8; + a16 = 8; + a5 = 5; + return -1; + } else if((((!(a24==1)&&(((((a9==10)&&((a17==2)&&(input==4)))&&!(a4==1))&&(a19==1))&&!(a0==1)))&&(a21==11))&&((a1==13)&&((a16==7)&&(((a28==1)&&((a5==4)&&((a13==1)&&((a6==1)&&(a23==1)))))&&!(a20==1)))))){ + a1 = 12; + a9 = 7; + a20 = 1; + a2 = 1; + a11 = 1; + a26 = 0; + a21 = 10; + return -1; + } else if((((a27==1)||((!(a23==1)||((!(a26==1)&&(!(a6==1)||(((a9==10)&&(a23==1))&&(a1==14))))&&(a21==10)))&&(a3==1)))&&(((a17==2)&&(((((input==4)&&(a5==4))&&!(a20==1))&&(a19==4))&&(a16==8)))&&!(a4==1)))){ + a1 = 12; + a21 = 11; + a9 = 8; + a13 = 1; + a5 = 5; + a7 = 0; + a6 = 1; + return 22; + } else if((((a28==1)&&(((a16==8)&&(((a3==1)&&((a28==1)&&((a5==5)&&(input==4))))&&(a9==10)))&&(a21==11)))&&((((((a1==13)&&(!(a11==1)||((a6==1)&&(a11==1))))&&!(a7==1))&&(a17==2))&&(a19==5))&&!(a20==1)))){ + a20 = 1; + a23 = 0; + a28 = 0; + a19 = 3; + a16 = 11; + a24 = 1; + return 22; + } else if((((a4==1)||((!(a20==1)&&(a3==1))&&(a16==7)))&&((a2==1)&&(!(a14==1)&&((a3==1)&&(((a28==1)&&((((((((a1==12)&&(a5==4))&&(a9==7))&&(a19==1))&&(a21==12))||((((a19==5)&&((a9==11)&&((a5==5)&&(a1==14))))&&(a21==11))||(((a19==5)&&((a9==11)&&((a5==6)&&(a1==14))))&&(a21==11))))&&(input==5))&&(a17==2)))&&(a6==1))))))){ + a4 = 0; + a21 = 10; + a19 = 1; + a20 = 1; + a9 = 7; + a12 = 1; + a1 = 12; + a5 = 4; + a28 = 1; + return -1; + } else if(((((a16==10)&&((!(a4==1)&&((a11==1)&&(a1==13)))&&!(a20==1)))&&(a17==2))&&((((!(a18==1)&&((a11==1)&&((!(a24==1)&&(((input==4)&&((a5==4)||(a5==5)))&&!(a26==1)))&&!(a14==1))))&&(a19==1))&&(a21==10))&&(a9==11)))){ + a1 = 12; + a5 = 5; + a20 = 1; + a16 = 7; + a18 = 1; + a3 = 0; + a24 = 1; + return -1; + } else if((((((a16==8)&&((a28==1)&&((a20==1)&&(!(a26==1)&&((((input==6)&&(a21==11))&&(a5==4))&&!(a7==1))))))&&(a17==2))&&(a1==12))&&((((a9==11)&&((a19==2)&&(!(a7==1)&&(a23==1))))||(a24==1))||(a0==1)))){ + a19 = 1; + a11 = 1; + a12 = 1; + a9 = 7; + a23 = 1; + a21 = 10; + a16 = 7; + return -1; + } else if((((a13==1)&&((a28==1)&&((a2==1)&&((a17==2)&&((a16==7)&&(((((a9==11)&&((a5==5)&&(a1==13)))||((a9==11)&&((a5==6)&&(a1==13))))||(((a5==4)&&(a1==14))&&(a9==7)))&&(input==5)))))))&&(((a0==1)||(((a20==1)&&((a21==10)&&((a19==5)&&(a11==1))))||!(a2==1)))&&!(a27==1)))){ + a5 = 5; + a1 = 12; + a19 = 4; + a21 = 12; + a12 = 1; + a18 = 0; + a14 = 0; + a9 = 8; + return 25; + } else if(((((a3==1)&&((a19==3)&&(((!(a6==1)||((a3==1)&&(a12==1)))&&!(a4==1))||(a27==1))))&&!(a20==1))&&((((a1==14)&&(((a13==1)&&(((a21==12)&&(input==4))&&(a17==2)))&&(a16==8)))&&(a9==8))&&(a5==4)))){ + a16 = 7; + a20 = 1; + a19 = 2; + a9 = 7; + a1 = 13; + a21 = 10; + a12 = 0; + a10 = 0; + a25 = 0; + return 25; + } else if(((((a5==6)&&(!(a14==1)&&((a19==1)&&(a6==1))))||!(a11==1))&&((a16==7)&&((a1==12)&&((a12==1)&&(!(a0==1)&&(((((a3==1)&&((a17==2)&&((input==1)&&!(a20==1))))&&(a21==12))&&!(a27==1))&&(a9==7)))))))){ + a14 = 0; + a9 = 11; + a1 = 14; + a16 = 10; + a24 = 0; + a20 = 1; + a3 = 1; + a5 = 4; + a21 = 11; + return 25; + } else if((((a4==1)||(((a23==1)&&(!(a3==1)||(a28==1)))&&(a3==1)))&&((!(a20==1)&&((a19==4)&&(((((a16==8)&&((((input==1)&&((a5==5)||(a5==6)))&&(a17==2))&&!(a4==1)))&&(a21==12))&&(a1==14))&&!(a18==1))))&&(a9==7)))){ + a19 = 1; + a21 = 10; + a20 = 1; + a5 = 6; + a26 = 1; + a3 = 0; + a1 = 12; + a10 = 0; + a16 = 7; + return 23; + } else if((((a17==2)&&((a12==1)&&(((a20==1)&&(a6==1))&&(a9==8))))&&(((a1==14)&&(((((!(a0==1)&&(((a19==3)&&((input==5)&&(a16==10)))&&!(a7==1)))&&(a21==11))&&(a23==1))&&(a6==1))&&!(a7==1)))&&(a5==4)))){ + a9 = 9; + a5 = 5; + a21 = 10; + a14 = 0; + a16 = 7; + a7 = 0; + a19 = 2; + a1 = 13; + a13 = 1; + return 25; + } else if((((((!(a20==1)&&((!(a28==1)||((a23==1)&&(a28==1)))||(a26==1)))&&!(a7==1))&&(a3==1))&&(a1==13))&&((((((a19==1)&&((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))&&(input==6)))&&!(a24==1))&&(a21==10))&&(a16==9))&&(a17==2)))){ + a10 = 0; + a1 = 12; + a22 = 0; + a9 = 7; + a19 = 5; + a5 = 5; + a16 = 7; + a0 = 1; + return -1; + } else if((((((a21==12)&&(((a16==10)&&(!(a3==1)||(((a3==1)&&(a17==2))&&!(a27==1))))&&!(a24==1)))||!(a3==1))&&!(a8==1))&&(((!(a24==1)&&((input==1)&&((((a9==11)&&((a1==13)&&(a5==5)))||((a9==11)&&((a5==6)&&(a1==13))))||(((a5==4)&&(a1==14))&&(a9==7)))))&&(a19==2))&&!(a20==1)))){ + a23 = 0; + a19 = 1; + a21 = 10; + a16 = 7; + a9 = 9; + a20 = 1; + a5 = 4; + a26 = 1; + a1 = 14; + a4 = 1; + return 21; + } else if(((((!(a27==1)&&(!(a11==1)||(a3==1)))||(a0==1))||(a8==1))&&((a21==10)&&((((!(a26==1)&&((a16==8)&&(((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==1))||((a19==2)&&(((a1==12)&&(a5==4))&&(a9==7))))&&(input==4))))&&(a20==1))&&(a17==2))&&(a12==1))))){ + a2 = 1; + a16 = 7; + a1 = 12; + a5 = 4; + a13 = 1; + a9 = 7; + a19 = 1; + return -1; + } else if((((a16==7)&&((a19==4)&&((a17==2)&&((((a1==14)&&((a12==1)&&(a20==1)))&&(a9==9))&&!(a18==1)))))&&(((a12==1)&&(!(a14==1)&&(((a12==1)&&(!(a14==1)&&(((a5==5)||(a5==6))&&(input==4))))&&!(a8==1))))&&(a21==12)))){ + a21 = 10; + a5 = 4; + a18 = 0; + a9 = 7; + a6 = 1; + a19 = 1; + a1 = 12; + a27 = 0; + return -1; + } else if((((a1==13)&&(((((((((!(a23==1)||(a28==1))&&(a21==11))&&(a20==1))||!(a3==1))||!(a13==1))&&(a9==10))&&(a12==1))&&(a13==1))&&(a16==10)))&&((a19==3)&&(((((a5==5)||(a5==6))&&(input==1))&&(a6==1))&&(a17==2))))){ + a21 = 10; + a1 = 12; + a5 = 4; + a24 = 0; + a19 = 1; + a23 = 1; + a16 = 7; + a7 = 0; + a9 = 7; + return -1; + } else if((((a19==4)&&(((((((input==1)&&((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4))))&&!(a0==1))&&!(a7==1))&&(a17==2))&&(a12==1))&&(a21==12)))&&((a16==8)&&((a3==1)&&((a1==13)&&(((!(a26==1)&&(a2==1))&&(a20==1))||(a0==1))))))){ + a19 = 1; + a5 = 4; + a18 = 0; + a21 = 10; + a4 = 0; + a16 = 7; + a11 = 1; + a1 = 12; + a9 = 7; + return -1; + } else if((((!(a20==1)&&((a9==10)&&(((a19==1)&&((a5==4)&&((a16==11)&&((!(a14==1)&&(((input==1)&&(a1==13))&&!(a14==1)))&&(a17==2)))))&&!(a4==1))))&&!(a26==1))&&((!(a7==1)&&((a28==1)||!(a28==1)))&&(a21==10)))){ + a15 = 0; + a5 = 6; + a9 = 9; + a1 = 12; + a16 = 7; + a28 = 0; + a20 = 1; + a22 = 1; + return 26; + } else if((((a9==9)&&((!(a23==1)||(((a28==1)||(a14==1))&&(a16==10)))||!(a12==1)))&&((a21==12)&&((a19==3)&&(((a17==2)&&(!(a26==1)&&((a1==13)&&((!(a18==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a20==1)))))&&!(a26==1)))))){ + a25 = 1; + a1 = 14; + a16 = 7; + a19 = 1; + a5 = 6; + a21 = 10; + a3 = 0; + a9 = 8; + a20 = 1; + a2 = 0; + return 21; + } else if((((a28==1)&&((a1==13)&&((((a9==7)&&(a2==1))&&(a5==4))&&(a21==11))))&&(((((a2==1)&&((a16==9)&&(((((input==1)&&(a20==1))&&(a13==1))&&(a19==2))&&!(a27==1))))&&(a17==2))&&!(a24==1))&&!(a4==1)))){ + if((a22==1)){ + a19 = 5; + a0 = 0; + a13 = 1; + a16 = 7; + a4 = 0; + a1 = 14; + a9 = 11; + a21 = 10; + a20 = 0; + }else{ + a19 = 4; + a16 = 8; + a9 = 10; + a1 = 14; + a3 = 1; + a18 = 0; + a21 = 12; + a14 = 0; + } + return 25; + } else if((((a21==12)&&((a16==10)&&(((a11==1)&&(!(a20==1)&&((a12==1)&&((!(a8==1)&&((input==3)&&((a5==5)||(a5==6))))&&(a19==4)))))&&!(a26==1))))&&((a17==2)&&(((a11==1)&&(((a13==1)&&(a1==14))&&!(a26==1)))&&(a9==8))))){ + a10 = 0; + a5 = 5; + a1 = 12; + a19 = 2; + a16 = 8; + a3 = 0; + a26 = 1; + return 25; + } else if(((!(a28==1)||((a20==1)&&(((((a19==1)&&(a6==1))&&(a21==10))||!(a2==1))&&(a17==2))))&&(!(a8==1)&&(((a1==13)&&((((a2==1)&&((input==4)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))))&&!(a4==1))&&(a16==10)))&&!(a7==1))))){ + a13 = 1; + a27 = 0; + a18 = 0; + a9 = 7; + a1 = 12; + a5 = 4; + a16 = 7; + return -1; + } else if((((a5==4)&&(!(a3==1)||(((!(a24==1)&&(((a11==1)&&((a2==1)&&(a21==11)))&&(a12==1)))&&(a9==11))&&(a17==2))))&&((a19==3)&&((a1==12)&&(((a23==1)&&((a3==1)&&((input==5)&&(a20==1))))&&(a16==8)))))){ + a19 = 1; + a6 = 1; + a5 = 6; + a20 = 0; + a23 = 1; + a21 = 10; + a8 = 0; + return 23; + } else if((((a1==12)&&((a18==1)||((((!(a2==1)||(((a13==1)||(a0==1))||!(a23==1)))&&(a16==8))&&(a17==2))&&(a21==10))))&&(((a9==10)&&((((a5==5)&&((a19==1)&&(input==3)))&&!(a4==1))&&(a13==1)))&&!(a20==1)))){ + a20 = 1; + a16 = 7; + a5 = 4; + a23 = 1; + a9 = 7; + a3 = 1; + return -1; + } else if(((((a17==2)&&((((((a18==1)||(!(a3==1)||((a13==1)&&(a1==12))))&&(a16==9))&&(a23==1))&&(a5==4))||!(a28==1)))||(a4==1))&&((((a20==1)&&((a19==1)&&((a21==12)&&(input==1))))&&(a9==11))&&(a13==1)))){ + a7 = 0; + a2 = 1; + a19 = 5; + a4 = 0; + a1 = 14; + a21 = 11; + return 21; + } else if(((((((a9==10)&&((!(a27==1)&&((a28==1)||(a4==1)))&&(a19==3)))&&(a3==1))&&(a21==12))&&(a1==12))&&(((a2==1)&&((a20==1)&&((a16==11)&&((((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&(a23==1))&&(a17==2)))))&&!(a4==1)))){ + a26 = 0; + a1 = 14; + a0 = 0; + a23 = 1; + a19 = 4; + a5 = 4; + return 26; + } else if((((((a19==4)&&((((((((input==1)&&((a5==5)||(a5==6)))&&(a12==1))&&(a12==1))&&(a23==1))&&(a17==2))&&(a13==1))&&(a16==8)))&&(a6==1))&&(a21==11))&&(((a20==1)&&((a1==14)&&((a3==1)&&(a9==7))))&&!(a0==1)))){ + a4 = 0; + a5 = 5; + a19 = 2; + a9 = 8; + a16 = 10; + a13 = 1; + return 25; + } else if(((((a9==11)&&((a16==9)&&(((((((a5==5)||(a5==6))&&(input==6))&&!(a26==1))&&!(a7==1))&&!(a0==1))&&(a3==1))))&&(a21==12))&&((a20==1)&&(((a1==13)&&((((a19==3)&&(a11==1))&&(a17==2))||!(a13==1)))||(a24==1))))){ + a21 = 10; + a23 = 1; + a19 = 1; + a9 = 7; + a16 = 7; + a7 = 0; + a5 = 4; + a27 = 0; + a1 = 12; + return -1; + } else if(((((a16==9)&&(((a24==1)||(!(a20==1)&&((a21==10)&&(a2==1))))&&(a1==14)))&&(a13==1))&&((((a11==1)&&(((a17==2)&&((a9==8)&&(((input==1)&&((a5==4)||(a5==5)))&&(a19==1))))&&!(a4==1)))&&!(a27==1))&&!(a8==1)))){ + if((a14==1)){ + a1 = 12; + a9 = 9; + a5 = 6; + a0 = 1; + a20 = 1; + a19 = 5; + a22 = 0; + a11 = 0; + }else{ + a5 = 6; + a21 = 11; + a25 = 0; + a6 = 0; + a16 = 8; + a20 = 1; + a9 = 11; + a24 = 1; + a19 = 5; + } + return -1; + } else if(((((((a21==12)&&(((a19==5)&&(input==4))&&(a5==5)))&&(a17==2))&&(a16==7))&&(a20==1))&&(!(a28==1)||((((!(a11==1)||(((a9==7)&&((a12==1)&&!(a18==1)))&&(a6==1)))||!(a2==1))&&(a1==14))||!(a23==1))))){ + a5 = 4; + a14 = 0; + a21 = 10; + a19 = 1; + a2 = 1; + a27 = 0; + a1 = 12; + return -1; + } else if((((((a12==1)||!(a3==1))&&!(a8==1))&&(a16==9))&&(!(a20==1)&&((((a5==5)&&((a17==2)&&((!(a27==1)&&((!(a27==1)&&(((input==4)&&(a21==12))&&(a19==5)))&&!(a14==1)))&&!(a8==1))))&&(a1==13))&&(a9==8))))){ + a19 = 1; + a1 = 12; + a29 = 0; + a21 = 10; + a16 = 7; + a22 = 0; + a20 = 1; + a9 = 10; + a5 = 6; + a25 = 0; + return -1; + } else if(((((a21==12)&&((((a3==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4)))&&(a17==2))&&(a19==4)))&&(a16==10))&&((a24==1)||(((a13==1)&&(!(a4==1)&&((a1==12)&&((!(a23==1)||((a11==1)&&(a20==1)))||!(a6==1)))))&&(a9==11))))){ + a4 = 0; + a27 = 0; + a1 = 14; + a5 = 5; + a16 = 9; + a19 = 1; + a21 = 10; + a18 = 0; + a9 = 7; + return -1; + } else if((((a9==10)&&(!(a26==1)&&((a19==3)&&(!(a24==1)&&(((!(a20==1)&&((input==4)&&(a1==12)))&&!(a14==1))&&(a5==6))))))&&(((a17==2)&&(((a8==1)||(!(a23==1)||((a13==1)&&(a23==1))))&&(a21==12)))&&(a16==8)))){ + a21 = 10; + a20 = 1; + a12 = 0; + a5 = 5; + a26 = 1; + a16 = 7; + a29 = 0; + a19 = 1; + return -1; + } else if(((!(a6==1)&&((a19==1)&&(((a21==12)&&((a16==10)&&((a5==6)&&(a3==1))))&&!(a23==1))))&&(((a9==9)&&((((a1==12)&&(((a0==1)&&((a17==2)&&(input==4)))&&!(a3==1)))&&(a8==1))&&(a20==1)))&&(a7==1)))){ + a6 = 0; + a5 = 5; + a19 = 5; + a1 = 13; + a27 = 1; + a21 = 11; + a16 = 11; + a22 = 0; + a9 = 7; + return -1; + } else if(((((a3==1)&&((((input==6)&&((((((a16==8)&&(((a5==5)&&(a1==14))&&(a9==11)))&&(a19==5))&&(a21==12))||(((a19==5)&&((((a5==6)&&(a1==14))&&(a9==11))&&(a16==8)))&&(a21==12)))||((a21==10)&&((a19==1)&&((a16==9)&&((a9==7)&&((a5==4)&&(a1==12))))))))&&!(a7==1))&&(a17==2)))&&(a11==1))&&((((a14==1)||((a28==1)||(a4==1)))&&(a20==1))||(a27==1)))){ + a5 = 6; + a1 = 13; + a9 = 10; + a16 = 8; + a28 = 1; + a21 = 10; + a0 = 0; + a19 = 5; + a2 = 1; + return -1; + } else if((((a27==1)||(((((a12==1)&&((a11==1)&&(a1==14)))&&(a12==1))&&(a20==1))&&(a28==1)))&&((((a21==11)&&((a16==9)&&((a28==1)&&(((input==3)&&(((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))))&&(a17==2)))))&&(a19==1))&&(a11==1)))){ + a21 = 10; + a16 = 7; + a2 = 1; + a14 = 0; + a9 = 7; + a1 = 12; + a5 = 4; + a11 = 1; + return -1; + } else if((((a21==11)&&((((a3==1)&&(((a17==2)&&((input==4)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))&&(a28==1)))&&(a19==3))&&!(a20==1)))&&((a1==14)&&((a16==8)&&((a2==1)&&((((a28==1)&&(a3==1))||(a7==1))&&(a11==1))))))){ + a0 = 0; + a5 = 5; + a20 = 1; + a19 = 4; + a1 = 12; + a9 = 11; + a13 = 1; + a12 = 1; + return 22; + } else if((((a6==1)&&(!(a28==1)||((a12==1)&&(a13==1))))&&(((a17==2)&&(!(a27==1)&&((a21==10)&&((((a2==1)&&((a23==1)&&(((input==5)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(a1==14))))&&(a16==10))&&(a20==1)))))&&(a19==2)))){ + a9 = 11; + a19 = 5; + a23 = 1; + a16 = 11; + a1 = 13; + a5 = 4; + a7 = 0; + return 21; + } else if((((((((((a5==5)||(a5==6))&&(input==3))&&!(a14==1))&&(a12==1))&&(a1==12))&&!(a20==1))&&(a9==10))&&((a19==5)&&((a17==2)&&(((a21==11)&&((((a3==1)&&((a18==1)||(a13==1)))&&!(a14==1))||!(a23==1)))&&(a16==7)))))){ + a5 = 4; + a28 = 1; + a21 = 10; + a19 = 1; + a8 = 0; + a20 = 1; + a9 = 7; + a23 = 1; + return -1; + } else if((((a20==1)&&((a21==11)&&((a19==1)&&(((a13==1)&&(((((input==6)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5))))&&(a3==1))&&!(a8==1))&&(a16==11)))&&(a1==13)))))&&(!(a4==1)&&(((a24==1)||((a17==2)&&(a12==1)))&&!(a24==1))))){ + a18 = 0; + a19 = 3; + a1 = 12; + a5 = 6; + a21 = 12; + a28 = 1; + a9 = 10; + a16 = 9; + return 21; + } else if(((!(a26==1)&&(!(a4==1)&&((a13==1)&&((a17==2)&&(input==1)))))&&(((a2==1)&&((a3==1)&&((a5==6)&&((a9==8)&&((a1==13)&&((a21==12)&&((a16==7)&&((a19==2)&&((a11==1)&&(a20==1))))))))))||!(a28==1)))){ + a12 = 1; + a19 = 1; + a9 = 7; + a21 = 10; + a2 = 1; + a28 = 1; + a5 = 4; + a1 = 12; + return -1; + } else if(((!(a8==1)&&(!(a26==1)&&(!(a24==1)&&((a9==11)&&((((input==6)&&((a5==5)||(a5==6)))&&(a20==1))&&(a19==4))))))&&((((a28==1)&&(((a16==11)&&(((a17==2)&&(a28==1))||!(a3==1)))&&(a1==13)))&&(a21==11))||(a4==1)))){ + a28 = 1; + a1 = 12; + a21 = 10; + a16 = 7; + a9 = 7; + a5 = 4; + a19 = 1; + a18 = 0; + a7 = 0; + return -1; + } else if(((((((a21==11)&&((!(a20==1)&&(!(a18==1)&&(!(a26==1)&&(((a5==4)||(a5==5))&&(input==3)))))&&!(a26==1)))&&(a6==1))&&(a1==12))&&(a17==2))&&((a4==1)||((a3==1)&&((((a19==5)&&(a28==1))&&(a16==8))&&(a9==8)))))){ + a9 = 7; + a8 = 0; + a20 = 1; + a5 = 4; + a16 = 7; + a19 = 1; + a14 = 0; + a21 = 10; + return -1; + } else if((((a16==11)&&((a1==13)&&((!(a26==1)&&(((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4)))&&(input==3)))&&(a12==1))))&&((((a11==1)&&(!(a24==1)&&(((a2==1)&&(((a3==1)&&(a20==1))&&!(a26==1)))&&(a21==10))))&&(a19==4))&&(a17==2)))){ + a16 = 7; + a11 = 1; + a28 = 1; + a9 = 7; + a1 = 12; + a19 = 1; + a26 = 0; + a5 = 4; + return -1; + } else if((((a21==10)&&((a17==2)&&(((a9==9)&&((a16==11)&&((a28==1)&&(((!(a18==1)&&(!(a14==1)&&((input==6)&&((a5==5)||(a5==6)))))&&!(a27==1))&&!(a8==1)))))&&(a20==1))))&&((((a8==1)||(a28==1))&&(a1==13))&&(a19==4)))){ + a5 = 4; + a1 = 12; + a28 = 1; + a19 = 1; + a9 = 7; + a7 = 0; + a14 = 0; + a16 = 7; + return -1; + } else if(((((a20==1)&&((((a6==1)&&(a16==7))&&(a5==6))&&(a9==11)))&&(a19==5))&&((a8==1)&&(((a17==2)&&(((a1==14)&&((((a4==1)&&((a21==10)&&(input==1)))&&!(a12==1))&&!(a2==1)))&&(a24==1)))&&(a0==1))))){ + a10 = 0; + a18 = 1; + a19 = 3; + a9 = 8; + a5 = 4; + return -1; + } else if((((a1==13)&&((a21==11)&&((a2==1)&&!(a20==1))))&&((a17==2)&&((a9==9)&&((((a12==1)&&((a6==1)&&(!(a14==1)&&((((a12==1)&&(((a5==4)||(a5==5))&&(input==1)))&&(a23==1))&&(a16==10)))))&&(a19==5))&&!(a18==1)))))){ + a16 = 7; + a9 = 11; + a21 = 10; + a1 = 12; + a20 = 1; + a26 = 1; + a19 = 1; + a29 = 0; + a5 = 4; + a23 = 0; + return -1; + } else if((((((a20==1)&&(((!(a24==1)&&(a23==1))&&(a19==1))&&(a1==13)))&&!(a8==1))&&(a16==9))&&((a6==1)&&((a3==1)&&(((a17==2)&&(((a3==1)&&((((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7))))&&(input==6)))&&(a11==1)))&&(a21==12)))))){ + a9 = 7; + a12 = 1; + a1 = 12; + a21 = 10; + a16 = 7; + a5 = 4; + a28 = 1; + return -1; + } else if((((a16==8)&&((!(a13==1)||((!(a23==1)||(!(a20==1)&&(a28==1)))||(a24==1)))&&(a1==14)))&&(((a17==2)&&((a28==1)&&(((!(a14==1)&&((((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(input==1)))&&(a21==10))&&(a12==1))))&&(a19==5)))){ + a20 = 1; + a9 = 10; + a8 = 0; + a18 = 0; + a19 = 3; + a5 = 4; + a21 = 12; + a14 = 0; + a1 = 12; + return 25; + } else if((((((a8==1)&&((((a16==7)&&((a23==1)&&(a26==1)))&&(a9==11))&&(a4==1)))&&(a1==14))&&!(a20==1))&&((a17==2)&&(((!(a23==1)&&((!(a13==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))&&(a8==1)))&&(a21==12))&&(a19==2))))){ + a0 = 1; + a25 = 1; + a5 = 5; + a21 = 10; + a20 = 1; + a9 = 8; + a19 = 1; + a22 = 0; + return -1; + } else if(((!(a20==1)&&(!(a26==1)&&(!(a0==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a17==2)))))&&(((a19==5)&&(((a21==11)&&(!(a3==1)||(((!(a2==1)||((a28==1)&&(a1==14)))||(a27==1))&&(a9==8))))&&(a16==10)))&&!(a26==1)))){ + if((a23==1)){ + a15 = 1; + a19 = 2; + a20 = 1; + a16 = 7; + a9 = 11; + a21 = 12; + a5 = 6; + a28 = 0; + a22 = 1; + }else{ + a1 = 13; + a5 = 5; + a21 = 10; + a20 = 1; + a19 = 1; + a16 = 7; + a7 = 1; + a6 = 0; + a9 = 10; + } + return -1; + } else if((((a12==1)&&((a19==1)&&(((a17==2)&&((a3==1)&&(a11==1)))&&!(a27==1))))&&(((((!(a14==1)&&(((((a16==10)&&(input==4))&&(a9==7))&&(a20==1))&&(a21==12)))&&(a1==12))&&(a6==1))&&(a5==6))&&!(a14==1)))){ + a5 = 4; + a13 = 1; + a8 = 0; + a21 = 10; + a26 = 0; + a16 = 7; + return -1; + } else if(((((a11==1)&&(!(a12==1)||((((a27==1)||(a11==1))&&!(a4==1))&&!(a20==1))))&&(a17==2))&&(((a2==1)&&((a1==14)&&((((((a16==9)&&(input==3))&&(a9==7))&&(a5==6))&&(a21==11))&&(a19==4))))&&(a11==1)))){ + a9 = 8; + a24 = 1; + a19 = 2; + a16 = 7; + a2 = 0; + a21 = 10; + a4 = 1; + a20 = 1; + a1 = 12; + return -1; + } else if((((((input==5)&&(((((a9==11)&&((a1==14)&&(a5==6)))&&(a19==3))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==4)))||(((a9==7)&&((a5==5)&&(a1==12)))&&(a19==4))))&&(a16==10))&&(a13==1))&&((((a7==1)||((!(a6==1)||((a17==2)&&((a21==10)&&((a20==1)&&(a12==1)))))||(a8==1)))&&(a13==1))||(a7==1)))){ + a12 = 1; + a1 = 12; + a4 = 0; + a19 = 1; + a5 = 4; + a3 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if((((a20==1)&&(!(a8==1)&&(!(a23==1)||((a21==12)&&(!(a28==1)||(!(a6==1)||((a17==2)&&((a28==1)&&(a19==4)))))))))&&(!(a0==1)&&((a6==1)&&((a16==7)&&((((a9==11)&&((a1==12)&&(a5==6)))||((a9==7)&&((a1==13)&&(a5==4))))&&(input==4))))))){ + a19 = 5; + a27 = 0; + a16 = 8; + a5 = 6; + a9 = 7; + a7 = 0; + a24 = 0; + a1 = 12; + return 25; + } else if((((!(a26==1)&&((a14==1)||((a8==1)||((a28==1)&&(a12==1)))))&&(a20==1))&&((a17==2)&&((a16==11)&&(((a19==4)&&(!(a26==1)&&(!(a27==1)&&((a21==12)&&((((a5==4)||(a5==5))&&(input==1))&&(a1==13))))))&&(a9==11)))))){ + a21 = 10; + a2 = 1; + a1 = 12; + a16 = 7; + a0 = 0; + a4 = 0; + a9 = 7; + a5 = 4; + a19 = 1; + return -1; + } else if(((((a19==2)&&(!(a13==1)||((a6==1)||(a0==1))))&&!(a20==1))&&((a21==10)&&((a17==2)&&((!(a4==1)&&((a5==4)&&((((a16==11)&&(!(a4==1)&&((input==5)&&(a1==14))))&&!(a7==1))&&(a6==1))))&&(a9==8)))))){ + a4 = 1; + a0 = 1; + a21 = 11; + a25 = 0; + a20 = 1; + a16 = 8; + return -1; + } else if((((((((a23==1)&&((a17==2)&&((a1==13)&&((input==6)&&(a20==1)))))&&!(a27==1))&&!(a18==1))&&(a16==7))&&!(a24==1))&&(((a5==4)&&((((a9==11)&&((a19==2)&&(a28==1)))||(a24==1))&&(a21==10)))&&(a3==1)))){ + a26 = 0; + a27 = 0; + a9 = 8; + a1 = 14; + a5 = 5; + a28 = 1; + a19 = 3; + return 25; + } else if((((a19==4)&&((!(a18==1)&&((a9==8)&&((a21==11)&&((!(a20==1)&&((a12==1)&&!(a26==1)))&&(a1==14)))))||(a27==1)))&&((((a6==1)&&(((((a5==4)||(a5==5))&&(input==3))&&(a16==9))&&(a17==2)))&&!(a26==1))&&!(a14==1)))){ + if((a15==1)){ + a21 = 10; + a20 = 1; + a19 = 1; + a9 = 11; + a4 = 1; + a25 = 0; + a5 = 5; + a16 = 7; + a10 = 1; + }else{ + a5 = 4; + a19 = 2; + a24 = 1; + a1 = 12; + a28 = 0; + a21 = 10; + a13 = 0; + a20 = 1; + a16 = 7; + a9 = 10; + } + return -1; + } else if((((((!(a20==1)&&((a16==10)&&(a23==1)))||(a4==1))&&(a23==1))&&(a17==2))&&((a21==10)&&(!(a27==1)&&((a9==10)&&((a19==4)&&((((a1==13)&&(((input==4)&&((a5==5)||(a5==6)))&&(a6==1)))&&!(a7==1))&&!(a26==1)))))))){ + a16 = 9; + a1 = 14; + a21 = 12; + a5 = 4; + a29 = 1; + a6 = 0; + a28 = 0; + a20 = 1; + return 26; + } else if((((a21==10)&&(((a28==1)&&((a1==14)&&((input==6)&&(((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))))))&&(a19==3)))&&((((a16==7)&&(((a20==1)&&(!(a12==1)||(((a17==2)&&(a13==1))||(a14==1))))&&!(a14==1)))||!(a6==1))||(a18==1)))){ + a19 = 1; + a1 = 13; + a5 = 4; + a9 = 11; + a6 = 1; + a3 = 1; + a26 = 0; + a21 = 11; + a20 = 0; + return 23; + } else if((((((a1==13)&&(!(a0==1)&&(!(a14==1)&&(!(a20==1)&&(((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))&&(input==6))))))&&(a12==1))&&(a19==4))&&(((((((a23==1)||(a7==1))&&(a16==10))&&(a17==2))&&(a13==1))&&!(a0==1))&&(a21==10)))){ + if((a22==1)){ + a22 = 0; + a5 = 6; + a16 = 7; + a9 = 9; + a19 = 1; + a20 = 1; + a29 = 0; + }else{ + a20 = 1; + a16 = 7; + a6 = 0; + a5 = 5; + a19 = 1; + a1 = 12; + a12 = 0; + a9 = 7; + } + return -1; + } else if((((!(a23==1)||((a8==1)||(((a2==1)&&((a11==1)||!(a28==1)))&&(a17==2))))||(a18==1))&&(((a16==7)&&(((a6==1)&&(((((((a5==5)&&(a1==14))&&(a9==11))&&(a19==2))||((((a1==14)&&(a5==6))&&(a9==11))&&(a19==2)))||((a19==3)&&(((a5==4)&&(a1==12))&&(a9==7))))&&(input==3)))&&!(a20==1)))&&(a21==10)))){ + a1 = 13; + a21 = 12; + a26 = 0; + a19 = 2; + a9 = 8; + a20 = 1; + a6 = 1; + a5 = 5; + a16 = 10; + a8 = 0; + return 21; + } else if(((((a9==7)&&((a19==2)&&(!(a7==1)&&(((a3==1)&&(((input==3)&&((a5==5)||(a5==6)))&&!(a0==1)))&&!(a20==1)))))&&!(a7==1))&&((((a16==8)&&((a21==10)&&(((a13==1)&&(a1==12))&&(a17==2))))&&(a11==1))&&(a12==1)))){ + a20 = 1; + a9 = 8; + a16 = 10; + a11 = 1; + a1 = 14; + a7 = 0; + a27 = 0; + a5 = 6; + return 21; + } else if((((a17==2)&&(((a21==11)&&(((input==1)&&(a20==1))&&(a12==1)))&&(a1==14)))&&((a9==8)&&((a13==1)&&((((a19==3)&&((a23==1)&&((((a11==1)&&!(a8==1))&&(a5==5))&&!(a26==1))))&&(a16==10))||(a18==1)))))){ + a5 = 4; + a3 = 1; + a9 = 9; + a21 = 10; + a19 = 2; + a27 = 0; + a1 = 13; + a16 = 7; + a14 = 0; + return 25; + } else if((((((((a21==12)&&((!(a23==1)&&(!(a6==1)&&(a2==1)))&&(a27==1)))&&(a0==1))&&(a16==11))&&(a17==2))&&(a4==1))&&(((a19==2)&&(((a26==1)&&((a9==9)&&((input==5)&&((a5==5)||(a5==6)))))&&(a1==13)))&&(a20==1)))){ + a5 = 5; + a19 = 1; + a22 = 1; + a1 = 14; + a21 = 10; + a16 = 7; + a0 = 1; + a10 = 0; + return 25; + } else if(((((a13==1)&&((!(a12==1)||((a1==14)&&(a28==1)))&&(a6==1)))&&(a6==1))&&(!(a0==1)&&(((((a21==11)&&((a5==6)&&((a19==4)&&((a17==2)&&((a16==8)&&(input==4))))))&&(a9==11))&&!(a20==1))&&(a23==1))))){ + a16 = 7; + a23 = 1; + a13 = 1; + a21 = 10; + a12 = 1; + a20 = 1; + a19 = 1; + a1 = 12; + a5 = 4; + a9 = 7; + return -1; + } else if((((a23==1)&&(((a1==13)&&((a3==1)&&(a16==11)))&&(a6==1)))&&((a13==1)&&((!(a27==1)&&(((((((a17==2)&&((input==6)&&(a20==1)))&&(a5==6))&&!(a14==1))&&(a9==11))&&(a19==5))&&(a21==12)))&&!(a18==1))))){ + a19 = 1; + a16 = 7; + a9 = 10; + a21 = 10; + a20 = 0; + a7 = 0; + a3 = 1; + return 25; + } else if((((a1==14)&&(((a26==1)&&((a9==7)&&(!(a3==1)&&((a20==1)&&((a17==2)&&(((a5==5)||(a5==6))&&(input==4)))))))&&(a27==1)))&&(((a19==4)&&((a21==11)&&((a26==1)&&(((a23==1)&&(a16==8))&&!(a12==1)))))&&!(a6==1)))){ + a29 = 0; + a16 = 7; + a21 = 10; + a9 = 8; + a19 = 1; + a3 = 0; + a5 = 5; + return -1; + } else if((((((a16==8)&&(((a19==5)&&(((a28==1)&&(a1==13))&&(a3==1)))&&(a11==1)))&&(a21==10))&&(a9==9))&&((a20==1)&&(((a11==1)&&(((a23==1)&&(!(a4==1)&&((input==6)&&((a5==4)||(a5==5)))))&&(a11==1)))&&(a17==2))))){ + a3 = 1; + a5 = 5; + a4 = 0; + a23 = 1; + a9 = 10; + return 25; + } else if((((a9==7)&&(!(a3==1)||((!(a2==1)||(((a24==1)||(a11==1))&&(a19==5)))&&(a16==8))))&&((((((((a21==12)&&((input==3)&&(a1==13)))&&(a6==1))&&(a20==1))&&(a2==1))&&(a5==5))&&!(a4==1))&&(a17==2)))){ + a19 = 1; + a12 = 1; + a1 = 12; + a9 = 10; + a13 = 1; + return -1; + } else if(((((!(a27==1)&&((a9==10)&&((a19==2)&&((a20==1)&&(input==1)))))&&!(a27==1))&&(a2==1))&&((((a28==1)&&((a1==14)&&((a16==8)&&((((a12==1)&&(a17==2))&&!(a7==1))&&(a5==5)))))&&!(a7==1))&&(a21==10)))){ + a9 = 7; + a1 = 12; + a5 = 4; + a14 = 0; + a18 = 0; + a19 = 1; + a27 = 0; + a16 = 7; + return -1; + } else if(((((a21==11)&&((a17==2)&&(!(a8==1)&&((input==5)&&((a5==4)||(a5==5))))))&&(a19==3))&&((a9==10)&&((a1==13)&&((a16==7)&&((a14==1)||((!(a11==1)||((a20==1)&&(!(a6==1)||(!(a28==1)||(a23==1)))))||(a14==1)))))))){ + a26 = 0; + a9 = 11; + a28 = 1; + a6 = 1; + a16 = 8; + a1 = 12; + a5 = 6; + a19 = 1; + return 23; + } else if((((!(a0==1)&&((a19==5)&&((a16==7)&&((a21==12)&&((a1==13)&&((input==1)&&(((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))))))))&&!(a24==1))&&(!(a23==1)||((!(a7==1)&&((a3==1)&&((!(a20==1)&&(a12==1))&&(a17==2))))||(a7==1))))){ + a2 = 1; + a1 = 12; + a16 = 10; + a20 = 1; + a9 = 8; + a0 = 0; + a23 = 1; + a5 = 5; + return 21; + } else if(((((a23==1)&&(!(a27==1)&&(!(a8==1)&&((((a11==1)&&(a20==1))&&(a17==2))||(a14==1)))))||!(a3==1))&&((a3==1)&&((((a9==7)&&((a1==14)&&(((a16==7)&&(input==4))&&(a5==5))))&&(a19==5))&&(a21==11))))){ + a18 = 0; + a26 = 0; + a21 = 10; + a5 = 4; + a19 = 1; + a28 = 1; + a1 = 12; + return -1; + } else if((((((!(a3==1)&&((input==3)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))&&(a16==10))&&(a20==1))&&(a17==2))&&((a1==12)&&((a4==1)&&((((a7==1)&&((((a2==1)&&(a21==11))&&!(a2==1))&&(a26==1)))&&(a19==1))&&(a18==1)))))){ + a14 = 1; + a16 = 11; + a19 = 4; + a15 = 0; + a1 = 14; + a7 = 1; + a9 = 11; + a5 = 6; + return 26; + } else if((((a9==11)&&((a5==5)&&((a13==1)&&(((a13==1)&&((((a3==1)&&((a1==13)&&((input==4)&&(a17==2))))&&(a21==10))&&(a6==1)))&&(a23==1)))))&&((a19==2)&&(!(a0==1)&&(!(a20==1)&&((a23==1)&&(a16==10))))))){ + a21 = 12; + a29 = 1; + a16 = 9; + a19 = 3; + a9 = 8; + a25 = 0; + a1 = 12; + a5 = 4; + a2 = 0; + return -1; + } else if((((a3==1)&&(((a19==2)&&((a17==2)&&((a16==11)&&(((((a11==1)&&!(a4==1))&&(a3==1))&&(a21==11))&&(a1==12)))))&&(a28==1)))&&((a5==5)&&(((((a20==1)&&(input==1))&&(a6==1))&&!(a4==1))&&(a9==11))))){ + a12 = 1; + a6 = 1; + a21 = 10; + a16 = 9; + a9 = 10; + a19 = 3; + a5 = 4; + a3 = 1; + return 25; + } else if((((a9==10)&&(((((((a28==1)&&(a16==8))&&(a1==14))&&(a21==12))&&!(a26==1))&&!(a0==1))||(a26==1)))&&(!(a24==1)&&(!(a7==1)&&((((a17==2)&&(((a19==3)&&(input==5))&&(a2==1)))&&(a5==4))&&(a20==1)))))){ + a18 = 0; + a9 = 8; + a1 = 12; + a28 = 1; + a16 = 10; + a7 = 0; + return 23; + } else if(((((!(a14==1)&&(((a16==7)&&(((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==6))&&!(a8==1)))&&(a11==1)))&&(a21==12))&&!(a26==1))&&((a1==13)&&((a20==1)&&(((a19==4)&&(((a17==2)&&(a11==1))&&(a3==1)))||!(a3==1)))))){ + a1 = 14; + a9 = 7; + a24 = 0; + a7 = 0; + a5 = 6; + a11 = 1; + a19 = 2; + a21 = 11; + a16 = 9; + return 26; + } else if((((a16==8)&&(((a1==13)&&(((((a11==1)&&(a19==3))&&(a5==6))&&!(a27==1))||!(a23==1)))&&(a9==7)))&&(((((!(a7==1)&&(((a21==12)&&(input==5))&&(a12==1)))&&(a20==1))&&(a2==1))&&!(a8==1))&&(a17==2)))){ + a0 = 0; + a5 = 4; + a16 = 7; + a12 = 1; + a1 = 12; + a19 = 1; + a21 = 10; + return -1; + } else if(((((!(a24==1)&&(((a9==10)&&(((!(a20==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a1==13)))&&(a28==1))&&(a21==10)))&&!(a14==1)))&&!(a27==1))&&(a11==1))&&(((a17==2)&&((a24==1)||((a16==11)&&(a13==1))))&&(a19==2)))){ + a6 = 0; + a9 = 9; + a5 = 6; + a3 = 0; + a16 = 7; + a24 = 1; + a20 = 1; + a1 = 12; + return -1; + } else if((((((a19==4)&&((a23==1)&&((a26==1)||(((!(a12==1)||(((a21==12)&&(a11==1))||!(a13==1)))||(a27==1))||(a18==1)))))&&!(a20==1))&&(a9==9))&&(((((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a17==2))&&(a16==10))&&(a1==13)))){ + if((a6==1)){ + a1 = 12; + a19 = 2; + a29 = 1; + a21 = 10; + a27 = 1; + a20 = 1; + a5 = 6; + a16 = 7; + a18 = 1; + }else{ + a16 = 7; + a20 = 1; + a18 = 1; + a1 = 14; + a21 = 10; + a29 = 1; + a19 = 1; + a5 = 6; + a10 = 1; + } + return -1; + } else if((((a23==1)&&(((a28==1)&&((a11==1)&&((a21==11)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==5)))))&&(a2==1)))&&((a19==5)&&((((a16==10)&&((a20==1)&&(((a17==2)&&(a23==1))||!(a23==1))))||!(a23==1))&&(a1==14))))){ + a16 = 7; + a8 = 0; + a21 = 10; + a19 = 2; + a5 = 4; + a7 = 0; + a1 = 13; + a9 = 9; + a24 = 0; + return 25; + } else if((((a1==13)&&(((a21==10)&&((a9==7)&&(((a2==1)&&(a16==8))&&(a3==1))))&&(a5==4)))&&((!(a14==1)&&((a19==5)&&(!(a8==1)&&((((!(a20==1)&&(input==5))&&!(a0==1))&&(a17==2))&&(a2==1)))))&&!(a24==1)))){ + a20 = 1; + a1 = 12; + a18 = 0; + a19 = 1; + a11 = 1; + a16 = 7; + a26 = 0; + return -1; + } else if(((((((((input==5)&&(a21==11))&&(a17==2))&&!(a7==1))&&(a19==4))&&(a9==10))&&(a1==13))&&(((((a7==1)||(((a20==1)&&(((a27==1)||(a13==1))&&!(a7==1)))&&(a5==6)))&&(a16==7))&&(a28==1))||(a27==1)))){ + a16 = 8; + a27 = 0; + a12 = 1; + a9 = 9; + a3 = 1; + return 22; + } else if(((!(a26==1)&&(((a19==3)&&(((a11==1)&&((a9==7)&&((a17==2)&&((input==5)&&(a16==9)))))&&(a2==1)))&&(a5==5)))&&((a2==1)&&((a21==12)&&((a2==1)&&((a14==1)||((a20==1)&&((a1==12)&&(a6==1))))))))){ + a5 = 4; + a11 = 1; + a7 = 0; + a9 = 9; + return 21; + } else if((((!(a20==1)&&((a17==2)&&(!(a24==1)&&(((((a19==2)&&(((a1==12)&&(a5==4))&&(a9==7)))||((((a9==11)&&((a1==14)&&(a5==5)))&&(a19==1))||((a19==1)&&(((a1==14)&&(a5==6))&&(a9==11)))))&&(input==6))&&!(a7==1)))))&&(a21==12))&&((a14==1)||(((a16==9)&&(((a7==1)||(a28==1))&&(a23==1)))&&(a6==1))))){ + if((a1==12)){ + a26 = 1; + a5 = 4; + a3 = 0; + a1 = 12; + a25 = 1; + a21 = 10; + a16 = 7; + a19 = 1; + a9 = 8; + a20 = 1; + }else{ + a9 = 8; + a19 = 1; + a1 = 13; + a20 = 1; + a15 = 1; + a21 = 10; + a5 = 6; + a27 = 1; + a11 = 0; + a16 = 7; + } + return -1; + } else if(((((a6==1)&&((a16==9)&&((a17==2)&&(((((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(input==4))&&(a1==13)))))&&(a11==1))&&(((((!(a28==1)||((a21==11)&&((a19==4)&&(a28==1))))&&(a20==1))||!(a12==1))||(a8==1))||(a8==1)))){ + a21 = 10; + a0 = 0; + a14 = 0; + a19 = 1; + a9 = 7; + a4 = 0; + a1 = 12; + a16 = 7; + a5 = 4; + return -1; + } else if((((!(a24==1)&&(!(a20==1)&&(((a23==1)&&(((a23==1)&&(a23==1))||(a8==1)))&&(a17==2))))&&(a21==10))&&((a16==11)&&((a2==1)&&(!(a18==1)&&(((a1==12)&&(((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))&&(input==1)))&&(a19==3))))))){ + if((a7==1)){ + a2 = 0; + a19 = 1; + a28 = 0; + a5 = 5; + a26 = 1; + a9 = 9; + }else{ + a16 = 10; + a5 = 5; + a28 = 0; + a25 = 1; + a9 = 11; + a14 = 1; + a19 = 1; + a1 = 13; + a20 = 1; + } + return -1; + } else if(((((((((a12==1)&&(a16==9))&&(a1==12))&&(a19==1))&&(a20==1))||(a18==1))||!(a12==1))&&((a12==1)&&(((a11==1)&&(((((input==4)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5))))&&(a17==2))&&(a21==11))&&(a2==1)))&&(a23==1))))){ + a7 = 0; + a21 = 10; + a16 = 7; + a6 = 1; + a5 = 4; + a18 = 0; + a9 = 7; + return -1; + } else if(((((a21==10)&&((a17==2)&&(((a12==1)&&(a3==1))&&!(a8==1))))&&(a1==13))&&((a16==9)&&(!(a20==1)&&((a3==1)&&((a19==4)&&(((a2==1)&&(!(a0==1)&&((input==6)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))))&&!(a27==1)))))))){ + a14 = 1; + a9 = 8; + a16 = 10; + a1 = 14; + a20 = 1; + a28 = 0; + a3 = 0; + a19 = 5; + a5 = 4; + a21 = 11; + return -1; + } else if(((((((a17==2)&&((a6==1)&&((a20==1)&&(a2==1))))&&!(a24==1))&&(a9==8))||!(a23==1))&&(((a19==2)&&(((a2==1)&&(((a13==1)&&(((input==4)&&(a1==12))&&!(a14==1)))&&(a21==11)))&&(a16==7)))&&(a5==6)))){ + a5 = 4; + a26 = 0; + a9 = 7; + a21 = 10; + a13 = 1; + a19 = 1; + a14 = 0; + return -1; + } else if((((a19==3)&&((a23==1)&&((a1==13)&&((a16==11)&&((a2==1)&&(a9==9))))))&&(!(a14==1)&&((a17==2)&&((a21==12)&&((!(a4==1)&&((a20==1)&&(!(a4==1)&&((((a5==5)||(a5==6))&&(input==3))&&!(a24==1)))))&&!(a27==1))))))){ + a0 = 0; + a24 = 0; + a19 = 1; + a1 = 12; + a16 = 7; + a23 = 1; + a9 = 7; + a21 = 10; + a5 = 4; + return -1; + } else if((((a9==7)&&((a5==5)&&((a19==3)&&(((((a11==1)||(a18==1))&&!(a8==1))&&(a20==1))&&(a16==11)))))&&((a1==14)&&((a21==10)&&(((a28==1)&&(((a23==1)&&((a17==2)&&(input==5)))&&!(a27==1)))&&!(a8==1)))))){ + a6 = 1; + a4 = 0; + a21 = 11; + a5 = 6; + a12 = 1; + a1 = 13; + a9 = 9; + return 26; + } else if(((((((!(a3==1)&&((a9==11)&&(a2==1)))&&(a14==1))&&(a14==1))&&!(a20==1))&&!(a28==1))&&(((a1==14)&&(!(a3==1)&&((a21==12)&&(((a17==2)&&((a19==2)&&((input==3)&&((a5==6)||((a5==4)||(a5==5))))))&&(a16==7)))))&&(a27==1)))){ + a19 = 1; + a21 = 11; + a7 = 1; + a5 = 6; + a26 = 1; + a14 = 1; + return -1; + } else if((((a2==1)&&((((a21==12)&&((a16==7)&&((a1==12)&&(!(a4==1)&&(a12==1)))))&&!(a20==1))&&(a19==1)))&&(!(a8==1)&&(((((((input==1)&&(a17==2))&&(a5==6))&&(a23==1))&&(a9==11))&&(a3==1))&&(a6==1))))){ + a2 = 1; + a19 = 4; + a5 = 5; + a28 = 1; + a3 = 1; + a21 = 11; + a16 = 8; + a9 = 8; + return 21; + } else if(((((a28==1)&&(((a9==8)&&(!(a18==1)&&(((a5==5)||(a5==6))&&(input==1))))&&(a16==9)))&&!(a20==1))&&((a21==12)&&(((a24==1)||((a19==1)&&((a17==2)&&((((a0==1)||(a6==1))&&(a13==1))&&(a23==1)))))&&(a1==14))))){ + a5 = 4; + a1 = 13; + a9 = 11; + a16 = 7; + a0 = 1; + a13 = 0; + a20 = 1; + a21 = 10; + a25 = 1; + return -1; + } else if((((a9==10)&&(((a17==2)&&(((((a1==13)&&(!(a4==1)&&(a2==1)))||!(a12==1))&&!(a24==1))&&(a5==4)))||(a4==1)))&&(((a20==1)&&(((a19==1)&&((a13==1)&&((a21==12)&&(input==6))))&&!(a27==1)))&&(a16==8)))){ + a21 = 11; + a8 = 0; + a28 = 1; + a16 = 10; + a1 = 12; + a19 = 5; + a5 = 5; + return 21; + } else if(((((a17==2)&&(((((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==3))&&!(a8==1))&&(a3==1))&&!(a14==1)))&&(a16==9))&&((a21==12)&&(!(a20==1)&&(((a1==12)&&((((a24==1)||(a6==1))&&(a19==2))||!(a3==1)))||(a4==1)))))){ + a5 = 6; + a19 = 1; + a20 = 1; + a16 = 7; + a21 = 10; + a0 = 1; + a1 = 14; + a15 = 1; + a9 = 7; + a27 = 1; + return 23; + } else if((((a23==1)&&((((!(a6==1)||((a17==2)&&(a6==1)))&&(a1==14))||!(a2==1))||(a24==1)))&&((((((a21==10)&&(((a28==1)&&((input==6)&&((a5==5)||(a5==6))))&&(a9==9)))&&(a13==1))&&(a20==1))&&(a16==7))&&(a19==2)))){ + a28 = 1; + a19 = 4; + a12 = 1; + a1 = 13; + a3 = 1; + a5 = 5; + a9 = 10; + return 25; + } else if(((!(a6==1)&&(((a1==13)&&((a0==1)&&((a21==10)&&(((((a5==5)||(a5==6))&&(input==1))&&(a24==1))&&(a16==8)))))&&(a19==2)))&&((a9==7)&&((((!(a23==1)&&(!(a20==1)&&(a13==1)))&&(a17==2))&&(a27==1))&&!(a28==1))))){ + a1 = 14; + a27 = 1; + a22 = 0; + a26 = 1; + a9 = 11; + a16 = 11; + a19 = 1; + a21 = 12; + a5 = 4; + a20 = 1; + return 25; + } else if(((((a23==1)&&((a11==1)&&(((a1==13)&&((input==6)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))))&&!(a20==1))))&&!(a18==1))&&(((a21==12)&&((!(a13==1)||((a17==2)&&(!(a11==1)||((a19==1)&&(a23==1)))))&&(a16==7)))||!(a28==1)))){ + a16 = 8; + a12 = 1; + a20 = 1; + a0 = 0; + a21 = 11; + a9 = 10; + a11 = 1; + a5 = 5; + a1 = 12; + a19 = 5; + return 23; + } else if((((((!(a24==1)&&((((a21==10)&&((!(a28==1)||(a23==1))||!(a23==1)))||!(a23==1))&&!(a8==1)))&&!(a20==1))||!(a13==1))&&(a19==1))&&((a9==8)&&((a16==11)&&((((input==4)&&((a5==5)||(a5==6)))&&(a1==14))&&(a17==2)))))){ + a20 = 1; + a23 = 0; + a9 = 10; + a7 = 1; + a5 = 4; + a6 = 0; + a16 = 7; + return -1; + } else if(((((a17==2)&&(!(a24==1)&&((a19==1)&&(((a16==9)&&((a1==13)&&(((a7==1)||((a21==10)&&(a11==1)))||!(a23==1))))&&!(a20==1)))))&&(a9==7))&&(((a2==1)&&((a2==1)&&((input==5)&&((a5==5)||(a5==6)))))&&!(a18==1)))){ + if((a25==1)){ + a5 = 6; + a16 = 7; + a10 = 1; + a1 = 12; + a9 = 11; + a6 = 0; + a20 = 1; + }else{ + a20 = 1; + a23 = 0; + a1 = 12; + a16 = 7; + a5 = 6; + a13 = 0; + a15 = 1; + } + return 23; + } else if((((((a16==7)&&(!(a3==1)||((!(a27==1)&&(((a13==1)&&(a20==1))&&(a21==12)))&&(a2==1))))||(a0==1))&&(a1==13))&&((a19==2)&&((!(a24==1)&&((a9==10)&&((((a5==4)||(a5==5))&&(input==5))&&(a17==2))))&&(a28==1))))){ + a11 = 1; + a1 = 12; + a13 = 1; + a5 = 4; + a9 = 7; + a21 = 10; + a19 = 1; + return -1; + } else if((((a28==1)&&(!(a14==1)&&((((a23==1)&&(a2==1))&&(a1==14))||(a8==1))))&&(!(a27==1)&&((((a2==1)&&(!(a20==1)&&((a16==10)&&(((a9==9)&&(((a5==4)||(a5==5))&&(input==3)))&&(a21==11)))))&&(a17==2))&&(a19==3))))){ + a9 = 8; + a4 = 1; + a29 = 1; + a5 = 5; + a26 = 1; + a16 = 7; + a21 = 10; + a20 = 1; + a19 = 1; + return -1; + } else if((((((((a21==10)&&((((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&(input==3)))&&(a27==1))&&(a27==1))&&(a1==13))&&(a20==1))&&((((a17==2)&&(!(a11==1)&&((a27==1)&&(((a23==1)&&(a14==1))&&!(a23==1)))))&&(a19==4))&&(a16==7)))){ + a15 = 0; + a1 = 12; + a25 = 1; + a5 = 4; + a9 = 9; + a19 = 2; + return -1; + } else if((((a13==1)&&((((a19==2)&&((!(a26==1)&&(((a5==4)||(a5==5))&&(input==4)))&&(a3==1)))&&(a3==1))&&(a17==2)))&&((((a16==10)&&((((!(a20==1)&&(a23==1))&&(a1==12))&&(a21==11))&&(a9==7)))&&!(a8==1))||!(a13==1)))){ + if((a3==1)){ + a5 = 5; + a1 = 13; + a9 = 9; + a16 = 7; + a20 = 1; + a2 = 0; + a19 = 1; + a21 = 10; + a24 = 1; + a26 = 1; + }else{ + a5 = 5; + a28 = 0; + a1 = 13; + a19 = 4; + a21 = 10; + a22 = 1; + a15 = 0; + a9 = 9; + a16 = 11; + } + return -1; + } else if((((a21==10)&&((a23==1)&&(((input==4)&&(a1==12))&&(a13==1))))&&(((a19==2)&&((a17==2)&&((a5==4)&&(((((((a16==9)&&(a2==1))&&(a9==8))||(a14==1))&&!(a7==1))&&(a2==1))&&!(a4==1)))))&&!(a20==1)))){ + if((a2==1)){ + a28 = 0; + a1 = 14; + a9 = 7; + a16 = 10; + a8 = 1; + a5 = 5; + a22 = 0; + a19 = 4; + a20 = 1; + }else{ + a0 = 1; + a24 = 1; + a16 = 7; + a20 = 1; + a5 = 6; + a9 = 11; + a26 = 1; + } + return -1; + } else if(((!(a6==1)||(((((!(a26==1)&&((a17==2)&&((a23==1)&&(a19==2))))&&(a5==6))&&(a21==10))&&(a1==12))&&!(a20==1)))&&((!(a8==1)&&((a16==10)&&(((a12==1)&&((a9==7)&&(input==4)))&&!(a18==1))))&&!(a7==1)))){ + if((a1==14)){ + a5 = 4; + a22 = 0; + a16 = 7; + a20 = 1; + a3 = 0; + a25 = 1; + a9 = 9; + }else{ + a15 = 0; + a16 = 7; + a6 = 0; + a19 = 1; + a1 = 14; + a20 = 1; + a18 = 1; + } + return 21; + } else if((((a17==2)&&(((a21==10)&&((((input==6)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8))))&&(a1==14))&&(a3==1)))&&!(a18==1)))&&(!(a20==1)&&((!(a7==1)&&((((a6==1)&&((a6==1)||!(a3==1)))&&(a16==10))&&!(a7==1)))&&(a19==4))))){ + a4 = 1; + a9 = 7; + a19 = 1; + a16 = 7; + a5 = 4; + a14 = 1; + a20 = 1; + return -1; + } else if((((a19==4)&&((!(a26==1)&&(a11==1))||(a27==1)))&&((((((a21==12)&&((((a16==8)&&((a20==1)&&((input==4)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))))&&(a17==2))&&(a1==14)))&&!(a0==1))&&!(a26==1))&&!(a4==1))&&(a11==1)))){ + a19 = 5; + a12 = 1; + a4 = 0; + a5 = 4; + a1 = 12; + a28 = 1; + a21 = 10; + a9 = 9; + return -1; + } else if(((!(a13==1)||(((a20==1)&&((a17==2)&&(a23==1)))&&(a3==1)))&&((a12==1)&&(((!(a4==1)&&(!(a27==1)&&((((((a19==2)&&(((a1==14)&&(a5==5))&&(a9==11)))||((a19==2)&&(((a5==6)&&(a1==14))&&(a9==11))))||((a19==3)&&((a9==7)&&((a1==12)&&(a5==4)))))&&(input==6))&&(a12==1))))&&(a21==11))&&(a16==7))))){ + a24 = 0; + a18 = 0; + a9 = 7; + a21 = 10; + a5 = 4; + a1 = 12; + a19 = 1; + a11 = 1; + return -1; + } else if((((a19==3)&&(!(a14==1)&&((((a7==1)||((a26==1)||(a2==1)))&&(a20==1))||!(a2==1))))&&(((!(a26==1)&&(((((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==5))&&(a1==13))&&(a16==7))&&(a23==1)))&&(a21==12))&&(a17==2)))){ + a28 = 1; + a5 = 6; + a19 = 5; + a21 = 10; + a14 = 0; + a1 = 12; + a9 = 11; + a11 = 1; + a16 = 9; + return 21; + } else if((((!(a27==1)&&(!(a0==1)&&((a3==1)&&((a19==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5))))))&&(a16==8))&&(((a1==14)&&(((a3==1)&&((!(a12==1)||(!(a20==1)&&((a3==1)&&(a9==10))))&&(a17==2)))||!(a23==1)))&&(a21==12)))){ + a5 = 6; + a23 = 0; + a24 = 1; + a9 = 7; + a1 = 12; + a15 = 0; + a16 = 10; + a19 = 2; + return -1; + } else if((((((((((a20==1)&&(a6==1))&&(a1==12))&&(a19==3))&&(a28==1))&&(a17==2))&&(a16==8))&&(a6==1))&&(!(a26==1)&&(((a13==1)&&(!(a18==1)&&(((input==6)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5))))&&(a21==10))))&&!(a8==1))))){ + a1 = 13; + a19 = 4; + a5 = 6; + a6 = 1; + a14 = 0; + a9 = 9; + a16 = 9; + a28 = 1; + a21 = 12; + return 21; + } else if(((!(a2==1)||((a14==1)||(!(a20==1)&&((a21==10)&&(((a1==12)&&(((!(a18==1)&&(a6==1))&&(a2==1))&&(a17==2)))&&(a19==5))))))&&(((a12==1)&&(((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==1))&&(a16==9)))&&!(a14==1)))){ + a18 = 1; + a19 = 1; + a1 = 13; + a23 = 0; + a16 = 7; + a29 = 1; + a9 = 7; + a5 = 6; + a20 = 1; + return -1; + } else if(((!(a12==1)||((a20==1)&&(!(a28==1)||((a21==11)&&((((a3==1)&&(a1==13))&&(a19==3))&&(a17==2))))))&&(!(a14==1)&&((a23==1)&&((a9==7)&&((a16==9)&&(!(a8==1)&&((((a5==5)||(a5==6))&&(input==6))&&(a28==1))))))))){ + a16 = 11; + a14 = 0; + a1 = 14; + a9 = 10; + a5 = 5; + a6 = 1; + a21 = 10; + a11 = 1; + return 21; + } else if((((a3==1)&&((a17==2)&&((((a16==10)&&(input==3))&&!(a18==1))&&(a19==4))))&&((!(a14==1)&&((a1==13)&&(((a26==1)||(((a9==10)&&((!(a28==1)||(a11==1))&&(a5==5)))||!(a23==1)))&&(a20==1))))&&(a21==10)))){ + a0 = 0; + a19 = 1; + a9 = 7; + a5 = 4; + a11 = 1; + a1 = 12; + a16 = 7; + a3 = 1; + return -1; + } else if(((((!(a0==1)&&((a21==11)&&((a17==2)&&((a1==14)&&(a28==1)))))&&(a16==9))||!(a2==1))&&(((((a3==1)&&(!(a8==1)&&(((((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))&&(input==5))&&!(a20==1))))&&(a19==4))&&!(a4==1))&&!(a24==1)))){ + a20 = 1; + a19 = 1; + a29 = 0; + a9 = 9; + a1 = 12; + a27 = 1; + a16 = 10; + a22 = 0; + a5 = 5; + a21 = 12; + return -1; + } else if((((((a11==1)&&((a21==12)&&((a6==1)&&((input==1)&&(((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9))))))))&&!(a14==1))&&(a1==12))&&((((((a17==2)&&((a19==5)&&((a2==1)&&(a20==1))))||!(a2==1))&&!(a7==1))&&(a16==8))&&(a13==1)))){ + a16 = 7; + a9 = 7; + a24 = 0; + a18 = 0; + a21 = 10; + a5 = 4; + a8 = 0; + a19 = 1; + return -1; + } else if((((!(a6==1)||((a5==4)&&((a17==2)&&(((a2==1)&&(a9==7))&&(a21==12)))))&&(a2==1))&&(!(a14==1)&&((((a20==1)&&((a16==9)&&(!(a0==1)&&(!(a24==1)&&((input==3)&&(a19==4))))))&&(a1==13))&&!(a8==1))))){ + a13 = 1; + a2 = 1; + a19 = 1; + a1 = 12; + a16 = 7; + a28 = 1; + a21 = 10; + return -1; + } else if((((a19==5)&&((!(a8==1)&&((!(a14==1)&&((((((a16==8)&&(input==4))&&(a20==1))&&(a9==11))&&(a5==4))&&(a1==12)))&&(a6==1)))&&(a17==2)))&&(((a21==11)&&((a4==1)||(!(a0==1)&&(a23==1))))||(a8==1)))){ + a11 = 1; + a21 = 10; + a9 = 7; + a6 = 1; + a24 = 0; + a19 = 1; + a16 = 7; + return -1; + } else if((((a12==1)&&(((((input==6)&&((a5==4)||(a5==5)))&&!(a4==1))&&!(a20==1))&&(a6==1)))&&(((a21==11)&&((a1==13)&&((a16==10)&&(!(a13==1)||(((((a23==1)||(a24==1))||!(a12==1))&&(a17==2))&&(a19==3))))))&&(a9==10)))){ + a9 = 7; + a4 = 1; + a8 = 1; + a19 = 2; + a16 = 7; + a3 = 0; + a5 = 5; + a21 = 12; + return -1; + } else if(((!(a0==1)&&((((a17==2)&&((a13==1)&&((a1==12)&&((a9==7)&&(a11==1)))))&&(a20==1))||!(a6==1)))&&(((a16==9)&&(((a19==2)&&((((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&!(a4==1))&&(a21==11)))&&(a13==1)))&&!(a7==1)))){ + a21 = 10; + a26 = 0; + a1 = 13; + a18 = 0; + a5 = 4; + a16 = 7; + a24 = 0; + a9 = 10; + return 21; + } else if((((a20==1)&&((a5==4)&&((a17==2)&&(((a2==1)||(a0==1))||!(a6==1)))))&&((a16==11)&&((a1==14)&&(!(a24==1)&&(((((a9==10)&&((a19==4)&&((a21==12)&&(input==5))))&&(a28==1))&&!(a7==1))&&!(a8==1))))))){ + a6 = 1; + a16 = 10; + a9 = 8; + a0 = 0; + a11 = 1; + a19 = 2; + a21 = 10; + return 21; + } else if((((a3==1)&&((a6==1)&&((!(a24==1)&&(!(a7==1)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==4))))&&!(a26==1))))&&((((a16==9)&&(((((a21==10)&&(a28==1))&&(a19==5))||!(a23==1))&&!(a20==1)))&&(a1==12))&&(a17==2)))){ + a5 = 4; + a20 = 1; + a1 = 13; + a26 = 1; + a25 = 1; + a27 = 1; + a19 = 2; + a16 = 7; + a9 = 7; + return -1; + } else if((((((((!(a18==1)&&(((input==6)&&(a9==11))&&(a12==1)))&&!(a7==1))&&(a19==2))&&(a17==2))&&(a2==1))&&(a3==1))&&((a21==11)&&(!(a0==1)&&(((a20==1)&&((a16==10)&&((a2==1)&&(a1==14))))&&(a5==4)))))){ + a1 = 13; + a11 = 1; + a9 = 9; + a24 = 0; + a16 = 7; + a18 = 0; + a21 = 10; + a5 = 5; + return 25; + } else if(((((!(a18==1)&&((a17==2)&&((!(a24==1)&&(a12==1))||(a27==1))))&&(a19==1))&&(a9==10))&&(((a21==11)&&(!(a24==1)&&((!(a14==1)&&((((input==1)&&(a16==9))&&(a5==6))&&!(a20==1)))&&(a13==1))))&&(a1==13)))){ + a2 = 0; + a11 = 0; + a20 = 1; + a9 = 8; + a21 = 10; + a16 = 7; + a1 = 14; + return -1; + } else if(((!(a7==1)&&(!(a26==1)&&(((a9==11)&&((a28==1)&&((a16==10)&&((a21==12)&&(!(a26==1)&&((a19==3)&&(((input==5)&&((a5==5)||(a5==6)))&&(a17==2))))))))&&(a3==1))))&&((((a3==1)&&(a28==1))&&(a1==14))&&!(a20==1)))){ + a18 = 1; + a29 = 0; + a16 = 7; + a21 = 10; + a19 = 2; + a5 = 5; + a20 = 1; + a9 = 7; + a1 = 12; + return 25; + } else if(((!(a0==1)&&((((((a19==2)&&((a28==1)&&((input==3)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))))&&(a12==1))&&(a17==2))&&(a1==13))&&(a20==1)))&&(!(a28==1)||(((!(a6==1)||((a3==1)&&(a16==8)))&&(a21==11))||(a26==1))))){ + a9 = 8; + a11 = 1; + a1 = 14; + a26 = 0; + a19 = 1; + a5 = 6; + a21 = 12; + a0 = 0; + return 21; + } else if((((a13==1)&&((a28==1)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&!(a14==1))&&(a6==1))))&&(((a16==10)&&(((a28==1)&&(((a21==12)&&(((a19==4)&&((a9==10)&&(a12==1)))&&(a20==1)))&&(a17==2)))&&(a1==13)))||!(a2==1)))){ + a5 = 4; + a13 = 1; + a1 = 12; + a21 = 10; + a16 = 7; + a12 = 1; + a9 = 7; + a7 = 0; + a19 = 1; + return -1; + } else if((((((a17==2)&&((a21==12)&&((a19==2)&&(((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==3))&&(a1==12)))))&&!(a18==1))&&!(a24==1))&&((((a20==1)&&((a16==9)&&(((a23==1)||!(a2==1))||!(a11==1))))||!(a12==1))||!(a3==1)))){ + a5 = 4; + a28 = 1; + a7 = 0; + a9 = 7; + a26 = 0; + a21 = 10; + a16 = 7; + a19 = 1; + return -1; + } else if((((((a17==2)&&((a24==1)||((((a13==1)||(a18==1))&&!(a7==1))&&(a21==11))))&&(a16==7))&&(a9==8))&&((a1==12)&&(((!(a7==1)&&((((input==5)&&((a5==5)||(a5==6)))&&(a19==5))&&(a20==1)))&&!(a26==1))&&!(a7==1))))){ + if((a7==1)){ + a13 = 1; + a24 = 0; + a20 = 0; + a5 = 6; + a21 = 12; + a19 = 4; + a9 = 10; + a1 = 14; + }else{ + a8 = 0; + a21 = 12; + a28 = 1; + a5 = 4; + a18 = 0; + a19 = 1; + a16 = 8; + a9 = 7; + } + return 22; + } else if((((a18==1)||((a1==12)&&((!(a2==1)||((a4==1)||(!(a20==1)&&((a9==7)&&(a6==1)))))||!(a11==1))))&&(((a16==9)&&((a21==11)&&(((a28==1)&&(((input==5)&&((a5==5)||(a5==6)))&&(a17==2)))&&(a19==5))))&&(a28==1)))){ + a22 = 1; + a5 = 5; + a3 = 0; + a20 = 1; + a9 = 9; + a21 = 10; + a19 = 2; + a23 = 0; + a16 = 7; + return -1; + } else if((((a1==14)&&((a17==2)&&((a3==1)&&(a11==1))))&&((((a20==1)&&((a16==9)&&(((((a28==1)&&((a2==1)&&((input==5)&&(((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))))))&&!(a4==1))&&!(a26==1))&&!(a18==1))))&&(a19==3))&&(a21==10)))){ + a9 = 7; + a4 = 0; + a28 = 1; + a11 = 1; + a1 = 12; + a16 = 7; + a5 = 4; + a19 = 1; + return -1; + } else if((((!(a4==1)&&(((((a1==12)&&((((a16==7)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))&&(a17==2))&&(a9==8)))&&(a21==11))&&!(a26==1))&&!(a0==1)))&&(a23==1))&&(!(a6==1)||(!(a20==1)&&(((a23==1)&&(a19==3))&&(a28==1)))))){ + a21 = 10; + a9 = 10; + a19 = 2; + a13 = 1; + a1 = 13; + a5 = 6; + a20 = 1; + a14 = 0; + a2 = 1; + return 25; + } else if((((a19==2)&&((((a12==1)&&((a5==6)&&((a3==1)&&((input==5)&&(a9==10)))))&&!(a24==1))&&(a1==13)))&&((a16==9)&&(((a17==2)&&((!(a12==1)||(((a6==1)&&!(a7==1))&&!(a26==1)))&&!(a20==1)))&&(a21==10))))){ + a19 = 1; + a1 = 14; + a20 = 1; + a25 = 1; + a28 = 0; + a9 = 11; + a16 = 7; + a2 = 0; + a5 = 5; + return 25; + } else if(((((a13==1)&&((!(a27==1)&&(((a16==11)&&((input==5)&&((a5==4)||(a5==5))))&&(a9==7)))&&(a21==10)))&&(a20==1))&&((a19==5)&&(!(a2==1)||((a0==1)||(((a17==2)&&((a14==1)||((a28==1)&&(a1==13))))||(a4==1))))))){ + a1 = 12; + a19 = 1; + a0 = 0; + a3 = 1; + a26 = 0; + a5 = 4; + a16 = 7; + return -1; + } else if(((!(a11==1)||((a18==1)||(!(a24==1)&&(a6==1))))&&((((a1==14)&&(((a13==1)&&(((a21==11)&&(((a19==3)&&((((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a5==6)&&(a9==10))))&&(input==3)))&&!(a8==1)))&&(a12==1)))&&(a16==9)))&&(a17==2))&&!(a20==1)))){ + if((a18==1)){ + a5 = 4; + a1 = 13; + a20 = 1; + a9 = 7; + a10 = 1; + a19 = 1; + a21 = 10; + a3 = 0; + a27 = 1; + a16 = 7; + }else{ + a19 = 1; + a5 = 4; + a9 = 10; + a18 = 1; + a21 = 10; + a25 = 0; + a20 = 1; + a4 = 1; + a16 = 7; + } + return -1; + } else if((((a16==8)&&(((a21==10)&&(((a2==1)&&(!(a26==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&!(a7==1))))&&(a1==13)))&&(a9==10)))&&((((a17==2)&&(((a7==1)||((a6==1)||(a24==1)))&&(a28==1)))&&(a20==1))&&(a19==2)))){ + a7 = 0; + a19 = 1; + a2 = 1; + a5 = 4; + a1 = 12; + a16 = 7; + a9 = 7; + return -1; + } else if(((((((a20==1)&&((input==4)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))&&(a17==2))&&(a21==12))&&(a16==11))&&((((a19==3)&&((a0==1)||(!(a12==1)||((((a24==1)||(a12==1))&&(a1==14))&&(a12==1)))))||(a24==1))&&!(a27==1)))){ + a8 = 0; + a9 = 7; + a5 = 4; + a1 = 12; + a19 = 1; + a12 = 1; + a11 = 1; + a21 = 10; + a16 = 7; + return -1; + } else if((((a21==11)&&(!(a28==1)||((((a12==1)&&((((a3==1)&&(a13==1))||!(a11==1))&&(a19==5)))||!(a6==1))&&(a9==11))))&&((((a17==2)&&(((a28==1)&&(((a5==5)||(a5==6))&&(input==4)))&&(a1==12)))&&(a16==10))&&!(a20==1)))){ + a19 = 2; + a20 = 1; + a9 = 10; + a15 = 0; + a21 = 10; + a16 = 7; + a5 = 4; + a13 = 0; + a28 = 0; + return -1; + } else if((((((((a5==4)&&(((a17==2)&&(((a9==11)&&(input==5))&&(a16==11)))&&(a19==1)))&&!(a18==1))&&(a20==1))&&(a1==13))&&!(a26==1))&&(((a18==1)||(((a26==1)||((a2==1)&&(a13==1)))&&(a23==1)))&&(a21==12)))){ + a13 = 1; + a9 = 7; + a18 = 0; + a19 = 4; + a1 = 12; + a12 = 1; + return 26; + } else if(((!(a20==1)&&((!(a27==1)&&((((input==4)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(a21==10))&&!(a8==1)))&&(a17==2)))&&((a16==7)&&((!(a3==1)||(((a3==1)&&(((a28==1)&&(a1==13))&&(a2==1)))&&(a19==5)))&&!(a18==1))))){ + a1 = 12; + a19 = 1; + a7 = 0; + a9 = 9; + a27 = 0; + a5 = 5; + a20 = 1; + return -1; + } else if(((((!(a24==1)&&((a17==2)&&((a16==9)&&((input==3)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))))&&(a1==14))&&(a21==11))&&(!(a0==1)&&((a4==1)||(!(a27==1)&&(((((a3==1)&&!(a20==1))&&(a19==3))&&!(a8==1))&&(a3==1))))))){ + a22 = 1; + a9 = 9; + a21 = 10; + a20 = 1; + a2 = 0; + a19 = 1; + a4 = 1; + a5 = 6; + return -1; + } else if((((a24==1)&&(((a7==1)&&((((((a0==1)&&((a1==12)&&(input==3)))&&(a16==7))&&!(a20==1))&&(a17==2))&&(a21==12)))&&!(a3==1)))&&(!(a3==1)&&((a5==6)&&((a19==2)&&(((a11==1)&&!(a13==1))&&(a9==7))))))){ + a5 = 4; + a20 = 1; + a21 = 10; + a15 = 0; + a29 = 1; + return 23; + } else if((((a20==1)&&((a21==10)&&((a17==2)&&((((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==1))&&(a2==1))&&(a28==1)))))&&(((!(a27==1)&&(!(a12==1)||(!(a4==1)&&((a27==1)||((a1==13)&&(a28==1))))))&&(a19==3))&&(a16==8)))){ + a9 = 7; + a16 = 7; + a3 = 1; + a19 = 1; + a1 = 12; + a13 = 1; + a27 = 0; + a5 = 4; + return -1; + } else if((((a17==2)&&((a19==3)&&(((((a26==1)||((a1==12)&&(a13==1)))&&(a20==1))&&!(a18==1))&&!(a24==1))))&&(!(a0==1)&&(((((((input==4)&&(a5==6))&&(a21==10))&&!(a8==1))&&!(a7==1))&&(a9==11))&&(a16==8))))){ + a5 = 4; + a26 = 0; + a16 = 7; + a27 = 0; + a9 = 7; + a19 = 1; + a28 = 1; + return -1; + } else if((((a1==13)&&((a20==1)&&(((((a5==4)&&(a13==1))||!(a3==1))&&!(a8==1))&&!(a0==1))))&&((!(a14==1)&&(!(a27==1)&&(((a9==9)&&((((input==5)&&(a21==12))&&!(a7==1))&&(a17==2)))&&(a19==4))))&&(a16==9)))){ + a3 = 1; + a5 = 6; + a21 = 10; + a16 = 7; + a19 = 2; + a28 = 1; + a27 = 0; + a9 = 10; + return 23; + } else if((((a21==12)&&(((a17==2)&&(a6==1))&&(a3==1)))&&((!(a8==1)&&((((a16==8)&&((a19==3)&&((((input==1)&&((((a9==11)&&((a5==5)&&(a1==13)))||((a9==11)&&((a1==13)&&(a5==6))))||(((a5==4)&&(a1==14))&&(a9==7))))&&(a28==1))&&(a20==1))))&&!(a8==1))&&(a12==1)))&&(a12==1)))){ + a9 = 7; + a21 = 10; + a13 = 1; + a19 = 1; + a8 = 0; + a1 = 12; + a5 = 4; + a28 = 1; + a16 = 7; + return -1; + } else if(((((a19==2)&&(((a9==8)&&((a13==1)&&!(a26==1)))&&(a21==12)))||(a4==1))&&((a2==1)&&((a16==10)&&((a1==14)&&(!(a20==1)&&((a23==1)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a17==2))&&(a12==1))&&(a13==1))))))))){ + a20 = 1; + a5 = 6; + a8 = 1; + a9 = 7; + a25 = 0; + a1 = 13; + a15 = 0; + return -1; + } else if(((((((((a2==1)&&((!(a24==1)&&(((a17==2)&&((a16==8)&&(a6==1)))||!(a3==1)))&&(a3==1)))&&(a19==4))&&(a12==1))&&(a9==8))&&(a21==12))&&!(a20==1))&&((a3==1)&&(((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&(a1==14))))){ + a20 = 1; + a10 = 0; + a2 = 0; + a16 = 10; + a9 = 9; + a0 = 1; + a5 = 5; + a21 = 11; + a1 = 13; + return 21; + } else if((((a9==10)&&((a4==1)||((a16==11)&&((a27==1)||((a1==14)&&((a7==1)||((a19==4)&&(a3==1))))))))&&(((a21==11)&&((a20==1)&&(((!(a24==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&(a17==2))&&!(a18==1))))&&!(a18==1)))){ + a1 = 12; + a16 = 7; + a14 = 0; + a9 = 7; + a19 = 1; + a21 = 10; + a5 = 4; + a24 = 0; + a4 = 0; + return -1; + } else if((((a13==1)&&((((((a20==1)&&(((input==5)&&((a5==5)||(a5==6)))&&(a12==1)))&&(a21==12))&&(a1==12))&&(a13==1))&&!(a7==1)))&&(((a0==1)||((a19==1)&&((((a12==1)&&(a9==11))&&(a17==2))&&(a16==8))))&&!(a26==1)))){ + a18 = 0; + a6 = 1; + a9 = 7; + a5 = 4; + a0 = 0; + a16 = 7; + a21 = 10; + return -1; + } else if((((a17==2)&&((a2==1)&&(!(a7==1)&&(((a1==13)&&(!(a0==1)&&((!(a20==1)&&(a23==1))&&(a16==11))))&&(a19==3)))))&&(((((a3==1)&&(((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))&&(input==5)))&&(a21==10))&&!(a27==1))&&!(a14==1)))){ + a23 = 0; + a1 = 12; + a29 = 1; + a6 = 0; + a9 = 9; + a20 = 1; + a16 = 7; + a19 = 1; + a5 = 4; + return -1; + } else if((((((a17==2)&&(((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==4))&&(a6==1)))&&(a19==3))&&(a11==1))&&(((((!(a20==1)&&((((a3==1)&&(a3==1))&&(a11==1))&&(a28==1)))&&(a16==11))&&!(a27==1))&&(a21==10))&&(a1==12)))){ + a1 = 13; + a9 = 9; + a19 = 1; + a16 = 7; + a5 = 6; + a20 = 1; + a3 = 0; + return 26; + } else if(((((a21==10)&&(((((a9==10)&&(input==5))&&!(a7==1))&&(a5==5))&&(a19==3)))&&(a1==12))&&((((a17==2)&&(((((!(a13==1)||(a6==1))&&!(a0==1))||!(a12==1))&&!(a24==1))&&!(a14==1)))&&!(a20==1))&&(a16==10)))){ + if((a0==1)){ + a9 = 8; + a19 = 1; + a6 = 0; + a2 = 0; + a1 = 14; + a15 = 1; + }else{ + a1 = 13; + a28 = 0; + a19 = 1; + a9 = 11; + a20 = 1; + a5 = 4; + a16 = 7; + a25 = 0; + } + return -1; + } else if((((((a9==10)&&(((a19==1)&&(!(a7==1)&&((input==5)&&((a5==4)||(a5==5)))))&&!(a8==1)))&&(a17==2))&&(a1==12))&&((((((a20==1)&&(!(a23==1)||((a4==1)||(a23==1))))&&!(a14==1))&&(a16==8))||!(a6==1))&&(a21==12)))){ + a11 = 1; + a19 = 2; + a5 = 5; + a21 = 10; + a9 = 9; + a1 = 13; + a16 = 7; + a26 = 0; + a2 = 1; + return 23; + } else if((((!(a8==1)&&(((((a6==1)&&((input==1)&&(a16==10)))&&!(a24==1))&&(a28==1))&&!(a20==1)))&&(a5==5))&&((a18==1)||((a1==13)&&((((((a19==1)&&(a28==1))&&(a21==12))&&(a6==1))&&(a9==7))&&(a17==2)))))){ + a21 = 11; + a12 = 0; + a1 = 12; + a19 = 4; + a16 = 7; + a25 = 0; + a5 = 4; + a15 = 1; + a9 = 10; + return 21; + } else if(((((a1==14)&&((a21==11)&&(((a5==5)&&(((a2==1)&&((((input==1)&&!(a20==1))&&(a19==5))&&(a23==1)))&&!(a24==1)))&&(a9==9))))&&(a17==2))&&(((((a23==1)&&(a6==1))&&(a6==1))||(a26==1))&&(a16==10)))){ + a16 = 7; + a21 = 10; + a2 = 0; + a19 = 1; + a15 = 0; + a5 = 6; + a9 = 8; + a20 = 1; + a4 = 1; + return -1; + } else if(((((a6==1)&&((a3==1)&&((!(a23==1)||((a21==12)&&(((a12==1)&&(a1==12))&&(a17==2))))&&(a19==2))))&&(a2==1))&&(!(a26==1)&&((a16==10)&&((a2==1)&&((((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10)))&&(input==4))&&!(a20==1))))))){ + a26 = 1; + a1 = 13; + a5 = 5; + a15 = 1; + a10 = 1; + a9 = 8; + a21 = 11; + return 21; + } else if(((!(a27==1)&&(((a16==9)&&(((a1==12)&&(((((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))&&(input==1))&&(a23==1))&&!(a18==1)))&&!(a26==1)))&&(a23==1)))&&((a20==1)&&((a21==11)&&(!(a7==1)&&(((a2==1)&&(a19==3))&&(a17==2))))))){ + a0 = 0; + a21 = 12; + a9 = 10; + a11 = 1; + a5 = 5; + return 21; + } else if((((((a1==12)&&((a0==1)||((a9==8)&&(a6==1))))&&(a13==1))&&(a6==1))&&((a16==8)&&((a17==2)&&(!(a20==1)&&((a21==11)&&(((a19==1)&&((((input==1)&&((a5==5)||(a5==6)))&&!(a8==1))&&!(a7==1)))&&!(a24==1)))))))){ + a16 = 7; + a5 = 4; + a14 = 0; + a9 = 7; + a20 = 1; + a0 = 0; + a23 = 1; + a21 = 10; + return -1; + } else if((((a11==1)&&((((a9==7)&&(((a6==1)&&(((a1==13)&&(a12==1))&&(a21==12)))&&!(a27==1)))&&(a3==1))||!(a28==1)))&&((a16==9)&&(((a20==1)&&((a17==2)&&((((a5==5)||(a5==6))&&(input==1))&&(a3==1))))&&(a19==4))))){ + a5 = 4; + a3 = 1; + a0 = 0; + a21 = 10; + a16 = 10; + a23 = 1; + a1 = 14; + a19 = 1; + return 21; + } else if((((a20==1)&&((!(a14==1)&&((input==4)&&(a19==4)))&&(a21==11)))&&(((a16==10)&&((!(a14==1)&&(((!(a11==1)||((a1==12)&&((!(a28==1)||(a11==1))&&(a5==6))))||!(a2==1))||(a0==1)))&&(a17==2)))&&(a9==10)))){ + a16 = 7; + a19 = 1; + a13 = 1; + a26 = 0; + a4 = 0; + a21 = 10; + a9 = 7; + a5 = 4; + return -1; + } else if((((a16==7)&&((a20==1)&&((a9==7)&&((a2==1)&&((((a3==1)||!(a11==1))||!(a11==1))||!(a23==1))))))&&((a17==2)&&((a1==14)&&((a5==6)&&(((a3==1)&&(!(a4==1)&&((input==3)&&(a21==11))))&&(a19==1))))))){ + a21 = 10; + a23 = 1; + a5 = 4; + a1 = 12; + a4 = 0; + a27 = 0; + return -1; + } else if((((a6==1)&&(((a7==1)||((((((a21==11)&&((a28==1)&&!(a26==1)))&&(a1==12))||(a8==1))&&(a16==8))&&(a17==2)))||(a7==1)))&&(((a5==5)&&((a2==1)&&((a19==3)&&((input==4)&&(a9==11)))))&&!(a20==1)))){ + a16 = 9; + a21 = 10; + a26 = 0; + a1 = 13; + a0 = 0; + a20 = 1; + a19 = 1; + a28 = 1; + return 26; + } else if((((!(a28==1)||(((!(a20==1)&&(a11==1))||!(a3==1))||!(a11==1)))&&(a16==9))&&(((a2==1)&&(((((a21==12)&&((a9==9)&&((a1==13)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4)))))&&(a17==2))&&(a11==1))&&(a3==1)))&&(a19==5)))){ + if((a25==1)){ + a9 = 10; + a21 = 10; + a19 = 1; + a16 = 7; + a1 = 14; + a20 = 1; + a13 = 0; + a10 = 1; + a0 = 1; + a5 = 5; + }else{ + a1 = 14; + a11 = 0; + a5 = 5; + a19 = 2; + a29 = 0; + a6 = 0; + a9 = 7; + } + return -1; + } else if(((!(a27==1)&&((!(a7==1)&&(((input==6)&&(a20==1))&&(a1==12)))&&(a6==1)))&&((a16==7)&&((a5==6)&&(((((a21==12)&&(!(a7==1)&&((a17==2)&&((a19==1)&&(a3==1)))))&&!(a24==1))&&(a9==10))||!(a11==1)))))){ + a5 = 4; + a1 = 14; + a8 = 0; + a24 = 0; + a23 = 1; + a9 = 7; + a19 = 4; + a16 = 8; + return 26; + } else if(((!(a7==1)&&((a12==1)&&(((((a17==2)&&((a5==6)&&(((a13==1)&&((a21==12)&&((input==3)&&(a16==8))))&&(a9==8))))&&(a1==13))&&(a12==1))&&!(a7==1))))&&(!(a14==1)&&(((a28==1)&&(a20==1))&&(a19==1))))){ + a16 = 7; + a28 = 1; + a1 = 12; + a21 = 10; + a11 = 1; + a5 = 4; + a9 = 7; + a8 = 0; + return -1; + } else if(((((!(a7==1)&&(((((input==1)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11))))&&(a17==2))&&!(a7==1))&&(a1==14)))&&(a16==7))&&(a6==1))&&((!(a20==1)&&((((a19==1)&&(!(a27==1)&&(a13==1)))||!(a6==1))&&(a21==10)))&&(a2==1)))){ + a19 = 2; + a8 = 0; + a5 = 6; + a13 = 1; + a3 = 1; + a16 = 8; + a9 = 9; + a1 = 12; + return 25; + } else if(((((!(a7==1)&&(((a6==1)||(a24==1))&&(a21==11)))||(a0==1))&&(a9==8))&&((a17==2)&&((a19==5)&&(((((a23==1)&&((a13==1)&&((a5==6)&&((input==6)&&(a16==11)))))&&(a28==1))&&(a1==13))&&(a20==1)))))){ + a19 = 1; + a6 = 1; + a21 = 10; + a9 = 7; + a7 = 0; + a5 = 4; + a16 = 7; + a1 = 12; + return -1; + } else if(((((a6==1)&&((a19==2)&&((((a21==12)&&(((a3==1)&&(a9==10))&&(a16==10)))&&(a1==12))&&!(a0==1))))&&(a17==2))&&(!(a0==1)&&((((a12==1)&&(!(a4==1)&&(((a5==5)||(a5==6))&&(input==1))))&&!(a27==1))&&!(a20==1))))){ + a9 = 7; + a20 = 1; + a16 = 9; + a5 = 4; + a1 = 13; + a22 = 0; + a6 = 0; + a28 = 0; + a19 = 3; + return 21; + } else if((((!(a0==1)&&(!(a18==1)&&(((a16==9)&&((input==4)&&(a19==3)))&&!(a20==1))))&&(a6==1))&&(((a1==14)&&((a9==10)&&((a5==5)&&(!(a14==1)&&((((a17==2)&&(a28==1))||(a4==1))||!(a13==1))))))&&(a21==10)))){ + if((a26==1)){ + a16 = 7; + a19 = 2; + a20 = 1; + a1 = 12; + a9 = 11; + a26 = 1; + a10 = 1; + a7 = 1; + }else{ + a9 = 11; + a16 = 7; + a1 = 13; + a20 = 1; + a19 = 1; + a0 = 1; + a29 = 1; + a5 = 6; + a6 = 0; + } + return -1; + } else if((((a20==1)&&((((a19==2)&&((input==4)&&(a1==12)))&&!(a14==1))&&(a13==1)))&&((a9==7)&&(((a17==2)&&((a21==11)&&(!(a6==1)||((((!(a8==1)&&(a13==1))||!(a3==1))&&(a16==8))||!(a23==1)))))&&(a5==5))))){ + a13 = 1; + a5 = 4; + a8 = 0; + a1 = 14; + a16 = 10; + a3 = 1; + a19 = 3; + a21 = 10; + return 25; + } else if((((((a16==9)&&(!(a20==1)&&((a14==1)||((a3==1)&&(!(a27==1)&&(a3==1))))))&&(a3==1))&&(a1==13))&&((a21==11)&&((a11==1)&&(((((input==5)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9))))&&(a19==1))&&(a28==1))&&(a17==2)))))){ + a12 = 0; + a21 = 12; + a16 = 11; + a11 = 0; + a15 = 1; + a9 = 11; + a19 = 4; + a20 = 1; + a5 = 5; + return 25; + } else if(((((a6==1)&&(((!(a0==1)&&((a17==2)&&(a11==1)))&&(a20==1))&&(a16==8)))&&(a1==14))&&(!(a0==1)&&(((a9==11)&&(((!(a18==1)&&((((a5==4)||(a5==5))&&(input==6))&&(a21==10)))&&!(a14==1))&&(a19==1)))&&(a11==1))))){ + a14 = 0; + a1 = 12; + a16 = 7; + a5 = 4; + a23 = 1; + a9 = 7; + a26 = 0; + return -1; + } else if(((!(a14==1)&&(((a17==2)&&(!(a7==1)&&(((a6==1)&&((input==1)&&(a19==4)))&&(a1==13))))&&!(a0==1)))&&((((((a9==11)&&(((a20==1)&&(a2==1))&&(a21==10)))&&(a5==4))&&(a11==1))&&(a16==9))&&(a12==1)))){ + a2 = 1; + a19 = 3; + a5 = 6; + a4 = 0; + a18 = 0; + a20 = 0; + a9 = 10; + a16 = 8; + return 25; + } else if(((((a16==9)&&((a1==13)&&((((a20==1)&&(((a21==12)&&(a28==1))&&(a17==2)))&&(a2==1))&&!(a14==1))))&&(a11==1))&&(((a28==1)&&((((((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6))))&&(input==4))&&(a19==1))&&(a12==1)))&&(a11==1)))){ + a12 = 1; + a21 = 10; + a9 = 7; + a16 = 7; + a5 = 4; + a1 = 12; + a7 = 0; + return -1; + } else if((((a1==12)&&(!(a20==1)&&(!(a14==1)&&(!(a3==1)||(a13==1)))))&&((a6==1)&&((((a19==2)&&(!(a18==1)&&(((((input==4)&&((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9))))&&!(a4==1))&&(a17==2))&&(a21==11))))&&!(a18==1))&&(a16==8))))){ + a5 = 4; + a7 = 0; + a9 = 7; + a21 = 10; + a19 = 1; + a20 = 1; + a4 = 0; + a16 = 7; + return -1; + } else if((((a16==11)&&((a20==1)&&(((a19==5)&&(!(a7==1)&&(!(a7==1)&&(((a11==1)&&((a9==11)&&(input==4)))&&(a5==6)))))&&(a1==13))))&&(((a0==1)||((((a13==1)&&(a21==11))&&(a13==1))||(a0==1)))&&(a17==2)))){ + a9 = 7; + a4 = 0; + a21 = 10; + a3 = 1; + a16 = 7; + a23 = 1; + a1 = 12; + a5 = 4; + a19 = 1; + return -1; + } else if(((!(a20==1)&&((((((a17==2)&&(((a9==7)&&((a6==1)&&(a16==8)))&&(a1==13)))&&(a21==11))||!(a11==1))||!(a6==1))&&(a19==1)))&&((!(a14==1)&&(!(a26==1)&&(((input==4)&&((a5==4)||(a5==5)))&&!(a4==1))))&&(a2==1)))){ + a16 = 7; + a5 = 4; + a1 = 12; + a21 = 10; + a11 = 1; + a28 = 1; + a12 = 1; + a20 = 1; + return -1; + } return calculate_output63(input); + } + + int calculate_output63(int input) { + if(((((((a28==1)&&(a9==8))&&!(a26==1))&&(a19==4))&&!(a20==1))&&((((((a1==12)&&((((a13==1)&&((a2==1)&&((input==3)&&(a21==10))))&&(a16==8))&&(a17==2)))&&(a6==1))&&(a28==1))&&!(a24==1))&&(a5==6)))){ + a9 = 7; + a14 = 0; + a13 = 1; + a20 = 1; + a11 = 1; + a5 = 4; + a19 = 1; + a16 = 7; + return -1; + } else if((((a27==1)||(!(a11==1)||((a5==5)&&((a1==13)&&(((a21==12)&&(a12==1))&&(a20==1))))))&&((((a6==1)&&(!(a8==1)&&((a23==1)&&((((input==3)&&(a19==3))&&(a12==1))&&(a17==2)))))&&(a16==7))&&(a9==10)))){ + a24 = 0; + a16 = 8; + a5 = 6; + a19 = 5; + a7 = 0; + return 26; + } else if(((((a17==2)&&((((a20==1)&&(!(a26==1)&&((a19==1)&&((((a5==5)||(a5==6))&&(input==5))&&(a9==10)))))&&(a28==1))&&!(a8==1)))&&(a1==13))&&((a21==10)&&((a16==8)&&(!(a2==1)||((!(a11==1)||(a12==1))||!(a3==1))))))){ + a16 = 7; + a26 = 0; + a19 = 2; + a7 = 0; + a20 = 0; + a1 = 12; + a9 = 7; + a5 = 5; + a3 = 1; + a21 = 11; + return 23; + } else if(((((!(a8==1)&&(!(a7==1)&&((a17==2)&&((input==1)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5)))))))&&!(a7==1))&&!(a27==1))&&(((a20==1)&&((((!(a18==1)&&((a19==1)&&(a6==1)))&&(a12==1))&&(a16==10))&&(a21==10)))&&(a1==14)))){ + a5 = 4; + a8 = 0; + a27 = 0; + a9 = 7; + a12 = 1; + a1 = 12; + a16 = 7; + return -1; + } else if((((!(a14==1)&&((a9==8)&&(((a16==10)&&(input==1))&&!(a24==1))))&&(a21==11))&&(!(a12==1)||(((!(a24==1)&&((a20==1)&&((a19==2)&&(!(a23==1)||((a27==1)||((a5==4)&&(a12==1)))))))&&(a17==2))&&(a1==12))))){ + a24 = 0; + a16 = 7; + a13 = 1; + a21 = 10; + a19 = 1; + a0 = 0; + a9 = 7; + return -1; + } else if(((((a19==1)&&(((a1==12)&&(((a16==8)&&(((!(a20==1)&&(a28==1))||!(a28==1))&&(a13==1)))&&(a9==11)))&&(a17==2)))&&(a21==11))&&(((a6==1)&&(((a11==1)&&(((a5==5)||(a5==6))&&(input==5)))&&!(a14==1)))&&(a3==1)))){ + a24 = 0; + a21 = 10; + a5 = 4; + a9 = 7; + a6 = 1; + a16 = 7; + a20 = 1; + a11 = 1; + return -1; + } else if(((((((a17==2)&&(((((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6))))&&(input==3))&&(a12==1)))&&(a6==1))&&(a21==10))&&!(a18==1))&&(((((a24==1)||(((a20==1)&&((a28==1)&&!(a0==1)))&&(a1==13)))&&!(a8==1))&&(a19==1))&&(a16==8)))){ + a5 = 4; + a9 = 7; + a13 = 1; + a1 = 12; + a16 = 7; + a26 = 0; + a8 = 0; + return -1; + } else if((((a16==9)&&((!(a26==1)&&((!(a23==1)||(a23==1))&&(a19==4)))||(a8==1)))&&(!(a14==1)&&((((a17==2)&&(!(a20==1)&&((a21==11)&&(!(a8==1)&&((input==3)&&(((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))))))))&&(a1==14))&&!(a26==1))))){ + if((a16==10)){ + a5 = 6; + a20 = 1; + a6 = 0; + a10 = 0; + a9 = 9; + a1 = 12; + a19 = 1; + a21 = 10; + a16 = 7; + }else{ + a21 = 10; + a29 = 1; + a19 = 1; + a12 = 0; + a1 = 13; + a20 = 1; + a9 = 11; + a16 = 7; + a5 = 6; + } + return -1; + } else if((((a19==4)&&(((a1==12)&&((((a5==5)&&((((a9==7)&&(input==5))&&!(a24==1))&&!(a7==1)))&&(a17==2))&&(a21==12)))&&(a20==1)))&&((a16==8)&&(((!(a12==1)||((a6==1)||(a18==1)))||!(a11==1))||(a18==1))))){ + a5 = 4; + a7 = 0; + a4 = 0; + a21 = 10; + a11 = 1; + a19 = 1; + a16 = 7; + return -1; + } else if((((a20==1)&&((!(a7==1)&&((a16==11)&&(!(a2==1)||(((a13==1)&&(a21==12))||(a18==1)))))&&(a5==4)))&&((a23==1)&&((a1==13)&&((((((a19==2)&&(input==6))&&(a13==1))&&(a17==2))&&(a9==9))&&(a2==1)))))){ + a16 = 10; + a11 = 1; + a21 = 11; + a0 = 0; + a19 = 5; + a18 = 0; + a9 = 8; + return 21; + } else if(((((a9==8)&&(!(a20==1)&&((a19==5)&&((a11==1)&&((a1==14)&&((a3==1)&&(((input==4)&&((a5==4)||(a5==5)))&&(a21==12))))))))&&(a17==2))&&((a16==7)&&((a12==1)&&(!(a27==1)&&(!(a4==1)&&((a11==1)||!(a11==1)))))))){ + a23 = 1; + a5 = 4; + a1 = 12; + a14 = 0; + a19 = 1; + a21 = 10; + a9 = 7; + a20 = 1; + return -1; + } else if((((((a6==1)||(a26==1))&&(a13==1))&&(a1==13))&&(!(a8==1)&&((a16==8)&&((a2==1)&&(!(a18==1)&&(((a28==1)&&(((a17==2)&&((((input==3)&&((a5==4)||(a5==5)))&&(a20==1))&&(a19==1)))&&(a9==7)))&&(a21==11)))))))){ + a1 = 12; + a21 = 10; + a5 = 4; + a13 = 1; + a18 = 0; + a12 = 1; + a16 = 7; + return -1; + } else if((((a20==1)&&(((a1==12)&&((a3==1)&&((a17==2)&&((!(a0==1)&&((((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10))))&&(input==3)))&&(a21==11)))))&&(a23==1)))&&((a14==1)||((a11==1)&&(!(a27==1)&&(((a28==1)&&(a19==2))&&(a16==11))))))){ + a14 = 0; + a21 = 10; + a24 = 0; + a16 = 7; + a5 = 4; + a9 = 7; + a11 = 1; + a19 = 1; + return -1; + } else if((((a12==1)&&(!(a24==1)&&(((a12==1)&&((a17==2)&&((a12==1)&&((a21==12)&&((input==4)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))))))&&(a16==10))))&&((((a20==1)&&((a19==5)&&((a28==1)&&(a13==1))))||!(a3==1))&&(a1==13)))){ + a12 = 1; + a27 = 0; + a19 = 1; + a9 = 7; + a5 = 4; + a21 = 10; + a16 = 7; + a23 = 1; + a1 = 12; + return -1; + } else if((((a16==8)&&(((a17==2)&&(((!(a18==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3)))&&(a21==11))&&!(a7==1)))&&(a9==8)))&&(((a19==3)&&(!(a28==1)||((a1==12)&&((a13==1)&&(((a23==1)&&(a13==1))||(a4==1))))))&&!(a20==1)))){ + a6 = 1; + a5 = 6; + a27 = 0; + a21 = 12; + a20 = 1; + a9 = 9; + a16 = 11; + a1 = 14; + return 26; + } else if((((a21==12)&&((!(a20==1)&&(a11==1))&&(a11==1)))&&(((a23==1)&&(((a5==4)&&((!(a18==1)&&((a19==5)&&((a16==10)&&(((a1==13)&&((a9==11)&&(input==6)))&&(a17==2)))))&&(a12==1)))&&!(a24==1)))&&(a13==1)))){ + a16 = 7; + a9 = 7; + a5 = 6; + a25 = 1; + a20 = 1; + a1 = 12; + a19 = 1; + a8 = 1; + a18 = 1; + a21 = 10; + return -1; + } else if(((!(a12==1)||((a24==1)||((a19==3)&&((!(a3==1)||((a11==1)&&(a9==10)))&&(a16==8)))))&&((a28==1)&&((((a21==10)&&((a23==1)&&((a1==14)&&((a20==1)&&((input==6)&&(a17==2))))))&&(a5==5))&&!(a26==1))))){ + a24 = 0; + a19 = 1; + a28 = 1; + a8 = 0; + a16 = 7; + a9 = 7; + a5 = 4; + a1 = 12; + return -1; + } else if(((((a28==1)&&(((a21==12)&&(!(a7==1)&&((a2==1)&&(!(a8==1)&&(((a5==5)||(a5==6))&&(input==5))))))&&(a17==2)))&&(a16==7))&&((((!(a3==1)||((a1==12)&&(!(a23==1)||(a3==1))))&&(a20==1))&&(a19==2))&&(a9==7)))){ + a5 = 4; + a6 = 1; + a21 = 10; + a24 = 0; + a11 = 1; + a19 = 1; + return -1; + } else if((((a17==2)&&((a20==1)&&((((!(a18==1)&&(!(a24==1)&&(((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a9==11))))&&(a12==1))&&!(a14==1))&&(a1==14))))&&((a16==9)&&((((a2==1)&&((a13==1)||(a4==1)))&&(a21==10))&&(a19==3))))){ + a1 = 12; + a9 = 7; + a23 = 1; + a16 = 7; + a0 = 0; + a5 = 4; + a19 = 1; + a12 = 1; + return -1; + } else if(((((((a16==9)&&((a21==12)&&((((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(input==4))))&&(a28==1))&&(a2==1))&&(a17==2))&&(!(a7==1)&&((a4==1)||((a13==1)&&((((a1==14)&&((a11==1)&&(a19==5)))&&!(a20==1))||(a18==1))))))){ + a9 = 9; + a6 = 0; + a16 = 7; + a3 = 0; + a2 = 0; + a21 = 10; + a19 = 2; + a1 = 12; + a20 = 1; + a5 = 6; + return -1; + } else if(((!(a2==1)||(((a7==1)||((a16==7)&&((((a6==1)&&(a17==2))&&(a20==1))&&(a1==14))))||!(a13==1)))&&(!(a0==1)&&((a2==1)&&(!(a7==1)&&((a19==4)&&((a21==12)&&((((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))&&(input==4))))))))){ + a1 = 12; + a5 = 4; + a14 = 0; + a8 = 0; + a21 = 10; + a27 = 0; + a9 = 7; + a19 = 1; + return -1; + } else if((((a4==1)||((((((a27==1)||(a23==1))&&!(a0==1))&&(a17==2))&&(a1==14))&&(a2==1)))&&((a19==1)&&((a21==11)&&((a16==9)&&(((a11==1)&&(((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==1))&&(a20==1)))&&!(a26==1))))))){ + a1 = 13; + a9 = 11; + a19 = 5; + a0 = 0; + a5 = 6; + a16 = 7; + a21 = 10; + a2 = 1; + return 25; + } else if(((!(a20==1)&&((a19==2)&&(((a16==9)&&((a28==1)&&((((a5==5)||(a5==6))&&(input==4))&&(a12==1))))&&(a1==14))))&&((!(a7==1)&&((a7==1)||(((((a21==10)&&(a3==1))&&(a9==9))||!(a28==1))&&!(a7==1))))&&(a17==2)))){ + if((a3==1)){ + a9 = 11; + a27 = 1; + a20 = 1; + a16 = 7; + a5 = 6; + a4 = 1; + a19 = 1; + a25 = 0; + }else{ + a1 = 12; + a4 = 1; + a9 = 10; + a20 = 1; + a22 = 1; + a19 = 1; + a5 = 4; + a3 = 0; + a16 = 7; + } + return -1; + } else if(((((((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9)))&&(input==5))&&(a13==1))&&(a21==11))&&((a27==1)||(((a13==1)&&(((a1==14)&&(((a11==1)&&((!(a20==1)&&((a28==1)&&(a19==1)))&&(a28==1)))&&(a17==2)))||(a14==1)))&&(a16==7))))){ + a12 = 1; + a9 = 7; + a5 = 4; + a1 = 12; + a3 = 1; + a20 = 1; + a27 = 0; + a21 = 10; + return -1; + } else if((((a9==8)&&((a28==1)&&(((a5==4)&&((((a16==8)&&((a17==2)&&(a3==1)))&&!(a8==1))||(a8==1)))&&!(a14==1))))&&(!(a20==1)&&(((a21==10)&&((((a1==14)&&(input==4))&&(a13==1))&&(a19==2)))&&(a12==1))))){ + a20 = 1; + a18 = 0; + a26 = 0; + a1 = 12; + a16 = 7; + a19 = 1; + a9 = 7; + return -1; + } else if((((((a19==3)&&((((a5==5)||(a5==6))&&(input==1))&&!(a27==1)))&&!(a27==1))&&(a3==1))&&(((!(a2==1)||(((((((a1==13)&&(a13==1))&&(a21==11))&&(a16==7))||!(a11==1))&&(a17==2))&&(a9==10)))&&!(a20==1))||!(a2==1)))){ + a5 = 4; + a27 = 0; + a9 = 7; + a1 = 12; + a24 = 0; + a20 = 1; + a21 = 10; + a26 = 0; + a19 = 1; + return -1; + } else if(((!(a27==1)&&(!(a4==1)&&(((a1==14)&&(((a19==2)&&((a21==11)&&((((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(input==3))))&&(a17==2)))&&(a16==10))))&&(!(a14==1)&&((a0==1)||((a3==1)&&(!(a20==1)&&((a13==1)&&(a2==1)))))))){ + if((a22==1)){ + a22 = 1; + a20 = 1; + a16 = 8; + a9 = 10; + a5 = 6; + a21 = 12; + a1 = 13; + a18 = 1; + a19 = 5; + a25 = 1; + }else{ + a12 = 0; + a20 = 1; + a19 = 1; + a9 = 11; + a5 = 5; + a28 = 0; + a16 = 7; + a24 = 1; + a21 = 10; + } + return -1; + } else if((((a28==1)&&(((a20==1)&&(!(a6==1)||(a13==1)))&&(a16==8)))&&(((a17==2)&&((((((a19==4)&&(((a21==12)&&(((a5==5)||(a5==6))&&(input==6)))&&(a1==12)))&&(a3==1))&&(a9==11))&&!(a4==1))&&(a3==1)))&&!(a8==1)))){ + a9 = 7; + a1 = 14; + a8 = 0; + a16 = 10; + a11 = 1; + a5 = 5; + a19 = 3; + a24 = 0; + return 21; + } else if((((a5==6)&&((!(a27==1)&&((a1==12)&&(!(a7==1)&&(a2==1))))||(a27==1)))&&(((a16==9)&&((((((a11==1)&&(((input==4)&&(a17==2))&&(a20==1)))&&(a21==12))&&!(a4==1))&&(a9==8))&&!(a0==1)))&&(a19==5)))){ + a7 = 0; + a5 = 4; + a16 = 7; + a9 = 7; + a21 = 10; + a19 = 1; + a2 = 1; + a12 = 1; + return -1; + } else if((((((!(a26==1)&&((((input==3)&&(a19==5))&&(a17==2))&&(a6==1)))&&(a1==13))&&(a9==11))&&!(a14==1))&&((((!(a0==1)&&((((a5==6)&&(a3==1))&&(a21==11))&&(a16==9)))||!(a2==1))||!(a12==1))&&(a20==1)))){ + a1 = 12; + a9 = 7; + a21 = 10; + a4 = 0; + a6 = 1; + a2 = 1; + a16 = 7; + a19 = 1; + a5 = 4; + return -1; + } else if(((((a21==11)&&(!(a23==1)||(((a17==2)&&(((a16==9)&&(a6==1))||(a4==1)))&&(a1==13))))&&(a9==7))&&((a20==1)&&(((a19==3)&&((!(a14==1)&&((a11==1)&&(((a5==5)||(a5==6))&&(input==3))))&&!(a27==1)))&&(a11==1))))){ + a5 = 4; + a19 = 1; + a14 = 0; + a28 = 1; + a21 = 10; + a27 = 0; + a1 = 12; + a16 = 7; + return -1; + } else if(((((!(a18==1)&&(!(a4==1)&&((a11==1)&&((a5==4)&&(input==1)))))&&(a13==1))&&(a17==2))&&((a9==9)&&(((a1==14)&&((a20==1)&&((((a27==1)||((a21==12)&&(a23==1)))&&(a16==10))&&!(a7==1))))&&(a19==2))))){ + a16 = 7; + a0 = 0; + a6 = 1; + a23 = 1; + a1 = 13; + a21 = 10; + return 25; + } else if(((((a18==1)&&((((a19==3)&&((a27==1)&&(!(a28==1)&&((a17==2)&&((input==4)&&((a5==5)||(a5==6)))))))&&(a16==8))&&!(a23==1)))&&(a26==1))&&((a21==10)&&((a18==1)&&((a1==14)&&(((a6==1)&&(a9==9))&&!(a20==1))))))){ + a28 = 0; + a9 = 11; + a20 = 1; + a19 = 1; + a5 = 6; + a18 = 1; + a16 = 7; + a27 = 1; + return -1; + } else if((((a28==1)&&(((((!(a24==1)&&(((a9==8)&&((input==1)&&((a5==4)||(a5==5))))&&!(a8==1)))&&(a20==1))&&(a1==13))&&(a16==11))&&(a19==3)))&&(((!(a7==1)&&((a17==2)&&((a28==1)&&(a21==11))))&&(a23==1))&&!(a26==1)))){ + a21 = 12; + a9 = 9; + a5 = 4; + a16 = 9; + a24 = 0; + a1 = 12; + a2 = 1; + a8 = 0; + return 21; + } else if((((!(a0==1)&&((a9==10)&&((a16==11)&&((((a17==2)&&(input==1))&&(a23==1))&&(a1==12)))))&&(a28==1))&&((((a8==1)||(((a20==1)&&((a5==4)&&((a6==1)&&(a19==1))))&&(a21==12)))||(a14==1))&&!(a8==1)))){ + a18 = 0; + a21 = 10; + a24 = 0; + a9 = 7; + a0 = 0; + a16 = 7; + return -1; + } else if(((((a1==12)&&((a17==2)&&(((((a26==1)||((a11==1)&&!(a7==1)))||!(a13==1))&&(a19==5))&&(a21==11))))&&(a9==7))&&((a16==8)&&((((a13==1)&&((a6==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4))))&&!(a20==1))&&(a11==1))))){ + a3 = 1; + a16 = 7; + a0 = 0; + a20 = 1; + a5 = 4; + a26 = 0; + a21 = 10; + a19 = 3; + return 26; + } else if(((((a6==1)&&(!(a26==1)&&((a21==10)&&((a13==1)&&((a17==2)&&((input==3)&&((a5==4)||(a5==5))))))))&&(a20==1))&&(((a9==11)&&((((a1==14)&&((a19==4)&&((a0==1)||(a11==1))))&&(a16==11))||!(a6==1)))||(a7==1)))){ + a1 = 12; + a0 = 0; + a16 = 7; + a26 = 0; + a3 = 1; + a9 = 7; + a19 = 1; + a5 = 4; + return -1; + } else if(((!(a24==1)&&(((a17==2)&&((((a28==1)&&(a6==1))&&(a19==1))||(a26==1)))&&(a28==1)))&&(((a16==7)&&(!(a20==1)&&((a21==11)&&((a11==1)&&((((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a9==8))&&!(a26==1))))))&&(a1==13)))){ + a8 = 0; + a1 = 12; + a21 = 10; + a20 = 1; + a4 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if(((((((((((a9==7)&&((a5==5)&&(a1==14)))||(((a9==11)&&((a5==6)&&(a1==13)))||(((a1==14)&&(a5==4))&&(a9==7))))&&(input==3))&&!(a26==1))&&!(a27==1))&&!(a27==1))&&(a28==1))&&(a19==4))&&((!(a20==1)&&((a17==2)&&((a16==9)&&(!(a23==1)||((a3==1)&&(a12==1))))))&&(a21==12)))){ + if((a8==1)){ + a13 = 0; + a29 = 1; + a9 = 9; + a19 = 1; + a16 = 11; + a20 = 1; + a23 = 0; + a21 = 11; + a5 = 5; + a1 = 12; + }else{ + a22 = 0; + a19 = 1; + a20 = 1; + a15 = 0; + a16 = 7; + a1 = 13; + a21 = 10; + a25 = 0; + a5 = 6; + a9 = 7; + } + return -1; + } else if((((((a17==2)&&((a16==10)&&((!(a8==1)&&((input==4)&&(a1==12)))&&(a23==1))))&&(a20==1))&&(a21==10))&&((!(a6==1)||((a5==6)&&((a24==1)||(((a24==1)||((a6==1)&&(a13==1)))&&(a19==2)))))&&(a9==11)))){ + a19 = 1; + a18 = 0; + a16 = 7; + a26 = 0; + a9 = 7; + a11 = 1; + a5 = 4; + return -1; + } else if((((((a28==1)&&(((((a19==2)&&((a21==10)&&(input==5)))&&(a12==1))&&(a2==1))&&(a11==1)))&&(a16==8))&&(a5==5))&&(((a17==2)&&((!(a12==1)||(((a1==14)&&(a13==1))&&!(a20==1)))||!(a12==1)))&&(a9==11)))){ + a20 = 1; + a16 = 7; + a5 = 4; + a1 = 12; + a19 = 1; + a13 = 1; + a9 = 7; + a3 = 1; + return -1; + } else if((((a9==10)&&((a19==3)&&((a3==1)&&((a21==10)&&(!(a20==1)&&(((((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&(a17==2))&&!(a14==1))&&(a16==9)))))))&&((a1==13)&&((!(a6==1)||((a27==1)||((a12==1)&&(a3==1))))&&!(a14==1))))){ + a20 = 1; + a13 = 0; + a5 = 5; + a15 = 0; + a19 = 4; + a16 = 11; + a9 = 7; + a18 = 1; + return 21; + } else if((((((a1==14)&&(!(a27==1)&&((a20==1)&&(((a17==2)&&(!(a24==1)&&(((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))&&(input==6))))&&(a3==1)))))&&(a21==10))&&(a19==5))&&(((!(a6==1)||((a13==1)&&(a28==1)))||!(a13==1))&&(a16==8)))){ + a9 = 7; + a23 = 1; + a16 = 7; + a5 = 4; + a6 = 1; + a11 = 1; + a19 = 1; + a1 = 12; + return -1; + } else if((((a16==7)&&((a12==1)&&(a20==1)))&&((a17==2)&&((((((a2==1)&&((a28==1)&&((((((input==4)&&(a5==5))&&(a1==12))&&!(a18==1))&&(a28==1))&&!(a24==1))))&&(a9==11))&&(a21==11))&&(a19==2))&&(a3==1))))){ + a5 = 4; + a9 = 7; + a19 = 1; + a26 = 0; + a21 = 10; + a7 = 0; + a24 = 0; + return -1; + } else if((((((((a20==1)&&(a23==1))&&(a19==4))&&(a1==13))||(a18==1))||!(a12==1))&&(!(a26==1)&&((a21==11)&&((((!(a7==1)&&(((input==4)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&!(a27==1)))&&(a17==2))&&!(a26==1))&&(a16==8)))))){ + a6 = 1; + a8 = 0; + a13 = 1; + a16 = 7; + a9 = 7; + a5 = 4; + a21 = 10; + a19 = 1; + a1 = 12; + return -1; + } else if(((((((a14==1)||(((((a6==1)&&(a17==2))&&(a19==2))||(a7==1))&&(a2==1)))&&(a16==8))||(a7==1))||!(a2==1))&&(((a20==1)&&(((input==6)&&((((a5==4)&&(a1==13))&&(a9==7))||(((a9==11)&&((a5==5)&&(a1==12)))||(((a5==6)&&(a1==12))&&(a9==11)))))&&(a21==12)))&&(a23==1)))){ + a16 = 7; + a26 = 0; + a0 = 0; + a21 = 10; + a5 = 4; + a1 = 13; + a9 = 9; + a12 = 1; + return 25; + } else if(((((a19==5)&&((a1==13)&&((a17==2)&&((a11==1)&&(((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5)))&&(input==4))))))&&!(a7==1))&&(((a16==8)&&(((!(a23==1)||((!(a26==1)&&(a11==1))||!(a23==1)))&&!(a20==1))&&(a21==12)))||(a8==1)))){ + a5 = 5; + a16 = 7; + a20 = 1; + a11 = 0; + a2 = 0; + a12 = 0; + a19 = 3; + a9 = 7; + return -1; + } else if(((!(a14==1)&&((a17==2)&&((a3==1)&&((a19==1)&&(!(a8==1)&&((a28==1)&&((a13==1)&&((a9==10)&&(((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a20==1))))))))))&&(((a21==12)&&(((a11==1)&&(a1==12))&&(a16==7)))||(a8==1)))){ + if((a23==1)){ + a21 = 11; + a19 = 4; + a13 = 1; + a26 = 0; + a9 = 8; + a5 = 5; + a16 = 8; + }else{ + a21 = 10; + a11 = 1; + a5 = 4; + a1 = 13; + a19 = 2; + a26 = 0; + a12 = 1; + a20 = 1; + } + return 21; + } else if((((a13==1)&&((a2==1)&&((a12==1)&&((((((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4)))&&(input==3))&&(a19==1)))))&&((((a11==1)&&((a26==1)||((a21==11)&&((a16==7)&&((a17==2)&&((a6==1)&&!(a20==1)))))))&&(a1==14))&&!(a26==1)))){ + a3 = 1; + a9 = 7; + a5 = 4; + a7 = 0; + a1 = 12; + a21 = 10; + a11 = 1; + a20 = 1; + return -1; + } else if((((((!(a24==1)&&(((input==1)&&((((((a5==5)&&(a1==14))&&(a9==11))&&(a19==4))||((a19==4)&&(((a5==6)&&(a1==14))&&(a9==11))))||((a19==5)&&(((a1==12)&&(a5==4))&&(a9==7)))))&&!(a0==1)))&&!(a14==1))&&!(a24==1))&&(a21==10))&&((!(a6==1)||((a17==2)&&((a18==1)||(!(a20==1)&&(a11==1)))))&&(a16==7)))){ + a23 = 1; + a9 = 7; + a1 = 12; + a7 = 0; + a20 = 1; + a3 = 1; + a19 = 1; + a5 = 4; + return -1; + } else if(((!(a3==1)||(!(a14==1)&&((((a9==7)&&(((!(a4==1)&&(a6==1))||(a26==1))&&(a6==1)))&&(a19==4))&&(a16==10))))&&((((a20==1)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a17==2))&&!(a18==1)))&&(a21==11))&&(a1==14)))){ + a9 = 9; + a8 = 0; + a21 = 12; + a24 = 0; + a1 = 13; + a19 = 2; + a5 = 5; + a16 = 9; + a3 = 1; + return -1; + } else if((((a7==1)&&(!(a13==1)&&((a9==7)&&(((a17==2)&&((a21==10)&&(input==3)))&&!(a20==1)))))&&((((a7==1)&&(!(a3==1)&&(((a16==7)&&(((a6==1)&&(a19==1))&&(a5==6)))&&(a1==12))))&&!(a13==1))&&(a27==1)))){ + a3 = 0; + a9 = 11; + a19 = 2; + a20 = 1; + a15 = 1; + a6 = 0; + return -1; + } else if(((((a21==11)&&((a16==8)&&((a12==1)||(a26==1))))&&(a17==2))&&(((!(a24==1)&&((!(a4==1)&&(((((a19==2)&&((input==3)&&(a20==1)))&&!(a24==1))&&(a28==1))&&(a1==12)))&&(a5==5)))&&(a28==1))&&(a9==7)))){ + a7 = 0; + a9 = 8; + a5 = 6; + a2 = 1; + a4 = 0; + a19 = 5; + a21 = 12; + a1 = 14; + return 22; + } else if(((!(a28==1)||(!(a4==1)&&((a19==4)&&((a17==2)&&((!(a12==1)||((a2==1)&&(a9==8)))||(a14==1))))))&&((((a1==13)&&(!(a8==1)&&((a16==9)&&(((input==3)&&(a20==1))&&(a5==4)))))&&(a21==11))&&!(a7==1)))){ + a7 = 0; + a9 = 7; + a1 = 12; + a26 = 0; + a16 = 7; + a21 = 10; + a19 = 1; + a27 = 0; + return -1; + } else if((((a19==1)&&((a1==12)&&(((((!(a4==1)&&((input==6)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))&&(a21==11))&&!(a20==1))&&(a11==1))&&!(a14==1))))&&(!(a26==1)&&((a17==2)&&((((a6==1)&&(a16==8))&&!(a8==1))&&!(a0==1)))))){ + a5 = 5; + a13 = 1; + a1 = 13; + a19 = 2; + a9 = 9; + a21 = 10; + a4 = 0; + a0 = 0; + a20 = 1; + a16 = 7; + return 25; + } else if(((!(a7==1)&&(((((((a3==1)||(a26==1))||(a26==1))&&(a21==10))&&!(a20==1))&&!(a14==1))&&(a1==14)))&&((a13==1)&&(((a9==11)&&((a19==2)&&((a17==2)&&((a3==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4))))))&&(a16==9))))){ + a16 = 7; + a20 = 1; + a10 = 0; + a5 = 5; + a3 = 0; + a9 = 10; + a19 = 1; + a0 = 1; + a1 = 13; + return 22; + } else if((((a20==1)&&((a1==12)&&((a16==10)&&(((a3==1)&&((input==3)&&(a19==3)))&&!(a18==1)))))&&(((!(a14==1)&&((a21==12)&&(!(a14==1)&&(!(a7==1)&&(!(a8==1)&&((a28==1)&&(a9==11)))))))&&(a5==6))&&(a17==2)))){ + a19 = 1; + a5 = 4; + a9 = 7; + a2 = 1; + a21 = 10; + a16 = 7; + a23 = 1; + a6 = 1; + return -1; + } else if((((((a19==2)&&(!(a6==1)&&((((((a20==1)&&((a18==1)&&(a6==1)))&&(a16==11))&&!(a2==1))&&(a9==8))&&!(a3==1))))&&(a1==13))&&!(a12==1))&&((a21==11)&&(((a17==2)&&(((a5==4)||(a5==5))&&(input==5)))&&(a14==1))))){ + a10 = 1; + a16 = 7; + a21 = 12; + a4 = 1; + a5 = 4; + a9 = 7; + a20 = 0; + a15 = 1; + return 23; + } else if(((!(a11==1)||(((((a1==14)&&(((a23==1)&&(a20==1))&&(a17==2)))||!(a2==1))&&(a21==10))&&(a19==3)))&&((a12==1)&&((a9==11)&&(((((a16==9)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))&&(a11==1))&&!(a4==1))&&!(a0==1)))))){ + a9 = 7; + a19 = 1; + a28 = 1; + a6 = 1; + a16 = 7; + a4 = 0; + a5 = 4; + a1 = 12; + return -1; + } else if((((((a9==10)&&((a21==12)&&((!(a6==1)||((a11==1)&&((a5==4)&&((a20==1)&&(a3==1)))))&&(a1==14))))&&!(a14==1))||(a0==1))&&((a16==7)&&(!(a14==1)&&(((a17==2)&&((input==4)&&(a19==4)))&&(a28==1)))))){ + a23 = 1; + a24 = 0; + a19 = 5; + a6 = 1; + a16 = 8; + a9 = 9; + return 25; + } else if((((a12==1)&&(((a17==2)&&(!(a7==1)&&((a19==5)&&(!(a26==1)&&((a23==1)&&((a21==11)&&(input==1)))))))&&(a16==8)))&&(((((((a1==14)&&(a2==1))&&(a5==4))&&(a9==7))&&(a20==1))||(a7==1))||!(a28==1)))){ + a12 = 1; + a1 = 12; + a24 = 0; + a5 = 5; + a19 = 2; + a9 = 10; + a20 = 0; + return -1; + } else if(((((((a1==13)&&((a19==5)&&(!(a20==1)&&((input==1)&&(a21==10)))))&&(a2==1))&&(a12==1))&&(a9==8))&&(((a16==8)&&((a28==1)&&(!(a4==1)&&((a13==1)&&((a17==2)&&((a13==1)&&(a5==4)))))))&&(a3==1)))){ + a24 = 0; + a19 = 1; + a18 = 0; + a1 = 12; + a20 = 1; + a9 = 7; + a16 = 7; + return -1; + } else if((((((((!(a24==1)&&(!(a8==1)&&((input==6)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))))&&(a1==12))&&!(a26==1))&&(a19==1))&&(a16==8))&&(a28==1))&&(((a17==2)&&(((a6==1)&&((a2==1)&&(a21==10)))||(a24==1)))&&!(a20==1)))){ + a21 = 12; + a0 = 0; + a20 = 1; + a11 = 1; + a1 = 14; + a9 = 10; + a5 = 4; + a16 = 9; + a6 = 1; + a19 = 3; + return 21; + } else if((((a16==7)&&(((a11==1)&&((a21==11)&&(((((input==1)&&(a1==13))&&!(a18==1))&&(a9==11))&&(a17==2))))&&(a20==1)))&&(!(a13==1)||((a5==5)&&((a23==1)&&((a23==1)&&(!(a26==1)&&((a28==1)&&(a19==5))))))))){ + a5 = 6; + a23 = 1; + a12 = 1; + a11 = 1; + a16 = 8; + a21 = 12; + a1 = 14; + a19 = 2; + return 23; + } else if((((a1==14)&&((!(a26==1)&&((a11==1)&&(((input==3)&&!(a20==1))&&(a17==2))))&&(a5==5)))&&(((a9==8)&&((((a2==1)&&(((a3==1)&&((a28==1)||(a18==1)))&&(a21==11)))&&(a11==1))&&(a19==2)))&&(a16==9)))){ + if((a16==8)){ + a1 = 13; + a20 = 1; + a21 = 10; + a5 = 4; + a26 = 1; + a10 = 0; + a16 = 8; + a9 = 10; + a19 = 4; + a29 = 0; + }else{ + a25 = 0; + a20 = 1; + a24 = 1; + a26 = 1; + a5 = 4; + a1 = 13; + a21 = 10; + a19 = 1; + a16 = 7; + } + return -1; + } else if(((((a1==13)&&((((a19==2)&&(!(a23==1)||(a3==1)))||(a27==1))||(a26==1)))&&(a17==2))&&((a21==11)&&((a6==1)&&((!(a26==1)&&((a16==9)&&(!(a14==1)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==4)))))&&!(a20==1)))))){ + if((a2==1)){ + a20 = 1; + a22 = 0; + a19 = 4; + a13 = 0; + a9 = 9; + a5 = 4; + a16 = 8; + }else{ + a0 = 1; + a5 = 6; + a21 = 10; + a1 = 12; + a16 = 7; + a20 = 1; + a9 = 7; + a13 = 0; + a14 = 1; + } + return -1; + } else if(((!(a4==1)&&(!(a0==1)&&((a17==2)&&(((a21==12)&&((a19==5)&&((a9==9)&&((a16==10)&&(input==5)))))&&(a3==1)))))&&(((a20==1)&&(!(a27==1)&&(!(a4==1)&&((!(a12==1)||(a12==1))&&(a1==14)))))&&(a5==6)))){ + a27 = 0; + a19 = 2; + a9 = 11; + a14 = 0; + a23 = 1; + a16 = 7; + a21 = 10; + return 21; + } else if((((a21==10)&&(((a7==1)&&((!(a11==1)&&(((input==6)&&((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4))))&&(a27==1)))&&(a26==1)))&&(a14==1)))&&(((a1==13)&&((a20==1)&&(((a17==2)&&(!(a28==1)&&(a28==1)))&&(a16==11))))&&(a19==4)))){ + a2 = 0; + a1 = 14; + a16 = 10; + a9 = 11; + a19 = 1; + a5 = 5; + a21 = 11; + a8 = 1; + a25 = 1; + return 21; + } else if(((((a27==1)||(((!(a4==1)&&(((a8==1)||((a19==5)&&(a6==1)))&&(a16==11)))||(a27==1))&&(a28==1)))&&(a21==12))&&((a6==1)&&((((a17==2)&&((input==6)&&(((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))))&&(a20==1))&&(a1==12))))){ + a9 = 7; + a5 = 4; + a16 = 7; + a4 = 0; + a19 = 1; + a8 = 0; + a21 = 10; + a12 = 1; + return -1; + } else if(((((!(a12==1)||(((((a21==12)&&(a28==1))||!(a3==1))&&(a16==8))||!(a3==1)))&&!(a18==1))&&(a19==4))&&((a23==1)&&(!(a20==1)&&((a1==13)&&(((((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))&&(input==3))&&(a2==1))&&(a17==2))))))){ + if((a3==1)){ + a20 = 1; + a19 = 2; + a9 = 7; + a25 = 1; + a5 = 4; + a1 = 12; + a21 = 10; + a16 = 7; + a4 = 1; + a29 = 1; + }else{ + a21 = 10; + a18 = 1; + a13 = 0; + a11 = 0; + a9 = 11; + a5 = 5; + a19 = 1; + a20 = 1; + a1 = 14; + a16 = 7; + } + return -1; + } else if((((a14==1)||(((a28==1)&&((a23==1)&&(a16==8)))&&!(a20==1)))&&((((a23==1)&&((a17==2)&&((a19==1)&&((a21==11)&&((a1==13)&&((((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))&&(input==1))&&!(a4==1)))))))&&!(a26==1))&&(a13==1)))){ + a20 = 1; + a4 = 0; + a21 = 10; + a19 = 4; + a23 = 1; + a26 = 0; + a16 = 10; + a5 = 6; + a9 = 9; + return 21; + } else if(((((a1==12)&&((!(a0==1)&&(((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))&&(input==3)))&&(a12==1)))&&(a12==1))&&(((a17==2)&&(((a21==11)&&(((((a6==1)&&(a3==1))&&(a16==9))&&!(a0==1))&&!(a20==1)))||(a4==1)))&&(a19==2)))){ + if((a17==2)){ + a20 = 1; + a24 = 1; + a5 = 5; + a25 = 0; + a13 = 0; + a9 = 10; + a21 = 10; + a19 = 1; + a16 = 7; + }else{ + a16 = 7; + a23 = 0; + a13 = 0; + a19 = 3; + a20 = 1; + a9 = 10; + a5 = 6; + a12 = 0; + } + return -1; + } else if((((a13==1)&&((a20==1)&&((((((((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9)))&&(input==4))&&(a16==10))&&(a12==1))&&!(a18==1))&&(a1==12))&&(a19==4))))&&(((((!(a26==1)&&(a23==1))&&(a21==10))&&(a17==2))||!(a3==1))||!(a23==1)))){ + a0 = 0; + a5 = 4; + a9 = 7; + a16 = 7; + a14 = 0; + a13 = 1; + a19 = 1; + return -1; + } else if((((a11==1)&&(((a9==10)&&((((a19==5)&&((a7==1)||((a1==12)&&(a12==1))))&&!(a20==1))&&(a12==1)))&&(a23==1)))&&((a13==1)&&((((a17==2)&&(((input==5)&&(a16==10))&&(a5==4)))&&!(a27==1))&&(a21==11))))){ + a5 = 6; + a16 = 7; + a15 = 0; + a12 = 0; + a19 = 2; + a0 = 1; + a21 = 10; + a9 = 11; + a1 = 13; + return 21; + } else if((((a2==1)&&(!(a24==1)&&((((((input==5)&&(a16==7))&&(a1==12))&&(a9==11))&&(a20==1))&&(a12==1))))&&((a2==1)&&((((a5==4)&&((a8==1)||(((a19==5)&&(a11==1))&&!(a26==1))))&&(a21==10))&&(a17==2))))){ + a1 = 13; + a19 = 2; + a21 = 12; + a13 = 1; + a28 = 1; + a12 = 1; + return 22; + } else if((((a21==11)&&((a20==1)&&((a16==9)&&(((((a18==1)||(a2==1))&&(a19==2))&&!(a7==1))&&(a23==1)))))&&((a9==8)&&((!(a26==1)&&(!(a4==1)&&((a23==1)&&(((input==3)&&(a1==13))&&(a5==5)))))&&(a17==2))))){ + a9 = 7; + a28 = 1; + a5 = 4; + a18 = 0; + a21 = 10; + a19 = 1; + a23 = 1; + a1 = 12; + a16 = 7; + return -1; + } else if((((a21==10)&&((a16==10)&&(((((((a20==1)&&((((((a9==11)&&((a5==6)&&(a1==13)))||((a9==7)&&((a1==14)&&(a5==4))))||((a9==7)&&((a1==14)&&(a5==5))))&&(input==4))&&(a11==1)))&&!(a24==1))&&(a19==5))&&(a13==1))&&!(a0==1))&&(a12==1))))&&(((a12==1)&&(a17==2))||(a14==1)))){ + a11 = 1; + a19 = 1; + a1 = 12; + a28 = 1; + a16 = 7; + a9 = 7; + a5 = 4; + return -1; + } else if((((((a1==14)&&((a2==1)&&((a17==2)&&((a20==1)&&((a23==1)&&((((a24==1)||(a2==1))||(a8==1))&&!(a24==1)))))))&&(a16==11))&&(a21==10))&&(((!(a18==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3)))&&(a19==1))&&(a9==10)))){ + a9 = 7; + a6 = 1; + a21 = 11; + a16 = 9; + a1 = 12; + a3 = 1; + a0 = 0; + a5 = 6; + return 26; + } else if((((((a8==1)||(!(a7==1)&&((a11==1)||(a24==1))))&&(a21==10))&&!(a18==1))&&(((a1==14)&&(((a17==2)&&(((a16==8)&&((a19==2)&&((((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6))))&&(input==5))))&&!(a20==1)))&&(a11==1)))&&(a13==1)))){ + a26 = 0; + a18 = 0; + a13 = 1; + a9 = 7; + a16 = 9; + a20 = 1; + a5 = 6; + a19 = 5; + return 23; + } else if((((a11==1)&&((a1==14)&&((!(a8==1)&&((input==1)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))))&&(a20==1))))&&(((a3==1)&&(!(a4==1)&&(((a16==10)&&((a17==2)&&(((a21==11)&&(a3==1))&&(a19==5))))&&(a23==1))))||!(a11==1)))){ + a4 = 0; + a0 = 0; + a21 = 10; + a5 = 4; + a9 = 9; + a19 = 2; + a7 = 0; + return 21; + } else if((((((a1==14)&&(!(a27==1)&&(((((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a5==4)&&(a9==8)))&&(input==5))&&!(a27==1))&&(a3==1))))&&(a20==1))&&(a16==10))&&((a21==12)&&(!(a18==1)&&(((((a27==1)||(a3==1))&&(a17==2))||!(a12==1))&&(a19==5)))))){ + a13 = 1; + a5 = 5; + a9 = 9; + a16 = 7; + a28 = 1; + a21 = 10; + a1 = 13; + a19 = 2; + a0 = 0; + return 25; + } else if((((((a16==7)&&((((a23==1)&&(a13==1))&&!(a7==1))||(a24==1)))&&(a6==1))&&(a17==2))&&(((a21==12)&&(!(a4==1)&&(((input==4)&&(((a19==4)&&((a9==7)&&((a1==12)&&(a5==4))))||(((a19==3)&&(((a5==5)&&(a1==14))&&(a9==11)))||((a19==3)&&(((a5==6)&&(a1==14))&&(a9==11))))))&&(a3==1))))&&(a20==1)))){ + a3 = 1; + a13 = 1; + a19 = 1; + a9 = 9; + a1 = 12; + a21 = 11; + a5 = 5; + a16 = 9; + a27 = 0; + return 22; + } else if((((a19==2)&&(!(a6==1)||((a23==1)&&((!(a8==1)&&((a16==11)&&((((a23==1)||(a8==1))&&(a20==1))||(a24==1))))&&!(a4==1)))))&&((((((input==1)&&(a21==12))&&(a5==6))&&(a17==2))&&(a9==11))&&(a1==14)))){ + a16 = 9; + a21 = 10; + a5 = 5; + a12 = 1; + a0 = 0; + a2 = 1; + a9 = 10; + return 21; + } else if((((a1==12)&&(((a17==2)&&(((!(a27==1)&&(a11==1))||!(a2==1))&&(a9==9)))&&(a19==2)))&&((!(a20==1)&&((a16==8)&&((((((input==1)&&((a5==4)||(a5==5)))&&(a13==1))&&!(a14==1))&&(a13==1))&&(a11==1))))&&(a21==10)))){ + a9 = 7; + a16 = 10; + a19 = 3; + a21 = 11; + a20 = 1; + a1 = 13; + a5 = 4; + a0 = 0; + a2 = 1; + return 21; + } else if(((((a16==9)&&(!(a4==1)&&(((((a12==1)||!(a28==1))&&(a1==14))&&!(a7==1))||(a0==1))))||!(a2==1))&&((a9==8)&&((a17==2)&&((a19==5)&&(((a20==1)&&((((a5==4)||(a5==5))&&(input==1))&&(a21==12)))&&!(a27==1))))))){ + a26 = 0; + a1 = 12; + a16 = 7; + a19 = 1; + a4 = 0; + a9 = 7; + a5 = 4; + a21 = 10; + a11 = 1; + return -1; + } else if(((!(a14==1)&&((a23==1)&&((((!(a18==1)&&((a9==8)&&((a23==1)&&(a1==12))))&&(a16==9))&&(a23==1))&&(a19==2))))&&(((((((input==1)&&((a5==4)||(a5==5)))&&(a17==2))&&(a21==11))&&(a20==1))&&!(a0==1))&&!(a26==1)))){ + a9 = 7; + a24 = 0; + a26 = 0; + a21 = 10; + a1 = 14; + a19 = 1; + a4 = 0; + a5 = 5; + return 26; + } else if(((((a0==1)||(((a1==14)&&(a6==1))&&!(a18==1)))&&(a23==1))&&((a21==12)&&(((((a23==1)&&((a13==1)&&(!(a27==1)&&((a9==10)&&((!(a20==1)&&(input==4))&&(a5==4))))))&&(a19==2))&&(a16==7))&&(a17==2))))){ + a1 = 12; + a9 = 7; + a21 = 10; + a12 = 1; + a3 = 1; + a20 = 1; + a19 = 1; + return -1; + } else if((((a5==5)&&((((!(a2==1)||((a13==1)||(a4==1)))&&(a21==11))&&(a3==1))&&(a1==13)))&&((a17==2)&&((a16==7)&&((a19==2)&&((a3==1)&&((((!(a20==1)&&(input==1))&&(a9==11))&&(a28==1))&&!(a7==1)))))))){ + a9 = 7; + a5 = 4; + a13 = 1; + a18 = 0; + a20 = 1; + a19 = 1; + a21 = 10; + a1 = 12; + return -1; + } else if((((a16==10)&&((a20==1)&&(((a18==1)||(((a27==1)||(a11==1))&&(a17==2)))&&(a28==1))))&&((a1==12)&&((a21==10)&&((a28==1)&&(((a11==1)&&(((input==5)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&!(a27==1)))&&(a19==4))))))){ + a19 = 1; + a16 = 7; + a28 = 1; + a3 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if(((!(a26==1)&&(((a23==1)||!(a12==1))&&(a3==1)))&&((a16==8)&&((a17==2)&&((((!(a0==1)&&(((input==5)&&(((a19==2)&&((a9==7)&&((a1==12)&&(a5==5))))||(((a19==1)&&((a9==11)&&((a1==14)&&(a5==6))))||((a19==2)&&((a9==7)&&((a5==4)&&(a1==12)))))))&&(a21==12)))&&(a11==1))&&(a20==1))&&(a12==1)))))){ + a5 = 6; + a9 = 8; + a21 = 11; + a1 = 14; + a13 = 1; + a19 = 5; + a8 = 0; + a16 = 10; + a27 = 0; + return 22; + } else if(((!(a26==1)&&(((((a1==13)&&(!(a24==1)&&(((a3==1)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))&&(a19==5))))&&(a21==10))&&(a28==1))&&!(a7==1)))&&((a16==10)&&(((a17==2)&&(((a20==1)&&(a23==1))||(a27==1)))&&(a9==10))))){ + a1 = 12; + a16 = 7; + a2 = 1; + a19 = 1; + a23 = 1; + a9 = 7; + a5 = 4; + return -1; + } else if(((!(a28==1)||((a20==1)&&(((a3==1)||(a24==1))||(a8==1))))&&(((a11==1)&&((a16==8)&&((a17==2)&&((a9==11)&&((a1==14)&&((a13==1)&&(((((a5==4)||(a5==5))&&(input==6))&&(a19==5))&&(a21==10))))))))&&!(a0==1)))){ + a5 = 4; + a0 = 0; + a12 = 1; + a19 = 1; + a24 = 0; + a1 = 12; + a16 = 7; + a9 = 7; + return -1; + } else if((((a12==1)&&(((!(a4==1)&&((a16==10)&&((a1==12)&&((((input==5)&&(a20==1))&&(a19==2))&&(a17==2)))))&&!(a4==1))&&(a12==1)))&&(((a13==1)&&((((a2==1)&&(a5==5))&&(a9==10))&&(a21==10)))||!(a11==1)))){ + a20 = 0; + a24 = 0; + a9 = 11; + a6 = 1; + a1 = 14; + a19 = 3; + a21 = 11; + a16 = 7; + a27 = 0; + return -1; + } else if(((((!(a8==1)&&((!(a7==1)&&(!(a26==1)&&((input==5)&&((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a5==4)&&(a9==8))))))&&(a16==11)))&&(a13==1))&&(a17==2))&&((a21==11)&&(!(a8==1)&&((a19==1)&&((a1==13)&&(!(a23==1)||((a13==1)&&(a20==1))))))))){ + a5 = 4; + a14 = 0; + a23 = 1; + a21 = 10; + a9 = 7; + a1 = 12; + a16 = 7; + a11 = 1; + return -1; + } else if((((a17==2)&&(!(a18==1)&&(((!(a20==1)&&((input==1)&&(a9==10)))&&!(a27==1))&&!(a8==1))))&&(((a5==5)&&((a16==7)&&((((((a26==1)||(a2==1))&&(a1==12))||!(a2==1))&&!(a14==1))&&(a21==10))))&&(a19==4)))){ + a28 = 1; + a5 = 4; + a14 = 0; + a19 = 1; + a20 = 1; + a27 = 0; + a9 = 7; + return -1; + } else if((((a5==5)&&((a1==14)&&(!(a20==1)&&((!(a18==1)&&((a9==8)&&(((input==3)&&(a19==4))&&!(a7==1))))&&(a21==11)))))&&((a16==10)&&(!(a2==1)||(((((a23==1)&&!(a27==1))&&(a17==2))||!(a12==1))&&!(a14==1)))))){ + a19 = 3; + a9 = 7; + a12 = 0; + a1 = 13; + a3 = 0; + a16 = 7; + a5 = 4; + a21 = 10; + return 25; + } else if((((a6==1)&&((a16==10)&&((a21==12)&&((((input==6)&&(a17==2))&&(a9==7))&&(a2==1)))))&&((a14==1)||(((a11==1)&&((a5==6)&&((((a1==13)&&((a19==2)&&(a6==1)))&&!(a20==1))&&!(a24==1))))&&(a23==1))))){ + if((a0==1)){ + a22 = 1; + a20 = 1; + a15 = 0; + a16 = 7; + a21 = 10; + a25 = 1; + a9 = 8; + a5 = 4; + a19 = 1; + }else{ + a19 = 4; + a9 = 11; + a0 = 1; + a1 = 14; + a5 = 4; + a16 = 7; + a4 = 1; + } + return -1; + } else if((((((a16==8)&&(((((!(a14==1)&&((input==1)&&(((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10))))))&&!(a26==1))&&(a21==11))&&!(a7==1))&&(a1==13)))&&(a17==2))&&(a19==4))&&(!(a7==1)&&(!(a12==1)||(!(a20==1)&&(!(a14==1)&&(a11==1))))))){ + a16 = 7; + a20 = 1; + a13 = 1; + a9 = 7; + a5 = 5; + a6 = 1; + a0 = 0; + return 23; + } else if((((!(a0==1)&&(!(a20==1)&&((((a5==5)||(a5==6))&&(input==4))&&(a12==1))))&&(a21==11))&&((a1==14)&&(((a9==9)&&((a19==5)&&(((a12==1)&&((a17==2)&&((a27==1)||((a28==1)||!(a28==1)))))||!(a11==1))))&&(a16==8))))){ + a15 = 0; + a14 = 1; + a21 = 10; + a19 = 2; + a23 = 0; + a1 = 13; + a9 = 10; + a5 = 4; + return 25; + } else if((((a9==11)&&((a21==12)&&(((a20==1)&&(((((a23==1)&&(a6==1))&&(a16==8))||(a4==1))||!(a11==1)))&&(a19==4))))&&((a1==14)&&(((a17==2)&&((((input==6)&&((a5==5)||(a5==6)))&&(a3==1))&&!(a26==1)))&&!(a4==1))))){ + a9 = 10; + a18 = 0; + a8 = 0; + a5 = 4; + a16 = 10; + a1 = 13; + a26 = 0; + return 26; + } else if(((!(a3==1)||(!(a8==1)&&(((a16==8)&&((((a27==1)||((a28==1)||!(a13==1)))&&(a1==13))&&(a21==10)))&&(a17==2))))&&((a20==1)&&((((!(a27==1)&&((input==4)&&((a5==5)||(a5==6))))&&(a9==10))&&(a28==1))&&(a19==1))))){ + a6 = 1; + a3 = 1; + a19 = 5; + a9 = 7; + a8 = 0; + a1 = 14; + a5 = 6; + a21 = 12; + return 26; + } else if(((((((a26==1)&&(((a1==12)&&(((a5==6)&&((a8==1)&&(a23==1)))&&(a17==2)))&&(a21==12)))&&(a16==10))&&(a19==1))&&(a24==1))&&((((a7==1)&&(((input==6)&&(a9==9))&&!(a3==1)))&&(a20==1))&&(a0==1)))){ + a21 = 10; + a29 = 1; + a19 = 4; + a5 = 5; + a16 = 8; + a1 = 14; + a9 = 8; + a7 = 1; + a20 = 0; + a13 = 0; + return -1; + } else if((((((((a24==1)&&((a20==1)&&(a3==1)))&&(a14==1))&&(a0==1))&&(a19==5))&&(a21==10))&&((a1==14)&&((a18==1)&&((a16==9)&&(((((input==4)&&(((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))&&(a7==1))&&(a17==2))&&!(a28==1))))))){ + a10 = 1; + a16 = 7; + a1 = 12; + a23 = 0; + a4 = 1; + a19 = 2; + a5 = 6; + a9 = 10; + return -1; + } else if((((a16==11)&&((a14==1)||((((a20==1)&&(a6==1))&&(a21==12))||(a26==1))))&&(((!(a27==1)&&((a17==2)&&((a23==1)&&((((a19==3)&&(((a1==14)&&(a5==6))&&(a9==11)))||(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==4)))&&(input==4)))))&&(a6==1))&&!(a4==1)))){ + a1 = 12; + a9 = 7; + a19 = 1; + a16 = 7; + a21 = 10; + a13 = 1; + a8 = 0; + a7 = 0; + a5 = 4; + return -1; + } else if((((a23==1)&&((a28==1)&&(!(a24==1)&&(((!(a0==1)&&(((a5==4)||(a5==5))&&(input==4)))&&(a9==11))&&!(a14==1)))))&&(!(a20==1)&&((a1==14)&&((a16==11)&&((a17==2)&&((a21==10)&&(!(a6==1)||((a19==3)&&(a2==1)))))))))){ + a16 = 7; + a20 = 1; + a5 = 6; + a0 = 1; + a11 = 0; + a27 = 1; + a19 = 1; + a1 = 13; + return 21; + } else if((((((a16==11)&&((a20==1)&&((((a11==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4)))&&(a1==13))&&(a9==11))))&&(a19==3))&&(a21==12))&&(!(a7==1)&&(((!(a8==1)&&(!(a13==1)||(!(a26==1)&&(a23==1))))&&!(a0==1))&&(a17==2))))){ + a23 = 1; + a16 = 7; + a21 = 10; + a19 = 1; + a5 = 4; + a4 = 0; + a9 = 7; + a1 = 12; + a7 = 0; + return -1; + } else if((((a27==1)||((((a17==2)&&((a9==8)&&(a3==1)))||(a27==1))&&(a21==10)))&&((a13==1)&&(((a11==1)&&((a19==4)&&((((a20==1)&&(!(a26==1)&&((input==5)&&((a5==5)||(a5==6)))))&&(a16==11))&&(a6==1))))&&(a1==12))))){ + a5 = 4; + a19 = 1; + a3 = 1; + a11 = 1; + a9 = 7; + a4 = 0; + a16 = 7; + return -1; + } else if(((!(a24==1)&&(((a12==1)&&(!(a4==1)&&(!(a20==1)&&(((a19==2)&&((a17==2)&&(input==6)))&&!(a8==1)))))&&(a2==1)))&&((((a5==6)&&((a1==12)&&((a9==10)&&((a3==1)&&(a16==9)))))&&(a21==12))&&!(a27==1)))){ + if((a6==1)){ + a15 = 0; + a9 = 7; + a21 = 11; + a16 = 10; + a8 = 1; + a5 = 5; + }else{ + a19 = 5; + a9 = 9; + a5 = 4; + a2 = 0; + a16 = 10; + a26 = 1; + a1 = 13; + a21 = 10; + } + return -1; + } else if(((((a13==1)&&((!(a27==1)&&((a11==1)||(a7==1)))||!(a23==1)))&&(a16==10))&&((a17==2)&&(((a28==1)&&((((a9==10)&&(!(a27==1)&&((a1==13)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4)))))&&(a19==1))&&!(a20==1)))&&(a21==10))))){ + if((a8==1)){ + a1 = 12; + a9 = 9; + a12 = 0; + a20 = 1; + a15 = 1; + a6 = 0; + a5 = 4; + a16 = 7; + }else{ + a16 = 7; + a9 = 11; + a20 = 1; + a29 = 1; + a5 = 5; + a6 = 0; + a15 = 1; + } + return -1; + } else if((((a19==3)&&((a9==11)&&((a17==2)&&((!(a8==1)&&((a24==1)||(!(a11==1)||(a11==1))))||!(a28==1)))))&&((a1==13)&&(((((a16==8)&&((a13==1)&&(((a5==5)||(a5==6))&&(input==5))))&&(a3==1))&&(a21==10))&&!(a20==1))))){ + a9 = 8; + a20 = 1; + a4 = 0; + a16 = 10; + a1 = 14; + a12 = 1; + a5 = 6; + a13 = 1; + return 21; + } else if((((a11==1)&&(((((a9==9)&&(!(a7==1)&&((a17==2)&&(a12==1))))&&(a20==1))&&(a23==1))&&(a21==12)))&&((!(a24==1)&&((((((a19==5)&&(input==1))&&(a5==6))&&(a16==7))&&(a1==14))&&(a12==1)))&&!(a0==1)))){ + a14 = 0; + a19 = 1; + a4 = 0; + a5 = 4; + a9 = 7; + a1 = 12; + a21 = 10; + a2 = 1; + return -1; + } else if((((a17==2)&&(((a12==1)&&(a2==1))&&(a13==1)))&&(!(a20==1)&&(((!(a18==1)&&(((!(a14==1)&&((a28==1)&&(((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==1))&&!(a24==1))))&&(a21==11))&&(a16==7)))&&(a19==2))&&(a1==13))))){ + a2 = 1; + a21 = 10; + a18 = 0; + a9 = 10; + a1 = 14; + a16 = 9; + a5 = 5; + a20 = 1; + return 21; + } else if(((((a21==12)&&(((a20==1)&&(((a28==1)&&!(a4==1))||(a14==1)))&&(a19==4)))&&!(a4==1))&&((a23==1)&&(!(a14==1)&&(((a16==9)&&(((!(a26==1)&&((input==4)&&(a5==4)))&&(a9==9))&&(a17==2)))&&(a1==14)))))){ + a7 = 0; + a21 = 10; + a1 = 12; + a16 = 7; + a4 = 0; + a0 = 0; + a9 = 7; + a19 = 1; + return -1; + } else if((((a21==10)&&(((((a1==13)&&((input==4)&&((a5==4)||(a5==5))))&&(a17==2))&&!(a27==1))&&!(a26==1)))&&((((a20==1)&&((a24==1)||((a9==7)&&((!(a0==1)&&((a28==1)&&(a16==9)))&&!(a4==1)))))&&(a19==2))&&(a3==1)))){ + a19 = 1; + a16 = 7; + a24 = 0; + a2 = 1; + a1 = 12; + a28 = 1; + a5 = 4; + return -1; + } else if(((((a19==3)&&((a21==12)&&(!(a20==1)&&(a6==1))))||!(a13==1))&&((a28==1)&&((((((((input==3)&&(((((a5==5)&&(a1==13))&&(a9==11))||(((a1==13)&&(a5==6))&&(a9==11)))||(((a1==14)&&(a5==4))&&(a9==7))))&&!(a14==1))&&!(a7==1))&&(a17==2))&&(a16==7))&&(a2==1))&&(a13==1))))){ + a19 = 1; + a20 = 1; + a9 = 7; + a0 = 0; + a1 = 12; + a21 = 10; + a7 = 0; + a27 = 0; + a5 = 4; + return -1; + } else if((((a5==6)&&(((!(a3==1)||(a13==1))&&!(a7==1))&&(a21==12)))&&((a17==2)&&((((((((a19==3)&&((a2==1)&&((a9==9)&&(input==3))))&&(a20==1))&&(a23==1))&&(a1==14))&&(a16==11))&&(a11==1))&&(a6==1))))){ + a6 = 1; + a5 = 4; + a1 = 12; + a21 = 10; + a12 = 1; + a16 = 7; + a19 = 1; + a9 = 7; + a7 = 0; + return -1; + } else if((((((a17==2)&&(((a19==3)&&(((((a5==5)||(a5==6))&&(input==5))&&!(a8==1))&&(a9==7)))&&!(a14==1)))&&(a6==1))&&(a21==12))&&(((a2==1)&&(!(a11==1)||(!(a27==1)&&(((a16==9)&&(a12==1))&&(a1==13)))))&&(a20==1)))){ + a11 = 1; + a9 = 9; + a12 = 1; + a1 = 12; + a5 = 4; + return 21; + } else if(((!(a24==1)&&((((a13==1)&&((a21==11)&&(((a19==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))&&(a16==7))))&&(a20==1))&&(a9==9)))&&(!(a11==1)||(((!(a8==1)&&((a1==13)&&((a6==1)&&(a17==2))))&&!(a8==1))||!(a13==1))))){ + a21 = 10; + a28 = 1; + a16 = 8; + a5 = 4; + a9 = 7; + a0 = 0; + a23 = 1; + return 23; + } else if(((((a1==14)&&((a18==1)||((((a19==2)&&(a3==1))&&!(a26==1))&&!(a4==1))))&&!(a20==1))&&((((a5==4)&&((a28==1)&&((((a21==12)&&((a16==10)&&(input==1)))&&(a11==1))&&!(a4==1))))&&(a17==2))&&(a9==11)))){ + a13 = 0; + a21 = 10; + a16 = 7; + a6 = 0; + a14 = 1; + a20 = 1; + a19 = 1; + a5 = 6; + a1 = 13; + a9 = 10; + return -1; + } else if(((((!(a12==1)||((a24==1)||((a3==1)&&(((a27==1)||(((a19==3)&&(a6==1))&&(a1==14)))&&(a21==11)))))&&(a17==2))||!(a23==1))&&(((a16==10)&&(!(a20==1)&&((input==3)&&(((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))))))&&(a6==1)))){ + a19 = 1; + a16 = 9; + a9 = 7; + a4 = 1; + a12 = 0; + a11 = 0; + a1 = 13; + a5 = 5; + a21 = 10; + return 23; + } else if(((((((a21==10)&&((a14==1)||(!(a0==1)&&(((a26==1)||((a12==1)&&(a16==9)))&&(a19==5)))))&&(a17==2))||!(a2==1))&&!(a7==1))&&(!(a20==1)&&((a2==1)&&((a1==13)&&((input==5)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))))))){ + if((a2==1)){ + a16 = 7; + a20 = 1; + a22 = 0; + a19 = 1; + a5 = 5; + a15 = 0; + a29 = 1; + a9 = 7; + a1 = 12; + }else{ + a16 = 8; + a26 = 1; + a25 = 0; + a21 = 12; + a5 = 4; + a9 = 8; + a18 = 1; + a19 = 1; + } + return 25; + } else if(((((((a17==2)&&((a12==1)&&(a28==1)))&&(a16==7))&&(a21==12))&&(a9==11))&&((a19==1)&&((a1==14)&&((a20==1)&&(((a6==1)&&(((!(a24==1)&&((input==5)&&(a5==5)))&&!(a18==1))&&!(a26==1)))&&(a28==1))))))){ + a9 = 7; + a21 = 10; + a12 = 1; + a3 = 1; + a5 = 4; + a24 = 0; + a1 = 12; + return -1; + } else if(((!(a0==1)&&(!(a3==1)||(!(a12==1)||((a18==1)||(a28==1)))))&&((a13==1)&&(((a21==11)&&(((((((((a5==4)||(a5==5))&&(input==5))&&(a19==2))&&!(a14==1))&&(a9==7))&&(a16==10))&&(a17==2))&&!(a20==1)))&&(a1==12))))){ + a19 = 5; + a21 = 10; + a11 = 0; + a22 = 1; + a5 = 5; + a16 = 7; + return -1; + } else if((((a6==1)&&((a16==8)&&((a19==2)&&((a17==2)&&((((a1==14)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3)))&&(a13==1))&&!(a4==1))))))&&((a9==10)&&(((((a12==1)&&((a21==11)&&(a11==1)))&&(a11==1))&&!(a20==1))&&(a12==1))))){ + a26 = 0; + a21 = 12; + a9 = 7; + a20 = 1; + a2 = 1; + a5 = 4; + a3 = 1; + a19 = 4; + a16 = 11; + a1 = 13; + return 23; + } else if((((((((a3==1)&&(a21==12))&&(a1==13))&&(a16==9))&&(a19==3))||!(a6==1))&&(((!(a7==1)&&(((a12==1)&&((a12==1)&&((a11==1)&&((((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10))))&&(input==5)))))&&(a20==1)))&&(a13==1))&&(a17==2)))){ + a2 = 1; + a5 = 4; + a0 = 0; + a16 = 7; + a1 = 12; + a3 = 1; + a21 = 10; + a19 = 1; + a9 = 7; + return -1; + } else if(((((((a2==1)&&(((a2==1)&&(!(a27==1)&&((input==3)&&(((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))))))&&(a11==1)))&&(a16==9))&&!(a20==1))&&(a19==1))&&(((!(a8==1)&&((a18==1)||((a6==1)&&(a17==2))))&&(a1==13))&&(a21==12)))){ + a5 = 6; + a1 = 12; + a19 = 3; + a13 = 0; + a28 = 0; + a21 = 11; + a10 = 1; + a9 = 7; + a16 = 7; + return 21; + } else if(((!(a20==1)&&((a21==11)&&((a19==1)&&(!(a4==1)&&((a9==10)&&(a23==1))))))&&((a16==7)&&((!(a4==1)&&((a6==1)&&(((a28==1)&&((a6==1)&&((a17==2)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4)))))&&(a28==1))))&&(a1==12))))){ + a5 = 4; + a14 = 0; + a20 = 1; + a21 = 10; + a28 = 1; + a24 = 0; + a9 = 7; + return -1; + } else if(((((((a6==1)&&(a21==12))&&(a16==10))&&(a19==5))&&(a20==1))&&((a1==13)&&((a17==2)&&((((!(a24==1)&&(((a28==1)&&(!(a27==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6))))&&!(a24==1)))&&!(a18==1))&&(a9==9))&&!(a24==1)))))){ + a9 = 7; + a12 = 1; + a23 = 1; + a14 = 0; + a5 = 6; + a1 = 12; + a21 = 10; + a19 = 3; + a16 = 9; + return -1; + } else if((((a17==2)&&((a28==1)&&(!(a2==1)||((a9==9)&&((a13==1)&&(a2==1))))))&&((a19==1)&&(!(a27==1)&&(!(a18==1)&&((!(a20==1)&&((!(a0==1)&&((a21==12)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a1==12)))&&(a16==7))))))){ + a20 = 1; + a21 = 10; + a9 = 7; + a3 = 1; + a8 = 0; + a0 = 0; + a5 = 4; + return -1; + } else if((((a5==6)&&((a1==12)&&((((((a28==1)&&(a13==1))&&!(a8==1))&&!(a20==1))||(a4==1))||!(a2==1))))&&((((a16==10)&&((a19==4)&&(!(a27==1)&&(!(a0==1)&&((a9==9)&&(input==6))))))&&(a17==2))&&(a21==12)))){ + a1 = 14; + a9 = 11; + a20 = 1; + a6 = 0; + a18 = 1; + a16 = 8; + a19 = 5; + a14 = 1; + a5 = 4; + return 21; + } else if((((((a23==1)&&(((a5==5)||(a5==6))&&(input==3)))&&(a9==8))&&!(a4==1))&&((((!(a28==1)||((a19==2)&&((a20==1)&&((a23==1)&&((((a1==14)&&(a6==1))&&(a17==2))&&(a16==8))))))||(a4==1))&&!(a8==1))&&(a21==10)))){ + a23 = 1; + a1 = 12; + a18 = 0; + a5 = 4; + a19 = 1; + a16 = 7; + a13 = 1; + a9 = 7; + return -1; + } else if(((((((a9==7)&&(((a26==1)||((a28==1)||(a24==1)))&&(a1==14)))&&(a12==1))||(a24==1))&&(a19==4))&&((a21==10)&&((((a20==1)&&(!(a27==1)&&(!(a27==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5)))))&&(a17==2))&&(a16==8))))){ + a19 = 1; + a13 = 1; + a5 = 4; + a26 = 0; + a1 = 12; + a16 = 7; + a11 = 1; + return -1; + } else if(((!(a20==1)&&((a2==1)&&((a2==1)&&((a19==3)&&((((a5==4)||(a5==5))&&(input==6))&&(a1==13))))))&&((a16==8)&&(((!(a12==1)||((((a9==8)&&((a17==2)&&(a13==1)))&&(a21==11))||!(a12==1)))||!(a12==1))&&!(a18==1))))){ + a0 = 0; + a11 = 1; + a9 = 7; + a19 = 1; + a21 = 10; + a16 = 7; + a20 = 1; + a3 = 1; + a5 = 4; + a1 = 12; + return -1; + } else if((((!(a20==1)&&((!(a14==1)&&((a16==7)&&((((a5==5)||(a5==6))&&(input==5))&&(a12==1))))&&(a19==4)))&&(a1==12))&&(((a9==7)&&(((a7==1)||((a21==11)&&((a17==2)&&((a3==1)&&(a3==1)))))&&!(a27==1)))||(a24==1)))){ + a28 = 1; + a21 = 10; + a5 = 4; + a19 = 1; + a23 = 1; + a11 = 1; + a20 = 1; + return -1; + } else if((((((a20==1)&&((a17==2)&&(((((((a5==6)&&(a1==14))&&(a9==11))&&(a19==1))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==2)))||((a19==2)&&(((a1==12)&&(a5==5))&&(a9==7))))&&(input==6))))&&(a28==1))&&(a12==1))&&(((!(a11==1)||((a16==10)&&((!(a2==1)||(a2==1))&&(a21==11))))&&(a11==1))||!(a3==1)))){ + a8 = 0; + a20 = 0; + a21 = 10; + a16 = 8; + a19 = 4; + a4 = 0; + a5 = 4; + a1 = 14; + a9 = 10; + a11 = 1; + return 21; + } else if((((a19==4)&&((a9==11)&&(((a16==8)&&(!(a18==1)&&((a18==1)||(((a5==4)&&(a28==1))&&!(a8==1)))))&&(a17==2))))&&((((a13==1)&&((((input==6)&&(a21==12))&&!(a0==1))&&!(a8==1)))&&(a20==1))&&(a1==12)))){ + a23 = 1; + a21 = 10; + a9 = 7; + a24 = 0; + a0 = 0; + return 25; + } else if((((a28==1)&&(!(a4==1)&&((a16==10)&&(((a21==10)&&(((a20==1)&&(a2==1))||!(a6==1)))&&(a17==2)))))&&((((a23==1)&&((((input==5)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(a19==1))&&(a1==14)))&&!(a18==1))&&!(a7==1)))){ + if((a26==1)){ + a19 = 2; + a18 = 0; + a20 = 0; + a21 = 11; + a1 = 12; + a23 = 1; + a9 = 10; + a5 = 5; + a16 = 8; + a14 = 0; + }else{ + a1 = 13; + a11 = 1; + a14 = 0; + a16 = 8; + a9 = 10; + a26 = 0; + a5 = 6; + a21 = 11; + } + return 25; + } else if((((a12==1)&&(((a9==10)&&((a19==1)&&((!(a24==1)&&((((a13==1)&&(((a1==12)&&(input==3))&&(a21==12)))&&(a16==9))&&!(a7==1)))&&(a17==2))))&&(a5==4)))&&((((a23==1)&&(a13==1))&&!(a20==1))&&!(a4==1)))){ + if((a10==1)){ + a21 = 10; + a16 = 10; + a1 = 13; + a25 = 1; + a19 = 3; + a9 = 11; + a6 = 0; + a23 = 0; + a20 = 1; + }else{ + a0 = 1; + a16 = 10; + a4 = 1; + a19 = 5; + a1 = 14; + a9 = 7; + a8 = 1; + } + return -1; + } else if(((!(a18==1)&&((a9==7)&&(((((input==3)&&((a5==5)||(a5==6)))&&(a23==1))&&(a17==2))&&!(a7==1))))&&((a14==1)||((a18==1)||(((a20==1)&&((((a19==1)&&((a28==1)&&(a16==10)))&&(a1==14))&&(a21==10)))||(a4==1)))))){ + a28 = 1; + a8 = 0; + a14 = 0; + a5 = 4; + return 21; + } else if((((a23==1)&&((a6==1)&&(((a1==12)&&(((((input==1)&&((a5==4)||(a5==5)))&&(a16==10))&&(a19==2))&&(a17==2)))&&!(a20==1))))&&((a27==1)||((a0==1)||(((((a6==1)&&(a23==1))&&(a13==1))&&(a9==11))&&(a21==12)))))){ + a24 = 1; + a1 = 13; + a16 = 9; + a9 = 9; + a29 = 0; + a21 = 10; + a0 = 1; + a5 = 5; + return 26; + } else if(((((a9==8)&&((a19==3)&&((a23==1)&&((a17==2)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a20==1))))))&&!(a27==1))&&((!(a13==1)||(((a16==7)&&((((a28==1)||(a26==1))&&!(a14==1))&&(a1==12)))&&(a21==10)))||!(a11==1)))){ + a5 = 6; + a23 = 1; + a13 = 1; + a12 = 1; + a9 = 10; + a19 = 5; + return 26; + } else if((((a1==13)&&(!(a8==1)&&((a9==7)&&((a11==1)&&((((a5==5)||(a5==6))&&(input==3))&&(a21==11))))))&&((a16==11)&&((!(a27==1)&&((a14==1)||((a17==2)&&((!(a24==1)&&((a3==1)||(a27==1)))&&(a19==2)))))&&(a20==1))))){ + a11 = 1; + a21 = 10; + a28 = 1; + a19 = 1; + a0 = 0; + a1 = 12; + a16 = 7; + a5 = 4; + return -1; + } else if((((((!(a0==1)&&((((input==5)&&((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a5==4)&&(a9==11))))&&(a6==1))&&(a16==10)))&&(a19==1))&&!(a20==1))&&(a23==1))&&(!(a23==1)||((a1==14)&&((a17==2)&&((a13==1)&&((a21==12)&&((a2==1)||!(a3==1))))))))){ + a20 = 1; + a21 = 10; + a1 = 12; + a25 = 1; + a7 = 1; + a16 = 7; + a15 = 1; + a5 = 6; + a9 = 7; + return -1; + } else if((((((a21==10)&&(!(a24==1)&&((a20==1)&&(input==1))))&&(a17==2))&&(a9==7))&&(!(a13==1)||(((a27==1)||((((!(a11==1)||((a3==1)&&((a1==14)&&(a6==1))))&&(a19==3))||!(a2==1))&&(a5==4)))&&(a16==8))))){ + if((a27==1)){ + a26 = 0; + a21 = 11; + a5 = 5; + a9 = 10; + a20 = 0; + a19 = 2; + a16 = 7; + a28 = 1; + a6 = 1; + }else{ + a23 = 1; + a4 = 0; + a19 = 5; + a24 = 0; + a16 = 9; + a21 = 12; + a1 = 13; + a9 = 9; + } + return 22; + } else if(((!(a8==1)&&(((a21==10)&&((a16==11)&&((a23==1)&&(!(a24==1)&&(((input==1)&&((a5==4)||(a5==5)))&&(a19==5))))))&&(a17==2)))&&((a2==1)&&((a1==12)&&((!(a26==1)&&(((a13==1)||(a0==1))&&(a20==1)))&&(a9==9)))))){ + a9 = 7; + a8 = 0; + a4 = 0; + a16 = 7; + a5 = 4; + a11 = 1; + a19 = 1; + return -1; + } else if(((!(a24==1)&&((((a5==5)&&(!(a27==1)&&(((((a19==1)&&(input==5))&&(a1==14))&&(a13==1))&&(a9==11))))&&!(a24==1))&&(a16==10)))&&((((((a17==2)&&(a13==1))&&!(a20==1))&&(a21==12))&&!(a14==1))||(a18==1)))){ + a5 = 6; + a20 = 1; + a21 = 11; + a28 = 0; + a24 = 1; + a1 = 12; + a12 = 0; + a9 = 7; + a16 = 9; + a19 = 4; + return 26; + } else if((((a16==7)&&((a19==5)&&((a11==1)&&(((input==5)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8))))&&(a23==1)))))&&((a21==11)&&(!(a28==1)||((a1==13)&&((((a2==1)&&((a17==2)&&((a3==1)||(a14==1))))&&(a3==1))&&!(a20==1))))))){ + a20 = 1; + a12 = 1; + a1 = 12; + a19 = 1; + a5 = 4; + a9 = 7; + a21 = 10; + a13 = 1; + return -1; + } else if((((((a17==2)&&((a1==13)&&((a21==12)&&(((a19==4)&&((((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6))))&&(input==6)))&&(a2==1)))))&&(a13==1))&&!(a24==1))&&(!(a13==1)||((a18==1)||((!(a20==1)&&((a16==7)&&(a11==1)))&&!(a4==1)))))){ + a7 = 0; + a11 = 1; + a19 = 1; + a9 = 8; + a20 = 1; + a5 = 6; + a1 = 14; + a16 = 8; + a12 = 1; + return 21; + } else if((((((!(a0==1)&&((a19==1)&&((a23==1)&&(a1==14))))&&(a5==5))&&(a16==11))||!(a12==1))&&(!(a14==1)&&(((a11==1)&&(((a21==10)&&((a9==9)&&(((input==1)&&!(a20==1))&&!(a4==1))))&&(a17==2)))&&!(a7==1))))){ + a19 = 2; + a28 = 0; + a20 = 1; + a5 = 4; + a3 = 0; + a9 = 8; + a1 = 12; + a16 = 7; + a26 = 1; + return 21; + } else if((((a17==2)&&((a9==10)&&((a21==10)&&(((a11==1)&&(((a2==1)&&!(a8==1))&&!(a7==1)))&&(a19==4)))))&&(((a20==1)&&((a1==12)&&(((a2==1)&&(!(a7==1)&&((input==6)&&(a5==5))))&&!(a14==1))))&&(a16==10)))){ + a16 = 7; + a24 = 0; + a18 = 0; + a19 = 1; + a9 = 7; + a3 = 1; + a5 = 4; + return -1; + } else if((((a21==10)&&(!(a20==1)&&((a12==1)&&((a19==5)&&((!(a24==1)&&((input==4)&&((a5==5)||(a5==6))))&&!(a26==1))))))&&(((a16==9)&&((a17==2)&&(((a18==1)||(!(a26==1)&&((a23==1)||(a4==1))))&&(a9==11))))&&(a1==12)))){ + a5 = 6; + a11 = 0; + a16 = 7; + a20 = 1; + a7 = 1; + a19 = 2; + return 21; + } else if((((a16==11)&&(((a4==1)||((((a9==7)&&((a23==1)&&(a11==1)))&&(a21==10))&&(a28==1)))&&!(a4==1)))&&((a5==5)&&((a23==1)&&(!(a20==1)&&(((a19==4)&&(((a17==2)&&(input==5))&&(a12==1)))&&(a1==13))))))){ + if((a18==1)){ + a24 = 1; + a22 = 1; + a16 = 7; + a20 = 1; + a10 = 0; + a5 = 6; + a19 = 1; + a1 = 14; + }else{ + a9 = 11; + a10 = 1; + a16 = 7; + a19 = 1; + a13 = 0; + a20 = 1; + a18 = 1; + a5 = 4; + } + return -1; + } else if(((((!(a24==1)&&(!(a0==1)&&((a19==2)&&((input==4)&&((a5==4)||(a5==5))))))&&(a21==12))&&!(a20==1))&&((a28==1)&&((a17==2)&&((!(a23==1)||(((a16==9)&&((a9==8)&&((a8==1)||(a23==1))))&&(a1==13)))||!(a13==1)))))){ + if((a23==1)){ + a1 = 12; + a19 = 1; + a21 = 10; + a20 = 1; + a5 = 6; + a16 = 7; + a9 = 10; + a0 = 1; + a7 = 1; + }else{ + a9 = 9; + a21 = 10; + a5 = 6; + a16 = 7; + a1 = 12; + a20 = 1; + a8 = 1; + a10 = 0; + a12 = 0; + } + return -1; + } else if((((a5==4)&&((a19==5)&&((a2==1)||(a18==1))))&&(((a9==7)&&(((a21==11)&&((a2==1)&&(!(a8==1)&&((a16==10)&&((((!(a20==1)&&(input==1))&&(a17==2))&&(a1==12))&&!(a14==1))))))&&(a28==1)))&&!(a14==1)))){ + a20 = 1; + a29 = 0; + a0 = 1; + a16 = 7; + a26 = 1; + a21 = 10; + a9 = 10; + a19 = 1; + return -1; + } else if(((((a12==1)&&((a24==1)||(a3==1)))&&(a20==1))&&(((a21==11)&&((a3==1)&&((a17==2)&&((a16==11)&&(((((((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4)))&&(input==6))&&!(a26==1))&&(a12==1))&&(a1==12))&&(a3==1))))))&&(a19==4)))){ + a2 = 1; + a21 = 10; + a5 = 4; + a14 = 0; + a6 = 1; + a16 = 7; + a9 = 7; + a19 = 1; + return -1; + } else if((((a16==8)&&((a1==13)&&(((a17==2)&&(a3==1))&&(a13==1))))&&(((!(a0==1)&&(!(a7==1)&&(((((a23==1)&&((input==3)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))&&(a19==1))&&(a20==1))&&(a21==10))))&&(a23==1))&&!(a4==1)))){ + a26 = 0; + a16 = 7; + a1 = 12; + a2 = 1; + a3 = 1; + a9 = 7; + a5 = 4; + return -1; + } else if((((a0==1)||((((!(a23==1)||(((a17==2)&&((a3==1)||!(a13==1)))&&(a6==1)))&&!(a7==1))&&(a1==13))&&(a21==11)))&&(((a16==7)&&(((a19==3)&&(((input==5)&&((a5==5)||(a5==6)))&&(a9==10)))&&!(a20==1)))&&(a12==1)))){ + if((a20==1)){ + a6 = 1; + a1 = 12; + a5 = 5; + a2 = 1; + a21 = 10; + a16 = 8; + a0 = 0; + a19 = 5; + a9 = 8; + }else{ + a9 = 8; + a5 = 4; + a23 = 1; + a21 = 12; + a6 = 1; + a20 = 1; + a16 = 10; + a13 = 1; + } + return 25; + } else if(((!(a13==1)&&((((a16==9)&&((a21==12)&&((a19==3)&&((a17==2)&&((a12==1)&&!(a6==1))))))&&(a20==1))&&!(a11==1)))&&(((a27==1)&&((a1==12)&&(((a5==4)&&((input==1)&&(a9==9)))&&(a14==1))))&&(a27==1)))){ + a21 = 11; + a11 = 0; + a16 = 10; + a19 = 1; + a25 = 1; + a9 = 7; + a2 = 0; + a1 = 13; + return 23; + } else if((((!(a18==1)&&((a9==11)&&(((((a6==1)&&((a16==8)&&(((a5==4)||(a5==5))&&(input==1))))&&!(a0==1))&&(a11==1))&&(a20==1))))&&!(a26==1))&&((a19==5)&&(((a1==14)&&(((a23==1)||!(a23==1))&&(a17==2)))&&(a21==10))))){ + a19 = 1; + a28 = 1; + a7 = 0; + a16 = 7; + a9 = 7; + a1 = 12; + a5 = 4; + a0 = 0; + return -1; + } else if(((((a19==4)&&(!(a14==1)&&((a9==11)&&(!(a27==1)&&((((a5==4)||(a5==5))&&(input==4))&&!(a4==1))))))&&(a16==8))&&((!(a20==1)&&((a1==14)&&(!(a24==1)&&(!(a18==1)&&((a8==1)||((a17==2)&&(a23==1)))))))&&(a21==11)))){ + a19 = 5; + a2 = 1; + a20 = 1; + a0 = 0; + a1 = 13; + a16 = 10; + a27 = 0; + a5 = 6; + a21 = 12; + return 25; + } else if((((a19==2)&&(!(a20==1)&&((a28==1)&&(((a9==10)&&(((a28==1)&&(!(a26==1)&&((a12==1)&&(((a5==5)||(a5==6))&&(input==1)))))&&(a16==9)))&&!(a4==1)))))&&((((a17==2)&&((a13==1)&&!(a24==1)))&&(a21==12))&&(a1==13)))){ + if((a14==1)){ + a19 = 4; + a1 = 14; + a9 = 7; + a23 = 0; + a5 = 4; + a16 = 7; + a20 = 1; + a22 = 0; + }else{ + a21 = 11; + a23 = 0; + a26 = 1; + a5 = 6; + a1 = 14; + a20 = 1; + a19 = 3; + a9 = 11; + } + return -1; + } else if(((((a28==1)&&((a5==4)&&(!(a27==1)&&(((a28==1)&&((((a1==13)&&(input==6))&&!(a27==1))&&(a21==12)))&&!(a20==1)))))&&(a6==1))&&(((((a13==1)&&((a16==8)&&(a11==1)))&&(a19==1))&&(a9==8))&&(a17==2)))){ + a9 = 10; + a1 = 12; + a16 = 9; + a21 = 10; + a6 = 0; + a3 = 0; + return 25; + } else if(((((a3==1)&&(a13==1))&&(a17==2))&&((a20==1)&&(((a21==10)&&(!(a24==1)&&((a11==1)&&(!(a0==1)&&((!(a26==1)&&((input==3)&&((((a9==7)&&((a1==12)&&(a5==5)))&&(a19==3))||(((((a5==6)&&(a1==14))&&(a9==11))&&(a19==2))||((a19==3)&&((a9==7)&&((a5==4)&&(a1==12))))))))&&(a3==1))))))&&(a16==11))))){ + a7 = 0; + a19 = 1; + a16 = 7; + a1 = 12; + a26 = 0; + a23 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if((((((!(a26==1)&&(((a19==5)&&(input==5))&&(a21==10)))&&(a2==1))&&(a3==1))&&!(a24==1))&&((a6==1)&&((a11==1)&&((a5==4)&&((a9==11)&&(!(a20==1)&&((a1==13)&&(((a3==1)&&(a17==2))&&(a16==7)))))))))){ + a12 = 1; + a20 = 1; + a3 = 1; + a14 = 0; + a16 = 10; + a9 = 9; + a5 = 6; + return 21; + } else if(((((a19==5)&&((!(a18==1)&&(((a5==4)&&(input==6))&&(a1==14)))&&!(a14==1)))&&(a21==11))&&((a20==1)&&(((a16==8)&&((!(a7==1)&&((a9==7)&&((!(a0==1)&&(a13==1))&&!(a27==1))))&&(a3==1)))&&(a17==2))))){ + a1 = 12; + a19 = 1; + a2 = 1; + a14 = 0; + a16 = 7; + a21 = 10; + return -1; + } else if(((((!(a26==1)&&((!(a20==1)&&((a1==14)&&((a19==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1)))))&&(a16==9)))&&(a28==1))&&!(a26==1))&&((((((a21==11)&&((a13==1)&&(a17==2)))&&(a13==1))&&(a9==9))||(a4==1))||(a14==1)))){ + if((a4==1)){ + a19 = 4; + a10 = 0; + a29 = 0; + a1 = 13; + a5 = 5; + a21 = 10; + a24 = 1; + }else{ + a4 = 1; + a14 = 1; + a21 = 12; + a16 = 7; + a5 = 6; + a9 = 7; + a20 = 1; + a19 = 4; + a3 = 0; + } + return 22; + } else if(((!(a20==1)&&(((a1==14)&&((a21==11)&&((((a6==1)&&((a2==1)&&((input==3)&&(a16==10))))&&!(a27==1))&&!(a4==1))))&&(a5==6)))&&((((a9==11)&&((a17==2)&&((a26==1)||(a12==1))))&&(a28==1))&&(a19==3)))){ + a9 = 9; + a21 = 12; + a23 = 0; + a20 = 1; + a6 = 0; + a3 = 0; + a16 = 11; + a1 = 13; + return 22; + } else if((((a17==2)&&((!(a7==1)&&(!(a27==1)&&((a9==8)&&((a1==12)&&((input==3)&&((a5==5)||(a5==6)))))))&&(a21==11)))&&((a3==1)&&((a16==7)&&((!(a13==1)||((a28==1)&&(((a12==1)&&(a19==1))&&!(a20==1))))&&!(a18==1)))))){ + a21 = 12; + a20 = 1; + a9 = 9; + a24 = 0; + a19 = 5; + a16 = 10; + a27 = 0; + a1 = 13; + a5 = 4; + return 26; + } else if((((((a17==2)&&(!(a24==1)&&(((a23==1)||!(a11==1))&&!(a4==1))))&&(a19==2))&&(a1==12))&&(((a21==12)&&((a9==9)&&(((a2==1)&&(!(a18==1)&&(((input==4)&&(a5==4))&&!(a7==1))))&&!(a20==1))))&&(a16==10)))){ + a20 = 1; + a25 = 0; + a21 = 10; + a16 = 7; + a12 = 0; + a5 = 5; + a9 = 7; + a13 = 0; + a1 = 13; + a19 = 1; + return -1; + } else if(((!(a26==1)&&((a2==1)&&((((((input==6)&&((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4))))&&!(a4==1))&&(a1==13))&&(a12==1))&&!(a20==1))))&&(((a19==3)&&((((a16==9)&&((a11==1)&&(a12==1)))&&(a21==12))||(a7==1)))&&(a17==2)))){ + a28 = 0; + a5 = 4; + a19 = 1; + a21 = 10; + a9 = 7; + a16 = 7; + a12 = 0; + a20 = 1; + a14 = 1; + return 21; + } else if((((a1==13)&&((a17==2)&&((a21==11)&&((a19==2)&&((!(a27==1)&&((a8==1)||((a0==1)||(a11==1))))&&(a9==9))))))&&((!(a20==1)&&(!(a14==1)&&(((((a5==5)||(a5==6))&&(input==5))&&!(a8==1))&&!(a14==1))))&&(a16==7)))){ + a16 = 8; + a4 = 0; + a5 = 4; + a20 = 1; + a3 = 1; + a11 = 1; + a9 = 10; + a19 = 4; + return 25; + } else if((((a16==7)&&((a1==14)&&((((((a26==1)||((a13==1)&&(a11==1)))&&(a11==1))&&(a2==1))||(a24==1))&&(a17==2))))&&((a5==4)&&((a20==1)&&((a21==12)&&((a6==1)&&((a19==3)&&((input==4)&&(a9==9))))))))){ + a9 = 7; + a1 = 12; + a26 = 0; + a19 = 1; + a14 = 0; + a21 = 10; + a0 = 0; + return -1; + } else if(((((a9==11)&&(((a3==1)&&(!(a26==1)&&((a21==11)&&((input==5)&&!(a20==1)))))&&(a19==3)))&&(a28==1))&&((a23==1)&&(((((a1==13)&&(((a17==2)&&(a3==1))&&(a5==5)))||(a27==1))||(a4==1))&&(a16==8))))){ + a20 = 1; + a19 = 1; + a26 = 0; + a5 = 4; + a1 = 12; + a21 = 10; + a27 = 0; + a23 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if((((a6==1)&&(!(a24==1)&&(((((a1==13)&&(((input==1)&&((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11))))&&!(a27==1)))&&!(a4==1))&&!(a20==1))&&(a16==10))))&&(!(a28==1)||(((((a28==1)&&(a21==12))&&(a17==2))||!(a6==1))&&(a19==1))))){ + a5 = 5; + a16 = 7; + a11 = 0; + a23 = 0; + a9 = 8; + a20 = 1; + a15 = 1; + a1 = 12; + a21 = 10; + return 26; + } else if((((!(a20==1)&&(((((!(a6==1)||(!(a3==1)||((a11==1)&&(a17==2))))&&(a1==12))&&(a21==11))&&(a16==10))&&(a19==1)))||(a8==1))&&(!(a4==1)&&((!(a8==1)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==1)))&&(a12==1))))){ + if((a18==1)){ + a19 = 5; + a1 = 13; + a16 = 8; + a6 = 0; + a9 = 7; + a8 = 1; + a5 = 6; + a0 = 1; + }else{ + a16 = 7; + a20 = 1; + a12 = 0; + a9 = 8; + a24 = 1; + a5 = 4; + a27 = 1; + a1 = 14; + a21 = 10; + } + return 21; + } else if(((((a18==1)||(((a21==11)&&(!(a28==1)||(a13==1)))&&(a2==1)))&&(a19==5))&&((a9==7)&&((((((((a6==1)&&((input==6)&&((a5==5)||(a5==6))))&&(a17==2))&&!(a7==1))&&!(a7==1))&&!(a20==1))&&(a1==14))&&(a16==8))))){ + a15 = 1; + a20 = 1; + a19 = 3; + a2 = 0; + a5 = 6; + a22 = 0; + a16 = 10; + a9 = 10; + return -1; + } else if((((a20==1)&&((a21==11)&&((a4==1)||(!(a7==1)&&((((a16==10)&&(!(a3==1)||(a11==1)))&&(a19==1))&&(a1==12))))))&&((!(a18==1)&&(((a3==1)&&(!(a8==1)&&(((a5==5)||(a5==6))&&(input==1))))&&(a9==9)))&&(a17==2)))){ + a24 = 0; + a2 = 1; + a16 = 7; + a9 = 7; + a18 = 0; + a21 = 10; + a5 = 4; + return -1; + } else if((((!(a14==1)&&(!(a8==1)&&(!(a8==1)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&!(a0==1))&&(a1==14)))))&&(a19==1))&&(((a9==10)&&((!(a20==1)&&((a0==1)||((a13==1)&&((a3==1)&&(a17==2)))))&&(a16==8)))&&(a21==12)))){ + a5 = 5; + a21 = 11; + a9 = 8; + a22 = 1; + a1 = 12; + a3 = 0; + a28 = 0; + a16 = 11; + a20 = 1; + return 21; + } else if(((((((((a9==7)&&(((a5==4)||(a5==5))&&(input==1)))&&(a3==1))&&(a20==1))&&!(a26==1))&&(a19==5))&&(a28==1))&&((a16==11)&&(((a3==1)&&(!(a3==1)||((a21==12)&&((a17==2)&&((a1==12)&&(a12==1))))))&&!(a0==1))))){ + a9 = 8; + a20 = 0; + a19 = 1; + a2 = 1; + a27 = 0; + a21 = 10; + a23 = 1; + a16 = 7; + a5 = 4; + return 25; + } else if((((a23==1)&&(!(a0==1)&&((a17==2)&&(!(a7==1)&&(((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a19==3))))))&&((a16==9)&&(((a1==13)&&((a21==11)&&((a9==10)&&((((a11==1)||!(a28==1))&&!(a26==1))||(a7==1)))))&&(a20==1))))){ + if((a12==1)){ + a5 = 4; + a19 = 4; + a6 = 1; + a1 = 14; + a0 = 0; + a21 = 10; + a20 = 0; + a16 = 8; + a8 = 0; + }else{ + a19 = 2; + a1 = 14; + a8 = 0; + a7 = 0; + a13 = 1; + a5 = 6; + } + return 21; + } else if((((a16==9)&&(((a18==1)&&((a21==11)&&((((a2==1)&&(a9==10))&&!(a6==1))&&(a17==2))))&&(a8==1)))&&((a19==4)&&((a20==1)&&((a14==1)&&(((((a1==12)&&(input==4))&&!(a13==1))&&(a5==6))&&(a4==1))))))){ + a5 = 5; + a9 = 9; + a1 = 13; + a16 = 11; + a13 = 0; + a24 = 1; + a19 = 5; + return 22; + } else if((((a28==1)&&(((((a16==10)&&((a21==12)&&((((a17==2)&&(input==4))&&(a19==1))&&!(a18==1))))&&(a13==1))&&(a5==6))&&!(a27==1)))&&((a20==1)&&((!(a26==1)&&((a12==1)&&((a11==1)&&(a1==13))))&&(a9==9))))){ + a5 = 4; + a24 = 0; + a1 = 12; + a21 = 10; + a13 = 1; + a9 = 7; + a16 = 7; + return -1; + } else if(((((a28==1)&&(((a1==14)&&(((a21==11)&&(!(a4==1)&&((a16==11)&&((input==4)&&((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4)))))))&&(a20==1)))&&(a17==2)))&&(a13==1))&&((a7==1)||(((!(a26==1)&&(a13==1))&&(a19==5))||!(a28==1))))){ + a3 = 1; + a16 = 7; + a19 = 1; + a13 = 1; + a5 = 4; + a1 = 12; + a21 = 10; + a9 = 7; + return -1; + } else if((((a13==1)&&((((input==4)&&((((a9==11)&&((a1==13)&&(a5==6)))||(((a5==4)&&(a1==14))&&(a9==7)))||((a9==7)&&((a5==5)&&(a1==14)))))&&!(a20==1))&&!(a18==1)))&&(((a21==11)&&(!(a23==1)||((((a17==2)&&(!(a0==1)&&((a13==1)&&(a19==2))))||(a18==1))&&(a16==10))))||(a8==1)))){ + a22 = 1; + a16 = 11; + a10 = 1; + a29 = 1; + a5 = 4; + a9 = 7; + a1 = 14; + a20 = 1; + return 21; + } else if((((((((a21==11)&&((((a5==5)||(a5==6))&&(input==4))&&(a9==7)))&&(a2==1))&&!(a7==1))&&!(a14==1))&&(a12==1))&&(((((a16==10)&&((((a19==3)&&(a28==1))&&(a17==2))&&(a20==1)))&&(a1==14))||(a27==1))||!(a11==1)))){ + a5 = 4; + a12 = 1; + a21 = 10; + a16 = 7; + a19 = 1; + a28 = 1; + a1 = 12; + a2 = 1; + return -1; + } else if(((!(a20==1)&&((a1==12)&&((a19==1)&&((a14==1)||((a17==2)&&(((!(a27==1)&&((a11==1)||(a27==1)))&&(a16==8))&&!(a8==1)))))))&&((((((input==5)&&((a5==5)||(a5==6)))&&(a9==11))&&(a6==1))&&!(a8==1))&&(a21==10)))){ + a21 = 11; + a1 = 13; + a16 = 11; + a28 = 1; + a5 = 4; + a9 = 9; + a7 = 0; + a20 = 1; + return 22; + } else if(((((a9==9)&&((a3==1)&&((a20==1)&&((input==4)&&(a5==4)))))&&(a2==1))&&((a19==2)&&((a17==2)&&((!(a24==1)&&(((a28==1)&&((a6==1)&&((a16==10)&&((a23==1)&&(a1==14)))))&&!(a24==1)))&&(a21==12)))))){ + a9 = 7; + a19 = 1; + a2 = 1; + a27 = 0; + a21 = 10; + a1 = 12; + a16 = 7; + a26 = 0; + return -1; + } else if((((((a28==1)&&((a23==1)&&(!(a18==1)&&(((a16==7)&&(input==4))&&(a19==5)))))&&(a1==14))&&!(a20==1))&&((a21==10)&&((a5==6)&&((((a11==1)&&((a23==1)&&((a9==7)&&(a23==1))))&&(a12==1))&&(a17==2)))))){ + a20 = 1; + a19 = 1; + a1 = 12; + a5 = 4; + a27 = 0; + a11 = 1; + a0 = 0; + return -1; + } else if((((((a21==12)&&((a1==12)&&(((a9==11)&&(((a13==1)&&((a2==1)&&((input==6)&&((a5==4)||(a5==5)))))&&(a16==8)))&&(a19==1))))&&!(a7==1))&&(a17==2))&&((((a7==1)||((a13==1)&&!(a24==1)))&&!(a20==1))&&(a13==1)))){ + if((a3==1)){ + a5 = 5; + a7 = 1; + a21 = 10; + a20 = 1; + a10 = 1; + a8 = 1; + a16 = 7; + a9 = 7; + }else{ + a20 = 1; + a21 = 10; + a7 = 1; + a1 = 14; + a16 = 10; + a18 = 1; + a19 = 2; + a10 = 0; + a5 = 6; + } + return 25; + } else if((((a21==10)&&((!(a8==1)&&((a2==1)&&(!(a26==1)&&(((a9==7)&&(((a28==1)||(a18==1))&&(a19==1)))&&(a16==10)))))||(a14==1)))&&((((a17==2)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&(a1==14)))&&(a28==1))&&!(a20==1)))){ + a9 = 11; + a19 = 2; + a20 = 1; + a16 = 7; + a5 = 6; + a11 = 0; + a27 = 1; + a1 = 12; + return -1; + } else if(((((!(a3==1)||((a19==3)&&((a3==1)&&(((a13==1)&&(a12==1))||(a26==1)))))&&(a20==1))&&(a21==10))&&((((((a3==1)&&((input==6)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))))&&(a13==1))&&(a1==14))&&(a16==10))&&(a17==2)))){ + a1 = 12; + a16 = 7; + a7 = 0; + a13 = 1; + a19 = 1; + a8 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if(((((((a2==1)&&((input==5)&&((((a9==11)&&((a5==5)&&(a1==12)))||(((a5==6)&&(a1==12))&&(a9==11)))||(((a5==4)&&(a1==13))&&(a9==7)))))&&(a20==1))&&(a6==1))&&!(a8==1))&&((a11==1)&&(!(a11==1)||((((((a12==1)&&(a21==11))&&(a17==2))&&(a19==3))&&(a16==8))&&!(a4==1)))))){ + a5 = 6; + a1 = 14; + a18 = 0; + a21 = 12; + a9 = 8; + a23 = 1; + a19 = 1; + a2 = 1; + return 21; + } else if((((a19==4)&&((a1==12)&&(((a9==8)&&((((a2==1)&&(a13==1))&&!(a26==1))||!(a3==1)))&&!(a20==1))))&&((a21==11)&&((a17==2)&&(((((((a5==5)||(a5==6))&&(input==4))&&(a16==7))&&(a12==1))&&(a13==1))&&!(a27==1)))))){ + a19 = 1; + a20 = 1; + a5 = 4; + a4 = 0; + a9 = 7; + a28 = 1; + a3 = 1; + a21 = 10; + return -1; + } else if((((a17==2)&&(((a2==1)&&(a28==1))&&(a13==1)))&&((a9==11)&&(((a19==4)&&(!(a8==1)&&((((((a16==8)&&(!(a18==1)&&((input==3)&&(a20==1))))&&!(a27==1))&&(a5==5))&&!(a26==1))&&(a1==13))))&&(a21==11))))){ + a16 = 7; + a1 = 12; + a6 = 1; + a19 = 1; + a4 = 0; + a9 = 7; + a5 = 4; + a3 = 1; + a21 = 10; + return -1; + } else if((((((a20==1)&&(((a17==2)&&((a16==10)&&((a28==1)&&((a2==1)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==1))))))&&(a2==1)))&&(a2==1))&&!(a26==1))&&(((a21==10)&&((a19==3)&&((a3==1)&&(a1==14))))||(a26==1)))){ + a5 = 4; + a27 = 0; + a14 = 0; + a21 = 12; + a9 = 9; + a16 = 9; + a11 = 1; + a1 = 12; + return 21; + } else if(((!(a26==1)&&(((a2==1)&&(((a1==13)&&((a9==7)&&(!(a27==1)&&(!(a7==1)&&((((a20==1)&&(input==4))&&(a21==10))&&(a5==5))))))&&!(a27==1)))&&!(a8==1)))&&((((a19==3)&&(a11==1))&&(a16==10))&&(a17==2)))){ + a1 = 12; + a16 = 7; + a6 = 1; + a5 = 4; + a23 = 1; + a13 = 1; + a19 = 1; + return -1; + } else if(((((((a21==10)&&((a3==1)&&((a17==2)&&((((((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7))))&&(input==1))&&(a16==10))&&(a11==1)))))&&!(a20==1))&&!(a7==1))&&(a23==1))&&(((a6==1)&&((a1==13)&&(!(a12==1)||(a3==1))))&&(a19==2)))){ + a11 = 0; + a21 = 12; + a5 = 6; + a9 = 7; + a24 = 1; + a10 = 1; + a20 = 1; + a19 = 4; + a16 = 8; + return 22; + } else if((((a16==10)&&((a1==12)&&(((a2==1)&&((!(a26==1)&&(((a9==7)&&((a5==6)&&(input==1)))&&(a2==1)))&&(a12==1)))&&(a17==2))))&&((a19==2)&&(!(a7==1)&&((a4==1)||(((a28==1)&&(a20==1))&&(a21==12))))))){ + a21 = 10; + a19 = 1; + a4 = 0; + a13 = 1; + a5 = 4; + a16 = 7; + a14 = 0; + return -1; + } else if(((!(a28==1)||(((a4==1)||((a1==13)&&((a21==12)&&(a12==1))))||(a4==1)))&&((a19==2)&&((a6==1)&&((a17==2)&&((a2==1)&&(!(a20==1)&&(((a16==7)&&((input==3)&&(((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))))&&(a3==1))))))))){ + a2 = 1; + a9 = 11; + a1 = 14; + a21 = 10; + a5 = 5; + a23 = 1; + a27 = 0; + a20 = 1; + return 21; + } else if((((a19==5)&&(!(a7==1)&&((a28==1)&&((((((((a23==1)&&(a21==10))&&(a13==1))&&(a5==4))&&(a17==2))&&(a20==1))&&(a1==13))&&!(a7==1)))))&&(!(a7==1)&&((((input==3)&&(a9==9))&&!(a0==1))&&(a16==9))))){ + a7 = 0; + a2 = 1; + a9 = 10; + a16 = 8; + a5 = 5; + return -1; + } else if((((a21==12)&&((a12==1)&&((a17==2)&&((((((a1==13)&&(a5==5))&&(a9==7))||((((a5==6)&&(a1==12))&&(a9==11))||(((a5==4)&&(a1==13))&&(a9==7))))&&(input==3))&&(a12==1)))))&&((a19==1)&&(!(a13==1)||((a3==1)&&((((a16==11)&&((a6==1)||(a14==1)))&&!(a26==1))&&(a20==1))))))){ + a19 = 3; + a5 = 6; + a4 = 0; + a1 = 14; + a3 = 1; + a9 = 9; + a13 = 1; + return 26; + } else if(((!(a20==1)&&((((((a12==1)&&((a11==1)||!(a3==1)))&&(a1==14))&&!(a0==1))&&(a16==7))&&(a21==11)))&&((((!(a8==1)&&(((((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(input==5))&&(a19==4)))&&(a23==1))&&!(a0==1))&&(a17==2)))){ + a7 = 0; + a9 = 8; + a19 = 2; + a11 = 1; + a16 = 9; + a5 = 4; + a20 = 1; + a18 = 0; + a21 = 12; + return 23; + } else if((((((!(a0==1)&&((((((input==1)&&(a9==10))&&(a20==1))&&(a3==1))&&!(a24==1))&&!(a7==1)))&&(a21==11))&&(a5==6))&&(a19==2))&&((a1==13)&&((!(a8==1)&&((!(a11==1)||(a28==1))&&(a16==10)))&&(a17==2))))){ + a27 = 0; + a9 = 7; + a4 = 0; + a19 = 1; + a1 = 12; + a5 = 4; + a21 = 10; + a23 = 1; + a16 = 7; + return -1; + } else if((((a21==10)&&((!(a20==1)&&(((a16==9)&&((a12==1)&&(((a6==1)&&!(a14==1))&&!(a24==1))))||(a26==1)))||(a18==1)))&&(((a9==8)&&(((a13==1)&&(((input==3)&&((a5==4)||(a5==5)))&&(a1==12)))&&(a17==2)))&&(a19==3)))){ + a29 = 0; + a3 = 0; + a5 = 5; + a19 = 2; + a20 = 1; + a16 = 7; + a9 = 11; + return -1; + } else if(((((a19==1)&&((!(a20==1)&&((a24==1)||(((a5==5)&&(a3==1))&&(a17==2))))&&!(a24==1)))&&(a16==7))&&(((a11==1)&&(((a13==1)&&((((input==4)&&(a21==10))&&!(a8==1))&&(a9==9)))&&!(a7==1)))&&(a1==14)))){ + a0 = 0; + a20 = 1; + a5 = 4; + a9 = 7; + a1 = 12; + a24 = 0; + a3 = 1; + return -1; + } else if((((a2==1)&&((a1==13)&&((a19==3)&&((a6==1)&&(a23==1)))))&&(!(a8==1)&&((a16==9)&&((a17==2)&&((((a21==11)&&(!(a20==1)&&(((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==6))&&!(a18==1))))&&(a12==1))&&!(a4==1))))))){ + a9 = 10; + a29 = 1; + a8 = 1; + a16 = 7; + a10 = 1; + a19 = 1; + a5 = 5; + a21 = 10; + a20 = 1; + return 21; + } else if((((((((((a21==10)&&(((input==1)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&!(a4==1)))&&(a23==1))&&(a13==1))&&(a16==9))&&!(a18==1))&&(a17==2))&&!(a26==1))&&(((a20==1)&&(((a28==1)&&(a13==1))&&(a1==13)))&&(a19==5)))){ + a21 = 11; + a18 = 0; + a1 = 14; + a9 = 11; + a14 = 0; + a12 = 1; + a5 = 4; + a19 = 1; + a16 = 10; + return 22; + } else if(((!(a14==1)&&(!(a20==1)&&((((input==3)&&((a5==4)||(a5==5)))&&(a21==10))&&!(a26==1))))&&((a16==10)&&((a17==2)&&((((a8==1)||(((!(a24==1)&&((a1==14)&&(a23==1)))||!(a3==1))&&(a19==1)))&&(a9==9))||(a24==1)))))){ + a4 = 1; + a14 = 1; + a20 = 1; + a1 = 12; + a12 = 0; + a5 = 4; + a16 = 7; + a9 = 8; + return -1; + } else if((((a21==12)&&((a19==3)&&(((((a3==1)&&((a2==1)&&!(a20==1)))&&(a17==2))&&!(a26==1))&&(a9==11))))&&((a5==5)&&((!(a7==1)&&((a23==1)&&((a13==1)&&(((a1==12)&&(input==3))&&!(a7==1)))))&&(a16==7))))){ + a19 = 1; + a21 = 10; + a11 = 1; + a4 = 0; + a20 = 1; + a24 = 0; + a5 = 4; + a9 = 7; + return -1; + } else if((((((a16==7)&&(!(a24==1)&&((a19==1)&&(((a20==1)&&((a6==1)&&((a5==6)&&(a13==1))))&&(a17==2)))))&&(a1==14))&&(a11==1))&&(!(a8==1)&&((a9==8)&&((a23==1)&&(((input==3)&&(a21==12))&&!(a24==1))))))){ + a23 = 1; + a16 = 9; + a27 = 0; + a21 = 10; + a28 = 1; + a9 = 10; + return 25; + } else if(((!(a4==1)&&((a20==1)&&((a16==8)&&((a6==1)&&(((!(a26==1)&&((a19==5)&&((input==6)&&((a5==4)||(a5==5)))))&&(a1==13))&&(a9==11))))))&&(!(a11==1)||(((((a17==2)&&(a28==1))&&(a21==11))&&!(a0==1))&&(a6==1))))){ + a5 = 4; + a19 = 3; + a1 = 14; + a26 = 0; + a28 = 1; + a9 = 8; + a8 = 0; + a16 = 10; + return 23; + } else if(((!(a14==1)&&(((!(a20==1)&&((((((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==5))&&(a19==5))&&(a13==1))&&(a17==2))&&(a1==14)))&&(a11==1))&&(a12==1)))&&(!(a18==1)&&((((a23==1)&&(a21==12))&&(a28==1))&&(a16==10))))){ + a3 = 0; + a19 = 2; + a1 = 12; + a16 = 7; + a21 = 10; + a0 = 1; + a20 = 1; + a5 = 5; + a4 = 1; + a9 = 8; + return 25; + } else if(((!(a14==1)&&(((((((input==3)&&(a5==5))&&(a9==11))&&!(a4==1))&&!(a20==1))&&!(a4==1))&&!(a27==1)))&&(!(a2==1)||(((((a19==5)&&(((a1==13)&&(a12==1))&&(a16==7)))&&(a6==1))&&(a21==12))&&(a17==2))))){ + a1 = 12; + a21 = 10; + a2 = 1; + a14 = 0; + a19 = 1; + a8 = 0; + a20 = 1; + a9 = 7; + a5 = 4; + return -1; + } else if((((a9==10)&&((a20==1)&&((a6==1)&&((a2==1)&&(((input==6)&&(a19==1))&&(a17==2))))))&&((a21==12)&&(((((a5==5)&&((a16==8)&&(((a23==1)&&(a6==1))&&(a1==13))))&&!(a24==1))||!(a13==1))&&(a23==1))))){ + a12 = 1; + a6 = 1; + a1 = 12; + a5 = 4; + a26 = 0; + a9 = 7; + a21 = 10; + a16 = 7; + return -1; + } else if((((a9==9)&&(((a21==11)&&(((((a3==1)&&((a19==5)&&((input==1)&&(a17==2))))&&!(a0==1))&&(a16==10))&&!(a27==1)))&&(a5==5)))&&((a20==1)&&((((a24==1)||((a23==1)&&(a28==1)))&&(a1==14))&&(a2==1))))){ + a19 = 1; + a13 = 1; + a16 = 7; + a9 = 7; + a5 = 4; + a1 = 12; + a11 = 1; + a6 = 1; + a21 = 10; + return -1; + } else if(((((a20==1)&&((a21==11)&&((a17==2)&&((a12==1)&&!(a14==1)))))&&!(a7==1))&&((a12==1)&&((a12==1)&&(((a1==14)&&((a16==8)&&(((a19==3)&&((input==6)&&(((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))))&&!(a0==1))))&&!(a24==1)))))){ + a8 = 0; + a9 = 7; + a16 = 10; + a5 = 5; + a23 = 1; + a19 = 1; + return 26; + } else if((((((a9==8)&&(!(a14==1)&&((a2==1)&&(a21==12))))||!(a13==1))&&(a1==13))&&((a17==2)&&(((a3==1)&&((a12==1)&&((((a13==1)&&((a19==4)&&((input==4)&&!(a20==1))))&&(a16==8))&&(a3==1))))&&(a5==4))))){ + if((a16==9)){ + a21 = 10; + a6 = 0; + a5 = 5; + a14 = 1; + a20 = 1; + a19 = 1; + a16 = 7; + }else{ + a9 = 11; + a1 = 12; + a18 = 1; + a26 = 1; + a20 = 1; + a21 = 10; + a6 = 0; + } + return 25; + } else if(((((a17==2)&&(((a6==1)&&(((((input==5)&&(a9==9))&&(a6==1))&&(a5==4))&&(a1==12)))&&!(a4==1)))&&(a16==7))&&(((a21==11)&&((a20==1)&&(((a3==1)&&((a12==1)&&!(a8==1)))&&!(a14==1))))&&(a19==2)))){ + a24 = 0; + a0 = 0; + a21 = 10; + a9 = 8; + a23 = 1; + a1 = 14; + a16 = 8; + return 25; + } else if((((a9==7)&&((((a1==13)&&(((a17==2)&&(input==3))&&!(a4==1)))&&(a16==10))&&(a20==1)))&&(((a19==3)&&((a4==1)||((!(a11==1)||(!(a11==1)||((!(a27==1)&&(a6==1))&&(a5==5))))&&(a28==1))))&&(a21==10)))){ + a19 = 1; + a1 = 12; + a23 = 1; + a16 = 7; + a3 = 1; + a5 = 4; + a12 = 1; + return -1; + } else if((((a17==2)&&((a21==11)&&(!(a20==1)&&((((a1==12)&&(((a16==10)&&(((a5==4)||(a5==5))&&(input==1)))&&(a9==7)))&&(a11==1))&&(a28==1)))))&&(((((a13==1)&&(!(a6==1)||(a3==1)))&&!(a26==1))&&(a19==4))&&!(a27==1)))){ + a7 = 1; + a5 = 4; + a28 = 0; + a16 = 8; + a21 = 10; + a9 = 9; + a19 = 1; + a10 = 1; + a20 = 1; + return -1; + } return calculate_output64(input); + } + + int calculate_output64(int input) { + if(((((a9==8)&&((a19==4)&&((!(a8==1)&&((a1==12)&&(!(a27==1)&&((a17==2)&&(a28==1)))))&&(a16==8))))||(a27==1))&&((a21==10)&&(((((a3==1)&&(((a5==4)||(a5==5))&&(input==6)))&&(a20==1))&&(a28==1))&&(a13==1))))){ + if((a18==1)){ + a5 = 4; + a24 = 0; + a7 = 0; + a0 = 0; + a9 = 9; + a16 = 7; + a20 = 0; + a21 = 11; + a19 = 2; + a1 = 13; + }else{ + a9 = 10; + a12 = 1; + a19 = 5; + a16 = 9; + a23 = 1; + a2 = 1; + a1 = 14; + a21 = 12; + a5 = 6; + } + return 25; + } else if((((!(a4==1)&&(((((((input==5)&&((((a9==11)&&((a1==12)&&(a5==6)))||((a9==7)&&((a1==13)&&(a5==4))))||(((a1==13)&&(a5==5))&&(a9==7))))&&(a11==1))&&!(a8==1))&&!(a14==1))&&(a19==3))&&(a21==12)))&&(a28==1))&&((a17==2)&&((a20==1)&&(((a14==1)||(a3==1))&&(a16==11)))))){ + if((a1==12)){ + a5 = 5; + a16 = 8; + a20 = 0; + a19 = 5; + a21 = 11; + a1 = 12; + a9 = 10; + a6 = 1; + }else{ + a19 = 1; + a27 = 0; + a21 = 10; + a2 = 1; + a1 = 13; + a5 = 4; + a9 = 11; + a4 = 0; + a16 = 10; + } + return 21; + } else if((((((((((a16==10)&&(a2==1))&&(a1==12))&&(a20==1))||(a18==1))&&(a21==10))&&(a28==1))||(a8==1))&&((((a3==1)&&((a19==2)&&(((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==4))&&(a17==2))))&&(a6==1))&&(a23==1)))){ + a28 = 1; + a16 = 7; + a9 = 7; + a14 = 0; + a8 = 0; + a19 = 1; + a5 = 4; + return -1; + } else if(((!(a12==1)||((a19==4)&&((a2==1)&&((a2==1)||(a0==1)))))&&((!(a20==1)&&(((((((((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11)))&&(input==5))&&(a1==14))&&(a28==1))&&(a13==1))&&(a16==7))&&(a17==2))&&(a12==1)))&&(a21==11)))){ + a20 = 1; + a3 = 1; + a24 = 0; + a5 = 4; + a9 = 7; + a1 = 12; + a13 = 1; + a21 = 10; + a19 = 1; + return -1; + } else if((((a23==1)&&((((((a3==1)&&((a23==1)&&(a19==5)))&&(a9==9))&&(a16==9))||(a26==1))&&!(a4==1)))&&((a21==12)&&((((a17==2)&&(!(a18==1)&&(((input==3)&&((a5==4)||(a5==5)))&&(a3==1))))&&!(a20==1))&&(a1==12))))){ + if((a27==1)){ + a28 = 0; + a19 = 2; + a0 = 1; + a5 = 6; + a21 = 10; + a16 = 7; + a20 = 1; + a8 = 1; + a9 = 8; + }else{ + a5 = 6; + a21 = 11; + a9 = 7; + a12 = 0; + a16 = 7; + a7 = 1; + a1 = 14; + a13 = 0; + } + return -1; + } else if((((a18==1)||(((a16==10)&&(((((a3==1)&&(a23==1))&&(a21==10))||(a4==1))||(a0==1)))&&(a19==2)))&&(!(a20==1)&&(!(a26==1)&&(!(a18==1)&&(((input==3)&&((((a9==11)&&((a1==12)&&(a5==5)))||(((a5==6)&&(a1==12))&&(a9==11)))||((a9==7)&&((a5==4)&&(a1==13)))))&&(a17==2))))))){ + a20 = 1; + a21 = 12; + a19 = 3; + a9 = 11; + a16 = 11; + a5 = 5; + a12 = 0; + a1 = 14; + a10 = 1; + a25 = 1; + return 23; + } else if((((a19==2)&&(((a16==8)&&((((a20==1)&&((a28==1)&&(a23==1)))&&(a23==1))||(a18==1)))&&(a21==10)))&&((!(a14==1)&&((((((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5)))&&(input==4))&&(a17==2))&&!(a26==1))&&(a6==1)))&&(a1==12)))){ + a19 = 1; + a16 = 7; + a28 = 1; + a27 = 0; + a9 = 7; + a14 = 0; + a5 = 4; + return -1; + } else if((((a24==1)&&(!(a6==1)&&((a16==9)&&((a20==1)&&(!(a23==1)&&((a17==2)&&(!(a11==1)&&(a12==1))))))))&&(((a21==12)&&(((((a19==1)&&(((a5==6)&&(a1==14))&&(a9==11)))||(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==2)))&&(input==6))&&(a7==1)))&&(a0==1)))){ + a5 = 6; + a9 = 9; + a26 = 1; + a2 = 0; + a16 = 7; + a1 = 13; + a19 = 1; + a21 = 10; + a3 = 0; + return -1; + } else if((((a16==7)&&((a19==5)&&((((a21==10)&&((a13==1)&&(a17==2)))||(a8==1))&&(a6==1))))&&(((a20==1)&&(!(a4==1)&&(((a1==13)&&(!(a14==1)&&((((a5==5)||(a5==6))&&(input==4))&&!(a0==1))))&&(a12==1))))&&(a9==7)))){ + a9 = 11; + a7 = 0; + a21 = 12; + a3 = 1; + a0 = 0; + a5 = 6; + a19 = 2; + a1 = 14; + return 23; + } else if((((!(a24==1)&&((a16==9)&&((a5==4)&&((a19==4)&&(!(a7==1)&&((a20==1)&&(input==1)))))))&&(a1==12))&&((((a4==1)||((a17==2)&&(!(a6==1)||((a14==1)||((a11==1)&&!(a14==1))))))&&(a21==11))&&(a9==7)))){ + a19 = 1; + a16 = 10; + a9 = 8; + a8 = 0; + a6 = 1; + a27 = 0; + a21 = 10; + return 21; + } else if((((!(a8==1)&&(((a2==1)&&((((a21==10)&&((a19==1)&&((a16==7)&&((((a1==12)&&(a5==4))&&(a9==7))&&!(a20==1)))))||((((((((a1==14)&&(a5==5))&&(a9==11))&&(a20==1))&&(a16==11))&&(a19==5))&&(a21==12))||((a21==12)&&((a19==5)&&(((((a1==14)&&(a5==6))&&(a9==11))&&(a20==1))&&(a16==11))))))&&(input==1)))&&!(a18==1)))&&(a11==1))&&(!(a14==1)&&(((a3==1)&&(a17==2))||!(a2==1))))){ + a16 = 7; + a5 = 4; + a1 = 14; + a20 = 0; + a19 = 1; + a27 = 0; + a11 = 1; + a8 = 0; + a21 = 10; + a9 = 10; + return 21; + } else if((((a11==1)&&(((a26==1)||((a28==1)&&(a16==8)))||!(a28==1)))&&((a2==1)&&((a1==14)&&(((a21==11)&&((a17==2)&&(((((a11==1)&&((a19==2)&&(input==4)))&&(a20==1))&&(a5==6))&&(a13==1))))&&(a9==7)))))){ + a27 = 0; + a19 = 1; + a5 = 4; + a21 = 10; + a4 = 0; + a1 = 12; + a28 = 1; + a16 = 7; + return -1; + } else if(((((((a6==1)&&(a17==2))&&!(a4==1))&&(a16==10))&&!(a18==1))&&(!(a4==1)&&(((a20==1)&&((a28==1)&&(((a28==1)&&((((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==6))&&(a1==14))&&(a2==1)))&&(a21==10))))&&(a19==1))))){ + a5 = 5; + a16 = 8; + a13 = 1; + a19 = 5; + a6 = 1; + a9 = 8; + return -1; + } else if((((a21==11)&&(!(a2==1)||((a16==7)&&((a28==1)&&(a17==2)))))&&((a1==13)&&(!(a18==1)&&((((a9==9)&&(!(a8==1)&&(!(a20==1)&&((!(a4==1)&&((input==4)&&(a5==6)))&&(a19==1)))))&&(a28==1))&&!(a26==1)))))){ + a19 = 4; + a16 = 8; + a5 = 4; + a1 = 14; + a27 = 0; + a14 = 0; + a26 = 0; + return 26; + } else if((((a17==2)&&((a28==1)&&((a9==9)&&((a12==1)&&((a3==1)&&((((a5==4)||(a5==5))&&(input==3))&&(a23==1)))))))&&(!(a20==1)&&(((((a21==10)&&(((a16==11)&&(a3==1))&&(a13==1)))&&!(a7==1))&&(a19==4))&&(a1==13))))){ + a16 = 7; + a25 = 1; + a19 = 1; + a5 = 5; + a9 = 8; + a20 = 1; + a7 = 1; + a28 = 0; + return 21; + } else if((((a9==9)&&(!(a7==1)&&((a20==1)&&(((((a5==5)||(a5==6))&&(input==4))&&(a21==10))&&(a1==13)))))&&((!(a8==1)&&((a7==1)||((a4==1)||((a18==1)||((a16==10)&&(((a23==1)&&(a17==2))&&(a19==2)))))))||(a26==1)))){ + a23 = 1; + a1 = 12; + a4 = 0; + a27 = 0; + a5 = 5; + a16 = 7; + a9 = 7; + a19 = 3; + return 26; + } else if(((((a19==2)&&(((!(a11==1)||((a9==9)&&(a28==1)))&&(a28==1))&&!(a20==1)))&&!(a14==1))&&((((a1==12)&&((a13==1)&&((a13==1)&&((((input==4)&&(a17==2))&&(a21==10))&&(a2==1)))))&&(a16==8))&&(a5==6)))){ + a8 = 0; + a19 = 1; + a16 = 7; + a9 = 7; + a0 = 0; + a20 = 1; + a5 = 4; + a18 = 0; + return -1; + } else if((((((((a13==1)&&((a11==1)&&((input==4)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))))&&(a20==1))&&(a21==11))&&!(a8==1))&&(a1==14))&&((((a19==5)&&((((a11==1)&&(a6==1))&&(a23==1))&&(a17==2)))&&(a16==10))&&!(a0==1)))){ + a18 = 0; + a19 = 1; + a11 = 1; + a1 = 12; + a9 = 7; + a8 = 0; + a21 = 10; + a16 = 7; + a5 = 4; + return -1; + } else if((((a27==1)||(!(a11==1)||(((((a12==1)&&(a19==4))&&(a16==9))&&!(a4==1))&&(a2==1))))&&((a20==1)&&((a9==10)&&(((((a1==12)&&(!(a24==1)&&((input==5)&&(a5==6))))&&(a21==11))&&(a17==2))&&(a11==1)))))){ + if((a0==1)){ + a13 = 1; + a9 = 8; + a16 = 8; + a5 = 5; + a8 = 0; + a20 = 0; + }else{ + a21 = 10; + a4 = 0; + a16 = 7; + a1 = 13; + a28 = 1; + a5 = 4; + a26 = 0; + a19 = 2; + } + return 21; + } else if(((((((a1==14)&&(((a18==1)&&((a18==1)&&(!(a11==1)&&(!(a6==1)&&(a2==1)))))&&(a19==5)))&&(a9==7))&&(a20==1))&&(a17==2))&&((a21==12)&&(((((input==6)&&(a5==6))&&(a18==1))&&!(a6==1))&&(a16==8))))){ + a19 = 1; + a15 = 1; + a16 = 7; + a21 = 10; + a12 = 0; + a29 = 0; + a9 = 8; + return -1; + } else if((((a20==1)&&(((a9==10)&&(!(a4==1)&&((a1==13)&&(!(a27==1)&&(!(a4==1)&&((!(a0==1)&&(((input==5)&&((a5==4)||(a5==5)))&&(a16==11)))&&(a3==1)))))))&&(a21==12)))&&(((a19==3)&&((a28==1)&&(a6==1)))&&(a17==2)))){ + a21 = 10; + a19 = 1; + a4 = 0; + a9 = 7; + a16 = 7; + a14 = 0; + a27 = 0; + a1 = 12; + a5 = 4; + return -1; + } else if(((!(a27==1)&&((((a9==7)&&(((!(a20==1)&&(input==4))&&(a28==1))&&(a12==1)))&&(a16==7))&&(a21==12)))&&(((a19==2)&&(((a5==5)&&((((a26==1)||(a12==1))&&(a17==2))||!(a6==1)))&&(a1==12)))&&!(a27==1)))){ + a0 = 0; + a5 = 4; + a21 = 10; + a20 = 1; + a3 = 1; + a19 = 1; + return -1; + } else if(((((a20==1)&&((((((a9==8)&&(input==5))&&(a5==5))&&(a12==1))&&(a16==8))&&(a21==12)))&&!(a24==1))&&((a17==2)&&(((((a24==1)||(!(a13==1)||(!(a11==1)||(a6==1))))&&!(a0==1))&&(a19==4))&&(a1==14))))){ + a27 = 0; + a26 = 0; + a9 = 11; + a5 = 4; + a19 = 3; + return -1; + } else if((((a7==1)||(!(a4==1)&&((!(a8==1)&&(((a13==1)&&(a19==4))&&!(a20==1)))||!(a23==1))))&&(((a6==1)&&(((((input==6)&&(((a9==7)&&((a1==13)&&(a5==5)))||(((a9==11)&&((a1==12)&&(a5==6)))||((a9==7)&&((a5==4)&&(a1==13))))))&&(a17==2))&&(a21==10))&&(a16==9)))&&!(a14==1)))){ + a21 = 12; + a9 = 8; + a13 = 0; + a20 = 1; + a16 = 8; + a3 = 0; + a1 = 12; + a19 = 1; + a5 = 6; + a26 = 1; + return 21; + } else if((((((a23==1)&&(((a23==1)&&((a4==1)||(a12==1)))&&(a16==10)))&&(a19==5))&&(a1==14))&&(((!(a20==1)&&(!(a24==1)&&(!(a4==1)&&(((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==5))&&(a11==1)))))&&(a21==10))&&(a17==2)))){ + a29 = 0; + a5 = 5; + a9 = 8; + a21 = 11; + a16 = 7; + a12 = 0; + a19 = 2; + a2 = 0; + return 21; + } else if(((((a19==5)&&((a27==1)||(((a16==10)&&(a13==1))||!(a11==1))))&&(a20==1))&&((a1==12)&&((a21==10)&&((a3==1)&&(!(a27==1)&&((a17==2)&&(!(a0==1)&&((((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&(a12==1))&&(a9==7)))))))))){ + if((a22==1)){ + a12 = 1; + a9 = 9; + a1 = 13; + a23 = 1; + a5 = 5; + a20 = 0; + a16 = 8; + }else{ + a21 = 11; + a16 = 9; + a5 = 6; + a6 = 1; + a4 = 0; + a14 = 0; + a19 = 1; + a9 = 8; + } + return 26; + } else if((((((a9==9)&&(((a26==1)||((!(a28==1)||(a6==1))&&(a1==12)))||(a24==1)))&&(a17==2))||(a4==1))&&(((((((a6==1)&&((input==5)&&((a5==5)||(a5==6))))&&(a16==9))&&(a20==1))&&(a6==1))&&(a19==2))&&(a21==10)))){ + a7 = 0; + a24 = 0; + a5 = 4; + a16 = 7; + a12 = 1; + a19 = 1; + a9 = 7; + return -1; + } else if((((a11==1)&&((!(a26==1)&&(((a19==1)&&(!(a14==1)&&((a9==8)&&((a1==12)&&((a16==8)&&((input==1)&&(a21==12)))))))&&(a20==1)))&&(a23==1)))&&(((a17==2)&&(((a23==1)&&(a5==5))&&!(a8==1)))||!(a3==1)))){ + a28 = 1; + a5 = 4; + a16 = 7; + a21 = 10; + a9 = 7; + a7 = 0; + a12 = 1; + return -1; + } else if((((a16==10)&&((!(a14==1)&&((((!(a4==1)&&((((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))&&(input==1))&&(a23==1)))&&(a17==2))&&!(a27==1))&&(a2==1)))&&(a21==11)))&&(!(a20==1)&&((a1==12)&&((!(a18==1)&&(a2==1))&&(a19==4)))))){ + a5 = 5; + a28 = 0; + a19 = 1; + a9 = 11; + a14 = 1; + a1 = 13; + a16 = 7; + a22 = 0; + a21 = 10; + a20 = 1; + return -1; + } else if(((!(a4==1)&&(((a3==1)&&((((((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(input==1))&&(a19==2))&&!(a27==1)))&&(a12==1)))&&(!(a27==1)&&((((a6==1)&&((a16==9)&&((a17==2)&&((a23==1)&&(a1==12)))))&&(a20==1))&&(a21==11))))){ + a9 = 7; + a5 = 4; + a19 = 1; + a2 = 1; + a21 = 10; + a11 = 1; + a16 = 7; + return -1; + } else if(((((a11==1)&&((a27==1)||(((((a6==1)&&!(a20==1))&&(a5==6))&&!(a14==1))&&(a1==14))))&&(a19==2))&&((a16==10)&&(((a9==7)&&((a6==1)&&((a17==2)&&(!(a18==1)&&((a21==12)&&(input==1))))))&&(a6==1))))){ + a23 = 0; + a1 = 12; + a4 = 1; + a5 = 4; + a21 = 10; + a16 = 7; + a20 = 1; + a19 = 1; + a9 = 10; + return 22; + } else if(((!(a26==1)&&((a21==12)&&((a16==9)&&((a19==1)&&(((a12==1)&&(!(a27==1)&&(((input==1)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(a28==1))))&&!(a20==1))))))&&(((!(a13==1)||((a1==14)&&(a11==1)))&&(a23==1))&&(a17==2)))){ + a1 = 13; + a16 = 10; + a20 = 1; + a28 = 0; + a19 = 5; + a5 = 4; + a4 = 1; + a11 = 0; + a9 = 8; + return 25; + } else if((((a20==1)&&(((((a9==7)&&(input==1))&&(a5==4))&&(a16==10))&&(a3==1)))&&((a1==14)&&((((!(a12==1)||(((a19==3)&&(!(a24==1)&&((a17==2)&&(a2==1))))&&(a21==11)))||!(a11==1))&&!(a26==1))&&(a13==1))))){ + a11 = 1; + a12 = 1; + a21 = 12; + a9 = 11; + a1 = 13; + a19 = 4; + a16 = 9; + return 25; + } else if((((a3==1)||(a27==1))&&(!(a20==1)&&((a16==8)&&((a19==4)&&((a21==11)&&(((a17==2)&&(!(a14==1)&&((a6==1)&&(((!(a27==1)&&((input==6)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))))&&!(a4==1))&&(a3==1)))))&&(a1==12)))))))){ + a20 = 1; + a1 = 13; + a5 = 4; + a11 = 1; + a21 = 12; + a12 = 1; + a9 = 10; + a19 = 5; + return 26; + } else if((((a4==1)||((a13==1)&&(a21==12)))&&((a16==7)&&((((((a20==1)&&((!(a18==1)&&(!(a24==1)&&(((input==1)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&!(a27==1))))&&!(a26==1)))&&!(a24==1))&&(a1==14))&&(a17==2))&&(a19==4))))){ + a5 = 4; + a1 = 12; + a9 = 7; + a19 = 1; + a2 = 1; + a21 = 10; + a27 = 0; + a26 = 0; + return -1; + } else if(((!(a2==1)||(((a1==14)&&(a12==1))&&(a2==1)))&&(((((a9==8)&&((a5==6)&&((a21==12)&&(((a2==1)&&((((input==6)&&(a17==2))&&(a19==3))&&(a16==7)))&&(a20==1)))))&&(a6==1))&&!(a0==1))&&!(a27==1)))){ + a3 = 1; + a18 = 0; + a16 = 8; + a9 = 7; + a5 = 4; + a24 = 0; + a1 = 12; + a20 = 0; + a21 = 10; + a19 = 2; + return 21; + } else if((((a17==2)&&((!(a18==1)&&(!(a26==1)&&((a3==1)&&!(a7==1))))&&(a12==1)))&&((a19==4)&&(((a1==13)&&((a6==1)&&(!(a18==1)&&((a16==11)&&((a21==12)&&((a5==6)&&((a20==1)&&(input==3))))))))&&(a9==7))))){ + a4 = 0; + a1 = 12; + a21 = 10; + a26 = 0; + a5 = 5; + a23 = 1; + return 21; + } else if(((!(a13==1)||((a1==14)&&((a20==1)&&(!(a24==1)&&(((a6==1)&&(a19==4))||(a7==1))))))&&(((a21==10)&&((!(a26==1)&&((a17==2)&&((a23==1)&&((input==5)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))))))&&(a16==8)))&&!(a24==1)))){ + a28 = 1; + a9 = 8; + a21 = 12; + a18 = 0; + a5 = 6; + a19 = 1; + a3 = 1; + return 21; + } else if((((((((a1==13)&&(((a17==2)&&(input==5))&&(a21==11)))&&(a5==5))&&(a19==2))&&(a20==1))&&!(a8==1))&&(((((a28==1)&&((!(a11==1)||(!(a0==1)&&(a6==1)))||!(a2==1)))&&(a12==1))&&(a9==7))&&(a16==9)))){ + a12 = 1; + a28 = 1; + a1 = 12; + a19 = 1; + a14 = 0; + a5 = 4; + a21 = 10; + a16 = 7; + return -1; + } else if(((!(a4==1)&&((a21==10)&&((!(a6==1)||(a11==1))&&(a3==1))))&&(!(a14==1)&&((!(a20==1)&&((a19==2)&&((((a16==9)&&((((a9==7)&&((a1==13)&&(a5==5)))||((((a1==12)&&(a5==6))&&(a9==11))||(((a5==4)&&(a1==13))&&(a9==7))))&&(input==6)))&&(a23==1))&&(a11==1))))&&(a17==2))))){ + a2 = 0; + a20 = 1; + a26 = 1; + a5 = 5; + a24 = 1; + a9 = 8; + a1 = 14; + a16 = 10; + return 25; + } else if((((((a6==1)&&(((a28==1)||!(a13==1))&&(a6==1)))||!(a28==1))&&(a9==11))&&(((a17==2)&&((a20==1)&&((((a1==14)&&(((a19==1)&&((input==1)&&((a5==5)||(a5==6))))&&(a16==9)))&&(a12==1))&&!(a8==1))))&&(a21==11)))){ + a9 = 8; + a11 = 1; + a21 = 10; + a16 = 10; + a13 = 1; + a3 = 1; + a19 = 3; + a5 = 6; + return 21; + } else if((((a19==3)&&((a5==4)&&((!(a0==1)&&((a21==12)&&((!(a24==1)&&((a13==1)&&(a9==7)))||(a0==1))))&&(a16==9))))&&(((a17==2)&&(((((input==4)&&!(a20==1))&&(a28==1))&&!(a24==1))&&!(a26==1)))&&(a1==13)))){ + a19 = 1; + a21 = 10; + a9 = 11; + a26 = 1; + a20 = 1; + a5 = 6; + a25 = 0; + a1 = 14; + a11 = 0; + a16 = 7; + return 22; + } else if((((a12==1)&&((a17==2)&&(((a2==1)||(a27==1))&&(a21==12))))&&((((((((a19==4)&&(((input==4)&&(((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))))&&!(a14==1)))&&(a1==12))&&(a13==1))&&!(a27==1))&&(a16==9))&&(a20==1))&&(a3==1)))){ + a18 = 0; + a26 = 0; + a16 = 7; + a9 = 7; + a21 = 10; + a27 = 0; + a19 = 1; + a5 = 4; + return -1; + } else if((((a20==1)&&(!(a27==1)&&(!(a18==1)&&((a12==1)&&(!(a0==1)&&((a3==1)&&(((a19==4)&&(((input==4)&&((a5==4)||(a5==5)))&&(a2==1)))&&(a16==8))))))))&&((a21==12)&&((a1==12)&&((a9==10)&&((a17==2)&&(a6==1))))))){ + a26 = 0; + a9 = 7; + a5 = 4; + a16 = 7; + a21 = 10; + a27 = 0; + a19 = 1; + a23 = 1; + return -1; + } else if((((a16==8)&&(((a6==1)&&((a19==1)&&((((((input==6)&&(a1==12))&&!(a20==1))&&(a5==5))&&!(a27==1))&&(a9==7))))&&(a28==1)))&&((a4==1)||(((a17==2)&&(!(a4==1)&&((a2==1)&&(a21==11))))||(a7==1))))){ + a21 = 10; + a28 = 1; + a5 = 4; + a16 = 7; + a3 = 1; + a13 = 1; + a20 = 1; + return -1; + } else if(((!(a7==1)&&((((((a2==1)&&((a5==5)&&((((input==3)&&(a9==9))&&(a21==11))&&(a16==11))))&&(a1==13))&&(a23==1))&&(a19==2))&&(a28==1)))&&((a17==2)&&(((a20==1)&&((a6==1)&&(a6==1)))||(a7==1))))){ + a9 = 7; + a1 = 12; + a5 = 4; + a4 = 0; + a0 = 0; + a19 = 1; + a3 = 1; + a21 = 10; + a16 = 7; + return -1; + } else if((((a5==6)&&(((a21==12)&&(((!(a8==1)&&((input==3)&&(a19==5)))&&(a16==11))&&(a12==1)))&&!(a26==1)))&&((a2==1)&&((a17==2)&&((a26==1)||((a1==13)&&((a9==11)&&((a20==1)&&((a6==1)||(a18==1)))))))))){ + a5 = 4; + a0 = 0; + a18 = 0; + a21 = 10; + a19 = 1; + a11 = 1; + a16 = 7; + a1 = 12; + a9 = 7; + return -1; + } else if(((((((a1==13)&&(((a16==9)&&((a19==1)&&((((a5==5)||(a5==6))&&(input==1))&&(a9==10))))&&(a23==1)))&&(a6==1))&&(a12==1))&&!(a4==1))&&(((a20==1)&&((((a23==1)&&(a21==12))&&(a17==2))||!(a11==1)))&&(a11==1)))){ + a1 = 12; + a21 = 10; + a16 = 11; + a24 = 0; + a19 = 4; + a0 = 0; + a5 = 4; + a8 = 0; + a9 = 11; + return 26; + } else if((((a19==5)&&((a17==2)&&((a16==9)&&((!(a0==1)&&(a2==1))&&(a9==11)))))&&(((((a6==1)&&(!(a14==1)&&((a1==12)&&(((a28==1)&&(((a5==5)||(a5==6))&&(input==3)))&&!(a20==1)))))&&(a6==1))&&(a21==10))&&(a11==1)))){ + if((a13==1)){ + a5 = 5; + a15 = 1; + a21 = 11; + a8 = 1; + }else{ + a10 = 1; + a11 = 0; + a5 = 5; + a20 = 1; + a0 = 1; + a16 = 7; + a19 = 1; + a1 = 13; + } + return -1; + } else if(((((a21==11)&&((input==5)&&(a20==1)))&&(a12==1))&&((a16==11)&&((a19==2)&&((!(a7==1)&&(((((((a5==6)&&((a0==1)||(a28==1)))&&(a13==1))&&!(a27==1))&&(a9==10))&&(a17==2))&&!(a4==1)))&&(a1==13)))))){ + a27 = 0; + a19 = 1; + a13 = 1; + a21 = 10; + a5 = 4; + a9 = 7; + a1 = 12; + a16 = 7; + return -1; + } else if((((!(a12==1)||(((!(a0==1)&&((a7==1)||(((a24==1)||(a3==1))&&(a17==2))))&&(a16==8))&&(a12==1)))&&(a1==13))&&((a19==4)&&((!(a20==1)&&(((a21==10)&&((input==6)&&(a5==6)))&&!(a7==1)))&&(a9==10))))){ + a26 = 0; + a1 = 12; + a19 = 1; + a23 = 1; + a5 = 4; + a20 = 1; + a6 = 1; + a9 = 7; + a16 = 7; + return -1; + } else if(((!(a12==1)&&(!(a13==1)&&(!(a28==1)&&(((((a2==1)&&!(a12==1))&&(a16==9))&&(a21==12))&&(a20==1)))))&&(((((((a19==1)&&((a9==11)&&((a5==6)&&(a1==14))))||((((a5==4)&&(a1==12))&&(a9==7))&&(a19==2)))&&(input==3))&&(a17==2))&&!(a28==1))&&(a18==1)))){ + a19 = 1; + a29 = 1; + a1 = 12; + a18 = 1; + a21 = 10; + a9 = 7; + a3 = 0; + a16 = 7; + a5 = 5; + return -1; + } else if((((a17==2)&&((a19==3)&&((a1==14)&&(((a16==8)&&(!(a8==1)&&((a23==1)&&((input==1)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))))))&&!(a20==1)))))&&((((a2==1)&&(!(a3==1)||((a27==1)||(a13==1))))||!(a6==1))&&(a21==11)))){ + a5 = 5; + a28 = 1; + a0 = 0; + a21 = 10; + a27 = 0; + a19 = 5; + a9 = 10; + a20 = 1; + a1 = 12; + a16 = 9; + return 25; + } else if((((a20==1)&&(((((a5==5)&&(((a1==13)&&(input==4))&&(a16==10)))&&!(a7==1))&&!(a8==1))&&(a21==12)))&&((a17==2)&&((((!(a13==1)||(((a13==1)||!(a2==1))&&(a9==8)))&&(a19==5))&&(a3==1))||!(a6==1))))){ + a6 = 1; + a23 = 1; + a19 = 1; + a5 = 4; + a1 = 12; + a9 = 7; + a21 = 10; + a16 = 7; + a27 = 0; + return -1; + } else if((((a9==7)&&(((a17==2)&&(((a6==1)&&((a2==1)&&((a28==1)&&(!(a14==1)&&((a19==5)&&(input==1))))))&&(a16==7)))&&(a5==5)))&&(((a20==1)&&(!(a12==1)||((a1==14)&&((a13==1)||!(a2==1)))))&&(a21==11)))){ + a1 = 12; + a21 = 12; + a11 = 1; + a19 = 3; + a9 = 9; + a16 = 8; + a5 = 6; + a6 = 1; + a3 = 1; + return 25; + } else if((((a1==14)&&((a9==9)&&(!(a28==1)&&((!(a12==1)&&((!(a13==1)&&((input==3)&&(a20==1)))&&!(a12==1)))&&(a18==1)))))&&((((a16==10)&&((a21==12)&&(((a13==1)&&!(a12==1))&&(a19==1))))&&(a5==5))&&(a17==2)))){ + a1 = 12; + a16 = 8; + a19 = 5; + a21 = 10; + a5 = 6; + a9 = 8; + a10 = 1; + a29 = 1; + return 25; + } else if(((((a13==1)&&(((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))&&(input==6))&&(a1==12)))&&!(a20==1))&&((a19==2)&&((((!(a6==1)||(((((a3==1)||!(a2==1))||!(a3==1))||(a8==1))&&(a6==1)))&&(a21==10))&&(a17==2))&&(a16==7))))){ + a19 = 1; + a18 = 0; + a4 = 0; + a5 = 4; + a20 = 1; + a9 = 7; + a0 = 0; + return -1; + } else if(((((a11==1)&&((a17==2)&&((a16==9)&&(a6==1))))||!(a23==1))&&((a21==12)&&((a3==1)&&((a20==1)&&(!(a4==1)&&((((input==1)&&(((a19==4)&&((a9==11)&&((a5==6)&&(a1==14))))||((a19==5)&&((a9==7)&&((a5==4)&&(a1==12))))))&&!(a7==1))&&(a11==1)))))))){ + a2 = 1; + a16 = 7; + a21 = 11; + a19 = 2; + a13 = 1; + a5 = 4; + a1 = 13; + a24 = 0; + a9 = 8; + return 25; + } else if(((((a19==4)&&((a14==1)||((a17==2)&&((a18==1)||((!(a4==1)&&((a21==10)&&(a6==1)))&&(a13==1))))))&&(a16==9))&&((a9==11)&&(!(a27==1)&&(((a1==13)&&((((a5==5)||(a5==6))&&(input==4))&&!(a20==1)))&&(a2==1)))))){ + a19 = 1; + a20 = 1; + a9 = 10; + a8 = 1; + a28 = 0; + a1 = 12; + a5 = 6; + a21 = 11; + a16 = 11; + a29 = 1; + return 25; + } else if(((((a17==2)&&((a19==3)&&((((a16==8)&&((!(a3==1)||(a13==1))&&!(a8==1)))||(a14==1))&&(a28==1))))||(a26==1))&&((a21==12)&&(((!(a20==1)&&((input==3)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))))&&(a1==12))&&!(a24==1))))){ + if((a20==1)){ + a19 = 1; + a22 = 0; + a5 = 5; + a24 = 1; + a16 = 9; + a9 = 7; + a21 = 10; + }else{ + a19 = 1; + a5 = 4; + a16 = 11; + a23 = 0; + a28 = 0; + a9 = 9; + a1 = 13; + a20 = 1; + } + return -1; + } else if((((a24==1)||(!(a28==1)||(((!(a2==1)||((a20==1)&&(!(a6==1)||(((a2==1)&&(a9==8))&&(a19==1)))))&&(a17==2))||(a18==1))))&&((a11==1)&&(((a16==10)&&((a5==6)&&((a21==10)&&(input==4))))&&(a1==12))))){ + a16 = 7; + a24 = 0; + a2 = 1; + a5 = 4; + a3 = 1; + a9 = 7; + return -1; + } else if(((((a7==1)||((a23==1)&&((!(a14==1)&&(((a11==1)&&(a2==1))&&(a20==1)))||!(a23==1))))&&(a17==2))&&((a19==5)&&(((a23==1)&&((a1==12)&&(((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==6))&&(a16==10))))&&(a21==11))))){ + a6 = 1; + a21 = 10; + a1 = 13; + a9 = 11; + a5 = 6; + a13 = 1; + a16 = 9; + a28 = 1; + a19 = 1; + return -1; + } else if((((a13==1)&&((((((((input==4)&&((a5==4)||(a5==5)))&&(a16==10))&&(a9==10))&&!(a0==1))&&!(a20==1))&&!(a18==1))&&!(a18==1)))&&(((((a1==12)&&(((a13==1)||!(a3==1))||(a4==1)))&&(a21==12))&&(a19==3))&&(a17==2)))){ + if((a14==1)){ + a21 = 10; + a5 = 4; + a19 = 5; + a15 = 0; + a20 = 1; + a28 = 0; + a1 = 13; + a29 = 1; + a9 = 11; + }else{ + a20 = 1; + a10 = 0; + a16 = 7; + a15 = 1; + a19 = 1; + a21 = 10; + a5 = 4; + a1 = 13; + } + return -1; + } else if((((a16==10)&&((a17==2)&&((((a20==1)&&((a28==1)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==1))))&&!(a4==1))&&(a19==2))))&&((a21==10)&&(((!(a3==1)||((a1==12)&&(!(a24==1)&&(a6==1))))||!(a23==1))||!(a11==1))))){ + a19 = 5; + a4 = 0; + a16 = 11; + a1 = 13; + a9 = 7; + a27 = 0; + a2 = 1; + a5 = 4; + return 25; + } else if(((((!(a11==1)||(!(a23==1)||(((a9==11)&&(!(a28==1)||(a28==1)))&&!(a24==1))))&&(a5==5))&&(a17==2))&&((a20==1)&&((((((a16==11)&&((a19==1)&&(input==6)))&&(a11==1))&&(a12==1))&&(a1==12))&&(a21==12))))){ + a14 = 0; + a1 = 14; + a0 = 0; + a19 = 3; + a27 = 0; + a9 = 9; + return 22; + } else if(((((a21==11)&&((a1==14)&&((a11==1)&&(!(a7==1)&&((a19==3)&&(a2==1))))))&&(a9==8))&&((((!(a4==1)&&(!(a20==1)&&((((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&(a16==10))&&(a17==2))))&&(a13==1))&&!(a7==1))&&!(a7==1)))){ + if((a24==1)){ + a13 = 0; + a1 = 13; + a19 = 1; + a5 = 5; + a24 = 1; + a20 = 1; + a16 = 7; + a21 = 10; + a9 = 9; + a27 = 1; + }else{ + a9 = 9; + a21 = 10; + a1 = 12; + a20 = 1; + a5 = 4; + a19 = 2; + a14 = 1; + a29 = 0; + a16 = 7; + a8 = 1; + } + return 25; + } else if((((!(a4==1)&&(!(a18==1)&&((a20==1)&&((((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4)))&&(input==5))&&(a17==2)))))&&!(a27==1))&&((a6==1)&&(((((a21==10)&&(((a6==1)&&(a1==12))||(a27==1)))||(a24==1))&&(a16==11))&&(a19==2))))){ + a19 = 1; + a5 = 4; + a9 = 7; + a23 = 1; + a16 = 7; + a6 = 1; + return -1; + } else if(((!(a14==1)&&((a17==2)&&(((a9==11)&&(((a12==1)&&(a1==14))&&(a21==10)))&&(a5==6))))&&((((((a19==5)&&((a12==1)&&(((a20==1)&&(input==5))&&(a3==1))))&&(a16==9))&&(a12==1))&&!(a27==1))&&(a2==1)))){ + a27 = 0; + a5 = 4; + a9 = 7; + a12 = 1; + a7 = 0; + a16 = 8; + a21 = 11; + return -1; + } else if(((!(a28==1)||(!(a28==1)||((a11==1)&&((a19==1)&&(((!(a14==1)&&((a3==1)&&(a1==13)))&&(a20==1))&&(a17==2))))))&&(!(a7==1)&&(((((input==4)&&(((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))&&(a16==7))&&(a21==12))&&(a11==1))))){ + if((a7==1)){ + a1 = 14; + a19 = 2; + a21 = 10; + a16 = 8; + a20 = 0; + a3 = 1; + a9 = 11; + a18 = 0; + a13 = 1; + a5 = 6; + }else{ + a5 = 4; + a21 = 10; + a14 = 0; + a16 = 9; + a24 = 0; + a1 = 12; + a9 = 8; + a28 = 1; + } + return 25; + } else if((((a1==14)&&((a16==7)&&((a7==1)||(!(a28==1)||(!(a7==1)&&(!(a3==1)||((a12==1)||!(a11==1))))))))&&((!(a20==1)&&((a17==2)&&((a9==11)&&((((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&(a19==2))&&!(a8==1)))))&&(a21==12)))){ + a20 = 1; + a13 = 1; + a1 = 13; + a23 = 1; + a16 = 11; + a7 = 0; + a19 = 1; + a5 = 4; + a21 = 10; + return 25; + } else if(((((a19==3)&&((((((a21==10)&&(((a1==13)&&(((a5==5)||(a5==6))&&(input==3)))&&(a28==1)))&&!(a4==1))&&(a16==8))&&(a17==2))&&(a2==1)))&&!(a20==1))&&((!(a24==1)&&((!(a14==1)&&(a6==1))&&(a9==11)))||!(a13==1)))){ + a16 = 7; + a20 = 1; + a28 = 1; + a8 = 0; + a1 = 12; + a9 = 7; + a5 = 4; + a19 = 1; + a2 = 1; + return -1; + } else if(((((((a19==2)&&(a2==1))||(a27==1))&&(a21==12))&&(a16==10))&&((a17==2)&&(((a5==6)&&((!(a0==1)&&((a28==1)&&((((a12==1)&&((input==4)&&(a1==14)))&&(a12==1))&&!(a26==1))))&&(a9==10)))&&(a20==1))))){ + a11 = 1; + a21 = 10; + a1 = 12; + a16 = 7; + a19 = 1; + a5 = 4; + a9 = 7; + a8 = 0; + a3 = 1; + return -1; + } else if(((((((a6==1)&&(((a2==1)&&((a13==1)&&((a17==2)&&((input==5)&&((a5==5)||(a5==6))))))&&(a28==1)))&&(a16==11))&&(a19==5))&&(a21==10))&&(((!(a23==1)||((a1==13)&&((a9==11)&&(a28==1))))||(a14==1))&&(a20==1)))){ + a19 = 4; + a9 = 7; + a23 = 1; + a18 = 0; + a26 = 0; + a1 = 12; + a5 = 6; + a16 = 7; + return 26; + } else if(((((!(a4==1)&&((a23==1)&&((((a19==2)&&(((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a5==4)&&(a9==9)))&&(input==1)))&&(a21==11))&&(a1==12))))&&(a17==2))&&!(a20==1))&&((((a16==8)&&(((a13==1)&&(a3==1))&&(a11==1)))&&!(a24==1))&&!(a7==1)))){ + a11 = 1; + a5 = 4; + a9 = 7; + a6 = 1; + a20 = 1; + a4 = 0; + a19 = 1; + a16 = 7; + a21 = 10; + return -1; + } else if((((a6==1)&&((a21==10)&&(((((a12==1)&&(a16==10))&&(a5==5))&&!(a0==1))||!(a28==1))))&&((((!(a20==1)&&(((a19==3)&&((a17==2)&&((input==4)&&(a1==12))))&&(a9==10)))&&(a28==1))&&(a13==1))&&(a11==1)))){ + a3 = 0; + a9 = 9; + a5 = 6; + a2 = 0; + a1 = 13; + a13 = 0; + a16 = 7; + a19 = 1; + a20 = 1; + return -1; + } else if((((a26==1)&&((a18==1)&&(((a24==1)&&(((a16==8)&&((a18==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5))))&&(a19==3)))&&(a4==1))))&&((((a17==2)&&((((a2==1)&&(a20==1))&&(a9==11))&&(a21==10)))&&(a1==13))&&!(a11==1)))){ + a5 = 6; + a15 = 0; + a9 = 10; + a12 = 0; + a10 = 0; + a19 = 1; + a16 = 7; + return -1; + } else if((((a19==4)&&(((!(a7==1)&&(!(a0==1)&&((a9==7)&&((((input==4)&&((a5==5)||(a5==6)))&&(a11==1))&&!(a20==1)))))&&(a16==7))&&!(a26==1)))&&((((((a17==2)&&(a12==1))||!(a28==1))||(a0==1))&&(a1==12))&&(a21==11)))){ + a20 = 1; + a4 = 0; + a21 = 10; + a19 = 1; + a26 = 0; + a5 = 4; + return -1; + } else if(((((a3==1)&&(((a17==2)&&(a6==1))&&(a20==1)))&&(a9==11))&&((a21==12)&&((a16==9)&&((a12==1)&&((a19==1)&&((a1==13)&&((a23==1)&&((((a28==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))&&(a13==1))&&(a28==1)))))))))){ + a16 = 7; + a5 = 4; + a21 = 10; + a24 = 0; + a18 = 0; + a9 = 7; + a1 = 12; + a13 = 1; + return -1; + } else if(((!(a14==1)&&(((a28==1)&&((a26==1)||(((a13==1)&&!(a24==1))&&(a17==2))))&&(a28==1)))&&((a16==11)&&(!(a20==1)&&(!(a0==1)&&(((a21==10)&&(((((a1==12)&&(a5==6))&&(a9==11))||(((a5==4)&&(a1==13))&&(a9==7)))&&(input==4)))&&(a19==4))))))){ + a19 = 1; + a5 = 4; + a21 = 11; + a24 = 1; + a14 = 1; + a9 = 11; + a1 = 12; + a11 = 0; + a16 = 7; + return 25; + } else if((((((!(a8==1)&&((a16==10)&&(a11==1)))&&(a11==1))&&(a12==1))||!(a13==1))&&((((a17==2)&&(((a20==1)&&((a21==10)&&((input==4)&&(((a9==11)&&((a5==6)&&(a1==12)))||(((a5==4)&&(a1==13))&&(a9==7))))))&&(a19==5)))&&(a13==1))&&!(a14==1)))){ + a19 = 1; + a28 = 1; + a16 = 7; + a5 = 4; + a1 = 12; + a23 = 1; + a9 = 7; + a7 = 0; + return -1; + } else if((((a16==11)&&(((a5==4)&&((a17==2)&&((a26==1)||((a21==11)&&(!(a11==1)||(!(a23==1)||(a6==1)))))))||!(a11==1)))&&(((((((input==5)&&(a9==8))&&(a2==1))&&!(a8==1))&&(a20==1))&&(a1==12))&&(a19==5)))){ + a9 = 7; + a8 = 0; + a11 = 1; + a27 = 0; + a19 = 1; + a21 = 10; + a16 = 7; + return -1; + } else if((((a13==1)&&(((((a11==1)&&(a16==10))||!(a12==1))||(a27==1))&&(a28==1)))&&(!(a24==1)&&((a17==2)&&(((a19==1)&&((a23==1)&&((a21==10)&&((a1==12)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==4))))))&&!(a20==1)))))){ + if((a11==1)){ + a20 = 1; + a13 = 0; + a9 = 9; + a16 = 9; + a5 = 6; + a3 = 0; + a19 = 3; + }else{ + a5 = 4; + a26 = 1; + a7 = 1; + a14 = 1; + a9 = 9; + a16 = 7; + a1 = 13; + a20 = 1; + } + return 26; + } else if((((a17==2)&&((a16==7)&&((a1==12)&&(((!(a0==1)&&((a12==1)&&((a12==1)&&((!(a20==1)&&(input==4))&&(a12==1)))))&&(a21==10))&&(a9==10)))))&&((a23==1)&&(((a19==4)&&((a11==1)&&(a23==1)))&&(a5==5))))){ + a2 = 1; + a20 = 1; + a19 = 1; + a5 = 4; + a9 = 7; + a6 = 1; + a27 = 0; + return -1; + } else if((((a3==1)&&((a9==9)&&((a6==1)&&((a21==10)&&(((a16==8)&&(((((a5==6)&&(a11==1))&&!(a27==1))||(a27==1))&&(a19==3)))&&(a1==13))))))&&(!(a7==1)&&((((input==3)&&(a17==2))&&(a20==1))&&!(a27==1))))){ + a19 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + a1 = 12; + a3 = 1; + a7 = 0; + return -1; + } else if((((!(a20==1)&&(((a12==1)||!(a12==1))&&(a28==1)))||!(a2==1))&&((a21==12)&&((a23==1)&&(((a17==2)&&((((input==3)&&((((a9==11)&&((a1==14)&&(a5==6)))&&(a19==3))||((a19==4)&&(((a5==4)&&(a1==12))&&(a9==7)))))&&!(a0==1))&&(a16==7)))&&(a6==1)))))){ + a9 = 7; + a3 = 1; + a21 = 10; + a5 = 4; + a20 = 1; + a1 = 12; + a19 = 1; + a13 = 1; + return -1; + } else if(((!(a27==1)&&(((!(a12==1)||(((a20==1)&&((a24==1)||(a6==1)))&&(a21==11)))&&(a6==1))&&(a2==1)))&&((a16==11)&&((a6==1)&&((a19==5)&&(((a1==14)&&((((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10))))&&(input==6)))&&(a17==2))))))){ + a0 = 0; + a21 = 10; + a23 = 1; + a1 = 12; + a9 = 7; + a7 = 0; + a19 = 1; + a16 = 7; + a5 = 4; + return -1; + } else if(((!(a14==1)&&((a12==1)&&((((((a9==11)&&((a5==6)&&(a1==13)))||(((a5==4)&&(a1==14))&&(a9==7)))&&(input==3))&&(a16==9))&&!(a20==1))))&&((a18==1)||((((((a17==2)&&(!(a28==1)||(a28==1)))||(a8==1))&&(a21==12))||!(a2==1))&&(a19==5))))){ + if((a23==1)){ + a21 = 11; + a1 = 13; + a19 = 4; + a0 = 1; + a9 = 7; + a8 = 1; + a16 = 10; + a5 = 6; + a10 = 1; + }else{ + a19 = 1; + a5 = 5; + a20 = 1; + a9 = 10; + a15 = 1; + a18 = 1; + a21 = 10; + a0 = 1; + a16 = 7; + a1 = 12; + } + return 26; + } else if((((((((a21==10)&&((a5==5)&&((a6==1)&&((a9==10)&&((a19==4)&&(input==5))))))&&(a17==2))&&!(a20==1))&&(a1==12))&&(a11==1))&&(((((a14==1)||((a23==1)&&!(a26==1)))||(a0==1))&&(a16==7))&&(a3==1)))){ + a14 = 0; + a19 = 1; + a6 = 1; + a9 = 7; + a5 = 4; + a20 = 1; + a13 = 1; + return -1; + } else if((((!(a8==1)&&(((a23==1)&&((a12==1)&&((a9==8)&&((input==5)&&(a20==1)))))&&(a1==14)))&&(a28==1))&&(((a21==12)&&((a7==1)||((((a17==2)&&((a16==8)&&(a12==1)))&&(a19==2))&&(a5==4))))||(a24==1)))){ + a12 = 1; + a9 = 9; + a28 = 1; + a11 = 1; + a16 = 7; + a1 = 13; + a5 = 5; + a21 = 10; + return 25; + } else if((((a9==8)&&(((a13==1)&&((a6==1)&&(((a12==1)&&((input==3)&&((a5==4)||(a5==5))))&&(a2==1))))&&(a19==4)))&&((a1==14)&&(((a20==1)&&((a16==10)&&((!(a28==1)||((a28==1)&&!(a27==1)))&&(a21==11))))&&(a17==2))))){ + a5 = 5; + a20 = 0; + a9 = 9; + a19 = 5; + a0 = 0; + a3 = 1; + a1 = 13; + a16 = 8; + a21 = 10; + return -1; + } else if(((!(a18==1)&&(((a11==1)&&(a6==1))&&(a21==10)))&&(!(a7==1)&&((a19==2)&&((a9==7)&&((a16==8)&&(!(a4==1)&&(((((!(a18==1)&&((a17==2)&&(input==5)))&&(a28==1))&&!(a20==1))&&(a1==12))&&(a5==4))))))))){ + a6 = 1; + a16 = 7; + a20 = 1; + a19 = 1; + a28 = 1; + a24 = 0; + return -1; + } else if(((((a17==2)&&(((a20==1)&&((((((a13==1)&&(a28==1))&&!(a4==1))&&(a23==1))&&(a21==10))&&(a1==12)))&&!(a26==1)))&&(a5==5))&&((a9==10)&&(!(a0==1)&&((a19==1)&&(((input==1)&&(a16==8))&&!(a14==1))))))){ + a11 = 1; + a5 = 4; + a16 = 7; + a9 = 7; + a23 = 1; + a28 = 1; + return -1; + } else if((((a3==1)&&(a11==1))&&(!(a0==1)&&((a19==4)&&((((((a20==1)&&((a13==1)&&((!(a7==1)&&((((((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8)))&&(input==6))&&(a23==1)))&&(a21==10))))&&(a1==13))&&(a16==11))&&(a17==2))&&!(a4==1)))))){ + a5 = 4; + a16 = 7; + a3 = 1; + a1 = 12; + a11 = 1; + a19 = 1; + a24 = 0; + a9 = 7; + return -1; + } else if((((!(a7==1)&&(a28==1))||(a4==1))&&((((((a12==1)&&((a1==12)&&((a17==2)&&(!(a8==1)&&(((((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&(a20==1))&&(a2==1))&&(a16==8))))))&&(a9==8))&&(a12==1))&&(a19==3))&&(a21==11)))){ + a16 = 7; + a9 = 7; + a21 = 10; + a7 = 0; + a19 = 1; + a27 = 0; + a5 = 4; + return -1; + } else if((((a16==8)&&(((a21==12)&&((((a17==2)&&((a3==1)&&((input==5)&&(a9==7))))&&!(a26==1))&&(a1==13)))&&(a11==1)))&&(((a20==1)&&((a14==1)||((a12==1)&&((a5==4)&&((a2==1)||!(a23==1))))))&&(a19==4)))){ + a7 = 0; + a23 = 1; + a9 = 9; + a18 = 0; + a16 = 10; + a1 = 14; + a19 = 3; + return 25; + } else if(((!(a6==1)||((((a16==10)&&((a12==1)&&((a0==1)||(a13==1))))&&!(a20==1))&&(a19==5)))&&(((a17==2)&&((a3==1)&&(((a21==10)&&((input==1)&&(((((a1==12)&&(a5==6))&&(a9==11))||(((a5==4)&&(a1==13))&&(a9==7)))||((a9==7)&&((a5==5)&&(a1==13))))))&&!(a14==1))))&&!(a27==1)))){ + a7 = 1; + a21 = 12; + a16 = 7; + a19 = 3; + a1 = 13; + a6 = 0; + a5 = 4; + a9 = 7; + a25 = 1; + return -1; + } else if((((a1==13)&&(((a16==9)&&((a6==1)||!(a28==1)))&&!(a4==1)))&&(((a19==1)&&((a20==1)&&((((((a21==10)&&((((a5==4)||(a5==5))&&(input==4))&&!(a27==1)))&&(a13==1))&&(a9==9))&&!(a4==1))&&(a2==1))))&&(a17==2)))){ + a1 = 12; + a24 = 0; + a9 = 7; + a5 = 4; + a3 = 1; + a16 = 7; + return -1; + } else if((((((a9==8)&&(!(a18==1)&&((a20==1)&&((a21==12)&&(!(a12==1)||((a12==1)||!(a3==1)))))))&&(a16==11))&&(a17==2))&&((a19==4)&&((a1==14)&&((a28==1)&&(((a2==1)&&((input==6)&&(a5==6)))&&!(a27==1))))))){ + a5 = 4; + a1 = 12; + a9 = 7; + a21 = 10; + a13 = 1; + a18 = 0; + a16 = 7; + a19 = 1; + a26 = 0; + return -1; + } else if(((!(a23==1)||((a23==1)&&(((a19==2)&&(!(a24==1)&&(!(a26==1)&&(a3==1))))&&(a21==11))))&&(!(a24==1)&&((a12==1)&&(((a16==11)&&((a17==2)&&((((a9==11)&&((a5==6)&&(a1==12)))||(((a1==13)&&(a5==4))&&(a9==7)))&&(input==4))))&&(a20==1)))))){ + a19 = 1; + a1 = 12; + a12 = 1; + a26 = 0; + a27 = 0; + a21 = 10; + a5 = 4; + a9 = 7; + a16 = 7; + return -1; + } else if(((((((((a23==1)&&((a16==9)&&(((((a9==8)&&(input==1))&&(a21==11))&&(a23==1))&&(a17==2))))&&(a5==5))&&(a1==14))&&(a19==2))&&!(a18==1))&&!(a27==1))&&((((a13==1)&&!(a20==1))&&!(a0==1))||(a14==1)))){ + a28 = 0; + a9 = 7; + a19 = 1; + a16 = 7; + a21 = 10; + a22 = 0; + a2 = 0; + a20 = 1; + return -1; + } else if(((((a16==9)&&(((a12==1)&&((a1==12)&&(((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))&&(input==5))))&&!(a20==1)))&&(a19==5))&&((a17==2)&&((a21==10)&&((!(a12==1)||(!(a18==1)&&((!(a23==1)||(a3==1))&&(a2==1))))&&(a11==1)))))){ + a9 = 10; + a16 = 7; + a25 = 0; + a5 = 5; + a13 = 0; + a19 = 2; + a20 = 1; + a23 = 0; + return 21; + } else if((((a28==1)&&(((!(a18==1)&&((((a16==11)&&(((a5==4)&&((a2==1)&&((a17==2)&&(input==1))))&&!(a24==1)))&&!(a4==1))&&(a1==12)))&&(a9==9))&&(a19==4)))&&(!(a13==1)||(((a20==1)&&(a3==1))&&(a21==10))))){ + a11 = 1; + a0 = 0; + a9 = 8; + a1 = 14; + a5 = 6; + a19 = 3; + a21 = 11; + return 21; + } else if(((!(a12==1)||(((a24==1)||((a17==2)&&((((a11==1)&&(a21==11))||!(a6==1))&&!(a26==1))))&&(a16==11)))&&((!(a7==1)&&(!(a18==1)&&((a5==4)&&(((a1==14)&&((a20==1)&&(input==4)))&&(a9==9)))))&&(a19==2)))){ + a16 = 7; + a1 = 12; + a13 = 1; + a9 = 7; + a12 = 1; + a21 = 10; + a19 = 1; + a23 = 1; + return -1; + } else if(((((((!(a20==1)&&(input==6))&&!(a18==1))&&(a5==6))&&(a13==1))&&(a23==1))&&((((a21==10)&&((a17==2)&&((a1==14)&&((a19==2)&&((a9==11)&&((!(a8==1)&&(a6==1))&&!(a4==1)))))))&&(a16==10))&&!(a8==1)))){ + a10 = 0; + a9 = 8; + a2 = 0; + a19 = 1; + a22 = 0; + a16 = 7; + a1 = 12; + a5 = 5; + a20 = 1; + return -1; + } else if((((a12==1)&&(!(a24==1)&&((a16==7)&&(!(a23==1)||((a2==1)&&((a1==13)&&((a6==1)&&(a19==3))))))))&&((a21==12)&&((a17==2)&&(!(a20==1)&&((((input==4)&&(((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))))&&!(a7==1))&&(a23==1))))))){ + a1 = 12; + a7 = 0; + a19 = 1; + a24 = 0; + a5 = 4; + a9 = 7; + a20 = 1; + a13 = 1; + a21 = 10; + return -1; + } else if((((a16==8)&&((((a17==2)&&((a3==1)&&(!(a4==1)&&((a21==10)&&(((a5==4)||(a5==5))&&(input==5))))))&&(a13==1))&&(a9==7)))&&((((!(a20==1)&&(((a3==1)&&(a19==3))||(a27==1)))&&(a1==14))&&(a12==1))&&(a6==1)))){ + a23 = 1; + a5 = 4; + a16 = 9; + a7 = 0; + a9 = 10; + a19 = 1; + a12 = 1; + a20 = 1; + return 23; + } else if((((a20==1)&&(((!(a6==1)||((a6==1)&&(a12==1)))||(a0==1))&&(a17==2)))&&((a21==10)&&((a1==12)&&((a16==8)&&((a19==2)&&((((a3==1)&&((input==3)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))))&&(a2==1))&&(a13==1)))))))){ + a19 = 1; + a16 = 7; + a3 = 1; + a13 = 1; + a9 = 7; + a7 = 0; + a5 = 4; + return -1; + } else if(((!(a4==1)&&(((a16==9)&&(!(a20==1)&&(((a21==12)&&(a3==1))&&(a1==14))))&&(a2==1)))&&(((a3==1)&&((a13==1)&&((a23==1)&&((a17==2)&&((a19==2)&&((a9==10)&&((input==6)&&((a5==4)||(a5==5)))))))))&&(a13==1)))){ + a5 = 4; + a20 = 1; + a9 = 8; + a19 = 4; + a27 = 1; + a16 = 8; + a3 = 0; + a21 = 10; + a1 = 12; + a15 = 1; + return -1; + } else if((((a5==5)&&(((a11==1)&&(((a21==10)&&(!(a26==1)&&(a13==1)))&&!(a20==1)))&&(a17==2)))&&(((a1==14)&&(((!(a0==1)&&((((a19==5)&&(input==4))&&(a16==10))&&!(a7==1)))&&!(a4==1))&&!(a27==1)))&&(a9==8)))){ + a20 = 1; + a19 = 1; + a13 = 0; + a1 = 13; + a22 = 0; + a16 = 7; + a29 = 1; + a5 = 4; + return -1; + } else if(((((a1==14)&&(((((input==4)&&(a19==4))&&(a16==11))&&(a2==1))&&(a17==2)))&&(a5==4))&&((a20==1)&&((a9==8)&&(!(a12==1)||((a7==1)||(((a23==1)&&(((a2==1)&&(a28==1))||!(a13==1)))&&(a21==12)))))))){ + a16 = 8; + a28 = 1; + a9 = 9; + a7 = 0; + a1 = 12; + a21 = 10; + a23 = 1; + a19 = 5; + return 22; + } else if((((a1==12)&&((a20==1)&&(((a21==10)&&((!(a0==1)&&((((a19==1)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6))))&&(a17==2))&&!(a18==1)))&&!(a26==1)))&&(a16==11))))&&((a9==9)&&((((a23==1)||!(a11==1))||!(a6==1))&&(a11==1))))){ + a3 = 1; + a28 = 1; + a5 = 4; + a16 = 7; + a9 = 7; + return -1; + } else if((((a19==5)&&(((a1==13)&&(((a27==1)||(a11==1))&&!(a8==1)))&&(a21==11)))&&(((a16==11)&&(((((((((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(input==6))&&!(a4==1))&&!(a26==1))&&(a23==1))&&!(a27==1))&&(a20==1)))&&(a17==2)))){ + a19 = 1; + a3 = 1; + a1 = 12; + a16 = 7; + a13 = 1; + a5 = 4; + a9 = 7; + a2 = 1; + a21 = 10; + return -1; + } else if(((((a12==1)&&(!(a18==1)&&(((a16==9)&&((a21==10)&&(a11==1)))&&(a1==13))))||!(a28==1))&&((a9==8)&&(((a2==1)&&(((a19==4)&&(((a20==1)&&(((a5==5)||(a5==6))&&(input==5)))&&(a17==2)))&&(a23==1)))&&!(a27==1))))){ + a9 = 10; + a5 = 6; + a28 = 1; + a16 = 10; + a1 = 12; + a19 = 1; + a2 = 1; + return 21; + } else if((((a11==1)&&((a20==1)&&((!(a26==1)&&(((((input==1)&&(a5==5))&&(a16==7))&&(a6==1))&&(a1==13)))&&!(a14==1))))&&((a9==9)&&(!(a7==1)&&(((((a19==4)&&(a3==1))&&(a17==2))||(a14==1))&&(a21==11)))))){ + if((a14==1)){ + a9 = 10; + a5 = 6; + a21 = 10; + a23 = 1; + a16 = 8; + a20 = 0; + a19 = 2; + a12 = 1; + }else{ + a16 = 8; + a1 = 12; + a11 = 1; + a13 = 1; + a14 = 0; + } + return 23; + } else if((((a20==1)&&(((a17==2)&&((a19==5)&&(!(a8==1)&&(((input==5)&&(((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))))&&(a12==1)))))&&(a21==11)))&&((a24==1)||(!(a27==1)&&((((a26==1)||((a28==1)&&(a16==11)))&&(a13==1))&&(a1==14)))))){ + a9 = 7; + a26 = 0; + a21 = 10; + a11 = 1; + a16 = 7; + a5 = 4; + a19 = 1; + a1 = 12; + a4 = 0; + return -1; + } else if((((a0==1)&&((a19==4)&&(((a21==12)&&(((!(a2==1)&&(((a5==4)||(a5==5))&&(input==5)))&&(a17==2))&&!(a23==1)))&&!(a3==1))))&&(((a16==7)&&((a9==11)&&((a8==1)&&(((a6==1)&&!(a28==1))&&(a1==13)))))&&!(a20==1)))){ + a20 = 1; + a21 = 11; + a9 = 7; + a5 = 5; + a11 = 0; + a2 = 0; + a16 = 8; + a18 = 1; + return -1; + } else if((((((a12==1)&&(!(a0==1)&&(((input==1)&&(a17==2))&&(a6==1))))&&!(a27==1))&&(a5==4))&&((a16==7)&&(((!(a26==1)&&((a1==12)&&((a9==10)&&((a21==11)&&((a6==1)||(a18==1))))))&&(a19==3))&&(a20==1))))){ + a7 = 0; + a9 = 7; + a6 = 1; + a13 = 1; + a21 = 10; + a19 = 1; + return -1; + } else if((((a9==7)&&((a11==1)&&((a19==4)&&((a5==5)&&((input==3)&&(a17==2))))))&&(((a1==13)&&(!(a11==1)||(((!(a6==1)||((!(a4==1)&&((a6==1)&&(a20==1)))&&(a16==8)))&&!(a27==1))&&!(a8==1))))&&(a21==11)))){ + a16 = 7; + a21 = 10; + a1 = 12; + a26 = 0; + a11 = 1; + a8 = 0; + a5 = 4; + a19 = 1; + return -1; + } else if((((a13==1)&&((((((((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==4))&&(a21==11))&&(a3==1))&&(a16==11))&&(a20==1))&&(a2==1))&&(a19==5)))&&((a11==1)&&((a17==2)&&((((a12==1)||(a14==1))&&(a1==14))||(a0==1)))))){ + a20 = 0; + a16 = 7; + a2 = 1; + a13 = 1; + a1 = 13; + a14 = 0; + a19 = 2; + a5 = 5; + a9 = 8; + a21 = 12; + return 25; + } else if(((((a21==10)&&((((((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a5==6)&&(a9==10))))&&(input==1))&&(a3==1))&&(a1==12)))&&(a20==1))&&((a17==2)&&(((!(a4==1)&&(!(a7==1)&&((a7==1)||(!(a26==1)&&((a3==1)||(a18==1))))))&&(a19==3))&&(a16==11))))){ + a5 = 6; + a13 = 1; + a19 = 1; + a9 = 8; + a21 = 12; + a16 = 8; + a8 = 0; + a23 = 1; + a1 = 14; + return 21; + } else if(((((((a19==4)&&(((a23==1)&&(a9==11))&&(a21==12)))&&!(a7==1))&&(a17==2))&&(a16==9))&&((a28==1)&&(!(a20==1)&&((((((a1==14)&&(((a5==4)||(a5==5))&&(input==6)))&&!(a14==1))&&!(a4==1))&&(a3==1))&&!(a8==1)))))){ + if((a8==1)){ + a5 = 6; + a14 = 1; + a16 = 10; + a21 = 11; + a8 = 1; + a19 = 1; + a1 = 13; + }else{ + a5 = 6; + a21 = 10; + a20 = 1; + a4 = 1; + a25 = 0; + a1 = 13; + a16 = 7; + a19 = 1; + } + return 25; + } else if(((((a17==2)&&((a3==1)&&(!(a28==1)||(!(a11==1)||(((a13==1)&&(a1==13))||(a18==1))))))&&(a21==10))&&((a2==1)&&((((((a16==11)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4)))&&(a9==10))&&(a20==1))&&(a19==4))&&!(a18==1))))){ + a9 = 7; + a26 = 0; + a5 = 4; + a16 = 7; + a19 = 1; + a14 = 0; + a1 = 12; + a0 = 0; + return -1; + } else if((((!(a20==1)&&(((((a28==1)&&((((a12==1)&&(a19==4))||(a8==1))||(a0==1)))&&!(a14==1))&&!(a7==1))&&(a21==11)))&&(a17==2))&&((((input==3)&&((((a5==5)&&(a1==13))&&(a9==7))||((((a5==6)&&(a1==12))&&(a9==11))||((a9==7)&&((a1==13)&&(a5==4))))))&&(a23==1))&&(a16==10)))){ + if((a28==1)){ + a13 = 0; + a24 = 1; + a5 = 5; + a19 = 3; + a1 = 13; + a16 = 8; + a21 = 10; + a9 = 10; + a15 = 1; + }else{ + a19 = 1; + a20 = 1; + a15 = 1; + a23 = 0; + a1 = 12; + a2 = 0; + a9 = 9; + a16 = 7; + a5 = 5; + a21 = 10; + } + return -1; + } else if((((a21==10)&&((a19==2)&&(((a26==1)||(!(a23==1)||(((a2==1)&&(a17==2))&&(a20==1))))&&(a16==11))))&&(!(a14==1)&&((a13==1)&&((((((input==6)&&((a5==4)||(a5==5)))&&!(a26==1))&&(a9==8))&&(a13==1))&&(a1==13)))))){ + a23 = 1; + a20 = 0; + a21 = 11; + a13 = 1; + a9 = 11; + a19 = 1; + a16 = 8; + a5 = 6; + a8 = 0; + a1 = 14; + return 26; + } else if((((a20==1)&&((a19==2)&&(((!(a26==1)&&((input==6)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))))&&(a21==10))&&(a23==1))))&&((a16==10)&&((a1==14)&&((((a26==1)||(!(a24==1)&&((a17==2)&&(a28==1))))||(a4==1))||!(a28==1)))))){ + a9 = 7; + a5 = 6; + a23 = 1; + a19 = 5; + a16 = 11; + a3 = 1; + a12 = 1; + return 25; + } else if((((((((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==1))&&!(a26==1))&&(a17==2))&&(a28==1))&&(a1==14))&&(((a19==1)&&(((!(a24==1)&&(!(a8==1)&&(((a3==1)&&!(a20==1))&&(a16==10))))&&(a21==12))&&!(a4==1)))||(a14==1)))){ + a9 = 7; + a1 = 12; + a20 = 1; + a19 = 2; + a16 = 7; + a25 = 1; + a24 = 1; + a21 = 10; + a5 = 4; + return -1; + } else if(((((a3==1)&&(a20==1))||(a27==1))&&(((a16==7)&&((a1==13)&&(((a19==4)&&(((a13==1)&&(((a13==1)&&(!(a8==1)&&(((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))&&(input==3))))&&!(a24==1)))&&!(a0==1)))&&(a17==2))))&&(a21==10)))){ + a24 = 0; + a9 = 7; + a19 = 1; + a7 = 0; + a5 = 4; + a1 = 12; + a12 = 1; + return -1; + } else if((((((((!(a28==1)&&(((a19==3)&&(!(a11==1)&&(a12==1)))&&!(a11==1)))&&(a7==1))&&!(a23==1))&&(a18==1))&&(a1==12))&&!(a20==1))&&((((a21==11)&&((a9==10)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a17==2))&&(a16==7)))){ + a19 = 1; + a21 = 10; + a0 = 1; + a29 = 0; + a5 = 4; + a9 = 9; + a8 = 1; + a20 = 1; + return -1; + } else if((((((!(a27==1)&&(((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&(a16==10)))&&!(a14==1))&&(a9==9))&&!(a4==1))&&(!(a28==1)||((!(a20==1)&&((a19==4)&&(((((a3==1)&&(a21==12))&&(a13==1))&&(a1==13))&&(a17==2))))&&!(a26==1))))){ + if((a0==1)){ + a5 = 6; + a20 = 1; + a24 = 1; + a19 = 2; + a21 = 10; + a12 = 0; + a1 = 12; + a9 = 8; + a10 = 0; + a16 = 7; + }else{ + a21 = 11; + a5 = 4; + a9 = 10; + a19 = 5; + a3 = 0; + a15 = 1; + } + return 26; + } else if((((a21==12)&&((a20==1)&&(((a28==1)&&(((a1==12)&&((!(a27==1)&&(((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8)))&&(input==5)))&&(a17==2)))&&!(a14==1)))&&!(a4==1))))&&(((a13==1)&&((!(a13==1)||(a28==1))&&(a19==4)))&&(a16==8)))){ + a9 = 7; + a5 = 4; + a19 = 1; + a2 = 1; + a26 = 0; + a28 = 1; + a21 = 10; + a16 = 7; + return -1; + } else if(((((((a16==10)&&((a13==1)&&(a17==2)))||!(a3==1))&&!(a18==1))&&!(a8==1))&&((!(a4==1)&&(!(a20==1)&&(((a19==4)&&((a21==10)&&(((input==6)&&(((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))))&&(a1==14))))&&(a23==1))))&&(a11==1)))){ + a9 = 10; + a1 = 12; + a20 = 1; + a16 = 7; + a26 = 1; + a5 = 6; + a29 = 0; + a19 = 2; + return -1; + } else if((((a16==9)&&(((a17==2)&&((a21==11)&&((((a23==1)&&(!(a8==1)&&(((a5==4)||(a5==5))&&(input==5))))&&(a19==5))&&(a9==8))))&&(a23==1)))&&((!(a18==1)&&(!(a18==1)&&(((a24==1)||(a12==1))&&(a1==14))))&&!(a20==1)))){ + a16 = 7; + a9 = 9; + a1 = 12; + a25 = 1; + a20 = 1; + a27 = 1; + a5 = 6; + a11 = 0; + a19 = 1; + a21 = 10; + return 21; + } else if(((((((a20==1)&&((a21==10)&&(((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8)))&&(input==5))))&&(a3==1))&&(a17==2))&&!(a7==1))&&(((a16==7)&&(((a19==5)&&(!(a12==1)||(!(a2==1)||((a28==1)&&(a1==14)))))||!(a6==1)))||(a24==1)))){ + a7 = 0; + a9 = 9; + a19 = 4; + a8 = 0; + a21 = 12; + a6 = 1; + a1 = 13; + a5 = 6; + return 25; + } else if((((a9==10)&&((((a21==10)&&((a17==2)&&((a16==8)&&(!(a20==1)&&(input==3)))))&&(a19==3))&&!(a8==1)))&&((((a12==1)&&(((a14==1)||((a13==1)&&((a11==1)&&(a6==1))))&&(a1==14)))||!(a12==1))&&(a5==6)))){ + a9 = 7; + a1 = 12; + a2 = 1; + a5 = 4; + a11 = 1; + a20 = 1; + a19 = 1; + a16 = 7; + return -1; + } else if((((a17==2)&&((((a16==10)&&(a23==1))||!(a6==1))||!(a11==1)))&&((a19==4)&&((a21==12)&&((a20==1)&&(!(a27==1)&&(((((a28==1)&&((((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&(input==4)))&&!(a8==1))&&(a13==1))&&(a1==14)))))))){ + a16 = 7; + a9 = 7; + a21 = 10; + a28 = 1; + a5 = 4; + a4 = 0; + a1 = 12; + a19 = 1; + return -1; + } else if((((((a9==8)&&(input==6))&&(a17==2))&&(a16==9))&&((a21==12)&&((((a19==5)&&((((((!(a28==1)||((a13==1)||(a18==1)))&&!(a18==1))&&(a1==14))||!(a13==1))&&(a13==1))||!(a11==1)))&&(a20==1))&&(a5==6))))){ + a28 = 1; + a9 = 7; + a14 = 0; + a21 = 10; + a16 = 11; + a5 = 5; + a0 = 0; + a19 = 4; + return 25; + } else if((((((a23==1)&&((a21==11)&&((((a9==7)&&((a1==13)&&(a5==5)))||(((a9==11)&&((a5==6)&&(a1==12)))||((a9==7)&&((a5==4)&&(a1==13)))))&&(input==3))))&&!(a18==1))&&(a12==1))&&(((((a17==2)&&((((a16==7)&&(a23==1))&&(a20==1))&&(a19==2)))||(a27==1))&&(a13==1))||!(a6==1)))){ + a5 = 4; + a27 = 0; + a19 = 1; + a21 = 10; + a9 = 7; + a7 = 0; + a8 = 0; + a1 = 12; + return -1; + } else if((((!(a27==1)&&(((a1==13)&&((a9==10)&&((a16==8)&&(((a5==5)||(a5==6))&&(input==6)))))&&(a11==1)))&&(a21==10))&&(!(a14==1)&&(((!(a0==1)&&((((a19==1)&&(a11==1))||!(a3==1))||(a27==1)))&&(a17==2))&&(a20==1))))){ + a14 = 0; + a21 = 12; + a5 = 5; + a16 = 9; + a6 = 1; + a9 = 9; + a19 = 2; + return 26; + } else if(((((a21==12)&&((a1==14)&&((!(a8==1)&&((a20==1)&&(((((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))&&(input==4))&&(a3==1))))&&(a3==1))))&&(a17==2))&&((a19==2)&&(((a8==1)||((a16==8)&&((a11==1)||!(a28==1))))||!(a23==1))))){ + a6 = 1; + a9 = 7; + a5 = 4; + a16 = 7; + a3 = 1; + a21 = 10; + a26 = 0; + a1 = 12; + a19 = 1; + return -1; + } else if(((!(a26==1)&&(((a11==1)&&((a28==1)&&((input==6)&&(((((a1==12)&&(a5==6))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==13))))||((a9==7)&&((a1==13)&&(a5==5)))))))&&(a3==1)))&&(((a16==7)&&((!(a7==1)&&((((a17==2)&&(a12==1))&&(a2==1))&&(a19==3)))&&(a21==11)))&&!(a20==1)))){ + a20 = 1; + a5 = 4; + a21 = 10; + a19 = 1; + a9 = 7; + a8 = 0; + a27 = 0; + a1 = 12; + a0 = 0; + return -1; + } else if(((((a20==1)&&(!(a8==1)&&((a12==1)&&((a16==11)&&((a17==2)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==4)))))))&&!(a26==1))&&((((a21==12)&&((((a12==1)&&(a2==1))&&(a1==14))&&!(a18==1)))&&(a19==2))&&(a12==1)))){ + a21 = 10; + a6 = 1; + a18 = 0; + a16 = 7; + a3 = 1; + a9 = 7; + a1 = 12; + a19 = 1; + a5 = 4; + return -1; + } else if((((a9==9)&&((a1==12)&&((!(a18==1)&&((a16==11)&&((!(a18==1)&&(a28==1))||(a7==1))))&&(a17==2))))&&((a19==1)&&(((!(a14==1)&&((a20==1)&&(!(a24==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3)))))&&(a21==10))&&!(a0==1))))){ + a26 = 0; + a5 = 4; + a16 = 7; + a6 = 1; + a23 = 1; + a9 = 7; + return -1; + } else if((((a16==9)&&(((a21==12)&&((((a8==1)||(!(a24==1)&&(((a12==1)&&(a19==1))&&(a12==1))))&&(a17==2))&&(a9==8)))&&(a1==14)))&&((a20==1)&&((!(a8==1)&&((a3==1)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a11==1))))){ + a1 = 12; + a24 = 0; + a21 = 10; + a5 = 4; + a9 = 7; + a8 = 0; + a16 = 7; + a7 = 0; + return -1; + } else if((((a1==12)&&(!(a2==1)||(((((a11==1)&&((a9==10)&&(a28==1)))&&(a21==10))&&(a6==1))&&(a28==1))))&&((((a19==1)&&(((!(a27==1)&&((input==4)&&(a16==11)))&&(a17==2))&&!(a20==1)))&&!(a27==1))&&(a5==6)))){ + a21 = 12; + a4 = 1; + a1 = 14; + a6 = 0; + a16 = 8; + a5 = 5; + a25 = 1; + a20 = 1; + a9 = 8; + return 21; + } else if((((a9==9)&&((a20==1)&&((a16==10)&&((a21==10)&&(!(a27==1)&&((((!(a14==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a26==1))&&(a19==5))&&!(a7==1)))))))&&(((((a12==1)||(a14==1))&&(a13==1))&&(a1==12))&&(a17==2)))){ + a1 = 13; + a7 = 0; + a4 = 0; + a19 = 4; + a28 = 1; + a21 = 12; + a5 = 4; + a16 = 9; + return 22; + } else if(((((a17==2)&&((a28==1)&&((((((input==5)&&(a9==9))&&(a21==10))&&!(a0==1))&&!(a14==1))&&(a19==3))))&&(a1==12))&&((a5==5)&&(!(a11==1)||(!(a28==1)||((((a24==1)||(a11==1))&&(a16==7))&&!(a20==1))))))){ + a27 = 0; + a5 = 6; + a20 = 1; + a2 = 1; + a9 = 7; + a19 = 4; + a16 = 11; + a4 = 0; + return 21; + } else if((((!(a7==1)&&(((a19==5)&&((a21==10)&&((!(a0==1)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6))))&&(a11==1))))&&(a3==1)))&&(a12==1))&&((a17==2)&&((((a20==1)&&(((a9==8)&&(a3==1))&&!(a24==1)))&&(a16==11))&&(a1==12))))){ + a9 = 7; + a2 = 1; + a19 = 1; + a3 = 1; + a5 = 4; + a28 = 1; + a16 = 7; + return -1; + } else if((((a12==1)&&((a4==1)||((((((a12==1)&&(a21==12))&&(a16==7))&&(a17==2))&&(a1==14))&&(a23==1))))&&((a20==1)&&((a19==5)&&((a2==1)&&((a5==5)&&(!(a18==1)&&(!(a26==1)&&((input==1)&&(a9==9)))))))))){ + a5 = 4; + a19 = 1; + a9 = 8; + a13 = 1; + a1 = 13; + a26 = 0; + a16 = 9; + a4 = 0; + return 21; + } else if((((a5==6)&&((((a1==12)&&((input==1)&&(a9==11)))&&(a11==1))&&!(a18==1)))&&((a27==1)||(!(a14==1)&&((a17==2)&&(((a16==9)&&(((((a11==1)&&(a13==1))||!(a12==1))&&(a19==4))&&(a21==12)))&&(a20==1))))))){ + a4 = 0; + a14 = 0; + a21 = 10; + a5 = 4; + a1 = 14; + a9 = 10; + a19 = 2; + return 21; + } else if(((((a12==1)&&((a16==9)&&(((a28==1)&&((a6==1)&&((a21==12)&&((((((a1==12)&&(a5==6))&&(a9==11))||(((a5==4)&&(a1==13))&&(a9==7)))||(((a5==5)&&(a1==13))&&(a9==7)))&&(input==3)))))&&(a19==5))))&&!(a0==1))&&(!(a20==1)&&(!(a2==1)||((a17==2)&&((a2==1)&&(a23==1))))))){ + if((a23==1)){ + a19 = 3; + a8 = 1; + a9 = 9; + a1 = 14; + a10 = 1; + a24 = 1; + a21 = 11; + a5 = 5; + a16 = 7; + }else{ + a19 = 1; + a3 = 0; + a1 = 12; + a11 = 0; + a5 = 4; + a21 = 11; + a20 = 1; + a9 = 8; + a18 = 1; + } + return 21; + } else if((((a16==11)&&((((a4==1)||(!(a18==1)&&(((a17==2)&&(a3==1))&&!(a27==1))))&&(a13==1))||!(a3==1)))&&((a1==14)&&(((a20==1)&&((((input==5)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&(a11==1))&&(a21==10)))&&(a19==5))))){ + a23 = 1; + a21 = 11; + a1 = 12; + a28 = 1; + a5 = 6; + a9 = 9; + a4 = 0; + return 25; + } else if((((a20==1)&&((a21==10)&&(((!(a6==1)&&(a6==1))&&!(a23==1))&&!(a3==1))))&&((a1==14)&&(((((a17==2)&&(((a18==1)&&((a4==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1))))&&!(a6==1)))&&(a19==1))&&(a9==8))&&(a16==10))))){ + a13 = 0; + a1 = 12; + a16 = 7; + a9 = 7; + a19 = 2; + a10 = 0; + a22 = 1; + a5 = 5; + return -1; + } else if(((((!(a3==1)||(((a6==1)&&(a19==4))||!(a13==1)))&&(a17==2))&&(a16==8))&&(!(a20==1)&&(((a13==1)&&((a3==1)&&((((a1==14)&&((((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(input==5)))&&!(a14==1))&&(a2==1))))&&(a21==12))))){ + a21 = 10; + a20 = 1; + a5 = 4; + a16 = 7; + a12 = 0; + a29 = 0; + a9 = 8; + a1 = 13; + a19 = 5; + a11 = 0; + return 25; + } else if((((a19==2)&&(((a2==1)&&(((a16==9)&&((!(a24==1)&&((input==4)&&((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a5==4)&&(a9==8)))))&&(a21==11)))&&!(a0==1)))&&!(a7==1)))&&(((((a1==14)&&(!(a20==1)&&(a28==1)))&&(a12==1))&&(a17==2))||(a26==1)))){ + a9 = 11; + a16 = 7; + a20 = 1; + a19 = 1; + a21 = 10; + a11 = 0; + a5 = 4; + a25 = 1; + return 26; + } else if((((a12==1)&&((a1==14)&&((a19==5)&&(((a2==1)&&(a16==11))&&!(a27==1)))))&&((a28==1)&&((a20==1)&&((a28==1)&&((a9==7)&&((!(a24==1)&&((!(a27==1)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))&&(a17==2)))&&(a21==12)))))))){ + a18 = 0; + a1 = 12; + a5 = 4; + a16 = 7; + a19 = 1; + a6 = 1; + a21 = 10; + return -1; + } else if(((!(a20==1)&&(!(a2==1)||((a17==2)&&((a1==13)&&((a24==1)||((a21==12)&&((a11==1)||!(a28==1))))))))&&(((a19==1)&&((a5==6)&&(((a13==1)&&(((a16==10)&&(input==6))&&(a12==1)))&&(a13==1))))&&(a9==7)))){ + a22 = 1; + a16 = 8; + a21 = 11; + a19 = 5; + a6 = 0; + a11 = 0; + a9 = 11; + a1 = 12; + return -1; + } else if((((a9==7)&&(((a19==3)&&(((a5==5)&&(!(a14==1)&&((a7==1)||(((a24==1)||((a20==1)&&(a3==1)))||!(a13==1)))))&&(a21==10)))&&(a16==11)))&&(((a17==2)&&(((input==1)&&(a1==14))&&(a28==1)))&&!(a8==1)))){ + a19 = 1; + a16 = 7; + a26 = 0; + a1 = 12; + a28 = 1; + a5 = 4; + a11 = 1; + return -1; + } else if((((((((a21==10)&&((((a20==1)&&(a28==1))&&(a1==13))&&!(a14==1)))&&(a19==1))&&!(a4==1))&&(a16==8))||(a4==1))&&(!(a27==1)&&((a9==11)&&(((a17==2)&&((a12==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3))))&&(a11==1)))))){ + a5 = 4; + a14 = 0; + a16 = 7; + a1 = 12; + a13 = 1; + a9 = 7; + return -1; + } else if(((((!(a20==1)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==1)))&&(a1==13))&&(a17==2))&&((((a0==1)||((!(a27==1)&&(!(a8==1)&&((((a16==7)&&(a2==1))&&(a19==5))&&!(a26==1))))&&(a21==10)))&&!(a0==1))||(a8==1)))){ + a12 = 1; + a28 = 1; + a18 = 0; + a20 = 1; + a5 = 6; + a9 = 8; + a19 = 1; + return -1; + } else if((((a26==1)&&((a21==10)&&(((((a1==13)&&(((a26==1)&&(!(a2==1)&&(a28==1)))&&(a8==1)))&&(a4==1))&&(a5==5))&&(a16==9))))&&((a20==1)&&(((a17==2)&&((a24==1)&&((input==3)&&(a9==10))))&&(a19==2))))){ + a16 = 11; + a21 = 11; + a3 = 0; + a14 = 1; + a1 = 14; + a6 = 0; + a5 = 6; + a19 = 4; + a9 = 8; + return 25; + } else if((((a20==1)&&(((((((a1==13)&&(((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8)))&&(input==1)))&&(a2==1))&&(a23==1))&&(a3==1))&&(a13==1))&&(a19==3)))&&(((a21==11)&&(((a17==2)&&((a12==1)||(a18==1)))&&!(a24==1)))&&(a16==7)))){ + a2 = 1; + a16 = 8; + a21 = 10; + a19 = 5; + a1 = 14; + a9 = 8; + a5 = 5; + a12 = 1; + return 22; + } else if((((a21==10)&&(((((a0==1)||(((a16==7)&&((a17==2)&&(a3==1)))&&(a1==12)))||!(a12==1))||!(a13==1))&&(a11==1)))&&(!(a20==1)&&(!(a4==1)&&((a19==3)&&(((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(input==1))&&(a12==1))))))){ + a16 = 9; + a0 = 0; + a7 = 0; + a21 = 12; + a5 = 4; + a26 = 0; + a9 = 9; + a20 = 1; + return 21; + } else if(((((a16==8)&&((((a1==13)&&((a5==4)&&((!(a8==1)&&(!(a0==1)&&((input==3)&&!(a20==1))))&&!(a26==1))))&&(a19==4))&&(a17==2)))&&(a9==7))&&((!(a4==1)&&(((a23==1)&&(a21==10))&&!(a14==1)))||(a7==1)))){ + a1 = 12; + a27 = 0; + a20 = 1; + a7 = 0; + a24 = 0; + a16 = 7; + a19 = 1; + return -1; + } else if(((!(a27==1)&&((a16==7)&&((!(a26==1)&&(((a13==1)&&(a12==1))&&!(a20==1)))&&(a19==5))))&&(((a1==14)&&((a9==9)&&(((a17==2)&&((!(a7==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))&&(a21==12)))&&(a12==1))))&&(a11==1)))){ + a1 = 13; + a19 = 2; + a5 = 4; + a0 = 0; + a21 = 10; + a20 = 1; + a8 = 0; + return 25; + } else if((((a11==1)&&((!(a13==1)||((a3==1)||!(a23==1)))&&(a16==9)))&&(!(a20==1)&&((a19==2)&&(!(a7==1)&&((a2==1)&&((a6==1)&&(((a17==2)&&((a21==12)&&((((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7))))&&(input==3))))&&(a1==14))))))))){ + a16 = 7; + a11 = 0; + a5 = 5; + a25 = 0; + a21 = 10; + a26 = 1; + a19 = 1; + a20 = 1; + a9 = 10; + return -1; + } else if(((((a21==12)&&((a19==4)&&(((a17==2)&&((a13==1)&&((input==4)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9))))))&&(a1==12))))&&!(a0==1))&&((((a27==1)||((a20==1)&&(((a16==11)&&(a2==1))||(a14==1))))||!(a12==1))&&(a11==1)))){ + a16 = 7; + a19 = 1; + a24 = 0; + a9 = 7; + a21 = 10; + a13 = 1; + a5 = 4; + a0 = 0; + return -1; + } else if((((a1==14)&&((a20==1)&&((a14==1)&&(((a27==1)&&(a11==1))&&(a16==7)))))&&(((!(a3==1)&&((a21==10)&&((a19==4)&&((((input==1)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&!(a3==1))&&(a18==1)))))&&!(a11==1))&&(a17==2)))){ + a5 = 5; + a22 = 1; + a9 = 9; + a19 = 2; + a28 = 0; + a14 = 1; + a1 = 12; + return -1; + } else if(((((((a20==1)&&(a28==1))&&!(a23==1))&&(a19==5))&&(a24==1))&&((a17==2)&&(!(a13==1)&&((a1==13)&&(!(a3==1)&&((!(a13==1)&&((a21==12)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a8==1))&&(a16==9))))&&(a9==10)))))))){ + a21 = 10; + a9 = 11; + a1 = 12; + a16 = 7; + a18 = 1; + a11 = 0; + a19 = 2; + a5 = 5; + return -1; + } else if(((((a17==2)&&((a19==1)&&(!(a3==1)&&((((a21==11)&&(((input==3)&&(a16==9))&&(a7==1)))&&!(a3==1))&&(a20==1)))))&&(a5==4))&&((a9==7)&&((a1==12)&&((((a2==1)&&!(a3==1))&&!(a28==1))&&(a7==1)))))){ + a21 = 10; + a8 = 1; + a9 = 11; + a28 = 0; + a3 = 0; + a16 = 7; + a1 = 14; + return -1; + } else if((((a1==14)&&(((a21==12)&&((a9==9)&&(!(a23==1)||(a3==1))))||!(a12==1)))&&((((a16==8)&&(((!(a18==1)&&((a23==1)&&(!(a27==1)&&(((a5==4)||(a5==5))&&(input==3)))))&&(a3==1))&&!(a20==1)))&&(a17==2))&&(a19==4)))){ + if((a12==1)){ + a21 = 11; + a11 = 0; + a5 = 4; + a15 = 1; + a14 = 1; + a20 = 1; + a9 = 8; + a1 = 12; + a16 = 9; + }else{ + a14 = 1; + a21 = 10; + a2 = 0; + a1 = 12; + a5 = 5; + a16 = 11; + a22 = 0; + } + return -1; + } else if(((!(a28==1)||(((a23==1)&&((a17==2)&&((((((a12==1)&&(a13==1))&&(a16==11))&&(a3==1))&&(a21==12))&&(a20==1))))&&(a1==12)))&&(((a19==5)&&((a3==1)&&((((a5==4)||(a5==5))&&(input==6))&&(a11==1))))&&(a9==7)))){ + a26 = 0; + a21 = 10; + a19 = 1; + a24 = 0; + a5 = 4; + a16 = 7; + a3 = 1; + return -1; + } else if(((((((a12==1)&&((a17==2)&&((a11==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a19==4)))))&&!(a14==1))&&(a21==10))&&(a1==14))&&(((a16==9)&&((((a2==1)&&((a11==1)||!(a3==1)))||!(a11==1))&&(a20==1)))&&(a9==7)))){ + a23 = 1; + a26 = 0; + a1 = 12; + a27 = 0; + a9 = 10; + a5 = 4; + a19 = 5; + a16 = 8; + return 25; + } else if((((a21==10)&&((a20==1)&&((a13==1)&&((a28==1)&&(a16==11)))))&&(((a17==2)&&((a19==3)&&((!(a0==1)&&((a13==1)&&((a3==1)&&((a1==14)&&((input==4)&&(((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))))))))&&!(a18==1))))&&!(a24==1)))){ + a9 = 7; + a3 = 1; + a16 = 7; + a5 = 4; + a19 = 1; + a12 = 1; + a1 = 12; + a2 = 1; + return -1; + } else if((((a19==1)&&(((!(a18==1)&&(!(a14==1)&&(a23==1)))&&(a16==8))&&(a21==11)))&&(((!(a27==1)&&((((((input==4)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&(a17==2))&&!(a20==1))&&(a1==12))&&!(a18==1)))&&(a13==1))&&!(a18==1)))){ + a5 = 4; + a9 = 7; + a8 = 0; + a20 = 1; + a27 = 0; + a21 = 10; + a16 = 7; + return -1; + } else if((((((((input==6)&&((((a9==11)&&((a1==14)&&(a5==6)))&&(a19==4))||(((a9==7)&&((a1==12)&&(a5==4)))&&(a19==5))))&&!(a14==1))&&!(a4==1))&&!(a20==1))&&(a16==9))&&((a21==11)&&((((((a2==1)||(a18==1))||!(a13==1))||!(a13==1))&&(a17==2))||!(a11==1))))){ + a16 = 7; + a12 = 0; + a8 = 1; + a9 = 7; + a19 = 1; + a25 = 0; + a1 = 14; + a5 = 4; + a21 = 10; + a20 = 1; + return -1; + } else if((((a28==1)&&(!(a18==1)&&(((a19==1)&&(((a21==10)&&((a16==10)&&((input==4)&&((((a9==11)&&((a5==5)&&(a1==12)))||((a9==11)&&((a1==12)&&(a5==6))))||((a9==7)&&((a1==13)&&(a5==4)))))))&&(a17==2)))&&!(a7==1))))&&(((((a20==1)&&(a3==1))&&!(a0==1))||!(a13==1))&&(a3==1)))){ + a5 = 4; + a27 = 0; + a26 = 0; + a9 = 7; + a16 = 7; + a1 = 12; + a28 = 1; + return -1; + } else if(((!(a14==1)&&((a16==11)&&((a20==1)&&((a13==1)&&(((a1==12)&&((((input==5)&&((a5==5)||(a5==6)))&&(a17==2))&&(a21==10)))&&!(a27==1))))))&&(!(a6==1)||((a9==10)&&(!(a3==1)||(((a12==1)&&(a19==1))&&!(a4==1))))))){ + a6 = 1; + a9 = 7; + a28 = 1; + a5 = 4; + a16 = 10; + a4 = 0; + return 21; + } else if((((a16==10)&&((a17==2)&&((a3==1)&&((a20==1)&&(a28==1)))))&&(((((a9==8)&&(((a19==2)&&((a1==12)&&((a28==1)&&((a23==1)&&((input==5)&&(a21==11))))))&&(a5==6)))&&(a23==1))&&(a28==1))&&(a11==1)))){ + a7 = 0; + a9 = 10; + a6 = 1; + a0 = 0; + a16 = 8; + a1 = 13; + a21 = 12; + a19 = 5; + return 26; + } else if((((a9==8)&&((a4==1)&&(((a1==13)&&((a7==1)&&(((((a5==4)||(a5==5))&&(input==6))&&!(a23==1))&&!(a3==1))))&&(a26==1))))&&(((((a17==2)&&(((a16==11)&&(a28==1))&&(a21==10)))&&!(a12==1))&&(a19==1))&&(a20==1)))){ + a7 = 1; + a5 = 4; + a13 = 0; + a16 = 7; + a15 = 1; + a9 = 10; + return 21; + } else if(((((a2==1)&&((!(a4==1)&&((a1==12)&&(((((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a4==1))&&(a9==7))&&(a6==1))))&&(a19==5)))&&(a13==1))&&(((a17==2)&&((((a16==10)&&(a23==1))&&(a21==10))&&(a20==1)))||(a26==1)))){ + a5 = 5; + a1 = 13; + a12 = 1; + a26 = 0; + a6 = 1; + a21 = 12; + return 26; + } else if((((((((((a1==12)&&((a2==1)&&(((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))&&(input==5))))&&!(a0==1))&&(a21==11))&&(a16==8))&&(a12==1))&&(a13==1))&&(a19==2))&&(((a17==2)&&((a27==1)||(!(a3==1)||(a12==1))))&&(a20==1)))){ + a16 = 7; + a5 = 4; + a9 = 7; + a13 = 1; + a19 = 1; + a18 = 0; + a8 = 0; + a21 = 10; + return -1; + } else if((((a23==1)&&((a16==10)&&((!(a8==1)&&(((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a19==1)))&&(a20==1))))&&((a9==11)&&((a1==12)&&(!(a11==1)||((((a11==1)&&((!(a28==1)||(a28==1))&&!(a14==1)))&&(a21==12))&&(a17==2))))))){ + if((a26==1)){ + a5 = 5; + a21 = 10; + a19 = 5; + a12 = 1; + a20 = 0; + a28 = 1; + a23 = 1; + a16 = 8; + }else{ + a16 = 7; + a8 = 0; + a1 = 14; + a5 = 6; + a19 = 2; + a21 = 10; + a9 = 10; + a28 = 1; + a0 = 0; + } + return 21; + } else if(((((a8==1)||(((!(a2==1)||(((a16==8)&&(a6==1))&&(a21==10)))&&!(a24==1))||!(a23==1)))&&!(a20==1))&&((a6==1)&&((a23==1)&&((((a1==14)&&(((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))&&(input==6)))&&(a17==2))&&(a19==3)))))){ + a12 = 1; + a20 = 1; + a1 = 12; + a9 = 11; + a2 = 1; + a8 = 0; + a16 = 10; + a19 = 1; + a5 = 4; + a21 = 11; + return 21; + } else if((((a19==5)&&((a1==14)&&(((!(a8==1)&&((a17==2)&&(((a8==1)||(a12==1))||(a7==1))))&&(a16==9))&&(a21==11))))&&(!(a24==1)&&((a13==1)&&((((a9==8)&&((input==5)&&(a5==4)))&&(a20==1))&&(a2==1)))))){ + a21 = 10; + a9 = 7; + a19 = 1; + a23 = 1; + a13 = 1; + a1 = 12; + a16 = 7; + a8 = 0; + return -1; + } else if((((a1==14)&&(((input==1)&&(((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))))&&(a3==1)))&&((a2==1)&&((((!(a20==1)&&((((a4==1)||(((a3==1)&&(a19==2))&&(a21==11)))&&(a16==9))&&!(a24==1)))||(a27==1))&&!(a7==1))&&(a17==2))))){ + a1 = 12; + a27 = 1; + a9 = 9; + a20 = 1; + a21 = 12; + a16 = 11; + a5 = 6; + a6 = 0; + a25 = 0; + a19 = 4; + return 25; + } else if((((a6==1)&&(!(a4==1)&&((a9==8)&&((a21==11)&&(!(a26==1)&&((a11==1)&&(a20==1)))))))&&((a12==1)&&(((a1==12)&&((((((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&(a16==8))&&!(a18==1))&&(a17==2))&&(a19==3)))&&!(a24==1))))){ + a21 = 10; + a19 = 1; + a9 = 7; + a5 = 4; + a0 = 0; + a16 = 7; + a14 = 0; + a4 = 0; + return -1; + } else if((((((((((a5==5)&&(a1==12))&&(a9==11))||(((a1==12)&&(a5==6))&&(a9==11)))||(((a1==13)&&(a5==4))&&(a9==7)))&&(input==6))&&(a17==2))&&(a16==8))&&(!(a7==1)&&(((((((a19==2)&&(!(a11==1)||(!(a3==1)||(a6==1))))&&!(a20==1))&&(a13==1))||(a4==1))&&(a21==10))&&(a12==1))))){ + a19 = 1; + a16 = 7; + a4 = 0; + a6 = 1; + a23 = 1; + a5 = 4; + a9 = 7; + a20 = 1; + a1 = 12; + return -1; + } else if((((!(a7==1)&&(((!(a27==1)&&((a2==1)&&(((((input==1)&&(a19==2))&&!(a20==1))&&(a5==5))&&(a28==1))))&&(a17==2))&&(a3==1)))&&(a21==12))&&((a1==12)&&((a9==7)&&((a13==1)&&((a16==9)&&(a3==1))))))){ + a1 = 14; + a19 = 1; + a15 = 1; + a9 = 10; + a16 = 7; + a3 = 0; + a20 = 1; + a5 = 4; + a21 = 10; + a4 = 1; + return -1; + } else if(((!(a14==1)&&(((a5==4)&&(!(a26==1)&&((!(a8==1)&&((input==3)&&!(a20==1)))&&!(a24==1))))&&(a21==10)))&&((a1==14)&&((a19==4)&&((((a16==8)&&(!(a11==1)||((a2==1)&&(a9==10))))||(a7==1))&&(a17==2)))))){ + a20 = 1; + a7 = 0; + a19 = 1; + a1 = 12; + a16 = 7; + a4 = 0; + a23 = 1; + a9 = 7; + return -1; + } else if((((a19==1)&&((((!(a18==1)&&((a21==12)&&(((input==3)&&(((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))))&&(a6==1))))&&(a1==14))&&!(a4==1))&&(a28==1)))&&((a20==1)&&(((((a12==1)&&(a16==11))&&(a17==2))&&!(a7==1))&&(a11==1))))){ + a5 = 4; + a1 = 12; + a21 = 10; + a16 = 10; + a23 = 1; + a9 = 8; + a14 = 0; + a11 = 1; + return 21; + } else if(((((a5==5)&&((((a16==9)&&((a24==1)||((a3==1)||(a7==1))))||!(a28==1))&&(a17==2)))&&(a20==1))&&((!(a26==1)&&((!(a7==1)&&((((input==3)&&(a1==12))&&(a21==12))&&(a9==7)))&&(a19==2)))&&(a23==1)))){ + a19 = 1; + a16 = 7; + a18 = 0; + a21 = 10; + a14 = 0; + a27 = 0; + a5 = 4; + return -1; + } else if((((((a16==9)&&((a9==8)&&(!(a27==1)&&(!(a8==1)&&((((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&!(a4==1))&&!(a14==1))))))&&(a19==1))&&(a21==12))&&(!(a20==1)&&(!(a7==1)&&((a18==1)||(((a1==12)&&(a2==1))&&(a17==2))))))){ + a22 = 0; + a14 = 1; + a9 = 11; + a21 = 10; + a5 = 5; + a16 = 11; + a19 = 2; + a1 = 14; + a6 = 0; + return -1; + } else if(((((a16==9)&&((a9==7)&&(!(a24==1)&&(((((((a5==4)||(a5==5))&&(input==1))&&!(a20==1))&&(a28==1))&&(a1==13))&&!(a14==1)))))&&(a19==2))&&(((((a26==1)||((a2==1)||(a4==1)))&&!(a27==1))&&(a21==12))&&(a17==2)))){ + if((a9==11)){ + a5 = 4; + a20 = 1; + a1 = 12; + a26 = 1; + a29 = 0; + a16 = 7; + a15 = 1; + a21 = 10; + }else{ + a21 = 10; + a16 = 7; + a19 = 1; + a29 = 0; + a5 = 4; + a7 = 1; + a20 = 1; + a9 = 10; + a1 = 12; + } + return 21; + } else if(((((a17==2)&&(((a6==1)&&((a19==5)&&((input==4)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5))))))&&(a1==12)))&&!(a20==1))&&((!(a0==1)&&(!(a12==1)||(((!(a2==1)||((a16==7)&&(a28==1)))&&(a28==1))&&(a12==1))))&&(a21==10)))){ + a14 = 0; + a19 = 1; + a1 = 14; + a5 = 4; + a20 = 1; + a3 = 1; + a6 = 1; + a9 = 9; + return -1; + } else if((((((a19==5)&&((((a12==1)&&(((input==1)&&((((a9==11)&&((a1==13)&&(a5==6)))||(((a1==14)&&(a5==4))&&(a9==7)))||((a9==7)&&((a1==14)&&(a5==5)))))&&(a2==1)))&&(a17==2))&&(a21==10)))&&!(a8==1))&&(a20==1))&&((((a3==1)&&((a23==1)&&(a6==1)))&&(a16==10))&&(a2==1)))){ + a28 = 1; + a9 = 7; + a16 = 7; + a5 = 4; + a27 = 0; + a13 = 1; + a19 = 1; + a1 = 12; + return -1; + } else if((((((((a0==1)&&(a6==1))&&!(a28==1))&&(a27==1))&&(a21==11))&&!(a20==1))&&((((((a4==1)&&(((((a9==7)&&((a1==12)&&(a5==5)))&&(a19==3))||(((a19==2)&&((a9==11)&&((a5==6)&&(a1==14))))||(((a9==7)&&((a1==12)&&(a5==4)))&&(a19==3))))&&(input==6)))&&(a16==8))&&!(a28==1))&&(a8==1))&&(a17==2)))){ + a26 = 1; + a1 = 13; + a5 = 6; + a9 = 7; + a19 = 2; + a15 = 0; + a21 = 10; + a3 = 0; + return -1; + } else if((((a23==1)&&((a11==1)&&((a17==2)&&((input==1)&&(a20==1)))))&&((a0==1)||((a0==1)||((((a1==14)&&(((a21==10)&&(!(a28==1)||(((a12==1)&&(a9==7))&&(a19==5))))&&(a16==11)))&&(a13==1))&&(a5==6)))))){ + a19 = 4; + a1 = 12; + a7 = 0; + a28 = 1; + a13 = 1; + return 21; + } else if(((!(a4==1)&&((!(a0==1)&&(((a17==2)&&(((a20==1)&&(input==6))&&(a5==5)))&&(a16==10)))&&!(a8==1)))&&(!(a12==1)||(((a11==1)&&((((a21==11)&&((a1==13)&&(a3==1)))||!(a6==1))&&(a9==10)))&&(a19==1))))){ + a3 = 1; + a23 = 1; + a9 = 7; + a16 = 7; + a8 = 0; + a19 = 4; + return 25; + } else if((((a21==10)&&(((((((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))&&(input==4))&&(a6==1))&&(a23==1))&&(a6==1))&&!(a7==1)))&&((a19==3)&&((a20==1)&&((((((a3==1)&&(a17==2))&&(a13==1))||(a26==1))&&(a16==8))&&(a1==13)))))){ + a5 = 4; + a16 = 7; + a28 = 1; + a24 = 0; + a1 = 12; + a9 = 7; + a19 = 1; + a4 = 0; + return -1; + } else if((((a19==2)&&(((((a2==1)&&((a3==1)||(a7==1)))&&(a1==12))&&!(a26==1))&&(a12==1)))&&(!(a20==1)&&((a16==9)&&((!(a24==1)&&((a21==10)&&(((((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==5))&&(a2==1))))&&(a17==2)))))){ + a16 = 11; + a22 = 0; + a19 = 1; + a5 = 5; + a21 = 11; + a8 = 1; + a25 = 1; + a20 = 1; + a9 = 9; + return 25; + } else if((((((((a1==14)&&(input==1))&&(a17==2))&&(a21==12))&&(a16==9))&&(a20==1))&&(((!(a13==1)||(!(a7==1)&&((a5==5)&&((((!(a13==1)||(a6==1))&&(a19==5))&&(a9==10))||!(a12==1)))))||!(a2==1))||(a14==1)))){ + a6 = 1; + a21 = 10; + a3 = 1; + a1 = 13; + a13 = 1; + a5 = 6; + a19 = 1; + a9 = 11; + return -1; + } else if(((!(a27==1)&&(((a17==2)&&((a19==4)&&((((a5==4)||(a5==5))&&(input==1))&&(a21==10))))&&!(a20==1)))&&((a1==14)&&((((a16==8)&&((a9==9)&&((((a28==1)&&(a6==1))||!(a6==1))&&(a6==1))))&&(a28==1))&&(a6==1))))){ + a20 = 1; + a21 = 12; + a16 = 7; + a1 = 13; + a28 = 1; + a2 = 1; + a5 = 6; + a9 = 8; + a13 = 1; + return 23; + } else if(((((a11==1)&&((a23==1)&&(!(a8==1)&&((a1==12)&&(((a9==10)&&((a16==8)&&(!(a20==1)&&(input==4))))&&(a17==2))))))&&!(a8==1))&&((a5==4)&&((a7==1)||((a21==11)&&((a19==2)&&(!(a27==1)&&(a13==1)))))))){ + a21 = 10; + a11 = 1; + a16 = 7; + a19 = 1; + a20 = 1; + a9 = 7; + a0 = 0; + a6 = 1; + return -1; + } else if((((a23==1)&&((((a19==3)&&(((a13==1)&&((input==6)&&(((a9==11)&&((a1==13)&&(a5==6)))||(((a5==4)&&(a1==14))&&(a9==7)))))&&(a16==7)))&&!(a18==1))&&!(a4==1)))&&((!(a7==1)&&((((a3==1)&&(a17==2))&&(a20==1))&&(a21==10)))&&!(a7==1)))){ + a2 = 1; + a4 = 0; + a9 = 11; + a5 = 5; + a1 = 12; + a19 = 2; + a21 = 11; + a26 = 0; + return 25; + } else if((((((a6==1)&&((a16==11)&&((((((a5==4)||(a5==5))&&(input==3))&&(a1==14))&&!(a14==1))&&!(a26==1))))&&(a20==1))&&(a21==10))&&(((((a19==1)&&((!(a11==1)||(a3==1))&&!(a4==1)))&&(a23==1))&&(a17==2))&&(a9==11)))){ + a5 = 4; + a16 = 7; + a1 = 12; + a0 = 0; + a12 = 1; + a9 = 7; + a27 = 0; + return -1; + } else if(((((((a0==1)&&((input==4)&&((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))))&&(a19==4))&&(a20==1))&&(a21==11))&&((((((a17==2)&&((a8==1)&&((a18==1)&&((a13==1)&&(a8==1)))))&&(a16==10))&&(a8==1))&&(a26==1))&&(a1==14)))){ + a19 = 5; + a9 = 7; + a11 = 0; + a25 = 1; + a5 = 5; + a20 = 0; + a16 = 7; + return -1; + } else if((((((a1==14)&&((((a3==1)&&(a16==9))&&!(a20==1))&&(a6==1)))&&(a17==2))&&!(a24==1))&&((a2==1)&&(!(a7==1)&&((a19==3)&&(((a11==1)&&(((input==1)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8))))&&!(a26==1)))&&(a21==12))))))){ + if((a27==1)){ + a15 = 1; + a9 = 7; + a21 = 11; + a7 = 1; + a1 = 13; + a19 = 5; + a5 = 4; + a14 = 1; + }else{ + a8 = 1; + a22 = 1; + a9 = 10; + a5 = 5; + a16 = 7; + a21 = 10; + a25 = 1; + a1 = 13; + } + return -1; + } else if((((((((a3==1)||!(a2==1))||!(a2==1))&&(a17==2))&&!(a20==1))&&(a21==12))&&((a19==1)&&((a12==1)&&(!(a24==1)&&((a3==1)&&((a1==12)&&(((a16==7)&&((((a5==4)||(a5==5))&&(input==1))&&(a9==11)))&&(a11==1))))))))){ + a5 = 4; + a18 = 0; + a9 = 7; + a21 = 10; + a6 = 1; + a20 = 1; + a11 = 1; + return -1; + } else if(((((a5==4)&&(((a19==2)&&((a9==10)&&(!(a20==1)&&((((input==6)&&(a16==10))&&(a21==12))&&(a28==1)))))&&!(a7==1)))&&!(a27==1))&&((a17==2)&&((((a1==13)&&(!(a8==1)&&(a3==1)))||(a7==1))||(a14==1))))){ + a16 = 7; + a21 = 10; + a24 = 1; + a9 = 8; + a29 = 1; + a5 = 5; + a20 = 1; + a19 = 1; + a11 = 0; + return 21; + } else if(((!(a0==1)&&(((a20==1)&&(((a17==2)&&((a2==1)||!(a23==1)))&&(a21==10)))&&(a2==1)))&&((a28==1)&&((a13==1)&&(!(a27==1)&&((a19==4)&&((a16==9)&&(((input==4)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(a1==13))))))))){ + a23 = 1; + a9 = 7; + a19 = 1; + a8 = 0; + a12 = 1; + a1 = 12; + a16 = 7; + a5 = 4; + return -1; + } else if(((((a12==1)&&((a1==13)&&(((((((((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6))))&&(input==3))&&(a19==1))&&!(a0==1))&&!(a0==1))&&(a23==1))&&(a21==12))))&&(a17==2))&&((a11==1)&&((((a16==9)&&(a11==1))&&(a20==1))||!(a23==1))))){ + a21 = 10; + a5 = 4; + a18 = 0; + a3 = 1; + a16 = 7; + a9 = 7; + a1 = 12; + return -1; + } else if((((a21==11)&&((!(a18==1)&&((a11==1)&&((a28==1)&&(!(a24==1)&&(((a19==4)&&((input==5)&&!(a20==1)))&&(a16==8))))))&&(a5==6)))&&((a17==2)&&((a9==8)&&(!(a7==1)&&((!(a4==1)&&(a3==1))&&(a1==14))))))){ + a7 = 0; + a16 = 9; + a24 = 0; + a9 = 10; + a13 = 1; + a5 = 4; + a19 = 2; + a20 = 1; + return 21; + } else if((((((!(a20==1)&&(!(a12==1)||((a5==6)&&((a28==1)||!(a11==1)))))&&(a1==14))&&(a17==2))&&!(a8==1))&&(((a16==9)&&((((a9==8)&&(((input==3)&&(a21==10))&&!(a26==1)))&&(a19==5))&&!(a24==1)))&&(a28==1)))){ + a5 = 5; + a12 = 0; + a3 = 0; + a16 = 8; + a1 = 12; + a19 = 4; + a21 = 11; + a20 = 1; + a2 = 0; + return -1; + } else if((((a20==1)&&((a17==2)&&(((a28==1)&&((a14==1)||(((a16==7)&&(a13==1))&&(a21==12))))&&(a28==1))))&&((!(a27==1)&&((((((((a5==6)&&(a1==14))&&(a9==11))&&(a19==4))||((a19==5)&&(((a1==12)&&(a5==4))&&(a9==7))))||((a19==5)&&((a9==7)&&((a1==12)&&(a5==5)))))&&(input==6))&&!(a26==1)))&&(a13==1)))){ + a26 = 0; + a3 = 1; + a0 = 0; + a1 = 14; + a19 = 1; + a9 = 8; + a5 = 6; + a16 = 8; + return 21; + } else if((((a21==12)&&(!(a7==1)&&((((((((input==5)&&(a19==5))&&(a16==8))&&(a13==1))&&(a6==1))&&(a1==13))&&(a9==7))&&!(a24==1))))&&((((((a13==1)||(a7==1))||(a18==1))&&(a20==1))&&(a17==2))&&(a5==5)))){ + a4 = 0; + a1 = 14; + a5 = 4; + a21 = 10; + a9 = 9; + a26 = 0; + return 25; + } else if(((((((!(a13==1)||(a3==1))&&(a20==1))&&(a17==2))&&!(a24==1))||!(a2==1))&&(((a21==10)&&((((a1==12)&&((((((a5==5)||(a5==6))&&(input==4))&&!(a7==1))&&(a16==10))&&(a19==2)))&&(a12==1))&&!(a0==1)))&&(a9==7)))){ + a9 = 10; + a5 = 4; + a0 = 0; + a16 = 7; + a19 = 3; + a4 = 0; + a21 = 11; + a23 = 1; + return -1; + } else if((((((((((a17==2)&&(a11==1))&&!(a0==1))&&!(a20==1))||(a24==1))&&(a21==10))&&(a28==1))||(a8==1))&&((a6==1)&&(((!(a7==1)&&((((input==3)&&(a9==7))&&(a16==7))&&(a5==5)))&&(a19==5))&&(a1==14))))){ + a2 = 1; + a5 = 4; + a18 = 0; + a20 = 1; + a1 = 12; + a26 = 0; + a19 = 1; + return -1; + } else if((((a17==2)&&((a13==1)&&((!(a18==1)&&(((a16==8)&&((input==4)&&(((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6))))))&&(a12==1)))&&!(a0==1))))&&((a21==10)&&(((a19==5)&&((a20==1)&&(((a6==1)||!(a11==1))||!(a23==1))))&&(a1==12))))){ + a9 = 7; + a13 = 1; + a19 = 2; + a16 = 10; + a12 = 1; + a5 = 5; + a2 = 1; + return 21; + } else if(((((a21==12)&&((a16==8)&&((a12==1)&&(((((input==3)&&(((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))))&&(a17==2))&&!(a0==1))&&!(a0==1)))))&&!(a18==1))&&((a1==13)&&(!(a0==1)&&((a20==1)&&(((a19==2)&&(a2==1))||(a26==1))))))){ + a9 = 7; + a1 = 12; + a5 = 4; + a19 = 1; + a21 = 10; + a16 = 7; + a0 = 0; + a11 = 1; + a12 = 1; + return -1; + } else if((((((a6==1)&&((((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a5==4)&&(a9==10)))&&(input==5))&&!(a26==1)))&&!(a26==1))&&!(a24==1))&&((a20==1)&&(((((!(a11==1)||(((a12==1)&&(a21==12))&&(a19==1)))&&(a17==2))&&(a16==11))&&(a1==13))||(a27==1))))){ + a1 = 12; + a13 = 1; + a16 = 7; + a21 = 10; + a9 = 7; + a12 = 1; + a5 = 4; + return -1; + } return calculate_output65(input); + } + + int calculate_output65(int input) { + if(((((a9==9)&&((a18==1)||((a21==11)&&(((a27==1)||(((a1==12)&&(a11==1))||(a26==1)))&&(a16==7)))))&&!(a8==1))&&((((a19==3)&&(((a13==1)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a20==1)))&&(a17==2))&&!(a8==1)))){ + a5 = 6; + a20 = 1; + a1 = 14; + a19 = 4; + a11 = 1; + a4 = 0; + a16 = 9; + a26 = 0; + return 21; + } else if((((a17==2)&&((((a26==1)||((a1==13)&&(((a9==9)&&((a2==1)&&(a28==1)))||(a26==1))))&&(a13==1))&&(a16==10)))&&((a20==1)&&((a19==5)&&(((((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&(a21==12))&&(a11==1))&&!(a24==1)))))){ + a16 = 8; + a9 = 7; + a3 = 1; + a5 = 5; + a28 = 1; + return 22; + } else if((((((a4==1)||(a2==1))&&!(a26==1))&&(a11==1))&&((((a21==12)&&(((a19==4)&&((((((input==5)&&(((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))))&&(a16==7))&&(a20==1))&&(a2==1))&&(a17==2)))&&(a1==12)))&&!(a18==1))&&(a3==1)))){ + a12 = 1; + a0 = 0; + a19 = 1; + a9 = 7; + a28 = 1; + a5 = 4; + a21 = 10; + return -1; + } else if((((!(a24==1)&&((a17==2)&&(!(a18==1)&&(a28==1))))&&(a28==1))&&((!(a4==1)&&(!(a18==1)&&((a9==8)&&((a19==5)&&(!(a20==1)&&(((a16==8)&&(((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a21==10)))&&(a1==12)))))))&&!(a4==1)))){ + a5 = 4; + a27 = 0; + a16 = 7; + a3 = 1; + a19 = 1; + a2 = 1; + a20 = 1; + a9 = 7; + return -1; + } else if(((((((((input==6)&&(((a9==7)&&((a1==13)&&(a5==4)))||((((a5==5)&&(a1==12))&&(a9==11))||((a9==11)&&((a1==12)&&(a5==6))))))&&(a21==11))&&(a16==8))&&(a13==1))&&(a19==2))&&(a11==1))&&(!(a18==1)&&((a17==2)&&((((a13==1)&&((a28==1)||!(a28==1)))&&(a20==1))||(a27==1)))))){ + a23 = 1; + a16 = 7; + a1 = 12; + a27 = 0; + a19 = 1; + a9 = 7; + a5 = 4; + a2 = 1; + a21 = 10; + return -1; + } else if((((((((a2==1)&&(!(a4==1)&&((a12==1)&&((a12==1)&&((input==5)&&((((a5==6)&&(a1==13))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==14)))))))))&&(a17==2))&&!(a20==1))&&(a16==7))&&(a12==1))&&((a19==4)&&((!(a27==1)&&(a11==1))&&(a21==12))))){ + a26 = 0; + a1 = 12; + a5 = 4; + a20 = 1; + a9 = 7; + a27 = 0; + a13 = 1; + a19 = 1; + a21 = 10; + return -1; + } else if(((!(a13==1)||((a19==5)&&((a17==2)&&(a28==1))))&&((a21==10)&&(((a16==10)&&(((((a13==1)&&((((((a5==6)&&(a1==12))&&(a9==11))||(((a5==4)&&(a1==13))&&(a9==7)))&&(input==1))&&(a12==1)))&&(a28==1))&&(a20==1))&&!(a26==1)))&&!(a0==1))))){ + a8 = 0; + a2 = 1; + a19 = 1; + a26 = 0; + a16 = 7; + a5 = 4; + a9 = 7; + a1 = 12; + return -1; + } else if(((((((!(a0==1)&&(((a17==2)&&((a21==12)&&((a9==9)&&((input==4)&&(a1==14)))))&&!(a20==1)))&&!(a14==1))&&(a16==9))&&(a5==5))&&(a19==1))&&((!(a11==1)||(((a23==1)&&(a2==1))||(a18==1)))||(a26==1)))){ + if((a21==11)){ + a5 = 4; + a16 = 7; + a8 = 1; + a1 = 12; + a20 = 1; + a21 = 10; + a14 = 1; + a3 = 0; + }else{ + a7 = 1; + a24 = 1; + a25 = 0; + a16 = 7; + a9 = 11; + a21 = 10; + a20 = 1; + } + return -1; + } else if((((a9==10)&&((a23==1)&&((((a5==4)||(a5==5))&&(input==5))&&!(a8==1))))&&((((a19==5)&&(((!(a7==1)&&(!(a26==1)&&(!(a8==1)&&((a8==1)||((a1==13)&&(a12==1))))))&&(a17==2))&&(a16==8)))&&(a21==12))&&(a20==1)))){ + a26 = 0; + a21 = 10; + a5 = 5; + a1 = 12; + a6 = 1; + a19 = 1; + a8 = 0; + a16 = 9; + a9 = 8; + return 22; + } else if((((a19==3)&&((a26==1)||(!(a12==1)||((a2==1)||(a8==1)))))&&(((((a1==12)&&((!(a7==1)&&(((a16==9)&&(!(a4==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1))))&&!(a20==1)))&&(a11==1)))&&(a9==8))&&(a21==12))&&(a17==2)))){ + if((a4==1)){ + a9 = 11; + a19 = 1; + a20 = 1; + a29 = 0; + a21 = 10; + a16 = 7; + a6 = 0; + a24 = 1; + a5 = 6; + }else{ + a19 = 4; + a20 = 1; + a5 = 5; + a23 = 0; + a21 = 11; + a1 = 13; + a9 = 9; + a24 = 1; + a16 = 7; + a7 = 1; + } + return -1; + } else if((((((((a24==1)||(((a19==2)&&((a3==1)&&(a17==2)))||!(a28==1)))&&(a20==1))&&(a11==1))&&(a16==7))&&(a21==12))&&(((a6==1)&&((((input==3)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(a1==14))&&(a12==1)))&&(a23==1)))){ + a6 = 1; + a1 = 12; + a19 = 1; + a21 = 10; + a9 = 7; + a11 = 1; + a24 = 0; + a5 = 4; + return -1; + } else if((((((a1==12)&&((!(a8==1)&&(((a17==2)&&(((a5==4)||(a5==5))&&(input==6)))&&(a13==1)))&&!(a7==1)))&&(a21==12))&&(a16==7))&&(!(a28==1)||((((((a12==1)&&(a19==1))&&(a20==1))||!(a23==1))&&(a9==11))&&(a6==1))))){ + if((a21==10)){ + a7 = 0; + a5 = 5; + a9 = 7; + a23 = 1; + a20 = 0; + a1 = 13; + }else{ + a5 = 4; + a28 = 1; + a19 = 4; + a0 = 0; + a13 = 1; + a16 = 8; + a1 = 14; + } + return 21; + } else if((((a23==1)&&(((!(a4==1)&&((a16==10)&&((((a5==5)||(a5==6))&&(input==4))&&(a19==5))))&&(a17==2))&&(a9==7)))&&((a26==1)||((a21==10)&&(!(a20==1)&&(((a1==14)&&(((a3==1)&&(a6==1))&&(a6==1)))&&!(a4==1))))))){ + if((a13==1)){ + a20 = 1; + a13 = 0; + a24 = 1; + a16 = 7; + a9 = 9; + a5 = 5; + a19 = 1; + a15 = 0; + }else{ + a5 = 6; + a21 = 11; + a1 = 13; + a20 = 1; + a15 = 1; + a28 = 0; + a19 = 3; + } + return 23; + } else if((((((a8==1)||(((((a1==14)&&((a28==1)&&!(a14==1)))&&(a17==2))&&(a5==6))&&!(a18==1)))||!(a3==1))||!(a13==1))&&((!(a20==1)&&((a19==2)&&((a16==9)&&(((a9==10)&&(input==5))&&(a21==10)))))&&(a11==1)))){ + a22 = 1; + a20 = 1; + a19 = 1; + a24 = 1; + a1 = 13; + a16 = 7; + a14 = 1; + return -1; + } else if((((((a23==1)&&((((((a16==7)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4)))&&(a21==11))&&(a3==1))&&(a12==1))&&(a1==12)))&&(a17==2))&&(a19==3))&&((((((a13==1)&&(a9==8))&&(a3==1))||(a18==1))||!(a3==1))&&!(a20==1)))){ + a21 = 10; + a9 = 7; + a27 = 0; + a20 = 1; + a5 = 4; + a24 = 0; + a19 = 1; + a8 = 0; + return -1; + } else if((((a16==7)&&((a12==1)&&(((a13==1)&&(((input==1)&&(a5==5))&&(a21==12)))&&!(a7==1))))&&((((((a17==2)&&((a19==4)&&(!(a18==1)&&((a9==11)&&(a6==1)))))&&!(a0==1))&&(a1==14))&&(a3==1))&&(a20==1)))){ + a21 = 11; + a5 = 4; + a19 = 3; + a6 = 1; + a16 = 9; + a1 = 13; + a11 = 1; + a26 = 0; + return 26; + } else if((((((a9==8)&&(!(a8==1)&&(((!(a4==1)&&((a12==1)&&(a6==1)))&&(a17==2))&&!(a27==1))))&&(a1==12))&&(a19==1))&&((a21==12)&&(((((a16==7)&&((input==1)&&((a5==5)||(a5==6))))&&(a28==1))&&!(a20==1))&&(a6==1))))){ + a5 = 6; + a21 = 11; + a20 = 1; + a12 = 1; + a19 = 2; + a18 = 0; + a16 = 10; + a11 = 1; + return -1; + } else if((((a17==2)&&((a19==1)&&((input==3)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))))&&(!(a8==1)&&(((a20==1)&&((((((a16==11)&&(((a13==1)&&!(a8==1))&&!(a4==1)))&&(a1==14))&&(a21==11))||!(a3==1))&&!(a0==1)))||!(a13==1))))){ + a1 = 12; + a9 = 7; + a21 = 10; + a7 = 0; + a12 = 1; + a16 = 7; + a5 = 4; + a18 = 0; + return -1; + } else if(((((a17==2)&&((((((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6))))&&(input==3))&&!(a18==1))&&!(a27==1)))&&(a19==4))&&((((a0==1)||(!(a28==1)||(!(a20==1)&&(((!(a18==1)&&(a12==1))&&(a21==10))&&(a1==12)))))||!(a2==1))&&(a16==11)))){ + if((a5==6)){ + a11 = 0; + a19 = 1; + a9 = 10; + a5 = 5; + a16 = 8; + a22 = 1; + a8 = 1; + }else{ + a16 = 8; + a19 = 5; + a21 = 12; + a15 = 0; + a26 = 1; + a14 = 1; + a9 = 9; + a5 = 4; + } + return 21; + } else if((((a19==1)&&((!(a4==1)&&((a11==1)&&((a1==12)&&((a6==1)&&(a17==2)))))&&!(a18==1)))&&((!(a20==1)&&((a2==1)&&((a9==7)&&(((a6==1)&&((a21==12)&&((input==4)&&((a5==5)||(a5==6)))))&&(a16==10)))))&&!(a14==1)))){ + a5 = 4; + a4 = 1; + a15 = 1; + a19 = 2; + a11 = 0; + a9 = 8; + a20 = 1; + a21 = 10; + a16 = 7; + return 25; + } else if((((!(a28==1)||((((a11==1)&&(a13==1))&&(a20==1))&&(a13==1)))&&(a19==2))&&((((!(a26==1)&&(!(a27==1)&&((a16==8)&&((a1==12)&&((((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))&&(input==3))))))&&(a17==2))&&(a21==12))&&(a3==1)))){ + a8 = 0; + a19 = 1; + a5 = 4; + a21 = 10; + a6 = 1; + a2 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if((((a19==2)&&((!(a11==1)&&((a9==8)&&(!(a28==1)&&((((a17==2)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))&&!(a13==1))&&!(a20==1)))))&&(a1==14)))&&(((a16==7)&&((a21==11)&&(((a28==1)&&!(a11==1))&&(a27==1))))&&!(a2==1)))){ + a23 = 0; + a5 = 6; + a12 = 0; + a20 = 1; + a21 = 10; + a19 = 1; + a1 = 13; + a9 = 9; + a28 = 0; + return -1; + } else if(((!(a27==1)&&((!(a7==1)&&(!(a7==1)&&((a16==10)&&(((a17==2)&&((a20==1)&&((((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(input==6))))&&(a21==10)))))&&!(a18==1)))&&((a4==1)||(((a19==4)&&(!(a11==1)||(a6==1)))&&(a1==12))))){ + a18 = 0; + a28 = 1; + a6 = 1; + a5 = 4; + a21 = 12; + a16 = 9; + a19 = 3; + a9 = 9; + return 21; + } else if((((a17==2)&&((a1==14)&&(!(a14==1)&&((a9==11)&&((a3==1)&&((!(a7==1)&&((!(a27==1)&&((a21==12)&&(input==6)))&&(a13==1)))&&(a6==1)))))))&&(((a19==4)&&((a20==1)&&((a6==1)&&(a5==6))))&&(a16==11)))){ + a11 = 1; + a5 = 5; + a9 = 10; + a20 = 0; + a19 = 5; + a21 = 11; + a1 = 12; + a8 = 0; + a16 = 8; + a6 = 1; + return 21; + } else if(((((a17==2)&&((a20==1)&&(((!(a4==1)&&(((((a5==4)||(a5==5))&&(input==6))&&(a23==1))&&(a19==1)))&&(a3==1))&&(a1==12))))&&(a6==1))&&(((a16==8)&&((a9==10)&&((!(a26==1)&&(a2==1))||(a4==1))))&&(a21==12)))){ + a27 = 0; + a5 = 4; + a0 = 0; + a28 = 1; + a16 = 7; + a9 = 7; + a21 = 10; + return -1; + } else if(((((((a9==10)&&(((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a11==1)))&&(a17==2))&&!(a14==1))&&(a3==1))&&(!(a23==1)||((((a19==1)&&(((!(a20==1)&&((a3==1)&&!(a0==1)))&&(a1==12))&&(a21==11)))&&(a16==7))||!(a6==1))))){ + a20 = 1; + a6 = 1; + a9 = 8; + a18 = 0; + a23 = 1; + a16 = 9; + a1 = 14; + a19 = 4; + a21 = 10; + a5 = 5; + return 26; + } else if((((!(a24==1)&&(((a17==2)&&(input==6))&&!(a4==1)))&&(a16==11))&&((a5==5)&&((((a20==1)&&(((a0==1)||((a21==12)&&((a28==1)&&(((a19==4)&&(a28==1))&&(a3==1)))))&&(a1==14)))&&(a13==1))&&(a9==8))))){ + if((a17==4)){ + a19 = 2; + a20 = 0; + a16 = 8; + a9 = 10; + a5 = 6; + a21 = 10; + a4 = 0; + a14 = 0; + a12 = 1; + }else{ + a5 = 6; + a6 = 1; + a2 = 1; + a0 = 0; + a16 = 10; + a21 = 10; + a19 = 3; + } + return 21; + } else if((((a17==2)&&((a20==1)&&(((a19==2)&&(!(a27==1)&&(((a1==12)&&((input==4)&&((a5==4)||(a5==5))))&&!(a24==1))))&&(a21==11))))&&((a9==8)&&((a2==1)&&((a3==1)&&((((a16==11)&&(a28==1))&&!(a24==1))||(a18==1))))))){ + a19 = 1; + a8 = 0; + a14 = 0; + a9 = 7; + a5 = 4; + a21 = 10; + a16 = 7; + return -1; + } else if((((a16==10)&&(((a28==1)&&((a17==2)&&(((input==5)&&(a21==10))&&(a23==1))))&&(a1==13)))&&((a5==5)&&((a20==1)&&((((a9==7)&&(!(a6==1)||((a19==3)&&((a3==1)&&!(a24==1)))))&&!(a0==1))&&(a12==1)))))){ + a20 = 0; + a16 = 8; + a28 = 1; + a19 = 5; + a9 = 10; + a5 = 4; + a21 = 11; + a1 = 12; + a8 = 0; + return 21; + } else if(((!(a18==1)&&((((a16==11)&&((a5==6)&&(!(a7==1)&&((input==4)&&(a9==11)))))&&!(a7==1))&&(a21==12)))&&(((a18==1)||(!(a0==1)&&(((a1==14)&&((a17==2)&&((a11==1)&&(a20==1))))&&(a19==2))))&&(a2==1)))){ + a16 = 7; + a1 = 12; + a13 = 1; + a19 = 1; + a5 = 4; + a9 = 7; + a23 = 1; + a21 = 10; + a18 = 0; + return -1; + } else if(((((!(a27==1)&&((a2==1)&&(!(a0==1)&&((a17==2)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3))))))&&(a28==1))&&(a16==7))&&((a21==12)&&(((((a9==7)&&(((a3==1)&&(a6==1))&&(a1==14)))&&!(a20==1))&&!(a14==1))&&(a19==5))))){ + a1 = 12; + a24 = 0; + a12 = 1; + a5 = 4; + a27 = 0; + a19 = 1; + a20 = 1; + a21 = 10; + return -1; + } else if((((a28==1)&&((a23==1)&&((a21==10)&&((a20==1)&&((input==3)&&(a19==2))))))&&((a5==6)&&(((((((((a2==1)&&!(a7==1))&&(a9==10))||!(a28==1))&&(a12==1))&&(a1==13))&&(a16==9))&&(a28==1))&&(a17==2))))){ + a5 = 4; + a9 = 7; + a19 = 1; + a16 = 7; + a4 = 0; + a1 = 12; + a23 = 1; + return -1; + } else if(((!(a24==1)&&(((a17==2)&&((((a11==1)&&(a21==10))||!(a23==1))&&(a16==8)))&&(a6==1)))&&(((a3==1)&&((((((a9==11)&&(((a5==5)||(a5==6))&&(input==1)))&&!(a18==1))&&(a1==12))&&!(a20==1))&&(a19==3)))&&!(a18==1)))){ + a21 = 11; + a19 = 4; + a23 = 1; + a12 = 1; + a7 = 0; + a20 = 1; + a5 = 5; + a9 = 7; + a16 = 9; + return 21; + } else if((((a13==1)&&(((((input==4)&&((((a5==4)&&(a1==13))&&(a9==7))||((((a1==12)&&(a5==5))&&(a9==11))||((a9==11)&&((a1==12)&&(a5==6))))))&&(a12==1))&&!(a4==1))&&!(a4==1)))&&(((a19==4)&&((((a17==2)&&(!(a12==1)||(!(a4==1)&&(a12==1))))&&(a16==8))&&(a20==1)))&&(a21==10)))){ + a28 = 1; + a1 = 12; + a19 = 1; + a16 = 7; + a3 = 1; + a9 = 7; + a5 = 4; + a11 = 1; + return -1; + } else if((((a28==1)&&((a5==5)&&((a28==1)&&(!(a24==1)&&(!(a8==1)&&((a9==7)&&(input==6)))))))&&((a17==2)&&((a20==1)&&(((a19==2)&&((a21==11)&&(((a4==1)||((a13==1)&&!(a8==1)))&&(a1==13))))&&(a16==8)))))){ + a21 = 10; + a1 = 12; + a28 = 1; + a9 = 10; + a16 = 10; + a26 = 0; + a19 = 4; + return 26; + } else if(((((a16==10)&&(!(a6==1)||((!(a14==1)&&((a28==1)&&(a9==8)))&&!(a26==1))))&&!(a7==1))&&((((a19==5)&&(((!(a4==1)&&(((input==4)&&(a17==2))&&(a21==12)))&&!(a20==1))&&(a1==12)))&&(a5==5))&&(a3==1)))){ + if((a22==1)){ + a8 = 1; + a20 = 1; + a16 = 7; + a21 = 10; + a4 = 1; + a5 = 4; + a15 = 1; + a19 = 1; + }else{ + a16 = 8; + a22 = 0; + a21 = 11; + a28 = 0; + a3 = 0; + a5 = 6; + a19 = 1; + } + return 21; + } else if((((a4==1)||((((a16==8)&&((a20==1)&&(a6==1)))&&(a19==2))||!(a6==1)))&&(((a17==2)&&((a1==12)&&(!(a26==1)&&(((a21==12)&&(!(a26==1)&&((input==6)&&((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a5==4)&&(a9==9))))))&&(a2==1)))))&&!(a4==1)))){ + a1 = 14; + a6 = 1; + a21 = 11; + a4 = 0; + a19 = 5; + a5 = 4; + a9 = 10; + a16 = 10; + return 25; + } else if((((a28==1)&&((a17==2)&&((!(a4==1)&&((((a28==1)&&(((input==4)&&(a21==10))&&(a13==1)))&&!(a20==1))&&(a1==14)))&&(a5==4))))&&((a16==11)&&(((a19==2)&&((a9==11)&&((a12==1)||!(a12==1))))&&!(a26==1))))){ + a12 = 0; + a5 = 5; + a9 = 7; + a21 = 12; + a25 = 0; + a16 = 9; + a26 = 1; + a1 = 13; + a20 = 1; + return 23; + } else if((((a28==1)&&((a17==2)&&(((a16==10)&&((a13==1)&&!(a20==1)))||!(a11==1))))&&((a6==1)&&(((((((a23==1)&&(((input==4)&&(a21==11))&&(a1==13)))&&(a9==10))&&(a5==5))&&(a19==1))&&!(a24==1))&&(a12==1))))){ + a21 = 12; + a20 = 1; + a27 = 1; + a1 = 12; + a15 = 1; + a19 = 2; + a24 = 1; + a16 = 7; + a5 = 4; + return 22; + } else if((((a23==1)&&(((a23==1)&&((a16==9)&&(!(a7==1)&&(((a9==9)&&((input==5)&&(a20==1)))&&(a5==5)))))&&(a21==12)))&&(((a3==1)&&((a19==2)&&((a1==13)&&((a17==2)&&((a12==1)&&(a3==1))))))&&(a2==1)))){ + a19 = 4; + a1 = 14; + a16 = 8; + a18 = 0; + a3 = 1; + a5 = 4; + return 25; + } else if((((a11==1)&&((a28==1)&&((a28==1)&&(((((((input==1)&&(a17==2))&&(a16==11))&&(a9==11))&&(a3==1))&&(a21==10))&&(a12==1)))))&&(!(a3==1)||((((a1==13)&&((a2==1)&&(a19==2)))&&(a20==1))&&(a5==6))))){ + a9 = 9; + a8 = 0; + a5 = 4; + a21 = 11; + a1 = 14; + a4 = 0; + return 25; + } else if(((!(a0==1)&&(!(a7==1)&&(((((a16==9)&&(((((a19==1)&&((a9==11)&&((a5==6)&&(a1==14))))||((((a5==4)&&(a1==12))&&(a9==7))&&(a19==2)))||((a19==2)&&(((a5==5)&&(a1==12))&&(a9==7))))&&(input==3)))&&!(a0==1))&&(a17==2))&&(a12==1))))&&(!(a13==1)||((!(a20==1)&&((a23==1)&&(a21==10)))&&!(a4==1))))){ + if((a2==1)){ + a16 = 7; + a11 = 0; + a20 = 1; + a9 = 8; + a19 = 1; + a5 = 4; + a0 = 1; + a1 = 12; + a29 = 1; + }else{ + a27 = 1; + a22 = 1; + a28 = 0; + a19 = 1; + a9 = 11; + a16 = 8; + a5 = 4; + a20 = 1; + a1 = 14; + a21 = 12; + } + return -1; + } else if((((a9==8)&&(((a16==8)&&((((((a5==5)||(a5==6))&&(input==6))&&(a19==4))&&!(a14==1))&&(a1==12)))&&!(a24==1)))&&((a11==1)&&((a8==1)||(((a17==2)&&((((a3==1)&&!(a7==1))&&(a21==11))||(a27==1)))&&(a20==1)))))){ + a6 = 1; + a16 = 7; + a9 = 7; + a5 = 4; + a28 = 1; + a19 = 1; + a21 = 10; + a0 = 0; + return -1; + } else if((((!(a24==1)&&((a20==1)&&((a1==12)&&((((((((a5==5)||(a5==6))&&(input==5))&&!(a7==1))&&(a19==5))&&(a16==11))&&(a21==10))&&(a17==2)))))&&!(a4==1))&&(!(a18==1)&&((!(a4==1)&&((a9==7)&&(a28==1)))&&(a3==1))))){ + a5 = 4; + a26 = 0; + a19 = 1; + a23 = 1; + a16 = 7; + a12 = 1; + return -1; + } else if(((((!(a26==1)&&(((a1==14)&&((((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a5==4)&&(a9==9)))&&(input==1))&&!(a26==1)))&&!(a7==1)))&&(a21==10))&&(a19==4))&&(((((!(a14==1)&&((a2==1)||(a27==1)))||!(a3==1))&&(a17==2))&&(a16==9))&&(a20==1)))){ + a8 = 0; + a9 = 7; + a19 = 1; + a5 = 4; + a7 = 0; + a1 = 12; + a3 = 1; + a16 = 7; + return -1; + } else if((((a12==1)&&(((a5==5)&&((((a12==1)&&((a2==1)&&((input==6)&&(a1==14))))&&!(a20==1))&&(a2==1)))&&(a12==1)))&&((a17==2)&&((((a16==10)&&(((a6==1)&&(a19==5))&&(a21==12)))&&(a9==8))||!(a2==1))))){ + a22 = 1; + a5 = 6; + a1 = 12; + a20 = 1; + a16 = 7; + a2 = 0; + a21 = 10; + a19 = 1; + a9 = 7; + a3 = 0; + return -1; + } else if(((!(a23==1)||(((a16==9)&&((a19==4)&&((a7==1)||(a6==1))))&&(a17==2)))&&((a20==1)&&((a9==9)&&((a11==1)&&(((!(a14==1)&&((a23==1)&&((a1==13)&&(((a5==4)||(a5==5))&&(input==6)))))&&!(a18==1))&&(a21==10))))))){ + a1 = 12; + a5 = 4; + a16 = 7; + a13 = 1; + a19 = 1; + a14 = 0; + a26 = 0; + a9 = 7; + return -1; + } else if((((a5==5)&&(((a16==11)&&((a3==1)&&(a21==10)))||!(a11==1)))&&((a6==1)&&((a28==1)&&((!(a24==1)&&(((a19==1)&&((!(a26==1)&&(((input==6)&&(a1==12))&&(a17==2)))&&(a9==8)))&&!(a20==1)))&&!(a24==1)))))){ + if((a16==10)){ + a8 = 1; + a5 = 6; + a19 = 2; + a14 = 1; + a20 = 1; + a29 = 0; + a1 = 13; + a9 = 11; + }else{ + a7 = 1; + a5 = 6; + a20 = 1; + a13 = 0; + a24 = 1; + a1 = 14; + a19 = 3; + a21 = 12; + a16 = 7; + } + return 21; + } else if((((a23==1)&&(((a16==7)&&(!(a7==1)&&((a9==11)&&((a6==1)||!(a13==1)))))&&(a21==10)))&&(((((((((input==4)&&(a1==14))&&!(a27==1))&&(a5==6))&&(a19==5))&&(a3==1))&&(a20==1))&&(a17==2))&&!(a14==1)))){ + a14 = 0; + a5 = 4; + a1 = 12; + a19 = 1; + a8 = 0; + a9 = 7; + a23 = 1; + return -1; + } else if((((!(a0==1)&&((a16==8)&&((a17==2)&&(((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11)))&&(input==4)))))&&(a2==1))&&(((!(a26==1)&&((((a1==13)&&(((a12==1)&&(a19==4))&&(a20==1)))&&(a21==10))||(a7==1)))||(a4==1))||(a8==1)))){ + a16 = 10; + a8 = 0; + a19 = 1; + a4 = 0; + a9 = 7; + a3 = 1; + a5 = 6; + return 21; + } else if((((!(a13==1)||((a17==2)&&((a1==14)&&(((a16==11)&&(a13==1))&&(a21==12)))))||(a24==1))&&(!(a4==1)&&((a19==3)&&((!(a7==1)&&((a3==1)&&(((input==4)&&((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4))))&&(a20==1))))&&!(a26==1)))))){ + a5 = 4; + a28 = 1; + a9 = 9; + a2 = 1; + a1 = 13; + a19 = 4; + a16 = 9; + a6 = 1; + return 25; + } else if((((((a11==1)&&(((a2==1)&&(((a17==2)&&((a1==14)&&(input==3)))&&(a21==12)))&&!(a20==1)))&&(a19==5))&&(a5==5))&&(!(a18==1)&&(((a16==10)&&((a9==11)&&(((a28==1)&&(a3==1))&&!(a27==1))))||(a24==1))))){ + a19 = 1; + a16 = 7; + a15 = 0; + a7 = 1; + a26 = 1; + a1 = 13; + a21 = 10; + a20 = 1; + return 21; + } else if((((((a17==2)&&((a11==1)&&((input==3)&&(((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))))))&&!(a20==1))&&(a1==12))&&((((a26==1)||(!(a3==1)||((((a16==7)&&(!(a23==1)||(a28==1)))&&(a21==12))&&(a19==2))))||(a14==1))&&(a6==1)))){ + a5 = 4; + a9 = 7; + a7 = 0; + a20 = 1; + a12 = 1; + a18 = 0; + a19 = 1; + a21 = 10; + return -1; + } else if(((((a21==12)&&((a17==2)&&(((a11==1)&&((a19==2)&&(a23==1)))&&(a20==1))))||(a27==1))&&((a28==1)&&(!(a7==1)&&((a1==12)&&((((a16==10)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&!(a14==1)))&&(a9==10))&&!(a27==1))))))){ + a9 = 9; + a8 = 0; + a11 = 1; + a21 = 10; + a1 = 13; + a12 = 1; + a16 = 7; + a5 = 4; + return 25; + } else if((((a21==11)&&(((a26==1)||(!(a23==1)||(a3==1)))||(a27==1)))&&(((a2==1)&&(!(a20==1)&&((!(a0==1)&&((a1==12)&&(((a17==2)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==5)))&&(a3==1))))&&(a16==9))))&&(a19==1)))){ + a14 = 1; + a16 = 7; + a25 = 0; + a5 = 6; + a19 = 2; + a9 = 10; + a20 = 1; + a21 = 10; + return 26; + } else if(((((a9==7)&&(a6==1))||(a26==1))&&(((((a6==1)&&(!(a7==1)&&((a13==1)&&((((a16==7)&&(!(a26==1)&&(((input==4)&&((a5==5)||(a5==6)))&&!(a0==1))))&&(a20==1))&&(a21==12)))))&&(a19==1))&&(a1==13))&&(a17==2)))){ + a6 = 1; + a0 = 0; + a8 = 0; + a19 = 5; + a16 = 8; + a5 = 5; + return 26; + } else if((((((((a17==2)&&((!(a4==1)&&(!(a0==1)&&((input==1)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5))))))&&(a21==10)))&&(a1==13))&&!(a8==1))&&!(a7==1))&&(a16==9))&&(((((a13==1)&&(a19==1))&&!(a18==1))||!(a11==1))&&!(a20==1)))){ + a9 = 11; + a5 = 6; + a21 = 11; + a1 = 12; + a12 = 0; + a29 = 1; + a20 = 1; + a19 = 2; + a16 = 7; + a18 = 1; + return 21; + } else if((((a17==2)&&((a28==1)&&(!(a4==1)&&(((((a2==1)&&(a20==1))&&!(a14==1))&&(a19==4))&&(a6==1)))))&&(((a28==1)&&(!(a8==1)&&(((a21==12)&&((a16==8)&&((input==1)&&((a5==5)||(a5==6)))))&&(a9==11))))&&(a1==13)))){ + a12 = 1; + a9 = 10; + a8 = 0; + a1 = 12; + a5 = 6; + a16 = 10; + a11 = 1; + return 21; + } else if(((((((a16==8)&&((((a1==12)&&((a11==1)&&(a23==1)))&&(a3==1))&&(a21==11)))&&(a17==2))&&(a19==4))||!(a12==1))&&(((a6==1)&&((a9==11)&&((((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&(a11==1))&&(a20==1))))&&!(a4==1)))){ + a14 = 0; + a21 = 10; + a28 = 1; + a5 = 4; + a3 = 1; + a9 = 7; + return -1; + } else if(((((((((a16==8)&&(input==1))&&!(a26==1))&&(a12==1))&&(a23==1))&&(a5==6))&&(a20==1))&&((a21==12)&&((a19==2)&&((a17==2)&&(!(a3==1)||((a1==14)&&((a23==1)&&(((a27==1)||(a2==1))&&(a9==11)))))))))){ + if((a3==1)){ + a0 = 0; + a8 = 0; + a20 = 0; + a5 = 5; + a1 = 12; + a21 = 10; + a4 = 0; + a19 = 5; + }else{ + a3 = 1; + a2 = 1; + a9 = 10; + a21 = 10; + a11 = 1; + a16 = 7; + } + return 21; + } else if((((((a19==2)&&((a12==1)&&(((a6==1)&&(a1==13))||(a8==1))))&&(a17==2))&&!(a20==1))&&((a16==7)&&((a3==1)&&((((a21==10)&&(((((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6))))&&(input==4))&&!(a26==1)))&&!(a14==1))&&(a2==1)))))){ + a1 = 12; + a19 = 1; + a28 = 1; + a11 = 1; + a20 = 1; + a6 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if((((a6==1)&&(((a9==9)&&((((a5==4)||(a5==5))&&(input==3))&&(a16==8)))&&!(a8==1)))&&(((!(a24==1)&&((!(a20==1)&&((a1==14)&&((a19==3)&&((a21==12)&&((a6==1)&&(a12==1))))))&&(a17==2)))||!(a11==1))&&!(a8==1)))){ + a19 = 5; + a20 = 1; + a1 = 13; + a16 = 11; + a9 = 11; + a5 = 4; + a18 = 1; + a8 = 1; + a10 = 1; + return -1; + } else if((((a2==1)&&(((!(a18==1)&&((a9==7)&&(((input==1)&&(a16==10))&&(a3==1))))&&!(a0==1))&&(a23==1)))&&((a5==4)&&((((a21==12)&&((((a2==1)&&(a19==5))&&!(a20==1))&&!(a26==1)))&&(a1==14))&&(a17==2))))){ + a19 = 1; + a9 = 8; + a27 = 1; + a16 = 9; + a5 = 5; + a21 = 10; + a3 = 0; + a25 = 1; + a20 = 1; + return -1; + } else if((((a19==1)&&(!(a14==1)&&((((a23==1)&&(a20==1))&&(a21==11))&&(a1==12))))&&((!(a18==1)&&(((a17==2)&&(((((((a5==5)||(a5==6))&&(input==1))&&(a9==7))&&!(a26==1))&&!(a8==1))&&!(a26==1)))&&(a16==9)))&&(a12==1)))){ + a1 = 13; + a16 = 8; + a7 = 0; + a19 = 5; + a2 = 1; + a9 = 10; + a5 = 5; + a23 = 1; + a21 = 12; + return 22; + } else if(((!(a24==1)&&((a19==4)&&(((a16==9)&&((a5==5)&&((!(a27==1)&&((input==4)&&(a1==13)))&&(a17==2))))&&!(a0==1))))&&(!(a6==1)||((((a9==9)&&(((a14==1)||(a12==1))||!(a28==1)))&&(a21==10))&&!(a20==1))))){ + if((a9==9)){ + a23 = 0; + a16 = 7; + a15 = 0; + a5 = 4; + a7 = 1; + a1 = 12; + a19 = 2; + a20 = 1; + }else{ + a19 = 2; + a29 = 1; + a9 = 7; + a16 = 7; + a5 = 4; + a20 = 1; + a22 = 0; + a12 = 0; + } + return -1; + } else if((((a1==14)&&((a16==9)&&(!(a27==1)&&((((a5==4)||(a5==5))&&(input==3))&&(a19==3)))))&&((a23==1)&&(!(a27==1)&&(((a11==1)&&((a17==2)&&((!(a2==1)||(((a12==1)&&!(a20==1))&&(a9==10)))&&(a21==12))))||(a24==1)))))){ + a21 = 10; + a5 = 6; + a18 = 1; + a8 = 1; + a2 = 0; + a9 = 8; + return -1; + } else if((((a12==1)&&(((!(a2==1)||((a1==14)&&((((a9==11)&&(a13==1))&&(a21==11))&&(a23==1))))||!(a28==1))&&(a19==4)))&&((((((a20==1)&&(((a5==5)||(a5==6))&&(input==4)))&&(a17==2))&&(a16==7))&&(a13==1))&&!(a18==1)))){ + a13 = 1; + a24 = 0; + a5 = 4; + a19 = 5; + a2 = 1; + a9 = 7; + a16 = 8; + return 26; + } else if(((((a19==2)&&(input==3))&&!(a8==1))&&((!(a28==1)||(!(a8==1)&&(((a16==11)&&(!(a24==1)&&(((a9==9)&&(((((a21==11)&&(a28==1))&&(a5==6))&&(a20==1))&&!(a8==1)))&&(a17==2))))&&(a1==12))))&&(a12==1)))){ + if((a28==1)){ + a1 = 14; + a5 = 4; + a11 = 1; + a16 = 8; + a20 = 0; + a23 = 1; + a19 = 3; + a26 = 0; + a9 = 10; + }else{ + a9 = 7; + a1 = 13; + a19 = 5; + a5 = 4; + a23 = 1; + a16 = 9; + a26 = 0; + a8 = 0; + } + return 26; + } else if(((((a16==8)&&(!(a4==1)&&((!(a8==1)&&((a1==13)&&((a19==4)&&((a6==1)&&((input==5)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9))))))))&&(a21==12))))&&!(a14==1))&&((a13==1)&&(!(a24==1)&&((a17==2)&&((a13==1)&&(a20==1))))))){ + a26 = 0; + a1 = 12; + a16 = 7; + a21 = 10; + a5 = 4; + a19 = 1; + a6 = 1; + a9 = 7; + a3 = 1; + return -1; + } else if((((a3==1)&&((a21==12)&&((((!(a18==1)&&((a1==12)&&((input==4)&&(a16==7))))&&!(a20==1))&&(a9==9))&&(a5==5))))&&((!(a18==1)&&(((a0==1)||(((a19==3)&&(a3==1))&&(a17==2)))||(a4==1)))||(a26==1)))){ + a26 = 0; + a1 = 14; + a16 = 8; + a2 = 1; + a24 = 0; + a21 = 10; + a19 = 5; + a9 = 8; + a20 = 1; + return 25; + } else if(((((((a12==1)&&((a1==13)&&((((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==3))))&&!(a4==1))&&!(a27==1))&&(a21==11))&&((a16==10)&&((a7==1)||((((a17==2)&&(!(a20==1)&&((a0==1)||(a23==1))))&&(a28==1))&&(a19==2)))))){ + a15 = 1; + a21 = 10; + a9 = 8; + a5 = 4; + a20 = 1; + a16 = 9; + a11 = 0; + a29 = 0; + return -1; + } else if((((((a0==1)||((a19==4)&&(((((a23==1)||(a26==1))&&(a5==4))&&(a9==11))||!(a6==1))))&&!(a20==1))||!(a3==1))&&((((!(a4==1)&&(((input==1)&&(a21==10))&&(a16==7)))&&(a17==2))&&(a1==13))&&!(a26==1)))){ + a1 = 12; + a19 = 1; + a8 = 0; + a14 = 0; + a0 = 0; + a9 = 7; + a20 = 1; + return -1; + } else if((((a16==8)&&((a13==1)&&((a26==1)||(!(a20==1)&&((a2==1)&&(a1==13))))))&&(((a12==1)&&((((a17==2)&&(!(a24==1)&&(((a9==8)&&((input==3)&&((a5==5)||(a5==6))))&&(a19==4))))&&(a21==11))&&(a6==1)))&&(a3==1)))){ + a2 = 1; + a23 = 1; + a3 = 1; + a16 = 7; + a5 = 4; + a1 = 12; + a20 = 1; + a19 = 1; + a21 = 10; + a9 = 7; + return -1; + } else if(((((a5==4)&&((a17==2)&&(((!(a26==1)&&((a21==12)&&(input==6)))&&(a28==1))&&(a20==1))))&&!(a14==1))&&(!(a4==1)&&(((((a16==11)&&(!(a14==1)&&((a2==1)&&(a19==5))))&&(a9==10))&&(a1==13))||(a0==1))))){ + a14 = 0; + a27 = 0; + a16 = 7; + a9 = 7; + a5 = 6; + a21 = 10; + a12 = 1; + a20 = 0; + a19 = 1; + return 22; + } else if(((((!(a4==1)&&(((a9==10)&&((a19==5)&&(((input==3)&&((a5==5)||(a5==6)))&&(a21==10))))&&(a17==2)))&&(a28==1))&&(a13==1))&&((a20==1)&&((!(a0==1)&&((a3==1)&&((a1==14)&&((a11==1)&&(a13==1)))))&&(a16==9))))){ + a1 = 12; + a5 = 4; + a16 = 7; + a11 = 1; + a3 = 1; + a4 = 0; + a9 = 7; + a19 = 1; + return -1; + } else if((((a19==3)&&(((a6==1)&&((a21==10)&&(((a5==4)||(a5==5))&&(input==3))))&&(a20==1)))&&((a9==8)&&((a16==9)&&((a1==12)&&(!(a8==1)&&((a13==1)&&((a17==2)&&((a12==1)&&((a12==1)&&((a12==1)&&(a3==1)))))))))))){ + a21 = 11; + a9 = 11; + a5 = 4; + a19 = 5; + a4 = 0; + a12 = 1; + return 21; + } else if((((a3==1)&&(((a19==4)&&((((a28==1)&&((input==6)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))))&&!(a20==1))&&(a21==10)))&&(a6==1)))&&((a12==1)&&((((a17==2)&&(((a1==12)&&(a2==1))&&!(a8==1)))&&(a16==9))||!(a28==1))))){ + a28 = 0; + a15 = 0; + a1 = 14; + a22 = 0; + a19 = 2; + a5 = 4; + a9 = 7; + a21 = 11; + return 21; + } else if((((a21==12)&&((a3==1)&&((a28==1)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&!(a4==1))&&(a19==4)))))&&((a17==2)&&(!(a20==1)&&(!(a24==1)&&(((a13==1)&&((((a2==1)&&(a1==12))&&(a16==7))||(a24==1)))&&(a9==10))))))){ + a24 = 0; + a19 = 1; + a20 = 1; + a9 = 7; + a0 = 0; + a5 = 4; + a23 = 1; + a21 = 10; + return -1; + } else if(((!(a26==1)&&((((a11==1)&&(((((a19==4)&&((input==1)&&((a5==4)||(a5==5))))&&(a1==14))&&(a20==1))&&(a3==1)))&&(a2==1))&&(a2==1)))&&((a26==1)||((a16==10)&&(((a9==8)&&((a17==2)&&(a28==1)))&&(a21==10)))))){ + a9 = 10; + a1 = 12; + a14 = 0; + a4 = 0; + a0 = 0; + a5 = 6; + a19 = 1; + return 21; + } else if((((a17==2)&&((!(a3==1)||((a19==4)&&(((a9==10)&&(a11==1))&&(a21==11))))||(a26==1)))&&(((a11==1)&&(((((((a1==12)&&(input==1))&&!(a8==1))&&(a20==1))&&(a28==1))&&(a16==10))&&!(a26==1)))&&(a5==6)))){ + a1 = 14; + a21 = 10; + a19 = 2; + a16 = 7; + a9 = 8; + a3 = 1; + a2 = 1; + return 23; + } else if(((((a23==1)&&(!(a14==1)&&(!(a4==1)&&(((a6==1)&&((((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11)))&&(input==6))&&(a20==1)))&&(a19==3)))))&&(a17==2))&&((a21==12)&&((a16==10)&&((((a6==1)&&(a1==12))&&!(a14==1))&&!(a24==1)))))){ + a23 = 1; + a19 = 2; + a9 = 9; + a16 = 7; + a27 = 0; + a1 = 13; + a5 = 5; + a4 = 0; + a21 = 10; + return 25; + } else if(((((a23==1)&&((a21==12)&&(!(a27==1)&&(((a3==1)&&((((input==1)&&(a9==9))&&(a6==1))&&(a16==7)))&&!(a4==1)))))&&(a5==4))&&((a1==13)&&((a17==2)&&(((a12==1)&&((a28==1)&&(a19==2)))&&(a20==1)))))){ + a4 = 0; + a21 = 10; + a1 = 12; + a19 = 3; + a9 = 10; + a26 = 0; + a16 = 9; + a8 = 0; + return 25; + } else if((((a17==2)&&((a1==13)&&((a21==10)&&(!(a11==1)&&(a13==1)))))&&(((a19==4)&&((a16==11)&&((a20==1)&&((a0==1)&&((a4==1)&&((!(a2==1)&&(((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4)))&&(input==4)))&&!(a12==1)))))))&&!(a3==1)))){ + a7 = 1; + a5 = 5; + a9 = 7; + a2 = 0; + a28 = 0; + a1 = 12; + a19 = 2; + return -1; + } else if((((a19==4)&&((a2==1)&&(!(a8==1)&&(((a3==1)&&((a21==10)&&(a3==1)))&&(a20==1)))))&&((a1==12)&&((a16==7)&&(!(a26==1)&&(((!(a14==1)&&((input==5)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))))&&(a17==2))&&!(a27==1))))))){ + a23 = 1; + a9 = 9; + a21 = 11; + a5 = 4; + a24 = 0; + return 22; + } else if(((((((((((a19==1)&&(((input==6)&&(a17==2))&&(a16==7)))&&!(a20==1))&&!(a26==1))&&!(a14==1))&&(a1==12))&&(a11==1))&&(a6==1))&&(a9==7))&&(((a21==11)&&(((a2==1)&&!(a4==1))&&(a5==5)))||!(a23==1)))){ + a4 = 0; + a19 = 4; + a20 = 1; + a16 = 9; + a27 = 0; + a13 = 1; + return 21; + } else if((((a19==4)&&((!(a20==1)&&(((a16==8)&&((input==3)&&((a5==4)||(a5==5))))&&!(a24==1)))&&(a13==1)))&&((a1==14)&&((((a17==2)&&(((!(a4==1)&&((a2==1)&&(a21==10)))&&(a6==1))&&(a9==9)))&&(a6==1))||(a0==1))))){ + a9 = 7; + a28 = 1; + a16 = 7; + a20 = 1; + a1 = 12; + a26 = 0; + a19 = 1; + a5 = 4; + a14 = 0; + return -1; + } else if((((a6==1)&&((((a23==1)&&(a19==1))&&(a17==2))&&(a16==8)))&&(!(a14==1)&&((!(a24==1)&&(((((!(a20==1)&&((a2==1)&&(((a5==5)||(a5==6))&&(input==3))))&&(a9==9))&&(a23==1))&&(a21==11))&&!(a8==1)))&&(a1==13))))){ + a1 = 12; + a16 = 7; + a24 = 0; + a3 = 1; + a9 = 7; + a4 = 0; + a5 = 4; + a21 = 10; + a20 = 1; + return -1; + } else if((((a16==9)&&((a20==1)&&(((a13==1)&&((!(a26==1)&&((((((a2==1)&&(((a19==5)&&(input==4))&&(a9==11)))&&(a21==12))&&!(a4==1))&&!(a26==1))&&(a17==2)))&&(a1==14)))&&(a5==4))))&&(!(a28==1)||(a2==1)))){ + a9 = 7; + a21 = 10; + a1 = 12; + a11 = 1; + a16 = 7; + a19 = 1; + a8 = 0; + a23 = 1; + return -1; + } else if((((a16==8)&&(!(a20==1)&&((a1==12)&&((a28==1)&&(!(a0==1)&&(!(a4==1)&&((input==6)&&((a5==5)||(a5==6)))))))))&&((a17==2)&&(((a9==7)&&(((((a12==1)||!(a12==1))&&!(a14==1))&&!(a0==1))&&(a21==10)))&&(a19==2))))){ + a28 = 1; + a16 = 7; + a5 = 4; + a7 = 0; + a19 = 1; + a8 = 0; + a20 = 1; + return -1; + } else if(((!(a0==1)&&(!(a14==1)&&(((a13==1)&&((a17==2)&&(((a19==1)&&((a21==12)&&(((a5==4)||(a5==5))&&(input==1))))&&(a16==9))))&&(a3==1))))&&((a8==1)||((a9==11)&&(!(a12==1)||(!(a20==1)&&((a1==12)&&(a6==1)))))))){ + a20 = 1; + a12 = 0; + a26 = 1; + a5 = 5; + a21 = 10; + a1 = 13; + a16 = 7; + a9 = 9; + a23 = 0; + return 21; + } else if((((a17==2)&&(((a16==8)&&(((a19==2)&&(((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a5==4)&&(a9==9)))&&(input==6)))&&!(a8==1)))&&(a3==1)))&&(!(a28==1)||((a20==1)&&(!(a2==1)||((a1==12)&&((a4==1)||((a21==11)&&((a0==1)||(a2==1)))))))))){ + a16 = 7; + a5 = 4; + a7 = 0; + a12 = 1; + a21 = 10; + a9 = 7; + a19 = 1; + a8 = 0; + return -1; + } else if((((((((((a2==1)&&(a20==1))&&(a7==1))&&(a19==1))&&(a17==2))&&!(a13==1))&&(a14==1))&&!(a2==1))&&((((a21==12)&&(((a24==1)&&((a16==11)&&((input==3)&&((a5==5)||(a5==6)))))&&(a1==13)))&&(a24==1))&&(a9==10)))){ + a15 = 0; + a11 = 0; + a16 = 7; + a13 = 0; + a9 = 11; + a21 = 10; + a5 = 5; + return -1; + } else if(((((a16==9)&&((input==5)&&((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))))&&!(a20==1))&&(((a24==1)||(((((a19==4)&&((a23==1)&&(!(a4==1)&&((a1==14)&&((a6==1)||(a18==1))))))||(a26==1))&&(a17==2))&&!(a7==1)))&&(a21==12)))){ + if((a20==1)){ + a3 = 0; + a21 = 10; + a19 = 1; + a16 = 7; + a5 = 5; + a8 = 1; + a20 = 1; + a9 = 11; + a27 = 1; + }else{ + a16 = 10; + a5 = 5; + a9 = 8; + a21 = 11; + a2 = 0; + a1 = 13; + a20 = 1; + a0 = 1; + } + return -1; + } else if(((((a13==1)&&(((a9==8)&&((!(a3==1)||(a23==1))||!(a6==1)))&&(a17==2)))||(a14==1))&&(!(a26==1)&&(((((!(a4==1)&&((a16==11)&&(((a5==5)||(a5==6))&&(input==5))))&&(a1==13))&&(a19==3))&&!(a20==1))&&(a21==10))))){ + a26 = 1; + a16 = 10; + a19 = 2; + a9 = 7; + a15 = 0; + a21 = 12; + a5 = 4; + return -1; + } else if((((!(a26==1)&&(((a1==13)&&(!(a4==1)&&(((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==5))&&!(a27==1))))&&(a19==1)))&&!(a8==1))&&((((a0==1)||((a20==1)&&((a16==11)&&((a21==12)&&(a6==1)))))&&(a2==1))&&(a17==2)))){ + a16 = 9; + a27 = 0; + a21 = 11; + a9 = 10; + a19 = 4; + a5 = 4; + a2 = 1; + a8 = 0; + a1 = 14; + return 21; + } else if(((((((a21==12)&&((((input==3)&&((a5==5)||(a5==6)))&&!(a24==1))&&(a9==11)))&&(a17==2))&&(a3==1))&&(a12==1))&&((a13==1)&&(((a19==2)&&(((a16==9)&&(!(a20==1)&&((a11==1)||(a24==1))))&&(a1==14)))&&(a13==1))))){ + a10 = 1; + a5 = 6; + a9 = 8; + a24 = 1; + a21 = 10; + a1 = 12; + a7 = 1; + a16 = 11; + return 23; + } else if((((a1==12)&&((a9==7)&&((((((a2==1)&&((input==1)&&((a5==4)||(a5==5))))&&(a23==1))&&(a12==1))&&!(a26==1))&&(a17==2))))&&((a16==10)&&(((((a21==12)&&((a11==1)||!(a2==1)))||(a27==1))&&(a20==1))&&(a19==2))))){ + a4 = 0; + a21 = 10; + a16 = 8; + a20 = 0; + a27 = 0; + a9 = 11; + a19 = 5; + a5 = 5; + a23 = 1; + return 21; + } else if((((a17==2)&&((((((a9==10)&&(!(a4==1)&&((a0==1)||(a3==1))))||!(a28==1))&&(a20==1))||!(a28==1))&&(a19==1)))&&(!(a4==1)&&((a16==8)&&(((a21==12)&&((a1==12)&&(((a5==4)||(a5==5))&&(input==4))))&&(a13==1)))))){ + a16 = 7; + a18 = 0; + a26 = 0; + a9 = 9; + a19 = 2; + a21 = 10; + a5 = 5; + a1 = 13; + a14 = 0; + return 23; + } else if((((((a2==1)&&((!(a20==1)&&(input==3))&&!(a24==1)))&&(a28==1))&&(a28==1))&&((a16==8)&&((a9==7)&&((a19==5)&&((a17==2)&&(((((a5==5)&&((a6==1)||(a4==1)))&&!(a27==1))&&(a21==12))&&(a1==14)))))))){ + a21 = 10; + a9 = 11; + a20 = 1; + a19 = 1; + a16 = 7; + a26 = 1; + a0 = 1; + a8 = 1; + return -1; + } else if((((!(a24==1)&&((a9==11)&&(((a21==12)&&((a17==2)&&((((a5==5)||(a5==6))&&(input==3))&&!(a14==1))))&&(a11==1))))&&(a23==1))&&((a20==1)&&(((a19==5)&&((a16==9)&&((!(a8==1)&&(a12==1))&&(a1==14))))||(a24==1))))){ + a28 = 1; + a4 = 0; + a23 = 1; + a21 = 10; + a9 = 7; + a1 = 12; + a19 = 1; + a16 = 7; + a5 = 4; + return -1; + } else if((((((a16==9)&&(((((input==4)&&(((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))))&&!(a14==1))&&(a28==1))&&(a17==2)))&&(a19==2))&&!(a26==1))&&((a13==1)&&((!(a20==1)&&((a21==11)&&(!(a4==1)&&(!(a28==1)||(a3==1)))))&&(a1==14))))){ + a1 = 13; + a16 = 7; + a19 = 1; + a10 = 0; + a5 = 4; + a21 = 10; + a9 = 11; + a22 = 1; + a20 = 1; + a6 = 0; + return 23; + } else if((((a11==1)&&(!(a27==1)&&(((a16==8)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&!(a24==1))&&!(a20==1)))&&(a12==1))))&&(((((a1==12)&&((((a6==1)&&(a21==10))&&(a19==5))&&(a17==2)))&&!(a8==1))&&(a9==8))&&!(a27==1)))){ + a1 = 13; + a5 = 4; + a0 = 0; + a19 = 2; + a28 = 1; + a9 = 9; + a16 = 7; + a8 = 0; + a20 = 1; + return 25; + } else if((((a0==1)||((((a11==1)||!(a11==1))&&(a21==11))&&(a13==1)))&&(((a9==9)&&((a17==2)&&(((!(a26==1)&&((((a19==4)&&((input==3)&&((a5==5)||(a5==6))))&&(a6==1))&&(a23==1)))&&(a1==13))&&(a16==7))))&&!(a20==1)))){ + a7 = 0; + a20 = 1; + a4 = 0; + a21 = 10; + a19 = 1; + a1 = 14; + a8 = 0; + a5 = 6; + a16 = 9; + a9 = 10; + return 25; + } else if((((!(a14==1)&&(((a21==11)&&(!(a13==1)||((a6==1)&&(a1==12))))&&(a16==8)))&&(a9==11))&&(!(a20==1)&&((!(a14==1)&&((((a6==1)&&((a2==1)&&(((a5==4)||(a5==5))&&(input==5))))&&(a2==1))&&(a17==2)))&&(a19==5))))){ + a1 = 14; + a19 = 1; + a16 = 7; + a25 = 1; + a21 = 10; + a20 = 1; + a5 = 5; + a9 = 9; + a26 = 1; + return 21; + } else if((((((a21==11)&&((((a7==1)&&((((a5==4)||(a5==5))&&(input==3))&&!(a20==1)))&&!(a23==1))&&(a17==2)))&&(a9==11))&&!(a12==1))&&((a1==14)&&((!(a3==1)&&((((a11==1)&&(a26==1))&&(a19==2))&&(a16==8)))&&(a18==1))))){ + a29 = 0; + a20 = 1; + a9 = 10; + a1 = 12; + a16 = 7; + a21 = 10; + a3 = 0; + a5 = 4; + a23 = 0; + return -1; + } else if((((a16==8)&&(((a1==14)&&((!(a7==1)&&((!(a8==1)&&((input==3)&&((a5==4)||(a5==5))))&&(a21==10)))&&(a19==1)))&&(a9==11)))&&((!(a14==1)&&((a14==1)||((a17==2)&&(!(a7==1)&&(!(a11==1)||(a2==1))))))&&(a20==1)))){ + a16 = 7; + a12 = 1; + a8 = 0; + a9 = 7; + a1 = 12; + a5 = 4; + return -1; + } else if((((a21==11)&&((((a1==13)&&((a12==1)&&(!(a20==1)&&((a12==1)&&(a12==1)))))&&(a17==2))&&!(a8==1)))&&((a11==1)&&(!(a14==1)&&((a16==10)&&(!(a27==1)&&((a19==2)&&((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))&&(input==1))))))))){ + a14 = 1; + a19 = 1; + a1 = 14; + a9 = 8; + a18 = 1; + a29 = 1; + a16 = 7; + a20 = 1; + a5 = 5; + a21 = 10; + return -1; + } else if((((((a11==1)&&((((((input==3)&&(a16==11))&&!(a4==1))&&(a1==13))&&(a19==5))&&(a5==5)))&&(a9==9))&&(a20==1))&&(((((a23==1)&&((!(a23==1)||(a23==1))&&(a3==1)))&&(a23==1))&&(a17==2))&&(a21==11)))){ + if((a8==1)){ + a9 = 8; + a1 = 12; + a27 = 0; + a11 = 1; + a16 = 8; + a20 = 0; + a24 = 0; + }else{ + a0 = 0; + a9 = 7; + a2 = 1; + a19 = 2; + } + return 21; + } else if(((((a17==2)&&((((a23==1)&&((a13==1)&&((a6==1)&&(((a5==4)||(a5==5))&&(input==3)))))&&(a2==1))&&!(a8==1)))&&(a20==1))&&(((a9==8)&&((a1==12)&&(((a21==11)&&((a28==1)&&(a2==1)))&&(a16==11))))&&(a19==2)))){ + a9 = 7; + a0 = 0; + a21 = 10; + a27 = 0; + a5 = 4; + a28 = 1; + a16 = 7; + a19 = 1; + return -1; + } else if(((((((a28==1)&&((a21==12)&&((input==1)&&((((a9==7)&&((a5==4)&&(a1==12)))&&(a19==5))||(((((a1==14)&&(a5==5))&&(a9==11))&&(a19==4))||((a19==4)&&((a9==11)&&((a1==14)&&(a5==6)))))))))&&(a23==1))&&(a17==2))&&!(a8==1))&&((a28==1)&&(!(a20==1)&&(((!(a27==1)&&(a6==1))&&(a16==7))||!(a28==1)))))){ + a19 = 2; + a5 = 4; + a8 = 0; + a1 = 14; + a21 = 10; + a9 = 10; + a16 = 9; + a23 = 1; + a20 = 1; + a18 = 0; + return 21; + } else if((((!(a18==1)&&((a2==1)&&((a21==10)&&((a12==1)&&((((a5==4)||(a5==5))&&(input==4))&&(a9==7))))))&&!(a20==1))&&((a19==4)&&(!(a7==1)&&((!(a13==1)||((((a2==1)&&(a6==1))&&(a16==9))&&(a1==12)))&&(a17==2)))))){ + if((a13==1)){ + a19 = 1; + a5 = 4; + a20 = 1; + a6 = 0; + a28 = 0; + a13 = 0; + a9 = 11; + a16 = 7; + }else{ + a5 = 5; + a25 = 1; + a19 = 3; + a2 = 0; + a21 = 12; + a16 = 7; + a15 = 0; + a20 = 1; + a1 = 13; + a9 = 10; + } + return 26; + } else if(((((a11==1)&&((a5==5)&&(((a26==1)||((!(a20==1)&&(a6==1))&&(a1==14)))&&(a19==5))))&&(a23==1))&&((((a16==9)&&((a21==11)&&((a2==1)&&((a17==2)&&((a9==9)&&(input==3))))))&&(a6==1))&&!(a0==1)))){ + a1 = 13; + a21 = 10; + a5 = 6; + a15 = 0; + a20 = 1; + a19 = 1; + a23 = 0; + a16 = 7; + a29 = 1; + return 23; + } else if(((!(a18==1)&&((a1==12)&&(((a12==1)&&((a21==12)&&(!(a2==1)||((a11==1)||!(a28==1)))))&&!(a20==1))))&&((a17==2)&&((a28==1)&&((a9==9)&&((a23==1)&&((a16==7)&&((a19==5)&&((input==6)&&((a5==4)||(a5==5))))))))))){ + a1 = 14; + a20 = 1; + a5 = 6; + a21 = 11; + a18 = 0; + a19 = 1; + a9 = 10; + a2 = 1; + a26 = 0; + return 21; + } else if((((a21==10)&&((a9==9)&&(!(a28==1)&&((((a7==1)&&(((a5==4)||(a5==5))&&(input==1)))&&(a8==1))&&(a1==12)))))&&(((!(a6==1)&&((a24==1)&&(((a16==9)&&((a23==1)&&(a18==1)))&&(a20==1))))&&(a17==2))&&(a19==4)))){ + a16 = 7; + a5 = 6; + a19 = 1; + a26 = 1; + a9 = 10; + a28 = 0; + a1 = 14; + return 21; + } else if((((a21==12)&&((a1==13)&&((a9==7)&&((a16==8)&&(!(a18==1)&&(((a5==6)&&((a23==1)||(a18==1)))&&(a19==4)))))))&&((((((a11==1)&&((a20==1)&&(input==4)))&&(a13==1))&&!(a8==1))&&(a6==1))&&(a17==2)))){ + a5 = 4; + a21 = 10; + a7 = 0; + a16 = 7; + a19 = 1; + a1 = 12; + a8 = 0; + a18 = 0; + return -1; + } else if(((!(a8==1)&&((((a9==7)&&((((((((a5==5)||(a5==6))&&(input==4))&&(a19==4))&&(a3==1))&&(a21==10))&&(a11==1))&&(a11==1)))&&(a1==12))&&!(a14==1)))&&((((!(a20==1)&&(a2==1))||(a27==1))&&(a16==10))&&(a17==2)))){ + a1 = 14; + a21 = 12; + a20 = 1; + a6 = 0; + a18 = 1; + a19 = 5; + a5 = 4; + a9 = 10; + a16 = 8; + a29 = 1; + return -1; + } else if((((a16==11)&&((a21==10)&&(((((a9==10)&&((a2==1)&&((((a13==1)&&((((a5==5)||(a5==6))&&(input==5))&&(a3==1)))&&(a20==1))&&!(a14==1))))&&(a17==2))&&(a19==5))&&(a1==14))))&&((a2==1)&&((a2==1)||(a18==1))))){ + a21 = 11; + a5 = 5; + a14 = 0; + a7 = 0; + a18 = 0; + a1 = 12; + return 25; + } else if(((((!(a26==1)&&(((input==3)&&(((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))))&&(a17==2)))&&!(a20==1))&&(a21==12))&&((a27==1)||((a19==4)&&(((a16==10)&&((a11==1)&&(((a4==1)||((a7==1)||(a13==1)))&&(a1==14))))&&!(a26==1)))))){ + a16 = 11; + a23 = 0; + a5 = 5; + a20 = 1; + a22 = 1; + a15 = 1; + a9 = 11; + a19 = 1; + return -1; + } else if((((((a20==1)&&(((a5==4)&&((a11==1)&&(a3==1)))||!(a13==1)))&&(a1==14))||!(a3==1))&&((a11==1)&&((a17==2)&&((!(a27==1)&&(((a21==12)&&((a28==1)&&((a19==4)&&(input==4))))&&(a16==8)))&&(a9==7)))))){ + a7 = 0; + a8 = 0; + a27 = 0; + return -1; + } else if((((a2==1)&&(((a16==7)&&(!(a20==1)&&((a12==1)&&(a17==2))))||!(a12==1)))&&(((a19==3)&&((((((((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))&&(input==4))&&!(a8==1))&&(a1==14))&&(a21==12))&&(a6==1))&&!(a4==1)))&&(a12==1)))){ + a20 = 1; + a21 = 10; + a19 = 1; + a24 = 0; + a9 = 7; + a1 = 12; + a4 = 0; + a5 = 4; + a2 = 1; + return -1; + } else if((((a11==1)&&((a11==1)&&(((a7==1)||(!(a20==1)&&((a3==1)&&(a9==10))))&&(a2==1))))&&(((a16==7)&&((a19==5)&&((((((a1==14)&&(input==6))&&(a17==2))&&!(a0==1))&&(a5==4))&&(a21==11))))&&(a13==1)))){ + a7 = 0; + a9 = 9; + a20 = 1; + a3 = 1; + a27 = 0; + a16 = 8; + a19 = 2; + a21 = 10; + return 22; + } else if((((a16==8)&&(((((a19==2)&&((((a21==10)&&((input==3)&&(((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))))&&!(a14==1))&&(a13==1)))&&!(a8==1))&&(a6==1))&&(a20==1)))&&(!(a4==1)&&(!(a13==1)||((a1==12)&&((a6==1)&&(a17==2))))))){ + a24 = 0; + a5 = 4; + a2 = 1; + a13 = 1; + a19 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if((((a11==1)&&((((((a17==2)&&((((a20==1)&&(input==5))&&!(a24==1))&&(a1==13)))&&(a9==8))&&(a19==3))&&(a21==12))&&!(a27==1)))&&((a16==11)&&(((((a6==1)&&(a11==1))&&!(a18==1))&&(a3==1))&&(a5==4))))){ + a27 = 0; + a19 = 1; + a9 = 7; + a1 = 12; + a28 = 1; + a2 = 1; + a16 = 7; + a21 = 10; + return -1; + } else if((((((((((a19==2)&&(((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==1))&&(a14==1)))&&(a18==1))&&!(a11==1))&&(a14==1))&&(a17==2))&&!(a20==1))&&!(a28==1))&&(((a21==11)&&((a16==8)&&((a1==13)&&(a2==1))))&&!(a11==1)))){ + a20 = 1; + a19 = 1; + a16 = 7; + a22 = 1; + a24 = 1; + a1 = 14; + a21 = 10; + a5 = 5; + a9 = 9; + a12 = 0; + return -1; + } else if(((!(a13==1)||(((!(a18==1)&&((a5==4)&&(a28==1)))&&(a21==12))||(a4==1)))&&(!(a8==1)&&((((a1==12)&&(((a2==1)&&((a3==1)&&(!(a20==1)&&((a19==1)&&(input==4)))))&&(a16==10)))&&(a17==2))&&(a9==7))))){ + a3 = 0; + a16 = 7; + a21 = 10; + a1 = 13; + a20 = 1; + a6 = 0; + a10 = 1; + return 22; + } else if((((a17==2)&&((((a21==11)&&((a13==1)&&(((a16==8)&&(input==1))&&(a5==5))))&&(a20==1))&&(a9==7)))&&((a1==13)&&(!(a12==1)||((!(a27==1)&&((((a11==1)||!(a28==1))&&!(a24==1))||(a24==1)))&&(a19==4)))))){ + a5 = 4; + a1 = 12; + a19 = 1; + a11 = 1; + a26 = 0; + a16 = 7; + a6 = 1; + a21 = 10; + return -1; + } else if((((a13==1)&&(!(a4==1)&&((a17==2)&&(((a23==1)&&((!(a4==1)&&((input==1)&&(((a19==3)&&(((a5==6)&&(a1==14))&&(a9==11)))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==4)))))&&!(a14==1)))&&(a21==10)))))&&(!(a24==1)&&(((a3==1)&&!(a20==1))&&(a16==7))))){ + a12 = 1; + a5 = 4; + a2 = 1; + a9 = 7; + a1 = 12; + a7 = 0; + a20 = 1; + a19 = 1; + return -1; + } else if((((a3==1)&&(((a6==1)&&((a28==1)&&((a1==13)&&(!(a7==1)&&((a3==1)&&(((a5==5)&&((a17==2)&&(((a9==11)&&(input==3))&&!(a20==1))))&&(a21==10)))))))&&!(a8==1)))&&(((a3==1)&&(a16==11))&&(a19==1)))){ + if((a27==1)){ + a23 = 0; + a16 = 7; + a1 = 12; + a20 = 1; + a19 = 2; + a9 = 9; + a15 = 1; + a13 = 0; + }else{ + a3 = 0; + a20 = 1; + a9 = 10; + a1 = 14; + a16 = 7; + a5 = 4; + a10 = 0; + a7 = 1; + } + return 21; + } else if((((a9==11)&&((a23==1)&&(!(a4==1)&&((((input==3)&&(a21==12))&&(a19==2))&&!(a14==1)))))&&(((a1==14)&&((a5==6)&&((((a16==8)&&(((a3==1)||(a7==1))||!(a13==1)))&&!(a27==1))&&(a17==2))))&&(a20==1)))){ + a4 = 0; + a5 = 4; + a21 = 10; + a1 = 13; + a16 = 7; + a23 = 1; + a9 = 9; + a26 = 0; + return -1; + } else if((((a1==14)&&(((((a19==4)&&(((a9==7)&&(a28==1))||(a26==1)))||!(a28==1))&&(a16==10))&&!(a20==1)))&&(((a17==2)&&(!(a7==1)&&((((a3==1)&&(((a5==4)||(a5==5))&&(input==6)))&&!(a4==1))&&(a21==10))))&&(a2==1)))){ + a19 = 2; + a18 = 1; + a16 = 7; + a20 = 1; + a5 = 6; + a1 = 12; + a9 = 9; + a7 = 1; + a11 = 0; + return -1; + } else if(((((a16==10)&&(((((a21==12)&&((a20==1)&&(a11==1)))&&(a9==9))&&!(a7==1))&&(a17==2)))&&!(a4==1))&&(((((a23==1)&&(((((a5==5)||(a5==6))&&(input==3))&&(a19==2))&&!(a0==1)))&&(a1==12))&&!(a14==1))&&(a13==1)))){ + a0 = 0; + a4 = 0; + a16 = 7; + a1 = 13; + a23 = 1; + a21 = 10; + a5 = 5; + return -1; + } else if((((!(a2==1)&&(((a19==5)&&(((input==3)&&(a21==10))&&(a17==2)))&&(a1==14)))&&(a8==1))&&((a9==11)&&(!(a3==1)&&((a20==1)&&(((a5==6)&&(((!(a11==1)&&(a23==1))&&(a4==1))&&(a27==1)))&&(a16==7))))))){ + a19 = 1; + a1 = 13; + a9 = 10; + a4 = 1; + a11 = 0; + a10 = 1; + return -1; + } else if(((((((!(a11==1)||(a3==1))&&!(a8==1))||!(a23==1))&&(a1==13))||(a27==1))&&(((a19==4)&&((a5==6)&&(((!(a7==1)&&((a20==1)&&(((a9==9)&&(input==1))&&(a17==2))))&&(a13==1))&&(a16==10))))&&(a21==12)))){ + a21 = 10; + a18 = 0; + a9 = 7; + a1 = 12; + a19 = 1; + a11 = 1; + a16 = 7; + a8 = 0; + a5 = 4; + return -1; + } else if(((!(a18==1)&&(!(a20==1)&&((a9==11)&&((a21==12)&&(a3==1)))))&&((a13==1)&&(!(a8==1)&&((a19==2)&&(((!(a7==1)&&(((!(a26==1)&&((input==1)&&((a5==5)||(a5==6))))&&(a16==9))&&(a1==14)))&&(a6==1))&&(a17==2))))))){ + a20 = 1; + a16 = 7; + a18 = 1; + a21 = 10; + a27 = 1; + a5 = 6; + a1 = 12; + a9 = 9; + a12 = 0; + return -1; + } else if((((((a21==12)&&((((a12==1)&&(a19==3))&&!(a20==1))&&(a16==9)))&&(a12==1))&&!(a26==1))&&((a1==13)&&((a17==2)&&(!(a26==1)&&((a23==1)&&((((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==5))&&!(a18==1))&&!(a4==1)))))))){ + a1 = 12; + a21 = 10; + a16 = 7; + a19 = 2; + a5 = 4; + a14 = 1; + a9 = 10; + a20 = 1; + a25 = 0; + a10 = 0; + return -1; + } else if(((!(a7==1)&&(!(a18==1)&&((a19==4)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==1)))))&&((a16==7)&&((a20==1)&&((a1==13)&&(!(a14==1)&&((((a8==1)||((a17==2)&&((a12==1)&&!(a26==1))))&&(a2==1))&&(a21==12)))))))){ + if((a24==1)){ + a21 = 11; + a13 = 1; + a6 = 1; + a20 = 0; + a19 = 2; + a14 = 0; + a5 = 5; + a9 = 7; + }else{ + a7 = 0; + a19 = 2; + a28 = 1; + a16 = 9; + a9 = 8; + a21 = 11; + a4 = 0; + a5 = 6; + } + return 21; + } else if(((!(a23==1)&&(((((a24==1)&&((a19==2)&&((input==4)&&((a5==4)||(a5==5)))))&&(a0==1))&&(a7==1))&&!(a13==1)))&&((a17==2)&&((a16==8)&&((a26==1)&&((a21==12)&&((((a20==1)&&(a11==1))&&(a9==9))&&(a1==13)))))))){ + a9 = 8; + a19 = 1; + a5 = 4; + a2 = 0; + a21 = 10; + a1 = 12; + a0 = 1; + a20 = 0; + return -1; + } else if(((!(a20==1)&&((!(a0==1)&&((a17==2)&&((a16==10)&&((input==4)&&(((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))))))&&(a1==13)))&&((!(a2==1)||((a21==10)&&((a7==1)||(((a19==4)&&((a28==1)&&!(a18==1)))&&(a11==1)))))&&(a28==1)))){ + a5 = 5; + a20 = 1; + a28 = 0; + a12 = 0; + a1 = 12; + a25 = 1; + a16 = 7; + a19 = 1; + a9 = 8; + return -1; + } else if(((((a17==2)&&((!(a12==1)||(a11==1))||(a24==1)))&&(a20==1))&&((((a16==11)&&((((a21==10)&&(((((a5==4)&&(input==5))&&!(a24==1))&&!(a0==1))&&(a3==1)))&&(a1==12))&&!(a24==1)))&&(a9==8))&&(a19==1)))){ + a9 = 11; + a13 = 1; + a5 = 5; + a0 = 0; + a1 = 14; + a16 = 7; + a19 = 4; + return 25; + } else if(((!(a8==1)&&((a17==2)&&(((a5==5)&&((a9==9)&&((a1==13)&&(input==6))))&&!(a4==1))))&&(!(a0==1)&&((a16==10)&&((a0==1)||((a23==1)&&(((((a20==1)&&(a23==1))&&(a21==10))&&!(a7==1))&&(a19==4)))))))){ + a16 = 7; + a1 = 12; + a12 = 1; + a5 = 4; + a2 = 1; + a19 = 1; + a9 = 7; + a8 = 0; + return -1; + } else if(((((a16==7)&&(((!(a4==1)&&((a9==11)&&((a1==14)&&(input==1))))&&(a6==1))&&(a19==2)))&&(a5==4))&&((a17==2)&&(((a21==11)&&(((((a6==1)&&(a13==1))||(a8==1))&&(a11==1))||!(a2==1)))&&(a20==1))))){ + a6 = 1; + a19 = 4; + a5 = 5; + a21 = 10; + a9 = 10; + a16 = 8; + a1 = 13; + a23 = 1; + return 25; + } else if((((a28==1)&&((a19==5)&&((a16==7)&&((a9==9)&&((a14==1)||(a3==1))))))&&(((a21==11)&&(!(a20==1)&&((((((((a5==4)||(a5==5))&&(input==5))&&(a12==1))&&!(a26==1))&&(a17==2))&&(a28==1))&&(a2==1))))&&(a1==13)))){ + a11 = 1; + a9 = 7; + a21 = 10; + a5 = 5; + a2 = 1; + a1 = 12; + a19 = 1; + a23 = 1; + return 25; + } else if((((a20==1)&&(((a9==9)&&((a17==2)&&(input==3)))&&(a21==12)))&&(((((a5==5)&&(!(a23==1)||((a19==2)&&(!(a28==1)||(!(a14==1)&&((a16==8)&&(!(a3==1)||(a3==1))))))))||(a14==1))&&(a1==12))&&!(a26==1)))){ + a7 = 0; + a9 = 7; + a28 = 1; + a21 = 10; + a8 = 0; + a16 = 7; + a19 = 1; + a5 = 4; + return -1; + } else if((((a20==1)&&(((a8==1)||(!(a11==1)||((a13==1)&&(a17==2))))&&!(a7==1)))&&(!(a14==1)&&(!(a26==1)&&(((a21==12)&&(((a16==9)&&((input==6)&&(((a9==11)&&((a1==13)&&(a5==6)))||(((a1==14)&&(a5==4))&&(a9==7)))))&&(a19==2)))&&!(a18==1)))))){ + if((a26==1)){ + a9 = 9; + a1 = 14; + a24 = 0; + a13 = 1; + a6 = 1; + a20 = 0; + a16 = 7; + a5 = 4; + }else{ + a21 = 10; + a19 = 3; + a1 = 13; + a9 = 9; + a5 = 6; + a2 = 1; + a7 = 0; + a16 = 7; + a27 = 0; + } + return 21; + } else if((((!(a7==1)&&((a2==1)&&(!(a20==1)&&((((((a5==4)||(a5==5))&&(input==3))&&(a17==2))&&(a9==10))&&(a3==1)))))&&(a13==1))&&((a3==1)&&(((a16==7)&&(((a19==1)&&((a1==13)&&(a11==1)))&&(a2==1)))&&(a21==10))))){ + a20 = 1; + a14 = 0; + a9 = 7; + a7 = 0; + a28 = 1; + a5 = 4; + a1 = 12; + return -1; + } else if(((((a6==1)&&((a13==1)&&((a1==12)&&((a16==9)&&((a17==2)&&((a19==3)&&(a6==1)))))))&&(a21==12))&&((a20==1)&&(!(a27==1)&&((((!(a27==1)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))&&(a3==1))&&(a9==8))&&!(a27==1)))))){ + a8 = 0; + a3 = 1; + a5 = 4; + a9 = 7; + a21 = 10; + a2 = 1; + a19 = 1; + a16 = 7; + return -1; + } else if(((((a19==5)&&(((!(a18==1)&&((input==6)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))))&&!(a24==1))&&(a16==9)))&&!(a8==1))&&(((((a20==1)&&(((!(a11==1)||(a12==1))&&!(a27==1))&&(a17==2)))&&(a21==10))&&(a1==14))||!(a2==1)))){ + a9 = 10; + a26 = 0; + a21 = 11; + a13 = 1; + a5 = 5; + a19 = 4; + return 21; + } else if((((((a13==1)||!(a12==1))&&(a6==1))||(a14==1))&&((((a1==13)&&((a21==12)&&((a19==5)&&((a16==10)&&(!(a26==1)&&(((((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))&&(input==3))&&(a6==1))&&!(a24==1)))))))&&!(a20==1))&&(a17==2)))){ + if((a7==1)){ + a21 = 11; + a19 = 2; + a5 = 6; + a16 = 7; + a10 = 0; + a9 = 7; + a28 = 0; + a7 = 1; + }else{ + a16 = 7; + a15 = 1; + a19 = 1; + a5 = 6; + a0 = 1; + a20 = 1; + a21 = 10; + a9 = 7; + a6 = 0; + } + return 25; + } else if((((a17==2)&&(((a23==1)&&((!(a8==1)&&(!(a18==1)&&((input==6)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))))&&!(a18==1)))&&(a21==12)))&&((a20==1)&&(((a16==8)&&((a0==1)||(((a1==12)&&(a28==1))&&(a13==1))))&&(a19==2))))){ + a16 = 7; + a24 = 0; + a9 = 7; + a5 = 4; + a21 = 10; + a6 = 1; + a19 = 1; + a3 = 1; + return -1; + } else if((((a17==2)&&(!(a8==1)&&((a19==4)&&(!(a20==1)&&(((a16==9)&&(((((a5==4)||(a5==5))&&(input==5))&&(a11==1))&&(a6==1)))&&(a6==1))))))&&(((!(a12==1)||(!(a13==1)||((a11==1)&&(a21==11))))&&(a1==12))&&(a9==11)))){ + if((a13==1)){ + a13 = 0; + a9 = 8; + a20 = 1; + a19 = 1; + a21 = 10; + a5 = 4; + a25 = 0; + a16 = 7; + }else{ + a21 = 10; + a5 = 5; + a9 = 8; + a27 = 1; + a23 = 0; + a10 = 0; + a1 = 14; + a19 = 1; + a16 = 11; + } + return -1; + } else if((((a11==1)&&((!(a27==1)&&(((((a16==8)&&((input==4)&&(a5==5)))&&!(a14==1))&&(a1==13))&&(a6==1)))&&!(a27==1)))&&(((a20==1)&&(((((a9==7)&&(a12==1))&&(a21==11))&&(a17==2))&&(a19==3)))||(a18==1)))){ + a19 = 1; + a1 = 12; + a5 = 4; + a16 = 7; + a21 = 10; + a18 = 0; + a14 = 0; + a26 = 0; + return -1; + } else if(((((a2==1)&&(((a23==1)&&(a21==11))&&(a20==1)))||!(a28==1))&&((a12==1)&&((a23==1)&&((a19==2)&&((a16==7)&&((((((((a9==11)&&((a1==12)&&(a5==6)))||(((a1==13)&&(a5==4))&&(a9==7)))||((a9==7)&&((a5==5)&&(a1==13))))&&(input==1))&&(a28==1))&&(a13==1))&&(a17==2)))))))){ + a19 = 3; + a24 = 0; + a9 = 7; + a5 = 4; + a23 = 1; + a21 = 10; + a11 = 1; + a1 = 13; + a16 = 8; + return 23; + } else if((((a19==5)&&((a9==8)&&((!(a4==1)&&(((a6==1)||(a7==1))&&(a12==1)))&&!(a24==1))))&&((a6==1)&&(((!(a27==1)&&((a21==11)&&((a1==13)&&(((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a17==2)))))&&(a16==10))&&!(a20==1))))){ + if((a12==1)){ + a18 = 1; + a8 = 1; + a9 = 7; + a16 = 7; + a21 = 10; + a20 = 1; + a19 = 2; + a5 = 6; + a1 = 12; + }else{ + a5 = 6; + a20 = 1; + a8 = 1; + a1 = 12; + a9 = 9; + a15 = 1; + a25 = 1; + a16 = 9; + a19 = 4; + } + return -1; + } else if((((a5==6)&&((a1==14)&&(!(a20==1)&&(((a13==1)&&((a11==1)&&(((input==6)&&(a9==7))&&!(a26==1))))&&(a21==11)))))&&((a28==1)&&((!(a4==1)&&((a19==1)&&((a16==8)&&((a17==2)&&(a11==1)))))&&(a23==1))))){ + a9 = 8; + a23 = 1; + a20 = 1; + a19 = 2; + a21 = 10; + a1 = 12; + a14 = 0; + a4 = 0; + return 21; + } else if(((((((a11==1)&&(a17==2))&&!(a0==1))&&(a9==7))||!(a6==1))&&(!(a26==1)&&((a21==11)&&((((a3==1)&&((a12==1)&&((a1==13)&&((a20==1)&&((a5==5)&&((input==1)&&(a19==5)))))))&&(a16==11))&&(a6==1)))))){ + a19 = 4; + a9 = 8; + a21 = 10; + a16 = 7; + a1 = 12; + a5 = 6; + a2 = 1; + a24 = 0; + return 26; + } else if((((a1==12)&&((a20==1)&&((a21==12)&&((((a11==1)&&(a19==2))||(a18==1))&&(a28==1)))))&&((!(a8==1)&&(((((a17==2)&&(((input==1)&&((a5==5)||(a5==6)))&&(a9==9)))&&!(a26==1))&&(a16==11))&&!(a7==1)))&&!(a0==1)))){ + a23 = 1; + a16 = 7; + a21 = 10; + a12 = 1; + a28 = 1; + a19 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if((((a3==1)&&(!(a18==1)&&((a5==5)&&((((((a16==10)&&(input==3))&&(a1==14))&&(a2==1))&&(a13==1))&&(a17==2)))))&&(((((((a9==9)&&(a12==1))&&!(a20==1))||(a8==1))&&(a19==5))&&!(a26==1))&&(a21==11)))){ + if((a13==1)){ + a9 = 7; + a5 = 4; + a25 = 0; + a20 = 1; + a11 = 0; + a12 = 0; + a16 = 8; + a21 = 12; + }else{ + a1 = 12; + a16 = 7; + a9 = 10; + a10 = 1; + a21 = 10; + a6 = 0; + a20 = 1; + a5 = 6; + a12 = 0; + a19 = 2; + } + return -1; + } else if((((((a1==14)&&((((a6==1)&&((a17==2)&&((a21==10)&&(input==6))))&&(a11==1))&&!(a24==1)))&&!(a18==1))&&(a5==4))&&(((a20==1)&&((((!(a6==1)||(a28==1))&&!(a14==1))&&(a19==2))&&(a9==8)))&&(a16==9)))){ + a19 = 1; + a1 = 12; + a3 = 1; + a16 = 7; + a9 = 7; + a0 = 0; + a18 = 0; + return -1; + } else if((((a21==11)&&(!(a20==1)&&((!(a0==1)&&((a17==2)&&((a9==7)&&((input==1)&&(a1==14)))))&&!(a27==1))))&&(((a0==1)||((((((a2==1)&&(a2==1))&&(a12==1))&&(a5==6))&&(a16==8))||(a24==1)))&&(a19==1)))){ + a28 = 1; + a21 = 10; + a5 = 4; + a1 = 12; + a0 = 0; + a9 = 8; + a20 = 1; + a19 = 2; + a11 = 1; + return 22; + } else if((((a6==1)&&(((((input==6)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(a16==7))&&(a6==1))&&(a21==10)))&&(!(a27==1)&&((a19==5)&&((a1==13)&&(!(a20==1)&&((!(a13==1)||(((a12==1)&&!(a27==1))&&(a17==2)))&&(a23==1)))))))){ + a6 = 1; + a9 = 7; + a19 = 1; + a5 = 5; + a1 = 12; + a3 = 1; + a20 = 1; + a16 = 10; + a18 = 0; + return 21; + } else if((((a5==6)&&(((!(a18==1)&&(((a2==1)&&(!(a24==1)&&(a12==1)))&&(a23==1)))&&!(a20==1))&&(a9==8)))&&((a1==13)&&((a19==5)&&((a17==2)&&(((((a21==12)&&(input==1))&&(a16==9))&&(a28==1))&&(a3==1))))))){ + a1 = 12; + a19 = 2; + a5 = 5; + a25 = 0; + a21 = 10; + a20 = 1; + a9 = 10; + a18 = 1; + a6 = 0; + a16 = 7; + return -1; + } else if(((((a13==1)&&((a17==2)&&((((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==4))&&(a1==13))&&(a16==9))))&&(a23==1))&&((a14==1)||((a19==3)&&(!(a6==1)||(!(a11==1)||(!(a20==1)&&(((a12==1)&&(a21==11))&&(a13==1))))))))){ + if((a3==1)){ + a20 = 1; + a11 = 0; + a16 = 7; + a9 = 11; + a12 = 0; + a21 = 12; + a5 = 6; + a22 = 0; + a1 = 14; + a19 = 4; + }else{ + a5 = 5; + a20 = 1; + a3 = 0; + a25 = 0; + a19 = 2; + a18 = 1; + a1 = 14; + a9 = 8; + a16 = 8; + } + return 23; + } else if(((((!(a18==1)&&((a17==2)&&((((((input==6)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5))))&&(a21==11))&&!(a4==1))&&(a16==10))&&(a12==1))))&&(a3==1))&&(a19==4))&&(!(a3==1)||(((a27==1)||(!(a20==1)&&(a23==1)))&&(a1==14))))){ + a21 = 10; + a1 = 13; + a20 = 1; + a10 = 1; + a15 = 0; + a16 = 7; + a8 = 1; + a5 = 5; + a9 = 7; + a19 = 1; + return -1; + } else if(((!(a14==1)&&(!(a14==1)&&((a17==2)&&(!(a8==1)&&((((a21==12)&&(((input==6)&&(a1==14))&&(a13==1)))&&(a20==1))&&(a11==1))))))&&((a9==10)&&((((a16==9)&&((a28==1)||!(a6==1)))&&(a19==4))&&(a5==4))))){ + a19 = 2; + a8 = 0; + a23 = 1; + a21 = 10; + a3 = 1; + return 21; + } else if(((((a19==5)&&((a27==1)||(((((a6==1)||(a0==1))&&(a16==8))&&(a21==11))&&(a1==14))))||(a26==1))&&((((a9==9)&&(((a13==1)&&((((a5==5)||(a5==6))&&(input==1))&&!(a20==1)))&&(a17==2)))&&!(a4==1))&&!(a18==1)))){ + a26 = 1; + a4 = 1; + a21 = 10; + a20 = 1; + a12 = 0; + a19 = 1; + a9 = 7; + a1 = 12; + a16 = 11; + a5 = 5; + return -1; + } else if((((!(a7==1)&&(((!(a14==1)&&(((((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a20==1))&&(a11==1))&&(a21==12)))&&(a9==9))&&!(a7==1)))&&(a17==2))&&((a1==13)&&((a16==10)&&((a19==2)&&(((a13==1)&&!(a27==1))&&!(a24==1))))))){ + a21 = 10; + a1 = 12; + a20 = 1; + a5 = 6; + a16 = 7; + a11 = 0; + a15 = 1; + a7 = 1; + a9 = 11; + return -1; + } else if(((!(a6==1)||((a11==1)&&(a28==1)))&&((a9==8)&&((a16==7)&&((a3==1)&&((!(a20==1)&&(((a17==2)&&(((a21==12)&&(((a12==1)&&((input==3)&&((a5==5)||(a5==6))))&&(a19==1)))&&(a1==12)))&&(a2==1)))&&(a11==1))))))){ + a6 = 1; + a19 = 5; + a20 = 1; + a14 = 0; + a5 = 6; + a16 = 8; + a9 = 7; + return -1; + } else if(((((a19==1)&&((a5==6)&&(((a1==14)&&(((input==6)&&(a9==11))&&!(a0==1)))&&!(a8==1))))&&(a17==2))&&(!(a20==1)&&(((a21==11)&&((a26==1)||((a7==1)||(((a23==1)&&!(a7==1))&&!(a7==1)))))&&(a16==8))))){ + a28 = 1; + a9 = 7; + a14 = 0; + a16 = 7; + a1 = 12; + a20 = 1; + a8 = 0; + a5 = 4; + a21 = 10; + return -1; + } else if((((a19==2)&&(((((a11==1)&&(!(a13==1)||((a12==1)&&(a13==1))))&&(a17==2))&&(a5==6))&&(a1==12)))&&((a21==11)&&(((a16==7)&&(!(a24==1)&&(((a20==1)&&((a9==8)&&(input==5)))&&!(a14==1))))&&!(a24==1))))){ + a21 = 10; + a1 = 14; + a8 = 0; + a16 = 8; + a9 = 7; + a12 = 1; + a5 = 5; + a13 = 1; + return 23; + } else if((((!(a7==1)&&((a28==1)&&((a12==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))))&&(a1==13))&&((a17==2)&&((a20==1)&&((a19==5)&&(((a21==10)&&((a9==9)&&((a13==1)&&((a11==1)&&((a2==1)&&(a3==1))))))&&(a16==10))))))){ + a19 = 3; + a5 = 6; + a27 = 0; + a21 = 11; + a11 = 1; + a1 = 12; + a9 = 8; + a2 = 1; + a16 = 8; + return 25; + } else if(((((((a20==1)&&((!(a11==1)||((a28==1)&&(a17==2)))||!(a13==1)))&&(a16==9))&&(a21==10))&&(a9==7))&&((a1==12)&&(((a19==2)&&((!(a18==1)&&((((a5==5)||(a5==6))&&(input==4))&&!(a24==1)))&&!(a27==1)))&&(a6==1))))){ + a5 = 4; + a16 = 7; + a13 = 1; + a28 = 1; + a11 = 1; + a19 = 1; + return -1; + } else if((((a6==1)&&(!(a26==1)&&((((((input==3)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&(a19==1))&&(a21==10))&&(a17==2))&&(a2==1))))&&((a8==1)||(((a1==14)&&((a4==1)||((a16==11)&&(!(a0==1)&&(a23==1)))))&&!(a20==1))))){ + a29 = 1; + a21 = 11; + a4 = 1; + a16 = 7; + a19 = 3; + a6 = 0; + a9 = 10; + a5 = 5; + return 25; + } else if((((a6==1)&&(((!(a20==1)&&(((input==3)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9))))&&(a21==11)))&&(a17==2))&&!(a18==1)))&&((a27==1)||(!(a14==1)&&((((a16==10)&&((a28==1)&&((a2==1)&&(a23==1))))&&(a19==3))&&(a1==12)))))){ + a21 = 10; + a20 = 1; + a18 = 1; + a8 = 1; + a5 = 6; + a16 = 7; + a23 = 0; + a19 = 1; + a1 = 13; + a9 = 11; + return -1; + } else if((((a9==11)&&((((a19==3)&&((a21==12)&&(!(a7==1)&&(a13==1))))&&(a17==2))&&(a1==13)))&&(((a12==1)&&((a12==1)&&(((a12==1)&&(!(a27==1)&&((a16==7)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4)))))&&!(a4==1))))&&(a20==1)))){ + a9 = 10; + a18 = 0; + a16 = 8; + a5 = 5; + a24 = 0; + a28 = 1; + a21 = 11; + a19 = 1; + return 26; + } else if((((!(a26==1)&&(((input==3)&&(((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))))&&(a13==1)))&&(a13==1))&&((a21==10)&&((a17==2)&&((((a1==14)&&((a12==1)&&((a16==9)&&(!(a23==1)||((a11==1)&&!(a7==1))))))&&!(a20==1))&&(a19==1)))))){ + a19 = 5; + a5 = 5; + a22 = 0; + a12 = 0; + a9 = 10; + a20 = 1; + a11 = 0; + a16 = 11; + return -1; + } else if((((a19==5)&&((((((((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7))))&&(input==4))&&!(a14==1))&&(a21==12))&&(a16==10))&&(a12==1)))&&((a1==14)&&((a17==2)&&(((a20==1)&&((a12==1)&&(!(a27==1)&&(!(a7==1)&&(a11==1)))))||!(a6==1)))))){ + a14 = 0; + a3 = 1; + a27 = 0; + a1 = 12; + a16 = 7; + a9 = 7; + a21 = 10; + a5 = 4; + a19 = 1; + return -1; + } else if((((a21==11)&&((!(a12==1)||((((a3==1)||(a0==1))||!(a28==1))&&(a9==7)))&&(a20==1)))&&((!(a26==1)&&(((a5==4)&&(((a3==1)&&((a17==2)&&((input==1)&&(a19==4))))&&(a1==12)))&&!(a26==1)))&&(a16==8)))){ + a21 = 10; + a19 = 1; + a0 = 0; + a16 = 7; + a6 = 1; + a8 = 0; + return -1; + } else if((((a12==1)&&(((a21==12)&&((a19==4)&&(!(a6==1)||((a28==1)&&(a16==8)))))&&!(a0==1)))&&(((a1==12)&&((!(a20==1)&&((a3==1)&&(((((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6))))&&(input==5))&&(a17==2))))&&(a2==1)))&&(a28==1)))){ + a6 = 0; + a9 = 8; + a1 = 13; + a19 = 1; + a3 = 0; + a24 = 1; + a21 = 10; + a20 = 1; + a5 = 5; + a16 = 7; + return -1; + } else if((((!(a4==1)&&((a1==12)&&((((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==1))&&!(a14==1))&&(a23==1))))&&(a16==8))&&(((a20==1)&&((!(a26==1)&&((a17==2)&&((a21==10)&&((a12==1)&&(a28==1)))))&&(a19==3)))||!(a12==1)))){ + a5 = 4; + a28 = 1; + a19 = 1; + a6 = 1; + a3 = 1; + a9 = 7; + a16 = 7; + return -1; + } else if((((a21==11)&&(!(a12==1)||(((a2==1)&&(a20==1))&&(a1==13))))&&(((a3==1)&&((a11==1)&&(((a9==10)&&((a19==3)&&(!(a24==1)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a3==1))&&(a17==2)))))&&(a28==1))))&&(a16==9)))){ + a9 = 7; + a1 = 14; + a16 = 10; + a2 = 1; + a21 = 10; + a0 = 0; + a5 = 6; + a24 = 0; + a19 = 2; + return 21; + } else if(((!(a4==1)&&(((a16==8)&&((a21==12)&&((((a5==5)||(a5==6))&&(input==6))&&(a9==11))))&&(a19==4)))&&(!(a0==1)&&((a8==1)||((a1==13)&&(((a17==2)&&((((a2==1)&&(a6==1))||!(a2==1))&&(a20==1)))&&!(a24==1))))))){ + a26 = 0; + a19 = 2; + a21 = 10; + a5 = 5; + a9 = 9; + a18 = 0; + a16 = 7; + a14 = 0; + return 25; + } else if(((!(a8==1)&&((!(a14==1)&&((a21==12)&&((a12==1)&&(((a9==8)&&(((a20==1)&&((((a5==5)||(a5==6))&&(input==1))&&(a11==1)))&&(a1==13)))&&(a16==11)))))&&(a28==1)))&&((((a2==1)||!(a11==1))&&(a17==2))&&(a19==2)))){ + a3 = 1; + a13 = 1; + a23 = 1; + a5 = 4; + a21 = 10; + a19 = 1; + a16 = 7; + a1 = 12; + a9 = 7; + return -1; + } else if((((((a5==5)&&(!(a24==1)&&((a28==1)&&(((a28==1)&&((input==3)&&(a21==11)))&&(a13==1)))))&&(a19==2))&&(a16==11))&&((a1==12)&&((a20==1)&&((a9==11)&&((a17==2)&&(((a11==1)&&!(a0==1))||(a24==1)))))))){ + a11 = 1; + a16 = 7; + a5 = 4; + a24 = 0; + a21 = 10; + a19 = 1; + a9 = 7; + return -1; + } else if((((a28==1)&&((a17==2)&&((a16==11)&&((a23==1)&&((a20==1)&&(((((a9==11)&&((a5==6)&&(a1==13)))||(((a5==4)&&(a1==14))&&(a9==7)))||(((a5==5)&&(a1==14))&&(a9==7)))&&(input==5)))))))&&(!(a23==1)||((!(a18==1)&&((a12==1)&&((a19==2)&&((a21==11)&&(a28==1)))))&&!(a0==1))))){ + a24 = 0; + a21 = 10; + a5 = 4; + a1 = 12; + a28 = 1; + a16 = 7; + a18 = 0; + a19 = 1; + a9 = 7; + return -1; + } else if((((a9==7)&&(!(a2==1)||((!(a0==1)&&(a2==1))&&!(a0==1))))&&((((a16==9)&&(!(a20==1)&&((((a17==2)&&((a3==1)&&((((a5==4)||(a5==5))&&(input==1))&&!(a27==1))))&&!(a14==1))&&(a21==10))))&&(a1==14))&&(a19==5)))){ + a25 = 0; + a5 = 6; + a19 = 3; + a20 = 1; + a2 = 0; + return -1; + } else if(((((a17==2)&&((a19==5)&&((a1==13)&&((!(a0==1)&&((a6==1)&&(a11==1)))||(a27==1)))))&&!(a20==1))&&((a28==1)&&((((a21==10)&&(!(a14==1)&&((a5==5)&&((a9==9)&&(input==5)))))&&(a2==1))&&(a16==10))))){ + a16 = 7; + a19 = 1; + a12 = 0; + a22 = 0; + a1 = 12; + a20 = 1; + a5 = 4; + a24 = 1; + return -1; + } else if(((((!(a20==1)&&((a11==1)&&(a21==12)))&&(a19==1))&&(a1==14))&&(((a28==1)&&((((a23==1)&&((((a13==1)&&((input==5)&&(((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))))&&(a17==2))&&!(a26==1)))&&(a16==7))&&!(a27==1)))&&!(a27==1)))){ + a5 = 4; + a8 = 0; + a20 = 1; + a1 = 12; + a21 = 10; + a9 = 7; + a12 = 1; + a23 = 1; + return -1; + } else if(((!(a28==1)&&((a20==1)&&(((a17==2)&&((a16==7)&&((((a0==1)&&((input==1)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))))&&!(a11==1))&&!(a11==1))))&&(a1==13))))&&(((((a14==1)&&(a3==1))&&(a21==11))&&(a26==1))&&(a19==4)))){ + a9 = 8; + a16 = 9; + a5 = 6; + a14 = 1; + a21 = 10; + a19 = 3; + a1 = 12; + a15 = 0; + return -1; + } else if(((((((a1==12)&&((((input==5)&&((a5==4)||(a5==5)))&&(a3==1))&&(a19==2)))&&!(a26==1))&&(a9==8))&&(a23==1))&&((!(a12==1)||((a21==11)&&((((a27==1)||((a17==2)&&(a2==1)))||!(a11==1))&&(a16==9))))&&(a20==1)))){ + a27 = 0; + a5 = 4; + a8 = 0; + a16 = 7; + a19 = 1; + a9 = 7; + a21 = 10; + a23 = 1; + return -1; + } else if((((a16==9)&&((a19==4)&&((a21==10)&&((((((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6))))&&(input==5))&&(a8==1))&&(a20==1)))))&&((a1==14)&&(((a17==2)&&((!(a12==1)&&((a8==1)&&((a12==1)&&(a4==1))))&&!(a12==1)))&&(a4==1))))){ + a21 = 12; + a14 = 1; + a23 = 0; + a25 = 0; + a1 = 13; + a16 = 11; + a9 = 10; + a5 = 4; + a19 = 1; + return -1; + } else if((((((a3==1)&&(!(a0==1)&&((!(a8==1)&&(!(a4==1)&&(((input==3)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&(a17==2))))&&!(a4==1))))&&(a16==7))&&(a20==1))&&(((a1==14)&&(!(a12==1)||((a28==1)&&(a21==11))))&&(a19==2)))){ + a9 = 7; + a21 = 10; + a5 = 4; + a19 = 1; + a7 = 0; + a3 = 1; + a1 = 12; + a18 = 0; + return -1; + } else if((((a21==11)&&((((a20==1)&&(!(a3==1)||((a17==2)&&((a2==1)||!(a28==1)))))&&!(a0==1))||!(a2==1)))&&(((((a1==13)&&((a16==10)&&((input==5)&&((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4))))))&&!(a4==1))&&(a6==1))&&(a19==4)))){ + a9 = 7; + a21 = 10; + a19 = 1; + a1 = 12; + a7 = 0; + a16 = 7; + a26 = 0; + a5 = 4; + a23 = 1; + return -1; + } else if((((a28==1)&&(((a16==8)&&(a2==1))&&(a20==1)))&&((a19==2)&&(((a28==1)&&(((((a28==1)&&(((a23==1)&&(((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))&&(input==6)))&&(a1==13)))&&!(a26==1))&&(a3==1))&&(a21==12)))&&(a17==2))))){ + a19 = 1; + a16 = 7; + a5 = 4; + a3 = 1; + a9 = 7; + a11 = 1; + a18 = 0; + a1 = 12; + a21 = 10; + return -1; + } else if(((!(a20==1)&&((a9==10)&&((a13==1)&&(((a19==1)&&(((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a2==1)))&&!(a24==1)))))&&((((a0==1)||((!(a11==1)||((a17==2)&&((a3==1)||(a0==1))))&&(a21==10)))&&(a1==13))&&(a16==10)))){ + if((a2==1)){ + a16 = 7; + a20 = 1; + a5 = 5; + a11 = 0; + a9 = 8; + a22 = 0; + a25 = 0; + }else{ + a9 = 7; + a20 = 1; + a1 = 12; + a5 = 4; + a12 = 0; + a7 = 1; + a16 = 7; + a19 = 2; + a2 = 0; + } + return -1; + } else if((((((!(a18==1)&&(((a11==1)&&(a19==2))&&(a21==11)))&&(a20==1))&&!(a0==1))||!(a6==1))&&(!(a4==1)&&((!(a24==1)&&(((((input==1)&&(((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))&&(a17==2))&&(a16==11))&&(a23==1)))&&(a1==12))))){ + a11 = 1; + a12 = 1; + a19 = 1; + a7 = 0; + a9 = 7; + a16 = 7; + a21 = 10; + a5 = 4; + return -1; + } else if(((!(a0==1)&&((((a21==11)&&((a9==10)&&((a17==2)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))))&&(a1==14))&&(a19==1)))&&((a2==1)&&((!(a2==1)||(!(a3==1)||((((a7==1)||(a28==1))||!(a6==1))&&!(a20==1))))&&(a16==9))))){ + a20 = 1; + a9 = 11; + a1 = 12; + a10 = 1; + a29 = 1; + a2 = 0; + a21 = 10; + a16 = 7; + a5 = 4; + return -1; + } else if((((a9==9)&&(!(a24==1)&&((a4==1)||(((!(a26==1)&&(a2==1))&&(a20==1))&&(a16==11)))))&&(((a5==4)&&(((a2==1)&&(((((input==1)&&(a1==13))&&!(a18==1))&&(a17==2))&&(a19==2)))&&!(a14==1)))&&(a21==12)))){ + a7 = 0; + a3 = 1; + a19 = 5; + a9 = 11; + a21 = 11; + a16 = 9; + a1 = 12; + a14 = 0; + return 21; + } else if((((!(a7==1)&&((a17==2)&&(!(a11==1)||((a19==2)&&((a9==9)&&(!(a12==1)||(a2==1)))))))&&!(a8==1))&&(!(a26==1)&&(((a16==7)&&((((a21==12)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))&&(a1==12))&&(a20==1)))&&(a23==1))))){ + a19 = 1; + a21 = 10; + a6 = 1; + a27 = 0; + a5 = 4; + a9 = 7; + a26 = 0; + return -1; + } else if((((!(a8==1)&&(((a1==14)&&((a3==1)&&(a20==1)))&&(a12==1)))&&(a2==1))&&(((a21==10)&&(!(a24==1)&&((a5==4)&&(((a11==1)&&((a6==1)&&((a17==2)&&((input==3)&&(a19==2)))))&&(a16==9)))))&&(a9==8)))){ + a1 = 12; + a19 = 1; + a4 = 0; + a16 = 7; + a12 = 1; + a9 = 7; + a3 = 1; + return -1; + } else if(((!(a8==1)&&((a19==2)&&(((a12==1)&&(((a3==1)&&((input==5)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))))&&!(a24==1)))&&!(a14==1))))&&((a11==1)&&((a17==2)&&(((a21==10)&&((a20==1)&&((a28==1)&&(a1==12))))&&(a16==8)))))){ + a9 = 7; + a16 = 7; + a7 = 0; + a19 = 1; + a5 = 4; + a23 = 1; + a27 = 0; + return -1; + } else if((((!(a11==1)||(((a18==1)||(((a16==10)&&(a28==1))&&!(a20==1)))||!(a13==1)))&&(a19==1))&&((a3==1)&&((a9==11)&&((a2==1)&&(((a21==12)&&((((input==5)&&(a17==2))&&(a1==12))&&!(a4==1)))&&(a5==5))))))){ + if((a21==12)){ + a1 = 14; + a5 = 4; + a12 = 0; + a19 = 5; + a14 = 1; + a16 = 8; + a9 = 7; + }else{ + a19 = 5; + a29 = 1; + a5 = 4; + a28 = 0; + a27 = 1; + } + return -1; + } else if((((a21==12)&&((a19==1)&&((((a3==1)&&(a16==8))&&!(a8==1))&&(a6==1))))&&((((a1==14)&&(((a17==2)&&(((a11==1)&&((input==3)&&((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a5==4)&&(a9==8)))))&&(a12==1)))&&(a20==1)))&&(a23==1))&&(a12==1)))){ + a24 = 0; + a5 = 4; + a21 = 10; + a1 = 12; + a16 = 7; + a0 = 0; + a11 = 1; + a9 = 7; + return -1; + } else if((((a16==9)&&((((a28==1)&&(((a28==1)&&(a6==1))&&(a6==1)))&&(a21==11))&&(a19==3)))&&((a1==12)&&((a5==4)&&((((a9==8)&&((((input==3)&&!(a20==1))&&(a17==2))&&!(a27==1)))&&!(a0==1))&&(a13==1)))))){ + a20 = 1; + a19 = 1; + a24 = 1; + a16 = 7; + a9 = 11; + a21 = 10; + a2 = 0; + a6 = 0; + return -1; + } else if((((a1==14)&&(!(a8==1)&&(((a13==1)&&((a16==8)&&((((((a17==2)&&(input==4))&&(a19==2))&&!(a7==1))&&(a5==4))&&(a2==1))))&&(a28==1))))&&((a23==1)&&((a21==12)&&(((a20==1)&&(a6==1))&&(a9==8)))))){ + a19 = 1; + a21 = 10; + a9 = 7; + a16 = 7; + a3 = 1; + a24 = 0; + a1 = 12; + a13 = 1; + return -1; + } else if(((((a9==7)&&((((!(a24==1)&&((a21==11)&&((a19==3)&&((a17==2)&&((((a5==5)&&(input==6))&&(a16==8))&&(a20==1))))))&&!(a27==1))&&!(a24==1))&&(a12==1)))&&!(a24==1))&&(!(a2==1)||((a2==1)&&(a1==13))))){ + a19 = 5; + a16 = 10; + a21 = 10; + a3 = 1; + a9 = 8; + a5 = 6; + a26 = 0; + a1 = 14; + a23 = 1; + return 22; + } else if((((a17==2)&&((a1==14)&&(((((a28==1)&&((((a5==5)||(a5==6))&&(input==4))&&(a9==10)))&&!(a8==1))&&(a28==1))&&(a20==1))))&&((((a16==10)&&((a2==1)&&((a8==1)||((a2==1)&&(a21==12)))))||(a0==1))&&(a19==1)))){ + a21 = 10; + a16 = 7; + a4 = 0; + a1 = 12; + a5 = 4; + a0 = 0; + a26 = 0; + a9 = 7; + return -1; + } else if(((!(a28==1)||(!(a20==1)&&(((a7==1)||((a21==12)&&(!(a3==1)||(((a16==8)&&(!(a23==1)||(a23==1)))&&(a17==2)))))&&(a5==4))))&&((!(a26==1)&&((((a9==11)&&(input==1))&&(a1==12))&&(a19==2)))&&(a12==1)))){ + a23 = 0; + a19 = 1; + a16 = 7; + a20 = 1; + a1 = 13; + a21 = 10; + a9 = 8; + a3 = 0; + a24 = 1; + return 23; + } else if(((!(a7==1)&&((a9==11)&&((a19==5)&&((a20==1)&&((a17==2)&&((input==4)&&(a21==10)))))))&&((((((((!(a26==1)&&(a3==1))||(a7==1))&&(a5==4))&&!(a0==1))&&(a16==11))||!(a11==1))&&(a1==14))||!(a3==1)))){ + a19 = 1; + a11 = 1; + a8 = 0; + a1 = 12; + a5 = 5; + a27 = 0; + return -1; + } else if((((a19==1)&&((!(a14==1)&&(((a16==8)&&(((input==5)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&!(a8==1)))&&(a23==1)))&&(a21==12)))&&(((a3==1)&&(!(a14==1)&&((((a2==1)&&(a20==1))&&(a1==12))&&(a3==1))))&&(a17==2)))){ + a16 = 7; + a3 = 1; + a18 = 0; + a21 = 10; + a6 = 1; + a9 = 7; + a5 = 4; + return -1; + } else if(((((a5==5)&&(((a1==13)&&((a9==10)&&(input==4)))&&(a23==1)))&&(a17==2))&&(((a3==1)&&((a11==1)&&(((((a8==1)||(!(a18==1)&&((a18==1)||(a13==1))))&&(a20==1))&&(a21==10))&&(a16==7))))&&(a19==2)))){ + a3 = 1; + a9 = 9; + a7 = 0; + a28 = 1; + a19 = 3; + return 22; + } else if((((a16==11)&&((a9==10)&&((!(a8==1)&&((a2==1)&&(!(a12==1)||((a20==1)&&((((a17==2)&&((a3==1)&&(a23==1)))&&(a12==1))&&(a1==13))))))&&(a23==1))))&&((((input==1)&&((a5==5)||(a5==6)))&&(a19==2))&&(a21==10)))){ + a18 = 0; + a5 = 4; + a8 = 0; + a9 = 7; + a7 = 0; + a16 = 7; + a19 = 1; + a1 = 12; + return -1; + } else if(((!(a24==1)&&(!(a20==1)&&((a16==11)&&((a1==14)&&(!(a18==1)&&(a12==1))))))&&(((a12==1)&&(((a5==5)&&((a9==9)&&(((((a17==2)&&(input==6))&&(a21==10))&&!(a26==1))&&(a19==2))))&&!(a0==1)))&&!(a0==1)))){ + if((a24==1)){ + a9 = 10; + a8 = 1; + a19 = 1; + a10 = 1; + a21 = 11; + a5 = 6; + a20 = 1; + a16 = 8; + a22 = 0; + }else{ + a9 = 10; + a23 = 0; + a20 = 1; + a8 = 1; + a1 = 12; + a7 = 1; + a19 = 1; + a16 = 7; + } + return -1; + } else if((((a21==11)&&(((a1==14)&&((a28==1)&&(((((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&!(a4==1))&&!(a8==1))&&(a17==2))))&&(a16==9)))&&((a9==8)&&(!(a4==1)&&((a24==1)||(((a19==2)&&((a13==1)||(a24==1)))&&(a20==1))))))){ + a6 = 1; + a9 = 11; + a19 = 5; + a24 = 0; + a1 = 12; + a5 = 4; + a3 = 1; + return 21; + } else if(((((a19==2)&&(!(a2==1)&&(((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a1==14))))&&(a16==8))&&(((a9==7)&&((!(a20==1)&&((a17==2)&&((a27==1)&&(((!(a13==1)&&(a3==1))&&!(a23==1))&&(a0==1)))))&&(a27==1)))&&(a21==10)))){ + a5 = 6; + a9 = 8; + a6 = 0; + a19 = 4; + a23 = 0; + a7 = 1; + return 23; + } else if(((((((((a2==1)&&(a5==6))&&(a20==1))&&(a16==8))&&(a2==1))&&!(a7==1))&&!(a26==1))&&(((a2==1)&&(((a19==3)&&(((a17==2)&&(((input==6)&&(a21==10))&&(a1==13)))&&(a9==9)))&&(a2==1)))&&!(a18==1)))){ + a1 = 12; + a28 = 1; + a16 = 9; + a11 = 1; + a27 = 0; + a19 = 5; + a21 = 12; + return 26; + } else if((((((a21==11)&&((!(a13==1)&&((!(a12==1)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&!(a20==1))&&(a27==1)))&&!(a2==1)))&&(a19==2)))&&(a9==8))&&(a17==2))&&(!(a28==1)&&((((a1==14)&&(a13==1))&&(a16==7))&&!(a11==1))))){ + a15 = 0; + a19 = 4; + a20 = 1; + a25 = 0; + a16 = 11; + a9 = 7; + a5 = 5; + return -1; + } else if(((((a28==1)&&(a19==2))||!(a6==1))&&(((!(a7==1)&&(((a23==1)&&(((a5==6)&&((a20==1)&&(((a13==1)&&(((input==4)&&(a16==10))&&(a1==14)))&&(a9==11))))&&(a17==2)))&&!(a27==1)))&&(a3==1))&&(a21==11)))){ + a19 = 1; + a16 = 7; + a1 = 12; + a13 = 1; + a7 = 0; + a12 = 1; + a5 = 4; + a9 = 7; + a21 = 10; + return -1; + } else if(((((((!(a7==1)&&(((!(a3==1)||(a13==1))&&!(a20==1))&&(a17==2)))&&(a13==1))&&(a1==14))||!(a11==1))&&(a16==10))&&((a19==2)&&(!(a26==1)&&(!(a24==1)&&(((((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(input==1))&&(a21==11))))))){ + a5 = 5; + a21 = 10; + a9 = 8; + a1 = 13; + a19 = 1; + a23 = 0; + a15 = 0; + a10 = 0; + a16 = 7; + a20 = 1; + return -1; + } else if(((((!(a27==1)&&(!(a14==1)&&(((a3==1)&&(((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a17==2)))&&(a16==8))))&&!(a20==1))&&(a6==1))&&((((a9==11)&&((!(a11==1)||((a11==1)&&!(a0==1)))&&(a1==12)))&&(a19==4))&&(a21==11)))){ + a24 = 0; + a9 = 7; + a19 = 1; + a20 = 1; + a5 = 4; + a11 = 1; + a21 = 10; + a16 = 7; + a7 = 0; + return -1; + } else if((((((!(a18==1)&&((a20==1)&&(((a19==3)&&(input==4))&&(a5==6))))&&!(a0==1))&&!(a27==1))&&(a21==11))&&((a11==1)&&(((((((a13==1)&&(a9==10))&&(a16==8))||(a7==1))&&(a17==2))&&(a1==14))||(a26==1))))){ + a2 = 1; + a19 = 1; + a5 = 4; + a1 = 12; + a9 = 7; + a16 = 7; + a21 = 10; + a7 = 0; + a23 = 1; + return -1; + } return calculate_output66(input); + } + + int calculate_output66(int input) { + if((((((a12==1)&&((a9==8)&&((!(a18==1)&&((a1==12)&&((a23==1)&&(a21==12))))&&!(a4==1))))&&(a19==4))&&(a20==1))&&(((((a17==2)&&(((input==1)&&(a16==8))&&(a12==1)))&&(a5==6))&&(a2==1))&&!(a24==1)))){ + a5 = 4; + a16 = 7; + a9 = 7; + a19 = 1; + a11 = 1; + a21 = 10; + a6 = 1; + a23 = 1; + return -1; + } else if((((a20==1)&&((a21==12)&&((a23==1)&&((((a16==11)&&((a1==14)&&(!(a26==1)&&(((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4)))&&(input==1)))))&&(a12==1))&&(a17==2)))))&&((a19==2)&&(!(a23==1)||((!(a28==1)||(a2==1))||(a14==1)))))){ + a13 = 1; + a11 = 1; + a28 = 1; + a16 = 8; + a5 = 5; + a21 = 10; + a20 = 0; + a9 = 10; + return 21; + } else if(((((a1==13)&&((((a16==9)&&(!(a14==1)&&(a23==1)))&&(a12==1))||!(a11==1)))&&!(a20==1))&&((a19==4)&&(((a3==1)&&((a17==2)&&(((a6==1)&&((input==5)&&((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))))&&!(a24==1))))&&(a21==12))))){ + if((a3==1)){ + a1 = 14; + a16 = 11; + a20 = 1; + a23 = 0; + a5 = 4; + a21 = 11; + a2 = 0; + a9 = 8; + a10 = 1; + a19 = 3; + }else{ + a16 = 7; + a5 = 5; + a1 = 12; + a19 = 1; + a26 = 1; + a9 = 11; + a20 = 1; + a29 = 0; + a21 = 10; + a4 = 1; + } + return -1; + } else if(((((!(a20==1)&&((a23==1)&&((!(a24==1)&&((a19==5)&&((a16==7)&&(input==6))))&&(a12==1))))&&(a13==1))&&(a3==1))&&(!(a12==1)||((a1==14)&&(((a21==10)&&(((a9==8)&&(a2==1))&&(a17==2)))&&(a5==4)))))){ + a6 = 1; + a16 = 11; + a9 = 9; + a20 = 1; + a19 = 3; + a5 = 5; + a21 = 12; + a13 = 1; + return 22; + } else if((((a20==1)&&(!(a24==1)&&((a18==1)||(((a8==1)||((((a1==14)&&(a28==1))&&!(a7==1))||(a27==1)))||(a27==1)))))&&((a9==7)&&(((a16==9)&&((a19==2)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a21==11))))&&(a17==2))))){ + a13 = 1; + a27 = 0; + a16 = 7; + a6 = 1; + a21 = 10; + a1 = 12; + a19 = 1; + a5 = 4; + return -1; + } else if(((!(a13==1)||(((((a9==9)&&((a6==1)&&(a17==2)))||!(a3==1))&&(a16==8))&&(a19==5)))&&(((((a1==14)&&((a13==1)&&(!(a20==1)&&((a2==1)&&(((a5==5)||(a5==6))&&(input==6))))))&&!(a18==1))&&(a21==10))&&!(a24==1)))){ + a16 = 9; + a9 = 8; + a27 = 0; + a5 = 4; + a20 = 1; + a6 = 1; + a18 = 0; + a1 = 13; + return 21; + } else if((((((((input==4)&&(((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))))&&(a6==1))&&!(a7==1))&&(a16==8))&&(a19==1))&&(((a21==10)&&((((a17==2)&&((((a28==1)&&(a2==1))&&!(a20==1))||(a0==1)))&&!(a8==1))&&(a6==1)))&&(a1==12)))){ + a24 = 0; + a9 = 10; + a21 = 11; + a5 = 5; + a12 = 1; + a20 = 1; + a1 = 14; + a19 = 2; + return -1; + } else if((((!(a20==1)&&((input==3)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))))&&(a16==8))&&(((a21==11)&&((!(a3==1)||((!(a11==1)||((((a1==14)&&((a2==1)&&(a12==1)))&&(a3==1))&&(a17==2)))&&(a11==1)))&&(a19==4)))&&!(a14==1)))){ + a6 = 1; + a19 = 1; + a1 = 12; + a3 = 1; + a28 = 1; + a20 = 1; + a5 = 4; + a21 = 10; + a9 = 7; + a16 = 7; + return -1; + } else if((((((!(a7==1)&&(((a20==1)&&(((!(a14==1)&&((input==1)&&(a9==8)))&&(a1==13))&&(a17==2)))&&!(a18==1)))&&(a21==10))&&!(a14==1))&&(a5==6))&&((((a19==3)&&((a13==1)&&!(a4==1)))||(a24==1))&&(a16==9)))){ + a28 = 1; + a11 = 1; + a13 = 1; + a5 = 4; + a1 = 12; + a9 = 7; + a16 = 7; + a19 = 1; + return -1; + } else if(((((a1==13)&&((!(a27==1)&&(((a28==1)&&(a2==1))&&(a3==1)))&&!(a20==1)))&&(a21==12))&&((!(a8==1)&&((((a16==9)&&((a13==1)&&(((input==5)&&(a9==7))&&(a5==4))))&&(a3==1))&&(a19==4)))&&(a17==2)))){ + a21 = 10; + a19 = 5; + a14 = 1; + a22 = 1; + a9 = 11; + a16 = 7; + a8 = 1; + return -1; + } else if(((((a16==7)&&(((((a3==1)||(a4==1))&&(a17==2))&&!(a20==1))&&(a2==1)))&&(a9==8))&&((((a13==1)&&((((a1==12)&&((((a5==5)||(a5==6))&&(input==5))&&(a11==1)))&&(a19==1))&&(a21==12)))&&!(a4==1))&&(a11==1)))){ + a1 = 14; + a5 = 5; + a24 = 0; + a16 = 8; + a19 = 5; + a27 = 0; + a20 = 1; + a23 = 1; + return -1; + } else if(((((((a6==1)&&(a21==10))&&(a16==8))&&!(a14==1))&&!(a24==1))&&((((a13==1)&&((((a23==1)&&(((a20==1)&&((input==1)&&((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10)))))&&(a1==12)))&&(a19==4))&&(a17==2)))&&(a11==1))&&!(a18==1)))){ + if((a6==1)){ + a13 = 1; + a12 = 1; + a20 = 0; + a9 = 10; + a5 = 4; + a19 = 2; + a21 = 11; + a4 = 0; + }else{ + a5 = 6; + a16 = 9; + a21 = 12; + a9 = 11; + a1 = 14; + a19 = 5; + a2 = 1; + a0 = 0; + a26 = 0; + } + return 23; + } else if(((!(a2==1)||(((!(a13==1)||((((a28==1)&&(a17==2))&&(a21==10))&&(a16==8)))&&(a2==1))||(a14==1)))&&((((a28==1)&&(((a9==11)&&((a5==4)&&((input==5)&&!(a20==1))))&&(a19==1)))&&(a1==14))&&(a11==1)))){ + a16 = 7; + a11 = 1; + a9 = 7; + a20 = 1; + a26 = 0; + a1 = 12; + a4 = 0; + return -1; + } else if(((((a9==8)&&(((a24==1)||((((a11==1)||(a14==1))&&(a6==1))||!(a13==1)))&&(a16==8)))&&!(a20==1))&&((a17==2)&&((!(a27==1)&&((((((a5==5)||(a5==6))&&(input==6))&&!(a7==1))&&(a21==11))&&(a1==12)))&&(a19==1))))){ + a1 = 14; + a9 = 7; + a5 = 5; + a26 = 0; + a19 = 2; + a20 = 1; + a28 = 1; + a6 = 1; + a16 = 10; + a21 = 10; + return 21; + } else if((((a19==1)&&(!(a20==1)&&(((((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==4))&&(a16==10))&&(a28==1))&&(a13==1))))&&((((a11==1)&&(((a17==2)&&((a26==1)||((a6==1)||!(a28==1))))&&(a6==1)))&&(a1==12))&&(a21==12)))){ + a9 = 8; + a8 = 1; + a16 = 7; + a20 = 1; + a27 = 1; + a5 = 5; + a1 = 14; + a6 = 0; + a21 = 10; + return 25; + } else if((((((a19==5)&&(((a11==1)&&((((((input==3)&&(a20==1))&&(a3==1))&&(a5==4))&&(a28==1))&&!(a8==1)))&&(a16==11)))&&(a17==2))&&(a1==13))&&(!(a7==1)&&((a9==10)&&((!(a6==1)||(a12==1))&&(a21==12)))))){ + a19 = 1; + a1 = 12; + a14 = 0; + a16 = 7; + a0 = 0; + a9 = 7; + a21 = 10; + a3 = 1; + return -1; + } else if((((!(a27==1)&&((a3==1)&&((a2==1)&&(!(a14==1)&&(((a13==1)&&(((a17==2)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1)))&&(a21==12)))&&(a20==1))))))&&!(a8==1))&&(((a19==4)&&((a1==14)&&((a9==9)&&(a11==1))))&&(a16==11)))){ + if((a28==1)){ + a19 = 3; + a9 = 10; + a23 = 1; + a5 = 6; + a13 = 1; + a11 = 1; + a21 = 10; + a16 = 8; + a20 = 0; + }else{ + a1 = 12; + a21 = 10; + a9 = 8; + a4 = 0; + a24 = 0; + a16 = 7; + a3 = 1; + a5 = 6; + } + return 23; + } else if((((a1==14)&&(((((((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6))))&&(input==3))&&!(a18==1))&&(a16==10))&&(a21==12)))&&(((!(a6==1)||((!(a14==1)&&((((a6==1)&&(a19==3))&&(a17==2))||(a0==1)))&&!(a20==1)))&&(a6==1))||!(a12==1)))){ + if((a17==3)){ + a16 = 7; + a9 = 11; + a20 = 1; + a7 = 1; + a21 = 10; + a4 = 1; + a19 = 1; + a5 = 5; + }else{ + a19 = 2; + a16 = 8; + a13 = 0; + a14 = 1; + a1 = 13; + a9 = 11; + a25 = 1; + a5 = 6; + a21 = 11; + } + return -1; + } else if(((((a16==11)&&(((((a13==1)&&(a21==12))&&(a20==1))&&(a19==5))||(a7==1)))&&(a17==2))&&((((a23==1)&&(!(a27==1)&&(((a1==14)&&((input==1)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))))&&(a11==1))))&&!(a24==1))&&!(a0==1)))){ + a5 = 4; + a21 = 10; + a4 = 0; + a7 = 0; + a19 = 1; + a1 = 12; + a8 = 0; + a16 = 7; + a9 = 7; + return -1; + } else if((((a9==10)&&((a27==1)||(((((a3==1)&&(a16==7))&&(a20==1))&&(a21==11))||(a26==1))))&&(((a17==2)&&(((a28==1)&&(((a6==1)&&(((input==4)&&(a1==12))&&(a5==4)))&&(a13==1)))&&(a19==1)))&&!(a27==1)))){ + a9 = 7; + a11 = 1; + a21 = 10; + a23 = 1; + a13 = 1; + return -1; + } else if((((((a16==10)&&(!(a14==1)&&((((((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&(input==4))&&!(a18==1))&&(a11==1))))&&(a17==2))&&(a1==13))&&((((((a21==11)&&((a11==1)||!(a13==1)))&&(a19==1))&&!(a14==1))||!(a3==1))&&!(a20==1)))){ + a10 = 0; + a24 = 1; + a22 = 1; + a9 = 11; + a5 = 4; + a19 = 3; + return 25; + } else if(((!(a23==1)||((a19==3)&&(((a9==8)&&((a20==1)&&(!(a27==1)&&(a23==1))))||(a24==1))))&&((a16==9)&&(((((a5==6)&&(!(a4==1)&&((a1==13)&&((input==5)&&(a17==2)))))&&(a21==10))&&!(a8==1))&&(a6==1))))){ + if((a18==1)){ + a1 = 12; + a9 = 9; + a8 = 0; + a20 = 0; + a24 = 0; + a5 = 5; + a21 = 11; + a3 = 1; + a16 = 7; + }else{ + a16 = 11; + a4 = 0; + a28 = 1; + a1 = 12; + a2 = 1; + a19 = 2; + a5 = 4; + a9 = 7; + } + return 25; + } else if((((((a13==1)&&((a19==4)&&((a12==1)&&((a1==12)&&((((input==3)&&(((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))))&&(a17==2))&&(a21==10))))))&&!(a14==1))&&!(a7==1))&&(!(a2==1)||((!(a20==1)&&((a3==1)&&(a3==1)))&&(a16==9))))){ + a21 = 12; + a19 = 1; + a16 = 8; + a22 = 1; + a20 = 1; + a5 = 4; + a9 = 10; + a15 = 0; + return -1; + } else if((((((((a6==1)||!(a11==1))&&(a19==5))&&(a2==1))&&!(a20==1))&&(a13==1))&&((((a11==1)&&((a5==5)&&((a16==9)&&((a1==12)&&(((a9==10)&&((input==5)&&(a17==2)))&&(a21==10))))))&&!(a7==1))&&(a3==1)))){ + if((a18==1)){ + a1 = 14; + a23 = 0; + a5 = 6; + a24 = 1; + a14 = 1; + a9 = 7; + a16 = 7; + a19 = 2; + a21 = 11; + }else{ + a16 = 7; + a22 = 0; + a19 = 1; + a9 = 9; + a1 = 13; + a20 = 1; + a13 = 0; + a25 = 0; + } + return 23; + } else if(((((a20==1)&&((a24==1)||(((a19==3)&&(!(a26==1)&&((a21==11)&&(((a11==1)&&(a1==13))&&!(a8==1)))))&&(a13==1))))&&(a17==2))&&(((a2==1)&&((a16==7)&&((input==4)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9))))))&&(a3==1)))){ + a23 = 1; + a9 = 7; + a19 = 1; + a28 = 1; + a21 = 10; + a1 = 12; + a5 = 4; + return -1; + } else if((((a9==10)&&((a17==2)&&(!(a0==1)&&(((a11==1)&&((a16==11)&&(input==5)))&&(a5==4)))))&&((a20==1)&&((!(a12==1)||((a0==1)||(((((a1==13)&&(a12==1))&&(a21==12))||!(a6==1))&&!(a14==1))))&&(a19==5))))){ + a1 = 12; + a9 = 7; + a24 = 0; + a21 = 10; + a16 = 7; + a3 = 1; + a2 = 1; + a19 = 1; + return -1; + } else if(((((a16==11)&&(!(a24==1)&&((!(a4==1)&&((a9==10)&&(input==3)))&&!(a18==1))))&&(a20==1))&&((a1==13)&&(((!(a26==1)&&((a5==6)&&((a14==1)||((a21==11)&&((a12==1)&&(a19==2))))))&&(a17==2))&&!(a18==1))))){ + a21 = 10; + a5 = 4; + a11 = 1; + a19 = 1; + a16 = 7; + a9 = 7; + a28 = 1; + a1 = 12; + a2 = 1; + return -1; + } else if(((!(a0==1)&&((!(a27==1)&&(((((a21==10)&&(input==1))&&(a1==12))&&(a20==1))&&!(a4==1)))&&(a5==6)))&&((a16==9)&&((a17==2)&&((((!(a18==1)&&((a12==1)||!(a2==1)))&&(a9==9))&&(a19==4))||(a26==1)))))){ + a9 = 11; + a19 = 5; + a14 = 0; + a5 = 4; + a0 = 0; + a23 = 1; + a21 = 11; + return 21; + } else if((((!(a18==1)&&(((a6==1)&&(((a19==4)&&((a3==1)&&(((a5==4)||(a5==5))&&(input==3))))&&(a17==2)))&&(a13==1)))&&(a1==14))&&((((a16==8)&&((a6==1)&&(((a21==10)&&(a6==1))&&(a23==1))))&&!(a20==1))&&(a9==11)))){ + a27 = 0; + a1 = 12; + a20 = 1; + a19 = 1; + a16 = 7; + a9 = 7; + a12 = 1; + a5 = 4; + a2 = 1; + return -1; + } else if(((((((a23==1)&&(a3==1))&&(a11==1))||!(a23==1))&&(a16==9))&&(!(a8==1)&&(((a17==2)&&((a3==1)&&((a21==11)&&(!(a8==1)&&((((((a5==6)&&(a1==14))&&(a9==11))&&(a19==2))||((a19==3)&&((a9==7)&&((a1==12)&&(a5==4)))))&&(input==4))))))&&!(a20==1))))){ + a16 = 10; + a12 = 0; + a7 = 1; + a6 = 0; + a1 = 12; + a9 = 10; + a19 = 2; + a5 = 6; + return -1; + } else if((((a21==12)&&((a1==13)&&(((((!(a7==1)&&(!(a7==1)&&((input==4)&&((a5==4)||(a5==5)))))&&(a20==1))&&!(a8==1))&&(a13==1))&&(a9==8))))&&((((!(a14==1)&&((a17==2)&&(a12==1)))||!(a13==1))&&(a19==3))&&(a16==9)))){ + a5 = 4; + a16 = 7; + a18 = 0; + a9 = 7; + a1 = 12; + a21 = 10; + a26 = 0; + a19 = 1; + a24 = 0; + return -1; + } else if((((((!(a12==1)&&((((input==4)&&(a17==2))&&!(a23==1))&&(a19==1)))&&(a5==6))&&!(a20==1))&&(a16==7))&&((a21==10)&&(((a1==12)&&((((a7==1)&&((a4==1)&&(a11==1)))&&!(a23==1))&&!(a23==1)))&&(a9==7))))){ + a9 = 11; + a21 = 11; + a19 = 2; + a26 = 1; + a15 = 0; + a5 = 4; + a16 = 8; + a1 = 13; + a3 = 0; + return 21; + } else if((((((a18==1)||(((a28==1)||(a26==1))&&!(a7==1)))||(a0==1))&&(a16==10))&&((((a1==14)&&((!(a20==1)&&((a17==2)&&((a21==12)&&(!(a14==1)&&(((a5==4)||(a5==5))&&(input==3))))))&&!(a8==1)))&&(a19==1))&&(a9==8)))){ + a16 = 7; + a5 = 4; + a25 = 1; + a21 = 10; + a20 = 1; + a2 = 0; + a15 = 0; + return -1; + } else if((((a19==4)&&(!(a23==1)||((a3==1)&&((a17==2)&&(((a11==1)||(a14==1))||!(a12==1))))))&&(((a1==13)&&((((a16==8)&&((((a21==11)&&(input==5))&&(a5==4))&&(a20==1)))&&(a9==7))&&(a13==1)))&&!(a8==1)))){ + a13 = 1; + a11 = 1; + a21 = 10; + a1 = 12; + a19 = 1; + a16 = 7; + return -1; + } else if((((!(a0==1)&&((a19==3)&&((a1==13)&&((a3==1)&&((a23==1)&&(!(a7==1)&&(((a16==11)&&((a9==9)&&(input==4)))&&!(a24==1))))))))&&(a20==1))&&((a3==1)&&(((a5==5)&&((a21==10)&&(a28==1)))&&(a17==2))))){ + a19 = 1; + a6 = 1; + a16 = 7; + a9 = 7; + a1 = 12; + a5 = 4; + a2 = 1; + return -1; + } else if(((!(a20==1)&&((a1==12)&&(!(a4==1)&&((((((input==3)&&(a17==2))&&!(a18==1))&&(a16==7))&&!(a0==1))&&(a9==7)))))&&(!(a28==1)||((!(a28==1)||((a24==1)||(((a28==1)&&(a5==6))&&(a19==1))))&&(a21==10))))){ + a18 = 0; + a24 = 0; + a20 = 1; + a2 = 1; + a5 = 4; + return -1; + } else if((((((((a12==1)&&(a9==10))&&(a16==7))&&(a21==10))&&(a17==2))&&!(a24==1))&&(((a12==1)&&(((a11==1)&&((a12==1)&&((a19==5)&&((((input==5)&&(a5==4))&&!(a4==1))&&!(a20==1)))))&&!(a8==1)))&&(a1==14)))){ + a21 = 12; + a27 = 0; + a20 = 1; + a16 = 8; + a19 = 3; + a5 = 6; + a14 = 0; + a12 = 1; + a9 = 11; + return -1; + } else if(((((a5==4)&&((a4==1)||((((((a4==1)||(a13==1))&&(a20==1))&&(a17==2))&&(a21==11))&&(a11==1))))||(a4==1))&&((a9==11)&&(((a19==1)&&((a13==1)&&(((a1==12)&&(input==4))&&(a6==1))))&&(a16==11))))){ + a9 = 7; + a8 = 0; + a0 = 0; + a16 = 7; + a21 = 10; + return -1; + } else if((((a17==2)&&((((((a6==1)&&(!(a20==1)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==3))))&&(a1==12))&&(a21==11))&&(a28==1))&&(a28==1)))&&(!(a12==1)||((a16==10)&&((((a2==1)&&!(a24==1))&&(a19==3))||!(a12==1)))))){ + a16 = 7; + a15 = 1; + a1 = 14; + a28 = 0; + a21 = 10; + a8 = 1; + a5 = 5; + a19 = 1; + a20 = 1; + a9 = 8; + return -1; + } else if((((a24==1)||(((((a19==2)&&(((a7==1)||(a3==1))&&(a1==14)))&&(a17==2))||!(a28==1))&&(a2==1)))&&((a16==8)&&((a12==1)&&((a6==1)&&((a21==10)&&(!(a20==1)&&(((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10)))&&(input==6))))))))){ + a0 = 0; + a20 = 1; + a9 = 10; + a5 = 4; + a16 = 7; + a8 = 0; + a19 = 3; + return 25; + } else if((((!(a7==1)&&((a1==13)&&((((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(input==1))))&&(a21==11))&&(((a2==1)&&((((a19==4)&&((a27==1)||(!(a6==1)||(((a16==11)&&(a2==1))&&(a17==2)))))&&(a20==1))&&!(a24==1)))&&(a12==1)))){ + a23 = 1; + a9 = 7; + a19 = 1; + a1 = 12; + a21 = 10; + a4 = 0; + a16 = 7; + a24 = 0; + a5 = 4; + return -1; + } else if(((((a19==1)&&(!(a23==1)||(((a14==1)||(!(a27==1)&&((a1==12)&&(a28==1))))&&(a16==8))))&&!(a7==1))&&(!(a14==1)&&((((((input==6)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(a20==1))&&(a17==2))&&!(a18==1))&&(a21==10))))){ + a9 = 7; + a16 = 7; + a0 = 0; + a18 = 0; + a5 = 4; + return -1; + } else if((((((((((a28==1)&&!(a8==1))&&(a20==1))||!(a23==1))||!(a11==1))&&(a17==2))&&(a21==12))&&(a1==14))&&((a16==11)&&((a23==1)&&((((((a5==5)&&(input==6))&&(a19==4))&&(a28==1))&&(a9==10))&&(a28==1)))))){ + a5 = 4; + a11 = 1; + a19 = 1; + a2 = 1; + a16 = 7; + a1 = 12; + a27 = 0; + a9 = 7; + a21 = 10; + return -1; + } else if((((!(a27==1)&&(!(a20==1)&&((a26==1)||((((a12==1)&&!(a8==1))||!(a28==1))&&!(a24==1)))))&&(a16==9))&&((a17==2)&&(((a1==13)&&((a23==1)&&((a19==5)&&((input==3)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))))))&&(a21==11))))){ + a1 = 12; + a16 = 7; + a10 = 1; + a9 = 9; + a0 = 1; + a21 = 10; + a5 = 4; + a12 = 0; + a20 = 1; + a19 = 1; + return -1; + } else if((((a21==11)&&((!(a4==1)&&((a3==1)&&((((((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&(a19==5))&&!(a18==1))&&(a1==12))&&!(a26==1))))&&!(a7==1)))&&(!(a20==1)&&(((a9==9)&&((a24==1)||((a23==1)&&(a17==2))))&&(a16==10))))){ + if((a28==1)){ + a25 = 0; + a29 = 0; + a19 = 1; + a16 = 7; + a8 = 1; + a20 = 1; + a1 = 14; + a5 = 5; + a21 = 10; + }else{ + a20 = 1; + a5 = 5; + a9 = 7; + a19 = 2; + a8 = 1; + a21 = 10; + a16 = 7; + } + return 21; + } else if(((((((a23==1)&&(((a9==10)&&(input==1))&&(a19==5)))&&(a2==1))&&(a16==8))&&!(a20==1))&&((a17==2)&&((a5==6)&&((!(a3==1)||(!(a23==1)||(((a21==11)&&((a26==1)||(a3==1)))||!(a23==1))))&&(a1==12)))))){ + a23 = 0; + a9 = 11; + a26 = 1; + a20 = 1; + a4 = 1; + a19 = 2; + a16 = 7; + a21 = 10; + return -1; + } else if(((((a11==1)&&((a2==1)&&(((a17==2)&&(((a19==2)&&((a20==1)&&(((((a9==11)&&((a5==5)&&(a1==12)))||((a9==11)&&((a5==6)&&(a1==12))))||(((a5==4)&&(a1==13))&&(a9==7)))&&(input==6))))&&(a28==1)))&&!(a8==1))))&&(a16==11))&&((a21==12)&&(!(a27==1)&&((a3==1)&&!(a7==1)))))){ + a1 = 14; + a21 = 10; + a5 = 4; + a19 = 5; + a9 = 7; + a26 = 0; + a16 = 8; + a27 = 0; + return 25; + } else if(((((a21==11)&&((!(a20==1)&&((a17==2)&&((((a5==5)||(a5==6))&&(input==3))&&!(a27==1))))&&(a1==12)))&&(a9==9))&&((((a23==1)&&((a12==1)&&(!(a14==1)&&(((a7==1)||(a3==1))||!(a11==1)))))&&(a19==5))&&(a16==8)))){ + a5 = 4; + a20 = 1; + a19 = 1; + a16 = 7; + a27 = 0; + a21 = 10; + a14 = 0; + a9 = 7; + a2 = 1; + return -1; + } else if(((((a1==13)&&((a3==1)&&(((a17==2)&&((a2==1)&&((a3==1)&&((input==3)&&(((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))))))&&!(a18==1))))&&!(a0==1))&&((a16==8)&&((a21==10)&&(((a20==1)&&((a19==4)&&(a13==1)))||(a4==1)))))){ + a16 = 7; + a19 = 1; + a5 = 4; + a6 = 1; + a9 = 7; + a2 = 1; + a1 = 12; + a3 = 1; + return -1; + } else if((((a6==1)&&((a21==12)&&((((a28==1)&&(a11==1))&&(a20==1))&&(a17==2))))&&(((a13==1)&&(((((input==6)&&((((a9==11)&&((a1==14)&&(a5==6)))&&(a19==4))||((a19==5)&&(((a1==12)&&(a5==4))&&(a9==7)))))&&(a16==10))&&(a2==1))&&!(a4==1)))&&!(a24==1)))){ + a21 = 10; + a16 = 7; + a23 = 1; + a1 = 13; + a24 = 0; + a19 = 2; + a26 = 0; + a5 = 4; + a9 = 9; + return 25; + } else if((((((!(a23==1)&&((a1==13)&&(a28==1)))&&(a19==2))&&(a5==5))&&(a20==1))&&((a17==2)&&(((!(a28==1)&&(((a7==1)&&((a8==1)&&((a9==10)&&((input==1)&&(a21==10)))))&&(a18==1)))&&(a16==9))&&!(a6==1))))){ + a19 = 3; + a16 = 10; + a21 = 12; + a1 = 14; + a27 = 1; + a2 = 0; + a5 = 4; + a9 = 11; + a28 = 0; + return 21; + } else if((((a13==1)&&(((((a19==4)&&(a6==1))||(a0==1))&&!(a24==1))&&(a16==9)))&&(((!(a0==1)&&((((a21==10)&&((a13==1)&&((((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(input==6))))&&(a2==1))&&(a1==12)))&&(a17==2))&&(a20==1)))){ + a9 = 7; + a6 = 1; + a4 = 0; + a19 = 1; + a24 = 0; + a16 = 7; + a5 = 4; + return -1; + } else if((((a23==1)&&((((a3==1)&&((a1==12)&&((a9==8)&&((a21==10)&&((a16==10)&&(((a5==4)||(a5==5))&&(input==5)))))))&&!(a18==1))&&(a11==1)))&&((a8==1)||(!(a28==1)||(((a19==2)&&(!(a20==1)&&(a2==1)))&&(a17==2)))))){ + a29 = 1; + a16 = 11; + a5 = 5; + a15 = 1; + a22 = 1; + return 23; + } else if((((a16==10)&&((!(a24==1)&&(((a12==1)&&((input==4)&&(a21==11)))&&(a9==8)))&&(a1==14)))&&((!(a8==1)&&(!(a20==1)&&((((a19==4)&&(((a23==1)&&!(a27==1))||(a18==1)))&&(a5==5))&&(a17==2))))&&!(a14==1)))){ + a19 = 1; + a7 = 1; + a9 = 10; + a20 = 1; + a16 = 7; + a29 = 1; + a21 = 10; + a1 = 12; + return 25; + } else if(((((((a11==1)&&(!(a20==1)&&((input==4)&&(((a9==7)&&((a5==5)&&(a1==14)))||((((a1==13)&&(a5==6))&&(a9==11))||((a9==7)&&((a1==14)&&(a5==4))))))))&&(a12==1))&&(a6==1))&&(a23==1))&&((!(a18==1)&&((((a21==10)&&((a23==1)&&(a28==1)))&&(a19==3))&&(a16==10)))&&(a17==2)))){ + if((a27==1)){ + a20 = 1; + a23 = 0; + a5 = 4; + a1 = 12; + a16 = 7; + a2 = 0; + a9 = 8; + a19 = 1; + a18 = 1; + }else{ + a2 = 0; + a5 = 6; + a21 = 12; + a28 = 0; + a10 = 1; + a19 = 5; + a1 = 13; + a16 = 9; + a9 = 9; + a20 = 1; + } + return -1; + } else if(((((a20==1)&&(((a17==2)&&(!(a24==1)&&((a11==1)&&(a21==11))))&&(a9==9)))&&(a19==5))&&(((a16==8)&&((a12==1)&&(((!(a4==1)&&((((a5==5)||(a5==6))&&(input==6))&&(a6==1)))&&(a28==1))&&!(a24==1))))&&(a1==13)))){ + a11 = 1; + a9 = 7; + a12 = 1; + a5 = 4; + a23 = 1; + a16 = 7; + a21 = 10; + a19 = 1; + a1 = 12; + return -1; + } else if((((a19==2)&&(((a3==1)&&((a16==9)&&(!(a12==1)||(!(a23==1)||(a23==1)))))&&(a21==12)))&&(((((a1==14)&&(!(a18==1)&&((((input==3)&&(a9==8))&&(a12==1))&&!(a14==1))))&&!(a20==1))&&(a17==2))&&(a5==5)))){ + if((a19==2)){ + a1 = 12; + a24 = 1; + a16 = 7; + a20 = 1; + a9 = 10; + a28 = 0; + a23 = 0; + a21 = 10; + }else{ + a16 = 7; + a1 = 12; + a21 = 10; + a20 = 1; + a22 = 1; + a14 = 1; + a15 = 0; + } + return 25; + } else if(((!(a20==1)&&((((a2==1)&&(a24==1))&&(a19==1))&&(a14==1)))&&((a1==13)&&(((a9==10)&&((a16==8)&&((((!(a6==1)&&(!(a11==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4))))&&(a26==1))&&(a7==1))&&(a21==10))))&&(a17==2))))){ + a10 = 1; + a1 = 12; + a20 = 1; + a9 = 9; + a5 = 6; + a16 = 7; + a2 = 0; + a6 = 0; + a21 = 11; + return 25; + } else if((((((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a23==1))&&!(a4==1))&&((!(a20==1)&&((a1==13)&&((((a14==1)||((a21==10)&&((a19==4)&&((a9==9)&&(((a11==1)&&(a12==1))&&(a12==1))))))&&(a16==8))||!(a28==1))))&&(a17==2)))){ + a5 = 4; + a16 = 7; + a9 = 7; + a20 = 1; + a27 = 0; + a19 = 1; + a3 = 1; + a26 = 0; + a1 = 12; + return -1; + } else if(((((a11==1)&&((a19==1)&&(!(a27==1)&&(((((a16==7)&&((a17==2)&&((a5==5)&&(input==3))))&&(a21==12))&&(a1==14))&&(a20==1)))))&&!(a7==1))&&(!(a12==1)||((a9==8)&&(((a6==1)||(a7==1))||(a18==1)))))){ + a5 = 4; + a12 = 1; + a24 = 0; + a9 = 7; + a4 = 0; + a1 = 12; + a21 = 10; + return -1; + } else if(((((a16==11)&&((a17==2)&&((a19==2)&&((a23==1)&&(a20==1)))))&&(a14==1))&&(((!(a2==1)&&((a21==12)&&((a4==1)&&(!(a11==1)&&(((input==1)&&((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9))))&&(a1==14))))))&&!(a12==1))&&(a18==1)))){ + a20 = 0; + a3 = 0; + a9 = 8; + a19 = 3; + a7 = 1; + a16 = 7; + a18 = 1; + a5 = 5; + a21 = 10; + return -1; + } else if(((((a1==12)&&((a20==1)&&((a16==10)&&((a11==1)&&((a12==1)&&!(a0==1))))))&&(a9==7))&&((a21==11)&&((a5==4)&&(((a12==1)&&((a13==1)&&((a28==1)&&(((a19==3)&&(input==6))&&(a3==1)))))&&(a17==2)))))){ + a1 = 13; + a24 = 0; + a2 = 1; + a16 = 7; + a21 = 10; + a19 = 2; + a9 = 9; + a18 = 0; + return 25; + } else if((((a16==7)&&((((((a11==1)&&!(a11==1))&&!(a28==1))&&(a18==1))&&(a9==11))&&!(a3==1)))&&((a1==12)&&(((a17==2)&&(((a20==1)&&((a0==1)&&(((a19==4)&&(input==1))&&!(a2==1))))&&(a21==11)))&&(a5==4))))){ + a12 = 0; + a28 = 0; + a1 = 13; + a19 = 1; + a16 = 8; + a9 = 8; + a26 = 1; + a21 = 12; + return -1; + } else if((((!(a7==1)&&((((a2==1)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==5)))&&!(a0==1))&&(a13==1)))&&(a17==2))&&(((a19==3)&&(((a26==1)||(!(a2==1)||((a1==13)&&((a3==1)&&(a16==10)))))&&(a21==10)))&&!(a20==1)))){ + a3 = 0; + a16 = 8; + a5 = 5; + a19 = 4; + a21 = 12; + a12 = 0; + a13 = 0; + a9 = 8; + return 25; + } else if((((a16==9)&&(((a27==1)||(((a21==10)&&((a9==9)&&((a3==1)&&!(a24==1))))&&!(a18==1)))||(a26==1)))&&((a1==12)&&(((a17==2)&&(!(a7==1)&&(((a28==1)&&((input==1)&&((a5==5)||(a5==6))))&&(a19==2))))&&(a20==1))))){ + a3 = 1; + a1 = 13; + a5 = 5; + a6 = 1; + a16 = 11; + a19 = 1; + a9 = 11; + a24 = 0; + return 25; + } else if((((((a1==14)&&((((a11==1)&&((a13==1)&&((input==6)&&((a5==4)||(a5==5)))))&&(a2==1))&&(a13==1)))&&(a19==2))&&(a16==10))&&(((a21==11)&&((a20==1)&&(!(a11==1)||(((a28==1)&&(a17==2))||!(a28==1)))))&&(a9==7)))){ + a16 = 7; + a0 = 0; + a13 = 1; + a19 = 1; + a5 = 4; + a3 = 1; + a21 = 10; + a1 = 12; + return -1; + } else if((((((a19==1)&&((((a16==8)&&((a28==1)&&!(a7==1)))&&(a17==2))||(a26==1)))||!(a2==1))&&!(a8==1))&&((a1==14)&&((a21==10)&&(!(a18==1)&&(((a20==1)&&((input==4)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))))&&(a13==1))))))){ + a1 = 12; + a5 = 4; + a4 = 0; + a9 = 7; + a16 = 7; + a0 = 0; + return -1; + } else if((((!(a8==1)&&((a17==2)&&(!(a0==1)&&((a1==12)&&(!(a20==1)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==1)))))))&&(a21==10))&&((a16==10)&&((a2==1)&&(((a3==1)&&(((a11==1)&&!(a26==1))&&(a19==1)))||!(a11==1)))))){ + a24 = 1; + a1 = 14; + a16 = 7; + a29 = 1; + a5 = 4; + a20 = 1; + a9 = 9; + return 23; + } else if((((((a19==3)&&((((a20==1)&&(((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a0==1)))&&(a6==1))&&(a17==2)))&&(a1==13))&&!(a0==1))&&(!(a0==1)&&((((((a9==10)&&(a3==1))&&(a21==11))&&(a16==9))&&!(a0==1))&&!(a18==1))))){ + a5 = 4; + a6 = 1; + a16 = 7; + a1 = 12; + a11 = 1; + a19 = 1; + a9 = 7; + a0 = 0; + a21 = 10; + return -1; + } else if((((a4==1)||(!(a11==1)||((a9==7)&&(((a16==7)&&(a11==1))&&(a21==10)))))&&((((a20==1)&&(!(a26==1)&&((a1==13)&&(((((input==6)&&(a5==6))&&(a17==2))&&(a28==1))&&(a19==4)))))&&(a6==1))&&(a28==1)))){ + a27 = 0; + a1 = 14; + a7 = 0; + a3 = 1; + a21 = 11; + return 26; + } else if((((a11==1)&&((((a21==11)&&(((input==3)&&((((a5==6)&&(a1==13))&&(a9==11))||(((a5==4)&&(a1==14))&&(a9==7))))&&(a19==2)))&&!(a26==1))&&(a16==8)))&&((a2==1)&&((a17==2)&&(!(a24==1)&&(!(a20==1)&&(((a13==1)||(a18==1))&&(a28==1)))))))){ + a1 = 12; + a21 = 10; + a19 = 1; + a16 = 7; + a20 = 1; + a11 = 1; + a23 = 1; + a13 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if((((a21==11)&&(!(a18==1)&&((!(a26==1)&&((a23==1)&&(!(a8==1)&&((input==3)&&((a5==4)||(a5==5))))))&&!(a27==1))))&&((a19==4)&&((a1==12)&&((a9==11)&&((a17==2)&&((a16==9)&&((!(a27==1)&&(a12==1))&&(a20==1))))))))){ + a19 = 1; + a3 = 1; + a21 = 10; + a28 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + return -1; + } else if((((((a1==13)&&((a13==1)&&((a19==1)&&(((a4==1)||((a20==1)&&(a11==1)))&&(a16==11)))))&&(a21==12))&&(a17==2))&&(((!(a4==1)&&((!(a8==1)&&((input==3)&&((a5==5)||(a5==6))))&&(a3==1)))&&!(a24==1))&&(a9==10)))){ + a5 = 5; + a9 = 7; + a27 = 0; + a12 = 1; + a19 = 5; + a21 = 11; + a7 = 0; + return 21; + } else if(((((a21==11)&&((a17==2)&&(((a2==1)&&((a2==1)&&(((a5==4)||(a5==5))&&(input==5))))&&(a12==1))))&&!(a18==1))&&(((((a1==13)&&(((a27==1)||((a19==1)&&(a6==1)))&&(a20==1)))&&(a16==9))&&(a9==9))||(a0==1)))){ + a14 = 0; + a5 = 4; + a21 = 10; + a16 = 7; + a9 = 7; + a1 = 12; + a7 = 0; + a26 = 0; + return -1; + } else if(((((a18==1)||(!(a20==1)&&(((a2==1)&&(a3==1))&&(a19==4))))&&(a28==1))&&((a13==1)&&(((a21==11)&&(((((a1==13)&&((input==4)&&((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11)))))&&(a16==8))&&(a17==2))&&(a2==1)))&&(a23==1))))){ + a12 = 1; + a9 = 7; + a28 = 1; + a20 = 1; + a16 = 7; + a5 = 6; + a18 = 0; + return 26; + } else if((((a23==1)&&(!(a26==1)&&((a11==1)&&(((a21==10)&&((a19==5)&&((((input==4)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8))))&&(a1==14))&&(a20==1))))&&!(a26==1)))))&&(!(a14==1)&&((a0==1)||((a16==9)&&((a17==2)&&(a13==1))))))){ + a5 = 4; + a16 = 7; + a19 = 1; + a3 = 1; + a2 = 1; + a12 = 1; + a9 = 7; + a1 = 12; + return -1; + } else if(((((a16==10)&&((a28==1)&&(a1==13)))&&(a21==10))&&((a12==1)&&(!(a14==1)&&((((((a19==4)&&((a17==2)&&((a6==1)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==6)))))&&!(a20==1))&&!(a27==1))&&(a12==1))&&(a2==1)))))){ + a9 = 10; + a16 = 7; + a28 = 0; + a20 = 1; + a19 = 1; + a5 = 5; + a3 = 0; + a7 = 1; + return -1; + } else if((((((a21==10)&&(!(a27==1)&&(!(a14==1)&&(!(a24==1)&&((a16==11)&&(a6==1))))))&&(a19==2))&&(a17==2))&&((a1==12)&&(((a23==1)&&(!(a27==1)&&((a12==1)&&((((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&(input==4)))))&&(a20==1))))){ + a16 = 7; + a9 = 7; + a7 = 0; + a19 = 1; + a5 = 4; + a4 = 0; + return -1; + } else if(((((a12==1)&&(!(a23==1)||((a24==1)||(((a12==1)&&((a17==2)&&((a20==1)&&((a14==1)||((a28==1)||!(a3==1))))))&&(a21==12)))))&&(a1==12))&&(((((input==3)&&((a5==4)||(a5==5)))&&(a9==7))&&(a19==3))&&(a16==8)))){ + a19 = 1; + a21 = 10; + a13 = 1; + a2 = 1; + a16 = 7; + a5 = 4; + a14 = 0; + return -1; + } else if((((!(a0==1)&&(((((((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==4))&&(a17==2))&&!(a8==1))&&!(a26==1)))&&(a1==12))&&(((a19==5)&&(((((a16==9)&&((a28==1)||(a8==1)))||(a4==1))||!(a11==1))&&!(a20==1)))&&(a21==12)))){ + a5 = 4; + a10 = 1; + a21 = 10; + a19 = 4; + a16 = 11; + a29 = 0; + a9 = 7; + a2 = 0; + a1 = 13; + return -1; + } else if(((((((a20==1)&&(((a13==1)&&((a13==1)&&((input==3)&&(a17==2))))&&(a19==2)))&&(a16==10))&&(a21==11))&&(a3==1))&&(((a1==12)&&((a5==4)&&((((a9==9)&&(a6==1))||(a27==1))||!(a2==1))))||(a4==1)))){ + a19 = 1; + a21 = 10; + a18 = 0; + a9 = 10; + a5 = 6; + a2 = 1; + a12 = 1; + return 21; + } else if((((((a17==2)&&(!(a8==1)&&(!(a26==1)&&((a23==1)&&(((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5)))&&(input==4))))))&&!(a0==1))&&(a16==7))&&(((a20==1)&&((((a26==1)||((a3==1)&&(a19==2)))&&(a3==1))&&(a1==13)))&&(a21==11)))){ + a5 = 4; + a14 = 0; + a28 = 1; + a26 = 0; + a21 = 10; + a19 = 1; + a1 = 12; + a9 = 7; + return -1; + } else if(((((!(a23==1)||(((a1==14)&&(!(a28==1)||(a2==1)))||!(a13==1)))&&!(a27==1))||(a26==1))&&(((a19==2)&&((a20==1)&&(((a17==2)&&((a21==10)&&((input==5)&&(((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))))))&&(a16==11))))&&(a3==1)))){ + a16 = 7; + a5 = 4; + a9 = 7; + a11 = 1; + a12 = 1; + a3 = 1; + a1 = 12; + a19 = 1; + return -1; + } else if((((!(a18==1)&&((a6==1)&&((a17==2)&&((a9==8)&&((a20==1)&&((input==3)&&((a5==4)||(a5==5))))))))&&(a1==13))&&(((a16==9)&&(((a19==4)&&((((a18==1)||(a13==1))&&(a21==12))||(a7==1)))||!(a3==1)))||!(a6==1)))){ + a27 = 0; + a9 = 9; + a6 = 1; + a5 = 5; + a1 = 12; + a8 = 0; + a19 = 3; + return 21; + } else if(((((a7==1)&&((((a9==8)&&(((input==4)&&(a21==11))&&(a20==1)))&&!(a11==1))&&(a27==1)))&&(a19==4))&&((((a16==9)&&((!(a2==1)&&((a17==2)&&((a6==1)&&!(a2==1))))&&(a5==4)))&&(a18==1))&&(a1==13)))){ + a20 = 0; + a9 = 7; + a5 = 6; + a1 = 12; + a19 = 5; + a10 = 1; + a4 = 1; + a16 = 8; + return 25; + } else if(((((a1==14)&&((a5==4)&&((a8==1)||(((a13==1)&&(a20==1))&&!(a8==1)))))||(a24==1))&&(!(a26==1)&&(((((a17==2)&&((a13==1)&&(!(a24==1)&&((input==5)&&(a9==8)))))&&(a21==10))&&(a19==2))&&(a16==8))))){ + a12 = 1; + a14 = 0; + a2 = 1; + a9 = 7; + a1 = 12; + a19 = 1; + a16 = 7; + return -1; + } else if(((((a13==1)&&((a17==2)&&(((a6==1)&&((a0==1)||(a13==1)))||!(a28==1))))&&(a19==5))&&(!(a20==1)&&((a16==10)&&((a21==12)&&(!(a26==1)&&((((((a1==13)&&(a5==5))&&(a9==7))||((((a5==6)&&(a1==12))&&(a9==11))||(((a5==4)&&(a1==13))&&(a9==7))))&&(input==4))&&(a12==1)))))))){ + a16 = 7; + a1 = 12; + a21 = 10; + a20 = 1; + a2 = 0; + a24 = 1; + a23 = 0; + a9 = 10; + a5 = 6; + a19 = 2; + return -1; + } else if(((!(a20==1)&&((a1==12)&&((a17==2)&&((a11==1)&&(a21==12)))))&&(((!(a0==1)&&((!(a7==1)&&(((!(a24==1)&&((input==1)&&(((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6))))))&&(a19==5))&&(a13==1)))&&(a16==7)))&&!(a4==1))&&(a28==1)))){ + a20 = 1; + a9 = 9; + a5 = 6; + a26 = 0; + a19 = 1; + a24 = 0; + return 22; + } else if(((!(a27==1)&&((a16==7)&&((a9==9)&&(!(a4==1)&&(((input==6)&&(a19==2))&&(a17==2))))))&&((!(a14==1)&&((((a21==11)&&((a5==4)&&((a2==1)&&((a3==1)&&(a1==12)))))&&(a20==1))&&!(a18==1)))&&!(a4==1)))){ + a21 = 10; + a1 = 14; + a27 = 0; + a16 = 8; + return 22; + } else if((((a19==3)&&((a17==2)&&(((a3==1)&&(!(a4==1)&&(!(a14==1)&&(((((a1==13)&&((a20==1)&&(a23==1)))||(a26==1))&&!(a14==1))&&!(a18==1)))))&&(a21==10))))&&((((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))&&(input==4))&&(a16==11)))){ + a16 = 7; + a0 = 0; + a5 = 4; + a1 = 12; + a27 = 0; + a19 = 1; + a2 = 1; + a9 = 7; + return -1; + } else if((((a17==2)&&((a24==1)||((a21==10)&&((!(a13==1)||(((a7==1)||(((a28==1)&&(a1==14))||(a18==1)))&&(a19==3)))&&(a23==1)))))&&(((a9==10)&&(!(a20==1)&&((a16==8)&&(((a5==4)||(a5==5))&&(input==4)))))&&(a6==1)))){ + a24 = 0; + a12 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + a1 = 12; + a20 = 1; + a19 = 1; + a3 = 1; + return -1; + } else if(((((!(a20==1)&&((((a9==7)&&(a11==1))&&(a6==1))||!(a23==1)))&&(a16==10))&&(a21==10))&&((a19==4)&&((a13==1)&&((((a6==1)&&(((a1==12)&&(((a5==5)||(a5==6))&&(input==1)))&&!(a7==1)))&&!(a18==1))&&(a17==2)))))){ + a16 = 11; + a19 = 2; + a18 = 1; + a5 = 4; + a27 = 1; + a9 = 8; + a1 = 14; + a25 = 0; + return 26; + } else if((((a9==10)&&((a14==1)||((((a17==2)&&(((a12==1)&&(a1==13))&&!(a8==1)))&&(a20==1))&&(a16==10))))&&((a12==1)&&((a3==1)&&(!(a24==1)&&((((a21==12)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6))))&&!(a4==1))&&(a19==5))))))){ + a11 = 1; + a21 = 10; + a9 = 9; + a0 = 0; + a5 = 5; + a2 = 1; + a19 = 2; + a16 = 7; + return 25; + } else if((((a17==2)&&((a9==7)&&(((!(a2==1)||(a2==1))&&!(a20==1))||(a0==1))))&&((a13==1)&&((a16==10)&&(!(a14==1)&&(((a21==11)&&((a3==1)&&((a1==12)&&((a23==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5))))))&&(a19==1))))))){ + a18 = 1; + a3 = 0; + a5 = 6; + a19 = 5; + a10 = 0; + a9 = 9; + return 25; + } else if(((!(a4==1)&&(((a1==12)&&((a28==1)&&(((((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(input==3))&&(a17==2))))&&(a16==10)))&&((!(a2==1)||(((a27==1)||((a21==11)&&(((a7==1)||(a11==1))&&!(a20==1))))||(a4==1)))&&(a19==1)))){ + a5 = 5; + a20 = 1; + a10 = 0; + a9 = 8; + a4 = 1; + a19 = 5; + a15 = 0; + a1 = 14; + return -1; + } else if(((((a16==9)&&((a26==1)||(((a21==12)&&((a28==1)&&(a2==1)))&&!(a20==1))))&&!(a4==1))&&(((((a12==1)&&(((((((a1==14)&&(a5==5))&&(a9==11))&&(a19==1))||((((a1==14)&&(a5==6))&&(a9==11))&&(a19==1)))||((a19==2)&&(((a1==12)&&(a5==4))&&(a9==7))))&&(input==4)))&&(a17==2))&&(a28==1))&&!(a24==1)))){ + if((a16==10)){ + a20 = 1; + a1 = 13; + a5 = 6; + a9 = 8; + a10 = 0; + a26 = 1; + a19 = 4; + a21 = 11; + }else{ + a11 = 0; + a5 = 4; + a9 = 10; + a19 = 2; + a1 = 14; + a7 = 1; + a21 = 10; + a10 = 1; + } + return -1; + } else if(((((a23==1)&&(((a7==1)||((a1==13)&&(!(a28==1)||((a11==1)&&!(a20==1)))))&&(a16==8)))&&!(a24==1))&&(((a19==3)&&((((a17==2)&&((((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(input==1)))&&(a21==11))&&!(a14==1)))&&!(a18==1)))){ + a26 = 0; + a7 = 0; + a9 = 7; + a1 = 12; + a5 = 4; + a21 = 10; + a19 = 1; + a20 = 1; + a18 = 0; + a16 = 7; + return -1; + } else if(((((!(a8==1)&&((a9==10)&&(((a21==10)&&(a11==1))&&!(a18==1))))||(a8==1))&&(a17==2))&&((a20==1)&&((a1==12)&&((((a11==1)&&(!(a26==1)&&((((a5==4)||(a5==5))&&(input==3))&&(a16==9))))&&!(a4==1))&&(a19==5)))))){ + a1 = 13; + a9 = 7; + a19 = 2; + a14 = 0; + a2 = 1; + a5 = 6; + a16 = 7; + a11 = 1; + return 22; + } else if(((!(a11==1)||((a1==12)&&(!(a4==1)&&(((!(a27==1)&&((a19==4)&&(a23==1)))&&(a21==10))&&(a17==2)))))&&((a6==1)&&(((a20==1)&&((a23==1)&&((a16==7)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==3)))))&&!(a24==1))))){ + a19 = 1; + a26 = 0; + a23 = 1; + a9 = 7; + a0 = 0; + a5 = 4; + return -1; + } else if(((!(a4==1)&&(((a12==1)&&((!(a20==1)&&(((input==6)&&(a9==8))&&(a21==10)))&&(a16==7)))&&(a23==1)))&&((((a1==13)&&(((a17==2)&&(((a13==1)&&(a12==1))&&!(a18==1)))&&(a5==4)))&&(a19==1))&&(a12==1)))){ + a5 = 6; + a6 = 1; + a13 = 1; + a9 = 11; + a11 = 1; + a19 = 2; + a1 = 12; + return 22; + } else if((((a23==1)&&(!(a8==1)&&((!(a0==1)&&((a11==1)&&(((input==5)&&!(a20==1))&&(a5==6))))&&(a21==10))))&&(((a9==9)&&((a26==1)||(((a1==14)&&(((a27==1)||(a2==1))&&(a16==9)))&&(a17==2))))&&(a19==5)))){ + a14 = 1; + a16 = 7; + a9 = 7; + a20 = 1; + a1 = 12; + a19 = 2; + a5 = 4; + a22 = 0; + a13 = 0; + return 25; + } else if((((a19==5)&&(((a21==10)&&(!(a6==1)&&(((a9==9)&&((!(a2==1)&&(((input==5)&&((a5==4)||(a5==5)))&&!(a11==1)))&&!(a12==1)))&&(a17==2))))&&!(a28==1)))&&((a1==13)&&((((a20==1)&&(a28==1))&&(a16==8))&&(a8==1))))){ + a5 = 6; + a9 = 7; + a14 = 1; + a1 = 12; + a7 = 1; + a26 = 1; + a19 = 1; + a16 = 9; + return -1; + } else if(((((a12==1)&&(((!(a20==1)&&((a3==1)&&((input==6)&&(((a19==3)&&(((a5==4)&&(a1==12))&&(a9==7)))||(((((a1==14)&&(a5==5))&&(a9==11))&&(a19==2))||((((a5==6)&&(a1==14))&&(a9==11))&&(a19==2)))))))&&(a21==12))&&(a2==1)))&&(a23==1))&&((((a13==1)&&((a7==1)||(a6==1)))&&(a17==2))&&(a16==10)))){ + a1 = 12; + a4 = 1; + a16 = 9; + a9 = 9; + a5 = 6; + a29 = 1; + a19 = 4; + return -1; + } else if((((a19==1)&&(!(a8==1)&&(!(a0==1)&&(((a12==1)&&((a3==1)&&((a16==8)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))))&&(a20==1)))))&&(((a9==9)&&(((a1==14)&&((a21==11)&&((a13==1)&&(a28==1))))&&!(a18==1)))&&(a17==2)))){ + a18 = 0; + a1 = 12; + a12 = 1; + a16 = 7; + a4 = 0; + a9 = 7; + a21 = 10; + a5 = 4; + return -1; + } else if((((((a20==1)&&(((a16==10)&&((a5==5)&&(input==6)))&&(a9==11)))&&(a1==14))&&!(a18==1))&&(!(a13==1)||(!(a7==1)&&((!(a3==1)||((a21==11)&&((a12==1)&&(((a19==2)&&(a2==1))&&(a17==2)))))||(a7==1)))))){ + a1 = 13; + a24 = 0; + a16 = 7; + a9 = 9; + a21 = 10; + a2 = 1; + a26 = 0; + return 25; + } else if(((((a6==1)&&((a21==10)&&(!(a8==1)&&((a1==12)&&(((a23==1)&&(a19==5))||!(a12==1))))))&&!(a24==1))&&(((a23==1)&&((a16==7)&&(((a9==8)&&((a12==1)&&((a5==5)&&(input==4))))&&(a17==2))))&&!(a20==1)))){ + a20 = 1; + a9 = 10; + a7 = 0; + a5 = 4; + a18 = 0; + a14 = 0; + a19 = 1; + return -1; + } else if(((((a19==3)&&(((a13==1)&&(!(a18==1)&&(((a5==5)||(a5==6))&&(input==5))))&&(a23==1)))&&(a17==2))&&((a1==14)&&((a21==12)&&((!(a7==1)&&((a27==1)||(((a9==9)&&((a28==1)&&(a16==8)))&&!(a8==1))))&&(a20==1)))))){ + a1 = 12; + a5 = 6; + a28 = 1; + a9 = 7; + a26 = 0; + a16 = 10; + a14 = 0; + return 21; + } else if(((((a16==10)&&(!(a13==1)||((a1==13)&&((a17==2)&&((((a11==1)||(a4==1))&&(a19==5))&&(a9==9))))))&&(a20==1))&&((!(a7==1)&&((!(a18==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&(a13==1)))&&!(a24==1)))&&(a21==12)))){ + if((a26==1)){ + a26 = 0; + a20 = 0; + a8 = 0; + a0 = 0; + a21 = 11; + a1 = 14; + a19 = 4; + a16 = 8; + a5 = 4; + }else{ + a21 = 10; + a13 = 1; + a5 = 6; + a16 = 7; + a7 = 0; + a19 = 2; + } + return 26; + } else if(((!(a28==1)&&((a9==10)&&((a16==7)&&((a17==2)&&(((a0==1)&&((a21==10)&&((a11==1)&&!(a11==1))))&&(a7==1))))))&&(((((((input==3)&&(a20==1))&&(a1==13))&&(a5==6))&&!(a6==1))&&!(a12==1))&&(a19==2)))){ + a15 = 1; + a19 = 1; + a13 = 0; + a1 = 14; + a23 = 0; + return 25; + } else if(((!(a4==1)&&(((a16==8)&&(!(a20==1)&&((((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))&&(input==1))&&(a17==2))))&&(a19==3)))&&(!(a7==1)&&((a1==12)&&(((((a4==1)||(!(a3==1)||(a23==1)))&&(a12==1))&&(a21==12))||(a24==1)))))){ + a8 = 1; + a9 = 11; + a20 = 1; + a25 = 1; + a5 = 4; + a19 = 2; + a16 = 11; + a18 = 1; + return -1; + } else if(((!(a8==1)&&(!(a13==1)||(((a21==10)&&((a1==14)&&((a19==5)&&((a3==1)&&(a28==1)))))&&(a17==2))))&&((a20==1)&&((a13==1)&&((!(a27==1)&&((a16==8)&&((input==1)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))))&&!(a8==1)))))){ + a9 = 9; + a5 = 4; + a19 = 2; + a27 = 0; + a16 = 10; + a1 = 13; + a3 = 1; + a24 = 0; + return 21; + } else if(((((a8==1)&&((a27==1)&&(((a1==12)&&((a16==10)&&((a17==2)&&(((input==1)&&((a5==5)||(a5==6)))&&(a14==1)))))&&(a19==2))))&&!(a6==1))&&(((a21==12)&&((!(a13==1)&&((a20==1)&&(a2==1)))&&(a9==9)))&&!(a6==1)))){ + a16 = 8; + a5 = 6; + a13 = 0; + a10 = 0; + a19 = 3; + a9 = 11; + return -1; + } else if((((((a6==1)&&((((a19==2)&&((a16==9)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))&&(input==6))))&&(a1==12))&&(a2==1)))&&(a11==1))&&!(a7==1))&&(((((a17==2)&&((a6==1)&&(a21==11)))&&!(a20==1))&&!(a8==1))&&!(a18==1)))){ + if((a10==1)){ + a19 = 3; + a21 = 10; + a5 = 5; + a24 = 1; + a3 = 0; + a16 = 7; + a28 = 0; + a1 = 14; + a9 = 10; + }else{ + a20 = 1; + a23 = 0; + a5 = 4; + a16 = 7; + a21 = 10; + a9 = 7; + a13 = 0; + a29 = 1; + a19 = 1; + } + return -1; + } else if((((a12==1)&&((((((a11==1)&&((a21==10)&&(input==3)))&&(a9==10))&&(a5==4))&&(a2==1))&&(a17==2)))&&((a20==1)&&((((a23==1)&&(((a8==1)||((a1==13)&&(a13==1)))&&(a19==2)))&&(a16==7))||(a0==1))))){ + a1 = 12; + a24 = 0; + a12 = 1; + a23 = 1; + a19 = 1; + a9 = 7; + return -1; + } else if((((a24==1)||(((a21==10)&&((a28==1)||!(a11==1)))&&!(a20==1)))&&(((a16==7)&&(!(a7==1)&&((!(a4==1)&&((a17==2)&&((input==5)&&(((a19==5)&&((a9==7)&&((a1==12)&&(a5==4))))||((((a9==11)&&((a1==14)&&(a5==5)))&&(a19==4))||(((a9==11)&&((a1==14)&&(a5==6)))&&(a19==4)))))))&&!(a8==1))))&&!(a0==1)))){ + a28 = 1; + a20 = 1; + a16 = 10; + a9 = 10; + a0 = 0; + a1 = 12; + a19 = 1; + a5 = 6; + return 21; + } else if(((((a9==8)&&((a11==1)&&((a19==3)&&(!(a7==1)&&(((a5==4)&&(input==4))&&(a16==7))))))&&(a1==12))&&((a17==2)&&(((a6==1)&&(((((a28==1)&&(a21==11))||(a26==1))||!(a13==1))&&(a2==1)))&&(a20==1))))){ + a21 = 10; + a28 = 1; + a12 = 1; + a19 = 1; + a9 = 7; + return -1; + } else if(((!(a20==1)&&(((!(a18==1)&&((a16==9)&&((a28==1)&&(((a19==3)&&((input==3)&&((((a9==11)&&((a1==13)&&(a5==5)))||(((a5==6)&&(a1==13))&&(a9==11)))||(((a5==4)&&(a1==14))&&(a9==7)))))&&(a21==11)))))&&(a28==1))&&(a17==2)))&&(((!(a7==1)&&(a3==1))&&!(a18==1))||(a18==1)))){ + a22 = 1; + a5 = 5; + a21 = 12; + a25 = 1; + a9 = 9; + a19 = 1; + a16 = 8; + a1 = 13; + a20 = 1; + return 25; + } else if(((((a23==1)&&((a2==1)&&((a11==1)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==5)))))&&(a17==2))&&(!(a23==1)||(!(a23==1)||((a1==13)&&((a16==7)&&((a21==10)&&(!(a3==1)||((!(a20==1)&&(a13==1))&&(a19==4)))))))))){ + a28 = 1; + a5 = 4; + a0 = 0; + a19 = 5; + a9 = 7; + a20 = 1; + a16 = 8; + return -1; + } else if(((((a20==1)&&(((a13==1)&&(((a6==1)&&(a3==1))&&(a19==2)))&&(a21==12)))&&(a1==13))&&((a16==11)&&(!(a7==1)&&(((a9==11)&&((!(a4==1)&&(((a17==2)&&(input==3))&&(a23==1)))&&(a5==6)))&&(a12==1)))))){ + a9 = 7; + a5 = 4; + a2 = 1; + a21 = 10; + a19 = 1; + a16 = 7; + a6 = 1; + a1 = 12; + a28 = 1; + return -1; + } else if(((!(a23==1)||((a9==7)&&((((a16==10)&&((a5==6)&&(((a24==1)||((a20==1)&&(a6==1)))||(a27==1))))&&!(a0==1))&&!(a8==1))))&&(!(a18==1)&&(((a1==12)&&((a21==12)&&((a17==2)&&(input==1))))&&(a19==3))))){ + a21 = 10; + a11 = 1; + a0 = 0; + a12 = 1; + a19 = 1; + a5 = 4; + a16 = 7; + return -1; + } else if((((a16==11)&&(!(a4==1)&&((a9==8)&&(!(a27==1)&&(((a28==1)&&!(a4==1))&&(a21==12))))))&&(((((a23==1)&&((((a5==4)&&((a17==2)&&(input==6)))&&(a3==1))&&(a6==1)))&&(a1==12))&&(a20==1))&&(a19==2)))){ + a6 = 1; + a9 = 7; + a19 = 1; + a21 = 10; + a8 = 0; + a2 = 1; + a16 = 7; + return -1; + } else if(((((a24==1)&&(((a21==10)&&(!(a6==1)&&((a9==9)&&(((input==5)&&((a5==5)||(a5==6)))&&(a4==1)))))&&!(a20==1)))&&(a17==2))&&(((a1==14)&&(!(a28==1)&&((a16==8)&&((a27==1)&&((a11==1)&&(a7==1))))))&&(a19==3)))){ + a21 = 12; + a5 = 4; + a10 = 1; + a1 = 12; + a9 = 8; + a16 = 7; + a7 = 1; + a19 = 2; + a15 = 1; + a20 = 1; + return -1; + } else if(((((((a1==14)&&(((((a26==1)&&((a6==1)&&(a26==1)))&&(a20==1))&&!(a6==1))&&!(a2==1)))&&(a17==2))&&(a19==3))&&!(a6==1))&&((a7==1)&&(((a16==11)&&((input==3)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))))&&(a21==12))))){ + a16 = 7; + a1 = 13; + a5 = 4; + a23 = 0; + a29 = 1; + a9 = 8; + a19 = 1; + a15 = 0; + a21 = 10; + return -1; + } else if(((((a0==1)||((a21==12)&&((a12==1)&&(a9==9))))&&(a19==4))&&(((!(a20==1)&&((a16==8)&&((((a3==1)&&(((((a5==4)||(a5==5))&&(input==4))&&!(a27==1))&&(a17==2)))&&(a1==14))&&!(a26==1))))&&!(a0==1))&&(a2==1)))){ + if((a26==1)){ + a21 = 11; + a5 = 5; + a4 = 1; + a1 = 13; + a9 = 7; + a22 = 1; + a19 = 5; + a8 = 1; + }else{ + a10 = 1; + a5 = 4; + a9 = 7; + a19 = 1; + a21 = 10; + a20 = 1; + a16 = 7; + a2 = 0; + a18 = 1; + } + return -1; + } else if((((!(a27==1)&&((a3==1)&&(((((a17==2)&&((((input==4)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&!(a7==1))&&(a1==13)))&&(a16==8))&&!(a20==1))&&!(a24==1))))&&!(a18==1))&&((a26==1)||(((a21==11)&&(a6==1))&&(a19==2))))){ + a19 = 1; + a18 = 0; + a23 = 1; + a16 = 7; + a20 = 1; + a9 = 7; + a5 = 4; + a1 = 12; + a26 = 0; + a21 = 10; + return -1; + } else if((((a9==11)&&((a6==1)&&(!(a4==1)&&(!(a26==1)&&(((a17==2)&&(input==6))&&(a19==5))))))&&((a5==5)&&(((((a7==1)||((((a23==1)&&(a16==10))&&(a1==14))||(a27==1)))||!(a3==1))&&(a21==12))&&!(a20==1))))){ + if((a2==1)){ + a18 = 1; + a21 = 10; + a16 = 7; + a5 = 4; + a3 = 0; + a7 = 1; + a19 = 1; + a9 = 10; + a1 = 13; + a20 = 1; + }else{ + a9 = 8; + a8 = 1; + a21 = 10; + a1 = 12; + a19 = 2; + a29 = 1; + a16 = 7; + a20 = 1; + a10 = 0; + } + return -1; + } else if((((!(a20==1)&&(((a19==2)&&(!(a4==1)&&((a21==12)&&((a3==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4))))))&&!(a0==1)))&&(a9==9))&&((a23==1)&&((((a1==12)&&((a17==2)&&((a16==7)&&(a6==1))))||(a7==1))&&!(a4==1))))){ + a18 = 0; + a5 = 4; + a21 = 10; + a2 = 1; + a9 = 7; + a19 = 1; + a8 = 0; + a20 = 1; + return -1; + } else if(((((a16==9)&&(((((a4==1)||((a21==10)&&(a2==1)))&&(a5==5))&&(a1==14))&&(a19==3)))&&!(a24==1))&&(((a3==1)&&((a9==8)&&(((((a17==2)&&(input==3))&&(a11==1))&&(a20==1))&&!(a8==1))))&&!(a26==1)))){ + a28 = 1; + a5 = 4; + a0 = 0; + a1 = 12; + a19 = 1; + a9 = 7; + a14 = 0; + a16 = 7; + return -1; + } else if(((!(a26==1)&&((a28==1)&&(!(a20==1)&&((a6==1)&&(a17==2)))))&&((a12==1)&&((((a19==5)&&((((a16==10)&&(((((a1==13)&&(a5==5))&&(a9==7))||((((a5==6)&&(a1==12))&&(a9==11))||(((a1==13)&&(a5==4))&&(a9==7))))&&(input==5)))&&(a2==1))&&!(a26==1)))&&(a21==10))&&!(a14==1))))){ + a5 = 5; + a2 = 0; + a16 = 7; + a19 = 1; + a9 = 10; + a20 = 1; + a1 = 13; + a29 = 0; + a6 = 0; + return 25; + } else if((((((a17==2)&&(!(a18==1)&&(((a2==1)&&(((a5==5)||(a5==6))&&(input==3)))&&!(a7==1))))&&(a19==2))&&(a9==7))&&(((a1==12)&&((a16==9)&&((((a4==1)||((a8==1)||(a11==1)))&&!(a7==1))&&(a21==10))))&&(a20==1)))){ + a19 = 1; + a8 = 0; + a5 = 4; + a12 = 1; + a16 = 7; + a23 = 1; + return -1; + } else if((((a2==1)&&((((a1==13)&&(!(a7==1)&&((a5==4)&&((input==3)&&(a16==10)))))&&(a21==12))&&(a19==3)))&&((((a17==2)&&(((a9==8)&&((a28==1)&&(!(a11==1)||(a6==1))))&&(a20==1)))&&(a13==1))&&(a13==1)))){ + a9 = 9; + a21 = 10; + a16 = 7; + a8 = 0; + a23 = 1; + a5 = 5; + a4 = 0; + a19 = 2; + return 26; + } else if(((!(a20==1)&&(!(a27==1)&&((a9==11)&&(((a0==1)||((a7==1)||(a12==1)))&&(a1==13)))))&&(((a17==2)&&((a21==11)&&(!(a18==1)&&((a23==1)&&((a6==1)&&((a19==1)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6)))))))))&&(a16==9)))){ + if((a11==1)){ + a5 = 5; + a16 = 10; + a12 = 0; + a19 = 5; + a15 = 0; + a24 = 1; + a20 = 1; + a9 = 9; + a1 = 12; + }else{ + a1 = 12; + a16 = 7; + a25 = 1; + a10 = 0; + a21 = 10; + a20 = 1; + a5 = 6; + a19 = 4; + a4 = 1; + } + return -1; + } else if(((((((a1==14)&&(((a4==1)||(!(a3==1)||(a23==1)))||!(a12==1)))&&!(a20==1))&&(a9==9))&&(a17==2))&&((a19==5)&&((a16==8)&&(((a21==10)&&(((((a5==5)||(a5==6))&&(input==4))&&(a2==1))&&!(a7==1)))&&(a2==1)))))){ + a3 = 1; + a2 = 1; + a9 = 8; + a21 = 12; + a24 = 0; + a5 = 6; + a20 = 1; + return 26; + } else if(((!(a0==1)&&((!(a7==1)&&((a13==1)&&((a1==12)&&((input==1)&&(a19==2)))))&&(a28==1)))&&(((a5==5)&&((a17==2)&&(((((a9==7)&&((a14==1)||(a12==1)))&&(a20==1))&&(a21==11))&&!(a27==1))))&&(a16==7)))){ + a16 = 8; + a27 = 0; + a18 = 0; + a5 = 4; + a6 = 1; + a9 = 9; + a21 = 10; + a1 = 13; + return 21; + } else if((((a2==1)&&((!(a0==1)&&(!(a24==1)&&((a1==12)&&((!(a27==1)&&(((input==5)&&((a5==4)||(a5==5)))&&(a6==1)))&&(a21==11)))))&&(a17==2)))&&((a16==11)&&((a20==1)&&(((a19==3)&&((a9==8)&&(a2==1)))&&!(a26==1)))))){ + a21 = 10; + a9 = 7; + a5 = 4; + a26 = 0; + a16 = 7; + a13 = 1; + a19 = 1; + a11 = 1; + return -1; + } else if(((((a1==13)&&(!(a4==1)&&(((a17==2)&&(!(a28==1)||((a21==12)&&(a2==1))))&&(a2==1))))||!(a6==1))&&((!(a20==1)&&(((a16==10)&&((((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))&&(input==6))&&(a19==4)))&&!(a14==1)))&&!(a0==1)))){ + a5 = 4; + a6 = 0; + a8 = 1; + a21 = 10; + a1 = 14; + a16 = 7; + a9 = 11; + a20 = 1; + a28 = 0; + a19 = 1; + return 21; + } else if(((((a23==1)&&(((((((a16==9)&&(!(a14==1)&&(a12==1)))&&(a21==12))&&!(a8==1))&&(a19==5))||(a7==1))&&(a1==13)))&&!(a26==1))&&(!(a20==1)&&((((input==5)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11))))&&(a17==2))&&!(a27==1))))){ + a7 = 1; + a5 = 6; + a19 = 2; + a16 = 10; + a23 = 0; + a11 = 0; + a9 = 7; + a1 = 12; + a21 = 10; + return 25; + } else if((((a16==9)&&((((a6==1)&&((a21==12)&&(((a28==1)&&((((input==3)&&((a5==5)||(a5==6)))&&!(a0==1))&&!(a7==1)))&&(a19==4))))&&!(a8==1))&&(a9==9)))&&((a1==14)&&((a17==2)&&((!(a6==1)||(a28==1))&&(a20==1)))))){ + a19 = 1; + a5 = 4; + a4 = 0; + a1 = 12; + a21 = 10; + a9 = 7; + a3 = 1; + a28 = 1; + a16 = 7; + return -1; + } else if((((a20==1)&&((a21==12)&&((a6==1)&&(!(a26==1)&&((a19==1)&&((a1==12)&&(!(a8==1)&&((((input==5)&&(a9==8))&&!(a26==1))&&(a17==2)))))))))&&(!(a11==1)||((((a5==5)&&(a2==1))&&(a16==8))&&!(a4==1))))){ + a9 = 9; + a1 = 13; + a19 = 4; + a0 = 0; + a21 = 11; + a13 = 1; + a16 = 10; + return 22; + } else if((((((!(a18==1)&&((!(a0==1)&&((((a2==1)&&(a13==1))&&(a6==1))&&(a19==2)))||(a18==1)))&&(a21==10))&&(a16==8))&&(a17==2))&&(((((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(input==4))&&(a28==1))&&(a20==1))&&(a1==12)))){ + a27 = 0; + a9 = 7; + a16 = 7; + a11 = 1; + a2 = 1; + a5 = 4; + a19 = 1; + return -1; + } else if(((((a21==11)&&((((!(a20==1)&&((a1==12)&&(!(a27==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3)))))&&(a28==1))&&(a16==10))&&(a19==1)))&&!(a0==1))&&((((a17==2)&&(!(a26==1)&&((a28==1)&&!(a4==1))))&&(a9==7))&&(a13==1)))){ + a1 = 13; + a9 = 8; + a29 = 1; + a20 = 1; + a16 = 7; + a21 = 10; + a13 = 0; + a5 = 4; + a28 = 0; + return -1; + } else if(((((!(a0==1)&&((a21==12)&&(((a17==2)&&((((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8))))&&(input==3)))&&(a19==4))))&&!(a7==1))&&(a13==1))&&(((((a1==12)&&((a6==1)&&((a3==1)||(a7==1))))&&!(a20==1))&&(a16==8))&&!(a14==1)))){ + a19 = 1; + a20 = 1; + a5 = 5; + a9 = 10; + a1 = 14; + a21 = 10; + a16 = 7; + a7 = 1; + a2 = 0; + a15 = 1; + return -1; + } else if(((!(a28==1)&&((a17==2)&&((a9==8)&&((!(a11==1)&&((a1==13)&&(input==5)))&&(a21==11)))))&&((((((a19==5)&&((a20==1)&&(((a5==6)&&(a2==1))&&(a16==11))))&&!(a6==1))&&!(a13==1))&&!(a23==1))&&!(a6==1)))){ + a8 = 1; + a19 = 1; + a16 = 7; + a3 = 0; + a10 = 0; + a9 = 7; + a21 = 10; + return 23; + } else if(((((((a17==2)&&(((a16==9)&&(((a3==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5)))&&(a21==11)))&&(a1==14)))&&(a20==1))&&(a13==1))&&!(a18==1))&&(!(a8==1)&&(!(a13==1)||(((a19==5)&&((a3==1)&&(a9==10)))&&!(a8==1)))))){ + a9 = 7; + a23 = 1; + a21 = 10; + a0 = 0; + a4 = 0; + a16 = 7; + a1 = 12; + a5 = 4; + a19 = 1; + return -1; + } else if((((a1==12)&&(!(a11==1)||((a16==7)&&(((a21==11)&&(((!(a4==1)&&((a28==1)&&(a2==1)))&&(a17==2))&&(a9==9)))||!(a12==1)))))&&((a19==4)&&((a6==1)&&(!(a26==1)&&(!(a20==1)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6))))))))){ + a1 = 13; + a13 = 1; + a21 = 10; + a28 = 1; + a11 = 1; + a5 = 5; + a20 = 1; + a19 = 2; + return 25; + } else if(((((((a12==1)||!(a11==1))&&(a13==1))||(a14==1))&&(a17==2))&&((a20==1)&&(((((!(a0==1)&&((a3==1)&&((a5==6)&&((a21==10)&&((input==6)&&(a9==10))))))&&(a11==1))&&(a16==10))&&(a1==14))&&(a19==3))))){ + a24 = 0; + a1 = 12; + a19 = 1; + a0 = 0; + a9 = 7; + a6 = 1; + a16 = 7; + a5 = 4; + return -1; + } else if((((((!(a14==1)&&(((a11==1)&&(a6==1))&&(a21==11)))&&!(a0==1))&&!(a20==1))&&(a1==14))&&((a17==2)&&((a9==7)&&((((a19==4)&&(((((a5==4)||(a5==5))&&(input==6))&&!(a24==1))&&(a23==1)))&&(a28==1))&&(a16==8)))))){ + a16 = 10; + a19 = 1; + a0 = 0; + a14 = 0; + a21 = 10; + a28 = 1; + a20 = 1; + a5 = 4; + return 21; + } else if((((a16==7)&&((((a21==11)&&(((input==6)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11))))&&(a11==1)))&&(a19==2))&&(a17==2)))&&((((!(a3==1)||((a28==1)&&(!(a20==1)&&((a11==1)&&(a28==1)))))||(a26==1))||(a4==1))&&(a1==14)))){ + a9 = 11; + a26 = 0; + a27 = 0; + a19 = 3; + a18 = 0; + a21 = 10; + a5 = 5; + a20 = 1; + a1 = 12; + a16 = 9; + return 25; + } else if((((a2==1)&&(((a13==1)&&(((a17==2)&&(input==1))&&!(a24==1)))&&(a21==11)))&&(((((a19==5)&&((a1==12)&&((a9==7)&&(!(a23==1)||(((a20==1)&&(a6==1))&&(a5==5))))))&&(a16==10))&&!(a0==1))||(a8==1)))){ + a26 = 0; + a19 = 2; + a9 = 9; + a8 = 0; + a21 = 10; + a16 = 7; + a2 = 1; + a1 = 13; + return 25; + } else if(((((a20==1)&&((a7==1)&&((a16==8)&&((a19==1)&&((a28==1)&&!(a11==1))))))&&(a17==2))&&((!(a12==1)&&((((a21==10)&&((input==6)&&((((a9==11)&&((a5==6)&&(a1==12)))||(((a1==13)&&(a5==4))&&(a9==7)))||((a9==7)&&((a5==5)&&(a1==13))))))&&(a26==1))&&!(a13==1)))&&(a14==1)))){ + a1 = 13; + a28 = 0; + a9 = 9; + a16 = 7; + a0 = 1; + a12 = 0; + a5 = 6; + return -1; + } else if((((a9==11)&&((!(a27==1)&&(((a19==2)&&((input==4)&&!(a20==1)))&&!(a27==1)))&&(a5==6)))&&((a17==2)&&((a1==14)&&((a16==8)&&(!(a26==1)&&((a2==1)&&((a21==10)&&((a18==1)||((a13==1)&&!(a18==1))))))))))){ + a9 = 10; + a21 = 12; + a16 = 10; + a28 = 1; + a6 = 1; + a19 = 5; + a20 = 1; + a4 = 0; + return 22; + } else if(((((((a16==10)&&(((a5==4)&&(((!(a7==1)&&(((a21==10)&&(input==4))&&!(a20==1)))&&(a9==8))&&(a28==1)))&&!(a24==1)))&&(a11==1))&&(a12==1))&&!(a18==1))&&((((a28==1)&&(a17==2))&&(a1==14))&&(a19==5)))){ + a16 = 7; + a9 = 11; + a13 = 0; + a14 = 1; + a19 = 1; + a20 = 1; + a8 = 1; + a5 = 6; + return -1; + } else if((((((a21==10)&&((((a20==1)&&(((a5==5)&&(input==3))&&!(a18==1)))&&(a1==14))&&!(a18==1)))&&(a11==1))&&(a17==2))&&(((((a9==10)&&((a19==3)&&((a16==11)&&(a23==1))))||!(a11==1))||(a26==1))||!(a23==1)))){ + a1 = 12; + a18 = 0; + a19 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + a0 = 0; + a7 = 0; + return -1; + } else if((((a16==8)&&(((!(a0==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&!(a14==1)))&&(a1==12))&&(a9==10)))&&(((a8==1)||((a17==2)&&((!(a14==1)&&((((a6==1)||!(a3==1))&&!(a8==1))&&(a19==2)))&&!(a20==1))))&&(a21==10)))){ + a18 = 0; + a19 = 1; + a14 = 0; + a9 = 7; + a27 = 0; + a20 = 1; + a16 = 7; + a5 = 4; + return -1; + } else if((((!(a24==1)&&((a1==14)&&((a17==2)&&((a16==8)&&((!(a0==1)&&((input==5)&&(a5==5)))&&(a13==1))))))&&(a20==1))&&((a9==10)&&(((((a12==1)&&((a19==2)&&(a11==1)))&&(a21==10))&&!(a0==1))&&!(a14==1))))){ + a9 = 7; + a5 = 4; + a16 = 7; + a0 = 0; + a12 = 1; + a19 = 1; + a3 = 1; + a1 = 12; + return -1; + } else if((((((a14==1)||(((a2==1)||(a27==1))&&(a23==1)))&&(a3==1))||!(a3==1))&&(((((input==5)&&(((((a19==5)&&((a16==8)&&((a9==11)&&((a5==5)&&(a1==14)))))&&(a21==12))||((a21==12)&&((((a9==11)&&((a1==14)&&(a5==6)))&&(a16==8))&&(a19==5))))||((a21==10)&&(((a16==9)&&(((a5==4)&&(a1==12))&&(a9==7)))&&(a19==1)))))&&!(a20==1))&&(a17==2))&&!(a0==1)))){ + a21 = 10; + a5 = 4; + a9 = 8; + a20 = 1; + a11 = 0; + a1 = 12; + a19 = 1; + a22 = 1; + a16 = 7; + return -1; + } else if(((((((((a9==11)&&((a21==12)&&((a5==6)&&((a16==10)&&((input==5)&&(a1==13))))))&&(a19==2))&&(a20==1))&&!(a14==1))&&!(a0==1))&&(a6==1))&&((a4==1)||(((a17==2)&&((a12==1)&&(a11==1)))&&(a13==1))))){ + a24 = 0; + a19 = 1; + a9 = 7; + a6 = 1; + a5 = 4; + a16 = 7; + a2 = 1; + a1 = 12; + a21 = 10; + return -1; + } else if((((a19==4)&&(!(a11==1)||((a1==14)&&(((a12==1)&&(a12==1))&&(a13==1)))))&&((a20==1)&&(!(a18==1)&&((a16==10)&&((a21==10)&&((!(a4==1)&&(!(a24==1)&&(((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10)))&&(input==3))))&&(a17==2)))))))){ + a6 = 1; + a9 = 9; + a23 = 1; + a28 = 1; + a1 = 13; + a5 = 4; + a16 = 9; + a21 = 12; + return -1; + } else if((((a9==8)&&((a12==1)&&((a5==4)&&((a1==12)&&((a17==2)&&((a21==10)&&((a3==1)&&((input==1)&&(a16==9)))))))))&&((a3==1)&&(!(a23==1)||((((a7==1)||((a6==1)||(a27==1)))&&(a19==2))&&(a20==1)))))){ + a2 = 1; + a0 = 0; + a19 = 1; + a18 = 0; + a1 = 13; + a9 = 10; + a16 = 11; + return 25; + } else if((((((a4==1)||((a16==11)&&((((a21==12)&&(a23==1))&&!(a18==1))&&(a17==2))))&&(a1==12))||(a24==1))&&((!(a4==1)&&((a3==1)&&((a19==4)&&((a20==1)&&((a5==4)&&((a9==11)&&(input==1)))))))&&!(a7==1)))){ + a19 = 1; + a27 = 0; + a16 = 7; + a13 = 1; + a9 = 7; + a21 = 10; + a28 = 1; + return -1; + } else if((((a13==1)&&((a1==12)&&(!(a20==1)&&(((a3==1)||!(a13==1))&&!(a4==1)))))&&(((a17==2)&&(((a21==11)&&((a6==1)&&(((!(a8==1)&&((input==4)&&((a5==5)||(a5==6))))&&(a19==2))&&!(a8==1))))&&(a9==10)))&&(a16==8)))){ + a7 = 0; + a21 = 10; + a1 = 13; + a9 = 9; + a14 = 0; + a20 = 1; + a19 = 5; + a27 = 0; + a5 = 5; + return 26; + } else if(((((a21==10)&&(((((a23==1)&&!(a13==1))&&!(a2==1))&&(a17==2))&&(a19==3)))&&(a4==1))&&(!(a12==1)&&((((((a9==9)&&((a1==14)&&((input==1)&&((a5==5)||(a5==6)))))&&!(a20==1))&&(a16==8))&&!(a23==1))&&(a14==1))))){ + a16 = 7; + a14 = 1; + a4 = 1; + a19 = 2; + a9 = 10; + a1 = 12; + a5 = 6; + a20 = 1; + a6 = 0; + return -1; + } else if((((((!(a18==1)&&(((a19==2)&&((input==5)&&((a5==5)||(a5==6))))&&(a17==2)))&&(a16==7))&&!(a4==1))&&!(a8==1))&&(!(a18==1)&&((((a1==14)&&((a9==10)&&(((a21==11)&&(a6==1))&&(a20==1))))&&(a2==1))||!(a28==1))))){ + a1 = 12; + a27 = 0; + a9 = 7; + a21 = 10; + a11 = 1; + a3 = 1; + a5 = 4; + a19 = 1; + return -1; + } else if((((a21==12)&&(((!(a24==1)&&((input==1)&&((a5==4)||(a5==5))))&&(a19==1))&&(a17==2)))&&(!(a20==1)&&(((a16==10)&&((a1==13)&&(!(a8==1)&&((!(a0==1)&&(((a13==1)&&!(a27==1))&&(a23==1)))||(a0==1)))))&&(a9==8))))){ + a21 = 10; + a4 = 1; + a20 = 1; + a0 = 1; + a16 = 7; + a9 = 10; + a7 = 1; + a5 = 6; + return 21; + } else if((((a21==11)&&((a19==2)&&(((a17==2)&&(((a6==1)&&(a1==12))&&!(a7==1)))||(a27==1))))&&((((a3==1)&&(((((input==3)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&!(a24==1))&&(a20==1))&&!(a4==1)))&&!(a8==1))&&(a16==9)))){ + a9 = 7; + a4 = 0; + a19 = 1; + a5 = 4; + a12 = 1; + a16 = 7; + a21 = 10; + a28 = 1; + return -1; + } else if(((((a9==8)&&(!(a23==1)||(((a14==1)||(!(a18==1)&&((a0==1)||((a17==2)&&(!(a23==1)||(a11==1))))))&&(a5==4))))&&(a20==1))&&((a21==10)&&((a16==10)&&(!(a14==1)&&((a19==3)&&((input==6)&&(a1==12)))))))){ + a9 = 7; + a14 = 0; + a19 = 1; + a16 = 7; + a18 = 0; + a24 = 0; + return -1; + } else if(((((a5==4)&&(!(a0==1)&&(((a6==1)&&((a28==1)&&((((a6==1)&&((input==4)&&(a16==10)))&&!(a18==1))&&!(a14==1))))&&(a1==14))))&&(a20==1))&&((a9==11)&&((a21==12)&&(((a17==2)&&(a13==1))&&(a19==2)))))){ + a4 = 0; + a21 = 10; + a14 = 0; + a9 = 7; + a19 = 1; + a16 = 7; + a1 = 12; + a28 = 1; + return -1; + } else if(((!(a28==1)||(!(a4==1)&&(((!(a14==1)&&((((a3==1)&&(a16==11))&&(a1==14))&&(a21==10)))||!(a13==1))&&(a17==2))))&&((a2==1)&&(!(a20==1)&&((a11==1)&&((a19==1)&&(((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4)))&&(input==5)))))))){ + a1 = 13; + a20 = 1; + a16 = 7; + a26 = 1; + a5 = 6; + a9 = 8; + a11 = 0; + a15 = 1; + return -1; + } else if(((((!(a14==1)&&(!(a14==1)&&((a9==10)&&(input==3))))&&(a12==1))&&!(a26==1))&&((a1==13)&&(((a16==7)&&((a21==11)&&(!(a20==1)&&((a17==2)&&(!(a26==1)&&((a19==1)&&((a4==1)||(a12==1))))))))&&(a5==5))))){ + a7 = 0; + a21 = 10; + a5 = 4; + a9 = 7; + a23 = 1; + a20 = 1; + a1 = 12; + a6 = 1; + return -1; + } else if((((((a27==1)||(((a23==1)&&(a21==11))||!(a28==1)))&&(a17==2))&&(a1==13))&&((a19==1)&&((((a9==8)&&(((a13==1)&&(!(a26==1)&&((a23==1)&&((input==6)&&((a5==4)||(a5==5))))))&&(a16==10)))&&!(a7==1))&&!(a20==1))))){ + a9 = 10; + a21 = 10; + a24 = 1; + a16 = 11; + a28 = 0; + a12 = 0; + a20 = 1; + a5 = 4; + return -1; + } else if(((((a19==2)&&((a16==10)&&(((((a5==4)&&(((input==5)&&(a9==11))&&(a20==1)))&&(a17==2))&&(a3==1))&&(a21==12))))&&(a12==1))&&((!(a4==1)&&((a13==1)&&((a1==14)&&((a2==1)&&!(a27==1)))))||(a8==1)))){ + a9 = 9; + a21 = 10; + a2 = 1; + a1 = 13; + a16 = 7; + a6 = 1; + a5 = 5; + a3 = 1; + return 25; + } else if((((a5==6)&&((a12==1)&&(((((a14==1)||((a11==1)&&(a9==9)))&&(a19==2))&&!(a4==1))&&!(a14==1))))&&(!(a20==1)&&((((!(a8==1)&&(((a21==10)&&(input==3))&&(a1==13)))&&(a17==2))&&(a16==11))&&(a3==1))))){ + a16 = 10; + a20 = 1; + a5 = 5; + a23 = 0; + a9 = 8; + a2 = 0; + a1 = 12; + return 21; + } else if((((a6==1)&&((((a12==1)&&(((((a21==11)&&(a11==1))&&(a17==2))&&(a1==12))&&(a19==5)))&&!(a7==1))&&(a6==1)))&&(!(a26==1)&&((a12==1)&&(((a20==1)&&((input==5)&&(((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))))&&(a16==8)))))){ + a19 = 3; + a9 = 8; + a4 = 0; + a16 = 10; + a0 = 0; + a2 = 1; + a5 = 6; + return 23; + } else if(((((a21==10)&&(!(a2==1)&&(((!(a23==1)&&((input==3)&&(((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))))&&(a1==12))&&!(a2==1))))&&(a8==1))&&((((a19==4)&&((a8==1)&&((a17==2)&&(!(a13==1)&&(a23==1)))))&&(a16==10))&&(a20==1)))){ + a16 = 7; + a1 = 13; + a5 = 4; + a10 = 1; + a19 = 5; + a12 = 0; + a9 = 8; + a21 = 12; + a28 = 0; + return -1; + } else if(((((((a13==1)&&((a20==1)&&((((!(a14==1)&&((a1==14)&&(input==3)))&&(a9==10))&&!(a8==1))&&!(a18==1))))&&(a3==1))&&!(a14==1))&&(a21==11))&&(((a17==2)&&(((a5==4)&&(a2==1))&&(a19==1)))&&(a16==8)))){ + a21 = 10; + a23 = 1; + a16 = 7; + a1 = 12; + a9 = 7; + a24 = 0; + a27 = 0; + return -1; + } else if(((((((a1==13)&&(((a5==4)&&(input==5))&&(a16==11)))&&(a6==1))&&(a21==10))&&(a9==11))&&((a17==2)&&((a20==1)&&((a13==1)&&((((((a28==1)&&(a2==1))&&(a19==5))||(a26==1))||(a7==1))&&!(a14==1))))))){ + a21 = 11; + a1 = 12; + a16 = 8; + a3 = 1; + a4 = 0; + a5 = 6; + a19 = 1; + a9 = 7; + a11 = 1; + return 25; + } else if(((!(a0==1)&&(((((a1==12)&&(((a2==1)&&(a19==1))&&(a21==10)))&&(a17==2))&&!(a0==1))||(a24==1)))&&(!(a8==1)&&((!(a24==1)&&((((a9==8)&&((input==6)&&(a16==8)))&&!(a20==1))&&(a5==4)))&&(a23==1))))){ + if((a24==1)){ + a19 = 2; + a3 = 1; + a26 = 0; + a9 = 11; + a1 = 14; + a5 = 6; + a13 = 1; + }else{ + a2 = 1; + a16 = 9; + a24 = 0; + a12 = 1; + a5 = 6; + a20 = 1; + } + return 25; + } else if(((((((((a21==10)&&((a12==1)&&((!(a4==1)&&((a19==5)&&((a17==2)&&(a12==1))))&&!(a20==1))))&&(a16==8))&&!(a8==1))&&!(a4==1))&&!(a4==1))||(a7==1))&&(((((a5==5)||(a5==6))&&(input==5))&&(a9==7))&&(a1==13)))){ + a3 = 1; + a16 = 7; + a20 = 1; + a14 = 0; + a1 = 12; + a7 = 0; + a19 = 1; + a5 = 4; + return -1; + } else if(((!(a2==1)||(((a23==1)&&((((a20==1)&&(((a6==1)||(a7==1))&&(a19==1)))&&(a9==11))&&(a16==9)))||(a18==1)))&&((((a17==2)&&(((a5==6)&&((a1==13)&&(input==4)))&&!(a0==1)))&&(a21==10))&&!(a27==1)))){ + a16 = 8; + a21 = 12; + a28 = 1; + a0 = 0; + a1 = 14; + a19 = 5; + a7 = 0; + return 26; + } else if((((((((a6==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))&&!(a4==1))&&!(a7==1))&&(a9==10))&&(a20==1))&&((a19==4)&&((a1==13)&&(((a21==11)&&((a26==1)||((a24==1)||((a6==1)&&((a16==8)&&(a6==1))))))&&(a17==2)))))){ + if((a2==1)){ + a1 = 12; + a14 = 0; + a5 = 4; + a8 = 0; + a20 = 0; + a9 = 9; + a19 = 1; + a7 = 0; + }else{ + a16 = 10; + a5 = 5; + a19 = 2; + a0 = 0; + a6 = 1; + a12 = 1; + } + return 26; + } else if((((((((a17==2)&&((a21==12)&&((input==3)&&(a19==5))))&&(a3==1))&&(a5==4))&&!(a14==1))&&(a16==7))&&((!(a6==1)||((((a23==1)&&(((a1==13)&&(a6==1))||!(a12==1)))||!(a28==1))&&(a20==1)))&&(a9==8)))){ + a5 = 5; + a21 = 11; + a16 = 9; + a4 = 0; + a1 = 12; + a18 = 0; + a7 = 0; + a9 = 7; + return 25; + } else if((((a5==6)&&(((a20==1)&&((a19==3)&&(!(a14==1)&&((((input==6)&&(a21==10))&&(a1==12))&&!(a8==1)))))&&(a17==2)))&&(((a26==1)||(((a16==10)&&((a14==1)||((a28==1)||(a4==1))))&&!(a18==1)))&&(a9==9)))){ + a16 = 11; + a13 = 1; + a26 = 0; + a19 = 5; + a9 = 10; + a8 = 0; + a5 = 5; + a1 = 14; + return 22; + } else if(((((a20==1)&&(((!(a3==1)&&(a13==1))&&!(a28==1))&&!(a23==1)))&&!(a12==1))&&((a16==10)&&((a17==2)&&(((((a19==3)&&(((input==6)&&(((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))))&&(a1==14)))&&(a24==1))&&!(a28==1))&&(a21==12)))))){ + a21 = 10; + a19 = 1; + a9 = 7; + a5 = 5; + a24 = 1; + a2 = 0; + a8 = 1; + a16 = 7; + return 25; + } else if((((a20==1)&&(((!(a23==1)||((a21==12)&&((a2==1)&&(a5==4))))&&(a19==4))&&(a16==9)))&&((!(a7==1)&&((a1==14)&&(((a13==1)&&((!(a24==1)&&((input==5)&&(a17==2)))&&!(a24==1)))&&!(a4==1))))&&(a9==11)))){ + a16 = 7; + a6 = 1; + a19 = 1; + a1 = 12; + a21 = 10; + a9 = 7; + a26 = 0; + a7 = 0; + return -1; + } else if(((((a1==13)&&((a13==1)&&(a16==11)))&&(a19==5))&&((a20==1)&&((a17==2)&&((((a6==1)&&(((a21==10)&&((a28==1)&&((a28==1)&&(!(a4==1)&&(((a5==5)||(a5==6))&&(input==6))))))&&!(a0==1)))&&!(a27==1))&&(a9==11)))))){ + a1 = 12; + a28 = 1; + a2 = 1; + a3 = 1; + a19 = 4; + a5 = 6; + a9 = 7; + a16 = 7; + return -1; + } else if((((a20==1)&&(((a21==11)&&(!(a7==1)&&((a9==8)&&(((((a5==5)||(a5==6))&&(input==4))&&!(a0==1))&&!(a0==1)))))&&(a17==2)))&&(((((a7==1)||(((a3==1)&&!(a7==1))&&(a19==4)))&&(a16==11))&&(a1==12))||!(a11==1)))){ + a19 = 1; + a28 = 1; + a5 = 4; + a21 = 10; + a11 = 1; + a23 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if((((a19==4)&&((((!(a11==1)||(a28==1))&&(a16==7))&&(a9==11))&&(a17==2)))&&((a21==11)&&(!(a4==1)&&(((((a12==1)&&((a20==1)&&(((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a13==1))))&&(a1==13))&&!(a26==1))&&(a6==1)))))){ + a16 = 8; + a28 = 1; + a18 = 0; + a5 = 4; + a9 = 10; + a3 = 1; + return 25; + } else if((((a21==12)&&((a19==5)&&(((!(a8==1)&&((a17==2)&&(!(a23==1)||(a2==1))))&&(a9==7))&&(a1==14))))&&(((((!(a8==1)&&(((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a23==1)))&&(a16==11))&&(a11==1))&&(a20==1))&&!(a8==1)))){ + a26 = 0; + a19 = 1; + a12 = 1; + a1 = 12; + a21 = 10; + a5 = 4; + a16 = 7; + return -1; + } else if((((((a9==7)&&((a21==10)&&((((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a13==1))&&(a28==1))))&&(a19==4))&&(a1==14))&&((a20==1)&&((a17==2)&&((a3==1)&&((((a26==1)||(!(a0==1)&&(a23==1)))||!(a28==1))&&(a16==8))))))){ + a13 = 1; + a1 = 12; + a5 = 4; + a19 = 1; + a23 = 1; + a16 = 7; + return -1; + } else if((((((a20==1)&&((a16==10)&&((a11==1)&&(!(a14==1)&&((a2==1)||!(a2==1))))))&&(a19==1))&&(a21==11))&&((a17==2)&&((a28==1)&&(!(a7==1)&&((a1==13)&&((a23==1)&&(((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))&&(input==3))))))))){ + a3 = 1; + a5 = 4; + a21 = 10; + a0 = 0; + a16 = 7; + a1 = 12; + a9 = 7; + a13 = 1; + return -1; + } else if((((a17==2)&&((!(a18==1)&&(!(a18==1)&&((((input==6)&&(((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))))&&!(a26==1))&&!(a14==1))))&&(a20==1)))&&(((a24==1)||((((a19==4)&&((a23==1)&&(a21==10)))&&!(a4==1))&&(a16==7)))&&(a1==13)))){ + a12 = 1; + a19 = 5; + a21 = 11; + a23 = 1; + a18 = 0; + a9 = 9; + a5 = 6; + return 23; + } else if(((!(a4==1)&&((((a13==1)||!(a28==1))&&(a19==5))&&(a16==10)))&&(((!(a27==1)&&((((a17==2)&&(!(a20==1)&&(((input==1)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&(a1==14))))&&!(a24==1))&&(a21==12)))&&(a23==1))&&!(a27==1)))){ + a5 = 6; + a10 = 0; + a16 = 8; + a19 = 3; + a29 = 1; + a9 = 8; + a13 = 0; + return -1; + } else if((((a28==1)&&(((((((!(a20==1)&&((input==3)&&(a16==11)))&&(a5==5))&&(a21==10))&&(a3==1))&&(a11==1))&&(a23==1))&&(a19==2)))&&(((a7==1)||(((a9==11)&&((a17==2)&&(a23==1)))&&(a1==14)))&&(a13==1)))){ + a28 = 0; + a20 = 1; + a5 = 4; + a10 = 1; + a11 = 0; + a21 = 12; + a9 = 8; + a19 = 4; + return -1; + } else if((((a9==8)&&(((a19==2)&&((a28==1)&&(((((((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&!(a24==1))&&!(a14==1))&&!(a8==1))&&!(a27==1))&&!(a20==1))))&&(a21==11)))&&(((a1==14)&&((a17==2)&&(!(a26==1)&&(a23==1))))&&(a16==7)))){ + a24 = 0; + a1 = 12; + a11 = 1; + a9 = 7; + a20 = 1; + a19 = 1; + a5 = 4; + a21 = 10; + a13 = 1; + return -1; + } else if((((((((((a19==3)&&(a2==1))&&(a21==10))&&!(a20==1))&&(a16==8))&&(a12==1))&&!(a14==1))||!(a2==1))&&(!(a7==1)&&((((a17==2)&&((a1==12)&&(((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4)))&&(input==3))))&&!(a0==1))&&!(a24==1))))){ + a5 = 4; + a14 = 0; + a9 = 7; + a19 = 1; + a26 = 0; + a20 = 1; + a28 = 1; + a16 = 7; + return -1; + } else if(((!(a14==1)&&(!(a20==1)&&((((a16==9)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a9==11)))&&(a1==13))&&(a21==10))))&&(((a28==1)&&((a17==2)&&((((!(a24==1)&&(a13==1))||(a14==1))&&(a28==1))&&(a19==2))))||(a8==1)))){ + a21 = 12; + a22 = 0; + a23 = 0; + a16 = 8; + a28 = 0; + a9 = 9; + a5 = 4; + a20 = 1; + return -1; + } else if((((a16==10)&&(!(a8==1)&&(!(a7==1)&&(!(a20==1)&&((((input==4)&&((((a5==4)&&(a1==14))&&(a9==7))||(((a9==11)&&((a1==13)&&(a5==5)))||((a9==11)&&((a1==13)&&(a5==6))))))&&(a17==2))&&(a28==1))))))&&(((((a21==11)&&((a6==1)&&(a19==5)))||!(a3==1))||!(a11==1))&&!(a8==1)))){ + if((a1==13)){ + a19 = 1; + a8 = 1; + a21 = 10; + a12 = 0; + a5 = 5; + a16 = 7; + a9 = 11; + a1 = 14; + a10 = 1; + a20 = 1; + }else{ + a19 = 1; + a10 = 0; + a0 = 1; + a20 = 1; + a29 = 1; + a1 = 14; + a5 = 6; + a9 = 7; + a16 = 7; + a21 = 10; + } + return -1; + } else if(((!(a14==1)&&(((a9==9)&&(!(a8==1)&&((!(a24==1)&&((a20==1)&&(((a5==5)&&(input==5))&&(a17==2))))&&(a16==11))))&&(a21==12)))&&(!(a26==1)&&((a19==3)&&((a13==1)&&(!(a8==1)&&((a1==14)&&(a2==1)))))))){ + a18 = 0; + a19 = 1; + a4 = 0; + a5 = 4; + a9 = 7; + a21 = 10; + a16 = 7; + a1 = 12; + a2 = 1; + return -1; + } else if((((a9==7)&&(((((((input==3)&&(a19==3))&&(a12==1))&&(a16==8))&&!(a26==1))&&(a13==1))&&(a2==1)))&&(((((a5==4)&&((a21==12)&&(((a23==1)&&!(a27==1))||!(a13==1))))&&!(a20==1))&&(a17==2))&&(a1==13)))){ + a20 = 1; + a1 = 12; + a19 = 1; + a16 = 9; + a22 = 1; + a28 = 0; + a21 = 11; + a9 = 8; + a5 = 6; + a15 = 0; + return -1; + } else if((((a3==1)&&(!(a18==1)&&((((!(a27==1)&&(((a19==5)&&((input==4)&&((a5==5)||(a5==6))))&&(a9==7)))&&(a12==1))&&(a17==2))&&(a16==9))))&&(!(a0==1)&&(((((a12==1)&&(a13==1))&&(a21==12))&&!(a20==1))&&(a1==14))))){ + if((a2==1)){ + a12 = 0; + a5 = 5; + a21 = 10; + a14 = 1; + a20 = 1; + a9 = 9; + a16 = 7; + a19 = 1; + a6 = 0; + }else{ + a8 = 1; + a28 = 0; + a16 = 7; + a23 = 0; + a9 = 8; + a5 = 5; + a1 = 13; + a19 = 1; + a21 = 10; + a20 = 1; + } + return 22; + } else if(((!(a8==1)&&((a17==2)&&((a16==8)&&((a6==1)&&(((((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==3))&&!(a14==1))))))&&(((a1==12)&&((a7==1)||(((((a12==1)&&(a19==5))&&!(a20==1))&&(a11==1))&&(a2==1))))&&(a21==12)))){ + a19 = 1; + a9 = 11; + a4 = 1; + a16 = 7; + a21 = 10; + a12 = 0; + a5 = 6; + a1 = 14; + a20 = 1; + a18 = 1; + return 23; + } else if((((a16==11)&&((((a18==1)&&((a18==1)&&(!(a28==1)&&(a28==1))))&&(a21==11))&&(a17==2)))&&((a20==1)&&(((a19==5)&&((!(a3==1)&&(((input==1)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(a1==14)))&&!(a12==1)))&&(a7==1))))){ + a14 = 1; + a18 = 1; + a21 = 12; + a10 = 1; + a9 = 9; + a1 = 12; + a5 = 4; + a19 = 3; + a16 = 8; + return -1; + } else if((((a20==1)&&((a17==2)&&(((a1==13)&&((a2==1)&&(!(a27==1)&&((((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6))))&&(input==4)))))&&!(a4==1))))&&((a19==4)&&(!(a7==1)&&(((a21==11)&&(!(a11==1)||((a2==1)&&(a16==10))))||!(a2==1)))))){ + a9 = 7; + a1 = 12; + a5 = 4; + a18 = 0; + a16 = 7; + a12 = 1; + a19 = 1; + a21 = 10; + a8 = 0; + return -1; + } else if(((((a28==1)&&((a17==2)&&((!(a20==1)&&((a1==14)&&(((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))&&(input==1))&&(a12==1))))&&(a16==7))))&&!(a26==1))&&(!(a13==1)||((a19==1)&&(((a8==1)||((a12==1)&&(a2==1)))&&(a21==11)))))){ + a21 = 10; + a5 = 5; + a11 = 1; + a9 = 9; + a20 = 1; + a6 = 1; + a19 = 2; + a3 = 1; + a1 = 13; + return 25; + } else if((((!(a20==1)&&((a13==1)&&(!(a27==1)&&((input==5)&&(((((a5==6)&&(a1==12))&&(a9==11))||((a9==7)&&((a1==13)&&(a5==4))))||((a9==7)&&((a1==13)&&(a5==5))))))))&&(a21==10))&&((a17==2)&&((a8==1)||(((!(a8==1)&&((a16==7)&&((a23==1)&&(a12==1))))&&(a19==1))||(a27==1)))))){ + a5 = 4; + a27 = 0; + a6 = 1; + a9 = 7; + a20 = 1; + a1 = 12; + return -1; + } else if((((((((((!(a24==1)&&((((a1==14)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))&&(a19==1))&&!(a7==1)))&&!(a26==1))&&!(a26==1))&&(a21==10))&&(a28==1))&&(a16==11))&&(a17==2))&&(a20==1))&&(((a11==1)&&(a9==7))&&!(a14==1)))){ + a16 = 9; + a5 = 5; + a9 = 10; + a19 = 2; + a3 = 1; + a12 = 1; + return 21; + } else if((((a9==11)&&(((a1==12)&&((a21==10)&&((((a2==1)&&(a19==3))||!(a6==1))||!(a6==1))))&&(a17==2)))&&((((a3==1)&&((((((a5==5)||(a5==6))&&(input==6))&&!(a18==1))&&!(a24==1))&&!(a26==1)))&&(a20==1))&&(a16==10)))){ + a27 = 0; + a9 = 7; + a16 = 7; + a11 = 1; + a2 = 1; + a5 = 4; + a19 = 1; + return -1; + } else if(((!(a0==1)&&(!(a14==1)&&(((a19==2)&&(((a28==1)&&!(a20==1))&&(a16==8)))&&(a21==11))))&&(!(a8==1)&&(!(a8==1)&&((((!(a18==1)&&((a9==9)&&((input==5)&&(a5==6))))&&(a1==12))&&(a17==2))&&(a3==1)))))){ + a1 = 14; + a9 = 10; + a5 = 4; + a20 = 1; + a18 = 0; + a14 = 0; + a19 = 1; + a12 = 1; + return 25; + } else if((((a11==1)&&(!(a28==1)||(((a17==2)&&(((a11==1)&&(a16==10))&&(a21==10)))&&(a23==1))))&&(((((a1==13)&&((((((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9))))&&(input==3))&&(a12==1))&&!(a20==1)))&&(a19==2))&&(a23==1))&&!(a18==1)))){ + a15 = 1; + a20 = 1; + a5 = 6; + a29 = 1; + a19 = 1; + a16 = 7; + a9 = 10; + a27 = 1; + return -1; + } else if(((((a21==11)&&((a12==1)&&(a9==11)))&&(a14==1))&&(((a16==8)&&(((a20==1)&&((a14==1)&&((a7==1)&&(((a17==2)&&((a4==1)&&(((input==4)&&(a19==3))&&!(a23==1))))&&(a1==13)))))&&(a5==4)))&&!(a23==1)))){ + a21 = 10; + a19 = 1; + a5 = 6; + a16 = 7; + a20 = 0; + a10 = 0; + a2 = 0; + a25 = 1; + a1 = 12; + a9 = 7; + return -1; + } else if(((!(a12==1)||((a16==7)&&(((a17==2)&&(!(a20==1)&&((a21==10)&&(a23==1))))&&(a28==1))))&&(((a3==1)&&(!(a7==1)&&((((input==4)&&((((a5==6)&&(a1==13))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==14)))))&&!(a14==1))&&!(a14==1))))&&(a19==5)))){ + a5 = 4; + a3 = 1; + a0 = 0; + a1 = 12; + a20 = 1; + a9 = 7; + a12 = 1; + a19 = 1; + return -1; + } else if(((!(a14==1)&&((((((a20==1)&&((!(a27==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&(a21==12)))&&(a9==8))&&!(a0==1))&&(a17==2))&&!(a0==1)))&&(!(a12==1)||((a1==14)&&(((a19==4)&&((a28==1)&&(a16==10)))||(a18==1)))))){ + a16 = 7; + a28 = 1; + a3 = 1; + a5 = 4; + a1 = 12; + a27 = 0; + a9 = 7; + a21 = 10; + a19 = 1; + return -1; + } else if((((!(a24==1)&&((a16==8)&&(((a28==1)&&(((a1==14)&&(input==4))&&(a13==1)))&&(a28==1))))&&(a17==2))&&(((((a14==1)||((((a28==1)&&(a5==4))&&(a23==1))&&(a21==10)))&&(a9==9))&&(a20==1))&&(a19==2)))){ + a14 = 0; + a19 = 1; + a16 = 7; + a9 = 7; + a27 = 0; + a1 = 12; + a4 = 0; + return -1; + } else if((((((a20==1)&&((a1==13)&&((((a23==1)||!(a6==1))&&(a28==1))&&(a17==2))))||(a18==1))&&!(a24==1))&&(!(a0==1)&&((a21==10)&&((a19==2)&&(((a3==1)&&((input==1)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))))&&(a16==10))))))){ + a19 = 1; + a9 = 7; + a1 = 12; + a4 = 0; + a5 = 4; + a16 = 7; + a14 = 0; + return -1; + } else if(((((((a1==13)&&(((((a2==1)&&!(a18==1))&&!(a26==1))&&(a17==2))&&(a21==11)))&&(a20==1))||!(a3==1))&&(a2==1))&&((a19==4)&&(((((((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(input==4))&&!(a27==1))&&(a16==7))&&!(a27==1))))){ + a19 = 1; + a9 = 7; + a3 = 1; + a0 = 0; + a21 = 10; + a5 = 4; + a1 = 12; + a4 = 0; + return -1; + } else if((((a16==10)&&((a9==10)&&(!(a23==1)||(((((a12==1)||(a18==1))&&(a19==4))&&(a28==1))&&!(a4==1)))))&&((a21==12)&&((((((a13==1)&&((a5==6)&&(input==4)))&&!(a7==1))&&!(a20==1))&&(a1==12))&&(a17==2))))){ + a18 = 1; + a8 = 1; + a15 = 1; + a16 = 11; + a9 = 9; + a19 = 3; + a20 = 1; + a21 = 11; + a5 = 5; + return -1; + } else if(((((a23==1)&&((a23==1)&&((((((((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8))))&&(input==1))&&!(a24==1))&&(a17==2))&&(a21==12))&&!(a26==1))))&&(a16==7))&&((!(a24==1)&&((((a20==1)&&(a28==1))&&(a19==3))&&(a1==12)))&&!(a26==1)))){ + a13 = 1; + a19 = 1; + a18 = 0; + a5 = 4; + a21 = 10; + a9 = 7; + a7 = 0; + return -1; + } else if(((((a5==4)&&((!(a3==1)||(!(a6==1)||((a1==13)&&(((a13==1)&&!(a4==1))||!(a6==1)))))||(a4==1)))&&(a9==11))&&((a16==7)&&((((((a17==2)&&(input==5))&&!(a0==1))&&(a21==11))&&(a20==1))&&(a19==5))))){ + a18 = 0; + a1 = 14; + a16 = 8; + a24 = 0; + a9 = 9; + a21 = 12; + a19 = 2; + a5 = 5; + a13 = 1; + return 23; + } else if((((((a17==2)&&((a28==1)&&((a19==5)&&(((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a1==14)))))&&!(a4==1))&&(a13==1))&&(!(a3==1)||((a16==8)&&((a9==9)&&(((((a13==1)&&(a23==1))&&(a20==1))&&!(a0==1))&&(a21==12))))))){ + a4 = 0; + a12 = 1; + a23 = 1; + a16 = 10; + a1 = 13; + a5 = 6; + return 26; + } else if(((((a16==10)&&(((a1==13)&&(a6==1))&&!(a18==1)))&&(a28==1))&&((a9==11)&&((((a19==2)&&((((a2==1)&&(!(a7==1)&&(((a5==6)&&(input==4))&&!(a24==1))))&&(a28==1))&&(a20==1)))&&(a21==12))&&(a17==2))))){ + a21 = 10; + a1 = 12; + a18 = 0; + a16 = 7; + a24 = 0; + a5 = 4; + a13 = 1; + a9 = 7; + a19 = 1; + return -1; + } return calculate_output67(input); + } + + int calculate_output67(int input) { + if((((((a28==1)&&(a19==3))&&!(a20==1))&&(a28==1))&&((a13==1)&&(((a16==7)&&((a21==10)&&((((((((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4)))&&(input==4))&&(a1==14))&&(a6==1))&&(a17==2))&&!(a4==1))&&(a13==1))))&&!(a27==1))))){ + a8 = 0; + a2 = 1; + a9 = 7; + a5 = 4; + a19 = 1; + a20 = 1; + a3 = 1; + a1 = 12; + return -1; + } else if((((a2==1)&&((a21==10)&&(((a20==1)&&((a1==13)&&((a9==10)&&(((a16==7)&&(((a19==2)&&(input==6))&&(a12==1)))&&!(a0==1)))))&&(a5==6))))&&(((((a24==1)||(a28==1))&&(a17==2))||!(a23==1))&&(a13==1)))){ + a0 = 0; + a4 = 0; + a9 = 11; + a19 = 3; + a2 = 1; + return 26; + } else if(((((((((!(a26==1)&&((a24==1)||(a2==1)))&&(a16==9))&&!(a26==1))&&(a20==1))&&(a19==5))&&(a9==11))&&(a2==1))&&((a12==1)&&((!(a26==1)&&((((input==1)&&((a5==5)||(a5==6)))&&(a1==13))&&(a17==2)))&&(a21==10))))){ + a26 = 0; + a19 = 1; + a1 = 12; + a7 = 0; + a16 = 7; + a9 = 7; + a3 = 1; + a5 = 4; + return -1; + } else if(((((((a21==12)&&((a2==1)&&(a1==12)))&&!(a23==1))&&(a17==2))&&(a27==1))&&((a4==1)&&((((a8==1)&&((a20==1)&&((a24==1)&&(((input==1)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(a19==2)))))&&(a8==1))&&(a16==9))))){ + a9 = 11; + a18 = 1; + a5 = 5; + a6 = 0; + a16 = 7; + a21 = 10; + return -1; + } else if((((a20==1)&&((a19==5)&&((((a16==8)&&(!(a6==1)||(((!(a7==1)&&((a1==14)&&(a23==1)))||(a4==1))&&!(a8==1))))&&(a17==2))&&(a9==8))))&&(((a12==1)&&(((a21==10)&&(input==3))&&(a28==1)))&&(a5==5)))){ + a4 = 0; + a1 = 12; + a5 = 4; + a6 = 1; + a11 = 1; + a9 = 9; + return -1; + } else if((((((a20==1)&&((!(a8==1)&&(a13==1))&&(a17==2)))&&(a1==13))&&(a19==4))&&((a16==8)&&((a11==1)&&((a21==10)&&(!(a27==1)&&(((!(a8==1)&&((((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7))))&&(input==4)))&&!(a24==1))&&(a28==1)))))))){ + a5 = 4; + a19 = 1; + a1 = 12; + a0 = 0; + a16 = 7; + a14 = 0; + a9 = 7; + a6 = 1; + return -1; + } else if((((a20==1)&&(((((a19==3)&&(((((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4)))&&(input==5))&&(a23==1))&&(a28==1)))&&!(a4==1))&&!(a26==1))&&(a21==12)))&&((a17==2)&&((a1==12)&&(((a16==9)&&(!(a24==1)&&(a6==1)))&&!(a14==1)))))){ + a3 = 1; + a9 = 10; + a5 = 5; + a28 = 1; + a21 = 10; + a1 = 13; + a16 = 7; + return 22; + } else if((((a17==2)&&((!(a3==1)&&(((a4==1)&&((input==1)&&(((((a5==6)&&(a1==14))&&(a9==11))&&(a19==1))||((a19==2)&&((a9==7)&&((a1==12)&&(a5==4)))))))&&(a16==9)))&&(a18==1)))&&(((a21==12)&&(!(a13==1)&&((a7==1)&&((a23==1)&&!(a23==1)))))&&(a20==1)))){ + a5 = 6; + a27 = 1; + a9 = 11; + a1 = 12; + a21 = 11; + a0 = 1; + a16 = 8; + a19 = 5; + a7 = 1; + return -1; + } else if(((((a16==8)&&((a17==2)&&(((a12==1)&&(a13==1))&&(a5==4))))||(a8==1))&&((a13==1)&&((a21==12)&&((((a19==3)&&(((a20==1)&&((a9==10)&&((input==1)&&(a1==14))))&&!(a7==1)))&&(a6==1))&&!(a14==1)))))){ + a11 = 1; + a1 = 12; + a4 = 0; + a18 = 0; + a19 = 1; + a21 = 10; + a16 = 7; + a9 = 7; + return -1; + } else if((((a16==8)&&((a20==1)&&((a9==7)&&((((a17==2)&&((a6==1)&&((a1==13)&&((input==1)&&(a19==3)))))&&!(a24==1))&&(a12==1)))))&&((a5==4)&&((a21==10)&&((((a23==1)||!(a13==1))||!(a6==1))&&(a23==1)))))){ + a16 = 9; + a19 = 4; + a24 = 0; + a1 = 14; + a2 = 1; + a4 = 0; + a9 = 11; + a21 = 12; + return 25; + } else if((((((a5==4)&&(!(a20==1)&&(!(a11==1)&&((a8==1)&&((a17==2)&&(((input==6)&&(a19==4))&&(a7==1)))))))&&(a16==8))&&(a21==11))&&(((a1==14)&&((((a24==1)&&(a23==1))&&(a18==1))&&!(a11==1)))&&(a9==9)))){ + a11 = 0; + a19 = 1; + a20 = 1; + a7 = 1; + a9 = 11; + a8 = 1; + a5 = 5; + a1 = 12; + a16 = 7; + a21 = 10; + return -1; + } else if(((((a11==1)&&((a12==1)&&(!(a14==1)&&((a3==1)&&((a17==2)&&(a6==1))))))&&!(a20==1))&&((a19==2)&&(((((a16==7)&&((((a5==5)&&(input==5))&&(a28==1))&&(a1==13)))&&!(a7==1))&&(a21==12))&&(a9==7))))){ + a3 = 1; + a21 = 10; + a20 = 1; + a5 = 4; + a9 = 10; + a26 = 0; + return 21; + } else if(((((a16==10)&&((a9==11)&&(!(a24==1)&&((a20==1)&&(((!(a27==1)&&((a1==13)&&(input==6)))&&!(a4==1))&&(a28==1))))))&&(a21==12))&&((a19==2)&&(((a26==1)||(((a6==1)&&(a17==2))||!(a28==1)))&&(a5==6))))){ + a13 = 1; + a9 = 9; + a18 = 0; + a5 = 5; + a16 = 7; + a21 = 10; + a26 = 0; + return 25; + } else if((((a1==14)&&((!(a18==1)&&((!(a20==1)&&(((a3==1)&&((a17==2)&&((a6==1)&&(!(a27==1)&&(((a5==4)&&(input==4))&&(a19==2))))))&&(a16==7)))&&!(a24==1)))&&(a21==11)))&&((a12==1)&&((a9==10)&&(a13==1))))){ + a28 = 1; + a9 = 7; + a1 = 12; + a20 = 1; + a18 = 0; + a21 = 10; + a19 = 1; + return -1; + } else if((((a21==11)&&((a11==1)&&((!(a26==1)&&((a1==12)&&(a13==1)))&&!(a7==1))))&&(((a19==2)&&((a17==2)&&(((a3==1)&&((a3==1)&&(!(a26==1)&&((input==6)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))))))&&(a16==9))))&&(a20==1)))){ + a16 = 10; + a26 = 0; + a5 = 6; + a6 = 1; + a9 = 10; + a19 = 5; + a21 = 10; + a0 = 0; + return 25; + } else if(((((a2==1)&&((a21==12)&&(((a16==8)&&((a17==2)&&((a1==12)&&(a11==1))))||!(a13==1))))||(a8==1))&&(((((a20==1)&&((a2==1)&&(((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4)))&&(input==6))))&&(a19==5))&&(a11==1))&&(a3==1)))){ + a4 = 0; + a8 = 0; + a9 = 11; + a12 = 1; + a19 = 4; + a1 = 14; + a5 = 5; + a16 = 7; + a21 = 10; + return 25; + } else if(((!(a24==1)&&(!(a4==1)&&((a18==1)||((a5==4)&&(((a28==1)||(a4==1))&&(a9==7))))))&&(!(a4==1)&&((a21==10)&&((!(a26==1)&&((a17==2)&&(!(a20==1)&&(((input==3)&&(a19==5))&&(a16==8)))))&&(a1==13)))))){ + a0 = 0; + a16 = 7; + a19 = 1; + a1 = 12; + a20 = 1; + a18 = 0; + a11 = 1; + return -1; + } else if((((a19==1)&&((a21==12)&&((a27==1)||(((a28==1)||(a4==1))&&(a9==8)))))&&((a16==7)&&((((((!(a20==1)&&(((a17==2)&&(input==5))&&(a1==12)))&&(a3==1))&&!(a26==1))&&(a5==4))&&!(a14==1))&&!(a27==1))))){ + a13 = 1; + a21 = 11; + a19 = 5; + a16 = 11; + a1 = 13; + a20 = 1; + a23 = 1; + a11 = 1; + a5 = 5; + a9 = 7; + return 21; + } else if(((((a26==1)||((a12==1)&&(((((a12==1)&&(a21==12))&&(a19==4))&&(a1==14))&&(a17==2))))&&(a20==1))&&(((a5==5)&&((a6==1)&&(!(a14==1)&&(!(a24==1)&&(((input==1)&&(a16==7))&&(a6==1))))))&&(a9==7)))){ + a18 = 0; + a16 = 9; + a13 = 1; + a19 = 3; + a1 = 12; + a9 = 10; + a21 = 11; + return 25; + } else if((((a28==1)&&(!(a7==1)&&(!(a26==1)&&(((a2==1)&&((input==4)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))))&&!(a26==1)))))&&((a21==11)&&(!(a20==1)&&(((((a1==13)&&((a17==2)&&(a23==1)))&&!(a4==1))&&(a16==7))&&(a19==3)))))){ + a20 = 1; + a23 = 1; + a19 = 1; + a24 = 0; + a21 = 10; + a5 = 4; + a18 = 0; + a9 = 7; + a1 = 12; + return -1; + } else if((((a19==2)&&(((a21==10)&&(((a1==13)&&(((input==6)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&!(a14==1)))&&(a17==2)))&&(a20==1)))&&((((a0==1)||((((a13==1)&&(a16==10))&&(a11==1))||!(a12==1)))||(a18==1))||(a26==1)))){ + a9 = 7; + a2 = 1; + a1 = 12; + a11 = 1; + a16 = 7; + a19 = 1; + a5 = 4; + return -1; + } else if((((a9==7)&&((a21==11)&&((a3==1)&&(((!(a4==1)&&((a6==1)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a23==1))&&!(a14==1)))))&&(((a20==1)&&(((a16==10)&&((a1==14)&&((a12==1)&&(a17==2))))&&!(a27==1)))&&(a19==4)))){ + a5 = 5; + a0 = 0; + a16 = 8; + a28 = 1; + a4 = 0; + a9 = 10; + a1 = 12; + return 26; + } else if((((a19==5)&&((a16==7)&&(((a17==2)&&(((a12==1)&&((a6==1)&&(((input==4)&&(a20==1))&&(a1==13))))&&!(a18==1)))&&!(a7==1))))&&(((a21==12)&&((((a6==1)&&!(a24==1))&&(a3==1))&&(a5==6)))&&(a9==8)))){ + a5 = 4; + a12 = 1; + a11 = 1; + a9 = 7; + a1 = 12; + a19 = 1; + a21 = 10; + a26 = 0; + return -1; + } else if(((((((((input==4)&&((((a9==7)&&((a5==5)&&(a1==12)))&&(a19==2))||(((a19==1)&&((a9==11)&&((a5==6)&&(a1==14))))||((a19==2)&&(((a1==12)&&(a5==4))&&(a9==7))))))&&!(a8==1))&&(a21==12))&&(a17==2))&&(a16==10))&&(a2==1))&&(!(a4==1)&&(!(a2==1)||((a13==1)&&(!(a27==1)&&((a11==1)&&!(a20==1)))))))){ + if((a29==1)){ + a19 = 1; + a22 = 1; + a25 = 1; + a20 = 1; + a21 = 10; + a5 = 5; + a1 = 14; + a9 = 8; + }else{ + a19 = 2; + a9 = 9; + a5 = 6; + a21 = 10; + a16 = 7; + a1 = 12; + a10 = 1; + a11 = 0; + a20 = 1; + a24 = 1; + } + return -1; + } else if(((((((a8==1)||((a2==1)&&(a1==13)))||(a27==1))||!(a12==1))&&(a16==10))&&((a17==2)&&((a21==12)&&((a12==1)&&((a11==1)&&((a5==4)&&(((a19==3)&&((a9==8)&&((input==6)&&(a20==1))))&&(a13==1))))))))){ + a9 = 9; + a16 = 7; + a24 = 0; + a13 = 1; + a21 = 10; + a19 = 2; + a14 = 0; + return -1; + } else if((((a8==1)&&(((a17==2)&&((a19==3)&&(((input==5)&&((a5==5)||(a5==6)))&&(a1==13))))&&(a16==8)))&&((a27==1)&&((!(a11==1)&&(((a9==8)&&((((a11==1)&&(a14==1))&&(a18==1))&&!(a6==1)))&&(a20==1)))&&(a21==11))))){ + a15 = 0; + a10 = 1; + a16 = 10; + a6 = 0; + a5 = 4; + a19 = 2; + a21 = 12; + a9 = 9; + return 25; + } else if((((!(a8==1)&&((a6==1)&&((!(a8==1)&&((a19==1)&&(((a17==2)&&((((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))&&(input==6))&&(a28==1)))&&(a21==10))))&&!(a26==1))))&&(a16==9))&&(!(a20==1)&&(((a28==1)&&!(a14==1))&&(a1==14))))){ + a29 = 1; + a16 = 7; + a9 = 9; + a20 = 1; + a1 = 12; + a13 = 0; + a5 = 4; + a15 = 0; + return -1; + } else if((((a21==11)&&(((a23==1)&&((a1==13)&&(!(a27==1)&&((a17==2)&&((((((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==5))&&!(a20==1))&&(a23==1))&&!(a8==1))&&(a2==1))))))&&(a16==8)))&&((a19==2)&&((a11==1)||!(a2==1))))){ + a19 = 5; + a11 = 1; + a20 = 1; + a9 = 8; + a6 = 1; + a5 = 4; + a16 = 7; + a26 = 0; + return 25; + } else if(((!(a12==1)||((a23==1)&&((((a7==1)||((a19==1)&&(a12==1)))||(a14==1))||(a7==1))))&&((!(a18==1)&&(((a16==8)&&(!(a20==1)&&((((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a1==14))&&(a17==2))))&&(a21==10)))&&(a9==9)))){ + if((a27==1)){ + a18 = 0; + a12 = 1; + a5 = 6; + a19 = 2; + a1 = 13; + a2 = 1; + a21 = 11; + }else{ + a16 = 9; + a1 = 12; + a9 = 11; + a20 = 1; + a24 = 0; + a14 = 0; + a23 = 1; + a19 = 4; + a5 = 6; + a21 = 11; + } + return 22; + } else if((((a9==11)&&(!(a20==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a16==9))))&&((a19==3)&&((((a23==1)&&((((!(a26==1)&&((a21==12)&&((a3==1)||(a27==1))))||!(a3==1))||(a18==1))&&(a1==12)))||!(a23==1))&&(a17==2))))){ + a15 = 0; + a9 = 7; + a14 = 1; + a21 = 10; + a20 = 1; + a29 = 1; + a5 = 6; + a19 = 1; + a16 = 7; + return 22; + } else if((((((((a9==9)&&((a28==1)&&(((input==5)&&((a5==4)||(a5==5)))&&!(a27==1))))&&!(a8==1))&&!(a20==1))&&(a28==1))&&(a17==2))&&(!(a0==1)&&((a19==4)&&((((a16==8)&&((a2==1)&&(a21==10)))&&(a1==14))&&(a6==1)))))){ + a16 = 7; + a21 = 12; + a26 = 0; + a1 = 13; + a13 = 1; + a5 = 6; + a20 = 1; + a14 = 0; + return 25; + } else if((((a19==4)&&(((a21==11)&&(!(a26==1)&&((input==1)&&(a9==9))))&&!(a8==1)))&&(((a2==1)&&(!(a20==1)&&(!(a24==1)&&(((a5==6)&&((a17==2)&&(!(a18==1)&&((a28==1)&&(a16==10)))))&&(a1==14)))))&&!(a27==1)))){ + if((a5==4)){ + a11 = 0; + a20 = 1; + a21 = 10; + a16 = 7; + a12 = 0; + a14 = 1; + a5 = 4; + a19 = 1; + }else{ + a5 = 4; + a1 = 12; + a20 = 1; + a8 = 1; + a22 = 0; + a19 = 2; + a28 = 0; + a21 = 10; + a16 = 7; + } + return 26; + } else if((((a28==1)&&(!(a2==1)||((a4==1)||((a13==1)&&((a17==2)&&((a20==1)&&(!(a28==1)||((a23==1)&&(a16==9)))))))))&&((a11==1)&&(((a1==14)&&((((input==4)&&(a9==10))&&(a21==10))&&(a5==5)))&&(a19==1))))){ + a9 = 11; + a4 = 0; + a28 = 1; + a19 = 5; + a16 = 8; + a1 = 13; + a14 = 0; + a5 = 6; + return 25; + } else if((((((a8==1)||(((a0==1)||(a23==1))&&!(a4==1)))&&(a1==14))&&!(a20==1))&&((a16==9)&&((!(a27==1)&&((!(a18==1)&&(((a17==2)&&((input==3)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))&&(a23==1)))&&(a19==3)))&&(a21==10))))){ + if((a9==8)){ + a10 = 1; + a9 = 10; + a20 = 1; + a1 = 12; + a29 = 0; + a16 = 7; + a19 = 2; + a5 = 4; + a3 = 0; + }else{ + a12 = 0; + a20 = 1; + a0 = 1; + a23 = 0; + a9 = 11; + a19 = 1; + a5 = 5; + a16 = 7; + a1 = 12; + } + return -1; + } else if((((((a17==2)&&((((a6==1)&&((a23==1)||(a14==1)))&&!(a8==1))&&(a16==7)))||(a24==1))&&(a9==11))&&(!(a20==1)&&(((!(a0==1)&&((((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a19==5))&&(a21==11)))&&(a23==1))&&(a1==12))))){ + a24 = 0; + a20 = 1; + a7 = 0; + a19 = 1; + a2 = 1; + a9 = 7; + a21 = 10; + a5 = 4; + return -1; + } else if(((((a9==10)&&(((!(a24==1)&&(!(a24==1)&&((a12==1)&&((a28==1)&&((a16==7)&&((input==3)&&(a5==6)))))))&&(a21==12))&&(a1==13)))&&(a17==2))&&((((a19==3)&&(!(a6==1)||(a12==1)))&&(a28==1))&&!(a20==1)))){ + a20 = 1; + a1 = 12; + a9 = 7; + a24 = 0; + a21 = 10; + a0 = 0; + a16 = 11; + a19 = 4; + return 21; + } else if((((a17==2)&&(((a26==1)||((((a27==1)||(!(a6==1)||(a13==1)))&&(a19==3))&&!(a0==1)))&&(a21==10)))&&(((a2==1)&&(((((((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(input==6))&&(a16==9))&&!(a20==1))&&(a1==14)))&&!(a0==1)))){ + if((a5==5)){ + a19 = 2; + a9 = 10; + a5 = 5; + a0 = 1; + a23 = 0; + a16 = 11; + a29 = 0; + a1 = 13; + }else{ + a9 = 11; + a26 = 1; + a6 = 0; + a5 = 5; + a18 = 1; + } + return -1; + } else if(((((((a6==1)&&((a20==1)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a6==1))&&!(a26==1))&&(a17==2))&&((((((((a19==1)&&((a3==1)&&(a11==1)))||!(a13==1))&&(a21==10))&&!(a24==1))&&(a1==12))&&(a16==9))&&(a9==8)))){ + a21 = 12; + a5 = 6; + a1 = 14; + a19 = 5; + a16 = 10; + a26 = 0; + a23 = 1; + a9 = 11; + a14 = 0; + return 25; + } else if((((a20==1)&&((a21==10)&&((a9==10)&&((a13==1)&&(((a16==11)&&(((a28==1)&&!(a0==1))||(a0==1)))||!(a13==1))))))&&(((a5==6)&&(((a1==12)&&((a12==1)&&((input==1)&&(a17==2))))&&(a19==5)))&&!(a18==1)))){ + a19 = 1; + a16 = 7; + a9 = 7; + a5 = 4; + a8 = 0; + a7 = 0; + a24 = 0; + return -1; + } else if(((((a3==1)&&(((a19==5)&&(((a9==10)&&((input==5)&&((a5==4)||(a5==5))))&&(a21==10)))&&(a17==2)))&&!(a7==1))&&((a20==1)&&(((a1==14)&&((a16==7)&&(!(a3==1)||(((a28==1)&&!(a0==1))&&!(a26==1)))))&&(a11==1))))){ + a27 = 0; + a19 = 4; + a9 = 11; + a12 = 1; + a21 = 12; + a5 = 4; + a2 = 1; + return 26; + } else if(((((a9==11)&&((((a5==6)&&((!(a12==1)||(!(a11==1)||(a23==1)))||(a18==1)))||(a18==1))&&(a21==12)))&&(a16==8))&&(((((!(a27==1)&&((a1==12)&&(input==5)))&&(a2==1))&&(a19==1))&&!(a20==1))&&(a17==2)))){ + if((a6==1)){ + a22 = 1; + a20 = 1; + a16 = 7; + a19 = 5; + a21 = 10; + a13 = 0; + a29 = 0; + a1 = 14; + }else{ + a3 = 0; + a12 = 0; + a20 = 1; + a19 = 2; + a13 = 0; + a9 = 8; + a21 = 10; + a16 = 7; + } + return 22; + } else if(((((a19==3)&&((a13==1)&&(((a28==1)&&((input==5)&&(a1==12)))&&(a12==1))))&&(a9==11))&&((a17==2)&&((a5==4)&&((((a6==1)&&((a4==1)||(!(a20==1)&&((a11==1)&&(a21==10)))))&&(a16==11))&&(a28==1)))))){ + a28 = 0; + a13 = 0; + a19 = 1; + a16 = 7; + a9 = 8; + a26 = 1; + a20 = 1; + a5 = 6; + return 22; + } else if((((((!(a28==1)||((a23==1)&&!(a7==1)))&&(a3==1))&&(a16==10))&&!(a27==1))&&(((a19==4)&&((((((((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a9==10))&&!(a20==1))&&(a2==1))&&!(a27==1))&&(a1==13))&&(a17==2)))&&(a21==12)))){ + a5 = 6; + a16 = 7; + a19 = 1; + a6 = 0; + a9 = 11; + a21 = 10; + a20 = 1; + a1 = 14; + a13 = 0; + return -1; + } else if((((a4==1)&&(!(a3==1)&&((a27==1)&&(((a1==14)&&((((a16==8)&&(((a5==5)&&((input==6)&&(a17==2)))&&(a9==7)))&&(a19==5))&&!(a3==1)))&&!(a20==1)))))&&((((a6==1)&&(a21==10))&&!(a11==1))&&(a8==1)))){ + a5 = 6; + a20 = 1; + a16 = 7; + a13 = 0; + a24 = 1; + a19 = 1; + a27 = 1; + a1 = 13; + return 23; + } else if((((a9==8)&&((a19==3)&&((a0==1)||(((a3==1)&&(a23==1))&&(a16==9)))))&&((a5==4)&&((a20==1)&&(!(a24==1)&&((a17==2)&&(((!(a27==1)&&(!(a27==1)&&((a1==14)&&(input==5))))&&(a3==1))&&(a21==12)))))))){ + a21 = 10; + a19 = 2; + a1 = 13; + a9 = 10; + a3 = 1; + a24 = 0; + a16 = 7; + a5 = 6; + return 25; + } else if((((((a20==1)&&((a21==10)&&((a17==2)&&((((a5==4)||(a5==5))&&(input==4))&&!(a26==1)))))&&(a1==13))&&!(a24==1))&&((((a24==1)||((a19==2)&&((a9==8)&&(((a6==1)&&(a28==1))||(a27==1)))))||(a4==1))&&(a16==11)))){ + a26 = 0; + a9 = 7; + a3 = 1; + a1 = 12; + a19 = 1; + a5 = 4; + a11 = 1; + a16 = 7; + return -1; + } else if(((!(a14==1)&&((a16==7)&&((((a13==1)&&((a1==14)&&(!(a20==1)&&((input==5)&&(((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a5==6)&&(a9==10))))))))&&(a19==1))&&!(a27==1))))&&(!(a4==1)&&(!(a13==1)||((((a3==1)&&(a17==2))&&!(a0==1))&&(a21==11)))))){ + a11 = 1; + a6 = 1; + a5 = 4; + a18 = 0; + a1 = 12; + a21 = 10; + a20 = 1; + a9 = 7; + return -1; + } else if(((!(a8==1)&&(((a1==12)&&((!(a20==1)&&((a28==1)&&((a28==1)&&(((a5==4)||(a5==5))&&(input==1)))))&&(a6==1)))&&(a21==10)))&&((a16==10)&&((a19==4)&&((a3==1)&&(((a9==11)&&((a23==1)&&(a17==2)))||(a4==1))))))){ + a22 = 1; + a19 = 1; + a16 = 7; + a20 = 1; + a5 = 5; + a27 = 1; + a10 = 0; + return -1; + } else if(((((a1==12)&&((a9==7)&&((a5==4)&&(!(a20==1)&&(a3==1)))))&&(a21==10))&&((a16==10)&&(((!(a27==1)&&((a28==1)&&((a13==1)&&(((a12==1)&&((a17==2)&&(input==4)))&&(a23==1)))))&&(a23==1))&&(a19==3))))){ + a20 = 1; + a14 = 1; + a25 = 0; + a19 = 1; + a9 = 9; + a18 = 1; + a5 = 5; + a16 = 7; + return 21; + } else if((((a9==9)&&((a16==8)&&((a23==1)&&(!(a24==1)&&((a12==1)&&(((input==5)&&((a5==5)||(a5==6)))&&(a6==1)))))))&&((a21==12)&&((((a19==1)&&(!(a20==1)&&((a8==1)||((a17==2)&&(a23==1)))))||(a0==1))&&(a1==13))))){ + a20 = 1; + a19 = 2; + a6 = 0; + a25 = 0; + a5 = 4; + a16 = 11; + a8 = 1; + return -1; + } else if((((((a21==11)&&(((a2==1)||!(a13==1))&&(a6==1)))&&(a23==1))&&(a16==8))&&((a17==2)&&(((a19==2)&&((!(a14==1)&&(((((input==3)&&(a20==1))&&(a9==10))&&!(a26==1))&&(a1==12)))&&(a5==6)))&&!(a24==1))))){ + a9 = 11; + a16 = 10; + a7 = 0; + a0 = 0; + a21 = 10; + a5 = 4; + a19 = 3; + a1 = 14; + a3 = 1; + return 26; + } else if(((((a6==1)&&(((a16==7)&&(((a19==1)&&(!(a27==1)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==4))))&&(a21==12)))&&(a11==1)))&&!(a26==1))&&(((a20==1)&&((a1==14)&&(((a23==1)&&(a17==2))&&(a13==1))))&&!(a18==1)))){ + a1 = 13; + a16 = 9; + a9 = 11; + a21 = 10; + a11 = 1; + a23 = 1; + a5 = 6; + a2 = 1; + return 25; + } else if((((a19==3)&&((((a16==9)&&((!(a4==1)&&((input==3)&&(a5==6)))&&(a6==1)))&&!(a4==1))&&(a1==14)))&&((a21==12)&&(!(a11==1)||((a17==2)&&(!(a6==1)||((((a11==1)||(a4==1))&&!(a20==1))&&(a9==10)))))))){ + a21 = 10; + a25 = 0; + a5 = 5; + a16 = 7; + a9 = 9; + a1 = 12; + a20 = 1; + a19 = 2; + a27 = 1; + a29 = 1; + return 23; + } else if((((a1==14)&&(!(a20==1)&&(((((((a21==12)&&((input==4)&&(((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))))&&(a16==9))&&(a19==4))&&(a17==2))&&(a28==1))&&!(a0==1))))&&((a26==1)||(!(a28==1)||((a23==1)&&((a12==1)||(a26==1))))))){ + a5 = 4; + a21 = 10; + a22 = 0; + a20 = 1; + a28 = 0; + a29 = 0; + a9 = 10; + return 21; + } else if(((!(a18==1)&&(((a16==10)&&(!(a24==1)&&((input==4)&&(a1==12))))&&!(a26==1)))&&((a13==1)&&((a18==1)||((((a9==7)&&(((a5==4)&&(!(a20==1)&&((a19==4)&&(a12==1))))&&(a21==10)))||!(a23==1))&&(a17==2)))))){ + a24 = 1; + a19 = 1; + a16 = 8; + a20 = 1; + a12 = 0; + a9 = 11; + a22 = 1; + a21 = 12; + return -1; + } else if((((a16==8)&&(((a0==1)||((((a1==12)&&((a3==1)||(a24==1)))&&(a17==2))&&(a21==10)))&&(a12==1)))&&(!(a20==1)&&(!(a27==1)&&(((((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==4))&&(a19==1))&&(a6==1))&&!(a4==1)))))){ + a16 = 7; + a9 = 7; + a5 = 4; + a27 = 0; + a2 = 1; + a20 = 1; + a24 = 0; + return -1; + } else if((((a19==5)&&((((a12==1)&&(((a9==11)&&((a16==9)&&((input==5)&&(a5==4))))&&(a2==1)))&&(a1==13))&&!(a20==1)))&&(((a17==2)&&((((a7==1)||(!(a13==1)||(a28==1)))&&(a21==10))||!(a23==1)))||(a24==1)))){ + a25 = 1; + a19 = 1; + a9 = 10; + a29 = 0; + a23 = 0; + a16 = 7; + a20 = 1; + a5 = 5; + return 21; + } else if(((((a20==1)&&((((((((a9==7)&&((a5==4)&&(a1==12)))&&(a19==3))||((((a9==11)&&((a1==14)&&(a5==5)))&&(a19==2))||((((a1==14)&&(a5==6))&&(a9==11))&&(a19==2))))&&(input==5))&&!(a8==1))&&(a16==11))&&(a17==2)))&&(a2==1))&&(((((a21==11)&&(!(a4==1)&&(a13==1)))&&!(a8==1))||!(a23==1))&&!(a26==1)))){ + a11 = 1; + a5 = 4; + a19 = 1; + a6 = 1; + a21 = 10; + a14 = 0; + a9 = 7; + a1 = 12; + a16 = 7; + return -1; + } else if(((((((!(a18==1)&&((a16==9)&&(a23==1)))&&!(a4==1))||(a27==1))||(a8==1))&&!(a20==1))&&(((a19==2)&&(((((a11==1)&&((a12==1)&&((input==4)&&(a1==12))))&&(a5==6))&&(a9==7))&&(a21==10)))&&(a17==2)))){ + a1 = 14; + a22 = 1; + a19 = 1; + a10 = 1; + a5 = 4; + a16 = 7; + a9 = 10; + a14 = 1; + a20 = 1; + return -1; + } else if((((a1==14)&&(!(a20==1)&&((a16==7)&&(!(a18==1)&&((((((input==4)&&(((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))))&&!(a18==1))&&(a21==10))&&(a13==1))&&!(a7==1))))))&&((a19==3)&&((((a2==1)&&!(a7==1))&&(a17==2))||(a8==1))))){ + a12 = 1; + a2 = 1; + a5 = 5; + a9 = 11; + a19 = 4; + a13 = 1; + a1 = 12; + return 21; + } else if((((((((a9==11)&&(((a16==10)&&(a23==1))||(a7==1)))&&(a1==14))&&!(a18==1))||!(a12==1))&&(a28==1))&&((a13==1)&&((a20==1)&&((a19==1)&&(!(a18==1)&&((a17==2)&&(((input==3)&&((a5==5)||(a5==6)))&&(a21==12))))))))){ + a9 = 7; + a12 = 1; + a1 = 12; + a4 = 0; + a11 = 1; + a21 = 10; + a16 = 7; + a5 = 4; + return -1; + } else if((((((a16==8)&&((((a2==1)&&((a21==12)&&(input==4)))&&!(a0==1))&&(a19==4)))&&(a3==1))&&(a5==6))&&(((a3==1)&&((a17==2)&&(!(a2==1)||((((a1==13)&&(a6==1))||(a4==1))&&(a9==10)))))&&!(a20==1)))){ + a1 = 12; + a7 = 1; + a5 = 4; + a29 = 0; + a21 = 10; + a16 = 9; + a10 = 0; + a20 = 1; + a19 = 1; + a9 = 11; + return 26; + } else if((((((a20==1)&&(a28==1))&&!(a26==1))&&(a12==1))&&(((a17==2)&&((a1==14)&&(!(a27==1)&&(((a19==5)&&(((a16==7)&&(!(a14==1)&&((a5==6)&&((input==1)&&(a21==10)))))&&(a23==1)))&&!(a18==1)))))&&(a9==9)))){ + a0 = 0; + a28 = 1; + a19 = 4; + a18 = 0; + a21 = 12; + return 25; + } else if((((((a11==1)&&(((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&(a17==2)))&&(a16==7))&&(a9==8))&&(((((a19==1)&&((((a21==11)&&((a20==1)&&((a13==1)&&(a12==1))))||(a4==1))||(a0==1)))&&(a1==13))||!(a12==1))&&(a3==1)))){ + a5 = 4; + a1 = 12; + a6 = 1; + a0 = 0; + a18 = 0; + a9 = 7; + a21 = 10; + return -1; + } else if((((!(a7==1)&&(a6==1))&&(a17==2))&&(((!(a14==1)&&((!(a0==1)&&(!(a7==1)&&((a20==1)&&((a16==7)&&(!(a24==1)&&(((input==4)&&(((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))))&&(a12==1)))))))&&(a21==10)))&&(a19==4))&&(a1==14)))){ + a19 = 1; + a3 = 1; + a13 = 1; + a1 = 13; + a21 = 12; + a5 = 4; + a9 = 8; + a4 = 0; + return 26; + } else if(((((!(a20==1)&&(((((a17==2)&&((a3==1)&&(a19==3)))&&(a1==13))&&(a9==7))||(a18==1)))||(a8==1))||(a18==1))&&(((a23==1)&&((!(a14==1)&&((a21==12)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1))))&&!(a27==1)))&&(a16==10)))){ + if((a7==1)){ + a23 = 0; + a9 = 10; + a16 = 7; + a5 = 4; + a13 = 0; + a19 = 4; + a22 = 0; + }else{ + a12 = 0; + a9 = 11; + a1 = 12; + a13 = 0; + a19 = 4; + a5 = 6; + a4 = 1; + a21 = 10; + a16 = 7; + a20 = 1; + } + return 21; + } else if((((!(a11==1)||(((((a0==1)||(!(a28==1)||(a13==1)))&&(a9==8))&&(a19==4))&&(a17==2)))&&!(a7==1))&&((!(a26==1)&&(((((a20==1)&&(((a5==5)||(a5==6))&&(input==5)))&&(a21==12))&&!(a0==1))&&(a1==12)))&&(a16==10)))){ + a19 = 2; + a16 = 7; + a27 = 0; + a5 = 4; + a26 = 0; + a2 = 1; + a21 = 10; + a1 = 13; + a9 = 9; + return 25; + } else if((((a28==1)&&((a19==2)&&(((a3==1)&&((a16==7)&&((a1==13)&&((a17==2)&&(a11==1)))))&&(a21==11))))&&((a20==1)&&((a13==1)&&((!(a8==1)&&(!(a14==1)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==1))))&&!(a26==1)))))){ + a21 = 10; + a6 = 1; + a1 = 14; + a16 = 8; + a19 = 3; + a9 = 7; + a0 = 0; + a7 = 0; + a5 = 4; + return 23; + } else if(((((a16==7)&&((a20==1)&&((a1==13)&&(((a2==1)&&(a11==1))&&(a17==2)))))&&(a19==4))&&(((!(a4==1)&&((((a2==1)&&(((a21==11)&&(input==5))&&!(a4==1)))&&!(a24==1))&&(a5==5)))&&(a6==1))&&(a9==7)))){ + a4 = 0; + a16 = 8; + a1 = 14; + a19 = 3; + a9 = 9; + a8 = 0; + return 21; + } else if(((((a28==1)&&(((a23==1)&&((a11==1)||(a24==1)))&&!(a20==1)))&&(a5==6))&&(((a17==2)&&((((a9==9)&&(!(a0==1)&&((!(a14==1)&&((input==4)&&(a1==13)))&&!(a7==1))))&&(a21==10))&&(a16==11)))&&(a19==2)))){ + a9 = 7; + a20 = 1; + a16 = 7; + a7 = 1; + a5 = 4; + a24 = 1; + a28 = 0; + return -1; + } else if((((a11==1)&&((a16==9)&&(((((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==5))&&(a12==1))&&(a21==11))&&(a28==1))))&&((a12==1)&&((a0==1)||((((((a3==1)&&(a1==12))&&(a20==1))||!(a11==1))&&(a19==2))&&(a17==2)))))){ + a6 = 1; + a9 = 7; + a23 = 1; + a21 = 10; + a19 = 1; + a16 = 7; + a5 = 4; + a7 = 0; + return -1; + } else if((((a5==5)&&((a16==7)&&((!(a7==1)&&((a12==1)&&(((a9==11)&&(input==4))&&(a3==1))))&&!(a20==1))))&&((a19==3)&&((a21==11)&&((a12==1)&&(((a1==14)&&(!(a0==1)&&((a13==1)&&(a28==1))))&&(a17==2))))))){ + a5 = 4; + a19 = 1; + a23 = 1; + a1 = 12; + a20 = 1; + a13 = 1; + a21 = 10; + a9 = 7; + a8 = 0; + return -1; + } else if((((!(a4==1)&&(((a24==1)||(((a23==1)&&!(a26==1))||!(a23==1)))&&!(a20==1)))&&(a16==9))&&(((a28==1)&&((a19==3)&&((a21==11)&&((a13==1)&&((((input==1)&&((a5==5)||(a5==6)))&&(a1==14))&&(a9==11))))))&&(a17==2)))){ + a19 = 2; + a16 = 10; + a5 = 4; + a1 = 13; + a4 = 1; + a20 = 1; + a25 = 0; + a21 = 12; + return 23; + } else if(((((a27==1)&&((!(a23==1)&&((a18==1)&&(a2==1)))&&!(a2==1)))&&(a19==2))&&((((!(a6==1)&&((a20==1)&&((a21==12)&&(((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==6))&&!(a11==1)))))&&(a17==2))&&(a16==9))&&(a1==12)))){ + a1 = 14; + a16 = 11; + a6 = 0; + a9 = 11; + a29 = 1; + a21 = 11; + a19 = 3; + a8 = 1; + a5 = 4; + return 25; + } else if(((!(a8==1)&&(!(a20==1)&&((((a11==1)&&(((input==4)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(a1==14)))&&(a23==1))&&(a17==2))))&&((!(a6==1)||(((a21==10)&&(((a23==1)&&(a19==5))||(a8==1)))&&(a16==10)))&&!(a7==1)))){ + a5 = 4; + a16 = 7; + a23 = 0; + a1 = 12; + a9 = 7; + a26 = 1; + a21 = 12; + a8 = 1; + a20 = 1; + return -1; + } else if(((((a6==1)&&((a6==1)&&!(a24==1)))&&(a21==10))&&((a3==1)&&((((a5==6)&&(((((a19==3)&&((((input==1)&&(a1==12))&&!(a20==1))&&(a17==2)))&&!(a24==1))&&(a16==9))&&(a28==1)))&&(a9==10))&&!(a27==1))))){ + a9 = 8; + a1 = 13; + a8 = 1; + a19 = 1; + a23 = 0; + a28 = 0; + a20 = 1; + a16 = 7; + return 21; + } else if(((((((input==5)&&(((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))))&&(a16==10))&&!(a26==1))&&(a19==2))&&(!(a3==1)||(!(a3==1)||(!(a6==1)||(!(a6==1)||(((a1==13)&&((((a28==1)&&(a17==2))&&(a20==1))&&(a21==12)))&&!(a26==1)))))))){ + if((a16==9)){ + a19 = 5; + a5 = 5; + a1 = 12; + a9 = 11; + a16 = 8; + a20 = 0; + a27 = 0; + a11 = 1; + a21 = 10; + a23 = 1; + }else{ + a13 = 1; + a21 = 10; + a9 = 10; + a0 = 0; + a1 = 14; + a5 = 5; + a8 = 0; + a16 = 7; + } + return 21; + } else if((((a16==9)&&(((a17==2)&&((!(a20==1)&&(((a24==1)||((a19==4)&&(((a1==13)&&((a28==1)&&!(a27==1)))||(a26==1))))&&(a2==1)))||!(a2==1)))&&(a21==12)))&&(!(a18==1)&&((input==6)&&((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10))))))){ + a9 = 11; + a20 = 1; + a6 = 0; + a24 = 1; + a5 = 4; + a19 = 1; + a21 = 10; + a23 = 0; + a16 = 7; + return 21; + } else if((((((a1==14)&&((a19==2)&&((a21==12)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))))&&(a20==1))&&(a23==1))&&((!(a14==1)&&(!(a0==1)&&(((a9==10)&&((a8==1)||((a24==1)||((a13==1)||(a27==1)))))&&(a17==2))))&&(a16==8)))){ + a7 = 0; + a1 = 13; + a5 = 5; + a23 = 1; + a21 = 10; + a9 = 9; + a16 = 7; + return 25; + } else if(((((a1==13)&&(((a19==5)&&(((((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5)))&&(input==3))&&!(a20==1))&&(a17==2)))&&!(a18==1)))&&!(a4==1))&&(((a4==1)||(((((a11==1)||!(a6==1))&&!(a27==1))&&(a21==12))&&(a6==1)))&&(a16==8)))){ + a1 = 12; + a19 = 3; + a18 = 1; + a10 = 0; + a15 = 0; + a9 = 8; + a5 = 6; + a16 = 7; + return 23; + } else if(((((!(a14==1)&&(((((a5==4)||(a5==5))&&(input==1))&&!(a0==1))&&(a12==1)))&&!(a18==1))&&(a20==1))&&((a21==10)&&(!(a27==1)&&((a17==2)&&(((((a9==10)&&((a6==1)&&(a1==12)))&&!(a8==1))&&(a19==5))&&(a16==9))))))){ + a1 = 13; + a9 = 9; + a5 = 5; + a2 = 1; + a11 = 1; + a19 = 2; + return -1; + } else if((((!(a8==1)&&(!(a14==1)&&(((a1==13)&&(((a12==1)&&(a2==1))&&!(a7==1)))&&(a16==7))))&&(a20==1))&&((a9==10)&&(((a17==2)&&(((!(a0==1)&&((a21==10)&&(input==1)))&&!(a18==1))&&(a19==4)))&&(a5==5))))){ + a24 = 0; + a19 = 5; + a26 = 0; + a21 = 11; + a5 = 6; + a1 = 12; + a9 = 11; + a12 = 1; + return 22; + } else if((((((a28==1)&&(a20==1))&&(a23==1))||!(a2==1))&&((((a23==1)&&(((a16==10)&&((((a17==2)&&((((a9==11)&&((a5==6)&&(a1==12)))||((a9==7)&&((a1==13)&&(a5==4))))&&(input==5)))&&(a2==1))&&(a21==11)))&&(a19==1)))&&(a3==1))&&!(a27==1)))){ + a18 = 0; + a9 = 10; + a1 = 13; + a5 = 4; + a21 = 10; + a23 = 1; + a19 = 3; + a6 = 1; + return 25; + } else if(((((((!(a26==1)&&(((input==1)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&!(a0==1)))&&(a13==1))&&!(a26==1))&&(a21==11))&&!(a20==1))&&((((a16==9)&&(((a17==2)&&((a2==1)&&(a12==1)))&&!(a26==1)))&&(a1==14))&&(a19==5)))){ + a21 = 10; + a20 = 1; + a9 = 9; + a1 = 12; + a16 = 7; + a13 = 0; + a5 = 5; + a19 = 2; + a25 = 0; + a29 = 1; + return -1; + } else if((((a8==1)||(!(a13==1)||(((a9==9)&&((a20==1)&&(a13==1)))||(a27==1))))&&((a23==1)&&(((a2==1)&&(((((a21==11)&&((a1==13)&&((a16==8)&&(input==1))))&&(a5==5))&&(a19==3))&&(a17==2)))&&(a11==1))))){ + a19 = 1; + a21 = 10; + a9 = 7; + a16 = 7; + a4 = 0; + a27 = 0; + a12 = 1; + a5 = 4; + a1 = 12; + return -1; + } else if((((a13==1)&&(a28==1))&&((a12==1)&&(((a16==10)&&(((!(a27==1)&&((a20==1)&&(((((((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))&&(input==6))&&(a19==1))&&(a21==11))&&(a11==1))&&(a1==13))))&&(a2==1))&&(a17==2)))&&!(a14==1))))){ + a13 = 1; + a19 = 4; + a6 = 1; + a16 = 7; + a1 = 12; + a18 = 0; + a21 = 10; + a9 = 11; + a5 = 4; + return 25; + } else if(((!(a18==1)&&((((a13==1)&&((a13==1)&&(((((input==6)&&(((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))))&&!(a0==1))&&(a16==8))&&(a1==12))))&&(a21==12))&&!(a20==1)))&&((((a19==5)&&((a23==1)||(a4==1)))&&!(a18==1))&&(a17==2)))){ + a11 = 0; + a16 = 9; + a5 = 6; + a13 = 0; + a20 = 1; + a9 = 7; + a29 = 0; + a19 = 1; + return -1; + } else if(((((a19==5)&&(!(a26==1)&&((!(a8==1)&&((a1==14)&&(input==4)))&&(a17==2))))&&(a12==1))&&(((((((a21==10)&&((a12==1)&&(!(a20==1)&&(a12==1))))&&(a16==8))&&!(a24==1))||(a14==1))&&(a5==4))&&(a9==7)))){ + a16 = 7; + a26 = 0; + a1 = 12; + a20 = 1; + a13 = 1; + a28 = 1; + a19 = 1; + return -1; + } else if(((((a21==10)&&(((((a6==1)&&(a2==1))&&(a17==2))&&(a1==13))&&(a13==1)))&&(a20==1))&&((!(a24==1)&&(((a16==10)&&(!(a4==1)&&((a19==3)&&((input==6)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))))))&&!(a4==1)))&&!(a7==1)))){ + a28 = 1; + a19 = 5; + a24 = 0; + a5 = 4; + a9 = 8; + a21 = 11; + a6 = 1; + return 21; + } else if(((!(a8==1)&&(((!(a20==1)&&((!(a0==1)&&((a1==14)&&(input==4)))&&(a12==1)))&&(a5==6))&&(a6==1)))&&((a11==1)&&((((a21==10)&&(!(a0==1)&&((a17==2)&&((a2==1)&&(a16==10)))))&&(a19==2))&&(a9==10))))){ + a1 = 12; + a19 = 5; + a2 = 0; + a22 = 1; + a16 = 9; + a9 = 8; + a29 = 0; + return -1; + } else if((((a16==8)&&((a19==5)&&((((((input==4)&&(a5==5))&&(a11==1))&&(a12==1))&&!(a20==1))&&(a9==7))))&&(((a23==1)&&((a17==2)&&((a26==1)||(((a4==1)||((a1==14)&&(a11==1)))&&!(a18==1)))))&&(a21==10)))){ + a20 = 1; + a23 = 1; + a5 = 4; + a26 = 0; + a1 = 12; + a18 = 0; + a19 = 1; + a16 = 7; + return -1; + } else if(((((((a1==14)&&((a26==1)||((a23==1)&&(a19==2))))||(a4==1))&&(a17==2))&&(a5==4))&&((a9==11)&&(((a11==1)&&((((!(a4==1)&&((a21==11)&&(input==5)))&&(a2==1))&&(a20==1))&&(a3==1)))&&(a16==10))))){ + a23 = 1; + a3 = 1; + a1 = 13; + a16 = 7; + a7 = 0; + a21 = 10; + a9 = 9; + return 25; + } else if((((((((a1==14)&&((a16==10)&&((a19==4)&&((a17==2)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&!(a4==1))))))&&(a20==1))&&(a28==1))&&(a21==12))&&(a9==7))&&(!(a0==1)&&(!(a14==1)&&(((a13==1)&&(a3==1))||(a7==1)))))){ + a6 = 1; + a24 = 0; + a9 = 10; + a21 = 10; + a5 = 4; + a16 = 7; + a0 = 0; + return 25; + } else if((((a21==12)&&((a16==10)&&((a19==1)&&(((a20==1)&&((input==4)&&((a5==6)||((a5==4)||(a5==5)))))&&(a1==12)))))&&(!(a12==1)||(((((a18==1)||((((a6==1)&&(a12==1))&&(a9==11))||(a18==1)))&&(a17==2))&&(a6==1))||!(a28==1))))){ + a6 = 1; + a0 = 0; + a16 = 7; + a18 = 0; + a21 = 10; + a9 = 7; + a5 = 4; + return -1; + } else if(((((!(a14==1)&&((a21==12)&&((!(a20==1)&&((input==5)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a4==1))))&&!(a7==1))&&(a16==7))&&(((a9==11)&&((((!(a18==1)&&((a23==1)&&(a1==13)))&&(a19==2))&&(a13==1))||(a4==1)))&&(a17==2)))){ + a1 = 14; + a9 = 10; + a14 = 0; + a19 = 4; + a26 = 0; + a16 = 8; + a5 = 6; + a21 = 10; + return 23; + } else if((((!(a14==1)&&((a1==14)&&((a19==2)&&((a21==11)&&(((input==1)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&(a17==2))))))&&(a2==1))&&((!(a7==1)&&((a28==1)&&((a16==11)&&(!(a18==1)&&((a20==1)&&(a2==1))))))||!(a28==1)))){ + a24 = 0; + a5 = 4; + a16 = 8; + a21 = 10; + a7 = 0; + a28 = 1; + a20 = 0; + a9 = 10; + a19 = 4; + return 21; + } else if((((!(a2==1)||((((a12==1)&&(a23==1))&&!(a18==1))||!(a3==1)))&&(a16==7))&&(((((a19==1)&&((a17==2)&&((a20==1)&&((a1==12)&&(((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8)))&&(input==4))))))&&(a13==1))&&!(a14==1))&&(a21==12)))){ + a2 = 1; + a28 = 1; + a21 = 10; + a9 = 7; + a18 = 0; + a5 = 4; + return -1; + } else if(((((a0==1)||(!(a8==1)&&(((a21==11)&&(!(a18==1)&&((!(a14==1)&&((a12==1)&&(a16==7)))&&(a17==2))))&&!(a7==1))))&&(a1==12))&&(!(a20==1)&&((a19==2)&&((((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5)))&&(input==5))&&(a12==1)))))){ + a21 = 10; + a23 = 1; + a5 = 4; + a20 = 1; + a9 = 7; + a19 = 1; + a4 = 0; + a18 = 0; + return -1; + } else if((((a16==10)&&(((((a12==1)&&(!(a4==1)&&((a12==1)&&(a13==1))))&&(a13==1))&&(a23==1))&&(a9==11)))&&((((a5==5)&&((((a1==13)&&((input==6)&&(a19==2)))&&!(a4==1))&&(a21==12)))&&(a17==2))&&(a20==1)))){ + if((a28==1)){ + a13 = 1; + a5 = 4; + a9 = 7; + a21 = 10; + a19 = 3; + a16 = 8; + a20 = 0; + a28 = 1; + a14 = 0; + }else{ + a9 = 7; + a1 = 14; + a16 = 7; + a11 = 1; + a27 = 0; + a3 = 1; + a19 = 4; + a21 = 10; + } + return 25; + } else if((((((!(a27==1)&&((a20==1)&&((a19==4)&&(input==6))))&&(a21==10))&&(a9==9))&&(a5==4))&&(((a1==14)&&(((!(a28==1)||(((a17==2)&&((a8==1)||(a3==1)))&&(a3==1)))&&!(a27==1))&&!(a8==1)))&&(a16==11)))){ + a5 = 6; + a21 = 11; + a28 = 1; + a16 = 9; + a26 = 0; + a8 = 0; + return 21; + } else if((((((a13==1)&&(a2==1))&&!(a27==1))&&(a19==4))&&(((a3==1)&&(((a12==1)&&((!(a4==1)&&(!(a26==1)&&((a21==10)&&(((input==4)&&(((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))))&&(a1==14)))))&&(a17==2)))&&(a20==1)))&&(a16==7)))){ + a14 = 0; + a9 = 7; + a1 = 12; + a19 = 1; + a13 = 1; + a5 = 4; + a24 = 0; + return -1; + } else if((((a6==1)&&(((a17==2)&&(((a13==1)&&((a6==1)&&((a12==1)&&((input==3)&&(((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9))))))))&&!(a27==1)))&&!(a18==1)))&&((a20==1)&&((a21==11)&&((((a3==1)&&(a1==12))&&(a19==2))&&(a16==10)))))){ + a19 = 1; + a12 = 1; + a2 = 1; + a27 = 0; + a21 = 10; + a5 = 4; + a16 = 7; + a9 = 7; + return -1; + } else if((((((a19==3)&&((a3==1)&&(!(a20==1)&&((a16==10)&&((!(a13==1)||(a11==1))&&(a21==12))))))&&(a17==2))||(a0==1))&&((a12==1)&&((a1==12)&&((a6==1)&&(!(a8==1)&&((input==4)&&(((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7))))))))))){ + if((a7==1)){ + a19 = 1; + a5 = 6; + a21 = 10; + a14 = 1; + a3 = 0; + a9 = 7; + a16 = 7; + a1 = 14; + a20 = 1; + a4 = 1; + }else{ + a6 = 0; + a10 = 0; + a9 = 10; + a16 = 7; + a5 = 5; + a21 = 10; + a20 = 1; + a24 = 1; + a19 = 2; + } + return -1; + } else if((((a20==1)&&(((a21==12)&&(a11==1))&&(a24==1)))&&((a1==14)&&((a17==2)&&((a8==1)&&(!(a2==1)&&(!(a6==1)&&((a16==11)&&(((a0==1)&&((((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9)))&&(input==5))&&!(a3==1)))&&(a19==2)))))))))){ + a21 = 10; + a19 = 1; + a1 = 12; + a22 = 1; + a10 = 0; + a26 = 1; + a9 = 10; + a5 = 4; + a16 = 7; + return -1; + } else if((((a19==1)&&(((a16==10)&&(((a17==2)&&(!(a24==1)&&(!(a20==1)&&(a13==1))))||!(a3==1)))&&(a1==12)))&&(((!(a26==1)&&(!(a7==1)&&((a21==11)&&((input==6)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))))))&&!(a27==1))&&(a6==1)))){ + a5 = 5; + a24 = 1; + a20 = 1; + a4 = 1; + a21 = 10; + a1 = 13; + a16 = 7; + a9 = 7; + a15 = 1; + return -1; + } else if((((a3==1)&&(((a6==1)&&(!(a26==1)&&(!(a27==1)&&((((((input==6)&&((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4))))&&(a21==10))&&(a1==12))&&(a17==2))&&(a20==1)))))&&!(a7==1)))&&((a16==10)&&((a19==3)&&(!(a11==1)||(a2==1)))))){ + a14 = 0; + a16 = 8; + a5 = 6; + a9 = 8; + a1 = 14; + a2 = 1; + a21 = 12; + a19 = 5; + a6 = 1; + return 22; + } else if((((!(a4==1)&&(((a9==8)&&(((a5==5)&&((a19==2)&&((a16==11)&&(input==4))))&&(a21==10)))&&(a6==1)))&&(a11==1))&&(((a14==1)||((a1==14)&&(((a17==2)&&((a28==1)||(a7==1)))&&!(a20==1))))||(a7==1)))){ + a23 = 0; + a5 = 6; + a8 = 1; + a21 = 12; + a9 = 7; + a1 = 13; + a16 = 9; + a27 = 1; + return 26; + } else if((((a20==1)&&((((a27==1)||(((a16==7)&&(a3==1))&&(a1==14)))||(a7==1))&&(a21==12)))&&((!(a8==1)&&(!(a8==1)&&(((((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==6))&&(a19==2))&&!(a27==1))&&(a12==1))))&&(a17==2)))){ + a9 = 8; + a16 = 9; + a11 = 1; + a19 = 3; + a5 = 5; + a7 = 0; + a21 = 10; + return 23; + } else if(((!(a3==1)&&((((input==5)&&(a21==12))&&(a17==2))&&(a8==1)))&&((a16==10)&&((a9==9)&&(((a19==1)&&((a5==5)&&(!(a2==1)&&(((a4==1)&&(((a20==1)&&(a6==1))&&!(a11==1)))&&!(a12==1)))))&&(a1==14)))))){ + a16 = 7; + a21 = 10; + a18 = 1; + a1 = 13; + a14 = 1; + a9 = 10; + a3 = 0; + return 22; + } else if((((a19==1)&&((!(a14==1)&&(((a9==9)&&(((!(a20==1)&&((a17==2)&&((a24==1)||(a23==1))))&&(a21==12))&&(a3==1)))&&(a16==8)))||!(a2==1)))&&((!(a4==1)&&((a1==12)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6))))&&(a12==1)))){ + a21 = 10; + a16 = 7; + a20 = 1; + a1 = 14; + a9 = 11; + a5 = 6; + a15 = 0; + a11 = 0; + a26 = 1; + return 25; + } else if((((!(a18==1)&&((a28==1)&&((a2==1)&&((a17==2)&&(((((a3==1)&&(a16==10))&&!(a20==1))&&(a9==8))&&(a19==5))))))||!(a23==1))&&(((a5==6)&&((((a1==12)&&(input==5))&&(a21==12))&&(a13==1)))&&(a13==1)))){ + a5 = 4; + a9 = 10; + a25 = 1; + a20 = 1; + a21 = 10; + a6 = 0; + a19 = 2; + a16 = 7; + a12 = 0; + return 25; + } else if((((!(a3==1)&&(((!(a2==1)&&(((input==1)&&(a17==2))&&(a19==2)))&&!(a13==1))&&!(a12==1)))&&(a16==7))&&(((((a21==12)&&(!(a23==1)&&(!(a6==1)&&((a1==14)&&(a12==1)))))&&!(a20==1))&&(a9==10))&&(a5==4)))){ + a14 = 1; + a19 = 4; + a1 = 12; + a5 = 5; + a21 = 10; + a22 = 1; + a28 = 0; + return 25; + } else if((((a21==12)&&(((!(a14==1)&&(((input==6)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5))))&&!(a0==1)))&&!(a4==1))&&(a17==2)))&&((a16==11)&&((a20==1)&&((((a1==12)&&(((a12==1)&&(a28==1))&&!(a4==1)))&&(a19==3))&&!(a4==1)))))){ + a3 = 1; + a24 = 0; + a16 = 7; + a5 = 4; + a19 = 1; + a9 = 7; + a28 = 1; + a21 = 10; + return -1; + } else if((((a27==1)||((a20==1)&&((!(a11==1)||(a13==1))&&(a1==13))))&&((a28==1)&&((a9==10)&&((((a13==1)&&(((a17==2)&&((!(a8==1)&&((a19==2)&&(input==6)))&&(a5==6)))&&(a21==12)))&&(a16==8))&&!(a7==1)))))){ + a16 = 10; + a7 = 0; + a4 = 0; + a19 = 1; + a9 = 9; + a5 = 5; + a18 = 0; + return 21; + } else if(((((a6==1)&&(!(a14==1)&&(!(a8==1)&&((a16==7)&&(((a9==11)&&(!(a7==1)&&((input==5)&&(a5==4))))&&!(a24==1))))))&&!(a24==1))&&(((a19==1)&&((a1==14)&&((a17==2)&&((a20==1)&&(a13==1)))))&&(a21==11)))){ + a1 = 13; + a7 = 0; + a20 = 0; + a6 = 1; + a5 = 5; + a27 = 0; + a19 = 5; + return 25; + } else if((((!(a7==1)&&(!(a4==1)&&((a6==1)&&(((a19==4)&&((a16==7)&&((a3==1)&&(a17==2))))&&!(a8==1)))))&&!(a20==1))&&(((((input==4)&&((((a1==14)&&(a5==4))&&(a9==7))||(((a9==11)&&((a1==13)&&(a5==5)))||(((a5==6)&&(a1==13))&&(a9==11)))))&&!(a8==1))&&(a11==1))&&(a21==11)))){ + a9 = 7; + a26 = 0; + a19 = 1; + a7 = 0; + a20 = 1; + a1 = 12; + a21 = 10; + a2 = 1; + a5 = 4; + return -1; + } else if((((a19==3)&&(!(a20==1)&&(((!(a11==1)||(!(a3==1)||(((a11==1)&&(a16==9))||!(a13==1))))||(a14==1))&&(a9==9))))&&((a21==11)&&((a6==1)&&((a17==2)&&((a6==1)&&((a1==14)&&((input==4)&&((a5==4)||(a5==5)))))))))){ + a16 = 10; + a9 = 10; + a21 = 10; + a10 = 0; + a5 = 6; + a2 = 0; + a29 = 0; + a19 = 4; + return -1; + } else if((((a17==2)&&((a11==1)&&(((a1==12)&&((((a19==2)&&(input==1))&&!(a20==1))&&(a23==1)))&&(a5==6))))&&(((((a16==9)&&(((!(a6==1)||(a13==1))&&!(a26==1))||!(a6==1)))&&(a9==7))&&(a11==1))&&(a21==10)))){ + if((a2==1)){ + a19 = 1; + a28 = 0; + a5 = 5; + a1 = 13; + a9 = 8; + a3 = 0; + a10 = 0; + a20 = 1; + a16 = 7; + }else{ + a5 = 5; + a16 = 7; + a18 = 1; + a3 = 0; + a20 = 1; + a2 = 0; + } + return -1; + } else if(((((a2==1)&&((a16==10)&&(((a20==1)&&((((a17==2)&&((input==3)&&(((a9==11)&&((a1==13)&&(a5==6)))||((a9==7)&&((a5==4)&&(a1==14))))))&&(a3==1))&&(a19==4)))&&(a11==1))))&&(a12==1))&&((a11==1)&&(((a21==10)&&(a13==1))||!(a2==1))))){ + a9 = 7; + a2 = 1; + a5 = 4; + a1 = 12; + a16 = 7; + a8 = 0; + a19 = 1; + return -1; + } else if((((!(a14==1)&&((a17==2)&&((a18==1)||((a18==1)||((a28==1)&&(((a3==1)&&!(a20==1))&&(a9==11)))))))&&(a21==10))&&((!(a7==1)&&(((a16==10)&&(((a1==13)&&(input==3))&&(a5==6)))&&(a19==1)))&&!(a26==1)))){ + a16 = 7; + a14 = 1; + a4 = 1; + a13 = 0; + a20 = 1; + a1 = 12; + return -1; + } else if((((((((a16==10)&&(!(a18==1)&&((((((a9==11)&&((a1==14)&&(a5==6)))&&(a19==1))||(((a9==7)&&((a1==12)&&(a5==4)))&&(a19==2)))||((a19==2)&&(((a5==5)&&(a1==12))&&(a9==7))))&&(input==1))))&&(a11==1))&&(a21==12))&&(a23==1))&&!(a20==1))&&((a26==1)||((((a3==1)&&(a23==1))&&(a17==2))||!(a13==1))))){ + a23 = 0; + a24 = 1; + a16 = 7; + a9 = 8; + a1 = 12; + a21 = 11; + a19 = 4; + a5 = 6; + return 23; + } else if(((((a17==2)&&(!(a3==1)&&((a1==14)&&(((!(a20==1)&&((a24==1)&&(a12==1)))&&(a5==6))&&(a27==1)))))&&(a9==8))&&(((((a16==7)&&((a21==12)&&((input==5)&&(a19==5))))&&(a26==1))&&(a18==1))&&(a7==1)))){ + a9 = 7; + a1 = 12; + a4 = 1; + a21 = 10; + a20 = 1; + a19 = 2; + a5 = 4; + a7 = 1; + a6 = 0; + return 21; + } else if((((a21==11)&&(((!(a26==1)&&((((a5==4)||(a5==5))&&(input==4))&&!(a18==1)))&&(a17==2))&&!(a24==1)))&&(((((a8==1)||((a7==1)||((((a3==1)&&!(a7==1))&&(a1==12))&&!(a20==1))))&&(a16==10))&&(a19==4))&&(a9==7)))){ + if((a25==1)){ + a5 = 5; + a0 = 1; + a19 = 3; + a13 = 0; + a16 = 8; + a22 = 0; + a9 = 11; + a1 = 13; + }else{ + a4 = 1; + a22 = 0; + a28 = 0; + a19 = 2; + a16 = 9; + a5 = 4; + } + return -1; + } else if((((!(a26==1)&&((((a17==2)&&(((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a1==14)))&&(a9==8))&&(a12==1)))&&(a19==5))&&((a16==7)&&(((a21==11)&&(!(a13==1)||((!(a20==1)&&(!(a23==1)||(a3==1)))||!(a23==1))))||(a26==1))))){ + a16 = 11; + a9 = 7; + a1 = 12; + a19 = 1; + a4 = 0; + a20 = 1; + a5 = 6; + a13 = 1; + return 26; + } else if(((((a23==1)&&(((a16==10)&&(((a23==1)&&((input==1)&&((a5==5)||(a5==6))))&&(a1==14)))&&(a17==2)))&&!(a8==1))&&(((a20==1)&&(((!(a13==1)||((a24==1)||((a6==1)||(a4==1))))&&(a19==2))&&(a21==10)))&&(a9==11)))){ + a0 = 0; + a5 = 4; + a9 = 7; + a19 = 1; + a16 = 7; + a1 = 12; + a12 = 1; + a7 = 0; + return -1; + } else if((((a6==1)&&((a18==1)||(a23==1)))&&(!(a26==1)&&(((a17==2)&&((a20==1)&&((a16==7)&&(((a23==1)&&((a1==14)&&((a21==11)&&(!(a24==1)&&((input==4)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8))))))))&&(a19==5)))))&&!(a0==1))))){ + a5 = 4; + a9 = 7; + a28 = 1; + a19 = 1; + a12 = 1; + a21 = 10; + a1 = 12; + a14 = 0; + return -1; + } else if(((!(a24==1)&&(((a13==1)&&((((((((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(input==3))&&!(a4==1))&&(a13==1))&&(a17==2))&&(a1==12)))&&(a20==1)))&&((a3==1)&&(((((a13==1)&&!(a4==1))&&(a21==12))&&(a19==4))&&(a16==11))))){ + a5 = 4; + a16 = 7; + a4 = 0; + a9 = 7; + a23 = 1; + a27 = 0; + a21 = 10; + a19 = 1; + return -1; + } else if((((a16==7)&&((((a19==3)&&((input==3)&&((((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4)))))&&!(a14==1))&&!(a18==1)))&&(!(a7==1)&&((((a17==2)&&((a21==12)&&((((a1==14)&&(a3==1))||(a18==1))&&!(a20==1))))||(a24==1))||!(a11==1))))){ + a26 = 0; + a5 = 6; + a1 = 12; + a9 = 10; + a16 = 8; + a21 = 10; + a23 = 1; + a13 = 1; + return 21; + } else if(((((!(a23==1)||(((a26==1)||(a28==1))&&(a17==2)))&&(a20==1))&&(a19==4))&&((a16==9)&&((a11==1)&&(!(a0==1)&&(((a21==12)&&(!(a26==1)&&(((((a1==13)&&(a5==6))&&(a9==11))||((a9==7)&&((a1==14)&&(a5==4))))&&(input==1))))&&!(a4==1))))))){ + a1 = 12; + a16 = 7; + a11 = 1; + a26 = 0; + a5 = 4; + a19 = 1; + a9 = 7; + a13 = 1; + a21 = 10; + return -1; + } else if((((((a12==1)&&(((a16==9)&&((((((a9==11)&&((a1==14)&&(a5==6)))&&(a19==2))||(((a9==7)&&((a1==12)&&(a5==4)))&&(a19==3)))||((a19==3)&&(((a1==12)&&(a5==5))&&(a9==7))))&&(input==5)))&&(a20==1)))&&(a17==2))&&!(a26==1))&&((a6==1)&&(!(a0==1)&&(!(a13==1)||((a18==1)||((a3==1)&&(a21==11)))))))){ + a13 = 1; + a5 = 4; + a16 = 7; + a1 = 12; + a14 = 0; + a19 = 1; + a21 = 10; + a26 = 0; + a9 = 7; + return -1; + } else if((((((!(a0==1)&&((a13==1)||!(a28==1)))&&(a16==10))&&(a9==7))&&!(a20==1))&&((a21==12)&&((((a13==1)&&(((a19==4)&&((((input==1)&&((a5==5)||(a5==6)))&&(a23==1))&&(a28==1)))&&(a13==1)))&&(a1==14))&&(a17==2))))){ + a0 = 1; + a10 = 1; + a20 = 1; + a9 = 10; + a21 = 10; + a16 = 7; + a1 = 13; + a19 = 1; + a5 = 5; + a18 = 1; + return -1; + } else if(((((a19==4)&&((((((a7==1)||((a16==11)&&(a3==1)))&&(a11==1))&&!(a18==1))&&(a21==12))||!(a12==1)))||(a24==1))&&((a20==1)&&((a1==12)&&(((a17==2)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==6)))&&(a12==1)))))){ + a5 = 6; + a28 = 1; + a9 = 9; + a18 = 0; + a1 = 13; + a6 = 1; + a19 = 5; + return 25; + } else if(((((a17==2)&&(((a9==8)&&((!(a11==1)||(a11==1))&&(a20==1)))||!(a13==1)))&&(a16==9))&&((!(a4==1)&&((((a21==12)&&(((a11==1)&&((input==6)&&((a5==4)||(a5==5))))&&!(a14==1)))&&(a1==13))&&(a28==1)))&&(a19==3)))){ + a21 = 10; + a5 = 6; + a11 = 1; + a1 = 14; + a12 = 1; + a16 = 10; + a24 = 0; + return 21; + } else if(((!(a20==1)&&(!(a24==1)&&((((((((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10))))&&(input==1))&&!(a14==1))&&(a16==10))&&(a17==2))&&!(a26==1))))&&((a14==1)||(((((a21==12)&&((a6==1)||(a0==1)))&&(a6==1))&&(a19==5))&&(a1==12))))){ + a5 = 5; + a16 = 7; + a13 = 0; + a9 = 7; + a1 = 14; + a6 = 0; + a20 = 1; + a19 = 1; + a21 = 10; + a12 = 0; + return -1; + } else if((((a19==2)&&((a16==7)&&(((a28==1)&&((a9==9)&&((((a5==4)||(a5==5))&&(input==4))&&(a23==1))))&&(a17==2))))&&(((a12==1)&&((((a3==1)&&((a21==10)&&((a28==1)&&(a1==13))))&&!(a4==1))||(a24==1)))&&(a20==1)))){ + a1 = 12; + a7 = 0; + a19 = 1; + a8 = 0; + a9 = 7; + a5 = 4; + a3 = 1; + return -1; + } else if(((((a13==1)&&(((a23==1)&&((a16==10)&&((((a20==1)&&(a11==1))&&(a13==1))&&(a17==2))))&&(a5==5)))||(a18==1))&&((a13==1)&&((a19==2)&&(((((input==1)&&(a9==10))&&(a21==11))&&(a1==12))&&!(a8==1)))))){ + a6 = 1; + a19 = 4; + a28 = 1; + a9 = 8; + return 21; + } else if((((((a2==1)&&(((a19==2)&&(input==3))&&!(a4==1)))&&(a16==10))&&(a1==13))&&((a21==10)&&((a2==1)&&((a9==8)&&(!(a20==1)&&(((a17==2)&&(((a5==5)&&((a11==1)&&(a12==1)))||(a18==1)))||(a4==1)))))))){ + if((a12==1)){ + a4 = 1; + a16 = 7; + a29 = 0; + a2 = 0; + a5 = 6; + a19 = 1; + a20 = 1; + }else{ + a1 = 14; + a20 = 1; + a9 = 7; + a6 = 0; + a5 = 6; + a19 = 3; + a11 = 0; + a18 = 1; + a16 = 11; + } + return 25; + } else if(((((a16==8)&&(!(a24==1)&&((((((a5==5)||(a5==6))&&(input==5))&&!(a18==1))&&!(a0==1))&&(a23==1))))&&(a20==1))&&((a19==4)&&((((!(a14==1)&&((a17==2)&&((a21==11)&&(a28==1))))||!(a12==1))&&(a9==7))&&(a1==14))))){ + a19 = 2; + a26 = 0; + a16 = 10; + a18 = 0; + a28 = 1; + a5 = 4; + return 22; + } else if((((a11==1)&&(((!(a0==1)&&(((a28==1)||!(a2==1))&&(a19==5)))&&(a16==10))&&!(a8==1)))&&((((a17==2)&&(((a21==11)&&((a13==1)&&(((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))&&(input==4))))&&(a1==13)))&&(a20==1))&&!(a18==1)))){ + a24 = 0; + a5 = 4; + a1 = 12; + a18 = 0; + a3 = 1; + a16 = 8; + a9 = 8; + a21 = 12; + return 25; + } else if((((a21==12)&&(((!(a27==1)&&((!(a24==1)&&((a19==2)&&((a2==1)&&(a28==1))))&&(a16==10)))&&!(a4==1))&&(a1==14)))&&(!(a27==1)&&(!(a7==1)&&((a20==1)&&((a17==2)&&((input==3)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))))))))){ + a19 = 1; + a23 = 1; + a9 = 7; + a2 = 1; + a5 = 4; + a21 = 10; + a16 = 7; + a1 = 12; + return -1; + } else if((((a16==11)&&(((a11==1)&&((a19==2)&&(!(a27==1)&&((a11==1)&&(a12==1)))))||!(a23==1)))&&(!(a7==1)&&(((((a17==2)&&((a20==1)&&((a21==12)&&(((a5==5)||(a5==6))&&(input==6)))))&&(a12==1))&&(a1==13))&&(a9==8))))){ + a16 = 7; + a19 = 1; + a23 = 1; + a21 = 10; + a13 = 1; + a1 = 12; + a5 = 4; + a6 = 1; + a9 = 7; + return -1; + } else if((((a17==2)&&((((a2==1)&&((a20==1)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&!(a8==1))&&!(a24==1))))&&(a9==10))&&(a19==2)))&&(((!(a24==1)&&((((a13==1)&&!(a27==1))&&(a2==1))&&(a21==12)))&&(a16==10))&&(a1==12)))){ + a21 = 10; + a2 = 1; + a9 = 9; + a5 = 4; + a16 = 7; + a28 = 1; + a1 = 13; + a26 = 0; + return 25; + } else if((((a20==1)&&(((a28==1)&&(((a16==9)&&(((a5==4)||(a5==5))&&(input==6)))&&!(a4==1)))&&(a17==2)))&&((a1==14)&&(((a9==11)&&((((((a11==1)&&!(a18==1))||!(a13==1))&&!(a14==1))&&!(a8==1))&&(a21==11)))&&(a19==2))))){ + a19 = 1; + a3 = 1; + a16 = 10; + a21 = 10; + a1 = 12; + a5 = 6; + a9 = 10; + a14 = 0; + a23 = 1; + return 21; + } else if(((!(a24==1)&&(!(a0==1)&&((a3==1)&&((a11==1)&&((((((a5==5)&&((input==5)&&(a17==2)))&&(a21==10))&&(a19==5))&&!(a20==1))&&(a9==11))))))&&((a16==7)&&(((a1==13)&&(!(a0==1)&&(a11==1)))||!(a13==1))))){ + a5 = 4; + a23 = 1; + a19 = 1; + a8 = 0; + a1 = 12; + a9 = 7; + a20 = 1; + a11 = 1; + return -1; + } else if((((((a0==1)||((a17==2)&&(((a11==1)&&(a9==7))&&(a19==4))))&&!(a18==1))&&(a16==7))&&(((a1==14)&&((a13==1)&&(((a11==1)&&((a20==1)&&((a21==11)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))))&&!(a14==1))))&&!(a24==1)))){ + a11 = 1; + a5 = 6; + a16 = 8; + a13 = 1; + a9 = 11; + a14 = 0; + a1 = 13; + return 26; + } else if(((!(a11==1)||((!(a27==1)&&((a13==1)&&((a19==3)&&((a12==1)&&(a2==1)))))&&(a16==10)))&&((a20==1)&&(((a28==1)&&(((a1==13)&&((a9==8)&&((a5==6)&&((a17==2)&&(input==1)))))&&(a21==11)))&&(a28==1))))){ + a19 = 2; + a16 = 7; + a5 = 4; + a11 = 1; + a21 = 10; + a24 = 0; + a9 = 9; + a0 = 0; + return 25; + } else if((((!(a20==1)&&(a28==1))&&(a16==10))&&((a21==10)&&((((a19==2)&&(!(a7==1)&&(!(a27==1)&&((!(a0==1)&&((((((a9==11)&&((a5==5)&&(a1==12)))||(((a5==6)&&(a1==12))&&(a9==11)))||((a9==7)&&((a1==13)&&(a5==4))))&&(input==5))&&(a11==1)))&&(a11==1)))))&&(a28==1))&&(a17==2))))){ + if((a5==4)){ + a5 = 4; + a16 = 7; + a8 = 1; + a20 = 1; + a9 = 10; + a19 = 1; + a1 = 14; + a6 = 0; + }else{ + a5 = 6; + a10 = 1; + a20 = 1; + a24 = 1; + a3 = 0; + a1 = 12; + a16 = 7; + a9 = 10; + } + return -1; + } else if((((((a21==10)&&((((input==5)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&(a12==1))&&!(a7==1)))&&!(a26==1))&&(a20==1))&&(((a19==2)&&((a1==14)&&((a16==8)&&((a2==1)&&((a17==2)&&((a6==1)&&(a2==1)))))))||(a18==1)))){ + if((a22==1)){ + a5 = 4; + a8 = 0; + a1 = 13; + a24 = 0; + a23 = 1; + a20 = 0; + a16 = 7; + a19 = 5; + a9 = 11; + }else{ + a2 = 1; + a16 = 7; + a9 = 7; + a20 = 0; + a19 = 4; + a23 = 1; + a5 = 4; + a13 = 1; + a21 = 11; + } + return 22; + } else if((((a17==2)&&((a19==2)&&((a6==1)||(a8==1))))&&(((!(a18==1)&&((((((a2==1)&&(((input==5)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5))))&&(a16==11)))&&!(a24==1))&&(a23==1))&&!(a8==1))&&(a1==12)))&&(a20==1))&&(a21==10)))){ + a9 = 7; + a7 = 0; + a6 = 1; + a19 = 1; + a5 = 4; + a8 = 0; + a16 = 7; + return -1; + } else if(((((a2==1)&&((a2==1)&&((a1==13)&&((a17==2)&&((input==6)&&(((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))))))))&&!(a7==1))&&(!(a2==1)||((!(a18==1)&&(((((a12==1)&&(a11==1))&&(a21==11))&&(a20==1))&&(a19==4)))&&(a16==10))))){ + a0 = 0; + a5 = 4; + a9 = 9; + a6 = 1; + a19 = 2; + a21 = 10; + a16 = 7; + a28 = 1; + return 25; + } else if((((a23==1)&&((!(a24==1)&&(((a26==1)||((a2==1)&&(a5==5)))&&(a17==2)))||!(a13==1)))&&((a16==7)&&(!(a24==1)&&(!(a14==1)&&(((((a9==11)&&(!(a20==1)&&(input==5)))&&(a21==11))&&(a1==12))&&(a19==4))))))){ + a21 = 10; + a24 = 0; + a27 = 0; + a14 = 0; + a19 = 1; + a20 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if((((!(a14==1)&&(((a2==1)&&(a19==5))&&(a1==14)))&&(a11==1))&&((((!(a0==1)&&((((a21==11)&&(((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==4))&&!(a27==1)))&&(a17==2))&&!(a20==1)))&&!(a4==1))&&(a6==1))&&(a16==9)))){ + a19 = 1; + a9 = 7; + a16 = 7; + a5 = 6; + a26 = 1; + a1 = 12; + a7 = 1; + a20 = 1; + a11 = 0; + a21 = 10; + return 21; + } else if(((((a1==14)&&((a17==2)&&((a20==1)&&((a12==1)&&(((a5==4)||(a5==5))&&(input==3))))))&&(a6==1))&&((!(a12==1)||(((a16==9)&&(((a7==1)||(((a19==1)&&(a2==1))&&(a21==11)))&&!(a27==1)))&&(a9==8)))||!(a23==1)))){ + a5 = 4; + a1 = 12; + a28 = 1; + a9 = 7; + a13 = 1; + a16 = 7; + a18 = 0; + a21 = 10; + return -1; + } else if((((a16==10)&&(((!(a6==1)||((a23==1)&&!(a0==1)))&&(a12==1))&&(a21==10)))&&(!(a20==1)&&((a1==12)&&((((a11==1)&&(!(a14==1)&&((((input==6)&&(a17==2))&&(a23==1))&&(a19==1))))&&(a5==6))&&(a9==9)))))){ + a10 = 0; + a20 = 1; + a16 = 11; + a8 = 1; + a9 = 11; + a21 = 11; + a1 = 14; + a24 = 1; + a19 = 5; + return -1; + } else if((((((a0==1)&&((((a17==2)&&(a12==1))&&(a24==1))&&(a19==5)))&&(a9==7))&&(a7==1))&&((a21==11)&&((!(a12==1)&&((a16==7)&&((a1==14)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a27==1))&&(a26==1)))))&&!(a20==1))))){ + a19 = 1; + a5 = 5; + a9 = 10; + a21 = 10; + a15 = 1; + a20 = 1; + a1 = 12; + a14 = 1; + return 21; + } else if(((((((((((((a1==12)&&(a5==6))&&(a9==11))||(((a1==13)&&(a5==4))&&(a9==7)))||(((a1==13)&&(a5==5))&&(a9==7)))&&(input==4))&&!(a8==1))&&!(a7==1))&&(a21==11))&&!(a20==1))&&!(a18==1))&&(!(a27==1)&&((((((a16==7)&&(a3==1))&&(a17==2))&&(a19==4))&&(a23==1))&&(a13==1))))){ + a9 = 7; + a23 = 1; + a20 = 1; + a5 = 4; + a1 = 12; + a21 = 10; + a14 = 0; + a18 = 0; + a19 = 1; + return -1; + } else if((((a0==1)&&((!(a13==1)&&(!(a11==1)&&((a28==1)&&(a1==12))))&&(a8==1)))&&((a17==2)&&((((a20==1)&&(!(a13==1)&&((((input==4)&&((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a5==4)&&(a9==8))))&&(a21==11))&&!(a13==1))))&&(a16==10))&&(a19==4))))){ + a16 = 7; + a7 = 1; + a9 = 10; + a5 = 6; + a3 = 0; + a19 = 1; + a21 = 10; + return -1; + } else if(((((((a17==2)&&((a3==1)&&((!(a8==1)&&((input==3)&&((a5==4)||(a5==5))))&&(a12==1))))&&(a3==1))&&(a12==1))&&(a20==1))&&(!(a7==1)&&((a21==12)&&(((a9==9)&&(((a16==9)&&(a23==1))&&(a19==5)))&&(a1==12)))))){ + a16 = 7; + a8 = 0; + a9 = 7; + a21 = 10; + a19 = 1; + a5 = 4; + a2 = 1; + a7 = 0; + return -1; + } else if(((((a21==10)&&((a13==1)&&(((a1==13)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==1)))&&(a11==1))))&&(a16==8))&&((((a23==1)&&((a6==1)&&((a18==1)||((a20==1)&&(!(a4==1)&&(a23==1))))))&&(a19==5))&&(a17==2)))){ + a24 = 0; + a9 = 9; + a0 = 0; + a18 = 0; + a5 = 6; + return 26; + } else if(((!(a20==1)&&(((a18==1)||(((a19==2)&&(((a16==7)&&(a3==1))&&!(a0==1)))&&(a21==10)))||(a18==1)))&&((a9==9)&&(((a13==1)&&((a6==1)&&(((((a5==5)||(a5==6))&&(input==5))&&(a12==1))&&(a1==13))))&&(a17==2))))){ + a20 = 1; + a5 = 4; + a19 = 1; + a8 = 0; + a9 = 7; + a1 = 12; + a12 = 1; + return -1; + } else if(((((a1==14)&&((((!(a18==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a17==2)))&&(a19==4))&&!(a7==1))&&(a16==10)))&&(a9==7))&&((a20==1)&&((a21==11)&&((a4==1)||((!(a24==1)&&(!(a12==1)||(a6==1)))&&!(a0==1))))))){ + a9 = 8; + a16 = 9; + a1 = 13; + a6 = 1; + a5 = 6; + return -1; + } else if(((((a19==5)&&((!(a7==1)&&((((a5==4)||(a5==5))&&(input==3))&&!(a24==1)))&&(a1==13)))&&(a6==1))&&((((a9==10)&&((a3==1)&&(((a21==12)&&((!(a7==1)&&(a11==1))&&!(a20==1)))&&(a17==2))))&&(a16==10))&&(a28==1)))){ + a20 = 1; + a23 = 0; + a15 = 0; + a16 = 7; + a5 = 6; + a1 = 14; + a19 = 1; + a28 = 0; + a9 = 11; + a21 = 10; + return -1; + } else if((((((a17==2)&&((a23==1)&&((((a0==1)||((a21==12)&&(a3==1)))&&(a3==1))&&(a16==11))))&&(a1==13))&&(a19==1))&&((a3==1)&&((a12==1)&&(!(a8==1)&&((a20==1)&&((((a5==5)||(a5==6))&&(input==4))&&(a9==10)))))))){ + a23 = 1; + a9 = 7; + a11 = 1; + a5 = 4; + a1 = 12; + a21 = 10; + a16 = 7; + return -1; + } else if(((((a1==14)&&((a21==10)&&((!(a14==1)&&((input==1)&&((a5==4)||(a5==5))))&&(a6==1))))&&(a16==9))&&(!(a20==1)&&((((((a2==1)&&(((a19==2)&&(a12==1))||(a8==1)))&&!(a0==1))&&(a12==1))&&(a9==7))&&(a17==2))))){ + if((a4==1)){ + a5 = 5; + a19 = 4; + a16 = 8; + a21 = 11; + a24 = 1; + a1 = 12; + a28 = 0; + a27 = 1; + }else{ + a9 = 9; + a19 = 1; + a0 = 1; + a16 = 7; + a20 = 1; + a5 = 5; + a21 = 12; + a25 = 0; + } + return -1; + } else if((((((a16==9)&&((a17==2)&&((a9==7)&&(((a21==11)&&(input==6))&&(a20==1)))))&&!(a7==1))&&(a19==2))&&(!(a24==1)&&(!(a12==1)||((!(a18==1)&&((a5==6)&&((a1==13)&&((a2==1)&&(a11==1)))))&&(a6==1)))))){ + a1 = 12; + a5 = 4; + a12 = 1; + a19 = 1; + a7 = 0; + a11 = 1; + a16 = 7; + a21 = 10; + return -1; + } else if((((a28==1)&&((((a23==1)&&((a6==1)&&((input==4)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5))))))&&(a1==13))&&(a23==1)))&&((a23==1)&&((a17==2)&&((((((a3==1)&&!(a20==1))&&!(a0==1))&&(a21==11))&&(a19==5))&&(a16==8)))))){ + if((a7==1)){ + a29 = 1; + a5 = 4; + a19 = 2; + a20 = 1; + a9 = 11; + a25 = 0; + }else{ + a19 = 4; + a9 = 9; + a16 = 11; + a5 = 6; + a21 = 10; + a10 = 0; + a28 = 0; + a0 = 1; + } + return -1; + } else if(((((a20==1)&&((a21==10)&&((a12==1)&&((!(a24==1)&&(((a11==1)||!(a6==1))||(a27==1)))&&(a9==7)))))&&(a17==2))&&(((a16==9)&&((a19==5)&&((a12==1)&&((((a5==5)||(a5==6))&&(input==4))&&!(a18==1)))))&&(a1==12)))){ + a11 = 1; + a4 = 0; + a5 = 4; + a16 = 7; + a24 = 0; + a19 = 1; + return -1; + } else if(((((((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==4))&&(a28==1))&&(a16==7))&&(a21==10))&&((a17==2)&&(!(a2==1)||(((a12==1)&&(!(a12==1)||(((!(a20==1)&&((a2==1)&&(a6==1)))&&(a1==13))&&(a19==4))))||!(a6==1)))))){ + a6 = 1; + a20 = 1; + a5 = 4; + a1 = 12; + a9 = 10; + a0 = 0; + a16 = 10; + a19 = 5; + a23 = 1; + return -1; + } else if((((a16==10)&&(!(a20==1)&&(!(a24==1)&&((!(a18==1)&&(!(a14==1)&&(((a23==1)&&((input==6)&&(((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))))&&(a19==3))))&&(a21==11)))))&&((a4==1)||((a17==2)&&(((a12==1)&&(a11==1))&&(a1==12)))))){ + a25 = 0; + a19 = 2; + a21 = 10; + a10 = 1; + a14 = 1; + a16 = 7; + a20 = 1; + a9 = 7; + a5 = 4; + return 26; + } else if((((a9==11)&&(((a14==1)&&(!(a6==1)&&((a19==3)&&(((((a4==1)&&((input==3)&&(a20==1)))&&(a24==1))&&!(a2==1))&&!(a11==1)))))&&(a5==4)))&&(((a21==11)&&((a16==8)&&((a28==1)&&(a17==2))))&&(a1==13)))){ + a5 = 6; + a1 = 14; + a19 = 1; + a25 = 1; + a16 = 7; + a21 = 10; + a3 = 0; + a9 = 9; + return 23; + } else if(((!(a27==1)&&((a1==12)&&((a11==1)&&(((a28==1)&&((!(a18==1)&&((a9==7)&&(((a20==1)&&(input==1))&&(a16==9))))&&!(a4==1)))&&(a6==1)))))&&((a17==2)&&((a21==10)&&(((a13==1)&&(a19==1))&&(a5==6)))))){ + a0 = 0; + a13 = 1; + a5 = 4; + a16 = 7; + a18 = 0; + return -1; + } else if(((((((((a0==1)||(a3==1))&&(a1==13))&&(a16==8))||!(a3==1))&&(a12==1))&&(a11==1))&&(!(a14==1)&&(((a17==2)&&((!(a20==1)&&(!(a7==1)&&((((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10))))&&(input==3))))&&(a21==11)))&&(a19==3))))){ + a9 = 7; + a19 = 5; + a7 = 0; + a20 = 1; + a6 = 1; + a26 = 0; + a16 = 9; + a21 = 10; + a5 = 4; + a1 = 14; + return 21; + } else if((((a3==1)&&(((a20==1)&&(((a16==8)&&((a5==4)&&((a19==2)&&((input==6)&&(a17==2)))))&&(a23==1)))&&(a13==1)))&&(((a1==14)&&(((a21==11)&&(!(a23==1)||((a6==1)&&(a9==9))))&&(a2==1)))||(a4==1)))){ + a7 = 0; + a5 = 6; + a21 = 10; + a16 = 10; + a6 = 1; + a19 = 4; + a12 = 1; + a9 = 10; + return 26; + } else if(((((((a3==1)&&((!(a26==1)&&(((a5==5)||(a5==6))&&(input==3)))&&!(a18==1)))&&(a17==2))&&(a9==7))&&(a19==3))&&((((a20==1)&&((a0==1)||(((a21==11)&&((a12==1)&&(a1==12)))&&!(a18==1))))&&(a11==1))&&(a16==11)))){ + a21 = 10; + a3 = 1; + a16 = 7; + a5 = 4; + a19 = 1; + a23 = 1; + return -1; + } else if((((((((a6==1)&&(a2==1))&&(a1==14))&&(a19==4))||(a18==1))&&(a12==1))&&((!(a20==1)&&(!(a14==1)&&((a16==9)&&(((a17==2)&&(!(a27==1)&&((input==6)&&(((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))))))&&(a11==1)))))&&(a21==10)))){ + if((a18==1)){ + a9 = 7; + a3 = 0; + a19 = 2; + a8 = 1; + a5 = 6; + a10 = 0; + a20 = 1; + a16 = 7; + a1 = 12; + }else{ + a19 = 2; + a25 = 1; + a9 = 7; + a5 = 4; + a12 = 0; + a21 = 12; + a14 = 1; + a20 = 1; + } + return 25; + } else if((((a20==1)&&((((a9==8)&&(!(a23==1)||((a2==1)||!(a11==1))))&&(a17==2))&&(a19==1)))&&((a1==12)&&(((!(a26==1)&&((a23==1)&&((a2==1)&&(((a21==12)&&(input==4))&&(a16==11)))))&&!(a24==1))&&(a5==6))))){ + a13 = 1; + a28 = 1; + a19 = 3; + a9 = 10; + a2 = 1; + a1 = 13; + return 22; + } else if(((((a1==14)&&(((!(a7==1)&&((a11==1)&&((a17==2)&&(input==3))))&&(a12==1))&&(a21==12)))&&(a20==1))&&(((!(a26==1)&&((a19==2)&&((a16==8)&&((a23==1)&&((a23==1)&&(a28==1))))))&&(a9==11))&&(a5==5)))){ + a16 = 7; + a12 = 1; + a9 = 9; + a3 = 1; + a5 = 4; + a26 = 0; + a1 = 13; + a21 = 10; + return -1; + } else if(((((a20==1)&&(((a1==14)&&((a28==1)&&((a23==1)||!(a28==1))))&&!(a8==1)))&&(a19==5))&&((a16==7)&&(((a11==1)&&((((a12==1)&&((a17==2)&&((a21==11)&&(input==1))))&&(a11==1))&&(a9==11)))&&(a5==5))))){ + a3 = 1; + a0 = 0; + a14 = 0; + a16 = 8; + a19 = 3; + a9 = 9; + a21 = 12; + return 23; + } else if((((a9==8)&&((!(a12==1)||((a27==1)||((a16==10)&&(!(a7==1)&&(((a2==1)&&(a5==4))&&!(a26==1))))))&&(a20==1)))&&((a17==2)&&((a19==3)&&((a23==1)&&(!(a24==1)&&((a1==14)&&((a21==11)&&(input==3))))))))){ + a14 = 0; + a16 = 7; + a19 = 1; + a9 = 7; + a21 = 10; + a4 = 0; + a11 = 1; + a1 = 12; + return -1; + } else if(((((a19==4)&&((((a17==2)&&(((a23==1)&&(((a11==1)&&((input==4)&&((((a5==6)&&(a1==12))&&(a9==11))||((a9==7)&&((a1==13)&&(a5==4))))))&&(a20==1)))&&!(a24==1)))&&!(a14==1))&&(a23==1)))&&(a21==11))&&((a16==9)&&((a6==1)&&(a13==1))))){ + a19 = 1; + a9 = 7; + a5 = 4; + a11 = 1; + a16 = 7; + a14 = 0; + a21 = 10; + a1 = 12; + a23 = 1; + return -1; + } else if((((a9==7)&&((((a21==12)&&((((a1==14)&&(!(a0==1)&&(a12==1)))&&(a2==1))&&!(a24==1)))&&!(a27==1))&&(a20==1)))&&((a17==2)&&((a12==1)&&(((a19==4)&&(((input==4)&&(a16==7))&&!(a8==1)))&&(a5==5)))))){ + a13 = 1; + a1 = 12; + a19 = 1; + a5 = 4; + a18 = 0; + a11 = 1; + a21 = 10; + return -1; + } else if((((a16==7)&&(((a9==9)&&(((a19==2)&&(!(a7==1)&&((a28==1)&&((a17==2)&&(input==6)))))&&!(a14==1)))&&(a5==5)))&&((a1==14)&&((a21==12)&&(((a12==1)&&(((a11==1)&&(a20==1))||(a26==1)))&&!(a7==1)))))){ + a7 = 0; + a9 = 10; + a12 = 1; + a21 = 10; + a16 = 9; + a6 = 1; + a19 = 3; + return 23; + } else if((((!(a2==1)||(((((((a9==10)&&(!(a14==1)&&(a3==1)))||(a8==1))&&(a6==1))&&(a20==1))&&!(a18==1))&&(a3==1)))&&(a17==2))&&(((((a19==2)&&((a16==8)&&(input==5)))&&(a21==12))&&(a5==4))&&(a1==12)))){ + a9 = 7; + a18 = 0; + a28 = 1; + a19 = 1; + a16 = 7; + a13 = 1; + a21 = 10; + return -1; + } else if((((a1==13)&&(((!(a8==1)&&((!(a8==1)&&((((((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(input==5))&&(a11==1))&&(a21==12)))&&!(a27==1)))&&(a20==1))&&(a17==2)))&&(!(a0==1)&&((((a11==1)||!(a3==1))&&(a16==7))&&(a19==3))))){ + a9 = 10; + a19 = 5; + a1 = 12; + a0 = 0; + a8 = 0; + a5 = 4; + a3 = 1; + a16 = 9; + a21 = 10; + return 26; + } else if(((((a6==1)&&(((a20==1)&&((!(a7==1)&&(a6==1))||!(a12==1)))&&(a21==11)))&&(a1==14))&&((a17==2)&&((a28==1)&&(((a16==10)&&(!(a8==1)&&(!(a7==1)&&((input==6)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))))))&&(a19==5)))))){ + a5 = 4; + a16 = 7; + a0 = 0; + a19 = 2; + a9 = 9; + a6 = 1; + a1 = 13; + a8 = 0; + a21 = 10; + return -1; + } else if(((((a19==4)&&(!(a11==1)||((((a4==1)||(a13==1))&&(a1==14))&&!(a20==1))))&&(a16==9))&&(((!(a27==1)&&((a17==2)&&(((a28==1)&&((input==1)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5)))))&&(a11==1))))&&!(a18==1))&&(a21==11)))){ + if((a1==13)){ + a19 = 3; + a9 = 8; + a11 = 0; + a20 = 1; + a1 = 13; + a5 = 6; + a16 = 7; + a25 = 1; + a21 = 10; + a24 = 1; + }else{ + a9 = 10; + a5 = 5; + a20 = 1; + a24 = 1; + a21 = 10; + a19 = 1; + a29 = 0; + a16 = 7; + } + return 21; + } else if((((a23==1)&&((a28==1)&&((a21==12)&&((((a1==14)&&((a9==8)&&(((a19==3)&&(input==6))&&(a16==9))))&&(a17==2))&&(a20==1)))))&&(((((a6==1)&&((a13==1)||!(a13==1)))&&(a12==1))&&(a5==4))||(a14==1)))){ + a19 = 1; + a9 = 7; + a21 = 10; + a16 = 7; + a6 = 1; + a12 = 1; + a7 = 0; + a1 = 12; + return -1; + } else if(((((((a5==4)&&((a16==9)&&((input==4)&&(a17==2))))&&!(a4==1))&&!(a8==1))&&(a2==1))&&((a9==11)&&((a21==12)&&((((a24==1)||((a20==1)&&(((a19==4)&&(a28==1))||!(a12==1))))||!(a23==1))&&(a1==12)))))){ + a6 = 1; + a19 = 1; + a16 = 7; + a9 = 7; + a0 = 0; + a14 = 0; + a21 = 10; + return -1; + } else if(((((a9==7)&&(((a19==5)&&((((a17==2)&&((a1==13)&&(input==1)))&&(a5==5))&&(a13==1)))&&(a6==1)))&&!(a14==1))&&(((((((a23==1)&&(a21==12))&&(a20==1))||(a26==1))||(a24==1))&&(a16==10))||(a14==1)))){ + a7 = 0; + a19 = 4; + a21 = 10; + a18 = 0; + a9 = 8; + a3 = 1; + a5 = 4; + return -1; + } else if((((a1==13)&&(((a19==4)&&((((a6==1)||!(a23==1))&&(a16==9))&&(a20==1)))&&(a9==9)))&&((a21==10)&&(((((a17==2)&&(((((a5==4)||(a5==5))&&(input==4))&&!(a18==1))&&(a12==1)))&&!(a26==1))&&(a6==1))&&(a13==1))))){ + a9 = 7; + a16 = 7; + a11 = 1; + a19 = 1; + a7 = 0; + a13 = 1; + a5 = 4; + a1 = 12; + return -1; + } else if(((!(a3==1)&&(((a17==2)&&(((a11==1)&&(a21==12))&&(a1==14)))&&!(a3==1)))&&((a0==1)&&((a18==1)&&((!(a23==1)&&((a20==1)&&(!(a3==1)&&((a19==2)&&((input==6)&&((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9))))))))&&(a16==11)))))){ + a2 = 0; + a5 = 4; + a9 = 8; + a21 = 11; + a27 = 1; + a16 = 9; + a1 = 13; + return -1; + } else if(((!(a7==1)&&(!(a24==1)&&(!(a4==1)&&((((((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11)))&&(input==5))&&(a21==11))&&!(a20==1))&&(a3==1)))))&&(!(a27==1)&&(((a1==14)&&(((a16==9)&&((a17==2)&&(a28==1)))&&(a19==3)))&&(a6==1))))){ + if((a24==1)){ + a8 = 1; + a28 = 0; + a20 = 1; + a9 = 8; + a24 = 1; + a21 = 10; + a1 = 12; + a16 = 7; + a5 = 4; + a19 = 1; + }else{ + a9 = 9; + a5 = 5; + a13 = 0; + a19 = 1; + a20 = 1; + a23 = 0; + a7 = 1; + a21 = 10; + a1 = 13; + } + return -1; + } else if((((a17==2)&&((a21==10)&&((((a16==11)&&(a3==1))||(a24==1))||(a18==1))))&&((((a28==1)&&(((!(a4==1)&&(((input==4)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(a19==3)))&&(a20==1))&&(a6==1)))&&(a3==1))&&(a1==14)))){ + a9 = 7; + a1 = 12; + a16 = 7; + a19 = 1; + a8 = 0; + a26 = 0; + a3 = 1; + a5 = 4; + return -1; + } else if((((a17==2)&&((((((a21==12)&&((a20==1)&&(a11==1)))||!(a23==1))&&(a16==11))&&(a1==13))||(a7==1)))&&(((((a23==1)&&(!(a18==1)&&(((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9)))&&(input==1))))&&(a19==1))&&!(a8==1))&&!(a18==1)))){ + a27 = 0; + a1 = 12; + a9 = 7; + a5 = 4; + a28 = 1; + a14 = 0; + a16 = 7; + a21 = 10; + return -1; + } else if(((((((((a21==11)&&((a19==5)&&((((a5==5)||(a5==6))&&(input==1))&&(a23==1))))&&!(a20==1))&&!(a26==1))&&(a23==1))&&(a1==13))&&(a17==2))&&(((a9==11)&&(((a12==1)&&((a6==1)&&(a2==1)))||!(a23==1)))&&(a16==7)))){ + a11 = 1; + a19 = 1; + a24 = 0; + a20 = 1; + a28 = 1; + a5 = 4; + a21 = 10; + a1 = 12; + a9 = 7; + return -1; + } else if(((((a26==1)||((a12==1)&&((a20==1)&&((a23==1)||(a26==1)))))&&(a16==9))&&((((a21==11)&&((((((a12==1)&&(((a5==5)||(a5==6))&&(input==4)))&&(a19==5))&&(a3==1))&&(a1==12))&&!(a8==1)))&&(a17==2))&&(a9==10)))){ + a9 = 7; + a16 = 7; + a21 = 10; + a5 = 4; + a19 = 1; + a6 = 1; + a2 = 1; + return -1; + } else if((((!(a7==1)&&((((a3==1)&&((a21==10)&&(((input==5)&&((a5==4)||(a5==5)))&&(a12==1))))&&(a16==9))&&(a20==1)))&&(a17==2))&&((a12==1)&&((((a19==4)&&(((a28==1)&&!(a7==1))&&(a1==12)))&&!(a27==1))&&(a9==9))))){ + a9 = 7; + a18 = 0; + a16 = 10; + a3 = 1; + a5 = 4; + a19 = 1; + a24 = 0; + return 21; + } else if((((a17==2)&&((a1==14)&&((a3==1)&&((!(a24==1)&&((a13==1)&&((((a9==11)&&((input==1)&&((a5==5)||(a5==6))))&&!(a0==1))&&!(a20==1))))&&(a21==10)))))&&(((a16==8)&&(!(a7==1)&&((a27==1)||(a12==1))))&&(a19==1)))){ + if((a3==1)){ + a9 = 10; + a14 = 0; + a6 = 1; + a19 = 4; + a5 = 5; + a1 = 13; + a23 = 1; + }else{ + a11 = 1; + a24 = 0; + a21 = 12; + a5 = 6; + a23 = 1; + a16 = 7; + a20 = 1; + } + return 22; + } else if(((((!(a28==1)&&((!(a20==1)&&(((a5==4)&&(input==3))&&(a19==1)))&&(a21==11)))&&(a24==1))&&!(a11==1))&&((((a8==1)&&((a16==8)&&((a7==1)&&(!(a2==1)&&((a23==1)&&(a1==12))))))&&(a9==11))&&(a17==2)))){ + a5 = 6; + a4 = 1; + a21 = 12; + a16 = 9; + a9 = 10; + a14 = 1; + a10 = 1; + a19 = 5; + a20 = 1; + a1 = 14; + return 25; + } else if(((!(a6==1)||(((!(a20==1)&&(!(a12==1)||((a13==1)||(a7==1))))||!(a12==1))||!(a6==1)))&&((a16==9)&&((a19==3)&&((a1==13)&&((((a21==12)&&((input==3)&&(((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7))))))&&(a17==2))&&(a2==1))))))){ + if((a2==1)){ + a16 = 7; + a5 = 5; + a9 = 7; + a4 = 1; + a29 = 1; + a21 = 10; + a19 = 2; + a3 = 0; + a20 = 1; + a1 = 12; + }else{ + a6 = 0; + a16 = 7; + a20 = 1; + a21 = 10; + a19 = 2; + a5 = 4; + a24 = 1; + a1 = 12; + a9 = 10; + } + return -1; + } else if(((((a5==5)&&((!(a3==1)||(((a3==1)&&!(a20==1))&&(a1==13)))&&(a21==10)))&&(a19==4))&&(((a6==1)&&(((a2==1)&&(!(a24==1)&&((a17==2)&&(!(a26==1)&&((input==1)&&(a9==9))))))&&(a12==1)))&&(a16==10)))){ + if((a27==1)){ + a25 = 1; + a20 = 1; + a13 = 0; + a5 = 6; + a9 = 10; + a19 = 1; + a16 = 7; + a28 = 0; + }else{ + a19 = 2; + a1 = 12; + a20 = 1; + a12 = 0; + a5 = 6; + a9 = 10; + a26 = 1; + a16 = 7; + a22 = 1; + } + return -1; + } else if((((((a17==2)&&(((a12==1)&&!(a18==1))&&(a1==12)))&&!(a7==1))&&(a19==1))&&((((a16==9)&&((a20==1)&&(((!(a24==1)&&((((a5==4)||(a5==5))&&(input==1))&&!(a26==1)))&&(a28==1))&&(a11==1))))&&(a21==11))&&(a9==9)))){ + a21 = 10; + a9 = 7; + a28 = 1; + a5 = 6; + a12 = 1; + a26 = 0; + a1 = 14; + return 25; + } else if((((!(a12==1)||(((a12==1)||(a7==1))&&(a19==3)))&&(a5==6))&&((a9==10)&&((a16==9)&&((a17==2)&&((!(a18==1)&&(!(a26==1)&&((a1==12)&&((a21==10)&&((a6==1)&&(!(a20==1)&&(input==3)))))))&&!(a18==1))))))){ + a1 = 14; + a19 = 5; + a21 = 11; + a5 = 4; + a16 = 10; + a14 = 1; + a4 = 1; + a29 = 1; + return -1; + } else if((((((a2==1)&&(((((!(a14==1)&&((input==1)&&(a9==10)))&&(a16==7))&&(a2==1))&&(a19==5))&&(a20==1)))&&(a17==2))&&(a6==1))&&(((a3==1)&&((a1==12)&&(((a12==1)&&(a21==12))&&(a5==4))))||(a24==1)))){ + if((a27==1)){ + a21 = 11; + a20 = 0; + a19 = 1; + a23 = 1; + a3 = 1; + a1 = 13; + a11 = 1; + a9 = 9; + }else{ + a21 = 11; + a13 = 1; + a7 = 0; + a4 = 0; + a16 = 9; + a19 = 4; + } + return 26; + } else if((((!(a27==1)&&(((((a1==12)&&((a17==2)&&(input==3)))&&!(a0==1))&&(a16==7))&&!(a0==1)))&&(a19==1))&&((a5==6)&&((a28==1)&&((((a9==11)&&((a21==12)&&(!(a11==1)||(a23==1))))||(a14==1))&&!(a20==1)))))){ + a5 = 4; + a3 = 1; + a26 = 0; + a21 = 10; + a20 = 1; + a18 = 0; + a9 = 7; + return -1; + } else if((((a21==10)&&(((a1==14)&&(((a23==1)&&(!(a4==1)&&((!(a8==1)&&(((a5==4)&&((a19==4)&&(input==3)))&&(a12==1)))&&!(a4==1))))&&(a17==2)))&&(a16==9)))&&((a9==7)&&(!(a20==1)&&((a13==1)||(a7==1)))))){ + a20 = 1; + a25 = 0; + a13 = 0; + a9 = 9; + a19 = 1; + a16 = 7; + return -1; + } else if((((a28==1)&&(((((((!(a20==1)&&(((a5==4)||(a5==5))&&(input==5)))&&(a19==2))&&(a1==13))&&(a17==2))&&!(a18==1))&&!(a8==1))&&(a16==7)))&&(((((a12==1)&&(!(a26==1)&&(a12==1)))||(a7==1))&&(a9==10))&&(a21==11)))){ + a9 = 8; + a2 = 1; + a5 = 4; + a0 = 0; + a20 = 1; + a16 = 11; + a1 = 12; + a27 = 0; + a19 = 3; + return 21; + } else if((((a21==11)&&((a19==3)&&((a16==7)&&(((a20==1)&&(a2==1))&&(a24==1)))))&&(((((a9==9)&&(((a14==1)&&((((input==3)&&((a5==5)||(a5==6)))&&(a1==12))&&!(a12==1)))&&!(a23==1)))&&!(a6==1))&&(a24==1))&&(a17==2)))){ + a11 = 0; + a27 = 1; + a28 = 0; + a9 = 11; + a16 = 10; + a19 = 2; + a5 = 4; + a1 = 13; + return 22; + } else if(((((!(a7==1)&&((a11==1)&&((a11==1)&&(!(a7==1)&&((input==6)&&(a5==4))))))&&(a17==2))&&(a16==11))&&((((a1==12)&&((a9==8)&&((((a21==11)&&(a23==1))||(a24==1))||!(a11==1))))&&(a20==1))&&(a19==5)))){ + a19 = 2; + a1 = 14; + a21 = 10; + a26 = 0; + a14 = 0; + a12 = 1; + a16 = 10; + a5 = 6; + return 21; + } else if(((((((!(a27==1)&&(((a5==4)&&(a3==1))&&!(a18==1)))&&!(a18==1))&&(a20==1))&&(a1==13))||!(a11==1))&&(((!(a8==1)&&((a23==1)&&(((a21==11)&&((input==6)&&(a17==2)))&&(a19==5))))&&(a16==9))&&(a9==7)))){ + if((a2==1)){ + a1 = 12; + a21 = 10; + a16 = 8; + a0 = 0; + a9 = 10; + a5 = 5; + a20 = 0; + a11 = 1; + a2 = 1; + a19 = 2; + }else{ + a21 = 12; + a5 = 5; + a1 = 12; + a8 = 0; + a19 = 4; + a16 = 8; + a23 = 1; + a26 = 0; + } + return 26; + } else if((((((((((a19==2)&&(input==6))&&(a5==6))&&(a20==1))&&(a9==11))&&(a21==10))&&(a3==1))&&(a12==1))&&((a7==1)||(!(a3==1)||(!(a2==1)||((((a1==12)&&((a16==10)&&(a3==1)))&&!(a4==1))&&(a17==2))))))){ + a5 = 4; + a9 = 7; + a8 = 0; + a26 = 0; + a16 = 7; + a18 = 0; + a19 = 1; + return -1; + } else if((((a2==1)&&(((a21==11)&&((a17==2)&&((((a8==1)||(a6==1))&&(a16==10))&&!(a24==1))))&&!(a18==1)))&&(((((a20==1)&&((a19==5)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==3))))&&(a6==1))&&(a1==14))&&(a2==1)))){ + a1 = 12; + a19 = 1; + a5 = 4; + a2 = 1; + a16 = 7; + a21 = 10; + a9 = 7; + a4 = 0; + return -1; + } else if((((a19==5)&&((a17==2)&&((a21==11)&&((!(a18==1)&&((input==4)&&((a5==5)||(a5==6))))&&(a11==1)))))&&((a16==7)&&((((a18==1)||(((((a13==1)&&(a2==1))&&(a20==1))&&(a9==11))&&!(a24==1)))&&(a3==1))&&(a1==12))))){ + a21 = 10; + a5 = 4; + a8 = 0; + a9 = 7; + a18 = 0; + a19 = 1; + return -1; + } else if(((!(a18==1)&&(((a19==5)&&((a21==10)&&((a5==4)&&(!(a14==1)&&(((a9==7)&&(input==5))&&(a20==1))))))&&!(a24==1)))&&((a11==1)&&(!(a28==1)||(((((a6==1)&&(a17==2))&&(a16==7))&&(a1==12))||(a8==1)))))){ + a21 = 12; + a19 = 1; + a7 = 0; + a1 = 14; + a9 = 8; + a11 = 1; + a3 = 1; + return 26; + } else if((((a20==1)&&((((a28==1)&&((!(a4==1)&&((input==5)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))))&&!(a27==1)))&&(a16==9))&&(a21==11)))&&((((((!(a18==1)&&(a3==1))||(a26==1))&&(a1==12))||(a7==1))&&(a19==1))&&(a17==2)))){ + a9 = 7; + a16 = 7; + a28 = 1; + a12 = 1; + a21 = 10; + a5 = 4; + a6 = 1; + return -1; + } else if((((a9==9)&&(((a20==1)&&(!(a4==1)&&(((((a13==1)&&(((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a26==1)))&&(a16==9))&&(a12==1))&&(a1==13))))&&(a21==10)))&&((a19==3)&&((a17==2)&&((!(a13==1)||(a13==1))||!(a3==1)))))){ + a26 = 0; + a19 = 1; + a5 = 4; + a1 = 12; + a16 = 7; + a9 = 7; + a7 = 0; + return -1; + } else if(((((a19==4)&&((((a17==2)&&(((a5==5)||(a5==6))&&(input==3)))&&!(a20==1))&&(a16==10)))&&!(a27==1))&&((!(a0==1)&&((a21==12)&&(((a18==1)||((a13==1)&&((!(a26==1)&&(a6==1))&&(a9==7))))&&(a1==14))))&&!(a26==1)))){ + a5 = 5; + a4 = 1; + a20 = 1; + a21 = 11; + a16 = 11; + a19 = 5; + a28 = 0; + a15 = 1; + a1 = 12; + a9 = 10; + return 21; + } else if((((!(a0==1)&&(((a16==8)&&((a4==1)||(((a6==1)||(a4==1))&&(a9==10))))&&(a5==5)))||(a14==1))&&((a19==4)&&((a21==10)&&(((a20==1)&&(((a28==1)&&((input==4)&&(a17==2)))&&(a11==1)))&&(a1==12)))))){ + a16 = 7; + a28 = 1; + a9 = 7; + a5 = 4; + a2 = 1; + a12 = 1; + a19 = 1; + return -1; + } else if(((((((a21==12)&&(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==1)))||(((a21==11)&&((a19==5)&&((a9==11)&&((a5==5)&&(a1==14)))))||((a21==11)&&((a19==5)&&((a9==11)&&((a1==14)&&(a5==6)))))))&&(input==6))&&!(a4==1))&&((((a4==1)||(((!(a13==1)||(!(a27==1)&&((a3==1)&&(a13==1))))&&(a17==2))||!(a6==1)))&&(a16==11))&&(a20==1)))){ + a19 = 4; + a24 = 0; + a1 = 14; + a8 = 0; + a21 = 10; + a5 = 4; + a2 = 1; + a9 = 11; + return 21; + } else if((((((a5==6)&&((a17==2)&&((a12==1)&&((a1==12)&&((a12==1)&&((a2==1)&&((a12==1)&&!(a20==1))))))))&&(a16==10))&&(a19==2))&&((a9==11)&&(((((a21==12)&&(input==6))&&!(a8==1))&&(a11==1))&&(a13==1))))){ + if((a23==1)){ + a5 = 5; + a21 = 10; + a0 = 1; + a2 = 0; + a20 = 1; + a16 = 7; + a15 = 0; + a9 = 8; + }else{ + a5 = 5; + a1 = 13; + a26 = 1; + a24 = 1; + a13 = 0; + a20 = 1; + a21 = 10; + a9 = 9; + } + return 25; + } return calculate_output68(input); + } + + int calculate_output68(int input) { + if(((((!(a26==1)&&((a17==2)&&((!(a20==1)&&(a6==1))&&(a5==5))))&&(a21==10))&&(a19==3))&&(((a2==1)&&((((a1==12)&&((((a9==10)&&(input==6))&&!(a18==1))&&(a6==1)))&&(a16==10))&&!(a24==1)))&&!(a14==1)))){ + a5 = 4; + a11 = 0; + a9 = 11; + a18 = 1; + a19 = 5; + a4 = 1; + a1 = 13; + return -1; + } else if((((((a5==6)&&((((((a6==1)&&(!(a3==1)||(a2==1)))||!(a13==1))&&(a21==10))||(a24==1))&&(a16==10)))&&(a1==13))&&(a9==9))&&((a20==1)&&(((((a17==2)&&(input==5))&&(a11==1))&&(a12==1))&&(a19==3))))){ + a23 = 1; + a16 = 11; + a9 = 11; + a19 = 5; + a0 = 0; + a8 = 0; + a5 = 4; + a1 = 14; + return 25; + } else if(((((((a6==1)&&((((a23==1)&&((a16==8)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6))))&&!(a0==1))&&(a12==1)))&&(a17==2))&&(a1==14))&&(a9==11))&&(!(a20==1)&&((a2==1)&&((a18==1)||(((a19==2)&&(a13==1))&&(a21==12))))))){ + a9 = 8; + a5 = 6; + a1 = 13; + a19 = 3; + a20 = 1; + a16 = 7; + a26 = 1; + a8 = 1; + a29 = 1; + return 22; + } else if((((a11==1)&&((a14==1)||(!(a14==1)&&((((a1==13)&&((a28==1)&&(a20==1)))||(a27==1))&&(a16==11)))))&&(((a19==1)&&(!(a27==1)&&(((a11==1)&&((((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6))))&&(input==6)))&&(a21==11))))&&(a17==2)))){ + a16 = 7; + a9 = 7; + a1 = 12; + a7 = 0; + a28 = 1; + a5 = 4; + a21 = 10; + a24 = 0; + return -1; + } else if(((((a16==9)&&((!(a0==1)&&((((input==1)&&((a5==4)||(a5==5)))&&(a1==14))&&(a20==1)))&&(a19==5)))&&(a12==1))&&(!(a13==1)||(((a11==1)&&(((a21==11)&&((a9==11)&&(!(a0==1)&&(a11==1))))&&(a17==2)))||!(a28==1))))){ + a16 = 7; + a21 = 10; + a1 = 13; + a19 = 3; + a9 = 7; + a5 = 5; + a18 = 0; + a11 = 1; + a14 = 0; + return 25; + } else if((((a12==1)&&((!(a4==1)&&((((((a9==8)&&((a1==13)&&(input==6)))&&(a20==1))&&(a19==2))&&(a21==11))&&(a28==1)))&&!(a7==1)))&&((a23==1)&&(!(a12==1)||((a17==2)&&((a5==4)&&((a16==9)&&(a28==1)))))))){ + a16 = 11; + a9 = 11; + a7 = 0; + a19 = 3; + a8 = 0; + a21 = 10; + a24 = 0; + return 25; + } else if(((((((((((a23==1)&&((input==3)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))))&&(a16==10))&&(a20==1))&&!(a14==1))&&!(a14==1))&&(a21==10))&&(a12==1))&&!(a27==1))&&((a1==13)&&((!(a23==1)||((a6==1)&&(a19==4)))&&(a17==2))))){ + a23 = 1; + a19 = 1; + a18 = 0; + a1 = 12; + a16 = 7; + a9 = 7; + a5 = 4; + a14 = 0; + return -1; + } else if(((!(a2==1)||(((a16==9)&&((a1==13)&&((a18==1)||((a21==12)&&((a3==1)||(a24==1))))))&&!(a24==1)))&&((a19==4)&&((((a17==2)&&((a11==1)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==4))))&&!(a20==1))&&(a23==1))))){ + if((a16==8)){ + a6 = 0; + a21 = 10; + a9 = 8; + a15 = 0; + a5 = 4; + a20 = 1; + a16 = 7; + a13 = 0; + a19 = 1; + }else{ + a29 = 0; + a22 = 0; + a20 = 1; + a15 = 1; + a1 = 12; + a16 = 7; + a21 = 10; + a19 = 1; + a9 = 9; + a5 = 5; + } + return -1; + } else if((((a16==8)&&((a1==14)&&((a17==2)&&((((a5==5)||(a5==6))&&(input==6))&&!(a23==1)))))&&((a4==1)&&(((a18==1)&&((a20==1)&&(((a19==4)&&(((a21==11)&&((a11==1)&&(a7==1)))&&(a9==7)))&&(a26==1))))&&(a14==1))))){ + a1 = 12; + a21 = 10; + a19 = 2; + a5 = 6; + a9 = 9; + a27 = 1; + a24 = 1; + a16 = 7; + a10 = 1; + return -1; + } else if(((!(a4==1)&&(((a12==1)&&((((a11==1)||!(a6==1))&&(a17==2))&&(a21==12)))&&(a19==5)))&&((((a23==1)&&(!(a20==1)&&((((((a1==12)&&(a5==6))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==13))))&&(input==5))&&(a16==8))))&&!(a4==1))&&(a13==1)))){ + a22 = 0; + a21 = 10; + a8 = 1; + a5 = 5; + a14 = 1; + a1 = 14; + a9 = 9; + a16 = 7; + a19 = 1; + a20 = 1; + return -1; + } else if(((!(a4==1)&&(((a2==1)&&((a20==1)&&(((input==1)&&(((a21==10)&&(((a9==11)&&((a5==6)&&(a1==14)))&&(a19==5)))||(((a19==1)&&((a9==7)&&((a1==12)&&(a5==4))))&&(a21==11))))&&(a11==1))))&&(a3==1)))&&((a18==1)||(!(a18==1)&&((a16==8)&&((a17==2)&&(a3==1))))))){ + a14 = 0; + a21 = 10; + a5 = 4; + a9 = 7; + a7 = 0; + a1 = 12; + a16 = 7; + a19 = 1; + a27 = 0; + return -1; + } else if(((((a16==7)&&(!(a4==1)&&(!(a4==1)&&((((((input==4)&&(a9==8))&&(a17==2))&&(a19==3))&&!(a0==1))&&(a1==12)))))&&(a21==12))&&(((((a5==6)&&((a12==1)&&!(a20==1)))||(a8==1))&&(a23==1))||!(a11==1)))){ + a4 = 0; + a19 = 1; + a23 = 1; + a24 = 0; + a20 = 1; + a9 = 7; + a5 = 4; + a21 = 10; + return -1; + } else if((((a28==1)&&((a1==12)&&((((a2==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3)))&&(a20==1))&&(a19==5))))&&(!(a18==1)&&((a0==1)||(((a21==12)&&(!(a13==1)||((((a3==1)&&(a17==2))&&(a16==10))&&(a13==1))))&&(a9==11)))))){ + a19 = 1; + a2 = 1; + a21 = 10; + a16 = 7; + a26 = 0; + a27 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if(((!(a27==1)&&((a12==1)&&((a12==1)&&((a21==12)&&((a12==1)&&(((a19==3)&&((input==5)&&((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a5==4)&&(a9==11)))))&&(a28==1)))))))&&((a1==14)&&((!(a12==1)||(((a6==1)&&(a16==7))&&(a20==1)))&&(a17==2))))){ + a9 = 7; + a13 = 1; + a5 = 4; + a21 = 10; + a1 = 12; + a23 = 1; + a24 = 0; + a19 = 1; + return -1; + } else if(((!(a6==1)||(((((((a0==1)||(a23==1))||(a24==1))&&(a6==1))&&(a9==11))&&(a21==11))&&(a17==2)))&&((a1==12)&&((a19==5)&&((a16==9)&&((a3==1)&&((a11==1)&&(!(a20==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3)))))))))){ + a25 = 0; + a20 = 1; + a19 = 1; + a14 = 1; + a9 = 8; + a1 = 14; + a11 = 0; + a16 = 7; + a5 = 6; + a21 = 10; + return -1; + } else if((((((((a16==10)&&(((input==5)&&((a5==4)||(a5==5)))&&(a1==12)))&&(a19==1))&&(a21==11))&&!(a26==1))&&!(a0==1))&&((a9==9)&&(((!(a11==1)||(!(a20==1)&&((a2==1)&&(!(a26==1)&&(a2==1)))))&&(a17==2))||!(a23==1))))){ + if((a12==1)){ + a7 = 1; + a20 = 1; + a15 = 1; + a21 = 10; + a5 = 6; + a16 = 7; + a24 = 1; + }else{ + a12 = 0; + a5 = 4; + a16 = 7; + a25 = 0; + a21 = 10; + a20 = 1; + a9 = 8; + a22 = 0; + } + return 23; + } else if(((((((a9==8)&&((((a5==6)&&(!(a8==1)&&((a11==1)&&!(a18==1))))&&(a3==1))&&(a12==1)))||(a24==1))&&(a17==2))&&(a21==12))&&(!(a20==1)&&(((a12==1)&&(((a16==9)&&(input==4))&&(a19==5)))&&(a1==13))))){ + if((a23==1)){ + a15 = 1; + a1 = 12; + a16 = 7; + a9 = 11; + a14 = 1; + a2 = 0; + a5 = 5; + a21 = 11; + a19 = 3; + }else{ + a18 = 1; + a20 = 1; + a23 = 0; + a11 = 0; + a19 = 1; + a21 = 10; + a5 = 4; + a16 = 7; + a9 = 10; + } + return 21; + } else if((((a16==8)&&((((((a9==7)&&((a8==1)||((((a21==10)&&((a27==1)||(a3==1)))||(a24==1))&&!(a20==1))))&&(a12==1))&&(a5==6))&&(a1==12))&&(a17==2)))&&(((a2==1)&&((a19==1)&&(input==1)))&&!(a14==1)))){ + a5 = 4; + a16 = 7; + a11 = 1; + a6 = 1; + a20 = 1; + a13 = 1; + return -1; + } else if(((!(a14==1)&&(((((a20==1)&&(((((a9==11)&&((a5==6)&&(a1==12)))||(((a5==4)&&(a1==13))&&(a9==7)))||(((a1==13)&&(a5==5))&&(a9==7)))&&(input==6)))&&(a21==12))&&(a13==1))&&(a3==1)))&&(!(a28==1)||(((a19==1)&&(((a12==1)&&((a16==11)&&(a11==1)))&&(a17==2)))||(a0==1))))){ + a1 = 12; + a26 = 0; + a16 = 7; + a21 = 10; + a8 = 0; + a3 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if(((!(a13==1)||((a17==2)&&((((a19==5)&&(a28==1))&&(a21==11))&&(a1==14))))&&(!(a8==1)&&((((a11==1)&&((((a5==5)&&(((a16==10)&&(input==4))&&!(a4==1)))&&!(a8==1))&&(a20==1)))&&(a9==9))&&(a2==1))))){ + a21 = 12; + a28 = 1; + a9 = 11; + a11 = 1; + a19 = 3; + a27 = 0; + a16 = 8; + return 25; + } else if(((!(a20==1)&&(((a2==1)&&((a9==7)&&(!(a11==1)||(a11==1))))&&(a12==1)))&&(((a5==6)&&((((a1==14)&&(!(a14==1)&&(!(a27==1)&&(((input==6)&&(a16==7))&&(a12==1)))))&&(a21==10))&&(a17==2)))&&(a19==5)))){ + a20 = 1; + a12 = 1; + a1 = 13; + a18 = 0; + a16 = 10; + a28 = 1; + a19 = 1; + a21 = 11; + return 26; + } else if(((((a1==12)&&(((!(a18==1)&&(((input==6)&&(((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))))&&(a16==11)))&&(a6==1))&&(a13==1)))&&(a17==2))&&(((a21==10)&&(((((a6==1)&&(a6==1))&&(a20==1))||(a24==1))&&(a12==1)))&&(a19==2)))){ + a13 = 1; + a3 = 1; + a9 = 7; + a7 = 0; + a5 = 4; + a19 = 1; + a16 = 7; + return -1; + } else if(((((a5==6)&&(((a17==2)&&((a6==1)&&((a11==1)&&(!(a20==1)&&(input==6)))))&&!(a24==1)))&&(a1==14))&&((((a21==11)&&((((a7==1)||((a13==1)&&(a13==1)))||(a8==1))&&(a19==2)))&&(a9==9))&&(a16==8)))){ + a1 = 13; + a16 = 10; + a26 = 0; + a28 = 1; + a24 = 0; + a19 = 5; + a20 = 1; + a5 = 5; + a21 = 10; + return 21; + } else if((((a21==12)&&((a16==9)&&((!(a14==1)&&((a5==6)&&((a12==1)&&((((a2==1)&&(a1==14))||(a24==1))&&(a17==2)))))&&(a6==1))))&&((a28==1)&&(!(a20==1)&&((!(a27==1)&&((input==1)&&(a9==10)))&&(a19==3)))))){ + if((a3==1)){ + a19 = 1; + a21 = 11; + a5 = 4; + a16 = 10; + a0 = 1; + a29 = 1; + a9 = 11; + }else{ + a1 = 12; + a29 = 0; + a20 = 1; + a25 = 0; + a2 = 0; + a19 = 5; + a5 = 5; + a21 = 11; + a9 = 11; + } + return -1; + } else if((((!(a8==1)&&((a5==4)&&((((a28==1)&&((a2==1)&&((a19==5)&&((a16==8)&&((input==5)&&(a9==9))))))&&(a21==10))&&(a2==1))))&&(a1==12))&&((a20==1)&&((((a12==1)||!(a28==1))&&(a17==2))&&!(a7==1))))){ + a1 = 14; + a19 = 1; + a8 = 0; + a5 = 5; + a3 = 1; + a0 = 0; + a9 = 11; + a16 = 10; + return 26; + } else if(((!(a20==1)&&(((!(a8==1)&&(!(a14==1)&&((a11==1)&&(((input==4)&&((a5==5)||(a5==6)))&&(a17==2)))))&&!(a8==1))&&(a19==4)))&&((a16==10)&&(((a21==10)&&(((a12==1)&&((a23==1)&&(a11==1)))&&(a9==9)))&&(a1==14))))){ + if((a3==1)){ + a16 = 9; + a5 = 4; + a3 = 0; + a24 = 1; + a8 = 1; + a19 = 2; + a9 = 10; + }else{ + a19 = 1; + a6 = 0; + a5 = 4; + a0 = 1; + a16 = 7; + a9 = 7; + a2 = 0; + a20 = 1; + } + return 25; + } else if(((((!(a20==1)&&((a27==1)||((a21==11)&&(!(a7==1)&&(((a23==1)&&(a1==13))&&(a12==1))))))&&(a19==5))&&(a17==2))&&((!(a7==1)&&((((input==1)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5))))&&!(a26==1))&&(a11==1)))&&(a16==7)))){ + a21 = 12; + a20 = 1; + a1 = 12; + a16 = 9; + a5 = 4; + a19 = 3; + a27 = 0; + a9 = 9; + a28 = 1; + return 21; + } else if((((a23==1)&&((!(a20==1)&&((((a17==2)&&((a5==4)&&(input==5)))&&(a1==14))&&!(a27==1)))&&(a16==7)))&&(!(a8==1)&&((((a9==8)&&(((a4==1)||((a19==1)&&(a3==1)))&&(a21==11)))||!(a13==1))||(a7==1))))){ + a5 = 5; + a20 = 1; + a19 = 4; + a28 = 1; + a8 = 0; + a3 = 1; + return 21; + } else if(((!(a4==1)&&(!(a18==1)&&((a21==11)&&(((a16==7)&&((!(a26==1)&&(((a13==1)&&((input==4)&&(((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10))))))&&(a1==13)))&&(a13==1)))&&!(a20==1)))))&&(((a17==2)&&((a19==5)&&(a2==1)))||!(a12==1)))){ + a9 = 10; + a5 = 5; + a1 = 12; + a2 = 1; + a16 = 10; + a24 = 0; + a21 = 10; + a20 = 1; + a8 = 0; + return -1; + } else if(((((a28==1)&&(((a17==2)&&((a21==11)&&(input==5)))&&(a6==1)))&&(a5==5))&&(((a18==1)||(((((a1==14)&&((((a12==1)&&(a6==1))&&(a9==11))&&!(a20==1)))&&(a19==3))||!(a3==1))||!(a13==1)))&&(a16==8)))){ + a5 = 4; + a16 = 10; + a9 = 9; + a1 = 13; + a19 = 4; + a20 = 1; + a6 = 1; + a21 = 12; + return 26; + } else if((((((a3==1)&&((a1==13)&&(!(a20==1)&&((a3==1)||(a8==1)))))&&(a16==9))&&(a21==12))&&((a17==2)&&((((((((input==4)&&(a5==4))&&(a11==1))&&!(a0==1))&&(a23==1))&&(a2==1))&&(a19==5))&&(a9==10))))){ + if((a24==1)){ + a23 = 0; + a5 = 5; + a18 = 1; + a0 = 1; + a21 = 10; + a9 = 7; + a19 = 3; + a20 = 1; + a16 = 10; + }else{ + a10 = 0; + a9 = 9; + a5 = 6; + a15 = 1; + a19 = 3; + a16 = 10; + a8 = 1; + a1 = 12; + } + return -1; + } else if((((a12==1)&&(((!(a7==1)&&((a21==12)&&(((a19==4)&&(((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==5))&&(a1==14)))&&!(a0==1))))&&(a3==1))&&(a23==1)))&&(!(a20==1)&&((a17==2)&&(((a8==1)||(a3==1))&&(a16==7)))))){ + a21 = 10; + a9 = 7; + a27 = 0; + a20 = 1; + a1 = 12; + a19 = 1; + a5 = 4; + a6 = 1; + return -1; + } else if((((!(a13==1)&&(((a16==11)&&((a19==3)&&((a20==1)&&((input==1)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))))))&&(a1==14)))&&!(a3==1))&&((a24==1)&&((a27==1)&&(!(a12==1)&&(((a17==2)&&((a23==1)&&(a21==12)))&&(a0==1))))))){ + a21 = 10; + a19 = 2; + a9 = 10; + a28 = 0; + a27 = 1; + a16 = 7; + a8 = 1; + a5 = 6; + a1 = 12; + return -1; + } else if((((((a21==10)&&((!(a12==1)||(((a17==2)&&((a12==1)&&!(a18==1)))&&(a1==13)))&&(a19==3)))||(a8==1))||!(a2==1))&&((((a16==10)&&((((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))&&(input==4))&&(a20==1)))&&(a23==1))&&(a28==1)))){ + a7 = 0; + a1 = 12; + a5 = 4; + a0 = 0; + a16 = 7; + a19 = 1; + a9 = 7; + a6 = 1; + return -1; + } else if((((a16==7)&&((a21==12)&&((a20==1)&&((a17==2)&&((a28==1)&&((a13==1)&&(((a1==12)&&(a12==1))&&!(a27==1))))))))&&((a19==2)&&(((a28==1)&&(((a3==1)&&(((a5==5)||(a5==6))&&(input==6)))&&(a9==7)))&&!(a4==1))))){ + a26 = 0; + a9 = 10; + a5 = 4; + a16 = 9; + a3 = 1; + a21 = 10; + a11 = 1; + return 25; + } else if(((((a1==14)&&(((a9==9)&&(!(a18==1)&&((a11==1)&&!(a20==1))))||(a8==1)))&&!(a7==1))&&((((a21==12)&&(((!(a4==1)&&(((input==1)&&((a5==4)||(a5==5)))&&(a19==4)))&&!(a0==1))&&(a16==8)))&&!(a7==1))&&(a17==2)))){ + a18 = 1; + a9 = 11; + a16 = 10; + a8 = 1; + a3 = 0; + a5 = 5; + a20 = 1; + a19 = 2; + return 21; + } else if(((!(a8==1)&&((a20==1)&&((a23==1)&&(((a9==9)&&(((a5==4)||(a5==5))&&(input==1)))&&!(a26==1)))))&&((a1==12)&&((a18==1)||(((a19==4)&&((!(a4==1)&&((a21==10)&&((a28==1)&&(a16==9))))||(a4==1)))&&(a17==2)))))){ + a6 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + a19 = 1; + a13 = 1; + a4 = 0; + return -1; + } else if((((a19==2)&&((a21==11)&&(!(a18==1)&&(((a1==13)&&((input==4)&&((a5==5)||(a5==6))))&&(a6==1)))))&&((((((a7==1)||(!(a11==1)||((!(a20==1)&&(a3==1))&&(a9==9))))&&!(a4==1))&&(a16==7))&&(a17==2))||(a26==1)))){ + a9 = 7; + a23 = 1; + a20 = 1; + a21 = 10; + a24 = 0; + a5 = 4; + a1 = 12; + a28 = 1; + a19 = 1; + return -1; + } else if(((((((a16==9)&&(a2==1))||!(a13==1))&&(a9==8))||(a4==1))&&(!(a4==1)&&(((((!(a26==1)&&((a1==12)&&(!(a20==1)&&(((input==6)&&((a5==5)||(a5==6)))&&(a21==12)))))&&(a19==5))&&(a3==1))&&(a17==2))&&!(a14==1))))){ + a1 = 14; + a6 = 0; + a19 = 1; + a5 = 5; + a29 = 0; + a22 = 1; + a9 = 9; + return 21; + } else if((((!(a18==1)&&((!(a7==1)&&(((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a16==7)))&&(a9==9)))&&!(a20==1))&&((((a1==12)&&((a17==2)&&(!(a12==1)||((!(a14==1)&&((a19==1)&&(a23==1)))&&(a28==1)))))||!(a3==1))&&(a21==12)))){ + a5 = 4; + a20 = 1; + a13 = 1; + a24 = 0; + a9 = 7; + a8 = 0; + a21 = 10; + return -1; + } else if((((a16==10)&&((a12==1)&&((a24==1)||((a3==1)&&(a28==1)))))&&((((a28==1)&&(((a21==12)&&(((a17==2)&&(((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==6))&&(a12==1)))&&(a13==1)))&&(a1==13)))&&(a20==1))&&(a19==2)))){ + if((a6==1)){ + a6 = 1; + a5 = 5; + a21 = 10; + a19 = 5; + a16 = 8; + a1 = 12; + a13 = 1; + a23 = 1; + a20 = 0; + a9 = 11; + }else{ + a2 = 1; + a14 = 0; + a8 = 0; + a1 = 14; + a16 = 7; + a9 = 10; + a5 = 5; + a21 = 10; + } + return 21; + } else if(((!(a4==1)&&((((a21==11)&&((!(a0==1)&&((a5==5)&&(input==4)))&&(a9==8)))&&(a17==2))&&(a12==1)))&&((!(a26==1)&&((((!(a20==1)&&((a28==1)&&(a16==9)))&&(a1==14))&&(a19==2))&&(a13==1)))||(a0==1)))){ + a26 = 1; + a18 = 1; + a19 = 5; + a25 = 1; + a16 = 10; + a5 = 4; + a21 = 10; + return -1; + } else if((((a24==1)||(((((((a3==1)&&(a12==1))&&(a19==4))&&(a21==11))&&(a17==2))||!(a12==1))&&!(a20==1)))&&(((!(a18==1)&&((((input==1)&&(((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))&&(a16==10))&&(a1==13)))&&(a12==1))&&(a23==1)))){ + a20 = 1; + a19 = 2; + a5 = 5; + a15 = 1; + a1 = 12; + a21 = 10; + a2 = 0; + a9 = 10; + return -1; + } else if(((((((a21==11)&&(a2==1))||!(a28==1))&&(a19==3))&&(a12==1))&&((a6==1)&&((!(a20==1)&&(((a2==1)&&((((input==6)&&(((a9==11)&&((a1==12)&&(a5==6)))||(((a5==4)&&(a1==13))&&(a9==7))))&&(a3==1))&&(a12==1)))&&(a16==9)))&&(a17==2))))){ + if((a29==1)){ + a27 = 1; + a13 = 0; + a21 = 10; + a1 = 12; + a16 = 10; + a6 = 0; + a9 = 10; + a5 = 6; + a19 = 1; + a20 = 1; + }else{ + a9 = 8; + a28 = 0; + a5 = 5; + a8 = 1; + a19 = 1; + a21 = 10; + a20 = 1; + a1 = 12; + a25 = 0; + a16 = 7; + } + return -1; + } else if(((((!(a7==1)&&((((a24==1)||((a4==1)||((!(a6==1)||(a11==1))&&!(a7==1))))&&(a28==1))&&(a19==3)))&&(a21==11))&&(a1==13))&&(!(a20==1)&&(((a17==2)&&((((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(input==3)))&&(a16==7))))){ + a11 = 1; + a21 = 10; + a4 = 0; + a5 = 4; + a19 = 1; + a20 = 1; + a26 = 0; + a9 = 7; + a1 = 12; + return -1; + } else if((((a20==1)&&(((((a11==1)&&((a11==1)&&((a17==2)&&(!(a4==1)&&((a1==13)&&(((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&(a16==8)))))))&&(a12==1))&&(a2==1))&&(a21==12)))&&(((!(a14==1)&&(a12==1))&&(a19==5))&&(a9==8)))){ + a1 = 12; + a11 = 1; + a12 = 1; + a13 = 1; + a9 = 7; + a16 = 7; + a19 = 1; + a5 = 4; + a21 = 10; + return -1; + } else if(((((((a19==1)&&((((((a1==14)&&((a17==2)&&(a28==1)))&&(a20==1))&&!(a11==1))&&(a16==8))&&(a21==10)))&&(a4==1))&&!(a6==1))&&(a0==1))&&(!(a6==1)&&(((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==5))&&(a27==1))))){ + a20 = 0; + a25 = 0; + a21 = 11; + a10 = 0; + a1 = 12; + a19 = 4; + a5 = 4; + a9 = 11; + a16 = 7; + a22 = 1; + return 22; + } else if(((((((!(a20==1)&&(input==3))&&(a9==9))&&(a5==4))&&(a12==1))&&(a12==1))&&((((((a16==11)&&((!(a3==1)||(((a2==1)&&(a1==14))&&(a21==10)))&&(a19==1)))&&(a17==2))&&(a28==1))||(a18==1))||(a14==1)))){ + if((a20==1)){ + a25 = 1; + a6 = 0; + a1 = 13; + a19 = 2; + a20 = 1; + a26 = 1; + a5 = 5; + a9 = 7; + }else{ + a9 = 11; + a5 = 6; + a16 = 7; + a19 = 2; + a22 = 0; + a20 = 1; + a1 = 12; + a14 = 1; + a0 = 1; + } + return -1; + } else if(((!(a18==1)&&((a28==1)&&((a16==11)&&((a19==2)&&((((a17==2)&&(((a11==1)&&(a1==14))||(a8==1)))&&(a21==11))&&(a23==1))))))&&(!(a27==1)&&((((input==6)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(a20==1))&&(a2==1))))){ + a19 = 3; + a27 = 0; + a1 = 12; + a21 = 12; + a16 = 9; + a3 = 1; + a5 = 5; + a9 = 10; + a11 = 1; + return 21; + } else if(((!(a20==1)&&(((a3==1)&&((((a17==2)&&((a2==1)&&((((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(input==3))))&&!(a18==1))&&(a28==1)))&&(a19==4)))&&((((!(a23==1)||((a12==1)&&(a21==11)))||!(a2==1))&&(a1==12))&&(a16==10)))){ + a5 = 5; + a12 = 0; + a25 = 1; + a16 = 7; + a9 = 10; + a21 = 10; + a20 = 1; + a19 = 1; + return -1; + } else if(((((a20==1)&&((a5==5)&&((((a4==1)&&((a17==2)&&(input==1)))&&(a1==14))&&!(a13==1))))&&(a16==8))&&((((((a14==1)&&(!(a3==1)&&((a11==1)&&!(a28==1))))&&!(a3==1))&&(a19==2))&&(a9==11))&&(a21==10)))){ + a2 = 0; + a19 = 3; + a7 = 1; + a1 = 12; + a9 = 9; + return 25; + } else if((((((a5==6)&&(((a12==1)&&(((a28==1)&&((a21==10)&&(input==1)))&&(a13==1)))&&!(a7==1)))&&(a1==14))&&!(a20==1))&&((((((a19==2)&&((a28==1)&&!(a26==1)))&&(a17==2))&&(a9==10))&&(a3==1))&&(a16==8)))){ + a28 = 1; + a9 = 8; + a21 = 11; + a1 = 12; + a6 = 1; + a26 = 0; + a20 = 1; + return 25; + } else if((((a24==1)||((a8==1)||((a13==1)&&(!(a14==1)&&(((a1==12)&&(a11==1))&&!(a20==1))))))&&((a6==1)&&(!(a27==1)&&((a19==5)&&(((a16==8)&&(((((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6))))&&(input==1))&&(a21==12)))&&(a17==2))))))){ + a5 = 5; + a23 = 0; + a0 = 1; + a9 = 7; + a1 = 14; + a21 = 11; + a20 = 1; + a8 = 1; + return 23; + } else if((((a23==1)&&(!(a0==1)&&((a17==2)&&(((a9==10)&&((a28==1)&&((((input==6)&&((a5==4)||(a5==5)))&&(a16==7))&&(a20==1))))&&!(a4==1)))))&&((!(a0==1)&&((a28==1)&&(((a19==3)&&(a12==1))&&(a21==12))))&&(a1==12)))){ + a6 = 1; + a9 = 9; + a21 = 10; + a1 = 14; + a16 = 9; + a5 = 5; + a24 = 0; + a19 = 4; + a13 = 1; + return 23; + } else if(((((a4==1)||((a4==1)||(((a1==12)&&((a19==2)&&((a17==2)&&((a13==1)&&(a20==1)))))&&(a28==1))))||(a26==1))&&(((((a21==12)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==1)))&&(a16==8))&&(a6==1))&&!(a7==1)))){ + a3 = 1; + a19 = 5; + a9 = 9; + a1 = 14; + a16 = 10; + a5 = 5; + a8 = 0; + a23 = 1; + a21 = 11; + return 21; + } else if((((a21==12)&&((((((a17==2)&&((!(a4==1)&&((((input==4)&&!(a20==1))&&(a9==11))&&(a19==1)))&&!(a24==1)))&&(a16==7))&&(a5==6))&&(a13==1))&&(a1==12)))&&(!(a14==1)&&(!(a11==1)||((a28==1)&&(a23==1)))))){ + a8 = 0; + a21 = 10; + a20 = 1; + a9 = 7; + a13 = 1; + a5 = 4; + a26 = 0; + return -1; + } else if(((((a26==1)||((a28==1)||!(a12==1)))&&(a28==1))&&((!(a8==1)&&(((a9==11)&&((((a5==4)&&((a16==7)&&((a19==3)&&(!(a14==1)&&((a20==1)&&(input==6))))))&&(a21==11))&&(a17==2)))&&(a1==12)))&&!(a27==1)))){ + a1 = 13; + a5 = 6; + a9 = 8; + a3 = 1; + a16 = 8; + a28 = 1; + a21 = 10; + a19 = 5; + a18 = 0; + return 23; + } else if(((((a20==1)&&((a3==1)&&(((a2==1)&&((input==4)&&(((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8))))))&&!(a4==1))))&&(a19==3))&&(((a16==8)&&(((a1==14)&&((((a11==1)&&(a23==1))&&!(a7==1))&&!(a0==1)))&&(a21==10)))&&(a17==2)))){ + a19 = 1; + a5 = 4; + a0 = 0; + a12 = 1; + a9 = 7; + a1 = 12; + a16 = 7; + a6 = 1; + return -1; + } else if((((a17==2)&&((((a21==11)&&(!(a2==1)||(!(a11==1)||((a13==1)||!(a28==1)))))&&(a20==1))&&(a16==10)))&&(((((!(a24==1)&&((((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7))))&&(input==1)))&&(a6==1))&&(a28==1))&&(a19==4))&&(a1==13)))){ + a2 = 1; + a16 = 7; + a21 = 10; + a3 = 1; + a9 = 9; + a19 = 2; + a14 = 0; + a5 = 4; + return 25; + } else if(((((a20==1)&&(((a16==10)&&((((a3==1)&&(a21==10))&&(a28==1))||!(a2==1)))||!(a11==1)))||!(a2==1))&&(((a1==13)&&((a19==5)&&((a17==2)&&(((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))&&(input==5))&&!(a14==1)))))&&(a2==1)))){ + a16 = 7; + a0 = 0; + a9 = 7; + a5 = 4; + a3 = 1; + a19 = 1; + a7 = 0; + a1 = 12; + return -1; + } else if((((((a17==2)&&((a21==10)&&((!(a27==1)&&((((input==1)&&(((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))))&&!(a20==1))&&!(a27==1)))&&(a11==1))))&&(a1==13))&&(a16==7))&&(((!(a8==1)&&((a11==1)&&(a6==1)))&&(a6==1))&&(a19==5)))){ + a9 = 7; + a4 = 0; + a19 = 1; + a13 = 1; + a8 = 0; + a20 = 1; + a1 = 12; + a5 = 4; + return -1; + } else if(((((a1==14)&&((a9==7)&&((a5==5)&&(input==4))))&&!(a12==1))&&((a26==1)&&(((a19==5)&&((a21==10)&&(((a26==1)&&((a24==1)&&((a16==8)&&(((a13==1)&&!(a20==1))&&(a17==2)))))&&!(a3==1))))&&(a24==1))))){ + a19 = 4; + a21 = 11; + a12 = 0; + a16 = 7; + a27 = 1; + a1 = 12; + a0 = 1; + a20 = 1; + a5 = 4; + a9 = 10; + return -1; + } else if(((((a17==2)&&((a4==1)||(((a23==1)&&(a23==1))&&(a13==1))))&&(a19==5))&&((!(a18==1)&&(((!(a20==1)&&((((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==4))&&(a16==10))&&!(a18==1)))&&(a1==14))&&(a12==1)))&&(a21==12)))){ + a16 = 7; + a12 = 0; + a22 = 1; + a20 = 1; + a26 = 1; + a19 = 2; + a5 = 6; + a9 = 7; + return -1; + } else if(((((a16==9)&&(((a1==13)&&((!(a28==1)||(!(a3==1)||(a12==1)))&&(a17==2)))||!(a28==1)))&&(a5==4))&&((a9==11)&&(((a13==1)&&((!(a20==1)&&((a21==12)&&((input==5)&&(a19==4))))&&(a12==1)))&&(a3==1))))){ + if((a5==4)){ + a16 = 11; + a9 = 10; + a15 = 1; + a20 = 1; + a25 = 0; + a3 = 0; + a21 = 10; + a5 = 5; + a1 = 14; + }else{ + a9 = 8; + a19 = 2; + a11 = 0; + a20 = 1; + a21 = 10; + a16 = 7; + a15 = 0; + a28 = 0; + a1 = 12; + } + return -1; + } else if((((a5==5)&&((!(a20==1)&&((a6==1)&&((a1==12)&&((a28==1)||(a18==1)))))&&(a17==2)))&&((!(a18==1)&&(((a21==11)&&(((a16==8)&&(((input==5)&&(a9==7))&&(a19==1)))&&!(a8==1)))&&(a3==1)))&&!(a26==1)))){ + a20 = 1; + a7 = 0; + a16 = 7; + a5 = 4; + a11 = 1; + a21 = 10; + a4 = 0; + return -1; + } else if(((((((a13==1)&&(!(a20==1)&&(((a17==2)&&((a1==12)&&((a21==10)&&(((a16==8)&&((((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&(input==3)))&&(a13==1)))))&&(a19==5))))&&!(a7==1))&&!(a18==1))&&(a6==1))&&((a12==1)&&(a11==1)))){ + a24 = 0; + a6 = 1; + a20 = 1; + a13 = 1; + a19 = 1; + a5 = 4; + a16 = 7; + a9 = 7; + return -1; + } else if(((((a17==2)&&((a9==9)&&(((a16==9)&&(!(a20==1)&&((input==5)&&((a5==4)||(a5==5)))))&&(a23==1))))&&!(a26==1))&&((a11==1)&&(!(a8==1)&&(((a4==1)||(((a21==12)&&((a1==12)&&(a6==1)))&&(a19==5)))||(a7==1)))))){ + a13 = 0; + a11 = 0; + a5 = 4; + a25 = 0; + a16 = 7; + a19 = 2; + a21 = 10; + a9 = 7; + a20 = 1; + return -1; + } else if(((((a19==1)&&(!(a26==1)&&((!(a20==1)&&((a1==12)&&(((a5==4)||(a5==5))&&(input==4))))&&(a6==1))))&&(a17==2))&&(((!(a14==1)&&((!(a0==1)&&(((a4==1)||(a13==1))&&(a16==11)))&&(a13==1)))&&(a9==11))&&(a21==10)))){ + a16 = 7; + a25 = 0; + a9 = 10; + a29 = 0; + a5 = 4; + a20 = 1; + return 22; + } else if(((!(a4==1)&&(!(a7==1)&&((a12==1)&&((a21==12)&&((a20==1)&&((((input==5)&&(((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))))&&(a19==2))&&(a17==2)))))))&&(!(a18==1)&&((!(a6==1)||((a2==1)&&((a6==1)&&(a16==7))))&&(a1==14))))){ + a5 = 4; + a9 = 7; + a28 = 1; + a6 = 1; + a23 = 1; + a19 = 1; + a1 = 12; + a21 = 10; + return -1; + } else if((((((a1==13)&&((a18==1)||((a21==10)&&((a16==11)&&(a2==1)))))&&(a17==2))&&!(a20==1))&&(((((a28==1)&&(((((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5)))&&(input==6))&&(a19==2))&&(a2==1)))&&(a28==1))&&!(a0==1))&&(a13==1)))){ + a16 = 7; + a1 = 12; + a9 = 11; + a19 = 1; + a5 = 5; + a22 = 1; + a20 = 1; + a26 = 1; + a29 = 1; + return -1; + } else if((((a1==14)&&(((a20==1)&&(((a16==9)&&((a17==2)&&(a23==1)))&&!(a8==1)))||(a8==1)))&&((!(a0==1)&&((a6==1)&&(!(a14==1)&&((a19==5)&&(((input==5)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&!(a0==1))))))&&(a21==10)))){ + a0 = 0; + a11 = 1; + a19 = 2; + a27 = 0; + a5 = 4; + a9 = 9; + a16 = 10; + return 21; + } else if(((!(a28==1)||(!(a18==1)&&((a21==11)&&((a16==7)&&(a6==1)))))&&(((a11==1)&&((a19==2)&&(((a20==1)&&(((a6==1)&&((a1==13)&&(((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))&&(input==6))))&&(a11==1)))&&!(a26==1))))&&(a17==2)))){ + a5 = 4; + a24 = 0; + a9 = 10; + a21 = 10; + a19 = 3; + a4 = 0; + a16 = 8; + a26 = 0; + return 23; + } else if((((a5==4)&&((a21==10)&&(((((a11==1)&&((a17==2)&&((!(a24==1)&&((a9==11)&&(input==5)))&&(a1==13))))&&!(a24==1))&&!(a14==1))&&(a19==4))))&&((a20==1)&&((((a3==1)&&(a28==1))||!(a3==1))&&(a16==11))))){ + a19 = 1; + a16 = 7; + a1 = 12; + a9 = 7; + a27 = 0; + a13 = 1; + return -1; + } else if(((((a17==2)&&((a20==1)&&((a4==1)&&(((a6==1)&&(a18==1))&&(a4==1)))))&&(a16==10))&&((((a21==10)&&((a1==14)&&(!(a11==1)&&(((((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&(input==1))&&!(a13==1)))))&&!(a28==1))&&(a19==5)))){ + a5 = 5; + a7 = 1; + a29 = 1; + a16 = 8; + a20 = 0; + a18 = 1; + a19 = 3; + a9 = 8; + a21 = 11; + return -1; + } else if((((((a16==7)&&(!(a28==1)&&((a1==13)&&((!(a28==1)&&((input==1)&&((a5==4)||(a5==5))))&&(a4==1)))))&&(a9==10))&&(a21==11))&&((((a19==2)&&(!(a11==1)&&(((a8==1)&&(a28==1))&&(a18==1))))&&!(a20==1))&&(a17==2)))){ + a9 = 9; + a1 = 12; + a4 = 1; + a7 = 1; + a5 = 4; + a8 = 1; + a20 = 1; + a21 = 10; + return 23; + } else if(((((((a21==12)&&((a20==1)&&(((a2==1)&&!(a26==1))||!(a11==1))))&&(a16==9))&&!(a8==1))||(a26==1))&&((a1==13)&&(((a12==1)&&((a19==3)&&((((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11)))&&(input==6))&&(a17==2))))&&(a23==1))))){ + a9 = 7; + a19 = 1; + a12 = 1; + a5 = 4; + a3 = 1; + a1 = 12; + a2 = 1; + a16 = 7; + a21 = 10; + return -1; + } else if(((((((((a1==13)&&(a3==1))||(a24==1))&&(a16==11))||(a18==1))&&(a28==1))&&!(a26==1))&&((!(a27==1)&&((a21==11)&&(((((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==3))&&(a20==1))&&(a17==2))&&(a19==3))))&&(a23==1)))){ + a2 = 1; + a16 = 7; + a21 = 10; + a1 = 12; + a19 = 1; + a9 = 7; + a12 = 1; + a27 = 0; + a5 = 4; + return -1; + } else if(((((((a21==11)&&(((a1==14)&&(((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))&&(input==5))&&(a20==1)))&&(a16==11)))&&!(a0==1))&&!(a24==1))&&(a12==1))&&(((a19==2)&&((a17==2)&&((a14==1)||((a23==1)||(a26==1)))))||!(a13==1)))){ + a23 = 1; + a1 = 12; + a9 = 7; + a21 = 10; + a18 = 0; + a16 = 7; + a19 = 1; + a8 = 0; + a5 = 4; + return -1; + } else if((((a9==10)&&((a21==10)&&((((a19==4)&&(!(a6==1)&&((a27==1)&&(a6==1))))&&(a17==2))&&(a1==14))))&&(((a20==1)&&(!(a28==1)&&((a0==1)&&(!(a6==1)&&((((a5==5)||(a5==6))&&(input==1))&&!(a12==1))))))&&(a16==10)))){ + a2 = 0; + a16 = 7; + a1 = 13; + a19 = 1; + a10 = 0; + a5 = 5; + a6 = 0; + a9 = 7; + return -1; + } else if((((a21==10)&&(((!(a20==1)&&(!(a2==1)||(((a6==1)&&(((a13==1)&&(a19==4))||(a24==1)))&&(a9==7))))||!(a2==1))&&(a1==12)))&&((((!(a27==1)&&((input==5)&&((a5==4)||(a5==5))))&&(a16==9))&&(a17==2))&&(a2==1)))){ + a15 = 0; + a8 = 1; + a4 = 1; + a20 = 1; + a5 = 5; + a16 = 7; + a19 = 1; + return -1; + } else if(((!(a0==1)&&((a4==1)||((a16==10)&&((a9==11)&&((a6==1)||(a24==1))))))&&(((a21==11)&&((((a1==14)&&((a20==1)&&(!(a8==1)&&((((a5==4)||(a5==5))&&(input==4))&&(a13==1)))))&&(a6==1))&&(a17==2)))&&(a19==1)))){ + a1 = 13; + a19 = 5; + a5 = 6; + a21 = 12; + a9 = 10; + a26 = 0; + a24 = 0; + a16 = 8; + return 22; + } else if((((((a3==1)&&((((input==1)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8))))&&(a20==1))&&(a21==11)))&&!(a26==1))&&(a13==1))&&(((a13==1)&&(((a19==5)&&(((a16==8)&&((a13==1)&&(a17==2)))&&(a1==14)))&&(a6==1)))||(a0==1)))){ + a19 = 1; + a5 = 4; + a18 = 0; + a1 = 12; + a21 = 10; + a4 = 0; + a9 = 7; + a24 = 0; + a16 = 7; + return -1; + } else if((((!(a20==1)&&(((a19==3)&&((a0==1)||((a12==1)&&!(a7==1))))&&(a9==8)))&&(a1==12))&&((a17==2)&&((a16==8)&&(((((!(a14==1)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))&&(a13==1))&&(a11==1))&&(a2==1))&&(a21==11)))))){ + a21 = 10; + a6 = 1; + a5 = 4; + a7 = 0; + a12 = 1; + a19 = 1; + a20 = 1; + a9 = 7; + a16 = 7; + return -1; + } else if((((!(a20==1)&&((a16==8)&&((((a9==11)&&((a28==1)&&!(a24==1)))&&(a17==2))&&!(a24==1))))&&(a21==12))&&(((a19==4)&&((a28==1)&&(!(a24==1)&&((a13==1)&&((a3==1)&&((input==4)&&((a5==4)||(a5==5))))))))&&(a1==13)))){ + if((a6==1)){ + a10 = 1; + a21 = 10; + a1 = 12; + a19 = 1; + a3 = 0; + a9 = 10; + a16 = 7; + a5 = 5; + a22 = 1; + a20 = 1; + }else{ + a13 = 0; + a19 = 1; + a22 = 1; + a12 = 0; + a16 = 7; + a21 = 10; + a5 = 5; + a20 = 1; + a9 = 7; + } + return -1; + } else if(((((((a14==1)||((!(a24==1)&&((((a17==2)&&(a11==1))||!(a3==1))&&(a13==1)))&&(a16==8)))&&(a19==1))&&(a1==12))&&(a20==1))&&((a21==11)&&(!(a27==1)&&((a28==1)&&((a9==8)&&(((a5==5)||(a5==6))&&(input==3)))))))){ + a11 = 1; + a0 = 0; + a21 = 10; + a6 = 1; + a16 = 7; + a5 = 4; + a9 = 7; + return -1; + } else if(((((a16==7)&&(((((a19==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a13==1)))&&(a17==2))&&(a13==1))&&(a9==10)))&&(a11==1))&&(!(a8==1)&&((a14==1)||(((a21==11)&&(((a6==1)&&!(a20==1))||(a7==1)))&&(a1==12)))))){ + a14 = 0; + a24 = 0; + a9 = 7; + a21 = 10; + a5 = 4; + a20 = 1; + a12 = 1; + return -1; + } else if(((((((a8==1)||((!(a3==1)||((a21==10)&&((a16==10)&&(a11==1))))&&(a1==12)))&&(a17==2))||!(a23==1))&&(a6==1))&&((a28==1)&&(((a19==2)&&((a5==6)&&(((a9==7)&&(input==1))&&!(a26==1))))&&!(a20==1))))){ + a8 = 1; + a20 = 1; + a6 = 0; + a22 = 0; + a9 = 8; + a16 = 7; + return -1; + } else if((((((!(a28==1)||(((a1==13)&&(!(a14==1)&&(a23==1)))&&(a5==6)))||!(a2==1))&&(a16==10))||(a24==1))&&(((((a19==4)&&((((input==5)&&(a21==12))&&(a9==8))&&!(a20==1)))&&(a13==1))&&(a17==2))&&(a2==1)))){ + if((a23==1)){ + a21 = 11; + a20 = 1; + a22 = 1; + a29 = 1; + a1 = 12; + a19 = 1; + a12 = 0; + }else{ + a16 = 11; + a7 = 1; + a19 = 3; + a29 = 1; + a15 = 1; + a5 = 4; + a21 = 11; + a20 = 1; + } + return -1; + } else if(((((a17==2)&&((((a11==1)&&((a12==1)&&(a12==1)))||!(a12==1))&&(a9==7)))&&!(a18==1))&&(((a16==8)&&((((!(a4==1)&&((a21==11)&&((input==3)&&((a5==5)||(a5==6)))))&&!(a20==1))&&!(a8==1))&&(a19==2)))&&(a1==13)))){ + a9 = 9; + a1 = 12; + a11 = 1; + a19 = 1; + a26 = 0; + a20 = 1; + a16 = 9; + a5 = 5; + a18 = 0; + return -1; + } else if(((((a7==1)||((a5==6)&&((!(a7==1)&&((!(a28==1)||(a2==1))&&(a11==1)))&&(a21==12))))&&!(a20==1))&&(((!(a18==1)&&((a17==2)&&((((input==5)&&(a16==10))&&(a13==1))&&(a9==10))))&&(a19==5))&&(a1==13)))){ + a1 = 12; + a20 = 1; + a19 = 1; + a2 = 0; + a9 = 8; + a22 = 1; + a5 = 4; + a16 = 7; + a21 = 10; + return -1; + } else if((((a9==9)&&(((((input==1)&&!(a20==1))&&(a3==1))&&(a6==1))&&!(a26==1)))&&((a21==11)&&((a19==2)&&((a16==8)&&((a1==12)&&((((a12==1)&&(((a28==1)&&(a3==1))&&(a5==6)))&&(a17==2))&&!(a26==1)))))))){ + a19 = 1; + a21 = 10; + a16 = 7; + a4 = 0; + a0 = 0; + a20 = 1; + a9 = 7; + a5 = 4; + a3 = 1; + return -1; + } else if(((((a16==10)&&((!(a0==1)&&(((a13==1)&&(a28==1))&&(a21==12)))&&(a19==4)))||!(a6==1))&&((a13==1)&&((a28==1)&&(((a6==1)&&((a1==12)&&((a20==1)&&(((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a5==4)&&(a9==8)))&&(input==4)))))&&(a17==2)))))){ + a16 = 7; + a21 = 10; + a5 = 4; + a23 = 1; + a12 = 1; + a9 = 7; + a19 = 1; + return -1; + } else if((((((!(a7==1)&&(!(a26==1)&&(!(a0==1)&&((a19==1)&&(((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4)))&&(input==4))))))&&!(a20==1))&&(a11==1))&&(a16==9))&&((((a17==2)&&(((a4==1)||(a6==1))&&(a1==13)))&&(a21==12))&&!(a8==1)))){ + a9 = 9; + a5 = 6; + a28 = 0; + a19 = 5; + a20 = 1; + a2 = 0; + return 25; + } else if(((((a16==10)&&(!(a27==1)&&((((input==1)&&(a20==1))&&(a21==10))&&(a23==1))))&&(a19==3))&&((a5==5)&&((((((a7==1)||(!(a27==1)&&(!(a26==1)&&(a28==1))))&&(a12==1))&&(a1==14))&&(a9==7))&&(a17==2))))){ + a16 = 7; + a23 = 1; + a6 = 1; + a1 = 12; + a5 = 4; + a27 = 0; + a19 = 1; + return -1; + } else if((((((a16==11)&&((a19==3)&&((!(a2==1)||(!(a8==1)&&(a12==1)))&&!(a27==1))))&&(a1==13))&&(a9==7))&&((((a20==1)&&(((a21==11)&&(((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a18==1)))&&(a17==2)))&&(a2==1))&&!(a14==1)))){ + a4 = 0; + a9 = 9; + a21 = 12; + a11 = 1; + a16 = 9; + a1 = 12; + a5 = 4; + a13 = 1; + return 21; + } else if(((((a17==2)&&((a21==11)&&(((((a5==4)||(a5==5))&&(input==6))&&!(a7==1))&&(a11==1))))&&(a1==14))&&((a16==9)&&((!(a8==1)&&((a9==7)&&(((((a23==1)||(a4==1))&&(a19==4))&&!(a4==1))||(a26==1))))&&!(a20==1))))){ + if((a22==1)){ + a9 = 11; + a5 = 6; + a22 = 0; + a19 = 5; + a24 = 1; + a20 = 1; + a16 = 11; + a1 = 13; + a15 = 1; + }else{ + a18 = 1; + a9 = 9; + a1 = 12; + a6 = 0; + a5 = 5; + a21 = 10; + a20 = 1; + a16 = 7; + a19 = 2; + a23 = 0; + } + return 25; + } else if(((!(a13==1)||(!(a20==1)&&(!(a27==1)&&((!(a14==1)&&(a2==1))&&(a21==10)))))&&((a16==8)&&(!(a27==1)&&((!(a14==1)&&((a12==1)&&(((a19==2)&&((a17==2)&&((a9==10)&&(input==5))))&&(a1==14))))&&(a5==6)))))){ + a3 = 1; + a20 = 1; + a16 = 7; + a1 = 12; + a5 = 4; + a14 = 0; + a9 = 7; + a19 = 1; + a4 = 0; + return -1; + } else if(((((((a12==1)||(a7==1))&&(a20==1))&&(a1==12))&&(a16==11))&&((a17==2)&&((a19==1)&&(((!(a24==1)&&((!(a4==1)&&((a2==1)&&((input==5)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))))&&(a23==1)))&&!(a7==1))&&(a21==12)))))){ + a8 = 0; + a9 = 7; + a12 = 1; + a21 = 10; + a5 = 4; + a16 = 7; + a26 = 0; + return -1; + } else if(((((a17==2)&&((((a9==10)&&((a12==1)&&((!(a24==1)&&((a21==12)&&(input==4)))&&!(a8==1))))&&(a11==1))&&(a20==1)))&&(a5==4))&&((((a16==8)&&(!(a23==1)||((a28==1)||!(a3==1))))&&(a1==12))&&(a19==2)))){ + a21 = 10; + a19 = 1; + a4 = 0; + a7 = 0; + a16 = 7; + a9 = 7; + a3 = 1; + return -1; + } else if((((a2==1)&&((a13==1)&&((a11==1)&&((a1==14)&&(((a9==10)&&((a5==4)&&(input==3)))&&(a16==11))))))&&((!(a27==1)&&(!(a24==1)&&(((a19==4)&&(((a11==1)&&(a21==12))&&(a17==2)))&&(a20==1))))||!(a28==1)))){ + a16 = 7; + a6 = 1; + a0 = 0; + a21 = 10; + a9 = 7; + a1 = 12; + a19 = 1; + a23 = 1; + return -1; + } else if((((a17==2)&&(((((a13==1)&&(a13==1))&&(a20==1))||(a8==1))&&(a21==11)))&&((a16==10)&&((a9==10)&&(((!(a26==1)&&(((((input==4)&&((a5==5)||(a5==6)))&&!(a26==1))&&(a19==5))&&(a1==14)))&&(a2==1))&&!(a8==1)))))){ + a2 = 1; + a5 = 4; + a0 = 0; + a16 = 7; + a1 = 12; + a7 = 0; + a9 = 7; + a21 = 10; + a19 = 1; + return -1; + } else if((((((((a3==1)&&((((a3==1)&&(a19==1))&&(a16==7))&&(a28==1)))&&(a21==11))&&(a20==1))&&!(a7==1))&&!(a14==1))&&(!(a24==1)&&(!(a26==1)&&(((a9==8)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a1==13)))&&(a17==2)))))){ + a1 = 12; + a26 = 0; + a5 = 6; + a9 = 9; + a21 = 10; + a16 = 8; + a18 = 0; + return 25; + } else if((((a16==7)&&((a19==2)&&(((a28==1)&&(!(a24==1)&&((a1==14)&&((a28==1)&&(((((a5==5)||(a5==6))&&(input==5))&&(a9==8))&&(a21==10))))))&&!(a20==1))))&&(!(a4==1)&&(!(a2==1)||((a17==2)&&((a24==1)||(a11==1))))))){ + a24 = 0; + a27 = 0; + a19 = 3; + a6 = 1; + a1 = 12; + a5 = 6; + a9 = 11; + return 25; + } else if((((a20==1)&&(((((a13==1)&&(a1==14))||(a24==1))&&(a6==1))&&!(a26==1)))&&((((((a28==1)&&(((((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))&&(input==6))&&(a16==10))&&(a21==10)))&&(a23==1))&&(a19==5))&&(a11==1))&&(a17==2)))){ + a19 = 2; + a3 = 1; + a24 = 0; + a9 = 7; + a5 = 6; + a28 = 1; + return 21; + } else if((((a3==1)&&(((((a16==7)&&(a12==1))&&(a21==11))&&(a17==2))&&!(a24==1)))&&((((a1==12)&&(((a13==1)&&((((a20==1)&&((a19==3)&&(input==1)))&&!(a26==1))&&(a9==7)))&&(a5==5)))&&!(a26==1))&&(a23==1)))){ + a26 = 0; + a4 = 0; + a19 = 1; + a5 = 4; + a21 = 10; + a13 = 1; + return -1; + } else if((((a17==2)&&(!(a6==1)||((a28==1)||!(a6==1))))&&(((!(a20==1)&&((a16==8)&&((a9==11)&&(((((a13==1)&&(!(a26==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5))))))&&(a13==1))&&(a21==11))&&(a2==1)))))&&(a19==4))&&(a1==12)))){ + a20 = 1; + a23 = 1; + a12 = 1; + a16 = 7; + a21 = 10; + a5 = 4; + a27 = 0; + a19 = 1; + a9 = 7; + return -1; + } else if(((!(a4==1)&&((a21==12)&&((((a20==1)&&((((((a9==11)&&((a1==14)&&(a5==6)))&&(a19==4))||(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==5)))||((a19==5)&&(((a1==12)&&(a5==5))&&(a9==7))))&&(input==1)))&&(a17==2))&&(a11==1))))&&((((a28==1)&&((a24==1)||((a6==1)&&(a16==7))))&&!(a0==1))||!(a23==1)))){ + a1 = 14; + a5 = 6; + a7 = 0; + a21 = 11; + a16 = 9; + a11 = 1; + a19 = 3; + a12 = 1; + a9 = 7; + return 23; + } else if(((((a2==1)&&(((a16==7)&&((a1==14)&&((a17==2)&&((!(a13==1)||(a12==1))&&(a21==12)))))||(a7==1)))||(a24==1))&&((!(a14==1)&&((((((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))&&(input==5))&&(a11==1))&&(a19==3)))&&(a20==1)))){ + a1 = 13; + a19 = 5; + a24 = 0; + a16 = 8; + a27 = 0; + a9 = 7; + a5 = 5; + a18 = 0; + return 22; + } else if(((((((!(a27==1)&&(a3==1))||!(a2==1))&&(a20==1))&&(a16==8))&&(a17==2))&&(((a21==11)&&((a19==1)&&(!(a14==1)&&((((!(a26==1)&&(((a5==5)||(a5==6))&&(input==1)))&&!(a14==1))&&(a1==12))&&!(a8==1)))))&&(a9==11)))){ + a5 = 5; + a9 = 9; + a19 = 3; + a16 = 10; + a8 = 0; + a21 = 10; + a11 = 1; + a24 = 0; + return 22; + } else if((((a27==1)||((!(a23==1)||((a21==12)&&(((a5==5)&&((a13==1)&&(a20==1)))||(a8==1))))&&(a11==1)))&&((((((a9==11)&&(((input==3)&&(a17==2))&&(a23==1)))&&!(a7==1))&&(a16==10))&&(a1==13))&&(a19==2)))){ + a12 = 1; + a8 = 0; + a9 = 7; + a1 = 12; + a5 = 4; + a28 = 1; + a16 = 7; + a19 = 1; + a21 = 10; + return -1; + } else if((((a27==1)&&(((!(a3==1)&&(((((((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(input==1))&&(a1==13))&&!(a20==1))&&!(a3==1)))&&!(a2==1))&&(a16==7)))&&(((((a26==1)&&((a23==1)&&!(a11==1)))&&(a17==2))&&(a19==1))&&(a21==12)))){ + a14 = 1; + a5 = 5; + a19 = 3; + a2 = 0; + a9 = 11; + a20 = 1; + a21 = 10; + return 21; + } else if(((((a17==2)&&(((!(a8==1)&&(((input==3)&&(((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))&&(a2==1)))&&(a6==1))&&(a1==14)))&&!(a20==1))&&(((a19==3)&&(((((a6==1)&&(a21==10))||!(a3==1))&&!(a4==1))&&(a28==1)))&&(a16==8)))){ + a19 = 1; + a7 = 0; + a23 = 1; + a5 = 4; + a1 = 12; + a12 = 1; + a16 = 7; + a9 = 7; + a20 = 1; + return -1; + } else if((((a9==7)&&((a20==1)&&(!(a8==1)&&(((a17==2)&&((input==3)&&(a1==12)))&&(a11==1)))))&&(((a19==4)&&(((((((a11==1)&&(a28==1))&&!(a14==1))&&(a3==1))&&(a11==1))&&(a5==5))&&(a16==11)))&&(a21==12)))){ + a21 = 10; + a23 = 1; + a16 = 7; + a3 = 1; + a8 = 0; + a5 = 4; + a19 = 1; + return -1; + } else if((((a4==1)||((((((a7==1)||(((a21==11)&&(a2==1))&&!(a20==1)))&&!(a14==1))&&(a16==8))&&!(a18==1))&&(a19==3)))&&((a12==1)&&((a1==13)&&((((input==5)&&((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a5==4)&&(a9==11))))&&(a17==2))&&!(a8==1)))))){ + a19 = 5; + a5 = 6; + a24 = 0; + a1 = 14; + a21 = 10; + a16 = 9; + a11 = 1; + a12 = 1; + a9 = 7; + a20 = 1; + return 23; + } else if((((a19==4)&&(((a16==10)&&(a11==1))&&(a17==2)))&&(!(a14==1)&&((((!(a24==1)&&((((a1==14)&&(!(a0==1)&&(((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))&&(input==3))))&&!(a24==1))&&(a2==1)))&&!(a20==1))&&(a2==1))&&(a21==11))))){ + if((a28==1)){ + a5 = 6; + a20 = 1; + a16 = 7; + a2 = 0; + a21 = 10; + a9 = 9; + a19 = 1; + a18 = 1; + }else{ + a28 = 0; + a16 = 8; + a21 = 10; + a20 = 1; + a7 = 1; + a9 = 10; + a5 = 6; + a1 = 13; + a4 = 1; + } + return 25; + } else if((((a23==1)&&((a6==1)&&(((a3==1)&&(((a21==10)&&((a16==10)&&((((input==4)&&((a5==4)||(a5==5)))&&!(a18==1))&&(a9==10))))&&(a19==2)))&&(a20==1))))&&(!(a12==1)||(((!(a3==1)||(a3==1))&&(a17==2))&&(a1==14))))){ + a16 = 7; + a8 = 0; + a9 = 7; + a19 = 1; + a13 = 1; + a1 = 12; + a11 = 1; + a5 = 4; + return -1; + } else if((((!(a8==1)&&((a23==1)&&(!(a20==1)&&((a19==4)&&((input==5)&&((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4))))))))&&(a11==1))&&(((((((a16==10)&&((a21==11)&&(a6==1)))&&(a1==13))&&(a23==1))&&!(a4==1))&&(a17==2))||(a0==1)))){ + a5 = 4; + a19 = 1; + a9 = 7; + a21 = 12; + a27 = 1; + a22 = 0; + a1 = 12; + a10 = 1; + return -1; + } else if((((a16==9)&&(((a11==1)&&(((a7==1)||(!(a14==1)&&(!(a12==1)||((a11==1)&&(a13==1)))))&&(a13==1)))&&(a19==2)))&&((a20==1)&&((((a17==2)&&((input==4)&&((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4)))))&&(a21==12))&&(a1==12))))){ + a19 = 1; + a21 = 10; + a26 = 0; + a9 = 7; + a5 = 4; + a27 = 0; + a16 = 7; + return -1; + } else if((((a1==12)&&((!(a4==1)&&(!(a14==1)&&((((a16==7)&&(input==6))&&(a21==11))&&(a9==7))))&&(a13==1)))&&((a5==4)&&(!(a20==1)&&((a26==1)||((((!(a18==1)&&(a2==1))&&(a17==2))&&(a19==4))||!(a28==1))))))){ + a26 = 0; + a24 = 0; + a16 = 11; + a9 = 9; + a5 = 6; + a27 = 0; + a19 = 3; + a20 = 1; + return 26; + } else if((((a6==1)&&((a19==5)&&((a23==1)&&(!(a24==1)&&(((a16==10)&&(((a5==5)||(a5==6))&&(input==3)))&&(a11==1))))))&&((((a9==7)&&(((a1==14)&&(((a12==1)&&(a13==1))&&!(a24==1)))&&!(a20==1)))&&(a21==10))&&(a17==2)))){ + a10 = 0; + a19 = 2; + a21 = 11; + a29 = 1; + a5 = 4; + a16 = 8; + a9 = 8; + a1 = 12; + a11 = 0; + return -1; + } else if(((((a1==12)&&(!(a20==1)&&(((a17==2)&&(a11==1))||(a18==1))))&&(a12==1))&&((a23==1)&&(((!(a26==1)&&((((a21==10)&&((((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8))))&&(input==1)))&&!(a7==1))&&!(a24==1)))&&(a16==8))&&(a19==1))))){ + a9 = 9; + a19 = 4; + a1 = 14; + a6 = 1; + a0 = 0; + a5 = 4; + a13 = 1; + a20 = 1; + a21 = 12; + return 25; + } else if(((((a16==8)&&((((a4==1)&&(((input==6)&&(a20==1))&&!(a28==1)))&&(a1==14))&&!(a2==1)))&&(a5==6))&&((a19==3)&&((a21==12)&&(!(a12==1)&&((((a9==7)&&((a11==1)&&(a17==2)))&&!(a13==1))&&!(a12==1))))))){ + a9 = 9; + a19 = 5; + a21 = 11; + a29 = 1; + a5 = 4; + a20 = 0; + a16 = 7; + return 21; + } else if(((((((a19==2)&&(((a16==10)&&((input==4)&&!(a20==1)))&&!(a14==1)))&&!(a0==1))&&(a5==5))&&(a21==10))&&((a6==1)&&(((((((a13==1)||(a18==1))||(a24==1))&&(a9==10))&&!(a26==1))&&(a17==2))&&(a1==12))))){ + a1 = 13; + a26 = 1; + a19 = 3; + a9 = 7; + a20 = 1; + a16 = 8; + a25 = 1; + a4 = 1; + return -1; + } else if((((a19==2)&&(((a6==1)&&(a6==1))&&!(a8==1)))&&((!(a20==1)&&((!(a26==1)&&((a16==9)&&(!(a14==1)&&((((((a9==11)&&((a1==13)&&(a5==6)))||(((a1==14)&&(a5==4))&&(a9==7)))&&(input==1))&&(a17==2))&&(a13==1)))))&&!(a8==1)))&&(a21==11)))){ + if((a0==1)){ + a9 = 7; + a19 = 3; + a21 = 10; + a13 = 0; + a18 = 1; + a5 = 5; + a16 = 11; + a10 = 1; + a1 = 14; + }else{ + a21 = 10; + a16 = 8; + a1 = 14; + a5 = 4; + a10 = 1; + a19 = 3; + a9 = 7; + a11 = 0; + } + return 21; + } else if((((a1==14)&&(!(a24==1)&&((a21==11)&&((!(a8==1)&&((a28==1)&&((input==5)&&((a5==5)||(a5==6)))))&&!(a26==1)))))&&((a19==2)&&((((a4==1)||(((a9==8)&&((a16==8)&&(a3==1)))&&(a20==1)))||!(a28==1))&&(a17==2))))){ + a19 = 4; + a21 = 10; + a13 = 1; + a0 = 0; + a16 = 10; + a5 = 5; + a12 = 1; + return 26; + } else if((((a16==8)&&((a20==1)&&((((a12==1)&&(a12==1))&&(a1==13))||(a18==1))))&&((((a9==8)&&(!(a18==1)&&(((((a23==1)&&(((a5==4)||(a5==5))&&(input==6)))&&!(a26==1))&&(a17==2))&&!(a0==1))))&&(a21==12))&&(a19==4)))){ + a21 = 10; + a9 = 7; + a4 = 0; + a19 = 1; + a3 = 1; + a26 = 0; + a1 = 12; + a16 = 7; + a5 = 4; + return -1; + } else if((((a1==13)&&((((a19==1)&&((a2==1)&&(((a17==2)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==3)))&&(a20==1))))&&!(a8==1))&&(a21==11)))&&((a16==9)&&((a28==1)&&(((a24==1)||(!(a7==1)&&(a3==1)))&&!(a26==1)))))){ + a1 = 12; + a21 = 10; + a16 = 7; + a3 = 1; + a2 = 1; + a18 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if((((((a19==2)&&(((!(a18==1)&&((input==5)&&((a5==6)||((a5==4)||(a5==5)))))&&(a2==1))&&(a23==1)))&&(a6==1))&&(a21==10))&&(((((a1==14)&&((a9==7)&&((a20==1)&&(!(a26==1)&&(a6==1)))))||!(a3==1))&&(a17==2))&&(a16==9)))){ + a16 = 7; + a27 = 0; + a1 = 12; + a28 = 1; + a23 = 1; + a5 = 4; + a19 = 1; + return -1; + } else if(((((!(a4==1)&&((a28==1)&&((a21==12)&&(!(a8==1)&&((((input==5)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5))))&&(a17==2))&&(a20==1))))))&&!(a24==1))&&!(a24==1))&&(!(a28==1)||((a19==5)&&(((a1==12)&&(a11==1))&&(a16==7)))))){ + a16 = 9; + a21 = 11; + a5 = 5; + a19 = 4; + a13 = 1; + a11 = 1; + a9 = 7; + a23 = 1; + a1 = 13; + return 23; + } else if((((a17==2)&&((!(a24==1)&&(((a19==4)&&((a21==10)&&(((((a13==1)&&((input==4)&&((a5==4)||(a5==5))))&&!(a8==1))&&!(a18==1))&&(a9==7))))&&(a16==7)))&&(a1==14)))&&((((a3==1)&&(a3==1))&&(a20==1))&&(a2==1)))){ + a11 = 1; + a19 = 5; + a4 = 0; + a21 = 11; + a7 = 0; + a5 = 6; + return 21; + } else if((((a5==5)&&((a2==1)&&((a19==3)&&(a11==1))))&&(!(a26==1)&&(!(a18==1)&&((((a9==7)&&((a20==1)&&((a11==1)&&((((a12==1)&&((input==6)&&(a17==2)))&&(a1==12))&&(a21==12)))))&&(a16==11))&&(a3==1)))))){ + a0 = 0; + a2 = 1; + a19 = 1; + a5 = 4; + a21 = 10; + a24 = 0; + a16 = 7; + return -1; + } else if(((((((a21==11)&&((a16==9)&&((((a18==1)||(!(a27==1)&&(a28==1)))&&!(a7==1))||(a14==1))))&&(a19==3))&&(a20==1))&&(a1==13))&&((a17==2)&&(((((a9==11)&&(input==4))&&(a13==1))&&(a5==6))&&(a6==1))))){ + a19 = 1; + a21 = 10; + a16 = 7; + a5 = 4; + a24 = 0; + a1 = 12; + a26 = 0; + a7 = 0; + a9 = 7; + return -1; + } else if(((((a2==1)&&((a1==13)&&((a9==9)&&((!(a24==1)&&(((a21==11)&&((input==6)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a8==1)))&&(a19==1)))))&&(a20==1))&&(((a17==2)&&((a16==8)&&(!(a2==1)||((a28==1)&&!(a7==1)))))||!(a12==1)))){ + a2 = 1; + a1 = 12; + a18 = 0; + a5 = 4; + a9 = 7; + a21 = 10; + a8 = 0; + a16 = 7; + return -1; + } else if((((a16==9)&&(((a2==1)&&(a21==10))&&!(a24==1)))&&(!(a8==1)&&(!(a7==1)&&((a3==1)&&(!(a20==1)&&(!(a27==1)&&(((a19==5)&&((((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==1))&&!(a26==1))&&(a17==2)))&&(a1==13))))))))){ + a9 = 7; + a10 = 0; + a1 = 12; + a22 = 1; + a23 = 0; + a21 = 11; + a19 = 2; + a16 = 10; + a5 = 6; + return -1; + } else if((((a1==13)&&(!(a27==1)&&((a28==1)&&((input==4)&&(a5==4)))))&&((a9==7)&&((a21==10)&&(((a19==5)&&(((a17==2)&&((a8==1)||((((a12==1)&&!(a8==1))&&!(a8==1))||(a4==1))))&&(a20==1)))&&(a16==7)))))){ + a1 = 12; + a19 = 1; + a4 = 0; + a6 = 1; + a18 = 0; + return -1; + } else if(((!(a24==1)&&((((a3==1)&&(a1==13))&&(a6==1))||(a4==1)))&&(((a17==2)&&(!(a20==1)&&((a16==10)&&((((!(a14==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&(a9==11)))&&(a3==1))&&(a21==12))&&!(a27==1)))))&&(a19==4)))){ + a27 = 1; + a5 = 4; + a1 = 12; + a9 = 9; + a19 = 1; + a22 = 0; + a7 = 1; + return -1; + } else if(((((a21==10)&&((((a1==12)&&((((input==5)&&((a5==4)||(a5==5)))&&(a19==3))&&(a12==1)))&&(a13==1))&&!(a20==1)))&&!(a14==1))&&(((((((a13==1)||(a26==1))&&(a2==1))||!(a3==1))&&(a17==2))&&(a16==10))&&(a9==8)))){ + a20 = 1; + a5 = 5; + a21 = 12; + a16 = 7; + a7 = 1; + a8 = 1; + a12 = 0; + a1 = 14; + a19 = 1; + return -1; + } else if(((!(a7==1)&&((a23==1)&&((((a17==2)&&((input==6)&&((a5==5)||(a5==6))))&&!(a14==1))&&!(a7==1))))&&((a1==14)&&(((a21==11)&&(((a19==4)&&((((a2==1)&&(a16==11))&&!(a8==1))&&(a3==1)))&&(a9==7)))&&(a20==1))))){ + a6 = 1; + a21 = 10; + a16 = 7; + a27 = 0; + a3 = 1; + a1 = 12; + a5 = 4; + a19 = 1; + return -1; + } else if((((a17==2)&&((((a16==10)&&(!(a4==1)&&(((a1==13)&&(input==6))&&(a20==1))))&&(a9==10))&&(a5==5)))&&((a19==4)&&((a12==1)&&((((a3==1)&&(((a11==1)&&(a23==1))||(a24==1)))&&(a21==11))&&!(a7==1)))))){ + a5 = 4; + a27 = 0; + a16 = 7; + a2 = 1; + a21 = 10; + a28 = 1; + return 21; + } else if((((a16==10)&&(((((a27==1)&&(((a6==1)&&(a26==1))&&!(a12==1)))&&(a17==2))&&(a20==1))&&(a19==1)))&&(((a21==11)&&((a14==1)&&(((a4==1)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==1)))&&!(a12==1))))&&(a1==12)))){ + a1 = 14; + a5 = 4; + a9 = 9; + a21 = 10; + a16 = 7; + a28 = 0; + a7 = 1; + a18 = 1; + return -1; + } else if(((((a1==12)&&((a2==1)&&((((((((a21==11)&&(a23==1))&&(a9==11))||!(a12==1))&&(a6==1))||!(a23==1))&&(a20==1))&&!(a24==1))))&&(a17==2))&&(((((input==3)&&(a19==5))&&(a16==8))&&(a5==4))&&!(a14==1)))){ + a14 = 0; + a19 = 1; + a9 = 7; + a12 = 1; + a21 = 10; + a16 = 7; + a2 = 1; + return -1; + } else if((((a17==2)&&(((a5==6)&&((!(a13==1)||(((a28==1)&&(a6==1))&&(a19==4)))&&!(a20==1)))&&(a28==1)))&&((a23==1)&&(!(a18==1)&&((a16==10)&&((a21==11)&&((((input==5)&&(a1==14))&&!(a4==1))&&(a9==10)))))))){ + a19 = 1; + a14 = 1; + a13 = 0; + a16 = 8; + a4 = 1; + a9 = 11; + a21 = 12; + return 21; + } else if((((a17==2)&&((((a16==10)&&((((a9==10)&&((a12==1)&&(a1==12)))&&(a20==1))&&!(a27==1)))&&!(a14==1))&&!(a18==1)))&&(!(a26==1)&&(!(a8==1)&&(!(a24==1)&&((a19==4)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&(a21==12)))))))){ + a26 = 0; + a21 = 10; + a5 = 4; + a11 = 1; + a19 = 1; + a16 = 7; + a7 = 0; + a9 = 7; + return -1; + } else if(((!(a2==1)||(!(a0==1)&&(((((a6==1)&&(a17==2))&&(a19==2))&&(a20==1))&&(a12==1))))&&((a12==1)&&((a16==8)&&((((a1==13)&&(!(a0==1)&&((input==3)&&(((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))))))&&(a21==12))&&(a13==1)))))){ + a21 = 10; + a16 = 7; + a13 = 1; + a24 = 0; + a19 = 1; + a1 = 12; + a5 = 4; + a9 = 7; + return -1; + } else if((((!(a24==1)&&(((a19==5)&&(((!(a20==1)&&(((((input==3)&&(((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))))&&(a6==1))&&(a21==12))&&(a3==1)))&&(a17==2))&&!(a0==1)))&&(a16==7)))&&(a12==1))&&(((a23==1)&&(a11==1))&&(a1==13)))){ + a20 = 1; + a9 = 7; + a18 = 0; + a19 = 1; + a5 = 4; + a24 = 0; + a21 = 10; + a1 = 12; + return -1; + } else if((((((((a28==1)&&(((a1==12)&&((a19==3)&&((a6==1)&&((a2==1)||(a26==1)))))&&(a9==8)))&&(a17==2))&&!(a20==1))&&(a16==7))&&(a21==12))&&(!(a14==1)&&(((((a5==4)||(a5==5))&&(input==1))&&(a11==1))&&!(a26==1))))){ + a9 = 10; + a20 = 1; + a0 = 0; + a16 = 9; + a13 = 1; + a5 = 6; + a19 = 4; + a8 = 0; + a21 = 11; + return 23; + } else if(((!(a13==1)||((((a16==8)&&((a6==1)&&(a9==10)))&&!(a20==1))||(a4==1)))&&((((a19==2)&&((a6==1)&&((a1==13)&&((!(a0==1)&&(((input==5)&&(a5==5))&&(a12==1)))&&(a17==2)))))&&(a21==12))&&(a13==1)))){ + a20 = 1; + a16 = 7; + a1 = 14; + a27 = 1; + a9 = 11; + a13 = 0; + a5 = 4; + a21 = 10; + a19 = 1; + a29 = 1; + return 25; + } else if((((a19==1)&&(((a20==1)&&(((a13==1)&&(!(a18==1)&&((((a5==4)||(a5==5))&&(input==6))&&(a21==10))))&&(a13==1)))&&(a17==2)))&&((a1==12)&&(((a14==1)||(((a16==9)&&((a3==1)||(a4==1)))&&!(a26==1)))&&(a9==10))))){ + a9 = 7; + a14 = 0; + a24 = 0; + a5 = 4; + a16 = 7; + a26 = 0; + return -1; + } else if((((a20==1)&&((a12==1)&&((a21==10)&&((a19==5)&&((a28==1)&&(((a6==1)&&(a6==1))&&!(a8==1)))))))&&((a12==1)&&((a1==14)&&(((((input==6)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&(a16==9))&&!(a8==1))&&(a17==2)))))){ + if((a0==1)){ + a5 = 4; + a1 = 12; + a19 = 3; + a20 = 0; + a14 = 0; + a16 = 8; + a23 = 1; + a13 = 1; + a9 = 11; + }else{ + a9 = 9; + a18 = 0; + a27 = 0; + a6 = 1; + a16 = 10; + a1 = 13; + a5 = 6; + } + return 21; + } else if(((((((a27==1)||(((a1==13)&&(((a17==2)&&(a3==1))&&(a9==11)))&&(a21==10)))&&(a12==1))&&!(a14==1))&&!(a4==1))&&((((a20==1)&&((a16==11)&&(!(a27==1)&&((input==6)&&((a5==4)||(a5==5))))))&&(a19==2))&&!(a4==1)))){ + a5 = 4; + a1 = 12; + a16 = 7; + a7 = 0; + a9 = 7; + a2 = 1; + a19 = 1; + a12 = 1; + return -1; + } else if(((((a2==1)&&((((a16==7)&&(((a1==14)&&((a21==12)&&(input==3)))&&(a17==2)))&&(a23==1))&&(a20==1)))&&!(a24==1))&&(!(a11==1)||((((((a6==1)&&(a19==5))||!(a23==1))||(a18==1))&&(a9==7))&&(a5==5))))){ + a12 = 1; + a19 = 1; + a23 = 1; + a1 = 12; + a16 = 9; + a5 = 6; + a2 = 1; + return 26; + } else if((((((a17==2)&&((!(a2==1)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))&&(a21==10)))&&(a20==1))&&!(a13==1))&&(((a9==11)&&(!(a3==1)&&((((((a2==1)&&(a1==13))&&(a16==8))&&(a26==1))&&!(a12==1))&&(a19==3))))&&!(a23==1)))){ + a5 = 4; + a16 = 7; + a19 = 2; + a11 = 0; + a27 = 1; + a28 = 0; + a1 = 12; + return -1; + } else if((((a1==12)&&((a9==10)&&(!(a8==1)&&(((a17==2)&&(((a5==4)||(a5==5))&&(input==3)))&&!(a7==1)))))&&(((a16==10)&&((a19==3)&&((((((a3==1)&&!(a20==1))&&(a13==1))&&(a21==12))&&!(a8==1))||!(a2==1))))&&(a12==1)))){ + a9 = 11; + a16 = 8; + a10 = 0; + a1 = 14; + a19 = 4; + a26 = 1; + a5 = 6; + a28 = 0; + a21 = 10; + return -1; + } else if(((((a20==1)&&((a16==10)&&(((((a1==13)&&(input==5))&&!(a8==1))&&(a21==10))&&(a5==5))))&&!(a0==1))&&((a19==5)&&((!(a3==1)||(((!(a7==1)&&(!(a3==1)||(a3==1)))||!(a2==1))&&(a9==11)))&&(a17==2))))){ + a14 = 0; + a26 = 0; + a1 = 14; + a19 = 2; + a5 = 6; + a9 = 9; + a4 = 0; + a16 = 9; + return 21; + } else if((((a19==5)&&((((!(a0==1)&&((a2==1)&&(a11==1)))&&(a16==10))||(a7==1))&&(a21==11)))&&(((a17==2)&&((a20==1)&&(!(a7==1)&&((((input==3)&&(((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))))&&(a1==13))&&!(a26==1)))))&&!(a27==1)))){ + a24 = 0; + a23 = 1; + a19 = 1; + a5 = 4; + a14 = 0; + a9 = 7; + a1 = 12; + a21 = 10; + a16 = 7; + return -1; + } else if(((((!(a8==1)&&((a17==2)&&(((!(a27==1)&&(!(a20==1)&&(input==1)))&&(a19==1))&&!(a27==1))))&&(a16==8))&&(a1==14))&&((a6==1)&&(!(a3==1)||(((a9==11)&&((a5==6)&&((a6==1)||!(a13==1))))&&(a21==11)))))){ + a1 = 12; + a24 = 0; + a8 = 0; + a20 = 1; + a5 = 4; + a16 = 7; + a9 = 7; + a7 = 0; + a21 = 10; + return -1; + } else if(((((((a16==9)&&(((a19==4)&&(a23==1))&&(a21==12)))&&(a17==2))&&(a9==10))||!(a12==1))&&(!(a7==1)&&((a2==1)&&((a23==1)&&((((((input==1)&&((a5==5)||(a5==6)))&&!(a20==1))&&(a1==14))&&!(a0==1))&&!(a24==1))))))){ + a20 = 1; + a14 = 1; + a4 = 1; + a9 = 11; + a21 = 10; + a5 = 6; + a6 = 0; + a16 = 7; + a19 = 1; + return -1; + } else if((((a13==1)&&((a13==1)&&(((a19==4)&&(((((a17==2)&&(((input==1)&&(((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))))&&(a1==12)))&&(a23==1))&&(a20==1))&&(a16==11)))&&!(a27==1))))&&(!(a13==1)||(((a2==1)&&(a21==10))||!(a28==1))))){ + a9 = 7; + a5 = 4; + a19 = 1; + a16 = 7; + a27 = 0; + a28 = 1; + a14 = 0; + return -1; + } else if((((a4==1)||((a21==11)&&(((a12==1)&&(a9==8))&&(a1==12))))&&(!(a24==1)&&(!(a4==1)&&(((((((a17==2)&&((a20==1)&&((input==4)&&((a5==5)||(a5==6)))))&&(a6==1))&&(a19==1))&&(a12==1))&&(a16==8))&&!(a18==1)))))){ + a2 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + a0 = 0; + a21 = 10; + a4 = 0; + return -1; + } else if(((((a17==2)&&(((!(a23==1)||((a16==10)&&(!(a23==1)||((a1==14)&&(a2==1)))))&&(a19==3))&&(a21==12)))&&(a20==1))&&((!(a26==1)&&(((a23==1)&&((a9==8)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6)))))&&!(a7==1)))&&(a13==1)))){ + a21 = 10; + a9 = 9; + a26 = 0; + a1 = 13; + a5 = 5; + a6 = 1; + a19 = 2; + a16 = 7; + a27 = 0; + return 25; + } else if(((!(a4==1)&&(((a23==1)&&((a17==2)&&((!(a20==1)&&((a21==10)&&((input==4)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))))&&!(a4==1))))&&(a2==1)))&&((a19==3)&&(((!(a12==1)||((a12==1)&&(a1==14)))&&!(a24==1))&&(a16==10))))){ + a0 = 1; + a1 = 12; + a11 = 0; + a16 = 8; + a20 = 1; + a21 = 11; + a5 = 4; + a19 = 2; + a9 = 7; + a12 = 0; + return -1; + } else if(((((((a21==11)&&(((a2==1)&&(!(a4==1)&&((a5==4)&&(input==5))))&&(a11==1)))&&(a17==2))&&(a12==1))&&(a9==8))&&(((a16==7)&&((a1==13)&&((!(a7==1)&&((a11==1)||(a7==1)))&&(a19==5))))&&(a20==1)))){ + a9 = 7; + a27 = 0; + a1 = 12; + a16 = 8; + a28 = 1; + a7 = 0; + a19 = 2; + a21 = 12; + return 21; + } else if((((!(a4==1)&&((a1==14)&&(!(a28==1)||((a18==1)||(!(a12==1)||(a2==1))))))&&(a17==2))&&((((a16==9)&&(!(a20==1)&&((a28==1)&&((((input==6)&&((a5==5)||(a5==6)))&&(a21==10))&&(a28==1)))))&&(a9==9))&&(a19==2)))){ + a19 = 3; + a3 = 0; + a1 = 12; + a11 = 0; + a16 = 8; + a14 = 1; + a9 = 10; + a5 = 5; + a20 = 1; + a21 = 12; + return 21; + } else if((((a21==12)&&(((((((a19==4)&&((input==4)&&(a5==6)))&&(a17==2))&&(a23==1))&&!(a27==1))&&(a2==1))&&(a3==1)))&&(((a1==12)&&(((a9==9)&&((a12==1)&&((a13==1)&&(a20==1))))||(a26==1)))&&(a16==7)))){ + a21 = 11; + a23 = 1; + a1 = 14; + a16 = 9; + a19 = 1; + a2 = 1; + a9 = 8; + return 23; + } else if((((a5==4)&&((((a17==2)&&(((a1==13)&&(input==4))&&(a19==2)))&&!(a4==1))&&(a21==12)))&&((a14==1)||((!(a27==1)&&((a16==7)&&(((((a2==1)&&(a2==1))||!(a23==1))&&(a20==1))&&(a6==1))))&&(a9==11))))){ + a12 = 1; + a9 = 7; + a14 = 0; + a0 = 0; + a1 = 12; + a19 = 1; + a21 = 10; + return -1; + } else if(((((a9==10)&&((a16==10)&&((a2==1)&&((a23==1)&&((a19==4)&&(input==1))))))&&(a21==10))&&(!(a11==1)||(((a5==5)&&((((a17==2)&&(((a11==1)&&(a6==1))&&!(a4==1)))&&(a20==1))&&(a1==13)))||(a7==1))))){ + a9 = 7; + a4 = 0; + a16 = 7; + a27 = 0; + a24 = 0; + a19 = 1; + a5 = 4; + a1 = 12; + return -1; + } else if((((a28==1)&&((a17==2)&&(!(a18==1)&&((a1==12)&&(((((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==3))&&(a19==5))&&(a16==9))&&(a20==1))))))&&(!(a23==1)||(((a28==1)&&((a6==1)&&((a3==1)&&(a21==11))))&&(a28==1))))){ + a21 = 10; + a0 = 0; + a5 = 4; + a19 = 1; + a9 = 7; + a6 = 1; + a16 = 7; + a26 = 0; + return -1; + } else if((((((((a16==9)&&(!(a7==1)&&((input==1)&&(a9==8))))&&!(a4==1))&&(a12==1))&&(a28==1))&&(a21==11))&&((a5==6)&&((((a17==2)&&(((a26==1)||((a28==1)&&!(a20==1)))||(a8==1)))&&(a1==14))&&(a19==3))))){ + if((a6==1)){ + a5 = 4; + a16 = 7; + a21 = 10; + a27 = 1; + a20 = 1; + a2 = 0; + a9 = 10; + a6 = 0; + a19 = 1; + }else{ + a9 = 10; + a11 = 0; + a29 = 1; + a5 = 4; + a20 = 1; + a16 = 8; + a21 = 10; + } + return 22; + } else if(((((a9==8)&&(((a20==1)&&((((a5==4)&&((a13==1)&&((a16==11)&&(((a6==1)&&(a3==1))&&(a1==14)))))&&!(a24==1))&&(a6==1)))&&(a19==4)))&&(a23==1))&&(((a21==11)&&((input==1)&&(a17==2)))&&!(a24==1)))){ + a9 = 7; + a0 = 0; + a1 = 12; + a16 = 7; + a19 = 1; + a21 = 10; + a27 = 0; + a7 = 0; + return -1; + } else if((((a11==1)&&(!(a14==1)&&((a1==12)&&(((a21==12)&&(!(a14==1)&&((((((a5==5)||(a5==6))&&(input==6))&&!(a8==1))&&(a16==8))&&(a17==2))))&&(a20==1)))))&&((a19==1)&&(!(a24==1)&&(((a9==9)&&(a6==1))||!(a6==1)))))){ + a13 = 1; + a12 = 1; + a1 = 14; + a5 = 6; + a0 = 0; + a21 = 11; + a9 = 11; + return -1; + } else if(((!(a7==1)&&(((((a11==1)&&((a17==2)&&((a9==9)&&(input==1))))&&!(a8==1))&&(a20==1))&&(a5==4)))&&((a16==9)&&(((a21==12)&&(!(a12==1)||(((!(a13==1)||(a12==1))&&(a1==13))&&!(a7==1))))&&(a19==4))))){ + a5 = 6; + a16 = 7; + a9 = 10; + a24 = 0; + a14 = 0; + a21 = 10; + a19 = 2; + return 23; + } else if(((!(a4==1)&&((a23==1)&&(((a1==13)&&(((a21==10)&&(a2==1))&&(a20==1)))&&(a17==2))))&&((((!(a24==1)&&((a19==5)&&((a16==7)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==1)))))&&(a13==1))&&!(a8==1))&&!(a4==1)))){ + a9 = 7; + a19 = 1; + a6 = 1; + a11 = 1; + a18 = 0; + a5 = 4; + a1 = 12; + return -1; + } else if((((a12==1)&&((a3==1)&&((((input==3)&&((((a1==12)&&(a5==6))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==13)))))&&(a6==1))&&!(a18==1))))&&(((a16==9)&&((a18==1)||(!(a14==1)&&((a21==11)&&(!(a20==1)&&((a3==1)&&(a19==3)))))))&&(a17==2)))){ + if((a19==2)){ + a1 = 13; + a20 = 1; + a21 = 10; + a9 = 8; + a15 = 0; + a28 = 0; + a19 = 1; + a16 = 7; + a5 = 6; + }else{ + a9 = 7; + a22 = 0; + a1 = 13; + a5 = 6; + a21 = 12; + a14 = 1; + a19 = 5; + } + return -1; + } else if((((a16==9)&&((a19==2)&&(((a21==11)&&((a2==1)&&(a3==1)))&&(a17==2))))&&((!(a7==1)&&((a12==1)&&((!(a24==1)&&((a13==1)&&(((((a9==11)&&((a5==5)&&(a1==12)))||((a9==11)&&((a5==6)&&(a1==12))))||(((a5==4)&&(a1==13))&&(a9==7)))&&(input==4))))&&(a23==1))))&&!(a20==1)))){ + if((a9==10)){ + a5 = 6; + a18 = 1; + a21 = 12; + a16 = 10; + a9 = 8; + a4 = 1; + a19 = 4; + a1 = 13; + a2 = 0; + a20 = 1; + }else{ + a27 = 1; + a16 = 7; + a5 = 4; + a19 = 1; + a9 = 10; + a21 = 10; + a29 = 1; + a25 = 0; + a1 = 13; + a20 = 1; + } + return -1; + } else if(((((!(a26==1)&&((a21==10)&&((a0==1)||(((a19==3)&&((((!(a20==1)&&(a28==1))&&!(a7==1))&&(a5==6))&&(a17==2)))&&(a16==10)))))||!(a6==1))||(a4==1))&&((a2==1)&&((a9==11)&&((input==1)&&(a1==12)))))){ + a20 = 1; + a16 = 7; + a15 = 0; + a9 = 9; + a5 = 5; + a22 = 0; + a1 = 14; + a19 = 1; + return 22; + } else if((((!(a7==1)&&(((((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==3))&&(a16==10))&&(a23==1))&&(a19==2)))&&(a12==1))&&(!(a20==1)&&(((!(a18==1)&&(((a17==2)&&((a24==1)||(a2==1)))||(a24==1)))&&(a21==11))&&(a1==12))))){ + a0 = 1; + a15 = 0; + a21 = 10; + a5 = 4; + a16 = 7; + a9 = 9; + a20 = 1; + a19 = 1; + a25 = 0; + return 25; + } else if(((!(a13==1)||((a20==1)&&((a24==1)||(((a24==1)||(((a5==4)&&(a11==1))||!(a2==1)))&&(a1==14)))))&&(!(a4==1)&&((((a2==1)&&(((a9==10)&&((a21==11)&&(input==4)))&&(a16==8)))&&(a19==1))&&(a17==2))))){ + a8 = 0; + a4 = 0; + a7 = 0; + a21 = 10; + a19 = 2; + a9 = 11; + a20 = 0; + return 26; + } else if(((!(a0==1)&&(((((a16==10)&&((!(a7==1)&&(!(a20==1)&&((((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&(input==6))))&&!(a27==1)))&&(a1==12))&&(a19==4))&&!(a27==1)))&&((!(a13==1)||((a21==11)&&((a17==2)&&(a23==1))))&&(a2==1)))){ + a26 = 1; + a27 = 1; + a9 = 11; + a1 = 13; + a21 = 10; + a19 = 1; + a20 = 1; + a16 = 7; + a5 = 4; + a6 = 0; + return 21; + } else if((((((((a23==1)&&(!(a26==1)&&(((a28==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5)))))&&(a21==12))))&&(a1==13))&&(a23==1))&&(a11==1))&&(a9==8))&&((a19==4)&&((a20==1)&&((((a6==1)&&(a17==2))&&!(a26==1))&&(a16==11)))))){ + if((a15==1)){ + a16 = 8; + a21 = 10; + a14 = 0; + a19 = 3; + a1 = 12; + a9 = 10; + a20 = 0; + a4 = 0; + a2 = 1; + a5 = 5; + }else{ + a16 = 10; + a5 = 5; + a19 = 5; + a9 = 9; + a23 = 1; + a21 = 10; + a2 = 1; + } + return 21; + } else if(((!(a8==1)&&((a19==5)&&(((a11==1)&&((a16==9)&&((((a20==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3)))&&(a9==7))&&(a2==1))))&&!(a14==1))))&&((a23==1)&&(((a21==11)&&(((a12==1)&&(a1==14))||!(a13==1)))&&(a17==2))))){ + a21 = 10; + a5 = 4; + a16 = 7; + a19 = 1; + a1 = 12; + a12 = 1; + a11 = 1; + a8 = 0; + return -1; + } else if((((!(a12==1)||((((a20==1)&&((((a1==14)&&((a6==1)&&(a19==3)))&&!(a27==1))||(a18==1)))&&(a17==2))||!(a23==1)))&&!(a0==1))&&(((a16==11)&&((a21==11)&&((((a5==5)||(a5==6))&&(input==5))&&(a9==9))))&&!(a24==1)))){ + a9 = 7; + a5 = 4; + a19 = 1; + a11 = 1; + a0 = 0; + a1 = 12; + a23 = 1; + a16 = 7; + a21 = 10; + return -1; + } else if(((!(a20==1)&&((a18==1)||(!(a2==1)||((a2==1)&&(a19==4)))))&&((a21==10)&&((a9==8)&&((a28==1)&&(((a16==7)&&(((a28==1)&&(((a1==14)&&((input==1)&&((a5==5)||(a5==6))))&&!(a18==1)))&&(a17==2)))&&!(a4==1))))))){ + a7 = 0; + a24 = 0; + a23 = 1; + a5 = 4; + a9 = 7; + a19 = 1; + a20 = 1; + a1 = 12; + return -1; + } else if((((a16==9)&&(((input==4)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(a1==14)))&&((a27==1)||((((((a17==2)&&((!(a20==1)&&(!(a7==1)&&((a21==10)&&(a12==1))))&&!(a18==1)))||(a24==1))&&(a19==2))||!(a3==1))||(a26==1))))){ + a16 = 10; + a12 = 0; + a0 = 1; + a5 = 6; + a1 = 12; + a9 = 9; + a4 = 1; + a19 = 1; + return -1; + } else if(((!(a26==1)&&((((input==1)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5))))&&(a20==1))&&(a17==2)))&&(((((a19==5)&&((a6==1)&&((!(a28==1)||((a1==14)&&((a6==1)&&(a28==1))))&&(a16==11))))&&!(a26==1))&&(a21==12))&&(a23==1)))){ + a5 = 4; + a16 = 7; + a26 = 0; + a1 = 12; + a7 = 0; + a9 = 7; + a19 = 1; + a21 = 10; + a18 = 0; + return -1; + } else if((((a19==4)&&(((a21==10)&&((((input==3)&&!(a20==1))&&(a17==2))&&!(a7==1)))&&(a16==7)))&&((a28==1)&&(!(a12==1)||(((a8==1)||(!(a28==1)||((a11==1)&&((a9==8)&&((a5==4)&&(a2==1))))))&&(a1==14)))))){ + a9 = 7; + a2 = 1; + a0 = 0; + a19 = 1; + a20 = 1; + a1 = 12; + return -1; + } else if(((((a16==11)&&((((a28==1)&&(a13==1))||!(a12==1))||(a7==1)))&&(a1==14))&&(!(a20==1)&&(((a19==3)&&((a17==2)&&((a9==10)&&(((a13==1)&&((a21==10)&&((input==5)&&((a5==6)||((a5==4)||(a5==5))))))&&(a23==1)))))&&!(a8==1))))){ + if((a23==1)){ + a2 = 0; + a16 = 7; + a13 = 0; + a5 = 6; + a24 = 1; + a19 = 1; + a20 = 1; + a1 = 13; + a9 = 11; + }else{ + a5 = 5; + a20 = 1; + a21 = 12; + a26 = 1; + a25 = 1; + a16 = 7; + a9 = 8; + a19 = 4; + a29 = 1; + } + return -1; + } else if((((a12==1)&&(!(a18==1)&&(((a17==2)&&((a19==4)&&(((((a5==5)||(a5==6))&&(input==4))&&(a1==14))&&(a21==10))))&&(a20==1))))&&((a2==1)&&((((!(a3==1)||((a6==1)||(a7==1)))&&(a16==10))&&(a9==10))||!(a28==1))))){ + a5 = 5; + a21 = 12; + a7 = 0; + a19 = 5; + a2 = 1; + a16 = 9; + a28 = 1; + return 25; + } else if((((a21==10)&&(((((a12==1)&&((((a28==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3)))&&(a16==10))&&!(a27==1)))&&(a28==1))&&(a19==3))&&(a17==2)))&&((a1==13)&&(((a12==1)&&(((a12==1)&&(a9==9))||(a26==1)))&&!(a20==1))))){ + a1 = 14; + a5 = 6; + a9 = 8; + a19 = 1; + a15 = 1; + a3 = 0; + a10 = 1; + a16 = 7; + a20 = 1; + return -1; + } else if((((((((a16==9)&&((a12==1)&&(a21==10)))&&(a19==5))||!(a11==1))&&!(a14==1))&&(a20==1))&&(((!(a27==1)&&(((a28==1)&&(((a5==5)&&((input==3)&&(a1==14)))&&(a17==2)))&&(a3==1)))&&(a28==1))&&(a9==9)))){ + a4 = 0; + a3 = 1; + a19 = 1; + a11 = 1; + a5 = 4; + a16 = 10; + a9 = 7; + return 21; + } else if((((((((((a17==2)&&((a11==1)&&(a13==1)))||!(a6==1))||!(a12==1))&&(a20==1))&&(a1==14))&&(a16==8))||(a7==1))&&(!(a27==1)&&(((a21==10)&&((a19==1)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==1))))&&!(a24==1))))){ + a9 = 7; + a21 = 12; + a19 = 3; + a5 = 4; + a11 = 1; + a1 = 12; + a2 = 1; + a16 = 9; + return 21; + } else if(((((a27==1)||(!(a26==1)&&(((((a2==1)&&((a13==1)&&(a17==2)))&&(a21==11))&&(a9==10))&&(a16==8))))||!(a13==1))&&((!(a18==1)&&(((((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a20==1))&&(a1==13))&&!(a26==1)))&&(a19==5)))){ + a19 = 1; + a9 = 7; + a14 = 0; + a5 = 4; + a21 = 10; + a1 = 12; + a4 = 0; + a16 = 7; + return -1; + } else if(((!(a8==1)&&((((a1==13)&&((a17==2)&&((((((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5)))&&(input==1))&&!(a20==1))&&(a3==1))&&(a19==1))))&&(a21==12))&&(a28==1)))&&((!(a12==1)||((a13==1)&&(!(a3==1)||(a6==1))))&&(a16==7)))){ + a9 = 9; + a21 = 11; + a3 = 1; + a20 = 1; + a5 = 4; + a4 = 0; + a26 = 0; + a16 = 8; + a19 = 5; + a1 = 12; + return 23; + } else if((((a21==10)&&((a19==2)&&((!(a18==1)&&(((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==1))&&(a1==14)))&&!(a27==1))))&&(((a0==1)||(((a20==1)&&((a24==1)||((a12==1)&&((a14==1)||(a3==1)))))&&(a16==10)))&&(a17==2)))){ + a5 = 4; + a1 = 12; + a28 = 1; + a9 = 7; + a27 = 0; + a19 = 1; + a8 = 0; + a16 = 7; + return -1; + } else if(((((((((a16==9)&&((a20==1)&&((a17==2)&&((a28==1)&&((input==5)&&((a5==4)||(a5==5)))))))&&(a11==1))&&(a21==11))&&!(a24==1))&&!(a0==1))&&(a19==4))&&((!(a12==1)||((a1==12)&&(!(a6==1)||(a12==1))))&&(a9==11)))){ + a21 = 10; + a16 = 7; + a9 = 10; + a6 = 1; + a27 = 0; + a1 = 13; + a24 = 0; + a5 = 4; + a19 = 2; + return 21; + } else if((((a20==1)&&(((((a5==4)||(a5==5))&&(input==6))&&(a19==3))&&(a17==2)))&&((((a0==1)||((((!(a8==1)&&((((a16==9)&&(a23==1))||!(a2==1))||!(a28==1)))&&(a13==1))&&(a9==8))&&!(a26==1)))&&(a1==12))&&(a21==10)))){ + a5 = 4; + a1 = 14; + a13 = 1; + a19 = 1; + a2 = 1; + a16 = 10; + a8 = 0; + a9 = 7; + return 21; + } else if((((a9==11)&&((a16==7)&&((a3==1)&&(((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a26==1)))))&&((a1==14)&&(!(a6==1)||(((((!(a28==1)||((a17==2)&&((a21==12)&&(a3==1))))&&(a19==5))||(a26==1))&&!(a24==1))&&(a20==1)))))){ + a4 = 0; + a19 = 1; + a21 = 10; + a11 = 1; + a2 = 1; + a5 = 4; + a1 = 12; + a9 = 7; + return -1; + } else if(((((((a1==12)&&((a3==1)&&(a20==1)))&&(a24==1))&&!(a2==1))&&!(a2==1))&&(((!(a28==1)&&((((a19==4)&&(((((a5==5)||(a5==6))&&(input==4))&&(a17==2))&&(a9==7)))&&(a21==11))&&(a14==1)))&&(a16==9))&&!(a13==1)))){ + a16 = 10; + a9 = 10; + a4 = 1; + a5 = 4; + a22 = 1; + a21 = 10; + a19 = 2; + a28 = 0; + return 21; + } else if((((!(a27==1)&&((a13==1)&&((a16==11)&&(((a5==5)||(a5==6))&&(input==1)))))&&(a13==1))&&((a23==1)&&(((a17==2)&&((a21==12)&&((a19==1)&&((a12==1)&&((a1==14)&&(!(a7==1)&&((a6==1)&&(a9==7))))))))&&(a20==1))))){ + a2 = 1; + a1 = 12; + a16 = 7; + a5 = 4; + a6 = 1; + a23 = 1; + a21 = 10; + return -1; + } else if(((!(a27==1)&&((a1==12)&&((a17==2)&&((a20==1)&&((((a21==12)&&(input==6))&&!(a14==1))&&(a23==1))))))&&((a19==3)&&((a0==1)||((((a26==1)||(((a11==1)&&(a5==5))&&(a9==7)))&&(a16==9))||(a24==1)))))){ + a3 = 1; + a5 = 4; + a0 = 0; + a16 = 7; + a21 = 10; + a19 = 1; + a26 = 0; + return -1; + } else if((((a17==2)&&(!(a20==1)&&((((a16==8)&&((a12==1)&&(a9==9)))&&!(a4==1))&&!(a14==1))))&&(((a28==1)&&((a19==2)&&(((a12==1)&&((a1==14)&&(!(a24==1)&&((input==4)&&((a5==5)||(a5==6))))))&&(a21==12))))&&!(a7==1)))){ + if((a18==1)){ + a0 = 1; + a19 = 4; + a8 = 1; + a1 = 13; + a5 = 5; + a4 = 1; + a9 = 11; + a16 = 9; + }else{ + a19 = 5; + a26 = 1; + a20 = 1; + a21 = 10; + a5 = 4; + a27 = 1; + a24 = 1; + } + return 23; + } else if((((((a17==2)&&(((!(a18==1)&&(((a5==4)||(a5==5))&&(input==6)))&&!(a4==1))&&!(a27==1)))&&(a16==9))&&(a21==10))&&((!(a14==1)&&((a9==7)&&((a18==1)||((((a11==1)||(a0==1))&&(a1==14))&&(a20==1)))))&&(a19==5)))){ + a9 = 8; + a16 = 11; + a19 = 3; + a24 = 0; + a5 = 5; + a1 = 12; + a23 = 1; + a28 = 1; + return 23; + } else if((((((((a1==13)&&((a16==10)&&((!(a20==1)&&((a9==11)&&(input==5)))&&!(a0==1))))&&!(a27==1))&&(a17==2))&&(a6==1))&&(a21==10))&&((!(a24==1)&&(((a19==2)&&((a13==1)||!(a3==1)))||!(a13==1)))&&(a5==4)))){ + a21 = 11; + a12 = 0; + a9 = 9; + a1 = 14; + a5 = 5; + a19 = 3; + a14 = 1; + return -1; + } else if((((!(a6==1)||((a5==5)&&((((a20==1)&&(a11==1))&&(a9==11))&&(a17==2))))&&(a1==14))&&((a21==12)&&((a28==1)&&(!(a26==1)&&(((a19==4)&&(((a13==1)&&((a16==7)&&(input==5)))&&(a3==1)))&&!(a7==1))))))){ + a16 = 9; + a19 = 3; + a12 = 1; + a5 = 6; + a11 = 1; + a21 = 11; + a1 = 13; + return 25; + } else if(((!(a27==1)&&((a16==8)&&((a19==1)&&((a20==1)&&(a6==1)))))&&(((((a17==2)&&(((a12==1)&&(((a6==1)&&((input==1)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))))&&!(a4==1)))&&!(a27==1)))&&!(a18==1))&&(a1==13))&&(a21==12)))){ + a8 = 0; + a21 = 10; + a16 = 7; + a28 = 1; + a19 = 4; + a9 = 10; + a5 = 5; + return 25; + } else if((((!(a7==1)&&((a16==8)&&((((((a11==1)&&((input==5)&&((a5==4)||(a5==5))))&&!(a0==1))&&(a3==1))&&(a1==12))&&!(a20==1))))&&(a21==11))&&((a9==9)&&(((((a13==1)&&(a12==1))&&!(a0==1))&&(a17==2))&&(a19==1))))){ + a0 = 0; + a18 = 0; + a20 = 1; + a5 = 5; + a21 = 10; + a16 = 7; + a19 = 2; + a9 = 8; + a1 = 14; + a11 = 1; + return -1; + } else if((((a21==11)&&((a16==7)&&((a23==1)&&((a23==1)&&(!(a14==1)&&((a9==10)&&(input==5)))))))&&(((a5==4)&&((((!(a20==1)&&((a18==1)||(!(a3==1)||(a23==1))))&&!(a8==1))&&(a17==2))&&(a19==2)))&&(a1==14)))){ + a20 = 1; + a23 = 1; + a5 = 5; + a9 = 11; + a16 = 11; + a1 = 12; + a11 = 1; + a12 = 1; + return 21; + } else if(((!(a6==1)||(((a21==10)&&((a19==3)&&((a17==2)&&((a12==1)&&!(a18==1)))))||(a8==1)))&&((a6==1)&&((((a13==1)&&((a20==1)&&(((input==3)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(a16==10))))&&(a1==14))&&(a23==1))))){ + a13 = 1; + a27 = 0; + a1 = 12; + a19 = 1; + a4 = 0; + a5 = 4; + a9 = 7; + a16 = 7; + return -1; + } else if(((((a9==7)&&((a6==1)&&((a2==1)||!(a2==1))))&&(a16==9))&&((a1==14)&&((a11==1)&&((((a17==2)&&(((((a12==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1)))&&(a21==11))&&(a20==1))&&(a19==2)))&&!(a24==1))&&!(a18==1)))))){ + a21 = 10; + a14 = 0; + a1 = 12; + a16 = 7; + a5 = 4; + a2 = 1; + a19 = 1; + return -1; + } else if(((((a0==1)||((((((a1==13)&&((a2==1)&&(a2==1)))&&(a21==12))&&!(a20==1))&&(a17==2))&&(a19==5)))&&!(a18==1))&&((((!(a0==1)&&(((input==5)&&(a16==8))&&(a6==1)))&&(a5==6))&&(a28==1))&&(a9==11)))){ + a9 = 9; + a21 = 10; + a6 = 0; + a20 = 1; + a29 = 0; + a16 = 7; + a19 = 1; + a5 = 4; + a25 = 1; + return -1; + } else if((((((a12==1)||!(a6==1))||(a26==1))||!(a2==1))&&((a11==1)&&((a11==1)&&((((a16==11)&&((a17==2)&&((a19==1)&&(((a1==14)&&(((input==6)&&!(a20==1))&&!(a18==1)))&&(a9==9)))))&&(a21==10))&&(a5==5)))))){ + a26 = 1; + a20 = 1; + a15 = 1; + a1 = 13; + a14 = 1; + a16 = 7; + a5 = 4; + return 25; + } else if((((a21==10)&&(!(a20==1)&&((a19==2)&&((((a8==1)||(!(a27==1)&&((a16==10)&&(!(a14==1)&&(a12==1)))))&&(a17==2))&&!(a8==1)))))&&((((a23==1)&&(((input==6)&&((a5==4)||(a5==5)))&&(a9==10)))&&(a13==1))&&(a1==14)))){ + a14 = 1; + a20 = 1; + a24 = 1; + a2 = 0; + a16 = 7; + a9 = 8; + a5 = 6; + a19 = 1; + return -1; + } else if((((((((((a5==4)||(a5==5))&&(input==1))&&(a21==10))&&(a17==2))&&!(a7==1))&&(a19==3))&&(a1==14))&&(((a9==9)&&(!(a20==1)&&(!(a26==1)&&(!(a7==1)&&(!(a18==1)&&((a11==1)&&(!(a24==1)&&(a13==1))))))))&&(a16==10)))){ + if((a9==8)){ + a16 = 8; + a9 = 8; + a11 = 0; + a5 = 4; + a1 = 12; + a19 = 2; + a23 = 0; + a15 = 1; + }else{ + a9 = 10; + a5 = 6; + a19 = 2; + a11 = 0; + a20 = 1; + a14 = 1; + a2 = 0; + a1 = 13; + a16 = 7; + } + return -1; + } else if((((a19==1)&&((!(a24==1)&&((a1==12)&&((a20==1)&&(((a21==11)&&(a28==1))&&!(a7==1)))))||(a4==1)))&&(((a16==10)&&(!(a8==1)&&(!(a14==1)&&(((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==1))&&(a2==1)))))&&(a17==2)))){ + a9 = 10; + a5 = 6; + a19 = 4; + a6 = 1; + a16 = 7; + a21 = 10; + a14 = 0; + a3 = 1; + return 25; + } else if((((((a16==8)&&(!(a7==1)&&(!(a18==1)&&((input==4)&&((a5==6)||((a5==4)||(a5==5)))))))&&(a19==3))&&(a21==11))&&(((a20==1)&&((a1==14)&&(((!(a3==1)||(((a17==2)&&(a6==1))&&(a23==1)))&&!(a8==1))&&(a9==11))))&&!(a4==1)))){ + a5 = 4; + a3 = 1; + a27 = 0; + a11 = 1; + a19 = 1; + return -1; + } else if(((((a12==1)&&((a1==12)&&((a9==11)&&(!(a7==1)&&((a23==1)&&(a23==1))))))&&(a16==9))&&((a21==11)&&(((((((a17==2)&&((input==4)&&((a5==6)||((a5==4)||(a5==5)))))&&(a13==1))&&(a19==5))&&(a12==1))&&!(a26==1))&&!(a20==1))))){ + a5 = 6; + a0 = 1; + a19 = 2; + a3 = 0; + a25 = 1; + a21 = 10; + a9 = 7; + return 25; + } else if((((a17==2)&&(!(a13==1)||(((a24==1)||((a2==1)||(a14==1)))&&!(a26==1))))&&(((a20==1)&&(((a19==1)&&((a12==1)&&(((a23==1)&&((input==3)&&(((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6))))))&&(a16==10))))&&(a1==13)))&&(a21==12)))){ + a16 = 7; + a18 = 0; + a21 = 10; + a19 = 2; + a9 = 9; + a2 = 1; + a5 = 4; + a0 = 0; + return -1; + } else if(((((a17==2)&&((a16==11)&&((((!(a26==1)&&((input==1)&&((((a9==11)&&((a1==14)&&(a5==6)))&&(a19==2))||((a19==3)&&(((a1==12)&&(a5==4))&&(a9==7))))))&&!(a20==1))&&!(a24==1))&&(a11==1))))&&(a11==1))&&(!(a24==1)&&(((a28==1)||(a8==1))&&(a21==10))))){ + if((a25==1)){ + a8 = 1; + a16 = 7; + a5 = 6; + a1 = 14; + a9 = 7; + a22 = 1; + a19 = 1; + a20 = 1; + }else{ + a13 = 0; + a16 = 7; + a23 = 0; + a20 = 1; + a12 = 0; + a9 = 8; + a19 = 1; + a1 = 12; + a5 = 6; + } + return -1; + } else if(((!(a0==1)&&(!(a4==1)&&(((((input==4)&&((a5==5)||(a5==6)))&&(a17==2))&&(a2==1))&&(a21==10))))&&(!(a18==1)&&(((!(a14==1)&&((((a9==11)&&((a2==1)||(a8==1)))&&(a1==12))&&!(a20==1)))&&(a16==8))&&(a19==1))))){ + a27 = 0; + a18 = 0; + a16 = 7; + a9 = 7; + a5 = 4; + a20 = 1; + a6 = 1; + return -1; + } else if(((((((a21==10)&&(!(a0==1)&&((a3==1)||!(a2==1))))&&(a23==1))&&(a20==1))&&(a16==8))&&((a1==12)&&((((a17==2)&&(((a23==1)&&((((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(input==3)))&&(a13==1)))&&!(a27==1))&&(a19==2))))){ + a5 = 4; + a16 = 7; + a3 = 1; + a26 = 0; + a9 = 7; + a23 = 1; + a19 = 1; + return -1; + } else if((((a0==1)||(((a13==1)&&((a21==11)&&(((a20==1)&&(!(a24==1)&&(a11==1)))&&(a13==1))))&&(a9==9)))&&((a1==12)&&((a6==1)&&((a16==11)&&(((((input==3)&&((a5==4)||(a5==5)))&&(a17==2))&&!(a8==1))&&(a19==4))))))){ + a7 = 0; + a19 = 1; + a5 = 4; + a9 = 7; + a13 = 1; + a2 = 1; + a21 = 10; + a16 = 7; + return -1; + } return calculate_output69(input); + } + + int calculate_output69(int input) { + if(((((!(a23==1)||(!(a11==1)||(((a16==10)&&((a19==2)&&((((a1==14)&&(a23==1))&&!(a20==1))||(a8==1))))&&(a17==2))))&&(a23==1))&&(a28==1))&&(!(a26==1)&&(((a9==9)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3)))&&(a21==12))))){ + a9 = 11; + a2 = 0; + a26 = 1; + a0 = 1; + a21 = 10; + a16 = 7; + a19 = 1; + a20 = 1; + a1 = 13; + a5 = 4; + return 22; + } else if(((!(a12==1)||((((a16==7)&&((a17==2)&&((a3==1)&&!(a14==1))))||(a7==1))&&!(a20==1)))&&(((a19==4)&&((a21==12)&&(((((((a5==6)&&(a1==13))&&(a9==11))||(((a5==4)&&(a1==14))&&(a9==7)))&&(input==1))&&!(a18==1))&&!(a4==1))))&&(a28==1)))){ + a4 = 0; + a1 = 12; + a5 = 6; + a20 = 1; + a3 = 1; + a9 = 8; + a21 = 10; + a16 = 10; + a19 = 1; + a13 = 1; + return 25; + } else if((((a7==1)||(((a20==1)&&((a21==12)&&((a16==8)&&(a6==1))))&&(a28==1)))&&(((a3==1)&&((a6==1)&&((a17==2)&&(((!(a26==1)&&((a5==6)&&((a9==10)&&(input==3))))&&(a1==13))&&(a19==2)))))&&(a6==1)))){ + a3 = 1; + a16 = 7; + a9 = 7; + a8 = 0; + a5 = 4; + a4 = 0; + a21 = 10; + a19 = 1; + a1 = 12; + return -1; + } else if((((((!(a0==1)&&(!(a20==1)&&((a1==12)&&(((a3==1)&&((input==1)&&((a5==5)||(a5==6))))&&(a3==1)))))&&!(a8==1))&&(a17==2))&&(a21==10))&&((((((a23==1)&&(a23==1))&&(a11==1))&&(a9==8))&&(a19==3))&&(a16==7)))){ + a9 = 7; + a8 = 0; + a20 = 1; + a19 = 1; + a13 = 1; + a5 = 4; + return -1; + } else if(((((((a13==1)&&((a6==1)&&((!(a18==1)&&(((a17==2)&&(input==3))&&(a12==1)))&&!(a14==1))))&&(a20==1))&&(a21==10))&&(a1==12))&&((((a9==10)&&((a2==1)&&((a3==1)&&(a16==11))))&&(a19==1))&&(a5==4)))){ + a11 = 1; + a16 = 7; + a9 = 7; + a4 = 0; + a0 = 0; + return -1; + } else if(((!(a13==1)||((a12==1)&&((a21==12)&&(!(a24==1)&&(((a17==2)&&((a19==1)&&(((a11==1)&&!(a20==1))||!(a3==1))))&&(a9==7))))))&&((a6==1)&&((((((a5==5)||(a5==6))&&(input==1))&&(a16==8))&&(a1==12))&&!(a8==1))))){ + if((a22==1)){ + a28 = 0; + a16 = 7; + a12 = 0; + a9 = 11; + a20 = 1; + a5 = 5; + a29 = 1; + a21 = 10; + a1 = 13; + }else{ + a26 = 1; + a2 = 0; + a27 = 1; + a9 = 10; + a19 = 3; + a5 = 4; + } + return 21; + } else if(((((a11==1)&&(!(a14==1)&&((input==3)&&(a19==3))))&&(a21==12))&&((((a5==5)&&(((((a2==1)&&((a16==10)&&(!(a6==1)||(!(a18==1)&&(a12==1)))))&&(a17==2))&&(a9==11))&&(a20==1)))&&(a1==13))||!(a23==1)))){ + a1 = 12; + a11 = 1; + a19 = 1; + a5 = 4; + a14 = 0; + a21 = 10; + a16 = 7; + a9 = 7; + return -1; + } else if(((((a13==1)&&((((a5==4)||(a5==5))&&(input==3))&&!(a0==1)))&&(a19==2))&&((a27==1)||((a21==12)&&((((a23==1)&&(((((a17==2)&&((a11==1)&&(a1==14)))&&(a16==11))&&(a20==1))&&(a13==1)))&&(a9==7))&&(a2==1)))))){ + a19 = 1; + a21 = 10; + a0 = 0; + a27 = 0; + a5 = 4; + a16 = 7; + a12 = 1; + a1 = 12; + return -1; + } else if((((((a1==13)&&((!(a27==1)&&((((((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8))))&&(input==4))&&!(a27==1))&&!(a4==1)))&&(a16==7)))&&(a17==2))&&(a12==1))&&((((a19==5)&&(((a21==10)&&(a3==1))&&!(a20==1)))&&(a6==1))||(a0==1)))){ + a14 = 0; + a18 = 0; + a19 = 1; + a9 = 7; + a20 = 1; + a5 = 4; + a27 = 0; + a1 = 12; + return -1; + } else if((((a9==7)&&((a20==1)&&((a19==3)&&((a17==2)&&(((a14==1)||((a11==1)&&(a3==1)))&&(a21==10))))))&&((((!(a24==1)&&((a13==1)&&(((a16==11)&&(input==3))&&(a2==1))))&&!(a7==1))&&(a5==5))&&(a1==14)))){ + a1 = 12; + a5 = 4; + a23 = 1; + a19 = 1; + a12 = 1; + a0 = 0; + a16 = 7; + return -1; + } else if(((!(a27==1)&&(((((a9==8)&&((a21==12)&&((((a5==4)||(a5==5))&&(input==1))&&(a3==1))))&&(a20==1))&&(a17==2))&&(a16==9)))&&(((((((a2==1)&&(a1==13))||!(a6==1))||(a14==1))&&(a19==4))||!(a12==1))||!(a3==1)))){ + a0 = 0; + a1 = 12; + a9 = 7; + a21 = 10; + a16 = 7; + a3 = 1; + a28 = 1; + a5 = 4; + a19 = 1; + return -1; + } else if((((a16==9)&&((a1==12)&&((a17==2)&&(!(a20==1)&&(!(a18==1)&&(!(a11==1)||(((a14==1)||(!(a2==1)||(a3==1)))&&(a9==8))))))))&&((a19==1)&&((a11==1)&&((a5==6)&&(!(a8==1)&&((a21==10)&&(input==6)))))))){ + a16 = 7; + a19 = 3; + a24 = 1; + a1 = 14; + a20 = 1; + a9 = 7; + a4 = 1; + return 25; + } else if(((((((input==4)&&((((a5==6)&&(a1==13))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==14)))))&&(a17==2))&&(a3==1))&&(a6==1))&&((!(a0==1)&&((a21==11)&&(((a0==1)||((a11==1)&&(((a20==1)&&(a2==1))&&(a19==4))))||(a24==1))))&&(a16==8)))){ + a5 = 6; + a7 = 0; + a19 = 2; + a16 = 10; + a13 = 1; + a9 = 11; + a1 = 13; + a2 = 1; + return 25; + } else if(((((((a5==4)&&((input==1)&&!(a20==1)))&&(a21==10))&&(a1==12))&&(a23==1))&&((((a9==11)&&(!(a18==1)&&(((a19==5)&&((((a2==1)&&(a17==2))&&(a16==9))&&(a23==1)))||!(a3==1))))&&(a11==1))||!(a28==1)))){ + a5 = 5; + a23 = 0; + a1 = 13; + a7 = 1; + a19 = 1; + a20 = 1; + a27 = 1; + a16 = 7; + return -1; + } else if((((a20==1)&&((a9==9)&&((a0==1)||(((a18==1)||((a26==1)||((a19==2)&&(a3==1))))||(a14==1)))))&&((((a17==2)&&((!(a26==1)&&(((input==3)&&(a5==5))&&(a2==1)))&&(a21==10)))&&(a1==12))&&(a16==11)))){ + a5 = 4; + a16 = 7; + a11 = 1; + a19 = 1; + a3 = 1; + a9 = 7; + a0 = 0; + return -1; + } else if((((a2==1)&&((a28==1)&&(!(a20==1)&&((!(a27==1)&&((a21==12)&&((a13==1)&&(a16==8))))&&(a19==4)))))&&(((a1==13)&&(((a6==1)&&((a9==11)&&((a23==1)&&((input==6)&&((a5==4)||(a5==5))))))&&(a17==2)))&&!(a27==1)))){ + if((a0==1)){ + a21 = 11; + a10 = 0; + a16 = 9; + a9 = 8; + a29 = 0; + a19 = 2; + a5 = 5; + a20 = 1; + a23 = 0; + }else{ + a16 = 9; + a20 = 1; + a2 = 0; + a1 = 12; + a23 = 0; + a5 = 4; + a8 = 1; + } + return 23; + } else if((((a11==1)&&(((a17==2)&&(((a16==11)&&((a20==1)&&((a9==8)&&(input==3))))&&!(a26==1)))&&(a1==14)))&&((a7==1)||((a19==1)&&(((a26==1)||((a21==10)&&((a24==1)||((a5==6)&&(a23==1)))))||!(a13==1)))))){ + a21 = 11; + a5 = 5; + a6 = 1; + a7 = 0; + a9 = 11; + a16 = 8; + a8 = 0; + return 25; + } else if(((!(a18==1)&&((((((a16==11)&&((a20==1)&&(input==1)))&&(a1==14))&&(a21==12))&&(a28==1))&&(a5==4)))&&((!(a26==1)&&(((a3==1)&&((a19==4)&&((a17==2)&&((a23==1)||(a18==1)))))&&(a9==10)))&&!(a14==1)))){ + a19 = 1; + a16 = 7; + a21 = 10; + a26 = 0; + a2 = 1; + a1 = 12; + a9 = 7; + return -1; + } else if(((!(a7==1)&&(((((((a5==4)&&((a17==2)&&((input==5)&&(a20==1))))&&(a11==1))&&!(a4==1))&&(a9==11))&&(a19==4))&&(a28==1)))&&((((a16==11)&&(((a26==1)||(a13==1))&&(a1==12)))&&(a21==12))||!(a3==1)))){ + a5 = 6; + a4 = 0; + a1 = 13; + a19 = 5; + a23 = 1; + return 26; + } else if((((a21==10)&&(!(a20==1)&&(((a23==1)&&((a11==1)&&(((a5==5)||(a5==6))&&(input==1))))&&(a16==11))))&&(((((!(a6==1)||((a27==1)||(((a17==2)&&(a6==1))&&!(a0==1))))&&(a3==1))&&(a19==3))&&(a1==13))&&(a9==8)))){ + if((a10==1)){ + a5 = 5; + a9 = 7; + a29 = 0; + a21 = 11; + a1 = 14; + a16 = 10; + a3 = 0; + a20 = 1; + }else{ + a9 = 7; + a18 = 1; + a10 = 0; + a16 = 7; + a19 = 2; + a5 = 6; + a20 = 1; + a23 = 0; + a1 = 12; + } + return -1; + } else if(((((((((input==6)&&(((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))&&!(a20==1))&&(a12==1))&&(a1==12))&&(a23==1))&&!(a4==1))&&((a17==2)&&((a21==12)&&(((a16==10)&&(((a19==4)&&((a6==1)&&(a2==1)))&&!(a0==1)))||!(a13==1)))))){ + a5 = 6; + a4 = 1; + a13 = 0; + a9 = 7; + a1 = 13; + a16 = 7; + a6 = 0; + a19 = 1; + a21 = 10; + a20 = 1; + return -1; + } else if(((!(a20==1)&&((((a21==11)&&(a23==1))&&(a14==1))&&(a5==5)))&&(((a8==1)&&((((((((a1==12)&&((input==6)&&(a17==2)))&&(a26==1))&&!(a23==1))&&(a16==7))&&(a7==1))&&(a27==1))&&(a19==1)))&&(a9==7)))){ + a20 = 1; + a19 = 3; + a5 = 4; + a1 = 13; + a18 = 1; + a16 = 10; + a6 = 0; + a9 = 11; + return -1; + } else if((((((!(a24==1)&&(((a20==1)&&((a23==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4))))&&(a13==1)))&&!(a24==1))&&(a1==12))&&(a21==12))&&((((a18==1)||(((a17==2)&&((a16==10)&&(a28==1)))&&(a9==11)))&&!(a7==1))&&(a19==5)))){ + a19 = 4; + a5 = 6; + a4 = 0; + a27 = 0; + a1 = 14; + a9 = 10; + a16 = 7; + a21 = 10; + a13 = 1; + return 25; + } else if((((a21==10)&&(((a6==1)&&(((input==4)&&(a9==7))&&(a23==1)))&&(a6==1)))&&((a17==2)&&((a24==1)||((a1==12)&&((a20==1)&&((((a16==10)&&((a5==6)&&((a8==1)||(a2==1))))&&(a19==1))&&(a28==1)))))))){ + a5 = 4; + a23 = 1; + a16 = 7; + a11 = 1; + return -1; + } else if((((((a1==13)&&(((((a9==7)&&((a19==3)&&(a6==1)))&&(a20==1))&&!(a11==1))&&(a5==5)))&&!(a3==1))&&(a21==11))&&(!(a3==1)&&((((a17==2)&&(((input==5)&&(a16==8))&&!(a28==1)))&&(a26==1))&&!(a23==1))))){ + a4 = 1; + a19 = 1; + a6 = 0; + a21 = 10; + a10 = 1; + a9 = 9; + a16 = 7; + return -1; + } else if(((((((a3==1)&&((a1==14)&&(((a28==1)&&(!(a28==1)||((a7==1)||((a28==1)&&(a17==2)))))&&(a9==7))))&&(a21==11))&&(a19==1))||(a18==1))&&(((a20==1)&&(((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a16==9)))&&(a3==1)))){ + a18 = 0; + a28 = 1; + a0 = 0; + a21 = 10; + a5 = 4; + a16 = 7; + a1 = 12; + return -1; + } else if(((((((((input==1)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(a20==1))&&!(a14==1))&&(a19==2))&&(a21==11))&&(a1==14))&&((a17==2)&&((a16==7)&&((((a28==1)&&(!(a8==1)&&(!(a3==1)||(a6==1))))&&(a23==1))||!(a2==1)))))){ + a24 = 0; + a14 = 0; + a23 = 1; + a5 = 4; + a21 = 10; + a9 = 7; + a19 = 1; + a1 = 12; + return -1; + } else if((((a17==2)&&(!(a23==1)||(!(a2==1)||((a1==14)&&((a9==8)&&((a21==11)&&((a23==1)&&!(a14==1))))))))&&((!(a26==1)&&(((a2==1)&&((a20==1)&&(((a16==8)&&(input==1))&&(a5==4))))&&(a19==4)))&&!(a18==1)))){ + a6 = 1; + a9 = 7; + a1 = 12; + a21 = 10; + a11 = 1; + a19 = 1; + a16 = 7; + return -1; + } else if(((((a1==13)&&((a2==1)&&(!(a20==1)&&((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))&&(input==5)))))&&(a19==5))&&((((((a23==1)&&((((a24==1)||(a23==1))&&(a23==1))||(a8==1)))||!(a6==1))&&(a21==10))&&(a16==7))&&(a17==2)))){ + a19 = 1; + a1 = 12; + a14 = 0; + a3 = 1; + a5 = 4; + a20 = 1; + a23 = 1; + a9 = 7; + return -1; + } else if((((((a2==1)&&((((!(a24==1)&&(((a5==5)||(a5==6))&&(input==5)))&&(a17==2))&&!(a7==1))&&!(a4==1)))&&!(a20==1))&&(a21==11))&&((a19==5)&&((a9==10)&&((a11==1)&&((((a13==1)&&(a16==7))&&(a1==14))&&(a23==1))))))){ + a19 = 1; + a16 = 8; + a0 = 0; + a18 = 0; + a20 = 1; + a5 = 4; + a27 = 0; + return -1; + } else if((((a28==1)&&((a21==11)&&(((a17==2)&&((!(a4==1)&&(a2==1))&&(a19==3)))&&(a1==14))))&&(!(a8==1)&&(((((a23==1)&&(!(a7==1)&&((a20==1)&&(((a5==5)||(a5==6))&&(input==3)))))&&(a9==11))&&(a16==7))&&(a13==1))))){ + a24 = 0; + a16 = 8; + a13 = 1; + a5 = 6; + a1 = 13; + a19 = 2; + a14 = 0; + return 21; + } else if(((!(a2==1)||(((!(a4==1)&&(((a0==1)||(a11==1))&&(a1==13)))&&(a9==10))||!(a3==1)))&&((((a5==5)&&((a21==10)&&(!(a0==1)&&((a19==3)&&((a16==9)&&((a20==1)&&(input==1)))))))&&!(a27==1))&&(a17==2)))){ + a5 = 6; + a16 = 11; + a19 = 2; + a1 = 12; + a9 = 8; + a24 = 0; + a2 = 1; + a3 = 1; + return 25; + } else if(((!(a6==1)||(((a23==1)&&(((a6==1)&&((a1==14)&&(a13==1)))&&!(a7==1)))&&(a19==5)))&&(((!(a20==1)&&((!(a24==1)&&((a16==9)&&(((input==6)&&((a5==4)||(a5==5)))&&!(a4==1))))&&(a17==2)))&&(a21==12))&&(a9==8)))){ + a5 = 5; + a24 = 1; + a11 = 0; + a1 = 12; + a9 = 11; + a3 = 0; + a16 = 7; + a20 = 1; + a21 = 10; + a19 = 2; + return -1; + } else if((((a20==1)&&(((a21==10)&&(((((a19==3)&&((a16==7)&&(input==1)))&&(a23==1))&&(a13==1))&&(a5==5)))&&(a9==8)))&&((((a12==1)&&(!(a3==1)||(((a17==2)&&(a3==1))||!(a23==1))))&&(a1==13))||!(a2==1)))){ + a21 = 11; + a5 = 6; + a9 = 7; + a0 = 0; + a2 = 1; + a19 = 1; + a11 = 1; + return 23; + } else if((((a16==10)&&((((!(a28==1)||((!(a2==1)||(!(a13==1)||(a23==1)))&&(a17==2)))&&!(a4==1))&&(a9==8))||!(a28==1)))&&(((a3==1)&&((a5==4)&&((a19==2)&&(((input==1)&&(a20==1))&&(a1==14)))))&&(a21==12)))){ + a23 = 1; + a9 = 9; + a27 = 0; + a1 = 13; + a21 = 10; + a3 = 1; + a16 = 7; + return 25; + } else if((((((((((a21==10)&&((a19==4)&&(input==5)))&&(a2==1))&&!(a8==1))&&(a2==1))&&!(a0==1))&&(a28==1))&&(a17==2))&&((a1==12)&&((!(a6==1)||((((a16==10)&&(a13==1))&&!(a20==1))&&(a9==7)))&&(a5==4))))){ + a9 = 10; + a10 = 1; + a16 = 7; + a20 = 1; + a19 = 1; + a5 = 5; + a29 = 0; + return 21; + } else if(((((a21==12)&&((a13==1)&&((!(a18==1)&&((a20==1)&&(((a16==7)&&(((a9==8)&&(a13==1))||(a27==1)))||(a27==1))))||!(a23==1))))&&(a1==13))&&((a5==6)&&((a19==5)&&((a6==1)&&((input==3)&&(a17==2))))))){ + a26 = 0; + a21 = 11; + a28 = 1; + a1 = 12; + a5 = 4; + a16 = 8; + a23 = 1; + a9 = 11; + a19 = 4; + return 25; + } else if((((a19==5)&&((a8==1)||(((a12==1)&&(((((a2==1)&&!(a18==1))&&(a21==11))||(a27==1))||!(a13==1)))&&(a9==7))))&&(!(a14==1)&&(((a16==7)&&(((a20==1)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))&&(a1==13)))&&(a17==2))))){ + if((a26==1)){ + a9 = 10; + a8 = 0; + a1 = 14; + a11 = 1; + a19 = 3; + a5 = 6; + a20 = 0; + a18 = 0; + }else{ + a21 = 12; + a19 = 1; + a26 = 0; + a1 = 14; + a27 = 0; + a5 = 6; + a14 = 0; + a9 = 9; + a16 = 8; + } + return 22; + } else if(((((a20==1)&&(((a1==14)&&(((((a13==1)&&(!(a0==1)&&((input==6)&&(a17==2))))&&(a11==1))&&(a19==2))&&(a2==1)))&&(a16==11)))&&(a21==10))&&((a6==1)&&((a5==5)&&(!(a0==1)&&((a9==10)&&(a23==1))))))){ + a8 = 0; + a7 = 0; + a19 = 1; + a9 = 7; + a23 = 1; + a16 = 7; + a1 = 12; + a5 = 4; + return -1; + } else if(((!(a27==1)&&(((a5==4)&&(((((a1==12)&&(input==4))&&(a13==1))&&(a9==11))&&(a17==2)))&&(a3==1)))&&((((a27==1)||((a20==1)&&((a21==12)&&(((a16==8)&&(a12==1))&&(a19==4)))))||!(a2==1))&&!(a14==1)))){ + a2 = 1; + a9 = 7; + a0 = 0; + a1 = 14; + return 25; + } else if((((a17==2)&&(((a24==1)&&(((a7==1)&&((a7==1)&&((a21==10)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&(a26==1)))))&&(a14==1)))&&(a1==14)))&&(((a19==2)&&((((a28==1)&&(a20==1))&&(a26==1))&&(a9==11)))&&(a16==7)))){ + a25 = 0; + a20 = 0; + a21 = 11; + a5 = 4; + a19 = 4; + a7 = 1; + a18 = 1; + a1 = 12; + a9 = 7; + a16 = 8; + return -1; + } else if((((a16==10)&&(((a1==14)&&(((a9==11)&&((a13==1)&&((a5==6)&&((a23==1)&&!(a27==1)))))&&(a21==12)))&&(a20==1)))&&((a19==2)&&((((((input==4)&&(a17==2))&&(a12==1))&&(a13==1))&&(a12==1))&&(a11==1))))){ + a11 = 1; + a5 = 4; + a9 = 7; + a28 = 1; + a6 = 1; + a19 = 1; + a1 = 12; + a21 = 10; + a16 = 7; + return -1; + } else if((((((a6==1)&&((a21==10)&&(((input==1)&&((a5==4)||(a5==5)))&&(a6==1))))&&!(a0==1))&&(a19==4))&&(((a1==12)&&(((a17==2)&&((((a16==7)&&((a2==1)&&!(a0==1)))||(a8==1))&&(a12==1)))&&(a20==1)))&&(a9==7)))){ + a24 = 0; + a5 = 5; + a9 = 8; + a21 = 11; + a19 = 3; + a3 = 1; + a1 = 13; + a12 = 1; + return 23; + } else if((((a20==1)&&((((a16==7)&&(!(a12==1)||((((a6==1)&&(a21==11))||!(a28==1))&&(a19==3))))&&(a9==9))&&(a5==6)))&&((a1==13)&&((a23==1)&&(!(a8==1)&&(!(a4==1)&&(!(a26==1)&&((a17==2)&&(input==4))))))))){ + a11 = 1; + a19 = 1; + a21 = 10; + a9 = 7; + a14 = 0; + a3 = 1; + a5 = 4; + a1 = 12; + return -1; + } else if((((a21==10)&&((a16==11)&&(((a19==3)&&((a12==1)&&((a9==11)&&((a23==1)&&((a20==1)&&((a1==14)&&(input==6)))))))&&!(a26==1))))&&((a26==1)||((!(a13==1)||(((a17==2)&&(a11==1))&&(a5==5)))||(a24==1))))){ + a21 = 11; + a24 = 0; + a0 = 0; + a5 = 6; + a2 = 1; + a1 = 13; + return 23; + } else if(((((((a1==14)&&((a26==1)&&(((a9==8)&&((input==1)&&((a5==5)||(a5==6))))&&(a0==1))))&&(a20==1))&&(a16==8))&&(a17==2))&&((a24==1)&&(((a19==2)&&((((a6==1)&&(a21==10))&&(a0==1))&&!(a23==1)))&&!(a12==1))))){ + a10 = 1; + a24 = 1; + a1 = 12; + a16 = 7; + a5 = 5; + a29 = 0; + a9 = 7; + a19 = 1; + return -1; + } else if(((((a20==1)&&(((!(a2==1)&&(a23==1))&&(a5==6))&&(a19==4)))&&(a8==1))&&((a1==13)&&((a24==1)&&((a16==7)&&(!(a2==1)&&(((((a21==10)&&((a17==2)&&(input==1)))&&(a14==1))&&(a9==7))&&!(a6==1)))))))){ + a10 = 0; + a1 = 12; + a19 = 1; + a5 = 4; + a6 = 0; + a9 = 11; + a29 = 1; + return -1; + } else if((((a21==10)&&(!(a20==1)&&(((!(a12==1)||(a3==1))||(a27==1))&&!(a18==1))))&&((!(a18==1)&&((a1==13)&&(((a17==2)&&(((((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4)))&&(input==6))&&(a16==7))&&!(a0==1)))&&(a11==1))))&&(a19==3)))){ + a1 = 12; + a5 = 4; + a27 = 0; + a23 = 1; + a24 = 0; + a20 = 1; + a9 = 7; + a19 = 1; + return -1; + } else if((((a3==1)&&(((((((((a13==1)||(a18==1))&&(a16==11))&&(a17==2))&&(a9==7))&&(a1==14))&&!(a0==1))&&(a23==1))&&(a23==1)))&&((a2==1)&&((a21==11)&&((a19==1)&&((a20==1)&&(((a5==5)||(a5==6))&&(input==6)))))))){ + a3 = 1; + a5 = 4; + a0 = 0; + a9 = 10; + a23 = 1; + a19 = 5; + return 25; + } else if(((((a26==1)||((!(a13==1)||(((((a21==12)&&(a13==1))||!(a13==1))&&(a16==10))||(a14==1)))&&!(a0==1)))&&(a20==1))&&((((((input==6)&&((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4))))&&(a12==1))&&(a17==2))&&(a1==14))&&(a19==3)))){ + a1 = 13; + a27 = 0; + a13 = 1; + a16 = 7; + a19 = 2; + a5 = 5; + a0 = 0; + a9 = 9; + a21 = 10; + return 25; + } else if((((a12==1)&&(((a9==10)&&(((a1==13)&&((input==4)&&(a5==4)))&&(a12==1)))&&(a17==2)))&&(!(a0==1)&&((((!(a2==1)||(((!(a7==1)&&(a28==1))&&(a19==3))&&(a16==8)))||(a0==1))&&(a21==10))&&(a20==1))))){ + a16 = 7; + a26 = 0; + a19 = 1; + a1 = 12; + a24 = 0; + a9 = 7; + a27 = 0; + return -1; + } else if((((a21==12)&&((a19==5)&&((a16==7)&&(!(a24==1)&&(!(a24==1)&&((!(a28==1)||((a6==1)&&(a13==1)))&&(a9==11)))))))&&(((((a13==1)&&(((a1==13)&&(input==6))&&!(a20==1)))&&(a28==1))&&(a5==6))&&(a17==2)))){ + a20 = 1; + a7 = 0; + a5 = 4; + a9 = 7; + a19 = 1; + a21 = 10; + a1 = 12; + a12 = 1; + a6 = 1; + return -1; + } else if(((((a16==10)&&((a17==2)&&(((((a21==10)&&(!(a20==1)&&(input==3)))&&(a23==1))&&!(a0==1))&&!(a0==1))))&&(a19==5))&&(((((a4==1)||(!(a18==1)&&((a27==1)||(a12==1))))&&(a9==9))&&(a5==5))&&(a1==14)))){ + if((a24==1)){ + a22 = 1; + a5 = 4; + a19 = 1; + a15 = 0; + a7 = 1; + a16 = 7; + a20 = 1; + }else{ + a28 = 0; + a16 = 7; + a20 = 1; + a19 = 1; + a5 = 6; + a6 = 0; + a10 = 0; + } + return -1; + } else if(((!(a24==1)&&(((a9==10)&&((!(a14==1)&&(!(a24==1)&&((a16==8)&&((a5==6)&&(input==4)))))&&(a2==1)))&&(a1==12)))&&(!(a20==1)&&((((a23==1)&&((a17==2)&&((a21==11)&&(a11==1))))&&(a19==5))||(a14==1))))){ + a1 = 13; + a5 = 4; + a16 = 7; + a11 = 0; + a19 = 1; + a21 = 10; + a20 = 1; + a4 = 1; + a12 = 0; + return 21; + } else if(((((a21==10)&&((a17==2)&&(((((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6))))&&(input==3))&&!(a20==1))))&&(a6==1))&&((a27==1)||((!(a8==1)&&(((a12==1)&&((a1==12)&&(((a28==1)&&(a16==8))&&(a19==4))))||!(a23==1)))||(a8==1))))){ + a19 = 1; + a16 = 7; + a12 = 1; + a9 = 7; + a5 = 4; + a20 = 1; + a2 = 1; + a27 = 0; + return -1; + } else if((((a13==1)&&((a13==1)&&((a28==1)&&(((((a17==2)&&(input==3))&&(a5==4))&&(a1==14))&&(a9==9)))))&&(!(a26==1)&&((a19==2)&&((a21==12)&&((((!(a11==1)||(a23==1))||!(a11==1))&&(a20==1))&&(a16==10))))))){ + a19 = 1; + a14 = 0; + a12 = 1; + a16 = 7; + a1 = 12; + a21 = 10; + a2 = 1; + a9 = 7; + return -1; + } else if(((((!(a26==1)&&((((a11==1)&&(a12==1))||(a27==1))&&(a13==1)))&&(a1==12))||(a7==1))&&((a21==10)&&((((a9==8)&&((a19==3)&&(!(a24==1)&&((((a5==4)||(a5==5))&&(input==5))&&(a17==2)))))&&(a16==9))&&(a20==1))))){ + a19 = 1; + a27 = 0; + a26 = 0; + a23 = 1; + a5 = 4; + a16 = 7; + a9 = 7; + return -1; + } else if((((((a19==4)&&(!(a18==1)&&((((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&(a1==12))&&!(a24==1))))&&(a23==1))&&(a20==1))&&((a7==1)||(!(a6==1)||((a21==12)&&((((a17==2)&&((a9==9)&&(a12==1)))&&(a16==10))&&!(a4==1))))))){ + a16 = 7; + a27 = 0; + a19 = 2; + a14 = 0; + a1 = 13; + a5 = 5; + a21 = 10; + return 25; + } else if(((((a9==7)&&(!(a26==1)&&(((((input==5)&&(a16==8))&&!(a20==1))&&(a28==1))&&(a12==1))))&&(a17==2))&&(((a19==1)&&((a1==12)&&(((a5==6)&&((a18==1)||((a23==1)&&(a12==1))))&&!(a27==1))))&&(a21==10)))){ + a0 = 0; + a23 = 1; + a16 = 7; + a20 = 1; + a5 = 4; + a18 = 0; + return -1; + } else if(((!(a4==1)&&((((a17==2)&&((!(a20==1)&&(((a5==4)||(a5==5))&&(input==6)))&&!(a7==1)))&&(a19==3))&&!(a24==1)))&&((a21==10)&&((!(a8==1)&&((a9==7)&&(!(a26==1)&&((!(a0==1)&&(a11==1))&&(a1==13)))))&&(a16==10))))){ + a16 = 9; + a21 = 12; + a5 = 4; + a25 = 1; + a1 = 14; + a9 = 10; + a19 = 4; + a7 = 1; + a11 = 0; + a20 = 1; + return -1; + } else if(((!(a8==1)&&(!(a4==1)&&(((a1==14)&&(!(a0==1)&&(!(a7==1)&&(!(a20==1)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==5))))))&&(a2==1))))&&(((a19==2)&&((a16==9)&&(((a12==1)&&(a21==10))&&(a17==2))))||!(a12==1)))){ + if((a11==1)){ + a1 = 13; + a16 = 7; + a5 = 6; + a2 = 0; + a9 = 11; + a19 = 1; + a11 = 0; + }else{ + a16 = 10; + a19 = 1; + a14 = 1; + a29 = 1; + a9 = 11; + a15 = 0; + a5 = 4; + a1 = 13; + } + return -1; + } else if((((!(a4==1)&&((a19==5)&&((!(a27==1)&&((((a20==1)&&(input==3))&&(a16==7))&&(a21==11)))&&(a3==1))))&&(a5==5))&&((a1==13)&&(((a9==10)&&(!(a3==1)||(((a7==1)||(a28==1))||!(a23==1))))&&(a17==2))))){ + a24 = 0; + a9 = 7; + a6 = 1; + a5 = 4; + a7 = 0; + a19 = 1; + a1 = 12; + a21 = 10; + return -1; + } else if(((((a17==2)&&((a28==1)&&((a2==1)&&(((a3==1)&&(((input==5)&&((a5==4)||(a5==5)))&&(a21==11)))&&!(a8==1)))))&&(a1==13))&&((a16==7)&&((((!(a11==1)||((a9==10)&&(a3==1)))&&(a19==4))&&(a6==1))&&(a20==1))))){ + a6 = 1; + a21 = 10; + a18 = 0; + a5 = 4; + a1 = 12; + a26 = 0; + a19 = 1; + a9 = 7; + return -1; + } else if(((!(a2==1)||(((a4==1)||(!(a8==1)&&((a1==14)&&((a19==3)&&(a23==1)))))&&(a21==12)))&&((a17==2)&&(((((a13==1)&&((!(a27==1)&&((input==6)&&((a5==4)||(a5==5))))&&(a9==7)))&&(a16==11))&&!(a27==1))&&(a20==1))))){ + a1 = 12; + a8 = 0; + a19 = 1; + a6 = 1; + a16 = 7; + a5 = 4; + a4 = 0; + a21 = 10; + return -1; + } else if(((((((((a19==4)&&(((a2==1)&&(((a21==12)&&(((a5==5)||(a5==6))&&(input==6)))&&(a17==2)))&&(a28==1)))&&(a1==14))&&(a12==1))&&(a9==10))&&(a20==1))&&(a16==9))&&(((a2==1)&&((a2==1)||(a14==1)))&&(a3==1)))){ + a9 = 7; + a1 = 12; + a5 = 4; + a21 = 10; + a19 = 1; + a12 = 1; + a16 = 7; + a18 = 0; + return -1; + } else if(((!(a26==1)&&(((a17==2)&&((a20==1)&&(a13==1)))&&(a21==12)))&&(!(a8==1)&&((!(a24==1)&&(((a19==1)&&(!(a0==1)&&(((((((a1==12)&&(a5==6))&&(a9==11))||(((a1==13)&&(a5==4))&&(a9==7)))||((a9==7)&&((a5==5)&&(a1==13))))&&(input==5))&&(a16==11))))&&!(a24==1)))&&(a6==1))))){ + a9 = 10; + a16 = 9; + a3 = 1; + a21 = 10; + a1 = 14; + a4 = 0; + a14 = 0; + a5 = 4; + a19 = 2; + return 21; + } else if(((((a16==8)&&((a12==1)&&((a2==1)&&(a20==1))))&&(a21==11))&&((((!(a26==1)&&(!(a7==1)&&(!(a24==1)&&(!(a4==1)&&((a2==1)&&((a1==13)&&((input==3)&&((a5==6)||((a5==4)||(a5==5))))))))))&&(a9==10))&&(a17==2))&&(a19==3)))){ + a24 = 0; + a19 = 1; + a5 = 4; + a1 = 12; + a16 = 7; + a6 = 1; + a21 = 10; + a12 = 1; + a9 = 7; + return -1; + } else if(((((((a11==1)&&(a17==2))&&(a1==12))&&(a28==1))&&(a6==1))&&((((a16==11)&&(!(a0==1)&&((a21==11)&&((!(a4==1)&&(!(a18==1)&&(((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))&&(input==4))))&&(a19==1)))))&&!(a8==1))&&(a20==1)))){ + a18 = 0; + a9 = 7; + a16 = 7; + a3 = 1; + a21 = 10; + a5 = 4; + a24 = 0; + return -1; + } else if((((a6==1)&&((a19==4)&&((((a2==1)&&!(a20==1))&&!(a26==1))&&(a16==10))))&&((a1==13)&&((a12==1)&&((a21==10)&&(((!(a24==1)&&(((a17==2)&&(((a5==5)||(a5==6))&&(input==1)))&&!(a18==1)))&&!(a24==1))&&(a9==10))))))){ + a5 = 5; + a19 = 1; + a29 = 0; + a9 = 7; + a15 = 0; + a3 = 0; + a16 = 7; + a20 = 1; + return -1; + } else if(((((!(a12==1)||((a20==1)&&(a28==1)))&&(a12==1))||(a27==1))&&((a6==1)&&((a19==4)&&((a1==13)&&(((((a17==2)&&(((input==5)&&(((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))))&&(a2==1)))&&(a28==1))&&(a21==10))&&(a16==8))))))){ + a19 = 1; + a28 = 1; + a13 = 1; + a5 = 4; + a1 = 12; + a0 = 0; + a16 = 7; + a9 = 7; + return -1; + } else if(((((a3==1)&&(((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==5))&&(a21==12)))&&(a19==2))&&((((((((a16==8)&&(((a17==2)&&(a3==1))&&(a1==13)))||(a4==1))&&!(a20==1))&&!(a27==1))&&(a2==1))&&!(a24==1))||(a4==1)))){ + a9 = 10; + a21 = 11; + a12 = 0; + a19 = 5; + a5 = 5; + a27 = 1; + a3 = 0; + return 25; + } else if((((((a17==2)&&((a14==1)&&(((a14==1)&&((input==3)&&((a5==5)||(a5==6))))&&(a21==10))))&&(a1==14))&&(a8==1))&&((a9==9)&&((!(a2==1)&&((a19==3)&&((((a13==1)&&!(a20==1))&&(a24==1))&&(a16==8))))&&(a4==1))))){ + a16 = 10; + a9 = 7; + a25 = 0; + a1 = 13; + a22 = 1; + a5 = 4; + a21 = 11; + a20 = 1; + a14 = 1; + return 25; + } else if((((((a16==7)&&((((a21==12)&&(((input==4)&&((((a19==4)&&(((a5==5)&&(a1==14))&&(a9==11)))||((((a1==14)&&(a5==6))&&(a9==11))&&(a19==4)))||((a19==5)&&(((a1==12)&&(a5==4))&&(a9==7)))))&&(a23==1)))&&(a11==1))&&(a23==1)))&&(a17==2))&&(a28==1))&&(((a2==1)&&(!(a20==1)&&(a3==1)))&&(a23==1)))){ + a21 = 10; + a1 = 12; + a3 = 1; + a20 = 1; + a26 = 0; + a5 = 4; + a9 = 7; + a19 = 1; + a23 = 1; + return -1; + } else if(((!(a11==1)||(!(a14==1)&&(!(a4==1)&&((a17==2)&&(((a16==10)&&((a2==1)&&((a1==13)&&(a6==1))))&&(a3==1))))))&&((a19==3)&&(!(a20==1)&&(((a21==12)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&!(a18==1)))&&(a9==8)))))){ + if((a11==1)){ + a1 = 12; + a5 = 4; + a20 = 1; + a19 = 1; + a16 = 7; + a6 = 0; + a9 = 7; + a21 = 10; + a23 = 0; + }else{ + a27 = 1; + a20 = 1; + a9 = 10; + a16 = 7; + a22 = 0; + a21 = 10; + a13 = 0; + a1 = 12; + a19 = 2; + a5 = 6; + } + return 21; + } else if(((!(a20==1)&&(!(a12==1)&&(!(a28==1)&&((((((a5==5)||(a5==6))&&(input==6))&&(a1==13))&&!(a3==1))&&(a0==1)))))&&((a9==7)&&((a16==8)&&((!(a23==1)&&((((a12==1)&&(a21==11))&&!(a2==1))&&(a19==2)))&&(a17==2)))))){ + a21 = 10; + a11 = 0; + a29 = 1; + a1 = 12; + a2 = 0; + a16 = 7; + a5 = 6; + a19 = 4; + return 25; + } else if(((!(a20==1)&&(((!(a4==1)&&((((a2==1)&&((a1==13)&&((a2==1)&&((input==1)&&(a21==10)))))&&!(a18==1))&&(a9==11)))&&(a5==6))&&(a19==1)))&&((a17==2)&&(((a8==1)||((a6==1)&&(a3==1)))&&(a16==10))))){ + a29 = 1; + a21 = 12; + a9 = 9; + a7 = 1; + a27 = 1; + a16 = 8; + return 26; + } else if((((a19==3)&&(!(a7==1)&&((((((a2==1)&&(((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))&&(input==1)))&&(a23==1))&&(a17==2))&&(a11==1))&&(a12==1))))&&((a20==1)&&(((a16==9)&&(((a24==1)||(a12==1))&&(a21==12)))&&(a1==12))))){ + a19 = 2; + a7 = 0; + a21 = 10; + a9 = 10; + a1 = 13; + a5 = 5; + a16 = 7; + a28 = 1; + return -1; + } else if((((a5==6)&&(((a23==1)&&((a12==1)&&((a20==1)&&(input==3))))&&(a9==11)))&&((((a16==11)&&(((((a13==1)&&((a1==12)&&((a13==1)&&(a23==1))))&&(a17==2))&&!(a7==1))&&(a23==1)))&&(a21==10))&&(a19==5)))){ + a3 = 1; + a0 = 0; + a16 = 7; + a28 = 1; + a5 = 4; + a9 = 7; + a19 = 1; + return -1; + } else if(((((a27==1)||((a2==1)&&((a17==2)&&(((a26==1)||(((a28==1)&&(a23==1))||!(a6==1)))&&(a21==10)))))&&(a20==1))&&((((((((a5==5)||(a5==6))&&(input==3))&&(a9==9))&&(a19==1))&&!(a7==1))&&(a16==8))&&(a1==13)))){ + a9 = 7; + a23 = 1; + a2 = 1; + a5 = 4; + a16 = 7; + a28 = 1; + a1 = 12; + return -1; + } else if(((((a19==2)&&((a17==2)&&(((!(a24==1)&&((input==3)&&(((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))))&&(a11==1))&&(a20==1))))&&(a21==10))&&((((a16==11)&&(((a27==1)||((a26==1)||(a12==1)))&&(a1==12)))||(a4==1))&&!(a14==1)))){ + a23 = 1; + a5 = 4; + a19 = 1; + a9 = 7; + a4 = 0; + a2 = 1; + a16 = 7; + return -1; + } else if(((((a19==1)&&((a27==1)||((a28==1)&&(a23==1))))&&(a9==9))&&((a21==11)&&((a1==14)&&((((!(a20==1)&&((a17==2)&&((a23==1)&&(((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&(a6==1)))))&&!(a14==1))&&!(a8==1))&&(a16==8)))))){ + a21 = 10; + a1 = 12; + a5 = 4; + a16 = 7; + a9 = 7; + a20 = 1; + a3 = 1; + a4 = 0; + a2 = 1; + return -1; + } else if(((((a12==1)&&((a2==1)&&(((a28==1)&&((a19==5)&&((a20==1)&&((a1==13)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==3))))))&&(a6==1))))&&(a11==1))&&(((a16==10)&&((a21==12)&&((a23==1)&&(a17==2))))||!(a6==1)))){ + a9 = 11; + a11 = 1; + a1 = 14; + a19 = 2; + a16 = 7; + a4 = 0; + a5 = 6; + a8 = 0; + a21 = 10; + return 21; + } else if(((((!(a24==1)&&(!(a24==1)&&((a21==12)&&((a17==2)&&((a1==13)&&((a6==1)&&(a6==1)))))))&&!(a20==1))&&!(a24==1))&&((((((((a5==4)||(a5==5))&&(input==3))&&!(a27==1))&&(a16==10))&&(a9==8))&&(a19==1))&&!(a14==1)))){ + a16 = 8; + a8 = 1; + a5 = 5; + a19 = 2; + a22 = 0; + a9 = 7; + a20 = 1; + a21 = 11; + a25 = 1; + a1 = 12; + return -1; + } else if((((((a17==2)&&(((((a9==11)&&((a28==1)||!(a3==1)))||(a27==1))||(a4==1))&&(a2==1)))&&(a21==10))||!(a13==1))&&((((a20==1)&&(((((a5==5)||(a5==6))&&(input==4))&&(a19==3))&&(a1==12)))&&(a16==10))&&(a28==1)))){ + a19 = 1; + a5 = 4; + a28 = 1; + a16 = 7; + a9 = 7; + a2 = 1; + a4 = 0; + return -1; + } else if((((!(a28==1)||((a5==6)&&(!(a26==1)&&(a13==1))))||(a24==1))&&((a17==2)&&(!(a7==1)&&(((a19==2)&&(((!(a24==1)&&(((a1==12)&&((a16==8)&&(input==4)))&&(a23==1)))&&(a20==1))&&(a21==10)))&&(a9==11)))))){ + a9 = 9; + a28 = 1; + a16 = 9; + a21 = 12; + a7 = 0; + a19 = 3; + a18 = 0; + a1 = 13; + return 21; + } else if((((a17==2)&&(((a21==10)&&(!(a3==1)||((!(a4==1)&&((a13==1)&&!(a14==1)))&&(a1==12))))&&(a19==1)))&&((a9==8)&&((a16==11)&&((a28==1)&&((!(a4==1)&&(((input==4)&&(a5==6))&&(a20==1)))&&(a12==1))))))){ + a9 = 7; + a0 = 0; + a23 = 1; + a13 = 1; + a16 = 7; + a5 = 4; + return -1; + } else if(((((!(a8==1)&&(!(a14==1)&&((!(a27==1)&&((((input==3)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5))))&&(a21==10))&&!(a26==1)))&&!(a7==1))))&&(a17==2))&&(a1==13))&&((a28==1)&&((a20==1)&&((a19==3)&&((a16==8)&&(a11==1))))))){ + a5 = 6; + a9 = 8; + a18 = 0; + a23 = 1; + a1 = 14; + a19 = 1; + a21 = 12; + a8 = 0; + return 21; + } else if(((((a17==2)&&((((a11==1)&&(((a23==1)&&(a1==14))||(a7==1)))&&!(a7==1))||!(a12==1)))&&(a19==4))&&(!(a20==1)&&((a21==12)&&((!(a4==1)&&(((input==1)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5))))&&!(a24==1)))&&(a16==9)))))){ + if((a4==1)){ + a18 = 1; + a1 = 13; + a5 = 4; + a6 = 0; + a20 = 1; + a21 = 10; + a19 = 2; + a9 = 11; + a10 = 0; + }else{ + a12 = 0; + a20 = 1; + a5 = 6; + a4 = 1; + a9 = 8; + a7 = 1; + a21 = 10; + a1 = 12; + a19 = 1; + a16 = 7; + } + return -1; + } else if(((((a17==2)&&((a12==1)&&((a19==2)&&((a3==1)&&((a3==1)||!(a23==1))))))||!(a6==1))&&((a28==1)&&(((a9==11)&&(((a1==13)&&(((a5==5)&&((input==1)&&!(a20==1)))&&!(a8==1)))&&(a21==11)))&&(a16==8))))){ + a3 = 1; + a19 = 5; + a4 = 0; + a20 = 1; + a21 = 12; + a9 = 10; + a11 = 1; + return 22; + } else if((((a9==9)&&((!(a0==1)&&(!(a23==1)||((!(a6==1)||((a16==10)&&(a3==1)))||(a27==1))))&&(a19==1)))&&((a13==1)&&((a5==6)&&(((a21==12)&&((a20==1)&&(!(a0==1)&&((a1==12)&&(input==5)))))&&(a17==2)))))){ + if((a29==1)){ + a9 = 11; + a27 = 0; + a13 = 1; + a16 = 8; + a20 = 0; + a19 = 5; + a5 = 4; + a21 = 10; + a11 = 1; + }else{ + a19 = 2; + a5 = 4; + a27 = 0; + a21 = 10; + a9 = 10; + a1 = 14; + a16 = 7; + a4 = 0; + a26 = 0; + } + return 21; + } else if(((!(a4==1)&&(((a3==1)&&!(a18==1))||!(a13==1)))&&((!(a7==1)&&(((a16==7)&&(!(a4==1)&&((((a17==2)&&((a21==11)&&((a1==12)&&(((a5==4)||(a5==5))&&(input==5)))))&&(a9==9))&&!(a20==1))))&&(a19==5)))&&!(a4==1)))){ + a23 = 1; + a19 = 1; + a20 = 1; + a9 = 7; + a27 = 0; + a5 = 4; + a2 = 1; + a21 = 10; + return -1; + } else if((((!(a20==1)&&(((((a16==11)&&((input==3)&&(a17==2)))&&(a12==1))&&(a11==1))&&!(a8==1)))&&(a11==1))&&(((a19==1)&&((((!(a28==1)||((a28==1)&&(a5==6)))&&!(a7==1))&&(a9==8))&&(a1==13)))&&(a21==10)))){ + if((a3==1)){ + a20 = 1; + a9 = 10; + a12 = 0; + a5 = 4; + a16 = 7; + a25 = 0; + a29 = 1; + }else{ + a1 = 12; + a9 = 7; + a10 = 1; + a20 = 1; + a8 = 1; + a29 = 1; + a16 = 7; + } + return 25; + } else if(((!(a27==1)&&((a3==1)&&(!(a27==1)&&(((a1==13)&&((a21==10)&&((a16==8)&&(a2==1))))&&!(a20==1)))))&&(((((((a19==2)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1)))&&(a9==11))&&!(a7==1))&&(a3==1))&&(a17==2))&&!(a27==1)))){ + a1 = 14; + a23 = 1; + a20 = 1; + a5 = 4; + a13 = 1; + a19 = 1; + a16 = 10; + a9 = 7; + a11 = 1; + return 21; + } else if((((a16==7)&&((a1==14)&&(((((input==5)&&(a21==12))&&(a9==7))&&(a5==4))&&!(a24==1))))&&((a23==1)&&(((((a26==1)||((((a28==1)&&!(a20==1))||!(a13==1))&&(a19==2)))&&(a12==1))&&(a17==2))||!(a6==1))))){ + a16 = 11; + a12 = 1; + a21 = 10; + a9 = 8; + a19 = 4; + a6 = 1; + a5 = 6; + a20 = 1; + a28 = 1; + return 22; + } else if(((((a16==7)&&((((a5==5)&&(a12==1))&&(a9==9))&&(a2==1)))||!(a12==1))&&(((a21==10)&&((a19==5)&&((a1==12)&&((((a17==2)&&(((input==5)&&!(a20==1))&&!(a18==1)))&&!(a24==1))&&!(a0==1)))))&&(a28==1)))){ + a19 = 2; + a0 = 0; + a20 = 1; + a18 = 0; + a5 = 4; + a4 = 0; + a9 = 7; + return -1; + } else if((((a21==11)&&(((((a3==1)||(a7==1))&&!(a27==1))&&(a20==1))&&(a6==1)))&&(((!(a4==1)&&((a17==2)&&(((((input==5)&&((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4))))&&(a1==13))&&!(a18==1))&&(a19==5))))&&!(a8==1))&&(a16==10)))){ + a28 = 1; + a9 = 10; + a16 = 7; + a2 = 1; + a19 = 4; + a13 = 1; + a21 = 10; + a5 = 5; + return 25; + } else if((((a17==2)&&((a19==2)&&(!(a20==1)&&((a21==11)&&(!(a24==1)&&((a1==13)&&((((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a13==1))&&(a13==1))))))))&&((a16==7)&&((a8==1)||(((a3==1)&&((a12==1)&&(a6==1)))&&(a9==8)))))){ + a19 = 1; + a20 = 1; + a0 = 0; + a9 = 7; + a7 = 0; + a1 = 12; + a21 = 10; + a5 = 4; + a23 = 1; + return -1; + } else if(((((a7==1)||(((a24==1)||(((a6==1)&&(a1==13))&&(a16==9)))&&!(a20==1)))&&!(a18==1))&&((a17==2)&&(((a19==4)&&(!(a8==1)&&((((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==1))&&(a21==12))&&!(a0==1))))&&!(a7==1))))){ + a16 = 7; + a19 = 2; + a26 = 1; + a5 = 4; + a23 = 0; + a15 = 0; + a9 = 8; + a1 = 12; + return -1; + } else if((((a5==6)&&((a16==7)&&(((a6==1)&&((a21==10)&&((a6==1)&&((a19==2)&&((a11==1)&&!(a27==1))))))&&!(a24==1))))&&(((((a20==1)&&((a1==13)&&((input==5)&&(a17==2))))&&(a2==1))&&(a9==7))&&!(a8==1)))){ + if((a2==1)){ + a19 = 4; + a5 = 4; + a20 = 0; + a9 = 9; + a0 = 0; + a16 = 8; + a1 = 14; + a3 = 1; + a21 = 11; + a13 = 1; + }else{ + a8 = 0; + a28 = 1; + a9 = 9; + } + return 25; + } else if(((!(a7==1)&&((a28==1)&&((((((a3==1)&&((input==3)&&(((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6))))))&&!(a18==1))&&(a21==11))&&(a16==9))&&(a11==1))))&&((a17==2)&&((!(a12==1)||((a1==14)&&(!(a20==1)&&(a23==1))))&&(a19==2))))){ + a16 = 10; + a25 = 1; + a20 = 1; + a1 = 12; + a5 = 4; + a13 = 0; + a9 = 9; + a19 = 3; + a7 = 1; + a21 = 12; + return 21; + } else if((((((a4==1)&&((a16==8)&&((a19==4)&&((a9==10)&&(a6==1)))))&&!(a3==1))&&!(a2==1))&&((a0==1)&&((a1==12)&&(!(a3==1)&&(!(a20==1)&&((a21==11)&&((((input==1)&&((a5==5)||(a5==6)))&&(a17==2))&&!(a13==1))))))))){ + a21 = 12; + a5 = 4; + a1 = 13; + a19 = 1; + a9 = 9; + a20 = 1; + a3 = 0; + a10 = 0; + a2 = 0; + return 26; + } else if((((((a20==1)&&(!(a8==1)&&((a16==11)&&((a12==1)&&((a7==1)||((a23==1)&&(a11==1)))))))&&(a17==2))&&(a1==12))&&((a21==12)&&(((((input==1)&&(((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))&&!(a7==1))&&(a28==1))&&(a19==5))))){ + a13 = 1; + a19 = 1; + a21 = 10; + a5 = 4; + a16 = 7; + a0 = 0; + a6 = 1; + a9 = 7; + return -1; + } else if((((a16==8)&&((((a21==11)&&((a28==1)&&(!(a26==1)&&(!(a11==1)||(a11==1)))))&&!(a20==1))&&(a5==6)))&&((a9==11)&&((a17==2)&&((a19==5)&&((((a11==1)&&((a1==12)&&(input==6)))&&!(a7==1))&&!(a26==1))))))){ + a5 = 4; + a9 = 7; + a3 = 0; + a11 = 0; + a16 = 10; + a1 = 14; + a0 = 1; + a19 = 1; + return 26; + } else if((((a4==1)||(((a20==1)&&(((a16==7)&&(a12==1))&&(a23==1)))||!(a28==1)))&&(((a23==1)&&(((a21==11)&&(((a19==4)&&(((((a9==10)&&(a5==5))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(input==1))&&!(a8==1)))&&(a17==2)))&&(a1==12)))&&!(a0==1)))){ + a19 = 5; + a1 = 14; + a12 = 1; + a5 = 6; + a9 = 9; + a4 = 0; + a20 = 0; + a2 = 1; + return 25; + } else if(((((((a12==1)&&(((a23==1)&&((a28==1)&&(((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a11==1))))&&(a9==10)))&&(a17==2))&&(a20==1))&&(a21==10))&&((a1==13)&&((!(a6==1)||((a19==5)&&((a11==1)&&(a2==1))))&&(a16==10))))){ + a16 = 7; + a19 = 1; + a6 = 1; + a18 = 0; + a28 = 1; + a1 = 12; + a9 = 7; + a5 = 4; + return -1; + } else if((((a21==10)&&(((a1==14)&&(((a28==1)&&(!(a11==1)||(!(a11==1)||((a28==1)&&(a19==4)))))&&(a20==1)))&&(a17==2)))&&(((a13==1)&&(((a12==1)&&(((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5)))&&(input==3)))&&(a3==1)))&&(a16==8)))){ + a3 = 1; + a9 = 7; + a26 = 0; + a1 = 12; + a16 = 7; + a19 = 1; + a5 = 4; + a8 = 0; + return -1; + } else if((((a20==1)&&(((a24==1)||((((a6==1)&&((a1==13)&&(a6==1)))||(a26==1))&&(a19==1)))&&(a21==10)))&&(((a17==2)&&((a9==10)&&(((((input==1)&&((a5==5)||(a5==6)))&&!(a14==1))&&(a16==11))&&(a6==1))))&&!(a4==1)))){ + a11 = 1; + a16 = 8; + a5 = 6; + a20 = 0; + a1 = 14; + a19 = 2; + a4 = 0; + a7 = 0; + return 21; + } else if((((a20==1)&&((a19==3)&&(((a17==2)&&((a11==1)&&(((((a5==5)||(a5==6))&&(input==5))&&(a23==1))&&(a3==1))))&&(a3==1))))&&((a1==14)&&((a21==11)&&((a4==1)||((a16==10)&&(!(a23==1)||((a9==7)&&(a13==1))))))))){ + a0 = 0; + a19 = 2; + a9 = 9; + a14 = 0; + a13 = 1; + a5 = 4; + a21 = 10; + a16 = 7; + a1 = 13; + return 25; + } else if(((((a23==1)&&((a17==2)&&(((((a16==9)&&(a6==1))&&(a1==13))||(a4==1))&&(a23==1))))&&!(a20==1))&&((((!(a18==1)&&((((input==5)&&(a21==12))&&(a6==1))&&(a13==1)))&&(a5==4))&&(a19==2))&&(a9==9)))){ + if((a22==1)){ + a20 = 1; + a19 = 5; + a8 = 1; + a21 = 10; + a14 = 1; + a16 = 7; + a9 = 7; + a26 = 1; + }else{ + a21 = 10; + a16 = 7; + a20 = 1; + a6 = 0; + a10 = 1; + a1 = 12; + a9 = 11; + } + return -1; + } else if((((a16==9)&&((a19==1)&&(((((a23==1)&&(((((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6))))&&(input==1))&&(a1==12)))&&(a28==1))&&!(a24==1))&&(a11==1))))&&(((a12==1)&&((((a3==1)&&(a21==10))&&!(a20==1))||!(a23==1)))&&(a17==2)))){ + a10 = 1; + a9 = 7; + a1 = 13; + a22 = 0; + a19 = 2; + a15 = 0; + a16 = 10; + a20 = 1; + a21 = 12; + a5 = 4; + return 22; + } else if((((a19==2)&&(((((a28==1)||(a18==1))||!(a23==1))&&(a21==11))||!(a6==1)))&&((!(a0==1)&&(((a16==8)&&((a13==1)&&(((a3==1)&&((((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(input==3)))&&(a1==14))))&&(a17==2)))&&!(a20==1)))){ + a5 = 5; + a1 = 13; + a6 = 1; + a13 = 1; + a19 = 4; + a9 = 7; + a20 = 1; + a2 = 1; + a16 = 11; + return 26; + } else if((((a12==1)&&((a19==4)&&(!(a20==1)&&((a13==1)&&(((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))&&(input==6))))))&&((((a26==1)||((a14==1)||(((a1==14)&&((a16==9)&&((a21==11)&&(a13==1))))&&(a17==2))))&&(a28==1))||(a27==1)))){ + if((a25==1)){ + a20 = 1; + a22 = 1; + a27 = 1; + a9 = 8; + a16 = 7; + a21 = 10; + a5 = 4; + a1 = 13; + a12 = 0; + a19 = 1; + }else{ + a14 = 1; + a9 = 10; + a21 = 12; + a5 = 6; + a18 = 1; + a19 = 3; + a11 = 0; + } + return -1; + } else if(((((a19==4)&&(((((((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6))))&&(input==3))&&!(a8==1))&&(a1==12))&&(a12==1)))&&(a16==8))&&((!(a23==1)||((a23==1)&&(((((a28==1)&&(a21==11))||!(a23==1))&&!(a20==1))&&(a2==1))))&&(a17==2)))){ + a20 = 1; + a19 = 5; + a21 = 10; + a5 = 5; + a28 = 1; + a1 = 13; + a24 = 0; + a9 = 9; + a2 = 1; + return 22; + } else if((((a2==1)&&((((a20==1)&&((a11==1)&&(((input==3)&&(((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))))&&(a21==12))))&&(a16==9))&&(a13==1)))&&((a0==1)||(!(a4==1)&&(((a4==1)||(((a28==1)&&(a1==13))&&(a17==2)))&&(a19==1)))))){ + a9 = 7; + a16 = 7; + a1 = 12; + a13 = 1; + a21 = 10; + a5 = 4; + a28 = 1; + a2 = 1; + return -1; + } else if(((!(a6==1)||(((a8==1)||((a9==8)&&((a1==12)&&(((a3==1)||!(a28==1))&&!(a26==1)))))||(a26==1)))&&(((((a17==2)&&((a5==4)&&((a16==7)&&((input==1)&&(a20==1)))))&&(a23==1))&&(a21==11))&&(a19==3)))){ + a24 = 0; + a11 = 1; + a9 = 7; + a19 = 1; + a21 = 10; + a2 = 1; + return -1; + } else if((((a20==1)&&((((a17==2)&&(!(a24==1)&&((a28==1)&&!(a27==1))))||!(a3==1))&&(a1==13)))&&(!(a26==1)&&((a19==1)&&((a9==9)&&((a16==8)&&((a3==1)&&(((a21==10)&&(((a5==5)||(a5==6))&&(input==5)))&&!(a7==1))))))))){ + a19 = 2; + a9 = 7; + a21 = 12; + a0 = 0; + a8 = 0; + a5 = 6; + a26 = 0; + a16 = 9; + return 25; + } else if(((((a19==2)&&(((a9==11)&&((a7==1)||((a28==1)&&!(a20==1))))&&(a16==8)))&&(a1==13))&&(((a17==2)&&(((a11==1)&&(((a28==1)&&(((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&(a23==1)))&&!(a14==1)))&&!(a18==1)))&&(a21==10)))){ + a28 = 1; + a1 = 12; + a20 = 1; + a16 = 7; + a6 = 1; + a19 = 1; + a9 = 7; + a5 = 4; + a0 = 0; + return -1; + } else if(((!(a2==1)||((((a1==13)&&(a28==1))&&(a2==1))&&!(a27==1)))&&((!(a4==1)&&((a16==9)&&((a21==11)&&((a6==1)&&((a9==11)&&((((a19==1)&&(((a5==5)||(a5==6))&&(input==1)))&&!(a27==1))&&(a20==1)))))))&&(a17==2)))){ + a18 = 0; + a28 = 1; + a16 = 10; + a1 = 12; + a19 = 4; + a5 = 5; + a9 = 8; + a2 = 1; + return 21; + } else if((((a19==3)&&(((((a3==1)&&!(a7==1))&&!(a27==1))&&(a21==12))&&(a17==2)))&&(((!(a27==1)&&((a1==12)&&((a2==1)&&(!(a7==1)&&(((input==1)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(a16==10))))))&&(a11==1))&&!(a20==1)))){ + a19 = 2; + a1 = 13; + a15 = 1; + a4 = 1; + a21 = 10; + a25 = 1; + a5 = 5; + a16 = 8; + a9 = 7; + return -1; + } else if((((a16==10)&&(((!(a8==1)&&((((a21==11)&&(!(a13==1)||(!(a7==1)&&(a23==1))))&&(a1==13))&&(a2==1)))||!(a2==1))&&(a17==2)))&&((a28==1)&&((a19==5)&&(!(a20==1)&&((input==3)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))))))){ + a20 = 1; + a9 = 11; + a1 = 14; + a19 = 1; + a25 = 1; + a21 = 10; + a5 = 6; + a11 = 0; + a14 = 1; + a16 = 7; + return 21; + } else if((((a13==1)&&((!(a26==1)&&((a2==1)&&((((((a21==12)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==3)))&&(a16==9))&&(a17==2))&&(a19==5))&&(a2==1))))&&!(a18==1)))&&(!(a4==1)&&(((a6==1)&&!(a20==1))&&(a1==12))))){ + if((a8==1)){ + a19 = 1; + a25 = 0; + a1 = 13; + a21 = 10; + a16 = 7; + a20 = 1; + a5 = 4; + a26 = 1; + a28 = 0; + a9 = 10; + }else{ + a20 = 1; + a21 = 10; + a1 = 14; + a5 = 4; + a19 = 1; + a28 = 0; + a2 = 0; + a16 = 7; + a11 = 0; + a9 = 9; + } + return -1; + } else if((((a16==10)&&((a2==1)&&((((a2==1)&&((input==3)&&((a5==5)||(a5==6))))&&(a9==7))&&(a1==13))))&&((a27==1)||((a21==11)&&((((a20==1)&&((a17==2)&&((a27==1)||((a13==1)||(a26==1)))))||(a0==1))&&(a19==3)))))){ + a12 = 1; + a16 = 7; + a4 = 0; + a5 = 4; + a21 = 10; + a19 = 1; + a1 = 12; + return -1; + } else if((((a16==9)&&(((((a19==2)&&((a1==13)&&((a12==1)&&(a11==1))))||!(a6==1))&&(a9==11))||!(a2==1)))&&((a17==2)&&((a21==10)&&((!(a8==1)&&(!(a14==1)&&(!(a24==1)&&((input==5)&&((a5==5)||(a5==6))))))&&(a20==1)))))){ + a6 = 1; + a26 = 0; + a16 = 7; + a1 = 12; + a9 = 7; + a5 = 4; + a19 = 1; + a24 = 0; + return -1; + } else if((((a3==1)&&((a9==10)&&(((((a19==1)&&((a20==1)&&((((input==5)&&((a5==5)||(a5==6)))&&(a23==1))&&(a6==1))))&&!(a8==1))&&!(a24==1))&&(a16==8))))&&(((a21==11)&&(((a3==1)&&(a1==14))||(a24==1)))&&(a17==2)))){ + a5 = 6; + a13 = 1; + a21 = 10; + a16 = 10; + a9 = 9; + a19 = 3; + a2 = 1; + a11 = 1; + a1 = 13; + return 21; + } else if((((((a1==12)&&(!(a3==1)||(((a17==2)&&((a13==1)&&(a16==9)))&&(a19==2))))||(a4==1))&&(a2==1))&&(((a20==1)&&(((a12==1)&&((a9==11)&&(((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a21==10))))&&!(a18==1)))&&!(a4==1)))){ + a16 = 10; + a9 = 8; + a19 = 1; + a28 = 1; + a6 = 1; + a5 = 5; + return 21; + } else if((((a20==1)&&((a19==1)&&((!(a18==1)&&((a11==1)&&((a6==1)&&(!(a26==1)&&(((input==1)&&(a9==7))&&(a13==1))))))&&(a21==11))))&&((a1==13)&&(((a17==2)&&(((a13==1)&&(a5==4))&&!(a0==1)))&&(a16==11))))){ + a21 = 10; + a1 = 12; + a23 = 1; + a3 = 1; + a16 = 7; + return -1; + } else if((((a9==8)&&((a12==1)&&((a21==12)&&((!(a27==1)&&(((a23==1)&&(((a5==5)||(a5==6))&&(input==6)))&&!(a7==1)))&&(a6==1)))))&&((a19==4)&&(((a1==14)&&(((a20==1)&&((a23==1)&&(a17==2)))&&(a16==9)))&&!(a8==1))))){ + a9 = 9; + a5 = 4; + a23 = 1; + a21 = 10; + a12 = 1; + a18 = 0; + a19 = 2; + a16 = 10; + return 21; + } else if((((((a1==13)&&(((a17==2)&&((!(a26==1)&&(!(a8==1)&&(((a5==4)||(a5==5))&&(input==5))))&&!(a18==1)))&&(a3==1)))&&(a19==4))&&(a9==7))&&((((((a12==1)&&(a12==1))&&!(a20==1))&&(a21==11))&&!(a8==1))&&(a16==8)))){ + a13 = 1; + a19 = 1; + a21 = 10; + a20 = 1; + a1 = 12; + a5 = 4; + a16 = 7; + a12 = 1; + a0 = 0; + return -1; + } else if((((((a13==1)&&(a11==1))&&(a17==2))||(a24==1))&&(!(a26==1)&&(((a20==1)&&(((a16==8)&&((a19==5)&&(!(a7==1)&&((a28==1)&&((a21==10)&&(!(a18==1)&&((a5==4)&&(input==3))))))))&&(a1==14)))&&(a9==7))))){ + a13 = 1; + a1 = 12; + a4 = 0; + a8 = 0; + a19 = 1; + a16 = 7; + return -1; + } else if((((((a19==1)&&((a16==10)&&((a9==10)&&((a3==1)&&(a1==12)))))&&(a20==1))&&(a21==10))&&((a17==2)&&(!(a0==1)&&((!(a4==1)&&((!(a14==1)&&((a12==1)&&(((a5==4)||(a5==5))&&(input==1))))&&(a6==1)))&&(a11==1)))))){ + a5 = 6; + a19 = 4; + a7 = 0; + a16 = 11; + a18 = 0; + a1 = 14; + a0 = 0; + return 23; + } else if((((a5==5)&&((((a4==1)||(a6==1))||(a0==1))&&(a9==11)))&&((!(a8==1)&&(((((((!(a27==1)&&((input==3)&&(a21==12)))&&(a19==1))&&(a1==14))&&(a17==2))&&(a20==1))&&(a16==7))&&(a13==1)))&&!(a26==1)))){ + a3 = 1; + a26 = 0; + a5 = 4; + a21 = 10; + a9 = 7; + a1 = 12; + a14 = 0; + return -1; + } else if(((!(a18==1)&&(!(a18==1)&&((a17==2)&&((a28==1)&&(((a12==1)&&(a5==5))&&(a16==9))))))&&((((a1==14)&&(((a21==11)&&((a19==3)&&((a13==1)&&((input==4)&&(a9==9)))))&&(a20==1)))&&!(a7==1))&&(a6==1)))){ + a1 = 12; + a16 = 7; + a26 = 0; + a9 = 7; + a5 = 4; + a21 = 10; + a3 = 1; + a19 = 1; + return -1; + } else if(((((a17==2)&&(((a19==2)&&(((a9==10)&&(input==6))&&!(a0==1)))&&(a20==1)))&&(a5==4))&&((a21==10)&&((a1==13)&&(((!(a18==1)&&(!(a27==1)&&((a23==1)&&((a13==1)&&(a16==9)))))&&!(a26==1))&&(a11==1)))))){ + a9 = 7; + a11 = 1; + a16 = 7; + a26 = 0; + a1 = 12; + a19 = 1; + a23 = 1; + return -1; + } else if(((((a11==1)&&((a28==1)&&((!(a18==1)&&((input==4)&&!(a20==1)))&&(a17==2))))&&(a16==10))&&(((!(a8==1)&&((((a9==10)&&((a19==2)&&((a23==1)||(a26==1))))&&(a1==14))&&(a21==12)))&&(a5==6))&&!(a26==1)))){ + if((a16==10)){ + a16 = 7; + a15 = 1; + a20 = 1; + a19 = 1; + a1 = 12; + a21 = 10; + a25 = 0; + a8 = 1; + }else{ + a21 = 10; + a1 = 12; + a13 = 0; + a0 = 1; + a16 = 7; + a9 = 11; + a15 = 0; + a20 = 1; + } + return 25; + } else if((((((a21==10)&&(((((a9==8)&&((a1==12)&&(((input==1)&&(a5==6))&&!(a14==1))))&&(a17==2))&&!(a18==1))&&(a20==1)))&&!(a7==1))&&(a23==1))&&(((a2==1)&&(((a19==1)&&(a23==1))&&(a16==10)))&&(a3==1)))){ + a21 = 12; + a5 = 4; + a12 = 1; + a18 = 0; + a9 = 7; + a23 = 1; + a19 = 3; + a16 = 9; + return 21; + } else if((((a28==1)&&(!(a7==1)&&(((a27==1)||((a4==1)||((a21==12)&&((a1==14)&&(a23==1)))))&&(a20==1))))&&((a17==2)&&((a19==2)&&((a16==8)&&((a11==1)&&(!(a0==1)&&((input==3)&&(((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))))))))))){ + a1 = 12; + a16 = 7; + a7 = 0; + a19 = 1; + a9 = 7; + a8 = 0; + a21 = 10; + a26 = 0; + a5 = 4; + return -1; + } else if((((a1==13)&&(((a20==1)&&((a28==1)&&(((a16==7)&&(((a19==4)&&(input==3))&&!(a18==1)))&&!(a26==1))))&&(a17==2)))&&(((a21==10)&&((a2==1)&&(!(a0==1)&&(!(a7==1)&&((a5==6)&&(a6==1))))))&&(a9==11)))){ + a3 = 1; + a8 = 0; + a9 = 7; + a12 = 1; + a19 = 1; + a5 = 4; + a1 = 12; + return -1; + } else if((((a19==2)&&(((a5==4)&&((a17==2)&&(!(a26==1)&&((a9==7)&&(((a16==8)&&(input==4))&&!(a18==1))))))&&(a21==10)))&&(((a0==1)||((a13==1)&&((a1==13)&&(((a7==1)||(a12==1))||!(a23==1)))))&&(a20==1)))){ + a16 = 7; + a1 = 12; + a19 = 1; + a14 = 0; + a24 = 0; + a18 = 0; + return -1; + } else if((((((a12==1)&&((a2==1)&&((((a20==1)&&(!(a8==1)&&(((a5==4)||(a5==5))&&(input==5))))&&(a9==10))&&(a21==11))))&&(a17==2))&&!(a18==1))&&((a19==1)&&((a1==12)&&((a12==1)&&((!(a23==1)||(a6==1))&&(a16==8))))))){ + a21 = 10; + a19 = 3; + a24 = 0; + a13 = 1; + a9 = 7; + a16 = 10; + a23 = 1; + a5 = 6; + return 25; + } else if((((a21==11)&&((a19==4)&&((((a9==9)&&((a11==1)&&((input==5)&&((a5==4)||(a5==5)))))&&(a17==2))&&(a16==8))))&&((!(a23==1)||((((a1==13)&&((!(a26==1)&&(a6==1))&&!(a7==1)))&&(a13==1))||(a7==1)))&&!(a20==1)))){ + a1 = 12; + a9 = 7; + a0 = 0; + a16 = 7; + a19 = 1; + a20 = 1; + a23 = 1; + a28 = 1; + a5 = 4; + a21 = 10; + return -1; + } else if(((!(a27==1)&&(((a21==11)&&((a14==1)||((a2==1)&&(!(a2==1)||((a3==1)&&(a19==2))))))||!(a2==1)))&&((a16==7)&&(!(a26==1)&&(((a20==1)&&(((((a1==13)&&(a5==5))&&(a9==7))||(((a9==11)&&((a5==6)&&(a1==12)))||((a9==7)&&((a1==13)&&(a5==4)))))&&(input==6)))&&(a17==2)))))){ + a23 = 1; + a19 = 3; + a21 = 10; + a1 = 12; + a13 = 1; + a5 = 6; + a16 = 8; + a9 = 11; + a4 = 0; + return 25; + } else if(((((a17==2)&&((!(a2==1)||(a2==1))&&(a19==5)))||(a24==1))&&(!(a24==1)&&((!(a8==1)&&(((a16==10)&&(((a21==10)&&(((((a5==6)&&(a1==12))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==13))))&&(input==6)))&&(a20==1)))&&(a11==1)))&&!(a8==1))))){ + a16 = 7; + a19 = 1; + a0 = 0; + a1 = 12; + a9 = 7; + a5 = 4; + a6 = 1; + return -1; + } else if(((((a23==1)&&(!(a27==1)&&((a1==13)&&((a17==2)&&((((a5==6)&&(input==1))&&(a16==9))&&(a21==10))))))&&!(a4==1))&&(!(a8==1)&&((a20==1)&&((a9==11)&&((a19==1)&&((a24==1)||(!(a12==1)||(a11==1))))))))){ + a16 = 8; + a14 = 0; + a20 = 0; + a13 = 1; + a7 = 0; + a1 = 12; + a9 = 8; + return 25; + } else if((((a21==10)&&((((((a12==1)&&((a12==1)&&(a2==1)))&&(a17==2))&&(a19==2))&&(a1==13))||(a0==1)))&&(((a3==1)&&((a12==1)&&(((a3==1)&&((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==6)))&&(a20==1))))&&(a16==10)))){ + a19 = 1; + a9 = 7; + a16 = 7; + a1 = 12; + a14 = 0; + a24 = 0; + a5 = 4; + a27 = 0; + return -1; + } else if(((((((((a3==1)&&(((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==6))&&(a1==13)))&&!(a26==1))&&(a12==1))&&(a20==1))&&!(a4==1))&&(a17==2))&&((a21==12)&&((a16==7)&&((((a2==1)&&(a13==1))&&(a19==4))&&!(a14==1)))))){ + a19 = 1; + a3 = 1; + a0 = 0; + a13 = 1; + a5 = 4; + a9 = 7; + a21 = 10; + a1 = 12; + return -1; + } else if((((!(a0==1)&&((a6==1)&&((((a9==8)&&((a19==2)&&((input==5)&&((a5==4)||(a5==5)))))&&!(a20==1))&&!(a0==1))))&&!(a27==1))&&((((a16==9)&&((a1==13)&&((a17==2)&&((a2==1)&&(a21==12)))))&&(a6==1))||(a27==1)))){ + a10 = 0; + a20 = 1; + a1 = 14; + a26 = 1; + a9 = 9; + a16 = 7; + a21 = 10; + a29 = 1; + a19 = 1; + a5 = 4; + return -1; + } else if((((a8==1)||(((!(a26==1)&&(((a6==1)&&(a19==3))&&(a1==14)))&&(a3==1))||(a27==1)))&&(((a21==11)&&((a20==1)&&(((((a9==9)&&((input==3)&&((a5==4)||(a5==5))))&&(a16==7))&&(a17==2))&&(a6==1))))&&(a13==1)))){ + a0 = 0; + a3 = 1; + a26 = 0; + a1 = 12; + a5 = 4; + a19 = 1; + a9 = 7; + a21 = 10; + return -1; + } else if(((((a16==10)&&((a3==1)&&((a17==2)&&(((!(a4==1)&&((a28==1)&&((input==5)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))))&&(a21==11))&&(a23==1)))))&&!(a20==1))&&((a1==14)&&((((a11==1)&&(a12==1))||!(a6==1))&&(a19==2))))){ + a13 = 0; + a21 = 10; + a1 = 13; + a9 = 9; + a16 = 7; + a5 = 4; + a0 = 1; + a19 = 1; + a20 = 1; + a18 = 1; + return -1; + } else if((((!(a11==1)||((a19==4)&&((((a1==12)&&((a18==1)||((!(a23==1)||(a3==1))||(a0==1))))&&(a17==2))||!(a3==1))))&&(a16==8))&&(((a21==11)&&(!(a18==1)&&(((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a20==1))))&&(a9==11)))){ + a16 = 7; + a24 = 0; + a19 = 1; + a20 = 1; + a9 = 7; + a5 = 4; + a21 = 10; + return -1; + } else if((((a1==13)&&((((a3==1)&&(((a16==8)&&(!(a27==1)&&(a11==1)))&&(a9==8)))&&(a19==3))||(a26==1)))&&(((a21==12)&&(((((a11==1)&&((input==4)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a26==1))&&(a20==1))&&(a17==2)))&&!(a0==1)))){ + a9 = 7; + a19 = 1; + a1 = 12; + a7 = 0; + a16 = 7; + a0 = 0; + a8 = 0; + a5 = 4; + a21 = 10; + return -1; + } else if((((a19==2)&&((a1==12)&&(!(a24==1)&&(((a16==9)&&(((a21==10)&&(((a17==2)&&(input==3))&&(a12==1)))&&!(a14==1)))&&(a20==1)))))&&((a5==4)&&(((a9==8)&&((a14==1)||((a13==1)&&(a13==1))))||!(a23==1))))){ + a19 = 1; + a4 = 0; + a16 = 7; + a28 = 1; + a9 = 7; + return -1; + } else if((((a9==7)&&(!(a4==1)&&(!(a20==1)&&((a12==1)&&((a21==10)&&(a28==1))))))&&((((a2==1)&&(((a17==2)&&(!(a24==1)&&(((a2==1)&&((input==4)&&((a5==5)||(a5==6))))&&(a1==12))))&&!(a24==1)))&&(a19==2))&&(a16==8)))){ + a5 = 4; + a19 = 1; + a2 = 1; + a16 = 7; + a4 = 0; + a20 = 1; + a18 = 0; + return -1; + } else if((((a3==1)&&((!(a27==1)&&((a1==13)&&(!(a7==1)&&((a20==1)&&((input==5)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))))))&&!(a7==1)))&&(!(a2==1)||(((((a16==8)&&((a17==2)&&(a6==1)))&&(a21==12))||(a14==1))&&(a19==1))))){ + a21 = 10; + a14 = 0; + a5 = 5; + a19 = 4; + a3 = 1; + a16 = 7; + a9 = 10; + return 25; + } else if((((a21==12)&&((a9==8)&&((((a23==1)&&((a1==12)&&(((!(a24==1)&&((a13==1)&&((a17==2)&&(input==6))))&&(a11==1))&&(a2==1))))&&!(a8==1))&&(a5==5))))&&((a19==4)&&(((a2==1)&&(a16==10))&&!(a20==1))))){ + a16 = 7; + a15 = 1; + a21 = 10; + a20 = 1; + a26 = 1; + a9 = 11; + a19 = 5; + a5 = 4; + return 21; + } else if((((a13==1)&&((((a16==7)&&((((a1==14)&&((((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10))))&&(input==3)))&&(a17==2))&&!(a20==1)))&&!(a26==1))&&(a12==1)))&&((a8==1)||(!(a14==1)&&((((a19==1)&&(a23==1))&&(a21==11))||(a0==1)))))){ + a28 = 1; + a21 = 10; + a5 = 5; + a9 = 9; + a20 = 1; + a8 = 0; + a1 = 13; + a14 = 0; + a19 = 2; + return -1; + } else if(((((a27==1)||(((!(a11==1)||((a16==7)&&(a3==1)))||!(a23==1))&&(a23==1)))&&(a23==1))&&(!(a24==1)&&((a21==10)&&((((input==6)&&(((a19==2)&&(((a1==12)&&(a5==5))&&(a9==7)))||(((a19==1)&&(((a5==6)&&(a1==14))&&(a9==11)))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==2)))))&&!(a20==1))&&(a17==2)))))){ + a1 = 12; + a6 = 1; + a23 = 1; + a26 = 0; + a5 = 4; + a19 = 1; + a20 = 1; + a9 = 7; + return -1; + } else if(((!(a20==1)&&((a21==11)&&((a18==1)||((a19==2)&&((a16==9)&&(((a13==1)&&((a12==1)&&(a2==1)))&&(a17==2)))))))&&(((((a13==1)&&((input==1)&&((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8)))))&&(a13==1))&&!(a4==1))&&(a1==13)))){ + a10 = 1; + a19 = 5; + a9 = 11; + a1 = 12; + a16 = 8; + a25 = 1; + a28 = 0; + a5 = 5; + a20 = 1; + return 25; + } else if((((a12==1)&&((a28==1)&&(((a17==2)&&(((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==3))&&(a1==13)))&&(a19==1))))&&((a13==1)&&((a2==1)&&((((((a2==1)&&(a11==1))&&(a16==9))&&!(a20==1))||(a26==1))&&(a21==10)))))){ + if((a14==1)){ + a5 = 4; + a16 = 11; + a15 = 0; + a20 = 1; + a27 = 1; + a9 = 9; + a21 = 12; + a19 = 2; + }else{ + a16 = 8; + a9 = 10; + a5 = 6; + a21 = 12; + a11 = 0; + a7 = 1; + a25 = 1; + a1 = 12; + } + return -1; + } else if(((((!(a20==1)&&(!(a13==1)||(a2==1)))&&(a21==12))&&(a17==2))&&(!(a4==1)&&(!(a24==1)&&(((((((a16==7)&&((input==1)&&((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4)))))&&(a1==14))&&(a13==1))&&(a19==4))&&!(a4==1))&&(a3==1)))))){ + a9 = 7; + a20 = 1; + a21 = 10; + a7 = 0; + a19 = 1; + a1 = 12; + a5 = 4; + a8 = 0; + a27 = 0; + return -1; + } else if(((((a5==4)&&(((a9==9)&&((a17==2)&&((a16==10)&&(input==6))))&&(a1==13)))&&(a23==1))&&(!(a20==1)&&(!(a26==1)&&((a21==10)&&(((a6==1)&&((a19==5)&&(((a2==1)||(a0==1))||!(a6==1))))&&(a11==1))))))){ + a12 = 0; + a5 = 6; + a16 = 7; + a1 = 14; + a9 = 7; + a11 = 0; + a20 = 1; + a10 = 1; + a19 = 1; + return -1; + } else if(((((a1==12)&&(!(a0==1)&&((a11==1)&&(((a11==1)&&((((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6))))&&(input==1)))&&(a21==10)))))&&(a17==2))&&(((a20==1)&&(((a27==1)||(((a11==1)&&(a28==1))&&(a6==1)))&&(a19==4)))&&(a16==11)))){ + a5 = 4; + a13 = 1; + a6 = 1; + a9 = 7; + a19 = 1; + a4 = 0; + a16 = 7; + return -1; + } else if((((((a16==8)&&(((input==5)&&((a5==4)||(a5==5)))&&(a17==2)))&&(a20==1))&&(a6==1))&&(((a8==1)||((!(a26==1)&&(((((a1==12)&&((a2==1)&&!(a7==1)))&&!(a27==1))&&(a21==12))&&!(a4==1)))&&(a19==4)))&&(a9==10)))){ + a5 = 5; + a23 = 1; + a16 = 10; + a12 = 1; + a9 = 9; + a19 = 3; + a1 = 13; + return 21; + } else if(((((a6==1)&&(((((input==4)&&!(a20==1))&&!(a24==1))&&!(a26==1))&&!(a4==1)))&&(a1==13))&&((a19==4)&&(((a9==10)&&(((a7==1)||((a5==6)&&((!(a18==1)&&(a12==1))&&(a16==7))))&&(a21==10)))&&(a17==2))))){ + a1 = 12; + a9 = 7; + a19 = 1; + a5 = 4; + a27 = 0; + a2 = 1; + a20 = 1; + a13 = 1; + return -1; + } else if((((a3==1)&&((a1==14)&&((a17==2)&&((a23==1)&&(((a6==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5)))&&(a6==1))))))&&(((a9==9)&&((a19==1)&&(((a21==11)&&((a16==8)&&((a23==1)&&(a2==1))))&&(a20==1))))&&(a11==1)))){ + a14 = 0; + a7 = 0; + a11 = 1; + a5 = 6; + a21 = 12; + a9 = 8; + return 21; + } else if(((((a27==1)||(((a17==2)&&(((a0==1)||(!(a4==1)&&(a13==1)))&&(a1==13)))&&(a19==4)))&&(a16==9))&&((a20==1)&&((a21==10)&&(((a9==11)&&((a6==1)&&(!(a14==1)&&((input==6)&&(a5==4)))))&&(a3==1)))))){ + a19 = 1; + a16 = 7; + a26 = 0; + a11 = 1; + a1 = 12; + a6 = 1; + a9 = 7; + return -1; + } else if(((((a3==1)&&((a12==1)&&((((a17==2)&&(((a2==1)&&(a3==1))&&(a21==11)))&&(a5==6))&&(a16==11))))||!(a28==1))&&((a12==1)&&(((((a28==1)&&((input==1)&&(a9==9)))&&(a19==2))&&(a1==12))&&(a20==1))))){ + a8 = 0; + a23 = 1; + a9 = 7; + a16 = 10; + a21 = 10; + a7 = 0; + a5 = 5; + a19 = 5; + return 26; + } else if(((!(a8==1)&&((a12==1)&&((a28==1)&&(((a2==1)&&((!(a20==1)&&(input==5))&&(a9==9)))&&!(a14==1)))))&&((a16==9)&&((a17==2)&&((a1==12)&&((!(a3==1)||(((a11==1)&&(a21==12))&&(a19==3)))&&(a5==4))))))){ + a21 = 10; + a19 = 1; + a20 = 1; + a16 = 7; + a10 = 0; + a9 = 11; + a18 = 1; + a2 = 0; + a1 = 13; + a5 = 5; + return -1; + } else if((((a5==5)&&((a3==1)&&(a13==1)))&&(((a16==10)&&((!(a18==1)&&(((a13==1)&&(((((a12==1)&&(((input==6)&&(a21==10))&&!(a7==1)))&&(a6==1))&&(a19==4))&&!(a20==1)))&&(a1==14)))&&(a9==10)))&&(a17==2)))){ + if((a8==1)){ + a19 = 1; + a16 = 7; + a9 = 11; + a27 = 1; + a5 = 4; + a12 = 0; + a28 = 0; + a20 = 1; + }else{ + a13 = 0; + a9 = 7; + a19 = 1; + a1 = 13; + a5 = 4; + a16 = 7; + a27 = 1; + a20 = 1; + } + return -1; + } else if(((((a20==1)&&((a1==12)&&(((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))&&(input==4))))&&(a16==11))&&(((a19==5)&&((a18==1)||(!(a14==1)&&((!(a27==1)&&((a17==2)&&(!(a12==1)||(!(a6==1)||(a6==1)))))&&(a23==1)))))&&(a21==10)))){ + a9 = 7; + a19 = 1; + a0 = 0; + a27 = 0; + a16 = 7; + a26 = 0; + a5 = 4; + return -1; + } else if(((!(a26==1)&&(!(a26==1)&&((!(a18==1)&&((a19==1)&&((a9==7)&&((a23==1)&&((a17==2)&&((a20==1)&&((input==6)&&((a5==4)||(a5==5)))))))))&&!(a14==1))))&&(!(a23==1)||(((a16==9)&&((a2==1)&&(a1==14)))&&(a21==10))))){ + a6 = 1; + a14 = 0; + a24 = 0; + a5 = 6; + a1 = 13; + a9 = 10; + return -1; + } else if(((((a1==12)&&((a9==11)&&((a12==1)&&(((a3==1)&&((((a5==4)||(a5==5))&&(input==5))&&!(a26==1)))&&!(a26==1)))))&&(a17==2))&&(((a21==11)&&((a11==1)&&(((a16==7)&&(!(a18==1)&&(a28==1)))&&(a19==1))))&&!(a20==1)))){ + a20 = 1; + a19 = 5; + a5 = 5; + a26 = 0; + a4 = 0; + a9 = 9; + a0 = 0; + a16 = 10; + return 26; + } else if((((a9==7)&&((a20==1)&&((a28==1)&&((((a28==1)&&(((input==5)&&(a1==13))&&(a5==4)))&&(a3==1))&&!(a0==1)))))&&((a16==8)&&(((((a4==1)||((a11==1)||(a7==1)))&&(a21==10))&&(a17==2))&&(a19==5))))){ + a8 = 0; + a1 = 12; + a9 = 9; + a24 = 0; + a12 = 1; + a5 = 6; + return 26; + } else if(((((a21==12)&&(((a17==2)&&((a19==2)&&((((a4==1)||(a23==1))&&(a11==1))&&(a1==13))))&&(a16==10)))&&(a13==1))&&(!(a26==1)&&((((((input==5)&&((a5==5)||(a5==6)))&&(a9==10))&&(a23==1))&&!(a14==1))&&(a20==1))))){ + a12 = 1; + a5 = 6; + a16 = 7; + a21 = 10; + a1 = 14; + a14 = 0; + a8 = 0; + return 21; + } else if((((((a3==1)&&(a6==1))||!(a6==1))&&(a19==5))&&((((a5==6)&&((a16==11)&&(((a23==1)&&(!(a24==1)&&(((a17==2)&&((a21==11)&&((input==3)&&(a20==1))))&&(a23==1))))&&(a12==1))))&&(a1==13))&&(a9==11)))){ + a12 = 1; + a14 = 0; + a1 = 12; + a5 = 4; + a21 = 10; + a19 = 1; + a8 = 0; + a9 = 7; + a16 = 7; + return -1; + } else if(((!(a14==1)&&((((((a9==10)&&(!(a20==1)&&(((input==4)&&(a19==1))&&(a28==1))))&&(a13==1))&&(a17==2))&&!(a8==1))&&(a6==1)))&&((((((a6==1)&&(a21==10))||(a27==1))&&(a5==6))&&(a16==7))&&(a1==12)))){ + a11 = 1; + a7 = 0; + a20 = 1; + a14 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if(((((!(a24==1)&&(!(a26==1)&&((((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==5))&&!(a20==1))&&!(a14==1))))&&(a16==11))&&(a17==2))&&(((!(a3==1)||((a0==1)||((a1==13)&&((a21==10)&&(a3==1)))))&&!(a27==1))&&(a19==3)))){ + a5 = 4; + a14 = 1; + a9 = 10; + a25 = 1; + a19 = 1; + a20 = 1; + a1 = 12; + a28 = 0; + a16 = 7; + return -1; + } else if((((a14==1)||((!(a6==1)||(!(a6==1)||((a9==8)&&((a17==2)&&((a21==11)&&(a23==1))))))||(a24==1)))&&((a28==1)&&(!(a20==1)&&((a16==9)&&(((a23==1)&&((a1==14)&&((input==1)&&((a5==4)||(a5==5)))))&&(a19==4))))))){ + if((a14==1)){ + a20 = 1; + a0 = 1; + a1 = 13; + a5 = 4; + a25 = 0; + a16 = 7; + }else{ + a5 = 5; + a9 = 11; + a1 = 12; + a22 = 1; + a20 = 1; + a14 = 1; + a7 = 1; + a16 = 7; + a21 = 10; + } + return 26; + } else if(((((a1==13)&&(!(a27==1)&&((a17==2)&&(!(a24==1)&&((((input==5)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&(a13==1))&&!(a24==1))))))&&!(a24==1))&&((a16==9)&&(((a21==11)&&(((a12==1)&&!(a8==1))&&!(a20==1)))&&(a19==2))))){ + a19 = 1; + a27 = 1; + a10 = 1; + a21 = 10; + a20 = 1; + a9 = 8; + a5 = 5; + a16 = 7; + a1 = 14; + return -1; + } else if((((a2==1)&&(((((a19==4)&&((a9==11)&&((a1==14)&&(a5==6))))||(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==5)))&&(input==3))&&(a17==2)))&&((a11==1)&&((!(a26==1)&&((!(a28==1)||((a16==10)&&((a20==1)&&((a13==1)&&(a21==12)))))&&!(a14==1)))&&(a13==1))))){ + a16 = 7; + a5 = 4; + a19 = 2; + a1 = 13; + a21 = 10; + a9 = 9; + a24 = 0; + a3 = 1; + a28 = 1; + return 25; + } else if(((((a20==1)&&((a28==1)&&((a17==2)&&(!(a28==1)||((a16==9)&&((a6==1)&&(a6==1)))))))||!(a28==1))&&(!(a7==1)&&((a2==1)&&((a1==12)&&((a21==11)&&((a19==2)&&((((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(input==3))))))))){ + if((a23==1)){ + a20 = 0; + a21 = 12; + a24 = 0; + a19 = 1; + a1 = 14; + a14 = 0; + a16 = 7; + a9 = 8; + a5 = 4; + }else{ + a12 = 1; + a19 = 3; + a21 = 10; + a26 = 0; + a1 = 13; + a5 = 4; + a16 = 11; + a0 = 0; + a9 = 9; + } + return 22; + } else if((((a21==10)&&((((a20==1)&&(((((a5==4)||(a5==5))&&(input==3))&&!(a18==1))&&(a17==2)))&&(a1==14))&&(a11==1)))&&(((a16==11)&&(((a26==1)||((a19==5)&&((!(a13==1)||(a2==1))&&(a9==7))))||!(a11==1)))||!(a2==1)))){ + a5 = 4; + a19 = 1; + a16 = 7; + a13 = 1; + a18 = 0; + a0 = 0; + a1 = 12; + return -1; + } else if(((!(a4==1)&&(!(a18==1)&&((a16==10)&&(((a3==1)||(a8==1))&&(a1==14)))))&&((((((a28==1)&&((!(a14==1)&&((input==1)&&((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9)))))&&!(a24==1)))&&(a17==2))&&(a21==12))&&(a20==1))&&(a19==1)))){ + if((a14==1)){ + a0 = 0; + a14 = 0; + a9 = 10; + a21 = 10; + a16 = 8; + a5 = 6; + a1 = 12; + a26 = 0; + a20 = 0; + a19 = 3; + }else{ + a1 = 13; + a23 = 1; + a5 = 6; + a21 = 10; + a0 = 0; + a19 = 5; + a9 = 9; + a8 = 0; + } + return 21; + } else if((((a27==1)||((a27==1)||((a20==1)&&((((a5==6)&&((a6==1)||(a18==1)))&&!(a7==1))||!(a13==1)))))&&(((!(a14==1)&&((a17==2)&&((a16==10)&&(((a1==12)&&(input==6))&&(a19==1)))))&&(a9==9))&&(a21==12)))){ + if((a6==1)){ + a16 = 8; + a9 = 10; + a19 = 5; + a20 = 0; + a6 = 1; + a2 = 1; + a21 = 10; + }else{ + a4 = 0; + a24 = 0; + a19 = 2; + a21 = 10; + a9 = 10; + a5 = 4; + a16 = 7; + a1 = 14; + } + return 21; + } else if((((((a20==1)&&((a17==2)&&((a9==9)&&((input==3)&&(a19==2)))))&&!(a0==1))&&(a2==1))&&(((a1==14)&&((((a21==12)&&((a16==7)&&((!(a0==1)&&(a6==1))&&(a5==5))))||(a26==1))||!(a6==1)))||(a4==1)))){ + a5 = 4; + a21 = 10; + a7 = 0; + a1 = 12; + a18 = 0; + a27 = 0; + a9 = 7; + a19 = 1; + return -1; + } else if((((a16==7)&&((!(a24==1)&&(((a11==1)&&((a21==10)&&(input==1)))&&!(a4==1)))&&!(a18==1)))&&((a5==5)&&(((a17==2)&&((a28==1)&&((a19==5)&&((a9==8)&&((a11==1)&&(!(a20==1)&&(a12==1)))))))&&(a1==14))))){ + a5 = 4; + a1 = 13; + a19 = 2; + a9 = 9; + a20 = 1; + a0 = 0; + a28 = 1; + return 25; + } else if((((a21==10)&&((((a16==10)&&(!(a11==1)||(((a12==1)&&((a23==1)||(a26==1)))||(a0==1))))&&(a20==1))&&(a9==8)))&&((a19==1)&&(((a17==2)&&((!(a7==1)&&((input==5)&&(a5==6)))&&(a13==1)))&&(a1==12))))){ + a26 = 0; + a5 = 4; + a11 = 1; + a24 = 0; + a9 = 7; + a16 = 7; + return -1; + } else if((((((a1==13)&&((a23==1)&&((((a21==11)&&((input==3)&&((a5==4)||(a5==5))))&&(a23==1))&&!(a8==1))))&&(a19==3))&&!(a4==1))&&(!(a27==1)&&((a9==8)&&((a20==1)&&((a17==2)&&(((a28==1)&&(a16==10))&&(a12==1)))))))){ + a16 = 7; + a21 = 10; + a19 = 1; + a26 = 0; + a9 = 7; + a5 = 4; + a2 = 1; + a24 = 0; + a1 = 12; + return -1; + } else if(((((a21==11)&&(((a2==1)&&(a23==1))&&(a17==2)))&&(a1==12))&&((a16==8)&&(!(a20==1)&&((a12==1)&&((a11==1)&&((a3==1)&&(((a13==1)&&((a9==8)&&(((input==5)&&((a5==5)||(a5==6)))&&!(a18==1))))&&(a19==1))))))))){ + a11 = 1; + a20 = 1; + a6 = 1; + a5 = 4; + a16 = 7; + a21 = 10; + a12 = 1; + a9 = 7; + return -1; + } else if((((a8==1)||(((((a1==12)&&((((a16==10)&&(a6==1))&&(a17==2))&&(a20==1)))&&!(a0==1))||(a14==1))&&(a5==4)))&&((((a13==1)&&((((input==3)&&(a19==3))&&(a9==8))&&!(a18==1)))&&(a21==10))&&(a13==1)))){ + a19 = 1; + a9 = 7; + a23 = 1; + a16 = 7; + a8 = 0; + a28 = 1; + return -1; + } else if((((((((a16==8)&&((a9==7)&&(input==6)))&&(a28==1))&&(a6==1))&&(a19==3))&&!(a4==1))&&(!(a23==1)||((a5==4)&&((((!(a24==1)&&(((a20==1)&&(a11==1))&&(a21==12)))&&(a17==2))&&(a1==13))&&!(a7==1)))))){ + a19 = 1; + a26 = 0; + a1 = 12; + a13 = 1; + a16 = 7; + a21 = 10; + a14 = 0; + return -1; + } else if(((((a9==10)&&(((((!(a20==1)&&((a11==1)&&(a28==1)))&&(a17==2))&&(a19==3))&&(a2==1))||!(a28==1)))||(a26==1))&&((!(a0==1)&&(((a5==5)&&(((input==6)&&(a16==7))&&(a21==11)))&&(a23==1)))&&(a1==14)))){ + a1 = 12; + a6 = 1; + a5 = 4; + a14 = 0; + a23 = 1; + a21 = 10; + a20 = 1; + a19 = 1; + a9 = 7; + return -1; + } else if(((((((a3==1)&&(a1==13))&&(a21==12))||(a18==1))||!(a3==1))&&((a23==1)&&((a16==8)&&(((a19==3)&&((a3==1)&&((!(a20==1)&&(((input==5)&&((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4))))&&(a17==2)))&&(a6==1))))&&!(a26==1)))))){ + a16 = 7; + a9 = 7; + a14 = 1; + a12 = 0; + a19 = 2; + a5 = 5; + a25 = 0; + a1 = 14; + return -1; + } else if((((a14==1)||((a21==10)&&((((a23==1)&&(a12==1))&&(a17==2))||!(a3==1))))&&((a6==1)&&(!(a14==1)&&((((((((((a1==13)&&(a5==5))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==13))))||(((a5==4)&&(a1==14))&&(a9==7)))&&(input==5))&&(a19==4))&&(a16==7))&&!(a20==1))&&(a12==1)))))){ + a5 = 5; + a9 = 9; + a20 = 1; + a7 = 0; + a18 = 0; + a21 = 11; + a1 = 12; + return -1; + } else if((((((((a21==10)&&(!(a8==1)&&(((a13==1)||!(a2==1))||(a26==1))))&&(a3==1))&&!(a24==1))&&(a19==1))&&(a9==10))&&((((a12==1)&&(((a1==13)&&((a5==4)&&(input==5)))&&(a17==2)))&&(a20==1))&&(a16==8)))){ + a8 = 0; + a27 = 0; + a0 = 0; + a9 = 7; + a1 = 12; + a16 = 7; + return -1; + } else if((((((a21==11)&&(((((!(a11==1)||(a11==1))&&!(a27==1))&&(a20==1))&&(a16==10))&&(a17==2)))||(a24==1))&&(a13==1))&&((!(a18==1)&&(!(a24==1)&&((a19==3)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==5)))))&&(a1==13)))){ + a16 = 7; + a24 = 0; + a9 = 7; + a19 = 1; + a5 = 4; + a12 = 1; + a14 = 0; + a1 = 12; + a21 = 10; + return -1; + } else if((((a28==1)&&(((a17==2)&&((a9==11)&&(((((input==1)&&((a5==4)||(a5==5)))&&(a2==1))&&!(a27==1))&&(a6==1))))&&!(a26==1)))&&((a18==1)||((a16==8)&&((a19==1)&&((a1==12)&&(((a21==12)&&(a2==1))&&!(a20==1)))))))){ + a11 = 0; + a5 = 4; + a1 = 13; + a29 = 0; + a27 = 1; + a19 = 4; + a20 = 1; + a21 = 11; + return -1; + } else if(((((a16==7)&&(((((a7==1)||((a8==1)||((a12==1)&&(a1==13))))||!(a12==1))&&(a9==9))&&(a3==1)))&&(a19==3))&&((!(a26==1)&&((a21==12)&&(((((a5==4)||(a5==5))&&(input==4))&&(a17==2))&&!(a20==1))))&&(a3==1)))){ + a19 = 1; + a21 = 10; + a9 = 7; + a5 = 4; + a28 = 1; + a20 = 1; + a1 = 12; + a7 = 0; + a11 = 1; + return -1; + } else if(((((a11==1)&&((a1==13)&&((!(a24==1)&&((a17==2)&&((input==3)&&(((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))))))&&(a23==1))))&&(a2==1))&&((a16==9)&&(((a8==1)||(((a21==10)&&((a13==1)&&!(a24==1)))&&!(a20==1)))&&(a19==1))))){ + a1 = 12; + a26 = 1; + a20 = 1; + a9 = 8; + a21 = 12; + a5 = 6; + a10 = 1; + a19 = 2; + a28 = 0; + return 22; + } else if((((((((!(a4==1)&&((a11==1)&&((a16==8)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==4)))))&&!(a18==1))&&!(a20==1))&&(a2==1))&&(a17==2))&&(a11==1))&&((a21==10)&&(((a19==1)&&(!(a13==1)||(a12==1)))&&(a1==12))))){ + a9 = 7; + a7 = 0; + a5 = 4; + a20 = 1; + a0 = 0; + a26 = 0; + a16 = 7; + return -1; + } else if((((a12==1)&&((a13==1)&&((a19==3)&&(((a23==1)&&(a21==11))||!(a11==1)))))&&((((a5==5)&&(((((a1==13)&&(((input==6)&&(a17==2))&&(a20==1)))&&(a16==11))&&!(a26==1))&&(a9==10)))&&!(a18==1))&&!(a18==1)))){ + a1 = 12; + a16 = 7; + a19 = 1; + a24 = 0; + a21 = 10; + a5 = 4; + a9 = 7; + a6 = 1; + return -1; + } else if(((((a1==12)&&((a19==5)&&(((!(a23==1)||((a11==1)&&(((a14==1)||(a6==1))&&(a16==7))))||!(a23==1))&&(a21==12))))&&(a17==2))&&(((!(a26==1)&&((input==3)&&(((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))))&&!(a0==1))&&!(a20==1)))){ + a20 = 1; + a5 = 5; + a9 = 10; + a0 = 0; + a19 = 2; + a21 = 10; + a16 = 10; + a3 = 1; + return 26; + } else if((((a6==1)&&((!(a0==1)&&((a2==1)&&(!(a0==1)&&((a16==10)&&((input==3)&&(((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))))))))&&!(a26==1)))&&((!(a20==1)&&(((!(a12==1)||((a2==1)&&(a19==1)))&&(a1==14))&&(a17==2)))&&(a21==12)))){ + a9 = 9; + a21 = 11; + a5 = 4; + a23 = 0; + a28 = 0; + a19 = 4; + a29 = 1; + a20 = 1; + a16 = 9; + a1 = 13; + return -1; + } else if((((a5==4)&&(((!(a14==1)&&(((a19==4)&&(input==4))&&(a16==8)))&&!(a26==1))&&(a28==1)))&&((a9==7)&&((((a1==13)&&(!(a27==1)&&((!(a20==1)&&((a2==1)&&!(a26==1)))&&(a17==2))))&&(a28==1))&&(a21==12))))){ + if((a17==2)){ + a20 = 1; + a21 = 10; + a19 = 1; + a16 = 7; + a29 = 1; + a2 = 0; + a9 = 8; + a7 = 1; + }else{ + a26 = 1; + a9 = 8; + a15 = 1; + a27 = 1; + a16 = 7; + a20 = 1; + a19 = 5; + } + return -1; + } else if(((((a11==1)&&((a3==1)&&(((a2==1)&&((a23==1)&&((a19==1)&&(((a23==1)&&(a23==1))&&(a20==1)))))||!(a12==1))))&&(a17==2))&&(((a16==11)&&((a1==12)&&((input==3)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10))))))&&(a21==11)))){ + a1 = 14; + a26 = 0; + a19 = 2; + a9 = 10; + a21 = 10; + a16 = 9; + a5 = 4; + a7 = 0; + a3 = 1; + return 21; + } else if((((((a17==2)&&(((a21==12)&&((a28==1)&&((a2==1)&&(a1==13))))&&!(a0==1)))&&!(a7==1))&&(a19==4))&&(((a9==11)&&(!(a27==1)&&((((a2==1)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6))))&&!(a27==1))&&(a16==7))))&&(a20==1)))){ + a1 = 12; + a0 = 0; + a9 = 7; + a19 = 1; + a2 = 1; + a21 = 10; + a5 = 4; + return -1; + } else if((((((((a21==11)&&(((a14==1)&&((a16==8)&&(a28==1)))&&!(a2==1)))&&(a18==1))&&(a19==4))&&(a17==2))&&(a8==1))&&((a14==1)&&((((((input==3)&&((a5==5)||(a5==6)))&&(a9==9))&&(a20==1))&&(a1==14))&&(a4==1))))){ + a6 = 0; + a5 = 4; + a1 = 12; + a29 = 0; + a21 = 10; + a9 = 8; + a0 = 1; + a20 = 0; + a19 = 5; + return 22; + } else if((((a11==1)&&((a16==9)&&(((((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==4))&&!(a4==1))&&(a3==1))&&!(a8==1))))&&((a21==11)&&((a20==1)&&((((a1==13)&&(((a17==2)&&(a3==1))||(a14==1)))&&(a19==1))&&!(a18==1)))))){ + a1 = 12; + a5 = 4; + a9 = 7; + a16 = 7; + a11 = 1; + a21 = 10; + a23 = 1; + a14 = 0; + return -1; + } else if(((!(a20==1)&&((a17==2)&&((a1==12)&&(((a6==1)&&(!(a18==1)&&((a6==1)&&(((a5==4)||(a5==5))&&(input==6)))))&&(a16==7)))))&&(((((((a6==1)&&!(a0==1))&&(a19==1))&&(a21==11))&&(a9==11))||!(a12==1))&&!(a27==1)))){ + a9 = 7; + a20 = 1; + a2 = 1; + a5 = 4; + a28 = 1; + a21 = 10; + return -1; + } else if(((((((a20==1)&&(((((a21==10)&&(input==3))&&(a9==10))&&!(a27==1))&&!(a7==1)))&&(a1==12))&&(a2==1))&&(a5==5))&&(((a0==1)||(((!(a11==1)||((a17==2)&&(a3==1)))||!(a6==1))&&(a19==1)))&&(a16==8)))){ + a7 = 0; + a9 = 7; + a27 = 0; + a5 = 4; + a6 = 1; + a16 = 7; + return -1; + } else if(((((((a26==1)||((a16==7)&&((a1==13)&&(a2==1))))&&(a2==1))&&(a19==4))&&(a17==2))&&(!(a20==1)&&((a9==9)&&((a3==1)&&((a12==1)&&(((a12==1)&&((a13==1)&&(((a5==5)||(a5==6))&&(input==5))))&&(a21==11)))))))){ + a20 = 1; + a1 = 14; + a19 = 1; + a24 = 0; + a28 = 1; + a21 = 10; + a12 = 1; + a5 = 5; + a16 = 9; + return 23; + } else if((((!(a4==1)&&((a9==7)&&(((input==6)&&(a1==14))&&!(a8==1))))&&!(a18==1))&&((a21==10)&&((((a19==4)&&((a23==1)&&((!(a6==1)||(((a16==9)&&(a2==1))||!(a3==1)))&&!(a20==1))))&&(a5==5))&&(a17==2))))){ + if((a12==1)){ + a23 = 0; + a5 = 4; + a19 = 5; + a4 = 1; + a9 = 9; + a16 = 7; + a24 = 1; + a1 = 13; + }else{ + a23 = 0; + a2 = 0; + a20 = 1; + a0 = 1; + a19 = 2; + a16 = 7; + a9 = 11; + a1 = 12; + } + return -1; + } else if((((a19==5)&&(((a5==6)&&((((a0==1)||((!(a3==1)||(a2==1))&&!(a27==1)))&&(a21==11))||!(a6==1)))&&(a9==11)))&&(((((((input==5)&&!(a20==1))&&(a16==8))&&(a17==2))&&(a11==1))&&!(a0==1))&&(a1==12)))){ + if((a9==11)){ + a29 = 1; + a18 = 1; + a16 = 7; + a5 = 4; + a20 = 1; + a19 = 1; + a21 = 10; + a9 = 10; + a1 = 14; + a12 = 0; + }else{ + a19 = 1; + a21 = 10; + a9 = 7; + a8 = 1; + a22 = 1; + a20 = 1; + a16 = 7; + a25 = 1; + a1 = 13; + } + return -1; + } else if(((((a24==1)||((((a19==3)&&(a12==1))&&(a16==11))&&!(a0==1)))&&(a17==2))&&((a6==1)&&(((((((((a9==7)&&((a5==5)&&(a1==13)))||((((a5==6)&&(a1==12))&&(a9==11))||(((a5==4)&&(a1==13))&&(a9==7))))&&(input==4))&&(a21==12))&&(a20==1))&&(a12==1))&&!(a8==1))&&!(a27==1))))){ + a9 = 7; + a5 = 4; + a16 = 7; + a19 = 1; + a1 = 12; + a12 = 1; + a14 = 0; + a21 = 10; + a6 = 1; + return -1; + } else if((((((((input==6)&&(((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))))&&(a3==1))&&!(a7==1))&&(a19==2))&&!(a20==1))&&(((a23==1)&&((a1==14)&&(((a7==1)||(!(a26==1)&&(((a13==1)&&!(a8==1))&&(a17==2))))&&(a16==9))))&&(a21==11)))){ + a1 = 12; + a19 = 4; + a9 = 10; + a26 = 1; + a5 = 5; + a21 = 10; + a25 = 0; + a20 = 1; + a8 = 1; + a16 = 8; + return 21; + } else if(((((a5==5)&&((a1==13)&&(!(a18==1)&&((!(a18==1)&&((a28==1)&&(((input==3)&&(a20==1))&&(a19==3))))&&(a13==1)))))&&(a17==2))&&(((a16==11)&&(((a27==1)||((a2==1)&&(a3==1)))&&(a9==10)))&&(a21==11)))){ + if((a28==1)){ + a20 = 0; + a4 = 0; + a26 = 0; + a21 = 10; + a16 = 8; + a1 = 12; + a5 = 6; + a28 = 1; + }else{ + a3 = 1; + a21 = 10; + a9 = 9; + a16 = 10; + a11 = 1; + a19 = 5; + } + return 21; + } else if(((((a1==14)&&(((a17==2)&&(((((a21==10)&&((a19==4)&&(input==5)))&&(a11==1))&&!(a20==1))&&(a16==7)))&&(a5==4)))&&!(a14==1))&&(((((a4==1)||((a9==8)&&(a23==1)))||!(a2==1))&&!(a4==1))||!(a11==1)))){ + a3 = 1; + a24 = 0; + a9 = 7; + return 21; + } else if((((a21==12)&&(!(a11==1)||(!(a20==1)&&(!(a12==1)||(((!(a14==1)&&((a19==3)&&(a6==1)))&&(a1==14))&&(a16==9))))))&&((((a2==1)&&((a12==1)&&((input==6)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))))&&(a17==2))&&!(a7==1)))){ + if((a5==6)){ + a21 = 10; + a23 = 0; + a5 = 6; + a19 = 4; + a22 = 0; + a9 = 8; + a16 = 11; + a20 = 1; + a28 = 0; + }else{ + a20 = 1; + a19 = 5; + a5 = 5; + a18 = 1; + a13 = 0; + a9 = 10; + a2 = 0; + a1 = 13; + a16 = 7; + } + return -1; + } else if((((a17==2)&&(!(a24==1)&&(!(a20==1)&&((!(a24==1)&&(((a21==11)&&((input==1)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))))&&(a1==12)))&&(a3==1)))))&&(((a19==3)&&((((a2==1)&&(a16==10))||!(a3==1))&&(a13==1)))||!(a11==1)))){ + if((a2==1)){ + a16 = 7; + a20 = 1; + a10 = 0; + a5 = 5; + a19 = 2; + a21 = 10; + a1 = 13; + a9 = 9; + a2 = 0; + a8 = 1; + }else{ + a21 = 12; + a9 = 8; + a5 = 6; + a1 = 14; + a20 = 1; + a7 = 1; + a15 = 0; + a29 = 0; + a16 = 7; + } + return -1; + } else if(((!(a18==1)&&((a19==5)&&(((a11==1)&&(a1==13))&&(a21==11))))&&(!(a4==1)&&(((((a20==1)&&(((((input==3)&&(((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))))&&!(a26==1))&&(a17==2))&&(a23==1)))&&(a6==1))&&(a16==10))&&(a2==1))))){ + a9 = 7; + a1 = 12; + a6 = 1; + a19 = 1; + a2 = 1; + a5 = 4; + a16 = 7; + a21 = 10; + a23 = 1; + return -1; + } else if((((a17==2)&&(((a12==1)&&((a16==9)&&(!(a18==1)&&(((a6==1)&&((((a19==4)&&(((a5==6)&&(a1==14))&&(a9==11)))||((((a5==4)&&(a1==12))&&(a9==7))&&(a19==5)))&&(input==4)))&&!(a18==1)))))&&(a13==1)))&&(!(a20==1)&&(((a21==11)&&(a28==1))&&(a3==1))))){ + a19 = 4; + a9 = 9; + a1 = 13; + a5 = 5; + a10 = 0; + a20 = 1; + a2 = 0; + a16 = 7; + a21 = 12; + a11 = 0; + return -1; + } return calculate_output70(input); + } + + int calculate_output70(int input) { + if(((!(a7==1)&&((((a13==1)&&(((input==6)&&(a1==14))&&(a19==2)))&&(a16==8))&&(a21==11)))&&(((a5==6)&&(!(a28==1)||(!(a12==1)||(((a12==1)&&(((a27==1)||(a12==1))&&(a9==10)))&&(a17==2)))))&&(a20==1)))){ + a19 = 1; + a16 = 7; + a5 = 4; + a21 = 10; + a1 = 12; + a3 = 1; + a9 = 7; + a18 = 0; + a23 = 1; + return -1; + } else if((((a16==9)&&((a19==5)&&(((a17==2)&&((a21==10)&&(((a11==1)||!(a28==1))||(a18==1))))&&(a12==1))))&&((((!(a20==1)&&((a11==1)&&(((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&(a12==1))))&&(a9==10))&&(a1==14))&&!(a4==1)))){ + if((a5==6)){ + a16 = 10; + a15 = 0; + a19 = 1; + a11 = 0; + a9 = 8; + a5 = 6; + a29 = 1; + a21 = 12; + }else{ + a27 = 1; + a26 = 1; + a21 = 12; + a9 = 9; + a4 = 1; + a20 = 1; + a5 = 4; + } + return 22; + } else if(((((a13==1)&&(!(a24==1)&&(((input==6)&&((a5==5)||(a5==6)))&&(a12==1))))&&!(a8==1))&&(((a1==12)&&(((!(a20==1)&&((a19==4)&&((a9==10)&&(!(a7==1)&&((a3==1)&&(a2==1))))))&&(a16==8))&&(a17==2)))&&(a21==11)))){ + a8 = 0; + a16 = 10; + a5 = 6; + a20 = 1; + a9 = 9; + a2 = 1; + a21 = 12; + a19 = 5; + a1 = 13; + return 25; + } else if(((((a19==3)&&((a3==1)&&(a21==10)))||!(a23==1))&&((a17==2)&&(!(a20==1)&&((a16==10)&&((a9==11)&&(!(a18==1)&&((a2==1)&&((((a6==1)&&(((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a27==1)))&&!(a7==1))&&(a1==14)))))))))){ + a16 = 7; + a5 = 5; + a3 = 0; + a1 = 13; + a9 = 9; + a22 = 0; + a19 = 2; + return 22; + } else if((((!(a20==1)&&(((a23==1)&&((((input==5)&&(((a19==3)&&(((a5==5)&&(a1==12))&&(a9==7)))||(((((a1==14)&&(a5==6))&&(a9==11))&&(a19==2))||((a19==3)&&(((a5==4)&&(a1==12))&&(a9==7))))))&&!(a24==1))&&!(a26==1)))&&(a17==2)))&&(a12==1))&&(!(a8==1)&&((((a6==1)&&(a16==8))&&(a21==11))&&!(a24==1))))){ + a1 = 12; + a19 = 1; + a8 = 0; + a4 = 0; + a27 = 0; + a20 = 1; + a21 = 10; + a9 = 7; + a5 = 4; + a16 = 7; + return -1; + } else if((((a6==1)&&((!(a20==1)&&((a13==1)&&((a9==11)&&(((a13==1)&&!(a7==1))&&(a19==4)))))||!(a11==1)))&&((a21==10)&&(((!(a14==1)&&((a16==8)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a23==1))))&&(a1==13))&&(a17==2))))){ + a1 = 12; + a7 = 0; + a16 = 7; + a9 = 7; + a19 = 1; + a28 = 1; + a23 = 1; + a5 = 4; + a20 = 1; + return -1; + } else if((((((((a17==2)&&(((a13==1)&&(a5==6))&&(a19==2)))&&(a28==1))&&(a16==10))||!(a3==1))||(a4==1))&&((!(a8==1)&&(((((a2==1)&&((input==3)&&(a9==10)))&&(a1==12))&&(a21==11))&&(a20==1)))&&!(a7==1)))){ + a4 = 0; + a16 = 7; + a9 = 7; + a26 = 0; + a21 = 10; + a12 = 1; + a5 = 4; + a19 = 1; + return -1; + } else if(((((a20==1)&&(((((a16==9)&&(a28==1))&&!(a8==1))||(a26==1))&&(a21==11)))&&(a1==14))&&((((a17==2)&&(!(a26==1)&&(((!(a26==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))&&!(a7==1))&&(a9==7))))&&(a11==1))&&(a19==1)))){ + a8 = 0; + a2 = 1; + a9 = 10; + a5 = 5; + a21 = 12; + a1 = 12; + a18 = 0; + a19 = 3; + return 21; + } else if(((((a21==12)&&(((a17==2)&&((a19==3)&&(((a5==4)||(a5==5))&&(input==3))))&&!(a4==1)))&&!(a20==1))&&((((((!(a6==1)||((a1==13)&&((a2==1)||!(a11==1))))||!(a3==1))&&(a9==10))||!(a13==1))&&(a16==9))||!(a23==1)))){ + if((a3==1)){ + a19 = 1; + a3 = 0; + a25 = 1; + a20 = 1; + a21 = 10; + a16 = 7; + a5 = 6; + a13 = 0; + }else{ + a1 = 12; + a10 = 1; + a19 = 1; + a13 = 0; + a16 = 7; + a9 = 11; + a21 = 10; + a20 = 1; + a5 = 4; + a11 = 0; + } + return -1; + } else if(((!(a27==1)&&((a27==1)||(((a28==1)&&!(a20==1))&&(a21==12))))&&((a28==1)&&(((((((a11==1)&&(((((a9==11)&&((a1==12)&&(a5==6)))||((a9==7)&&((a1==13)&&(a5==4))))||((a9==7)&&((a1==13)&&(a5==5))))&&(input==5)))&&(a16==10))&&(a28==1))&&(a17==2))&&(a19==4))&&(a13==1))))){ + a5 = 6; + a28 = 0; + a20 = 1; + a1 = 12; + a9 = 7; + a22 = 1; + a16 = 7; + a19 = 2; + a23 = 0; + a21 = 10; + return -1; + } else if(((!(a26==1)&&(!(a0==1)&&(!(a20==1)&&(!(a2==1)||(((a17==2)&&((a1==13)&&(((!(a2==1)||(a12==1))&&(a19==2))&&!(a0==1))))&&(a16==8))))))&&(((a9==11)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&(a21==10)))&&(a28==1)))){ + a20 = 1; + a9 = 8; + a19 = 1; + a4 = 0; + a5 = 5; + a0 = 0; + a1 = 12; + a16 = 10; + a12 = 1; + return 21; + } else if((((!(a26==1)&&((((((input==1)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(a19==3))&&(a17==2))&&(a1==14))&&!(a27==1)))&&(a12==1))&&((!(a26==1)&&(((((a3==1)&&(a16==10))&&!(a20==1))&&(a21==10))||(a0==1)))||!(a6==1)))){ + if((a17==3)){ + a5 = 6; + a16 = 8; + a19 = 4; + a10 = 0; + a3 = 0; + a1 = 12; + a14 = 1; + a21 = 11; + a9 = 10; + }else{ + a9 = 10; + a27 = 1; + a16 = 11; + a20 = 1; + a22 = 0; + a21 = 12; + a29 = 0; + a5 = 6; + a19 = 2; + } + return 22; + } else if(((!(a23==1)&&(((a9==7)&&(((a19==2)&&(((a27==1)&&((a17==2)&&(((input==1)&&(a16==7))&&(a7==1))))&&!(a28==1)))&&(a5==5)))&&(a20==1)))&&((((a21==10)&&((a13==1)&&(a4==1)))&&(a1==13))&&(a27==1)))){ + a6 = 0; + a5 = 4; + a10 = 1; + a27 = 1; + a9 = 10; + a19 = 1; + return -1; + } else if(((!(a3==1)||((a2==1)&&((a19==2)&&((a6==1)&&(a11==1)))))&&((((!(a20==1)&&((((a17==2)&&((a16==9)&&((input==1)&&((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4))))))&&(a21==11))&&!(a27==1)))&&(a1==12))&&!(a0==1))&&!(a0==1)))){ + if((a11==1)){ + a9 = 11; + a5 = 5; + a8 = 1; + a29 = 0; + a21 = 12; + a19 = 3; + a25 = 1; + a1 = 13; + a16 = 10; + }else{ + a19 = 1; + a6 = 0; + a1 = 13; + a21 = 10; + a4 = 1; + a20 = 1; + a16 = 7; + a5 = 4; + a9 = 8; + } + return -1; + } else if((((((a11==1)&&(!(a27==1)&&(((a5==4)&&((input==3)&&(a21==12)))&&(a17==2))))&&(a20==1))&&(a16==9))&&(((a9==11)&&((((a1==14)&&((a26==1)||((a28==1)&&(a11==1))))||!(a28==1))&&(a2==1)))&&(a19==3)))){ + a21 = 10; + a16 = 7; + a27 = 0; + a1 = 12; + a9 = 7; + a19 = 1; + a18 = 0; + a14 = 0; + return -1; + } else if((((a1==13)&&((a2==1)&&((a2==1)&&(((a13==1)&&(((input==6)&&(a9==10))&&(a21==12)))&&(a3==1)))))&&((a17==2)&&((((a5==6)&&((a16==7)&&((a19==1)&&((a27==1)||(a28==1)))))&&(a20==1))||(a0==1))))){ + a0 = 0; + a16 = 9; + a21 = 10; + a1 = 12; + a5 = 5; + a26 = 0; + a13 = 1; + return 21; + } else if(((((a17==2)&&(((a1==12)&&((((a21==11)&&(a28==1))&&(a19==4))&&(a9==10)))||!(a6==1)))&&!(a0==1))&&(!(a20==1)&&(((((a28==1)&&((a16==9)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4))))&&!(a26==1))&&!(a7==1))&&!(a27==1))))){ + a9 = 7; + a5 = 4; + a28 = 0; + a11 = 0; + a21 = 10; + a16 = 7; + a20 = 1; + a1 = 13; + a19 = 1; + a0 = 1; + return -1; + } else if((((a12==1)&&(((a7==1)||((a24==1)||(a23==1)))||(a7==1)))&&((a9==9)&&((((a1==12)&&(((a19==3)&&(((a16==7)&&(((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a28==1)))&&(a17==2)))&&(a21==11)))&&(a13==1))&&!(a20==1))))){ + a20 = 1; + a19 = 1; + a9 = 7; + a3 = 1; + a21 = 10; + a5 = 4; + a14 = 0; + a26 = 0; + return -1; + } else if((((((((a23==1)&&((((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a27==1))&&!(a27==1)))&&(a19==2))&&(a1==12))&&(a20==1))&&(a16==9))&&(((((((a13==1)&&!(a18==1))&&(a28==1))&&(a17==2))&&!(a18==1))&&(a21==12))&&(a9==11)))){ + a21 = 10; + a9 = 9; + a7 = 0; + a19 = 4; + a5 = 6; + a18 = 0; + a1 = 13; + a24 = 0; + a16 = 11; + return 26; + } else if(((!(a20==1)&&((a23==1)&&(((!(a18==1)&&(((input==3)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))&&!(a18==1)))&&(a16==8))&&!(a26==1))))&&((a19==1)&&((a1==12)&&(((((a13==1)&&(a23==1))&&(a17==2))||!(a11==1))&&(a21==10)))))){ + a9 = 7; + a26 = 0; + a16 = 7; + a4 = 0; + a20 = 1; + a6 = 1; + a5 = 4; + return -1; + } else if(((((!(a18==1)&&((a21==11)&&((((!(a13==1)||(a2==1))&&(a16==8))&&(a28==1))||!(a12==1))))&&(a5==6))&&(a1==14))&&((a19==3)&&(!(a20==1)&&(((((input==6)&&(a9==8))&&(a17==2))&&(a28==1))&&!(a0==1)))))){ + a20 = 1; + a1 = 13; + a4 = 0; + a19 = 2; + a28 = 1; + a5 = 5; + a16 = 11; + a7 = 0; + a9 = 11; + return 21; + } else if(((((a21==10)&&(((((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==6))&&!(a26==1)))&&(a1==12))&&((!(a2==1)||(((a7==1)||(((a17==2)&&(((a16==10)&&(!(a20==1)&&(a13==1)))&&!(a7==1)))&&(a28==1)))||!(a11==1)))&&(a19==3)))){ + a9 = 9; + a19 = 2; + a26 = 1; + a5 = 4; + a3 = 0; + a16 = 7; + a20 = 1; + a25 = 0; + return -1; + } else if(((((a21==12)&&((((a19==5)&&(((a2==1)||(a7==1))&&(a5==4)))&&(a9==10))&&(a1==12)))&&!(a20==1))&&((a16==8)&&(!(a0==1)&&(((a12==1)&&((!(a18==1)&&((a17==2)&&(input==3)))&&!(a8==1)))&&(a2==1)))))){ + a25 = 1; + a28 = 0; + a20 = 1; + a19 = 2; + a9 = 8; + a29 = 0; + a1 = 14; + a21 = 10; + return -1; + } else if(((((((a1==13)&&(((a19==2)&&((((a5==4)||(a5==5))&&(input==3))&&(a0==1)))&&(a16==8)))&&(a9==9))&&(a21==12))&&(a17==2))&&(!(a13==1)&&(((((a8==1)&&((a28==1)&&(a4==1)))&&!(a6==1))&&(a14==1))&&(a20==1))))){ + a20 = 0; + a23 = 0; + a19 = 4; + a5 = 5; + a9 = 11; + a27 = 1; + a16 = 7; + a10 = 0; + return -1; + } else if(((((a17==2)&&((a19==3)&&((!(a0==1)&&((a16==8)&&(((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&!(a26==1))))&&(a6==1))))&&!(a20==1))&&(((((((a3==1)||!(a11==1))||!(a28==1))||(a18==1))&&(a9==7))&&(a1==12))&&(a21==12)))){ + if((a20==1)){ + a6 = 0; + a19 = 5; + a1 = 13; + a2 = 0; + a9 = 11; + a21 = 11; + a20 = 1; + a5 = 6; + a25 = 1; + }else{ + a9 = 9; + a21 = 10; + a5 = 4; + a20 = 1; + a11 = 0; + a2 = 0; + a19 = 2; + } + return 26; + } else if((((a1==14)&&((a17==2)&&((a28==1)&&((!(a14==1)&&((input==3)&&((a5==5)||(a5==6))))&&(a16==10)))))&&(((!(a0==1)&&(((a20==1)&&((a9==10)&&((a21==11)&&((a19==1)&&(a23==1)))))||(a24==1)))||(a26==1))&&(a2==1)))){ + a26 = 0; + a16 = 7; + a9 = 7; + a21 = 10; + a5 = 4; + a18 = 0; + a6 = 1; + a1 = 12; + return -1; + } else if((((a19==3)&&((((a21==10)&&((a16==9)&&(!(a24==1)&&(!(a8==1)&&(((input==4)&&(a9==8))&&(a23==1))))))&&(a5==6))&&(a20==1)))&&(((a23==1)&&((a17==2)&&(!(a13==1)||((a3==1)&&(a3==1)))))&&(a1==12)))){ + a5 = 4; + a19 = 1; + a14 = 0; + a11 = 1; + a9 = 7; + a16 = 7; + a8 = 0; + return -1; + } else if((((a21==12)&&(((a17==2)&&(!(a26==1)&&((((((a1==14)&&(input==4))&&!(a26==1))&&(a23==1))&&(a20==1))&&(a19==4))))&&(a5==5)))&&(((a16==11)&&((((a13==1)||(a27==1))&&!(a24==1))||(a26==1)))&&(a9==10)))){ + a2 = 1; + a13 = 1; + a21 = 10; + a16 = 7; + a1 = 12; + a19 = 1; + a5 = 4; + a9 = 7; + a11 = 1; + return -1; + } else if(((!(a26==1)&&(((a1==12)&&((!(a27==1)&&((a16==11)&&((a12==1)&&(a19==4))))||(a24==1)))||!(a12==1)))&&(((((((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==5))&&(a17==2))&&(a21==11))&&(a20==1))&&(a12==1))&&!(a26==1)))){ + a23 = 1; + a9 = 7; + a13 = 1; + a5 = 4; + a19 = 1; + a16 = 7; + a8 = 0; + a21 = 10; + return -1; + } else if(((((a17==2)&&((((a24==1)||((a7==1)||(a13==1)))&&(a1==13))||(a24==1)))&&!(a20==1))&&(((a5==6)&&(((a19==5)&&((a16==7)&&(!(a18==1)&&((a6==1)&&((a9==8)&&(input==4))))))&&!(a26==1)))&&(a21==11)))){ + a8 = 0; + a21 = 10; + a19 = 1; + a3 = 1; + a13 = 1; + a1 = 12; + a5 = 4; + a20 = 1; + a9 = 7; + return -1; + } else if((((a2==1)&&((!(a18==1)&&((a9==10)&&((a21==10)&&(input==6))))&&(a5==6)))&&((a11==1)&&(!(a26==1)&&(((a19==3)&&((a27==1)||((((a1==14)&&((a12==1)&&!(a4==1)))&&(a17==2))&&(a16==9))))&&!(a20==1)))))){ + a1 = 13; + a9 = 9; + a12 = 0; + a11 = 0; + a20 = 1; + a16 = 7; + a5 = 5; + a15 = 1; + a19 = 1; + return -1; + } else if(((((a19==3)&&((((a2==1)&&!(a20==1))||!(a3==1))||!(a11==1)))&&(a1==14))&&((((a16==8)&&(!(a0==1)&&(!(a18==1)&&((a21==10)&&(((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==1))&&(a17==2))))))&&!(a26==1))&&(a3==1)))){ + a9 = 10; + a20 = 1; + a6 = 1; + a4 = 0; + a1 = 12; + a5 = 6; + a21 = 12; + a23 = 1; + a19 = 4; + return 25; + } else if(((((a17==2)&&((a21==12)&&((a9==10)&&(((a20==1)&&((a19==3)&&((a1==13)&&(input==1))))&&!(a2==1)))))&&(a16==7))&&(!(a2==1)&&(!(a23==1)&&(!(a12==1)&&((((a3==1)&&(a5==5))&&!(a2==1))&&!(a13==1))))))){ + a15 = 1; + a9 = 8; + a1 = 12; + a21 = 10; + a19 = 1; + a12 = 0; + a0 = 1; + return -1; + } else if(((((((a21==12)&&(a3==1))&&!(a4==1))||!(a3==1))||!(a28==1))&&(((((a1==13)&&((a23==1)&&(((!(a20==1)&&((input==3)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))))&&!(a24==1))&&(a19==3))))&&(a11==1))&&(a16==9))&&(a17==2)))){ + a15 = 0; + a14 = 1; + a19 = 5; + a1 = 14; + a21 = 10; + a9 = 9; + a20 = 1; + a11 = 0; + a5 = 4; + return -1; + } else if(((!(a7==1)&&(((a12==1)&&((a3==1)&&(((input==3)&&(a16==9))&&(a17==2))))&&!(a26==1)))&&((a4==1)||((a5==6)&&((((a21==11)&&((((a6==1)&&(a19==3))&&(a9==9))||(a8==1)))&&(a20==1))&&(a1==13)))))){ + a23 = 1; + a5 = 4; + a16 = 7; + a9 = 7; + a21 = 10; + a1 = 12; + a7 = 0; + a19 = 1; + return -1; + } else if(((!(a8==1)&&(((!(a7==1)&&(((a16==10)&&((a23==1)&&!(a20==1)))&&!(a26==1)))&&(a1==12))&&(a17==2)))&&((a21==12)&&(((((a19==3)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==4)))&&!(a8==1))&&!(a27==1))&&!(a14==1))))){ + if((a3==1)){ + a20 = 1; + a3 = 0; + a25 = 0; + a1 = 14; + a16 = 8; + a5 = 5; + a19 = 5; + a9 = 8; + a6 = 0; + }else{ + a16 = 9; + a20 = 1; + a19 = 1; + a5 = 6; + a29 = 0; + a2 = 0; + a9 = 10; + a21 = 10; + } + return 25; + } else if(((((a7==1)&&((!(a23==1)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a9==7))&&(a8==1)))&&!(a3==1)))&&(a14==1))&&((a19==3)&&((a17==2)&&(!(a20==1)&&(((a1==12)&&((a16==7)&&((a12==1)&&!(a12==1))))&&(a21==11))))))){ + a20 = 1; + a9 = 9; + a16 = 9; + a21 = 10; + a25 = 1; + a19 = 1; + a14 = 1; + a11 = 0; + a5 = 4; + return -1; + } else if((((a1==14)&&((!(a12==1)||(((a24==1)||(a6==1))&&!(a26==1)))&&(a9==10)))&&(((a5==4)&&((a21==10)&&(!(a7==1)&&(!(a4==1)&&(((((a19==4)&&(input==1))&&(a17==2))&&(a16==7))&&!(a4==1))))))&&!(a20==1)))){ + a4 = 0; + a19 = 1; + a9 = 7; + a14 = 0; + a1 = 12; + a20 = 1; + a18 = 0; + return -1; + } else if((((a1==12)&&(!(a27==1)&&(((((a21==12)&&(((a5==5)||(a5==6))&&(input==6)))&&(a19==4))&&(a20==1))&&(a9==9))))&&(((((a16==9)&&(((a17==2)&&((a12==1)||(a14==1)))||!(a23==1)))||!(a3==1))&&(a11==1))&&!(a8==1)))){ + a5 = 5; + a6 = 1; + a0 = 0; + a19 = 3; + a13 = 1; + return 21; + } else if((((((a21==12)&&((!(a8==1)&&(((a0==1)||((a2==1)||!(a23==1)))&&!(a4==1)))&&!(a27==1)))&&(a19==3))&&(a20==1))&&((((a9==11)&&((a1==13)&&(((a16==8)&&(input==5))&&!(a27==1))))&&(a17==2))&&(a5==4)))){ + a0 = 0; + a1 = 14; + a19 = 2; + a28 = 1; + a13 = 1; + a9 = 9; + a5 = 6; + a16 = 10; + return 21; + } else if((((a2==1)&&((a9==10)&&((a5==5)&&((a1==13)&&(!(a8==1)&&(((a19==3)&&(input==1))&&(a20==1)))))))&&(((((!(a2==1)||((a26==1)||((a21==11)&&(a28==1))))||!(a6==1))&&(a16==11))&&(a17==2))||(a24==1)))){ + a1 = 14; + a21 = 10; + a5 = 4; + a16 = 10; + a9 = 7; + a18 = 0; + a19 = 1; + a3 = 1; + a2 = 1; + return 21; + } else if(((!(a18==1)&&(((a12==1)&&((a17==2)&&((((input==5)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(a20==1))&&(a1==13))))&&(a16==11)))&&((!(a4==1)&&((a0==1)||((a19==2)&&((!(a14==1)&&(a2==1))&&(a21==11)))))&&!(a8==1)))){ + a12 = 1; + a3 = 1; + a16 = 7; + a11 = 1; + a21 = 10; + a19 = 1; + a1 = 12; + a9 = 7; + a5 = 4; + return -1; + } else if((((a16==10)&&((a5==5)&&(((a17==2)&&(!(a12==1)||((!(a7==1)&&((a21==10)&&(a23==1)))&&(a13==1))))&&(a9==10))))&&((a19==4)&&(((a23==1)&&(((!(a20==1)&&(input==4))&&!(a4==1))&&(a11==1)))&&(a1==14))))){ + a1 = 12; + a22 = 0; + a20 = 1; + a23 = 0; + a9 = 7; + a16 = 7; + a19 = 1; + return 25; + } else if(((((a9==8)&&(!(a20==1)&&(!(a2==1)||((a4==1)||((a19==1)&&((a3==1)||!(a3==1)))))))&&(a21==12))&&(((a17==2)&&((a23==1)&&(((!(a4==1)&&((input==4)&&((a5==5)||(a5==6))))&&(a1==14))&&!(a7==1))))&&(a16==9)))){ + a28 = 0; + a7 = 1; + a5 = 5; + a19 = 2; + a9 = 11; + a26 = 1; + a16 = 8; + a20 = 1; + a21 = 10; + return 21; + } else if(((!(a0==1)&&(((a1==14)&&((a6==1)&&(((((((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&(input==6))&&(a6==1))&&(a19==2))&&(a17==2))))&&(a28==1)))&&((a16==7)&&(((a13==1)&&((a21==12)&&((a7==1)||(a28==1))))&&(a20==1))))){ + a9 = 9; + a19 = 4; + a1 = 12; + a21 = 10; + a16 = 9; + a26 = 0; + a18 = 0; + a7 = 0; + a5 = 6; + return 25; + } else if(((((a21==10)&&((!(a7==1)&&(((a3==1)&&((input==1)&&((a5==4)||(a5==5))))&&(a13==1)))&&(a13==1)))&&(a20==1))&&(((a9==11)&&((a19==5)&&(((a16==11)&&(((a6==1)&&(a17==2))&&(a28==1)))||(a24==1))))&&(a1==12)))){ + a5 = 4; + a16 = 7; + a8 = 0; + a19 = 1; + a24 = 0; + a9 = 7; + return -1; + } else if((((a28==1)&&(((a2==1)&&(!(a7==1)&&(((((input==1)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(a16==9))&&(a19==5))&&(a1==14))))&&(a21==12)))&&((((((a2==1)&&(a20==1))&&(a17==2))&&!(a26==1))||(a7==1))||!(a23==1)))){ + a3 = 1; + a9 = 10; + a7 = 0; + a5 = 5; + a20 = 0; + a16 = 8; + a19 = 2; + a14 = 0; + a21 = 11; + a1 = 12; + return 26; + } else if((((((!(a24==1)&&(!(a20==1)&&((a2==1)&&((a19==5)&&(!(a18==1)&&((input==5)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))))))))&&!(a26==1))&&(a1==13))&&(a16==8))&&((a17==2)&&(((a8==1)||((a6==1)&&(a21==11)))&&!(a7==1))))){ + if((a23==1)){ + a9 = 7; + a19 = 1; + a12 = 0; + a16 = 7; + a24 = 1; + a21 = 10; + a15 = 0; + a1 = 12; + a5 = 6; + }else{ + a21 = 10; + a22 = 1; + a16 = 7; + a20 = 1; + a5 = 5; + a1 = 12; + a19 = 1; + a9 = 9; + a29 = 1; + } + return -1; + } else if((((((((a7==1)||((a23==1)&&(a1==12)))&&(a21==10))&&(a17==2))&&!(a20==1))||!(a6==1))&&(((a3==1)&&((((((input==5)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(a11==1))&&(a23==1))&&(a16==10))&&!(a26==1)))&&(a19==2)))){ + a1 = 13; + a20 = 1; + a21 = 11; + a9 = 11; + a14 = 1; + a2 = 0; + a16 = 8; + a19 = 4; + a5 = 5; + a24 = 1; + return 21; + } else if(((((((a9==9)&&((a7==1)||((((a28==1)&&(a13==1))&&(a20==1))&&(a16==9))))||!(a3==1))&&!(a0==1))&&(a3==1))&&(!(a18==1)&&((a21==10)&&(((a19==4)&&(((input==5)&&(a17==2))&&(a1==14)))&&(a5==5)))))){ + a16 = 11; + a24 = 0; + a19 = 2; + a4 = 0; + a23 = 1; + a5 = 4; + a9 = 7; + return 21; + } else if((((a16==8)&&(((a19==4)&&(((((input==5)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(a6==1))&&(a21==12))&&!(a20==1)))&&(a17==2)))&&(!(a14==1)&&((!(a0==1)&&(!(a8==1)&&(((a23==1)&&(a3==1))||(a27==1))))&&(a1==14))))){ + if((a21==11)){ + a8 = 1; + a16 = 7; + a9 = 10; + a21 = 10; + a1 = 12; + a20 = 1; + a5 = 5; + a19 = 1; + a6 = 0; + a25 = 0; + }else{ + a10 = 1; + a21 = 10; + a26 = 1; + a20 = 1; + a1 = 13; + a19 = 1; + a5 = 5; + a9 = 9; + a16 = 7; + a28 = 0; + } + return 25; + } else if((((a3==1)&&((a3==1)&&(!(a18==1)&&((a16==7)&&((a28==1)&&(!(a20==1)&&((((input==1)&&(a9==8))&&!(a14==1))&&(a6==1))))))))&&((a21==11)&&((a19==1)&&(((a17==2)&&((a1==14)&&(a28==1)))&&(a5==4)))))){ + a9 = 9; + a13 = 1; + a18 = 0; + a19 = 4; + a20 = 1; + a26 = 0; + return 26; + } else if((((((a17==2)&&((((a2==1)||(a8==1))&&(a21==12))||!(a6==1)))&&(a20==1))&&(a13==1))&&((!(a14==1)&&((a19==1)&&((((a28==1)&&(((input==4)&&(a9==8))&&(a1==14)))&&(a5==6))&&(a16==7))))&&(a28==1)))){ + a24 = 0; + a9 = 7; + a1 = 12; + a11 = 1; + a13 = 1; + a5 = 4; + a21 = 10; + return -1; + } else if(((((((a13==1)&&(a12==1))&&(a20==1))&&(a16==11))&&!(a8==1))&&(((!(a7==1)&&(!(a7==1)&&((a9==10)&&(((a17==2)&&((a21==11)&&(((input==3)&&((a5==4)||(a5==5)))&&(a19==5))))&&(a1==12)))))&&(a23==1))&&(a3==1)))){ + a21 = 12; + a18 = 0; + a16 = 9; + a8 = 0; + a7 = 0; + a19 = 3; + a5 = 4; + return 21; + } else if(((!(a8==1)&&((a16==8)&&((((a19==5)&&((a1==12)&&((input==1)&&((a5==4)||(a5==5)))))&&(a9==9))&&(a28==1))))&&((((a0==1)||(!(a12==1)||((a21==10)&&(((a6==1)&&!(a20==1))&&!(a27==1)))))||(a24==1))&&(a17==2)))){ + a28 = 1; + a1 = 13; + a21 = 11; + a5 = 6; + a9 = 7; + a19 = 4; + a13 = 1; + a20 = 1; + a2 = 1; + return 25; + } else if((((((a17==2)&&((a2==1)&&((input==3)&&((((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))||((a5==4)&&(a9==10))))))&&!(a8==1))&&!(a27==1))&&((a20==1)&&((a21==10)&&((a7==1)||((a1==14)&&((a19==2)&&((a16==11)&&((a2==1)&&((a6==1)||(a8==1))))))))))){ + a12 = 1; + a16 = 9; + a9 = 10; + a2 = 1; + a28 = 1; + a5 = 4; + return 21; + } else if((((a9==10)&&(((!(a4==1)&&((input==5)&&((a5==4)||(a5==5))))&&(a12==1))&&(a6==1)))&&((((((a17==2)&&((a16==7)&&(!(a0==1)&&(((a0==1)||(a13==1))&&(a1==13)))))&&(a19==4))&&(a3==1))&&(a21==11))&&!(a20==1)))){ + a19 = 3; + a9 = 9; + a13 = 1; + a26 = 0; + a1 = 14; + a5 = 6; + a3 = 1; + a21 = 10; + return 23; + } else if((((((a21==10)&&(a2==1))||!(a12==1))&&(a23==1))&&(!(a24==1)&&((((a17==2)&&(((a19==3)&&((((input==5)&&((((a1==13)&&(a5==5))&&(a9==7))||((((a1==12)&&(a5==6))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==13))))))&&(a20==1))&&!(a24==1)))&&(a16==11)))&&(a11==1))&&(a12==1))))){ + a18 = 0; + a16 = 7; + a8 = 0; + a19 = 1; + a9 = 7; + a5 = 4; + a7 = 0; + a1 = 12; + return -1; + } else if((((((a9==7)&&(((a17==2)&&((a19==3)&&((a6==1)&&(((a20==1)&&(((a5==5)||(a5==6))&&(input==4)))&&!(a18==1)))))&&(a3==1)))&&!(a0==1))&&(a21==11))&&(((a3==1)&&((a4==1)||((a28==1)&&(a1==13))))&&(a16==10)))){ + a23 = 1; + a19 = 1; + a1 = 12; + a5 = 4; + a16 = 7; + a4 = 0; + a21 = 10; + a24 = 0; + return -1; + } else if((((a5==4)&&((a1==13)&&(!(a13==1)||(!(a7==1)&&((a9==8)&&((a19==5)&&(!(a13==1)||(a13==1))))))))&&((a21==10)&&((a16==8)&&(!(a20==1)&&((a2==1)&&(((a6==1)&&((a17==2)&&(input==5)))&&!(a24==1)))))))){ + a2 = 1; + a20 = 1; + a9 = 7; + a16 = 7; + a7 = 0; + a19 = 1; + a1 = 12; + return -1; + } else if((((a19==4)&&((((a21==11)&&((a3==1)&&!(a4==1)))||!(a28==1))&&(a17==2)))&&((a1==14)&&(!(a18==1)&&((a9==7)&&((a20==1)&&((a16==7)&&((a11==1)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&!(a24==1))&&(a13==1)))))))))){ + a3 = 1; + a13 = 1; + a5 = 5; + a24 = 0; + a16 = 8; + return 21; + } else if((((a1==13)&&((a11==1)&&((a13==1)&&(((a21==11)&&((a19==3)&&(!(a7==1)&&((input==3)&&((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4)))))))&&(a13==1)))))&&(!(a28==1)||((a16==7)&&((a20==1)&&(!(a7==1)&&((a6==1)&&(a17==2)))))))){ + a19 = 5; + a1 = 14; + a5 = 4; + a9 = 10; + a18 = 0; + a16 = 8; + a23 = 1; + a13 = 1; + a21 = 10; + return 23; + } else if((((a16==11)&&((((((a12==1)&&(!(a18==1)&&((input==1)&&((a5==4)||(a5==5)))))&&(a9==11))&&(a13==1))&&(a17==2))&&(a1==12)))&&((a21==12)&&((a20==1)&&((a13==1)&&((!(a18==1)&&((a6==1)&&(a19==3)))&&(a28==1))))))){ + a1 = 14; + a5 = 6; + a3 = 1; + a11 = 1; + a9 = 10; + a19 = 4; + a26 = 0; + return 22; + } else if((((!(a20==1)&&(((a8==1)||((((a5==6)&&(a13==1))&&(a9==7))||!(a12==1)))&&(a28==1)))&&(a17==2))&&((((((a13==1)&&(!(a4==1)&&((input==6)&&(a16==8))))&&(a19==1))&&(a1==12))&&!(a24==1))&&(a21==10)))){ + a21 = 12; + a9 = 10; + a7 = 0; + a16 = 7; + a13 = 1; + a1 = 14; + a19 = 2; + a28 = 1; + a20 = 1; + return 23; + } else if((((a19==4)&&(((a21==10)&&((!(a27==1)&&(!(a8==1)&&((a13==1)&&(((a5==5)||(a5==6))&&(input==5)))))&&(a16==7)))&&(a17==2)))&&(((a9==9)&&(!(a20==1)&&(!(a27==1)&&(((a13==1)&&!(a7==1))||!(a6==1)))))&&(a1==13)))){ + a9 = 8; + a5 = 5; + a1 = 14; + a2 = 1; + a28 = 1; + a18 = 0; + return 25; + } else if(((((((a21==11)&&(((a13==1)&&(((((input==6)&&((a5==5)||(a5==6)))&&(a13==1))&&(a17==2))&&(a16==7)))&&!(a4==1)))&&(a19==3))&&!(a20==1))&&(a9==10))&&(((a24==1)||((a1==13)&&((a14==1)||(a12==1))))||(a0==1)))){ + a5 = 5; + a18 = 0; + a2 = 1; + a9 = 8; + a20 = 1; + a21 = 12; + a16 = 10; + a24 = 0; + return 25; + } else if((((a17==2)&&((a21==12)&&((a20==1)&&((a11==1)&&((a19==4)&&((a12==1)&&(a3==1)))))))&&(((a5==6)&&((a2==1)&&(!(a0==1)&&((((a16==11)&&((input==5)&&(a9==11)))&&!(a7==1))&&!(a26==1)))))&&(a1==13)))){ + a19 = 1; + a16 = 7; + a9 = 7; + a21 = 10; + a1 = 12; + a26 = 0; + a6 = 1; + a5 = 4; + a11 = 1; + return -1; + } else if(((((a1==14)&&((a9==8)&&((a4==1)||(!(a12==1)||((a13==1)&&!(a24==1))))))&&(a17==2))&&(!(a20==1)&&(((((a3==1)&&((!(a24==1)&&(((a5==5)||(a5==6))&&(input==4)))&&(a16==7)))&&!(a0==1))&&(a19==3))&&(a21==10))))){ + a1 = 12; + a21 = 11; + a5 = 5; + a9 = 11; + a26 = 0; + a16 = 8; + a27 = 0; + a13 = 1; + return -1; + } else if((((((((a9==11)&&((a16==10)&&((a19==1)&&(input==3))))&&(a13==1))&&!(a26==1))&&!(a0==1))&&(a1==14))&&((a28==1)&&(((!(a12==1)||(!(a18==1)&&(((a5==4)&&(a28==1))&&(a21==12))))&&(a17==2))&&(a20==1))))){ + a21 = 10; + a16 = 7; + a19 = 2; + a2 = 1; + a9 = 9; + a24 = 0; + a7 = 0; + a1 = 13; + return -1; + } else if((((a21==12)&&(((a16==10)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==5)))&&(a12==1)))&&(!(a13==1)||(!(a6==1)||(((a19==3)&&(!(a8==1)&&((!(a20==1)&&(((a11==1)&&(a17==2))||!(a12==1)))&&(a1==12))))&&!(a27==1)))))){ + a20 = 1; + a9 = 8; + a5 = 5; + a19 = 1; + a22 = 1; + a3 = 0; + a16 = 7; + a21 = 10; + a4 = 1; + return 21; + } else if((((((((!(a24==1)&&((a9==9)&&((a1==12)&&(a11==1))))&&(a21==11))||!(a11==1))&&(a16==10))&&(a19==1))&&!(a20==1))&&((a17==2)&&((a6==1)&&(!(a14==1)&&((a6==1)&&((a28==1)&&(((a5==4)||(a5==5))&&(input==3))))))))){ + a19 = 5; + a2 = 0; + a9 = 7; + a16 = 7; + a12 = 0; + a1 = 13; + a5 = 5; + a20 = 1; + return -1; + } else if((((((a11==1)&&((a11==1)&&(((a11==1)&&(a17==2))&&(a21==11))))||!(a2==1))&&(a1==14))&&(((!(a24==1)&&((a19==1)&&((a20==1)&&(((a28==1)&&(((a5==5)||(a5==6))&&(input==6)))&&(a11==1)))))&&(a16==9))&&(a9==11)))){ + if((a25==1)){ + a5 = 4; + a21 = 10; + a3 = 1; + a14 = 0; + a16 = 8; + a19 = 3; + a20 = 0; + a9 = 9; + a24 = 0; + }else{ + a5 = 5; + a21 = 12; + a1 = 13; + a9 = 10; + a19 = 3; + a23 = 1; + a2 = 1; + a16 = 10; + a14 = 0; + } + return 21; + } else if(((((((a21==11)&&(((a6==1)&&(a12==1))&&!(a18==1)))&&(a17==2))&&(a12==1))&&(a1==12))&&((a19==5)&&((!(a14==1)&&(!(a0==1)&&(((a23==1)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==1)))&&(a20==1))))&&(a16==10))))){ + a28 = 1; + a16 = 7; + a5 = 4; + a19 = 2; + a21 = 10; + a9 = 9; + a1 = 13; + a26 = 0; + return 25; + } else if(((((!(a0==1)&&((((a17==2)&&(((input==3)&&(a16==8))&&(a5==4)))&&(a19==5))&&(a21==10)))&&(a23==1))&&(a2==1))&&((a3==1)&&(((a1==12)&&((a9==9)&&(((a3==1)&&(a28==1))&&(a20==1))))&&!(a4==1))))){ + a16 = 7; + a9 = 7; + a18 = 0; + a12 = 1; + a19 = 1; + a28 = 1; + return -1; + } else if(((((((a17==2)&&(!(a20==1)&&(((a16==10)&&((a12==1)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a21==10))))&&(a6==1))&&!(a18==1))&&(a19==4))&&(((a2==1)&&((a11==1)&&(((a6==1)&&(a1==12))&&(a9==10))))||(a4==1)))){ + if((a29==1)){ + a1 = 13; + a2 = 0; + a9 = 11; + a16 = 7; + a5 = 4; + a25 = 1; + a19 = 1; + a10 = 1; + a20 = 1; + }else{ + a5 = 6; + a16 = 7; + a15 = 0; + a12 = 0; + a20 = 1; + a19 = 1; + a1 = 13; + a10 = 1; + } + return -1; + } else if((((a17==2)&&((!(a27==1)&&(!(a24==1)&&((a28==1)&&(((a16==9)&&((a1==13)&&(input==6)))&&(a28==1)))))&&(a21==12)))&&(((a5==5)&&((a9==9)&&(!(a23==1)||(((a28==1)&&(a19==2))&&(a6==1)))))&&(a20==1)))){ + a9 = 7; + a19 = 3; + a21 = 10; + a8 = 0; + a16 = 10; + a24 = 0; + a5 = 4; + a1 = 14; + a3 = 1; + return 26; + } else if((((((a23==1)&&(((a17==2)&&((a1==12)&&((input==3)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))))&&(a16==7)))&&(a19==4))&&!(a18==1))&&(((a2==1)&&(((a6==1)&&((a20==1)&&((a21==10)&&(a12==1))))&&!(a18==1)))||(a27==1)))){ + a2 = 1; + a19 = 1; + a27 = 0; + a9 = 7; + a26 = 0; + a5 = 4; + return -1; + } else if(((!(a24==1)&&((a1==14)&&(((input==3)&&(((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))))&&(a20==1))))&&((!(a28==1)||((a19==3)&&((a17==2)&&(((a23==1)&&((a11==1)&&(!(a3==1)||(!(a12==1)||(a6==1)))))&&(a21==12)))))&&(a16==7)))){ + a1 = 12; + a12 = 1; + a7 = 0; + a21 = 10; + a19 = 1; + a9 = 7; + a5 = 4; + return -1; + } else if((((a2==1)&&(((a17==2)&&((a19==5)&&((((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a21==11))&&(a1==13))))&&(a16==8)))&&(!(a8==1)&&(!(a0==1)&&(!(a14==1)&&((!(a23==1)||(((a2==1)&&(a20==1))&&(a9==10)))&&(a2==1))))))){ + a9 = 9; + a16 = 7; + a24 = 0; + a21 = 10; + a8 = 0; + a5 = 4; + a19 = 2; + a26 = 0; + return 25; + } else if((((a1==12)&&(((a23==1)&&((a3==1)&&((a20==1)&&(!(a27==1)&&((input==5)&&((a5==4)||(a5==5)))))))&&(a17==2)))&&((a16==9)&&((a9==11)&&((a19==3)&&((!(a2==1)||((a21==10)&&((a3==1)&&(a3==1))))&&!(a4==1))))))){ + a12 = 1; + a1 = 13; + a5 = 6; + a9 = 10; + a2 = 1; + a19 = 4; + a21 = 11; + return 22; + } else if((((a17==2)&&(((a28==1)&&(!(a24==1)&&((input==1)&&(((a9==7)&&((a1==13)&&(a5==5)))||((((a5==6)&&(a1==12))&&(a9==11))||((a9==7)&&((a1==13)&&(a5==4))))))))&&(a19==3)))&&((((a21==11)&&(!(a28==1)||((a14==1)||(!(a7==1)&&(!(a2==1)||(a12==1))))))&&!(a20==1))&&(a16==7)))){ + a19 = 2; + a9 = 9; + a5 = 4; + a20 = 1; + a1 = 13; + a13 = 1; + a21 = 10; + a23 = 1; + a3 = 1; + return 25; + } else if((((!(a14==1)&&(((!(a14==1)&&((a23==1)&&!(a27==1)))&&(a21==11))&&(a2==1)))&&(a20==1))&&((a19==4)&&((a16==9)&&((a17==2)&&((((input==3)&&(((a9==11)&&((a5==6)&&(a1==12)))||((a9==7)&&((a5==4)&&(a1==13)))))&&(a6==1))&&(a3==1))))))){ + a5 = 4; + a9 = 7; + a16 = 7; + a21 = 10; + a1 = 12; + a13 = 1; + a19 = 1; + a6 = 1; + a26 = 0; + return -1; + } else if((((a1==14)&&(((a23==1)&&(!(a0==1)&&((((((input==4)&&((a5==5)||(a5==6)))&&(a20==1))&&(a17==2))&&(a16==7))&&(a13==1))))&&(a21==11)))&&(((a28==1)&&((a9==11)&&(((a23==1)&&(a19==3))||(a4==1))))||(a24==1)))){ + a27 = 0; + a5 = 4; + a2 = 1; + a26 = 0; + a9 = 7; + a21 = 10; + a19 = 1; + a1 = 12; + return -1; + } else if(((((a27==1)||(((!(a14==1)&&((a21==12)&&(a6==1)))&&(a16==11))&&!(a7==1)))&&!(a26==1))&&((a6==1)&&(((a20==1)&&(((input==1)&&(((((a1==14)&&(a5==6))&&(a9==11))&&(a19==1))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==2))))&&(a17==2)))&&!(a4==1))))){ + a24 = 0; + a1 = 14; + a9 = 8; + a21 = 10; + a20 = 0; + a23 = 1; + a16 = 8; + a2 = 1; + a19 = 3; + a5 = 6; + return 21; + } else if((((a21==11)&&((a28==1)&&((a13==1)&&(!(a14==1)&&(!(a26==1)&&(((((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==6))&&!(a18==1)))))))&&((a16==10)&&((a19==4)&&(((a20==1)&&(((a11==1)&&(a13==1))&&(a1==13)))&&(a17==2)))))){ + a21 = 10; + a3 = 1; + a19 = 2; + a9 = 9; + a5 = 5; + a16 = 7; + a26 = 0; + return -1; + } else if((((a2==1)&&(((a19==5)&&((((!(a4==1)&&(a11==1))&&(a20==1))&&(a2==1))||(a0==1)))&&(a17==2)))&&(((a1==12)&&((a9==8)&&((a23==1)&&(!(a8==1)&&((a16==9)&&((input==6)&&((a5==4)||(a5==5))))))))&&(a21==12)))){ + a5 = 4; + a13 = 1; + a28 = 1; + a21 = 10; + a16 = 7; + a19 = 1; + a9 = 7; + return -1; + } else if((((a21==11)&&(!(a2==1)&&((a28==1)&&(a14==1))))&&((a17==2)&&((a1==13)&&((!(a13==1)&&(((a7==1)&&((!(a2==1)&&((((input==3)&&(a16==9))&&(a9==8))&&(a20==1)))&&(a18==1)))&&(a5==4)))&&(a19==4)))))){ + a21 = 10; + a18 = 1; + a1 = 14; + a9 = 11; + a4 = 1; + a16 = 7; + a24 = 1; + a19 = 1; + return -1; + } else if(((!(a27==1)&&(((a12==1)&&(a19==2))&&(a16==9)))&&((!(a26==1)&&((a28==1)&&((a1==12)&&(((((a3==1)&&((a21==11)&&((input==4)&&((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4))))))&&(a13==1))&&(a17==2))&&!(a20==1)))))&&!(a24==1)))){ + if((a11==1)){ + a20 = 1; + a16 = 7; + a5 = 5; + a29 = 0; + a21 = 10; + a0 = 1; + a9 = 10; + a19 = 1; + a1 = 13; + a25 = 0; + }else{ + a20 = 1; + a21 = 12; + a1 = 13; + a5 = 6; + a19 = 5; + a6 = 0; + a29 = 1; + a9 = 9; + a11 = 0; + } + return -1; + } else if((((!(a24==1)&&(((!(a20==1)&&(((((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(input==1))&&(a17==2)))&&(a19==5))&&!(a24==1)))&&!(a8==1))&&((((((a21==10)&&((a1==12)&&(a12==1)))&&(a16==9))&&(a2==1))||(a18==1))||(a4==1)))){ + a21 = 11; + a1 = 13; + a26 = 1; + a16 = 8; + a5 = 4; + a9 = 7; + a19 = 4; + a14 = 1; + return -1; + } else if(((((((((a28==1)&&!(a27==1))&&!(a18==1))&&!(a14==1))&&(a3==1))&&(a1==12))&&(a9==9))&&((a16==11)&&((a21==12)&&(((a19==5)&&((((a13==1)&&(((a5==5)||(a5==6))&&(input==6)))&&(a20==1))&&(a17==2)))&&(a6==1)))))){ + a19 = 1; + a5 = 4; + a16 = 7; + a13 = 1; + a9 = 7; + a14 = 0; + a2 = 1; + a21 = 10; + return -1; + } else if((((((a6==1)&&(((a9==8)&&(((a5==4)||(a5==5))&&(input==3)))&&!(a20==1)))&&(a21==12))&&(a19==2))&&((((!(a28==1)||(((a7==1)||(((a16==8)&&(a6==1))&&(a23==1)))||!(a2==1)))&&(a17==2))&&(a1==14))||(a18==1)))){ + if((a16==11)){ + a9 = 10; + a16 = 7; + a8 = 1; + a3 = 0; + a21 = 10; + a1 = 12; + a20 = 1; + a6 = 0; + a5 = 4; + }else{ + a5 = 6; + a8 = 1; + a16 = 7; + a19 = 1; + a20 = 1; + a21 = 10; + a29 = 1; + a2 = 0; + a1 = 13; + } + return -1; + } else if(((!(a14==1)&&((a28==1)&&((((((((a19==5)&&(((a5==4)&&(a1==12))&&(a9==7)))||(((a19==4)&&(((a5==5)&&(a1==14))&&(a9==11)))||(((a9==11)&&((a5==6)&&(a1==14)))&&(a19==4))))&&(input==6))&&(a12==1))&&(a17==2))&&!(a14==1))&&!(a18==1))))&&((a0==1)||((a16==9)&&(((a20==1)&&(a6==1))&&(a21==10)))))){ + a5 = 6; + a1 = 14; + a9 = 8; + a16 = 10; + a23 = 1; + a11 = 1; + a27 = 0; + a19 = 3; + return 21; + } else if((((a9==9)&&((a14==1)||((a16==9)&&((a19==5)&&(((a1==13)&&(!(a20==1)&&(a3==1)))&&!(a8==1))))))&&((a23==1)&&((a21==10)&&((((((input==6)&&((a5==5)||(a5==6)))&&(a12==1))&&(a17==2))&&(a28==1))&&!(a14==1)))))){ + if((a7==1)){ + a12 = 0; + a22 = 0; + a9 = 7; + a5 = 5; + a19 = 2; + a0 = 1; + }else{ + a21 = 11; + a5 = 4; + a20 = 1; + a1 = 12; + a7 = 1; + a19 = 4; + a25 = 0; + a16 = 7; + } + return -1; + } else if((((((a16==11)&&((a19==3)&&((((a8==1)&&(a11==1))&&(a26==1))&&(a24==1))))&&(a1==12))&&(a20==1))&&(!(a6==1)&&(((a17==2)&&(((a21==11)&&((input==1)&&(((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))))&&!(a12==1)))&&(a7==1))))){ + a19 = 1; + a9 = 8; + a16 = 7; + a5 = 4; + a21 = 10; + a4 = 1; + a0 = 1; + a2 = 0; + return -1; + } else if((((a1==12)&&((a12==1)&&(((a11==1)&&(((((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(input==6))&&(a19==3)))&&(a11==1))))&&(((a21==11)&&(((a17==2)&&((!(a12==1)||((a4==1)||(a28==1)))&&(a20==1)))&&(a16==9)))&&!(a7==1)))){ + a9 = 7; + a21 = 10; + a23 = 1; + a11 = 1; + a16 = 7; + a5 = 4; + a19 = 1; + return -1; + } else if((((!(a4==1)&&((a12==1)&&((a11==1)&&((a21==11)&&(((input==5)&&(a17==2))&&(a16==11))))))&&(a11==1))&&((a20==1)&&((a1==12)&&(((((a19==5)&&((a3==1)&&(a6==1)))||(a8==1))&&(a9==8))&&(a5==5)))))){ + a13 = 1; + a9 = 7; + a21 = 10; + a12 = 1; + a5 = 4; + a19 = 1; + a16 = 7; + a7 = 0; + return -1; + } else if((((a16==7)&&(((!(a23==1)||((a19==4)&&(a2==1)))&&(a9==7))&&(a21==12)))&&(!(a20==1)&&(((a17==2)&&((a6==1)&&((!(a27==1)&&((a3==1)&&((a23==1)&&((input==5)&&((a5==5)||(a5==6))))))&&(a12==1))))&&(a1==12))))){ + a19 = 1; + a0 = 0; + a5 = 4; + a20 = 1; + a23 = 1; + a28 = 1; + a21 = 10; + return -1; + } else if(((((a19==5)&&(!(a27==1)&&(!(a14==1)&&((!(a7==1)&&((a1==13)&&(!(a8==1)&&((a5==5)&&(input==5)))))&&(a16==11)))))&&(a17==2))&&((a21==11)&&((((a20==1)&&((a28==1)||!(a23==1)))&&(a2==1))&&(a9==7))))){ + a5 = 4; + a1 = 12; + a14 = 0; + a9 = 9; + a28 = 1; + a8 = 0; + a19 = 4; + a21 = 10; + a16 = 7; + return -1; + } else if(((((a1==12)&&((((((a23==1)||(a18==1))&&(a20==1))&&(a21==10))||(a4==1))&&(a19==4)))&&(a17==2))&&((a28==1)&&((((a16==9)&&(((((a5==4)||(a5==5))&&(input==1))&&(a11==1))&&(a9==7)))&&!(a4==1))&&(a3==1))))){ + if((a6==1)){ + a23 = 1; + a19 = 2; + a20 = 0; + a16 = 7; + a8 = 0; + a3 = 1; + a21 = 11; + a5 = 6; + a9 = 8; + }else{ + a9 = 10; + a18 = 0; + a11 = 1; + a6 = 1; + a16 = 11; + a1 = 13; + a5 = 4; + a19 = 2; + } + return 26; + } else if((((a17==2)&&((a20==1)&&(((((((a5==5)||(a5==6))&&(input==3))&&(a16==8))&&(a19==2))&&!(a0==1))&&(a9==7))))&&((a21==12)&&((a1==14)&&(((((!(a27==1)&&(a6==1))||!(a28==1))||!(a3==1))||(a8==1))||!(a28==1)))))){ + a0 = 0; + a19 = 1; + a24 = 0; + a4 = 0; + a1 = 12; + a21 = 10; + a16 = 7; + a5 = 4; + return -1; + } else if((((a21==12)&&((a19==2)&&((!(a26==1)&&((!(a26==1)&&((a11==1)&&((!(a20==1)&&(input==5))&&(a17==2))))&&(a9==8)))&&(a11==1))))&&((a5==6)&&((((a1==13)&&(!(a8==1)&&(a6==1)))||!(a3==1))&&(a16==9))))){ + a16 = 7; + a1 = 12; + a2 = 0; + a21 = 10; + a18 = 1; + a25 = 1; + a20 = 1; + a9 = 11; + return -1; + } else if((((((a28==1)&&(a12==1))&&(a21==10))&&!(a7==1))&&((a17==2)&&((a2==1)&&((!(a20==1)&&(((a19==3)&&((a16==10)&&(!(a18==1)&&((a1==13)&&((input==1)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5))))))))&&(a3==1)))&&!(a14==1)))))){ + a13 = 0; + a21 = 11; + a5 = 5; + a1 = 12; + a16 = 7; + a19 = 5; + a22 = 0; + a9 = 11; + return 21; + } else if(((!(a24==1)&&((a9==9)&&(((a21==10)&&((a6==1)&&((!(a27==1)&&(((input==5)&&((a5==4)||(a5==5)))&&(a17==2)))&&(a11==1))))&&(a1==14))))&&(!(a27==1)&&((a16==10)&&((((a3==1)&&(a19==1))&&!(a20==1))||!(a28==1)))))){ + a0 = 1; + a16 = 7; + a4 = 1; + a26 = 1; + a1 = 12; + a9 = 10; + a5 = 6; + a20 = 1; + return -1; + } else if((((a19==1)&&(((a0==1)||((a5==4)&&(!(a28==1)||((a28==1)||!(a12==1)))))&&(a20==1)))&&((a1==12)&&(!(a27==1)&&((a9==9)&&((a13==1)&&((!(a14==1)&&(((a16==9)&&(input==6))&&(a17==2)))&&(a21==10)))))))){ + a28 = 1; + a3 = 1; + a9 = 7; + a13 = 1; + a16 = 7; + return -1; + } else if((((a20==1)&&(((!(a18==1)&&(!(a24==1)&&((a12==1)&&(((input==1)&&((a5==5)||(a5==6)))&&(a19==3)))))&&(a16==8))&&(a9==8)))&&((((((!(a23==1)||(a11==1))||(a14==1))||(a0==1))&&(a17==2))&&(a1==13))&&(a21==11)))){ + a9 = 11; + a21 = 10; + a1 = 14; + a4 = 0; + a28 = 1; + a19 = 5; + a16 = 10; + a5 = 6; + return 23; + } else if((((a28==1)&&(((a17==2)&&((((a20==1)&&((a21==11)&&(((a1==14)&&((a16==9)&&(input==6)))&&(a5==6))))&&!(a26==1))&&(a9==11)))&&(a19==3)))&&(!(a18==1)&&(!(a12==1)||(((a3==1)&&(a28==1))&&!(a26==1)))))){ + a16 = 7; + a6 = 1; + a28 = 1; + a19 = 1; + a5 = 4; + a21 = 10; + a1 = 12; + a9 = 7; + return -1; + } else if(((((a12==1)&&((((a12==1)&&((input==3)&&(a21==11)))&&!(a8==1))&&(a5==4)))&&!(a26==1))&&((a19==5)&&((a20==1)&&((((a17==2)&&(((a28==1)&&((a12==1)&&(a11==1)))&&(a1==12)))&&(a9==9))&&(a16==7)))))){ + a28 = 1; + a19 = 1; + a21 = 12; + a12 = 1; + a11 = 1; + a5 = 5; + a16 = 8; + return 26; + } else if((((a1==12)&&((a9==10)&&((a21==10)&&((!(a7==1)&&((a27==1)||((a24==1)||(a28==1))))&&(a3==1)))))&&(((a17==2)&&(!(a4==1)&&((a19==5)&&(((a2==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&(a20==1)))))&&(a16==10)))){ + a1 = 13; + a19 = 2; + a4 = 0; + a16 = 7; + a9 = 9; + a5 = 4; + a12 = 1; + a3 = 1; + return 23; + } else if(((!(a28==1)||((a19==5)&&((!(a0==1)&&(((a16==11)&&((a3==1)&&(a21==11)))||(a0==1)))||(a14==1))))&&((((a20==1)&&(((a17==2)&&((((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6))))&&(input==5)))&&(a11==1)))&&(a1==14))&&(a12==1)))){ + a23 = 1; + a19 = 1; + a5 = 4; + a1 = 12; + a16 = 7; + a21 = 10; + a9 = 7; + a2 = 1; + a24 = 0; + return -1; + } else if(((!(a6==1)||((a14==1)||(((((a1==12)&&(((a14==1)||(a2==1))&&(a19==1)))&&!(a4==1))||(a8==1))&&(a9==10))))&&(((a21==11)&&((a17==2)&&(((a16==10)&&((input==4)&&((a5==4)||(a5==5))))&&(a23==1))))&&(a20==1)))){ + a5 = 4; + a9 = 7; + a13 = 1; + a16 = 7; + a0 = 0; + a21 = 10; + a2 = 1; + return -1; + } else if(((((((!(a14==1)&&((((a21==12)&&(a6==1))&&(a19==3))&&(a1==12)))&&(a9==7))&&(a17==2))&&!(a27==1))&&(a16==9))&&((a28==1)&&((((a5==6)&&((a12==1)&&(!(a20==1)&&(input==6))))&&(a3==1))&&(a12==1))))){ + a12 = 0; + a20 = 1; + a1 = 14; + a5 = 4; + a13 = 0; + a19 = 1; + return -1; + } else if((((((!(a8==1)&&(!(a0==1)&&((((input==4)&&(a9==7))&&(a21==11))&&(a19==2))))&&(a17==2))&&(a12==1))&&(a23==1))&&(((a13==1)&&(((a1==12)&&(((a16==7)&&(a3==1))&&(a5==5)))&&(a20==1)))&&!(a14==1)))){ + a21 = 10; + a19 = 1; + a6 = 1; + a24 = 0; + a5 = 4; + a8 = 0; + return -1; + } else if(((((a21==11)&&(((a14==1)||((a20==1)&&((a0==1)||(a2==1))))&&(a12==1)))&&(a1==14))&&((a16==11)&&((a9==9)&&(((((a19==3)&&((((a5==5)||(a5==6))&&(input==3))&&(a13==1)))&&!(a24==1))&&!(a27==1))&&(a17==2)))))){ + a19 = 2; + a9 = 10; + a21 = 12; + a5 = 6; + a26 = 0; + a4 = 0; + a6 = 1; + a1 = 12; + return 26; + } else if(((((!(a0==1)&&((a19==4)&&((a21==12)&&(((input==6)&&(a17==2))&&(a9==11)))))&&(a3==1))&&!(a18==1))&&(((((a5==5)&&((((a13==1)&&(a28==1))&&(a20==1))&&(a16==7)))&&(a1==14))||!(a13==1))||!(a6==1)))){ + a1 = 12; + a16 = 8; + a28 = 1; + a20 = 0; + a24 = 0; + a5 = 6; + a19 = 3; + a2 = 1; + a21 = 11; + return 25; + } else if(((((((((a28==1)&&((a1==13)&&(((a5==4)||(a5==5))&&(input==1))))&&(a12==1))&&!(a0==1))&&(a20==1))&&(a21==12))&&(a16==11))&&((((a9==10)&&((!(a3==1)||((a23==1)&&(a13==1)))||(a27==1)))&&(a19==3))&&(a17==2)))){ + a9 = 8; + a12 = 1; + a19 = 5; + a18 = 0; + a5 = 6; + a1 = 12; + a26 = 0; + return 25; + } else if(((((a1==13)&&((((a28==1)&&((((a2==1)&&((input==1)&&(a19==1)))&&(a16==9))&&(a5==4)))&&(a17==2))&&(a9==7)))&&!(a20==1))&&((!(a11==1)||((a12==1)&&(((a11==1)&&(a21==11))&&(a3==1))))||!(a28==1)))){ + a20 = 1; + a23 = 0; + a24 = 1; + a10 = 1; + a1 = 12; + return 25; + } else if((((a13==1)&&(!(a20==1)&&((a9==8)&&((a1==13)&&(a6==1)))))&&(((((a21==10)&&(((a17==2)&&(!(a27==1)&&(!(a8==1)&&((a16==11)&&((input==3)&&((a5==5)||(a5==6)))))))&&(a19==3)))&&!(a26==1))&&!(a14==1))&&!(a18==1)))){ + a5 = 4; + a20 = 1; + a10 = 0; + a29 = 0; + a16 = 7; + a1 = 12; + a19 = 1; + a26 = 1; + return -1; + } else if((((((a21==10)&&((a12==1)&&((input==1)&&(a1==12))))&&(a16==9))&&(a2==1))&&((((((a17==2)&&((a5==6)&&(((!(a28==1)||(a2==1))&&(a19==4))&&(a6==1))))&&(a9==10))&&!(a20==1))&&!(a7==1))&&(a2==1)))){ + if((a6==1)){ + a25 = 0; + a5 = 4; + a13 = 0; + a29 = 1; + a16 = 7; + a19 = 1; + a20 = 1; + }else{ + a16 = 7; + a27 = 1; + a28 = 0; + a5 = 5; + a9 = 11; + a19 = 1; + a8 = 1; + a20 = 1; + } + return -1; + } else if((((a12==1)&&(!(a27==1)&&(((a18==1)||((a1==12)&&(((a17==2)&&(a12==1))||!(a11==1))))||(a26==1))))&&(!(a20==1)&&((a16==9)&&((a9==10)&&((a21==11)&&((a19==4)&&(!(a4==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3)))))))))){ + a21 = 10; + a16 = 7; + a29 = 1; + a27 = 1; + a20 = 1; + a5 = 6; + a19 = 2; + a9 = 11; + a7 = 1; + return 21; + } else if((((a6==1)&&((a12==1)&&(((a19==3)&&(((a1==12)&&(a3==1))&&!(a24==1)))||!(a28==1))))&&((a16==7)&&(((((((a5==6)&&((input==1)&&(a17==2)))&&(a9==7))&&!(a24==1))&&(a20==1))&&(a11==1))&&(a21==11))))){ + a27 = 0; + a9 = 9; + a14 = 0; + a19 = 4; + a21 = 10; + a1 = 14; + a7 = 0; + a16 = 8; + return 25; + } else if((((((a23==1)&&((((((input==5)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(a1==12))&&!(a20==1))&&(a16==9))&&(a13==1)))&&!(a4==1))&&(a17==2))&&((a12==1)&&(((((a3==1)&&(a21==11))||!(a13==1))&&(a19==2))||(a7==1))))){ + if((a8==1)){ + a19 = 1; + a9 = 11; + a16 = 7; + a21 = 10; + a6 = 0; + a20 = 1; + a5 = 4; + a1 = 13; + a14 = 1; + a4 = 1; + }else{ + a14 = 1; + a16 = 10; + a15 = 1; + a19 = 3; + a1 = 14; + a5 = 6; + a3 = 0; + a9 = 9; + } + return 25; + } else if((((a1==14)&&((((a5==5)||(a5==6))&&(input==5))&&!(a20==1)))&&((a8==1)||(((a16==8)&&(((a21==12)&&((a13==1)&&((a17==2)&&(((((a28==1)||!(a13==1))&&(a9==8))||!(a11==1))&&(a19==3)))))||!(a13==1)))&&(a11==1))))){ + a11 = 0; + a15 = 1; + a20 = 1; + a19 = 1; + a3 = 0; + a21 = 10; + a9 = 9; + a16 = 7; + a5 = 6; + return 21; + } else if(((!(a18==1)&&((a16==10)&&((a21==10)&&(((((a17==2)&&(a13==1))&&(a1==14))||(a7==1))&&(a19==4)))))&&((a2==1)&&((!(a26==1)&&(!(a20==1)&&((a23==1)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==5)))))&&!(a0==1))))){ + a20 = 1; + a19 = 2; + a24 = 1; + a0 = 1; + a1 = 12; + a9 = 10; + a16 = 7; + a5 = 4; + return 21; + } else if(((!(a28==1)||(((((((a3==1)&&(a16==7))&&(a17==2))||(a0==1))&&(a23==1))&&(a20==1))&&(a1==13)))&&(((a2==1)&&(((((input==4)&&(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&!(a27==1))&&(a21==11))&&(a19==3)))&&!(a14==1)))){ + if((a25==1)){ + a20 = 0; + a4 = 0; + a5 = 5; + a18 = 0; + a1 = 14; + a9 = 11; + }else{ + a2 = 1; + a9 = 8; + a18 = 0; + a14 = 0; + a5 = 5; + a16 = 8; + a19 = 1; + } + return 26; + } else if((((a9==9)&&((a19==4)&&((((a17==2)&&(!(a26==1)&&((input==4)&&(a5==6))))&&!(a26==1))&&(a21==10))))&&((a16==9)&&(!(a7==1)&&((a1==12)&&((((a26==1)||((a13==1)&&!(a4==1)))&&(a20==1))&&(a13==1))))))){ + a12 = 1; + a8 = 0; + a13 = 1; + a19 = 1; + a16 = 7; + a5 = 4; + a9 = 7; + return -1; + } else if(((!(a0==1)&&(!(a8==1)&&((((a21==10)&&((a17==2)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4))))&&(a23==1))&&!(a14==1))))&&((a16==10)&&((a9==7)&&(((a1==12)&&((((a19==3)&&(a12==1))&&(a3==1))&&(a20==1)))&&(a3==1)))))){ + a11 = 1; + a28 = 1; + a16 = 7; + a19 = 1; + a5 = 4; + a0 = 0; + return -1; + } else if(((((a9==9)&&(((!(a4==1)&&((((a23==1)&&((input==6)&&(a17==2)))&&(a19==5))&&(a28==1)))&&(a1==12))&&(a16==7)))&&(a20==1))&&(((a5==4)&&(((!(a7==1)&&(a2==1))||!(a28==1))||!(a11==1)))&&(a21==11)))){ + a16 = 8; + a19 = 1; + a21 = 12; + a3 = 1; + a24 = 0; + a0 = 0; + a5 = 5; + a9 = 10; + return 25; + } else if(((!(a27==1)&&(!(a6==1)||(!(a20==1)&&((a19==4)&&((a16==9)&&((a17==2)&&((a1==14)&&(a12==1))))))))&&((!(a7==1)&&(((a13==1)&&(((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==4))&&(a21==10)))&&!(a7==1)))&&!(a18==1)))){ + if((a6==1)){ + a29 = 0; + a16 = 7; + a5 = 5; + a19 = 1; + a10 = 0; + a20 = 1; + a9 = 10; + a27 = 1; + }else{ + a1 = 12; + a20 = 1; + a19 = 1; + a16 = 7; + a24 = 1; + a5 = 6; + a9 = 9; + a8 = 1; + a4 = 1; + } + return -1; + } else if((((a3==1)&&((((a16==8)&&(!(a28==1)||(a23==1)))||!(a23==1))&&!(a20==1)))&&(((a11==1)&&((((a12==1)&&((input==1)&&(((((a1==14)&&(a5==6))&&(a9==11))&&(a19==4))||(((a9==7)&&((a1==12)&&(a5==4)))&&(a19==5)))))&&(a17==2))&&(a21==10)))&&(a6==1)))){ + a19 = 5; + a9 = 10; + a11 = 1; + a5 = 6; + a20 = 1; + a1 = 13; + a27 = 0; + a8 = 0; + return -1; + } else if((((((((((a5==4)||(a5==5))&&(input==1))&&!(a26==1))&&(a19==2))&&!(a4==1))&&!(a18==1))&&(a21==10))&&((((a16==11)&&(((a1==13)&&((a20==1)&&((a9==11)&&((a28==1)&&!(a18==1)))))||!(a6==1)))||!(a23==1))&&(a17==2)))){ + a5 = 4; + a16 = 7; + a1 = 12; + a28 = 1; + a19 = 1; + a9 = 7; + a11 = 1; + a2 = 1; + return -1; + } else if((((((a21==10)&&(a6==1))&&(a1==13))||(a14==1))&&(((a16==7)&&(((!(a0==1)&&((a12==1)&&(((a19==1)&&((a13==1)&&(!(a7==1)&&(((a5==5)||(a5==6))&&(input==5)))))&&(a17==2))))&&(a9==9))&&(a12==1)))&&!(a20==1)))){ + a9 = 7; + a5 = 4; + a6 = 1; + a20 = 1; + a7 = 0; + a1 = 12; + a12 = 1; + return -1; + } else if((((a17==2)&&(!(a20==1)&&(((a16==9)&&(a6==1))&&(a19==4))))&&(!(a27==1)&&(((a1==13)&&((a11==1)&&(!(a18==1)&&(((a11==1)&&((a21==10)&&(((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4)))&&(input==5))))&&(a28==1)))))&&(a23==1))))){ + if((a4==1)){ + a19 = 3; + a12 = 0; + a21 = 12; + a15 = 0; + a23 = 0; + a1 = 14; + a5 = 6; + a9 = 11; + }else{ + a13 = 0; + a16 = 7; + a20 = 1; + a9 = 8; + a29 = 1; + a5 = 5; + a19 = 2; + a1 = 12; + a25 = 0; + } + return -1; + } else if(((((a16==8)&&(((a1==12)&&((a17==2)&&(((a11==1)&&(a9==10))&&(a28==1))))||!(a6==1)))&&(a6==1))&&(!(a20==1)&&(((((!(a8==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))&&(a19==1))&&!(a18==1))&&(a21==12))&&(a2==1))))){ + if((a14==1)){ + a11 = 0; + a20 = 1; + a16 = 7; + a5 = 4; + a9 = 8; + a15 = 1; + a21 = 10; + a14 = 1; + }else{ + a9 = 11; + a12 = 0; + a0 = 1; + a1 = 14; + a19 = 5; + a5 = 4; + a21 = 11; + a15 = 1; + } + return -1; + } else if((((((a2==1)&&((!(a26==1)&&(a28==1))&&(a2==1)))||(a26==1))&&(a16==11))&&(((a17==2)&&((a19==4)&&((a21==11)&&((a12==1)&&(((((input==4)&&((a5==4)||(a5==5)))&&(a1==12))&&(a20==1))&&!(a24==1))))))&&(a9==9)))){ + a2 = 1; + a27 = 0; + a21 = 10; + a9 = 7; + a5 = 4; + a16 = 7; + a26 = 0; + a19 = 1; + return -1; + } else if(((((a21==11)&&(((((a16==11)&&((((a5==4)||(a5==5))&&(input==1))&&(a19==5)))&&(a20==1))&&!(a14==1))&&(a17==2)))&&!(a4==1))&&((a24==1)||(!(a2==1)||(((((a9==11)&&(a6==1))&&(a1==13))||!(a12==1))||!(a28==1)))))){ + a7 = 0; + a9 = 7; + a19 = 1; + a5 = 4; + a1 = 12; + a2 = 1; + a21 = 10; + a18 = 0; + a16 = 7; + return -1; + } else if((((((a9==7)&&((a20==1)&&((a21==10)&&(((input==1)&&((a5==4)||(a5==5)))&&(a1==14)))))&&!(a8==1))&&(a11==1))&&((a23==1)&&(((((a18==1)||((a19==1)&&((a17==2)&&(a12==1))))&&(a16==9))&&!(a0==1))&&!(a0==1))))){ + a19 = 4; + a1 = 13; + a21 = 12; + a16 = 10; + a13 = 1; + a4 = 0; + a27 = 0; + a5 = 5; + return 25; + } else if(((((a17==2)&&((((input==4)&&((a5==4)||(a5==5)))&&(a2==1))&&!(a14==1)))&&(a20==1))&&(((a16==11)&&(((((!(a11==1)||((a19==5)&&((a23==1)&&(a21==11))))||(a8==1))||!(a11==1))||(a24==1))&&(a1==14)))&&(a9==7)))){ + a27 = 0; + a1 = 12; + a16 = 7; + a21 = 10; + a19 = 1; + a3 = 1; + a13 = 1; + a5 = 4; + return -1; + } else if((((a17==2)&&(((a19==3)&&((a5==4)&&((!(a0==1)&&((((a3==1)&&((input==1)&&(a16==8)))&&(a3==1))&&!(a8==1)))&&!(a4==1))))&&(a1==13)))&&((a20==1)&&((((a12==1)||(a7==1))&&(a21==12))&&(a9==11))))){ + a3 = 1; + a9 = 7; + a19 = 1; + a14 = 0; + a1 = 12; + a2 = 1; + a16 = 7; + a21 = 10; + return -1; + } else if(((!(a20==1)&&(((a2==1)&&(((a12==1)&&((a5==4)&&((input==1)&&(a9==10))))&&(a16==8)))&&(a19==5)))&&((((((a21==12)&&(((a28==1)||!(a13==1))&&(a1==12)))||!(a13==1))&&(a17==2))||!(a6==1))||(a0==1)))){ + if((a2==1)){ + a9 = 7; + a1 = 13; + a19 = 2; + a21 = 10; + a10 = 1; + a5 = 5; + a25 = 0; + a0 = 1; + }else{ + a9 = 11; + a16 = 7; + a25 = 1; + a19 = 2; + a12 = 0; + a21 = 10; + a20 = 1; + a7 = 1; + } + return -1; + } else if((((a20==1)&&(((!(a8==1)&&((a21==10)&&((a11==1)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==4)))))&&(a28==1))&&(a16==7)))&&((a19==4)&&((((a27==1)||((a1==12)&&((a2==1)||!(a12==1))))&&!(a18==1))&&(a17==2))))){ + a24 = 0; + a5 = 4; + a18 = 0; + a19 = 1; + a9 = 7; + a11 = 1; + return -1; + } else if(((((((a2==1)&&(a24==1))&&(a26==1))&&(a17==2))&&(a19==3))&&((a21==12)&&(((!(a28==1)&&((!(a13==1)&&((((input==1)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(a1==14))&&!(a11==1)))&&(a20==1)))&&!(a13==1))&&(a16==11))))){ + a16 = 7; + a27 = 1; + a11 = 0; + a15 = 0; + a19 = 1; + a5 = 4; + a9 = 9; + return 21; + } else if(((((((((a13==1)&&(a6==1))&&(a2==1))&&(a20==1))&&!(a0==1))&&!(a7==1))||!(a6==1))&&(((a21==10)&&((a17==2)&&(!(a27==1)&&((a16==10)&&(((input==5)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&(a19==2))))))&&(a1==12)))){ + a4 = 0; + a19 = 1; + a26 = 0; + a9 = 7; + a16 = 7; + a6 = 1; + a5 = 4; + return -1; + } else if((((((a17==2)&&(((((a3==1)&&!(a18==1))&&(a13==1))||(a24==1))&&(a19==1)))&&(a1==14))&&(a16==10))&&((((a9==8)&&((a21==10)&&((!(a18==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3)))&&(a20==1))))&&!(a8==1))&&(a28==1)))){ + a5 = 4; + a1 = 12; + a9 = 7; + a27 = 0; + a8 = 0; + a23 = 1; + a16 = 7; + return -1; + } else if(((!(a27==1)&&((((!(a8==1)&&((a27==1)||(a28==1)))&&(a9==9))&&(a19==3))&&(a5==6)))&&((a28==1)&&((a13==1)&&(((a16==10)&&((a1==13)&&((!(a0==1)&&((input==4)&&(a17==2)))&&!(a20==1))))&&(a21==11)))))){ + a21 = 10; + a18 = 1; + a29 = 1; + a20 = 1; + a1 = 12; + a5 = 4; + a6 = 0; + a16 = 7; + a19 = 2; + a9 = 8; + return 22; + } else if(((((a1==14)&&(((a17==2)&&((a28==1)&&((a23==1)&&((a28==1)&&((a9==10)&&(!(a24==1)&&((a19==3)&&(input==3))))))))&&!(a20==1)))&&(a16==7))&&(((a5==5)&&((!(a18==1)&&(a12==1))||(a14==1)))&&(a21==10)))){ + a14 = 0; + a9 = 7; + a1 = 12; + a8 = 0; + a5 = 4; + a20 = 1; + a19 = 1; + a2 = 1; + return -1; + } else if(((((a13==1)&&((a6==1)&&((a5==4)&&((a1==13)&&((a23==1)&&(((a12==1)&&((a19==3)&&(input==3)))&&(a13==1)))))))&&(a9==8))&&((a16==7)&&((a21==10)&&((((a6==1)&&(a20==1))&&(a17==2))&&!(a8==1)))))){ + a23 = 1; + a19 = 1; + a7 = 0; + a9 = 7; + a1 = 12; + a18 = 0; + return -1; + } else if((((a17==2)&&((a27==1)||(((((a13==1)&&(a16==8))&&(a9==9))&&(a13==1))&&(a3==1))))&&((a20==1)&&((a1==13)&&(((a6==1)&&(((a28==1)&&((a21==10)&&((input==6)&&((a5==4)||(a5==5)))))&&(a19==4)))&&(a13==1)))))){ + a16 = 7; + a5 = 4; + a9 = 7; + a1 = 12; + a13 = 1; + a23 = 1; + a19 = 1; + a4 = 0; + return -1; + } else if((((a9==10)&&((!(a24==1)&&((a13==1)&&(((((input==4)&&((a5==4)||(a5==5)))&&(a20==1))&&(a1==12))&&(a12==1))))&&!(a24==1)))&&((a21==12)&&(((((a19==5)&&((a12==1)||(a14==1)))&&(a17==2))||!(a2==1))&&(a16==10))))){ + a26 = 0; + a1 = 14; + a16 = 8; + a5 = 5; + a9 = 8; + a2 = 1; + a21 = 10; + a7 = 0; + return 25; + } else if((((a17==2)&&((a21==12)&&((((a0==1)&&((a14==1)&&((((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11)))&&(input==1))&&(a1==14))))&&(a8==1))&&!(a12==1))))&&((a16==11)&&((a19==1)&&((a26==1)&&((a20==1)&&((a23==1)&&(a24==1)))))))){ + a5 = 6; + a1 = 12; + a21 = 11; + a23 = 0; + a9 = 7; + a27 = 1; + return 21; + } else if((((a11==1)&&(((((((a13==1)&&(a9==10))&&(a21==10))&&(a16==10))&&(a23==1))&&(a17==2))&&!(a4==1)))&&(((!(a7==1)&&((a12==1)&&((a11==1)&&((!(a20==1)&&(input==3))&&(a1==13)))))&&(a19==3))&&(a5==5)))){ + if((a18==1)){ + a16 = 8; + a11 = 0; + a9 = 11; + a19 = 5; + a22 = 0; + a26 = 1; + a21 = 12; + }else{ + a11 = 0; + a19 = 2; + a9 = 7; + a1 = 12; + a0 = 1; + a20 = 1; + a5 = 6; + a23 = 0; + a16 = 7; + } + return -1; + } else if(((((a1==14)&&((((a12==1)&&(((a21==11)&&(a23==1))&&(a20==1)))&&(a17==2))&&(a9==8)))&&(a19==1))&&(((((((a6==1)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a7==1))&&(a12==1))&&!(a8==1))&&(a16==10))&&!(a0==1)))){ + a3 = 1; + a5 = 4; + a9 = 7; + a1 = 13; + a19 = 4; + a21 = 12; + a26 = 0; + a0 = 0; + return 25; + } else if(((((a17==2)&&(((a1==13)&&((a5==6)&&(((a6==1)&&(a13==1))&&!(a14==1))))&&(a19==2)))&&(a16==7))&&(((a21==12)&&(((a2==1)&&((((input==6)&&(a9==10))&&(a23==1))&&(a13==1)))&&(a11==1)))&&(a20==1)))){ + a21 = 10; + a11 = 1; + a1 = 12; + a5 = 4; + a19 = 1; + a9 = 7; + a23 = 1; + a24 = 0; + return -1; + } else if((((a19==2)&&(!(a6==1)||((a16==10)&&((((a0==1)||(a11==1))&&(a1==13))&&!(a20==1)))))&&(((((a17==2)&&(((a13==1)&&((input==1)&&((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a5==4)&&(a9==10)))))&&!(a24==1)))&&(a21==10))&&(a28==1))&&!(a14==1)))){ + a6 = 0; + a9 = 10; + a1 = 12; + a4 = 1; + a16 = 7; + a10 = 1; + a20 = 1; + a5 = 5; + return 23; + } else if(((((a21==12)&&((!(a26==1)&&(((a16==7)&&(((a28==1)&&((input==5)&&(a20==1)))&&(a13==1)))&&(a6==1)))&&(a5==4)))&&(a1==13))&&(!(a7==1)&&((a19==5)&&((a17==2)&&((a9==8)&&((a3==1)||(a0==1)))))))){ + if((a29==1)){ + a20 = 0; + a19 = 1; + a8 = 0; + a1 = 12; + a5 = 5; + a9 = 10; + a16 = 8; + a21 = 11; + a4 = 0; + a13 = 1; + }else{ + a1 = 12; + a4 = 0; + a11 = 1; + a21 = 11; + a9 = 9; + a16 = 9; + } + return 22; + } else if((((((!(a8==1)&&(((a16==9)&&(input==4))&&!(a4==1)))&&!(a7==1))&&(a5==6))&&(a9==7))&&((((a27==1)||(!(a18==1)&&((a17==2)&&((((a23==1)&&(a3==1))&&(a21==10))&&(a19==1)))))&&(a1==14))&&(a20==1)))){ + a13 = 1; + a1 = 12; + a11 = 1; + a28 = 1; + a5 = 4; + a16 = 7; + return -1; + } else if(((!(a12==1)||((((a23==1)&&(!(a20==1)&&(!(a3==1)||(((a0==1)||(a3==1))||!(a11==1)))))&&(a21==11))&&(a1==14)))&&(((a16==9)&&(((((input==1)&&((a5==5)||(a5==6)))&&(a17==2))&&(a9==7))&&(a19==5)))&&!(a0==1)))){ + a1 = 13; + a7 = 1; + a28 = 0; + a21 = 10; + a16 = 7; + a20 = 1; + a4 = 1; + a19 = 1; + a5 = 6; + return 21; + } else if((((((a21==10)&&((a16==11)&&(((input==6)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10))))&&(a6==1))))&&(a13==1))&&(a11==1))&&((!(a0==1)&&((((!(a4==1)&&((a17==2)&&(a13==1)))&&!(a20==1))&&(a1==13))&&(a19==3)))||(a26==1)))){ + a27 = 1; + a5 = 5; + a18 = 1; + a9 = 10; + a16 = 8; + a20 = 1; + a21 = 11; + a23 = 0; + a1 = 12; + a19 = 2; + return 26; + } else if((((a1==14)&&(((!(a26==1)&&(a3==1))&&!(a20==1))||(a4==1)))&&((a9==9)&&((a16==8)&&(((a19==1)&&(!(a27==1)&&(((a21==11)&&((((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&(a2==1))&&(a11==1)))&&!(a7==1))))&&(a17==2)))))){ + a21 = 10; + a16 = 10; + a9 = 7; + a13 = 1; + a23 = 1; + a20 = 1; + a5 = 6; + a0 = 0; + a19 = 2; + return 21; + } else if((((a17==2)&&((((!(a28==1)&&(((input==4)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(a20==1)))&&(a21==12))&&(a19==2))&&!(a11==1)))&&((a1==12)&&((a8==1)&&(((((a3==1)&&(a16==9))&&(a0==1))&&!(a3==1))&&(a7==1)))))){ + a9 = 10; + a16 = 7; + a21 = 10; + a26 = 1; + a2 = 0; + a5 = 5; + return -1; + } else if(((((a19==2)&&((a13==1)&&(((a5==5)||(a5==6))&&(input==1))))&&(a9==7))&&((!(a6==1)||((a16==11)&&((a20==1)&&(!(a6==1)||((a14==1)||((((a21==12)&&((a3==1)||(a8==1)))&&(a17==2))&&(a28==1)))))))&&(a1==12)))){ + a5 = 4; + a21 = 10; + a3 = 1; + a19 = 1; + a16 = 7; + a14 = 0; + a23 = 1; + return -1; + } else if((((a1==14)&&((a16==10)&&(((a17==2)&&((((((a11==1)&&((input==3)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5)))))&&(a2==1))&&!(a0==1))&&(a21==12))&&!(a7==1)))&&!(a20==1))))&&(!(a11==1)||(((a12==1)||!(a2==1))&&(a19==5))))){ + if((a13==1)){ + a20 = 1; + a7 = 1; + a19 = 4; + a5 = 4; + a1 = 13; + a15 = 0; + a16 = 8; + a9 = 11; + a21 = 11; + }else{ + a19 = 2; + a21 = 10; + a5 = 5; + a16 = 7; + a0 = 1; + a9 = 7; + a26 = 1; + a1 = 12; + a23 = 0; + a20 = 1; + } + return -1; + } else if((((a7==1)&&((a5==5)&&((a16==7)&&((a17==2)&&(!(a3==1)&&(((a7==1)&&((a1==14)&&(input==5)))&&(a21==12)))))))&&((((a24==1)&&((a27==1)&&(((a28==1)&&!(a23==1))&&(a20==1))))&&(a9==10))&&(a19==2)))){ + a5 = 4; + a15 = 0; + a9 = 7; + a24 = 1; + a19 = 1; + a21 = 10; + return 22; + } else if((((a19==2)&&(((((a9==7)&&((((a2==1)||!(a3==1))&&(a21==10))&&(a17==2)))&&(a16==10))||(a4==1))&&(a20==1)))&&((a23==1)&&((a13==1)&&(((a1==13)&&((((a5==4)||(a5==5))&&(input==6))&&(a2==1)))&&(a11==1)))))){ + a3 = 1; + a27 = 0; + a14 = 0; + a16 = 7; + a5 = 4; + a1 = 12; + a19 = 1; + return -1; + } else if(((!(a2==1)&&((((a21==11)&&(((a17==2)&&((((a9==10)&&((a20==1)&&(input==6)))&&(a27==1))&&(a5==6)))&&!(a11==1)))&&(a19==4))&&(a18==1)))&&(((((a16==10)&&(a28==1))&&(a1==12))&&!(a13==1))&&!(a23==1)))){ + a19 = 1; + a16 = 7; + a25 = 0; + a21 = 10; + a18 = 1; + a9 = 7; + return -1; + } else if((((a6==1)&&(!(a7==1)&&((a17==2)&&((((a19==2)&&((a16==11)&&(((a9==8)&&(input==5))&&!(a26==1))))&&(a23==1))&&(a21==10)))))&&(((((!(a8==1)&&(a11==1))&&(a1==14))&&!(a20==1))&&(a5==5))||!(a12==1)))){ + if((a15==1)){ + a11 = 0; + a16 = 7; + a20 = 1; + a3 = 0; + a0 = 1; + a1 = 13; + a19 = 1; + a9 = 11; + a5 = 4; + }else{ + a9 = 11; + a21 = 12; + a7 = 1; + a20 = 1; + a19 = 4; + a22 = 1; + a5 = 6; + a16 = 7; + a1 = 13; + } + return 21; + } else if((((a23==1)&&((a16==8)&&(((a9==9)&&(((a21==11)&&(input==4))&&(a19==3)))&&(a17==2))))&&(!(a7==1)&&((a5==4)&&(((((a8==1)||((!(a6==1)||(a12==1))&&(a20==1)))&&!(a27==1))||!(a6==1))&&(a1==13)))))){ + a16 = 10; + a8 = 0; + a19 = 1; + a4 = 0; + a5 = 5; + a27 = 0; + a1 = 12; + a9 = 7; + return 22; + } else if((((a8==1)&&(!(a11==1)&&((a17==2)&&((((a21==12)&&((input==5)&&((((a9==11)&&((a1==14)&&(a5==6)))&&(a19==1))||((a19==2)&&((a9==7)&&((a1==12)&&(a5==4)))))))&&!(a11==1))&&!(a23==1)))))&&((a20==1)&&(((a8==1)&&((a16==9)&&(a28==1)))&&!(a12==1))))){ + a5 = 4; + a29 = 0; + a4 = 1; + a1 = 12; + a16 = 7; + a9 = 8; + a19 = 5; + a21 = 11; + return 21; + } else if((((a1==12)&&((a5==6)&&(!(a14==1)&&(((a17==2)&&((a2==1)&&((input==4)&&(a9==8))))&&!(a8==1)))))&&(!(a20==1)&&(((a16==7)&&((a19==2)&&((((a24==1)||(a11==1))&&(a11==1))&&(a21==12))))||(a18==1))))){ + a19 = 1; + a11 = 1; + a5 = 4; + a21 = 10; + a20 = 1; + a9 = 7; + a13 = 1; + a7 = 0; + return -1; + } else if((((a28==1)&&(((a17==2)&&((a21==11)&&((a2==1)&&(((a3==1)&&(a1==12))||(a8==1)))))&&(a5==4)))&&((a11==1)&&((!(a24==1)&&((((!(a20==1)&&(input==6))&&(a19==1))&&(a9==11))&&(a16==8)))&&(a23==1))))){ + a20 = 1; + a21 = 12; + a19 = 2; + a24 = 0; + a5 = 5; + a1 = 14; + a16 = 7; + return 23; + } else if((((a13==1)&&(((((a28==1)&&((a17==2)&&((((a21==12)&&(a6==1))&&(a19==1))&&(a23==1))))&&!(a7==1))&&(a16==7))&&!(a8==1)))&&(((a1==13)&&((a2==1)&&((input==6)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5))))))&&!(a20==1)))){ + a20 = 1; + a5 = 6; + a19 = 5; + a6 = 1; + a8 = 0; + a16 = 10; + a9 = 9; + a18 = 0; + return 25; + } else if((((((!(a7==1)&&(!(a24==1)&&(((input==4)&&(a16==11))&&(a12==1))))&&(a2==1))&&(a17==2))&&(a1==14))&&(((a5==6)&&(((a21==10)&&(((a19==1)&&((a12==1)&&(a9==11)))&&!(a0==1)))&&(a20==1)))||!(a28==1)))){ + a18 = 0; + a5 = 4; + a1 = 12; + a9 = 7; + a24 = 0; + a16 = 7; + a2 = 1; + return -1; + } else if((((a1==12)&&((a17==2)&&(((!(a18==1)&&((((((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7))))&&(input==6))&&!(a24==1))&&(a19==5)))&&(a2==1))&&!(a7==1))))&&(!(a20==1)&&(((((a6==1)&&(a21==12))&&(a16==8))||(a4==1))&&(a2==1))))){ + a25 = 1; + a6 = 0; + a9 = 7; + a19 = 4; + a16 = 7; + a21 = 10; + a5 = 4; + return 22; + } else if(((((!(a11==1)||(((a6==1)&&(a16==8))&&(a13==1)))&&(a20==1))&&(a21==10))&&((((a9==8)&&(((((a19==2)&&(!(a26==1)&&(((a5==5)||(a5==6))&&(input==6))))&&(a3==1))&&!(a4==1))&&(a17==2)))&&(a1==14))&&(a28==1)))){ + a19 = 1; + a9 = 7; + a0 = 0; + a1 = 12; + a16 = 7; + a5 = 4; + a2 = 1; + a26 = 0; + return -1; + } else if((((((a9==7)&&((((a17==2)&&((!(a11==1)&&((a3==1)&&(a27==1)))&&(a24==1)))&&(a24==1))&&!(a28==1)))&&(a21==10))&&(a1==13))&&(((a20==1)&&((a19==2)&&(((input==3)&&((a5==5)||(a5==6)))&&(a27==1))))&&(a16==8)))){ + a2 = 0; + a9 = 11; + a3 = 0; + a16 = 7; + a15 = 0; + a19 = 5; + a5 = 5; + return 25; + } else if((((a1==14)&&(((a5==5)||(a5==6))&&(input==6)))&&((((((((a18==1)||(((a11==1)&&((a21==11)&&((a2==1)&&((a11==1)||!(a23==1)))))||!(a3==1)))&&(a20==1))||!(a23==1))&&(a9==7))&&(a19==4))&&(a16==8))&&(a17==2)))){ + a11 = 1; + a23 = 1; + a9 = 9; + a28 = 1; + a5 = 4; + a19 = 2; + a1 = 13; + a16 = 7; + a21 = 10; + return 25; + } else if((((a23==1)&&((a2==1)&&((a17==2)&&(((a21==11)&&((a19==4)&&(((a5==5)||(a5==6))&&(input==4))))&&!(a20==1)))))&&(!(a24==1)&&((a9==7)&&((a16==10)&&((a1==14)&&((((a13==1)&&(a6==1))&&(a13==1))||(a26==1)))))))){ + if((a4==1)){ + a19 = 2; + a14 = 1; + a9 = 8; + a4 = 1; + a5 = 6; + a21 = 10; + a1 = 12; + a16 = 7; + a20 = 1; + a15 = 0; + }else{ + a9 = 10; + a28 = 0; + a1 = 13; + a21 = 12; + a5 = 5; + a20 = 1; + a16 = 9; + a0 = 1; + } + return -1; + } else if(((((a1==13)&&(!(a26==1)&&((a17==2)&&((a27==1)||(!(a14==1)&&((a9==10)&&((!(a24==1)&&((a23==1)&&(a20==1)))&&(a19==2))))))))||!(a3==1))&&(((a21==12)&&((a28==1)&&(((a5==4)||(a5==5))&&(input==3))))&&(a16==7)))){ + a9 = 7; + a28 = 1; + a5 = 4; + a1 = 12; + a2 = 1; + a21 = 10; + a19 = 1; + a6 = 1; + return -1; + } else if((((a21==10)&&(((((a16==7)&&(((a28==1)&&((input==4)&&((((a1==14)&&(a5==4))&&(a9==7))||((((a5==5)&&(a1==13))&&(a9==11))||(((a5==6)&&(a1==13))&&(a9==11))))))&&(a6==1)))&&(a28==1))&&(a19==5))&&!(a27==1)))&&(!(a7==1)&&((a17==2)&&(!(a7==1)&&((a20==1)&&(a12==1))))))){ + a23 = 1; + a9 = 7; + a27 = 0; + a28 = 1; + a19 = 1; + a1 = 12; + a5 = 4; + return -1; + } else if((((a16==7)&&((a17==2)&&(((((!(a24==1)&&(((a5==4)||(a5==5))&&(input==4)))&&(a23==1))&&!(a27==1))&&!(a20==1))&&(a19==3))))&&((((a21==11)&&(((a2==1)&&((a13==1)||(a4==1)))||(a18==1)))&&(a1==12))&&(a9==11)))){ + a21 = 10; + a27 = 0; + a18 = 0; + a20 = 1; + a3 = 1; + a9 = 7; + a19 = 1; + a5 = 4; + return -1; + } else if(((!(a27==1)&&(((((!(a4==1)&&((a2==1)||!(a3==1)))&&(a19==1))&&(a17==2))&&(a5==4))&&(a28==1)))&&((((((((input==5)&&(a16==8))&&(a1==12))&&(a9==7))&&(a21==12))&&(a3==1))&&(a20==1))&&(a13==1)))){ + a7 = 0; + a6 = 1; + a21 = 10; + a16 = 7; + a2 = 1; + return -1; + } else if(((((((a9==11)&&((((((a19==2)&&(input==5))&&(a5==4))&&!(a8==1))&&!(a8==1))&&(a1==14)))&&(a17==2))&&(a28==1))&&(a28==1))&&((a21==11)&&(((!(a20==1)&&((a16==10)&&(a23==1)))||!(a13==1))&&!(a0==1))))){ + a5 = 5; + a23 = 0; + a19 = 1; + a26 = 1; + a9 = 7; + a12 = 0; + a20 = 1; + a16 = 7; + a21 = 10; + return -1; + } else if((((a16==10)&&(!(a13==1)||(((a2==1)&&((a1==14)&&(a11==1)))||!(a28==1))))&&((a19==5)&&(((a3==1)&&(!(a8==1)&&(!(a0==1)&&((((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==3))&&(a17==2))&&!(a20==1)))))&&(a21==12))))){ + a19 = 3; + a21 = 10; + a9 = 10; + a1 = 13; + a6 = 0; + a15 = 0; + a16 = 11; + a5 = 4; + a4 = 1; + return -1; + } else if((((a17==2)&&((a16==10)&&((a12==1)&&((!(a18==1)&&(((input==4)&&(((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))))&&!(a24==1)))&&!(a8==1)))))&&(((((((a13==1)&&(a3==1))||!(a2==1))&&(a19==5))&&!(a20==1))&&(a21==11))&&(a1==12)))){ + a16 = 7; + a19 = 4; + a28 = 0; + a1 = 14; + a9 = 10; + a15 = 0; + a7 = 1; + a5 = 4; + a21 = 10; + return -1; + } else if((((((!(a14==1)&&((a21==12)&&((a17==2)&&((a2==1)&&(((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4)))&&(input==3))))))&&(a28==1))&&(a12==1))&&(a2==1))&&(((a20==1)&&(((a19==1)&&((a11==1)&&(a16==9)))&&(a12==1)))&&(a1==13)))){ + a0 = 0; + a1 = 12; + a13 = 1; + a21 = 10; + a9 = 7; + a5 = 4; + a3 = 1; + a16 = 7; + return -1; + } else if(((!(a14==1)&&((a21==10)&&(!(a0==1)&&((a13==1)&&(((a9==8)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))&&!(a0==1))))))&&((((a16==8)&&((a19==4)&&(!(a24==1)&&(((a2==1)&&!(a20==1))&&(a1==13)))))||(a27==1))&&(a17==2)))){ + a12 = 1; + a20 = 1; + a28 = 1; + a19 = 2; + a3 = 1; + a1 = 14; + a9 = 9; + a5 = 6; + a16 = 9; + return 21; + } else if(((((a11==1)&&((a2==1)&&(((((a13==1)&&((((input==1)&&((a5==4)||(a5==5)))&&(a2==1))&&(a21==11)))&&(a17==2))&&(a20==1))&&(a16==9))))&&(a1==14))&&((a9==7)&&((((a6==1)||!(a12==1))&&(a19==3))||!(a13==1))))){ + a26 = 0; + a5 = 4; + a9 = 11; + a12 = 1; + a23 = 1; + a1 = 12; + a19 = 5; + return 21; + } else if((((a17==2)&&((a5==6)&&(((((a11==1)&&((input==4)&&(a1==14)))&&(a12==1))&&(a20==1))&&(a16==9))))&&((a21==12)&&((((a9==7)&&(((!(a0==1)&&(a11==1))||!(a6==1))&&(a19==5)))||(a8==1))||!(a3==1))))){ + a5 = 4; + a26 = 0; + a19 = 1; + a16 = 7; + a21 = 10; + a1 = 12; + a0 = 0; + a8 = 0; + return -1; + } else if((((a7==1)||((((a21==11)&&(((a1==14)&&((a5==5)&&((((a19==2)&&((a23==1)||(a0==1)))&&(a20==1))&&(a17==2))))&&(a9==9)))||(a7==1))&&!(a7==1)))&&((a3==1)&&(((input==1)&&(a16==7))&&!(a0==1))))){ + a1 = 12; + a8 = 0; + a9 = 7; + a18 = 0; + a5 = 4; + a21 = 10; + a19 = 1; + a28 = 1; + return -1; + } else if((((a17==2)&&(((a16==10)&&((a21==12)&&((((a19==2)&&((a1==14)&&(a12==1)))&&(a13==1))&&!(a27==1))))||(a7==1)))&&((a20==1)&&((a9==8)&&(!(a14==1)&&(((a13==1)&&(((a5==5)||(a5==6))&&(input==5)))&&(a28==1))))))){ + a5 = 5; + a21 = 10; + a1 = 13; + a24 = 0; + a16 = 7; + a9 = 9; + a8 = 0; + a23 = 1; + return 25; + } else if(((((a6==1)&&((a9==10)&&(((a19==2)&&(input==3))&&(a28==1))))&&(a16==7))&&((a1==14)&&(!(a20==1)&&((a17==2)&&(((a21==11)&&(((!(a8==1)&&((a12==1)&&(a5==5)))&&!(a8==1))&&!(a4==1)))||(a18==1))))))){ + a21 = 10; + a19 = 1; + a18 = 0; + a9 = 7; + a20 = 1; + a0 = 0; + a5 = 4; + a1 = 12; + a23 = 1; + return -1; + } else if((((a21==12)&&(((((a2==1)&&((a11==1)&&(a13==1)))&&(a19==3))&&(a11==1))&&!(a4==1)))&&((a17==2)&&((((a3==1)&&((a16==7)&&((((a9==7)&&((a5==5)&&(a1==13)))||((((a1==12)&&(a5==6))&&(a9==11))||((a9==7)&&((a1==13)&&(a5==4)))))&&(input==3))))&&(a20==1))&&(a2==1))))){ + a5 = 4; + a3 = 1; + a1 = 12; + a9 = 8; + a19 = 5; + a16 = 9; + a26 = 0; + a21 = 10; + a0 = 0; + return 21; + } else if((((a17==2)&&((a16==11)&&((a6==1)&&((a1==14)&&(!(a11==1)||((a2==1)&&(a9==9)))))))&&((a11==1)&&((a23==1)&&((a19==4)&&(((((((a5==5)||(a5==6))&&(input==3))&&!(a7==1))&&(a21==10))&&(a3==1))&&(a20==1))))))){ + a9 = 7; + a16 = 7; + a19 = 1; + a1 = 12; + a18 = 0; + a23 = 1; + a13 = 1; + a5 = 4; + return -1; + } else if((((a24==1)||((a11==1)&&((((a19==4)&&((a21==12)&&(a3==1)))&&(a17==2))&&(a12==1))))&&((((a3==1)&&(((a2==1)&&(((input==6)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5))))&&(a16==11)))&&(a20==1)))&&(a1==14))&&!(a0==1)))){ + a16 = 7; + a27 = 0; + a20 = 0; + a1 = 12; + a9 = 7; + a23 = 1; + a4 = 0; + a21 = 10; + a5 = 6; + a19 = 1; + return 21; + } else if((((((a17==2)&&((!(a20==1)&&((a23==1)||(a8==1)))&&(a16==8)))&&(a19==4))&&(a1==12))&&(!(a27==1)&&((a13==1)&&((((((((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6))))&&(input==4))&&(a21==10))&&!(a7==1))&&!(a8==1))&&(a12==1)))))){ + a19 = 1; + a9 = 7; + a5 = 4; + a2 = 1; + a7 = 0; + a20 = 1; + a23 = 1; + a16 = 7; + return -1; + } else if((((((a9==8)&&((a19==2)&&((a16==11)&&((a13==1)&&(((a1==13)&&(!(a4==1)&&(((a5==4)||(a5==5))&&(input==5))))&&(a17==2))))))&&(a21==10))&&(a20==1))&&((a6==1)&&((((a13==1)||!(a6==1))&&(a28==1))&&(a13==1))))){ + a3 = 1; + a24 = 0; + a1 = 12; + a5 = 4; + a9 = 7; + a16 = 7; + a19 = 1; + a26 = 0; + return -1; + } else if((((a1==14)&&(((((a2==1)&&((a17==2)&&(!(a18==1)&&((input==4)&&((a5==4)||(a5==5))))))&&!(a7==1))&&(a16==10))&&(a9==11)))&&((a21==11)&&(((a14==1)||((a11==1)&&(((a2==1)&&(a11==1))&&(a19==5))))&&(a20==1))))){ + a23 = 1; + a16 = 7; + a5 = 4; + a21 = 10; + a11 = 1; + a9 = 7; + a1 = 12; + a19 = 1; + return -1; + } else if((((((a17==2)&&((!(a18==1)&&((((((input==4)&&((a5==5)||(a5==6)))&&(a11==1))&&(a6==1))&&!(a20==1))&&!(a18==1)))&&(a19==5)))&&(a21==10))&&(a9==11))&&((a1==13)&&((((a28==1)||!(a11==1))&&(a11==1))&&(a16==10))))){ + a19 = 4; + a21 = 11; + a22 = 0; + a29 = 0; + a24 = 1; + a1 = 12; + a16 = 11; + a5 = 4; + a20 = 1; + return -1; + } else if((((((a23==1)&&(a3==1))||(a0==1))&&(a17==2))&&((a1==13)&&((((((a21==12)&&(((((input==6)&&((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4))))&&(a16==10))&&(a23==1))&&(a20==1)))&&(a6==1))&&(a6==1))&&!(a18==1))&&(a19==1))))){ + a20 = 0; + a1 = 12; + a19 = 5; + a14 = 0; + a16 = 8; + a5 = 4; + a4 = 0; + a18 = 0; + a21 = 10; + a9 = 11; + return 21; + } else if(((((a19==4)&&(((((!(a20==1)&&((a0==1)||(!(a14==1)&&(a11==1))))&&(a6==1))&&(a21==12))&&(a17==2))||(a4==1)))&&!(a8==1))&&((a9==10)&&(((((input==1)&&((a5==5)||(a5==6)))&&(a16==9))&&(a1==13))&&!(a7==1))))){ + if((a11==1)){ + a16 = 8; + a12 = 0; + a8 = 1; + a1 = 12; + a5 = 6; + a27 = 1; + a19 = 3; + }else{ + a21 = 10; + a2 = 0; + a5 = 6; + a9 = 8; + a19 = 1; + a29 = 1; + a11 = 0; + } + return 25; + } else if((((!(a0==1)&&((((a17==2)&&((a16==9)&&(a11==1)))||(a7==1))&&(a19==5)))||!(a11==1))&&(((a2==1)&&((a21==11)&&((!(a20==1)&&((a1==13)&&((input==6)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))))&&!(a18==1))))&&!(a8==1)))){ + a19 = 2; + a8 = 1; + a9 = 7; + a28 = 0; + a20 = 1; + a21 = 10; + a16 = 7; + a1 = 12; + a5 = 5; + a11 = 0; + return 25; + } else if((((a6==1)&&((((!(a11==1)||(a3==1))&&!(a0==1))&&(a3==1))&&(a16==9)))&&((a17==2)&&((a19==3)&&((a1==14)&&(((((a20==1)&&(!(a24==1)&&((a21==12)&&(input==1))))&&(a5==6))&&(a9==10))&&(a23==1))))))){ + a16 = 7; + a21 = 10; + a18 = 0; + a14 = 0; + a19 = 2; + a23 = 1; + a1 = 13; + return 25; + } else if((((((((!(a20==1)&&(a11==1))||(a7==1))||!(a3==1))&&(a16==7))||(a4==1))&&(a21==12))&&((a19==3)&&(((a3==1)&&(!(a27==1)&&((a1==14)&&((a17==2)&&((((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&(input==5))))))&&(a2==1))))){ + a19 = 1; + a7 = 0; + a2 = 1; + a9 = 7; + a23 = 1; + a1 = 12; + a21 = 10; + a5 = 4; + a20 = 1; + return -1; + } else if((((a21==12)&&((!(a11==1)||((a3==1)&&((a18==1)||(a3==1))))&&(a19==5)))&&(((!(a20==1)&&((((((a1==14)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3)))&&!(a8==1))&&!(a24==1))&&(a28==1))&&(a17==2)))&&(a9==9))&&(a16==7)))){ + a20 = 1; + a19 = 1; + a8 = 0; + a9 = 7; + a5 = 4; + a1 = 12; + a14 = 0; + a4 = 0; + a21 = 10; + return -1; + } else if((((a1==14)&&((((a19==5)&&((a9==11)&&((!(a8==1)&&((a17==2)&&(input==5)))&&(a11==1))))&&(a21==11))&&(a16==8)))&&((a20==1)&&((!(a0==1)&&((!(a26==1)&&(!(a18==1)&&(a11==1)))||!(a12==1)))&&(a5==5))))){ + a24 = 0; + a12 = 1; + a19 = 1; + a21 = 10; + a1 = 12; + a4 = 0; + a5 = 4; + a9 = 7; + a16 = 7; + return -1; + } else if(((!(a7==1)&&(!(a27==1)&&(((a12==1)&&((a16==7)&&((((((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(input==5))&&!(a27==1))&&(a21==11))))&&(a17==2))))&&((a20==1)&&((!(a14==1)&&(((a1==12)&&(a11==1))&&(a19==4)))&&(a28==1))))){ + a5 = 4; + a13 = 1; + a23 = 1; + a28 = 1; + a9 = 7; + a19 = 1; + a21 = 10; + return -1; + } else if(((((a16==7)&&(!(a0==1)&&((a28==1)&&(((input==4)&&((a5==5)||(a5==6)))&&(a12==1)))))&&(a19==5))&&((a12==1)&&(((a21==11)&&((a9==9)&&(((a20==1)&&(((a28==1)&&(a1==13))&&!(a27==1)))&&(a17==2))))||!(a28==1))))){ + a1 = 12; + a5 = 4; + a24 = 0; + a19 = 1; + a9 = 7; + a21 = 10; + a13 = 1; + a18 = 0; + return -1; + } else if((((a5==4)&&((a1==13)&&((!(a24==1)&&((a19==3)&&((a17==2)&&((a9==11)&&((a21==12)&&(input==5))))))&&!(a8==1))))&&((a11==1)&&((a27==1)||(((((a2==1)&&!(a20==1))||!(a3==1))&&(a16==7))&&!(a4==1)))))){ + a19 = 2; + a28 = 1; + a18 = 0; + a26 = 0; + a1 = 14; + a20 = 1; + a21 = 10; + return 21; + } else if((((a2==1)&&((((a11==1)&&((a1==12)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a23==1))))&&(a19==1))&&(a16==7)))&&(((a17==2)&&(!(a13==1)||((!(a20==1)&&((a11==1)&&((a2==1)&&(a21==10))))&&(a9==8))))&&!(a4==1)))){ + a6 = 1; + a9 = 11; + a4 = 0; + a1 = 14; + a5 = 6; + a23 = 1; + return 22; + } else if((((a16==10)&&(((((!(a26==1)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6))))&&!(a20==1))&&!(a0==1))&&(a9==9))&&(a1==13)))&&((a21==12)&&((a19==3)&&((a13==1)&&((a28==1)&&(((!(a18==1)&&(a23==1))&&!(a4==1))&&(a17==2)))))))){ + a10 = 0; + a20 = 1; + a5 = 5; + a21 = 10; + a14 = 1; + a9 = 8; + a19 = 1; + a16 = 7; + a2 = 0; + return -1; + } else if(((((a17==2)&&(!(a23==1)||((a1==14)&&((a19==1)&&((a21==12)&&(((a2==1)&&(a16==8))||(a27==1)))))))||!(a28==1))&&((!(a27==1)&&(!(a0==1)&&(((((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7))))&&(input==4))&&(a11==1))))&&(a20==1)))){ + a5 = 4; + a4 = 0; + a9 = 7; + a21 = 10; + a28 = 1; + a16 = 7; + a1 = 12; + a26 = 0; + return -1; + } else if((((((!(a20==1)&&((a19==3)&&(!(a0==1)&&((a6==1)&&((!(a4==1)&&((a7==1)||(a3==1)))&&(a21==10))))))&&!(a26==1))&&(a1==14))&&(a5==5))&&(((a17==2)&&(((a16==7)&&(input==1))&&(a9==10)))&&(a12==1)))){ + a13 = 1; + a19 = 4; + a11 = 1; + a3 = 1; + a1 = 12; + return 25; + } else if(((((!(a24==1)&&((!(a24==1)&&(!(a7==1)&&((input==5)&&(((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))))))&&(a17==2)))&&(a16==8))&&(a20==1))&&(((!(a24==1)&&((((a12==1)&&(a13==1))||(a14==1))&&(a1==14)))&&(a19==1))&&(a21==12)))){ + a21 = 11; + a16 = 10; + a13 = 1; + a19 = 5; + a6 = 1; + a1 = 13; + a18 = 0; + a5 = 6; + a9 = 8; + return 26; + } else if(((((a4==1)&&((a20==1)&&((a18==1)&&((a2==1)&&(a27==1)))))&&(a8==1))&&((a17==2)&&(((a16==11)&&((a19==2)&&(((((((a1==14)&&(a5==5))&&(a9==7))||((((a1==13)&&(a5==6))&&(a9==11))||((a9==7)&&((a1==14)&&(a5==4)))))&&(input==4))&&!(a13==1))&&(a7==1))))&&(a21==11))))){ + a5 = 6; + a15 = 1; + a19 = 5; + a9 = 10; + a23 = 0; + a21 = 12; + a1 = 12; + return 26; + } else if((((((input==4)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(a17==2))&&(a12==1))&&((a0==1)||(((a12==1)&&((a1==12)&&((!(a23==1)||((a20==1)&&((a21==11)&&((a19==1)&&(!(a18==1)&&(a23==1))))))&&!(a24==1))))&&(a16==9))))){ + a16 = 7; + a11 = 1; + a9 = 7; + a21 = 10; + a0 = 0; + a5 = 4; + return -1; + } else if(((((((a17==2)&&(((input==1)&&(((((a5==5)&&(a1==12))&&(a9==7))&&(a19==2))||(((a19==1)&&(((a5==6)&&(a1==14))&&(a9==11)))||((a19==2)&&(((a5==4)&&(a1==12))&&(a9==7))))))&&(a16==10)))&&(a21==10))&&!(a14==1))&&!(a7==1))&&((((!(a6==1)||(!(a3==1)||(a2==1)))&&!(a0==1))&&!(a20==1))&&!(a24==1)))){ + if((a8==1)){ + a8 = 1; + a5 = 6; + a28 = 0; + a19 = 1; + a3 = 0; + a1 = 13; + a16 = 7; + a9 = 11; + a20 = 1; + }else{ + a16 = 7; + a5 = 6; + a20 = 1; + a29 = 1; + a19 = 1; + a9 = 9; + a12 = 0; + a1 = 13; + a11 = 0; + } + return -1; + } else if((((a3==1)&&((((a17==2)&&(((a16==10)&&(((((a9==11)&&((a5==6)&&(a1==13)))||(((a1==14)&&(a5==4))&&(a9==7)))&&(input==4))&&(a21==11)))&&!(a20==1)))&&!(a27==1))&&(a11==1)))&&(!(a6==1)||(!(a3==1)||((a19==3)&&((a11==1)||(a7==1))))))){ + if((a16==10)){ + a21 = 10; + a23 = 0; + a5 = 6; + a1 = 12; + a19 = 1; + a7 = 1; + a16 = 11; + a9 = 8; + a13 = 0; + }else{ + a19 = 4; + a21 = 12; + a5 = 4; + a20 = 1; + a0 = 1; + a9 = 10; + a1 = 12; + a18 = 1; + a6 = 0; + } + return -1; + } else if((((((a16==9)&&((a23==1)&&((a17==2)&&((((a5==4)||(a5==5))&&(input==1))&&(a1==12)))))&&(a9==11))&&(a21==12))&&((((((((a2==1)&&(a19==3))&&!(a4==1))||!(a28==1))||(a0==1))&&!(a24==1))&&!(a0==1))&&(a20==1)))){ + a18 = 0; + a28 = 1; + a0 = 0; + a9 = 7; + a21 = 10; + a5 = 4; + a19 = 1; + a16 = 7; + return -1; + } else if((((((a13==1)&&(((a2==1)&&(a21==12))&&(a28==1)))&&(a17==2))&&(a2==1))&&((!(a18==1)&&((((a16==8)&&((a19==4)&&(((input==5)&&(((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))))&&!(a18==1))))&&(a13==1))&&!(a20==1)))&&(a1==12)))){ + if((a17==2)){ + a16 = 7; + a1 = 14; + a5 = 4; + a23 = 0; + a21 = 10; + a24 = 1; + a18 = 1; + a9 = 11; + }else{ + a9 = 7; + a21 = 10; + a5 = 4; + a26 = 1; + a7 = 1; + a20 = 1; + a19 = 1; + a8 = 1; + a16 = 7; + } + return -1; + } else if((((a12==1)&&((a21==10)&&(((((((!(a4==1)&&((input==1)&&((a5==5)||(a5==6))))&&(a20==1))&&(a11==1))&&(a17==2))&&(a3==1))&&!(a14==1))&&(a19==4))))&&((a1==13)&&((a16==11)&&(((a11==1)&&(a9==9))&&(a3==1)))))){ + a21 = 11; + a9 = 10; + a0 = 0; + a18 = 0; + a14 = 0; + a1 = 12; + a5 = 4; + return 23; + } else if((((a0==1)||((a19==5)&&((a0==1)||(a11==1))))&&((a12==1)&&(((((a17==2)&&(((a21==12)&&(((a16==7)&&((((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(input==5)))&&!(a20==1)))&&(a1==13)))&&!(a14==1))&&(a3==1))&&!(a27==1))))){ + a4 = 0; + a19 = 1; + a21 = 10; + a5 = 4; + a9 = 7; + a20 = 1; + a26 = 0; + a7 = 0; + a1 = 12; + return -1; + } return calculate_output71(input); + } + + int calculate_output71(int input) { + if((((a13==1)&&((a19==5)&&(((a13==1)&&(!(a0==1)&&(!(a20==1)&&((input==6)&&(a5==6)))))&&(a12==1))))&&(((a21==10)&&((((a16==10)&&((a13==1)&&(!(a6==1)||(a12==1))))&&(a17==2))&&(a9==8)))&&(a1==13)))){ + a23 = 0; + a20 = 1; + a9 = 10; + a5 = 5; + a16 = 7; + a1 = 14; + a11 = 0; + a19 = 1; + a25 = 1; + return -1; + } else if((((a1==12)&&(!(a20==1)&&((!(a6==1)||(a13==1))&&!(a7==1))))&&((((a21==12)&&(((!(a4==1)&&(!(a18==1)&&((a19==3)&&((a6==1)&&((input==4)&&((a5==4)||(a5==5)))))))&&!(a18==1))&&(a9==8)))&&(a16==7))&&(a17==2)))){ + a19 = 1; + a5 = 4; + a24 = 0; + a9 = 7; + a20 = 1; + a27 = 0; + a14 = 0; + a21 = 10; + return -1; + } else if(((((a17==2)&&((a9==10)&&((((a27==1)&&((a3==1)&&(a4==1)))&&!(a3==1))&&(a16==7))))&&!(a6==1))&&((((a21==12)&&(((!(a13==1)&&((input==3)&&(a5==4)))&&!(a20==1))&&(a0==1)))&&(a1==14))&&(a19==2)))){ + a20 = 1; + a1 = 13; + a5 = 5; + a12 = 0; + a9 = 7; + a19 = 1; + a28 = 0; + a21 = 10; + a8 = 1; + return -1; + } else if(((((a19==2)&&((a23==1)&&((a9==7)&&(!(a20==1)&&((a24==1)||((a17==2)&&(a2==1)))))))||(a0==1))&&(((a13==1)&&((((((a5==4)&&(input==3))&&(a21==12))&&!(a18==1))&&(a16==7))&&(a23==1)))&&(a1==14)))){ + a24 = 0; + a19 = 1; + a1 = 12; + a8 = 0; + a21 = 10; + a20 = 1; + a23 = 1; + return -1; + } else if(((((a16==8)&&((a4==1)||(!(a4==1)&&((a19==1)&&((a6==1)||!(a23==1))))))||(a24==1))&&(!(a14==1)&&((((a21==11)&&(!(a14==1)&&((((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&(a9==9))&&(a1==12))))&&(a17==2))&&(a20==1))))){ + a26 = 0; + a9 = 8; + a1 = 14; + a21 = 12; + a14 = 0; + a5 = 6; + return 21; + } else if(((((!(a20==1)&&(((a7==1)||((a8==1)||((a12==1)&&((a2==1)&&(a21==10)))))&&!(a4==1)))&&(a1==14))&&!(a18==1))&&((a3==1)&&((((a19==3)&&((input==4)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))))&&(a17==2))&&(a16==9))))){ + a20 = 1; + a19 = 1; + a1 = 12; + a11 = 0; + a16 = 7; + a26 = 1; + a29 = 1; + a5 = 4; + a9 = 10; + return 25; + } else if(((!(a13==1)||((((a17==2)&&((a21==12)&&((((a2==1)&&((a16==10)&&(a28==1)))&&(a1==12))&&(a20==1))))&&(a6==1))||!(a11==1)))&&(((((((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==4))&&(a19==3))&&!(a14==1))&&(a11==1)))){ + a5 = 4; + a16 = 7; + a6 = 1; + a19 = 1; + a0 = 0; + a7 = 0; + a21 = 10; + a9 = 7; + return -1; + } else if((((a21==10)&&(((((a13==1)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))&&(a1==12))&&!(a27==1))&&!(a14==1)))&&(((((a19==1)&&((a11==1)&&((a27==1)||(((a23==1)&&(a9==9))&&!(a14==1)))))&&(a20==1))&&(a16==11))&&(a17==2)))){ + a11 = 1; + a6 = 1; + a9 = 7; + a5 = 4; + a2 = 1; + a16 = 7; + return -1; + } else if((((a18==1)&&((!(a20==1)&&(((a12==1)&&!(a11==1))&&(a21==11)))&&!(a13==1)))&&(((a27==1)&&((a16==8)&&((a17==2)&&(((((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==2))||((a19==3)&&((a9==7)&&((a1==12)&&(a5==4)))))||((a19==3)&&(((a5==5)&&(a1==12))&&(a9==7))))&&(input==3))&&(a7==1)))))&&(a8==1)))){ + a5 = 6; + a1 = 14; + a27 = 1; + a16 = 7; + a20 = 1; + a9 = 7; + a21 = 10; + a19 = 1; + a11 = 0; + return -1; + } else if((((a17==2)&&((a3==1)&&((((((a19==2)&&(((a5==5)&&(a1==14))&&(a9==11)))||((((a5==6)&&(a1==14))&&(a9==11))&&(a19==2)))||((a19==3)&&(((a5==4)&&(a1==12))&&(a9==7))))&&(input==3))&&(a11==1))))&&(!(a6==1)||((a20==1)&&((a28==1)&&((((a28==1)&&((a2==1)&&(a16==7)))&&(a21==11))||!(a12==1))))))){ + a19 = 1; + a21 = 10; + a5 = 4; + a4 = 0; + a9 = 7; + a12 = 1; + a1 = 12; + return -1; + } else if((((a2==1)&&(((a11==1)&&(((a17==2)&&((a19==5)&&((((((a9==11)&&((a5==6)&&(a1==13)))||((a9==7)&&((a1==14)&&(a5==4))))&&(input==6))&&(a28==1))&&!(a20==1))))&&(a16==9)))&&!(a14==1)))&&(!(a2==1)||(((a28==1)||!(a11==1))&&(a21==12))))){ + if((a4==1)){ + a5 = 5; + a27 = 1; + a9 = 11; + a1 = 12; + a21 = 11; + a7 = 1; + a19 = 4; + a6 = 0; + }else{ + a0 = 1; + a6 = 0; + a9 = 11; + a1 = 12; + a21 = 11; + a16 = 8; + a5 = 6; + a29 = 0; + } + return 21; + } else if((((a16==7)&&((a17==2)&&(((a4==1)||((((a13==1)&&(a6==1))&&!(a18==1))&&(a13==1)))&&!(a0==1))))&&((((a1==13)&&(((((a9==11)&&(input==4))&&(a21==11))&&!(a18==1))&&(a20==1)))&&(a19==5))&&(a5==4)))){ + a19 = 1; + a1 = 12; + a18 = 0; + a12 = 1; + a9 = 7; + a21 = 10; + return -1; + } else if(((((a16==9)&&(!(a3==1)||((a2==1)&&((((a1==12)&&((a19==5)&&(a12==1)))||!(a28==1))&&(a20==1)))))&&(a21==10))&&((!(a4==1)&&(((a9==8)&&(((input==4)&&((a5==4)||(a5==5)))&&!(a18==1)))&&!(a26==1)))&&(a17==2)))){ + a27 = 0; + a4 = 0; + a16 = 7; + a11 = 1; + a9 = 7; + a5 = 4; + a19 = 1; + return -1; + } else if((((a0==1)||(((((a26==1)||((a1==14)&&(!(a11==1)||(a6==1))))&&(a17==2))&&(a21==10))||!(a6==1)))&&(((!(a20==1)&&((a19==3)&&(((input==3)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(a16==10))))&&(a2==1))&&!(a7==1)))){ + a9 = 9; + a5 = 5; + a4 = 1; + a1 = 12; + a19 = 2; + a16 = 7; + a22 = 0; + a20 = 1; + a8 = 1; + return -1; + } else if(((((a20==1)&&(((!(a3==1)||(a6==1))&&!(a18==1))&&!(a14==1)))&&(a17==2))&&((a19==2)&&(((a16==10)&&(((a21==10)&&((a6==1)&&((a1==13)&&((input==3)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))))))&&(a13==1)))&&(a3==1))))){ + a19 = 1; + a23 = 1; + a1 = 12; + a9 = 7; + a16 = 7; + a5 = 4; + a27 = 0; + a4 = 0; + return -1; + } else if((((a9==8)&&((!(a26==1)&&((((a21==12)&&((a23==1)&&((a19==2)&&(input==3))))&&!(a27==1))&&(a6==1)))&&(a20==1)))&&(((((a17==2)&&(((a2==1)||(a24==1))||(a27==1)))&&(a5==4))&&(a16==10))&&(a1==14)))){ + a16 = 7; + a13 = 1; + a1 = 12; + a18 = 0; + a21 = 10; + a19 = 1; + a6 = 1; + a9 = 7; + return -1; + } else if((((!(a14==1)&&(((a21==10)&&((((a1==12)&&((a28==1)&&((a9==7)&&(input==4))))&&(a6==1))&&(a5==6)))&&(a16==9)))&&(a19==1))&&(((a20==1)&&((a17==2)&&(!(a11==1)||((a23==1)&&(a13==1)))))&&(a6==1)))){ + a6 = 1; + a16 = 7; + a5 = 4; + a27 = 0; + a0 = 0; + return -1; + } else if(((!(a28==1)||((((a21==10)&&((a13==1)||(a0==1)))||!(a11==1))||!(a12==1)))&&((((a16==8)&&((a17==2)&&((a1==14)&&((a20==1)&&(((input==1)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(a19==1))))))&&(a12==1))&&(a3==1)))){ + a14 = 0; + a16 = 7; + a5 = 4; + a28 = 1; + a1 = 12; + a9 = 7; + a0 = 0; + return -1; + } else if((((((a9==8)&&((!(a0==1)&&((!(a7==1)&&((input==4)&&(a21==12)))&&!(a26==1)))&&(a1==14)))&&(a19==1))&&(a5==5))&&(((a20==1)&&(!(a23==1)||((((a23==1)&&(a3==1))&&(a17==2))&&(a28==1))))&&(a16==8)))){ + a16 = 7; + a13 = 1; + a5 = 4; + a21 = 10; + a9 = 7; + a1 = 12; + a7 = 0; + a14 = 0; + return -1; + } else if(((((((a3==1)&&(a13==1))&&(a13==1))||(a8==1))||(a14==1))&&(((((a21==10)&&(!(a20==1)&&(((((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==1))&&(a19==2))&&!(a4==1))&&(a3==1))))&&(a17==2))&&(a16==7))&&(a1==12)))){ + a19 = 1; + a5 = 4; + a20 = 1; + a8 = 0; + a3 = 1; + a11 = 1; + a9 = 7; + return -1; + } else if(((!(a14==1)&&((a28==1)&&(((!(a18==1)&&(((a19==3)&&((a9==8)&&((((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&!(a27==1))&&(a23==1))))&&(a1==13)))&&(a16==7))&&!(a20==1))))&&((a17==2)&&((!(a12==1)||(a6==1))&&(a21==12))))){ + a13 = 1; + a20 = 1; + a18 = 0; + a19 = 1; + a5 = 4; + a1 = 12; + a9 = 7; + a21 = 10; + a3 = 1; + return -1; + } else if(((!(a8==1)&&(((a19==5)&&((a21==11)&&(a28==1)))&&(a20==1)))&&((((a16==9)&&(((a1==12)&&((((((input==4)&&((a5==5)||(a5==6)))&&!(a27==1))&&!(a14==1))&&(a13==1))&&(a17==2)))&&(a9==11)))&&!(a7==1))&&!(a27==1)))){ + a7 = 0; + a16 = 7; + a5 = 4; + a19 = 1; + a13 = 1; + a21 = 10; + a9 = 7; + a11 = 1; + return -1; + } else if((((((a1==13)&&(!(a26==1)&&((a16==9)&&((a12==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1))))))&&!(a4==1))&&(a19==5))&&((!(a20==1)&&((((a11==1)&&(((a13==1)&&(a9==7))&&!(a7==1)))&&(a21==11))&&!(a8==1)))&&(a17==2)))){ + if((a17==3)){ + a25 = 1; + a13 = 0; + a20 = 1; + a12 = 0; + a19 = 1; + a9 = 11; + a16 = 10; + a5 = 4; + a1 = 14; + }else{ + a15 = 1; + a9 = 8; + a16 = 7; + a22 = 1; + a5 = 4; + a20 = 1; + a7 = 1; + a21 = 10; + a19 = 1; + a1 = 12; + } + return -1; + } else if(((!(a4==1)&&((a17==2)&&(((a19==5)&&((input==5)&&((a5==5)||(a5==6))))&&(a1==12))))&&(((((a27==1)||(((a9==8)&&((((a21==12)&&(a3==1))&&(a16==7))||!(a23==1)))&&!(a20==1)))||!(a28==1))&&!(a7==1))&&!(a14==1)))){ + if((a19==2)){ + a19 = 2; + a1 = 14; + a9 = 10; + a26 = 0; + a21 = 10; + a2 = 1; + a16 = 8; + a5 = 6; + a8 = 0; + }else{ + a1 = 14; + a20 = 1; + a19 = 3; + a5 = 5; + a21 = 10; + a0 = 0; + a18 = 0; + a16 = 10; + a26 = 0; + } + return 21; + } else if(((!(a2==1)||(((((a1==14)&&(((a2==1)&&!(a0==1))&&(a21==12)))||(a7==1))&&(a9==7))&&(a23==1)))&&((a12==1)&&((a3==1)&&((a20==1)&&((a19==4)&&(((a17==2)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5)))&&(a16==11)))))))){ + if((a23==1)){ + a19 = 2; + a20 = 0; + a7 = 0; + a21 = 11; + a16 = 7; + a8 = 0; + a3 = 1; + a5 = 5; + }else{ + a19 = 5; + a9 = 10; + a5 = 5; + a6 = 1; + } + return 25; + } else if((((a17==2)&&((a16==7)&&((!(a18==1)&&((a21==11)&&((a9==8)&&(a28==1))))&&(a19==5))))&&((a1==12)&&((((a3==1)&&(((a13==1)&&(((input==6)&&(a20==1))&&!(a8==1)))&&!(a7==1)))&&(a5==4))&&!(a24==1))))){ + a24 = 0; + a16 = 8; + a5 = 5; + a9 = 11; + a1 = 14; + a6 = 1; + a0 = 0; + return 23; + } else if(((((!(a20==1)&&((((input==4)&&(a1==14))&&(a21==11))&&!(a2==1)))&&(a4==1))&&!(a3==1))&&((a19==1)&&((((a9==8)&&((a26==1)&&(((a7==1)&&(!(a2==1)&&(a2==1)))&&(a17==2))))&&(a5==4))&&(a16==7))))){ + a22 = 0; + a21 = 10; + a27 = 1; + a9 = 11; + a20 = 1; + a29 = 0; + a5 = 6; + return -1; + } else if((((((!(a14==1)&&(((a3==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&(a11==1)))&&(a17==2)))&&!(a7==1))&&(a1==13))&&!(a26==1))&&(((((a9==9)&&((a21==12)&&(!(a20==1)&&(a11==1))))&&(a16==10))&&(a19==2))&&!(a14==1)))){ + if((a23==1)){ + a29 = 0; + a16 = 9; + a5 = 6; + a19 = 5; + a1 = 12; + a22 = 1; + a4 = 1; + a9 = 7; + }else{ + a16 = 7; + a5 = 6; + a21 = 10; + a19 = 1; + a13 = 0; + a25 = 0; + a20 = 1; + } + return -1; + } else if(((!(a8==1)&&((a1==13)&&(((a9==10)&&((a20==1)&&(((input==6)&&((a5==4)||(a5==5)))&&(a19==2))))&&(a17==2))))&&((a24==1)||(!(a24==1)&&((a18==1)||((a21==12)&&((a16==11)&&((a7==1)||((a12==1)||(a18==1)))))))))){ + a19 = 4; + a13 = 1; + a5 = 4; + a24 = 0; + a9 = 8; + a2 = 1; + return 25; + } else if(((!(a0==1)&&((!(a7==1)&&(!(a4==1)&&((a13==1)&&((a1==12)&&((a17==2)&&((((a19==1)&&((input==6)&&(a21==11)))&&(a20==1))&&(a3==1)))))))&&(a16==7)))&&(((a9==9)&&((a5==6)&&(a13==1)))&&(a28==1)))){ + a26 = 0; + a9 = 7; + a5 = 4; + a21 = 10; + a27 = 0; + a8 = 0; + return -1; + } else if((((a1==12)&&((((((((((a5==5)||(a5==6))&&(input==4))&&(a21==11))&&(a16==7))&&!(a24==1))&&(a12==1))&&!(a0==1))&&(a9==11))&&(a28==1)))&&((a19==1)&&((a20==1)&&((a18==1)||(((a6==1)&&(a17==2))&&!(a26==1))))))){ + a13 = 1; + a12 = 1; + a2 = 1; + a9 = 7; + a21 = 10; + a5 = 4; + return -1; + } else if(((((a17==2)&&(!(a26==1)&&((a19==2)&&((a2==1)&&((input==1)&&(a1==14))))))&&(a9==11))&&(!(a20==1)&&((((((((a23==1)&&!(a14==1))&&!(a7==1))||!(a6==1))&&!(a27==1))&&(a21==10))&&(a16==8))&&(a5==5))))){ + a1 = 12; + a9 = 7; + a12 = 1; + a18 = 0; + a19 = 1; + a5 = 4; + a20 = 1; + a3 = 1; + a16 = 7; + return -1; + } else if((((a5==6)&&((a1==14)&&((!(a18==1)&&(((!(a18==1)&&((input==4)&&(a20==1)))&&(a19==1))&&!(a8==1)))&&(a17==2))))&&((a16==7)&&((a9==7)&&((!(a27==1)&&((a12==1)&&((a21==11)&&(a12==1))))||!(a12==1)))))){ + a1 = 12; + a3 = 1; + a24 = 0; + a5 = 4; + a21 = 10; + return -1; + } else if((((a9==11)&&((a19==2)&&((a21==12)&&(!(a20==1)&&((a3==1)&&!(a7==1))))))&&((a1==14)&&(((a17==2)&&(!(a7==1)&&((((((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a11==1))&&!(a0==1))&&!(a14==1))&&(a23==1))))&&(a16==7))))){ + a20 = 1; + a21 = 10; + a19 = 1; + a2 = 1; + a3 = 1; + a9 = 7; + a1 = 12; + a5 = 4; + a13 = 1; + return -1; + } else if(((!(a28==1)||(((a24==1)||((a11==1)&&(a1==14)))&&(a20==1)))&&((a21==11)&&((a19==4)&&((!(a14==1)&&(((a13==1)&&(((((input==6)&&(a5==5))&&(a16==8))&&(a11==1))&&(a3==1)))&&(a9==11)))&&(a17==2)))))){ + a9 = 7; + a18 = 0; + a21 = 10; + a5 = 4; + a19 = 1; + a24 = 0; + a1 = 12; + a16 = 7; + return -1; + } else if((((a9==7)&&((!(a13==1)||(((a6==1)&&(((a11==1)||(a8==1))&&(a23==1)))&&(a21==11)))&&(a1==12)))&&((a17==2)&&((a5==6)&&((a2==1)&&(((!(a27==1)&&((a16==8)&&(input==5)))&&!(a20==1))&&(a19==3))))))){ + a5 = 4; + a6 = 1; + a18 = 0; + a21 = 10; + a19 = 1; + a20 = 1; + a16 = 7; + a7 = 0; + return -1; + } else if((((!(a28==1)||(!(a2==1)||((a6==1)&&(a19==1))))&&(a5==4))&&((((((a9==9)&&(!(a26==1)&&(((a17==2)&&((a11==1)&&((a1==12)&&(input==4))))&&(a16==7))))&&(a21==10))&&!(a18==1))&&(a2==1))&&!(a20==1)))){ + a24 = 0; + a11 = 1; + a9 = 7; + a20 = 1; + a28 = 1; + return -1; + } else if(((((a21==11)&&((a17==2)&&((a2==1)&&((a14==1)||((a0==1)||(((a7==1)||(a11==1))&&(a16==11)))))))||!(a6==1))&&((a6==1)&&((a20==1)&&((input==3)&&(((((a5==4)&&(a1==12))&&(a9==7))&&(a19==3))||(((a19==2)&&((a9==11)&&((a1==14)&&(a5==5))))||((a19==2)&&((a9==11)&&((a1==14)&&(a5==6))))))))))){ + a6 = 1; + a9 = 7; + a16 = 7; + a5 = 4; + a1 = 12; + a13 = 1; + a21 = 10; + a19 = 1; + a18 = 0; + return -1; + } else if(((!(a26==1)&&((a9==10)&&((((a5==4)||(a5==5))&&(input==6))&&(a16==11))))&&(((((!(a18==1)&&(!(a26==1)&&(!(a26==1)&&((((a12==1)&&(a1==13))&&(a12==1))&&(a17==2)))))||!(a3==1))&&(a19==4))&&(a21==10))&&!(a20==1)))){ + a9 = 8; + a5 = 5; + a6 = 0; + a29 = 1; + a20 = 1; + a1 = 14; + a22 = 1; + a16 = 7; + a19 = 1; + return -1; + } else if(((((a1==13)&&((a2==1)&&((!(a4==1)&&((((a3==1)&&(a21==10))||(a7==1))||!(a3==1)))&&(a19==2))))&&(a17==2))&&((a16==11)&&((a20==1)&&((a6==1)&&((a12==1)&&((a9==11)&&((a5==6)&&(input==5))))))))){ + a6 = 1; + a9 = 7; + a19 = 1; + a24 = 0; + a5 = 4; + a16 = 7; + a1 = 12; + a8 = 0; + return -1; + } else if((((((a17==2)&&(!(a4==1)&&((((a2==1)&&((((a19==2)&&(((a5==6)&&(a1==14))&&(a9==11)))||(((a9==7)&&((a5==4)&&(a1==12)))&&(a19==3)))&&(input==6)))&&!(a8==1))&&(a16==9))))&&!(a20==1))&&!(a8==1))&&(!(a3==1)||(!(a18==1)&&((a12==1)&&(a21==11)))))){ + if((a21==11)){ + a19 = 1; + a1 = 13; + a3 = 0; + a5 = 4; + a0 = 1; + a22 = 1; + a16 = 10; + a9 = 10; + }else{ + a1 = 13; + a21 = 10; + a3 = 0; + a5 = 6; + a16 = 8; + a19 = 4; + a20 = 1; + a9 = 9; + a14 = 1; + a27 = 1; + } + return -1; + } else if((((((a28==1)&&(!(a23==1)||((((a20==1)&&(!(a26==1)&&((!(a0==1)&&((a13==1)&&!(a26==1)))&&(a19==3))))&&(a5==6))||!(a6==1))))&&(a21==12))&&(a17==2))&&((a16==9)&&(((a9==7)&&(input==4))&&(a1==12))))){ + a5 = 4; + a18 = 0; + a7 = 0; + a19 = 1; + a21 = 10; + a16 = 7; + a13 = 1; + return -1; + } else if(((((a21==12)&&((a1==14)&&(((a13==1)&&((input==6)&&((a5==4)||(a5==5))))&&(a17==2))))&&(a6==1))&&(((a19==1)&&((a9==11)&&(((a18==1)||((a16==9)&&(!(a13==1)||((a14==1)||(a6==1)))))&&!(a7==1))))&&(a20==1)))){ + a9 = 9; + a13 = 1; + a24 = 0; + a19 = 3; + a1 = 12; + a5 = 4; + a7 = 0; + return 21; + } else if((((a19==2)&&(!(a13==1)||((a14==1)||((a23==1)&&(a20==1)))))&&(!(a27==1)&&((a3==1)&&((a21==10)&&(!(a8==1)&&(((a17==2)&&((a3==1)&&(((((a1==14)&&(a5==5))&&(a9==7))||(((a9==11)&&((a1==13)&&(a5==6)))||((a9==7)&&((a5==4)&&(a1==14)))))&&(input==4))))&&(a16==7)))))))){ + a19 = 4; + a9 = 9; + a13 = 1; + a12 = 1; + a5 = 6; + a1 = 12; + a2 = 1; + return 21; + } else if((((a17==2)&&((((!(a27==1)&&((a11==1)&&(((input==3)&&(a16==9))&&(a21==10))))&&!(a20==1))&&(a3==1))&&!(a7==1)))&&(((a9==8)&&(((a19==5)&&(!(a4==1)&&((a11==1)&&!(a24==1))))&&(a5==5)))&&(a1==14)))){ + a19 = 1; + a20 = 1; + a29 = 1; + a16 = 7; + a5 = 4; + a0 = 1; + a23 = 0; + return 21; + } else if((((((((a12==1)&&(a17==2))&&!(a7==1))&&!(a27==1))&&!(a14==1))&&(a20==1))&&(((!(a27==1)&&((!(a27==1)&&((a1==14)&&(((input==4)&&((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10))))&&(a13==1))))&&(a21==12)))&&(a16==7))&&(a19==1)))){ + a21 = 10; + a5 = 4; + a9 = 7; + a1 = 12; + a27 = 0; + a2 = 1; + return -1; + } else if((((((!(a0==1)&&(((a19==1)&&((a26==1)||(a6==1)))&&!(a7==1)))&&!(a24==1))&&(a1==12))&&!(a4==1))&&((a20==1)&&((((a21==12)&&(((input==4)&&((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4))))&&(a16==11)))&&(a17==2))&&!(a24==1))))){ + a13 = 1; + a9 = 7; + a5 = 4; + a21 = 10; + a28 = 1; + a16 = 7; + a6 = 1; + return -1; + } else if((((a18==1)||((a20==1)&&((a21==12)&&((a16==9)&&(((a3==1)&&!(a26==1))||!(a12==1))))))&&((!(a14==1)&&(!(a14==1)&&((a17==2)&&((input==3)&&(((((a5==4)&&(a1==12))&&(a9==7))&&(a19==3))||(((a19==2)&&(((a1==14)&&(a5==5))&&(a9==11)))||((((a1==14)&&(a5==6))&&(a9==11))&&(a19==2))))))))&&(a12==1)))){ + a21 = 10; + a8 = 0; + a9 = 7; + a19 = 1; + a13 = 1; + a5 = 4; + a1 = 12; + a18 = 0; + a16 = 7; + return -1; + } else if(((((a21==12)&&((((a11==1)&&((a16==7)&&(input==4)))&&!(a0==1))&&(a9==11)))&&(a1==12))&&((a5==6)&&(((((a4==1)||((a19==5)&&(((a3==1)||!(a23==1))&&(a17==2))))&&(a20==1))&&!(a27==1))||!(a11==1))))){ + a16 = 9; + a23 = 1; + a9 = 10; + a19 = 4; + a13 = 1; + a21 = 11; + a1 = 13; + a2 = 1; + return 25; + } else if(((!(a28==1)||((a9==11)&&((a17==2)&&(!(a28==1)||((a20==1)&&((a19==4)&&(((a24==1)||((a23==1)&&(a13==1)))&&(a21==10))))))))&&((a16==11)&&((a1==13)&&((a23==1)&&(((input==6)&&((a5==5)||(a5==6)))&&!(a18==1))))))){ + a0 = 0; + a26 = 0; + a9 = 7; + a16 = 7; + a5 = 4; + a1 = 12; + a6 = 1; + a19 = 1; + return -1; + } else if(((((!(a13==1)||((a21==10)&&((a14==1)||((a28==1)||!(a12==1)))))&&(a1==13))&&(a28==1))&&((((((!(a4==1)&&((input==4)&&((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a5==4)&&(a9==8)))))&&(a19==4))&&(a17==2))&&(a16==11))&&(a2==1))&&(a20==1)))){ + a1 = 12; + a5 = 4; + a18 = 0; + a19 = 1; + a16 = 7; + a28 = 1; + a9 = 7; + return -1; + } else if(((!(a20==1)&&((a23==1)&&((!(a7==1)&&((a5==4)&&((a17==2)&&((a12==1)&&(((input==5)&&(a9==7))&&(a19==2))))))&&(a1==13))))&&(((a2==1)&&(((a18==1)||((a6==1)&&(a16==7)))||(a24==1)))&&(a21==10)))){ + a27 = 0; + a19 = 1; + a1 = 12; + a18 = 0; + a20 = 1; + a13 = 1; + return -1; + } else if(((((!(a3==1)||((a28==1)||!(a6==1)))&&(a20==1))&&(a16==9))&&((a9==9)&&((a19==3)&&((((((a1==12)&&(!(a8==1)&&((a2==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))))&&(a21==10))&&!(a4==1))&&(a12==1))&&(a17==2)))))){ + a19 = 1; + a4 = 0; + a5 = 4; + a11 = 1; + a9 = 7; + a18 = 0; + a16 = 7; + return -1; + } else if((((a19==1)&&((!(a8==1)&&((a2==1)&&(!(a20==1)&&((a1==14)&&(!(a27==1)&&((((((a5==4)||(a5==5))&&(input==6))&&!(a27==1))&&(a11==1))&&(a9==11)))))))&&(a16==8)))&&(((a17==2)&&((a12==1)&&(a21==12)))&&(a28==1)))){ + if((a26==1)){ + a6 = 0; + a9 = 8; + a1 = 12; + a21 = 10; + a5 = 4; + a11 = 0; + a20 = 1; + }else{ + a9 = 10; + a5 = 4; + a16 = 7; + a19 = 5; + a27 = 1; + a25 = 1; + a21 = 10; + a8 = 1; + } + return -1; + } else if((((!(a2==1)||(((a6==1)&&(a16==11))||(a27==1)))&&(a19==3))&&((a9==11)&&(((((a23==1)&&(!(a8==1)&&((!(a18==1)&&((a1==12)&&((input==3)&&(a21==10))))&&(a17==2))))&&(a5==4))&&(a23==1))&&!(a20==1))))){ + a15 = 0; + a21 = 12; + a16 = 7; + a1 = 13; + a2 = 0; + a5 = 6; + a9 = 10; + a11 = 0; + return 21; + } else if(((((a2==1)&&(((a1==13)&&((((a21==12)&&(input==3))&&(a17==2))&&(a19==5)))&&(a5==6)))&&!(a18==1))&&(((!(a13==1)||((a9==11)&&(!(a23==1)||(((a26==1)||(a2==1))&&(a16==7)))))&&!(a20==1))&&(a28==1)))){ + a5 = 4; + a14 = 0; + a4 = 0; + a9 = 7; + a20 = 1; + a1 = 12; + a19 = 1; + a21 = 10; + a28 = 1; + return -1; + } else if(((((a19==4)&&((a21==11)&&((a17==2)&&(((input==3)&&((a5==5)||(a5==6)))&&!(a18==1)))))&&(a1==14))&&(((((!(a6==1)||(((a24==1)||(!(a27==1)&&(a2==1)))&&(a9==7)))&&!(a7==1))&&(a20==1))&&(a28==1))&&(a16==11)))){ + a16 = 7; + a3 = 1; + a11 = 1; + a21 = 10; + a19 = 1; + a5 = 4; + a1 = 12; + a23 = 1; + return -1; + } else if(((((a23==1)&&((((a9==9)&&((a21==12)&&((input==4)&&(a20==1))))&&(a17==2))&&!(a14==1)))&&!(a18==1))&&(((!(a12==1)||((a0==1)||(((a19==5)&&((a16==7)&&(a28==1)))&&(a1==14))))&&(a5==6))&&(a6==1)))){ + a9 = 7; + a4 = 0; + a1 = 12; + a19 = 1; + a21 = 10; + a5 = 4; + a2 = 1; + a13 = 1; + return -1; + } else if((((a23==1)&&(((a16==11)&&(((((((a9==7)&&((a5==4)&&(a1==12)))&&(a19==1))&&(a21==12))||(((a21==11)&&(((a9==11)&&((a5==5)&&(a1==14)))&&(a19==5)))||((a21==11)&&(((a9==11)&&((a5==6)&&(a1==14)))&&(a19==5)))))&&(input==1))&&!(a18==1)))&&!(a4==1)))&&(((!(a8==1)&&((a20==1)&&((a17==2)&&(a23==1))))||!(a23==1))&&(a13==1)))){ + a0 = 0; + a11 = 1; + a1 = 14; + a9 = 8; + a19 = 2; + a21 = 10; + a5 = 4; + a16 = 10; + return 21; + } else if((((((((a9==7)&&(a23==1))&&(a21==12))||!(a2==1))&&(a16==7))||(a14==1))&&((a11==1)&&((a1==12)&&((a3==1)&&((a19==2)&&(!(a7==1)&&((((a17==2)&&(((a5==5)||(a5==6))&&(input==1)))&&(a20==1))&&!(a8==1))))))))){ + a5 = 4; + a3 = 1; + a0 = 0; + a21 = 10; + a19 = 1; + return -1; + } else if(((((((!(a4==1)&&(((((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(input==3))&&(a13==1)))&&!(a4==1))&&(a21==11))&&(a1==13))&&(a16==10))&&(((!(a3==1)||(!(a20==1)&&(((a2==1)&&(a11==1))||!(a28==1))))&&(a17==2))&&(a19==3)))){ + a16 = 7; + a9 = 10; + a19 = 1; + a21 = 10; + a5 = 5; + a1 = 14; + a20 = 1; + a15 = 0; + a27 = 1; + a10 = 0; + return -1; + } else if(((((a1==13)&&((!(a3==1)||((a16==9)&&(((a21==11)&&(a12==1))&&!(a24==1))))&&(a19==5)))||!(a2==1))&&(((a12==1)&&((a20==1)&&(((a17==2)&&((((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==4)))&&!(a8==1))))&&(a23==1)))){ + a19 = 1; + a5 = 4; + a21 = 10; + a9 = 7; + a6 = 1; + a26 = 0; + a1 = 12; + a28 = 1; + a16 = 7; + return -1; + } else if(((((((a1==12)&&((!(a3==1)||(((a11==1)&&(a16==9))&&(a20==1)))&&!(a0==1)))&&(a9==7))&&(a19==3))&&(a21==10))&&((a17==2)&&(((a13==1)&&((((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a28==1))&&!(a7==1)))&&!(a0==1))))){ + a16 = 11; + a19 = 1; + a7 = 0; + a5 = 5; + a18 = 0; + a1 = 14; + a27 = 0; + a9 = 10; + return 26; + } else if(((((a9==11)&&(((a17==2)&&(!(a13==1)||(a28==1)))&&!(a26==1)))||(a26==1))&&((a16==9)&&((a11==1)&&((((a5==5)&&((a12==1)&&((a20==1)&&(((a19==4)&&(input==1))&&(a21==12)))))&&(a1==12))&&(a11==1)))))){ + a5 = 4; + a7 = 0; + a16 = 7; + a24 = 0; + a12 = 1; + a9 = 7; + a19 = 1; + a21 = 10; + return -1; + } else if((((((((a17==2)&&(!(a27==1)&&((((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5)))&&(input==4))&&(a16==11))))&&!(a14==1))&&(a21==11))&&(a2==1))&&(a2==1))&&(((a20==1)&&((((a2==1)&&(a11==1))&&(a19==3))&&(a1==13)))||(a7==1)))){ + a21 = 10; + a23 = 1; + a1 = 14; + a16 = 10; + a19 = 1; + a6 = 1; + a5 = 5; + a9 = 11; + a12 = 1; + return 22; + } else if((((a11==1)&&((a2==1)&&(!(a8==1)&&(((a1==14)&&((a21==11)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6)))))&&!(a26==1)))))&&((((a9==8)&&(((((a16==10)&&(a2==1))||!(a13==1))&&(a11==1))&&(a19==3)))&&!(a20==1))&&(a17==2)))){ + a28 = 0; + a11 = 0; + a5 = 6; + a21 = 10; + a20 = 1; + a19 = 1; + a16 = 7; + return -1; + } else if(((((a1==13)&&((a16==7)&&((((a20==1)&&((a11==1)&&!(a4==1)))||!(a12==1))&&(a17==2))))&&(a19==4))&&((((a9==7)&&((a28==1)&&(!(a4==1)&&(!(a4==1)&&(((a5==5)||(a5==6))&&(input==4))))))&&(a11==1))&&(a21==12)))){ + a19 = 2; + a8 = 0; + a11 = 1; + a16 = 9; + a3 = 1; + a5 = 4; + a21 = 11; + return 21; + } else if((((a2==1)&&((a20==1)&&(((a21==10)&&((a9==9)&&((!(a12==1)||(a12==1))&&(a17==2))))&&(a19==5))))&&(!(a18==1)&&(((a1==13)&&(((a16==8)&&((((a5==4)||(a5==5))&&(input==3))&&!(a4==1)))&&!(a26==1)))&&!(a8==1))))){ + a1 = 12; + a5 = 5; + a4 = 0; + a12 = 1; + a2 = 1; + return -1; + } else if((((((((input==5)&&((a5==4)||(a5==5)))&&(a16==11))&&!(a24==1))&&!(a26==1))&&(a1==14))&&(((a9==8)&&((a20==1)&&((!(a26==1)&&((((a17==2)&&((a21==12)&&(a28==1)))||!(a11==1))&&!(a8==1)))||(a24==1))))&&(a19==5)))){ + a5 = 4; + a16 = 9; + a1 = 12; + a19 = 3; + a9 = 10; + a7 = 0; + a3 = 1; + a13 = 1; + return 21; + } else if((((((((a7==1)&&(!(a12==1)&&(a23==1)))&&(a7==1))&&(a20==1))&&(a17==2))&&(a7==1))&&(!(a11==1)&&(!(a3==1)&&((a1==14)&&((a19==4)&&(((a16==10)&&((((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9))))&&(input==1)))&&(a21==11)))))))){ + a5 = 5; + a9 = 8; + a0 = 1; + a1 = 12; + a19 = 2; + a25 = 0; + a21 = 10; + a16 = 7; + return 22; + } else if(((((a16==8)&&((((!(a2==1)||(a28==1))&&(a17==2))||!(a2==1))&&(a20==1)))&&(a1==13))&&((a12==1)&&((a21==10)&&((((!(a18==1)&&(((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11)))&&(input==5)))&&!(a8==1))&&(a19==4))&&(a6==1)))))){ + a16 = 7; + a9 = 7; + a19 = 1; + a5 = 4; + a8 = 0; + a26 = 0; + a1 = 12; + a2 = 1; + return -1; + } else if((((a1==12)&&((((!(a20==1)&&((a21==11)&&(((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))&&(input==6))&&(a28==1))))&&(a17==2))&&(a11==1))&&(a19==2)))&&((a11==1)&&(((a23==1)&&(((a24==1)||(a28==1))&&(a16==7)))||!(a12==1))))){ + a1 = 13; + a16 = 9; + a5 = 6; + a6 = 1; + a21 = 12; + a20 = 1; + a19 = 1; + a26 = 0; + a9 = 11; + return 21; + } else if(((((a1==14)&&((((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4)))&&(input==6))&&(a17==2)))&&(a28==1))&&((a21==12)&&(!(a8==1)&&((((a26==1)||((((a19==4)&&((a20==1)&&(a6==1)))||(a26==1))&&(a16==7)))||(a7==1))&&(a23==1)))))){ + a12 = 1; + a21 = 10; + a24 = 0; + a9 = 7; + a0 = 0; + a1 = 12; + a5 = 4; + a19 = 1; + return -1; + } else if(((!(a28==1)||((((a19==4)&&(((a21==11)&&((a16==11)&&((a28==1)&&(a17==2))))&&(a20==1)))&&(a1==14))&&!(a8==1)))&&(((((((input==1)&&((a5==4)||(a5==5)))&&(a23==1))&&(a9==11))&&!(a7==1))&&!(a14==1))&&(a2==1)))){ + a26 = 0; + a14 = 0; + a21 = 10; + a2 = 1; + a5 = 4; + return 21; + } else if((((a19==5)&&((a17==2)&&((a28==1)&&(!(a26==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&(a16==8))))))&&((a1==12)&&(!(a20==1)&&((a8==1)||(((a8==1)||((a3==1)&&((a26==1)||((a6==1)&&(a21==11)))))&&(a9==7))))))){ + a9 = 8; + a7 = 0; + a1 = 13; + a16 = 9; + a5 = 6; + a23 = 1; + a19 = 1; + a27 = 0; + a20 = 1; + a21 = 10; + return -1; + } else if(((((a3==1)&&(((a6==1)&&(((((a16==8)&&((input==4)&&(a19==3)))&&(a17==2))&&!(a8==1))&&(a1==12)))&&!(a20==1)))&&(a5==5))&&((a9==8)&&(((a2==1)&&(((a23==1)&&(a21==12))||!(a23==1)))||(a8==1))))){ + if((a27==1)){ + a20 = 1; + a19 = 1; + a9 = 10; + a7 = 1; + a15 = 0; + a16 = 7; + a14 = 1; + a5 = 6; + a21 = 10; + }else{ + a9 = 9; + a0 = 1; + a20 = 1; + a8 = 1; + a21 = 10; + a10 = 1; + a19 = 2; + a16 = 7; + } + return 21; + } else if(((((a13==1)&&(!(a28==1)||(((((a20==1)&&(a12==1))&&(a1==12))&&(a19==3))&&(a9==7))))&&(a2==1))&&(((a16==9)&&(!(a14==1)&&((a21==10)&&(((a17==2)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a18==1)))))&&!(a27==1)))){ + if((a12==1)){ + a5 = 4; + a6 = 1; + a27 = 0; + a9 = 10; + a16 = 7; + a20 = 0; + a1 = 14; + a23 = 1; + a19 = 5; + }else{ + a13 = 1; + a5 = 5; + a19 = 4; + a1 = 14; + a21 = 12; + a16 = 8; + a0 = 0; + a27 = 0; + a9 = 8; + } + return -1; + } else if(((((a16==8)&&((a17==2)&&(a23==1)))&&(a19==2))&&(((a1==13)&&((a28==1)&&((!(a27==1)&&(((a13==1)&&(((a6==1)&&((input==4)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))))&&(a21==12)))&&!(a26==1)))&&(a2==1))))&&!(a20==1)))){ + if((a17==2)){ + a1 = 12; + a16 = 7; + a21 = 10; + a27 = 1; + a20 = 1; + a5 = 5; + a14 = 1; + a9 = 10; + a13 = 0; + }else{ + a10 = 1; + a21 = 10; + a3 = 0; + a9 = 8; + a5 = 5; + a20 = 1; + a19 = 1; + a16 = 7; + a2 = 0; + } + return 25; + } else if(((((a17==2)&&(((a23==1)&&(((a2==1)&&(a6==1))||(a14==1)))&&(a11==1)))&&(a1==12))&&(((a16==7)&&(!(a24==1)&&(((a21==11)&&(!(a27==1)&&((input==5)&&(((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))))))&&(a19==3))))&&(a20==1)))){ + a6 = 1; + a23 = 1; + a9 = 7; + a12 = 1; + a5 = 4; + a19 = 1; + a21 = 10; + return -1; + } else if((((((!(a26==1)&&((a19==3)&&((a16==10)&&((a0==1)||(a6==1)))))&&(a13==1))&&(a9==7))&&(a28==1))&&((a17==2)&&(((a23==1)&&((a21==10)&&((a5==4)&&(((a1==14)&&(input==5))&&(a28==1)))))&&(a20==1))))){ + a5 = 5; + a28 = 1; + a16 = 7; + a6 = 1; + a19 = 2; + a11 = 1; + return -1; + } else if((((a17==2)&&(((((a26==1)||(a23==1))||!(a13==1))&&(a19==3))&&(a1==14)))&&((((a6==1)&&((a20==1)&&(((((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==6))&&(a12==1))&&!(a18==1))&&(a11==1))))&&(a21==11))&&(a16==7)))){ + a26 = 0; + a5 = 4; + a19 = 2; + a9 = 10; + a13 = 1; + a1 = 13; + a16 = 8; + return 26; + } else if(((((a16==9)&&(((a2==1)&&((a19==4)&&((a21==10)&&((((input==4)&&((a5==5)||(a5==6)))&&(a3==1))&&!(a26==1)))))&&!(a7==1)))&&(a17==2))&&((a9==11)&&((((a18==1)||((a1==14)&&(a6==1)))&&!(a20==1))&&!(a18==1))))){ + a29 = 1; + a22 = 1; + a4 = 1; + a19 = 1; + a16 = 7; + a5 = 5; + a1 = 12; + a20 = 1; + return -1; + } else if((((a20==1)&&((!(a0==1)&&(((a21==12)&&((((input==4)&&(((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))))&&(a16==11))&&!(a27==1)))&&!(a18==1)))&&(a19==5)))&&((((a17==2)&&(((a1==12)&&(a13==1))||!(a11==1)))&&(a6==1))||!(a3==1)))){ + a5 = 4; + a16 = 7; + a12 = 1; + a24 = 0; + a19 = 1; + a21 = 10; + a9 = 7; + return -1; + } else if(((((a13==1)&&(((a14==1)||(a23==1))&&!(a0==1)))||(a14==1))&&(((a16==7)&&((((!(a27==1)&&((a19==3)&&(((input==1)&&(((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))))&&!(a20==1))))&&(a13==1))&&(a17==2))&&(a1==12)))&&(a21==12)))){ + a9 = 7; + a3 = 1; + a5 = 4; + a6 = 1; + a18 = 0; + a21 = 10; + a19 = 1; + a20 = 1; + return -1; + } else if((((a9==10)&&((a21==10)&&((a19==3)&&((!(a2==1)||((((a16==9)&&((a5==4)&&(!(a18==1)&&(a3==1))))&&(a13==1))||!(a11==1)))&&(a13==1)))))&&((a17==2)&&(((a20==1)&&((a1==13)&&(input==5)))&&(a13==1))))){ + a9 = 7; + a16 = 7; + a19 = 1; + a23 = 1; + a1 = 12; + a18 = 0; + a2 = 1; + return -1; + } else if((((a4==1)||((!(a2==1)||((a16==9)&&(!(a20==1)&&(a12==1))))||!(a6==1)))&&((a12==1)&&((a17==2)&&((a19==5)&&((!(a24==1)&&((a1==13)&&((a21==10)&&((input==6)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))))))&&!(a7==1))))))){ + a9 = 8; + a10 = 1; + a13 = 0; + a20 = 1; + a19 = 1; + a1 = 14; + a16 = 7; + a22 = 1; + a5 = 4; + return 21; + } else if((((a9==7)&&(((!(a14==1)&&((a3==1)&&(!(a7==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a2==1)))))&&(a21==10))&&(a1==14)))&&(((a19==4)&&((!(a20==1)&&(((a11==1)&&(a16==8))||(a7==1)))&&(a17==2)))&&(a2==1)))){ + a18 = 0; + a5 = 5; + a19 = 2; + a20 = 1; + a21 = 12; + a6 = 1; + a9 = 11; + a16 = 11; + return 25; + } else if(((((a6==1)&&((!(a14==1)&&(((a19==3)&&((input==1)&&((a5==4)||(a5==5))))&&!(a20==1)))&&!(a27==1)))&&(a12==1))&&(((a17==2)&&((((a9==7)&&(((a23==1)&&(a1==12))||!(a2==1)))&&(a16==8))&&!(a8==1)))&&(a21==10)))){ + a4 = 0; + a5 = 5; + a20 = 1; + a16 = 7; + a1 = 13; + a12 = 1; + a9 = 9; + a19 = 2; + a27 = 0; + return 25; + } else if((((a17==2)&&((a19==3)&&(((a21==12)&&(((a26==1)||((a11==1)||!(a28==1)))&&!(a4==1)))||(a24==1))))&&(((a1==12)&&((a9==9)&&((((a23==1)&&((input==4)&&((a5==5)||(a5==6))))&&(a6==1))&&(a20==1))))&&(a16==7)))){ + a24 = 0; + a19 = 1; + a21 = 10; + a26 = 0; + a8 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if(((((a21==12)&&((a23==1)&&((a2==1)&&(!(a24==1)&&((a17==2)&&(!(a26==1)&&((a19==2)&&((a5==4)&&(input==1)))))))))&&(a1==14))&&((a13==1)&&((a9==9)&&((a16==9)&&((a20==1)&&((a11==1)||(a0==1)))))))){ + if((a4==1)){ + a16 = 7; + a8 = 0; + a5 = 5; + a20 = 0; + a18 = 0; + }else{ + a19 = 3; + a21 = 10; + a28 = 1; + a23 = 1; + a5 = 5; + a16 = 7; + a1 = 13; + a2 = 1; + } + return 22; + } else if(((((a21==12)&&((a16==9)&&((((a17==2)&&((((input==4)&&((a5==4)||(a5==5)))&&(a2==1))&&(a13==1)))&&!(a7==1))&&!(a20==1))))&&(a9==11))&&(!(a2==1)||(!(a11==1)||((((a2==1)&&(a11==1))&&(a19==1))&&(a1==12)))))){ + a19 = 5; + a5 = 5; + a21 = 11; + a6 = 0; + a20 = 1; + a27 = 1; + a1 = 14; + a7 = 1; + return 25; + } else if((((a3==1)&&(!(a20==1)&&((((a2==1)&&((a17==2)&&(!(a4==1)&&((((a5==4)||(a5==5))&&(input==6))&&(a23==1)))))&&(a19==5))&&(a16==9))))&&(((((a1==14)&&((a2==1)||!(a11==1)))&&(a21==10))||!(a12==1))&&(a9==7)))){ + a9 = 9; + a5 = 6; + a8 = 1; + a20 = 1; + a13 = 0; + a15 = 0; + a19 = 1; + a16 = 7; + return 21; + } else if((((a9==8)&&((a11==1)&&(((a12==1)||!(a2==1))&&(a12==1))))&&(((a21==10)&&((a16==8)&&((((!(a24==1)&&((((a17==2)&&(input==3))&&(a19==5))&&!(a27==1)))&&!(a8==1))&&(a1==13))&&(a5==5))))&&!(a20==1)))){ + a19 = 1; + a5 = 4; + a1 = 12; + a27 = 0; + a16 = 7; + a8 = 0; + a9 = 7; + a20 = 1; + a11 = 1; + return -1; + } else if(((((a12==1)&&((a17==2)&&(((((a16==10)&&(input==6))&&(a1==14))&&(a3==1))&&(a11==1))))&&(a9==7))&&((a8==1)||((((a19==4)&&((((a5==4)&&(a12==1))||!(a12==1))&&(a21==12)))&&!(a20==1))&&(a6==1))))){ + if((a12==1)){ + a20 = 1; + a2 = 0; + a16 = 7; + a19 = 2; + a1 = 12; + a3 = 0; + a10 = 0; + a9 = 11; + a21 = 10; + }else{ + a24 = 1; + a3 = 0; + a27 = 1; + a1 = 12; + a20 = 1; + a9 = 11; + a21 = 10; + } + return 26; + } else if((((a9==9)&&((a1==14)&&((!(a8==1)&&(!(a12==1)||(a3==1)))&&(a16==11))))&&((((a21==10)&&(((((a3==1)&&((a28==1)&&(!(a20==1)&&(input==6))))&&(a23==1))&&!(a8==1))&&(a17==2)))&&(a5==4))&&(a19==1)))){ + a6 = 0; + a5 = 5; + a25 = 1; + a20 = 1; + a2 = 0; + a19 = 4; + a21 = 12; + a9 = 7; + a16 = 9; + return 21; + } else if((((a13==1)&&((((a9==10)&&((a23==1)&&(a19==2)))&&(a5==4))&&(a21==11)))&&((a17==2)&&((a1==12)&&(((((a13==1)&&((!(a8==1)&&((input==5)&&!(a20==1)))&&(a16==8)))&&!(a8==1))&&(a12==1))&&(a13==1)))))){ + a20 = 1; + a13 = 1; + a16 = 10; + a14 = 0; + a3 = 1; + a21 = 10; + a1 = 14; + a9 = 9; + return 21; + } else if(((((a16==11)&&((a20==1)&&(((((((a5==4)||(a5==5))&&(input==6))&&(a17==2))&&(a21==10))&&(a6==1))&&(a23==1))))&&(a9==7))&&((((((!(a11==1)||(a6==1))&&(a1==14))&&(a19==5))||!(a12==1))||(a7==1))&&!(a0==1)))){ + a1 = 12; + a23 = 1; + a16 = 7; + a19 = 1; + a18 = 0; + a14 = 0; + a5 = 4; + return -1; + } else if(((((((!(a28==1)||((a6==1)||(a24==1)))&&(a19==3))&&(a21==10))&&(a1==12))&&!(a8==1))&&((a9==9)&&(!(a0==1)&&(((a17==2)&&(((!(a18==1)&&((input==4)&&(a16==9)))&&(a5==5))&&(a12==1)))&&!(a20==1)))))){ + a19 = 2; + a15 = 0; + a20 = 1; + a16 = 7; + a5 = 4; + a12 = 0; + a26 = 1; + return 21; + } else if(((((a16==11)&&((a4==1)||((a23==1)&&((a24==1)||((a8==1)||(!(a6==1)||((a21==12)&&(a11==1))))))))&&(a19==4))&&(((!(a27==1)&&((a20==1)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==1))))&&(a1==13))&&(a17==2)))){ + a23 = 1; + a11 = 1; + a9 = 7; + a8 = 0; + a19 = 5; + a5 = 5; + a1 = 14; + a21 = 11; + return 21; + } else if((((((a21==10)&&((a12==1)&&((((((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a9==7))&&(a16==10))&&(a11==1))&&(a13==1))))&&(a19==5))&&(a20==1))&&(((a3==1)&&((((a11==1)&&!(a8==1))||!(a23==1))&&(a1==12)))&&(a17==2)))){ + a27 = 0; + a16 = 9; + a19 = 1; + a24 = 0; + a23 = 1; + a9 = 8; + a5 = 6; + a1 = 13; + return -1; + } else if(((((a7==1)||(!(a18==1)&&((a20==1)&&(!(a7==1)&&(((a9==7)&&((a1==14)&&((a5==5)&&(a3==1))))&&(a19==4))))))&&(a23==1))&&(((a12==1)&&((a28==1)&&(((a16==7)&&(input==6))&&(a17==2))))&&(a21==12)))){ + a12 = 1; + a21 = 10; + a5 = 4; + a1 = 12; + a19 = 1; + a14 = 0; + a27 = 0; + return -1; + } else if((((a6==1)&&(!(a11==1)||((a21==12)&&((((!(a6==1)||((a28==1)||(a14==1)))&&(a17==2))&&(a1==12))||!(a28==1)))))&&(((((((input==6)&&(a16==10))&&(a5==6))&&(a20==1))&&(a9==7))&&(a19==1))&&(a11==1)))){ + a16 = 9; + a21 = 11; + a19 = 4; + a27 = 0; + a2 = 1; + a14 = 0; + return 21; + } else if((((a16==7)&&((!(a11==1)&&((a5==5)&&((!(a23==1)&&(!(a13==1)&&((a6==1)&&(a1==14))))&&!(a13==1))))&&(a19==5)))&&(((((((a9==7)&&(input==4))&&(a20==1))&&(a17==2))&&(a21==11))&&!(a2==1))&&(a14==1)))){ + a11 = 0; + a16 = 9; + a5 = 4; + a7 = 1; + a25 = 0; + a19 = 4; + a1 = 12; + return -1; + } else if(((!(a20==1)&&(((((a12==1)&&(a5==4))&&(a28==1))&&!(a14==1))&&(a21==11)))&&((!(a0==1)&&((a9==10)&&(((((a17==2)&&((a28==1)&&((input==5)&&(a16==7))))&&(a1==14))&&(a19==3))&&!(a0==1))))&&(a28==1)))){ + if((a18==1)){ + a19 = 5; + a12 = 1; + a27 = 0; + a5 = 5; + a21 = 10; + a2 = 1; + a1 = 13; + a9 = 8; + a16 = 8; + }else{ + a0 = 0; + a19 = 5; + a27 = 0; + a7 = 0; + a21 = 12; + a16 = 8; + a20 = 1; + } + return 22; + } else if((((!(a26==1)&&(((((a17==2)&&((input==5)&&((a5==5)||(a5==6))))&&!(a4==1))&&(a21==12))&&!(a7==1)))&&!(a18==1))&&(((((a9==10)&&((a19==5)&&((a16==7)&&((a20==1)&&(a6==1)))))&&(a1==13))&&(a13==1))||(a4==1)))){ + a26 = 0; + a16 = 9; + a2 = 1; + a21 = 11; + a9 = 8; + a8 = 0; + a5 = 5; + a1 = 14; + return 22; + } else if((((a16==11)&&((a17==2)&&((!(a7==1)&&((a2==1)&&((((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(input==1))))&&(a19==4))))&&((a11==1)&&((a20==1)&&((((a21==11)&&(((a24==1)||(a12==1))&&(a1==13)))||!(a11==1))&&!(a7==1)))))){ + a14 = 0; + a16 = 7; + a9 = 7; + a1 = 12; + a19 = 1; + a26 = 0; + a5 = 4; + a21 = 10; + a23 = 1; + return -1; + } else if((((!(a20==1)&&(((a17==2)&&((((a11==1)||!(a3==1))&&!(a0==1))&&!(a24==1)))&&(a9==7)))&&(a16==7))&&((a19==4)&&((a12==1)&&((a21==10)&&(((a1==12)&&((((a5==5)||(a5==6))&&(input==6))&&(a23==1)))&&!(a26==1))))))){ + a13 = 1; + a19 = 1; + a23 = 1; + a20 = 1; + a5 = 4; + a2 = 1; + return -1; + } else if((((a19==5)&&(!(a7==1)&&(((a20==1)&&(a12==1))||(a14==1))))&&(((a21==10)&&((a6==1)&&(((a1==12)&&((a16==11)&&(!(a4==1)&&((a9==7)&&(!(a14==1)&&(((a5==5)||(a5==6))&&(input==6)))))))&&(a13==1))))&&(a17==2)))){ + a19 = 4; + a6 = 1; + a4 = 0; + a1 = 14; + a5 = 4; + a21 = 11; + a3 = 1; + return 23; + } else if((((!(a24==1)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==4)))&&(a17==2))&&((a1==14)&&((a7==1)||(!(a4==1)&&(!(a26==1)&&((a23==1)&&(((a20==1)&&((a16==9)&&(((a11==1)&&(a21==11))&&(a19==3))))&&(a13==1))))))))){ + a16 = 7; + a8 = 0; + a9 = 7; + a2 = 1; + a18 = 0; + a5 = 4; + a1 = 12; + a19 = 1; + a21 = 10; + return -1; + } else if(((((a18==1)||(!(a12==1)||(!(a2==1)||((a21==12)&&(a11==1)))))&&(a1==14))&&((((a16==7)&&((((a17==2)&&((a11==1)&&(!(a4==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==1)))))&&!(a24==1))&&!(a20==1)))&&(a19==2))&&(a9==9)))){ + a20 = 1; + a8 = 0; + a27 = 0; + a21 = 11; + a19 = 1; + a9 = 8; + a5 = 6; + return 26; + } else if((((a5==5)&&((a0==1)||(((a18==1)||(((((a18==1)||(a13==1))&&(a17==2))&&(a19==4))&&(a1==12)))&&(a20==1))))&&((!(a26==1)&&((((a21==10)&&((input==3)&&(a16==10)))&&!(a18==1))&&!(a14==1)))&&(a9==10)))){ + a16 = 7; + a14 = 0; + a26 = 0; + a19 = 1; + a24 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if((((((a17==2)&&((((a23==1)||!(a3==1))&&(a1==14))&&(a16==10)))||(a4==1))||(a24==1))&&(!(a18==1)&&((((a9==11)&&(((a20==1)&&((a21==12)&&((input==3)&&((a5==6)||((a5==4)||(a5==5))))))&&(a19==5)))&&(a23==1))&&(a23==1))))){ + a28 = 1; + a1 = 13; + a21 = 10; + a3 = 1; + a16 = 7; + a5 = 6; + a12 = 1; + a9 = 7; + a19 = 2; + return 22; + } else if(((((a21==11)&&((a6==1)&&((a13==1)&&!(a26==1))))&&(a16==7))&&((!(a0==1)&&((a17==2)&&(((a11==1)&&(((a1==13)&&(!(a18==1)&&((input==6)&&(((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))))))&&(a19==5)))&&!(a8==1))))&&!(a20==1)))){ + if((a22==1)){ + a28 = 1; + a9 = 8; + a3 = 1; + a1 = 12; + a5 = 4; + a2 = 1; + a16 = 8; + }else{ + a8 = 0; + a5 = 5; + a19 = 2; + a9 = 7; + a16 = 11; + a20 = 1; + a6 = 1; + a4 = 0; + } + return 21; + } else if(((((((a9==9)&&(((a1==13)&&((a17==2)&&(!(a24==1)&&((a16==10)&&(!(a7==1)&&((a20==1)&&(input==3)))))))&&!(a18==1)))&&(a5==6))&&(a21==10))&&(a19==3))&&(!(a6==1)||((a12==1)&&(!(a11==1)||(a12==1)))))){ + a11 = 1; + a2 = 1; + a19 = 1; + a5 = 4; + a9 = 7; + a13 = 1; + a1 = 12; + a16 = 7; + return -1; + } else if(((!(a4==1)&&(!(a8==1)&&((((a17==2)&&(((a19==4)&&(((((a9==8)&&(a5==5))||((a5==6)&&(a9==8)))||((a5==4)&&(a9==9)))&&(input==3)))&&(a21==10)))&&!(a8==1))&&!(a27==1))))&&((a16==9)&&(!(a20==1)&&((a1==13)&&(((a11==1)||!(a28==1))&&!(a0==1))))))){ + a12 = 0; + a1 = 12; + a20 = 1; + a5 = 5; + a9 = 8; + a19 = 1; + a16 = 7; + a18 = 1; + a27 = 1; + return -1; + } else if(((!(a28==1)||((((a1==14)&&(((a28==1)&&(a17==2))&&(a21==12)))&&(a19==5))||!(a13==1)))&&((((a3==1)&&((a12==1)&&((a9==8)&&((!(a20==1)&&(((a5==4)||(a5==5))&&(input==5)))&&(a16==7)))))&&(a11==1))&&!(a26==1)))){ + a9 = 7; + a11 = 1; + a0 = 0; + a13 = 1; + a19 = 1; + a20 = 1; + a5 = 4; + a21 = 10; + a1 = 12; + return -1; + } else if((((((!(a20==1)&&((a28==1)&&((input==5)&&(a21==12))))&&(a16==10))&&(a19==4))&&(a5==6))&&((a1==14)&&((!(a3==1)||(!(a8==1)&&((!(a13==1)||((a17==2)&&(!(a7==1)&&(a6==1))))||!(a13==1))))&&(a9==11))))){ + a9 = 8; + a19 = 5; + a8 = 1; + a1 = 13; + a16 = 9; + a21 = 11; + a15 = 0; + return -1; + } else if((((((a16==9)&&((a26==1)&&(((a19==2)&&(input==4))&&!(a6==1))))&&(a27==1))&&(a20==1))&&((a17==2)&&((!(a2==1)&&((a1==13)&&((a5==5)&&((!(a11==1)&&(!(a6==1)&&(a3==1)))&&(a9==10)))))&&(a21==10))))){ + a16 = 7; + a1 = 14; + a19 = 1; + a15 = 1; + a9 = 11; + a14 = 1; + a23 = 0; + return -1; + } else if((((!(a23==1)||(!(a23==1)||((a16==7)&&(a6==1))))&&!(a20==1))&&(((a6==1)&&((((a17==2)&&((((input==4)&&((((a9==11)&&((a5==5)&&(a1==13)))||((a9==11)&&((a5==6)&&(a1==13))))||(((a5==4)&&(a1==14))&&(a9==7))))&&(a21==12))&&(a19==3)))&&(a13==1))&&!(a8==1)))&&!(a0==1)))){ + a5 = 4; + a20 = 1; + a1 = 12; + a9 = 7; + a18 = 0; + a7 = 0; + a14 = 0; + a21 = 10; + a19 = 1; + return -1; + } else if((((a4==1)||((a16==11)&&(((a11==1)&&((a24==1)||(((a6==1)&&(a6==1))&&(a20==1))))&&(a13==1))))&&(((((a17==2)&&((input==6)&&((((a9==11)&&((a1==13)&&(a5==5)))||((a9==11)&&((a5==6)&&(a1==13))))||((a9==7)&&((a1==14)&&(a5==4))))))&&(a21==10))&&!(a24==1))&&(a19==3)))){ + a0 = 0; + a11 = 1; + a1 = 12; + a5 = 4; + a23 = 1; + a19 = 1; + a9 = 7; + a16 = 7; + return -1; + } else if((((a16==9)&&((a6==1)&&(!(a18==1)&&((((a13==1)&&((a9==9)&&((a23==1)&&((input==1)&&(a19==3)))))&&(a28==1))&&(a21==12)))))&&(((a5==4)&&((((a17==2)&&(a28==1))&&!(a20==1))||!(a12==1)))&&(a1==12)))){ + a16 = 7; + a20 = 1; + a9 = 11; + a25 = 0; + a10 = 0; + a1 = 14; + a19 = 1; + a21 = 10; + a5 = 5; + a7 = 1; + return 25; + } else if((((a5==6)&&(!(a18==1)&&((a21==10)&&(!(a23==1)||((a1==14)&&(((a23==1)&&(a17==2))&&(a9==10)))))))&&(((((!(a18==1)&&(((a19==2)&&(input==4))&&(a12==1)))&&(a16==8))&&!(a14==1))&&!(a7==1))&&!(a20==1)))){ + a2 = 1; + a28 = 1; + a19 = 3; + a16 = 7; + a5 = 4; + a20 = 1; + a21 = 11; + a23 = 1; + a9 = 7; + return 23; + } else if((((!(a27==1)&&((((a1==13)&&(((a23==1)&&((a17==2)&&((a19==2)&&(input==4))))&&(a5==5)))&&!(a0==1))&&!(a8==1)))&&(a16==7))&&((((a21==12)&&(!(a13==1)||((a12==1)&&(a13==1))))&&(a9==11))&&(a20==1)))){ + a11 = 1; + a9 = 7; + a19 = 1; + a5 = 4; + a28 = 1; + a21 = 10; + a6 = 1; + a1 = 12; + return -1; + } else if((((a21==12)&&((a1==14)&&(!(a11==1)||((a19==2)&&(((a23==1)&&(a16==10))&&!(a20==1))))))&&(!(a7==1)&&(!(a14==1)&&(((a17==2)&&(((((input==6)&&((a5==4)||(a5==5)))&&(a12==1))&&!(a14==1))&&(a6==1)))&&(a9==10)))))){ + a28 = 0; + a14 = 1; + a16 = 7; + a21 = 10; + a23 = 0; + a5 = 5; + a20 = 1; + a1 = 12; + return 22; + } else if(((!(a18==1)&&((((a1==12)&&(!(a24==1)&&(((a16==10)&&((((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))&&(input==1)))&&!(a20==1))))&&(a6==1))&&(a11==1)))&&(((a19==2)&&(((a17==2)&&((a21==10)&&(a28==1)))||!(a6==1)))&&(a3==1)))){ + a28 = 0; + a5 = 6; + a15 = 1; + a22 = 1; + a9 = 7; + a20 = 1; + a16 = 9; + return -1; + } else if((((a17==2)&&(((a16==10)&&(((((a13==1)&&(((a5==4)||(a5==5))&&(input==4)))&&!(a7==1))&&(a12==1))&&(a3==1)))&&(a9==11)))&&((((a19==4)&&((a1==14)&&((a3==1)&&((a21==11)&&(a3==1)))))&&!(a20==1))&&!(a18==1)))){ + if((a5==4)){ + a4 = 1; + a9 = 9; + a19 = 2; + a16 = 7; + a1 = 12; + a7 = 1; + a27 = 1; + a5 = 6; + a20 = 1; + a21 = 10; + }else{ + a28 = 0; + a21 = 10; + a16 = 7; + a23 = 0; + a19 = 1; + a20 = 1; + a1 = 12; + a3 = 0; + a5 = 6; + } + return -1; + } else if((((((a23==1)&&(a20==1))||!(a6==1))||(a8==1))&&((a16==9)&&((((a21==10)&&((!(a4==1)&&(!(a27==1)&&(((a17==2)&&(((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11)))&&(input==4)))&&(a19==5))))&&(a13==1)))&&(a1==12))&&!(a8==1))))){ + a9 = 8; + a5 = 6; + a2 = 1; + a6 = 1; + a21 = 11; + a3 = 1; + a19 = 1; + a1 = 13; + a16 = 8; + return -1; + } else if((((((a19==5)&&((a13==1)&&(a20==1)))||(a24==1))&&(a9==10))&&((a28==1)&&((a12==1)&&((!(a27==1)&&((((((a17==2)&&((input==6)&&(a5==4)))&&(a21==12))&&(a1==12))&&!(a0==1))&&(a23==1)))&&(a16==7)))))){ + a9 = 9; + a21 = 11; + a5 = 6; + a4 = 0; + a19 = 4; + a26 = 0; + a16 = 9; + a7 = 0; + return 23; + } else if(((((a1==12)&&((a13==1)&&(((a18==1)||((a5==4)&&(a2==1)))&&(a9==7))))||!(a12==1))&&((((((((a6==1)&&((a19==4)&&(input==1)))&&!(a20==1))&&(a17==2))&&(a28==1))&&(a21==11))&&!(a7==1))&&(a16==7)))){ + a3 = 1; + a14 = 0; + a19 = 1; + a21 = 10; + a8 = 0; + a20 = 1; + return -1; + } else if(((((a20==1)&&(!(a8==1)&&(((a17==2)&&((a28==1)&&(((((((a16==8)&&(((a5==5)&&(a1==14))&&(a9==11)))&&(a19==5))&&(a21==12))||((((a16==8)&&(((a1==14)&&(a5==6))&&(a9==11)))&&(a19==5))&&(a21==12)))||((a21==10)&&((a19==1)&&((((a1==12)&&(a5==4))&&(a9==7))&&(a16==9)))))&&(input==4))))&&(a12==1))))&&!(a0==1))&&(((a6==1)&&!(a26==1))&&(a12==1)))){ + a0 = 0; + a3 = 1; + a21 = 10; + a1 = 12; + a19 = 1; + a28 = 1; + a9 = 7; + a16 = 7; + a5 = 4; + return -1; + } else if((((a23==1)&&(((a28==1)&&((!(a12==1)||(((a2==1)&&(a16==8))&&(a17==2)))||!(a6==1)))&&!(a8==1)))&&(((a21==12)&&(((a11==1)&&(!(a20==1)&&((input==1)&&((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4))))))&&(a1==12)))&&(a19==2)))){ + a19 = 1; + a21 = 10; + a1 = 14; + a25 = 0; + a24 = 1; + a3 = 0; + a20 = 1; + a5 = 5; + a9 = 9; + a16 = 7; + return -1; + } else if((((a1==13)&&((a19==5)&&(!(a26==1)&&((a17==2)&&(((a21==11)&&(((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a4==1)))&&(a16==7))))))&&((a20==1)&&((((((a2==1)||(a26==1))||!(a23==1))||(a7==1))||!(a13==1))&&(a9==7))))){ + a21 = 10; + a5 = 4; + a4 = 0; + a19 = 1; + a6 = 1; + a1 = 12; + a11 = 1; + return -1; + } else if((((a16==7)&&((a24==1)||((a21==10)&&((a1==12)&&((a12==1)&&!(a7==1))))))&&((!(a7==1)&&(((!(a14==1)&&(((a5==5)&&((a20==1)&&((input==3)&&(a19==4))))&&(a9==8)))&&!(a0==1))&&(a12==1)))&&(a17==2)))){ + a9 = 7; + a3 = 1; + a5 = 4; + a19 = 1; + a4 = 0; + a26 = 0; + return -1; + } else if((((!(a4==1)&&(((a3==1)&&(a28==1))&&(a17==2)))&&(a23==1))&&((((a19==4)&&((((!(a27==1)&&(((input==1)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(a21==12)))&&(a1==13))&&(a16==8))&&(a11==1)))&&(a20==1))&&(a6==1)))){ + a26 = 0; + a5 = 6; + a28 = 1; + a2 = 1; + a16 = 10; + a1 = 12; + a9 = 8; + return 23; + } else if((((((((a19==2)&&((a0==1)||((a9==9)&&((a5==5)&&((a2==1)&&(a17==2))))))&&!(a8==1))&&(a1==13))&&!(a27==1))||!(a11==1))&&((a16==9)&&(((((input==3)&&(a21==12))&&!(a0==1))&&(a11==1))&&(a20==1))))){ + a5 = 4; + a3 = 1; + a21 = 10; + a1 = 14; + a14 = 0; + a19 = 5; + a16 = 8; + a28 = 1; + return -1; + } else if(((((a16==7)&&((a1==13)&&(!(a23==1)||(!(a20==1)&&(a28==1)))))||(a27==1))&&(((a12==1)&&((a2==1)&&(((((((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&(a19==2))&&(a21==10))&&(a23==1))&&(a11==1))&&(a17==2))))&&(a9==10)))){ + a20 = 1; + a9 = 7; + a27 = 0; + a11 = 1; + a3 = 1; + a19 = 1; + a5 = 4; + a1 = 12; + return -1; + } else if((((a14==1)||((a24==1)||((a21==10)&&((a16==8)&&(!(a18==1)&&(((a3==1)&&(!(a20==1)&&(a2==1)))&&(a19==5)))))))&&((!(a4==1)&&((a1==14)&&((a17==2)&&((input==3)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))))))&&!(a26==1)))){ + a16 = 7; + a20 = 1; + a24 = 0; + a23 = 1; + a1 = 12; + a5 = 4; + a28 = 1; + a9 = 7; + a19 = 1; + return -1; + } else if(((((a20==1)&&((a26==1)||((a26==1)||(a11==1))))&&(a21==11))&&(((a1==13)&&(((a23==1)&&(!(a14==1)&&((a13==1)&&(!(a14==1)&&((a16==10)&&((input==3)&&(((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))))))))&&(a19==4)))&&(a17==2)))){ + a7 = 0; + a1 = 14; + a16 = 7; + a26 = 0; + a19 = 2; + a5 = 6; + a13 = 1; + a9 = 9; + a21 = 10; + return 21; + } else if((((a9==7)&&((a19==3)&&((a5==4)&&(input==5))))&&((a21==11)&&((a16==10)&&((((a7==1)||(!(a18==1)&&(!(a2==1)||(!(a18==1)&&(((a20==1)&&(!(a23==1)||(a2==1)))&&(a1==13))))))||!(a23==1))&&(a17==2)))))){ + a9 = 9; + a7 = 0; + a21 = 10; + a16 = 7; + a28 = 1; + a11 = 1; + a19 = 2; + return 25; + } else if(((((a20==1)&&(!(a11==1)||(((a7==1)||((a28==1)||(a8==1)))&&(a17==2))))&&(a16==7))&&(((a19==1)&&((!(a26==1)&&((((((a5==6)&&(a1==13))&&(a9==11))||(((a5==4)&&(a1==14))&&(a9==7)))&&(input==1))&&(a11==1)))&&(a12==1)))&&(a21==12)))){ + a19 = 5; + a23 = 1; + a1 = 13; + a14 = 0; + a5 = 5; + a9 = 10; + a16 = 8; + a7 = 0; + return 25; + } else if(((((a19==5)&&(!(a18==1)&&((!(a13==1)||(((a13==1)&&(a20==1))&&(a1==12)))&&(a16==9))))&&(a21==11))&&((a17==2)&&((((((((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(input==1))&&(a13==1))&&(a28==1))&&(a13==1))&&!(a27==1))))){ + a27 = 0; + a26 = 0; + a5 = 6; + a21 = 10; + a9 = 9; + a0 = 0; + a1 = 14; + a19 = 2; + return 21; + } else if((((a13==1)&&((!(a24==1)&&(!(a20==1)&&((a1==14)&&(((((a17==2)&&(a11==1))&&(a6==1))||(a4==1))&&(a19==4)))))||!(a6==1)))&&((((!(a27==1)&&((input==4)&&(a21==11)))&&(a16==8))&&(a5==6))&&(a9==8)))){ + a16 = 7; + a26 = 0; + a1 = 12; + a9 = 7; + a5 = 4; + a21 = 10; + a19 = 1; + a20 = 1; + return -1; + } else if(((((a28==1)&&((((((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&!(a7==1))&&(a2==1))&&(a20==1))&&(a28==1)))&&(a19==1))&&((a17==2)&&(((((a21==10)&&((a11==1)&&((a11==1)&&(a3==1))))&&(a9==8))&&(a16==9))&&(a1==12))))){ + a16 = 8; + a5 = 4; + a1 = 14; + a19 = 5; + a2 = 1; + a9 = 7; + a6 = 1; + a28 = 1; + return -1; + } else if(((((a2==1)&&(((a16==9)&&((a9==11)&&((a20==1)&&(((a19==3)&&(a12==1))||!(a2==1)))))&&(a11==1)))&&(a1==12))&&((((((a21==12)&&((input==5)&&((a5==4)||(a5==5))))&&(a3==1))&&!(a26==1))&&!(a27==1))&&(a17==2)))){ + a24 = 0; + a5 = 4; + a9 = 10; + a12 = 1; + a4 = 0; + return 21; + } else if((((a27==1)||((a5==5)&&((a17==2)&&(((a1==13)&&(a23==1))&&!(a27==1)))))&&((a21==10)&&(!(a8==1)&&((!(a24==1)&&((a9==8)&&((((a6==1)&&((a19==2)&&(input==6)))&&!(a20==1))&&(a16==11))))&&(a23==1)))))){ + a20 = 1; + a9 = 7; + a22 = 0; + a21 = 11; + a3 = 0; + a19 = 3; + return -1; + } else if((((a1==12)&&(((((((a28==1)&&((a5==5)&&((a6==1)&&((a21==12)&&(input==5)))))&&(a19==3))&&!(a7==1))&&!(a4==1))&&(a16==11))&&(a17==2)))&&(((a11==1)&&((a13==1)&&((a9==7)&&(a3==1))))&&(a20==1)))){ + a2 = 1; + a16 = 9; + a9 = 9; + a0 = 0; + a5 = 4; + a23 = 1; + return 21; + } else if((((a8==1)||((a4==1)||(((a13==1)&&(a16==9))||!(a2==1))))&&((a21==10)&&(!(a20==1)&&((a19==2)&&(((a17==2)&&(((a1==14)&&(((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==3))&&(a6==1)))&&!(a14==1)))&&!(a14==1))))))){ + a16 = 7; + a6 = 0; + a20 = 1; + a1 = 12; + a9 = 7; + a19 = 1; + a5 = 4; + a12 = 0; + return -1; + } else if(((!(a28==1)||(((a16==9)&&(((a19==4)&&(a28==1))&&!(a7==1)))&&(a1==12)))&&(!(a27==1)&&(((a20==1)&&(((a17==2)&&((a21==12)&&((a6==1)&&(((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4)))&&(input==1)))))&&(a13==1)))&&(a13==1))))){ + a19 = 1; + a9 = 7; + a5 = 4; + a11 = 1; + a21 = 10; + a16 = 7; + a14 = 0; + return -1; + } else if(((((a21==12)&&(!(a12==1)||((a1==13)&&((((a2==1)||!(a3==1))||(a26==1))&&(a17==2)))))&&!(a20==1))&&((a19==2)&&((a12==1)&&(((!(a8==1)&&(((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&(a16==9)))&&(a11==1))&&(a9==11)))))){ + a15 = 1; + a5 = 4; + a16 = 10; + a28 = 0; + a9 = 10; + a14 = 1; + a21 = 10; + a20 = 1; + a19 = 1; + return -1; + } else if((((((!(a26==1)&&(!(a27==1)&&((a19==3)&&((((a5==5)||(a5==6))&&(input==1))&&(a3==1)))))&&(a21==12))&&!(a20==1))&&(a17==2))&&((a9==8)&&(((a12==1)&&(((a0==1)||((a11==1)&&(a13==1)))&&(a16==10)))&&(a1==12))))){ + if((a2==1)){ + a5 = 4; + a9 = 7; + a29 = 1; + a19 = 1; + a28 = 0; + }else{ + a16 = 7; + a24 = 1; + a20 = 1; + a29 = 0; + a1 = 13; + a19 = 1; + a21 = 10; + a22 = 0; + a5 = 6; + a9 = 9; + } + return 25; + } else if((((a21==12)&&(!(a26==1)&&(((((a4==1)||(a13==1))&&(a1==14))&&(a9==8))&&(a13==1))))&&((a20==1)&&((a5==6)&&((a19==4)&&(!(a7==1)&&(((((input==4)&&(a16==11))&&!(a24==1))&&(a6==1))&&(a17==2)))))))){ + a3 = 1; + a21 = 10; + a9 = 7; + a19 = 1; + a1 = 12; + a16 = 7; + a5 = 4; + a11 = 1; + return -1; + } else if(((!(a20==1)&&((((a19==3)&&((a28==1)&&!(a7==1)))&&(a12==1))&&(a17==2)))&&((a9==7)&&((((((((a13==1)&&((input==3)&&((a5==5)||(a5==6))))&&!(a4==1))&&(a1==14))&&(a2==1))&&!(a7==1))&&(a21==11))&&(a16==10))))){ + a6 = 0; + a5 = 5; + a16 = 9; + a21 = 10; + a8 = 1; + a4 = 1; + a1 = 13; + return 22; + } else if((((((((a5==6)&&((a19==5)&&((a21==11)&&(a2==1))))&&(a17==2))||!(a28==1))&&(a9==8))&&(a6==1))&&((a28==1)&&(!(a8==1)&&((((!(a20==1)&&((a16==10)&&(input==4)))&&!(a8==1))&&(a1==12))&&!(a8==1)))))){ + a21 = 10; + a5 = 4; + a18 = 1; + a16 = 7; + a25 = 1; + a11 = 0; + a20 = 1; + a1 = 14; + a19 = 1; + return 23; + } else if(((((((a7==1)||((a11==1)&&(a19==3)))&&(a1==12))||(a14==1))&&(a21==11))&&((a20==1)&&((((a6==1)&&((a17==2)&&((a16==10)&&((a28==1)&&((input==1)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))))))&&(a3==1))&&(a11==1))))){ + a12 = 1; + a16 = 7; + a9 = 7; + a5 = 4; + a19 = 1; + a21 = 10; + a13 = 1; + return -1; + } else if(((!(a14==1)&&(((a16==10)&&((input==6)&&((((a21==11)&&((a19==5)&&(((a5==6)&&(a1==14))&&(a9==11))))||(((a19==1)&&(((a1==12)&&(a5==4))&&(a9==7)))&&(a21==12)))||((a21==12)&&(((a9==7)&&((a1==12)&&(a5==5)))&&(a19==1))))))&&(a28==1)))&&((!(a11==1)||((a17==2)&&((a20==1)&&(!(a0==1)&&(!(a13==1)||(a28==1))))))&&(a11==1)))){ + a16 = 7; + a19 = 2; + a21 = 10; + a1 = 13; + a5 = 4; + a11 = 1; + a6 = 1; + a9 = 9; + return 25; + } else if(((((((a17==2)&&(((input==6)&&(((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))))&&(a19==4)))&&(a1==12))&&!(a18==1))&&!(a14==1))&&(!(a23==1)||((a16==8)&&((((a21==10)&&(((a3==1)&&(a3==1))&&(a20==1)))&&!(a27==1))||!(a3==1)))))){ + a11 = 1; + a0 = 0; + a5 = 4; + a16 = 7; + a23 = 1; + a9 = 7; + a19 = 1; + return -1; + } else if((((a13==1)&&((((((a1==14)&&((a17==2)&&(a23==1)))&&!(a4==1))&&(a19==5))&&(a13==1))&&!(a20==1)))&&(((a12==1)&&((((((input==6)&&(a21==12))&&!(a14==1))&&(a9==7))&&(a5==6))&&(a16==8)))&&(a2==1)))){ + a19 = 3; + a24 = 1; + a11 = 0; + a16 = 10; + a0 = 1; + return -1; + } else if((((a17==2)&&((((((a1==13)&&((a2==1)&&(a9==8)))&&(a21==11))||(a26==1))||!(a28==1))||(a18==1)))&&((a19==5)&&((a3==1)&&(((a23==1)&&((a2==1)&&((a16==9)&&((input==5)&&((a5==4)||(a5==5))))))&&!(a20==1)))))){ + if((a2==1)){ + a24 = 1; + a13 = 0; + a20 = 1; + a12 = 0; + a16 = 7; + a9 = 10; + a5 = 4; + a19 = 2; + a21 = 10; + }else{ + a21 = 10; + a13 = 0; + a15 = 1; + a27 = 1; + a9 = 7; + a19 = 2; + a16 = 7; + a1 = 12; + a20 = 1; + a5 = 6; + } + return -1; + } else if((((a12==1)&&((a28==1)&&(!(a8==1)&&((((a5==6)&&(((input==5)&&(a21==10))&&(a20==1)))&&(a17==2))&&!(a4==1)))))&&((a1==13)&&((a9==9)&&((a16==8)&&(!(a0==1)&&((a6==1)&&((a19==3)&&(a6==1))))))))){ + a16 = 9; + a9 = 10; + a1 = 12; + a0 = 0; + a19 = 5; + a3 = 1; + a21 = 12; + a5 = 5; + a23 = 1; + return 23; + } else if(((!(a11==1)||((a20==1)&&(((a11==1)&&(a11==1))&&(a1==13))))&&(!(a27==1)&&((a12==1)&&((a12==1)&&(((a16==10)&&(((a19==4)&&((a21==10)&&((input==3)&&((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4))))))&&!(a7==1)))&&(a17==2))))))){ + a19 = 1; + a26 = 0; + a7 = 0; + a5 = 4; + a23 = 1; + a16 = 7; + a1 = 12; + a9 = 7; + return -1; + } else if(((((a21==11)&&((a1==12)&&((a17==2)&&((a14==1)&&((a27==1)&&((a23==1)&&(a27==1)))))))&&!(a20==1))&&((a9==9)&&((a19==2)&&((a0==1)&&(((((a16==8)&&(input==3))&&(a5==6))&&!(a23==1))&&(a14==1))))))){ + a1 = 13; + a29 = 0; + a19 = 5; + a18 = 1; + a15 = 1; + a16 = 7; + a5 = 5; + a20 = 1; + return -1; + } else if(((((((((a17==2)&&(((input==4)&&((a5==4)||(a5==5)))&&(a1==14)))&&(a6==1))&&!(a7==1))&&(a2==1))&&(a9==8))&&(a20==1))&&((a16==8)&&((a13==1)&&((a12==1)&&((a21==10)&&((a19==4)&&((a3==1)||!(a28==1))))))))){ + a4 = 0; + a27 = 0; + a5 = 4; + a16 = 7; + a1 = 12; + a9 = 7; + a19 = 1; + return -1; + } else if((((a17==2)&&(((a20==1)&&(!(a8==1)&&((((!(a0==1)&&((a19==5)&&((a3==1)||!(a23==1))))||(a4==1))||!(a6==1))||(a27==1))))&&(a9==8)))&&((a1==12)&&((a21==12)&&((a16==7)&&((input==6)&&((a5==5)||(a5==6)))))))){ + a14 = 0; + a21 = 10; + a19 = 1; + a6 = 1; + a26 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if((((a20==1)&&(((a19==5)&&(!(a18==1)&&((!(a0==1)&&((a9==8)&&(a28==1)))||!(a28==1))))&&!(a4==1)))&&((a17==2)&&(((((((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&(a16==8))&&(a3==1))&&(a1==13))&&(a21==11))&&(a6==1))))){ + a19 = 2; + a1 = 14; + a5 = 5; + a4 = 0; + a9 = 10; + a14 = 0; + a13 = 1; + return 25; + } else if((((a17==2)&&((!(a8==1)&&(!(a3==1)||(a6==1)))||(a14==1)))&&(((((a21==12)&&((!(a8==1)&&((((input==1)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&!(a18==1))&&(a19==5)))&&!(a0==1)))&&(a1==13))&&(a16==10))&&(a20==1)))){ + a21 = 10; + a1 = 14; + a9 = 11; + a19 = 2; + a28 = 1; + a4 = 0; + a5 = 5; + a16 = 7; + a23 = 1; + return 21; + } else if((((a1==14)&&((a21==10)&&(!(a3==1)||(((a17==2)&&(a6==1))&&(a20==1)))))&&(!(a26==1)&&((a13==1)&&((((a16==11)&&(((!(a26==1)&&((a19==1)&&(input==4)))&&(a5==6))&&(a9==8)))&&!(a27==1))&&!(a7==1)))))){ + a7 = 0; + a16 = 10; + a19 = 4; + a13 = 1; + a9 = 11; + a28 = 1; + return 25; + } else if((((a9==7)&&((((a16==10)&&((((input==6)&&((a5==4)||(a5==5)))&&!(a24==1))&&(a11==1)))&&(a1==12))&&(a20==1)))&&((a19==3)&&((a21==12)&&(!(a11==1)||((!(a11==1)||(!(a2==1)||((a28==1)&&(a17==2))))||(a4==1))))))){ + a19 = 1; + a12 = 1; + a16 = 7; + a5 = 4; + a2 = 1; + a24 = 0; + a21 = 10; + return -1; + } else if((((((!(a20==1)&&((a2==1)||!(a6==1)))&&(a21==12))&&(a1==14))&&(a19==5))&&((a12==1)&&((((a3==1)&&((a2==1)&&((a17==2)&&((a12==1)&&((input==5)&&(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))))))&&(a16==10))&&(a13==1))))){ + if((a14==1)){ + a1 = 13; + a5 = 4; + a21 = 10; + a19 = 1; + a16 = 7; + a12 = 0; + a22 = 0; + a23 = 0; + a20 = 1; + a9 = 7; + }else{ + a22 = 1; + a9 = 10; + a20 = 1; + a21 = 11; + a13 = 0; + a19 = 2; + a15 = 1; + a5 = 4; + } + return 23; + } else if((((a19==4)&&((a21==11)&&(((a13==1)||!(a12==1))&&!(a8==1))))&&((a17==2)&&((!(a20==1)&&((a9==10)&&((a1==14)&&(!(a8==1)&&(!(a26==1)&&((a2==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a28==1))))))))&&(a16==8))))){ + a28 = 1; + a16 = 7; + a5 = 4; + a19 = 1; + a12 = 1; + a20 = 1; + a1 = 12; + a9 = 7; + a7 = 0; + a21 = 10; + return -1; + } else if((((a16==10)&&(((a3==1)&&(!(a18==1)&&(a3==1)))||!(a13==1)))&&(!(a20==1)&&((a1==13)&&(((a21==10)&&(!(a27==1)&&(((a19==3)&&((a6==1)&&((input==5)&&(((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))))))&&(a17==2))))&&!(a14==1)))))){ + if((a10==1)){ + a19 = 1; + a5 = 4; + a16 = 7; + a1 = 12; + a6 = 0; + a18 = 1; + a9 = 8; + a20 = 1; + a3 = 0; + }else{ + a19 = 1; + a9 = 7; + a20 = 1; + a29 = 0; + a15 = 0; + a5 = 4; + a1 = 12; + a10 = 1; + a16 = 7; + } + return -1; + } else if((((a17==2)&&((a9==11)&&((a5==6)&&(((((a1==13)&&(input==4))&&(a28==1))&&!(a20==1))&&!(a0==1)))))&&(((a16==10)&&((((a8==1)||(((a28==1)||!(a12==1))&&(a23==1)))&&(a21==10))||(a18==1)))&&(a19==4)))){ + a21 = 11; + a16 = 7; + a5 = 5; + a6 = 0; + a24 = 1; + a3 = 0; + a20 = 1; + return -1; + } else if((((((((a23==1)||(a27==1))&&(a5==6))||(a26==1))&&!(a18==1))&&(a21==11))&&(((a19==3)&&(((a16==8)&&((a17==2)&&(!(a27==1)&&((((a9==9)&&(input==5))&&(a13==1))&&(a2==1)))))&&(a1==13)))&&(a20==1)))){ + a19 = 1; + a16 = 7; + a5 = 4; + a0 = 0; + a1 = 12; + a21 = 10; + a8 = 0; + a9 = 7; + a27 = 0; + return -1; + } else if((((a16==8)&&(((a2==1)&&((a28==1)&&!(a27==1)))&&!(a20==1)))&&((a21==11)&&(((a17==2)&&((((((a19==1)&&((input==3)&&(((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))))&&(a11==1))&&(a2==1))&&!(a7==1))&&!(a27==1)))&&(a1==13))))){ + a12 = 1; + a1 = 12; + a9 = 7; + a2 = 1; + a16 = 7; + a21 = 10; + a20 = 1; + a24 = 0; + a5 = 4; + return -1; + } else if(((!(a4==1)&&(((a1==12)&&((((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a9==11)&&(a5==5)))&&(input==4))&&!(a26==1)))&&(a17==2)))&&((a19==4)&&(((a26==1)||((!(a8==1)&&((((a6==1)&&(a21==10))&&(a16==10))&&!(a7==1)))&&(a20==1)))&&(a6==1))))){ + a7 = 0; + a19 = 1; + a16 = 7; + a9 = 7; + a5 = 4; + a11 = 1; + a8 = 0; + return -1; + } else if((((!(a0==1)&&((a17==2)&&((a11==1)&&!(a8==1))))&&!(a20==1))&&((a21==12)&&(((a1==14)&&(!(a7==1)&&(((a19==1)&&((a2==1)&&((a3==1)&&((input==4)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))))))&&(a3==1))))&&(a16==7))))){ + a20 = 1; + a26 = 0; + a9 = 7; + a5 = 4; + a1 = 12; + a14 = 0; + a21 = 10; + a11 = 1; + return -1; + } else if((((a19==5)&&((a21==12)&&(!(a0==1)&&((a2==1)&&((input==4)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))))))&&(!(a14==1)&&(!(a8==1)&&(!(a6==1)||(((a16==8)&&((a17==2)&&((a2==1)&&((a2==1)&&!(a20==1)))))&&(a1==14))))))){ + if((a4==1)){ + a8 = 1; + a5 = 5; + a20 = 1; + a21 = 10; + a1 = 12; + a9 = 8; + a19 = 1; + a22 = 1; + a16 = 7; + a24 = 1; + }else{ + a9 = 8; + a5 = 6; + a27 = 1; + a19 = 3; + a1 = 12; + a2 = 0; + a16 = 9; + } + return -1; + } else if(((!(a18==1)&&(((((a1==12)&&((a19==5)&&(((a20==1)&&((a17==2)&&((a9==8)&&((a5==5)&&(input==5)))))&&(a21==12))))&&!(a18==1))&&!(a24==1))&&!(a27==1)))&&((a26==1)||((a16==8)&&((a28==1)&&(a13==1)))))){ + a0 = 0; + a12 = 1; + a16 = 7; + a5 = 4; + a21 = 10; + a9 = 7; + a27 = 0; + a19 = 1; + return -1; + } else if((((!(a4==1)&&((a19==2)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&!(a26==1))&&(a17==2))))&&(a21==12))&&((a9==9)&&(((a23==1)&&((a1==13)&&(!(a18==1)&&((a16==10)&&(((a6==1)&&(a2==1))&&!(a18==1))))))&&!(a20==1))))){ + if((a11==1)){ + a21 = 11; + a16 = 11; + a2 = 0; + a24 = 1; + a19 = 1; + a18 = 1; + a5 = 6; + a9 = 7; + a20 = 1; + }else{ + a7 = 1; + a5 = 6; + a20 = 1; + a21 = 10; + a19 = 1; + a2 = 0; + a16 = 7; + a11 = 0; + } + return 21; + } else if((((a11==1)&&((((a3==1)&&((input==6)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))))&&!(a4==1))&&!(a27==1)))&&((((a16==10)&&(((a19==4)&&((a17==2)&&((a1==13)&&((a21==10)&&(a3==1)))))&&!(a26==1)))&&!(a20==1))&&(a28==1)))){ + if((a26==1)){ + a6 = 0; + a12 = 0; + a19 = 1; + a1 = 14; + a20 = 1; + a16 = 7; + a9 = 10; + a22 = 1; + a5 = 6; + }else{ + a9 = 10; + a15 = 0; + a5 = 5; + a27 = 1; + a16 = 9; + a19 = 5; + a25 = 1; + a21 = 12; + } + return -1; + } else if((((a16==11)&&((a0==1)&&((a17==2)&&((((!(a13==1)&&(a6==1))&&!(a23==1))&&(a9==9))&&(a8==1)))))&&((((!(a23==1)&&((a14==1)&&(((input==5)&&(a5==6))&&(a19==5))))&&(a1==13))&&(a21==11))&&(a20==1)))){ + a22 = 0; + a5 = 4; + a16 = 10; + a19 = 3; + a9 = 8; + a6 = 0; + a24 = 1; + a1 = 14; + return 25; + } else if(((!(a24==1)&&((a5==6)&&((((a3==1)&&(a12==1))||(a7==1))&&(a20==1))))&&((a1==13)&&(((a17==2)&&(((a9==8)&&((!(a4==1)&&((a28==1)&&((a21==10)&&(input==4))))&&!(a4==1)))&&(a16==11)))&&(a19==2))))){ + a8 = 0; + a18 = 0; + a16 = 7; + a19 = 1; + a1 = 12; + a24 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if((((((a1==14)&&((a17==2)&&(!(a20==1)&&(((a5==5)&&(input==6))&&(a2==1)))))&&(a6==1))&&(a6==1))&&(!(a4==1)&&((((a9==7)&&((((a2==1)&&(a19==2))&&(a16==8))&&(a21==12)))||!(a2==1))||!(a6==1))))){ + a9 = 9; + a19 = 3; + a22 = 1; + a5 = 6; + a28 = 0; + a25 = 1; + a21 = 11; + a20 = 1; + return -1; + } else if((((((((a11==1)&&(((input==4)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(a19==5)))&&!(a14==1))&&(a21==10))&&(a1==14))&&(a16==7))&&(!(a18==1)&&((!(a4==1)&&((!(a13==1)||((a17==2)&&(a13==1)))&&!(a8==1)))&&!(a20==1))))){ + a4 = 0; + a19 = 1; + a9 = 7; + a1 = 12; + a5 = 4; + a20 = 1; + a18 = 0; + a6 = 1; + return -1; + } else if((((a19==5)&&(((a4==1)||(!(a4==1)&&(!(a20==1)&&((!(a13==1)||(((a9==10)&&(a3==1))&&(a16==9)))&&(a21==10)))))||(a26==1)))&&((((a17==2)&&(((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a18==1)))&&(a6==1))&&(a1==14)))){ + if((a6==1)){ + a19 = 3; + a23 = 0; + a16 = 7; + a5 = 4; + a28 = 0; + a1 = 13; + a9 = 11; + a0 = 1; + a21 = 12; + }else{ + a2 = 0; + a19 = 1; + a6 = 0; + a20 = 1; + a16 = 11; + a5 = 6; + a9 = 9; + } + return -1; + } else if(((((a19==3)&&(((a21==10)&&(!(a14==1)&&(((input==6)&&(a5==6))&&!(a24==1))))&&(a20==1)))&&(a17==2))&&((!(a4==1)&&(((a16==9)&&((((a12==1)&&(a13==1))&&(a9==8))||(a4==1)))&&(a28==1)))&&(a1==12)))){ + a21 = 12; + a27 = 0; + a7 = 0; + a5 = 4; + a9 = 10; + return 21; + } else if((((a20==1)&&(!(a8==1)&&((((!(a12==1)||((a16==7)&&((a17==2)&&(!(a24==1)&&(a12==1)))))||(a7==1))&&(a9==7))&&(a5==5))))&&(((!(a7==1)&&(((input==5)&&(a19==4))&&(a6==1)))&&(a21==12))&&(a1==14)))){ + a16 = 9; + a3 = 1; + a23 = 1; + a28 = 1; + a19 = 3; + a5 = 4; + a1 = 12; + a9 = 10; + a21 = 11; + return 22; + } else if(((((a1==14)&&(((a2==1)&&((a9==11)&&((a21==12)&&(a3==1))))&&(a19==3)))&&(a20==1))&&(((a17==2)&&(((a2==1)&&(((a5==5)&&(!(a0==1)&&((a16==11)&&(input==6))))&&(a6==1)))&&!(a18==1)))&&!(a8==1)))){ + a9 = 8; + a1 = 13; + a6 = 1; + a19 = 5; + a4 = 0; + a8 = 0; + return 23; + } else if(((((((a2==1)&&(!(a27==1)&&(!(a8==1)&&((((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(input==3)))))&&(a21==12))&&(a20==1))&&(a16==10))&&((((a1==13)&&((((a11==1)&&(a13==1))&&(a11==1))&&(a3==1)))&&(a17==2))&&(a19==2)))){ + a16 = 7; + a5 = 4; + a21 = 10; + a2 = 1; + a9 = 7; + a28 = 1; + a1 = 12; + a19 = 1; + a14 = 0; + return -1; + } else if(((((a9==9)&&(((((a16==9)&&((a6==1)&&((input==4)&&((a5==6)||((a5==4)||(a5==5))))))&&!(a20==1))&&(a23==1))&&(a19==2)))&&!(a0==1))&&(((a17==2)&&((a1==12)&&(((a27==1)||((a21==10)&&(a12==1)))||(a24==1))))&&(a23==1)))){ + if((a1==12)){ + a4 = 1; + a16 = 7; + a12 = 0; + a20 = 1; + a5 = 6; + a19 = 1; + a3 = 0; + a9 = 11; + }else{ + a5 = 4; + a20 = 1; + a16 = 7; + a9 = 10; + a19 = 1; + a26 = 1; + a1 = 13; + a22 = 0; + a13 = 0; + } + return 25; + } else if(((((((a9==8)&&((a23==1)&&((((a23==1)&&(a13==1))&&(a17==2))&&(a1==12))))&&!(a4==1))||(a26==1))&&(a16==11))&&((!(a27==1)&&(((a5==6)&&((a20==1)&&((a21==12)&&(input==6))))&&!(a26==1)))&&(a19==1)))){ + a24 = 0; + a16 = 7; + a26 = 0; + a5 = 4; + a21 = 10; + a14 = 0; + a9 = 7; + return -1; + } else if(((!(a26==1)&&((((a17==2)&&((!(a4==1)&&((a23==1)&&(!(a26==1)&&((a3==1)&&((input==4)&&((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5))))))))&&(a19==4)))&&(a1==14))&&(a21==12)))&&((!(a20==1)&&((a16==10)&&(a23==1)))&&(a3==1)))){ + a5 = 4; + a16 = 7; + a9 = 10; + a4 = 1; + a21 = 10; + a1 = 12; + a19 = 1; + a29 = 1; + a28 = 0; + a20 = 1; + return -1; + } else if(((((a18==1)||((a17==2)&&((!(a27==1)&&((a2==1)&&(a19==3)))&&(a20==1))))||!(a2==1))&&((((a21==11)&&(((((((a9==11)&&((a1==13)&&(a5==6)))||(((a5==4)&&(a1==14))&&(a9==7)))||((a9==7)&&((a1==14)&&(a5==5))))&&(input==6))&&!(a7==1))&&!(a18==1)))&&(a16==11))&&(a2==1)))){ + a6 = 1; + a12 = 1; + a21 = 12; + a19 = 2; + a28 = 1; + a1 = 12; + a5 = 4; + a9 = 8; + return 21; + } else if((((!(a26==1)&&((((a12==1)&&(((((a5==4)||(a5==5))&&(input==3))&&!(a26==1))&&(a1==12)))&&(a20==1))&&(a9==7)))&&(a21==12))&&(((!(a2==1)||((a16==10)&&((!(a12==1)||(a11==1))&&!(a7==1))))&&(a19==2))&&(a17==2)))){ + a21 = 10; + a19 = 1; + a14 = 0; + a16 = 7; + a13 = 1; + a11 = 1; + a5 = 4; + return -1; + } else if((((a16==11)&&((a17==2)&&(!(a4==1)&&((a14==1)||(((!(a4==1)&&(a23==1))&&(a1==12))||!(a12==1))))))&&((((((a20==1)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))&&(input==6)))&&(a21==11))&&(a19==4))&&!(a27==1))&&(a3==1)))){ + a9 = 7; + a16 = 7; + a5 = 4; + a21 = 10; + a19 = 1; + a26 = 0; + a7 = 0; + a3 = 1; + return -1; + } else if((((a21==11)&&((!(a24==1)&&((input==6)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))))&&!(a27==1)))&&(((a17==2)&&((a20==1)&&(((!(a26==1)&&((a8==1)||(((a12==1)&&(a19==5))&&!(a8==1))))&&(a11==1))&&(a16==11))))&&(a1==12)))){ + a19 = 3; + a2 = 1; + a12 = 1; + a5 = 5; + a18 = 0; + a21 = 12; + a9 = 9; + return 21; + } else if((((a16==8)&&(((a19==5)&&((((a12==1)||(a18==1))&&(a17==2))&&(a1==12)))&&(a21==11)))&&(((a6==1)&&(!(a20==1)&&(((a23==1)&&(((input==6)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(a28==1)))&&(a13==1))))&&(a28==1)))){ + a8 = 0; + a9 = 11; + a21 = 10; + a27 = 0; + a2 = 1; + a20 = 1; + a5 = 6; + a19 = 4; + return 25; + } else if(((((((a11==1)||!(a28==1))&&(a21==10))||!(a23==1))&&(a1==12))&&((a9==11)&&((a17==2)&&((a19==3)&&(((a6==1)&&((a28==1)&&(((!(a20==1)&&((input==3)&&((a5==5)||(a5==6))))&&!(a14==1))&&!(a4==1))))&&(a16==9))))))){ + a12 = 0; + a5 = 6; + a19 = 2; + a9 = 7; + a16 = 7; + a20 = 1; + a0 = 1; + a14 = 1; + return -1; + } else if((((a11==1)&&((((a19==1)&&((a3==1)&&(((((input==4)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(a21==11))&&!(a26==1))&&(a1==12))))&&!(a0==1))&&(a3==1)))&&((a16==7)&&(((a8==1)||((a3==1)&&(a20==1)))&&(a17==2))))){ + a9 = 7; + a5 = 4; + a21 = 10; + a4 = 0; + a28 = 1; + return -1; + } else if((((a21==11)&&((a1==12)&&(((!(a18==1)&&((a16==7)&&((a17==2)&&((input==6)&&((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11)))))))&&(a13==1))&&(a20==1))))&&((((!(a23==1)||((a19==5)&&(a2==1)))&&(a12==1))&&(a3==1))&&(a12==1)))){ + a5 = 5; + a21 = 12; + a6 = 1; + a16 = 8; + a19 = 1; + a2 = 1; + a9 = 10; + a1 = 13; + a14 = 0; + return 26; + } else if((((!(a20==1)&&((a17==2)&&((!(a26==1)&&(!(a26==1)&&((((a5==4)||(a5==5))&&(input==3))&&(a9==11))))&&(a21==11))))&&!(a18==1))&&((a1==14)&&(!(a8==1)&&((a16==8)&&((((a11==1)&&(a12==1))||(a18==1))&&(a19==2))))))){ + a5 = 4; + a21 = 10; + a19 = 1; + a13 = 1; + a20 = 1; + a1 = 12; + a9 = 7; + a16 = 7; + a7 = 0; + a6 = 1; + return -1; + } else if((((a16==9)&&((((a17==2)&&(!(a26==1)&&((a9==10)&&(a3==1))))||(a0==1))||(a27==1)))&&(((!(a8==1)&&((a19==2)&&((a23==1)&&(((a1==13)&&((input==4)&&((a5==5)||(a5==6))))&&!(a14==1)))))&&(a21==12))&&!(a20==1)))){ + a1 = 12; + a11 = 0; + a29 = 1; + a16 = 7; + a5 = 6; + a20 = 1; + a21 = 10; + a0 = 1; + a19 = 1; + return 25; + } else if(((!(a26==1)&&(((((((a21==10)&&(input==1))&&(a5==4))&&(a1==13))&&!(a8==1))&&(a17==2))&&(a9==9)))&&((((a12==1)&&(!(a28==1)||((a16==10)&&(!(a20==1)&&((a12==1)&&(a19==2))))))||!(a23==1))&&(a3==1)))){ + a20 = 1; + a16 = 7; + a10 = 0; + a6 = 0; + a9 = 7; + a0 = 1; + return 25; + } else if(((((((a19==3)&&(((a21==11)&&(input==5))&&(a17==2)))&&!(a0==1))&&(a6==1))&&(a16==7))&&(((!(a12==1)||(((a20==1)&&((((a11==1)&&(a5==4))&&!(a26==1))&&(a1==12)))||(a4==1)))||(a27==1))&&(a9==8)))){ + a9 = 7; + a0 = 0; + a8 = 0; + a21 = 10; + a19 = 1; + a7 = 0; + return -1; + } else if((((a17==2)&&((a28==1)&&((a1==14)&&(((a9==11)&&(!(a18==1)&&(!(a20==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))))&&(a12==1)))))&&((((a2==1)&&((a16==10)&&((a7==1)||((a12==1)&&(a21==10)))))&&!(a26==1))&&(a19==3)))){ + if((a7==1)){ + a1 = 12; + a14 = 1; + a16 = 11; + a9 = 8; + a15 = 1; + a5 = 6; + a20 = 1; + a21 = 11; + }else{ + a21 = 11; + a0 = 1; + a5 = 4; + a22 = 0; + a19 = 5; + a16 = 7; + a10 = 0; + a9 = 10; + } + return 22; + } else if(((((a1==13)&&((a11==1)&&!(a18==1)))&&!(a18==1))&&((!(a4==1)&&((a6==1)&&((a19==3)&&((!(a0==1)&&((a16==10)&&((a20==1)&&((a17==2)&&((input==5)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5))))))))&&(a21==12)))))&&!(a27==1)))){ + a27 = 0; + a16 = 7; + a5 = 5; + a19 = 4; + a21 = 10; + a24 = 0; + a3 = 1; + a1 = 14; + a9 = 8; + return 21; + } else if(((((!(a14==1)&&((!(a18==1)&&((a2==1)&&((((input==3)&&((a5==4)||(a5==5)))&&!(a14==1))&&(a21==11))))&&(a20==1)))&&(a19==2))&&(a1==14))&&((((((a12==1)&&(a9==11))||!(a12==1))&&(a17==2))&&(a16==9))&&!(a14==1)))){ + a9 = 7; + a2 = 1; + a5 = 4; + a21 = 10; + a13 = 1; + a23 = 1; + a16 = 7; + a1 = 12; + a19 = 1; + return -1; + } else if((((a19==5)&&(!(a20==1)&&((!(a8==1)&&((a21==10)&&((a28==1)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==5)))))&&(a1==13))))&&((((!(a0==1)&&((a16==8)&&((a6==1)&&(a17==2))))&&(a12==1))&&(a3==1))&&!(a4==1)))){ + a3 = 1; + a16 = 7; + a6 = 1; + a1 = 12; + a9 = 9; + a13 = 1; + a5 = 5; + return 25; + } else if(((((a1==12)&&(((a16==7)&&(((a5==4)||(a5==5))&&(input==4)))&&!(a4==1)))&&(a23==1))&&(((a19==5)&&(!(a26==1)&&((a12==1)&&(((a21==11)&&((a9==9)&&(!(a20==1)&&((a23==1)&&!(a26==1)))))||(a0==1)))))&&(a17==2)))){ + a2 = 1; + a28 = 1; + a5 = 4; + a21 = 10; + a8 = 0; + a20 = 1; + a19 = 1; + a9 = 7; + return -1; + } else if((((a3==1)&&((a26==1)||(((((a1==12)&&((a19==2)&&(a28==1)))&&(a17==2))&&(a20==1))&&(a21==10))))&&((a3==1)&&(!(a7==1)&&(!(a7==1)&&((((input==5)&&((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4))))&&(a16==9))&&!(a7==1))))))){ + a1 = 13; + a3 = 1; + a18 = 0; + a16 = 11; + a9 = 10; + a19 = 1; + a26 = 0; + a5 = 5; + return 25; + } else if((((((a21==10)&&((((a14==1)||((a2==1)&&!(a7==1)))&&(a3==1))||!(a23==1)))&&(a16==7))&&(a20==1))&&((a17==2)&&(((!(a18==1)&&(!(a14==1)&&((a9==10)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6))))))&&(a19==2))&&(a1==14))))){ + a4 = 0; + a6 = 1; + a5 = 5; + a19 = 4; + a9 = 7; + a13 = 1; + return 25; + } else if((((a12==1)&&(((a2==1)&&((((a21==12)&&(((a20==1)&&((input==3)&&(((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))))&&(a12==1)))&&(a19==4))&&(a17==2)))&&(a28==1)))&&((a1==14)&&(!(a14==1)&&((a13==1)&&((a16==10)&&(a12==1))))))){ + a27 = 0; + a21 = 10; + a1 = 12; + a19 = 1; + a16 = 7; + a24 = 0; + a5 = 4; + a14 = 0; + a9 = 7; + return -1; + } else if((((a4==1)&&(((!(a11==1)&&(((a19==2)&&((a27==1)&&((((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(input==3))))&&(a17==2)))&&!(a3==1))&&(a16==10)))&&((a20==1)&&(((a1==14)&&((a8==1)&&((a11==1)&&(a4==1))))&&(a21==11))))){ + a5 = 6; + a16 = 7; + a19 = 1; + a10 = 1; + a21 = 10; + a9 = 11; + a1 = 13; + a4 = 1; + return 25; + } else if(((!(a4==1)&&((a16==10)&&((((((a5==4)||(a5==5))&&(input==4))&&(a9==9))&&(a3==1))&&!(a20==1))))&&((a24==1)||((a19==3)&&(((((((a13==1)&&(a21==10))&&(a1==14))&&!(a7==1))&&!(a18==1))||!(a23==1))&&(a17==2)))))){ + if((a8==1)){ + a19 = 5; + a16 = 9; + a15 = 0; + a5 = 4; + a27 = 1; + a12 = 0; + a1 = 12; + }else{ + a5 = 4; + a26 = 1; + a2 = 0; + a1 = 13; + a16 = 8; + a19 = 1; + a9 = 10; + a11 = 0; + } + return -1; + } else if((((((a21==12)&&((((a16==9)&&(a28==1))||(a27==1))&&(a17==2)))||!(a23==1))&&(a20==1))&&((!(a8==1)&&(!(a27==1)&&((((((((a1==14)&&(a5==5))&&(a9==11))&&(a19==3))||((a19==3)&&(((a1==14)&&(a5==6))&&(a9==11))))||((((a5==4)&&(a1==12))&&(a9==7))&&(a19==4)))&&(input==4))&&(a13==1))))&&(a13==1)))){ + a13 = 1; + a26 = 0; + a5 = 5; + a0 = 0; + a19 = 3; + a9 = 10; + a21 = 10; + a16 = 10; + a1 = 13; + return 25; + } else if((((a19==4)&&(((a8==1)&&(((((input==4)&&((a5==5)||(a5==6)))&&(a9==10))&&(a16==10))&&(a17==2)))&&(a21==10)))&&((a20==1)&&(!(a13==1)&&(((((a1==14)&&((a3==1)&&!(a13==1)))&&!(a28==1))&&!(a23==1))&&!(a23==1)))))){ + a1 = 12; + a18 = 1; + a22 = 0; + a9 = 11; + a25 = 0; + a16 = 8; + a19 = 5; + a5 = 6; + return -1; + } else if((((a9==11)&&((a17==2)&&(((a28==1)&&(((a12==1)&&(((a21==10)&&(a23==1))&&(a16==9)))&&!(a24==1)))&&(a19==4))))&&((a20==1)&&((a11==1)&&((!(a0==1)&&(((input==3)&&((a5==5)||(a5==6)))&&(a1==13)))&&!(a14==1)))))){ + a9 = 7; + a27 = 0; + a16 = 7; + a14 = 0; + a19 = 1; + a1 = 12; + a5 = 4; + a7 = 0; + return -1; + } else if((((((((a19==2)&&((a17==2)&&(((((a5==4)||(a5==5))&&(input==5))&&(a21==10))&&!(a18==1))))&&(a28==1))&&(a2==1))&&!(a20==1))&&(a9==7))&&((((a2==1)&&((a1==14)&&((a16==9)&&(a11==1))))||!(a13==1))&&!(a27==1)))){ + a20 = 1; + a1 = 12; + a25 = 1; + a16 = 7; + a22 = 1; + a9 = 11; + a5 = 5; + a0 = 1; + return 25; + } else if(((!(a7==1)&&((((a12==1)&&(a12==1))&&(a16==9))&&(a13==1)))&&((a17==2)&&(((a19==3)&&((!(a18==1)&&((a1==14)&&(!(a18==1)&&((a12==1)&&((input==4)&&(((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))))))))&&(a20==1)))&&(a21==10))))){ + a3 = 1; + a16 = 8; + a14 = 0; + a28 = 1; + a5 = 5; + a9 = 8; + a19 = 5; + return 25; + } else if(((((((a12==1)&&((a12==1)&&((a9==7)&&((a17==2)&&((a19==5)&&(input==6))))))&&(a23==1))&&(a21==10))&&(a1==13))&&(((a16==9)&&((a20==1)&&(((a5==4)&&((a11==1)&&(a23==1)))||(a18==1))))||!(a12==1)))){ + a16 = 7; + a1 = 12; + a19 = 1; + a2 = 1; + a23 = 1; + return -1; + } else if(((((((a13==1)&&(((a1==12)&&(!(a20==1)&&((a21==11)&&((((input==6)&&(a9==8))&&!(a8==1))&&!(a26==1)))))&&!(a4==1)))&&!(a7==1))&&(a5==5))&&(a13==1))&&(((a17==2)&&((a19==4)&&(a12==1)))&&(a16==8)))){ + a20 = 1; + a9 = 10; + a19 = 3; + a21 = 10; + a23 = 1; + a6 = 1; + a16 = 7; + a12 = 1; + return 23; + } return calculate_output72(input); + } + + int calculate_output72(int input) { + if((((a2==1)&&(((a16==10)&&((((a19==1)&&((a1==13)&&((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==5))))&&(a21==12))&&(a17==2)))&&!(a27==1)))&&(((a2==1)&&(((!(a23==1)||(a23==1))&&!(a20==1))&&(a6==1)))||(a14==1)))){ + a11 = 0; + a5 = 6; + a21 = 10; + a16 = 7; + a29 = 1; + a1 = 12; + a19 = 2; + a9 = 8; + a20 = 1; + a2 = 0; + return 25; + } else if(((!(a4==1)&&(!(a24==1)&&((a2==1)&&((((a6==1)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==6)))&&(a16==7))&&(a21==12)))))&&(((a17==2)&&((((!(a20==1)&&(a6==1))&&(a19==4))&&!(a0==1))&&(a1==13)))||(a0==1)))){ + a28 = 1; + a20 = 1; + a9 = 7; + a5 = 4; + a27 = 0; + a16 = 9; + a2 = 1; + a19 = 5; + return 25; + } else if(((!(a4==1)&&((a17==2)&&((((((a16==8)&&(((input==5)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(a6==1)))&&(a19==1))&&(a21==10))&&!(a0==1))&&(a20==1))))&&((((!(a11==1)||(a3==1))&&(a1==13))||!(a13==1))&&(a11==1)))){ + a9 = 7; + a1 = 12; + a26 = 0; + a5 = 4; + a16 = 7; + a24 = 0; + return -1; + } else if((((((((a13==1)&&!(a8==1))&&(a9==7))&&(a17==2))&&(a5==5))||(a0==1))&&(((((((a19==2)&&((a1==14)&&((!(a20==1)&&(input==1))&&!(a18==1))))&&(a28==1))&&(a21==12))&&(a16==8))&&!(a8==1))&&!(a26==1)))){ + if((a4==1)){ + a15 = 1; + a16 = 7; + a19 = 1; + a10 = 0; + a20 = 1; + a1 = 13; + a9 = 8; + }else{ + a21 = 10; + a5 = 4; + a1 = 13; + a0 = 1; + a20 = 1; + a12 = 0; + a16 = 7; + a10 = 1; + } + return 21; + } else if((((!(a14==1)&&(((a3==1)&&((((a17==2)&&((((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(input==3)))&&(a3==1))&&(a20==1)))&&(a1==12)))&&!(a27==1))&&(!(a2==1)||((a19==2)&&((((a28==1)&&(a21==11))&&(a16==7))&&(a12==1)))))){ + a3 = 1; + a26 = 0; + a19 = 1; + a21 = 10; + a6 = 1; + a9 = 7; + a5 = 4; + return -1; + } else if((((((a23==1)&&(a24==1))&&!(a2==1))&&(a20==1))&&((a21==11)&&(((((a9==8)&&((a17==2)&&((a16==9)&&((a14==1)&&((!(a2==1)&&((a5==4)&&(input==1)))&&(a1==13))))))&&!(a12==1))&&(a18==1))&&(a19==4))))){ + a16 = 7; + a20 = 0; + a12 = 0; + a5 = 5; + a18 = 1; + a9 = 11; + a23 = 0; + a1 = 14; + a19 = 1; + return -1; + } else if((((!(a12==1)||(((a11==1)&&(!(a13==1)||((a3==1)&&(a1==14))))&&(a21==11)))&&!(a4==1))&&(((((!(a4==1)&&((((input==1)&&((a5==4)||(a5==5)))&&!(a7==1))&&!(a20==1)))&&(a16==10))&&(a9==11))&&(a17==2))&&(a19==4)))){ + if((a19==2)){ + a21 = 12; + a22 = 0; + a9 = 10; + a19 = 2; + a16 = 7; + a12 = 0; + a5 = 4; + a8 = 1; + }else{ + a25 = 1; + a6 = 0; + a9 = 9; + a1 = 12; + a19 = 1; + a21 = 10; + a20 = 1; + a16 = 7; + a5 = 5; + } + return 25; + } else if(((!(a7==1)&&((a21==11)&&((a20==1)&&(!(a6==1)||(!(a12==1)||((a17==2)&&((a11==1)&&(a19==1))))))))&&(((a1==12)&&(!(a7==1)&&(((a6==1)&&(((input==4)&&((a5==5)||(a5==6)))&&(a16==11)))&&(a9==11))))&&!(a14==1)))){ + a6 = 1; + a16 = 7; + a5 = 4; + a7 = 0; + a21 = 10; + a18 = 0; + a9 = 7; + return -1; + } else if(((!(a4==1)&&((a20==1)&&((((a19==2)&&(((a21==11)&&(((input==6)&&((a5==4)||(a5==5)))&&!(a26==1)))&&(a9==10)))&&(a11==1))&&(a16==8))))&&((a1==13)&&(((((a2==1)&&(a17==2))||(a26==1))&&(a2==1))||!(a23==1))))){ + a5 = 5; + a19 = 4; + a9 = 9; + a24 = 0; + a16 = 10; + a14 = 0; + a4 = 0; + a21 = 10; + return 26; + } else if((((a19==5)&&(((a2==1)&&!(a26==1))&&(a23==1)))&&(((a16==9)&&((a21==12)&&((a5==4)&&((a2==1)&&((a20==1)&&(((a1==14)&&(!(a4==1)&&(((a17==2)&&(input==1))&&(a28==1))))&&(a9==9)))))))&&(a13==1)))){ + a4 = 0; + a5 = 5; + a19 = 4; + a2 = 1; + a9 = 8; + a16 = 11; + a12 = 1; + a21 = 10; + return 25; + } else if(((((a17==2)&&(!(a26==1)&&(!(a14==1)&&((!(a18==1)&&(((a9==8)&&(input==4))&&!(a26==1)))&&(a1==13)))))&&!(a7==1))&&(((a16==8)&&(((!(a4==1)&&((a5==6)&&(a12==1)))&&(a19==1))&&(a20==1)))&&(a21==12)))){ + a16 = 7; + a5 = 4; + a7 = 0; + a21 = 10; + a9 = 7; + a1 = 12; + a26 = 0; + return -1; + } else if((((a13==1)&&((a21==11)&&((a28==1)&&(((a1==12)&&((a28==1)&&((input==5)&&(((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))))))&&(a19==1)))))&&((a17==2)&&(((a16==11)&&((a27==1)||((a18==1)||((a6==1)&&!(a27==1)))))&&(a20==1))))){ + a5 = 5; + a9 = 11; + a24 = 0; + a12 = 1; + a2 = 1; + a19 = 5; + return 23; + } else if(((!(a11==1)&&(!(a13==1)&&(!(a23==1)&&((a20==1)&&((!(a3==1)&&((a7==1)&&(((a28==1)&&(a21==11))&&(a19==2))))&&(a17==2))))))&&(!(a2==1)&&(((input==3)&&((((a1==14)&&(a5==5))&&(a9==7))||((((a1==13)&&(a5==6))&&(a9==11))||(((a1==14)&&(a5==4))&&(a9==7)))))&&(a16==11))))){ + a16 = 7; + a21 = 10; + a27 = 1; + a9 = 7; + a25 = 0; + a19 = 1; + a1 = 14; + a5 = 4; + a29 = 1; + return -1; + } else if(((((a0==1)||(((((a19==1)&&(((a17==2)&&(((a21==11)&&(a2==1))&&(a6==1)))&&(a20==1)))&&(a1==13))&&(a9==8))&&(a16==10)))||!(a11==1))&&(((((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a13==1))&&!(a18==1))&&(a6==1)))){ + a16 = 7; + a7 = 0; + a27 = 0; + a21 = 10; + a5 = 4; + a23 = 1; + a9 = 7; + a1 = 12; + return -1; + } else if((((a12==1)&&(((((((((a9==11)&&((a5==6)&&(a1==12)))||(((a1==13)&&(a5==4))&&(a9==7)))&&(input==1))&&(a3==1))&&!(a0==1))&&(a17==2))&&(a12==1))&&(a28==1)))&&((((((a20==1)&&(a3==1))&&(a21==12))&&(a16==7))&&(a19==4))||!(a3==1)))){ + a6 = 1; + a28 = 1; + a21 = 10; + a9 = 7; + a27 = 0; + a19 = 1; + a5 = 4; + a1 = 12; + return -1; + } else if(((!(a7==1)&&(((a20==1)&&((a23==1)&&(((a9==10)&&((a1==14)&&((a21==10)&&((a11==1)&&(a11==1)))))&&(a17==2))))||(a18==1)))&&(((a5==5)&&(((a19==1)&&((input==5)&&(a16==8)))&&(a13==1)))&&!(a8==1)))){ + a8 = 0; + a27 = 0; + a21 = 12; + a19 = 3; + a5 = 6; + a16 = 9; + a9 = 7; + a1 = 12; + a6 = 1; + return 21; + } else if((((a1==14)&&((a11==1)&&((((((((a5==5)||(a5==6))&&(input==1))&&(a3==1))&&(a16==11))&&(a19==4))&&(a9==9))&&(a20==1))))&&((!(a23==1)||((a13==1)&&((a21==10)&&(((a17==2)&&(a11==1))||(a27==1)))))&&!(a26==1)))){ + a5 = 6; + a1 = 13; + a21 = 11; + a7 = 0; + a9 = 10; + a14 = 0; + a24 = 0; + return 23; + } else if((((a1==14)&&((a17==2)&&(!(a24==1)&&(!(a7==1)&&((((((a5==5)||(a5==6))&&(input==1))&&(a6==1))&&(a9==10))&&(a6==1))))))&&(((((a21==10)&&(((a2==1)&&!(a18==1))&&(a16==9)))&&(a19==3))||!(a28==1))&&(a20==1)))){ + a14 = 0; + a16 = 7; + a19 = 1; + a5 = 4; + a1 = 12; + a3 = 1; + a9 = 7; + a18 = 0; + return -1; + } else if((((a21==10)&&((a17==2)&&((((!(a2==1)||((a8==1)||((a3==1)&&(a20==1))))&&(a9==7))||!(a2==1))&&(a1==14))))&&((a19==4)&&(((a3==1)&&(!(a24==1)&&(!(a14==1)&&((input==5)&&(((a5==4)||(a5==5))||(a5==6))))))&&(a16==9))))){ + if((a20==1)){ + a5 = 6; + a1 = 13; + a12 = 1; + a26 = 0; + a24 = 0; + a20 = 0; + a16 = 8; + a21 = 11; + a19 = 2; + }else{ + a6 = 1; + a21 = 12; + a19 = 2; + a8 = 0; + a9 = 10; + a27 = 0; + a1 = 12; + a5 = 4; + } + return 26; + } else if(((((a26==1)||((((a16==7)&&((a5==4)&&((a13==1)&&(a3==1))))&&(a19==5))&&(a9==11)))||!(a28==1))&&(((a23==1)&&(!(a0==1)&&((a21==10)&&(((a1==13)&&((a17==2)&&(input==6)))&&!(a20==1)))))&&!(a7==1)))){ + a20 = 1; + a19 = 1; + a23 = 1; + a0 = 0; + a1 = 12; + a8 = 0; + a9 = 7; + return -1; + } else if((((a6==1)&&((((a11==1)&&(((((a13==1)&&((((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==5)))&&(a16==10))&&!(a18==1))&&(a17==2)))&&(a1==12))&&(a21==11)))&&(!(a20==1)&&(((a19==1)&&((a6==1)||!(a6==1)))&&!(a0==1))))){ + a6 = 0; + a12 = 0; + a27 = 1; + a21 = 10; + a9 = 11; + a16 = 7; + a1 = 14; + a5 = 6; + a20 = 1; + return -1; + } else if(((!(a28==1)||(((a1==14)&&(((a27==1)||((a3==1)&&(a19==2)))&&(a5==5)))&&(a9==10)))&&(!(a0==1)&&((a12==1)&&(!(a7==1)&&((a21==12)&&(!(a24==1)&&((((input==3)&&(a16==7))&&!(a20==1))&&(a17==2))))))))){ + a23 = 1; + a21 = 10; + a1 = 12; + a5 = 4; + a24 = 0; + a20 = 1; + a9 = 7; + a19 = 1; + return -1; + } else if(((((a1==13)&&((a14==1)&&((a7==1)&&(a28==1))))&&(a20==1))&&((((a19==5)&&((a9==9)&&((a21==10)&&(((!(a12==1)&&((((a5==4)||(a5==5))&&(input==6))&&!(a12==1)))&&!(a11==1))&&(a14==1)))))&&(a16==8))&&(a17==2)))){ + a11 = 0; + a19 = 2; + a16 = 7; + a5 = 4; + a23 = 0; + a1 = 12; + a6 = 0; + a9 = 11; + return -1; + } else if((((a19==5)&&((((!(a3==1)||((a11==1)||!(a2==1)))&&(a2==1))&&(a13==1))&&(a17==2)))&&(((a20==1)&&((((a12==1)&&((input==5)&&(((a9==7)&&((a1==13)&&(a5==5)))||(((a9==11)&&((a1==12)&&(a5==6)))||((a9==7)&&((a5==4)&&(a1==13)))))))&&(a16==10))&&!(a8==1)))&&(a21==11)))){ + a21 = 10; + a8 = 0; + a16 = 7; + a18 = 0; + a19 = 4; + a12 = 1; + a9 = 10; + a5 = 5; + a1 = 13; + return 25; + } else if(((((a1==14)&&(((((a20==1)&&((a23==1)&&((a9==8)&&(input==5))))&&(a3==1))&&(a6==1))&&(a6==1)))&&(a5==6))&&((((a17==2)&&(((a27==1)||((a27==1)||(a6==1)))&&(a19==3)))&&(a21==12))&&(a16==7)))){ + a13 = 1; + a5 = 4; + a1 = 12; + a0 = 0; + a9 = 7; + a2 = 1; + a19 = 1; + a21 = 10; + return -1; + } else if(((((((((a9==9)&&((a19==4)&&(a13==1)))||(a18==1))&&(a20==1))&&(a1==14))&&(a3==1))&&(a16==9))&&(((((a12==1)&&((a17==2)&&((a23==1)&&((input==3)&&((a5==4)||(a5==5))))))&&(a21==11))&&!(a7==1))&&(a11==1)))){ + a21 = 10; + a19 = 1; + a9 = 7; + a24 = 0; + a16 = 7; + a2 = 1; + a5 = 4; + a23 = 1; + a1 = 12; + return -1; + } else if(((!(a18==1)&&((a6==1)&&(!(a6==1)||((!(a20==1)&&(a2==1))&&(a19==5)))))&&((((a1==12)&&((a16==10)&&(!(a8==1)&&(((a13==1)&&((a21==12)&&((input==4)&&(a17==2))))&&(a5==5)))))&&(a9==7))&&(a2==1)))){ + if((a23==1)){ + a19 = 2; + a4 = 1; + a5 = 6; + a20 = 1; + a2 = 0; + a11 = 0; + a16 = 7; + a21 = 10; + a9 = 9; + }else{ + a20 = 1; + a5 = 6; + a1 = 13; + a13 = 0; + a21 = 10; + a6 = 0; + a2 = 0; + a9 = 8; + a19 = 1; + a16 = 7; + } + return -1; + } else if(((((!(a7==1)&&(((a1==14)&&((a9==9)&&((a11==1)||(a0==1))))&&(a21==12)))&&(a19==5))&&!(a20==1))&&(((!(a0==1)&&(((a11==1)&&(((input==3)&&(a17==2))&&(a11==1)))&&(a23==1)))&&(a5==5))&&(a16==8)))){ + if((a6==1)){ + a1 = 12; + a15 = 1; + a21 = 10; + a23 = 0; + a20 = 1; + a16 = 7; + a11 = 0; + a9 = 7; + a19 = 2; + }else{ + a5 = 6; + a23 = 0; + a20 = 1; + a28 = 0; + a4 = 1; + a16 = 10; + a1 = 12; + a21 = 10; + } + return 25; + } else if((((a0==1)||(((((a20==1)&&((a23==1)&&!(a0==1)))&&(a16==8))&&(a1==12))||!(a11==1)))&&((a21==12)&&((a17==2)&&((a5==4)&&(!(a0==1)&&(!(a7==1)&&((((a9==9)&&(input==5))&&(a19==5))&&(a28==1))))))))){ + a16 = 7; + a7 = 0; + a19 = 2; + a5 = 5; + a9 = 11; + a1 = 14; + a26 = 0; + a21 = 10; + a8 = 0; + return 21; + } else if(((((a9==10)&&(!(a18==1)&&((a6==1)&&(a16==10))))&&(a1==12))&&((a21==11)&&(((a11==1)&&(((((((a2==1)&&(((a5==5)||(a5==6))&&(input==3)))&&!(a20==1))&&!(a26==1))&&!(a26==1))&&!(a8==1))&&(a19==3)))&&(a17==2))))){ + a9 = 8; + a19 = 4; + a1 = 14; + a13 = 0; + a20 = 1; + a16 = 8; + a14 = 1; + a5 = 4; + a15 = 1; + return -1; + } else if(((((a19==3)&&((a1==12)&&((!(a6==1)||((!(a11==1)||(a11==1))&&(a20==1)))&&!(a24==1))))&&(a17==2))&&((a21==12)&&((((a16==7)&&(((a9==9)&&(((a5==5)||(a5==6))&&(input==5)))&&!(a27==1)))&&(a13==1))&&!(a27==1))))){ + a19 = 4; + a7 = 0; + a5 = 5; + a16 = 9; + a9 = 11; + a2 = 1; + a1 = 13; + a12 = 1; + a21 = 10; + return 21; + } else if(((!(a8==1)&&((((((a5==5)||(a5==6))&&(input==5))&&(a1==13))&&(a19==2))&&(a16==8)))&&((!(a12==1)||(((a28==1)&&(((a9==8)&&((a23==1)&&((a21==12)&&((a3==1)&&(a17==2)))))&&(a20==1)))&&(a12==1)))||(a4==1)))){ + a5 = 4; + a1 = 14; + a16 = 7; + a28 = 1; + a9 = 10; + a21 = 10; + a3 = 1; + a7 = 0; + return 21; + } else if((((a2==1)&&((a13==1)&&(((!(a14==1)&&(!(a27==1)&&((input==5)&&((((a9==7)&&((a5==4)&&(a1==12)))&&(a19==2))||(((a19==1)&&(((a1==14)&&(a5==5))&&(a9==11)))||((((a5==6)&&(a1==14))&&(a9==11))&&(a19==1)))))))&&(a2==1))&&!(a20==1))))&&(!(a13==1)||((a21==12)&&((a16==9)&&((a23==1)&&(a17==2))))))){ + if((a21==11)){ + a10 = 0; + a5 = 6; + a1 = 14; + a21 = 10; + a16 = 10; + a19 = 2; + a25 = 0; + a9 = 10; + a11 = 0; + }else{ + a16 = 7; + a26 = 1; + a28 = 0; + a1 = 13; + a0 = 1; + a20 = 1; + a19 = 1; + a9 = 7; + a5 = 4; + a21 = 10; + } + return -1; + } else if(((((a6==1)&&((a5==5)&&(((a16==9)&&(input==6))&&(a11==1))))&&(a23==1))&&((a9==10)&&(((((a1==12)&&((((a21==10)&&(!(a20==1)&&(a3==1)))||!(a2==1))&&(a19==5)))&&(a12==1))&&!(a7==1))&&(a17==2))))){ + if((a14==1)){ + a19 = 1; + a2 = 0; + a1 = 13; + a11 = 0; + a20 = 1; + a9 = 11; + a18 = 1; + a21 = 12; + }else{ + a1 = 14; + a5 = 4; + a29 = 0; + a20 = 1; + a9 = 11; + a16 = 8; + a19 = 2; + a22 = 0; + a21 = 12; + } + return -1; + } else if((((a16==10)&&(((a6==1)&&((((input==5)&&((a5==4)||(a5==5)))&&(a19==2))&&(a2==1)))&&(a6==1)))&&((a9==7)&&((!(a26==1)&&((a20==1)&&((a8==1)||(((a1==14)&&((a13==1)||!(a11==1)))&&(a17==2)))))&&(a21==11))))){ + a1 = 13; + a21 = 10; + a26 = 0; + a5 = 5; + a4 = 0; + a16 = 7; + a9 = 9; + return 25; + } else if((((((((input==5)&&(((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))))&&(a16==9))&&!(a8==1))&&!(a14==1))&&!(a20==1))&&((a1==14)&&((a28==1)&&((a17==2)&&((a21==12)&&(((a19==1)&&(!(a27==1)&&((a8==1)||(a3==1))))&&(a23==1)))))))){ + a15 = 1; + a9 = 7; + a1 = 13; + a24 = 1; + a19 = 5; + a5 = 5; + a16 = 7; + a20 = 1; + a12 = 0; + return -1; + } else if(((((a16==9)&&(((!(a26==1)&&(((a5==5)||(a5==6))&&(input==1)))&&!(a7==1))&&(a21==11)))&&(a9==10))&&((a28==1)&&((!(a20==1)&&((a7==1)||(((a1==12)&&((a19==1)&&((a11==1)||!(a2==1))))&&(a23==1))))&&(a17==2))))){ + if((a25==1)){ + a13 = 0; + a16 = 7; + a21 = 12; + a5 = 5; + a2 = 0; + a11 = 0; + a9 = 7; + a19 = 3; + a1 = 13; + }else{ + a21 = 10; + a3 = 0; + a25 = 0; + a19 = 2; + a16 = 7; + a20 = 1; + a6 = 0; + a5 = 5; + } + return 21; + } else if(((((a12==1)&&(((((a5==5)&&(input==1))&&(a16==7))&&(a1==12))&&!(a8==1)))&&(a17==2))&&((a4==1)||((a8==1)||(((a11==1)&&(((((a13==1)&&(a9==9))&&!(a20==1))&&(a2==1))&&(a19==5)))&&(a21==10)))))){ + a9 = 10; + a4 = 0; + a27 = 0; + a5 = 6; + a7 = 0; + return 22; + } else if((((((a16==9)&&((a19==1)&&(((((a5==6)&&(input==6))&&(a6==1))&&!(a8==1))&&(a12==1))))&&(a21==10))&&(a9==7))&&(((a17==2)&&((!(a13==1)||((a20==1)&&((a12==1)||!(a3==1))))||!(a2==1)))&&(a1==12)))){ + a19 = 5; + a14 = 0; + a18 = 0; + a21 = 12; + a9 = 9; + a16 = 10; + a1 = 14; + return 25; + } else if((((((a21==10)&&((!(a20==1)&&((a17==2)&&(((input==6)&&(a9==9))&&(a2==1))))&&(a16==10)))&&(a5==5))&&(a12==1))&&((a1==14)&&((a6==1)&&(((((a28==1)&&(a19==5))&&(a3==1))||(a0==1))&&!(a8==1)))))){ + a11 = 0; + a16 = 7; + a5 = 6; + a9 = 8; + a21 = 12; + a2 = 0; + a19 = 4; + a12 = 0; + return 21; + } else if(((!(a11==1)||((a12==1)&&((!(a6==1)||(((a17==2)&&(a11==1))||(a14==1)))&&!(a4==1))))&&((a2==1)&&((a16==7)&&(!(a20==1)&&(((input==3)&&(((a19==2)&&((a9==7)&&((a1==12)&&(a5==5))))||(((a19==1)&&(((a5==6)&&(a1==14))&&(a9==11)))||((a19==2)&&(((a5==4)&&(a1==12))&&(a9==7))))))&&(a21==10))))))){ + a9 = 7; + a11 = 1; + a4 = 0; + a1 = 12; + a19 = 1; + a27 = 0; + a5 = 4; + a20 = 1; + return -1; + } else if(((((a1==14)&&((a2==1)&&((a6==1)&&(a28==1))))&&(a21==10))&&((a19==2)&&(!(a20==1)&&(((a13==1)&&((((a3==1)&&(((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==1))&&(a17==2)))&&!(a4==1))&&(a16==10)))&&(a6==1)))))){ + if((a8==1)){ + a6 = 0; + a1 = 13; + a16 = 7; + a9 = 7; + a19 = 1; + a14 = 1; + a20 = 1; + a11 = 0; + a5 = 6; + }else{ + a22 = 0; + a5 = 6; + a19 = 3; + a16 = 7; + a1 = 13; + a13 = 0; + a9 = 8; + a15 = 1; + } + return -1; + } else if(((((!(a20==1)&&(!(a24==1)&&((a21==10)&&(a23==1))))&&(a1==13))&&(a17==2))&&(!(a27==1)&&((((a19==4)&&(((a11==1)&&((((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))&&(input==4))&&!(a27==1)))&&(a16==11)))&&(a3==1))&&(a6==1))))){ + a16 = 7; + a5 = 4; + a2 = 0; + a20 = 1; + a9 = 10; + a1 = 14; + a19 = 1; + a24 = 1; + a12 = 0; + return -1; + } else if((((a23==1)&&(((!(a26==1)&&(((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))&&(input==6)))&&(a17==2))&&(a1==14)))&&((((a4==1)||(((((a21==10)&&((a19==5)&&(a28==1)))||!(a23==1))&&(a20==1))&&(a16==7)))||!(a13==1))&&(a12==1)))){ + a6 = 1; + a13 = 1; + a5 = 5; + a1 = 13; + a21 = 12; + a9 = 9; + a3 = 1; + a19 = 4; + return 23; + } else if(((((a9==9)&&((a1==12)&&((a17==2)&&((((!(a14==1)&&(((a20==1)&&((input==6)&&((a5==4)||(a5==5))))&&(a23==1)))&&(a23==1))&&(a16==11))&&(a3==1)))))&&(a19==5))&&((((a21==10)&&(a3==1))||!(a6==1))&&!(a0==1)))){ + a9 = 10; + a8 = 0; + a19 = 2; + a16 = 10; + a5 = 5; + a26 = 0; + return 25; + } else if((((a19==5)&&((((a21==10)&&((((a23==1)&&(a17==2))||!(a11==1))&&!(a4==1)))||!(a12==1))&&(a1==14)))&&(!(a18==1)&&((((a9==8)&&((((a5==4)&&(input==5))&&!(a20==1))&&(a12==1)))&&(a16==10))&&(a23==1))))){ + a20 = 1; + a19 = 1; + a5 = 6; + a6 = 0; + a16 = 9; + a27 = 1; + a2 = 0; + return -1; + } else if(((!(a18==1)&&(!(a4==1)&&(((a9==7)&&(((a19==3)&&(!(a14==1)&&((a21==10)&&(((input==6)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a26==1)))))&&(a3==1)))&&(a1==12))))&&((a27==1)||(((a17==2)&&((a23==1)&&!(a20==1)))&&(a16==9))))){ + a27 = 1; + a26 = 1; + a16 = 7; + a9 = 9; + a19 = 1; + a20 = 1; + a1 = 13; + a5 = 4; + a22 = 0; + return 22; + } else if((((a19==4)&&(!(a18==1)&&(((a3==1)||(a0==1))&&!(a4==1))))&&((a17==2)&&((((a9==11)&&(((a21==11)&&(!(a8==1)&&((a28==1)&&((a11==1)&&((input==5)&&(a5==5))))))&&(a16==8)))&&(a1==14))&&(a20==1))))){ + a1 = 12; + a23 = 1; + a11 = 1; + a21 = 10; + a16 = 7; + a19 = 1; + a5 = 4; + a28 = 1; + a9 = 7; + return -1; + } else if((((((((a28==1)&&((a19==4)&&((input==3)&&(a17==2))))&&!(a18==1))&&!(a20==1))&&!(a14==1))&&!(a4==1))&&((a1==13)&&(((a5==6)&&(!(a18==1)&&((a16==9)&&(((a0==1)||(a2==1))&&(a9==11)))))&&(a21==11))))){ + a7 = 1; + a16 = 7; + a28 = 0; + a9 = 7; + a29 = 1; + a21 = 10; + a5 = 4; + a19 = 2; + a20 = 1; + return -1; + } else if((((a1==14)&&((((input==5)&&(a17==2))&&(a5==4))&&(a3==1)))&&((a21==11)&&(((a16==9)&&((((((!(a28==1)||((a12==1)&&!(a20==1)))&&!(a7==1))&&(a9==7))&&(a28==1))&&(a19==5))&&!(a24==1)))||!(a28==1))))){ + a9 = 9; + a20 = 1; + a25 = 0; + a21 = 10; + a16 = 11; + a14 = 1; + a8 = 1; + a19 = 4; + return -1; + } else if((((((((a17==2)&&(((input==6)&&(a21==12))&&!(a0==1)))&&!(a27==1))&&!(a8==1))&&(a1==13))&&(a9==7))&&(((a16==7)&&(((((a19==2)&&((a5==5)&&(a13==1)))&&!(a20==1))&&(a11==1))||(a7==1)))&&(a11==1)))){ + a21 = 11; + a1 = 12; + a26 = 0; + a23 = 1; + a19 = 4; + a9 = 8; + a6 = 1; + a16 = 8; + return 21; + } else if((((!(a26==1)&&((((a1==14)&&(((a2==1)&&(a17==2))&&!(a4==1)))&&(a9==10))&&(a16==7)))||!(a23==1))&&(!(a18==1)&&(((a19==2)&&(((((input==5)&&!(a20==1))&&!(a14==1))&&(a21==11))&&(a5==5)))&&(a2==1))))){ + if((a29==1)){ + a21 = 10; + a5 = 4; + a7 = 0; + a4 = 0; + a0 = 0; + a9 = 11; + a1 = 12; + a16 = 8; + a19 = 3; + }else{ + a7 = 0; + a16 = 10; + a8 = 0; + a19 = 5; + a9 = 9; + a14 = 0; + a21 = 10; + a20 = 1; + a1 = 13; + } + return 21; + } else if(((((((a19==1)&&(((a5==5)||(a5==6))&&(input==1)))&&(a3==1))&&(a13==1))&&!(a4==1))&&((a1==14)&&(((a20==1)&&((a17==2)&&((((((a21==12)&&(a2==1))&&!(a24==1))&&(a16==10))||(a24==1))&&(a9==11))))||!(a11==1))))){ + if((a14==1)){ + a12 = 1; + a14 = 0; + a19 = 2; + a5 = 6; + a20 = 0; + a21 = 10; + a2 = 1; + a16 = 8; + }else{ + a16 = 9; + a21 = 10; + a27 = 0; + a9 = 8; + a7 = 0; + a14 = 0; + a1 = 12; + a5 = 5; + } + return 22; + } else if(((!(a20==1)&&(!(a26==1)&&((((a21==10)&&(input==4))&&!(a18==1))&&!(a18==1))))&&(((a17==2)&&((a16==9)&&(((a9==9)&&(((!(a27==1)&&((a28==1)||(a4==1)))&&(a19==5))&&(a5==6)))||(a8==1))))&&(a1==12)))){ + a15 = 1; + a10 = 1; + a1 = 13; + a9 = 10; + a25 = 0; + a20 = 1; + a16 = 7; + a5 = 4; + a19 = 1; + return -1; + } else if(((!(a26==1)&&((((a21==10)&&((input==6)&&((((a9==11)&&((a5==5)&&(a1==12)))||(((a1==12)&&(a5==6))&&(a9==11)))||(((a1==13)&&(a5==4))&&(a9==7)))))&&(a17==2))&&(a3==1)))&&((a19==2)&&(!(a13==1)||(!(a2==1)||(((a16==11)&&((a6==1)&&(!(a18==1)&&(a6==1))))&&!(a20==1))))))){ + a4 = 1; + a27 = 1; + a19 = 1; + a20 = 1; + a16 = 7; + a5 = 4; + a1 = 14; + a10 = 1; + a9 = 9; + return 21; + } else if((((((a9==11)&&((!(a0==1)&&((a26==1)||((a1==12)&&((a14==1)||(a12==1)))))||!(a13==1)))&&(a19==1))&&!(a27==1))&&((a16==10)&&((((a21==12)&&((!(a20==1)&&(input==6))&&(a17==2)))&&(a5==5))&&!(a24==1))))){ + a20 = 1; + a1 = 13; + a19 = 2; + a21 = 10; + a16 = 9; + a27 = 1; + a5 = 4; + a10 = 0; + a9 = 7; + return 23; + } else if(((((a16==10)&&((a8==1)||((a17==2)&&(((a20==1)&&(((a14==1)||(a28==1))||!(a23==1)))&&(a9==8)))))&&(a1==12))&&((!(a26==1)&&((a19==4)&&((a21==11)&&((a11==1)&&(((a5==5)||(a5==6))&&(input==5))))))&&(a12==1)))){ + a16 = 7; + a6 = 1; + a26 = 0; + a19 = 5; + a5 = 4; + return -1; + } else if(((((a14==1)&&(((a9==9)&&((a3==1)&&!(a3==1)))&&(a20==1)))&&(a19==3))&&((((a24==1)&&((a16==10)&&((a21==12)&&(((((a5==4)&&(input==3))&&!(a23==1))&&(a1==14))&&(a4==1)))))&&(a14==1))&&(a17==2)))){ + a13 = 0; + a19 = 2; + a1 = 12; + a9 = 11; + a21 = 11; + a25 = 1; + a27 = 1; + return 22; + } else if(((!(a4==1)&&(!(a18==1)&&((((a17==2)&&(((input==4)&&((a5==4)||(a5==5)))&&(a9==7)))&&(a20==1))&&!(a26==1))))&&(((((a21==10)&&((((a13==1)&&(a1==14))&&(a19==5))&&(a16==9)))||!(a3==1))&&!(a0==1))&&(a3==1)))){ + a18 = 0; + a13 = 1; + a28 = 1; + a5 = 5; + a9 = 10; + a21 = 12; + return 25; + } else if((((a6==1)&&(((a19==2)&&((a17==2)&&((input==3)&&((((a9==11)&&((a5==5)&&(a1==12)))||(((a1==12)&&(a5==6))&&(a9==11)))||((a9==7)&&((a5==4)&&(a1==13)))))))&&!(a4==1)))&&(((a20==1)&&(!(a13==1)||((a16==8)&&((((a28==1)||(a0==1))||(a7==1))&&(a21==11)))))||!(a13==1)))){ + a16 = 7; + a21 = 10; + a1 = 12; + a26 = 0; + a23 = 1; + a19 = 1; + a3 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if(((!(a4==1)&&(!(a0==1)&&((a4==1)||(((a1==12)&&((a19==5)&&((a9==10)&&(a28==1))))&&(a21==12)))))&&((a13==1)&&((((a16==11)&&((((a5==4)&&(input==1))&&!(a14==1))&&(a17==2)))&&!(a18==1))&&(a20==1))))){ + a21 = 10; + a9 = 7; + a16 = 7; + a6 = 1; + a18 = 0; + a23 = 1; + a19 = 2; + a5 = 6; + a1 = 13; + return 26; + } else if((((((a16==10)&&((a20==1)&&(((!(a26==1)&&((a24==1)||(a6==1)))||(a26==1))&&(a17==2))))&&(a5==6))&&(a1==13))&&(((a19==2)&&(((!(a4==1)&&((a21==12)&&(input==4)))&&!(a26==1))&&(a9==7)))&&(a3==1)))){ + a5 = 4; + a19 = 1; + a13 = 1; + a21 = 10; + a1 = 12; + a16 = 7; + a0 = 0; + a23 = 1; + return -1; + } else if((((a20==1)&&(((((a19==5)&&((a17==2)&&(!(a2==1)||((a11==1)&&(!(a13==1)||(!(a18==1)&&((a1==13)&&(a13==1))))))))||(a7==1))&&(a9==11))&&(a21==11)))&&((a16==8)&&((a23==1)&&((input==1)&&((a5==4)||(a5==5))))))){ + a28 = 1; + a16 = 7; + a1 = 12; + a19 = 1; + a5 = 4; + a9 = 7; + a18 = 0; + a11 = 1; + a21 = 10; + return -1; + } else if(((((a3==1)&&((a3==1)&&((a19==3)&&(((a18==1)||(a12==1))&&(a1==12)))))||(a18==1))&&((a9==10)&&(((a23==1)&&((a20==1)&&(((a17==2)&&((((a5==5)||(a5==6))&&(input==3))&&(a16==9)))&&(a21==11))))&&!(a4==1))))){ + a21 = 10; + a19 = 2; + a24 = 0; + a16 = 8; + a7 = 0; + a5 = 6; + a1 = 14; + a20 = 0; + a6 = 1; + return 21; + } else if((((a1==14)&&((((!(a20==1)&&(((a21==10)&&((a4==1)||((a13==1)&&(a3==1))))&&(a23==1)))&&!(a26==1))&&(a16==7))&&(a19==3)))&&(((a17==2)&&(((a6==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5)))&&!(a0==1)))&&(a9==9)))){ + a1 = 12; + a11 = 1; + a14 = 0; + a9 = 7; + a5 = 4; + a13 = 1; + a19 = 1; + a20 = 1; + return -1; + } else if((((a21==12)&&((((input==1)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5))))&&(a1==13))&&!(a20==1)))&&((a16==8)&&(((((((a17==2)&&((a26==1)||(!(a28==1)||(a2==1))))&&(a19==4))||!(a13==1))||!(a12==1))||(a8==1))&&!(a0==1))))){ + a5 = 4; + a25 = 0; + a2 = 0; + a9 = 9; + a20 = 1; + a16 = 11; + a19 = 2; + a3 = 0; + return 22; + } else if((((a12==1)&&((a3==1)&&(((((a16==8)&&(((((a5==5)||(a5==6))&&(input==4))&&(a19==4))&&(a1==14)))&&!(a27==1))&&(a21==11))&&(a12==1))))&&((!(a6==1)||((a17==2)&&((a20==1)&&((a9==7)&&(a28==1)))))||(a14==1)))){ + if((a19==5)){ + a19 = 3; + a16 = 7; + a23 = 1; + a28 = 1; + a20 = 0; + a2 = 1; + a9 = 11; + a5 = 5; + }else{ + a1 = 13; + a3 = 1; + a8 = 0; + a19 = 1; + a0 = 0; + a5 = 6; + } + return 25; + } else if(((((a20==1)&&((a11==1)&&(((a1==12)&&((a19==4)&&(((a5==5)||(a5==6))&&(input==1))))&&(a16==11))))&&(a3==1))&&((a23==1)&&(((((a21==10)&&(((a3==1)||(a14==1))&&(a17==2)))&&(a9==10))||(a26==1))||(a27==1))))){ + a19 = 1; + a8 = 0; + a16 = 7; + a9 = 7; + a5 = 4; + a23 = 1; + a18 = 0; + return -1; + } else if((((a2==1)&&(((a5==6)&&((a1==13)&&((a16==8)&&((a9==7)&&(input==3)))))&&(a19==3)))&&((((a18==1)||((a20==1)&&(((((a21==12)&&(a2==1))&&(a17==2))&&(a6==1))&&(a13==1))))&&(a13==1))&&(a6==1)))){ + a8 = 0; + a19 = 1; + a1 = 12; + a16 = 7; + a21 = 10; + a5 = 4; + a18 = 0; + a24 = 0; + return -1; + } else if(((!(a23==1)||((a19==4)&&(((a21==11)&&((a16==9)&&(((a3==1)&&(a20==1))&&(a1==12))))&&!(a4==1))))&&((a9==10)&&((!(a24==1)&&((a17==2)&&(!(a24==1)&&((((a5==4)||(a5==5))&&(input==4))&&!(a27==1)))))&&(a13==1))))){ + a13 = 1; + a5 = 4; + a24 = 0; + a9 = 7; + a21 = 10; + a19 = 1; + a16 = 7; + a23 = 1; + return -1; + } else if((((a16==9)&&((a20==1)&&(((a4==1)||(!(a26==1)&&((a9==8)&&((a17==2)&&(a11==1)))))||!(a28==1))))&&(((a1==12)&&(((a5==6)&&((((input==1)&&(a19==5))&&!(a27==1))&&!(a26==1)))&&!(a14==1)))&&(a21==12)))){ + a19 = 2; + a16 = 7; + a28 = 1; + a1 = 13; + a21 = 10; + a18 = 0; + a9 = 10; + return 25; + } else if((((((a9==8)&&((((!(a20==1)&&(input==6))&&!(a14==1))&&(a16==10))&&!(a4==1)))&&(a5==5))&&(a21==12))&&(!(a27==1)&&((a1==12)&&(((a17==2)&&(!(a7==1)&&(((a13==1)&&(a2==1))&&(a19==5))))||(a18==1)))))){ + a9 = 10; + a5 = 4; + a15 = 1; + a13 = 0; + a21 = 10; + a16 = 7; + a6 = 0; + a20 = 1; + a19 = 2; + return 23; + } else if((((a17==2)&&(((((a2==1)&&!(a20==1))&&(a16==10))&&(a21==11))&&(a19==2)))&&(!(a14==1)&&((a2==1)&&((a12==1)&&(!(a18==1)&&(((((((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(input==4))&&!(a4==1))&&(a1==14))&&!(a27==1)))))))){ + if((a26==1)){ + a19 = 1; + a16 = 7; + a21 = 10; + a5 = 5; + a9 = 7; + a20 = 1; + a3 = 0; + a24 = 1; + a4 = 1; + }else{ + a25 = 0; + a1 = 13; + a5 = 5; + a16 = 7; + a20 = 1; + a21 = 10; + a9 = 8; + a18 = 1; + a13 = 0; + a19 = 1; + } + return 25; + } else if(((!(a4==1)&&((a19==1)&&((((a16==9)&&((a1==13)&&(((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))&&(input==4))))&&!(a8==1))&&!(a0==1))))&&((((a21==10)&&((((a11==1)&&(a3==1))&&(a12==1))||!(a11==1)))&&!(a20==1))&&(a17==2)))){ + if((a27==1)){ + a1 = 14; + a5 = 4; + a9 = 7; + a28 = 0; + a19 = 5; + a13 = 0; + a22 = 1; + a21 = 11; + }else{ + a10 = 0; + a0 = 1; + a2 = 0; + a16 = 7; + a9 = 10; + a5 = 5; + a20 = 1; + a1 = 12; + } + return -1; + } else if((((a19==3)&&(!(a20==1)&&(!(a6==1)||(((a28==1)&&(a9==8))&&(a23==1)))))&&((((!(a8==1)&&((((a16==11)&&((a17==2)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3))))&&!(a8==1))&&!(a8==1)))&&(a21==10))&&!(a0==1))&&(a1==14)))){ + a19 = 1; + a9 = 7; + a20 = 1; + a21 = 11; + a15 = 1; + a11 = 0; + a5 = 4; + a7 = 1; + a16 = 8; + return 25; + } else if((((((!(a20==1)&&(((input==4)&&(a19==1))&&(a7==1)))&&(a4==1))&&(a5==4))&&(a1==13))&&(!(a12==1)&&((a16==7)&&((a7==1)&&(((a18==1)&&((((a12==1)&&(a17==2))&&(a0==1))&&(a9==11)))&&(a21==11))))))){ + a6 = 0; + a20 = 1; + a1 = 12; + a4 = 1; + a19 = 2; + a0 = 1; + a21 = 10; + return -1; + } else if(((((((a28==1)&&((a3==1)&&(((input==6)&&(((a19==3)&&(((a5==5)&&(a1==12))&&(a9==7)))||(((((a5==6)&&(a1==14))&&(a9==11))&&(a19==2))||((((a1==12)&&(a5==4))&&(a9==7))&&(a19==3)))))&&(a6==1))))&&(a16==11))&&!(a14==1))&&(a20==1))&&((a21==10)&&(((a23==1)&&((a11==1)||(a7==1)))&&(a17==2))))){ + a1 = 12; + a5 = 4; + a9 = 7; + a16 = 7; + a0 = 0; + a19 = 1; + a26 = 0; + a11 = 1; + return -1; + } else if(((!(a2==1)&&(((a16==8)&&((((a17==2)&&((input==3)&&(a19==2)))&&(a18==1))&&!(a28==1)))&&(a24==1)))&&(((a21==10)&&((((a9==11)&&((a1==14)&&((a5==5)&&(a3==1))))&&(a20==1))&&(a0==1)))&&(a7==1)))){ + a0 = 1; + a19 = 5; + a1 = 13; + a16 = 10; + a22 = 0; + a21 = 12; + a9 = 7; + a11 = 0; + return -1; + } else if(((!(a14==1)&&((a21==10)&&(((a3==1)&&!(a27==1))&&(a16==8))))&&((a11==1)&&(((a1==12)&&(((a23==1)&&(((a9==8)&&(!(a20==1)&&(((input==6)&&(a19==4))&&!(a8==1))))&&(a28==1)))&&(a5==6)))&&(a17==2))))){ + a9 = 7; + a5 = 4; + a14 = 0; + a12 = 1; + a19 = 1; + a27 = 0; + a16 = 7; + a20 = 1; + return -1; + } else if(((((a3==1)&&(!(a20==1)&&(!(a24==1)&&(((a11==1)&&((input==5)&&(a16==10)))&&(a1==14)))))&&(a5==6))&&(((a4==1)||((a21==11)&&(((a19==4)&&((a13==1)&&((a11==1)||(a14==1))))&&(a9==11))))&&(a17==2)))){ + a1 = 12; + a16 = 7; + a19 = 2; + a21 = 10; + a3 = 0; + a9 = 8; + a20 = 1; + a6 = 0; + a2 = 0; + return 21; + } else if((((((a23==1)&&((a9==9)&&((a23==1)&&((!(a0==1)&&((a17==2)&&(((a16==7)&&(input==1))&&!(a27==1))))&&!(a18==1)))))&&(a19==4))&&(a1==13))&&(((a20==1)&&(((a3==1)&&!(a4==1))&&(a21==11)))&&(a5==6)))){ + a27 = 0; + a16 = 8; + a8 = 0; + a9 = 7; + a3 = 1; + return 25; + } else if(((((!(a20==1)&&(((a5==5)&&((a16==7)&&(input==6)))&&(a23==1)))&&!(a27==1))&&(a19==2))&&((a21==12)&&((a17==2)&&(((a1==14)&&((a2==1)&&((a7==1)||((a12==1)&&((a18==1)||(a11==1))))))&&(a9==10)))))){ + a18 = 0; + a5 = 4; + a9 = 7; + a24 = 0; + a21 = 10; + a1 = 12; + a3 = 1; + a20 = 1; + a19 = 1; + return -1; + } else if(((!(a18==1)&&((!(a20==1)&&(((a9==11)&&(((a5==5)||(a5==6))&&(input==6)))&&(a2==1)))&&(a16==10)))&&((((a1==14)&&(((a8==1)||(((a13==1)&&((a2==1)&&(a21==12)))&&!(a7==1)))||!(a23==1)))&&(a17==2))&&(a19==3)))){ + a9 = 9; + a20 = 1; + a21 = 10; + a16 = 7; + a3 = 0; + a26 = 1; + a5 = 6; + a19 = 1; + a0 = 1; + a1 = 13; + return 21; + } else if((((((((input==1)&&(a9==11))&&(a19==1))&&(a2==1))&&(a5==5))&&(a2==1))&&(!(a24==1)&&((a13==1)&&(!(a18==1)&&((a17==2)&&(((a16==10)&&(((a1==14)&&(!(a20==1)&&(a23==1)))&&!(a24==1)))&&(a21==12)))))))){ + a24 = 1; + a21 = 10; + a16 = 7; + a14 = 1; + a19 = 2; + a15 = 1; + a1 = 12; + a5 = 4; + a20 = 1; + return -1; + } else if(((!(a20==1)&&(((a11==1)&&(!(a0==1)&&(((a28==1)&&(((a3==1)&&(a12==1))&&(a1==13)))&&!(a0==1))))&&(a19==1)))&&((a21==11)&&((((((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11)))&&(input==4))&&(a17==2))&&!(a14==1))&&(a16==8))))){ + a0 = 0; + a8 = 0; + a9 = 7; + a14 = 0; + a5 = 4; + a21 = 10; + a1 = 12; + a20 = 1; + a16 = 7; + return -1; + } else if(((((((a17==2)&&((a5==4)&&((input==6)&&(a16==9))))&&(a23==1))&&(a1==13))&&(a3==1))&&((((a7==1)||((((a21==12)&&(((a9==8)&&(a13==1))||(a4==1)))||(a7==1))&&(a19==5)))&&(a20==1))||(a18==1)))){ + a21 = 11; + a26 = 0; + a1 = 12; + a18 = 0; + a9 = 11; + a4 = 0; + return 21; + } else if((((((a20==1)&&(!(a0==1)&&(!(a14==1)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==4)))))&&(a19==2))&&(a17==2))&&(!(a14==1)&&((a16==7)&&((a23==1)&&((a21==12)&&(!(a4==1)&&((a11==1)&&((a11==1)&&(a1==14)))))))))){ + a1 = 12; + a9 = 7; + a5 = 4; + a24 = 0; + a7 = 0; + a19 = 1; + a21 = 10; + a27 = 0; + return -1; + } else if((((a12==1)&&(((a21==11)&&(((a11==1)&&((a5==4)&&(input==1)))&&(a1==12)))&&!(a27==1)))&&((a6==1)&&((a19==3)&&((((((a20==1)&&((a3==1)&&(a12==1)))&&(a16==7))&&(a9==11))&&(a17==2))&&!(a18==1)))))){ + a9 = 9; + a14 = 0; + a21 = 12; + a5 = 6; + a19 = 5; + a26 = 0; + a20 = 0; + return 25; + } else if((((((((a14==1)||((!(a12==1)||(a12==1))&&(a9==9)))&&!(a27==1))||(a14==1))&&(a1==14))||!(a12==1))&&((a5==5)&&(((a20==1)&&(((a16==11)&&(((input==4)&&(a19==3))&&(a21==12)))&&!(a24==1)))&&(a17==2))))){ + a12 = 1; + a5 = 4; + a9 = 7; + a1 = 12; + a16 = 7; + a8 = 0; + a21 = 10; + a19 = 1; + a27 = 0; + return -1; + } else if(((((a17==2)&&((a20==1)&&(((!(a0==1)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==3)))&&!(a7==1))&&(a1==14))))&&(a23==1))&&((a16==8)&&((a11==1)&&(!(a4==1)&&(((a21==10)&&((a3==1)&&(a6==1)))&&(a19==1))))))){ + a1 = 12; + a23 = 1; + a14 = 0; + a16 = 7; + a27 = 0; + a5 = 4; + a9 = 7; + return -1; + } else if((((a13==1)&&(((a5==6)&&((a19==1)&&((input==5)&&(a21==10))))&&(a6==1)))&&((((a1==14)&&((a20==1)&&(!(a2==1)||((!(a7==1)&&(((a9==10)&&(a12==1))&&(a16==8)))&&(a17==2)))))&&(a13==1))&&!(a7==1)))){ + a12 = 1; + a19 = 3; + a0 = 0; + a16 = 9; + a9 = 8; + a24 = 0; + a1 = 12; + a5 = 5; + a21 = 12; + return 25; + } else if(((!(a14==1)&&(((a21==12)&&(((a12==1)||!(a12==1))&&(a19==5)))&&(a20==1)))&&(((((((a9==7)&&(((a1==14)&&((input==6)&&(a5==6)))&&(a17==2)))&&(a28==1))&&(a16==8))&&!(a24==1))&&(a23==1))&&!(a27==1)))){ + a18 = 0; + a1 = 13; + a9 = 10; + a7 = 0; + a5 = 5; + a28 = 1; + return -1; + } else if((((a9==11)&&(((((a1==13)&&((a17==2)&&((a11==1)||!(a23==1))))&&(a16==8))&&!(a14==1))&&(a19==3)))&&((a23==1)&&(((((((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a7==1))&&(a21==10))&&(a20==1))&&!(a8==1))&&(a12==1))))){ + a9 = 7; + a19 = 1; + a1 = 12; + a8 = 0; + a3 = 1; + a7 = 0; + a5 = 4; + a16 = 7; + return -1; + } else if((((a6==1)&&(((a21==12)&&((a3==1)&&(a28==1)))&&!(a18==1)))&&((a17==2)&&((a1==12)&&((a9==8)&&((a16==11)&&(((((((a19==2)&&(input==4))&&(a20==1))&&!(a14==1))&&(a5==4))&&(a11==1))&&(a11==1)))))))){ + a19 = 1; + a11 = 1; + a21 = 10; + a9 = 7; + a16 = 7; + a3 = 1; + return -1; + } else if(((((((a2==1)&&(((a9==10)&&(input==1))&&!(a20==1)))&&(a2==1))&&(a16==7))&&(a23==1))&&(((((a17==2)&&(((a1==14)&&(!(a27==1)&&((a23==1)&&(a11==1))))&&(a5==4)))&&(a3==1))&&(a19==3))&&(a21==10)))){ + a24 = 0; + a8 = 0; + a1 = 12; + a27 = 0; + a19 = 4; + a9 = 9; + return 25; + } else if((((a21==10)&&((a9==9)&&(!(a20==1)&&(((!(a7==1)&&(((input==1)&&((a5==4)||(a5==5)))&&!(a7==1)))&&(a19==3))&&(a12==1)))))&&(((((!(a14==1)&&((a2==1)||(a8==1)))&&(a2==1))&&(a16==11))&&(a1==13))&&(a17==2)))){ + a16 = 7; + a5 = 4; + a29 = 1; + a23 = 0; + a21 = 12; + a13 = 0; + return -1; + } else if((((a27==1)||((((((a3==1)&&((a24==1)||((a17==2)&&((a19==1)&&(((a9==8)&&(a6==1))&&!(a20==1))))))&&(a21==11))&&(a1==12))&&(a16==7))&&(a23==1)))&&((!(a8==1)&&(((a5==5)||(a5==6))&&(input==1)))&&(a6==1)))){ + a24 = 0; + a16 = 8; + a14 = 0; + a5 = 5; + a19 = 3; + a9 = 11; + a6 = 1; + return 26; + } else if((((((a0==1)||((a21==10)&&((!(a14==1)&&((a1==14)&&(a2==1)))||!(a2==1))))&&(a11==1))&&(a6==1))&&((a17==2)&&(((a20==1)&&(((a19==5)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))&&(input==6)))&&(a16==8)))&&(a13==1))))){ + a16 = 7; + a1 = 12; + a7 = 0; + a5 = 4; + a9 = 7; + a19 = 1; + a18 = 0; + return -1; + } else if((((a20==1)&&(((a7==1)||((a2==1)&&(((a9==7)&&(a12==1))&&(a21==10))))&&!(a7==1)))&&(((a16==11)&&(((a13==1)&&(((a1==14)&&((a17==2)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6))))&&(a13==1)))&&(a13==1)))&&(a19==1)))){ + a4 = 0; + a6 = 1; + a5 = 5; + a21 = 11; + a9 = 8; + a1 = 12; + a8 = 0; + a19 = 2; + return 25; + } else if((((!(a20==1)&&((a16==8)&&((((a23==1)&&(!(a7==1)&&((((a1==13)&&(input==3))&&(a17==2))&&!(a26==1))))&&!(a0==1))&&(a19==4))))&&(a5==5))&&(((a21==11)&&(((a12==1)&&(a23==1))||(a4==1)))&&(a9==11)))){ + a20 = 1; + a9 = 7; + a8 = 0; + a6 = 1; + a19 = 1; + a16 = 7; + a28 = 1; + a21 = 10; + a5 = 4; + a1 = 12; + return -1; + } else if((((((((((((input==4)&&(a1==13))&&(a13==1))&&(a6==1))&&(a21==10))&&!(a14==1))&&(a9==9))&&(a5==4))&&!(a20==1))&&(a16==10))&&((((a28==1)&&(((a3==1)||(a18==1))||!(a11==1)))&&(a17==2))&&(a19==5)))){ + a5 = 5; + a21 = 11; + a10 = 1; + a16 = 8; + a0 = 1; + a19 = 4; + a1 = 14; + a20 = 1; + a14 = 1; + return 26; + } else if((((((a21==12)&&((a24==1)||(((a6==1)&&(a17==2))||(a7==1))))&&(a20==1))&&(a19==3))&&((a1==14)&&((a16==10)&&(!(a7==1)&&(!(a24==1)&&((!(a7==1)&&((a12==1)&&((a5==4)&&(input==4))))&&(a9==9)))))))){ + a6 = 1; + a9 = 7; + a1 = 12; + a2 = 1; + a16 = 7; + a21 = 10; + a19 = 1; + return -1; + } else if((((a19==4)&&((a14==1)&&((a17==2)&&(!(a6==1)&&(!(a11==1)&&(!(a13==1)&&(((a5==5)||(a5==6))&&(input==6))))))))&&(((((a20==1)&&((a9==10)&&((!(a23==1)&&(a28==1))&&(a1==14))))&&(a21==10))&&!(a11==1))&&(a16==10)))){ + a19 = 2; + a1 = 12; + a25 = 0; + a23 = 0; + a16 = 7; + a22 = 1; + a9 = 11; + a5 = 5; + return -1; + } else if((((a7==1)&&((a21==11)&&((a1==13)&&((((a5==4)&&(a9==8))||(((a5==5)&&(a9==7))||((a9==7)&&(a5==6))))&&(input==3)))))&&((a17==2)&&((a20==1)&&(((a0==1)&&((((!(a12==1)&&(!(a6==1)&&(a6==1)))&&!(a13==1))&&!(a11==1))&&(a16==7)))&&(a19==3)))))){ + a21 = 10; + a1 = 12; + a16 = 11; + a19 = 1; + a27 = 1; + a9 = 7; + a5 = 4; + a11 = 0; + a2 = 0; + return -1; + } else if((((((a28==1)&&((((a3==1)&&(a20==1))&&(a17==2))&&(a21==10)))||!(a11==1))&&(a2==1))&&((((((!(a24==1)&&((input==5)&&(((a5==5)&&(a9==8))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))))&&(a19==5))&&(a16==11))&&!(a18==1))&&(a2==1))&&(a1==13)))){ + a9 = 10; + a1 = 14; + a5 = 6; + a21 = 11; + a26 = 0; + a19 = 4; + a24 = 0; + a0 = 0; + return 23; + } else if((((a13==1)&&((a17==2)&&(((!(a18==1)&&((a11==1)&&(!(a7==1)&&(!(a18==1)&&((input==4)&&((a5==4)||(a5==5)))))))&&(a20==1))&&(a9==7))))&&((a21==11)&&((a1==12)&&((((a23==1)&&(a19==1))&&!(a7==1))&&(a16==10)))))){ + a5 = 4; + a3 = 1; + a6 = 1; + a13 = 1; + a21 = 10; + a16 = 7; + return -1; + } else if((((a19==5)&&((a3==1)&&(((a16==10)&&(a23==1))&&(a9==9))))&&((((((a12==1)&&((((a5==6)&&(((a21==12)&&(input==4))&&(a6==1)))&&(a17==2))&&(a1==13)))&&(a23==1))&&!(a20==1))&&!(a24==1))&&!(a24==1)))){ + a5 = 5; + a3 = 0; + a29 = 1; + a1 = 14; + a20 = 1; + a15 = 0; + a19 = 3; + a16 = 9; + a9 = 8; + return -1; + } else if((((!(a12==1)||((((a8==1)||(((a6==1)||(a4==1))&&(a16==11)))||(a4==1))&&(a21==11)))&&(a17==2))&&((a20==1)&&(((!(a18==1)&&((a28==1)&&((input==1)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))))&&(a1==13))&&(a19==2))))){ + a5 = 4; + a4 = 0; + a16 = 7; + a1 = 12; + a6 = 1; + a21 = 10; + a3 = 1; + a19 = 1; + a9 = 7; + return -1; + } else if(((!(a13==1)||(((a1==12)&&((a19==1)&&(((!(a8==1)&&(a6==1))&&(a9==7))&&!(a20==1))))||(a26==1)))&&((a17==2)&&((((!(a18==1)&&((a21==12)&&((input==1)&&((a5==5)||(a5==6)))))&&!(a8==1))&&(a13==1))&&(a16==10))))){ + a29 = 0; + a5 = 4; + a9 = 10; + a7 = 1; + a21 = 10; + a16 = 7; + a19 = 2; + a25 = 1; + a20 = 1; + return -1; + } else if((((((!(a6==1)||((a17==2)&&(a2==1)))||(a18==1))&&!(a8==1))&&!(a18==1))&&(((((a1==13)&&((((a21==12)&&(((input==6)&&((a5==4)||(a5==5)))&&!(a20==1)))&&(a16==9))&&(a9==7)))&&(a19==2))&&!(a26==1))&&!(a4==1)))){ + a5 = 4; + a16 = 7; + a21 = 10; + a18 = 1; + a25 = 1; + a8 = 1; + a20 = 1; + a1 = 12; + return -1; + } else if(((((a16==10)&&(((a1==14)&&(!(a27==1)&&((input==4)&&(((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))))))&&!(a8==1)))&&(a3==1))&&(((a28==1)&&((a21==11)&&(!(a11==1)||(((a17==2)&&((a28==1)||(a7==1)))&&(a19==4)))))&&(a20==1)))){ + a1 = 12; + a16 = 7; + a4 = 0; + a19 = 1; + a5 = 4; + a9 = 7; + a21 = 10; + a23 = 1; + a24 = 0; + return -1; + } else if((((!(a8==1)&&(!(a26==1)&&((a11==1)||!(a12==1))))&&(a17==2))&&((!(a20==1)&&((a16==10)&&(((a19==2)&&(!(a27==1)&&(!(a8==1)&&((input==1)&&((((a5==5)&&(a1==14))&&(a9==7))||((((a5==6)&&(a1==13))&&(a9==11))||((a9==7)&&((a1==14)&&(a5==4)))))))))&&!(a24==1))))&&(a21==10)))){ + a9 = 8; + a1 = 13; + a19 = 5; + a13 = 0; + a3 = 0; + a21 = 11; + a27 = 1; + a5 = 5; + return 21; + } else if((((!(a18==1)&&((a1==13)&&(((a17==2)&&(((input==3)&&(a21==11))&&(a5==5)))&&!(a18==1))))&&!(a14==1))&&(!(a18==1)&&(((a20==1)&&((a9==8)&&((a16==7)&&(((a6==1)||!(a6==1))&&(a19==3)))))||(a14==1))))){ + a19 = 1; + a5 = 4; + a9 = 7; + a1 = 12; + a14 = 0; + a4 = 0; + a11 = 1; + a21 = 10; + return -1; + } else if((((a16==8)&&((a19==1)&&((((a21==12)&&((!(a2==1)&&((((a5==5)||(a5==6))&&(input==5))&&!(a28==1)))&&(a20==1)))&&(a4==1))&&(a9==11))))&&((a4==1)&&(((a1==12)&&(((a17==2)&&(a6==1))&&(a24==1)))&&!(a3==1))))){ + a16 = 7; + a13 = 0; + a29 = 1; + a25 = 1; + a5 = 4; + a1 = 14; + a21 = 10; + a9 = 7; + return -1; + } else if((((a3==1)&&(((((!(a14==1)&&((a21==10)&&((a9==8)&&(a28==1))))&&(a19==5))&&(a1==13))||(a26==1))&&!(a7==1)))&&((a16==8)&&(!(a20==1)&&((a2==1)&&(!(a4==1)&&(((input==3)&&(a5==4))&&(a17==2)))))))){ + a20 = 1; + a27 = 0; + a18 = 0; + a19 = 1; + a16 = 7; + a1 = 12; + a9 = 7; + a0 = 0; + return -1; + } else if((((a19==2)&&((!(a3==1)||((a9==11)&&((a28==1)&&(a28==1))))&&(a17==2)))&&(!(a4==1)&&((a16==11)&&((a1==13)&&(((a21==10)&&((a23==1)&&((a23==1)&&((a20==1)&&((input==3)&&((a5==4)||(a5==5)))))))&&!(a14==1))))))){ + a1 = 12; + a5 = 4; + a28 = 1; + a9 = 7; + a19 = 1; + a24 = 0; + a3 = 1; + a16 = 7; + return -1; + } else if((((a19==3)&&(((a21==11)&&((a16==10)&&(((((a23==1)&&(a28==1))||(a18==1))&&(a1==12))&&!(a20==1))))||(a18==1)))&&((a17==2)&&((((a28==1)&&(((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&(a9==11)))&&(a13==1))&&(a2==1))))){ + if((a16==7)){ + a3 = 0; + a9 = 8; + a20 = 1; + a18 = 1; + a5 = 6; + a21 = 10; + a14 = 1; + a16 = 7; + a19 = 1; + }else{ + a15 = 0; + a19 = 1; + a1 = 13; + a21 = 10; + a5 = 4; + a3 = 0; + a16 = 7; + a20 = 1; + } + return 26; + } else if((((a16==11)&&((a19==3)&&((a13==1)&&(!(a26==1)&&(!(a20==1)&&(((((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(input==3))&&(a12==1)))))))&&((a17==2)&&(!(a18==1)&&(!(a7==1)&&((((a13==1)&&(a21==10))&&(a1==13))||(a26==1))))))){ + a5 = 5; + a21 = 12; + a13 = 0; + a19 = 2; + a22 = 1; + a25 = 0; + a16 = 10; + a9 = 11; + a1 = 14; + return -1; + } else if(((((((a9==10)&&(((input==4)&&(((a5==4)||(a5==5))||(a5==6)))&&(a16==9)))&&!(a18==1))&&(a19==5))&&!(a4==1))&&((!(a24==1)&&((a20==1)&&(((a21==12)&&(((!(a12==1)||(a3==1))||(a26==1))&&(a17==2)))&&(a1==12))))||!(a12==1)))){ + a3 = 1; + a19 = 1; + a21 = 10; + a5 = 4; + a8 = 0; + a16 = 7; + a9 = 7; + a11 = 1; + return -1; + } else if((((!(a26==1)&&(((a16==7)&&((a17==2)&&((((input==6)&&(((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))))&&!(a20==1))&&!(a4==1))))&&!(a0==1)))&&(a1==14))&&(((!(a18==1)&&(!(a27==1)&&((a0==1)||(a12==1))))&&(a19==1))&&(a21==11)))){ + a19 = 3; + a9 = 10; + a14 = 0; + a5 = 5; + a21 = 10; + a16 = 11; + a20 = 1; + a13 = 1; + a23 = 1; + return 21; + } else if((((((input==3)&&(((a5==5)&&(a9==9))||(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))&&(a19==3))&&!(a24==1))&&((!(a18==1)&&((a26==1)||((a14==1)||((a17==2)&&((a1==13)&&(((a18==1)||(((a28==1)&&(a16==7))&&(a20==1)))&&(a21==11)))))))&&(a23==1)))){ + a23 = 1; + a5 = 4; + a1 = 12; + a21 = 10; + a19 = 1; + a8 = 0; + a28 = 1; + a9 = 7; + return -1; + } else if(((((a1==12)&&((a19==5)&&((((a3==1)&&(a11==1))&&!(a0==1))||(a18==1))))&&(a9==8))&&((a21==11)&&(!(a20==1)&&((((!(a0==1)&&(!(a14==1)&&((a5==6)&&(input==3))))&&(a17==2))&&(a16==10))&&(a13==1)))))){ + a9 = 11; + a19 = 1; + a12 = 0; + a21 = 10; + a20 = 1; + a1 = 13; + a16 = 7; + a15 = 1; + return -1; + } else if((((((a21==11)&&(!(a8==1)&&(((a20==1)&&(!(a14==1)&&((input==4)&&(((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))))))&&(a17==2))))&&!(a4==1))&&(a28==1))&&((a23==1)&&((a1==13)&&((a19==4)&&((a27==1)||((a16==11)&&(a13==1)))))))){ + a19 = 3; + a20 = 0; + a21 = 10; + a5 = 6; + a9 = 10; + a13 = 1; + a11 = 1; + a16 = 8; + return 25; + } else if(((!(a20==1)&&((a1==12)&&((a13==1)&&((((a4==1)||(a13==1))&&(a16==10))||(a7==1)))))&&((a17==2)&&((a21==11)&&((((((input==4)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10))))&&!(a4==1))&&!(a8==1))&&(a28==1))&&(a19==4)))))){ + a1 = 13; + a22 = 1; + a24 = 1; + a9 = 8; + a19 = 1; + a20 = 1; + a2 = 0; + a16 = 7; + a5 = 5; + a21 = 10; + return -1; + } else if((((((a16==7)&&(((a20==1)&&(((a13==1)||!(a23==1))||(a18==1)))&&!(a18==1)))&&(a21==12))||!(a13==1))&&((a1==12)&&((a17==2)&&(((!(a8==1)&&((a5==4)&&((a9==9)&&(input==4))))&&(a19==1))&&!(a8==1)))))){ + a21 = 10; + a6 = 1; + a9 = 7; + a4 = 0; + a13 = 1; + return -1; + } else if((((!(a27==1)&&((a28==1)&&((a9==10)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==1))&&(a20==1))&&!(a24==1)))))&&(a17==2))&&((a21==11)&&((a11==1)&&((a1==13)&&(((((a11==1)&&(a16==7))&&!(a27==1))||(a4==1))&&(a19==1))))))){ + a8 = 0; + a16 = 8; + a28 = 1; + a21 = 10; + a9 = 8; + a7 = 0; + a5 = 5; + return 26; + } else if(((((!(a6==1)||(((a4==1)||((a5==5)&&(((a1==14)&&(a28==1))&&(a19==5))))&&(a20==1)))&&(a17==2))||!(a6==1))&&((((((a16==7)&&((a9==7)&&(input==5)))&&!(a4==1))&&(a21==10))&&!(a4==1))&&(a12==1)))){ + a5 = 4; + a27 = 0; + a21 = 12; + a9 = 11; + a1 = 12; + a19 = 4; + a8 = 0; + a28 = 1; + return 26; + } else if(((((!(a20==1)&&((((a11==1)&&(a5==4))&&(a21==11))&&(a16==9)))&&(a9==8))&&(a12==1))&&(((!(a0==1)&&((((a19==3)&&(((a1==13)&&(input==1))&&!(a26==1)))&&(a17==2))&&!(a14==1)))&&(a6==1))&&(a12==1)))){ + if((a25==1)){ + a16 = 7; + a25 = 1; + a21 = 10; + a9 = 9; + a10 = 1; + a5 = 6; + a1 = 12; + a0 = 1; + a20 = 1; + a19 = 2; + }else{ + a9 = 11; + a16 = 10; + a21 = 10; + a5 = 5; + a29 = 0; + a18 = 1; + a23 = 0; + a19 = 2; + } + return 21; + } else if(((!(a14==1)&&((((a2==1)&&((a9==7)&&((a20==1)&&(input==5))))&&(a16==11))&&(a17==2)))&&(!(a26==1)&&((a19==2)&&(!(a12==1)||((a1==12)&&((a21==10)&&((((a3==1)||!(a23==1))&&(a13==1))&&(a5==4))))))))){ + a16 = 7; + a4 = 0; + a19 = 1; + a0 = 0; + a26 = 0; + return -1; + } else if((((a16==9)&&(!(a20==1)&&(!(a28==1)||((a19==4)&&(((a12==1)&&(a1==13))&&!(a26==1))))))&&(((a17==2)&&(((a21==11)&&((a23==1)&&((a23==1)&&((((a5==5)||(a5==6))&&(input==6))&&!(a18==1)))))&&!(a4==1)))&&(a9==10)))){ + a29 = 1; + a5 = 5; + a28 = 0; + a19 = 1; + a16 = 7; + a21 = 10; + a23 = 0; + a9 = 11; + a20 = 1; + return 21; + } else if((((a23==1)&&(((!(a0==1)&&(!(a24==1)&&(((a5==6)&&(((input==3)&&(a17==2))&&(a16==10)))&&!(a20==1))))&&(a21==10))&&!(a4==1)))&&((((a19==4)&&(!(a27==1)&&((a9==11)&&(a11==1))))&&(a1==13))||(a24==1)))){ + a10 = 1; + a19 = 1; + a9 = 8; + a18 = 1; + a1 = 12; + a20 = 1; + a16 = 7; + a7 = 1; + return 21; + } else if((((a9==8)&&(((a19==4)&&((a1==14)&&(!(a20==1)&&((a26==1)||((((a12==1)||!(a23==1))||!(a11==1))&&(a3==1))))))&&(a17==2)))&&((((a28==1)&&(!(a18==1)&&((input==5)&&(a21==11))))&&(a16==10))&&(a5==5)))){ + a21 = 10; + a9 = 7; + a5 = 6; + a20 = 1; + a19 = 1; + a11 = 0; + a25 = 0; + a16 = 7; + return 21; + } else if((((a19==2)&&(!(a20==1)&&(((!(a11==1)||((a12==1)||(a0==1)))&&!(a24==1))||!(a6==1))))&&(((a16==7)&&((a21==11)&&((((((input==6)&&((a5==5)||(a5==6)))&&(a12==1))&&(a1==13))&&(a2==1))&&(a9==7))))&&(a17==2)))){ + a20 = 1; + a21 = 10; + a1 = 12; + a19 = 1; + a12 = 1; + a11 = 1; + a5 = 4; + a23 = 1; + return -1; + } else if(((((a21==10)&&(((a17==2)&&((a13==1)||(a27==1)))&&(a2==1)))&&(a19==3))&&((a1==12)&&((a2==1)&&(!(a20==1)&&(!(a24==1)&&((a16==11)&&((a23==1)&&((a23==1)&&((input==5)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5))))))))))))){ + a16 = 8; + a21 = 11; + a9 = 7; + a26 = 1; + a5 = 4; + a11 = 0; + a19 = 1; + a15 = 0; + a1 = 14; + return 25; + } else if((((a3==1)&&((((a20==1)&&((input==4)&&(a19==3)))&&(a9==7))&&!(a8==1)))&&(!(a18==1)&&(!(a18==1)&&(((a5==5)&&((a21==11)&&(((((a3==1)&&(a17==2))&&(a1==12))||!(a28==1))&&(a16==10))))||(a8==1)))))){ + a19 = 1; + a14 = 0; + a5 = 4; + a16 = 7; + a11 = 1; + a18 = 0; + a21 = 10; + return -1; + } else if(((((a19==2)&&((a21==10)&&(((a11==1)&&(a16==9))&&(a9==10))))||!(a23==1))&&((a20==1)&&((a5==5)&&(!(a24==1)&&(!(a27==1)&&((((a1==13)&&((a3==1)&&((a17==2)&&(input==6))))&&(a3==1))&&!(a26==1)))))))){ + a24 = 0; + a9 = 8; + a16 = 8; + a21 = 11; + a11 = 1; + a5 = 6; + a19 = 1; + a2 = 1; + return -1; + } else if((((!(a7==1)&&((((a1==13)&&(((((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==5))&&(a17==2))&&(a19==3))&&(a23==1)))&&(a12==1))&&(a21==10)))&&(a23==1))&&((!(a14==1)&&(((a12==1)&&(a20==1))&&(a16==11)))||(a26==1)))){ + a5 = 4; + a1 = 12; + a19 = 1; + a16 = 7; + a4 = 0; + a9 = 7; + a0 = 0; + a11 = 1; + return -1; + } else if(((((!(a8==1)&&(((!(a18==1)&&((a1==13)&&((a19==3)&&((((a5==5)||(a5==6))&&(input==5))&&(a21==12)))))&&(a9==7))&&!(a4==1)))&&!(a8==1))&&!(a14==1))&&(((((a16==10)&&(a3==1))&&(a17==2))&&(a20==1))&&!(a18==1)))){ + a9 = 9; + a21 = 10; + a19 = 2; + a5 = 5; + a13 = 1; + a16 = 7; + a14 = 0; + a4 = 0; + return 25; + } else if(((((a28==1)&&(((a20==1)&&(!(a0==1)&&((!(a8==1)&&(((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))||((a5==5)&&(a9==8)))&&(input==3)))&&(a1==12))))&&!(a24==1)))&&!(a14==1))&&((a19==4)&&(((((a17==2)&&(a6==1))&&(a16==9))&&(a21==10))&&(a2==1))))){ + a13 = 1; + a24 = 0; + a19 = 1; + a16 = 7; + a5 = 4; + a3 = 1; + a9 = 7; + return -1; + } else if(((((a21==10)&&(((a23==1)&&((a12==1)&&!(a27==1)))&&(a16==7)))&&(a9==7))&&((a1==14)&&((a19==5)&&((a5==5)&&((((a20==1)&&((((input==3)&&(a17==2))&&(a6==1))&&!(a7==1)))&&(a23==1))&&!(a7==1))))))){ + a5 = 6; + a14 = 0; + a19 = 4; + a1 = 13; + a23 = 1; + a21 = 12; + a7 = 0; + return 26; + } else if((((a21==10)&&((a17==2)&&(((a11==1)&&(((a2==1)||!(a2==1))&&(a16==10)))||!(a6==1))))&&((a20==1)&&((a19==3)&&(((!(a26==1)&&(!(a0==1)&&((a12==1)&&((input==5)&&(a5==5)))))&&(a9==9))&&(a1==12)))))){ + a19 = 1; + a9 = 7; + a28 = 1; + a5 = 4; + a16 = 7; + a13 = 1; + a26 = 0; + return -1; + } else if((((a3==1)&&((!(a7==1)&&((a5==6)&&((((a17==2)&&((!(a20==1)&&(input==1))&&(a1==13)))&&(a16==8))&&(a9==10))))&&(a19==4)))&&((a0==1)||(((((a6==1)&&(a28==1))&&(a12==1))&&(a21==10))||!(a3==1))))){ + a20 = 1; + a4 = 0; + a19 = 1; + a1 = 12; + a16 = 7; + a3 = 1; + a9 = 7; + a5 = 4; + a13 = 1; + return -1; + } else if(((((((a21==12)&&((a3==1)&&!(a20==1)))&&(a17==2))||!(a3==1))||!(a6==1))&&((((((a16==7)&&((a19==1)&&((input==4)&&((((a9==11)&&((a5==6)&&(a1==13)))||((a9==7)&&((a5==4)&&(a1==14))))||(((a5==5)&&(a1==14))&&(a9==7))))))&&!(a4==1))&&(a2==1))&&!(a27==1))&&(a2==1)))){ + a21 = 11; + a11 = 1; + a1 = 14; + a20 = 1; + a0 = 0; + a24 = 0; + a16 = 10; + a9 = 8; + a19 = 4; + a5 = 6; + return 25; + } else if((((((a17==2)&&((a6==1)&&(!(a6==1)||((a28==1)&&(a19==2)))))||!(a3==1))&&(a21==12))&&(!(a0==1)&&(((!(a18==1)&&(((input==6)&&((((a1==12)&&(a5==6))&&(a9==11))||((a9==7)&&((a1==13)&&(a5==4)))))&&(a20==1)))&&!(a4==1))&&(a16==7))))){ + a5 = 4; + a9 = 10; + a1 = 14; + a16 = 9; + a23 = 1; + a6 = 1; + a21 = 10; + a11 = 1; + return 21; + } else if((((a1==13)&&((a5==5)&&((((a11==1)&&(a19==3))&&(a20==1))&&(a17==2))))&&(!(a4==1)&&(((a21==11)&&((((a6==1)&&(!(a27==1)&&((a6==1)&&((a16==7)&&(input==6)))))&&(a28==1))&&!(a4==1)))&&(a9==11))))){ + a19 = 1; + a12 = 1; + a9 = 7; + a8 = 0; + a13 = 1; + a5 = 4; + a1 = 14; + a16 = 8; + return 23; + } else if(((((((a6==1)&&(((a0==1)||((a19==4)&&(a13==1)))&&(a1==14)))&&(a16==7))&&(a21==10))&&(a28==1))&&((a23==1)&&((((a6==1)&&((a11==1)&&((input==1)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5))))))&&(a20==1))&&(a17==2))))){ + a21 = 12; + a27 = 0; + a1 = 12; + a19 = 1; + a5 = 6; + a9 = 10; + a23 = 1; + a14 = 0; + return 22; + } else if(((((a21==10)&&((a23==1)&&((a12==1)&&((!(a18==1)&&(((a5==4)||(a5==5))&&(input==4)))&&!(a26==1)))))&&(a9==9))&&(!(a20==1)&&(((a17==2)&&((a11==1)&&((a4==1)||((a19==1)&&((a1==14)&&(a2==1))))))&&(a16==10))))){ + a9 = 7; + a19 = 2; + a16 = 7; + a5 = 6; + a26 = 1; + a20 = 1; + a1 = 12; + a29 = 1; + return -1; + } else if(((!(a20==1)&&((((a17==2)&&(((((a9==11)&&((a5==6)&&(a1==12)))||((a9==7)&&((a5==4)&&(a1==13))))||((a9==7)&&((a1==13)&&(a5==5))))&&(input==6)))&&!(a18==1))&&!(a4==1)))&&((a16==10)&&(((a19==5)&&((a6==1)&&(((a4==1)||(!(a26==1)&&(a6==1)))||(a26==1))))&&(a21==10))))){ + if((a8==1)){ + a9 = 10; + a29 = 1; + a5 = 4; + a18 = 1; + a19 = 2; + a27 = 1; + a1 = 13; + a16 = 9; + a20 = 1; + }else{ + a20 = 1; + a5 = 5; + a8 = 1; + a12 = 0; + a21 = 12; + a1 = 12; + a24 = 1; + a9 = 8; + } + return 25; + } else if((((a17==2)&&(((a14==1)&&(!(a2==1)&&((input==4)&&((a5==5)||(a5==6)))))&&(a21==12)))&&((((((a24==1)&&((((a16==8)&&(!(a11==1)&&(a6==1)))&&!(a13==1))&&(a8==1)))&&(a19==1))&&(a1==12))&&(a9==11))&&(a20==1)))){ + a5 = 6; + a1 = 14; + a10 = 0; + a16 = 7; + a28 = 0; + a27 = 1; + a21 = 10; + return 25; + } else if(((((!(a20==1)&&((a11==1)&&(a2==1)))&&(a17==2))&&!(a4==1))&&((a21==10)&&((a16==11)&&(((a11==1)&&(((a1==13)&&(((a23==1)&&((input==3)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))))&&!(a4==1)))&&(a19==4)))&&(a6==1)))))){ + if((a0==1)){ + a16 = 7; + a11 = 0; + a3 = 0; + a9 = 9; + a28 = 0; + a1 = 12; + a5 = 6; + a19 = 1; + }else{ + a16 = 7; + a19 = 1; + a2 = 0; + a9 = 7; + a28 = 0; + a1 = 14; + a20 = 1; + a11 = 0; + a5 = 5; + } + return 26; + } else if((((((a12==1)&&(!(a7==1)&&(!(a24==1)&&(!(a7==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==5))))))&&(a12==1))&&(a9==11))&&((a1==12)&&(!(a20==1)&&((((a21==11)&&((a16==8)&&((a2==1)&&(a19==4))))&&(a17==2))&&(a11==1)))))){ + a1 = 14; + a20 = 1; + a19 = 1; + a21 = 12; + a5 = 6; + a23 = 1; + a11 = 1; + a9 = 8; + a26 = 0; + return 21; + } else if(((((a5==4)&&(((((a7==1)&&((a21==10)&&(input==3)))&&!(a13==1))&&!(a23==1))&&(a7==1)))&&(a19==4))&&((a17==2)&&(!(a11==1)&&((((((a6==1)&&(a9==11))&&(a1==13))&&(a16==9))&&(a18==1))&&(a20==1)))))){ + a19 = 1; + a10 = 1; + a1 = 12; + a16 = 7; + a12 = 0; + a9 = 8; + a3 = 0; + return 22; + } else if((((a13==1)&&((a24==1)||(((a19==1)&&((a1==14)&&((a11==1)&&(a20==1))))&&(a21==11))))&&((((a12==1)&&(((((a9==8)&&(((a5==4)||(a5==5))&&(input==5)))&&(a16==9))&&(a17==2))&&(a28==1)))&&!(a14==1))&&!(a14==1)))){ + a16 = 7; + a28 = 1; + a9 = 7; + a21 = 10; + a1 = 12; + a27 = 0; + a3 = 1; + a5 = 4; + return -1; + } else if((((a1==14)&&(!(a23==1)||(((a14==1)||(((a27==1)||(a2==1))||(a24==1)))&&(a20==1))))&&(((a16==10)&&(((a21==11)&&((a9==7)&&((a5==4)&&(!(a26==1)&&((a17==2)&&(input==4))))))&&!(a8==1)))&&(a19==3)))){ + a19 = 1; + a6 = 1; + a16 = 7; + a21 = 10; + a28 = 1; + a0 = 0; + a1 = 12; + return -1; + } else if((((a24==1)||(!(a8==1)&&(!(a3==1)||(((a28==1)&&(a13==1))||(a4==1)))))&&((a17==2)&&((a21==11)&&(((a9==7)&&((!(a24==1)&&((a1==13)&&((a19==2)&&((input==5)&&((a5==5)||(a5==6))))))&&(a16==8)))&&!(a20==1)))))){ + a5 = 5; + a9 = 9; + a13 = 1; + a8 = 0; + a21 = 10; + a20 = 1; + a19 = 5; + a28 = 1; + a1 = 12; + return 26; + } else if((((!(a26==1)&&((a1==14)&&((a23==1)&&((((a17==2)&&((a21==10)&&((input==4)&&(a16==9))))&&!(a8==1))&&!(a0==1)))))&&!(a20==1))&&(((a13==1)&&((((a2==1)&&(a9==7))&&(a19==4))&&(a5==5)))&&(a28==1)))){ + a1 = 12; + a20 = 1; + a19 = 2; + a10 = 1; + a9 = 10; + a22 = 0; + a16 = 10; + a24 = 1; + return -1; + } else if(((((a19==4)&&((a1==12)&&((a17==2)&&((a13==1)&&((a3==1)&&(a21==10))))))&&(a16==8))&&((((!(a27==1)&&((a11==1)&&(!(a7==1)&&((input==6)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))))))&&(a23==1))&&(a20==1))&&(a3==1)))){ + a5 = 4; + a16 = 7; + a13 = 1; + a6 = 1; + a19 = 1; + a23 = 1; + a9 = 7; + return -1; + } else if((((a16==11)&&((a23==1)&&(!(a4==1)&&(((a26==1)||(((!(a8==1)&&((a13==1)&&(a19==4)))&&(a9==10))&&(a20==1)))||(a7==1)))))&&((((((input==4)&&((a5==5)||(a5==6)))&&(a1==12))&&(a17==2))&&(a2==1))&&(a21==12)))){ + a5 = 4; + a19 = 1; + a9 = 7; + a13 = 1; + a24 = 0; + a27 = 0; + a21 = 10; + a16 = 7; + return -1; + } else if(((!(a4==1)&&(((a3==1)&&((((a5==6)&&((a3==1)&&(a1==13)))&&(a20==1))&&(a19==1)))&&(a17==2)))&&((a11==1)&&((((a21==12)&&((((input==3)&&(a16==7))&&(a9==10))&&(a2==1)))&&!(a7==1))&&(a11==1))))){ + a5 = 4; + a1 = 12; + a28 = 1; + a21 = 10; + a9 = 7; + a13 = 1; + a14 = 0; + return -1; + } else if((((a16==7)&&(((!(a27==1)&&((a23==1)&&(a21==11)))&&(a23==1))&&(a17==2)))&&((a9==7)&&(((((!(a18==1)&&(((a19==1)&&((input==5)&&((a5==4)||(a5==5))))&&(a3==1)))&&(a13==1))&&!(a27==1))&&(a1==12))&&(a20==1))))){ + a4 = 0; + a19 = 5; + a26 = 0; + a6 = 1; + a5 = 4; + a21 = 12; + a9 = 10; + return 23; + } else if((((a3==1)&&((a3==1)&&(((a17==2)&&((((((((a1==14)&&(a5==4))&&(a9==7))||((((a1==13)&&(a5==5))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==13)))))&&(input==1))&&(a16==10))&&(a21==11))&&(a19==5)))&&!(a24==1))))&&((!(a4==1)&&(((a2==1)&&!(a20==1))||(a4==1)))||(a0==1)))){ + a5 = 5; + a20 = 1; + a29 = 0; + a1 = 13; + a16 = 8; + a27 = 1; + a19 = 4; + a13 = 0; + a9 = 8; + return 25; + } else if(((((((a2==1)&&(a12==1))||!(a6==1))||(a7==1))&&(a1==13))&&(((a19==5)&&((a20==1)&&((a16==9)&&(((((a23==1)&&((((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&(input==5)))&&(a17==2))&&!(a14==1))&&!(a8==1)))))&&(a21==11)))){ + a16 = 7; + a26 = 0; + a19 = 2; + a5 = 4; + a8 = 0; + a21 = 10; + a9 = 10; + return 21; + } else if(((!(a27==1)&&((((a20==1)&&(((a11==1)&&(a16==8))&&(a21==10)))||!(a13==1))&&!(a18==1)))&&((!(a4==1)&&((((a19==5)&&((((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a5==4)&&(a9==11)))&&(input==1))&&!(a7==1)))&&(a17==2))&&(a1==12)))&&!(a8==1)))){ + a12 = 1; + a9 = 9; + a5 = 5; + a16 = 10; + a19 = 2; + a6 = 1; + return 21; + } else if((((a6==1)&&(((((a1==14)&&((a6==1)&&((a16==11)&&(input==5))))&&!(a27==1))&&(a21==10))&&(a17==2)))&&(((a19==5)&&(((a5==4)&&((!(a18==1)&&((a20==1)&&(a12==1)))||!(a12==1)))&&!(a8==1)))&&(a9==11)))){ + a9 = 10; + a16 = 7; + a11 = 1; + a4 = 0; + a1 = 13; + a2 = 1; + a19 = 2; + return 21; + } else if((((((a1==13)&&((a28==1)&&((a19==1)&&(a28==1))))&&(a16==8))&&(a17==2))&&(((((a28==1)&&((!(a26==1)&&(!(a0==1)&&((input==1)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))))&&!(a27==1)))&&!(a20==1))&&(a2==1))&&(a21==11)))){ + a20 = 1; + a23 = 1; + a5 = 4; + a9 = 7; + a21 = 10; + a12 = 1; + a19 = 5; + a7 = 0; + return -1; + } else if((((((a20==1)&&(((a9==7)&&((a4==1)||(!(a26==1)&&(a6==1))))||(a7==1)))&&(a16==7))&&(a17==2))&&(((a21==10)&&((a19==3)&&(((a6==1)&&(!(a27==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5))))&&(a2==1))))&&(a1==13)))){ + a24 = 0; + a9 = 8; + a14 = 0; + a5 = 6; + a18 = 0; + a21 = 11; + a1 = 12; + a19 = 1; + return 23; + } else if((((a1==13)&&((a21==12)&&((((!(a0==1)&&((a2==1)&&((a6==1)&&(((a16==7)&&(input==1))&&(a2==1)))))&&(a5==6))&&!(a0==1))&&(a9==10))))&&((a27==1)||((a17==2)&&(((a13==1)&&(a19==2))&&(a20==1)))))){ + a21 = 10; + a9 = 7; + a28 = 1; + a1 = 12; + a5 = 4; + a19 = 1; + a0 = 0; + a3 = 1; + return -1; + } else if((((!(a24==1)&&((((a1==12)&&(!(a24==1)&&((((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))&&(input==4))))&&!(a8==1))&&(a6==1)))&&(a21==11))&&(((a19==5)&&((a16==9)&&((((a11==1)&&(a17==2))&&(a20==1))&&!(a18==1))))||(a26==1)))){ + a11 = 1; + a13 = 1; + a5 = 4; + a16 = 7; + a21 = 10; + a19 = 1; + a9 = 7; + return -1; + } else if((((a19==4)&&(((a23==1)&&((a28==1)&&(((a5==5)||(a5==6))&&(input==4))))&&!(a8==1)))&&(((((a17==2)&&((a6==1)&&((a13==1)&&((a21==11)&&(((a12==1)&&(a20==1))&&(a28==1))))))&&(a16==11))&&(a9==10))&&(a1==12)))){ + a2 = 1; + a5 = 4; + a19 = 1; + a9 = 7; + a16 = 7; + a21 = 10; + a11 = 1; + return -1; + } else if(((((a12==1)&&((a1==14)&&(((input==4)&&(((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))))&&(a13==1))))&&(a17==2))&&((a3==1)&&((a14==1)||((a16==8)&&(!(a4==1)&&(!(a18==1)&&(((a21==11)&&((a13==1)&&(a19==4)))&&(a20==1))))))))){ + a1 = 12; + a13 = 1; + a5 = 4; + a4 = 0; + a19 = 1; + a23 = 1; + a21 = 10; + a16 = 7; + a9 = 7; + return -1; + } else if((((!(a4==1)&&((((a1==13)&&(!(a4==1)&&(((a5==6)&&((a17==2)&&(input==1)))&&!(a14==1))))&&(a16==8))&&!(a8==1)))&&(a9==10))&&(!(a20==1)&&((a19==2)&&((((a12==1)||!(a2==1))&&(a21==10))||!(a12==1)))))){ + a28 = 1; + a5 = 4; + a14 = 0; + a1 = 12; + a16 = 7; + a19 = 1; + a20 = 1; + a9 = 7; + return -1; + } else if((((((a9==8)&&((a17==2)&&((((((a21==12)&&(!(a6==1)||(!(a8==1)&&(a3==1))))||(a7==1))&&(a1==12))||!(a12==1))&&!(a20==1))))&&(a16==9))&&(a19==3))&&((((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a2==1))&&(a13==1)))){ + a1 = 13; + a0 = 1; + a16 = 7; + a19 = 4; + a5 = 5; + a9 = 9; + a12 = 0; + a21 = 11; + a20 = 1; + a11 = 0; + return -1; + } else if(((((!(a27==1)&&(((a5==6)&&((a16==11)&&(((!(a14==1)&&((a20==1)&&((input==4)&&(a19==4))))&&(a9==7))&&!(a24==1))))&&!(a0==1)))&&(a17==2))&&(a21==12))&&((a1==13)&&(((a23==1)&&(a6==1))||!(a3==1))))){ + a13 = 1; + a5 = 4; + a21 = 10; + a6 = 1; + a1 = 12; + a16 = 7; + a26 = 0; + a19 = 1; + return -1; + } else if((((a16==10)&&((!(a18==1)&&(!(a26==1)&&((((a23==1)&&((((input==3)&&(a21==11))&&(a19==5))&&(a20==1)))&&!(a4==1))&&!(a27==1))))&&(a5==6)))&&((a9==8)&&((a1==13)&&(((a3==1)||!(a11==1))&&(a17==2)))))){ + a16 = 7; + a1 = 12; + a19 = 1; + a27 = 0; + a5 = 4; + a13 = 1; + a23 = 1; + a21 = 10; + a9 = 7; + return -1; + } else if((((!(a20==1)&&((a19==4)&&(((a1==14)&&(((a16==10)&&(a28==1))||(a14==1)))&&!(a0==1))))||!(a12==1))&&((((a2==1)&&(((a17==2)&&((((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&(input==4)))&&!(a26==1)))&&(a21==10))&&!(a24==1)))){ + a6 = 0; + a16 = 7; + a19 = 1; + a1 = 12; + a5 = 5; + a20 = 1; + a3 = 0; + a23 = 0; + a9 = 9; + return -1; + } else if(((((a1==12)&&((a21==10)&&((a19==4)&&((a16==10)&&((a17==2)&&(a28==1))))))||(a8==1))&&(!(a4==1)&&((a12==1)&&((a20==1)&&((a3==1)&&((a13==1)&&(!(a4==1)&&((input==6)&&((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9)))))))))))){ + a24 = 0; + a8 = 0; + a21 = 11; + a16 = 9; + a27 = 0; + a5 = 6; + a9 = 7; + return 21; + } else if((((a3==1)&&((a18==1)||(((a1==13)&&((a5==5)&&(a2==1)))||!(a13==1))))&&(((a13==1)&&((((((!(a26==1)&&((a17==2)&&(input==5)))&&!(a20==1))&&(a19==1))&&(a9==8))&&(a16==9))&&(a21==12)))&&!(a8==1)))){ + a16 = 7; + a5 = 6; + a10 = 1; + a15 = 0; + a19 = 2; + a20 = 1; + a1 = 12; + a8 = 1; + a21 = 10; + return -1; + } else if((((a19==4)&&((((input==4)&&((a5==5)||(a5==6)))&&(a3==1))&&(a28==1)))&&(((a2==1)&&((a23==1)&&((((a17==2)&&((!(a24==1)&&((!(a20==1)&&(a13==1))&&(a1==13)))&&!(a24==1)))&&(a9==10))&&(a16==9))))&&(a21==11)))){ + if((a14==1)){ + a9 = 9; + a5 = 6; + a27 = 1; + a20 = 1; + a19 = 1; + a10 = 1; + a0 = 1; + a16 = 7; + a1 = 14; + a21 = 10; + }else{ + a21 = 10; + a19 = 2; + a15 = 0; + a18 = 1; + a1 = 12; + a20 = 1; + a8 = 1; + a16 = 7; + a5 = 6; + a9 = 9; + } + return -1; + } else if((((((a20==1)&&(((a9==7)&&((a19==2)&&((input==3)&&((a5==4)||(a5==5)))))&&!(a4==1)))&&(a16==9))&&(a1==13))&&(((((!(a14==1)&&((a28==1)&&((a7==1)||(a13==1))))||(a7==1))&&(a17==2))&&(a13==1))&&(a21==10)))){ + a12 = 1; + a16 = 10; + a19 = 1; + a8 = 0; + a1 = 14; + a5 = 4; + a0 = 0; + return 21; + } else if((((!(a27==1)&&((a1==13)&&((a20==1)&&(((((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))&&(input==6))&&(a17==2))&&(a19==3)))))&&!(a0==1))&&((a14==1)||(((a16==9)&&((((a8==1)||(a23==1))&&(a21==10))||(a0==1)))||!(a12==1))))){ + a1 = 12; + a16 = 7; + a27 = 0; + a5 = 4; + a3 = 1; + a19 = 1; + a9 = 7; + a13 = 1; + return -1; + } else if((((a2==1)&&((a19==5)&&((a23==1)&&(!(a0==1)&&(((a1==13)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==6)))&&(a11==1))))))&&(((a14==1)||(((a2==1)&&((a17==2)&&((a23==1)&&!(a20==1))))&&(a21==10)))&&(a16==8)))){ + a5 = 6; + a1 = 12; + a16 = 9; + a0 = 0; + a19 = 4; + a20 = 1; + a9 = 9; + a26 = 0; + return 25; + } else if((((a28==1)&&((a9==9)&&((a5==4)&&(((a6==1)&&(a12==1))||!(a2==1)))))&&(((((a3==1)&&(((a16==10)&&((!(a14==1)&&((input==4)&&(a20==1)))&&(a19==5)))&&!(a18==1)))&&(a17==2))&&(a21==11))&&(a1==13)))){ + a19 = 1; + a6 = 1; + a0 = 0; + a9 = 7; + a12 = 1; + a21 = 10; + a16 = 7; + a1 = 12; + return -1; + } else if(((((((a16==8)&&((((a11==1)||(a7==1))&&(a21==11))&&(a17==2)))||(a24==1))&&(a19==3))&&!(a7==1))&&((a2==1)&&((a1==13)&&((a9==8)&&((a23==1)&&(((((a5==4)||(a5==5))&&(input==3))&&!(a14==1))&&!(a20==1)))))))){ + a6 = 1; + a20 = 1; + a1 = 12; + a19 = 1; + a16 = 7; + a21 = 10; + a7 = 0; + a4 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if((((a1==13)&&(((a19==4)&&(!(a24==1)&&((!(a4==1)&&(((a18==1)||(a12==1))||!(a3==1)))&&(a5==6))))&&(a21==12)))&&((a9==8)&&((((a2==1)&&(((a16==9)&&(input==6))&&(a20==1)))&&(a6==1))&&(a17==2))))){ + a9 = 10; + a16 = 7; + a27 = 0; + a19 = 2; + a6 = 1; + a24 = 0; + a21 = 10; + return 25; + } else if((((a3==1)&&((!(a26==1)&&((a20==1)&&((a5==6)&&((a1==12)&&((a16==9)&&(((a9==11)&&(input==1))&&!(a8==1)))))))&&(a13==1)))&&((((a19==3)&&(((a13==1)||!(a2==1))&&!(a14==1)))&&(a21==12))&&(a17==2)))){ + a24 = 0; + a19 = 1; + a21 = 10; + a9 = 8; + a4 = 0; + a6 = 1; + a5 = 5; + a16 = 10; + return 21; + } else if(((((a13==1)&&(!(a14==1)&&((!(a8==1)&&(((a9==8)&&(((a1==13)&&(input==3))&&(a16==11)))&&!(a7==1)))&&(a3==1))))&&(a19==3))&&((a17==2)&&((a21==12)&&(((a27==1)||((a28==1)&&(a20==1)))&&(a5==4)))))){ + a16 = 7; + a12 = 1; + a9 = 7; + a23 = 1; + a19 = 1; + a1 = 12; + a26 = 0; + a21 = 10; + return -1; + } else if((((((a13==1)&&(!(a20==1)&&((((((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&(a17==2))&&(a12==1))&&(a1==14))&&(a6==1))))&&!(a7==1))&&(a19==3))&&(!(a11==1)||((a21==11)&&(((a16==7)&&((a9==8)&&(a28==1)))||(a18==1)))))){ + a20 = 1; + a5 = 4; + a19 = 1; + a21 = 10; + a3 = 1; + a11 = 1; + a9 = 7; + a1 = 12; + return -1; + } else if(((((a21==11)&&(((a13==1)&&((a17==2)&&(!(a20==1)&&(a2==1))))&&(a16==9)))||(a4==1))&&((!(a27==1)&&((a19==4)&&(((a9==8)&&((!(a0==1)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6))))&&(a1==13)))&&!(a27==1))))&&!(a4==1)))){ + a19 = 3; + a10 = 0; + a1 = 12; + a9 = 10; + a21 = 12; + a12 = 0; + a16 = 8; + a15 = 0; + a5 = 5; + return 21; + } else if((((a23==1)&&((((a9==7)&&(!(a26==1)&&(((!(a28==1)||(a12==1))&&(a16==9))&&(a1==14))))&&(a17==2))&&(a28==1)))&&((a19==3)&&(((a21==10)&&((((input==3)&&!(a20==1))&&(a6==1))&&!(a26==1)))&&(a5==5))))){ + a5 = 6; + a21 = 12; + a9 = 11; + a20 = 1; + a23 = 0; + a16 = 10; + a19 = 2; + a22 = 0; + a26 = 1; + return 23; + } else if((((a12==1)&&(((((((a5==4)&&((a21==11)&&(input==4)))&&(a20==1))&&(a9==7))&&(a16==11))&&(a1==13))&&!(a8==1)))&&((a26==1)||(!(a11==1)||(!(a7==1)&&(((a19==1)&&((a6==1)&&!(a14==1)))&&(a17==2))))))){ + a1 = 12; + a21 = 10; + a4 = 0; + a16 = 7; + a7 = 0; + a14 = 0; + return -1; + } else if((((a23==1)&&((a11==1)&&((!(a24==1)&&(((a17==2)&&(!(a20==1)&&((a16==10)&&((a21==12)&&((input==5)&&((((a1==13)&&(a5==6))&&(a9==11))||(((a1==14)&&(a5==4))&&(a9==7))))))))&&(a19==3)))&&!(a18==1))))&&(((a6==1)&&!(a18==1))&&!(a27==1)))){ + a19 = 1; + a9 = 9; + a15 = 0; + a1 = 14; + a16 = 7; + a21 = 10; + a29 = 0; + a20 = 1; + a5 = 6; + a25 = 1; + return 21; + } else if((((((((a11==1)&&((a2==1)&&(a1==12)))&&!(a4==1))&&(a19==5))||(a8==1))&&(a20==1))&&(!(a18==1)&&((a17==2)&&(((((a16==10)&&((a21==10)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6)))))&&!(a27==1))&&(a9==8))&&!(a0==1)))))){ + if((a28==1)){ + a16 = 8; + a3 = 1; + a8 = 0; + a5 = 6; + a20 = 0; + a19 = 1; + a2 = 1; + }else{ + a1 = 13; + a27 = 0; + a5 = 6; + a26 = 0; + a2 = 1; + a9 = 11; + a16 = 8; + a21 = 12; + } + return -1; + } else if((((a16==9)&&((a1==12)&&((a9==7)&&((((((a17==2)&&(input==1))&&(a12==1))&&(a12==1))&&!(a20==1))&&(a21==12)))))&&((a19==3)&&((((((a28==1)||!(a28==1))&&(a28==1))&&!(a7==1))&&!(a18==1))&&(a5==6))))){ + a5 = 5; + a14 = 1; + a21 = 10; + a19 = 1; + a16 = 7; + a7 = 1; + a1 = 13; + a13 = 0; + a20 = 1; + return 25; + } else if(((((a12==1)&&(!(a24==1)&&((a21==11)&&((a9==8)&&((a3==1)&&(a13==1))))))&&(a1==14))&&((((a17==2)&&(!(a27==1)&&(!(a18==1)&&(!(a0==1)&&((a16==9)&&(((a5==4)||(a5==5))&&(input==4)))))))&&(a19==1))&&!(a20==1)))){ + a25 = 0; + a7 = 1; + a15 = 1; + a5 = 4; + a9 = 7; + a1 = 13; + a20 = 1; + a19 = 5; + a21 = 10; + return -1; + } else if(((!(a24==1)&&((a13==1)&&(((a16==8)&&(((!(a14==1)&&((a17==2)&&((a19==4)&&(input==4))))&&(a1==14))&&!(a27==1)))&&(a5==4))))&&((!(a27==1)&&((a9==9)&&(!(a20==1)&&((a12==1)&&(a21==11)))))||!(a12==1)))){ + a23 = 1; + a20 = 1; + a0 = 0; + a13 = 1; + a9 = 7; + a21 = 10; + a19 = 1; + a16 = 7; + a1 = 12; + return -1; + } else if(((!(a20==1)&&((a3==1)&&(((!(a8==1)&&(((a1==14)&&((input==6)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11)))))&&(a17==2)))&&(a11==1))&&(a16==9))))&&((a23==1)&&(!(a27==1)&&(!(a12==1)||(((a21==11)&&(a28==1))&&(a19==2))))))){ + a1 = 12; + a28 = 0; + a14 = 1; + a16 = 7; + a20 = 1; + a5 = 4; + a29 = 1; + a9 = 7; + a21 = 10; + return -1; + } else if((((a17==2)&&(((a20==1)&&((a1==14)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6))))&&!(a18==1)))&&((((a9==11)&&((((a0==1)||(((a19==3)&&(!(a6==1)||(a6==1)))&&!(a4==1)))&&(a16==9))||!(a12==1)))&&(a21==10))||(a26==1)))){ + a19 = 1; + a5 = 4; + a0 = 0; + a27 = 0; + a9 = 7; + a6 = 1; + a16 = 7; + a1 = 12; + return -1; + } else if(((!(a20==1)&&(((((((a5==5)||(a5==6))&&(input==6))&&(a1==14))&&(a3==1))&&(a21==11))&&(a28==1)))&&((a16==7)&&((((a18==1)||(!(a0==1)&&((((a11==1)||(a14==1))&&(a9==10))&&(a19==5))))||(a24==1))&&(a17==2))))){ + a3 = 1; + a19 = 2; + a20 = 1; + a11 = 1; + a5 = 5; + a9 = 9; + a16 = 8; + return 25; + } else if((((((((a16==9)&&(((((a9==10)&&(input==5))&&!(a18==1))&&!(a14==1))&&(a2==1)))&&!(a20==1))&&(a5==4))&&(a17==2))&&(a19==4))&&((a21==11)&&((!(a0==1)&&((a8==1)||((a27==1)||(a12==1))))&&(a1==13))))){ + if((a6==1)){ + a7 = 1; + a16 = 7; + a9 = 9; + a12 = 0; + a5 = 6; + a28 = 0; + a19 = 1; + a20 = 1; + a21 = 10; + }else{ + a22 = 0; + a6 = 0; + a9 = 9; + a20 = 1; + a11 = 0; + a16 = 8; + a21 = 10; + } + return 26; + } else if((((a19==1)&&((a21==10)&&((((!(a23==1)&&(((a16==8)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a4==1)))&&!(a3==1)))&&!(a13==1))&&(a17==2))&&(a9==10))))&&((a1==13)&&((!(a13==1)&&(!(a23==1)&&(a11==1)))&&!(a20==1))))){ + a5 = 5; + a22 = 1; + a19 = 3; + a20 = 1; + a1 = 14; + a9 = 9; + a21 = 12; + a8 = 1; + return -1; + } else if((((a6==1)&&((a3==1)&&((a1==12)&&((a17==2)&&(((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a5==5)&&(a9==10)))&&(input==1))))))&&(((a23==1)&&(((a24==1)||((a16==8)&&(!(a20==1)&&((a21==12)&&((a6==1)&&(a19==2))))))&&(a28==1)))||!(a2==1)))){ + if((a6==1)){ + a9 = 11; + a19 = 4; + a5 = 6; + a28 = 0; + a25 = 1; + a29 = 1; + a20 = 1; + a16 = 9; + }else{ + a16 = 7; + a9 = 7; + a21 = 10; + a0 = 1; + a25 = 1; + a20 = 1; + a5 = 4; + a19 = 1; + } + return -1; + } else if((((((!(a6==1)||((((a11==1)&&!(a4==1))||!(a28==1))&&(a19==1)))||!(a2==1))&&(a21==12))&&(a16==7))&&((a12==1)&&((a1==14)&&(((a13==1)&&(((input==5)&&((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a5==4)&&(a9==11))))&&(a17==2)))&&(a20==1)))))){ + a1 = 12; + a6 = 1; + a19 = 2; + a16 = 9; + a21 = 10; + a13 = 1; + a9 = 8; + a5 = 4; + a26 = 0; + return 23; + } else if(((!(a14==1)&&(!(a0==1)&&(((a20==1)&&(((a23==1)&&((a17==2)&&((input==4)&&(((a9==8)&&(a5==4))||(((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))))))&&(a16==8)))&&(a1==12))))&&(!(a11==1)||(!(a12==1)||((((a19==1)&&(a23==1))&&(a23==1))&&(a21==11)))))){ + a6 = 1; + a21 = 10; + a18 = 0; + a7 = 0; + a5 = 4; + a16 = 7; + a9 = 7; + return -1; + } else if(((!(a7==1)&&((a11==1)&&((((!(a18==1)&&((a19==1)&&((input==5)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))))&&(a21==11))&&(a16==10))&&(a1==12))))&&(!(a13==1)||(!(a3==1)||(((a20==1)&&((a17==2)&&(a2==1)))&&!(a26==1)))))){ + a2 = 1; + a5 = 5; + a23 = 1; + a19 = 4; + a21 = 10; + a9 = 10; + a16 = 7; + a8 = 0; + return 25; + } else if(((!(a20==1)&&(!(a14==1)&&((((!(a0==1)&&((a4==1)||(a23==1)))&&(a1==14))&&(a19==2))&&(a16==8))))&&(!(a7==1)&&(((a9==11)&&(((((input==6)&&(a5==5))&&(a21==10))&&(a17==2))&&(a28==1)))&&(a23==1))))){ + a21 = 11; + a1 = 12; + a16 = 11; + a20 = 1; + a27 = 0; + a14 = 0; + a9 = 7; + a19 = 3; + return 25; + } else if((((a6==1)&&(((a21==11)&&((a20==1)&&((a12==1)&&((a17==2)&&((((((a1==12)&&(a5==5))&&(a9==11))||(((a5==6)&&(a1==12))&&(a9==11)))||((a9==7)&&((a1==13)&&(a5==4))))&&(input==6))))))&&(a16==9)))&&((!(a2==1)||(((!(a0==1)&&(a6==1))||(a7==1))&&!(a14==1)))&&(a19==1)))){ + a19 = 4; + a0 = 0; + a5 = 6; + a9 = 8; + a16 = 10; + a1 = 12; + a27 = 0; + return 21; + } else if((((((a19==3)&&(!(a8==1)&&((((a11==1)&&(a2==1))&&(a9==11))&&!(a0==1))))||(a24==1))&&!(a20==1))&&((a17==2)&&((a21==10)&&((a5==4)&&((a16==9)&&((((a1==14)&&(input==6))&&!(a18==1))&&!(a18==1)))))))){ + a9 = 10; + a16 = 7; + a0 = 1; + a8 = 1; + a20 = 1; + a5 = 6; + a19 = 1; + a1 = 12; + a25 = 0; + return -1; + } else if((((((!(a7==1)&&((!(a24==1)&&(a28==1))||!(a2==1)))&&(a21==12))&&(a19==3))&&!(a20==1))&&((a28==1)&&(((a17==2)&&((a1==14)&&(((a6==1)&&((((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(input==4)))&&(a16==8))))&&(a11==1))))){ + if((a20==1)){ + a9 = 8; + a20 = 1; + a7 = 1; + a1 = 13; + a5 = 6; + a21 = 10; + a3 = 0; + a16 = 9; + a29 = 0; + a19 = 4; + }else{ + a1 = 12; + a16 = 10; + a21 = 11; + a20 = 1; + a2 = 0; + a19 = 5; + a10 = 1; + a5 = 5; + a25 = 1; + a9 = 7; + } + return 25; + } else if(((((a12==1)&&((a28==1)&&(!(a28==1)||((a6==1)&&(a1==12)))))&&!(a27==1))&&((a16==11)&&(!(a8==1)&&(((((((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==4))&&!(a20==1))&&(a21==10))&&(a19==4))&&(a17==2))&&!(a8==1)))))){ + a5 = 5; + a9 = 7; + a20 = 1; + a6 = 0; + a15 = 0; + a19 = 5; + a1 = 14; + a21 = 12; + a16 = 10; + return 25; + } else if((((!(a6==1)||(!(a13==1)||((a7==1)||(!(a24==1)&&(((a13==1)&&(a3==1))&&(a20==1))))))&&(a21==11))&&((((a19==3)&&(!(a8==1)&&(((input==3)&&((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5))))&&(a1==14))))&&(a16==11))&&(a17==2)))){ + a19 = 1; + a5 = 4; + a27 = 0; + a16 = 7; + a21 = 10; + a1 = 12; + a9 = 7; + a14 = 0; + return -1; + } else if(((((((((input==1)&&(a5==4))&&(a3==1))&&(a9==10))&&!(a26==1))&&!(a7==1))&&(a21==10))&&((((a16==10)&&((((((a14==1)||(a28==1))||!(a12==1))&&(a1==13))&&!(a20==1))&&(a17==2)))&&!(a0==1))&&(a19==3)))){ + a27 = 1; + a9 = 8; + a15 = 0; + a5 = 5; + a22 = 0; + a16 = 9; + a21 = 12; + a20 = 1; + a19 = 2; + a1 = 12; + return 21; + } else if((((a19==4)&&(((a16==8)&&((((a2==1)&&(((input==3)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&!(a14==1)))&&!(a7==1))&&(a21==12)))&&(a1==14)))&&((a20==1)&&((!(a24==1)&&((a8==1)||((a3==1)||!(a23==1))))&&(a17==2))))){ + a1 = 12; + a9 = 11; + a11 = 1; + a23 = 1; + a21 = 11; + a5 = 6; + return -1; + } else if((((a9==11)&&((a21==11)&&(((a3==1)&&((input==1)&&(a19==4)))&&(a6==1))))&&(!(a20==1)&&((((!(a2==1)||((a5==5)&&((a17==2)&&((a16==7)&&((a3==1)||(a0==1))))))||(a0==1))&&!(a0==1))&&(a1==12))))){ + a28 = 1; + a19 = 1; + a5 = 4; + a20 = 1; + a0 = 0; + a21 = 10; + a3 = 1; + a9 = 7; + return -1; + } else if(((!(a0==1)&&(((!(a26==1)&&((((a19==3)&&(((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))&&(input==3)))&&(a21==10))&&!(a7==1)))&&!(a18==1))&&!(a14==1)))&&(((a6==1)&&((((a11==1)&&(a17==2))&&(a1==12))&&(a16==7)))&&!(a20==1)))){ + a24 = 0; + a19 = 1; + a20 = 1; + a23 = 1; + a12 = 1; + a5 = 4; + a9 = 7; + return -1; + } else if(((((((a17==2)&&((a1==14)&&((a3==1)||!(a6==1))))&&(a19==5))&&!(a26==1))||(a18==1))&&(((a9==11)&&((((a3==1)&&(!(a14==1)&&((a5==4)&&((a21==12)&&(input==6)))))&&(a16==8))&&(a6==1)))&&!(a20==1)))){ + a25 = 1; + a1 = 12; + a9 = 9; + a19 = 1; + a20 = 1; + a21 = 10; + a10 = 0; + a16 = 7; + a27 = 1; + return 21; + } else if((((((a17==2)&&((((a16==9)&&(!(a4==1)&&(a13==1)))||!(a3==1))&&(a9==7)))&&(a1==12))&&(a19==1))&&((a5==5)&&((a21==11)&&((!(a14==1)&&(((a13==1)&&((input==5)&&!(a20==1)))&&(a13==1)))&&!(a14==1)))))){ + a24 = 1; + a5 = 4; + a9 = 10; + a21 = 10; + a20 = 1; + a16 = 7; + a18 = 1; + a1 = 13; + return -1; + } else if((((((a16==8)&&((a1==13)&&((!(a8==1)&&((((a6==1)&&(((a5==5)||(a5==6))&&(input==4)))&&!(a0==1))&&(a20==1)))&&(a13==1))))&&(a21==11))&&(a9==9))&&(((((a28==1)&&(a19==5))||(a7==1))||(a8==1))&&(a17==2)))){ + a21 = 10; + a16 = 7; + a1 = 12; + a5 = 4; + a9 = 7; + a7 = 0; + a0 = 0; + a19 = 1; + a27 = 0; + return -1; + } else if((((a28==1)&&(((a6==1)&&(((a28==1)&&(((a20==1)&&((input==3)&&(((a5==4)||(a5==5))||(a5==6))))&&(a19==1)))&&(a21==11)))&&!(a27==1)))&&(!(a0==1)&&(((a17==2)&&((((a3==1)||!(a12==1))&&(a16==10))&&(a1==13)))&&(a9==8))))){ + a5 = 4; + a6 = 1; + a2 = 1; + a1 = 12; + a21 = 10; + a23 = 1; + a9 = 7; + a16 = 7; + return -1; + } else if(((!(a12==1)||(((a19==4)&&((a1==12)&&(((a16==8)&&(!(a13==1)||((a3==1)&&(a20==1))))&&!(a7==1))))&&(a17==2)))&&((a12==1)&&(((((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==6))&&(a21==10))&&(a6==1))&&(a12==1))))){ + a2 = 1; + a16 = 9; + a24 = 0; + a19 = 5; + a1 = 14; + a6 = 1; + a9 = 11; + a21 = 12; + a5 = 4; + return 23; + } else if((((((a17==2)&&((a19==2)&&(!(a12==1)||((!(a8==1)&&((a12==1)&&(a2==1)))&&!(a24==1)))))&&(a21==11))&&(a1==12))&&((a16==8)&&(((!(a18==1)&&((input==4)&&(((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))))&&(a13==1))&&!(a20==1))))){ + a11 = 1; + a5 = 4; + a21 = 10; + a16 = 7; + a19 = 1; + a13 = 1; + a26 = 0; + a9 = 7; + a20 = 1; + return -1; + } return calculate_output73(input); + } + + int calculate_output73(int input) { + if((((((a1==13)&&((a21==10)&&((a13==1)&&(((a23==1)||(a8==1))&&(a16==7)))))&&(a19==4))&&(a17==2))&&((((a28==1)&&(!(a26==1)&&(((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==6))&&(a12==1))))&&!(a14==1))&&(a20==1)))){ + a1 = 12; + a9 = 8; + a5 = 6; + a6 = 1; + a19 = 5; + a28 = 1; + a26 = 0; + a21 = 11; + return 21; + } else if(((!(a24==1)&&((a20==1)&&(((!(a6==1)||(a2==1))||!(a13==1))&&!(a18==1))))&&((a16==8)&&((a21==10)&&(((a3==1)&&(((a1==12)&&(((input==6)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&(a19==3)))&&(a28==1)))&&(a17==2)))))){ + a21 = 12; + a2 = 1; + a27 = 0; + a19 = 1; + a1 = 14; + a0 = 0; + a5 = 6; + a9 = 8; + return 21; + } else if(((((!(a26==1)&&((((((input==1)&&((a5==4)||(a5==5)))&&(a28==1))&&(a19==1))&&(a13==1))&&(a6==1)))&&(a21==11))&&(a1==13))&&((a20==1)&&((a8==1)||((a17==2)&&((a9==11)&&(((a6==1)&&!(a8==1))&&(a16==7)))))))){ + a2 = 1; + a9 = 9; + a5 = 6; + a16 = 8; + a21 = 10; + a28 = 1; + return 22; + } else if((((a27==1)&&((a1==14)&&((a3==1)&&(a17==2))))&&(!(a13==1)&&(((a14==1)&&((((a26==1)&&(((a21==10)&&(((input==6)&&(((a9==11)&&(a5==4))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))))&&(a19==4)))&&(a16==9)))&&(a8==1))&&(a20==1)))&&(a27==1))))){ + a13 = 0; + a20 = 0; + a5 = 4; + a27 = 1; + a9 = 9; + a2 = 0; + a16 = 8; + a21 = 11; + a19 = 1; + return -1; + } else if(((!(a8==1)&&(((!(a20==1)&&((a21==11)&&((a19==2)&&((a17==2)&&(input==4)))))&&(a5==5))&&(a13==1)))&&((((a1==12)&&(((!(a12==1)||((a9==8)&&(a13==1)))||(a27==1))&&(a16==7)))&&!(a18==1))||(a8==1)))){ + a11 = 1; + a19 = 1; + a21 = 10; + a9 = 7; + a20 = 1; + a6 = 1; + a5 = 4; + a13 = 1; + return -1; + } else if((((!(a26==1)&&((a1==13)&&(!(a8==1)&&(!(a4==1)&&(((input==6)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(a12==1))))))&&!(a18==1))&&((a17==2)&&((((a16==9)&&(((a28==1)&&(a19==5))&&(a21==10)))&&!(a20==1))||!(a2==1))))){ + if((a8==1)){ + a9 = 9; + a1 = 12; + a20 = 1; + a5 = 6; + a19 = 2; + a6 = 0; + a16 = 7; + a8 = 1; + a7 = 1; + }else{ + a9 = 7; + a5 = 5; + a4 = 1; + a16 = 11; + a20 = 1; + a19 = 3; + a21 = 11; + a8 = 1; + a14 = 1; + } + return -1; + } else if((((a1==13)&&((a21==12)&&(((a9==7)&&((input==4)&&(a16==9)))&&(a19==2))))&&((a0==1)||(((a20==1)&&(!(a0==1)&&((a23==1)&&((a5==4)&&((a28==1)&&(((a2==1)||(a4==1))&&(a17==2)))))))&&(a12==1))))){ + a21 = 10; + a16 = 7; + a24 = 0; + a1 = 12; + a12 = 1; + a27 = 0; + a19 = 1; + return -1; + } else if((((a20==1)&&((a23==1)&&((a28==1)&&((((input==3)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&!(a0==1))&&(a13==1)))))&&((((a16==11)&&((!(a26==1)&&((!(a13==1)||(a12==1))&&(a21==11)))&&(a17==2)))&&(a19==4))&&(a1==14)))){ + a13 = 1; + a24 = 0; + a1 = 12; + a5 = 4; + a28 = 1; + a9 = 7; + a19 = 1; + a21 = 10; + a16 = 7; + return -1; + } else if(((((((a21==11)&&((a19==1)&&((a20==1)&&(!(a6==1)&&(a3==1)))))&&!(a6==1))&&(a16==10))&&!(a13==1))&&((!(a6==1)&&(!(a2==1)&&((a17==2)&&((a1==12)&&((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))&&(input==4))))))&&(a4==1)))){ + a5 = 4; + a23 = 0; + a19 = 2; + a14 = 1; + a29 = 1; + a9 = 8; + a16 = 7; + a21 = 10; + return 23; + } else if((((a1==13)&&((!(a27==1)&&((a16==8)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&(a19==3))&&(a3==1))&&!(a24==1))))&&(a9==9)))&&((a17==2)&&(!(a12==1)||((!(a8==1)&&((a21==10)&&((a8==1)||(a6==1))))&&!(a20==1)))))){ + a16 = 7; + a20 = 1; + a1 = 12; + a9 = 7; + a19 = 1; + a5 = 4; + a24 = 0; + a18 = 0; + a23 = 1; + return -1; + } else if((((a3==1)&&((a17==2)&&(((a23==1)&&((a21==12)&&(((a9==9)&&(a2==1))&&(a16==9))))&&(a19==4))))&&(!(a14==1)&&(!(a26==1)&&((a1==12)&&(!(a18==1)&&((a20==1)&&(((input==1)&&((a5==5)||(a5==6)))&&!(a7==1))))))))){ + if((a22==1)){ + a3 = 1; + a11 = 1; + a5 = 4; + a9 = 10; + a2 = 1; + a20 = 0; + a1 = 14; + a21 = 10; + a16 = 8; + }else{ + a1 = 14; + a19 = 2; + a21 = 11; + a2 = 1; + a12 = 1; + a9 = 10; + a5 = 5; + } + return 21; + } else if(((((a19==3)&&((((a1==12)&&((a5==4)&&(input==5)))&&!(a2==1))&&(a16==9)))&&!(a23==1))&&(((((a7==1)&&(!(a12==1)&&((a9==9)&&(!(a6==1)&&((a20==1)&&(a12==1))))))&&(a17==2))&&(a21==12))&&!(a3==1)))){ + a16 = 8; + a6 = 0; + a5 = 6; + a9 = 7; + a1 = 13; + a7 = 1; + a13 = 0; + a21 = 11; + a19 = 5; + return -1; + } else if((((((a20==1)&&(!(a14==1)&&((((a17==2)&&((a2==1)&&(a9==9)))&&(a19==3))&&!(a7==1))))&&(a16==7))||(a4==1))&&(((a11==1)&&(((a21==10)&&((a1==13)&&((input==4)&&((a5==5)||(a5==6)))))&&(a23==1)))&&(a11==1)))){ + a23 = 1; + a9 = 7; + a21 = 11; + a19 = 1; + a5 = 6; + a1 = 14; + a24 = 0; + a11 = 1; + return 21; + } else if((((!(a12==1)&&((((a1==13)&&(!(a20==1)&&((a3==1)&&!(a6==1))))&&(a24==1))&&(a17==2)))&&(a26==1))&&((a21==10)&&((a9==9)&&(((((a19==2)&&(((a5==5)||(a5==6))&&(input==1)))&&(a8==1))&&!(a23==1))&&(a16==7)))))){ + a20 = 1; + a2 = 0; + a5 = 6; + a18 = 1; + a9 = 10; + a14 = 1; + a1 = 12; + return -1; + } else if((((a12==1)&&(((a24==1)||(!(a26==1)&&(((a19==3)&&(((a11==1)&&(a17==2))&&!(a18==1)))&&(a1==12))))&&(a20==1)))&&((!(a7==1)&&((a21==10)&&(!(a24==1)&&((input==5)&&(((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10))))))))&&(a16==10)))){ + a13 = 1; + a19 = 2; + a12 = 1; + a2 = 1; + a9 = 8; + a16 = 7; + a5 = 5; + a1 = 13; + return 25; + } else if((((a21==12)&&((a2==1)&&((a1==12)&&(!(a4==1)&&((a16==10)&&(((input==4)&&(a5==6))&&!(a0==1)))))))&&((((!(a23==1)||(!(a20==1)&&(((a4==1)||(a23==1))&&(a19==2))))||!(a11==1))&&(a17==2))&&(a9==11)))){ + if((a3==1)){ + a16 = 9; + a24 = 1; + a19 = 3; + a20 = 1; + a15 = 0; + a14 = 1; + }else{ + a1 = 13; + a15 = 1; + a16 = 8; + a19 = 4; + a9 = 9; + a5 = 4; + a22 = 1; + a8 = 1; + } + return -1; + } else if((((a17==2)&&((a21==11)&&((((!(a11==1)||(a23==1))||(a7==1))||!(a13==1))&&!(a7==1))))&&((!(a20==1)&&((a1==14)&&(((a9==7)&&((a6==1)&&(!(a24==1)&&((input==1)&&(a5==5)))))&&(a19==1))))&&(a16==7)))){ + a5 = 4; + a28 = 1; + a11 = 1; + a9 = 9; + a21 = 10; + a12 = 1; + a20 = 1; + a1 = 13; + a19 = 2; + return -1; + } else if(((((a4==1)||(!(a4==1)&&(((a16==11)&&(((a3==1)&&(a20==1))&&(a1==14)))&&(a9==8))))||(a18==1))&&(((((a21==10)&&((((input==5)&&((a5==4)||(a5==5)))&&(a19==4))&&(a17==2)))&&!(a18==1))&&!(a4==1))&&(a28==1)))){ + a9 = 9; + a27 = 0; + a5 = 5; + a23 = 1; + a11 = 1; + a21 = 11; + a1 = 13; + return 21; + } else if((((a7==1)||((((a11==1)&&(a2==1))&&(a21==10))&&(a17==2)))&&((((a13==1)&&(((((((((a5==5)||(a5==6))&&(input==5))&&(a9==9))&&(a20==1))&&!(a8==1))&&(a2==1))&&(a19==3))&&(a1==14)))&&(a11==1))&&(a16==7)))){ + a18 = 0; + a24 = 0; + a9 = 8; + a5 = 5; + a21 = 11; + a14 = 0; + a19 = 2; + return 25; + } else if(((!(a23==1)||(((a19==1)&&((((a9==11)&&((a6==1)&&(a1==14)))&&(a20==1))||(a18==1)))&&(a16==10)))&&(((a3==1)&&(((a23==1)&&((a17==2)&&(!(a0==1)&&((a5==5)&&(input==6)))))&&(a21==10)))&&!(a27==1)))){ + if((a11==1)){ + a5 = 6; + a6 = 1; + a9 = 10; + a16 = 7; + a4 = 0; + a1 = 13; + a20 = 0; + a21 = 12; + a19 = 2; + }else{ + a19 = 2; + a1 = 13; + a16 = 7; + a23 = 1; + a26 = 0; + } + return -1; + } else if((((((((a20==1)&&((((a17==2)&&((input==4)&&(((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))))&&(a16==9))&&(a23==1)))&&(a21==11))&&(a19==5))&&!(a8==1))&&!(a14==1))&&(((((a6==1)&&(a1==13))&&(a28==1))||!(a13==1))||(a27==1)))){ + a2 = 1; + a16 = 7; + a8 = 0; + a19 = 1; + a21 = 10; + a9 = 7; + a5 = 4; + a1 = 12; + a28 = 1; + return -1; + } else if(((((a1==13)&&((((a26==1)||((a2==1)||(a8==1)))&&(a16==10))||(a27==1)))&&(a19==4))&&((a17==2)&&((((a13==1)&&((!(a18==1)&&((((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(input==5)))&&(a21==10)))&&!(a20==1))&&(a2==1))))){ + if((a3==1)){ + a20 = 1; + a5 = 4; + a9 = 10; + a0 = 1; + a16 = 7; + a19 = 1; + a1 = 12; + a29 = 0; + a15 = 0; + }else{ + a10 = 0; + a18 = 1; + a9 = 10; + a5 = 5; + a21 = 11; + a29 = 0; + } + return 22; + } else if(((((a19==1)&&((a1==14)&&(((a12==1)&&((a16==11)&&(((a21==12)&&(((a5==5)||(a5==6))&&(input==4)))&&(a9==7))))&&!(a4==1))))&&(a20==1))&&((a23==1)&&((((a3==1)&&((a17==2)&&(a23==1)))||!(a6==1))&&(a2==1))))){ + a4 = 0; + a5 = 4; + a21 = 10; + a2 = 1; + a1 = 12; + a16 = 7; + a8 = 0; + return -1; + } else if((((!(a4==1)&&((a1==14)&&(!(a20==1)&&(((a9==8)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a18==1)))))&&(a21==11))&&(((a13==1)&&((((a6==1)&&((a17==2)&&(!(a24==1)&&(a12==1))))&&(a16==10))&&(a19==3)))||!(a13==1)))){ + a11 = 0; + a20 = 1; + a9 = 11; + a25 = 0; + a5 = 5; + a19 = 1; + a23 = 0; + a21 = 12; + return 26; + } else if((((a27==1)||((a17==2)&&(((a21==10)&&(((a16==10)&&(a12==1))&&!(a20==1)))&&!(a0==1))))&&((a19==3)&&((a1==13)&&(!(a4==1)&&((!(a0==1)&&(!(a18==1)&&((((a5==5)||(a5==6))&&(input==6))&&(a6==1))))&&(a9==8))))))){ + a9 = 7; + a18 = 1; + a23 = 0; + a19 = 1; + a11 = 0; + a1 = 14; + a5 = 6; + a16 = 7; + a20 = 1; + return -1; + } else if(((((a28==1)&&((a28==1)&&((a1==14)&&(((a19==5)&&((!(a4==1)&&(((a5==5)||(a5==6))&&(input==1)))&&(a16==9)))&&!(a26==1)))))&&(a21==11))&&(((a9==9)&&((((a23==1)&&(a3==1))&&(a11==1))&&(a20==1)))&&(a17==2)))){ + a19 = 2; + a13 = 1; + a12 = 1; + a21 = 10; + a4 = 0; + a9 = 10; + a5 = 4; + a16 = 7; + a1 = 13; + return 21; + } else if((((((!(a8==1)&&((((a9==8)&&((a0==1)||(a28==1)))&&(a3==1))&&(a12==1)))&&(a1==12))&&(a16==11))&&(a19==4))&&((a20==1)&&((((!(a7==1)&&(((a5==5)||(a5==6))&&(input==4)))&&(a17==2))&&!(a4==1))&&(a21==10))))){ + a3 = 1; + a11 = 1; + a1 = 13; + a5 = 6; + a16 = 9; + a19 = 1; + a9 = 11; + return 25; + } else if((((((a9==8)&&((a16==8)&&(!(a0==1)&&((input==6)&&(a21==12)))))&&(a13==1))&&(a17==2))&&(!(a18==1)&&((a20==1)&&(((a27==1)||(((((a1==14)&&(a28==1))&&(a19==4))&&(a23==1))&&(a5==5)))&&(a28==1)))))){ + a13 = 1; + a19 = 1; + a5 = 4; + a1 = 12; + a16 = 7; + a24 = 0; + a12 = 1; + a9 = 7; + a21 = 10; + return -1; + } else if((((a5==6)&&((a17==2)&&((a21==12)&&((((!(a20==1)&&((a13==1)&&((input==6)&&(a1==12))))&&(a13==1))&&!(a14==1))&&(a16==9)))))&&((((a13==1)&&(!(a0==1)&&((a12==1)&&!(a4==1))))&&(a19==1))&&(a9==7)))){ + if((a0==1)){ + a12 = 0; + a21 = 10; + a10 = 0; + a19 = 3; + a16 = 10; + a28 = 0; + a1 = 13; + a20 = 1; + }else{ + a21 = 10; + a16 = 7; + a19 = 2; + a20 = 1; + a12 = 0; + a5 = 5; + a4 = 1; + a9 = 11; + } + return 21; + } else if((((a17==2)&&(((((((a11==1)||(a27==1))||!(a2==1))&&(a3==1))&&(a21==10))&&(a1==13))&&(a9==9)))&&((a16==8)&&(((((a6==1)&&((a20==1)&&(((a5==4)||(a5==5))&&(input==5))))&&!(a24==1))&&(a28==1))&&(a19==4))))){ + a3 = 1; + a1 = 12; + a6 = 1; + a19 = 1; + a11 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + return -1; + } else if((((a12==1)&&((((a21==11)&&((a1==13)&&((((input==1)&&(a5==6))&&(a16==7))&&!(a20==1))))&&(a17==2))&&!(a18==1)))&&(!(a24==1)&&((((a19==5)&&((a9==8)&&((a8==1)||(a6==1))))||(a18==1))&&(a12==1))))){ + a4 = 0; + a16 = 9; + a1 = 12; + a19 = 4; + a20 = 1; + a23 = 1; + a3 = 1; + a9 = 10; + return 23; + } else if((((a9==9)&&((!(a0==1)&&((a1==13)&&(!(a20==1)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6))))))&&!(a14==1)))&&((a21==10)&&((a17==2)&&((!(a14==1)&&((a19==3)&&(!(a3==1)||(!(a11==1)||((a28==1)||(a8==1))))))&&(a16==8)))))){ + a27 = 0; + a9 = 7; + a3 = 1; + a5 = 4; + a1 = 12; + a20 = 1; + a8 = 0; + a19 = 1; + a16 = 7; + return -1; + } else if((((a21==10)&&((a19==1)&&((a1==13)&&((a17==2)&&(!(a27==1)&&((!(a14==1)&&(((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))&&(input==6))&&!(a26==1)))&&!(a8==1)))))))&&(((a6==1)&&((a20==1)&&((a2==1)&&(a16==8))))||!(a11==1)))){ + a1 = 12; + a18 = 0; + a28 = 1; + a12 = 1; + a16 = 7; + a9 = 7; + a5 = 4; + return -1; + } else if(((((a1==14)&&((a16==8)&&(((a13==1)&&(!(a23==1)||(!(a3==1)||(a13==1))))&&(a21==10))))&&(a19==5))&&((!(a20==1)&&((!(a24==1)&&((((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&(a28==1))&&!(a24==1)))&&(a9==10)))&&(a17==2)))){ + a9 = 7; + a3 = 1; + a20 = 1; + a5 = 4; + a19 = 1; + a6 = 1; + a18 = 0; + a16 = 7; + a1 = 12; + return -1; + } else if((((((((a20==1)&&((a17==2)&&((((((a5==5)&&(a9==10))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4)))&&(input==4))&&(a23==1))))&&(a16==7))&&(a6==1))&&!(a8==1))&&(a23==1))&&((a23==1)&&(((a1==14)&&(((a21==12)&&(a3==1))&&(a19==3)))||(a4==1))))){ + if((a10==1)){ + a21 = 11; + a12 = 1; + a5 = 5; + a4 = 0; + a9 = 11; + a27 = 0; + a20 = 0; + }else{ + a18 = 0; + a16 = 8; + a21 = 11; + a19 = 1; + a5 = 5; + a9 = 8; + a1 = 13; + a14 = 0; + a28 = 1; + } + return 25; + } else if((((a19==4)&&((a9==10)&&((a20==1)&&((a17==2)&&((a12==1)&&((((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a16==10))&&!(a26==1)))))))&&(((a3==1)&&((!(a27==1)&&((a3==1)&&((a28==1)&&(a21==12))))&&(a1==13)))||!(a2==1)))){ + a19 = 1; + a16 = 7; + a21 = 10; + a6 = 1; + a9 = 7; + a18 = 0; + a1 = 12; + a5 = 4; + a14 = 0; + return -1; + } else if((((a19==3)&&(a2==1))&&(!(a24==1)&&((a6==1)&&((((a17==2)&&(((a20==1)&&((((a16==7)&&(((input==5)&&((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4))))&&!(a24==1)))&&(a21==10))&&(a1==14)))&&(a28==1)))&&!(a18==1))&&(a23==1)))))){ + a23 = 1; + a21 = 11; + a19 = 2; + a5 = 4; + a24 = 0; + a2 = 1; + a9 = 8; + return 21; + } else if((((a21==10)&&(!(a2==1)||(((a3==1)&&((a13==1)&&(!(a7==1)&&(a2==1))))&&!(a8==1))))&&(((!(a20==1)&&((a11==1)&&((input==1)&&((((((a1==14)&&(a5==6))&&(a9==11))&&(a19==3))||((a19==4)&&(((a1==12)&&(a5==4))&&(a9==7))))||((a19==4)&&(((a5==5)&&(a1==12))&&(a9==7)))))))&&(a17==2))&&(a16==11)))){ + if((a28==1)){ + a21 = 12; + a1 = 13; + a16 = 7; + a19 = 5; + a10 = 1; + a0 = 1; + a9 = 11; + a5 = 6; + }else{ + a16 = 7; + a19 = 1; + a23 = 0; + a1 = 13; + a5 = 5; + a9 = 9; + a22 = 0; + a20 = 1; + a10 = 0; + } + return -1; + } else if(((((a28==1)&&(((a19==4)&&((a2==1)&&((a16==9)&&(input==6))))&&(a13==1)))&&(a2==1))&&((a1==13)&&((a17==2)&&((!(a8==1)&&(((a9==9)&&((a21==12)&&((a5==4)&&(a2==1))))&&!(a4==1)))&&(a20==1)))))){ + a28 = 1; + a19 = 2; + a9 = 10; + a24 = 0; + a5 = 6; + a11 = 1; + a21 = 10; + a16 = 7; + return 23; + } else if((((((a11==1)&&((((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))&&(input==4))&&(a19==3))&&(a1==13)))&&(a21==12))&&(a17==2))&&(((((!(a23==1)||((a11==1)&&((a2==1)&&(a12==1))))||(a8==1))&&!(a20==1))&&(a16==8))&&(a3==1)))){ + a28 = 0; + a20 = 1; + a5 = 5; + a29 = 1; + a16 = 11; + a19 = 2; + a10 = 0; + a9 = 7; + return 25; + } else if((((a20==1)&&((!(a24==1)&&(((((a12==1)&&((a17==2)&&((input==6)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))))&&(a12==1))&&(a21==12))&&(a1==14)))&&!(a14==1)))&&(((!(a11==1)||((a0==1)||(a23==1)))&&(a16==8))&&(a19==5)))){ + a24 = 0; + a7 = 0; + a9 = 7; + a19 = 1; + a16 = 7; + a1 = 12; + a21 = 10; + a5 = 4; + return -1; + } else if(((((((a9==10)&&(!(a4==1)&&((a28==1)&&((input==4)&&(a20==1)))))&&(a17==2))&&(a5==6))&&(a21==10))&&(((a1==14)&&((a19==3)&&((((a7==1)||((a13==1)||!(a11==1)))&&(a28==1))||!(a23==1))))&&(a16==7)))){ + a1 = 12; + a5 = 4; + a24 = 0; + a19 = 1; + a0 = 0; + a9 = 7; + a28 = 1; + return -1; + } else if((((a2==1)&&((a17==2)&&((a16==9)&&(((a3==1)&&((a23==1)&&((a21==12)&&((a2==1)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6)))))))&&(a9==11)))))&&((a2==1)&&(((a20==1)&&(((a6==1)&&(a1==13))||!(a28==1)))&&(a19==5))))){ + a23 = 1; + a19 = 2; + a3 = 1; + a16 = 7; + a5 = 6; + a21 = 10; + a9 = 10; + a14 = 0; + return 25; + } else if((((((((a21==12)&&((a11==1)&&((a18==1)||((a20==1)&&((!(a18==1)&&(a3==1))||(a14==1))))))&&(a19==4))&&(a5==6))&&(a17==2))&&(a9==9))&&((a16==10)&&((((a1==13)&&(input==5))&&(a23==1))&&!(a14==1))))){ + a21 = 10; + a19 = 2; + a16 = 7; + a11 = 1; + a26 = 0; + a5 = 5; + a18 = 0; + return 25; + } else if(((((((!(a7==1)&&((a23==1)&&(((input==4)&&(a21==12))&&(a23==1))))&&(a19==5))&&(a5==6))&&(a17==2))&&(a9==9))&&(((a11==1)&&((a1==14)&&(((a16==10)&&((a20==1)&&(a6==1)))||!(a2==1))))&&(a6==1)))){ + a21 = 10; + a5 = 4; + a1 = 12; + a19 = 1; + a14 = 0; + a13 = 1; + a6 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if(((((a11==1)&&(((a6==1)&&((a3==1)||!(a23==1)))&&(a16==10)))||(a18==1))&&((a19==4)&&((a1==12)&&((((a17==2)&&((a21==12)&&(!(a7==1)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==6)))))&&!(a24==1))&&!(a20==1)))))){ + a21 = 10; + a5 = 6; + a19 = 1; + a18 = 1; + a16 = 7; + a9 = 11; + a1 = 13; + a20 = 1; + a27 = 1; + a28 = 0; + return -1; + } else if(((((a12==1)&&(((((((a1==14)&&(!(a14==1)&&(((a23==1)||(a24==1))&&(a6==1))))&&(a9==11))&&(a19==1))&&(a21==10))&&!(a20==1))&&!(a8==1)))&&(a23==1))&&((a17==2)&&(((a16==10)&&(input==4))&&(a5==5))))){ + if((a15==1)){ + a18 = 1; + a22 = 0; + a20 = 1; + a16 = 7; + a27 = 1; + a9 = 10; + a5 = 6; + a1 = 12; + }else{ + a19 = 3; + a9 = 9; + a13 = 0; + a1 = 12; + a16 = 9; + a5 = 6; + a10 = 1; + a29 = 0; + } + return -1; + } else if(((((a20==1)&&((((a16==9)&&((a14==1)||(a12==1)))&&(a1==14))||!(a12==1)))&&(a21==12))&&(((!(a8==1)&&(((a19==2)&&(!(a24==1)&&((input==5)&&((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4))))))&&(a23==1)))&&(a3==1))&&(a17==2)))){ + a23 = 1; + a9 = 10; + a5 = 5; + a16 = 7; + a1 = 13; + a28 = 1; + a2 = 1; + a21 = 10; + return 21; + } else if(((((a18==1)||(!(a4==1)&&((a13==1)&&(a6==1))))&&(a9==8))&&((a1==14)&&(((a6==1)&&((a23==1)&&((a19==2)&&((a17==2)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a11==1))&&(a21==12))&&(a16==7))))))&&!(a20==1))))){ + a24 = 0; + a18 = 0; + a0 = 0; + a9 = 10; + a1 = 12; + a5 = 4; + a20 = 1; + a21 = 11; + return 23; + } else if((((a21==11)&&((((a18==1)||((a8==1)||(a13==1)))||(a8==1))&&(a19==2)))&&(((((((((a13==1)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==6)))&&(a1==12))&&(a16==10))&&(a13==1))&&!(a24==1))&&(a9==10))&&(a17==2))&&!(a20==1)))){ + a9 = 11; + a16 = 7; + a26 = 1; + a20 = 1; + a21 = 10; + a15 = 1; + a5 = 6; + a1 = 13; + a8 = 1; + a19 = 4; + return -1; + } else if(((((a1==12)&&((((((((a21==10)&&(((((a5==5)||(a5==6))&&(input==3))&&(a6==1))&&!(a27==1)))&&(a6==1))&&(a17==2))&&(a19==2))&&(a2==1))&&!(a4==1))&&(a20==1)))&&(a16==9))&&((a18==1)||((a2==1)&&(a9==9))))){ + a16 = 7; + a12 = 1; + a19 = 1; + a5 = 4; + a6 = 1; + a9 = 7; + a4 = 0; + return -1; + } else if(((!(a24==1)&&(((((a3==1)&&(a6==1))&&!(a20==1))&&(a17==2))&&(a1==14)))&&(!(a14==1)&&(((a16==9)&&((a23==1)&&((a6==1)&&((a6==1)&&((((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9)))&&(input==5))&&(a21==10))))))&&(a19==4))))){ + a24 = 1; + a19 = 1; + a9 = 7; + a21 = 12; + a18 = 1; + a5 = 4; + a16 = 8; + a25 = 1; + return -1; + } else if((((a6==1)&&((!(a20==1)&&((((a11==1)&&((a12==1)&&(((a5==4)||(a5==5))&&(input==6))))&&(a1==14))&&(a11==1)))&&(a6==1)))&&((((a19==4)&&((((a17==2)&&(a3==1))&&(a9==11))&&(a16==8)))&&(a21==10))||!(a28==1)))){ + a26 = 0; + a20 = 1; + a5 = 4; + a24 = 0; + a19 = 3; + a11 = 1; + a21 = 12; + a16 = 9; + a9 = 10; + return 21; + } else if((((!(a0==1)&&(!(a24==1)&&(((a12==1)&&(a1==14))&&!(a18==1))))&&(a19==2))&&(((a21==10)&&(!(a4==1)&&(((!(a7==1)&&((a16==7)&&(((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a9==9)&&(a5==4)))&&(input==6))))&&(a20==1))&&(a17==2))))&&!(a0==1)))){ + a24 = 0; + a5 = 5; + a3 = 1; + a1 = 13; + a27 = 0; + a19 = 4; + a9 = 8; + return 22; + } else if(((!(a7==1)&&(((a11==1)&&((!(a18==1)&&(!(a0==1)&&((input==1)&&((a5==4)||(a5==5)))))&&(a9==7)))&&(a1==14)))&&((a8==1)||((((a21==10)&&(((a19==4)&&((a17==2)&&(a2==1)))&&(a11==1)))&&(a16==7))&&(a20==1))))){ + a13 = 1; + a19 = 5; + a9 = 11; + a18 = 0; + a21 = 11; + a5 = 4; + a27 = 0; + a1 = 13; + return 23; + } else if(((((!(a8==1)&&((((a19==1)&&(((a17==2)&&(a2==1))&&(a6==1)))&&!(a27==1))||(a26==1)))&&!(a4==1))&&(a21==10))&&((!(a20==1)&&((a16==10)&&((((input==1)&&((a5==4)||(a5==5)))&&(a1==12))&&!(a14==1))))&&(a9==9)))){ + a1 = 13; + a5 = 5; + a27 = 1; + a16 = 7; + a15 = 0; + a20 = 1; + a9 = 11; + a22 = 1; + return -1; + } else if(((((a1==14)&&(!(a0==1)&&(((!(a8==1)&&((((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6))))&&(input==1)))&&(a11==1))&&(a21==12))))&&(a17==2))&&(((!(a28==1)||((((a0==1)||(a6==1))&&(a20==1))&&(a16==7)))||(a14==1))&&(a19==1)))){ + a20 = 0; + a24 = 0; + a5 = 5; + a14 = 0; + a9 = 10; + a1 = 13; + a4 = 0; + a19 = 3; + return 26; + } else if((((a8==1)||(!(a13==1)||((a1==14)&&((a4==1)||((((a2==1)&&(a13==1))&&(a17==2))&&(a21==11))))))&&(!(a0==1)&&((a6==1)&&((a16==7)&&((((input==5)&&(((a5==6)&&(a9==9))||((a9==10)&&(a5==4))))&&(a20==1))&&(a19==2))))))){ + a1 = 12; + a2 = 1; + a9 = 7; + a11 = 1; + a5 = 4; + a21 = 10; + a19 = 1; + a6 = 1; + return -1; + } else if((((a21==10)&&(((a9==10)&&(!(a7==1)&&((!(a18==1)&&(((a1==12)&&((((a5==4)||(a5==5))||(a5==6))&&(input==6)))&&(a12==1)))&&!(a20==1))))&&(a19==3)))&&((a16==11)&&((!(a8==1)&&(!(a23==1)||((a13==1)||!(a3==1))))&&(a17==2))))){ + a16 = 7; + a21 = 11; + a1 = 13; + a5 = 6; + a22 = 1; + a19 = 5; + a9 = 8; + a2 = 0; + return -1; + } else if(((!(a18==1)&&(!(a26==1)&&(((a19==1)&&(((((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a21==10))&&!(a20==1))&&(a6==1)))&&(a9==9))))&&(((a0==1)||(((((a16==9)&&(a11==1))&&(a11==1))&&(a17==2))&&(a1==12)))||!(a12==1)))){ + a2 = 0; + a29 = 0; + a1 = 14; + a4 = 1; + a5 = 4; + a16 = 11; + a20 = 1; + a19 = 4; + return -1; + } else if((((((a13==1)&&!(a0==1))||!(a12==1))&&!(a18==1))&&(!(a4==1)&&((a2==1)&&((((((((((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))&&(input==5))&&(a19==3))&&(a20==1))&&(a1==13))&&(a17==2))&&(a16==8))&&(a21==10))&&!(a27==1)))))){ + a16 = 7; + a9 = 7; + a24 = 0; + a1 = 12; + a12 = 1; + a11 = 1; + a5 = 4; + a19 = 1; + return -1; + } else if((((((!(a0==1)&&(a28==1))&&!(a14==1))&&(a19==4))&&(a17==2))&&(((((((a1==13)&&(((a2==1)&&(!(a8==1)&&(((a5==4)||(a5==5))&&(input==5))))&&(a21==10)))&&(a16==9))&&!(a27==1))&&(a9==10))&&(a2==1))&&!(a20==1)))){ + a1 = 12; + a20 = 1; + a12 = 0; + a16 = 7; + a26 = 1; + a5 = 5; + a18 = 1; + a19 = 2; + return -1; + } else if(((((!(a7==1)&&((((((a1==12)&&(input==5))&&(a2==1))&&!(a0==1))&&(a16==11))&&(a5==5)))&&(a17==2))&&(a21==10))&&((((a28==1)&&((a19==4)&&((a24==1)||((a13==1)||(a14==1)))))&&!(a20==1))&&(a9==10)))){ + if((a3==1)){ + a4 = 1; + a16 = 7; + a9 = 9; + a19 = 1; + a20 = 1; + a1 = 13; + a23 = 0; + }else{ + a21 = 12; + a10 = 0; + a9 = 8; + a1 = 14; + a23 = 0; + a5 = 4; + a16 = 7; + a14 = 1; + a20 = 1; + } + return -1; + } else if(((!(a0==1)&&(((a9==11)&&((a1==12)&&((a18==1)||((a28==1)&&(a20==1)))))&&(a16==11)))&&(!(a0==1)&&((((a2==1)&&(((a19==5)&&((a3==1)&&((input==4)&&((a5==5)||(a5==6)))))&&(a21==12)))&&(a28==1))&&(a17==2))))){ + a2 = 1; + a16 = 7; + a19 = 1; + a21 = 10; + a4 = 0; + a9 = 7; + a5 = 4; + return -1; + } else if(((((a9==11)&&(((a1==12)&&(!(a18==1)&&(a11==1)))||!(a6==1)))&&(a28==1))&&((a21==11)&&((a13==1)&&(((!(a20==1)&&(((a23==1)&&(!(a8==1)&&((a16==8)&&(input==6))))&&(a17==2)))&&(a5==5))&&(a19==3)))))){ + a21 = 10; + a19 = 5; + a20 = 1; + a6 = 1; + a9 = 9; + a3 = 1; + a23 = 1; + return 26; + } else if(((!(a14==1)&&(((((a6==1)&&((((a19==4)&&(input==3))&&(a21==11))&&(a1==14)))&&(a5==4))&&!(a24==1))&&(a23==1)))&&((a11==1)&&(((a16==10)&&((!(a27==1)&&((a28==1)&&(a17==2)))&&!(a20==1)))&&(a9==7))))){ + if((a4==1)){ + a5 = 6; + a25 = 0; + a13 = 0; + a19 = 5; + a1 = 13; + a22 = 0; + a9 = 11; + a16 = 7; + }else{ + a5 = 5; + a19 = 1; + a16 = 7; + a18 = 1; + a20 = 1; + a9 = 10; + a21 = 10; + a29 = 0; + a26 = 1; + } + return -1; + } else if((((((((a18==1)||(a3==1))&&(a23==1))&&(a19==2))&&(a16==11))||(a27==1))&&((a1==13)&&(((a12==1)&&((a9==10)&&(((a20==1)&&((!(a18==1)&&((input==6)&&((a5==5)||(a5==6))))&&!(a7==1)))&&(a17==2))))&&(a21==10))))){ + a3 = 1; + a1 = 14; + a9 = 7; + a21 = 11; + a2 = 1; + a13 = 1; + a5 = 6; + return 25; + } else if((((a21==12)&&((((a19==4)&&(!(a6==1)||((((((a23==1)||!(a12==1))&&(a1==13))&&(a16==7))&&!(a14==1))||!(a6==1))))&&(a28==1))&&(a9==8)))&&((((((a5==4)||(a5==5))&&(input==1))&&(a3==1))&&(a17==2))&&!(a20==1)))){ + a20 = 1; + a27 = 0; + a14 = 0; + a5 = 4; + a1 = 14; + a11 = 1; + a16 = 8; + a9 = 9; + a19 = 1; + a21 = 10; + return 26; + } else if(((((((a19==1)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))&&(a2==1))&&!(a26==1))&&(a1==13))&&(!(a27==1)&&(((((a17==2)&&(((((a9==7)&&(a28==1))&&(a20==1))||(a4==1))||!(a23==1)))&&(a21==12))&&!(a8==1))&&(a16==8))))){ + a5 = 4; + a1 = 12; + a19 = 5; + a24 = 0; + a16 = 10; + a21 = 11; + a0 = 0; + return 26; + } else if((((a16==9)&&(!(a24==1)&&((a9==11)&&(!(a0==1)&&((!(a20==1)&&((a17==2)&&(input==4)))&&(a28==1))))))&&((a5==5)&&((a1==14)&&((a21==12)&&((a19==3)&&((((a12==1)&&(a28==1))&&!(a27==1))||!(a23==1)))))))){ + a9 = 9; + a1 = 12; + a0 = 1; + a16 = 7; + a5 = 6; + a19 = 1; + a4 = 1; + a3 = 0; + a20 = 1; + a21 = 10; + return -1; + } else if((((a16==10)&&(!(a12==1)||(((a21==11)&&((a9==9)&&(!(a24==1)&&(a13==1))))&&(a1==13))))&&(((a23==1)&&((!(a4==1)&&((a6==1)&&(((((a5==4)||(a5==5))&&(input==6))&&(a17==2))&&(a19==3))))&&(a20==1)))&&(a23==1)))){ + a21 = 10; + a16 = 7; + a14 = 0; + a26 = 0; + a23 = 1; + a19 = 2; + a5 = 4; + return 25; + } else if(((!(a20==1)&&((a12==1)&&(((a2==1)&&((a12==1)&&((a5==4)&&(input==5))))&&!(a27==1))))&&((a21==10)&&((a1==14)&&(!(a14==1)&&((a17==2)&&((((a9==10)&&((a19==4)&&(a2==1)))&&(a16==7))&&!(a26==1)))))))){ + a1 = 12; + a9 = 7; + a19 = 1; + a0 = 0; + a13 = 1; + a20 = 1; + a6 = 1; + return -1; + } else if((((a19==4)&&(((a28==1)&&((!(a3==1)||(!(a4==1)&&((a21==11)&&((a12==1)&&(a20==1)))))&&(a17==2)))&&(a16==10)))&&(!(a8==1)&&((((((((a5==5)&&(a9==7))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4)))&&(input==1))&&(a1==12))&&(a12==1))&&!(a14==1))))){ + a12 = 1; + a9 = 8; + a21 = 10; + a1 = 14; + a19 = 2; + a5 = 6; + a24 = 0; + a27 = 0; + a16 = 7; + return 25; + } else if((((a23==1)&&((a1==13)&&((a13==1)&&((!(a0==1)&&((a17==2)&&(((input==1)&&(a16==11))&&(a20==1))))&&(a9==9)))))&&(!(a28==1)||(!(a0==1)&&(!(a14==1)&&((a19==5)&&((a21==10)&&((a23==1)&&(a5==5))))))))){ + a9 = 8; + a16 = 10; + a19 = 2; + a23 = 1; + a11 = 1; + a5 = 6; + a1 = 14; + a27 = 0; + return 21; + } else if(((!(a13==1)||((((a1==12)&&(((a19==5)&&((a13==1)&&((a17==2)&&(a12==1))))&&(a21==12)))||!(a3==1))||(a26==1)))&&(((a16==9)&&(!(a27==1)&&(!(a20==1)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==1)))))&&(a28==1)))){ + a9 = 7; + a20 = 1; + a5 = 5; + a1 = 14; + a21 = 10; + a0 = 1; + a16 = 7; + a15 = 0; + a13 = 0; + a19 = 1; + return -1; + } else if((((((((a12==1)||!(a2==1))&&(a9==9))&&(a1==12))&&(a21==12))||!(a23==1))&&((((a13==1)&&(((!(a20==1)&&(((a17==2)&&((input==6)&&((a5==4)||(a5==5))))&&(a3==1)))&&(a16==9))&&(a28==1)))&&(a19==1))&&!(a24==1)))){ + a0 = 1; + a20 = 1; + a5 = 5; + a13 = 0; + a9 = 10; + a16 = 11; + a21 = 11; + a1 = 13; + a19 = 3; + a7 = 1; + return -1; + } else if(((!(a20==1)&&((((a21==12)&&((a19==4)&&(input==5)))&&(a28==1))&&(a5==6)))&&((a17==2)&&((!(a27==1)&&((a6==1)&&(!(a12==1)||((a14==1)||((((a16==9)&&(a12==1))&&(a9==11))&&(a1==12))))))||(a24==1))))){ + a10 = 1; + a26 = 1; + a1 = 14; + a5 = 5; + a20 = 1; + return -1; + } else if((((((a9==11)&&(((a5==6)&&((a19==2)&&((a1==12)&&(input==5))))&&!(a0==1)))&&(a17==2))&&(a20==1))&&((a18==1)||((a24==1)||((a18==1)||((a21==10)&&((a16==10)&&((a18==1)||((a11==1)||(a27==1)))))))))){ + a13 = 1; + a21 = 12; + a9 = 8; + a16 = 8; + a1 = 14; + a3 = 1; + a19 = 1; + a23 = 1; + return 21; + } else if(((!(a4==1)&&((a12==1)&&((a19==3)&&(((a12==1)&&!(a26==1))||!(a23==1)))))&&(((a16==7)&&(!(a20==1)&&(!(a24==1)&&(((((((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==6))&&(a17==2))&&(a21==10))&&(a1==12)))))&&(a13==1)))){ + a14 = 0; + a9 = 7; + a7 = 0; + a5 = 4; + a19 = 1; + a20 = 1; + a28 = 1; + return -1; + } else if(((((a17==2)&&((((a26==1)||((a6==1)&&((a19==1)&&(a28==1))))&&(a1==14))&&!(a14==1)))&&!(a20==1))&&((a9==11)&&((a16==9)&&((a12==1)&&((((a21==11)&&(((a5==4)||(a5==5))&&(input==4)))&&(a12==1))&&(a23==1))))))){ + if((a6==1)){ + a14 = 1; + a21 = 10; + a9 = 8; + a16 = 7; + a29 = 1; + a6 = 0; + a5 = 4; + a20 = 1; + }else{ + a5 = 4; + a11 = 0; + a1 = 13; + a9 = 9; + a20 = 1; + a22 = 0; + a21 = 10; + a8 = 1; + a16 = 8; + a19 = 4; + } + return -1; + } else if((((a17==2)&&(!(a6==1)&&(!(a23==1)&&(((a0==1)&&((a6==1)&&(a20==1)))&&(a16==8)))))&&((a1==14)&&((((a9==7)&&((a26==1)&&((!(a3==1)&&((a5==6)&&(input==1)))&&!(a3==1))))&&(a21==12))&&(a19==3))))){ + a10 = 1; + a24 = 1; + a6 = 0; + a21 = 10; + a9 = 10; + a19 = 1; + a1 = 12; + a16 = 7; + return -1; + } else if(((((((a21==12)&&((((a11==1)&&((input==4)&&((a5==4)||(a5==5))))&&(a19==4))&&!(a8==1)))&&(a11==1))&&(a17==2))&&(a16==10))&&(((a6==1)&&(((((a3==1)||!(a2==1))&&(a9==7))&&!(a4==1))&&(a1==13)))&&(a20==1)))){ + a23 = 1; + a26 = 0; + a1 = 14; + a28 = 1; + a21 = 11; + a5 = 6; + a16 = 8; + a9 = 11; + a19 = 3; + return 25; + } else if(((((a17==2)&&(((((input==1)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8))))&&(a6==1))&&!(a26==1))&&(a19==2)))&&(a21==10))&&((a20==1)&&((((a11==1)&&(!(a24==1)&&(!(a4==1)&&((a23==1)&&(a1==13)))))&&(a11==1))&&(a16==10))))){ + a16 = 9; + a18 = 0; + a1 = 14; + a9 = 10; + a5 = 5; + a24 = 0; + a8 = 0; + return 21; + } else if((((a9==9)&&((a21==12)&&((!(a27==1)&&(((!(a8==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&!(a20==1))&&(a19==5)))&&(a11==1))))&&(((((a7==1)||((a17==2)&&((a23==1)||(a18==1))))&&!(a24==1))&&(a16==9))&&(a1==13)))){ + a9 = 11; + a6 = 0; + a8 = 1; + a16 = 8; + a21 = 11; + a5 = 6; + a12 = 0; + return -1; + } else if(((!(a4==1)&&(((((((((a1==13)&&(a5==6))&&(a9==11))||(((a5==4)&&(a1==14))&&(a9==7)))&&(input==6))&&(a16==7))&&!(a27==1))&&(a11==1))&&(a21==10)))&&((a12==1)&&((((a17==2)&&(((a6==1)&&!(a20==1))&&(a19==2)))&&!(a18==1))&&(a6==1))))){ + a19 = 3; + a16 = 8; + a1 = 12; + a5 = 4; + a7 = 0; + a9 = 11; + a0 = 0; + a24 = 0; + return 21; + } else if((((a1==12)&&((a9==10)&&((a11==1)&&((input==3)&&(a16==11)))))&&((((a21==10)&&((a23==1)&&((a8==1)||(!(a3==1)||(!(a20==1)&&((a5==6)&&(((a3==1)&&(a6==1))&&(a13==1))))))))&&(a19==1))&&(a17==2)))){ + if((a24==1)){ + a8 = 1; + a20 = 1; + a16 = 7; + a5 = 5; + a19 = 2; + a13 = 0; + a28 = 0; + a9 = 11; + }else{ + a23 = 0; + a21 = 12; + a5 = 5; + a19 = 2; + a18 = 1; + a16 = 8; + a9 = 8; + a8 = 1; + } + return 21; + } else if((((a1==13)&&(((a19==1)&&((a12==1)||!(a3==1)))&&(a17==2)))&&((((a16==10)&&(!(a4==1)&&((((a21==12)&&((a23==1)&&((((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6))))&&(input==4))))&&(a12==1))&&!(a18==1))))&&(a13==1))&&(a20==1)))){ + a16 = 7; + a2 = 1; + a23 = 1; + a21 = 10; + a5 = 4; + a9 = 7; + a14 = 0; + a1 = 12; + return -1; + } else if(((((((a13==1)&&((a16==9)&&((a1==14)&&((a19==2)&&((a17==2)&&(!(a0==1)&&((input==4)&&((a5==6)||((a5==4)||(a5==5))))))))))&&!(a27==1))&&(a12==1))&&(a12==1))&&((a9==9)&&((a28==1)&&(((a2==1)&&(a21==12))&&!(a20==1)))))){ + if((a29==1)){ + a21 = 10; + a15 = 0; + a16 = 7; + a9 = 8; + a1 = 12; + a20 = 1; + a5 = 4; + a19 = 1; + a10 = 0; + }else{ + a19 = 3; + a16 = 8; + a29 = 1; + a1 = 12; + a21 = 10; + a5 = 5; + a28 = 0; + a9 = 11; + a10 = 0; + } + return -1; + } else if((((a17==2)&&((a20==1)&&((!(a26==1)&&((a6==1)&&(((a3==1)&&((input==3)&&((a5==5)||(a5==6))))&&(a13==1))))&&(a1==14))))&&(!(a7==1)&&((a9==9)&&((a21==12)&&((a19==3)&&((a28==1)&&((a16==8)&&(a6==1))))))))){ + a27 = 0; + a1 = 12; + a5 = 4; + a21 = 10; + a19 = 1; + a26 = 0; + a0 = 0; + a9 = 7; + a16 = 7; + return -1; + } else if((((a0==1)||((((a7==1)||(!(a20==1)&&((a19==5)&&((a12==1)&&(a28==1)))))&&(a17==2))||!(a11==1)))&&(((a16==8)&&(!(a27==1)&&((((input==3)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11))))&&(a1==13))&&(a21==11))))&&(a13==1)))){ + a16 = 7; + a2 = 0; + a25 = 0; + a5 = 4; + a20 = 1; + a12 = 0; + a21 = 10; + a9 = 10; + a19 = 1; + a1 = 14; + return -1; + } else if(((((a19==4)&&((a24==1)||(((a26==1)||(((a21==10)&&(((a7==1)||(a2==1))&&(a9==10)))&&(a17==2)))&&(a16==7))))&&(a1==13))&&((a13==1)&&((a2==1)&&(!(a24==1)&&((((a5==4)||(a5==5))&&(input==6))&&!(a20==1))))))){ + a0 = 0; + a5 = 4; + a1 = 14; + a11 = 1; + return 25; + } else if(((((a5==6)&&((((!(a7==1)&&(((a17==2)&&(input==6))&&(a12==1)))&&(a1==13))&&(a11==1))&&(a12==1)))&&(a19==1))&&(!(a20==1)&&(((((a21==10)&&((a3==1)&&!(a8==1)))&&(a16==11))&&(a9==8))&&(a12==1))))){ + a5 = 4; + a9 = 9; + a22 = 0; + a20 = 1; + a3 = 0; + a16 = 7; + a24 = 1; + return 23; + } else if((((!(a18==1)&&(!(a20==1)&&((a16==11)&&(a28==1))))&&(a21==10))&&(((((((a12==1)&&(((a1==13)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&(a17==2)))&&(a12==1)))&&(a11==1))&&!(a8==1))&&(a19==1))&&!(a27==1))&&(a9==9)))){ + if((a7==1)){ + a22 = 1; + a16 = 7; + a5 = 5; + a20 = 1; + a10 = 1; + a2 = 0; + a9 = 8; + }else{ + a9 = 8; + a22 = 1; + a1 = 12; + a5 = 6; + a19 = 2; + a6 = 0; + a16 = 10; + } + return 26; + } else if(((!(a18==1)&&(((a1==14)&&((a16==8)&&((input==3)&&(a21==12))))&&(a5==4)))&&(!(a26==1)&&(((((a20==1)&&(((((a28==1)&&(a9==8))&&(a6==1))&&(a17==2))&&(a19==2)))||!(a3==1))&&!(a18==1))&&!(a4==1))))){ + a21 = 10; + a1 = 12; + a4 = 0; + a9 = 7; + a23 = 1; + a19 = 1; + a26 = 0; + a16 = 7; + return -1; + } else if(((((a28==1)&&(((a19==4)&&(((input==6)&&(((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))))&&(a21==12)))&&(a17==2)))&&(a3==1))&&(((((!(a20==1)&&(((a16==8)&&(a2==1))&&(a1==14)))||(a7==1))&&!(a14==1))&&!(a7==1))&&(a13==1)))){ + if((a25==1)){ + a21 = 10; + a5 = 4; + a16 = 7; + a19 = 1; + a9 = 10; + a20 = 1; + a10 = 0; + a13 = 0; + a1 = 13; + a2 = 0; + }else{ + a21 = 10; + a5 = 4; + a20 = 1; + a7 = 1; + a6 = 0; + a9 = 7; + a10 = 0; + a16 = 7; + a1 = 13; + a19 = 2; + } + return -1; + } else if((((a16==8)&&((a20==1)&&((((a21==12)&&((a27==1)&&((a17==2)&&((a7==1)&&((a9==7)&&(input==6))))))&&(a5==6))&&(a19==3))))&&((!(a3==1)&&(((a4==1)&&((a13==1)&&(a1==13)))&&!(a3==1)))&&!(a2==1)))){ + a21 = 11; + a10 = 0; + a9 = 9; + a24 = 1; + return -1; + } else if((((a16==9)&&(((((a19==3)&&((a4==1)||((!(a24==1)&&(a2==1))&&(a20==1))))||(a7==1))&&(a17==2))||!(a6==1)))&&((a9==10)&&((a21==12)&&(((((input==1)&&((a5==5)||(a5==6)))&&!(a27==1))&&(a1==12))&&!(a7==1)))))){ + a16 = 7; + a2 = 1; + a6 = 1; + a5 = 4; + a9 = 7; + a4 = 0; + a19 = 1; + a21 = 10; + return -1; + } else if(((((a2==1)&&((a13==1)&&(((!(a24==1)&&((((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==1)))&&(a17==2))&&(a16==10))))&&(a23==1))&&(((a1==12)&&((((a21==10)&&((a13==1)&&(a11==1)))&&(a20==1))&&(a19==2)))||(a4==1)))){ + a5 = 4; + a9 = 7; + a19 = 1; + a27 = 0; + a6 = 1; + a16 = 7; + return -1; + } else if((((((((a21==12)&&(input==6))&&!(a26==1))&&(a12==1))&&(a19==1))&&(a5==5))&&((((a9==9)&&((((!(a26==1)&&(((a12==1)&&(a6==1))&&!(a18==1)))&&!(a0==1))&&(a17==2))&&!(a20==1)))&&(a16==10))&&(a1==12)))){ + if((a18==1)){ + a29 = 0; + a20 = 1; + a1 = 14; + a26 = 1; + a11 = 0; + a21 = 10; + a16 = 7; + }else{ + a18 = 1; + a20 = 1; + a0 = 1; + a5 = 4; + a25 = 1; + a21 = 11; + a9 = 10; + a16 = 7; + a19 = 3; + } + return 22; + } else if((((!(a14==1)&&((((!(a8==1)&&(a6==1))&&(a19==2))&&(a3==1))&&(a20==1)))&&(a21==11))&&((a17==2)&&((a9==10)&&(((((((input==3)&&((a5==4)||(a5==5)))&&!(a8==1))&&!(a0==1))&&!(a27==1))&&(a16==8))&&(a1==13)))))){ + a16 = 7; + a9 = 7; + a5 = 4; + a19 = 1; + a23 = 1; + a8 = 0; + a26 = 0; + a1 = 12; + a21 = 10; + return -1; + } else if(((((a17==2)&&(((a21==10)&&((!(a6==1)&&(a12==1))&&(a19==1)))&&(a4==1)))&&(a9==8))&&(!(a11==1)&&((a1==13)&&((a16==11)&&(!(a23==1)&&(!(a2==1)&&((((input==4)&&((a5==4)||(a5==5)))&&(a7==1))&&(a20==1))))))))){ + a11 = 0; + a19 = 2; + a5 = 5; + a1 = 12; + a16 = 7; + a9 = 7; + a24 = 1; + a14 = 1; + return -1; + } else if(((((a8==1)&&((a28==1)&&(a27==1)))&&(a24==1))&&((((!(a23==1)&&(((a17==2)&&((((((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))||((a5==5)&&(a9==9)))&&(input==6))&&(a19==3))&&(a1==12))&&(a20==1)))&&(a0==1)))&&(a18==1))&&(a21==11))&&(a16==11)))){ + a27 = 1; + a20 = 0; + a15 = 0; + a9 = 10; + a21 = 12; + a16 = 7; + a22 = 1; + a5 = 5; + return -1; + } else if((((a9==7)&&((!(a20==1)&&(((a16==10)&&(a6==1))&&(a21==10)))&&!(a24==1)))&&((a1==12)&&(((a6==1)&&(!(a24==1)&&(((!(a7==1)&&((a28==1)&&((input==1)&&((a5==5)||(a5==6)))))&&(a17==2))&&(a19==3))))&&(a11==1))))){ + a20 = 1; + a15 = 1; + a4 = 1; + a19 = 1; + a24 = 1; + a5 = 5; + a16 = 7; + return -1; + } else if(((!(a27==1)&&((!(a24==1)&&((!(a7==1)&&((((a21==11)&&((input==1)&&(((((a1==12)&&(a5==6))&&(a9==11))||(((a5==4)&&(a1==13))&&(a9==7)))||(((a1==13)&&(a5==5))&&(a9==7)))))&&(a23==1))&&!(a20==1)))&&(a17==2)))&&!(a7==1)))&&(!(a7==1)&&(((a11==1)&&(a16==10))&&(a19==1))))){ + a1 = 14; + a16 = 7; + a25 = 1; + a19 = 3; + a21 = 10; + a29 = 1; + a22 = 0; + a9 = 8; + a5 = 5; + return -1; + } else if((((((((((a6==1)&&(a13==1))&&(a17==2))&&(a1==13))||!(a6==1))&&(a2==1))||(a14==1))||(a24==1))&&((((!(a20==1)&&((a19==4)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==1))))&&!(a8==1))&&(a16==10))&&(a21==11)))){ + a16 = 7; + a25 = 1; + a20 = 1; + a8 = 1; + a9 = 8; + a5 = 4; + a19 = 5; + a21 = 10; + return -1; + } else if(((((a17==2)&&((a21==10)&&(((!(a20==1)&&(!(a12==1)||(a28==1)))||(a26==1))&&(a9==9))))&&(a5==5))&&(!(a18==1)&&(((!(a26==1)&&(!(a27==1)&&(((input==1)&&(a16==10))&&(a19==3))))&&(a23==1))&&(a1==12))))){ + a9 = 10; + a5 = 4; + a26 = 1; + a21 = 11; + a4 = 1; + a19 = 4; + a16 = 8; + a6 = 0; + return -1; + } else if((((((!(a7==1)&&((a16==8)&&((((a5==4)||(a5==5))&&(input==3))&&!(a20==1))))&&!(a7==1))&&!(a7==1))&&(a6==1))&&((a28==1)&&((a19==5)&&((a17==2)&&((a21==11)&&((!(a12==1)||((a2==1)&&(a9==8)))&&(a1==14)))))))){ + a19 = 1; + a16 = 7; + a10 = 0; + a18 = 1; + a20 = 1; + a5 = 5; + return 22; + } else if((((a20==1)&&((a19==1)&&((a21==11)&&(((((a4==1)||(a12==1))||(a24==1))||(a14==1))&&(a1==14)))))&&((a16==9)&&((a17==2)&&(!(a27==1)&&(!(a14==1)&&((((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4)))&&(input==6))&&(a3==1)))))))){ + a24 = 0; + a1 = 12; + a9 = 7; + a21 = 10; + a5 = 4; + a0 = 0; + a16 = 7; + a28 = 1; + return -1; + } else if((((a21==12)&&(((((a20==1)&&(((a1==12)&&(((a16==8)&&((a11==1)&&!(a14==1)))||(a4==1)))&&!(a4==1)))&&(a13==1))&&(a9==10))&&(a23==1)))&&((!(a27==1)&&((a19==4)&&((a5==6)&&(input==4))))&&(a17==2)))){ + a19 = 1; + a26 = 0; + a16 = 7; + a5 = 4; + a27 = 0; + a8 = 0; + a21 = 10; + a9 = 7; + return -1; + } else if((((((a2==1)&&(((a1==12)&&(a6==1))&&(a9==9)))&&!(a18==1))&&(a19==2))&&((((a28==1)&&(!(a18==1)&&((a17==2)&&((((a20==1)&&(((a5==4)||(a5==5))&&(input==4)))&&(a21==10))&&(a16==10)))))&&!(a26==1))&&(a23==1)))){ + a1 = 13; + a19 = 3; + a16 = 7; + a9 = 7; + a21 = 11; + a20 = 0; + a7 = 0; + a8 = 0; + a5 = 6; + return 25; + } else if(((((a17==2)&&(!(a7==1)&&((!(a14==1)&&(a3==1))&&!(a20==1))))||(a7==1))&&(!(a8==1)&&(((a21==10)&&(((((a23==1)&&((input==6)&&(((a9==11)&&(a5==4))||(((a9==10)&&(a5==5))||((a5==6)&&(a9==10))))))&&!(a14==1))&&(a16==11))&&(a1==14)))&&(a19==1))))){ + a20 = 1; + a5 = 6; + a9 = 7; + a10 = 1; + a16 = 7; + a13 = 0; + a24 = 1; + return 21; + } else if((((a4==1)||(!(a27==1)&&((a16==11)&&(((a3==1)&&(a20==1))&&(a21==10)))))&&((a11==1)&&((a6==1)&&(((a19==1)&&(((a28==1)&&((a17==2)&&((a9==11)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3)))))&&(a1==13)))&&!(a7==1)))))){ + a5 = 4; + a18 = 0; + a12 = 1; + a9 = 7; + a7 = 0; + a16 = 7; + a1 = 12; + return -1; + } else if((((a17==2)&&((((((a20==1)&&((a19==4)&&(((input==1)&&((((a5==4)&&(a1==13))&&(a9==7))||((((a5==5)&&(a1==12))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==12))))))&&(a28==1))))&&(a13==1))&&(a2==1))&&!(a18==1))&&(a2==1)))&&((a21==11)&&(((a23==1)&&!(a26==1))&&(a16==7))))){ + a5 = 4; + a27 = 0; + a9 = 7; + a19 = 1; + a6 = 1; + a21 = 10; + a1 = 12; + a4 = 0; + return -1; + } else if(((((a1==13)&&((a24==1)||(((a21==12)&&(a28==1))||!(a13==1))))&&(a17==2))&&((((!(a7==1)&&((a20==1)&&((((a13==1)&&(((a5==5)||(a5==6))&&(input==3)))&&!(a7==1))&&(a19==4))))&&(a16==7))&&!(a18==1))&&(a9==10)))){ + a16 = 9; + a19 = 2; + a2 = 1; + a4 = 0; + a1 = 14; + a21 = 11; + a5 = 5; + a9 = 11; + a12 = 1; + return 23; + } else if(((((((((a21==11)&&((a5==4)&&((a16==11)&&((a18==1)||((a23==1)&&(a13==1))))))&&(a19==5))&&(a9==9))&&(a17==2))||(a24==1))||!(a2==1))&&(!(a26==1)&&(((a1==13)&&((input==1)&&(a20==1)))&&(a13==1))))){ + a21 = 12; + a19 = 3; + a9 = 11; + a12 = 1; + a1 = 12; + a24 = 0; + a3 = 1; + return 21; + } else if(((!(a8==1)&&((a1==12)&&((((a20==1)&&((input==3)&&(((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))))&&(a21==10))&&(a23==1))))&&(((((((a16==7)&&((a13==1)||(a24==1)))&&(a19==3))&&(a23==1))||(a26==1))&&(a2==1))&&(a17==2)))){ + a24 = 0; + a19 = 5; + a5 = 6; + a1 = 13; + a27 = 0; + a9 = 9; + return 25; + } else if(((((a21==11)&&((a3==1)&&(((a9==10)&&(!(a20==1)&&((a23==1)&&(!(a24==1)&&((input==5)&&((a5==6)||((a5==4)||(a5==5))))))))&&(a16==10))))&&!(a27==1))&&((((a19==2)&&(((a17==2)&&(a23==1))&&(a1==12)))||(a26==1))&&!(a14==1)))){ + if((a26==1)){ + a16 = 7; + a15 = 1; + a19 = 1; + a5 = 4; + a21 = 10; + a1 = 14; + a20 = 1; + a14 = 1; + a28 = 0; + }else{ + a16 = 7; + a11 = 0; + a5 = 5; + a9 = 7; + a19 = 1; + a18 = 1; + a21 = 10; + a20 = 1; + a23 = 0; + } + return 25; + } else if(((((a6==1)&&((a9==8)&&((a23==1)&&(!(a18==1)&&((a17==2)&&((a2==1)&&((a16==10)&&(!(a20==1)&&(input==4)))))))))&&(a1==13))&&(((a5==4)&&((((a2==1)&&(a13==1))&&(a19==1))&&(a2==1)))&&(a21==10)))){ + a15 = 1; + a16 = 7; + a28 = 0; + a0 = 1; + a20 = 1; + a1 = 14; + return 21; + } else if(((((a17==2)&&((!(a12==1)||((a19==2)&&(a28==1)))||(a18==1)))&&(a16==11))&&((((((!(a4==1)&&((a23==1)&&(((((a5==5)&&(a9==10))||((a5==6)&&(a9==10)))||((a9==11)&&(a5==4)))&&(input==1))))&&(a1==12))&&(a21==10))&&(a3==1))&&!(a27==1))&&!(a20==1)))){ + a16 = 7; + a5 = 5; + a14 = 1; + a9 = 8; + a20 = 1; + a25 = 0; + a6 = 0; + return -1; + } else if(((((a17==2)&&((!(a4==1)&&((a1==13)&&((input==3)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))))&&(a16==8)))&&!(a26==1))&&(((a21==10)&&(!(a2==1)||(((((a20==1)&&(a11==1))&&!(a27==1))&&!(a7==1))&&(a19==3))))&&(a28==1)))){ + a5 = 4; + a16 = 7; + a1 = 12; + a19 = 1; + a9 = 7; + a18 = 0; + a4 = 0; + a24 = 0; + return -1; + } else if((((!(a7==1)&&(((a13==1)&&(((((a5==5)||(a5==6))&&(input==6))&&(a19==2))&&!(a4==1)))&&(a21==10)))&&(a16==9))&&((a1==14)&&((a20==1)&&((a9==8)&&(((a7==1)||(!(a8==1)&&((a23==1)&&(a17==2))))||(a18==1))))))){ + a5 = 6; + a23 = 1; + a16 = 8; + a20 = 0; + a9 = 10; + a2 = 1; + a28 = 1; + return 21; + } else if(((!(a18==1)&&((a28==1)&&((a12==1)&&(((a6==1)&&((input==4)&&(a9==7)))&&(a17==2)))))&&((a5==4)&&((a19==5)&&(!(a20==1)&&(((((a13==1)&&(!(a27==1)&&(a2==1)))&&(a1==14))&&(a16==9))&&(a21==11))))))){ + a28 = 0; + a16 = 7; + a19 = 1; + a29 = 1; + a1 = 13; + a20 = 1; + a9 = 9; + return -1; + } else if(((((a16==10)&&(!(a13==1)||((a18==1)||((!(a14==1)&&(((!(a8==1)&&(a28==1))&&(a1==14))&&(a19==2)))&&(a21==10)))))&&(a9==11))&&((!(a4==1)&&(((((a5==4)||(a5==5))&&(input==5))&&!(a20==1))&&(a3==1)))&&(a17==2)))){ + a15 = 0; + a9 = 10; + a5 = 4; + a1 = 13; + a16 = 11; + a29 = 0; + a25 = 0; + return -1; + } else if(((!(a7==1)&&((a6==1)&&(!(a27==1)&&((a16==7)&&((!(a26==1)&&((a19==5)&&(!(a20==1)&&((((input==4)&&((a5==5)||(a5==6)))&&!(a4==1))&&(a17==2)))))&&(a6==1))))))&&((a9==10)&&(((a28==1)&&(a1==14))&&(a21==11))))){ + a5 = 4; + a1 = 12; + a12 = 1; + a9 = 9; + a20 = 1; + a11 = 1; + a16 = 8; + a21 = 10; + a4 = 0; + return -1; + } else if(((((a3==1)&&(((a17==2)&&(!(a2==1)||(((a16==10)&&(a3==1))&&!(a18==1))))&&(a2==1)))&&(a28==1))&&(!(a14==1)&&((((a19==3)&&(!(a20==1)&&((((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a9==10)&&(a5==6))))&&(input==6))))&&(a1==14))&&(a21==12))))){ + if((a15==1)){ + a22 = 0; + a5 = 4; + a1 = 12; + a16 = 11; + a3 = 0; + a21 = 10; + a20 = 1; + a19 = 5; + a9 = 9; + }else{ + a16 = 7; + a21 = 10; + a10 = 0; + a19 = 2; + a9 = 11; + a5 = 4; + a1 = 12; + a20 = 1; + a4 = 1; + } + return -1; + } else if((((a12==1)&&((a17==2)&&((a0==1)||(!(a20==1)&&((a21==11)&&((a1==12)&&(!(a23==1)||(a13==1))))))))&&((a2==1)&&((a11==1)&&(!(a27==1)&&((((a9==10)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&(a16==9))&&(a19==5))))))){ + a20 = 1; + a11 = 0; + a21 = 10; + a27 = 1; + a5 = 5; + a16 = 7; + a29 = 0; + a19 = 1; + return -1; + } else if(((((((((((a9==11)&&((a1==12)&&(a5==6)))||((a9==7)&&((a5==4)&&(a1==13))))||(((a1==13)&&(a5==5))&&(a9==7)))&&(input==1))&&(a21==10))&&(a6==1))&&(a28==1))&&!(a7==1))&&((((a27==1)||((!(a3==1)||(!(a8==1)&&((a19==1)&&(a13==1))))&&(a17==2)))&&(a16==7))&&!(a20==1)))){ + a11 = 1; + a20 = 1; + a3 = 1; + a1 = 12; + a19 = 3; + a16 = 9; + a5 = 5; + a9 = 11; + return 25; + } else if(((((a19==2)&&(((a28==1)&&(!(a26==1)&&(((a21==12)&&((((input==6)&&(a1==13))&&(a16==9))&&(a2==1)))&&!(a7==1))))&&(a5==4)))&&(a17==2))&&((a9==7)&&(((a20==1)&&(!(a2==1)||(a13==1)))||(a4==1))))){ + a16 = 7; + a21 = 10; + a7 = 0; + a19 = 1; + a23 = 1; + a1 = 12; + a0 = 0; + return -1; + } else if((((((!(a18==1)&&(((!(a23==1)||(a13==1))&&(a5==4))||!(a12==1)))&&(a16==10))||!(a2==1))&&(a17==2))&&(((a6==1)&&((a1==13)&&(((a19==2)&&(((a9==7)&&(input==5))&&!(a24==1)))&&(a21==12))))&&(a20==1)))){ + a16 = 7; + a9 = 9; + a23 = 1; + a2 = 1; + a21 = 10; + return 23; + } else if((((a1==14)&&(!(a8==1)&&(((((a11==1)&&(a21==10))||!(a11==1))&&(a17==2))&&(a16==11))))&&((((!(a8==1)&&(((((input==5)&&(a9==10))&&!(a4==1))&&(a19==3))&&(a20==1)))&&(a6==1))&&(a5==5))&&(a13==1)))){ + a28 = 1; + a5 = 4; + a19 = 1; + a27 = 0; + a1 = 12; + a24 = 0; + a9 = 7; + a16 = 7; + return -1; + } else if((((((a3==1)&&(((a19==3)&&((a21==12)&&((a1==14)&&((a16==7)&&((((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))&&(input==4))))))&&(a20==1)))&&(a28==1))&&!(a7==1))&&(((a12==1)&&(((a13==1)&&(a17==2))||!(a11==1)))||!(a23==1)))){ + a21 = 10; + a18 = 0; + a19 = 1; + a8 = 0; + a9 = 7; + a1 = 12; + a5 = 4; + return -1; + } else if((((((((a19==4)&&((a12==1)&&(a1==13)))&&(a17==2))||(a0==1))||!(a3==1))&&!(a26==1))&&(((!(a8==1)&&(((a16==7)&&(((input==1)&&((((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4))))&&!(a20==1)))&&(a3==1)))&&(a21==12))&&(a28==1)))){ + a7 = 0; + a19 = 3; + a5 = 6; + a16 = 9; + a13 = 1; + a20 = 1; + a9 = 7; + a21 = 11; + a3 = 1; + a1 = 14; + return 23; + } else if(((((a17==2)&&((((a2==1)&&((a16==7)&&(input==5)))&&!(a18==1))&&(a21==11)))&&(a9==7))&&(((a1==14)&&((((a0==1)||(((a5==5)&&((a3==1)&&!(a24==1)))&&!(a27==1)))||(a24==1))&&(a19==5)))&&(a20==1)))){ + a1 = 12; + a13 = 1; + a6 = 1; + a19 = 3; + a16 = 8; + a21 = 12; + a9 = 11; + a26 = 0; + return 23; + } else if((((a1==12)&&((a21==10)&&((a19==4)&&(!(a24==1)&&(!(a7==1)&&(((((input==3)&&((((a5==5)&&(a9==8))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9))))&&!(a0==1))&&(a3==1))&&(a16==10)))))))&&(((((a17==2)&&(a28==1))&&(a12==1))||(a4==1))&&(a20==1)))){ + a19 = 1; + a16 = 7; + a9 = 7; + a4 = 0; + a6 = 1; + a14 = 0; + a5 = 4; + return -1; + } else if((((a16==9)&&(((((((((((a19==5)&&(((a5==4)&&(a1==12))&&(a9==7)))||(((a19==4)&&(((a1==14)&&(a5==5))&&(a9==11)))||((a19==4)&&(((a5==6)&&(a1==14))&&(a9==11)))))&&(input==5))&&(a6==1))&&!(a18==1))&&(a21==11))&&(a12==1))&&(a17==2))&&(a20==1))&&(a12==1)))&&(((a12==1)||(a4==1))||(a0==1)))){ + a19 = 5; + a16 = 8; + a5 = 5; + a13 = 1; + a20 = 0; + a9 = 10; + a1 = 12; + a14 = 0; + a11 = 1; + return 21; + } else if(((!(a0==1)&&(!(a27==1)&&(!(a27==1)&&(((a19==1)&&((a17==2)&&((((a9==7)&&((a5==4)&&(a1==14)))||((((a1==13)&&(a5==5))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==13)))))&&(input==4))))&&!(a20==1)))))&&(!(a8==1)&&(((a0==1)||(((a23==1)&&(a16==7))&&(a21==11)))||!(a6==1))))){ + a21 = 10; + a20 = 1; + a2 = 1; + a5 = 4; + a1 = 12; + a9 = 7; + a12 = 1; + a7 = 0; + return -1; + } else if((((((input==5)&&(((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))))&&!(a0==1))&&(a19==3))&&(((a26==1)||(((a17==2)&&(((a20==1)&&((((a3==1)&&(!(a11==1)||(a23==1)))&&!(a8==1))&&(a16==7)))&&(a1==12)))||(a27==1)))&&(a21==10)))){ + a9 = 11; + a12 = 1; + a3 = 1; + a19 = 5; + a1 = 13; + a5 = 5; + a24 = 0; + return 23; + } else if(((((!(a20==1)&&(!(a12==1)||(!(a13==1)||(a3==1))))&&(a1==12))&&(a21==12))&&((a11==1)&&(((!(a24==1)&&((a6==1)&&(((a16==8)&&((input==6)&&(((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))))&&(a17==2))))&&!(a8==1))&&(a19==3))))){ + if((a24==1)){ + a25 = 0; + a20 = 1; + a3 = 0; + a19 = 4; + a5 = 4; + a9 = 8; + a16 = 11; + a21 = 10; + a1 = 13; + a12 = 0; + }else{ + a16 = 7; + a25 = 0; + a19 = 1; + a5 = 5; + a9 = 9; + a21 = 10; + a1 = 14; + a20 = 1; + a13 = 0; + } + return -1; + } else if((((((((a9==8)&&((((!(a7==1)&&(!(a4==1)&&((a20==1)&&(input==1))))&&(a19==2))&&(a12==1))&&!(a26==1)))&&(a21==11))&&(a17==2))&&(a1==14))&&(a5==4))&&((a16==8)&&(((a23==1)&&(a6==1))||(a4==1))))){ + a11 = 1; + a9 = 7; + a1 = 12; + a19 = 1; + a16 = 7; + a28 = 1; + a21 = 10; + return -1; + } else if((((a24==1)||((a0==1)||((a16==10)&&((a17==2)&&((a9==10)&&((a21==10)&&(!(a20==1)&&(((a13==1)||!(a2==1))&&!(a7==1)))))))))&&((((((input==1)&&(a19==3))&&(a5==4))&&(a1==12))&&(a3==1))&&(a12==1)))){ + a5 = 6; + a22 = 0; + a1 = 13; + a29 = 0; + a20 = 1; + a9 = 8; + a19 = 1; + a16 = 7; + a11 = 0; + return 25; + } else if((((a19==1)&&(!(a14==1)&&(((((a16==7)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))&&(input==1)))&&(a3==1))&&!(a24==1))&&(a12==1))))&&((a1==13)&&((!(a12==1)||((a21==10)&&(!(a20==1)&&((a17==2)&&(a13==1)))))&&(a28==1))))){ + a3 = 1; + a28 = 1; + a12 = 1; + a5 = 4; + a9 = 9; + a19 = 2; + return 22; + } else if((((a1==13)&&((!(a0==1)&&((a17==2)&&(((a21==10)&&(((a20==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5)))))&&(a23==1)))&&!(a0==1))))&&(a9==11)))&&((((((a28==1)||!(a6==1))||!(a12==1))||(a7==1))&&(a19==3))&&(a16==10)))){ + a23 = 1; + a1 = 14; + a21 = 12; + a24 = 0; + a16 = 8; + a19 = 4; + a9 = 7; + a6 = 1; + a5 = 4; + return 22; + } else if(((((((a13==1)&&(((((a2==1)&&(a5==5))&&(a12==1))&&(a19==2))&&!(a14==1)))&&(a1==12))||(a24==1))&&(a16==7))&&((a17==2)&&(((((a20==1)&&((input==3)&&(a9==11)))&&!(a26==1))&&(a13==1))&&(a21==11))))){ + a5 = 4; + a0 = 0; + a11 = 1; + a28 = 1; + a21 = 10; + a9 = 7; + a19 = 1; + return -1; + } else if((((((a16==8)&&((a21==10)&&((a20==1)&&((((!(a3==1)||(a23==1))&&!(a0==1))&&(a1==14))&&(a17==2)))))||!(a12==1))||(a26==1))&&(((((input==1)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(a6==1))&&(a19==2))&&(a2==1)))){ + a19 = 1; + a1 = 12; + a12 = 1; + a28 = 1; + a5 = 4; + a16 = 7; + a9 = 7; + return -1; + } else if((((a9==7)&&((((a13==1)&&(!(a18==1)&&(!(a4==1)&&((a5==6)&&((a20==1)&&(((a3==1)&&((input==3)&&(a21==12)))&&(a1==13)))))))&&(a16==8))&&(a19==5)))&&((((a3==1)||!(a23==1))&&!(a0==1))&&(a17==2)))){ + a16 = 7; + a1 = 12; + a19 = 1; + a8 = 0; + a27 = 0; + a5 = 4; + a2 = 1; + a21 = 10; + return -1; + } else if((((a16==10)&&(((a21==12)&&((!(a11==1)||(a11==1))||!(a28==1)))&&(a1==12)))&&((((a5==4)&&((((a9==7)&&((!(a4==1)&&((input==1)&&(a19==5)))&&!(a7==1)))&&(a17==2))&&!(a20==1)))&&!(a7==1))&&!(a14==1)))){ + a16 = 8; + a25 = 1; + a20 = 1; + a5 = 6; + a19 = 3; + a1 = 14; + a22 = 1; + a6 = 0; + return -1; + } else if((((!(a27==1)&&(!(a23==1)||(((a7==1)||((((a21==12)&&(a13==1))&&(a16==10))||!(a11==1)))&&(a19==2))))||(a4==1))&&((!(a4==1)&&((a17==2)&&((((((a1==13)&&(a5==5))&&(a9==11))||(((a1==13)&&(a5==6))&&(a9==11)))||((a9==7)&&((a5==4)&&(a1==14))))&&(input==4))))&&!(a20==1)))){ + a21 = 10; + a5 = 6; + a1 = 12; + a24 = 1; + a28 = 0; + a9 = 11; + return 25; + } else if((((a21==11)&&((a12==1)&&(((a6==1)&&(((a1==12)&&((a9==9)&&(input==5)))&&(a13==1)))&&(a17==2))))&&((((((((a11==1)&&(a5==5))||(a26==1))||!(a23==1))&&(a19==1))&&!(a20==1))||!(a12==1))&&(a16==9)))){ + a22 = 0; + a11 = 0; + a5 = 6; + a1 = 13; + a16 = 7; + a21 = 10; + a29 = 0; + a20 = 1; + return -1; + } else if((((!(a4==1)&&(((a3==1)&&((a9==9)&&((((input==6)&&((a5==4)||(a5==5)))&&(a17==2))&&(a16==10))))&&(a21==12)))&&!(a24==1))&&(((!(a28==1)||((((a3==1)&&(a1==14))&&(a20==1))&&(a19==4)))||!(a12==1))&&!(a26==1)))){ + a8 = 0; + a1 = 13; + a16 = 7; + a5 = 4; + a11 = 1; + a19 = 2; + a0 = 0; + a21 = 10; + return 25; + } else if((((a20==1)&&((a23==1)&&(((!(a7==1)&&(!(a8==1)&&((a1==12)&&(input==4))))&&(a13==1))&&(a9==9))))&&((a19==2)&&((a5==4)&&((a17==2)&&(((a0==1)||(((a16==7)&&(a12==1))&&(a2==1)))&&(a21==11))))))){ + a26 = 0; + a2 = 1; + a9 = 7; + a6 = 1; + a21 = 10; + a19 = 1; + return -1; + } else if((((a17==2)&&((!(a20==1)&&((((a5==5)&&((a16==9)&&(a3==1)))&&!(a0==1))&&!(a14==1)))&&(a21==12)))&&(((a28==1)&&(((a1==14)&&((((a19==1)&&(input==1))&&(a9==9))&&(a6==1)))&&!(a7==1)))&&(a2==1)))){ + a5 = 6; + a1 = 13; + a9 = 11; + a16 = 10; + a19 = 4; + a22 = 0; + a28 = 0; + a21 = 11; + return 21; + } else if((((((a1==12)&&((a17==2)&&(a13==1)))&&(a21==11))&&(a19==2))&&((a3==1)&&(!(a26==1)&&((a20==1)&&((((((((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10)))&&(input==5))&&(a16==7))&&(a12==1))&&(a6==1))&&(a23==1))&&(a11==1))))))){ + a16 = 8; + a21 = 10; + a12 = 1; + a1 = 14; + a9 = 11; + a5 = 5; + a2 = 1; + a11 = 1; + return 25; + } else if(((!(a26==1)&&((a17==2)&&((!(a20==1)&&(((a21==10)&&(!(a18==1)&&(!(a0==1)&&((input==4)&&(((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))))))&&(a12==1)))&&(a1==14))))&&((!(a26==1)&&((a19==2)&&((a3==1)&&(a6==1))))&&(a16==10)))){ + a19 = 3; + a5 = 5; + a21 = 11; + a2 = 0; + a1 = 12; + a16 = 9; + a9 = 10; + a25 = 1; + a20 = 1; + a23 = 0; + return 25; + } else if(((((a23==1)&&((a19==5)&&(((((((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5)))&&(input==3))&&(a17==2))&&(a16==7))&&!(a27==1))&&(a20==1))))&&(a6==1))&&((!(a2==1)||(((a1==12)&&((a2==1)&&(a12==1)))&&(a21==12)))||!(a28==1)))){ + a28 = 1; + a5 = 5; + a13 = 1; + a1 = 14; + a16 = 8; + a23 = 1; + a9 = 9; + return 22; + } else if((((((((a9==7)&&(((a21==10)&&((a20==1)&&(((a1==13)&&(input==3))&&!(a11==1))))&&(a5==6)))&&(a16==7))&&(a19==4))&&!(a12==1))&&(a26==1))&&(((((a17==2)&&(a2==1))&&(a8==1))&&!(a28==1))&&!(a23==1)))){ + a5 = 5; + a9 = 11; + a28 = 0; + a19 = 1; + a3 = 0; + a7 = 1; + a1 = 14; + return -1; + } else if(((((!(a7==1)&&(((a5==5)&&(!(a24==1)&&((((a6==1)&&(a19==2))&&(a20==1))&&(a16==9))))||!(a2==1)))||!(a6==1))||!(a3==1))&&((a1==13)&&(((a17==2)&&((a9==10)&&((a21==10)&&(input==1))))&&!(a0==1))))){ + a19 = 5; + a1 = 12; + a9 = 8; + a24 = 0; + a6 = 1; + a16 = 8; + a5 = 4; + a12 = 1; + a21 = 12; + return -1; + } else if((((!(a6==1)||((a16==8)&&(!(a14==1)&&(a13==1))))&&(a17==2))&&((a19==3)&&(((((a21==10)&&((a20==1)&&(((a1==12)&&((input==3)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))))&&(a12==1))))&&!(a7==1))&&!(a24==1))&&!(a18==1))))){ + a28 = 1; + a24 = 0; + a5 = 4; + a9 = 7; + a16 = 7; + a12 = 1; + a19 = 1; + return -1; + } else if((((a2==1)&&(((a3==1)&&((((input==6)&&((((a5==5)&&(a9==9))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4))))&&(a1==14))&&!(a7==1)))&&(a6==1)))&&(!(a2==1)||((a19==4)&&(!(a23==1)||(((((a20==1)&&(a28==1))&&(a16==10))&&(a21==10))&&(a17==2))))))){ + a19 = 1; + a9 = 9; + a6 = 1; + a5 = 4; + a16 = 9; + a1 = 13; + a8 = 0; + a0 = 0; + return -1; + } else if(((((a17==2)&&((!(a12==1)||((a1==13)&&((a19==5)&&(a11==1))))&&!(a27==1)))&&(a20==1))&&((a9==8)&&(((a5==6)&&(!(a7==1)&&((!(a8==1)&&((a2==1)&&((a16==10)&&(input==5))))&&(a6==1))))&&(a21==12))))){ + a11 = 1; + a19 = 4; + a21 = 10; + a6 = 1; + a24 = 0; + a9 = 10; + a16 = 9; + return -1; + } else if((((!(a20==1)&&(((a17==2)&&(((input==6)&&((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4))))&&!(a27==1)))&&(a1==13)))&&(a19==3))&&((a21==12)&&(!(a24==1)&&((a12==1)&&(!(a2==1)||(((a16==8)&&((a12==1)||!(a12==1)))||!(a2==1)))))))){ + if((a7==1)){ + a8 = 1; + a16 = 7; + a19 = 2; + a1 = 12; + a7 = 1; + a9 = 8; + a21 = 10; + a5 = 4; + a20 = 1; + a25 = 0; + }else{ + a9 = 8; + a27 = 1; + a5 = 4; + a12 = 0; + a1 = 12; + a21 = 10; + a20 = 1; + a0 = 1; + a19 = 2; + a16 = 7; + } + return -1; + } else if((((a1==12)&&(((a21==10)&&(((a27==1)||(!(a8==1)&&((a19==4)&&(a23==1))))&&(a20==1)))&&(a17==2)))&&((a23==1)&&(!(a24==1)&&(((a13==1)&&(((((a5==4)||(a5==5))&&(input==3))&&(a13==1))&&(a9==9)))&&(a16==9)))))){ + a16 = 7; + a9 = 7; + a5 = 4; + a19 = 1; + a14 = 0; + a28 = 1; + return -1; + } else if((((a16==11)&&((a19==5)&&((((!(a26==1)&&((((a5==5)||(a5==6))&&(input==3))&&(a23==1)))&&!(a18==1))&&(a21==12))&&(a1==13))))&&((a12==1)&&((a20==1)&&(((((a23==1)&&(a9==10))&&(a17==2))||!(a28==1))&&!(a27==1)))))){ + a24 = 0; + a23 = 1; + a6 = 1; + a21 = 10; + a1 = 12; + a19 = 1; + a5 = 4; + a16 = 7; + a9 = 7; + return -1; + } else if(((!(a27==1)&&(((a21==10)&&((((a9==11)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a19==1)))&&(a23==1))&&(a6==1)))&&(a17==2)))&&((a0==1)||((a20==1)&&((a16==11)&&((a28==1)&&(((a1==13)&&(a3==1))||(a14==1)))))))){ + a3 = 1; + a12 = 1; + a14 = 0; + a5 = 6; + a1 = 14; + a21 = 11; + return 23; + } else if(((((!(a13==1)||(((a28==1)&&(a17==2))&&(a20==1)))&&(a21==11))&&!(a0==1))&&((!(a18==1)&&((((a19==3)&&((a13==1)&&((input==6)&&((((a9==11)&&((a1==13)&&(a5==5)))||((a9==11)&&((a1==13)&&(a5==6))))||((a9==7)&&((a5==4)&&(a1==14)))))))&&!(a0==1))&&(a16==8)))&&(a23==1)))){ + a27 = 0; + a9 = 8; + a3 = 1; + a19 = 1; + a1 = 14; + a5 = 6; + a4 = 0; + a21 = 12; + return 21; + } else if((((a21==10)&&(!(a7==1)&&((a1==12)&&((!(a14==1)&&((a11==1)&&((input==6)&&((a5==6)||((a5==4)||(a5==5))))))&&(a17==2)))))&&((((a2==1)&&((a12==1)&&((a20==1)&&((a8==1)||((a16==9)&&(a3==1))))))&&(a19==2))&&(a9==10)))){ + a9 = 7; + a3 = 1; + a16 = 7; + a28 = 1; + a5 = 4; + a13 = 1; + a19 = 1; + return -1; + } else if(((((a21==10)&&(!(a0==1)&&((((((a9==9)&&((a5==6)&&(input==4)))&&(a23==1))&&(a12==1))&&(a16==9))&&(a28==1))))&&!(a20==1))&&(!(a14==1)&&(!(a23==1)||((a17==2)&&(((a1==14)&&(a3==1))&&(a19==5))))))){ + a9 = 8; + a20 = 1; + a8 = 1; + a19 = 1; + a28 = 0; + a5 = 4; + a16 = 7; + a4 = 1; + return 22; + } else if(((((!(a4==1)&&(!(a8==1)&&((a9==11)&&(!(a24==1)&&((((input==1)&&(a16==7))&&!(a7==1))&&(a1==13))))))&&(a17==2))&&(a21==11))&&(((a19==2)&&((a8==1)||(!(a20==1)&&((a5==6)&&(a28==1)))))||(a7==1)))){ + a19 = 1; + a2 = 1; + a26 = 0; + a9 = 9; + a20 = 1; + a1 = 12; + a28 = 1; + a5 = 5; + a21 = 12; + return 22; + } else if((((a21==10)&&(((a5==4)&&((((input==4)&&(a19==4))&&(a14==1))&&!(a28==1)))&&(a9==11)))&&((((a16==9)&&(!(a2==1)&&(((a1==13)&&(((a28==1)&&(a26==1))&&(a17==2)))&&!(a13==1))))&&(a18==1))&&(a20==1)))){ + a20 = 0; + a16 = 7; + a19 = 1; + a1 = 12; + a2 = 0; + a5 = 6; + a11 = 0; + a12 = 0; + return -1; + } else if((((a19==1)&&((!(a2==1)&&((a8==1)&&((a18==1)&&((a16==9)&&(((a9==7)&&((input==4)&&(a21==11)))&&(a5==4))))))&&(a20==1)))&&((!(a3==1)&&((a1==12)&&((!(a6==1)&&(a3==1))&&(a8==1))))&&(a17==2)))){ + a1 = 14; + a19 = 4; + a14 = 1; + a25 = 0; + a26 = 1; + a21 = 12; + a20 = 0; + a16 = 7; + return -1; + } else if(((((a21==10)&&(((a2==1)&&(a2==1))&&!(a20==1)))&&(a1==14))&&(((a11==1)&&((a3==1)&&(((a2==1)&&(((!(a14==1)&&((input==1)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))&&(a16==10))&&(a17==2)))&&(a19==5))))&&(a11==1)))){ + a20 = 1; + a9 = 7; + a4 = 1; + a29 = 0; + a19 = 1; + a16 = 7; + a1 = 13; + a5 = 4; + a22 = 0; + return -1; + } else if((((a2==1)&&((((((input==5)&&((a5==5)||(a5==6)))&&(a9==9))&&(a1==12))&&(a19==1))&&(a21==11)))&&(((((!(a11==1)||((((a13==1)&&(a17==2))&&(a16==10))&&(a20==1)))&&(a28==1))&&(a3==1))||!(a28==1))&&!(a26==1)))){ + a21 = 10; + a2 = 1; + a3 = 1; + a16 = 7; + a9 = 7; + a11 = 1; + a5 = 4; + return -1; + } else if((((a2==1)&&((a27==1)||((a28==1)&&((a1==12)&&((((a17==2)&&((a6==1)&&(a21==10)))&&!(a20==1))&&(a19==2))))))&&(((!(a24==1)&&(((input==3)&&(((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))))&&(a16==10)))&&!(a27==1))&&!(a8==1)))){ + a1 = 14; + a10 = 0; + a9 = 10; + a21 = 12; + a3 = 0; + a22 = 1; + a5 = 6; + a16 = 7; + return -1; + } else if(((!(a13==1)||((a14==1)||((((a21==12)&&((a28==1)&&((a2==1)&&(a16==10))))&&(a17==2))&&(a28==1))))&&((a9==11)&&((a1==13)&&((a20==1)&&((a19==5)&&((a23==1)&&(((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a28==1))))))))){ + a12 = 1; + a9 = 9; + a16 = 7; + a21 = 10; + a5 = 5; + a19 = 2; + a7 = 0; + a28 = 1; + return 23; + } else if(((((a16==10)&&((a1==13)&&(((a17==2)&&(!(a2==1)||((a19==4)&&((a12==1)&&!(a26==1)))))&&!(a27==1))))||!(a23==1))&&(!(a18==1)&&((a20==1)&&((((input==5)&&(((a5==4)&&(a9==9))||(((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))))&&(a21==11))&&(a11==1)))))){ + a16 = 7; + a21 = 10; + a9 = 9; + a5 = 4; + a11 = 1; + a4 = 0; + a6 = 1; + a19 = 2; + return 25; + } else if((((a17==2)&&(((((a24==1)||((!(a20==1)&&(a3==1))&&!(a4==1)))&&(a1==13))||!(a12==1))||!(a3==1)))&&((a5==5)&&((((((a9==11)&&((input==5)&&(a21==12)))&&(a16==9))&&(a19==4))&&!(a26==1))&&(a6==1))))){ + a19 = 1; + a16 = 7; + a5 = 4; + a27 = 1; + a20 = 1; + a21 = 10; + a9 = 10; + a1 = 12; + a8 = 1; + a22 = 0; + return 21; + } else if(((!(a18==1)&&((a17==2)&&((a20==1)&&(((!(a4==1)&&((a16==7)&&((a23==1)&&((input==5)&&((((a1==14)&&(a5==5))&&(a9==7))||(((a9==11)&&((a5==6)&&(a1==13)))||((a9==7)&&((a1==14)&&(a5==4)))))))))&&(a19==2))&&(a2==1)))))&&((((a21==10)&&(a23==1))&&(a12==1))||!(a23==1)))){ + a28 = 1; + a19 = 3; + a1 = 14; + a16 = 8; + a20 = 0; + a5 = 6; + a9 = 10; + a14 = 0; + a4 = 0; + return 23; + } else if((((a9==10)&&((((a28==1)&&((((a17==2)&&(((a5==4)||(a5==5))&&(input==1)))&&!(a18==1))&&!(a20==1)))&&(a1==14))&&(a21==11)))&&((((a19==1)&&((((a28==1)&&(a16==8))||(a27==1))||!(a13==1)))&&(a23==1))||!(a11==1)))){ + a9 = 7; + a6 = 1; + a20 = 1; + a13 = 1; + a0 = 0; + a21 = 10; + a5 = 4; + a1 = 12; + a16 = 7; + return -1; + } else if(((!(a4==1)&&((a3==1)&&(((((a5==5)||(a5==6))&&(input==3))&&(a1==14))&&!(a24==1))))&&((!(a13==1)||(((a17==2)&&((a19==2)&&((a9==9)&&((a16==9)&&(((a6==1)&&(a21==10))&&!(a20==1))))))||(a8==1)))&&(a2==1)))){ + if((a18==1)){ + a1 = 13; + a19 = 1; + a16 = 8; + a20 = 1; + a5 = 5; + a25 = 0; + a6 = 0; + a18 = 1; + }else{ + a3 = 0; + a6 = 0; + a1 = 13; + a14 = 1; + a9 = 7; + a16 = 10; + a21 = 11; + a19 = 3; + a5 = 4; + } + return -1; + } else if(((((!(a14==1)&&(!(a27==1)&&((a1==12)&&((a23==1)&&((a21==10)&&(((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))&&(input==1))&&(a2==1)))))))&&!(a14==1))&&(a20==1))&&((a17==2)&&(((a14==1)||((a13==1)&&(a16==11)))&&(a19==3))))){ + a16 = 7; + a19 = 1; + a5 = 4; + a11 = 1; + a0 = 0; + a9 = 7; + return -1; + } else if(((!(a12==1)&&(((!(a2==1)&&((input==6)&&(((a9==7)&&((a1==13)&&(a5==4)))||(((a9==11)&&((a5==5)&&(a1==12)))||(((a5==6)&&(a1==12))&&(a9==11))))))&&(a24==1))&&(a17==2)))&&(!(a6==1)&&(!(a3==1)&&(((((a21==11)&&((a23==1)&&(a16==7)))&&(a19==3))&&(a20==1))&&!(a12==1)))))){ + a19 = 2; + a25 = 0; + a21 = 10; + a24 = 1; + a1 = 12; + a9 = 10; + a5 = 4; + a8 = 1; + return -1; + } else if((((((a6==1)&&(((a20==1)&&((!(a26==1)&&((input==1)&&(a5==5)))&&!(a27==1)))&&!(a14==1)))&&(a9==8))&&(a16==10))&&(((!(a28==1)||((a17==2)&&(((a21==10)&&(a12==1))&&(a28==1))))&&(a19==3))&&(a1==13)))){ + a5 = 4; + a16 = 9; + a28 = 1; + a19 = 5; + a9 = 11; + a1 = 12; + a24 = 0; + a12 = 1; + a21 = 11; + return 21; + } else if(((((((a8==1)&&((((((a1==12)&&(a5==5))&&(a9==7))&&(a19==3))||(((((a5==6)&&(a1==14))&&(a9==11))&&(a19==2))||((a19==3)&&(((a5==4)&&(a1==12))&&(a9==7)))))&&(input==5)))&&!(a20==1))&&(a17==2))&&(a26==1))&&((a21==11)&&((a16==8)&&(((a0==1)&&((!(a2==1)&&(a2==1))&&(a4==1)))&&(a27==1)))))){ + a16 = 10; + a9 = 11; + a1 = 14; + a23 = 0; + a2 = 0; + a20 = 1; + a5 = 5; + a19 = 2; + a7 = 1; + return 26; + } else if((((a20==1)&&((a19==4)&&(((((((!(a0==1)&&((a3==1)&&(((input==5)&&((a5==5)||(a5==6)))&&(a16==11))))&&(a1==13))&&(a9==9))&&(a17==2))&&!(a24==1))&&!(a7==1))&&(a6==1))))&&(!(a13==1)||((a11==1)&&(a21==10))))){ + a5 = 4; + a9 = 7; + a11 = 1; + a0 = 0; + a18 = 0; + a1 = 12; + a16 = 7; + a19 = 1; + return -1; + } else if((((a21==10)&&(!(a26==1)&&((((a6==1)&&(a16==9))||(a14==1))&&!(a4==1))))&&(!(a18==1)&&((a13==1)&&((a19==3)&&(!(a20==1)&&((a13==1)&&((a17==2)&&((a1==14)&&((input==6)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))))))))))){ + a19 = 2; + a2 = 0; + a16 = 7; + a22 = 0; + a5 = 5; + a7 = 1; + a20 = 1; + a9 = 9; + a1 = 12; + return -1; + } else if((((a19==1)&&((a1==13)&&((a20==1)&&(((((a17==2)&&((a0==1)||(((a12==1)||!(a11==1))&&(a9==11))))&&(a21==10))||!(a13==1))&&!(a7==1)))))&&((!(a8==1)&&(((input==5)&&(((a5==4)||(a5==5))||(a5==6)))&&!(a4==1)))&&(a16==8)))){ + a9 = 10; + a23 = 1; + a19 = 5; + a21 = 12; + a8 = 0; + a28 = 1; + a5 = 4; + return 26; + } else if(((((a28==1)&&(!(a24==1)&&((((((a21==11)&&(input==1))&&(a19==1))&&!(a20==1))&&(a28==1))&&(a1==13))))&&(a5==4))&&((((((a9==10)&&((a17==2)&&(a28==1)))&&(a6==1))&&!(a26==1))&&(a16==8))&&(a12==1)))){ + a21 = 10; + a6 = 1; + a8 = 0; + a20 = 1; + a9 = 7; + a16 = 7; + a1 = 12; + a14 = 0; + return -1; + } else if(((((a2==1)&&((a21==12)&&((a13==1)&&((a9==11)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&(a17==2))&&(a3==1))))))&&!(a8==1))&&(!(a7==1)&&((a1==14)&&((a19==2)&&((((a12==1)&&(a16==8))&&!(a20==1))||!(a23==1))))))){ + a9 = 8; + a21 = 10; + a5 = 4; + a19 = 1; + a20 = 1; + a12 = 0; + a29 = 0; + a2 = 0; + a16 = 7; + a1 = 13; + return -1; + } else if((((a19==3)&&((((a2==1)&&(((input==4)&&(((a5==5)&&(a9==10))||(((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))))&&(a16==10)))&&!(a20==1))&&(a21==11)))&&((!(a18==1)&&((a1==14)&&(!(a6==1)||(!(a6==1)||(!(a8==1)&&(!(a12==1)||(a6==1)))))))&&(a17==2)))){ + a9 = 9; + a29 = 1; + a5 = 6; + a10 = 0; + a21 = 10; + a19 = 2; + a28 = 0; + a16 = 7; + a1 = 12; + a20 = 1; + return -1; + } else if((((a18==1)&&((!(a23==1)&&((a20==1)&&(((((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(input==4))&&(a19==3))))&&!(a12==1)))&&((((a1==12)&&(((a21==11)&&((a16==11)&&((a3==1)&&(a26==1))))&&(a17==2)))&&(a27==1))&&!(a2==1)))){ + a8 = 1; + a11 = 0; + a19 = 1; + a21 = 10; + a9 = 10; + a12 = 0; + a5 = 6; + a16 = 7; + return -1; + } else if(((((a6==1)&&(((a0==1)||((a27==1)||(a12==1)))&&(a1==14)))&&(a21==10))&&((((a9==7)&&((a19==4)&&(!(a20==1)&&((a16==7)&&((!(a24==1)&&(((a5==5)||(a5==6))&&(input==3)))&&(a23==1))))))&&(a17==2))&&!(a8==1)))){ + a20 = 1; + a1 = 12; + a5 = 4; + a24 = 0; + a13 = 1; + a8 = 0; + a19 = 1; + return -1; + } else if((((((a1==12)&&(((a19==1)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==3)))&&(a16==11)))&&!(a24==1))&&!(a18==1))&&((!(a11==1)||(((((!(a20==1)&&(a12==1))&&(a12==1))||(a18==1))&&(a6==1))&&(a17==2)))&&(a21==10)))){ + a20 = 1; + a1 = 14; + a9 = 9; + a19 = 3; + a15 = 1; + a14 = 1; + a5 = 5; + a21 = 12; + return -1; + } else if((((a1==14)&&((a21==10)&&(!(a28==1)||((((((a11==1)&&((a16==9)&&(a3==1)))&&!(a24==1))&&(a6==1))&&(a19==3))&&(a9==10)))))&&(((!(a20==1)&&(((input==3)&&(a17==2))&&!(a14==1)))&&(a23==1))&&(a5==5)))){ + a19 = 1; + a28 = 0; + a2 = 0; + a16 = 7; + a8 = 1; + a9 = 11; + a5 = 6; + a20 = 1; + return 21; + } else if(((((a16==10)&&((!(a4==1)&&((a21==10)&&((!(a4==1)&&((input==6)&&(((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))))&&(a2==1))))&&(a23==1)))&&!(a20==1))&&((a17==2)&&(((!(a23==1)||((a19==1)&&(a12==1)))||!(a13==1))&&(a1==13))))){ + a0 = 1; + a9 = 11; + a26 = 1; + a1 = 12; + a16 = 7; + a5 = 5; + a10 = 0; + a20 = 1; + return -1; + } else if((((((a26==1)&&((a18==1)&&((a17==2)&&(((a20==1)&&((a8==1)&&(((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))||((a9==9)&&(a5==5)))&&(input==1))))&&(a27==1)))))&&(a1==13))&&(a4==1))&&(((((a16==10)&&(a3==1))&&(a21==12))&&(a0==1))&&(a19==2)))){ + a12 = 0; + a8 = 1; + a5 = 6; + a19 = 1; + a21 = 10; + a29 = 0; + a9 = 11; + a16 = 7; + return -1; + } else if(((((a19==3)&&((((input==1)&&(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(a16==9))&&!(a0==1)))&&(a1==13))&&(((a12==1)&&((a17==2)&&((a21==10)&&(((!(a2==1)||((a23==1)&&(a12==1)))||(a24==1))&&!(a14==1)))))&&!(a20==1)))){ + if((a11==1)){ + a21 = 11; + a1 = 12; + a5 = 4; + a25 = 0; + a9 = 11; + a29 = 1; + a22 = 0; + a16 = 8; + a19 = 1; + }else{ + a11 = 0; + a16 = 7; + a5 = 4; + a20 = 1; + a19 = 1; + a7 = 1; + a18 = 1; + a1 = 14; + a9 = 7; + } + return -1; + } else if(((((a16==8)&&((((!(a12==1)&&((!(a3==1)&&((input==1)&&((a5==4)||(a5==5))))&&(a21==11)))&&!(a6==1))&&(a19==2))&&(a0==1)))&&(a14==1))&&((a9==8)&&((((a1==13)&&((a23==1)&&!(a20==1)))&&(a17==2))&&!(a11==1))))){ + a9 = 10; + a7 = 1; + a5 = 6; + a21 = 12; + a16 = 7; + a27 = 1; + a19 = 4; + a1 = 14; + return 23; + } else if((((a2==1)&&(((a17==2)&&((((((input==6)&&(a20==1))&&(a16==7))&&(a3==1))&&(a5==6))&&!(a8==1)))&&!(a4==1)))&&(((a1==14)&&(((a9==11)&&(((a19==5)&&(a11==1))&&(a21==10)))||!(a23==1)))||(a7==1)))){ + a21 = 12; + a18 = 0; + a9 = 8; + a1 = 12; + a14 = 0; + a4 = 0; + return 21; + } else if((((!(a13==1)||(!(a6==1)||((a16==8)&&(((a20==1)&&(a2==1))&&(a21==12)))))||!(a23==1))&&(((a13==1)&&((a12==1)&&(((a17==2)&&((a19==3)&&((a9==7)&&((input==4)&&((a5==4)||(a5==5))))))&&(a1==12))))&&!(a26==1)))){ + a18 = 0; + a19 = 1; + a4 = 0; + a12 = 1; + a21 = 10; + a5 = 4; + a16 = 7; + return -1; + } else if(((!(a14==1)&&((a1==12)&&(((!(a27==1)&&((((((a5==4)||(a5==5))||(a5==6))&&(input==6))&&(a17==2))&&!(a4==1)))&&(a16==9))&&!(a20==1))))&&((a8==1)||((a21==11)&&(((a7==1)||(((a9==10)&&(a13==1))&&(a11==1)))&&(a19==4)))))){ + a29 = 0; + a16 = 8; + a20 = 1; + a21 = 10; + a18 = 1; + a1 = 14; + a22 = 0; + a9 = 9; + a5 = 6; + return 21; + } else if((((((((a21==11)&&((((a9==7)&&((a16==9)&&(input==5)))&&(a1==13))&&(a19==2)))&&!(a8==1))&&(a20==1))&&!(a27==1))&&(a23==1))&&(!(a11==1)||((a7==1)||((((a11==1)&&(a23==1))&&(a5==4))&&(a17==2)))))){ + a6 = 1; + a12 = 1; + a21 = 10; + a1 = 12; + a19 = 1; + a3 = 1; + a16 = 7; + return -1; + } else if((((a21==12)&&((!(a8==1)&&(((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))&&(input==4))&&!(a0==1)))&&!(a4==1)))&&(((a16==10)&&((((((!(a8==1)&&(a23==1))&&(a17==2))&&(a19==3))||!(a3==1))||!(a6==1))&&(a20==1)))&&(a1==13)))){ + a9 = 7; + a5 = 4; + a19 = 1; + a11 = 1; + a26 = 0; + a8 = 0; + a16 = 7; + a21 = 10; + a1 = 12; + return -1; + } else if((((a18==1)||((a28==1)&&(((a24==1)||((((a19==3)&&(a12==1))&&(a1==13))&&(a6==1)))&&(a17==2))))&&(((a23==1)&&(((a20==1)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==3))&&(a9==8))&&(a16==8)))&&(a21==12)))&&(a28==1)))){ + a13 = 1; + a9 = 7; + a16 = 7; + a1 = 12; + a11 = 1; + a21 = 10; + a5 = 4; + a27 = 0; + a19 = 1; + return -1; + } else if(((!(a6==1)||(((a21==12)&&(((!(a7==1)&&((a9==10)&&(a11==1)))||(a8==1))&&(a20==1)))&&!(a4==1)))&&(((a19==4)&&((a17==2)&&(!(a27==1)&&((a16==11)&&(!(a27==1)&&((input==1)&&((a5==5)||(a5==6))))))))&&(a1==13)))){ + a9 = 7; + a21 = 10; + a19 = 1; + a3 = 1; + a1 = 12; + a2 = 1; + a16 = 7; + a18 = 0; + a5 = 4; + return -1; + } else if(((((((input==3)&&(((a9==8)&&(a5==4))||(((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))))&&(a19==4))&&(a17==2))&&(a12==1))&&(!(a18==1)&&((((a1==13)&&((a23==1)&&(((((a21==10)&&(a6==1))&&!(a7==1))&&(a16==8))&&(a20==1))))&&!(a27==1))||!(a6==1))))){ + a5 = 6; + a7 = 0; + a9 = 8; + a24 = 0; + a1 = 14; + a19 = 1; + a27 = 0; + a21 = 12; + return 21; + } else if((((a9==7)&&(((((!(a24==1)&&((a21==10)&&(!(a12==1)||(a12==1))))||(a0==1))&&(a17==2))&&(a1==14))&&(a19==5)))&&((a16==11)&&((a5==6)&&(((!(a0==1)&&((a20==1)&&(input==4)))&&!(a27==1))&&!(a14==1)))))){ + a27 = 0; + a23 = 1; + a7 = 0; + a19 = 1; + a16 = 7; + a1 = 12; + a5 = 4; + return -1; + } else if(((((!(a13==1)||((((a9==8)&&((((a12==1)&&(a3==1))&&(a19==2))&&(a21==11)))&&(a16==11))&&(a17==2)))&&(a28==1))&&!(a27==1))&&(!(a0==1)&&(!(a26==1)&&((a1==13)&&(((input==1)&&((a5==4)||(a5==5)))&&(a20==1))))))){ + a1 = 12; + a6 = 1; + a5 = 4; + a21 = 10; + a19 = 1; + a8 = 0; + a9 = 7; + a0 = 0; + a16 = 7; + return -1; + } else if((((((a20==1)&&((a19==3)&&((a1==12)&&((((input==5)&&(a5==6))&&(a17==2))&&(a2==1)))))&&!(a26==1))&&!(a24==1))&&(((a9==8)&&(((((a2==1)&&(a23==1))&&(a16==9))&&(a13==1))||(a4==1)))&&(a21==10)))){ + a5 = 5; + a21 = 11; + a23 = 1; + a6 = 1; + a19 = 4; + a9 = 7; + a8 = 0; + return 21; + } else if(((!(a4==1)&&(((input==3)&&(((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))))&&!(a8==1)))&&(((((a20==1)&&((((a17==2)&&(((a19==4)&&(!(a24==1)&&(a3==1)))&&(a13==1)))&&(a16==7))&&!(a0==1)))||!(a3==1))&&(a21==12))&&(a1==12)))){ + a14 = 0; + a16 = 9; + a5 = 4; + a19 = 2; + a24 = 0; + a21 = 11; + a12 = 1; + a9 = 8; + return 25; + } else if((((!(a20==1)&&((((a17==2)&&(((a19==3)&&((a1==12)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a21==11)))&&!(a7==1))&&!(a8==1)))&&(a16==7))&&((a9==7)&&((((a13==1)&&((a28==1)&&!(a14==1)))||!(a6==1))||!(a28==1))))){ + a19 = 2; + a20 = 1; + a9 = 10; + a5 = 6; + a1 = 13; + a21 = 10; + a7 = 0; + a23 = 1; + a27 = 0; + return 25; + } else if(((((a23==1)&&(((a21==10)&&(((a2==1)||(a0==1))&&(a1==14)))&&(a20==1)))&&(a17==2))&&(!(a27==1)&&((a16==11)&&(!(a0==1)&&((((a23==1)&&((a28==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==5))))&&(a9==10))&&(a19==4))))))){ + a16 = 7; + a19 = 1; + a8 = 0; + a23 = 1; + a13 = 1; + a1 = 12; + a9 = 7; + a5 = 4; + return -1; + } else if((((((a11==1)&&((a3==1)&&((!(a18==1)&&(((input==1)&&(a1==13))&&(a9==7)))&&(a21==12))))&&(a11==1))&&(a16==8))&&((((a5==6)&&((a17==2)&&((a8==1)||((a19==4)&&(a6==1)))))||(a24==1))&&(a20==1)))){ + a21 = 10; + a16 = 7; + a14 = 0; + a1 = 12; + a4 = 0; + a5 = 4; + a19 = 1; + return -1; + } else if(((((((a20==1)&&((((a6==1)&&((a19==1)&&(!(a13==1)||(a2==1))))||!(a13==1))&&(a5==4)))&&(a21==12))&&(a28==1))&&(a16==7))&&(!(a24==1)&&(((a9==9)&&(((a1==12)&&(input==6))&&(a17==2)))&&!(a26==1))))){ + a16 = 8; + a2 = 1; + a1 = 13; + a19 = 4; + a9 = 7; + a7 = 0; + a13 = 1; + return 23; + } else if(((((!(a23==1)&&(a28==1))&&!(a3==1))&&(a17==2))&&(((a16==11)&&((((a7==1)&&((!(a12==1)&&((a9==9)&&(((a20==1)&&((input==3)&&(a1==13)))&&(a27==1))))&&(a21==10)))&&(a5==6))&&(a4==1)))&&(a19==3)))){ + a9 = 10; + a19 = 1; + a1 = 12; + a22 = 1; + a23 = 0; + a16 = 7; + a15 = 0; + a5 = 4; + return -1; + } else if((((!(a3==1)&&(((a19==2)&&(a2==1))&&(a9==10)))&&(a8==1))&&((a7==1)&&((((((a1==14)&&(((a16==11)&&(((input==1)&&(a21==10))&&(a17==2)))&&(a5==5)))&&(a20==1))&&!(a28==1))&&(a14==1))&&!(a13==1))))){ + a19 = 1; + a20 = 0; + a16 = 8; + a24 = 1; + a25 = 0; + a5 = 4; + a1 = 13; + a23 = 0; + return -1; + } else if(((((!(a7==1)&&((a17==2)&&((((((a1==14)&&(a5==6))&&(a9==11))&&(a19==3))||((a19==4)&&((a9==7)&&((a1==12)&&(a5==4)))))&&(input==3))))&&!(a14==1))&&!(a24==1))&&(((a21==12)&&((a20==1)&&((a16==11)&&(((a12==1)||!(a3==1))&&(a3==1)))))&&!(a4==1)))){ + a28 = 1; + a1 = 12; + a5 = 4; + a19 = 1; + a21 = 10; + a16 = 7; + a9 = 7; + a8 = 0; + a14 = 0; + return -1; + } else if((((a6==1)&&(((a20==1)&&((!(a14==1)&&((input==3)&&(((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))))&&!(a18==1)))&&(a19==1)))&&(((a21==12)&&((((((a16==10)&&(a2==1))&&(a1==14))&&(a17==2))||!(a13==1))||(a0==1)))||(a24==1)))){ + a19 = 2; + a16 = 7; + a27 = 0; + a1 = 13; + a11 = 1; + a9 = 9; + a5 = 4; + a21 = 10; + a2 = 1; + return -1; + } else if((((!(a4==1)&&((a21==10)&&((a12==1)&&((((a9==8)&&(a12==1))&&(a17==2))&&(a20==1)))))&&!(a14==1))&&((a2==1)&&(((a3==1)&&((a5==5)&&((a19==2)&&(((a16==10)&&(input==6))&&(a1==14)))))&&(a13==1))))){ + a19 = 1; + a0 = 0; + a1 = 12; + a9 = 7; + a5 = 4; + a16 = 7; + a4 = 0; + return -1; + } else if(((((!(a20==1)&&((a9==11)&&((((a1==13)&&((a28==1)&&(a16==7)))||!(a13==1))&&(a19==5))))||!(a2==1))||!(a23==1))&&((a13==1)&&((a13==1)&&(((a21==12)&&(((input==4)&&(a5==6))&&(a17==2)))&&(a3==1)))))){ + a5 = 4; + a21 = 10; + a19 = 3; + a16 = 9; + a1 = 12; + a20 = 1; + a26 = 0; + a14 = 0; + a4 = 0; + a9 = 7; + return 25; + } else if((((a21==12)&&((((((a11==1)&&(((a1==14)&&(a13==1))||!(a6==1)))&&(a9==9))&&(a19==4))&&(a17==2))&&(a20==1)))&&(((a2==1)&&(((((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&(a11==1))&&(a12==1))&&!(a27==1)))&&(a16==11)))){ + a16 = 9; + a19 = 2; + a6 = 1; + a5 = 5; + a23 = 1; + a1 = 13; + a18 = 0; + return -1; + } else if(((!(a13==1)||(!(a7==1)&&((a1==13)&&((a17==2)&&(((!(a20==1)&&(a2==1))&&(a19==1))&&(a21==10))))))&&(!(a4==1)&&((((a16==10)&&((((input==3)&&((a5==5)||(a5==6)))&&(a9==9))&&!(a8==1)))&&(a13==1))&&(a3==1))))){ + if((a15==1)){ + a3 = 0; + a20 = 1; + a21 = 12; + a19 = 3; + a9 = 11; + a5 = 4; + a16 = 11; + a24 = 1; + a1 = 14; + a25 = 0; + }else{ + a16 = 7; + a29 = 0; + a20 = 1; + a9 = 10; + a15 = 1; + a1 = 14; + a5 = 5; + } + return -1; + } return calculate_output74(input); + } + + int calculate_output74(int input) { + if(((!(a23==1)||((!(a8==1)&&((!(a11==1)||(a23==1))&&(a17==2)))||(a18==1)))&&((a28==1)&&((a11==1)&&((((((a21==12)&&(((((a5==6)&&(a1==14))&&(a9==11))&&(a16==7))&&(a19==5)))||((a21==10)&&((((a9==7)&&((a5==4)&&(a1==12)))&&(a16==8))&&(a19==1))))||((a21==10)&&((a19==1)&&((a16==8)&&(((a1==12)&&(a5==5))&&(a9==7))))))&&(input==5))&&!(a20==1)))))){ + a19 = 1; + a5 = 6; + a2 = 1; + a1 = 14; + a27 = 0; + a13 = 1; + a9 = 8; + a21 = 10; + a16 = 8; + return 22; + } else if(((((a1==14)&&(!(a3==1)||((a16==8)&&(!(a6==1)||((a21==11)&&((a2==1)&&(a2==1)))))))&&(a17==2))&&((a9==11)&&((!(a0==1)&&(!(a7==1)&&((a2==1)&&(((input==3)&&((a5==4)||(a5==5)))&&(a19==1)))))&&(a20==1))))){ + a19 = 3; + a21 = 10; + a16 = 10; + a6 = 1; + a2 = 1; + a5 = 5; + a1 = 13; + a8 = 0; + return 22; + } else if((((a1==14)&&((a17==2)&&(((a9==7)&&(((a2==1)&&((((a19==5)&&(input==3))&&!(a20==1))&&(a12==1)))&&(a16==8)))&&!(a4==1))))&&((a6==1)&&((a5==4)&&(((a11==1)&&(!(a26==1)&&(a28==1)))&&(a21==10)))))){ + a19 = 1; + a27 = 0; + a1 = 12; + a3 = 1; + a16 = 7; + a23 = 1; + a20 = 1; + return -1; + } else if((((!(a24==1)&&((a19==3)&&((a20==1)&&(((a9==11)&&((((a5==4)||(a5==5))||(a5==6))&&(input==4)))&&(a1==14)))))&&(a23==1))&&(((((!(a28==1)||(!(a6==1)||(!(a12==1)||(a6==1))))&&(a23==1))&&(a17==2))&&(a21==10))&&(a16==7)))){ + a9 = 9; + a1 = 12; + a14 = 0; + a5 = 6; + a11 = 1; + a21 = 11; + a7 = 0; + return 25; + } else if(((((a21==10)&&((a16==9)&&((((!(a28==1)||((a23==1)&&(a3==1)))&&(a23==1))&&(a12==1))&&(a19==3))))&&(a1==12))&&(((((a17==2)&&(((input==6)&&((a5==4)||(a5==5)))&&!(a4==1)))&&(a9==11))&&!(a0==1))&&(a20==1)))){ + a8 = 0; + a16 = 8; + a21 = 11; + a14 = 0; + a2 = 1; + a5 = 5; + a19 = 4; + return -1; + } else if((((a1==12)&&(((a24==1)&&((((!(a11==1)&&((a23==1)&&!(a6==1)))&&(a9==7))&&(a27==1))&&(a20==1)))&&(a5==5)))&&((((a18==1)&&((a21==11)&&(((input==4)&&(a19==2))&&!(a23==1))))&&(a16==7))&&(a17==2)))){ + a19 = 1; + a1 = 14; + a5 = 6; + a29 = 1; + a10 = 0; + a21 = 10; + return -1; + } else if(((((a16==10)&&((a1==14)&&((a11==1)&&(a2==1))))||!(a28==1))&&(((((a9==9)&&(!(a27==1)&&((a20==1)&&((a5==5)&&((a11==1)&&(!(a8==1)&&((input==4)&&(a21==12))))))))&&!(a27==1))&&(a19==2))&&(a17==2)))){ + a9 = 7; + a27 = 0; + a8 = 0; + a16 = 7; + a5 = 4; + a1 = 12; + a21 = 10; + a6 = 1; + a19 = 1; + return -1; + } else if((((a2==1)&&((a17==2)&&((a6==1)&&((((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a9==7))&&(a20==1)))))&&(((((((a27==1)||((a19==4)&&((a6==1)&&!(a26==1))))||!(a23==1))||(a18==1))&&(a1==14))&&(a16==11))&&(a21==12)))){ + a1 = 12; + a19 = 1; + a18 = 0; + a16 = 7; + a21 = 10; + a5 = 4; + a23 = 1; + a13 = 1; + return -1; + } else if((((((((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&(a20==1))&&(a9==9))&&(a28==1))&&(a21==12))&&((a13==1)&&((a11==1)&&((a19==1)&&((a16==9)&&((((a17==2)&&(((a11==1)&&(a23==1))&&(a1==12)))&&(a3==1))||(a24==1)))))))){ + if((a1==13)){ + a20 = 0; + a21 = 11; + a16 = 8; + a26 = 0; + a19 = 4; + a9 = 8; + a18 = 0; + a0 = 0; + a5 = 5; + }else{ + a8 = 0; + a7 = 0; + a5 = 4; + a18 = 0; + a1 = 13; + a9 = 10; + a19 = 2; + a16 = 7; + a21 = 10; + } + return 21; + } else if(((((a5==6)&&(((!(a12==1)||(a6==1))&&(a16==9))&&(a17==2)))&&(a1==13))&&(((((a23==1)&&((a19==3)&&(((a21==12)&&(!(a18==1)&&((a20==1)&&(input==3))))&&(a6==1))))&&(a11==1))&&!(a14==1))&&(a9==8)))){ + a18 = 0; + a16 = 7; + a23 = 1; + a1 = 12; + a21 = 10; + a9 = 7; + a5 = 4; + a19 = 1; + return -1; + } else if((((((a17==2)&&(!(a26==1)&&((a20==1)&&((a16==7)&&(a13==1)))))&&(a19==4))&&(a3==1))&&((a21==12)&&((((a9==7)&&((a12==1)&&(((a23==1)&&((input==5)&&((a5==5)||(a5==6))))&&(a12==1))))&&(a13==1))&&(a1==13))))){ + a21 = 11; + a1 = 12; + a5 = 6; + a2 = 1; + a9 = 11; + a4 = 0; + a16 = 9; + a3 = 1; + a19 = 2; + return 21; + } else if((((((a1==13)&&(((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==4))&&!(a24==1)))&&!(a8==1))&&(a21==12))&&(((a16==9)&&(((a17==2)&&((!(a6==1)||((a8==1)||(!(a4==1)&&(a13==1))))&&(a6==1)))&&(a19==3)))&&!(a20==1)))){ + a16 = 8; + a10 = 1; + a13 = 0; + a21 = 10; + a9 = 8; + a5 = 6; + a19 = 5; + a1 = 14; + a29 = 1; + a20 = 1; + return 23; + } else if(((!(a8==1)&&(((a18==1)||(((((((a8==1)||(a6==1))&&(a16==7))&&(a21==11))||(a24==1))&&(a9==11))||(a0==1)))&&(a20==1)))&&((a28==1)&&(((a17==2)&&((a19==4)&&(((a5==5)||(a5==6))&&(input==3))))&&(a1==14))))){ + a9 = 7; + a18 = 0; + a5 = 4; + a0 = 0; + a19 = 1; + a11 = 1; + a1 = 12; + a21 = 10; + return -1; + } else if((((a20==1)&&((!(a28==1)&&((a27==1)&&((a6==1)&&!(a13==1))))&&(a17==2)))&&(((a1==13)&&((a21==10)&&(((a19==3)&&(((a7==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==4))&&!(a23==1)))&&(a9==11)))&&(a26==1))))&&(a16==8)))){ + a29 = 0; + a16 = 7; + a26 = 1; + a5 = 5; + a9 = 10; + a6 = 0; + a1 = 12; + a19 = 1; + return 25; + } else if(((((a19==2)&&((a16==9)&&((!(a24==1)&&(a23==1))||!(a12==1))))&&(a20==1))&&(((a21==12)&&(((((!(a24==1)&&(!(a7==1)&&((input==3)&&((a5==5)||(a5==6)))))&&!(a7==1))&&(a17==2))&&(a28==1))&&(a1==14)))&&(a9==8)))){ + a19 = 1; + a5 = 4; + a14 = 0; + a9 = 7; + a12 = 1; + a16 = 7; + a21 = 10; + a13 = 1; + a1 = 12; + return -1; + } else if(((((a20==1)&&((!(a27==1)&&((a2==1)&&((input==5)&&(a1==14))))&&(a9==8)))&&(a13==1))&&(((a14==1)||((a5==6)&&((a19==2)&&((a16==10)&&((a2==1)&&((a21==11)&&((a17==2)&&(a12==1))))))))&&(a23==1)))){ + a16 = 7; + a5 = 5; + a9 = 9; + a1 = 13; + a12 = 1; + a4 = 0; + a21 = 10; + a13 = 1; + return 25; + } else if((((a12==1)&&(!(a20==1)&&(!(a8==1)&&((a19==5)&&(((input==1)&&(a16==7))&&(a9==8))))))&&((((!(a18==1)&&((a5==6)&&((a8==1)||((a27==1)||((a28==1)||!(a28==1))))))&&(a17==2))&&(a21==12))&&(a1==14)))){ + a1 = 12; + a9 = 7; + a19 = 1; + a6 = 1; + a5 = 4; + a0 = 0; + a21 = 10; + a20 = 1; + a4 = 0; + return -1; + } else if((((a23==1)&&((a16==8)&&((a9==9)&&((!(a27==1)&&(((a17==2)&&((input==5)&&((a5==5)||(a5==6))))&&(a21==12)))&&(a20==1)))))&&(!(a13==1)||(((((!(a13==1)||(a13==1))&&!(a8==1))&&(a1==12))&&(a19==1))&&(a3==1))))){ + if((a23==1)){ + a5 = 4; + a6 = 1; + a21 = 11; + a1 = 13; + a24 = 0; + a20 = 0; + a0 = 0; + }else{ + a4 = 0; + a5 = 4; + a6 = 1; + a27 = 0; + a1 = 14; + a16 = 10; + a21 = 11; + a19 = 4; + a9 = 7; + } + return 22; + } else if((((((a2==1)&&(((((a9==7)&&((a6==1)||!(a11==1)))&&(a20==1))&&(a1==14))&&(a12==1)))||!(a3==1))&&(a21==10))&&(((((a19==2)&&((a5==4)&&((a17==2)&&(input==6))))&&!(a8==1))&&(a16==10))&&!(a8==1)))){ + a19 = 1; + a1 = 13; + a9 = 11; + a3 = 1; + a2 = 1; + a18 = 0; + return 21; + } else if(((!(a0==1)&&((a23==1)&&((a3==1)&&((a9==7)&&((a17==2)&&((a21==12)&&(input==4)))))))&&(((((a16==10)&&((a1==12)&&(((!(a20==1)&&(a6==1))&&(a5==4))&&(a19==4))))||(a26==1))&&!(a27==1))||(a0==1)))){ + if((a14==1)){ + a25 = 0; + a21 = 10; + a9 = 11; + a20 = 1; + a19 = 1; + a16 = 7; + a1 = 14; + a11 = 0; + a6 = 0; + a5 = 5; + }else{ + a22 = 0; + a1 = 14; + a25 = 0; + a20 = 1; + a21 = 10; + a5 = 6; + a9 = 11; + a16 = 7; + a19 = 1; + } + return -1; + } else if((((((a16==9)&&(((a9==10)&&(((a19==3)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==3)))&&(a2==1)))&&(a2==1)))&&(a17==2))&&!(a4==1))&&((((a4==1)||((!(a20==1)&&((a23==1)||(a26==1)))||(a27==1)))&&(a1==12))&&(a21==11)))){ + a20 = 1; + a26 = 1; + a19 = 4; + a1 = 13; + a9 = 8; + a5 = 4; + a21 = 12; + a16 = 8; + a13 = 0; + return -1; + } else if((((((a17==2)&&(((!(a13==1)&&(((a26==1)&&((a16==7)&&(input==5)))&&(a5==6)))&&!(a20==1))&&(a18==1)))&&(a19==2))&&(a21==12))&&((!(a12==1)&&((a0==1)&&((a1==12)&&((a12==1)&&(a24==1)))))&&(a9==7)))){ + a29 = 1; + a13 = 0; + a25 = 0; + a21 = 10; + a20 = 1; + a9 = 9; + return -1; + } else if((((a9==8)&&((!(a14==1)&&(a3==1))&&(a5==5)))&&(((a17==2)&&((a1==14)&&((a28==1)&&((a21==12)&&((a12==1)&&(!(a20==1)&&(!(a18==1)&&(!(a7==1)&&((a12==1)&&((a19==5)&&(input==3)))))))))))&&(a16==10)))){ + if((a25==1)){ + a12 = 0; + a16 = 7; + a7 = 1; + a21 = 10; + a8 = 1; + a20 = 1; + a1 = 12; + a19 = 2; + a9 = 11; + }else{ + a9 = 10; + a20 = 1; + a19 = 2; + a15 = 0; + a11 = 0; + a16 = 7; + a18 = 1; + a21 = 10; + a1 = 12; + } + return -1; + } else if((((a9==11)&&((a20==1)&&((!(a4==1)&&(((a3==1)&&(!(a4==1)&&(((a1==13)&&(input==6))&&!(a8==1))))&&!(a27==1)))&&!(a26==1))))&&((a16==7)&&((((a17==2)&&((a13==1)&&(a19==5)))&&(a21==11))&&(a5==4))))){ + a28 = 1; + a16 = 8; + a1 = 14; + a6 = 1; + a23 = 1; + a21 = 12; + a5 = 6; + a9 = 8; + a19 = 2; + return 23; + } else if((((a19==3)&&(!(a20==1)&&(!(a18==1)&&(!(a26==1)&&(((input==1)&&(((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))))&&!(a8==1))))))&&(((((a17==2)&&((a21==12)&&(((a13==1)&&(a13==1))&&!(a18==1))))&&!(a7==1))&&(a1==13))&&(a16==8)))){ + a9 = 10; + a19 = 1; + a25 = 1; + a23 = 0; + a21 = 11; + a5 = 5; + a4 = 1; + a16 = 7; + return 22; + } else if((((a17==2)&&((a21==10)&&(((a9==11)&&((!(a8==1)&&((a20==1)&&(((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&!(a8==1))))&&(a16==8)))&&(a19==5))))&&((!(a27==1)&&(((a11==1)&&((a6==1)||!(a6==1)))||(a27==1)))&&(a1==13)))){ + a19 = 1; + a16 = 7; + a13 = 1; + a5 = 4; + a9 = 7; + a7 = 0; + a1 = 12; + a6 = 1; + return -1; + } else if((((a6==1)&&((((((a13==1)&&(a12==1))&&(a21==12))&&(a1==12))&&(a16==8))&&!(a26==1)))&&(!(a18==1)&&(!(a8==1)&&(((((a19==5)&&(((((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4)))&&(input==5)))&&!(a26==1))&&(a20==1))&&(a17==2)))))){ + a1 = 14; + a11 = 1; + a9 = 10; + a6 = 1; + a13 = 1; + a19 = 4; + a16 = 10; + a5 = 4; + return 22; + } else if(((((a17==2)&&((a11==1)&&(((a3==1)&&(a16==10))&&(a1==14))))||(a8==1))&&((a3==1)&&((a28==1)&&((((a20==1)&&(((a21==11)&&((((a9==10)&&(a5==4))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9))))&&(input==1)))&&(a28==1)))&&(a19==4))&&!(a18==1)))))){ + a8 = 0; + a11 = 1; + a1 = 12; + a19 = 1; + a21 = 10; + a16 = 7; + a9 = 7; + a5 = 4; + a12 = 1; + return -1; + } else if(((((a16==10)&&((a20==1)&&((a9==7)&&(((a5==4)&&((a28==1)&&(((input==1)&&(a19==2))&&(a21==12))))&&(a13==1)))))&&!(a7==1))&&(((a1==13)&&(!(a11==1)||(!(a4==1)&&((a23==1)&&(a17==2)))))||(a18==1)))){ + a11 = 1; + a21 = 10; + a9 = 9; + a16 = 7; + a28 = 1; + a23 = 1; + return -1; + } else if(((!(a20==1)&&(((a0==1)||((a23==1)||(a4==1)))&&(a16==8)))&&((((a17==2)&&(((!(a14==1)&&(((a1==13)&&(((input==1)&&(((a5==4)||(a5==5))||(a5==6)))&&(a9==8)))&&!(a24==1)))&&(a3==1))&&(a13==1)))&&(a21==10))&&(a19==2)))){ + a13 = 1; + a14 = 0; + a5 = 4; + a20 = 1; + a19 = 5; + a16 = 10; + a21 = 11; + a4 = 0; + return 21; + } else if((((!(a7==1)&&((a16==8)&&(((a1==14)&&((a27==1)||(((a6==1)&&(a9==7))&&(a19==5))))&&(a5==5))))||!(a6==1))&&(!(a27==1)&&((a20==1)&&((a21==11)&&((((input==5)&&(a17==2))&&!(a4==1))&&!(a14==1))))))){ + a21 = 10; + a16 = 7; + a26 = 0; + a27 = 0; + a5 = 4; + a13 = 1; + a19 = 1; + a1 = 12; + return -1; + } else if((((((a20==1)&&(!(a18==1)&&((a4==1)||((a1==14)&&(!(a26==1)&&(!(a14==1)&&((a23==1)&&(a16==9))))))))||!(a23==1))&&(a19==4))&&(!(a24==1)&&(((a21==11)&&((input==5)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))))&&(a17==2))))){ + a11 = 1; + a9 = 7; + a5 = 4; + a19 = 1; + a18 = 0; + a2 = 1; + a21 = 10; + a16 = 10; + return 21; + } else if((((a17==2)&&((a1==14)&&(((!(a14==1)&&(((input==5)&&((a5==4)||(a5==5)))&&!(a4==1)))&&!(a8==1))&&!(a7==1))))&&(((((a19==4)&&((a9==11)&&((!(a12==1)||(a3==1))&&!(a4==1))))&&(a16==9))&&!(a20==1))&&(a21==12)))){ + a9 = 7; + a16 = 10; + a6 = 0; + a3 = 0; + a5 = 4; + a24 = 1; + a19 = 3; + a1 = 13; + return -1; + } else if(((((((a13==1)&&((a12==1)&&(a1==13)))&&(a16==9))&&(a28==1))&&(a11==1))&&((((a19==1)&&((a17==2)&&(!(a20==1)&&((!(a24==1)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==6)))&&!(a7==1)))))&&(a21==12))&&(a28==1)))){ + a16 = 7; + a10 = 0; + a19 = 2; + a9 = 7; + a5 = 4; + a26 = 1; + a1 = 12; + a21 = 10; + a20 = 1; + a24 = 1; + return 25; + } else if((((((a20==1)&&((a21==11)&&(((a9==8)&&(((a16==8)&&((input==3)&&((a5==5)||(a5==6))))&&!(a0==1)))&&(a6==1))))&&(a1==13))&&(a2==1))&&((a6==1)&&(((a17==2)&&((a24==1)||((a3==1)&&(a19==2))))||(a27==1))))){ + a19 = 1; + a5 = 4; + a16 = 7; + a9 = 7; + a26 = 0; + a1 = 12; + a21 = 10; + a6 = 1; + return -1; + } else if(((((a19==1)&&(((a23==1)&&((a21==11)&&((a9==9)&&((a3==1)&&((((input==3)&&(a17==2))&&(a1==13))&&(a16==10))))))&&(a20==1)))&&(a5==4))&&(((a14==1)||((!(a8==1)&&(a28==1))&&(a2==1)))||!(a6==1)))){ + a9 = 7; + a8 = 0; + a1 = 12; + a6 = 1; + a28 = 1; + a16 = 7; + a21 = 10; + return -1; + } else if((((a21==12)&&((a1==12)&&(((!(a28==1)&&(((((a5==5)||(a5==6))&&(input==3))&&(a18==1))&&(a9==9)))&&(a19==2))&&(a20==1))))&&(((a18==1)&&(((!(a28==1)&&(!(a13==1)&&(a23==1)))&&(a8==1))&&(a16==10)))&&(a17==2)))){ + a5 = 5; + a1 = 13; + a14 = 1; + a25 = 1; + a16 = 7; + a9 = 10; + a19 = 1; + a28 = 0; + return 25; + } else if((((!(a20==1)&&((a1==12)&&((a19==3)&&((!(a27==1)&&(!(a8==1)&&((a23==1)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==5)))))&&(a3==1)))))&&(a17==2))&&((((a2==1)&&((a3==1)&&(a11==1)))&&(a16==10))&&(a21==11)))){ + a19 = 1; + a11 = 0; + a16 = 7; + a5 = 5; + a23 = 0; + a9 = 7; + a20 = 1; + a21 = 10; + a1 = 13; + a15 = 1; + return 21; + } else if(((((a21==10)&&((a1==14)&&((a18==1)||(!(a4==1)&&((a3==1)||(a26==1))))))||(a8==1))&&((((a17==2)&&(!(a20==1)&&((a16==7)&&(!(a14==1)&&(!(a8==1)&&(((a5==5)||(a5==6))&&(input==5)))))))&&(a9==8))&&(a19==3)))){ + a19 = 2; + a1 = 13; + a11 = 1; + a9 = 10; + a5 = 4; + a6 = 1; + a16 = 10; + a20 = 1; + return 26; + } else if(((!(a26==1)&&(((a16==10)&&((a9==7)&&((!(a12==1)||(a3==1))||(a0==1))))||!(a2==1)))&&((a11==1)&&((a5==4)&&(((a17==2)&&(((((a19==5)&&(input==5))&&(a20==1))&&!(a7==1))&&(a1==14)))&&(a21==12)))))){ + a16 = 9; + a24 = 0; + a7 = 0; + a19 = 4; + a21 = 10; + a5 = 5; + a2 = 1; + return -1; + } else if(((((((((a2==1)||!(a12==1))&&(a21==12))&&(a9==11))&&(a5==4))&&(a1==14))&&(a19==4))&&((!(a14==1)&&(!(a14==1)&&((a23==1)&&(((!(a18==1)&&((a16==9)&&(input==1)))&&(a23==1))&&(a20==1)))))&&(a17==2)))){ + a7 = 0; + a18 = 0; + a16 = 7; + a6 = 1; + a19 = 1; + a1 = 12; + a9 = 7; + a21 = 10; + return -1; + } else if((((((a17==2)&&((a28==1)&&(((((a19==2)&&((a9==7)&&((a5==5)&&(a1==12))))||(((a19==1)&&((a9==11)&&((a1==14)&&(a5==6))))||((((a5==4)&&(a1==12))&&(a9==7))&&(a19==2))))&&(input==1))&&(a6==1))))&&(a20==1))&&!(a4==1))&&((a21==12)&&((a16==8)&&(!(a2==1)||((!(a8==1)&&(a23==1))||(a18==1))))))){ + a21 = 10; + a8 = 0; + a19 = 1; + a5 = 4; + a9 = 7; + a28 = 1; + a1 = 12; + a16 = 7; + return -1; + } else if(((!(a12==1)||(!(a14==1)&&(!(a28==1)||((a27==1)||(((a28==1)&&(a9==10))&&(a21==11))))))&&((a17==2)&&((a11==1)&&(((((((input==3)&&(a19==1))&&(a28==1))&&(a5==5))&&(a16==10))&&(a1==13))&&!(a20==1)))))){ + if((a1==14)){ + a1 = 14; + a16 = 7; + a9 = 8; + a21 = 10; + a10 = 1; + a29 = 0; + a20 = 1; + a0 = 1; + }else{ + a20 = 1; + a10 = 1; + a22 = 1; + a9 = 7; + a11 = 0; + a1 = 14; + a5 = 6; + a19 = 2; + } + return 21; + } else if((((a11==1)&&((!(a24==1)&&((a20==1)&&((!(a24==1)&&((a1==12)&&((a9==8)&&(input==3))))&&(a5==5))))&&(a16==7)))&&((!(a0==1)&&((a24==1)||(((a17==2)&&((a6==1)&&(a21==12)))||(a0==1))))&&(a19==4)))){ + a28 = 1; + a5 = 4; + a9 = 7; + a19 = 1; + a2 = 1; + a21 = 10; + a3 = 1; + return -1; + } else if((((a19==4)&&(((a20==1)&&((((a13==1)&&(((a5==5)||(a5==6))&&(input==1)))&&(a16==11))&&(a1==14)))&&(a13==1)))&&(((!(a26==1)&&((a12==1)&&((a21==11)&&(((a17==2)&&(a11==1))&&(a9==7)))))&&!(a18==1))&&(a12==1)))){ + a23 = 1; + a4 = 0; + a21 = 10; + a1 = 12; + a2 = 1; + a5 = 4; + a16 = 7; + a19 = 1; + return -1; + } else if(((((((!(a27==1)&&(!(a8==1)&&(((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a5==5)&&(a9==11)))&&(input==6))))&&(a17==2))&&(a28==1))&&(a21==10))&&(a19==1))&&((a16==9)&&((a20==1)&&(((a1==13)&&(!(a11==1)||(!(a6==1)||(a3==1))))&&(a2==1)))))){ + a9 = 8; + a3 = 1; + a6 = 1; + a1 = 14; + a16 = 8; + a5 = 5; + a8 = 0; + a19 = 5; + return 25; + } else if((((a23==1)&&(!(a24==1)&&((a17==2)&&((((a9==10)&&((a5==5)&&((a3==1)&&(((!(a20==1)&&(input==6))&&(a19==3))&&(a1==14)))))&&!(a24==1))&&(a16==9)))))&&((a21==10)&&((a14==1)||((a2==1)||!(a11==1)))))){ + a5 = 4; + a15 = 1; + a14 = 1; + a9 = 7; + a0 = 1; + return -1; + } else if(((!(a4==1)&&((a26==1)||(((((!(a7==1)&&((a5==6)&&(a3==1)))&&(a17==2))&&(a1==14))&&(a21==12))||(a18==1))))&&((((!(a7==1)&&((a9==10)&&((a16==9)&&(input==3))))&&(a20==1))&&(a19==3))&&!(a7==1)))){ + a21 = 10; + a1 = 12; + a16 = 7; + a2 = 1; + a8 = 0; + a5 = 4; + a19 = 1; + a12 = 1; + a9 = 7; + return -1; + } else if(((!(a20==1)&&(((((((a21==12)&&(((input==5)&&(a17==2))&&(a1==14)))&&!(a18==1))&&(a16==8))&&!(a24==1))&&(a28==1))&&(a5==6)))&&(((a9==7)&&(!(a24==1)&&(((a19==2)&&(a23==1))&&!(a27==1))))&&(a6==1)))){ + a6 = 0; + a15 = 0; + a19 = 3; + a26 = 1; + a9 = 9; + a5 = 4; + a16 = 10; + a21 = 10; + return -1; + } else if(((((((a12==1)&&(!(a26==1)&&((a9==10)&&((input==1)&&((a5==6)||((a5==4)||(a5==5)))))))&&!(a0==1))&&(a13==1))&&(a17==2))&&(((a21==11)&&(((a4==1)||((a1==14)&&((a3==1)&&((a23==1)&&(a19==1)))))&&(a16==7)))&&(a20==1)))){ + a5 = 6; + a19 = 2; + a3 = 1; + a2 = 1; + a21 = 10; + a9 = 7; + a28 = 1; + a1 = 12; + a16 = 8; + return 22; + } else if(((((a17==2)&&(((a13==1)&&(!(a6==1)||(a11==1)))&&(a20==1)))&&(a19==1))&&((!(a8==1)&&(((a16==7)&&(((a21==12)&&(((((a1==13)&&(a5==6))&&(a9==11))||((a9==7)&&((a1==14)&&(a5==4))))&&(input==5)))&&(a6==1)))&&!(a14==1)))&&(a2==1)))){ + a1 = 13; + a13 = 1; + a14 = 0; + a16 = 9; + a9 = 8; + a3 = 1; + a21 = 10; + a5 = 5; + return 23; + } else if(((!(a24==1)&&((!(a18==1)&&((a28==1)&&((a1==13)&&((((a21==12)&&((a17==2)&&((a16==8)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==1)))))&&!(a20==1))&&(a19==2)))))&&!(a4==1)))&&((!(a27==1)&&(a12==1))||(a7==1)))){ + a21 = 10; + a1 = 14; + a15 = 0; + a19 = 1; + a29 = 0; + a9 = 8; + a20 = 1; + a22 = 1; + a5 = 5; + a16 = 7; + return 22; + } else if(((!(a18==1)&&(((((!(a12==1)||(a12==1))||(a14==1))||!(a3==1))||!(a2==1))&&(a19==3)))&&((a16==10)&&((a21==12)&&(!(a20==1)&&((((input==1)&&(((a9==11)&&((a1==13)&&(a5==6)))||((a9==7)&&((a1==14)&&(a5==4)))))&&(a17==2))&&!(a26==1))))))){ + a0 = 1; + a5 = 4; + a14 = 1; + a9 = 9; + a16 = 7; + a19 = 1; + a20 = 1; + a1 = 12; + a21 = 10; + a12 = 0; + return 22; + } else if(((!(a4==1)&&(((((!(a20==1)&&(((((a5==4)&&(a9==8))||(((a9==7)&&(a5==5))||((a9==7)&&(a5==6))))&&(input==3))&&(a16==7)))&&!(a4==1))&&(a6==1))&&(a12==1))&&(a17==2)))&&((a21==12)&&((!(a6==1)||(((a28==1)&&(a1==14))&&!(a7==1)))&&(a19==4))))){ + a20 = 1; + a26 = 0; + a9 = 7; + a5 = 4; + a21 = 10; + a12 = 1; + a1 = 12; + a19 = 1; + return -1; + } else if((((((((a20==1)&&((input==5)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))))&&!(a14==1))&&!(a8==1))&&(a17==2))&&(a19==4))&&((a21==10)&&((a1==14)&&((a11==1)&&((a16==9)&&((((a6==1)||!(a2==1))&&(a2==1))&&(a12==1)))))))){ + a23 = 1; + a21 = 12; + a19 = 1; + a18 = 0; + a26 = 0; + a16 = 8; + a9 = 8; + a5 = 6; + return 21; + } else if((((a24==1)||(!(a24==1)&&((((a0==1)||(((a12==1)&&(a17==2))&&!(a18==1)))&&(a16==7))&&(a20==1))))&&((a13==1)&&((a2==1)&&((input==3)&&((((((a1==12)&&(a5==5))&&(a9==7))&&(a19==1))&&(a21==12))||(((((a9==11)&&((a5==6)&&(a1==14)))&&(a19==5))&&(a21==11))||(((((a1==12)&&(a5==4))&&(a9==7))&&(a19==1))&&(a21==12))))))))){ + a1 = 12; + a19 = 1; + a5 = 4; + a21 = 10; + a2 = 1; + a3 = 1; + a9 = 7; + a23 = 1; + return -1; + } else if(((!(a8==1)&&((((!(a26==1)&&(!(a0==1)&&((input==3)&&((a5==6)||((a5==4)||(a5==5))))))&&(a20==1))&&(a17==2))&&(a16==7)))&&((a0==1)||((a23==1)&&((a19==4)&&(((((a11==1)&&(a1==14))&&(a21==11))||!(a13==1))&&(a9==10))))))){ + a19 = 1; + a1 = 12; + a3 = 1; + a5 = 4; + a21 = 10; + a14 = 0; + a6 = 1; + a9 = 7; + return -1; + } else if(((!(a24==1)&&(!(a4==1)&&(((a17==2)&&(a28==1))&&(a20==1))))&&((a28==1)&&((a28==1)&&((a9==8)&&((a3==1)&&((a19==5)&&(((a21==10)&&(!(a18==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a16==8))))&&(a1==13))))))))){ + a19 = 2; + a27 = 0; + a13 = 1; + a16 = 10; + a9 = 11; + a1 = 12; + a5 = 6; + a7 = 0; + return 23; + } else if(((((a1==12)&&((a6==1)&&(((a2==1)||(a24==1))&&(a21==10))))&&!(a7==1))&&(((a28==1)&&(((a19==2)&&(((a17==2)&&((a9==8)&&((((a5==5)||(a5==6))&&(input==3))&&(a16==7))))&&!(a20==1)))&&(a6==1)))&&!(a8==1)))){ + a14 = 0; + a5 = 4; + a28 = 1; + a20 = 1; + a19 = 1; + a12 = 1; + a9 = 7; + return -1; + } else if((((a1==13)&&(((a2==1)&&((a26==1)||((a19==1)&&(!(a14==1)&&(a23==1)))))&&(a2==1)))&&((a3==1)&&(((((((input==4)&&((((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))||((a5==4)&&(a9==10))))&&(a17==2))&&(a23==1))&&!(a20==1))&&(a21==11))&&(a16==10))))){ + a27 = 1; + a20 = 1; + a5 = 4; + a1 = 14; + a21 = 10; + a3 = 0; + a9 = 8; + a16 = 7; + a26 = 1; + return -1; + } else if((((((a9==7)&&(((a1==12)&&((a17==2)&&(!(a14==1)&&((a0==1)||((a18==1)||(a11==1))))))&&(a20==1)))&&(a5==4))&&(a16==7))&&(((((a21==10)&&((a19==5)&&(input==4)))&&!(a14==1))&&!(a7==1))&&!(a4==1)))){ + if((a3==1)){ + a16 = 8; + a28 = 1; + a12 = 1; + a19 = 2; + a5 = 6; + a20 = 0; + a26 = 0; + a9 = 8; + }else{ + a0 = 0; + a18 = 0; + a5 = 6; + a16 = 8; + a23 = 1; + a19 = 3; + a20 = 0; + } + return 22; + } else if(((!(a13==1)||((((a16==8)&&(((a11==1)&&(a1==14))&&!(a20==1)))&&!(a0==1))&&(a9==7)))&&(((a13==1)&&(!(a18==1)&&((((a17==2)&&(((a5==5)&&(input==5))&&(a19==5)))&&(a21==12))&&(a2==1))))&&!(a7==1)))){ + a5 = 4; + a19 = 1; + a1 = 12; + a21 = 10; + a16 = 7; + a20 = 1; + a27 = 1; + a9 = 9; + a10 = 1; + a4 = 1; + return 22; + } else if(((((((a21==10)&&((!(a8==1)&&((a6==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==3))&&(a17==2))))&&!(a18==1)))&&!(a7==1))&&(a1==13))&&(a9==9))&&(((a19==2)&&((a20==1)&&(((a11==1)&&!(a14==1))&&!(a18==1))))&&(a16==8)))){ + a9 = 7; + a4 = 0; + a1 = 12; + a19 = 1; + a5 = 4; + a16 = 7; + a26 = 0; + a11 = 1; + return -1; + } else if((((((a19==3)&&(!(a8==1)&&((input==6)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a1==12))&&(a16==8))&&(((((((a17==2)&&(((a9==8)&&(!(a20==1)&&(a3==1)))&&(a21==11)))&&!(a24==1))&&(a6==1))||!(a12==1))&&!(a4==1))||(a14==1)))){ + a19 = 1; + a0 = 0; + a20 = 1; + a16 = 7; + a24 = 0; + a26 = 0; + a5 = 4; + a21 = 10; + a9 = 7; + return -1; + } else if((((a20==1)&&((a16==11)&&((((a19==1)&&((((input==1)&&(((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))))&&!(a26==1))&&!(a26==1)))&&!(a4==1))&&(a1==14))))&&((a17==2)&&(((!(a4==1)&&(!(a13==1)||(a23==1)))||(a18==1))&&(a21==12))))){ + a6 = 1; + a9 = 8; + a21 = 10; + a13 = 1; + a5 = 5; + a16 = 10; + a4 = 0; + a1 = 12; + return 21; + } else if(((((a6==1)&&(((a1==14)&&(((a21==12)&&((a12==1)&&(a16==9)))&&(a17==2)))&&(a9==9)))||!(a28==1))&&(((!(a8==1)&&((a19==3)&&((a20==1)&&((a2==1)&&(((a5==4)||(a5==5))&&(input==6))))))&&!(a4==1))&&!(a18==1)))){ + a16 = 7; + a21 = 10; + a24 = 0; + a1 = 12; + a9 = 7; + a3 = 1; + a5 = 4; + a19 = 1; + return -1; + } else if(((((((((a24==1)||(a11==1))||!(a11==1))&&!(a24==1))&&(a20==1))&&(a1==14))&&(a21==12))&&(((!(a0==1)&&((((a9==8)&&(((a5==4)&&(input==6))&&!(a14==1)))&&(a2==1))&&(a19==3)))&&(a17==2))&&(a16==8)))){ + a2 = 1; + a9 = 9; + a21 = 10; + a28 = 1; + a19 = 2; + a12 = 1; + a16 = 7; + a1 = 13; + return 25; + } else if(((((!(a0==1)&&(!(a14==1)&&((a21==10)&&((a16==7)&&((a19==3)&&((a3==1)&&(a17==2)))))))&&!(a20==1))&&!(a27==1))&&((((a1==13)&&(((a9==8)&&(((a5==5)||(a5==6))&&(input==5)))&&(a28==1)))&&!(a26==1))&&(a12==1)))){ + a9 = 7; + a1 = 12; + a5 = 4; + a6 = 1; + a20 = 1; + a19 = 1; + a26 = 0; + a7 = 0; + return -1; + } else if((((a1==12)&&(!(a18==1)&&((a6==1)&&(((((a5==4)||(a5==5))&&(input==3))&&!(a8==1))&&(a17==2)))))&&((a16==7)&&((!(a18==1)&&((((a19==4)&&(((a3==1)&&(a9==10))&&(a20==1)))||(a8==1))&&(a2==1)))&&(a21==12))))){ + a5 = 4; + a3 = 1; + a9 = 7; + a4 = 0; + a21 = 10; + a19 = 1; + a26 = 0; + return -1; + } else if(((((a28==1)&&((((input==6)&&(a21==10))&&(a28==1))&&(a19==4)))&&(a17==2))&&((((!(a20==1)&&(!(a27==1)&&((!(a26==1)&&((a23==1)&&((a28==1)&&(a9==8))))||!(a12==1))))&&(a5==6))&&(a1==13))&&(a16==11)))){ + a5 = 5; + a25 = 1; + a29 = 1; + a9 = 9; + a15 = 1; + a16 = 7; + a19 = 1; + a1 = 14; + a20 = 1; + return 22; + } else if(((((((a17==2)&&(((a11==1)&&(((a20==1)&&((input==6)&&(a16==7)))&&!(a27==1)))&&(a21==11)))&&(a5==6))&&(a19==2))&&(a9==8))&&((((((a27==1)||(a3==1))&&(a3==1))&&(a1==12))||!(a28==1))||!(a13==1)))){ + a21 = 10; + a19 = 4; + a1 = 14; + a14 = 0; + a24 = 0; + a9 = 11; + a20 = 0; + a16 = 8; + a5 = 5; + return 26; + } else if((((a19==2)&&(((a17==2)&&((a21==12)&&((a20==1)&&(!(a24==1)&&((((((((((a9==7)&&(a5==6))||((a5==4)&&(a9==8)))||((a9==8)&&(a5==5)))&&(input==1))&&(a16==7))&&!(a24==1))&&(a12==1))&&(a2==1))&&!(a0==1))))))&&(a23==1)))&&((a1==13)&&(a3==1)))){ + a4 = 0; + a1 = 12; + a21 = 10; + a13 = 1; + a9 = 7; + a11 = 1; + a5 = 4; + a19 = 1; + return -1; + } else if((((((a17==2)&&((((((input==6)&&(a19==4))&&(a16==9))&&!(a26==1))&&(a20==1))&&!(a7==1)))&&(a21==10))&&(a11==1))&&((a5==4)&&((a9==11)&&((a18==1)||((a26==1)||(!(a0==1)&&((a1==12)&&(a28==1))))))))){ + a16 = 10; + a23 = 1; + a9 = 7; + a5 = 5; + a13 = 1; + a19 = 1; + a26 = 0; + return 21; + } else if((((((a7==1)&&((((a26==1)&&((((a19==5)&&((a2==1)&&(a24==1)))&&!(a12==1))&&!(a20==1)))&&(a16==8))&&(a0==1)))&&!(a28==1))&&(a9==7))&&(((a1==14)&&(((a21==10)&&(input==5))&&(a5==5)))&&(a17==2)))){ + a2 = 0; + a16 = 7; + a1 = 12; + a20 = 1; + a27 = 1; + a19 = 1; + return -1; + } else if(((((a19==4)&&((((a23==1)&&((((a9==9)&&(input==4))&&(a16==11))&&(a1==14)))&&(a20==1))&&(a17==2)))&&(a23==1))&&((((a2==1)&&((a5==4)&&((a3==1)&&((a6==1)&&(a28==1)))))||(a14==1))&&(a21==10)))){ + a3 = 1; + a1 = 12; + a9 = 7; + a19 = 1; + a23 = 1; + a16 = 7; + a12 = 1; + return -1; + } else if((((a19==2)&&((a9==10)&&(((!(a0==1)&&(!(a6==1)||(a28==1)))&&(a1==14))&&(a20==1))))&&((a21==11)&&((a17==2)&&((((!(a18==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==4))&&(a16==10)))&&!(a26==1))&&!(a7==1))&&(a12==1)))))){ + a21 = 10; + a19 = 1; + a5 = 4; + a1 = 12; + a9 = 7; + a6 = 1; + a16 = 7; + a7 = 0; + return -1; + } else if(((((((a17==2)&&((a9==11)&&(((((input==1)&&!(a20==1))&&(a6==1))&&(a11==1))&&(a12==1))))&&(a16==9))&&(a19==4))&&(a13==1))&&((((a1==13)&&(!(a4==1)&&((a13==1)&&(a5==6))))&&(a21==11))&&!(a27==1)))){ + a22 = 1; + a15 = 1; + a16 = 7; + a19 = 1; + a1 = 14; + a21 = 10; + a20 = 1; + a0 = 1; + return 21; + } else if(((((!(a23==1)||((a17==2)&&(!(a8==1)&&(((a2==1)&&(a1==12))&&(a21==12)))))&&(a19==1))&&(a16==8))&&((a9==11)&&(!(a8==1)&&(!(a24==1)&&(!(a18==1)&&((!(a20==1)&&(((a5==4)||(a5==5))&&(input==4)))&&!(a0==1)))))))){ + a14 = 1; + a21 = 10; + a9 = 9; + a1 = 13; + a16 = 7; + a5 = 6; + a20 = 1; + a25 = 1; + a8 = 1; + return 25; + } else if(((((((a2==1)&&((a16==8)&&((a1==12)&&((!(a20==1)&&(input==4))&&(a5==4)))))&&(a21==10))&&(a19==2))&&(a23==1))&&((a17==2)&&((a26==1)||((a3==1)&&((!(a24==1)&&((a11==1)&&(a23==1)))&&(a9==8))))))){ + a26 = 0; + a16 = 7; + a9 = 7; + a19 = 1; + a20 = 1; + a23 = 1; + a4 = 0; + return -1; + } else if(((((a17==2)&&((!(a3==1)&&((!(a13==1)&&((a13==1)&&(a0==1)))&&(a16==8)))&&(a26==1)))&&(a20==1))&&(((a19==1)&&((!(a11==1)&&(((((a1==13)&&(a5==5))&&(a9==7))||(((a9==11)&&((a1==12)&&(a5==6)))||(((a1==13)&&(a5==4))&&(a9==7))))&&(input==4)))&&(a8==1)))&&(a21==10)))){ + a9 = 7; + a19 = 3; + a16 = 9; + a5 = 5; + a2 = 0; + a1 = 13; + a21 = 11; + a22 = 1; + a25 = 0; + return -1; + } else if((((a9==10)&&((a16==10)&&((((a12==1)&&!(a0==1))&&(a5==5))||(a7==1))))&&((a1==12)&&(((((((((input==1)&&(a21==10))&&(a17==2))&&!(a20==1))&&!(a14==1))&&!(a27==1))&&(a19==2))&&!(a8==1))&&!(a7==1))))){ + a6 = 0; + a3 = 0; + a9 = 9; + a19 = 1; + a20 = 1; + a16 = 7; + a1 = 14; + a5 = 6; + return 21; + } else if(((!(a24==1)&&((((a1==12)&&((a4==1)||((a23==1)&&((a19==5)&&(a13==1)))))&&(a16==8))&&!(a7==1)))&&((a20==1)&&((!(a14==1)&&(((((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))&&(input==4))&&(a23==1))&&(a21==11)))&&(a17==2))))){ + a5 = 4; + a26 = 0; + a13 = 1; + a21 = 10; + a19 = 1; + a16 = 7; + a12 = 1; + a9 = 7; + return -1; + } else if((((a6==1)&&((((((((a9==11)&&((a1==13)&&(a5==6)))||((a9==7)&&((a5==4)&&(a1==14))))&&(input==4))&&!(a18==1))&&(a3==1))&&(a19==4))&&(a13==1)))&&(!(a20==1)&&((a21==12)&&((((a11==1)&&((a12==1)||(a18==1)))&&(a16==7))&&(a17==2)))))){ + a28 = 1; + a18 = 0; + a20 = 1; + a5 = 4; + a19 = 1; + a1 = 12; + a23 = 1; + a21 = 10; + a9 = 7; + return -1; + } else if(((!(a13==1)||((!(a13==1)||((a18==1)||(((a1==13)&&(!(a12==1)||((!(a4==1)&&(a13==1))&&(a16==10))))||!(a23==1))))&&(a17==2)))&&(((a21==11)&&(((input==4)&&((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10))))&&(a19==5)))&&(a20==1)))){ + a1 = 12; + a12 = 1; + a7 = 0; + a23 = 1; + a16 = 7; + a19 = 1; + a9 = 7; + a5 = 4; + a21 = 10; + return -1; + } else if((((a24==1)||(((((a1==14)&&((a19==5)&&((a14==1)||(!(a3==1)||((a17==2)&&(a2==1))))))&&(a12==1))&&(a16==10))||!(a13==1)))&&(!(a8==1)&&(((a20==1)&&((((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8))))&&(input==1)))&&(a21==11))))){ + a28 = 1; + a5 = 5; + a21 = 10; + a16 = 7; + a19 = 2; + a26 = 0; + a9 = 9; + a12 = 1; + a1 = 13; + return 25; + } else if(((((a16==11)&&((((((a5==4)||(a5==5))&&(input==5))&&(a2==1))&&(a2==1))&&(a3==1)))&&(a21==10))&&((a17==2)&&((a20==1)&&((a1==14)&&((((!(a28==1)||((a2==1)&&!(a18==1)))&&(a19==5))||(a24==1))&&(a9==9))))))){ + a9 = 7; + a5 = 4; + a26 = 0; + a19 = 1; + a1 = 12; + a16 = 7; + a14 = 0; + return -1; + } else if((((((a17==2)&&(((((!(a18==1)&&((((a7==1)||(a12==1))||!(a11==1))&&(a21==11)))||(a8==1))&&(a11==1))&&!(a14==1))&&(a1==13)))&&(a19==3))&&(a20==1))&&((((input==6)&&((a5==6)||((a5==4)||(a5==5))))&&(a16==10))&&(a9==11)))){ + a12 = 1; + a21 = 10; + a6 = 1; + a9 = 9; + a2 = 1; + a16 = 7; + a19 = 2; + a5 = 5; + return 25; + } else if((((a24==1)&&((a19==4)&&(((a21==12)&&(((a27==1)&&(a13==1))&&(a1==13)))&&(a16==7))))&&(!(a20==1)&&(((a17==2)&&(!(a6==1)&&((((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==5))&&!(a23==1))&&(a4==1))))&&(a7==1))))){ + a14 = 1; + a20 = 1; + a8 = 1; + a5 = 5; + a9 = 9; + a21 = 10; + a6 = 0; + a19 = 1; + return -1; + } else if((((a16==10)&&(((a27==1)||(a23==1))&&!(a7==1)))&&((a3==1)&&((a19==3)&&(((((a21==10)&&(!(a7==1)&&((a11==1)&&(!(a18==1)&&((((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))&&(input==6))))))&&(a17==2))&&!(a20==1))&&(a1==13)))))){ + a6 = 0; + a22 = 0; + a12 = 0; + a5 = 6; + a19 = 5; + a9 = 10; + return 22; + } else if((((!(a27==1)&&((a6==1)&&((a21==10)&&((a9==7)&&((a16==9)&&(((a28==1)&&((a19==2)&&(input==5)))&&!(a20==1)))))))&&(a5==6))&&((a28==1)&&(((a17==2)&&(!(a27==1)&&(!(a28==1)||(a23==1))))&&(a1==14))))){ + if((a24==1)){ + a5 = 5; + a20 = 1; + a0 = 1; + a16 = 7; + a25 = 0; + a19 = 1; + a22 = 1; + }else{ + a19 = 3; + a10 = 1; + a21 = 11; + a28 = 0; + a16 = 10; + a1 = 13; + a0 = 1; + a9 = 8; + } + return -1; + } else if(((((((a5==6)&&((a2==1)&&((a1==14)&&((a19==1)&&(a28==1)))))||!(a12==1))||(a18==1))||(a4==1))&&((((a9==11)&&((a16==10)&&((a17==2)&&((a21==11)&&(!(a20==1)&&(input==4))))))&&(a6==1))&&(a11==1)))){ + a23 = 0; + a21 = 12; + a28 = 0; + a20 = 1; + a1 = 12; + a25 = 1; + a9 = 7; + return 21; + } else if((((a19==1)&&((((a20==1)&&(((a28==1)&&(((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==5))&&!(a8==1)))&&(a28==1)))&&(a16==9))&&(a21==11)))&&((a4==1)||(((a1==14)&&(((a6==1)&&!(a24==1))||!(a11==1)))&&(a17==2))))){ + a13 = 1; + a16 = 7; + a23 = 1; + a27 = 0; + a21 = 10; + a5 = 4; + a9 = 7; + a19 = 5; + return 25; + } else if((((a16==9)&&((a17==2)&&((a28==1)&&((((a5==4)||(a5==5))&&(input==3))&&(a21==11)))))&&(((a13==1)&&((a6==1)&&(!(a7==1)&&((a19==1)&&((a1==13)&&((a20==1)&&(!(a2==1)||(!(a18==1)&&(a13==1)))))))))&&(a9==9)))){ + a14 = 0; + a19 = 5; + a1 = 14; + a5 = 4; + a9 = 11; + a11 = 1; + return 21; + } else if(((((((a28==1)&&((a20==1)&&(((input==3)&&((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a5==4)&&(a9==10))))&&(a17==2))))&&!(a24==1))&&(a1==14))&&(a19==1))&&(!(a14==1)&&((((a16==11)&&(!(a24==1)&&((a11==1)&&!(a4==1))))&&(a21==11))&&(a23==1))))){ + a19 = 4; + a6 = 1; + a16 = 9; + a5 = 4; + a28 = 1; + a9 = 10; + a11 = 1; + return 21; + } else if(((((((a20==1)&&((a11==1)&&((((a5==4)||(a5==5))||(a5==6))&&(input==1))))&&(a2==1))&&(a21==10))&&!(a14==1))&&(((a19==3)&&((a1==12)&&((a14==1)||((a17==2)&&((a9==11)&&(((a16==7)&&(a13==1))&&!(a24==1)))))))||!(a3==1)))){ + a1 = 14; + a13 = 1; + a3 = 1; + a19 = 5; + a18 = 0; + a5 = 5; + a9 = 10; + return 23; + } else if((((a21==12)&&(!(a26==1)&&((!(a20==1)&&((!(a14==1)&&((input==1)&&(((a5==4)&&(a9==11))||(((a5==5)&&(a9==10))||((a5==6)&&(a9==10))))))&&(a12==1)))&&(a1==14))))&&((((a17==2)&&((!(a27==1)&&((a11==1)||(a26==1)))&&(a13==1)))&&(a19==1))&&(a16==10)))){ + if((a26==1)){ + a1 = 12; + a21 = 10; + a16 = 7; + a20 = 1; + a28 = 0; + a19 = 5; + a9 = 11; + a25 = 1; + a5 = 5; + }else{ + a22 = 1; + a3 = 0; + a16 = 7; + a1 = 12; + a20 = 1; + a26 = 1; + a9 = 8; + a19 = 5; + a5 = 6; + } + return -1; + } else if((((a21==10)&&(((((a5==5)||(a5==6))&&(input==5))&&(a19==2))&&(a23==1)))&&(((((a9==10)&&((((a16==10)&&((((a1==13)&&(a3==1))&&!(a8==1))||(a26==1)))&&!(a18==1))||(a27==1)))&&!(a18==1))&&!(a20==1))&&(a17==2)))){ + a16 = 7; + a19 = 1; + a20 = 1; + a3 = 0; + a1 = 14; + a5 = 5; + a29 = 0; + a23 = 0; + return 21; + } else if((((a21==10)&&(!(a24==1)&&(((a13==1)&&((a9==9)&&(!(a20==1)&&(((input==5)&&(a19==2))&&(a5==6)))))&&(a1==12))))&&((a16==8)&&(!(a24==1)&&((a6==1)&&((((a3==1)&&(a17==2))&&!(a27==1))&&(a12==1))))))){ + a16 = 7; + a11 = 1; + a19 = 1; + a13 = 1; + a9 = 7; + a5 = 4; + a7 = 0; + a20 = 1; + return -1; + } else if((((((a17==2)&&((a21==11)&&(((((((a5==4)||(a5==5))||(a5==6))&&(input==5))&&!(a23==1))&&(a4==1))&&(a9==11))))&&(a18==1))&&!(a13==1))&&(((((a16==7)&&((!(a20==1)&&(a12==1))&&(a24==1)))&&(a1==13))&&(a19==3))&&!(a3==1)))){ + a8 = 1; + a20 = 1; + a21 = 10; + a0 = 1; + a5 = 5; + a19 = 1; + return -1; + } else if(((((a21==10)&&(((!(a14==1)&&(!(a27==1)&&(((a3==1)&&(a17==2))&&!(a24==1))))&&(a19==3))&&(a11==1)))||(a7==1))&&((a16==11)&&((a12==1)&&(((input==4)&&(((((a5==5)&&(a1==13))&&(a9==11))||((a9==11)&&((a1==13)&&(a5==6))))||((a9==7)&&((a1==14)&&(a5==4)))))&&(a20==1)))))){ + a9 = 9; + a4 = 0; + a1 = 13; + a21 = 11; + a7 = 0; + a5 = 4; + a26 = 0; + return 25; + } else if(((!(a20==1)&&(!(a4==1)&&((a28==1)&&((((input==1)&&(((a19==3)&&(((a5==4)&&(a1==12))&&(a9==7)))||(((a19==2)&&((a9==11)&&((a5==5)&&(a1==14))))||((a19==2)&&((a9==11)&&((a5==6)&&(a1==14)))))))&&!(a24==1))&&!(a26==1)))))&&((((a3==1)&&((a21==12)&&((a0==1)||(a6==1))))&&(a17==2))&&(a16==10)))){ + a5 = 4; + a16 = 7; + a9 = 8; + a20 = 1; + a1 = 12; + a19 = 2; + a4 = 1; + a26 = 1; + a21 = 10; + a14 = 1; + return -1; + } else if((((a19==4)&&((a21==10)&&(((!(a6==1)||(a6==1))&&(a17==2))&&(a1==13))))&&((((((a3==1)&&((a16==7)&&(!(a14==1)&&(((a5==6)&&(input==1))&&(a9==7)))))&&(a20==1))&&(a2==1))&&!(a24==1))&&!(a7==1)))){ + a5 = 5; + a2 = 1; + a21 = 11; + a1 = 14; + a27 = 0; + a28 = 1; + a9 = 9; + return 26; + } else if((((a1==12)&&(((((a17==2)&&(!(a3==1)||((a12==1)&&(a21==11))))&&(a19==3))||(a8==1))&&(a5==5)))&&(!(a18==1)&&((a16==7)&&(!(a24==1)&&((a11==1)&&(!(a7==1)&&(((a20==1)&&(input==4))&&(a9==7))))))))){ + a24 = 0; + a19 = 1; + a14 = 0; + a21 = 10; + a12 = 1; + a5 = 4; + return -1; + } else if(((((a21==11)&&(((a3==1)&&((!(a27==1)&&(a3==1))&&(a12==1)))&&(a17==2)))&&(a11==1))&&((((a1==14)&&((a19==2)&&(((a9==7)&&(((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&!(a8==1)))&&(a20==1))))&&(a16==9))&&(a23==1)))){ + a2 = 1; + a1 = 12; + a19 = 1; + a16 = 10; + a27 = 0; + a5 = 5; + a3 = 1; + a21 = 10; + return 21; + } else if(((((a16==10)&&(((a19==3)&&((a18==1)||(!(a26==1)&&((a9==8)&&(a3==1)))))&&(a1==13)))||(a24==1))&&((a11==1)&&((a11==1)&&((a12==1)&&((a5==5)&&((a20==1)&&(((input==1)&&(a21==12))&&(a17==2))))))))){ + if((a2==1)){ + a20 = 0; + a1 = 12; + a9 = 10; + a12 = 1; + a16 = 8; + a5 = 6; + a19 = 5; + a26 = 0; + a18 = 0; + a21 = 10; + }else{ + a19 = 2; + a9 = 10; + a3 = 1; + a16 = 7; + a5 = 4; + a1 = 14; + a21 = 10; + a12 = 1; + a6 = 1; + } + return 21; + } else if((((!(a24==1)&&((a20==1)&&((a9==11)&&((a21==10)&&(a13==1)))))&&!(a24==1))&&((((a28==1)&&(((((a28==1)&&((a19==2)&&((a16==11)&&(input==6))))&&(a17==2))&&!(a7==1))&&!(a14==1)))&&(a5==6))&&(a1==13)))){ + a6 = 1; + a9 = 7; + a1 = 12; + a7 = 0; + a16 = 7; + a0 = 0; + a5 = 4; + a19 = 1; + return -1; + } else if((((((!(a14==1)&&((((((a1==13)&&((((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))&&(input==5)))&&(a17==2))&&(a28==1))&&(a21==12))&&(a20==1)))&&(a16==10))&&(a12==1))&&!(a4==1))&&(!(a3==1)||(!(a4==1)&&((a3==1)&&(a19==2)))))){ + a5 = 4; + a0 = 0; + a1 = 12; + a19 = 5; + a12 = 1; + a20 = 0; + a9 = 11; + a21 = 10; + a6 = 1; + a16 = 8; + return 21; + } else if((((a14==1)||((a26==1)||(((a17==2)&&(!(a28==1)||((((a6==1)&&(a16==10))&&!(a20==1))&&(a5==4))))&&(a9==9))))&&(!(a24==1)&&(!(a7==1)&&((a19==2)&&(((a21==10)&&((input==4)&&(a1==13)))&&(a28==1))))))){ + a20 = 1; + a22 = 0; + a15 = 1; + a25 = 0; + a9 = 7; + a16 = 7; + return 25; + } else if(((((a1==14)&&(!(a14==1)&&(((((input==5)&&(((a9==10)&&(a5==5))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10)))))&&(a19==1))&&(a17==2))&&(a2==1))))&&(a28==1))&&(((!(a26==1)&&((((a23==1)&&!(a14==1))&&(a16==10))&&(a21==10)))&&(a20==1))&&(a2==1)))){ + a16 = 11; + a5 = 6; + a0 = 0; + a9 = 11; + a18 = 0; + a12 = 1; + a19 = 5; + a1 = 12; + return 23; + } else if((((a19==1)&&((!(a18==1)&&((a28==1)&&(a9==10)))||(a26==1)))&&((a17==2)&&(((((((a1==14)&&((((input==6)&&(a20==1))&&!(a0==1))&&(a21==11)))&&(a28==1))&&(a5==4))&&(a11==1))&&(a16==9))&&(a2==1))))){ + a21 = 10; + a11 = 1; + a23 = 1; + a19 = 5; + a9 = 11; + a16 = 7; + a5 = 5; + a1 = 13; + return 25; + } else if(((((((a9==11)&&((((!(a20==1)&&((input==4)&&(a19==1)))&&(a17==2))&&(a1==14))&&(a3==1)))&&(a12==1))&&(a21==11))&&(a16==8))&&((a26==1)||((a28==1)&&(((a5==6)&&((a6==1)||!(a6==1)))||!(a12==1)))))){ + a8 = 0; + a3 = 1; + a20 = 1; + a9 = 7; + a16 = 7; + a5 = 4; + a1 = 12; + a21 = 10; + a26 = 0; + return -1; + } else if((((a16==9)&&((!(a14==1)&&(((!(a7==1)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==6)))&&(a12==1))&&!(a18==1)))&&(a19==3)))&&((a21==11)&&((a23==1)&&((a1==14)&&((a17==2)&&(((a12==1)||!(a23==1))&&!(a20==1)))))))){ + a22 = 1; + a9 = 10; + a19 = 1; + a3 = 0; + a20 = 1; + a5 = 5; + a16 = 7; + a2 = 0; + a21 = 10; + return 21; + } else if(((((a1==14)&&(((a28==1)&&((a16==11)&&((a11==1)&&!(a26==1))))&&(a19==2)))&&!(a27==1))&&((a17==2)&&(((((!(a7==1)&&(((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11)))&&(input==6)))&&!(a7==1))&&(a21==10))&&!(a14==1))&&(a20==1))))){ + a5 = 4; + a9 = 10; + a6 = 1; + a16 = 7; + a19 = 4; + a24 = 0; + a26 = 0; + a21 = 11; + a1 = 12; + a20 = 0; + return 25; + } else if((((a3==1)&&((a19==3)&&((a12==1)&&(((a20==1)&&((input==4)&&((a5==4)||(a5==5))))&&(a9==10)))))&&(!(a13==1)||((a0==1)||((a0==1)||(!(a0==1)&&(((a16==7)&&(((a1==14)&&(a6==1))&&(a21==10)))&&(a17==2)))))))){ + a19 = 1; + a3 = 1; + a1 = 12; + a14 = 0; + a9 = 7; + a5 = 4; + a2 = 1; + return -1; + } else if((((a5==4)&&(((a9==7)&&(!(a20==1)&&(!(a6==1)||((a13==1)&&(a12==1)))))&&(a16==8)))&&(((a1==14)&&(((((!(a26==1)&&((a21==12)&&(input==6)))&&(a3==1))&&(a6==1))&&(a23==1))&&(a19==1)))&&(a17==2)))){ + if((a21==12)){ + a9 = 8; + a16 = 7; + a25 = 1; + a21 = 10; + a18 = 1; + a1 = 13; + a10 = 1; + a20 = 1; + }else{ + a0 = 1; + a21 = 10; + a11 = 0; + a20 = 1; + a16 = 7; + a1 = 12; + a5 = 6; + a2 = 0; + } + return 25; + } else if(((((((a19==5)&&((input==3)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))))&&(a16==10))&&(a20==1))&&(a17==2))&&((!(a11==1)||((!(a7==1)&&(((a0==1)||(((a1==12)&&(a13==1))||(a27==1)))&&(a21==12)))&&(a11==1)))||!(a6==1)))){ + a3 = 1; + a19 = 1; + a21 = 10; + a5 = 4; + a9 = 7; + a16 = 7; + a24 = 0; + return -1; + } else if((((a1==14)&&((a16==11)&&((a13==1)&&(!(a7==1)&&(!(a27==1)&&((((input==1)&&(a20==1))&&!(a27==1))&&(a3==1)))))))&&(((a17==2)&&((((!(a7==1)&&(a3==1))&&(a5==5))&&(a9==10))&&(a21==11)))&&(a19==2)))){ + a20 = 0; + a27 = 0; + a19 = 1; + a4 = 0; + a5 = 6; + a1 = 13; + a23 = 1; + a9 = 9; + a16 = 7; + return 25; + } else if((((((a16==7)&&((((!(a24==1)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==5)))&&(a3==1))&&(a19==4))&&!(a24==1)))&&(a21==10))&&!(a24==1))&&((((!(a20==1)&&((a6==1)||(a0==1)))&&(a28==1))&&(a1==12))&&(a17==2)))){ + a5 = 4; + a9 = 9; + a19 = 5; + a27 = 0; + a0 = 0; + a18 = 0; + a16 = 8; + a20 = 1; + return 25; + } else if(((((a3==1)&&((a2==1)&&((((!(a4==1)&&(((a21==10)&&((input==1)&&((a5==4)||(a5==5))))&&!(a20==1)))&&(a6==1))&&(a16==7))&&(a9==7))))&&!(a26==1))&&((a6==1)&&(((a17==2)&&((a1==13)&&(a2==1)))&&(a19==4))))){ + a4 = 0; + a1 = 14; + a27 = 0; + a13 = 1; + a5 = 4; + return 21; + } else if((((!(a18==1)&&((a13==1)&&((((a5==5)||(a5==6))&&(input==5))&&(a2==1))))&&(a9==10))&&(((a21==10)&&((((a3==1)&&(((a16==11)&&((!(a2==1)||(a6==1))&&(a17==2)))&&(a20==1)))&&(a19==5))&&(a1==13)))&&!(a18==1)))){ + a11 = 1; + a1 = 12; + a26 = 0; + a9 = 7; + a5 = 6; + a2 = 1; + a21 = 11; + return 25; + } else if((((!(a20==1)&&((a16==9)&&((!(a27==1)&&((((((a9==11)&&((a1==13)&&(a5==6)))||(((a5==4)&&(a1==14))&&(a9==7)))&&(input==3))&&(a17==2))&&(a21==11)))&&(a28==1))))&&(a19==2))&&(((a3==1)&&(((a13==1)&&(a13==1))||!(a3==1)))||(a8==1)))){ + if((a26==1)){ + a21 = 10; + a20 = 1; + a19 = 1; + a29 = 1; + a25 = 1; + a5 = 6; + a16 = 10; + a1 = 12; + a9 = 8; + a18 = 1; + }else{ + a20 = 1; + a9 = 10; + a5 = 5; + a13 = 0; + a4 = 1; + a19 = 1; + a0 = 1; + a21 = 10; + a16 = 7; + a1 = 14; + } + return 21; + } else if((((((((a13==1)&&(a20==1))||(a18==1))&&(a17==2))||(a18==1))&&(a21==12))&&(((a19==3)&&(((a3==1)&&((a1==12)&&(!(a4==1)&&(!(a8==1)&&(((input==5)&&(a9==11))&&(a16==9))))))&&(a5==6)))&&(a11==1)))){ + a26 = 0; + a16 = 7; + a9 = 7; + a19 = 1; + a21 = 10; + a23 = 1; + a5 = 4; + a0 = 0; + return -1; + } else if(((((((!(a14==1)&&(a11==1))&&(a16==11))&&(a1==12))&&!(a0==1))&&(a17==2))&&((a21==10)&&(!(a20==1)&&((!(a14==1)&&((a11==1)&&((a12==1)&&((((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&!(a27==1))&&(a9==10)))))&&(a19==3)))))){ + if((a28==1)){ + a5 = 6; + a12 = 0; + a6 = 0; + a20 = 1; + a19 = 2; + a9 = 11; + a16 = 7; + a28 = 0; + }else{ + a20 = 1; + a16 = 7; + a9 = 9; + a0 = 1; + a19 = 1; + a5 = 4; + a25 = 0; + a7 = 1; + } + return 26; + } else if((((a1==12)&&((a16==7)&&((((a5==6)&&((input==1)&&(a20==1)))&&(a3==1))&&(a19==2))))&&((!(a6==1)||((a21==11)&&((a26==1)||((((a17==2)&&(!(a13==1)||(a6==1)))&&!(a24==1))||!(a23==1)))))&&(a9==8)))){ + a11 = 1; + a27 = 0; + a9 = 7; + a21 = 10; + a5 = 4; + a19 = 1; + a7 = 0; + return -1; + } else if((((a21==12)&&(((a1==13)&&(((((a2==1)||!(a13==1))&&(a20==1))&&!(a7==1))&&(a3==1)))||(a26==1)))&&((a19==4)&&(((a28==1)&&((((a5==4)&&((input==4)&&(a17==2)))&&(a28==1))&&(a16==8)))&&(a9==7))))){ + a16 = 7; + a23 = 1; + a19 = 1; + a21 = 10; + a1 = 12; + a6 = 1; + a24 = 0; + return -1; + } else if((((a16==8)&&((a17==2)&&((a19==4)&&((!(a8==1)&&(!(a8==1)&&((a21==12)&&((((a9==8)&&(a5==5))||(((a9==7)&&(a5==6))||((a9==8)&&(a5==4))))&&(input==4)))))&&(a12==1)))))&&((a20==1)&&(((((a23==1)&&!(a26==1))||!(a13==1))&&(a11==1))&&(a1==12))))){ + a16 = 7; + a5 = 4; + a28 = 1; + a19 = 1; + a9 = 7; + a21 = 10; + a18 = 0; + return -1; + } else if((((a11==1)&&((!(a18==1)&&((a2==1)&&(((a21==10)&&((a19==1)&&((input==5)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))))&&(a16==11))))&&(a28==1)))&&(!(a14==1)&&((((a1==12)&&((a17==2)&&(a3==1)))&&!(a20==1))||(a27==1))))){ + a27 = 1; + a20 = 1; + a1 = 13; + a11 = 0; + a16 = 7; + a6 = 0; + a21 = 11; + a5 = 6; + a19 = 3; + a9 = 11; + return -1; + } else if((((a20==1)&&(((a21==11)&&((a17==2)&&((a1==12)&&(((a28==1)||!(a13==1))&&!(a4==1)))))&&(a12==1)))&&(((a6==1)&&(((a9==10)&&((a13==1)&&(!(a4==1)&&(((a5==5)||(a5==6))&&(input==3)))))&&(a19==3)))&&(a16==7)))){ + a9 = 7; + a28 = 1; + a19 = 1; + a14 = 0; + a5 = 4; + a7 = 0; + a21 = 10; + return -1; + } else if(((((!(a8==1)&&((a1==13)&&((a9==7)&&((input==1)&&(a21==12)))))&&(a16==10))&&(a20==1))&&((a19==2)&&((((a14==1)||((((a2==1)&&((a6==1)||!(a12==1)))||(a18==1))&&(a17==2)))||!(a13==1))&&(a5==6))))){ + a9 = 10; + a5 = 5; + a11 = 1; + a16 = 7; + a21 = 10; + a12 = 1; + a28 = 1; + a1 = 14; + return 21; + } else if(((((a20==1)&&(((a23==1)&&((((!(a13==1)||(a2==1))&&(a21==10))&&(a9==9))&&(a19==2)))&&(a17==2)))&&(a16==8))&&((((a11==1)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a1==13))&&(a3==1)))&&!(a18==1))&&!(a24==1)))){ + a5 = 4; + a19 = 3; + a1 = 14; + a21 = 12; + a9 = 8; + a14 = 0; + a28 = 1; + a16 = 9; + a23 = 1; + return 21; + } else if((((!(a3==1)||((!(a12==1)||(!(a20==1)&&((a21==11)&&(!(a12==1)||(((a11==1)&&(a19==3))&&(a16==9))))))&&(a6==1)))||!(a2==1))&&((((a17==2)&&(((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4)))&&(input==5)))&&(a6==1))&&(a1==14)))){ + a4 = 1; + a19 = 1; + a5 = 6; + a23 = 0; + a9 = 9; + a1 = 13; + a21 = 10; + a16 = 7; + a25 = 0; + a20 = 1; + return -1; + } else if(((((!(a26==1)&&((!(a26==1)&&(((a23==1)&&(a2==1))&&(a16==8)))&&!(a20==1)))||(a0==1))||(a8==1))&&((((((a17==2)&&((a21==12)&&(((a5==5)||(a5==6))&&(input==1))))&&(a9==10))&&(a1==13))&&(a19==1))&&(a6==1)))){ + if((a8==1)){ + a16 = 7; + a5 = 5; + a21 = 10; + a20 = 1; + a1 = 14; + a22 = 1; + a8 = 1; + a7 = 1; + }else{ + a13 = 0; + a19 = 3; + a6 = 0; + a5 = 6; + a18 = 1; + a9 = 8; + a16 = 7; + } + return 26; + } else if((((a20==1)&&((a19==2)&&((a18==1)||((a12==1)&&(a3==1)))))&&(((((((((((input==3)&&((a5==5)||(a5==6)))&&!(a14==1))&&(a9==11))&&(a16==10))&&!(a8==1))&&(a1==14))&&!(a0==1))&&(a11==1))&&(a17==2))&&(a21==10)))){ + a19 = 1; + a1 = 12; + a9 = 7; + a13 = 1; + a27 = 0; + a5 = 4; + a18 = 0; + return 21; + } else if(((!(a8==1)&&(((a16==7)&&((a1==12)&&(((((input==6)&&(((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))))&&(a17==2))&&(a19==5))&&(a13==1))))&&(a21==10)))&&((!(a8==1)&&((a7==1)||(((a20==1)&&(a13==1))||(a24==1))))&&!(a14==1)))){ + a0 = 0; + a20 = 0; + a16 = 8; + a19 = 1; + a5 = 5; + a9 = 9; + a3 = 1; + a14 = 0; + return 22; + } else if((((a4==1)||(!(a0==1)&&((((!(a20==1)&&((((a21==10)&&(a11==1))&&(a16==9))&&(a1==13)))&&!(a18==1))&&!(a27==1))||(a8==1))))&&((a17==2)&&((((((a9==8)&&(a5==6))||((a9==9)&&(a5==4)))&&(input==3))&&(a2==1))&&(a19==5))))){ + a5 = 6; + a0 = 1; + a20 = 1; + a1 = 12; + a9 = 8; + a13 = 0; + a19 = 1; + a10 = 1; + a16 = 7; + return 21; + } else if(((((a13==1)&&((a19==1)&&((!(a26==1)&&((a12==1)&&(((a13==1)&&(((a5==4)||(a5==5))&&(input==5)))&&(a9==11))))&&(a16==8))))&&(a21==12))&&((a17==2)&&((((a12==1)&&((a6==1)||!(a28==1)))&&(a1==14))&&!(a20==1))))){ + a9 = 8; + a1 = 12; + a20 = 1; + a16 = 9; + a5 = 6; + a19 = 4; + a6 = 0; + a3 = 0; + a11 = 0; + return -1; + } else if((((a16==10)&&((a20==1)&&((a9==11)&&(((((((!(a24==1)&&((input==1)&&(a5==4)))&&(a1==14))&&!(a7==1))&&(a17==2))&&(a28==1))&&(a3==1))&&(a21==12)))))&&(((!(a11==1)||(a11==1))||(a14==1))&&(a19==2)))){ + a26 = 0; + a21 = 10; + a3 = 1; + a1 = 13; + a5 = 5; + a9 = 9; + a16 = 7; + a2 = 1; + return 25; + } else if((((a5==5)&&(((a9==9)&&((a11==1)&&((((a11==1)&&(a23==1))&&(a20==1))&&(a17==2))))&&(a1==13)))&&((a12==1)&&((a16==9)&&(((((a28==1)&&((a19==3)&&(input==3)))&&!(a14==1))&&!(a18==1))&&(a21==12)))))){ + a0 = 0; + a1 = 12; + a19 = 1; + a5 = 4; + a16 = 7; + a9 = 7; + a21 = 10; + a13 = 1; + return -1; + } else if((((a11==1)&&(((a19==3)&&((a1==14)&&((!(a18==1)&&(((input==1)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&!(a24==1)))&&!(a7==1))))&&(a17==2)))&&((((((a23==1)&&(a21==11))||(a0==1))||(a26==1))&&(a20==1))&&(a16==11)))){ + a9 = 7; + a18 = 0; + a5 = 4; + a16 = 7; + a8 = 0; + a26 = 0; + a19 = 1; + a21 = 10; + a1 = 12; + return -1; + } else if((((a21==11)&&((!(a13==1)||(((a9==10)&&((a20==1)&&((a24==1)||(!(a18==1)&&(a2==1)))))&&(a19==2)))&&(a16==8)))&&((((a11==1)&&((((input==5)&&(a17==2))&&(a23==1))&&!(a7==1)))&&(a1==14))&&(a5==5)))){ + a4 = 0; + a1 = 12; + a24 = 0; + a9 = 8; + a13 = 1; + a21 = 10; + a19 = 5; + return 25; + } else if((((((a28==1)&&((input==4)&&(a16==9)))&&!(a14==1))&&(a20==1))&&((((a5==4)&&(!(a7==1)&&(((a19==2)&&((!(a23==1)||(!(a13==1)||((a12==1)&&(a11==1))))&&(a21==10)))&&(a1==12))))&&(a17==2))&&(a9==8)))){ + a19 = 1; + a2 = 1; + a9 = 7; + a23 = 1; + a16 = 7; + a8 = 0; + return -1; + } else if((((a1==13)&&((a9==11)&&((!(a20==1)&&(a2==1))&&!(a12==1))))&&((a16==7)&&((((((a19==1)&&(((a21==11)&&((a14==1)&&((input==3)&&(a17==2))))&&(a24==1)))&&(a5==4))&&(a18==1))&&(a27==1))&&!(a3==1))))){ + a20 = 1; + a1 = 14; + a2 = 0; + a21 = 10; + a5 = 5; + a7 = 1; + a9 = 8; + a23 = 0; + return 23; + } else if((((a3==1)&&(((!(a0==1)&&((((a9==11)&&(a2==1))&&(a17==2))||(a4==1)))&&(a21==10))&&(a2==1)))&&((a1==12)&&((a19==1)&&(!(a20==1)&&((((a16==8)&&((input==1)&&((a5==5)||(a5==6))))&&(a28==1))&&(a12==1))))))){ + a16 = 7; + a0 = 0; + a27 = 0; + a11 = 1; + a9 = 7; + a20 = 1; + a5 = 4; + return -1; + } else if((((a9==9)&&((a1==13)&&((a4==1)&&(((a5==6)&&((a12==1)&&!(a6==1)))&&!(a28==1)))))&&(((!(a6==1)&&(((a24==1)&&((a16==11)&&(((a19==3)&&(input==6))&&(a17==2))))&&(a24==1)))&&(a20==1))&&(a21==10)))){ + a10 = 0; + a19 = 1; + a1 = 14; + a5 = 4; + a11 = 0; + a9 = 10; + a16 = 7; + a26 = 1; + return -1; + } else if(((((a19==2)&&((((a9==7)&&(!(a7==1)&&(((a5==4)||(a5==5))&&(input==4))))&&!(a26==1))&&(a28==1)))&&(a1==14))&&(!(a20==1)&&((((a18==1)||((((a17==2)&&(a3==1))||!(a11==1))&&!(a8==1)))&&(a21==11))&&(a16==7))))){ + a5 = 4; + a13 = 1; + a1 = 12; + a20 = 1; + a11 = 1; + a21 = 10; + a23 = 1; + a19 = 1; + return -1; + } else if(((((!(a6==1)||((a1==14)&&((a19==2)&&((!(a7==1)&&((a21==12)&&(a3==1)))||(a24==1)))))&&(a16==9))||(a4==1))&&(!(a27==1)&&(!(a20==1)&&((((input==1)&&(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(a17==2))&&(a23==1)))))){ + a21 = 10; + a16 = 10; + a0 = 1; + a9 = 10; + a7 = 1; + a24 = 1; + a5 = 6; + return -1; + } else if((((a7==1)||((a16==10)&&((a3==1)&&((((a9==8)&&(a12==1))&&(a20==1))&&(a3==1)))))&&(!(a27==1)&&(((!(a26==1)&&((a17==2)&&((a1==13)&&((a19==5)&&((input==3)&&(a21==12))))))&&(a5==6))&&!(a4==1))))){ + a21 = 10; + a9 = 7; + a16 = 7; + a5 = 4; + a23 = 1; + a13 = 1; + a19 = 1; + a8 = 0; + a1 = 12; + return -1; + } else if((((a17==2)&&((a9==9)&&(((!(a6==1)||(a2==1))||!(a28==1))&&!(a20==1))))&&((a28==1)&&((!(a14==1)&&((a21==11)&&(((!(a18==1)&&(((input==3)&&(a19==2))&&(a1==12)))&&(a5==5))&&(a16==8))))&&!(a27==1))))){ + a5 = 4; + a19 = 1; + a16 = 7; + a9 = 7; + a11 = 1; + a2 = 1; + a21 = 10; + a20 = 1; + a14 = 0; + return -1; + } else if((((!(a27==1)&&((a21==12)&&(((!(a4==1)&&((input==1)&&((a5==5)||(a5==6))))&&(a9==7))&&(a2==1))))&&(a16==7))&&(!(a12==1)||((a1==13)&&(!(a20==1)&&((a19==3)&&(((a27==1)||(!(a28==1)||(a13==1)))&&(a17==2)))))))){ + a5 = 4; + a0 = 0; + a1 = 14; + a3 = 1; + a16 = 8; + a21 = 10; + a27 = 0; + return 25; + } else if((((a21==11)&&((a20==1)&&(!(a13==1)&&(((((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a5==6)&&(a9==9))))&&(input==4))&&(a17==2)))))&&((((!(a3==1)&&(!(a6==1)&&((a16==10)&&(((a2==1)&&(a19==4))&&(a1==14)))))&&(a8==1))&&(a4==1))&&(a14==1)))){ + a16 = 7; + a10 = 0; + a27 = 1; + a9 = 7; + a19 = 1; + a23 = 0; + a5 = 6; + return -1; + } else if((((a9==9)&&((a19==1)&&(!(a2==1)&&(((a24==1)&&(((a5==4)&&((a4==1)&&((a18==1)&&((a16==7)&&(input==4)))))&&(a20==1)))&&!(a2==1)))))&&((a21==12)&&((a1==12)&&((a17==2)&&((a0==1)&&(a11==1))))))){ + a24 = 1; + a21 = 10; + a22 = 1; + a14 = 1; + a1 = 13; + a9 = 11; + a5 = 5; + return 25; + } else if(((!(a2==1)||((((a9==8)&&((a16==7)&&((a6==1)&&(a17==2))))&&(a19==5))&&(a1==13)))&&((((!(a27==1)&&(((((input==1)&&(a21==12))&&(a23==1))&&(a5==4))&&!(a7==1)))&&!(a4==1))&&(a20==1))&&(a28==1)))){ + a7 = 0; + a19 = 1; + a26 = 0; + a4 = 0; + a16 = 8; + a1 = 14; + a5 = 6; + return 21; + } else if((((a12==1)&&((a16==9)&&(!(a26==1)&&(!(a26==1)&&((a17==2)&&(((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==4))&&(a3==1)))))))&&((a1==14)&&((a23==1)&&(!(a28==1)||((a20==1)&&((a19==4)&&((a12==1)&&(a21==11))))))))){ + a1 = 12; + a21 = 10; + a16 = 7; + a4 = 0; + a9 = 7; + a5 = 4; + a0 = 0; + a19 = 1; + a14 = 0; + return -1; + } else if((((a21==12)&&(((a28==1)&&(a12==1))&&(a1==13)))&&((!(a4==1)&&((!(a7==1)&&((a20==1)&&((!(a4==1)&&((a19==3)&&((a17==2)&&((((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(input==4)))))&&(a16==10))))&&!(a24==1)))&&!(a7==1)))){ + a27 = 0; + a1 = 12; + a9 = 7; + a21 = 10; + a13 = 1; + a16 = 7; + a4 = 0; + a5 = 4; + a19 = 1; + return -1; + } else if((((a7==1)||(((((a5==5)&&(a6==1))&&(a23==1))&&(a17==2))||(a18==1)))&&((((a21==10)&&((((((!(a20==1)&&(input==5))&&(a19==1))&&!(a14==1))&&(a9==10))&&(a1==12))&&!(a0==1)))&&(a13==1))&&(a16==11)))){ + if((a4==1)){ + a29 = 0; + a9 = 8; + a12 = 0; + a1 = 14; + a16 = 7; + a20 = 1; + a5 = 6; + a22 = 1; + }else{ + a9 = 9; + a19 = 5; + a15 = 0; + a21 = 11; + a7 = 1; + a3 = 0; + a1 = 14; + a16 = 9; + } + return 21; + } else if((((a19==3)&&((((a21==11)&&(((a16==9)&&(((a7==1)&&((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))&&(input==6)))&&!(a28==1)))&&(a7==1)))&&(a20==1))&&(a17==2)))&&((a1==12)&&((a24==1)&&(((a26==1)&&(a13==1))&&!(a13==1)))))){ + a19 = 1; + a6 = 0; + a5 = 5; + a9 = 10; + a7 = 1; + a16 = 7; + a11 = 0; + a21 = 10; + return -1; + } else if(((!(a23==1)||(!(a14==1)&&((((a3==1)&&(a19==1))&&(a21==10))&&(a9==11))))&&((a20==1)&&((a16==9)&&(!(a8==1)&&(!(a14==1)&&((a11==1)&&((a17==2)&&(((((a5==4)||(a5==5))&&(input==4))&&!(a14==1))&&(a1==14)))))))))){ + a11 = 1; + a14 = 0; + a5 = 4; + a9 = 7; + a3 = 1; + a16 = 7; + a1 = 12; + return -1; + } else if((((((a23==1)&&(!(a24==1)&&((a17==2)&&((input==1)&&(((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))))))&&(a23==1))&&(a16==9))&&(((a1==12)&&(((!(a24==1)&&(!(a13==1)||((a12==1)&&(a19==5))))&&(a28==1))&&!(a20==1)))&&(a21==12)))){ + a22 = 0; + a19 = 2; + a5 = 5; + a20 = 1; + a11 = 0; + a21 = 11; + a16 = 8; + a24 = 1; + a9 = 7; + return -1; + } else if((((!(a14==1)&&((a16==9)&&((a9==9)&&((a1==14)&&((a17==2)&&((a20==1)&&(input==1)))))))&&(a2==1))&&((a19==5)&&(!(a23==1)||((a24==1)||((a14==1)||(!(a28==1)||(((a5==5)&&(a12==1))&&(a21==12))))))))){ + a5 = 4; + a13 = 1; + a21 = 10; + a0 = 0; + a9 = 7; + a1 = 12; + a14 = 0; + a19 = 1; + a16 = 7; + return -1; + } else if((((((((a17==2)&&(a13==1))&&(a9==10))&&(a18==1))&&!(a12==1))&&!(a12==1))&&(!(a20==1)&&(((((a5==4)&&((a18==1)&&((a19==2)&&(((input==6)&&(a1==14))&&!(a12==1)))))&&(a21==12))&&!(a6==1))&&(a16==7))))){ + a4 = 1; + a10 = 0; + a1 = 13; + a19 = 1; + a25 = 0; + a5 = 5; + a9 = 9; + a21 = 10; + a20 = 1; + return -1; + } else if(((((a27==1)&&((a1==14)&&((!(a3==1)&&((a16==9)&&((input==6)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8))))))&&(a21==10))))&&(a24==1))&&((((a8==1)&&(((a7==1)&&((a28==1)&&(a27==1)))&&(a17==2)))&&(a20==1))&&(a19==5)))){ + a9 = 11; + a21 = 11; + a5 = 6; + a1 = 12; + a26 = 1; + a8 = 1; + return 21; + } else if(((((a17==2)&&((((!(a26==1)&&((a11==1)&&(a28==1)))&&(a19==5))&&(a3==1))&&!(a20==1)))||!(a11==1))&&((a1==12)&&(((a11==1)&&((!(a26==1)&&((input==4)&&(((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))))&&(a16==9)))&&(a21==12))))){ + a4 = 1; + a19 = 3; + a16 = 7; + a14 = 1; + a21 = 11; + a5 = 4; + a9 = 10; + a23 = 0; + return -1; + } else if(((((a20==1)&&((a17==2)&&((a19==4)&&(((a5==6)&&((((input==5)&&(a1==14))&&!(a24==1))&&(a9==8)))&&(a21==10)))))&&!(a24==1))&&((!(a12==1)||(((!(a7==1)&&(a3==1))&&(a16==11))&&(a3==1)))||!(a12==1)))){ + a6 = 1; + a1 = 12; + a7 = 0; + a16 = 7; + a9 = 7; + a5 = 4; + a11 = 1; + a19 = 1; + return -1; + } else if((((((((a20==1)&&(input==4))&&(a11==1))&&(a9==10))&&(a5==4))&&(a19==5))&&((((a21==12)&&(((a6==1)&&((a26==1)||((a27==1)||((a16==11)&&((a17==2)&&(a11==1))))))||(a18==1)))||!(a13==1))&&(a1==13)))){ + a9 = 7; + a21 = 10; + a1 = 12; + a0 = 0; + a18 = 0; + a16 = 7; + a19 = 1; + a13 = 1; + return -1; + } else if((((((a14==1)||((!(a28==1)||((a17==2)&&((a4==1)||(a6==1))))&&!(a20==1)))&&(a16==8))&&(a1==12))&&(((a21==10)&&((a23==1)&&(!(a7==1)&&((a2==1)&&(((((a5==6)&&(a9==10))||((a9==11)&&(a5==4)))||((a9==11)&&(a5==5)))&&(input==4))))))&&(a19==5)))){ + a20 = 1; + a5 = 5; + a13 = 1; + a19 = 4; + a14 = 0; + a27 = 0; + a9 = 7; + a16 = 7; + a1 = 14; + return 25; + } else if(((!(a13==1)||((a3==1)&&((((a13==1)&&(((a2==1)&&(a16==10))&&(a19==3)))&&(a1==13))&&(a11==1))))&&((a23==1)&&(((((a21==10)&&((a17==2)&&(((a5==5)||(a5==6))&&(input==3))))&&(a9==8))&&!(a20==1))&&!(a0==1))))){ + if((a29==1)){ + a28 = 0; + a5 = 6; + a29 = 1; + a10 = 1; + a19 = 4; + a9 = 10; + a21 = 11; + a20 = 1; + a1 = 12; + }else{ + a21 = 11; + a1 = 12; + a5 = 5; + a8 = 1; + a16 = 9; + a19 = 1; + a15 = 1; + } + return -1; + } else if((((a1==12)&&(((a16==7)&&((!(a12==1)||((a6==1)&&(a5==5)))&&(a19==2)))||!(a12==1)))&&((a9==11)&&((a21==11)&&(((((((a20==1)&&(input==6))&&!(a14==1))&&!(a4==1))&&(a23==1))&&(a11==1))&&(a17==2)))))){ + a0 = 0; + a11 = 1; + a21 = 10; + a9 = 7; + a19 = 1; + a14 = 0; + a5 = 4; + return -1; + } else if(((((a20==1)&&((((a19==1)&&((a1==13)&&((a17==2)&&((a16==7)&&(((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10)))&&(input==3))))))&&!(a24==1))&&!(a8==1)))&&(a28==1))&&((a28==1)&&((((a11==1)&&(a12==1))||(a0==1))&&(a21==12))))){ + a1 = 12; + a11 = 1; + a21 = 10; + a2 = 1; + a9 = 7; + a5 = 4; + a23 = 1; + return -1; + } else if(((!(a12==1)||(((a19==4)&&(!(a13==1)||((a21==12)&&(!(a24==1)&&((a17==2)&&((a20==1)&&(a3==1)))))))&&(a16==8)))&&(((a1==13)&&((a11==1)&&(((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))&&(input==3))&&!(a8==1))))&&(a2==1)))){ + a5 = 4; + a21 = 10; + a16 = 7; + a8 = 0; + a19 = 1; + a6 = 1; + a9 = 7; + a7 = 0; + a1 = 12; + return -1; + } else if((((a21==11)&&((a19==1)&&((!(a0==1)&&((a16==10)&&(!(a26==1)&&(a6==1))))&&(a6==1))))&&((a17==2)&&(!(a20==1)&&((!(a0==1)&&((a9==8)&&(!(a18==1)&&((a23==1)&&(((a5==4)||(a5==5))&&(input==1))))))&&(a1==12)))))){ + if((a6==1)){ + a5 = 5; + a21 = 10; + a3 = 0; + a0 = 1; + a25 = 0; + a9 = 10; + a20 = 1; + a16 = 7; + a19 = 2; + }else{ + a5 = 4; + a15 = 1; + a19 = 3; + a1 = 13; + a9 = 7; + a20 = 1; + a13 = 0; + a21 = 12; + } + return 21; + } else if((((!(a8==1)&&((a0==1)||(((a1==12)&&((a6==1)&&(a16==8)))&&(a9==7))))||!(a12==1))&&((a19==1)&&(((a6==1)&&(!(a20==1)&&((a23==1)&&((a6==1)&&(((input==3)&&((a5==5)||(a5==6)))&&(a17==2))))))&&(a21==12))))){ + a20 = 1; + a18 = 1; + a5 = 5; + a9 = 8; + a3 = 0; + a16 = 7; + a21 = 10; + a19 = 2; + a22 = 1; + return 25; + } else if(((((a6==1)&&((a21==11)&&((a16==11)&&((a20==1)&&((((a9==9)&&(a5==4))||(((a5==5)&&(a9==8))||((a9==8)&&(a5==6))))&&(input==1))))))&&(a17==2))&&((a4==1)||((a19==1)&&((a3==1)&&(((((a23==1)&&!(a24==1))||(a27==1))||(a18==1))&&(a1==12))))))){ + a13 = 1; + a19 = 5; + a9 = 7; + a11 = 1; + a5 = 5; + a1 = 13; + a12 = 1; + return 21; + } else if((((a23==1)&&((((a19==3)&&((a20==1)&&((a17==2)&&((a9==7)&&(((input==6)&&((a5==5)||(a5==6)))&&(a1==13))))))&&(a16==10))&&(a23==1)))&&((a28==1)&&((!(a23==1)||(((a13==1)&&(a2==1))||!(a3==1)))&&(a21==11))))){ + a16 = 7; + a21 = 10; + a8 = 0; + a19 = 1; + a1 = 12; + a23 = 1; + a0 = 0; + a5 = 4; + return -1; + } else if((((a28==1)&&(!(a0==1)&&((a16==11)&&(((a17==2)&&(((a21==12)&&(((a12==1)&&((a9==11)&&(((a5==4)||(a5==5))&&(input==4))))&&(a1==12)))&&(a19==3)))&&(a23==1)))))&&(!(a28==1)||(((a12==1)&&(a11==1))&&(a20==1))))){ + a28 = 1; + a21 = 10; + a19 = 1; + a16 = 7; + a5 = 4; + a9 = 7; + a2 = 1; + a13 = 1; + return -1; + } else if((((((a1==14)&&(!(a24==1)&&((!(a18==1)&&((input==1)&&((a5==4)||(a5==5))))&&!(a7==1))))&&(a16==8))&&(a19==1))&&((a9==11)&&((a21==12)&&(((((a17==2)&&((a27==1)||(a23==1)))||(a26==1))||!(a13==1))&&!(a20==1)))))){ + if((a19==3)){ + a19 = 3; + a5 = 6; + a1 = 12; + a16 = 9; + a20 = 1; + a10 = 0; + a9 = 8; + a22 = 1; + }else{ + a1 = 12; + a20 = 1; + a15 = 1; + a21 = 10; + a9 = 8; + a6 = 0; + a13 = 0; + a5 = 4; + a16 = 7; + } + return 22; + } else if(((((((a12==1)&&(a12==1))&&(a9==10))||!(a2==1))&&(a3==1))&&((!(a26==1)&&((a1==12)&&(((!(a20==1)&&((a5==4)&&((((input==1)&&(a16==9))&&(a21==10))&&(a19==5))))&&(a12==1))&&(a17==2))))&&(a3==1)))){ + a20 = 1; + a22 = 1; + a16 = 7; + a19 = 1; + a1 = 13; + a29 = 0; + a9 = 8; + a12 = 0; + return -1; + } else if((((a17==2)&&(!(a3==1)||(((((a2==1)||!(a6==1))&&(a20==1))&&(a28==1))&&!(a18==1))))&&((a21==11)&&((a16==11)&&((!(a24==1)&&((input==3)&&(((((a1==12)&&(a5==4))&&(a9==7))&&(a19==4))||(((((a5==5)&&(a1==14))&&(a9==11))&&(a19==3))||((a19==3)&&((a9==11)&&((a5==6)&&(a1==14))))))))&&!(a8==1)))))){ + a16 = 9; + a1 = 14; + a21 = 12; + a27 = 0; + a5 = 5; + a11 = 1; + a9 = 11; + a19 = 2; + a23 = 1; + return 21; + } else if((((!(a14==1)&&((a2==1)&&((!(a18==1)&&((a19==1)&&((((a9==11)&&((a1==12)&&(a5==6)))||((a9==7)&&((a5==4)&&(a1==13))))&&(input==4))))&&(a17==2))))&&(a21==11))&&((!(a12==1)||(!(a20==1)&&(((a0==1)||(a12==1))&&!(a8==1))))&&(a16==7)))){ + a1 = 12; + a24 = 0; + a21 = 10; + a9 = 7; + a20 = 1; + a0 = 0; + a13 = 1; + a5 = 4; + return -1; + } else if(((((input==4)&&((a5==4)||(a5==5)))&&!(a8==1))&&((a0==1)||((((a21==12)&&((a2==1)&&((((a9==9)&&(((a6==1)&&(((a20==1)&&(a23==1))&&(a2==1)))&&(a1==14)))&&(a16==10))&&(a17==2))))&&(a19==4))&&!(a18==1))))){ + a16 = 7; + a7 = 0; + a9 = 7; + a1 = 12; + a0 = 0; + a19 = 1; + a21 = 10; + a23 = 1; + a5 = 4; + return -1; + } else if((((a21==12)&&((a5==4)&&((a16==7)&&(((a28==1)&&((a17==2)&&(input==6)))&&(a1==12)))))&&((((a19==5)&&((a4==1)||(!(a11==1)||(((a11==1)&&(!(a28==1)||(a12==1)))||!(a6==1)))))&&(a9==9))&&(a20==1)))){ + a23 = 1; + a1 = 14; + a19 = 3; + a18 = 0; + a16 = 9; + a6 = 1; + a9 = 11; + a21 = 11; + return 26; + } else if(((((a20==1)&&((a23==1)&&(!(a7==1)&&((a16==11)&&(a6==1)))))&&(a19==2))&&((a21==11)&&((a17==2)&&((((!(a14==1)&&((((a9==11)&&((a1==12)&&(a5==6)))||(((a1==13)&&(a5==4))&&(a9==7)))&&(input==1)))&&!(a18==1))&&(a3==1))&&!(a24==1)))))){ + a5 = 6; + a28 = 1; + a21 = 12; + a0 = 0; + a7 = 0; + a19 = 1; + a9 = 9; + a1 = 12; + return 22; + } else if((((a16==11)&&(((a21==10)&&((((!(a20==1)&&(a3==1))||(a8==1))&&(a17==2))&&!(a18==1)))&&(a5==5)))&&((a2==1)&&(((((a9==10)&&(!(a4==1)&&((a1==12)&&(input==6))))&&!(a0==1))&&(a13==1))&&(a19==1))))){ + a25 = 1; + a0 = 1; + a20 = 1; + a16 = 7; + a9 = 7; + a1 = 14; + a7 = 1; + return 25; + } else if(((!(a20==1)&&((((a13==1)&&(!(a8==1)&&((a13==1)&&(((a5==4)||(a5==5))&&(input==5)))))&&(a6==1))&&(a21==10)))&&((a16==8)&&((a1==12)&&(((a17==2)&&(((a0==1)||(!(a8==1)&&(a13==1)))&&(a9==9)))&&(a19==2)))))){ + a7 = 0; + a8 = 0; + a19 = 1; + a11 = 1; + a5 = 4; + a16 = 7; + a9 = 7; + a20 = 1; + return -1; + } else if(((!(a3==1)||(!(a20==1)&&((a17==2)&&(!(a28==1)||(a11==1)))))&&((a6==1)&&((((a21==10)&&((a11==1)&&((a23==1)&&((input==1)&&(((((a1==12)&&(a5==4))&&(a9==7))&&(a19==3))||(((a19==2)&&(((a5==5)&&(a1==14))&&(a9==11)))||((((a1==14)&&(a5==6))&&(a9==11))&&(a19==2))))))))&&(a16==7))&&(a12==1))))){ + a20 = 1; + a0 = 0; + a3 = 1; + a14 = 0; + a5 = 4; + a9 = 7; + a19 = 1; + a1 = 12; + return -1; + } else if(((((a5==6)&&((((a4==1)&&((a14==1)&&(!(a3==1)&&((input==5)&&(a9==11)))))&&!(a13==1))&&(a20==1)))&&(a19==5))&&((a16==7)&&((((((a13==1)&&(a21==10))&&(a1==14))&&(a18==1))&&(a17==2))&&!(a2==1))))){ + a1 = 12; + a15 = 0; + a29 = 1; + a27 = 1; + a9 = 9; + a16 = 10; + a19 = 2; + return 21; + } else if(((((a19==4)&&((a5==5)&&((a17==2)&&(((a8==1)||(((a2==1)&&(a28==1))||(a27==1)))&&!(a7==1)))))&&(a21==12))&&(((a20==1)&&((((a1==12)&&((input==6)&&(a16==9)))&&!(a4==1))&&!(a27==1)))&&(a9==11)))){ + a11 = 1; + a1 = 13; + a2 = 1; + a16 = 7; + a19 = 2; + a9 = 8; + a21 = 10; + a27 = 0; + return 25; + } else if((((((a2==1)&&((a20==1)&&((!(a8==1)&&((a12==1)&&(a19==2)))&&(a17==2))))||(a4==1))&&(a1==12))&&(((a2==1)&&((a9==8)&&((a12==1)&&(((a21==10)&&((input==1)&&((a5==5)||(a5==6))))&&(a12==1)))))&&(a16==10)))){ + a12 = 1; + a9 = 10; + a2 = 1; + a16 = 8; + a19 = 4; + a21 = 11; + a5 = 6; + a0 = 0; + return 26; + } else if((((a11==1)&&(a21==11))&&(((a16==8)&&((a11==1)&&((a13==1)&&(((a3==1)&&((a19==2)&&(((a17==2)&&(!(a18==1)&&(((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a1==12))&&!(a0==1))))&&(a9==11))))&&!(a20==1)))))&&(a3==1)))){ + a5 = 4; + a20 = 1; + a9 = 7; + a21 = 10; + a16 = 7; + a13 = 1; + a23 = 1; + a19 = 1; + a8 = 0; + return -1; + } else if(((!(a20==1)&&(((a19==4)&&((((a16==10)&&((!(a26==1)&&((a1==13)&&((input==4)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))))&&!(a24==1)))&&!(a14==1))&&!(a27==1)))&&(a21==11)))&&((a27==1)||(((a13==1)&&!(a14==1))&&(a17==2))))){ + a1 = 12; + a9 = 11; + a28 = 0; + a11 = 0; + a19 = 5; + a5 = 4; + a16 = 7; + a24 = 1; + a20 = 1; + return -1; + } else if(((((a21==12)&&((a16==11)&&((((((input==4)&&(((a9==9)&&(a5==6))||((a9==10)&&(a5==4))))&&!(a0==1))&&!(a14==1))&&(a1==13))&&(a20==1))))&&!(a18==1))&&((a12==1)&&(((!(a2==1)||((a23==1)&&(a17==2)))&&(a6==1))&&(a19==4))))){ + a16 = 7; + a13 = 1; + a5 = 4; + a1 = 12; + a19 = 1; + a21 = 10; + a0 = 0; + a12 = 1; + a9 = 7; + return -1; + } else if((((a27==1)||(((((a12==1)&&(a21==10))||(a27==1))&&(a16==11))||(a4==1)))&&((a19==4)&&(((((((a1==13)&&(((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4)))&&(input==6)))&&!(a8==1))&&(a6==1))&&(a17==2))&&(a20==1))&&(a3==1))))){ + a28 = 1; + a13 = 1; + a1 = 12; + a9 = 8; + a21 = 11; + a5 = 5; + a24 = 0; + return 26; + } else if(((!(a14==1)&&((a23==1)&&(!(a20==1)&&((a16==7)&&(((((a19==1)&&((a9==7)&&((a1==12)&&(a5==4))))&&(a21==12))||(((a21==11)&&(((a9==11)&&((a1==14)&&(a5==5)))&&(a19==5)))||(((a19==5)&&(((a5==6)&&(a1==14))&&(a9==11)))&&(a21==11))))&&(input==3))))))&&(!(a18==1)&&(((((a2==1)||(a26==1))&&(a17==2))&&(a12==1))&&(a3==1))))){ + a1 = 12; + a9 = 7; + a24 = 0; + a20 = 1; + a5 = 4; + a21 = 10; + a19 = 1; + a3 = 1; + a8 = 0; + return -1; + } else if((((a21==10)&&(((a1==14)&&((((a16==8)&&((a13==1)||(a8==1)))||!(a11==1))&&!(a27==1)))||!(a11==1)))&&(((a19==3)&&(((((input==5)&&(((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))))&&(a20==1))&&(a13==1))&&(a6==1)))&&(a17==2)))){ + a19 = 1; + a9 = 7; + a1 = 12; + a5 = 4; + a7 = 0; + a14 = 0; + a16 = 7; + a11 = 1; + return -1; + } else if((((((a21==11)&&((a19==4)&&((input==3)&&((a5==6)||((a5==4)||(a5==5))))))&&(a28==1))&&(a9==9))&&(!(a24==1)&&(((a17==2)&&(((a20==1)&&(!(a7==1)&&(!(a8==1)&&(((a23==1)&&(a11==1))&&(a16==8)))))&&(a1==12)))&&(a12==1))))){ + a19 = 1; + a21 = 10; + a5 = 4; + a27 = 0; + a9 = 7; + a16 = 7; + a6 = 1; + a7 = 0; + return -1; + } else if(((((((a9==9)&&(((a6==1)||(a4==1))||(a7==1)))&&(a5==4))&&(a19==2))&&(a17==2))&&(((a16==10)&&((a1==14)&&(((a13==1)&&((a28==1)&&((a13==1)&&((a21==12)&&(input==6)))))&&!(a27==1))))&&(a20==1)))){ + a1 = 12; + a24 = 0; + a19 = 1; + a7 = 0; + a21 = 10; + a9 = 7; + a16 = 7; + return -1; + } else if((((((a1==14)&&((a13==1)&&((a19==3)&&((a21==11)&&(a2==1)))))&&(a17==2))&&!(a20==1))&&(!(a14==1)&&((!(a7==1)&&((!(a0==1)&&((a12==1)&&(((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a9==8)&&(a5==5)))&&(input==4))))&&(a16==8)))&&!(a24==1))))){ + a21 = 12; + a3 = 1; + a20 = 1; + a19 = 4; + a9 = 8; + a5 = 6; + a18 = 0; + a16 = 10; + return 23; + } else if(((((a20==1)&&((((a24==1)&&((((((((a9==7)&&((a1==13)&&(a5==4)))||((((a1==12)&&(a5==5))&&(a9==11))||((a9==11)&&((a5==6)&&(a1==12)))))&&(input==5))&&!(a23==1))&&(a16==7))&&(a19==3))&&(a7==1)))&&(a21==11))&&(a8==1)))&&!(a3==1))&&((a17==2)&&((a12==1)&&!(a28==1))))){ + a5 = 5; + a14 = 1; + a9 = 9; + a29 = 0; + a21 = 10; + a1 = 14; + a19 = 1; + a28 = 0; + return 21; + } else if((((a21==11)&&(((a16==8)&&((a6==1)&&(!(a26==1)&&(((a9==9)&&(input==3))&&(a1==13)))))&&(a20==1)))&&((((a19==3)&&(((a8==1)||(!(a24==1)&&(!(a3==1)||(a3==1))))&&(a3==1)))&&(a5==6))&&(a17==2)))){ + a18 = 0; + a0 = 0; + a1 = 12; + a5 = 4; + a14 = 0; + a19 = 1; + a21 = 10; + a16 = 7; + a9 = 7; + return -1; + } else if(((((a5==4)&&((a4==1)&&((((a19==2)&&(a23==1))&&(a18==1))&&(a1==14))))&&!(a3==1))&&(!(a28==1)&&(((!(a2==1)&&(((((a20==1)&&(input==4))&&(a9==11))&&(a21==12))&&!(a6==1)))&&(a16==8))&&(a17==2))))){ + a1 = 12; + a5 = 5; + a7 = 1; + a9 = 8; + a18 = 1; + a11 = 0; + a21 = 10; + a16 = 7; + return -1; + } else if((((a19==2)&&(((!(a4==1)&&((a17==2)&&((a16==9)&&((a13==1)&&((input==1)&&(a21==10))))))&&!(a14==1))&&!(a26==1)))&&(((a9==8)&&(((((a23==1)||!(a3==1))&&(a20==1))&&(a11==1))&&(a5==4)))&&(a1==14)))){ + a2 = 1; + a1 = 12; + a19 = 3; + a8 = 0; + a5 = 6; + a21 = 12; + a9 = 10; + return 21; + } else if((((a13==1)&&(((a3==1)&&((a1==14)&&((a11==1)&&(a17==2))))&&(a20==1)))&&((a11==1)&&(!(a8==1)&&(((((a19==3)&&((a12==1)&&((((a5==5)&&(a9==10))||(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&(input==6))))&&(a21==11))&&(a16==10))&&(a28==1)))))){ + a5 = 4; + a21 = 10; + a0 = 0; + a23 = 1; + a19 = 1; + a9 = 7; + a16 = 7; + a1 = 12; + a6 = 1; + return -1; + } else if((((((((((a23==1)||(a24==1))&&(a21==11))&&(a12==1))&&(a20==1))||(a14==1))&&(a19==4))&&(a16==8))&&((a28==1)&&((!(a0==1)&&((a28==1)&&((((input==3)&&(a9==7))&&(a1==12))&&(a17==2))))&&(a5==4))))){ + a16 = 7; + a24 = 0; + a1 = 13; + a20 = 0; + a5 = 6; + a14 = 0; + a9 = 10; + a7 = 0; + return 26; + } else if((((!(a18==1)&&(!(a8==1)&&((a2==1)&&(a23==1))))&&(a9==7))&&((a21==11)&&(((a16==9)&&(((a20==1)&&((a17==2)&&((a19==4)&&(((((a5==5)||(a5==6))&&(input==5))&&!(a8==1))&&(a1==13)))))&&(a3==1)))&&(a12==1))))){ + a21 = 10; + a4 = 0; + a9 = 9; + a14 = 0; + a5 = 4; + a20 = 0; + a1 = 14; + a19 = 3; + a16 = 8; + return 21; + } else if((((((a12==1)&&((a19==5)&&((((a16==8)&&(a12==1))||(a0==1))&&(a9==9))))&&!(a18==1))&&!(a26==1))&&((a17==2)&&(((!(a18==1)&&((((a5==4)&&(input==6))&&(a21==10))&&(a20==1)))&&!(a0==1))&&(a1==12))))){ + a24 = 0; + a19 = 2; + a9 = 7; + a7 = 0; + a16 = 10; + a6 = 1; + return 25; + } else if(((((a9==11)&&(!(a23==1)&&((((a24==1)&&(a3==1))&&(a26==1))&&(a8==1))))&&(a1==12))&&((a16==9)&&((a21==11)&&((a20==1)&&((a7==1)&&((((a17==2)&&(((a5==5)||(a5==6))&&(input==3)))&&(a19==5))&&!(a12==1)))))))){ + a16 = 7; + a9 = 9; + a12 = 0; + a20 = 0; + a5 = 4; + a28 = 0; + a19 = 2; + a22 = 1; + return 23; + } else if((((!(a7==1)&&((a16==9)&&((((((a18==1)||((a6==1)&&(a13==1)))&&(a9==7))&&(a1==12))&&(a19==1))&&(a20==1))))&&(a21==11))&&(((a12==1)&&((a17==2)&&((((a5==5)||(a5==6))&&(input==3))&&!(a14==1))))&&!(a18==1)))){ + a1 = 13; + a2 = 1; + a21 = 10; + a26 = 0; + a5 = 6; + a16 = 7; + a19 = 2; + a4 = 0; + return 22; + } else if((((a19==4)&&((a12==1)&&(!(a26==1)&&((((a13==1)&&((a16==7)&&((input==6)&&(((a9==7)&&((a5==4)&&(a1==13)))||(((a9==11)&&((a1==12)&&(a5==5)))||(((a5==6)&&(a1==12))&&(a9==11)))))))&&(a2==1))&&(a21==11)))))&&((a23==1)&&((a20==1)&&(((a2==1)&&(a17==2))||!(a12==1)))))){ + a19 = 3; + a6 = 1; + a1 = 14; + a9 = 7; + a4 = 0; + a5 = 5; + a16 = 8; + a11 = 1; + return 21; + } else if(((((a3==1)&&(((a21==12)&&(((a17==2)&&((a11==1)&&(a19==1)))&&(a5==6)))&&(a9==7)))||(a27==1))&&(!(a26==1)&&((((a1==12)&&(((a16==10)&&((a20==1)&&(input==5)))&&!(a8==1)))&&(a2==1))&&!(a24==1))))){ + a7 = 0; + a21 = 10; + a5 = 4; + a16 = 7; + a23 = 1; + return -1; + } else if((((a1==14)&&(((((a19==2)&&((!(a14==1)&&((a12==1)&&(a21==10)))&&(a3==1)))&&(a20==1))||(a14==1))&&(a13==1)))&&(((((a16==8)&&((((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))&&(input==3)))&&(a17==2))&&(a28==1))&&!(a24==1)))){ + a9 = 7; + a6 = 1; + a13 = 1; + a19 = 1; + a16 = 7; + a5 = 4; + a8 = 0; + a1 = 12; + return -1; + } else if((((a9==7)&&(((a21==12)&&((a5==6)&&(((a1==13)&&(!(a28==1)||(!(a8==1)&&(a23==1))))||(a27==1))))&&(a17==2)))&&(!(a0==1)&&((((((a16==8)&&(input==6))&&(a20==1))&&(a28==1))&&(a19==4))&&(a23==1))))){ + a23 = 1; + a9 = 10; + a16 = 10; + a19 = 3; + a1 = 14; + a28 = 1; + a24 = 0; + return 21; + } else if((((a19==2)&&((a9==9)&&(((!(a4==1)&&(((a16==8)&&((a28==1)&&(a21==10)))||!(a6==1)))&&(a3==1))&&(a1==14))))&&((((a28==1)&&((!(a26==1)&&((input==1)&&(a17==2)))&&(a2==1)))&&(a5==4))&&(a20==1)))){ + a16 = 9; + a18 = 0; + a21 = 12; + a1 = 12; + a5 = 6; + a4 = 0; + a19 = 4; + a6 = 1; + return 26; + } else if((((a6==1)&&(((a19==2)&&((((((a9==9)&&(a5==4))||(((a9==8)&&(a5==5))||((a5==6)&&(a9==8))))&&(input==4))&&(a2==1))&&!(a0==1)))&&(a17==2)))&&(!(a12==1)||((a18==1)||((a1==14)&&(((a16==8)&&(!(a20==1)&&((a12==1)&&!(a27==1))))&&(a21==10))))))){ + a9 = 7; + a19 = 1; + a16 = 7; + a11 = 1; + a5 = 4; + a26 = 0; + a1 = 12; + a8 = 0; + a20 = 1; + return -1; + } else if(((((a17==2)&&(!(a13==1)||(a2==1)))&&(a16==8))&&(!(a27==1)&&(((((a3==1)&&(!(a20==1)&&((((a21==11)&&((((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a5==6)&&(a9==10))))&&(input==5)))&&(a1==14))&&(a19==3))))&&(a11==1))&&(a11==1))&&(a3==1))))){ + a16 = 7; + a4 = 0; + a9 = 11; + a1 = 12; + a21 = 10; + a13 = 1; + a19 = 2; + a24 = 0; + a5 = 4; + return 23; + } else if((((a28==1)&&(((((a20==1)&&((((((a9==7)&&(a5==5))||((a5==6)&&(a9==7)))||((a9==8)&&(a5==4)))&&(input==5))&&(a17==2)))&&(a2==1))&&(a1==14))&&(a19==3)))&&(!(a4==1)&&(((a23==1)&&(!(a12==1)||(!(a4==1)&&((a28==1)&&(a21==10)))))&&(a16==7))))){ + a8 = 0; + a1 = 13; + a5 = 4; + a2 = 1; + a26 = 0; + a21 = 11; + a9 = 8; + a19 = 2; + return 26; + } else if(((((a16==8)&&((a19==1)&&((a7==1)||(((a20==1)&&(a11==1))&&!(a8==1)))))&&(a17==2))&&((a1==14)&&(((a21==12)&&((a3==1)&&(!(a14==1)&&((((input==1)&&(a5==5))&&!(a4==1))&&(a6==1)))))&&(a9==8))))){ + a9 = 9; + a5 = 6; + a23 = 1; + a16 = 10; + a19 = 5; + a12 = 1; + a21 = 11; + a1 = 13; + a11 = 1; + return 26; + } else if((((((a3==1)&&((a9==7)&&(a23==1)))&&(a1==13))&&(a16==10))&&(((!(a18==1)&&((a21==10)&&(((((!(a20==1)&&((input==5)&&((a5==5)||(a5==6))))&&(a11==1))&&!(a18==1))&&(a6==1))&&(a17==2))))&&(a19==1))&&(a3==1)))){ + if((a28==1)){ + a5 = 6; + a10 = 1; + a1 = 14; + a20 = 1; + a29 = 0; + a21 = 11; + a16 = 11; + a19 = 5; + a28 = 0; + }else{ + a22 = 1; + a20 = 1; + a16 = 7; + a28 = 0; + a8 = 1; + a5 = 5; + a9 = 8; + } + return -1; + } else if((((a17==2)&&((((a9==10)&&((((((a5==5)||(a5==6))&&(input==3))&&!(a8==1))&&(a3==1))&&(a13==1)))&&(a16==10))&&!(a20==1)))&&(((a21==10)&&(((a23==1)&&(!(a18==1)&&((a11==1)&&(a11==1))))&&(a19==2)))&&(a1==13)))){ + a5 = 6; + a16 = 7; + a9 = 8; + a20 = 1; + a26 = 1; + a1 = 12; + a8 = 1; + a6 = 0; + return 25; + } else if((((a11==1)&&((!(a7==1)&&((a20==1)&&((!(a4==1)&&((a12==1)&&(((input==5)&&(a1==14))&&(a9==7))))&&(a17==2))))&&(a19==4)))&&(((a21==11)&&((a28==1)&&((a5==4)&&(!(a13==1)||(a28==1)))))&&(a16==11)))){ + a6 = 1; + a16 = 7; + a4 = 0; + a19 = 1; + a28 = 1; + a21 = 10; + a1 = 12; + return -1; + } else if((((((((a2==1)&&((a26==1)||((a23==1)&&(a19==4))))&&!(a0==1))&&!(a4==1))&&(a9==7))&&(a1==13))&&((((a20==1)&&((a21==12)&&((((input==4)&&((a5==5)||(a5==6)))&&(a28==1))&&!(a26==1))))&&(a17==2))&&(a16==9)))){ + a21 = 10; + a1 = 12; + a5 = 4; + a3 = 1; + a4 = 0; + a16 = 7; + a19 = 1; + return -1; + } else if((((a11==1)&&(((a19==5)&&(((!(a12==1)||((a1==13)&&(a23==1)))&&!(a8==1))&&(a20==1)))&&(a16==7)))&&(!(a0==1)&&(((a9==10)&&((a23==1)&&(((a13==1)&&((input==4)&&(a17==2)))&&(a21==11))))&&(a5==5))))){ + a18 = 0; + a9 = 7; + a19 = 1; + a1 = 12; + a5 = 4; + a8 = 0; + a21 = 10; + a14 = 0; + return -1; + } return calculate_output75(input); + } + + int calculate_output75(int input) { + if((((a16==11)&&((!(a6==1)||(((a17==2)&&((a1==13)&&((((a18==1)||(a11==1))&&(a19==2))||!(a28==1))))&&(a3==1)))&&(a5==6)))&&((a21==12)&&(((!(a0==1)&&((input==4)&&(a9==11)))&&!(a14==1))&&(a20==1))))){ + a5 = 4; + a21 = 10; + a4 = 0; + a16 = 7; + a19 = 1; + a18 = 0; + a1 = 12; + a9 = 7; + a27 = 0; + return -1; + } else if((((a13==1)&&((a6==1)&&((a3==1)&&(!(a27==1)&&((a20==1)&&(!(a0==1)&&((a19==2)&&(((a5==4)||(a5==5))&&(input==3)))))))))&&(((a17==2)&&((a21==11)&&(((a9==8)&&((a16==9)&&(a23==1)))&&!(a7==1))))&&(a1==12)))){ + if((a3==1)){ + a16 = 7; + a11 = 1; + a1 = 13; + a0 = 0; + a5 = 4; + a20 = 0; + a8 = 0; + a19 = 3; + }else{ + a9 = 7; + a1 = 13; + a19 = 5; + a21 = 12; + a5 = 6; + a0 = 0; + a7 = 0; + a16 = 8; + a13 = 1; + } + return 25; + } else if((((((a14==1)||((a11==1)&&(a16==10)))&&(a28==1))&&(a9==9))&&((a21==12)&&((a23==1)&&((a2==1)&&(((((((a12==1)&&(((a5==4)||(a5==5))&&(input==5)))&&(a17==2))&&!(a8==1))&&!(a20==1))&&(a19==4))&&(a1==14))))))){ + a10 = 0; + a0 = 1; + a21 = 10; + a12 = 0; + a16 = 7; + a1 = 13; + a20 = 1; + a19 = 1; + a5 = 4; + return -1; + } else if(((((a12==1)&&(((!(a11==1)||((a8==1)||(((((a17==2)&&(a6==1))||(a27==1))||(a8==1))&&(a16==9))))&&(a21==12))&&!(a20==1)))&&(a1==13))&&(!(a4==1)&&((a19==2)&&((input==4)&&((((a9==9)&&(a5==5))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4)))))))){ + a16 = 7; + a9 = 7; + a20 = 1; + a21 = 10; + a15 = 0; + a5 = 5; + a8 = 1; + a19 = 1; + return -1; + } else if((((a19==1)&&((!(a26==1)&&(((a16==7)&&((!(a18==1)&&((input==5)&&((a5==5)||(a5==6))))&&!(a20==1)))&&!(a8==1)))&&(a1==13)))&&(((!(a24==1)&&((a21==11)&&(!(a23==1)||((a9==7)&&(a3==1)))))&&(a17==2))&&!(a8==1)))){ + a12 = 1; + a19 = 2; + a5 = 5; + a21 = 10; + a7 = 0; + a1 = 14; + a20 = 1; + a16 = 8; + a27 = 0; + return 23; + } else if(((((a19==3)&&(((a9==9)&&(!(a18==1)&&((input==4)&&(((a5==4)||(a5==5))||(a5==6)))))&&(a1==14)))&&(a16==10))&&(((a21==10)&&((a11==1)&&(((a20==1)&&((a8==1)||(((a11==1)||!(a3==1))||!(a23==1))))&&(a6==1))))&&(a17==2)))){ + a5 = 4; + a1 = 12; + a18 = 0; + a19 = 1; + a23 = 1; + a16 = 7; + a9 = 7; + a2 = 1; + return -1; + } else if((((!(a14==1)&&(((a9==10)&&(!(a14==1)&&((((((a5==4)||(a5==5))&&(input==3))&&!(a26==1))&&!(a4==1))&&(a19==1))))&&(a20==1)))&&!(a8==1))&&((((a16==8)&&(((a11==1)&&(a21==12))&&(a17==2)))&&(a1==14))&&!(a7==1)))){ + a16 = 7; + a26 = 0; + a21 = 10; + a5 = 4; + a9 = 7; + a6 = 1; + a1 = 12; + a18 = 0; + return -1; + } else if((((a19==1)&&((a20==1)&&((a17==2)&&((a23==1)&&(((((a4==1)||(a3==1))&&(a16==11))||(a0==1))||!(a23==1))))))&&((!(a4==1)&&(((a1==13)&&((((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))&&(input==6)))&&!(a24==1)))&&(a21==10)))){ + a11 = 1; + a16 = 7; + a24 = 0; + a6 = 1; + a1 = 12; + a9 = 7; + a5 = 4; + return -1; + } else if(((!(a2==1)||(((!(a26==1)&&(((a1==14)&&(a28==1))&&(a16==7)))&&(a21==12))&&!(a4==1)))&&(!(a26==1)&&((a2==1)&&((((((((a5==4)||(a5==5))&&(input==5))&&!(a20==1))&&!(a26==1))&&(a17==2))&&(a19==1))&&(a9==8)))))){ + a5 = 4; + a1 = 12; + a9 = 7; + a24 = 0; + a11 = 1; + a20 = 1; + a21 = 10; + a8 = 0; + return -1; + } else if((((a11==1)&&((((a1==13)&&(((input==1)&&((((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))||((a5==5)&&(a9==11))))&&(a17==2)))&&(a20==1))&&(a19==4)))&&((a3==1)&&((!(a24==1)&&((a26==1)||((a16==8)&&(!(a13==1)||((a12==1)||!(a3==1))))))&&(a21==10))))){ + a19 = 1; + a1 = 12; + a24 = 0; + a5 = 4; + a28 = 1; + a13 = 1; + a16 = 7; + a9 = 7; + return -1; + } else if((((((a0==1)||(((a26==1)||((((a3==1)&&(a2==1))&&(a20==1))&&(a16==11)))&&!(a0==1)))&&(a21==11))&&!(a14==1))&&(((a9==8)&&(((a5==4)&&((a17==2)&&((a1==12)&&(input==3))))&&(a19==5)))&&(a11==1)))){ + a9 = 7; + a21 = 10; + a19 = 1; + a27 = 0; + a7 = 0; + a0 = 0; + a16 = 10; + return 21; + } else if(((((a1==14)&&(((((a11==1)||!(a12==1))&&(a13==1))&&(a17==2))||!(a13==1)))&&(a16==11))&&(((((a23==1)&&(!(a18==1)&&(((input==5)&&(((a9==7)&&(a5==6))||((a5==4)&&(a9==8))))&&(a20==1))))&&!(a27==1))&&(a19==3))&&(a21==12)))){ + a19 = 1; + a18 = 0; + a1 = 12; + a3 = 1; + a9 = 7; + a21 = 10; + a16 = 7; + a5 = 4; + a24 = 0; + return -1; + } else if((((a19==1)&&((!(a6==1)&&(a2==1))&&!(a11==1)))&&(((a17==2)&&(((!(a3==1)&&(!(a28==1)&&((a21==11)&&((a20==1)&&(((input==3)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(a16==9))))))&&(a1==14))&&(a27==1)))&&(a8==1)))){ + a6 = 0; + a19 = 4; + a1 = 13; + a3 = 0; + a0 = 1; + a21 = 10; + a16 = 8; + a20 = 0; + a9 = 11; + a5 = 5; + return 25; + } else if(((((a17==2)&&(((a19==5)&&((a13==1)||!(a3==1)))&&!(a0==1)))||!(a23==1))&&((a21==11)&&(!(a27==1)&&(((((((((a9==11)&&((a1==13)&&(a5==5)))||((a9==11)&&((a1==13)&&(a5==6))))||((a9==7)&&((a1==14)&&(a5==4))))&&(input==6))&&!(a26==1))&&(a16==10))&&(a13==1))&&!(a20==1)))))){ + a16 = 7; + a1 = 14; + a5 = 6; + a26 = 1; + a21 = 10; + a29 = 0; + a20 = 1; + a6 = 0; + a19 = 1; + a9 = 10; + return -1; + } else if(((((a19==2)&&((a9==11)&&((!(a27==1)&&((a13==1)&&((a17==2)&&(input==6))))&&(a21==10))))&&(a1==12))&&((a16==8)&&((a5==6)&&((a20==1)&&((a24==1)||(!(a2==1)||((a8==1)||((a12==1)&&!(a0==1)))))))))){ + a26 = 0; + a9 = 7; + a4 = 0; + a5 = 4; + a16 = 7; + a2 = 1; + a19 = 1; + return -1; + } else if((((a28==1)&&((((((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==5))&&(a19==5))&&!(a0==1))&&!(a7==1))&&!(a8==1)))&&(!(a20==1)&&((((a1==12)&&((a17==2)&&(((a21==10)&&(a23==1))||!(a3==1))))&&(a16==9))&&!(a18==1))))){ + a21 = 12; + a9 = 10; + a1 = 14; + a5 = 6; + a22 = 1; + a14 = 1; + a23 = 0; + a19 = 3; + return -1; + } else if(((((!(a24==1)&&((((a12==1)&&(a13==1))&&(a16==8))&&(a9==9)))&&(a1==14))&&(a21==11))&&((a17==2)&&((((a19==5)&&(!(a4==1)&&(!(a20==1)&&((((a5==5)||(a5==6))&&(input==6))&&!(a18==1)))))&&(a6==1))&&!(a8==1))))){ + if((a2==1)){ + a19 = 2; + a16 = 11; + a20 = 1; + a5 = 6; + a1 = 13; + a7 = 1; + a26 = 1; + a21 = 12; + a15 = 1; + }else{ + a18 = 1; + a29 = 1; + a5 = 5; + a16 = 9; + a21 = 10; + a9 = 8; + a13 = 0; + a1 = 13; + } + return 21; + } else if(((!(a4==1)&&((!(a14==1)&&(((a17==2)&&(((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9)))&&(input==1)))&&(a1==12)))&&!(a20==1)))&&((a27==1)||((!(a6==1)||(((a21==10)&&(!(a11==1)||((a6==1)&&(a19==2))))||!(a13==1)))&&(a16==11))))){ + a16 = 7; + a9 = 8; + a29 = 1; + a13 = 0; + a23 = 0; + a20 = 1; + a5 = 4; + a19 = 1; + a1 = 13; + return 25; + } else if((((((a18==1)||((((a21==12)&&((a11==1)||!(a12==1)))&&(a1==12))&&!(a8==1)))&&(a16==7))&&(a5==4))&&((a19==3)&&(((a11==1)&&((a23==1)&&(!(a20==1)&&(((a9==9)&&(input==3))&&(a17==2)))))&&!(a0==1))))){ + a0 = 0; + a20 = 1; + a26 = 0; + a9 = 7; + a28 = 1; + a21 = 10; + a19 = 1; + return -1; + } else if(((!(a14==1)&&((a5==5)&&(!(a18==1)&&((a21==10)&&((a16==9)&&((a19==1)&&(input==6)))))))&&((a28==1)&&(!(a12==1)||(((((a20==1)&&((a17==2)&&((a9==10)&&(a23==1))))&&(a1==14))&&(a3==1))||(a7==1)))))){ + a19 = 4; + a5 = 6; + a21 = 11; + a1 = 13; + a8 = 0; + a20 = 0; + a16 = 7; + a27 = 0; + a11 = 1; + a9 = 9; + return 25; + } else if((((!(a24==1)&&(((!(a11==1)||(a23==1))&&(a19==3))&&(a20==1)))&&(a21==12))&&((a1==12)&&((((a13==1)&&((a2==1)&&(((((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))||((a5==5)&&(a9==8)))&&(input==1))&&(a17==2))&&!(a4==1))))&&(a12==1))&&(a16==11))))){ + a21 = 11; + a16 = 8; + a19 = 4; + a9 = 11; + a14 = 0; + a5 = 6; + a24 = 0; + return 25; + } else if((((a23==1)&&(!(a14==1)&&((a21==11)&&(((((a20==1)&&(((a17==2)&&((input==5)&&(a1==12)))&&(a28==1)))&&(a19==5))&&(a9==9))&&(a5==5)))))&&((a2==1)&&((a4==1)||(((a13==1)&&(a2==1))&&(a16==7)))))){ + a19 = 1; + a16 = 8; + a5 = 6; + a9 = 11; + a23 = 1; + a7 = 0; + a21 = 12; + return 21; + } else if(((((a19==1)&&((((a6==1)&&(a21==11))&&(a11==1))&&(a1==13)))&&(a16==9))&&(!(a20==1)&&(!(a14==1)&&((a6==1)&&((((!(a24==1)&&((input==1)&&(((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))))&&(a17==2))&&!(a26==1))&&(a11==1))))))){ + a16 = 11; + a21 = 10; + a9 = 10; + a20 = 1; + a19 = 5; + a28 = 0; + a26 = 1; + a5 = 4; + a7 = 1; + a1 = 14; + return 21; + } else if((((a9==8)&&((a20==1)&&((a17==2)&&((a16==7)&&(((a23==1)&&((input==3)&&((a5==4)||(a5==5))))&&(a21==10))))))&&((a1==13)&&(!(a11==1)||(!(a4==1)&&(((a11==1)&&(((a11==1)||!(a23==1))&&(a13==1)))&&(a19==5))))))){ + a5 = 5; + a7 = 0; + a19 = 3; + a2 = 1; + a21 = 12; + a9 = 9; + a1 = 12; + return 26; + } else if(((((a9==10)&&(((a2==1)&&((a24==1)||((a19==2)&&(((a7==1)||(a11==1))&&(a16==9)))))&&(a1==12)))&&(a5==4))&&((((((a2==1)&&((a17==2)&&(input==1)))&&!(a24==1))&&!(a4==1))&&!(a20==1))&&(a21==10)))){ + a16 = 7; + a1 = 14; + a20 = 1; + a9 = 9; + a5 = 5; + a19 = 1; + a25 = 0; + a3 = 0; + a23 = 0; + return 23; + } else if(((((a0==1)&&((!(a23==1)&&((a1==13)&&(((!(a6==1)&&(((a5==4)||(a5==5))&&(input==1)))&&!(a28==1))&&(a16==7))))&&(a21==10)))&&(a9==11))&&((a26==1)&&((!(a28==1)&&(((a17==2)&&(a23==1))&&(a19==2)))&&!(a20==1))))){ + a24 = 1; + a19 = 1; + a5 = 4; + a26 = 1; + a20 = 1; + a9 = 8; + a7 = 1; + return 25; + } else if(((((!(a4==1)&&((a11==1)&&(((a5==4)||(a5==5))&&(input==4))))&&(a17==2))&&!(a8==1))&&((a20==1)&&((a19==2)&&((a9==10)&&((((a21==12)&&((a16==9)&&((a12==1)&&((a23==1)&&(a2==1)))))&&(a1==12))||!(a12==1))))))){ + a26 = 0; + a9 = 7; + a1 = 14; + a5 = 4; + a21 = 10; + a28 = 1; + a11 = 1; + a19 = 5; + a16 = 8; + return -1; + } else if((((a20==1)&&(!(a24==1)&&(((a2==1)&&!(a18==1))&&(a28==1))))&&((a16==9)&&(((a19==4)&&(((a21==10)&&((a17==2)&&((!(a24==1)&&(((input==1)&&((a5==6)||((a5==4)||(a5==5))))&&(a9==7)))&&!(a4==1))))&&(a1==14)))&&(a12==1))))){ + a5 = 5; + a1 = 13; + a2 = 1; + a19 = 2; + a0 = 0; + a8 = 0; + a9 = 9; + a21 = 12; + return 25; + } else if(((!(a6==1)&&(((a16==9)&&((a7==1)&&((a20==1)&&((input==5)&&((a5==5)||(a5==6))))))&&(a26==1)))&&((a14==1)&&((!(a11==1)&&(((a21==11)&&((((a0==1)&&(a28==1))&&(a1==12))&&(a17==2)))&&(a9==7)))&&(a19==4))))){ + a21 = 10; + a7 = 1; + a16 = 7; + a14 = 1; + a20 = 0; + a13 = 0; + a19 = 5; + a5 = 6; + a9 = 10; + return -1; + } else if(((!(a26==1)&&(((a17==2)&&((a21==11)&&((a1==14)&&(a2==1))))&&!(a14==1)))&&(((((a19==1)&&((((a9==9)&&((a13==1)&&((input==4)&&((a5==4)||(a5==5)))))&&(a20==1))&&(a16==10)))&&(a2==1))&&(a2==1))&&!(a4==1)))){ + a5 = 4; + a16 = 7; + a21 = 10; + a18 = 0; + a9 = 7; + a6 = 1; + a1 = 12; + a11 = 1; + return -1; + } else if((((((input==3)&&((((a9==10)&&(a5==5))||((a5==6)&&(a9==10)))||((a5==4)&&(a9==11))))&&(a19==5))&&!(a20==1))&&(((!(a11==1)||(((!(a6==1)||(((a11==1)&&((a1==12)&&((a28==1)&&(a28==1))))&&(a17==2)))&&(a11==1))||!(a12==1)))&&(a16==10))&&(a21==11)))){ + if((a7==1)){ + a8 = 1; + a1 = 14; + a18 = 1; + a5 = 4; + a9 = 7; + a19 = 3; + a26 = 1; + a16 = 7; + a21 = 12; + }else{ + a16 = 7; + a20 = 1; + a1 = 13; + a29 = 0; + a5 = 5; + a9 = 7; + a0 = 1; + a19 = 1; + a21 = 10; + a12 = 0; + } + return -1; + } else if(((((a24==1)||((a17==2)&&(((a3==1)&&!(a7==1))&&!(a8==1))))&&(a19==2))&&((a1==14)&&(!(a8==1)&&((((a16==10)&&(!(a8==1)&&((a20==1)&&((input==1)&&((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a5==4)&&(a9==8)))))))&&!(a18==1))&&(a21==10)))))){ + a2 = 1; + a11 = 1; + a13 = 1; + a19 = 3; + a9 = 8; + a1 = 13; + a5 = 5; + a21 = 11; + a16 = 7; + return -1; + } else if((((((((((input==4)&&((a5==5)||(a5==6)))&&(a2==1))&&(a12==1))&&(a17==2))&&!(a18==1))&&(a21==11))&&(a16==8))&&((a20==1)&&(((a9==8)&&(((a7==1)||(((a11==1)||(a24==1))||(a26==1)))&&(a1==14)))&&(a19==2))))){ + a27 = 0; + a3 = 1; + a5 = 4; + a21 = 10; + a16 = 7; + a1 = 12; + a12 = 1; + a9 = 7; + a19 = 1; + return -1; + } else if((((a16==7)&&(!(a20==1)&&((a27==1)||((a12==1)&&(((a12==1)&&(a6==1))&&(a19==4))))))&&(((a28==1)&&(((a17==2)&&((a23==1)&&(((((a1==13)&&(a5==5))&&(a9==7))||(((a9==11)&&((a1==12)&&(a5==6)))||((a9==7)&&((a1==13)&&(a5==4)))))&&(input==3))))&&(a23==1)))&&(a21==11)))){ + a21 = 10; + a1 = 12; + a5 = 4; + a9 = 7; + a4 = 0; + a27 = 0; + a20 = 1; + a2 = 1; + a19 = 1; + return -1; + } else if(((((a21==10)&&((a17==2)&&(a3==1)))&&(a12==1))&&((a12==1)&&(!(a24==1)&&(!(a8==1)&&((a12==1)&&(!(a4==1)&&((((input==3)&&(((((a5==6)&&(a1==14))&&(a9==11))&&(a19==1))||(((a9==7)&&((a1==12)&&(a5==4)))&&(a19==2))))&&(a16==10))&&(a20==1))))))))){ + a23 = 1; + a2 = 1; + a5 = 4; + a1 = 12; + a19 = 1; + a16 = 7; + a9 = 7; + a14 = 0; + return -1; + } else if(((((a24==1)&&(((a17==2)&&(a28==1))&&(a16==8)))&&!(a2==1))&&((!(a3==1)&&((a21==10)&&((a20==1)&&((!(a2==1)&&(((input==3)&&(((((a1==12)&&(a5==6))&&(a9==11))||(((a5==4)&&(a1==13))&&(a9==7)))||((a9==7)&&((a1==13)&&(a5==5)))))&&(a18==1)))&&(a19==1)))))&&!(a6==1)))){ + a1 = 14; + a18 = 1; + a0 = 1; + a3 = 0; + a9 = 9; + a16 = 7; + a5 = 4; + return 26; + } else if(((((a28==1)&&((a12==1)&&(((a19==1)&&(((a5==5)||(a5==6))&&(input==3)))&&(a21==12))))&&!(a0==1))&&(!(a8==1)&&(!(a13==1)||((a9==11)&&(((a16==8)&&((a20==1)&&((a17==2)&&((a28==1)&&(a1==12)))))||!(a12==1))))))){ + a11 = 1; + a9 = 7; + a5 = 4; + a2 = 1; + a12 = 1; + a16 = 7; + a21 = 10; + return -1; + } else if((((!(a4==1)&&(!(a26==1)&&((a20==1)&&(input==1))))&&(a17==2))&&((a9==9)&&((((a19==3)&&((a5==4)&&((a16==11)&&(((a27==1)||(((a3==1)||(a0==1))&&!(a4==1)))&&(a2==1)))))&&(a1==14))&&(a21==11))))){ + a19 = 2; + a23 = 1; + a11 = 1; + a21 = 12; + a28 = 1; + a1 = 12; + a5 = 5; + return 26; + } else if((((a12==1)&&((a5==5)&&((a7==1)||(!(a20==1)&&((a11==1)&&((a27==1)||(a13==1)))))))&&(((a16==10)&&(((a13==1)&&((a9==7)&&(((a17==2)&&((input==6)&&(a1==12)))&&!(a8==1))))&&(a19==4)))&&(a21==12)))){ + a1 = 14; + a16 = 7; + a15 = 0; + a20 = 1; + a21 = 10; + a9 = 8; + a12 = 0; + a10 = 0; + a19 = 1; + return 21; + } else if(((!(a4==1)&&(((((a9==9)&&(((a19==5)&&((((a5==5)||(a5==6))&&(input==4))&&!(a0==1)))&&(a17==2)))&&(a16==7))&&(a20==1))&&(a6==1)))&&((((!(a27==1)&&((a6==1)&&(a21==12)))||(a4==1))&&(a1==12))||!(a12==1)))){ + a13 = 1; + a5 = 4; + a21 = 10; + a9 = 7; + a19 = 1; + a28 = 1; + return -1; + } else if(((((a28==1)&&((a17==2)&&((a1==14)&&((a21==11)&&((a20==1)&&(a13==1))))))&&(a6==1))&&((!(a4==1)&&((!(a18==1)&&(((a16==9)&&((a2==1)&&(((a5==5)||(a5==6))&&(input==5))))&&(a19==1)))&&(a9==11)))&&(a3==1)))){ + a9 = 8; + a6 = 1; + a21 = 12; + a16 = 8; + a27 = 0; + a5 = 6; + return 21; + } else if(((((a1==13)&&((((!(a13==1)||((a19==2)&&((a17==2)&&(((a3==1)&&(a21==12))&&!(a8==1)))))&&(a3==1))&&!(a7==1))&&!(a20==1)))&&(a2==1))&&((a16==8)&&((((((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))||((a9==10)&&(a5==4)))&&(input==1))&&(a11==1))))){ + if((a6==1)){ + a9 = 7; + a28 = 0; + a5 = 6; + a4 = 1; + a21 = 10; + a19 = 1; + a20 = 1; + a8 = 1; + a16 = 7; + }else{ + a8 = 1; + a5 = 5; + a1 = 12; + a29 = 1; + a16 = 7; + a21 = 10; + a7 = 1; + a20 = 1; + a9 = 8; + } + return -1; + } else if((((a1==13)&&(!(a2==1)&&(((a7==1)&&((a11==1)&&(a21==11)))&&(a16==7))))&&((a17==2)&&((a26==1)&&(!(a13==1)&&(!(a20==1)&&((a26==1)&&(((a19==4)&&((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==6)))&&(a4==1))))))))){ + a21 = 10; + a1 = 12; + a5 = 5; + a12 = 0; + a13 = 0; + a20 = 1; + a19 = 1; + a14 = 1; + a9 = 9; + return 25; + } else if((((a17==2)&&((((a11==1)&&(a20==1))&&!(a27==1))&&(a19==1)))&&((a12==1)&&((((((a11==1)&&(((input==4)&&((((a1==12)&&(a5==6))&&(a9==11))||(((a5==4)&&(a1==13))&&(a9==7))))&&(a16==10)))&&(a21==11))&&(a12==1))&&!(a18==1))&&(a3==1))))){ + a18 = 0; + a3 = 1; + a1 = 14; + a9 = 9; + a5 = 4; + a26 = 0; + a19 = 4; + return 25; + } else if((((!(a24==1)&&((a13==1)&&((a13==1)&&(((a5==6)&&(((input==3)&&(a17==2))&&(a16==8)))&&(a21==11)))))&&(a19==3))&&(((a27==1)||((!(a12==1)||(((a2==1)&&(a1==12))&&(a9==7)))&&!(a8==1)))&&!(a20==1)))){ + a5 = 4; + a26 = 0; + a21 = 10; + a0 = 0; + a19 = 1; + a20 = 1; + a16 = 7; + return -1; + } else if((((((!(a7==1)&&((a19==4)&&(((input==4)&&((a5==5)||(a5==6)))&&(a3==1))))&&(a6==1))&&(a9==7))&&(a20==1))&&((((a21==11)&&(((((a3==1)&&(a28==1))&&(a1==13))&&!(a4==1))&&(a17==2)))&&(a23==1))&&(a16==9)))){ + a12 = 1; + a7 = 0; + a23 = 1; + a16 = 7; + a19 = 1; + a1 = 12; + a5 = 4; + a21 = 10; + return -1; + } else if((((a17==2)&&(((a16==10)&&(((a1==13)&&(a12==1))&&!(a4==1)))&&(a13==1)))&&((((a28==1)&&((((a19==4)&&((a11==1)&&(((a21==11)&&(input==4))&&(a20==1))))&&(a13==1))&&!(a0==1)))&&(a9==11))&&(a5==6)))){ + a21 = 10; + a9 = 7; + a19 = 1; + a16 = 7; + a23 = 1; + a5 = 4; + a8 = 0; + a26 = 0; + a1 = 12; + return -1; + } else if((((a1==13)&&((a14==1)||((a16==9)&&((a17==2)&&((a20==1)&&(((a12==1)&&(a21==12))&&(a19==1)))))))&&((a13==1)&&((a2==1)&&(((a6==1)&&((a11==1)&&(((((a9==7)&&(a5==5))||((a9==7)&&(a5==6)))||((a9==8)&&(a5==4)))&&(input==5))))&&!(a7==1)))))){ + a12 = 1; + a16 = 11; + a8 = 0; + a9 = 10; + a0 = 0; + a19 = 4; + a5 = 6; + a21 = 10; + a1 = 12; + return 23; + } else if(((((((a3==1)&&(a16==8))||(a4==1))&&(a17==2))||!(a23==1))&&(((((((a20==1)&&((input==6)&&(((((a9==11)&&((a1==14)&&(a5==6)))&&(a19==2))||((a19==3)&&((a9==7)&&((a5==4)&&(a1==12)))))||((((a5==5)&&(a1==12))&&(a9==7))&&(a19==3)))))&&(a2==1))&&(a23==1))&&(a28==1))&&(a21==10))&&!(a14==1)))){ + a0 = 0; + a9 = 8; + a5 = 6; + a16 = 9; + a21 = 12; + a1 = 13; + a28 = 1; + a19 = 4; + a6 = 1; + return 26; + } else if(((((!(a7==1)&&((((a19==4)&&(!(a8==1)&&((((a5==5)&&(input==4))&&(a17==2))&&!(a8==1))))&&(a16==7))&&!(a18==1)))&&(a1==14))&&(a20==1))&&((a21==10)&&((a9==8)&&(!(a2==1)||((a6==1)||(a14==1))))))){ + a21 = 11; + a5 = 6; + a19 = 5; + a2 = 1; + a9 = 11; + a27 = 0; + a13 = 1; + return 26; + } else if((((a1==13)&&(((a3==1)&&(a19==3))&&(a21==10)))&&(((((!(a4==1)&&(((a13==1)&&((a17==2)&&(((input==3)&&((((a5==5)&&(a9==7))||((a5==6)&&(a9==7)))||((a5==4)&&(a9==8))))&&!(a20==1))))&&(a16==7)))&&!(a8==1))&&!(a8==1))&&!(a24==1))&&!(a14==1)))){ + a20 = 1; + a12 = 1; + a19 = 1; + a28 = 1; + a9 = 7; + a5 = 4; + a11 = 1; + a1 = 12; + return -1; + } else if(((((!(a23==1)||((a17==2)&&(((!(a23==1)||(a6==1))||(a14==1))&&(a21==10))))&&(a9==10))||(a18==1))&&(((((a1==13)&&((a19==5)&&(((input==4)&&((a5==5)||(a5==6)))&&(a2==1))))&&!(a20==1))&&(a6==1))&&(a16==7)))){ + a9 = 7; + a11 = 1; + a1 = 12; + a5 = 4; + a12 = 1; + a19 = 1; + a20 = 1; + return -1; + } else if(((!(a0==1)&&((((a3==1)&&(a19==3))||!(a2==1))&&!(a8==1)))&&((a21==10)&&(((a1==13)&&(!(a20==1)&&((!(a26==1)&&(((a16==8)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&!(a18==1)))&&(a9==9)))&&(a3==1))))&&(a17==2))))){ + a26 = 0; + a4 = 0; + a16 = 7; + a5 = 4; + a1 = 12; + a9 = 7; + a0 = 0; + a19 = 1; + a20 = 1; + return -1; + } else if((((a19==3)&&((a5==6)&&((a9==11)&&(!(a6==1)||(((a3==1)&&(a21==10))&&!(a8==1))))))&&((a16==8)&&(((!(a14==1)&&(!(a8==1)&&(((a1==12)&&((a20==1)&&(input==5)))&&(a17==2))))&&!(a18==1))&&!(a7==1))))){ + a16 = 7; + a5 = 4; + a12 = 1; + a27 = 0; + a9 = 7; + a19 = 1; + return -1; + } else if((((a28==1)&&((((((a21==12)&&((a17==2)&&(((a3==1)&&((((a5==5)&&(a9==9))||(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(input==6)))&&(a16==7))))&&!(a20==1))&&(a13==1))&&(a19==5))&&(a1==13)))&&((a0==1)||(((a28==1)&&(a2==1))||(a27==1))))){ + a20 = 1; + a16 = 10; + a5 = 4; + a1 = 12; + a13 = 1; + a27 = 0; + a9 = 7; + a23 = 1; + return 23; + } else if(((((a7==1)&&(!(a20==1)&&(((a24==1)&&(a13==1))&&(a7==1))))&&!(a2==1))&&(((!(a11==1)&&((a19==4)&&((a1==13)&&((a16==7)&&(((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))&&(input==4))&&(a21==11))))))&&(a17==2))&&(a0==1)))){ + a21 = 10; + a19 = 1; + a20 = 1; + a24 = 1; + a1 = 12; + a9 = 7; + a14 = 1; + a5 = 6; + a3 = 0; + return 22; + } else if(((((a17==2)&&((a1==13)&&((!(a0==1)&&((input==6)&&(a21==12)))&&!(a7==1))))&&(a9==8))&&((a19==3)&&((a16==11)&&((((a23==1)&&((((a11==1)&&(a5==4))&&!(a14==1))&&!(a24==1)))&&(a20==1))||(a14==1)))))){ + a21 = 10; + a19 = 1; + a16 = 7; + a23 = 1; + a14 = 0; + a1 = 12; + a9 = 7; + a0 = 0; + return -1; + } else if((((a17==2)&&((a21==12)&&((a14==1)||((a27==1)||((a26==1)||(a28==1))))))&&((a1==14)&&(!(a20==1)&&((a19==1)&&(((!(a14==1)&&(((input==1)&&(((a5==5)&&(a9==11))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))))&&!(a27==1)))&&(a2==1))&&(a16==7))))))){ + a7 = 0; + a16 = 8; + a9 = 8; + a5 = 5; + a19 = 4; + a26 = 0; + a20 = 1; + a13 = 1; + return -1; + } else if((((((((((a17==2)&&((a23==1)&&(a19==4)))&&(a16==7))&&(a12==1))&&(a2==1))||(a7==1))&&(a1==13))&&(a21==12))&&((!(a20==1)&&(!(a8==1)&&(!(a4==1)&&(((input==1)&&(a5==5))&&!(a18==1)))))&&(a9==10)))){ + a5 = 4; + a24 = 0; + a6 = 1; + a2 = 1; + a9 = 7; + a20 = 1; + a19 = 1; + a1 = 12; + a21 = 10; + return -1; + } else if(((((a20==1)&&((a1==13)&&((((!(a26==1)&&((a9==8)&&(input==5)))&&(a19==5))&&(a17==2))&&(a21==12))))&&(a5==5))&&(((!(a23==1)||(((a28==1)&&((a28==1)||!(a12==1)))||!(a11==1)))&&(a16==11))||(a0==1)))){ + a21 = 10; + a5 = 4; + a28 = 1; + a7 = 0; + a9 = 9; + a16 = 10; + return 21; + } else if(((!(a3==1)||(!(a28==1)||(!(a2==1)||(((!(a20==1)&&((a26==1)||((a1==14)&&(a3==1))))&&!(a14==1))&&(a21==12)))))&&(((a17==2)&&(((a19==5)&&(!(a8==1)&&(((a5==4)||(a5==5))&&(input==5))))&&(a16==7)))&&(a9==10)))){ + a1 = 12; + a20 = 1; + a23 = 1; + a8 = 0; + a21 = 10; + a9 = 7; + a28 = 1; + a5 = 4; + a19 = 1; + return -1; + } else if((((!(a0==1)&&((a13==1)&&(!(a26==1)&&((!(a20==1)&&((input==3)&&(((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a9==11)&&(a5==4))))))&&(a11==1)))))&&(a28==1))&&(((a21==10)&&(((a16==8)&&((a17==2)&&((a28==1)&&(a1==12))))&&(a19==5)))||(a26==1)))){ + a20 = 1; + a5 = 4; + a9 = 7; + a16 = 7; + a19 = 1; + a14 = 0; + a27 = 0; + a2 = 1; + return -1; + } else if((((((((a1==13)&&((a2==1)&&(!(a14==1)&&((((a2==1)&&(((a6==1)&&(((a5==5)||(a5==6))&&(input==5)))&&(a9==11)))&&!(a20==1))&&(a12==1)))))&&(a12==1))&&(a21==11))&&(a17==2))&&(a16==10))&&((a19==4)&&(a13==1)))){ + a29 = 0; + a13 = 0; + a1 = 12; + a16 = 7; + a21 = 10; + a19 = 2; + a25 = 1; + a5 = 4; + a20 = 1; + return -1; + } else if((((a19==1)&&((a20==1)&&((!(a8==1)&&((a16==11)&&(a3==1)))||!(a23==1))))&&(((!(a24==1)&&((((a1==13)&&(((input==3)&&(((a5==6)&&(a9==8))||((a5==4)&&(a9==9))))&&(a6==1)))&&(a2==1))&&!(a18==1)))&&(a17==2))&&(a21==11)))){ + a14 = 0; + a16 = 7; + a9 = 7; + a21 = 10; + a6 = 1; + a5 = 4; + a1 = 12; + a28 = 1; + return -1; + } else if((((a21==10)&&(((!(a20==1)&&(a28==1))&&(a19==4))||(a14==1)))&&((a9==8)&&((a1==14)&&(((((a6==1)&&(((a3==1)&&((a16==8)&&(((a5==6)||((a5==4)||(a5==5)))&&(input==4))))&&(a17==2)))&&!(a24==1))&&(a2==1))&&!(a14==1)))))){ + a19 = 1; + a5 = 4; + a1 = 12; + a9 = 7; + a20 = 1; + a2 = 1; + a6 = 1; + a14 = 0; + a16 = 7; + return -1; + } else if(((((((a19==4)&&(!(a4==1)&&(!(a4==1)&&((a16==9)&&(input==1)))))&&(a23==1))&&(a9==8))&&(a1==12))&&(!(a18==1)&&(!(a13==1)||((a24==1)||(((a20==1)&&((a5==6)&&((a6==1)&&(a21==10))))&&(a17==2))))))){ + a9 = 7; + a19 = 1; + a11 = 1; + a5 = 4; + a16 = 7; + a6 = 1; + a26 = 0; + return -1; + } else if((((a23==1)&&((((a1==12)&&((a19==4)&&((a23==1)&&((a16==8)&&(((((a9==8)&&(a5==5))||(((a5==6)&&(a9==7))||((a5==4)&&(a9==8))))&&(input==3))&&(a17==2))))))&&!(a0==1))&&!(a20==1)))&&(!(a26==1)&&(!(a0==1)&&(((a21==10)&&(a11==1))&&(a13==1)))))){ + a18 = 0; + a23 = 1; + a9 = 7; + a16 = 7; + a5 = 4; + a20 = 1; + a12 = 1; + a19 = 1; + return -1; + } else if(((((!(a4==1)&&(((a17==2)&&(((a19==4)&&((a9==11)&&((a11==1)&&(a1==14))))&&(a16==7)))&&(a21==11)))&&(a23==1))&&(a11==1))&&((((!(a18==1)&&((input==6)&&((a5==5)||(a5==6))))&&(a20==1))&&(a2==1))&&!(a14==1)))){ + a16 = 8; + a27 = 0; + a23 = 1; + a1 = 13; + a19 = 5; + a5 = 4; + return 23; + } else if(((((a26==1)||((((!(a20==1)&&((a28==1)&&(a16==9)))&&(a17==2))&&!(a27==1))&&(a11==1)))&&!(a14==1))&&(((a1==12)&&((!(a27==1)&&(((((a9==9)&&(a5==5))||(((a5==6)&&(a9==8))||((a9==9)&&(a5==4))))&&(input==4))&&(a19==4)))&&!(a24==1)))&&(a21==12)))){ + a29 = 0; + a20 = 1; + a5 = 4; + a21 = 10; + a19 = 1; + a8 = 1; + a1 = 13; + a9 = 10; + a25 = 1; + a16 = 7; + return -1; + } else if(((((((!(a20==1)&&(((((a9==7)&&(a5==6))||((a9==8)&&(a5==4)))&&(input==3))&&(a3==1)))&&!(a24==1))&&!(a24==1))&&!(a7==1))&&(a23==1))&&(((((a17==2)&&(((a16==10)&&(a3==1))&&(a21==10)))&&(a19==1))&&(a1==12))&&!(a4==1)))){ + if((a25==1)){ + a14 = 1; + a10 = 1; + a16 = 7; + a1 = 14; + a24 = 1; + a19 = 3; + a5 = 5; + a9 = 10; + }else{ + a21 = 12; + a9 = 11; + a16 = 7; + a1 = 13; + a5 = 6; + a25 = 1; + a2 = 0; + a19 = 5; + a18 = 1; + } + return -1; + } else if(((((a0==1)||((!(a20==1)&&((a1==13)&&((a17==2)&&((a19==1)&&(a11==1)))))||(a18==1)))&&(a21==12))&&((((a3==1)&&((((input==3)&&(((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))))&&(a13==1))&&(a16==8)))&&(a13==1))&&(a6==1)))){ + if((a27==1)){ + a18 = 1; + a19 = 5; + a16 = 10; + a22 = 1; + a9 = 8; + a5 = 6; + }else{ + a15 = 1; + a23 = 0; + a9 = 10; + a5 = 6; + a20 = 1; + a16 = 7; + a21 = 10; + } + return -1; + } else if(((((a9==11)&&((((a11==1)&&(((input==5)&&((a5==4)||(a5==5)))&&(a21==12)))&&(a11==1))&&(a16==7)))&&(a12==1))&&((((((((a2==1)||!(a6==1))&&(a17==2))&&(a20==1))&&(a1==12))&&(a3==1))&&(a19==1))||!(a23==1)))){ + a3 = 1; + a5 = 4; + a7 = 0; + a9 = 8; + a19 = 5; + a16 = 8; + a0 = 0; + return 25; + } else if((((a23==1)&&((((((a1==14)&&(((a20==1)&&(((a5==5)||(a5==6))&&(input==6)))&&(a21==11)))&&(a19==3))&&!(a18==1))&&!(a18==1))&&(a16==7)))&&(!(a28==1)||(((a17==2)&&(!(a28==1)||((a12==1)&&(a23==1))))&&(a9==11))))){ + a9 = 8; + a16 = 8; + a11 = 1; + a3 = 1; + a5 = 6; + a13 = 1; + a19 = 2; + return 22; + } else if((((((((((a21==12)&&((a23==1)&&(a13==1)))||!(a3==1))&&(a1==12))&&!(a18==1))&&(a5==6))&&(a19==4))&&(a16==10))&&(((!(a20==1)&&(((a2==1)&&((input==3)&&(a17==2)))&&!(a18==1)))&&!(a8==1))&&(a9==9)))){ + a19 = 2; + a16 = 8; + a11 = 0; + a24 = 1; + a18 = 1; + a1 = 13; + a5 = 5; + a20 = 1; + return 25; + } else if((((((a5==4)&&(((a17==2)&&((!(a7==1)&&((a21==10)&&(input==1)))&&(a20==1)))&&!(a7==1)))&&(a1==12))&&(a23==1))&&((a19==2)&&((a2==1)&&(((a16==10)&&(!(a12==1)||((a11==1)||!(a6==1))))&&(a9==8)))))){ + a14 = 0; + a19 = 5; + a9 = 9; + a16 = 8; + a23 = 1; + a5 = 5; + a4 = 0; + return 25; + } else if(((!(a0==1)&&((a21==11)&&((!(a14==1)&&((a16==9)&&(!(a27==1)&&(((((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))||((a9==9)&&(a5==4)))&&(input==3)))))&&(a19==2))))&&(!(a0==1)&&((((((a28==1)&&(a1==12))&&(a17==2))||(a0==1))&&!(a20==1))&&!(a14==1))))){ + a10 = 0; + a16 = 7; + a5 = 4; + a21 = 10; + a20 = 1; + a7 = 1; + a9 = 8; + a0 = 1; + return -1; + } else if((((((a1==14)&&(((!(a24==1)&&(!(a7==1)&&(((input==1)&&(((a5==4)&&(a9==10))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))))&&(a16==11))))&&(a17==2))&&!(a18==1)))&&(a23==1))&&(a20==1))&&((a19==5)&&((((a3==1)||!(a11==1))&&(a21==11))&&(a23==1))))){ + a5 = 4; + a9 = 8; + a3 = 1; + a28 = 1; + a16 = 10; + a18 = 0; + a1 = 13; + return 21; + } else if((((a21==11)&&((((!(a2==1)||((a19==5)&&(!(a27==1)&&(a13==1))))||(a4==1))&&!(a20==1))&&(a16==10)))&&(!(a27==1)&&((a17==2)&&(((((a9==9)&&((input==4)&&(a1==14)))&&!(a4==1))&&!(a24==1))&&(a5==4)))))){ + a16 = 7; + a20 = 1; + a3 = 0; + a9 = 7; + a0 = 1; + a13 = 0; + a19 = 2; + a5 = 5; + a21 = 10; + a1 = 13; + return -1; + } else if(((((a9==10)&&((((a16==9)&&((a21==10)&&(!(a26==1)&&((input==6)&&(a1==12)))))&&!(a20==1))&&!(a18==1)))&&!(a14==1))&&(((((((a17==2)&&(a28==1))&&(a5==4))&&(a19==5))&&(a11==1))||!(a3==1))||(a27==1)))){ + a5 = 5; + a19 = 4; + a7 = 1; + a2 = 0; + a9 = 8; + a1 = 13; + a16 = 10; + return -1; + } else if((((a28==1)&&(((a21==12)&&((a17==2)&&((((a16==9)&&((input==6)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11)))))&&(a6==1))&&!(a14==1))))&&(a23==1)))&&(!(a20==1)&&(((a11==1)&&(((a12==1)&&(a1==14))||(a4==1)))&&(a19==2))))){ + if((a1==13)){ + a16 = 7; + a25 = 1; + a1 = 12; + a5 = 4; + a9 = 11; + a21 = 10; + a22 = 0; + a20 = 1; + a10 = 1; + }else{ + a21 = 11; + a12 = 0; + a20 = 1; + a1 = 12; + a16 = 8; + a5 = 4; + a18 = 1; + a9 = 9; + a29 = 1; + a19 = 4; + } + return 26; + } else if(((((((a27==1)||((a16==11)&&((!(a13==1)||(!(a7==1)&&(((a26==1)||(a23==1))&&(a20==1))))&&(a6==1))))&&(a17==2))&&(a1==12))&&(a9==10))&&(!(a27==1)&&((a19==2)&&((a21==12)&&((((a5==4)||(a5==5))||(a5==6))&&(input==3))))))){ + a5 = 4; + a16 = 8; + a21 = 10; + a19 = 3; + a2 = 1; + a0 = 0; + a28 = 1; + a20 = 0; + a9 = 9; + a1 = 14; + return 21; + } else if((((((a13==1)&&(a16==10))&&!(a18==1))&&!(a26==1))&&((((a17==2)&&(((((a21==10)&&(!(a8==1)&&((a3==1)&&((input==6)&&(((a5==6)&&(a9==8))||((a9==9)&&(a5==4)))))))&&!(a20==1))&&(a1==14))&&(a13==1)))&&!(a4==1))&&(a19==5)))){ + a20 = 1; + a18 = 1; + a11 = 0; + a5 = 5; + a25 = 1; + a9 = 10; + a16 = 7; + a19 = 1; + a1 = 13; + return -1; + } else if((((((a16==8)&&((a19==1)&&(((((((((a9==8)&&(a5==5))||((a9==8)&&(a5==6)))||((a5==4)&&(a9==9)))&&(input==1))&&(a1==13))&&(a2==1))&&(a21==10))&&(a6==1))))&&(a28==1))&&(a20==1))&&(((((a28==1)&&(a17==2))&&(a3==1))||!(a13==1))&&!(a26==1)))){ + a27 = 0; + a3 = 1; + a1 = 12; + a9 = 7; + a16 = 7; + a2 = 1; + a5 = 4; + return -1; + } else if(((((!(a18==1)&&(!(a20==1)&&((((a21==10)&&(input==5))&&(a11==1))&&(a17==2))))&&!(a0==1))&&(a19==5))&&((a9==8)&&((a5==5)&&((a1==14)&&((!(a7==1)&&((!(a27==1)&&(a28==1))||(a14==1)))&&(a16==7))))))){ + a18 = 0; + a0 = 0; + a1 = 12; + a9 = 7; + a5 = 4; + a19 = 1; + a20 = 1; + return -1; + } else if(((((a13==1)&&((((((a17==2)&&(((a16==8)&&((((a9==11)&&(a5==5))||(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(input==6)))&&(a21==11)))&&(a1==13))&&!(a27==1))&&(a19==5))&&(a11==1)))&&(a11==1))&&((a11==1)&&((!(a28==1)||(a11==1))&&!(a20==1))))){ + a26 = 1; + a3 = 0; + a20 = 1; + a9 = 8; + a19 = 1; + a16 = 7; + a21 = 10; + a1 = 14; + a5 = 6; + a23 = 0; + return 22; + } else if((((a16==10)&&((a9==8)&&((!(a20==1)&&(((input==1)&&(a5==6))&&(a12==1)))&&(a19==5))))&&(((a21==12)&&((a1==12)&&(((a23==1)&&((a11==1)&&((a4==1)||((a7==1)||(a23==1)))))||!(a3==1))))&&(a17==2)))){ + a10 = 0; + a1 = 13; + a19 = 4; + a9 = 7; + a20 = 1; + a18 = 1; + return -1; + } else if((((a19==5)&&((a20==1)&&(!(a6==1)||((a7==1)||((a16==8)&&((a3==1)&&(a3==1)))))))&&(((!(a8==1)&&(!(a8==1)&&(((a17==2)&&((((a5==5)||(a5==6))&&(input==5))&&(a23==1)))&&(a21==10))))&&(a9==7))&&(a1==13)))){ + a16 = 7; + a23 = 1; + a6 = 1; + a1 = 12; + a19 = 1; + a5 = 4; + return -1; + } else if(((((((a17==2)&&((a23==1)&&(a5==5)))&&!(a26==1))&&(a9==11))||!(a23==1))&&((a19==4)&&((((((!(a26==1)&&((a21==10)&&((input==5)&&(a1==12))))&&(a13==1))&&(a12==1))&&!(a14==1))&&(a16==7))&&(a20==1))))){ + a26 = 0; + a21 = 11; + a9 = 9; + a12 = 1; + a1 = 13; + a24 = 0; + return 26; + } else if((((a21==11)&&((((a4==1)||(a2==1))||(a26==1))&&(a1==12)))&&(!(a4==1)&&(!(a18==1)&&(((a19==1)&&(!(a26==1)&&((a9==9)&&((((((a5==6)||((a5==4)||(a5==5)))&&(input==6))&&(a12==1))&&(a17==2))&&(a16==7)))))&&!(a20==1)))))){ + a20 = 1; + a1 = 13; + a19 = 2; + a23 = 1; + a26 = 0; + a21 = 10; + a5 = 5; + return 25; + } else if((((a21==10)&&((a20==1)&&(!(a18==1)&&((a19==4)&&((((a28==1)&&((a12==1)&&(a23==1)))&&(a16==7))&&(a1==14))))))&&(((!(a26==1)&&((((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a5==5)&&(a9==9)))&&(input==3))&&(a6==1)))&&(a2==1))&&(a17==2)))){ + a19 = 1; + a8 = 0; + a9 = 7; + a1 = 12; + a5 = 4; + a18 = 0; + return -1; + } else if(((((a21==10)&&((a27==1)||(((a23==1)||(a14==1))&&!(a20==1))))&&(a19==1))&&((a28==1)&&((a16==9)&&((a28==1)&&((((a3==1)&&(((input==6)&&(((a5==6)&&(a9==10))||((a5==4)&&(a9==11))))&&(a1==13)))&&(a17==2))&&(a28==1))))))){ + a8 = 1; + a24 = 1; + a20 = 1; + a19 = 2; + a5 = 5; + a16 = 7; + a1 = 12; + a9 = 7; + a22 = 0; + return 22; + } else if(((((a19==4)&&((a23==1)&&(!(a4==1)&&(((a21==11)&&((input==6)&&(((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))))&&!(a4==1)))))&&(a16==9))&&(((a17==2)&&((a1==14)&&(((!(a27==1)&&(a13==1))&&!(a7==1))&&!(a24==1))))&&(a20==1)))){ + a16 = 7; + a1 = 12; + a19 = 1; + a5 = 4; + a18 = 0; + a21 = 10; + a9 = 7; + a6 = 1; + return -1; + } else if(((((a17==2)&&((a11==1)&&((input==4)&&((a5==4)||(a5==5)))))&&(a21==10))&&(!(a20==1)&&(!(a3==1)||((a24==1)||(((((a18==1)||((a12==1)&&((a1==13)&&((a12==1)&&(a16==7)))))&&(a9==9))&&(a2==1))&&(a19==3))))))){ + a9 = 8; + a5 = 6; + a26 = 0; + a1 = 14; + a11 = 1; + a7 = 0; + return 25; + } else if(((!(a6==1)&&((a24==1)&&(((a9==10)&&((((a27==1)&&((a2==1)&&(a27==1)))&&(a19==4))&&(a16==10)))&&!(a12==1))))&&(((a1==14)&&((((a17==2)&&(((a5==5)||(a5==6))&&(input==5)))&&(a21==10))&&(a20==1)))&&!(a13==1)))){ + a9 = 7; + a16 = 7; + a1 = 12; + a4 = 1; + a25 = 1; + a26 = 1; + a19 = 1; + a5 = 4; + return 26; + } else if((((a21==11)&&((a19==5)&&(((a17==2)&&((a26==1)||(!(a12==1)||(a28==1))))||(a4==1))))&&(((a20==1)&&((((a16==11)&&(((((a1==13)&&(a5==4))&&(a9==7))||(((a9==11)&&((a5==5)&&(a1==12)))||((a9==11)&&((a1==12)&&(a5==6)))))&&(input==1)))&&!(a24==1))&&(a3==1)))&&(a12==1)))){ + a12 = 1; + a9 = 7; + a18 = 0; + a5 = 5; + a1 = 14; + a11 = 1; + return 21; + } else if((((a9==7)&&((((((!(a14==1)&&(!(a7==1)&&(((a20==1)&&(input==3))&&(a19==5))))&&!(a0==1))&&!(a18==1))&&(a21==11))&&(a5==4))&&(a17==2)))&&(((((a26==1)||(a12==1))&&(a1==13))&&(a13==1))&&(a16==9)))){ + if((a3==1)){ + a1 = 12; + a20 = 0; + a16 = 8; + a9 = 8; + a19 = 4; + a5 = 5; + a0 = 0; + a23 = 1; + a13 = 1; + }else{ + a21 = 10; + a11 = 1; + a19 = 2; + a18 = 0; + a24 = 0; + a9 = 10; + a16 = 7; + } + return 21; + } else if((((((a6==1)&&(!(a0==1)&&((a2==1)&&((a1==12)&&(input==5)))))&&!(a4==1))&&(a23==1))&&((a5==6)&&((((a17==2)&&((a16==9)&&(((a9==7)&&((a28==1)&&(a23==1)))&&(a19==3))))&&!(a20==1))&&(a21==12))))){ + a24 = 1; + a21 = 10; + a16 = 8; + a19 = 5; + a5 = 5; + a1 = 13; + a20 = 1; + a7 = 1; + a28 = 0; + a9 = 10; + return -1; + } else if(((!(a0==1)&&((!(a4==1)&&(!(a4==1)&&(!(a20==1)&&((a9==8)&&(((a5==5)||(a5==6))&&(input==5))))))&&!(a7==1)))&&(((a16==11)&&((!(a8==1)&&((a17==2)&&((a14==1)||((a21==10)&&(a2==1)))))&&(a1==14)))&&(a19==1)))){ + a20 = 1; + a18 = 1; + a1 = 12; + a26 = 1; + a19 = 2; + a5 = 6; + a16 = 7; + return 25; + } else if((((((a19==5)&&((a12==1)&&((a21==11)&&(!(a2==1)||(((a11==1)||(a14==1))||!(a3==1))))))&&(a17==2))&&(a20==1))&&((a16==11)&&(((((input==3)&&(((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))))&&(a28==1))&&!(a8==1))&&(a1==14))))){ + a16 = 7; + a21 = 10; + a9 = 7; + a12 = 1; + a18 = 0; + a19 = 1; + a5 = 4; + a1 = 12; + a28 = 1; + return -1; + } else if(((((a9==10)&&((((a17==2)&&((a28==1)&&(!(a0==1)&&(((a5==5)||(a5==6))&&(input==6)))))&&(a20==1))&&(a19==4)))&&(a21==10))&&((a1==12)&&(!(a6==1)||(!(a2==1)||(!(a27==1)&&(!(a18==1)&&((a12==1)&&(a16==11))))))))){ + a1 = 14; + a19 = 3; + a5 = 6; + a23 = 1; + a26 = 0; + a21 = 11; + a9 = 9; + return 25; + } else if(((((a16==11)&&(((a20==1)&&((a21==12)&&((input==4)&&(a17==2))))&&(a11==1)))&&(a2==1))&&(((((a3==1)&&((a9==11)&&((a5==6)&&(((a19==4)&&(a12==1))||(a24==1)))))&&(a1==13))&&(a23==1))||!(a6==1)))){ + a19 = 1; + a1 = 12; + a5 = 4; + a28 = 1; + a16 = 7; + a0 = 0; + a21 = 10; + a12 = 1; + a9 = 7; + return -1; + } else if((((((a16==9)&&(((a21==12)&&((a6==1)&&(a1==12)))||(a14==1)))&&!(a20==1))||(a0==1))&&((a11==1)&&((((a17==2)&&((a19==4)&&(!(a4==1)&&((input==4)&&(((a5==5)&&(a9==11))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11))))))))&&!(a24==1))&&(a11==1))))){ + if((a7==1)){ + a5 = 5; + a8 = 1; + a16 = 7; + a3 = 0; + a1 = 13; + a20 = 1; + a4 = 1; + a9 = 9; + a19 = 1; + a21 = 10; + }else{ + a5 = 4; + a19 = 5; + a21 = 11; + a13 = 0; + a9 = 11; + a10 = 0; + a14 = 1; + a20 = 1; + a16 = 8; + a1 = 13; + } + return 21; + } else if((((a21==12)&&((((a13==1)||(a14==1))&&(a19==3))&&(a6==1)))&&(!(a20==1)&&((a17==2)&&(((a1==14)&&((a13==1)&&((a6==1)&&(!(a0==1)&&((((((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4)))&&(input==6))&&!(a7==1))))))&&(a16==10)))))){ + a5 = 4; + a1 = 12; + a29 = 0; + a20 = 1; + a16 = 7; + a9 = 9; + a21 = 10; + a6 = 0; + a19 = 2; + return -1; + } else if(((((a17==2)&&(((a21==11)&&(!(a3==1)&&(a6==1)))&&!(a2==1)))&&(a0==1))&&(((a19==5)&&(((a1==12)&&(((!(a13==1)&&(((input==6)&&((a5==5)||(a5==6)))&&!(a20==1)))&&(a16==7))&&(a9==8)))&&!(a2==1)))&&!(a28==1)))){ + a21 = 10; + a19 = 1; + a5 = 5; + a1 = 14; + a20 = 1; + a9 = 7; + a10 = 0; + a25 = 1; + a29 = 1; + return -1; + } else if((((a21==11)&&((a19==2)&&(((!(a24==1)&&((!(a14==1)&&(!(a8==1)&&(((((a5==5)&&(a1==14))&&(a9==7))||((((a5==6)&&(a1==13))&&(a9==11))||(((a5==4)&&(a1==14))&&(a9==7))))&&(input==1))))&&(a16==8)))&&(a20==1))&&!(a4==1))))&&((a17==2)&&(((a3==1)&&(a28==1))&&!(a8==1))))){ + a19 = 1; + a1 = 12; + a5 = 4; + a21 = 10; + a16 = 7; + a0 = 0; + a23 = 1; + a9 = 7; + a12 = 1; + return -1; + } else if(((!(a11==1)||(((a16==10)&&((a20==1)&&((a1==12)&&((a28==1)&&((a17==2)&&(((a2==1)||(a27==1))||(a14==1)))))))&&(a21==11)))&&(!(a18==1)&&((a19==1)&&((a6==1)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))&&(input==3))))))){ + a16 = 7; + a2 = 1; + a9 = 7; + a21 = 10; + a5 = 4; + a8 = 0; + a3 = 1; + return -1; + } else if((((((a21==10)&&((a19==4)&&((((a28==1)&&(a20==1))&&!(a4==1))||(a4==1))))&&!(a26==1))||(a4==1))&&(((a1==12)&&((a17==2)&&((!(a7==1)&&((((a9==10)&&(a5==6))||((a9==11)&&(a5==4)))&&(input==3)))&&!(a27==1))))&&(a16==8)))){ + a16 = 7; + a2 = 1; + a5 = 4; + a9 = 7; + a19 = 1; + a7 = 0; + a3 = 1; + return -1; + } else if((((a9==11)&&((((a19==4)&&((((a13==1)&&(a11==1))&&!(a0==1))||(a24==1)))&&(a20==1))&&(a16==9)))&&((a5==4)&&(((((a11==1)&&(((input==4)&&(a21==10))&&!(a14==1)))&&!(a24==1))&&(a17==2))&&(a1==13))))){ + a8 = 0; + a13 = 1; + a16 = 7; + a1 = 12; + a28 = 1; + a19 = 1; + a9 = 7; + return -1; + } else if((((((!(a6==1)||(a6==1))&&(a21==10))&&!(a7==1))||!(a3==1))&&((a16==7)&&(((((((a9==10)&&((((input==1)&&((a5==4)||(a5==5)))&&(a1==13))&&(a19==4)))&&(a2==1))&&!(a20==1))&&!(a18==1))&&(a11==1))&&(a17==2))))){ + a26 = 0; + a1 = 14; + a9 = 9; + a5 = 5; + a18 = 0; + a13 = 1; + return 25; + } else if((((!(a20==1)&&(((!(a11==1)||(!(a18==1)&&(((a19==5)&&(a12==1))||(a14==1))))&&!(a0==1))&&(a16==8)))&&(a21==12))&&((a17==2)&&((a1==12)&&(((((((a5==6)&&(a9==8))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5)))&&(input==5))&&(a11==1))&&!(a26==1)))))){ + a5 = 6; + a9 = 7; + a16 = 7; + a2 = 0; + a19 = 1; + a14 = 1; + return 25; + } else if(((!(a8==1)&&((((a17==2)&&(!(a26==1)&&(((a1==13)&&((input==1)&&((a5==4)||(a5==5))))&&(a16==9))))&&(a21==10))&&(a28==1)))&&(((a4==1)||(((((a11==1)&&(a19==4))&&(a20==1))&&(a9==9))||!(a3==1)))||(a8==1)))){ + a9 = 10; + a8 = 0; + a19 = 2; + a5 = 5; + a7 = 0; + a16 = 11; + return 22; + } else if(((((a1==12)&&((a2==1)||!(a2==1)))&&(a16==7))&&(!(a14==1)&&((a17==2)&&((((((a11==1)&&((a28==1)&&(!(a20==1)&&((((a5==6)&&(a9==7))||((a5==4)&&(a9==8)))&&(input==3)))))&&!(a8==1))&&!(a26==1))&&(a21==11))&&(a19==2)))))){ + a9 = 7; + a23 = 1; + a14 = 0; + a19 = 1; + a20 = 1; + a21 = 10; + a5 = 4; + a27 = 0; + return -1; + } else if(((((a13==1)&&((((((a3==1)&&(a17==2))&&(a16==11))&&(a1==13))&&(a20==1))||(a27==1)))&&!(a7==1))&&(!(a18==1)&&(((a21==11)&&((((a19==2)&&((input==1)&&(a5==5)))&&(a9==10))&&!(a4==1)))&&(a11==1))))){ + a5 = 4; + a1 = 12; + a21 = 10; + a19 = 1; + a3 = 1; + a24 = 0; + a16 = 7; + a8 = 0; + a9 = 7; + return -1; + } else if((((((((input==5)&&(((a9==9)&&(a5==6))||((a5==4)&&(a9==10))))&&(a16==9))&&!(a8==1))&&(a19==1))&&(a21==11))&&((a1==13)&&(!(a18==1)&&((a20==1)&&((((a6==1)&&((a17==2)&&(!(a14==1)&&(a2==1))))&&(a13==1))&&!(a14==1))))))){ + a6 = 1; + a11 = 1; + a2 = 1; + a21 = 10; + a9 = 11; + a5 = 5; + a16 = 10; + return 21; + } else if((((a9==11)&&(((((a8==1)||((a5==5)&&((!(a12==1)||(a28==1))&&(a23==1))))&&(a3==1))&&(a21==11))&&(a17==2)))&&(((((a1==14)&&((a20==1)&&((input==4)&&(a16==7))))&&(a19==5))&&(a2==1))&&(a3==1)))){ + a5 = 4; + a19 = 1; + a18 = 0; + a28 = 1; + a9 = 7; + a21 = 10; + a1 = 12; + a12 = 1; + return -1; + } else if(((((a17==2)&&(((((((a28==1)&&((a6==1)&&!(a18==1)))&&!(a26==1))&&(a5==4))&&(a1==13))&&(a9==7))&&(a16==8)))&&(a11==1))&&(!(a0==1)&&(((a19==3)&&((a21==10)&&((input==5)&&!(a20==1))))&&(a3==1))))){ + a12 = 1; + a27 = 0; + a9 = 9; + a5 = 6; + a21 = 11; + return 23; + } else if(((((!(a28==1)||(((a1==14)&&((a17==2)&&(a28==1)))||!(a6==1)))&&(a21==11))&&!(a20==1))&&((a2==1)&&((((a19==5)&&(!(a8==1)&&(((input==1)&&(((a5==6)&&(a9==9))||((a5==4)&&(a9==10))))&&(a28==1))))&&(a16==10))&&!(a0==1))))){ + a21 = 10; + a23 = 0; + a19 = 4; + a9 = 9; + a16 = 9; + a24 = 1; + a20 = 1; + a1 = 12; + a5 = 5; + a6 = 0; + return -1; + } else if((((a21==11)&&((a1==12)&&(((a28==1)&&(((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5)))&&(input==1)))&&!(a14==1))))&&(((a8==1)||(((((a28==1)&&(!(a12==1)||((a13==1)&&(a17==2))))&&(a19==4))&&!(a20==1))||(a8==1)))&&(a16==10)))){ + if((a11==1)){ + a3 = 0; + a5 = 6; + a1 = 14; + a21 = 10; + a19 = 1; + a2 = 0; + a25 = 1; + a9 = 7; + a20 = 1; + a16 = 7; + }else{ + a21 = 10; + a18 = 1; + a20 = 1; + a5 = 4; + a9 = 8; + a23 = 0; + a19 = 2; + a4 = 1; + a16 = 7; + } + return -1; + } else if((((((a8==1)||((((a23==1)&&(a21==10))&&!(a0==1))&&(a17==2)))&&(a1==12))&&(a20==1))&&((!(a7==1)&&((a3==1)&&(((a16==8)&&(((input==1)&&(((a9==8)&&(a5==6))||((a9==9)&&(a5==4))))&&(a6==1)))&&(a13==1))))&&(a19==1)))){ + a5 = 4; + a26 = 0; + a9 = 7; + a24 = 0; + a6 = 1; + a16 = 7; + return -1; + } else if((((a0==1)||((((a20==1)&&((a17==2)&&((((a11==1)&&!(a4==1))&&(a1==12))&&(a16==11))))&&!(a26==1))&&(a23==1)))&&(((((a19==3)&&((input==3)&&((((a9==10)&&(a5==5))||((a9==10)&&(a5==6)))||((a9==11)&&(a5==4)))))&&!(a7==1))&&(a21==10))&&!(a24==1)))){ + a19 = 1; + a5 = 4; + a16 = 7; + a9 = 7; + a8 = 0; + a26 = 0; + a4 = 0; + return -1; + } else if((((((a1==14)&&(!(a3==1)&&(((a9==7)&&(((input==3)&&(((a5==4)||(a5==5))||(a5==6)))&&(a21==12)))&&(a17==2))))&&!(a28==1))&&!(a2==1))&&((a20==1)&&(((((a16==10)&&((a13==1)&&(a7==1)))&&(a19==4))&&!(a28==1))&&(a7==1))))){ + a16 = 8; + a9 = 9; + a12 = 0; + a19 = 5; + a18 = 1; + a20 = 0; + a22 = 0; + a5 = 4; + a21 = 10; + return -1; + } else if(((!(a27==1)&&(!(a20==1)&&((a1==12)&&(!(a27==1)&&((((((((a5==6)&&(a9==9))||((a5==4)&&(a9==10)))||((a9==10)&&(a5==5)))&&(input==1))&&(a2==1))&&(a16==9))&&(a17==2))))))&&((a21==11)&&(((a19==2)&&((!(a13==1)||(a12==1))||(a24==1)))||!(a13==1))))){ + a1 = 13; + a9 = 9; + a5 = 6; + a12 = 0; + a20 = 1; + a26 = 1; + a16 = 7; + a21 = 10; + a28 = 0; + a19 = 1; + return -1; + } else if((((((a9==7)&&(a23==1))&&(a17==2))&&(a19==1))&&((a20==1)&&((a1==14)&&((a16==8)&&((a21==10)&&(((!(a8==1)&&(((a2==1)&&((((a5==4)||(a5==5))&&(input==1))&&(a13==1)))&&!(a14==1)))&&(a12==1))&&!(a0==1)))))))){ + if((a11==1)){ + a16 = 7; + a20 = 0; + a5 = 4; + a26 = 0; + a19 = 2; + a21 = 12; + a9 = 9; + a1 = 12; + a23 = 1; + }else{ + a21 = 12; + a19 = 2; + a1 = 13; + a16 = 9; + a27 = 0; + a13 = 1; + a5 = 5; + a2 = 1; + a9 = 11; + } + return 21; + } else if(((((a9==11)&&((a16==8)&&(((a17==2)&&(((a21==10)&&((input==1)&&((a5==4)||(a5==5))))&&!(a27==1)))&&(a3==1))))&&(a20==1))&&((a1==14)&&(((a23==1)&&(!(a24==1)&&(((a23==1)&&(a11==1))&&(a13==1))))&&(a19==1))))){ + a14 = 0; + a23 = 1; + a19 = 3; + a16 = 9; + a1 = 12; + a21 = 12; + a18 = 0; + a5 = 5; + return 22; + } else if((((((!(a8==1)&&((a5==5)&&(((a6==1)&&(a3==1))||!(a3==1))))&&(a9==10))&&(a16==10))&&(a20==1))&&((a21==10)&&((((a6==1)&&((((input==5)&&(a19==4))&&(a17==2))&&(a1==13)))&&!(a4==1))&&!(a8==1))))){ + a21 = 11; + a0 = 0; + a1 = 14; + a19 = 3; + a16 = 7; + a12 = 1; + a9 = 11; + a7 = 0; + return 25; + } else if((((a5==4)&&((a1==12)&&((a20==1)&&(!(a3==1)||((a23==1)&&((((a16==11)&&(a3==1))||!(a11==1))&&(a21==11)))))))&&(!(a4==1)&&((!(a27==1)&&((((input==1)&&(a19==2))&&(a9==10))&&(a11==1)))&&(a17==2))))){ + a13 = 1; + a16 = 7; + a1 = 14; + a9 = 11; + a20 = 0; + a12 = 1; + a2 = 1; + a5 = 6; + a19 = 1; + return 21; + } else if((((a16==8)&&(((a19==3)&&((((a11==1)&&(a9==9))&&(a1==12))&&!(a27==1)))&&!(a20==1)))&&(!(a27==1)&&((((a2==1)&&((a21==12)&&(((((a5==4)||(a5==5))&&(input==4))&&!(a14==1))&&!(a18==1))))&&!(a27==1))&&(a17==2))))){ + if((a13==1)){ + a8 = 1; + a5 = 4; + a16 = 7; + a0 = 1; + a1 = 13; + a19 = 2; + a13 = 0; + a9 = 7; + a20 = 1; + a21 = 10; + }else{ + a15 = 1; + a0 = 1; + a6 = 0; + a9 = 8; + a1 = 13; + a16 = 7; + a5 = 5; + a19 = 2; + } + return 25; + } else if((((a23==1)&&(((a23==1)&&((a17==2)&&((a6==1)||!(a6==1))))&&!(a7==1)))&&(((((((((input==5)&&((((a9==9)&&(a5==6))||((a9==10)&&(a5==4)))||((a5==5)&&(a9==10))))&&(a1==12))&&(a20==1))&&(a19==5))&&(a16==11))&&(a21==10))&&!(a24==1))&&!(a4==1)))){ + if((a27==1)){ + a19 = 4; + a1 = 14; + a0 = 0; + a5 = 4; + a9 = 7; + a16 = 8; + a7 = 0; + a27 = 0; + a20 = 0; + }else{ + a21 = 11; + a2 = 1; + a7 = 0; + a5 = 4; + a3 = 1; + a9 = 8; + a19 = 4; + a1 = 14; + } + return 25; + } else if((((a21==12)&&((((a11==1)&&((a3==1)&&((a17==2)&&((((((a5==4)||(a5==5))&&(input==6))&&(a28==1))&&(a28==1))&&!(a27==1)))))&&(a9==7))&&(a16==8)))&&((a1==14)&&((((a13==1)&&(a20==1))||(a7==1))&&(a19==5))))){ + a4 = 0; + a3 = 1; + a5 = 6; + a13 = 1; + a1 = 12; + return -1; + } else if(((((!(a18==1)&&(((a19==1)&&((input==3)&&((((a9==8)&&(a5==6))||((a5==4)&&(a9==9)))||((a9==9)&&(a5==5)))))&&(a20==1)))&&(a16==10))&&(a2==1))&&((!(a0==1)&&(((a17==2)&&(((a1==13)&&((a6==1)&&(a13==1)))||!(a23==1)))&&(a21==12)))&&(a12==1)))){ + a5 = 4; + a16 = 7; + a18 = 0; + a1 = 12; + a26 = 0; + a21 = 10; + a9 = 7; + return -1; + } else if(((((a17==2)&&((((a18==1)||((a19==1)&&(((a6==1)||(a26==1))&&!(a8==1))))&&!(a4==1))&&(a1==13)))&&(a21==12))&&((!(a20==1)&&(((((input==4)&&((a5==6)||((a5==4)||(a5==5))))&&(a28==1))&&(a13==1))&&(a9==7)))&&(a16==7)))){ + a6 = 1; + a21 = 10; + a4 = 0; + a20 = 1; + a1 = 12; + a5 = 4; + a18 = 0; + return -1; + } else if(((!(a13==1)&&(((!(a23==1)&&((a1==14)&&(!(a28==1)&&((a8==1)&&((a28==1)&&(a20==1))))))&&(a5==5))&&(a24==1)))&&((a21==10)&&(((a9==8)&&((a16==7)&&(((input==5)&&(a19==4))&&(a17==2))))&&(a4==1))))){ + a1 = 12; + a26 = 1; + a15 = 0; + a13 = 0; + a19 = 1; + a16 = 9; + return 21; + } else if(((((a5==4)&&((((!(a4==1)&&(((input==6)&&(a21==11))&&!(a24==1)))&&!(a18==1))&&(a16==7))&&!(a20==1)))&&(a9==11))&&((a17==2)&&((a19==1)&&(((a4==1)||((a27==1)||((a13==1)||(a7==1))))&&(a1==13)))))){ + a9 = 7; + a21 = 10; + a1 = 12; + a11 = 1; + a12 = 1; + a20 = 1; + a24 = 0; + return -1; + } else if(((((a16==10)&&(((((a21==10)&&((((a5==5)||(a5==6))&&(input==4))&&!(a14==1)))&&(a23==1))&&!(a20==1))&&(a17==2)))&&(a1==12))&&((a19==3)&&(!(a13==1)||(!(a6==1)||(((!(a13==1)||(a28==1))||!(a13==1))&&(a9==7))))))){ + a7 = 1; + a9 = 8; + a0 = 1; + a19 = 1; + a16 = 7; + a5 = 5; + a1 = 13; + a20 = 1; + a10 = 1; + return -1; + } else if((((a8==1)||((a21==12)&&((a16==11)&&((a28==1)&&((a13==1)&&(a1==14))))))&&((a3==1)&&(((!(a27==1)&&((a20==1)&&((((input==4)&&(((a5==4)&&(a9==9))||(((a5==5)&&(a9==8))||((a5==6)&&(a9==8)))))&&(a17==2))&&(a19==2))))&&!(a24==1))&&!(a7==1))))){ + if((a4==1)){ + a21 = 11; + a19 = 3; + a8 = 0; + a18 = 0; + a4 = 0; + a16 = 8; + a20 = 0; + a9 = 11; + a5 = 5; + }else{ + a23 = 1; + a13 = 1; + a5 = 6; + a16 = 8; + a19 = 4; + a9 = 9; + a26 = 0; + } + return 22; + } else if(((((a19==3)&&(!(a20==1)&&(((a17==2)&&(a13==1))||!(a23==1))))||!(a13==1))&&(!(a8==1)&&((a28==1)&&((!(a4==1)&&(((((((a5==5)&&(a9==8))||(((a5==6)&&(a9==7))||((a9==8)&&(a5==4))))&&(input==6))&&(a16==10))&&(a1==13))&&(a21==11)))&&!(a0==1)))))){ + a22 = 1; + a12 = 0; + a9 = 7; + a18 = 1; + a20 = 1; + a21 = 10; + a5 = 5; + return -1; + } else if((((a11==1)&&((((a1==12)&&((a17==2)&&((input==4)&&(((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a5==4)&&(a9==11)))))))&&!(a4==1))&&!(a7==1)))&&((!(a4==1)&&((((((a16==7)&&(a11==1))&&(a19==3))&&!(a20==1))&&!(a24==1))&&(a21==10)))&&!(a18==1)))){ + a6 = 1; + a28 = 1; + a19 = 1; + a9 = 7; + a2 = 1; + a5 = 4; + a20 = 1; + return -1; + } else if((((!(a6==1)||(((a16==10)&&((((a27==1)||((a13==1)&&(a19==4)))&&!(a0==1))&&(a17==2)))&&!(a20==1)))&&!(a27==1))&&((a1==14)&&((a5==6)&&((a13==1)&&(!(a24==1)&&(((input==1)&&(a21==11))&&(a9==10)))))))){ + a9 = 11; + a19 = 5; + a8 = 1; + a20 = 1; + a5 = 5; + a16 = 8; + a14 = 1; + return 21; + } else if((((((!(a11==1)&&((a21==12)&&(a23==1)))&&!(a13==1))&&(a16==7))&&(a9==10))&&(((a1==14)&&((a20==1)&&((a19==2)&&((a18==1)&&((((a4==1)&&((input==6)&&(a5==5)))&&(a14==1))&&(a8==1))))))&&(a17==2)))){ + a19 = 1; + a21 = 10; + a7 = 1; + a5 = 4; + a15 = 1; + a9 = 11; + a27 = 1; + a1 = 13; + return 21; + } else if(((!(a4==1)&&((a1==14)&&((a11==1)&&((((a5==6)||((a5==4)||(a5==5)))&&(input==5))&&(a9==10)))))&&((a21==11)&&(!(a2==1)||(((a4==1)||((a11==1)&&(((((a3==1)&&(a17==2))&&(a20==1))||(a0==1))&&(a19==4))))&&(a16==7)))))){ + if((a21==11)){ + a20 = 0; + a21 = 10; + a0 = 0; + a5 = 5; + a23 = 1; + a1 = 12; + a16 = 8; + a12 = 1; + }else{ + a14 = 0; + a3 = 1; + a1 = 13; + a19 = 5; + a8 = 0; + a9 = 7; + a5 = 5; + a16 = 8; + } + return 23; + } else if(((!(a27==1)&&((a2==1)&&((a21==10)&&((a20==1)&&(((a19==5)&&((a17==2)&&((((a5==4)||(a5==5))&&(input==4))&&!(a24==1))))&&(a16==11))))))&&(((!(a14==1)&&(((a1==13)&&(a28==1))&&(a9==7)))||(a8==1))||!(a3==1)))){ + a0 = 0; + a27 = 0; + a16 = 7; + a1 = 12; + a5 = 4; + a19 = 1; + a14 = 0; + return -1; + } else if(((((a16==11)&&((((a21==10)&&(((!(a7==1)&&((input==1)&&((a5==4)||(a5==5))))&&(a6==1))&&!(a14==1)))&&!(a26==1))&&(a17==2)))&&(a1==14))&&((a9==9)&&(((((a0==1)||(a3==1))&&(a20==1))&&(a19==1))||(a14==1))))){ + a9 = 7; + a1 = 12; + a18 = 0; + a13 = 1; + a5 = 4; + a3 = 1; + a16 = 7; + return -1; + } else if((((a17==2)&&((a19==1)&&((((a16==7)&&((((input==5)&&((((a5==6)&&(a9==9))||((a9==10)&&(a5==4)))||((a9==10)&&(a5==5))))&&(a21==12))&&!(a0==1)))&&!(a27==1))&&(a1==13))))&&((a7==1)||((a28==1)&&((a20==1)&&((a23==1)&&((a2==1)&&(a23==1)))))))){ + a21 = 10; + a5 = 6; + a26 = 0; + a24 = 0; + a1 = 12; + a16 = 9; + a9 = 7; + a14 = 0; + return 22; + } else if((((a12==1)&&(!(a12==1)||((((a17==2)&&((a28==1)&&(a19==3)))&&(a1==14))||(a26==1))))&&((a9==10)&&((((!(a27==1)&&((((input==3)&&((a5==4)||(a5==5)))&&(a20==1))&&!(a24==1)))&&!(a26==1))&&(a21==10))&&(a16==7))))){ + a5 = 4; + a1 = 12; + a7 = 0; + a9 = 7; + a19 = 1; + a14 = 0; + a23 = 1; + return -1; + } else if((((((((((((a5==6)&&(a9==7))||((a9==8)&&(a5==4)))&&(input==1))&&(a28==1))&&(a17==2))&&(a20==1))&&(a19==2))&&(a2==1))&&(a6==1))&&((!(a26==1)&&(((a21==11)&&((a16==8)&&((a3==1)||!(a23==1))))&&(a1==12)))&&(a13==1)))){ + a16 = 7; + a21 = 10; + a5 = 4; + a6 = 1; + a13 = 1; + a19 = 1; + a9 = 7; + a0 = 0; + return -1; + } else if((((a1==13)&&((a23==1)&&(((a19==2)&&(((a21==10)&&(!(a0==1)&&(((((a5==4)||(a5==5))||(a5==6))&&(input==1))&&!(a26==1))))&&!(a0==1)))&&(a12==1))))&&((((a16==7)&&((a20==1)&&((a13==1)&&(a13==1))))&&(a9==8))&&(a17==2)))){ + a9 = 10; + a11 = 1; + a5 = 6; + a8 = 0; + a21 = 12; + a20 = 0; + return 26; + } else if((((a1==12)&&((a28==1)&&((a13==1)&&((a16==10)&&(!(a0==1)&&((a17==2)&&((a19==3)&&(input==1))))))))&&((a20==1)&&((a9==8)&&((((((a6==1)||(a27==1))&&(a21==10))&&(a3==1))||!(a23==1))&&(a5==4)))))){ + if((a6==1)){ + a7 = 0; + a27 = 0; + a8 = 0; + a9 = 7; + a16 = 8; + a20 = 0; + a21 = 11; + a1 = 13; + a19 = 2; + }else{ + a16 = 11; + a4 = 0; + a14 = 0; + a19 = 5; + a1 = 14; + a8 = 0; + } + return 22; + } else if((((((a16==8)&&((!(a20==1)&&((a21==11)&&(a2==1)))&&(a19==5)))||!(a11==1))&&(a17==2))&&(!(a8==1)&&(!(a26==1)&&((!(a24==1)&&((a23==1)&&((a9==10)&&((((a5==4)||(a5==5))&&(input==5))&&(a1==12)))))&&!(a26==1)))))){ + a21 = 10; + a16 = 7; + a5 = 6; + a28 = 1; + a20 = 1; + a1 = 14; + a19 = 3; + a12 = 1; + a3 = 1; + return -1; + } else if(((((((((a17==2)&&(!(a27==1)&&(a6==1)))&&(a16==7))||(a18==1))&&(a1==13))&&(a13==1))&&(a21==10))&&((a9==11)&&(((!(a18==1)&&(((((a5==4)||(a5==5))&&(input==6))&&!(a20==1))&&(a19==2)))&&!(a14==1))&&!(a26==1))))){ + a9 = 10; + a19 = 3; + a23 = 1; + a5 = 6; + a1 = 12; + a3 = 1; + return 26; + } else if((((a7==1)||((((((a28==1)||(a24==1))&&(a1==14))||!(a28==1))&&(a17==2))||(a18==1)))&&(((a19==4)&&((a9==8)&&(!(a4==1)&&((a5==4)&&((!(a0==1)&&((a16==7)&&(input==4)))&&(a21==10))))))&&!(a20==1)))){ + a9 = 7; + a12 = 1; + a27 = 0; + a20 = 1; + a1 = 12; + a28 = 1; + a19 = 1; + return -1; + } else if((((a21==12)&&((a1==14)&&((a19==3)&&(((a2==1)&&(!(a20==1)&&(((((a9==11)&&(a5==5))||(((a9==10)&&(a5==6))||((a9==11)&&(a5==4))))&&(input==3))&&(a28==1))))&&(a23==1)))))&&((a16==8)&&((((a17==2)&&(!(a26==1)&&(a11==1)))||(a4==1))||(a14==1))))){ + if((a17==2)){ + a5 = 4; + a2 = 0; + a21 = 10; + a23 = 0; + a19 = 1; + a20 = 1; + a16 = 7; + a9 = 7; + a1 = 12; + a8 = 1; + }else{ + a9 = 7; + a4 = 1; + a21 = 10; + a6 = 0; + a5 = 6; + a16 = 7; + a11 = 0; + } + return -1; + } else if((((!(a2==1)||(((a19==1)&&((!(a0==1)&&(((a12==1)&&(a5==6))||!(a28==1)))&&!(a14==1)))&&(a16==7)))&&(a17==2))&&((a21==12)&&((a23==1)&&(((a23==1)&&(((a20==1)&&(input==4))&&(a1==13)))&&(a9==10)))))){ + a6 = 1; + a9 = 7; + a4 = 0; + a21 = 10; + a5 = 4; + a1 = 12; + a14 = 0; + return -1; + } else if((((!(a12==1)||(((a16==7)&&((a17==2)&&((a21==12)&&((a7==1)||(((a2==1)&&(a1==12))||!(a13==1))))))&&(a9==10)))&&(a20==1))&&((((((a5==4)&&(input==4))&&!(a4==1))&&(a3==1))&&(a19==2))&&!(a14==1)))){ + a27 = 0; + a0 = 0; + a1 = 13; + a21 = 10; + a3 = 1; + a16 = 9; + return 26; + } else if(((((a19==4)&&(((((input==4)&&((a5==4)||(a5==5)))&&(a23==1))&&(a21==10))&&(a17==2)))&&(a20==1))&&(((!(a3==1)||((!(a28==1)||(!(a14==1)&&(((a13==1)&&(a16==7))||(a18==1))))&&(a1==12)))&&!(a18==1))&&(a9==7)))){ + a21 = 11; + a5 = 4; + a19 = 3; + a8 = 0; + a23 = 1; + a1 = 13; + a13 = 1; + return 22; + } else if(((!(a0==1)&&(((a5==6)&&(((a21==12)&&(a12==1))&&!(a0==1)))&&(a1==14)))&&((a11==1)&&(((a17==2)&&(((((a19==1)&&(!(a8==1)&&(!(a20==1)&&(input==3))))&&!(a14==1))&&(a16==8))&&(a9==11)))&&(a2==1))))){ + a16 = 7; + a14 = 1; + a20 = 1; + a1 = 13; + a7 = 1; + a5 = 5; + a18 = 1; + a9 = 10; + a21 = 10; + return -1; + } else if(((((((((a19==3)&&((input==5)&&(a9==7)))&&!(a20==1))&&(a1==13))&&!(a0==1))&&(a17==2))&&(a21==11))&&(!(a14==1)&&(((a7==1)||(((((a28==1)&&(a16==10))&&(a5==5))||!(a23==1))&&(a23==1)))||!(a6==1))))){ + if((a23==1)){ + a19 = 5; + a25 = 1; + a1 = 12; + a16 = 7; + a9 = 8; + a13 = 0; + a20 = 1; + a5 = 4; + a10 = 0; + }else{ + a25 = 1; + a12 = 0; + a20 = 1; + a19 = 2; + a9 = 8; + a21 = 10; + a1 = 14; + } + return 21; + } else if(((!(a11==1)&&(((a17==2)&&(((a1==13)&&((a12==1)&&!(a11==1)))&&(a7==1)))&&!(a11==1)))&&((a27==1)&&((a20==1)&&((a7==1)&&((a9==11)&&((a21==10)&&((a19==3)&&(((input==3)&&((a5==6)||((a5==4)||(a5==5))))&&(a16==8)))))))))){ + a20 = 0; + a16 = 7; + a5 = 6; + a21 = 12; + a10 = 1; + a19 = 5; + a23 = 0; + a3 = 0; + return -1; + } else if((((a17==2)&&((a21==10)&&((!(a18==1)&&(!(a18==1)&&(!(a0==1)&&((a12==1)||(a4==1)))))&&(a1==14))))&&(((a19==1)&&(!(a26==1)&&((a13==1)&&(((input==1)&&((((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))||((a9==10)&&(a5==4))))&&(a16==9)))))&&(a20==1)))){ + a1 = 12; + a7 = 0; + a5 = 6; + a16 = 10; + a9 = 8; + a18 = 0; + a19 = 4; + a21 = 11; + a24 = 0; + return 21; + } else if(((((((a14==1)||(a11==1))&&(a9==8))||!(a23==1))&&(a19==2))&&((a5==4)&&((a20==1)&&((a2==1)&&(((a13==1)&&((!(a14==1)&&((a21==11)&&(((a17==2)&&(input==3))&&(a11==1))))&&(a16==8)))&&(a1==14))))))){ + a0 = 0; + a12 = 1; + a16 = 7; + a21 = 10; + a19 = 1; + a27 = 0; + a1 = 12; + a9 = 7; + return -1; + } else if((((a19==1)&&(!(a20==1)&&(((a12==1)&&((a6==1)&&((((((a1==13)&&(input==6))&&(a2==1))&&(a17==2))&&(a5==6))&&(a9==9))))&&!(a0==1))))&&((a16==9)&&((a28==1)&&(((a28==1)&&(a21==12))||(a0==1)))))){ + a10 = 0; + a21 = 10; + a2 = 0; + a26 = 1; + a5 = 5; + a1 = 14; + a16 = 7; + a9 = 11; + a20 = 1; + return -1; + } else if((((a1==14)&&((a4==1)||(((a7==1)||((a13==1)&&(((a26==1)||(a11==1))||!(a12==1))))&&(a9==11))))&&(((((a11==1)&&(((a16==9)&&(((a5==5)||(a5==6))&&(input==5)))&&(a17==2)))&&(a19==4))&&!(a20==1))&&(a21==10)))){ + a7 = 1; + a11 = 0; + a20 = 1; + a9 = 10; + a1 = 12; + a19 = 5; + a5 = 4; + a21 = 11; + return 21; + } else if((((a6==1)&&(((((a20==1)&&((a1==13)&&(((input==3)&&(((a9==10)&&(a5==4))||(((a9==9)&&(a5==5))||((a9==9)&&(a5==6)))))&&(a3==1))))&&!(a7==1))&&(a21==11))&&(a2==1)))&&(((((a17==2)&&((a19==4)&&(a23==1)))&&(a11==1))&&(a16==10))||(a14==1)))){ + a16 = 7; + a9 = 7; + a21 = 10; + a27 = 0; + a13 = 1; + a5 = 4; + a1 = 12; + a19 = 1; + a8 = 0; + return -1; + } else if((((((a16==8)&&(((!(a14==1)&&(((a13==1)&&(a20==1))&&(a23==1)))&&(a21==11))&&(a9==8)))||!(a23==1))||!(a23==1))&&(((a17==2)&&((a19==2)&&(((a1==14)&&(((a5==5)||(a5==6))&&(input==1)))&&(a13==1))))&&!(a7==1)))){ + a3 = 1; + a21 = 10; + a1 = 12; + a19 = 1; + a9 = 7; + a18 = 0; + a12 = 1; + a16 = 7; + a5 = 4; + return -1; + } else if((((((a19==5)&&((a4==1)||(!(a3==1)||((a3==1)&&!(a8==1)))))&&(a21==10))&&(a16==7))&&((!(a20==1)&&(!(a7==1)&&((((input==1)&&((((a5==6)&&(a1==13))&&(a9==11))||((a9==7)&&((a5==4)&&(a1==14)))))&&(a3==1))&&(a11==1))))&&(a17==2)))){ + a5 = 4; + a9 = 7; + a8 = 0; + a12 = 1; + a24 = 0; + a1 = 12; + a20 = 1; + a19 = 1; + return -1; + } else if((((a17==2)&&(((a20==1)&&((a3==1)&&(a26==1)))&&(a16==8)))&&((a19==5)&&(!(a23==1)&&(!(a12==1)&&((a1==14)&&(!(a12==1)&&((a5==4)&&((!(a3==1)&&(!(a11==1)&&((input==3)&&(a9==7))))&&(a21==11)))))))))){ + a27 = 1; + a16 = 7; + a20 = 0; + a2 = 0; + a19 = 4; + a21 = 10; + a9 = 9; + a1 = 13; + a5 = 6; + a28 = 0; + return 26; + } else if((((((a9==10)&&(((a16==9)&&((a17==2)&&(a23==1)))||(a18==1)))&&(a21==11))&&!(a7==1))&&(!(a0==1)&&((((a1==13)&&((a28==1)&&((!(a18==1)&&(((a5==5)||(a5==6))&&(input==5)))&&(a19==5))))&&!(a20==1))&&(a6==1))))){ + a10 = 0; + a5 = 6; + a20 = 1; + a9 = 9; + a21 = 12; + a3 = 0; + a19 = 1; + a1 = 14; + a6 = 0; + a16 = 8; + return -1; + } else if(((((a20==1)&&((!(a14==1)&&((a16==7)&&((a26==1)||(a11==1))))&&(a6==1)))&&(a19==1))&&((a21==11)&&((((((!(a4==1)&&((input==1)&&(((a5==4)||(a5==5))||(a5==6))))&&!(a7==1))&&(a17==2))&&(a9==9))&&(a1==14))&&(a28==1))))){ + a28 = 1; + a27 = 0; + a19 = 2; + a16 = 8; + a21 = 10; + a1 = 12; + a9 = 7; + a5 = 5; + a7 = 0; + return 26; + } else if(((!(a24==1)&&((a13==1)&&((a19==2)&&(!(a20==1)&&((!(a27==1)&&((a11==1)&&((((a9==9)&&(a5==5))||(((a9==8)&&(a5==6))||((a5==4)&&(a9==9))))&&(input==6))))&&(a1==12))))))&&(((a7==1)||((a21==11)&&((a16==7)&&((a17==2)&&(a13==1)))))&&!(a4==1)))){ + a3 = 1; + a20 = 1; + a9 = 7; + a16 = 11; + a0 = 0; + a1 = 14; + a5 = 4; + a7 = 0; + return 21; + } else if(((((a5==5)&&(((a1==12)&&((!(a13==1)||(((a7==1)||(a23==1))&&(a16==10)))&&!(a14==1)))||(a7==1)))||!(a23==1))&&((a20==1)&&(((((a17==2)&&((a19==5)&&(input==5)))&&(a21==11))&&(a9==7))&&(a2==1))))){ + a28 = 1; + a21 = 10; + a16 = 7; + a4 = 0; + a5 = 4; + a19 = 1; + a13 = 1; + return -1; + } else if(((((a18==1)&&((a16==9)&&(((((a23==1)&&(a4==1))&&!(a3==1))&&(a20==1))&&(a17==2))))&&(a27==1))&&((((a7==1)&&(((((input==5)&&((a5==4)||(a5==5)))&&(a19==3))&&(a1==12))&&(a9==11)))&&(a21==10))&&(a8==1)))){ + a27 = 1; + a5 = 6; + a12 = 0; + a16 = 7; + a21 = 11; + a9 = 10; + a20 = 0; + a4 = 1; + a19 = 4; + a1 = 13; + return -1; + } else if((((!(a13==1)&&((a21==12)&&(((a14==1)&&(!(a6==1)&&((((((a19==2)&&((a9==7)&&((a5==5)&&(a1==12))))||(((((a5==6)&&(a1==14))&&(a9==11))&&(a19==1))||((a19==2)&&((a9==7)&&((a1==12)&&(a5==4))))))&&(input==6))&&(a16==8))&&(a7==1))))&&(a7==1))))&&(a20==1))&&(!(a28==1)&&((a6==1)&&(a17==2))))){ + a9 = 9; + a16 = 7; + a25 = 0; + a21 = 11; + a5 = 5; + a15 = 0; + a19 = 2; + a1 = 12; + return -1; + } else if((((a1==13)&&((a5==6)&&(((a9==8)&&((((a28==1)&&(!(a7==1)&&(((input==4)&&!(a20==1))&&!(a8==1))))&&!(a4==1))&&(a17==2)))&&(a21==12))))&&((((a7==1)||(!(a6==1)||(a28==1)))&&(a19==2))&&(a16==9)))){ + a7 = 1; + a15 = 0; + a20 = 1; + a1 = 12; + a21 = 10; + a5 = 4; + a16 = 7; + a3 = 0; + return -1; + } else if((((!(a13==1)||(((a18==1)||(((((a11==1)&&(a9==9))&&!(a0==1))&&(a1==14))||(a27==1)))&&(a19==4)))||(a26==1))&&((a17==2)&&(((a16==9)&&((((input==1)&&((a5==5)||(a5==6)))&&!(a26==1))&&(a21==12)))&&(a20==1))))){ + a21 = 10; + a5 = 4; + a6 = 1; + a16 = 7; + a23 = 1; + a1 = 12; + a9 = 7; + a2 = 1; + a19 = 1; + return -1; + } else if((((a1==13)&&((a21==11)&&((a2==1)&&(((((a9==11)&&(input==3))&&(a11==1))&&!(a4==1))&&!(a24==1)))))&&((((a19==2)&&(((a6==1)&&(((a17==2)&&(a6==1))&&!(a20==1)))&&(a11==1)))&&(a16==7))&&(a5==6)))){ + a4 = 0; + a5 = 4; + a9 = 7; + a21 = 10; + a20 = 1; + a19 = 1; + a1 = 12; + a8 = 0; + a23 = 1; + return -1; + } else if((((a17==2)&&(!(a18==1)&&(((a19==1)&&((a2==1)&&(!(a4==1)&&(((input==5)&&((a5==6)||((a5==4)||(a5==5))))&&!(a27==1)))))&&!(a20==1))))&&((((((a21==11)&&(!(a6==1)||(a12==1)))||(a18==1))&&(a1==14))&&(a16==9))&&(a9==9)))){ + if((a23==1)){ + a25 = 1; + a5 = 6; + a7 = 1; + a21 = 10; + a20 = 1; + a16 = 7; + a6 = 0; + }else{ + a19 = 4; + a9 = 11; + a1 = 12; + a16 = 7; + a10 = 1; + a15 = 1; + a5 = 5; + a4 = 1; + } + return 25; + } else if((((((((a16==7)&&((a17==2)&&((((a3==1)||(a0==1))&&!(a24==1))&&(a20==1))))&&(a1==14))&&(a3==1))&&(a21==11))||!(a11==1))&&((a2==1)&&((a28==1)&&((a19==5)&&((input==5)&&(((a5==4)&&(a9==10))||(((a5==5)&&(a9==9))||((a5==6)&&(a9==9)))))))))){ + a19 = 3; + a28 = 1; + a21 = 12; + a1 = 13; + a9 = 11; + a5 = 6; + a16 = 8; + a24 = 0; + return 22; + } else if((((((a8==1)||(((((a23==1)&&!(a7==1))&&(a17==2))&&(a16==7))&&(a20==1)))&&(a21==11))&&(a19==1))&&(!(a7==1)&&((a5==6)&&((!(a26==1)&&(((a12==1)&&((a9==9)&&(input==5)))&&!(a27==1)))&&(a1==12)))))){ + a20 = 0; + a19 = 2; + a5 = 4; + a1 = 14; + a3 = 1; + a26 = 0; + a8 = 0; + return 21; + } else if((((((((((a17==2)&&(a11==1))&&(a3==1))&&!(a14==1))&&(a11==1))||!(a11==1))&&(a19==3))&&(a16==8))&&((((a6==1)&&(!(a20==1)&&((a1==13)&&((((a5==4)&&(a9==11))||(((a9==10)&&(a5==5))||((a9==10)&&(a5==6))))&&(input==6)))))&&(a2==1))&&(a21==11)))){ + a6 = 1; + a23 = 1; + a9 = 8; + a28 = 1; + a16 = 9; + a19 = 5; + a21 = 10; + a1 = 14; + a5 = 6; + a20 = 1; + return 26; + } else if((((((a4==1)||(((a17==2)&&(((!(a20==1)&&(!(a24==1)&&((a1==12)&&(a12==1))))&&(a21==10))&&(a16==8)))||(a18==1)))&&(a19==3))&&(a9==7))&&((((((a5==4)||(a5==5))&&(input==6))&&!(a14==1))&&!(a18==1))&&!(a14==1)))){ + a13 = 1; + a5 = 4; + a16 = 7; + a19 = 1; + a20 = 1; + a4 = 0; + a8 = 0; + return -1; + } else if(((((a19==3)&&(((a28==1)&&!(a27==1))&&(a21==10)))&&!(a26==1))&&(((a6==1)&&((a17==2)&&((a11==1)&&((((((((a9==11)&&((a5==5)&&(a1==13)))||((a9==11)&&((a1==13)&&(a5==6))))||((a9==7)&&((a1==14)&&(a5==4))))&&(input==5))&&(a16==7))&&!(a14==1))&&!(a20==1)))))&&(a6==1)))){ + a8 = 0; + a9 = 11; + a18 = 0; + a19 = 2; + a4 = 0; + a5 = 4; + a1 = 12; + return 23; + } + if(((((((((a1==12)&&(a5==6))&&(a9==7))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==2))&&(a21==10))){ + error_46: exit(0); + } + if(((((((((a1==12)&&(a5==5))&&(a9==11))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==2))&&(a21==10))){ + error_57: exit(0); + } + if(((((((((a1==14)&&(a5==5))&&(a9==9))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_36: exit(0); + } + if(((((((((a1==13)&&(a5==6))&&(a9==8))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_19: exit(0); + } + if(((((((((a1==12)&&(a5==5))&&(a9==9))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_6: exit(0); + } + if(((((((((a1==12)&&(a5==6))&&(a9==10))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_10: exit(0); + } + if(((((((((a1==14)&&(a5==6))&&(a9==8))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_34: exit(0); + } + if(((((((((a1==13)&&(a5==5))&&(a9==7))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_15: exit(0); + } + if(((((((((a1==14)&&(a5==4))&&(a9==8))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_32: exit(0); + } + if(((((((((a1==14)&&(a5==4))&&(a9==11))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_41: exit(0); + } + if(((((((((a1==12)&&(a5==4))&&(a9==11))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_11: exit(0); + } + if(((((((((a1==14)&&(a5==4))&&(a9==9))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_35: exit(0); + } + if(((((((((a1==12)&&(a5==4))&&(a9==8))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_2: exit(0); + } + if(((((((((a1==13)&&(a5==4))&&(a9==9))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_20: exit(0); + } + if(((((((((a1==12)&&(a5==5))&&(a9==8))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_3: exit(0); + } + if(((((((((a1==12)&&(a5==4))&&(a9==7))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + globalError: exit(0); + } + if(((((((((a1==12)&&(a5==4))&&(a9==7))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==2))&&(a21==10))){ + error_44: exit(0); + } + if(((((((((a1==14)&&(a5==4))&&(a9==10))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_38: exit(0); + } + if(((((((((a1==12)&&(a5==5))&&(a9==9))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==2))&&(a21==10))){ + error_51: exit(0); + } + if(((((((((a1==12)&&(a5==5))&&(a9==10))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==2))&&(a21==10))){ + error_54: exit(0); + } + if(((((((((a1==12)&&(a5==4))&&(a9==11))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==2))&&(a21==10))){ + error_56: exit(0); + } + if(((((((((a1==12)&&(a5==4))&&(a9==10))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==2))&&(a21==10))){ + error_53: exit(0); + } + if(((((((((a1==12)&&(a5==4))&&(a9==8))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==2))&&(a21==10))){ + error_47: exit(0); + } + if(((((((((a1==13)&&(a5==4))&&(a9==7))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==2))&&(a21==10))){ + error_59: exit(0); + } + if(((((((((a1==12)&&(a5==4))&&(a9==10))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_8: exit(0); + } + if(((((((((a1==14)&&(a5==6))&&(a9==7))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_31: exit(0); + } + if(((((((((a1==14)&&(a5==6))&&(a9==9))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_37: exit(0); + } + if(((((((((a1==14)&&(a5==4))&&(a9==7))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_29: exit(0); + } + if(((((((((a1==14)&&(a5==5))&&(a9==11))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_42: exit(0); + } + if(((((((((a1==12)&&(a5==5))&&(a9==8))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==2))&&(a21==10))){ + error_48: exit(0); + } + if(((((((((a1==12)&&(a5==6))&&(a9==8))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_4: exit(0); + } + if(((((((((a1==12)&&(a5==4))&&(a9==9))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_5: exit(0); + } + if(((((((((a1==12)&&(a5==6))&&(a9==11))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_13: exit(0); + } + if(((((((((a1==13)&&(a5==6))&&(a9==9))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_22: exit(0); + } + if(((((((((a1==12)&&(a5==6))&&(a9==10))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==2))&&(a21==10))){ + error_55: exit(0); + } + if(((((((((a1==14)&&(a5==6))&&(a9==10))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_40: exit(0); + } + if(((((((((a1==12)&&(a5==6))&&(a9==11))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==2))&&(a21==10))){ + error_58: exit(0); + } + if(((((((((a1==13)&&(a5==4))&&(a9==11))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_26: exit(0); + } + if(((((((((a1==13)&&(a5==5))&&(a9==11))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_27: exit(0); + } + if(((((((((a1==13)&&(a5==6))&&(a9==11))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_28: exit(0); + } + if(((((((((a1==13)&&(a5==4))&&(a9==8))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_17: exit(0); + } + if(((((((((a1==13)&&(a5==5))&&(a9==9))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_21: exit(0); + } + if(((((((((a1==13)&&(a5==6))&&(a9==7))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_16: exit(0); + } + if(((((((((a1==13)&&(a5==4))&&(a9==10))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_23: exit(0); + } + if(((((((((a1==14)&&(a5==5))&&(a9==8))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_33: exit(0); + } + if(((((((((a1==14)&&(a5==6))&&(a9==11))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_43: exit(0); + } + if(((((((((a1==13)&&(a5==6))&&(a9==10))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_25: exit(0); + } + if(((((((((a1==14)&&(a5==5))&&(a9==7))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_30: exit(0); + } + if(((((((((a1==12)&&(a5==4))&&(a9==9))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==2))&&(a21==10))){ + error_50: exit(0); + } + if(((((((((a1==13)&&(a5==4))&&(a9==7))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_14: exit(0); + } + if(((((((((a1==12)&&(a5==5))&&(a9==10))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_9: exit(0); + } + if(((((((((a1==12)&&(a5==6))&&(a9==9))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_7: exit(0); + } + if(((((((((a1==12)&&(a5==6))&&(a9==8))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==2))&&(a21==10))){ + error_49: exit(0); + } + if(((((((((a1==12)&&(a5==5))&&(a9==11))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_12: exit(0); + } + if(((((((((a1==12)&&(a5==5))&&(a9==7))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==2))&&(a21==10))){ + error_45: exit(0); + } + if(((((((((a1==12)&&(a5==6))&&(a9==9))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==2))&&(a21==10))){ + error_52: exit(0); + } + if(((((((((a1==12)&&(a5==5))&&(a9==7))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_0: __VERIFIER_error(); + } + if(((((((((a1==12)&&(a5==6))&&(a9==7))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_1: exit(0); + } + if(((((((((a1==14)&&(a5==5))&&(a9==10))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_39: exit(0); + } + if(((((((((a1==13)&&(a5==5))&&(a9==10))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_24: exit(0); + } + if(((((((((a1==13)&&(a5==5))&&(a9==8))&&(a17==2))&&(a20==1))&&(a16==7))&&(a19==1))&&(a21==10))){ + error_18: exit(0); + } + return -2; + } + +int main() +{ + // default output + int output = -1; + + // main i/o-loop + while(1) + { + // read input + int input; + input = __VERIFIER_nondet_int(); + if ((input != 1) && (input != 3) && (input != 4) && (input != 5) && (input != 6)) return -2; + + // operate eca engine + output = calculate_output(input); + + } +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem10_label00_true-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem10_label00_true-unreach-call.c new file mode 100644 index 000000000..ebf2c39c9 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem10_label00_true-unreach-call.c @@ -0,0 +1,591 @@ +extern void __VERIFIER_error(void); +extern int __VERIFIER_nondet_int(void); +extern void exit(int); + + // inputs + int inputC = 3; + int inputD = 4; + int inputE = 5; + int inputF = 6; + int inputB = 2; + + + int a1 = 23; + int a19 = 9; + int a10 = 0; + int a12 = 0; + int a4 = 14; + + int calculate_output(int input) { + if((((((a10==4) && (a12==0)) && ((38 < a1) && (218 >= a1)) ) && (a4==14)) && (a19==8))){ + error_57: exit(0); + } + if((((((a10==2) && (a12==0)) && ((-13 < a1) && (38 >= a1)) ) && (a4==14)) && (a19==8))){ + error_48: exit(0); + } + if((((((a10==0) && (a12==0)) && a1 <= -13 ) && (a4==14)) && (a19==6))){ + globalError: exit(0); + } + if((((((a10==2) && (a12==0)) && 218 < a1 ) && (a4==14)) && (a19==8))){ + error_50: exit(0); + } + if((((((a10==4) && (a12==0)) && a1 <= -13 ) && (a4==14)) && (a19==6))){ + error_15: exit(0); + } + if((((((a10==2) && (a12==0)) && ((-13 < a1) && (38 >= a1)) ) && (a4==14)) && (a19==7))){ + error_28: exit(0); + } + if((((((a10==3) && (a12==0)) && ((-13 < a1) && (38 >= a1)) ) && (a4==14)) && (a19==6))){ + error_12: exit(0); + } + if((((((a10==4) && (a12==0)) && 218 < a1 ) && (a4==14)) && (a19==8))){ + error_58: exit(0); + } + if((((((a10==1) && (a12==0)) && ((-13 < a1) && (38 >= a1)) ) && (a4==14)) && (a19==7))){ + error_24: exit(0); + } + if((((((a10==2) && (a12==0)) && ((38 < a1) && (218 >= a1)) ) && (a4==14)) && (a19==7))){ + error_29: exit(0); + } + if((((((a10==1) && (a12==0)) && 218 < a1 ) && (a4==14)) && (a19==7))){ + error_26: exit(0); + } + if((((((a10==0) && (a12==0)) && 218 < a1 ) && (a4==14)) && (a19==8))){ + error_42: exit(0); + } + if((((((a10==4) && (a12==0)) && a1 <= -13 ) && (a4==14)) && (a19==8))){ + error_55: exit(0); + } + if((((((a10==2) && (a12==0)) && a1 <= -13 ) && (a4==14)) && (a19==8))){ + error_47: exit(0); + } + if((((((a10==0) && (a12==0)) && ((38 < a1) && (218 >= a1)) ) && (a4==14)) && (a19==8))){ + error_41: exit(0); + } + if((((((a10==1) && (a12==0)) && 218 < a1 ) && (a4==14)) && (a19==8))){ + error_46: exit(0); + } + if((((((a10==2) && (a12==0)) && ((38 < a1) && (218 >= a1)) ) && (a4==14)) && (a19==8))){ + error_49: exit(0); + } + if((((((a10==4) && (a12==0)) && ((-13 < a1) && (38 >= a1)) ) && (a4==14)) && (a19==8))){ + error_56: exit(0); + } + if((((((a10==1) && (a12==0)) && 218 < a1 ) && (a4==14)) && (a19==6))){ + error_6: exit(0); + } + if((((((a10==3) && (a12==0)) && ((-13 < a1) && (38 >= a1)) ) && (a4==14)) && (a19==7))){ + error_32: exit(0); + } + if((((((a10==0) && (a12==0)) && a1 <= -13 ) && (a4==14)) && (a19==8))){ + error_39: exit(0); + } + if((((((a10==0) && (a12==0)) && ((38 < a1) && (218 >= a1)) ) && (a4==14)) && (a19==7))){ + error_21: exit(0); + } + if((((((a10==0) && (a12==0)) && ((-13 < a1) && (38 >= a1)) ) && (a4==14)) && (a19==7))){ + error_20: exit(0); + } + if((((((a10==0) && (a12==0)) && a1 <= -13 ) && (a4==14)) && (a19==7))){ + error_19: exit(0); + } + if((((((a10==4) && (a12==0)) && ((38 < a1) && (218 >= a1)) ) && (a4==14)) && (a19==6))){ + error_17: exit(0); + } + if((((((a10==3) && (a12==0)) && 218 < a1 ) && (a4==14)) && (a19==6))){ + error_14: exit(0); + } + if((((((a10==4) && (a12==0)) && 218 < a1 ) && (a4==14)) && (a19==7))){ + error_38: exit(0); + } + if((((((a10==4) && (a12==0)) && ((-13 < a1) && (38 >= a1)) ) && (a4==14)) && (a19==6))){ + error_16: exit(0); + } + if((((((a10==2) && (a12==0)) && 218 < a1 ) && (a4==14)) && (a19==7))){ + error_30: exit(0); + } + if((((((a10==1) && (a12==0)) && a1 <= -13 ) && (a4==14)) && (a19==8))){ + error_43: exit(0); + } + if((((((a10==1) && (a12==0)) && a1 <= -13 ) && (a4==14)) && (a19==6))){ + error_3: exit(0); + } + if((((((a10==0) && (a12==0)) && 218 < a1 ) && (a4==14)) && (a19==7))){ + error_22: exit(0); + } + if((((((a10==1) && (a12==0)) && ((38 < a1) && (218 >= a1)) ) && (a4==14)) && (a19==8))){ + error_45: exit(0); + } + if((((((a10==4) && (a12==0)) && ((-13 < a1) && (38 >= a1)) ) && (a4==14)) && (a19==7))){ + error_36: exit(0); + } + if((((((a10==2) && (a12==0)) && ((-13 < a1) && (38 >= a1)) ) && (a4==14)) && (a19==6))){ + error_8: exit(0); + } + if((((((a10==3) && (a12==0)) && ((-13 < a1) && (38 >= a1)) ) && (a4==14)) && (a19==8))){ + error_52: exit(0); + } + if((((((a10==3) && (a12==0)) && ((38 < a1) && (218 >= a1)) ) && (a4==14)) && (a19==8))){ + error_53: exit(0); + } + if((((((a10==3) && (a12==0)) && a1 <= -13 ) && (a4==14)) && (a19==7))){ + error_31: exit(0); + } + if((((((a10==3) && (a12==0)) && ((38 < a1) && (218 >= a1)) ) && (a4==14)) && (a19==7))){ + error_33: exit(0); + } + if((((((a10==2) && (a12==0)) && a1 <= -13 ) && (a4==14)) && (a19==6))){ + error_7: exit(0); + } + if((((((a10==1) && (a12==0)) && a1 <= -13 ) && (a4==14)) && (a19==7))){ + error_23: exit(0); + } + if((((((a10==0) && (a12==0)) && ((-13 < a1) && (38 >= a1)) ) && (a4==14)) && (a19==6))){ + error_0: __VERIFIER_error(); + } + if((((((a10==2) && (a12==0)) && 218 < a1 ) && (a4==14)) && (a19==6))){ + error_10: exit(0); + } + if((((((a10==0) && (a12==0)) && ((-13 < a1) && (38 >= a1)) ) && (a4==14)) && (a19==8))){ + error_40: exit(0); + } + if((((((a10==3) && (a12==0)) && a1 <= -13 ) && (a4==14)) && (a19==8))){ + error_51: exit(0); + } + if((((((a10==4) && (a12==0)) && a1 <= -13 ) && (a4==14)) && (a19==7))){ + error_35: exit(0); + } + if((((((a10==1) && (a12==0)) && ((38 < a1) && (218 >= a1)) ) && (a4==14)) && (a19==6))){ + error_5: exit(0); + } + if((((((a10==0) && (a12==0)) && ((38 < a1) && (218 >= a1)) ) && (a4==14)) && (a19==6))){ + error_1: exit(0); + } + if((((((a10==4) && (a12==0)) && ((38 < a1) && (218 >= a1)) ) && (a4==14)) && (a19==7))){ + error_37: exit(0); + } + if((((((a10==3) && (a12==0)) && ((38 < a1) && (218 >= a1)) ) && (a4==14)) && (a19==6))){ + error_13: exit(0); + } + if((((((a10==2) && (a12==0)) && ((38 < a1) && (218 >= a1)) ) && (a4==14)) && (a19==6))){ + error_9: exit(0); + } + if((((((a10==1) && (a12==0)) && ((-13 < a1) && (38 >= a1)) ) && (a4==14)) && (a19==8))){ + error_44: exit(0); + } + if((((((a10==4) && (a12==0)) && 218 < a1 ) && (a4==14)) && (a19==6))){ + error_18: exit(0); + } + if((((((a10==0) && (a12==0)) && 218 < a1 ) && (a4==14)) && (a19==6))){ + error_2: exit(0); + } + if((((((a10==2) && (a12==0)) && a1 <= -13 ) && (a4==14)) && (a19==7))){ + error_27: exit(0); + } + if((((((a10==3) && (a12==0)) && a1 <= -13 ) && (a4==14)) && (a19==6))){ + error_11: exit(0); + } + if((((((a10==3) && (a12==0)) && 218 < a1 ) && (a4==14)) && (a19==8))){ + error_54: exit(0); + } + if((((((a10==3) && (a12==0)) && 218 < a1 ) && (a4==14)) && (a19==7))){ + error_34: exit(0); + } + if((((((a10==1) && (a12==0)) && ((38 < a1) && (218 >= a1)) ) && (a4==14)) && (a19==7))){ + error_25: exit(0); + } + if((((((a10==0) && (a12==0)) && a1 <= -13 ) && (a4==14)) && (a19==9))){ + error_59: exit(0); + } + if((((((a10==1) && (a12==0)) && ((-13 < a1) && (38 >= a1)) ) && (a4==14)) && (a19==6))){ + error_4: exit(0); + } + + if((((a10==4) && ( 218 < a1 && (((input == 4) && (a12==0)) && (a4==14)))) && (a19==9))){ + + a10 = 1; + + return 24; + } else if(((a4==14) && (((a12==0) && ((( ((-13 < a1) && (38 >= a1)) || ((38 < a1) && (218 >= a1)) ) && (input == 4)) && (a19==9))) && (a10==0)))){ + a1 = (((a1 + -15535) - 211896) / 5); + a10 = 2; + + return 22; + } else if(((((a4==14) && ((a19==10) && ((a10==1) && (input == 2)))) && (a12==0)) && 218 < a1 )){ + + a19 = 9; + + return 22; + } else if(((a12==0) && ((a19==9) && ((a10==1) && (( 218 < a1 && (input == 3)) && (a4==14)))))){ + + a19 = 10; + + return 25; + } else if(((a19==10) && (((a4==14) && (((((a10==0) && ((38 < a1) && (218 >= a1)) ) || ((a10==0) && 218 < a1 )) || ((a10==1) && a1 <= -13 )) && (input == 5))) && (a12==0)))){ + a1 = (((((a1 - 0) * 9)/ 10) % 25)- -12); + a10 = 2; + a19 = 8; + + return -1; + } else if(((a12==0) && ((a19==9) && (((a4==14) && ((input == 2) && ( ((-13 < a1) && (38 >= a1)) || ((38 < a1) && (218 >= a1)) ))) && (a10==3))))){ + a1 = (((a1 + 513169) / 5) - -374179); + a10 = 0; + + return 26; + } else if(((a12==0) && ((((a4==14) && ((input == 3) && ( a1 <= -13 || ((-13 < a1) && (38 >= a1)) ))) && (a10==2)) && (a19==9)))){ + a1 = (((((a1 % 299993)+ -300005) * 1) + 533674) - 533676); + return 22; + } else if((((a12==0) && ( ((-13 < a1) && (38 >= a1)) && (((input == 3) && (a19==10)) && (a4==14)))) && (a10==1))){ + a1 = ((((a1 - -221565) * 10)/ 9) / 5); + a19 = 9; + + return 22; + } else if((((a19==9) && (((input == 6) && (( 218 < a1 && (a10==0)) || ( a1 <= -13 && (a10==1)))) && (a4==14))) && (a12==0))){ + a1 = (((((a1 % 25)- -13) - 42605) / 5) - -8517); + a10 = 3; + + return 26; + } else if(( ((38 < a1) && (218 >= a1)) && (((a4==14) && ((a19==10) && ((a10==1) && (input == 4)))) && (a12==0)))){ + a1 = ((((a1 * 57)/ 10) * 5) * 5); + a19 = 9; + + return 24; + } else if((((a4==14) && (((( ((-13 < a1) && (38 >= a1)) || ((38 < a1) && (218 >= a1)) ) && (input == 5)) && (a19==9)) && (a12==0))) && (a10==0))){ + a1 = (((a1 / 5) + 110755) + 220746); + a10 = 1; + a19 = 8; + + return -1; + } else if((((a4==14) && ((((((a10==2) && ((38 < a1) && (218 >= a1)) ) || ((a10==2) && 218 < a1 )) || ( a1 <= -13 && (a10==3))) && (input == 2)) && (a19==9))) && (a12==0))){ + a1 = (((((a1 % 299890)- -300108) + 0) + -140588) + 140590); + a10 = 0; + + return 26; + } else if((((a10==1) && (((a12==0) && ((input == 6) && ( ((-13 < a1) && (38 >= a1)) || ((38 < a1) && (218 >= a1)) ))) && (a4==14))) && (a19==9))){ + a1 = ((((a1 / 5) - -367248) * 1) - 890938); + a10 = 0; + a19 = 10; + + return 26; + } else if(((((((input == 5) && (a4==14)) && 218 < a1 ) && (a10==4)) && (a19==9)) && (a12==0))){ + a1 = (((((a1 % 25)+ -8) * 5) % 25)+ 13); + a10 = 1; + a19 = 7; + + return -1; + } else if(((a19==10) && ((a4==14) && ((a12==0) && ((input == 4) && ((((a10==0) && ((38 < a1) && (218 >= a1)) ) || ( 218 < a1 && (a10==0))) || ((a10==1) && a1 <= -13 ))))))){ + a1 = ((((a1 % 299993)- 300005) * 1) + -3); + a10 = 2; + a19 = 9; + + return 24; + } else if((((a12==0) && ((((a19==9) && (input == 4)) && 218 < a1 ) && (a10==1))) && (a4==14))){ + + return 22; + } else if(((a10==1) && ((a4==14) && ((((a12==0) && (input == 2)) && (a19==9)) && 218 < a1 )))){ + a1 = ((((((a1 % 89)+ 74) - -21) * 5) % 89)- -118); + a19 = 10; + + return 25; + } else if((((a4==14) && (((input == 4) && ((( ((38 < a1) && (218 >= a1)) && (a10==2)) || ((a10==2) && 218 < a1 )) || ( a1 <= -13 && (a10==3)))) && (a19==9))) && (a12==0))){ + a1 = (((a1 / 5) - -435872) + 13710); + a10 = 0; + + return -1; + } else if(((((a12==0) && ((((a10==0) && 218 < a1 ) || ((a10==1) && a1 <= -13 )) && (input == 2))) && (a19==9)) && (a4==14))){ + a1 = ((((((a1 * 9)/ 10) % 299993)+ -300005) / 5) + -75819); + a10 = 4; + + return 26; + } else if((((a4==14) && ((a12==0) && ((input == 3) && (((a10==3) && 218 < a1 ) || ( a1 <= -13 && (a10==4)))))) && (a19==9))){ + a1 = ((((a1 - 0) - 0) / 5) - 247106); + a10 = 4; + + return -1; + } else if((((((a10==1) && ((a12==0) && (input == 6))) && (a19==10)) && ((-13 < a1) && (38 >= a1)) ) && (a4==14))){ + a1 = (((a1 / 5) - 367764) - -191971); + a10 = 2; + a19 = 9; + + return 24; + } else if(((a19==9) && (((a10==4) && ( 218 < a1 && ((a4==14) && (input == 6)))) && (a12==0)))){ + + a19 = 8; + + return -1; + } else if((((a10==0) && ((a12==0) && (((input == 4) && ( a1 <= -13 || ((-13 < a1) && (38 >= a1)) )) && (a19==10)))) && (a4==14))){ + a1 = ((((a1 % 25)+ 13) / 5) - -2); + return 26; + } else if(((a19==9) && ((((a4==14) && ((input == 2) && ( a1 <= -13 || ((-13 < a1) && (38 >= a1)) ))) && (a12==0)) && (a10==2)))){ + a1 = ((((a1 % 299993)+ -300005) * 1) + -1); + return 25; + } else if((((((a12==0) && ((input == 4) && ( ((-13 < a1) && (38 >= a1)) || ((38 < a1) && (218 >= a1)) ))) && (a19==9)) && (a4==14)) && (a10==3))){ + a1 = (((a1 * 5) - 196556) + 94277); + return -1; + } else if((((a4==14) && (((a12==0) && ( 218 < a1 && (input == 6))) && (a19==10))) && (a10==1))){ + a1 = (((a1 - 600149) - 12) + -58); + return -1; + } else if(((((((input == 2) && ( a1 <= -13 || ((-13 < a1) && (38 >= a1)) )) && (a19==10)) && (a10==0)) && (a4==14)) && (a12==0))){ + a1 = ((((a1 % 299890)+ 300108) - -1) + 0); + a10 = 4; + a19 = 9; + + return -1; + } else if((((((( 218 < a1 && (a10==0)) || ((a10==1) && a1 <= -13 )) && (input == 3)) && (a4==14)) && (a12==0)) && (a19==9))){ + a1 = ((((((a1 / 5) % 25)+ 13) * 5) % 25)- -12); + a10 = 4; + + return 22; + } else if(((a12==0) && ((a19==9) && (((input == 6) && (((a10==3) && 218 < a1 ) || ( a1 <= -13 && (a10==4)))) && (a4==14))))){ + a1 = ((((a1 + 0) % 299890)+ 300108) + 0); + a10 = 2; + + return -1; + } else if((((a10==3) && (((a19==9) && (( ((-13 < a1) && (38 >= a1)) || ((38 < a1) && (218 >= a1)) ) && (input == 5))) && (a12==0))) && (a4==14))){ + a1 = ((((a1 - 287698) - 189392) % 89)+ 206); + a10 = 2; + a19 = 7; + + return -1; + } else if((((a12==0) && ((a10==1) && ( 218 < a1 && ((a19==9) && (input == 6))))) && (a4==14))){ + + return 24; + } else if(((a10==0) && ((a12==0) && (((( a1 <= -13 || ((-13 < a1) && (38 >= a1)) ) && (input == 3)) && (a19==10)) && (a4==14))))){ + a1 = (((((a1 % 25)+ 13) - 1) + -16025) - -16025); + return -1; + } else if((((a10==4) && (((( ((-13 < a1) && (38 >= a1)) || ((38 < a1) && (218 >= a1)) ) && (input == 4)) && (a4==14)) && (a19==9))) && (a12==0))){ + a1 = (((((a1 - -249982) + 317100) * 1) % 89)- -62); + return -1; + } else if(((a4==14) && ((a10==1) && ((a19==9) && ((a12==0) && (( ((-13 < a1) && (38 >= a1)) || ((38 < a1) && (218 >= a1)) ) && (input == 4))))))){ + a1 = ((((a1 - 46038) + -455425) * 10)/ 9); + a19 = 10; + + return 24; + } else if(((a4==14) && ((a19==9) && (((( a1 <= -13 && (a10==3)) || (( ((38 < a1) && (218 >= a1)) && (a10==2)) || ((a10==2) && 218 < a1 ))) && (input == 3)) && (a12==0))))){ + a1 = ((((a1 % 299890)- -300108) + 1) * 1); + a10 = 0; + + return -1; + } else if((((((a4==14) && ((input == 6) && (a10==1))) && (a12==0)) && ((38 < a1) && (218 >= a1)) ) && (a19==10))){ + a1 = (((a1 - -320095) * 1) - -173480); + a19 = 9; + + return -1; + } else if(((a4==14) && (((a12==0) && ( 218 < a1 && ((a19==9) && (input == 3)))) && (a10==4)))){ + + return 24; + } else if((((a4==14) && ((a12==0) && ((((a10==3) && 218 < a1 ) || ((a10==4) && a1 <= -13 )) && (input == 4)))) && (a19==9))){ + a1 = ((((a1 % 89)+ 128) + -1) - 0); + a10 = 3; + + return -1; + } else if((((a12==0) && (((a10==4) && (( ((-13 < a1) && (38 >= a1)) || ((38 < a1) && (218 >= a1)) ) && (input == 3))) && (a4==14))) && (a19==9))){ + a1 = ((((a1 + -121822) * 4) * 10)/ -9); + a10 = 3; + + return -1; + } else if(((a19==9) && ((a4==14) && (((input == 5) && ((( ((38 < a1) && (218 >= a1)) && (a10==2)) || ((a10==2) && 218 < a1 )) || ((a10==3) && a1 <= -13 ))) && (a12==0))))){ + a1 = ((((a1 % 299890)- -300108) + 2) + 0); + a10 = 2; + + return 21; + } else if(((a12==0) && (((a19==9) && ((((a10==0) && 218 < a1 ) || ( a1 <= -13 && (a10==1))) && (input == 5))) && (a4==14)))){ + a1 = ((((a1 % 299993)- 300005) + -1) - 1); + a10 = 3; + + return 21; + } else if(( 218 < a1 && ((((a12==0) && ((a19==9) && (input == 2))) && (a10==4)) && (a4==14)))){ + + a10 = 1; + + return 22; + } else if((((a12==0) && ((a19==9) && ((((a10==3) && a1 <= -13 ) || (((a10==2) && ((38 < a1) && (218 >= a1)) ) || ( 218 < a1 && (a10==2)))) && (input == 6)))) && (a4==14))){ + a1 = ((((a1 - 0) % 299890)- -300108) - -1); + a10 = 2; + + return -1; + } else if(((a19==9) && ((a12==0) && (((( a1 <= -13 || ((-13 < a1) && (38 >= a1)) ) && (input == 5)) && (a4==14)) && (a10==2))))){ + a1 = ((((a1 % 299890)+ 300108) * 1) * 1); + a10 = 0; + a19 = 8; + + return -1; + } else if((((a10==1) && (((a12==0) && ((a19==10) && (input == 4))) && ((-13 < a1) && (38 >= a1)) )) && (a4==14))){ + a1 = (((a1 - -575828) - -5011) + 9014); + a19 = 9; + + return 24; + } else if(((a12==0) && ((a4==14) && ( 218 < a1 && (((a10==1) && (input == 4)) && (a19==10)))))){ + a1 = (((((a1 * 9)/ 10) * -1)/ 10) * 5); + a10 = 2; + a19 = 9; + + return 24; + } else if(((((((input == 3) && ( ((-13 < a1) && (38 >= a1)) || ((38 < a1) && (218 >= a1)) )) && (a10==0)) && (a19==9)) && (a4==14)) && (a12==0))){ + a1 = ((((a1 / 5) * 5) / 5) + 505228); + a10 = 1; + + return 25; + } else if((((a4==14) && (((( a1 <= -13 && (a10==1)) || (((a10==0) && ((38 < a1) && (218 >= a1)) ) || ( 218 < a1 && (a10==0)))) && (input == 6)) && (a19==10))) && (a12==0))){ + a1 = (((((a1 * 9)/ 10) % 299993)+ -300005) - 1); + a10 = 2; + a19 = 9; + + return 24; + } else if(((a19==9) && ((((input == 4) && (( 218 < a1 && (a10==0)) || ((a10==1) && a1 <= -13 ))) && (a12==0)) && (a4==14)))){ + a1 = (((((a1 / 5) % 89)- -128) / 5) + 34); + a10 = 0; + a19 = 8; + + return -1; + } else if((((a19==10) && ((a12==0) && ((((a10==1) && a1 <= -13 ) || (( ((38 < a1) && (218 >= a1)) && (a10==0)) || ((a10==0) && 218 < a1 ))) && (input == 3)))) && (a4==14))){ + a1 = ((((a1 % 299993)- 300005) - 0) - 2); + a10 = 2; + a19 = 9; + + return 22; + } else if(((a19==9) && (((a4==14) && ((((a10==3) && 218 < a1 ) || ( a1 <= -13 && (a10==4))) && (input == 5))) && (a12==0)))){ + a1 = ((((((a1 % 25)- -12) - 0) * 5) % 25)- -13); + a10 = 3; + a19 = 6; + + return -1; + } else if((((a12==0) && ((((input == 5) && (a19==10)) && ((38 < a1) && (218 >= a1)) ) && (a4==14))) && (a10==1))){ + a1 = ((((a1 + 381077) % 25)- -1) / 5); + a10 = 2; + a19 = 7; + + return -1; + } else if(((a19==9) && ((a4==14) && (((( ((-13 < a1) && (38 >= a1)) || ((38 < a1) && (218 >= a1)) ) && (input == 3)) && (a10==1)) && (a12==0))))){ + a1 = (((a1 / 5) + 105416) + 61704); + a10 = 4; + + return 24; + } else if(((a10==0) && ((a12==0) && ((((input == 5) && ( a1 <= -13 || ((-13 < a1) && (38 >= a1)) )) && (a19==10)) && (a4==14))))){ + a1 = (((((a1 % 299890)+ 300108) - -1) + -309315) - -309317); + a10 = 1; + a19 = 7; + + return -1; + } else if(( 218 < a1 && (((((input == 3) && (a10==1)) && (a12==0)) && (a4==14)) && (a19==10)))){ + a1 = ((((a1 % 25)- 10) - 1) / 5); + a10 = 0; + + return -1; + } else if((((a12==0) && ((a19==9) && (((input == 3) && ( ((-13 < a1) && (38 >= a1)) || ((38 < a1) && (218 >= a1)) )) && (a4==14)))) && (a10==3))){ + a1 = ((((a1 - -133866) + -357620) / 5) + 265622); + a10 = 0; + + return -1; + } else if((((((a4==14) && ( ((38 < a1) && (218 >= a1)) && (input == 2))) && (a12==0)) && (a10==1)) && (a19==10))){ + a1 = ((((a1 * 10)/ -9) * 5) - 333686); + a10 = 4; + a19 = 6; + + return -1; + } else if((((a19==10) && ((a10==1) && ((a12==0) && ( ((-13 < a1) && (38 >= a1)) && (input == 5))))) && (a4==14))){ + a1 = (((a1 + -283353) / 5) + -495232); + a10 = 0; + a19 = 6; + + return -1; + } else if(((((a10==1) && (((input == 5) && 218 < a1 ) && (a4==14))) && (a19==10)) && (a12==0))){ + a1 = (((((a1 % 89)- -93) * 5) % 89)- -56); + a10 = 4; + a19 = 8; + + return -1; + } else if((((a4==14) && ((a19==9) && ((input == 2) && (((a10==3) && 218 < a1 ) || ((a10==4) && a1 <= -13 ))))) && (a12==0))){ + a1 = ((((a1 % 299993)+ -300005) - 1) - 1); + a10 = 1; + + return -1; + } else if((((a4==14) && (((a19==9) && (( ((-13 < a1) && (38 >= a1)) || ((38 < a1) && (218 >= a1)) ) && (input == 2))) && (a12==0))) && (a10==4))){ + a1 = (((((a1 % 89)+ 129) - 1134) * -1)/ 10); + a10 = 3; + + return -1; + } else if(((a4==14) && (((a19==9) && ((( ((-13 < a1) && (38 >= a1)) || ((38 < a1) && (218 >= a1)) ) && (input == 6)) && (a10==3))) && (a12==0)))){ + a1 = (((a1 - 559222) + -11915) - 28339); + a10 = 1; + + return -1; + } else if((((a4==14) && ((((input == 6) && ( a1 <= -13 || ((-13 < a1) && (38 >= a1)) )) && (a19==10)) && (a12==0))) && (a10==0))){ + a1 = (((((a1 + 0) % 299993)- 300005) / 5) - 292229); + return -1; + } else if(((a12==0) && ((a4==14) && (((( a1 <= -13 && (a10==1)) || (((a10==0) && ((38 < a1) && (218 >= a1)) ) || ( 218 < a1 && (a10==0)))) && (input == 2)) && (a19==10))))){ + a1 = ((((a1 % 25)+ 12) - -2) / 5); + a10 = 2; + a19 = 9; + + return 22; + } else if((((a12==0) && ((a19==9) && ((a10==2) && ((input == 6) && ( a1 <= -13 || ((-13 < a1) && (38 >= a1)) ))))) && (a4==14))){ + a1 = ((((a1 / 5) % 25)+ 13) / 5); + return 25; + } else if(((a4==14) && ((a19==9) && ((a12==0) && (((input == 2) && ( ((-13 < a1) && (38 >= a1)) || ((38 < a1) && (218 >= a1)) )) && (a10==0)))))){ + a1 = (((a1 * 5) + 278443) - -239546); + return 26; + } else if(((a19==9) && (((a10==1) && ((a12==0) && ((input == 2) && ( ((-13 < a1) && (38 >= a1)) || ((38 < a1) && (218 >= a1)) )))) && (a4==14)))){ + a1 = (((((a1 * 5) + 59655) * 5) % 25)+ 12); + a19 = 10; + + return 26; + } else if(((a19==9) && ((a4==14) && ((a10==1) && (((input == 5) && ( ((-13 < a1) && (38 >= a1)) || ((38 < a1) && (218 >= a1)) )) && (a12==0)))))){ + a1 = (((a1 + -438195) * 1) * 1); + a10 = 2; + a19 = 8; + + return -1; + } else if(((a12==0) && (((((input == 6) && ( ((-13 < a1) && (38 >= a1)) || ((38 < a1) && (218 >= a1)) )) && (a19==9)) && (a4==14)) && (a10==0)))){ + a1 = (((((a1 + -272193) - -47605) - -570122) % 89)+ 110); + a10 = 1; + + return 25; + } else if(((a4==14) && (((a12==0) && ((a19==9) && ((input == 6) && ( ((-13 < a1) && (38 >= a1)) || ((38 < a1) && (218 >= a1)) )))) && (a10==4)))){ + a1 = (((((a1 - 44798) + -168742) * 2) % 89)+ 207); + return -1; + } else if(((((( ((38 < a1) && (218 >= a1)) && (input == 3)) && (a10==1)) && (a12==0)) && (a4==14)) && (a19==10))){ + a1 = ((((a1 * 5) - -287099) - 723016) + 616783); + a10 = 4; + a19 = 9; + + return -1; + } else if((((a4==14) && (((( a1 <= -13 || ((-13 < a1) && (38 >= a1)) ) && (input == 4)) && (a12==0)) && (a19==9))) && (a10==2))){ + a1 = ((((a1 % 299993)- 300005) * 1) - 3); + return 24; + } else if(((a12==0) && ((( 218 < a1 && ((a19==9) && (input == 5))) && (a10==1)) && (a4==14)))){ + a1 = ((((a1 * 9)/ 10) + 58620) - 603783); + a10 = 4; + a19 = 8; + + return -1; + } else if(((a4==14) && ((((( ((-13 < a1) && (38 >= a1)) || ((38 < a1) && (218 >= a1)) ) && (input == 5)) && (a12==0)) && (a19==9)) && (a10==4)))){ + a1 = (((a1 + 566454) + 1842) + 23814); + a10 = 2; + a19 = 8; + + return -1; + } else if(((a12==0) && ((((a10==1) && ( ((-13 < a1) && (38 >= a1)) && (input == 2))) && (a4==14)) && (a19==10)))){ + + return 26; + } + return -2; + } + +int main() +{ + // default output + int output = -1; + + // main i/o-loop + while(1) + { + // read input + int input; + input = __VERIFIER_nondet_int(); + if ((input != 2) && (input != 3) && (input != 4) && (input != 5) && (input != 6)) return -2; + + // operate eca engine + output = calculate_output(input); + } +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem11_label00_false-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem11_label00_false-unreach-call.c new file mode 100644 index 000000000..423f34b22 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem11_label00_false-unreach-call.c @@ -0,0 +1,1043 @@ +extern void __VERIFIER_error(void); +extern int __VERIFIER_nondet_int(void); +extern void exit(int); + + // inputs + int inputA = 1; + int inputD = 4; + int inputB = 2; + int inputE = 5; + int inputF = 6; + int inputC = 3; + + + int a29 = 130; + int a4 = 1; + int a23 = 312; + int a8 = 15; + int a25 = 10; + int a3 = 1; + + int calculate_output(int input) { + if(((((( a29 <= 140 && (a4==1)) && (a25==10)) && (a3==1)) && a23 <= -43 ) && (a8==15))){ + error_0: __VERIFIER_error(); + } + if(((((( ((245 < a29) && (277 >= a29)) && (a4==1)) && (a25==11)) && (a3==1)) && ((-43 < a23) && (138 >= a23)) ) && (a8==15))){ + error_31: exit(0); + } + if(((((( 277 < a29 && (a4==1)) && (a25==9)) && (a3==1)) && ((-43 < a23) && (138 >= a23)) ) && (a8==15))){ + error_34: exit(0); + } + if(((((( a29 <= 140 && (a4==1)) && (a25==10)) && (a3==1)) && ((-43 < a23) && (138 >= a23)) ) && (a8==15))){ + error_20: exit(0); + } + if(((((( a29 <= 140 && (a4==1)) && (a25==9)) && (a3==1)) && ((138 < a23) && (306 >= a23)) ) && (a8==15))){ + error_39: exit(0); + } + if(((((( ((245 < a29) && (277 >= a29)) && (a4==1)) && (a25==11)) && (a3==1)) && ((138 < a23) && (306 >= a23)) ) && (a8==15))){ + error_51: exit(0); + } + if(((((( a29 <= 140 && (a4==1)) && (a25==13)) && (a3==1)) && ((138 < a23) && (306 >= a23)) ) && (a8==15))){ + error_43: exit(0); + } + if(((((( 277 < a29 && (a4==1)) && (a25==11)) && (a3==1)) && ((-43 < a23) && (138 >= a23)) ) && (a8==15))){ + error_36: exit(0); + } + if(((((( 277 < a29 && (a4==1)) && (a25==10)) && (a3==1)) && a23 <= -43 ) && (a8==15))){ + error_15: exit(0); + } + if(((((( ((140 < a29) && (245 >= a29)) && (a4==1)) && (a25==13)) && (a3==1)) && a23 <= -43 ) && (a8==15))){ + error_8: exit(0); + } + if(((((( 277 < a29 && (a4==1)) && (a25==9)) && (a3==1)) && a23 <= -43 ) && (a8==15))){ + error_14: exit(0); + } + if(((((( a29 <= 140 && (a4==1)) && (a25==12)) && (a3==1)) && ((138 < a23) && (306 >= a23)) ) && (a8==15))){ + error_42: exit(0); + } + if(((((( 277 < a29 && (a4==1)) && (a25==13)) && (a3==1)) && ((138 < a23) && (306 >= a23)) ) && (a8==15))){ + error_58: exit(0); + } + if(((((( ((245 < a29) && (277 >= a29)) && (a4==1)) && (a25==9)) && (a3==1)) && ((138 < a23) && (306 >= a23)) ) && (a8==15))){ + error_49: exit(0); + } + if(((((( ((245 < a29) && (277 >= a29)) && (a4==1)) && (a25==9)) && (a3==1)) && ((-43 < a23) && (138 >= a23)) ) && (a8==15))){ + error_29: exit(0); + } + if(((((( a29 <= 140 && (a4==1)) && (a25==11)) && (a3==1)) && ((138 < a23) && (306 >= a23)) ) && (a8==15))){ + error_41: exit(0); + } + if(((((( ((245 < a29) && (277 >= a29)) && (a4==1)) && (a25==10)) && (a3==1)) && a23 <= -43 ) && (a8==15))){ + error_10: exit(0); + } + if(((((( ((140 < a29) && (245 >= a29)) && (a4==1)) && (a25==12)) && (a3==1)) && a23 <= -43 ) && (a8==15))){ + error_7: exit(0); + } + if(((((( a29 <= 140 && (a4==1)) && (a25==11)) && (a3==1)) && ((-43 < a23) && (138 >= a23)) ) && (a8==15))){ + error_21: exit(0); + } + if(((((( ((245 < a29) && (277 >= a29)) && (a4==1)) && (a25==12)) && (a3==1)) && a23 <= -43 ) && (a8==15))){ + error_12: exit(0); + } + if(((((( ((140 < a29) && (245 >= a29)) && (a4==1)) && (a25==9)) && (a3==1)) && ((138 < a23) && (306 >= a23)) ) && (a8==15))){ + error_44: exit(0); + } + if(((((( a29 <= 140 && (a4==1)) && (a25==9)) && (a3==1)) && a23 <= -43 ) && (a8==15))){ + globalError: exit(0); + } + if(((((( ((245 < a29) && (277 >= a29)) && (a4==1)) && (a25==13)) && (a3==1)) && ((-43 < a23) && (138 >= a23)) ) && (a8==15))){ + error_33: exit(0); + } + if(((((( ((245 < a29) && (277 >= a29)) && (a4==1)) && (a25==10)) && (a3==1)) && ((-43 < a23) && (138 >= a23)) ) && (a8==15))){ + error_30: exit(0); + } + if(((((( a29 <= 140 && (a4==1)) && (a25==13)) && (a3==1)) && a23 <= -43 ) && (a8==15))){ + error_3: exit(0); + } + if(((((( ((140 < a29) && (245 >= a29)) && (a4==1)) && (a25==10)) && (a3==1)) && ((-43 < a23) && (138 >= a23)) ) && (a8==15))){ + error_25: exit(0); + } + if(((((( ((140 < a29) && (245 >= a29)) && (a4==1)) && (a25==10)) && (a3==1)) && ((138 < a23) && (306 >= a23)) ) && (a8==15))){ + error_45: exit(0); + } + if(((((( ((245 < a29) && (277 >= a29)) && (a4==1)) && (a25==13)) && (a3==1)) && a23 <= -43 ) && (a8==15))){ + error_13: exit(0); + } + if(((((( 277 < a29 && (a4==1)) && (a25==13)) && (a3==1)) && a23 <= -43 ) && (a8==15))){ + error_18: exit(0); + } + if(((((( ((140 < a29) && (245 >= a29)) && (a4==1)) && (a25==12)) && (a3==1)) && ((138 < a23) && (306 >= a23)) ) && (a8==15))){ + error_47: exit(0); + } + if(((((( ((245 < a29) && (277 >= a29)) && (a4==1)) && (a25==10)) && (a3==1)) && ((138 < a23) && (306 >= a23)) ) && (a8==15))){ + error_50: exit(0); + } + if(((((( 277 < a29 && (a4==1)) && (a25==9)) && (a3==1)) && ((138 < a23) && (306 >= a23)) ) && (a8==15))){ + error_54: exit(0); + } + if(((((( 277 < a29 && (a4==1)) && (a25==12)) && (a3==1)) && a23 <= -43 ) && (a8==15))){ + error_17: exit(0); + } + if(((((( ((140 < a29) && (245 >= a29)) && (a4==1)) && (a25==11)) && (a3==1)) && ((-43 < a23) && (138 >= a23)) ) && (a8==15))){ + error_26: exit(0); + } + if(((((( ((245 < a29) && (277 >= a29)) && (a4==1)) && (a25==12)) && (a3==1)) && ((-43 < a23) && (138 >= a23)) ) && (a8==15))){ + error_32: exit(0); + } + if(((((( 277 < a29 && (a4==1)) && (a25==11)) && (a3==1)) && ((138 < a23) && (306 >= a23)) ) && (a8==15))){ + error_56: exit(0); + } + if(((((( ((140 < a29) && (245 >= a29)) && (a4==1)) && (a25==12)) && (a3==1)) && ((-43 < a23) && (138 >= a23)) ) && (a8==15))){ + error_27: exit(0); + } + if(((((( 277 < a29 && (a4==1)) && (a25==11)) && (a3==1)) && a23 <= -43 ) && (a8==15))){ + error_16: exit(0); + } + if(((((( a29 <= 140 && (a4==1)) && (a25==10)) && (a3==1)) && ((138 < a23) && (306 >= a23)) ) && (a8==15))){ + error_40: exit(0); + } + if(((((( 277 < a29 && (a4==1)) && (a25==10)) && (a3==1)) && ((138 < a23) && (306 >= a23)) ) && (a8==15))){ + error_55: exit(0); + } + if(((((( 277 < a29 && (a4==1)) && (a25==12)) && (a3==1)) && ((138 < a23) && (306 >= a23)) ) && (a8==15))){ + error_57: exit(0); + } + if(((((( ((245 < a29) && (277 >= a29)) && (a4==1)) && (a25==13)) && (a3==1)) && ((138 < a23) && (306 >= a23)) ) && (a8==15))){ + error_53: exit(0); + } + if(((((( ((140 < a29) && (245 >= a29)) && (a4==1)) && (a25==13)) && (a3==1)) && ((-43 < a23) && (138 >= a23)) ) && (a8==15))){ + error_28: exit(0); + } + if(((((( 277 < a29 && (a4==1)) && (a25==12)) && (a3==1)) && ((-43 < a23) && (138 >= a23)) ) && (a8==15))){ + error_37: exit(0); + } + if(((((( ((140 < a29) && (245 >= a29)) && (a4==1)) && (a25==13)) && (a3==1)) && ((138 < a23) && (306 >= a23)) ) && (a8==15))){ + error_48: exit(0); + } + if(((((( ((140 < a29) && (245 >= a29)) && (a4==1)) && (a25==9)) && (a3==1)) && ((-43 < a23) && (138 >= a23)) ) && (a8==15))){ + error_24: exit(0); + } + if(((((( ((245 < a29) && (277 >= a29)) && (a4==1)) && (a25==12)) && (a3==1)) && ((138 < a23) && (306 >= a23)) ) && (a8==15))){ + error_52: exit(0); + } + if(((((( ((140 < a29) && (245 >= a29)) && (a4==1)) && (a25==9)) && (a3==1)) && a23 <= -43 ) && (a8==15))){ + error_4: exit(0); + } + if(((((( a29 <= 140 && (a4==1)) && (a25==12)) && (a3==1)) && a23 <= -43 ) && (a8==15))){ + error_2: exit(0); + } + if(((((( a29 <= 140 && (a4==1)) && (a25==12)) && (a3==1)) && ((-43 < a23) && (138 >= a23)) ) && (a8==15))){ + error_22: exit(0); + } + if(((((( a29 <= 140 && (a4==1)) && (a25==9)) && (a3==1)) && ((-43 < a23) && (138 >= a23)) ) && (a8==15))){ + error_19: exit(0); + } + if(((((( a29 <= 140 && (a4==1)) && (a25==11)) && (a3==1)) && a23 <= -43 ) && (a8==15))){ + error_1: exit(0); + } + if(((((( 277 < a29 && (a4==1)) && (a25==10)) && (a3==1)) && ((-43 < a23) && (138 >= a23)) ) && (a8==15))){ + error_35: exit(0); + } + if(((((( a29 <= 140 && (a4==1)) && (a25==9)) && (a3==1)) && 306 < a23 ) && (a8==15))){ + error_59: exit(0); + } + if(((((( 277 < a29 && (a4==1)) && (a25==13)) && (a3==1)) && ((-43 < a23) && (138 >= a23)) ) && (a8==15))){ + error_38: exit(0); + } + if(((((( ((245 < a29) && (277 >= a29)) && (a4==1)) && (a25==11)) && (a3==1)) && a23 <= -43 ) && (a8==15))){ + error_11: exit(0); + } + if(((((( ((140 < a29) && (245 >= a29)) && (a4==1)) && (a25==11)) && (a3==1)) && ((138 < a23) && (306 >= a23)) ) && (a8==15))){ + error_46: exit(0); + } + if(((((( ((140 < a29) && (245 >= a29)) && (a4==1)) && (a25==11)) && (a3==1)) && a23 <= -43 ) && (a8==15))){ + error_6: exit(0); + } + if(((((( ((140 < a29) && (245 >= a29)) && (a4==1)) && (a25==10)) && (a3==1)) && a23 <= -43 ) && (a8==15))){ + error_5: exit(0); + } + if(((((( a29 <= 140 && (a4==1)) && (a25==13)) && (a3==1)) && ((-43 < a23) && (138 >= a23)) ) && (a8==15))){ + error_23: exit(0); + } + if(((((( ((245 < a29) && (277 >= a29)) && (a4==1)) && (a25==9)) && (a3==1)) && a23 <= -43 ) && (a8==15))){ + error_9: exit(0); + } + + if((( ((140 < a29) && (245 >= a29)) && ((a25==12) && ( a23 <= -43 && ((a8==15) && ((input == 6) && (a3==1)))))) && !(a4==1))){ + a29 = (((((a29 - 289151) % 15)- -275) - 470904) + 470889); + a23 = ((((a23 / 5) - 37070) % 90)- -122); + a4 = 1; + a25 = 9; + + return -1; + } else if((!(a4==1) && (((a3==1) && ((((((a25==13) && ((140 < a29) && (245 >= a29)) ) || ((a25==9) && ((245 < a29) && (277 >= a29)) )) || ( ((245 < a29) && (277 >= a29)) && (a25==10))) && (input == 4)) && a23 <= -43 )) && (a8==15)))){ + a29 = ((((((a29 % 52)- -187) * 9)/ 10) - 397575) + 397600); + a23 = ((((a23 - -296917) * 1) % 299846)- -300152); + a4 = 1; + a25 = 13; + + return 25; + } else if(((a25==11) && (!(a4==1) && (((((input == 2) && (a3==1)) && a23 <= -43 ) && (a8==15)) && ((245 < a29) && (277 >= a29)) )))){ + a23 = (((((a23 - -225688) * 1) * 1) % 299846)- -300152); + a4 = 1; + a25 = 10; + + return 25; + } else if(((( a29 <= 140 && ((a3==1) && (((input == 5) && (a25==13)) && (a4==1)))) && (a8==15)) && 306 < a23 )){ + a29 = ((((a29 + 355924) * 1) % 15)+ 262); + a23 = (((((a23 % 83)+ 162) + -17) / 5) + 170); + a25 = 9; + + return -1; + } else if((((a8==15) && (((((((a4==1) && 277 < a29 ) && (a25==12)) && 306 < a23 ) || ( 306 < a23 && (((a4==1) && 277 < a29 ) && (a25==13)))) || ((( a29 <= 140 && !(a4==1)) && (a25==9)) && a23 <= -43 )) && (input == 6))) && (a3==1))){ + a29 = ((((a29 / 5) - -25349) / 5) + 110879); + a23 = ((((((a23 * 9)/ 10) + 1944) + 57035) % 90)- -48); + a4 = 1; + a25 = 9; + + return -1; + } else if(((((input == 4) && (( a23 <= -43 && ((a25==9) && (!(a4==1) && a29 <= 140 ))) || (((( 277 < a29 && (a4==1)) && (a25==12)) && 306 < a23 ) || ( 306 < a23 && ((a25==13) && ( 277 < a29 && (a4==1))))))) && (a8==15)) && (a3==1))){ + a29 = ((((a29 / 5) % 15)+ 260) + 1); + a23 = (((((a23 / 5) % 90)- -47) - -159208) - 159206); + a4 = 1; + a25 = 11; + + return -1; + } else if((((a3==1) && (!(a4==1) && (( a29 <= 140 && ((input == 1) && ((a25==12) || ((a25==10) || (a25==11))))) && ((-43 < a23) && (138 >= a23)) ))) && (a8==15))){ + a29 = (((((a29 % 52)- -193) / 5) / 5) - -221); + a23 = (((a23 + 566446) / 5) - -123263); + a4 = 1; + a25 = 12; + + return -1; + } else if(((( ((245 < a29) && (277 >= a29)) && (( a23 <= -43 && (!(a4==1) && (input == 1))) && (a25==11))) && (a8==15)) && (a3==1))){ + a23 = ((((a23 % 299846)- -300152) + -441356) - -571000); + a4 = 1; + a25 = 9; + + return 25; + } else if(((((a4==1) && (((input == 1) && (( ((245 < a29) && (277 >= a29)) && (a25==10)) || (((a25==13) && ((140 < a29) && (245 >= a29)) ) || ((a25==9) && ((245 < a29) && (277 >= a29)) )))) && (a8==15))) && 306 < a23 ) && (a3==1))){ + a29 = ((((a29 + 352955) % 15)- -253) + 6); + a25 = 9; + + return 24; + } else if((( 277 < a29 && (((a8==15) && ( a23 <= -43 && ((input == 2) && (a3==1)))) && !(a4==1))) && (a25==13))){ + a29 = (((a29 / 5) + -560839) + -16116); + return -1; + } else if(( a29 <= 140 && ((((a8==15) && ((a3==1) && ((input == 1) && ((a25==12) || (a25==13))))) && !(a4==1)) && a23 <= -43 ))){ + a29 = (((((a29 / 5) * 4) / 5) % 15)- -261); + a23 = ((((((a23 % 299846)- -300152) * 10)/ 9) / 5) - -34608); + a4 = 1; + a25 = 9; + + return 25; + } else if((((a4==1) && ((a8==15) && (((a3==1) && (((a25==9) || (a25==10)) && (input == 5))) && ((140 < a29) && (245 >= a29)) ))) && 306 < a23 )){ + a23 = ((((a23 * -2)/ 10) * 4) * 1); + a25 = 13; + + return -1; + } else if(((a3==1) && (((((input == 5) && (( ((245 < a29) && (277 >= a29)) && (a25==10)) || (( ((140 < a29) && (245 >= a29)) && (a25==13)) || ( ((245 < a29) && (277 >= a29)) && (a25==9))))) && (a8==15)) && !(a4==1)) && a23 <= -43 ))){ + a29 = ((((a29 % 15)- -258) * 1) * 1); + a23 = ((((a23 * 9)/ 10) - -561577) * 1); + a4 = 1; + a25 = 9; + + return 24; + } else if(((a8==15) && ((((!(a4==1) && (((a25==12) || (a25==13)) && (input == 4))) && a23 <= -43 ) && a29 <= 140 ) && (a3==1)))){ + a29 = (((((a29 * 9)/ 10) % 15)- -261) + -1); + a23 = ((((a23 % 299846)+ 300152) + 31462) / 5); + a4 = 1; + a25 = 9; + + return 25; + } else if(((a8==15) && (!(a4==1) && ( a23 <= -43 && ((a3==1) && ( 277 < a29 && (((a25==12) || ((a25==10) || (a25==11))) && (input == 6)))))))){ + a29 = ((((((a29 % 52)- -186) * 5) + -589505) % 52)+ 205); + a25 = 12; + + return 26; + } else if(( 306 < a23 && (((a8==15) && ((a3==1) && ((a4==1) && (((a25==11) || (a25==12)) && (input == 6))))) && ((140 < a29) && (245 >= a29)) ))){ + a29 = ((((a29 + 107715) * 10)/ 9) - -27123); + a23 = ((((a23 % 90)+ -31) - 5) + 32); + a25 = 11; + + return -1; + } else if(((((a8==15) && ( a29 <= 140 && ( a23 <= -43 && ((input == 2) && ((a25==10) || (a25==11)))))) && !(a4==1)) && (a3==1))){ + + a25 = 11; + + return -1; + } else if(((a3==1) && ( ((245 < a29) && (277 >= a29)) && (((a4==1) && ((a8==15) && ((((a25==11) || (a25==12)) || (a25==13)) && (input == 5)))) && 306 < a23 )))){ + a29 = (((a29 / 5) / 5) + -580303); + a23 = (((a23 - 600264) + -12) / 5); + a4 = 0; + a25 = 12; + + return -1; + } else if(((((a8==15) && (((a4==1) && ((input == 2) && ((a25==13) || ((a25==11) || (a25==12))))) && ((245 < a29) && (277 >= a29)) )) && 306 < a23 ) && (a3==1))){ + + a25 = 12; + + return 23; + } else if((( 306 < a23 && ((a8==15) && ((((input == 6) && ((a25==9) || (a25==10))) && ((140 < a29) && (245 >= a29)) ) && (a3==1)))) && (a4==1))){ + a29 = ((((a29 % 15)+ 254) - 8) - -1); + a23 = (((a23 + -292614) - 307487) + -105); + a4 = 0; + a25 = 12; + + return 24; + } else if(((((a8==15) && (((((a25==11) || (a25==12)) && (input == 4)) && 306 < a23 ) && (a3==1))) && (a4==1)) && ((140 < a29) && (245 >= a29)) )){ + a29 = (((a29 * 5) * 5) - -378187); + a25 = 10; + + return 24; + } else if(( a23 <= -43 && ( ((140 < a29) && (245 >= a29)) && (((a8==15) && (((input == 4) && ((a25==11) || ((a25==9) || (a25==10)))) && !(a4==1))) && (a3==1))))){ + a23 = ((((a23 * 9)/ 10) * 1) - -596689); + a4 = 1; + a25 = 11; + + return 26; + } else if((((((((((a25==12) && ((245 < a29) && (277 >= a29)) ) || ((a25==13) && ((245 < a29) && (277 >= a29)) )) || ( 277 < a29 && (a25==9))) && (input == 1)) && a23 <= -43 ) && (a8==15)) && !(a4==1)) && (a3==1))){ + a29 = ((((a29 % 299861)- -278) + 162880) - -51725); + a4 = 1; + a25 = 10; + + return -1; + } else if((!(a4==1) && ( a29 <= 140 && ((((((a25==12) || (a25==13)) && (input == 2)) && a23 <= -43 ) && (a3==1)) && (a8==15))))){ + a29 = (((((a29 * 9)/ 10) / 5) % 52)+ 193); + a23 = (((((a23 % 299846)- -300152) + 67658) * 10)/ 9); + a4 = 1; + a25 = 13; + + return 25; + } else if(((a8==15) && (( 306 < a23 && ((a3==1) && ((input == 4) && (( ((245 < a29) && (277 >= a29)) && (a25==10)) || (( ((140 < a29) && (245 >= a29)) && (a25==13)) || ((a25==9) && ((245 < a29) && (277 >= a29)) )))))) && (a4==1)))){ + a29 = (((((a29 * 5) % 15)+ 256) + 221783) - 221776); + a25 = 9; + + return 25; + } else if(((((input == 3) && (( a23 <= -43 && ((!(a4==1) && a29 <= 140 ) && (a25==9))) || (( 306 < a23 && (( 277 < a29 && (a4==1)) && (a25==12))) || ((((a4==1) && 277 < a29 ) && (a25==13)) && 306 < a23 )))) && (a3==1)) && (a8==15))){ + a29 = (((a29 / 5) + -137957) * 2); + a23 = ((((a23 - 0) / 5) / 5) + -127612); + a4 = 1; + a25 = 10; + + return -1; + } else if(( 306 < a23 && ((a4==1) && (((((((a25==11) || (a25==12)) || (a25==13)) && (input == 3)) && (a8==15)) && (a3==1)) && ((245 < a29) && (277 >= a29)) )))){ + a29 = ((((a29 * 10)/ 8) - -359749) + 211625); + a25 = 9; + + return 21; + } else if(( ((245 < a29) && (277 >= a29)) && (((((!(a4==1) && (input == 6)) && (a3==1)) && (a25==11)) && (a8==15)) && a23 <= -43 ))){ + a29 = (((a29 + -243145) + 695905) / -5); + a23 = (((((a23 % 83)- -225) - 2) * 10)/ 9); + a4 = 1; + a25 = 9; + + return -1; + } else if((( ((-43 < a23) && (138 >= a23)) && (((a8==15) && ((input == 2) && ((( a29 <= 140 && (a25==13)) || ( ((140 < a29) && (245 >= a29)) && (a25==9))) || ((a25==10) && ((140 < a29) && (245 >= a29)) )))) && (a3==1))) && !(a4==1))){ + a29 = ((((((a29 % 52)+ 193) - -1) * 5) % 52)+ 154); + a23 = (((((a23 + -68867) + -415062) + 938623) * -1)/ 10); + a4 = 1; + a25 = 13; + + return 23; + } else if(( a29 <= 140 && ((a8==15) && ((((((a25==10) || (a25==11)) && (input == 3)) && a23 <= -43 ) && (a3==1)) && !(a4==1))))){ + a29 = (((((a29 % 299861)- -300138) - 0) + -82465) - -82467); + a23 = (((((a23 % 299846)+ 300152) - 224877) - 52803) + 360092); + a4 = 1; + a25 = 10; + + return -1; + } else if((((((a8==15) && (((input == 3) && (((a25==10) || (a25==11)) || (a25==12))) && (a3==1))) && a23 <= -43 ) && !(a4==1)) && 277 < a29 )){ + a29 = (((((a29 * 9)/ 10) * 1) % 52)+ 152); + a23 = (((((a23 % 299846)+ 300152) - -144203) + -381637) - -454912); + a4 = 1; + a25 = 11; + + return 21; + } else if(((!(a4==1) && ((a25==9) && ((a8==15) && ((a3==1) && ( ((-43 < a23) && (138 >= a23)) && (input == 1)))))) && a29 <= 140 )){ + if( ((140 < a29) && (245 >= a29)) ){ + a29 = (((((a29 + 0) + 0) + 562933) % 299861)- -300138); + a23 = (((a23 * 5) + 502005) + 15697); + a4 = 1; + a25 = 10; + + } else{ + a29 = ((((a29 % 299861)+ 300138) + 0) + 0); + a23 = (((a23 * 5) + -560195) - 17437); + a25 = 11; + + } return 24; + } else if(((a8==15) && ((( 306 < a23 && (((((a25==11) || (a25==12)) || (a25==13)) && (input == 6)) && ((245 < a29) && (277 >= a29)) )) && (a4==1)) && (a3==1)))){ + a29 = ((((a29 * 12)/ 10) / 5) + 99853); + a23 = ((((a23 / 5) * 4) % 83)- -180); + a25 = 13; + + return -1; + } else if((((((!(a4==1) && ((a8==15) && (input == 2))) && (a3==1)) && ((140 < a29) && (245 >= a29)) ) && (a25==12)) && a23 <= -43 )){ + a29 = (((a29 - 152245) * 3) - 98036); + a25 = 9; + + return 23; + } else if(( a23 <= -43 && (( a29 <= 140 && ((a8==15) && (!(a4==1) && (((a25==12) || (a25==13)) && (input == 3))))) && (a3==1)))){ + a29 = (((((a29 % 15)+ 262) - 1) - 302300) + 302301); + a23 = ((((a23 % 299846)- -300152) / 5) + 400348); + a4 = 1; + a25 = 10; + + return 24; + } else if(((((((input == 6) && ((((a25==13) && a29 <= 140 ) || ( ((140 < a29) && (245 >= a29)) && (a25==9))) || ( ((140 < a29) && (245 >= a29)) && (a25==10)))) && (a8==15)) && (a3==1)) && !(a4==1)) && ((-43 < a23) && (138 >= a23)) )){ + a29 = ((((a29 * 9)/ 10) * 1) - 16027); + a23 = (((((a23 + -40837) + 418328) / 5) * -1)/ 10); + a4 = 1; + a25 = 12; + + return -1; + } else if(((!(a4==1) && (((((a3==1) && (input == 4)) && (a25==11)) && ((245 < a29) && (277 >= a29)) ) && a23 <= -43 )) && (a8==15))){ + a29 = ((((a29 * 10)/ 12) - 30) - -40); + a23 = (((a23 / 5) - -331475) - -221993); + a4 = 1; + a25 = 13; + + return 25; + } else if(((a3==1) && ( ((140 < a29) && (245 >= a29)) && ( a23 <= -43 && ((a8==15) && (!(a4==1) && ((((a25==9) || (a25==10)) || (a25==11)) && (input == 3)))))))){ + a29 = ((((a29 - -42105) * 5) % 15)+ 250); + a23 = ((((a23 * 9)/ 10) - -571253) + 9989); + a4 = 1; + a25 = 11; + + return 24; + } else if(((((!(a4==1) && (((((a25==10) || (a25==11)) || (a25==12)) && (input == 4)) && 277 < a29 )) && a23 <= -43 ) && (a8==15)) && (a3==1))){ + a29 = ((((a29 * 9)/ 10) + -599272) * 1); + a23 = ((((a23 % 90)+ 49) + -2) - 0); + a25 = 13; + + return 24; + } else if(( ((140 < a29) && (245 >= a29)) && ((a8==15) && (((a25==12) && (!(a4==1) && ( a23 <= -43 && (input == 4)))) && (a3==1))))){ + a29 = ((((a29 * 10)/ 5) - -284909) * 2); + a23 = ((((a23 + 248770) % 299846)- -300152) - 0); + a4 = 1; + a25 = 11; + + return 23; + } else if(((a3==1) && ((((((( 277 < a29 && (a4==1)) && (a25==12)) && 306 < a23 ) || ( 306 < a23 && (((a4==1) && 277 < a29 ) && (a25==13)))) || (((a25==9) && (!(a4==1) && a29 <= 140 )) && a23 <= -43 )) && (input == 2)) && (a8==15)))){ + a29 = ((((a29 % 299861)+ 300138) - 0) + 1); + a23 = ((((a23 % 299846)- -300152) + 2) - 0); + a4 = 1; + a25 = 9; + + return 21; + } else if(((((input == 5) && (((((a25==12) && ((a4==1) && 277 < a29 )) && 306 < a23 ) || ((( 277 < a29 && (a4==1)) && (a25==13)) && 306 < a23 )) || ((( a29 <= 140 && !(a4==1)) && (a25==9)) && a23 <= -43 ))) && (a8==15)) && (a3==1))){ + a29 = ((((a29 % 52)+ 192) / 5) - -183); + a23 = (((a23 / 5) - -232517) + 138613); + a4 = 1; + a25 = 13; + + return 25; + } else if(((a25==12) && (((a3==1) && ((((input == 1) && a23 <= -43 ) && ((140 < a29) && (245 >= a29)) ) && !(a4==1))) && (a8==15)))){ + if((a8==17)){ + + } else{ + a29 = ((((a29 - 520725) * 10)/ 9) + -10894); + a23 = (((((a23 + 0) + 435838) * 1) % 299846)- -300152); + a4 = 1; + a25 = 13; + + } return 21; + } else if((((a8==15) && (( ((-43 < a23) && (138 >= a23)) && ((input == 1) && (( ((140 < a29) && (245 >= a29)) && (a25==10)) || (((a25==13) && a29 <= 140 ) || ((a25==9) && ((140 < a29) && (245 >= a29)) ))))) && (a3==1))) && !(a4==1))){ + if((a8==16)){ + a29 = ((((a29 / 5) % 52)- -193) + 1); + a4 = 1; + a25 = 11; + + } else{ + a29 = (((((a29 / 5) + 25722) * 5) % 15)+ 261); + a23 = (((a23 + -482365) + -35629) * 1); + a4 = 1; + a25 = 11; + + } return -1; + } else if(((a3==1) && ((a8==15) && (((((( ((140 < a29) && (245 >= a29)) && (a25==13)) || ((a25==9) && ((245 < a29) && (277 >= a29)) )) || ( ((245 < a29) && (277 >= a29)) && (a25==10))) && (input == 3)) && !(a4==1)) && a23 <= -43 )))){ + a29 = (((a29 / 5) + 220) + -1); + a23 = ((((a23 % 299846)+ 300152) * 1) * 1); + a4 = 1; + a25 = 9; + + return 24; + } else if((( a29 <= 140 && ( ((-43 < a23) && (138 >= a23)) && ((a3==1) && ((a8==15) && (((a25==12) || ((a25==10) || (a25==11))) && (input == 2)))))) && !(a4==1))){ + a29 = ((((a29 % 15)- -260) - 0) + 0); + a23 = (((a23 - -414471) + 29992) - -47819); + a4 = 1; + a25 = 10; + + return -1; + } else if((((a4==1) && ( 306 < a23 && ((((input == 3) && ((a25==9) || (a25==10))) && ((140 < a29) && (245 >= a29)) ) && (a3==1)))) && (a8==15))){ + if( ((138 < a23) && (306 >= a23)) ){ + a29 = (((((a29 % 15)+ 261) * 5) % 15)- -261); + a23 = (((a23 + -579505) * 1) + -20667); + a4 = 0; + a25 = 12; + + } else{ + + a25 = 10; + + } return 21; + } else if(((a4==1) && ((((a3==1) && ( 306 < a23 && (((a25==12) || ((a25==10) || (a25==11))) && (input == 4)))) && a29 <= 140 ) && (a8==15)))){ + a29 = (((((a29 % 52)- -193) * 5) % 52)- -169); + a25 = 12; + + return 26; + } else if((((( ((-43 < a23) && (138 >= a23)) && ((!(a4==1) && (input == 5)) && (a3==1))) && (a25==9)) && a29 <= 140 ) && (a8==15))){ + a23 = (((a23 - 230720) - 160568) / 5); + a4 = 1; + a25 = 10; + + return -1; + } else if(( 306 < a23 && (((a8==15) && ((((input == 1) && ((a25==11) || (a25==12))) && (a4==1)) && (a3==1))) && ((140 < a29) && (245 >= a29)) ))){ + a29 = ((((a29 + 511565) * 10)/ 9) / 5); + a25 = 10; + + return 21; + } else if(((((a8==15) && ( a23 <= -43 && (((input == 1) && ((a25==10) || (a25==11))) && a29 <= 140 ))) && !(a4==1)) && (a3==1))){ + a29 = ((((a29 * 9)/ 10) + 588187) - -3575); + a23 = ((((a23 % 299846)- -300152) * 1) - -64092); + a4 = 1; + a25 = 10; + + return 24; + } else if(((( a23 <= -43 && (!(a4==1) && ((a3==1) && (((a25==11) || ((a25==9) || (a25==10))) && (input == 5))))) && (a8==15)) && ((140 < a29) && (245 >= a29)) )){ + a23 = ((((((a23 * 9)/ 10) / 5) + -446258) * -1)/ 10); + a4 = 1; + a25 = 13; + + return 21; + } else if(((a3==1) && ( ((-43 < a23) && (138 >= a23)) && ((a8==15) && ((((((a25==10) || (a25==11)) || (a25==12)) && (input == 5)) && a29 <= 140 ) && !(a4==1)))))){ + a29 = ((((a29 % 52)- -193) + -1) + 0); + a4 = 1; + a25 = 9; + + return -1; + } else if(( 306 < a23 && (((a3==1) && ( 277 < a29 && (((input == 4) && (((a25==9) || (a25==10)) || (a25==11))) && (a8==15)))) && (a4==1)))){ + + a25 = 11; + + return 26; + } else if((!(a4==1) && ( a23 <= -43 && ((a8==15) && (((((a25==12) || ((a25==10) || (a25==11))) && (input == 1)) && (a3==1)) && 277 < a29 ))))){ + a29 = (((a29 - 0) - 600170) + -6); + a23 = (((((a23 % 90)+ 137) - 81281) + -93071) - -174340); + a25 = 12; + + return 21; + } else if(( 277 < a29 && (((a25==13) && ( a23 <= -43 && (!(a4==1) && ((input == 1) && (a3==1))))) && (a8==15)))){ + a29 = ((((a29 % 15)+ 248) + -175571) - -175577); + return 24; + } else if(((( ((-43 < a23) && (138 >= a23)) && (((a25==9) && ((input == 4) && !(a4==1))) && a29 <= 140 )) && (a3==1)) && (a8==15))){ + a23 = ((((a23 + -79386) * 10)/ 9) - 20806); + a4 = 1; + a25 = 10; + + return 21; + } else if(((a8==15) && ((((a3==1) && (((((a25==10) || (a25==11)) || (a25==12)) && (input == 3)) && (a4==1))) && 306 < a23 ) && a29 <= 140 ))){ + a29 = (((((a29 - 0) % 15)+ 262) + 241270) + -241271); + a25 = 12; + + return 24; + } else if((( ((-43 < a23) && (138 >= a23)) && ((a3==1) && (!(a4==1) && ((input == 4) && (((a25==10) && ((140 < a29) && (245 >= a29)) ) || (((a25==13) && a29 <= 140 ) || ( ((140 < a29) && (245 >= a29)) && (a25==9)))))))) && (a8==15))){ + if((a3==1)){ + a29 = (((((a29 / 5) % 52)+ 192) / 5) - -175); + a23 = ((((a23 / 5) * 5) % 83)- -223); + a4 = 1; + a25 = 13; + + } else{ + a29 = ((((a29 % 300070)- 299929) - 2) - 0); + a25 = 12; + + } return -1; + } else if(((((a8==15) && ((!(a4==1) && (((a25==11) || ((a25==9) || (a25==10))) && (input == 6))) && (a3==1))) && a23 <= -43 ) && ((140 < a29) && (245 >= a29)) )){ + a29 = (((a29 + 500141) + 20116) / 5); + a25 = 9; + + return 24; + } else if(( a29 <= 140 && (((a4==1) && ((a8==15) && (((input == 6) && (((a25==10) || (a25==11)) || (a25==12))) && 306 < a23 ))) && (a3==1)))){ + if((a4==1)){ + a29 = ((((a29 % 15)+ 262) - -1) + -3); + a23 = ((((a23 - 600285) - 8) + 385102) + -384893); + a4 = 0; + a25 = 12; + + } else{ + a29 = ((((((a29 % 52)+ 192) - 0) * 5) % 52)- -166); + a25 = 9; + + } return 24; + } else if(((((((a3==1) && ((input == 5) && ((a25==11) || (a25==12)))) && (a4==1)) && 306 < a23 ) && ((140 < a29) && (245 >= a29)) ) && (a8==15))){ + a29 = (((a29 + -194923) / 5) / 5); + a23 = ((((a23 % 83)- -169) + 501114) - 501118); + a25 = 13; + + return -1; + } else if(((((a4==1) && ( 306 < a23 && ((a8==15) && (((a25==11) || (a25==12)) && (input == 2))))) && ((140 < a29) && (245 >= a29)) ) && (a3==1))){ + a29 = ((((a29 / -5) - 119439) + 125177) * -5); + a23 = (((a23 + 0) - 600293) - 11); + a4 = 0; + a25 = 10; + + return 21; + } else if(((((a8==15) && ( a23 <= -43 && (!(a4==1) && ((a25==11) && (input == 5))))) && (a3==1)) && ((245 < a29) && (277 >= a29)) )){ + a29 = (((((a29 / 5) * 10)/ 3) + -17091) + 17084); + a23 = (((((a23 % 299846)+ 300152) * 1) / 5) + 472915); + a4 = 1; + a25 = 13; + + return 24; + } else if((((((((input == 2) && ((a25==9) || (a25==10))) && (a8==15)) && ((140 < a29) && (245 >= a29)) ) && 306 < a23 ) && (a3==1)) && (a4==1))){ + a29 = (((((a29 % 15)+ 251) - 4) + 70998) - 70986); + a23 = (((a23 + -600145) - -264493) + -264420); + a4 = 0; + a25 = 12; + + return 25; + } else if(((a8==15) && (((( 277 < a29 && ((input == 2) && ((a25==11) || ((a25==9) || (a25==10))))) && (a4==1)) && (a3==1)) && 306 < a23 ))){ + + a25 = 10; + + return 26; + } else if(((((( ((-43 < a23) && (138 >= a23)) && ((input == 3) && ((a25==12) || ((a25==10) || (a25==11))))) && !(a4==1)) && (a8==15)) && a29 <= 140 ) && (a3==1))){ + if( ((-43 < a23) && (138 >= a23)) ){ + + a25 = 9; + + } else{ + a29 = ((((((a29 % 15)- -261) * 1) * 5) % 15)+ 258); + a23 = (((a23 + -383249) + 378537) / 5); + a25 = 11; + + } return 21; + } else if((((!(a4==1) && ((((input == 6) && ((a25==12) || ((a25==10) || (a25==11)))) && (a8==15)) && ((-43 < a23) && (138 >= a23)) )) && (a3==1)) && a29 <= 140 )){ + + a25 = 10; + + return 24; + } else if(((a25==9) && (( a29 <= 140 && ((a3==1) && (!(a4==1) && ( ((-43 < a23) && (138 >= a23)) && (input == 2))))) && (a8==15)))){ + a29 = (((((a29 * 9)/ 10) / 5) * 5) - -549278); + a23 = (((((a23 % 83)- -221) + 0) - 573144) + 573144); + a4 = 1; + a25 = 11; + + return 25; + } else if((!(a4==1) && ( a23 <= -43 && (((a8==15) && (((((a25==12) && ((245 < a29) && (277 >= a29)) ) || ( ((245 < a29) && (277 >= a29)) && (a25==13))) || ((a25==9) && 277 < a29 )) && (input == 3))) && (a3==1))))){ + a29 = ((((a29 % 299861)+ 278) + -585161) + 595133); + a25 = 9; + + return 21; + } else if((((!(a4==1) && ((a3==1) && ((input == 5) && ((( ((245 < a29) && (277 >= a29)) && (a25==12)) || ((a25==13) && ((245 < a29) && (277 >= a29)) )) || ((a25==9) && 277 < a29 ))))) && a23 <= -43 ) && (a8==15))){ + a29 = (((((a29 / 5) % 52)- -147) - 494611) + 494614); + a4 = 1; + a25 = 13; + + return -1; + } else if(( a23 <= -43 && (!(a4==1) && ( ((245 < a29) && (277 >= a29)) && ((a8==15) && ((a25==11) && ((a3==1) && (input == 3)))))))){ + a29 = (((a29 - 50975) - -50903) - -16); + a23 = (((((a23 % 299846)+ 300152) + 161217) * 10)/ 9); + a4 = 1; + a25 = 13; + + return 24; + } else if(((((a8==15) && ( 306 < a23 && ( ((140 < a29) && (245 >= a29)) && ((input == 1) && ((a25==9) || (a25==10)))))) && (a4==1)) && (a3==1))){ + a29 = (((a29 - -245917) - -241779) - -92559); + a23 = ((((a23 - 0) - 0) * -2)/ 10); + a25 = 10; + + return -1; + } else if((!(a4==1) && (((((a3==1) && ((input == 2) && (((a25==9) || (a25==10)) || (a25==11)))) && ((140 < a29) && (245 >= a29)) ) && a23 <= -43 ) && (a8==15)))){ + if( a23 <= -43 ){ + + a25 = 12; + + } else{ + a29 = (((a29 * -5) + -348745) - 116970); + a23 = ((((a23 - -289833) * 1) / 5) + 133441); + a4 = 1; + a25 = 13; + + } return 23; + } else if(((((((( ((245 < a29) && (277 >= a29)) && (a25==10)) || (( ((140 < a29) && (245 >= a29)) && (a25==13)) || ((a25==9) && ((245 < a29) && (277 >= a29)) ))) && (input == 6)) && (a3==1)) && 306 < a23 ) && (a4==1)) && (a8==15))){ + a29 = ((((((a29 % 15)+ 248) + 12) * 5) % 15)- -247); + a23 = ((((a23 % 83)- -151) + 459589) - 459544); + a25 = 11; + + return -1; + } else if(( 306 < a23 && ((a8==15) && ( 277 < a29 && ((a4==1) && ((a3==1) && ((((a25==9) || (a25==10)) || (a25==11)) && (input == 5)))))))){ + a23 = ((((a23 + -600132) - -470437) + -414459) + -56058); + a25 = 9; + + return -1; + } else if(((( 277 < a29 && ((a8==15) && (((input == 6) && a23 <= -43 ) && (a25==13)))) && !(a4==1)) && (a3==1))){ + if((a25==9)){ + a29 = (((((a29 * 9)/ 10) / 5) % 15)+ 257); + a23 = ((((a23 * 9)/ 10) - -541147) - -8866); + a4 = 1; + a25 = 12; + + } else{ + a29 = (((((a29 % 15)- -252) / 5) * 10)/ 2); + a23 = ((((a23 % 83)+ 255) - -326012) + -326023); + a4 = 1; + a25 = 10; + + } return 24; + } else if(((a3==1) && (((!(a4==1) && ((( ((140 < a29) && (245 >= a29)) && (a25==10)) || (( a29 <= 140 && (a25==13)) || ((a25==9) && ((140 < a29) && (245 >= a29)) ))) && (input == 3))) && ((-43 < a23) && (138 >= a23)) ) && (a8==15)))){ + a29 = (((((a29 % 300070)+ -299929) * 1) - -399992) + -399993); + a23 = ((((a23 - -466319) * 1) - 536307) - -562918); + a4 = 1; + a25 = 12; + + return 24; + } else if(((a3==1) && (( 306 < a23 && (((a4==1) && (((a25==12) || ((a25==10) || (a25==11))) && (input == 1))) && a29 <= 140 )) && (a8==15)))){ + a29 = ((((a29 + 161077) + -91920) % 299861)- -300138); + a25 = 9; + + return 26; + } else if((((( a23 <= -43 && ((input == 1) && (( ((245 < a29) && (277 >= a29)) && (a25==10)) || (( ((140 < a29) && (245 >= a29)) && (a25==13)) || ((a25==9) && ((245 < a29) && (277 >= a29)) ))))) && (a3==1)) && !(a4==1)) && (a8==15))){ + a29 = ((((a29 + -499856) % 52)- -211) - 16); + a23 = (((a23 / 5) - 109698) + 347082); + a4 = 1; + a25 = 13; + + return 25; + } else if(((!(a4==1) && (((a8==15) && ( a29 <= 140 && (((a25==10) || (a25==11)) && (input == 5)))) && a23 <= -43 )) && (a3==1))){ + a29 = ((((a29 % 15)- -260) * 1) * 1); + a23 = (((((a23 % 299846)- -300152) - -162376) * 10)/ 9); + a4 = 1; + a25 = 9; + + return 25; + } else if((((((a8==15) && ((a3==1) && ( a23 <= -43 && (input == 5)))) && !(a4==1)) && (a25==13)) && 277 < a29 )){ + if((a8==17)){ + a29 = ((((a29 % 15)- -255) + -332583) - -332576); + a23 = (((((a23 % 90)- -99) + -41) + 369325) + -369311); + a4 = 1; + a25 = 10; + + } else{ + a29 = ((((a29 + -600024) * 1) - -257168) + -257162); + a25 = 10; + + } return 24; + } else if(((a8==15) && ((a3==1) && ( 306 < a23 && ((((((a25==11) || (a25==12)) || (a25==13)) && (input == 1)) && (a4==1)) && ((245 < a29) && (277 >= a29)) ))))){ + + a25 = 11; + + return 26; + } else if((!(a4==1) && (((((((a25==12) || (a25==13)) && (input == 6)) && (a8==15)) && a23 <= -43 ) && (a3==1)) && a29 <= 140 ))){ + a23 = (((((a23 % 83)- -241) * 10)/ 9) - 2); + a4 = 1; + a25 = 9; + + return -1; + } else if(((a3==1) && (( a23 <= -43 && (((input == 6) && (( ((245 < a29) && (277 >= a29)) && (a25==10)) || (((a25==13) && ((140 < a29) && (245 >= a29)) ) || ((a25==9) && ((245 < a29) && (277 >= a29)) )))) && !(a4==1))) && (a8==15)))){ + a29 = ((((a29 / -5) + 241460) / 5) + -586950); + a23 = ((((a23 % 83)+ 273) + 269852) - 269901); + a4 = 1; + a25 = 9; + + return -1; + } else if((((( ((-43 < a23) && (138 >= a23)) && ((!(a4==1) && (input == 6)) && (a25==9))) && a29 <= 140 ) && (a3==1)) && (a8==15))){ + a29 = ((((a29 % 299861)- -300138) + 0) + 0); + a4 = 1; + + return 23; + } else if((( a29 <= 140 && ((a3==1) && ((a8==15) && ((a25==13) && ( 306 < a23 && (input == 1)))))) && (a4==1))){ + a29 = (((((a29 - -23296) + 347282) * 1) % 52)- -192); + a23 = (((a23 + -600218) * 1) - 2); + a4 = 0; + a25 = 12; + + return 21; + } else if(((a3==1) && (((a8==15) && (((( ((245 < a29) && (277 >= a29)) && (a25==10)) || (( ((140 < a29) && (245 >= a29)) && (a25==13)) || ( ((245 < a29) && (277 >= a29)) && (a25==9)))) && (input == 5)) && 306 < a23 )) && (a4==1)))){ + a29 = ((((((a29 % 52)- -170) - 134399) * 4) % 52)- -194); + a25 = 13; + + return 24; + } else if((((((a8==15) && ((input == 4) && (( 277 < a29 && (a25==9)) || (( ((245 < a29) && (277 >= a29)) && (a25==12)) || ( ((245 < a29) && (277 >= a29)) && (a25==13)))))) && !(a4==1)) && a23 <= -43 ) && (a3==1))){ + if((a8==15)){ + a29 = ((((a29 + 0) - 0) % 15)+ 256); + a25 = 12; + + } else{ + a29 = ((((((a29 % 52)- -157) - 13) * 5) % 52)+ 159); + a23 = ((((a23 * 9)/ 10) - -391167) + 156164); + a4 = 1; + a25 = 9; + + } return 24; + } else if(((( ((-43 < a23) && (138 >= a23)) && (!(a4==1) && ((input == 5) && (( ((140 < a29) && (245 >= a29)) && (a25==10)) || (( a29 <= 140 && (a25==13)) || ((a25==9) && ((140 < a29) && (245 >= a29)) )))))) && (a8==15)) && (a3==1))){ + a29 = ((((a29 / 5) % 15)+ 260) + 0); + a23 = (((((a23 + -6217) - -239558) * 2) * -1)/ 10); + a25 = 12; + + return -1; + } else if(( a29 <= 140 && ((((( 306 < a23 && (input == 2)) && (a25==13)) && (a4==1)) && (a3==1)) && (a8==15)))){ + a29 = (((a29 / 5) + 165004) + 41645); + return 23; + } else if(((a8==15) && ((((a3==1) && ((((a25==10) || (a25==11)) && (input == 6)) && a29 <= 140 )) && a23 <= -43 ) && !(a4==1)))){ + a23 = (((((a23 / 5) + -54477) / 5) % 90)- -119); + a4 = 1; + a25 = 10; + + return -1; + } else if(( ((245 < a29) && (277 >= a29)) && (((((a8==15) && (((a25==13) || ((a25==11) || (a25==12))) && (input == 4))) && (a4==1)) && (a3==1)) && 306 < a23 ))){ + a29 = (((((a29 * 12)/ 10) * 10)/ 9) + 97056); + a25 = 10; + + return 21; + } else if((((a3==1) && ((a8==15) && ((((a25==13) && (input == 4)) && (a4==1)) && a29 <= 140 ))) && 306 < a23 )){ + a29 = ((((a29 % 299861)+ 300138) / 5) + 212399); + a25 = 9; + + return 23; + } else if((( 306 < a23 && ((a25==13) && ((((input == 3) && a29 <= 140 ) && (a3==1)) && (a4==1)))) && (a8==15))){ + a29 = (((a29 / 5) + 549120) - -37000); + a25 = 10; + + return 23; + } else if((!(a4==1) && (( 277 < a29 && ((((input == 4) && a23 <= -43 ) && (a8==15)) && (a3==1))) && (a25==13)))){ + a23 = ((((a23 * 9)/ 10) - -544088) + 7197); + a4 = 1; + a25 = 9; + + return 25; + } else if(((a3==1) && (((((( a29 <= 140 && !(a4==1)) && (a25==9)) && a23 <= -43 ) || (( 306 < a23 && (((a4==1) && 277 < a29 ) && (a25==12))) || ( 306 < a23 && (((a4==1) && 277 < a29 ) && (a25==13))))) && (input == 1)) && (a8==15)))){ + a29 = ((((a29 / 5) / 5) % 15)- -260); + a23 = (((((a23 + 0) % 299846)- -300152) - 80832) - -80835); + a4 = 1; + a25 = 11; + + return 26; + } else if(( 277 < a29 && ((a3==1) && ((a8==15) && ((a4==1) && ( 306 < a23 && ((input == 6) && (((a25==9) || (a25==10)) || (a25==11))))))))){ + a29 = (((a29 - 600020) * 1) * 1); + a23 = ((((((a23 % 83)+ 161) * 10)/ 9) * 9)/ 10); + a25 = 12; + + return -1; + } else if(((((( ((-43 < a23) && (138 >= a23)) && ((input == 4) && ((a25==12) || ((a25==10) || (a25==11))))) && (a8==15)) && !(a4==1)) && (a3==1)) && a29 <= 140 )){ + if((a4==1)){ + a29 = (((((a29 - 0) % 52)- -193) + -44781) - -44780); + a23 = ((((a23 * 5) - -64823) - 40453) - 265564); + a25 = 12; + + } else{ + a23 = (((a23 * 5) * 5) - 287786); + a25 = 11; + + } return 23; + } else if(((((( a23 <= -43 && ((input == 5) && ((a25==12) || ((a25==10) || (a25==11))))) && (a3==1)) && !(a4==1)) && 277 < a29 ) && (a8==15))){ + a29 = ((((a29 + 0) + -365392) * 1) - 234748); + a25 = 12; + + return 25; + } else if(((((a8==15) && ((a4==1) && (((( ((140 < a29) && (245 >= a29)) && (a25==13)) || ((a25==9) && ((245 < a29) && (277 >= a29)) )) || ( ((245 < a29) && (277 >= a29)) && (a25==10))) && (input == 2)))) && (a3==1)) && 306 < a23 )){ + a29 = (((((a29 % 52)+ 189) * 5) % 52)- -156); + a25 = 13; + + return 21; + } else if((( a23 <= -43 && ((( ((140 < a29) && (245 >= a29)) && ((input == 1) && (((a25==9) || (a25==10)) || (a25==11)))) && !(a4==1)) && (a8==15))) && (a3==1))){ + a29 = (((((a29 + 110111) + 157516) + -418483) * -1)/ 10); + a23 = (((((a23 % 299846)+ 300152) - -110948) * 10)/ 9); + a4 = 1; + a25 = 9; + + return 26; + } else if(((((a3==1) && ((((input == 2) && ((a25==12) || ((a25==10) || (a25==11)))) && (a4==1)) && (a8==15))) && a29 <= 140 ) && 306 < a23 )){ + + a25 = 13; + + return 23; + } else if((((((a3==1) && (((input == 1) && (((a25==9) || (a25==10)) || (a25==11))) && 277 < a29 )) && (a4==1)) && (a8==15)) && 306 < a23 )){ + + a25 = 11; + + return 24; + } else if((((a3==1) && ( a23 <= -43 && ((a8==15) && ((input == 2) && (((a25==9) && 277 < a29 ) || (( ((245 < a29) && (277 >= a29)) && (a25==12)) || ((a25==13) && ((245 < a29) && (277 >= a29)) ))))))) && !(a4==1))){ + if((a8==16)){ + a29 = ((((a29 % 15)+ 252) - -1) - -2); + a25 = 13; + + } else{ + a29 = (((((a29 + -291973) + -33784) + 320278) % 52)+ 193); + a23 = (((a23 / 5) + 68698) - -233201); + a4 = 1; + a25 = 10; + + } return 25; + } else if((((((a8==15) && ((a4==1) && ((input == 4) && ((a25==9) || (a25==10))))) && 306 < a23 ) && (a3==1)) && ((140 < a29) && (245 >= a29)) )){ + if((a3==1)){ + a29 = (((((a29 / 5) * 5) + 422148) % 15)- -262); + a23 = ((((a23 * -2)/ 10) / 5) + -379592); + a4 = 0; + a25 = 12; + + } else{ + + a25 = 9; + + } return 24; + } else if(((( 277 < a29 && ( a23 <= -43 && (((a25==13) && (input == 3)) && (a3==1)))) && (a8==15)) && !(a4==1))){ + a29 = (((a29 - 599900) - 90) + -278); + a25 = 11; + + return 21; + } else if((((a8==15) && ( a23 <= -43 && (((( ((245 < a29) && (277 >= a29)) && (a25==10)) || (( ((140 < a29) && (245 >= a29)) && (a25==13)) || ( ((245 < a29) && (277 >= a29)) && (a25==9)))) && (input == 2)) && !(a4==1)))) && (a3==1))){ + a29 = ((((a29 % 15)+ 256) + -2) + -6); + a23 = ((((a23 % 299846)- -300152) + 298433) * 1); + a4 = 1; + a25 = 9; + + return 25; + } else if((((a8==15) && ( 277 < a29 && (!(a4==1) && ( a23 <= -43 && ((((a25==10) || (a25==11)) || (a25==12)) && (input == 2)))))) && (a3==1))){ + if( a29 <= 140 ){ + a29 = (((a29 - 600254) + -10) + -13); + a23 = ((((a23 % 299846)+ 300152) * 1) - -232087); + a4 = 1; + a25 = 11; + + } else{ + a29 = (((a29 / 5) / -5) - 29157); + a23 = (((((((a23 % 90)- -134) * 9)/ 10) * 5) % 90)- -49); + a4 = 1; + a25 = 12; + + } return 23; + } else if(((a3==1) && (( ((-43 < a23) && (138 >= a23)) && ((a8==15) && ((a25==9) && (!(a4==1) && (input == 3))))) && a29 <= 140 ))){ + + a25 = 10; + + return -1; + } else if(((a4==1) && ( ((140 < a29) && (245 >= a29)) && ((a3==1) && ( 306 < a23 && (((input == 3) && ((a25==11) || (a25==12))) && (a8==15))))))){ + a29 = (((a29 - -21719) / 5) * 5); + a25 = 10; + + return 26; + } else if((((a4==1) && ((a3==1) && ((a25==13) && ( 306 < a23 && ((input == 6) && (a8==15)))))) && a29 <= 140 )){ + a29 = (((((a29 % 15)- -260) / 5) + -306402) - -306603); + a23 = (((((a23 % 90)- -12) / 5) * 9)/ 10); + a25 = 9; + + return -1; + } else if((((!(a4==1) && (((input == 6) && (((a25==9) && 277 < a29 ) || (( ((245 < a29) && (277 >= a29)) && (a25==12)) || ((a25==13) && ((245 < a29) && (277 >= a29)) )))) && (a3==1))) && a23 <= -43 ) && (a8==15))){ + if((a4==1)){ + a29 = ((((a29 / 5) * 4) / 5) + 430216); + a25 = 9; + + } else{ + a29 = (((((a29 % 52)+ 144) + -3) + -456403) + 456445); + a23 = ((((a23 - 0) % 299846)+ 300152) - -259793); + a4 = 1; + a25 = 9; + + } return 24; + } else if(((a8==15) && (( a23 <= -43 && ( a29 <= 140 && (((input == 5) && ((a25==12) || (a25==13))) && !(a4==1)))) && (a3==1)))){ + a29 = ((((a29 % 15)+ 260) - 0) * 1); + a23 = ((((a23 % 299846)- -300152) + 134725) - -121532); + a4 = 1; + a25 = 9; + + return 24; + } else if(((((((( ((245 < a29) && (277 >= a29)) && (a25==10)) || (((a25==13) && ((140 < a29) && (245 >= a29)) ) || ( ((245 < a29) && (277 >= a29)) && (a25==9)))) && (input == 3)) && (a3==1)) && (a8==15)) && (a4==1)) && 306 < a23 )){ + a29 = (((a29 / 5) - -221) - 1); + a25 = 9; + + return 25; + } else if((((a3==1) && ((((!(a4==1) && (input == 3)) && (a25==12)) && a23 <= -43 ) && ((140 < a29) && (245 >= a29)) )) && (a8==15))){ + a29 = (((a29 - -578317) / 5) - -263649); + a23 = ((((((a23 % 299846)- -300152) * 10)/ 9) / 5) + 377459); + a4 = 1; + a25 = 11; + + return 23; + } else if(( a29 <= 140 && ((a8==15) && ((a3==1) && (( 306 < a23 && (((a25==12) || ((a25==10) || (a25==11))) && (input == 5))) && (a4==1)))))){ + a29 = (((((a29 / 5) * 4) + 211235) % 15)- -260); + a25 = 10; + + return 21; + } else if(((a3==1) && (((a8==15) && ((((input == 4) && ((a25==10) || (a25==11))) && a29 <= 140 ) && a23 <= -43 )) && !(a4==1)))){ + a29 = (((a29 / 5) + 364725) - -148383); + a23 = (((((a23 - 0) - 0) - 0) % 299846)+ 300152); + a4 = 1; + a25 = 10; + + return 21; + } else if((((a3==1) && (( 306 < a23 && (((input == 3) && ((a25==11) || ((a25==9) || (a25==10)))) && (a8==15))) && (a4==1))) && 277 < a29 )){ + + a25 = 9; + + return 21; + } else if(((a25==12) && ( ((140 < a29) && (245 >= a29)) && (((!(a4==1) && ((input == 5) && (a3==1))) && (a8==15)) && a23 <= -43 )))){ + a29 = ((((a29 - -297437) * 2) % 15)- -247); + a23 = ((((a23 % 83)- -242) + 1) + -2); + a4 = 1; + a25 = 9; + + return -1; + } + return -2; + } + +int main() +{ + // default output + int output = -1; + + // main i/o-loop + while(1) + { + // read input + int input; + input = __VERIFIER_nondet_int(); + if ((input != 1) && (input != 2) && (input != 3) && (input != 4) && (input != 5) && (input != 6)) return -2; + + // operate eca engine + output = calculate_output(input); + } +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem12_label00_false-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem12_label00_false-unreach-call.c new file mode 100644 index 000000000..2820753a4 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem12_label00_false-unreach-call.c @@ -0,0 +1,4824 @@ +extern void __VERIFIER_error(void); +extern int __VERIFIER_nondet_int(void); +extern void exit(int); + + // inputs + int inputC = 3; + int inputF = 6; + int inputA = 1; + int inputB = 2; + int inputD = 4; + int inputE = 5; + + + int a17 = -124; + int a5 = 4; + int a24 = 15; + int a2 = 170; + int a7 = 13; + + int calculate_output2(int input); + int calculate_output3(int input); + int calculate_output4(int input); + + int calculate_output(int input) { + if((((((a7==14) && a2 <= 189 ) && ((111 < a17) && (255 >= a17)) ) && (a24==13)) && (a5==3))){ + error_7: exit(0); + } + if((((((a7==12) && a2 <= 189 ) && a17 <= -108 ) && (a24==13)) && (a5==4))){ + error_35: exit(0); + } + if((((((a7==14) && a2 <= 189 ) && ((111 < a17) && (255 >= a17)) ) && (a24==14)) && (a5==4))){ + error_55: exit(0); + } + if((((((a7==14) && a2 <= 189 ) && ((-108 < a17) && (111 >= a17)) ) && (a24==13)) && (a5==4))){ + error_40: exit(0); + } + if((((((a7==13) && a2 <= 189 ) && a17 <= -108 ) && (a24==14)) && (a5==4))){ + error_48: exit(0); + } + if((((((a7==13) && a2 <= 189 ) && ((-108 < a17) && (111 >= a17)) ) && (a24==14)) && (a5==4))){ + error_51: exit(0); + } + if((((((a7==12) && a2 <= 189 ) && 255 < a17 ) && (a24==14)) && (a5==3))){ + error_20: exit(0); + } + if((((((a7==14) && a2 <= 189 ) && a17 <= -108 ) && (a24==13)) && (a5==4))){ + error_37: exit(0); + } + if((((((a7==14) && a2 <= 189 ) && ((111 < a17) && (255 >= a17)) ) && (a24==14)) && (a5==3))){ + error_19: exit(0); + } + if((((((a7==13) && a2 <= 189 ) && a17 <= -108 ) && (a24==13)) && (a5==3))){ + error_0: __VERIFIER_error(); + } + if((((((a7==14) && a2 <= 189 ) && 255 < a17 ) && (a24==15)) && (a5==3))){ + error_34: exit(0); + } + if((((((a7==14) && a2 <= 189 ) && a17 <= -108 ) && (a24==15)) && (a5==3))){ + error_25: exit(0); + } + if((((((a7==12) && a2 <= 189 ) && ((-108 < a17) && (111 >= a17)) ) && (a24==14)) && (a5==4))){ + error_50: exit(0); + } + if((((((a7==13) && a2 <= 189 ) && ((-108 < a17) && (111 >= a17)) ) && (a24==13)) && (a5==3))){ + error_3: exit(0); + } + if((((((a7==14) && a2 <= 189 ) && ((-108 < a17) && (111 >= a17)) ) && (a24==15)) && (a5==3))){ + error_28: exit(0); + } + if((((((a7==13) && a2 <= 189 ) && ((-108 < a17) && (111 >= a17)) ) && (a24==13)) && (a5==4))){ + error_39: exit(0); + } + if((((((a7==13) && a2 <= 189 ) && 255 < a17 ) && (a24==14)) && (a5==3))){ + error_21: exit(0); + } + if((((((a7==13) && a2 <= 189 ) && ((111 < a17) && (255 >= a17)) ) && (a24==13)) && (a5==3))){ + error_6: exit(0); + } + if((((((a7==12) && a2 <= 189 ) && ((-108 < a17) && (111 >= a17)) ) && (a24==13)) && (a5==4))){ + error_38: exit(0); + } + if((((((a7==13) && a2 <= 189 ) && ((111 < a17) && (255 >= a17)) ) && (a24==15)) && (a5==3))){ + error_30: exit(0); + } + if((((((a7==13) && a2 <= 189 ) && ((111 < a17) && (255 >= a17)) ) && (a24==13)) && (a5==4))){ + error_42: exit(0); + } + if((((((a7==14) && a2 <= 189 ) && 255 < a17 ) && (a24==13)) && (a5==3))){ + error_10: exit(0); + } + if((((((a7==14) && a2 <= 189 ) && a17 <= -108 ) && (a24==14)) && (a5==3))){ + error_13: exit(0); + } + if((((((a7==12) && a2 <= 189 ) && 255 < a17 ) && (a24==13)) && (a5==3))){ + error_8: exit(0); + } + if((((((a7==14) && a2 <= 189 ) && ((-108 < a17) && (111 >= a17)) ) && (a24==14)) && (a5==4))){ + error_52: exit(0); + } + if((((((a7==13) && a2 <= 189 ) && ((-108 < a17) && (111 >= a17)) ) && (a24==15)) && (a5==3))){ + error_27: exit(0); + } + if((((((a7==12) && a2 <= 189 ) && ((111 < a17) && (255 >= a17)) ) && (a24==14)) && (a5==4))){ + error_53: exit(0); + } + if((((((a7==13) && a2 <= 189 ) && ((111 < a17) && (255 >= a17)) ) && (a24==14)) && (a5==4))){ + error_54: exit(0); + } + if((((((a7==14) && a2 <= 189 ) && 255 < a17 ) && (a24==14)) && (a5==4))){ + error_58: exit(0); + } + if((((((a7==12) && a2 <= 189 ) && a17 <= -108 ) && (a24==15)) && (a5==3))){ + error_23: exit(0); + } + if((((((a7==12) && a2 <= 189 ) && a17 <= -108 ) && (a24==13)) && (a5==3))){ + globalError: exit(0); + } + if((((((a7==13) && a2 <= 189 ) && 255 < a17 ) && (a24==14)) && (a5==4))){ + error_57: exit(0); + } + if((((((a7==12) && a2 <= 189 ) && a17 <= -108 ) && (a24==14)) && (a5==4))){ + error_47: exit(0); + } + if((((((a7==12) && a2 <= 189 ) && a17 <= -108 ) && (a24==14)) && (a5==3))){ + error_11: exit(0); + } + if((((((a7==12) && a2 <= 189 ) && ((111 < a17) && (255 >= a17)) ) && (a24==14)) && (a5==3))){ + error_17: exit(0); + } + if((((((a7==14) && a2 <= 189 ) && ((111 < a17) && (255 >= a17)) ) && (a24==13)) && (a5==4))){ + error_43: exit(0); + } + if((((((a7==14) && a2 <= 189 ) && a17 <= -108 ) && (a24==14)) && (a5==4))){ + error_49: exit(0); + } + if((((((a7==12) && a2 <= 189 ) && 255 < a17 ) && (a24==15)) && (a5==3))){ + error_32: exit(0); + } + if((((((a7==12) && a2 <= 189 ) && a17 <= -108 ) && (a24==15)) && (a5==4))){ + error_59: exit(0); + } + if((((((a7==12) && a2 <= 189 ) && ((-108 < a17) && (111 >= a17)) ) && (a24==15)) && (a5==3))){ + error_26: exit(0); + } + if((((((a7==13) && a2 <= 189 ) && a17 <= -108 ) && (a24==15)) && (a5==3))){ + error_24: exit(0); + } + if((((((a7==14) && a2 <= 189 ) && a17 <= -108 ) && (a24==13)) && (a5==3))){ + error_1: exit(0); + } + if((((((a7==12) && a2 <= 189 ) && ((-108 < a17) && (111 >= a17)) ) && (a24==14)) && (a5==3))){ + error_14: exit(0); + } + if((((((a7==13) && a2 <= 189 ) && 255 < a17 ) && (a24==15)) && (a5==3))){ + error_33: exit(0); + } + if((((((a7==12) && a2 <= 189 ) && 255 < a17 ) && (a24==13)) && (a5==4))){ + error_44: exit(0); + } + if((((((a7==13) && a2 <= 189 ) && 255 < a17 ) && (a24==13)) && (a5==4))){ + error_45: exit(0); + } + if((((((a7==12) && a2 <= 189 ) && ((111 < a17) && (255 >= a17)) ) && (a24==13)) && (a5==4))){ + error_41: exit(0); + } + if((((((a7==13) && a2 <= 189 ) && ((111 < a17) && (255 >= a17)) ) && (a24==14)) && (a5==3))){ + error_18: exit(0); + } + if((((((a7==13) && a2 <= 189 ) && ((-108 < a17) && (111 >= a17)) ) && (a24==14)) && (a5==3))){ + error_15: exit(0); + } + if((((((a7==12) && a2 <= 189 ) && ((111 < a17) && (255 >= a17)) ) && (a24==15)) && (a5==3))){ + error_29: exit(0); + } + if((((((a7==12) && a2 <= 189 ) && 255 < a17 ) && (a24==14)) && (a5==4))){ + error_56: exit(0); + } + if((((((a7==13) && a2 <= 189 ) && a17 <= -108 ) && (a24==13)) && (a5==4))){ + error_36: exit(0); + } + if((((((a7==13) && a2 <= 189 ) && a17 <= -108 ) && (a24==14)) && (a5==3))){ + error_12: exit(0); + } + if((((((a7==12) && a2 <= 189 ) && ((111 < a17) && (255 >= a17)) ) && (a24==13)) && (a5==3))){ + error_5: exit(0); + } + if((((((a7==14) && a2 <= 189 ) && ((-108 < a17) && (111 >= a17)) ) && (a24==13)) && (a5==3))){ + error_4: exit(0); + } + if((((((a7==14) && a2 <= 189 ) && 255 < a17 ) && (a24==13)) && (a5==4))){ + error_46: exit(0); + } + if((((((a7==12) && a2 <= 189 ) && ((-108 < a17) && (111 >= a17)) ) && (a24==13)) && (a5==3))){ + error_2: exit(0); + } + if((((((a7==14) && a2 <= 189 ) && ((111 < a17) && (255 >= a17)) ) && (a24==15)) && (a5==3))){ + error_31: exit(0); + } + if((((((a7==14) && a2 <= 189 ) && 255 < a17 ) && (a24==14)) && (a5==3))){ + error_22: exit(0); + } + if((((((a7==14) && a2 <= 189 ) && ((-108 < a17) && (111 >= a17)) ) && (a24==14)) && (a5==3))){ + error_16: exit(0); + } + if((((((a7==13) && a2 <= 189 ) && 255 < a17 ) && (a24==13)) && (a5==3))){ + error_9: exit(0); + } + + if(((( ((189 < a2) && (281 >= a2)) && ((input == 4) && (((a7==12) && 255 < a17 ) || (((a7==13) && ((111 < a17) && (255 >= a17)) ) || ( ((111 < a17) && (255 >= a17)) && (a7==14)))))) && (a5==4)) && (a24==14))){ + a17 = (((((a17 % 109)+ -11) - 547674) + -15873) - -563482); + a7 = 12; + + return -1; + } else if(((((a24==13) && (((input == 2) && ((a7==13) || (a7==14))) && (a5==3))) && a17 <= -108 ) && ((189 < a2) && (281 >= a2)) )){ + a2 = (((a2 * -5) - -478038) / -5); + a7 = 12; + + return -1; + } else if((((((((a7==12) && ((111 < a17) && (255 >= a17)) ) || (( ((-108 < a17) && (111 >= a17)) && (a7==13)) || ( ((-108 < a17) && (111 >= a17)) && (a7==14)))) && (input == 1)) && (a24==14)) && ((189 < a2) && (281 >= a2)) ) && (a5==5))){ + a2 = (((a2 - 384978) + -172247) * 1); + a17 = (((a17 * 5) + 542386) * 1); + a7 = 12; + a5 = 7; + + return -1; + } else if(((( ((189 < a2) && (281 >= a2)) && (((( a17 <= -108 && (a7==13)) || ( a17 <= -108 && (a7==14))) || ( ((-108 < a17) && (111 >= a17)) && (a7==12))) && (input == 4))) && (a5==3)) && (a24==14))){ + a2 = ((((a2 + -131864) * 10)/ 9) - 73578); + a17 = ((((a17 - 0) % 299946)+ -300053) * 1); + a7 = 13; + a5 = 4; + + return -1; + } else if(((a5==6) && (((a24==13) && ((input == 6) && ((((a7==13) && ((111 < a17) && (255 >= a17)) ) || ((a7==14) && ((111 < a17) && (255 >= a17)) )) || ( 255 < a17 && (a7==12))))) && a2 <= 189 ))){ + a2 = (((((a2 * 9)/ 10) % 45)+ 236) * 1); + a17 = ((((a17 + -100855) - 172157) / 5) + 357533); + a7 = 13; + a24 = 14; + a5 = 3; + + return 23; + } else if((((a24==13) && ( ((189 < a2) && (281 >= a2)) && (((((a7==13) && ((111 < a17) && (255 >= a17)) ) || ( ((111 < a17) && (255 >= a17)) && (a7==14))) || ( 255 < a17 && (a7==12))) && (input == 3)))) && (a5==6))){ + a17 = ((((a17 / 5) % 109)- -2) - 41); + a7 = 12; + + return -1; + } else if(((a5==4) && ( a2 <= 189 && ((((input == 1) && ((a7==13) || (a7==14))) && a17 <= -108 ) && (a24==15))))){ + + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((a24==15) && ((( ((189 < a2) && (281 >= a2)) && ((input == 1) && (a5==4))) && (a7==13)) && 255 < a17 ))){ + a17 = ((((a17 % 71)+ 119) * 1) + -2); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((a5==4) && ( ((189 < a2) && (281 >= a2)) && ((a24==14) && ((( ((-108 < a17) && (111 >= a17)) && (a7==14)) || ((a7==12) && ((111 < a17) && (255 >= a17)) )) && (input == 4)))))){ + a2 = (((a2 + 448263) + -951842) * 1); + a17 = (((a17 * 5) / 5) + -274764); + a7 = 14; + a24 = 15; + a5 = 5; + + return -1; + } else if(((((a5==5) && ( a2 <= 189 && ((input == 1) && (a24==15)))) && 255 < a17 ) && (a7==14))){ + a2 = (((((a2 % 45)+ 236) * 5) % 45)- -199); + a7 = 13; + a24 = 14; + + return 26; + } else if((( a17 <= -108 && ( ((189 < a2) && (281 >= a2)) && ((((a7==14) || ((a7==12) || (a7==13))) && (input == 1)) && (a24==15)))) && (a5==5))){ + a17 = (((((a17 % 109)+ 16) * 5) % 109)- -2); + a7 = 14; + a24 = 13; + + return -1; + } else if((( a17 <= -108 && (( ((189 < a2) && (281 >= a2)) && (((a7==12) || (a7==13)) && (input == 5))) && (a24==13))) && (a5==6))){ + a17 = (((((a17 + 0) - -350799) - -197891) % 71)- -182); + a7 = 14; + a24 = 14; + a5 = 4; + + return -1; + } else if((((a24==13) && ( a17 <= -108 && (((a5==4) && (input == 2)) && ((189 < a2) && (281 >= a2)) ))) && (a7==12))){ + a17 = ((((((a17 - 0) * 9)/ 10) / 5) % 109)- -93); + a7 = 14; + a24 = 15; + a5 = 3; + + return -1; + } else if((((a5==3) && ( ((-108 < a17) && (111 >= a17)) && ((a24==13) && (((a7==12) || (a7==13)) && (input == 4))))) && ((189 < a2) && (281 >= a2)) )){ + + a7 = 12; + + return 26; + } else if(( ((111 < a17) && (255 >= a17)) && ((a5==4) && ( a2 <= 189 && ((a24==15) && (((a7==13) || (a7==14)) && (input == 5))))))){ + a17 = ((((a17 - 135275) * 10)/ 9) * 3); + a7 = 13; + a5 = 5; + + return 23; + } else if(( a2 <= 189 && ((((( ((-108 < a17) && (111 >= a17)) && (a7==14)) || ( ((111 < a17) && (255 >= a17)) && (a7==12))) && (input == 6)) && (a5==7)) && (a24==13)))){ + a17 = ((((a17 % 109)+ 2) - 1) - -2); + a7 = 12; + a24 = 15; + a5 = 4; + + return -1; + } else if(((((((a24==13) && ( a17 <= -108 && (a7==13))) && (a5==5)) || (((a5==4) && ((a24==15) && ((a7==14) && 255 < a17 ))) || ((a5==5) && ((a24==13) && ((a7==12) && a17 <= -108 ))))) && (input == 1)) && ((189 < a2) && (281 >= a2)) )){ + a17 = (((((a17 - 0) % 109)- -2) + -577173) + 577173); + a7 = 14; + a24 = 13; + a5 = 3; + + return -1; + } else if(((((a24==13) && ((((a7==13) || (a7==14)) && (input == 5)) && ((189 < a2) && (281 >= a2)) )) && (a5==3)) && a17 <= -108 )){ + a2 = (((a2 + -532580) * 1) + -62227); + a7 = 14; + a24 = 14; + a5 = 5; + + return -1; + } else if((((a5==4) && ((((input == 5) && ((a7==12) || (a7==13))) && (a24==14)) && ((189 < a2) && (281 >= a2)) )) && a17 <= -108 )){ + a2 = (((a2 * 5) / -5) / 5); + a17 = (((((a17 % 109)+ 4) * 5) % 109)+ 1); + a7 = 13; + a5 = 7; + + return -1; + } else if(((a24==14) && ((a5==3) && (((( ((-108 < a17) && (111 >= a17)) && (a7==12)) || (( a17 <= -108 && (a7==13)) || ((a7==14) && a17 <= -108 ))) && (input == 2)) && ((189 < a2) && (281 >= a2)) )))){ + a2 = (((a2 - 260500) / 5) + -428690); + a17 = ((((a17 % 71)- -184) * 1) - -1); + a7 = 12; + a24 = 15; + a5 = 4; + + return 23; + } else if(((((a5==4) && (((input == 1) && (a24==15)) && ((-108 < a17) && (111 >= a17)) )) && a2 <= 189 ) && (a7==12))){ + + a24 = 13; + a5 = 5; + + return 23; + } else if(( a2 <= 189 && (((a5==4) && (((input == 2) && (a24==15)) && (a7==12))) && ((-108 < a17) && (111 >= a17)) ))){ + + a7 = 14; + a24 = 13; + a5 = 5; + + return 26; + } else if(((a24==13) && ( ((-108 < a17) && (111 >= a17)) && ((a5==5) && (((input == 2) && a2 <= 189 ) && (a7==14)))))){ + + a7 = 13; + a24 = 15; + a5 = 6; + + return 26; + } else if(( a2 <= 189 && ((((a5==5) && ((input == 3) && (a24==13))) && (a7==14)) && ((111 < a17) && (255 >= a17)) ))){ + a17 = (((a17 * 5) + -131690) - 406420); + a7 = 12; + a5 = 3; + + return -1; + } else if(((((((a5==5) && (input == 1)) && ((189 < a2) && (281 >= a2)) ) && (a24==13)) && (a7==13)) && ((-108 < a17) && (111 >= a17)) )){ + a2 = (((a2 / 5) - 248849) * 2); + a17 = ((((a17 / 5) * 5) / 5) - 458249); + a7 = 12; + a5 = 3; + + return -1; + } else if((( ((189 < a2) && (281 >= a2)) && (((input == 6) && ((( ((-108 < a17) && (111 >= a17)) && (a7==14)) || ((a7==12) && ((111 < a17) && (255 >= a17)) )) || ((a7==13) && ((111 < a17) && (255 >= a17)) ))) && (a24==15))) && (a5==3))){ + a17 = ((((a17 - -260026) + 97662) * 10)/ 9); + a7 = 12; + a24 = 14; + + return -1; + } else if((((a5==7) && ((( ((-108 < a17) && (111 >= a17)) && (input == 1)) && (a7==13)) && a2 <= 189 )) && (a24==14))){ + a17 = ((((a17 % 71)+ 184) - -1) - 1); + a7 = 14; + a24 = 13; + a5 = 5; + + return 21; + } else if(( ((189 < a2) && (281 >= a2)) && ((a24==15) && ((a5==5) && ( ((111 < a17) && (255 >= a17)) && (((a7==14) || ((a7==12) || (a7==13))) && (input == 6))))))){ + a17 = (((a17 - 33426) - 518487) - 34791); + a7 = 13; + a5 = 4; + + return -1; + } else if((( a2 <= 189 && (( 255 < a17 && ((input == 3) && ((a7==13) || (a7==14)))) && (a5==7))) && (a24==15))){ + a17 = ((((a17 - 593212) - -274925) - -137841) + -419796); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((( ((189 < a2) && (281 >= a2)) && ((a24==13) && ( ((-108 < a17) && (111 >= a17)) && ((input == 4) && ((a7==12) || (a7==13)))))) && (a5==6))){ + a2 = (((a2 - 356828) + -57766) * 1); + a7 = 14; + + return 26; + } else if(( a17 <= -108 && (((((input == 5) && ((a7==12) || (a7==13))) && (a5==5)) && ((189 < a2) && (281 >= a2)) ) && (a24==14)))){ + a2 = (((a2 - 367280) / 5) + -340709); + a17 = (((((a17 % 299872)+ 300127) * 1) + -276171) + 347263); + a7 = 12; + a24 = 15; + a5 = 4; + + return -1; + } else if(( a2 <= 189 && ((a5==5) && ((input == 6) && (((a24==14) && ((a7==13) && a17 <= -108 )) || (((a24==13) && ( 255 < a17 && (a7==14))) || ((a24==14) && ((a7==12) && a17 <= -108 )))))))){ + a17 = (((((a17 - 0) % 299946)+ -300053) - -266634) + -266635); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((((a5==6) && ((a24==13) && (((((a7==13) && ((111 < a17) && (255 >= a17)) ) || ((a7==14) && ((111 < a17) && (255 >= a17)) )) || ((a7==12) && 255 < a17 )) && (input == 1)))) && a2 <= 189 )){ + a17 = ((((a17 + -600109) - 2) / 5) - 329060); + a7 = 12; + a5 = 3; + + return -1; + } else if((((a5==7) && ((((((a7==14) && a17 <= -108 ) || ((a7==12) && ((-108 < a17) && (111 >= a17)) )) || ( ((-108 < a17) && (111 >= a17)) && (a7==13))) && (input == 4)) && a2 <= 189 )) && (a24==13))){ + a2 = ((((a2 / 5) - 178027) % 45)- -249); + a17 = ((((a17 / 5) - 189029) * 10)/ 9); + a7 = 13; + a24 = 15; + a5 = 3; + + return 26; + } else if(( a2 <= 189 && ((a24==15) && ((((input == 6) && ((a7==13) || (a7==14))) && (a5==4)) && ((-108 < a17) && (111 >= a17)) )))){ + a17 = ((((a17 - -591336) + -371053) * -1)/ 10); + a7 = 14; + a24 = 14; + a5 = 5; + + return 21; + } else if((( ((189 < a2) && (281 >= a2)) && ((((( a17 <= -108 && (a7==13)) || ( a17 <= -108 && (a7==14))) || ( ((-108 < a17) && (111 >= a17)) && (a7==12))) && (input == 3)) && (a5==3))) && (a24==14))){ + a2 = (((a2 * -5) * 5) - 39358); + a17 = ((((a17 % 109)- -1) + -513301) + 513302); + a7 = 13; + a5 = 5; + + return 26; + } else if((((a24==13) && (((( ((111 < a17) && (255 >= a17)) && (a7==14)) || ( 255 < a17 && (a7==12))) && (input == 2)) && (a5==4))) && ((189 < a2) && (281 >= a2)) )){ + a2 = ((((a2 * -5) + -139298) * 10)/ 9); + a17 = (((a17 - 600110) - 0) * 1); + a7 = 12; + a5 = 3; + + return -1; + } else if(((( ((111 < a17) && (255 >= a17)) && (((a5==5) && (input == 4)) && a2 <= 189 )) && (a7==14)) && (a24==15))){ + a2 = ((((a2 / 5) + -370165) % 45)- -261); + a17 = (((a17 + 573666) * 1) + -329578); + a7 = 12; + a5 = 4; + + return 21; + } else if(((((((a7==12) && (input == 6)) && ((189 < a2) && (281 >= a2)) ) && (a5==4)) && (a24==13)) && a17 <= -108 )){ + + return 21; + } else if(((a24==15) && ((a5==6) && ((((a7==12) && (input == 6)) && a17 <= -108 ) && a2 <= 189 )))){ + a2 = ((((((a2 * 9)/ 10) + -20706) + -31885) % 45)- -245); + a17 = ((((a17 % 109)- -26) / 5) * 5); + a5 = 3; + + return 23; + } else if((( ((111 < a17) && (255 >= a17)) && ((a24==15) && ((a5==6) && ((a7==12) && (input == 6))))) && a2 <= 189 )){ + a2 = ((((a2 - 0) + 15546) % 45)+ 235); + a17 = (((a17 * 5) - -401693) - -144036); + a5 = 3; + + return 23; + } else if((((((a24==14) && ((input == 4) && ((a7==12) || (a7==13)))) && a17 <= -108 ) && ((189 < a2) && (281 >= a2)) ) && (a5==5))){ + a17 = ((((((a17 % 71)- -223) * 10)/ 9) * 9)/ 10); + a7 = 14; + a24 = 13; + a5 = 4; + + return -1; + } else if(((a24==13) && (( ((111 < a17) && (255 >= a17)) && (((input == 6) && ((a7==12) || (a7==13))) && (a5==4))) && ((189 < a2) && (281 >= a2)) ))){ + a2 = (((a2 - 188462) * 3) + -6); + a7 = 14; + a24 = 15; + a5 = 7; + + return -1; + } else if((((a24==15) && ( a2 <= 189 && ((((a7==12) || (a7==13)) && (input == 6)) && (a5==5)))) && 255 < a17 )){ + a17 = (((a17 + -66404) - -20679) + -554407); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((((a7==12) && ((a24==15) && ((a5==6) && ((input == 2) && a2 <= 189 )))) && a17 <= -108 )){ + a2 = (((((a2 % 45)+ 235) * 1) - -275959) + -275957); + a17 = (((((a17 % 71)+ 208) / 5) * 10)/ 2); + a7 = 13; + a24 = 13; + a5 = 3; + + return 23; + } else if(((a5==6) && ((((a7==12) && ((input == 3) && (a24==13))) && a2 <= 189 ) && a17 <= -108 ))){ + a2 = ((((a2 / 5) + 158559) % 45)+ 204); + a17 = (((((a17 % 109)+ 75) - 24) + 175099) - 175127); + a24 = 15; + a5 = 5; + + return 23; + } else if(( a2 <= 189 && ( ((111 < a17) && (255 >= a17)) && ((((a24==15) && (input == 6)) && (a5==4)) && (a7==12))))){ + a17 = (((a17 + -497569) + 497379) - -33); + a7 = 14; + a24 = 14; + a5 = 5; + + return 26; + } else if((((a5==6) && (((input == 2) && (( 255 < a17 && (a7==12)) || (( ((111 < a17) && (255 >= a17)) && (a7==13)) || ((a7==14) && ((111 < a17) && (255 >= a17)) )))) && (a24==13))) && ((189 < a2) && (281 >= a2)) )){ + a2 = ((((a2 / -5) * 10)/ 9) + -424739); + a17 = (((a17 + -600109) * 1) + -3); + a7 = 12; + a5 = 3; + + return -1; + } else if((((a24==15) && ((a5==4) && ((((a7==12) || (a7==13)) && (input == 6)) && a2 <= 189 ))) && 255 < a17 )){ + + a7 = 14; + a5 = 5; + + return 26; + } else if((((( ((189 < a2) && (281 >= a2)) && ((input == 6) && (a5==4))) && (a24==15)) && ((-108 < a17) && (111 >= a17)) ) && (a7==13))){ + a17 = (((a17 - 534822) - -388608) * 4); + a7 = 14; + a24 = 14; + + return -1; + } else if(( ((-108 < a17) && (111 >= a17)) && (((a24==13) && ((a5==4) && (((a7==13) || (a7==14)) && (input == 5)))) && ((189 < a2) && (281 >= a2)) ))){ + + a7 = 14; + a24 = 14; + a5 = 3; + + return -1; + } else if(( a17 <= -108 && ((a24==14) && (( a2 <= 189 && ((input == 3) && ((a7==13) || (a7==14)))) && (a5==6))))){ + a2 = ((((a2 / 5) * 4) % 45)+ 236); + a17 = ((((a17 - -556050) % 109)- -1) - 0); + a7 = 12; + a5 = 3; + + return 21; + } else if(( a2 <= 189 && (((a5==4) && ( 255 < a17 && (((a7==12) || (a7==13)) && (input == 1)))) && (a24==15)))){ + a17 = ((((a17 + -600240) / 5) * 10)/ 4); + a7 = 14; + a24 = 13; + a5 = 6; + + return 23; + } else if(((a5==7) && (((a24==14) && ((input == 2) && (( ((-108 < a17) && (111 >= a17)) && (a7==12)) || (( a17 <= -108 && (a7==13)) || ( a17 <= -108 && (a7==14)))))) && a2 <= 189 ))){ + a17 = ((((a17 % 299946)+ -300053) * 1) * 1); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((a24==14) && (((a7==13) && ( ((189 < a2) && (281 >= a2)) && ((input == 2) && ((-108 < a17) && (111 >= a17)) ))) && (a5==4)))){ + a2 = (((a2 / 5) / -5) * 5); + a7 = 14; + a24 = 13; + + return -1; + } else if(((((a5==5) && (((((a7==14) && a17 <= -108 ) || ((a7==12) && ((-108 < a17) && (111 >= a17)) )) || ((a7==13) && ((-108 < a17) && (111 >= a17)) )) && (input == 6))) && (a24==13)) && a2 <= 189 )){ + a17 = (((((a17 / 5) + 383422) + -411251) % 71)- -233); + a7 = 14; + a24 = 14; + a5 = 6; + + return 21; + } else if(( ((-108 < a17) && (111 >= a17)) && ((a7==14) && ((a5==5) && (((a24==13) && (input == 6)) && a2 <= 189 ))))){ + a17 = (((a17 * 5) - 61428) + -534582); + a7 = 13; + a24 = 15; + a5 = 6; + + return 21; + } else if((( ((-108 < a17) && (111 >= a17)) && ((((input == 3) && ((a7==13) || (a7==14))) && (a5==6)) && (a24==15))) && a2 <= 189 )){ + a2 = (((((a2 + 39352) / 5) / 5) % 45)+ 234); + a7 = 12; + a24 = 14; + a5 = 3; + + return 21; + } else if(( ((189 < a2) && (281 >= a2)) && (((a24==14) && ((a7==13) && ((a5==3) && (input == 5)))) && ((111 < a17) && (255 >= a17)) ))){ + a2 = (((a2 - 43077) / 5) / 5); + a17 = (((a17 / 5) / 5) - -99709); + a7 = 12; + a24 = 13; + + return -1; + } else if(( a2 <= 189 && ((a24==14) && ( ((-108 < a17) && (111 >= a17)) && (((input == 2) && ((a7==14) || ((a7==12) || (a7==13)))) && (a5==6)))))){ + a2 = (((((a2 % 45)- -235) - -2) - 444254) - -444251); + a7 = 13; + a5 = 3; + + return 26; + } else if(((a5==5) && (((((((a7==12) || (a7==13)) || (a7==14)) && (input == 2)) && a17 <= -108 ) && ((189 < a2) && (281 >= a2)) ) && (a24==15)))){ + a2 = (((a2 + -159174) - 203606) + -130058); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(( a2 <= 189 && (( ((-108 < a17) && (111 >= a17)) && ((a24==14) && ((input == 3) && ((a7==14) || ((a7==12) || (a7==13)))))) && (a5==5)))){ + a17 = (((a17 + -547450) / 5) + -82633); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((((((input == 5) && ((( ((111 < a17) && (255 >= a17)) && (a7==13)) || ( ((111 < a17) && (255 >= a17)) && (a7==14))) || ( 255 < a17 && (a7==12)))) && (a24==14)) && (a5==5)) && ((189 < a2) && (281 >= a2)) )){ + a2 = (((a2 + -395244) - -867612) + -1020920); + a17 = (((((a17 % 299872)- -256) * 1) * 10)/ 9); + a7 = 12; + a24 = 15; + a5 = 7; + + return -1; + } else if(((a24==13) && ((((((a7==14) && ((111 < a17) && (255 >= a17)) ) || ((a7==12) && 255 < a17 )) && (input == 5)) && (a5==4)) && ((189 < a2) && (281 >= a2)) ))){ + a2 = ((((a2 - 325121) * 10)/ 9) * 1); + a17 = (((((a17 % 71)+ 160) / 5) + -586476) - -586646); + a7 = 14; + a24 = 15; + + return 21; + } else if((((((a24==14) && (((a7==13) || (a7==14)) && (input == 4))) && ((189 < a2) && (281 >= a2)) ) && (a5==4)) && 255 < a17 )){ + a2 = (((a2 - -513398) * 1) * -1); + a17 = (((a17 + -11058) * 1) + -589131); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((a5==6) && (((a24==13) && ((input == 2) && (( ((111 < a17) && (255 >= a17)) && (a7==12)) || (( ((-108 < a17) && (111 >= a17)) && (a7==13)) || ( ((-108 < a17) && (111 >= a17)) && (a7==14)))))) && a2 <= 189 ))){ + a17 = (((a17 / 5) - -11377) - 448490); + a7 = 12; + a5 = 3; + + return -1; + } else if((((a5==5) && ( ((-108 < a17) && (111 >= a17)) && (((a7==14) && (input == 5)) && (a24==13)))) && ((189 < a2) && (281 >= a2)) )){ + a2 = ((((a2 / -5) * 10)/ 9) - 571457); + a17 = ((((a17 - -227661) + 18143) * 10)/ 9); + a7 = 12; + a24 = 15; + a5 = 7; + + return -1; + } else if(((a5==4) && ((((((a7==12) && 255 < a17 ) || (( ((111 < a17) && (255 >= a17)) && (a7==13)) || ((a7==14) && ((111 < a17) && (255 >= a17)) ))) && (input == 3)) && (a24==14)) && ((189 < a2) && (281 >= a2)) ))){ + a17 = (((((a17 % 109)+ 3) + -187035) + 26490) + 160528); + a7 = 13; + + return -1; + } else if(((a7==14) && ((a5==5) && ((( ((-108 < a17) && (111 >= a17)) && (input == 2)) && (a24==13)) && ((189 < a2) && (281 >= a2)) )))){ + a2 = (((a2 * -5) + -437978) + 281140); + a17 = ((((a17 * 5) / 5) / 5) - 83944); + a7 = 12; + a5 = 3; + + return -1; + } else if((( ((189 < a2) && (281 >= a2)) && ((((input == 1) && (a5==6)) && (a24==13)) && (a7==13))) && 255 < a17 )){ + a17 = (((a17 + -491213) - 108914) + -47); + a7 = 14; + a24 = 14; + a5 = 5; + + return -1; + } else if(((a5==6) && ( ((-108 < a17) && (111 >= a17)) && ( ((189 < a2) && (281 >= a2)) && ((((a7==12) || (a7==13)) && (input == 2)) && (a24==13)))))){ + a2 = (((a2 + 391304) * -1) / 5); + a17 = (((a17 - 532893) - 26035) + -34319); + a7 = 12; + a5 = 3; + + return -1; + } else if(((((a5==4) && ((((a7==13) || (a7==14)) && (input == 5)) && a2 <= 189 )) && ((-108 < a17) && (111 >= a17)) ) && (a24==15))){ + a17 = (((((a17 * 5) % 71)- -183) + -26829) + 26828); + a7 = 13; + a24 = 13; + a5 = 5; + + return 26; + } else if(( ((-108 < a17) && (111 >= a17)) && (((((a24==13) && (input == 4)) && (a5==5)) && (a7==14)) && ((189 < a2) && (281 >= a2)) ))){ + a2 = (((a2 * -5) * 5) - 149618); + a17 = (((a17 / 5) * 5) - 544978); + a7 = 13; + a24 = 14; + a5 = 7; + + return -1; + } else if((( a2 <= 189 && ((input == 4) && (((a24==13) && ( 255 < a17 && (a7==14))) || ((a24==14) && ( a17 <= -108 && (a7==12)))))) && (a5==7))){ + a17 = ((((a17 / 5) - -3819) - 117000) - 285915); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((a5==5) && ((a24==13) && ( a2 <= 189 && ((a7==14) && ( ((-108 < a17) && (111 >= a17)) && (input == 5))))))){ + a17 = ((((a17 - 51813) - -610607) * -1)/ 10); + a24 = 15; + a5 = 6; + + return 23; + } else if(((((a24==14) && ((input == 2) && ((( ((111 < a17) && (255 >= a17)) && (a7==13)) || ((a7==14) && ((111 < a17) && (255 >= a17)) )) || ((a7==12) && 255 < a17 )))) && (a5==4)) && ((189 < a2) && (281 >= a2)) )){ + a2 = (((a2 * -5) + -132328) + -282019); + a17 = (((a17 + -600110) * 1) - 2); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((( a17 <= -108 && ((a5==4) && ( a2 <= 189 && ((input == 6) && ((a7==13) || (a7==14)))))) && (a24==15))){ + a17 = ((((((a17 % 109)- -74) * 5) * 5) % 109)- -2); + a7 = 14; + + return 21; + } else if((((a5==3) && ( ((189 < a2) && (281 >= a2)) && (((((a7==13) && ((111 < a17) && (255 >= a17)) ) || ( ((111 < a17) && (255 >= a17)) && (a7==14))) || ((a7==12) && 255 < a17 )) && (input == 2)))) && (a24==13))){ + a2 = ((((a2 / -5) + 8939) * 5) - 171471); + a17 = ((((a17 + -514608) + 103914) % 109)+ 2); + a7 = 14; + a5 = 7; + + return -1; + } else if(( 255 < a17 && ((a5==3) && ((((((a7==12) || (a7==13)) || (a7==14)) && (input == 6)) && ((189 < a2) && (281 >= a2)) ) && (a24==15))))){ + + a7 = 13; + a24 = 13; + + return -1; + } else if(((((((a24==13) && ((a7==13) && a17 <= -108 )) && (a5==5)) || (((( 255 < a17 && (a7==14)) && (a24==15)) && (a5==4)) || ((( a17 <= -108 && (a7==12)) && (a24==13)) && (a5==5)))) && (input == 2)) && a2 <= 189 )){ + a17 = (((((a17 + 0) - 0) / 5) % 71)- -184); + a7 = 13; + a24 = 13; + a5 = 6; + + return 26; + } else if(( a17 <= -108 && ((a24==15) && ( a2 <= 189 && ((((a7==13) || (a7==14)) && (input == 3)) && (a5==4)))))){ + a17 = ((((a17 % 299872)+ 300127) + 133154) / 5); + a7 = 12; + + return 21; + } else if(( a2 <= 189 && ((a24==14) && ((a5==6) && ( ((111 < a17) && (255 >= a17)) && ((((a7==12) || (a7==13)) || (a7==14)) && (input == 4))))))){ + a2 = (((((a2 % 45)- -234) * 1) + 447091) + -447090); + a7 = 13; + a5 = 3; + + return 23; + } else if((( 255 < a17 && (((a24==13) && (((a7==14) || ((a7==12) || (a7==13))) && (input == 3))) && (a5==5))) && ((189 < a2) && (281 >= a2)) )){ + a2 = (((a2 + -391458) - 38043) * 1); + a17 = ((((((a17 * 9)/ 10) - 302989) / 5) % 71)+ 184); + a7 = 14; + a24 = 14; + a5 = 7; + + return -1; + } else if((((a24==15) && ((((input == 4) && (a5==5)) && a17 <= -108 ) && (a7==14))) && a2 <= 189 )){ + a2 = (((((a2 % 45)- -234) * 5) % 45)+ 227); + a17 = ((((((a17 * 9)/ 10) * 1) + -14728) % 109)- -22); + a24 = 14; + a5 = 4; + + return 23; + } else if((((a5==3) && (((( 255 < a17 && (a7==14)) && (a24==14)) || ((a24==15) && ( a17 <= -108 && (a7==12)))) && (input == 6))) && ((189 < a2) && (281 >= a2)) )){ + a17 = ((((a17 - 0) % 109)- -1) - 0); + a7 = 12; + a24 = 14; + + return -1; + } else if((((a5==7) && ((a24==15) && (((input == 6) && 255 < a17 ) && (a7==12)))) && a2 <= 189 )){ + a17 = ((((a17 + -312975) + -287141) / 5) + -19782); + a24 = 14; + a5 = 5; + + return -1; + } else if(((a5==4) && ((a24==15) && ((((input == 5) && (((a7==12) || (a7==13)) || (a7==14))) && ((189 < a2) && (281 >= a2)) ) && a17 <= -108 )))){ + + a7 = 14; + + return -1; + } else if((( ((189 < a2) && (281 >= a2)) && ((((( ((111 < a17) && (255 >= a17)) && (a7==14)) || ((a7==12) && 255 < a17 )) || ((a7==13) && 255 < a17 )) && (input == 3)) && (a5==3))) && (a24==14))){ + a2 = (((a2 * 5) * 5) / -5); + a17 = (((a17 + 0) - 600109) - 1); + a7 = 12; + a24 = 13; + + return -1; + } else if(( ((189 < a2) && (281 >= a2)) && (((input == 5) && ((( a17 <= -108 && (a7==12)) && (a24==14)) || ((((a7==13) && 255 < a17 ) && (a24==13)) || ((a24==13) && ( 255 < a17 && (a7==14)))))) && (a5==3)))){ + a2 = ((((a2 - 68838) - -367491) + 74473) * -1); + a17 = (((((a17 + 0) / 5) / 5) % 71)- -184); + a7 = 12; + a24 = 15; + a5 = 4; + + return 23; + } else if(((( a2 <= 189 && (((( a17 <= -108 && (a7==13)) || ((a7==14) && a17 <= -108 )) || ((a7==12) && ((-108 < a17) && (111 >= a17)) )) && (input == 5))) && (a24==14)) && (a5==7))){ + a17 = ((((a17 % 299946)- 300053) * 1) - 1); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((( ((111 < a17) && (255 >= a17)) && (((a7==13) && ((input == 2) && (a5==3))) && (a24==14))) && ((189 < a2) && (281 >= a2)) )){ + + a7 = 14; + a24 = 13; + + return -1; + } else if((((a24==13) && (((((a7==13) || (a7==14)) && (input == 5)) && ((189 < a2) && (281 >= a2)) ) && (a5==4))) && 255 < a17 )){ + a2 = (((a2 - 410733) / 5) / 5); + a17 = ((((a17 % 71)+ 113) * 1) + 14); + a7 = 13; + a24 = 15; + + return -1; + } else if(((a5==3) && (((((input == 2) && (a7==12)) && ((189 < a2) && (281 >= a2)) ) && (a24==13)) && a17 <= -108 ))){ + a2 = ((((a2 - 291109) - 296476) + 724390) + -687165); + return -1; + } else if(( a17 <= -108 && ((((a24==15) && ((a7==12) && (input == 1))) && a2 <= 189 ) && (a5==6)))){ + a2 = (((((a2 * 9)/ 10) - -368757) % 45)- -235); + a17 = ((((((a17 % 299872)- -300127) * 10)/ 9) * 10)/ 9); + a7 = 13; + a24 = 14; + a5 = 3; + + return 23; + } else if(((a24==13) && ((a5==6) && ((((((a7==13) && a17 <= -108 ) || ( a17 <= -108 && (a7==14))) || ( ((-108 < a17) && (111 >= a17)) && (a7==12))) && (input == 6)) && a2 <= 189 )))){ + a2 = ((((((a2 - 0) % 45)+ 235) / 5) * 51)/ 10); + a17 = ((((a17 / 5) / 5) / 5) - 297755); + a7 = 12; + + return 23; + } else if(( ((189 < a2) && (281 >= a2)) && (((a24==14) && (((((a7==14) && ((111 < a17) && (255 >= a17)) ) || ((a7==12) && 255 < a17 )) || ( 255 < a17 && (a7==13))) && (input == 5))) && (a5==3)))){ + a17 = (((((a17 - 157643) / 5) * 5) % 71)- -182); + a7 = 14; + + return 21; + } else if(((a5==3) && ((((input == 3) && ((((a7==13) && a17 <= -108 ) || ( a17 <= -108 && (a7==14))) || ((a7==12) && ((-108 < a17) && (111 >= a17)) ))) && (a24==15)) && ((189 < a2) && (281 >= a2)) ))){ + a2 = (((a2 * -5) * 5) * 5); + a17 = ((((a17 % 299946)+ -300053) * 1) - 1); + a7 = 12; + a24 = 13; + + return -1; + } else if(((a24==15) && (( a2 <= 189 && (((a5==6) && (input == 4)) && a17 <= -108 )) && (a7==12)))){ + a2 = ((((a2 % 45)+ 235) - 1) - 0); + a17 = ((((((a17 * 9)/ 10) % 109)- -104) + 237666) - 237686); + a5 = 3; + + return 21; + } else if((((((( a17 <= -108 && (a7==13)) && (a24==14)) || ((((a7==14) && 255 < a17 ) && (a24==13)) || (( a17 <= -108 && (a7==12)) && (a24==14)))) && (input == 3)) && (a5==5)) && a2 <= 189 )){ + a17 = ((((a17 % 299872)- -300127) - 0) + 1); + a7 = 12; + a24 = 15; + a5 = 7; + + return 23; + } else if(((( a2 <= 189 && (((a24==13) && (input == 2)) && (a5==5))) && (a7==14)) && ((111 < a17) && (255 >= a17)) )){ + a17 = ((((a17 + -462656) * 10)/ 9) + 160772); + a7 = 12; + a5 = 3; + + return -1; + } else if(((((((input == 4) && ((a7==12) || (a7==13))) && a17 <= -108 ) && ((189 < a2) && (281 >= a2)) ) && (a24==13)) && (a5==6))){ + + a7 = 12; + a24 = 15; + a5 = 5; + + return -1; + } else if(( a2 <= 189 && (((a24==15) && ((a5==7) && (((a7==14) || ((a7==12) || (a7==13))) && (input == 6)))) && ((111 < a17) && (255 >= a17)) ))){ + a17 = ((((a17 * 5) - 15195) % 109)+ 56); + a7 = 14; + a24 = 14; + + return -1; + } else if((((((input == 4) && ((( ((111 < a17) && (255 >= a17)) && (a7==13)) || ( ((111 < a17) && (255 >= a17)) && (a7==14))) || ( 255 < a17 && (a7==12)))) && (a24==13)) && (a5==6)) && ((189 < a2) && (281 >= a2)) )){ + a17 = (((((a17 * 9)/ 10) + -528924) % 109)+ 1); + a7 = 14; + a5 = 3; + + return -1; + } else if((((a5==7) && ((input == 2) && ((((a7==14) && 255 < a17 ) && (a24==13)) || (((a7==12) && a17 <= -108 ) && (a24==14))))) && a2 <= 189 )){ + a17 = (((((a17 % 299946)+ -300053) + 96027) - 5279) - 90748); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((( ((189 < a2) && (281 >= a2)) && ((((input == 1) && ((a7==12) || (a7==13))) && (a5==5)) && (a24==14))) && a17 <= -108 )){ + a2 = ((((a2 - 167702) / 5) - -475488) * -1); + a17 = (((((a17 % 109)+ 25) - -194163) + 403579) - 597709); + a7 = 13; + a5 = 7; + + return -1; + } else if(((a7==12) && (((a5==6) && (( a2 <= 189 && (input == 4)) && a17 <= -108 )) && (a24==13)))){ + a2 = (((((a2 - 0) * 9)/ 10) % 45)- -234); + a24 = 15; + a5 = 5; + + return 23; + } else if(( ((189 < a2) && (281 >= a2)) && ((((((a7==14) && a17 <= -108 ) || ( ((-108 < a17) && (111 >= a17)) && (a7==12))) && (input == 1)) && (a24==14)) && (a5==5)))){ + a2 = (((a2 * 5) * 5) - 477470); + a17 = ((((a17 % 299946)+ -300053) + 309977) - 309978); + a7 = 12; + a5 = 7; + + return -1; + } else if(((a5==6) && ((a24==13) && ( ((189 < a2) && (281 >= a2)) && ((( ((-108 < a17) && (111 >= a17)) && (a7==14)) || ((a7==12) && ((111 < a17) && (255 >= a17)) )) && (input == 5)))))){ + a2 = (((a2 / -5) - 543395) - 31512); + a17 = (((a17 - 374709) - 89040) - 22731); + a7 = 12; + a5 = 3; + + return -1; + } else if((( a2 <= 189 && (((( a17 <= -108 && (a7==12)) && (a24==14)) || (((a24==13) && ( 255 < a17 && (a7==13))) || ((a24==13) && ( 255 < a17 && (a7==14))))) && (input == 6))) && (a5==6))){ + a2 = ((((a2 % 45)- -236) - 2) * 1); + a17 = ((((((a17 * 9)/ 10) % 299872)+ 300127) - 202607) - -202608); + a7 = 13; + a24 = 15; + a5 = 3; + + return 23; + } else if(( 255 < a17 && ((((a24==13) && (((a7==13) || (a7==14)) && (input == 4))) && (a5==4)) && ((189 < a2) && (281 >= a2)) ))){ + + a7 = 13; + + return -1; + } else if(((a24==13) && ((( ((189 < a2) && (281 >= a2)) && ((input == 3) && ((a7==14) || ((a7==12) || (a7==13))))) && ((111 < a17) && (255 >= a17)) ) && (a5==5)))){ + a2 = (((a2 * -5) + -99498) * 5); + a17 = (((a17 + 560485) + 34614) * 1); + a7 = 13; + a5 = 7; + + return -1; + } else if(((a24==14) && (((((((a7==14) && ((111 < a17) && (255 >= a17)) ) || ( 255 < a17 && (a7==12))) || ((a7==13) && 255 < a17 )) && (input == 4)) && (a5==3)) && ((189 < a2) && (281 >= a2)) ))){ + a2 = (((a2 / -5) + -562394) - 36545); + a17 = ((((a17 - 600109) - 2) + 90959) + -90958); + a7 = 12; + a24 = 13; + + return -1; + } else if(( a2 <= 189 && (((((((a7==12) || (a7==13)) || (a7==14)) && (input == 4)) && (a24==15)) && ((111 < a17) && (255 >= a17)) ) && (a5==7)))){ + + a7 = 14; + a24 = 13; + + return -1; + } else if(( a2 <= 189 && ((((a5==5) && ((((a7==12) || (a7==13)) || (a7==14)) && (input == 5))) && ((-108 < a17) && (111 >= a17)) ) && (a24==14)))){ + a2 = ((((a2 - -285304) + -146058) % 45)- -236); + a17 = ((((a17 / 5) - 378389) - 189972) + 981500); + a7 = 12; + a24 = 13; + a5 = 3; + + return 23; + } else if((((((input == 3) && ((((a7==13) && ((-108 < a17) && (111 >= a17)) ) || ((a7==14) && ((-108 < a17) && (111 >= a17)) )) || ( ((111 < a17) && (255 >= a17)) && (a7==12)))) && a2 <= 189 ) && (a5==6)) && (a24==13))){ + a2 = ((((a2 + 0) % 45)+ 235) + 1); + a17 = (((a17 * 5) - -515114) - 13294); + a7 = 13; + + return 26; + } else if(( a2 <= 189 && (( a17 <= -108 && ((a24==15) && ((input == 2) && ((a7==12) || (a7==13))))) && (a5==5)))){ + + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((a7==12) && ((a24==15) && ((a5==4) && ( ((111 < a17) && (255 >= a17)) && ( a2 <= 189 && (input == 5))))))){ + a17 = ((((a17 * 10)/ -9) + -170917) * 3); + a24 = 13; + a5 = 3; + + return -1; + } else if(((((a24==15) && ( 255 < a17 && ((input == 4) && a2 <= 189 ))) && (a7==12)) && (a5==7))){ + a17 = ((((a17 % 71)+ 179) - 53) - -56); + a7 = 13; + a24 = 13; + + return -1; + } else if(((a24==15) && ( ((-108 < a17) && (111 >= a17)) && ((a5==5) && (((input == 1) && ((a7==13) || (a7==14))) && ((189 < a2) && (281 >= a2)) ))))){ + a2 = ((((a2 + -164688) * 10)/ 9) + -309761); + a17 = (((a17 * 5) + -186431) * 3); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((a5==5) && ( ((189 < a2) && (281 >= a2)) && (((( ((111 < a17) && (255 >= a17)) && (a7==12)) || (( ((-108 < a17) && (111 >= a17)) && (a7==13)) || ((a7==14) && ((-108 < a17) && (111 >= a17)) ))) && (input == 6)) && (a24==14))))){ + a17 = ((((a17 - -337472) * 10)/ 9) + 150308); + a7 = 12; + a5 = 4; + + return -1; + } else if(((( ((189 < a2) && (281 >= a2)) && (((( a17 <= -108 && (a7==13)) || ( a17 <= -108 && (a7==14))) || ((a7==12) && ((-108 < a17) && (111 >= a17)) )) && (input == 5))) && (a24==14)) && (a5==3))){ + a17 = (((((a17 / 5) + 139884) - -176184) * -1)/ 10); + a7 = 13; + + return 23; + } else if((((a5==6) && (( 255 < a17 && ((input == 2) && ((a7==12) || (a7==13)))) && (a24==15))) && a2 <= 189 )){ + a17 = (((((a17 % 109)+ 1) + 493840) - 420141) + -73780); + a7 = 12; + a24 = 14; + a5 = 4; + + return -1; + } else if(((((((input == 6) && ((189 < a2) && (281 >= a2)) ) && 255 < a17 ) && (a24==15)) && (a5==4)) && (a7==13))){ + a2 = (((a2 * -5) + 126647) * -4); + a24 = 13; + a5 = 7; + + return -1; + } else if(((((((input == 1) && ((a7==12) || (a7==13))) && (a24==15)) && (a5==5)) && a2 <= 189 ) && 255 < a17 )){ + a2 = (((((a2 % 45)- -235) - 1) / 5) - -212); + a17 = ((((((a17 % 71)+ 132) - 10) * 5) % 71)+ 135); + a7 = 14; + a24 = 13; + + return 23; + } else if(((a7==13) && ( ((-108 < a17) && (111 >= a17)) && ((((a24==14) && (input == 2)) && a2 <= 189 ) && (a5==7))))){ + a17 = ((((a17 - 453039) * 10)/ 9) * 1); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((a5==3) && ( ((-108 < a17) && (111 >= a17)) && ((((a24==15) && (input == 5)) && (a7==13)) && ((189 < a2) && (281 >= a2)) )))){ + a2 = (((a2 * 5) / 5) / -5); + a17 = (((a17 - 279125) - 101385) * 1); + a7 = 12; + a24 = 13; + + return -1; + } else if((((a5==6) && (((input == 5) && (((a7==12) && ((111 < a17) && (255 >= a17)) ) || (( ((-108 < a17) && (111 >= a17)) && (a7==13)) || ( ((-108 < a17) && (111 >= a17)) && (a7==14))))) && (a24==13))) && a2 <= 189 )){ + a2 = (((((a2 - 0) + 194300) * 1) % 45)+ 235); + a17 = ((((a17 - 508865) * 10)/ 9) + -4999); + a7 = 14; + + return 23; + } else if(((( a2 <= 189 && ((((a7==14) && ((111 < a17) && (255 >= a17)) ) || ( 255 < a17 && (a7==12))) && (input == 6))) && (a24==14)) && (a5==7))){ + a17 = ((((a17 * 9)/ 10) + 13957) - -35746); + a7 = 12; + + return -1; + } else if((((( ((189 < a2) && (281 >= a2)) && (((a7==14) || ((a7==12) || (a7==13))) && (input == 5))) && (a24==13)) && (a5==5)) && ((111 < a17) && (255 >= a17)) )){ + a17 = ((((a17 - 216) - 479578) - 45364) + 524988); + a7 = 12; + a24 = 15; + a5 = 4; + + return -1; + } else if(((( a2 <= 189 && (((input == 6) && ((a7==12) || (a7==13))) && (a5==5))) && (a24==15)) && a17 <= -108 )){ + a2 = (((((a2 % 45)- -235) + -1) - 553229) - -553229); + a17 = (((a17 / 5) - -167109) / 5); + a7 = 12; + a24 = 13; + a5 = 4; + + return 26; + } else if(( a2 <= 189 && ((input == 1) && ((((a5==4) && (( 255 < a17 && (a7==14)) && (a24==15))) || ((a5==5) && (((a7==12) && a17 <= -108 ) && (a24==13)))) || ((a5==5) && (( a17 <= -108 && (a7==13)) && (a24==13))))))){ + a17 = ((((a17 - 0) % 299946)- 300053) + -1); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((((((a24==15) && ((input == 5) && (a5==4))) && ((189 < a2) && (281 >= a2)) ) && 255 < a17 ) && (a7==13))){ + a2 = (((a2 / 5) / 5) - 136738); + a24 = 14; + a5 = 7; + + return -1; + } else if((( ((-108 < a17) && (111 >= a17)) && ( ((189 < a2) && (281 >= a2)) && (((input == 6) && ((a7==13) || (a7==14))) && (a24==15)))) && (a5==5))){ + a17 = (((a17 / 5) + 572999) + 22824); + a7 = 13; + a24 = 14; + + return -1; + } else if((((a5==5) && ((a24==14) && ((input == 4) && ((( ((111 < a17) && (255 >= a17)) && (a7==13)) || ( ((111 < a17) && (255 >= a17)) && (a7==14))) || ((a7==12) && 255 < a17 ))))) && ((189 < a2) && (281 >= a2)) )){ + a17 = ((((a17 % 109)+ 2) / 5) + -88); + a7 = 13; + a24 = 15; + a5 = 4; + + return -1; + } else if(( a2 <= 189 && (((((input == 6) && ((a7==13) || (a7==14))) && (a5==7)) && 255 < a17 ) && (a24==15)))){ + a17 = ((((a17 % 109)- 61) / 5) / 5); + a7 = 13; + a5 = 4; + + return -1; + } else if(((a24==13) && ((a5==7) && (((( ((-108 < a17) && (111 >= a17)) && (a7==13)) || (((a7==14) && a17 <= -108 ) || ((a7==12) && ((-108 < a17) && (111 >= a17)) ))) && (input == 5)) && a2 <= 189 )))){ + a2 = ((((((a2 % 45)+ 234) * 1) / 5) * 51)/ 10); + a17 = ((((a17 / 5) * 4) % 109)- -2); + a7 = 12; + a24 = 14; + a5 = 3; + + return 23; + } else if(((( a2 <= 189 && ((input == 3) && ((( a17 <= -108 && (a7==14)) || ((a7==12) && ((-108 < a17) && (111 >= a17)) )) || ((a7==13) && ((-108 < a17) && (111 >= a17)) )))) && (a5==7)) && (a24==13))){ + a17 = ((((a17 % 299946)+ -300053) * 1) - 1); + a7 = 12; + a5 = 3; + + return -1; + } else if((((a5==6) && ( a2 <= 189 && ((input == 1) && (( ((-108 < a17) && (111 >= a17)) && (a7==12)) || (( a17 <= -108 && (a7==13)) || ( a17 <= -108 && (a7==14))))))) && (a24==13))){ + a2 = (((((a2 + 0) % 45)+ 234) - 472412) + 472412); + a17 = ((((a17 + 0) % 71)- -182) + 3); + a7 = 12; + a24 = 15; + a5 = 5; + + return 23; + } else if(((((a24==15) && (((input == 2) && ((a7==12) || (a7==13))) && (a5==5))) && ((-108 < a17) && (111 >= a17)) ) && a2 <= 189 )){ + a17 = (((((a17 / 5) + -238456) - -765474) * -1)/ 10); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((((a24==15) && ((((input == 4) && (((a7==12) || (a7==13)) || (a7==14))) && ((189 < a2) && (281 >= a2)) ) && (a5==5))) && ((111 < a17) && (255 >= a17)) )){ + a2 = (((a2 * 5) * 5) + -325620); + a17 = (((a17 + 366270) + 10197) + 134633); + a7 = 14; + a24 = 13; + a5 = 7; + + return -1; + } else if(((a24==13) && ((a5==4) && (((((a7==13) || (a7==14)) && (input == 1)) && ((189 < a2) && (281 >= a2)) ) && ((-108 < a17) && (111 >= a17)) )))){ + + a7 = 14; + a24 = 15; + a5 = 3; + + return -1; + } else if((((a5==6) && ((a24==13) && ( ((189 < a2) && (281 >= a2)) && ((a7==14) && (input == 1))))) && a17 <= -108 )){ + a17 = ((((((a17 % 71)- -247) + 5) / 5) * 32)/ 10); + a7 = 13; + a24 = 15; + a5 = 5; + + return -1; + } else if(((((a5==5) && ((input == 4) && ((((a7==13) && ((-108 < a17) && (111 >= a17)) ) || ( ((-108 < a17) && (111 >= a17)) && (a7==14))) || ((a7==12) && ((111 < a17) && (255 >= a17)) )))) && ((189 < a2) && (281 >= a2)) ) && (a24==14))){ + a2 = (((a2 * 5) - 562071) * 1); + a17 = (((((a17 - -128476) + 315707) + -905468) * -1)/ 10); + a7 = 13; + a24 = 15; + a5 = 4; + + return -1; + } else if(( ((-108 < a17) && (111 >= a17)) && ((((((a7==13) || (a7==14)) && (input == 5)) && a2 <= 189 ) && (a5==7)) && (a24==15)))){ + a17 = (((((a17 - 271153) + 418092) / 5) * -1)/ 10); + a7 = 14; + + return -1; + } else if(((a24==13) && ((((((a7==12) || (a7==13)) && (input == 4)) && 255 < a17 ) && a2 <= 189 ) && (a5==5)))){ + a17 = (((((a17 % 109)+ 3) * 5) % 109)- -2); + a7 = 14; + a24 = 15; + a5 = 7; + + return 23; + } else if((((a5==4) && ((a24==14) && ((input == 3) && (( a17 <= -108 && (a7==14)) || ((a7==12) && ((-108 < a17) && (111 >= a17)) ))))) && ((189 < a2) && (281 >= a2)) )){ + a2 = (((a2 * 5) - 516770) - 71238); + a17 = ((((a17 - 0) % 299872)+ 300127) + 1); + a7 = 12; + a5 = 7; + + return -1; + } else if((( 255 < a17 && (((a24==15) && ((input == 2) && (((a7==12) || (a7==13)) || (a7==14)))) && (a5==3))) && ((189 < a2) && (281 >= a2)) )){ + a2 = (((a2 - 507108) + -40186) * 1); + a17 = ((((a17 % 71)- -168) + 373224) + -373250); + a7 = 14; + a24 = 14; + + return -1; + } else if(((((a7==14) && (((input == 3) && (a24==15)) && a2 <= 189 )) && 255 < a17 ) && (a5==5))){ + a2 = (((((a2 % 45)- -236) / 5) / 5) + 268); + a7 = 12; + a24 = 14; + + return 21; + } else if(((a5==5) && ( a2 <= 189 && ((((((a7==14) && ((-108 < a17) && (111 >= a17)) ) || ((a7==12) && ((111 < a17) && (255 >= a17)) )) || ( ((111 < a17) && (255 >= a17)) && (a7==13))) && (input == 1)) && (a24==15))))){ + a17 = ((((a17 - 99808) / 5) * 10)/ 9); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((a5==3) && (((((((a7==14) && ((-108 < a17) && (111 >= a17)) ) || ((a7==12) && ((111 < a17) && (255 >= a17)) )) || ((a7==13) && ((111 < a17) && (255 >= a17)) )) && (input == 1)) && ((189 < a2) && (281 >= a2)) ) && (a24==15)))){ + a2 = (((a2 - -222045) / 5) + -435548); + a17 = (((((a17 * 5) % 71)- -183) + 531003) + -531001); + a7 = 14; + a24 = 14; + a5 = 5; + + return -1; + } else if(((a24==14) && ( ((189 < a2) && (281 >= a2)) && (((input == 3) && (( a17 <= -108 && (a7==14)) || ((a7==12) && ((-108 < a17) && (111 >= a17)) ))) && (a5==5))))){ + a2 = (((a2 - 537051) + -19713) - 17151); + a17 = (((((a17 % 299872)+ 300127) + -161234) - 361454) + 522690); + a7 = 13; + a24 = 15; + a5 = 7; + + return -1; + } else if((( ((111 < a17) && (255 >= a17)) && ( a2 <= 189 && ((((a7==13) || (a7==14)) && (input == 4)) && (a5==6)))) && (a24==15))){ + a17 = (((a17 - 438310) / 5) + -185271); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((((a24==13) && ((a5==4) && ((((a7==14) && ((111 < a17) && (255 >= a17)) ) || ((a7==12) && 255 < a17 )) && (input == 6)))) && ((189 < a2) && (281 >= a2)) )){ + a2 = (((a2 - 252975) * 2) - -454453); + a17 = (((((((a17 * 9)/ 10) % 71)+ 176) / 5) * 39)/ 10); + a7 = 13; + a24 = 15; + + return 21; + } else if(( 255 < a17 && ((( ((189 < a2) && (281 >= a2)) && ((a7==13) && (input == 5))) && (a24==13)) && (a5==6)))){ + + a7 = 14; + a24 = 15; + a5 = 4; + + return -1; + } else if((( ((189 < a2) && (281 >= a2)) && ((a24==14) && (((input == 3) && ((a7==12) || (a7==13))) && a17 <= -108 ))) && (a5==5))){ + a17 = ((((((a17 * 9)/ 10) * 1) * 1) % 109)- -107); + a7 = 14; + a5 = 4; + + return -1; + } else if(((a5==5) && ( a2 <= 189 && ((a24==13) && ((input == 4) && ((((a7==14) && a17 <= -108 ) || ((a7==12) && ((-108 < a17) && (111 >= a17)) )) || ((a7==13) && ((-108 < a17) && (111 >= a17)) ))))))){ + a17 = ((((a17 + 0) % 299946)- 300053) + -1); + a7 = 12; + a5 = 3; + + return -1; + } else if(( a2 <= 189 && ((a24==14) && ( ((111 < a17) && (255 >= a17)) && ((a5==6) && ((input == 6) && ((a7==14) || ((a7==12) || (a7==13))))))))){ + a17 = ((((a17 - -144076) * 10)/ -9) / 5); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(( ((189 < a2) && (281 >= a2)) && (( a17 <= -108 && ((((a7==13) || (a7==14)) && (input == 6)) && (a24==13))) && (a5==3)))){ + a2 = (((a2 - 324660) + 36683) * 2); + a7 = 14; + a24 = 15; + a5 = 7; + + return -1; + } else if(( a17 <= -108 && ( ((189 < a2) && (281 >= a2)) && (((a7==14) && ((a24==13) && (input == 2))) && (a5==6))))){ + a2 = (((a2 - -379518) + 60031) + -652869); + a7 = 12; + a5 = 3; + + return -1; + } else if((((a5==4) && (((( ((111 < a17) && (255 >= a17)) && (a7==14)) || ((a7==12) && 255 < a17 )) && (input == 3)) && ((189 < a2) && (281 >= a2)) )) && (a24==15))){ + a17 = (((a17 - 0) + -600109) - 1); + a7 = 14; + a24 = 14; + + return -1; + } else if((((((a24==15) && (((a7==12) || (a7==13)) && (input == 4))) && 255 < a17 ) && a2 <= 189 ) && (a5==5))){ + a2 = (((((a2 % 45)- -235) - -264986) / 5) - 52838); + a17 = (((((a17 % 109)+ 3) + -92) - -39346) - 39285); + a7 = 14; + a24 = 13; + + return 23; + } else if(( ((189 < a2) && (281 >= a2)) && ( ((-108 < a17) && (111 >= a17)) && (((a5==4) && ((input == 2) && ((a7==13) || (a7==14)))) && (a24==13))))){ + a17 = ((((a17 - 8964) * 10)/ 9) / 5); + a7 = 13; + + return -1; + } else if(( ((189 < a2) && (281 >= a2)) && ((a5==5) && ((a24==15) && (((input == 1) && ((a7==14) || ((a7==12) || (a7==13)))) && 255 < a17 ))))){ + a17 = (((((a17 + -204208) + -294222) / 5) % 109)- -2); + a7 = 14; + a5 = 4; + + return -1; + } else if(((a24==15) && (( a2 <= 189 && ((input == 1) && ((((a7==13) && a17 <= -108 ) || ( a17 <= -108 && (a7==14))) || ( ((-108 < a17) && (111 >= a17)) && (a7==12))))) && (a5==7)))){ + a17 = ((((a17 + 445460) + -108723) % 109)+ 2); + a7 = 14; + a5 = 4; + + return -1; + } else if(((a5==6) && ( a17 <= -108 && ( ((189 < a2) && (281 >= a2)) && ((a24==13) && ((a7==14) && (input == 6))))))){ + a17 = ((((((a17 * 9)/ 10) + -8929) / 5) % 109)- -99); + a5 = 5; + + return -1; + } else if(( ((111 < a17) && (255 >= a17)) && (((((((a7==12) || (a7==13)) || (a7==14)) && (input == 6)) && ((189 < a2) && (281 >= a2)) ) && (a5==5)) && (a24==13)))){ + + a7 = 12; + + return -1; + } else if(((a24==13) && ((a5==3) && (((((a7==14) && ((-108 < a17) && (111 >= a17)) ) || ((a7==12) && ((111 < a17) && (255 >= a17)) )) && (input == 6)) && ((189 < a2) && (281 >= a2)) )))){ + a2 = ((((a2 * 5) - -456899) * 1) * -1); + a17 = ((((a17 % 109)+ 2) - -1) + -2); + a7 = 14; + a24 = 15; + a5 = 7; + + return -1; + } else if(((a5==5) && ( a2 <= 189 && ( ((-108 < a17) && (111 >= a17)) && ((((a7==12) || (a7==13)) && (input == 6)) && (a24==15)))))){ + a17 = (((((a17 - 533399) + 268098) + 539288) * -1)/ 10); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((a5==5) && ((( ((189 < a2) && (281 >= a2)) && ((a24==13) && (input == 3))) && ((-108 < a17) && (111 >= a17)) ) && (a7==13)))){ + a2 = ((((a2 + 15012) - -575888) * 1) * -1); + a17 = ((((a17 - -31776) - -471905) / 5) - 154264); + a7 = 14; + a24 = 14; + a5 = 7; + + return -1; + } else if(( ((189 < a2) && (281 >= a2)) && (((a5==4) && ((( ((111 < a17) && (255 >= a17)) && (a7==14)) || ( 255 < a17 && (a7==12))) && (input == 6))) && (a24==15)))){ + a17 = ((((a17 - 600111) + 328854) * 1) + -328853); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((((a5==7) && (((input == 4) && (((a7==14) && ((111 < a17) && (255 >= a17)) ) || ( 255 < a17 && (a7==12)))) && a2 <= 189 )) && (a24==14))){ + a17 = ((((a17 % 71)- -117) + 189902) - 189835); + a7 = 13; + + return -1; + } else if(((a24==13) && ( ((189 < a2) && (281 >= a2)) && (((a5==5) && ((input == 6) && ((a7==14) || ((a7==12) || (a7==13))))) && 255 < a17 )))){ + a2 = ((((a2 - 330313) * 10)/ 9) - 15295); + a17 = (((((a17 / 5) - 422861) + 205502) % 109)- -66); + a7 = 13; + a24 = 15; + a5 = 7; + + return -1; + } else if(( ((189 < a2) && (281 >= a2)) && ((a24==13) && (( ((-108 < a17) && (111 >= a17)) && ((input == 4) && ((a7==13) || (a7==14)))) && (a5==4))))){ + a17 = (((a17 + -505795) * 1) * 1); + a7 = 14; + a24 = 15; + a5 = 3; + + return -1; + } else if((( a2 <= 189 && (( 255 < a17 && (((a7==14) || ((a7==12) || (a7==13))) && (input == 2))) && (a5==6))) && (a24==14))){ + a17 = (((a17 - 600255) + -1) - 0); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((((a24==14) && (((input == 4) && (a7==13)) && ((-108 < a17) && (111 >= a17)) )) && (a5==4)) && ((189 < a2) && (281 >= a2)) )){ + a2 = (((a2 - 574876) / 5) - 126841); + a17 = ((((a17 % 71)- -182) - 0) - 0); + a24 = 13; + a5 = 7; + + return -1; + } else if(((a5==3) && ( ((189 < a2) && (281 >= a2)) && ((((( ((-108 < a17) && (111 >= a17)) && (a7==13)) || ((a7==14) && ((-108 < a17) && (111 >= a17)) )) || ((a7==12) && ((111 < a17) && (255 >= a17)) )) && (input == 1)) && (a24==14))))){ + a2 = (((a2 / -5) - -106688) - 700155); + a17 = ((((a17 - -444995) * 1) % 71)- -142); + a7 = 12; + a24 = 15; + a5 = 4; + + return 23; + } else if((( a2 <= 189 && ( 255 < a17 && ((a24==15) && ((input == 3) && (a7==12))))) && (a5==7))){ + a17 = ((((a17 + -443894) / 5) / 5) + -460355); + a24 = 13; + a5 = 3; + + return -1; + } else if((((a5==5) && ( ((111 < a17) && (255 >= a17)) && (((input == 5) && (a24==13)) && (a7==12)))) && a2 <= 189 )){ + a17 = ((((a17 + -406871) - 29414) + 509500) - 209883); + a7 = 13; + a5 = 7; + + return 23; + } else if(((a5==5) && ( ((111 < a17) && (255 >= a17)) && ((((((a7==12) || (a7==13)) || (a7==14)) && (input == 1)) && (a24==13)) && ((189 < a2) && (281 >= a2)) )))){ + a17 = ((((a17 + -386404) - -386194) - -24721) - 24655); + a7 = 13; + a24 = 15; + a5 = 4; + + return -1; + } else if(( a2 <= 189 && ((((a5==4) && (((a7==13) || (a7==14)) && (input == 4))) && ((-108 < a17) && (111 >= a17)) ) && (a24==15)))){ + a17 = ((((a17 % 71)+ 184) - -1) - 1); + a7 = 14; + a24 = 13; + a5 = 5; + + return 21; + } else if(( ((189 < a2) && (281 >= a2)) && ((((a5==5) && ((a24==13) && ( a17 <= -108 && (a7==13)))) || (((( 255 < a17 && (a7==14)) && (a24==15)) && (a5==4)) || ((a5==5) && (((a7==12) && a17 <= -108 ) && (a24==13))))) && (input == 3)))){ + a2 = (((a2 * 5) + -496396) - -43586); + a17 = ((((a17 + 0) % 71)- -183) - -1); + a7 = 14; + a24 = 15; + a5 = 4; + + return -1; + } else if((((((( ((-108 < a17) && (111 >= a17)) && (a7==14)) || ((a7==12) && ((111 < a17) && (255 >= a17)) )) && (input == 1)) && ((189 < a2) && (281 >= a2)) ) && (a5==6)) && (a24==13))){ + a17 = (((((a17 % 71)- -184) - 1) + -591569) + 591570); + a7 = 14; + a5 = 4; + + return -1; + } else if((((((input == 1) && ((((a7==14) && ((-108 < a17) && (111 >= a17)) ) || ((a7==12) && ((111 < a17) && (255 >= a17)) )) || ( ((111 < a17) && (255 >= a17)) && (a7==13)))) && (a24==14)) && (a5==7)) && a2 <= 189 )){ + a17 = ((((a17 / 5) - -456210) - 346519) + -109681); + a7 = 13; + + return -1; + } else if(((a7==13) && ((a24==15) && (((a5==6) && ((input == 2) && a17 <= -108 )) && a2 <= 189 )))){ + a17 = (((((a17 % 71)- -191) + 37) + 557078) + -557055); + a7 = 12; + a24 = 13; + a5 = 7; + + return 26; + } else if(((a5==7) && (((a24==14) && ((input == 5) && (((a7==14) && ((111 < a17) && (255 >= a17)) ) || ( 255 < a17 && (a7==12))))) && a2 <= 189 ))){ + a17 = (((((a17 + -437926) * 1) / 5) % 71)+ 182); + a7 = 14; + + return 26; + } else if(((a7==13) && ((a24==13) && ((((input == 3) && ((111 < a17) && (255 >= a17)) ) && a2 <= 189 ) && (a5==5))))){ + a17 = ((((a17 * 23)/ 10) - -95194) + 367978); + a5 = 7; + + return 23; + } else if(((a24==13) && ((a7==13) && ( ((-108 < a17) && (111 >= a17)) && (((input == 2) && (a5==5)) && ((189 < a2) && (281 >= a2)) ))))){ + a2 = (((a2 * 5) + -75316) * 5); + a17 = ((((a17 / 5) * 5) * 5) - 551159); + a7 = 12; + a5 = 3; + + return -1; + } else if(((a24==14) && ((a5==7) && ((((((a7==14) && ((-108 < a17) && (111 >= a17)) ) || ( ((111 < a17) && (255 >= a17)) && (a7==12))) || ((a7==13) && ((111 < a17) && (255 >= a17)) )) && (input == 6)) && a2 <= 189 )))){ + a17 = (((a17 + 497335) - 362468) / 5); + a7 = 13; + a24 = 13; + + return -1; + } else if(((a7==14) && ((a5==3) && ( ((111 < a17) && (255 >= a17)) && (((input == 4) && (a24==15)) && ((189 < a2) && (281 >= a2)) ))))){ + + a7 = 12; + a24 = 14; + + return -1; + } else if(( a2 <= 189 && ((a5==7) && ((a24==13) && (((( a17 <= -108 && (a7==14)) || ( ((-108 < a17) && (111 >= a17)) && (a7==12))) || ((a7==13) && ((-108 < a17) && (111 >= a17)) )) && (input == 2)))))){ + a2 = ((((a2 % 45)+ 235) - -164895) - 164893); + a17 = (((((a17 * 9)/ 10) % 109)- -2) / 5); + a7 = 12; + a24 = 14; + a5 = 3; + + return 23; + } else if(( ((-108 < a17) && (111 >= a17)) && ( a2 <= 189 && ((a24==14) && (((input == 2) && (((a7==12) || (a7==13)) || (a7==14))) && (a5==5)))))){ + a2 = ((((a2 / 5) / 5) % 45)- -235); + a17 = (((a17 * 5) - -230268) / 5); + a7 = 14; + a24 = 13; + a5 = 3; + + return 21; + } else if(( ((189 < a2) && (281 >= a2)) && (((a5==4) && ((input == 5) && (((a7==14) && ((111 < a17) && (255 >= a17)) ) || ((a7==12) && 255 < a17 )))) && (a24==15)))){ + a17 = (((((a17 % 71)+ 146) - -107220) - 259531) + 152347); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(( ((111 < a17) && (255 >= a17)) && ((a24==14) && (( a2 <= 189 && ((input == 4) && (a5==5))) && (a7==14))))){ + a17 = ((((a17 * 10)/ -9) * 5) / 5); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((( ((111 < a17) && (255 >= a17)) && (((a5==6) && (input == 5)) && (a24==15))) && (a7==12)) && a2 <= 189 )){ + a2 = ((((a2 % 45)+ 234) * 1) + 1); + a7 = 13; + a24 = 13; + a5 = 3; + + return 23; + } else if(((a5==5) && ((( a2 <= 189 && ( ((111 < a17) && (255 >= a17)) && (input == 3))) && (a7==12)) && (a24==13)))){ + a17 = ((((a17 * 10)/ -9) * 5) + -240506); + a5 = 3; + + return -1; + } else if(((((((( ((111 < a17) && (255 >= a17)) && (a7==13)) || ( ((111 < a17) && (255 >= a17)) && (a7==14))) || ((a7==12) && 255 < a17 )) && (input == 2)) && (a24==14)) && ((189 < a2) && (281 >= a2)) ) && (a5==5))){ + a2 = ((((a2 / -5) + -417573) * 10)/ 9); + a17 = ((((a17 - 128270) + -400314) + 6367) + -77894); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(( 255 < a17 && ( ((189 < a2) && (281 >= a2)) && ((((a5==4) && (input == 4)) && (a7==13)) && (a24==15))))){ + a2 = ((((a2 + -199858) * 10)/ 9) + -50269); + a17 = (((((a17 + -143986) * 1) / 5) % 71)- -183); + a7 = 14; + a24 = 13; + a5 = 7; + + return -1; + } else if(((a5==3) && ( ((189 < a2) && (281 >= a2)) && ((a24==14) && ((input == 6) && ((( ((111 < a17) && (255 >= a17)) && (a7==14)) || ((a7==12) && 255 < a17 )) || ((a7==13) && 255 < a17 ))))))){ + a2 = (((a2 * 5) / 5) - 103911); + a17 = (((a17 - 600110) * 1) - 2); + a7 = 12; + a24 = 13; + + return -1; + } else if(((( a2 <= 189 && ((input == 6) && ((( a17 <= -108 && (a7==14)) || ( ((-108 < a17) && (111 >= a17)) && (a7==12))) || ( ((-108 < a17) && (111 >= a17)) && (a7==13))))) && (a5==7)) && (a24==13))){ + a17 = ((((a17 % 299946)+ -300053) - 2) - 0); + a7 = 12; + a5 = 3; + + return -1; + } else if(( ((189 < a2) && (281 >= a2)) && ((input == 2) && (((((a24==15) && ((a7==14) && 255 < a17 )) && (a5==4)) || ((((a7==12) && a17 <= -108 ) && (a24==13)) && (a5==5))) || (((a24==13) && ( a17 <= -108 && (a7==13))) && (a5==5)))))){ + a2 = (((a2 / -5) / 5) - 528849); + a17 = ((((a17 - 0) / 5) - 300593) + 687900); + a7 = 14; + a24 = 13; + a5 = 3; + + return -1; + } else if((( ((189 < a2) && (281 >= a2)) && ((a5==3) && ((input == 4) && (((a7==12) && ((-108 < a17) && (111 >= a17)) ) || (((a7==13) && a17 <= -108 ) || ((a7==14) && a17 <= -108 )))))) && (a24==15))){ + a2 = (((a2 + -76921) + -80615) - 172398); + a17 = (((((a17 - 0) % 299946)+ -300053) - -542550) - 542551); + a7 = 12; + a24 = 13; + + return -1; + } else if((( ((-108 < a17) && (111 >= a17)) && ( ((189 < a2) && (281 >= a2)) && (((a24==13) && (input == 5)) && (a7==13)))) && (a5==5))){ + a2 = (((a2 / 5) - 555637) + -17770); + a17 = (((((a17 - -266183) * 10)/ 9) * 10)/ 9); + a7 = 14; + a5 = 7; + + return -1; + } else if(( ((-108 < a17) && (111 >= a17)) && ((a5==3) && ((a24==15) && (((input == 1) && (a7==13)) && ((189 < a2) && (281 >= a2)) ))))){ + a17 = ((((a17 / 5) + 156) + 305089) + -305059); + a7 = 14; + a24 = 13; + + return -1; + } else if(( 255 < a17 && ((a24==14) && (( a2 <= 189 && ((input == 1) && (((a7==12) || (a7==13)) || (a7==14)))) && (a5==5))))){ + a2 = ((((((a2 % 45)- -235) * 1) * 5) % 45)+ 226); + a17 = (((a17 - 600142) + 457437) + -457541); + a7 = 12; + a24 = 13; + a5 = 4; + + return 21; + } else if((((a7==12) && (((a5==4) && ((input == 3) && ((111 < a17) && (255 >= a17)) )) && a2 <= 189 )) && (a24==15))){ + + a24 = 14; + a5 = 5; + + return 23; + } else if(( a2 <= 189 && ((input == 4) && (((((a24==15) && ((a7==14) && 255 < a17 )) && (a5==6)) || ((a5==7) && ((a24==13) && ( a17 <= -108 && (a7==12))))) || ((( a17 <= -108 && (a7==13)) && (a24==13)) && (a5==7)))))){ + a2 = ((((a2 % 45)+ 234) * 1) * 1); + a17 = ((((a17 % 109)- -2) - -1) / 5); + a7 = 14; + a24 = 15; + a5 = 3; + + return 26; + } else if(((a5==4) && ((a24==14) && ( ((189 < a2) && (281 >= a2)) && ( 255 < a17 && (((a7==13) || (a7==14)) && (input == 5))))))){ + a2 = (((a2 * -5) + 490210) + -622035); + a17 = (((((a17 / 5) + -253338) - -303884) * -1)/ 10); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((a5==4) && ((a24==15) && ((((( ((-108 < a17) && (111 >= a17)) && (a7==14)) || ((a7==12) && ((111 < a17) && (255 >= a17)) )) || ( ((111 < a17) && (255 >= a17)) && (a7==13))) && (input == 5)) && ((189 < a2) && (281 >= a2)) )))){ + a17 = (((((a17 / 5) * 5) - 517057) % 71)- -222); + a7 = 13; + + return 26; + } else if((( ((189 < a2) && (281 >= a2)) && ( a17 <= -108 && ((a5==5) && ((input == 5) && ((a7==14) || ((a7==12) || (a7==13))))))) && (a24==15))){ + a2 = (((a2 - 51957) - 201016) + -229661); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((((((input == 4) && ((a7==14) || ((a7==12) || (a7==13)))) && (a5==5)) && a2 <= 189 ) && ((-108 < a17) && (111 >= a17)) ) && (a24==14))){ + a17 = ((((a17 + -583681) / 5) * 10)/ 9); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((((( ((189 < a2) && (281 >= a2)) && ((input == 2) && ((a7==12) || (a7==13)))) && a17 <= -108 ) && (a5==4)) && (a24==14))){ + a2 = ((((a2 * -5) / 5) - -461012) * -1); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((( a2 <= 189 && ((((((a7==13) && 255 < a17 ) && (a24==14)) || (((a7==14) && 255 < a17 ) && (a24==14))) || ((a24==15) && ((a7==12) && a17 <= -108 ))) && (input == 2))) && (a5==7))){ + a17 = ((((a17 % 299946)- 300053) * 1) * 1); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((((((((a7==13) && ((111 < a17) && (255 >= a17)) ) || ( ((111 < a17) && (255 >= a17)) && (a7==14))) || ( 255 < a17 && (a7==12))) && (input == 1)) && ((189 < a2) && (281 >= a2)) ) && (a24==14)) && (a5==4))){ + a2 = (((a2 + -56097) + -204457) / 5); + a17 = ((((a17 - 0) - 600111) / 5) + -466402); + a7 = 14; + a5 = 7; + + return -1; + } else if(((a24==15) && (((((input == 1) && (a5==3)) && ((189 < a2) && (281 >= a2)) ) && ((111 < a17) && (255 >= a17)) ) && (a7==14)))){ + a2 = (((a2 + -198382) * 3) - 2631); + a17 = ((((a17 / 5) * 10)/ -2) + -174727); + a7 = 12; + a24 = 13; + + return -1; + } else if(((a24==14) && ((a5==7) && (((input == 5) && ((( ((-108 < a17) && (111 >= a17)) && (a7==14)) || ((a7==12) && ((111 < a17) && (255 >= a17)) )) || ((a7==13) && ((111 < a17) && (255 >= a17)) ))) && a2 <= 189 )))){ + a17 = ((((a17 - 587947) / 5) / 5) + 23535); + a7 = 13; + a24 = 15; + a5 = 4; + + return -1; + } else if((((a24==15) && ( ((189 < a2) && (281 >= a2)) && ((a7==13) && ((a5==4) && (input == 4))))) && ((-108 < a17) && (111 >= a17)) )){ + a2 = (((a2 * 5) / 5) + -257179); + a17 = (((((a17 % 71)- -184) + 43333) / 5) + -8544); + a7 = 12; + a5 = 5; + + return -1; + } else if((((((a24==14) && (((a7==12) || (a7==13)) && (input == 2))) && a2 <= 189 ) && ((111 < a17) && (255 >= a17)) ) && (a5==5))){ + a2 = (((((a2 % 45)+ 234) * 5) % 45)+ 193); + a17 = ((((a17 - -121418) * 10)/ -9) + -75458); + a7 = 12; + a24 = 15; + a5 = 3; + + return 23; + } else if(( a17 <= -108 && ( ((189 < a2) && (281 >= a2)) && ((a5==3) && ((a24==13) && (((a7==13) || (a7==14)) && (input == 1))))))){ + a2 = (((a2 + -566056) + -17565) - 7708); + a17 = ((((((a17 - -545152) % 109)- -2) * 5) % 109)- -2); + a7 = 13; + a24 = 15; + a5 = 4; + + return 21; + } else if(((a7==12) && (((( a2 <= 189 && (input == 2)) && ((111 < a17) && (255 >= a17)) ) && (a5==4)) && (a24==15)))){ + a17 = ((((((a17 - -393608) * 10)/ 9) - 738081) * -1)/ 10); + a7 = 13; + a24 = 14; + a5 = 5; + + return 23; + } else if((( ((-108 < a17) && (111 >= a17)) && ((((input == 1) && ((a7==13) || (a7==14))) && a2 <= 189 ) && (a5==4))) && (a24==15))){ + a17 = (((a17 - -93652) / 5) * 5); + a7 = 14; + a24 = 13; + a5 = 5; + + return 23; + } + return calculate_output2(input); + } + + int calculate_output2(int input) { + + + if(((a5==7) && (((((((a7==13) && ((111 < a17) && (255 >= a17)) ) || ((a7==14) && ((111 < a17) && (255 >= a17)) )) || ((a7==12) && 255 < a17 )) && (input == 4)) && a2 <= 189 ) && (a24==13)))){ + a17 = (((a17 + -223220) - 376890) - 0); + a7 = 12; + a5 = 3; + + return -1; + } else if((((a24==13) && (((a5==3) && (((a7==13) || (a7==14)) && (input == 3))) && ((189 < a2) && (281 >= a2)) )) && a17 <= -108 )){ + a2 = (((a2 * 5) - 572766) - 10840); + a17 = (((((a17 + 0) % 299872)+ 300127) * 10)/ 9); + a7 = 12; + a5 = 7; + + return -1; + } else if((((a5==5) && ( a17 <= -108 && (((input == 5) && ((a7==12) || (a7==13))) && a2 <= 189 ))) && (a24==15))){ + a2 = ((((a2 % 45)- -234) * 1) + 0); + a17 = (((((a17 % 299872)- -300127) - -85883) - 234462) - -340820); + a7 = 13; + a24 = 13; + a5 = 4; + + return 23; + } else if(((a5==7) && ((( ((111 < a17) && (255 >= a17)) && ((input == 3) && ((a7==14) || ((a7==12) || (a7==13))))) && (a24==15)) && a2 <= 189 ))){ + a17 = (((a17 - 554057) - 32150) * 1); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((( a2 <= 189 && ((input == 4) && (((a24==14) && ((a7==12) && a17 <= -108 )) || ((( 255 < a17 && (a7==13)) && (a24==13)) || (((a7==14) && 255 < a17 ) && (a24==13)))))) && (a5==6))){ + a17 = (((a17 / 5) - 146392) - 201110); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((( ((189 < a2) && (281 >= a2)) && ((((a7==14) && ((-108 < a17) && (111 >= a17)) ) || ((a7==12) && ((111 < a17) && (255 >= a17)) )) && (input == 2))) && (a5==4)) && (a24==14))){ + a2 = ((((a2 + -438465) * 10)/ 9) + -61750); + a17 = (((a17 - -547585) - -40543) + -650123); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((a5==5) && (((a24==14) && ((( a17 <= -108 && (a7==14)) || ( ((-108 < a17) && (111 >= a17)) && (a7==12))) && (input == 2))) && ((189 < a2) && (281 >= a2)) ))){ + a2 = (((a2 * 5) - 588386) - 700); + a17 = ((((a17 % 299946)- 300053) / 5) - 223475); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((a24==15) && ( ((-108 < a17) && (111 >= a17)) && ( ((189 < a2) && (281 >= a2)) && (((input == 1) && (a5==5)) && (a7==12)))))){ + a17 = (((a17 - -556781) - -32123) - -2336); + a7 = 13; + a5 = 4; + + return -1; + } else if(((a5==4) && ( ((189 < a2) && (281 >= a2)) && ((((a7==12) && (input == 1)) && (a24==13)) && a17 <= -108 )))){ + + a7 = 14; + a24 = 14; + a5 = 3; + + return -1; + } else if(((a24==13) && ((a5==3) && (((( ((-108 < a17) && (111 >= a17)) && (a7==14)) || ((a7==12) && ((111 < a17) && (255 >= a17)) )) && (input == 5)) && ((189 < a2) && (281 >= a2)) )))){ + a2 = (((a2 + -105771) / 5) * 5); + a17 = ((((a17 / 5) + 192183) * -1)/ 10); + a7 = 12; + + return -1; + } else if(((((((a24==13) && (input == 6)) && (a7==14)) && ((189 < a2) && (281 >= a2)) ) && (a5==5)) && ((-108 < a17) && (111 >= a17)) )){ + a2 = (((a2 - 160975) / 5) * 5); + a17 = (((a17 + -217141) + 302270) - 56859); + a7 = 13; + a24 = 15; + a5 = 4; + + return -1; + } else if(((a24==13) && ((((input == 3) && (((a7==14) && ((-108 < a17) && (111 >= a17)) ) || ((a7==12) && ((111 < a17) && (255 >= a17)) ))) && (a5==7)) && a2 <= 189 ))){ + a17 = (((((a17 * 5) - 221071) / 5) % 71)- -220); + a7 = 12; + a5 = 5; + + return 21; + } else if((((( a2 <= 189 && ((input == 4) && (a24==13))) && ((111 < a17) && (255 >= a17)) ) && (a7==12)) && (a5==5))){ + a17 = (((a17 + -543666) - 48044) - 4253); + a5 = 3; + + return -1; + } else if(((a5==6) && ( ((189 < a2) && (281 >= a2)) && (((((a7==12) || (a7==13)) && (input == 3)) && (a24==13)) && ((-108 < a17) && (111 >= a17)) )))){ + a17 = (((a17 + -479754) * 1) - 60677); + a7 = 12; + a24 = 14; + a5 = 5; + + return -1; + } else if(( ((-108 < a17) && (111 >= a17)) && ((a5==4) && ( ((189 < a2) && (281 >= a2)) && (((a24==15) && (input == 5)) && (a7==13)))))){ + a17 = ((((a17 - 89845) % 71)- -187) * 1); + a24 = 13; + + return -1; + } else if(((( ((111 < a17) && (255 >= a17)) && (((((a7==12) || (a7==13)) || (a7==14)) && (input == 2)) && (a24==13))) && ((189 < a2) && (281 >= a2)) ) && (a5==5))){ + a2 = (((a2 / 5) * 5) + -133618); + a17 = ((((a17 - 64840) - 296199) * 10)/ 9); + a7 = 12; + a5 = 3; + + return -1; + } else if(((( ((189 < a2) && (281 >= a2)) && (((a7==12) && (input == 6)) && ((-108 < a17) && (111 >= a17)) )) && (a24==15)) && (a5==5))){ + a2 = (((a2 + -519111) - -90859) / 5); + a17 = (((a17 / 5) + -553032) + 553176); + a7 = 13; + a24 = 14; + a5 = 7; + + return -1; + } else if(((a5==4) && ((a24==15) && ( ((-108 < a17) && (111 >= a17)) && (((input == 3) && a2 <= 189 ) && (a7==12)))))){ + a17 = (((((a17 / 5) + 521700) - 934556) * -1)/ 10); + a7 = 14; + + return 23; + } else if(( ((189 < a2) && (281 >= a2)) && ((a5==3) && ((a24==14) && ((input == 6) && ((((a7==13) && ((-108 < a17) && (111 >= a17)) ) || ( ((-108 < a17) && (111 >= a17)) && (a7==14))) || ( ((111 < a17) && (255 >= a17)) && (a7==12)))))))){ + a2 = (((a2 / 5) * -5) * 5); + a17 = ((((a17 * 5) % 71)+ 182) + 1); + a7 = 12; + a24 = 15; + a5 = 4; + + return -1; + } else if((((((((a7==13) || (a7==14)) && (input == 4)) && a17 <= -108 ) && (a24==15)) && (a5==4)) && a2 <= 189 )){ + a17 = ((((((a17 + 343527) % 71)+ 183) * 5) % 71)- -165); + a7 = 13; + + return 21; + } else if((( a17 <= -108 && ((a5==6) && ( a2 <= 189 && ((a24==15) && (input == 3))))) && (a7==13))){ + + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(( ((189 < a2) && (281 >= a2)) && ((((input == 3) && (( 255 < a17 && (a7==12)) || (( ((111 < a17) && (255 >= a17)) && (a7==13)) || ((a7==14) && ((111 < a17) && (255 >= a17)) )))) && (a5==5)) && (a24==14)))){ + a2 = (((a2 + -81628) * 5) - 151837); + a17 = (((a17 + -600110) - 0) + -2); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(( 255 < a17 && (((a5==5) && ( ((189 < a2) && (281 >= a2)) && ((input == 6) && ((a7==14) || ((a7==12) || (a7==13)))))) && (a24==15)))){ + a17 = (((((a17 - 0) + -206889) + 16806) % 109)- -2); + a7 = 13; + a5 = 4; + + return -1; + } else if((((((a24==14) && (((a7==12) || (a7==13)) && (input == 3))) && (a5==4)) && a17 <= -108 ) && ((189 < a2) && (281 >= a2)) )){ + a2 = (((a2 - 217302) + -351806) / 5); + a17 = ((((((a17 % 71)- -205) * 9)/ 10) * 10)/ 9); + a7 = 14; + a5 = 7; + + return -1; + } else if(( a2 <= 189 && ((input == 6) && (((( a17 <= -108 && (a7==13)) && (a24==13)) && (a5==5)) || ((((a24==15) && ( 255 < a17 && (a7==14))) && (a5==4)) || (((a24==13) && ( a17 <= -108 && (a7==12))) && (a5==5))))))){ + a17 = ((((a17 + 0) % 299946)+ -300053) - 2); + a7 = 14; + a24 = 14; + a5 = 6; + + return 26; + } else if(((((input == 6) && ((( 255 < a17 && (a7==14)) && (a24==13)) || (((a7==12) && a17 <= -108 ) && (a24==14)))) && (a5==7)) && a2 <= 189 )){ + a17 = (((((a17 + 0) - 0) + 0) % 299946)+ -300053); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((a24==15) && ( a2 <= 189 && ((((input == 2) && ((a7==13) || (a7==14))) && (a5==4)) && ((111 < a17) && (255 >= a17)) )))){ + a17 = (((a17 - 112842) + -369240) / 5); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((( ((189 < a2) && (281 >= a2)) && ((((a24==15) && (input == 3)) && (a5==5)) && ((-108 < a17) && (111 >= a17)) )) && (a7==12))){ + a17 = (((a17 + 316175) * 1) + 233255); + a24 = 14; + a5 = 4; + + return -1; + } else if((((a5==7) && ((a24==13) && (((( ((111 < a17) && (255 >= a17)) && (a7==13)) || ( ((111 < a17) && (255 >= a17)) && (a7==14))) || ((a7==12) && 255 < a17 )) && (input == 6)))) && a2 <= 189 )){ + a17 = (((a17 + -600109) + -1) + -2); + a7 = 12; + a5 = 3; + + return -1; + } else if((((( a17 <= -108 && ((input == 6) && (a5==5))) && (a7==14)) && (a24==15)) && a2 <= 189 )){ + + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(( ((111 < a17) && (255 >= a17)) && ( ((189 < a2) && (281 >= a2)) && (((a5==4) && ((input == 1) && ((a7==12) || (a7==13)))) && (a24==13))))){ + + a7 = 12; + + return 23; + } else if((((((input == 4) && (( ((111 < a17) && (255 >= a17)) && (a7==14)) || ( 255 < a17 && (a7==12)))) && (a24==13)) && (a5==4)) && ((189 < a2) && (281 >= a2)) )){ + a17 = (((((a17 + -427791) / 5) / 5) % 71)+ 182); + a7 = 13; + + return -1; + } else if((( ((189 < a2) && (281 >= a2)) && ((((( ((-108 < a17) && (111 >= a17)) && (a7==13)) || ( ((-108 < a17) && (111 >= a17)) && (a7==14))) || ( ((111 < a17) && (255 >= a17)) && (a7==12))) && (input == 3)) && (a5==3))) && (a24==14))){ + a2 = (((a2 + -120881) * 4) * 1); + a17 = (((((a17 % 109)- -2) + -127431) - 362706) + 490136); + a7 = 12; + a5 = 5; + + return 26; + } else if((( ((189 < a2) && (281 >= a2)) && (((input == 2) && ((( a17 <= -108 && (a7==13)) || ( a17 <= -108 && (a7==14))) || ((a7==12) && ((-108 < a17) && (111 >= a17)) ))) && (a5==3))) && (a24==15))){ + a2 = (((a2 * 5) * -5) - 245970); + a17 = (((((a17 % 299946)+ -300053) + -1) + 161315) - 161314); + a7 = 12; + a24 = 13; + + return -1; + } else if(( ((189 < a2) && (281 >= a2)) && (((a24==14) && ((input == 6) && (( a17 <= -108 && (a7==14)) || ((a7==12) && ((-108 < a17) && (111 >= a17)) )))) && (a5==4)))){ + a17 = ((((a17 % 299946)- 300053) * 1) * 1); + a7 = 13; + a24 = 13; + a5 = 3; + + return -1; + } else if((((( ((189 < a2) && (281 >= a2)) && ((input == 3) && (a7==12))) && (a24==13)) && a17 <= -108 ) && (a5==3))){ + a2 = (((a2 + 430380) * 1) / -5); + a17 = (((((a17 * 9)/ 10) % 109)+ 42) - 25); + a7 = 14; + a24 = 15; + a5 = 7; + + return -1; + } else if(((a5==3) && ( ((189 < a2) && (281 >= a2)) && ((((((a7==13) && 255 < a17 ) && (a24==13)) || (((a7==14) && 255 < a17 ) && (a24==13))) || ((a24==14) && ((a7==12) && a17 <= -108 ))) && (input == 3))))){ + a2 = (((a2 - -54478) + -529752) + -118732); + a17 = (((a17 / 5) / 5) + -531417); + a7 = 12; + a24 = 13; + + return -1; + } else if(((a24==13) && ((a5==7) && ((a7==13) && ( a2 <= 189 && ( 255 < a17 && (input == 2))))))){ + a17 = (((a17 - 0) + -600254) - 1); + a7 = 12; + a5 = 3; + + return -1; + } else if((((((((a7==12) || (a7==13)) && (input == 5)) && (a24==15)) && 255 < a17 ) && a2 <= 189 ) && (a5==5))){ + a2 = (((((a2 - -169038) + -8583) + -45242) % 45)+ 234); + a7 = 13; + a24 = 13; + + return 23; + } else if(((a24==15) && ((a5==6) && ( a2 <= 189 && ((((a7==14) && a17 <= -108 ) || ((a7==12) && ((-108 < a17) && (111 >= a17)) )) && (input == 3)))))){ + a17 = ((((a17 % 299946)+ -300053) * 1) - 2); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((((a7==12) && (((input == 2) && ((111 < a17) && (255 >= a17)) ) && (a5==6))) && a2 <= 189 ) && (a24==15))){ + a2 = (((((a2 % 45)- -236) / 5) - -550201) + -549992); + a7 = 14; + a5 = 3; + + return 26; + } else if(( a2 <= 189 && (((a5==4) && (((input == 3) && ((a7==13) || (a7==14))) && ((111 < a17) && (255 >= a17)) )) && (a24==15)))){ + + a7 = 14; + a5 = 5; + + return 23; + } else if(((a7==14) && (((( a2 <= 189 && (input == 2)) && (a24==14)) && (a5==5)) && ((111 < a17) && (255 >= a17)) ))){ + a2 = (((((a2 % 45)- -235) - -1) + 81498) - 81497); + a17 = (((((a17 * 10)/ 4) / 5) * 10)/ 2); + a7 = 12; + a24 = 15; + a5 = 3; + + return 21; + } else if(((a24==13) && ( 255 < a17 && (((a5==5) && (((a7==12) || (a7==13)) && (input == 5))) && a2 <= 189 )))){ + a17 = ((((a17 % 109)+ -14) + -65) - 16); + a7 = 12; + a24 = 15; + a5 = 7; + + return 26; + } else if(( a2 <= 189 && (( ((-108 < a17) && (111 >= a17)) && (((a5==5) && (input == 4)) && (a24==13))) && (a7==14)))){ + a17 = (((((a17 - 567803) % 71)+ 187) - 424769) - -424798); + a24 = 15; + a5 = 6; + + return 23; + } else if(( a2 <= 189 && (((((input == 3) && (((a7==12) || (a7==13)) || (a7==14))) && ((111 < a17) && (255 >= a17)) ) && (a24==14)) && (a5==6)))){ + a2 = (((((a2 - -148382) + 15537) - 69273) % 45)+ 235); + a17 = (((a17 - 250975) * 2) - -374533); + a7 = 13; + a24 = 15; + a5 = 3; + + return 26; + } else if(( ((111 < a17) && (255 >= a17)) && (((a24==14) && (((input == 1) && (((a7==12) || (a7==13)) || (a7==14))) && a2 <= 189 )) && (a5==6)))){ + a2 = (((((((a2 * 9)/ 10) % 45)- -234) / 5) * 51)/ 10); + a7 = 13; + a5 = 3; + + return 23; + } else if(( 255 < a17 && (((a5==5) && (((input == 1) && ((a7==12) || (a7==13))) && a2 <= 189 )) && (a24==13)))){ + a17 = ((((a17 / 5) * 10)/ -4) - 18616); + a7 = 12; + a5 = 3; + + return -1; + } else if(((a5==6) && (((((a24==14) && ((a7==12) && a17 <= -108 )) || ((((a7==13) && 255 < a17 ) && (a24==13)) || ((a24==13) && ( 255 < a17 && (a7==14))))) && (input == 3)) && a2 <= 189 ))){ + a2 = (((((a2 * 9)/ 10) % 45)+ 234) + 0); + a17 = (((((a17 * 9)/ 10) % 299946)+ -300053) - 0); + a7 = 13; + a24 = 13; + a5 = 4; + + return 26; + } else if(( ((189 < a2) && (281 >= a2)) && (((a5==4) && ( a17 <= -108 && ((input == 1) && ((a7==14) || ((a7==12) || (a7==13)))))) && (a24==15)))){ + a17 = (((((a17 * 9)/ 10) - -39396) % 109)- -1); + a7 = 12; + a24 = 14; + + return -1; + } else if(((((((a7==12) && (input == 4)) && ((-108 < a17) && (111 >= a17)) ) && (a5==4)) && a2 <= 189 ) && (a24==15))){ + a17 = (((a17 * 5) / 5) - 8323); + a24 = 13; + a5 = 3; + + return -1; + } else if(((( a2 <= 189 && ((a5==6) && ((input == 5) && a17 <= -108 ))) && (a24==13)) && (a7==12))){ + + a5 = 3; + + return -1; + } else if(((((a5==5) && ((((a7==14) && a17 <= -108 ) || ((a7==12) && ((-108 < a17) && (111 >= a17)) )) && (input == 5))) && (a24==13)) && ((189 < a2) && (281 >= a2)) )){ + a17 = ((((((a17 % 71)+ 183) * 5) * 5) % 71)- -147); + a7 = 13; + a5 = 4; + + return -1; + } else if(((a5==3) && ( ((189 < a2) && (281 >= a2)) && (((((a7==12) && a17 <= -108 ) && (a24==14)) || ((( 255 < a17 && (a7==13)) && (a24==13)) || ((a24==13) && ( 255 < a17 && (a7==14))))) && (input == 1))))){ + a2 = ((((a2 * -5) + 512688) / 5) + -671267); + a17 = (((((a17 % 299946)+ -300053) + -2) - -209672) - 209671); + a7 = 12; + a24 = 13; + + return -1; + } else if((((a5==3) && ( ((189 < a2) && (281 >= a2)) && ((( ((-108 < a17) && (111 >= a17)) && (a7==12)) || (( a17 <= -108 && (a7==13)) || ( a17 <= -108 && (a7==14)))) && (input == 1)))) && (a24==15))){ + a17 = ((((((a17 * 9)/ 10) % 71)- -182) - -14398) + -14397); + a7 = 13; + a24 = 14; + + return -1; + } else if((((a5==3) && ((((((a7==14) && ((-108 < a17) && (111 >= a17)) ) || ((a7==12) && ((111 < a17) && (255 >= a17)) )) || ((a7==13) && ((111 < a17) && (255 >= a17)) )) && (input == 4)) && (a24==15))) && ((189 < a2) && (281 >= a2)) )){ + a2 = ((((a2 - 440571) * 10)/ 9) * 1); + a17 = (((a17 / 5) + 199) + -13); + a7 = 12; + a24 = 13; + a5 = 7; + + return -1; + } else if(((a24==14) && (((a5==6) && ( a2 <= 189 && (((a7==14) || ((a7==12) || (a7==13))) && (input == 5)))) && 255 < a17 ))){ + + a7 = 12; + + return 21; + } else if(( ((-108 < a17) && (111 >= a17)) && ((a5==5) && ((a24==15) && ((((a7==12) || (a7==13)) && (input == 1)) && a2 <= 189 ))))){ + a17 = ((((a17 - 548709) + 66483) * 10)/ 9); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((((((input == 4) && (((a7==14) && ((-108 < a17) && (111 >= a17)) ) || ((a7==12) && ((111 < a17) && (255 >= a17)) ))) && (a5==6)) && ((189 < a2) && (281 >= a2)) ) && (a24==13))){ + a17 = ((((a17 * 5) - 44693) % 109)+ 15); + a7 = 14; + a5 = 5; + + return -1; + } else if((((a24==13) && (( ((189 < a2) && (281 >= a2)) && ( a17 <= -108 && (input == 5))) && (a7==12))) && (a5==3))){ + a2 = (((a2 + -572725) + 175794) * 1); + a17 = ((((a17 / 5) % 109)- -105) / 5); + a7 = 13; + a24 = 15; + a5 = 4; + + return -1; + } else if(((((( a17 <= -108 && (input == 1)) && (a7==14)) && a2 <= 189 ) && (a24==14)) && (a5==5))){ + a2 = ((((a2 / 5) % 45)+ 235) - 1); + a17 = (((((a17 % 109)- -95) - 397967) + 16520) + 381429); + a24 = 13; + a5 = 3; + + return 26; + } else if(( ((111 < a17) && (255 >= a17)) && ((a7==12) && ((a5==6) && (( a2 <= 189 && (input == 4)) && (a24==15)))))){ + a17 = ((((a17 - -175358) * 10)/ -9) * 3); + a24 = 13; + a5 = 3; + + return -1; + } else if(((((((input == 5) && a2 <= 189 ) && (a5==5)) && (a24==15)) && (a7==14)) && a17 <= -108 )){ + a2 = (((((a2 + 0) - -533443) / 5) % 45)- -235); + a17 = ((((a17 % 109)+ 56) + 32) - 64); + a7 = 13; + a24 = 14; + a5 = 4; + + return 23; + } else if(((a5==6) && ((a24==14) && ((((input == 4) && (((a7==12) || (a7==13)) || (a7==14))) && a2 <= 189 ) && ((-108 < a17) && (111 >= a17)) )))){ + a2 = ((((a2 % 45)+ 236) * 1) - 2); + a17 = ((((a17 - -285478) - -176297) % 71)+ 120); + a7 = 14; + a5 = 3; + + return 23; + } else if((((a5==3) && ((((((a7==14) && ((-108 < a17) && (111 >= a17)) ) || ( ((111 < a17) && (255 >= a17)) && (a7==12))) || ( ((111 < a17) && (255 >= a17)) && (a7==13))) && (input == 3)) && (a24==15))) && ((189 < a2) && (281 >= a2)) )){ + a2 = (((a2 / -5) * 5) * 5); + a17 = (((a17 / 5) + 443474) - -14231); + a7 = 13; + a24 = 14; + + return -1; + } else if(((a5==4) && ((a7==12) && ( ((-108 < a17) && (111 >= a17)) && ((a24==15) && ((input == 2) && ((189 < a2) && (281 >= a2)) )))))){ + a2 = ((((a2 - -382813) + -765612) - -535577) * -3); + a17 = ((((a17 - 191016) * 10)/ 9) * 2); + a24 = 13; + a5 = 3; + + return -1; + } else if(((((((( 255 < a17 && (a7==14)) && (a24==15)) && (a5==6)) || ((a5==7) && (( a17 <= -108 && (a7==12)) && (a24==13)))) || ((a5==7) && (((a7==13) && a17 <= -108 ) && (a24==13)))) && (input == 2)) && a2 <= 189 )){ + a17 = ((((a17 % 299946)- 300053) * 1) + -1); + a7 = 14; + a24 = 13; + a5 = 4; + + return -1; + } else if((((a5==3) && ((( ((111 < a17) && (255 >= a17)) && (input == 5)) && ((189 < a2) && (281 >= a2)) ) && (a7==14))) && (a24==15))){ + a2 = ((((a2 - 503628) * 10)/ 9) * 1); + a17 = (((a17 - 141047) * 4) - 9786); + a7 = 12; + a24 = 13; + + return -1; + } else if((((a24==14) && ( a2 <= 189 && ((input == 6) && ((((a7==13) && a17 <= -108 ) || ((a7==14) && a17 <= -108 )) || ((a7==12) && ((-108 < a17) && (111 >= a17)) ))))) && (a5==7))){ + a17 = (((((a17 % 109)+ 1) * 5) % 109)- -1); + a7 = 13; + a24 = 15; + a5 = 4; + + return -1; + } else if(((a5==7) && (((a24==15) && (((input == 5) && ((a7==13) || (a7==14))) && a2 <= 189 )) && 255 < a17 ))){ + a17 = (((((a17 % 71)+ 138) + 39) - 439359) + 439313); + a7 = 13; + a24 = 14; + + return -1; + } else if(((a5==4) && ((a24==13) && ((((input == 2) && ((a7==12) || (a7==13))) && ((189 < a2) && (281 >= a2)) ) && ((111 < a17) && (255 >= a17)) )))){ + a2 = (((a2 * 5) - -555151) * -1); + a17 = (((((a17 / 5) - 449993) + 603017) * -1)/ 10); + a7 = 12; + a5 = 3; + + return -1; + } else if((((a5==6) && ( ((-108 < a17) && (111 >= a17)) && ( a2 <= 189 && (((a7==13) || (a7==14)) && (input == 2))))) && (a24==15))){ + a2 = ((((((a2 % 45)+ 235) + 1) * 5) % 45)+ 219); + a17 = ((((a17 % 71)+ 184) + 1) + -1); + a7 = 14; + a24 = 13; + a5 = 3; + + return 21; + } else if((( a2 <= 189 && ( ((111 < a17) && (255 >= a17)) && ((a7==12) && ((input == 2) && (a5==5))))) && (a24==13))){ + a17 = (((a17 - 199) + -6) + -5); + a7 = 14; + a5 = 7; + + return 21; + } else if(((a7==13) && (((((input == 4) && (a5==7)) && (a24==14)) && a2 <= 189 ) && ((-108 < a17) && (111 >= a17)) ))){ + a17 = (((a17 - 357382) + -119715) * 1); + a7 = 14; + + return -1; + } else if(((a24==14) && ((a5==5) && ( ((189 < a2) && (281 >= a2)) && ((input == 2) && (( ((111 < a17) && (255 >= a17)) && (a7==12)) || (((a7==13) && ((-108 < a17) && (111 >= a17)) ) || ((a7==14) && ((-108 < a17) && (111 >= a17)) )))))))){ + a2 = (((a2 - -271816) / 5) * -5); + a17 = ((((a17 - -250279) + 97462) * -1)/ 10); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((((((input == 3) && (((a7==12) && ((-108 < a17) && (111 >= a17)) ) || (( a17 <= -108 && (a7==13)) || ((a7==14) && a17 <= -108 )))) && a2 <= 189 ) && (a5==6)) && (a24==13))){ + a17 = (((((a17 % 299946)- 300053) / 5) / 5) + -264660); + a7 = 12; + a5 = 3; + + return -1; + } else if(((a7==12) && ((a5==5) && ((((input == 1) && (a24==13)) && a2 <= 189 ) && ((111 < a17) && (255 >= a17)) )))){ + a17 = (((((a17 * -1)/ 10) + 161751) + -250598) + 88873); + a5 = 7; + + return 23; + } else if((((a24==13) && ((((input == 1) && (a5==5)) && ((-108 < a17) && (111 >= a17)) ) && (a7==14))) && a2 <= 189 )){ + a17 = ((((((a17 % 71)- -182) - 0) * 5) % 71)- -178); + a7 = 12; + a24 = 15; + a5 = 6; + + return 26; + } else if((((a5==3) && ( a17 <= -108 && (((a24==13) && (input == 4)) && ((189 < a2) && (281 >= a2)) ))) && (a7==12))){ + a2 = (((a2 * -5) * 5) / 5); + a24 = 14; + a5 = 5; + + return 23; + } else if((((a5==3) && ( ((189 < a2) && (281 >= a2)) && ((( ((111 < a17) && (255 >= a17)) && (a7==12)) || (( ((-108 < a17) && (111 >= a17)) && (a7==13)) || ((a7==14) && ((-108 < a17) && (111 >= a17)) ))) && (input == 4)))) && (a24==14))){ + a17 = (((((a17 % 109)+ 2) - 348657) + -227996) - -576653); + a7 = 14; + + return -1; + } else if(((a24==14) && ((a5==4) && (( ((-108 < a17) && (111 >= a17)) && ((input == 3) && (a7==13))) && ((189 < a2) && (281 >= a2)) )))){ + a2 = (((a2 / -5) - -389340) * -1); + a17 = (((((a17 + 69965) + -188133) + -248443) * -1)/ 10); + a7 = 14; + a24 = 15; + a5 = 7; + + return -1; + } else if(((a7==13) && ((a24==15) && ( ((189 < a2) && (281 >= a2)) && ( ((-108 < a17) && (111 >= a17)) && ((a5==4) && (input == 3))))))){ + a2 = (((a2 * -5) - 523034) * 1); + a17 = ((((((a17 % 71)+ 184) + 138561) * 4) % 71)+ 151); + a24 = 13; + a5 = 7; + + return -1; + } else if(( ((111 < a17) && (255 >= a17)) && ( a2 <= 189 && (((((a7==13) || (a7==14)) && (input == 2)) && (a5==6)) && (a24==15))))){ + a2 = ((((((a2 - 0) % 45)+ 236) * 5) % 45)+ 213); + a17 = (((a17 - -31328) * 5) * 3); + a7 = 12; + a24 = 13; + a5 = 3; + + return 23; + } else if(((a5==7) && ( a2 <= 189 && ((a24==13) && ((input == 3) && ((((a7==13) && ((111 < a17) && (255 >= a17)) ) || ( ((111 < a17) && (255 >= a17)) && (a7==14))) || ( 255 < a17 && (a7==12)))))))){ + a17 = ((((((a17 % 109)- 13) * 5) + -231249) % 109)- -55); + a7 = 14; + a24 = 15; + a5 = 4; + + return -1; + } else if(((a5==6) && ( a2 <= 189 && ((a24==14) && ( ((-108 < a17) && (111 >= a17)) && ((((a7==12) || (a7==13)) || (a7==14)) && (input == 5))))))){ + a17 = (((((a17 % 71)+ 184) * 1) / 5) + 111); + a7 = 12; + a24 = 13; + a5 = 7; + + return 23; + } else if(((a5==5) && ( ((-108 < a17) && (111 >= a17)) && ((((input == 6) && ((a7==14) || ((a7==12) || (a7==13)))) && (a24==14)) && a2 <= 189 )))){ + a2 = (((((a2 % 45)- -234) * 1) + -304708) - -304710); + a7 = 13; + a5 = 3; + + return 26; + } else if(( ((-108 < a17) && (111 >= a17)) && ((a24==14) && ((((input == 6) && ((a7==14) || ((a7==12) || (a7==13)))) && (a5==6)) && a2 <= 189 )))){ + a2 = (((((a2 % 45)- -236) - -1) / 5) + 208); + a17 = (((((a17 + -583311) / 5) * 5) % 71)- -225); + a7 = 14; + a24 = 15; + a5 = 3; + + return 23; + } else if(((a24==14) && ((a5==4) && (((((a7==12) && 255 < a17 ) || (( ((111 < a17) && (255 >= a17)) && (a7==13)) || ((a7==14) && ((111 < a17) && (255 >= a17)) ))) && (input == 5)) && ((189 < a2) && (281 >= a2)) )))){ + a2 = (((a2 * 5) * 5) - 372070); + a17 = ((((a17 % 71)+ 123) - -13742) + -13696); + a7 = 14; + a24 = 15; + + return 21; + } else if((((a5==4) && ( ((189 < a2) && (281 >= a2)) && ((input == 1) && ((((a7==14) && ((-108 < a17) && (111 >= a17)) ) || ((a7==12) && ((111 < a17) && (255 >= a17)) )) || ((a7==13) && ((111 < a17) && (255 >= a17)) ))))) && (a24==15))){ + a2 = ((((a2 - 67499) * 5) * 10)/ 9); + a17 = ((((((a17 % 71)+ 183) * 5) * 5) % 71)- -126); + a7 = 12; + a5 = 5; + + return 21; + } else if(((((a24==13) && ((input == 1) && (((a7==14) && a17 <= -108 ) || ((a7==12) && ((-108 < a17) && (111 >= a17)) )))) && (a5==5)) && ((189 < a2) && (281 >= a2)) )){ + a17 = ((((a17 - 0) % 109)+ 2) + 1); + a7 = 13; + a5 = 3; + + return -1; + } else if(((a5==6) && (((a24==13) && ((input == 6) && (( ((111 < a17) && (255 >= a17)) && (a7==12)) || (((a7==13) && ((-108 < a17) && (111 >= a17)) ) || ((a7==14) && ((-108 < a17) && (111 >= a17)) ))))) && a2 <= 189 ))){ + a2 = ((((a2 / 5) - -545601) % 45)+ 203); + a17 = ((((a17 % 109)- -2) + 1) + -2); + a7 = 13; + + return 23; + } else if(((a5==4) && ((((input == 1) && (( ((-108 < a17) && (111 >= a17)) && (a7==12)) || (((a7==13) && a17 <= -108 ) || ( a17 <= -108 && (a7==14))))) && ((189 < a2) && (281 >= a2)) ) && (a24==13)))){ + a17 = (((((a17 % 71)- -182) - -29808) + -229764) + 199957); + a7 = 14; + a24 = 15; + a5 = 3; + + return -1; + } else if((((a5==5) && ((( ((189 < a2) && (281 >= a2)) && (input == 6)) && (a24==13)) && ((-108 < a17) && (111 >= a17)) )) && (a7==13))){ + a2 = ((((a2 - -93069) / 5) * 5) - 656223); + a17 = (((a17 + -400644) - 189700) - 2801); + a7 = 12; + a5 = 3; + + return -1; + } else if(((((a7==14) && (((input == 1) && a2 <= 189 ) && (a5==5))) && (a24==15)) && a17 <= -108 )){ + + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((((a5==3) && ( ((189 < a2) && (281 >= a2)) && (((input == 4) && ((-108 < a17) && (111 >= a17)) ) && (a24==15)))) && (a7==13))){ + + return 26; + } else if(((((((input == 5) && (((a7==12) || (a7==13)) || (a7==14))) && ((189 < a2) && (281 >= a2)) ) && (a24==15)) && (a5==5)) && 255 < a17 )){ + a2 = (((a2 + -1933) * 5) + -538505); + a7 = 13; + a5 = 7; + + return -1; + } else if(( 255 < a17 && ((((a5==3) && (((a7==14) || ((a7==12) || (a7==13))) && (input == 5))) && (a24==15)) && ((189 < a2) && (281 >= a2)) ))){ + a17 = ((((a17 % 71)+ 182) + -10) + 11); + a7 = 13; + a24 = 13; + + return -1; + } else if(((a5==6) && (((((input == 5) && (a7==12)) && (a24==15)) && a2 <= 189 ) && a17 <= -108 ))){ + a2 = ((((a2 % 45)- -235) + 1) + -2); + a7 = 13; + a24 = 14; + a5 = 3; + + return 26; + } else if(( a2 <= 189 && (((input == 5) && (((a24==13) && ( 255 < a17 && (a7==14))) || (( a17 <= -108 && (a7==12)) && (a24==14)))) && (a5==7)))){ + a17 = (((((a17 % 109)- -2) + 1) - -372693) - 372693); + a7 = 13; + a24 = 15; + a5 = 4; + + return -1; + } else if(((((a24==14) && ((((a7==14) && ((-108 < a17) && (111 >= a17)) ) || ( ((111 < a17) && (255 >= a17)) && (a7==12))) && (input == 3))) && ((189 < a2) && (281 >= a2)) ) && (a5==4))){ + a2 = (((a2 * 5) + -72167) * 5); + a17 = ((((a17 + -186071) + -206980) * 10)/ 9); + a7 = 12; + a24 = 15; + a5 = 7; + + return -1; + } else if((((((a24==13) && ((input == 6) && ((a7==12) || (a7==13)))) && 255 < a17 ) && (a5==5)) && a2 <= 189 )){ + a17 = (((a17 + -600164) * 1) + -53); + a7 = 12; + a5 = 3; + + return -1; + } else if(((a24==13) && ( 255 < a17 && (((a7==13) && ((input == 4) && (a5==7))) && a2 <= 189 )))){ + a17 = (((((a17 - 0) - 0) + 0) % 71)- -150); + a5 = 5; + + return -1; + } else if(( a2 <= 189 && ((((a24==15) && (((a7==13) || (a7==14)) && (input == 2))) && ((-108 < a17) && (111 >= a17)) ) && (a5==4)))){ + a17 = (((a17 - 164414) - 174884) + -159208); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((( ((189 < a2) && (281 >= a2)) && (((a24==14) && (((a7==12) || (a7==13)) && (input == 1))) && a17 <= -108 )) && (a5==4))){ + a2 = (((a2 / 5) * 5) / -5); + a7 = 12; + a24 = 15; + a5 = 5; + + return -1; + } else if((((a24==15) && ( 255 < a17 && ((a5==7) && (((a7==13) || (a7==14)) && (input == 2))))) && a2 <= 189 )){ + a17 = (((a17 - 600173) / 5) * 5); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((a5==4) && (( 255 < a17 && ( a2 <= 189 && ((input == 3) && ((a7==12) || (a7==13))))) && (a24==15)))){ + + a7 = 13; + a5 = 5; + + return 23; + } else if((( a17 <= -108 && ((a24==15) && ( a2 <= 189 && ((a5==6) && (input == 3))))) && (a7==12))){ + a17 = ((((a17 % 109)- -35) - 26) / 5); + a5 = 4; + + return 21; + } else if(((a24==15) && ((a5==4) && ( ((189 < a2) && (281 >= a2)) && ((((a7==14) && ((111 < a17) && (255 >= a17)) ) || ((a7==12) && 255 < a17 )) && (input == 4)))))){ + a17 = ((((a17 - 384201) % 109)+ 1) + 2); + a7 = 13; + a24 = 13; + a5 = 3; + + return -1; + } else if((( a17 <= -108 && ((a5==6) && ((a24==13) && ((input == 6) && (a7==12))))) && a2 <= 189 )){ + a2 = ((((((a2 * 9)/ 10) * 1) - -556567) % 45)+ 231); + a17 = ((((a17 % 109)+ 37) + 6) - 19); + a7 = 13; + a24 = 15; + a5 = 5; + + return 23; + } else if(((a5==3) && (((((((a7==12) || (a7==13)) || (a7==14)) && (input == 3)) && 255 < a17 ) && ((189 < a2) && (281 >= a2)) ) && (a24==15)))){ + a17 = (((((a17 % 109)+ 3) + -50) - -516936) + -516973); + a7 = 12; + a24 = 14; + + return -1; + } else if((( ((189 < a2) && (281 >= a2)) && (( ((-108 < a17) && (111 >= a17)) && (((a7==12) || (a7==13)) && (input == 6))) && (a5==3))) && (a24==13))){ + a2 = (((a2 + -109630) - 123244) - 219626); + a17 = ((((a17 + -100817) * 5) * 10)/ 9); + a7 = 14; + a24 = 15; + a5 = 7; + + return -1; + } else if(((a24==13) && ((a5==5) && ( ((-108 < a17) && (111 >= a17)) && (((input == 1) && (a7==14)) && ((189 < a2) && (281 >= a2)) ))))){ + a17 = (((a17 + 526530) + 65040) + 5305); + a7 = 13; + a24 = 15; + a5 = 4; + + return -1; + } else if(((a5==5) && ( ((189 < a2) && (281 >= a2)) && ((a24==14) && ((input == 6) && (( 255 < a17 && (a7==12)) || (((a7==13) && ((111 < a17) && (255 >= a17)) ) || ((a7==14) && ((111 < a17) && (255 >= a17)) )))))))){ + a2 = (((a2 * 5) / 5) / -5); + a17 = (((a17 - 0) - 600110) + -2); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((( a2 <= 189 && (( a17 <= -108 && ((input == 2) && (a7==12))) && (a5==6))) && (a24==13))){ + + a5 = 3; + + return -1; + } else if(((((a24==15) && ( a2 <= 189 && ((input == 2) && ((a7==12) || (a7==13))))) && 255 < a17 ) && (a5==5))){ + a17 = ((((a17 + 0) / 5) * 4) + -576078); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((a5==7) && ((((input == 2) && (((a7==12) && 255 < a17 ) || (((a7==13) && ((111 < a17) && (255 >= a17)) ) || ( ((111 < a17) && (255 >= a17)) && (a7==14))))) && a2 <= 189 ) && (a24==13)))){ + a17 = (((((a17 + -600111) + -1) * 9)/ 10) + -11291); + a7 = 12; + a5 = 3; + + return -1; + } else if(((a5==7) && ( a2 <= 189 && ((input == 4) && (((((a7==13) && 255 < a17 ) && (a24==14)) || (( 255 < a17 && (a7==14)) && (a24==14))) || ((a24==15) && ((a7==12) && a17 <= -108 ))))))){ + a17 = (((((a17 * 9)/ 10) % 71)- -184) - 2); + a7 = 14; + a24 = 13; + a5 = 5; + + return 21; + } else if((((a24==14) && ( a2 <= 189 && (((( a17 <= -108 && (a7==13)) || ((a7==14) && a17 <= -108 )) || ( ((-108 < a17) && (111 >= a17)) && (a7==12))) && (input == 3)))) && (a5==7))){ + a17 = ((((a17 % 109)+ 1) - -2) - 1); + a7 = 12; + + return -1; + } else if((((((( ((111 < a17) && (255 >= a17)) && (a7==14)) || ((a7==12) && 255 < a17 )) && (input == 2)) && a2 <= 189 ) && (a24==14)) && (a5==7))){ + a17 = (((a17 - 600111) - 1) - 0); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((a24==14) && ((a5==5) && (( a2 <= 189 && ((input == 3) && (a7==14))) && a17 <= -108 )))){ + a2 = ((((a2 % 45)+ 236) - -1) * 1); + a24 = 13; + a5 = 3; + + return 26; + } else if(( a2 <= 189 && ((a5==7) && ((a24==13) && (((((a7==13) && ((111 < a17) && (255 >= a17)) ) || ( ((111 < a17) && (255 >= a17)) && (a7==14))) || ((a7==12) && 255 < a17 )) && (input == 5)))))){ + a17 = ((((((a17 % 71)+ 166) * 9)/ 10) * 9)/ 10); + a7 = 13; + + return -1; + } else if((( a2 <= 189 && ( ((111 < a17) && (255 >= a17)) && (((input == 1) && (a7==13)) && (a24==13)))) && (a5==5))){ + + a5 = 7; + + return 26; + } else if((((a24==13) && ((a5==5) && (((((a7==12) || (a7==13)) || (a7==14)) && (input == 5)) && ((189 < a2) && (281 >= a2)) ))) && 255 < a17 )){ + + a7 = 13; + + return 23; + } else if(( a2 <= 189 && ((a24==13) && ((a5==5) && ((( ((-108 < a17) && (111 >= a17)) && (a7==13)) || (((a7==14) && a17 <= -108 ) || ( ((-108 < a17) && (111 >= a17)) && (a7==12)))) && (input == 5)))))){ + a17 = ((((a17 * 9)/ 10) - 5211) + 549653); + a7 = 13; + a24 = 14; + a5 = 6; + + return 26; + } else if((( ((111 < a17) && (255 >= a17)) && ((a5==5) && ((a7==14) && ((input == 6) && (a24==13))))) && a2 <= 189 )){ + a17 = ((((a17 + 372015) + -372184) + 315921) + -315903); + a24 = 14; + a5 = 7; + + return 23; + } else if(( ((189 < a2) && (281 >= a2)) && ((a24==13) && ((a5==4) && ((input == 3) && ((((a7==13) && a17 <= -108 ) || ((a7==14) && a17 <= -108 )) || ( ((-108 < a17) && (111 >= a17)) && (a7==12)))))))){ + a2 = (((a2 * 5) - 399704) * 1); + a17 = (((((a17 % 299946)- 300053) + -1) - -345280) - 345280); + a7 = 12; + a5 = 3; + + return -1; + } else if((((a24==15) && ( ((-108 < a17) && (111 >= a17)) && ((((a7==13) || (a7==14)) && (input == 5)) && ((189 < a2) && (281 >= a2)) ))) && (a5==5))){ + a2 = ((((a2 * -5) * 5) - -579500) * -1); + a17 = (((a17 / 5) - 391832) / 5); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((a24==15) && ( ((189 < a2) && (281 >= a2)) && (((((a7==13) && ((111 < a17) && (255 >= a17)) ) || (( ((-108 < a17) && (111 >= a17)) && (a7==14)) || ((a7==12) && ((111 < a17) && (255 >= a17)) ))) && (input == 2)) && (a5==3))))){ + a2 = (((a2 + -106788) * 5) * 1); + a17 = ((((a17 + 74148) + 98517) % 109)- 1); + a7 = 13; + a24 = 13; + a5 = 4; + + return -1; + } else if((((a5==5) && ((((input == 3) && ((-108 < a17) && (111 >= a17)) ) && (a7==14)) && (a24==13))) && ((189 < a2) && (281 >= a2)) )){ + a2 = (((a2 / -5) - 597366) + -852); + a17 = (((a17 - 484669) + -100380) - 5769); + a7 = 12; + a24 = 15; + a5 = 7; + + return -1; + } else if((((a5==7) && (((input == 1) && (( ((-108 < a17) && (111 >= a17)) && (a7==14)) || ( ((111 < a17) && (255 >= a17)) && (a7==12)))) && (a24==13))) && a2 <= 189 )){ + a17 = ((((a17 % 109)- -2) / 5) / 5); + a7 = 14; + a24 = 15; + a5 = 3; + + return -1; + } else if(((a5==6) && ((a24==14) && ((((((a7==12) || (a7==13)) || (a7==14)) && (input == 6)) && 255 < a17 ) && a2 <= 189 )))){ + a2 = ((((a2 - -292946) + -155034) % 45)+ 234); + a17 = (((((a17 % 109)+ -95) - -473885) * 1) - 473817); + a7 = 13; + a24 = 13; + a5 = 4; + + return 26; + } else if(((a24==14) && (((a5==5) && ( 255 < a17 && (((a7==13) || (a7==14)) && (input == 3)))) && ((189 < a2) && (281 >= a2)) ))){ + a17 = (((((a17 + -251055) % 71)+ 183) + 492006) + -492005); + a7 = 12; + + return -1; + } else if((( 255 < a17 && ((((input == 2) && (a7==14)) && a2 <= 189 ) && (a5==5))) && (a24==15))){ + a17 = ((((a17 / 5) * 4) * -6)/ 10); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((a5==4) && (((a7==13) && ( 255 < a17 && ((a24==15) && (input == 3)))) && ((189 < a2) && (281 >= a2)) ))){ + a17 = ((((a17 % 109)- 46) - 573448) + 573425); + a24 = 14; + + return -1; + } else if((( ((189 < a2) && (281 >= a2)) && (((a5==3) && ((input == 3) && (a24==15))) && (a7==14))) && ((111 < a17) && (255 >= a17)) )){ + a2 = (((a2 - 230215) / 5) + -123947); + a17 = ((((a17 / 5) * 10)/ -2) * 5); + a7 = 12; + a24 = 13; + + return -1; + } else if(( ((189 < a2) && (281 >= a2)) && ((( ((111 < a17) && (255 >= a17)) && ((input == 4) && ((a7==12) || (a7==13)))) && (a5==4)) && (a24==13)))){ + a2 = ((((a2 * -5) * 10)/ 9) * 5); + a17 = (((a17 * 5) * 5) / 5); + a7 = 12; + a24 = 14; + a5 = 7; + + return -1; + } else if(((( 255 < a17 && ( a2 <= 189 && ((input == 4) && ((a7==12) || (a7==13))))) && (a5==4)) && (a24==15))){ + a17 = ((((((a17 % 71)+ 177) * 9)/ 10) + -198267) + 198271); + a7 = 12; + a24 = 13; + a5 = 6; + + return 26; + } else if(( a2 <= 189 && ((input == 3) && (((a5==7) && ((a24==13) && ((a7==13) && a17 <= -108 ))) || (((( 255 < a17 && (a7==14)) && (a24==15)) && (a5==6)) || ((a5==7) && ((a24==13) && ( a17 <= -108 && (a7==12))))))))){ + a2 = (((((a2 % 45)+ 235) - -2) - 281898) - -281896); + a17 = (((((a17 * 9)/ 10) % 299946)- 300053) - 2); + a7 = 13; + a24 = 15; + a5 = 3; + + return 26; + } else if(((((a5==6) && ((((a7==13) || (a7==14)) && (input == 1)) && ((111 < a17) && (255 >= a17)) )) && a2 <= 189 ) && (a24==15))){ + a2 = ((((a2 + 0) % 45)- -235) + -1); + a7 = 13; + a24 = 13; + a5 = 3; + + return 23; + } else if((((a5==6) && (((a24==14) && ((((a7==12) || (a7==13)) || (a7==14)) && (input == 4))) && 255 < a17 )) && a2 <= 189 )){ + a2 = (((((a2 - 0) % 45)+ 236) + 67568) - 67569); + a7 = 12; + a24 = 13; + a5 = 3; + + return 23; + } else if((((((a24==15) && ((input == 3) && ((111 < a17) && (255 >= a17)) )) && a2 <= 189 ) && (a5==6)) && (a7==12))){ + + return 23; + } else if((( ((189 < a2) && (281 >= a2)) && ((a24==14) && ( 255 < a17 && (((a7==13) || (a7==14)) && (input == 2))))) && (a5==4))){ + a2 = (((a2 - 517350) / 5) + -227328); + a17 = ((((a17 * 9)/ 10) + -544188) / 5); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((((((a5==5) && (((a7==12) || (a7==13)) && (input == 1))) && (a24==14)) && a2 <= 189 ) && ((111 < a17) && (255 >= a17)) )){ + a2 = (((((a2 % 45)- -236) * 5) % 45)- -234); + a7 = 13; + a5 = 3; + + return 26; + } else if(((a24==14) && (( ((189 < a2) && (281 >= a2)) && ((((a7==13) || (a7==14)) && (input == 1)) && (a5==4))) && 255 < a17 ))){ + a17 = ((((((a17 % 71)+ 148) * 9)/ 10) * 9)/ 10); + a7 = 14; + a24 = 13; + + return -1; + } else if(( ((189 < a2) && (281 >= a2)) && ((((input == 2) && (( ((-108 < a17) && (111 >= a17)) && (a7==12)) || (( a17 <= -108 && (a7==13)) || ((a7==14) && a17 <= -108 )))) && (a5==4)) && (a24==13)))){ + a2 = (((a2 - 478599) * 1) * 1); + a17 = ((((a17 / 5) / 5) / 5) + -495670); + a7 = 12; + a5 = 3; + + return -1; + } else if((( ((-108 < a17) && (111 >= a17)) && ((((input == 3) && ((a7==12) || (a7==13))) && (a24==13)) && (a5==3))) && ((189 < a2) && (281 >= a2)) )){ + a2 = (((a2 * -5) + -578339) + -2272); + a17 = ((((a17 % 71)+ 183) + 2) - 1); + a7 = 14; + a5 = 7; + + return -1; + } else if(((a5==7) && (((input == 5) && ((((a24==14) && ( 255 < a17 && (a7==13))) || ((a24==14) && ((a7==14) && 255 < a17 ))) || (( a17 <= -108 && (a7==12)) && (a24==15)))) && a2 <= 189 ))){ + a17 = (((((a17 * 9)/ 10) % 109)- -2) + -1); + a7 = 14; + a24 = 14; + + return -1; + } else if(((a5==4) && ( a17 <= -108 && ((((input == 3) && (a24==13)) && (a7==12)) && ((189 < a2) && (281 >= a2)) )))){ + a2 = ((((a2 + -508787) / 5) * 10)/ 9); + a17 = (((((a17 + 0) % 71)+ 254) * 9)/ 10); + a24 = 15; + + return -1; + } else if((( a17 <= -108 && (((a5==6) && ((input == 5) && ((a7==13) || (a7==14)))) && (a24==14))) && a2 <= 189 )){ + a2 = ((((((a2 % 45)+ 236) - 1) / 5) * 51)/ 10); + a17 = ((((a17 % 109)- -32) + -26) - -40); + a7 = 14; + a5 = 3; + + return 23; + } else if((((a24==13) && (((input == 3) && (( ((-108 < a17) && (111 >= a17)) && (a7==14)) || ( ((111 < a17) && (255 >= a17)) && (a7==12)))) && ((189 < a2) && (281 >= a2)) )) && (a5==3))){ + a17 = (((((a17 % 109)+ 1) + 536699) + 4168) - 540865); + a7 = 13; + + return -1; + } else if((((a24==13) && ((((( ((111 < a17) && (255 >= a17)) && (a7==13)) || ((a7==14) && ((111 < a17) && (255 >= a17)) )) || ( 255 < a17 && (a7==12))) && (input == 1)) && ((189 < a2) && (281 >= a2)) )) && (a5==3))){ + a2 = (((a2 * 5) / -5) - 131726); + a17 = (((((a17 / 5) / 5) - 197914) % 109)+ 43); + a7 = 13; + a24 = 14; + a5 = 5; + + return -1; + } else if(((a24==13) && ( a17 <= -108 && (((a5==6) && (((a7==12) || (a7==13)) && (input == 2))) && ((189 < a2) && (281 >= a2)) )))){ + a2 = (((a2 + 123909) - 483346) - 41719); + a7 = 12; + a5 = 3; + + return -1; + } else if((((a5==3) && ((a24==14) && ((input == 5) && (( ((111 < a17) && (255 >= a17)) && (a7==12)) || (((a7==13) && ((-108 < a17) && (111 >= a17)) ) || ((a7==14) && ((-108 < a17) && (111 >= a17)) )))))) && ((189 < a2) && (281 >= a2)) )){ + a2 = ((((a2 - -143250) / -5) * 10)/ 9); + a17 = ((((a17 % 71)+ 183) / 5) + 104); + a7 = 12; + a24 = 15; + a5 = 4; + + return -1; + } else if(( ((-108 < a17) && (111 >= a17)) && (((a7==12) && ( ((189 < a2) && (281 >= a2)) && ((a24==15) && (input == 2)))) && (a5==5)))){ + a2 = (((a2 + -139817) - 311967) / 5); + a17 = (((a17 - 584030) / 5) / 5); + a24 = 13; + a5 = 3; + + return -1; + } else if(((a24==13) && ((a5==6) && (((( ((111 < a17) && (255 >= a17)) && (a7==12)) || (((a7==13) && ((-108 < a17) && (111 >= a17)) ) || ((a7==14) && ((-108 < a17) && (111 >= a17)) ))) && (input == 4)) && a2 <= 189 )))){ + a2 = (((((a2 * 9)/ 10) % 45)- -236) + -2); + a17 = ((((a17 % 71)+ 183) + 2) + -3); + a7 = 14; + + return 21; + } else if(( ((-108 < a17) && (111 >= a17)) && ((a24==15) && ((a5==4) && ((((a7==13) || (a7==14)) && (input == 3)) && a2 <= 189 ))))){ + a17 = ((((a17 + -240122) * 10)/ -9) / 5); + a7 = 12; + a24 = 13; + a5 = 5; + + return 26; + } else if(( a2 <= 189 && ((a5==6) && ( a17 <= -108 && ((a24==14) && (((a7==13) || (a7==14)) && (input == 6))))))){ + a2 = (((((a2 % 45)- -236) - -1) - -152243) - 152245); + a7 = 12; + a5 = 3; + + return 26; + } else if(((a5==6) && (((a24==13) && (((( ((111 < a17) && (255 >= a17)) && (a7==13)) || ( ((111 < a17) && (255 >= a17)) && (a7==14))) || ((a7==12) && 255 < a17 )) && (input == 4))) && a2 <= 189 ))){ + a2 = (((((a2 % 45)+ 236) - -249333) - 625277) - -375944); + a17 = ((((((a17 % 109)- -1) - 100) * 5) % 109)+ 2); + a7 = 13; + a5 = 4; + + return 26; + } else if((((((( 255 < a17 && (a7==12)) || (( ((111 < a17) && (255 >= a17)) && (a7==13)) || ((a7==14) && ((111 < a17) && (255 >= a17)) ))) && (input == 2)) && (a5==6)) && a2 <= 189 ) && (a24==13))){ + a2 = (((((a2 % 45)- -234) + -442292) - -617405) - 175110); + a17 = ((((((a17 * 9)/ 10) % 71)- -115) / 5) - -197); + a7 = 13; + a24 = 14; + a5 = 3; + + return 21; + } else if((( a2 <= 189 && ((((a7==14) && (input == 4)) && (a5==5)) && (a24==14))) && a17 <= -108 )){ + a2 = ((((a2 % 45)+ 235) - 1) + 2); + a17 = ((((a17 % 109)+ 8) - 7) - -91); + a7 = 13; + a24 = 13; + a5 = 3; + + return 26; + } else if((( a2 <= 189 && ((a24==14) && ((input == 4) && (((a7==13) && ((111 < a17) && (255 >= a17)) ) || (( ((-108 < a17) && (111 >= a17)) && (a7==14)) || ((a7==12) && ((111 < a17) && (255 >= a17)) )))))) && (a5==7))){ + a17 = ((((a17 - 363253) / 5) + -406812) + 479520); + a7 = 13; + + return -1; + } else if((( a2 <= 189 && ((((((a7==12) || (a7==13)) || (a7==14)) && (input == 6)) && (a24==14)) && (a5==5))) && 255 < a17 )){ + a17 = (((((a17 * 9)/ 10) / 5) * 10)/ -4); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((((((a5==7) && (((a7==14) || ((a7==12) || (a7==13))) && (input == 5))) && a2 <= 189 ) && (a24==15)) && ((111 < a17) && (255 >= a17)) )){ + a17 = ((((a17 / 5) + -515705) * 10)/ 9); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((( a17 <= -108 && ((a5==5) && ((input == 2) && (a24==14)))) && (a7==14)) && a2 <= 189 )){ + + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(( a2 <= 189 && ( ((-108 < a17) && (111 >= a17)) && ((a5==6) && ((((a7==14) || ((a7==12) || (a7==13))) && (input == 3)) && (a24==14)))))){ + a2 = (((((a2 + 0) / 5) * 4) % 45)+ 234); + a7 = 12; + a5 = 3; + + return 26; + } else if((((a24==15) && ((((input == 2) && a2 <= 189 ) && (a7==12)) && (a5==7))) && 255 < a17 )){ + a17 = ((((a17 - 570713) - 29535) / 5) - 458064); + a24 = 13; + a5 = 3; + + return -1; + } else if((((a5==5) && (((input == 3) && ((( ((-108 < a17) && (111 >= a17)) && (a7==14)) || ((a7==12) && ((111 < a17) && (255 >= a17)) )) || ( ((111 < a17) && (255 >= a17)) && (a7==13)))) && a2 <= 189 )) && (a24==15))){ + a2 = ((((((a2 * 9)/ 10) * 1) - 13827) % 45)+ 249); + a17 = ((((a17 % 109)+ 1) - -2) + -2); + a7 = 14; + a5 = 4; + + return 26; + } else if((((a24==15) && ( a2 <= 189 && ((input == 4) && ((( ((-108 < a17) && (111 >= a17)) && (a7==14)) || ((a7==12) && ((111 < a17) && (255 >= a17)) )) || ( ((111 < a17) && (255 >= a17)) && (a7==13)))))) && (a5==5))){ + a2 = (((((a2 % 45)- -235) - 195114) - 258356) - -453470); + a17 = (((((a17 + 155793) % 109)- 63) + 567392) - 567346); + a7 = 13; + a5 = 4; + + return 23; + } else if((((a24==14) && ((a5==4) && ((((a7==14) && ((-108 < a17) && (111 >= a17)) ) || ((a7==12) && ((111 < a17) && (255 >= a17)) )) && (input == 6)))) && ((189 < a2) && (281 >= a2)) )){ + a17 = ((((a17 - -528091) - 699874) + 649609) + -972756); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((( 255 < a17 && ((a24==15) && (((((a7==12) || (a7==13)) || (a7==14)) && (input == 1)) && ((189 < a2) && (281 >= a2)) ))) && (a5==3))){ + a2 = (((a2 / -5) - 163348) + 56585); + a7 = 14; + + return -1; + } else if(( ((189 < a2) && (281 >= a2)) && ((a5==3) && ((a24==15) && ((input == 5) && (((a7==12) && ((-108 < a17) && (111 >= a17)) ) || (((a7==13) && a17 <= -108 ) || ( a17 <= -108 && (a7==14))))))))){ + a2 = (((a2 / -5) + -568912) + -5609); + a17 = (((((a17 % 71)+ 184) + -1) / 5) - -182); + a7 = 12; + a5 = 4; + + return 23; + } else if(((a24==13) && ((((input == 1) && (((a7==14) && ((111 < a17) && (255 >= a17)) ) || ( 255 < a17 && (a7==12)))) && (a5==4)) && ((189 < a2) && (281 >= a2)) ))){ + a2 = ((((a2 - 161488) * 3) + 590787) + -671028); + a17 = ((((a17 - 600109) + 22162) + -18521) - 3641); + a7 = 12; + a24 = 14; + a5 = 7; + + return -1; + } else if(((a5==6) && (((a24==14) && (((input == 3) && (((a7==12) || (a7==13)) || (a7==14))) && a2 <= 189 )) && 255 < a17 ))){ + + a7 = 14; + + return 26; + } else if((((((input == 6) && (( 255 < a17 && (a7==12)) || (( ((111 < a17) && (255 >= a17)) && (a7==13)) || ( ((111 < a17) && (255 >= a17)) && (a7==14))))) && (a24==14)) && ((189 < a2) && (281 >= a2)) ) && (a5==4))){ + a2 = (((a2 - 579407) - 8118) * 1); + a17 = (((((a17 % 109)+ 3) + -458073) + 848155) + -390111); + a7 = 13; + a24 = 15; + a5 = 5; + + return -1; + } else if(((((((((a7==14) && 255 < a17 ) && (a24==15)) && (a5==4)) || ((((a7==12) && a17 <= -108 ) && (a24==13)) && (a5==5))) || ((( a17 <= -108 && (a7==13)) && (a24==13)) && (a5==5))) && (input == 5)) && ((189 < a2) && (281 >= a2)) )){ + a17 = ((((a17 % 299872)- -300127) - -1) + 0); + a7 = 14; + a24 = 13; + a5 = 4; + + return -1; + } else if(((a5==5) && ((( ((111 < a17) && (255 >= a17)) && ( a2 <= 189 && (input == 5))) && (a24==13)) && (a7==13)))){ + a17 = (((a17 + -452489) * 1) * 1); + a7 = 12; + a5 = 3; + + return -1; + } else if((( a2 <= 189 && ((a5==7) && ((( ((-108 < a17) && (111 >= a17)) && (a7==14)) || ( ((111 < a17) && (255 >= a17)) && (a7==12))) && (input == 4)))) && (a24==13))){ + a17 = ((((a17 % 109)- -1) / 5) / 5); + a7 = 12; + a24 = 15; + a5 = 4; + + return 21; + } else if((((a24==13) && (((((a7==14) && a17 <= -108 ) || ( ((-108 < a17) && (111 >= a17)) && (a7==12))) && (input == 6)) && (a5==5))) && ((189 < a2) && (281 >= a2)) )){ + a2 = ((((a2 / 5) + -341809) * 10)/ 9); + a17 = (((((a17 % 299872)- -300127) - 515739) + 17318) - -498422); + a7 = 12; + a24 = 15; + a5 = 7; + + return -1; + } else if(((((a24==15) && ((((a7==13) || (a7==14)) && (input == 3)) && a2 <= 189 )) && (a5==7)) && ((-108 < a17) && (111 >= a17)) )){ + + a7 = 14; + a24 = 14; + + return -1; + } else if(((a7==12) && (( a2 <= 189 && (((input == 5) && (a5==4)) && (a24==15))) && ((-108 < a17) && (111 >= a17)) ))){ + a17 = (((a17 - 277016) * 2) + -6397); + a24 = 13; + a5 = 3; + + return -1; + } else if(((a5==7) && (((((a24==15) && ( a17 <= -108 && (a7==12))) || (((a24==14) && ((a7==13) && 255 < a17 )) || ((a24==14) && ( 255 < a17 && (a7==14))))) && (input == 1)) && a2 <= 189 ))){ + a17 = ((((a17 % 299872)- -300127) + 1) + 0); + a7 = 12; + a24 = 13; + + return -1; + } else if(( ((111 < a17) && (255 >= a17)) && (((a5==5) && ((a24==15) && ((input == 5) && ((a7==14) || ((a7==12) || (a7==13)))))) && ((189 < a2) && (281 >= a2)) ))){ + + a7 = 13; + a24 = 13; + a5 = 4; + + return -1; + } else if(((a5==5) && (((((a24==14) && ( a17 <= -108 && (a7==13))) || (((a24==13) && ((a7==14) && 255 < a17 )) || ((a24==14) && ((a7==12) && a17 <= -108 )))) && (input == 4)) && a2 <= 189 ))){ + a17 = ((((a17 + 0) - 0) / 5) + -383300); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((((((((a7==13) && ((111 < a17) && (255 >= a17)) ) || (((a7==14) && ((-108 < a17) && (111 >= a17)) ) || ((a7==12) && ((111 < a17) && (255 >= a17)) ))) && (input == 5)) && (a24==15)) && (a5==3)) && ((189 < a2) && (281 >= a2)) )){ + a2 = (((a2 - 219315) + -185024) / 5); + a17 = ((((a17 + -245709) % 71)- -191) * 1); + a7 = 13; + a24 = 13; + + return -1; + } else if((((a5==6) && ((a24==13) && ((( ((-108 < a17) && (111 >= a17)) && (a7==14)) || ( ((111 < a17) && (255 >= a17)) && (a7==12))) && (input == 2)))) && ((189 < a2) && (281 >= a2)) )){ + a2 = (((a2 * -5) / 5) + -556465); + a17 = (((a17 / 5) + -548457) + -1247); + a7 = 12; + a5 = 3; + + return -1; + } else if(((a24==15) && (((((input == 5) && (a5==7)) && a2 <= 189 ) && 255 < a17 ) && (a7==12)))){ + a17 = ((((((a17 * 9)/ 10) * 1) - 509339) % 71)+ 183); + a7 = 13; + a24 = 14; + + return -1; + } else if((((a5==7) && (((input == 2) && (((a7==14) && ((-108 < a17) && (111 >= a17)) ) || ((a7==12) && ((111 < a17) && (255 >= a17)) ))) && a2 <= 189 )) && (a24==13))){ + a2 = ((((((a2 % 45)+ 236) * 5) - -150446) % 45)- -205); + a17 = ((((a17 + -490890) / 5) + -314798) + 884206); + a7 = 14; + a24 = 14; + a5 = 3; + + return 23; + } else if((( 255 < a17 && (( a2 <= 189 && ((a24==15) && (input == 6))) && (a5==5))) && (a7==14))){ + a2 = (((((a2 * 9)/ 10) % 45)- -234) + 2); + a17 = (((((a17 / 5) + 157023) - 304246) % 109)+ 90); + a7 = 13; + a24 = 14; + + return 23; + } else if(((((a5==6) && (((((a7==13) && a17 <= -108 ) || ( a17 <= -108 && (a7==14))) || ( ((-108 < a17) && (111 >= a17)) && (a7==12))) && (input == 2))) && a2 <= 189 ) && (a24==13))){ + a17 = ((((a17 % 299946)- 300053) * 1) - 1); + a7 = 12; + a5 = 3; + + return -1; + } else if(( ((111 < a17) && (255 >= a17)) && ((a5==6) && ((((input == 2) && ((a7==14) || ((a7==12) || (a7==13)))) && a2 <= 189 ) && (a24==14))))){ + a2 = (((((a2 + 0) * 9)/ 10) % 45)- -236); + a17 = ((((a17 + -217095) - -761433) * -1)/ 10); + a7 = 12; + a24 = 13; + a5 = 4; + + return 21; + } else if(( a2 <= 189 && (((a7==14) && (((input == 1) && ((111 < a17) && (255 >= a17)) ) && (a5==5))) && (a24==14)))){ + a2 = ((((a2 % 45)- -234) - 10732) - -10732); + a24 = 15; + a5 = 3; + + return 26; + } else if(( a17 <= -108 && ((( ((189 < a2) && (281 >= a2)) && ((a5==3) && (input == 1))) && (a7==12)) && (a24==13)))){ + a2 = (((a2 + -187375) * 3) - -239890); + a17 = ((((((a17 % 71)- -216) * 9)/ 10) * 10)/ 9); + a7 = 13; + a24 = 15; + a5 = 7; + + return -1; + } else if(((((((((a7==13) && ((111 < a17) && (255 >= a17)) ) || ((a7==14) && ((111 < a17) && (255 >= a17)) )) || ((a7==12) && 255 < a17 )) && (input == 1)) && (a5==5)) && (a24==14)) && ((189 < a2) && (281 >= a2)) )){ + a17 = ((((a17 - 309533) % 299872)- -300127) * 1); + a7 = 14; + a24 = 13; + a5 = 4; + + return -1; + } else if((( ((189 < a2) && (281 >= a2)) && (((((a7==14) && ((-108 < a17) && (111 >= a17)) ) || ( ((111 < a17) && (255 >= a17)) && (a7==12))) && (input == 4)) && (a24==13))) && (a5==3))){ + a2 = (((a2 / 5) / 5) + -113113); + a17 = ((((a17 + -152498) - 120570) * 10)/ 9); + a7 = 14; + a24 = 14; + a5 = 5; + + return 21; + } else if(( ((189 < a2) && (281 >= a2)) && ((a5==3) && ((((( 255 < a17 && (a7==13)) && (a24==13)) || (( 255 < a17 && (a7==14)) && (a24==13))) || (((a7==12) && a17 <= -108 ) && (a24==14))) && (input == 4))))){ + a2 = (((a2 + -277502) * 2) - 40398); + a17 = ((((a17 + 0) / 5) + 23146) - 484422); + a7 = 12; + a24 = 13; + + return -1; + } else if(((a24==13) && ((a5==3) && ( ((189 < a2) && (281 >= a2)) && ((input == 4) && ((( ((111 < a17) && (255 >= a17)) && (a7==13)) || ((a7==14) && ((111 < a17) && (255 >= a17)) )) || ((a7==12) && 255 < a17 ))))))){ + a2 = (((a2 / 5) / -5) - 183721); + a17 = ((((a17 % 109)+ -83) + -12) + 78); + a7 = 13; + a24 = 14; + a5 = 5; + + return 26; + } else if((((((input == 3) && (( 255 < a17 && (a7==12)) || (( ((111 < a17) && (255 >= a17)) && (a7==13)) || ((a7==14) && ((111 < a17) && (255 >= a17)) )))) && (a24==13)) && (a5==6)) && a2 <= 189 )){ + a2 = ((((a2 + 0) % 45)- -234) * 1); + a17 = (((((a17 * 9)/ 10) * 1) % 71)- -138); + a7 = 13; + a24 = 15; + a5 = 3; + + return 26; + } else if(((a24==13) && ( ((189 < a2) && (281 >= a2)) && ((a5==4) && (((input == 5) && ((a7==12) || (a7==13))) && ((111 < a17) && (255 >= a17)) ))))){ + + a7 = 13; + + return -1; + } else if(((a5==4) && (( ((189 < a2) && (281 >= a2)) && ((input == 4) && (( ((-108 < a17) && (111 >= a17)) && (a7==12)) || (((a7==13) && a17 <= -108 ) || ((a7==14) && a17 <= -108 ))))) && (a24==13)))){ + a2 = (((a2 * 5) * 5) + -590870); + a17 = ((((a17 + 439473) + -202777) % 299946)+ -300053); + a7 = 12; + a5 = 3; + + return -1; + } else if(((a24==15) && (( 255 < a17 && ((a5==5) && ((input == 3) && (((a7==12) || (a7==13)) || (a7==14))))) && ((189 < a2) && (281 >= a2)) ))){ + a2 = (((a2 - -345840) * 1) * -1); + a17 = ((((a17 % 109)- 50) - 15) / 5); + a7 = 13; + a5 = 7; + + return -1; + } else if(( a2 <= 189 && (( ((111 < a17) && (255 >= a17)) && (((input == 2) && (((a7==12) || (a7==13)) || (a7==14))) && (a5==7))) && (a24==15)))){ + a17 = ((((a17 / 5) + -289356) * 10)/ 9); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((a5==4) && ((a24==13) && (((((a7==12) && ((-108 < a17) && (111 >= a17)) ) || (((a7==13) && a17 <= -108 ) || ( a17 <= -108 && (a7==14)))) && (input == 6)) && ((189 < a2) && (281 >= a2)) )))){ + a17 = (((((a17 % 299872)- -300127) / 5) / 5) - -212547); + a7 = 14; + a24 = 14; + a5 = 3; + + return -1; + } else if(( ((-108 < a17) && (111 >= a17)) && ( a2 <= 189 && ((a24==15) && ((((a7==13) || (a7==14)) && (input == 6)) && (a5==6)))))){ + a2 = ((((a2 % 45)+ 234) / 5) - -178); + a7 = 14; + a5 = 3; + + return 26; + } else if(( ((-108 < a17) && (111 >= a17)) && (((((a24==15) && (input == 2)) && ((189 < a2) && (281 >= a2)) ) && (a5==4)) && (a7==13)))){ + a2 = (((a2 + -185317) * 3) * 1); + a17 = (((a17 - -209383) / 5) + -402688); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((((a5==4) && ((a24==13) && ((input == 4) && a17 <= -108 ))) && (a7==12)) && ((189 < a2) && (281 >= a2)) )){ + a2 = ((((a2 + -340540) + -216382) - -1035898) * -1); + a17 = ((((a17 % 299872)- -300127) - 43079) + 207436); + a7 = 14; + a24 = 14; + a5 = 5; + + return -1; + } else if(( ((189 < a2) && (281 >= a2)) && ((a5==3) && (((input == 1) && ((( a17 <= -108 && (a7==13)) || ((a7==14) && a17 <= -108 )) || ( ((-108 < a17) && (111 >= a17)) && (a7==12)))) && (a24==14))))){ + a2 = (((a2 * 5) * 5) - 195095); + a17 = ((((((a17 * 9)/ 10) * 1) * 1) % 109)+ 2); + a7 = 13; + a5 = 5; + + return 26; + } else if(((a5==4) && (( ((189 < a2) && (281 >= a2)) && ((((a7==12) || (a7==13)) && (input == 4)) && a17 <= -108 )) && (a24==14)))){ + + a7 = 12; + + return -1; + } else if(( a2 <= 189 && ( ((111 < a17) && (255 >= a17)) && ((a7==12) && ((a5==4) && ((a24==15) && (input == 4))))))){ + a17 = ((((a17 * 5) * 5) * 10)/ -9); + a24 = 13; + a5 = 3; + + return -1; + } else if(( ((189 < a2) && (281 >= a2)) && (( ((-108 < a17) && (111 >= a17)) && ((a7==13) && ((input == 6) && (a5==3)))) && (a24==15)))){ + a2 = (((a2 + 505188) / 5) - 263894); + a17 = (((((a17 % 71)- -182) + 569253) * 1) + -569250); + a7 = 12; + a5 = 4; + + return -1; + } else if(( a2 <= 189 && ((input == 6) && ((((((a7==14) && 255 < a17 ) && (a24==15)) && (a5==6)) || ((((a7==12) && a17 <= -108 ) && (a24==13)) && (a5==7))) || (((a24==13) && ( a17 <= -108 && (a7==13))) && (a5==7)))))){ + a2 = (((((a2 % 45)- -236) + -2) / 5) - -177); + a17 = ((((a17 % 299872)- -300127) / 5) - -33046); + a7 = 12; + a24 = 13; + a5 = 3; + + return 23; + } else if(((( ((189 < a2) && (281 >= a2)) && (((input == 6) && ((a7==13) || (a7==14))) && (a24==14))) && 255 < a17 ) && (a5==4))){ + + a7 = 12; + a24 = 13; + + return -1; + } else if(((a5==6) && ((a24==15) && (((a7==13) && ((input == 6) && a17 <= -108 )) && a2 <= 189 )))){ + a2 = (((((a2 % 45)- -235) + 573332) * 1) + -573331); + a17 = ((((a17 % 109)- -40) - 575414) + 575451); + a7 = 14; + a24 = 13; + a5 = 4; + + return 23; + } else if(((a24==15) && ((a5==4) && ((((( ((-108 < a17) && (111 >= a17)) && (a7==14)) || ( ((111 < a17) && (255 >= a17)) && (a7==12))) || ( ((111 < a17) && (255 >= a17)) && (a7==13))) && (input == 4)) && ((189 < a2) && (281 >= a2)) )))){ + a2 = (((a2 * 5) + -205527) + -261072); + a17 = ((((a17 * 5) + 376065) % 71)+ 172); + a7 = 12; + a5 = 5; + + return 21; + } else if((( a2 <= 189 && ((((( 255 < a17 && (a7==13)) && (a24==13)) || (((a7==14) && 255 < a17 ) && (a24==13))) || ((a24==14) && ( a17 <= -108 && (a7==12)))) && (input == 1))) && (a5==6))){ + a2 = ((((a2 % 45)- -235) / 5) * 5); + a17 = (((((a17 * 9)/ 10) % 299946)- 300053) - 1); + a7 = 12; + a24 = 15; + a5 = 3; + + return 26; + } else if(((a7==14) && ((a24==15) && ((((input == 6) && ((111 < a17) && (255 >= a17)) ) && ((189 < a2) && (281 >= a2)) ) && (a5==3))))){ + a17 = (((a17 + -508114) * 1) - 7160); + a7 = 13; + a24 = 14; + + return -1; + } else if((((a5==5) && (( a2 <= 189 && ((input == 5) && (a7==14))) && 255 < a17 )) && (a24==15))){ + a2 = ((((a2 - 0) / 5) % 45)- -236); + a17 = (((a17 - 600247) * 1) * 1); + a7 = 12; + a24 = 14; + + return 21; + } else if(((((a24==13) && ((input == 6) && (( ((-108 < a17) && (111 >= a17)) && (a7==14)) || ((a7==12) && ((111 < a17) && (255 >= a17)) )))) && ((189 < a2) && (281 >= a2)) ) && (a5==6))){ + a17 = (((((a17 / 5) - -11) * 5) % 109)+ 1); + a7 = 12; + a5 = 3; + + return -1; + } else if((((a24==15) && ((a5==4) && ((input == 3) && (( ((111 < a17) && (255 >= a17)) && (a7==13)) || (( ((-108 < a17) && (111 >= a17)) && (a7==14)) || ((a7==12) && ((111 < a17) && (255 >= a17)) )))))) && ((189 < a2) && (281 >= a2)) )){ + a2 = ((((a2 - 251250) * 10)/ 9) + -123956); + a17 = ((((a17 + -55926) + -49743) * 10)/ 9); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((a7==13) && ((a5==6) && ((((input == 2) && 255 < a17 ) && ((189 < a2) && (281 >= a2)) ) && (a24==13))))){ + a2 = ((((a2 + -73789) * 10)/ 9) - 475570); + a17 = (((a17 + -600188) - 1) + -26); + a7 = 12; + a5 = 3; + + return -1; + } else if(( ((111 < a17) && (255 >= a17)) && ((((((a7==13) || (a7==14)) && (input == 4)) && a2 <= 189 ) && (a24==15)) && (a5==4)))){ + + a7 = 13; + a5 = 5; + + return 21; + } + return calculate_output3(input); + } + + int calculate_output3(int input) { + + + if(( a2 <= 189 && ((a24==15) && ((a7==14) && ((a5==5) && ( a17 <= -108 && (input == 2))))))){ + + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((((a24==15) && ( ((-108 < a17) && (111 >= a17)) && ( ((189 < a2) && (281 >= a2)) && ((input == 3) && ((a7==13) || (a7==14)))))) && (a5==5))){ + a2 = (((a2 / 5) * -5) / 5); + a17 = ((((a17 + 77227) + 218385) - 579561) - -466982); + a7 = 12; + a24 = 14; + a5 = 7; + + return -1; + } else if((((a5==5) && ( a2 <= 189 && ((a7==14) && ((a24==13) && (input == 4))))) && ((111 < a17) && (255 >= a17)) )){ + a17 = ((((a17 + -361852) * 1) / 5) - -72429); + a7 = 13; + a24 = 14; + a5 = 7; + + return 21; + } else if(( ((189 < a2) && (281 >= a2)) && ((((a7==13) && ((a5==3) && (input == 3))) && (a24==15)) && ((-108 < a17) && (111 >= a17)) ))){ + + a7 = 14; + a24 = 14; + + return -1; + } else if(((((((((a7==14) && a17 <= -108 ) || ( ((-108 < a17) && (111 >= a17)) && (a7==12))) || ( ((-108 < a17) && (111 >= a17)) && (a7==13))) && (input == 1)) && a2 <= 189 ) && (a5==7)) && (a24==13))){ + a2 = ((((a2 - -278577) * 1) % 45)- -234); + a17 = ((((a17 / 5) % 109)- -2) - 1); + a7 = 13; + a24 = 15; + a5 = 3; + + return 26; + } else if(( ((-108 < a17) && (111 >= a17)) && ((a24==13) && (((a5==3) && ((input == 2) && ((a7==12) || (a7==13)))) && ((189 < a2) && (281 >= a2)) )))){ + a2 = (((a2 + 542429) / -5) + -452431); + a17 = (((((a17 + -62715) % 71)- -200) * 9)/ 10); + a7 = 14; + + return -1; + } else if(((((a5==5) && ((((a7==12) || (a7==13)) && (input == 5)) && (a24==14))) && ((111 < a17) && (255 >= a17)) ) && a2 <= 189 )){ + a17 = ((((a17 * 5) / 5) * 10)/ -9); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((a24==13) && ( 255 < a17 && ( ((189 < a2) && (281 >= a2)) && ((((a7==13) || (a7==14)) && (input == 1)) && (a5==4)))))){ + a2 = ((((a2 + -345206) - -753451) / 5) * -5); + a17 = ((((a17 % 109)- 98) - 8) + 96); + a7 = 12; + a24 = 15; + a5 = 7; + + return -1; + } else if(( 255 < a17 && (((a24==14) && ((a5==5) && ((input == 1) && ((a7==13) || (a7==14))))) && ((189 < a2) && (281 >= a2)) ))){ + a2 = (((a2 * 5) + 150678) + -312416); + a17 = (((((a17 + 0) + 0) / 5) % 71)+ 147); + a7 = 13; + a5 = 7; + + return -1; + } else if(((((((input == 2) && (((a7==12) || (a7==13)) || (a7==14))) && 255 < a17 ) && ((189 < a2) && (281 >= a2)) ) && (a24==13)) && (a5==5))){ + a2 = (((a2 + -439935) * 1) * 1); + a17 = (((a17 - 581561) + -18563) - 36); + a7 = 12; + a5 = 3; + + return -1; + } else if((( a2 <= 189 && (((input == 2) && ((((a7==14) && ((-108 < a17) && (111 >= a17)) ) || ( ((111 < a17) && (255 >= a17)) && (a7==12))) || ((a7==13) && ((111 < a17) && (255 >= a17)) ))) && (a5==7))) && (a24==14))){ + a17 = (((a17 - 547158) * 1) * 1); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((a5==3) && ((a24==14) && ( ((189 < a2) && (281 >= a2)) && ((input == 2) && ((((a7==14) && ((111 < a17) && (255 >= a17)) ) || ((a7==12) && 255 < a17 )) || ( 255 < a17 && (a7==13)))))))){ + a2 = (((a2 * -5) * 5) - 267645); + a17 = ((((((a17 * 9)/ 10) % 71)+ 146) - 7467) - -7498); + a7 = 12; + a24 = 15; + a5 = 4; + + return 23; + } else if((((a5==5) && (( a2 <= 189 && (((a7==14) || ((a7==12) || (a7==13))) && (input == 5))) && (a24==14))) && 255 < a17 )){ + a17 = (((a17 + -600255) + -1) + 0); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((((a5==6) && (( ((189 < a2) && (281 >= a2)) && ((input == 5) && (a7==14))) && a17 <= -108 )) && (a24==13))){ + a17 = ((((((a17 % 109)- -39) * 5) - 208544) % 109)+ 56); + a5 = 3; + + return -1; + } else if(((a7==14) && ( ((189 < a2) && (281 >= a2)) && ((( a17 <= -108 && (input == 3)) && (a24==13)) && (a5==6))))){ + a2 = (((a2 + -369894) + -119659) - 59892); + a7 = 12; + a5 = 3; + + return -1; + } else if((((a7==14) && (((a5==5) && ((input == 1) && (a24==13))) && ((111 < a17) && (255 >= a17)) )) && a2 <= 189 )){ + a17 = (((((a17 * 10)/ -9) - -538584) * 1) - 852442); + a7 = 12; + a24 = 15; + a5 = 7; + + return 23; + } else if((( a2 <= 189 && ((((input == 3) && ((a7==12) || (a7==13))) && (a5==6)) && 255 < a17 )) && (a24==15))){ + a2 = ((((a2 - 0) % 45)+ 235) + 1); + a17 = ((((a17 - 0) % 109)- 13) - -1); + a7 = 13; + a24 = 13; + a5 = 4; + + return 26; + } else if((((a24==15) && ( ((189 < a2) && (281 >= a2)) && ((((a7==14) && ((111 < a17) && (255 >= a17)) ) || ( 255 < a17 && (a7==12))) && (input == 2)))) && (a5==4))){ + a2 = (((a2 * 5) / -5) * 5); + a17 = (((a17 + -600110) * 1) + -1); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(( ((189 < a2) && (281 >= a2)) && (((((a24==14) && ( 255 < a17 && (a7==14))) || ((a24==15) && ( a17 <= -108 && (a7==12)))) && (input == 5)) && (a5==3)))){ + a2 = (((a2 * -5) - 176348) - 175983); + a17 = ((((a17 % 71)- -182) + 3) - 3); + a7 = 12; + a24 = 13; + a5 = 7; + + return -1; + } else if(((((((input == 3) && (((a7==12) || (a7==13)) || (a7==14))) && 255 < a17 ) && a2 <= 189 ) && (a24==14)) && (a5==5))){ + a2 = (((((a2 + 252809) % 45)+ 234) - -188524) + -188523); + a17 = ((((((a17 / 5) % 109)+ 1) * 5) % 109)+ 3); + a7 = 14; + a24 = 13; + a5 = 4; + + return 21; + } else if(( a2 <= 189 && ((a24==14) && ( ((-108 < a17) && (111 >= a17)) && ((a7==13) && ((input == 3) && (a5==7))))))){ + a17 = (((a17 - 479950) * 1) / 5); + a7 = 12; + + return -1; + } else if((((((( ((-108 < a17) && (111 >= a17)) && (a7==13)) || (( a17 <= -108 && (a7==14)) || ((a7==12) && ((-108 < a17) && (111 >= a17)) ))) && (input == 1)) && a2 <= 189 ) && (a5==5)) && (a24==13))){ + a17 = ((((a17 - -331363) % 109)- -1) + 0); + a7 = 12; + a24 = 14; + a5 = 6; + + return 21; + } else if((( 255 < a17 && (( ((189 < a2) && (281 >= a2)) && ((input == 4) && (((a7==12) || (a7==13)) || (a7==14)))) && (a24==15))) && (a5==3))){ + a2 = ((((a2 * 5) / 5) - -456557) * -1); + a17 = (((a17 / 5) * 4) + -534343); + a7 = 13; + a24 = 13; + + return -1; + } else if((((a24==15) && (((input == 2) && (( a17 <= -108 && (a7==14)) || ( ((-108 < a17) && (111 >= a17)) && (a7==12)))) && a2 <= 189 )) && (a5==6))){ + a17 = ((((a17 % 299946)- 300053) / 5) + -177770); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(( a2 <= 189 && (((a24==15) && (((input == 4) && ((a7==13) || (a7==14))) && (a5==7))) && 255 < a17 ))){ + + a7 = 13; + a24 = 13; + + return -1; + } else if(((a5==3) && ( ((189 < a2) && (281 >= a2)) && ((input == 4) && ((( 255 < a17 && (a7==14)) && (a24==14)) || ((a24==15) && ( a17 <= -108 && (a7==12)))))))){ + a17 = (((((a17 % 299872)+ 300127) + 0) + -528429) + 528430); + a7 = 13; + a24 = 14; + + return -1; + } else if((((a24==14) && ((a5==4) && ((( ((-108 < a17) && (111 >= a17)) && (a7==14)) || ( ((111 < a17) && (255 >= a17)) && (a7==12))) && (input == 1)))) && ((189 < a2) && (281 >= a2)) )){ + a2 = (((a2 + -412962) - 162289) + -93); + a17 = ((((a17 + 200708) / 5) - -224575) + -264525); + a7 = 13; + a24 = 15; + + return 21; + } else if(( 255 < a17 && ((a5==4) && ((((a7==13) && (input == 2)) && ((189 < a2) && (281 >= a2)) ) && (a24==15))))){ + a2 = ((((a2 + 17174) - -390384) * 1) * -1); + a17 = (((a17 + -200385) - 399757) + -108); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((((((a5==5) && ((input == 3) && ((a7==14) || ((a7==12) || (a7==13))))) && (a24==15)) && ((189 < a2) && (281 >= a2)) ) && ((111 < a17) && (255 >= a17)) )){ + a2 = (((a2 / 5) / 5) * 5); + a7 = 14; + a24 = 13; + a5 = 7; + + return -1; + } else if(((a24==15) && ( a2 <= 189 && ((a5==6) && (((input == 1) && ((a7==13) || (a7==14))) && ((-108 < a17) && (111 >= a17)) ))))){ + a2 = ((((a2 % 45)- -236) + 1) - 2); + a17 = ((((a17 * 5) % 71)- -183) + -1); + a7 = 14; + a24 = 14; + a5 = 3; + + return 21; + } else if((((a24==13) && (((input == 5) && ((((a7==13) && a17 <= -108 ) || ( a17 <= -108 && (a7==14))) || ((a7==12) && ((-108 < a17) && (111 >= a17)) ))) && a2 <= 189 )) && (a5==6))){ + a2 = ((((a2 % 45)+ 235) - 1) + 1); + a17 = ((((a17 - 0) % 299872)- -300127) * 1); + a7 = 13; + a24 = 15; + a5 = 5; + + return 26; + } else if((((((a24==14) && (((a7==14) || ((a7==12) || (a7==13))) && (input == 1))) && a2 <= 189 ) && (a5==5)) && ((-108 < a17) && (111 >= a17)) )){ + a2 = ((((a2 % 45)+ 234) + 293810) + -293808); + a7 = 12; + a5 = 3; + + return 23; + } else if(((((((a24==15) && (input == 1)) && (a5==4)) && (a7==12)) && ((111 < a17) && (255 >= a17)) ) && a2 <= 189 )){ + + a7 = 14; + a24 = 14; + a5 = 5; + + return 23; + } else if(((a5==5) && ( ((-108 < a17) && (111 >= a17)) && ((((input == 5) && ((a7==12) || (a7==13))) && a2 <= 189 ) && (a24==15))))){ + a2 = (((((a2 % 45)+ 236) - 49315) / 5) + 10068); + a17 = (((a17 + -103117) / 5) - 439137); + a7 = 13; + a5 = 4; + + return 21; + } else if(( ((189 < a2) && (281 >= a2)) && ((a24==13) && ((a5==4) && ( ((111 < a17) && (255 >= a17)) && ((input == 3) && ((a7==12) || (a7==13)))))))){ + a2 = ((((a2 * -5) - 314138) - -565933) + -292419); + a17 = (((a17 + -173172) + -177178) * 1); + a7 = 13; + a24 = 15; + a5 = 5; + + return -1; + } else if((((a5==3) && (((( a17 <= -108 && (a7==12)) && (a24==14)) || (((a24==13) && ( 255 < a17 && (a7==13))) || ((a24==13) && ( 255 < a17 && (a7==14))))) && (input == 2))) && ((189 < a2) && (281 >= a2)) )){ + a2 = (((a2 + -532738) + -47238) * 1); + a17 = (((((a17 + 0) * 9)/ 10) % 71)- -182); + a7 = 12; + a24 = 15; + a5 = 4; + + return 23; + } else if(((a5==6) && ((a24==13) && (((input == 4) && ((( a17 <= -108 && (a7==13)) || ((a7==14) && a17 <= -108 )) || ((a7==12) && ((-108 < a17) && (111 >= a17)) ))) && a2 <= 189 )))){ + a17 = ((((a17 - -565469) + -60299) / 5) - 520148); + a7 = 12; + a5 = 3; + + return -1; + } else if((((( 255 < a17 && ((input == 3) && (a7==13))) && (a24==13)) && (a5==6)) && ((189 < a2) && (281 >= a2)) )){ + a2 = (((a2 / -5) - 310362) - 118239); + a17 = ((((a17 + -527475) + -43049) / 5) + -159294); + a7 = 12; + a5 = 3; + + return -1; + } else if((((a24==14) && ((a5==4) && ((input == 1) && (( a17 <= -108 && (a7==14)) || ((a7==12) && ((-108 < a17) && (111 >= a17)) ))))) && ((189 < a2) && (281 >= a2)) )){ + a2 = (((((a2 * -5) * 10)/ 9) - -320944) * -1); + a17 = (((((a17 * 9)/ 10) + 31872) % 71)+ 182); + a7 = 13; + a24 = 13; + + return -1; + } else if(( a2 <= 189 && ((a24==15) && ( a17 <= -108 && (((a7==13) && (input == 4)) && (a5==6)))))){ + + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((((((input == 5) && (( a17 <= -108 && (a7==14)) || ((a7==12) && ((-108 < a17) && (111 >= a17)) ))) && (a24==14)) && (a5==5)) && ((189 < a2) && (281 >= a2)) )){ + a2 = (((a2 * 5) - 436847) + -130272); + a17 = (((a17 / 5) - 469094) - -33679); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((((a5==4) && ( 255 < a17 && ( ((189 < a2) && (281 >= a2)) && ((input == 3) && ((a7==13) || (a7==14)))))) && (a24==14))){ + a17 = (((((a17 / 5) * 4) - -51204) % 71)+ 129); + a7 = 14; + + return -1; + } else if((((( a2 <= 189 && ((a7==12) && (input == 1))) && (a5==7)) && 255 < a17 ) && (a24==15))){ + a17 = ((((a17 - 204408) - -50146) % 109)- -2); + a7 = 14; + a5 = 4; + + return -1; + } else if(( a2 <= 189 && ((a24==15) && ((a5==5) && ( a17 <= -108 && ((a7==14) && (input == 3))))))){ + a2 = (((((a2 % 45)+ 236) * 5) % 45)+ 204); + a17 = (((((a17 + 0) * 9)/ 10) % 109)+ 90); + a7 = 12; + a24 = 14; + a5 = 4; + + return 26; + } else if(((((a5==6) && ((((a7==14) && a17 <= -108 ) || ( ((-108 < a17) && (111 >= a17)) && (a7==12))) && (input == 5))) && (a24==15)) && a2 <= 189 )){ + a17 = ((((a17 % 71)+ 184) - 1) - 1); + a7 = 12; + a24 = 13; + a5 = 7; + + return 26; + } else if((( ((189 < a2) && (281 >= a2)) && ((a24==14) && ((( 255 < a17 && (a7==13)) || (((a7==14) && ((111 < a17) && (255 >= a17)) ) || ( 255 < a17 && (a7==12)))) && (input == 1)))) && (a5==3))){ + a17 = (((((a17 * 9)/ 10) % 109)- -2) + 1); + a7 = 12; + + return -1; + } else if(((a24==15) && ( a2 <= 189 && ((a7==14) && (((input == 2) && ((111 < a17) && (255 >= a17)) ) && (a5==5)))))){ + a17 = ((((a17 - 501351) * 10)/ 9) * 1); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((a7==13) && (((((input == 5) && (a5==7)) && (a24==14)) && ((-108 < a17) && (111 >= a17)) ) && a2 <= 189 ))){ + a17 = (((a17 + -506871) + -84379) / 5); + a7 = 12; + + return -1; + } else if(( ((189 < a2) && (281 >= a2)) && ((((input == 2) && (( ((-108 < a17) && (111 >= a17)) && (a7==14)) || ( ((111 < a17) && (255 >= a17)) && (a7==12)))) && (a5==3)) && (a24==13)))){ + a2 = (((a2 / 5) * 5) - 539865); + a17 = (((a17 + -583438) - 9976) - 606); + a7 = 12; + + return -1; + } else if((((( ((111 < a17) && (255 >= a17)) && ((input == 5) && a2 <= 189 )) && (a7==14)) && (a5==5)) && (a24==14))){ + a17 = ((((a17 / 5) + 148886) * 10)/ -9); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((a5==7) && (((( 255 < a17 && (input == 1)) && (a24==13)) && a2 <= 189 ) && (a7==13)))){ + + return -1; + } else if(((( ((111 < a17) && (255 >= a17)) && (( ((189 < a2) && (281 >= a2)) && (input == 4)) && (a7==13))) && (a24==14)) && (a5==3))){ + a17 = ((((a17 / 5) - 84) * 10)/ 9); + a7 = 12; + + return -1; + } else if((((((a24==15) && ((input == 6) && ((111 < a17) && (255 >= a17)) )) && (a5==5)) && (a7==14)) && a2 <= 189 )){ + a2 = (((((a2 % 45)- -234) + 3) - 467950) - -467949); + a17 = ((((a17 * 23)/ 10) - -254710) + 246366); + a5 = 4; + + return 21; + } else if(((((((a5==4) && ((a24==15) && ((a7==14) && 255 < a17 ))) || ((( a17 <= -108 && (a7==12)) && (a24==13)) && (a5==5))) || ((a5==5) && (((a7==13) && a17 <= -108 ) && (a24==13)))) && (input == 4)) && a2 <= 189 )){ + a17 = ((((a17 + 0) + 0) % 299946)+ -300053); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((((( ((111 < a17) && (255 >= a17)) && (input == 6)) && (a7==13)) && a2 <= 189 ) && (a24==13)) && (a5==5))){ + a17 = (((a17 * 5) + 157598) / 5); + a7 = 14; + a5 = 7; + + return 21; + } else if(( a2 <= 189 && ((a5==7) && (((( 255 < a17 && (a7==14)) && (a24==13)) || ((a24==14) && ( a17 <= -108 && (a7==12)))) && (input == 3))))){ + a17 = ((((a17 + 0) + 0) % 299872)+ 300127); + a7 = 13; + a24 = 13; + + return -1; + } else if(( a2 <= 189 && ((a5==6) && (((((a7==12) && a17 <= -108 ) && (a24==14)) || (((a24==13) && ( 255 < a17 && (a7==13))) || (( 255 < a17 && (a7==14)) && (a24==13)))) && (input == 2))))){ + a2 = (((((a2 + 453687) % 45)- -236) - -350177) + -350178); + a17 = (((((a17 % 71)+ 182) + 0) - -438904) - 438902); + a7 = 12; + a24 = 14; + a5 = 3; + + return 23; + } else if(( ((111 < a17) && (255 >= a17)) && ((a7==13) && ((( ((189 < a2) && (281 >= a2)) && (input == 3)) && (a24==14)) && (a5==3))))){ + a2 = (((a2 / 5) / -5) * 5); + a17 = (((a17 * 5) - -273749) - 586768); + a7 = 14; + + return -1; + } else if(((a5==7) && (( a2 <= 189 && ((input == 3) && (( ((111 < a17) && (255 >= a17)) && (a7==13)) || (( ((-108 < a17) && (111 >= a17)) && (a7==14)) || ( ((111 < a17) && (255 >= a17)) && (a7==12)))))) && (a24==14)))){ + a17 = (((((a17 - 515132) / 5) + 523785) * -1)/ 10); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((((a5==5) && ((((a7==14) && a17 <= -108 ) || ((a7==12) && ((-108 < a17) && (111 >= a17)) )) && (input == 2))) && ((189 < a2) && (281 >= a2)) ) && (a24==13))){ + a2 = (((a2 * 5) + 144469) + -189230); + a17 = (((((a17 + 0) % 299946)- 300053) / 5) + -445482); + a7 = 12; + a5 = 3; + + return -1; + } else if(((((a5==5) && (( ((189 < a2) && (281 >= a2)) && (input == 4)) && ((-108 < a17) && (111 >= a17)) )) && (a24==15)) && (a7==12))){ + a2 = (((a2 * 5) / -5) * 5); + a17 = ((((((a17 * 5) % 71)+ 184) * 5) % 71)- -152); + a24 = 14; + a5 = 7; + + return -1; + } else if((( ((-108 < a17) && (111 >= a17)) && ((a5==3) && ( ((189 < a2) && (281 >= a2)) && ((input == 2) && (a24==15))))) && (a7==13))){ + a17 = (((a17 - -116942) * 5) * 1); + a24 = 13; + + return -1; + } else if(((a5==5) && ((a24==13) && ( ((111 < a17) && (255 >= a17)) && ( a2 <= 189 && ((a7==13) && (input == 4))))))){ + a17 = (((a17 * 5) - 554850) + -19327); + a24 = 14; + a5 = 7; + + return 23; + } else if((( ((-108 < a17) && (111 >= a17)) && (((((a7==13) || (a7==14)) && (input == 4)) && (a24==15)) && a2 <= 189 )) && (a5==7))){ + a17 = (((a17 / 5) + -465987) + -123095); + a7 = 12; + + return -1; + } else if((((((a24==13) && (((a7==13) || (a7==14)) && (input == 3))) && ((-108 < a17) && (111 >= a17)) ) && (a5==4)) && ((189 < a2) && (281 >= a2)) )){ + a17 = ((((a17 % 71)+ 183) - 106273) - -106273); + a7 = 14; + a24 = 15; + a5 = 3; + + return -1; + } else if(( ((189 < a2) && (281 >= a2)) && (((a24==13) && ( ((-108 < a17) && (111 >= a17)) && (((a7==12) || (a7==13)) && (input == 5)))) && (a5==3)))){ + a2 = ((((a2 * -5) * 5) + 590510) - 671065); + a7 = 14; + a24 = 15; + a5 = 4; + + return -1; + } else if((( ((111 < a17) && (255 >= a17)) && ((a5==5) && (((input == 6) && (a24==14)) && (a7==14)))) && a2 <= 189 )){ + a17 = ((((a17 * 5) * 10)/ -9) / 5); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((((((( a17 <= -108 && (a7==12)) && (a24==15)) || ((( 255 < a17 && (a7==13)) && (a24==14)) || ((a24==14) && ( 255 < a17 && (a7==14))))) && (input == 6)) && a2 <= 189 ) && (a5==7))){ + a17 = (((a17 / 5) - 232817) * 1); + a7 = 12; + a24 = 15; + + return -1; + } else if((( a2 <= 189 && (((input == 6) && (((a7==14) && a17 <= -108 ) || ((a7==12) && ((-108 < a17) && (111 >= a17)) ))) && (a5==6))) && (a24==15))){ + a17 = (((((a17 % 299946)+ -300053) + 0) / 5) + -24082); + a7 = 14; + + return 23; + } else if((((a24==14) && (((((a7==14) && ((111 < a17) && (255 >= a17)) ) || ( 255 < a17 && (a7==12))) && (input == 1)) && (a5==7))) && a2 <= 189 )){ + a17 = (((((a17 % 299872)- -256) * 1) / 5) - -44806); + a7 = 13; + a24 = 13; + + return -1; + } else if(((a24==14) && ((( a2 <= 189 && ((input == 1) && (((a7==12) || (a7==13)) || (a7==14)))) && (a5==6)) && 255 < a17 ))){ + a2 = ((((((a2 / 5) % 45)+ 235) / 5) * 51)/ 10); + a17 = ((((((a17 / 5) % 109)+ 2) * 5) % 109)+ -3); + a7 = 13; + a24 = 15; + a5 = 3; + + return 26; + } else if(((( a2 <= 189 && ((a5==6) && (((a7==13) || (a7==14)) && (input == 4)))) && ((-108 < a17) && (111 >= a17)) ) && (a24==15))){ + a2 = ((((a2 + 216043) % 45)+ 236) - -1); + a17 = (((((a17 - 429059) + 308928) * 4) % 71)- -208); + a7 = 14; + a5 = 3; + + return 21; + } else if((((((((a7==13) || (a7==14)) && (input == 5)) && a2 <= 189 ) && ((111 < a17) && (255 >= a17)) ) && (a24==15)) && (a5==6))){ + a17 = (((a17 + -54487) - 92979) - 379120); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(( ((-108 < a17) && (111 >= a17)) && (( ((189 < a2) && (281 >= a2)) && ((a5==6) && (((a7==12) || (a7==13)) && (input == 1)))) && (a24==13)))){ + a2 = (((a2 - 455132) - 98197) + -25953); + a17 = (((a17 + 255777) * 2) + -670603); + a7 = 12; + a5 = 3; + + return -1; + } else if((((a24==14) && ((a5==3) && (((( a17 <= -108 && (a7==13)) || ((a7==14) && a17 <= -108 )) || ( ((-108 < a17) && (111 >= a17)) && (a7==12))) && (input == 6)))) && ((189 < a2) && (281 >= a2)) )){ + a2 = (((a2 + -585771) + -2935) * 1); + a17 = (((((a17 * 9)/ 10) / 5) % 109)- -1); + a7 = 13; + a5 = 4; + + return -1; + } else if(((a5==5) && (((a24==15) && ( a2 <= 189 && (((a7==12) || (a7==13)) && (input == 4)))) && ((-108 < a17) && (111 >= a17)) ))){ + a2 = ((((((a2 - 0) + 0) * 9)/ 10) % 45)- -234); + a17 = ((((a17 % 71)- -184) - 1) + 1); + a7 = 14; + a24 = 14; + a5 = 4; + + return 21; + } else if((((a5==5) && (((input == 6) && (((a7==14) && a17 <= -108 ) || ((a7==12) && ((-108 < a17) && (111 >= a17)) ))) && (a24==14))) && ((189 < a2) && (281 >= a2)) )){ + a17 = ((((((a17 * 9)/ 10) / 5) - 287459) % 109)- -2); + a7 = 12; + a5 = 4; + + return -1; + } else if((( ((111 < a17) && (255 >= a17)) && ((a24==15) && ( ((189 < a2) && (281 >= a2)) && ((a7==14) && (input == 2))))) && (a5==3))){ + + return 26; + } else if(((( a2 <= 189 && ((a24==13) && ((input == 3) && ((-108 < a17) && (111 >= a17)) ))) && (a5==5)) && (a7==14))){ + a17 = ((((a17 / 5) * 5) / 5) - -181132); + a7 = 13; + a24 = 15; + a5 = 6; + + return 23; + } else if(( a2 <= 189 && ((((((a7==13) || (a7==14)) && (input == 2)) && ((-108 < a17) && (111 >= a17)) ) && (a24==15)) && (a5==7)))){ + a17 = (((a17 - 261314) + 71142) / 5); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((( 255 < a17 && (((a24==13) && ((input == 2) && ((a7==13) || (a7==14)))) && (a5==4))) && ((189 < a2) && (281 >= a2)) )){ + a2 = (((a2 * 5) + -450773) - 107216); + a17 = ((((((a17 % 71)+ 158) - 39) / 5) * 49)/ 10); + a7 = 14; + a24 = 14; + + return -1; + } else if(((( a2 <= 189 && (((((a7==13) && a17 <= -108 ) || ((a7==14) && a17 <= -108 )) || ((a7==12) && ((-108 < a17) && (111 >= a17)) )) && (input == 4))) && (a5==7)) && (a24==14))){ + a17 = (((((a17 * 9)/ 10) % 109)- -1) + 0); + a7 = 14; + a24 = 15; + a5 = 4; + + return 21; + } else if(((((a5==4) && ( ((189 < a2) && (281 >= a2)) && (((a7==14) || ((a7==12) || (a7==13))) && (input == 4)))) && (a24==15)) && a17 <= -108 )){ + a17 = (((((a17 % 71)- -182) + 0) / 5) - -96); + a7 = 13; + a24 = 14; + + return -1; + } else if(( a2 <= 189 && ((a5==6) && (((((a7==12) || (a7==13)) && (input == 5)) && (a24==15)) && 255 < a17 )))){ + a2 = ((((a2 % 45)- -236) + 127994) - 127995); + a17 = (((((a17 - 156755) * 1) * 1) % 109)- -2); + a7 = 13; + a5 = 3; + + return 21; + } else if(((a24==13) && (((a5==6) && ((input == 3) && (((a7==14) && ((-108 < a17) && (111 >= a17)) ) || ( ((111 < a17) && (255 >= a17)) && (a7==12))))) && ((189 < a2) && (281 >= a2)) ))){ + a17 = (((((a17 / 5) * 5) + -36231) * -1)/ 10); + a7 = 14; + a5 = 4; + + return -1; + } else if(((((((( a17 <= -108 && (a7==13)) || ((a7==14) && a17 <= -108 )) || ( ((-108 < a17) && (111 >= a17)) && (a7==12))) && (input == 6)) && (a24==15)) && a2 <= 189 ) && (a5==7))){ + a17 = (((((a17 + 0) / 5) + 400868) % 109)+ -80); + a7 = 13; + a24 = 14; + + return -1; + } else if((((a24==15) && ((((input == 3) && ((a7==12) || (a7==13))) && 255 < a17 ) && (a5==5))) && a2 <= 189 )){ + a17 = (((a17 - 600131) - 103) + -13); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((a24==14) && ((a5==5) && (((input == 5) && (((a7==12) && ((111 < a17) && (255 >= a17)) ) || (((a7==13) && ((-108 < a17) && (111 >= a17)) ) || ((a7==14) && ((-108 < a17) && (111 >= a17)) )))) && ((189 < a2) && (281 >= a2)) )))){ + a2 = ((((a2 + 363060) - 21984) + -307797) * -5); + a17 = ((((a17 / 5) / 5) - -385642) - 385582); + a7 = 13; + a5 = 7; + + return -1; + } else if(((a5==7) && ( a2 <= 189 && ((a24==15) && ((input == 4) && ((( a17 <= -108 && (a7==13)) || ((a7==14) && a17 <= -108 )) || ( ((-108 < a17) && (111 >= a17)) && (a7==12)))))))){ + a17 = ((((a17 - 0) % 299872)- -300127) + 1); + a7 = 13; + a24 = 14; + + return -1; + } else if((((((a5==5) && ((a24==13) && ((a7==13) && a17 <= -108 ))) || (((a5==4) && (( 255 < a17 && (a7==14)) && (a24==15))) || ((((a7==12) && a17 <= -108 ) && (a24==13)) && (a5==5)))) && (input == 3)) && a2 <= 189 )){ + a17 = (((a17 / 5) - -222886) * 1); + a7 = 14; + a24 = 13; + a5 = 6; + + return 26; + } else if((((a5==6) && ((((input == 1) && ((a7==13) || (a7==14))) && a2 <= 189 ) && (a24==14))) && a17 <= -108 )){ + a2 = ((((((a2 % 45)+ 235) + -1) * 5) % 45)- -223); + a17 = ((((a17 % 109)+ 16) + -191467) - -191547); + a7 = 12; + a24 = 13; + a5 = 4; + + return 26; + } else if((( ((189 < a2) && (281 >= a2)) && ( ((-108 < a17) && (111 >= a17)) && (((input == 1) && (a24==14)) && (a7==13)))) && (a5==4))){ + a2 = (((a2 * 5) * 5) - 342077); + a17 = ((((a17 * 5) / 5) % 71)+ 184); + a24 = 15; + + return 21; + } else if(((a5==5) && ( a2 <= 189 && (( ((111 < a17) && (255 >= a17)) && (((a7==12) || (a7==13)) && (input == 4))) && (a24==14))))){ + a2 = ((((a2 + 110417) % 45)- -236) * 1); + a17 = ((((a17 * 5) * 10)/ -9) - 228824); + a7 = 13; + a24 = 15; + a5 = 3; + + return 21; + } else if((((a24==13) && ( a2 <= 189 && ((input == 1) && ((( ((-108 < a17) && (111 >= a17)) && (a7==13)) || ((a7==14) && ((-108 < a17) && (111 >= a17)) )) || ((a7==12) && ((111 < a17) && (255 >= a17)) ))))) && (a5==6))){ + a2 = (((((a2 % 45)+ 234) / 5) - -431906) + -431702); + a17 = (((((a17 + -434179) % 109)+ 30) + 138172) + -138140); + a7 = 14; + + return 26; + } else if(( ((111 < a17) && (255 >= a17)) && (( a2 <= 189 && (((a24==13) && (input == 5)) && (a5==5))) && (a7==14)))){ + a17 = (((a17 + 592041) * 1) - -2226); + a7 = 12; + a24 = 14; + a5 = 7; + + return 26; + } else if(((((a24==13) && ((( ((-108 < a17) && (111 >= a17)) && (a7==14)) || ((a7==12) && ((111 < a17) && (255 >= a17)) )) && (input == 5))) && (a5==7)) && a2 <= 189 )){ + a17 = (((((a17 % 71)+ 182) / 5) * 51)/ 10); + a7 = 12; + a5 = 5; + + return 21; + } else if((((a24==15) && (((a5==4) && ( ((-108 < a17) && (111 >= a17)) && (input == 5))) && (a7==12))) && ((189 < a2) && (281 >= a2)) )){ + a2 = (((a2 / 5) / -5) * 5); + a17 = (((a17 - -517716) / 5) * 5); + a7 = 13; + a24 = 13; + a5 = 7; + + return -1; + } else if(((a5==5) && ((a24==13) && ( a2 <= 189 && ((input == 3) && (((a7==13) && ((-108 < a17) && (111 >= a17)) ) || (((a7==14) && a17 <= -108 ) || ((a7==12) && ((-108 < a17) && (111 >= a17)) )))))))){ + a17 = ((((a17 % 299946)+ -300053) - 1) - 1); + a7 = 12; + a24 = 15; + a5 = 6; + + return 26; + } else if(( a2 <= 189 && ((((a5==7) && (((a7==13) && a17 <= -108 ) && (a24==13))) || (((a5==6) && ((a24==15) && ( 255 < a17 && (a7==14)))) || ((a5==7) && ((a24==13) && ((a7==12) && a17 <= -108 ))))) && (input == 5)))){ + a2 = ((((a2 - -71451) % 45)- -236) + -1); + a17 = (((((a17 * 9)/ 10) % 109)- -2) + -1); + a7 = 13; + a24 = 15; + a5 = 3; + + return 21; + } else if(( ((189 < a2) && (281 >= a2)) && ((((( 255 < a17 && (a7==14)) && (a24==14)) || (( a17 <= -108 && (a7==12)) && (a24==15))) && (input == 2)) && (a5==3)))){ + a2 = (((a2 * 5) - 448501) * 1); + a17 = (((((a17 % 71)- -182) / 5) / 5) + 165); + a7 = 12; + a24 = 13; + a5 = 7; + + return -1; + } else if((((((( ((111 < a17) && (255 >= a17)) && (a7==14)) || ( 255 < a17 && (a7==12))) && (input == 3)) && a2 <= 189 ) && (a5==7)) && (a24==14))){ + a17 = ((((a17 % 299872)+ 256) - -48274) + 28236); + a7 = 12; + a24 = 13; + + return -1; + } else if((((( 255 < a17 && ((input == 4) && ((a7==14) || ((a7==12) || (a7==13))))) && (a5==5)) && (a24==13)) && ((189 < a2) && (281 >= a2)) )){ + a17 = (((a17 - 0) - 595306) - 4802); + a7 = 14; + a24 = 15; + a5 = 4; + + return -1; + } else if(( ((189 < a2) && (281 >= a2)) && (((((input == 5) && (a24==13)) && (a5==4)) && (a7==12)) && a17 <= -108 ))){ + a2 = (((a2 / -5) / 5) - 315470); + a5 = 3; + + return -1; + } else if(((a24==15) && ((((input == 4) && (( a17 <= -108 && (a7==14)) || ((a7==12) && ((-108 < a17) && (111 >= a17)) ))) && (a5==6)) && a2 <= 189 ))){ + a17 = ((((a17 - -17630) - 6795) % 109)- -1); + a7 = 12; + + return 26; + } else if((((((((a7==12) || (a7==13)) && (input == 2)) && (a24==15)) && 255 < a17 ) && a2 <= 189 ) && (a5==4))){ + a17 = (((a17 + 0) - 600231) * 1); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(( 255 < a17 && ((a5==5) && ((a24==14) && ((((a7==13) || (a7==14)) && (input == 5)) && ((189 < a2) && (281 >= a2)) ))))){ + a17 = ((((a17 + 0) % 71)- -167) + 11); + a7 = 13; + a5 = 4; + + return -1; + } else if(((a5==4) && (( ((189 < a2) && (281 >= a2)) && ((a24==14) && ((input == 6) && (a7==13)))) && ((-108 < a17) && (111 >= a17)) ))){ + + return 23; + } else if((( a17 <= -108 && ((((input == 6) && ((a7==12) || (a7==13))) && (a5==5)) && ((189 < a2) && (281 >= a2)) )) && (a24==14))){ + a17 = ((((a17 / 5) % 109)- -109) / 5); + a7 = 13; + a5 = 4; + + return -1; + } else if(( ((189 < a2) && (281 >= a2)) && ((((( a17 <= -108 && (a7==14)) || ((a7==12) && ((-108 < a17) && (111 >= a17)) )) && (input == 3)) && (a24==13)) && (a5==5)))){ + a2 = (((a2 / -5) * 5) - 263640); + a17 = ((((a17 * 9)/ 10) + -31880) - 20940); + a7 = 14; + a24 = 15; + a5 = 7; + + return -1; + } else if((((a24==15) && ( a2 <= 189 && (((( ((-108 < a17) && (111 >= a17)) && (a7==14)) || ((a7==12) && ((111 < a17) && (255 >= a17)) )) || ( ((111 < a17) && (255 >= a17)) && (a7==13))) && (input == 2)))) && (a5==5))){ + a17 = (((a17 + 26382) - 539571) - 38393); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(( a17 <= -108 && ((a5==6) && ((((a7==12) && (input == 1)) && (a24==13)) && a2 <= 189 )))){ + + a5 = 3; + + return -1; + } else if(((a5==3) && (((((((a7==13) && a17 <= -108 ) || ( a17 <= -108 && (a7==14))) || ((a7==12) && ((-108 < a17) && (111 >= a17)) )) && (input == 6)) && (a24==15)) && ((189 < a2) && (281 >= a2)) ))){ + a17 = ((((a17 - 0) % 109)- -2) - -1); + a7 = 12; + + return -1; + } else if((( ((189 < a2) && (281 >= a2)) && ((a24==14) && ((input == 2) && (((a7==14) && a17 <= -108 ) || ((a7==12) && ((-108 < a17) && (111 >= a17)) ))))) && (a5==4))){ + a2 = ((((a2 / -5) + 523985) * 1) + -866052); + a17 = (((((a17 % 109)+ 2) + -1) - -574310) + -574309); + a7 = 12; + a24 = 13; + + return -1; + } else if((((a24==15) && (((a7==12) && ((a5==6) && (input == 1))) && ((111 < a17) && (255 >= a17)) )) && a2 <= 189 )){ + a2 = ((((a2 + 0) + 6154) % 45)- -236); + a17 = (((a17 / 5) / 5) + -109); + a7 = 13; + a24 = 13; + a5 = 4; + + return 26; + } else if((((( a17 <= -108 && (((a7==12) || (a7==13)) && (input == 3))) && ((189 < a2) && (281 >= a2)) ) && (a5==6)) && (a24==13))){ + a17 = ((((a17 * 9)/ 10) * 1) - -571423); + a7 = 14; + a24 = 14; + a5 = 5; + + return -1; + } else if((((a24==15) && ((a7==14) && (((input == 4) && 255 < a17 ) && (a5==5)))) && a2 <= 189 )){ + a2 = (((((a2 % 45)- -235) * 1) / 5) - -166); + a17 = ((((a17 * 9)/ 10) / 5) + -557397); + a24 = 14; + + return 23; + } else if((((((((a7==14) && a17 <= -108 ) || ( ((-108 < a17) && (111 >= a17)) && (a7==12))) && (input == 4)) && ((189 < a2) && (281 >= a2)) ) && (a24==14)) && (a5==4))){ + a2 = ((((a2 - -6843) - 234103) - -260659) + -346865); + a17 = (((((a17 % 71)+ 182) - -2) - -415451) - 415452); + a7 = 13; + a24 = 15; + a5 = 3; + + return -1; + } else if(( a2 <= 189 && ((a5==5) && ((a24==15) && ((( ((111 < a17) && (255 >= a17)) && (a7==13)) || (( ((-108 < a17) && (111 >= a17)) && (a7==14)) || ( ((111 < a17) && (255 >= a17)) && (a7==12)))) && (input == 5)))))){ + a2 = ((((((a2 % 45)- -235) - -220353) * 2) % 45)- -192); + a17 = (((((a17 % 109)- -1) - 487372) / 5) + 97389); + a7 = 12; + a5 = 4; + + return 26; + } else if((((a7==13) && ((((input == 4) && ((189 < a2) && (281 >= a2)) ) && (a5==5)) && ((-108 < a17) && (111 >= a17)) )) && (a24==13))){ + + a24 = 14; + a5 = 4; + + return -1; + } else if((((a7==13) && ((((input == 3) && a2 <= 189 ) && (a24==13)) && 255 < a17 )) && (a5==7))){ + a17 = (((((a17 % 71)- -147) * 5) % 71)- -157); + a5 = 5; + + return 26; + } else if(((( 255 < a17 && ((a5==5) && ((input == 4) && ((a7==14) || ((a7==12) || (a7==13)))))) && (a24==15)) && ((189 < a2) && (281 >= a2)) )){ + a2 = (((a2 + -324872) - 111167) - 140231); + a7 = 12; + a24 = 14; + a5 = 7; + + return -1; + } else if(((a5==7) && (((input == 3) && ((((a7==12) && a17 <= -108 ) && (a24==15)) || ((((a7==13) && 255 < a17 ) && (a24==14)) || (((a7==14) && 255 < a17 ) && (a24==14))))) && a2 <= 189 ))){ + a17 = ((((a17 % 299872)+ 300127) + 0) - -1); + a7 = 14; + a24 = 14; + + return 23; + } else if(( a2 <= 189 && (((((( 255 < a17 && (a7==14)) && (a24==13)) || ((a24==14) && ( a17 <= -108 && (a7==12)))) || ((a24==14) && ((a7==13) && a17 <= -108 ))) && (input == 1)) && (a5==5)))){ + a17 = ((((a17 % 299872)+ 300127) - 0) - 0); + a7 = 13; + a24 = 15; + a5 = 7; + + return 23; + } else if(((((a5==7) && ((((a7==13) || (a7==14)) && (input == 1)) && a2 <= 189 )) && (a24==15)) && 255 < a17 )){ + + a7 = 13; + a24 = 14; + + return -1; + } else if((((((((a7==14) && ((111 < a17) && (255 >= a17)) ) || ((a7==12) && 255 < a17 )) && (input == 3)) && (a24==13)) && ((189 < a2) && (281 >= a2)) ) && (a5==4))){ + a2 = (((a2 - 228436) / 5) * 5); + a17 = ((((a17 * 9)/ 10) - -37438) - 617865); + a7 = 14; + a24 = 14; + a5 = 7; + + return -1; + } else if((((((((a7==14) && a17 <= -108 ) || ((a7==12) && ((-108 < a17) && (111 >= a17)) )) && (input == 4)) && ((189 < a2) && (281 >= a2)) ) && (a24==13)) && (a5==5))){ + a2 = (((a2 * -5) + -362469) + 206807); + a17 = (((((a17 / 5) / 5) / 5) % 71)+ 183); + a7 = 12; + a24 = 15; + a5 = 7; + + return -1; + } else if(((a24==14) && (((a5==5) && ( 255 < a17 && ((input == 4) && ((a7==13) || (a7==14))))) && ((189 < a2) && (281 >= a2)) ))){ + + a7 = 13; + + return 26; + } else if((( a2 <= 189 && ((((a24==14) && ( a17 <= -108 && (a7==13))) || (((a24==13) && ( 255 < a17 && (a7==14))) || ((a24==14) && ((a7==12) && a17 <= -108 )))) && (input == 5))) && (a5==5))){ + a2 = ((((a2 / 5) % 45)- -235) + 1); + a17 = (((a17 / 5) - 256291) * 1); + a7 = 12; + a24 = 13; + a5 = 3; + + return 26; + } else if(((a24==15) && (( a17 <= -108 && ((a5==6) && ((a7==13) && (input == 1)))) && a2 <= 189 ))){ + a2 = (((((a2 / 5) * 4) / 5) % 45)- -234); + a17 = ((((a17 - -120776) / 5) % 109)- -2); + a24 = 13; + a5 = 4; + + return 21; + } else if((((a5==4) && (( a2 <= 189 && ((input == 6) && ((a7==13) || (a7==14)))) && (a24==15))) && ((111 < a17) && (255 >= a17)) )){ + a17 = (((((a17 * -1)/ 10) * 10)/ 9) + -47); + a7 = 13; + a5 = 5; + + return 21; + } else if(((a5==6) && ((a24==13) && ((( ((189 < a2) && (281 >= a2)) && (input == 4)) && 255 < a17 ) && (a7==13))))){ + a2 = (((a2 / -5) * 5) + -60399); + a17 = ((((a17 / 5) % 109)+ -92) / 5); + a7 = 12; + a24 = 14; + a5 = 7; + + return -1; + } else if((((((a5==5) && ((input == 3) && ((a7==12) || (a7==13)))) && a2 <= 189 ) && (a24==14)) && ((111 < a17) && (255 >= a17)) )){ + a2 = (((((a2 + 399174) % 45)+ 234) - 119189) + 119189); + a17 = (((a17 + -440715) / 5) + 88187); + a7 = 13; + a24 = 15; + a5 = 3; + + return 26; + } else if(((a24==13) && ( a17 <= -108 && (((a5==6) && (((a7==12) || (a7==13)) && (input == 1))) && ((189 < a2) && (281 >= a2)) )))){ + a17 = ((((a17 + 0) + 354212) % 109)+ 1); + a7 = 12; + a5 = 3; + + return -1; + } else if((((a24==15) && (((a5==4) && (((a7==13) || (a7==14)) && (input == 1))) && a2 <= 189 )) && ((111 < a17) && (255 >= a17)) )){ + a17 = (((a17 * 5) - 379915) - -55808); + a7 = 14; + a5 = 5; + + return 23; + } else if(((a5==4) && ( a2 <= 189 && (((((a7==13) || (a7==14)) && (input == 5)) && a17 <= -108 ) && (a24==15))))){ + a17 = ((((((a17 % 71)- -187) * 5) * 5) % 71)- -127); + a7 = 12; + + return 23; + } else if((((a5==4) && (( 255 < a17 && ((input == 6) && ((a7==13) || (a7==14)))) && ((189 < a2) && (281 >= a2)) )) && (a24==13))){ + a17 = ((((a17 / 5) + -588303) % 71)+ 218); + a7 = 12; + + return -1; + } else if(( a2 <= 189 && ((input == 1) && (((a5==7) && ((a24==13) && ((a7==13) && a17 <= -108 ))) || (((((a7==14) && 255 < a17 ) && (a24==15)) && (a5==6)) || ((a5==7) && ((a24==13) && ((a7==12) && a17 <= -108 )))))))){ + a17 = ((((((a17 * 9)/ 10) * 1) * 1) % 299946)- 300053); + a7 = 12; + a24 = 13; + a5 = 7; + + return 21; + } else if(((a5==3) && ( ((189 < a2) && (281 >= a2)) && ((((a24==14) && ((a7==14) && 255 < a17 )) || (( a17 <= -108 && (a7==12)) && (a24==15))) && (input == 3))))){ + a2 = (((a2 + -143123) + -98171) * 2); + a17 = (((((a17 % 71)- -184) * 5) % 71)+ 132); + a7 = 12; + a24 = 14; + a5 = 5; + + return -1; + } else if(( ((189 < a2) && (281 >= a2)) && ( ((-108 < a17) && (111 >= a17)) && ((a5==4) && (((a7==12) && (input == 3)) && (a24==15)))))){ + a2 = (((a2 * -5) * 5) - 163900); + a17 = (((a17 - 263174) * 2) / 5); + a24 = 13; + a5 = 3; + + return -1; + } else if(((a5==5) && ( ((189 < a2) && (281 >= a2)) && (((((a7==14) && a17 <= -108 ) || ( ((-108 < a17) && (111 >= a17)) && (a7==12))) && (input == 4)) && (a24==14))))){ + a2 = (((a2 / -5) / 5) + -193140); + a17 = ((((a17 % 299946)- 300053) - 2) + 0); + a7 = 12; + a5 = 7; + + return -1; + } else if((((input == 6) && ((((a5==4) && ((a24==15) && ( 255 < a17 && (a7==14)))) || (((a24==13) && ((a7==12) && a17 <= -108 )) && (a5==5))) || (((a24==13) && ((a7==13) && a17 <= -108 )) && (a5==5)))) && ((189 < a2) && (281 >= a2)) )){ + a2 = ((((a2 / -5) * 5) * 10)/ 9); + a17 = (((((a17 % 299872)+ 300127) + 0) - 193833) - -193835); + a7 = 13; + a24 = 15; + a5 = 7; + + return -1; + } else if((( ((189 < a2) && (281 >= a2)) && ((a24==14) && ( 255 < a17 && (((a7==13) || (a7==14)) && (input == 2))))) && (a5==5))){ + a2 = (((a2 / 5) * -5) - 445381); + a17 = (((a17 - 533326) - 24751) + -42172); + a7 = 12; + a24 = 13; + a5 = 4; + + return -1; + } else if(((( a2 <= 189 && ((((a7==12) || (a7==13)) && (input == 2)) && 255 < a17 )) && (a24==13)) && (a5==5))){ + a17 = ((((a17 * 9)/ 10) - 571338) / 5); + a7 = 12; + a5 = 3; + + return -1; + } else if(( a2 <= 189 && ((((input == 6) && (((a7==13) && ((111 < a17) && (255 >= a17)) ) || (( ((-108 < a17) && (111 >= a17)) && (a7==14)) || ( ((111 < a17) && (255 >= a17)) && (a7==12))))) && (a24==15)) && (a5==5)))){ + a17 = (((a17 * 5) + -240915) + -308966); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((( ((189 < a2) && (281 >= a2)) && (((input == 5) && (((a7==14) && a17 <= -108 ) || ( ((-108 < a17) && (111 >= a17)) && (a7==12)))) && (a24==14))) && (a5==4))){ + a2 = (((a2 - 446402) + -60965) * 1); + a17 = ((((a17 % 299946)- 300053) * 1) * 1); + a7 = 14; + a24 = 15; + a5 = 7; + + return -1; + } else if((((a24==14) && ((((( ((-108 < a17) && (111 >= a17)) && (a7==13)) || ( ((-108 < a17) && (111 >= a17)) && (a7==14))) || ( ((111 < a17) && (255 >= a17)) && (a7==12))) && (input == 3)) && ((189 < a2) && (281 >= a2)) )) && (a5==5))){ + a2 = (((a2 - 299989) - 282684) + -11091); + a17 = ((((a17 + -13195) * 10)/ 9) / 5); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((((((a24==15) && (input == 1)) && (a5==5)) && ((111 < a17) && (255 >= a17)) ) && a2 <= 189 ) && (a7==14))){ + a2 = (((((a2 % 45)+ 234) + 93283) + 429518) + -522800); + a17 = ((((a17 - 192) - 1) + 44565) - 44563); + a7 = 13; + a24 = 13; + + return 23; + } else if(( ((111 < a17) && (255 >= a17)) && ((((a5==5) && (((a7==14) || ((a7==12) || (a7==13))) && (input == 4))) && ((189 < a2) && (281 >= a2)) ) && (a24==13)))){ + a2 = (((a2 * 5) - 529848) + -4150); + a17 = (((a17 / 5) / 5) - 39); + a7 = 13; + a24 = 14; + a5 = 7; + + return -1; + } else if(((( a17 <= -108 && ((a24==14) && ((input == 4) && ((a7==13) || (a7==14))))) && a2 <= 189 ) && (a5==6))){ + + a7 = 13; + a24 = 13; + a5 = 5; + + return 26; + } else if((( a2 <= 189 && ((a5==5) && ( ((111 < a17) && (255 >= a17)) && (((a7==12) || (a7==13)) && (input == 6))))) && (a24==14))){ + a2 = ((((a2 % 45)+ 234) * 5) / 5); + a7 = 14; + a5 = 3; + + return 21; + } else if(((a24==15) && ( a2 <= 189 && (((((a7==12) && ((-108 < a17) && (111 >= a17)) ) || (((a7==13) && a17 <= -108 ) || ( a17 <= -108 && (a7==14)))) && (input == 2)) && (a5==7))))){ + a17 = ((((a17 % 299946)+ -300053) + -2) + 0); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(( ((189 < a2) && (281 >= a2)) && ((input == 4) && ((((( 255 < a17 && (a7==14)) && (a24==15)) && (a5==4)) || (((a24==13) && ((a7==12) && a17 <= -108 )) && (a5==5))) || ((((a7==13) && a17 <= -108 ) && (a24==13)) && (a5==5)))))){ + a2 = (((a2 - -563886) * -1) + 466041); + a17 = ((((a17 % 109)- -2) + 1) - 1); + a7 = 13; + a24 = 14; + a5 = 7; + + return -1; + } else if((( ((111 < a17) && (255 >= a17)) && (((((a7==14) || ((a7==12) || (a7==13))) && (input == 2)) && ((189 < a2) && (281 >= a2)) ) && (a24==15))) && (a5==5))){ + a2 = (((a2 / -5) - 416146) / 5); + a17 = (((a17 - 462537) + -101249) + 137036); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((a24==15) && ( ((189 < a2) && (281 >= a2)) && ( ((-108 < a17) && (111 >= a17)) && ((a5==5) && ((input == 4) && ((a7==13) || (a7==14)))))))){ + a17 = ((((a17 + 115929) / 5) + -404240) + 381192); + a7 = 14; + a24 = 13; + + return -1; + } else if((((a24==15) && ((a5==6) && ( 255 < a17 && (((a7==12) || (a7==13)) && (input == 4))))) && a2 <= 189 )){ + a17 = (((((a17 + -82645) / 5) / 5) % 109)+ 1); + a7 = 14; + a24 = 13; + a5 = 5; + + return 21; + } else if(((a24==13) && (( a17 <= -108 && (((input == 4) && ((a7==13) || (a7==14))) && ((189 < a2) && (281 >= a2)) )) && (a5==3)))){ + a2 = (((a2 * -5) + -23430) * 5); + a7 = 14; + a24 = 14; + a5 = 5; + + return 21; + } else if(( ((-108 < a17) && (111 >= a17)) && ( ((189 < a2) && (281 >= a2)) && ((a7==12) && ((a24==15) && ((input == 1) && (a5==4))))))){ + a2 = ((((a2 - 86020) + -319001) - -534468) - 217545); + a17 = (((a17 - -503276) + 60279) / 5); + a7 = 13; + a5 = 7; + + return -1; + } else if(((((a5==5) && ( a2 <= 189 && ((input == 4) && ((a7==12) || (a7==13))))) && (a24==15)) && a17 <= -108 )){ + a2 = ((((a2 % 45)- -236) - 1) * 1); + a7 = 13; + a24 = 14; + a5 = 4; + + return 26; + } else if(((((a5==3) && ((input == 6) && (((a7==12) && 255 < a17 ) || (( ((111 < a17) && (255 >= a17)) && (a7==13)) || ( ((111 < a17) && (255 >= a17)) && (a7==14)))))) && (a24==13)) && ((189 < a2) && (281 >= a2)) )){ + a17 = (((((a17 + -429873) % 299872)+ 300127) - 39771) - -39773); + a7 = 12; + + return 23; + } else if((((((((a7==12) || (a7==13)) && (input == 1)) && ((-108 < a17) && (111 >= a17)) ) && (a24==13)) && ((189 < a2) && (281 >= a2)) ) && (a5==3))){ + + a7 = 13; + + return 26; + } else if(( ((189 < a2) && (281 >= a2)) && ((a24==15) && (((input == 6) && ((( ((-108 < a17) && (111 >= a17)) && (a7==14)) || ((a7==12) && ((111 < a17) && (255 >= a17)) )) || ( ((111 < a17) && (255 >= a17)) && (a7==13)))) && (a5==4))))){ + a2 = (((a2 * 5) * 5) - 126327); + a17 = (((a17 + -140957) * 4) - -269430); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(( ((189 < a2) && (281 >= a2)) && ((( ((-108 < a17) && (111 >= a17)) && ((a24==15) && (input == 4))) && (a7==12)) && (a5==4)))){ + a2 = (((a2 - 514328) - 2041) - -399856); + a7 = 14; + a5 = 7; + + return -1; + } else if((((a5==3) && ((a24==13) && ((input == 3) && ((((a7==13) && ((111 < a17) && (255 >= a17)) ) || ((a7==14) && ((111 < a17) && (255 >= a17)) )) || ((a7==12) && 255 < a17 ))))) && ((189 < a2) && (281 >= a2)) )){ + a2 = (((a2 - 307516) - 193341) * 1); + a17 = (((((a17 % 71)+ 181) - -293974) / 5) + -58626); + a7 = 12; + a24 = 15; + a5 = 4; + + return -1; + } else if(((a5==7) && ( a2 <= 189 && ((((a24==13) && ( 255 < a17 && (a7==14))) || ((a24==14) && ((a7==12) && a17 <= -108 ))) && (input == 1))))){ + a17 = (((((a17 % 71)+ 183) - 1) - -531843) - 531841); + a7 = 13; + a24 = 13; + a5 = 5; + + return -1; + } else if((((((a24==13) && ((((a7==12) || (a7==13)) || (a7==14)) && (input == 1))) && ((189 < a2) && (281 >= a2)) ) && (a5==5)) && 255 < a17 )){ + a2 = ((((a2 + -443081) * 10)/ 9) * 1); + a17 = ((((((a17 % 71)- -174) * 5) * 5) % 71)- -133); + a7 = 13; + a5 = 7; + + return -1; + } else if((((((input == 1) && (((a7==14) && ((111 < a17) && (255 >= a17)) ) || ((a7==12) && 255 < a17 ))) && (a24==15)) && ((189 < a2) && (281 >= a2)) ) && (a5==4))){ + a2 = ((((a2 + -122718) * 10)/ 9) - -74204); + a17 = ((((a17 % 109)- -2) + -34) + 9); + a7 = 14; + a5 = 7; + + return -1; + } else if(((a5==4) && ((((a24==15) && ((input == 2) && (((a7==12) || (a7==13)) || (a7==14)))) && a17 <= -108 ) && ((189 < a2) && (281 >= a2)) ))){ + a2 = ((((a2 - -117222) - 186157) - -508770) - 673504); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((((a5==7) && ((((a7==13) || (a7==14)) && (input == 1)) && (a24==15))) && a2 <= 189 ) && ((-108 < a17) && (111 >= a17)) )){ + a17 = ((((((a17 % 71)- -183) * 1) * 5) % 71)- -154); + a7 = 12; + a24 = 14; + + return -1; + } else if(((((((( 255 < a17 && (a7==13)) && (a24==13)) || (( 255 < a17 && (a7==14)) && (a24==13))) || (((a7==12) && a17 <= -108 ) && (a24==14))) && (input == 6)) && (a5==3)) && ((189 < a2) && (281 >= a2)) )){ + a2 = (((a2 - 596397) + -1500) + -536); + a17 = (((((a17 * 9)/ 10) % 109)+ 2) + -1); + a7 = 13; + a24 = 14; + a5 = 5; + + return 26; + } else if(((a24==13) && (( ((-108 < a17) && (111 >= a17)) && ((a5==6) && ((input == 5) && ((a7==12) || (a7==13))))) && ((189 < a2) && (281 >= a2)) ))){ + a2 = (((a2 + -92113) - 295718) + -53625); + a17 = (((a17 / 5) / 5) - 76916); + a7 = 12; + a5 = 3; + + return -1; + } else if(((((a24==15) && ( ((-108 < a17) && (111 >= a17)) && ((input == 5) && ((a7==13) || (a7==14))))) && a2 <= 189 ) && (a5==6))){ + a2 = ((((a2 % 45)- -236) - -1) + -3); + a17 = ((((a17 + -62237) % 71)+ 199) + -15); + a7 = 13; + a5 = 3; + + return 26; + } else if(( a17 <= -108 && (((a24==13) && ( ((189 < a2) && (281 >= a2)) && (((a7==12) || (a7==13)) && (input == 6)))) && (a5==6)))){ + a17 = (((((a17 % 71)- -223) * 5) % 71)- -154); + a7 = 13; + a24 = 14; + a5 = 5; + + return -1; + } else if(((((((input == 2) && ((a7==12) || (a7==13))) && ((189 < a2) && (281 >= a2)) ) && (a5==5)) && (a24==14)) && a17 <= -108 )){ + a2 = ((((a2 - 55102) - -372533) - 62328) * -2); + a17 = (((((a17 * 9)/ 10) * 1) / 5) + 203115); + a7 = 12; + a5 = 3; + + return -1; + } else if((( a17 <= -108 && (((a5==3) && ((a7==12) && (input == 6))) && ((189 < a2) && (281 >= a2)) )) && (a24==13))){ + a2 = (((a2 / -5) / 5) * 5); + a17 = ((((((a17 % 71)- -247) + 8) * 5) % 71)+ 139); + a7 = 14; + a24 = 14; + a5 = 7; + + return -1; + } else if(( a2 <= 189 && (( 255 < a17 && ((((a7==12) || (a7==13)) && (input == 5)) && (a5==4))) && (a24==15)))){ + a17 = (((a17 + -600167) * 1) + -74); + a7 = 12; + a24 = 13; + a5 = 6; + + return 21; + } else if(( ((111 < a17) && (255 >= a17)) && ((a5==3) && ((a24==14) && (((input == 1) && ((189 < a2) && (281 >= a2)) ) && (a7==13)))))){ + a2 = (((a2 + 97520) - -476171) + -703390); + a17 = (((a17 - 192516) + 192347) + 14); + a7 = 14; + a5 = 4; + + return -1; + } else if(( ((189 < a2) && (281 >= a2)) && (((a24==15) && ( a17 <= -108 && ((input == 6) && (((a7==12) || (a7==13)) || (a7==14))))) && (a5==4)))){ + a2 = (((a2 / 5) - -274462) - 512632); + a17 = (((((a17 % 71)- -206) - -20) - 351411) + 351407); + a7 = 13; + a24 = 14; + a5 = 7; + + return -1; + } else if((((a5==5) && ( a2 <= 189 && ( 255 < a17 && (((a7==12) || (a7==13)) && (input == 3))))) && (a24==13))){ + a17 = (((((a17 % 71)+ 123) - 11) + 84970) + -84956); + a7 = 14; + a24 = 15; + a5 = 7; + + return 21; + } else if(( ((189 < a2) && (281 >= a2)) && ((a24==15) && (( ((111 < a17) && (255 >= a17)) && ((input == 1) && (((a7==12) || (a7==13)) || (a7==14)))) && (a5==5))))){ + a17 = ((((a17 * 5) % 109)- 71) - -9); + a7 = 13; + a24 = 14; + + return -1; + } else if((((((((a7==13) || (a7==14)) && (input == 6)) && (a5==5)) && 255 < a17 ) && (a24==14)) && ((189 < a2) && (281 >= a2)) )){ + a2 = (((a2 - -501110) / -5) + -432351); + a17 = (((((a17 % 71)+ 148) + -248919) + -89135) - -338038); + a7 = 14; + a24 = 13; + a5 = 7; + + return -1; + } else if(((( 255 < a17 && ((a7==13) && ((a24==13) && (input == 5)))) && (a5==7)) && a2 <= 189 )){ + + return -1; + } else if(((((a5==5) && (((((a7==12) || (a7==13)) || (a7==14)) && (input == 4)) && a2 <= 189 )) && (a24==14)) && 255 < a17 )){ + a17 = (((a17 + -600231) * 1) * 1); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((( ((-108 < a17) && (111 >= a17)) && (((input == 6) && (a7==13)) && a2 <= 189 )) && (a24==14)) && (a5==7))){ + + return 21; + } else if(( 255 < a17 && ((a5==6) && ( a2 <= 189 && ((a24==15) && (((a7==12) || (a7==13)) && (input == 1))))))){ + a17 = ((((a17 % 109)- 52) - 44) + -3); + a7 = 13; + a24 = 13; + a5 = 3; + + return -1; + } else if(( ((-108 < a17) && (111 >= a17)) && ((((((a7==14) || ((a7==12) || (a7==13))) && (input == 1)) && (a5==6)) && (a24==14)) && a2 <= 189 ))){ + a17 = ((((a17 / 5) + 148) * 9)/ 10); + a7 = 12; + a24 = 13; + a5 = 7; + + return 23; + } else if(( ((189 < a2) && (281 >= a2)) && ((a5==6) && ((a24==13) && ((input == 1) && ((((a7==13) && ((111 < a17) && (255 >= a17)) ) || ( ((111 < a17) && (255 >= a17)) && (a7==14))) || ( 255 < a17 && (a7==12)))))))){ + a17 = ((((((a17 + 0) % 109)- 20) * 5) % 109)+ 1); + a7 = 14; + a24 = 15; + a5 = 4; + + return -1; + } else if((( ((-108 < a17) && (111 >= a17)) && ( ((189 < a2) && (281 >= a2)) && ((((a7==13) || (a7==14)) && (input == 6)) && (a24==13)))) && (a5==4))){ + a17 = (((((a17 - 297061) - -413246) * 5) % 71)- -126); + a7 = 14; + a24 = 15; + a5 = 3; + + return -1; + } else if((((a24==15) && ((a5==4) && ((input == 2) && (( ((111 < a17) && (255 >= a17)) && (a7==13)) || (((a7==14) && ((-108 < a17) && (111 >= a17)) ) || ((a7==12) && ((111 < a17) && (255 >= a17)) )))))) && ((189 < a2) && (281 >= a2)) )){ + a2 = (((a2 - -381050) + -586556) - 318711); + a17 = (((a17 * 5) * 5) - 315241); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((a5==5) && ((((((a7==13) && a17 <= -108 ) && (a24==14)) || ((( 255 < a17 && (a7==14)) && (a24==13)) || (((a7==12) && a17 <= -108 ) && (a24==14)))) && (input == 2)) && a2 <= 189 ))){ + a17 = ((((a17 % 299946)+ -300053) * 1) * 1); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((((( ((111 < a17) && (255 >= a17)) && ((input == 3) && (a7==14))) && (a24==14)) && a2 <= 189 ) && (a5==5))){ + a2 = ((((a2 % 45)- -235) + -1) - 0); + a17 = (((((a17 / 5) * 10)/ 9) * 10)/ 9); + a24 = 15; + a5 = 3; + + return 23; + } else if(( a2 <= 189 && ((a24==14) && (((((a7==12) && ((-108 < a17) && (111 >= a17)) ) || (((a7==13) && a17 <= -108 ) || ((a7==14) && a17 <= -108 ))) && (input == 1)) && (a5==7))))){ + a17 = ((((a17 / 5) * 4) % 109)+ 2); + a7 = 13; + a24 = 15; + a5 = 4; + + return 21; + } else if((( a17 <= -108 && (((((a7==12) || (a7==13)) && (input == 3)) && a2 <= 189 ) && (a5==5))) && (a24==15))){ + + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((((((a24==15) && (input == 3)) && (a5==5)) && (a7==14)) && ((111 < a17) && (255 >= a17)) ) && a2 <= 189 )){ + a2 = ((((a2 % 45)- -236) * 1) - 1); + a17 = ((((a17 - 477741) * 10)/ 9) + -8957); + a24 = 13; + + return 23; + } else if(((((((input == 6) && ((a7==13) || (a7==14))) && a2 <= 189 ) && ((111 < a17) && (255 >= a17)) ) && (a24==15)) && (a5==6))){ + + a7 = 12; + a24 = 13; + a5 = 7; + + return 21; + } else if(((( ((189 < a2) && (281 >= a2)) && ((( 255 < a17 && (a7==12)) || (((a7==13) && ((111 < a17) && (255 >= a17)) ) || ( ((111 < a17) && (255 >= a17)) && (a7==14)))) && (input == 6))) && (a5==6)) && (a24==13))){ + a2 = (((a2 / 5) - 67976) + -37056); + a17 = ((((a17 % 109)+ -50) + 36) / 5); + a7 = 14; + a24 = 15; + a5 = 7; + + return -1; + } else if(( 255 < a17 && ((a24==13) && ( ((189 < a2) && (281 >= a2)) && ((a5==4) && ((input == 3) && ((a7==13) || (a7==14)))))))){ + a2 = (((a2 + -368535) + -129446) * 1); + a17 = (((((a17 * 9)/ 10) * 1) / 5) - 289303); + a7 = 14; + a24 = 14; + a5 = 7; + + return -1; + } else if((((a24==14) && ((a5==4) && ( ((189 < a2) && (281 >= a2)) && (((a7==12) || (a7==13)) && (input == 6))))) && a17 <= -108 )){ + a2 = (((a2 / 5) + -164157) * 3); + a7 = 13; + a5 = 7; + + return -1; + } else if(( a2 <= 189 && ((a24==15) && ((a5==7) && (((( a17 <= -108 && (a7==13)) || ((a7==14) && a17 <= -108 )) || ((a7==12) && ((-108 < a17) && (111 >= a17)) )) && (input == 3)))))){ + a17 = (((((a17 % 109)- -2) + -1) + 462727) + -462726); + a7 = 14; + a24 = 14; + + return -1; + } else if(((((a5==3) && ((input == 2) && ((( ((-108 < a17) && (111 >= a17)) && (a7==13)) || ( ((-108 < a17) && (111 >= a17)) && (a7==14))) || ( ((111 < a17) && (255 >= a17)) && (a7==12))))) && ((189 < a2) && (281 >= a2)) ) && (a24==14))){ + a17 = ((((a17 % 109)- -2) + -1) - -2); + a7 = 14; + + return -1; + } else if(((a5==3) && ( ((189 < a2) && (281 >= a2)) && (((((a7==14) && 255 < a17 ) && (a24==14)) || ((a24==15) && ((a7==12) && a17 <= -108 ))) && (input == 1))))){ + a17 = (((((a17 / 5) % 71)- -184) / 5) + 143); + a7 = 13; + a24 = 14; + + return -1; + } else if(((( a2 <= 189 && (( ((111 < a17) && (255 >= a17)) && (input == 5)) && (a24==15))) && (a5==5)) && (a7==14))){ + a2 = ((((((a2 - 0) * 9)/ 10) - 15643) % 45)+ 276); + a17 = (((a17 / 5) / 5) - -310668); + a7 = 13; + a5 = 4; + + return 23; + } else if((( ((189 < a2) && (281 >= a2)) && ((a24==15) && (((input == 6) && ((a7==14) || ((a7==12) || (a7==13)))) && (a5==5)))) && a17 <= -108 )){ + a2 = ((((a2 + 140796) / 5) / 5) * -5); + a7 = 12; + a24 = 14; + a5 = 7; + + return -1; + } else if(( ((189 < a2) && (281 >= a2)) && ((((input == 5) && (((a7==12) && ((-108 < a17) && (111 >= a17)) ) || (( a17 <= -108 && (a7==13)) || ( a17 <= -108 && (a7==14))))) && (a24==13)) && (a5==4)))){ + a17 = (((a17 / 5) / 5) + -194917); + a7 = 14; + a24 = 14; + a5 = 3; + + return -1; + } else if((( a2 <= 189 && ((a5==4) && ( a17 <= -108 && ((input == 2) && ((a7==13) || (a7==14)))))) && (a24==15))){ + a17 = ((((a17 % 109)- -85) + -84) - 0); + a7 = 12; + + return 21; + } else if(((a5==6) && (( 255 < a17 && ((((a7==12) || (a7==13)) && (input == 6)) && a2 <= 189 )) && (a24==15)))){ + a2 = (((((a2 % 45)- -235) / 5) / 5) + 244); + a7 = 13; + a5 = 3; + + return 26; + } else if(((a5==3) && (((a24==13) && ((( 255 < a17 && (a7==12)) || (( ((111 < a17) && (255 >= a17)) && (a7==13)) || ((a7==14) && ((111 < a17) && (255 >= a17)) ))) && (input == 5))) && ((189 < a2) && (281 >= a2)) ))){ + a2 = (((a2 - -580869) + -652808) * 5); + a17 = ((((a17 % 109)- -3) + -41) + 9); + a7 = 12; + a24 = 14; + a5 = 5; + + return -1; + } else if(((((a24==15) && ((((a7==12) || (a7==13)) && (input == 1)) && a17 <= -108 )) && (a5==5)) && a2 <= 189 )){ + a2 = (((((a2 * 9)/ 10) + -16953) % 45)+ 272); + a17 = ((((((a17 % 71)+ 236) * 5) + 502892) % 71)+ 132); + a7 = 13; + a24 = 13; + a5 = 4; + + return 23; + } else if(((((a24==13) && ((input == 1) && (( ((-108 < a17) && (111 >= a17)) && (a7==14)) || ( ((111 < a17) && (255 >= a17)) && (a7==12))))) && (a5==3)) && ((189 < a2) && (281 >= a2)) )){ + a2 = (((a2 * -5) + 409580) + -457191); + a17 = (((a17 - -196150) + 128540) - -116144); + a7 = 12; + a24 = 15; + a5 = 7; + + return -1; + } else if(((a24==15) && ((a5==4) && ((( ((-108 < a17) && (111 >= a17)) && (input == 1)) && ((189 < a2) && (281 >= a2)) ) && (a7==13))))){ + + return -1; + } else if((((((((a7==12) || (a7==13)) && (input == 3)) && (a5==5)) && ((-108 < a17) && (111 >= a17)) ) && a2 <= 189 ) && (a24==15))){ + a2 = ((((a2 % 45)+ 234) - -448340) + -448339); + a17 = (((a17 * 5) / 5) - -211113); + a7 = 13; + a24 = 14; + a5 = 4; + + return 26; + } else if((((a24==13) && (((((a7==12) && 255 < a17 ) || (((a7==13) && ((111 < a17) && (255 >= a17)) ) || ( ((111 < a17) && (255 >= a17)) && (a7==14)))) && (input == 5)) && ((189 < a2) && (281 >= a2)) )) && (a5==6))){ + a2 = (((a2 / 5) / 5) * -5); + a17 = (((((a17 % 299872)+ 256) + 239410) * 10)/ 9); + a7 = 12; + a24 = 15; + a5 = 7; + + return -1; + } else if(((a5==5) && ((a24==14) && ( a2 <= 189 && (((((a7==12) || (a7==13)) || (a7==14)) && (input == 2)) && 255 < a17 ))))){ + a2 = (((((a2 % 45)+ 236) * 5) % 45)- -195); + a17 = (((a17 - 600134) * 1) - 48); + a7 = 13; + a24 = 13; + a5 = 4; + + return 23; + } else if(( a2 <= 189 && ((a24==15) && (((((a7==14) && a17 <= -108 ) || ( ((-108 < a17) && (111 >= a17)) && (a7==12))) && (input == 1)) && (a5==6))))){ + a17 = (((((a17 * 9)/ 10) * 1) / 5) - 216856); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((a24==13) && ((a5==6) && (((input == 5) && (( 255 < a17 && (a7==12)) || (((a7==13) && ((111 < a17) && (255 >= a17)) ) || ((a7==14) && ((111 < a17) && (255 >= a17)) )))) && a2 <= 189 )))){ + a17 = ((((a17 % 109)- -1) - 83) - -75); + a7 = 12; + a24 = 15; + a5 = 4; + + return 26; + } else if((((a5==7) && (((input == 1) && (( 255 < a17 && (a7==12)) || (( ((111 < a17) && (255 >= a17)) && (a7==13)) || ( ((111 < a17) && (255 >= a17)) && (a7==14))))) && a2 <= 189 )) && (a24==13))){ + a17 = (((((a17 - 274936) + 211306) * 1) % 71)+ 182); + a7 = 13; + a5 = 5; + + return -1; + } else if(((a5==6) && ((a24==13) && (((((a7==12) || (a7==13)) && (input == 6)) && ((-108 < a17) && (111 >= a17)) ) && ((189 < a2) && (281 >= a2)) )))){ + a2 = (((a2 + -87407) - -312987) - 526695); + a17 = (((a17 + 556571) * 1) * 1); + a7 = 12; + a24 = 15; + a5 = 7; + + return -1; + } else if((( a2 <= 189 && ((a5==6) && ((((a7==13) || (a7==14)) && (input == 2)) && (a24==14)))) && a17 <= -108 )){ + + a7 = 14; + a24 = 15; + a5 = 3; + + return -1; + } else if(((a24==15) && (((a7==12) && (((input == 6) && a2 <= 189 ) && ((-108 < a17) && (111 >= a17)) )) && (a5==4)))){ + a17 = (((((a17 % 71)+ 182) + 0) + -506914) - -506916); + a24 = 13; + a5 = 5; + + return 21; + } else if(((( a17 <= -108 && (((a5==5) && (input == 5)) && a2 <= 189 )) && (a7==14)) && (a24==14))){ + + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if((( a2 <= 189 && (((( a17 <= -108 && (a7==12)) && (a24==14)) || ((((a7==13) && 255 < a17 ) && (a24==13)) || ((a24==13) && ((a7==14) && 255 < a17 )))) && (input == 5))) && (a5==6))){ + a2 = (((((a2 % 45)+ 234) / 5) / 5) + 253); + a17 = ((((a17 % 299872)+ 300127) + 0) + 0); + a7 = 13; + a24 = 14; + a5 = 3; + + return 26; + } + return calculate_output4(input); + } + + int calculate_output4(int input) { + + + if((( ((-108 < a17) && (111 >= a17)) && ((((input == 6) && ((a7==13) || (a7==14))) && (a24==15)) && a2 <= 189 )) && (a5==7))){ + + a7 = 13; + + return -1; + } else if(((((((input == 6) && a2 <= 189 ) && (a24==13)) && (a7==12)) && (a5==5)) && ((111 < a17) && (255 >= a17)) )){ + a17 = ((((a17 - -162890) - -143056) * 10)/ -9); + a5 = 3; + + return -1; + } else if((( ((189 < a2) && (281 >= a2)) && ((a24==15) && (((input == 3) && (((a7==12) || (a7==13)) || (a7==14))) && (a5==5)))) && a17 <= -108 )){ + a17 = (((((a17 + 326777) + 251227) - 58119) % 109)+ 1); + a7 = 12; + a24 = 13; + + return -1; + } else if(((a24==14) && ((a7==13) && ((( ((189 < a2) && (281 >= a2)) && (input == 5)) && ((-108 < a17) && (111 >= a17)) ) && (a5==4))))){ + + return 23; + } else if(( a2 <= 189 && ((((((a7==13) || (a7==14)) && (input == 3)) && (a24==15)) && (a5==6)) && ((111 < a17) && (255 >= a17)) ))){ + + a7 = 14; + + return 21; + } else if(((a7==13) && ( a17 <= -108 && ( a2 <= 189 && (((input == 5) && (a24==15)) && (a5==6)))))){ + + return 23; + } else if(((a24==14) && (((a5==5) && (( a2 <= 189 && (input == 6)) && a17 <= -108 )) && (a7==14)))){ + + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(( ((189 < a2) && (281 >= a2)) && ((a24==15) && ((a5==5) && ( a17 <= -108 && ((input == 4) && (((a7==12) || (a7==13)) || (a7==14)))))))){ + + a7 = 14; + a24 = 14; + + return -1; + } else if(((((((((a7==12) || (a7==13)) || (a7==14)) && (input == 1)) && (a5==7)) && a2 <= 189 ) && ((111 < a17) && (255 >= a17)) ) && (a24==15))){ + + a7 = 12; + a24 = 14; + + return -1; + } else if(( a2 <= 189 && ((((((a24==15) && ( 255 < a17 && (a7==14))) && (a5==4)) || ((a5==5) && (( a17 <= -108 && (a7==12)) && (a24==13)))) || ((a5==5) && (((a7==13) && a17 <= -108 ) && (a24==13)))) && (input == 5)))){ + a17 = ((((a17 % 299946)- 300053) + -1) + 0); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(( 255 < a17 && (((a5==6) && (((input == 6) && (a24==13)) && ((189 < a2) && (281 >= a2)) )) && (a7==13)))){ + a2 = (((a2 + -559930) - -930633) - 537732); + a17 = (((a17 - 600136) * 1) - 66); + a7 = 12; + a5 = 3; + + return -1; + } else if(( ((189 < a2) && (281 >= a2)) && ( ((-108 < a17) && (111 >= a17)) && (((a24==15) && ((input == 2) && ((a7==13) || (a7==14)))) && (a5==5))))){ + a2 = ((((a2 * -5) * 10)/ 9) * 5); + a17 = (((a17 - 416379) / 5) * 5); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((( ((189 < a2) && (281 >= a2)) && ((a24==15) && ((input == 3) && (((a7==12) || (a7==13)) || (a7==14))))) && a17 <= -108 ) && (a5==4))){ + a2 = (((a2 / 5) + -106387) + -147146); + a17 = ((((a17 % 299872)- -300127) - -270865) + 27768); + a7 = 12; + a5 = 7; + + return -1; + } else if(((( ((189 < a2) && (281 >= a2)) && ((a5==5) && ((a24==15) && (input == 5)))) && (a7==12)) && ((-108 < a17) && (111 >= a17)) )){ + a17 = (((a17 - -533048) + 40396) * 1); + a7 = 13; + a24 = 13; + + return -1; + } else if((( ((189 < a2) && (281 >= a2)) && ((((input == 6) && (a24==15)) && (a5==4)) && (a7==12))) && ((-108 < a17) && (111 >= a17)) )){ + a2 = (((a2 * -5) * 5) * 5); + a17 = (((a17 - 418037) * 1) - -234835); + a24 = 13; + a5 = 3; + + return -1; + } else if(((((((input == 4) && (a24==13)) && (a5==6)) && a17 <= -108 ) && (a7==14)) && ((189 < a2) && (281 >= a2)) )){ + + a7 = 12; + a5 = 3; + + return -1; + } else if(((a24==13) && ((a5==5) && ( a2 <= 189 && ((((a7==13) && ((-108 < a17) && (111 >= a17)) ) || (((a7==14) && a17 <= -108 ) || ( ((-108 < a17) && (111 >= a17)) && (a7==12)))) && (input == 2)))))){ + a17 = ((((a17 - -453354) % 299946)+ -300053) * 1); + a7 = 12; + a5 = 3; + + return -1; + } else if(((a24==15) && ( a2 <= 189 && (((((a7==12) && ((-108 < a17) && (111 >= a17)) ) || (((a7==13) && a17 <= -108 ) || ((a7==14) && a17 <= -108 ))) && (input == 5)) && (a5==7))))){ + a17 = ((((a17 - 0) % 299872)+ 300127) * 1); + a7 = 13; + a24 = 13; + a5 = 5; + + return -1; + } else if(( ((189 < a2) && (281 >= a2)) && ((a24==14) && ((a7==13) && (((input == 6) && (a5==3)) && ((111 < a17) && (255 >= a17)) ))))){ + + return 26; + } else if(( 255 < a17 && ((a24==13) && (((a7==13) && ((input == 6) && a2 <= 189 )) && (a5==7))))){ + a17 = (((((a17 % 109)+ 3) - 249216) * 2) - -498320); + a7 = 14; + a24 = 15; + a5 = 4; + + return -1; + } else if(((a24==14) && ( ((111 < a17) && (255 >= a17)) && (((a5==6) && ((input == 5) && ((a7==14) || ((a7==12) || (a7==13))))) && a2 <= 189 )))){ + a2 = (((((a2 % 45)+ 234) * 5) % 45)- -233); + a17 = ((((((a17 * 10)/ -9) + 137075) * 4) * -1)/ 10); + a7 = 12; + a24 = 13; + a5 = 4; + + return 26; + } else if(( ((189 < a2) && (281 >= a2)) && ((a5==4) && ((a24==14) && ((input == 5) && (( ((-108 < a17) && (111 >= a17)) && (a7==14)) || ( ((111 < a17) && (255 >= a17)) && (a7==12)))))))){ + a2 = (((a2 / -5) + -474783) / 5); + a17 = (((a17 - 32453) * 5) / 5); + a7 = 14; + a24 = 15; + a5 = 5; + + return 23; + } else if(( 255 < a17 && ((a24==15) && ((a5==5) && ( ((189 < a2) && (281 >= a2)) && (((a7==14) || ((a7==12) || (a7==13))) && (input == 2))))))){ + a2 = (((a2 + -107856) - 174986) / 5); + a17 = (((a17 - 83582) + -516569) * 1); + a7 = 12; + a24 = 13; + a5 = 3; + + return -1; + } else if(((((a5==5) && (((a24==13) && (input == 2)) && a2 <= 189 )) && (a7==13)) && ((111 < a17) && (255 >= a17)) )){ + a17 = (((a17 - 3949) * 5) * 5); + a7 = 12; + a5 = 3; + + return -1; + } + return -2; + } + +int main() +{ + // default output + int output = -1; + + // main i/o-loop + while(1) + { + // read input + int input; + input = __VERIFIER_nondet_int(); + if ((input != 1) && (input != 2) && (input != 3) && (input != 4) && (input != 5) && (input != 6)) return -2; + + // operate eca engine + output = calculate_output(input); + } +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem13_label00_true-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem13_label00_true-unreach-call.c new file mode 100644 index 000000000..46cbac7de --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem13_label00_true-unreach-call.c @@ -0,0 +1,5812 @@ +extern void __VERIFIER_error(void); +extern int __VERIFIER_nondet_int(void); +extern void exit(int); + + // inputs + int inputB = 2; + int inputE = 5; + int inputC = 3; + int inputD = 4; + int inputF = 6; + + + int a26 = 1; + int a13 = 0; + int a19 = 9; + int a23 = 158; + int a12 = 286; + int a1 = 2; + + int calculate_output2(int input); + int calculate_output3(int input); + int calculate_output4(int input); + + int calculate_output(int input) { + if(((((( ((178 < a12) && (395 >= a12)) && ((95 < a23) && (264 >= a23)) ) && (a26==1)) && (a1==2)) && (a19==11)) && (a13==1))){ + error_48: exit(0); + } + if(((((( ((178 < a12) && (395 >= a12)) && ((264 < a23) && (476 >= a23)) ) && (a26==1)) && (a1==2)) && (a19==10)) && (a13==1))){ + error_45: exit(0); + } + if(((((( a12 <= 178 && ((95 < a23) && (264 >= a23)) ) && (a26==1)) && (a1==2)) && (a19==12)) && !(a13==1))){ + error_32: exit(0); + } + if(((((( a12 <= 178 && ((95 < a23) && (264 >= a23)) ) && (a26==1)) && (a1==2)) && (a19==12)) && (a13==1))){ + error_12: exit(0); + } + if(((((( a12 <= 178 && a23 <= 95 ) && (a26==1)) && (a1==2)) && (a19==13)) && !(a13==1))){ + error_35: exit(0); + } + if(((((( a12 <= 178 && ((95 < a23) && (264 >= a23)) ) && (a26==1)) && (a1==2)) && (a19==13)) && !(a13==1))){ + error_36: exit(0); + } + if(((((( ((178 < a12) && (395 >= a12)) && 476 < a23 ) && (a26==1)) && (a1==2)) && (a19==13)) && (a13==1))){ + error_58: exit(0); + } + if(((((( a12 <= 178 && a23 <= 95 ) && (a26==1)) && (a1==2)) && (a19==10)) && !(a13==1))){ + error_23: exit(0); + } + if(((((( a12 <= 178 && ((264 < a23) && (476 >= a23)) ) && (a26==1)) && (a1==2)) && (a19==11)) && !(a13==1))){ + error_29: exit(0); + } + if(((((( a12 <= 178 && ((95 < a23) && (264 >= a23)) ) && (a26==1)) && (a1==2)) && (a19==11)) && !(a13==1))){ + error_28: exit(0); + } + if(((((( a12 <= 178 && ((95 < a23) && (264 >= a23)) ) && (a26==1)) && (a1==2)) && (a19==10)) && (a13==1))){ + error_4: exit(0); + } + if(((((( a12 <= 178 && a23 <= 95 ) && (a26==1)) && (a1==2)) && (a19==9)) && !(a13==1))){ + error_19: exit(0); + } + if(((((( ((178 < a12) && (395 >= a12)) && a23 <= 95 ) && (a26==1)) && (a1==2)) && (a19==10)) && (a13==1))){ + error_43: exit(0); + } + if(((((( a12 <= 178 && 476 < a23 ) && (a26==1)) && (a1==2)) && (a19==11)) && !(a13==1))){ + error_30: exit(0); + } + if(((((( a12 <= 178 && ((264 < a23) && (476 >= a23)) ) && (a26==1)) && (a1==2)) && (a19==9)) && !(a13==1))){ + error_21: exit(0); + } + if(((((( a12 <= 178 && a23 <= 95 ) && (a26==1)) && (a1==2)) && (a19==11)) && (a13==1))){ + error_7: exit(0); + } + if(((((( a12 <= 178 && ((95 < a23) && (264 >= a23)) ) && (a26==1)) && (a1==2)) && (a19==13)) && (a13==1))){ + error_16: exit(0); + } + if(((((( a12 <= 178 && ((264 < a23) && (476 >= a23)) ) && (a26==1)) && (a1==2)) && (a19==10)) && !(a13==1))){ + error_25: exit(0); + } + if(((((( ((178 < a12) && (395 >= a12)) && a23 <= 95 ) && (a26==1)) && (a1==2)) && (a19==12)) && (a13==1))){ + error_51: exit(0); + } + if(((((( a12 <= 178 && 476 < a23 ) && (a26==1)) && (a1==2)) && (a19==10)) && (a13==1))){ + error_6: exit(0); + } + if(((((( a12 <= 178 && a23 <= 95 ) && (a26==1)) && (a1==2)) && (a19==12)) && (a13==1))){ + error_11: exit(0); + } + if(((((( ((178 < a12) && (395 >= a12)) && 476 < a23 ) && (a26==1)) && (a1==2)) && (a19==12)) && (a13==1))){ + error_54: exit(0); + } + if(((((( ((178 < a12) && (395 >= a12)) && ((95 < a23) && (264 >= a23)) ) && (a26==1)) && (a1==2)) && (a19==9)) && (a13==1))){ + error_40: exit(0); + } + if(((((( a12 <= 178 && ((95 < a23) && (264 >= a23)) ) && (a26==1)) && (a1==2)) && (a19==10)) && !(a13==1))){ + error_24: exit(0); + } + if(((((( ((178 < a12) && (395 >= a12)) && ((95 < a23) && (264 >= a23)) ) && (a26==1)) && (a1==2)) && (a19==10)) && (a13==1))){ + error_44: exit(0); + } + if(((((( ((178 < a12) && (395 >= a12)) && ((264 < a23) && (476 >= a23)) ) && (a26==1)) && (a1==2)) && (a19==12)) && (a13==1))){ + error_53: exit(0); + } + if(((((( a12 <= 178 && 476 < a23 ) && (a26==1)) && (a1==2)) && (a19==9)) && !(a13==1))){ + error_22: exit(0); + } + if(((((( a12 <= 178 && ((264 < a23) && (476 >= a23)) ) && (a26==1)) && (a1==2)) && (a19==13)) && (a13==1))){ + error_17: exit(0); + } + if(((((( a12 <= 178 && a23 <= 95 ) && (a26==1)) && (a1==2)) && (a19==10)) && (a13==1))){ + error_3: exit(0); + } + if(((((( a12 <= 178 && ((264 < a23) && (476 >= a23)) ) && (a26==1)) && (a1==2)) && (a19==12)) && !(a13==1))){ + error_33: exit(0); + } + if(((((( a12 <= 178 && a23 <= 95 ) && (a26==1)) && (a1==2)) && (a19==13)) && (a13==1))){ + error_15: exit(0); + } + if(((((( a12 <= 178 && ((95 < a23) && (264 >= a23)) ) && (a26==1)) && (a1==2)) && (a19==9)) && (a13==1))){ + error_0: __VERIFIER_error(); + } + if(((((( a12 <= 178 && 476 < a23 ) && (a26==1)) && (a1==2)) && (a19==10)) && !(a13==1))){ + error_26: exit(0); + } + if(((((( a12 <= 178 && 476 < a23 ) && (a26==1)) && (a1==2)) && (a19==9)) && (a13==1))){ + error_2: exit(0); + } + if(((((( a12 <= 178 && a23 <= 95 ) && (a26==1)) && (a1==2)) && (a19==12)) && !(a13==1))){ + error_31: exit(0); + } + if(((((( a12 <= 178 && 476 < a23 ) && (a26==1)) && (a1==2)) && (a19==12)) && (a13==1))){ + error_14: exit(0); + } + if(((((( a12 <= 178 && ((264 < a23) && (476 >= a23)) ) && (a26==1)) && (a1==2)) && (a19==10)) && (a13==1))){ + error_5: exit(0); + } + if(((((( ((178 < a12) && (395 >= a12)) && a23 <= 95 ) && (a26==1)) && (a1==2)) && (a19==11)) && (a13==1))){ + error_47: exit(0); + } + if(((((( ((178 < a12) && (395 >= a12)) && ((264 < a23) && (476 >= a23)) ) && (a26==1)) && (a1==2)) && (a19==9)) && (a13==1))){ + error_41: exit(0); + } + if(((((( a12 <= 178 && a23 <= 95 ) && (a26==1)) && (a1==2)) && (a19==11)) && !(a13==1))){ + error_27: exit(0); + } + if(((((( ((178 < a12) && (395 >= a12)) && a23 <= 95 ) && (a26==1)) && (a1==2)) && (a19==9)) && !(a13==1))){ + error_59: exit(0); + } + if(((((( a12 <= 178 && 476 < a23 ) && (a26==1)) && (a1==2)) && (a19==11)) && (a13==1))){ + error_10: exit(0); + } + if(((((( ((178 < a12) && (395 >= a12)) && a23 <= 95 ) && (a26==1)) && (a1==2)) && (a19==13)) && (a13==1))){ + error_55: exit(0); + } + if(((((( a12 <= 178 && ((264 < a23) && (476 >= a23)) ) && (a26==1)) && (a1==2)) && (a19==9)) && (a13==1))){ + error_1: exit(0); + } + if(((((( a12 <= 178 && ((95 < a23) && (264 >= a23)) ) && (a26==1)) && (a1==2)) && (a19==11)) && (a13==1))){ + error_8: exit(0); + } + if(((((( ((178 < a12) && (395 >= a12)) && a23 <= 95 ) && (a26==1)) && (a1==2)) && (a19==9)) && (a13==1))){ + error_39: exit(0); + } + if(((((( a12 <= 178 && a23 <= 95 ) && (a26==1)) && (a1==2)) && (a19==9)) && (a13==1))){ + globalError: exit(0); + } + if(((((( ((178 < a12) && (395 >= a12)) && ((95 < a23) && (264 >= a23)) ) && (a26==1)) && (a1==2)) && (a19==13)) && (a13==1))){ + error_56: exit(0); + } + if(((((( a12 <= 178 && ((264 < a23) && (476 >= a23)) ) && (a26==1)) && (a1==2)) && (a19==13)) && !(a13==1))){ + error_37: exit(0); + } + if(((((( a12 <= 178 && ((95 < a23) && (264 >= a23)) ) && (a26==1)) && (a1==2)) && (a19==9)) && !(a13==1))){ + error_20: exit(0); + } + if(((((( a12 <= 178 && 476 < a23 ) && (a26==1)) && (a1==2)) && (a19==12)) && !(a13==1))){ + error_34: exit(0); + } + if(((((( a12 <= 178 && ((264 < a23) && (476 >= a23)) ) && (a26==1)) && (a1==2)) && (a19==12)) && (a13==1))){ + error_13: exit(0); + } + if(((((( ((178 < a12) && (395 >= a12)) && ((264 < a23) && (476 >= a23)) ) && (a26==1)) && (a1==2)) && (a19==11)) && (a13==1))){ + error_49: exit(0); + } + if(((((( a12 <= 178 && 476 < a23 ) && (a26==1)) && (a1==2)) && (a19==13)) && !(a13==1))){ + error_38: exit(0); + } + if(((((( a12 <= 178 && ((264 < a23) && (476 >= a23)) ) && (a26==1)) && (a1==2)) && (a19==11)) && (a13==1))){ + error_9: exit(0); + } + if(((((( ((178 < a12) && (395 >= a12)) && ((264 < a23) && (476 >= a23)) ) && (a26==1)) && (a1==2)) && (a19==13)) && (a13==1))){ + error_57: exit(0); + } + if(((((( ((178 < a12) && (395 >= a12)) && 476 < a23 ) && (a26==1)) && (a1==2)) && (a19==11)) && (a13==1))){ + error_50: exit(0); + } + if(((((( a12 <= 178 && 476 < a23 ) && (a26==1)) && (a1==2)) && (a19==13)) && (a13==1))){ + error_18: exit(0); + } + if(((((( ((178 < a12) && (395 >= a12)) && ((95 < a23) && (264 >= a23)) ) && (a26==1)) && (a1==2)) && (a19==12)) && (a13==1))){ + error_52: exit(0); + } + if(((((( ((178 < a12) && (395 >= a12)) && 476 < a23 ) && (a26==1)) && (a1==2)) && (a19==9)) && (a13==1))){ + error_42: exit(0); + } + if(((((( ((178 < a12) && (395 >= a12)) && 476 < a23 ) && (a26==1)) && (a1==2)) && (a19==10)) && (a13==1))){ + error_46: exit(0); + } + + if(((a26==1) && (((((input == 5) && ((( ((264 < a23) && (476 >= a23)) && (a19==10)) || ( 476 < a23 && (a19==10))) || ( a23 <= 95 && (a19==11)))) && ((178 < a12) && (395 >= a12)) ) && (a1==3)) && (a13==1)))){ + a12 = (((a12 / -5) + -126237) + -461764); + a23 = ((((((a23 * 9)/ 10) - 41318) + -3722) % 84)- -180); + a1 = 2; + a19 = 11; + a13 = 0; + + return -1; + } else if(((a19==13) && ( ((395 < a12) && (441 >= a12)) && ((a1==3) && ((a26==1) && (((input == 4) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )) && (a13==1))))))){ + a12 = (((((a12 * 5) % 108)- -278) * 9)/ 10); + a23 = ((((a23 % 299761)+ 300237) - 569250) + 569252); + a1 = 2; + a19 = 11; + a13 = 0; + + return 22; + } else if(((((a1==2) && (((input == 2) && (((a19==12) && a23 <= 95 ) || (((a19==11) && ((264 < a23) && (476 >= a23)) ) || ( 476 < a23 && (a19==11))))) && !(a13==1))) && 441 < a12 ) && (a26==1))){ + a12 = (((a12 + -600385) - 26) - 18); + a23 = (((((a23 - 0) * 9)/ 10) % 84)- -180); + a1 = 3; + a19 = 11; + + return 24; + } else if((((a26==1) && (((a13==1) && ((input == 2) && (( a23 <= 95 && (a19==13)) || (((a19==12) && ((264 < a23) && (476 >= a23)) ) || ((a19==12) && 476 < a23 ))))) && a12 <= 178 )) && (a1==3))){ + a12 = ((((a12 % 22)+ 419) * 1) + 1); + a23 = ((((a23 + 0) / 5) + -63124) + -319027); + a1 = 2; + a19 = 9; + + return -1; + } else if(((((a26==1) && (((a19==11) && ((a1==2) && (input == 6))) && 441 < a12 )) && (a13==1)) && ((95 < a23) && (264 >= a23)) )){ + a12 = (((a12 / 5) * 4) / -5); + a23 = (((a23 / 5) + 1421) + 490082); + a1 = 3; + a19 = 9; + a13 = 0; + + return 24; + } else if(( a12 <= 178 && (!(a13==1) && ((a26==1) && (((input == 2) && (((a19==13) && a23 <= 95 ) || (( ((264 < a23) && (476 >= a23)) && (a19==12)) || ((a19==12) && 476 < a23 )))) && (a1==3)))))){ + if( a23 <= 95 ){ + a12 = ((((a12 % 108)- -287) - -1) + -1); + a23 = (((((a23 % 300047)- 299951) + -3) + 528456) + -528455); + a19 = 9; + + } else{ + a23 = ((((((a23 + 0) * 9)/ 10) / 5) % 84)+ 180); + a19 = 10; + + } return -1; + } else if((((((a1==2) && (((( 476 < a23 && (a19==10)) || ((a19==11) && a23 <= 95 )) || ( ((95 < a23) && (264 >= a23)) && (a19==11))) && (input == 3))) && ((395 < a12) && (441 >= a12)) ) && (a26==1)) && !(a13==1))){ + a12 = ((((a12 / 5) / 5) * 5) - -206); + a23 = (((((a23 / 5) + -320493) * 1) % 84)- -228); + a19 = 10; + a13 = 1; + + return -1; + } else if(( ((178 < a12) && (395 >= a12)) && ((a26==1) && (((a19==9) && (((input == 6) && (a13==1)) && (a1==3))) && 476 < a23 )))){ + a12 = ((((a12 / 5) / 5) - -264889) - 315629); + a23 = ((((((a23 % 84)+ 136) * 10)/ 9) * 9)/ 10); + a19 = 13; + + return -1; + } else if((( ((95 < a23) && (264 >= a23)) && ((!(a13==1) && ((a19==11) && ((a26==1) && (input == 4)))) && ((178 < a12) && (395 >= a12)) )) && (a1==2))){ + a12 = ((((((a12 % 22)- -397) * 5) * 5) % 22)- -410); + a23 = (((((a23 + 176) / 5) / 5) * 265)/ 10); + return 26; + } else if(((a26==1) && (((((a19==13) && (( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 6))) && a12 <= 178 ) && !(a13==1)) && (a1==3)))){ + a12 = (((((a12 - 0) - 0) - 0) % 22)- -419); + a23 = ((((((a23 % 105)- -273) * 10)/ 9) + -61447) - -61498); + a19 = 11; + + return -1; + } else if(((((a26==1) && (( 441 < a12 && (!(a13==1) && (input == 2))) && ((95 < a23) && (264 >= a23)) )) && (a1==3)) && (a19==13))){ + a12 = (((a12 / -5) / 5) * 5); + a23 = (((a23 - -110111) * 5) + 24151); + a1 = 2; + a19 = 9; + + return 26; + } else if(((a19==13) && ((((a1==3) && ((( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 3)) && 441 < a12 )) && (a26==1)) && !(a13==1)))){ + if( a23 <= 95 ){ + a12 = (((((a12 % 22)- -416) * 5) % 22)+ 409); + a23 = (((((a23 / 5) % 105)- -275) + 363812) - 363778); + a1 = 2; + a19 = 11; + a13 = 1; + + } else{ + a12 = ((((a12 % 108)+ 268) + 429253) + -429248); + a23 = ((((a23 % 299761)+ 477) + -36214) + 134207); + a1 = 2; + a19 = 12; + a13 = 1; + + } return -1; + } else if(((a19==11) && ((a26==1) && (( 476 < a23 && ( ((395 < a12) && (441 >= a12)) && ((a1==3) && (input == 2)))) && !(a13==1))))){ + a12 = (((a12 + -285957) + 872742) - -6114); + a23 = ((((a23 % 105)- -266) + -390542) + 390567); + a1 = 2; + a19 = 10; + + return 26; + } else if(((a1==3) && ((a26==1) && ((((a19==13) && ((input == 3) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) ))) && ((178 < a12) && (395 >= a12)) ) && !(a13==1))))){ + a12 = ((((a12 + 266107) / -5) + 643898) - 1106839); + a23 = (((((a23 / 5) / 5) / 5) % 84)+ 180); + a19 = 11; + + return -1; + } else if(((a26==1) && (((((((a19==11) && ((95 < a23) && (264 >= a23)) ) || (( 476 < a23 && (a19==10)) || ((a19==11) && a23 <= 95 ))) && (input == 6)) && !(a13==1)) && ((395 < a12) && (441 >= a12)) ) && (a1==3)))){ + a12 = (((a12 + -273505) * 2) * 1); + a23 = ((((a23 + 0) % 299761)+ 300237) - 0); + a19 = 9; + + return 22; + } else if((((a19==10) && (((((input == 2) && ((178 < a12) && (395 >= a12)) ) && a23 <= 95 ) && (a13==1)) && (a1==3))) && (a26==1))){ + + return 26; + } else if(((((a1==2) && (((a26==1) && ((input == 2) && (( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) || 476 < a23 ))) && 441 < a12 )) && (a13==1)) && (a19==13))){ + a12 = ((((a12 * 9)/ 10) / -5) * 5); + a23 = (((a23 + 0) - 599977) * 1); + a1 = 3; + a13 = 0; + + return 26; + } else if(((((((a1==2) && (!(a13==1) && (input == 6))) && (a19==12)) && ((264 < a23) && (476 >= a23)) ) && (a26==1)) && ((178 < a12) && (395 >= a12)) )){ + a12 = (((a12 - -120622) + 344088) - -28731); + a19 = 9; + + return 24; + } else if(((a26==1) && (((( ((395 < a12) && (441 >= a12)) && ((input == 5) && (a19==11))) && (a13==1)) && (a1==3)) && ((264 < a23) && (476 >= a23)) ))){ + a12 = ((((((a12 * 10)/ 12) * 5) * 5) % 108)- -195); + a23 = ((((((a23 * 18)/ 10) * 10)/ 9) * 10)/ 9); + a1 = 2; + a19 = 10; + a13 = 0; + + return -1; + } else if(((a13==1) && ((( 441 < a12 && ((input == 6) && ((( 476 < a23 && (a19==9)) || ( a23 <= 95 && (a19==10))) || ( ((95 < a23) && (264 >= a23)) && (a19==10))))) && (a26==1)) && (a1==2)))){ + if((a26==1)){ + a12 = (((((a12 * 9)/ 10) % 22)- -412) + 1); + a23 = ((((a23 % 84)- -180) * 1) + -1); + a1 = 3; + a19 = 10; + a13 = 0; + + } else{ + a12 = ((((a12 + 0) + 0) % 108)- -208); + a23 = ((((a23 % 84)+ 180) / 5) + 129); + a1 = 3; + a19 = 10; + + } return 26; + } else if(( ((264 < a23) && (476 >= a23)) && ((a26==1) && ((!(a13==1) && ((a1==3) && ((input == 3) && (a19==10)))) && a12 <= 178 )))){ + a12 = ((((((a12 + 0) + 0) * 9)/ 10) % 108)- -286); + a23 = (((((a23 * 10)/ 5) * 5) * 10)/ 9); + a19 = 12; + a13 = 1; + + return -1; + } else if(((((a1==3) && ((((( ((264 < a23) && (476 >= a23)) && (a19==13)) && (a13==1)) || ((a13==1) && ( 476 < a23 && (a19==13)))) || (((a19==9) && a23 <= 95 ) && !(a13==1))) && (input == 2))) && ((395 < a12) && (441 >= a12)) ) && (a26==1))){ + a12 = (((a12 + 60048) + -218312) * 3); + a23 = ((((a23 - 0) % 84)- -180) * 1); + a19 = 13; + a13 = 0; + + return 24; + } else if(((a19==13) && (((a13==1) && ((a1==2) && ((a26==1) && (( ((264 < a23) && (476 >= a23)) || ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )) && (input == 5))))) && ((395 < a12) && (441 >= a12)) ))){ + a12 = ((((a12 * -5) / 5) + 55050) * -5); + a23 = ((((a23 + 592833) + 2658) % 299761)+ 300237); + a1 = 3; + a19 = 9; + a13 = 0; + + return 24; + } else if(((a26==1) && (((((a19==13) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 4))) && (a13==1)) && (a1==3)) && ((178 < a12) && (395 >= a12)) ))){ + a12 = ((((a12 % 22)+ 404) + -5) - 2); + a23 = ((((a23 + 133357) % 299761)+ 300237) * 1); + a1 = 2; + + return 22; + } else if((!(a13==1) && ((a26==1) && (( ((178 < a12) && (395 >= a12)) && ((((a19==10) && ((95 < a23) && (264 >= a23)) ) || (((a19==9) && 476 < a23 ) || ( a23 <= 95 && (a19==10)))) && (input == 3))) && (a1==2))))){ + a23 = ((((a23 - 0) + 0) % 84)- -179); + a19 = 11; + + return 22; + } else if((( 441 < a12 && ((a1==3) && ((a19==12) && (((input == 6) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 )) && (a13==1))))) && (a26==1))){ + a12 = ((((a12 + 0) + 0) - 0) - 600103); + a23 = ((((a23 / 5) - 117734) - -130771) - 195082); + a13 = 0; + + return -1; + } else if(((a13==1) && ((( ((395 < a12) && (441 >= a12)) && (((( ((264 < a23) && (476 >= a23)) && (a19==9)) || ( 476 < a23 && (a19==9))) || ((a19==10) && a23 <= 95 )) && (input == 5))) && (a26==1)) && (a1==2)))){ + a12 = (((a12 / 5) - 387260) / 5); + a23 = (((((((a23 * 9)/ 10) % 84)+ 179) * 5) % 84)- -100); + a1 = 3; + a19 = 13; + + return 24; + } else if((((a1==3) && ((a19==9) && ( ((395 < a12) && (441 >= a12)) && ((( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 5)) && !(a13==1))))) && (a26==1))){ + a12 = (((a12 * 5) + 564936) * -1); + a23 = (((((a23 - 0) - 204575) + 85032) % 84)- -179); + a19 = 13; + + return 24; + } else if((( ((395 < a12) && (441 >= a12)) && ((a19==11) && ((a13==1) && (((input == 5) && (a1==3)) && 476 < a23 )))) && (a26==1))){ + a12 = (((((a12 + -358118) * 10)/ 9) * 10)/ 9); + a19 = 12; + a13 = 0; + + return 22; + } else if(( ((395 < a12) && (441 >= a12)) && (((!(a13==1) && (((((a19==12) && ((264 < a23) && (476 >= a23)) ) || ( 476 < a23 && (a19==12))) || ( a23 <= 95 && (a19==13))) && (input == 4))) && (a1==2)) && (a26==1)))){ + a12 = ((((a12 + -161175) * 10)/ 9) + -53841); + a23 = ((((a23 - 0) + 0) % 300047)+ -299951); + a1 = 3; + a19 = 12; + + return 26; + } else if(( ((395 < a12) && (441 >= a12)) && ((a26==1) && ((a1==2) && (!(a13==1) && ((a19==10) && ((input == 2) && ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) )))))))){ + a23 = (((((a23 % 84)+ 104) + -2) - 41901) + 41937); + a1 = 3; + a19 = 9; + + return 26; + } else if(((a26==1) && ((((((input == 6) && ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) )) && !(a13==1)) && (a19==9)) && (a1==2)) && ((178 < a12) && (395 >= a12)) ))){ + a23 = (((a23 + 74530) * 5) * 1); + a19 = 10; + + return 22; + } else if(( ((395 < a12) && (441 >= a12)) && (((a1==2) && ((a26==1) && ((input == 4) && ((( 476 < a23 && (a19==10)) || ( a23 <= 95 && (a19==11))) || ( ((95 < a23) && (264 >= a23)) && (a19==11)))))) && !(a13==1)))){ + a12 = (((a12 / 5) + -71204) - 454327); + a23 = ((((a23 - 0) + 0) % 300047)- 299951); + a19 = 9; + a13 = 1; + + return -1; + } else if(((a26==1) && (((((a1==2) && ((input == 2) && ((395 < a12) && (441 >= a12)) )) && (a19==13)) && !(a13==1)) && ((95 < a23) && (264 >= a23)) ))){ + a12 = ((((a12 * 5) + 544472) - 331973) * -2); + a23 = (((a23 * -5) / 5) - 181301); + a19 = 11; + a13 = 1; + + return -1; + } else if(( 441 < a12 && ((a13==1) && ((a26==1) && (( ((95 < a23) && (264 >= a23)) && ((input == 2) && (a19==11))) && (a1==2)))))){ + a12 = (((((a12 % 108)+ 285) + -175789) - -225503) - 49729); + a23 = (((a23 + -445597) - 151458) * 1); + a1 = 3; + a19 = 10; + + return 22; + } else if(((((((a13==1) && (( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) && (input == 6))) && (a1==2)) && (a19==9)) && 441 < a12 ) && (a26==1))){ + a12 = (((((a12 * 9)/ 10) * 1) % 22)+ 405); + a23 = (((((a23 * 5) * 5) * 5) % 105)- -286); + a1 = 3; + a19 = 11; + + return 26; + } else if(( ((178 < a12) && (395 >= a12)) && ((a19==10) && ( ((264 < a23) && (476 >= a23)) && (((!(a13==1) && (input == 3)) && (a26==1)) && (a1==2)))))){ + a12 = (((a12 + 17844) / 5) + -3206); + a23 = ((((a23 / -5) - 10205) + 138848) * -4); + a19 = 9; + a13 = 1; + + return 24; + } else if((((a1==3) && ( ((178 < a12) && (395 >= a12)) && ((a13==1) && ((a19==12) && ((input == 4) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 )))))) && (a26==1))){ + a12 = ((((a12 + 73763) - 602395) - -956648) - 536625); + a23 = ((((a23 + -600084) + 399557) * 1) + -399532); + return -1; + } else if(((a19==11) && ((!(a13==1) && ((a26==1) && (((input == 2) && ((178 < a12) && (395 >= a12)) ) && (a1==2)))) && a23 <= 95 ))){ + a12 = (((((a12 % 22)+ 399) + -3) / 5) - -317); + a23 = ((((((a23 % 105)- -369) - 292738) * 2) % 105)+ 381); + a19 = 13; + a13 = 1; + + return 26; + } else if((((a13==1) && (((a26==1) && ((((a19==11) && 476 < a23 ) || ( a23 <= 95 && (a19==12))) && (input == 3))) && a12 <= 178 )) && (a1==4))){ + if((a1==6)){ + a23 = ((((a23 % 300047)+ -299951) + -2) * 1); + a19 = 9; + + } else{ + a23 = ((((a23 % 105)- -371) / 5) - -281); + a1 = 2; + a19 = 13; + a13 = 0; + + } return 24; + } else if((((a1==3) && ((a13==1) && ((((( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) || ((264 < a23) && (476 >= a23)) ) && (input == 6)) && (a26==1)) && (a19==9)))) && ((178 < a12) && (395 >= a12)) )){ + a12 = ((((a12 / -5) * 10)/ 9) + -154564); + a23 = (((((a23 % 299761)+ 300237) * 1) / 5) + 16675); + a19 = 12; + + return -1; + } else if(( ((395 < a12) && (441 >= a12)) && (((((a19==11) && ((input == 6) && (a26==1))) && (a1==3)) && (a13==1)) && ((264 < a23) && (476 >= a23)) ))){ + a12 = (((a12 - 292436) - -825094) * -1); + a23 = (((((a23 * 10)/ 18) - 45) - 326469) + 326473); + a19 = 13; + + return -1; + } else if((( a12 <= 178 && (!(a13==1) && (((input == 6) && (((a19==10) && a23 <= 95 ) || (( ((264 < a23) && (476 >= a23)) && (a19==9)) || ((a19==9) && 476 < a23 )))) && (a26==1)))) && (a1==4))){ + a23 = ((((a23 % 299761)- -300237) / 5) + 197106); + a1 = 2; + a19 = 9; + + return -1; + } else if(((a1==3) && (!(a13==1) && ((((((a19==11) && ((95 < a23) && (264 >= a23)) ) || (( 476 < a23 && (a19==10)) || ( a23 <= 95 && (a19==11)))) && (input == 3)) && ((395 < a12) && (441 >= a12)) ) && (a26==1))))){ + a12 = ((((a12 * 5) + -90384) * 10)/ 9); + a23 = ((((a23 + 0) % 105)+ 371) - 2); + a19 = 12; + a13 = 1; + + return 24; + } else if(((((a26==1) && ((a1==2) && ((input == 3) && ((((a19==9) && 476 < a23 ) || ( a23 <= 95 && (a19==10))) || ( ((95 < a23) && (264 >= a23)) && (a19==10)))))) && (a13==1)) && 441 < a12 )){ + a12 = ((((a12 + 0) / -5) * 10)/ 9); + a23 = ((((a23 + 0) % 300047)+ -299951) + -2); + a19 = 9; + + return -1; + } else if(( 476 < a23 && ((a26==1) && ( ((178 < a12) && (395 >= a12)) && ((a13==1) && ((a1==3) && ((a19==9) && (input == 2)))))))){ + a12 = (((a12 * 5) - 454448) * 1); + a23 = ((((a23 % 84)+ 100) - -46) + 35); + a13 = 0; + + return -1; + } else if(((( ((178 < a12) && (395 >= a12)) && ((a26==1) && ((input == 4) && ((( 476 < a23 && (a19==12)) || ((a19==13) && a23 <= 95 )) || ((a19==13) && ((95 < a23) && (264 >= a23)) ))))) && !(a13==1)) && (a1==2))){ + a12 = (((a12 + -441193) * 1) * 1); + a23 = ((((a23 % 300047)+ -299951) * 1) - 2); + a19 = 9; + a13 = 1; + + return -1; + } else if(((((a26==1) && (!(a13==1) && ((( 476 < a23 && (a19==9)) || ((a19==10) && a23 <= 95 )) && (input == 2)))) && a12 <= 178 ) && (a1==3))){ + if((a13==1)){ + a12 = ((((a12 % 22)+ 418) - -1) * 1); + a23 = (((((a23 * 9)/ 10) % 105)+ 370) * 1); + a19 = 9; + + } else{ + a23 = ((((a23 % 84)+ 179) + -104349) + 104349); + a19 = 12; + a13 = 1; + + } return -1; + } else if(((a26==1) && (((((a19==12) && ((input == 4) && ((264 < a23) && (476 >= a23)) )) && 441 < a12 ) && !(a13==1)) && (a1==3)))){ + if((a1==2)){ + a12 = (((a12 / 5) - 447487) + -111411); + a1 = 4; + a19 = 11; + a13 = 1; + + } else{ + a12 = ((((a12 - 600281) + 253768) / 5) - 184282); + a23 = (((a23 + 36687) * -5) - 190747); + a1 = 2; + a19 = 9; + + } return 24; + } else if((((input == 3) && ((!(a13==1) && ((a19==13) && ((a1==2) && ( 441 < a12 && 476 < a23 )))) || (((( a23 <= 95 && a12 <= 178 ) && (a1==3)) && (a19==9)) && (a13==1)))) && (a26==1))){ + if( ((178 < a12) && (395 >= a12)) ){ + a12 = (((((a12 + 0) * 9)/ 10) % 108)- -287); + a23 = ((((((a23 + 0) + 0) * 9)/ 10) % 300047)+ -299951); + a1 = 3; + a19 = 9; + a13 = 0; + + } else{ + a12 = ((((((a12 - 0) + 0) * 9)/ 10) % 300089)- 299910); + a23 = (((((a23 + 0) / 5) + 416605) % 84)- -134); + a1 = 3; + a19 = 10; + a13 = 0; + + } return 26; + } else if(((a26==1) && ( ((395 < a12) && (441 >= a12)) && (!(a13==1) && (((a1==3) && ((input == 6) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 ))) && (a19==13)))))){ + a12 = (((a12 + 529601) - 746256) + -326032); + a23 = (((a23 + -512027) + -88185) / 5); + a1 = 2; + a19 = 9; + a13 = 1; + + return -1; + } else if((( a12 <= 178 && ((((( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 4)) && (a19==10)) && (a26==1)) && (a13==1))) && (a1==3))){ + a23 = ((((a23 - -146500) * 1) % 300047)+ -299951); + return 24; + } else if((((((a19==11) && ((( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) && (input == 3)) && (a13==1))) && (a1==4)) && a12 <= 178 ) && (a26==1))){ + a12 = ((((((a12 * 9)/ 10) * 1) * 1) % 108)- -287); + a23 = (((a23 - -517220) / -5) + -469549); + a1 = 2; + a19 = 9; + a13 = 0; + + return -1; + } else if((( a12 <= 178 && ((a1==3) && (((input == 5) && (((a19==12) && ((95 < a23) && (264 >= a23)) ) || (((a19==11) && 476 < a23 ) || ( a23 <= 95 && (a19==12))))) && (a26==1)))) && (a13==1))){ + a23 = ((((a23 % 84)- -179) + 478254) + -478252); + a19 = 13; + a13 = 0; + + return 24; + } else if(((a19==11) && ( ((264 < a23) && (476 >= a23)) && ( ((395 < a12) && (441 >= a12)) && (((a26==1) && (!(a13==1) && (input == 3))) && (a1==3)))))){ + a23 = (((a23 + 74239) - -22282) - -271009); + a1 = 2; + a19 = 9; + a13 = 1; + + return 26; + } else if(((((a19==13) && (( 476 < a23 && ((a13==1) && (input == 2))) && a12 <= 178 )) && (a1==3)) && (a26==1))){ + a12 = (((((a12 % 108)+ 286) * 1) + -583560) + 583561); + a1 = 2; + a19 = 10; + a13 = 0; + + return -1; + } else if(( 441 < a12 && (( a23 <= 95 && ((((a13==1) && (input == 4)) && (a26==1)) && (a19==11))) && (a1==3)))){ + a12 = (((a12 / 5) * -4) * 1); + a1 = 2; + a13 = 0; + + return -1; + } else if(((!(a13==1) && ((a26==1) && ((a1==3) && ((( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 5)) && ((178 < a12) && (395 >= a12)) )))) && (a19==13))){ + a12 = ((((a12 - 386603) * 10)/ 9) / 5); + a23 = (((((a23 - -236233) * 1) + 212027) % 84)+ 179); + a13 = 1; + + return -1; + } else if((((a26==1) && ((input == 5) && (((( ((395 < a12) && (441 >= a12)) && 476 < a23 ) && (a19==13)) && !(a13==1)) || ((( a23 <= 95 && 441 < a12 ) && (a19==9)) && (a13==1))))) && (a1==2))){ + a12 = (((a12 / -5) - 99300) / 5); + a23 = ((((((a23 + 0) % 105)- -371) * 5) % 105)- -366); + a1 = 3; + a19 = 10; + a13 = 0; + + return 26; + } else if(( ((395 < a12) && (441 >= a12)) && (((a1==3) && (((( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 6)) && (a26==1)) && !(a13==1))) && (a19==9)))){ + a23 = (((a23 + 0) / 5) - -22496); + return 24; + } else if(((((a1==2) && (!(a13==1) && ((( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) && (input == 4)) && ((178 < a12) && (395 >= a12)) ))) && (a19==9)) && (a26==1))){ + a12 = (((a12 / -5) + 328769) - 513772); + a23 = (((a23 + -228281) - 322230) + -30284); + a13 = 1; + + return -1; + } else if(((a19==11) && ((a1==3) && ( ((395 < a12) && (441 >= a12)) && ((((input == 6) && 476 < a23 ) && (a26==1)) && !(a13==1)))))){ + a12 = (((a12 * 5) / 5) + 300946); + a23 = (((a23 - 600346) + -111) + -12); + a1 = 2; + + return 22; + } else if(((a26==1) && ( a12 <= 178 && (!(a13==1) && (((a19==13) && ((input == 2) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 ))) && (a1==3)))))){ + if( ((95 < a23) && (264 >= a23)) ){ + a12 = (((((a12 % 22)- -417) * 5) % 22)- -417); + a23 = ((((a23 % 105)+ 346) - -106328) + -106404); + a19 = 11; + + } else{ + a23 = ((((a23 % 299761)+ 477) * 1) + 15286); + a13 = 1; + + } return -1; + } else if((((a13==1) && (( 441 < a12 && (((input == 2) && ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) )) && (a26==1))) && (a19==9))) && (a1==2))){ + a12 = (((a12 / 5) + -217965) - 350395); + a23 = (((a23 + -32039) * 5) - 343228); + a1 = 3; + a19 = 10; + a13 = 0; + + return 24; + } else if((!(a13==1) && ((a26==1) && ( ((178 < a12) && (395 >= a12)) && ((a1==2) && ((( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 4)) && (a19==11))))))){ + if( 476 < a23 ){ + a12 = ((((a12 + 23695) % 22)- -401) * 1); + a23 = ((((((a23 % 84)+ 173) - -4) * 5) % 84)- -114); + a1 = 3; + a19 = 12; + + } else{ + a12 = ((((a12 * 5) % 22)- -410) - -7); + a23 = (((a23 - 0) + -600226) * 1); + a1 = 3; + a19 = 9; + a13 = 1; + + } return 22; + } else if(((a26==1) && (( ((95 < a23) && (264 >= a23)) && (( 441 < a12 && ((a1==3) && (input == 5))) && !(a13==1))) && (a19==13)))){ + if((a26==1)){ + a23 = (((a23 + 401348) - -1341) - -45502); + a1 = 2; + a19 = 12; + a13 = 1; + + } else{ + a12 = (((((a12 / 5) % 108)- -272) - 536337) + 536299); + a23 = ((((a23 / 5) * 5) * 51)/ 10); + a1 = 2; + a19 = 11; + a13 = 1; + + } return 22; + } else if(((a1==3) && (((a26==1) && (((a19==10) && (( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 2))) && (a13==1))) && ((395 < a12) && (441 >= a12)) ))){ + a12 = ((((a12 - -496957) - 521899) * 10)/ 9); + a23 = ((((a23 / 5) / 5) % 105)+ 295); + a19 = 9; + a13 = 0; + + return -1; + } else if(( 441 < a12 && ((a26==1) && (( ((264 < a23) && (476 >= a23)) && (((input == 5) && (a1==3)) && (a19==12))) && !(a13==1))))){ + a12 = ((((a12 / 5) * 4) / 5) * -5); + a23 = (((a23 - 501133) - 49822) + -21212); + a19 = 10; + + return 26; + } else if((((a19==11) && ( ((178 < a12) && (395 >= a12)) && (((a26==1) && ((input == 2) && (a1==3))) && ((95 < a23) && (264 >= a23)) ))) && !(a13==1))){ + a23 = (((a23 + 517656) + 44191) + 32213); + a19 = 9; + a13 = 1; + + return 24; + } else if((((a26==1) && ((a1==3) && ( ((395 < a12) && (441 >= a12)) && (!(a13==1) && (( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 4)))))) && (a19==13))){ + a12 = (((((a12 * 5) % 108)- -247) + -324073) + 324031); + a23 = (((a23 - 297434) / 5) - -526121); + a1 = 2; + a19 = 10; + + return -1; + } else if(((a26==1) && ( ((395 < a12) && (441 >= a12)) && (((((((a19==13) && ((264 < a23) && (476 >= a23)) ) && (a13==1)) || (( 476 < a23 && (a19==13)) && (a13==1))) || (( a23 <= 95 && (a19==9)) && !(a13==1))) && (input == 4)) && (a1==3))))){ + a12 = ((((a12 * 5) % 108)- -272) - 68); + a23 = ((((a23 - 0) % 84)- -180) - 1); + a19 = 9; + a13 = 1; + + return 26; + } else if(((((a13==1) && ((( a12 <= 178 && (input == 4)) && a23 <= 95 ) && (a1==4))) && (a26==1)) && (a19==13))){ + a12 = ((((a12 + 0) + 0) % 108)+ 287); + a23 = (((((a23 % 299761)+ 300237) + -164738) - 194756) - -359495); + a1 = 2; + + return 26; + } else if(((a1==3) && ((a26==1) && ( a12 <= 178 && (!(a13==1) && ((input == 5) && (((a19==9) && 476 < a23 ) || ( a23 <= 95 && (a19==10))))))))){ + a23 = (((a23 / 5) + 333578) * 1); + a19 = 12; + a13 = 1; + + return -1; + } else if(((a1==2) && (!(a13==1) && ( 441 < a12 && ((a19==13) && ((( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) && (input == 5)) && (a26==1))))))){ + a12 = ((((a12 % 108)- -248) + 143377) - 143428); + a23 = ((((a23 - -490676) % 105)- -358) + -90); + a1 = 3; + a19 = 10; + a13 = 1; + + return 22; + } else if(((a19==13) && (((a1==3) && (((( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) && (input == 4)) && (a26==1)) && a12 <= 178 )) && (a13==1)))){ + a23 = ((((a23 % 84)+ 99) + -128708) - -128784); + return 24; + } else if((((!(a13==1) && (((input == 4) && (((a19==12) && ((95 < a23) && (264 >= a23)) ) || (( 476 < a23 && (a19==11)) || ( a23 <= 95 && (a19==12))))) && a12 <= 178 )) && (a1==4)) && (a26==1))){ + if((a26==1)){ + a12 = ((((a12 / 5) % 108)- -287) * 1); + a23 = ((((a23 % 105)+ 370) - -1) * 1); + a1 = 2; + a19 = 9; + a13 = 1; + + } else{ + a23 = (((((a23 + 0) * 9)/ 10) % 299761)- -300237); + a1 = 2; + a19 = 10; + + } return 26; + } else if(((( 441 < a12 && (!(a13==1) && ((a19==10) && ((a1==2) && (input == 4))))) && (a26==1)) && ((264 < a23) && (476 >= a23)) )){ + a12 = (((((a12 + 0) % 108)- -219) / 5) - -259); + a23 = (((a23 + -548371) / 5) * 5); + a13 = 1; + + return -1; + } else if((((((a19==11) && ((a26==1) && ((input == 6) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 )))) && ((178 < a12) && (395 >= a12)) ) && (a1==2)) && !(a13==1))){ + a12 = ((((a12 * 10)/ 4) - -18117) - -42223); + a23 = (((((a23 % 105)+ 297) - -5) - 139460) - -139482); + a19 = 9; + a13 = 1; + + return 22; + } else if(((a19==13) && ((a26==1) && ((a1==3) && (( ((178 < a12) && (395 >= a12)) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 4))) && !(a13==1)))))){ + if( ((395 < a12) && (441 >= a12)) ){ + a23 = ((((((a23 - -201802) % 84)- -180) * 5) % 84)- -137); + } else{ + a12 = (((a12 / 5) + -141717) + -137234); + a23 = (((((a23 % 105)- -370) + -1) / 5) + 345); + a19 = 11; + + } return 26; + } else if(((((a1==3) && ((a19==11) && (((input == 6) && a23 <= 95 ) && (a26==1)))) && !(a13==1)) && 441 < a12 )){ + a12 = ((((a12 + 0) + 0) % 108)- -228); + a23 = (((((a23 / 5) - -516681) + -959656) % 84)+ 211); + a19 = 10; + a13 = 1; + + return 22; + } else if((((((a19==12) && (((input == 4) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )) && (a1==3))) && ((178 < a12) && (395 >= a12)) ) && (a26==1)) && (a13==1))){ + a23 = ((((a23 % 300047)- 299951) + -1) - 2); + a19 = 10; + + return 26; + } else if((((((a13==1) && ((( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 6)) && (a19==13))) && ((178 < a12) && (395 >= a12)) ) && (a26==1)) && (a1==3))){ + a12 = ((((a12 - 118017) - 147804) % 22)- -435); + a23 = (((((a23 - 0) % 300047)- 299951) - -137268) + -137268); + a19 = 11; + + return 22; + } else if(((a13==1) && (((a1==4) && (( ((95 < a23) && (264 >= a23)) && ((a19==13) && (input == 5))) && a12 <= 178 )) && (a26==1)))){ + a23 = (((((a23 * 10)/ 2) - 1807) * 5) + 392475); + a1 = 2; + + return -1; + } else if(( 441 < a12 && ((a1==3) && ((a26==1) && ((a13==1) && ((a19==10) && ((input == 2) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 )))))))){ + a12 = (((((a12 * 9)/ 10) + 41047) - -9007) - 600467); + a23 = (((((a23 % 84)+ 125) + -23) - 227299) + 227377); + a1 = 2; + a19 = 12; + + return -1; + } else if(((a26==1) && ((a1==2) && ( ((395 < a12) && (441 >= a12)) && ( ((95 < a23) && (264 >= a23)) && ((!(a13==1) && (input == 6)) && (a19==13))))))){ + a12 = (((((a12 * 10)/ 12) / 5) + -239987) - -240237); + a23 = (((a23 - 326277) * 1) - 123501); + a1 = 3; + a19 = 9; + a13 = 1; + + return 26; + } else if(((a13==1) && (((a26==1) && (((((a19==11) && a23 <= 95 ) || (( ((264 < a23) && (476 >= a23)) && (a19==10)) || ((a19==10) && 476 < a23 ))) && (input == 3)) && (a1==3))) && ((178 < a12) && (395 >= a12)) ))){ + a23 = ((((a23 / 5) + -418801) * -1)/ 10); + a1 = 2; + a19 = 10; + a13 = 0; + + return -1; + } else if(((a19==12) && ( ((264 < a23) && (476 >= a23)) && ((a26==1) && (((!(a13==1) && (input == 3)) && (a1==3)) && 441 < a12 ))))){ + if((a19==11)){ + a12 = (((((a12 - 327744) % 108)- -286) + -134392) - -134392); + a23 = ((((a23 * 10)/ 5) - -197348) - -207694); + a1 = 2; + a19 = 10; + a13 = 1; + + } else{ + a12 = (((((a12 - 0) / 5) / 5) % 108)+ 277); + a23 = ((((a23 / 5) + 7025) - 544200) + 592058); + a1 = 2; + a19 = 10; + a13 = 1; + + } return -1; + } else if(((a26==1) && (!(a13==1) && ((((( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 6)) && ((178 < a12) && (395 >= a12)) ) && (a1==3)) && (a19==11))))){ + a12 = ((((a12 - 492634) - -1024503) / 5) * -5); + a23 = (((((a23 % 299761)+ 477) / 5) * 51)/ 10); + a19 = 9; + + return 22; + } else if(( a12 <= 178 && ((a26==1) && ((a19==9) && ((((input == 6) && a23 <= 95 ) && (a13==1)) && (a1==4)))))){ + a12 = ((((a12 % 22)- -419) - -1) - 2); + a23 = ((((a23 - -129758) + 66434) % 105)+ 371); + a1 = 2; + a19 = 12; + + return 26; + } else if(( ((395 < a12) && (441 >= a12)) && (((((!(a13==1) && ( a23 <= 95 && (a19==9))) || (((a13==1) && ((a19==13) && ((264 < a23) && (476 >= a23)) )) || (((a19==13) && 476 < a23 ) && (a13==1)))) && (input == 6)) && (a1==3)) && (a26==1)))){ + a12 = (((a12 + -394325) - 10353) + -127916); + a23 = ((((a23 % 105)+ 370) + 185937) - 185935); + a19 = 13; + a13 = 0; + + return 24; + } else if((!(a13==1) && ( ((395 < a12) && (441 >= a12)) && ((a26==1) && (((a1==3) && ((input == 5) && ((95 < a23) && (264 >= a23)) )) && (a19==9)))))){ + a12 = (((a12 / -5) - -144398) + -461893); + a23 = (((a23 - -106815) - -67907) - -357763); + a19 = 11; + + return 26; + } else if(((((!(a13==1) && ((( ((95 < a23) && (264 >= a23)) && (a19==13)) || (((a19==12) && 476 < a23 ) || ((a19==13) && a23 <= 95 ))) && (input == 5))) && (a1==2)) && (a26==1)) && ((178 < a12) && (395 >= a12)) )){ + a12 = (((a12 + 215022) * -2) * 1); + a23 = ((((a23 - 0) % 300047)+ -299951) + -2); + a19 = 9; + a13 = 1; + + return -1; + } else if(((((((a1==3) && ( 441 < a12 && (input == 6))) && (a26==1)) && (a19==13)) && !(a13==1)) && ((95 < a23) && (264 >= a23)) )){ + a12 = (((((a12 * 9)/ 10) / 5) % 22)+ 404); + a23 = (((a23 - 20208) * 5) * 5); + a1 = 2; + a19 = 10; + + return 24; + } else if((((a26==1) && ( 441 < a12 && ((a19==11) && (((input == 6) && (( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) || 476 < a23 )) && !(a13==1))))) && (a1==3))){ + if((a26==1)){ + a12 = ((((a12 % 22)+ 407) + -37230) - -37232); + a23 = ((((a23 % 105)+ 344) - 58) * 1); + a19 = 13; + a13 = 1; + + } else{ + a12 = ((((a12 - 599897) - 473) - -92871) - 92370); + a23 = (((a23 / -5) / 5) * 5); + a1 = 2; + a19 = 12; + a13 = 1; + + } return 24; + } else if(((((a19==9) && ((a13==1) && ((a1==4) && ((input == 3) && (a26==1))))) && a23 <= 95 ) && a12 <= 178 )){ + + a19 = 11; + + return 22; + } else if(((a26==1) && ( 476 < a23 && ((((a13==1) && ((input == 4) && a12 <= 178 )) && (a19==13)) && (a1==3))))){ + a23 = (((((a23 / 5) % 84)+ 125) - 23345) - -23322); + a1 = 2; + a19 = 10; + a13 = 0; + + return -1; + } else if(((!(a13==1) && ( ((395 < a12) && (441 >= a12)) && ((((( 476 < a23 && (a19==10)) || ((a19==11) && a23 <= 95 )) || ((a19==11) && ((95 < a23) && (264 >= a23)) )) && (input == 2)) && (a1==2)))) && (a26==1))){ + a12 = (((((a12 * 5)/ 10) * 10)/ 9) + 68); + a23 = (((((a23 * 9)/ 10) % 300047)+ -299951) - 2); + a1 = 3; + a19 = 9; + a13 = 1; + + return 26; + } else if(((a26==1) && ((a19==11) && ( 441 < a12 && ((a1==3) && (((input == 2) && ( 476 < a23 || ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ))) && !(a13==1))))))){ + if((a19==9)){ + a12 = (((a12 - 0) + 0) + -600276); + a23 = ((((((a23 * 9)/ 10) % 105)+ 269) - 478123) - -478145); + a1 = 2; + a19 = 12; + + } else{ + a12 = (((a12 + -172708) / 5) + -151556); + a23 = (((((a23 + -188548) * 1) - -73849) % 84)+ 180); + a1 = 2; + + } return 24; + } else if((( ((395 < a12) && (441 >= a12)) && ((!(a13==1) && ((((a19==13) && ((95 < a23) && (264 >= a23)) ) || (((a19==12) && 476 < a23 ) || ((a19==13) && a23 <= 95 ))) && (input == 4))) && (a1==3))) && (a26==1))){ + a12 = (((a12 - 453018) * 1) / 5); + a23 = ((((a23 - 0) % 299761)+ 300237) - 0); + a19 = 11; + a13 = 1; + + return 24; + } else if(((a1==3) && (((a26==1) && ( 441 < a12 && (!(a13==1) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 6))))) && (a19==12)))){ + a12 = (((((a12 / 5) % 22)- -399) / 5) - -330); + a23 = ((((((a23 % 105)+ 370) - 1) * 5) % 105)+ 319); + a19 = 9; + + return -1; + } else if((((a1==3) && ( a12 <= 178 && (((input == 2) && ((((a19==10) && 476 < a23 ) || ( a23 <= 95 && (a19==11))) || ((a19==11) && ((95 < a23) && (264 >= a23)) ))) && !(a13==1)))) && (a26==1))){ + a12 = ((((a12 + 0) % 22)+ 419) + -1); + a23 = ((((a23 % 105)- -369) * 5) / 5); + a19 = 11; + + return -1; + } else if(((a26==1) && ((input == 2) && ((!(a13==1) && ((( 476 < a23 && 441 < a12 ) && (a1==2)) && (a19==13))) || (((a19==9) && ((a1==3) && ( a23 <= 95 && a12 <= 178 ))) && (a13==1)))))){ + a12 = ((((a12 % 108)+ 286) + -393572) - -393573); + a23 = (((((a23 / 5) - -141998) - -253358) % 105)- -337); + a1 = 2; + a19 = 13; + a13 = 0; + + return 22; + } else if((((((((input == 4) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )) && (a1==2)) && ((395 < a12) && (441 >= a12)) ) && (a26==1)) && (a19==12)) && (a13==1))){ + a12 = (((a12 * 5) + -438195) + 7501); + a23 = ((((a23 % 105)- -369) * 1) + 0); + a19 = 9; + a13 = 0; + + return -1; + } else if((((a19==13) && ((a13==1) && ((a1==3) && ((a26==1) && ( ((264 < a23) && (476 >= a23)) && (input == 5)))))) && ((178 < a12) && (395 >= a12)) )){ + a12 = (((a12 + -542327) * 1) - 6557); + a23 = ((((a23 * 5) - 5386) - -268846) * -2); + a1 = 2; + a19 = 9; + + return -1; + } else if(( ((395 < a12) && (441 >= a12)) && ((((a1==3) && ((( ((264 < a23) && (476 >= a23)) || ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )) && (input == 4)) && (a19==12))) && (a26==1)) && !(a13==1)))){ + a12 = ((((a12 * 5) * 5) / 5) * -5); + a23 = (((a23 / 5) * 4) + -84156); + a1 = 2; + a19 = 9; + a13 = 1; + + return -1; + } else if(((a26==1) && ( ((395 < a12) && (441 >= a12)) && ((((( a23 <= 95 && (a19==10)) || (( ((264 < a23) && (476 >= a23)) && (a19==9)) || ( 476 < a23 && (a19==9)))) && (input == 3)) && (a13==1)) && (a1==2))))){ + a12 = (((a12 / 5) * -5) - 408530); + a23 = (((a23 / 5) + 85251) + -260390); + a1 = 3; + a19 = 9; + a13 = 0; + + return 26; + } else if((( a12 <= 178 && ((((input == 5) && (((a19==10) && a23 <= 95 ) || (( ((264 < a23) && (476 >= a23)) && (a19==9)) || ( 476 < a23 && (a19==9))))) && (a13==1)) && (a26==1))) && (a1==4))){ + a12 = ((((a12 % 22)+ 418) + -1) * 1); + a23 = ((((a23 / 5) / 5) % 105)+ 370); + a1 = 2; + a19 = 10; + + return -1; + } else if(((a26==1) && ((a19==13) && ((((a1==3) && ((input == 6) && (( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) || 476 < a23 ))) && (a13==1)) && 441 < a12 )))){ + a12 = (((((a12 % 108)- -207) * 5) % 108)+ 221); + a23 = ((((((a23 % 84)+ 108) * 10)/ 9) - -255042) - 255039); + a1 = 2; + a19 = 12; + a13 = 0; + + return 26; + } else if(((((a26==1) && ((a13==1) && (((a19==13) && (input == 5)) && a23 <= 95 ))) && a12 <= 178 ) && (a1==4))){ + a23 = ((((((a23 % 84)- -179) * 1) * 5) % 84)+ 138); + a1 = 2; + a13 = 0; + + return -1; + } else if(((((a26==1) && (((( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 2)) && (a19==13)) && !(a13==1))) && (a1==3)) && 441 < a12 )){ + a12 = (((((a12 * 9)/ 10) - -36573) % 22)+ 408); + a23 = ((((a23 % 84)- -137) - 264705) - -264718); + a1 = 2; + a13 = 1; + + return -1; + } else if(( 441 < a12 && (((a26==1) && ((((( ((264 < a23) && (476 >= a23)) && (a19==9)) || ( 476 < a23 && (a19==9))) || ( a23 <= 95 && (a19==10))) && (input == 3)) && !(a13==1))) && (a1==3)))){ + a12 = (((((a12 % 108)- -218) * 9)/ 10) + 52); + a23 = (((((a23 + 0) / 5) * 4) % 299761)+ 300237); + a1 = 2; + a19 = 11; + a13 = 1; + + return 26; + } else if(((((((( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 6)) && (a19==13)) && (a26==1)) && ((178 < a12) && (395 >= a12)) ) && (a1==2)) && !(a13==1))){ + a12 = ((((((a12 * 10)/ 4) - -149219) - 411805) * -1)/ 10); + a23 = ((((((a23 % 84)- -147) * 10)/ 9) + 226547) - 226593); + a19 = 12; + + return 24; + } else if(((a1==3) && ((a13==1) && (( ((395 < a12) && (441 >= a12)) && ((input == 2) && ((( ((264 < a23) && (476 >= a23)) && (a19==9)) || ( 476 < a23 && (a19==9))) || ((a19==10) && a23 <= 95 )))) && (a26==1))))){ + a12 = ((((a12 * -5) * 5) + 344546) * -1); + a23 = ((((a23 - 0) + 0) % 300047)- 299951); + a1 = 2; + a19 = 9; + + return -1; + } else if(((a1==3) && ((!(a13==1) && ( a12 <= 178 && (((((a19==10) && 476 < a23 ) || ( a23 <= 95 && (a19==11))) || ( ((95 < a23) && (264 >= a23)) && (a19==11))) && (input == 6)))) && (a26==1)))){ + a23 = ((((a23 % 300047)- 299951) + -2) + 0); + a1 = 2; + a19 = 9; + a13 = 1; + + return -1; + } else if(( ((395 < a12) && (441 >= a12)) && ((a26==1) && (((((((a19==13) && 476 < a23 ) && (a13==1)) || (!(a13==1) && ( a23 <= 95 && (a19==9)))) || (!(a13==1) && ((a19==9) && ((95 < a23) && (264 >= a23)) ))) && (input == 3)) && (a1==2))))){ + a12 = (((a12 * -5) * 5) - 59236); + a23 = ((((a23 % 300047)+ -299951) + -3) + 0); + a19 = 9; + a13 = 1; + + return -1; + } else if((((((a1==4) && ((input == 6) && (((a19==11) && 476 < a23 ) || ( a23 <= 95 && (a19==12))))) && a12 <= 178 ) && (a13==1)) && (a26==1))){ + a23 = (((a23 - 0) / 5) - -307806); + a19 = 10; + a13 = 0; + + return -1; + } else if(((!(a13==1) && ((a19==11) && ( 441 < a12 && ((a1==3) && ((a26==1) && (input == 4)))))) && a23 <= 95 )){ + a12 = (((a12 + -600082) + -185) / 5); + a1 = 2; + a19 = 9; + a13 = 1; + + return 26; + } else if((((a26==1) && ((a19==10) && ((!(a13==1) && (( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) && (input == 6))) && a12 <= 178 ))) && (a1==4))){ + a23 = ((((a23 + 169789) % 84)- -166) + 14); + a19 = 11; + + return -1; + } else if((((a1==3) && ((a26==1) && ( 441 < a12 && ((input == 3) && (( ((95 < a23) && (264 >= a23)) && (a19==10)) || (((a19==9) && 476 < a23 ) || ( a23 <= 95 && (a19==10)))))))) && (a13==1))){ + a12 = ((((a12 % 22)- -406) * 1) + -2); + a23 = ((((a23 % 84)- -180) * 1) + 1); + a1 = 2; + a19 = 12; + + return -1; + } else if(( 441 < a12 && (((a26==1) && ((a19==12) && (((input == 3) && (( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) || 476 < a23 )) && !(a13==1)))) && (a1==2)))){ + if((a13==1)){ + a12 = ((((a12 / 5) + -67330) % 22)+ 419); + a23 = ((((a23 / 5) / 5) / 5) - -458597); + a1 = 3; + a19 = 9; + + } else{ + a12 = (((a12 / -5) + -214619) + -192579); + a23 = (((((a23 % 84)- -127) * 5) % 84)+ 153); + a1 = 3; + a13 = 1; + + } return 22; + } else if((( 441 < a12 && ((a26==1) && ((((input == 5) && (a13==1)) && a23 <= 95 ) && (a19==13)))) && (a1==2))){ + a12 = ((((a12 + 0) - 103530) % 22)- -417); + a23 = ((((a23 / 5) / 5) % 105)+ 371); + a1 = 3; + a19 = 11; + a13 = 0; + + return 22; + } else if(((a26==1) && ( ((95 < a23) && (264 >= a23)) && ((a19==13) && (((a1==2) && (!(a13==1) && (input == 3))) && ((395 < a12) && (441 >= a12)) ))))){ + a12 = ((((a12 - 170721) + 333815) - -84988) - 248187); + a19 = 10; + + return 26; + } else if((((((!(a13==1) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 6))) && (a1==2)) && 441 < a12 ) && (a19==9)) && (a26==1))){ + a12 = (((a12 - 0) - 0) - 600151); + a23 = (((((a23 * 9)/ 10) % 84)+ 180) + -1); + a1 = 3; + a19 = 13; + a13 = 1; + + return 24; + } else if((((((((input == 4) && (( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) || 476 < a23 )) && (a13==1)) && (a19==10)) && (a26==1)) && ((395 < a12) && (441 >= a12)) ) && (a1==2))){ + a12 = (((a12 - 413939) * 1) + -171333); + a23 = (((a23 / 5) + 462414) * 1); + a1 = 3; + a19 = 9; + a13 = 0; + + return 24; + } else if((((!(a13==1) && (((( a23 <= 95 && (a19==10)) || (((a19==9) && ((264 < a23) && (476 >= a23)) ) || ( 476 < a23 && (a19==9)))) && (input == 3)) && a12 <= 178 )) && (a26==1)) && (a1==4))){ + a12 = ((((((a12 * 9)/ 10) % 108)+ 286) + 237951) + -237950); + a23 = ((((((a23 * 9)/ 10) - 22348) * 1) % 84)+ 180); + a1 = 2; + a19 = 12; + a13 = 1; + + return -1; + } else if((((input == 5) && ((((a19==13) && (( 476 < a23 && 441 < a12 ) && (a1==2))) && !(a13==1)) || (((a19==9) && ((a1==3) && ( a12 <= 178 && a23 <= 95 ))) && (a13==1)))) && (a26==1))){ + a12 = (((((a12 - 0) / 5) * 4) % 300089)+ -299910); + a23 = ((((a23 % 300047)- 299951) - -477921) + -477923); + a1 = 3; + a19 = 13; + a13 = 0; + + return 22; + } else if((((a19==9) && (!(a13==1) && (((a26==1) && ((input == 5) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 ))) && (a1==3)))) && ((178 < a12) && (395 >= a12)) )){ + a12 = (((a12 + -131421) - 188206) + -200757); + a23 = (((a23 - 600007) * 1) + -43); + a1 = 2; + a13 = 1; + + return -1; + } else if(((( a12 <= 178 && ((((input == 2) && ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) )) && (a26==1)) && (a19==11))) && (a13==1)) && (a1==4))){ + a23 = (((((a23 * 5) + -199871) - 113004) % 105)- -459); + a1 = 2; + a13 = 0; + + return 24; + } else if(( 441 < a12 && (((!(a13==1) && ((a1==3) && ((input == 3) && (a19==11)))) && a23 <= 95 ) && (a26==1)))){ + a23 = ((((a23 / 5) + 135938) * 10)/ 9); + a13 = 1; + + return -1; + } else if((((a1==3) && ( ((395 < a12) && (441 >= a12)) && ((a19==11) && ( ((264 < a23) && (476 >= a23)) && ((input == 4) && (a13==1)))))) && (a26==1))){ + a12 = (((a12 + -457) + -346097) / 5); + a23 = ((((a23 * 18)/ 10) + 270434) + 104640); + a19 = 13; + a13 = 0; + + return -1; + } else if(((a26==1) && ((a1==2) && (!(a13==1) && (((a19==11) && ( ((178 < a12) && (395 >= a12)) && (input == 3))) && a23 <= 95 ))))){ + a12 = ((((a12 % 22)+ 397) - 1) - 0); + a23 = ((((a23 % 299761)+ 300237) * 1) - 0); + a1 = 3; + a19 = 12; + a13 = 1; + + return 22; + } else if(((a26==1) && (( ((395 < a12) && (441 >= a12)) && (((a1==3) && ( ((264 < a23) && (476 >= a23)) && (input == 6))) && (a19==11))) && !(a13==1)))){ + a12 = (((a12 - 181) + 8383) + -8371); + a23 = (((a23 / 5) / 5) - -198); + a1 = 2; + a19 = 9; + a13 = 1; + + return -1; + } else if(((a13==1) && ((((a1==4) && ((((a19==10) && a23 <= 95 ) || (((a19==9) && ((264 < a23) && (476 >= a23)) ) || ( 476 < a23 && (a19==9)))) && (input == 6))) && a12 <= 178 ) && (a26==1)))){ + if((a13==1)){ + a12 = ((((((a12 % 22)- -419) * 5) - 440933) % 22)- -434); + a23 = ((((a23 % 300047)+ -299951) * 1) * 1); + a1 = 2; + a19 = 12; + a13 = 0; + + } else{ + a23 = (((((a23 % 105)+ 369) + 3) + -517796) + 517795); + a1 = 3; + a19 = 10; + + } return 26; + } else if((((a1==3) && (((a19==12) && ((a26==1) && ((input == 2) && ( ((264 < a23) && (476 >= a23)) || ( a23 <= 95 || ((95 < a23) && (264 >= a23)) ))))) && !(a13==1))) && ((395 < a12) && (441 >= a12)) )){ + a12 = (((a12 - 268033) + 579022) + -584160); + a23 = (((((a23 + 0) % 105)+ 371) / 5) - -274); + a19 = 11; + + return 26; + } else if(((!(a13==1) && ((((( a23 <= 95 && (a19==10)) || (((a19==9) && ((264 < a23) && (476 >= a23)) ) || ( 476 < a23 && (a19==9)))) && (input == 2)) && (a26==1)) && a12 <= 178 )) && (a1==4))){ + a12 = ((((a12 % 22)- -417) - 0) - -1); + a23 = (((((a23 % 300047)- 299951) + -3) * 9)/ 10); + a1 = 2; + a19 = 12; + + return -1; + } else if((!(a13==1) && ( ((264 < a23) && (476 >= a23)) && (((a26==1) && (((a19==10) && (input == 5)) && (a1==2))) && 441 < a12 )))){ + a12 = ((((a12 % 108)+ 229) + -500707) - -500657); + a23 = ((((a23 * -5) * 10)/ 9) * 5); + a1 = 3; + a13 = 1; + + return 26; + } else if(((a1==3) && ((a13==1) && ((( ((395 < a12) && (441 >= a12)) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 2))) && (a19==13)) && (a26==1))))){ + a12 = (((a12 * 5) + 391857) / -5); + a23 = ((((a23 % 300047)+ -299951) - 3) + 0); + a1 = 2; + a19 = 11; + + return -1; + } else if((((a1==2) && (((a26==1) && (((( 476 < a23 && (a19==9)) || ( a23 <= 95 && (a19==10))) || ((a19==10) && ((95 < a23) && (264 >= a23)) )) && (input == 6))) && !(a13==1))) && 441 < a12 )){ + a12 = (((((a12 + -322078) % 108)- -287) / 5) + 229); + a23 = ((((((a23 + 0) % 105)- -370) * 5) % 105)+ 353); + a19 = 12; + + return 26; + } else if(((a1==3) && ((((((((a19==10) && 476 < a23 ) || ((a19==11) && a23 <= 95 )) || ((a19==11) && ((95 < a23) && (264 >= a23)) )) && (input == 5)) && (a26==1)) && !(a13==1)) && ((395 < a12) && (441 >= a12)) ))){ + a12 = (((a12 / -5) - -467346) * -1); + a23 = ((((a23 - 0) + 0) % 300047)- 299951); + a1 = 2; + a19 = 9; + a13 = 1; + + return -1; + } else if((((a1==3) && ((((a19==10) && ((( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) || 476 < a23 ) && (input == 3))) && (a26==1)) && 441 < a12 )) && !(a13==1))){ + a12 = (((((a12 + 0) / 5) + -365950) % 108)- -334); + a23 = (((((a23 % 105)+ 288) - 22) * 10)/ 9); + a19 = 11; + + return -1; + } else if((!(a13==1) && ((a26==1) && (( ((178 < a12) && (395 >= a12)) && ((input == 2) && (((a19==10) && 476 < a23 ) || ((a19==11) && a23 <= 95 )))) && (a1==3))))){ + a12 = ((((a12 / 5) * 127)/ 10) - -488019); + a23 = ((((a23 % 299761)+ 300237) / 5) - -121188); + a1 = 2; + a19 = 12; + a13 = 1; + + return 22; + } else if(( a12 <= 178 && ((a1==3) && ((a13==1) && (((( a23 <= 95 && (a19==13)) || (((a19==12) && ((264 < a23) && (476 >= a23)) ) || ( 476 < a23 && (a19==12)))) && (input == 6)) && (a26==1)))))){ + a12 = (((((a12 * 9)/ 10) % 108)- -286) - -1); + a23 = ((((a23 % 105)+ 370) + 37719) + -37718); + a1 = 2; + a19 = 10; + a13 = 0; + + return -1; + } else if(((a19==9) && ((a26==1) && (((((a1==4) && (input == 4)) && a23 <= 95 ) && a12 <= 178 ) && (a13==1))))){ + if((a26==1)){ + a23 = ((((a23 + 0) - -571602) % 105)+ 371); + a1 = 2; + a19 = 11; + + } else{ + a23 = (((((a23 % 84)+ 180) + 1) / 5) + 167); + a1 = 2; + a19 = 10; + + } return -1; + } else if(((!(a13==1) && (((a19==11) && (( a23 <= 95 && (input == 6)) && ((178 < a12) && (395 >= a12)) )) && (a26==1))) && (a1==2))){ + a12 = ((((a12 * 5) * 5) % 22)+ 416); + a23 = ((((a23 % 299761)- -300237) + -352724) + 352727); + a19 = 12; + a13 = 1; + + return 22; + } else if(((a1==2) && ((!(a13==1) && ((a19==13) && ((a26==1) && (( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 3))))) && ((178 < a12) && (395 >= a12)) ))){ + a12 = (((a12 / 5) * 5) + -66483); + a23 = ((((a23 * 9)/ 10) + 31692) - 576583); + a1 = 3; + a19 = 9; + a13 = 1; + + return 24; + } else if(( 476 < a23 && ((a1==3) && (((((input == 2) && ((395 < a12) && (441 >= a12)) ) && (a13==1)) && (a19==12)) && (a26==1))))){ + a12 = ((((a12 + -519786) * 10)/ 9) - -533890); + a1 = 2; + a19 = 11; + a13 = 0; + + return -1; + } else if((((a19==9) && (((((input == 4) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 )) && (a26==1)) && (a1==3)) && ((178 < a12) && (395 >= a12)) )) && !(a13==1))){ + a12 = (((a12 - 341079) - 107051) * 1); + a23 = (((a23 / 5) / 5) / -5); + a1 = 2; + a13 = 1; + + return -1; + } else if((!(a13==1) && ( ((395 < a12) && (441 >= a12)) && ((((input == 6) && (((a19==13) && a23 <= 95 ) || (((a19==12) && ((264 < a23) && (476 >= a23)) ) || ((a19==12) && 476 < a23 )))) && (a1==2)) && (a26==1))))){ + a12 = ((((a12 - 381609) - -919746) + -221080) + -406013); + a23 = ((((((a23 % 84)+ 179) * 5) - -456585) % 84)+ 178); + a1 = 3; + a19 = 13; + + return 24; + } else if(( ((395 < a12) && (441 >= a12)) && (((((a26==1) && ((input == 4) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 ))) && (a1==3)) && (a13==1)) && (a19==10)))){ + a23 = ((((a23 % 299761)+ 477) - -31566) / 5); + a19 = 9; + a13 = 0; + + return -1; + } else if(((((a13==1) && (((input == 4) && (((a19==12) && ((95 < a23) && (264 >= a23)) ) || (((a19==11) && 476 < a23 ) || ((a19==12) && a23 <= 95 )))) && (a1==3))) && (a26==1)) && a12 <= 178 )){ + a23 = (((a23 / 5) + -317087) + -92994); + a19 = 13; + + return 26; + } else if(((a19==11) && ((a26==1) && ((!(a13==1) && (((input == 3) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 )) && ((395 < a12) && (441 >= a12)) )) && (a1==2))))){ + a12 = (((a12 - 236019) / 5) + -201334); + a23 = ((((((a23 % 84)- -96) * 5) * 5) % 84)- -129); + a1 = 3; + a19 = 13; + + return 26; + } else if(((a1==4) && (((a26==1) && ( a12 <= 178 && ((( 476 < a23 && (a19==11)) || ((a19==12) && a23 <= 95 )) && (input == 5)))) && (a13==1)))){ + a23 = ((((a23 % 105)+ 370) + -1) + 0); + a1 = 2; + a19 = 12; + + return 22; + } else if(( 441 < a12 && ((a19==13) && (!(a13==1) && ((((input == 4) && (a1==3)) && ((95 < a23) && (264 >= a23)) ) && (a26==1)))))){ + if((a26==1)){ + + a19 = 9; + + } else{ + a12 = (((((a12 + 0) * 9)/ 10) * 1) * -1); + a23 = ((((a23 + 595815) + -595619) - 461132) + 461143); + a19 = 10; + + } return 26; + } else if(((a1==2) && ((a26==1) && ((!(a13==1) && ((( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) && (input == 5)) && (a19==9))) && ((178 < a12) && (395 >= a12)) )))){ + a12 = (((a12 / -5) - 156259) / 5); + a23 = ((((a23 - 539579) * 1) * 10)/ 9); + a13 = 1; + + return -1; + } else if(( ((395 < a12) && (441 >= a12)) && ((a26==1) && ((a1==3) && (((( a23 <= 95 && (a19==10)) || (( ((264 < a23) && (476 >= a23)) && (a19==9)) || ( 476 < a23 && (a19==9)))) && (input == 5)) && (a13==1)))))){ + a12 = (((((a12 - 142930) * 10)/ 9) - -162236) + -263623); + a23 = ((((a23 - 0) % 300047)+ -299951) * 1); + a1 = 2; + a19 = 9; + + return -1; + } else if(((((((a26==1) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 6))) && (a13==1)) && (a19==12)) && (a1==2)) && ((395 < a12) && (441 >= a12)) )){ + a23 = (((((((a23 * 9)/ 10) % 105)+ 371) * 5) % 105)+ 309); + a1 = 3; + a19 = 11; + a13 = 0; + + return 22; + } else if(((( a12 <= 178 && ((a1==3) && ((a19==11) && ((input == 6) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 ))))) && !(a13==1)) && (a26==1))){ + if( ((95 < a23) && (264 >= a23)) ){ + a12 = (((((a12 * 9)/ 10) % 22)- -417) + 0); + a23 = ((((a23 % 105)+ 343) - 260423) - -260389); + } else{ + a23 = ((((a23 + 0) * 9)/ 10) - -51552); + a19 = 13; + a13 = 1; + + } return -1; + } else if(( 441 < a12 && (((((input == 2) && (((a19==10) && a23 <= 95 ) || (((a19==9) && ((264 < a23) && (476 >= a23)) ) || ( 476 < a23 && (a19==9))))) && !(a13==1)) && (a26==1)) && (a1==3)))){ + a23 = ((((((a23 * 9)/ 10) % 105)- -370) / 5) + 291); + a1 = 2; + a19 = 9; + + return 22; + } else if(( ((395 < a12) && (441 >= a12)) && ((a26==1) && ((((a13==1) && ((input == 5) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 ))) && (a19==11)) && (a1==2))))){ + a12 = (((a12 / -5) + -234502) - 121003); + a23 = ((((a23 + -600162) * 1) - -546446) + -546285); + a19 = 9; + + return -1; + } else if(((a13==1) && (((a26==1) && (( ((395 < a12) && (441 >= a12)) && ((input == 6) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 ))) && (a1==2))) && (a19==12)))){ + a12 = (((a12 * -5) * 5) + -579001); + a23 = (((((a23 % 84)- -150) + -22) * 9)/ 10); + a1 = 3; + a19 = 13; + a13 = 0; + + return 26; + } else if(( ((395 < a12) && (441 >= a12)) && ((((input == 5) && (((((a19==13) && ((264 < a23) && (476 >= a23)) ) && (a13==1)) || (( 476 < a23 && (a19==13)) && (a13==1))) || (((a19==9) && a23 <= 95 ) && !(a13==1)))) && (a1==3)) && (a26==1)))){ + a12 = (((a12 - 245798) * 2) - 11469); + a23 = ((((((a23 * 9)/ 10) % 105)- -369) + -20463) - -20464); + a19 = 12; + a13 = 0; + + return 24; + } else if(((((((( a23 <= 95 && (a19==13)) || (( ((264 < a23) && (476 >= a23)) && (a19==12)) || ((a19==12) && 476 < a23 ))) && (input == 5)) && !(a13==1)) && a12 <= 178 ) && (a1==3)) && (a26==1))){ + a23 = ((((a23 % 300047)+ -299951) + -1) + -2); + a19 = 13; + a13 = 1; + + return -1; + } else if(((a19==13) && (((a26==1) && (!(a13==1) && ( ((95 < a23) && (264 >= a23)) && ((a1==3) && (input == 4))))) && a12 <= 178 ))){ + a12 = (((((a12 % 108)- -287) / 5) * 10)/ 2); + a23 = (((a23 / 5) + 396322) * 1); + a1 = 2; + a19 = 10; + + return 22; + } else if((!(a13==1) && (((a19==11) && (((a1==2) && ((input == 2) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 ))) && (a26==1))) && ((395 < a12) && (441 >= a12)) ))){ + a12 = (((a12 - 24814) - -293022) - 268344); + a23 = ((((a23 + -131805) - 468216) - -415337) - 415389); + a1 = 3; + a19 = 10; + a13 = 1; + + return 26; + } else if(((a1==4) && ( a12 <= 178 && ((a26==1) && (((((a19==10) && a23 <= 95 ) || (((a19==9) && ((264 < a23) && (476 >= a23)) ) || ((a19==9) && 476 < a23 ))) && (input == 5)) && !(a13==1)))))){ + if( a12 <= 178 ){ + a12 = ((((a12 + 0) / 5) % 108)+ 287); + a23 = (((a23 + 0) / 5) + -176996); + a1 = 2; + a19 = 12; + + } else{ + a12 = (((((a12 / 5) + 212723) + 232676) % 108)- -224); + a23 = ((((a23 % 105)- -369) / 5) + 326); + a1 = 2; + a19 = 11; + a13 = 1; + + } return 24; + } else if(((( ((95 < a23) && (264 >= a23)) && ((((a19==10) && (input == 3)) && ((395 < a12) && (441 >= a12)) ) && (a26==1))) && (a13==1)) && (a1==3))){ + a12 = ((((a12 / -5) + -149483) - -469193) + -582596); + a23 = (((((a23 + 186) * 5) - -168364) % 105)- -366); + a19 = 12; + + return 24; + } else if(( 441 < a12 && ((((a26==1) && (((( ((264 < a23) && (476 >= a23)) && (a19==10)) || ((a19==10) && 476 < a23 )) || ((a19==11) && a23 <= 95 )) && (input == 6))) && (a13==1)) && (a1==2)))){ + a12 = (((a12 + -600152) + -58) + -30); + a23 = ((((a23 - 0) - 0) % 105)+ 369); + a1 = 3; + a19 = 12; + + return 22; + } else if((((a1==2) && (((((input == 6) && (a26==1)) && 441 < a12 ) && a23 <= 95 ) && (a19==13))) && !(a13==1))){ + a12 = (((((a12 % 108)+ 243) + -229696) - 325760) - -555415); + a23 = (((a23 / 5) - -450401) - -101902); + a1 = 3; + a19 = 10; + a13 = 1; + + return 26; + } else if(((a26==1) && ( ((178 < a12) && (395 >= a12)) && ((a13==1) && ((a19==12) && ((( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 3)) && (a1==3))))))){ + a12 = (((a12 - 334239) * 1) * 1); + a23 = (((((a23 % 105)+ 295) / 5) + -518752) - -519053); + a19 = 10; + a13 = 0; + + return -1; + } else if((( ((178 < a12) && (395 >= a12)) && (((!(a13==1) && (( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 5))) && (a19==12)) && (a26==1))) && (a1==3))){ + a12 = ((((a12 / 5) - 128742) * 10)/ 9); + a23 = ((((a23 * 9)/ 10) - -47391) * 1); + return 22; + } else if(((((a26==1) && (( a23 <= 95 && ((input == 2) && a12 <= 178 )) && (a13==1))) && (a19==9)) && (a1==4))){ + a12 = ((((((a12 + 0) * 9)/ 10) - 10820) % 108)+ 327); + a1 = 3; + a19 = 10; + + return -1; + } else if(( ((395 < a12) && (441 >= a12)) && ((a1==2) && ((a26==1) && (((( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) && (input == 6)) && !(a13==1)) && (a19==10)))))){ + a12 = (((a12 + -597726) - 1608) * 1); + a23 = ((((a23 + 393233) % 105)+ 348) - 62); + a1 = 3; + a19 = 13; + a13 = 1; + + return 22; + } else if(( 441 < a12 && ((a26==1) && ((a1==2) && ((a19==12) && ((( 476 < a23 || ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) )) && (input == 5)) && !(a13==1))))))){ + a12 = ((((a12 + -228320) - -177207) - -264) - 549585); + a23 = ((((a23 * 9)/ 10) * -1) + -33383); + a1 = 3; + a19 = 13; + a13 = 1; + + return 26; + } else if(((a1==3) && ( ((395 < a12) && (441 >= a12)) && (((a13==1) && ((( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 2)) && (a26==1))) && (a19==9))))){ + a12 = (((a12 * 5) + -406103) + -9470); + a23 = ((((a23 - -596947) % 299761)- -300237) * 1); + a19 = 11; + a13 = 0; + + return 26; + } else if(((a1==2) && ( ((264 < a23) && (476 >= a23)) && ((a19==10) && (( 441 < a12 && ((a26==1) && (input == 6))) && !(a13==1)))))){ + a12 = (((((a12 / 5) % 108)- -243) + 501683) + -501643); + a23 = (((a23 / 5) / 5) + -201214); + a1 = 3; + a13 = 1; + + return 26; + } else if((( a12 <= 178 && (((((input == 4) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )) && (a26==1)) && (a19==9)) && !(a13==1))) && (a1==4))){ + if((a1==6)){ + a12 = ((((a12 % 299779)+ 300220) / 5) - -76736); + a23 = ((((((a23 * 9)/ 10) / 5) + 465917) % 105)- -283); + a1 = 2; + a19 = 12; + + } else{ + a23 = ((((((a23 % 299761)- -300237) / 5) - 492649) * -1)/ 10); + a1 = 3; + a19 = 12; + + } return 26; + } else if((((((((input == 5) && (a1==3)) && (a19==9)) && (a26==1)) && 476 < a23 ) && (a13==1)) && ((178 < a12) && (395 >= a12)) )){ + + a1 = 2; + a19 = 10; + a13 = 0; + + return -1; + } else if(((a1==3) && ((( 476 < a23 && ((a19==11) && ((a26==1) && (input == 4)))) && ((395 < a12) && (441 >= a12)) ) && (a13==1)))){ + a12 = ((((a12 + -384069) * 1) + 443836) - 531461); + a23 = (((a23 / -5) + -392385) / 5); + a1 = 2; + a19 = 9; + + return -1; + } else if((( ((264 < a23) && (476 >= a23)) && (((((a19==9) && (input == 3)) && (a1==2)) && 441 < a12 ) && !(a13==1))) && (a26==1))){ + a12 = (((a12 + -600412) + -4) / 5); + a23 = (((a23 / 5) * 5) + 2376); + a1 = 3; + a19 = 12; + + return 24; + } else if(( 441 < a12 && (!(a13==1) && ((a1==2) && ((a26==1) && ((input == 3) && ((( 476 < a23 && (a19==9)) || ((a19==10) && a23 <= 95 )) || ( ((95 < a23) && (264 >= a23)) && (a19==10))))))))){ + a12 = ((((((a12 % 22)+ 404) + 8) / 5) * 49)/ 10); + a23 = ((((a23 % 105)+ 369) / 5) * 5); + a1 = 3; + a19 = 10; + a13 = 1; + + return 22; + } else if(((a1==4) && ((((a26==1) && ((a19==12) && ((input == 5) && ( 476 < a23 || ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ))))) && (a13==1)) && a12 <= 178 ))){ + if( ((178 < a12) && (395 >= a12)) ){ + a23 = (((a23 / 5) - -279644) + 24270); + a1 = 2; + a19 = 13; + a13 = 0; + + } else{ + a23 = (((a23 / 5) - 446975) / 5); + a1 = 2; + a19 = 13; + + } return 26; + } else if(( ((178 < a12) && (395 >= a12)) && (((a26==1) && ((a19==13) && ((( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 6)) && (a1==3)))) && !(a13==1)))){ + a23 = (((((a23 % 105)+ 335) + -361223) - 6935) - -368143); + a1 = 2; + a19 = 12; + + return 26; + } else if(((a13==1) && ( a12 <= 178 && (((a26==1) && ((a1==3) && (( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) && (input == 5)))) && (a19==11))))){ + a12 = ((((a12 % 108)- -287) - -1) + -2); + a23 = (((((a23 + 272458) * 10)/ 9) + -867703) + 718959); + a19 = 10; + + return 24; + } else if(((((a26==1) && ((a1==3) && ((a19==9) && (( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 3))))) && ((395 < a12) && (441 >= a12)) ) && !(a13==1))){ + a12 = (((a12 - 573635) + -4849) * 1); + a23 = ((((a23 * 9)/ 10) + 2777) / 5); + a19 = 13; + a13 = 1; + + return 22; + } else if(((a26==1) && ((( ((95 < a23) && (264 >= a23)) && (((input == 6) && !(a13==1)) && (a1==3))) && (a19==13)) && a12 <= 178 ))){ + a12 = ((((a12 - -31817) * 1) % 108)+ 287); + return -1; + } else if(((a26==1) && (!(a13==1) && ( a12 <= 178 && (((((a19==9) && 476 < a23 ) || ((a19==10) && a23 <= 95 )) && (input == 6)) && (a1==3)))))){ + a12 = ((((a12 + 38106) % 108)- -286) - -2); + a23 = (((((a23 % 105)- -369) + 0) + 141644) - 141642); + a1 = 2; + a19 = 10; + a13 = 1; + + return -1; + } else if(( ((178 < a12) && (395 >= a12)) && ((((a26==1) && (((input == 5) && (a1==3)) && (a19==10))) && a23 <= 95 ) && (a13==1)))){ + + return -1; + } else if((( ((95 < a23) && (264 >= a23)) && ((((a19==11) && ((input == 3) && (a1==2))) && (a13==1)) && ((395 < a12) && (441 >= a12)) )) && (a26==1))){ + if( ((178 < a12) && (395 >= a12)) ){ + a23 = ((((a23 + 194) / 5) - -577187) + -576826); + a1 = 3; + + } else{ + a12 = (((((a12 / 5) + 100) * 5) * 2)/ 10); + a23 = ((((a23 + 535747) * 10)/ 9) * 1); + a1 = 3; + a19 = 9; + + } return 24; + } else if(( a12 <= 178 && ((a13==1) && (((a1==3) && ((input == 6) && (((a19==11) && a23 <= 95 ) || (( ((264 < a23) && (476 >= a23)) && (a19==10)) || ( 476 < a23 && (a19==10)))))) && (a26==1))))){ + a23 = (((((a23 % 300047)+ -299951) / 5) - -513283) * -1); + a1 = 2; + a19 = 13; + a13 = 0; + + return -1; + } else if(((a13==1) && ((((((input == 6) && (a19==13)) && (a26==1)) && (a1==4)) && a23 <= 95 ) && a12 <= 178 ))){ + if((a19==11)){ + a23 = (((((a23 % 299761)+ 300237) - 260752) * 1) + 260755); + a1 = 2; + a19 = 9; + + } else{ + a23 = (((((a23 - -134165) - 67317) - 63742) % 299761)- -300237); + a19 = 10; + a13 = 0; + + } return 22; + } else if(((a26==1) && ( ((395 < a12) && (441 >= a12)) && (((((a19==9) && (input == 2)) && (a1==3)) && !(a13==1)) && ((95 < a23) && (264 >= a23)) )))){ + + a1 = 2; + a19 = 10; + + return 26; + } else if(((a1==2) && ((a26==1) && ((a19==11) && ( 441 < a12 && (((input == 5) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 )) && (a13==1))))))){ + a12 = (((a12 + -599879) * 1) - 55); + a23 = (((a23 - 600213) * 1) + -49); + a19 = 9; + + return -1; + } else if((((((((input == 6) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )) && (a26==1)) && (a13==1)) && a12 <= 178 ) && (a1==3)) && (a19==10))){ + a23 = ((((a23 % 105)- -371) / 5) - -280); + a19 = 9; + a13 = 0; + + return 26; + } else if(((a26==1) && ((((a1==2) && ( 441 < a12 && ((input == 3) && ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) )))) && !(a13==1)) && (a19==13)))){ + a12 = (((((a12 * 9)/ 10) * -1) - -316268) + -331888); + a23 = ((((a23 * 5) * 5) + 407260) - 685227); + a1 = 3; + + return 24; + } else if((!(a13==1) && ((a26==1) && (((a1==2) && (((a19==11) && (input == 2)) && ((95 < a23) && (264 >= a23)) )) && ((178 < a12) && (395 >= a12)) )))){ + if((a19==13)){ + a23 = (((a23 + 207) * 5) / 5); + a1 = 3; + a13 = 1; + + } else{ + a12 = ((((a12 % 22)+ 413) + -394172) + 394157); + a23 = (((((a23 + 193) * 5) + 232526) % 105)- -344); + a19 = 12; + + } return 26; + } else if(((a19==9) && (( 441 < a12 && ((((input == 4) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )) && (a1==2)) && !(a13==1))) && (a26==1)))){ + a12 = ((((((a12 - 0) % 22)- -412) / 5) * 49)/ 10); + a23 = (((((a23 % 105)- -371) * 5) % 105)- -346); + a1 = 3; + a19 = 10; + a13 = 1; + + return 22; + } else if(((!(a13==1) && ((a19==11) && ( 441 < a12 && (((input == 4) && ( 476 < a23 || ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ))) && (a1==3))))) && (a26==1))){ + a12 = ((((((a12 % 108)+ 231) * 10)/ 9) - -242139) - 242134); + a23 = ((((a23 / -5) + -338546) + 442455) - 425483); + a1 = 2; + a13 = 1; + + return 22; + } else if((((input == 4) && (((((a1==2) && ( 476 < a23 && 441 < a12 )) && (a19==13)) && !(a13==1)) || ((a13==1) && ((a19==9) && ((a1==3) && ( a23 <= 95 && a12 <= 178 )))))) && (a26==1))){ + a12 = ((((a12 - 0) % 22)- -418) + 2); + a23 = ((((a23 % 105)+ 369) * 1) * 1); + a1 = 3; + a19 = 13; + a13 = 0; + + return 26; + } else if(((((a13==1) && (((a1==3) && ((input == 6) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 ))) && (a26==1))) && (a19==10)) && ((395 < a12) && (441 >= a12)) )){ + a12 = (((a12 / -5) * 5) * 5); + a23 = ((((a23 % 84)- -147) - -6) - 48); + a19 = 13; + a13 = 0; + + return -1; + } else if(((a1==2) && (((((a13==1) && ((input == 3) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 ))) && ((395 < a12) && (441 >= a12)) ) && (a26==1)) && (a19==12)))){ + a12 = (((a12 + -139) - 457066) + 457021); + a23 = (((((a23 % 84)- -119) / 5) + 481837) - 481705); + a19 = 10; + a13 = 0; + + return 26; + } else if((( a23 <= 95 && (((((input == 2) && (a13==1)) && (a1==4)) && a12 <= 178 ) && (a26==1))) && (a19==13))){ + a12 = (((((a12 % 299779)- -300220) / 5) * 5) + 5); + a23 = ((((a23 % 105)- -370) + -1) + 3); + a1 = 3; + a19 = 11; + + return -1; + } else if(((a19==13) && ((a26==1) && ( ((395 < a12) && (441 >= a12)) && ( ((264 < a23) && (476 >= a23)) && (!(a13==1) && ((a1==2) && (input == 5)))))))){ + a12 = ((((a12 + -125150) + -158694) + 857178) * -1); + a23 = ((((a23 / 5) - 306500) - -722709) + -745998); + a19 = 9; + a13 = 1; + + return -1; + } else if(((a26==1) && ((a1==3) && (((a13==1) && (((a19==10) && (input == 5)) && ((95 < a23) && (264 >= a23)) )) && ((178 < a12) && (395 >= a12)) )))){ + a12 = (((a12 / 5) + -412475) + -11033); + a23 = (((a23 + 173) + -421435) + 421459); + a1 = 2; + a13 = 0; + + return -1; + } else if(((a1==3) && (( 441 < a12 && (!(a13==1) && ((input == 5) && (( 476 < a23 && (a19==12)) || ((a19==13) && a23 <= 95 ))))) && (a26==1)))){ + if((a13==1)){ + a12 = (((a12 + -600352) * 1) - 4); + a23 = ((((a23 % 300047)+ -299951) + -1) + -2); + a1 = 2; + a19 = 12; + a13 = 1; + + } else{ + a12 = (((a12 + 0) - 600306) + -21); + a23 = ((((a23 % 299761)+ 300237) * 1) + 1); + a1 = 2; + a19 = 13; + + } return -1; + } else if(( ((178 < a12) && (395 >= a12)) && (!(a13==1) && ((a26==1) && ((a1==2) && ((a19==12) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 3)))))))){ + a12 = ((((((a12 - 178254) * 10)/ -9) - 680939) * -1)/ 10); + a23 = ((((a23 % 84)+ 179) / 5) + 147); + a19 = 11; + a13 = 1; + + return 24; + } else if((((a26==1) && ((a1==3) && ((((input == 2) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 )) && ((178 < a12) && (395 >= a12)) ) && (a19==11)))) && !(a13==1))){ + if( 476 < a23 ){ + a23 = (((a23 + 0) - 600235) - 25); + a19 = 13; + + } else{ + a12 = (((a12 * -5) * 5) + -426190); + a23 = ((((a23 - 306732) % 299761)+ 300237) * 1); + } return 26; + } else if((!(a13==1) && ((( 441 < a12 && (((input == 3) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )) && (a1==3))) && (a19==9)) && (a26==1)))){ + if((a19==10)){ + a12 = (((((a12 / 5) / 5) * 5) % 108)- -227); + a23 = (((((a23 % 105)+ 370) * 5) % 105)+ 273); + a1 = 2; + a19 = 11; + + } else{ + a23 = ((((a23 % 105)+ 371) + 1) + -2); + a19 = 12; + a13 = 1; + + } return 24; + } else if(((((a26==1) && (((( ((264 < a23) && (476 >= a23)) || ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )) && (input == 5)) && a12 <= 178 ) && (a1==3))) && !(a13==1)) && (a19==9))){ + a23 = ((((a23 + 39317) % 300047)- 299951) + -1); + return 26; + } else if(((a26==1) && (((!(a13==1) && ((a1==3) && (( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) && (input == 3)))) && ((395 < a12) && (441 >= a12)) ) && (a19==10)))){ + a12 = (((((a12 - 191) * 9)/ 10) * 10)/ 9); + a23 = (((a23 - 553210) + -23500) * 1); + a13 = 1; + + return -1; + } else if(((a1==3) && (((((input == 3) && (((a19==12) && 476 < a23 ) || ((a19==13) && a23 <= 95 ))) && 441 < a12 ) && !(a13==1)) && (a26==1)))){ + if((a1==5)){ + a12 = (((a12 + 0) + -600256) * 1); + a23 = ((((a23 % 299761)+ 300237) / 5) + 452273); + a1 = 4; + a19 = 10; + + } else{ + a12 = ((((a12 - 156080) % 22)+ 417) - 0); + a23 = ((((a23 + 0) - 0) % 105)+ 370); + a19 = 13; + a13 = 1; + + } return 24; + } else if(((!(a13==1) && ((((( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 3)) && (a19==12)) && 441 < a12 ) && (a26==1))) && (a1==3))){ + if( ((395 < a12) && (441 >= a12)) ){ + a12 = (((((a12 - 0) - 282651) * 1) % 22)- -418); + a23 = (((((a23 % 299761)+ 300237) - -2) / 5) + 165428); + } else{ + a12 = ((((a12 + -600339) + 587298) - 389815) - 197455); + a23 = ((((a23 % 300047)- 299951) + 253697) + -253699); + a1 = 4; + a19 = 10; + a13 = 1; + + } return 24; + } else if((((a1==2) && ((((a26==1) && ( ((395 < a12) && (441 >= a12)) && (input == 6))) && (a19==13)) && ((264 < a23) && (476 >= a23)) )) && !(a13==1))){ + a12 = (((a12 + -325452) / 5) / 5); + a23 = (((((a23 - -119139) + 60217) + -427465) * -1)/ 10); + a1 = 3; + a19 = 9; + + return 22; + } else if(((a1==3) && (((((( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) && (input == 4)) && (a13==1)) && 441 < a12 ) && (a26==1)) && (a19==11)))){ + a12 = (((((a12 / 5) + -182739) / 5) % 108)- -339); + a23 = ((((a23 * 10)/ 2) * 5) - -134022); + a1 = 2; + + return -1; + } else if((((( ((395 < a12) && (441 >= a12)) && ((a26==1) && (( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 3)))) && (a13==1)) && (a19==11)) && (a1==2))){ + a12 = (((a12 * 5) + -118988) * 5); + a23 = (((a23 + -600084) - 14) - 122); + a19 = 9; + + return -1; + } else if((((a1==4) && ((a13==1) && (((( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 4)) && (a19==13)) && (a26==1)))) && a12 <= 178 )){ + if((a13==1)){ + a12 = ((((a12 - -493016) % 108)+ 286) + 0); + a23 = (((a23 - 600167) + -64) * 1); + a1 = 2; + + } else{ + a23 = ((((a23 - 0) % 105)+ 268) - 1); + a19 = 10; + a13 = 0; + + } return 26; + } else if(((!(a13==1) && ( 441 < a12 && ((a19==13) && (((a26==1) && (input == 2)) && (a1==2))))) && a23 <= 95 )){ + a12 = ((((((a12 % 108)- -182) * 10)/ 9) + 73930) - 73878); + a23 = (((((a23 + 0) + 0) - 0) % 84)+ 179); + a1 = 3; + a19 = 9; + + return 26; + } else if(( 441 < a12 && ((((a13==1) && (((input == 4) && ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) )) && (a19==9))) && (a26==1)) && (a1==2)))){ + if((a1==3)){ + a12 = (((((a12 * 9)/ 10) % 108)+ 186) + -7); + a23 = (((((a23 % 105)+ 360) * 9)/ 10) - 2); + a1 = 3; + a19 = 12; + + } else{ + a12 = (((a12 - 600278) + -126) * 1); + a23 = ((((a23 / 5) / 5) * 5) - -319); + a1 = 3; + a19 = 10; + a13 = 0; + + } return 24; + } else if((((( ((395 < a12) && (441 >= a12)) && ((input == 5) && ((( 476 < a23 && (a19==12)) || ( a23 <= 95 && (a19==13))) || ((a19==13) && ((95 < a23) && (264 >= a23)) )))) && (a26==1)) && !(a13==1)) && (a1==3))){ + a12 = (((((a12 + 31496) + -31634) * 5) % 108)- -237); + a23 = ((((((a23 - 0) % 105)+ 370) * 5) % 105)- -287); + a1 = 2; + a19 = 10; + + return 24; + } else if((((a19==12) && (( ((395 < a12) && (441 >= a12)) && ((( ((264 < a23) && (476 >= a23)) || ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )) && (input == 2)) && (a1==3))) && (a13==1))) && (a26==1))){ + if((a13==1)){ + a23 = (((((a23 + 536217) % 84)+ 179) / 5) + 92); + a19 = 10; + a13 = 0; + + } else{ + a12 = ((((a12 * 10)/ 12) + -18) + 32); + a23 = (((((a23 % 84)+ 179) + 2) / 5) - -201); + a19 = 10; + + } return 24; + } else if((((a1==3) && ((((( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 3)) && (a13==1)) && (a19==10)) && ((395 < a12) && (441 >= a12)) )) && (a26==1))){ + a12 = ((((a12 - 59) * 9)/ 10) - 77); + a23 = (((a23 + -599956) * 1) - 178); + return -1; + } + return calculate_output2(input); + } + + int calculate_output2(int input) { + + + if(((a19==9) && ((a26==1) && (( 441 < a12 && (((( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) || ((264 < a23) && (476 >= a23)) ) && (input == 5)) && (a13==1))) && (a1==3))))){ + if( ((264 < a23) && (476 >= a23)) ){ + a12 = ((((a12 / 5) % 22)+ 417) * 1); + a23 = (((((a23 * 9)/ 10) % 84)+ 179) - 0); + } else{ + a12 = ((((a12 % 108)+ 209) / 5) * 5); + a23 = ((((a23 + 490193) % 299761)+ 300237) - -2); + a1 = 2; + a19 = 13; + + } return 22; + } else if((((a1==3) && (!(a13==1) && (((a19==9) && (( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 2))) && ((395 < a12) && (441 >= a12)) ))) && (a26==1))){ + a12 = ((((a12 + -157) + -410978) * 1) - -411050); + a23 = ((((a23 % 105)+ 297) + 30094) + -30108); + a1 = 2; + a19 = 10; + + return 26; + } else if((!(a13==1) && ((((a26==1) && ((( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 3)) && (a19==13))) && ((178 < a12) && (395 >= a12)) ) && (a1==3)))){ + a12 = ((((a12 / 5) / 5) / 5) + 401); + a23 = ((((a23 - 290276) % 299761)- -300237) - 0); + a19 = 10; + a13 = 1; + + return 22; + } else if(((a26==1) && ( a23 <= 95 && (!(a13==1) && ((a19==10) && (( ((395 < a12) && (441 >= a12)) && (input == 2)) && (a1==3))))))){ + a12 = (((a12 + 77452) * 5) + 17022); + a23 = (((((a23 / 5) + -196133) * 1) % 105)- -402); + a1 = 2; + + return 26; + } else if((((a19==13) && ((((a26==1) && (( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) && (input == 6))) && a12 <= 178 ) && (a1==3))) && (a13==1))){ + a12 = ((((a12 % 108)+ 286) - 0) + 0); + a23 = ((((a23 + 501472) * 10)/ 9) - -28214); + a1 = 2; + a19 = 10; + a13 = 0; + + return 22; + } else if(((a26==1) && (((a1==3) && ((input == 5) && (((((a19==13) && 476 < a23 ) && (a13==1)) || (!(a13==1) && ( a23 <= 95 && (a19==9)))) || (((a19==9) && ((95 < a23) && (264 >= a23)) ) && !(a13==1))))) && ((178 < a12) && (395 >= a12)) ))){ + a12 = (((a12 * -5) - 250675) - 204886); + a23 = (((((a23 * 9)/ 10) + 59557) % 299761)- -300237); + a19 = 13; + a13 = 1; + + return -1; + } else if(( a12 <= 178 && (((a1==3) && ( ((95 < a23) && (264 >= a23)) && (((a19==10) && (input == 4)) && !(a13==1)))) && (a26==1)))){ + a12 = ((((((a12 * 9)/ 10) % 22)+ 418) + -253732) - -253733); + a23 = (((a23 + -69904) + 70110) - -1); + a19 = 11; + + return -1; + } else if(((a1==2) && ( ((395 < a12) && (441 >= a12)) && ((((( ((95 < a23) && (264 >= a23)) && (a19==9)) && !(a13==1)) || ((( 476 < a23 && (a19==13)) && (a13==1)) || (!(a13==1) && ((a19==9) && a23 <= 95 )))) && (input == 6)) && (a26==1))))){ + a12 = (((a12 + -379720) * 1) - 47581); + a23 = ((((a23 % 84)+ 180) / 5) + 165); + a1 = 3; + a19 = 9; + a13 = 0; + + return 24; + } else if(( a12 <= 178 && ((a1==4) && (((( ((95 < a23) && (264 >= a23)) && (input == 2)) && (a13==1)) && (a26==1)) && (a19==13))))){ + if((a1==4)){ + a12 = ((((a12 / 5) * 4) % 22)- -418); + a23 = ((((a23 * 5) * 5) % 105)- -348); + a1 = 2; + a19 = 12; + + } else{ + a23 = (((a23 / 5) + 259106) * 2); + a1 = 2; + a19 = 10; + + } return 22; + } else if((( a12 <= 178 && ((a1==4) && (((a13==1) && ((input == 2) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 ))) && (a26==1)))) && (a19==13))){ + if( ((264 < a23) && (476 >= a23)) ){ + a23 = ((((a23 * 9)/ 10) + 35071) * 1); + a1 = 2; + a19 = 9; + a13 = 0; + + } else{ + a23 = ((((a23 / 5) + 129499) * 10)/ 9); + a1 = 2; + a13 = 0; + + } return -1; + } else if(( 476 < a23 && ((a13==1) && ((( ((395 < a12) && (441 >= a12)) && ((input == 5) && (a19==12))) && (a1==3)) && (a26==1))))){ + a12 = (((a12 * -5) - 309332) * 1); + a23 = (((a23 + -343019) * 1) - 257381); + a19 = 9; + a13 = 0; + + return 22; + } else if((!(a13==1) && ((a1==2) && ((a26==1) && ( ((264 < a23) && (476 >= a23)) && ((a19==12) && ((input == 5) && ((178 < a12) && (395 >= a12)) ))))))){ + a12 = ((((a12 * 10)/ 4) + 304395) - -279242); + a23 = (((a23 / -5) * 5) * 5); + a19 = 13; + a13 = 1; + + return 26; + } else if(((a19==11) && ((( a12 <= 178 && ((a26==1) && ((input == 4) && ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) )))) && (a13==1)) && (a1==4)))){ + a12 = (((((a12 % 299779)- -300220) * 1) + -440048) + 440050); + a23 = (((((a23 / 5) * 5) * 5) % 105)+ 298); + a1 = 3; + a19 = 10; + + return -1; + } else if(( ((178 < a12) && (395 >= a12)) && ((a26==1) && (((a13==1) && ((( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 3)) && (a1==3))) && (a19==13))))){ + a12 = ((((a12 - -339580) % 22)- -408) - 12); + a23 = ((((a23 % 300047)+ -299951) - 3) - 0); + a1 = 2; + a19 = 12; + + return 22; + } else if(((a13==1) && (((( ((95 < a23) && (264 >= a23)) && ((input == 5) && a12 <= 178 )) && (a1==4)) && (a26==1)) && (a19==9)))){ + if((a26==1)){ + a12 = ((((a12 % 299779)- -300220) - 502078) + 502080); + a23 = (((a23 - -189979) + -189772) - -5); + a1 = 3; + + } else{ + a23 = ((((a23 - -182953) * 3) % 105)+ 282); + a1 = 2; + a19 = 10; + + } return -1; + } else if((((a26==1) && (((!(a13==1) && (( ((395 < a12) && (441 >= a12)) && 476 < a23 ) && (a19==13))) || ((a13==1) && (( a23 <= 95 && 441 < a12 ) && (a19==9)))) && (input == 6))) && (a1==2))){ + a12 = (((((a12 % 108)- -252) * 5) % 108)+ 216); + a23 = (((((a23 % 105)- -371) + -358407) + 82016) - -276389); + a1 = 3; + a19 = 12; + a13 = 1; + + return 22; + } else if((!(a13==1) && ((((a26==1) && ( 441 < a12 && (( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 4)))) && (a19==13)) && (a1==3)))){ + a12 = (((((a12 % 108)- -180) * 5) % 108)- -241); + a23 = (((((a23 / 5) - -272693) * 1) % 84)+ 98); + a1 = 2; + a19 = 11; + a13 = 1; + + return 24; + } else if((((a1==4) && ( a12 <= 178 && ((a26==1) && ((((a19==11) && 476 < a23 ) || ( a23 <= 95 && (a19==12))) && (input == 4))))) && (a13==1))){ + a23 = (((((a23 - 0) / 5) * 4) % 299761)+ 300237); + a1 = 2; + a19 = 11; + + return 26; + } else if((!(a13==1) && (((((input == 2) && (( ((95 < a23) && (264 >= a23)) && (a19==11)) || (( 476 < a23 && (a19==10)) || ((a19==11) && a23 <= 95 )))) && (a26==1)) && (a1==2)) && 441 < a12 ))){ + if((a1==5)){ + a12 = ((((((a12 + -409704) % 22)+ 419) * 5) % 22)+ 417); + a23 = ((((a23 - 0) - 0) / 5) - -473865); + a1 = 3; + a19 = 9; + + } else{ + a12 = (((a12 - 600419) + -2) + -19); + a23 = ((((a23 / 5) * 4) % 299761)+ 300237); + a1 = 3; + a19 = 11; + a13 = 1; + + } return 26; + } else if(((a13==1) && ((((a26==1) && ((input == 2) && (( a23 <= 95 && (a19==11)) || (( ((264 < a23) && (476 >= a23)) && (a19==10)) || ( 476 < a23 && (a19==10)))))) && a12 <= 178 ) && (a1==3)))){ + a23 = (((((a23 - 0) * 9)/ 10) % 300047)- 299951); + a19 = 13; + a13 = 0; + + return 22; + } else if((((((a26==1) && ((input == 5) && (((a19==11) && a23 <= 95 ) || (((a19==10) && ((264 < a23) && (476 >= a23)) ) || ( 476 < a23 && (a19==10)))))) && (a1==4)) && (a13==1)) && a12 <= 178 )){ + a12 = ((((a12 + 0) % 22)+ 417) + 1); + a23 = ((((a23 + 0) - 0) % 84)- -179); + a1 = 2; + a19 = 11; + + return 22; + } else if(((a19==12) && ((( ((178 < a12) && (395 >= a12)) && (((input == 6) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 )) && (a1==3))) && (a26==1)) && !(a13==1)))){ + a23 = ((((((a23 % 299761)- -477) / 5) - 445243) * -1)/ 10); + a19 = 9; + a13 = 1; + + return 22; + } else if(((( 476 < a23 && (((a26==1) && ((input == 6) && (a19==10))) && !(a13==1))) && (a1==2)) && ((178 < a12) && (395 >= a12)) )){ + a12 = (((((a12 % 22)- -403) - -475960) + 754) - 476703); + a23 = (((((a23 % 105)+ 355) * 5) % 105)- -271); + a19 = 11; + a13 = 1; + + return 22; + } else if((!(a13==1) && (((a26==1) && ((((input == 6) && ((264 < a23) && (476 >= a23)) ) && 441 < a12 ) && (a19==9))) && (a1==2)))){ + a12 = (((((a12 * 9)/ 10) / 5) / 5) + -396332); + a23 = ((((((a23 % 84)+ 167) + -15) / 5) * 39)/ 10); + a19 = 10; + a13 = 1; + + return -1; + } else if(((((a1==3) && ((a26==1) && ((a19==11) && ( 441 < a12 && (input == 3))))) && a23 <= 95 ) && (a13==1))){ + a12 = ((((a12 % 22)+ 417) - -1) + 2); + a23 = (((((a23 % 105)+ 369) - -3) / 5) - -316); + a1 = 2; + a13 = 0; + + return -1; + } else if(((a19==13) && (((a13==1) && ((( a12 <= 178 && (input == 4)) && (a1==4)) && (a26==1))) && ((95 < a23) && (264 >= a23)) ))){ + + a1 = 2; + + return 26; + } else if((((((a19==9) && (((input == 4) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )) && ((395 < a12) && (441 >= a12)) )) && (a13==1)) && (a26==1)) && (a1==3))){ + a12 = (((((a12 * -5) * 10)/ 9) + 398909) - 671802); + a23 = ((((a23 * 9)/ 10) + -29237) * 1); + a1 = 2; + + return -1; + } else if((((a26==1) && (((input == 4) && (((((a19==13) && 476 < a23 ) && (a13==1)) || (!(a13==1) && ((a19==9) && a23 <= 95 ))) || (!(a13==1) && ( ((95 < a23) && (264 >= a23)) && (a19==9))))) && ((178 < a12) && (395 >= a12)) )) && (a1==3))){ + a12 = (((a12 * -5) + -431317) / 5); + a23 = (((((a23 % 299761)- -300237) - 0) - 438352) - -438355); + a19 = 13; + a13 = 1; + + return -1; + } else if(( 441 < a12 && ((a13==1) && (( a23 <= 95 && ((a1==3) && ((a26==1) && (input == 2)))) && (a19==11))))){ + a12 = (((((a12 + 0) / 5) + 317083) % 22)- -397); + a23 = ((((a23 % 299761)+ 300237) - 560085) + 560086); + return 26; + } else if(((a13==1) && (( 441 < a12 && (((input == 4) && (((a19==12) && ((95 < a23) && (264 >= a23)) ) || (((a19==11) && 476 < a23 ) || ( a23 <= 95 && (a19==12))))) && (a1==3))) && (a26==1)))){ + if((a13==1)){ + a12 = ((((a12 % 108)- -215) * 5) / 5); + a23 = ((((a23 - 0) % 105)+ 370) * 1); + a19 = 12; + + } else{ + a12 = (((a12 / 5) + 470519) / -5); + a23 = ((((a23 % 84)- -179) + 0) * 1); + a1 = 4; + a19 = 11; + + } return -1; + } else if((( ((395 < a12) && (441 >= a12)) && (((a19==9) && ((a26==1) && ((input == 4) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 )))) && !(a13==1))) && (a1==3))){ + a12 = (((a12 - 279638) + -46462) * 1); + a23 = (((((a23 + 0) % 105)- -326) * 9)/ 10); + a19 = 12; + a13 = 1; + + return 26; + } else if((((((a1==3) && (((input == 3) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )) && (a26==1))) && (a13==1)) && ((395 < a12) && (441 >= a12)) ) && (a19==11))){ + a12 = ((((a12 + -179) - 10) * 9)/ 10); + a23 = (((((a23 % 84)+ 179) / 5) / 5) - -114); + a1 = 2; + a19 = 10; + a13 = 0; + + return 26; + } else if((((a1==3) && ((a19==13) && ((!(a13==1) && ((input == 2) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 ))) && ((395 < a12) && (441 >= a12)) ))) && (a26==1))){ + a12 = (((a12 / 5) - 56383) + -39940); + a23 = ((((a23 % 299761)- -477) * 1) - -90256); + a13 = 1; + + return -1; + } else if(((a26==1) && ( a12 <= 178 && ((a1==3) && (!(a13==1) && ((input == 6) && (((a19==13) && a23 <= 95 ) || (((a19==12) && ((264 < a23) && (476 >= a23)) ) || ((a19==12) && 476 < a23 ))))))))){ + a12 = (((((a12 % 108)+ 286) - 0) - -263394) + -263393); + a23 = ((((a23 % 300047)- 299951) * 1) - 3); + a19 = 12; + + return 22; + } else if(((a19==9) && ((a26==1) && ((a1==3) && (((a13==1) && (( 476 < a23 || ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) )) && (input == 3))) && a12 <= 178 ))))){ + a23 = ((((a23 * 9)/ 10) - 582270) - 4119); + a1 = 2; + + return -1; + } else if((((a13==1) && ((a1==2) && (((( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 4)) && ((395 < a12) && (441 >= a12)) ) && (a26==1)))) && (a19==9))){ + a23 = (((((a23 + 0) % 84)+ 179) - -424870) - 424869); + a1 = 3; + a19 = 13; + a13 = 0; + + return 26; + } else if(((a1==2) && ((((((input == 5) && ((264 < a23) && (476 >= a23)) ) && 441 < a12 ) && !(a13==1)) && (a26==1)) && (a19==9)))){ + a12 = (((a12 - 0) + -599906) / 5); + a23 = (((((a23 * 18)/ 10) - -277934) * 10)/ 9); + a1 = 3; + a19 = 12; + + return 22; + } else if(( ((395 < a12) && (441 >= a12)) && ((a1==2) && (((((((a19==9) && ((264 < a23) && (476 >= a23)) ) || ( 476 < a23 && (a19==9))) || ( a23 <= 95 && (a19==10))) && (input == 2)) && (a26==1)) && (a13==1))))){ + a23 = ((((((a23 * 9)/ 10) % 105)- -370) / 5) + 280); + a1 = 3; + a19 = 11; + a13 = 0; + + return 24; + } else if((((a26==1) && (((a1==2) && ((a13==1) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 3)))) && (a19==12))) && ((395 < a12) && (441 >= a12)) )){ + if( 476 < a23 ){ + a12 = (((((a12 * 10)/ 12) / 5) + 277636) - 277437); + a23 = ((((a23 % 84)- -180) * 1) - 1); + a1 = 3; + a19 = 13; + a13 = 0; + + } else{ + a12 = (((a12 * 5) - -164163) / -5); + a23 = ((((a23 % 299761)+ 300237) - -1) + 1); + a1 = 3; + a19 = 11; + a13 = 0; + + } return 22; + } else if(((a26==1) && (((a13==1) && ((((input == 5) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) || ((264 < a23) && (476 >= a23)) )) && (a19==12)) && 441 < a12 )) && (a1==2)))){ + a12 = ((((a12 - 0) / 5) / 5) * -5); + a23 = (((((a23 * 9)/ 10) * 1) / 5) - -254486); + a1 = 3; + a19 = 13; + a13 = 0; + + return 24; + } else if(((a19==11) && ( ((178 < a12) && (395 >= a12)) && ((a26==1) && (( ((95 < a23) && (264 >= a23)) && ((input == 6) && (a1==2))) && !(a13==1)))))){ + a12 = (((a12 / 5) - -361) * 1); + a23 = (((((a23 - -205) * 9)/ 10) - 257689) + 257704); + a19 = 10; + + return 26; + } else if(( ((178 < a12) && (395 >= a12)) && (!(a13==1) && ((a19==12) && ((((input == 3) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 )) && (a26==1)) && (a1==3)))))){ + a23 = ((((a23 % 84)+ 180) - 104309) - -104233); + a1 = 2; + a19 = 10; + a13 = 1; + + return -1; + } else if(( a23 <= 95 && ((a26==1) && ((a1==2) && ((a13==1) && ( ((395 < a12) && (441 >= a12)) && ((a19==11) && (input == 6)))))))){ + a12 = (((a12 + 408410) * 1) - 687762); + a1 = 3; + a19 = 12; + a13 = 0; + + return 26; + } else if((!(a13==1) && (((a1==3) && ((((input == 2) && ( ((264 < a23) && (476 >= a23)) || ( a23 <= 95 || ((95 < a23) && (264 >= a23)) ))) && (a26==1)) && (a19==10))) && ((178 < a12) && (395 >= a12)) ))){ + a12 = (((a12 * -5) * 5) / 5); + a23 = ((((a23 % 105)- -370) * 1) * 1); + a19 = 12; + + return 22; + } else if((((!(a13==1) && ( ((395 < a12) && (441 >= a12)) && ((input == 5) && ((( ((264 < a23) && (476 >= a23)) && (a19==12)) || ( 476 < a23 && (a19==12))) || ( a23 <= 95 && (a19==13)))))) && (a26==1)) && (a1==2))){ + a23 = ((((((a23 * 9)/ 10) + -31886) / 5) % 105)- -369); + a1 = 3; + a19 = 13; + + return 26; + } else if(((a1==3) && ( a12 <= 178 && ((a19==11) && (((( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) && (input == 2)) && (a26==1)) && (a13==1)))))){ + if( ((264 < a23) && (476 >= a23)) ){ + a12 = ((((((a12 - -561465) % 22)- -419) * 5) % 22)+ 410); + a23 = ((((a23 * 10)/ 2) * 5) * 5); + a19 = 9; + a13 = 0; + + } else{ + a23 = (((a23 / 5) - -148) - -4); + a19 = 12; + + } return 26; + } else if((((a19==12) && ((a26==1) && ( 441 < a12 && (((( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) || 476 < a23 ) && (input == 4)) && !(a13==1))))) && (a1==2))){ + if((a26==1)){ + a12 = (((((a12 + -424690) % 22)+ 419) / 5) - -318); + a23 = (((((a23 % 105)+ 360) + -59592) - 115256) - -174763); + a1 = 3; + a19 = 11; + + } else{ + a12 = (((a12 + -599917) * 1) / 5); + a23 = ((((a23 % 299761)- -477) / 5) + 294507); + a1 = 3; + a19 = 13; + a13 = 1; + + } return 24; + } else if((( 441 < a12 && ((a19==13) && (((a26==1) && ((input == 3) && (a13==1))) && a23 <= 95 ))) && (a1==2))){ + a12 = (((((a12 / 5) % 108)- -234) / 5) + 287); + a23 = (((((a23 % 105)- -371) + -452614) + 750942) - 298327); + a19 = 12; + a13 = 0; + + return 26; + } else if(( 476 < a23 && ( ((395 < a12) && (441 >= a12)) && ((a19==12) && ((a13==1) && (((input == 4) && (a26==1)) && (a1==3))))))){ + a12 = (((a12 * 5) + -573680) - 22839); + a23 = (((((a23 % 105)- -351) - 66) * 10)/ 9); + a1 = 2; + a19 = 9; + a13 = 0; + + return -1; + } else if((( a12 <= 178 && (!(a13==1) && ((a26==1) && ((a1==4) && ((( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) || ((264 < a23) && (476 >= a23)) ) && (input == 6)))))) && (a19==11))){ + if((a13==1)){ + a23 = ((((((a23 + 0) % 84)+ 179) * 5) % 84)- -114); + a1 = 2; + a19 = 12; + + } else{ + a12 = (((((a12 % 299779)+ 300220) - 0) / 5) + 220798); + a23 = ((((((a23 % 105)- -370) * 5) + -72702) % 105)- -404); + a1 = 2; + a19 = 9; + + } return 26; + } else if(((a1==3) && ((a26==1) && ((( ((178 < a12) && (395 >= a12)) && ((input == 2) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 ))) && !(a13==1)) && (a19==12))))){ + a23 = ((((((a23 * 9)/ 10) % 105)+ 279) - -86075) + -86001); + a19 = 9; + a13 = 1; + + return 26; + } else if(((a26==1) && (((( ((395 < a12) && (441 >= a12)) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 6))) && (a1==3)) && (a13==1)) && (a19==11)))){ + a12 = (((a12 * -5) / 5) - 69234); + a23 = (((((a23 / 5) / 5) / 5) % 84)- -179); + a19 = 13; + a13 = 0; + + return 26; + } else if(((a1==3) && (((a13==1) && (( 441 < a12 && ((input == 5) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 ))) && (a19==10))) && (a26==1)))){ + a12 = (((a12 / -5) * 4) + -19918); + a23 = (((((a23 % 84)- -129) - 9) * 10)/ 9); + a1 = 2; + a19 = 11; + + return 26; + } else if(((a19==9) && ((((a26==1) && ((( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 3)) && ((178 < a12) && (395 >= a12)) )) && !(a13==1)) && (a1==3)))){ + a12 = ((((a12 + -412217) * 1) * 1) - -585550); + a23 = (((a23 / 5) - 175052) / 5); + a1 = 2; + a19 = 12; + + return 26; + } else if((((a1==4) && (((a19==10) && ((( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) && (input == 5)) && a12 <= 178 )) && (a26==1))) && !(a13==1))){ + if((a26==1)){ + a12 = ((((a12 % 108)- -286) + 0) - -2); + a23 = (((((a23 - -521502) % 84)- -125) + 546083) - 546091); + a1 = 2; + a13 = 1; + + } else{ + a12 = ((((((a12 % 108)- -286) - 299803) * 2) % 108)+ 290); + a23 = (((a23 - 564988) + 736934) * 3); + a1 = 3; + a19 = 11; + a13 = 1; + + } return 22; + } else if(((a13==1) && ((((a26==1) && ((input == 3) && (( a23 <= 95 && (a19==11)) || (((a19==10) && ((264 < a23) && (476 >= a23)) ) || ( 476 < a23 && (a19==10)))))) && a12 <= 178 ) && (a1==4)))){ + if((a13==1)){ + a23 = (((((a23 / 5) % 84)+ 179) - 171609) - -171609); + a1 = 2; + a19 = 13; + a13 = 0; + + } else{ + a23 = ((((a23 % 299761)+ 300237) - -2) * 1); + a1 = 3; + a19 = 11; + + } return 22; + } else if((((a19==10) && ((a26==1) && ((!(a13==1) && ((input == 6) && (a1==3))) && ((264 < a23) && (476 >= a23)) ))) && a12 <= 178 )){ + a23 = ((((a23 - -116550) % 84)+ 106) * 1); + a1 = 2; + a19 = 13; + + return -1; + } else if(((((((((a19==11) && ((95 < a23) && (264 >= a23)) ) || (((a19==10) && 476 < a23 ) || ( a23 <= 95 && (a19==11)))) && (input == 2)) && !(a13==1)) && (a26==1)) && ((395 < a12) && (441 >= a12)) ) && (a1==3))){ + a12 = ((((a12 * -5) + -197104) + 457183) * -2); + a23 = (((((a23 % 299761)- -300237) + 0) / 5) - -345912); + a19 = 11; + + return 26; + } else if(( ((178 < a12) && (395 >= a12)) && ((a26==1) && (((a19==11) && ((( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 4)) && (a1==3))) && !(a13==1))))){ + a12 = ((((a12 + 477351) / -5) - -420372) + -672400); + a23 = (((a23 / -5) / 5) / 5); + a1 = 2; + a19 = 9; + a13 = 1; + + return -1; + } else if((((((((( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) || 476 < a23 ) && (input == 4)) && (a26==1)) && (a19==13)) && (a1==3)) && 441 < a12 ) && (a13==1))){ + if( a23 <= 95 ){ + a12 = (((((a12 % 108)- -221) - -135245) - -109421) + -244614); + a23 = ((((((a23 % 299761)+ 477) * 10)/ 9) * 10)/ 9); + a19 = 9; + + } else{ + a12 = ((((a12 - 417015) + 214986) % 108)- -287); + a23 = ((((a23 + 0) % 299761)- -477) * 1); + a1 = 2; + a19 = 11; + a13 = 0; + + } return 26; + } else if((!(a13==1) && ((a26==1) && ( 441 < a12 && ((a1==2) && ((a19==13) && (( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) && (input == 2)))))))){ + a12 = ((((((a12 * 9)/ 10) % 108)+ 269) - -569690) + -569752); + a23 = ((((a23 - 164860) % 105)- -400) + 40); + a19 = 10; + + return 26; + } else if(((a26==1) && (( ((178 < a12) && (395 >= a12)) && (((( 476 < a23 && (a19==10)) || ( a23 <= 95 && (a19==11))) && (input == 3)) && !(a13==1))) && (a1==3)))){ + a12 = ((((a12 + -281598) * 10)/ -9) * 1); + a23 = ((((a23 % 84)- -179) - 546938) + 546938); + a1 = 2; + a19 = 11; + a13 = 1; + + return 24; + } else if(((!(a13==1) && ((a1==3) && ((((input == 6) && ( 476 < a23 || ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ))) && (a26==1)) && 441 < a12 ))) && (a19==10))){ + a12 = (((a12 + 0) / -5) / 5); + a23 = ((((a23 % 299761)+ 477) * 1) - -76426); + a1 = 2; + a19 = 9; + a13 = 1; + + return 22; + } else if((((a26==1) && ((((( 476 < a23 && ((395 < a12) && (441 >= a12)) ) && (a19==13)) && !(a13==1)) || ((a13==1) && (( 441 < a12 && a23 <= 95 ) && (a19==9)))) && (input == 4))) && (a1==2))){ + a12 = (((a12 - 599973) + -388) * 1); + a23 = (((((a23 + 0) * 9)/ 10) % 299761)- -300237); + a1 = 3; + a19 = 13; + a13 = 1; + + return 22; + } else if((((a1==3) && (((a26==1) && ((a19==11) && ((input == 4) && ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) )))) && (a13==1))) && a12 <= 178 )){ + a23 = (((((a23 * 5) % 105)- -320) - -32725) - 32677); + return 26; + } else if(((a19==13) && (( ((178 < a12) && (395 >= a12)) && (((a13==1) && ((input == 4) && ((264 < a23) && (476 >= a23)) )) && (a26==1))) && (a1==3)))){ + a12 = (((a12 - -370064) * -1) * 1); + a23 = (((a23 - -36726) * -5) + -363506); + a19 = 10; + a13 = 0; + + return 24; + } else if(( ((178 < a12) && (395 >= a12)) && ((a19==10) && ((a26==1) && (( 476 < a23 && ((a1==2) && (input == 5))) && !(a13==1)))))){ + a12 = ((((((a12 * 5) % 22)+ 397) / 5) * 51)/ 10); + a23 = ((((a23 / -5) - -374808) - -196599) - 781547); + a19 = 11; + a13 = 1; + + return 24; + } else if(((!(a13==1) && (( ((395 < a12) && (441 >= a12)) && (((a26==1) && (input == 4)) && (a19==11))) && 476 < a23 )) && (a1==3))){ + a12 = ((((a12 - 81445) - 34824) + 652186) * -1); + a23 = (((a23 - 600019) - 234) * 1); + a1 = 2; + a19 = 9; + a13 = 1; + + return -1; + } else if((((a19==9) && ((a13==1) && (((( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 6)) && (a26==1)) && ((395 < a12) && (441 >= a12)) ))) && (a1==3))){ + a12 = (((a12 / 5) * 5) / -5); + a23 = ((((((a23 * 9)/ 10) * 1) + -9939) * -1)/ 10); + a13 = 0; + + return 22; + } else if(((a1==2) && ((((a26==1) && ((a13==1) && ((input == 2) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )))) && (a19==12)) && ((395 < a12) && (441 >= a12)) ))){ + a12 = (((a12 - -259097) - -304072) - 904282); + a23 = ((((a23 * 9)/ 10) + 569078) / 5); + a19 = 11; + a13 = 0; + + return -1; + } else if((((((a19==11) && ((a26==1) && ((input == 2) && (a1==3)))) && ((264 < a23) && (476 >= a23)) ) && !(a13==1)) && ((395 < a12) && (441 >= a12)) )){ + a12 = (((((a12 * 5) / 5) / 5) * 23)/ 10); + a23 = ((((a23 * 10)/ 5) - -58155) / 5); + a1 = 2; + a19 = 10; + + return -1; + } else if(((( a12 <= 178 && ((a1==3) && (((( 476 < a23 && (a19==10)) || ((a19==11) && a23 <= 95 )) || ((a19==11) && ((95 < a23) && (264 >= a23)) )) && (input == 5)))) && (a26==1)) && !(a13==1))){ + a23 = (((((a23 % 299761)- -300237) + -245814) / 5) + 73491); + a19 = 13; + a13 = 1; + + return -1; + } else if(((((((((a19==10) && 476 < a23 ) || ((a19==11) && a23 <= 95 )) && (input == 5)) && !(a13==1)) && (a26==1)) && ((178 < a12) && (395 >= a12)) ) && (a1==3))){ + a12 = ((((a12 / 5) - -456945) * 10)/ 9); + a23 = (((((a23 % 105)+ 371) / 5) - -396503) + -396223); + a1 = 2; + a19 = 10; + a13 = 1; + + return 24; + } else if(((( 476 < a23 && ( a12 <= 178 && ((a1==3) && ((input == 5) && (a13==1))))) && (a26==1)) && (a19==13))){ + a12 = ((((a12 - -442209) % 108)+ 287) + -1); + a1 = 2; + a19 = 10; + a13 = 0; + + return -1; + } else if(((a1==3) && (((a19==11) && ((a13==1) && ((( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) && (input == 6)) && (a26==1)))) && a12 <= 178 ))){ + if( a12 <= 178 ){ + a12 = ((((a12 % 108)+ 287) / 5) + 231); + a23 = (((((a23 - -172032) - 204253) / 5) * -1)/ 10); + a19 = 13; + + } else{ + a23 = (((((((a23 % 84)- -148) * 10)/ 9) * 5) % 84)- -122); + a19 = 10; + a13 = 0; + + } return 22; + } else if((((a26==1) && ((a13==1) && ((a1==2) && ( ((395 < a12) && (441 >= a12)) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 5)))))) && (a19==9))){ + a12 = ((((a12 * -5) / 5) - -550668) + -1092821); + a23 = (((((a23 + 0) % 299761)- -300237) - 168389) + 168391); + a1 = 3; + a19 = 12; + + return 22; + } else if((!(a13==1) && ((((a1==2) && ((input == 6) && ((((a19==12) && 476 < a23 ) || ((a19==13) && a23 <= 95 )) || ((a19==13) && ((95 < a23) && (264 >= a23)) )))) && (a26==1)) && ((178 < a12) && (395 >= a12)) ))){ + a12 = ((((a12 * 10)/ 4) - -58344) * 5); + a23 = ((((a23 % 300047)+ -299951) + 0) - 2); + a19 = 11; + + return 22; + } else if(((((input == 3) && ((((a19==13) && ( 476 < a23 && ((395 < a12) && (441 >= a12)) )) && !(a13==1)) || ((a13==1) && (( a23 <= 95 && 441 < a12 ) && (a19==9))))) && (a1==2)) && (a26==1))){ + a12 = ((((a12 / 5) - 358871) % 108)+ 378); + a23 = (((((a23 - 0) * 9)/ 10) % 300047)+ -299951); + a1 = 3; + a19 = 13; + a13 = 0; + + return 22; + } else if((((a19==11) && (((( ((395 < a12) && (441 >= a12)) && (input == 5)) && (a26==1)) && !(a13==1)) && (a1==3))) && ((264 < a23) && (476 >= a23)) )){ + a12 = ((((a12 - -270511) + -638663) - -479143) + -111128); + a23 = (((a23 + 363171) * 1) - -215548); + a1 = 2; + a19 = 10; + + return -1; + } else if(((a26==1) && (((a19==11) && ((a13==1) && (((input == 2) && (a1==2)) && a23 <= 95 ))) && ((395 < a12) && (441 >= a12)) ))){ + a12 = ((((a12 - 100562) + -14579) * 10)/ 9); + a19 = 9; + + return -1; + } else if(((((a26==1) && ( 441 < a12 && ((( 476 < a23 || ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) )) && (input == 5)) && (a1==3)))) && (a19==10)) && !(a13==1))){ + a23 = ((((((a23 * 9)/ 10) % 105)- -309) + -103272) - -103316); + a19 = 13; + a13 = 1; + + return 24; + } else if(((a1==3) && ((((a19==10) && ((( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 5)) && a12 <= 178 )) && (a26==1)) && (a13==1)))){ + a23 = (((((a23 / 5) * 4) - -115592) % 105)- -370); + a13 = 0; + + return 22; + } else if(((((a13==1) && (((a19==13) && ((input == 3) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 ))) && a12 <= 178 )) && (a26==1)) && (a1==4))){ + a23 = (((a23 - 0) / 5) + 316151); + a1 = 2; + a19 = 10; + + return -1; + } else if(((a13==1) && (((a19==11) && (((a26==1) && ((input == 2) && ((95 < a23) && (264 >= a23)) )) && ((395 < a12) && (441 >= a12)) )) && (a1==2)))){ + a12 = (((a12 / -5) / 5) * 5); + a1 = 3; + a19 = 13; + a13 = 0; + + return 24; + } else if((((a26==1) && ((a13==1) && ((((input == 5) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )) && (a1==3)) && (a19==9)))) && ((395 < a12) && (441 >= a12)) )){ + a12 = ((((a12 * 5) * 5) * 5) * -5); + a23 = ((((a23 % 300047)- 299951) - 2) * 1); + a1 = 2; + + return -1; + } else if(( a12 <= 178 && (((a1==4) && ((((input == 5) && (a26==1)) && !(a13==1)) && (a19==10))) && 476 < a23 ))){ + + a1 = 2; + a19 = 9; + a13 = 1; + + return -1; + } else if(((a26==1) && (((!(a13==1) && (((((a19==9) && 476 < a23 ) || ( a23 <= 95 && (a19==10))) || ( ((95 < a23) && (264 >= a23)) && (a19==10))) && (input == 5))) && ((178 < a12) && (395 >= a12)) ) && (a1==2)))){ + a12 = (((a12 / -5) + -591337) + -5044); + a23 = ((((a23 % 300047)+ -299951) - 1) / 5); + a19 = 9; + a13 = 1; + + return -1; + } else if(((a19==11) && ((a1==4) && (((((input == 5) && ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) )) && a12 <= 178 ) && (a26==1)) && (a13==1))))){ + a23 = ((((a23 / 5) - 82514) / 5) - -16680); + return 24; + } else if(( ((395 < a12) && (441 >= a12)) && (((a1==3) && (((input == 6) && (( a23 <= 95 && (a19==10)) || (((a19==9) && ((264 < a23) && (476 >= a23)) ) || ((a19==9) && 476 < a23 )))) && (a26==1))) && (a13==1)))){ + a12 = (((a12 + 30897) / -5) * 5); + a23 = ((((a23 % 105)+ 370) - 1) - -2); + a19 = 12; + a13 = 0; + + return 26; + } else if(((a1==4) && ( a12 <= 178 && ((((a26==1) && (( 476 < a23 || ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) )) && (input == 4))) && (a19==12)) && (a13==1))))){ + if((a19==9)){ + a23 = ((((a23 + 0) + -77052) % 105)+ 369); + a1 = 2; + + } else{ + a23 = ((((a23 - 326601) % 105)+ 369) - 0); + a1 = 2; + a19 = 11; + a13 = 0; + + } return 26; + } else if((( a12 <= 178 && (!(a13==1) && ((((input == 4) && ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) )) && (a1==4)) && (a26==1)))) && (a19==10))){ + if( a12 <= 178 ){ + a23 = (((a23 * -5) / 5) + -134733); + a1 = 2; + a19 = 9; + a13 = 1; + + } else{ + a23 = (((((a23 * 5) % 84)+ 129) - 179468) + 179469); + a1 = 2; + a19 = 9; + + } return 26; + } else if((( a12 <= 178 && ((a1==4) && ((a26==1) && ((a19==9) && ((input == 2) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )))))) && !(a13==1))){ + if((a13==1)){ + a23 = ((((a23 / 5) - 397697) % 105)- -462); + a1 = 2; + a19 = 12; + a13 = 1; + + } else{ + a23 = (((((a23 - -152095) + 369107) - 81644) % 84)+ 180); + a1 = 3; + a19 = 11; + + } return 22; + } else if((((a26==1) && ((((((a19==12) && 476 < a23 ) || ( a23 <= 95 && (a19==13))) && (input == 6)) && 441 < a12 ) && (a1==3))) && !(a13==1))){ + if((a19==10)){ + a12 = ((((a12 / 5) % 108)- -239) - 10); + a23 = ((((a23 - 0) + 0) % 299761)- -300237); + a19 = 13; + a13 = 1; + + } else{ + a12 = ((((((a12 / 5) % 108)+ 253) / 5) * 36)/ 10); + a23 = (((((a23 % 84)- -179) * 5) % 84)+ 112); + a1 = 2; + a19 = 12; + + } return -1; + } else if((((((a19==12) && ( ((178 < a12) && (395 >= a12)) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 6)))) && (a26==1)) && (a1==3)) && (a13==1))){ + a12 = (((a12 - 5285) / 5) * 5); + a23 = ((((a23 % 300047)+ -299951) - 3) + 0); + a1 = 2; + a19 = 9; + + return -1; + } else if(((a1==2) && (((( ((178 < a12) && (395 >= a12)) && ((input == 3) && ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ))) && (a19==9)) && !(a13==1)) && (a26==1)))){ + a23 = ((((a23 % 105)+ 337) - 296427) - -296439); + a19 = 10; + + return 26; + } else if((((a19==13) && ((a26==1) && ((((a13==1) && (input == 6)) && ((95 < a23) && (264 >= a23)) ) && a12 <= 178 ))) && (a1==4))){ + a23 = (((a23 / 5) / -5) - 501845); + a1 = 2; + a19 = 10; + a13 = 0; + + return 24; + } else if(((a1==2) && ( ((178 < a12) && (395 >= a12)) && (((a26==1) && (((input == 4) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )) && !(a13==1))) && (a19==12))))){ + a23 = (((((a23 % 84)- -180) * 5) % 84)+ 116); + a1 = 3; + a19 = 11; + + return 24; + } else if(((a19==10) && ( ((395 < a12) && (441 >= a12)) && ((a1==3) && ((a13==1) && (( ((95 < a23) && (264 >= a23)) && (input == 5)) && (a26==1))))))){ + a12 = (((a12 + -304878) - 18077) - 210169); + a23 = ((((a23 + -171270) * 3) * 10)/ 9); + a1 = 2; + a19 = 9; + + return -1; + } else if(((( ((395 < a12) && (441 >= a12)) && ( ((95 < a23) && (264 >= a23)) && (((a26==1) && (input == 6)) && (a1==3)))) && (a13==1)) && (a19==10))){ + a12 = (((a12 * -5) * 5) * 5); + a23 = (((a23 / 5) + 519854) * 1); + a19 = 9; + a13 = 0; + + return 22; + } else if(((!(a13==1) && ((a1==4) && ( a12 <= 178 && (((input == 3) && ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) )) && (a26==1))))) && (a19==10))){ + if( 441 < a12 ){ + a12 = ((((((a12 * 9)/ 10) - 38397) - 9958) % 108)+ 301); + a23 = (((((a23 * 5) / 5) - 591029) * -1)/ 10); + a1 = 2; + a19 = 13; + a13 = 1; + + } else{ + a12 = (((((a12 + 126187) % 108)- -286) + -423088) + 423089); + a23 = (((((a23 % 84)+ 178) - 27) * 9)/ 10); + a1 = 3; + a19 = 13; + + } return -1; + } else if(((a26==1) && ((((input == 6) && ((((a19==9) && ((95 < a23) && (264 >= a23)) ) && !(a13==1)) || ((((a19==13) && 476 < a23 ) && (a13==1)) || (!(a13==1) && ( a23 <= 95 && (a19==9)))))) && (a1==3)) && ((178 < a12) && (395 >= a12)) ))){ + a12 = (((((a12 % 22)+ 409) / 5) / 5) + 422); + a23 = (((((a23 * 9)/ 10) % 299761)- -300237) - -1); + a1 = 2; + a19 = 10; + a13 = 1; + + return 26; + } else if(((a19==12) && ( ((395 < a12) && (441 >= a12)) && (((a1==2) && ((( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 3)) && !(a13==1))) && (a26==1))))){ + a12 = ((((((a12 - 135) * 10)/ 9) / 5) * 39)/ 10); + a23 = ((((a23 % 105)+ 370) * 1) + -1); + a1 = 3; + a19 = 9; + a13 = 1; + + return 26; + } else if((((a13==1) && ( ((395 < a12) && (441 >= a12)) && (((a19==9) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 3))) && (a1==2)))) && (a26==1))){ + a12 = (((a12 - 377641) - 98286) + -32940); + a23 = (((((a23 + 312) % 105)+ 371) / 5) - -349); + a1 = 3; + a19 = 11; + + return 26; + } else if((( ((178 < a12) && (395 >= a12)) && ((!(a13==1) && (((( 476 < a23 && (a19==9)) || ((a19==10) && a23 <= 95 )) || ( ((95 < a23) && (264 >= a23)) && (a19==10))) && (input == 4))) && (a1==2))) && (a26==1))){ + if((a1==3)){ + a23 = (((((a23 - 0) % 299761)- -300237) / 5) - -371569); + a1 = 3; + a19 = 10; + + } else{ + a23 = ((((a23 % 300047)+ -299951) - 3) + 0); + a19 = 12; + + } return 24; + } else if((!(a13==1) && (((((((a19==11) && ((95 < a23) && (264 >= a23)) ) || (( 476 < a23 && (a19==10)) || ((a19==11) && a23 <= 95 ))) && (input == 4)) && (a1==3)) && a12 <= 178 ) && (a26==1)))){ + a12 = ((((a12 - -158602) - -33543) % 108)- -287); + a23 = ((((a23 % 299761)+ 300237) - 0) + 0); + a1 = 2; + a19 = 10; + + return -1; + } else if(((((!(a13==1) && ((a26==1) && ((input == 6) && ( ((264 < a23) && (476 >= a23)) || ( a23 <= 95 || ((95 < a23) && (264 >= a23)) ))))) && (a1==3)) && ((395 < a12) && (441 >= a12)) ) && (a19==12))){ + a12 = ((((a12 / -5) / 5) + 107071) * -5); + a23 = (((((a23 * 9)/ 10) / 5) * 5) + 578611); + a19 = 9; + + return 22; + } else if(( a12 <= 178 && ((a19==10) && (((a26==1) && (((input == 2) && ((264 < a23) && (476 >= a23)) ) && (a1==3))) && !(a13==1))))){ + a23 = ((((((a23 % 84)+ 105) - 3) * 5) % 84)- -162); + a19 = 9; + + return -1; + } else if((((((a1==2) && ((a19==9) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 6)))) && (a26==1)) && ((395 < a12) && (441 >= a12)) ) && (a13==1))){ + a12 = (((a12 * -5) - 593561) + -2999); + a23 = (((((a23 % 300047)+ -299951) - 3) - -440481) + -440480); + a1 = 3; + a19 = 12; + + return 24; + } else if((((a26==1) && ((a13==1) && ( 441 < a12 && ((a19==13) && ((input == 5) && ( 476 < a23 || ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ))))))) && (a1==3))){ + a12 = ((((a12 * 9)/ 10) - 586204) + -621); + a23 = (((((a23 / 5) - 64181) + -116084) % 105)+ 394); + a19 = 11; + a13 = 0; + + return 26; + } else if(((( 441 < a12 && ((a1==3) && ((input == 5) && (( ((95 < a23) && (264 >= a23)) && (a19==10)) || (( 476 < a23 && (a19==9)) || ( a23 <= 95 && (a19==10))))))) && (a13==1)) && (a26==1))){ + if((a26==1)){ + a12 = (((((a12 % 108)+ 249) - 395473) * 1) - -395477); + a23 = ((((a23 / 5) % 105)+ 369) + 0); + a19 = 13; + + } else{ + a23 = ((((((a23 % 105)- -371) + -2) * 5) % 105)+ 332); + a19 = 10; + + } return -1; + } else if(((a1==2) && ((((((input == 4) && ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) )) && !(a13==1)) && (a26==1)) && 441 < a12 ) && (a19==13)))){ + a12 = (((a12 + -135408) * 1) - 464795); + a23 = ((((a23 / 5) + 419584) + 78456) + -497893); + a1 = 3; + a19 = 12; + + return 22; + } else if((((a13==1) && ( ((395 < a12) && (441 >= a12)) && ((a26==1) && ( ((264 < a23) && (476 >= a23)) && ((input == 3) && (a19==11)))))) && (a1==3))){ + + a13 = 0; + + return -1; + } else if((((((((input == 2) && (a13==1)) && ((264 < a23) && (476 >= a23)) ) && ((395 < a12) && (441 >= a12)) ) && (a1==3)) && (a26==1)) && (a19==11))){ + a12 = (((a12 - 598334) - 912) + -1057); + a19 = 9; + a13 = 0; + + return -1; + } else if(((a19==13) && ((a1==3) && ( ((178 < a12) && (395 >= a12)) && ( ((264 < a23) && (476 >= a23)) && ((a13==1) && ((input == 6) && (a26==1)))))))){ + if((a13==1)){ + a12 = ((((((a12 % 22)+ 415) + 5) / 5) * 48)/ 10); + a23 = (((((a23 * 10)/ 5) - -410776) * 10)/ 9); + a19 = 10; + + } else{ + a23 = ((((((a23 % 84)- -163) * 5) - -275910) % 84)- -165); + a19 = 10; + + } return 26; + } else if(( ((178 < a12) && (395 >= a12)) && (((a1==2) && ((a26==1) && ((input == 2) && ((((a19==9) && 476 < a23 ) || ((a19==10) && a23 <= 95 )) || ( ((95 < a23) && (264 >= a23)) && (a19==10)))))) && !(a13==1)))){ + a23 = (((((a23 / 5) % 105)- -370) - -428759) - 428759); + a19 = 11; + + return 24; + } else if(((!(a13==1) && ((a19==10) && ((a26==1) && ( a12 <= 178 && ((a1==4) && (input == 2)))))) && 476 < a23 )){ + a12 = ((((a12 / 5) / 5) % 108)- -286); + a23 = (((((a23 % 84)- -131) - 7) / 5) - -116); + a1 = 2; + a19 = 11; + a13 = 1; + + return 22; + } else if(((a19==9) && ((a13==1) && (((((input == 5) && a12 <= 178 ) && (a1==4)) && a23 <= 95 ) && (a26==1))))){ + a23 = ((((a23 % 299761)- -300237) + 2) * 1); + a1 = 2; + a19 = 13; + a13 = 0; + + return -1; + } else if((((a13==1) && ((a1==4) && ((((( ((264 < a23) && (476 >= a23)) && (a19==9)) || ((a19==9) && 476 < a23 )) || ((a19==10) && a23 <= 95 )) && (input == 2)) && a12 <= 178 ))) && (a26==1))){ + a12 = ((((a12 - 0) / 5) % 108)+ 286); + a23 = ((((((a23 % 105)- -370) + 1) * 5) % 105)- -320); + a1 = 2; + a19 = 9; + + return -1; + } else if((( ((395 < a12) && (441 >= a12)) && (( 476 < a23 && ((!(a13==1) && (input == 5)) && (a19==11))) && (a26==1))) && (a1==3))){ + a12 = ((((a12 + -213871) / 5) + 351495) * -1); + a23 = (((a23 + -600313) * 1) / 5); + a1 = 2; + a19 = 9; + a13 = 1; + + return -1; + } else if(( 441 < a12 && ((a13==1) && ((((a1==2) && ((input == 4) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) || ((264 < a23) && (476 >= a23)) ))) && (a19==12)) && (a26==1))))){ + if((a19==9)){ + a12 = (((((a12 % 108)+ 216) * 5) % 108)- -282); + a23 = (((a23 / 5) + 282686) * 2); + a1 = 3; + + } else{ + a12 = (((a12 + -600232) * 1) / 5); + a23 = ((((a23 + 400798) - -72284) % 105)- -371); + a1 = 3; + a19 = 10; + a13 = 0; + + } return 26; + } else if((!(a13==1) && ((a19==12) && ((a26==1) && ((((input == 5) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )) && (a1==3)) && ((178 < a12) && (395 >= a12)) ))))){ + a12 = ((((a12 / 5) * -5) + 469845) + -701314); + a23 = ((((a23 % 299761)+ 300237) + 1) * 1); + return 24; + } else if(((a26==1) && (((((( 476 < a23 || ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) )) && (input == 6)) && (a13==1)) && (a19==9)) && a12 <= 178 ) && (a1==3)))){ + a12 = ((((a12 % 22)+ 418) / 5) - -339); + a23 = ((((a23 % 105)+ 309) + 58) - -2); + a19 = 11; + + return 26; + } else if(((a1==2) && ((( 441 < a12 && (( ((95 < a23) && (264 >= a23)) && (input == 3)) && (a19==11))) && (a13==1)) && (a26==1)))){ + a12 = ((((a12 - 0) - 0) % 108)+ 181); + a23 = (((((a23 / 5) * 252)/ 10) + -82567) + 602618); + a19 = 9; + a13 = 0; + + return 26; + } else if(((((a1==2) && ((a26==1) && (((input == 2) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )) && (a19==9)))) && (a13==1)) && ((395 < a12) && (441 >= a12)) )){ + a12 = (((a12 / -5) - 453318) * 1); + a23 = ((((a23 - 0) % 300047)+ -299951) - 3); + a1 = 3; + a19 = 10; + + return 26; + } else if((((a1==2) && (((a26==1) && ((a13==1) && ((( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) || ((264 < a23) && (476 >= a23)) ) && (input == 3)))) && (a19==13))) && ((395 < a12) && (441 >= a12)) )){ + if((a19==12)){ + a12 = ((((a12 + -167) * 5) % 108)- -209); + a23 = ((((a23 % 300047)- 299951) / 5) - 41999); + a1 = 3; + + } else{ + a12 = ((((a12 * 5) * 5) % 108)+ 190); + a23 = ((((a23 / 5) - 250149) + 554155) + -350086); + a19 = 11; + a13 = 0; + + } return 22; + } else if(((a1==2) && ((((((((a19==9) && ((264 < a23) && (476 >= a23)) ) || ((a19==9) && 476 < a23 )) || ((a19==10) && a23 <= 95 )) && (input == 6)) && ((395 < a12) && (441 >= a12)) ) && (a26==1)) && (a13==1)))){ + a12 = ((((a12 + -483925) * 10)/ 9) + 108128); + a23 = (((a23 / 5) / 5) + -515096); + a19 = 9; + + return -1; + } else if(((a19==11) && (((a26==1) && (((( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 3)) && 441 < a12 ) && (a1==2))) && (a13==1)))){ + a12 = (((((a12 % 108)- -187) + 289200) + -744443) + 455331); + a23 = ((((a23 / 5) / -5) * 10)/ 9); + a1 = 3; + + return 26; + } else if(((a26==1) && (( ((395 < a12) && (441 >= a12)) && ((((input == 3) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 )) && !(a13==1)) && (a19==13))) && (a1==3)))){ + a23 = ((((((a23 % 105)+ 332) * 9)/ 10) - -197184) - 197100); + return -1; + } else if((((a26==1) && ((( ((395 < a12) && (441 >= a12)) && ((( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) || ((264 < a23) && (476 >= a23)) ) && (input == 3))) && !(a13==1)) && (a19==12))) && (a1==3))){ + a12 = ((((a12 / -5) + -206557) * 10)/ 9); + a23 = ((((a23 % 300047)+ -299951) * 1) - 2); + a19 = 13; + a13 = 1; + + return 24; + } else if((((a1==3) && (( a12 <= 178 && (( ((95 < a23) && (264 >= a23)) && (input == 6)) && (a26==1))) && (a19==10))) && !(a13==1))){ + a12 = ((((((a12 % 22)- -417) - 0) * 5) % 22)- -402); + a1 = 2; + a13 = 1; + + return 26; + } else if((((((((((a19==12) && 476 < a23 ) || ((a19==13) && a23 <= 95 )) || ((a19==13) && ((95 < a23) && (264 >= a23)) )) && (input == 3)) && (a26==1)) && ((178 < a12) && (395 >= a12)) ) && !(a13==1)) && (a1==2))){ + a12 = (((a12 + 320350) / 5) + 326170); + a23 = ((((((a23 - 0) + 0) * 9)/ 10) % 105)- -370); + a19 = 11; + + return 26; + } else if((((((a26==1) && ( 441 < a12 && ( a23 <= 95 && (input == 4)))) && (a13==1)) && (a1==3)) && (a19==13))){ + + return -1; + } else if(( ((395 < a12) && (441 >= a12)) && ((((((input == 5) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 )) && (a26==1)) && (a1==2)) && !(a13==1)) && (a19==11)))){ + a12 = (((a12 - 82) + -37) - 6); + a23 = ((((a23 - 600192) / 5) * 10)/ 9); + a1 = 3; + a19 = 10; + a13 = 1; + + return 24; + } else if(( a12 <= 178 && (((a19==12) && (((a26==1) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 6))) && (a1==3))) && !(a13==1)))){ + if((a13==1)){ + a12 = (((((a12 * 9)/ 10) % 22)- -417) - 0); + a23 = (((((a23 + 573107) / 5) + -23747) % 105)+ 369); + a19 = 11; + + } else{ + a23 = (((((a23 + 0) % 299761)- -300237) + -207200) + 207203); + a19 = 13; + a13 = 1; + + } return -1; + } else if(((a13==1) && ((a1==2) && ((a19==13) && ((((input == 5) && (( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) || 476 < a23 )) && 441 < a12 ) && (a26==1)))))){ + a23 = (((((((a23 % 105)- -338) * 9)/ 10) / 5) * 45)/ 10); + return 24; + } else if(((!(a13==1) && (((((( ((264 < a23) && (476 >= a23)) && (a19==9)) || ((a19==9) && 476 < a23 )) || ((a19==10) && a23 <= 95 )) && (input == 6)) && (a26==1)) && ((395 < a12) && (441 >= a12)) )) && (a1==2))){ + a12 = (((a12 * 5) + -420474) - 58867); + a23 = ((((a23 / 5) - 168998) * 10)/ 9); + a19 = 9; + a13 = 1; + + return -1; + } else if((((a19==13) && ((a26==1) && ((!(a13==1) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 6))) && ((178 < a12) && (395 >= a12)) ))) && (a1==3))){ + a12 = ((((a12 % 22)- -403) * 1) - -15); + a23 = (((((a23 + 0) % 105)- -371) / 5) + 356); + a19 = 11; + + return -1; + } else if(((((a19==11) && ((((input == 5) && ( 476 < a23 || ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ))) && !(a13==1)) && (a26==1))) && 441 < a12 ) && (a1==3))){ + if((a13==1)){ + a12 = ((((a12 % 108)- -182) / 5) * 5); + a23 = (((((a23 % 105)+ 348) / 5) + -4437) + 4811); + a1 = 2; + a19 = 13; + a13 = 1; + + } else{ + a12 = (((((a12 / 5) + 213414) - -146442) % 108)- -282); + a23 = (((((a23 % 84)+ 134) * 5) % 84)- -111); + a1 = 2; + a13 = 1; + + } return -1; + } else if((!(a13==1) && ((a1==2) && ((a19==13) && ((((input == 4) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 )) && (a26==1)) && ((178 < a12) && (395 >= a12)) ))))){ + a12 = (((a12 - -89018) * 5) * 1); + a23 = (((a23 - 261673) - -252992) + -591496); + return 26; + } else if((( ((395 < a12) && (441 >= a12)) && ((a19==10) && ((a26==1) && ( a23 <= 95 && ((input == 4) && !(a13==1)))))) && (a1==3))){ + a12 = ((((a12 / 5) * -5) * 10)/ 9); + a1 = 2; + a19 = 9; + a13 = 1; + + return -1; + } else if((( ((395 < a12) && (441 >= a12)) && ((a19==13) && ((((input == 4) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) || ((264 < a23) && (476 >= a23)) )) && (a13==1)) && (a26==1)))) && (a1==2))){ + a12 = (((a12 / -5) - 304000) + -231786); + a23 = (((a23 / 5) / 5) - 158003); + a19 = 10; + a13 = 0; + + return -1; + } else if((((a1==3) && ((a26==1) && ((a19==10) && ((a13==1) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 3)))))) && a12 <= 178 )){ + a23 = ((((a23 % 300047)+ -299951) + 0) / 5); + a19 = 13; + a13 = 0; + + return 22; + } else if((!(a13==1) && ((a26==1) && ((a1==2) && ((a19==12) && ( ((395 < a12) && (441 >= a12)) && ((input == 6) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )))))))){ + if((a1==6)){ + a23 = (((((a23 / 5) % 105)- -369) - 283191) - -283192); + a1 = 3; + a19 = 11; + + } else{ + a12 = ((((a12 + -316263) / 5) * 10)/ 9); + a23 = ((((a23 * 9)/ 10) - -591491) + 7160); + a1 = 3; + a19 = 13; + a13 = 1; + + } return 22; + } else if((!(a13==1) && (( ((264 < a23) && (476 >= a23)) && ((a1==3) && (((input == 2) && (a26==1)) && (a19==12)))) && 441 < a12 ))){ + a12 = (((((a12 % 22)+ 401) - 2) / 5) + 326); + a23 = (((a23 * -5) + -119646) - 462786); + a1 = 2; + a13 = 1; + + return 26; + } else if((((a13==1) && ( ((395 < a12) && (441 >= a12)) && ((a26==1) && (((input == 6) && ( 476 < a23 || ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ))) && (a1==2))))) && (a19==10))){ + a12 = (((a12 + -50210) * 5) * 2); + a23 = (((((a23 % 84)- -125) * 5) % 84)- -168); + a1 = 3; + a13 = 0; + + return 24; + } else if((((((((input == 2) && ( 476 < a23 || ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ))) && ((395 < a12) && (441 >= a12)) ) && (a1==2)) && (a26==1)) && (a19==10)) && (a13==1))){ + a12 = (((a12 - -133537) * -4) * 1); + a23 = ((((a23 - 474853) + -116856) * 1) + -8348); + a19 = 9; + + return -1; + } else if(( ((95 < a23) && (264 >= a23)) && ((a13==1) && (((a1==4) && ( a12 <= 178 && ((a26==1) && (input == 3)))) && (a19==10))))){ + a12 = (((((a12 % 108)+ 287) + -327785) + -185045) + 512830); + a1 = 2; + + return 26; + } else if(((a26==1) && ( 441 < a12 && ((a19==12) && ((a13==1) && ( 476 < a23 && ((a1==2) && (input == 4)))))))){ + a12 = (((((a12 * 9)/ 10) - -28155) * 1) * -1); + a1 = 3; + a19 = 11; + + return 22; + } else if((( a12 <= 178 && ((a26==1) && ((a13==1) && (((input == 6) && (( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) || 476 < a23 )) && (a1==4))))) && (a19==12))){ + if((a13==1)){ + a12 = ((((a12 % 108)- -287) - 1) + 0); + a23 = ((((a23 % 299761)+ 477) - -75632) + 163311); + a1 = 3; + a19 = 13; + a13 = 0; + + } else{ + a23 = ((((a23 % 299761)+ 477) - 249411) - -494832); + a1 = 2; + a19 = 9; + a13 = 0; + + } return 24; + } else if(( ((395 < a12) && (441 >= a12)) && ((a13==1) && (((a1==3) && (((input == 5) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )) && (a26==1))) && (a19==11))))){ + a12 = (((a12 - -291537) - -222433) - 928387); + a23 = (((((a23 % 105)- -370) / 5) / 5) - -432); + a19 = 10; + a13 = 0; + + return 22; + } else if((((a13==1) && ((a1==3) && ((a26==1) && ((input == 3) && ((( 476 < a23 && (a19==11)) || ( a23 <= 95 && (a19==12))) || ( ((95 < a23) && (264 >= a23)) && (a19==12))))))) && 441 < a12 )){ + if((a1==5)){ + a12 = ((((a12 / 5) - -363444) % 108)- -205); + a23 = ((((a23 % 105)- -370) / 5) + 294); + a1 = 2; + a19 = 9; + + } else{ + a12 = (((a12 + -599939) + -64) - 385); + a23 = (((((a23 % 299761)- -300237) - 0) + -412067) - -412069); + a19 = 12; + + } return -1; + } else if((((( ((95 < a23) && (264 >= a23)) && (!(a13==1) && ((a1==2) && (input == 5)))) && (a26==1)) && (a19==11)) && ((178 < a12) && (395 >= a12)) )){ + if( a12 <= 178 ){ + a23 = (((((a23 - -183) - -7) * 5) % 105)+ 301); + a1 = 3; + a19 = 12; + + } else{ + a12 = (((a12 + -171433) / 5) - -34646); + a23 = ((((a23 - -506939) / 5) / 5) - 412396); + } return 24; + } else if(( a12 <= 178 && (((((a1==4) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 6))) && (a19==9)) && !(a13==1)) && (a26==1)))){ + if((a1==5)){ + a23 = ((((a23 / 5) + -379293) * 10)/ 9); + a1 = 2; + a13 = 1; + + } else{ + a12 = (((((a12 % 108)- -286) / 5) + -514430) + 514720); + a23 = ((((a23 % 300047)- 299951) + -3) + 0); + a1 = 2; + a13 = 1; + + } return -1; + } else if(((a1==3) && ((((a26==1) && (((input == 6) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) || ((264 < a23) && (476 >= a23)) )) && 441 < a12 )) && (a13==1)) && (a19==9)))){ + if((a13==1)){ + a12 = ((((((a12 - 0) - 0) * 9)/ 10) % 108)+ 187); + a23 = ((((a23 % 300047)- 299951) + -3) / 5); + a1 = 2; + + } else{ + a12 = (((a12 - 0) + -600207) - 45); + a23 = ((((a23 + 415434) / 5) % 84)- -179); + a1 = 2; + a19 = 10; + a13 = 0; + + } return 24; + } else if((( ((395 < a12) && (441 >= a12)) && ((a26==1) && (!(a13==1) && ((((a19==13) && ((95 < a23) && (264 >= a23)) ) || (( 476 < a23 && (a19==12)) || ( a23 <= 95 && (a19==13)))) && (input == 3))))) && (a1==3))){ + a12 = (((a12 - 431455) + -126398) + -29675); + a23 = ((((a23 - 0) % 299761)- -300237) - -2); + a19 = 12; + a13 = 1; + + return 26; + } else if(((a1==4) && ( a12 <= 178 && ((a13==1) && ((a26==1) && (((input == 3) && ( 476 < a23 || ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ))) && (a19==12))))))){ + a12 = ((((a12 % 22)+ 419) + 1) * 1); + a23 = ((((a23 % 105)+ 349) - 342778) - -342729); + a1 = 2; + a19 = 11; + + return 22; + } else if((!(a13==1) && ((a1==2) && ( ((178 < a12) && (395 >= a12)) && ((a26==1) && ((( ((95 < a23) && (264 >= a23)) && (a19==10)) || (((a19==9) && 476 < a23 ) || ( a23 <= 95 && (a19==10)))) && (input == 6))))))){ + a23 = (((((a23 * 9)/ 10) / 5) % 84)+ 180); + a1 = 3; + a19 = 13; + a13 = 1; + + return 26; + } else if(( 476 < a23 && (((a19==12) && ((a26==1) && ((a1==2) && ( 441 < a12 && (input == 2))))) && (a13==1)))){ + a12 = ((((a12 % 22)- -407) - 8) - 1); + a23 = ((((((a23 - 0) * 9)/ 10) + -410669) % 105)- -369); + a1 = 3; + a19 = 11; + a13 = 0; + + return 26; + } else if(((a1==3) && ((a13==1) && ( ((395 < a12) && (441 >= a12)) && (((input == 3) && (((a19==10) && a23 <= 95 ) || (((a19==9) && ((264 < a23) && (476 >= a23)) ) || ((a19==9) && 476 < a23 )))) && (a26==1)))))){ + a12 = (((a12 - -303918) * 1) - 304003); + a23 = ((((a23 - 0) / 5) % 105)+ 369); + a19 = 10; + + return 26; + } else if(( a12 <= 178 && ((a19==12) && (!(a13==1) && (((a1==3) && ((input == 2) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) ))) && (a26==1)))))){ + a12 = ((((a12 % 22)+ 418) + 1) - -1); + a23 = ((((a23 % 300047)+ -299951) - 2) + 0); + a1 = 2; + a19 = 11; + a13 = 1; + + return 24; + } else if(((a13==1) && ((a26==1) && ((a1==3) && ( a12 <= 178 && ((( ((95 < a23) && (264 >= a23)) && (a19==12)) || (((a19==11) && 476 < a23 ) || ( a23 <= 95 && (a19==12)))) && (input == 6))))))){ + if((a19==12)){ + a12 = ((((((a12 + 0) % 22)+ 417) * 5) % 22)+ 396); + a23 = (((((a23 - 0) + 0) - 0) % 105)- -371); + a19 = 9; + a13 = 0; + + } else{ + a23 = (((((a23 * 9)/ 10) % 300047)- 299951) / 5); + a19 = 12; + + } return 24; + } else if((!(a13==1) && (( ((264 < a23) && (476 >= a23)) && ((a19==12) && ((a26==1) && ( 441 < a12 && (input == 6))))) && (a1==3)))){ + if((a1==6)){ + a12 = ((((((a12 - 0) * 9)/ 10) * 1) % 108)+ 227); + a1 = 2; + a19 = 11; + a13 = 1; + + } else{ + a12 = ((((a12 % 108)+ 283) - 13) + -23); + a1 = 2; + a19 = 13; + a13 = 1; + + } return 26; + } else if(((a26==1) && ( ((95 < a23) && (264 >= a23)) && ((((a13==1) && ((a1==2) && (input == 4))) && 441 < a12 ) && (a19==11))))){ + + return 26; + } else if(((((((( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 2)) && (a26==1)) && (a1==3)) && !(a13==1)) && 441 < a12 ) && (a19==9))){ + if((a13==1)){ + a23 = (((((a23 / 5) + 460814) + 103721) % 105)+ 327); + a19 = 10; + a13 = 1; + + } else{ + a12 = ((((a12 * 9)/ 10) / 5) + -355945); + a23 = ((((a23 * 9)/ 10) - 13928) / 5); + a1 = 4; + a19 = 11; + + } return -1; + } else if(( a12 <= 178 && ((((a13==1) && ((input == 2) && ((((a19==10) && ((264 < a23) && (476 >= a23)) ) || ( 476 < a23 && (a19==10))) || ( a23 <= 95 && (a19==11))))) && (a26==1)) && (a1==4)))){ + if( ((395 < a12) && (441 >= a12)) ){ + a23 = ((((((a23 * 9)/ 10) / 5) * 5) % 300047)- 299951); + a1 = 3; + a19 = 10; + + } else{ + a23 = ((((((a23 % 84)+ 180) * 5) + -171592) % 84)+ 181); + a1 = 2; + a19 = 11; + + } return 24; + } else if(((((((a26==1) && ((input == 3) && ( ((264 < a23) && (476 >= a23)) || ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )))) && (a1==3)) && !(a13==1)) && ((178 < a12) && (395 >= a12)) ) && (a19==10))){ + a12 = (((a12 - 137696) + -299750) + -96299); + a23 = ((((a23 - -350794) % 105)- -369) + 0); + a19 = 12; + a13 = 1; + + return 26; + } else if(((((a1==2) && (((a26==1) && ((input == 3) && !(a13==1))) && (a19==13))) && ((395 < a12) && (441 >= a12)) ) && ((264 < a23) && (476 >= a23)) )){ + a12 = (((a12 - 580946) - 7361) + -1187); + a23 = ((((a23 - -430669) - -59531) * 10)/ 9); + a1 = 3; + a19 = 12; + a13 = 1; + + return 24; + } else if(((a19==10) && ((a1==3) && (( a12 <= 178 && (( ((95 < a23) && (264 >= a23)) && (input == 3)) && (a26==1))) && !(a13==1))))){ + a23 = (((a23 / -5) / 5) + -17548); + a1 = 2; + a19 = 9; + a13 = 1; + + return -1; + } else if(((( a12 <= 178 && ((a13==1) && ((( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) && (input == 6)) && (a19==11)))) && (a1==4)) && (a26==1))){ + if( 476 < a23 ){ + a23 = (((((a23 % 105)+ 370) - -442001) - -58250) - 500250); + a1 = 2; + a19 = 9; + a13 = 0; + + } else{ + a12 = (((((a12 - 0) + 137490) - -156388) % 108)+ 287); + a23 = ((((((a23 + -173707) % 105)- -378) * 5) % 105)+ 333); + a1 = 3; + a19 = 13; + a13 = 0; + + } return 26; + } else if(((((a19==11) && ((a26==1) && (((input == 4) && (a1==2)) && (a13==1)))) && ((95 < a23) && (264 >= a23)) ) && ((395 < a12) && (441 >= a12)) )){ + a12 = (((((a12 * 10)/ 12) - -2) + 421021) - 421163); + a1 = 3; + a19 = 9; + + return 26; + } else if(((( ((178 < a12) && (395 >= a12)) && ((a19==11) && ((( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 3)) && (a26==1)))) && (a1==2)) && !(a13==1))){ + a12 = (((((a12 % 22)+ 411) + -584942) / 5) + 117308); + a23 = (((((a23 % 84)- -144) - 32) / 5) - -193); + a19 = 13; + + return 24; + } else if(( ((178 < a12) && (395 >= a12)) && ((a1==3) && (((((((a19==13) && 476 < a23 ) && (a13==1)) || (((a19==9) && a23 <= 95 ) && !(a13==1))) || (((a19==9) && ((95 < a23) && (264 >= a23)) ) && !(a13==1))) && (input == 2)) && (a26==1))))){ + a12 = (((((a12 * 5) / 5) + -115688) % 22)+ 419); + a23 = (((((a23 % 105)+ 369) + 2) - -373790) - 373790); + a19 = 11; + a13 = 0; + + return -1; + } else if(((a19==9) && ((a13==1) && ((a1==3) && ((a26==1) && ( a12 <= 178 && ((input == 5) && ( 476 < a23 || ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ))))))))){ + a23 = ((((a23 * 9)/ 10) / 5) / -5); + a1 = 2; + + return -1; + } else if(((a26==1) && ((!(a13==1) && ( ((395 < a12) && (441 >= a12)) && ((input == 4) && ((((a19==9) && ((264 < a23) && (476 >= a23)) ) || ( 476 < a23 && (a19==9))) || ( a23 <= 95 && (a19==10)))))) && (a1==2)))){ + a12 = (((((a12 - 168) - -72) * 5) % 108)+ 209); + a23 = (((a23 / 5) + -474690) + -4186); + a1 = 3; + a19 = 10; + a13 = 1; + + return 26; + } else if(((a1==3) && ( 441 < a12 && ((a26==1) && (!(a13==1) && ((input == 2) && (( 476 < a23 && (a19==12)) || ( a23 <= 95 && (a19==13))))))))){ + a12 = ((((((a12 * 9)/ 10) % 108)+ 255) + -336868) + 336812); + a23 = ((((a23 % 300047)- 299951) * 1) + 0); + a1 = 2; + a19 = 9; + + return 26; + } else if(( ((178 < a12) && (395 >= a12)) && (( ((95 < a23) && (264 >= a23)) && ((((input == 3) && (a26==1)) && !(a13==1)) && (a19==11))) && (a1==3)))){ + + a1 = 2; + a19 = 12; + + return 22; + } else if(((a1==4) && ( a12 <= 178 && ((a19==12) && ((a26==1) && (((input == 2) && (( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) || 476 < a23 )) && (a13==1))))))){ + a12 = (((((a12 - -87808) * 1) - -107457) % 108)- -287); + a23 = ((((((a23 * 9)/ 10) + 57251) + -220852) % 105)- -371); + a1 = 2; + a19 = 13; + + return 26; + } else if(((((a13==1) && ((((( 476 < a23 && (a19==9)) || ((a19==10) && a23 <= 95 )) || ( ((95 < a23) && (264 >= a23)) && (a19==10))) && (input == 5)) && (a1==2))) && 441 < a12 ) && (a26==1))){ + a12 = (((a12 - 599834) + -572) - 5); + a23 = ((((a23 + 0) + 0) % 300047)- 299951); + a19 = 9; + + return -1; + } else if(((a19==13) && ((a1==3) && ((( ((178 < a12) && (395 >= a12)) && ((input == 2) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) ))) && (a13==1)) && (a26==1))))){ + a12 = (((a12 / 5) + 361) + 0); + a23 = (((((a23 % 300047)- 299951) + 318442) + 206201) - 524645); + a1 = 2; + + return 26; + } else if(((a13==1) && ((((a1==3) && ((a19==10) && ( a23 <= 95 && (input == 4)))) && (a26==1)) && ((178 < a12) && (395 >= a12)) ))){ + a23 = ((((a23 / 5) % 84)+ 179) + 1); + a19 = 9; + + return -1; + } else if(((a19==12) && ((((a1==2) && ((( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 2)) && ((395 < a12) && (441 >= a12)) )) && (a13==1)) && (a26==1)))){ + a12 = (((a12 + -380085) / 5) * 5); + a23 = ((((a23 - 21674) % 105)- -371) + -2); + a1 = 3; + a19 = 9; + a13 = 0; + + return 22; + } else if(( ((178 < a12) && (395 >= a12)) && ((a26==1) && (((((( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) || ((264 < a23) && (476 >= a23)) ) && (input == 3)) && (a19==9)) && (a13==1)) && (a1==3))))){ + a12 = (((a12 - 311547) - -402689) + -124401); + a23 = ((((((a23 % 84)- -180) + -1) * 5) % 84)+ 154); + a1 = 2; + a19 = 12; + + return -1; + } else if(((a1==2) && ((a26==1) && ((((((a13==1) && ((a19==13) && 476 < a23 )) || (!(a13==1) && ((a19==9) && a23 <= 95 ))) || (( ((95 < a23) && (264 >= a23)) && (a19==9)) && !(a13==1))) && (input == 2)) && ((395 < a12) && (441 >= a12)) )))){ + a12 = (((a12 * -5) / 5) + -335); + a23 = (((((a23 - 0) / 5) + -307864) % 84)+ 228); + a1 = 3; + a19 = 13; + a13 = 1; + + return 26; + } else if(((!(a13==1) && (((((( 476 < a23 && (a19==10)) || ((a19==11) && a23 <= 95 )) || ( ((95 < a23) && (264 >= a23)) && (a19==11))) && (input == 5)) && (a1==2)) && (a26==1))) && ((395 < a12) && (441 >= a12)) )){ + a12 = (((a12 - 64000) * 5) - 16111); + a23 = ((((a23 - 0) % 300047)+ -299951) + -3); + a1 = 3; + a19 = 13; + + return 22; + } else if(((((a1==3) && ( 441 < a12 && ((a13==1) && ((input == 2) && ( 476 < a23 || ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) )))))) && (a26==1)) && (a19==13))){ + if((a13==1)){ + a12 = (((a12 + -371144) - 229219) / 5); + a23 = ((((a23 + -29546) % 105)+ 369) - -2); + a1 = 2; + + } else{ + a12 = (((a12 - 0) + -600434) - 1); + a23 = (((((a23 * 9)/ 10) * -1) + 395515) + -408816); + a1 = 4; + a19 = 12; + a13 = 0; + + } return -1; + } else if((((a19==9) && (((((( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) || ((264 < a23) && (476 >= a23)) ) && (input == 2)) && (a26==1)) && (a13==1)) && (a1==3))) && ((178 < a12) && (395 >= a12)) )){ + a23 = ((((a23 / 5) * 4) - -156845) + -159209); + a19 = 13; + a13 = 0; + + return -1; + } else if((( a12 <= 178 && ((a19==13) && ((a26==1) && (((input == 2) && ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) )) && (a1==3))))) && (a13==1))){ + a12 = (((((a12 % 22)+ 419) + -1) - -552235) + -552235); + a23 = (((((a23 % 105)+ 332) / 5) / 5) + 411); + a1 = 2; + a19 = 9; + + return -1; + } else if(((((( a12 <= 178 && ((input == 4) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 ))) && !(a13==1)) && (a1==3)) && (a19==13)) && (a26==1))){ + if((a1==3)){ + a12 = ((((a12 - -267062) % 108)+ 286) - -2); + a23 = (((a23 + -600024) - 119) - 57); + a19 = 12; + + } else{ + a12 = ((((a12 % 22)+ 418) - -58213) - 58211); + a23 = (((((a23 * 9)/ 10) % 84)- -142) - -6); + a1 = 2; + a19 = 11; + a13 = 1; + + } return -1; + } else if(((a26==1) && (((a13==1) && ((a1==3) && (((input == 4) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) || ((264 < a23) && (476 >= a23)) )) && (a19==9)))) && 441 < a12 ))){ + a12 = (((a12 - 600339) + -86) - 14); + a23 = ((((((a23 % 105)+ 370) - 126002) * 4) % 105)- -382); + a1 = 2; + a19 = 11; + a13 = 0; + + return -1; + } else if(((((a26==1) && ((!(a13==1) && ((( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) || ((264 < a23) && (476 >= a23)) ) && (input == 5))) && ((395 < a12) && (441 >= a12)) )) && (a1==3)) && (a19==12))){ + a12 = (((a12 * 5) - 406691) / 5); + a23 = (((a23 / 5) * 4) - 49418); + a1 = 2; + a19 = 9; + a13 = 1; + + return -1; + } else if((((a19==11) && ((a26==1) && (((( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) && (input == 6)) && (a13==1)) && (a1==3)))) && 441 < a12 )){ + a12 = ((((a12 % 108)+ 184) - -285762) - 285764); + a23 = (((a23 * -5) - -511765) - 623038); + a1 = 2; + a19 = 12; + + return 24; + } else if((((a26==1) && ((a13==1) && ((a1==3) && (( ((395 < a12) && (441 >= a12)) && (input == 6)) && (a19==12))))) && 476 < a23 )){ + a12 = (((a12 / 5) * -5) * 5); + a19 = 13; + + return 22; + } else if((((a1==3) && (( a12 <= 178 && ((input == 5) && (((a19==11) && a23 <= 95 ) || (( ((264 < a23) && (476 >= a23)) && (a19==10)) || ( 476 < a23 && (a19==10)))))) && (a26==1))) && (a13==1))){ + a12 = ((((((a12 - -7170) % 108)+ 286) * 5) % 108)- -198); + a23 = ((((((a23 % 105)+ 370) * 5) + 363644) % 105)+ 361); + a1 = 2; + a19 = 10; + a13 = 0; + + return 24; + } else if((( ((395 < a12) && (441 >= a12)) && ((a1==3) && (((!(a13==1) && ((a19==9) && a23 <= 95 )) || ((( ((264 < a23) && (476 >= a23)) && (a19==13)) && (a13==1)) || (( 476 < a23 && (a19==13)) && (a13==1)))) && (input == 3)))) && (a26==1))){ + a12 = (((a12 - 59) / 5) + 306); + a23 = ((((a23 % 299761)+ 300237) + 0) * 1); + a19 = 9; + a13 = 1; + + return 24; + } else if((((((((input == 4) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )) && (a19==12)) && (a1==3)) && 441 < a12 ) && !(a13==1)) && (a26==1))){ + a12 = ((((a12 / 5) - -50723) + 343735) - 520995); + a23 = ((((a23 % 299761)- -300237) * 1) + 2); + a1 = 4; + a19 = 10; + a13 = 1; + + return -1; + } else if((((((a19==12) && (!(a13==1) && ( ((264 < a23) && (476 >= a23)) && (input == 2)))) && (a1==2)) && (a26==1)) && ((178 < a12) && (395 >= a12)) )){ + a12 = ((((a12 + -344907) * 1) * 10)/ -9); + a23 = (((a23 * -5) - 46225) + -290251); + a19 = 9; + + return 22; + } else if(((a19==11) && (( 476 < a23 && (((a1==3) && ( ((395 < a12) && (441 >= a12)) && (input == 2))) && (a26==1))) && (a13==1)))){ + a12 = (((((a12 / 5) * 10)/ 4) - 269753) + 269747); + a23 = (((((a23 - 0) % 105)+ 369) / 5) - -350); + a19 = 9; + + return 26; + } else if(((a19==9) && ( 441 < a12 && (((((input == 5) && ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) )) && (a1==2)) && (a13==1)) && (a26==1))))){ + a12 = (((((a12 % 108)+ 200) + -312953) + 425759) - 112803); + a23 = (((a23 / 5) + 245509) - -2199); + a19 = 11; + a13 = 0; + + return 26; + } else if(((((a26==1) && ((a13==1) && (( ((95 < a23) && (264 >= a23)) && (input == 6)) && (a19==11)))) && ((395 < a12) && (441 >= a12)) ) && (a1==2))){ + a12 = (((a12 + -521072) + -36885) - -128423); + a23 = ((((a23 * 5) / 5) * 10)/ 2); + a1 = 3; + a19 = 13; + a13 = 0; + + return 24; + } else if(((((a1==3) && (((a19==11) && ((input == 6) && !(a13==1))) && ((95 < a23) && (264 >= a23)) )) && (a26==1)) && ((178 < a12) && (395 >= a12)) )){ + a12 = ((((a12 / 5) / -5) * 10)/ 9); + a23 = ((((a23 - -33275) * 10)/ 9) / 5); + a19 = 12; + + return 22; + } else if(((a1==3) && ((a19==10) && ((!(a13==1) && ( a23 <= 95 && ((input == 5) && (a26==1)))) && ((395 < a12) && (441 >= a12)) )))){ + a12 = (((a12 + -394870) - -255272) + -413948); + a1 = 2; + a19 = 9; + a13 = 1; + + return -1; + } else if(((!(a13==1) && (((((a26==1) && (input == 4)) && a23 <= 95 ) && 441 < a12 ) && (a1==2))) && (a19==13))){ + a12 = (((a12 + -599929) * 1) * 1); + a23 = (((((a23 + 0) * 9)/ 10) % 84)- -180); + a1 = 3; + a13 = 1; + + return 24; + } else if((((((a1==3) && (((input == 6) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) || ((264 < a23) && (476 >= a23)) )) && (a26==1))) && !(a13==1)) && (a19==9)) && a12 <= 178 )){ + a12 = ((((a12 + 77614) % 22)+ 418) * 1); + a23 = ((((a23 + 0) % 299761)+ 300237) - 0); + a1 = 2; + a13 = 1; + + return 26; + } else if(( a12 <= 178 && (((a26==1) && (((input == 4) && (( a23 <= 95 && (a19==11)) || (( ((264 < a23) && (476 >= a23)) && (a19==10)) || ((a19==10) && 476 < a23 )))) && (a1==3))) && (a13==1)))){ + a12 = ((((a12 + 176038) * 1) % 22)- -419); + a23 = (((((a23 % 299761)+ 300237) * 1) - 436996) + 436998); + a19 = 9; + a13 = 0; + + return 24; + } else if(((a26==1) && ((((a1==3) && ((( 476 < a23 && (a19==9)) || ((a19==10) && a23 <= 95 )) && (input == 3))) && a12 <= 178 ) && !(a13==1)))){ + a12 = (((((a12 + 0) % 22)+ 417) / 5) + 320); + a23 = ((((((a23 * 9)/ 10) / 5) * 5) % 84)+ 179); + a1 = 2; + a19 = 10; + a13 = 1; + + return 26; + } else if((((!(a13==1) && ((a26==1) && ((( a23 <= 95 && (a19==10)) || (((a19==9) && ((264 < a23) && (476 >= a23)) ) || ( 476 < a23 && (a19==9)))) && (input == 5)))) && (a1==3)) && 441 < a12 )){ + if((a13==1)){ + a12 = ((((((a12 % 22)- -397) + 9) * 5) % 22)- -410); + a23 = ((((a23 % 84)- -179) + -175699) + 175699); + a1 = 2; + a19 = 13; + + } else{ + a12 = ((((((a12 % 108)+ 252) * 9)/ 10) + -74373) - -74331); + a23 = ((((a23 % 299761)+ 300237) / 5) - -407474); + a19 = 9; + a13 = 1; + + } return -1; + } else if(((a13==1) && ((((a26==1) && ((a1==3) && ((input == 6) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 )))) && ((178 < a12) && (395 >= a12)) ) && (a19==12)))){ + a12 = (((a12 / 5) * 5) / 5); + a23 = (((((a23 * 9)/ 10) + -507372) % 84)- -180); + a1 = 2; + a19 = 13; + a13 = 0; + + return -1; + } else if(((a26==1) && (((!(a13==1) && (((input == 3) && ((178 < a12) && (395 >= a12)) ) && (a1==2))) && (a19==11)) && ((95 < a23) && (264 >= a23)) ))){ + a12 = ((((a12 % 22)- -399) + 6) * 1); + a23 = (((a23 * -5) + -485619) * 1); + a19 = 12; + + return 26; + } else if(( ((178 < a12) && (395 >= a12)) && (((((a1==3) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 2))) && !(a13==1)) && (a26==1)) && (a19==13)))){ + a12 = (((a12 + -396171) - 12774) - 10190); + a23 = ((((a23 % 105)+ 370) - 307341) - -307340); + a19 = 10; + + return -1; + } else if(((a1==2) && ((a13==1) && ((a26==1) && (((input == 2) && ((( 476 < a23 && (a19==9)) || ((a19==10) && a23 <= 95 )) || ( ((95 < a23) && (264 >= a23)) && (a19==10)))) && 441 < a12 ))))){ + a12 = ((((a12 * 9)/ 10) * -1) * 1); + a23 = ((((a23 + 0) / 5) / 5) - -544764); + a1 = 3; + a19 = 10; + a13 = 0; + + return 24; + } else if(( a23 <= 95 && ((( 441 < a12 && ((a19==13) && ((a1==2) && (input == 2)))) && (a13==1)) && (a26==1)))){ + a12 = (((a12 - 600035) + -315) + -32); + a23 = (((((a23 / 5) / 5) / 5) % 84)+ 180); + a1 = 3; + a13 = 0; + + return 26; + } else if(((((a26==1) && ( ((264 < a23) && (476 >= a23)) && (((input == 4) && !(a13==1)) && ((178 < a12) && (395 >= a12)) ))) && (a19==12)) && (a1==2))){ + a12 = ((((a12 + 206461) * 10)/ 9) + -194557); + a23 = (((((a23 * 10)/ 18) * 5) % 84)- -114); + a19 = 13; + a13 = 1; + + return 26; + } else if(((a1==2) && ((( ((178 < a12) && (395 >= a12)) && (((input == 5) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )) && (a26==1))) && (a19==12)) && !(a13==1)))){ + a12 = ((((a12 - -418171) * 10)/ 9) - -32646); + a23 = (((((a23 % 299761)+ 300237) * 1) / 5) - -325403); + a19 = 10; + a13 = 1; + + return 24; + } else if(((a26==1) && ((!(a13==1) && (((((a19==12) && ((95 < a23) && (264 >= a23)) ) || (( 476 < a23 && (a19==11)) || ((a19==12) && a23 <= 95 ))) && (input == 6)) && (a1==4))) && a12 <= 178 ))){ + if((a1==6)){ + a12 = (((((a12 % 108)+ 286) - 0) / 5) + 264); + a23 = ((((((a23 * 9)/ 10) - 48613) / 5) % 105)+ 370); + a1 = 3; + a19 = 9; + + } else{ + a12 = ((((a12 - -418746) / 5) % 22)+ 417); + a23 = (((a23 / 5) - 131465) * 2); + a1 = 3; + a19 = 10; + + } return -1; + } else if((((((((a26==1) && (input == 6)) && (a1==4)) && 476 < a23 ) && (a19==10)) && a12 <= 178 ) && !(a13==1))){ + a12 = ((((a12 % 299779)- -300220) - 0) * 1); + a23 = (((((a23 * 9)/ 10) / 5) % 105)- -293); + a1 = 3; + a19 = 9; + + return -1; + } else if(((a26==1) && (!(a13==1) && (((a1==2) && (((( 476 < a23 && (a19==10)) || ((a19==11) && a23 <= 95 )) || ((a19==11) && ((95 < a23) && (264 >= a23)) )) && (input == 4))) && 441 < a12 )))){ + if( ((395 < a12) && (441 >= a12)) ){ + a12 = ((((a12 % 22)+ 401) - 4) - -5); + a23 = ((((a23 % 300047)- 299951) / 5) * 5); + a1 = 3; + a19 = 10; + + } else{ + a12 = (((((a12 / 5) + 352516) + -314613) % 108)- -208); + a23 = ((((a23 % 299761)+ 300237) * 1) * 1); + a19 = 12; + + } return 22; + } else if(((a1==2) && (((a26==1) && ((((input == 5) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 )) && ((178 < a12) && (395 >= a12)) ) && !(a13==1))) && (a19==13)))){ + a12 = (((a12 * 5) / 5) + -549275); + a23 = ((((a23 % 299761)+ 477) - -136416) / 5); + a1 = 3; + a19 = 9; + a13 = 1; + + return 26; + } else if(((a1==2) && (!(a13==1) && ( 441 < a12 && ((((((a19==11) && ((264 < a23) && (476 >= a23)) ) || ((a19==11) && 476 < a23 )) || ( a23 <= 95 && (a19==12))) && (input == 6)) && (a26==1)))))){ + a12 = ((((a12 / 5) % 22)- -418) - -1); + a23 = ((((((a23 * 9)/ 10) % 105)+ 371) + 411120) + -411120); + a1 = 3; + a19 = 11; + a13 = 1; + + return 26; + } else if((((a1==3) && ((a13==1) && ( a12 <= 178 && ((a19==13) && (( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) && (input == 3)))))) && (a26==1))){ + a23 = ((((a23 % 105)- -352) - 25) + 34); + a19 = 12; + + return -1; + } else if(((a1==3) && (!(a13==1) && (((a26==1) && ( a12 <= 178 && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 4)))) && (a19==12))))){ + a23 = (((((a23 - 0) % 84)+ 179) - 127068) + 127068); + return 26; + } + return calculate_output3(input); + } + + int calculate_output3(int input) { + + + if(( 441 < a12 && ((a1==2) && ((a19==10) && ((!(a13==1) && ( ((264 < a23) && (476 >= a23)) && (input == 2))) && (a26==1)))))){ + if( ((264 < a23) && (476 >= a23)) ){ + a12 = (((((((a12 * 9)/ 10) % 22)- -403) * 5) % 22)- -401); + a23 = ((((a23 % 84)- -139) + -122394) + 122388); + a1 = 3; + + } else{ + a12 = (((((a12 % 108)+ 271) + 168917) + -461476) + 292573); + a23 = (((((a23 * 5) % 84)- -118) / 5) - -201); + a1 = 3; + a13 = 1; + + } return 24; + } else if(((!(a13==1) && ((a19==10) && ((((a26==1) && (input == 5)) && (a1==2)) && ((178 < a12) && (395 >= a12)) ))) && ((264 < a23) && (476 >= a23)) )){ + a23 = (((a23 * 5) * 5) * 5); + a19 = 13; + + return 26; + } else if((((( 441 < a12 && ((input == 5) && (( ((95 < a23) && (264 >= a23)) && (a19==11)) || (( 476 < a23 && (a19==10)) || ((a19==11) && a23 <= 95 ))))) && !(a13==1)) && (a26==1)) && (a1==2))){ + a12 = ((((a12 / 5) / 5) * 5) * -4); + a23 = (((((a23 / 5) % 105)+ 370) - -135093) + -135091); + a1 = 3; + a19 = 10; + + return 26; + } else if((((((((input == 4) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 )) && 441 < a12 ) && (a26==1)) && (a1==2)) && (a13==1)) && (a19==11))){ + a12 = (((a12 + -599910) * 1) + -16); + a23 = ((((((a23 * 9)/ 10) % 105)+ 265) * 10)/ 9); + a1 = 3; + a19 = 13; + + return 26; + } else if(((a13==1) && (((a26==1) && ((a1==3) && ((input == 6) && ((((a19==11) && 476 < a23 ) || ( a23 <= 95 && (a19==12))) || ( ((95 < a23) && (264 >= a23)) && (a19==12)))))) && 441 < a12 ))){ + if((a1==3)){ + a12 = (((((a12 * 9)/ 10) * 1) + 37316) * -1); + a23 = ((((a23 % 300047)+ -299951) - 1) * 1); + a1 = 2; + a19 = 9; + + } else{ + a12 = (((a12 + -599926) + -193) / 5); + a23 = (((((a23 - 0) % 299761)- -300237) / 5) - -148195); + a1 = 2; + a19 = 9; + + } return 26; + } else if((!(a13==1) && ( a12 <= 178 && ((a1==4) && (((input == 4) && ((( ((264 < a23) && (476 >= a23)) && (a19==9)) || ((a19==9) && 476 < a23 )) || ((a19==10) && a23 <= 95 ))) && (a26==1)))))){ + if( a12 <= 178 ){ + a23 = (((((a23 + 0) % 105)+ 370) / 5) - -249); + a1 = 2; + a19 = 10; + + } else{ + a12 = ((((a12 % 299779)- -300220) + 0) * 1); + a23 = (((a23 + 0) / 5) + -336056); + a1 = 3; + a19 = 10; + + } return 22; + } else if(((a1==3) && (((( 476 < a23 && ((input == 4) && (a19==9))) && (a13==1)) && (a26==1)) && ((178 < a12) && (395 >= a12)) ))){ + a12 = (((a12 - 319845) - 15949) + 106); + a23 = (((((a23 + 0) % 105)+ 281) * 10)/ 9); + a19 = 13; + a13 = 0; + + return -1; + } else if((( 441 < a12 && ((a1==3) && ((a26==1) && ((input == 6) && (((a19==10) && a23 <= 95 ) || (( ((264 < a23) && (476 >= a23)) && (a19==9)) || ( 476 < a23 && (a19==9)))))))) && !(a13==1))){ + if((a13==1)){ + a12 = (((a12 + -600098) - -52190) + -51920); + a23 = ((((((a23 + 0) % 105)- -371) * 5) % 105)- -359); + a1 = 2; + a19 = 9; + a13 = 1; + + } else{ + a12 = ((((a12 % 108)- -282) - 40652) - -40589); + a23 = (((((a23 % 299761)+ 300237) - -1) / 5) - -117997); + a1 = 2; + a19 = 9; + a13 = 1; + + } return 26; + } else if((( ((264 < a23) && (476 >= a23)) && (!(a13==1) && ((a19==13) && ((a26==1) && ( ((395 < a12) && (441 >= a12)) && (input == 2)))))) && (a1==2))){ + a12 = ((((a12 * 5) + 98380) % 108)+ 214); + a23 = ((((a23 * -5) * 10)/ 9) / 5); + a1 = 3; + + return 26; + } else if((!(a13==1) && ((a19==11) && ((((a26==1) && ((input == 5) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 ))) && ((178 < a12) && (395 >= a12)) ) && (a1==2))))){ + if((a1==3)){ + a23 = ((((a23 / 5) + -457410) % 105)+ 415); + a1 = 3; + a19 = 13; + a13 = 1; + + } else{ + a12 = (((a12 - -491418) / 5) + 163403); + a23 = ((((a23 - 142855) % 84)+ 180) * 1); + a19 = 10; + a13 = 1; + + } return 26; + } else if(((a19==11) && ( a12 <= 178 && (((a13==1) && ((( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) && (input == 3)) && (a1==3))) && (a26==1))))){ + a12 = ((((a12 % 22)- -419) - 2) + 1); + a23 = (((((a23 % 105)+ 342) - 66) + -70034) - -70122); + a19 = 13; + a13 = 0; + + return 26; + } else if((((a13==1) && (((a19==13) && (((input == 6) && (( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) || 476 < a23 )) && (a26==1))) && (a1==2))) && 441 < a12 )){ + a12 = (((a12 / -5) + -462438) - 11865); + a23 = (((a23 / -5) + 436146) + -441158); + a1 = 3; + a19 = 11; + a13 = 0; + + return 26; + } else if(((!(a13==1) && (((a1==2) && ((a19==11) && ((input == 2) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 )))) && (a26==1))) && ((178 < a12) && (395 >= a12)) )){ + a12 = (((((a12 % 22)+ 404) + 373182) / 5) - 74293); + a23 = (((a23 / 5) / 5) + 312931); + a19 = 13; + + return 26; + } else if((((a19==10) && ( ((264 < a23) && (476 >= a23)) && (((a1==2) && ((input == 4) && (a26==1))) && !(a13==1)))) && ((178 < a12) && (395 >= a12)) )){ + a12 = ((((a12 / -5) * 5) * 10)/ 9); + a23 = (((a23 / -5) * 5) + -261390); + a19 = 9; + a13 = 1; + + return -1; + } else if(( ((395 < a12) && (441 >= a12)) && (((a1==2) && ((((a19==13) && (input == 5)) && ((95 < a23) && (264 >= a23)) ) && (a26==1))) && !(a13==1)))){ + a12 = (((((a12 * 10)/ 12) - 13) * 9)/ 10); + a1 = 3; + a19 = 10; + a13 = 1; + + return 22; + } else if((((a19==10) && ( ((95 < a23) && (264 >= a23)) && ((((a26==1) && (input == 2)) && (a13==1)) && ((178 < a12) && (395 >= a12)) ))) && (a1==3))){ + a12 = ((((a12 + -116652) - -213990) - -288376) - 578454); + a23 = (((a23 / -5) / 5) / 5); + a19 = 9; + a13 = 0; + + return -1; + } else if((((((((((a19==10) && ((264 < a23) && (476 >= a23)) ) || ((a19==10) && 476 < a23 )) || ( a23 <= 95 && (a19==11))) && (input == 4)) && (a26==1)) && (a1==4)) && a12 <= 178 ) && (a13==1))){ + a12 = ((((a12 % 299779)- -300220) - -1) - 0); + a23 = ((((a23 + 0) % 300047)- 299951) / 5); + a1 = 2; + a19 = 13; + a13 = 0; + + return 24; + } else if(( a12 <= 178 && (((a1==3) && ((a26==1) && ( ((264 < a23) && (476 >= a23)) && ((input == 5) && !(a13==1))))) && (a19==10)))){ + a12 = ((((((a12 * 9)/ 10) % 22)+ 417) - -79484) - 79481); + a23 = ((((a23 * 18)/ 10) - -506180) * 1); + a1 = 2; + a13 = 1; + + return 26; + } else if((((((a26==1) && ((input == 2) && ((((a19==9) && ((264 < a23) && (476 >= a23)) ) || ( 476 < a23 && (a19==9))) || ( a23 <= 95 && (a19==10))))) && (a1==2)) && !(a13==1)) && ((395 < a12) && (441 >= a12)) )){ + if( 476 < a23 ){ + a12 = ((((a12 * 5) + -92445) / 5) - -18355); + a23 = ((((a23 - 0) % 84)- -180) + 1); + a1 = 3; + a19 = 9; + + } else{ + a12 = (((a12 + -44341) * 5) * 2); + a23 = ((((a23 - 0) % 84)- -180) * 1); + a1 = 3; + a19 = 10; + + } return 24; + } else if(( ((95 < a23) && (264 >= a23)) && (( a12 <= 178 && ((((input == 6) && (a1==4)) && (a13==1)) && (a26==1))) && (a19==9)))){ + + a1 = 2; + a19 = 13; + a13 = 0; + + return 24; + } else if(((((a1==3) && (!(a13==1) && ((((a19==10) && 476 < a23 ) || ( a23 <= 95 && (a19==11))) && (input == 6)))) && (a26==1)) && ((178 < a12) && (395 >= a12)) )){ + a12 = (((((a12 % 22)- -411) * 5) % 22)- -418); + a23 = ((((a23 % 299761)+ 300237) * 1) - 0); + a19 = 9; + a13 = 1; + + return 24; + } else if(( a23 <= 95 && ((a1==3) && (( 441 < a12 && (((a19==11) && (input == 5)) && !(a13==1))) && (a26==1))))){ + a12 = ((((a12 * 9)/ 10) / -5) * 5); + a1 = 2; + + return 26; + } else if((((a13==1) && (( 441 < a12 && (((input == 5) && (a19==11)) && (a26==1))) && ((95 < a23) && (264 >= a23)) )) && (a1==2))){ + + return 26; + } else if(( ((395 < a12) && (441 >= a12)) && ((((a26==1) && ((((a19==13) && ((95 < a23) && (264 >= a23)) ) || (( 476 < a23 && (a19==12)) || ((a19==13) && a23 <= 95 ))) && (input == 6))) && (a1==3)) && !(a13==1)))){ + a12 = ((((a12 / 5) + -207846) * 10)/ 9); + a23 = ((((a23 - 0) % 300047)- 299951) * 1); + a1 = 2; + a19 = 13; + + return -1; + } else if(((a26==1) && ( a23 <= 95 && ( 441 < a12 && ((a1==3) && (((input == 5) && (a13==1)) && (a19==13))))))){ + a23 = (((((a23 + 221857) % 84)- -180) - 17560) + 17560); + a19 = 9; + + return 24; + } else if(((a26==1) && ((a1==3) && (!(a13==1) && ((((input == 2) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 )) && (a19==13)) && ((178 < a12) && (395 >= a12)) ))))){ + a12 = (((a12 + 420022) * -1) * 1); + a23 = (((((a23 % 84)+ 168) + -166511) + 456608) - 290098); + a19 = 12; + + return 26; + } else if((( ((178 < a12) && (395 >= a12)) && ((a26==1) && ((a19==10) && (!(a13==1) && (( ((264 < a23) && (476 >= a23)) || ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )) && (input == 5)))))) && (a1==3))){ + a23 = ((((a23 - -401738) % 105)+ 370) * 1); + a1 = 2; + + return 24; + } else if((((( ((95 < a23) && (264 >= a23)) && (((input == 3) && 441 < a12 ) && (a1==3))) && (a26==1)) && (a19==13)) && !(a13==1))){ + if( ((95 < a23) && (264 >= a23)) ){ + a12 = ((((((a12 * 9)/ 10) % 108)- -270) + -269503) - -269418); + } else{ + a12 = ((((a12 + -600167) / 5) + 63798) + -111407); + a23 = (((a23 - -197144) * 3) + -712031); + a1 = 2; + a19 = 11; + + } return -1; + } else if(((((a26==1) && ((((input == 5) && (a1==4)) && (a13==1)) && ((95 < a23) && (264 >= a23)) )) && (a19==10)) && a12 <= 178 )){ + a12 = ((((a12 / 5) + 296595) % 108)+ 255); + a1 = 2; + a19 = 12; + + return 22; + } else if(((((((a26==1) && ((input == 4) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 ))) && (a1==3)) && (a13==1)) && (a19==12)) && 441 < a12 )){ + a12 = ((((a12 / 5) + -272357) % 22)+ 434); + a23 = ((((((a23 % 105)- -296) / 5) / 5) * 269)/ 10); + a1 = 2; + + return 22; + } else if(( 441 < a12 && ((a26==1) && ((a1==3) && ((a19==11) && (!(a13==1) && ((( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) || 476 < a23 ) && (input == 3)))))))){ + a12 = (((a12 / -5) + -38473) + -340872); + a23 = ((((((a23 * 9)/ 10) % 84)+ 113) / 5) + 218); + a1 = 2; + a19 = 10; + a13 = 1; + + return 24; + } else if((((a1==3) && ((((a13==1) && ((input == 2) && 441 < a12 )) && a23 <= 95 ) && (a19==13))) && (a26==1))){ + a23 = ((((a23 % 84)- -179) - 0) + 1); + a1 = 2; + a19 = 9; + a13 = 0; + + return 22; + } else if(( ((178 < a12) && (395 >= a12)) && ((a19==9) && ((a13==1) && (((a1==3) && ((input == 4) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) || ((264 < a23) && (476 >= a23)) ))) && (a26==1)))))){ + a12 = ((((a12 + 96747) + -586911) / 5) + 98393); + a23 = (((((a23 / 5) % 105)- -371) - 593822) + 593822); + a13 = 0; + + return -1; + } else if((( a12 <= 178 && ((a1==4) && ( a23 <= 95 && ((a26==1) && ((input == 3) && (a19==13)))))) && (a13==1))){ + a12 = (((((a12 - -599805) * 1) + 12) % 108)+ 287); + a23 = ((((a23 + 0) / 5) % 105)+ 369); + a1 = 2; + a19 = 10; + + return 26; + } else if(((a1==3) && (((a19==13) && ((((input == 6) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )) && (a13==1)) && (a26==1))) && ((395 < a12) && (441 >= a12)) ))){ + a12 = ((((a12 - 88) + 3) + -518081) + 518104); + a23 = (((((a23 % 105)- -371) + -1) - 213179) - -213178); + a19 = 9; + + return 26; + } else if((((a26==1) && (( 441 < a12 && ((a1==3) && ((input == 2) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) || ((264 < a23) && (476 >= a23)) )))) && (a19==9))) && (a13==1))){ + a12 = (((a12 + -600402) * 1) + -13); + a23 = ((((a23 % 105)+ 369) / 5) + 377); + a1 = 2; + a19 = 13; + + return 26; + } else if((((a26==1) && (((((input == 2) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) || ((264 < a23) && (476 >= a23)) )) && (a1==2)) && ((395 < a12) && (441 >= a12)) ) && (a13==1))) && (a19==13))){ + a12 = (((((a12 * 5)/ 10) + 171922) + -62475) + -109399); + a23 = ((((a23 % 299761)+ 300237) + 2) - 0); + return -1; + } else if(((((a1==4) && ( a12 <= 178 && (((( 476 < a23 && (a19==11)) || ((a19==12) && a23 <= 95 )) || ( ((95 < a23) && (264 >= a23)) && (a19==12))) && (input == 3)))) && !(a13==1)) && (a26==1))){ + if((a1==6)){ + a23 = (((((a23 - 0) % 300047)+ -299951) - -355936) + -355938); + a1 = 2; + a19 = 10; + + } else{ + a23 = ((((a23 % 300047)- 299951) * 1) + -2); + a1 = 2; + a19 = 10; + a13 = 1; + + } return 22; + } else if(((a1==3) && (!(a13==1) && (( 441 < a12 && (((( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) || 476 < a23 ) && (input == 2)) && (a19==10))) && (a26==1))))){ + a12 = (((a12 + -600307) / 5) / 5); + a23 = ((((a23 % 105)- -289) + 73) + 9); + a1 = 2; + + return -1; + } else if((((a1==3) && ((a13==1) && ((((( 476 < a23 && (a19==9)) || ((a19==10) && a23 <= 95 )) || ( ((95 < a23) && (264 >= a23)) && (a19==10))) && (input == 2)) && 441 < a12 ))) && (a26==1))){ + a12 = ((((a12 % 108)- -240) + -26) + 27); + a23 = ((((a23 + 0) + 0) / 5) + -476973); + a1 = 2; + a19 = 9; + + return 26; + } else if((!(a13==1) && (( ((395 < a12) && (441 >= a12)) && ((a1==2) && ((( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 2)) && (a19==12)))) && (a26==1)))){ + a12 = ((((a12 / -5) - 63062) * 10)/ 9); + a23 = ((((((a23 + 11040) % 105)+ 369) * 5) % 105)+ 277); + a1 = 3; + a19 = 13; + a13 = 1; + + return 26; + } else if(((a19==10) && ((a1==3) && ((( 441 < a12 && (( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 4))) && (a13==1)) && (a26==1))))){ + if((a13==1)){ + a12 = ((((a12 * 9)/ 10) + -547141) / 5); + a23 = (((((a23 - 545974) % 105)- -369) / 5) + 369); + a1 = 4; + a19 = 12; + + } else{ + a12 = (((a12 + 0) - 600023) - 303); + a23 = ((((a23 - 600183) + -68) + 176207) - 176161); + a1 = 2; + + } return 26; + } else if(((((a19==9) && ((((input == 5) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )) && !(a13==1)) && (a26==1))) && 441 < a12 ) && (a1==2))){ + a12 = (((a12 + -299573) - 300716) - 24); + a23 = ((((a23 % 300047)- 299951) + -2) + -1); + a1 = 3; + a19 = 10; + + return 24; + } else if(((a26==1) && ((a1==2) && (((a13==1) && (((( ((264 < a23) && (476 >= a23)) && (a19==9)) || ( 476 < a23 && (a19==9))) || ( a23 <= 95 && (a19==10))) && (input == 4))) && ((395 < a12) && (441 >= a12)) )))){ + a12 = (((a12 + -219017) + -174613) + -172987); + a23 = ((((a23 % 300047)- 299951) / 5) * 5); + a19 = 9; + + return -1; + } else if(((((a26==1) && ((a13==1) && ((a1==3) && (( 476 < a23 || ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) )) && (input == 3))))) && (a19==13)) && 441 < a12 )){ + a12 = (((a12 - 600390) * 1) * 1); + a23 = (((((a23 / -5) * 10)/ 9) - -242921) * -2); + a1 = 2; + a19 = 12; + + return -1; + } else if(((a19==12) && ( ((178 < a12) && (395 >= a12)) && (((a1==3) && ((( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 4)) && (a26==1))) && !(a13==1))))){ + a23 = (((((a23 + 0) % 84)+ 179) / 5) - -83); + a19 = 9; + a13 = 1; + + return 26; + } else if(((a1==3) && ((a26==1) && (((input == 3) && (((( 476 < a23 && (a19==13)) && (a13==1)) || (!(a13==1) && ((a19==9) && a23 <= 95 ))) || (((a19==9) && ((95 < a23) && (264 >= a23)) ) && !(a13==1)))) && ((178 < a12) && (395 >= a12)) )))){ + a12 = (((a12 / -5) / 5) - 490338); + a23 = (((a23 / 5) - 311897) * 1); + a1 = 2; + a19 = 9; + a13 = 1; + + return -1; + } else if(((((a1==3) && ( ((178 < a12) && (395 >= a12)) && ((( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 5)) && (a26==1)))) && (a19==13)) && !(a13==1))){ + a23 = ((((a23 % 299761)- -477) / 5) - -286392); + a19 = 9; + a13 = 1; + + return 26; + } else if((((a26==1) && ((a1==3) && ((a13==1) && (((input == 2) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 )) && 441 < a12 )))) && (a19==12))){ + if( ((95 < a23) && (264 >= a23)) ){ + a23 = (((a23 / 5) + 253102) + 186255); + a1 = 2; + a13 = 0; + + } else{ + a23 = (((((a23 % 105)+ 346) * 5) % 105)+ 333); + a19 = 10; + a13 = 0; + + } return 26; + } else if(((((a26==1) && (( 441 < a12 && ((input == 3) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 ))) && (a19==10))) && (a13==1)) && (a1==3))){ + a12 = ((((a12 % 108)+ 219) - 22) - 5); + a23 = ((((a23 - 435028) + -46764) % 105)- -369); + a1 = 2; + a19 = 13; + + return -1; + } else if((( a12 <= 178 && (((a19==13) && (!(a13==1) && ((input == 3) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 )))) && (a1==3))) && (a26==1))){ + a12 = (((((a12 - 0) - 0) / 5) % 108)+ 287); + a23 = ((((a23 / 5) * 4) + -287709) - 308438); + return -1; + } else if(((a1==2) && ((a26==1) && ( 441 < a12 && (!(a13==1) && (((((a19==9) && 476 < a23 ) || ( a23 <= 95 && (a19==10))) || ((a19==10) && ((95 < a23) && (264 >= a23)) )) && (input == 4))))))){ + a12 = (((a12 / 5) / 5) / -5); + a23 = (((((a23 + 0) + 0) - 0) % 300047)+ -299951); + a1 = 3; + a19 = 10; + + return 22; + } else if(((a1==3) && (((a19==12) && (((( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 6)) && (a26==1)) && !(a13==1))) && ((178 < a12) && (395 >= a12)) ))){ + a12 = ((((a12 - 40348) / 5) * 10)/ 9); + a23 = ((((a23 % 299761)- -300237) + 2) + 0); + a19 = 13; + + return 24; + } else if((((((a1==2) && ((( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 4)) && (a13==1))) && ((395 < a12) && (441 >= a12)) ) && (a19==11)) && (a26==1))){ + a12 = (((((a12 - 52) * 5) - -342119) % 108)+ 270); + a23 = (((a23 + -600253) + -6) * 1); + a1 = 3; + a19 = 10; + + return 26; + } else if((( a12 <= 178 && (((a26==1) && ((input == 2) && (( 476 < a23 && (a19==11)) || ((a19==12) && a23 <= 95 )))) && (a1==4))) && (a13==1))){ + a12 = (((((a12 % 22)- -417) / 5) - 517716) - -518052); + a23 = (((((a23 + 0) % 299761)+ 300237) / 5) + 29373); + a1 = 2; + a19 = 11; + + return 26; + } else if((((a13==1) && ((a26==1) && ((((input == 4) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )) && (a1==3)) && (a19==11)))) && ((395 < a12) && (441 >= a12)) )){ + a12 = (((a12 - 91) - -259554) - 259551); + a23 = ((((a23 - -436082) % 300047)- 299951) - 3); + a1 = 2; + a19 = 12; + + return -1; + } else if((((a1==4) && ((((input == 3) && ((( ((264 < a23) && (476 >= a23)) && (a19==9)) || ((a19==9) && 476 < a23 )) || ( a23 <= 95 && (a19==10)))) && a12 <= 178 ) && (a26==1))) && (a13==1))){ + a23 = ((((a23 % 105)- -371) / 5) + 268); + a1 = 2; + a19 = 13; + a13 = 0; + + return -1; + } else if((((a19==12) && ((a1==2) && (((a13==1) && ((input == 6) && ( ((264 < a23) && (476 >= a23)) || ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )))) && (a26==1)))) && 441 < a12 )){ + a12 = ((((a12 * 9)/ 10) / -5) - 424457); + a23 = (((((a23 + 216256) - 95816) - -237206) % 299761)+ 300237); + a1 = 3; + a13 = 0; + + return 22; + } else if(( ((178 < a12) && (395 >= a12)) && ((a26==1) && ((((( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 4)) && !(a13==1)) && (a19==13)) && (a1==3))))){ + a12 = (((a12 * 5) / 5) + -424346); + a23 = (((a23 / 5) * -4) - 61526); + a19 = 10; + + return 22; + } else if(((a26==1) && ( ((395 < a12) && (441 >= a12)) && ((a1==3) && ((a13==1) && (((( ((264 < a23) && (476 >= a23)) && (a19==9)) || ((a19==9) && 476 < a23 )) || ( a23 <= 95 && (a19==10))) && (input == 4))))))){ + a12 = (((a12 + -502087) - -963546) - 1039131); + a23 = (((((a23 % 84)+ 180) / 5) / 5) - -163); + a19 = 13; + + return 26; + } else if(((a1==2) && ( a23 <= 95 && (( 441 < a12 && ((a19==13) && ((input == 3) && (a26==1)))) && !(a13==1))))){ + a12 = (((((a12 % 108)+ 232) - -38) / 5) + 316); + a23 = ((((a23 - -269451) % 299761)- -300237) * 1); + a1 = 3; + a19 = 9; + a13 = 1; + + return 26; + } else if(((((a19==9) && ( 441 < a12 && ((a1==3) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 6))))) && !(a13==1)) && (a26==1))){ + a12 = (((a12 - 169719) - 257386) - 173137); + a23 = (((((a23 % 299761)+ 300237) - -1) + -463295) + 463295); + a1 = 2; + a19 = 13; + + return -1; + } else if((((((a19==12) && (((input == 3) && ( ((264 < a23) && (476 >= a23)) || ( a23 <= 95 || ((95 < a23) && (264 >= a23)) ))) && (a26==1))) && (a1==2)) && (a13==1)) && 441 < a12 )){ + a12 = ((((a12 + 0) / 5) % 108)- -194); + a23 = ((((a23 - -243621) + -156388) % 300047)+ -299951); + a1 = 3; + a19 = 11; + a13 = 0; + + return 22; + } else if(((a19==11) && ((a26==1) && ( ((395 < a12) && (441 >= a12)) && ((a1==2) && ((( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 2)) && (a13==1))))))){ + if((a13==1)){ + a23 = ((((a23 % 299761)+ 477) * 1) * 1); + a1 = 3; + a19 = 10; + + } else{ + a12 = ((((a12 - 135) + -6) * 9)/ 10); + a23 = (((((a23 % 84)- -125) * 5) % 84)+ 165); + a1 = 3; + a19 = 10; + + } return 26; + } else if(((!(a13==1) && (((a19==10) && (((input == 4) && ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) )) && (a1==3))) && (a26==1))) && ((395 < a12) && (441 >= a12)) )){ + a12 = (((a12 + -329665) - 164173) - 75272); + a23 = (((a23 + 331734) + 107233) - -18767); + a19 = 11; + a13 = 1; + + return -1; + } else if(((a13==1) && (((a19==10) && ((((input == 3) && ((178 < a12) && (395 >= a12)) ) && (a26==1)) && (a1==3))) && a23 <= 95 ))){ + a23 = ((((((a23 * 9)/ 10) - 34789) + -18854) % 84)- -192); + a19 = 13; + a13 = 0; + + return -1; + } else if((( a12 <= 178 && (((a26==1) && ( 476 < a23 && ((input == 4) && !(a13==1)))) && (a1==4))) && (a19==10))){ + a23 = (((((a23 / 5) / 5) * 5) % 84)- -99); + a1 = 2; + a19 = 12; + a13 = 1; + + return -1; + } else if((( ((95 < a23) && (264 >= a23)) && ((a26==1) && (((a13==1) && ((a19==10) && (input == 4))) && a12 <= 178 ))) && (a1==4))){ + a12 = ((((a12 + 474358) - -27865) % 108)- -286); + a23 = ((((a23 - -34438) / -5) * 10)/ 9); + a1 = 2; + a19 = 9; + + return -1; + } else if((((((((a13==1) && (input == 3)) && (a1==3)) && (a26==1)) && (a19==13)) && 441 < a12 ) && a23 <= 95 )){ + a12 = ((((((a12 + 0) % 108)- -245) / 5) * 37)/ 10); + a23 = ((((((a23 * 9)/ 10) % 105)- -369) - 67465) + 67465); + a1 = 2; + + return 26; + } else if(((a1==3) && ((((((input == 2) && ((95 < a23) && (264 >= a23)) ) && (a26==1)) && (a19==13)) && !(a13==1)) && a12 <= 178 ))){ + a23 = (((a23 + 205825) / 5) / 5); + a19 = 9; + + return -1; + } else if((((( ((395 < a12) && (441 >= a12)) && ((a26==1) && ((input == 6) && ( ((264 < a23) && (476 >= a23)) || ( a23 <= 95 || ((95 < a23) && (264 >= a23)) ))))) && (a19==13)) && (a13==1)) && (a1==2))){ + a12 = ((((a12 * 5)/ 10) - -29) + 20); + a23 = ((((a23 % 299761)- -300237) / 5) - -427003); + a1 = 3; + a19 = 9; + + return 24; + } else if((( ((395 < a12) && (441 >= a12)) && ((a1==2) && ((a19==12) && ((a26==1) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 5)))))) && !(a13==1))){ + a12 = ((((a12 + -50329) + 50226) + 372151) - 372125); + a23 = ((((a23 + 0) * 9)/ 10) - 31352); + a1 = 3; + a19 = 10; + a13 = 1; + + return 26; + } else if(((a19==13) && (((a13==1) && ((((a26==1) && (input == 6)) && a23 <= 95 ) && (a1==2))) && 441 < a12 ))){ + a12 = (((a12 - 43030) + -557410) * 1); + a1 = 3; + a19 = 12; + a13 = 0; + + return 26; + } else if(( ((395 < a12) && (441 >= a12)) && (!(a13==1) && ((a1==2) && (((a19==10) && (( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) && (input == 3))) && (a26==1)))))){ + a12 = (((a12 * 5) / 5) - 583810); + a23 = (((a23 / -5) / 5) * 5); + a19 = 12; + a13 = 1; + + return -1; + } else if(((a1==3) && ( ((395 < a12) && (441 >= a12)) && (( a23 <= 95 && (((input == 3) && (a19==10)) && !(a13==1))) && (a26==1))))){ + a12 = (((a12 + 301740) / 5) + 282721); + a23 = (((((a23 / 5) % 105)+ 369) + -442085) + 442087); + a1 = 2; + a19 = 11; + + return 26; + } else if(((((a19==12) && ( ((178 < a12) && (395 >= a12)) && (((input == 3) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )) && !(a13==1)))) && (a26==1)) && (a1==3))){ + a23 = ((((a23 + 241811) % 299761)- -300237) - -2); + a19 = 9; + a13 = 1; + + return 24; + } else if(((a1==3) && ((a19==13) && (!(a13==1) && (( 441 < a12 && (( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 5))) && (a26==1)))))){ + if( ((95 < a23) && (264 >= a23)) ){ + a12 = ((((a12 % 22)+ 396) - -246074) - 246070); + a23 = ((((a23 / 5) + -296543) + 285674) + -388987); + a19 = 12; + a13 = 1; + + } else{ + a12 = (((a12 + -600172) + -43) - 107); + a23 = ((((((a23 / 5) % 84)- -129) / 5) * 39)/ 10); + } return 26; + } else if(((a13==1) && ((((a1==3) && ((a26==1) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 2)))) && ((178 < a12) && (395 >= a12)) ) && (a19==12)))){ + a12 = (((a12 * -5) + -415229) * 1); + a23 = (((((a23 * 9)/ 10) % 84)+ 179) + 2); + a19 = 10; + a13 = 0; + + return 24; + } else if(((a1==3) && ((( 441 < a12 && ((( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 4)) && !(a13==1))) && (a19==9)) && (a26==1)))){ + a12 = (((a12 - 600438) - 4) + 0); + a23 = (((((a23 % 300047)- 299951) + -3) * 9)/ 10); + a1 = 4; + a19 = 10; + a13 = 1; + + return 22; + } else if(((a1==2) && (( 441 < a12 && ((a19==12) && (!(a13==1) && ((( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) || 476 < a23 ) && (input == 2))))) && (a26==1)))){ + a12 = ((((a12 % 108)+ 279) + -126471) - -126466); + a23 = ((((((a23 * 9)/ 10) / 5) / 5) % 105)+ 294); + a1 = 3; + a19 = 9; + a13 = 1; + + return 24; + } else if(((a19==11) && (((a1==3) && ((a13==1) && ((a26==1) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 2))))) && ((395 < a12) && (441 >= a12)) ))){ + a12 = (((a12 + -238960) / 5) * 5); + a23 = ((((((a23 - -327582) % 105)+ 371) * 5) % 105)- -350); + a19 = 9; + a13 = 0; + + return 22; + } else if(((!(a13==1) && ((a1==2) && (((a19==10) && ( ((178 < a12) && (395 >= a12)) && (input == 6))) && ((264 < a23) && (476 >= a23)) ))) && (a26==1))){ + if( a23 <= 95 ){ + a12 = (((((a12 % 22)- -401) * 1) + 113117) + -113111); + a23 = (((a23 + -318352) - 109707) + -69516); + a1 = 3; + + } else{ + a23 = ((((a23 - 264494) * 2) + 811890) - 364361); + a19 = 13; + + } return 22; + } else if((((((a1==4) && ( a12 <= 178 && ((input == 4) && (a13==1)))) && (a19==9)) && ((95 < a23) && (264 >= a23)) ) && (a26==1))){ + a12 = ((((a12 * 9)/ 10) - -586668) * 1); + a23 = (((a23 * 5) * -5) * 5); + a1 = 3; + a19 = 13; + a13 = 0; + + return -1; + } else if(((a13==1) && ((a26==1) && ((((input == 4) && ((((a19==9) && 476 < a23 ) || ( a23 <= 95 && (a19==10))) || ( ((95 < a23) && (264 >= a23)) && (a19==10)))) && 441 < a12 ) && (a1==2))))){ + a12 = (((a12 + -599899) + -374) - 127); + a23 = (((((a23 - 0) - 0) - 0) % 299761)+ 300237); + a1 = 3; + a19 = 9; + a13 = 0; + + return 24; + } else if(( ((178 < a12) && (395 >= a12)) && ((((((a1==2) && (input == 2)) && (a19==10)) && (a26==1)) && 476 < a23 ) && !(a13==1)))){ + a12 = (((((a12 + -498747) - -540894) + 489156) % 22)+ 415); + a23 = ((((((a23 * 9)/ 10) % 105)+ 349) - 401270) - -401233); + a19 = 9; + a13 = 1; + + return 26; + } else if((((a26==1) && (!(a13==1) && ((a1==2) && ((input == 3) && ((( ((264 < a23) && (476 >= a23)) && (a19==12)) || ( 476 < a23 && (a19==12))) || ( a23 <= 95 && (a19==13))))))) && ((395 < a12) && (441 >= a12)) )){ + a12 = ((((a12 - 74169) * 10)/ 9) - 387069); + a23 = ((((a23 * 9)/ 10) / 5) - 125273); + a1 = 3; + a19 = 10; + + return 24; + } else if((((a13==1) && (((((a19==13) && (input == 3)) && (a1==3)) && ((178 < a12) && (395 >= a12)) ) && (a26==1))) && ((264 < a23) && (476 >= a23)) )){ + a12 = (((a12 - 94320) + -115234) / 5); + a23 = ((((a23 * 5) / 5) * 5) * -5); + a1 = 2; + a19 = 9; + + return -1; + } else if((( 441 < a12 && ((!(a13==1) && (((((a19==9) && 476 < a23 ) || ((a19==10) && a23 <= 95 )) || ((a19==10) && ((95 < a23) && (264 >= a23)) )) && (input == 5))) && (a1==2))) && (a26==1))){ + if( a23 <= 95 ){ + a12 = ((((((a12 * 9)/ 10) * 1) * 1) % 22)+ 399); + a23 = ((((a23 + 0) % 105)- -369) * 1); + a1 = 3; + a19 = 11; + a13 = 1; + + } else{ + a12 = (((((a12 % 108)+ 199) - -29) - -49522) + -49535); + a23 = ((((a23 % 299761)- -300237) - -2) - 0); + a1 = 3; + a19 = 9; + a13 = 1; + + } return 26; + } else if(( a12 <= 178 && ((((((( 476 < a23 && (a19==11)) || ( a23 <= 95 && (a19==12))) || ( ((95 < a23) && (264 >= a23)) && (a19==12))) && (input == 5)) && (a26==1)) && (a1==4)) && !(a13==1)))){ + a23 = ((((a23 + 0) % 105)+ 369) * 1); + a1 = 2; + a19 = 10; + + return 22; + } else if(((a1==3) && ( a12 <= 178 && ((a19==9) && ((((input == 2) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) || ((264 < a23) && (476 >= a23)) )) && (a26==1)) && !(a13==1)))))){ + if((a1==2)){ + a12 = ((((a12 % 22)- -418) / 5) - -333); + a23 = (((((a23 - 0) % 105)+ 370) / 5) + 349); + a19 = 11; + + } else{ + a23 = ((((a23 % 299761)+ 300237) - 0) - 0); + a19 = 13; + a13 = 1; + + } return -1; + } else if(( ((395 < a12) && (441 >= a12)) && (((a1==2) && ((a13==1) && ((a26==1) && ( ((95 < a23) && (264 >= a23)) && (input == 5))))) && (a19==11)))){ + a12 = (((((a12 - 126939) * 10)/ 9) - -435393) - 451824); + a23 = ((((a23 + -98334) * 5) * 10)/ 9); + a1 = 3; + a19 = 13; + a13 = 0; + + return 24; + } else if((((((((( 476 < a23 && (a19==11)) || ((a19==12) && a23 <= 95 )) || ( ((95 < a23) && (264 >= a23)) && (a19==12))) && (input == 2)) && a12 <= 178 ) && (a1==4)) && !(a13==1)) && (a26==1))){ + a12 = ((((a12 * 9)/ 10) + 586225) + 5325); + a23 = (((((a23 + 0) - 0) / 5) % 84)- -179); + a1 = 2; + a19 = 10; + + return -1; + } else if(((( a12 <= 178 && ((a13==1) && ((input == 6) && (( a23 <= 95 && (a19==11)) || (( ((264 < a23) && (476 >= a23)) && (a19==10)) || ( 476 < a23 && (a19==10))))))) && (a1==4)) && (a26==1))){ + if((a1==5)){ + a12 = ((((a12 - 0) % 108)+ 287) + -1); + a23 = ((((a23 % 299761)+ 300237) - -2) * 1); + a1 = 2; + a19 = 13; + a13 = 0; + + } else{ + a12 = (((((a12 * 9)/ 10) % 22)+ 417) + 0); + a23 = ((((((a23 % 84)- -179) * 5) * 5) % 84)+ 123); + a1 = 2; + a19 = 11; + + } return 24; + } else if(((a19==9) && ( 441 < a12 && (((((input == 4) && !(a13==1)) && (a26==1)) && ((264 < a23) && (476 >= a23)) ) && (a1==2))))){ + a12 = ((((((a12 % 108)+ 268) * 5) - -74106) % 108)+ 228); + a1 = 3; + a19 = 10; + a13 = 1; + + return 24; + } else if(( ((178 < a12) && (395 >= a12)) && (((a1==3) && ((a26==1) && ((input == 4) && ((((a19==10) && ((264 < a23) && (476 >= a23)) ) || ((a19==10) && 476 < a23 )) || ((a19==11) && a23 <= 95 ))))) && (a13==1)))){ + a12 = (((a12 * -5) - 184538) + -245727); + a23 = (((((a23 % 105)- -370) / 5) * 10)/ 2); + a1 = 2; + a19 = 11; + a13 = 0; + + return -1; + } else if(((((a1==3) && (((( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 4)) && !(a13==1)) && a12 <= 178 )) && (a26==1)) && (a19==11))){ + a23 = ((((((a23 - 0) * 9)/ 10) + -54379) % 105)- -371); + return 26; + } else if(((a1==2) && (((a26==1) && (((a19==10) && ((input == 5) && (( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) || 476 < a23 ))) && ((395 < a12) && (441 >= a12)) )) && (a13==1)))){ + if((a13==1)){ + a12 = (((((a12 + -41421) - -41340) * 5) % 108)+ 229); + a23 = (((((a23 * 9)/ 10) - -2872) % 105)+ 304); + a1 = 3; + a19 = 12; + + } else{ + a12 = (((a12 - 313167) - 153942) - 98081); + a23 = (((((a23 % 105)- -305) * 9)/ 10) * 1); + a1 = 3; + a13 = 0; + + } return 22; + } else if(((((((a13==1) && ((input == 3) && ( 476 < a23 || ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) )))) && (a1==2)) && (a19==10)) && (a26==1)) && ((395 < a12) && (441 >= a12)) )){ + a12 = (((a12 / -5) + -60878) / 5); + a23 = (((((a23 * 9)/ 10) * 1) * 1) * -1); + a19 = 9; + + return -1; + } else if((((!(a13==1) && (( ((95 < a23) && (264 >= a23)) && ( ((395 < a12) && (441 >= a12)) && (input == 4))) && (a26==1))) && (a19==13)) && (a1==2))){ + a12 = (((((a12 * 5)/ 10) - -29998) + 258073) - 287902); + a23 = ((((a23 / 5) * 252)/ 10) - -380791); + a19 = 11; + + return 22; + } else if((( ((95 < a23) && (264 >= a23)) && ( ((178 < a12) && (395 >= a12)) && (((a1==3) && ((input == 3) && (a13==1))) && (a19==10)))) && (a26==1))){ + a23 = (((a23 + -74573) + -518556) * 1); + return -1; + } else if(( 476 < a23 && ( ((178 < a12) && (395 >= a12)) && ((a19==10) && ((a26==1) && (!(a13==1) && ((input == 3) && (a1==2)))))))){ + a12 = (((((a12 % 22)+ 401) / 5) + -163197) + 163542); + a23 = (((((a23 % 105)+ 326) * 5) % 105)+ 265); + a13 = 1; + + return 26; + } else if((( 441 < a12 && ((((a19==11) && (( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 6))) && (a1==2)) && (a26==1))) && (a13==1))){ + a12 = (((a12 + -600346) / 5) * 5); + a23 = (((((a23 % 299761)+ 477) * 10)/ 9) + 30408); + a1 = 3; + a19 = 12; + a13 = 0; + + return 26; + } else if(( 441 < a12 && ((a19==11) && ((a13==1) && ((a1==3) && ((a26==1) && ((input == 2) && ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) )))))))){ + if((a13==1)){ + a12 = (((((a12 * 9)/ 10) + -23020) % 108)- -286); + a23 = ((((a23 + 465460) / 5) - -209112) + -301921); + a13 = 0; + + } else{ + a12 = ((((a12 % 108)- -268) - -377549) + -377572); + a23 = (((a23 + 497963) - 744391) / 5); + } return 22; + } else if(((a1==3) && (((a19==11) && ( a12 <= 178 && ((( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 3)) && !(a13==1)))) && (a26==1)))){ + if((a26==1)){ + a12 = (((((a12 * 9)/ 10) + 49841) % 22)+ 419); + a23 = (((((a23 / 5) % 105)- -324) - 242966) + 242996); + a19 = 13; + + } else{ + a23 = ((((a23 % 84)+ 131) + -426948) - -426968); + } return -1; + } else if((!(a13==1) && (((((a1==3) && (( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 5))) && (a26==1)) && (a19==11)) && ((178 < a12) && (395 >= a12)) ))){ + a12 = ((((a12 / 5) - -486716) * 1) * -1); + a23 = (((a23 + -600194) * 1) - 55); + a1 = 2; + a19 = 9; + a13 = 1; + + return -1; + } else if(((a1==2) && ( 441 < a12 && (!(a13==1) && ((((((a19==11) && ((264 < a23) && (476 >= a23)) ) || ((a19==11) && 476 < a23 )) || ((a19==12) && a23 <= 95 )) && (input == 4)) && (a26==1)))))){ + a12 = ((((a12 + -600407) - 32) - -412326) + -411949); + a23 = (((((a23 * 9)/ 10) % 300047)+ -299951) - 3); + a1 = 3; + a19 = 9; + + return 26; + } else if(((((!(a13==1) && (((input == 3) && (a19==10)) && (a1==2))) && 441 < a12 ) && (a26==1)) && ((264 < a23) && (476 >= a23)) )){ + a12 = (((a12 / 5) / 5) + -570532); + a23 = ((((a23 / 5) * -5) - -277848) - 647634); + a19 = 9; + + return -1; + } else if(((((a1==3) && ((a26==1) && (!(a13==1) && (( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 5))))) && ((395 < a12) && (441 >= a12)) ) && (a19==13))){ + a12 = (((a12 * 5) - 560616) / 5); + a23 = ((((a23 % 299761)+ 477) + 257196) * 1); + a13 = 1; + + return -1; + } else if(((a19==11) && (((((a1==2) && ( ((395 < a12) && (441 >= a12)) && (input == 4))) && (a26==1)) && a23 <= 95 ) && (a13==1)))){ + a12 = (((a12 / -5) - -1276) + -332078); + a19 = 9; + + return -1; + } else if(((((!(a13==1) && (((a1==2) && (input == 4)) && ((264 < a23) && (476 >= a23)) )) && ((395 < a12) && (441 >= a12)) ) && (a19==13)) && (a26==1))){ + a12 = (((a12 * 5) / 5) - 140681); + a23 = (((a23 - 139190) + 373796) - 293928); + a19 = 9; + a13 = 1; + + return -1; + } else if(((a1==3) && ((((a13==1) && (( 476 < a23 && (input == 3)) && (a19==9))) && (a26==1)) && ((178 < a12) && (395 >= a12)) ))){ + if((a13==1)){ + a12 = ((((a12 * 5) * 5) % 22)+ 404); + a23 = (((((a23 % 105)+ 359) / 5) * 10)/ 2); + a19 = 11; + a13 = 0; + + } else{ + a12 = ((((a12 + -383235) + 397334) - 4994) * -5); + a19 = 13; + + } return -1; + } else if(((a19==12) && (( ((178 < a12) && (395 >= a12)) && (((a1==3) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 2))) && !(a13==1))) && (a26==1)))){ + a12 = ((((a12 + -350976) - -806227) - 255570) * -2); + a23 = ((((a23 % 84)+ 180) + -416896) - -416896); + a19 = 13; + + return 24; + } else if(((a26==1) && (( ((95 < a23) && (264 >= a23)) && ( a12 <= 178 && ((!(a13==1) && (input == 3)) && (a1==3)))) && (a19==13)))){ + a23 = (((a23 / -5) + -284572) * 2); + return -1; + } else if((((a13==1) && ( 441 < a12 && ((a26==1) && ((( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) && (input == 3)) && (a19==9))))) && (a1==2))){ + a12 = ((((a12 * 9)/ 10) - 587210) - 3778); + a23 = ((((a23 + -509572) - -438708) % 84)- -236); + a19 = 13; + + return -1; + } else if(( ((395 < a12) && (441 >= a12)) && (((((((a19==9) && ((95 < a23) && (264 >= a23)) ) && !(a13==1)) || (((a13==1) && ((a19==13) && 476 < a23 )) || (!(a13==1) && ( a23 <= 95 && (a19==9))))) && (input == 4)) && (a26==1)) && (a1==2)))){ + a23 = ((((a23 / 5) / 5) % 105)- -371); + a1 = 3; + a19 = 11; + a13 = 1; + + return 22; + } else if((((( ((178 < a12) && (395 >= a12)) && (( ((95 < a23) && (264 >= a23)) && (input == 5)) && (a1==3))) && (a19==11)) && (a26==1)) && !(a13==1))){ + a12 = (((a12 + -349822) / 5) + -422317); + a23 = (((a23 / 5) / 5) - -450923); + a19 = 13; + + return 24; + } else if((((((a1==3) && (((a13==1) && (input == 6)) && 441 < a12 )) && (a26==1)) && a23 <= 95 ) && (a19==11))){ + if((a26==1)){ + a12 = (((a12 + -600167) - 123) + -110); + a23 = ((((a23 + 19929) - 14091) % 299761)+ 300237); + a1 = 2; + a19 = 10; + a13 = 0; + + } else{ + a12 = ((((a12 * 9)/ 10) + -599451) * 1); + a23 = (((((a23 * 9)/ 10) - -552215) - 35726) - -38882); + a1 = 4; + + } return -1; + } else if(((( 441 < a12 && (!(a13==1) && ((a19==9) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 3))))) && (a26==1)) && (a1==2))){ + a12 = (((((a12 * 9)/ 10) * 1) % 108)- -248); + a23 = (((((a23 % 105)+ 371) + 224330) / 5) - 44635); + a19 = 12; + + return 24; + } else if(((( 441 < a12 && ((a1==3) && ((input == 6) && ((( 476 < a23 && (a19==9)) || ((a19==10) && a23 <= 95 )) || ((a19==10) && ((95 < a23) && (264 >= a23)) ))))) && (a13==1)) && (a26==1))){ + a12 = (((((a12 % 108)+ 218) / 5) * 10)/ 2); + a23 = (((((a23 + 0) * 9)/ 10) % 300047)- 299951); + a1 = 2; + a19 = 13; + + return -1; + } else if((((((a26==1) && (((input == 6) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 )) && (a19==11))) && (a13==1)) && (a1==2)) && ((395 < a12) && (441 >= a12)) )){ + a12 = (((a12 - 166) + 290667) - 290567); + a23 = (((a23 / 5) - 421566) - -647389); + a1 = 3; + a19 = 10; + + return 26; + } else if(((a26==1) && ( ((178 < a12) && (395 >= a12)) && ((((a19==11) && ((input == 2) && ( 476 < a23 || ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) )))) && (a1==3)) && (a13==1))))){ + a12 = (((a12 - 249154) * 2) + -53380); + a23 = ((((a23 / 5) * 4) % 105)+ 320); + a19 = 13; + a13 = 0; + + return 24; + } else if(((((a26==1) && (((( ((264 < a23) && (476 >= a23)) || ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )) && (input == 3)) && !(a13==1)) && (a1==4))) && a12 <= 178 ) && (a19==11))){ + a12 = (((((a12 % 299779)+ 300220) - 0) / 5) + 112164); + a23 = (((((a23 / 5) / 5) + -69298) * -1)/ 10); + a1 = 2; + a19 = 9; + a13 = 1; + + return 26; + } else if(((a19==11) && (((((a1==2) && (( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 4))) && (a26==1)) && !(a13==1)) && ((395 < a12) && (441 >= a12)) ))){ + a12 = (((a12 - 190) - 8445) + 8582); + a23 = (((a23 + 0) + -600026) + -170); + a1 = 3; + a19 = 10; + a13 = 1; + + return 26; + } else if((((a26==1) && ((a1==2) && ((((( ((264 < a23) && (476 >= a23)) && (a19==10)) || ( 476 < a23 && (a19==10))) || ((a19==11) && a23 <= 95 )) && (input == 4)) && (a13==1)))) && 441 < a12 )){ + a12 = (((a12 - 600326) * 1) * 1); + a23 = ((((a23 % 105)- -369) + -75198) - -75198); + a1 = 3; + a19 = 10; + a13 = 0; + + return 24; + } else if((( ((395 < a12) && (441 >= a12)) && ((a1==3) && (((( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 3)) && (a13==1)) && (a19==9)))) && (a26==1))){ + a12 = ((((a12 - 28847) * 10)/ 9) * 5); + a23 = ((((a23 % 300047)+ -299951) * 1) * 1); + a19 = 13; + + return 24; + } else if((!(a13==1) && ( ((178 < a12) && (395 >= a12)) && ((((a26==1) && (( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 3))) && (a1==3)) && (a19==11))))){ + a12 = (((a12 / -5) - -591862) + -702333); + a23 = (((a23 + -600252) * 1) * 1); + a19 = 13; + a13 = 1; + + return 24; + } else if((((((a13==1) && ((a19==13) && ((input == 5) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )))) && ((395 < a12) && (441 >= a12)) ) && (a26==1)) && (a1==3))){ + a12 = (((((a12 - 126) * 9)/ 10) * 10)/ 9); + a23 = (((((a23 % 84)- -180) + -590319) - 7587) + 597906); + a19 = 10; + + return 22; + } else if((( a12 <= 178 && (((((( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) || 476 < a23 ) && (input == 4)) && (a13==1)) && (a1==3)) && (a26==1))) && (a19==9))){ + a12 = ((((a12 % 22)- -419) * 1) - -1); + a23 = ((((a23 - 353771) % 105)+ 370) - 1); + a13 = 0; + + return 22; + } else if((((a26==1) && (((a1==4) && ((a13==1) && ((input == 3) && ((95 < a23) && (264 >= a23)) ))) && a12 <= 178 )) && (a19==9))){ + if((a19==11)){ + a12 = ((((a12 + 392799) % 108)- -286) + 2); + a23 = ((((a23 + -293188) - 81) * 10)/ -9); + a1 = 2; + a19 = 10; + + } else{ + a23 = (((a23 * -5) / 5) * 5); + a1 = 2; + a13 = 0; + + } return 24; + } else if(((a26==1) && (((( a23 <= 95 && ((input == 3) && ((395 < a12) && (441 >= a12)) )) && (a1==2)) && (a19==11)) && (a13==1)))){ + a12 = (((a12 - 418833) / 5) + -406634); + a23 = (((((a23 % 84)+ 180) + -1) - 443389) - -443390); + a1 = 3; + a13 = 0; + + return 24; + } else if((((a26==1) && ((!(a13==1) && ((a1==2) && ((input == 6) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 )))) && ((395 < a12) && (441 >= a12)) )) && (a19==11))){ + a12 = (((a12 - 58011) - 378767) * 1); + a23 = ((((a23 + 0) - 0) / 5) + -212912); + a1 = 3; + a19 = 9; + + return 26; + } else if(((a13==1) && (( ((178 < a12) && (395 >= a12)) && ((a1==3) && (((input == 5) && ( ((264 < a23) && (476 >= a23)) || ( a23 <= 95 || ((95 < a23) && (264 >= a23)) ))) && (a26==1)))) && (a19==9)))){ + a12 = (((a12 * -5) - 336659) * 1); + a23 = ((((a23 % 300047)+ -299951) * 1) + -2); + a19 = 13; + + return -1; + } else if(((a1==3) && (( a12 <= 178 && (((input == 4) && ((( ((264 < a23) && (476 >= a23)) && (a19==12)) || ((a19==12) && 476 < a23 )) || ( a23 <= 95 && (a19==13)))) && (a26==1))) && !(a13==1)))){ + a23 = (((((a23 / 5) % 105)+ 369) + -430497) + 430497); + a19 = 10; + + return -1; + } else if(((((a13==1) && (((input == 4) && ((( ((264 < a23) && (476 >= a23)) && (a19==9)) || ( 476 < a23 && (a19==9))) || ( a23 <= 95 && (a19==10)))) && (a26==1))) && (a1==4)) && a12 <= 178 )){ + if((a1==3)){ + a12 = (((((a12 + 213384) * 1) + -134726) % 22)+ 418); + a23 = (((((a23 % 105)- -369) / 5) / 5) + 366); + a1 = 3; + a19 = 13; + a13 = 0; + + } else{ + a12 = (((((a12 + 94091) - 88974) - 2616) % 22)+ 419); + a23 = (((((a23 / 5) % 84)+ 180) - 159975) + 159974); + a1 = 3; + a19 = 11; + + } return 22; + } else if((((a19==11) && (( 476 < a23 && ((!(a13==1) && (input == 3)) && (a1==3))) && (a26==1))) && ((395 < a12) && (441 >= a12)) )){ + a12 = ((((a12 + 217206) * 2) + -649117) - -731069); + a23 = ((((a23 * 9)/ 10) * 1) + -568227); + a1 = 2; + a19 = 12; + + return 26; + } else if((((a1==3) && (((a26==1) && (((input == 6) && (a19==10)) && ((395 < a12) && (441 >= a12)) )) && !(a13==1))) && a23 <= 95 )){ + a12 = ((((a12 * 12)/ 10) + 594572) / 5); + a23 = (((((a23 % 84)- -179) * 5) % 84)+ 108); + a1 = 2; + a19 = 11; + + return 22; + } else if(( a12 <= 178 && ((a19==10) && ((a26==1) && ((a1==4) && ( 476 < a23 && ((input == 3) && !(a13==1)))))))){ + a12 = ((((((a12 % 108)- -286) * 5) - -351238) % 108)- -183); + a23 = ((((a23 / 5) * -4) * 10)/ 9); + a1 = 2; + a19 = 9; + a13 = 1; + + return 22; + } else if((((((((input == 2) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 )) && (a1==3)) && (a19==12)) && (a26==1)) && (a13==1)) && ((178 < a12) && (395 >= a12)) )){ + a12 = (((a12 * 5) - 128415) / 5); + a23 = (((a23 + 0) + -600051) - 161); + a19 = 9; + a13 = 0; + + return -1; + } else if(((((a1==3) && ( a12 <= 178 && ((( a23 <= 95 && (a19==13)) || (( ((264 < a23) && (476 >= a23)) && (a19==12)) || ((a19==12) && 476 < a23 ))) && (input == 5)))) && (a26==1)) && (a13==1))){ + a23 = ((((a23 % 105)- -371) / 5) + 230); + a19 = 12; + + return 22; + } else if((!(a13==1) && ( a12 <= 178 && ((a26==1) && (((a1==3) && ((input == 5) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) ))) && (a19==12)))))){ + if( 476 < a23 ){ + a12 = (((((a12 + 387494) * 1) + 101352) % 22)+ 417); + a23 = ((((((a23 % 105)- -370) - 1) * 5) % 105)- -371); + a19 = 13; + + } else{ + a23 = ((((a23 % 299761)+ 300237) - -2) - 0); + a19 = 10; + + } return -1; + } else if((( ((395 < a12) && (441 >= a12)) && (((a1==3) && (((input == 6) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) || ((264 < a23) && (476 >= a23)) )) && (a19==12))) && (a26==1))) && (a13==1))){ + a12 = ((((a12 - 519514) * 1) / 5) - -104048); + a23 = ((((a23 % 300047)+ -299951) + 249171) - 249172); + a19 = 10; + + return 26; + } else if(((a1==3) && ((((a19==12) && ( ((395 < a12) && (441 >= a12)) && ((input == 4) && ( ((264 < a23) && (476 >= a23)) || ( a23 <= 95 || ((95 < a23) && (264 >= a23)) ))))) && (a26==1)) && (a13==1)))){ + a12 = (((((((a12 * 10)/ 12) * 9)/ 10) * 5) * 2)/ 10); + a23 = (((((a23 % 300047)+ -299951) * 1) - -263125) + -263125); + a1 = 2; + a19 = 10; + + return -1; + } else if(( 476 < a23 && (!(a13==1) && ( ((178 < a12) && (395 >= a12)) && (((a1==2) && ((a19==10) && (input == 4))) && (a26==1)))))){ + a12 = ((((a12 - -43634) % 22)+ 405) - -9); + a23 = ((((((a23 % 84)+ 154) + -23) * 5) % 84)+ 109); + a19 = 11; + a13 = 1; + + return 22; + } else if(((((a1==3) && (((( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 3)) && (a26==1)) && (a19==13))) && (a13==1)) && ((395 < a12) && (441 >= a12)) )){ + a12 = ((((a12 + 84755) + -84968) + 117429) - 117334); + a23 = ((((a23 + 26537) % 300047)- 299951) * 1); + a1 = 2; + a19 = 10; + a13 = 0; + + return 26; + } else if(((a19==10) && (((a13==1) && ( ((178 < a12) && (395 >= a12)) && ( ((95 < a23) && (264 >= a23)) && ((a1==3) && (input == 6))))) && (a26==1)))){ + a12 = ((((a12 + 230800) * 2) - -32573) * -1); + a19 = 13; + a13 = 0; + + return -1; + } else if(((a26==1) && ( ((178 < a12) && (395 >= a12)) && ((a13==1) && (((((a19==11) && a23 <= 95 ) || (( ((264 < a23) && (476 >= a23)) && (a19==10)) || ((a19==10) && 476 < a23 ))) && (input == 2)) && (a1==3)))))){ + a23 = ((((a23 % 300047)+ -299951) / 5) / 5); + a19 = 11; + + return -1; + } else if(((( ((95 < a23) && (264 >= a23)) && ((((input == 4) && (a13==1)) && (a1==3)) && (a19==10))) && ((178 < a12) && (395 >= a12)) ) && (a26==1))){ + a12 = ((((a12 * 5) / 5) % 22)+ 411); + a23 = ((((a23 - -113152) + -112950) - 470497) - -470490); + a19 = 9; + a13 = 0; + + return -1; + } else if(( 476 < a23 && (((((a26==1) && ((a1==2) && (input == 3))) && (a19==12)) && 441 < a12 ) && (a13==1)))){ + a12 = ((((a12 - 0) / 5) % 108)+ 232); + a1 = 3; + + return 26; + } else if(((a1==4) && ((a26==1) && (!(a13==1) && (((( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) && (input == 2)) && (a19==10)) && a12 <= 178 ))))){ + a12 = ((((a12 % 22)- -417) * 1) - 0); + a23 = (((a23 * -5) - 160317) + -13699); + a1 = 3; + a19 = 9; + + return -1; + } else if(((a19==12) && ( ((395 < a12) && (441 >= a12)) && (((a1==2) && ((a13==1) && (( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 4)))) && (a26==1))))){ + a12 = ((((a12 + -144) * 5) % 108)+ 271); + a23 = ((((a23 * 9)/ 10) / 5) / -5); + return -1; + } else if(((a19==10) && ((a1==3) && ((((( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) && (input == 5)) && (a26==1)) && ((395 < a12) && (441 >= a12)) ) && !(a13==1))))){ + a12 = ((((a12 * -5) - 207790) * 10)/ 9); + a23 = (((((a23 - -139975) % 105)- -348) - 472078) - -472040); + a1 = 2; + + return -1; + } else if(((((a19==10) && ((a26==1) && ((( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) && (input == 2)) && ((395 < a12) && (441 >= a12)) ))) && !(a13==1)) && (a1==3))){ + a12 = (((a12 - 396832) + -165937) * 1); + a23 = (((a23 - -44090) / 5) + -555262); + a19 = 9; + + return -1; + } else if((((((((input == 3) && ((95 < a23) && (264 >= a23)) ) && (a13==1)) && (a1==4)) && a12 <= 178 ) && (a26==1)) && (a19==13))){ + a12 = ((((a12 % 108)+ 287) - -1) - 2); + a23 = ((((a23 * 5) % 105)+ 365) + 6); + a1 = 3; + a19 = 11; + a13 = 0; + + return 24; + } else if(((a19==9) && (((((a26==1) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 5))) && a12 <= 178 ) && (a1==4)) && !(a13==1)))){ + a23 = (((((a23 * 9)/ 10) + 585883) % 105)- -298); + a1 = 3; + a19 = 10; + + return 26; + } else if((((a1==2) && ((a26==1) && (((input == 2) && (( ((95 < a23) && (264 >= a23)) && (a19==13)) || (( 476 < a23 && (a19==12)) || ((a19==13) && a23 <= 95 )))) && !(a13==1)))) && ((178 < a12) && (395 >= a12)) )){ + if((a19==9)){ + a12 = (((((a12 - 558433) + -18205) - 14851) % 22)+ 424); + a23 = ((((a23 % 105)+ 369) - -75297) + -75295); + a1 = 3; + a19 = 12; + a13 = 1; + + } else{ + a12 = (((a12 + 92084) + -230194) + 273470); + a23 = ((((((a23 % 105)- -371) - -1) * 5) % 105)- -304); + a19 = 10; + + } return 26; + } else if(((!(a13==1) && ((a1==2) && ((a26==1) && ((( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 6)) && (a19==12))))) && ((178 < a12) && (395 >= a12)) )){ + a12 = (((((a12 + -435168) + 894992) - 1026512) % 22)- -430); + a23 = (((((a23 % 299761)+ 300237) - 0) / 5) - -426099); + a1 = 3; + a19 = 9; + a13 = 1; + + return 24; + } else if((((!(a13==1) && (((a19==9) && ((input == 3) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) || ((264 < a23) && (476 >= a23)) ))) && a12 <= 178 )) && (a1==3)) && (a26==1))){ + a23 = ((((a23 % 299761)+ 300237) * 1) + 0); + a1 = 2; + a19 = 10; + a13 = 1; + + return -1; + } else if(( a23 <= 95 && (((( ((178 < a12) && (395 >= a12)) && ((input == 5) && !(a13==1))) && (a19==11)) && (a1==2)) && (a26==1)))){ + + a1 = 3; + a19 = 12; + a13 = 1; + + return 22; + } else if((( a12 <= 178 && ((a19==13) && (((( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 6)) && (a26==1)) && (a13==1)))) && (a1==4))){ + if( a12 <= 178 ){ + a12 = ((((((a12 * 9)/ 10) - 14537) - 8682) % 108)+ 386); + a23 = (((((((a23 % 84)+ 139) * 10)/ 9) * 5) % 84)+ 174); + a1 = 3; + a19 = 12; + a13 = 0; + + } else{ + a23 = (((a23 - 599944) * 1) - 184); + a19 = 9; + a13 = 0; + + } return -1; + } else if(((!(a13==1) && ((a19==12) && (((a1==2) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 4))) && ((395 < a12) && (441 >= a12)) ))) && (a26==1))){ + a12 = (((((a12 * 10)/ 12) + 4) - 598005) + 597998); + a23 = (((((a23 % 84)+ 179) * 5) % 84)- -134); + a1 = 3; + a19 = 9; + a13 = 1; + + return 24; + } else if(((a26==1) && ( ((95 < a23) && (264 >= a23)) && (( ((178 < a12) && (395 >= a12)) && ((!(a13==1) && (input == 4)) && (a19==11))) && (a1==3))))){ + a12 = ((((a12 * -5) / 5) * 10)/ 9); + a23 = ((((a23 - -183) * 5) % 105)- -284); + a19 = 10; + + return 26; + } else if(((a26==1) && (((a1==2) && (((a19==12) && ((input == 2) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) ))) && ((178 < a12) && (395 >= a12)) )) && !(a13==1)))){ + a12 = (((a12 + -190267) + 272487) - -103573); + a23 = ((((a23 / 5) - -302804) + -337964) + 380074); + a13 = 1; + + return 22; + } else if(( 441 < a12 && (((((a26==1) && ((input == 6) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 ))) && (a13==1)) && (a1==3)) && (a19==10)))){ + if((a26==1)){ + a12 = (((a12 - 600307) + -133) * 1); + a23 = ((((a23 / 5) / 5) % 84)+ 112); + a1 = 2; + a19 = 13; + + } else{ + a12 = ((((a12 + -600347) + -2) - -287646) - 287470); + a23 = (((((a23 % 299761)- -477) * 1) * 10)/ 9); + a1 = 2; + a13 = 0; + + } return 26; + } else if((((( ((95 < a23) && (264 >= a23)) && (((a13==1) && (input == 2)) && (a1==4))) && (a26==1)) && a12 <= 178 ) && (a19==9))){ + if( 441 < a12 ){ + + a1 = 2; + a19 = 11; + a13 = 0; + + } else{ + a23 = ((((a23 * 5) - 39823) * 10)/ 9); + a1 = 2; + a19 = 11; + a13 = 0; + + } return -1; + } else if(((((input == 2) && ((!(a13==1) && ((a19==13) && ( 476 < a23 && ((395 < a12) && (441 >= a12)) ))) || ((a13==1) && ((a19==9) && ( a23 <= 95 && 441 < a12 ))))) && (a1==2)) && (a26==1))){ + a12 = (((((a12 / 5) + 100333) * 2) % 108)- -222); + a23 = (((((a23 + 0) % 300047)- 299951) + 432255) + -432255); + a1 = 3; + a19 = 10; + a13 = 1; + + return 24; + } else if((( 476 < a23 && ((a19==12) && (((a1==3) && ( ((395 < a12) && (441 >= a12)) && (input == 3))) && (a26==1)))) && (a13==1))){ + a12 = ((((a12 * -5) + -212639) * 10)/ 9); + a23 = (((((a23 * 9)/ 10) - 553232) % 105)- -464); + a19 = 11; + a13 = 0; + + return 22; + } else if((( ((95 < a23) && (264 >= a23)) && ((a26==1) && ( ((395 < a12) && (441 >= a12)) && ((a19==9) && ((input == 4) && !(a13==1)))))) && (a1==3))){ + a12 = ((((((a12 * 5)/ 10) - 13) / 5) * 79)/ 10); + a23 = (((((a23 - -207849) - -219390) - 818438) * -1)/ 10); + a1 = 2; + a19 = 12; + a13 = 1; + + return -1; + } else if(((a26==1) && ( 441 < a12 && ((a1==3) && ((a13==1) && (((input == 5) && ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) )) && (a19==11))))))){ + if((a19==10)){ + a12 = (((((a12 % 108)+ 233) / 5) + -426519) + 426776); + a23 = (((((a23 % 105)+ 275) * 5) % 105)+ 325); + a1 = 2; + a19 = 13; + + } else{ + a12 = (((a12 + -87865) + -512279) + -276); + a23 = (((a23 + 558457) - -21245) + 10433); + a1 = 2; + a19 = 13; + + } return -1; + } else if(((((((a26==1) && ((input == 5) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) || ((264 < a23) && (476 >= a23)) ))) && (a1==4)) && (a19==11)) && a12 <= 178 ) && !(a13==1))){ + a12 = ((((a12 % 299779)- -300220) + 1) - 0); + a23 = (((((a23 % 84)+ 180) * 5) % 84)- -123); + a1 = 3; + a13 = 1; + + return 26; + } else if(( ((178 < a12) && (395 >= a12)) && ((((a13==1) && ((a26==1) && ((a19==13) && (input == 2)))) && (a1==3)) && ((264 < a23) && (476 >= a23)) ))){ + a12 = ((((a12 + 283532) % 22)+ 413) * 1); + a23 = ((((((a23 - -343201) * 10)/ 9) - 537188) * -1)/ 10); + a13 = 0; + + return 24; + } else if(((a1==3) && ( 441 < a12 && (((a26==1) && ((((a19==10) && ((95 < a23) && (264 >= a23)) ) || (( 476 < a23 && (a19==9)) || ( a23 <= 95 && (a19==10)))) && (input == 4))) && (a13==1))))){ + if( 441 < a12 ){ + a12 = ((((a12 * 9)/ 10) * -1) - 48390); + a23 = ((((a23 - 0) / 5) / 5) + 551407); + a1 = 2; + a19 = 12; + a13 = 0; + + } else{ + a12 = ((((((a12 % 108)+ 234) * 5) - 182524) % 108)- -312); + a23 = ((((((a23 * 9)/ 10) * 1) + -57075) % 105)- -370); + a1 = 2; + a19 = 12; + + } return 24; + } else if(( ((395 < a12) && (441 >= a12)) && ((((a26==1) && ((input == 2) && ((((a19==12) && ((264 < a23) && (476 >= a23)) ) || ( 476 < a23 && (a19==12))) || ((a19==13) && a23 <= 95 )))) && !(a13==1)) && (a1==2)))){ + a12 = (((a12 / 5) + -532781) / 5); + a23 = (((a23 / 5) - -228782) + 195073); + a1 = 3; + a19 = 13; + + return 24; + } else if(((a13==1) && ((((a19==12) && ((a26==1) && ((input == 5) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )))) && (a1==2)) && ((395 < a12) && (441 >= a12)) ))){ + a12 = (((a12 * 5) / 5) / 5); + a23 = (((((a23 + 0) / 5) + 586026) % 84)- -137); + a1 = 3; + a19 = 9; + a13 = 0; + + return 22; + } else if(((a26==1) && (((a19==13) && ((a13==1) && ( 441 < a12 && ((input == 3) && ( 476 < a23 || ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) )))))) && (a1==2)))){ + a12 = (((a12 - 40743) + -559690) + -6); + a23 = (((a23 - 599930) + -21) * 1); + a19 = 9; + + return -1; + } else if((((a26==1) && (!(a13==1) && (((( ((95 < a23) && (264 >= a23)) && (a19==13)) || (((a19==12) && 476 < a23 ) || ( a23 <= 95 && (a19==13)))) && (input == 2)) && ((395 < a12) && (441 >= a12)) ))) && (a1==3))){ + a12 = (((a12 - 251469) / 5) / 5); + a23 = (((((a23 % 299761)+ 300237) * 1) / 5) - -191003); + a19 = 12; + + return 22; + } else if(((a1==3) && ( 476 < a23 && ((a26==1) && ( ((395 < a12) && (441 >= a12)) && (((input == 6) && (a13==1)) && (a19==11))))))){ + a12 = (((a12 + -35499) - -35428) - 44); + a19 = 9; + + return 22; + } else if(( a12 <= 178 && ((a19==13) && ((a1==4) && ((a13==1) && ((( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 5)) && (a26==1))))))){ + a12 = ((((a12 % 108)- -287) + 30610) - 30609); + a23 = (((a23 + 0) - 600111) - 80); + a1 = 2; + a19 = 11; + + return 26; + } else if(((((((((a19==12) && ((95 < a23) && (264 >= a23)) ) || (( 476 < a23 && (a19==11)) || ( a23 <= 95 && (a19==12)))) && (input == 2)) && (a26==1)) && (a13==1)) && (a1==3)) && a12 <= 178 )){ + a12 = ((((a12 + 282138) - -261417) % 108)- -287); + a23 = (((((a23 % 105)+ 369) - -2) - 542971) + 542971); + a1 = 2; + a19 = 10; + a13 = 0; + + return 26; + } else if(( a12 <= 178 && ((a26==1) && ((a1==3) && (!(a13==1) && ((( ((95 < a23) && (264 >= a23)) && (a19==11)) || (((a19==10) && 476 < a23 ) || ((a19==11) && a23 <= 95 ))) && (input == 3))))))){ + a23 = (((((a23 + 0) * 9)/ 10) % 299761)- -300237); + a19 = 10; + + return -1; + } else if(( a12 <= 178 && ((a26==1) && (((((input == 2) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) || ((264 < a23) && (476 >= a23)) )) && !(a13==1)) && (a19==11)) && (a1==4))))){ + a12 = (((((((a12 * 9)/ 10) % 108)+ 287) * 5) % 108)- -192); + a23 = ((((((a23 / 5) % 105)+ 369) * 5) % 105)+ 356); + a1 = 3; + a19 = 13; + + return 22; + } else if(((a19==13) && (((((a26==1) && ((input == 5) && ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ))) && a12 <= 178 ) && (a13==1)) && (a1==3)))){ + a12 = (((((a12 + 71372) + 58866) + 162137) % 108)- -287); + a23 = (((a23 - -452660) + 97767) - -28013); + a1 = 2; + a19 = 10; + a13 = 0; + + return -1; + } else if(( ((178 < a12) && (395 >= a12)) && (((((a1==3) && (( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 4))) && (a19==12)) && (a26==1)) && !(a13==1)))){ + a12 = (((a12 - 281890) / 5) - 247330); + a23 = (((((a23 + 0) * 9)/ 10) - 361803) - 193199); + a1 = 2; + a19 = 9; + a13 = 1; + + return -1; + } else if((((((a1==2) && ((input == 3) && ((((a19==11) && ((264 < a23) && (476 >= a23)) ) || ((a19==11) && 476 < a23 )) || ((a19==12) && a23 <= 95 )))) && (a26==1)) && !(a13==1)) && 441 < a12 )){ + if((a1==6)){ + a12 = ((((a12 % 22)+ 416) + 3) - -1); + a23 = ((((((a23 * 9)/ 10) - 7762) * 1) % 105)- -371); + a1 = 3; + a19 = 10; + + } else{ + a12 = (((((a12 % 108)+ 203) * 5) % 108)+ 244); + a23 = (((((a23 + 0) % 84)+ 180) - -524927) - 524927); + a1 = 3; + a19 = 10; + a13 = 1; + + } return 26; + } else if(( ((178 < a12) && (395 >= a12)) && (!(a13==1) && ((((input == 4) && (((a19==10) && 476 < a23 ) || ( a23 <= 95 && (a19==11)))) && (a1==3)) && (a26==1))))){ + a12 = ((((a12 + 259115) - 780974) * 10)/ -9); + a23 = ((((a23 % 300047)- 299951) * 1) - 3); + a1 = 2; + a19 = 12; + a13 = 1; + + return 24; + } else if((( a12 <= 178 && ((a1==4) && ((a19==11) && ((a26==1) && (( ((264 < a23) && (476 >= a23)) || ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )) && (input == 4)))))) && !(a13==1))){ + a23 = ((((a23 / 5) * 4) * 1) + -43856); + a1 = 2; + a19 = 13; + a13 = 1; + + return -1; + } else if(((!(a13==1) && ( a12 <= 178 && ((( ((95 < a23) && (264 >= a23)) && (input == 5)) && (a1==3)) && (a19==13)))) && (a26==1))){ + a23 = ((((a23 * 5) % 105)+ 362) - -5); + a19 = 12; + a13 = 1; + + return -1; + } else if(( ((95 < a23) && (264 >= a23)) && ((((((input == 6) && (a19==10)) && (a26==1)) && a12 <= 178 ) && (a13==1)) && (a1==4)))){ + a12 = ((((a12 + 279918) * 1) % 22)- -417); + a23 = (((a23 - -530971) * 1) + 12852); + a1 = 3; + a19 = 11; + + return -1; + } else if(((a19==9) && ( ((95 < a23) && (264 >= a23)) && ((a26==1) && ( ((395 < a12) && (441 >= a12)) && (((a1==3) && (input == 3)) && !(a13==1))))))){ + a12 = (((a12 - 511972) - 61175) * 1); + a23 = (((a23 / -5) * 5) - 40970); + a1 = 2; + a19 = 12; + a13 = 1; + + return -1; + } else if((((a13==1) && (((a26==1) && ((a19==12) && ((input == 3) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )))) && (a1==3))) && ((178 < a12) && (395 >= a12)) )){ + a12 = (((a12 - -421964) + 7906) * -1); + a23 = (((((a23 % 84)+ 180) - -1) / 5) + 180); + a19 = 13; + + return 22; + } else if((((a1==3) && (!(a13==1) && (((input == 3) && ((((a19==12) && ((264 < a23) && (476 >= a23)) ) || ( 476 < a23 && (a19==12))) || ( a23 <= 95 && (a19==13)))) && (a26==1)))) && a12 <= 178 )){ + a23 = ((((a23 % 105)+ 371) - 536502) - -536502); + a19 = 13; + a13 = 1; + + return -1; + } else if(((a26==1) && ((((a1==3) && ((a13==1) && ( 476 < a23 && (input == 6)))) && a12 <= 178 ) && (a19==13)))){ + a12 = (((((a12 + 0) % 108)+ 287) + 549760) - 549759); + a23 = (((((a23 * 9)/ 10) / 5) % 84)- -176); + a1 = 2; + a19 = 9; + + return -1; + } else if(((a26==1) && ((a13==1) && (((a1==3) && ((( ((264 < a23) && (476 >= a23)) || ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )) && (input == 3)) && 441 < a12 )) && (a19==9))))){ + if((a13==1)){ + a12 = ((((a12 % 22)+ 407) - 4) - -15); + a23 = ((((a23 % 299761)- -300237) / 5) - -287160); + a1 = 2; + a19 = 10; + + } else{ + a12 = (((a12 - 600020) - 311) - 2); + a23 = ((((a23 % 299761)+ 300237) - -1) + 0); + a1 = 2; + a19 = 10; + + } return 24; + } else if(((((((( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 5)) && (a26==1)) && (a19==9)) && 441 < a12 ) && (a1==3)) && !(a13==1))){ + if((a1==2)){ + a12 = ((((((a12 % 108)+ 277) * 9)/ 10) - 440852) + 440800); + a23 = ((((a23 - -272283) % 105)+ 369) + 2); + a1 = 2; + a19 = 13; + a13 = 1; + + } else{ + a12 = (((a12 + -599945) + -66) * 1); + a23 = ((((a23 % 300047)+ -299951) - 1) + -2); + a1 = 4; + a13 = 1; + + } return -1; + } else if((((a26==1) && ((a1==3) && (((input == 4) && (( 476 < a23 && (a19==12)) || ((a19==13) && a23 <= 95 ))) && 441 < a12 ))) && !(a13==1))){ + a12 = (((((a12 * 9)/ 10) - -50362) % 108)+ 261); + a23 = ((((a23 % 105)+ 369) / 5) + 227); + a1 = 2; + a19 = 13; + a13 = 1; + + return 24; + } else if(( ((395 < a12) && (441 >= a12)) && ((a26==1) && (((a1==2) && (!(a13==1) && ((input == 5) && ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) )))) && (a19==10))))){ + a12 = (((a12 + -51) - -306934) + -307049); + a23 = (((((a23 + 543248) % 84)+ 156) - -291828) - 291879); + a1 = 3; + a19 = 13; + + return 26; + } else if((((a13==1) && ((a26==1) && (( 441 < a12 && ((input == 5) && (a19==12))) && (a1==2)))) && 476 < a23 )){ + a12 = (((a12 - 365769) * 1) + -234158); + a1 = 3; + a19 = 9; + a13 = 0; + + return 26; + } else if(((a19==11) && (( 441 < a12 && ((a13==1) && (((input == 3) && ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) )) && (a1==3)))) && (a26==1)))){ + a12 = (((((a12 + -107633) % 108)+ 287) / 5) - -281); + a23 = (((((a23 - -463296) % 105)- -331) - -231323) + -231362); + a1 = 2; + a19 = 13; + + return -1; + } else if(((!(a13==1) && (((a26==1) && ((input == 6) && ((( 476 < a23 && (a19==10)) || ( a23 <= 95 && (a19==11))) || ( ((95 < a23) && (264 >= a23)) && (a19==11))))) && (a1==2))) && 441 < a12 )){ + a12 = (((a12 - 0) + -600139) - 24); + a23 = ((((((a23 - 0) * 9)/ 10) + 38990) % 300047)- 299951); + a1 = 3; + a19 = 13; + + return 22; + } else if((((input == 6) && ((((a19==13) && (( 476 < a23 && 441 < a12 ) && (a1==2))) && !(a13==1)) || ((a13==1) && ((a19==9) && ((a1==3) && ( a12 <= 178 && a23 <= 95 )))))) && (a26==1))){ + a12 = ((((a12 + 0) % 299779)+ 300220) + 1); + a23 = ((((a23 / 5) + 194493) * 10)/ 9); + a1 = 2; + a19 = 13; + a13 = 0; + + return 26; + } else if(( 441 < a12 && (((((input == 2) && ((((a19==11) && 476 < a23 ) || ((a19==12) && a23 <= 95 )) || ( ((95 < a23) && (264 >= a23)) && (a19==12)))) && (a26==1)) && (a1==3)) && (a13==1)))){ + if((a1==3)){ + a12 = (((((a12 / 5) / 5) + -138285) % 22)- -427); + a23 = ((((a23 % 84)+ 180) - 1) - -2); + a1 = 2; + a19 = 11; + + } else{ + a23 = ((((((a23 * 9)/ 10) % 84)- -179) - 240904) + 240905); + a19 = 9; + + } return 24; + } else if(((a13==1) && (((a1==2) && (((a26==1) && (( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 5))) && ((395 < a12) && (441 >= a12)) )) && (a19==12)))){ + if((a19==11)){ + a12 = (((a12 - -349246) * 1) + -349345); + a23 = ((((a23 % 105)- -308) - -362552) - 362490); + a1 = 3; + + } else{ + a12 = ((((a12 / 5) / 5) + 353214) * -1); + a23 = (((((a23 - 0) + 0) - 96379) % 105)+ 369); + a1 = 3; + a19 = 10; + a13 = 0; + + } return 22; + } else if((( ((178 < a12) && (395 >= a12)) && ((a19==10) && ((((input == 2) && (a26==1)) && (a1==2)) && ((264 < a23) && (476 >= a23)) ))) && !(a13==1))){ + + a19 = 12; + + return 26; + } else if(((((a19==13) && ((((input == 5) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 )) && (a26==1)) && a12 <= 178 )) && (a1==3)) && !(a13==1))){ + a12 = ((((((a12 % 108)+ 287) + 1) * 5) % 108)- -204); + a23 = ((((a23 % 299761)+ 477) - -297679) * 1); + a1 = 2; + a19 = 10; + + return -1; + } else if(((a26==1) && ((a1==3) && ((a19==10) && (((( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 5)) && (a13==1)) && ((395 < a12) && (441 >= a12)) ))))){ + a12 = (((a12 - 96838) + -357819) + -95628); + a23 = ((((a23 % 105)+ 268) - 509297) + 509382); + a1 = 2; + a13 = 0; + + return -1; + } else if(((a1==3) && ((a26==1) && (!(a13==1) && ( 441 < a12 && (((input == 6) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 )) && (a19==13))))))){ + a12 = (((a12 - 391998) - 208330) - 106); + a23 = ((((a23 / 5) - -202660) - 323173) - -504761); + a1 = 2; + a19 = 9; + + return 26; + } else if((!(a13==1) && (( 441 < a12 && (((a26==1) && ( ((264 < a23) && (476 >= a23)) && (input == 2))) && (a1==2))) && (a19==9)))){ + a12 = (((((a12 * 9)/ 10) % 22)- -410) * 1); + a23 = (((a23 + 544837) * 1) / 5); + a1 = 3; + + return 22; + } else if((!(a13==1) && ((((((input == 2) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )) && (a1==3)) && (a26==1)) && 441 < a12 ) && (a19==12)))){ + a12 = ((((a12 + 0) * 9)/ 10) + -558660); + a23 = ((((a23 % 84)+ 179) + 0) + 1); + a1 = 4; + a19 = 11; + + return 22; + } else if(( a12 <= 178 && (((a13==1) && (((input == 3) && (((a19==13) && a23 <= 95 ) || (( ((264 < a23) && (476 >= a23)) && (a19==12)) || ((a19==12) && 476 < a23 )))) && (a1==3))) && (a26==1)))){ + a12 = (((((a12 + 0) / 5) * 4) % 108)+ 286); + a23 = (((((a23 / 5) - -186263) + 66854) % 105)+ 277); + a1 = 2; + a19 = 10; + a13 = 0; + + return 26; + } else if(((a19==10) && ((a1==4) && ( a12 <= 178 && ((((a26==1) && (input == 2)) && ((95 < a23) && (264 >= a23)) ) && (a13==1)))))){ + a12 = (((((a12 - -97273) - -421335) * 1) % 108)- -286); + a23 = (((((a23 - -208) + 4) * 5) % 105)- -291); + a1 = 3; + a19 = 12; + a13 = 0; + + return -1; + } else if(((((a26==1) && (!(a13==1) && ( 441 < a12 && ((input == 2) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) ))))) && (a19==9)) && (a1==2))){ + a12 = (((a12 + -600299) - 142) + -1); + a23 = ((((a23 % 300047)- 299951) - 1) + -1); + a1 = 3; + a19 = 10; + + return 26; + } else if(( a23 <= 95 && (((a1==3) && ((a19==11) && ((a26==1) && ((a13==1) && (input == 5))))) && 441 < a12 ))){ + if( 476 < a23 ){ + a12 = ((((a12 / 5) % 108)+ 211) - 19); + a23 = ((((a23 % 299761)- -300237) + 2) + 0); + a1 = 2; + a19 = 10; + + } else{ + a12 = ((((a12 + -600426) - 8) + 129526) + -128953); + a23 = (((((a23 % 299761)- -300237) - 0) / 5) + 452217); + a19 = 10; + + } return 26; + } else if(((a1==3) && ((a26==1) && ((!(a13==1) && ( 441 < a12 && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 5)))) && (a19==12))))){ + if( 441 < a12 ){ + a12 = ((((a12 - 600038) + 115210) / 5) + -86422); + a23 = (((((a23 * 9)/ 10) / 5) % 105)+ 371); + a1 = 2; + a19 = 11; + a13 = 1; + + } else{ + a23 = (((((a23 % 105)- -369) + 1) / 5) + 273); + a1 = 2; + a19 = 9; + + } return 26; + } else if(((((a19==11) && ((a26==1) && (((input == 3) && ((395 < a12) && (441 >= a12)) ) && 476 < a23 ))) && (a13==1)) && (a1==3))){ + a12 = (((((a12 - -275250) + -275389) * 5) % 108)- -253); + a23 = ((((((a23 + -121759) % 84)+ 179) * 5) % 84)- -120); + a1 = 2; + a19 = 10; + + return -1; + } else if(( a12 <= 178 && (((((a1==3) && ((input == 2) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 ))) && (a19==11)) && !(a13==1)) && (a26==1)))){ + if((a1==5)){ + a12 = (((((a12 - 0) + 0) / 5) % 108)- -286); + a23 = (((((a23 / 5) % 105)- -342) + 335740) + -335777); + a19 = 12; + a13 = 1; + + } else{ + a23 = ((((a23 - 121306) + -357030) % 105)+ 369); + a19 = 10; + + } return -1; + } else if(((a1==3) && (((a26==1) && ( ((178 < a12) && (395 >= a12)) && ((a19==11) && ((input == 6) && (( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) || 476 < a23 ))))) && (a13==1)))){ + a12 = (((a12 / 5) - 18358) - 320503); + a23 = (((((a23 % 84)+ 138) - -201229) * 2) + -402636); + a19 = 13; + a13 = 0; + + return 24; + } else if((!(a13==1) && (( a12 <= 178 && ((a26==1) && ((( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) && (input == 3)) && (a1==3)))) && (a19==12)))){ + a12 = ((((a12 % 22)- -417) - -1) + -1); + a23 = (((((a23 * 9)/ 10) + 581041) % 105)- -294); + a19 = 11; + + return -1; + } else if(((((((a13==1) && ( ((395 < a12) && (441 >= a12)) && (input == 4))) && (a19==10)) && (a26==1)) && (a1==3)) && ((95 < a23) && (264 >= a23)) )){ + a12 = (((a12 * -5) - 204879) + -232083); + a23 = (((a23 * -5) - -200864) / -5); + a1 = 2; + a19 = 9; + + return -1; + } else if(((a13==1) && ((((a26==1) && ((( 476 < a23 || ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) )) && (input == 4)) && (a19==11))) && (a1==3)) && ((178 < a12) && (395 >= a12)) ))){ + a12 = ((((a12 * -5) + 186013) - -176108) - 511852); + a23 = ((((a23 / -5) / 5) + 229170) * -2); + a19 = 12; + a13 = 0; + + return 26; + } else if(((((a13==1) && ( ((395 < a12) && (441 >= a12)) && ((( ((264 < a23) && (476 >= a23)) || ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )) && (input == 5)) && (a26==1)))) && (a1==3)) && (a19==12))){ + a12 = (((((a12 * 5)/ 10) - -195129) + 316589) + -511693); + a23 = ((((a23 % 300047)- 299951) - 1) * 1); + a19 = 10; + + return 26; + } else if((((a1==2) && (((a13==1) && (((input == 4) && ( 476 < a23 || ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ))) && (a19==13))) && (a26==1))) && 441 < a12 )){ + a12 = ((((a12 + -600124) + -131) + 537001) - 536669); + a23 = ((((a23 % 105)+ 267) / 5) - -356); + a1 = 3; + a19 = 10; + a13 = 0; + + return 26; + } + return calculate_output4(input); + } + + int calculate_output4(int input) { + + + if(((((a1==3) && ((a19==9) && (!(a13==1) && (( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 6))))) && (a26==1)) && ((178 < a12) && (395 >= a12)) )){ + a12 = (((a12 - -20104) * 5) - -30634); + a23 = (((a23 + 0) + -600203) - 22); + a1 = 2; + a19 = 11; + + return 22; + } else if((((a26==1) && ((a13==1) && ( ((178 < a12) && (395 >= a12)) && ((a19==11) && ((input == 5) && (( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) || 476 < a23 )))))) && (a1==3))){ + a12 = (((a12 - 403197) + -162909) * 1); + a23 = (((((a23 % 299761)- -477) + 24281) + -305615) + 398720); + a19 = 10; + a13 = 0; + + return 26; + } else if(((a26==1) && ((((((input == 3) && ( 476 < a23 || ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ))) && ((178 < a12) && (395 >= a12)) ) && (a19==11)) && (a1==3)) && (a13==1)))){ + a12 = ((((a12 + -293294) - -374073) + 118735) - 304372); + a23 = (((a23 + -599934) * 1) * 1); + a19 = 10; + a13 = 0; + + return 24; + } else if(((a13==1) && (((a1==3) && (( a12 <= 178 && ((input == 2) && (( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) || 476 < a23 ))) && (a26==1))) && (a19==9)))){ + a23 = ((((((a23 * 9)/ 10) % 105)+ 362) - -446107) - 446192); + a19 = 12; + + return 26; + } else if(((a1==3) && (((a26==1) && ( a12 <= 178 && ((((a19==9) && 476 < a23 ) || ((a19==10) && a23 <= 95 )) && (input == 4)))) && !(a13==1)))){ + a23 = ((((a23 % 84)- -179) + -284881) + 284881); + a1 = 2; + a19 = 12; + + return -1; + } else if((((!(a13==1) && ( ((178 < a12) && (395 >= a12)) && ((a26==1) && (( ((264 < a23) && (476 >= a23)) || ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )) && (input == 6))))) && (a1==3)) && (a19==10))){ + a12 = (((a12 / 5) * -5) - 45045); + a23 = ((((a23 % 300047)+ -299951) * 1) - 0); + a1 = 2; + a19 = 13; + + return -1; + } else if(((a26==1) && (((a19==9) && ((((input == 2) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 )) && !(a13==1)) && (a1==3))) && ((178 < a12) && (395 >= a12)) ))){ + if((a13==1)){ + a12 = (((((a12 - 99303) * 5) / 5) % 22)- -440); + a23 = ((((a23 % 84)+ 111) / 5) * 5); + a19 = 12; + a13 = 1; + + } else{ + a12 = ((((a12 * 25)/ 10) + 455874) + 138853); + a23 = ((((a23 % 105)+ 266) * 1) - 1); + a1 = 2; + a19 = 10; + + } return 26; + } else if(((a26==1) && ((a1==3) && ( a12 <= 178 && (((input == 4) && ((( ((264 < a23) && (476 >= a23)) && (a19==12)) || ( 476 < a23 && (a19==12))) || ((a19==13) && a23 <= 95 ))) && (a13==1)))))){ + a12 = (((((a12 + 0) * 9)/ 10) % 108)+ 286); + a23 = ((((((a23 * 9)/ 10) % 84)+ 179) + -535647) - -535648); + a1 = 2; + a19 = 11; + + return -1; + } else if((((a13==1) && ((((input == 5) && ((( 476 < a23 && (a19==11)) || ( a23 <= 95 && (a19==12))) || ( ((95 < a23) && (264 >= a23)) && (a19==12)))) && 441 < a12 ) && (a1==3))) && (a26==1))){ + a12 = (((((a12 + -92099) * 1) + -426135) % 22)+ 418); + a23 = (((((a23 % 84)+ 180) / 5) / 5) - -150); + a1 = 2; + a19 = 12; + + return 26; + } else if(((((((a19==10) && (( ((264 < a23) && (476 >= a23)) || ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )) && (input == 4))) && (a26==1)) && (a1==3)) && ((178 < a12) && (395 >= a12)) ) && !(a13==1))){ + a12 = (((((a12 - -84121) - 260264) + 15185) % 22)- -433); + a23 = ((((a23 / 5) % 105)- -369) + 3); + a19 = 9; + + return 24; + } else if(((((((a26==1) && ((input == 2) && ((395 < a12) && (441 >= a12)) )) && ((95 < a23) && (264 >= a23)) ) && (a13==1)) && (a19==10)) && (a1==3))){ + a12 = (((a12 - 323224) - 211185) - 27979); + a23 = (((((a23 - -197) * 5) + 436811) % 105)- -360); + a19 = 11; + a13 = 0; + + return 26; + } else if((!(a13==1) && ((a19==13) && (((a1==2) && ( 441 < a12 && ((input == 6) && ( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) )))) && (a26==1))))){ + a12 = (((((a12 + -186455) % 22)- -418) - -215838) + -215837); + a23 = (((a23 + 231555) - -50632) - -317300); + a1 = 3; + a19 = 9; + + return 24; + } else if(((((a1==2) && ((((input == 3) && ((178 < a12) && (395 >= a12)) ) && (a19==12)) && (a26==1))) && ((264 < a23) && (476 >= a23)) ) && !(a13==1))){ + a12 = (((a12 + 174287) * 3) + 47070); + a23 = ((((a23 % 84)- -130) + 59742) + -59751); + a19 = 10; + + return 24; + } else if((( 441 < a12 && (((a19==12) && (!(a13==1) && ((( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) || 476 < a23 ) && (input == 6)))) && (a26==1))) && (a1==2))){ + a12 = ((((a12 / 5) + -567234) % 108)- -314); + a23 = (((((a23 % 105)+ 321) + -42) + -23600) - -23690); + a1 = 3; + a19 = 10; + a13 = 1; + + return 24; + } else if(((a1==2) && ((((a13==1) && (( a23 <= 95 && (input == 4)) && (a26==1))) && (a19==13)) && 441 < a12 ))){ + a12 = (((a12 + -599824) - 139) - 342); + a23 = ((((a23 % 299761)+ 300237) - -1) + 1); + a1 = 3; + + return 26; + } else if(((!(a13==1) && (((((input == 2) && a23 <= 95 ) && 441 < a12 ) && (a19==11)) && (a1==3))) && (a26==1))){ + a12 = (((((((a12 * 9)/ 10) % 108)+ 186) / 5) * 49)/ 10); + a23 = ((((a23 - -195321) * 1) % 299761)+ 300237); + a19 = 12; + + return -1; + } else if(((a13==1) && ( ((395 < a12) && (441 >= a12)) && ((a26==1) && ((a1==3) && ((a19==12) && (( ((264 < a23) && (476 >= a23)) || ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )) && (input == 3)))))))){ + a12 = ((((a12 * 5) * 5) * 5) * -5); + a23 = ((((a23 % 300047)+ -299951) / 5) - 10327); + a1 = 2; + a19 = 9; + a13 = 0; + + return -1; + } else if(((((((a26==1) && (( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) && (input == 4))) && ((395 < a12) && (441 >= a12)) ) && !(a13==1)) && (a19==10)) && (a1==2))){ + a12 = (((((a12 - -551060) + -551139) / 5) * 39)/ 10); + a23 = (((a23 / 5) - -512300) + 69111); + a19 = 12; + a13 = 1; + + return -1; + } else if((((!(a13==1) && ( 441 < a12 && ((input == 3) && (((a19==11) && ((95 < a23) && (264 >= a23)) ) || (((a19==10) && 476 < a23 ) || ((a19==11) && a23 <= 95 )))))) && (a26==1)) && (a1==2))){ + a12 = ((((a12 / 5) / 5) % 108)- -253); + a23 = ((((a23 % 300047)- 299951) / 5) / 5); + a1 = 3; + a19 = 10; + a13 = 1; + + return 26; + } else if(( a12 <= 178 && (( ((95 < a23) && (264 >= a23)) && (((a19==10) && ((input == 5) && (a26==1))) && (a1==3))) && !(a13==1)))){ + a12 = ((((((a12 % 22)- -419) + 27895) * 5) % 22)- -396); + a23 = ((((a23 - -206) / 5) * 45)/ 10); + a19 = 11; + + return -1; + } else if(( ((178 < a12) && (395 >= a12)) && ((a19==11) && (( a23 <= 95 && (((input == 4) && !(a13==1)) && (a26==1))) && (a1==2))))){ + a12 = (((((a12 % 22)- -404) + -6) / 5) + 353); + a23 = ((((((a23 * 9)/ 10) * 1) + 274528) % 84)- -179); + a19 = 9; + + return 22; + } else if(( ((178 < a12) && (395 >= a12)) && ( a23 <= 95 && (((a26==1) && (((input == 6) && (a13==1)) && (a1==3))) && (a19==10))))){ + + return 26; + } else if(( 441 < a12 && ((a1==3) && ((a26==1) && ((!(a13==1) && ((( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) || 476 < a23 ) && (input == 4))) && (a19==10)))))){ + if( a23 <= 95 ){ + a12 = ((((a12 % 22)- -404) - -1) - 9); + a23 = ((((a23 / 5) % 105)- -353) + -72); + a19 = 11; + a13 = 1; + + } else{ + a12 = (((a12 + -599922) + 496353) - 496304); + a23 = (((((((a23 % 84)+ 170) * 9)/ 10) / 5) * 32)/ 10); + a1 = 2; + a13 = 1; + + } return -1; + } else if(((( 441 < a12 && (!(a13==1) && (((input == 5) && (a26==1)) && (a19==13)))) && (a1==2)) && a23 <= 95 )){ + a12 = ((((a12 + -599936) + 109088) + -39539) - 69562); + a1 = 3; + a19 = 9; + + return 26; + } else if((((a13==1) && ( 476 < a23 && ((a1==3) && (((a19==13) && (input == 3)) && (a26==1))))) && a12 <= 178 )){ + a12 = ((((a12 % 22)+ 419) - -420634) - 420635); + a23 = ((((a23 - 0) + 0) / 5) * -4); + a1 = 2; + a19 = 10; + + return 26; + } else if(((a13==1) && (((((a19==13) && ((input == 5) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) ))) && (a26==1)) && ((178 < a12) && (395 >= a12)) ) && (a1==3)))){ + a12 = ((((((a12 - 532214) % 22)+ 436) * 5) % 22)- -399); + a23 = ((((a23 + 370462) % 299761)- -300237) - 0); + a1 = 2; + a19 = 9; + a13 = 0; + + return 22; + } else if((((!(a13==1) && ( a12 <= 178 && ((a19==10) && ( ((264 < a23) && (476 >= a23)) && (input == 4))))) && (a26==1)) && (a1==3))){ + a12 = (((((a12 * 9)/ 10) % 22)- -419) - 2); + a23 = (((a23 * 5) - -480928) + 51825); + a19 = 9; + + return -1; + } else if(((((((a1==2) && ((input == 2) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) || ((264 < a23) && (476 >= a23)) ))) && (a13==1)) && (a26==1)) && (a19==12)) && 441 < a12 )){ + if( a23 <= 95 ){ + a12 = (((((a12 % 22)- -414) - 3) + -91701) - -91695); + a23 = (((((a23 % 105)- -371) * 5) % 105)+ 268); + a1 = 3; + a19 = 11; + + } else{ + a12 = (((((a12 % 108)- -227) - -18975) - -14707) + -33621); + a23 = (((((a23 % 299761)- -300237) * 1) / 5) + 281252); + a1 = 3; + a19 = 9; + + } return 24; + } else if(((a26==1) && ((a13==1) && (((a1==2) && ((input == 3) && (( a23 <= 95 && (a19==11)) || (((a19==10) && ((264 < a23) && (476 >= a23)) ) || ((a19==10) && 476 < a23 ))))) && 441 < a12 )))){ + a12 = ((((a12 / 5) % 108)+ 231) - -21); + a23 = (((((a23 - 0) % 299761)+ 300237) / 5) - -324315); + a1 = 3; + a19 = 10; + a13 = 0; + + return 26; + } else if(((a13==1) && ((a19==12) && ( 476 < a23 && ((a1==2) && (( 441 < a12 && (input == 6)) && (a26==1))))))){ + a12 = ((((a12 / 5) % 22)+ 407) + 3); + a23 = ((((a23 % 105)+ 331) - -8) + -68); + a1 = 3; + a19 = 10; + + return 26; + } else if(((a26==1) && ((a1==3) && ((((a13==1) && (( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 5))) && 441 < a12 ) && (a19==12))))){ + a23 = (((a23 - 600088) + -133) + -41); + a19 = 13; + + return 26; + } else if(((a13==1) && (((a1==3) && (((input == 3) && ((( 476 < a23 && (a19==11)) || ( a23 <= 95 && (a19==12))) || ( ((95 < a23) && (264 >= a23)) && (a19==12)))) && (a26==1))) && a12 <= 178 ))){ + a12 = ((((a12 % 22)- -419) + -1) + -1); + a23 = ((((((a23 % 105)+ 370) * 5) + -339501) % 105)+ 438); + a19 = 11; + a13 = 0; + + return 22; + } else if(((a19==11) && ( a23 <= 95 && (((((a1==2) && (input == 5)) && (a26==1)) && ((395 < a12) && (441 >= a12)) ) && (a13==1))))){ + if((a13==1)){ + a12 = (((((a12 * 10)/ 12) + -113) * 10)/ 9); + a1 = 3; + a19 = 13; + a13 = 0; + + } else{ + a12 = ((((a12 - 220010) * 10)/ 9) - 237679); + a23 = ((((a23 % 299761)- -300237) * 1) * 1); + a1 = 3; + a13 = 0; + + } return 26; + } else if(( ((178 < a12) && (395 >= a12)) && (((a19==13) && ((a1==2) && (!(a13==1) && ((input == 2) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 ))))) && (a26==1)))){ + a12 = (((a12 + 54941) - -487045) * 1); + a23 = ((((a23 % 84)- -159) + 5) - -10); + return 26; + } else if(( ((178 < a12) && (395 >= a12)) && ((((a26==1) && (((input == 5) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 )) && (a13==1))) && (a1==3)) && (a19==12)))){ + a12 = ((((a12 % 22)- -413) - 77011) - -77004); + a23 = (((((a23 - 387067) % 105)- -371) - -304603) + -304602); + a1 = 2; + a19 = 10; + + return 26; + } else if((( 441 < a12 && ((a1==3) && (((input == 4) && ((((a19==9) && ((264 < a23) && (476 >= a23)) ) || ( 476 < a23 && (a19==9))) || ((a19==10) && a23 <= 95 ))) && (a26==1)))) && !(a13==1))){ + a12 = (((((a12 * 9)/ 10) / 5) % 108)- -224); + a23 = (((((a23 % 84)- -180) / 5) + -309403) + 309492); + a1 = 2; + a19 = 13; + a13 = 1; + + return 24; + } else if(((a26==1) && ((a13==1) && (((a1==3) && ( a12 <= 178 && ((input == 2) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) )))) && (a19==10))))){ + a12 = (((((a12 - -225091) * 1) + 40542) % 108)- -286); + a23 = ((((a23 % 300047)- 299951) * 1) * 1); + a19 = 9; + + return 22; + } else if((((a19==13) && (((a13==1) && (( 441 < a12 && (input == 6)) && a23 <= 95 )) && (a26==1))) && (a1==3))){ + a12 = (((((a12 / 5) - 554343) - 20473) % 108)+ 325); + a23 = (((((a23 + 87500) * 1) - -104186) % 105)+ 371); + a19 = 9; + a13 = 0; + + return 26; + } else if((((a1==3) && (( 441 < a12 && ((a13==1) && (( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 3)))) && (a26==1))) && (a19==12))){ + if((a1==6)){ + a12 = ((((a12 % 108)+ 206) - 253754) - -253733); + a23 = ((((a23 - 0) + 0) % 105)+ 346); + a1 = 2; + a19 = 9; + + } else{ + a12 = (((((a12 % 108)+ 249) - 48) * 9)/ 10); + a23 = ((((a23 + -551245) - 34227) + -10559) + -3995); + a1 = 2; + a19 = 9; + + } return -1; + } else if(((a19==9) && (!(a13==1) && ( ((395 < a12) && (441 >= a12)) && ((( ((95 < a23) && (264 >= a23)) && (input == 6)) && (a26==1)) && (a1==3)))))){ + a12 = (((a12 + 353246) - 35918) + -353248); + a23 = ((((a23 + 199) * 9)/ 10) - 0); + a19 = 13; + a13 = 1; + + return 22; + } else if((((a13==1) && ( ((178 < a12) && (395 >= a12)) && (((a19==12) && ((input == 5) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) ))) && (a1==3)))) && (a26==1))){ + a23 = ((((a23 % 84)- -180) - 1) + 1); + return 26; + } else if(((((((a19==9) && ((input == 3) && ( a23 <= 95 || ((95 < a23) && (264 >= a23)) ))) && (a26==1)) && !(a13==1)) && a12 <= 178 ) && (a1==4))){ + a23 = (((a23 / 5) + 353965) / 5); + a1 = 2; + + return 26; + } else if(( 441 < a12 && ((a13==1) && ((a1==2) && (((a19==11) && (( ((264 < a23) && (476 >= a23)) || 476 < a23 ) && (input == 2))) && (a26==1)))))){ + a12 = (((a12 - 600083) * 1) * 1); + a23 = ((((a23 * 9)/ 10) + -597332) - 1732); + a19 = 9; + + return -1; + } else if(((!(a13==1) && ((a19==11) && ((a26==1) && ( ((395 < a12) && (441 >= a12)) && ((input == 4) && (a1==3)))))) && ((264 < a23) && (476 >= a23)) )){ + a12 = (((a12 - 262195) - 304560) / 5); + a23 = ((((((a23 % 84)+ 114) / 5) / 5) * 299)/ 10); + a1 = 2; + a19 = 10; + + return -1; + } else if((((a13==1) && ( 441 < a12 && (((input == 2) && (( a23 <= 95 && (a19==11)) || (((a19==10) && ((264 < a23) && (476 >= a23)) ) || ( 476 < a23 && (a19==10))))) && (a1==2)))) && (a26==1))){ + a12 = ((((a12 / 5) * 4) % 108)- -252); + a23 = ((((a23 % 300047)- 299951) + 494304) - 494304); + a1 = 3; + a19 = 9; + a13 = 0; + + return 22; + } else if(((((a26==1) && ((a1==2) && ((a19==9) && (( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) && (input == 2))))) && ((178 < a12) && (395 >= a12)) ) && !(a13==1))){ + a23 = (((((a23 * 5) * 5) / 5) % 84)+ 136); + a19 = 10; + + return 22; + } else if(((a1==2) && ((!(a13==1) && ( ((395 < a12) && (441 >= a12)) && ((input == 6) && ((( 476 < a23 && (a19==10)) || ( a23 <= 95 && (a19==11))) || ((a19==11) && ((95 < a23) && (264 >= a23)) ))))) && (a26==1)))){ + if( ((264 < a23) && (476 >= a23)) ){ + a23 = ((((((a23 * 9)/ 10) - 34131) - -63141) % 105)- -369); + a1 = 3; + a19 = 11; + a13 = 1; + + } else{ + a12 = ((((a12 * 5) % 108)+ 261) + -13); + a23 = ((((a23 % 299761)- -300237) - 0) - 0); + a1 = 3; + a19 = 9; + a13 = 1; + + } return 22; + } else if(((a1==3) && ((a26==1) && (!(a13==1) && ( a12 <= 178 && ((a19==9) && ((input == 4) && (( a23 <= 95 || ((95 < a23) && (264 >= a23)) ) || ((264 < a23) && (476 >= a23)) )))))))){ + a23 = (((((a23 / 5) % 84)+ 180) - -445536) - 445535); + a19 = 13; + a13 = 1; + + return -1; + } else if(((((a1==2) && (((((a19==12) && a23 <= 95 ) || (( ((264 < a23) && (476 >= a23)) && (a19==11)) || ( 476 < a23 && (a19==11)))) && (input == 5)) && (a26==1))) && 441 < a12 ) && !(a13==1))){ + a12 = ((((a12 * 9)/ 10) - 596263) - 1898); + a23 = ((((((a23 * 9)/ 10) * 1) * 1) % 300047)- 299951); + a1 = 3; + a19 = 13; + + return 22; + } else if(((((a1==3) && (!(a13==1) && (((input == 5) && ( ((264 < a23) && (476 >= a23)) || 476 < a23 )) && (a26==1)))) && a12 <= 178 ) && (a19==11))){ + a23 = (((((a23 + -26685) % 105)+ 369) / 5) + 259); + a19 = 13; + a13 = 1; + + return -1; + } else if((((!(a13==1) && (((((a19==10) && a23 <= 95 ) || (((a19==9) && ((264 < a23) && (476 >= a23)) ) || ((a19==9) && 476 < a23 ))) && (input == 3)) && ((395 < a12) && (441 >= a12)) )) && (a26==1)) && (a1==2))){ + a12 = (((a12 + -48976) * 5) * 2); + a23 = ((((a23 - 0) - 0) % 84)+ 179); + a1 = 3; + a19 = 13; + a13 = 1; + + return 22; + } else if((!(a13==1) && ((a26==1) && ((a19==10) && (((a1==3) && (( ((95 < a23) && (264 >= a23)) || ((264 < a23) && (476 >= a23)) ) && (input == 6))) && ((395 < a12) && (441 >= a12)) ))))){ + a12 = (((a12 / 5) - 80108) - 56858); + a23 = ((((a23 - 466137) - 92333) % 84)+ 235); + a19 = 13; + + return -1; + } else if(((a26==1) && ((((a1==3) && (((((a19==10) && ((264 < a23) && (476 >= a23)) ) || ((a19==10) && 476 < a23 )) || ((a19==11) && a23 <= 95 )) && (input == 3))) && (a13==1)) && a12 <= 178 ))){ + a23 = ((((a23 % 300047)- 299951) - 2) - 1); + a19 = 13; + + return 26; + } else if(((a26==1) && ((a1==3) && ((a13==1) && ( ((178 < a12) && (395 >= a12)) && ((input == 6) && (( a23 <= 95 && (a19==11)) || (((a19==10) && ((264 < a23) && (476 >= a23)) ) || ((a19==10) && 476 < a23 ))))))))){ + if((a13==1)){ + a12 = (((((a12 * 5) % 22)+ 413) - 5096) - -5090); + a23 = ((((a23 / 5) + 419823) % 105)- -291); + a19 = 11; + a13 = 0; + + } else{ + a12 = (((a12 - 415856) + -88770) * 1); + a23 = ((((a23 % 299761)+ 300237) + 2) + 0); + a19 = 13; + + } return -1; + } else if(((!(a13==1) && (((a26==1) && ((input == 2) && ((((a19==9) && 476 < a23 ) || ((a19==10) && a23 <= 95 )) || ( ((95 < a23) && (264 >= a23)) && (a19==10))))) && 441 < a12 )) && (a1==2))){ + a12 = (((a12 + -481763) * 1) - 118530); + a23 = (((((a23 + 0) % 84)- -180) - -206619) - 206618); + a1 = 3; + a19 = 12; + + return 26; + } else if(((((a1==3) && (((input == 4) && ((( 476 < a23 && (a19==10)) || ( a23 <= 95 && (a19==11))) || ( ((95 < a23) && (264 >= a23)) && (a19==11)))) && (a26==1))) && !(a13==1)) && ((395 < a12) && (441 >= a12)) )){ + a12 = (((a12 / -5) - 355145) * 1); + a23 = ((((((a23 * 9)/ 10) - -38404) + 18242) % 300047)- 299951); + a1 = 2; + a19 = 9; + a13 = 1; + + return -1; + } else if((!(a13==1) && ( ((95 < a23) && (264 >= a23)) && (((a19==10) && ((a1==3) && ((input == 2) && (a26==1)))) && a12 <= 178 )))){ + a12 = ((((a12 % 22)+ 419) / 5) + 340); + a23 = (((a23 - -202) - 15) + -16); + a19 = 11; + + return -1; + } else if((!(a13==1) && (((a26==1) && ( ((395 < a12) && (441 >= a12)) && ((input == 5) && ((( ((264 < a23) && (476 >= a23)) && (a19==9)) || ( 476 < a23 && (a19==9))) || ((a19==10) && a23 <= 95 ))))) && (a1==2)))){ + if((a19==10)){ + a12 = (((((a12 + -88) * 9)/ 10) - 130319) - -130251); + a23 = (((((a23 * 9)/ 10) % 300047)+ -299951) * 1); + a1 = 3; + a19 = 12; + a13 = 1; + + } else{ + a23 = (((a23 / 5) + 413984) / 5); + a19 = 9; + + } return 26; + } else if(((a1==2) && ((((((( ((264 < a23) && (476 >= a23)) && (a19==10)) || ((a19==10) && 476 < a23 )) || ( a23 <= 95 && (a19==11))) && (input == 5)) && (a26==1)) && (a13==1)) && 441 < a12 ))){ + a12 = ((((a12 / 5) - 500088) * 10)/ 9); + a23 = (((((a23 + 0) + 0) - 0) % 105)+ 370); + a1 = 3; + a19 = 9; + a13 = 0; + + return 22; + } else if(( ((395 < a12) && (441 >= a12)) && ((((input == 5) && ((((a19==9) && ((95 < a23) && (264 >= a23)) ) && !(a13==1)) || ((( 476 < a23 && (a19==13)) && (a13==1)) || (!(a13==1) && ((a19==9) && a23 <= 95 ))))) && (a26==1)) && (a1==2)))){ + a12 = ((((a12 * 10)/ 12) * 5) - 1454); + a23 = ((((((a23 * 9)/ 10) + -11122) - 7238) % 300047)- 299951); + a19 = 11; + a13 = 0; + + return 26; + } + return -2; + } + +int main() +{ + // default output + int output = -1; + + // main i/o-loop + while(1) + { + // read input + int input; + input = __VERIFIER_nondet_int(); + if ((input != 2) && (input != 3) && (input != 4) && (input != 5) && (input != 6)) return -2; + + // operate eca engine + output = calculate_output(input); + } +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem14_label00_true-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem14_label00_true-unreach-call.c new file mode 100644 index 000000000..dbfe1b717 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem14_label00_true-unreach-call.c @@ -0,0 +1,890 @@ +extern void __VERIFIER_error(void); +extern int __VERIFIER_nondet_int(void); +extern void exit(int); + + // inputs + int inputD = 4; + int inputB = 2; + int inputC = 3; + int inputF = 6; + int inputE = 5; + int inputA = 1; + + + int a21 = 7; + int a15 = 8; + int a12 = -49; + int a24 = 1; + + int calculate_output(int input) { + if(((( 80 < a12 && (a24==1)) && (a15==7)) && (a21==6))){ + error_54: exit(0); + } + if(((( a12 <= -43 && (a24==1)) && (a15==7)) && (a21==8))){ + error_41: exit(0); + } + if(((( ((11 < a12) && (80 >= a12)) && (a24==1)) && (a15==5)) && (a21==9))){ + error_12: exit(0); + } + if(((( a12 <= -43 && (a24==1)) && (a15==5)) && (a21==9))){ + error_2: exit(0); + } + if(((( ((-43 < a12) && (11 >= a12)) && (a24==1)) && (a15==6)) && (a21==10))){ + error_28: exit(0); + } + if(((( ((-43 < a12) && (11 >= a12)) && (a24==1)) && (a15==7)) && (a21==6))){ + error_44: exit(0); + } + if(((( ((-43 < a12) && (11 >= a12)) && (a24==1)) && (a15==5)) && (a21==10))){ + error_8: exit(0); + } + if(((( a12 <= -43 && (a24==1)) && (a15==6)) && (a21==9))){ + error_22: exit(0); + } + if(((( 80 < a12 && (a24==1)) && (a15==7)) && (a21==10))){ + error_58: exit(0); + } + if(((( a12 <= -43 && (a24==1)) && (a15==7)) && (a21==10))){ + error_43: exit(0); + } + if(((( ((11 < a12) && (80 >= a12)) && (a24==1)) && (a15==6)) && (a21==6))){ + error_29: exit(0); + } + if(((( 80 < a12 && (a24==1)) && (a15==7)) && (a21==8))){ + error_56: exit(0); + } + if(((( 80 < a12 && (a24==1)) && (a15==6)) && (a21==9))){ + error_37: exit(0); + } + if(((( a12 <= -43 && (a24==1)) && (a15==7)) && (a21==7))){ + error_40: exit(0); + } + if(((( 80 < a12 && (a24==1)) && (a15==5)) && (a21==10))){ + error_18: exit(0); + } + if(((( ((11 < a12) && (80 >= a12)) && (a24==1)) && (a15==5)) && (a21==8))){ + error_11: exit(0); + } + if(((( ((11 < a12) && (80 >= a12)) && (a24==1)) && (a15==7)) && (a21==9))){ + error_52: exit(0); + } + if(((( ((11 < a12) && (80 >= a12)) && (a24==1)) && (a15==6)) && (a21==8))){ + error_31: exit(0); + } + if(((( ((11 < a12) && (80 >= a12)) && (a24==1)) && (a15==5)) && (a21==10))){ + error_13: exit(0); + } + if(((( a12 <= -43 && (a24==1)) && (a15==7)) && (a21==6))){ + error_39: exit(0); + } + if(((( 80 < a12 && (a24==1)) && (a15==5)) && (a21==6))){ + error_14: exit(0); + } + if(((( 80 < a12 && (a24==1)) && (a15==6)) && (a21==6))){ + error_34: exit(0); + } + if(((( ((11 < a12) && (80 >= a12)) && (a24==1)) && (a15==5)) && (a21==7))){ + error_10: exit(0); + } + if(((( ((-43 < a12) && (11 >= a12)) && (a24==1)) && (a15==6)) && (a21==9))){ + error_27: exit(0); + } + if(((( 80 < a12 && (a24==1)) && (a15==7)) && (a21==9))){ + error_57: exit(0); + } + if(((( a12 <= -43 && (a24==1)) && (a15==5)) && (a21==6))){ + globalError: exit(0); + } + if(((( a12 <= -43 && (a24==1)) && (a15==6)) && (a21==10))){ + error_23: exit(0); + } + if(((( ((-43 < a12) && (11 >= a12)) && (a24==1)) && (a15==7)) && (a21==9))){ + error_47: exit(0); + } + if(((( a12 <= -43 && (a24==1)) && (a15==6)) && (a21==8))){ + error_21: exit(0); + } + if(((( ((11 < a12) && (80 >= a12)) && (a24==1)) && (a15==7)) && (a21==8))){ + error_51: exit(0); + } + if(((( ((-43 < a12) && (11 >= a12)) && (a24==1)) && (a15==7)) && (a21==7))){ + error_45: exit(0); + } + if(((( ((11 < a12) && (80 >= a12)) && (a24==1)) && (a15==7)) && (a21==7))){ + error_50: exit(0); + } + if(((( ((-43 < a12) && (11 >= a12)) && (a24==1)) && (a15==7)) && (a21==10))){ + error_48: exit(0); + } + if(((( ((-43 < a12) && (11 >= a12)) && (a24==1)) && (a15==7)) && (a21==8))){ + error_46: exit(0); + } + if(((( a12 <= -43 && (a24==1)) && (a15==8)) && (a21==6))){ + error_59: exit(0); + } + if(((( ((-43 < a12) && (11 >= a12)) && (a24==1)) && (a15==6)) && (a21==6))){ + error_24: exit(0); + } + if(((( a12 <= -43 && (a24==1)) && (a15==7)) && (a21==9))){ + error_42: exit(0); + } + if(((( ((11 < a12) && (80 >= a12)) && (a24==1)) && (a15==6)) && (a21==7))){ + error_30: exit(0); + } + if(((( 80 < a12 && (a24==1)) && (a15==6)) && (a21==7))){ + error_35: exit(0); + } + if(((( ((11 < a12) && (80 >= a12)) && (a24==1)) && (a15==5)) && (a21==6))){ + error_9: exit(0); + } + if(((( 80 < a12 && (a24==1)) && (a15==5)) && (a21==8))){ + error_16: exit(0); + } + if(((( ((-43 < a12) && (11 >= a12)) && (a24==1)) && (a15==5)) && (a21==9))){ + error_7: exit(0); + } + if(((( 80 < a12 && (a24==1)) && (a15==6)) && (a21==8))){ + error_36: exit(0); + } + if(((( ((11 < a12) && (80 >= a12)) && (a24==1)) && (a15==7)) && (a21==10))){ + error_53: exit(0); + } + if(((( 80 < a12 && (a24==1)) && (a15==6)) && (a21==10))){ + error_38: exit(0); + } + if(((( a12 <= -43 && (a24==1)) && (a15==5)) && (a21==10))){ + error_3: exit(0); + } + if(((( ((-43 < a12) && (11 >= a12)) && (a24==1)) && (a15==5)) && (a21==6))){ + error_4: exit(0); + } + if(((( a12 <= -43 && (a24==1)) && (a15==5)) && (a21==7))){ + error_0: __VERIFIER_error(); + } + if(((( a12 <= -43 && (a24==1)) && (a15==5)) && (a21==8))){ + error_1: exit(0); + } + if(((( ((11 < a12) && (80 >= a12)) && (a24==1)) && (a15==6)) && (a21==9))){ + error_32: exit(0); + } + if(((( 80 < a12 && (a24==1)) && (a15==5)) && (a21==9))){ + error_17: exit(0); + } + if(((( 80 < a12 && (a24==1)) && (a15==7)) && (a21==7))){ + error_55: exit(0); + } + if(((( ((11 < a12) && (80 >= a12)) && (a24==1)) && (a15==6)) && (a21==10))){ + error_33: exit(0); + } + if(((( ((11 < a12) && (80 >= a12)) && (a24==1)) && (a15==7)) && (a21==6))){ + error_49: exit(0); + } + if(((( a12 <= -43 && (a24==1)) && (a15==6)) && (a21==7))){ + error_20: exit(0); + } + if(((( ((-43 < a12) && (11 >= a12)) && (a24==1)) && (a15==5)) && (a21==8))){ + error_6: exit(0); + } + if(((( a12 <= -43 && (a24==1)) && (a15==6)) && (a21==6))){ + error_19: exit(0); + } + if(((( ((-43 < a12) && (11 >= a12)) && (a24==1)) && (a15==5)) && (a21==7))){ + error_5: exit(0); + } + if(((( ((-43 < a12) && (11 >= a12)) && (a24==1)) && (a15==6)) && (a21==7))){ + error_25: exit(0); + } + if(((( 80 < a12 && (a24==1)) && (a15==5)) && (a21==7))){ + error_15: exit(0); + } + if(((( ((-43 < a12) && (11 >= a12)) && (a24==1)) && (a15==6)) && (a21==8))){ + error_26: exit(0); + } + + if((((a24==1) && ( ((11 < a12) && (80 >= a12)) && ((input == 5) && (a15==8)))) && (a21==9))){ + a12 = ((((a12 + 555500) * -1)/ 10) * 5); + a15 = 5; + a21 = 6; + + return -1; + } else if((((a15==9) && ((((a21==9) || ((a21==7) || (a21==8))) && (input == 5)) && a12 <= -43 )) && (a24==1))){ + + a15 = 5; + a21 = 6; + + return -1; + } else if(((a15==9) && (( ((-43 < a12) && (11 >= a12)) && ((a24==1) && (input == 2))) && (a21==8)))){ + a12 = (((a12 - -571629) / 5) + -404132); + a15 = 5; + a21 = 6; + + return -1; + } else if(((a24==1) && ((a15==8) && ( ((11 < a12) && (80 >= a12)) && ((input == 1) && ((a21==7) || (a21==8))))))){ + a12 = (((a12 - 268644) + -323718) + -3883); + a15 = 5; + a21 = 6; + + return -1; + } else if((((((a21==10) && ( 80 < a12 && (a15==8))) || (((a15==9) && a12 <= -43 ) && (a21==6))) && (input == 2)) && (a24==1))){ + a12 = (((a12 / 5) + -345781) / 5); + a15 = 5; + a21 = 6; + + return -1; + } else if(((a24==1) && ((a15==9) && ((((a21==6) && 80 < a12 ) || (((a21==9) && ((11 < a12) && (80 >= a12)) ) || ( ((11 < a12) && (80 >= a12)) && (a21==10)))) && (input == 5))))){ + a12 = (((((a12 % 34)+ 23) - -139662) - 547970) - -408298); + a15 = 6; + a21 = 6; + + return -1; + } else if((( a12 <= -43 && ((((a21==9) || ((a21==7) || (a21==8))) && (input == 4)) && (a24==1))) && (a15==9))){ + + a15 = 5; + a21 = 6; + + return -1; + } else if((((((input == 2) && (a24==1)) && ((11 < a12) && (80 >= a12)) ) && (a21==9)) && (a15==8))){ + a12 = (((a12 - -334333) + 32000) / 5); + a21 = 8; + + return 22; + } else if(((((( ((-43 < a12) && (11 >= a12)) && (a21==10)) || ( ((11 < a12) && (80 >= a12)) && (a21==6))) && (input == 2)) && (a24==1)) && (a15==8))){ + a12 = ((((a12 - 438298) * 1) + 564710) - 684902); + a15 = 5; + a21 = 6; + + return -1; + } else if(((a15==9) && (((input == 1) && ((( a12 <= -43 && (a21==10)) || ((a21==6) && ((-43 < a12) && (11 >= a12)) )) || ( ((-43 < a12) && (11 >= a12)) && (a21==7)))) && (a24==1)))){ + a12 = ((((a12 % 299978)+ -300020) * 1) - 3); + a15 = 5; + a21 = 6; + + return -1; + } else if((((a24==1) && (((input == 6) && ((a21==7) || (a21==8))) && 80 < a12 )) && (a15==9))){ + + a21 = 9; + + return 26; + } else if(( ((-43 < a12) && (11 >= a12)) && ((a15==9) && ((a24==1) && (((a21==9) || (a21==10)) && (input == 2)))))){ + + a15 = 6; + a21 = 9; + + return -1; + } else if((((((input == 5) && (a15==8)) && ((-43 < a12) && (11 >= a12)) ) && (a21==9)) && (a24==1))){ + + a21 = 10; + + return 24; + } else if((( 80 < a12 && ((a15==8) && (((a21==8) || (a21==9)) && (input == 3)))) && (a24==1))){ + a12 = ((((a12 * -6)/ 10) - 40423) + -165586); + a15 = 5; + a21 = 6; + + return -1; + } else if(((input == 4) && ((((a15==9) && ((a24==1) && 80 < a12 )) && (a21==10)) || ((a21==6) && ((a15==5) && ((a24==2) && a12 <= -43 )))))){ + a12 = ((((a12 / 5) % 26)+ -16) + 1); + a24 = 1; + a15 = 6; + a21 = 10; + + return -1; + } else if(((((a24==1) && ((input == 3) && a12 <= -43 )) && (a21==7)) && (a15==8))){ + + a15 = 5; + a21 = 6; + + return -1; + } else if(((a24==1) && (((( 80 < a12 && (a15==8)) && (a21==10)) || (((a15==9) && a12 <= -43 ) && (a21==6))) && (input == 3)))){ + a12 = ((((a12 - 0) - 0) / 5) + -200550); + a15 = 5; + a21 = 6; + + return -1; + } else if((((a24==1) && ((a15==9) && (((a21==7) || (a21==8)) && (input == 3)))) && 80 < a12 )){ + a12 = ((((a12 * 9)/ 10) / 5) + -505559); + a15 = 7; + a21 = 10; + + return -1; + } else if((((((((a21==8) || (a21==9)) || (a21==10)) && (input == 5)) && a12 <= -43 ) && (a15==8)) && (a24==1))){ + + a15 = 5; + a21 = 6; + + return -1; + } else if(((((a15==9) && ((input == 1) && (a21==8))) && (a24==1)) && ((-43 < a12) && (11 >= a12)) )){ + a12 = (((a12 + -386239) - 148442) - -217864); + a15 = 5; + a21 = 6; + + return -1; + } else if((((((((a21==8) || (a21==9)) || (a21==10)) && (input == 3)) && (a15==8)) && a12 <= -43 ) && (a24==1))){ + + a15 = 5; + a21 = 6; + + return -1; + } else if(((a24==1) && (((a15==8) && ((input == 1) && (a21==9))) && ((11 < a12) && (80 >= a12)) ))){ + a12 = (((a12 / 5) + -16723) / 5); + a15 = 5; + a21 = 6; + + return -1; + } else if(((a15==9) && ( 80 < a12 && ((a24==1) && (((a21==7) || (a21==8)) && (input == 4)))))){ + + a15 = 7; + a21 = 10; + + return -1; + } else if(( 80 < a12 && ((a15==9) && (((input == 2) && ((a21==7) || (a21==8))) && (a24==1))))){ + a12 = (((((a12 * 9)/ 10) / 5) * 10)/ -3); + a15 = 6; + a21 = 9; + + return -1; + } else if((((((input == 6) && ((11 < a12) && (80 >= a12)) ) && (a21==9)) && (a15==8)) && (a24==1))){ + a12 = (((a12 + -285349) + -46510) + -209836); + a15 = 5; + a21 = 6; + + return -1; + } else if(((((a24==1) && ((input == 1) && ((a21==8) || ((a21==6) || (a21==7))))) && (a15==9)) && ((11 < a12) && (80 >= a12)) )){ + + a15 = 6; + a21 = 8; + + return -1; + } else if(((((a21==10) && (( 80 < a12 && (a24==1)) && (a15==9))) || (((a15==5) && ((a24==2) && a12 <= -43 )) && (a21==6))) && (input == 3))){ + a12 = ((((a12 % 26)- 15) + 426288) + -426288); + a24 = 1; + a15 = 7; + a21 = 6; + + return -1; + } else if(((((((a21==7) && ((-43 < a12) && (11 >= a12)) ) || (((a21==10) && a12 <= -43 ) || ( ((-43 < a12) && (11 >= a12)) && (a21==6)))) && (input == 5)) && (a24==1)) && (a15==9))){ + a12 = ((((a12 % 299978)- 300020) + -1) + -1); + a15 = 5; + a21 = 6; + + return -1; + } else if((((((input == 1) && (((a21==7) || (a21==8)) || (a21==9))) && (a15==9)) && a12 <= -43 ) && (a24==1))){ + + a15 = 5; + a21 = 6; + + return -1; + } else if(((a15==9) && ((a24==1) && (((input == 6) && ((-43 < a12) && (11 >= a12)) ) && (a21==8))))){ + a12 = (((a12 * 5) / 5) + -316852); + a15 = 5; + a21 = 6; + + return -1; + } else if((((a24==1) && ((a15==9) && ((input == 5) && ((a21==8) || ((a21==6) || (a21==7)))))) && ((11 < a12) && (80 >= a12)) )){ + + a15 = 5; + a21 = 8; + + return -1; + } else if(((((a15==8) && ((((a21==6) || (a21==7)) || (a21==8)) && (input == 5))) && ((-43 < a12) && (11 >= a12)) ) && (a24==1))){ + a12 = (((a12 - 529036) / 5) * 5); + a15 = 5; + a21 = 6; + + return -1; + } else if(((a15==9) && ((((input == 3) && (((a21==6) || (a21==7)) || (a21==8))) && (a24==1)) && ((11 < a12) && (80 >= a12)) ))){ + a12 = ((((((a12 * 10)/ -2) * 5) - -29976) * -1)/ 10); + a15 = 7; + a21 = 6; + + return -1; + } else if((( ((-43 < a12) && (11 >= a12)) && ((a15==8) && (((a21==8) || ((a21==6) || (a21==7))) && (input == 3)))) && (a24==1))){ + a12 = (((a12 - 239513) * 2) - 118149); + a15 = 5; + a21 = 6; + + return -1; + } else if(((a15==9) && ((a24==1) && ((((a21==9) || (a21==10)) && (input == 5)) && ((-43 < a12) && (11 >= a12)) )))){ + a12 = (((a12 + -382503) - -833715) - -74843); + a15 = 5; + a21 = 6; + + return -1; + } else if(( ((11 < a12) && (80 >= a12)) && (((a24==1) && ((((a21==6) || (a21==7)) || (a21==8)) && (input == 4))) && (a15==9)))){ + + a15 = 5; + a21 = 10; + + return -1; + } else if(((a15==9) && ((a24==1) && (((input == 6) && 80 < a12 ) && (a21==9))))){ + a12 = (((((a12 - 600066) * 1) / 5) * 34)/ 10); + a15 = 7; + a21 = 8; + + return -1; + } else if((((a24==1) && (((input == 2) && ((a21==10) || ((a21==8) || (a21==9)))) && a12 <= -43 )) && (a15==8))){ + + a15 = 5; + a21 = 6; + + return -1; + } else if(((a24==1) && (((input == 4) && (( ((-43 < a12) && (11 >= a12)) && (a21==7)) || (( a12 <= -43 && (a21==10)) || ( ((-43 < a12) && (11 >= a12)) && (a21==6))))) && (a15==9)))){ + a12 = (((((a12 % 299978)+ -300020) - 3) - -109194) + -109193); + a15 = 5; + a21 = 6; + + return -1; + } else if((((((input == 6) && ((a21==9) || ((a21==7) || (a21==8)))) && (a24==1)) && (a15==9)) && a12 <= -43 )){ + + a15 = 5; + a21 = 6; + + return -1; + } else if(((( a12 <= -43 && ((input == 6) && ((a21==10) || ((a21==8) || (a21==9))))) && (a24==1)) && (a15==8))){ + a12 = ((((a12 % 26)+ -1) / 5) / 5); + a21 = 7; + + return 25; + } else if((((((a21==7) && (input == 5)) && a12 <= -43 ) && (a24==1)) && (a15==8))){ + + a21 = 10; + + return 22; + } else if((((a15==9) && ((((a21==9) || (a21==10)) && (input == 4)) && ((-43 < a12) && (11 >= a12)) )) && (a24==1))){ + a12 = (((a12 / 5) + 176111) * 3); + a15 = 7; + a21 = 9; + + return -1; + } else if(((((( 80 < a12 && (a24==1)) && (a15==9)) && (a21==10)) || ((( a12 <= -43 && (a24==2)) && (a15==5)) && (a21==6))) && (input == 2))){ + a12 = (((((a12 % 299959)- -300039) / 5) / 5) + 204292); + a24 = 1; + a15 = 9; + a21 = 9; + + return -1; + } else if(((( ((-43 < a12) && (11 >= a12)) && (((a21==9) || (a21==10)) && (input == 3))) && (a15==9)) && (a24==1))){ + a12 = (((a12 + 66) - 3) + -2); + a21 = 8; + + return 21; + } else if((((a15==8) && ( 80 < a12 && (((a21==8) || (a21==9)) && (input == 6)))) && (a24==1))){ + a12 = ((((a12 + 0) * 9)/ 10) - 558346); + a15 = 5; + a21 = 6; + + return -1; + } else if((((((( a12 <= -43 && (a21==10)) || ( ((-43 < a12) && (11 >= a12)) && (a21==6))) || ((a21==7) && ((-43 < a12) && (11 >= a12)) )) && (input == 3)) && (a24==1)) && (a15==9))){ + a12 = (((a12 + 101173) / 5) - 185122); + a15 = 5; + a21 = 6; + + return -1; + } else if(((a24==1) && ((input == 1) && (((a21==10) && ((a15==8) && 80 < a12 )) || (( a12 <= -43 && (a15==9)) && (a21==6)))))){ + a12 = ((((a12 % 299978)+ -300020) * 1) - 2); + a15 = 5; + a21 = 6; + + return -1; + } else if((( ((-43 < a12) && (11 >= a12)) && ((a24==1) && (((a21==8) || ((a21==6) || (a21==7))) && (input == 1)))) && (a15==8))){ + + a21 = 9; + + return 21; + } else if((((a24==1) && ( a12 <= -43 && ((((a21==7) || (a21==8)) || (a21==9)) && (input == 3)))) && (a15==9))){ + + a21 = 10; + + return 22; + } else if((((a24==1) && ((input == 4) && ((((a21==9) && ((11 < a12) && (80 >= a12)) ) || ((a21==10) && ((11 < a12) && (80 >= a12)) )) || ((a21==6) && 80 < a12 )))) && (a15==9))){ + a12 = (((((a12 * 9)/ 10) - 589907) - -649897) + -606113); + a15 = 7; + a21 = 7; + + return -1; + } else if(((a15==8) && (((a21==7) && ((input == 2) && (a24==1))) && a12 <= -43 ))){ + + a15 = 5; + a21 = 6; + + return -1; + } else if(((a15==8) && (((input == 4) && (( ((-43 < a12) && (11 >= a12)) && (a21==10)) || ((a21==6) && ((11 < a12) && (80 >= a12)) ))) && (a24==1)))){ + a12 = ((((a12 - 357209) * 1) - -928336) - 1022569); + a15 = 5; + a21 = 6; + + return -1; + } else if(((a15==9) && (( a12 <= -43 && (((a21==9) || ((a21==7) || (a21==8))) && (input == 2))) && (a24==1)))){ + + a15 = 5; + a21 = 6; + + return -1; + } else if(((a24==1) && ((a15==8) && ((((a21==10) && ((-43 < a12) && (11 >= a12)) ) || ( ((11 < a12) && (80 >= a12)) && (a21==6))) && (input == 3))))){ + a12 = (((a12 + 60189) + -305530) + -244668); + a15 = 5; + a21 = 6; + + return -1; + } else if((((a15==8) && (((a24==1) && (input == 4)) && ((11 < a12) && (80 >= a12)) )) && (a21==9))){ + a12 = (((a12 - 310903) + -128009) + -1314); + a15 = 5; + a21 = 6; + + return -1; + } else if(((((input == 6) && ((( ((11 < a12) && (80 >= a12)) && (a21==9)) || ( ((11 < a12) && (80 >= a12)) && (a21==10))) || ( 80 < a12 && (a21==6)))) && (a24==1)) && (a15==9))){ + a12 = ((((a12 % 299959)- -81) - -194202) - -92066); + a21 = 7; + + return 26; + } else if((((a15==8) && ((((a21==10) && ((-43 < a12) && (11 >= a12)) ) || ( ((11 < a12) && (80 >= a12)) && (a21==6))) && (input == 6))) && (a24==1))){ + a12 = (((a12 / 5) - 557506) - 18416); + a15 = 5; + a21 = 6; + + return -1; + } else if(((((a24==1) && (((a21==8) || ((a21==6) || (a21==7))) && (input == 2))) && (a15==9)) && ((11 < a12) && (80 >= a12)) )){ + a12 = ((((a12 - -582271) - 436382) - 442400) - -391873); + a21 = 6; + + return 22; + } else if((((a21==9) && (((input == 3) && (a24==1)) && 80 < a12 )) && (a15==9))){ + + return -1; + } else if(((((((a21==7) || (a21==8)) && (input == 1)) && (a15==9)) && 80 < a12 ) && (a24==1))){ + a12 = ((((a12 / 5) % 26)+ -33) / 5); + a15 = 5; + a21 = 10; + + return -1; + } else if((((((a15==9) && ( 80 < a12 && (a24==1))) && (a21==10)) || ((a21==6) && (((a24==2) && a12 <= -43 ) && (a15==5)))) && (input == 6))){ + a12 = (((((a12 % 299959)- -300039) + -252537) * 1) - -252539); + a24 = 1; + a15 = 9; + a21 = 7; + + return -1; + } else if(((a15==9) && ((a21==9) && ( 80 < a12 && ((input == 2) && (a24==1)))))){ + + a21 = 8; + + return -1; + } else if(((((a15==8) && (((a21==7) || (a21==8)) && (input == 3))) && (a24==1)) && ((11 < a12) && (80 >= a12)) )){ + a12 = ((((a12 / 5) + -439847) * 10)/ 9); + a15 = 5; + a21 = 6; + + return -1; + } else if(((a24==1) && ((input == 5) && ((((a15==8) && 80 < a12 ) && (a21==10)) || ((a21==6) && ( a12 <= -43 && (a15==9))))))){ + a12 = ((((a12 % 299959)- -300039) * 1) * 1); + a15 = 8; + a21 = 10; + + return 26; + } else if(((a24==1) && (((( 80 < a12 && (a21==6)) || (((a21==9) && ((11 < a12) && (80 >= a12)) ) || ((a21==10) && ((11 < a12) && (80 >= a12)) ))) && (input == 1)) && (a15==9)))){ + a12 = (((((a12 * 9)/ 10) * 1) + -581502) + 599190); + a15 = 7; + a21 = 8; + + return -1; + } else if((((a24==1) && ( a12 <= -43 && ((((a21==8) || (a21==9)) || (a21==10)) && (input == 1)))) && (a15==8))){ + + a15 = 5; + a21 = 6; + + return -1; + } else if(((a24==1) && (((((a21==7) && ((-43 < a12) && (11 >= a12)) ) || (((a21==10) && a12 <= -43 ) || ((a21==6) && ((-43 < a12) && (11 >= a12)) ))) && (input == 6)) && (a15==9)))){ + a12 = ((((a12 % 299978)+ -300020) / 5) + -174067); + a15 = 5; + a21 = 6; + + return -1; + } else if(((a15==8) && (((a24==1) && ((((a21==6) || (a21==7)) || (a21==8)) && (input == 2))) && ((-43 < a12) && (11 >= a12)) ))){ + a12 = (((((a12 - 185217) - 149574) - -494599) * -1)/ 10); + a15 = 5; + a21 = 6; + + return -1; + } else if((((((input == 6) && (((a21==6) || (a21==7)) || (a21==8))) && (a15==8)) && (a24==1)) && ((-43 < a12) && (11 >= a12)) )){ + a12 = (((a12 * 5) - 432359) / 5); + a15 = 5; + a21 = 6; + + return -1; + } else if(((a24==1) && (((((a21==7) || (a21==8)) && (input == 6)) && (a15==8)) && ((11 < a12) && (80 >= a12)) ))){ + a12 = ((((a12 / 5) - 526582) * 10)/ 9); + a15 = 5; + a21 = 6; + + return -1; + } else if(((((( ((-43 < a12) && (11 >= a12)) && (a21==7)) || (((a21==10) && a12 <= -43 ) || ( ((-43 < a12) && (11 >= a12)) && (a21==6)))) && (input == 2)) && (a15==9)) && (a24==1))){ + a12 = (((((a12 % 26)- 16) + 343661) - 46416) - 297244); + a21 = 8; + + return 25; + } else if((( ((-43 < a12) && (11 >= a12)) && (((input == 1) && (a15==8)) && (a24==1))) && (a21==9))){ + a12 = (((a12 * 5) * 5) + -84619); + a15 = 5; + a21 = 6; + + return -1; + } else if(((a24==1) && ((a15==9) && ((input == 2) && (( 80 < a12 && (a21==6)) || (( ((11 < a12) && (80 >= a12)) && (a21==9)) || ( ((11 < a12) && (80 >= a12)) && (a21==10)))))))){ + a12 = ((((a12 % 299959)- -81) * 1) * 1); + a15 = 6; + a21 = 9; + + return -1; + } else if(((a24==1) && ((a15==8) && (((input == 2) && ((a21==7) || (a21==8))) && ((11 < a12) && (80 >= a12)) )))){ + a12 = ((((a12 + -453921) * 10)/ 9) - 34620); + a15 = 5; + a21 = 6; + + return -1; + } else if(((a24==1) && ((a21==9) && (((input == 5) && (a15==9)) && 80 < a12 )))){ + + a15 = 7; + a21 = 6; + + return -1; + } else if((( a12 <= -43 && (((input == 1) && (a21==7)) && (a24==1))) && (a15==8))){ + + a15 = 5; + a21 = 6; + + return -1; + } else if((((a21==9) && (( ((11 < a12) && (80 >= a12)) && (input == 3)) && (a24==1))) && (a15==8))){ + a12 = (((a12 - -195021) - 451510) / 5); + a15 = 5; + a21 = 6; + + return -1; + } else if((((a15==8) && ((((a21==8) || (a21==9)) && (input == 2)) && (a24==1))) && 80 < a12 )){ + a12 = ((((a12 * 9)/ 10) + -545656) * 1); + a15 = 5; + a21 = 6; + + return -1; + } else if((( 80 < a12 && ((a24==1) && (((a21==8) || (a21==9)) && (input == 4)))) && (a15==8))){ + a12 = ((((a12 * 9)/ 10) + -562768) / 5); + a15 = 5; + a21 = 6; + + return -1; + } else if(((a21==9) && ((a15==9) && ((a24==1) && ( 80 < a12 && (input == 1)))))){ + + return 26; + } else if(((a15==8) && (((input == 3) && ((((a21==10) && ((11 < a12) && (80 >= a12)) ) || ((a21==6) && 80 < a12 )) || ( 80 < a12 && (a21==7)))) && (a24==1)))){ + a12 = ((((a12 % 299978)+ -300020) + -247081) * 1); + a15 = 5; + a21 = 6; + + return -1; + } else if(((a24==1) && ( 80 < a12 && ((a21==9) && ((a15==9) && (input == 4)))))){ + a12 = ((((a12 + 0) + -318749) % 34)+ 45); + a15 = 5; + + return -1; + } else if(((a15==8) && (((input == 6) && (( 80 < a12 && (a21==7)) || (((a21==10) && ((11 < a12) && (80 >= a12)) ) || ( 80 < a12 && (a21==6))))) && (a24==1)))){ + a12 = ((((a12 % 299978)- 300020) - 166783) * 1); + a15 = 5; + a21 = 6; + + return -1; + } else if(((a15==9) && ((a24==1) && ( ((-43 < a12) && (11 >= a12)) && ((input == 1) && ((a21==9) || (a21==10))))))){ + a12 = (((((a12 - -56) * 9)/ 10) / 5) + 56); + a15 = 5; + a21 = 7; + + return -1; + } else if(((((( 80 < a12 && (a15==8)) && (a21==10)) || ((a21==6) && ((a15==9) && a12 <= -43 ))) && (input == 6)) && (a24==1))){ + a12 = ((((a12 % 299978)- 300020) * 1) + -2); + a15 = 5; + a21 = 6; + + return -1; + } else if(((((a15==8) && (((a21==8) || (a21==9)) && (input == 1))) && (a24==1)) && 80 < a12 )){ + a12 = ((((a12 - 94512) / 5) / 5) + -533466); + a15 = 5; + a21 = 6; + + return -1; + } else if((((a24==1) && ((((a21==7) && 80 < a12 ) || (( ((11 < a12) && (80 >= a12)) && (a21==10)) || ((a21==6) && 80 < a12 ))) && (input == 2))) && (a15==8))){ + a12 = ((((a12 % 299978)- 300020) + 525887) + -618409); + a15 = 5; + a21 = 6; + + return -1; + } else if(((a24==1) && ( ((-43 < a12) && (11 >= a12)) && (((((a21==6) || (a21==7)) || (a21==8)) && (input == 4)) && (a15==8))))){ + a12 = ((((a12 - 87828) * 10)/ 9) - 284434); + a15 = 5; + a21 = 6; + + return -1; + } else if((((a15==8) && (((a21==7) && (input == 4)) && (a24==1))) && a12 <= -43 )){ + + a15 = 5; + a21 = 6; + + return -1; + } else if(((a21==9) && (((a24==1) && ((input == 2) && ((-43 < a12) && (11 >= a12)) )) && (a15==8)))){ + a12 = (((a12 - -61) - -3) - -1); + a21 = 8; + + return 26; + } else if(((a15==8) && (( ((-43 < a12) && (11 >= a12)) && ((a21==9) && (input == 4))) && (a24==1)))){ + a12 = (((a12 + -564241) - 3500) * 1); + a15 = 5; + a21 = 6; + + return -1; + } else if((( a12 <= -43 && ((((a21==10) || ((a21==8) || (a21==9))) && (input == 4)) && (a15==8))) && (a24==1))){ + + a15 = 5; + a21 = 6; + + return -1; + } else if(((a24==1) && ((a15==8) && ((input == 4) && (( 80 < a12 && (a21==7)) || (( ((11 < a12) && (80 >= a12)) && (a21==10)) || ( 80 < a12 && (a21==6)))))))){ + a12 = (((((a12 % 299959)- -81) * 1) / 5) + 165863); + a21 = 10; + + return 22; + } else if(( ((11 < a12) && (80 >= a12)) && ((a15==8) && ((a24==1) && (((a21==7) || (a21==8)) && (input == 4)))))){ + a12 = (((a12 + -256944) - 53297) - 113637); + a15 = 5; + a21 = 6; + + return -1; + } else if(((((((a15==8) && 80 < a12 ) && (a21==10)) || ((a21==6) && ( a12 <= -43 && (a15==9)))) && (input == 4)) && (a24==1))){ + a12 = (((a12 / 5) + -409994) + 99019); + a15 = 5; + a21 = 6; + + return -1; + } else if(((((( 80 < a12 && (a24==1)) && (a15==9)) && (a21==10)) || ((( a12 <= -43 && (a24==2)) && (a15==5)) && (a21==6))) && (input == 1))){ + a12 = ((((((a12 % 299978)- 300020) / 5) + 194993) * -1)/ 10); + a24 = 1; + a15 = 5; + a21 = 9; + + return -1; + } else if((((a15==8) && (((( ((11 < a12) && (80 >= a12)) && (a21==10)) || ( 80 < a12 && (a21==6))) || ( 80 < a12 && (a21==7))) && (input == 5))) && (a24==1))){ + a12 = (((((a12 + -334090) % 299978)+ -300020) / 5) + -383582); + a15 = 5; + a21 = 6; + + return -1; + } else if(((a21==9) && ((((input == 6) && (a15==8)) && ((-43 < a12) && (11 >= a12)) ) && (a24==1)))){ + a12 = (((((a12 + 423400) * 1) * 1) * -1)/ 10); + a15 = 5; + a21 = 6; + + return -1; + } else if(((a24==1) && ((a21==9) && ( ((-43 < a12) && (11 >= a12)) && ((a15==8) && (input == 3)))))){ + a12 = (((a12 + -295946) + -243936) * 1); + a15 = 5; + a21 = 6; + + return -1; + } else if(((a15==9) && (((input == 3) && (((a21==6) && 80 < a12 ) || (((a21==9) && ((11 < a12) && (80 >= a12)) ) || ((a21==10) && ((11 < a12) && (80 >= a12)) )))) && (a24==1)))){ + a12 = ((((((a12 % 299959)+ 81) - 332928) / 5) * -1)/ 10); + a15 = 5; + a21 = 10; + + return -1; + } else if(( a12 <= -43 && ((a21==7) && ((a24==1) && ((a15==8) && (input == 6)))))){ + + a15 = 5; + a21 = 6; + + return -1; + } else if(( ((-43 < a12) && (11 >= a12)) && ((((input == 3) && (a24==1)) && (a21==8)) && (a15==9)))){ + a12 = (((a12 * 5) - 497532) - 56570); + a15 = 5; + a21 = 6; + + return -1; + } else if((((((a15==9) && ((a24==1) && 80 < a12 )) && (a21==10)) || ((((a24==2) && a12 <= -43 ) && (a15==5)) && (a21==6))) && (input == 5))){ + a12 = (((((a12 + 0) % 299978)+ -300020) / 5) + -262569); + a24 = 2; + a15 = 5; + a21 = 6; + + return 25; + } else if((((a24==1) && ( ((11 < a12) && (80 >= a12)) && (((a21==7) || (a21==8)) && (input == 5)))) && (a15==8))){ + a12 = (((((a12 * 68)/ 10) * 5) + -454858) + 972700); + a21 = 6; + + return 25; + } else if(((((((a21==10) && ((-43 < a12) && (11 >= a12)) ) || ( ((11 < a12) && (80 >= a12)) && (a21==6))) && (input == 1)) && (a15==8)) && (a24==1))){ + a12 = (((a12 + -298811) + -140133) + -153332); + a15 = 5; + a21 = 6; + + return -1; + } else if(((a24==1) && ( ((11 < a12) && (80 >= a12)) && (((((a21==6) || (a21==7)) || (a21==8)) && (input == 6)) && (a15==9))))){ + + a15 = 7; + a21 = 9; + + return -1; + } else if(((a24==1) && (((((a21==7) && 80 < a12 ) || (( ((11 < a12) && (80 >= a12)) && (a21==10)) || ( 80 < a12 && (a21==6)))) && (input == 1)) && (a15==8)))){ + a12 = ((((a12 + 0) % 299978)+ -300020) * 1); + a15 = 5; + a21 = 6; + + return -1; + } else if((((a15==8) && ((((a21==10) && ((-43 < a12) && (11 >= a12)) ) || ( ((11 < a12) && (80 >= a12)) && (a21==6))) && (input == 5))) && (a24==1))){ + a12 = (((((a12 - -338613) - -126296) * 1) % 34)- -42); + a21 = 9; + + return 25; + } else if((( ((-43 < a12) && (11 >= a12)) && (((input == 6) && ((a21==9) || (a21==10))) && (a24==1))) && (a15==9))){ + a12 = ((((((a12 - -277912) * 10)/ 9) - 437300) * -1)/ 10); + a15 = 6; + a21 = 6; + + return -1; + } else if(((a15==8) && ( 80 < a12 && ((a24==1) && (((a21==8) || (a21==9)) && (input == 5)))))){ + a12 = (((a12 + -600079) - -316691) - 316661); + a15 = 9; + a21 = 8; + + return 26; + } else if((((a24==1) && ((a15==9) && (((a21==7) || (a21==8)) && (input == 5)))) && 80 < a12 )){ + + a21 = 10; + + return 25; + } else if((((((input == 5) && ((-43 < a12) && (11 >= a12)) ) && (a21==8)) && (a24==1)) && (a15==9))){ + a12 = (((a12 / 5) - 440689) * 1); + a15 = 5; + a21 = 6; + + return -1; + } else if(((a15==9) && ((((input == 4) && (a24==1)) && (a21==8)) && ((-43 < a12) && (11 >= a12)) ))){ + + a21 = 10; + + return 22; + } + return -2; + } + +int main() +{ + // default output + int output = -1; + + // main i/o-loop + while(1) + { + // read input + int input; + input = __VERIFIER_nondet_int(); + if ((input != 1) && (input != 2) && (input != 3) && (input != 4) && (input != 5) && (input != 6)) return -2; + + // operate eca engine + output = calculate_output(input); + } +} + diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem15_label00_false-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem15_label00_false-unreach-call.c new file mode 100644 index 000000000..1a595986b --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem15_label00_false-unreach-call.c @@ -0,0 +1,1774 @@ +extern void __VERIFIER_error(void); +extern int __VERIFIER_nondet_int(void); +extern void exit(int); + + // inputs + int inputD = 4; + int inputB = 2; + int inputE = 5; + int inputA = 1; + int inputF = 6; + int inputC = 3; + + + int a4 = -89; + int a29 = -127; + int a2 = 1; + int a0 = -44; + + int calculate_output2(int input); + + int calculate_output(int input) { + if(((((a2==1) && a4 <= -86 ) && a0 <= -147 ) && ((-144 < a29) && (-16 >= a29)) )){ + error_0: __VERIFIER_error(); + } + if(((((a2==3) && a4 <= -86 ) && a0 <= -147 ) && ((-16 < a29) && (43 >= a29)) )){ + error_9: exit(0); + } + if(((((a2==5) && a4 <= -86 ) && a0 <= -147 ) && 43 < a29 )){ + error_18: exit(0); + } + if(((((a2==3) && a4 <= -86 ) && ((-98 < a0) && (-61 >= a0)) ) && a29 <= -144 )){ + error_47: exit(0); + } + if(((((a2==3) && a4 <= -86 ) && a0 <= -147 ) && a29 <= -144 )){ + error_7: exit(0); + } + if(((((a2==1) && a4 <= -86 ) && ((-98 < a0) && (-61 >= a0)) ) && a29 <= -144 )){ + error_39: exit(0); + } + if(((((a2==3) && a4 <= -86 ) && ((-98 < a0) && (-61 >= a0)) ) && 43 < a29 )){ + error_50: exit(0); + } + if(((((a2==4) && a4 <= -86 ) && ((-147 < a0) && (-98 >= a0)) ) && 43 < a29 )){ + error_34: exit(0); + } + if(((((a2==3) && a4 <= -86 ) && ((-147 < a0) && (-98 >= a0)) ) && 43 < a29 )){ + error_30: exit(0); + } + if(((((a2==4) && a4 <= -86 ) && a0 <= -147 ) && 43 < a29 )){ + error_14: exit(0); + } + if(((((a2==4) && a4 <= -86 ) && ((-98 < a0) && (-61 >= a0)) ) && a29 <= -144 )){ + error_51: exit(0); + } + if(((((a2==2) && a4 <= -86 ) && ((-147 < a0) && (-98 >= a0)) ) && a29 <= -144 )){ + error_23: exit(0); + } + if(((((a2==1) && a4 <= -86 ) && ((-147 < a0) && (-98 >= a0)) ) && 43 < a29 )){ + error_22: exit(0); + } + if(((((a2==5) && a4 <= -86 ) && a0 <= -147 ) && a29 <= -144 )){ + error_15: exit(0); + } + if(((((a2==5) && a4 <= -86 ) && ((-147 < a0) && (-98 >= a0)) ) && ((-16 < a29) && (43 >= a29)) )){ + error_37: exit(0); + } + if(((((a2==3) && a4 <= -86 ) && ((-147 < a0) && (-98 >= a0)) ) && ((-16 < a29) && (43 >= a29)) )){ + error_29: exit(0); + } + if(((((a2==4) && a4 <= -86 ) && ((-147 < a0) && (-98 >= a0)) ) && ((-16 < a29) && (43 >= a29)) )){ + error_33: exit(0); + } + if(((((a2==2) && a4 <= -86 ) && a0 <= -147 ) && a29 <= -144 )){ + error_3: exit(0); + } + if(((((a2==2) && a4 <= -86 ) && ((-147 < a0) && (-98 >= a0)) ) && ((-16 < a29) && (43 >= a29)) )){ + error_25: exit(0); + } + if(((((a2==1) && a4 <= -86 ) && ((-98 < a0) && (-61 >= a0)) ) && ((-16 < a29) && (43 >= a29)) )){ + error_41: exit(0); + } + if(((((a2==1) && a4 <= -86 ) && ((-98 < a0) && (-61 >= a0)) ) && ((-144 < a29) && (-16 >= a29)) )){ + error_40: exit(0); + } + if(((((a2==3) && a4 <= -86 ) && ((-98 < a0) && (-61 >= a0)) ) && ((-144 < a29) && (-16 >= a29)) )){ + error_48: exit(0); + } + if(((((a2==1) && a4 <= -86 ) && a0 <= -147 ) && 43 < a29 )){ + error_2: exit(0); + } + if(((((a2==2) && a4 <= -86 ) && ((-98 < a0) && (-61 >= a0)) ) && ((-16 < a29) && (43 >= a29)) )){ + error_45: exit(0); + } + if(((((a2==5) && a4 <= -86 ) && ((-147 < a0) && (-98 >= a0)) ) && 43 < a29 )){ + error_38: exit(0); + } + if(((((a2==2) && a4 <= -86 ) && a0 <= -147 ) && ((-144 < a29) && (-16 >= a29)) )){ + error_4: exit(0); + } + if(((((a2==3) && a4 <= -86 ) && ((-147 < a0) && (-98 >= a0)) ) && ((-144 < a29) && (-16 >= a29)) )){ + error_28: exit(0); + } + if(((((a2==5) && a4 <= -86 ) && ((-98 < a0) && (-61 >= a0)) ) && ((-144 < a29) && (-16 >= a29)) )){ + error_56: exit(0); + } + if(((((a2==3) && a4 <= -86 ) && a0 <= -147 ) && 43 < a29 )){ + error_10: exit(0); + } + if(((((a2==1) && a4 <= -86 ) && a0 <= -147 ) && a29 <= -144 )){ + globalError: exit(0); + } + if(((((a2==5) && a4 <= -86 ) && ((-147 < a0) && (-98 >= a0)) ) && a29 <= -144 )){ + error_35: exit(0); + } + if(((((a2==3) && a4 <= -86 ) && ((-147 < a0) && (-98 >= a0)) ) && a29 <= -144 )){ + error_27: exit(0); + } + if(((((a2==2) && a4 <= -86 ) && ((-147 < a0) && (-98 >= a0)) ) && ((-144 < a29) && (-16 >= a29)) )){ + error_24: exit(0); + } + if(((((a2==4) && a4 <= -86 ) && ((-98 < a0) && (-61 >= a0)) ) && ((-144 < a29) && (-16 >= a29)) )){ + error_52: exit(0); + } + if(((((a2==4) && a4 <= -86 ) && ((-98 < a0) && (-61 >= a0)) ) && 43 < a29 )){ + error_54: exit(0); + } + if(((((a2==5) && a4 <= -86 ) && ((-98 < a0) && (-61 >= a0)) ) && ((-16 < a29) && (43 >= a29)) )){ + error_57: exit(0); + } + if(((((a2==1) && a4 <= -86 ) && ((-147 < a0) && (-98 >= a0)) ) && ((-144 < a29) && (-16 >= a29)) )){ + error_20: exit(0); + } + if(((((a2==2) && a4 <= -86 ) && ((-98 < a0) && (-61 >= a0)) ) && 43 < a29 )){ + error_46: exit(0); + } + if(((((a2==1) && a4 <= -86 ) && a0 <= -147 ) && ((-16 < a29) && (43 >= a29)) )){ + error_1: exit(0); + } + if(((((a2==1) && a4 <= -86 ) && ((-147 < a0) && (-98 >= a0)) ) && a29 <= -144 )){ + error_19: exit(0); + } + if(((((a2==1) && a4 <= -86 ) && ((-98 < a0) && (-61 >= a0)) ) && 43 < a29 )){ + error_42: exit(0); + } + if(((((a2==4) && a4 <= -86 ) && ((-98 < a0) && (-61 >= a0)) ) && ((-16 < a29) && (43 >= a29)) )){ + error_53: exit(0); + } + if(((((a2==4) && a4 <= -86 ) && a0 <= -147 ) && ((-16 < a29) && (43 >= a29)) )){ + error_13: exit(0); + } + if(((((a2==4) && a4 <= -86 ) && ((-147 < a0) && (-98 >= a0)) ) && ((-144 < a29) && (-16 >= a29)) )){ + error_32: exit(0); + } + if(((((a2==5) && a4 <= -86 ) && ((-98 < a0) && (-61 >= a0)) ) && 43 < a29 )){ + error_58: exit(0); + } + if(((((a2==3) && a4 <= -86 ) && a0 <= -147 ) && ((-144 < a29) && (-16 >= a29)) )){ + error_8: exit(0); + } + if(((((a2==3) && a4 <= -86 ) && ((-98 < a0) && (-61 >= a0)) ) && ((-16 < a29) && (43 >= a29)) )){ + error_49: exit(0); + } + if(((((a2==2) && a4 <= -86 ) && ((-147 < a0) && (-98 >= a0)) ) && 43 < a29 )){ + error_26: exit(0); + } + if(((((a2==1) && a4 <= -86 ) && -61 < a0 ) && a29 <= -144 )){ + error_59: exit(0); + } + if(((((a2==4) && a4 <= -86 ) && a0 <= -147 ) && a29 <= -144 )){ + error_11: exit(0); + } + if(((((a2==2) && a4 <= -86 ) && a0 <= -147 ) && 43 < a29 )){ + error_6: exit(0); + } + if(((((a2==5) && a4 <= -86 ) && ((-98 < a0) && (-61 >= a0)) ) && a29 <= -144 )){ + error_55: exit(0); + } + if(((((a2==2) && a4 <= -86 ) && ((-98 < a0) && (-61 >= a0)) ) && a29 <= -144 )){ + error_43: exit(0); + } + if(((((a2==4) && a4 <= -86 ) && a0 <= -147 ) && ((-144 < a29) && (-16 >= a29)) )){ + error_12: exit(0); + } + if(((((a2==1) && a4 <= -86 ) && ((-147 < a0) && (-98 >= a0)) ) && ((-16 < a29) && (43 >= a29)) )){ + error_21: exit(0); + } + if(((((a2==5) && a4 <= -86 ) && ((-147 < a0) && (-98 >= a0)) ) && ((-144 < a29) && (-16 >= a29)) )){ + error_36: exit(0); + } + if(((((a2==5) && a4 <= -86 ) && a0 <= -147 ) && ((-144 < a29) && (-16 >= a29)) )){ + error_16: exit(0); + } + if(((((a2==5) && a4 <= -86 ) && a0 <= -147 ) && ((-16 < a29) && (43 >= a29)) )){ + error_17: exit(0); + } + if(((((a2==2) && a4 <= -86 ) && a0 <= -147 ) && ((-16 < a29) && (43 >= a29)) )){ + error_5: exit(0); + } + if(((((a2==4) && a4 <= -86 ) && ((-147 < a0) && (-98 >= a0)) ) && a29 <= -144 )){ + error_31: exit(0); + } + if(((((a2==2) && a4 <= -86 ) && ((-98 < a0) && (-61 >= a0)) ) && ((-144 < a29) && (-16 >= a29)) )){ + error_44: exit(0); + } + + if(( -61 < a0 && ( a4 <= -86 && ((input == 1) && (((a2==3) && a29 <= -144 ) || (((a2==2) && ((-16 < a29) && (43 >= a29)) ) || ( 43 < a29 && (a2==2)))))))){ + a0 = (((((a0 % 299926)+ -300072) / 5) * 5) - 2); + a29 = (((a29 / 5) - 403019) / 5); + a2 = 1; + + return -1; + } else if(((( ((-86 < a4) && (-42 >= a4)) && (( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ) && (input == 4))) && (a2==1)) && ((-147 < a0) && (-98 >= a0)) )){ + a4 = ((((a4 * 10)/ 4) - 105635) * 5); + a0 = (((a0 / 5) + -535974) * 1); + a29 = ((((a29 % 299928)+ -144) + -127007) * 1); + return -1; + } else if(( ((-86 < a4) && (-42 >= a4)) && (((a2==2) && ( a29 <= -144 && (input == 3))) && ((-98 < a0) && (-61 >= a0)) ))){ + if( a0 <= -147 ){ + a4 = (((a4 / 5) + 230984) + -520005); + a0 = (((a0 * 5) - 170894) / -5); + a29 = ((((a29 % 29)+ 13) / 5) / 5); + a2 = 3; + + } else{ + a29 = ((((a29 - 0) % 29)+ 23) + -9); + } return 21; + } else if((( a0 <= -147 && ((( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ) && (input == 2)) && (a2==1))) && ((-86 < a4) && (-42 >= a4)) )){ + a4 = ((((a4 - 373993) - 156849) + 1087366) + -662739); + a0 = (((((a0 * 9)/ 10) + -38819) % 24)+ -99); + a29 = ((((((a29 % 299978)+ 300021) / 5) - 494390) * -1)/ 10); + return -1; + } else if(( ((-86 < a4) && (-42 >= a4)) && (((( ((-16 < a29) && (43 >= a29)) || 43 < a29 ) && (input == 3)) && ((-98 < a0) && (-61 >= a0)) ) && (a2==4)))){ + a4 = (((a4 + -343035) + 587291) - 275194); + a0 = (((a0 + 390619) - 403210) - -569718); + a29 = (((((a29 % 299978)- -300021) - -1) / 5) + 444143); + a2 = 2; + + return 22; + } else if(((((a2==3) && ((input == 3) && ( ((-144 < a29) && (-16 >= a29)) || ((-16 < a29) && (43 >= a29)) ))) && -61 < a0 ) && a4 <= -86 )){ + a0 = ((((a0 % 299926)- 300072) * 1) - 1); + a29 = (((a29 - 382960) - 74074) * 1); + a2 = 1; + + return -1; + } else if(((((input == 5) && (( ((-144 < a29) && (-16 >= a29)) && (a2==2)) || (( 43 < a29 && (a2==1)) || ((a2==2) && a29 <= -144 )))) && ((-86 < a4) && (-42 >= a4)) ) && a0 <= -147 )){ + a4 = (((((a4 * 10)/ 4) * 10)/ 9) + -71483); + a29 = (((((a29 % 299928)- 300071) + -1) / 5) - 280609); + a2 = 1; + + return -1; + } else if(((((( ((-144 < a29) && (-16 >= a29)) && (a2==4)) || (( 43 < a29 && (a2==3)) || ((a2==4) && a29 <= -144 ))) && (input == 2)) && ((-86 < a4) && (-42 >= a4)) ) && a0 <= -147 )){ + a4 = (((((a4 + -149009) - -316415) * 3) * -1)/ 10); + a0 = ((((a0 - 0) % 24)- 121) + -1); + a29 = ((((a29 % 299978)- -300021) / 5) - -378565); + a2 = 3; + + return -1; + } else if((( -61 < a0 && ((((a2==3) && a29 <= -144 ) || (( ((-16 < a29) && (43 >= a29)) && (a2==2)) || ( 43 < a29 && (a2==2)))) && (input == 2))) && a4 <= -86 )){ + a0 = ((((a0 / 5) - -215080) * 10)/ -9); + a29 = ((((((a29 - 0) * 9)/ 10) + -50638) % 299928)- 300071); + a2 = 1; + + return -1; + } else if(((((a2==4) && ((input == 1) && ( ((-16 < a29) && (43 >= a29)) || 43 < a29 ))) && ((-86 < a4) && (-42 >= a4)) ) && a0 <= -147 )){ + a4 = (((a4 * 5) + -228988) / 5); + a0 = ((((((a0 % 18)+ -78) * 9)/ 10) * 9)/ 10); + a29 = ((((((a29 * 9)/ 10) / 5) + 262161) % 29)- -15); + a2 = 1; + + return -1; + } else if((((((input == 4) && 43 < a29 ) && (a2==1)) && ((-98 < a0) && (-61 >= a0)) ) && ((-86 < a4) && (-42 >= a4)) )){ + a29 = ((((a29 % 29)- -15) / 5) + -16); + a2 = 5; + + return -1; + } else if((( -61 < a0 && (((( 43 < a29 && (a2==4)) || ((a2==5) && a29 <= -144 )) || ( ((-144 < a29) && (-16 >= a29)) && (a2==5))) && (input == 1))) && a4 <= -86 )){ + a4 = ((((a4 - 0) - -490407) % 21)+ -62); + a0 = ((((a0 - 153310) * 1) % 299926)- 300072); + a29 = ((((a29 % 299978)+ 300021) + 1) - 0); + a2 = 4; + + return 22; + } else if((( ((-147 < a0) && (-98 >= a0)) && (((input == 2) && ( ((-16 < a29) && (43 >= a29)) || 43 < a29 )) && ((-86 < a4) && (-42 >= a4)) )) && (a2==3))){ + a4 = (((a4 + -155747) - 133657) - 35383); + a0 = ((((a0 / 5) + 135798) * 4) - 984812); + a29 = (((a29 + -315762) / 5) + -109484); + a2 = 1; + + return -1; + } else if((((a2==2) && (((input == 5) && ((-86 < a4) && (-42 >= a4)) ) && ((-147 < a0) && (-98 >= a0)) )) && ((-16 < a29) && (43 >= a29)) )){ + a4 = ((((((a4 * 21)/ 10) + 71298) / 5) * -1)/ 10); + a0 = (((a0 - 162900) - 383694) - 31566); + a29 = (((a29 / 5) - -341315) + 150076); + a2 = 5; + + return -1; + } else if((((((input == 5) && ( ((-16 < a29) && (43 >= a29)) || ( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ))) && (a2==1)) && ((-86 < a4) && (-42 >= a4)) ) && ((-98 < a0) && (-61 >= a0)) )){ + a4 = (((a4 + -44548) - -443306) + -696410); + a0 = ((((a0 / 5) * 123)/ 10) - 36241); + a29 = ((((a29 - 0) * 9)/ 10) + 573486); + a2 = 5; + + return -1; + } else if(((a2==4) && ( -61 < a0 && ( a4 <= -86 && ((input == 5) && ( ((-16 < a29) && (43 >= a29)) || ( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ))))))){ + if( 43 < a29 ){ + a4 = (((((a4 / 5) % 21)+ -60) * 9)/ 10); + a0 = ((((a0 % 24)- 121) + -205117) - -205116); + a29 = ((((a29 % 29)+ 14) / 5) + 22); + a2 = 2; + + } else{ + a4 = ((((a4 % 21)+ -46) * 1) + -5); + a0 = ((((a0 + 0) % 299926)+ -300072) * 1); + a29 = ((((a29 + 371124) % 29)- -13) + 2); + a2 = 3; + + } return 22; + } else if((((((input == 3) && -61 < a0 ) && a4 <= -86 ) && ((-16 < a29) && (43 >= a29)) ) && (a2==5))){ + a4 = (((((a4 - -446919) % 21)+ -64) / 5) + -48); + a0 = (((((a0 - 0) % 24)- 122) - 24975) - -24975); + a29 = ((((a29 - -264394) + -320129) - 442766) - -778920); + a2 = 2; + + return 22; + } else if(((a2==1) && ( a0 <= -147 && ( ((-86 < a4) && (-42 >= a4)) && ((input == 4) && ( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) )))))){ + a4 = (((a4 - 226504) - 71806) * 2); + a29 = ((((a29 % 299928)- 144) - 38153) + -135408); + a2 = 5; + + return -1; + } else if((( -61 < a0 && ( 43 < a29 && ((input == 4) && (a2==5)))) && a4 <= -86 )){ + + return 22; + } else if(((((((a2==4) && ((-144 < a29) && (-16 >= a29)) ) || (((a2==3) && 43 < a29 ) || ( a29 <= -144 && (a2==4)))) && (input == 5)) && a0 <= -147 ) && ((-86 < a4) && (-42 >= a4)) )){ + a29 = ((((a29 % 299928)+ -300071) * 1) - 2); + a2 = 3; + + return -1; + } else if((( ((-86 < a4) && (-42 >= a4)) && (((input == 3) && (( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ) || ((-16 < a29) && (43 >= a29)) )) && a0 <= -147 )) && (a2==3))){ + if( ((-16 < a29) && (43 >= a29)) ){ + a0 = ((((a0 + 125283) % 24)- 122) + 1); + a29 = (((((a29 / 5) - -520121) * 1) % 29)- -2); + a2 = 2; + + } else{ + a29 = (((((a29 * 9)/ 10) + 5268) % 63)+ -79); + } return -1; + } else if(( 43 < a29 && (( -61 < a0 && ( a4 <= -86 && (input == 1))) && (a2==5)))){ + a29 = ((((a29 + -556242) % 299928)- 300071) * 1); + a2 = 2; + + return 26; + } else if((( a4 <= -86 && ( 43 < a29 && ((input == 2) && -61 < a0 ))) && (a2==3))){ + a0 = (((a0 / 5) / 5) + -266659); + a29 = ((((a29 - 118281) + 14305) % 299928)- 300071); + a2 = 1; + + return -1; + } else if(((((input == 6) && ((((a2==1) && 43 < a29 ) || ( a29 <= -144 && (a2==2))) || ((a2==2) && ((-144 < a29) && (-16 >= a29)) ))) && ((-86 < a4) && (-42 >= a4)) ) && a0 <= -147 )){ + a4 = (((a4 / 5) - 468667) / 5); + a29 = ((((((a29 * 9)/ 10) % 299928)+ -300071) + 121344) + -121344); + a2 = 1; + + return -1; + } else if((((( ((-98 < a0) && (-61 >= a0)) && (input == 3)) && (a2==2)) && ((-86 < a4) && (-42 >= a4)) ) && 43 < a29 )){ + a4 = (((a4 - 174071) * 3) / 5); + a29 = ((((((a29 * 9)/ 10) * 1) + -195948) % 29)- -14); + a2 = 3; + + return -1; + } else if(((( ((-147 < a0) && (-98 >= a0)) && (( ((-16 < a29) && (43 >= a29)) || 43 < a29 ) && (input == 5))) && (a2==4)) && ((-86 < a4) && (-42 >= a4)) )){ + a4 = ((((a4 * 5) + 579823) + 11517) + -660876); + a0 = (((a0 * 5) - 6100) * 5); + a29 = (((a29 / 5) + 176253) - -181921); + a2 = 5; + + return -1; + } else if(((( a4 <= -86 && (( ((-144 < a29) && (-16 >= a29)) || ((-16 < a29) && (43 >= a29)) ) && (input == 1))) && (a2==1)) && -61 < a0 )){ + a0 = ((((a0 - 217743) % 299926)+ -300072) * 1); + a29 = (((a29 + -396156) + -5222) * 1); + return -1; + } else if(( -61 < a0 && ((( 43 < a29 && (input == 6)) && (a2==5)) && a4 <= -86 ))){ + a0 = (((((a0 % 18)- 78) * 1) / 5) + -63); + a29 = ((((a29 % 63)- 97) - 20) + 4); + a2 = 3; + + return -1; + } else if(( ((-86 < a4) && (-42 >= a4)) && ( ((-98 < a0) && (-61 >= a0)) && (((input == 3) && ( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) )) && (a2==5))))){ + if((a2==4)){ + a4 = (((a4 - 95607) + -173954) + -12748); + a0 = ((((a0 * 25)/ 10) + -439586) - -307849); + a29 = ((((a29 % 299928)+ -144) - 72109) - 18545); + a2 = 4; + + } else{ + a4 = (((a4 + -172293) / 5) * 5); + a29 = ((((a29 + 0) * 9)/ 10) - -585169); + a2 = 4; + + } return 22; + } else if((( ((-98 < a0) && (-61 >= a0)) && ((( ((-16 < a29) && (43 >= a29)) || 43 < a29 ) && (input == 5)) && ((-86 < a4) && (-42 >= a4)) )) && (a2==4))){ + a4 = (((a4 * 5) - -527193) + -830547); + a0 = (((a0 / 5) - 111795) * 5); + a29 = (((((a29 % 299928)- 300071) + 0) - -381711) + -381711); + return -1; + } else if(( a4 <= -86 && ( -61 < a0 && (((( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ) || ((-16 < a29) && (43 >= a29)) ) && (input == 4)) && (a2==4))))){ + a4 = (((((a4 / 5) % 21)- 43) + 72580) - 72601); + a0 = ((((a0 % 299926)- 300072) + 505424) - 505425); + a29 = ((((a29 * 9)/ 10) + 571994) / 5); + a2 = 2; + + return 26; + } else if((((((( ((-144 < a29) && (-16 >= a29)) || ((-16 < a29) && (43 >= a29)) ) || 43 < a29 ) && (input == 6)) && ((-147 < a0) && (-98 >= a0)) ) && ((-86 < a4) && (-42 >= a4)) ) && (a2==5))){ + a4 = ((((a4 + -159160) / 5) * 10)/ 9); + a0 = (((a0 / 5) + -450837) * 1); + a29 = (((((a29 % 299928)- 300071) - 1) / 5) + -101068); + a2 = 2; + + return -1; + } else if(( ((-98 < a0) && (-61 >= a0)) && ((a2==3) && (((input == 2) && ( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) )) && ((-86 < a4) && (-42 >= a4)) )))){ + a4 = (((a4 + -31484) + -538040) + -21692); + a29 = ((((a29 % 299928)+ -144) + -155078) * 1); + a2 = 4; + + return 21; + } else if((( ((-86 < a4) && (-42 >= a4)) && (((input == 5) && ((-147 < a0) && (-98 >= a0)) ) && a29 <= -144 )) && (a2==5))){ + a4 = (((a4 - 159432) - 109407) * 2); + a0 = ((((a0 + 490072) + 32090) * 10)/ 9); + a29 = ((((((a29 % 29)+ 23) + 1) * 5) % 29)- -13); + return -1; + } else if(( -61 < a0 && ( a4 <= -86 && ((a2==3) && (( ((-144 < a29) && (-16 >= a29)) || ((-16 < a29) && (43 >= a29)) ) && (input == 2)))))){ + a0 = ((((a0 / 5) * 4) - -113559) + -665939); + a29 = (((a29 - 148272) + 252167) + -411458); + a2 = 1; + + return -1; + } else if(((((a2==3) && (( ((-16 < a29) && (43 >= a29)) || ( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) )) && (input == 2))) && a0 <= -147 ) && ((-86 < a4) && (-42 >= a4)) )){ + a4 = (((a4 + -287863) + -192250) * 1); + a29 = ((((a29 / 5) % 63)+ -80) - 1); + a2 = 1; + + return -1; + } else if(( ((-86 < a4) && (-42 >= a4)) && (((( ((-16 < a29) && (43 >= a29)) || 43 < a29 ) && (input == 5)) && (a2==5)) && ((-98 < a0) && (-61 >= a0)) ))){ + a0 = (((a0 - 45) / 5) + -99); + a29 = ((((a29 % 299928)+ -300071) / 5) + -203345); + return -1; + } else if((( ((-86 < a4) && (-42 >= a4)) && (((input == 1) && ( ((-16 < a29) && (43 >= a29)) || 43 < a29 )) && ((-147 < a0) && (-98 >= a0)) )) && (a2==4))){ + a4 = (((((a4 * 21)/ 10) - 87347) * 10)/ 9); + a0 = (((((a0 % 18)+ -61) - 19) / 5) + -77); + a29 = (((a29 / 5) * 4) - 587483); + a2 = 3; + + return -1; + } else if(((((((a2==5) && ((-144 < a29) && (-16 >= a29)) ) || (( 43 < a29 && (a2==4)) || ((a2==5) && a29 <= -144 ))) && (input == 2)) && a4 <= -86 ) && -61 < a0 )){ + a0 = ((((a0 + -267162) % 299926)- 300072) * 1); + a29 = (((a29 + 0) / 5) - 428483); + a2 = 1; + + return -1; + } else if((( ((-86 < a4) && (-42 >= a4)) && (( ((-98 < a0) && (-61 >= a0)) && (input == 6)) && (a2==2))) && a29 <= -144 )){ + a4 = ((((a4 + -196449) - -594193) * 10)/ -9); + a0 = ((((a0 / 5) / 5) * 735)/ 10); + a2 = 1; + + return -1; + } else if(( ((-16 < a29) && (43 >= a29)) && ( a4 <= -86 && (((input == 6) && -61 < a0 ) && (a2==5))))){ + a0 = (((a0 / 5) + -324699) - 172683); + a29 = (((((a29 - 531416) + -35692) - -697447) * -1)/ 10); + a2 = 1; + + return -1; + } else if((( ((-16 < a29) && (43 >= a29)) && (((input == 4) && -61 < a0 ) && a4 <= -86 )) && (a2==5))){ + a4 = ((((a4 / 5) - -571961) % 21)+ -67); + a0 = ((((a0 % 299926)+ -300072) * 1) - 2); + a29 = ((((a29 - -174449) * 10)/ 9) / 5); + return 22; + } else if(( -61 < a0 && ( a4 <= -86 && ((input == 5) && ((( ((-16 < a29) && (43 >= a29)) && (a2==2)) || ((a2==2) && 43 < a29 )) || ( a29 <= -144 && (a2==3))))))){ + a4 = (((((a4 % 21)+ -47) + 367614) + 116418) + -484038); + a0 = ((((a0 / 5) / 5) % 24)+ -122); + a29 = (((a29 / 5) + 298882) - 164223); + a2 = 3; + + return 21; + } else if((( ((-98 < a0) && (-61 >= a0)) && (((input == 1) && ( ((-144 < a29) && (-16 >= a29)) || ((-16 < a29) && (43 >= a29)) )) && ((-86 < a4) && (-42 >= a4)) )) && (a2==2))){ + a29 = (((((a29 % 63)- 79) * 1) + -90558) + 90558); + a2 = 5; + + return -1; + } else if(( ((-86 < a4) && (-42 >= a4)) && ( ((-98 < a0) && (-61 >= a0)) && (((input == 6) && ( ((-144 < a29) && (-16 >= a29)) || ((-16 < a29) && (43 >= a29)) )) && (a2==2))))){ + a0 = (((((a0 - 46) * 5) * 5) % 24)+ -121); + a29 = ((((a29 - -1321) - 315533) * -1)/ 10); + a2 = 3; + + return -1; + } else if(( ((-86 < a4) && (-42 >= a4)) && ( ((-147 < a0) && (-98 >= a0)) && ((input == 3) && ((( ((-16 < a29) && (43 >= a29)) && (a2==1)) || ( 43 < a29 && (a2==1))) || ((a2==2) && a29 <= -144 )))))){ + a29 = (((((a29 * 9)/ 10) - -17657) / 5) - 139328); + a2 = 1; + + return 21; + } else if(((( a0 <= -147 && ((input == 2) && ( ((-16 < a29) && (43 >= a29)) || 43 < a29 ))) && (a2==4)) && ((-86 < a4) && (-42 >= a4)) )){ + a4 = ((((a4 - 480316) - 19307) * 10)/ 9); + a0 = (((((a0 * 9)/ 10) % 24)- 119) - -21); + a29 = (((((a29 % 29)- -14) + -78248) / 5) + 15680); + return -1; + } else if(((( ((-86 < a4) && (-42 >= a4)) && ((input == 4) && ( ((-16 < a29) && (43 >= a29)) || ( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) )))) && ((-98 < a0) && (-61 >= a0)) ) && (a2==1))){ + a4 = ((((a4 - 168143) + 137012) * 10)/ 9); + a0 = (((a0 - 77791) - -335670) - -161975); + a29 = ((((a29 % 299928)- 300071) / 5) - 343834); + a2 = 4; + + return -1; + } else if(( ((-147 < a0) && (-98 >= a0)) && ( a29 <= -144 && ( ((-86 < a4) && (-42 >= a4)) && ((input == 3) && (a2==5)))))){ + a4 = (((((a4 + 514012) / 5) / 5) * -1)/ 10); + a0 = (((a0 - 351273) / 5) - 16153); + a2 = 1; + + return -1; + } else if(((a2==4) && ( ((-86 < a4) && (-42 >= a4)) && (((input == 5) && ( ((-16 < a29) && (43 >= a29)) || 43 < a29 )) && a0 <= -147 )))){ + if( a0 <= -147 ){ + a0 = (((((a0 + 512655) % 24)- 121) + 294399) - 294399); + a29 = ((((a29 % 29)+ 13) + 1) / 5); + a2 = 5; + + } else{ + a29 = ((((a29 % 29)- -14) - 188513) + 188512); + } return 22; + } else if((((a2==5) && ( ((-98 < a0) && (-61 >= a0)) && (( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ) && (input == 2)))) && ((-86 < a4) && (-42 >= a4)) )){ + if( -61 < a0 ){ + a0 = ((((a0 / 5) * 123)/ 10) * 5); + a29 = ((((a29 - -515249) % 299978)+ 300021) + 0); + a2 = 3; + + } else{ + a4 = (((a4 - 159459) + -255924) * 1); + a0 = (((a0 + 311576) / 5) + 362176); + a29 = (((((a29 * 9)/ 10) / 5) * 5) - -587636); + a2 = 4; + + } return 22; + } else if(( ((-86 < a4) && (-42 >= a4)) && ((a2==1) && ( a0 <= -147 && ( ((-16 < a29) && (43 >= a29)) && (input == 5)))))){ + a4 = ((((a4 * 21)/ 10) + -400646) * 1); + a29 = ((((a29 - 462276) * 10)/ 9) + -52624); + return -1; + } else if(( ((-86 < a4) && (-42 >= a4)) && ( a0 <= -147 && ((( ((-144 < a29) && (-16 >= a29)) && (a2==2)) || (((a2==1) && 43 < a29 ) || ( a29 <= -144 && (a2==2)))) && (input == 4))))){ + if( a29 <= -144 ){ + a0 = ((((a0 % 24)- 121) + 467846) + -467826); + a29 = ((((a29 + 0) % 29)+ 13) - -2); + a2 = 2; + + } else{ + a29 = (((((a29 % 299928)+ -300071) - 2) - -592405) + -592403); + a2 = 3; + + } return 21; + } else if(( ((-86 < a4) && (-42 >= a4)) && ((a2==2) && ((( ((-144 < a29) && (-16 >= a29)) || ((-16 < a29) && (43 >= a29)) ) && (input == 2)) && ((-98 < a0) && (-61 >= a0)) )))){ + if((a2==4)){ + a29 = (((a29 - -453579) + -1007224) + 776721); + a2 = 5; + + } else{ + a4 = ((((a4 * 5) / 5) * 10)/ 4); + a0 = (((((a0 * 5) % 24)- 121) + -360939) + 360945); + a29 = (((((a29 % 63)+ -79) + -2) - -160900) - 160899); + a2 = 4; + + } return -1; + } else if(( -61 < a0 && ( a4 <= -86 && ((a2==5) && ( 43 < a29 && (input == 3)))))){ + a0 = ((((a0 - 0) + -259726) % 299926)- 300072); + a2 = 1; + + return -1; + } else if(( -61 < a0 && ( a4 <= -86 && (((a2==3) && (input == 4)) && 43 < a29 )))){ + if((a2==1)){ + a4 = (((((a4 % 21)- 62) - 2) + 429144) + -429136); + a0 = ((((a0 + -428046) - -377265) % 24)- 122); + a29 = ((((a29 % 299928)+ -300071) * 1) * 1); + a2 = 2; + + } else{ + a4 = ((((a4 + 0) - -403065) % 21)+ -62); + a0 = ((((a0 + 0) % 299926)+ -300072) - 3); + a2 = 1; + + } return 26; + } else if((( ((-147 < a0) && (-98 >= a0)) && (((( ((-16 < a29) && (43 >= a29)) && (a2==1)) || ((a2==1) && 43 < a29 )) || ((a2==2) && a29 <= -144 )) && (input == 6))) && ((-86 < a4) && (-42 >= a4)) )){ + a4 = ((((a4 + 432335) / 5) - -297443) + -770462); + a0 = ((((a0 * 5) - 438552) * 10)/ 9); + a29 = ((((a29 - 0) % 299928)+ -300071) + -2); + a2 = 1; + + return -1; + } else if(( ((-98 < a0) && (-61 >= a0)) && ((((input == 1) && ( ((-16 < a29) && (43 >= a29)) || 43 < a29 )) && (a2==3)) && ((-86 < a4) && (-42 >= a4)) ))){ + if( 136 < a4 ){ + a0 = (((a0 + -330918) / 5) / 5); + a29 = ((((((a29 % 63)- 78) - -182185) * 3) % 63)- 138); + a2 = 5; + + } else{ + a0 = (((a0 - -161415) + -161458) * 1); + a29 = ((((a29 / 5) - -215380) % 29)- 2); + a2 = 2; + + } return -1; + } else if((((a2==2) && (( ((-144 < a29) && (-16 >= a29)) && (input == 1)) && ((-86 < a4) && (-42 >= a4)) )) && ((-147 < a0) && (-98 >= a0)) )){ + a4 = (((a4 / 5) + -51623) + -420756); + a0 = ((((a0 * 5) % 18)+ -77) - 1); + a29 = (((((a29 + -36495) - -410490) / 5) * -1)/ 10); + a2 = 3; + + return -1; + } else if(( a0 <= -147 && ( ((-86 < a4) && (-42 >= a4)) && ((input == 6) && (((a2==4) && ((-144 < a29) && (-16 >= a29)) ) || (( 43 < a29 && (a2==3)) || ((a2==4) && a29 <= -144 ))))))){ + a4 = (((a4 - 511089) / 5) * 5); + a0 = ((((((a0 / 5) % 18)- 72) * 5) % 18)+ -69); + a29 = ((((((a29 % 299928)- 300071) + -2) * 9)/ 10) + -51962); + a2 = 4; + + return -1; + } else if(((((a2==1) && ((input == 5) && ( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ))) && ((-147 < a0) && (-98 >= a0)) ) && ((-86 < a4) && (-42 >= a4)) )){ + a4 = ((((a4 - 299758) * 10)/ 9) - 263514); + a0 = (((a0 + -189742) * -3) / 5); + a29 = (((((a29 - 0) + 0) - -419093) % 299978)- -300021); + a2 = 2; + + return -1; + } else if((( ((-98 < a0) && (-61 >= a0)) && ( ((-86 < a4) && (-42 >= a4)) && ((input == 4) && ( ((-144 < a29) && (-16 >= a29)) || ((-16 < a29) && (43 >= a29)) )))) && (a2==2))){ + a4 = (((a4 - 367509) * 1) + -165889); + a0 = (((((a0 / 5) * 123)/ 10) * 10)/ 9); + a29 = (((a29 + -128272) * 4) - 50089); + a2 = 3; + + return -1; + } else if(( ((-86 < a4) && (-42 >= a4)) && ((a2==5) && (( a0 <= -147 && (input == 2)) && 43 < a29 )))){ + a4 = (((a4 - 332092) + -246937) * 1); + a0 = (((((a0 % 18)- 62) / 5) * 5) - 6); + a29 = (((((a29 - 0) + 0) + -143280) % 29)+ 14); + a2 = 2; + + return -1; + } else if(((a2==1) && ( ((-86 < a4) && (-42 >= a4)) && ((( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ) && (input == 3)) && a0 <= -147 )))){ + if( a29 <= -144 ){ + a0 = ((((a0 % 24)+ -106) + -118072) + 118060); + a29 = ((((a29 % 299978)+ 300021) + 39812) + 4757); + a2 = 2; + + } else{ + a29 = (((((a29 * 9)/ 10) + -26438) % 63)+ -80); + a2 = 5; + + } return 21; + } else if(((((a2==1) && ((input == 6) && ( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ))) && ((-147 < a0) && (-98 >= a0)) ) && ((-86 < a4) && (-42 >= a4)) )){ + a4 = ((((a4 * 21)/ 10) + -313003) - 8733); + a0 = ((((a0 / 5) * 78)/ 10) + -182482); + a29 = (((a29 - -141759) / 5) + -312469); + return -1; + } else if(( ((-86 < a4) && (-42 >= a4)) && (((a2==1) && ((input == 2) && ( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ))) && ((-147 < a0) && (-98 >= a0)) ))){ + a4 = ((((a4 + -92205) * 10)/ 9) * 5); + a0 = (((a0 + -14362) + -530976) + -39701); + a29 = ((((((a29 % 299928)+ -144) / 5) + 115683) * -1)/ 10); + return -1; + } else if(( a0 <= -147 && ((a2==2) && ( ((-86 < a4) && (-42 >= a4)) && (( ((-16 < a29) && (43 >= a29)) || 43 < a29 ) && (input == 2)))))){ + a4 = (((a4 * 5) + -390730) / 5); + a29 = (((a29 / 5) + -339257) + -242099); + a2 = 1; + + return -1; + } else if(( ((-147 < a0) && (-98 >= a0)) && ((((( 43 < a29 && (a2==2)) || ((a2==3) && a29 <= -144 )) || ((a2==3) && ((-144 < a29) && (-16 >= a29)) )) && (input == 4)) && ((-86 < a4) && (-42 >= a4)) ))){ + a4 = (((a4 * 5) + -596150) + -2176); + a0 = ((((a0 * -5) * 5) * 10)/ 9); + a29 = (((((a29 + 0) / 5) * 4) % 299978)- -300021); + a2 = 2; + + return 22; + } else if(((((a2==5) && ((input == 4) && ( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ))) && ((-86 < a4) && (-42 >= a4)) ) && ((-98 < a0) && (-61 >= a0)) )){ + a4 = (((a4 / 5) + -480007) - 49681); + a29 = ((((((a29 % 63)- 40) * 9)/ 10) - -63664) + -63691); + a2 = 3; + + return -1; + } else if(((a2==2) && ( ((-98 < a0) && (-61 >= a0)) && (( a29 <= -144 && (input == 1)) && ((-86 < a4) && (-42 >= a4)) )))){ + a0 = (((((a0 * 25)/ 10) - 475114) * 10)/ 9); + a29 = (((((a29 + 0) % 29)+ 34) - -250200) + -250207); + a2 = 1; + + return 26; + } else if(((( a4 <= -86 && ( -61 < a0 && (input == 5))) && (a2==5)) && ((-16 < a29) && (43 >= a29)) )){ + a0 = ((((a0 % 299926)+ -300072) + -1) * 1); + a29 = (((a29 + -335818) + -248420) / 5); + a2 = 1; + + return -1; + } else if(( ((-86 < a4) && (-42 >= a4)) && (((( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ) && (input == 6)) && (a2==4)) && ((-98 < a0) && (-61 >= a0)) ))){ + if( a4 <= -86 ){ + a4 = ((((a4 * 21)/ 10) + 345448) + -402040); + a0 = (((a0 - 104609) / -5) - -278005); + a29 = ((((a29 % 29)+ 34) + 10997) - 11008); + a2 = 3; + + } else{ + a4 = ((((a4 / 5) * 5) - -85502) - 357269); + a0 = ((((a0 - 38) + -11) + -393003) + 393006); + a29 = ((((a29 % 299928)+ -144) * 1) + -134411); + a2 = 3; + + } return -1; + } else if(( ((-86 < a4) && (-42 >= a4)) && ((a2==5) && ( ((-98 < a0) && (-61 >= a0)) && (( ((-16 < a29) && (43 >= a29)) || 43 < a29 ) && (input == 4)))))){ + a4 = ((((a4 * 10)/ 4) - -531993) + -849572); + a0 = (((((a0 / 5) * 9)/ 10) - 551674) * -1); + a29 = (((((a29 + 0) % 299978)- -300021) / 5) + 138947); + return 26; + } else if(((( ((-86 < a4) && (-42 >= a4)) && ((input == 4) && ((-98 < a0) && (-61 >= a0)) )) && a29 <= -144 ) && (a2==2))){ + a4 = ((((a4 + 545933) * -1)/ 10) * 5); + a0 = ((((a0 + -122294) * -4) * 10)/ 9); + a2 = 4; + + return 21; + } else if(((a2==1) && ((((input == 1) && ( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) )) && a0 <= -147 ) && ((-86 < a4) && (-42 >= a4)) ))){ + a4 = (((a4 - 583803) / 5) / 5); + a0 = (((((a0 / 5) % 24)+ -100) - 190928) - -190917); + a29 = ((((a29 % 29)- -33) + 470403) + -470405); + a2 = 3; + + return -1; + } else if(( a4 <= -86 && ( -61 < a0 && (((((a2==4) && 43 < a29 ) || ((a2==5) && a29 <= -144 )) || ( ((-144 < a29) && (-16 >= a29)) && (a2==5))) && (input == 3))))){ + a4 = (((((a4 % 21)+ -44) * 1) / 5) - 48); + a0 = ((((a0 % 299926)- 300072) * 1) - 3); + a29 = ((((a29 % 299978)+ 300021) * 1) * 1); + a2 = 3; + + return 22; + } else if((((a2==5) && (((input == 5) && (( ((-144 < a29) && (-16 >= a29)) || ((-16 < a29) && (43 >= a29)) ) || 43 < a29 )) && ((-147 < a0) && (-98 >= a0)) )) && ((-86 < a4) && (-42 >= a4)) )){ + a29 = (((((a29 % 299978)+ 300021) * 1) - 479458) + 479460); + return 22; + } else if(((( ((-16 < a29) && (43 >= a29)) && ((input == 1) && ((-147 < a0) && (-98 >= a0)) )) && (a2==2)) && ((-86 < a4) && (-42 >= a4)) )){ + a4 = (((((a4 * 10)/ 4) - 371477) * 10)/ 9); + a0 = (((((a0 * 10)/ 15) - 0) / 5) + -57); + a29 = (((a29 * 5) / 5) - 552027); + a2 = 3; + + return -1; + } else if((( a4 <= -86 && ((input == 6) && ((((a2==2) && ((-16 < a29) && (43 >= a29)) ) || ((a2==2) && 43 < a29 )) || ((a2==3) && a29 <= -144 )))) && -61 < a0 )){ + a0 = (((a0 / 5) + -278887) / 5); + a29 = ((((a29 % 299928)+ -300071) - -514060) - 514060); + a2 = 1; + + return -1; + } else if(((( -61 < a0 && (( ((-144 < a29) && (-16 >= a29)) || ((-16 < a29) && (43 >= a29)) ) && (input == 5))) && a4 <= -86 ) && (a2==3))){ + a0 = ((((a0 + -325280) + -120034) % 299926)+ -300072); + a29 = (((a29 + -112448) + -33410) * 4); + a2 = 1; + + return -1; + } else if(( ((-147 < a0) && (-98 >= a0)) && ( ((-86 < a4) && (-42 >= a4)) && ((((a2==3) && ((-144 < a29) && (-16 >= a29)) ) || (( 43 < a29 && (a2==2)) || ((a2==3) && a29 <= -144 ))) && (input == 5))))){ + a4 = (((a4 - 179640) + -196180) * 1); + a0 = (((((a0 * 5) % 18)+ -68) * 10)/ 9); + a29 = ((((a29 / 5) * 4) % 299978)+ 300021); + a2 = 3; + + return -1; + } else if(( ((-98 < a0) && (-61 >= a0)) && ((((input == 6) && ((-86 < a4) && (-42 >= a4)) ) && (a2==1)) && 43 < a29 ))){ + a4 = ((((a4 * 10)/ 4) * 5) + -460043); + a0 = ((((a0 - 39) - -1) / 5) - 102); + a29 = (((a29 / 5) * 4) - 486694); + a2 = 2; + + return -1; + } else if(( a0 <= -147 && ((((input == 6) && ( ((-16 < a29) && (43 >= a29)) || 43 < a29 )) && (a2==4)) && ((-86 < a4) && (-42 >= a4)) ))){ + a4 = (((a4 - 124968) - 172519) + -276986); + a29 = (((((a29 % 299928)- 300071) - -241689) + 178566) + -420255); + a2 = 2; + + return -1; + } else if(((((a2==1) && ((input == 2) && ( ((-16 < a29) && (43 >= a29)) || ( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) )))) && ((-86 < a4) && (-42 >= a4)) ) && ((-98 < a0) && (-61 >= a0)) )){ + a4 = (((a4 + 4337) - 75733) * 5); + a0 = ((((a0 * 10)/ 4) + -416474) * 1); + a29 = ((((((a29 % 63)- 79) * 1) * 5) % 63)- 77); + return -1; + } else if((( ((-98 < a0) && (-61 >= a0)) && ((a2==4) && ((input == 4) && ( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) )))) && ((-86 < a4) && (-42 >= a4)) )){ + a4 = (((a4 - 5349) - 71855) - 8649); + a0 = ((((a0 - 80857) * 10)/ 9) / 5); + a29 = ((((((a29 % 63)+ -58) * 9)/ 10) - 554414) + 554401); + a2 = 2; + + return -1; + } else if((( ((-86 < a4) && (-42 >= a4)) && (((input == 4) && (( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ) || ((-16 < a29) && (43 >= a29)) )) && a0 <= -147 )) && (a2==3))){ + a4 = (((a4 + -429677) * 1) * 1); + a0 = (((a0 - -600060) + 7) / 5); + a29 = (((((a29 * 9)/ 10) % 63)- 78) - 2); + a2 = 4; + + return -1; + } else if((( ((-86 < a4) && (-42 >= a4)) && ((( a29 <= -144 && (a2==2)) || (( ((-16 < a29) && (43 >= a29)) && (a2==1)) || ((a2==1) && 43 < a29 ))) && (input == 4))) && ((-147 < a0) && (-98 >= a0)) )){ + if( ((-42 < a4) && (136 >= a4)) ){ + a29 = ((((a29 - 0) - 0) % 299978)+ 300021); + a2 = 4; + + } else{ + a0 = (((((a0 % 18)+ -72) + 11) * 10)/ 9); + a29 = (((((a29 % 63)- 78) + 354675) - 303746) - 50931); + a2 = 1; + + } return 21; + } else if(( a0 <= -147 && ( ((-86 < a4) && (-42 >= a4)) && ((input == 1) && (( ((-144 < a29) && (-16 >= a29)) && (a2==4)) || (( 43 < a29 && (a2==3)) || ((a2==4) && a29 <= -144 ))))))){ + a4 = ((((a4 + -38853) + -127579) * 10)/ 9); + a0 = (((a0 - -600019) * 1) - -48); + a29 = ((((a29 % 299928)+ -300071) + -1) * 1); + a2 = 3; + + return -1; + } else if((( ((-86 < a4) && (-42 >= a4)) && ((( ((-16 < a29) && (43 >= a29)) || 43 < a29 ) && (input == 5)) && (a2==2))) && a0 <= -147 )){ + a4 = ((((a4 - 432014) * 1) * 10)/ 9); + a29 = ((((a29 % 299928)- 300071) * 1) * 1); + a2 = 1; + + return -1; + } else if(( ((-86 < a4) && (-42 >= a4)) && ((a2==3) && ( ((-147 < a0) && (-98 >= a0)) && (( ((-16 < a29) && (43 >= a29)) || 43 < a29 ) && (input == 5)))))){ + a4 = (((a4 + -445432) - 38917) / 5); + a0 = (((a0 + -523061) * 1) / 5); + a29 = ((((a29 % 299928)+ -300071) - 1) + -1); + a2 = 1; + + return -1; + } else if(((a2==5) && ((( a0 <= -147 && (input == 5)) && 43 < a29 ) && ((-86 < a4) && (-42 >= a4)) ))){ + a4 = (((a4 - 571896) + -12207) * 1); + a0 = (((a0 + 600032) - -112) / 5); + a29 = (((((a29 % 29)+ -10) + -1) + -180973) + 180992); + return -1; + } else if(( ((-16 < a29) && (43 >= a29)) && (( ((-86 < a4) && (-42 >= a4)) && ((a2==1) && (input == 3))) && a0 <= -147 ))){ + if( ((-144 < a29) && (-16 >= a29)) ){ + a0 = (((((a0 % 24)+ -116) - -428496) + 96525) + -525025); + a29 = (((((a29 / 5) - -588420) - -8138) * -1)/ 10); + a2 = 5; + + } else{ + a29 = (((a29 - -367691) + 130494) - -35139); + a2 = 5; + + } return 22; + } else if(( ((-86 < a4) && (-42 >= a4)) && ( ((-147 < a0) && (-98 >= a0)) && ((a2==4) && ((input == 4) && ( ((-16 < a29) && (43 >= a29)) || 43 < a29 )))))){ + a4 = (((((a4 * 10)/ 4) + 147908) - -409340) + -1095280); + a0 = (((a0 * -5) / 5) - -445352); + a29 = ((((((a29 + -342777) % 29)+ 14) * 5) % 29)- -14); + return -1; + } else if((( a4 <= -86 && ((input == 3) && ((((a2==1) && 43 < a29 ) || ( a29 <= -144 && (a2==2))) || ((a2==2) && ((-144 < a29) && (-16 >= a29)) )))) && -61 < a0 )){ + a0 = ((((a0 % 299926)- 300072) + 0) - 0); + a29 = ((((a29 % 299928)+ -300071) * 1) * 1); + a2 = 1; + + return -1; + } else if(((a2==4) && ((((input == 6) && ( ((-16 < a29) && (43 >= a29)) || 43 < a29 )) && ((-86 < a4) && (-42 >= a4)) ) && ((-98 < a0) && (-61 >= a0)) ))){ + a0 = (((a0 * 5) * 5) * 5); + a29 = ((((a29 - 587266) % 29)+ 13) + 2); + return -1; + } else if(((a2==5) && ((((( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ) || ((-16 < a29) && (43 >= a29)) ) && (input == 3)) && ((-86 < a4) && (-42 >= a4)) ) && a0 <= -147 ))){ + a4 = ((((((a4 * 21)/ 10) * 10)/ 9) / 5) - 395341); + a0 = ((((a0 - -158225) % 18)- 78) - 1); + a29 = (((((a29 + 522034) % 299928)+ -300071) + 203886) + -203887); + a2 = 1; + + return -1; + } else if((( ((-86 < a4) && (-42 >= a4)) && ((((a2==3) && ((-144 < a29) && (-16 >= a29)) ) || (((a2==2) && 43 < a29 ) || ( a29 <= -144 && (a2==3)))) && (input == 1))) && ((-147 < a0) && (-98 >= a0)) )){ + a4 = ((((a4 - 71431) + 461687) - -176106) + -1067274); + a29 = ((((a29 + 0) % 299978)+ 300021) * 1); + a2 = 4; + + return -1; + } else if(( ((-86 < a4) && (-42 >= a4)) && (((( ((-16 < a29) && (43 >= a29)) || ( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) )) && (input == 2)) && a0 <= -147 ) && (a2==5)))){ + a4 = ((((a4 * 5) + -282138) * 10)/ 9); + a29 = (((a29 / 5) - 228236) * 1); + a2 = 3; + + return -1; + } else if(( a4 <= -86 && ( -61 < a0 && ((input == 5) && ((( 43 < a29 && (a2==4)) || ( a29 <= -144 && (a2==5))) || ((a2==5) && ((-144 < a29) && (-16 >= a29)) )))))){ + a0 = (((a0 / 5) + -531058) + -5391); + a29 = ((((a29 % 299928)- 300071) - 1) + -1); + a2 = 1; + + return -1; + } else if(((a2==3) && ( a4 <= -86 && ((( ((-144 < a29) && (-16 >= a29)) || ((-16 < a29) && (43 >= a29)) ) && (input == 1)) && -61 < a0 )))){ + a29 = (((a29 * 5) - -271226) / 5); + a2 = 5; + + return 21; + } else if(((a2==5) && ((((input == 1) && ( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) )) && ((-86 < a4) && (-42 >= a4)) ) && ((-98 < a0) && (-61 >= a0)) ))){ + if( ((-147 < a0) && (-98 >= a0)) ){ + a29 = ((((a29 % 299928)+ -144) * 1) - 299526); + a2 = 3; + + } else{ + a29 = ((((a29 % 29)- -25) + -3) - 3); + a2 = 4; + + } return -1; + } else if((((( -61 < a0 && (input == 2)) && 43 < a29 ) && a4 <= -86 ) && (a2==5))){ + a0 = (((((a0 - 0) % 18)- 79) + -287852) - -287851); + a29 = ((((a29 + -432842) % 63)+ -79) * 1); + a2 = 1; + + return -1; + } else if((((((input == 1) && (a2==1)) && 43 < a29 ) && ((-98 < a0) && (-61 >= a0)) ) && ((-86 < a4) && (-42 >= a4)) )){ + a4 = (((((a4 * 10)/ 4) - 50479) + 331538) - 286662); + a0 = (((a0 + -221394) * 2) - 61944); + a2 = 5; + + return 22; + } else if(((((a2==2) && ((input == 4) && ( ((-16 < a29) && (43 >= a29)) || 43 < a29 ))) && ((-86 < a4) && (-42 >= a4)) ) && a0 <= -147 )){ + a4 = ((((a4 / 5) * 108)/ 10) + -99001); + a0 = (((a0 + 600024) * 1) - -69); + a29 = (((((a29 * 9)/ 10) % 29)+ 13) + 1); + return 22; + } else if((( ((-86 < a4) && (-42 >= a4)) && (((input == 6) && 43 < a29 ) && (a2==2))) && ((-98 < a0) && (-61 >= a0)) )){ + a4 = (((a4 / 5) + -431166) * 1); + a0 = ((((((a0 * 25)/ 10) + 207162) * 2) * -1)/ 10); + a29 = ((((a29 % 299928)- 300071) / 5) + -301321); + a2 = 1; + + return 21; + } else if(( ((-147 < a0) && (-98 >= a0)) && (((( ((-16 < a29) && (43 >= a29)) || 43 < a29 ) && (input == 3)) && ((-86 < a4) && (-42 >= a4)) ) && (a2==3)))){ + a0 = ((((a0 - -11543) + -341421) * 10)/ 9); + a29 = ((((a29 / 5) % 63)+ -79) * 1); + a2 = 4; + + return 22; + } else if((( ((-147 < a0) && (-98 >= a0)) && (((input == 1) && (a2==5)) && ((-86 < a4) && (-42 >= a4)) )) && a29 <= -144 )){ + a4 = (((a4 / 5) - 552897) * 1); + a0 = (((a0 + 155241) + 354784) / 5); + a29 = (((((a29 * 9)/ 10) - 55038) % 29)+ 15); + return 26; + } else if((((a2==1) && ( a0 <= -147 && (( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ) && (input == 6)))) && ((-86 < a4) && (-42 >= a4)) )){ + a29 = ((((a29 + 0) % 299978)+ 300021) - -243945); + a2 = 5; + + return 22; + } else if(((((( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ) && (input == 2)) && ((-147 < a0) && (-98 >= a0)) ) && ((-86 < a4) && (-42 >= a4)) ) && (a2==4))){ + a4 = ((((a4 - -387581) * 10)/ -9) - 92057); + a0 = ((((a0 - 206221) - -444674) / 5) + -346446); + a29 = (((((a29 - -129597) * 1) + -62679) % 299928)+ -300071); + a2 = 1; + + return -1; + } else if((((a2==1) && (((input == 5) && ((-86 < a4) && (-42 >= a4)) ) && 43 < a29 )) && ((-98 < a0) && (-61 >= a0)) )){ + a4 = ((((a4 * 21)/ 10) - 513244) - 63334); + a29 = ((((a29 % 29)- 14) + 8) - -20); + a2 = 5; + + return -1; + } else if((( ((-86 < a4) && (-42 >= a4)) && ( ((-98 < a0) && (-61 >= a0)) && ((input == 5) && (a2==2)))) && a29 <= -144 )){ + a4 = ((((a4 + -126587) * 10)/ 9) * 4); + a0 = (((((a0 * 25)/ 10) * 10)/ 9) - 138870); + a29 = (((((a29 * 9)/ 10) * 1) % 29)- -18); + a2 = 1; + + return -1; + } else if((( -61 < a0 && ((a2==1) && (( ((-144 < a29) && (-16 >= a29)) || ((-16 < a29) && (43 >= a29)) ) && (input == 3)))) && a4 <= -86 )){ + a0 = (((((a0 % 299926)- 300072) * 1) - -96529) - 96530); + a29 = (((a29 * 5) + -30526) + -238122); + return -1; + } else if(( ((-86 < a4) && (-42 >= a4)) && ((((((a2==1) && ((-16 < a29) && (43 >= a29)) ) || ( 43 < a29 && (a2==1))) || ((a2==2) && a29 <= -144 )) && (input == 5)) && ((-147 < a0) && (-98 >= a0)) ))){ + a4 = ((((a4 * 10)/ 4) * 5) / 5); + a0 = ((((a0 * 10)/ 6) - 118188) + -397063); + a29 = ((((a29 % 299928)- 300071) + -1) + -1); + a2 = 1; + + return -1; + } else if((((( ((-147 < a0) && (-98 >= a0)) && (input == 4)) && ((-16 < a29) && (43 >= a29)) ) && (a2==2)) && ((-86 < a4) && (-42 >= a4)) )){ + a4 = ((((a4 / 5) - 192549) * 10)/ 9); + a0 = (((a0 + 287869) * 2) * 1); + a29 = (((a29 - -35786) + 395553) - 630549); + a2 = 4; + + return -1; + } else if(( a4 <= -86 && ((( 43 < a29 && (input == 5)) && -61 < a0 ) && (a2==3)))){ + a0 = ((((a0 % 299926)- 300072) - 1) + -2); + a29 = (((((a29 - 0) * 9)/ 10) / 5) - 544016); + a2 = 1; + + return -1; + } else if((((a2==4) && ( a4 <= -86 && ((input == 3) && (( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ) || ((-16 < a29) && (43 >= a29)) )))) && -61 < a0 )){ + a0 = ((((a0 % 299926)+ -300072) * 1) + -3); + a29 = ((((a29 % 299928)+ -300071) + -2) + 0); + a2 = 1; + + return -1; + } else if(( ((-86 < a4) && (-42 >= a4)) && (((( ((-16 < a29) && (43 >= a29)) || ( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) )) && (input == 6)) && ((-98 < a0) && (-61 >= a0)) ) && (a2==1)))){ + a4 = ((((a4 / 5) / 5) * 861)/ 10); + a0 = (((a0 - -100650) / 5) + -453515); + a29 = ((((a29 % 29)+ 13) / 5) - -27); + a2 = 3; + + return -1; + } else if(((((( ((-16 < a29) && (43 >= a29)) || 43 < a29 ) && (input == 6)) && ((-86 < a4) && (-42 >= a4)) ) && (a2==2)) && a0 <= -147 )){ + a4 = (((a4 / 5) - 522593) + -49139); + a29 = (((a29 / 5) + -408943) - 141073); + a2 = 1; + + return -1; + } else if(( -61 < a0 && ( a4 <= -86 && ((( ((-16 < a29) && (43 >= a29)) || ( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) )) && (input == 2)) && (a2==4))))){ + a0 = ((((a0 % 299926)+ -300072) - 2) * 1); + a29 = ((((a29 - 0) * 9)/ 10) + -22730); + a2 = 1; + + return -1; + } else if((((((input == 1) && (( ((-144 < a29) && (-16 >= a29)) || ((-16 < a29) && (43 >= a29)) ) || 43 < a29 )) && ((-147 < a0) && (-98 >= a0)) ) && (a2==5)) && ((-86 < a4) && (-42 >= a4)) )){ + a4 = (((a4 - 464292) / 5) + -349277); + a0 = (((((a0 - -292898) % 18)- 83) * 10)/ 9); + a29 = (((((a29 * 9)/ 10) % 29)- -13) - -1); + a2 = 1; + + return -1; + } else if(((( ((-98 < a0) && (-61 >= a0)) && ((input == 2) && ( ((-16 < a29) && (43 >= a29)) || 43 < a29 ))) && (a2==3)) && ((-86 < a4) && (-42 >= a4)) )){ + a4 = ((((a4 - -392870) * 1) * 1) + -704326); + a0 = (((a0 - 3611) * 5) / 5); + a29 = ((((((a29 * 9)/ 10) % 29)+ 14) + -564199) - -564199); + return 26; + } else if((((a2==4) && ( ((-86 < a4) && (-42 >= a4)) && ((input == 1) && ( ((-16 < a29) && (43 >= a29)) || 43 < a29 )))) && ((-98 < a0) && (-61 >= a0)) )){ + a29 = ((((((a29 % 63)- 80) + -1) * 5) % 63)+ -70); + return 22; + } else if((((a2==2) && (( ((-147 < a0) && (-98 >= a0)) && (input == 4)) && ((-86 < a4) && (-42 >= a4)) )) && ((-144 < a29) && (-16 >= a29)) )){ + a4 = (((((a4 * 10)/ 4) * 5) * 10)/ 9); + a0 = (((a0 - 286794) / -5) * 5); + a29 = (((((a29 * 5) % 29)- -15) - -348140) + -348131); + a2 = 4; + + return -1; + } else if(((a2==5) && ( ((-86 < a4) && (-42 >= a4)) && (( ((-147 < a0) && (-98 >= a0)) && (input == 4)) && a29 <= -144 )))){ + a4 = (((a4 * 5) / 5) + -406842); + a29 = ((((a29 - -600125) + 18) - 208856) + 208841); + return -1; + } else if(( a4 <= -86 && ((((((a2==2) && ((-16 < a29) && (43 >= a29)) ) || ( 43 < a29 && (a2==2))) || ((a2==3) && a29 <= -144 )) && (input == 3)) && -61 < a0 ))){ + a29 = ((((a29 + 0) + 0) % 29)+ 14); + a2 = 4; + + return 22; + } else if(((a2==2) && ( ((-86 < a4) && (-42 >= a4)) && ((( ((-16 < a29) && (43 >= a29)) || 43 < a29 ) && (input == 1)) && a0 <= -147 )))){ + a29 = ((((a29 % 29)- -14) / 5) / 5); + return 26; + } else if(( a0 <= -147 && ((((((a2==3) && 43 < a29 ) || ( a29 <= -144 && (a2==4))) || ((a2==4) && ((-144 < a29) && (-16 >= a29)) )) && (input == 4)) && ((-86 < a4) && (-42 >= a4)) ))){ + a4 = (((a4 - -368988) + -509555) * 4); + a29 = (((a29 / 5) - 269560) - -609922); + a2 = 4; + + return -1; + } else if(( ((-86 < a4) && (-42 >= a4)) && (( a0 <= -147 && ((a2==5) && (input == 1))) && 43 < a29 ))){ + a4 = ((((a4 - 527117) * 10)/ 9) + -13727); + a0 = (((a0 - -361747) - -238361) - -15); + a29 = ((((((a29 - 0) * 9)/ 10) / 5) % 29)+ -13); + return 26; + } else if((( ((-86 < a4) && (-42 >= a4)) && ((( ((-16 < a29) && (43 >= a29)) || 43 < a29 ) && (input == 3)) && ((-98 < a0) && (-61 >= a0)) )) && (a2==5))){ + if( ((-144 < a29) && (-16 >= a29)) ){ + a0 = (((a0 - -265548) + 287278) + -1007061); + a29 = ((((a29 % 63)+ -78) * 1) + -3); + a2 = 2; + + } else{ + a4 = (((a4 + -300226) / 5) + -5161); + a0 = (((a0 - 211989) + -343212) / 5); + a29 = (((((a29 / 5) / 5) + -325965) % 63)+ -68); + a2 = 1; + + } return 22; + } else if((((a2==2) && (((input == 4) && ((-86 < a4) && (-42 >= a4)) ) && 43 < a29 )) && ((-98 < a0) && (-61 >= a0)) )){ + if((a2==2)){ + a4 = (((a4 / 5) - -464382) - 647516); + a0 = ((((a0 / 5) / -5) * 10)/ 9); + a2 = 5; + + } else{ + a0 = ((((a0 - 280318) + -109923) + 576736) + -186541); + a29 = ((((a29 + -496909) * 1) % 29)- -14); + a2 = 4; + + } return -1; + } else if((((((( ((-16 < a29) && (43 >= a29)) && (a2==1)) || ( 43 < a29 && (a2==1))) || ((a2==2) && a29 <= -144 )) && (input == 2)) && ((-86 < a4) && (-42 >= a4)) ) && ((-147 < a0) && (-98 >= a0)) )){ + a4 = (((((a4 * 10)/ 4) * 5) - -131007) - 193084); + a0 = (((a0 / 5) - 548765) - 28905); + a29 = ((((a29 % 299928)+ -300071) + -1) * 1); + a2 = 1; + + return -1; + } else if(( a4 <= -86 && (((input == 6) && ((( 43 < a29 && (a2==1)) || ( a29 <= -144 && (a2==2))) || ((a2==2) && ((-144 < a29) && (-16 >= a29)) ))) && -61 < a0 ))){ + a29 = ((((((a29 * 9)/ 10) % 29)- -14) + -303719) + 303718); + a2 = 3; + + return 26; + } else if(((a2==1) && (( 43 < a29 && ((input == 2) && ((-98 < a0) && (-61 >= a0)) )) && ((-86 < a4) && (-42 >= a4)) ))){ + a4 = (((a4 * 5) + -378206) * 1); + a0 = (((((a0 + -41) + 3) * 5) % 24)- 116); + a29 = (((((a29 % 299928)- 300071) * 10)/ 9) + -191104); + return -1; + } else if((((((input == 4) && ( ((-144 < a29) && (-16 >= a29)) || ((-16 < a29) && (43 >= a29)) )) && a4 <= -86 ) && (a2==3)) && -61 < a0 )){ + a4 = ((((((a4 % 21)- 48) * 9)/ 10) / 5) + -43); + a0 = (((((a0 % 299926)+ -300072) * 1) / 5) - 339337); + a29 = (((((a29 % 63)- 79) + -57784) - -570548) - 512763); + a2 = 1; + + return 22; + } else if((( ((-86 < a4) && (-42 >= a4)) && (((input == 2) && ( ((-16 < a29) && (43 >= a29)) || 43 < a29 )) && (a2==4))) && ((-98 < a0) && (-61 >= a0)) )){ + if( ((-16 < a29) && (43 >= a29)) ){ + a29 = ((((a29 % 299978)- -300021) + 0) * 1); + } else{ + a4 = (((a4 * 5) - 209138) * 2); + a0 = (((a0 - -253752) + -726068) - 17929); + a29 = ((((a29 % 299928)+ -300071) + -1) - 1); + a2 = 3; + + } return -1; + } else if(((a2==2) && (((( ((-144 < a29) && (-16 >= a29)) || ((-16 < a29) && (43 >= a29)) ) && (input == 3)) && ((-98 < a0) && (-61 >= a0)) ) && ((-86 < a4) && (-42 >= a4)) ))){ + a4 = ((((a4 * 10)/ 4) / 5) * 5); + a0 = (((a0 + 570549) + 7739) + 17884); + a29 = ((((a29 - -418570) / 5) - 588464) - -504725); + a2 = 4; + + return -1; + } else if(( ((-98 < a0) && (-61 >= a0)) && ((((input == 2) && ( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) )) && (a2==4)) && ((-86 < a4) && (-42 >= a4)) ))){ + a4 = (((a4 - 175972) - 86348) + -117422); + a0 = (((a0 + -58554) + -305933) - 232165); + a29 = (((((a29 + 0) - 0) - 0) % 29)- -29); + a2 = 1; + + return 26; + } else if(( ((-147 < a0) && (-98 >= a0)) && ( ((-86 < a4) && (-42 >= a4)) && (((input == 2) && (( ((-144 < a29) && (-16 >= a29)) || ((-16 < a29) && (43 >= a29)) ) || 43 < a29 )) && (a2==5))))){ + a4 = (((a4 + 316167) + -662467) * 1); + a29 = ((((a29 % 29)- -13) + 0) - 0); + a2 = 4; + + return -1; + } else if(( 43 < a29 && ( a4 <= -86 && ( -61 < a0 && ((a2==3) && (input == 3)))))){ + a0 = ((((a0 % 299926)- 300072) - 0) - 1); + a29 = ((((a29 % 299928)- 300071) + 99924) + -200774); + a2 = 1; + + return -1; + } else if((((((input == 1) && ( ((-16 < a29) && (43 >= a29)) || 43 < a29 )) && ((-86 < a4) && (-42 >= a4)) ) && ((-147 < a0) && (-98 >= a0)) ) && (a2==3))){ + if( ((-98 < a0) && (-61 >= a0)) ){ + a29 = ((((((a29 % 29)- -13) + -61659) * 5) % 29)+ 24); + a2 = 5; + + } else{ + a0 = (((a0 - 401265) / 5) + -135803); + a29 = ((((a29 % 299978)+ 300021) - 0) * 1); + a2 = 4; + + } return 22; + } else if(( ((-86 < a4) && (-42 >= a4)) && ( a0 <= -147 && ((( ((-144 < a29) && (-16 >= a29)) && (a2==2)) || (( 43 < a29 && (a2==1)) || ((a2==2) && a29 <= -144 ))) && (input == 1))))){ + a29 = ((((((a29 - 0) - 0) * 9)/ 10) % 29)- -13); + a2 = 2; + + return 21; + } else if(((a2==4) && ((((input == 3) && ( ((-16 < a29) && (43 >= a29)) || 43 < a29 )) && ((-147 < a0) && (-98 >= a0)) ) && ((-86 < a4) && (-42 >= a4)) ))){ + a0 = ((((a0 * 5) - 152016) * 10)/ 9); + a29 = ((((a29 % 299928)+ -300071) + 0) * 1); + a2 = 3; + + return -1; + } else if(((a2==4) && ((((( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ) || ((-16 < a29) && (43 >= a29)) ) && (input == 1)) && a4 <= -86 ) && -61 < a0 ))){ + a0 = (((((a0 - 0) % 299926)- 300072) + 580975) - 580976); + a29 = (((a29 - 0) / 5) - 197811); + a2 = 1; + + return -1; + } else if((((a2==4) && ((( ((-16 < a29) && (43 >= a29)) || 43 < a29 ) && (input == 4)) && ((-98 < a0) && (-61 >= a0)) )) && ((-86 < a4) && (-42 >= a4)) )){ + a0 = ((((a0 - 43) * 5) % 24)+ -121); + a29 = ((((a29 % 63)- 79) - -14650) + -14651); + a2 = 2; + + return -1; + } else if((( ((-86 < a4) && (-42 >= a4)) && ( 43 < a29 && ((input == 3) && (a2==1)))) && ((-98 < a0) && (-61 >= a0)) )){ + a0 = (((((a0 * 5) - 204273) * 2) % 24)- 115); + a29 = ((((a29 + 0) / 5) % 29)+ -10); + return -1; + } else if(( ((-98 < a0) && (-61 >= a0)) && ((a2==1) && ( ((-86 < a4) && (-42 >= a4)) && ((( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ) || ((-16 < a29) && (43 >= a29)) ) && (input == 3)))))){ + a0 = (((a0 - 558048) + -12197) - 637); + a29 = ((((a29 % 63)- 78) + -41396) - -41393); + a2 = 3; + + return -1; + } else if(( a0 <= -147 && (((((a2==2) && ((-144 < a29) && (-16 >= a29)) ) || (( 43 < a29 && (a2==1)) || ( a29 <= -144 && (a2==2)))) && (input == 2)) && ((-86 < a4) && (-42 >= a4)) ))){ + a4 = ((((a4 * 10)/ 4) - 138332) + -409121); + a29 = (((((a29 % 299928)+ -300071) + 218992) * 1) + -218992); + a2 = 1; + + return -1; + } else if(((( ((-86 < a4) && (-42 >= a4)) && ((input == 2) && (a2==2))) && ((-147 < a0) && (-98 >= a0)) ) && ((-144 < a29) && (-16 >= a29)) )){ + a4 = (((a4 / 5) - 28051) / 5); + a0 = (((a0 - -70089) + 469661) + -953384); + a2 = 1; + + return -1; + } else if((((( ((-98 < a0) && (-61 >= a0)) && (input == 2)) && a29 <= -144 ) && (a2==2)) && ((-86 < a4) && (-42 >= a4)) )){ + a4 = (((a4 + -494899) * 1) - 70550); + a0 = ((((a0 - -314354) + 111880) * 10)/ 9); + a29 = ((((a29 + 0) / 5) % 63)- 54); + a2 = 1; + + return -1; + } else if((((a2==5) && ( -61 < a0 && ((input == 5) && 43 < a29 ))) && a4 <= -86 )){ + a4 = ((((((a4 % 21)- 62) - 1) * 5) % 21)- 47); + a0 = ((((a0 / 5) + 345979) * 10)/ -9); + a2 = 3; + + return 22; + } else if((((( a0 <= -147 && (input == 6)) && (a2==5)) && 43 < a29 ) && ((-86 < a4) && (-42 >= a4)) )){ + + a2 = 2; + + return -1; + } else if(( 43 < a29 && ((((input == 4) && a0 <= -147 ) && ((-86 < a4) && (-42 >= a4)) ) && (a2==5)))){ + a4 = ((((a4 * 21)/ 10) * 5) - 593094); + a0 = ((((((a0 % 24)- 122) + -1) * 5) % 24)+ -109); + return -1; + } else if((( ((-147 < a0) && (-98 >= a0)) && ((a2==1) && ((input == 3) && ( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) )))) && ((-86 < a4) && (-42 >= a4)) )){ + a0 = (((a0 + -127384) / 5) + -187730); + a29 = (((((a29 - -345279) + -27646) * 1) % 299928)- 300071); + a2 = 4; + + return -1; + } else if(( -61 < a0 && (((input == 1) && ((( 43 < a29 && (a2==1)) || ( a29 <= -144 && (a2==2))) || ( ((-144 < a29) && (-16 >= a29)) && (a2==2)))) && a4 <= -86 ))){ + a0 = (((((a0 % 299926)+ -300072) / 5) - -67866) - 413054); + a29 = ((((a29 % 299928)+ -300071) + -1) - 1); + a2 = 1; + + return -1; + } else if(((( ((-98 < a0) && (-61 >= a0)) && ((input == 6) && ( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ))) && (a2==3)) && ((-86 < a4) && (-42 >= a4)) )){ + a4 = ((((a4 - 339023) + -231980) - -829860) - 719049); + a0 = (((a0 / 5) * 5) + -38); + a29 = ((((a29 - 0) + 561071) % 299978)- -300021); + a2 = 5; + + return -1; + } else if(((a2==3) && (( ((-98 < a0) && (-61 >= a0)) && ((input == 4) && ( ((-16 < a29) && (43 >= a29)) || 43 < a29 ))) && ((-86 < a4) && (-42 >= a4)) ))){ + a4 = ((((a4 * 10)/ 4) - -506734) - 541845); + a29 = ((((a29 % 63)- 80) + 2) + -3); + a2 = 1; + + return 22; + } else if(( -61 < a0 && ((((( 43 < a29 && (a2==1)) || ( a29 <= -144 && (a2==2))) || ( ((-144 < a29) && (-16 >= a29)) && (a2==2))) && (input == 2)) && a4 <= -86 ))){ + a0 = (((((a0 % 299926)+ -300072) - 2) + 355893) - 355891); + a29 = (((((a29 % 299928)- 300071) + 0) / 5) + -174546); + a2 = 1; + + return -1; + } else if(((((input == 1) && (( a29 <= -144 && (a2==2)) || (( ((-16 < a29) && (43 >= a29)) && (a2==1)) || ((a2==1) && 43 < a29 )))) && ((-86 < a4) && (-42 >= a4)) ) && ((-147 < a0) && (-98 >= a0)) )){ + a0 = ((((a0 * 10)/ 6) * 5) + -500106); + a29 = (((a29 / 5) + 469185) + 438); + a2 = 2; + + return 21; + } else if(((( a0 <= -147 && ( ((-86 < a4) && (-42 >= a4)) && (input == 3))) && (a2==5)) && 43 < a29 )){ + a4 = (((a4 - 205078) * 2) + -14481); + a29 = (((((a29 % 299928)+ -300071) + -41059) * 10)/ 9); + a2 = 1; + + return -1; + } else if((( ((-86 < a4) && (-42 >= a4)) && (((( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ) || ((-16 < a29) && (43 >= a29)) ) && (input == 5)) && a0 <= -147 )) && (a2==3))){ + a4 = ((((a4 * 21)/ 10) + -45471) - 243489); + a29 = (((a29 / 5) - -107734) + 61057); + a2 = 5; + + return -1; + } else if(((a2==2) && ((((input == 3) && ( ((-16 < a29) && (43 >= a29)) || 43 < a29 )) && ((-86 < a4) && (-42 >= a4)) ) && a0 <= -147 ))){ + a29 = ((((a29 % 299978)- -300021) - -1) + 0); + return 26; + } else if(((( ((-86 < a4) && (-42 >= a4)) && ( ((-147 < a0) && (-98 >= a0)) && (input == 2))) && (a2==5)) && a29 <= -144 )){ + a4 = (((a4 + 50595) + -107412) + -84938); + a0 = (((((a0 % 18)- 61) - 8) + -274611) - -274610); + a29 = ((((((a29 * 9)/ 10) / 5) * 5) % 29)+ 42); + a2 = 2; + + return -1; + } else if((( -61 < a0 && ((input == 5) && ((((a2==1) && 43 < a29 ) || ((a2==2) && a29 <= -144 )) || ( ((-144 < a29) && (-16 >= a29)) && (a2==2))))) && a4 <= -86 )){ + a0 = (((((a0 % 299926)- 300072) * 1) / 5) + -364241); + a29 = ((((a29 % 299928)+ -300071) * 1) + -2); + a2 = 1; + + return -1; + } else if(((a2==1) && ((((input == 1) && ( ((-16 < a29) && (43 >= a29)) || ( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ))) && ((-86 < a4) && (-42 >= a4)) ) && ((-98 < a0) && (-61 >= a0)) ))){ + a4 = ((((a4 * 10)/ 4) * 5) / 5); + a29 = ((((a29 % 299928)+ -300071) + 0) * 1); + a2 = 3; + + return -1; + } else if(((( ((-147 < a0) && (-98 >= a0)) && ((a2==2) && (input == 6))) && ((-86 < a4) && (-42 >= a4)) ) && ((-16 < a29) && (43 >= a29)) )){ + a4 = (((a4 / 5) + 304026) - 427802); + a0 = (((a0 * 5) - 577550) * 1); + a2 = 3; + + return -1; + } else if(( ((-98 < a0) && (-61 >= a0)) && ( 43 < a29 && (((a2==2) && (input == 2)) && ((-86 < a4) && (-42 >= a4)) )))){ + if((a2==3)){ + + a2 = 1; + + } else{ + a0 = ((((a0 + -367017) - -366972) + -502345) + 502343); + a29 = ((((a29 * 9)/ 10) - 582444) - 2215); + a2 = 1; + + } return -1; + } else if(((((( ((-16 < a29) && (43 >= a29)) || 43 < a29 ) && (input == 3)) && ((-86 < a4) && (-42 >= a4)) ) && ((-98 < a0) && (-61 >= a0)) ) && (a2==3))){ + a4 = (((a4 + 359989) / 5) + -145327); + a29 = (((((a29 % 63)+ -80) - 1) * 9)/ 10); + a2 = 1; + + return -1; + } else if(( ((-147 < a0) && (-98 >= a0)) && (( ((-86 < a4) && (-42 >= a4)) && (( ((-16 < a29) && (43 >= a29)) || 43 < a29 ) && (input == 4))) && (a2==3)))){ + a4 = ((((a4 * 5) * 10)/ 9) - 472916); + a0 = (((a0 * 5) + -199603) + -185614); + a29 = ((((a29 % 299928)- 300071) + -1) * 1); + a2 = 1; + + return -1; + } else if(((a2==1) && (((( ((-144 < a29) && (-16 >= a29)) || ((-16 < a29) && (43 >= a29)) ) && (input == 6)) && a4 <= -86 ) && -61 < a0 ))){ + a0 = ((((a0 * 9)/ 10) - 587044) + -1747); + a29 = (((a29 - 138235) - 4077) / 5); + return -1; + } else if(( -61 < a0 && ( a4 <= -86 && (((input == 5) && ( ((-144 < a29) && (-16 >= a29)) || ((-16 < a29) && (43 >= a29)) )) && (a2==1))))){ + a0 = (((((a0 % 299926)- 300072) - 3) + 505433) - 505432); + a29 = (((a29 - 76359) - 240588) * 1); + return -1; + } else if(( ((-86 < a4) && (-42 >= a4)) && ((((input == 5) && ( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) )) && ((-98 < a0) && (-61 >= a0)) ) && (a2==4)))){ + if( ((-16 < a29) && (43 >= a29)) ){ + a4 = (((a4 + -550870) - 30700) + -8946); + a0 = (((a0 - 347957) - -538641) + 141803); + a29 = ((((((a29 * 9)/ 10) % 29)- -38) + 300246) + -300253); + a2 = 1; + + } else{ + a29 = ((((a29 / 5) % 29)- -23) + -10); + a2 = 3; + + } return -1; + } else if((( a0 <= -147 && (((input == 1) && ((-86 < a4) && (-42 >= a4)) ) && (a2==1))) && ((-16 < a29) && (43 >= a29)) )){ + a29 = (((a29 + 573320) + 18246) * 1); + a2 = 4; + + return 22; + } else if((( -61 < a0 && ((((a2==5) && ((-144 < a29) && (-16 >= a29)) ) || (( 43 < a29 && (a2==4)) || ((a2==5) && a29 <= -144 ))) && (input == 6))) && a4 <= -86 )){ + a0 = ((((a0 % 299926)+ -300072) / 5) + -390280); + a29 = (((((a29 % 299928)+ -300071) / 5) * 5) - 4); + a2 = 1; + + return -1; + } else if(( ((-147 < a0) && (-98 >= a0)) && ((a2==5) && (((input == 4) && ( 43 < a29 || ( ((-144 < a29) && (-16 >= a29)) || ((-16 < a29) && (43 >= a29)) ))) && ((-86 < a4) && (-42 >= a4)) )))){ + a0 = (((((a0 * 10)/ 6) + 363321) * -1)/ 10); + a29 = ((((a29 % 299978)- -300021) - 439759) - -439760); + a2 = 4; + + return 22; + } else if((( a0 <= -147 && (((input == 4) && ( ((-16 < a29) && (43 >= a29)) || 43 < a29 )) && ((-86 < a4) && (-42 >= a4)) )) && (a2==4))){ + if( a0 <= -147 ){ + a0 = (((((a0 / 5) - 10779) * 4) % 24)- 116); + a29 = (((((a29 % 63)- 78) * 1) - 400269) - -400266); + a2 = 5; + + } else{ + a29 = (((((a29 / 5) - -358331) - 904415) * -1)/ 10); + } return 22; + } else if(((((( ((-144 < a29) && (-16 >= a29)) || ((-16 < a29) && (43 >= a29)) ) && (input == 6)) && a4 <= -86 ) && (a2==3)) && -61 < a0 )){ + a0 = ((((a0 % 299926)- 300072) + -2) + -1); + a29 = ((((a29 - 117398) + 20287) * 10)/ 9); + a2 = 1; + + return -1; + } else if((((((input == 6) && a29 <= -144 ) && ((-86 < a4) && (-42 >= a4)) ) && (a2==5)) && ((-147 < a0) && (-98 >= a0)) )){ + a0 = ((((a0 * 15)/ 10) * 5) * 5); + a29 = (((((((a29 % 29)- -32) * 9)/ 10) * 5) % 29)+ 5); + a2 = 2; + + return -1; + } else if((((((input == 4) && (( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ) || ((-16 < a29) && (43 >= a29)) )) && ((-86 < a4) && (-42 >= a4)) ) && (a2==5)) && a0 <= -147 )){ + a4 = ((((a4 / 5) - 475134) * 10)/ 9); + a0 = (((a0 + 600138) + 8) * 1); + a29 = ((((a29 % 299978)- -300021) * 1) * 1); + a2 = 2; + + return 22; + } else if(( -61 < a0 && (((a2==3) && ( a4 <= -86 && (input == 1))) && 43 < a29 ))){ + a4 = ((((a4 % 21)- 60) - 76016) + 76016); + a0 = ((((a0 + 0) * 9)/ 10) - 595384); + a29 = (((((a29 * 9)/ 10) + -532371) % 29)+ 13); + a2 = 1; + + return 21; + } else if((( ((-86 < a4) && (-42 >= a4)) && (((input == 6) && (( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ) || ((-16 < a29) && (43 >= a29)) )) && (a2==5))) && a0 <= -147 )){ + a29 = (((((a29 % 29)- -14) + -387824) + 752212) + -364388); + return 22; + } else if((( ((-86 < a4) && (-42 >= a4)) && ((a2==4) && (( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ) && (input == 4)))) && ((-147 < a0) && (-98 >= a0)) )){ + a0 = ((((a0 - 283784) + -203187) * 10)/ 9); + a29 = ((((a29 * 9)/ 10) - 36588) - -616793); + a2 = 5; + + return 22; + } else if((( ((-86 < a4) && (-42 >= a4)) && ((( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ) && (input == 5)) && ((-98 < a0) && (-61 >= a0)) )) && (a2==3))){ + if( a0 <= -147 ){ + a4 = (((a4 - 538200) * 1) + -6027); + a0 = (((((a0 + 338124) + -338172) * 5) % 24)- 116); + a29 = (((((a29 + 217515) * 1) * 1) % 29)- -13); + a2 = 4; + + } else{ + a4 = (((a4 + -350456) * 1) + -153833); + a0 = (((a0 - 245704) + 245659) - -1); + a29 = ((((a29 - 0) / 5) % 63)+ -53); + a2 = 5; + + } return -1; + } else if(( a4 <= -86 && ((((((a2==1) && 43 < a29 ) || ((a2==2) && a29 <= -144 )) || ( ((-144 < a29) && (-16 >= a29)) && (a2==2))) && (input == 4)) && -61 < a0 ))){ + a29 = ((((a29 % 299978)- -300021) - 0) + 0); + a2 = 3; + + return 21; + } else if((((a2==3) && (((input == 5) && ( ((-16 < a29) && (43 >= a29)) || 43 < a29 )) && ((-86 < a4) && (-42 >= a4)) )) && ((-98 < a0) && (-61 >= a0)) )){ + a4 = ((((a4 * 10)/ 4) + -494230) / 5); + a29 = ((((a29 + -416279) % 29)- -14) - 1); + a2 = 2; + + return 21; + } else if(( ((-98 < a0) && (-61 >= a0)) && (((a2==3) && (( ((-16 < a29) && (43 >= a29)) || 43 < a29 ) && (input == 6))) && ((-86 < a4) && (-42 >= a4)) ))){ + if( -61 < a0 ){ + a0 = ((((a0 + 145127) + 195081) * 10)/ -9); + a29 = ((((a29 + -380697) % 299978)- -300021) * 1); + a2 = 5; + + } else{ + a0 = ((((a0 + 207710) - 207755) + 233903) + -233904); + a29 = ((((a29 % 29)- -14) / 5) + 7); + a2 = 1; + + } return -1; + } else if(( ((-86 < a4) && (-42 >= a4)) && ( ((-147 < a0) && (-98 >= a0)) && ((a2==2) && ( ((-144 < a29) && (-16 >= a29)) && (input == 5)))))){ + a4 = (((a4 - 7082) / 5) * 5); + a0 = (((a0 / 5) + -422618) - 20096); + a29 = ((((a29 * 5) * -6)/ 10) * 5); + a2 = 5; + + return -1; + } else if(((((((a2==3) && ((-144 < a29) && (-16 >= a29)) ) || (((a2==2) && 43 < a29 ) || ((a2==3) && a29 <= -144 ))) && (input == 6)) && ((-86 < a4) && (-42 >= a4)) ) && ((-147 < a0) && (-98 >= a0)) )){ + if( ((-147 < a0) && (-98 >= a0)) ){ + a29 = (((((a29 - 0) + 0) + 0) % 299978)+ 300021); + a2 = 2; + + } else{ + a0 = (((a0 + -433671) / 5) * 5); + a29 = (((((a29 + 0) % 63)- 80) / 5) + -92); + a2 = 5; + + } return 22; + } else if(((a2==3) && ( ((-147 < a0) && (-98 >= a0)) && ((( ((-16 < a29) && (43 >= a29)) || 43 < a29 ) && (input == 6)) && ((-86 < a4) && (-42 >= a4)) )))){ + a4 = ((((a4 * 5) * 5) * 10)/ 9); + a0 = ((((a0 / 5) * 78)/ 10) - 489010); + a29 = ((((a29 * 9)/ 10) - 579679) * 1); + a2 = 1; + + return -1; + } else if(((((( ((-16 < a29) && (43 >= a29)) || ( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) )) && (input == 1)) && (a2==3)) && ((-86 < a4) && (-42 >= a4)) ) && a0 <= -147 )){ + a4 = (((a4 * 5) + -32547) * 5); + a0 = ((((a0 / 5) % 18)- 77) - 2); + a29 = ((((a29 + 577364) % 299928)- 300071) + -2); + return -1; + } else if(((a2==2) && (( ((-98 < a0) && (-61 >= a0)) && ((input == 5) && ( ((-144 < a29) && (-16 >= a29)) || ((-16 < a29) && (43 >= a29)) ))) && ((-86 < a4) && (-42 >= a4)) ))){ + a29 = ((((((a29 % 63)- 80) * 5) * 5) % 63)+ -45); + a2 = 3; + + return -1; + } else if(( a0 <= -147 && ( ((-86 < a4) && (-42 >= a4)) && ((a2==1) && (( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ) && (input == 5)))))){ + a4 = (((a4 / 5) + -69516) / 5); + a0 = (((((a0 % 24)- 100) / 5) * 61)/ 10); + a29 = ((((a29 + 0) % 29)- -25) / 5); + a2 = 5; + + return -1; + } else if(((((( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ) && (input == 1)) && ((-147 < a0) && (-98 >= a0)) ) && ((-86 < a4) && (-42 >= a4)) ) && (a2==4))){ + a29 = ((((a29 % 299928)- 144) + -181525) + 96009); + a2 = 1; + + return 26; + } else if((((((input == 6) && ( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) )) && ((-86 < a4) && (-42 >= a4)) ) && (a2==5)) && ((-98 < a0) && (-61 >= a0)) )){ + a0 = (((((a0 * 10)/ 4) * 10)/ 9) - 507512); + a29 = (((((a29 / 5) - 91161) / 5) % 63)- 80); + return 22; + } else if((( a0 <= -147 && ((input == 3) && ((( 43 < a29 && (a2==1)) || ( a29 <= -144 && (a2==2))) || ((a2==2) && ((-144 < a29) && (-16 >= a29)) )))) && ((-86 < a4) && (-42 >= a4)) )){ + a0 = ((((a0 - -170985) - 169742) % 24)+ -121); + a29 = (((((a29 + 0) % 63)- 80) - -45522) + -45522); + a2 = 1; + + return 21; + } else if(( -61 < a0 && (((input == 4) && (( ((-144 < a29) && (-16 >= a29)) && (a2==5)) || (((a2==4) && 43 < a29 ) || ((a2==5) && a29 <= -144 )))) && a4 <= -86 ))){ + a0 = ((((a0 % 299926)+ -300072) / 5) - 264648); + a29 = ((((a29 + 0) % 299928)- 300071) - 0); + a2 = 1; + + return -1; + } else if(((a2==4) && ( ((-147 < a0) && (-98 >= a0)) && ((( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ) && (input == 5)) && ((-86 < a4) && (-42 >= a4)) )))){ + a4 = ((((a4 * 10)/ 4) - 249415) - 6157); + a0 = ((((a0 * 10)/ 6) / 5) + -139723); + a29 = ((((a29 + 0) % 299928)- 144) * 1); + a2 = 1; + + return -1; + } else if(( ((-86 < a4) && (-42 >= a4)) && ( ((-98 < a0) && (-61 >= a0)) && ((( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ) && (input == 1)) && (a2==4))))){ + a4 = (((a4 + -3562) - 172744) + -275564); + a0 = (((a0 + -141190) + -295915) / 5); + a29 = (((((a29 % 63)+ -63) + 12) - -297123) - 297094); + a2 = 2; + + return -1; + } else if((((( ((-86 < a4) && (-42 >= a4)) && (input == 5)) && ((-98 < a0) && (-61 >= a0)) ) && (a2==2)) && 43 < a29 )){ + a4 = (((a4 * 5) * 5) + -392587); + return -1; + } else if(( ((-86 < a4) && (-42 >= a4)) && ((a2==2) && (( 43 < a29 && (input == 1)) && ((-98 < a0) && (-61 >= a0)) )))){ + a4 = ((((a4 * 10)/ 4) * 5) + -539534); + a0 = (((a0 / 5) + 96252) / 5); + a29 = (((((a29 / 5) + 107358) * 2) % 63)+ -112); + return 22; + } else if(((a2==5) && ( ((-86 < a4) && (-42 >= a4)) && ( ((-98 < a0) && (-61 >= a0)) && (( ((-16 < a29) && (43 >= a29)) || 43 < a29 ) && (input == 6)))))){ + a4 = (((((a4 - -92469) / 5) / 5) * -1)/ 10); + a29 = (((((a29 % 299978)- -300021) + -100467) / 5) - -264530); + a2 = 3; + + return -1; + } else if(( ((-86 < a4) && (-42 >= a4)) && ((a2==5) && ( ((-98 < a0) && (-61 >= a0)) && (( ((-16 < a29) && (43 >= a29)) || 43 < a29 ) && (input == 1)))))){ + a4 = ((((a4 + -469882) * 10)/ 9) - 73224); + a29 = (((a29 / 5) - 149597) + -40814); + a2 = 3; + + return 22; + } else if(( ((-147 < a0) && (-98 >= a0)) && (((a2==1) && (( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ) && (input == 1))) && ((-86 < a4) && (-42 >= a4)) ))){ + a4 = (((a4 + -119083) / 5) - 259714); + a0 = (((((a0 * 15)/ 10) * 10)/ 9) + -14455); + a29 = (((a29 / 5) + -325971) * 1); + return -1; + } else if(( ((-86 < a4) && (-42 >= a4)) && ((((((a2==2) && 43 < a29 ) || ((a2==3) && a29 <= -144 )) || ((a2==3) && ((-144 < a29) && (-16 >= a29)) )) && (input == 3)) && ((-147 < a0) && (-98 >= a0)) ))){ + a4 = (((a4 + -513094) + -85153) - 1529); + a0 = ((((a0 % 18)- 68) - -263551) - 263549); + a29 = ((((a29 % 299928)+ -300071) * 1) - 1); + a2 = 1; + + return -1; + } else if(( a0 <= -147 && ((((a2==1) && (input == 4)) && ((-86 < a4) && (-42 >= a4)) ) && ((-16 < a29) && (43 >= a29)) ))){ + a4 = (((a4 - 467094) - -9544) * 1); + a0 = (((a0 - -542155) - -57832) + 130); + a29 = ((((a29 - 101) / 5) + 573816) - 573849); + a2 = 2; + + return 26; + } else if(( ((-16 < a29) && (43 >= a29)) && ( ((-147 < a0) && (-98 >= a0)) && ((a2==2) && ((input == 2) && ((-86 < a4) && (-42 >= a4)) ))))){ + a4 = ((((a4 * 10)/ 4) / 5) - 538737); + a0 = (((a0 / 5) + -413860) + 135682); + a29 = (((((a29 + -84) + 101720) * 5) % 63)- 111); + a2 = 1; + + return -1; + } else if((((a2==1) && ((( ((-144 < a29) && (-16 >= a29)) || ((-16 < a29) && (43 >= a29)) ) && (input == 2)) && a4 <= -86 )) && -61 < a0 )){ + a29 = ((((a29 - -384948) * -1)/ 10) * 5); + a2 = 2; + + return 21; + } else if(((a2==4) && (( ((-86 < a4) && (-42 >= a4)) && ((input == 6) && ( ((-16 < a29) && (43 >= a29)) || 43 < a29 ))) && ((-147 < a0) && (-98 >= a0)) ))){ + a4 = ((((a4 * 21)/ 10) * 5) / 5); + a0 = (((((a0 / 5) * 78)/ 10) / 5) + -577837); + a29 = (((((a29 % 29)+ 13) / 5) + 56090) - 56081); + a2 = 3; + + return -1; + } else if((( a0 <= -147 && (((input == 6) && ((-86 < a4) && (-42 >= a4)) ) && (a2==1))) && ((-16 < a29) && (43 >= a29)) )){ + a4 = (((((a4 * 10)/ 4) * 5) - -461601) - 1009325); + a29 = (((a29 - 154537) * 3) / 5); + return -1; + } else if(( a4 <= -86 && (((((a2==3) && a29 <= -144 ) || (((a2==2) && ((-16 < a29) && (43 >= a29)) ) || ( 43 < a29 && (a2==2)))) && (input == 4)) && -61 < a0 ))){ + if((a2==1)){ + a4 = ((((((a4 - 0) % 21)+ -46) / 5) * 59)/ 10); + a0 = (((((a0 % 24)+ -121) + -1) / 5) + -107); + a29 = (((((a29 % 299928)+ -300071) * 1) + 266435) - 266436); + a2 = 4; + + } else{ + a29 = (((((a29 * 9)/ 10) / 5) % 29)- -13); + a2 = 5; + + } return 26; + } else if(( ((-144 < a29) && (-16 >= a29)) && ((a2==2) && (( ((-86 < a4) && (-42 >= a4)) && (input == 6)) && ((-147 < a0) && (-98 >= a0)) )))){ + a4 = ((((a4 * 5) - -277812) + 281460) + -586903); + a0 = (((a0 + -590086) + -3070) * 1); + a29 = ((((a29 - -298590) % 29)- -11) + 1); + a2 = 3; + + return -1; + } else if(( ((-86 < a4) && (-42 >= a4)) && ( ((-147 < a0) && (-98 >= a0)) && ((( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ) && (input == 3)) && (a2==4))))){ + a0 = (((a0 * 5) * 5) + -226030); + a29 = (((((a29 % 29)- -31) + -437215) + -100009) + 537223); + a2 = 5; + + return 22; + } else if(( ((-86 < a4) && (-42 >= a4)) && ((a2==5) && (((( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ) || ((-16 < a29) && (43 >= a29)) ) && (input == 1)) && a0 <= -147 )))){ + a4 = ((((((a4 * 10)/ 4) - 219251) + 313842) * -1)/ 10); + a0 = (((((a0 % 24)+ -114) * 5) % 24)+ -100); + a29 = (((((a29 % 299978)- -300021) + 0) / 5) - -56448); + a2 = 4; + + return -1; + } else if(((( ((-16 < a29) && (43 >= a29)) && ( ((-86 < a4) && (-42 >= a4)) && (input == 2))) && a0 <= -147 ) && (a2==1))){ + a4 = (((a4 / 5) - 423836) / 5); + a29 = (((a29 / 5) + -232495) + -191727); + return -1; + } else if((( ((-147 < a0) && (-98 >= a0)) && (( ((-16 < a29) && (43 >= a29)) && (input == 3)) && (a2==2))) && ((-86 < a4) && (-42 >= a4)) )){ + a0 = (((a0 - 182793) - 17271) + -5363); + a29 = ((((a29 + -61) - -1) / 5) - 18); + a2 = 3; + + return -1; + } else if(((a2==3) && ( ((-98 < a0) && (-61 >= a0)) && ( ((-86 < a4) && (-42 >= a4)) && ((input == 1) && ( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) )))))){ + if((a2==4)){ + a4 = ((((a4 + -299499) - 63850) * 10)/ 9); + a29 = (((a29 / 5) + -305253) * 1); + } else{ + a4 = ((((((a4 * 21)/ 10) + 263628) / 5) * -1)/ 10); + a0 = (((((a0 * 10)/ 4) * 5) - -456731) - 842965); + a29 = ((((a29 - 0) + 0) % 299978)+ 300021); + a2 = 2; + + } return -1; + } else if(( a4 <= -86 && (( -61 < a0 && ((( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ) || ((-16 < a29) && (43 >= a29)) ) && (input == 6))) && (a2==4)))){ + a0 = (((((a0 + 0) % 299926)+ -300072) + 120564) - 120564); + a29 = (((((a29 % 299928)- 300071) + 122297) * 1) - 122298); + a2 = 1; + + return -1; + } else if(( a4 <= -86 && ( ((-16 < a29) && (43 >= a29)) && (( -61 < a0 && (input == 2)) && (a2==5))))){ + a0 = ((((a0 * 9)/ 10) + 1586) - 558159); + a29 = ((((a29 - -259897) * 10)/ -9) * 2); + a2 = 1; + + return -1; + } else if((((a2==1) && ((( ((-144 < a29) && (-16 >= a29)) || ((-16 < a29) && (43 >= a29)) ) && (input == 4)) && a4 <= -86 )) && -61 < a0 )){ + a29 = (((a29 / 5) / 5) + 4459); + a2 = 2; + + return 22; + } else if((( ((-16 < a29) && (43 >= a29)) && ( a4 <= -86 && ( -61 < a0 && (input == 1)))) && (a2==5))){ + a4 = ((((((a4 % 21)- 54) - 6) / 5) * 49)/ 10); + a0 = (((((a0 % 24)- 122) - 1) + -244070) + 244070); + a29 = ((((a29 - 83) * 10)/ 9) + 25); + a2 = 1; + + return 26; + } else if(( ((-98 < a0) && (-61 >= a0)) && ( ((-86 < a4) && (-42 >= a4)) && (((input == 2) && ( ((-16 < a29) && (43 >= a29)) || 43 < a29 )) && (a2==5))))){ + a4 = (((a4 - 3094) + -312684) - 267039); + a0 = (((a0 - 345188) * 1) - -345143); + a29 = (((((a29 % 29)- -13) + 0) - 546639) - -546639); + a2 = 2; + + return -1; + } + return calculate_output2(input); + } + + int calculate_output2(int input) { + + + if(((( ((-86 < a4) && (-42 >= a4)) && ((input == 3) && ( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ))) && (a2==4)) && ((-98 < a0) && (-61 >= a0)) )){ + a4 = (((((a4 * 10)/ 4) * 10)/ 9) - 397224); + a0 = (((a0 - 215873) - 88181) - 261733); + a29 = (((((a29 / 5) + -97608) / 5) % 63)+ -45); + a2 = 5; + + return -1; + } else if((((a2==3) && ( ((-86 < a4) && (-42 >= a4)) && ((input == 6) && (( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ) || ((-16 < a29) && (43 >= a29)) )))) && a0 <= -147 )){ + a4 = ((((a4 / 5) + -351472) * 10)/ 9); + a29 = ((((a29 % 29)+ 13) - -213179) + -213178); + return -1; + } else if(( -61 < a0 && ( a4 <= -86 && (( 43 < a29 && (input == 6)) && (a2==3))))){ + a0 = ((((a0 % 299926)- 300072) + -3) + 0); + a29 = (((a29 / 5) - 393067) + -7867); + a2 = 1; + + return -1; + } else if(( a0 <= -147 && ((((((a2==3) && 43 < a29 ) || ((a2==4) && a29 <= -144 )) || ( ((-144 < a29) && (-16 >= a29)) && (a2==4))) && (input == 3)) && ((-86 < a4) && (-42 >= a4)) ))){ + a4 = (((a4 * 5) - 228549) * 2); + a0 = ((((a0 - -354541) / 5) % 24)+ -121); + a29 = (((((a29 + 0) % 299928)- 300071) / 5) - 431072); + a2 = 2; + + return -1; + } else if(((a2==2) && ( ((-144 < a29) && (-16 >= a29)) && ( ((-86 < a4) && (-42 >= a4)) && ((input == 3) && ((-147 < a0) && (-98 >= a0)) ))))){ + if( ((-98 < a0) && (-61 >= a0)) ){ + + } else{ + a0 = (((a0 - 548873) + -8551) - 28143); + a29 = ((((a29 * 91)/ 10) + -24030) * 5); + a2 = 3; + + } return -1; + } else if((( ((-86 < a4) && (-42 >= a4)) && ((a2==4) && ((input == 2) && ( ((-16 < a29) && (43 >= a29)) || 43 < a29 )))) && ((-147 < a0) && (-98 >= a0)) )){ + a4 = (((a4 - 284947) + -248704) / 5); + a0 = (((a0 - 252835) * 2) + -2618); + a29 = (((((a29 + 0) - 575700) * 1) % 63)- 79); + a2 = 1; + + return -1; + } else if((((((input == 4) && ( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) )) && ((-86 < a4) && (-42 >= a4)) ) && (a2==3)) && ((-98 < a0) && (-61 >= a0)) )){ + a4 = (((a4 - 252198) / 5) * 5); + a0 = (((a0 - 552451) * 1) + -37368); + a29 = ((((a29 - 0) - -265598) % 299978)- -300021); + return 26; + } else if((( ((-98 < a0) && (-61 >= a0)) && ((( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ) && (input == 3)) && ((-86 < a4) && (-42 >= a4)) )) && (a2==3))){ + a29 = ((((a29 % 29)- -28) - 5) - 3); + return 26; + } else if(( ((-98 < a0) && (-61 >= a0)) && (((a2==5) && ((input == 5) && ( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ))) && ((-86 < a4) && (-42 >= a4)) ))){ + if( ((-144 < a29) && (-16 >= a29)) ){ + a0 = (((((a0 - 391159) / 5) + 474417) * -1)/ 10); + a29 = ((((a29 + 321043) - 44655) % 299928)+ -300071); + a2 = 2; + + } else{ + a4 = ((((a4 * 10)/ 4) / 5) - 33144); + a0 = ((((a0 / 5) * 123)/ 10) * 5); + a29 = (((((a29 * 9)/ 10) + 432860) + -149935) - 317631); + a2 = 3; + + } return 26; + } else if((( ((-147 < a0) && (-98 >= a0)) && ((input == 2) && (((a2==3) && ((-144 < a29) && (-16 >= a29)) ) || (((a2==2) && 43 < a29 ) || ( a29 <= -144 && (a2==3)))))) && ((-86 < a4) && (-42 >= a4)) )){ + a4 = ((((a4 / 5) / 5) / 5) + -458972); + a0 = (((((a0 * 15)/ 10) + -283184) * 10)/ 9); + a29 = (((a29 / 5) - 94068) + -91929); + a2 = 3; + + return -1; + } else if((( ((-86 < a4) && (-42 >= a4)) && ((a2==5) && ((( ((-144 < a29) && (-16 >= a29)) || ((-16 < a29) && (43 >= a29)) ) || 43 < a29 ) && (input == 3)))) && ((-147 < a0) && (-98 >= a0)) )){ + a4 = (((a4 - 65033) - 174567) * 2); + a29 = (((((a29 * 9)/ 10) % 29)- -14) + -1); + a2 = 2; + + return -1; + } else if(((((a2==4) && ((input == 6) && ( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ))) && ((-86 < a4) && (-42 >= a4)) ) && ((-147 < a0) && (-98 >= a0)) )){ + a4 = (((a4 + 416590) + -672129) * 2); + a0 = (((a0 + -331324) + -72862) + -9547); + a29 = ((((a29 + 0) / 5) / 5) + -415155); + a2 = 1; + + return -1; + } else if((((a2==5) && ( ((-86 < a4) && (-42 >= a4)) && ((( a29 <= -144 || ((-144 < a29) && (-16 >= a29)) ) || ((-16 < a29) && (43 >= a29)) ) && (input == 5)))) && a0 <= -147 )){ + a4 = (((a4 * 5) + -29347) + -97982); + a0 = (((((a0 % 18)+ -74) / 5) * 49)/ 10); + a29 = ((((a29 - -237985) % 299978)+ 300021) * 1); + a2 = 3; + + return -1; + } else if(((a2==4) && ( a0 <= -147 && ( ((-86 < a4) && (-42 >= a4)) && (( ((-16 < a29) && (43 >= a29)) || 43 < a29 ) && (input == 3)))))){ + a4 = (((a4 / 5) + -251576) * 2); + a0 = (((((a0 + 0) % 24)+ -113) / 5) - 105); + a29 = (((((a29 / 5) - -479587) - -287) % 29)+ 3); + a2 = 2; + + return -1; + } + return -2; + } + +int main() +{ + // default output + int output = -1; + + // main i/o-loop + while(1) + { + // read input + int input; + input = __VERIFIER_nondet_int(); + if ((input != 1) && (input != 2) && (input != 3) && (input != 4) && (input != 5) && (input != 6)) return -2; + + // operate eca engine + output = calculate_output(input); + } +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem16_label00_false-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem16_label00_false-unreach-call.c new file mode 100644 index 000000000..1c8e79d2c --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem16_label00_false-unreach-call.c @@ -0,0 +1,1781 @@ +extern void __VERIFIER_error(void); +extern int __VERIFIER_nondet_int(void); +extern void exit(int); + + // inputs + int inputB = 2; + int inputE = 5; + int inputD = 4; + int inputF = 6; + int inputC = 3; + int inputA = 1; + + + int a15 = 3; + int a18 = -87; + int a16 = 11; + int a12 = 5; + + int calculate_output2(int input); + + int calculate_output(int input) { + if(((((a16==8) && (a15==3)) && a18 <= -156 ) && (a12==6))){ + error_3: exit(0); + } + if(((((a16==8) && (a15==3)) && 134 < a18 ) && (a12==9))){ + error_18: exit(0); + } + if(((((a16==9) && (a15==3)) && a18 <= -156 ) && (a12==8))){ + error_31: exit(0); + } + if(((((a16==10) && (a15==3)) && a18 <= -156 ) && (a12==6))){ + error_43: exit(0); + } + if(((((a16==8) && (a15==3)) && 134 < a18 ) && (a12==6))){ + error_6: exit(0); + } + if(((((a16==9) && (a15==3)) && 134 < a18 ) && (a12==9))){ + error_38: exit(0); + } + if(((((a16==9) && (a15==3)) && a18 <= -156 ) && (a12==7))){ + error_27: exit(0); + } + if(((((a16==9) && (a15==3)) && 134 < a18 ) && (a12==5))){ + error_22: exit(0); + } + if(((((a16==10) && (a15==3)) && a18 <= -156 ) && (a12==8))){ + error_51: exit(0); + } + if(((((a16==9) && (a15==3)) && 134 < a18 ) && (a12==7))){ + error_30: exit(0); + } + if(((((a16==10) && (a15==3)) && 134 < a18 ) && (a12==6))){ + error_46: exit(0); + } + if(((((a16==8) && (a15==3)) && ((-156 < a18) && (-79 >= a18)) ) && (a12==7))){ + error_8: exit(0); + } + if(((((a16==8) && (a15==3)) && 134 < a18 ) && (a12==8))){ + error_14: exit(0); + } + if(((((a16==8) && (a15==3)) && ((-79 < a18) && (134 >= a18)) ) && (a12==6))){ + error_5: exit(0); + } + if(((((a16==9) && (a15==3)) && ((-79 < a18) && (134 >= a18)) ) && (a12==9))){ + error_37: exit(0); + } + if(((((a16==8) && (a15==3)) && ((-156 < a18) && (-79 >= a18)) ) && (a12==5))){ + error_0: __VERIFIER_error(); + } + if(((((a16==8) && (a15==3)) && a18 <= -156 ) && (a12==9))){ + error_15: exit(0); + } + if(((((a16==10) && (a15==3)) && ((-79 < a18) && (134 >= a18)) ) && (a12==5))){ + error_41: exit(0); + } + if(((((a16==9) && (a15==3)) && ((-156 < a18) && (-79 >= a18)) ) && (a12==5))){ + error_20: exit(0); + } + if(((((a16==10) && (a15==3)) && 134 < a18 ) && (a12==8))){ + error_54: exit(0); + } + if(((((a16==8) && (a15==3)) && ((-79 < a18) && (134 >= a18)) ) && (a12==5))){ + error_1: exit(0); + } + if(((((a16==9) && (a15==3)) && ((-79 < a18) && (134 >= a18)) ) && (a12==8))){ + error_33: exit(0); + } + if(((((a16==8) && (a15==3)) && ((-156 < a18) && (-79 >= a18)) ) && (a12==6))){ + error_4: exit(0); + } + if(((((a16==10) && (a15==3)) && ((-156 < a18) && (-79 >= a18)) ) && (a12==8))){ + error_52: exit(0); + } + if(((((a16==10) && (a15==3)) && ((-156 < a18) && (-79 >= a18)) ) && (a12==6))){ + error_44: exit(0); + } + if(((((a16==9) && (a15==3)) && a18 <= -156 ) && (a12==6))){ + error_23: exit(0); + } + if(((((a16==8) && (a15==3)) && 134 < a18 ) && (a12==7))){ + error_10: exit(0); + } + if(((((a16==10) && (a15==3)) && ((-156 < a18) && (-79 >= a18)) ) && (a12==9))){ + error_56: exit(0); + } + if(((((a16==9) && (a15==3)) && 134 < a18 ) && (a12==8))){ + error_34: exit(0); + } + if(((((a16==9) && (a15==3)) && 134 < a18 ) && (a12==6))){ + error_26: exit(0); + } + if(((((a16==9) && (a15==3)) && ((-156 < a18) && (-79 >= a18)) ) && (a12==9))){ + error_36: exit(0); + } + if(((((a16==10) && (a15==3)) && ((-79 < a18) && (134 >= a18)) ) && (a12==8))){ + error_53: exit(0); + } + if(((((a16==9) && (a15==3)) && ((-79 < a18) && (134 >= a18)) ) && (a12==5))){ + error_21: exit(0); + } + if(((((a16==8) && (a15==3)) && ((-156 < a18) && (-79 >= a18)) ) && (a12==8))){ + error_12: exit(0); + } + if(((((a16==10) && (a15==3)) && ((-79 < a18) && (134 >= a18)) ) && (a12==9))){ + error_57: exit(0); + } + if(((((a16==9) && (a15==3)) && a18 <= -156 ) && (a12==9))){ + error_35: exit(0); + } + if(((((a16==8) && (a15==3)) && ((-156 < a18) && (-79 >= a18)) ) && (a12==9))){ + error_16: exit(0); + } + if(((((a16==9) && (a15==3)) && a18 <= -156 ) && (a12==5))){ + error_19: exit(0); + } + if(((((a16==11) && (a15==3)) && a18 <= -156 ) && (a12==5))){ + error_59: exit(0); + } + if(((((a16==10) && (a15==3)) && 134 < a18 ) && (a12==7))){ + error_50: exit(0); + } + if(((((a16==9) && (a15==3)) && ((-79 < a18) && (134 >= a18)) ) && (a12==7))){ + error_29: exit(0); + } + if(((((a16==8) && (a15==3)) && ((-79 < a18) && (134 >= a18)) ) && (a12==7))){ + error_9: exit(0); + } + if(((((a16==9) && (a15==3)) && ((-156 < a18) && (-79 >= a18)) ) && (a12==8))){ + error_32: exit(0); + } + if(((((a16==10) && (a15==3)) && a18 <= -156 ) && (a12==5))){ + error_39: exit(0); + } + if(((((a16==9) && (a15==3)) && ((-79 < a18) && (134 >= a18)) ) && (a12==6))){ + error_25: exit(0); + } + if(((((a16==10) && (a15==3)) && 134 < a18 ) && (a12==9))){ + error_58: exit(0); + } + if(((((a16==9) && (a15==3)) && ((-156 < a18) && (-79 >= a18)) ) && (a12==6))){ + error_24: exit(0); + } + if(((((a16==10) && (a15==3)) && ((-79 < a18) && (134 >= a18)) ) && (a12==6))){ + error_45: exit(0); + } + if(((((a16==8) && (a15==3)) && a18 <= -156 ) && (a12==7))){ + error_7: exit(0); + } + if(((((a16==8) && (a15==3)) && a18 <= -156 ) && (a12==8))){ + error_11: exit(0); + } + if(((((a16==8) && (a15==3)) && ((-79 < a18) && (134 >= a18)) ) && (a12==8))){ + error_13: exit(0); + } + if(((((a16==10) && (a15==3)) && a18 <= -156 ) && (a12==9))){ + error_55: exit(0); + } + if(((((a16==8) && (a15==3)) && ((-79 < a18) && (134 >= a18)) ) && (a12==9))){ + error_17: exit(0); + } + if(((((a16==8) && (a15==3)) && a18 <= -156 ) && (a12==5))){ + globalError: exit(0); + } + if(((((a16==10) && (a15==3)) && ((-79 < a18) && (134 >= a18)) ) && (a12==7))){ + error_49: exit(0); + } + if(((((a16==8) && (a15==3)) && 134 < a18 ) && (a12==5))){ + error_2: exit(0); + } + if(((((a16==10) && (a15==3)) && 134 < a18 ) && (a12==5))){ + error_42: exit(0); + } + if(((((a16==10) && (a15==3)) && ((-156 < a18) && (-79 >= a18)) ) && (a12==5))){ + error_40: exit(0); + } + if(((((a16==10) && (a15==3)) && ((-156 < a18) && (-79 >= a18)) ) && (a12==7))){ + error_48: exit(0); + } + if(((((a16==10) && (a15==3)) && a18 <= -156 ) && (a12==7))){ + error_47: exit(0); + } + if(((((a16==9) && (a15==3)) && ((-156 < a18) && (-79 >= a18)) ) && (a12==7))){ + error_28: exit(0); + } + + if(((a15==3) && ((a16==12) && ((input == 6) && ((((a12==7) && 134 < a18 ) || ( a18 <= -156 && (a12==8))) || ((a12==8) && ((-156 < a18) && (-79 >= a18)) )))))){ + a18 = (((((a18 - 0) + 0) - 0) % 299922)- 300077); + a12 = 8; + + return 22; + } else if(((((a15==3) && ((a12==7) && (input == 3))) && (a16==12)) && ((-156 < a18) && (-79 >= a18)) )){ + a18 = ((((a18 * 10)/ -5) * 5) / 5); + a12 = 9; + + return 22; + } else if(((((input == 2) && (((a12==7) && ((-156 < a18) && (-79 >= a18)) ) || (((a12==6) && 134 < a18 ) || ((a12==7) && a18 <= -156 )))) && (a16==9)) && (a15==4))){ + a18 = ((((a18 / 5) % 106)+ 27) + 1); + a12 = 7; + + return 21; + } else if(((a15==4) && ((((input == 1) && ( ((-79 < a18) && (134 >= a18)) || 134 < a18 )) && (a16==10)) && (a12==5)))){ + a18 = ((((a18 * 9)/ 10) * 1) - 557770); + a15 = 3; + a12 = 6; + + return -1; + } else if(((a16==8) && ((a15==4) && ((a12==8) && ((input == 4) && ((-79 < a18) && (134 >= a18)) ))))){ + a18 = (((a18 - 465312) / 5) + -95319); + a15 = 3; + a12 = 5; + + return -1; + } else if((((a12==8) && ((a15==4) && ( ((-79 < a18) && (134 >= a18)) && (input == 1)))) && (a16==8))){ + a18 = (((a18 + 534994) - 153945) - 311877); + a12 = 9; + + return 25; + } else if((( ((-79 < a18) && (134 >= a18)) && ((a16==12) && ((a15==3) && (input == 6)))) && (a12==7))){ + a18 = (((((a18 / 5) - -329526) * 1) * -1)/ 10); + a16 = 8; + a12 = 5; + + return -1; + } else if((((a12==7) && ((( ((-79 < a18) && (134 >= a18)) || 134 < a18 ) && (input == 6)) && (a16==11))) && (a15==3))){ + a18 = (((((a18 - 0) % 299922)- 300077) / 5) - 269658); + a16 = 8; + a12 = 5; + + return -1; + } else if((((a12==5) && (((( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) ) || 134 < a18 ) && (input == 5)) && (a15==4))) && (a16==8))){ + a18 = ((((a18 + 0) - 386666) % 299922)+ -300077); + a15 = 3; + + return -1; + } else if(((a12==5) && ((((input == 1) && (a16==8)) && a18 <= -156 ) && (a15==4)))){ + + a15 = 3; + + return -1; + } else if((( ((-156 < a18) && (-79 >= a18)) && (((a15==3) && (input == 5)) && (a12==7))) && (a16==12))){ + a18 = (((a18 - 359568) + -143924) + -3048); + a16 = 8; + a12 = 5; + + return -1; + } else if((((((input == 3) && (a16==8)) && (a12==7)) && ((-79 < a18) && (134 >= a18)) ) && (a15==4))){ + a18 = (((a18 * 5) + -585061) + -4999); + a15 = 3; + a12 = 5; + + return -1; + } else if(((a16==10) && ((a12==5) && (((input == 3) && ((-156 < a18) && (-79 >= a18)) ) && (a15==4))))){ + a18 = (((((((a18 * 10)/ 5) * 10)/ 9) / 5) * 45)/ 10); + a16 = 8; + + return -1; + } else if(((((a16==8) && ((a12==6) && (input == 2))) && a18 <= -156 ) && (a15==4))){ + + a15 = 3; + a12 = 5; + + return -1; + } else if((((a15==4) && ((a12==5) && (( 134 < a18 || ( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) )) && (input == 4)))) && (a16==8))){ + a18 = ((((a18 % 106)- -28) + 468168) - 468167); + a12 = 7; + + return 21; + } else if((((a12==8) && ((a15==4) && ((input == 3) && (( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) ) || 134 < a18 )))) && (a16==9))){ + a18 = ((((a18 % 299922)- 300077) + 363758) - 363759); + a16 = 8; + a15 = 3; + a12 = 5; + + return -1; + } else if((((((a16==12) && (input == 1)) && (a12==9)) && 134 < a18 ) && (a15==3))){ + a18 = ((((((a18 - 0) % 299922)+ -300077) / 5) * 51)/ 10); + a16 = 8; + a12 = 5; + + return -1; + } else if(((((a15==4) && ((input == 1) && ( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) ))) && (a16==9)) && (a12==5))){ + a18 = (((a18 + -456144) * 1) + -99954); + a16 = 8; + a15 = 3; + + return -1; + } else if(( 134 < a18 && ((a12==6) && ((a16==10) && ((input == 1) && (a15==4)))))){ + a18 = ((((a18 % 299922)- 300077) + -183065) / 5); + a16 = 8; + a15 = 3; + + return -1; + } else if((((a12==6) && ( a18 <= -156 && ((a16==8) && (input == 1)))) && (a15==4))){ + + a15 = 3; + a12 = 5; + + return -1; + } else if(((a15==3) && ((a16==12) && ((((a12==8) && 134 < a18 ) || ( a18 <= -156 && (a12==9))) && (input == 1))))){ + a18 = ((((a18 % 299922)- 300077) + 389885) - 389885); + a16 = 8; + a12 = 5; + + return -1; + } else if(((a16==12) && ((a12==9) && ((a15==3) && ((input == 2) && ( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) )))))){ + a18 = (((a18 - -464480) - 792268) * 1); + a16 = 8; + a12 = 5; + + return -1; + } else if(((((a16==11) && ((input == 5) && ((-156 < a18) && (-79 >= a18)) )) && (a15==3)) && (a12==5))){ + a18 = ((((a18 - -528844) - -67556) * -1)/ 10); + a16 = 8; + + return -1; + } else if(((a16==9) && ((((input == 3) && (a15==4)) && ((-156 < a18) && (-79 >= a18)) ) && (a12==9)))){ + a18 = ((((a18 + 207) * 5) % 106)+ 7); + a16 = 10; + a15 = 3; + a12 = 5; + + return -1; + } else if(((((( ((-156 < a18) && (-79 >= a18)) && (a12==8)) || (( 134 < a18 && (a12==7)) || ( a18 <= -156 && (a12==8)))) && (input == 3)) && (a15==3)) && (a16==12))){ + a18 = ((((a18 / 5) + -261188) % 38)- 91); + a12 = 5; + + return 21; + } else if(((a16==11) && (((a12==8) && ((input == 1) && (a15==3))) && a18 <= -156 ))){ + + a16 = 8; + a12 = 5; + + return -1; + } else if((((((((a12==7) && 134 < a18 ) || ((a12==8) && a18 <= -156 )) || ( ((-156 < a18) && (-79 >= a18)) && (a12==8))) && (input == 4)) && (a15==3)) && (a16==12))){ + a18 = ((((((a18 - 0) % 38)- 117) / 5) * 51)/ 10); + a12 = 8; + + return -1; + } else if((((a15==4) && (((input == 3) && ( a18 <= -156 || ((-156 < a18) && (-79 >= a18)) )) && (a12==7))) && (a16==8))){ + a18 = (((a18 / 5) - 102582) * 2); + a15 = 3; + a12 = 5; + + return -1; + } else if(((a16==8) && ((( ((-79 < a18) && (134 >= a18)) && (input == 3)) && (a12==9)) && (a15==4)))){ + a18 = (((((a18 - 534921) + 840780) + -285366) * -1)/ 10); + a15 = 3; + a12 = 5; + + return -1; + } else if(((a16==8) && ((a12==6) && ((a15==4) && ((input == 2) && (( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) ) || 134 < a18 )))))){ + a18 = (((((a18 % 299932)+ 300066) - -1) / 5) - -438117); + a16 = 12; + a15 = 3; + a12 = 8; + + return 25; + } else if((((a16==12) && (((( 134 < a18 && (a12==7)) || ( a18 <= -156 && (a12==8))) || ((a12==8) && ((-156 < a18) && (-79 >= a18)) )) && (input == 1))) && (a15==3))){ + a18 = ((((a18 + 0) % 299922)+ -300077) + -1); + a16 = 8; + a12 = 5; + + return -1; + } else if(((a15==3) && (((( ((-79 < a18) && (134 >= a18)) || 134 < a18 ) && (input == 6)) && (a16==11)) && (a12==5)))){ + a18 = ((((a18 % 38)- 116) - 2) - -1); + a12 = 7; + + return 22; + } else if(((a15==4) && ((a12==8) && ((a16==9) && ((input == 5) && (( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) ) || 134 < a18 )))))){ + a18 = ((((((a18 % 38)- 116) + -1) * 5) % 38)- 106); + a16 = 10; + a15 = 3; + a12 = 6; + + return -1; + } else if(( ((-79 < a18) && (134 >= a18)) && (((a16==8) && ((a15==4) && (input == 1))) && (a12==9)))){ + a18 = (((a18 + -26889) - 308042) - -53173); + a15 = 3; + a12 = 5; + + return -1; + } else if(((a16==9) && (((input == 3) && ((((a12==6) && 134 < a18 ) || ((a12==7) && a18 <= -156 )) || ( ((-156 < a18) && (-79 >= a18)) && (a12==7)))) && (a15==4)))){ + a18 = (((((a18 % 299922)- 300077) - 1) - -524582) - 524581); + a16 = 8; + a15 = 3; + a12 = 5; + + return -1; + } else if((((input == 1) && (((( ((-79 < a18) && (134 >= a18)) && (a16==11)) && (a12==9)) || (( 134 < a18 && (a16==11)) && (a12==9))) || (( a18 <= -156 && (a16==12)) && (a12==5)))) && (a15==3))){ + a18 = (((((a18 % 299922)+ -300077) * 1) / 5) + -390754); + a16 = 8; + a12 = 5; + + return -1; + } else if(((a15==4) && ((a12==6) && ((a16==8) && ((input == 3) && (( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) ) || 134 < a18 )))))){ + a18 = ((((a18 + 0) % 299922)+ -300077) - 2); + a16 = 12; + a15 = 3; + a12 = 9; + + return 25; + } else if(((a15==3) && ((a16==12) && ((a12==5) && ((input == 1) && ( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) )))))){ + a18 = (((((a18 % 38)+ -117) / 5) - -1641) + -1708); + return 21; + } else if((((a16==10) && (((input == 2) && ( ((-79 < a18) && (134 >= a18)) || 134 < a18 )) && (a15==4))) && (a12==5))){ + a18 = ((((a18 - 176885) - 48192) % 299922)+ -300077); + a16 = 9; + a15 = 3; + a12 = 7; + + return -1; + } else if(((a16==11) && ((a15==3) && (((a12==8) && (input == 5)) && a18 <= -156 )))){ + + a16 = 8; + a12 = 5; + + return -1; + } else if((((a16==8) && (((input == 4) && (a15==4)) && (a12==5))) && a18 <= -156 )){ + + return -1; + } else if(((a16==8) && (((((a12==9) && ((-156 < a18) && (-79 >= a18)) ) || (( 134 < a18 && (a12==8)) || ( a18 <= -156 && (a12==9)))) && (input == 3)) && (a15==4)))){ + a18 = ((((((a18 * 9)/ 10) % 38)- 117) + -30963) + 30963); + a16 = 9; + a12 = 5; + + return 22; + } else if((((((a12==5) && (input == 6)) && (a16==12)) && 134 < a18 ) && (a15==3))){ + a18 = ((((a18 - 133708) / 5) / 5) - 473751); + a16 = 8; + + return -1; + } else if(((a15==4) && ((a16==9) && ((a12==6) && ((input == 5) && ( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) )))))){ + a18 = ((((a18 / 5) + -18) + 538676) - 538696); + return -1; + } else if((((a15==3) && ((a16==11) && ((input == 3) && (a12==8)))) && a18 <= -156 )){ + + a16 = 8; + a12 = 5; + + return -1; + } else if(((a15==3) && (( ((-79 < a18) && (134 >= a18)) && ((a16==12) && (input == 2))) && (a12==7)))){ + a18 = (((a18 + -122114) / 5) - 319126); + a16 = 8; + a12 = 5; + + return -1; + } else if(((((( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) ) && (input == 6)) && (a16==12)) && (a15==3)) && (a12==9))){ + a18 = (((a18 - 568671) / 5) - -21092); + a16 = 8; + a15 = 4; + a12 = 7; + + return 26; + } else if(((a12==9) && ((((input == 6) && a18 <= -156 ) && (a16==9)) && (a15==4)))){ + a18 = (((a18 + 600140) - -5) + 6); + a16 = 10; + a15 = 3; + a12 = 8; + + return -1; + } else if(((a12==6) && ((a15==4) && (( 134 < a18 && (input == 3)) && (a16==10))))){ + a18 = ((((a18 - 0) / 5) * 4) - 482286); + a16 = 8; + a12 = 5; + + return 26; + } else if(((((( ((-79 < a18) && (134 >= a18)) || ( a18 <= -156 || ((-156 < a18) && (-79 >= a18)) )) && (input == 2)) && (a12==6)) && (a16==12)) && (a15==3))){ + a18 = ((((a18 / 5) / 5) - -69371) + -434278); + a16 = 8; + a12 = 5; + + return -1; + } else if(((a12==8) && ((((input == 2) && ( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) )) && (a16==11)) && (a15==3)))){ + a18 = (((a18 + -260389) / 5) - 210583); + a16 = 8; + a12 = 5; + + return -1; + } else if(((a16==10) && ((a15==4) && ((a12==5) && ((input == 3) && ( ((-79 < a18) && (134 >= a18)) || 134 < a18 )))))){ + a18 = ((((a18 % 299932)- -300066) - 71339) + 71340); + a16 = 12; + a15 = 3; + a12 = 9; + + return 22; + } else if(((a15==4) && ((a16==9) && ((input == 2) && (((a12==5) && 134 < a18 ) || ( a18 <= -156 && (a12==6))))))){ + a18 = (((((a18 * 9)/ 10) % 299922)+ -300077) - 1); + a16 = 8; + a15 = 3; + a12 = 5; + + return -1; + } else if(((((( 134 < a18 && (a12==8)) || ( a18 <= -156 && (a12==9))) && (input == 5)) && (a15==3)) && (a16==12))){ + a18 = ((((a18 % 299922)+ -300077) / 5) - 30273); + a16 = 8; + a12 = 5; + + return -1; + } else if(((a16==11) && ((a15==3) && ((( ((-156 < a18) && (-79 >= a18)) && (a12==7)) || (( 134 < a18 && (a12==6)) || ( a18 <= -156 && (a12==7)))) && (input == 3))))){ + a18 = ((((a18 % 299922)+ -300077) + -1) + -1); + a16 = 8; + a12 = 5; + + return -1; + } else if(((a15==4) && ((((input == 4) && a18 <= -156 ) && (a12==9)) && (a16==9)))){ + a18 = ((((a18 - -89780) % 38)+ -117) + 1); + a15 = 3; + a12 = 5; + + return -1; + } else if(((a15==4) && (((a12==5) && ((input == 5) && a18 <= -156 )) && (a16==8)))){ + + a15 = 3; + + return -1; + } else if((((((input == 2) && (a12==5)) && ((-156 < a18) && (-79 >= a18)) ) && (a15==4)) && (a16==10))){ + a18 = ((((a18 + -131462) * 10)/ 9) * 4); + a16 = 8; + + return -1; + } else if((((a15==3) && ((a12==5) && ((input == 6) && (a16==11)))) && ((-156 < a18) && (-79 >= a18)) )){ + a18 = ((((a18 * 10)/ 5) + -596729) * 1); + a16 = 8; + + return -1; + } else if((((a15==4) && ((a16==9) && ((input == 6) && (( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) ) || 134 < a18 )))) && (a12==8))){ + a18 = (((((a18 - 211013) % 38)- 116) / 5) - 104); + a16 = 10; + a15 = 3; + + return -1; + } else if(((a16==11) && ((a15==3) && ((input == 3) && (((a12==9) && ((-156 < a18) && (-79 >= a18)) ) || (( 134 < a18 && (a12==8)) || ((a12==9) && a18 <= -156 ))))))){ + a18 = (((((a18 % 38)- 117) * 5) % 38)- 97); + a16 = 12; + a12 = 7; + + return 26; + } else if(((((a12==6) && ((( a18 <= -156 || ((-156 < a18) && (-79 >= a18)) ) || ((-79 < a18) && (134 >= a18)) ) && (input == 1))) && (a15==4)) && (a16==10))){ + a18 = (((((a18 % 106)- -28) + -1) + -96017) - -96017); + a16 = 12; + a15 = 3; + a12 = 5; + + return 21; + } else if(((a15==4) && (((( a18 <= -156 || ((-156 < a18) && (-79 >= a18)) ) && (input == 6)) && (a12==7)) && (a16==8)))){ + a18 = ((((a18 % 299922)+ -156) + -148030) - 5822); + a15 = 3; + a12 = 5; + + return -1; + } else if(((a12==6) && ((a15==3) && (((input == 6) && (( a18 <= -156 || ((-156 < a18) && (-79 >= a18)) ) || ((-79 < a18) && (134 >= a18)) )) && (a16==12))))){ + a18 = ((((a18 / 5) - 77572) * 10)/ 9); + a12 = 9; + + return 25; + } else if((((a15==4) && ( ((-79 < a18) && (134 >= a18)) && ((input == 5) && (a12==9)))) && (a16==8))){ + a18 = (((a18 - 337989) * 1) + -240309); + a15 = 3; + a12 = 5; + + return -1; + } else if(((a16==8) && ((((( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) ) || 134 < a18 ) && (input == 3)) && (a12==5)) && (a15==4)))){ + a18 = (((((a18 + 0) * 9)/ 10) / 5) - 594461); + a15 = 3; + + return -1; + } else if(((a16==12) && ((a12==5) && ((a15==3) && ((input == 6) && ( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) )))))){ + a18 = (((((a18 + -597667) * 1) - -30563) % 38)- 112); + a12 = 8; + + return 22; + } else if((((a12==7) && ((a15==4) && ((input == 4) && ( a18 <= -156 || ((-156 < a18) && (-79 >= a18)) )))) && (a16==8))){ + a18 = ((((a18 - -336694) * 1) % 299922)+ -300077); + a15 = 3; + a12 = 5; + + return -1; + } else if(((((input == 4) && (((a12==9) && ((-156 < a18) && (-79 >= a18)) ) || (( 134 < a18 && (a12==8)) || ( a18 <= -156 && (a12==9))))) && (a16==8)) && (a15==4))){ + a18 = (((((a18 * 9)/ 10) % 299922)- 300077) + -2); + a15 = 3; + a12 = 5; + + return -1; + } else if((((a12==5) && ( ((-156 < a18) && (-79 >= a18)) && ((a15==4) && (input == 6)))) && (a16==10))){ + a18 = ((((a18 - 233839) - 136301) / 5) - -671859); + a16 = 9; + a12 = 7; + + return 21; + } else if(((a15==4) && ( ((-79 < a18) && (134 >= a18)) && (((input == 3) && (a12==8)) && (a16==8))))){ + a18 = (((a18 - -28581) + -601110) - 10494); + a15 = 3; + a12 = 5; + + return -1; + } else if((((a15==4) && ((input == 3) && (((a12==8) && ((-156 < a18) && (-79 >= a18)) ) || (( 134 < a18 && (a12==7)) || ((a12==8) && a18 <= -156 ))))) && (a16==8))){ + a18 = ((((((a18 % 299922)+ -300077) + -2) * 9)/ 10) - 52098); + a15 = 3; + a12 = 5; + + return -1; + } else if(((a15==4) && ((a16==9) && ((( ((-156 < a18) && (-79 >= a18)) && (a12==7)) || (((a12==6) && 134 < a18 ) || ((a12==7) && a18 <= -156 ))) && (input == 4))))){ + a18 = (((((((a18 % 299922)+ -300077) - 2) * 9)/ 10) * 11)/ 10); + a16 = 8; + a15 = 3; + a12 = 5; + + return -1; + } else if(((a16==8) && (( a18 <= -156 && ((input == 5) && (a15==4))) && (a12==6)))){ + + a12 = 8; + + return 22; + } else if(((a16==8) && (((( 134 < a18 || ( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) )) && (input == 6)) && (a15==4)) && (a12==5)))){ + a18 = (((((a18 * 9)/ 10) + 11822) * 1) - 601534); + a15 = 3; + + return -1; + } else if(((( ((-79 < a18) && (134 >= a18)) && ((input == 4) && (a15==3))) && (a16==12)) && (a12==8))){ + a18 = (((a18 - -58548) - 365272) - 81969); + a16 = 8; + a15 = 4; + a12 = 6; + + return 21; + } else if(((((((a12==9) && ((a16==9) && ((-79 < a18) && (134 >= a18)) )) || ((a12==9) && ((a16==9) && 134 < a18 ))) || ((a12==5) && ((a16==10) && a18 <= -156 ))) && (input == 6)) && (a15==4))){ + a18 = (((((a18 % 299932)+ 300066) - -1) / 5) - -173797); + a16 = 12; + a15 = 3; + a12 = 9; + + return 22; + } else if(((a12==9) && ((a15==4) && (((input == 4) && (a16==8)) && ((-79 < a18) && (134 >= a18)) )))){ + a18 = ((((a18 - -387386) * -1)/ 10) - 350531); + a15 = 3; + a12 = 5; + + return -1; + } else if(((((a16==12) && ((a15==3) && (input == 6))) && (a12==9)) && 134 < a18 )){ + + return 22; + } else if(((a12==7) && ((a15==4) && (( ((-79 < a18) && (134 >= a18)) && (input == 1)) && (a16==8))))){ + a18 = (((a18 / 5) / 5) - 438923); + a15 = 3; + a12 = 5; + + return -1; + } else if(((a15==4) && ((((input == 5) && 134 < a18 ) && (a16==10)) && (a12==6)))){ + + a16 = 8; + a15 = 3; + a12 = 9; + + return -1; + } else if((((a15==3) && (((input == 2) && (a12==9)) && 134 < a18 )) && (a16==12))){ + + return -1; + } else if(((((( 134 < a18 && (a12==8)) || ((a12==9) && a18 <= -156 )) && (input == 3)) && (a15==3)) && (a16==12))){ + a18 = (((((a18 - 0) + 0) + 0) % 299922)- 300077); + a16 = 8; + a12 = 5; + + return -1; + } else if((((((a16==11) && (input == 2)) && (a15==3)) && (a12==5)) && ((-156 < a18) && (-79 >= a18)) )){ + a18 = ((((a18 - 388142) - 114659) * 10)/ 9); + a16 = 8; + + return -1; + } else if(((a12==5) && ((a16==12) && (((input == 3) && (a15==3)) && 134 < a18 )))){ + a18 = ((((((a18 % 106)- -23) + 2) * 5) % 106)+ -70); + a12 = 8; + + return 24; + } else if((((a15==4) && ((a12==6) && ((input == 5) && (( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) ) || 134 < a18 )))) && (a16==8))){ + a18 = (((((a18 % 299922)- 300077) + -2) / 5) - 29645); + a16 = 12; + a15 = 3; + a12 = 9; + + return 25; + } else if(((((( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) ) && (input == 5)) && (a15==3)) && (a12==5)) && (a16==12))){ + a18 = ((((a18 % 106)- -28) + 1) - 1); + return 24; + } else if((((a12==9) && (((a15==3) && (input == 4)) && 134 < a18 )) && (a16==12))){ + a18 = (((((a18 - 229749) % 299922)+ -300077) / 5) - 241926); + a16 = 8; + a12 = 5; + + return -1; + } else if(((a15==3) && ((a16==11) && ((a12==5) && (( ((-79 < a18) && (134 >= a18)) || 134 < a18 ) && (input == 1)))))){ + a18 = (((((a18 * 9)/ 10) % 106)- -28) + 1); + a12 = 7; + + return 26; + } else if(((a15==4) && ((((a12==9) && (input == 3)) && a18 <= -156 ) && (a16==9)))){ + + a16 = 10; + a12 = 5; + + return 21; + } else if(((a12==5) && ((a15==4) && (((input == 1) && (a16==10)) && ((-156 < a18) && (-79 >= a18)) )))){ + a18 = (((a18 + -288461) + -195317) * 1); + a16 = 8; + + return 26; + } else if(((((a16==9) && ((input == 2) && (a15==4))) && ((-156 < a18) && (-79 >= a18)) ) && (a12==9))){ + a18 = (((((a18 * 10)/ 5) * 10)/ 9) + -493699); + a16 = 8; + a15 = 3; + + return -1; + } else if((((a12==5) && ((( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) ) && (input == 2)) && (a16==9))) && (a15==4))){ + a18 = (((a18 / 5) - -417716) + 79833); + a16 = 12; + a15 = 3; + a12 = 9; + + return 26; + } else if(((a15==3) && ((a16==11) && (((((a12==6) && 134 < a18 ) || ( a18 <= -156 && (a12==7))) || ( ((-156 < a18) && (-79 >= a18)) && (a12==7))) && (input == 6))))){ + a18 = ((((a18 % 299922)+ -300077) + -1) + -1); + a12 = 9; + + return 24; + } else if((((a12==8) && ((a16==11) && (( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) ) && (input == 3)))) && (a15==3))){ + a18 = (((a18 - -441612) - -144586) + 8176); + a16 = 12; + a12 = 6; + + return 22; + } else if(((a16==12) && (( 134 < a18 && ((a12==9) && (input == 3))) && (a15==3)))){ + a18 = ((((a18 % 299922)- 300077) - 272337) - 27219); + a16 = 8; + a12 = 5; + + return -1; + } else if(((((a12==8) && (( 134 < a18 || ( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) )) && (input == 4))) && (a15==4)) && (a16==9))){ + a18 = ((((((a18 * 9)/ 10) % 38)+ -117) - 511801) - -511801); + a12 = 9; + + return 21; + } else if(((((((a16==12) && a18 <= -156 ) && (a12==5)) || (((a12==9) && ((a16==11) && ((-79 < a18) && (134 >= a18)) )) || ((a12==9) && ((a16==11) && 134 < a18 )))) && (input == 5)) && (a15==3))){ + a18 = ((((a18 % 299922)+ -300077) * 1) + 0); + a16 = 8; + a12 = 5; + + return -1; + } else if(((a16==12) && (((a15==3) && ((input == 3) && ( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) ))) && (a12==9)))){ + a18 = (((a18 - -438851) + -1005658) + 501717); + a16 = 8; + a12 = 5; + + return -1; + } else if((((((input == 4) && ( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) )) && (a16==12)) && (a12==5)) && (a15==3))){ + a18 = (((((a18 % 38)+ -116) - -324773) * 1) - 324773); + return 21; + } else if(((a15==3) && (((( a18 <= -156 && (a16==12)) && (a12==5)) || ((( ((-79 < a18) && (134 >= a18)) && (a16==11)) && (a12==9)) || (( 134 < a18 && (a16==11)) && (a12==9)))) && (input == 2)))){ + a18 = (((((a18 * 9)/ 10) % 299922)+ -300077) + -2); + a16 = 8; + a12 = 5; + + return -1; + } else if((((a12==6) && ((a15==4) && (( ((-79 < a18) && (134 >= a18)) || ( a18 <= -156 || ((-156 < a18) && (-79 >= a18)) )) && (input == 5)))) && (a16==10))){ + a18 = ((((a18 - -34662) % 299932)- -300066) * 1); + a15 = 3; + + return -1; + } else if(((a15==4) && ((a16==9) && (((input == 5) && a18 <= -156 ) && (a12==9))))){ + a18 = ((((a18 - 0) + 0) % 106)+ 100); + a16 = 8; + a15 = 3; + a12 = 5; + + return -1; + } else if(((a15==3) && ((a12==9) && ((a16==12) && (( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) ) && (input == 4)))))){ + a18 = (((a18 - 311285) / 5) - 169375); + a16 = 8; + a12 = 5; + + return -1; + } else if((((((input == 2) && a18 <= -156 ) && (a16==9)) && (a15==4)) && (a12==9))){ + a18 = ((((((a18 * 9)/ 10) * 1) * 1) % 106)- -133); + a15 = 3; + a12 = 8; + + return -1; + } else if((((((a12==9) && ((a16==8) && 134 < a18 )) || (( a18 <= -156 && (a16==9)) && (a12==5))) && (input == 4)) && (a15==4))){ + a18 = (((((a18 + 0) / 5) * 4) % 299922)- 300077); + a16 = 8; + a15 = 3; + a12 = 5; + + return -1; + } else if(((a12==5) && ((a16==10) && (((input == 6) && ( ((-79 < a18) && (134 >= a18)) || 134 < a18 )) && (a15==4))))){ + a18 = ((((a18 * 9)/ 10) + 39879) + 10187); + a16 = 9; + a15 = 3; + a12 = 9; + + return -1; + } else if(((((input == 6) && (((a12==9) && ((-156 < a18) && (-79 >= a18)) ) || (((a12==8) && 134 < a18 ) || ( a18 <= -156 && (a12==9))))) && (a16==8)) && (a15==4))){ + a18 = (((((a18 * 9)/ 10) + -45334) % 299922)+ -300077); + a15 = 3; + a12 = 5; + + return -1; + } else if(((a15==3) && (((a12==8) && ((input == 5) && ( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) ))) && (a16==11)))){ + a18 = (((a18 - 574900) * 1) * 1); + a16 = 8; + a12 = 5; + + return -1; + } else if(((a16==12) && ((a15==3) && (((((a12==7) && 134 < a18 ) || ((a12==8) && a18 <= -156 )) || ( ((-156 < a18) && (-79 >= a18)) && (a12==8))) && (input == 2))))){ + a18 = ((((a18 % 299922)- 300077) + -1) * 1); + a16 = 8; + a12 = 5; + + return -1; + } else if(((a15==3) && ((((((a12==8) && 134 < a18 ) || ((a12==9) && a18 <= -156 )) || ((a12==9) && ((-156 < a18) && (-79 >= a18)) )) && (input == 6)) && (a16==11)))){ + a18 = ((((a18 % 299922)+ -300077) - 2) + 0); + a16 = 8; + a12 = 5; + + return -1; + } else if(((((a16==8) && ((( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) ) || 134 < a18 ) && (input == 1))) && (a15==4)) && (a12==5))){ + a18 = ((((a18 % 299922)+ -300077) - 1) - 1); + a15 = 3; + + return -1; + } else if(((a12==8) && ((a16==11) && ((a15==3) && ((input == 1) && ( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) )))))){ + a18 = (((a18 / 5) + -194631) + -403246); + a16 = 8; + a12 = 5; + + return -1; + } else if(((((input == 1) && (((a12==9) && ((-156 < a18) && (-79 >= a18)) ) || (( 134 < a18 && (a12==8)) || ((a12==9) && a18 <= -156 )))) && (a15==3)) && (a16==11))){ + a18 = ((((((a18 * 9)/ 10) % 299922)- 300077) / 5) + -194205); + a16 = 8; + a12 = 5; + + return -1; + } else if((((((( a18 <= -156 || ((-156 < a18) && (-79 >= a18)) ) || ((-79 < a18) && (134 >= a18)) ) && (input == 1)) && (a12==6)) && (a15==3)) && (a16==11))){ + a18 = ((((a18 / 5) + 361665) * 10)/ -9); + a16 = 8; + a12 = 5; + + return -1; + } else if(((((a12==8) && ((input == 2) && (a16==8))) && ((-79 < a18) && (134 >= a18)) ) && (a15==4))){ + a18 = (((a18 + -445261) / 5) + -398719); + a15 = 3; + a12 = 5; + + return -1; + } else if(((a15==4) && ((((((a12==6) && 134 < a18 ) || ((a12==7) && a18 <= -156 )) || ( ((-156 < a18) && (-79 >= a18)) && (a12==7))) && (input == 5)) && (a16==9)))){ + a18 = ((((((a18 % 299922)+ -300077) / 5) + 368648) * -1)/ 10); + a16 = 8; + a15 = 3; + a12 = 5; + + return -1; + } else if((((((input == 4) && (a15==3)) && a18 <= -156 ) && (a12==8)) && (a16==11))){ + + a16 = 8; + a12 = 5; + + return -1; + } else if((((a16==11) && (((a15==3) && (input == 2)) && a18 <= -156 )) && (a12==8))){ + a18 = (((((a18 * 9)/ 10) % 106)- -27) - 0); + a16 = 12; + a12 = 6; + + return 26; + } else if(( ((-79 < a18) && (134 >= a18)) && ((a15==4) && (((a16==8) && (input == 4)) && (a12==7))))){ + a18 = (((((a18 - 14625) % 38)- 90) + 504647) - 504666); + a12 = 9; + + return 21; + } else if(((a16==12) && ((((input == 1) && ((-79 < a18) && (134 >= a18)) ) && (a15==3)) && (a12==8)))){ + a18 = ((((a18 - 505930) * 10)/ 9) + -6324); + a16 = 8; + a12 = 5; + + return -1; + } else if((((a15==4) && ((((a12==5) && 134 < a18 ) || ((a12==6) && a18 <= -156 )) && (input == 3))) && (a16==9))){ + a18 = ((((((a18 * 9)/ 10) * 1) * 1) % 299922)+ -300077); + a16 = 8; + a15 = 3; + a12 = 5; + + return -1; + } else if(((((a16==12) && ( 134 < a18 && (input == 4))) && (a15==3)) && (a12==5))){ + a18 = (((((a18 - 0) % 299922)+ -300077) * 10)/ 9); + a16 = 8; + + return -1; + } else if(( ((-156 < a18) && (-79 >= a18)) && ((a15==3) && ((a12==5) && ((a16==11) && (input == 3)))))){ + a18 = (((a18 - 346761) - -815404) + -976893); + a16 = 8; + + return -1; + } else if((((a15==4) && ((((a12==5) && 134 < a18 ) || ((a12==6) && a18 <= -156 )) && (input == 1))) && (a16==9))){ + a18 = (((((a18 % 299922)- 300077) + -2) + 166911) + -166909); + a16 = 8; + a15 = 3; + a12 = 5; + + return -1; + } else if(((a15==3) && ((a16==12) && ((input == 4) && (((a12==8) && 134 < a18 ) || ((a12==9) && a18 <= -156 )))))){ + a18 = (((((a18 + 0) % 299922)+ -300077) - -216724) + -216725); + a16 = 8; + a12 = 5; + + return -1; + } else if(((a16==12) && ( ((-156 < a18) && (-79 >= a18)) && (((a12==7) && (input == 1)) && (a15==3))))){ + a18 = ((((a18 - -321471) / 5) * -1)/ 10); + a16 = 8; + a15 = 4; + a12 = 5; + + return 22; + } else if(((( ((-79 < a18) && (134 >= a18)) && ((a12==7) && (input == 2))) && (a16==8)) && (a15==4))){ + a18 = (((a18 + -10249) - 154667) - 274224); + a15 = 3; + a12 = 5; + + return -1; + } else if((((a12==7) && ( ((-79 < a18) && (134 >= a18)) && ((a15==4) && (input == 6)))) && (a16==8))){ + a18 = ((((a18 + -530804) * 1) * 10)/ 9); + a15 = 3; + a12 = 5; + + return -1; + } else if(((a16==10) && ((((input == 4) && (a12==5)) && (a15==4)) && ((-156 < a18) && (-79 >= a18)) ))){ + a18 = ((((a18 / 5) - 345528) - 47726) + 960891); + a16 = 8; + a15 = 3; + a12 = 8; + + return -1; + } else if((((a16==12) && ((( 134 < a18 && (a12==6)) || ((a12==7) && a18 <= -156 )) && (input == 1))) && (a15==3))){ + a18 = (((a18 / 5) - -286090) - 697375); + a16 = 8; + a12 = 5; + + return -1; + } else if(((a12==5) && (((a16==10) && (( ((-79 < a18) && (134 >= a18)) || 134 < a18 ) && (input == 4))) && (a15==4)))){ + a18 = ((((a18 / 5) * 4) / 5) - -92063); + a16 = 8; + a15 = 3; + a12 = 6; + + return -1; + } else if(((a16==12) && (((((a12==6) && 134 < a18 ) || ( a18 <= -156 && (a12==7))) && (input == 5)) && (a15==3)))){ + a18 = (((((a18 * 9)/ 10) / 5) % 106)- -27); + a12 = 9; + + return 26; + } else if((((a16==9) && ((( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) ) && (input == 3)) && (a12==6))) && (a15==4))){ + a18 = ((((a18 - 434752) * 10)/ 9) * 1); + a16 = 8; + a15 = 3; + a12 = 5; + + return -1; + } else if(((a16==9) && ((a15==4) && ((input == 3) && (( a18 <= -156 && (a12==8)) || (( ((-79 < a18) && (134 >= a18)) && (a12==7)) || ( 134 < a18 && (a12==7)))))))){ + a18 = (((((a18 % 299922)- 300077) + 492107) / 5) - 171690); + a16 = 8; + a15 = 3; + a12 = 5; + + return -1; + } else if(((a15==4) && (((input == 5) && ((((a12==7) && 134 < a18 ) || ( a18 <= -156 && (a12==8))) || ((a12==8) && ((-156 < a18) && (-79 >= a18)) ))) && (a16==8)))){ + a18 = (((((a18 * 9)/ 10) * 1) % 299922)- 300077); + a15 = 3; + a12 = 5; + + return -1; + } else if(((a16==9) && (((a15==4) && ((input == 1) && a18 <= -156 )) && (a12==9)))){ + a18 = ((((a18 - 0) + 432253) % 38)+ -117); + a16 = 10; + a12 = 5; + + return 22; + } else if(((a12==6) && ((a16==9) && ((a15==4) && (( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) ) && (input == 6)))))){ + a18 = ((((((a18 - 391987) * 10)/ 9) - -1010678) * -1)/ 10); + a16 = 8; + a12 = 7; + + return -1; + } else if(((a15==4) && ((a16==10) && (((input == 4) && (( a18 <= -156 || ((-156 < a18) && (-79 >= a18)) ) || ((-79 < a18) && (134 >= a18)) )) && (a12==6))))){ + a18 = ((((((a18 * 9)/ 10) % 106)- -28) + -527048) + 527047); + a16 = 12; + a15 = 3; + a12 = 5; + + return 21; + } else if(((((input == 5) && (((a12==8) && a18 <= -156 ) || (( ((-79 < a18) && (134 >= a18)) && (a12==7)) || ( 134 < a18 && (a12==7))))) && (a15==4)) && (a16==9))){ + a18 = (((((a18 * 9)/ 10) % 299922)+ -300077) - 1); + a16 = 8; + a15 = 3; + a12 = 5; + + return -1; + } else if(((a16==12) && ( ((-79 < a18) && (134 >= a18)) && (((input == 2) && (a15==3)) && (a12==8))))){ + a18 = (((a18 + -78407) * 5) * 1); + a16 = 8; + a12 = 5; + + return -1; + } else if(((a15==3) && (((a12==5) && (( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) ) && (input == 2))) && (a16==12)))){ + a18 = (((a18 + -461068) + -81241) / 5); + a16 = 8; + + return -1; + } else if((((a12==7) && ((a15==3) && (( ((-79 < a18) && (134 >= a18)) || 134 < a18 ) && (input == 2)))) && (a16==11))){ + a18 = ((((a18 - 0) % 299922)+ -300077) * 1); + a16 = 8; + a12 = 5; + + return -1; + } else if(((a12==6) && ((a15==3) && ((a16==12) && (( ((-79 < a18) && (134 >= a18)) || ( a18 <= -156 || ((-156 < a18) && (-79 >= a18)) )) && (input == 1)))))){ + a18 = ((((a18 + 570150) + 12375) / 5) - 311619); + a16 = 8; + a12 = 5; + + return -1; + } else if((((a15==4) && ((input == 6) && (((a12==7) && ((-156 < a18) && (-79 >= a18)) ) || (( 134 < a18 && (a12==6)) || ((a12==7) && a18 <= -156 ))))) && (a16==9))){ + a18 = ((((a18 % 299922)+ -300077) + -1) - 1); + a16 = 8; + a15 = 3; + a12 = 5; + + return -1; + } else if((((a15==3) && ((a16==12) && ((input == 5) && ( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) )))) && (a12==9))){ + a18 = ((((a18 + -342736) - 10111) * 10)/ 9); + a16 = 8; + a12 = 5; + + return -1; + } else if(((a15==4) && (((( a18 <= -156 && (a16==10)) && (a12==5)) || ((((a16==9) && ((-79 < a18) && (134 >= a18)) ) && (a12==9)) || (( 134 < a18 && (a16==9)) && (a12==9)))) && (input == 4)))){ + a18 = (((((a18 + 0) * 9)/ 10) % 299932)- -300066); + a16 = 10; + a12 = 6; + + return 22; + } else if(((a15==3) && ((((a16==12) && (input == 1)) && (a12==7)) && ((-79 < a18) && (134 >= a18)) ))){ + a18 = (((a18 + -550746) - 39665) - 1952); + a16 = 8; + a12 = 5; + + return -1; + } else if(((a15==4) && (((a16==9) && ((input == 4) && ( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) ))) && (a12==5)))){ + a18 = (((a18 * 5) - -337473) - 438171); + a16 = 8; + a15 = 3; + + return -1; + } else if(((a15==4) && ((input == 3) && ((((a16==10) && a18 <= -156 ) && (a12==5)) || (((a12==9) && ( ((-79 < a18) && (134 >= a18)) && (a16==9))) || ((a12==9) && ((a16==9) && 134 < a18 ))))))){ + a18 = ((((a18 - 0) % 299932)+ 300066) - -2); + a16 = 9; + a15 = 3; + a12 = 7; + + return -1; + } else if((((a15==3) && ((( ((-79 < a18) && (134 >= a18)) || 134 < a18 ) && (input == 1)) && (a12==7))) && (a16==11))){ + a18 = ((((a18 % 299932)- -300066) / 5) * 5); + a16 = 12; + a12 = 5; + + return 24; + } else if((((a12==5) && ( 134 < a18 && ((a16==12) && (input == 2)))) && (a15==3))){ + a18 = ((((a18 % 299922)- 300077) + -264640) * 1); + a16 = 8; + + return -1; + } else if((((input == 1) && ((((a16==8) && 134 < a18 ) && (a12==9)) || (((a16==9) && a18 <= -156 ) && (a12==5)))) && (a15==4))){ + a18 = ((((a18 % 299932)- -300066) / 5) - -391507); + a16 = 8; + a12 = 6; + + return 22; + } else if(((a12==6) && (((a15==3) && ((input == 5) && (( a18 <= -156 || ((-156 < a18) && (-79 >= a18)) ) || ((-79 < a18) && (134 >= a18)) ))) && (a16==12)))){ + a18 = ((((a18 / 5) + -85998) * 10)/ 9); + a16 = 8; + a12 = 5; + + return -1; + } else if((((a12==6) && ((( ((-79 < a18) && (134 >= a18)) || ( a18 <= -156 || ((-156 < a18) && (-79 >= a18)) )) && (input == 5)) && (a16==11))) && (a15==3))){ + a18 = ((((a18 * 9)/ 10) + -36694) - 20345); + a12 = 8; + + return 21; + } else if(((a16==12) && ((a15==3) && (( ((-79 < a18) && (134 >= a18)) && (input == 5)) && (a12==8))))){ + a18 = (((((a18 / 5) - 448485) + 1026663) * -1)/ 10); + a16 = 8; + a12 = 5; + + return -1; + } else if(((a12==6) && ((a16==11) && ((( ((-79 < a18) && (134 >= a18)) || ( a18 <= -156 || ((-156 < a18) && (-79 >= a18)) )) && (input == 6)) && (a15==3))))){ + a18 = ((((a18 % 106)+ 27) - 0) - 0); + a12 = 8; + + return 21; + } else if(((a12==8) && ((a15==3) && ( ((-79 < a18) && (134 >= a18)) && ((input == 3) && (a16==12)))))){ + a18 = ((((a18 + -545737) + -23113) + 1070233) + -885976); + a16 = 8; + a12 = 5; + + return -1; + } else if((((a15==4) && (((input == 6) && (a16==8)) && (a12==9))) && ((-79 < a18) && (134 >= a18)) )){ + a18 = (((a18 + -53755) - 464770) + -16467); + a15 = 3; + a12 = 5; + + return -1; + } else if((((a16==9) && ((a12==5) && (( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) ) && (input == 3)))) && (a15==4))){ + a18 = (((a18 * 5) - 10445) - 493515); + a16 = 8; + a15 = 3; + + return -1; + } else if(((a15==4) && (((a12==6) && ((input == 3) && (a16==8))) && a18 <= -156 ))){ + + a15 = 3; + a12 = 5; + + return -1; + } else if(((a16==8) && ((a15==4) && ((a12==6) && ((input == 6) && (( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) ) || 134 < a18 )))))){ + a18 = (((((a18 % 299922)+ -300077) - 1) / 5) + -169688); + a15 = 3; + a12 = 5; + + return -1; + } else if((((a16==9) && (((( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) ) || 134 < a18 ) && (input == 2)) && (a15==4))) && (a12==8))){ + a18 = ((((a18 % 299922)+ -300077) - 2) - 0); + a12 = 9; + + return 21; + } else if(((a12==5) && (((a16==9) && (( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) ) && (input == 6))) && (a15==4)))){ + a18 = (((a18 + -119540) + -156143) + 89026); + a16 = 8; + a15 = 3; + + return -1; + } else if((((( a18 <= -156 && (input == 4)) && (a15==4)) && (a12==6)) && (a16==8))){ + + a15 = 3; + a12 = 5; + + return -1; + } else if(((a12==6) && (((a16==10) && ((input == 4) && 134 < a18 )) && (a15==4)))){ + a18 = (((a18 / 5) + -58871) - 215176); + return 24; + } else if((((a15==3) && ((input == 6) && (( 134 < a18 && (a12==6)) || ((a12==7) && a18 <= -156 )))) && (a16==12))){ + a18 = (((((a18 % 299922)- 300077) * 1) / 5) + -32545); + a16 = 8; + a12 = 5; + + return -1; + } else if(((((a15==4) && ((input == 1) && ( a18 <= -156 || ((-156 < a18) && (-79 >= a18)) ))) && (a12==7)) && (a16==8))){ + a18 = ((((a18 * 9)/ 10) - 44611) - 2793); + a15 = 3; + a12 = 5; + + return -1; + } else if(((a15==3) && ((a16==11) && ((( ((-156 < a18) && (-79 >= a18)) && (a12==7)) || (((a12==6) && 134 < a18 ) || ( a18 <= -156 && (a12==7)))) && (input == 4))))){ + a18 = ((((a18 / 5) * 4) % 299922)- 300077); + a16 = 8; + a12 = 5; + + return -1; + } else if((((input == 5) && ((((a12==9) && ( ((-79 < a18) && (134 >= a18)) && (a16==9))) || (((a16==9) && 134 < a18 ) && (a12==9))) || (( a18 <= -156 && (a16==10)) && (a12==5)))) && (a15==4))){ + a18 = ((((a18 % 299932)- -300066) - -1) - 0); + a16 = 12; + a15 = 3; + a12 = 9; + + return 22; + } else if(((a12==5) && ((a16==11) && (((input == 1) && (a15==3)) && ((-156 < a18) && (-79 >= a18)) )))){ + + a12 = 6; + + return 22; + } else if(((a16==8) && (((input == 1) && ((( 134 < a18 && (a12==7)) || ((a12==8) && a18 <= -156 )) || ( ((-156 < a18) && (-79 >= a18)) && (a12==8)))) && (a15==4)))){ + a18 = (((((a18 - 0) / 5) * 4) % 299922)- 300077); + a15 = 3; + a12 = 5; + + return -1; + } else if(((a16==9) && ((((input == 2) && ( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) )) && (a15==4)) && (a12==6)))){ + a18 = ((((a18 % 106)+ 27) - 0) - -1); + return -1; + } else if(((a16==11) && ((a15==3) && (((input == 3) && (( a18 <= -156 || ((-156 < a18) && (-79 >= a18)) ) || ((-79 < a18) && (134 >= a18)) )) && (a12==6))))){ + a18 = ((((a18 % 299922)- 300077) + -1) - 1); + a16 = 8; + a12 = 5; + + return -1; + } else if(((a15==4) && ((input == 5) && (((a12==9) && ((a16==8) && 134 < a18 )) || (((a16==9) && a18 <= -156 ) && (a12==5)))))){ + a18 = ((((a18 % 299922)+ -300077) * 1) * 1); + a16 = 8; + a15 = 3; + a12 = 5; + + return -1; + } else if(((a15==4) && ((input == 2) && ((( 134 < a18 && (a16==8)) && (a12==9)) || ((a12==5) && ((a16==9) && a18 <= -156 )))))){ + a18 = ((((a18 % 299922)- 300077) - 2) - 0); + a16 = 8; + a15 = 3; + a12 = 5; + + return -1; + } else if(((((a12==6) && (( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) ) && (input == 1))) && (a16==9)) && (a15==4))){ + a18 = (((a18 + -381867) * 1) * 1); + a16 = 8; + a15 = 3; + a12 = 5; + + return -1; + } else if(((a15==3) && (((input == 4) && (( 134 < a18 && (a12==6)) || ( a18 <= -156 && (a12==7)))) && (a16==12)))){ + a18 = ((((a18 % 299922)+ -300077) + 179128) + -179128); + a16 = 8; + a12 = 5; + + return -1; + } else if(( ((-156 < a18) && (-79 >= a18)) && (((a12==5) && ((input == 4) && (a15==3))) && (a16==11)))){ + a18 = ((((a18 - -196) - -3) - 306144) + 306115); + return 21; + } else if(((( ((-79 < a18) && (134 >= a18)) && ((input == 5) && (a15==4))) && (a12==8)) && (a16==8))){ + a18 = ((((a18 - -325901) - 596158) * 10)/ 9); + a15 = 3; + a12 = 5; + + return -1; + } else if((((input == 4) && ((((a12==9) && ( ((-79 < a18) && (134 >= a18)) && (a16==11))) || ((a12==9) && ( 134 < a18 && (a16==11)))) || (( a18 <= -156 && (a16==12)) && (a12==5)))) && (a15==3))){ + a18 = ((((a18 % 106)+ 28) - 1) - 0); + a16 = 12; + a12 = 7; + + return 21; + } else if(((a15==4) && ((((((a12==7) && 134 < a18 ) || ((a12==8) && a18 <= -156 )) || ((a12==8) && ((-156 < a18) && (-79 >= a18)) )) && (input == 2)) && (a16==8)))){ + a18 = ((((a18 / 5) % 106)+ 28) - -1); + a12 = 9; + + return 24; + } else if((((a16==9) && ((( a18 <= -156 && (a12==8)) || (((a12==7) && ((-79 < a18) && (134 >= a18)) ) || ( 134 < a18 && (a12==7)))) && (input == 6))) && (a15==4))){ + a18 = (((a18 / 5) - 311597) * 1); + a16 = 8; + a15 = 3; + a12 = 5; + + return -1; + } else if(((a16==10) && ( 134 < a18 && ((a12==6) && ((a15==4) && (input == 6)))))){ + a18 = ((((a18 % 106)- 22) - -310427) - 310465); + a16 = 9; + a12 = 8; + + return 24; + } else if(( a18 <= -156 && ((((input == 6) && (a15==3)) && (a16==11)) && (a12==8)))){ + + a16 = 8; + a12 = 5; + + return -1; + } else if(((((input == 1) && (( a18 <= -156 && (a12==8)) || (( ((-79 < a18) && (134 >= a18)) && (a12==7)) || ( 134 < a18 && (a12==7))))) && (a15==4)) && (a16==9))){ + a18 = ((((a18 % 38)+ -116) - 1) - 1); + a12 = 8; + + return 24; + } else if(((a15==4) && (((a12==6) && ((input == 4) && ( 134 < a18 || ( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) )))) && (a16==8)))){ + a18 = ((((a18 + -471665) % 299922)+ -300077) + -1); + a15 = 3; + a12 = 5; + + return -1; + } else if(((a15==4) && ((a16==8) && ((((a12==9) && ((-156 < a18) && (-79 >= a18)) ) || (( 134 < a18 && (a12==8)) || ((a12==9) && a18 <= -156 ))) && (input == 1))))){ + a18 = (((((a18 * 9)/ 10) + 30175) / 5) - 488605); + a15 = 3; + a12 = 5; + + return -1; + } else if((((((a12==5) && ( a18 <= -156 && (a16==12))) || ((( ((-79 < a18) && (134 >= a18)) && (a16==11)) && (a12==9)) || (((a16==11) && 134 < a18 ) && (a12==9)))) && (input == 3)) && (a15==3))){ + a18 = ((((a18 % 299922)- 300077) - 1) * 1); + a16 = 8; + a12 = 5; + + return -1; + } else if((((((a15==3) && (input == 1)) && (a16==12)) && 134 < a18 ) && (a12==5))){ + a18 = (((((a18 % 299922)+ -300077) * 10)/ 9) - 83144); + a16 = 8; + + return -1; + } else if(((( ((-156 < a18) && (-79 >= a18)) && ((input == 5) && (a16==10))) && (a12==5)) && (a15==4))){ + a18 = (((a18 - -463156) - 463043) + 25); + a16 = 8; + a15 = 3; + a12 = 6; + + return -1; + } else if(((a16==11) && ((a12==7) && ((a15==3) && ((input == 5) && ( ((-79 < a18) && (134 >= a18)) || 134 < a18 )))))){ + a18 = ((((a18 % 299922)- 300077) + -2) - 0); + a16 = 8; + a12 = 5; + + return -1; + } else if(((a15==4) && ((a16==9) && (((((a12==7) && ((-79 < a18) && (134 >= a18)) ) || ( 134 < a18 && (a12==7))) || ((a12==8) && a18 <= -156 )) && (input == 2))))){ + a18 = (((((a18 % 299922)+ -300077) / 5) * 5) + -2); + a16 = 8; + a15 = 3; + a12 = 5; + + return -1; + } else if((((a16==12) && ((input == 6) && (((a12==8) && 134 < a18 ) || ( a18 <= -156 && (a12==9))))) && (a15==3))){ + a18 = (((((a18 * 9)/ 10) * 1) % 106)- -27); + a16 = 8; + a15 = 4; + a12 = 6; + + return 22; + } else if(((a15==4) && (((a16==9) && ((input == 5) && ( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) ))) && (a12==5)))){ + a18 = ((((a18 - 312650) * 10)/ 9) - 121120); + a16 = 8; + a15 = 3; + + return -1; + } else if(((a15==3) && ((input == 6) && (((((a16==11) && ((-79 < a18) && (134 >= a18)) ) && (a12==9)) || ((a12==9) && ( 134 < a18 && (a16==11)))) || (((a16==12) && a18 <= -156 ) && (a12==5)))))){ + a18 = (((a18 / 5) + -368911) - 86460); + a16 = 8; + a12 = 5; + + return -1; + } else if(((a16==9) && ((a12==6) && ((a15==4) && ((input == 4) && ( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) )))))){ + a18 = (((a18 + -541849) / 5) * 5); + a12 = 5; + + return -1; + } else if((((a15==4) && (((input == 2) && (a16==8)) && (a12==5))) && a18 <= -156 )){ + a18 = ((((((a18 * 9)/ 10) / 5) * 5) % 38)+ -106); + a16 = 12; + a15 = 3; + + return 21; + } else if(((((a15==3) && ((input == 1) && ( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) ))) && (a16==12)) && (a12==9))){ + a18 = (((a18 / 5) / 5) + -202401); + a16 = 8; + a12 = 5; + + return -1; + } else if(((a15==3) && ((a12==5) && ((a16==12) && ((input == 5) && 134 < a18 ))))){ + a18 = ((((a18 % 299922)- 300077) + -103268) - 179093); + a16 = 8; + + return -1; + } else if((((a15==3) && ((a16==12) && ((input == 3) && ( ((-79 < a18) && (134 >= a18)) || ( a18 <= -156 || ((-156 < a18) && (-79 >= a18)) ))))) && (a12==6))){ + a18 = ((((a18 % 299922)+ -300077) + -1) + -1); + a16 = 8; + a12 = 5; + + return -1; + } else if(((a12==9) && ((((input == 5) && (a15==3)) && (a16==12)) && 134 < a18 ))){ + a18 = (((((a18 + 0) - 0) + 0) % 38)- 138); + a12 = 8; + + return -1; + } else if(((((input == 2) && (((a12==7) && ((-156 < a18) && (-79 >= a18)) ) || (((a12==6) && 134 < a18 ) || ( a18 <= -156 && (a12==7))))) && (a15==3)) && (a16==11))){ + a18 = (((((a18 % 299922)+ -300077) - -251504) - 125524) + -125980); + a16 = 8; + a12 = 5; + + return -1; + } else if(((a16==11) && ((((input == 3) && ( ((-79 < a18) && (134 >= a18)) || 134 < a18 )) && (a12==5)) && (a15==3)))){ + a18 = ((((a18 + 0) * 9)/ 10) + -591177); + a16 = 8; + + return -1; + } else if(((a15==4) && ((((a12==9) && ( 134 < a18 && (a16==8))) || ((a12==5) && ((a16==9) && a18 <= -156 ))) && (input == 3)))){ + a18 = ((((((a18 - 0) % 38)+ -117) / 5) * 51)/ 10); + a16 = 9; + a12 = 6; + + return 22; + } else if(((a12==8) && ((((input == 6) && (a15==3)) && ((-79 < a18) && (134 >= a18)) ) && (a16==12)))){ + a18 = (((a18 * 5) - 592842) / 5); + a16 = 8; + a12 = 5; + + return -1; + } else if(((a15==3) && ((a16==12) && ((((a12==6) && 134 < a18 ) || ( a18 <= -156 && (a12==7))) && (input == 3))))){ + a18 = ((((a18 % 299922)- 300077) - 2) - 0); + a16 = 8; + a12 = 5; + + return -1; + } else if((((a16==12) && ((a15==3) && ((a12==7) && (input == 4)))) && ((-79 < a18) && (134 >= a18)) )){ + a18 = ((((a18 + -58296) - -119457) * 10)/ 9); + a16 = 8; + a15 = 4; + a12 = 5; + + return 22; + } else if(((((( ((-79 < a18) && (134 >= a18)) || 134 < a18 ) && (input == 3)) && (a15==3)) && (a16==11)) && (a12==7))){ + a18 = (((a18 / 5) + -363987) / 5); + a16 = 8; + a12 = 5; + + return -1; + } else if((((a12==6) && ( a18 <= -156 && ((a16==8) && (input == 6)))) && (a15==4))){ + + a15 = 3; + a12 = 5; + + return -1; + } else if(((((( ((-156 < a18) && (-79 >= a18)) && (a12==9)) || (((a12==8) && 134 < a18 ) || ( a18 <= -156 && (a12==9)))) && (input == 5)) && (a16==11)) && (a15==3))){ + a18 = ((((a18 % 299922)+ -300077) - 1) - 1); + a16 = 8; + a12 = 5; + + return -1; + } else if(( ((-156 < a18) && (-79 >= a18)) && ((((input == 2) && (a16==12)) && (a12==7)) && (a15==3)))){ + a18 = ((((a18 - 288903) + -104387) * 10)/ 9); + a16 = 8; + a12 = 5; + + return -1; + } else if(((a15==4) && ((((input == 5) && ( ((-79 < a18) && (134 >= a18)) || 134 < a18 )) && (a12==5)) && (a16==10)))){ + a18 = ((((((a18 % 38)- 117) * 1) * 5) % 38)- 96); + return 22; + } else if(((a15==4) && ( a18 <= -156 && ((a12==5) && ((a16==8) && (input == 6)))))){ + a18 = (((((a18 % 38)- 103) - -12) * 9)/ 10); + a16 = 12; + a15 = 3; + a12 = 7; + + return -1; + } else if((((a16==12) && ((input == 5) && ((((a12==7) && 134 < a18 ) || ( a18 <= -156 && (a12==8))) || ( ((-156 < a18) && (-79 >= a18)) && (a12==8))))) && (a15==3))){ + a18 = ((((((a18 + 0) * 9)/ 10) / 5) % 106)- -27); + a12 = 5; + + return 21; + } else if(((a16==9) && ((a15==4) && ((input == 6) && (( 134 < a18 && (a12==5)) || ((a12==6) && a18 <= -156 )))))){ + a18 = ((((a18 % 299922)- 300077) - 1) * 1); + a12 = 7; + + return 26; + } else if((((a12==6) && ((a16==11) && (( ((-79 < a18) && (134 >= a18)) || ( a18 <= -156 || ((-156 < a18) && (-79 >= a18)) )) && (input == 2)))) && (a15==3))){ + a18 = (((((a18 % 299922)- 300077) * 1) / 5) - 145687); + a16 = 8; + a12 = 5; + + return -1; + } else if(((a15==4) && ((a12==9) && ((a16==9) && ((input == 1) && ((-156 < a18) && (-79 >= a18)) ))))){ + a18 = (((a18 - -186) - -589325) - 589400); + a15 = 3; + + return -1; + } else if(((a15==4) && ((input == 6) && ((((a16==8) && 134 < a18 ) && (a12==9)) || (((a16==9) && a18 <= -156 ) && (a12==5)))))){ + a18 = ((((a18 * 9)/ 10) / 5) + -312636); + a16 = 8; + a15 = 3; + a12 = 5; + + return -1; + } else if(((((( ((-156 < a18) && (-79 >= a18)) && (a12==9)) || (( 134 < a18 && (a12==8)) || ( a18 <= -156 && (a12==9)))) && (input == 2)) && (a15==4)) && (a16==8))){ + a18 = ((((a18 + 0) % 299922)- 300077) * 1); + a15 = 3; + a12 = 5; + + return -1; + } + return calculate_output2(input); + } + + int calculate_output2(int input) { + + + if(((a16==11) && (((a15==3) && ((input == 4) && ( ((-79 < a18) && (134 >= a18)) || ( a18 <= -156 || ((-156 < a18) && (-79 >= a18)) )))) && (a12==6)))){ + a18 = ((((a18 % 299922)+ -300077) * 1) * 1); + a16 = 8; + a12 = 5; + + return -1; + } else if(((a15==4) && ((input == 2) && ((((a12==9) && ( ((-79 < a18) && (134 >= a18)) && (a16==9))) || (((a16==9) && 134 < a18 ) && (a12==9))) || (((a16==10) && a18 <= -156 ) && (a12==5)))))){ + a18 = (((a18 / 5) + -396744) + -23110); + a16 = 10; + a15 = 3; + a12 = 8; + + return -1; + } else if(((a16==11) && (((input == 5) && ((( 134 < a18 && (a12==6)) || ((a12==7) && a18 <= -156 )) || ((a12==7) && ((-156 < a18) && (-79 >= a18)) ))) && (a15==3)))){ + a18 = (((((a18 % 106)- -28) - -1) + -190496) - -190494); + a12 = 9; + + return 24; + } else if(((a12==7) && ( ((-79 < a18) && (134 >= a18)) && (((input == 5) && (a15==3)) && (a16==12))))){ + a18 = ((((a18 / 5) + 4454) / 5) - 411113); + a16 = 8; + a12 = 5; + + return -1; + } else if((((a15==3) && ((a12==8) && (( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) ) && (input == 4)))) && (a16==11))){ + a18 = ((((a18 + -273331) * 10)/ 9) / 5); + a16 = 8; + a12 = 5; + + return -1; + } else if(((a16==10) && ((a15==4) && (( 134 < a18 && (input == 2)) && (a12==6))))){ + a18 = ((((a18 - 490505) + -86259) % 299922)+ -300077); + a16 = 9; + a15 = 3; + a12 = 8; + + return -1; + } else if((((a15==4) && ((( ((-156 < a18) && (-79 >= a18)) && (a12==8)) || (( 134 < a18 && (a12==7)) || ((a12==8) && a18 <= -156 ))) && (input == 6))) && (a16==8))){ + a18 = (((a18 / 5) + -571) + -337865); + a15 = 3; + a12 = 5; + + return -1; + } else if(((a16==8) && ((a15==4) && (((input == 2) && (a12==9)) && ((-79 < a18) && (134 >= a18)) )))){ + a18 = (((a18 - 193312) - 117004) + -81027); + a16 = 9; + a12 = 6; + + return 21; + } else if((((((input == 4) && ((-156 < a18) && (-79 >= a18)) ) && (a12==9)) && (a16==9)) && (a15==4))){ + + a16 = 8; + a15 = 3; + a12 = 5; + + return -1; + } else if(((a12==7) && ((a15==3) && ((a16==12) && ((input == 4) && ((-156 < a18) && (-79 >= a18)) ))))){ + a18 = ((((a18 * 10)/ 5) * 5) * 5); + a16 = 8; + a12 = 5; + + return -1; + } else if((((a16==9) && ((((a12==5) && 134 < a18 ) || ((a12==6) && a18 <= -156 )) && (input == 5))) && (a15==4))){ + a18 = (((a18 - 0) / 5) + -211951); + a16 = 8; + a15 = 3; + a12 = 5; + + return -1; + } else if(((a12==6) && ((a15==4) && ((( ((-79 < a18) && (134 >= a18)) || ( a18 <= -156 || ((-156 < a18) && (-79 >= a18)) )) && (input == 3)) && (a16==10))))){ + a18 = ((((((a18 + 101692) % 38)+ -117) * 5) % 38)+ -113); + a16 = 8; + a15 = 3; + a12 = 7; + + return -1; + } else if((((a16==11) && ((a15==3) && (( ((-79 < a18) && (134 >= a18)) || 134 < a18 ) && (input == 4)))) && (a12==7))){ + a18 = ((((a18 + -488724) % 299922)- 300077) - 2); + a16 = 8; + a12 = 5; + + return -1; + } else if((((((input == 6) && (( a18 <= -156 || ((-156 < a18) && (-79 >= a18)) ) || ((-79 < a18) && (134 >= a18)) )) && (a16==10)) && (a15==4)) && (a12==6))){ + a18 = (((((a18 * 9)/ 10) + -30078) % 38)+ -89); + a16 = 9; + a12 = 8; + + return -1; + } else if((((a16==12) && ((input == 2) && (((a12==6) && 134 < a18 ) || ( a18 <= -156 && (a12==7))))) && (a15==3))){ + a18 = ((((a18 % 299922)+ -300077) - -391248) - 391248); + a16 = 8; + a12 = 5; + + return -1; + } else if(((a15==4) && (((a12==6) && ((input == 1) && ( 134 < a18 || ( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) )))) && (a16==8)))){ + a18 = (((a18 / 5) - 162524) / 5); + a15 = 3; + a12 = 5; + + return -1; + } else if(((a16==12) && (( ((-79 < a18) && (134 >= a18)) && ((input == 3) && (a12==7))) && (a15==3)))){ + a18 = ((((a18 / 5) + -75398) * 10)/ 9); + a16 = 8; + a12 = 5; + + return -1; + } else if(((((input == 4) && ((((a12==7) && 134 < a18 ) || ((a12==8) && a18 <= -156 )) || ( ((-156 < a18) && (-79 >= a18)) && (a12==8)))) && (a15==4)) && (a16==8))){ + a18 = (((((a18 % 299922)- 300077) * 1) - -561980) - 561981); + a15 = 3; + a12 = 5; + + return -1; + } else if(((a16==9) && ((((((a12==6) && 134 < a18 ) || ( a18 <= -156 && (a12==7))) || ( ((-156 < a18) && (-79 >= a18)) && (a12==7))) && (input == 1)) && (a15==4)))){ + a18 = ((((a18 - 0) % 299922)- 300077) * 1); + a16 = 8; + a15 = 3; + a12 = 5; + + return -1; + } else if(((a16==8) && (((input == 5) && (((a12==9) && ((-156 < a18) && (-79 >= a18)) ) || (( 134 < a18 && (a12==8)) || ( a18 <= -156 && (a12==9))))) && (a15==4)))){ + a18 = ((((a18 / 5) + -149887) * 10)/ 9); + a15 = 3; + a12 = 5; + + return -1; + } else if((((((a15==4) && (input == 6)) && (a16==8)) && (a12==8)) && ((-79 < a18) && (134 >= a18)) )){ + a18 = (((a18 * 5) + -275350) * 2); + a15 = 3; + a12 = 5; + + return -1; + } else if(((((a12==5) && (( ((-79 < a18) && (134 >= a18)) || 134 < a18 ) && (input == 2))) && (a16==11)) && (a15==3))){ + a18 = ((((a18 - 0) - 0) % 299922)+ -300077); + a16 = 8; + + return -1; + } else if((((a12==5) && ((a15==3) && ((input == 4) && ( ((-79 < a18) && (134 >= a18)) || 134 < a18 )))) && (a16==11))){ + a18 = (((((a18 % 299922)+ -300077) - 1) / 5) - 308492); + a16 = 8; + + return -1; + } else if((((a16==9) && ((input == 4) && (((a12==8) && a18 <= -156 ) || (( ((-79 < a18) && (134 >= a18)) && (a12==7)) || ( 134 < a18 && (a12==7)))))) && (a15==4))){ + a18 = (((((a18 - 0) + 0) + 0) % 299922)+ -300077); + a16 = 8; + a15 = 3; + a12 = 5; + + return -1; + } else if(((((input == 2) && ((( 134 < a18 && (a12==8)) || ( a18 <= -156 && (a12==9))) || ( ((-156 < a18) && (-79 >= a18)) && (a12==9)))) && (a15==3)) && (a16==11))){ + a18 = ((((a18 % 299922)- 300077) - 2) - 0); + a16 = 8; + a12 = 5; + + return -1; + } else if(((a15==3) && ((((input == 3) && ( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) )) && (a12==5)) && (a16==12)))){ + a18 = (((a18 + 91995) + 337235) - 1021683); + a16 = 8; + + return -1; + } else if(((a15==4) && (((input == 4) && (( 134 < a18 && (a12==5)) || ( a18 <= -156 && (a12==6)))) && (a16==9)))){ + a18 = ((((((a18 + 0) + 0) * 9)/ 10) % 299922)- 300077); + a16 = 8; + a15 = 3; + a12 = 5; + + return -1; + } else if(((a15==4) && ((((input == 3) && (a12==5)) && (a16==8)) && a18 <= -156 ))){ + a18 = ((((a18 / 5) / 5) % 38)+ -101); + a16 = 12; + a15 = 3; + + return 21; + } else if(( ((-156 < a18) && (-79 >= a18)) && (((a15==4) && ((a12==9) && (input == 5))) && (a16==9)))){ + a18 = (((a18 + -461124) - -660849) * 3); + a16 = 10; + a12 = 5; + + return 26; + } else if((((a16==9) && ((a12==8) && ((input == 1) && (( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) ) || 134 < a18 )))) && (a15==4))){ + a18 = ((((a18 % 38)+ -116) - 2) + 2); + a16 = 8; + a15 = 3; + a12 = 6; + + return -1; + } else if(((a15==4) && ((a16==8) && ((( 134 < a18 || ( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) )) && (input == 2)) && (a12==5))))){ + a18 = (((((a18 % 299922)+ -300077) + -1) / 5) + -166490); + a15 = 3; + + return -1; + } else if(((((a12==8) && ((input == 6) && ( ((-156 < a18) && (-79 >= a18)) || ((-79 < a18) && (134 >= a18)) ))) && (a16==11)) && (a15==3))){ + a18 = (((a18 + -89557) * 5) * 1); + a16 = 8; + a12 = 5; + + return -1; + } else if(((a15==3) && ((a12==6) && ((( ((-79 < a18) && (134 >= a18)) || ( a18 <= -156 || ((-156 < a18) && (-79 >= a18)) )) && (input == 4)) && (a16==12))))){ + a18 = ((((a18 % 299922)- 300077) / 5) + -268951); + a16 = 8; + a12 = 5; + + return -1; + } else if((((a16==8) && ((a15==4) && ((input == 2) && ( a18 <= -156 || ((-156 < a18) && (-79 >= a18)) )))) && (a12==7))){ + a18 = ((((a18 - 0) / 5) % 106)+ 112); + a12 = 8; + + return 26; + } else if(((a12==5) && (((a15==3) && (( ((-79 < a18) && (134 >= a18)) || 134 < a18 ) && (input == 5))) && (a16==11)))){ + a18 = ((((a18 - 263413) % 299922)- 300077) + -2); + a16 = 8; + + return -1; + } else if(((a16==8) && ((a12==7) && (((input == 5) && ( a18 <= -156 || ((-156 < a18) && (-79 >= a18)) )) && (a15==4))))){ + a18 = ((((((a18 % 299922)- 156) * 1) / 5) * 51)/ 10); + a15 = 3; + a12 = 5; + + return -1; + } else if(((a16==11) && (((input == 1) && (((a12==7) && ((-156 < a18) && (-79 >= a18)) ) || (((a12==6) && 134 < a18 ) || ( a18 <= -156 && (a12==7))))) && (a15==3)))){ + a18 = ((((a18 / 5) * 4) % 38)- 117); + a16 = 12; + a12 = 5; + + return 26; + } else if(( ((-156 < a18) && (-79 >= a18)) && ((((a16==9) && (input == 6)) && (a15==4)) && (a12==9)))){ + a18 = (((a18 * 5) - 354899) * 1); + a16 = 10; + a12 = 6; + + return 22; + } else if(((((input == 2) && (((a12==8) && 134 < a18 ) || ((a12==9) && a18 <= -156 ))) && (a16==12)) && (a15==3))){ + a18 = ((((a18 + 0) % 299922)- 300077) + -2); + a16 = 8; + a12 = 5; + + return -1; + } else if(((a15==3) && (((( ((-156 < a18) && (-79 >= a18)) && (a12==9)) || (( 134 < a18 && (a12==8)) || ((a12==9) && a18 <= -156 ))) && (input == 4)) && (a16==11)))){ + a18 = ((((a18 % 299922)+ -300077) * 1) * 1); + a16 = 8; + a12 = 5; + + return -1; + } else if((((input == 1) && ((((a12==9) && ((a16==9) && ((-79 < a18) && (134 >= a18)) )) || (( 134 < a18 && (a16==9)) && (a12==9))) || (( a18 <= -156 && (a16==10)) && (a12==5)))) && (a15==4))){ + a18 = ((((a18 - 0) % 299932)- -300066) * 1); + a16 = 9; + a15 = 3; + a12 = 5; + + return -1; + } else if(((( ((-79 < a18) && (134 >= a18)) && ((a15==4) && (input == 5))) && (a16==8)) && (a12==7))){ + a18 = (((a18 + -501510) * 1) * 1); + a15 = 3; + a12 = 5; + + return -1; + } else if((((a15==4) && (((( a18 <= -156 || ((-156 < a18) && (-79 >= a18)) ) || ((-79 < a18) && (134 >= a18)) ) && (input == 2)) && (a16==10))) && (a12==6))){ + a18 = ((((a18 + 62616) - -362435) % 38)- 116); + a12 = 5; + + return -1; + } else if(((((a16==12) && ((a12==7) && (input == 6))) && ((-156 < a18) && (-79 >= a18)) ) && (a15==3))){ + a18 = (((a18 + -550912) * 1) + -3494); + a16 = 8; + a12 = 5; + + return -1; + } + return -2; + } + +int main() +{ + // default output + int output = -1; + + // main i/o-loop + while(1) + { + // read input + int input; + input = __VERIFIER_nondet_int(); + if ((input != 1) && (input != 2) && (input != 3) && (input != 4) && (input != 5) && (input != 6)) return -2; + + // operate eca engine + output = calculate_output(input); + } +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem17_label00_true-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem17_label00_true-unreach-call.c new file mode 100644 index 000000000..575d01595 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem17_label00_true-unreach-call.c @@ -0,0 +1,2588 @@ +extern void __VERIFIER_error(void); +extern int __VERIFIER_nondet_int(void); +extern void exit(int); + + // inputs + int inputA = 1; + int inputB = 2; + int inputC = 3; + int inputE = 5; + int inputD = 4; + int inputF = 6; + + + int a24 = 1; + int a21 = 124; + int a26 = 222; + int a14 = -79; + int a28 = 111; + + int calculate_output2(int input); + + int calculate_output(int input) { + if((((( ((-182 < a14) && (-114 >= a14)) && 217 < a26 ) && (a24==1)) && ((37 < a28) && (134 >= a28)) ) && a21 <= 127 )){ + error_52: exit(0); + } + if((((( ((-182 < a14) && (-114 >= a14)) && ((124 < a26) && (217 >= a26)) ) && (a24==1)) && a28 <= 37 ) && a21 <= 127 )){ + error_35: exit(0); + } + if((((( a14 <= -182 && ((124 < a26) && (217 >= a26)) ) && (a24==1)) && a28 <= 37 ) && a21 <= 127 )){ + error_31: exit(0); + } + if((((( a14 <= -182 && 217 < a26 ) && (a24==1)) && 300 < a28 ) && a21 <= 127 )){ + error_50: exit(0); + } + if((((( -84 < a14 && ((124 < a26) && (217 >= a26)) ) && (a24==1)) && 300 < a28 ) && a21 <= 127 )){ + error_46: exit(0); + } + if((((( ((-114 < a14) && (-84 >= a14)) && 217 < a26 ) && (a24==1)) && a28 <= 37 ) && a21 <= 127 )){ + error_55: exit(0); + } + if((((( ((-114 < a14) && (-84 >= a14)) && a26 <= -68 ) && (a24==1)) && ((134 < a28) && (300 >= a28)) ) && a21 <= 127 )){ + error_9: exit(0); + } + if((((( ((-182 < a14) && (-114 >= a14)) && 217 < a26 ) && (a24==1)) && 300 < a28 ) && a21 <= 127 )){ + error_54: exit(0); + } + if((((( ((-182 < a14) && (-114 >= a14)) && 217 < a26 ) && (a24==1)) && ((134 < a28) && (300 >= a28)) ) && a21 <= 127 )){ + error_53: exit(0); + } + if((((( a14 <= -182 && 217 < a26 ) && (a24==1)) && ((134 < a28) && (300 >= a28)) ) && a21 <= 127 )){ + error_49: exit(0); + } + if((((( a14 <= -182 && ((124 < a26) && (217 >= a26)) ) && (a24==1)) && ((134 < a28) && (300 >= a28)) ) && a21 <= 127 )){ + error_33: exit(0); + } + if((((( ((-114 < a14) && (-84 >= a14)) && 217 < a26 ) && (a24==1)) && ((134 < a28) && (300 >= a28)) ) && a21 <= 127 )){ + error_57: exit(0); + } + if((((( ((-182 < a14) && (-114 >= a14)) && ((124 < a26) && (217 >= a26)) ) && (a24==1)) && ((134 < a28) && (300 >= a28)) ) && a21 <= 127 )){ + error_37: exit(0); + } + if((((( a14 <= -182 && ((124 < a26) && (217 >= a26)) ) && (a24==1)) && 300 < a28 ) && a21 <= 127 )){ + error_34: exit(0); + } + if((((( ((-182 < a14) && (-114 >= a14)) && a26 <= -68 ) && (a24==1)) && ((37 < a28) && (134 >= a28)) ) && a21 <= 127 )){ + error_4: exit(0); + } + if((((( ((-114 < a14) && (-84 >= a14)) && ((-68 < a26) && (124 >= a26)) ) && (a24==1)) && a28 <= 37 ) && a21 <= 127 )){ + error_23: exit(0); + } + if((((( ((-114 < a14) && (-84 >= a14)) && ((124 < a26) && (217 >= a26)) ) && (a24==1)) && ((37 < a28) && (134 >= a28)) ) && a21 <= 127 )){ + error_40: exit(0); + } + if((((( ((-114 < a14) && (-84 >= a14)) && ((-68 < a26) && (124 >= a26)) ) && (a24==1)) && ((134 < a28) && (300 >= a28)) ) && a21 <= 127 )){ + error_25: exit(0); + } + if((((( -84 < a14 && ((-68 < a26) && (124 >= a26)) ) && (a24==1)) && 300 < a28 ) && a21 <= 127 )){ + error_30: exit(0); + } + if((((( a14 <= -182 && ((-68 < a26) && (124 >= a26)) ) && (a24==1)) && ((37 < a28) && (134 >= a28)) ) && a21 <= 127 )){ + error_16: exit(0); + } + if((((( ((-182 < a14) && (-114 >= a14)) && ((-68 < a26) && (124 >= a26)) ) && (a24==1)) && ((37 < a28) && (134 >= a28)) ) && a21 <= 127 )){ + error_20: exit(0); + } + if((((( ((-114 < a14) && (-84 >= a14)) && a26 <= -68 ) && (a24==1)) && a28 <= 37 ) && a21 <= 127 )){ + error_7: exit(0); + } + if((((( ((-114 < a14) && (-84 >= a14)) && ((-68 < a26) && (124 >= a26)) ) && (a24==1)) && 300 < a28 ) && a21 <= 127 )){ + error_26: exit(0); + } + if((((( a14 <= -182 && a26 <= -68 ) && (a24==1)) && a28 <= 37 ) && a21 <= 127 )){ + globalError: exit(0); + } + if((((( -84 < a14 && a26 <= -68 ) && (a24==1)) && ((134 < a28) && (300 >= a28)) ) && a21 <= 127 )){ + error_13: exit(0); + } + if((((( ((-182 < a14) && (-114 >= a14)) && a26 <= -68 ) && (a24==1)) && 300 < a28 ) && a21 <= 127 )){ + error_6: exit(0); + } + if((((( -84 < a14 && 217 < a26 ) && (a24==1)) && a28 <= 37 ) && a21 <= 127 )){ + error_59: exit(0); + } + if((((( -84 < a14 && a26 <= -68 ) && (a24==1)) && ((37 < a28) && (134 >= a28)) ) && a21 <= 127 )){ + error_12: exit(0); + } + if((((( ((-114 < a14) && (-84 >= a14)) && ((124 < a26) && (217 >= a26)) ) && (a24==1)) && ((134 < a28) && (300 >= a28)) ) && a21 <= 127 )){ + error_41: exit(0); + } + if((((( -84 < a14 && ((124 < a26) && (217 >= a26)) ) && (a24==1)) && ((37 < a28) && (134 >= a28)) ) && a21 <= 127 )){ + error_44: exit(0); + } + if((((( a14 <= -182 && ((-68 < a26) && (124 >= a26)) ) && (a24==1)) && a28 <= 37 ) && a21 <= 127 )){ + error_15: exit(0); + } + if((((( ((-182 < a14) && (-114 >= a14)) && 217 < a26 ) && (a24==1)) && a28 <= 37 ) && a21 <= 127 )){ + error_51: exit(0); + } + if((((( a14 <= -182 && ((-68 < a26) && (124 >= a26)) ) && (a24==1)) && ((134 < a28) && (300 >= a28)) ) && a21 <= 127 )){ + error_17: exit(0); + } + if((((( ((-114 < a14) && (-84 >= a14)) && a26 <= -68 ) && (a24==1)) && 300 < a28 ) && a21 <= 127 )){ + error_10: exit(0); + } + if((((( ((-114 < a14) && (-84 >= a14)) && ((124 < a26) && (217 >= a26)) ) && (a24==1)) && 300 < a28 ) && a21 <= 127 )){ + error_42: exit(0); + } + if((((( -84 < a14 && ((-68 < a26) && (124 >= a26)) ) && (a24==1)) && a28 <= 37 ) && a21 <= 127 )){ + error_27: exit(0); + } + if((((( ((-182 < a14) && (-114 >= a14)) && ((-68 < a26) && (124 >= a26)) ) && (a24==1)) && a28 <= 37 ) && a21 <= 127 )){ + error_19: exit(0); + } + if((((( a14 <= -182 && 217 < a26 ) && (a24==1)) && ((37 < a28) && (134 >= a28)) ) && a21 <= 127 )){ + error_48: exit(0); + } + if((((( a14 <= -182 && 217 < a26 ) && (a24==1)) && a28 <= 37 ) && a21 <= 127 )){ + error_47: exit(0); + } + if((((( ((-114 < a14) && (-84 >= a14)) && 217 < a26 ) && (a24==1)) && 300 < a28 ) && a21 <= 127 )){ + error_58: exit(0); + } + if((((( a14 <= -182 && a26 <= -68 ) && (a24==1)) && ((134 < a28) && (300 >= a28)) ) && a21 <= 127 )){ + error_1: exit(0); + } + if((((( -84 < a14 && a26 <= -68 ) && (a24==1)) && 300 < a28 ) && a21 <= 127 )){ + error_14: exit(0); + } + if((((( a14 <= -182 && ((124 < a26) && (217 >= a26)) ) && (a24==1)) && ((37 < a28) && (134 >= a28)) ) && a21 <= 127 )){ + error_32: exit(0); + } + if((((( ((-182 < a14) && (-114 >= a14)) && a26 <= -68 ) && (a24==1)) && a28 <= 37 ) && a21 <= 127 )){ + error_3: exit(0); + } + if((((( -84 < a14 && ((124 < a26) && (217 >= a26)) ) && (a24==1)) && ((134 < a28) && (300 >= a28)) ) && a21 <= 127 )){ + error_45: exit(0); + } + if((((( ((-182 < a14) && (-114 >= a14)) && ((-68 < a26) && (124 >= a26)) ) && (a24==1)) && 300 < a28 ) && a21 <= 127 )){ + error_22: exit(0); + } + if((((( ((-182 < a14) && (-114 >= a14)) && ((124 < a26) && (217 >= a26)) ) && (a24==1)) && 300 < a28 ) && a21 <= 127 )){ + error_38: exit(0); + } + if((((( a14 <= -182 && a26 <= -68 ) && (a24==1)) && 300 < a28 ) && a21 <= 127 )){ + error_2: exit(0); + } + if((((( a14 <= -182 && a26 <= -68 ) && (a24==1)) && ((37 < a28) && (134 >= a28)) ) && a21 <= 127 )){ + error_0: __VERIFIER_error(); + } + if((((( a14 <= -182 && ((-68 < a26) && (124 >= a26)) ) && (a24==1)) && 300 < a28 ) && a21 <= 127 )){ + error_18: exit(0); + } + if((((( -84 < a14 && a26 <= -68 ) && (a24==1)) && a28 <= 37 ) && a21 <= 127 )){ + error_11: exit(0); + } + if((((( ((-182 < a14) && (-114 >= a14)) && ((124 < a26) && (217 >= a26)) ) && (a24==1)) && ((37 < a28) && (134 >= a28)) ) && a21 <= 127 )){ + error_36: exit(0); + } + if((((( ((-114 < a14) && (-84 >= a14)) && a26 <= -68 ) && (a24==1)) && ((37 < a28) && (134 >= a28)) ) && a21 <= 127 )){ + error_8: exit(0); + } + if((((( ((-182 < a14) && (-114 >= a14)) && ((-68 < a26) && (124 >= a26)) ) && (a24==1)) && ((134 < a28) && (300 >= a28)) ) && a21 <= 127 )){ + error_21: exit(0); + } + if((((( ((-114 < a14) && (-84 >= a14)) && ((-68 < a26) && (124 >= a26)) ) && (a24==1)) && ((37 < a28) && (134 >= a28)) ) && a21 <= 127 )){ + error_24: exit(0); + } + if((((( ((-182 < a14) && (-114 >= a14)) && a26 <= -68 ) && (a24==1)) && ((134 < a28) && (300 >= a28)) ) && a21 <= 127 )){ + error_5: exit(0); + } + if((((( -84 < a14 && ((124 < a26) && (217 >= a26)) ) && (a24==1)) && a28 <= 37 ) && a21 <= 127 )){ + error_43: exit(0); + } + if((((( ((-114 < a14) && (-84 >= a14)) && ((124 < a26) && (217 >= a26)) ) && (a24==1)) && a28 <= 37 ) && a21 <= 127 )){ + error_39: exit(0); + } + if((((( -84 < a14 && ((-68 < a26) && (124 >= a26)) ) && (a24==1)) && ((37 < a28) && (134 >= a28)) ) && a21 <= 127 )){ + error_28: exit(0); + } + if((((( -84 < a14 && ((-68 < a26) && (124 >= a26)) ) && (a24==1)) && ((134 < a28) && (300 >= a28)) ) && a21 <= 127 )){ + error_29: exit(0); + } + if((((( ((-114 < a14) && (-84 >= a14)) && 217 < a26 ) && (a24==1)) && ((37 < a28) && (134 >= a28)) ) && a21 <= 127 )){ + error_56: exit(0); + } + + if((( a21 <= 127 && (( a26 <= -68 && ((( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) || 300 < a28 ) && (input == 3))) && a14 <= -182 )) && (a24==3))){ + a26 = ((((a26 * 9)/ 10) + 599163) - -451); + a28 = ((((((a28 % 48)- -77) * 5) - -355922) % 48)+ 68); + a24 = 2; + + return 21; + } else if((((a24==3) && ( ((-68 < a26) && (124 >= a26)) && ((input == 4) && (( a14 <= -182 && 300 < a28 ) || ( ((-182 < a14) && (-114 >= a14)) && a28 <= 37 ))))) && a21 <= 127 )){ + a14 = ((((a14 + 0) + 0) % 299909)+ -182); + a26 = (((a26 + 438366) - -32811) + -5838); + a28 = ((((a28 + 0) + 0) % 48)- -86); + a24 = 2; + + return 21; + } else if(( -84 < a14 && ( a21 <= 127 && ( a26 <= -68 && ((a24==2) && ((input == 6) && ( ((134 < a28) && (300 >= a28)) || 300 < a28 ))))))){ + a14 = (((((a14 - 0) * 9)/ 10) - 448076) - 127606); + a28 = (((a28 / 5) / 5) / -5); + a24 = 1; + + return -1; + } else if((((a24==2) && ((((input == 3) && ( ((134 < a28) && (300 >= a28)) || 300 < a28 )) && ((124 < a26) && (217 >= a26)) ) && a21 <= 127 )) && a14 <= -182 )){ + a28 = ((((a28 % 299849)- -301) - -68377) - -1150); + return 21; + } else if(((a24==3) && ((( a21 <= 127 && (( ((134 < a28) && (300 >= a28)) || ( a28 <= 37 || ((37 < a28) && (134 >= a28)) )) && (input == 1))) && a14 <= -182 ) && ((-68 < a26) && (124 >= a26)) ))){ + a14 = ((((a14 + 216203) % 14)+ -98) - 2); + a26 = (((((a26 + -316495) % 46)- -214) - 357980) + 357948); + a28 = (((((a28 / 5) % 48)- -86) - 283409) - -283409); + a24 = 2; + + return -1; + } else if((((((( 300 < a28 || ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) )) && (input == 4)) && 217 < a26 ) && a21 <= 127 ) && -84 < a14 ) && (a24==1))){ + a14 = ((((a14 % 299909)- 300090) + 0) - 0); + a26 = (((a26 + -600088) / 5) - 377912); + a28 = (((a28 + -600036) / 5) / 5); + return -1; + } else if(( a21 <= 127 && ((((input == 5) && (( a14 <= -182 && 300 < a28 ) || ( a28 <= 37 && ((-182 < a14) && (-114 >= a14)) ))) && 217 < a26 ) && (a24==2)))){ + a14 = (((((((a14 * 9)/ 10) % 33)- 138) * 5) % 33)+ -139); + a28 = ((((((a28 * 9)/ 10) * 1) - -10862) % 82)- -216); + a24 = 1; + + return -1; + } else if((((((input == 1) && ((( 300 < a28 && ((-114 < a14) && (-84 >= a14)) ) || ( -84 < a14 && a28 <= 37 )) || ( -84 < a14 && ((37 < a28) && (134 >= a28)) ))) && ((124 < a26) && (217 >= a26)) ) && (a24==2)) && a21 <= 127 )){ + a14 = ((((a14 * 9)/ 10) - -57076) + -651983); + a26 = ((((a26 * -6)/ 10) * 5) - 355073); + a28 = (((a28 / 5) - -352351) - 552393); + a24 = 1; + + return -1; + } else if(((( ((-182 < a14) && (-114 >= a14)) && ( a28 <= 37 && ((a24==3) && (input == 5)))) && a26 <= -68 ) && a21 <= 127 )){ + a14 = ((((a14 - 88839) % 14)+ -84) - 6); + a26 = (((((a26 + 0) % 95)- -32) + 580006) - 579947); + a24 = 1; + + return -1; + } else if(( a28 <= 37 && ( ((-68 < a26) && (124 >= a26)) && (( a21 <= 127 && ((input == 2) && (a24==2))) && a14 <= -182 )))){ + a26 = (((a26 - -478961) + -415672) + 258271); + a28 = ((((a28 % 299849)- -300149) + 2) * 1); + return 26; + } else if((((((( ((-68 < a26) && (124 >= a26)) && -84 < a14 ) && 300 < a28 ) || (( ((124 < a26) && (217 >= a26)) && a14 <= -182 ) && a28 <= 37 )) && (input == 2)) && a21 <= 127 ) && (a24==3))){ + a14 = (((((a14 / 5) * 4) * 1) % 14)+ -97); + a26 = (((a26 - -551133) + -790475) + 800306); + a28 = ((((a28 % 299849)+ 300149) / 5) + 283071); + a24 = 1; + + return -1; + } else if((( a28 <= 37 && ( a21 <= 127 && ((a24==3) && ( ((-114 < a14) && (-84 >= a14)) && (input == 3))))) && ((124 < a26) && (217 >= a26)) )){ + if((a24==2)){ + a14 = (((a14 * -5) + 352770) * 1); + a26 = (((a26 / 5) - 41) + -2); + a28 = (((((a28 % 48)- -85) * 5) % 48)- -73); + a24 = 2; + + } else{ + a14 = ((((a14 - 493422) * 1) * 10)/ 9); + a26 = (((((a26 * -6)/ 10) + -298400) * 10)/ 9); + a28 = (((((a28 + 0) * 9)/ 10) * 1) + 544228); + a24 = 2; + + } return 25; + } else if(((( a21 <= 127 && ((( ((37 < a28) && (134 >= a28)) && -84 < a14 ) || (( 300 < a28 && ((-114 < a14) && (-84 >= a14)) ) || ( a28 <= 37 && -84 < a14 ))) && (input == 3))) && (a24==2)) && ((124 < a26) && (217 >= a26)) )){ + a14 = ((((a14 % 299909)- 300090) + -1) + -1); + a26 = (((a26 + -346229) + -71563) - 89097); + a28 = (((((a28 + 0) - 0) - 0) % 300018)+ -299980); + a24 = 1; + + return -1; + } else if((((a24==3) && ( a21 <= 127 && ( ((-182 < a14) && (-114 >= a14)) && (( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) && (input == 2))))) && ((124 < a26) && (217 >= a26)) )){ + a14 = ((((a14 - 581619) - 9324) % 14)+ -99); + a26 = (((a26 - -238897) - 564200) * 1); + a28 = ((((a28 - 0) % 82)+ 216) + 0); + a24 = 2; + + return 21; + } else if(( ((-68 < a26) && (124 >= a26)) && ( a14 <= -182 && ((((( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) || 300 < a28 ) && (input == 4)) && (a24==2)) && a21 <= 127 )))){ + a14 = ((((a14 % 33)- 115) - -1) + -3); + a26 = (((a26 / 5) + -326056) - -786683); + a28 = (((a28 / 5) + -202529) / 5); + return 25; + } else if((( ((-114 < a14) && (-84 >= a14)) && ((a24==3) && ((( 300 < a28 || ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) )) && (input == 5)) && a21 <= 127 ))) && ((124 < a26) && (217 >= a26)) )){ + a14 = (((a14 - -71996) - 86067) / 5); + a26 = (((a26 - -207896) + -580801) + -103307); + a28 = (((((a28 - 236320) % 82)+ 216) + -112070) + 112072); + a24 = 1; + + return 25; + } else if(( ((124 < a26) && (217 >= a26)) && (( a21 <= 127 && (((( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) || 300 < a28 ) && (input == 6)) && a14 <= -182 )) && (a24==3)))){ + a26 = (((a26 / 5) - -382315) + -382302); + a28 = (((((a28 % 299849)+ 301) - -30372) * 10)/ 9); + a24 = 1; + + return 25; + } else if(( a26 <= -68 && (( a21 <= 127 && ((a24==2) && (( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) && (input == 6)))) && a14 <= -182 ))){ + a14 = (((((a14 * 9)/ 10) + -48560) % 14)+ -98); + a28 = ((((a28 - 0) + 0) % 82)+ 217); + return 25; + } else if(( 217 < a26 && (( a21 <= 127 && ((a24==1) && ((input == 6) && (( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) || 300 < a28 )))) && -84 < a14 ))){ + a14 = ((((a14 % 299909)- 300090) + 0) + -1); + a26 = ((((a26 * 9)/ 10) - 554854) * 1); + a28 = ((((a28 * 9)/ 10) * 1) - 589002); + a24 = 2; + + return 25; + } else if(( a21 <= 127 && ((a24==2) && ( ((124 < a26) && (217 >= a26)) && ( ((-114 < a14) && (-84 >= a14)) && ((input == 2) && (( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) || ((134 < a28) && (300 >= a28)) ))))))){ + a28 = (((((a28 % 48)+ 86) + 1) + -137006) + 137005); + a24 = 1; + + return -1; + } else if((((( ((-68 < a26) && (124 >= a26)) && ((input == 6) && ((-182 < a14) && (-114 >= a14)) )) && 300 < a28 ) && (a24==3)) && a21 <= 127 )){ + a14 = ((((a14 + -85645) * 10)/ 9) - 306500); + a26 = ((((a26 - -243065) % 46)+ 129) - -21); + a28 = ((((a28 + -267607) + -170138) / 5) - 57279); + a24 = 1; + + return -1; + } else if(( ((-68 < a26) && (124 >= a26)) && (((((( 300 < a28 && ((-114 < a14) && (-84 >= a14)) ) || ( -84 < a14 && a28 <= 37 )) || ( ((37 < a28) && (134 >= a28)) && -84 < a14 )) && (input == 2)) && (a24==3)) && a21 <= 127 ))){ + a14 = (((((a14 * 9)/ 10) % 14)+ -98) - 1); + a26 = ((((a26 / 5) + 512390) * 10)/ -9); + a28 = ((((a28 % 299849)+ 300149) / 5) - -333944); + return 21; + } else if(((a24==2) && (( ((-68 < a26) && (124 >= a26)) && (( -84 < a14 && (input == 3)) && a28 <= 37 )) && a21 <= 127 ))){ + a14 = ((((a14 + -475750) % 299909)- 300090) + -1); + a26 = (((a26 - 455257) + -62382) - 67001); + a24 = 1; + + return -1; + } else if(( a21 <= 127 && (((a24==3) && ((( 300 < a28 || ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) )) && (input == 5)) && a14 <= -182 )) && ((124 < a26) && (217 >= a26)) ))){ + a14 = ((((a14 + 599950) + 55) + -503643) - -503583); + a26 = (((((a26 + -130392) - 369422) - -968854) * -1)/ 10); + a28 = (((((a28 % 82)+ 159) + 238415) + 42361) + -280772); + a24 = 1; + + return 21; + } else if((( a21 <= 127 && ((((a24==2) && (input == 5)) && ((134 < a28) && (300 >= a28)) ) && -84 < a14 )) && ((124 < a26) && (217 >= a26)) )){ + a14 = ((((a14 * 9)/ 10) + -242531) + -341470); + a26 = ((((a26 / 5) * 5) * 10)/ -9); + a28 = ((((a28 * 5) - 225145) * 10)/ 9); + a24 = 1; + + return -1; + } else if(((((( 217 < a26 && (input == 2)) && a28 <= 37 ) && a21 <= 127 ) && (a24==3)) && ((-182 < a14) && (-114 >= a14)) )){ + if((a24==4)){ + a14 = (((a14 - 409105) + -13315) * 1); + a26 = (((((a26 - 41044) / 5) * 5) % 95)+ 28); + a24 = 1; + + } else{ + a14 = (((a14 - 131383) - -375563) + 311393); + a24 = 1; + + } return -1; + } else if(( a21 <= 127 && ( ((-68 < a26) && (124 >= a26)) && (((input == 3) && (( 300 < a28 && a14 <= -182 ) || ( a28 <= 37 && ((-182 < a14) && (-114 >= a14)) ))) && (a24==3))))){ + a14 = (((((a14 - -410570) + -47255) - 281823) % 33)- 148); + a26 = (((a26 - 316562) * 1) + -205758); + a28 = ((((((a28 * 9)/ 10) - 23937) + 76800) % 48)- -86); + a24 = 1; + + return -1; + } else if(( ((134 < a28) && (300 >= a28)) && ((( a21 <= 127 && ((a24==2) && (input == 6))) && -84 < a14 ) && ((124 < a26) && (217 >= a26)) ))){ + a14 = ((((((a14 % 299909)+ -300090) + -2) * 9)/ 10) - 39680); + a26 = (((a26 / 5) - 192649) + -45568); + a28 = (((a28 - 492422) * 1) + -79879); + a24 = 1; + + return -1; + } else if((( a21 <= 127 && ((a24==3) && ( ((124 < a26) && (217 >= a26)) && ((input == 6) && (( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) || ((134 < a28) && (300 >= a28)) ))))) && -84 < a14 )){ + a14 = (((((a14 / 5) - -108920) - 504409) % 14)+ -84); + a26 = (((a26 * 5) - -397942) + 137140); + a28 = (((a28 - 0) / 5) + 564252); + a24 = 1; + + return 21; + } else if((( a14 <= -182 && ((a24==2) && ( a21 <= 127 && ((( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) || 300 < a28 ) && (input == 5))))) && ((-68 < a26) && (124 >= a26)) )){ + a26 = (((a26 / 5) + -531106) - 53515); + a28 = ((((a28 + -599998) - 29) - -153488) + -153473); + a24 = 1; + + return -1; + } else if(( a21 <= 127 && ((( ((124 < a26) && (217 >= a26)) && ((input == 6) && -84 < a14 )) && (a24==3)) && 300 < a28 ))){ + if( -84 < a14 ){ + a14 = (((((a14 % 14)+ -97) / 5) - -319615) + -319696); + a28 = ((((a28 / -5) + -80052) + 520802) - 508297); + } else{ + a14 = ((((a14 - 0) + 0) % 14)+ -99); + a26 = ((((a26 * 10)/ -9) - 495687) + -63837); + a28 = ((((a28 - 0) / 5) % 48)- -76); + a24 = 1; + + } return 26; + } else if(( a21 <= 127 && ((a24==3) && ( a26 <= -68 && (((input == 5) && ( 300 < a28 || ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ))) && a14 <= -182 ))))){ + a14 = (((a14 - -600042) + 70) * 1); + a26 = ((((a26 % 46)- -176) / 5) - -150); + a28 = (((((a28 % 48)+ 41) - 112205) / 5) + 22545); + a24 = 2; + + return 21; + } else if(( 217 < a26 && ( a28 <= 37 && ( ((-182 < a14) && (-114 >= a14)) && (((input == 3) && (a24==3)) && a21 <= 127 ))))){ + a28 = (((((a28 % 82)- -217) / 5) * 51)/ 10); + a24 = 1; + + return -1; + } else if(( a21 <= 127 && ((a24==2) && ( -84 < a14 && ( a26 <= -68 && ((input == 3) && ( ((134 < a28) && (300 >= a28)) || 300 < a28 ))))))){ + a14 = (((a14 / 5) + -522665) * 1); + a26 = (((((a26 % 299891)+ 300108) * 10)/ 9) * 1); + a28 = (((((a28 * 9)/ 10) * 1) % 82)+ 210); + return 26; + } else if((((a24==2) && ( a21 <= 127 && ((input == 5) && (( 300 < a28 && ((-114 < a14) && (-84 >= a14)) ) || ( -84 < a14 && a28 <= 37 ))))) && a26 <= -68 )){ + a14 = ((((a14 * 9)/ 10) - 573805) + -11573); + a28 = ((((a28 * 9)/ 10) / 5) + -225074); + a24 = 1; + + return -1; + } else if(((a24==3) && (( ((-68 < a26) && (124 >= a26)) && (((input == 6) && ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) )) && a21 <= 127 )) && ((-182 < a14) && (-114 >= a14)) ))){ + a14 = (((a14 - 214083) / 5) / 5); + a26 = (((a26 - 222685) + -365872) - 4166); + a28 = (((a28 * 5) / 5) / -5); + a24 = 1; + + return -1; + } else if(((( a21 <= 127 && ( ((-182 < a14) && (-114 >= a14)) && (( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) && (input == 1)))) && (a24==2)) && ((-68 < a26) && (124 >= a26)) )){ + a14 = ((((a14 * 10)/ 6) / 5) - 142048); + a26 = (((a26 - 62191) + -155885) * 2); + a28 = (((((a28 + 0) * 9)/ 10) - -105728) - 164653); + return 25; + } else if(( ((-68 < a26) && (124 >= a26)) && (( ((-114 < a14) && (-84 >= a14)) && ( a21 <= 127 && ((input == 3) && ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) )))) && (a24==2)))){ + a14 = ((((a14 * 22)/ 10) / 5) - 595776); + a26 = (((a26 + -488321) - 72223) * 1); + a28 = (((a28 + -402973) - -770888) - 446227); + a24 = 1; + + return -1; + } else if(((a24==2) && (( ((-114 < a14) && (-84 >= a14)) && ( a26 <= -68 && (( ((134 < a28) && (300 >= a28)) || ( a28 <= 37 || ((37 < a28) && (134 >= a28)) )) && (input == 4)))) && a21 <= 127 ))){ + a14 = (((a14 / 5) - 46740) - -32098); + a26 = ((((a26 - 0) % 46)- -199) + -16); + a28 = ((((a28 * 9)/ 10) + -35946) + -1966); + return 25; + } else if(( a14 <= -182 && (( a26 <= -68 && ((a24==3) && ((input == 2) && (( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) || 300 < a28 )))) && a21 <= 127 ))){ + a28 = (((a28 - 599977) - 37) + -3); + a24 = 1; + + return -1; + } else if(( a21 <= 127 && ((((( a14 <= -182 && a26 <= -68 ) && (a24==3)) && a28 <= 37 ) || ((((a24==2) && ( -84 < a14 && 217 < a26 )) && ((134 < a28) && (300 >= a28)) ) || (((a24==2) && ( -84 < a14 && 217 < a26 )) && 300 < a28 ))) && (input == 3)))){ + a14 = (((a14 / 5) + 364792) * 1); + a26 = ((((a26 + 0) % 46)- -170) * 1); + a28 = (((((a28 % 82)- -218) * 5) % 82)+ 203); + a24 = 2; + + return 25; + } else if(((((((input == 3) && ( ((134 < a28) && (300 >= a28)) || 300 < a28 )) && 217 < a26 ) && (a24==3)) && a14 <= -182 ) && a21 <= 127 )){ + a26 = (((((a26 % 46)+ 142) * 10)/ 9) - 13); + a28 = ((((((a28 % 48)+ 65) * 9)/ 10) + 182147) - 182155); + return -1; + } else if((((a24==2) && ( -84 < a14 && ( ((37 < a28) && (134 >= a28)) && ( ((-68 < a26) && (124 >= a26)) && (input == 4))))) && a21 <= 127 )){ + a14 = (((a14 / 5) / 5) + -231196); + a26 = ((((a26 + -474360) * 1) * 10)/ 9); + a28 = ((((a28 * -5) / 5) * 10)/ 9); + a24 = 1; + + return -1; + } else if((((( ((124 < a26) && (217 >= a26)) && ((input == 5) && ( a28 <= 37 || ((37 < a28) && (134 >= a28)) ))) && (a24==2)) && a21 <= 127 ) && a14 <= -182 )){ + a26 = (((a26 + -496055) - -804201) / 5); + a28 = ((((a28 / 5) / 5) % 48)- -86); + return 21; + } else if(( a21 <= 127 && ((a24==3) && ( ((-68 < a26) && (124 >= a26)) && ((input == 6) && (( 300 < a28 && a14 <= -182 ) || ( ((-182 < a14) && (-114 >= a14)) && a28 <= 37 ))))))){ + a14 = ((((a14 % 14)- 95) + 546665) - 546654); + a26 = (((((a26 % 46)- -171) * 5) % 46)- -162); + a28 = ((((a28 % 300018)+ -299980) + -1) * 1); + a24 = 2; + + return 26; + } else if(( ((-68 < a26) && (124 >= a26)) && ((((( ((37 < a28) && (134 >= a28)) && -84 < a14 ) || (( 300 < a28 && ((-114 < a14) && (-84 >= a14)) ) || ( -84 < a14 && a28 <= 37 ))) && (input == 3)) && a21 <= 127 ) && (a24==3)))){ + a14 = ((((a14 * 9)/ 10) + 41492) + 9550); + a26 = (((a26 - 542665) + -37833) - 17315); + a28 = ((((a28 % 299849)- -300149) + 0) * 1); + return 21; + } else if(((a24==2) && ( 217 < a26 && (((input == 4) && (( ((37 < a28) && (134 >= a28)) && -84 < a14 ) || (( 300 < a28 && ((-114 < a14) && (-84 >= a14)) ) || ( a28 <= 37 && -84 < a14 )))) && a21 <= 127 )))){ + a14 = ((((a14 % 300041)+ 299957) + 1) + 1); + a26 = ((((a26 * 9)/ 10) + -586269) - 3434); + a28 = (((((a28 % 48)+ 85) + 571055) + -459687) - 111367); + return 25; + } else if(( a21 <= 127 && ((( ((-114 < a14) && (-84 >= a14)) && ( ((124 < a26) && (217 >= a26)) && (input == 2))) && (a24==3)) && a28 <= 37 ))){ + a14 = (((a14 - 588497) + -6940) + -2646); + a26 = ((((a26 * -1)/ 10) * 5) / 5); + a28 = (((((a28 + 0) + 291300) - 156304) % 48)- -86); + a24 = 1; + + return 26; + } else if((((((( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) && (input == 4)) && (a24==3)) && a21 <= 127 ) && ((-182 < a14) && (-114 >= a14)) ) && ((124 < a26) && (217 >= a26)) )){ + a14 = (((((a14 % 14)- 96) * 9)/ 10) - 9); + a26 = ((((a26 * 5) % 95)- 33) + -14); + a28 = ((((((a28 * 9)/ 10) + 556798) / 5) % 48)+ 60); + a24 = 2; + + return 21; + } else if(( a21 <= 127 && ( ((-68 < a26) && (124 >= a26)) && ((a24==3) && ((( ((134 < a28) && (300 >= a28)) || ( a28 <= 37 || ((37 < a28) && (134 >= a28)) )) && (input == 1)) && ((-114 < a14) && (-84 >= a14)) ))))){ + if( ((-114 < a14) && (-84 >= a14)) ){ + a26 = ((((a26 + -145116) * 4) - -1143556) - 1159008); + a28 = ((((a28 * 9)/ 10) / 5) - 377807); + } else{ + a14 = ((((a14 + -62) / 5) - 455969) + 455834); + a26 = ((((a26 - -352329) % 46)- -140) - 4); + a28 = ((((a28 / 5) + 499957) - 632655) - -358378); + a24 = 1; + + } return 21; + } else if(((((a24==3) && ( a21 <= 127 && ((input == 1) && ( ((134 < a28) && (300 >= a28)) || 300 < a28 )))) && a14 <= -182 ) && 217 < a26 )){ + a28 = ((((a28 + -89948) % 82)+ 218) - -1); + return -1; + } else if(( a21 <= 127 && (((((input == 3) && ( a28 <= 37 || ((37 < a28) && (134 >= a28)) )) && (a24==2)) && ((-68 < a26) && (124 >= a26)) ) && ((-182 < a14) && (-114 >= a14)) ))){ + a26 = (((a26 + 270287) + -547491) / 5); + a28 = ((((a28 % 48)+ 86) / 5) - -54); + a24 = 1; + + return -1; + } else if((( a21 <= 127 && ((a24==3) && ((( 300 < a28 && a14 <= -182 ) || ( ((-182 < a14) && (-114 >= a14)) && a28 <= 37 )) && (input == 5)))) && ((-68 < a26) && (124 >= a26)) )){ + a14 = (((((a14 + 299726) % 14)+ -99) - 237902) - -237901); + a28 = (((((a28 * 9)/ 10) % 300018)- 299980) + -1); + a24 = 1; + + return -1; + } else if((( ((-114 < a14) && (-84 >= a14)) && ((((input == 6) && ( ((134 < a28) && (300 >= a28)) || ( a28 <= 37 || ((37 < a28) && (134 >= a28)) ))) && a21 <= 127 ) && (a24==2))) && ((124 < a26) && (217 >= a26)) )){ + if((a24==3)){ + a14 = ((((a14 / 5) * 5) * 15)/ 10); + a26 = (((a26 - 276769) + -61164) + -111264); + a28 = ((((a28 % 299849)+ 300149) - 0) + 2); + a24 = 3; + + } else{ + a26 = (((((a26 * 10)/ -9) * 5) * 10)/ 9); + a28 = ((((a28 % 299849)- -300149) - 0) - -2); + } return 21; + } else if(( ((-182 < a14) && (-114 >= a14)) && ((((a24==3) && (( 300 < a28 || ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) )) && (input == 4))) && a26 <= -68 ) && a21 <= 127 ))){ + a14 = (((((a14 * 16)/ 10) * 10)/ 9) + -499692); + a26 = (((((a26 - -81213) * 1) - -413395) % 46)+ 170); + a28 = (((a28 / 5) - -154851) * 2); + a24 = 2; + + return 21; + } else if((((a24==2) && (((input == 2) && ((( ((134 < a28) && (300 >= a28)) && ((-182 < a14) && (-114 >= a14)) ) || ( ((-182 < a14) && (-114 >= a14)) && 300 < a28 )) || ( a28 <= 37 && ((-114 < a14) && (-84 >= a14)) ))) && a21 <= 127 )) && ((-68 < a26) && (124 >= a26)) )){ + a14 = (((((a14 % 14)+ -87) - 532544) + 608349) - 75814); + a26 = ((((((a26 - 325255) % 46)- -173) / 5) * 55)/ 10); + a28 = ((((a28 % 300018)+ -299980) - 1) / 5); + return 21; + } else if((((( -84 < a14 && ((input == 2) && a21 <= 127 )) && a26 <= -68 ) && (a24==2)) && ((37 < a28) && (134 >= a28)) )){ + a14 = ((((a14 % 299909)- 300090) / 5) + -207775); + a28 = (((a28 - 263388) - -80788) * 3); + a24 = 1; + + return -1; + } else if((( a21 <= 127 && ((a24==3) && ((( 300 < a28 || ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) )) && (input == 2)) && ((-182 < a14) && (-114 >= a14)) ))) && a26 <= -68 )){ + a14 = (((a14 - 565984) * 1) * 1); + a28 = ((((a28 * 9)/ 10) * -1) + -40435); + a24 = 1; + + return -1; + } else if((( ((-114 < a14) && (-84 >= a14)) && ( a21 <= 127 && (((input == 3) && ((-68 < a26) && (124 >= a26)) ) && 300 < a28 ))) && (a24==2))){ + a14 = (((a14 / 5) + 161937) - -152247); + a26 = (((((a26 % 46)- -170) / 5) / 5) - -189); + a28 = (((((a28 / 5) + -421018) - -430946) % 82)+ 186); + return 25; + } else if((( ((134 < a28) && (300 >= a28)) && ( a21 <= 127 && (((a24==2) && (input == 1)) && ((124 < a26) && (217 >= a26)) ))) && -84 < a14 )){ + a14 = ((((((a14 % 14)- 98) * 1) * 5) % 14)+ -91); + a26 = ((((a26 - 247436) - -632553) - -109715) - 495006); + a28 = ((((a28 + 574624) / 5) * 10)/ 9); + a24 = 1; + + return -1; + } else if(((((a24==2) && ((input == 6) && (( 300 < a28 && a14 <= -182 ) || ( ((-182 < a14) && (-114 >= a14)) && a28 <= 37 )))) && a26 <= -68 ) && a21 <= 127 )){ + a14 = (((((a14 - -113223) + -74409) * 1) % 299909)+ -300090); + a26 = ((((a26 % 95)+ 39) + 32) - 25); + a28 = (((((a28 * 9)/ 10) * 1) % 300018)+ -299980); + return 21; + } else if((((((a24==2) && ( ((134 < a28) && (300 >= a28)) && (input == 2))) && 217 < a26 ) && a14 <= -182 ) && a21 <= 127 )){ + if( a21 <= 127 ){ + a14 = (((a14 - -567872) - -32231) + 52); + a28 = (((((a28 % 48)+ 43) - -505188) / 5) + -100951); + } else{ + a26 = (((((a26 - 0) * 9)/ 10) * -4)/ 10); + } return 25; + } else if(( a28 <= 37 && (( 217 < a26 && ((a24==3) && ((input == 3) && a14 <= -182 ))) && a21 <= 127 ))){ + if((a24==1)){ + a14 = ((((a14 + 0) % 33)- 116) - -1); + a26 = ((((a26 / 5) + -369210) - -303100) + -113132); + a28 = ((((a28 / 5) / 5) % 48)+ 85); + a24 = 1; + + } else{ + a14 = ((((a14 % 33)- 145) - -3) - -16); + a26 = ((((a26 + 0) - 461723) % 46)- -170); + a28 = ((((a28 % 299849)- -300149) + 2) * 1); + } return 26; + } else if(( a21 <= 127 && (((a24==3) && (((input == 4) && ( 300 < a28 || ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ))) && a14 <= -182 )) && a26 <= -68 ))){ + a14 = (((a14 + 599951) - -104) - -51); + a26 = (((((a26 % 46)- -197) - 513053) - 51289) + 564358); + a28 = ((((((a28 % 299849)- -301) - 451296) + -84365) * -1)/ 10); + a24 = 2; + + return 21; + } else if((( a21 <= 127 && ( ((124 < a26) && (217 >= a26)) && ( a14 <= -182 && ((input == 1) && ( ((134 < a28) && (300 >= a28)) || 300 < a28 ))))) && (a24==2))){ + if( 399 < a21 ){ + a14 = (((a14 / 5) / -5) * 5); + a26 = ((((a26 + -297043) * -1)/ 10) * 5); + a28 = ((((a28 % 48)+ 71) * 5) / 5); + } else{ + a26 = ((((a26 - -282890) * 10)/ -9) - 210427); + a28 = (((((a28 / 5) % 82)+ 136) / 5) + 130); + } return 25; + } else if((((a24==2) && ( a21 <= 127 && ((( 300 < a28 || ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) )) && (input == 6)) && a14 <= -182 ))) && ((-68 < a26) && (124 >= a26)) )){ + a26 = (((a26 - -173811) - 692406) / 5); + a28 = ((((a28 / -5) + -419853) * 10)/ 9); + a24 = 1; + + return -1; + } else if(((((((a24==3) && (input == 5)) && 217 < a26 ) && a28 <= 37 ) && a14 <= -182 ) && a21 <= 127 )){ + a14 = ((((a14 - 0) % 33)+ -129) + 14); + a26 = ((((((a26 % 46)- -149) * 10)/ 9) * 9)/ 10); + a28 = ((((a28 % 48)- -85) - 543532) + 543533); + a24 = 2; + + return 21; + } else if(((( a21 <= 127 && ((( ((134 < a28) && (300 >= a28)) || ( a28 <= 37 || ((37 < a28) && (134 >= a28)) )) && (input == 2)) && (a24==3))) && ((-68 < a26) && (124 >= a26)) ) && a14 <= -182 )){ + a26 = (((a26 * 5) - 235208) * 2); + a28 = ((((a28 % 82)- -218) - 2) + 3); + a24 = 2; + + return 25; + } else if(( 217 < a26 && (((((( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) || ((134 < a28) && (300 >= a28)) ) && (input == 4)) && a21 <= 127 ) && (a24==2)) && ((-114 < a14) && (-84 >= a14)) ))){ + a14 = (((a14 * 5) + -508814) - 38899); + a26 = ((((((a26 % 95)+ 10) * 5) + -55692) % 95)+ 55); + a28 = (((((a28 * 9)/ 10) % 48)+ 85) + 0); + a24 = 1; + + return -1; + } else if((((a24==3) && ( ((-182 < a14) && (-114 >= a14)) && ( ((-68 < a26) && (124 >= a26)) && (( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) && (input == 2))))) && a21 <= 127 )){ + a14 = ((((a14 - -176605) % 14)+ -99) * 1); + a26 = (((((a26 % 46)+ 171) + -599345) + 810493) - 211147); + a28 = ((((a28 - -177828) / 5) / 5) + -509888); + a24 = 2; + + return 25; + } else if((((( ((-114 < a14) && (-84 >= a14)) && ((( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) || ((134 < a28) && (300 >= a28)) ) && (input == 5))) && a26 <= -68 ) && a21 <= 127 ) && (a24==2))){ + a14 = (((a14 + 307179) + -355622) * 5); + a28 = (((a28 / 5) * 4) + -35670); + a24 = 1; + + return -1; + } else if(((((a24==2) && ((( 300 < a28 && a14 <= -182 ) || ( ((-182 < a14) && (-114 >= a14)) && a28 <= 37 )) && (input == 5))) && a21 <= 127 ) && a26 <= -68 )){ + a14 = (((((a14 + 2403) % 299909)+ -300090) + 492418) + -492418); + a28 = (((((a28 % 300018)+ -299980) + 264820) / 5) + -289566); + a24 = 1; + + return -1; + } else if(( ((37 < a28) && (134 >= a28)) && ( a21 <= 127 && ((( 217 < a26 && (input == 3)) && a14 <= -182 ) && (a24==2))))){ + a14 = (((a14 / -5) + 209000) + 129249); + a26 = (((((a26 - 390752) - -126915) / 5) % 95)+ 29); + a28 = (((a28 - -390078) * 1) + 42716); + a24 = 1; + + return -1; + } else if(((( ((134 < a28) && (300 >= a28)) && ( a21 <= 127 && ( -84 < a14 && (input == 2)))) && ((-68 < a26) && (124 >= a26)) ) && (a24==3))){ + if( ((-68 < a26) && (124 >= a26)) ){ + a14 = ((((a14 + -140752) * 1) % 299909)+ -300090); + a26 = (((a26 + -452663) - 74934) - 3809); + a28 = (((((a28 * 10)/ 4) + 492713) - 674594) + 613189); + a24 = 1; + + } else{ + a14 = (((((a14 / 5) % 14)+ -97) / 5) - 81); + a24 = 1; + + } return 21; + } else if(((a24==3) && (( ((124 < a26) && (217 >= a26)) && ( -84 < a14 && ( 300 < a28 && (input == 3)))) && a21 <= 127 ))){ + a14 = (((((a14 % 299909)- 300090) - 1) / 5) + -14610); + a26 = ((((a26 / 5) + 577082) * 1) - 577130); + a28 = (((((a28 - 0) - 165728) * 1) % 48)- -86); + return 21; + } else if((((((( 300 < a28 || ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) )) && (input == 3)) && a26 <= -68 ) && (a24==2)) && a21 <= 127 ) && ((-182 < a14) && (-114 >= a14)) )){ + a14 = (((a14 + -319610) + -181575) - 2782); + a28 = ((((a28 / -5) * 10)/ 9) + -90894); + a24 = 1; + + return -1; + } else if(((a24==2) && ( a21 <= 127 && (((input == 5) && ((( ((134 < a28) && (300 >= a28)) && ((-182 < a14) && (-114 >= a14)) ) || ( 300 < a28 && ((-182 < a14) && (-114 >= a14)) )) || ( ((-114 < a14) && (-84 >= a14)) && a28 <= 37 ))) && ((-68 < a26) && (124 >= a26)) )))){ + if( ((-114 < a14) && (-84 >= a14)) ){ + a14 = ((((a14 % 14)+ -91) - -106187) - 106193); + a26 = ((((a26 * 5) - -172324) - 434184) - -336187); + a28 = (((((a28 % 82)+ 218) * 5) % 82)+ 173); + } else{ + a14 = (((a14 * 5) - 64405) - -60802); + a26 = (((a26 * 5) + 139314) * 4); + a28 = ((((((a28 % 48)+ 86) - -1) * 5) % 48)+ 67); + } return 25; + } else if(( a21 <= 127 && (( ((-114 < a14) && (-84 >= a14)) && ((( ((134 < a28) && (300 >= a28)) || ( a28 <= 37 || ((37 < a28) && (134 >= a28)) )) && (input == 1)) && a26 <= -68 )) && (a24==2)))){ + a14 = (((a14 * 5) * 5) + -510943); + a28 = ((((a28 * 9)/ 10) * 1) - 32652); + a24 = 1; + + return -1; + } else if((( a21 <= 127 && ((( 300 < a28 && ( -84 < a14 && ((-68 < a26) && (124 >= a26)) )) || (( ((124 < a26) && (217 >= a26)) && a14 <= -182 ) && a28 <= 37 )) && (input == 5))) && (a24==3))){ + if( a14 <= -182 ){ + a14 = (((((a14 % 14)+ -97) * 1) + 6540) - 6542); + a26 = (((((a26 % 95)- -27) + 0) + 41255) - 41253); + a28 = ((((a28 % 300018)+ -299980) - 2) - 0); + } else{ + a14 = ((((((a14 % 299909)+ -300090) / 5) - -237591) * -1)/ 10); + a26 = ((((a26 % 95)+ 27) - -312425) + -312422); + a28 = (((((a28 * 9)/ 10) * 1) % 299849)+ 300149); + a24 = 2; + + } return -1; + } else if(((a24==3) && ( ((-114 < a14) && (-84 >= a14)) && ( a28 <= 37 && (((input == 5) && a21 <= 127 ) && ((124 < a26) && (217 >= a26)) ))))){ + a28 = ((((a28 / 5) - -260312) % 82)+ 208); + a24 = 2; + + return -1; + } else if(( a21 <= 127 && ( ((124 < a26) && (217 >= a26)) && ((a24==2) && (((input == 3) && ( 300 < a28 || ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ))) && ((-182 < a14) && (-114 >= a14)) ))))){ + a26 = (((((a26 / 5) * 5) - -151147) * -1)/ 10); + a28 = ((((((a28 * 9)/ 10) - 286611) + 235636) % 48)- -85); + a24 = 3; + + return 21; + } else if(((((a24==3) && (((input == 2) && (( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) || ((134 < a28) && (300 >= a28)) )) && ((-114 < a14) && (-84 >= a14)) )) && a21 <= 127 ) && ((-68 < a26) && (124 >= a26)) )){ + if( a14 <= -182 ){ + a14 = ((((a14 - 190298) * 10)/ 9) - 210885); + a28 = ((((((a28 % 48)- -85) * 5) - 461112) % 48)- -123); + a24 = 1; + + } else{ + a14 = ((((a14 * 22)/ 10) / 5) - 113110); + a26 = (((a26 * 5) - 491392) / 5); + a28 = (((((a28 - -407954) % 299849)+ 300149) / 5) + 17022); + a24 = 1; + + } return 25; + } else if(((a24==2) && (( a21 <= 127 && ( ((-182 < a14) && (-114 >= a14)) && ((input == 4) && ( a28 <= 37 || ((37 < a28) && (134 >= a28)) )))) && ((-68 < a26) && (124 >= a26)) ))){ + if( a14 <= -182 ){ + a14 = ((((a14 * 5) % 14)- 99) + 7); + a26 = (((a26 + -279175) - -550480) - -112957); + a28 = (((((a28 % 48)- -86) * 1) - 596800) + 596800); + } else{ + a14 = (((a14 + -515263) * 1) - 75117); + a26 = (((a26 + 364987) - -93136) - 60628); + a28 = ((((a28 / 5) % 48)+ 85) - 0); + } return 21; + } else if(( a26 <= -68 && ( a21 <= 127 && ((a24==2) && ((( a14 <= -182 && 300 < a28 ) || ( ((-182 < a14) && (-114 >= a14)) && a28 <= 37 )) && (input == 2)))))){ + a14 = (((((a14 % 33)+ -142) - -4) + -282598) - -282592); + a26 = ((((a26 % 95)- -83) + -28) + 38); + a28 = ((((a28 + 0) / 5) % 48)+ 85); + return 26; + } else if((((( ((37 < a28) && (134 >= a28)) && ( ((-68 < a26) && (124 >= a26)) && (input == 6))) && -84 < a14 ) && (a24==2)) && a21 <= 127 )){ + a14 = ((((((a14 % 14)- 99) + -1) * 5) % 14)+ -90); + a26 = (((((a26 % 46)+ 170) / 5) - -254664) - 254546); + a28 = (((a28 * -5) + -171377) - 183523); + return 21; + } else if((((( -84 < a14 && ( a21 <= 127 && (input == 3))) && a26 <= -68 ) && 300 < a28 ) && (a24==3))){ + a14 = (((((a14 % 33)+ -146) / 5) / 5) + -147); + a28 = ((((a28 - 393264) % 48)- -86) * 1); + a24 = 1; + + return -1; + } else if(((a24==3) && ( ((-68 < a26) && (124 >= a26)) && ( a21 <= 127 && ((( -84 < a14 && ((37 < a28) && (134 >= a28)) ) || (( ((-114 < a14) && (-84 >= a14)) && 300 < a28 ) || ( a28 <= 37 && -84 < a14 ))) && (input == 1)))))){ + a14 = ((((a14 % 299909)- 300090) - 2) + 0); + a28 = (((((a28 * 9)/ 10) % 299849)+ 300149) + 1); + a24 = 1; + + return 21; + } else if(( ((-68 < a26) && (124 >= a26)) && ( ((37 < a28) && (134 >= a28)) && ((((input == 5) && a21 <= 127 ) && (a24==2)) && -84 < a14 )))){ + a14 = ((((a14 % 299909)+ -300090) - 2) - 0); + a26 = (((((a26 + -82778) * 10)/ 9) * 10)/ 9); + a28 = (((a28 / -5) * 5) - 280617); + a24 = 1; + + return -1; + } else if((((a24==3) && ((((input == 4) && ( ((134 < a28) && (300 >= a28)) || ( a28 <= 37 || ((37 < a28) && (134 >= a28)) ))) && ((-68 < a26) && (124 >= a26)) ) && ((-114 < a14) && (-84 >= a14)) )) && a21 <= 127 )){ + a14 = (((a14 - -517743) / 5) * 5); + a26 = ((((a26 / 5) / 5) + 473437) + -473245); + a28 = (((((a28 / 5) - -104086) + 278547) % 82)- -142); + a24 = 2; + + return 25; + } else if(((((((input == 6) && -84 < a14 ) && a26 <= -68 ) && (a24==3)) && a21 <= 127 ) && 300 < a28 )){ + a14 = ((((a14 % 14)- 98) - -253917) - 253917); + a26 = ((((a26 + 0) % 46)- -187) - 16); + a28 = (((((a28 % 82)- -183) + 18) + 308875) - 308898); + a24 = 2; + + return 26; + } else if(( a21 <= 127 && ((a24==2) && ( ((124 < a26) && (217 >= a26)) && (((input == 4) && a28 <= 37 ) && ((-182 < a14) && (-114 >= a14)) ))))){ + a14 = (((a14 * -5) - 313798) - -720257); + a28 = (((((a28 - -127421) * 1) + -12489) % 299849)+ 300149); + a24 = 1; + + return -1; + } else if(( ((-114 < a14) && (-84 >= a14)) && ((( a26 <= -68 && ((input == 5) && ( ((134 < a28) && (300 >= a28)) || ( a28 <= 37 || ((37 < a28) && (134 >= a28)) )))) && (a24==3)) && a21 <= 127 ))){ + a14 = (((a14 - -175856) + 95063) * 2); + a28 = (((((a28 * 9)/ 10) - -555628) - 480983) + 470839); + a24 = 2; + + return 26; + } else if(((((a24==2) && ((input == 6) && (( ((-114 < a14) && (-84 >= a14)) && 300 < a28 ) || ( a28 <= 37 && -84 < a14 )))) && a21 <= 127 ) && a26 <= -68 )){ + a14 = (((((a14 + 0) * 9)/ 10) % 14)- 97); + a26 = ((((a26 / 5) % 46)- -174) * 1); + a28 = ((((a28 % 48)+ 85) * 1) + 2); + return 26; + } else if(( a21 <= 127 && ( a26 <= -68 && ((a24==3) && ( -84 < a14 && (( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) && (input == 6))))))){ + a14 = ((((a14 - 0) % 299909)+ -300090) - 0); + a28 = (((a28 + -428573) + -33374) - 11398); + a24 = 1; + + return -1; + } else if((( a14 <= -182 && (( ((37 < a28) && (134 >= a28)) && ((input == 5) && (a24==2))) && 217 < a26 )) && a21 <= 127 )){ + if( 300 < a28 ){ + a26 = (((a26 - 600207) * 1) + -2); + a28 = ((((a28 * 10)/ 1) / 5) - -336880); + a24 = 3; + + } else{ + a14 = ((((a14 * 9)/ 10) + 580904) - -7448); + a26 = (((a26 + -600122) - 27) - 4); + } return -1; + } else if((((a24==2) && ( a21 <= 127 && ((( ((134 < a28) && (300 >= a28)) || ( a28 <= 37 || ((37 < a28) && (134 >= a28)) )) && (input == 5)) && 217 < a26 ))) && ((-114 < a14) && (-84 >= a14)) )){ + if( ((124 < a26) && (217 >= a26)) ){ + a14 = (((a14 + -574990) * 1) * 1); + a26 = (((a26 + -600175) + -8) + -24); + a28 = ((((a28 % 299849)- -300149) - -2) - 0); + a24 = 3; + + } else{ + a14 = ((((a14 / -5) + 322149) * 10)/ 9); + a26 = (((((a26 * 9)/ 10) * 1) / 5) + -214006); + a28 = ((((a28 - -51778) + 332066) % 48)+ 86); + } return -1; + } else if((( a21 <= 127 && ( a14 <= -182 && (( ((134 < a28) && (300 >= a28)) && (input == 3)) && (a24==2)))) && 217 < a26 )){ + a26 = ((((a26 * 9)/ 10) + -553324) + -9063); + a28 = (((a28 / 5) - -220684) / -5); + a24 = 1; + + return -1; + } else if(((((a24==2) && ( a28 <= 37 && ( ((-68 < a26) && (124 >= a26)) && (input == 4)))) && -84 < a14 ) && a21 <= 127 )){ + a14 = (((((a14 % 299909)- 300090) - -339514) + -230857) + -108658); + a26 = ((((a26 + 180288) * -1)/ 10) + -226743); + a24 = 1; + + return -1; + } else if(((((a24==3) && ( ((124 < a26) && (217 >= a26)) && (( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) && (input == 6)))) && a21 <= 127 ) && ((-182 < a14) && (-114 >= a14)) )){ + a28 = (((((a28 - -91867) % 300018)- 299980) + 145673) - 145674); + return -1; + } else if(( a21 <= 127 && (( a14 <= -182 && ( ((124 < a26) && (217 >= a26)) && ((input == 6) && ( ((134 < a28) && (300 >= a28)) || 300 < a28 )))) && (a24==2)))){ + a26 = (((((a26 * -6)/ 10) / 5) - -252695) - 326755); + a28 = (((a28 / 5) / 5) + -596739); + a24 = 1; + + return -1; + } else if((( a21 <= 127 && (( ((-182 < a14) && (-114 >= a14)) && (( 300 < a28 || ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) )) && (input == 1))) && ((124 < a26) && (217 >= a26)) )) && (a24==2))){ + a26 = (((((((a26 * 18)/ 10) * 10)/ 9) - 386356) * -1)/ 10); + a28 = (((((a28 % 82)+ 206) - 61) - -277865) - 277844); + return 21; + } else if(((( ((-68 < a26) && (124 >= a26)) && ( ((-182 < a14) && (-114 >= a14)) && ((input == 5) && ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) )))) && (a24==3)) && a21 <= 127 )){ + a14 = ((((a14 * 10)/ 6) - 497311) / 5); + a26 = (((((a26 - -387677) / 5) + -267123) * -1)/ 10); + a28 = ((((a28 - 83359) + -47254) % 48)+ 95); + a24 = 2; + + return 21; + } else if(( a21 <= 127 && (((((input == 4) && a26 <= -68 ) && (a24==3)) && -84 < a14 ) && 300 < a28 ))){ + a14 = (((((a14 + 0) - 549378) * 1) % 299909)- 300090); + a26 = ((((a26 % 299891)- -300108) / 5) - -94227); + a28 = (((((a28 + -577276) % 48)- -85) - 392664) - -392664); + a24 = 2; + + return 21; + } else if(((a24==2) && (( ((-182 < a14) && (-114 >= a14)) && ( a26 <= -68 && ((( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) || 300 < a28 ) && (input == 6)))) && a21 <= 127 ))){ + if( ((37 < a28) && (134 >= a28)) ){ + a14 = (((a14 - 190584) + 372103) - 729880); + a28 = (((a28 - 208015) + -392012) + -8); + a24 = 3; + + } else{ + a14 = ((((a14 + -598168) % 14)+ -94) + -5); + a26 = (((((a26 + 148735) * 1) / 5) % 95)+ 29); + a28 = (((a28 / 5) * 4) - -53558); + } return 26; + } else if(( 217 < a26 && ( a28 <= 37 && ((((input == 4) && a21 <= 127 ) && a14 <= -182 ) && (a24==3))))){ + a14 = ((((a14 % 33)- 121) / 5) + -119); + a26 = (((a26 - 600198) - 3) + -14); + return -1; + } else if((( -84 < a14 && ( a21 <= 127 && ( a28 <= 37 && ((input == 1) && ((-68 < a26) && (124 >= a26)) )))) && (a24==2))){ + a14 = ((((a14 % 299909)+ -300090) + -2) - 0); + a26 = (((a26 / 5) / 5) - 598152); + a24 = 1; + + return -1; + } else if(( a21 <= 127 && ( a28 <= 37 && ((( ((-114 < a14) && (-84 >= a14)) && (input == 4)) && ((124 < a26) && (217 >= a26)) ) && (a24==3))))){ + if( a26 <= -68 ){ + a26 = (((((a26 + 79833) + 426275) + -1000258) * -1)/ 10); + a28 = ((((a28 % 48)- -85) + 584898) + -584897); + a24 = 1; + + } else{ + a14 = (((((a14 * 10)/ 4) - 35718) * 10)/ 9); + a26 = ((((a26 + -387213) - -482378) - 452794) - -824057); + a28 = ((((a28 % 82)- -216) - -1) + 2); + } return -1; + } else if(((( a28 <= 37 && (( a21 <= 127 && (input == 5)) && ((124 < a26) && (217 >= a26)) )) && ((-182 < a14) && (-114 >= a14)) ) && (a24==2))){ + a14 = ((((a14 / 5) * 83)/ 10) + -324840); + a26 = ((((a26 + 123598) / 5) * 10)/ 9); + a28 = ((((a28 % 48)+ 86) - -1) - 2); + return 26; + } else if(((a24==2) && (( ((-68 < a26) && (124 >= a26)) && ((( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) && (input == 2)) && ((-114 < a14) && (-84 >= a14)) )) && a21 <= 127 ))){ + a26 = ((((a26 % 46)+ 170) + 0) - -1); + a28 = (((((((a28 % 82)+ 157) * 9)/ 10) / 5) * 49)/ 10); + return 25; + } else if((( a21 <= 127 && ((( a28 <= 37 && (input == 2)) && (a24==2)) && ((124 < a26) && (217 >= a26)) )) && ((-182 < a14) && (-114 >= a14)) )){ + a14 = (((a14 + -83189) * 5) - 109971); + a26 = (((a26 + 352826) + 179334) + 34059); + a28 = (((a28 / 5) / 5) + 159465); + a24 = 1; + + return -1; + } else if((( a26 <= -68 && ((a24==2) && ((( a14 <= -182 && 300 < a28 ) || ( a28 <= 37 && ((-182 < a14) && (-114 >= a14)) )) && (input == 3)))) && a21 <= 127 )){ + a14 = ((((a14 % 299909)+ -182) - 160118) + -63249); + a28 = ((((a28 % 300018)- 299980) + 182601) + -182602); + a24 = 1; + + return -1; + } else if(( a21 <= 127 && ((input == 6) && ((( ((134 < a28) && (300 >= a28)) && ((a24==2) && ( -84 < a14 && 217 < a26 ))) || ( 300 < a28 && ((a24==2) && ( 217 < a26 && -84 < a14 )))) || (((a24==3) && ( a26 <= -68 && a14 <= -182 )) && a28 <= 37 ))))){ + a14 = ((((a14 + 0) % 300041)- -299957) * 1); + a26 = (((((a26 % 46)- -171) / 5) - -272225) - 272089); + a28 = ((((a28 % 48)- -86) + -1) + 0); + a24 = 2; + + return 21; + } else if(( 217 < a26 && ((((a24==3) && (( ((134 < a28) && (300 >= a28)) || 300 < a28 ) && (input == 4))) && a14 <= -182 ) && a21 <= 127 ))){ + a14 = (((((a14 / 5) + -108885) * 2) % 33)+ -142); + a26 = ((((a26 + 0) - 0) % 95)- 29); + a28 = (((((a28 % 48)- -71) - 59820) - 43993) - -103819); + a24 = 1; + + return 21; + } else if(((((((input == 3) && (( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) || ((134 < a28) && (300 >= a28)) )) && a26 <= -68 ) && a21 <= 127 ) && ((-114 < a14) && (-84 >= a14)) ) && (a24==3))){ + a14 = ((((a14 / -5) + 306231) * 10)/ 9); + a28 = (((((a28 % 82)- -218) / 5) * 10)/ 2); + a24 = 2; + + return -1; + } else if(( a14 <= -182 && ((((a24==2) && ((input == 2) && ( a28 <= 37 || ((37 < a28) && (134 >= a28)) ))) && a26 <= -68 ) && a21 <= 127 ))){ + a28 = ((((a28 % 299849)- -300149) - 506398) - -506401); + return 26; + } else if(((( 300 < a28 && (((input == 2) && ((-182 < a14) && (-114 >= a14)) ) && a21 <= 127 )) && ((-68 < a26) && (124 >= a26)) ) && (a24==3))){ + a14 = (((a14 - 487149) * 1) / 5); + a26 = (((a26 - -427158) + 168406) * 1); + a24 = 1; + + return -1; + } else if(((a24==2) && (( a21 <= 127 && ((input == 5) && (( ((37 < a28) && (134 >= a28)) && -84 < a14 ) || (( 300 < a28 && ((-114 < a14) && (-84 >= a14)) ) || ( a28 <= 37 && -84 < a14 ))))) && 217 < a26 ))){ + a14 = ((((a14 - 526766) - -474026) % 299909)+ -300090); + a26 = (((a26 + -77282) - 317152) - 205692); + a28 = (((((a28 - 0) * 9)/ 10) / 5) + -289060); + a24 = 1; + + return -1; + } else if(( ((-182 < a14) && (-114 >= a14)) && ( ((-68 < a26) && (124 >= a26)) && ((((input == 4) && ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) )) && a21 <= 127 ) && (a24==3))))){ + a14 = ((((a14 * 10)/ 6) * 5) - 534789); + a26 = (((a26 + -583423) - 746) + -10786); + a28 = (((a28 + -210158) / 5) - 502446); + a24 = 1; + + return -1; + } else if((( ((-114 < a14) && (-84 >= a14)) && (( ((124 < a26) && (217 >= a26)) && ((input == 1) && (( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) || ((134 < a28) && (300 >= a28)) ))) && (a24==2))) && a21 <= 127 )){ + a26 = (((a26 * 5) - -358448) / 5); + a28 = ((((a28 % 299849)+ 300149) - -2) - 0); + return 25; + } else if((( ((-68 < a26) && (124 >= a26)) && ((((input == 6) && (( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) || ((134 < a28) && (300 >= a28)) )) && a21 <= 127 ) && (a24==3))) && a14 <= -182 )){ + a26 = (((a26 / 5) - 312781) / 5); + a28 = (((((a28 % 82)+ 218) - 165719) - 412947) - -578665); + a24 = 2; + + return -1; + } else if((( a21 <= 127 && ( ((-182 < a14) && (-114 >= a14)) && ((a24==3) && ((input == 1) && ( a28 <= 37 || ((37 < a28) && (134 >= a28)) ))))) && ((124 < a26) && (217 >= a26)) )){ + a26 = (((((a26 / 5) * 9)/ 10) + -168283) - -168323); + a28 = ((((a28 % 300018)- 299980) / 5) - 126527); + a24 = 2; + + return 21; + } else if(((a24==2) && ( 217 < a26 && ( a21 <= 127 && ((input == 6) && (( 300 < a28 && a14 <= -182 ) || ( a28 <= 37 && ((-182 < a14) && (-114 >= a14)) ))))))){ + a14 = (((((a14 * 9)/ 10) / 5) + 19843) - -250158); + a26 = ((((a26 - 156646) + 132807) + 16180) - 592439); + a28 = (((((a28 % 299849)- -300149) - -1) / 5) - -150493); + return 26; + } else if((( -84 < a14 && (((a24==3) && ((( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) || ((134 < a28) && (300 >= a28)) ) && (input == 1))) && a21 <= 127 )) && ((124 < a26) && (217 >= a26)) )){ + if((a24==1)){ + a14 = (((((a14 + -267597) % 299909)+ -300090) / 5) + -232598); + a28 = (((((a28 % 299849)- -300149) * 1) / 5) - -364010); + a24 = 2; + + } else{ + a26 = (((((a26 * 5) * 10)/ 9) - 550549) - -1020629); + a28 = ((((a28 * 9)/ 10) + 385814) + -431177); + a24 = 1; + + } return -1; + } else if(((( 217 < a26 && (((a24==3) && (input == 2)) && a14 <= -182 )) && a21 <= 127 ) && a28 <= 37 )){ + a26 = ((((((a26 % 95)- -14) + 20350) * 5) % 95)- 31); + a28 = ((((a28 % 299849)- -300149) - 520507) + 520509); + a24 = 1; + + return 25; + } else if(((((a24==3) && ( a21 <= 127 && (( ((134 < a28) && (300 >= a28)) || 300 < a28 ) && (input == 2)))) && ((124 < a26) && (217 >= a26)) ) && ((-182 < a14) && (-114 >= a14)) )){ + a26 = ((((a26 * -1)/ 10) * 5) / 5); + a28 = ((((a28 % 299849)+ 301) * 1) * 1); + a24 = 1; + + return 21; + } else if(( ((-68 < a26) && (124 >= a26)) && (( a21 <= 127 && (((input == 6) && (a24==2)) && a28 <= 37 )) && -84 < a14 ))){ + a26 = (((((a26 - 251433) * 2) * 1) % 46)+ 211); + a28 = ((((a28 % 82)- -217) - 1) + 0); + return 21; + } else if(( ((124 < a26) && (217 >= a26)) && ((a24==3) && ( -84 < a14 && (( 300 < a28 && (input == 2)) && a21 <= 127 ))))){ + a26 = ((((a26 * 5) % 95)- -15) / 5); + a28 = (((a28 + -485617) + -2487) - 112187); + a24 = 1; + + return -1; + } else if(((( a28 <= 37 && (((a24==3) && (input == 3)) && a26 <= -68 )) && a21 <= 127 ) && -84 < a14 )){ + a26 = ((((((a26 * 9)/ 10) % 46)+ 196) - 131059) + 131066); + a28 = ((((a28 % 82)- -216) * 5) / 5); + a24 = 2; + + return 26; + } else if((( ((-182 < a14) && (-114 >= a14)) && ((a24==3) && ( a21 <= 127 && ((input == 3) && ( a28 <= 37 || ((37 < a28) && (134 >= a28)) ))))) && ((124 < a26) && (217 >= a26)) )){ + a14 = ((((a14 + 113328) + -340798) % 14)+ -85); + a26 = ((((a26 - 170) - -158472) - 755026) - -596573); + a28 = (((((a28 % 48)+ 85) / 5) / 5) + 60); + a24 = 2; + + return -1; + } else if(((((((input == 4) && (( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) || ((134 < a28) && (300 >= a28)) )) && ((124 < a26) && (217 >= a26)) ) && (a24==2)) && a21 <= 127 ) && ((-114 < a14) && (-84 >= a14)) )){ + a26 = (((a26 / 5) + 69) - -10); + a28 = ((((a28 + 20984) / 5) % 82)- -216); + a24 = 1; + + return -1; + } else if(((a24==2) && ( a21 <= 127 && ( ((-68 < a26) && (124 >= a26)) && (((input == 6) && ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) )) && ((-114 < a14) && (-84 >= a14)) ))))){ + a14 = (((a14 * 5) - -356251) - 823914); + a26 = ((((a26 / 5) + -466083) * 10)/ 9); + a28 = ((((a28 / -5) * 5) - -229660) * -2); + a24 = 1; + + return -1; + } else if(( a21 <= 127 && (( ((134 < a28) && (300 >= a28)) && (((input == 3) && (a24==2)) && -84 < a14 )) && ((124 < a26) && (217 >= a26)) ))){ + a26 = (((a26 - 260890) - 47933) + -121418); + a24 = 1; + + return -1; + } else if(( ((-182 < a14) && (-114 >= a14)) && (( ((-68 < a26) && (124 >= a26)) && ( 300 < a28 && ((input == 3) && (a24==3)))) && a21 <= 127 ))){ + a14 = (((a14 + 474379) + 2837) - -46014); + a26 = ((((a26 + 449902) + 29250) % 46)- -155); + a28 = ((((a28 / 5) % 82)+ 216) + -6); + a24 = 2; + + return 26; + } else if(( a21 <= 127 && ( ((37 < a28) && (134 >= a28)) && ((a24==3) && (((input == 1) && 217 < a26 ) && a14 <= -182 ))))){ + a14 = (((a14 + 320729) - -279262) * 1); + a28 = (((a28 / 5) - -93488) + -664969); + a24 = 1; + + return 26; + } else if(((a24==3) && ((( a26 <= -68 && ( -84 < a14 && (input == 1))) && a21 <= 127 ) && 300 < a28 ))){ + a14 = (((((a14 + 0) % 299909)- 300090) / 5) - 124796); + a28 = ((((((a28 % 48)- -60) * 5) * 5) % 48)+ 41); + a24 = 2; + + return 25; + } else if(( ((-182 < a14) && (-114 >= a14)) && ( a28 <= 37 && ((a24==3) && (((input == 6) && 217 < a26 ) && a21 <= 127 ))))){ + a26 = (((((a26 * 9)/ 10) * 1) * 1) - 570350); + a28 = (((((a28 % 299849)+ 300149) + 2) / 5) - -172923); + a24 = 1; + + return -1; + } else if(((( ((-182 < a14) && (-114 >= a14)) && ((a24==2) && ((input == 2) && ( 300 < a28 || ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ))))) && a21 <= 127 ) && 217 < a26 )){ + a14 = (((a14 - -62668) - 204030) + -63138); + a26 = (((((a26 - 58572) + -541553) / 5) * 28)/ 10); + a28 = ((((a28 * 9)/ 10) + -585001) - 3230); + a24 = 1; + + return -1; + } else if((((((( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) && (input == 3)) && -84 < a14 ) && a21 <= 127 ) && (a24==3)) && a26 <= -68 )){ + a14 = (((((a14 % 299909)+ -300090) + -2) / 5) - 59987); + a28 = (((a28 / 5) + -490514) / 5); + a24 = 1; + + return -1; + } else if(( ((-114 < a14) && (-84 >= a14)) && (((((( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) || 300 < a28 ) && (input == 1)) && ((124 < a26) && (217 >= a26)) ) && a21 <= 127 ) && (a24==3)))){ + a26 = (((a26 + -535040) * 1) + 534850); + a28 = ((((a28 - 458911) + 150456) / 5) - -419981); + a24 = 1; + + return -1; + } else if(((( a26 <= -68 && ( ((134 < a28) && (300 >= a28)) && ((input == 1) && a21 <= 127 ))) && (a24==2)) && a14 <= -182 )){ + a14 = (((((a14 % 33)+ -131) + -52911) / 5) - -10461); + a24 = 3; + + return 21; + } else if(( a14 <= -182 && ( ((134 < a28) && (300 >= a28)) && (( a21 <= 127 && ((input == 1) && 217 < a26 )) && (a24==2))))){ + a14 = ((((a14 % 14)+ -96) - 481357) - -481353); + a26 = (((((a26 - 192808) + 143479) * 1) % 46)- -170); + a28 = (((a28 - 485508) - 38822) * 1); + return -1; + } else if(((a24==2) && ( a21 <= 127 && (((input == 2) && (( 300 < a28 && a14 <= -182 ) || ( ((-182 < a14) && (-114 >= a14)) && a28 <= 37 ))) && 217 < a26 )))){ + a14 = ((((a14 / 5) * 4) % 14)- 91); + a26 = (((a26 - 0) - 600188) - 13); + a28 = ((((a28 % 82)+ 218) + 87723) + -87723); + a24 = 1; + + return -1; + } else if(( -84 < a14 && ((a24==3) && ((((input == 5) && ((134 < a28) && (300 >= a28)) ) && a21 <= 127 ) && ((-68 < a26) && (124 >= a26)) )))){ + a26 = (((a26 + -288975) * 2) - 20049); + return -1; + } else if(((a24==2) && ( ((124 < a26) && (217 >= a26)) && ( a21 <= 127 && ((input == 2) && ((( 300 < a28 && ((-114 < a14) && (-84 >= a14)) ) || ( a28 <= 37 && -84 < a14 )) || ( ((37 < a28) && (134 >= a28)) && -84 < a14 ))))))){ + a14 = (((((a14 % 299909)- 300090) - 1) + 598064) - 598064); + a26 = (((a26 + -471538) / 5) * 5); + a28 = ((((a28 % 300018)- 299980) + -3) - 0); + a24 = 1; + + return -1; + } else if(( a26 <= -68 && ( -84 < a14 && ((a24==3) && ( a21 <= 127 && ((input == 5) && 300 < a28 )))))){ + a14 = ((((a14 / 5) + 96871) % 14)- 105); + a26 = (((((((a26 * 9)/ 10) % 95)+ 111) * 5) % 95)+ -63); + a28 = (((a28 / -5) * 4) * 1); + a24 = 1; + + return -1; + } else if(( a21 <= 127 && ((( ((-68 < a26) && (124 >= a26)) && (( ((134 < a28) && (300 >= a28)) || 300 < a28 ) && (input == 2))) && (a24==2)) && -84 < a14 ))){ + a14 = ((((a14 * 9)/ 10) + -555577) - 25485); + a26 = ((((a26 * 5) - -317534) * 1) + -584522); + a28 = (((a28 - 600023) * 1) + -10); + a24 = 1; + + return -1; + } else if(( ((-68 < a26) && (124 >= a26)) && ( ((-182 < a14) && (-114 >= a14)) && ((((input == 4) && 300 < a28 ) && (a24==3)) && a21 <= 127 )))){ + a14 = ((((a14 * 5) * 5) * 5) * -5); + a26 = ((((a26 % 46)+ 171) + 1) + -1); + a24 = 1; + + return -1; + } else if(( ((-68 < a26) && (124 >= a26)) && ((a24==2) && ( a14 <= -182 && ( a21 <= 127 && (( 300 < a28 || ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) )) && (input == 1))))))){ + a14 = (((((a14 % 14)+ -92) - 312770) * 1) + 312775); + a26 = ((((a26 - 381650) - -543989) * 3) - 761073); + a28 = ((((((a28 * 9)/ 10) % 48)+ 44) * 10)/ 9); + a24 = 3; + + return 21; + } else if((( a21 <= 127 && ( a26 <= -68 && ((input == 4) && (( 300 < a28 && ((-114 < a14) && (-84 >= a14)) ) || ( -84 < a14 && a28 <= 37 ))))) && (a24==2))){ + a14 = ((((a14 % 299909)+ -300090) - 2) + 0); + a26 = ((((((a26 * 9)/ 10) % 46)+ 176) - 517205) + 517220); + a28 = (((((a28 % 299849)- -300149) - -2) - 526339) - -526339); + return 21; + } else if((( a21 <= 127 && (((a24==3) && ((input == 5) && ( a28 <= 37 || ((37 < a28) && (134 >= a28)) ))) && ((-182 < a14) && (-114 >= a14)) )) && ((124 < a26) && (217 >= a26)) )){ + if( ((134 < a28) && (300 >= a28)) ){ + a14 = (((((a14 / 5) * 9)/ 10) * 5) + 454059); + a28 = (((((a28 * 9)/ 10) % 48)+ 86) + 1); + a24 = 2; + + } else{ + a14 = ((((a14 * 16)/ 10) - 266555) * 2); + a26 = ((((a26 + -171) + -312098) - -484950) - 172869); + a28 = (((((a28 + 0) / 5) * 4) % 48)- -85); + a24 = 2; + + } return -1; + } else if((((( ((-182 < a14) && (-114 >= a14)) && ( a21 <= 127 && (input == 6))) && (a24==2)) && a28 <= 37 ) && ((124 < a26) && (217 >= a26)) )){ + a14 = (((((a14 + -21002) / 5) - -262267) * -1)/ 10); + a24 = 1; + + return -1; + } else if((( ((-68 < a26) && (124 >= a26)) && ( a21 <= 127 && ((a24==3) && (( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) && (input == 1))))) && ((-182 < a14) && (-114 >= a14)) )){ + a14 = (((a14 + -298760) - 124868) / 5); + a26 = (((a26 - -363418) - -96778) * 1); + a28 = (((a28 * 5) / 5) + -160943); + a24 = 2; + + return 25; + } else if(( ((-114 < a14) && (-84 >= a14)) && ( 300 < a28 && ( a21 <= 127 && ( ((-68 < a26) && (124 >= a26)) && ((a24==2) && (input == 5))))))){ + a14 = (((((a14 * 22)/ 10) - -256716) / 5) - 346439); + a26 = ((((a26 * 5) + -272828) * 10)/ 9); + a28 = (((a28 + -600129) / 5) / 5); + a24 = 1; + + return -1; + } else if(((a24==2) && ( ((124 < a26) && (217 >= a26)) && ( a14 <= -182 && ((( ((134 < a28) && (300 >= a28)) || 300 < a28 ) && (input == 2)) && a21 <= 127 ))))){ + a14 = ((((a14 % 14)- 89) + 4) + -12); + a28 = ((((a28 + -600007) + 533056) + 39168) + -572325); + return 25; + } else if(( a26 <= -68 && ((a24==2) && ((((input == 4) && ( ((134 < a28) && (300 >= a28)) || 300 < a28 )) && a21 <= 127 ) && -84 < a14 )))){ + if( ((-182 < a14) && (-114 >= a14)) ){ + a14 = (((((a14 % 14)- 97) * 5) % 14)- 99); + a28 = (((((a28 * 9)/ 10) / 5) % 82)+ 217); + a24 = 3; + + } else{ + a14 = (((((a14 % 33)+ -148) - 140044) - 142644) + 282687); + a26 = ((((((a26 % 299891)+ 300108) - 484968) / 5) * -1)/ 10); + a28 = ((((a28 % 48)+ 49) + 33) - -3); + } return 21; + } else if((( a26 <= -68 && ((a24==3) && ( a21 <= 127 && ( a28 <= 37 && (input == 6))))) && -84 < a14 )){ + a14 = (((((a14 % 299909)- 300090) / 5) * 5) - 3); + a26 = (((((((a26 % 46)- -190) * 9)/ 10) * 5) % 46)+ 128); + a24 = 1; + + return -1; + } else if(( a21 <= 127 && ((input == 5) && (( a28 <= 37 && ((a24==3) && ( a26 <= -68 && a14 <= -182 ))) || (( ((134 < a28) && (300 >= a28)) && ((a24==2) && ( 217 < a26 && -84 < a14 ))) || (((a24==2) && ( -84 < a14 && 217 < a26 )) && 300 < a28 )))))){ + a14 = ((((a14 % 299909)- 300090) - 2) - 0); + a26 = ((((a26 % 299966)+ -300033) / 5) - 264062); + a28 = ((((a28 % 300018)- 299980) / 5) + -108599); + a24 = 1; + + return -1; + } else if((( a21 <= 127 && ((a24==2) && (((( ((-114 < a14) && (-84 >= a14)) && 300 < a28 ) || ( a28 <= 37 && -84 < a14 )) || ( -84 < a14 && ((37 < a28) && (134 >= a28)) )) && (input == 3)))) && 217 < a26 )){ + a14 = (((((a14 % 300041)+ 299957) / 5) - 530177) * -1); + a26 = (((a26 - 600195) * 1) * 1); + a28 = ((((((a28 * 9)/ 10) + 58602) - -677) % 82)- -217); + return 26; + } else if(((( a28 <= 37 && ( a21 <= 127 && ((a24==2) && (input == 2)))) && ((-68 < a26) && (124 >= a26)) ) && -84 < a14 )){ + a14 = ((((a14 - 391701) % 299909)+ -300090) + -2); + a26 = (((a26 - 476734) * 1) * 1); + a24 = 1; + + return -1; + } else if(((a24==2) && (((((( ((134 < a28) && (300 >= a28)) && ((-182 < a14) && (-114 >= a14)) ) || ( 300 < a28 && ((-182 < a14) && (-114 >= a14)) )) || ( ((-114 < a14) && (-84 >= a14)) && a28 <= 37 )) && (input == 1)) && a21 <= 127 ) && ((-68 < a26) && (124 >= a26)) ))){ + a14 = (((((a14 * 22)/ 10) * 10)/ 9) + -72468); + a26 = (((((a26 + 57291) - 630469) - 10325) * -1)/ 10); + a28 = (((((a28 % 82)- -217) - -3474) / 5) - 549); + a24 = 1; + + return -1; + } else if((( ((-182 < a14) && (-114 >= a14)) && (((a24==2) && ((input == 5) && (( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) || 300 < a28 ))) && 217 < a26 )) && a21 <= 127 )){ + a14 = (((a14 - 478432) + 950696) + 107906); + a26 = ((((((a26 * -4)/ 10) * 10)/ 9) - -222749) + -355038); + a28 = ((((a28 + -103775) % 82)+ 217) + 2); + return 26; + } else if(( a14 <= -182 && ( a21 <= 127 && ((a24==2) && (((input == 5) && ( a28 <= 37 || ((37 < a28) && (134 >= a28)) )) && a26 <= -68 ))))){ + a28 = (((a28 / 5) * 4) / 5); + a24 = 1; + + return -1; + } else if(((a24==3) && (( ((124 < a26) && (217 >= a26)) && ( a21 <= 127 && ((input == 1) && ( 300 < a28 || ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ))))) && a14 <= -182 ))){ + a14 = ((((a14 % 14)+ -97) - -6) + -2); + a26 = (((a26 + 36288) * 5) * 3); + a28 = (((((a28 + 0) - 0) + -294774) % 299849)+ 300149); + a24 = 2; + + return 25; + } else if((( ((-68 < a26) && (124 >= a26)) && ((a24==2) && (( a21 <= 127 && (input == 3)) && ((37 < a28) && (134 >= a28)) ))) && -84 < a14 )){ + a14 = ((((a14 % 299909)- 300090) - 1) * 1); + a26 = (((a26 - 307563) / 5) + -94106); + a28 = (((a28 * 5) / -5) * 5); + return 25; + } else if(( ((-182 < a14) && (-114 >= a14)) && ( ((-68 < a26) && (124 >= a26)) && ((((input == 5) && a21 <= 127 ) && 300 < a28 ) && (a24==3))))){ + a14 = (((((a14 * 5) * 5) + 232368) * -1)/ 10); + a26 = ((((a26 + 218034) + 60386) * 10)/ 9); + a28 = ((((a28 % 48)- -54) / 5) + 63); + a24 = 2; + + return 26; + } else if(( ((-68 < a26) && (124 >= a26)) && (((((input == 1) && a21 <= 127 ) && ((-182 < a14) && (-114 >= a14)) ) && 300 < a28 ) && (a24==3)))){ + a14 = (((((a14 % 14)- 98) / 5) + -48356) + 48265); + a26 = (((a26 - 443768) + -95684) + 2569); + a24 = 2; + + return 25; + } else if(( ((-182 < a14) && (-114 >= a14)) && (( a21 <= 127 && ((( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) && (input == 5)) && (a24==2))) && ((-68 < a26) && (124 >= a26)) ))){ + a14 = (((((a14 % 14)- 89) * 5) % 14)+ -95); + a28 = ((((a28 % 300018)- 299980) / 5) - 311547); + a24 = 1; + + return -1; + } else if(((((a24==3) && ( a14 <= -182 && ((input == 1) && a28 <= 37 ))) && 217 < a26 ) && a21 <= 127 )){ + a14 = ((((a14 - -207809) * 1) % 33)- 146); + return 25; + } else if(( a21 <= 127 && (( ((-68 < a26) && (124 >= a26)) && ((( ((37 < a28) && (134 >= a28)) && -84 < a14 ) || (( ((-114 < a14) && (-84 >= a14)) && 300 < a28 ) || ( a28 <= 37 && -84 < a14 ))) && (input == 6))) && (a24==3)))){ + a14 = ((((a14 % 299909)- 300090) - 1) + 0); + a26 = (((((a26 % 46)+ 171) + 586731) + -778760) - -192029); + a28 = (((((a28 % 300018)+ -299980) - 3) - -267547) + -267546); + a24 = 2; + + return -1; + } else if(((((a24==2) && ( -84 < a14 && ( ((-68 < a26) && (124 >= a26)) && (input == 1)))) && ((37 < a28) && (134 >= a28)) ) && a21 <= 127 )){ + a26 = ((((a26 / 5) / 5) * 5) - -148); + a28 = ((((a28 - -99) + -476766) - -263996) - -212799); + return 25; + } else if((((( ((134 < a28) && (300 >= a28)) && ((input == 5) && a14 <= -182 )) && (a24==2)) && a21 <= 127 ) && a26 <= -68 )){ + a28 = (((a28 + -155557) + 578830) - 889585); + a24 = 1; + + return -1; + } else if(( 300 < a28 && (((((a24==3) && (input == 1)) && ((-114 < a14) && (-84 >= a14)) ) && a21 <= 127 ) && a26 <= -68 ))){ + a14 = (((a14 - 217645) - 127850) + 209788); + a28 = (((a28 / -5) / 5) + -406897); + a24 = 2; + + return 25; + } else if(( a21 <= 127 && (((a24==2) && (((( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) || 300 < a28 ) && (input == 1)) && ((-182 < a14) && (-114 >= a14)) )) && a26 <= -68 ))){ + if( ((-114 < a14) && (-84 >= a14)) ){ + a26 = ((((a26 - -303459) + 282095) % 95)+ 28); + a28 = ((((a28 % 48)- -44) + -98566) - -98604); + a24 = 3; + + } else{ + a14 = (((((a14 % 14)- 91) * 5) % 14)+ -94); + a26 = ((((((a26 % 95)- -35) + 13) * 5) % 95)- -29); + a28 = ((((((a28 + 0) * 9)/ 10) - 373470) % 48)+ 86); + } return 21; + } else if(( ((-68 < a26) && (124 >= a26)) && (( -84 < a14 && (((input == 3) && (a24==3)) && a21 <= 127 )) && ((134 < a28) && (300 >= a28)) ))){ + a14 = ((((a14 % 33)- 146) - -231813) + -231815); + a26 = (((a26 - -277492) * 2) * 1); + a28 = (((a28 / 5) - -156245) + -156222); + a24 = 1; + + return -1; + } else if((( ((-114 < a14) && (-84 >= a14)) && ((((( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) || ((134 < a28) && (300 >= a28)) ) && (input == 5)) && a21 <= 127 ) && ((-68 < a26) && (124 >= a26)) )) && (a24==3))){ + a26 = ((((a26 - 280632) + -95725) % 46)+ 186); + a28 = (((((a28 % 82)- -218) + -401117) / 5) + 80371); + a24 = 1; + + return 25; + } else if(((a24==3) && (( a21 <= 127 && ( ((-182 < a14) && (-114 >= a14)) && (( ((134 < a28) && (300 >= a28)) || 300 < a28 ) && (input == 4)))) && ((124 < a26) && (217 >= a26)) ))){ + a14 = (((a14 * 5) + 123936) * 4); + a26 = ((((a26 * -1)/ 10) + 253331) + -253205); + a28 = (((a28 - 600009) / 5) - 52994); + a24 = 1; + + return 25; + } else if(( a21 <= 127 && ((((input == 1) && (( 300 < a28 && ((-114 < a14) && (-84 >= a14)) ) || ( -84 < a14 && a28 <= 37 ))) && a26 <= -68 ) && (a24==2)))){ + a14 = (((((a14 + -67151) / 5) / 5) % 33)+ -146); + a26 = (((((a26 % 46)- -198) / 5) - -217810) - 217675); + a28 = (((((a28 % 82)- -218) - -1) + 550201) + -550202); + return 21; + } else if((( ((-114 < a14) && (-84 >= a14)) && ((((input == 3) && (( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) || 300 < a28 )) && a21 <= 127 ) && ((124 < a26) && (217 >= a26)) )) && (a24==3))){ + if((a24==3)){ + a14 = (((a14 * 5) + -343422) * 1); + a26 = (((((a26 * 5) + -193919) / 5) * -1)/ 10); + a28 = ((((a28 % 299849)- -301) * 1) - -209641); + a24 = 1; + + } else{ + a14 = (((((a14 * 14)/ 10) / 5) - -416748) - 416891); + a28 = (((((a28 * 9)/ 10) * 1) + 27131) * -1); + a24 = 2; + + } return -1; + } else if((((a24==3) && (( ((124 < a26) && (217 >= a26)) && (( ((134 < a28) && (300 >= a28)) || 300 < a28 ) && (input == 3))) && a21 <= 127 )) && ((-182 < a14) && (-114 >= a14)) )){ + a14 = (((a14 + 261227) - -112879) + 216570); + a28 = (((a28 - 600084) + -44) * 1); + a24 = 1; + + return 25; + } else if(( a26 <= -68 && ((((a24==3) && ((input == 2) && ( ((134 < a28) && (300 >= a28)) || ( a28 <= 37 || ((37 < a28) && (134 >= a28)) )))) && a21 <= 127 ) && ((-114 < a14) && (-84 >= a14)) ))){ + a14 = (((a14 - 288458) + -56542) * 1); + a28 = ((((a28 % 300018)- 299980) / 5) + -218963); + a24 = 1; + + return -1; + } else if(((a24==3) && (( a26 <= -68 && (( -84 < a14 && (input == 2)) && a21 <= 127 )) && 300 < a28 ))){ + a14 = ((((a14 % 299909)+ -300090) + 20521) + -20522); + a26 = ((((((a26 - 0) * 9)/ 10) - -5006) % 46)+ 170); + a24 = 1; + + return -1; + } else if(( 217 < a26 && ( a21 <= 127 && ((a24==3) && ( a28 <= 37 && ( ((-182 < a14) && (-114 >= a14)) && (input == 5))))))){ + if( ((124 < a26) && (217 >= a26)) ){ + a28 = ((((a28 % 82)- -218) + -1) - -2); + a24 = 1; + + } else{ + a14 = ((((a14 + 119455) + 328376) * 10)/ 9); + a28 = (((((a28 % 82)+ 217) * 5) % 82)+ 195); + a24 = 1; + + } return 21; + } else if(((a24==2) && (( ((-68 < a26) && (124 >= a26)) && ((( ((-114 < a14) && (-84 >= a14)) && a28 <= 37 ) || (( ((134 < a28) && (300 >= a28)) && ((-182 < a14) && (-114 >= a14)) ) || ( ((-182 < a14) && (-114 >= a14)) && 300 < a28 ))) && (input == 4))) && a21 <= 127 ))){ + a14 = ((((a14 - 135125) / 5) / 5) - -5288); + a26 = ((((a26 - -515837) / 5) / 5) + -20439); + a28 = (((((a28 * 9)/ 10) % 82)- -218) + 1); + a24 = 1; + + return -1; + } else if((( 217 < a26 && ((a24==3) && (((input == 5) && ((37 < a28) && (134 >= a28)) ) && a21 <= 127 ))) && a14 <= -182 )){ + if((a24==1)){ + a14 = ((((a14 % 33)+ -126) + 38868) - 38889); + a28 = (((a28 - 361320) + -95708) * 1); + a24 = 1; + + } else{ + a28 = (((a28 - -575166) * 1) - 429445); + a24 = 2; + + } return -1; + } else if((( ((-114 < a14) && (-84 >= a14)) && ((((input == 1) && ( ((134 < a28) && (300 >= a28)) || ( a28 <= 37 || ((37 < a28) && (134 >= a28)) ))) && 217 < a26 ) && a21 <= 127 )) && (a24==2))){ + a14 = ((((a14 * 5) + -361087) + 460017) - 558491); + a28 = (((((a28 * 9)/ 10) + -11298) % 48)- -122); + return -1; + } else if(( a21 <= 127 && (((((input == 4) && -84 < a14 ) && ((124 < a26) && (217 >= a26)) ) && (a24==3)) && 300 < a28 ))){ + if( ((203 < a21) && (399 >= a21)) ){ + a14 = ((((a14 % 33)+ -148) / 5) * 5); + a26 = (((((a26 * -6)/ 10) + -234053) * 10)/ 9); + a28 = (((a28 - 599974) - 137) * 1); + } else{ + a14 = (((((a14 * 9)/ 10) % 33)- 146) * 1); + a26 = (((a26 + -166556) * 3) - -866771); + a28 = ((((a28 % 48)- -46) - -373193) + -373159); + a24 = 1; + + } return 26; + } else if(((a24==2) && ( ((37 < a28) && (134 >= a28)) && ((((input == 6) && -84 < a14 ) && a26 <= -68 ) && a21 <= 127 )))){ + a26 = (((((a26 - -377067) % 46)+ 170) - -516657) + -516655); + a28 = ((((a28 + -13942) - -14102) * 9)/ 10); + return 25; + } else if(((((( 300 < a28 && (input == 4)) && a21 <= 127 ) && (a24==2)) && ((-68 < a26) && (124 >= a26)) ) && ((-114 < a14) && (-84 >= a14)) )){ + a14 = ((((a14 - -282795) - -310075) * 1) - 902533); + a26 = ((((a26 + -123096) + -349255) * 10)/ 9); + a28 = (((a28 - 398868) / 5) + -390344); + a24 = 1; + + return -1; + } else if((((((input == 2) && (( 300 < a28 && ((-114 < a14) && (-84 >= a14)) ) || ( a28 <= 37 && -84 < a14 ))) && a26 <= -68 ) && (a24==2)) && a21 <= 127 )){ + a14 = ((((a14 % 299909)+ -300090) * 1) + -2); + a28 = (((((a28 % 300018)- 299980) + 209705) / 5) + -378252); + a24 = 1; + + return -1; + } else if((( ((-68 < a26) && (124 >= a26)) && ((((input == 2) && -84 < a14 ) && (a24==2)) && a21 <= 127 )) && ((37 < a28) && (134 >= a28)) )){ + a14 = ((((a14 % 299909)+ -300090) * 1) + -1); + a26 = ((((a26 - -476528) - -54423) * 10)/ 9); + a28 = (((((a28 + 136381) + 63820) + -434425) * -1)/ 10); + return 25; + } else if(((((a24==2) && ( ((-182 < a14) && (-114 >= a14)) && ((( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) || 300 < a28 ) && (input == 4)))) && ((124 < a26) && (217 >= a26)) ) && a21 <= 127 )){ + a28 = (((a28 + -600023) - -146322) + -146275); + a24 = 1; + + return -1; + } else if(( ((124 < a26) && (217 >= a26)) && ((a24==2) && ( a21 <= 127 && (((( 300 < a28 && ((-114 < a14) && (-84 >= a14)) ) || ( a28 <= 37 && -84 < a14 )) || ( -84 < a14 && ((37 < a28) && (134 >= a28)) )) && (input == 6)))))){ + a14 = ((((a14 % 299909)- 300090) - 1) + 0); + a26 = (((a26 + -351032) * 1) - 191650); + a28 = ((((a28 % 300018)- 299980) * 1) * 1); + a24 = 1; + + return -1; + } else if((((a24==2) && (( a21 <= 127 && ((input == 1) && ( ((134 < a28) && (300 >= a28)) || 300 < a28 ))) && -84 < a14 )) && ((-68 < a26) && (124 >= a26)) )){ + a14 = (((((a14 % 299909)+ -300090) - 1) / 5) - 204515); + a26 = (((a26 + 373131) + -442855) + -413854); + a28 = ((((a28 * 9)/ 10) * -1) - 996); + a24 = 1; + + return -1; + } else if((((a24==3) && (((( ((134 < a28) && (300 >= a28)) || ( a28 <= 37 || ((37 < a28) && (134 >= a28)) )) && (input == 1)) && a26 <= -68 ) && ((-114 < a14) && (-84 >= a14)) )) && a21 <= 127 )){ + a14 = (((a14 + -396035) / 5) + -79326); + a28 = ((((a28 % 300018)- 299980) - 1) / 5); + a24 = 1; + + return -1; + } else if(((a24==2) && (((( a21 <= 127 && (input == 2)) && 217 < a26 ) && ((37 < a28) && (134 >= a28)) ) && a14 <= -182 ))){ + a14 = ((((a14 / -5) * 10)/ 9) * 4); + return 25; + } else if(( a21 <= 127 && ((a24==2) && ( ((-68 < a26) && (124 >= a26)) && ((( ((-114 < a14) && (-84 >= a14)) && a28 <= 37 ) || (( ((134 < a28) && (300 >= a28)) && ((-182 < a14) && (-114 >= a14)) ) || ( 300 < a28 && ((-182 < a14) && (-114 >= a14)) ))) && (input == 6)))))){ + a14 = ((((a14 + -340583) - -856359) - -75420) - 1151050); + a26 = (((((a26 / 5) - -150) / 5) * 49)/ 10); + a28 = ((((a28 % 82)- -216) - -412026) - 412025); + a24 = 1; + + return -1; + } else if((( 217 < a26 && ((((( ((-114 < a14) && (-84 >= a14)) && 300 < a28 ) || ( a28 <= 37 && -84 < a14 )) || ( ((37 < a28) && (134 >= a28)) && -84 < a14 )) && (input == 6)) && a21 <= 127 )) && (a24==2))){ + a14 = ((((a14 - 312950) % 299909)- 300090) * 1); + a26 = (((((a26 * -4)/ 10) - -250378) * 2) - 586797); + a28 = (((((a28 * 9)/ 10) % 300018)+ -299980) * 1); + a24 = 1; + + return -1; + } else if(( a14 <= -182 && ( a21 <= 127 && (((( 300 < a28 || ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) )) && (input == 3)) && ((-68 < a26) && (124 >= a26)) ) && (a24==2))))){ + a26 = (((a26 - 587998) - 6171) / 5); + a28 = ((((a28 / 5) / -5) + 70330) * -5); + a24 = 1; + + return -1; + } else if(((( a21 <= 127 && ((( ((134 < a28) && (300 >= a28)) || 300 < a28 ) && (input == 5)) && a26 <= -68 )) && (a24==2)) && -84 < a14 )){ + a14 = (((((a14 * 9)/ 10) + 18444) * 1) - 597139); + a26 = ((((a26 * 9)/ 10) / 5) + 449884); + a28 = ((((a28 % 299849)+ 301) * 1) + 18642); + return 26; + } else if(( ((-114 < a14) && (-84 >= a14)) && ( a21 <= 127 && (( a26 <= -68 && ((input == 2) && 300 < a28 )) && (a24==3))))){ + a14 = (((a14 - 584972) + -14678) + 284227); + a26 = ((((a26 / 5) % 46)- -198) - -14); + a24 = 1; + + return -1; + } else if(( a21 <= 127 && ( ((-182 < a14) && (-114 >= a14)) && (( ((124 < a26) && (217 >= a26)) && ((input == 5) && ( 300 < a28 || ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) )))) && (a24==2))))){ + a14 = (((((a14 % 14)+ -85) / 5) * 51)/ 10); + a28 = (((((a28 / 5) % 82)+ 173) * 9)/ 10); + return 25; + } else if((( a26 <= -68 && ( -84 < a14 && ((( ((134 < a28) && (300 >= a28)) || 300 < a28 ) && (input == 2)) && a21 <= 127 ))) && (a24==2))){ + a14 = ((((a14 + 0) % 299909)+ -300090) * 1); + a28 = (((a28 + -600062) * 1) + -25); + a24 = 1; + + return -1; + } else if((((a24==2) && ((((input == 1) && ( 300 < a28 || ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ))) && a21 <= 127 ) && 217 < a26 )) && ((-182 < a14) && (-114 >= a14)) )){ + a14 = ((((a14 * 10)/ 6) - 103799) / 5); + a26 = ((((a26 - 600073) - -243258) - -155152) - 398457); + a28 = ((((a28 / 5) * 4) / 5) + -551154); + a24 = 1; + + return -1; + } else if(((a24==2) && ( ((-68 < a26) && (124 >= a26)) && (( a21 <= 127 && (( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) && (input == 2))) && ((-182 < a14) && (-114 >= a14)) )))){ + a14 = (((((a14 * 16)/ 10) * 5) * 10)/ 9); + a26 = ((((a26 - -114763) % 46)+ 128) * 1); + a28 = ((((a28 % 299849)- -300149) * 1) * 1); + a24 = 1; + + return -1; + } else if(((( a14 <= -182 && ( ((37 < a28) && (134 >= a28)) && ( a21 <= 127 && (input == 1)))) && 217 < a26 ) && (a24==2))){ + if( ((124 < a26) && (217 >= a26)) ){ + a14 = ((((a14 - -427583) % 14)+ -99) - 1); + } else{ + + } return -1; + } else if(((((( a21 <= 127 && (input == 6)) && a26 <= -68 ) && (a24==2)) && a14 <= -182 ) && ((134 < a28) && (300 >= a28)) )){ + a28 = (((a28 + 350922) - 361070) * 5); + a24 = 1; + + return -1; + } else if((( a21 <= 127 && (( ((-114 < a14) && (-84 >= a14)) && ((( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) || ((134 < a28) && (300 >= a28)) ) && (input == 6))) && ((-68 < a26) && (124 >= a26)) )) && (a24==3))){ + a14 = ((((a14 + 132510) * 10)/ -9) + -154894); + a26 = ((((a26 % 46)+ 171) / 5) * 5); + a28 = (((((a28 % 300018)- 299980) - 1) - -509927) + -509928); + a24 = 1; + + return 21; + } else if(((((( a21 <= 127 && (input == 2)) && a14 <= -182 ) && (a24==3)) && ((37 < a28) && (134 >= a28)) ) && 217 < a26 )){ + a14 = (((((a14 - 0) * 9)/ 10) % 14)+ -91); + a26 = (((((a26 + 0) * 9)/ 10) % 95)- -19); + a28 = (((a28 + 145008) / -5) + -31906); + a24 = 1; + + return 25; + } else if(((((((input == 2) && ( a28 <= 37 || ((37 < a28) && (134 >= a28)) )) && a14 <= -182 ) && ((124 < a26) && (217 >= a26)) ) && (a24==2)) && a21 <= 127 )){ + a26 = (((a26 - 203112) + -391744) + -1984); + a28 = (((((a28 % 300018)- 299980) / 5) * 10)/ 9); + return 21; + } else if(( a14 <= -182 && ((a24==2) && ( 217 < a26 && ( ((37 < a28) && (134 >= a28)) && ( a21 <= 127 && (input == 6))))))){ + if( a28 <= 37 ){ + a14 = ((((a14 % 14)+ -93) + -478471) - -478472); + a28 = (((a28 - -326050) - 78801) * 2); + } else{ + a26 = ((((a26 + -291107) - 309073) + 394043) - 393946); + a28 = ((((a28 + 109) - -522801) * 1) - 522765); + } return -1; + } else if(( ((-68 < a26) && (124 >= a26)) && ( a21 <= 127 && (((( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) && (input == 1)) && ((-114 < a14) && (-84 >= a14)) ) && (a24==2))))){ + a14 = (((a14 + -535354) + -35401) + -564); + a26 = (((a26 / 5) * 5) - -231681); + a28 = ((((a28 / -5) - -291549) + 294080) - 919932); + return 25; + } else if(( ((124 < a26) && (217 >= a26)) && (((a24==2) && ( a14 <= -182 && ((input == 4) && ( ((134 < a28) && (300 >= a28)) || 300 < a28 )))) && a21 <= 127 ))){ + a28 = ((((a28 * 9)/ 10) + 48993) + 6553); + return 21; + } else if(( a21 <= 127 && ((( a14 <= -182 && ((input == 4) && a28 <= 37 )) && (a24==2)) && ((-68 < a26) && (124 >= a26)) ))){ + a26 = (((a26 + -331419) + 600956) - 599236); + a24 = 1; + + return -1; + } else if(((a24==3) && ( a21 <= 127 && ( -84 < a14 && (((input == 3) && (( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) || ((134 < a28) && (300 >= a28)) )) && ((124 < a26) && (217 >= a26)) ))))){ + if( a14 <= -182 ){ + a14 = ((((((a14 % 33)+ -147) + -1) * 5) % 33)+ -117); + a26 = ((((a26 + 246226) - 4331) * 10)/ 9); + a28 = ((((((a28 / 5) % 82)- -218) * 5) % 82)- -164); + a24 = 1; + + } else{ + a14 = ((((a14 - 0) * 9)/ 10) - 599697); + a28 = (((((a28 % 82)+ 218) - 2) + 242606) + -242604); + a24 = 1; + + } return -1; + } else if(( ((124 < a26) && (217 >= a26)) && ((a24==3) && (( a28 <= 37 && ((input == 1) && a21 <= 127 )) && ((-114 < a14) && (-84 >= a14)) )))){ + a26 = ((((a26 * 5) / 5) * 5) + -574058); + a24 = 2; + + return 25; + } else if((( a26 <= -68 && ( a21 <= 127 && (( 300 < a28 && (input == 4)) && (a24==3)))) && ((-114 < a14) && (-84 >= a14)) )){ + a14 = (((a14 + 507598) - 675101) * 3); + a26 = (((((a26 + 345366) - -182099) - 501524) % 299891)+ 300108); + a28 = ((((((a28 + -229670) % 48)- -86) * 5) % 48)- -85); + a24 = 2; + + return 21; + } else if((((a24==2) && (( 217 < a26 && ((input == 4) && a21 <= 127 )) && ((134 < a28) && (300 >= a28)) )) && a14 <= -182 )){ + a26 = ((((a26 / 5) * 4) - -20422) + -540543); + a28 = (((a28 - 593499) + -5083) + -1301); + a24 = 1; + + return -1; + } else if((( a21 <= 127 && ((((input == 3) && (( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) || ((134 < a28) && (300 >= a28)) )) && ((-68 < a26) && (124 >= a26)) ) && (a24==3))) && a14 <= -182 )){ + a26 = ((((a26 - 296413) * 10)/ 9) / 5); + a28 = ((((a28 + 319596) + -255453) / 5) + -461170); + a24 = 1; + + return -1; + } else if(( a21 <= 127 && ( a26 <= -68 && (((( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) && (input == 3)) && (a24==2)) && a14 <= -182 )))){ + a14 = (((((a14 + 0) / 5) + -424186) % 33)- 120); + a28 = (((((a28 % 48)+ 85) / 5) - -586728) - 586653); + return 26; + } else if(( a21 <= 127 && ((a24==2) && (((( 300 < a28 && a14 <= -182 ) || ( a28 <= 37 && ((-182 < a14) && (-114 >= a14)) )) && (input == 1)) && 217 < a26 )))){ + a14 = ((((((a14 % 14)- 91) + 7) * 5) % 14)+ -92); + a28 = (((((a28 % 300018)+ -299980) - -529138) + 57460) + -586599); + a24 = 1; + + return -1; + } + return calculate_output2(input); + } + + int calculate_output2(int input) { + + + if(( a21 <= 127 && ((( -84 < a14 && ((input == 3) && ( 300 < a28 || ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) )))) && (a24==1)) && 217 < a26 ))){ + a14 = (((((a14 + -573739) % 299909)+ -300090) / 5) - 395532); + a26 = ((((a26 * -4)/ 10) + -324259) - 5837); + a28 = (((a28 + 0) / -5) * 4); + return -1; + } else if(((( ((124 < a26) && (217 >= a26)) && ((input == 5) && (( -84 < a14 && ((37 < a28) && (134 >= a28)) ) || (( ((-114 < a14) && (-84 >= a14)) && 300 < a28 ) || ( -84 < a14 && a28 <= 37 ))))) && a21 <= 127 ) && (a24==2))){ + a14 = ((((a14 % 299909)- 300090) * 1) * 1); + a26 = ((((((a26 * -6)/ 10) - -338538) + 11563) * -1)/ 10); + a28 = ((((((a28 + 0) % 82)- -218) * 5) % 82)+ 154); + return 25; + } else if((( -84 < a14 && (((( ((134 < a28) && (300 >= a28)) || 300 < a28 ) && (input == 5)) && (a24==2)) && a21 <= 127 )) && ((-68 < a26) && (124 >= a26)) )){ + a26 = ((((a26 * 5) / 5) % 46)+ 171); + a28 = (((((a28 * 9)/ 10) % 48)- -46) - 7); + return 21; + } else if(( ((-182 < a14) && (-114 >= a14)) && (( ((124 < a26) && (217 >= a26)) && ((a24==3) && ((input == 6) && ( ((134 < a28) && (300 >= a28)) || 300 < a28 )))) && a21 <= 127 ))){ + a14 = (((a14 / 5) + 492183) + 47631); + a26 = (((((a26 / 5) + -216781) - -435488) * -1)/ 10); + a28 = (((((a28 - 38261) / 5) / 5) % 48)+ 85); + a24 = 1; + + return 25; + } else if((((a24==3) && ((input == 4) && (( 300 < a28 && ( -84 < a14 && ((-68 < a26) && (124 >= a26)) )) || ( a28 <= 37 && ( ((124 < a26) && (217 >= a26)) && a14 <= -182 ))))) && a21 <= 127 )){ + a14 = (((a14 / 5) + -269330) / 5); + a26 = (((a26 + 167622) / 5) * 5); + a28 = ((((a28 % 299849)+ 300149) + 0) * 1); + a24 = 1; + + return 26; + } else if(( a21 <= 127 && ((a24==2) && ((input == 3) && (( 300 < a28 && ( ((124 < a26) && (217 >= a26)) && -84 < a14 )) || ( a28 <= 37 && ( a14 <= -182 && 217 < a26 ))))))){ + a14 = (((((a14 / 5) % 14)+ -99) - 251012) + 251013); + a26 = ((((a26 % 46)- -161) / 5) - -128); + a28 = ((((a28 % 82)- -216) - -3) + -2); + return -1; + } else if((((((( ((-68 < a26) && (124 >= a26)) && -84 < a14 ) && 300 < a28 ) || (( ((124 < a26) && (217 >= a26)) && a14 <= -182 ) && a28 <= 37 )) && (input == 1)) && (a24==3)) && a21 <= 127 )){ + if( ((203 < a21) && (399 >= a21)) ){ + a14 = ((((((a14 * 9)/ 10) + -1126) - 12238) % 14)+ -97); + a26 = (((a26 - 286006) / 5) / 5); + a28 = (((a28 / 5) + 326737) - -69076); + } else{ + a14 = ((((a14 % 14)- 99) - -1) + -1); + a26 = (((((a26 / 5) + -45) * 5) % 95)+ 93); + a28 = (((((a28 % 82)- -216) + 1) - 69576) - -69577); + a24 = 2; + + } return -1; + } else if((( a21 <= 127 && (((( ((134 < a28) && (300 >= a28)) || ( a28 <= 37 || ((37 < a28) && (134 >= a28)) )) && (input == 3)) && (a24==2)) && ((-114 < a14) && (-84 >= a14)) )) && a26 <= -68 )){ + a14 = (((a14 * 5) + -331004) + -231106); + a28 = ((((a28 / 5) + -326923) + 491246) * -3); + a24 = 1; + + return -1; + } else if((((( 217 < a26 && (( 300 < a28 || ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) )) && (input == 4))) && ((-182 < a14) && (-114 >= a14)) ) && (a24==2)) && a21 <= 127 )){ + a14 = ((((a14 * 10)/ 6) * 5) / 5); + a26 = ((((a26 + -600121) - 39) + 249367) - 249353); + a28 = (((a28 + -600005) * 1) - 28); + a24 = 1; + + return -1; + } else if(( -84 < a14 && ((a24==3) && ( a21 <= 127 && ( ((-68 < a26) && (124 >= a26)) && ( ((134 < a28) && (300 >= a28)) && (input == 1))))))){ + if((a24==1)){ + a14 = ((((a14 % 14)- 98) * 1) + 1); + a26 = (((((a26 / 5) * 5) - 82394) % 46)- -200); + a28 = (((((a28 % 48)- -43) + 437170) + -496922) + 59747); + a24 = 1; + + } else{ + a14 = ((((((a14 * 9)/ 10) + -382087) - -319194) % 33)+ -147); + a28 = (((a28 / 5) + 247589) * 2); + } return 21; + } else if((((a24==2) && ( a26 <= -68 && ( a21 <= 127 && ((( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) || 300 < a28 ) && (input == 4))))) && ((-182 < a14) && (-114 >= a14)) )){ + a14 = (((a14 + 572607) * 1) - -3198); + a26 = ((((((a26 + 0) % 95)+ 69) * 5) % 95)+ 29); + a28 = (((((a28 - 0) / 5) * 4) % 48)- -61); + return 21; + } else if((( a14 <= -182 && ( a26 <= -68 && ((a24==3) && (( 300 < a28 || ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) )) && (input == 6))))) && a21 <= 127 )){ + a14 = (((a14 / 5) * -4) - -115663); + a26 = ((((a26 + 0) % 46)- -183) - -24); + a28 = ((((a28 % 82)+ 204) + -7) - -18); + a24 = 2; + + return 25; + } else if((( ((-182 < a14) && (-114 >= a14)) && ( a28 <= 37 && ( a26 <= -68 && ((input == 1) && a21 <= 127 )))) && (a24==3))){ + a14 = ((((a14 + 144777) + 318163) + 32845) - 946945); + a24 = 2; + + return 25; + } else if(((((a24==3) && ( a14 <= -182 && (( 300 < a28 || ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) )) && (input == 2)))) && ((124 < a26) && (217 >= a26)) ) && a21 <= 127 )){ + a14 = ((((a14 % 33)+ -118) - -4) + -31); + a28 = (((a28 + -600012) * 1) - 1); + a24 = 2; + + return 26; + } else if(( a21 <= 127 && (( a14 <= -182 && ((a24==2) && ( ((134 < a28) && (300 >= a28)) && (input == 6)))) && 217 < a26 ))){ + a14 = ((((a14 - -599960) - 5473) + 4813) - -646); + a28 = ((((((a28 % 48)+ 78) - -3) / 5) * 39)/ 10); + return -1; + } else if((( -84 < a14 && ( ((134 < a28) && (300 >= a28)) && (((input == 2) && (a24==2)) && a21 <= 127 ))) && ((124 < a26) && (217 >= a26)) )){ + a14 = (((((a14 % 299909)+ -300090) - 2) / 5) + -168281); + a26 = ((((a26 - -194863) * 10)/ -9) + -363965); + return 25; + } else if(( a14 <= -182 && ((a24==3) && (( ((124 < a26) && (217 >= a26)) && ((input == 3) && ( 300 < a28 || ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) )))) && a21 <= 127 )))){ + a14 = ((((a14 % 14)+ -94) + 343086) - 343083); + a26 = ((((((a26 * 10)/ 5) - -349578) + -367205) * -1)/ 10); + a28 = (((((a28 - 448829) / 5) * 5) % 48)+ 86); + a24 = 1; + + return -1; + } else if(((((input == 6) && ((( ((124 < a26) && (217 >= a26)) && -84 < a14 ) && 300 < a28 ) || ( a28 <= 37 && ( a14 <= -182 && 217 < a26 )))) && a21 <= 127 ) && (a24==2))){ + a14 = ((((a14 % 33)+ -148) / 5) * 5); + a26 = ((((((a26 * 9)/ 10) - -14252) * 1) % 95)- 10); + a28 = (((((a28 % 48)- -86) * 5) % 48)+ 40); + a24 = 1; + + return -1; + } else if((((a24==3) && ( a28 <= 37 && ( a21 <= 127 && ( a26 <= -68 && (input == 5))))) && -84 < a14 )){ + a14 = ((((a14 % 299909)- 300090) - 2) - 0); + a26 = ((((a26 % 299891)- -300108) + -564825) - -861686); + a28 = ((((a28 - -494215) % 48)- -86) - 1); + a24 = 2; + + return 26; + } else if(( a21 <= 127 && ( 217 < a26 && (((input == 1) && (( -84 < a14 && ((37 < a28) && (134 >= a28)) ) || (( 300 < a28 && ((-114 < a14) && (-84 >= a14)) ) || ( -84 < a14 && a28 <= 37 )))) && (a24==2))))){ + a14 = (((((a14 % 33)+ -148) + -260080) - 171020) + 431100); + a26 = (((a26 + -600086) - -48664) + -48785); + a28 = ((((a28 % 48)+ 86) + 541397) - 541397); + a24 = 3; + + return 21; + } else if(((( a21 <= 127 && ( a26 <= -68 && (( 300 < a28 || ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) )) && (input == 6)))) && ((-182 < a14) && (-114 >= a14)) ) && (a24==3))){ + a14 = ((((a14 % 14)+ -91) + 4) + -9); + a26 = (((((a26 % 46)+ 170) - -54152) + -345817) + 291696); + a28 = (((((a28 % 82)- -159) * 5) % 82)- -147); + a24 = 2; + + return 26; + } else if(( ((-114 < a14) && (-84 >= a14)) && ( a21 <= 127 && ((a24==3) && (((( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) || ((134 < a28) && (300 >= a28)) ) && (input == 6)) && a26 <= -68 ))))){ + a14 = (((((a14 * 22)/ 10) - -275392) * -1)/ 10); + a26 = ((((a26 + 68884) % 299891)- -300108) * 1); + a28 = (((a28 / 5) - 340041) + -3956); + a24 = 2; + + return -1; + } else if((((a24==3) && ( -84 < a14 && ((( ((134 < a28) && (300 >= a28)) || ( a28 <= 37 || ((37 < a28) && (134 >= a28)) )) && (input == 5)) && a21 <= 127 ))) && ((124 < a26) && (217 >= a26)) )){ + if( ((127 < a21) && (203 >= a21)) ){ + a14 = (((((a14 * 9)/ 10) - -12352) % 33)+ -159); + a28 = ((((a28 - 0) % 48)- -86) * 1); + a24 = 1; + + } else{ + a14 = ((((a14 - 0) % 33)+ -146) + -2); + a28 = ((((a28 % 82)- -218) * 1) + -1); + } return 21; + } else if(((( ((-182 < a14) && (-114 >= a14)) && ((a24==2) && ( a28 <= 37 && (input == 1)))) && ((124 < a26) && (217 >= a26)) ) && a21 <= 127 )){ + a26 = (((((a26 / 5) + -348752) - -495822) * -1)/ 10); + a28 = ((((a28 / 5) % 82)- -216) - -3); + a24 = 3; + + return 25; + } else if(( a21 <= 127 && ( ((-114 < a14) && (-84 >= a14)) && ( 300 < a28 && ( ((-68 < a26) && (124 >= a26)) && ((a24==2) && (input == 2))))))){ + a14 = (((a14 / 5) + -75728) * 5); + a26 = (((a26 / 5) - 382336) * 1); + a28 = ((((a28 + -600069) + -15) - -562943) + -563004); + return 21; + } else if((( ((124 < a26) && (217 >= a26)) && (((( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) && (input == 1)) && a21 <= 127 ) && a14 <= -182 )) && (a24==2))){ + a26 = ((((a26 * 10)/ -9) / 5) + -113859); + a28 = (((((a28 % 300018)+ -299980) - 1) - -476944) + -476945); + a24 = 1; + + return -1; + } else if(( a21 <= 127 && (((a24==3) && (((input == 1) && 300 < a28 ) && ((124 < a26) && (217 >= a26)) )) && -84 < a14 ))){ + if( ((134 < a28) && (300 >= a28)) ){ + a14 = (((((a14 % 33)+ -148) - -2) / 5) + -93); + a26 = ((((a26 - 150747) * 10)/ 9) + -421463); + a24 = 1; + + } else{ + a14 = (((((a14 - 208847) / 5) * 5) % 299909)+ -300090); + a26 = ((((a26 * -6)/ 10) + -344460) * 1); + a28 = (((a28 / 5) - 131548) * 4); + a24 = 2; + + } return -1; + } else if((((a24==3) && (( a21 <= 127 && ((input == 4) && ( 300 < a28 || ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) )))) && ((-114 < a14) && (-84 >= a14)) )) && ((124 < a26) && (217 >= a26)) )){ + a14 = (((((a14 * 14)/ 10) / 5) - 537659) - -537547); + a28 = (((a28 - 600018) / 5) * 5); + a24 = 2; + + return -1; + } else if(( a26 <= -68 && (( a21 <= 127 && ((( 300 < a28 && a14 <= -182 ) || ( ((-182 < a14) && (-114 >= a14)) && a28 <= 37 )) && (input == 4))) && (a24==2)))){ + a14 = (((((((a14 % 33)- 141) * 9)/ 10) * 5) % 33)+ -135); + a26 = ((((a26 % 95)+ 77) + -37) - 10); + a28 = ((((a28 * 9)/ 10) / 5) + 307707); + return 25; + } else if((( a26 <= -68 && ((a24==2) && (( -84 < a14 && (input == 5)) && a21 <= 127 ))) && ((37 < a28) && (134 >= a28)) )){ + a26 = ((((a26 + 406326) % 46)+ 171) - -1); + return 21; + } else if(((a24==2) && (((( 300 < a28 && ( ((124 < a26) && (217 >= a26)) && -84 < a14 )) || (( a14 <= -182 && 217 < a26 ) && a28 <= 37 )) && (input == 4)) && a21 <= 127 ))){ + a14 = ((((a14 + 0) % 299909)- 300090) - 1); + a26 = ((((a26 - 600101) + 446740) - -98110) + -544822); + a28 = (((((a28 * 9)/ 10) % 299849)- -300149) + 0); + a24 = 3; + + return 25; + } else if(((a24==3) && ( a14 <= -182 && ( ((37 < a28) && (134 >= a28)) && (((input == 3) && 217 < a26 ) && a21 <= 127 ))))){ + a14 = ((((((a14 % 14)- 99) * 9)/ 10) - 26828) + 26832); + a26 = ((((a26 - 567555) - -124062) % 95)+ 29); + a24 = 1; + + return -1; + } else if(((a24==3) && ( -84 < a14 && (( 300 < a28 && ( a21 <= 127 && (input == 5))) && ((124 < a26) && (217 >= a26)) )))){ + if( 300 < a28 ){ + a26 = (((a26 * 5) + -208329) + 181135); + a28 = (((a28 + -5328) + -594705) + -80); + } else{ + a26 = (((a26 + -84253) + 84101) + 15); + a28 = (((((a28 * 9)/ 10) - 179743) + -159854) + -228575); + a24 = 1; + + } return 21; + } else if((((input == 2) && ((((a24==3) && ( a14 <= -182 && a26 <= -68 )) && a28 <= 37 ) || ((((a24==2) && ( 217 < a26 && -84 < a14 )) && ((134 < a28) && (300 >= a28)) ) || (((a24==2) && ( 217 < a26 && -84 < a14 )) && 300 < a28 )))) && a21 <= 127 )){ + a14 = ((((a14 % 299909)- 300090) / 5) + -122480); + a26 = ((((a26 % 299966)+ -300033) * 1) - 2); + a28 = (((((a28 % 48)- -86) + -1) + -506689) + 506690); + a24 = 2; + + return 21; + } else if((((( ((-68 < a26) && (124 >= a26)) && ((input == 4) && (( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) || ((134 < a28) && (300 >= a28)) ))) && (a24==3)) && a21 <= 127 ) && a14 <= -182 )){ + a26 = (((a26 - 75942) * 5) - -42988); + a28 = ((((a28 % 300018)- 299980) - 2) * 1); + a24 = 1; + + return -1; + } else if(( a14 <= -182 && ((( 217 < a26 && ((input == 5) && ( ((134 < a28) && (300 >= a28)) || 300 < a28 ))) && (a24==3)) && a21 <= 127 ))){ + a14 = (((((a14 % 33)- 126) * 10)/ 9) + -2); + a26 = (((a26 - 600095) + -92) - 11); + a28 = (((a28 - 0) - 600066) - 52); + a24 = 1; + + return 21; + } else if(((a24==3) && ((( a26 <= -68 && ((input == 4) && a28 <= 37 )) && ((-182 < a14) && (-114 >= a14)) ) && a21 <= 127 ))){ + a14 = (((a14 + 326288) + -584141) + -213561); + a26 = (((((a26 % 299891)+ 300108) + 245413) + -782818) - -676242); + a28 = (((((a28 * 9)/ 10) + 108829) % 48)- -86); + a24 = 2; + + return 21; + } else if(( a14 <= -182 && ( a21 <= 127 && ((a24==3) && (((input == 1) && (( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) || 300 < a28 )) && a26 <= -68 ))))){ + a28 = (((a28 - 233422) - -185772) + -552348); + a24 = 1; + + return -1; + } else if((((((a24==2) && ((input == 2) && (( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) || 300 < a28 ))) && a21 <= 127 ) && a26 <= -68 ) && ((-182 < a14) && (-114 >= a14)) )){ + a14 = ((((a14 * 16)/ 10) - 324243) * 1); + a28 = (((a28 / -5) * 4) * 1); + a24 = 1; + + return -1; + } else if(((( -84 < a14 && (((a24==2) && (input == 4)) && ((124 < a26) && (217 >= a26)) )) && ((134 < a28) && (300 >= a28)) ) && a21 <= 127 )){ + if( 399 < a21 ){ + a14 = (((((a14 % 299909)+ -300090) - -368972) * 1) - 368972); + a26 = (((a26 + 80622) + -133314) + -175810); + a24 = 3; + + } else{ + a26 = (((a26 * 5) - 163628) + -52262); + a28 = (((((a28 % 48)+ 86) - 46) + 197564) + -197529); + } return -1; + } else if((( a14 <= -182 && ( a21 <= 127 && ((( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) && (input == 4)) && (a24==2)))) && ((124 < a26) && (217 >= a26)) )){ + a26 = ((((a26 * 10)/ -9) * 5) + -176510); + a28 = ((((a28 % 300018)- 299980) - 2) - 1); + a24 = 1; + + return -1; + } else if(((((( ((37 < a28) && (134 >= a28)) && (input == 4)) && (a24==2)) && a14 <= -182 ) && 217 < a26 ) && a21 <= 127 )){ + a26 = ((((((a26 % 95)- -13) * 5) * 5) % 95)- -18); + a24 = 1; + + return -1; + } else if(( a21 <= 127 && (((((input == 3) && ((37 < a28) && (134 >= a28)) ) && -84 < a14 ) && (a24==2)) && a26 <= -68 ))){ + a14 = ((((a14 / 5) + 37014) % 14)+ -100); + a26 = ((((a26 - -36260) - -320315) % 299891)+ 300108); + a28 = ((((a28 * -5) * 10)/ 9) + -585792); + return 21; + } else if(( ((-68 < a26) && (124 >= a26)) && ((a24==3) && ( a21 <= 127 && ((( ((37 < a28) && (134 >= a28)) && -84 < a14 ) || (( 300 < a28 && ((-114 < a14) && (-84 >= a14)) ) || ( a28 <= 37 && -84 < a14 ))) && (input == 4)))))){ + if( ((203 < a21) && (399 >= a21)) ){ + a14 = (((a14 - 39317) / 5) - -217237); + a26 = ((((a26 * 5) % 46)+ 171) + -1); + a28 = (((((a28 % 48)+ 86) - 1) + -494265) + 494266); + a24 = 1; + + } else{ + a14 = ((((((a14 / 5) % 14)+ -97) * 5) % 14)- 84); + a28 = ((((((a28 - 0) * 9)/ 10) / 5) % 82)+ 217); + a24 = 1; + + } return -1; + } else if(( a26 <= -68 && ((a24==2) && (( a21 <= 127 && (( ((134 < a28) && (300 >= a28)) || ( a28 <= 37 || ((37 < a28) && (134 >= a28)) )) && (input == 2))) && ((-114 < a14) && (-84 >= a14)) )))){ + a14 = (((a14 + -277459) + 739320) - -23319); + a26 = ((((a26 % 95)+ 107) + -61) - -37); + a28 = (((((a28 % 299849)+ 300149) - 0) - 243307) + 243309); + return 21; + } else if(( a26 <= -68 && ((a24==2) && ( ((37 < a28) && (134 >= a28)) && (( -84 < a14 && (input == 1)) && a21 <= 127 ))))){ + a14 = ((((a14 + -460442) - 37642) % 299909)+ -300090); + a28 = ((((a28 + -436128) * 10)/ 9) + -20593); + a24 = 1; + + return -1; + } else if(((( a21 <= 127 && ((( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) && (input == 2)) && (a24==3))) && -84 < a14 ) && a26 <= -68 )){ + a14 = (((((a14 % 14)- 97) + -3) / 5) - 74); + a26 = ((((((a26 % 46)+ 197) * 5) * 5) % 46)+ 149); + a28 = ((((a28 % 82)+ 157) - -45) - 43); + a24 = 2; + + return 25; + } else if(( 217 < a26 && (( a14 <= -182 && ( ((37 < a28) && (134 >= a28)) && ( a21 <= 127 && (input == 6)))) && (a24==3)))){ + if( a28 <= 37 ){ + a14 = (((a14 / -5) / 5) * 5); + a26 = ((((a26 / 5) * 4) * 10)/ -9); + a28 = (((a28 * 5) * 5) + 146574); + a24 = 2; + + } else{ + a14 = (((a14 / -5) * 4) * 1); + a26 = (((((a26 % 95)+ 29) - -1) - 240644) + 240595); + a28 = (((a28 - -160) + -345513) - -345487); + } return -1; + } else if(((((a24==2) && ( 217 < a26 && ((( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) || ((134 < a28) && (300 >= a28)) ) && (input == 6)))) && a21 <= 127 ) && ((-114 < a14) && (-84 >= a14)) )){ + a14 = (((a14 * 5) / 5) / -5); + a28 = ((((a28 * 9)/ 10) + -13314) / 5); + return -1; + } else if(((a24==2) && ( a21 <= 127 && ((input == 1) && (( 300 < a28 && ( -84 < a14 && ((124 < a26) && (217 >= a26)) )) || (( 217 < a26 && a14 <= -182 ) && a28 <= 37 )))))){ + a14 = ((((a14 % 300041)- -299957) - 0) + 0); + a26 = ((((((a26 - 0) * 9)/ 10) / 5) % 46)+ 148); + a28 = ((((a28 % 299849)+ 300149) * 1) + 0); + return 21; + } else if((((a24==3) && ( a21 <= 127 && ((input == 1) && (( a14 <= -182 && 300 < a28 ) || ( a28 <= 37 && ((-182 < a14) && (-114 >= a14)) ))))) && ((-68 < a26) && (124 >= a26)) )){ + a14 = ((((a14 % 299909)- 182) - 84384) - 101323); + a26 = ((((a26 * 5) * 5) / 5) + -124356); + a28 = ((((a28 + 0) + 0) % 300018)- 299980); + a24 = 2; + + return 25; + } else if(((((((input == 3) && a21 <= 127 ) && ((-182 < a14) && (-114 >= a14)) ) && ((124 < a26) && (217 >= a26)) ) && a28 <= 37 ) && (a24==2))){ + a14 = ((((a14 / 5) - 156256) * 3) * -1); + a28 = ((((a28 % 82)+ 216) + 0) - -1); + return 26; + } else if((((a24==3) && ( a21 <= 127 && (((( 300 < a28 && ((-114 < a14) && (-84 >= a14)) ) || ( -84 < a14 && a28 <= 37 )) || ( -84 < a14 && ((37 < a28) && (134 >= a28)) )) && (input == 5)))) && ((-68 < a26) && (124 >= a26)) )){ + a14 = (((((a14 % 14)+ -99) - -359615) / 5) + -72004); + a26 = (((((a26 * 5) % 46)+ 170) / 5) + 166); + a28 = ((((a28 + 0) - 0) % 82)- -216); + a24 = 1; + + return -1; + } else if(((((((input == 5) && ( 300 < a28 || ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ))) && 217 < a26 ) && (a24==1)) && -84 < a14 ) && a21 <= 127 )){ + a14 = ((((a14 * 9)/ 10) * 1) - 549809); + a26 = (((a26 - 600204) + -9) + -5); + a28 = ((((a28 + -456412) - 143578) + 107177) + -107209); + return -1; + } else if(( ((-68 < a26) && (124 >= a26)) && ((a24==2) && ( a21 <= 127 && ( a28 <= 37 && ((input == 6) && a14 <= -182 )))))){ + + return 21; + } else if(((( a26 <= -68 && (((( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) || 300 < a28 ) && (input == 5)) && ((-182 < a14) && (-114 >= a14)) )) && (a24==3)) && a21 <= 127 )){ + a14 = (((a14 - 156013) - 145655) + 73089); + a28 = ((((a28 + -472891) / 5) + 226171) * -2); + a24 = 1; + + return -1; + } else if(( ((-114 < a14) && (-84 >= a14)) && (( a21 <= 127 && ((a24==3) && ((( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) || 300 < a28 ) && (input == 6)))) && ((124 < a26) && (217 >= a26)) ))){ + a14 = (((a14 + -563964) / 5) + -300729); + a28 = ((((a28 * 9)/ 10) / -5) * 5); + return -1; + } else if(( a21 <= 127 && (( ((37 < a28) && (134 >= a28)) && ( a14 <= -182 && ( 217 < a26 && (input == 4)))) && (a24==3)))){ + if( ((-68 < a26) && (124 >= a26)) ){ + a14 = (((((a14 * 9)/ 10) % 33)- 135) + 12); + a26 = ((((a26 % 95)- 44) + 58) - 7); + a28 = ((((a28 / 5) / 5) + 212181) - 212037); + } else{ + a26 = ((((a26 + -600157) + -25) / 5) + -476203); + a28 = ((((a28 / 5) + 128481) / 5) * -5); + a24 = 2; + + } return 25; + } else if(((a24==2) && ( a21 <= 127 && (((( a28 <= 37 && ((-114 < a14) && (-84 >= a14)) ) || (( ((-182 < a14) && (-114 >= a14)) && ((134 < a28) && (300 >= a28)) ) || ( ((-182 < a14) && (-114 >= a14)) && 300 < a28 ))) && (input == 3)) && ((-68 < a26) && (124 >= a26)) )))){ + a14 = ((((a14 + -9667) - 27742) % 14)- 95); + a26 = (((a26 / 5) - -417532) / 5); + a28 = ((((a28 % 82)+ 218) + -1) + 1); + a24 = 1; + + return -1; + } else if((( a21 <= 127 && ((a24==3) && ( -84 < a14 && (( ((134 < a28) && (300 >= a28)) || ( a28 <= 37 || ((37 < a28) && (134 >= a28)) )) && (input == 2))))) && ((124 < a26) && (217 >= a26)) )){ + a14 = ((((a14 % 299909)+ -300090) - 1) - 1); + a26 = ((((a26 + 60457) - 597562) * 10)/ 9); + a28 = ((((a28 - -579083) % 82)+ 217) * 1); + return 25; + } else if(( a21 <= 127 && ((( ((-68 < a26) && (124 >= a26)) && ((input == 5) && (( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) || ((134 < a28) && (300 >= a28)) ))) && (a24==3)) && a14 <= -182 ))){ + a14 = ((((((a14 % 14)+ -85) - 5) * 5) % 14)+ -89); + a26 = ((((a26 % 46)+ 171) + -1) - 0); + a28 = (((((a28 * 9)/ 10) % 82)- -218) - -1); + a24 = 2; + + return -1; + } else if((((( a21 <= 127 && (( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) && (input == 3))) && ((-182 < a14) && (-114 >= a14)) ) && ((-68 < a26) && (124 >= a26)) ) && (a24==3))){ + a14 = (((a14 + -41266) - 433471) / 5); + a26 = (((a26 + -17008) - 205443) + -290548); + a28 = (((a28 * -5) + -583664) + -11318); + a24 = 1; + + return -1; + } else if(((a24==2) && ( 217 < a26 && (((input == 4) && (( a14 <= -182 && 300 < a28 ) || ( a28 <= 37 && ((-182 < a14) && (-114 >= a14)) ))) && a21 <= 127 )))){ + a14 = ((((((a14 + 0) * 9)/ 10) + -27775) % 33)+ -126); + a28 = ((((a28 % 299849)+ 300149) - -1) - 0); + a24 = 1; + + return -1; + } else if(( a21 <= 127 && ((((( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) && (input == 4)) && -84 < a14 ) && a26 <= -68 ) && (a24==3)))){ + a14 = ((((a14 / 5) * 4) - -104805) + -696272); + a28 = ((((a28 / -5) / 5) - -68650) + -362388); + a24 = 1; + + return -1; + } else if(( a21 <= 127 && ( a14 <= -182 && (( a26 <= -68 && ((input == 4) && ( a28 <= 37 || ((37 < a28) && (134 >= a28)) ))) && (a24==2))))){ + a28 = ((((a28 % 300018)- 299980) * 1) - 0); + a24 = 1; + + return -1; + } else if((( a21 <= 127 && ((( ((-68 < a26) && (124 >= a26)) && (input == 5)) && a28 <= 37 ) && (a24==2))) && -84 < a14 )){ + if( ((-114 < a14) && (-84 >= a14)) ){ + a14 = (((((a14 % 14)- 99) - -1) / 5) - 82); + a26 = (((a26 + -232163) - 174746) * 1); + a28 = (((((a28 * 9)/ 10) / 5) % 82)- -217); + a24 = 3; + + } else{ + a14 = ((((a14 % 33)+ -146) + -353152) - -353149); + a26 = (((a26 + 469043) * 1) + 85319); + a28 = (((((a28 % 82)- -217) - -207925) + 349762) + -557687); + } return 25; + } else if(((a24==3) && ((( a28 <= 37 && ( a21 <= 127 && (input == 6))) && ((-182 < a14) && (-114 >= a14)) ) && a26 <= -68 ))){ + a14 = (((a14 - 115796) / 5) + 23095); + a26 = ((((a26 % 46)- -213) + -39) * 1); + a24 = 2; + + return 26; + } else if(((a24==2) && ( a26 <= -68 && (( a14 <= -182 && ((input == 3) && a21 <= 127 )) && ((134 < a28) && (300 >= a28)) )))){ + a14 = (((a14 - -600159) * 1) - -11); + return 26; + } else if((( ((-68 < a26) && (124 >= a26)) && ((a24==3) && ( ((-114 < a14) && (-84 >= a14)) && ((input == 3) && (( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) || ((134 < a28) && (300 >= a28)) ))))) && a21 <= 127 )){ + a14 = (((a14 + 290620) * 2) + 3330); + a28 = (((((a28 * 9)/ 10) + -51870) - -523533) + -508352); + a24 = 2; + + return 26; + } else if(( a21 <= 127 && ( ((-114 < a14) && (-84 >= a14)) && ( 217 < a26 && ((( ((134 < a28) && (300 >= a28)) || ( a28 <= 37 || ((37 < a28) && (134 >= a28)) )) && (input == 2)) && (a24==2)))))){ + a14 = (((a14 - -144997) * 4) / 5); + a28 = (((((a28 + 534307) % 48)- -86) / 5) - -60); + return 25; + } else if(((a24==3) && ( ((-182 < a14) && (-114 >= a14)) && (((( 300 < a28 || ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) )) && (input == 3)) && a21 <= 127 ) && a26 <= -68 )))){ + if((a24==3)){ + a26 = ((((a26 % 95)+ 102) - 14804) + 14765); + a28 = ((((a28 % 299849)- -301) - -116285) - -107165); + } else{ + a14 = (((a14 - -353831) * 1) + 36539); + a28 = ((((a28 * 9)/ 10) / 5) + -164381); + } return 25; + } else if(( ((-68 < a26) && (124 >= a26)) && (( a14 <= -182 && (((a24==2) && (input == 3)) && a21 <= 127 )) && a28 <= 37 ))){ + a26 = ((((a26 - 533451) * 10)/ 9) / 5); + a24 = 1; + + return -1; + } else if((((input == 4) && ((( ((134 < a28) && (300 >= a28)) && ((a24==2) && ( 217 < a26 && -84 < a14 ))) || ( 300 < a28 && ((a24==2) && ( -84 < a14 && 217 < a26 )))) || (((a24==3) && ( a14 <= -182 && a26 <= -68 )) && a28 <= 37 ))) && a21 <= 127 )){ + a14 = (((((a14 % 299909)+ -300090) - -24268) * 1) - 24268); + a26 = ((((a26 + 0) % 299966)+ -300033) * 1); + a28 = ((((a28 % 300018)+ -299980) - 1) - 1); + a24 = 1; + + return -1; + } else if(( ((-182 < a14) && (-114 >= a14)) && ( 217 < a26 && ( a21 <= 127 && ((( 300 < a28 || ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) )) && (input == 6)) && (a24==2)))))){ + a14 = (((a14 + -272224) + 620977) + -638863); + a28 = (((a28 / 5) / -5) + -225803); + return -1; + } else if((((( a14 <= -182 && (( ((134 < a28) && (300 >= a28)) || 300 < a28 ) && (input == 5))) && (a24==2)) && ((124 < a26) && (217 >= a26)) ) && a21 <= 127 )){ + a26 = ((((a26 + -384287) + 531004) / 5) + -447630); + a28 = (((((a28 * 9)/ 10) / 5) - 36302) + -337872); + a24 = 1; + + return -1; + } else if((( a26 <= -68 && ((a24==2) && ( a14 <= -182 && (( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) && (input == 1))))) && a21 <= 127 )){ + a28 = (((((a28 % 300018)+ -299980) + -2) + 527117) - 527115); + a24 = 1; + + return -1; + } else if(( ((-114 < a14) && (-84 >= a14)) && (( ((-68 < a26) && (124 >= a26)) && ( 300 < a28 && ((input == 1) && (a24==2)))) && a21 <= 127 ))){ + a14 = (((a14 - -203406) - 732624) * 1); + a26 = (((a26 - 84312) + -320342) * 1); + a28 = (((((a28 + 0) % 48)- -83) + -109661) + 109634); + return 25; + } else if((( -84 < a14 && ( a28 <= 37 && (( a26 <= -68 && (input == 2)) && a21 <= 127 ))) && (a24==3))){ + a14 = ((((a14 * 9)/ 10) + -566897) + -12093); + a26 = (((((a26 % 299891)- -300108) * 1) * 10)/ 9); + a28 = (((((a28 % 299849)- -300149) + 0) - 504805) + 504806); + a24 = 1; + + return -1; + } else if(( a26 <= -68 && ((a24==2) && (( a21 <= 127 && ((input == 5) && ( 300 < a28 || ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) )))) && ((-182 < a14) && (-114 >= a14)) )))){ + a14 = ((((a14 + 151174) * 10)/ 9) * 3); + a26 = (((((a26 * 9)/ 10) % 95)+ 69) - -10); + a28 = (((a28 - 599967) * 1) * 1); + return 26; + } else if(( ((-182 < a14) && (-114 >= a14)) && (( a21 <= 127 && (((input == 6) && (( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) || 300 < a28 )) && ((124 < a26) && (217 >= a26)) )) && (a24==2)))){ + a26 = (((((a26 * 18)/ 10) * 10)/ 9) * 5); + a28 = (((((a28 + 0) / 5) - 469686) % 48)- -85); + a24 = 1; + + return -1; + } else if(((( a21 <= 127 && ((( ((134 < a28) && (300 >= a28)) || 300 < a28 ) && (input == 3)) && (a24==2))) && -84 < a14 ) && ((-68 < a26) && (124 >= a26)) )){ + a14 = ((((a14 - 0) % 14)- 98) + 1); + a26 = (((a26 + -577956) + -7978) - 702); + a28 = (((a28 + -356824) + -243223) - 29); + return 25; + } else if(((a24==2) && (((((input == 3) && (( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) || ((134 < a28) && (300 >= a28)) )) && a21 <= 127 ) && ((124 < a26) && (217 >= a26)) ) && ((-114 < a14) && (-84 >= a14)) ))){ + a26 = (((((((a26 * 10)/ -9) * 10)/ 9) - -123948) * -1)/ 10); + a28 = (((((a28 - 0) * 9)/ 10) * 1) + 574821); + return -1; + } else if(( a28 <= 37 && (( a21 <= 127 && (( a26 <= -68 && (input == 1)) && -84 < a14 )) && (a24==3)))){ + a14 = (((((a14 % 14)- 97) + -10750) / 5) + 2078); + a28 = (((((a28 % 299849)+ 300149) - -2) + -515764) - -515763); + a24 = 2; + + return 25; + } else if(((a24==3) && ( a21 <= 127 && ( a26 <= -68 && ( -84 < a14 && (( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) && (input == 1))))))){ + a14 = ((((a14 % 299909)+ -300090) / 5) + -394568); + a26 = (((a26 / 5) * 4) - -581241); + a28 = (((a28 + -540909) * 1) - 37774); + a24 = 2; + + return 25; + } else if(((a24==3) && ((( ((-182 < a14) && (-114 >= a14)) && ((input == 5) && ( ((134 < a28) && (300 >= a28)) || 300 < a28 ))) && a21 <= 127 ) && ((124 < a26) && (217 >= a26)) ))){ + if( ((203 < a21) && (399 >= a21)) ){ + a26 = (((a26 - 546616) - 50934) * 1); + a28 = (((((a28 % 48)- -84) * 9)/ 10) - -5); + a24 = 1; + + } else{ + a26 = (((((a26 * 10)/ 5) / 5) * 44)/ 10); + a28 = ((((a28 - 0) % 82)- -148) - -29); + a24 = 1; + + } return -1; + } else if((((a24==3) && ( ((124 < a26) && (217 >= a26)) && ( ((-182 < a14) && (-114 >= a14)) && ((input == 1) && ( ((134 < a28) && (300 >= a28)) || 300 < a28 ))))) && a21 <= 127 )){ + a26 = (((((a26 + 182512) * 10)/ 9) * 10)/ 9); + a28 = (((((a28 * 9)/ 10) * 1) / 5) + 265006); + a24 = 2; + + return 21; + } else if(((((a24==3) && ( -84 < a14 && ((input == 4) && (( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) || ((134 < a28) && (300 >= a28)) )))) && ((124 < a26) && (217 >= a26)) ) && a21 <= 127 )){ + a26 = (((a26 / 5) + -464524) + 858123); + a28 = (((a28 + 282579) / 5) + 345679); + a24 = 2; + + return 26; + } else if(( ((124 < a26) && (217 >= a26)) && ( a21 <= 127 && (((a24==3) && ((input == 2) && (( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) || 300 < a28 ))) && ((-114 < a14) && (-84 >= a14)) )))){ + if( ((-68 < a26) && (124 >= a26)) ){ + a26 = (((a26 / 5) / 5) - -404033); + a28 = (((a28 - 600031) + -3) + -2); + a24 = 1; + + } else{ + a28 = ((((a28 * 9)/ 10) - -20516) * 1); + a24 = 1; + + } return 25; + } else if((((a24==2) && ( a21 <= 127 && ( a14 <= -182 && ( ((134 < a28) && (300 >= a28)) && (input == 5))))) && 217 < a26 )){ + a14 = (((((a14 % 14)+ -90) - 86004) / 5) + 17114); + a26 = ((((a26 % 46)+ 150) - -213584) - 213606); + return -1; + } else if(( a21 <= 127 && ((((( a14 <= -182 && a26 <= -68 ) && (a24==3)) && a28 <= 37 ) || ((((a24==2) && ( -84 < a14 && 217 < a26 )) && ((134 < a28) && (300 >= a28)) ) || ( 300 < a28 && ((a24==2) && ( 217 < a26 && -84 < a14 ))))) && (input == 1)))){ + a14 = ((((a14 % 299909)+ -300090) * 1) * 1); + a26 = ((((a26 % 299966)- 300033) - 1) + -1); + a28 = ((((a28 % 300018)- 299980) + -2) * 1); + a24 = 2; + + return 25; + } else if(((a24==3) && (((((input == 6) && ( ((134 < a28) && (300 >= a28)) || 300 < a28 )) && a14 <= -182 ) && a21 <= 127 ) && 217 < a26 ))){ + if( ((124 < a26) && (217 >= a26)) ){ + a14 = (((((a14 + 0) * 9)/ 10) % 33)+ -141); + a26 = (((((a26 + 0) / 5) * 4) % 95)+ 15); + a28 = (((a28 + -600122) + -2) + -1); + a24 = 1; + + } else{ + a26 = ((((a26 * 9)/ 10) - -44186) + -603190); + a28 = ((((a28 / 5) % 48)+ 41) - 1); + a24 = 1; + + } return -1; + } else if(((a24==3) && ( a21 <= 127 && ((( 300 < a28 && ( ((-68 < a26) && (124 >= a26)) && -84 < a14 )) || ( a28 <= 37 && ( a14 <= -182 && ((124 < a26) && (217 >= a26)) ))) && (input == 3))))){ + if( 217 < a26 ){ + a14 = ((((a14 % 33)- 147) + -100325) - -100324); + a26 = (((a26 - 84230) - 360937) * 1); + a28 = (((((a28 * 9)/ 10) / 5) % 82)+ 217); + a24 = 1; + + } else{ + a14 = ((((a14 - 0) % 300041)- -299957) - -2); + a26 = ((((((a26 % 95)- -29) - -1) * 5) % 95)+ 27); + a28 = ((((a28 / 5) % 82)+ 217) - -2); + } return 25; + } else if(( a21 <= 127 && (( -84 < a14 && ((a24==1) && ((( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) || 300 < a28 ) && (input == 1)))) && 217 < a26 ))){ + a14 = ((((a14 % 299909)- 300090) + -1) + -1); + a26 = ((((a26 * 9)/ 10) / 5) - 537431); + a28 = (((((a28 - 0) % 82)- -188) / 5) + 189); + a24 = 2; + + return 25; + } else if(((( ((-68 < a26) && (124 >= a26)) && (( a14 <= -182 && (input == 5)) && a28 <= 37 )) && (a24==2)) && a21 <= 127 )){ + a26 = (((a26 + -492947) * 1) / 5); + a24 = 1; + + return -1; + } else if(( ((124 < a26) && (217 >= a26)) && ( a14 <= -182 && ((a24==3) && ( a21 <= 127 && ((input == 4) && (( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) || 300 < a28 ))))))){ + a14 = ((((a14 + 146292) % 14)- 97) - 1); + a26 = ((((a26 * 5) % 95)- 65) - -16); + a28 = (((a28 - 0) / 5) - -467701); + a24 = 1; + + return -1; + } else if(( a26 <= -68 && ( ((-114 < a14) && (-84 >= a14)) && ((a24==3) && (((input == 4) && (( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) || ((134 < a28) && (300 >= a28)) )) && a21 <= 127 ))))){ + a14 = ((((a14 - -412278) + 82632) * -1)/ 10); + a28 = ((((a28 % 300018)+ -299980) - 3) - 0); + a24 = 1; + + return -1; + } else if((((a24==3) && ( ((-182 < a14) && (-114 >= a14)) && (((input == 1) && ( 300 < a28 || ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ))) && a21 <= 127 ))) && a26 <= -68 )){ + a26 = ((((((a26 * 9)/ 10) % 46)- -195) * 10)/ 9); + a28 = (((((a28 % 82)+ 200) * 9)/ 10) - -46); + a24 = 2; + + return 21; + } else if(( a26 <= -68 && ( ((-114 < a14) && (-84 >= a14)) && (((a24==3) && ( a21 <= 127 && (input == 5))) && 300 < a28 )))){ + a26 = (((((a26 * 9)/ 10) + 26433) % 95)+ 28); + a28 = (((a28 - 600041) + -31) / 5); + a24 = 1; + + return -1; + } else if(((((a24==2) && (((input == 2) && (( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) || 300 < a28 )) && ((124 < a26) && (217 >= a26)) )) && ((-182 < a14) && (-114 >= a14)) ) && a21 <= 127 )){ + a14 = (((a14 / 5) + 573294) * 1); + a28 = ((((a28 + 0) % 82)- -156) + 29); + return 25; + } else if(((( a21 <= 127 && ( ((-68 < a26) && (124 >= a26)) && ((input == 1) && a28 <= 37 ))) && a14 <= -182 ) && (a24==2))){ + a26 = ((((a26 + 477785) * 1) * -1)/ 10); + a24 = 1; + + return -1; + } else if(( -84 < a14 && (( ((-68 < a26) && (124 >= a26)) && ((( ((134 < a28) && (300 >= a28)) || 300 < a28 ) && (input == 6)) && (a24==2))) && a21 <= 127 ))){ + a14 = (((((a14 * 9)/ 10) + -155015) % 33)- 146); + a26 = (((a26 * 5) + 135744) + 460313); + a28 = ((((a28 * 9)/ 10) - 349295) + -223702); + return 21; + } else if(( a21 <= 127 && ((((( 300 < a28 || ( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) )) && (input == 2)) && a14 <= -182 ) && (a24==2)) && ((-68 < a26) && (124 >= a26)) ))){ + a26 = ((((a26 + -121513) * 4) * 10)/ 9); + a28 = ((((a28 - 0) / 5) + 173408) * -2); + a24 = 1; + + return -1; + } else if(( a21 <= 127 && ( a26 <= -68 && ( -84 < a14 && ( ((37 < a28) && (134 >= a28)) && ((a24==2) && (input == 4))))))){ + a26 = ((((a26 + 130181) % 46)- -171) * 1); + a28 = (((a28 + 172363) / 5) - -524270); + return 21; + } else if((( a21 <= 127 && ( ((-114 < a14) && (-84 >= a14)) && (( ((124 < a26) && (217 >= a26)) && (input == 6)) && (a24==3)))) && a28 <= 37 )){ + if( -84 < a14 ){ + a14 = ((((a14 - 477732) * 10)/ 9) * 1); + a26 = ((((a26 * 10)/ -9) * 5) / 5); + a28 = ((((a28 / 5) % 48)+ 86) * 1); + a24 = 1; + + } else{ + a26 = (((a26 / 5) / 5) - -53); + a28 = ((((a28 % 299849)+ 300149) * 1) * 1); + a24 = 1; + + } return -1; + } else if((( a21 <= 127 && ((a24==2) && ( ((124 < a26) && (217 >= a26)) && (( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) && (input == 3))))) && a14 <= -182 )){ + a14 = (((a14 / 5) + 550351) * 1); + a28 = (((((a28 % 48)- -85) + 486694) + -162552) - 324141); + return 21; + } else if((((((( 300 < a28 && a14 <= -182 ) || ( ((-182 < a14) && (-114 >= a14)) && a28 <= 37 )) && (input == 1)) && (a24==2)) && a21 <= 127 ) && a26 <= -68 )){ + a14 = ((((((a14 % 299909)+ -182) / 5) - -554173) * -1)/ 10); + a26 = (((((a26 * 9)/ 10) % 95)- -45) - 11); + a28 = (((((a28 % 48)+ 86) + -1) + -329952) + 329953); + return 21; + } else if(( a28 <= 37 && ((a24==3) && (( ((-182 < a14) && (-114 >= a14)) && ((input == 4) && 217 < a26 )) && a21 <= 127 )))){ + if( 217 < a26 ){ + a14 = (((a14 - 259540) - 94128) - 73803); + a26 = ((((a26 / 5) + 398744) + 67902) - 821432); + a28 = ((((a28 % 82)- -216) + 2) + -1); + a24 = 1; + + } else{ + a14 = ((((a14 / 5) * 5) * 5) + 330504); + a26 = ((((a26 % 46)- -132) + -309921) + 309938); + a28 = (((((a28 + 0) % 48)+ 85) / 5) + 101); + } return 25; + } else if(((a24==2) && ( ((-68 < a26) && (124 >= a26)) && ( ((-114 < a14) && (-84 >= a14)) && ((( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) && (input == 4)) && a21 <= 127 ))))){ + a14 = (((a14 + -482752) - 3881) + -14635); + a26 = (((a26 + -300594) + -181450) - 100396); + a28 = (((a28 / 5) - -176720) - 329762); + a24 = 1; + + return -1; + } else if(( a14 <= -182 && (( a21 <= 127 && ( 217 < a26 && (( ((134 < a28) && (300 >= a28)) || 300 < a28 ) && (input == 2)))) && (a24==3)))){ + a14 = (((((a14 % 14)- 93) - 367843) + 801056) - 433211); + a26 = ((((a26 * -4)/ 10) / 5) * 5); + a28 = ((((((a28 * 9)/ 10) / 5) * 5) % 48)+ 61); + a24 = 1; + + return 26; + } else if(((((a24==2) && ((( ((134 < a28) && (300 >= a28)) || 300 < a28 ) && (input == 1)) && a21 <= 127 )) && -84 < a14 ) && a26 <= -68 )){ + a14 = ((((a14 % 299909)+ -300090) - 1) + -1); + a28 = ((((a28 / -5) + 562827) - 219920) * -1); + a24 = 1; + + return -1; + } else if(((((a24==2) && (((input == 6) && ( ((134 < a28) && (300 >= a28)) || ( a28 <= 37 || ((37 < a28) && (134 >= a28)) ))) && a21 <= 127 )) && ((-114 < a14) && (-84 >= a14)) ) && a26 <= -68 )){ + a14 = (((a14 - 79221) - 331392) / 5); + a28 = ((((a28 / 5) + -195439) + 447529) * -2); + a24 = 1; + + return -1; + } else if((((((input == 4) && ((( 300 < a28 && ((-114 < a14) && (-84 >= a14)) ) || ( a28 <= 37 && -84 < a14 )) || ( ((37 < a28) && (134 >= a28)) && -84 < a14 ))) && ((124 < a26) && (217 >= a26)) ) && (a24==2)) && a21 <= 127 )){ + a14 = (((((a14 % 300041)- -299957) - -2) + -464541) + 464541); + a26 = ((((a26 - -110877) * 10)/ -9) - 263161); + a28 = (((((a28 % 48)+ 85) * 5) % 48)+ 84); + return 25; + } else if((( -84 < a14 && (( a21 <= 127 && (( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) && (input == 5))) && a26 <= -68 )) && (a24==3))){ + a14 = ((((a14 % 299909)+ -300090) + 347052) - 347052); + a26 = (((a26 / 5) + 161588) * 3); + a28 = ((((a28 + -573306) * 1) % 48)+ 86); + a24 = 2; + + return 21; + } else if(((((( a21 <= 127 && (input == 6)) && (a24==3)) && 217 < a26 ) && a28 <= 37 ) && a14 <= -182 )){ + if( ((124 < a26) && (217 >= a26)) ){ + a14 = (((a14 / 5) + 344904) * 1); + a26 = (((((a26 % 95)- -21) * 5) % 95)+ 28); + a28 = (((((a28 / 5) % 48)- -86) + 319814) - 319814); + a24 = 2; + + } else{ + a14 = ((((a14 / 5) - -215558) * 10)/ 9); + a26 = ((((a26 - 126036) / 5) % 46)+ 170); + a28 = ((((a28 - 0) - 0) % 82)+ 218); + a24 = 1; + + } return 21; + } else if((((((input == 3) && (( 300 < a28 && ((-114 < a14) && (-84 >= a14)) ) || ( -84 < a14 && a28 <= 37 ))) && a21 <= 127 ) && (a24==2)) && a26 <= -68 )){ + if( 399 < a21 ){ + a14 = (((((a14 / 5) * 10)/ 9) * 10)/ 9); + a28 = ((((((a28 * 9)/ 10) % 300018)+ -299980) - -90800) - 90800); + a24 = 3; + + } else{ + a14 = (((((a14 % 33)- 148) * 1) / 5) - 93); + a26 = ((((a26 % 95)+ 72) + 396546) - 396497); + a28 = ((((a28 % 299849)+ 300149) / 5) - -2557); + a24 = 3; + + } return 25; + } else if(((((((a24==3) && (input == 3)) && ((-114 < a14) && (-84 >= a14)) ) && 300 < a28 ) && a26 <= -68 ) && a21 <= 127 )){ + a14 = ((((a14 / 5) - 160179) + 39379) + 120693); + a28 = (((((a28 + -573486) % 48)- -86) - 478885) - -478885); + a24 = 1; + + return -1; + } else if(((a24==2) && ( a21 <= 127 && ((input == 2) && (( 300 < a28 && ( -84 < a14 && ((124 < a26) && (217 >= a26)) )) || ( a28 <= 37 && ( 217 < a26 && a14 <= -182 ))))))){ + a14 = (((((a14 - 0) % 14)+ -98) + -472357) + 472357); + a26 = (((a26 + -79858) + -520218) - 37); + a28 = (((((a28 % 300018)+ -299980) / 5) * 10)/ 9); + a24 = 1; + + return -1; + } else if((( 217 < a26 && (((input == 3) && (( 300 < a28 && a14 <= -182 ) || ( ((-182 < a14) && (-114 >= a14)) && a28 <= 37 ))) && (a24==2))) && a21 <= 127 )){ + if( 300 < a28 ){ + a14 = ((((((a14 % 299909)+ -182) - -536006) / 5) * -1)/ 10); + a26 = (((((a26 / 5) % 95)- 25) + 386296) - 386311); + a28 = ((((((a28 + 0) % 82)+ 216) * 5) % 82)- -165); + a24 = 3; + + } else{ + a14 = ((((a14 * 9)/ 10) + -6690) / 5); + a28 = ((((a28 % 82)- -216) + 0) + 2); + } return -1; + } else if(( a26 <= -68 && (( 300 < a28 && (((input == 6) && a21 <= 127 ) && (a24==3))) && ((-114 < a14) && (-84 >= a14)) ))){ + a26 = (((((a26 % 46)+ 214) + 262262) * 2) - 524736); + a28 = (((((a28 % 82)- -198) * 5) % 82)- -212); + a24 = 2; + + return 26; + } else if(((a24==3) && (((input == 6) && ((( -84 < a14 && ((-68 < a26) && (124 >= a26)) ) && 300 < a28 ) || (( a14 <= -182 && ((124 < a26) && (217 >= a26)) ) && a28 <= 37 ))) && a21 <= 127 ))){ + a14 = (((((a14 % 300041)- -299957) - 320454) / 5) + 210816); + a26 = (((a26 + -246364) + 385521) + 393216); + a28 = (((((a28 + 0) - 0) - 0) % 82)- -217); + a24 = 1; + + return 25; + } else if(( ((-68 < a26) && (124 >= a26)) && ( a21 <= 127 && (((input == 2) && (( 300 < a28 && a14 <= -182 ) || ( a28 <= 37 && ((-182 < a14) && (-114 >= a14)) ))) && (a24==3))))){ + a14 = ((((a14 % 299909)+ -182) - 241813) - 48065); + a26 = ((((a26 % 46)+ 171) / 5) * 5); + a28 = (((((a28 % 299849)+ 300149) * 1) / 5) - -174154); + a24 = 1; + + return -1; + } else if(((((( ((134 < a28) && (300 >= a28)) && (input == 4)) && -84 < a14 ) && ((-68 < a26) && (124 >= a26)) ) && a21 <= 127 ) && (a24==3))){ + a14 = ((((a14 % 299909)- 300090) * 1) - 2); + a26 = (((a26 - 308988) / 5) - 143502); + a28 = ((((a28 % 48)- -60) + -361970) - -361982); + a24 = 1; + + return 26; + } else if(((a24==2) && ( a21 <= 127 && ( ((-68 < a26) && (124 >= a26)) && ((( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) && (input == 6)) && ((-182 < a14) && (-114 >= a14)) ))))){ + a14 = ((((((a14 % 14)+ -84) + -12) / 5) * 49)/ 10); + a26 = ((((a26 - -533792) * 1) % 46)+ 167); + a28 = ((((a28 * 9)/ 10) * 1) - 52880); + return 26; + } else if(((a24==2) && ( a21 <= 127 && ( -84 < a14 && ( ((-68 < a26) && (124 >= a26)) && ((input == 4) && ( ((134 < a28) && (300 >= a28)) || 300 < a28 ))))))){ + a28 = ((((a28 / 5) - -366592) * 10)/ 9); + return 21; + } else if((( a21 <= 127 && (( ((-68 < a26) && (124 >= a26)) && (( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) && (input == 5))) && ((-114 < a14) && (-84 >= a14)) )) && (a24==2))){ + a26 = (((a26 + 390814) + 27950) * 1); + a28 = ((((a28 / -5) + 353873) / 5) - 199773); + return 21; + } else if(((((( a26 <= -68 && (input == 2)) && a28 <= 37 ) && ((-182 < a14) && (-114 >= a14)) ) && (a24==3)) && a21 <= 127 )){ + a14 = (((a14 - 599040) * 1) + -477); + a26 = (((((a26 % 46)- -181) / 5) + 580927) + -580769); + a28 = ((((a28 * 9)/ 10) + 597658) * 1); + a24 = 1; + + return -1; + } else if(( a21 <= 127 && ( a26 <= -68 && ( a14 <= -182 && ((a24==2) && ((input == 4) && ((134 < a28) && (300 >= a28)) )))))){ + a28 = (((a28 - 88518) + 332612) - -185866); + a24 = 3; + + return 25; + } else if(((((((( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) || 300 < a28 ) && (input == 2)) && (a24==1)) && a21 <= 127 ) && 217 < a26 ) && -84 < a14 )){ + a14 = (((a14 / 5) - 359586) - 188227); + a26 = ((((a26 / 5) * 4) * 10)/ -9); + a28 = (((a28 + -599987) * 1) / 5); + return -1; + } else if(( ((-182 < a14) && (-114 >= a14)) && ( a28 <= 37 && (( 217 < a26 && ((input == 1) && (a24==3))) && a21 <= 127 )))){ + a26 = ((((a26 * -4)/ 10) + -285219) * 1); + a28 = (((((a28 % 82)+ 217) + -534122) / 5) + 107021); + a24 = 1; + + return 26; + } else if((( 217 < a26 && (((( ((134 < a28) && (300 >= a28)) || ( a28 <= 37 || ((37 < a28) && (134 >= a28)) )) && (input == 3)) && (a24==2)) && a21 <= 127 )) && ((-114 < a14) && (-84 >= a14)) )){ + a14 = ((((a14 + -216626) * 2) / 5) + 593537); + a26 = (((((a26 % 95)+ -21) - -256088) * 2) + -512198); + a28 = (((((a28 % 299849)- -300149) / 5) - 55932) + 56534); + a24 = 1; + + return -1; + } else if(( a26 <= -68 && (( a21 <= 127 && (((input == 3) && a28 <= 37 ) && ((-182 < a14) && (-114 >= a14)) )) && (a24==3)))){ + a28 = ((((a28 % 48)- -86) + 428893) + -428893); + a24 = 1; + + return -1; + } else if((( ((-68 < a26) && (124 >= a26)) && ((((a24==2) && (input == 6)) && ((-114 < a14) && (-84 >= a14)) ) && 300 < a28 )) && a21 <= 127 )){ + a26 = (((a26 / 5) + 139) + -1); + return 21; + } else if(( ((-182 < a14) && (-114 >= a14)) && (( a21 <= 127 && ((a24==2) && ((input == 3) && (( ((37 < a28) && (134 >= a28)) || ((134 < a28) && (300 >= a28)) ) || 300 < a28 )))) && 217 < a26 ))){ + a14 = (((a14 + 324662) - 464981) - -345313); + a26 = ((((a26 - 0) - 307979) / 5) - 367291); + a28 = ((((a28 + -539020) % 82)- -218) * 1); + return -1; + } else if(( a21 <= 127 && (((a24==2) && ( ((134 < a28) && (300 >= a28)) && ((input == 2) && a26 <= -68 ))) && a14 <= -182 ))){ + a28 = (((a28 - -195508) + -390142) - 230776); + a24 = 1; + + return -1; + } else if((( a21 <= 127 && ( -84 < a14 && (((a24==3) && (input == 6)) && ((-68 < a26) && (124 >= a26)) ))) && ((134 < a28) && (300 >= a28)) )){ + if( ((127 < a21) && (203 >= a21)) ){ + a14 = (((a14 / 5) - 559557) - 19071); + a26 = (((((a26 + -421182) % 46)+ 193) * 9)/ 10); + a28 = ((((a28 * 10)/ 4) + 431156) + 106529); + a24 = 1; + + } else{ + a26 = (((a26 + -74336) / 5) - 416304); + a24 = 2; + + } return -1; + } else if((((a24==2) && ((input == 5) && ((( -84 < a14 && ((124 < a26) && (217 >= a26)) ) && 300 < a28 ) || ( a28 <= 37 && ( a14 <= -182 && 217 < a26 ))))) && a21 <= 127 )){ + a14 = (((((a14 + 0) / 5) + 348972) * -1)/ 10); + a26 = (((a26 / 5) + -388035) - 71649); + a28 = ((((a28 % 82)+ 218) + 1) - 2); + return 25; + } else if(( a21 <= 127 && (((((( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) || ((134 < a28) && (300 >= a28)) ) && (input == 5)) && (a24==2)) && ((-114 < a14) && (-84 >= a14)) ) && ((124 < a26) && (217 >= a26)) ))){ + a14 = (((a14 - 55) - -423933) + -423923); + a26 = (((a26 + 302960) / 5) - 191496); + a28 = ((((((a28 / 5) % 48)+ 86) * 5) % 48)- -38); + a24 = 3; + + return 21; + } else if((( a28 <= 37 && ((a24==3) && ( a26 <= -68 && ((input == 4) && -84 < a14 )))) && a21 <= 127 )){ + a26 = ((((a26 % 46)+ 208) + -309938) - -309907); + a28 = (((((a28 * 9)/ 10) + 559071) + -50111) + 68264); + a24 = 1; + + return -1; + } else if(((a24==2) && (( ((124 < a26) && (217 >= a26)) && ((( a28 <= 37 || ((37 < a28) && (134 >= a28)) ) && (input == 6)) && a14 <= -182 )) && a21 <= 127 ))){ + a26 = (((a26 + -364117) * 1) * 1); + a28 = (((((a28 % 300018)- 299980) / 5) * 10)/ 9); + a24 = 1; + + return -1; + } else if(( a21 <= 127 && ( 217 < a26 && (((input == 2) && (( -84 < a14 && ((37 < a28) && (134 >= a28)) ) || (( ((-114 < a14) && (-84 >= a14)) && 300 < a28 ) || ( a28 <= 37 && -84 < a14 )))) && (a24==2))))){ + a14 = ((((a14 + -393198) % 299909)- 300090) + -2); + a26 = (((a26 + -600152) + -28) - 28); + a28 = ((((a28 % 300018)- 299980) * 1) * 1); + a24 = 1; + + return -1; + } + return -2; + } + +int main() +{ + // default output + int output = -1; + + // main i/o-loop + while(1) + { + // read input + int input; + input = __VERIFIER_nondet_int(); + if ((input != 1) && (input != 2) && (input != 3) && (input != 4) && (input != 5) && (input != 6)) return -2; + + // operate eca engine + output = calculate_output(input); + } +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem18_label00_false-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem18_label00_false-unreach-call.c new file mode 100644 index 000000000..0f860aa4b --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem18_label00_false-unreach-call.c @@ -0,0 +1,4266 @@ +extern void __VERIFIER_error(void); +extern int __VERIFIER_nondet_int(void); +extern void exit(int); + + // inputs + int inputD = 4; + int inputA = 1; + int inputC = 3; + int inputE = 5; + int inputB = 2; + int inputF = 6; + + + int a18 = 9; + int a24 = 3; + int a3 = 99; + int a15 = 4; + + int calculate_output2(int input); + int calculate_output3(int input); + + int calculate_output(int input) { + if(((((a24==1) && (a18==9)) && (a15==4)) && a3 <= 115 )){ + error_20: exit(0); + } + if(((((a24==1) && (a18==8)) && (a15==4)) && 417 < a3 )){ + error_34: exit(0); + } + if(((((a24==2) && (a18==11)) && (a15==4)) && 417 < a3 )){ + error_57: exit(0); + } + if(((((a24==1) && (a18==8)) && (a15==4)) && a3 <= 115 )){ + error_19: exit(0); + } + if(((((a24==0) && (a18==8)) && (a15==4)) && ((306 < a3) && (417 >= a3)) )){ + error_9: exit(0); + } + if(((((a24==0) && (a18==12)) && (a15==4)) && a3 <= 115 )){ + error_3: exit(0); + } + if(((((a24==2) && (a18==9)) && (a15==4)) && 417 < a3 )){ + error_55: exit(0); + } + if(((((a24==2) && (a18==8)) && (a15==4)) && a3 <= 115 )){ + error_39: exit(0); + } + if(((((a24==1) && (a18==9)) && (a15==4)) && 417 < a3 )){ + error_35: exit(0); + } + if(((((a24==1) && (a18==10)) && (a15==4)) && ((306 < a3) && (417 >= a3)) )){ + error_31: exit(0); + } + if(((((a24==2) && (a18==11)) && (a15==4)) && ((306 < a3) && (417 >= a3)) )){ + error_52: exit(0); + } + if(((((a24==0) && (a18==11)) && (a15==4)) && ((306 < a3) && (417 >= a3)) )){ + error_12: exit(0); + } + if(((((a24==0) && (a18==9)) && (a15==4)) && ((306 < a3) && (417 >= a3)) )){ + error_10: exit(0); + } + if(((((a24==0) && (a18==9)) && (a15==4)) && a3 <= 115 )){ + error_0: __VERIFIER_error(); + } + if(((((a24==1) && (a18==12)) && (a15==4)) && 417 < a3 )){ + error_38: exit(0); + } + if(((((a24==0) && (a18==12)) && (a15==4)) && ((115 < a3) && (306 >= a3)) )){ + error_8: exit(0); + } + if(((((a24==2) && (a18==8)) && (a15==4)) && ((306 < a3) && (417 >= a3)) )){ + error_49: exit(0); + } + if(((((a24==1) && (a18==12)) && (a15==4)) && ((306 < a3) && (417 >= a3)) )){ + error_33: exit(0); + } + if(((((a24==1) && (a18==9)) && (a15==4)) && ((115 < a3) && (306 >= a3)) )){ + error_25: exit(0); + } + if(((((a24==0) && (a18==10)) && (a15==4)) && ((115 < a3) && (306 >= a3)) )){ + error_6: exit(0); + } + if(((((a24==0) && (a18==10)) && (a15==4)) && a3 <= 115 )){ + error_1: exit(0); + } + if(((((a24==1) && (a18==10)) && (a15==4)) && 417 < a3 )){ + error_36: exit(0); + } + if(((((a24==1) && (a18==11)) && (a15==4)) && ((306 < a3) && (417 >= a3)) )){ + error_32: exit(0); + } + if(((((a24==2) && (a18==9)) && (a15==4)) && ((115 < a3) && (306 >= a3)) )){ + error_45: exit(0); + } + if(((((a24==1) && (a18==11)) && (a15==4)) && ((115 < a3) && (306 >= a3)) )){ + error_27: exit(0); + } + if(((((a24==0) && (a18==11)) && (a15==4)) && 417 < a3 )){ + error_17: exit(0); + } + if(((((a24==2) && (a18==8)) && (a15==4)) && ((115 < a3) && (306 >= a3)) )){ + error_44: exit(0); + } + if(((((a24==2) && (a18==12)) && (a15==4)) && ((306 < a3) && (417 >= a3)) )){ + error_53: exit(0); + } + if(((((a24==2) && (a18==8)) && (a15==4)) && 417 < a3 )){ + error_54: exit(0); + } + if(((((a24==0) && (a18==9)) && (a15==4)) && 417 < a3 )){ + error_15: exit(0); + } + if(((((a24==2) && (a18==10)) && (a15==4)) && ((115 < a3) && (306 >= a3)) )){ + error_46: exit(0); + } + if(((((a24==3) && (a18==8)) && (a15==4)) && a3 <= 115 )){ + error_59: exit(0); + } + if(((((a24==0) && (a18==9)) && (a15==4)) && ((115 < a3) && (306 >= a3)) )){ + error_5: exit(0); + } + if(((((a24==1) && (a18==8)) && (a15==4)) && ((306 < a3) && (417 >= a3)) )){ + error_29: exit(0); + } + if(((((a24==2) && (a18==12)) && (a15==4)) && 417 < a3 )){ + error_58: exit(0); + } + if(((((a24==1) && (a18==11)) && (a15==4)) && a3 <= 115 )){ + error_22: exit(0); + } + if(((((a24==0) && (a18==10)) && (a15==4)) && ((306 < a3) && (417 >= a3)) )){ + error_11: exit(0); + } + if(((((a24==1) && (a18==9)) && (a15==4)) && ((306 < a3) && (417 >= a3)) )){ + error_30: exit(0); + } + if(((((a24==2) && (a18==9)) && (a15==4)) && a3 <= 115 )){ + error_40: exit(0); + } + if(((((a24==0) && (a18==12)) && (a15==4)) && ((306 < a3) && (417 >= a3)) )){ + error_13: exit(0); + } + if(((((a24==0) && (a18==10)) && (a15==4)) && 417 < a3 )){ + error_16: exit(0); + } + if(((((a24==0) && (a18==11)) && (a15==4)) && ((115 < a3) && (306 >= a3)) )){ + error_7: exit(0); + } + if(((((a24==2) && (a18==10)) && (a15==4)) && 417 < a3 )){ + error_56: exit(0); + } + if(((((a24==2) && (a18==11)) && (a15==4)) && a3 <= 115 )){ + error_42: exit(0); + } + if(((((a24==0) && (a18==8)) && (a15==4)) && 417 < a3 )){ + error_14: exit(0); + } + if(((((a24==1) && (a18==8)) && (a15==4)) && ((115 < a3) && (306 >= a3)) )){ + error_24: exit(0); + } + if(((((a24==0) && (a18==8)) && (a15==4)) && ((115 < a3) && (306 >= a3)) )){ + error_4: exit(0); + } + if(((((a24==0) && (a18==8)) && (a15==4)) && a3 <= 115 )){ + globalError: exit(0); + } + if(((((a24==2) && (a18==12)) && (a15==4)) && ((115 < a3) && (306 >= a3)) )){ + error_48: exit(0); + } + if(((((a24==1) && (a18==12)) && (a15==4)) && a3 <= 115 )){ + error_23: exit(0); + } + if(((((a24==1) && (a18==11)) && (a15==4)) && 417 < a3 )){ + error_37: exit(0); + } + if(((((a24==0) && (a18==12)) && (a15==4)) && 417 < a3 )){ + error_18: exit(0); + } + if(((((a24==1) && (a18==10)) && (a15==4)) && a3 <= 115 )){ + error_21: exit(0); + } + if(((((a24==2) && (a18==11)) && (a15==4)) && ((115 < a3) && (306 >= a3)) )){ + error_47: exit(0); + } + if(((((a24==2) && (a18==10)) && (a15==4)) && ((306 < a3) && (417 >= a3)) )){ + error_51: exit(0); + } + if(((((a24==0) && (a18==11)) && (a15==4)) && a3 <= 115 )){ + error_2: exit(0); + } + if(((((a24==1) && (a18==10)) && (a15==4)) && ((115 < a3) && (306 >= a3)) )){ + error_26: exit(0); + } + if(((((a24==2) && (a18==9)) && (a15==4)) && ((306 < a3) && (417 >= a3)) )){ + error_50: exit(0); + } + if(((((a24==1) && (a18==12)) && (a15==4)) && ((115 < a3) && (306 >= a3)) )){ + error_28: exit(0); + } + if(((((a24==2) && (a18==10)) && (a15==4)) && a3 <= 115 )){ + error_41: exit(0); + } + if(((((a24==2) && (a18==12)) && (a15==4)) && a3 <= 115 )){ + error_43: exit(0); + } + + if((((input == 5) && (( a3 <= 115 && ((a18==9) && (a24==3))) || (( 417 < a3 && ((a18==12) && (a24==2))) || ( a3 <= 115 && ((a24==3) && (a18==8)))))) && (a15==6))){ + a3 = (((((a3 * 9)/ 10) * 1) % 299791)+ 300208); + a24 = 3; + a18 = 8; + a15 = 4; + + return 22; + } else if(((a15==5) && ((((input == 6) && ((a18==8) || (a18==9))) && (a24==3)) && 417 < a3 ))){ + a3 = (((a3 - 124953) / 5) + -249228); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a15==4) && ((a24==4) && (((a18==11) || (a18==12)) && (input == 5)))) && ((115 < a3) && (306 >= a3)) )){ + a3 = (((a3 + -235837) + 210119) + -280591); + a24 = 1; + a18 = 9; + a15 = 5; + + return 25; + } else if((((a24==4) && (((input == 3) && ((a18==9) || (a18==10))) && (a15==4))) && ((115 < a3) && (306 >= a3)) )){ + a3 = (((a3 + -125183) + 316577) * -3); + a24 = 1; + a18 = 8; + a15 = 5; + + return 21; + } else if(( a3 <= 115 && ((((input == 5) && ((a18==9) || (a18==10))) && (a15==5)) && (a24==1)))){ + a3 = ((((a3 + 0) % 95)+ 211) - 1); + a24 = 0; + a18 = 10; + a15 = 6; + + return 21; + } else if((((a18==10) && (( 417 < a3 && (input == 3)) && (a15==5))) && (a24==3))){ + a3 = ((((((a3 / 5) % 55)+ 356) * 5) % 55)- -314); + a24 = 0; + a18 = 11; + a15 = 6; + + return 26; + } else if((((((((a18==8) || (a18==9)) || (a18==10)) && (input == 2)) && (a15==4)) && (a24==4)) && ((306 < a3) && (417 >= a3)) )){ + a3 = ((((a3 * 5) / 5) * 5) - 511620); + a24 = 0; + a18 = 8; + + return -1; + } else if(((((((a18==11) || (a18==12)) && (input == 5)) && (a15==4)) && ((115 < a3) && (306 >= a3)) ) && (a24==3))){ + a3 = (((a3 * 5) * 5) + 152989); + a18 = 10; + + return 26; + } else if(((a18==12) && ((((input == 6) && a3 <= 115 ) && (a24==2)) && (a15==5)))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((( 417 < a3 && (((((a18==10) || (a18==11)) || (a18==12)) && (input == 6)) && (a24==0))) && (a15==5))){ + a3 = (((a3 + -492005) - 108001) * 1); + a18 = 8; + a15 = 4; + + return -1; + } else if(((a24==2) && (((input == 2) && (((a18==12) && ((306 < a3) && (417 >= a3)) ) || ((a18==8) && 417 < a3 ))) && (a15==6)))){ + a3 = (((a3 + -600003) + -276) + -22); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==6) && ((((((a18==8) || (a18==9)) || (a18==10)) && (input == 3)) && ((115 < a3) && (306 >= a3)) ) && (a24==1)))){ + a3 = ((((((a3 % 55)+ 342) * 9)/ 10) + -61412) + 61448); + a24 = 4; + a18 = 10; + a15 = 4; + + return 25; + } else if((((a24==0) && ((a15==6) && ((input == 2) && ((a18==9) || (a18==10))))) && ((115 < a3) && (306 >= a3)) )){ + a3 = ((((a3 + 28289) * 10)/ 9) - -559528); + a18 = 10; + + return 26; + } else if(( ((306 < a3) && (417 >= a3)) && (((a15==5) && ((input == 2) && (a18==12))) && (a24==3)))){ + + return 22; + } else if(((a15==5) && ((a24==2) && ( ((306 < a3) && (417 >= a3)) && (((a18==9) || (a18==10)) && (input == 5)))))){ + a3 = (((a3 + 507676) - -44123) / -5); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a24==1) && (((input == 4) && ((((a18==11) && ((115 < a3) && (306 >= a3)) ) || ((a18==12) && ((115 < a3) && (306 >= a3)) )) || ((a18==8) && ((306 < a3) && (417 >= a3)) ))) && (a15==5)))){ + a3 = (((a3 * 5) * 5) - 257753); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a24==1) && (( a3 <= 115 && (input == 6)) && (a15==5))) && (a18==11))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a18==10) && ( ((306 < a3) && (417 >= a3)) && ((a15==6) && ((a24==0) && (input == 1)))))){ + a3 = ((((a3 - 489685) - -489506) - -522886) + -522861); + a24 = 4; + a18 = 11; + a15 = 4; + + return 21; + } else if(((a24==3) && ((a15==6) && (((input == 4) && ((a18==10) || (a18==11))) && 417 < a3 )))){ + a3 = (((a3 - 116826) - 483087) / 5); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((((( ((306 < a3) && (417 >= a3)) && (a18==12)) || ((a18==8) && 417 < a3 )) || ( 417 < a3 && (a18==9))) && (input == 2)) && (a24==3)) && (a15==6))){ + a3 = (((((a3 - 473859) % 55)- -361) / 5) + 288); + a24 = 2; + a18 = 11; + a15 = 4; + + return -1; + } else if(((a24==4) && ((a15==4) && ( ((306 < a3) && (417 >= a3)) && (((a18==10) || ((a18==8) || (a18==9))) && (input == 1)))))){ + a3 = ((((a3 * 4)/ 10) + -559800) - -559927); + a24 = 1; + a18 = 12; + a15 = 5; + + return 22; + } else if(((a15==4) && (( ((306 < a3) && (417 >= a3)) && ((input == 1) && ((a18==10) || ((a18==8) || (a18==9))))) && (a24==3)))){ + a3 = ((((a3 * 4)/ 10) - -595933) + -595866); + a24 = 4; + a18 = 12; + + return 21; + } else if(((a24==2) && ((a15==6) && ( 417 < a3 && ((((a18==9) || (a18==10)) || (a18==11)) && (input == 2)))))){ + a3 = ((((a3 - 0) - 576583) + -1411) - 22284); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((((input == 6) && (((a18==9) || (a18==10)) || (a18==11))) && (a24==2)) && (a15==6)) && ((306 < a3) && (417 >= a3)) )){ + a3 = (((a3 - 189557) - 119436) * 1); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a15==6) && ((a24==0) && (((a18==11) || (a18==12)) && (input == 1)))) && ((306 < a3) && (417 >= a3)) )){ + a3 = (((a3 / -5) + -114521) + -348481); + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==5) && ((a18==12) && (( a3 <= 115 && (input == 1)) && (a24==2))))){ + a3 = ((((((a3 * 9)/ 10) % 95)- -210) / 5) - -204); + a24 = 1; + a18 = 11; + a15 = 4; + + return -1; + } else if((((a24==3) && ((input == 4) && (((a18==9) && 417 < a3 ) || (( ((306 < a3) && (417 >= a3)) && (a18==12)) || ( 417 < a3 && (a18==8)))))) && (a15==6))){ + a3 = ((((((a3 % 55)- -309) - 2) * 5) % 55)+ 348); + a24 = 0; + a18 = 11; + a15 = 4; + + return -1; + } else if(((((a24==1) && ((input == 1) && (a18==8))) && a3 <= 115 ) && (a15==5))){ + a3 = (((a3 / 5) - -593842) * 1); + a24 = 4; + a18 = 10; + + return 25; + } else if(((a15==4) && ((((((a18==12) && (a24==3)) && 417 < a3 ) || (((a24==4) && (a18==8)) && a3 <= 115 )) || (((a24==4) && (a18==9)) && a3 <= 115 )) && (input == 5)))){ + a3 = (((((a3 * 9)/ 10) + -18815) / 5) - 203034); + a24 = 0; + a18 = 8; + + return -1; + } else if((((a24==0) && ((a15==6) && ((input == 3) && ((a18==11) || (a18==12))))) && ((306 < a3) && (417 >= a3)) )){ + a3 = (((a3 + 245225) + -351147) + -288530); + a24 = 1; + a18 = 12; + a15 = 5; + + return 26; + } else if(( ((115 < a3) && (306 >= a3)) && ((a24==0) && ((a15==6) && ((input == 1) && ((a18==9) || (a18==10))))))){ + + a24 = 4; + a18 = 11; + a15 = 4; + + return 22; + } else if(((((a24==2) && ((a15==5) && (input == 2))) && a3 <= 115 ) && (a18==9))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a24==0) && (((a15==6) && (((a18==9) || (a18==10)) && (input == 5))) && ((115 < a3) && (306 >= a3)) ))){ + a3 = (((a3 - 189054) - 142438) * 1); + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==4) && (((a24==4) && (((a18==9) || (a18==10)) && (input == 4))) && 417 < a3 ))){ + a3 = (((a3 - 600257) + 156422) - 156169); + a24 = 0; + a18 = 8; + + return -1; + } else if(((a15==5) && ( 417 < a3 && ((a24==1) && ((input == 6) && (a18==11)))))){ + a3 = (((a3 + 0) - 600399) * 1); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((((( 417 < a3 && ((a24==3) && (a18==12))) || (((a24==4) && (a18==8)) && a3 <= 115 )) || ( a3 <= 115 && ((a24==4) && (a18==9)))) && (input == 2)) && (a15==5))){ + a3 = ((((a3 % 300057)- 299941) + 0) * 1); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==5) && (((((a18==10) || (a18==11)) && (input == 3)) && (a24==3)) && a3 <= 115 ))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((( 417 < a3 && ((a15==5) && ((a18==11) && (a24==4)))) || ( 417 < a3 && ((a15==5) && ((a24==4) && (a18==12))))) || ( a3 <= 115 && ((a15==6) && ((a18==8) && (a24==0))))) && (input == 1))){ + a3 = ((((((a3 * 9)/ 10) % 55)- -362) + -271326) - -271325); + a24 = 3; + a18 = 10; + a15 = 6; + + return 22; + } else if(((a15==6) && ((( a3 <= 115 && ((a18==9) && (a24==1))) || (( 417 < a3 && ((a18==12) && (a24==0))) || ( a3 <= 115 && ((a18==8) && (a24==1))))) && (input == 2)))){ + a3 = (((((a3 % 299791)+ 300208) + -511595) * 1) - -511597); + a24 = 0; + a18 = 8; + + return -1; + } else if((((a24==4) && ((( 417 < a3 && (a18==8)) || (( ((306 < a3) && (417 >= a3)) && (a18==11)) || ( ((306 < a3) && (417 >= a3)) && (a18==12)))) && (input == 2))) && (a15==4))){ + a3 = ((((a3 - 246812) % 299791)- -300208) + 1); + a24 = 1; + a18 = 9; + a15 = 5; + + return 26; + } else if(((a18==11) && (((a24==1) && ((input == 3) && (a15==6))) && ((306 < a3) && (417 >= a3)) ))){ + a3 = ((((a3 - 175271) + 109800) * 10)/ 9); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(( ((306 < a3) && (417 >= a3)) && ((a15==5) && ((((a18==9) || (a18==10)) && (input == 5)) && (a24==1))))){ + + a18 = 10; + a15 = 6; + + return 22; + } else if(((((((a18==8) && 417 < a3 ) || (( ((306 < a3) && (417 >= a3)) && (a18==11)) || ((a18==12) && ((306 < a3) && (417 >= a3)) ))) && (input == 3)) && (a24==3)) && (a15==4))){ + a3 = ((((a3 - 0) + -210150) / 5) + 219839); + a24 = 4; + a18 = 11; + + return 26; + } else if(( ((306 < a3) && (417 >= a3)) && (((((a18==11) || (a18==12)) && (input == 3)) && (a24==0)) && (a15==5)))){ + a3 = (((a3 / -5) + -537874) / 5); + a24 = 4; + a18 = 10; + + return 21; + } else if((( a3 <= 115 && (((input == 2) && (a18==12)) && (a24==2))) && (a15==6))){ + + a24 = 1; + + return -1; + } else if(( ((115 < a3) && (306 >= a3)) && (((a15==6) && ((input == 1) && (a24==0))) && (a18==11)))){ + a3 = (((((a3 + 433729) - -163417) * 1) % 55)+ 344); + a24 = 3; + a18 = 8; + + return 25; + } else if(((a24==3) && ((a15==4) && (((input == 4) && ((a18==11) || (a18==12))) && ((115 < a3) && (306 >= a3)) )))){ + a3 = ((((a3 / -5) * 5) * 10)/ 9); + a24 = 0; + a18 = 8; + + return -1; + } else if(((((((a18==9) || (a18==10)) && (input == 5)) && 417 < a3 ) && (a15==5)) && (a24==1))){ + a3 = (((a3 / -5) * 4) - 112270); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a15==6) && (((input == 6) && (((a18==10) || (a18==11)) || (a18==12))) && a3 <= 115 )) && (a24==1))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a24==3) && (((((a18==9) || (a18==10)) || (a18==11)) && (input == 4)) && 417 < a3 )) && (a15==4))){ + a3 = ((((a3 - 600348) * 1) - -551189) + -550883); + a24 = 0; + a18 = 8; + + return -1; + } else if(((((a24==1) && (((a18==11) || (a18==12)) && (input == 4))) && (a15==6)) && ((115 < a3) && (306 >= a3)) )){ + a3 = ((((a3 - 106664) * 10)/ 9) * 5); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==5) && (((a24==2) && ((input == 2) && (a18==12))) && a3 <= 115 ))){ + a3 = ((((a3 + 311999) / 5) / 5) - -587471); + a24 = 3; + a18 = 10; + a15 = 6; + + return 22; + } else if((( ((306 < a3) && (417 >= a3)) && ((((a18==9) || (a18==10)) && (input == 4)) && (a24==2))) && (a15==5))){ + a3 = ((((a3 * 5) * 5) * 5) + -170401); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==4) && ((((((a18==12) && (a24==3)) && 417 < a3 ) || ( a3 <= 115 && ((a24==4) && (a18==8)))) || (((a24==4) && (a18==9)) && a3 <= 115 )) && (input == 2)))){ + a3 = ((((a3 % 300057)- 299941) + -3) + 0); + a24 = 0; + a18 = 10; + a15 = 5; + + return 25; + } else if((( ((115 < a3) && (306 >= a3)) && (((input == 6) && ((a18==10) || ((a18==8) || (a18==9)))) && (a24==2))) && (a15==6))){ + a3 = (((a3 / -5) * 5) * 5); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((( ((115 < a3) && (306 >= a3)) && ((a24==0) && ((a18==12) && (input == 4)))) && (a15==5))){ + a3 = ((((a3 + -350374) * 1) * 1) + 630246); + a24 = 3; + a18 = 10; + + return 21; + } else if((((((a18==8) && (input == 1)) && ((115 < a3) && (306 >= a3)) ) && (a24==4)) && (a15==4))){ + a3 = ((((a3 - -132427) * 10)/ 9) * 4); + a24 = 0; + a18 = 9; + a15 = 5; + + return 25; + } else if(((a15==4) && ( ((115 < a3) && (306 >= a3)) && ((a24==3) && ((input == 2) && ((a18==8) || (a18==9))))))){ + a3 = (((a3 + -451078) * 1) + -6890); + a24 = 0; + a18 = 8; + + return -1; + } else if(((a15==6) && ((((input == 4) && ((a18==9) || (a18==10))) && (a24==0)) && ((115 < a3) && (306 >= a3)) ))){ + a3 = (((a3 - 570855) + 51748) / 5); + a24 = 2; + a18 = 10; + + return 22; + } else if(( a3 <= 115 && (((a15==5) && ((input == 4) && ((a18==10) || (a18==11)))) && (a24==0)))){ + + a18 = 8; + a15 = 4; + + return -1; + } else if((((((((a18==11) && (a24==1)) && 417 < a3 ) || (((a24==1) && (a18==12)) && 417 < a3 )) || (((a18==8) && (a24==2)) && a3 <= 115 )) && (input == 3)) && (a15==6))){ + a3 = (((((a3 % 300057)- 299941) * 1) - -312324) + -312324); + a24 = 1; + a18 = 8; + + return -1; + } else if((((((a18==12) && (input == 2)) && (a15==6)) && ((306 < a3) && (417 >= a3)) ) && (a24==1))){ + + a18 = 8; + + return -1; + } else if(((a24==4) && ((((input == 2) && ((a18==9) || (a18==10))) && ((115 < a3) && (306 >= a3)) ) && (a15==5)))){ + a3 = (((a3 / 5) + -247996) + -125990); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((((((a18==12) && (a24==2)) && 417 < a3 ) || ( a3 <= 115 && ((a18==8) && (a24==3)))) || (((a18==9) && (a24==3)) && a3 <= 115 )) && (input == 3)) && (a15==6))){ + a3 = ((((a3 % 95)- -211) - -90755) - 90754); + a24 = 2; + a18 = 9; + + return -1; + } else if(((a15==4) && (((((a24==4) && (a18==9)) && a3 <= 115 ) || (( 417 < a3 && ((a24==3) && (a18==12))) || ( a3 <= 115 && ((a24==4) && (a18==8))))) && (input == 6)))){ + a3 = ((((a3 % 300057)- 299941) - 3) + 0); + a24 = 0; + a18 = 8; + + return -1; + } else if((((a15==6) && (((input == 5) && ((a18==12) || ((a18==10) || (a18==11)))) && (a24==3))) && a3 <= 115 )){ + + a18 = 10; + + return 25; + } else if(((a24==4) && ( a3 <= 115 && ((a18==10) && ((input == 4) && (a15==5)))))){ + + a24 = 2; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==6) && ((a18==11) && (((a24==1) && (input == 5)) && ((306 < a3) && (417 >= a3)) )))){ + + a24 = 0; + a18 = 10; + + return -1; + } else if((((((((a24==3) && (a18==12)) && 417 < a3 ) || (((a24==4) && (a18==8)) && a3 <= 115 )) || (((a24==4) && (a18==9)) && a3 <= 115 )) && (input == 5)) && (a15==5))){ + a3 = ((((((a3 * 9)/ 10) % 55)+ 361) - 5570) + 5570); + a24 = 2; + a18 = 8; + a15 = 6; + + return 26; + } else if((((a24==2) && (((input == 3) && (a18==9)) && (a15==5))) && a3 <= 115 )){ + a3 = ((((((a3 % 55)- -361) - -1) * 5) % 55)- -321); + a24 = 3; + a18 = 8; + a15 = 6; + + return 22; + } else if(((( a3 <= 115 && ((((a18==10) || (a18==11)) || (a18==12)) && (input == 2))) && (a15==6)) && (a24==3))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(( 417 < a3 && ((((input == 4) && ((a18==12) || ((a18==10) || (a18==11)))) && (a15==5)) && (a24==0)))){ + a3 = ((((a3 - 546051) - -353166) + -225492) - 181644); + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==5) && (( ((115 < a3) && (306 >= a3)) && (((a18==11) || (a18==12)) && (input == 6))) && (a24==4)))){ + a3 = (((a3 + -267207) * 2) / 5); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((((input == 6) && ((a18==11) || (a18==12))) && ((115 < a3) && (306 >= a3)) ) && (a15==4)) && (a24==3))){ + a3 = (((a3 - 233538) + 304894) * -5); + a24 = 4; + a18 = 10; + + return 25; + } else if(((a15==4) && (((a24==3) && ((input == 4) && ((115 < a3) && (306 >= a3)) )) && (a18==10)))){ + a3 = ((((a3 % 55)- -310) - 182118) - -182144); + a18 = 12; + + return 22; + } else if(((a15==5) && (((a24==3) && (((a18==8) || (a18==9)) && (input == 4))) && ((115 < a3) && (306 >= a3)) ))){ + a3 = (((a3 / -5) * 5) + -483134); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==6) && (((((a18==11) || ((a18==9) || (a18==10))) && (input == 2)) && 417 < a3 ) && (a24==0)))){ + + a18 = 9; + + return 21; + } else if((( 417 < a3 && ((a24==2) && ((input == 6) && (((a18==9) || (a18==10)) || (a18==11))))) && (a15==6))){ + a3 = ((((a3 - 92069) / 5) * 5) + -508090); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a24==1) && ((a15==6) && ( ((306 < a3) && (417 >= a3)) && (input == 5)))) && (a18==10))){ + + a24 = 0; + + return -1; + } else if(((((a15==6) && (((a18==10) || ((a18==8) || (a18==9))) && (input == 5))) && (a24==3)) && ((115 < a3) && (306 >= a3)) )){ + a3 = ((((a3 + -86655) + -241663) * 10)/ 9); + a24 = 0; + a18 = 10; + a15 = 4; + + return -1; + } else if((( 417 < a3 && ((a24==2) && (((a18==10) || (a18==11)) && (input == 1)))) && (a15==5))){ + a3 = (((((a3 % 55)+ 335) + 127162) - 377530) - -250379); + a24 = 0; + a18 = 10; + a15 = 6; + + return 25; + } else if(((((((a18==9) && 417 < a3 ) || (((a18==12) && ((306 < a3) && (417 >= a3)) ) || ((a18==8) && 417 < a3 ))) && (input == 6)) && (a24==3)) && (a15==6))){ + a3 = ((((a3 % 299791)+ 418) - -254727) + 15511); + a24 = 1; + a18 = 12; + a15 = 4; + + return -1; + } else if((((a18==11) && ( ((115 < a3) && (306 >= a3)) && ((a15==6) && (input == 2)))) && (a24==0))){ + a3 = (((((a3 % 55)+ 330) - -551622) / 5) + -110076); + return 21; + } else if((((a15==5) && ((input == 2) && (( ((306 < a3) && (417 >= a3)) && (a18==8)) || (( ((115 < a3) && (306 >= a3)) && (a18==11)) || ( ((115 < a3) && (306 >= a3)) && (a18==12)))))) && (a24==2))){ + a3 = (((a3 * 5) / 5) / 5); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a15==5) && ( a3 <= 115 && (((a18==10) || (a18==11)) && (input == 1)))) && (a24==0))){ + + a18 = 8; + a15 = 4; + + return -1; + } else if(( ((306 < a3) && (417 >= a3)) && (((a15==6) && ((input == 6) && (a24==0))) && (a18==10)))){ + a3 = ((((a3 * 5) * -5) * 10)/ 9); + a18 = 8; + a15 = 4; + + return -1; + } else if((((a15==6) && ((a24==3) && ((input == 4) && (((a18==8) || (a18==9)) || (a18==10))))) && ((115 < a3) && (306 >= a3)) )){ + a3 = ((((a3 / -5) + 391912) / 5) + -246982); + a18 = 10; + + return -1; + } else if((((a24==1) && ( ((306 < a3) && (417 >= a3)) && ((a15==6) && (input == 4)))) && (a18==10))){ + a3 = (((a3 - 568756) - -39065) + -62303); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a24==1) && ( ((115 < a3) && (306 >= a3)) && ((input == 2) && ((a18==11) || (a18==12))))) && (a15==6))){ + + a18 = 11; + + return 22; + } else if(( ((306 < a3) && (417 >= a3)) && ((a15==5) && ((a24==1) && ((input == 2) && ((a18==9) || (a18==10))))))){ + + a18 = 11; + a15 = 6; + + return 25; + } else if(((((input == 2) && (( ((306 < a3) && (417 >= a3)) && (a18==9)) || (( ((115 < a3) && (306 >= a3)) && (a18==12)) || ((a18==8) && ((306 < a3) && (417 >= a3)) )))) && (a15==6)) && (a24==0))){ + a3 = (((((a3 * 5) % 55)- -358) + 428422) + -428464); + a24 = 2; + a18 = 10; + + return 25; + } else if((((a15==6) && ( 417 < a3 && ((input == 2) && ((a18==10) || (a18==11))))) && (a24==3))){ + a3 = ((((a3 * 9)/ 10) * -1) + -3567); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==6) && ((((((a18==8) || (a18==9)) || (a18==10)) && (input == 4)) && 417 < a3 ) && (a24==1)))){ + a3 = (((((a3 - 0) % 95)+ 132) * 9)/ 10); + a24 = 0; + a18 = 12; + a15 = 4; + + return -1; + } else if((( ((306 < a3) && (417 >= a3)) && ((a24==4) && (((a18==10) || ((a18==8) || (a18==9))) && (input == 4)))) && (a15==5))){ + + a24 = 1; + a18 = 10; + a15 = 6; + + return 25; + } else if(( 417 < a3 && ((a18==11) && (((input == 2) && (a24==3)) && (a15==5))))){ + a3 = (((a3 / 5) - 194334) / 5); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a24==2) && (((((a18==10) || (a18==11)) && (input == 2)) && a3 <= 115 ) && (a15==6)))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a24==0) && (((input == 6) && ((a18==11) || (a18==12))) && ((306 < a3) && (417 >= a3)) )) && (a15==6))){ + a3 = (((a3 - 482897) - 10815) - 90332); + a18 = 8; + a15 = 4; + + return -1; + } else if(( a3 <= 115 && (((a15==5) && ((a24==2) && (input == 1))) && (a18==9)))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a24==2) && ( ((115 < a3) && (306 >= a3)) && ((a15==6) && ((((a18==8) || (a18==9)) || (a18==10)) && (input == 3)))))){ + a3 = (((((a3 + -167391) % 55)- -414) * 9)/ 10); + a24 = 1; + a18 = 12; + + return -1; + } else if(((( ((115 < a3) && (306 >= a3)) && ((input == 3) && (a24==0))) && (a15==5)) && (a18==12))){ + a3 = (((a3 - -107225) * 5) - 989175); + a18 = 8; + a15 = 4; + + return -1; + } else if(( ((306 < a3) && (417 >= a3)) && ((a18==10) && (((a24==1) && (input == 6)) && (a15==6))))){ + a3 = ((((a3 - 10913) * 5) * 10)/ 9); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((( 417 < a3 && (((a24==2) && (input == 2)) && (a18==9))) && (a15==5))){ + a3 = ((((((a3 - 0) * 9)/ 10) / 5) % 95)+ 183); + a24 = 3; + a15 = 4; + + return 26; + } else if(((a24==1) && ((a15==6) && ((a18==10) && ( ((306 < a3) && (417 >= a3)) && (input == 3)))))){ + a3 = (((a3 * 5) * 5) * 5); + a24 = 4; + a18 = 8; + a15 = 4; + + return -1; + } else if((((input == 1) && (((((a24==2) && (a18==12)) && 417 < a3 ) || (((a18==8) && (a24==3)) && a3 <= 115 )) || (((a24==3) && (a18==9)) && a3 <= 115 ))) && (a15==5))){ + a3 = ((((a3 + 0) % 300057)+ -299941) - 1); + a24 = 3; + a18 = 11; + a15 = 4; + + return 25; + } else if(((a24==1) && ((a15==6) && ( ((306 < a3) && (417 >= a3)) && ((a18==12) && (input == 3)))))){ + + a18 = 10; + a15 = 5; + + return 22; + } else if(((((((a18==8) || (a18==9)) && (input == 3)) && ((115 < a3) && (306 >= a3)) ) && (a24==3)) && (a15==5))){ + + a24 = 1; + a18 = 12; + a15 = 6; + + return 22; + } else if((( 417 < a3 && (((input == 1) && ((a18==10) || ((a18==8) || (a18==9)))) && (a24==1))) && (a15==6))){ + a3 = ((((a3 + -202771) % 55)+ 362) + -1); + a24 = 0; + a18 = 10; + + return -1; + } else if((( a3 <= 115 && ((a24==2) && (((a18==10) || (a18==11)) && (input == 6)))) && (a15==5))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(( ((115 < a3) && (306 >= a3)) && ((a24==1) && ((a15==5) && ((input == 1) && ((a18==9) || (a18==10))))))){ + + a18 = 8; + a15 = 6; + + return 21; + } else if(( a3 <= 115 && ((a15==6) && ((a24==1) && ((((a18==10) || (a18==11)) || (a18==12)) && (input == 4)))))){ + a3 = ((((((a3 % 55)- -362) + -62676) * 5) % 55)+ 372); + a24 = 0; + a18 = 11; + + return -1; + } else if((( ((306 < a3) && (417 >= a3)) && ((a15==6) && ((input == 6) && (((a18==9) || (a18==10)) || (a18==11))))) && (a24==3))){ + a3 = (((a3 * 5) * 5) + -452441); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==6) && ((((((a18==12) && (a24==2)) && 417 < a3 ) || (((a18==8) && (a24==3)) && a3 <= 115 )) || ( a3 <= 115 && ((a18==9) && (a24==3)))) && (input == 1)))){ + a3 = ((((a3 % 55)- -362) - -75998) + -75998); + a24 = 0; + a18 = 10; + + return -1; + } else if(((((((a18==9) || (a18==10)) && (input == 2)) && (a15==5)) && (a24==2)) && ((306 < a3) && (417 >= a3)) )){ + + a24 = 0; + a18 = 11; + a15 = 6; + + return 22; + } else if((( ((306 < a3) && (417 >= a3)) && (((((a18==8) || (a18==9)) || (a18==10)) && (input == 4)) && (a24==0))) && (a15==5))){ + a3 = (((a3 * 5) / -5) - 492008); + a18 = 8; + a15 = 4; + + return -1; + } else if((((a15==5) && ( ((115 < a3) && (306 >= a3)) && ((input == 2) && ((a18==9) || (a18==10))))) && (a24==2))){ + a3 = ((((a3 % 55)+ 358) - -38100) + -38118); + a24 = 0; + a18 = 11; + a15 = 6; + + return 22; + } else if(((a24==0) && (((input == 5) && ((( ((115 < a3) && (306 >= a3)) && (a18==12)) || ( ((306 < a3) && (417 >= a3)) && (a18==8))) || ((a18==9) && ((306 < a3) && (417 >= a3)) ))) && (a15==6)))){ + a3 = (((a3 - 426555) * 1) - 85224); + a18 = 8; + a15 = 4; + + return -1; + } else if(( 417 < a3 && (((a24==0) && ((((a18==10) || (a18==11)) || (a18==12)) && (input == 3))) && (a15==5)))){ + a3 = ((((a3 % 55)- -349) + 238447) + -238484); + a24 = 4; + a18 = 8; + + return 26; + } else if((((a24==3) && (((input == 6) && (a18==9)) && a3 <= 115 )) && (a15==4))){ + + a24 = 0; + a18 = 8; + + return -1; + } else if(((((a15==5) && ((a18==11) && (input == 5))) && (a24==3)) && ((306 < a3) && (417 >= a3)) )){ + + a24 = 0; + a18 = 12; + a15 = 6; + + return 25; + } else if(((((((a18==9) || (a18==10)) && (input == 6)) && (a24==1)) && (a15==5)) && ((115 < a3) && (306 >= a3)) )){ + a3 = (((a3 / 5) + -86788) / 5); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(( 417 < a3 && ((a24==4) && ((a15==4) && ((input == 2) && ((a18==9) || (a18==10))))))){ + + a24 = 1; + a18 = 12; + a15 = 5; + + return 22; + } else if((((((a24==3) && (input == 1)) && (a15==4)) && ((115 < a3) && (306 >= a3)) ) && (a18==10))){ + a3 = (((a3 / -5) - 495685) + -6188); + a24 = 0; + a18 = 8; + + return -1; + } else if((((a24==4) && ((a15==4) && ((input == 4) && ((a18==11) || (a18==12))))) && 417 < a3 )){ + a3 = (((a3 - 600119) + -213) + -49); + a24 = 0; + a18 = 8; + + return -1; + } else if(((a24==0) && ((((input == 5) && ((a18==11) || ((a18==9) || (a18==10)))) && (a15==5)) && ((115 < a3) && (306 >= a3)) ))){ + a3 = (((((a3 + 74903) % 55)- -322) + 86378) - 86375); + a24 = 3; + a18 = 11; + + return 26; + } else if((((( 417 < a3 && ((a24==1) && (a18==12))) || ( a3 <= 115 && ((a24==2) && (a18==8)))) && (input == 4)) && (a15==5))){ + a3 = ((((a3 % 300057)+ -299941) * 1) * 1); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a15==5) && ( ((115 < a3) && (306 >= a3)) && ((input == 6) && ((a18==9) || (a18==10))))) && (a24==2))){ + a3 = (((a3 - 499587) - -528266) + 565008); + a24 = 1; + a18 = 8; + a15 = 4; + + return -1; + } else if(( a3 <= 115 && (((a15==5) && ((a24==4) && (input == 5))) && (a18==10)))){ + + a24 = 3; + a18 = 8; + a15 = 6; + + return 26; + } else if(((a15==6) && (((((a18==9) && (a24==3)) && a3 <= 115 ) || ((((a24==2) && (a18==12)) && 417 < a3 ) || (((a18==8) && (a24==3)) && a3 <= 115 ))) && (input == 6)))){ + a3 = (((((a3 * 9)/ 10) + -18293) % 300057)- 299941); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a24==3) && (( ((115 < a3) && (306 >= a3)) && ((input == 3) && ((a18==11) || (a18==12)))) && (a15==4)))){ + a3 = ((((a3 * 5) - -136601) * 4) * -1); + a24 = 4; + a18 = 11; + + return 22; + } else if(((((a24==3) && ((((a18==10) || (a18==11)) || (a18==12)) && (input == 6))) && a3 <= 115 ) && (a15==4))){ + + a24 = 0; + a18 = 8; + + return -1; + } else if(((a15==5) && ( 417 < a3 && ((a18==11) && ((a24==3) && (input == 3)))))){ + a3 = (((((a3 * 9)/ 10) + 16316) % 95)- -140); + a24 = 1; + a15 = 6; + + return 25; + } else if(((a24==2) && ( ((306 < a3) && (417 >= a3)) && ((a15==6) && ((input == 4) && ((a18==11) || ((a18==9) || (a18==10)))))))){ + a3 = (((a3 * -5) - -422540) + -755759); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((input == 3) && (( a3 <= 115 && (((a18==8) && (a24==0)) && (a15==6))) || (( 417 < a3 && (((a18==11) && (a24==4)) && (a15==5))) || (((a15==5) && ((a24==4) && (a18==12))) && 417 < a3 ))))){ + a3 = (((((a3 % 300057)- 299941) + 483000) / 5) + -208875); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(( ((306 < a3) && (417 >= a3)) && ((a24==4) && ((((a18==10) || ((a18==8) || (a18==9))) && (input == 5)) && (a15==5))))){ + a3 = (((((a3 - -34125) * 10)/ 9) + -72306) - -296189); + a24 = 0; + a18 = 11; + a15 = 6; + + return 25; + } else if(((a24==4) && ((a15==4) && ( 417 < a3 && ((input == 2) && ((a18==11) || (a18==12))))))){ + a3 = (((a3 - 600352) - 17) + -33); + a24 = 0; + a18 = 8; + + return -1; + } else if(((a24==1) && ((((input == 2) && (((a18==8) || (a18==9)) || (a18==10))) && (a15==6)) && 417 < a3 ))){ + a3 = ((((((a3 * 9)/ 10) % 95)- -158) * 9)/ 10); + a24 = 0; + a18 = 12; + + return -1; + } else if((( 417 < a3 && ((a15==5) && ((input == 2) && (((a18==10) || (a18==11)) || (a18==12))))) && (a24==0))){ + a3 = (((a3 + -599991) + -376) / 5); + a18 = 8; + a15 = 4; + + return -1; + } else if((((input == 4) && (( a3 <= 115 && ((a24==4) && (a18==9))) || (( 417 < a3 && ((a24==3) && (a18==12))) || ( a3 <= 115 && ((a24==4) && (a18==8)))))) && (a15==5))){ + a3 = (((((a3 % 95)- -211) - -1) + -459913) - -459911); + a24 = 0; + a18 = 12; + a15 = 6; + + return 22; + } else if(((a15==6) && ((a24==1) && ( ((115 < a3) && (306 >= a3)) && ((input == 4) && ((a18==10) || ((a18==8) || (a18==9)))))))){ + a3 = ((((a3 + -24074) / 5) * 10)/ 9); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((((a24==1) && ((a15==5) && (input == 3))) && 417 < a3 ) && (a18==11))){ + + a24 = 2; + a18 = 10; + a15 = 6; + + return 22; + } else if((( ((115 < a3) && (306 >= a3)) && ((a15==6) && ((input == 6) && (((a18==8) || (a18==9)) || (a18==10))))) && (a24==1))){ + a3 = ((((a3 / 5) - 413364) * 10)/ 9); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((( a3 <= 115 && (((a18==8) && (input == 5)) && (a15==5))) && (a24==0))){ + a3 = ((((a3 % 95)+ 210) / 5) - -168); + a24 = 2; + a18 = 11; + + return 25; + } else if(((a15==5) && ( 417 < a3 && ((((a18==9) || (a18==10)) && (input == 6)) && (a24==1))))){ + a3 = (((a3 / 5) - 368976) + -84976); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((((a24==0) && ((input == 3) && (((a18==9) || (a18==10)) || (a18==11)))) && (a15==6)) && 417 < a3 )){ + a3 = ((((a3 % 95)+ 185) + -557016) + 556980); + a24 = 1; + a18 = 10; + a15 = 5; + + return -1; + } else if(((a18==9) && ((((a15==5) && (input == 5)) && 417 < a3 ) && (a24==2)))){ + a3 = ((((a3 / 5) - -185556) + 149195) - 583824); + a24 = 1; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==6) && ( 417 < a3 && ((a24==0) && ((((a18==9) || (a18==10)) || (a18==11)) && (input == 6)))))){ + a3 = ((((a3 / -5) * 10)/ 9) * 4); + a18 = 8; + a15 = 4; + + return -1; + } else if((( a3 <= 115 && ((a15==4) && ((input == 3) && (((a18==10) || (a18==11)) || (a18==12))))) && (a24==3))){ + + a24 = 0; + a18 = 8; + + return -1; + } else if((( a3 <= 115 && ((a15==4) && ((input == 2) && ((a18==12) || ((a18==10) || (a18==11)))))) && (a24==3))){ + + a24 = 0; + a18 = 8; + + return -1; + } else if((((((input == 6) && ((a18==9) || (a18==10))) && (a15==4)) && (a24==4)) && 417 < a3 )){ + a3 = (((a3 - 497960) / 5) - 129660); + a24 = 0; + a18 = 8; + + return -1; + } else if(((a15==5) && (((input == 4) && ((((a18==11) && ((115 < a3) && (306 >= a3)) ) || ((a18==12) && ((115 < a3) && (306 >= a3)) )) || ((a18==8) && ((306 < a3) && (417 >= a3)) ))) && (a24==2)))){ + a3 = ((((a3 + -453075) * 1) - -496454) + -621321); + a24 = 3; + a18 = 10; + a15 = 6; + + return 22; + } else if((((((input == 5) && (a18==12)) && (a24==1)) && ((306 < a3) && (417 >= a3)) ) && (a15==6))){ + a3 = (((a3 + 559405) / 5) - 169813); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((( a3 <= 115 && ((input == 5) && (a18==9))) && (a24==2)) && (a15==5))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((input == 2) && (((((a15==5) && ((a18==11) && (a24==4))) && 417 < a3 ) || (((a15==5) && ((a18==12) && (a24==4))) && 417 < a3 )) || ( a3 <= 115 && (((a18==8) && (a24==0)) && (a15==6)))))){ + a3 = ((((a3 % 299791)- -300208) * 1) + 1); + a24 = 3; + a18 = 10; + a15 = 6; + + return 26; + } else if(((a18==12) && ((a15==5) && (( ((306 < a3) && (417 >= a3)) && (input == 6)) && (a24==3))))){ + a3 = ((((((a3 * 10)/ 14) / 5) / 5) * 149)/ 10); + a24 = 0; + a18 = 9; + + return 21; + } else if((((((((a24==4) && (a18==11)) && (a15==5)) && 417 < a3 ) || ( 417 < a3 && ((a15==5) && ((a18==12) && (a24==4))))) || ( a3 <= 115 && ((a15==6) && ((a24==0) && (a18==8))))) && (input == 5))){ + a3 = (((((a3 % 55)+ 361) / 5) + -210824) + 211148); + a24 = 1; + a18 = 12; + a15 = 6; + + return 21; + } else if(((a24==3) && ((a15==5) && (((input == 3) && ((a18==12) || ((a18==10) || (a18==11)))) && ((115 < a3) && (306 >= a3)) )))){ + a3 = ((((((a3 % 55)+ 307) * 10)/ 9) - 502807) - -502809); + a24 = 2; + a18 = 8; + a15 = 6; + + return 22; + } else if((((a24==3) && ((a15==6) && ((input == 4) && (((a18==10) || (a18==11)) || (a18==12))))) && a3 <= 115 )){ + a3 = ((((a3 % 299791)+ 300208) - 0) - 0); + a24 = 1; + a18 = 12; + a15 = 5; + + return 22; + } else if(((a18==12) && (((a15==5) && ((input == 1) && (a24==3))) && ((306 < a3) && (417 >= a3)) ))){ + a3 = (((a3 + -464933) + -121992) - -414088); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a24==3) && ((a15==4) && ((input == 6) && ((a18==8) || (a18==9))))) && ((115 < a3) && (306 >= a3)) )){ + a3 = (((a3 / 5) / -5) * 5); + a24 = 0; + a18 = 8; + + return -1; + } else if(((a24==4) && (((((a18==11) || (a18==12)) && (input == 4)) && (a15==4)) && ((115 < a3) && (306 >= a3)) ))){ + a3 = (((a3 * 5) - 543917) / 5); + a24 = 1; + a18 = 12; + a15 = 5; + + return 26; + } else if(( ((115 < a3) && (306 >= a3)) && (((a15==6) && (((a18==10) || ((a18==8) || (a18==9))) && (input == 5))) && (a24==2)))){ + a3 = (((a3 * 5) + -120433) - 423433); + a18 = 9; + + return -1; + } else if(((((((a18==8) && 417 < a3 ) || (( ((306 < a3) && (417 >= a3)) && (a18==11)) || ((a18==12) && ((306 < a3) && (417 >= a3)) ))) && (input == 1)) && (a15==4)) && (a24==4))){ + a3 = (((((a3 / 5) / 5) + -353728) * -1)/ 10); + a24 = 1; + a18 = 8; + a15 = 5; + + return 22; + } else if(((a15==5) && (((input == 2) && ((((a18==11) && ((306 < a3) && (417 >= a3)) ) || ((a18==12) && ((306 < a3) && (417 >= a3)) )) || ((a18==8) && 417 < a3 ))) && (a24==2)))){ + a3 = ((((a3 / 5) / -5) - -217576) + -598337); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((((((a18==10) || (a18==11)) || (a18==12)) && (input == 6)) && (a24==3)) && (a15==6)) && a3 <= 115 )){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(( 417 < a3 && (((a24==2) && ((a15==5) && (input == 6))) && (a18==9)))){ + a3 = (((a3 / -5) - -574465) / -5); + a24 = 4; + a18 = 8; + a15 = 4; + + return 21; + } else if(( a3 <= 115 && (((a24==4) && ((input == 5) && ((a18==11) || (a18==12)))) && (a15==4)))){ + a3 = ((((((a3 * 9)/ 10) % 95)+ 211) + -520198) - -520197); + a24 = 0; + a18 = 12; + a15 = 5; + + return 25; + } else if(( a3 <= 115 && ((a15==6) && (((((a18==9) || (a18==10)) || (a18==11)) && (input == 3)) && (a24==0))))){ + a3 = ((((a3 - 0) - -521706) % 95)- -210); + a24 = 3; + a18 = 10; + + return 25; + } else if((( a3 <= 115 && ((a24==2) && (((a18==10) || (a18==11)) && (input == 4)))) && (a15==5))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a24==2) && ((a15==6) && ((((a18==10) || (a18==11)) && (input == 6)) && a3 <= 115 )))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==5) && ( 417 < a3 && ((((a18==9) || (a18==10)) && (input == 3)) && (a24==1))))){ + a3 = ((((a3 * 9)/ 10) - 582937) / 5); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(( ((115 < a3) && (306 >= a3)) && ((a15==5) && (((input == 3) && ((a18==9) || (a18==10))) && (a24==4))))){ + a3 = (((a3 - 384115) + -138585) * 1); + a18 = 11; + a15 = 4; + + return 22; + } else if((((input == 1) && (( a3 <= 115 && ((a24==4) && (a18==9))) || ((((a24==3) && (a18==12)) && 417 < a3 ) || ( a3 <= 115 && ((a24==4) && (a18==8)))))) && (a15==4))){ + a3 = ((((a3 - 0) % 300057)+ -299941) * 1); + a24 = 0; + a18 = 8; + + return -1; + } else if(( ((306 < a3) && (417 >= a3)) && (((a15==5) && ((input == 3) && (((a18==8) || (a18==9)) || (a18==10)))) && (a24==3)))){ + a3 = (((a3 - -222713) / 5) / -5); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((((input == 1) && (( a3 <= 115 && (a18==12)) || ( ((115 < a3) && (306 >= a3)) && (a18==8)))) && (a24==0)) && (a15==6))){ + a3 = ((((((a3 * 9)/ 10) % 55)- -362) / 5) + 260); + a24 = 1; + a18 = 12; + + return 22; + } else if(( 417 < a3 && ((((a18==11) && (input == 5)) && (a15==5)) && (a24==1)))){ + + a24 = 2; + a18 = 8; + a15 = 6; + + return 21; + } else if(((a18==10) && ((a15==6) && ((a24==0) && ((input == 3) && ((306 < a3) && (417 >= a3)) ))))){ + + return -1; + } else if(((a24==4) && (((input == 6) && (((a18==8) && 417 < a3 ) || (( ((306 < a3) && (417 >= a3)) && (a18==11)) || ((a18==12) && ((306 < a3) && (417 >= a3)) )))) && (a15==4)))){ + a3 = (((((a3 * 9)/ 10) / -5) - -574086) * -1); + a24 = 0; + a18 = 8; + + return -1; + } else if(((((((a18==9) || (a18==10)) && (input == 2)) && ((115 < a3) && (306 >= a3)) ) && (a15==4)) && (a24==4))){ + a3 = (((a3 / -5) * 5) - 102575); + a24 = 0; + a18 = 8; + + return -1; + } else if(((a15==6) && (((((a18==9) && ((306 < a3) && (417 >= a3)) ) || (( ((115 < a3) && (306 >= a3)) && (a18==12)) || ((a18==8) && ((306 < a3) && (417 >= a3)) ))) && (input == 1)) && (a24==0)))){ + a3 = ((((a3 % 55)- -326) - 12) - 5); + a24 = 3; + a18 = 10; + a15 = 4; + + return -1; + } else if(((((input == 1) && (( 417 < a3 && (a18==8)) || (( ((306 < a3) && (417 >= a3)) && (a18==11)) || ((a18==12) && ((306 < a3) && (417 >= a3)) )))) && (a24==1)) && (a15==5))){ + a3 = ((((a3 * 9)/ 10) - -45185) * -1); + a24 = 2; + a18 = 9; + a15 = 6; + + return 26; + } else if(((( ((115 < a3) && (306 >= a3)) && ((input == 4) && (((a18==10) || (a18==11)) || (a18==12)))) && (a24==3)) && (a15==5))){ + a3 = (((a3 - 249142) * 2) + -18516); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a24==2) && (((input == 5) && (((a18==8) && ((306 < a3) && (417 >= a3)) ) || (((a18==11) && ((115 < a3) && (306 >= a3)) ) || ((a18==12) && ((115 < a3) && (306 >= a3)) )))) && (a15==5)))){ + a3 = ((((a3 + -89516) - -57833) * 10)/ -9); + a24 = 0; + a18 = 11; + a15 = 6; + + return 25; + } else if(((a15==4) && (((a24==3) && ((((a18==8) || (a18==9)) || (a18==10)) && (input == 6))) && ((306 < a3) && (417 >= a3)) ))){ + a3 = (((a3 * 5) - 108118) - 378730); + a24 = 0; + a18 = 8; + + return -1; + } else if((((a24==4) && ( 417 < a3 && ((input == 1) && ((a18==9) || (a18==10))))) && (a15==4))){ + a3 = (((a3 - 600133) - -230159) + -230069); + a24 = 2; + a18 = 9; + a15 = 5; + + return 21; + } else if((((((a24==1) && (input == 1)) && ((306 < a3) && (417 >= a3)) ) && (a15==6)) && (a18==12))){ + + a24 = 4; + a15 = 4; + + return 21; + } else if(( a3 <= 115 && (((a24==2) && ((a18==12) && (input == 5))) && (a15==5)))){ + a3 = ((((((a3 / 5) % 95)- -211) * 5) % 95)+ 123); + a24 = 1; + a18 = 10; + a15 = 6; + + return 22; + } else if(((((input == 6) && (((a18==12) && ((306 < a3) && (417 >= a3)) ) || ((a18==8) && 417 < a3 ))) && (a15==6)) && (a24==2))){ + a3 = (((a3 / 5) / 5) * -5); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a24==0) && ((a15==5) && (((((a18==10) || (a18==11)) || (a18==12)) && (input == 1)) && 417 < a3 )))){ + a3 = (((a3 / -5) - -187906) - 664383); + a18 = 8; + a15 = 4; + + return -1; + } else if((( ((306 < a3) && (417 >= a3)) && ((a18==11) && ((input == 4) && (a24==3)))) && (a15==5))){ + a3 = (((a3 - 379131) * 1) * 1); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((((((a18==10) || (a18==11)) && (input == 3)) && a3 <= 115 ) && (a15==5)) && (a24==2))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(( 417 < a3 && ((a24==3) && ((((a18==10) || (a18==11)) && (input == 5)) && (a15==6))))){ + a3 = (((((a3 * 9)/ 10) * 1) + -221488) - 328260); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a24==1) && ( a3 <= 115 && ((input == 5) && (a15==5)))) && (a18==8))){ + + a24 = 0; + a15 = 4; + + return -1; + } else if((((((a18==9) && (input == 1)) && 417 < a3 ) && (a15==5)) && (a24==2))){ + a3 = ((((((a3 % 55)+ 360) - 50) * 5) % 55)+ 313); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==4) && (((((a18==9) || (a18==10)) && (input == 1)) && (a24==4)) && ((115 < a3) && (306 >= a3)) ))){ + a3 = (((a3 / -5) * 5) - 547274); + a24 = 0; + a18 = 8; + + return -1; + } else if((((((a24==1) && (input == 2)) && (a18==11)) && 417 < a3 ) && (a15==5))){ + a3 = ((((a3 / -5) + 230985) + 32867) * -2); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((((input == 5) && ((((a18==11) && ((306 < a3) && (417 >= a3)) ) || ((a18==12) && ((306 < a3) && (417 >= a3)) )) || ((a18==8) && 417 < a3 ))) && (a24==4)) && (a15==4))){ + a3 = (((((a3 % 55)+ 324) * 1) - 458794) - -458832); + a24 = 1; + a18 = 9; + a15 = 5; + + return 22; + } else if(( 417 < a3 && (((a15==5) && ((input == 5) && ((a18==10) || (a18==11)))) && (a24==2)))){ + a3 = ((((a3 - 107077) % 55)- -361) * 1); + a24 = 1; + a18 = 12; + a15 = 6; + + return 26; + } else if((((a24==4) && ( ((115 < a3) && (306 >= a3)) && (((a18==11) || (a18==12)) && (input == 2)))) && (a15==5))){ + a3 = (((a3 * -5) - 3558) + -200043); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==5) && (((a24==4) && ((input == 4) && ((a18==11) || (a18==12)))) && ((115 < a3) && (306 >= a3)) ))){ + a3 = (((a3 / -5) / 5) * 5); + a24 = 2; + a18 = 11; + a15 = 6; + + return 25; + } else if(((a24==1) && ((a15==5) && (((input == 1) && a3 <= 115 ) && (a18==11))))){ + a3 = (((((a3 + 588233) - -8309) - 166649) % 55)+ 362); + a24 = 0; + a18 = 9; + a15 = 6; + + return 21; + } else if(((((a15==6) && ((input == 1) && (a24==0))) && 417 < a3 ) && (a18==8))){ + a3 = (((a3 + 0) - 600047) + -219); + a15 = 4; + + return -1; + } else if(((((((a18==8) && 417 < a3 ) || (((a18==11) && ((306 < a3) && (417 >= a3)) ) || ((a18==12) && ((306 < a3) && (417 >= a3)) ))) && (input == 1)) && (a15==4)) && (a24==3))){ + a3 = ((((((a3 % 55)- -309) * 1) * 5) % 55)+ 325); + a24 = 4; + a18 = 12; + + return 21; + } else if((((a24==3) && ((((a18==11) || ((a18==9) || (a18==10))) && (input == 3)) && (a15==6))) && ((306 < a3) && (417 >= a3)) )){ + + a18 = 9; + + return 22; + } else if(( ((115 < a3) && (306 >= a3)) && ((a24==0) && (((input == 3) && (a18==11)) && (a15==6))))){ + a3 = (((a3 - -499132) * 1) * 1); + a24 = 3; + a18 = 10; + + return 22; + } else if(((a15==5) && ((a24==1) && ( a3 <= 115 && ((input == 1) && ((a18==9) || (a18==10))))))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((((a15==5) && ((input == 5) && (a18==11))) && (a24==1)) && a3 <= 115 )){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((((input == 3) && ((a18==11) || ((a18==9) || (a18==10)))) && (a24==3)) && (a15==4)) && 417 < a3 )){ + a3 = (((a3 - 0) + -600222) - 134); + a24 = 0; + a18 = 9; + a15 = 5; + + return 25; + } else if(((((( 417 < a3 && ((a18==12) && (a24==3))) || (((a24==4) && (a18==8)) && a3 <= 115 )) || (((a24==4) && (a18==9)) && a3 <= 115 )) && (input == 6)) && (a15==5))){ + a3 = (((((a3 + 0) / 5) * 4) % 300057)- 299941); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==5) && (( a3 <= 115 && ((input == 3) && (a24==0))) && (a18==8)))){ + + a24 = 2; + a18 = 12; + + return 22; + } else if((( 417 < a3 && ((a24==3) && (((a18==8) || (a18==9)) && (input == 1)))) && (a15==5))){ + a3 = ((((a3 - 600276) / 5) - -526846) * -1); + a18 = 10; + a15 = 4; + + return 26; + } else if(((a24==2) && ((a15==5) && ((input == 3) && ((( ((115 < a3) && (306 >= a3)) && (a18==11)) || ((a18==12) && ((115 < a3) && (306 >= a3)) )) || ((a18==8) && ((306 < a3) && (417 >= a3)) )))))){ + a3 = ((((a3 * 10)/ 2) * 5) - -347313); + a24 = 0; + a18 = 8; + a15 = 6; + + return 25; + } else if((((a24==0) && ((((a18==12) && a3 <= 115 ) || ((a18==8) && ((115 < a3) && (306 >= a3)) )) && (input == 2))) && (a15==5))){ + a3 = ((((a3 % 95)+ 210) - -2) - 2); + a24 = 3; + a18 = 11; + + return 26; + } else if((((a15==5) && (((input == 1) && (((a18==8) || (a18==9)) || (a18==10))) && ((306 < a3) && (417 >= a3)) )) && (a24==3))){ + a3 = (((a3 + -139) * 5) / 5); + a24 = 0; + a18 = 11; + + return 26; + } else if((((((((a24==2) && (a18==12)) && 417 < a3 ) || ( a3 <= 115 && ((a24==3) && (a18==8)))) || ( a3 <= 115 && ((a24==3) && (a18==9)))) && (input == 3)) && (a15==5))){ + a3 = ((((a3 % 300057)- 299941) + -3) / 5); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((((((a18==8) || (a18==9)) || (a18==10)) && (input == 2)) && (a24==4)) && (a15==5)) && 417 < a3 )){ + + a24 = 0; + a18 = 8; + a15 = 6; + + return 25; + } else if(((a24==3) && ( ((115 < a3) && (306 >= a3)) && ((a15==5) && (((a18==8) || (a18==9)) && (input == 6)))))){ + a3 = (((a3 + -131119) * 4) - 61015); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((((((a18==10) || (a18==11)) && (input == 2)) && 417 < a3 ) && (a24==2)) && (a15==5))){ + a3 = ((((a3 - 421186) - -355802) + 22928) + -557586); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((((((a18==9) || (a18==10)) && (input == 2)) && a3 <= 115 ) && (a15==5)) && (a24==1))){ + + a24 = 0; + a18 = 8; + a15 = 6; + + return 21; + } else if((((( 417 < a3 && ((a18==12) && (a24==1))) || ( a3 <= 115 && ((a18==8) && (a24==2)))) && (input == 2)) && (a15==5))){ + a3 = (((((a3 % 300057)+ -299941) / 5) + 105507) + -246470); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a24==2) && ((((a18==11) || ((a18==9) || (a18==10))) && (input == 5)) && (a15==6))) && ((306 < a3) && (417 >= a3)) )){ + a3 = (((a3 * 5) + 587119) / -5); + a24 = 1; + a18 = 11; + + return -1; + } + return calculate_output2(input); + } + + int calculate_output2(int input) { + + + if(( ((306 < a3) && (417 >= a3)) && ((a24==2) && (((((a18==9) || (a18==10)) || (a18==11)) && (input == 1)) && (a15==6))))){ + a3 = ((((a3 - -295390) + -295576) / 5) + 170); + a18 = 12; + + return -1; + } else if((( 417 < a3 && ((a15==6) && ((input == 1) && (((a18==9) || (a18==10)) || (a18==11))))) && (a24==0))){ + a3 = ((((a3 % 95)+ 136) - 391386) + 391437); + a24 = 1; + a18 = 9; + a15 = 5; + + return 25; + } else if((((((input == 5) && (a18==10)) && (a15==5)) && 417 < a3 ) && (a24==3))){ + a3 = (((a3 / -5) * 4) + -76077); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(( a3 <= 115 && ((a24==3) && ((a15==5) && ((input == 1) && ((a18==10) || (a18==11))))))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((input == 1) && (((((a24==0) && (a18==12)) && 417 < a3 ) || (((a18==8) && (a24==1)) && a3 <= 115 )) || ( a3 <= 115 && ((a24==1) && (a18==9))))) && (a15==6))){ + a3 = ((((a3 % 300057)+ -299941) + -3) + 0); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a24==1) && (( ((306 < a3) && (417 >= a3)) && (input == 4)) && (a15==6))) && (a18==12))){ + + a18 = 10; + + return -1; + } else if(((((input == 4) && ((((a18==11) && ((306 < a3) && (417 >= a3)) ) || ((a18==12) && ((306 < a3) && (417 >= a3)) )) || ( 417 < a3 && (a18==8)))) && (a15==4)) && (a24==4))){ + a3 = (((a3 / 5) - 185457) + -359914); + a24 = 0; + a18 = 8; + + return -1; + } else if(((a15==4) && ((input == 4) && (( a3 <= 115 && ((a24==4) && (a18==9))) || ((((a24==3) && (a18==12)) && 417 < a3 ) || (((a24==4) && (a18==8)) && a3 <= 115 )))))){ + a3 = ((((a3 + 0) % 300057)- 299941) - 1); + a24 = 0; + a18 = 8; + + return -1; + } else if(((a24==3) && ((a15==4) && ((input == 4) && (( 417 < a3 && (a18==8)) || (((a18==11) && ((306 < a3) && (417 >= a3)) ) || ( ((306 < a3) && (417 >= a3)) && (a18==12)))))))){ + a3 = (((((a3 / 5) % 55)+ 335) - -21338) + -21349); + a24 = 4; + a18 = 10; + + return 25; + } else if(((a15==6) && ((((a18==8) && (input == 4)) && 417 < a3 ) && (a24==0)))){ + a3 = ((((((a3 % 55)- -334) * 5) + -342050) % 55)+ 388); + a24 = 3; + a18 = 10; + a15 = 4; + + return 22; + } else if(( ((115 < a3) && (306 >= a3)) && ((a15==4) && ((a24==4) && (((a18==9) || (a18==10)) && (input == 5)))))){ + a3 = (((a3 + -351209) * 1) * 1); + a24 = 0; + a18 = 8; + + return -1; + } else if(((( ((115 < a3) && (306 >= a3)) && ((input == 1) && (((a18==8) || (a18==9)) || (a18==10)))) && (a15==6)) && (a24==3))){ + a3 = (((a3 * 5) + 401484) + 195663); + a24 = 2; + a18 = 9; + + return -1; + } else if((((input == 4) && ((( 417 < a3 && ((a24==0) && (a18==12))) || (((a24==1) && (a18==8)) && a3 <= 115 )) || (((a24==1) && (a18==9)) && a3 <= 115 ))) && (a15==6))){ + a3 = ((((a3 % 95)- -210) + 0) - -1); + a24 = 3; + a18 = 10; + a15 = 4; + + return -1; + } else if(((((((a18==12) || ((a18==10) || (a18==11))) && (input == 5)) && a3 <= 115 ) && (a15==4)) && (a24==3))){ + a3 = ((((((a3 * 9)/ 10) % 95)+ 210) - -563481) - 563479); + a18 = 10; + + return 21; + } else if((((input == 6) && (( a3 <= 115 && ((a24==2) && (a18==8))) || ((((a24==1) && (a18==11)) && 417 < a3 ) || ( 417 < a3 && ((a24==1) && (a18==12)))))) && (a15==6))){ + a3 = ((((a3 - 0) / 5) + 70566) - 277039); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==5) && (((input == 3) && ((( ((306 < a3) && (417 >= a3)) && (a18==11)) || ( ((306 < a3) && (417 >= a3)) && (a18==12))) || ( 417 < a3 && (a18==8)))) && (a24==1)))){ + a3 = ((((a3 + -600031) * 1) + 229814) - 229714); + a24 = 2; + a18 = 10; + a15 = 6; + + return 21; + } else if(((((( 417 < a3 && (a18==8)) || (((a18==11) && ((306 < a3) && (417 >= a3)) ) || ((a18==12) && ((306 < a3) && (417 >= a3)) ))) && (input == 3)) && (a15==4)) && (a24==4))){ + a3 = (((a3 + -600088) - 109) / 5); + a24 = 0; + a18 = 8; + + return -1; + } else if(((((a24==2) && ( 417 < a3 && (input == 4))) && (a18==9)) && (a15==5))){ + + a18 = 11; + a15 = 4; + + return -1; + } else if((( ((115 < a3) && (306 >= a3)) && ((a18==8) && ((a15==5) && (input == 4)))) && (a24==2))){ + a3 = (((((a3 % 55)- -335) + 5) - 106400) + 106419); + a24 = 1; + a15 = 6; + + return 26; + } else if(( ((115 < a3) && (306 >= a3)) && ((a24==4) && (((input == 6) && (a18==8)) && (a15==4))))){ + a3 = (((a3 / 5) - -34270) * -5); + a24 = 0; + + return -1; + } else if(( a3 <= 115 && (((a24==3) && (((a18==12) || ((a18==10) || (a18==11))) && (input == 4))) && (a15==4)))){ + a3 = (((((a3 % 95)- -210) + 1) - 295391) - -295391); + a18 = 9; + + return 21; + } else if(((((((a18==8) || (a18==9)) && (input == 6)) && (a15==5)) && 417 < a3 ) && (a24==0))){ + a3 = ((((a3 - 0) + -182899) + 73617) - 490836); + a18 = 8; + a15 = 4; + + return -1; + } else if((( ((306 < a3) && (417 >= a3)) && ((a24==0) && ((((a18==8) || (a18==9)) || (a18==10)) && (input == 3)))) && (a15==5))){ + a3 = ((((a3 * 5) - 436532) - -702373) * -2); + a18 = 8; + a15 = 4; + + return -1; + } else if((((a24==3) && (((input == 5) && (a18==12)) && ((306 < a3) && (417 >= a3)) )) && (a15==5))){ + a3 = (((a3 * 5) / -5) * 5); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==6) && ((a24==2) && ((input == 4) && (( ((306 < a3) && (417 >= a3)) && (a18==8)) || (((a18==11) && ((115 < a3) && (306 >= a3)) ) || ((a18==12) && ((115 < a3) && (306 >= a3)) ))))))){ + a3 = (((((a3 + -31604) % 95)+ 226) / 5) + 121); + a18 = 11; + + return -1; + } else if(((a15==5) && ((input == 4) && ((((a18==9) && (a24==3)) && a3 <= 115 ) || ((((a18==12) && (a24==2)) && 417 < a3 ) || (((a24==3) && (a18==8)) && a3 <= 115 )))))){ + a3 = ((((((a3 % 95)- -211) * 5) * 5) % 95)- -211); + a24 = 3; + a18 = 11; + a15 = 4; + + return 26; + } else if(( ((306 < a3) && (417 >= a3)) && (((((a18==9) || (a18==10)) && (input == 1)) && (a15==5)) && (a24==2)))){ + a3 = ((((a3 / -5) - 126690) + 323186) * -3); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a24==1) && ((a15==5) && (((( ((306 < a3) && (417 >= a3)) && (a18==11)) || ( ((306 < a3) && (417 >= a3)) && (a18==12))) || ((a18==8) && 417 < a3 )) && (input == 4))))){ + a3 = ((((a3 - 599963) + 321584) - 213242) + -108421); + a24 = 2; + a18 = 8; + a15 = 6; + + return 22; + } else if(((a15==6) && ( ((306 < a3) && (417 >= a3)) && ((a24==1) && (((a18==8) || (a18==9)) && (input == 2)))))){ + + a24 = 0; + a18 = 10; + + return -1; + } else if(( ((306 < a3) && (417 >= a3)) && (((a24==4) && ((input == 4) && ((a18==11) || (a18==12)))) && (a15==5)))){ + + a24 = 0; + a18 = 11; + a15 = 6; + + return 21; + } else if(( ((115 < a3) && (306 >= a3)) && ((a24==3) && ((((a18==8) || (a18==9)) && (input == 5)) && (a15==4))))){ + a3 = ((((a3 % 55)+ 359) / 5) - -330); + a18 = 10; + + return 22; + } else if(((a15==6) && ( ((306 < a3) && (417 >= a3)) && ((((a18==11) || (a18==12)) && (input == 4)) && (a24==0))))){ + a3 = ((((a3 - 442409) + -75157) + 886999) * -1); + a18 = 8; + a15 = 4; + + return -1; + } else if((((a15==4) && (((((a18==8) || (a18==9)) || (a18==10)) && (input == 2)) && (a24==3))) && ((306 < a3) && (417 >= a3)) )){ + a3 = ((((((a3 * 4)/ 10) * 1) * 5) % 95)+ 143); + a24 = 4; + a18 = 8; + + return 26; + } else if((( 417 < a3 && (((a18==10) && (input == 6)) && (a24==3))) && (a15==5))){ + a3 = (((((a3 * 9)/ 10) + -135101) - -50940) - 461817); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((((a15==4) && (input == 4)) && a3 <= 115 ) && (a24==3)) && (a18==9))){ + + a24 = 0; + a18 = 8; + + return -1; + } else if(((a15==4) && (( 417 < a3 && ((input == 1) && ((a18==11) || (a18==12)))) && (a24==4)))){ + a3 = ((((a3 / -5) * 10)/ 9) + -311570); + a24 = 0; + a18 = 8; + + return -1; + } else if(((a24==2) && ((a15==5) && ((input == 6) && ((((a18==11) && ((115 < a3) && (306 >= a3)) ) || ( ((115 < a3) && (306 >= a3)) && (a18==12))) || ( ((306 < a3) && (417 >= a3)) && (a18==8))))))){ + a3 = (((((a3 + -167734) * 10)/ 9) * 10)/ 9); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a18==10) && ((a15==4) && (((input == 6) && a3 <= 115 ) && (a24==4))))){ + a3 = (((((a3 % 95)- -211) * 1) - 216688) - -216688); + a24 = 0; + a15 = 5; + + return 25; + } else if((((a15==5) && ((a24==0) && ( a3 <= 115 && (input == 4)))) && (a18==9))){ + a3 = ((((a3 % 55)+ 362) * 1) * 1); + a24 = 2; + + return 25; + } else if(((a15==5) && ( a3 <= 115 && (((input == 4) && (a24==2)) && (a18==9))))){ + a3 = (((((a3 % 95)+ 210) + 0) + 65155) + -65154); + a24 = 3; + a18 = 12; + a15 = 6; + + return 26; + } else if(( ((115 < a3) && (306 >= a3)) && (((a24==3) && ((((a18==10) || (a18==11)) || (a18==12)) && (input == 5))) && (a15==5)))){ + a3 = ((((a3 % 55)+ 336) * 1) + -21); + a24 = 2; + a18 = 12; + a15 = 6; + + return 25; + } else if(((a24==2) && (((input == 1) && ((( ((115 < a3) && (306 >= a3)) && (a18==11)) || ((a18==12) && ((115 < a3) && (306 >= a3)) )) || ((a18==8) && ((306 < a3) && (417 >= a3)) ))) && (a15==5)))){ + a3 = ((((a3 * 5) + 312497) - -270968) + -1067025); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a15==5) && ((a24==4) && (((a18==11) || (a18==12)) && (input == 1)))) && ((115 < a3) && (306 >= a3)) )){ + a3 = (((a3 / 5) * -5) + -536237); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==5) && ((a24==4) && ( ((306 < a3) && (417 >= a3)) && ((input == 6) && (((a18==8) || (a18==9)) || (a18==10))))))){ + a3 = (((a3 * 5) * -5) * 5); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((( ((306 < a3) && (417 >= a3)) && ((a15==5) && (((a18==10) || ((a18==8) || (a18==9))) && (input == 5)))) && (a24==3))){ + a3 = ((((a3 / -5) + 56113) * 5) * -2); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a24==0) && ( a3 <= 115 && (((a18==11) || ((a18==9) || (a18==10))) && (input == 4)))) && (a15==6))){ + + a24 = 2; + a18 = 12; + + return 22; + } else if((((a15==6) && ((((a18==12) && a3 <= 115 ) || ( ((115 < a3) && (306 >= a3)) && (a18==8))) && (input == 2))) && (a24==0))){ + a3 = (((((a3 % 300057)+ -299941) * 1) - -466629) - 466629); + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==6) && ( a3 <= 115 && ((a24==1) && ((((a18==10) || (a18==11)) || (a18==12)) && (input == 1)))))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a18==11) && ( 417 < a3 && (((input == 1) && (a24==3)) && (a15==5))))){ + a3 = (((a3 + -229901) / 5) + -297359); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(( 417 < a3 && ((((a18==11) && (input == 5)) && (a24==3)) && (a15==5)))){ + a3 = ((((a3 % 55)+ 324) + 20) + 13); + a24 = 1; + a18 = 10; + a15 = 6; + + return 21; + } else if((( a3 <= 115 && ((a15==4) && ((input == 4) && ((a18==11) || (a18==12))))) && (a24==4))){ + a3 = (((((a3 % 55)- -362) / 5) - -237700) - 237388); + a24 = 0; + a18 = 11; + a15 = 5; + + return 25; + } else if(((((a18==8) && ((a15==5) && (input == 2))) && a3 <= 115 ) && (a24==0))){ + a3 = ((((((a3 + 0) * 9)/ 10) + 482915) % 95)- -211); + a24 = 2; + + return 26; + } else if(( a3 <= 115 && ((a15==4) && ((a24==4) && ((input == 1) && ((a18==11) || (a18==12))))))){ + a3 = ((((a3 % 55)- -361) + 0) + 0); + a24 = 0; + a18 = 10; + a15 = 5; + + return 21; + } else if(((a15==6) && ((((input == 5) && ((a18==10) || ((a18==8) || (a18==9)))) && ((115 < a3) && (306 >= a3)) ) && (a24==1)))){ + a3 = (((a3 / 5) + -529169) - 30787); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((((input == 1) && (((a18==9) || (a18==10)) || (a18==11))) && 417 < a3 ) && (a15==6)) && (a24==2))){ + a3 = ((((a3 % 55)+ 319) / 5) - -294); + a18 = 8; + + return -1; + } else if((((a24==2) && ( ((115 < a3) && (306 >= a3)) && ((input == 2) && ((a18==10) || ((a18==8) || (a18==9)))))) && (a15==6))){ + + a24 = 1; + a18 = 8; + + return -1; + } else if(( a3 <= 115 && ((a24==2) && ((a15==5) && ((input == 1) && ((a18==10) || (a18==11))))))){ + a3 = ((((a3 * 9)/ 10) / 5) - -540399); + a24 = 3; + a18 = 9; + a15 = 6; + + return 21; + } else if((((a24==4) && (((( a3 <= 115 && (a18==11)) || ( a3 <= 115 && (a18==12))) || ( ((115 < a3) && (306 >= a3)) && (a18==8))) && (input == 4))) && (a15==5))){ + a3 = ((((a3 * 9)/ 10) - 10839) * 1); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a15==6) && ((a24==1) && (((a18==11) || (a18==12)) && (input == 5)))) && ((115 < a3) && (306 >= a3)) )){ + a3 = ((((a3 % 55)- -343) + -318920) + 318925); + a24 = 0; + a18 = 12; + + return -1; + } else if((((a15==5) && (((input == 6) && ((a18==11) || (a18==12))) && ((306 < a3) && (417 >= a3)) )) && (a24==0))){ + a3 = (((a3 - 444267) + -104446) * 1); + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==6) && ((( a3 <= 115 && ((a18==9) && (a24==3))) || ((((a24==2) && (a18==12)) && 417 < a3 ) || ( a3 <= 115 && ((a24==3) && (a18==8))))) && (input == 4)))){ + a3 = ((((a3 % 300057)+ -299941) - 2) * 1); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((((input == 1) && a3 <= 115 ) && (a15==6)) && (a24==2)) && (a18==9))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((((((a18==12) && a3 <= 115 ) || ((a18==8) && ((115 < a3) && (306 >= a3)) )) && (input == 6)) && (a15==6)) && (a24==0))){ + a3 = ((((a3 % 300057)+ -299941) * 1) * 1); + a18 = 8; + a15 = 4; + + return -1; + } else if(( ((306 < a3) && (417 >= a3)) && ((a15==5) && ((a24==1) && ((input == 4) && ((a18==9) || (a18==10))))))){ + + a18 = 8; + a15 = 6; + + return 21; + } else if(((((a15==4) && (((a18==11) || ((a18==9) || (a18==10))) && (input == 6))) && 417 < a3 ) && (a24==3))){ + a3 = (((a3 - 413229) - -96489) - 283466); + a24 = 0; + a18 = 8; + + return -1; + } else if((( ((115 < a3) && (306 >= a3)) && (((input == 5) && ((a18==9) || (a18==10))) && (a15==5))) && (a24==1))){ + a3 = (((a3 - -500185) - -90325) * 1); + a24 = 0; + a18 = 12; + a15 = 6; + + return 26; + } else if(((a15==4) && ((((( ((306 < a3) && (417 >= a3)) && (a18==11)) || ( ((306 < a3) && (417 >= a3)) && (a18==12))) || ( 417 < a3 && (a18==8))) && (input == 5)) && (a24==3)))){ + a3 = (((a3 / 5) + 169567) * 2); + a24 = 4; + a18 = 9; + + return 21; + } else if(((a15==6) && (((((a18==9) && ((306 < a3) && (417 >= a3)) ) || (((a18==12) && ((115 < a3) && (306 >= a3)) ) || ( ((306 < a3) && (417 >= a3)) && (a18==8)))) && (input == 3)) && (a24==0)))){ + a3 = (((((a3 * 5) - 389703) + -60924) % 95)+ 250); + a24 = 4; + a18 = 12; + a15 = 4; + + return 22; + } else if(( a3 <= 115 && ((a18==10) && (((input == 4) && (a15==4)) && (a24==4))))){ + + a24 = 0; + a18 = 8; + + return -1; + } else if((( a3 <= 115 && (((input == 5) && ((a18==10) || (a18==11))) && (a15==5))) && (a24==3))){ + + a24 = 2; + a18 = 9; + a15 = 6; + + return 21; + } else if((((a24==2) && ((a15==6) && ((input == 4) && ((a18==10) || ((a18==8) || (a18==9)))))) && ((115 < a3) && (306 >= a3)) )){ + a3 = ((((a3 + -41262) * 10)/ 9) * 5); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a24==4) && ( 417 < a3 && (((input == 3) && ((a18==11) || (a18==12))) && (a15==4))))){ + a3 = (((a3 + -600335) / 5) - 125944); + a24 = 2; + a18 = 10; + a15 = 5; + + return 22; + } else if(((a15==6) && (((( ((306 < a3) && (417 >= a3)) && (a18==12)) || ((a18==8) && 417 < a3 )) && (input == 3)) && (a24==2)))){ + a3 = ((((a3 + -424004) / 5) / 5) + 383913); + a24 = 3; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a15==6) && ((input == 6) && (( ((306 < a3) && (417 >= a3)) && (a18==9)) || (( ((115 < a3) && (306 >= a3)) && (a18==12)) || ((a18==8) && ((306 < a3) && (417 >= a3)) ))))) && (a24==0))){ + a3 = (((a3 / -5) / 5) * 5); + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==5) && ((input == 1) && (((((a18==12) && (a24==3)) && 417 < a3 ) || (((a24==4) && (a18==8)) && a3 <= 115 )) || ( a3 <= 115 && ((a24==4) && (a18==9))))))){ + a3 = ((((a3 % 300057)- 299941) * 1) - 1); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a18==12) && ( a3 <= 115 && (((a24==3) && (input == 6)) && (a15==5))))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((( 417 < a3 && ((a24==3) && ((a15==5) && (input == 4)))) && (a18==11))){ + a3 = (((a3 / 5) / -5) - 412531); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a15==4) && ((a24==3) && ((((a18==9) || (a18==10)) || (a18==11)) && (input == 1)))) && 417 < a3 )){ + a3 = ((((a3 + -600145) - 33) - -315605) + -315686); + a24 = 0; + a18 = 8; + + return -1; + } else if(((a15==4) && (((a24==3) && ((input == 5) && ((a18==11) || ((a18==9) || (a18==10))))) && 417 < a3 ))){ + a3 = ((((a3 - 0) - 600010) + 324047) - 324015); + a24 = 0; + a18 = 8; + a15 = 5; + + return 22; + } else if((((a15==5) && ((a24==2) && (((a18==10) || (a18==11)) && (input == 3)))) && 417 < a3 )){ + a3 = (((a3 - 600297) - -482535) - 482385); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a24==0) && ((a15==5) && ((input == 3) && (( a3 <= 115 && (a18==12)) || ((a18==8) && ((115 < a3) && (306 >= a3)) )))))){ + a3 = (((((a3 % 300057)- 299941) + 247619) * 1) + -247621); + a24 = 3; + a18 = 11; + + return 22; + } else if(((a15==6) && ( ((306 < a3) && (417 >= a3)) && ((a24==0) && ((input == 2) && (a18==10)))))){ + a3 = ((((a3 + -33842) - 560480) / 5) + 119012); + a24 = 4; + a18 = 11; + a15 = 4; + + return 21; + } else if((( a3 <= 115 && ((a15==6) && ((input == 3) && ((a18==12) || ((a18==10) || (a18==11)))))) && (a24==3))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a24==1) && ( ((115 < a3) && (306 >= a3)) && ((input == 3) && ((a18==9) || (a18==10))))) && (a15==5))){ + a3 = (((a3 * 5) * 5) / -5); + a18 = 11; + a15 = 6; + + return 22; + } else if((((((input == 5) && ((a18==11) || (a18==12))) && (a24==0)) && ((306 < a3) && (417 >= a3)) ) && (a15==5))){ + a3 = (((a3 * -5) - 208207) * 2); + a18 = 8; + a15 = 4; + + return -1; + } else if(((((a15==5) && ((a24==1) && (input == 6))) && a3 <= 115 ) && (a18==8))){ + + a24 = 0; + a15 = 4; + + return -1; + } else if(( 417 < a3 && ((((input == 1) && ((a18==9) || (a18==10))) && (a24==1)) && (a15==5)))){ + a3 = (((a3 - 600092) * 1) / 5); + a24 = 2; + a18 = 12; + a15 = 6; + + return 22; + } else if(((a15==6) && ( 417 < a3 && ((((a18==10) || (a18==11)) && (input == 1)) && (a24==3))))){ + a3 = (((a3 / 5) - 303308) - 179168); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a24==0) && ((a15==5) && (((input == 2) && ((a18==10) || ((a18==8) || (a18==9)))) && ((306 < a3) && (417 >= a3)) )))){ + a3 = (((a3 / 5) + 390983) + -783525); + a18 = 8; + a15 = 4; + + return -1; + } else if((((( a3 <= 115 && (input == 6)) && (a18==10)) && (a15==5)) && (a24==4))){ + a3 = (((((a3 % 95)+ 211) * 5) % 95)+ 205); + a24 = 3; + a18 = 8; + a15 = 4; + + return 22; + } else if(( ((115 < a3) && (306 >= a3)) && ((a24==3) && ((a15==4) && ((input == 1) && ((a18==11) || (a18==12))))))){ + a3 = (((a3 * 5) + 347415) / -5); + a24 = 4; + a18 = 8; + + return 26; + } else if(((a24==1) && ((a15==6) && ((a18==11) && ( ((306 < a3) && (417 >= a3)) && (input == 1)))))){ + a3 = ((((a3 * 5) / -5) * 10)/ 9); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a24==1) && (((input == 1) && ((( ((115 < a3) && (306 >= a3)) && (a18==11)) || ( ((115 < a3) && (306 >= a3)) && (a18==12))) || ((a18==8) && ((306 < a3) && (417 >= a3)) ))) && (a15==5)))){ + a3 = (((((a3 % 95)+ 169) + -15) - -40745) - 40763); + a18 = 11; + a15 = 6; + + return 22; + } else if(((( a3 <= 115 && (((a18==10) || (a18==11)) && (input == 2))) && (a15==5)) && (a24==0))){ + a3 = ((((a3 / 5) + 399627) * 10)/ 9); + a24 = 2; + a18 = 9; + + return 26; + } else if(((a15==5) && (( 417 < a3 && ((input == 3) && (a18==9))) && (a24==2)))){ + a3 = ((((a3 + 0) / 5) % 95)+ 164); + a24 = 3; + a15 = 4; + + return 21; + } else if(((a15==5) && (((input == 2) && ((((a18==11) && ((115 < a3) && (306 >= a3)) ) || ((a18==12) && ((115 < a3) && (306 >= a3)) )) || ((a18==8) && ((306 < a3) && (417 >= a3)) ))) && (a24==1)))){ + a3 = (((a3 - 524684) + -18707) * 1); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a15==5) && (((input == 2) && (a24==1)) && (a18==8))) && a3 <= 115 )){ + a3 = (((((a3 * 9)/ 10) % 55)+ 361) + 0); + a24 = 4; + a18 = 11; + + return 21; + } else if(( ((115 < a3) && (306 >= a3)) && (((a24==3) && ((input == 3) && (((a18==8) || (a18==9)) || (a18==10)))) && (a15==6)))){ + a3 = (((a3 * 5) * 5) * 5); + a24 = 1; + a18 = 10; + a15 = 4; + + return -1; + } else if((((a24==2) && (((input == 4) && (a18==12)) && a3 <= 115 )) && (a15==5))){ + a3 = ((((a3 + 366490) % 95)+ 210) + 0); + a18 = 9; + a15 = 4; + + return -1; + } else if(((a15==5) && ((a24==2) && ((input == 6) && (( 417 < a3 && (a18==8)) || (((a18==11) && ((306 < a3) && (417 >= a3)) ) || ((a18==12) && ((306 < a3) && (417 >= a3)) ))))))){ + a3 = (((a3 / 5) / -5) + -10954); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((((a24==4) && ((input == 3) && ((a18==11) || (a18==12)))) && (a15==4)) && ((115 < a3) && (306 >= a3)) )){ + a3 = (((a3 / 5) - 507268) / 5); + a24 = 0; + a18 = 8; + + return -1; + } else if((((a18==11) && (((input == 3) && (a15==5)) && (a24==3))) && ((306 < a3) && (417 >= a3)) )){ + a3 = (((a3 - 577812) - 20233) * 1); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((((a24==3) && (((a18==8) || (a18==9)) && (input == 2))) && ((115 < a3) && (306 >= a3)) ) && (a15==5))){ + a3 = (((a3 - -173677) * -3) - 39591); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(( 417 < a3 && ((a15==6) && (((a24==0) && (input == 3)) && (a18==8))))){ + a3 = (((((a3 % 95)- -146) / 5) * 49)/ 10); + a24 = 4; + a18 = 11; + a15 = 4; + + return -1; + } else if(( ((115 < a3) && (306 >= a3)) && ((a15==6) && (((input == 3) && ((a18==9) || (a18==10))) && (a24==0))))){ + a3 = (((a3 * 5) * -5) * 5); + a24 = 2; + a18 = 10; + + return 25; + } else if(( a3 <= 115 && ((a15==6) && (((((a18==10) || (a18==11)) || (a18==12)) && (input == 3)) && (a24==1))))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==5) && (((((a18==10) || ((a18==8) || (a18==9))) && (input == 1)) && ((306 < a3) && (417 >= a3)) ) && (a24==4)))){ + a3 = ((((a3 / 5) * 69)/ 10) + 383903); + a24 = 3; + a18 = 11; + a15 = 6; + + return 26; + } else if(((a15==5) && (((((a18==8) && 417 < a3 ) || (( ((306 < a3) && (417 >= a3)) && (a18==11)) || ((a18==12) && ((306 < a3) && (417 >= a3)) ))) && (input == 4)) && (a24==2)))){ + a3 = (((a3 + 0) + -599992) * 1); + a24 = 0; + a18 = 11; + + return 22; + } else if(((a18==10) && (( a3 <= 115 && ((input == 5) && (a15==4))) && (a24==4)))){ + a3 = ((((((a3 + 0) % 95)- -211) * 5) % 95)- -182); + a24 = 0; + a18 = 8; + a15 = 5; + + return 25; + } else if(((((a24==0) && ((a15==6) && (input == 5))) && 417 < a3 ) && (a18==8))){ + a3 = (((((a3 % 55)- -348) - 7) + -316112) + 316103); + a18 = 12; + + return -1; + } else if(( a3 <= 115 && ((a24==4) && ((a18==10) && ((a15==5) && (input == 3)))))){ + a3 = ((((a3 % 299791)- -300208) * 1) - -1); + a24 = 1; + a18 = 9; + a15 = 4; + + return -1; + } else if((((input == 4) && (( a3 <= 115 && ((a24==2) && (a18==8))) || ((((a18==11) && (a24==1)) && 417 < a3 ) || ( 417 < a3 && ((a18==12) && (a24==1)))))) && (a15==6))){ + a3 = (((a3 / 5) / 5) + -42467); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((( 417 < a3 && ((a15==5) && ((a24==4) && (a18==11)))) || ( 417 < a3 && (((a18==12) && (a24==4)) && (a15==5)))) || ( a3 <= 115 && (((a24==0) && (a18==8)) && (a15==6)))) && (input == 4))){ + a3 = ((((a3 % 95)- -211) - -1) * 1); + a24 = 1; + a18 = 8; + a15 = 6; + + return 21; + } else if((((a24==0) && ((((a18==10) || (a18==11)) && (input == 5)) && (a15==5))) && a3 <= 115 )){ + a3 = ((((a3 / 5) - -318888) * 10)/ 9); + a24 = 2; + a18 = 10; + + return 26; + } else if(( a3 <= 115 && ((a18==10) && ((a24==4) && ((input == 3) && (a15==4)))))){ + + a24 = 0; + a18 = 8; + + return -1; + } else if(((a24==3) && ((( ((306 < a3) && (417 >= a3)) && (input == 3)) && (a15==5)) && (a18==12)))){ + a3 = (((((a3 * 5) % 95)- -126) + -434219) + 434223); + a15 = 4; + + return 21; + } else if(((a15==6) && ( a3 <= 115 && ((a24==0) && ((input == 2) && ((a18==11) || ((a18==9) || (a18==10)))))))){ + a3 = ((((a3 - -556124) * 1) % 55)- -361); + a24 = 3; + a18 = 8; + + return 22; + } else if(((a15==4) && (((a24==3) && ((input == 5) && (a18==9))) && a3 <= 115 ))){ + + a24 = 0; + a18 = 8; + + return -1; + } else if(((a18==11) && (( ((306 < a3) && (417 >= a3)) && ((input == 6) && (a24==3))) && (a15==5)))){ + a3 = (((a3 / 5) - 281685) - 220788); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((( a3 <= 115 && ((a24==2) && ((input == 5) && (a15==6)))) && (a18==9))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((((a24==3) && ((input == 2) && ((a18==10) || (a18==11)))) && (a15==5)) && a3 <= 115 )){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((((a24==4) && ((input == 6) && ((a18==11) || (a18==12)))) && a3 <= 115 ) && (a15==4))){ + + a24 = 0; + a18 = 8; + + return -1; + } else if(((((a24==0) && ((input == 6) && (a15==6))) && (a18==11)) && ((115 < a3) && (306 >= a3)) )){ + + a24 = 1; + a18 = 9; + a15 = 4; + + return -1; + } else if(( a3 <= 115 && ((a15==5) && ((((a18==10) || (a18==11)) && (input == 2)) && (a24==2))))){ + a3 = ((((a3 + 0) % 299791)- -300208) - -1); + a24 = 3; + a18 = 11; + a15 = 6; + + return 25; + } else if((((a15==6) && ((a24==3) && ((((a18==9) || (a18==10)) || (a18==11)) && (input == 4)))) && ((306 < a3) && (417 >= a3)) )){ + + a18 = 12; + a15 = 4; + + return -1; + } else if(( 417 < a3 && (((((a18==10) || (a18==11)) && (input == 4)) && (a24==2)) && (a15==5)))){ + + a24 = 3; + a18 = 9; + a15 = 6; + + return 26; + } else if(((((a24==3) && ((input == 1) && ((a18==11) || (a18==12)))) && (a15==6)) && ((115 < a3) && (306 >= a3)) )){ + a3 = ((((a3 * -5) - 179535) * 10)/ 9); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a24==3) && ((((a18==11) || (a18==12)) && (input == 6)) && ((115 < a3) && (306 >= a3)) )) && (a15==6))){ + a3 = (((a3 * 5) / 5) / 5); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a24==2) && ((((a18==12) && (input == 4)) && (a15==6)) && a3 <= 115 ))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a18==8) && ((a24==2) && ((a15==5) && ((input == 5) && ((115 < a3) && (306 >= a3)) ))))){ + a3 = (((a3 * 5) * 5) * 5); + a24 = 1; + a15 = 6; + + return 21; + } else if(((((a15==6) && ((((a18==10) || (a18==11)) || (a18==12)) && (input == 1))) && (a24==3)) && a3 <= 115 )){ + a3 = ((((a3 % 299791)- -300208) - 0) + 1); + a24 = 1; + a18 = 12; + a15 = 5; + + return -1; + } else if(((a15==5) && ((((input == 2) && (a24==0)) && (a18==9)) && a3 <= 115 ))){ + + a18 = 8; + a15 = 4; + + return -1; + } else if((( ((115 < a3) && (306 >= a3)) && (((input == 3) && ((a18==8) || (a18==9))) && (a24==3))) && (a15==4))){ + + a18 = 12; + + return 26; + } else if(((a24==4) && (((((a18==11) || (a18==12)) && (input == 5)) && 417 < a3 ) && (a15==4)))){ + a3 = ((((a3 * 9)/ 10) - 540271) * 1); + a24 = 0; + a18 = 8; + + return -1; + } else if(((a24==4) && ( ((115 < a3) && (306 >= a3)) && ((((a18==9) || (a18==10)) && (input == 4)) && (a15==5))))){ + a3 = (((((a3 / 5) - -296) * 5) % 55)- -338); + a24 = 0; + a18 = 11; + + return 21; + } else if((((a15==6) && ((a18==10) && ((input == 2) && ((306 < a3) && (417 >= a3)) ))) && (a24==1))){ + + a24 = 0; + a18 = 12; + + return -1; + } else if((((((input == 1) && ((a18==10) || (a18==11))) && a3 <= 115 ) && (a15==6)) && (a24==2))){ + a3 = ((((a3 % 299791)+ 300208) + 1) + 0); + a24 = 0; + a18 = 11; + + return -1; + } else if((( ((306 < a3) && (417 >= a3)) && ((a15==6) && ((input == 5) && (a24==3)))) && (a18==8))){ + a3 = ((((a3 / 5) + 335232) - -192484) + -697164); + a24 = 0; + a15 = 4; + + return -1; + } else if(((a15==5) && (((((a18==10) || (a18==11)) && (input == 6)) && a3 <= 115 ) && (a24==0)))){ + a3 = (((((a3 % 55)- -361) + 2) / 5) + 262); + a24 = 2; + a18 = 12; + + return 26; + } else if(((a15==6) && (((a24==3) && (((a18==11) || (a18==12)) && (input == 4))) && ((115 < a3) && (306 >= a3)) ))){ + a3 = ((((a3 / 5) + 235204) * 10)/ 9); + a24 = 0; + a18 = 9; + + return -1; + } else if((((((a24==3) && (input == 1)) && (a18==9)) && a3 <= 115 ) && (a15==4))){ + + a24 = 0; + a18 = 8; + + return -1; + } else if((((a24==1) && ((input == 3) && ((( ((115 < a3) && (306 >= a3)) && (a18==11)) || ((a18==12) && ((115 < a3) && (306 >= a3)) )) || ( ((306 < a3) && (417 >= a3)) && (a18==8))))) && (a15==5))){ + a3 = (((a3 * -5) + -458640) + -74105); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((((a24==4) && ((input == 4) && (a18==8))) && ((115 < a3) && (306 >= a3)) ) && (a15==4))){ + a3 = (((a3 * 5) - 152212) + -319037); + a24 = 0; + + return -1; + } else if(((a15==6) && ((a24==0) && (((((a18==9) || (a18==10)) || (a18==11)) && (input == 6)) && a3 <= 115 )))){ + a3 = (((((a3 - -256975) - -72978) + 59929) % 299791)+ 300208); + a24 = 2; + a18 = 9; + a15 = 4; + + return -1; + } else if(((a18==11) && ( ((115 < a3) && (306 >= a3)) && (((input == 4) && (a24==0)) && (a15==6))))){ + a3 = (((a3 / 5) + -494978) + 495292); + a24 = 2; + a18 = 10; + + return 25; + } else if(( ((306 < a3) && (417 >= a3)) && ((a15==6) && ((a18==11) && ((input == 4) && (a24==1)))))){ + a3 = ((((a3 - 417466) * 10)/ 9) - 65788); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a15==5) && ((a24==0) && ((((a18==9) || (a18==10)) || (a18==11)) && (input == 2)))) && ((115 < a3) && (306 >= a3)) )){ + a3 = ((((a3 + -413155) * 10)/ 9) - 35418); + a18 = 8; + a15 = 4; + + return -1; + } else if(( ((306 < a3) && (417 >= a3)) && ((a15==4) && (((input == 6) && ((a18==10) || ((a18==8) || (a18==9)))) && (a24==4))))){ + a3 = (((a3 / 5) * -5) - 173631); + a24 = 0; + a18 = 8; + + return -1; + } else if((((a24==1) && (((input == 6) && ((a18==10) || ((a18==8) || (a18==9)))) && 417 < a3 )) && (a15==6))){ + a3 = ((((((a3 % 55)+ 330) * 1) * 5) % 55)+ 326); + a24 = 2; + a18 = 8; + a15 = 4; + + return -1; + } else if(((((((a18==9) || (a18==10)) && (input == 5)) && (a24==2)) && (a15==5)) && ((115 < a3) && (306 >= a3)) )){ + a3 = ((((a3 / 5) / 5) / 5) + 580327); + a18 = 8; + a15 = 6; + + return 22; + } else if((((a15==5) && ((input == 6) && ((((a18==11) && a3 <= 115 ) || ((a18==12) && a3 <= 115 )) || ( ((115 < a3) && (306 >= a3)) && (a18==8))))) && (a24==4))){ + a3 = ((((a3 % 300057)- 299941) / 5) + -398005); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==6) && ((a24==2) && ((((a18==10) || (a18==11)) && (input == 3)) && a3 <= 115 )))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((((input == 4) && (( a3 <= 115 && (a18==12)) || ( ((115 < a3) && (306 >= a3)) && (a18==8)))) && (a15==5)) && (a24==1))){ + a3 = ((((a3 * 9)/ 10) - 50450) - 3494); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(( a3 <= 115 && (((a18==9) && ((input == 5) && (a15==5))) && (a24==0)))){ + + a18 = 8; + a15 = 4; + + return -1; + } else if(((((((a18==8) && 417 < a3 ) || (( ((306 < a3) && (417 >= a3)) && (a18==11)) || ( ((306 < a3) && (417 >= a3)) && (a18==12)))) && (input == 6)) && (a24==3)) && (a15==4))){ + a3 = (((a3 - 0) + -600115) - 69); + a24 = 0; + a18 = 8; + + return -1; + } else if((((a18==12) && ( a3 <= 115 && ((input == 6) && (a15==6)))) && (a24==2))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a15==6) && (((((a18==11) && ((115 < a3) && (306 >= a3)) ) || ( ((115 < a3) && (306 >= a3)) && (a18==12))) || ( ((306 < a3) && (417 >= a3)) && (a18==8))) && (input == 3))) && (a24==2))){ + a3 = (((a3 / 5) + 328) - -2); + a24 = 1; + a18 = 8; + + return -1; + } else if(((a15==6) && (((((a18==9) && 417 < a3 ) || (( ((306 < a3) && (417 >= a3)) && (a18==12)) || ( 417 < a3 && (a18==8)))) && (input == 5)) && (a24==3)))){ + a3 = (((((a3 % 95)+ 154) * 9)/ 10) + -3); + a18 = 10; + a15 = 4; + + return -1; + } else if((((((((a18==8) || (a18==9)) || (a18==10)) && (input == 2)) && (a15==5)) && (a24==3)) && ((306 < a3) && (417 >= a3)) )){ + a3 = (((((a3 - 161) - -42) / 5) * 32)/ 10); + a18 = 11; + a15 = 4; + + return 26; + } else if(( ((115 < a3) && (306 >= a3)) && ((a15==5) && ((a18==8) && ((input == 2) && (a24==2)))))){ + a3 = (((a3 - -26663) / 5) - -390761); + a24 = 0; + a15 = 6; + + return 22; + } else if(((((a15==6) && ((((a18==10) || (a18==11)) || (a18==12)) && (input == 5))) && a3 <= 115 ) && (a24==1))){ + a3 = ((((a3 % 55)+ 361) - 0) * 1); + a24 = 4; + a18 = 9; + a15 = 4; + + return 25; + } else if(((((((a18==10) || ((a18==8) || (a18==9))) && (input == 6)) && 417 < a3 ) && (a24==4)) && (a15==5))){ + a3 = (((a3 + -600048) - 20) / 5); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(( 417 < a3 && ((a15==5) && ((((a18==8) || (a18==9)) && (input == 2)) && (a24==3))))){ + a3 = ((((((a3 * 9)/ 10) % 95)+ 198) - -450812) - 450873); + a24 = 0; + a18 = 9; + + return 26; + } else if(((((input == 5) && ((((a18==11) && ((115 < a3) && (306 >= a3)) ) || ( ((115 < a3) && (306 >= a3)) && (a18==12))) || ( ((306 < a3) && (417 >= a3)) && (a18==8)))) && (a15==6)) && (a24==2))){ + a3 = (((((a3 * 5) % 55)- -315) - -396523) + -396526); + a24 = 0; + a18 = 9; + + return -1; + } else if((( a3 <= 115 && ((a24==1) && ((input == 4) && ((a18==9) || (a18==10))))) && (a15==5))){ + + a24 = 0; + a18 = 11; + a15 = 6; + + return 25; + } else if((((a15==6) && (((input == 5) && ((a18==10) || (a18==11))) && a3 <= 115 )) && (a24==2))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==6) && ( ((306 < a3) && (417 >= a3)) && ((a24==0) && (((a18==11) || (a18==12)) && (input == 2)))))){ + a3 = (((a3 + -496276) - 86553) - -262868); + a18 = 8; + a15 = 4; + + return -1; + } else if((( a3 <= 115 && (((a18==8) && (input == 4)) && (a15==5))) && (a24==1))){ + + a24 = 0; + a15 = 4; + + return -1; + } else if((((a24==3) && (((input == 3) && ((a18==10) || (a18==11))) && (a15==6))) && 417 < a3 )){ + + a24 = 4; + a18 = 11; + a15 = 4; + + return 26; + } else if(((a18==9) && ( a3 <= 115 && (((input == 6) && (a24==2)) && (a15==5))))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==5) && ( 417 < a3 && ((((a18==10) || ((a18==8) || (a18==9))) && (input == 4)) && (a24==4))))){ + + a24 = 2; + a18 = 9; + a15 = 6; + + return 26; + } else if(((a24==2) && (( a3 <= 115 && ((input == 5) && ((a18==10) || (a18==11)))) && (a15==5)))){ + a3 = (((((a3 % 55)- -362) - 1) + -285407) + 285408); + a24 = 3; + a18 = 9; + a15 = 6; + + return 22; + } else if(((a24==0) && (((((a18==11) || ((a18==9) || (a18==10))) && (input == 4)) && 417 < a3 ) && (a15==6)))){ + a3 = (((((a3 - 0) + -550575) / 5) % 55)- -362); + a24 = 4; + a18 = 8; + a15 = 4; + + return -1; + } else if((((((input == 2) && ((115 < a3) && (306 >= a3)) ) && (a15==5)) && (a24==0)) && (a18==12))){ + a3 = (((a3 + 471605) * -1) - 35997); + a18 = 8; + a15 = 4; + + return -1; + } else if(((a24==0) && ((a15==6) && ((input == 4) && (((a18==12) && a3 <= 115 ) || ((a18==8) && ((115 < a3) && (306 >= a3)) )))))){ + a3 = ((((a3 + 51670) % 299791)+ 300208) - 0); + a24 = 1; + a18 = 11; + + return 22; + } else if((((((input == 6) && (a15==5)) && a3 <= 115 ) && (a24==0)) && (a18==9))){ + + a18 = 8; + a15 = 4; + + return -1; + } else if((((a24==1) && ((input == 6) && (( a3 <= 115 && (a18==12)) || ((a18==8) && ((115 < a3) && (306 >= a3)) )))) && (a15==5))){ + a3 = (((((a3 - -342184) * 1) - -67276) % 300057)+ -299941); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((( ((306 < a3) && (417 >= a3)) && ((a24==4) && ((input == 2) && ((a18==11) || (a18==12))))) && (a15==5))){ + + a24 = 3; + a18 = 8; + a15 = 6; + + return 25; + } else if(( ((306 < a3) && (417 >= a3)) && ((a24==0) && (((input == 1) && ((a18==11) || (a18==12))) && (a15==5))))){ + a3 = ((((a3 + 82715) * -5) * 10)/ 9); + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==4) && (((((a18==10) || ((a18==8) || (a18==9))) && (input == 4)) && (a24==3)) && ((306 < a3) && (417 >= a3)) ))){ + a3 = ((((a3 - 281062) - -189973) / 5) + 18380); + a24 = 4; + a18 = 10; + + return 25; + } else if(( 417 < a3 && ((a15==4) && ((((a18==9) || (a18==10)) && (input == 3)) && (a24==4))))){ + + a24 = 1; + a18 = 11; + a15 = 5; + + return 26; + } else if(((a15==5) && ((((input == 1) && (a24==4)) && (a18==10)) && a3 <= 115 ))){ + a3 = (((((a3 * 9)/ 10) / 5) % 55)- -361); + a24 = 1; + a15 = 4; + + return -1; + } else if(((a15==5) && ( ((115 < a3) && (306 >= a3)) && ((a18==12) && ((a24==0) && (input == 5)))))){ + a3 = ((((a3 - 527731) * -1)/ 10) + 75216); + a24 = 3; + a18 = 11; + + return 25; + } else if(( 417 < a3 && (((a24==3) && (((a18==10) || (a18==11)) && (input == 6))) && (a15==6)))){ + a3 = ((((a3 - 0) + -235764) - -210834) + -575453); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==6) && ((((input == 2) && ((a18==11) || (a18==12))) && (a24==3)) && ((115 < a3) && (306 >= a3)) ))){ + a3 = (((a3 + -181485) - -640692) + -655914); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(( ((306 < a3) && (417 >= a3)) && ((((((a18==9) || (a18==10)) || (a18==11)) && (input == 2)) && (a15==6)) && (a24==2)))){ + a3 = ((((a3 * 10)/ 7) - -506955) * 1); + a24 = 1; + a18 = 9; + + return -1; + } else if(((a24==0) && ((a15==6) && ((( a3 <= 115 && (a18==12)) || ( ((115 < a3) && (306 >= a3)) && (a18==8))) && (input == 5))))){ + a3 = (((((a3 % 300057)- 299941) + -2) - -24950) + -24948); + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==5) && ((input == 3) && ((((a24==4) && (a18==9)) && a3 <= 115 ) || (( 417 < a3 && ((a24==3) && (a18==12))) || ( a3 <= 115 && ((a24==4) && (a18==8)))))))){ + a3 = ((((a3 + 0) % 300057)+ -299941) + -3); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a24==3) && (((((a18==8) || (a18==9)) && (input == 4)) && (a15==4)) && ((115 < a3) && (306 >= a3)) ))){ + a3 = (((a3 + -3630) - 330740) - -61086); + a24 = 0; + a18 = 8; + + return -1; + } else if(((a15==6) && ((input == 1) && (( a3 <= 115 && ((a24==2) && (a18==8))) || ((((a18==11) && (a24==1)) && 417 < a3 ) || (((a18==12) && (a24==1)) && 417 < a3 )))))){ + a3 = ((((a3 % 300057)- 299941) * 1) - 2); + a24 = 1; + a18 = 12; + + return -1; + } else if(( ((115 < a3) && (306 >= a3)) && ((a24==0) && ((a15==6) && ((input == 5) && (a18==11)))))){ + a3 = ((((((a3 + -233915) % 55)- -372) * 5) % 55)+ 320); + a24 = 1; + a18 = 12; + a15 = 4; + + return -1; + } else if(((a15==6) && (((( 417 < a3 && ((a24==0) && (a18==12))) || (((a18==8) && (a24==1)) && a3 <= 115 )) || (((a24==1) && (a18==9)) && a3 <= 115 )) && (input == 6)))){ + a3 = ((((a3 % 300057)- 299941) * 1) - 2); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==4) && ( ((115 < a3) && (306 >= a3)) && ((a24==4) && ((input == 2) && ((a18==11) || (a18==12))))))){ + a3 = (((a3 * 5) / 5) * -5); + a24 = 0; + a18 = 8; + + return -1; + } else if(((((a24==3) && ((input == 4) && (((a18==8) || (a18==9)) || (a18==10)))) && ((306 < a3) && (417 >= a3)) ) && (a15==5))){ + a3 = (((a3 / 5) + 310616) * -1); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==6) && ((((((a18==9) || (a18==10)) || (a18==11)) && (input == 3)) && (a24==2)) && ((306 < a3) && (417 >= a3)) ))){ + a3 = (((((a3 - 175) * 5) - 464342) % 95)+ 231); + a24 = 1; + a18 = 12; + + return -1; + } else if(((a24==0) && (((input == 6) && (((a18==12) && a3 <= 115 ) || ((a18==8) && ((115 < a3) && (306 >= a3)) ))) && (a15==5)))){ + a3 = (((a3 / 5) - 80019) + -55888); + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==5) && ((a24==4) && ((input == 3) && (((a18==8) && ((115 < a3) && (306 >= a3)) ) || (((a18==11) && a3 <= 115 ) || ((a18==12) && a3 <= 115 ))))))){ + a3 = ((((a3 % 300057)- 299941) + -2) - 1); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a15==5) && (((input == 3) && ((a18==11) || (a18==12))) && (a24==4))) && ((115 < a3) && (306 >= a3)) )){ + a3 = (((a3 - -556691) + 19755) + 1901); + a24 = 0; + a18 = 8; + a15 = 6; + + return 22; + } else if((( a3 <= 115 && ((a15==6) && (((a18==11) || ((a18==9) || (a18==10))) && (input == 1)))) && (a24==0))){ + a3 = (((((a3 % 95)+ 211) - 337944) + 322681) + 15262); + a24 = 1; + a18 = 11; + + return 25; + } else if(((( a3 <= 115 && ((input == 2) && (a24==4))) && (a18==10)) && (a15==4))){ + + a24 = 0; + a18 = 8; + + return -1; + } else if(((a15==6) && ((a24==0) && ((( ((306 < a3) && (417 >= a3)) && (a18==9)) || (( ((115 < a3) && (306 >= a3)) && (a18==12)) || ( ((306 < a3) && (417 >= a3)) && (a18==8)))) && (input == 4))))){ + a3 = (((((a3 * 5) - 539276) - -945607) % 55)- -325); + a18 = 9; + + return 22; + } else if((((input == 5) && ((((a18==8) && (a24==2)) && a3 <= 115 ) || (( 417 < a3 && ((a24==1) && (a18==11))) || (((a24==1) && (a18==12)) && 417 < a3 )))) && (a15==6))){ + a3 = (((((a3 % 300057)- 299941) * 1) + 541081) - 541082); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a24==0) && (( ((115 < a3) && (306 >= a3)) && (((a18==9) || (a18==10)) && (input == 6))) && (a15==6)))){ + a3 = (((a3 + 502459) + 8631) + -1092299); + a18 = 8; + a15 = 4; + + return -1; + } else if(((( ((115 < a3) && (306 >= a3)) && ((((a18==10) || (a18==11)) || (a18==12)) && (input == 1))) && (a15==5)) && (a24==3))){ + a3 = (((a3 + -295614) * 2) + -4517); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a15==5) && ((input == 1) && (((a18==12) && a3 <= 115 ) || ( ((115 < a3) && (306 >= a3)) && (a18==8))))) && (a24==0))){ + a3 = (((((a3 % 300057)- 299941) + -3) * 9)/ 10); + a18 = 8; + a15 = 4; + + return -1; + } else if(((a24==1) && (((( 417 < a3 && (a18==8)) || (( ((306 < a3) && (417 >= a3)) && (a18==11)) || ( ((306 < a3) && (417 >= a3)) && (a18==12)))) && (input == 2)) && (a15==5)))){ + a3 = (((a3 - 225429) / 5) + -274418); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(( ((115 < a3) && (306 >= a3)) && ((a24==3) && ((a15==6) && ((input == 2) && ((a18==10) || ((a18==8) || (a18==9)))))))){ + + a24 = 0; + a18 = 10; + a15 = 4; + + return -1; + } else if(( a3 <= 115 && ((a15==5) && ((a24==0) && ((input == 4) && (a18==8)))))){ + + a15 = 4; + + return -1; + } else if(((((((a18==8) || (a18==9)) && (input == 3)) && (a15==5)) && 417 < a3 ) && (a24==0))){ + a3 = ((((a3 * 9)/ 10) - -58077) + -636180); + a18 = 8; + a15 = 4; + + return -1; + } else if((( 417 < a3 && ((a15==6) && ((input == 3) && (((a18==8) || (a18==9)) || (a18==10))))) && (a24==1))){ + a3 = ((((a3 - 362576) % 55)- -361) * 1); + a18 = 8; + + return -1; + } else if((((a15==4) && ((a24==4) && (((a18==9) || (a18==10)) && (input == 4)))) && ((115 < a3) && (306 >= a3)) )){ + a3 = (((a3 / -5) / 5) - 368802); + a24 = 0; + a18 = 8; + + return -1; + } else if((((((input == 4) && ((a18==9) || (a18==10))) && (a24==1)) && (a15==5)) && 417 < a3 )){ + a3 = ((((a3 % 55)- -317) + 43) + -53); + a24 = 2; + a18 = 8; + a15 = 6; + + return 21; + } else if((((a15==6) && (((input == 2) && 417 < a3 ) && (a18==8))) && (a24==0))){ + + return 21; + } else if((( ((115 < a3) && (306 >= a3)) && (((input == 5) && (a18==8)) && (a24==4))) && (a15==4))){ + a3 = ((((a3 * 10)/ 2) + 361821) - -109713); + a24 = 0; + a18 = 10; + a15 = 5; + + return 22; + } else if(((((( ((115 < a3) && (306 >= a3)) && (a18==8)) || (( a3 <= 115 && (a18==11)) || ( a3 <= 115 && (a18==12)))) && (input == 1)) && (a24==4)) && (a15==5))){ + a3 = (((((a3 / 5) - 388906) * 1) % 95)- -232); + a24 = 3; + a18 = 12; + a15 = 4; + + return 25; + } else if(((a18==8) && ((a15==4) && ( ((115 < a3) && (306 >= a3)) && ((a24==4) && (input == 2)))))){ + a3 = (((a3 + -348052) * 1) * 1); + a24 = 0; + + return -1; + } else if((((a24==1) && ((( a3 <= 115 && (a18==12)) || ((a18==8) && ((115 < a3) && (306 >= a3)) )) && (input == 5))) && (a15==5))){ + a3 = ((((a3 + 460537) - -99317) % 300057)+ -299941); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((((a15==4) && ((input == 1) && ((a18==11) || (a18==12)))) && ((115 < a3) && (306 >= a3)) ) && (a24==4))){ + a3 = (((a3 + -264808) / 5) + -532776); + a24 = 1; + a18 = 11; + a15 = 5; + + return 22; + } else if(((a15==5) && ((a24==4) && (((( a3 <= 115 && (a18==11)) || ((a18==12) && a3 <= 115 )) || ( ((115 < a3) && (306 >= a3)) && (a18==8))) && (input == 2))))){ + a3 = ((((a3 - 0) % 300057)+ -299941) * 1); + a18 = 12; + + return 26; + } else if((((input == 3) && (( 417 < a3 && ((a18==12) && (a24==1))) || (((a18==8) && (a24==2)) && a3 <= 115 ))) && (a15==5))){ + a3 = ((((a3 % 300057)+ -299941) + 186485) + -186486); + a24 = 3; + a18 = 12; + a15 = 6; + + return 25; + } + return calculate_output3(input); + } + + int calculate_output3(int input) { + + + if(( ((115 < a3) && (306 >= a3)) && ((a15==6) && ((a24==1) && ((input == 1) && ((a18==10) || ((a18==8) || (a18==9)))))))){ + a3 = ((((a3 * 5) - 228379) * 10)/ 9); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(( ((306 < a3) && (417 >= a3)) && ((a18==10) && ((a24==0) && ((input == 5) && (a15==6)))))){ + a3 = (((((a3 - 578654) + 578540) * 5) % 95)- -177); + a24 = 4; + a18 = 12; + a15 = 4; + + return -1; + } else if((((a18==10) && ( ((115 < a3) && (306 >= a3)) && ((a24==3) && (input == 5)))) && (a15==4))){ + a3 = (((a3 + 480105) + -828894) * 1); + a24 = 0; + a18 = 8; + + return -1; + } else if(((((a18==8) && ((input == 1) && (a24==0))) && (a15==5)) && a3 <= 115 )){ + a3 = (((((a3 * 9)/ 10) / 5) % 95)- -211); + a24 = 2; + a18 = 9; + + return 26; + } else if(((a15==5) && ((((input == 1) && ((a18==9) || (a18==10))) && (a24==4)) && ((115 < a3) && (306 >= a3)) ))){ + a3 = ((((a3 - 220252) + -152971) - -519832) + -704390); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((( a3 <= 115 && (((a18==9) && (input == 3)) && (a15==6))) && (a24==2))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a24==3) && ((a15==5) && ( ((306 < a3) && (417 >= a3)) && ((input == 6) && (((a18==8) || (a18==9)) || (a18==10))))))){ + a3 = (((a3 - -224713) + -318603) - 374075); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((( a3 <= 115 && (((input == 5) && (a15==6)) && (a18==12))) && (a24==2))){ + a3 = (((((a3 + 0) - -198715) - -161935) % 55)- -361); + a24 = 0; + + return -1; + } else if((((a18==9) && (((input == 2) && (a24==3)) && a3 <= 115 )) && (a15==4))){ + + a18 = 11; + + return 25; + } else if(((a15==5) && (( ((306 < a3) && (417 >= a3)) && ((input == 2) && ((a18==10) || ((a18==8) || (a18==9))))) && (a24==4)))){ + a3 = (((a3 / -5) * 5) / 5); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==5) && ((a24==1) && ((a18==11) && ((input == 4) && 417 < a3 ))))){ + a3 = (((((a3 * 9)/ 10) % 55)+ 322) * 1); + a24 = 2; + a15 = 6; + + return 25; + } else if(((((a15==5) && ((input == 1) && (a24==3))) && a3 <= 115 ) && (a18==12))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((((a15==5) && ((a24==1) && (input == 3))) && a3 <= 115 ) && (a18==8))){ + + a24 = 0; + a15 = 4; + + return -1; + } else if((((((input == 2) && ((a18==11) || (a18==12))) && (a15==5)) && (a24==0)) && ((306 < a3) && (417 >= a3)) )){ + a3 = (((a3 * -5) / 5) * 5); + a24 = 4; + a18 = 12; + + return 21; + } else if(((a18==11) && ((a15==5) && (( ((306 < a3) && (417 >= a3)) && (input == 2)) && (a24==3))))){ + a3 = (((a3 * -5) + 225437) + -658289); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==4) && ((((input == 3) && ((115 < a3) && (306 >= a3)) ) && (a24==4)) && (a18==8)))){ + a3 = (((a3 + 576835) + 10477) * -1); + a24 = 0; + + return -1; + } else if(((((((a18==8) || (a18==9)) && (input == 5)) && (a15==5)) && 417 < a3 ) && (a24==3))){ + a3 = (((a3 / -5) * 4) / 5); + a24 = 2; + a18 = 8; + a15 = 6; + + return 25; + } else if(( ((306 < a3) && (417 >= a3)) && ((((input == 6) && ((a18==8) || (a18==9))) && (a15==6)) && (a24==1)))){ + a3 = (((a3 - 221948) - 334823) * 1); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((( a3 <= 115 && ((input == 2) && (a18==10))) && (a24==4)) && (a15==5))){ + + a18 = 12; + a15 = 4; + + return 26; + } else if(( ((115 < a3) && (306 >= a3)) && ((((((a18==9) || (a18==10)) || (a18==11)) && (input == 1)) && (a15==5)) && (a24==0)))){ + a3 = (((a3 + -27346) + -170095) + -360716); + a18 = 8; + a15 = 4; + + return -1; + } else if(((a24==0) && ((a15==6) && ( 417 < a3 && (((a18==11) || ((a18==9) || (a18==10))) && (input == 5)))))){ + a3 = (((a3 + -550462) + -49929) * 1); + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==5) && ((( 417 < a3 && ((a18==12) && (a24==1))) || ( a3 <= 115 && ((a18==8) && (a24==2)))) && (input == 1)))){ + a3 = ((((((a3 % 95)+ 211) - 1) / 5) * 51)/ 10); + a24 = 3; + a18 = 8; + a15 = 6; + + return 25; + } else if(((a15==6) && (((( 417 < a3 && ((a24==2) && (a18==12))) || (((a18==8) && (a24==3)) && a3 <= 115 )) || (((a24==3) && (a18==9)) && a3 <= 115 )) && (input == 2)))){ + a3 = ((((a3 + 0) % 300057)- 299941) * 1); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a18==12) && ((((a15==5) && (input == 4)) && (a24==3)) && ((306 < a3) && (417 >= a3)) ))){ + a3 = (((a3 + -210461) / 5) - 424035); + a24 = 4; + a18 = 10; + a15 = 4; + + return 25; + } else if(((a18==8) && ((a24==2) && (((a15==5) && (input == 3)) && ((115 < a3) && (306 >= a3)) )))){ + + a24 = 0; + a18 = 12; + a15 = 6; + + return 22; + } else if(((a18==10) && (((a24==1) && ( ((306 < a3) && (417 >= a3)) && (input == 1))) && (a15==6)))){ + a3 = (((a3 + -210212) + -222317) + -2929); + a18 = 11; + + return -1; + } else if(((a15==5) && ((((input == 1) && 417 < a3 ) && (a24==3)) && (a18==10)))){ + a3 = ((((a3 - 600318) / 5) - -154691) * -3); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a24==3) && (((a15==6) && (input == 3)) && (a18==8))) && ((306 < a3) && (417 >= a3)) )){ + a3 = (((a3 * -5) / 5) + -202524); + a24 = 0; + a15 = 4; + + return -1; + } else if(((a15==5) && (( a3 <= 115 && ((a18==12) && (input == 5))) && (a24==3)))){ + a3 = ((((((a3 % 55)- -362) * 5) * 5) % 55)+ 362); + a24 = 0; + a18 = 9; + a15 = 6; + + return 22; + } else if(((a24==3) && ((a15==6) && ((( 417 < a3 && (a18==9)) || (((a18==12) && ((306 < a3) && (417 >= a3)) ) || ((a18==8) && 417 < a3 ))) && (input == 3))))){ + a3 = ((((((a3 % 55)- -308) + 21) / 5) * 48)/ 10); + a24 = 0; + a18 = 9; + a15 = 4; + + return -1; + } else if(( 417 < a3 && (((a15==5) && ((input == 5) && ((a18==12) || ((a18==10) || (a18==11))))) && (a24==0)))){ + a3 = ((((a3 * 9)/ 10) - -36392) - 632350); + a18 = 8; + a15 = 4; + + return -1; + } else if(((input == 6) && ((( 417 < a3 && ((a15==5) && ((a24==4) && (a18==11)))) || ( 417 < a3 && (((a24==4) && (a18==12)) && (a15==5)))) || ((((a18==8) && (a24==0)) && (a15==6)) && a3 <= 115 )))){ + a3 = (((((a3 * 9)/ 10) % 300057)+ -299941) * 1); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((input == 6) && ((( 417 < a3 && ((a18==12) && (a24==2))) || ( a3 <= 115 && ((a24==3) && (a18==8)))) || (((a18==9) && (a24==3)) && a3 <= 115 ))) && (a15==5))){ + a3 = ((((a3 + 0) % 300057)+ -299941) - 3); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a24==2) && (( a3 <= 115 && (input == 4)) && (a15==6))) && (a18==9))){ + + a24 = 1; + a18 = 12; + + return -1; + } else if((((a15==5) && ( 417 < a3 && ((input == 3) && ((a18==8) || (a18==9))))) && (a24==3))){ + a3 = (((a3 + -600125) / 5) - 225046); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a24==0) && ( ((306 < a3) && (417 >= a3)) && ((((a18==11) || (a18==12)) && (input == 5)) && (a15==6))))){ + a3 = (((a3 * -5) * 5) + -417846); + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==4) && (((( 417 < a3 && ((a24==3) && (a18==12))) || (((a24==4) && (a18==8)) && a3 <= 115 )) || ( a3 <= 115 && ((a18==9) && (a24==4)))) && (input == 3)))){ + a3 = ((((a3 % 300057)- 299941) - 0) / 5); + a24 = 0; + a18 = 8; + + return -1; + } else if(((((( 417 < a3 && (a18==9)) || (( ((306 < a3) && (417 >= a3)) && (a18==12)) || ((a18==8) && 417 < a3 ))) && (input == 1)) && (a15==6)) && (a24==3))){ + a3 = (((a3 - 600180) + -68) + -5); + a24 = 0; + a18 = 9; + a15 = 4; + + return -1; + } else if(( a3 <= 115 && (((a18==12) && ((a15==5) && (input == 4))) && (a24==3)))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a18==11) && ((a15==5) && ((a24==1) && ((input == 3) && a3 <= 115 ))))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==5) && ((a24==4) && ( ((115 < a3) && (306 >= a3)) && ((input == 5) && ((a18==9) || (a18==10))))))){ + + a24 = 3; + a18 = 10; + a15 = 6; + + return 26; + } else if(( a3 <= 115 && ((a15==5) && ((a18==12) && ((a24==3) && (input == 2)))))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((( 417 < a3 && ((a18==12) && (a24==1))) || ( a3 <= 115 && ((a18==8) && (a24==2)))) && (input == 5)) && (a15==5))){ + a3 = ((((a3 % 300057)+ -299941) + -3) + 0); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a15==4) && ((((a18==8) || (a18==9)) && (input == 1)) && ((115 < a3) && (306 >= a3)) )) && (a24==3))){ + a3 = (((((a3 + -336354) * 10)/ 9) + 613674) * -2); + a24 = 0; + a18 = 8; + + return -1; + } else if((((( a3 <= 115 && ((a18==8) && (a24==2))) || (( 417 < a3 && ((a18==11) && (a24==1))) || (((a24==1) && (a18==12)) && 417 < a3 ))) && (input == 2)) && (a15==6))){ + a3 = (((a3 / 5) / 5) - 193557); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((((input == 4) && (a24==0)) && (a18==10)) && (a15==6)) && ((306 < a3) && (417 >= a3)) )){ + a3 = (((a3 * -5) - 26325) + -245415); + a18 = 8; + a15 = 4; + + return -1; + } else if(( 417 < a3 && ((a15==6) && (((((a18==9) || (a18==10)) || (a18==11)) && (input == 3)) && (a24==2))))){ + a3 = (((a3 - 600325) + -21) - 8); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==5) && ((((input == 1) && (a18==8)) && ((115 < a3) && (306 >= a3)) ) && (a24==2)))){ + a3 = (((((a3 + -399259) * 10)/ 9) - -480809) - 273660); + a24 = 0; + a15 = 4; + + return -1; + } else if(((((a24==3) && ((input == 6) && ((a18==10) || (a18==11)))) && a3 <= 115 ) && (a15==5))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((input == 6) && ((((a24==1) && (a18==12)) && 417 < a3 ) || ( a3 <= 115 && ((a24==2) && (a18==8))))) && (a15==5))){ + a3 = ((((a3 % 300057)- 299941) - 3) - 0); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((((((a18==10) || ((a18==8) || (a18==9))) && (input == 5)) && (a24==0)) && (a15==5)) && ((306 < a3) && (417 >= a3)) )){ + a3 = (((a3 - -442665) + 92897) + 22018); + a24 = 3; + a18 = 12; + + return 22; + } else if((( ((306 < a3) && (417 >= a3)) && ((((a18==10) || ((a18==8) || (a18==9))) && (input == 3)) && (a15==4))) && (a24==3))){ + a3 = (((a3 * -5) - -433285) + -717706); + a24 = 0; + a18 = 8; + + return -1; + } else if(((( 417 < a3 && ((input == 4) && ((a18==8) || (a18==9)))) && (a24==0)) && (a15==5))){ + a3 = (((a3 / 5) - -381686) - 967713); + a18 = 8; + a15 = 4; + + return -1; + } else if((((a24==1) && (( 417 < a3 && (input == 1)) && (a18==11))) && (a15==5))){ + + a24 = 2; + a18 = 12; + a15 = 6; + + return 21; + } else if((((a24==1) && ((input == 5) && ((((a18==11) && ((306 < a3) && (417 >= a3)) ) || ( ((306 < a3) && (417 >= a3)) && (a18==12))) || ((a18==8) && 417 < a3 )))) && (a15==5))){ + a3 = ((((a3 % 299791)+ 418) / 5) - -420468); + a18 = 8; + a15 = 6; + + return 21; + } else if(((((a15==6) && ((input == 1) && ((306 < a3) && (417 >= a3)) )) && (a18==8)) && (a24==3))){ + a3 = (((a3 - 586621) * 1) * 1); + a24 = 0; + a15 = 4; + + return -1; + } else if((((((input == 5) && ((a18==8) || (a18==9))) && (a15==5)) && 417 < a3 ) && (a24==0))){ + a3 = ((((a3 % 95)- -153) - -494189) + -494212); + a24 = 4; + a18 = 11; + + return 21; + } else if((((((input == 1) && ((a18==9) || (a18==10))) && (a15==5)) && ((306 < a3) && (417 >= a3)) ) && (a24==1))){ + a3 = ((((a3 / -5) * 10)/ 9) - 36262); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==5) && ((a18==11) && ((a24==1) && ( a3 <= 115 && (input == 4)))))){ + a3 = (((((a3 + 0) * 9)/ 10) % 95)+ 211); + a24 = 0; + a15 = 6; + + return 22; + } else if(((a15==5) && ( a3 <= 115 && (((input == 3) && (a24==0)) && (a18==9))))){ + + a18 = 8; + a15 = 4; + + return -1; + } else if((( ((306 < a3) && (417 >= a3)) && ((a15==5) && (((a18==11) || (a18==12)) && (input == 3)))) && (a24==4))){ + + a24 = 2; + a18 = 10; + a15 = 6; + + return 21; + } else if((((a24==1) && ((((a18==10) || ((a18==8) || (a18==9))) && (input == 2)) && (a15==6))) && ((115 < a3) && (306 >= a3)) )){ + a3 = (((a3 * 5) - 144511) * 4); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((( a3 <= 115 && ((input == 3) && (a18==12))) && (a15==6)) && (a24==2))){ + a3 = (((((a3 + 507416) % 55)+ 362) / 5) + 280); + a24 = 1; + a18 = 11; + + return -1; + } else if(((((((a24==3) && (a18==9)) && a3 <= 115 ) || (( 417 < a3 && ((a24==2) && (a18==12))) || (((a18==8) && (a24==3)) && a3 <= 115 ))) && (input == 5)) && (a15==5))){ + a3 = ((((a3 % 300057)+ -299941) - -3499) - 3501); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==5) && (((a24==0) && ((((a18==9) || (a18==10)) || (a18==11)) && (input == 6))) && ((115 < a3) && (306 >= a3)) ))){ + a3 = (((a3 + 251759) / 5) * 5); + a24 = 3; + a18 = 8; + + return 22; + } else if(( 417 < a3 && ((a15==6) && ((a24==2) && ((input == 5) && (((a18==9) || (a18==10)) || (a18==11))))))){ + a3 = (((a3 + -600416) * 1) + -1); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((((((a18==9) || (a18==10)) && (input == 6)) && (a24==1)) && a3 <= 115 ) && (a15==5))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==5) && (((input == 3) && (((a18==8) && 417 < a3 ) || (((a18==11) && ((306 < a3) && (417 >= a3)) ) || ( ((306 < a3) && (417 >= a3)) && (a18==12))))) && (a24==2)))){ + a3 = (((a3 / -5) * 4) * 1); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==4) && ( ((306 < a3) && (417 >= a3)) && ((a24==3) && (((a18==10) || ((a18==8) || (a18==9))) && (input == 5)))))){ + a3 = (((a3 * -5) * 5) + -421636); + a24 = 0; + a18 = 8; + + return -1; + } else if(((a24==0) && ((((input == 3) && ((a18==11) || ((a18==9) || (a18==10)))) && ((115 < a3) && (306 >= a3)) ) && (a15==5)))){ + a3 = (((((a3 % 55)+ 352) * 5) % 55)+ 346); + a24 = 3; + a18 = 8; + + return 21; + } else if(((a24==1) && ((((input == 2) && a3 <= 115 ) && (a15==5)) && (a18==11)))){ + a3 = (((((a3 + 0) * 9)/ 10) % 55)+ 362); + a24 = 0; + a18 = 10; + a15 = 6; + + return 26; + } else if((((a24==4) && ((a15==4) && ((input == 6) && ((a18==11) || (a18==12))))) && ((115 < a3) && (306 >= a3)) )){ + a3 = (((a3 - 556367) + 516565) - 261281); + a24 = 0; + a18 = 8; + + return -1; + } else if((((a18==8) && (((input == 6) && (a15==5)) && ((115 < a3) && (306 >= a3)) )) && (a24==2))){ + a3 = (((a3 - 75636) * 5) * 1); + a24 = 0; + a15 = 4; + + return -1; + } else if(((a24==1) && ((a15==6) && ((((a18==8) || (a18==9)) && (input == 5)) && ((306 < a3) && (417 >= a3)) )))){ + + a24 = 0; + a18 = 10; + + return -1; + } else if(( ((115 < a3) && (306 >= a3)) && (((a15==4) && ((input == 6) && ((a18==9) || (a18==10)))) && (a24==4)))){ + a3 = ((((a3 / -5) * 10)/ 9) * 5); + a24 = 0; + a18 = 8; + + return -1; + } else if(((a15==6) && (((a24==0) && (((a18==11) || ((a18==9) || (a18==10))) && (input == 5))) && a3 <= 115 ))){ + + a18 = 12; + a15 = 4; + + return -1; + } else if(((a15==6) && (((( ((306 < a3) && (417 >= a3)) && (a18==12)) || ((a18==8) && 417 < a3 )) && (input == 5)) && (a24==2)))){ + a3 = ((((a3 - 300331) % 299791)- -300208) + 1); + a24 = 1; + a18 = 11; + + return -1; + } else if(((a15==6) && (((((a18==11) || (a18==12)) && (input == 6)) && (a24==1)) && ((115 < a3) && (306 >= a3)) ))){ + a3 = (((a3 * 5) - 551568) - 18434); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((((((a18==8) || (a18==9)) || (a18==10)) && (input == 1)) && (a15==6)) && ((115 < a3) && (306 >= a3)) ) && (a24==2))){ + a3 = ((((a3 / 5) * -5) * 10)/ 9); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((((a15==4) && ((input == 3) && ((a18==11) || (a18==12)))) && a3 <= 115 ) && (a24==4))){ + + a24 = 0; + a18 = 8; + + return -1; + } else if(((a24==0) && ((((((a18==8) || (a18==9)) || (a18==10)) && (input == 1)) && ((306 < a3) && (417 >= a3)) ) && (a15==5)))){ + a3 = (((a3 + -393691) - -276142) - 216630); + a18 = 8; + a15 = 4; + + return -1; + } else if((((((input == 4) && ((a18==9) || (a18==10))) && ((115 < a3) && (306 >= a3)) ) && (a15==5)) && (a24==2))){ + + a18 = 10; + + return 22; + } else if((( ((115 < a3) && (306 >= a3)) && (((input == 3) && ((a18==11) || (a18==12))) && (a24==1))) && (a15==6))){ + a3 = (((a3 + -510291) + -59438) / 5); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a18==10) && (((a15==4) && (input == 2)) && (a24==3))) && ((115 < a3) && (306 >= a3)) )){ + a3 = (((a3 + -521291) * 1) + -9196); + a24 = 0; + a18 = 8; + + return -1; + } else if((((a15==6) && (((input == 6) && (a18==8)) && (a24==0))) && 417 < a3 )){ + a3 = ((((a3 + -600234) * 1) + 297586) - 297405); + a15 = 4; + + return -1; + } else if(((((((a18==8) || (a18==9)) && (input == 1)) && (a24==0)) && 417 < a3 ) && (a15==5))){ + a3 = (((a3 - 600243) - 161) - 12); + a18 = 8; + a15 = 4; + + return -1; + } else if((( 417 < a3 && ((((a18==10) || ((a18==8) || (a18==9))) && (input == 5)) && (a24==1))) && (a15==6))){ + a3 = (((((a3 * 9)/ 10) * 1) % 55)+ 345); + a18 = 11; + a15 = 5; + + return 22; + } else if(((((( a3 <= 115 && (a18==12)) || ((a18==8) && ((115 < a3) && (306 >= a3)) )) && (input == 1)) && (a15==5)) && (a24==1))){ + a3 = ((((a3 % 300057)- 299941) + -1) + -1); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((((a18==9) && (input == 1)) && a3 <= 115 ) && (a24==0)) && (a15==5))){ + + a18 = 8; + a15 = 4; + + return -1; + } else if((((a24==4) && ((((a18==10) || ((a18==8) || (a18==9))) && (input == 5)) && (a15==4))) && ((306 < a3) && (417 >= a3)) )){ + a3 = (((a3 * -5) * 5) + -544020); + a24 = 0; + a18 = 8; + + return -1; + } else if(( a3 <= 115 && ((a18==9) && (((a24==2) && (input == 6)) && (a15==6))))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==5) && (((((a18==11) || ((a18==9) || (a18==10))) && (input == 4)) && (a24==0)) && ((115 < a3) && (306 >= a3)) ))){ + a3 = (((((a3 % 55)- -326) / 5) * 48)/ 10); + a24 = 3; + a18 = 12; + + return 25; + } else if(((((a24==3) && ((input == 4) && ((306 < a3) && (417 >= a3)) )) && (a18==8)) && (a15==6))){ + a3 = (((a3 / -5) / 5) + -274110); + a24 = 2; + a18 = 9; + a15 = 5; + + return 21; + } else if(((a24==3) && ( ((306 < a3) && (417 >= a3)) && ((a15==6) && (((a18==11) || ((a18==9) || (a18==10))) && (input == 5)))))){ + a3 = ((((a3 + -19095) / 5) * 10)/ 9); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a15==5) && ((( 417 < a3 && (a18==8)) || (((a18==11) && ((306 < a3) && (417 >= a3)) ) || ((a18==12) && ((306 < a3) && (417 >= a3)) ))) && (input == 1))) && (a24==2))){ + a3 = ((((a3 % 95)- -152) - 524473) + 524442); + a24 = 3; + a18 = 12; + a15 = 4; + + return 25; + } else if(( ((306 < a3) && (417 >= a3)) && ((a24==1) && (((input == 6) && (a18==11)) && (a15==6))))){ + a3 = (((a3 * 5) - 174301) - 257370); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==6) && ((a24==2) && ((( ((306 < a3) && (417 >= a3)) && (a18==12)) || ((a18==8) && 417 < a3 )) && (input == 1))))){ + a3 = (((((a3 * 9)/ 10) / 5) * 5) * -1); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a24==4) && ( ((115 < a3) && (306 >= a3)) && ((input == 5) && ((a18==11) || (a18==12))))) && (a15==5))){ + a3 = (((a3 - -530317) * -1) - -511598); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a15==5) && ((input == 6) && (((a18==8) && ((306 < a3) && (417 >= a3)) ) || (((a18==11) && ((115 < a3) && (306 >= a3)) ) || ((a18==12) && ((115 < a3) && (306 >= a3)) ))))) && (a24==1))){ + a3 = (((a3 / -5) * 5) * 5); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((input == 5) && (( a3 <= 115 && ((a24==1) && (a18==9))) || ((((a24==0) && (a18==12)) && 417 < a3 ) || (((a24==1) && (a18==8)) && a3 <= 115 )))) && (a15==6))){ + a3 = (((((a3 * 9)/ 10) % 55)- -362) - -1); + a24 = 3; + a18 = 11; + a15 = 4; + + return 22; + } else if(((a15==5) && (((input == 5) && ((( ((115 < a3) && (306 >= a3)) && (a18==11)) || ((a18==12) && ((115 < a3) && (306 >= a3)) )) || ( ((306 < a3) && (417 >= a3)) && (a18==8)))) && (a24==1)))){ + a3 = (((a3 / -5) * 5) * 5); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a24==1) && ((a15==5) && ( 417 < a3 && ((input == 2) && ((a18==9) || (a18==10))))))){ + a3 = (((((a3 % 95)- -211) - 7) + -364409) - -364321); + a24 = 2; + a18 = 8; + a15 = 6; + + return 26; + } else if(( ((306 < a3) && (417 >= a3)) && ((((input == 6) && ((a18==9) || (a18==10))) && (a15==5)) && (a24==2)))){ + a3 = ((((a3 + -439044) + 888150) / 5) * -5); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==5) && ((((input == 4) && ((a18==10) || (a18==11))) && a3 <= 115 ) && (a24==3)))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==6) && ((a24==3) && (((input == 1) && (((a18==9) || (a18==10)) || (a18==11))) && ((306 < a3) && (417 >= a3)) )))){ + a3 = ((((a3 * -5) * 10)/ 9) - 248258); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a24==0) && ((((a18==8) || (a18==9)) && (input == 2)) && (a15==5))) && 417 < a3 )){ + a3 = ((((a3 / -5) + 439722) * 1) * -1); + a18 = 8; + a15 = 4; + + return -1; + } else if(((((( ((306 < a3) && (417 >= a3)) && (a18==8)) || (((a18==11) && ((115 < a3) && (306 >= a3)) ) || ( ((115 < a3) && (306 >= a3)) && (a18==12)))) && (input == 2)) && (a15==6)) && (a24==2))){ + a3 = (((a3 + -286536) + 462238) * -3); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((( 417 < a3 && (((input == 6) && (a18==11)) && (a15==5))) && (a24==3))){ + a3 = (((((a3 * 9)/ 10) / 5) / 5) * -5); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a24==3) && ( ((306 < a3) && (417 >= a3)) && ((a15==6) && ((input == 2) && (((a18==9) || (a18==10)) || (a18==11))))))){ + a3 = (((a3 - -499668) - -6024) / -5); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a24==3) && (( a3 <= 115 && (input == 3)) && (a18==12))) && (a15==5))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==5) && ((a24==3) && ((((a18==8) || (a18==9)) && (input == 5)) && ((115 < a3) && (306 >= a3)) )))){ + a3 = (((a3 - 531322) + 519310) / 5); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a24==4) && ((a15==5) && (((input == 3) && ((a18==10) || ((a18==8) || (a18==9)))) && 417 < a3 )))){ + a3 = ((((a3 - 150180) - 310980) + 456741) - 595726); + a24 = 1; + a18 = 8; + + return 26; + } else if((( a3 <= 115 && ((((a18==10) || (a18==11)) && (input == 4)) && (a15==6))) && (a24==2))){ + a3 = (((((a3 % 95)- -211) * 1) + 289514) + -289514); + a24 = 3; + a18 = 10; + a15 = 4; + + return -1; + } else if(((a24==0) && ((a15==6) && ((input == 3) && (( a3 <= 115 && (a18==12)) || ( ((115 < a3) && (306 >= a3)) && (a18==8))))))){ + a3 = ((((a3 + 94090) % 300057)- 299941) * 1); + a18 = 8; + a15 = 4; + + return -1; + } else if((((a15==5) && ((((a18==10) || ((a18==8) || (a18==9))) && (input == 5)) && 417 < a3 )) && (a24==4))){ + a3 = ((((((a3 - 0) % 55)+ 334) * 5) % 55)- -359); + a24 = 2; + a18 = 9; + a15 = 6; + + return 25; + } else if(((a15==6) && (((((a18==10) || ((a18==8) || (a18==9))) && (input == 6)) && ((115 < a3) && (306 >= a3)) ) && (a24==3)))){ + a3 = (((a3 / 5) - -320) - -35); + a24 = 1; + a18 = 11; + a15 = 4; + + return -1; + } else if((((a24==2) && (( a3 <= 115 && (input == 2)) && (a18==9))) && (a15==6))){ + + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==5) && ((a24==0) && ((((a18==12) && a3 <= 115 ) || ((a18==8) && ((115 < a3) && (306 >= a3)) )) && (input == 5))))){ + a3 = ((((((a3 * 9)/ 10) % 95)+ 211) - -438126) + -438125); + a24 = 3; + a18 = 8; + + return 25; + } else if(( 417 < a3 && (((a24==4) && (((a18==11) || (a18==12)) && (input == 6))) && (a15==4)))){ + a3 = (((a3 - 0) - 600138) + -71); + a24 = 0; + a18 = 8; + + return -1; + } else if(((a24==1) && (( ((115 < a3) && (306 >= a3)) && ((input == 1) && ((a18==11) || (a18==12)))) && (a15==6)))){ + + a18 = 11; + + return -1; + } else if(((a24==4) && (((((a18==10) || ((a18==8) || (a18==9))) && (input == 4)) && ((306 < a3) && (417 >= a3)) ) && (a15==4)))){ + a3 = ((((a3 * 5) % 95)- -125) * 1); + a24 = 1; + a18 = 10; + a15 = 5; + + return 25; + } else if(((a24==1) && (( a3 <= 115 && ((((a18==10) || (a18==11)) || (a18==12)) && (input == 2))) && (a15==6)))){ + a3 = (((((a3 + 0) % 55)- -362) + 458587) - 458587); + a24 = 0; + a18 = 10; + + return -1; + } else if((((a24==4) && ((a15==4) && ((a18==10) && (input == 1)))) && a3 <= 115 )){ + + a24 = 0; + a18 = 8; + + return -1; + } else if(((a15==5) && ((a24==4) && ( ((306 < a3) && (417 >= a3)) && ((input == 6) && ((a18==11) || (a18==12))))))){ + a3 = (((a3 * 5) - 574289) * 1); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((((a15==4) && ((input == 2) && ((a18==11) || ((a18==9) || (a18==10))))) && (a24==3)) && 417 < a3 )){ + a3 = (((a3 + -600129) - 241) / 5); + a24 = 0; + a18 = 8; + + return -1; + } else if(( ((115 < a3) && (306 >= a3)) && ((a24==0) && (((a18==12) && (input == 1)) && (a15==5))))){ + a3 = (((a3 * -5) / 5) * 5); + a18 = 8; + a15 = 4; + + return -1; + } else if((( ((306 < a3) && (417 >= a3)) && (((input == 6) && (a18==12)) && (a15==6))) && (a24==1))){ + a3 = (((a3 * 5) * -5) + -554351); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(( ((115 < a3) && (306 >= a3)) && ((((input == 2) && ((a18==11) || (a18==12))) && (a24==3)) && (a15==4)))){ + a3 = (((a3 - 406098) / 5) - 3614); + a24 = 0; + a18 = 8; + + return -1; + } else if(((((input == 5) && (((a18==8) && ((115 < a3) && (306 >= a3)) ) || (((a18==11) && a3 <= 115 ) || ((a18==12) && a3 <= 115 )))) && (a15==5)) && (a24==4))){ + a3 = ((((((a3 + 0) % 55)- -361) * 5) % 55)+ 352); + a24 = 0; + a18 = 10; + a15 = 6; + + return 25; + } else if(((((a24==2) && ( a3 <= 115 && (input == 3))) && (a15==5)) && (a18==12))){ + a3 = ((((((a3 % 55)+ 361) * 5) - -268768) % 55)+ 318); + a24 = 0; + a15 = 6; + + return 25; + } else if(((( ((306 < a3) && (417 >= a3)) && ((input == 3) && ((a18==8) || (a18==9)))) && (a24==1)) && (a15==6))){ + + a24 = 4; + a18 = 12; + a15 = 4; + + return 21; + } else if(((a24==4) && ((a15==5) && ( ((306 < a3) && (417 >= a3)) && ((input == 1) && ((a18==11) || (a18==12))))))){ + a3 = ((((a3 - -278437) / -5) * 10)/ 9); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((((a24==4) && (((a18==11) || (a18==12)) && (input == 5))) && (a15==5)) && ((306 < a3) && (417 >= a3)) )){ + + a24 = 1; + a18 = 11; + a15 = 6; + + return 25; + } else if(((a24==3) && ( ((115 < a3) && (306 >= a3)) && (((input == 1) && ((a18==8) || (a18==9))) && (a15==5))))){ + a3 = ((((a3 - -315256) + 60222) + 127166) - 671543); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((((input == 3) && ((a18==9) || (a18==10))) && ((306 < a3) && (417 >= a3)) ) && (a24==1)) && (a15==5))){ + + a18 = 12; + a15 = 6; + + return 21; + } else if((((a15==4) && (((input == 3) && (((a18==8) || (a18==9)) || (a18==10))) && (a24==4))) && ((306 < a3) && (417 >= a3)) )){ + a3 = (((a3 - 463226) - 56049) - 30162); + a24 = 0; + a18 = 8; + + return -1; + } else if(((((a15==5) && ((((a18==8) || (a18==9)) || (a18==10)) && (input == 3))) && ((306 < a3) && (417 >= a3)) ) && (a24==4))){ + a3 = (((a3 / -5) + -114427) + -219360); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((((input == 6) && (( 417 < a3 && (a18==8)) || (((a18==11) && ((306 < a3) && (417 >= a3)) ) || ( ((306 < a3) && (417 >= a3)) && (a18==12))))) && (a15==5)) && (a24==1))){ + a3 = ((((a3 * 9)/ 10) - 553048) / 5); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a15==6) && ((( ((306 < a3) && (417 >= a3)) && (a18==12)) || ( 417 < a3 && (a18==8))) && (input == 4))) && (a24==2))){ + a3 = (((a3 - 599977) - 211) + -66); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==5) && ( ((306 < a3) && (417 >= a3)) && ((a24==0) && ((input == 4) && ((a18==11) || (a18==12))))))){ + a3 = (((a3 - 120) + -386244) - -386210); + a24 = 4; + a18 = 10; + + return 21; + } else if((( 417 < a3 && ((a24==3) && ((input == 4) && (a18==10)))) && (a15==5))){ + a3 = ((((a3 + -546509) / 5) - -523087) * -1); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(( a3 <= 115 && ((a15==4) && (((input == 2) && ((a18==11) || (a18==12))) && (a24==4))))){ + + a24 = 0; + a18 = 8; + + return -1; + } else if(((((a24==3) && ((a15==4) && (input == 3))) && (a18==9)) && a3 <= 115 )){ + + a24 = 0; + a18 = 8; + + return -1; + } else if((((a15==5) && ((((a18==12) && a3 <= 115 ) || ((a18==8) && ((115 < a3) && (306 >= a3)) )) && (input == 4))) && (a24==0))){ + a3 = ((((a3 - -479640) % 300057)+ -299941) - 1); + a24 = 3; + a18 = 12; + + return 25; + } else if((((((a18==11) && (input == 1)) && (a24==3)) && ((306 < a3) && (417 >= a3)) ) && (a15==5))){ + a3 = ((((a3 * -5) - -47142) * 5) * -2); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==5) && ((a24==1) && ( ((115 < a3) && (306 >= a3)) && ((input == 4) && ((a18==9) || (a18==10))))))){ + a3 = ((((a3 * -5) / 5) + 310281) * -1); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a24==3) && (( 417 < a3 && (((a18==8) || (a18==9)) && (input == 4))) && (a15==5)))){ + + a18 = 8; + + return 25; + } else if((((((a15==4) && (input == 3)) && (a18==10)) && ((115 < a3) && (306 >= a3)) ) && (a24==3))){ + a3 = (((a3 - 561788) + -19243) + -17216); + a24 = 0; + a18 = 8; + + return -1; + } else if((((a24==0) && (((input == 6) && ((115 < a3) && (306 >= a3)) ) && (a15==5))) && (a18==12))){ + a3 = (((a3 / 5) + 441283) - 445116); + a18 = 8; + a15 = 4; + + return -1; + } else if(( ((306 < a3) && (417 >= a3)) && ((a15==6) && (((input == 6) && (a18==8)) && (a24==3))))){ + a3 = (((((a3 + -47974) * 10)/ 9) + 376027) + -859195); + a24 = 0; + a15 = 4; + + return -1; + } else if(( ((115 < a3) && (306 >= a3)) && (((a24==1) && ((input == 2) && ((a18==9) || (a18==10)))) && (a15==5)))){ + a3 = (((a3 + 194776) + 314910) + 59449); + a24 = 0; + a18 = 11; + a15 = 6; + + return 21; + } else if(((a15==5) && (((a24==0) && (((a18==10) || ((a18==8) || (a18==9))) && (input == 6))) && ((306 < a3) && (417 >= a3)) ))){ + a3 = (((a3 + 363685) / 5) + -317846); + a18 = 8; + a15 = 4; + + return -1; + } else if((( ((115 < a3) && (306 >= a3)) && ((a24==2) && ((input == 3) && ((a18==9) || (a18==10))))) && (a15==5))){ + a3 = (((a3 / 5) + 249200) + -248857); + a24 = 0; + a18 = 12; + a15 = 6; + + return 26; + } else if(((a24==1) && ((((input == 3) && ((a18==9) || (a18==10))) && a3 <= 115 ) && (a15==5)))){ + a3 = ((((a3 / 5) - -218828) % 95)- -166); + a24 = 0; + a18 = 8; + a15 = 6; + + return 21; + } else if(((a24==3) && ((a15==5) && (((a18==10) && (input == 2)) && 417 < a3 )))){ + a3 = ((((a3 + 0) % 55)- -355) + 8); + a18 = 8; + a15 = 6; + + return 26; + } else if(((a24==1) && (((((a18==8) || (a18==9)) && (input == 4)) && (a15==6)) && ((306 < a3) && (417 >= a3)) ))){ + a3 = (((((a3 - 152) * 9)/ 10) / 5) - -151); + a18 = 10; + + return -1; + } else if(((a24==0) && ( a3 <= 115 && ((a15==5) && ((input == 6) && (a18==8)))))){ + + a15 = 4; + + return -1; + } else if((((a15==6) && ((input == 1) && ((((a18==11) && ((115 < a3) && (306 >= a3)) ) || ((a18==12) && ((115 < a3) && (306 >= a3)) )) || ((a18==8) && ((306 < a3) && (417 >= a3)) )))) && (a24==2))){ + a3 = ((((a3 - -516636) + 36214) - -15968) * -1); + a18 = 10; + + return -1; + } else if(((a15==6) && (( ((306 < a3) && (417 >= a3)) && ((input == 2) && (a18==11))) && (a24==1)))){ + a3 = (((a3 + 536313) / -5) - 222899); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==5) && ( 417 < a3 && ((a24==2) && (((a18==10) || (a18==11)) && (input == 6)))))){ + a3 = (((a3 + -600084) - 198) * 1); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((((input == 5) && ((a18==9) || (a18==10))) && (a15==4)) && 417 < a3 ) && (a24==4))){ + a3 = (((a3 / -5) / 5) + -396652); + a24 = 0; + a18 = 8; + + return -1; + } else if((( ((115 < a3) && (306 >= a3)) && ((((a18==12) || ((a18==10) || (a18==11))) && (input == 6)) && (a15==5))) && (a24==3))){ + a3 = (((a3 / 5) - 224913) + -244476); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a18==8) && (((a15==6) && ((input == 2) && (a24==3))) && ((306 < a3) && (417 >= a3)) ))){ + a3 = (((a3 + -262113) - -794926) * 1); + a24 = 0; + a18 = 11; + + return -1; + } else if(( ((306 < a3) && (417 >= a3)) && ((a15==5) && ((a24==1) && (((a18==9) || (a18==10)) && (input == 6)))))){ + a3 = (((a3 - 346964) - 81597) * 1); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a24==3) && ((( 417 < a3 && (a18==8)) || (( ((306 < a3) && (417 >= a3)) && (a18==11)) || ( ((306 < a3) && (417 >= a3)) && (a18==12)))) && (input == 2))) && (a15==4))){ + a3 = ((((a3 * 9)/ 10) * -1) * 1); + a24 = 0; + a18 = 8; + + return -1; + } else if(( 417 < a3 && ((((input == 4) && (((a18==9) || (a18==10)) || (a18==11))) && (a15==6)) && (a24==2)))){ + a3 = ((((a3 * 9)/ 10) * -1) * 1); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((input == 3) && (( a3 <= 115 && ((a18==9) && (a24==1))) || (( 417 < a3 && ((a24==0) && (a18==12))) || ( a3 <= 115 && ((a18==8) && (a24==1)))))) && (a15==6))){ + a3 = ((((a3 % 300057)+ -299941) + -1) - 2); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((((( 417 < a3 && ((a24==2) && (a18==12))) || (((a24==3) && (a18==8)) && a3 <= 115 )) || (((a24==3) && (a18==9)) && a3 <= 115 )) && (input == 2)) && (a15==5))){ + a3 = (((((a3 % 300057)+ -299941) - 3) * 9)/ 10); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==5) && (( ((115 < a3) && (306 >= a3)) && (((a18==9) || (a18==10)) && (input == 6))) && (a24==4)))){ + a3 = ((((a3 % 55)+ 341) * 1) + 10); + a24 = 0; + a18 = 12; + + return 21; + } else if(((((((a18==8) || (a18==9)) && (input == 1)) && (a24==1)) && (a15==6)) && ((306 < a3) && (417 >= a3)) )){ + a3 = (((a3 / 5) * 5) + -345460); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a15==4) && ((a24==3) && (((input == 1) && (((a18==10) || (a18==11)) || (a18==12))) && a3 <= 115 )))){ + + a24 = 0; + a18 = 8; + + return -1; + } else if((((((((a18==10) || (a18==11)) || (a18==12)) && (input == 2)) && ((115 < a3) && (306 >= a3)) ) && (a15==5)) && (a24==3))){ + a3 = ((((a3 - 172245) + -128238) * 10)/ 9); + a24 = 1; + a18 = 12; + a15 = 6; + + return 26; + } else if((((a15==6) && ( ((115 < a3) && (306 >= a3)) && (((a18==11) || (a18==12)) && (input == 3)))) && (a24==3))){ + a3 = ((((((a3 % 55)+ 320) - 12) * 5) % 55)+ 336); + a24 = 2; + a18 = 10; + + return -1; + } else if(((a15==5) && ((a24==1) && ((input == 2) && (((a18==12) && a3 <= 115 ) || ((a18==8) && ((115 < a3) && (306 >= a3)) )))))){ + a3 = (((((a3 % 55)- -361) + 0) - -112814) - 112813); + a24 = 0; + a18 = 12; + a15 = 6; + + return 21; + } else if(((a15==6) && ( a3 <= 115 && ((a18==12) && ((a24==2) && (input == 1)))))){ + a3 = (((((a3 % 55)+ 361) / 5) * 5) + 2); + a24 = 3; + a15 = 4; + + return -1; + } else if(((a24==2) && ( ((306 < a3) && (417 >= a3)) && (((input == 3) && ((a18==9) || (a18==10))) && (a15==5))))){ + a3 = (((a3 + 413206) - 981948) + 122837); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((a24==3) && (((a18==10) && ((input == 6) && ((115 < a3) && (306 >= a3)) )) && (a15==4)))){ + a3 = (((a3 * 5) + -583604) * 1); + a24 = 0; + a18 = 8; + + return -1; + } else if(((a15==5) && (((( a3 <= 115 && (a18==12)) || ( ((115 < a3) && (306 >= a3)) && (a18==8))) && (input == 3)) && (a24==1)))){ + a3 = ((((a3 % 299791)- -300208) * 1) - 0); + a24 = 0; + a18 = 8; + a15 = 6; + + return 21; + } else if(((((((a18==11) || (a18==12)) && (input == 5)) && ((115 < a3) && (306 >= a3)) ) && (a15==6)) && (a24==3))){ + a3 = (((a3 - 580000) + -16558) - 2126); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((((a24==4) && ( 417 < a3 && (((a18==10) || ((a18==8) || (a18==9))) && (input == 1)))) && (a15==5))){ + a3 = ((((a3 + -599887) + -522) + 441660) + -441353); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if(((((input == 5) && ((((a18==11) && ((306 < a3) && (417 >= a3)) ) || ((a18==12) && ((306 < a3) && (417 >= a3)) )) || ((a18==8) && 417 < a3 ))) && (a24==2)) && (a15==5))){ + a3 = (((((a3 * 9)/ 10) / 5) % 55)+ 324); + a24 = 0; + a18 = 9; + a15 = 6; + + return 25; + } else if(((a15==6) && (((input == 6) && ((( ((115 < a3) && (306 >= a3)) && (a18==11)) || ( ((115 < a3) && (306 >= a3)) && (a18==12))) || ((a18==8) && ((306 < a3) && (417 >= a3)) ))) && (a24==2)))){ + a3 = (((a3 + -230893) + -45185) - 185687); + a24 = 0; + a18 = 8; + a15 = 4; + + return -1; + } else if((( ((115 < a3) && (306 >= a3)) && ((((a18==9) || (a18==10)) && (input == 1)) && (a15==5))) && (a24==2))){ + a3 = (((a3 / 5) + -508446) - 23939); + a24 = 1; + a18 = 9; + a15 = 4; + + return -1; + } else if((((a15==5) && ( a3 <= 115 && ((input == 3) && ((a18==10) || (a18==11))))) && (a24==0))){ + a3 = ((((a3 % 299791)- -300208) - 0) * 1); + a24 = 2; + a18 = 12; + + return 21; + } + return -2; + } + +int main() +{ + // default output + int output = -1; + + // main i/o-loop + while(1) + { + // read input + int input; + input = __VERIFIER_nondet_int(); + if ((input != 1) && (input != 2) && (input != 3) && (input != 4) && (input != 5) && (input != 6)) return -2; + + // operate eca engine + output = calculate_output(input); + } +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem19_label00_true-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem19_label00_true-unreach-call.c new file mode 100644 index 000000000..ab6b5dfd4 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/Problem19_label00_true-unreach-call.c @@ -0,0 +1,9788 @@ +extern void __VERIFIER_error(void); +extern int __VERIFIER_nondet_int(void); +extern void exit(int); + + // inputs + int inputA = 1; + int inputF = 6; + int inputC = 3; + int inputE = 5; + int inputD = 4; + int inputB = 2; + + + int a27 = -83; + int a9 = 3; + int a14 = -162; + int a21 = -189; + int a8 = 7; + + int calculate_output2(int input); + int calculate_output3(int input); + int calculate_output4(int input); + int calculate_output5(int input); + int calculate_output6(int input); + + int calculate_output(int input) { + if((((( a14 <= -148 && a27 <= -78 ) && (a8==6)) && (a9==4)) && a21 <= -178 )){ + error_41: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==4)) && (a9==3)) && ((-144 < a21) && (5 >= a21)) )){ + error_10: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==6)) && (a9==5)) && ((-178 < a21) && (-144 >= a21)) )){ + error_47: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==6)) && (a9==5)) && a21 <= -178 )){ + error_42: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==4)) && (a9==5)) && 5 < a21 )){ + error_17: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==6)) && (a9==6)) && ((-144 < a21) && (5 >= a21)) )){ + error_53: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==4)) && (a9==2)) && 5 < a21 )){ + error_14: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==6)) && (a9==6)) && 5 < a21 )){ + error_58: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==6)) && (a9==3)) && 5 < a21 )){ + error_55: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==5)) && (a9==4)) && a21 <= -178 )){ + error_21: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==4)) && (a9==4)) && ((-144 < a21) && (5 >= a21)) )){ + error_11: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==6)) && (a9==4)) && ((-144 < a21) && (5 >= a21)) )){ + error_51: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==5)) && (a9==4)) && ((-144 < a21) && (5 >= a21)) )){ + error_31: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==5)) && (a9==5)) && ((-144 < a21) && (5 >= a21)) )){ + error_32: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==6)) && (a9==3)) && ((-144 < a21) && (5 >= a21)) )){ + error_50: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==5)) && (a9==2)) && ((-144 < a21) && (5 >= a21)) )){ + error_29: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==6)) && (a9==6)) && a21 <= -178 )){ + error_43: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==5)) && (a9==6)) && ((-178 < a21) && (-144 >= a21)) )){ + error_28: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==5)) && (a9==2)) && a21 <= -178 )){ + error_19: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==7)) && (a9==2)) && a21 <= -178 )){ + error_59: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==5)) && (a9==4)) && ((-178 < a21) && (-144 >= a21)) )){ + error_26: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==5)) && (a9==5)) && ((-178 < a21) && (-144 >= a21)) )){ + error_27: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==4)) && (a9==2)) && a21 <= -178 )){ + globalError: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==5)) && (a9==5)) && a21 <= -178 )){ + error_22: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==4)) && (a9==6)) && 5 < a21 )){ + error_18: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==6)) && (a9==2)) && a21 <= -178 )){ + error_39: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==6)) && (a9==4)) && ((-178 < a21) && (-144 >= a21)) )){ + error_46: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==5)) && (a9==4)) && 5 < a21 )){ + error_36: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==6)) && (a9==2)) && ((-178 < a21) && (-144 >= a21)) )){ + error_44: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==4)) && (a9==6)) && ((-144 < a21) && (5 >= a21)) )){ + error_13: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==5)) && (a9==3)) && ((-178 < a21) && (-144 >= a21)) )){ + error_25: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==4)) && (a9==6)) && ((-178 < a21) && (-144 >= a21)) )){ + error_8: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==5)) && (a9==5)) && 5 < a21 )){ + error_37: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==5)) && (a9==3)) && 5 < a21 )){ + error_35: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==4)) && (a9==3)) && a21 <= -178 )){ + error_0: __VERIFIER_error(); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==5)) && (a9==6)) && ((-144 < a21) && (5 >= a21)) )){ + error_33: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==6)) && (a9==2)) && ((-144 < a21) && (5 >= a21)) )){ + error_49: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==5)) && (a9==3)) && a21 <= -178 )){ + error_20: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==4)) && (a9==5)) && ((-144 < a21) && (5 >= a21)) )){ + error_12: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==5)) && (a9==2)) && ((-178 < a21) && (-144 >= a21)) )){ + error_24: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==6)) && (a9==3)) && a21 <= -178 )){ + error_40: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==6)) && (a9==3)) && ((-178 < a21) && (-144 >= a21)) )){ + error_45: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==5)) && (a9==3)) && ((-144 < a21) && (5 >= a21)) )){ + error_30: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==4)) && (a9==2)) && ((-144 < a21) && (5 >= a21)) )){ + error_9: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==5)) && (a9==2)) && 5 < a21 )){ + error_34: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==6)) && (a9==4)) && 5 < a21 )){ + error_56: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==5)) && (a9==6)) && a21 <= -178 )){ + error_23: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==4)) && (a9==4)) && 5 < a21 )){ + error_16: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==4)) && (a9==4)) && ((-178 < a21) && (-144 >= a21)) )){ + error_6: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==6)) && (a9==5)) && ((-144 < a21) && (5 >= a21)) )){ + error_52: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==6)) && (a9==5)) && 5 < a21 )){ + error_57: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==4)) && (a9==6)) && a21 <= -178 )){ + error_3: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==4)) && (a9==3)) && 5 < a21 )){ + error_15: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==5)) && (a9==6)) && 5 < a21 )){ + error_38: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==4)) && (a9==3)) && ((-178 < a21) && (-144 >= a21)) )){ + error_5: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==4)) && (a9==5)) && ((-178 < a21) && (-144 >= a21)) )){ + error_7: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==4)) && (a9==2)) && ((-178 < a21) && (-144 >= a21)) )){ + error_4: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==4)) && (a9==4)) && a21 <= -178 )){ + error_1: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==6)) && (a9==2)) && 5 < a21 )){ + error_54: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==6)) && (a9==6)) && ((-178 < a21) && (-144 >= a21)) )){ + error_48: exit(0); + } + if((((( a14 <= -148 && a27 <= -78 ) && (a8==4)) && (a9==5)) && a21 <= -178 )){ + error_2: exit(0); + } + + if(((( a14 <= -148 && (((input == 2) && a21 <= -178 ) && (a8==4))) && ((100 < a27) && (182 >= a27)) ) && (a9==3))){ + if((a9==6)){ + a27 = (((a27 - 579239) + -16635) - -813300); + a21 = ((((a21 + 0) * -1)/ 10) - -262318); + a8 = 6; + a9 = 2; + + } else{ + a27 = (((a27 - 173) + -1) + 90); + a21 = (((a21 - -600084) + 8) + 32); + a8 = 5; + + } return 25; + } else if((( ((-78 < a27) && (100 >= a27)) && ((((input == 2) && a14 <= -148 ) && (a9==2)) && (a8==4))) && ((-178 < a21) && (-144 >= a21)) )){ + a27 = ((((a27 - -366326) - 844450) * 10)/ 9); + a21 = (((((a21 - 224703) * 10)/ 9) * 10)/ 9); + return -1; + } else if(( ((-148 < a14) && (13 >= a14)) && ( a21 <= -178 && ((a9==2) && (( a27 <= -78 && (input == 6)) && (a8==7)))))){ + if( ((-178 < a21) && (-144 >= a21)) ){ + a14 = (((((a14 + -530871) - 11167) + 1108700) * -1)/ 10); + a27 = (((((a27 - -152125) % 299908)- -300090) / 5) - -133461); + a8 = 6; + a9 = 3; + + } else{ + a14 = ((((a14 * 5) - -433037) - 408099) - 369849); + a21 = (((((a21 % 74)+ -36) / 5) + 61842) + -61831); + a8 = 8; + + } return -1; + } else if(( a27 <= -78 && ((a8==4) && ( ((-148 < a14) && (13 >= a14)) && ((( ((-178 < a21) && (-144 >= a21)) && (a9==6)) || ((a9==2) && ((-144 < a21) && (5 >= a21)) )) && (input == 5)))))){ + a14 = (((a14 + 443514) + -776828) * 1); + a27 = ((((a27 - 0) % 299908)- -300090) * 1); + a21 = ((((a21 % 74)+ -69) / 5) + -34); + a8 = 5; + a9 = 5; + + return 23; + } else if(( 5 < a21 && ((a8==6) && ( ((-78 < a27) && (100 >= a27)) && ((a9==6) && ( a14 <= -148 && (input == 4))))))){ + a27 = ((((a27 - 250457) - 224278) * 10)/ 9); + a21 = ((((a21 * 9)/ 10) / 5) + -278361); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a9==2) && ( a14 <= -148 && ( ((100 < a27) && (182 >= a27)) && ((input == 6) && a21 <= -178 )))) && (a8==7))){ + a27 = ((((a27 - 287486) / 5) + 270451) + -433143); + return -1; + } else if((((a8==5) && ( 182 < a27 && (((a9==3) && (input == 3)) && a14 <= -148 ))) && ((-178 < a21) && (-144 >= a21)) )){ + a27 = ((((a27 / 5) % 40)+ 121) - -1); + a21 = ((((a21 - -24894) / 5) + 178914) - 414570); + a9 = 6; + + return 25; + } else if((((((((a9==3) || (a9==4)) && (input == 2)) && 5 < a21 ) && a14 <= -148 ) && (a8==8)) && ((-78 < a27) && (100 >= a27)) )){ + a27 = ((((a27 - 18151) - -386650) * 1) - 841345); + a21 = ((((a21 % 74)- 102) + 362169) + -362206); + a8 = 7; + a9 = 2; + + return 25; + } else if((( a14 <= -148 && ((((((a9==4) || (a9==5)) || (a9==6)) && (input == 2)) && ((-144 < a21) && (5 >= a21)) ) && (a8==5))) && ((100 < a27) && (182 >= a27)) )){ + a27 = (((((a27 * 5) / 5) * 5) * -2)/ 10); + a21 = (((a21 + -384830) * 1) - 48695); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && (( a21 <= -178 && ((a9==4) && ((input == 2) && (a8==8)))) && a27 <= -78 ))){ + + a8 = 4; + a9 = 2; + + return -1; + } else if(((((( ((100 < a27) && (182 >= a27)) && (input == 5)) && a14 <= -148 ) && (a8==4)) && a21 <= -178 ) && (a9==2))){ + a27 = ((((a27 * 10)/ -9) + -124765) * 4); + return -1; + } else if(( a14 <= -148 && (((((input == 3) && ((a9==5) || ((a9==3) || (a9==4)))) && ((-78 < a27) && (100 >= a27)) ) && ((-178 < a21) && (-144 >= a21)) ) && (a8==4)))){ + a27 = (((a27 * 5) + -39376) / 5); + a21 = ((((a21 * 10)/ 8) / 5) - 334528); + a9 = 2; + + return -1; + } else if(((a8==7) && ( ((-148 < a14) && (13 >= a14)) && ( a27 <= -78 && ((input == 4) && (( ((-178 < a21) && (-144 >= a21)) && (a9==2)) || (((a9==5) && a21 <= -178 ) || ((a9==6) && a21 <= -178 )))))))){ + a14 = (((a14 + -472372) * 1) - -377912); + a21 = (((a21 - -600099) + 13) - -29); + a8 = 4; + a9 = 6; + + return -1; + } else if((( ((-78 < a27) && (100 >= a27)) && ( 5 < a21 && ( a14 <= -148 && ((a9==2) && (input == 4))))) && (a8==8))){ + a27 = (((((a27 % 40)+ 141) - 422543) * 1) - -422542); + a21 = ((((a21 % 299911)- 300088) - 178702) + -12158); + a8 = 7; + + return 21; + } else if(( a14 <= -148 && ( ((-78 < a27) && (100 >= a27)) && (( 5 < a21 && ((((a9==4) || (a9==5)) || (a9==6)) && (input == 3))) && (a8==4))))){ + if((a9==3)){ + a27 = (((((a27 % 40)+ 140) * 5) % 40)- -117); + a21 = (((((((a21 % 74)+ -111) * 10)/ 9) * 5) % 74)- -5); + a8 = 8; + a9 = 2; + + } else{ + + a8 = 7; + a9 = 3; + + } return 21; + } else if(((( a27 <= -78 && ((input == 6) && ((( ((-144 < a21) && (5 >= a21)) && (a9==6)) || ( 5 < a21 && (a9==2))) || ((a9==3) && 5 < a21 )))) && (a8==5)) && ((-148 < a14) && (13 >= a14)) )){ + if((a8==4)){ + a21 = (((((a21 * 9)/ 10) % 16)- 160) + 1); + a8 = 4; + a9 = 6; + + } else{ + a14 = (((((a14 + -526418) + -54027) + 1023447) * -1)/ 10); + a21 = ((((a21 + -567743) % 74)+ -69) / 5); + a9 = 2; + + } return -1; + } else if((( a21 <= -178 && (( ((-148 < a14) && (13 >= a14)) && (((a9==4) || ((a9==2) || (a9==3))) && (input == 1))) && a27 <= -78 )) && (a8==5))){ + if( a14 <= -148 ){ + a14 = (((a14 + -356841) / 5) + -197386); + a27 = ((((a27 % 40)+ 180) + 1) - -1); + a21 = (((a21 - -600073) / 5) * 5); + a8 = 8; + a9 = 3; + + } else{ + a14 = (((a14 - -214411) * 2) + -698183); + a8 = 8; + a9 = 5; + + } return -1; + } else if((((a8==8) && ((a9==4) && ( 5 < a21 && ( a14 <= -148 && (input == 2))))) && ((100 < a27) && (182 >= a27)) )){ + a27 = (((a27 - -420142) * 1) * 1); + a21 = ((((a21 % 299911)+ -300088) - 88031) / 5); + a8 = 4; + a9 = 5; + + return 21; + } else if(( ((-78 < a27) && (100 >= a27)) && ( a14 <= -148 && ((a8==6) && ((((a9==6) && ((-178 < a21) && (-144 >= a21)) ) || ( ((-144 < a21) && (5 >= a21)) && (a9==2))) && (input == 1)))))){ + a27 = (((a27 / 5) + -395053) * 1); + a21 = ((((a21 - -430011) + -45623) * 10)/ -9); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a8==4) && ( a27 <= -78 && (((input == 1) && ((-148 < a14) && (13 >= a14)) ) && (a9==2)))) && ((-178 < a21) && (-144 >= a21)) )){ + if( 182 < a27 ){ + a14 = (((a14 / 5) - 590758) / 5); + a27 = (((((a27 * 9)/ 10) % 88)+ 61) + 28); + a21 = ((((a21 + 537766) * 10)/ -9) / 5); + a8 = 8; + a9 = 3; + + } else{ + a14 = (((a14 * 5) - 31569) + -198626); + a27 = (((((a27 - 0) % 88)- -95) * 9)/ 10); + a21 = (((a21 - -251956) - -242074) * 1); + a8 = 7; + a9 = 5; + + } return -1; + } else if(( a14 <= -148 && (((a8==8) && ((((a9==4) || (a9==5)) && (input == 2)) && a27 <= -78 )) && ((-144 < a21) && (5 >= a21)) ))){ + a27 = (((((a27 + 0) - 0) + 372672) % 88)- -11); + a21 = (((((a21 * 5) * 5) * 5) % 16)- 161); + a8 = 5; + a9 = 2; + + return 23; + } else if(((((a9==4) && ((a8==6) && ((input == 4) && a21 <= -178 ))) && ((-148 < a14) && (13 >= a14)) ) && a27 <= -78 )){ + a14 = ((((a14 + -376357) / 5) + 613543) + -922448); + a27 = (((((a27 - -109700) / 5) * 5) % 299908)+ 300090); + a21 = ((((((a21 + 431960) % 16)- 160) * 5) % 16)+ -153); + a8 = 8; + + return -1; + } else if((( a27 <= -78 && (((a8==6) && (((a9==4) || ((a9==2) || (a9==3))) && (input == 1))) && ((-148 < a14) && (13 >= a14)) )) && ((-178 < a21) && (-144 >= a21)) )){ + a14 = ((((a14 + -539644) * 10)/ 9) * 1); + a27 = ((((a27 % 40)+ 166) / 5) + 114); + a21 = ((((a21 + -187793) * 10)/ 9) * 2); + a8 = 5; + a9 = 6; + + return -1; + } else if((( a14 <= -148 && (((a8==6) && ((input == 5) && ((a9==3) || (a9==4)))) && ((-78 < a27) && (100 >= a27)) )) && ((-144 < a21) && (5 >= a21)) )){ + a27 = (((a27 * 5) + 540344) - 1028860); + a21 = ((((a21 + -486754) * 10)/ 9) + -47115); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a27 <= -78 && ((((a8==8) && (((a9==4) || (a9==5)) && (input == 5))) && ((-144 < a21) && (5 >= a21)) ) && a14 <= -148 ))){ + a21 = (((a21 - 313472) + -146985) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(( 5 < a21 && (((((input == 5) && a14 <= -148 ) && (a9==3)) && (a8==6)) && 182 < a27 ))){ + a27 = (((((a27 * 9)/ 10) - -54072) * 1) + -649261); + a21 = (((a21 / 5) - -233564) + -815080); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ( ((100 < a27) && (182 >= a27)) && (( ((-178 < a21) && (-144 >= a21)) && ((input == 3) && ((a9==4) || (a9==5)))) && (a8==7))))){ + a27 = ((((a27 - 269348) * 2) * 10)/ 9); + a8 = 6; + a9 = 5; + + return -1; + } else if(((a9==3) && ( 182 < a27 && ( 5 < a21 && ( a14 <= -148 && ((input == 1) && (a8==6))))))){ + + return 25; + } else if((( a14 <= -148 && ((a8==4) && ( ((-144 < a21) && (5 >= a21)) && ((input == 5) && ((a9==2) || (a9==3)))))) && ((100 < a27) && (182 >= a27)) )){ + a27 = ((((a27 * -8)/ 10) / 5) - 80439); + a21 = (((a21 - -339578) + -926678) + -10383); + a9 = 2; + + return -1; + } else if(((((((input == 3) && (a9==4)) && a27 <= -78 ) && a21 <= -178 ) && (a8==8)) && a14 <= -148 )){ + a27 = (((((a27 % 88)+ 42) - -543065) - 1102846) + 559787); + a8 = 4; + a9 = 3; + + return 25; + } else if(( 5 < a21 && ((( a14 <= -148 && ((input == 1) && (a9==2))) && (a8==4)) && ((-78 < a27) && (100 >= a27)) ))){ + a21 = (((((a21 % 74)+ -82) - 5) * 9)/ 10); + a8 = 7; + a9 = 4; + + return 23; + } else if(( ((-148 < a14) && (13 >= a14)) && (( ((-178 < a21) && (-144 >= a21)) && ((a8==6) && ((input == 5) && (((a9==2) || (a9==3)) || (a9==4))))) && a27 <= -78 ))){ + a14 = (((a14 * 5) + -336075) * 1); + a21 = ((((a21 * -1)/ 10) + -296144) - -454983); + a8 = 5; + a9 = 6; + + return 21; + } else if((((a8==7) && (( ((100 < a27) && (182 >= a27)) && ((input == 6) && (((a9==3) || (a9==4)) || (a9==5)))) && a21 <= -178 )) && a14 <= -148 )){ + a27 = (((((a27 * 10)/ -9) / 5) / 5) - 115336); + a21 = ((((((a21 * 9)/ 10) % 74)+ 5) + -174778) - -174719); + a8 = 4; + a9 = 4; + + return -1; + } else if(( ((-78 < a27) && (100 >= a27)) && ( a14 <= -148 && ((a8==7) && (((input == 5) && (a9==3)) && 5 < a21 ))))){ + a27 = (((a27 / 5) + -512968) - 79626); + a21 = (((((a21 % 299911)- 300088) / 5) * 51)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if(((( 182 < a27 && (((input == 2) && ((a9==6) || ((a9==4) || (a9==5)))) && a14 <= -148 )) && ((-144 < a21) && (5 >= a21)) ) && (a8==4))){ + a27 = ((((a27 + -357988) % 88)- -10) + 0); + a21 = ((((a21 / 5) + 404774) * 10)/ 9); + a8 = 8; + a9 = 4; + + return -1; + } else if((( 182 < a27 && ( a14 <= -148 && ((a8==8) && ((((a9==4) || (a9==5)) || (a9==6)) && (input == 5))))) && a21 <= -178 )){ + a27 = (((a27 - 600171) + -2) * 1); + a21 = ((((a21 - 0) % 74)- -2) + 1); + a8 = 6; + a9 = 2; + + return -1; + } else if(((( a14 <= -148 && ((a9==5) && ((a8==7) && (input == 1)))) && a21 <= -178 ) && 182 < a27 )){ + a27 = ((((((a27 - 0) * 9)/ 10) - -5851) % 40)+ 131); + a21 = ((((((a21 / 5) % 74)+ 2) * 5) % 74)+ -69); + a8 = 4; + + return 21; + } else if((((( 5 < a21 && ((input == 1) && ((a9==3) || (a9==4)))) && (a8==8)) && ((-78 < a27) && (100 >= a27)) ) && a14 <= -148 )){ + a27 = ((((a27 + -39044) * 10)/ 9) + -228262); + a21 = ((((a21 + 0) % 299911)+ -300088) - 238095); + a8 = 4; + a9 = 2; + + return -1; + } else if((( a27 <= -78 && (( ((-148 < a14) && (13 >= a14)) && ((input == 6) && ((a9==4) || (a9==5)))) && 5 < a21 )) && (a8==7))){ + a14 = ((((a14 + -67739) + 210314) * 10)/ -9); + a27 = (((((a27 % 299908)- -300090) * 10)/ 9) - -106347); + a21 = ((((a21 % 299911)+ -300088) - 33971) + -144100); + a8 = 5; + a9 = 6; + + return -1; + } else if((((((a9==2) && ((input == 5) && ((-144 < a21) && (5 >= a21)) )) && a14 <= -148 ) && a27 <= -78 ) && (a8==7))){ + a21 = (((a21 + -598818) + -1010) * 1); + a8 = 4; + + return -1; + } else if(( ((-148 < a14) && (13 >= a14)) && ( a21 <= -178 && (( a27 <= -78 && (((a9==4) || ((a9==2) || (a9==3))) && (input == 5))) && (a8==5))))){ + a14 = ((((a14 + -363833) - 170616) * 10)/ 9); + a21 = ((((((a21 * 9)/ 10) - -364866) * 1) % 74)- 69); + a8 = 4; + a9 = 4; + + return -1; + } else if(( a14 <= -148 && (((((input == 6) && (a8==4)) && 5 < a21 ) && (a9==3)) && ((-78 < a27) && (100 >= a27)) ))){ + a27 = (((a27 * 5) + 509191) + -1088616); + a21 = ((((a21 % 299911)+ -300088) - 158301) - 14804); + a9 = 2; + + return -1; + } else if(((((( ((-78 < a27) && (100 >= a27)) && (input == 3)) && (a9==3)) && 5 < a21 ) && (a8==7)) && a14 <= -148 )){ + a27 = (((a27 - -310764) + 143155) * 1); + a21 = ((((((a21 % 299911)- 300088) * 10)/ 9) * 10)/ 9); + a8 = 5; + + return 21; + } else if((((( ((100 < a27) && (182 >= a27)) && ((input == 1) && ((a9==5) || (a9==6)))) && 5 < a21 ) && (a8==8)) && a14 <= -148 )){ + a27 = (((a27 - 597646) * 1) - 2113); + a21 = ((((a21 % 299911)+ -300088) + 521271) + -690852); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-148 < a14) && (13 >= a14)) && ((a8==6) && ( a27 <= -78 && ( ((-178 < a21) && (-144 >= a21)) && ((input == 2) && ((a9==4) || ((a9==2) || (a9==3))))))))){ + a14 = (((a14 / 5) + -351727) * 1); + a9 = 2; + + return -1; + } else if(((((a8==5) && (( a21 <= -178 && (input == 2)) && a14 <= -148 )) && (a9==4)) && 182 < a27 )){ + a27 = ((((((a27 % 40)+ 132) * 9)/ 10) * 9)/ 10); + a21 = (((a21 + 600112) - -36) * 1); + a8 = 4; + + return 21; + } else if(((a8==5) && ( 182 < a27 && ((((input == 4) && ((a9==4) || (a9==5))) && a14 <= -148 ) && ((-178 < a21) && (-144 >= a21)) )))){ + a27 = (((a27 - 600149) / 5) * 5); + a21 = ((((a21 / 5) / 5) * 356)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if((((((a8==7) && (((a9==4) || ((a9==2) || (a9==3))) && (input == 4))) && ((-78 < a27) && (100 >= a27)) ) && ((-144 < a21) && (5 >= a21)) ) && a14 <= -148 )){ + a27 = (((a27 - 52532) / 5) * 5); + a21 = (((a21 - 88699) / 5) - 37812); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==7) && ((((a9==3) && ( a21 <= -178 && (input == 2))) && ((-148 < a14) && (13 >= a14)) ) && a27 <= -78 ))){ + a21 = ((((a21 + 0) / 5) % 74)- -2); + a9 = 5; + + return -1; + } else if(((((((input == 4) && ((a9==3) || (a9==4))) && a14 <= -148 ) && 5 < a21 ) && (a8==6)) && ((-78 < a27) && (100 >= a27)) )){ + a27 = ((((a27 - 291105) / 5) + 561464) + -733943); + a21 = ((((a21 % 299911)- 300088) / 5) - 142107); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ((((((a9==4) || ((a9==2) || (a9==3))) && (input == 1)) && ((-144 < a21) && (5 >= a21)) ) && (a8==7)) && 182 < a27 ))){ + a27 = (((a27 / 5) + -164328) + -352890); + a21 = (((a21 - -121590) + -280034) * 3); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && (((a8==7) && ( ((100 < a27) && (182 >= a27)) && ((input == 4) && (((a9==3) || (a9==4)) || (a9==5))))) && a21 <= -178 ))){ + a27 = (((a27 - 193537) - -479973) - 324732); + a21 = (((((a21 + 0) / 5) - -507158) % 74)+ -133); + a8 = 6; + a9 = 4; + + return -1; + } else if(((a8==7) && ((((((a9==4) || ((a9==2) || (a9==3))) && (input == 4)) && a27 <= -78 ) && ((-144 < a21) && (5 >= a21)) ) && ((-148 < a14) && (13 >= a14)) ))){ + if( 5 < a21 ){ + a14 = (((a14 - 418474) - 28571) - 143516); + a21 = (((a21 + 550737) - 638962) - 20604); + a8 = 6; + a9 = 6; + + } else{ + a14 = ((((a14 - -297838) * -1)/ 10) * 5); + a27 = (((((a27 % 299908)- -300090) - -72144) * 10)/ 9); + a21 = (((((a21 % 16)- 161) + 591732) / 5) - 118479); + a8 = 6; + a9 = 3; + + } return -1; + } else if(((a8==6) && (( 182 < a27 && ( ((-178 < a21) && (-144 >= a21)) && ((input == 1) && ((a9==3) || (a9==4))))) && a14 <= -148 ))){ + a27 = ((((a27 * -5)/ 10) - 264819) / 5); + a21 = (((a21 - 10375) * 5) - 130992); + a8 = 4; + a9 = 2; + + return -1; + } else if((( ((-148 < a14) && (13 >= a14)) && (((input == 2) && ((( ((-178 < a21) && (-144 >= a21)) && (a9==5)) || ((a9==6) && ((-178 < a21) && (-144 >= a21)) )) || ( ((-144 < a21) && (5 >= a21)) && (a9==2)))) && (a8==5))) && a27 <= -78 )){ + a14 = (((a14 / 5) + -208748) * 2); + a27 = (((((a27 - -575434) % 40)- -140) - 458526) + 458527); + a21 = (((a21 / 5) + -114524) * 5); + a8 = 7; + a9 = 2; + + return 23; + } else if(( a14 <= -148 && ( ((100 < a27) && (182 >= a27)) && ((input == 2) && (((((a9==5) && (a8==4)) && 5 < a21 ) || ( 5 < a21 && ((a8==4) && (a9==6)))) || (((a8==5) && (a9==2)) && a21 <= -178 )))))){ + if((a9==3)){ + a27 = ((((a27 + -52965) * -1)/ 10) * 5); + a21 = (((a21 / 5) - 295624) - 181035); + a8 = 7; + a9 = 6; + + } else{ + a27 = (((a27 * 5) + -75069) + -255530); + a21 = (((a21 + 0) / 5) - 445782); + a8 = 8; + a9 = 4; + + } return 21; + } else if((((((input == 4) && (((a9==2) && ((-144 < a21) && (5 >= a21)) ) || (( ((-178 < a21) && (-144 >= a21)) && (a9==5)) || ((a9==6) && ((-178 < a21) && (-144 >= a21)) )))) && (a8==5)) && a14 <= -148 ) && ((100 < a27) && (182 >= a27)) )){ + a27 = (((a27 / 5) + -169391) * 3); + a21 = (((a21 + -182272) + -128986) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && (( ((-78 < a27) && (100 >= a27)) && ((input == 3) && (( a21 <= -178 && (a9==6)) || ((a9==2) && ((-178 < a21) && (-144 >= a21)) )))) && (a8==8)))){ + a27 = ((((a27 + 497611) * 1) * 10)/ -9); + a21 = ((((a21 % 299911)- 178) - 88023) + -89840); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ((( 182 < a27 && (((a9==2) || (a9==3)) && (input == 2))) && (a8==7)) && 5 < a21 ))){ + a27 = ((((a27 - 600180) + -3) + 555260) - 555167); + a8 = 5; + a9 = 5; + + return -1; + } else if(( a14 <= -148 && ((((( 5 < a21 && ((a8==4) && (a9==5))) || (((a8==4) && (a9==6)) && 5 < a21 )) || (((a9==2) && (a8==5)) && a21 <= -178 )) && (input == 3)) && ((100 < a27) && (182 >= a27)) ))){ + a27 = (((((a27 + 475165) * 10)/ -9) * 10)/ 9); + a21 = (((a21 / 5) + -429847) + -13664); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a27 <= -78 && ((a9==2) && (((a8==7) && ( a21 <= -178 && (input == 5))) && ((-148 < a14) && (13 >= a14)) )))){ + a14 = (((a14 - 204970) + -283491) + -28938); + a21 = ((((a21 + 0) % 74)+ 3) + 2); + a8 = 4; + a9 = 6; + + return -1; + } else if(((( 5 < a21 && ((((a9==2) || (a9==3)) && (input == 6)) && (a8==7))) && a14 <= -148 ) && 182 < a27 )){ + a27 = (((((a27 % 40)+ 123) / 5) + 171103) + -171009); + a21 = ((((a21 % 74)- 94) / 5) - -8); + a8 = 6; + a9 = 4; + + return -1; + } else if((( a14 <= -148 && (( ((100 < a27) && (182 >= a27)) && (((a9==5) || (a9==6)) && (input == 1))) && ((-144 < a21) && (5 >= a21)) )) && (a8==7))){ + a27 = ((((a27 * 5) / 5) / 5) - 485737); + a21 = (((a21 / 5) - 576596) - 4340); + a8 = 4; + a9 = 2; + + return -1; + } else if((((( a27 <= -78 && ( a21 <= -178 && (input == 2))) && ((-148 < a14) && (13 >= a14)) ) && (a9==5)) && (a8==5))){ + a14 = ((((a14 - 186631) + -319712) * 10)/ 9); + a27 = ((((a27 % 88)+ 58) + -25) / 5); + a21 = ((((a21 / 5) % 16)- 157) - -11); + a8 = 6; + a9 = 3; + + return -1; + } else if((( ((-144 < a21) && (5 >= a21)) && ( ((-148 < a14) && (13 >= a14)) && (((input == 2) && ((a9==5) || (a9==6))) && a27 <= -78 ))) && (a8==4))){ + a14 = (((((a14 / 5) - 212292) - -313626) * -1)/ 10); + a21 = (((a21 / 5) + -189649) / 5); + a8 = 5; + a9 = 3; + + return -1; + } else if(((((a8==7) && (((input == 4) && (a9==2)) && a21 <= -178 )) && ((100 < a27) && (182 >= a27)) ) && a14 <= -148 )){ + a27 = (((a27 - 28723) / 5) / 5); + a21 = ((((((a21 % 16)+ -149) * 5) - -530401) % 16)+ -167); + a8 = 5; + a9 = 4; + + return -1; + } else if(( ((100 < a27) && (182 >= a27)) && ( a14 <= -148 && ( ((-178 < a21) && (-144 >= a21)) && ((((a9==4) || (a9==5)) && (input == 1)) && (a8==8)))))){ + + a8 = 4; + a9 = 6; + + return 23; + } else if((((( a21 <= -178 && ((a9==3) && (input == 3))) && (a8==5)) && 182 < a27 ) && a14 <= -148 )){ + if((a8==7)){ + + a8 = 7; + a9 = 6; + + } else{ + a27 = (((a27 + 0) + -600122) + -26); + a8 = 8; + a9 = 4; + + } return -1; + } else if(( a14 <= -148 && ( ((-178 < a21) && (-144 >= a21)) && ((a8==4) && (((input == 2) && ((a9==5) || ((a9==3) || (a9==4)))) && ((-78 < a27) && (100 >= a27)) ))))){ + a27 = (((a27 + -588523) * 1) * 1); + a21 = ((((a21 * 13)/ 10) + -461470) * 1); + a9 = 2; + + return -1; + } else if(( ((-148 < a14) && (13 >= a14)) && ((((input == 5) && (((a9==6) && a21 <= -178 ) || ( ((-178 < a21) && (-144 >= a21)) && (a9==2)))) && (a8==5)) && a27 <= -78 ))){ + a21 = ((((a21 + 0) % 299911)- 178) + -210847); + a9 = 2; + + return -1; + } else if(((a8==5) && ( a14 <= -148 && (((input == 4) && (( ((-144 < a21) && (5 >= a21)) && (a9==6)) || ((a9==2) && 5 < a21 ))) && ((-78 < a27) && (100 >= a27)) )))){ + a27 = (((a27 + -529810) * 1) + -18198); + a21 = ((((a21 * 9)/ 10) + -546166) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if((((((input == 6) && (( ((-178 < a21) && (-144 >= a21)) && (a9==6)) || ( ((-144 < a21) && (5 >= a21)) && (a9==2)))) && a14 <= -148 ) && ((-78 < a27) && (100 >= a27)) ) && (a8==4))){ + a27 = (((a27 + 598350) + -719497) - 461184); + a21 = (((a21 + 3746) + -33734) - 177892); + a9 = 2; + + return -1; + } else if(((((((( ((-178 < a21) && (-144 >= a21)) && (a9==5)) || ( ((-178 < a21) && (-144 >= a21)) && (a9==6))) || ((a9==2) && ((-144 < a21) && (5 >= a21)) )) && (input == 5)) && (a8==6)) && a27 <= -78 ) && ((-148 < a14) && (13 >= a14)) )){ + a14 = ((((a14 - 70059) * 10)/ 9) - 241528); + a27 = ((((a27 - 0) % 40)- -180) + -25); + a21 = ((((a21 + -211190) * 10)/ 9) * 2); + a8 = 7; + a9 = 2; + + return -1; + } else if(( ((-178 < a21) && (-144 >= a21)) && ( a27 <= -78 && (( a14 <= -148 && ((input == 5) && ((a9==5) || ((a9==3) || (a9==4))))) && (a8==8))))){ + a21 = (((((a21 - 28551) * 5) - -593977) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if((( ((-178 < a21) && (-144 >= a21)) && (((a8==6) && ((input == 5) && (((a9==3) || (a9==4)) || (a9==5)))) && ((100 < a27) && (182 >= a27)) )) && a14 <= -148 )){ + a27 = (((((a27 * 10)/ -9) - -263394) * 10)/ -9); + a21 = ((((a21 - 239304) * 10)/ 9) / 5); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((a8==7) && (((input == 5) && ((100 < a27) && (182 >= a27)) ) && a14 <= -148 )) && (a9==4)) && ((-144 < a21) && (5 >= a21)) )){ + a27 = ((((a27 * 10)/ -9) * 5) / 5); + a21 = (((a21 - 222903) * 2) + -127143); + a8 = 4; + a9 = 2; + + return -1; + } else if((( ((-148 < a14) && (13 >= a14)) && (( a27 <= -78 && ((input == 5) && ((a9==3) || (a9==4)))) && (a8==6))) && 5 < a21 )){ + a14 = (((a14 - -145111) + -732697) / 5); + a21 = ((((((a21 * 9)/ 10) + 50408) / 5) * -1)/ 10); + a8 = 5; + a9 = 6; + + return -1; + } else if(((((a8==6) && ((((a9==2) && ((-178 < a21) && (-144 >= a21)) ) || (((a9==5) && a21 <= -178 ) || ((a9==6) && a21 <= -178 ))) && (input == 6))) && ((100 < a27) && (182 >= a27)) ) && a14 <= -148 )){ + a21 = (((((a21 % 299911)+ -178) * 10)/ 9) + -216227); + a8 = 4; + a9 = 6; + + return -1; + } else if((( ((-144 < a21) && (5 >= a21)) && (( a27 <= -78 && ((input == 6) && ((a9==4) || ((a9==2) || (a9==3))))) && (a8==7))) && ((-148 < a14) && (13 >= a14)) )){ + if( a27 <= -78 ){ + a14 = (((a14 + -122526) / 5) + -451735); + a21 = (((((a21 % 16)- 161) - 296949) - 181680) + 478630); + a9 = 3; + + } else{ + a14 = (((a14 - 98423) * 5) - 88692); + a27 = (((((a27 * 9)/ 10) + -50172) % 88)+ 84); + a21 = ((((a21 % 16)- 160) * 1) + 1); + a8 = 5; + a9 = 6; + + } return -1; + } else if(((a9==3) && (( a21 <= -178 && ((a8==4) && ((input == 1) && ((100 < a27) && (182 >= a27)) ))) && a14 <= -148 ))){ + a27 = (((a27 + -8298) / 5) * 5); + a9 = 2; + + return -1; + } else if((( 5 < a21 && ( a14 <= -148 && ( ((100 < a27) && (182 >= a27)) && ((input == 5) && ((a9==5) || (a9==6)))))) && (a8==6))){ + a27 = (((a27 * 5) + -188411) / 5); + a21 = (((a21 / 5) * 4) + -535843); + a8 = 4; + a9 = 2; + + return -1; + } else if((((((a8==4) && ((input == 3) && ((a9==5) || (a9==6)))) && ((-144 < a21) && (5 >= a21)) ) && a27 <= -78 ) && ((-148 < a14) && (13 >= a14)) )){ + if((a9==2)){ + a14 = ((((a14 + -555494) - -753150) * 3) + -1077218); + a8 = 5; + a9 = 6; + + } else{ + a14 = (((a14 - 249011) * 2) - 47727); + a21 = (((a21 - -290953) - -237704) - -13887); + a8 = 5; + a9 = 6; + + } return -1; + } else if(((a8==5) && ((a9==5) && ( ((-78 < a27) && (100 >= a27)) && (( ((-144 < a21) && (5 >= a21)) && (input == 2)) && a14 <= -148 ))))){ + a27 = ((((a27 + -373393) + -62325) * 10)/ 9); + a21 = ((((a21 - 232371) * 10)/ 9) + -261913); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==4) && (( ((-148 < a14) && (13 >= a14)) && ( a27 <= -78 && (((a9==3) || (a9==4)) && (input == 6)))) && ((-178 < a21) && (-144 >= a21)) ))){ + a14 = (((a14 + -564401) * 1) * 1); + a27 = (((((a27 * 9)/ 10) * 1) % 88)- -80); + a8 = 6; + a9 = 6; + + return 23; + } else if(((((a8==5) && ( a21 <= -178 && ((a9==5) && (input == 4)))) && a27 <= -78 ) && ((-148 < a14) && (13 >= a14)) )){ + if( ((13 < a14) && (182 >= a14)) ){ + a14 = ((((a14 - 21841) * 10)/ 9) / 5); + a27 = ((((((a27 * 9)/ 10) % 88)- -51) - -569964) + -569918); + a21 = ((((a21 / 5) / 5) % 16)- 159); + a9 = 3; + + } else{ + a14 = ((((a14 - 184028) / 5) - -608682) + -842597); + a27 = ((((a27 % 40)- -147) - -285186) - 285165); + a21 = ((((a21 * 9)/ 10) + 553782) * 1); + a8 = 4; + a9 = 4; + + } return -1; + } else if(( 5 < a21 && ((( a14 <= -148 && ((input == 1) && (a9==6))) && ((-78 < a27) && (100 >= a27)) ) && (a8==6)))){ + a27 = (((a27 + -117675) / 5) + -132988); + a21 = (((((a21 + 0) * 9)/ 10) + -523981) - 18184); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((( a21 <= -178 && (input == 4)) && (a8==8)) && a27 <= -78 ) && (a9==6)) && a14 <= -148 )){ + + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && (((( ((100 < a27) && (182 >= a27)) && (input == 5)) && (a8==7)) && (a9==6)) && ((-178 < a21) && (-144 >= a21)) ))){ + a27 = (((a27 + 479258) - 887825) * 1); + a21 = ((((a21 - -545484) / 5) - -156570) + -309067); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a27 <= -78 && ((a8==8) && (((a9==6) && ( 5 < a21 && (input == 3))) && a14 <= -148 )))){ + a21 = (((((a21 % 299911)- 300088) + -52922) * 10)/ 9); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==5) && ( a14 <= -148 && ( ((-78 < a27) && (100 >= a27)) && (((input == 4) && (a9==3)) && ((-178 < a21) && (-144 >= a21)) ))))){ + a27 = (((a27 + -378264) + -117302) / 5); + a21 = (((a21 + 96357) * 5) + -768291); + a8 = 4; + a9 = 2; + + return -1; + } else if((((((a8==5) && ((input == 1) && ((a9==4) || (a9==5)))) && ((-144 < a21) && (5 >= a21)) ) && a27 <= -78 ) && ((-148 < a14) && (13 >= a14)) )){ + a14 = (((((a14 + 492985) * -1)/ 10) * 10)/ 9); + a27 = ((((a27 % 299908)+ 300090) - -171007) * 1); + a21 = (((a21 / 5) - 589821) + 1167128); + a9 = 2; + + return -1; + } else if(( ((-148 < a14) && (13 >= a14)) && ( a27 <= -78 && ((((input == 1) && ((a9==4) || (a9==5))) && (a8==6)) && ((-144 < a21) && (5 >= a21)) )))){ + a21 = (((((a21 % 16)+ -160) / 5) / 5) + -151); + a9 = 6; + + return -1; + } else if(((a8==5) && (((((((a9==5) && ((-144 < a21) && (5 >= a21)) ) || ((a9==6) && ((-144 < a21) && (5 >= a21)) )) || ((a9==2) && 5 < a21 )) && (input == 2)) && 182 < a27 ) && a14 <= -148 ))){ + a27 = ((((a27 - 0) * -5)/ 10) + -294512); + a21 = (((((a21 % 299911)- 300088) + -2) / 5) + -4677); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==7) && ((((((a9==5) || ((a9==3) || (a9==4))) && (input == 2)) && a27 <= -78 ) && a14 <= -148 ) && ((-144 < a21) && (5 >= a21)) ))){ + a21 = ((((a21 - 499004) + -216) * 10)/ 9); + a8 = 4; + a9 = 2; + + return -1; + } else if((((( a14 <= -148 && ((input == 1) && ((a9==4) || (a9==5)))) && 5 < a21 ) && ((100 < a27) && (182 >= a27)) ) && (a8==7))){ + a27 = ((((a27 + 578082) + -1025007) * 10)/ 9); + a21 = ((((a21 - 0) + -245360) % 299911)+ -300088); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a8==8) && ((a9==6) && ( a21 <= -178 && ( a14 <= -148 && (input == 1))))) && a27 <= -78 )){ + a27 = (((((a27 * 9)/ 10) * 1) % 88)+ 58); + a21 = ((((a21 % 74)- -2) - -3) + -4); + a8 = 4; + a9 = 4; + + return 25; + } else if(((( ((100 < a27) && (182 >= a27)) && ( a14 <= -148 && ((input == 1) && (((a9==3) || (a9==4)) || (a9==5))))) && (a8==6)) && ((-178 < a21) && (-144 >= a21)) )){ + a27 = ((((a27 + -206334) + -281424) * 10)/ 9); + a21 = ((((a21 * 10)/ 8) + -472925) - 71198); + a8 = 4; + a9 = 2; + + return -1; + } else if((((( ((-78 < a27) && (100 >= a27)) && (((a9==3) || (a9==4)) && (input == 5))) && a14 <= -148 ) && (a8==4)) && ((-144 < a21) && (5 >= a21)) )){ + a21 = (((((a21 - -68489) + 391020) / 5) * -1)/ 10); + a8 = 7; + a9 = 2; + + return 21; + } else if(((a8==7) && (((((input == 5) && ((a9==4) || (a9==5))) && a14 <= -148 ) && ((100 < a27) && (182 >= a27)) ) && 5 < a21 ))){ + a27 = ((((a27 * 5) * 10)/ -9) + -461945); + a21 = ((((a21 - 0) + -537339) % 299911)- 300088); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((a8==5) && ((((a9==4) || (a9==5)) && (input == 5)) && ((100 < a27) && (182 >= a27)) )) && a21 <= -178 ) && a14 <= -148 )){ + a27 = ((((a27 - 85268) + 541040) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a8==4) && (((input == 3) && (((a9==2) && ((-178 < a21) && (-144 >= a21)) ) || (((a9==5) && a21 <= -178 ) || ( a21 <= -178 && (a9==6))))) && 182 < a27 )) && a14 <= -148 )){ + a27 = (((a27 - 600168) / 5) - 325354); + a21 = ((((a21 % 299911)- 178) - 135366) - 137780); + a9 = 2; + + return -1; + } else if((((( 182 < a27 && ((input == 5) && ((a9==5) || (a9==6)))) && (a8==7)) && a14 <= -148 ) && ((-178 < a21) && (-144 >= a21)) )){ + a27 = (((a27 + -28779) - 571357) + -24); + a21 = (((a21 / 5) * 5) - 198791); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((( ((100 < a27) && (182 >= a27)) && (input == 3)) && a14 <= -148 ) && a21 <= -178 ) && (a9==2)) && (a8==4))){ + a27 = (((a27 + -541109) + -31128) - 10974); + return -1; + } else if(((a8==7) && ( a27 <= -78 && (( a21 <= -178 && ((input == 3) && (a9==2))) && ((-148 < a14) && (13 >= a14)) )))){ + a14 = (((a14 + -144668) * 4) + -18862); + a21 = ((((a21 - -126413) % 16)+ -161) - 1); + a8 = 6; + a9 = 5; + + return -1; + } else if(( ((-78 < a27) && (100 >= a27)) && ( a14 <= -148 && ((a8==6) && (((input == 3) && ((a9==3) || (a9==4))) && 5 < a21 ))))){ + a27 = (((a27 - 488335) / 5) * 5); + a21 = ((((a21 % 299911)- 300088) - 112580) + -42396); + a8 = 4; + a9 = 2; + + return -1; + } else if((( ((-144 < a21) && (5 >= a21)) && ((a8==6) && ( ((100 < a27) && (182 >= a27)) && ((a9==6) && (input == 5))))) && a14 <= -148 )){ + a27 = (((a27 - 258108) + -237028) * 1); + a21 = (((((a21 + 543499) - -47025) - 116330) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ( 182 < a27 && ((( 5 < a21 && ((a9==6) && (a8==5))) || ( a21 <= -178 && ((a8==6) && (a9==2)))) && (input == 3))))){ + a27 = (((a27 - 600177) * 1) + -1); + a21 = (((((a21 % 299911)- 300088) + -1) / 5) + -95340); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a8==7) && ((((a9==2) && (input == 1)) && ((-144 < a21) && (5 >= a21)) ) && ((100 < a27) && (182 >= a27)) )) && a14 <= -148 )){ + a27 = (((a27 - 360923) + 578689) - 465541); + a21 = (((a21 / 5) * 5) - 387337); + a8 = 4; + + return -1; + } else if((( 5 < a21 && ((((input == 4) && (a8==8)) && (a9==4)) && a14 <= -148 )) && ((100 < a27) && (182 >= a27)) )){ + + a8 = 4; + a9 = 2; + + return 21; + } else if(( 182 < a27 && ((a8==6) && ( a14 <= -148 && (((((a9==6) && ((-178 < a21) && (-144 >= a21)) ) || ((a9==2) && ((-144 < a21) && (5 >= a21)) )) || ( ((-144 < a21) && (5 >= a21)) && (a9==3))) && (input == 6)))))){ + a27 = ((((a27 - 402338) + -34244) + 341650) + -505158); + a21 = (((((a21 + 132646) * 10)/ 9) * 10)/ 9); + a8 = 7; + a9 = 5; + + return 21; + } else if(((( a14 <= -148 && ((((a9==2) || (a9==3)) && (input == 5)) && 5 < a21 )) && 182 < a27 ) && (a8==7))){ + if((a9==3)){ + a27 = ((((a27 % 88)+ 8) - 73) + 78); + a8 = 5; + a9 = 2; + + } else{ + a27 = (((a27 + -600141) - 26) - 10); + a21 = (((((a21 % 16)- 159) - 3) + -594756) - -594741); + a8 = 6; + a9 = 4; + + } return 21; + } else if(((((((((a9==6) && ((-178 < a21) && (-144 >= a21)) ) || ( ((-144 < a21) && (5 >= a21)) && (a9==2))) || ( ((-144 < a21) && (5 >= a21)) && (a9==3))) && (input == 6)) && 182 < a27 ) && a14 <= -148 ) && (a8==5))){ + a27 = ((((a27 - 0) + 0) % 88)+ 8); + a21 = (((a21 + 170458) - 183268) * 5); + a9 = 2; + + return 23; + } else if(( a14 <= -148 && ( ((-78 < a27) && (100 >= a27)) && ( ((-178 < a21) && (-144 >= a21)) && ((a8==8) && ((input == 5) && ((a9==3) || (a9==4)))))))){ + a27 = (((((a27 - -235050) * 2) + -331088) * -1)/ 10); + a21 = ((((a21 * 10)/ 8) - -82693) - 209279); + a8 = 4; + a9 = 2; + + return -1; + } else if((( ((-144 < a21) && (5 >= a21)) && ( 182 < a27 && ((a8==8) && (((a9==5) || (a9==6)) && (input == 4))))) && a14 <= -148 )){ + a27 = ((((a27 - 0) + -600141) + 86475) + -86436); + a21 = ((((a21 % 16)+ -159) - 2) + -1); + a8 = 5; + a9 = 4; + + return -1; + } else if((((a9==4) && ( ((-78 < a27) && (100 >= a27)) && ( ((-178 < a21) && (-144 >= a21)) && ((input == 6) && a14 <= -148 )))) && (a8==5))){ + a27 = (((a27 + -533593) / 5) + -349341); + a21 = ((((a21 + 173692) - 422725) + 643724) + -450232); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-178 < a21) && (-144 >= a21)) && (( a14 <= -148 && ((a8==8) && (((a9==2) || (a9==3)) && (input == 4)))) && 182 < a27 ))){ + if((a8==8)){ + a27 = (((a27 + -600111) * 1) - 48); + a9 = 5; + + } else{ + a14 = ((((a14 - 0) % 80)+ -66) - 1); + a27 = ((((a27 + -600175) - -210698) * 1) + -210609); + a21 = (((a21 / 5) - -512932) * 1); + a8 = 7; + a9 = 2; + + } return -1; + } else if(( ((-178 < a21) && (-144 >= a21)) && (( ((100 < a27) && (182 >= a27)) && ((a8==4) && ((a9==6) && (input == 1)))) && a14 <= -148 ))){ + + return 23; + } else if(((a8==5) && (( ((-148 < a14) && (13 >= a14)) && ((( a21 <= -178 && (a9==6)) || ((a9==2) && ((-178 < a21) && (-144 >= a21)) )) && (input == 4))) && a27 <= -78 ))){ + a14 = (((a14 + 407830) + -800496) + -125857); + a27 = ((((a27 - -497092) + -249112) % 299908)+ 300090); + a21 = ((((a21 + 124141) + 417458) % 74)+ -69); + a8 = 4; + a9 = 6; + + return -1; + } else if(( ((-78 < a27) && (100 >= a27)) && (((((input == 3) && a14 <= -148 ) && (a8==8)) && (a9==2)) && 5 < a21 ))){ + a27 = (((a27 + -162476) - 165198) * 1); + a21 = ((((a21 % 299911)+ -300088) / 5) + -78905); + a8 = 4; + + return -1; + } else if(((( a14 <= -148 && ((((a9==6) || ((a9==4) || (a9==5))) && (input == 4)) && (a8==7))) && a27 <= -78 ) && ((-178 < a21) && (-144 >= a21)) )){ + a21 = (((a21 * 5) * 5) - 260336); + a8 = 4; + a9 = 2; + + return -1; + } else if((((((((a9==5) || (a9==6)) && (input == 3)) && a14 <= -148 ) && (a8==8)) && 5 < a21 ) && ((-78 < a27) && (100 >= a27)) )){ + a27 = (((a27 + -448132) + -16457) * 1); + a21 = ((((a21 % 299911)- 300088) - 259736) - 9300); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a9==5) && ( ((-148 < a14) && (13 >= a14)) && (((a8==7) && ( a27 <= -78 && (input == 3))) && ((-144 < a21) && (5 >= a21)) )))){ + a14 = ((((a14 * 5) / 5) * 5) - 502676); + a27 = (((((a27 % 40)- -157) + -234552) - -299903) + -65336); + a8 = 8; + + return -1; + } else if(( a14 <= -148 && (( 182 < a27 && ((input == 2) && ((((a9==5) && a21 <= -178 ) || ( a21 <= -178 && (a9==6))) || ( ((-178 < a21) && (-144 >= a21)) && (a9==2))))) && (a8==6)))){ + a27 = ((((((a27 * -5)/ 10) - -219728) + 93359) * -1)/ 10); + a21 = (((((a21 % 299911)- 178) + 134968) - 54817) + -299648); + a8 = 4; + a9 = 2; + + return -1; + } else if((( ((-178 < a21) && (-144 >= a21)) && ((a9==5) && ( 182 < a27 && ((input == 4) && (a8==6))))) && a14 <= -148 )){ + a27 = (((((a27 * 9)/ 10) % 88)+ 2) / 5); + a21 = ((((a21 * -1)/ 10) + 156677) * 3); + a8 = 8; + a9 = 6; + + return 25; + } else if(((((a9==4) && (( a14 <= -148 && (input == 2)) && ((-144 < a21) && (5 >= a21)) )) && ((100 < a27) && (182 >= a27)) ) && (a8==7))){ + a27 = ((((((a27 - 50916) * 10)/ 9) + 83069) * -1)/ 10); + a21 = (((a21 - 416610) * 1) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a8==7) && (((((a9==6) && ((-144 < a21) && (5 >= a21)) ) || ((a9==2) && 5 < a21 )) && (input == 1)) && a27 <= -78 )) && ((-148 < a14) && (13 >= a14)) )){ + if( ((13 < a14) && (182 >= a14)) ){ + a14 = (((((a14 + -480254) * 10)/ 9) * 10)/ 9); + a27 = ((((((a27 % 299908)+ 300090) * 1) + -519500) * -1)/ 10); + a21 = ((((a21 % 299997)- -300002) * 1) + 0); + a8 = 5; + a9 = 2; + + } else{ + a14 = (((a14 + -465720) - 29001) / 5); + a21 = (((((a21 - 313378) % 299997)+ 300002) - 13366) + 13367); + a8 = 4; + a9 = 2; + + } return 21; + } else if(( a14 <= -148 && ( 182 < a27 && (((( 5 < a21 && (a9==2)) || (((a9==5) && ((-144 < a21) && (5 >= a21)) ) || ( ((-144 < a21) && (5 >= a21)) && (a9==6)))) && (input == 4)) && (a8==5))))){ + a27 = (((a27 / 5) - 583537) + 42368); + a21 = ((((a21 % 299911)- 300088) + 308017) - 308017); + a8 = 4; + a9 = 2; + + return -1; + } else if((((( a14 <= -148 && ( ((-178 < a21) && (-144 >= a21)) && (input == 5))) && (a8==5)) && (a9==2)) && ((-78 < a27) && (100 >= a27)) )){ + a27 = (((a27 - 348312) / 5) - 216480); + a21 = (((a21 / 5) - 533493) * 1); + a8 = 4; + + return -1; + } else if((((a8==4) && ( a21 <= -178 && (( ((-148 < a14) && (13 >= a14)) && (input == 6)) && (a9==6)))) && a27 <= -78 )){ + if((a8==5)){ + a14 = (((a14 + -103407) + -367225) - 25431); + a21 = (((((a21 * -1)/ 10) + 120927) - 507344) + 757098); + a8 = 5; + a9 = 5; + + } else{ + a14 = (((((a14 + -82706) * 5) + 549800) * -1)/ 10); + a27 = (((((a27 + 521809) % 299908)+ 300090) + -193584) + 193586); + a21 = (((((a21 % 16)- 155) - 475574) / 5) - -94993); + a8 = 5; + a9 = 3; + + } return -1; + } else if(((((a8==6) && (((input == 6) && 5 < a21 ) && 182 < a27 )) && a14 <= -148 ) && (a9==2))){ + a27 = (((a27 / 5) + -381202) - -251483); + a21 = (((((a21 + 0) - 484456) - 8825) % 299911)- 300088); + a8 = 4; + + return -1; + } else if(( ((100 < a27) && (182 >= a27)) && (( a14 <= -148 && (((a9==4) && (input == 1)) && (a8==8))) && 5 < a21 ))){ + a21 = ((((a21 + -145122) - 319628) % 74)+ -68); + a8 = 4; + a9 = 5; + + return 21; + } else if(((a8==5) && (((((((a9==5) && ((-178 < a21) && (-144 >= a21)) ) || ((a9==6) && ((-178 < a21) && (-144 >= a21)) )) || ( ((-144 < a21) && (5 >= a21)) && (a9==2))) && (input == 6)) && a27 <= -78 ) && ((-148 < a14) && (13 >= a14)) ))){ + a14 = (((a14 - 454358) - -440019) * 5); + a21 = ((((a21 + 451993) * 10)/ 9) * 1); + a9 = 5; + + return -1; + } else if(( 182 < a27 && ((a8==5) && ( a14 <= -148 && ((((a9==2) && ((-178 < a21) && (-144 >= a21)) ) || (( a21 <= -178 && (a9==5)) || ( a21 <= -178 && (a9==6)))) && (input == 4)))))){ + a27 = (((((a27 % 88)- -2) * 9)/ 10) / 5); + a21 = (((a21 / 5) - -266852) * 2); + a8 = 8; + a9 = 6; + + return 25; + } else if(((a8==8) && (( ((-178 < a21) && (-144 >= a21)) && ( 182 < a27 && ((input == 5) && ((a9==2) || (a9==3))))) && a14 <= -148 ))){ + if((a9==6)){ + a14 = ((((a14 % 80)- 3) - 467933) - -467898); + a27 = (((a27 / 5) / 5) + -248803); + a21 = (((a21 + -590404) - 7780) - 497); + a8 = 7; + a9 = 6; + + } else{ + a27 = (((a27 / 5) / 5) + -465667); + a21 = ((((a21 + -298782) - -763044) * 10)/ 9); + a8 = 4; + a9 = 2; + + } return -1; + } else if((( 182 < a27 && ((((input == 4) && (((a9==4) || (a9==5)) || (a9==6))) && a14 <= -148 ) && (a8==6))) && ((-144 < a21) && (5 >= a21)) )){ + a27 = ((((a27 * 9)/ 10) / 5) - 493872); + a21 = ((((a21 - 163242) / 5) * 10)/ 9); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && (( 182 < a27 && (((input == 4) && ((a9==4) || (a9==5))) && (a8==8))) && ((-178 < a21) && (-144 >= a21)) ))){ + a27 = (((((a27 + -600155) / 5) + 392093) * -1)/ 10); + a21 = (((((a21 * 10)/ 13) - -33) + -40730) + 40773); + a8 = 4; + a9 = 5; + + return 23; + } else if((((a8==7) && (((input == 1) && ((( ((-144 < a21) && (5 >= a21)) && (a9==5)) || ((a9==6) && ((-144 < a21) && (5 >= a21)) )) || ((a9==2) && 5 < a21 ))) && ((-78 < a27) && (100 >= a27)) )) && a14 <= -148 )){ + a27 = (((a27 + -92138) + -402940) - -198508); + a21 = ((((a21 % 299911)+ -300088) - 1) - 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(( 182 < a27 && (( a21 <= -178 && ((((a9==4) || ((a9==2) || (a9==3))) && (input == 3)) && (a8==4))) && a14 <= -148 ))){ + a27 = (((((((a27 * 9)/ 10) % 40)- -138) / 5) * 38)/ 10); + a21 = (((((a21 - -247189) % 16)+ -161) / 5) - 133); + a8 = 5; + a9 = 6; + + return 21; + } else if((( 5 < a21 && (((a8==8) && (((a9==5) || (a9==6)) && (input == 6))) && ((100 < a27) && (182 >= a27)) )) && a14 <= -148 )){ + a27 = (((((a27 * 10)/ -9) * 10)/ 9) - 23635); + a21 = ((((a21 % 299911)+ -300088) + -5422) - 88893); + a8 = 4; + a9 = 2; + + return -1; + } else if(( 5 < a21 && ((((((a9==6) || ((a9==4) || (a9==5))) && (input == 6)) && a27 <= -78 ) && ((-148 < a14) && (13 >= a14)) ) && (a8==4)))){ + if( ((-144 < a21) && (5 >= a21)) ){ + a14 = (((a14 + -509107) - 63408) * 1); + a21 = ((((a21 % 299911)+ -300088) - 110303) / 5); + a8 = 6; + a9 = 4; + + } else{ + a14 = (((a14 - 122093) + 339452) + -712455); + a27 = (((((a27 - 0) / 5) - 363880) % 88)- -53); + a21 = ((((a21 % 16)+ -166) - 83801) - -83805); + a9 = 4; + + } return -1; + } else if(((( ((100 < a27) && (182 >= a27)) && (( a14 <= -148 && (input == 5)) && a21 <= -178 )) && (a8==4)) && (a9==4))){ + if( a14 <= -148 ){ + a27 = (((a27 - -275059) + 86321) - -172683); + a21 = ((((a21 % 16)- 159) - -9) + 1); + a8 = 7; + a9 = 6; + + } else{ + a21 = ((((a21 / 5) % 74)- 50) - 15); + a9 = 6; + + } return 21; + } else if((( a14 <= -148 && ( ((-178 < a21) && (-144 >= a21)) && ((a9==5) && ((a8==6) && (input == 1))))) && 182 < a27 )){ + a27 = (((a27 / 5) - 567305) * 1); + a21 = ((((a21 * 10)/ 8) * 5) * 5); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a27 <= -78 && (((((((a8==7) && (a9==6)) && 5 < a21 ) || (((a8==8) && (a9==2)) && a21 <= -178 )) || ( a21 <= -178 && ((a9==3) && (a8==8)))) && (input == 5)) && a14 <= -148 ))){ + a21 = ((((((a21 * 9)/ 10) % 299911)- 300088) - -465939) - 465939); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-78 < a27) && (100 >= a27)) && (((a8==7) && (( 5 < a21 && (input == 6)) && (a9==6))) && a14 <= -148 ))){ + a27 = ((((a27 - 110878) * 10)/ 9) + -30278); + a21 = ((((a21 % 299911)- 300088) - 91726) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((((input == 6) && a21 <= -178 ) && a14 <= -148 ) && ((100 < a27) && (182 >= a27)) ) && (a8==4)) && (a9==4))){ + a27 = (((a27 / 5) * 5) - 177004); + a9 = 2; + + return -1; + } else if(((( a27 <= -78 && ( ((-144 < a21) && (5 >= a21)) && ((a8==7) && (input == 2)))) && a14 <= -148 ) && (a9==2))){ + if( ((-78 < a27) && (100 >= a27)) ){ + a27 = ((((a27 % 299908)+ 300090) * 1) - -246957); + a21 = (((a21 - 467421) + -5630) + -88837); + a9 = 6; + + } else{ + a21 = (((a21 + -122629) + -228133) * 1); + a8 = 8; + a9 = 4; + + } return 21; + } else if((((a8==5) && ( a21 <= -178 && (((input == 1) && ((a9==2) || (a9==3))) && a14 <= -148 ))) && ((-78 < a27) && (100 >= a27)) )){ + + a8 = 8; + a9 = 2; + + return 23; + } else if(( ((-148 < a14) && (13 >= a14)) && ((a8==5) && (((( a21 <= -178 && (a9==6)) || ( ((-178 < a21) && (-144 >= a21)) && (a9==2))) && (input == 3)) && a27 <= -78 )))){ + if((a8==5)){ + a14 = ((((a14 * 5) + -505652) * 10)/ 9); + a27 = ((((a27 / 5) % 88)- -55) - -45); + a21 = (((((a21 * 9)/ 10) - 16675) % 16)+ -161); + a8 = 4; + a9 = 4; + + } else{ + a14 = (((a14 * 5) - 352201) * 1); + a21 = (((((a21 + 0) % 16)+ -159) + 154049) - 154044); + a9 = 6; + + } return 23; + } else if(((a8==6) && ( ((-178 < a21) && (-144 >= a21)) && (( a14 <= -148 && (((a9==3) || (a9==4)) && (input == 6))) && ((-78 < a27) && (100 >= a27)) )))){ + a27 = ((((a27 / 5) / 5) / 5) + -567452); + a21 = (((a21 + 501794) - 815377) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a8==5) && ((((input == 4) && ((-144 < a21) && (5 >= a21)) ) && a14 <= -148 ) && (a9==4))) && 182 < a27 )){ + a27 = ((((a27 / 5) / 5) % 40)- -111); + a21 = (((((a21 + 431246) * 1) + -489697) * -1)/ 10); + a8 = 6; + a9 = 5; + + return 21; + } else if(( a27 <= -78 && ((a8==7) && (((((a9==4) || (a9==5)) && (input == 5)) && ((-148 < a14) && (13 >= a14)) ) && 5 < a21 )))){ + a14 = (((a14 - 203968) / 5) - -31253); + a21 = ((((((a21 % 16)+ -170) * 5) + 250846) % 16)+ -175); + a8 = 4; + a9 = 4; + + return -1; + } else if((( ((-148 < a14) && (13 >= a14)) && (((a8==4) && ((input == 3) && ((a9==3) || (a9==4)))) && a27 <= -78 )) && ((-144 < a21) && (5 >= a21)) )){ + a14 = (((a14 + -571386) / 5) - 98703); + a8 = 5; + a9 = 4; + + return 25; + } else if((( a21 <= -178 && ((a8==8) && ( ((100 < a27) && (182 >= a27)) && ((((a9==3) || (a9==4)) || (a9==5)) && (input == 1))))) && a14 <= -148 )){ + + a8 = 4; + a9 = 3; + + return -1; + } else if(((a8==8) && ( a27 <= -78 && ((a9==5) && ( a14 <= -148 && ( 5 < a21 && (input == 4))))))){ + if((a9==4)){ + a27 = (((((a27 % 299908)+ 300090) * 1) * 10)/ 9); + a21 = ((((((a21 * 9)/ 10) % 16)- 159) * 10)/ 9); + a8 = 6; + a9 = 2; + + } else{ + a27 = ((((a27 % 88)+ 89) / 5) / 5); + a8 = 5; + a9 = 3; + + } return 25; + } else if(((input == 4) && ((((( ((-148 < a14) && (13 >= a14)) && a27 <= -78 ) && (a8==4)) && (a9==2)) && a21 <= -178 ) || ((((a9==5) && ((a8==8) && ( a14 <= -148 && 182 < a27 ))) && 5 < a21 ) || (((a9==6) && (( 182 < a27 && a14 <= -148 ) && (a8==8))) && 5 < a21 ))))){ + a14 = ((((a14 % 299926)+ -300073) * 1) + -2); + a27 = ((((a27 % 299961)- 300038) * 1) - 1); + a21 = ((((a21 % 299911)+ -300088) + -1) + 0); + a8 = 6; + a9 = 6; + + return 23; + } else if(((a8==7) && ( ((-78 < a27) && (100 >= a27)) && (((((a9==2) && ((-178 < a21) && (-144 >= a21)) ) || (((a9==5) && a21 <= -178 ) || ( a21 <= -178 && (a9==6)))) && (input == 5)) && a14 <= -148 )))){ + a27 = ((((a27 * 5) * 5) / 5) + -421099); + a21 = ((((a21 % 299911)- 178) * 1) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-178 < a21) && (-144 >= a21)) && ((((((a9==4) || (a9==5)) && (input == 2)) && a14 <= -148 ) && (a8==5)) && 182 < a27 ))){ + a27 = ((((a27 * -5)/ 10) / 5) - 15686); + a21 = (((((a21 / 5) + 210923) - -185589) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((((input == 3) && (((a9==2) || (a9==3)) || (a9==4))) && a27 <= -78 ) && ((-148 < a14) && (13 >= a14)) ) && (a8==7)) && ((-144 < a21) && (5 >= a21)) )){ + a14 = (((a14 / 5) + -99512) + -18092); + a9 = 2; + + return -1; + } else if(( 182 < a27 && ((((input == 5) && ((((a9==6) && ((-178 < a21) && (-144 >= a21)) ) || ( ((-144 < a21) && (5 >= a21)) && (a9==2))) || ( ((-144 < a21) && (5 >= a21)) && (a9==3)))) && (a8==6)) && a14 <= -148 ))){ + a27 = (((a27 + 0) + -82039) - 518079); + a21 = (((a21 / 5) - 570762) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(( 182 < a27 && ((((input == 1) && (((a9==3) && ((-144 < a21) && (5 >= a21)) ) || (( ((-178 < a21) && (-144 >= a21)) && (a9==6)) || ((a9==2) && ((-144 < a21) && (5 >= a21)) )))) && a14 <= -148 ) && (a8==6)))){ + a27 = (((a27 + -600136) + -8) * 1); + a21 = (((((a21 - 526378) - -776110) * 2) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==8) && (( ((-178 < a21) && (-144 >= a21)) && (((input == 3) && ((a9==4) || (a9==5))) && 182 < a27 )) && a14 <= -148 ))){ + a27 = (((a27 - 600147) * 1) * 1); + a8 = 4; + a9 = 4; + + return 21; + } else if(( 5 < a21 && (((((((a9==4) || (a9==5)) || (a9==6)) && (input == 4)) && 182 < a27 ) && (a8==7)) && a14 <= -148 ))){ + if((a9==5)){ + a27 = ((((a27 - 0) + 0) * -5)/ 10); + a21 = (((((a21 % 74)- 88) - -225936) * 2) - 451837); + a8 = 5; + a9 = 3; + + } else{ + a27 = (((a27 / 5) - 216531) + -233921); + a8 = 6; + a9 = 6; + + } return -1; + } else if(( ((100 < a27) && (182 >= a27)) && ((a8==7) && ( a14 <= -148 && ((( a21 <= -178 && (a9==6)) || ( ((-178 < a21) && (-144 >= a21)) && (a9==2))) && (input == 1)))))){ + a27 = ((((a27 * -8)/ 10) - 382236) * 1); + a21 = ((((a21 + 486337) % 74)- 68) + -2); + a8 = 6; + a9 = 3; + + return -1; + } else if((( ((-78 < a27) && (100 >= a27)) && (((((a9==2) || (a9==3)) && (input == 3)) && a14 <= -148 ) && (a8==5))) && a21 <= -178 )){ + a21 = (((a21 / 5) - -11669) + 352089); + a8 = 7; + a9 = 6; + + return 25; + } else if(((((((input == 3) && ((a9==6) || ((a9==4) || (a9==5)))) && 182 < a27 ) && (a8==7)) && 5 < a21 ) && a14 <= -148 )){ + a27 = (((((a27 * 9)/ 10) + -143453) % 40)- -141); + a21 = ((((a21 * 9)/ 10) + -413835) - 135072); + a8 = 4; + a9 = 4; + + return 25; + } else if((((a8==7) && ( a14 <= -148 && ( ((-144 < a21) && (5 >= a21)) && ((((a9==3) || (a9==4)) || (a9==5)) && (input == 3))))) && a27 <= -78 )){ + a21 = (((a21 + -141122) / 5) / 5); + a8 = 8; + a9 = 6; + + return 23; + } else if((((a8==7) && ( 182 < a27 && (((input == 3) && ((a9==2) || (a9==3))) && a14 <= -148 ))) && 5 < a21 )){ + a27 = ((((a27 + -567331) + 136139) * 1) - 168946); + a8 = 5; + a9 = 6; + + return -1; + } else if(( ((-78 < a27) && (100 >= a27)) && ( a14 <= -148 && ( ((-144 < a21) && (5 >= a21)) && (((input == 6) && ((a9==3) || (a9==4))) && (a8==5)))))){ + a27 = (((a27 * 5) - -474051) + -745283); + a21 = (((a21 + -520594) - 51811) - 27433); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a27 <= -78 && (((((((a9==6) && ((-178 < a21) && (-144 >= a21)) ) || ((a9==2) && ((-144 < a21) && (5 >= a21)) )) || ((a9==3) && ((-144 < a21) && (5 >= a21)) )) && (input == 1)) && (a8==8)) && a14 <= -148 ))){ + a27 = (((((a27 / 5) % 88)- -59) + -202715) - -202693); + a21 = (((a21 / 5) + -273896) + -303296); + a8 = 5; + a9 = 6; + + return 23; + } else if(( ((-178 < a21) && (-144 >= a21)) && (((a8==4) && (( ((-148 < a14) && (13 >= a14)) && (input == 2)) && a27 <= -78 )) && (a9==5)))){ + a14 = (((a14 - 497657) / 5) + -494426); + a21 = (((a21 - -555931) + -990135) - -434350); + a9 = 2; + + return 25; + } else if(( a14 <= -148 && ((a8==7) && ((((input == 2) && a27 <= -78 ) && (a9==3)) && a21 <= -178 )))){ + + a8 = 4; + a9 = 2; + + return -1; + } else if(( 5 < a21 && ((a8==6) && ( ((-78 < a27) && (100 >= a27)) && ( a14 <= -148 && ((input == 3) && (a9==6))))))){ + a27 = ((((a27 - -166439) * -1)/ 10) - 501717); + a21 = ((((a21 - 0) / 5) / 5) + -135154); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((100 < a27) && (182 >= a27)) && (( ((-178 < a21) && (-144 >= a21)) && ((a8==4) && ((input == 2) && a14 <= -148 ))) && (a9==6)))){ + a27 = ((((a27 * -8)/ 10) + -462905) + -95574); + a21 = ((((a21 - 423415) / 5) * 10)/ 9); + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ((a9==5) && ( ((-144 < a21) && (5 >= a21)) && (((input == 4) && ((-78 < a27) && (100 >= a27)) ) && (a8==5)))))){ + a21 = (((a21 + 174232) * 3) + 51070); + a8 = 8; + + return 25; + } else if((( ((-148 < a14) && (13 >= a14)) && (( a27 <= -78 && (((a9==3) || (a9==4)) && (input == 1))) && (a8==6))) && 5 < a21 )){ + a14 = (((a14 * 5) + -323953) - 120523); + a27 = (((((a27 % 299908)+ 300090) * 1) - 297455) - -553250); + a21 = ((((a21 % 16)- 168) + -2) + -6); + a8 = 4; + a9 = 3; + + return -1; + } else if(((((( ((-144 < a21) && (5 >= a21)) && (input == 6)) && a27 <= -78 ) && (a8==6)) && ((-148 < a14) && (13 >= a14)) ) && (a9==3))){ + a14 = (((a14 - 7984) / 5) + -95751); + return -1; + } else if(( a21 <= -178 && ((a9==5) && ( a27 <= -78 && ((a8==5) && ( ((-148 < a14) && (13 >= a14)) && (input == 5))))))){ + a14 = ((((((a14 + 345752) * 10)/ -9) - -664850) * -1)/ 10); + a21 = ((((a21 % 74)+ 2) + -812) + 761); + a8 = 4; + a9 = 6; + + return 21; + } else if((((a8==5) && ( ((100 < a27) && (182 >= a27)) && ( a14 <= -148 && (((a9==6) || ((a9==4) || (a9==5))) && (input == 1))))) && ((-144 < a21) && (5 >= a21)) )){ + a27 = (((a27 / 5) - 201698) + 414132); + a21 = ((((((a21 % 16)+ -160) + 1) * 5) % 16)- 159); + a8 = 4; + a9 = 2; + + return -1; + } else if(((( ((-178 < a21) && (-144 >= a21)) && ((a9==5) && ((a8==4) && (input == 3)))) && a27 <= -78 ) && ((-148 < a14) && (13 >= a14)) )){ + a14 = (((a14 / 5) - 117630) * 5); + a9 = 4; + + return -1; + } else if(((a8==4) && (( a21 <= -178 && (((input == 3) && ((a9==5) || ((a9==3) || (a9==4)))) && ((-148 < a14) && (13 >= a14)) )) && a27 <= -78 ))){ + if((a8==8)){ + a14 = ((((a14 - 353961) / 5) * 10)/ 9); + a27 = ((((a27 % 88)- -84) - 32) - -43); + a21 = ((((a21 - 0) % 74)- 12) + 10); + a8 = 5; + a9 = 3; + + } else{ + a14 = (((a14 - 367268) / 5) + -385346); + a21 = (((((a21 % 74)+ 4) + 1) - -429046) + -429117); + a8 = 5; + a9 = 2; + + } return 23; + } else if(((((a8==5) && (((input == 2) && ((-148 < a14) && (13 >= a14)) ) && 5 < a21 )) && a27 <= -78 ) && (a9==5))){ + a21 = ((((((a21 % 74)+ -122) * 10)/ 9) * 9)/ 10); + a8 = 7; + + return 25; + } else if(( ((-148 < a14) && (13 >= a14)) && (((((input == 4) && (a9==3)) && (a8==7)) && a27 <= -78 ) && a21 <= -178 ))){ + if((a8==8)){ + a14 = (((a14 * 5) - -167088) - 456837); + a27 = ((((a27 % 299908)- -300090) - -255510) - -39665); + a21 = ((((a21 % 74)- -3) - -504995) - 505012); + a8 = 8; + + } else{ + a14 = (((a14 + -219223) + -307424) - -175107); + a21 = ((((a21 - 0) % 16)- 146) - 2); + a8 = 4; + a9 = 5; + + } return -1; + } else if(((((( 5 < a21 && (input == 2)) && (a9==3)) && a27 <= -78 ) && ((-148 < a14) && (13 >= a14)) ) && (a8==7))){ + a14 = (((((a14 + -585259) * 1) - -900097) * -1)/ 10); + a27 = (((((a27 / 5) - 33330) + 65163) % 40)- -142); + a21 = (((((a21 % 74)- 111) / 5) + 476251) + -476276); + a8 = 6; + a9 = 6; + + return -1; + } else if(( ((-144 < a21) && (5 >= a21)) && ((a9==5) && ((a8==7) && (((input == 1) && ((-148 < a14) && (13 >= a14)) ) && a27 <= -78 ))))){ + if((a8==8)){ + a14 = (((a14 + -560461) * 1) * 1); + a27 = ((((a27 % 299908)+ 300090) + 255984) - -37520); + a21 = (((a21 / 5) / 5) + -52445); + a8 = 8; + a9 = 2; + + } else{ + a14 = (((a14 - 598182) - 1132) + -164); + a27 = (((a27 / 5) + 177451) / 5); + a21 = (((a21 + 578976) * 1) - -1898); + a8 = 5; + a9 = 3; + + } return -1; + } else if((((a8==4) && ( a14 <= -148 && ((((a9==2) && ((-178 < a21) && (-144 >= a21)) ) || (( a21 <= -178 && (a9==5)) || ( a21 <= -178 && (a9==6)))) && (input == 1)))) && 182 < a27 )){ + if((a9==3)){ + a21 = ((((a21 % 16)- 158) + -383837) + 383842); + a9 = 4; + + } else{ + a27 = ((((a27 / 5) + -426555) % 88)- -56); + a21 = (((((a21 % 16)- 148) - 10) - -10419) - 10421); + a8 = 6; + a9 = 3; + + } return -1; + } else if(( a14 <= -148 && ((((a8==6) && ((input == 2) && ((a9==3) || (a9==4)))) && 182 < a27 ) && ((-178 < a21) && (-144 >= a21)) ))){ + a27 = ((((a27 - 190339) % 88)+ 11) + -1); + a21 = (((a21 - -135) + 454687) + -454778); + a8 = 5; + a9 = 3; + + return 21; + } else if(((a8==7) && ((( 182 < a27 && ((input == 5) && (((a9==2) || (a9==3)) || (a9==4)))) && ((-178 < a21) && (-144 >= a21)) ) && a14 <= -148 ))){ + a27 = (((a27 + -600119) - 62) + -2); + a21 = (((((a21 * 10)/ 8) - 355688) * 10)/ 9); + a8 = 4; + a9 = 2; + + return -1; + } else if((( a14 <= -148 && (((((a9==4) || (a9==5)) && (input == 6)) && (a8==8)) && ((-178 < a21) && (-144 >= a21)) )) && 182 < a27 )){ + a27 = (((a27 + -600176) + -3) - 2); + a21 = (((a21 + 410959) - -186211) + 1069); + a8 = 5; + a9 = 5; + + return -1; + } else if((( a27 <= -78 && (((input == 4) && (( ((-178 < a21) && (-144 >= a21)) && (a9==6)) || ((a9==2) && ((-144 < a21) && (5 >= a21)) ))) && ((-148 < a14) && (13 >= a14)) )) && (a8==4))){ + a14 = (((((a14 - 372953) - -820886) / 5) * -1)/ 10); + a21 = (((((a21 % 16)+ -160) * 5) % 16)- 158); + a8 = 6; + a9 = 4; + + return -1; + } else if(( a14 <= -148 && (((((input == 3) && (((a9==4) || (a9==5)) || (a9==6))) && a21 <= -178 ) && (a8==8)) && 182 < a27 ))){ + a27 = ((((a27 % 40)- -130) + 110817) - 110827); + a8 = 7; + a9 = 6; + + return -1; + } else if((((( ((100 < a27) && (182 >= a27)) && ((input == 2) && (a9==3))) && a14 <= -148 ) && (a8==8)) && ((-144 < a21) && (5 >= a21)) )){ + a27 = ((((((a27 * -1)/ 10) * 9)/ 10) - 331237) + 331193); + a21 = ((((((a21 % 16)- 160) - -1) * 5) % 16)+ -160); + a8 = 5; + a9 = 2; + + return 23; + } else if(((((((input == 4) && a14 <= -148 ) && ((-178 < a21) && (-144 >= a21)) ) && ((-78 < a27) && (100 >= a27)) ) && (a8==6)) && (a9==5))){ + a27 = (((((a27 + -398317) + -110567) + 939836) * -1)/ 10); + a21 = (((a21 - 586455) - 4452) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && (((a8==6) && ((input == 5) && ((( ((-144 < a21) && (5 >= a21)) && (a9==5)) || ((a9==6) && ((-144 < a21) && (5 >= a21)) )) || ( 5 < a21 && (a9==2))))) && ((-78 < a27) && (100 >= a27)) ))){ + a27 = (((a27 + -49941) * 5) + -217804); + a21 = (((((a21 % 299911)- 300088) * 1) - -442336) - 442336); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ((((( 5 < a21 && ((a9==5) && (a8==4))) || (((a9==6) && (a8==4)) && 5 < a21 )) || (((a9==2) && (a8==5)) && a21 <= -178 )) && (input == 5)) && 182 < a27 ))){ + a27 = ((((a27 * 9)/ 10) - 565355) / 5); + a21 = (((((a21 % 299997)+ 300002) - 0) / 5) - -322605); + a8 = 8; + a9 = 6; + + return 21; + } else if(((a8==7) && ( a21 <= -178 && ( a14 <= -148 && ( ((-78 < a27) && (100 >= a27)) && (((a9==3) || (a9==4)) && (input == 6))))))){ + a27 = (((a27 + -77089) * 5) - 3983); + a8 = 4; + a9 = 2; + + return -1; + } else if((((((a8==7) && ((input == 5) && ((a9==4) || (a9==5)))) && ((-178 < a21) && (-144 >= a21)) ) && a14 <= -148 ) && ((100 < a27) && (182 >= a27)) )){ + a27 = ((((a27 * -8)/ 10) - 393193) * 1); + a21 = ((((a21 + 140892) * 10)/ 9) + 107917); + a8 = 4; + a9 = 5; + + return -1; + } else if(((( a14 <= -148 && (((input == 5) && ((a9==4) || (a9==5))) && a27 <= -78 )) && 5 < a21 ) && (a8==7))){ + a21 = (((((a21 % 16)- 164) / 5) * 10)/ 2); + a8 = 8; + a9 = 6; + + return 25; + } else if(( ((100 < a27) && (182 >= a27)) && (( a14 <= -148 && ((input == 4) && (( a21 <= -178 && (a9==6)) || ( ((-178 < a21) && (-144 >= a21)) && (a9==2))))) && (a8==4)))){ + a27 = (((((a27 * -8)/ 10) - -541993) * -1)/ 10); + a21 = (((((a21 + 116960) % 16)+ -161) + -177804) - -177805); + a8 = 7; + a9 = 3; + + return -1; + } else if(((((input == 3) && ((((a9==2) && (a8==5)) && a21 <= -178 ) || (( 5 < a21 && ((a8==4) && (a9==5))) || ( 5 < a21 && ((a8==4) && (a9==6)))))) && a14 <= -148 ) && 182 < a27 )){ + a27 = ((((((a27 * 9)/ 10) * 1) + -505440) % 88)- -11); + a21 = (((((a21 + 0) % 299911)- 300088) - -16088) - 16088); + a8 = 4; + a9 = 2; + + return 25; + } else if((( ((-178 < a21) && (-144 >= a21)) && ((((input == 5) && ((a9==5) || ((a9==3) || (a9==4)))) && a27 <= -78 ) && (a8==7))) && ((-148 < a14) && (13 >= a14)) )){ + if((a8==5)){ + a14 = (((a14 * 5) + -514904) * 1); + a21 = (((a21 * 5) * 5) + -465292); + a8 = 8; + a9 = 6; + + } else{ + a14 = (((a14 - 408576) * 1) + -164194); + a27 = (((((a27 % 88)- -76) - -5) + 57571) + -57553); + a21 = ((((a21 * 5) * 10)/ -9) / 5); + a8 = 4; + a9 = 6; + + } return -1; + } else if(( a21 <= -178 && ((( a14 <= -148 && ((input == 1) && (a8==7))) && (a9==6)) && 182 < a27 ))){ + a27 = (((a27 - 600083) + -77) + -9); + a8 = 4; + a9 = 2; + + return -1; + } else if(((( a21 <= -178 && (((input == 2) && ((-148 < a14) && (13 >= a14)) ) && (a8==4))) && (a9==6)) && a27 <= -78 )){ + if( a21 <= -178 ){ + a14 = (((((a14 - 437625) + 309218) + 548040) * -1)/ 10); + a27 = (((((a27 % 40)+ 155) / 5) - -86319) + -86174); + a21 = (((a21 + 600055) - -47) + 46); + a8 = 5; + + } else{ + a14 = ((((a14 + -491434) - -494736) * 5) + -359682); + a21 = (((a21 - -600157) + 9) - -3); + a8 = 7; + a9 = 2; + + } return -1; + } else if((( 182 < a27 && (((a9==2) && ((a8==6) && (input == 3))) && 5 < a21 )) && a14 <= -148 )){ + a27 = (((a27 - 600114) + -68) * 1); + a21 = ((((a21 % 299911)+ -300088) - 199738) + -65053); + a8 = 4; + + return -1; + } else if(((((((input == 1) && ((a9==2) || (a9==3))) && a21 <= -178 ) && ((100 < a27) && (182 >= a27)) ) && (a8==6)) && a14 <= -148 )){ + a27 = ((((a27 + 576656) + 20430) / 5) - 545159); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a21 <= -178 && (((((input == 4) && ((a9==4) || ((a9==2) || (a9==3)))) && (a8==4)) && 182 < a27 ) && a14 <= -148 ))){ + a27 = (((((a27 / 5) + 4091) + 92606) * -1)/ 10); + a9 = 2; + + return -1; + } else if(((((a8==7) && (((input == 5) && ((100 < a27) && (182 >= a27)) ) && ((-144 < a21) && (5 >= a21)) )) && a14 <= -148 ) && (a9==3))){ + a27 = (((((a27 * -8)/ 10) - -577697) / 5) - 711400); + a21 = (((a21 - 430880) * 1) - -2736); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((((a9==5) && (input == 3)) && (a8==7)) && 182 < a27 ) && a21 <= -178 ) && a14 <= -148 )){ + a27 = (((a27 - 0) + -600104) - 74); + a8 = 4; + a9 = 2; + + return -1; + } else if((((( a14 <= -148 && ((input == 2) && ((a9==4) || (a9==5)))) && (a8==8)) && ((-178 < a21) && (-144 >= a21)) ) && ((100 < a27) && (182 >= a27)) )){ + + a8 = 4; + a9 = 2; + + return 23; + } else if(( 182 < a27 && ( a14 <= -148 && ((a8==4) && ((input == 5) && ((( ((-178 < a21) && (-144 >= a21)) && (a9==5)) || ( ((-178 < a21) && (-144 >= a21)) && (a9==6))) || ( ((-144 < a21) && (5 >= a21)) && (a9==2)))))))){ + a27 = ((((a27 - 600150) - -457159) / 5) - 521696); + a21 = (((a21 - 221313) + -155963) - 169271); + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ( ((-78 < a27) && (100 >= a27)) && (((a9==3) && ((input == 6) && 5 < a21 )) && (a8==7))))){ + a27 = (((a27 / 5) * 5) + -259653); + a21 = ((((a21 * 9)/ 10) + -554715) - 41237); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a21 <= -178 && ((( ((-78 < a27) && (100 >= a27)) && ((input == 4) && ((a9==3) || (a9==4)))) && a14 <= -148 ) && (a8==7)))){ + a27 = (((a27 + -4653) * 5) * 5); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((((((a8==6) && (a9==5)) && 5 < a21 ) || ( 5 < a21 && ((a8==6) && (a9==6)))) || ( a21 <= -178 && ((a9==2) && (a8==7)))) && (input == 4)) && a14 <= -148 ) && 182 < a27 )){ + a27 = ((((a27 / 5) / 5) / 5) - 268250); + a21 = ((((((a21 % 299911)- 300088) - 2) * 9)/ 10) + -22618); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==7) && ((((((a9==3) || (a9==4)) && (input == 3)) && ((-78 < a27) && (100 >= a27)) ) && a21 <= -178 ) && a14 <= -148 ))){ + a27 = (((((a27 * 5) + 306628) - -25808) % 40)- -119); + a21 = (((((a21 - 0) % 16)+ -144) / 5) - 145); + a8 = 6; + a9 = 4; + + return 23; + } else if(((( 182 < a27 && (((a8==7) && (input == 3)) && a21 <= -178 )) && (a9==6)) && a14 <= -148 )){ + a27 = (((((a27 + 0) / 5) / 5) % 88)- 14); + a8 = 4; + a9 = 4; + + return 25; + } else if(( ((-78 < a27) && (100 >= a27)) && (((((input == 1) && (a9==2)) && a14 <= -148 ) && (a8==4)) && ((-178 < a21) && (-144 >= a21)) ))){ + a27 = (((a27 * 5) * 5) - 464504); + a21 = (((a21 / 5) + -396717) + 336542); + return -1; + } else if(( a21 <= -178 && ((a8==7) && (( a14 <= -148 && ((input == 4) && (((a9==4) || (a9==5)) || (a9==6)))) && a27 <= -78 )))){ + + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ((( ((100 < a27) && (182 >= a27)) && ((input == 2) && ((a9==4) || (a9==5)))) && 5 < a21 ) && (a8==7)))){ + a21 = ((((a21 % 299911)- 300088) - -289650) - 553099); + a8 = 4; + a9 = 3; + + return 21; + } else if((((a8==6) && (((((a9==2) && ((-178 < a21) && (-144 >= a21)) ) || (((a9==5) && a21 <= -178 ) || ((a9==6) && a21 <= -178 ))) && (input == 5)) && a14 <= -148 )) && ((100 < a27) && (182 >= a27)) )){ + a27 = ((((a27 / 5) - -572632) * 1) + -572676); + a21 = ((((a21 + 142944) % 299911)- 300088) * 1); + a8 = 7; + a9 = 2; + + return 21; + } else if(( 5 < a21 && ( a27 <= -78 && ((a8==4) && ( ((-148 < a14) && (13 >= a14)) && ((input == 2) && (a9==3))))))){ + a14 = (((a14 + 91066) + -635557) * 1); + a21 = (((a21 / 5) + -381757) / 5); + a8 = 5; + a9 = 2; + + return -1; + } else if(( a21 <= -178 && ((a9==5) && ( ((100 < a27) && (182 >= a27)) && ( a14 <= -148 && ((a8==4) && (input == 1))))))){ + a21 = (((((a21 % 16)+ -158) + -3) + 58528) + -58519); + a9 = 2; + + return 21; + } + return calculate_output2(input); + } + + int calculate_output2(int input) { + + + if(((a9==6) && ( 5 < a21 && (((a8==7) && ((input == 4) && ((-78 < a27) && (100 >= a27)) )) && a14 <= -148 )))){ + a27 = (((a27 - 483864) + -66270) - 38767); + a21 = ((((a21 % 299911)- 300088) - 235905) + -7587); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a21 <= -178 && (((((((a9==2) || (a9==3)) || (a9==4)) && (input == 1)) && (a8==4)) && ((-78 < a27) && (100 >= a27)) ) && a14 <= -148 ))){ + a27 = (((a27 - 578975) * 1) - 2298); + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ( ((-78 < a27) && (100 >= a27)) && (((input == 2) && (((a9==6) && a21 <= -178 ) || ( ((-178 < a21) && (-144 >= a21)) && (a9==2)))) && (a8==8))))){ + a27 = (((((a27 / 5) - -122) * 5) % 40)- -127); + a21 = ((((a21 + 600098) - 455536) * 1) - -455478); + a8 = 5; + a9 = 3; + + return 21; + } else if((((((a8==6) && (((a9==4) || (a9==5)) && (input == 6))) && ((-144 < a21) && (5 >= a21)) ) && ((-148 < a14) && (13 >= a14)) ) && a27 <= -78 )){ + a14 = (((((a14 - 505722) * 1) - -1017561) * -1)/ 10); + a27 = ((((((a27 + 0) % 40)+ 161) * 5) % 40)- -107); + a21 = (((((a21 - 153532) + 350664) - 748425) % 16)+ -156); + a8 = 7; + a9 = 3; + + return -1; + } else if(((( ((-78 < a27) && (100 >= a27)) && ((((a9==3) || (a9==4)) && (input == 4)) && (a8==6))) && ((-178 < a21) && (-144 >= a21)) ) && a14 <= -148 )){ + a27 = ((((a27 % 40)- -141) - 532464) + 532465); + a21 = (((a21 + -502327) * 1) + 502377); + a8 = 7; + a9 = 4; + + return 21; + } else if(((a9==6) && (((((input == 5) && (a8==8)) && a21 <= -178 ) && a14 <= -148 ) && a27 <= -78 ))){ + a27 = (((((a27 % 88)+ 53) + 44) * 9)/ 10); + a21 = ((((a21 % 74)- -2) / 5) - -2); + a8 = 4; + a9 = 2; + + return 23; + } else if(( a21 <= -178 && (((a8==5) && ((((a9==4) || ((a9==2) || (a9==3))) && (input == 3)) && a27 <= -78 )) && ((-148 < a14) && (13 >= a14)) ))){ + a14 = (((a14 - 124942) + 333233) - 496335); + a27 = ((((a27 + 0) % 299908)- -300090) + 271492); + a21 = (((a21 + 376861) * 1) + 223150); + a8 = 7; + a9 = 2; + + return -1; + } else if(((a8==8) && (( a14 <= -148 && (((( ((-178 < a21) && (-144 >= a21)) && (a9==6)) || ((a9==2) && ((-144 < a21) && (5 >= a21)) )) || ((a9==3) && ((-144 < a21) && (5 >= a21)) )) && (input == 2))) && a27 <= -78 ))){ + a21 = (((a21 - 217011) * 2) + -66398); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==4) && (( ((-178 < a21) && (-144 >= a21)) && ((a9==2) && ( a27 <= -78 && (input == 2)))) && ((-148 < a14) && (13 >= a14)) ))){ + a14 = ((((a14 + -377440) * 10)/ 9) - 72117); + a27 = (((((((a27 * 9)/ 10) % 40)+ 140) * 5) % 40)- -101); + a8 = 5; + a9 = 6; + + return -1; + } else if((((( ((100 < a27) && (182 >= a27)) && ((a8==6) && (input == 6))) && a21 <= -178 ) && (a9==4)) && a14 <= -148 )){ + a21 = ((((a21 * 9)/ 10) - -583781) + 13608); + a9 = 6; + + return 25; + } else if(( a21 <= -178 && ( a14 <= -148 && ((a8==5) && (((a9==4) && (input == 3)) && 182 < a27 ))))){ + a27 = (((a27 + -466181) - 49631) - 84351); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a27 <= -78 && (((((((a9==5) && a21 <= -178 ) || ( a21 <= -178 && (a9==6))) || ( ((-178 < a21) && (-144 >= a21)) && (a9==2))) && (input == 3)) && (a8==7)) && ((-148 < a14) && (13 >= a14)) ))){ + a14 = (((a14 * 5) + -507944) * 1); + a27 = ((((a27 + 345015) % 40)- -141) + -1); + a21 = (((((a21 % 74)- 28) + -29) * 9)/ 10); + a9 = 4; + + return -1; + } else if(((( ((-144 < a21) && (5 >= a21)) && (((input == 6) && (((a9==2) || (a9==3)) || (a9==4))) && a14 <= -148 )) && (a8==7)) && ((-78 < a27) && (100 >= a27)) )){ + a27 = (((a27 + -440471) / 5) * 5); + a21 = (((a21 + -151788) * 3) + -55108); + a8 = 4; + a9 = 2; + + return -1; + } else if((( ((100 < a27) && (182 >= a27)) && (( a14 <= -148 && ((input == 4) && (a8==7))) && ((-144 < a21) && (5 >= a21)) )) && (a9==2))){ + a27 = ((((a27 * 10)/ 19) - -5) + -61); + a21 = ((((a21 + -78751) + 189535) * 10)/ -9); + a8 = 4; + a9 = 6; + + return 23; + } else if((((((input == 1) && (( ((-178 < a21) && (-144 >= a21)) && (a9==2)) || (((a9==5) && a21 <= -178 ) || ((a9==6) && a21 <= -178 )))) && (a8==5)) && a14 <= -148 ) && 182 < a27 )){ + a27 = (((a27 - 600106) + -76) - 0); + a21 = ((((a21 % 299911)- 178) + -201251) - -91655); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ( ((100 < a27) && (182 >= a27)) && (((((a9==3) || (a9==4)) && (input == 4)) && ((-178 < a21) && (-144 >= a21)) ) && (a8==5))))){ + a21 = (((a21 + -198534) * 3) - 2277); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a9==5) && ( a27 <= -78 && (( 5 < a21 && ( ((-148 < a14) && (13 >= a14)) && (input == 3))) && (a8==5))))){ + a14 = (((((a14 + 47070) * 5) * 2) * -1)/ 10); + a21 = ((((a21 + 0) - 0) / 5) - 378430); + a8 = 4; + + return -1; + } else if((( ((-78 < a27) && (100 >= a27)) && ((a8==8) && ((((a9==3) || (a9==4)) && (input == 3)) && 5 < a21 ))) && a14 <= -148 )){ + a27 = ((((a27 - 387237) * 10)/ 9) + -94298); + a21 = ((((a21 % 299911)- 300088) * 1) + -191697); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && (((a8==6) && ( ((-144 < a21) && (5 >= a21)) && (((a9==4) || (a9==5)) && (input == 2)))) && ((100 < a27) && (182 >= a27)) ))){ + if((a9==6)){ + a27 = ((((a27 - 413134) + -110462) / 5) + 277992); + a21 = (((a21 - -171820) + 154569) * 1); + a9 = 5; + + } else{ + a21 = (((a21 + 22880) + 489165) + 23407); + a8 = 4; + a9 = 3; + + } return -1; + } else if(( a27 <= -78 && ((((( ((-144 < a21) && (5 >= a21)) && (a9==2)) || (((a9==5) && ((-178 < a21) && (-144 >= a21)) ) || ((a9==6) && ((-178 < a21) && (-144 >= a21)) ))) && (input == 4)) && (a8==6)) && ((-148 < a14) && (13 >= a14)) ))){ + if((a9==6)){ + a14 = (((a14 + -232668) - 58075) + 67328); + a27 = (((((a27 % 88)+ 29) - 406153) + 531439) + -125267); + a21 = ((((a21 % 74)- 69) - -456016) + -456016); + a9 = 6; + + } else{ + a14 = (((a14 + -199173) * 3) - 824); + a27 = (((((a27 - 0) / 5) / 5) % 88)+ 68); + a21 = (((((a21 - -16382) * 10)/ 9) * 10)/ 9); + a8 = 7; + a9 = 6; + + } return -1; + } else if(((a8==6) && ( 5 < a21 && (( a14 <= -148 && ((((a9==2) || (a9==3)) || (a9==4)) && (input == 3))) && ((100 < a27) && (182 >= a27)) )))){ + a27 = ((((a27 + 261773) * -1)/ 10) / 5); + a21 = ((((a21 + 0) * 9)/ 10) - 540197); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-178 < a21) && (-144 >= a21)) && ( a27 <= -78 && ((a8==7) && ( a14 <= -148 && (((a9==6) || ((a9==4) || (a9==5))) && (input == 1))))))){ + a27 = ((((((a27 % 40)- -145) * 5) + 92657) % 40)- -119); + a21 = ((((a21 * 5) - 462117) % 74)+ -65); + a8 = 8; + a9 = 4; + + return 23; + } else if(( ((-178 < a21) && (-144 >= a21)) && ( a27 <= -78 && ( ((-148 < a14) && (13 >= a14)) && ((a8==4) && (((a9==3) || (a9==4)) && (input == 2))))))){ + if( a27 <= -78 ){ + a14 = (((a14 + -529108) * 1) - 62048); + a27 = ((((a27 + 512940) % 88)- -12) / 5); + a21 = (((((a21 + 59) * 10)/ 9) + -157581) + 157588); + a9 = 6; + + } else{ + a14 = (((a14 + -20158) + -417262) * 1); + a27 = (((a27 / 5) - 267279) - -717141); + a21 = ((((((a21 * -1)/ 10) * 10)/ 9) * 10)/ 9); + a9 = 6; + + } return 21; + } else if(( a14 <= -148 && ((((((a9==3) || (a9==4)) && (input == 5)) && 5 < a21 ) && ((-78 < a27) && (100 >= a27)) ) && (a8==5)))){ + a27 = (((a27 / 5) * 5) - 274872); + a21 = ((((a21 + -172470) % 299911)- 300088) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if((( ((-78 < a27) && (100 >= a27)) && (((input == 6) && (((a9==2) && ((-178 < a21) && (-144 >= a21)) ) || (( a21 <= -178 && (a9==5)) || ( a21 <= -178 && (a9==6))))) && a14 <= -148 )) && (a8==7))){ + a27 = (((a27 / 5) + 93312) - 657568); + a21 = ((((a21 % 299911)- 178) * 1) - 287697); + a8 = 4; + a9 = 2; + + return -1; + } else if(( 182 < a27 && ( a14 <= -148 && ((((((a9==5) && (a8==4)) && 5 < a21 ) || ( 5 < a21 && ((a9==6) && (a8==4)))) || (((a9==2) && (a8==5)) && a21 <= -178 )) && (input == 6))))){ + a27 = ((((a27 - 600130) + -46) - -415581) - 415512); + a21 = ((((a21 % 299911)- 300088) - 0) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-144 < a21) && (5 >= a21)) && ((a8==7) && ( a14 <= -148 && ( 182 < a27 && ((((a9==2) || (a9==3)) || (a9==4)) && (input == 3))))))){ + a27 = ((((((a27 % 40)- -116) * 10)/ 9) - -131394) - 131416); + a8 = 6; + a9 = 5; + + return 23; + } else if(( a14 <= -148 && (( ((-78 < a27) && (100 >= a27)) && (((((a9==5) && ((-144 < a21) && (5 >= a21)) ) || ( ((-144 < a21) && (5 >= a21)) && (a9==6))) || ( 5 < a21 && (a9==2))) && (input == 3))) && (a8==7)))){ + a27 = ((((a27 + -159690) * 10)/ 9) + -407997); + a21 = ((((a21 % 299911)- 300088) + 0) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if((( 182 < a27 && (( ((-144 < a21) && (5 >= a21)) && ((input == 5) && (a8==8))) && a14 <= -148 )) && (a9==3))){ + a27 = (((a27 - 600093) - 54) - 17); + a21 = (((a21 - 223943) + -10877) / 5); + a8 = 4; + + return -1; + } else if(((( a14 <= -148 && ((a8==4) && ( ((-78 < a27) && (100 >= a27)) && (input == 6)))) && ((-178 < a21) && (-144 >= a21)) ) && (a9==2))){ + a21 = (((a21 * 5) - -511666) - -45494); + a8 = 6; + a9 = 3; + + return 25; + } else if(( 5 < a21 && (( ((100 < a27) && (182 >= a27)) && ( a14 <= -148 && ((input == 2) && ((a9==4) || ((a9==2) || (a9==3)))))) && (a8==6)))){ + a27 = (((a27 - 575665) - 3826) - 17586); + a21 = ((((a21 % 299911)- 300088) + -189053) - 41850); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((((input == 6) && ((-144 < a21) && (5 >= a21)) ) && (a9==3)) && ((-78 < a27) && (100 >= a27)) ) && (a8==8)) && a14 <= -148 )){ + a27 = (((a27 - 239390) + -125383) * 1); + a21 = (((a21 / 5) / 5) + 354977); + a8 = 7; + a9 = 4; + + return 21; + } else if(((( ((100 < a27) && (182 >= a27)) && (((input == 3) && ((a9==2) || (a9==3))) && (a8==7))) && a14 <= -148 ) && 5 < a21 )){ + a27 = ((((a27 * -1)/ 10) + -33) / 5); + a21 = (((((a21 - 8281) - 334928) + 232516) % 16)- 161); + a8 = 5; + a9 = 4; + + return 25; + } else if(((a8==4) && ( a21 <= -178 && ((((input == 3) && (a9==3)) && ((100 < a27) && (182 >= a27)) ) && a14 <= -148 )))){ + a21 = ((((a21 % 16)- 144) - 206405) + 206387); + a8 = 6; + a9 = 6; + + return 25; + } else if(((((a8==4) && ( 5 < a21 && (((a9==2) || (a9==3)) && (input == 4)))) && a14 <= -148 ) && ((100 < a27) && (182 >= a27)) )){ + a27 = ((((a27 - 92516) + 616739) * 10)/ -9); + a21 = (((((a21 % 299911)- 300088) * 1) / 5) + -118600); + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ( 182 < a27 && (((a8==8) && (((a9==2) || (a9==3)) && (input == 4))) && a21 <= -178 )))){ + a21 = ((((a21 * 9)/ 10) - -562082) / 5); + a9 = 3; + + return -1; + } else if(((( 182 < a27 && ( a14 <= -148 && ((input == 5) && (((a9==4) || (a9==5)) || (a9==6))))) && (a8==4)) && ((-144 < a21) && (5 >= a21)) )){ + a27 = (((a27 + 0) / 5) + -389459); + a21 = ((((((a21 % 16)- 160) * 5) - 177238) % 16)+ -149); + a8 = 5; + a9 = 6; + + return -1; + } else if((( a14 <= -148 && ((a8==4) && (( ((100 < a27) && (182 >= a27)) && (input == 3)) && 5 < a21 ))) && (a9==4))){ + a27 = ((((a27 - 184267) + -332129) * 10)/ 9); + a21 = ((((a21 * 9)/ 10) - 541909) / 5); + a9 = 2; + + return -1; + } else if(((a9==4) && ( a14 <= -148 && (( a27 <= -78 && ((input == 1) && (a8==8))) && a21 <= -178 )))){ + + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ( ((100 < a27) && (182 >= a27)) && ((((input == 4) && ((a9==6) || ((a9==4) || (a9==5)))) && (a8==4)) && ((-144 < a21) && (5 >= a21)) )))){ + + a8 = 7; + a9 = 2; + + return -1; + } else if(( ((-78 < a27) && (100 >= a27)) && ( a14 <= -148 && ((input == 5) && (((((a8==5) && (a9==5)) && 5 < a21 ) || ( 5 < a21 && ((a9==6) && (a8==5)))) || ( a21 <= -178 && ((a9==2) && (a8==6)))))))){ + a27 = (((((a27 % 40)- -142) * 1) - 214679) + 214677); + a21 = (((((a21 % 299911)- 300088) + -1) + 562060) + -562059); + a8 = 4; + a9 = 5; + + return 23; + } else if(( a14 <= -148 && ((a8==8) && (( 5 < a21 && ((input == 5) && ((100 < a27) && (182 >= a27)) )) && (a9==3))))){ + a27 = (((a27 - 121) + 366667) - 366703); + a21 = ((((((a21 * 9)/ 10) % 74)+ -123) * 9)/ 10); + a8 = 4; + a9 = 2; + + return 23; + } else if(((( ((-178 < a21) && (-144 >= a21)) && ((((a9==3) || (a9==4)) && (input == 3)) && ((-148 < a14) && (13 >= a14)) )) && a27 <= -78 ) && (a8==5))){ + if( a14 <= -148 ){ + a14 = (((a14 - 226025) - 137422) * 1); + a8 = 4; + a9 = 4; + + } else{ + a14 = (((a14 - 360447) / 5) / 5); + a27 = (((((a27 / 5) % 40)+ 153) / 5) + 142); + a21 = (((a21 + 140137) * 4) + 28608); + a8 = 8; + a9 = 3; + + } return -1; + } else if(( ((100 < a27) && (182 >= a27)) && ( a14 <= -148 && ((a8==8) && ((((a9==6) && ((-178 < a21) && (-144 >= a21)) ) || ( ((-144 < a21) && (5 >= a21)) && (a9==2))) && (input == 2)))))){ + a27 = (((a27 + -292317) * 2) / 5); + a21 = (((((a21 - -492853) * 1) + 6264) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a9==3) && ((((input == 3) && a21 <= -178 ) && (a8==8)) && ((-78 < a27) && (100 >= a27)) )) && a14 <= -148 )){ + a27 = (((a27 + -477052) * 1) / 5); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a8==4) && ((((input == 4) && ((-78 < a27) && (100 >= a27)) ) && 5 < a21 ) && (a9==3))) && a14 <= -148 )){ + a21 = (((((a21 % 74)+ -72) + 3) + -11689) + 11663); + a8 = 7; + a9 = 6; + + return 23; + } else if(( a14 <= -148 && (((input == 5) && ((((a8==7) && (a9==6)) && 5 < a21 ) || (((a8==8) && (a9==2)) && a21 <= -178 ))) && ((100 < a27) && (182 >= a27)) ))){ + a27 = ((((a27 - 581026) - 5337) - -975277) - 868557); + a21 = (((((a21 % 299911)- 300088) - 1) / 5) + -103377); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a21 <= -178 && ( a14 <= -148 && ((a8==8) && (((input == 6) && ((a9==5) || ((a9==3) || (a9==4)))) && ((100 < a27) && (182 >= a27)) ))))){ + a27 = (((a27 * 5) + 207748) + -388985); + a8 = 4; + a9 = 2; + + return -1; + } else if((( ((-148 < a14) && (13 >= a14)) && ( a27 <= -78 && ((((a9==6) && ((-144 < a21) && (5 >= a21)) ) || ( 5 < a21 && (a9==2))) && (input == 4)))) && (a8==6))){ + a14 = (((a14 - 95939) - 140454) * 2); + a21 = (((((a21 - 88500) - 419467) - -385467) % 299911)+ -300088); + a9 = 4; + + return -1; + } else if(( ((-148 < a14) && (13 >= a14)) && ((a8==4) && (( a27 <= -78 && ((((a9==3) || (a9==4)) || (a9==5)) && (input == 6))) && a21 <= -178 )))){ + if( 182 < a14 ){ + a14 = ((((a14 + 442480) - -43608) - -97272) + -971765); + a21 = ((((a21 / 5) * 4) % 16)- 150); + a8 = 6; + a9 = 4; + + } else{ + a14 = (((a14 * 5) * 5) + -59962); + a27 = ((((((a27 - 0) % 40)- -145) * 5) % 40)+ 122); + a21 = ((((a21 % 16)+ -151) + 2) * 1); + a8 = 7; + a9 = 5; + + } return 23; + } else if(( 182 < a27 && ( a14 <= -148 && (((input == 1) && ((( ((-144 < a21) && (5 >= a21)) && (a9==5)) || ( ((-144 < a21) && (5 >= a21)) && (a9==6))) || ( 5 < a21 && (a9==2)))) && (a8==5))))){ + a27 = (((a27 + -600168) - 14) + -1); + a21 = (((((a21 + 0) * 9)/ 10) - 186002) + -367259); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a9==3) && ( 5 < a21 && (((input == 1) && (a8==7)) && ((-78 < a27) && (100 >= a27)) ))) && a14 <= -148 )){ + a27 = ((((a27 + -147572) * 10)/ 9) / 5); + a21 = (((((a21 + -428495) + -125981) - -189492) % 299911)+ -300088); + a8 = 4; + a9 = 2; + + return -1; + } else if((( ((-178 < a21) && (-144 >= a21)) && ((((input == 3) && ((100 < a27) && (182 >= a27)) ) && (a8==7)) && a14 <= -148 )) && (a9==6))){ + a27 = ((((a27 * 5) - -194416) * -1)/ 10); + a21 = (((a21 - 175515) - 413188) - 10739); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ( ((-78 < a27) && (100 >= a27)) && (((input == 1) && ((( ((-178 < a21) && (-144 >= a21)) && (a9==5)) || ((a9==6) && ((-178 < a21) && (-144 >= a21)) )) || ((a9==2) && ((-144 < a21) && (5 >= a21)) ))) && (a8==5))))){ + if( ((-144 < a21) && (5 >= a21)) ){ + a27 = ((((a27 % 40)+ 141) + -1) + 0); + a21 = (((a21 + 517647) * 1) - -6098); + a8 = 7; + a9 = 5; + + } else{ + a21 = (((((a21 + 6179) % 16)- 170) - -557960) + -557949); + a8 = 8; + a9 = 6; + + } return 25; + } else if((((( 182 < a27 && (((a9==5) || (a9==6)) && (input == 3))) && (a8==7)) && a14 <= -148 ) && ((-178 < a21) && (-144 >= a21)) )){ + a27 = ((((a27 * -5)/ 10) - 28466) + -78000); + a21 = (((a21 * 5) - 297008) / 5); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==7) && ( ((100 < a27) && (182 >= a27)) && ( a14 <= -148 && ((( a21 <= -178 && (a9==6)) || ( ((-178 < a21) && (-144 >= a21)) && (a9==2))) && (input == 5)))))){ + a27 = ((((a27 - 54652) + -43670) * 10)/ 9); + a21 = ((((((a21 % 16)+ -156) * 1) * 5) % 16)- 160); + a8 = 5; + a9 = 6; + + return -1; + } else if((((a8==5) && ( a27 <= -78 && ( ((-148 < a14) && (13 >= a14)) && ((input == 3) && ((-144 < a21) && (5 >= a21)) )))) && (a9==3))){ + a14 = (((a14 - 498451) * 1) - 47354); + a21 = ((((a21 * 5) * 5) + -283605) - -835068); + a8 = 4; + a9 = 6; + + return -1; + } else if(( ((-78 < a27) && (100 >= a27)) && ( a14 <= -148 && (((input == 3) && ((((a9==5) && ((-178 < a21) && (-144 >= a21)) ) || ( ((-178 < a21) && (-144 >= a21)) && (a9==6))) || ((a9==2) && ((-144 < a21) && (5 >= a21)) ))) && (a8==5))))){ + a27 = (((a27 - 337750) * 1) * 1); + a21 = ((((a21 * 5) / 5) * 5) - 52527); + a8 = 4; + a9 = 2; + + return -1; + } else if((( a21 <= -178 && ((a9==3) && (((input == 5) && (a8==5)) && a14 <= -148 ))) && ((100 < a27) && (182 >= a27)) )){ + a27 = (((a27 + -421966) * 1) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==8) && ( a14 <= -148 && ( 182 < a27 && (((input == 2) && ((a9==5) || (a9==6))) && ((-144 < a21) && (5 >= a21)) ))))){ + a27 = (((a27 + -600156) - 25) * 1); + a21 = (((((a21 % 16)+ -161) + -1) + -26466) - -26468); + a8 = 6; + a9 = 4; + + return -1; + } else if((((a8==5) && ( ((-78 < a27) && (100 >= a27)) && (((input == 2) && ((a9==3) || (a9==4))) && a14 <= -148 ))) && 5 < a21 )){ + a27 = (((((a27 + -38600) + -208101) + 419033) * -1)/ 10); + a21 = (((((a21 - 522246) / 5) * 5) % 299911)- 300088); + a8 = 4; + a9 = 2; + + return -1; + } else if((((((a8==5) && ((input == 4) && (a9==3))) && ((100 < a27) && (182 >= a27)) ) && ((-144 < a21) && (5 >= a21)) ) && a14 <= -148 )){ + a27 = (((a27 - 38510) + 418971) - 553190); + a21 = ((((a21 + 17995) * 5) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ( ((100 < a27) && (182 >= a27)) && ((a8==6) && ((input == 1) && ((((a9==6) && ((-178 < a21) && (-144 >= a21)) ) || ((a9==2) && ((-144 < a21) && (5 >= a21)) )) || ( ((-144 < a21) && (5 >= a21)) && (a9==3)))))))){ + a27 = ((((((a27 * -8)/ 10) - 425643) + 908682) * -1)/ 10); + a21 = (((a21 + -522612) - -212336) - 289191); + a8 = 4; + a9 = 2; + + return -1; + } else if(( 5 < a21 && (((a8==4) && ( ((100 < a27) && (182 >= a27)) && (((a9==2) || (a9==3)) && (input == 5)))) && a14 <= -148 ))){ + a27 = (((a27 - 312570) / 5) - 352385); + a21 = ((((a21 % 299911)- 300088) - 136061) * 1); + a9 = 2; + + return -1; + } else if(( ((-144 < a21) && (5 >= a21)) && ( a14 <= -148 && (((((a9==4) || (a9==5)) && (input == 5)) && ((100 < a27) && (182 >= a27)) ) && (a8==6))))){ + a27 = ((((a27 / 5) * 10)/ -2) * 5); + a21 = ((((a21 * 5) + 254892) / 5) + -519842); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((((a9==3) && (input == 6)) && ((100 < a27) && (182 >= a27)) ) && a14 <= -148 ) && ((-144 < a21) && (5 >= a21)) ) && (a8==8))){ + a27 = (((((a27 * 10)/ 19) - 128) - -157706) - 157637); + a21 = (((((a21 % 16)- 161) / 5) + -275047) - -274907); + a8 = 5; + + return 21; + } else if(((((((input == 3) && ((a9==3) || (a9==4))) && a14 <= -148 ) && ((-78 < a27) && (100 >= a27)) ) && ((-144 < a21) && (5 >= a21)) ) && (a8==5))){ + a27 = (((a27 - 290554) * 2) + -3944); + a21 = (((a21 - 249279) / 5) + -32429); + a8 = 4; + a9 = 2; + + return -1; + } else if((( a14 <= -148 && (((a9==5) && ( a21 <= -178 && (input == 6))) && (a8==4))) && ((100 < a27) && (182 >= a27)) )){ + a27 = ((((a27 * 5) * 5) * 5) + -483852); + a9 = 2; + + return -1; + } else if(((((a8==4) && ((((a9==6) || ((a9==4) || (a9==5))) && (input == 6)) && 5 < a21 )) && a14 <= -148 ) && ((-78 < a27) && (100 >= a27)) )){ + a27 = ((((a27 + -249984) * 10)/ 9) * 2); + a21 = ((((a21 - 0) / 5) * 4) + -566419); + a9 = 2; + + return -1; + } else if(( 5 < a21 && ((a8==6) && ( ((-78 < a27) && (100 >= a27)) && ((((a9==3) || (a9==4)) && (input == 1)) && a14 <= -148 ))))){ + a27 = (((a27 + -538910) + -40854) - 13674); + a21 = ((((a21 - 340483) * 1) % 299911)- 300088); + a8 = 4; + a9 = 2; + + return -1; + } else if((((((a9==4) && ((input == 5) && (a8==6))) && 5 < a21 ) && a14 <= -148 ) && 182 < a27 )){ + a27 = ((((a27 - 449255) + -150887) - -228082) + -228095); + a21 = ((((a21 * 9)/ 10) + -540936) + -48701); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((((((a9==2) || (a9==3)) || (a9==4)) && (input == 3)) && ((-178 < a21) && (-144 >= a21)) ) && (a8==6)) && ((-148 < a14) && (13 >= a14)) ) && a27 <= -78 )){ + a14 = ((((a14 * 5) - 89451) * 10)/ 9); + a21 = ((((a21 - 350066) * -1)/ 10) + 423382); + a8 = 5; + a9 = 5; + + return -1; + } else if(( ((-78 < a27) && (100 >= a27)) && (((((a8==5) && (input == 1)) && (a9==3)) && a14 <= -148 ) && ((-178 < a21) && (-144 >= a21)) ))){ + a27 = ((((a27 + -158667) * 3) * 10)/ 9); + a21 = (((((a21 * 13)/ 10) + -158410) * 10)/ 9); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a27 <= -78 && (((((input == 4) && ((a9==3) || (a9==4))) && 5 < a21 ) && (a8==8)) && a14 <= -148 ))){ + a21 = ((((a21 * 9)/ 10) + -553258) / 5); + a8 = 4; + a9 = 2; + + return -1; + } else if((((( a14 <= -148 && ( 5 < a21 && (input == 1))) && (a9==4)) && 182 < a27 ) && (a8==6))){ + a27 = (((a27 + -450306) - 149857) - 2); + a21 = ((((a21 % 299911)+ -300088) * 1) + -161680); + a8 = 4; + a9 = 2; + + return -1; + } else if((( a27 <= -78 && (( 5 < a21 && (((a9==3) || (a9==4)) && (input == 3))) && a14 <= -148 )) && (a8==8))){ + a27 = (((((a27 % 40)- -145) * 5) % 40)- -128); + a21 = (((((a21 % 74)- 73) - 19) * 10)/ 9); + a8 = 7; + a9 = 5; + + return 23; + } else if(((((( ((-148 < a14) && (13 >= a14)) && (input == 2)) && a21 <= -178 ) && (a8==7)) && a27 <= -78 ) && (a9==2))){ + if( ((-144 < a21) && (5 >= a21)) ){ + a14 = ((((a14 - 87258) + -292455) * 10)/ 9); + a21 = ((((a21 / 5) % 74)+ -62) - 8); + a8 = 5; + a9 = 3; + + } else{ + a14 = (((a14 - 206047) + -339446) - 39381); + a21 = (((((a21 + 18985) * 1) - -317443) % 16)- 161); + a8 = 5; + a9 = 3; + + } return 25; + } else if(((a9==6) && ( a14 <= -148 && ((a8==8) && (( a27 <= -78 && (input == 2)) && a21 <= -178 ))))){ + + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && (((a8==4) && ( ((-178 < a21) && (-144 >= a21)) && ((((a9==3) || (a9==4)) || (a9==5)) && (input == 5)))) && ((-78 < a27) && (100 >= a27)) ))){ + a21 = (((a21 * 5) - -365385) + 43511); + a8 = 6; + a9 = 5; + + return 23; + } else if(( a27 <= -78 && ((((input == 6) && (((a9==6) && a21 <= -178 ) || ((a9==2) && ((-178 < a21) && (-144 >= a21)) ))) && (a8==5)) && ((-148 < a14) && (13 >= a14)) ))){ + a14 = (((a14 + -468913) - 41903) * 1); + a21 = ((((((a21 % 74)+ -25) - 26) * 5) % 74)+ 1); + a9 = 3; + + return 21; + } else if(( a21 <= -178 && ((((a8==4) && ((((a9==2) || (a9==3)) || (a9==4)) && (input == 5))) && ((-78 < a27) && (100 >= a27)) ) && a14 <= -148 ))){ + a27 = (((a27 - 271468) - 82578) + -59071); + a9 = 2; + + return -1; + } else if(((((((input == 4) && a14 <= -148 ) && ((-78 < a27) && (100 >= a27)) ) && (a9==4)) && ((-178 < a21) && (-144 >= a21)) ) && (a8==5))){ + a27 = (((a27 - -103982) + 340138) + -980180); + a21 = ((((a21 + -526385) * 10)/ 9) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((100 < a27) && (182 >= a27)) && ( ((-178 < a21) && (-144 >= a21)) && (( a14 <= -148 && ((input == 5) && ((a9==4) || (a9==5)))) && (a8==8))))){ + a27 = (((a27 + -257685) * 2) + -19578); + a21 = ((((a21 * 5) + 65377) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-144 < a21) && (5 >= a21)) && ( a14 <= -148 && (((((a9==2) || (a9==3)) && (input == 4)) && ((100 < a27) && (182 >= a27)) ) && (a8==4))))){ + a21 = (((a21 + -347955) + -17368) * 1); + a9 = 3; + + return -1; + } else if(( a14 <= -148 && ((a9==3) && ( ((100 < a27) && (182 >= a27)) && (((input == 3) && ((-144 < a21) && (5 >= a21)) ) && (a8==7)))))){ + a27 = ((((a27 * 10)/ -9) - 332797) + -24386); + a21 = ((((a21 - 297457) / 5) * 10)/ 9); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a8==8) && ( ((-178 < a21) && (-144 >= a21)) && ( a27 <= -78 && ((input == 6) && a14 <= -148 )))) && (a9==2))){ + a21 = (((a21 * 5) * 5) * 5); + a8 = 4; + + return -1; + } else if(((a8==8) && ((( 5 < a21 && ((input == 2) && a14 <= -148 )) && a27 <= -78 ) && (a9==6)))){ + a27 = ((((a27 / 5) / 5) % 88)+ 10); + a8 = 5; + a9 = 5; + + return 23; + } else if(( a21 <= -178 && ((a8==8) && ((((input == 1) && ((a9==4) || (a9==5))) && a14 <= -148 ) && ((-78 < a27) && (100 >= a27)) )))){ + a27 = ((((a27 / 5) * 5) / 5) + -379999); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((a9==4) && ( ((100 < a27) && (182 >= a27)) && ( ((-144 < a21) && (5 >= a21)) && (input == 4)))) && a14 <= -148 ) && (a8==8))){ + a27 = ((((((a27 * 10)/ -9) + 126477) - -118633) * -1)/ 10); + a21 = (((a21 - 95358) - 331795) + -67700); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && (((a8==4) && ( ((-78 < a27) && (100 >= a27)) && ((input == 5) && ((a9==6) || ((a9==4) || (a9==5)))))) && 5 < a21 ))){ + a27 = (((a27 * 5) + -237860) + -133494); + a21 = (((((a21 - 543427) % 299911)+ -300088) / 5) - 129048); + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ((((((a9==6) && (a8==5)) && 5 < a21 ) || ( a21 <= -178 && ((a9==2) && (a8==6)))) && (input == 6)) && 182 < a27 ))){ + a27 = ((((a27 - 600099) - -453618) - 197267) + -256332); + a21 = ((((((a21 * 9)/ 10) - 16117) * 1) % 16)+ -159); + a8 = 7; + a9 = 3; + + return 23; + } else if((((((((a9==6) && ((-178 < a21) && (-144 >= a21)) ) || ( ((-144 < a21) && (5 >= a21)) && (a9==2))) && (input == 2)) && (a8==8)) && a14 <= -148 ) && 182 < a27 )){ + if( a14 <= -148 ){ + a27 = (((a27 + -600133) * 1) + -25); + a21 = (((a21 + -236822) - -572309) - -199052); + a8 = 6; + a9 = 2; + + } else{ + a27 = ((((a27 / 5) - -53789) % 88)+ -45); + a21 = (((((a21 % 74)+ -68) + -1) + 325828) - 325828); + a9 = 3; + + } return 21; + } else if(( a14 <= -148 && (((input == 1) && (( a21 <= -178 && ((a9==2) && (a8==7))) || (( 5 < a21 && ((a9==5) && (a8==6))) || (((a8==6) && (a9==6)) && 5 < a21 )))) && 182 < a27 ))){ + a27 = (((a27 - 600118) + -62) + -2); + a21 = (((((a21 * 9)/ 10) * 1) % 299911)- 300088); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a8==4) && ((((((a9==4) || (a9==5)) || (a9==6)) && (input == 1)) && ((-144 < a21) && (5 >= a21)) ) && a14 <= -148 )) && ((100 < a27) && (182 >= a27)) )){ + a27 = (((((a27 * -8)/ 10) + -472661) * 10)/ 9); + a21 = ((((a21 - -160459) * 3) * 1) + -488073); + a9 = 2; + + return -1; + } else if((( 182 < a27 && ((((a8==5) && (input == 6)) && (a9==4)) && a21 <= -178 )) && a14 <= -148 )){ + a27 = (((a27 - 600093) - 5) + -5); + a8 = 4; + a9 = 2; + + return -1; + } else if((((((a9==2) && ((input == 2) && ((-78 < a27) && (100 >= a27)) )) && (a8==8)) && a21 <= -178 ) && a14 <= -148 )){ + a27 = (((a27 / 5) / 5) - 14331); + a8 = 4; + + return -1; + } else if((( a27 <= -78 && (((((a9==2) && ((-144 < a21) && (5 >= a21)) ) || (((a9==5) && ((-178 < a21) && (-144 >= a21)) ) || ((a9==6) && ((-178 < a21) && (-144 >= a21)) ))) && (input == 5)) && ((-148 < a14) && (13 >= a14)) )) && (a8==5))){ + if( ((-78 < a27) && (100 >= a27)) ){ + a14 = (((a14 + 172698) / 5) - 424345); + a21 = (((((a21 * 5) * 5) * 5) % 74)+ -69); + a9 = 3; + + } else{ + a21 = (((((a21 * 5) * 5) - -582665) % 16)- 164); + a9 = 3; + + } return -1; + } else if(( a14 <= -148 && ((((( ((-144 < a21) && (5 >= a21)) && (a9==2)) || (( ((-178 < a21) && (-144 >= a21)) && (a9==5)) || ((a9==6) && ((-178 < a21) && (-144 >= a21)) ))) && (input == 6)) && ((-78 < a27) && (100 >= a27)) ) && (a8==5)))){ + a27 = (((a27 + -313134) + -163605) / 5); + a21 = (((a21 + -491223) - -805580) - 443420); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-78 < a27) && (100 >= a27)) && ( a21 <= -178 && ( a14 <= -148 && ((a8==8) && ((a9==2) && (input == 4))))))){ + a27 = ((((a27 * 5) % 40)- -140) + 0); + a21 = (((a21 + 600066) + -131434) + 131393); + a8 = 4; + a9 = 4; + + return 21; + } else if((((a8==6) && (((( ((-144 < a21) && (5 >= a21)) && (a9==6)) || ( 5 < a21 && (a9==2))) && (input == 3)) && a27 <= -78 )) && ((-148 < a14) && (13 >= a14)) )){ + a14 = (((a14 - 124359) / 5) / 5); + a21 = (((a21 / 5) + 48797) * 3); + a8 = 5; + a9 = 6; + + return -1; + } else if(((((( 5 < a21 && (input == 5)) && (a9==6)) && (a8==6)) && a14 <= -148 ) && ((-78 < a27) && (100 >= a27)) )){ + a27 = (((a27 - 254148) / 5) - 22710); + a21 = ((((a21 - 121897) % 299911)- 300088) - 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-144 < a21) && (5 >= a21)) && (((((input == 3) && ((a9==5) || (a9==6))) && (a8==7)) && a14 <= -148 ) && 182 < a27 ))){ + a27 = (((a27 - 600146) + -28) - 2); + a21 = (((a21 - 84317) + 501714) - 832589); + a8 = 4; + a9 = 2; + + return -1; + } else if(((( ((-144 < a21) && (5 >= a21)) && ( ((-148 < a14) && (13 >= a14)) && ((input == 1) && ((a9==5) || (a9==6))))) && a27 <= -78 ) && (a8==4))){ + a14 = (((a14 - 61295) * 5) + -232562); + a21 = ((((a21 + 85693) + -618566) / 5) + 119313); + a9 = 2; + + return -1; + } else if(( ((100 < a27) && (182 >= a27)) && ((a9==6) && ( a14 <= -148 && ( ((-178 < a21) && (-144 >= a21)) && ((a8==4) && (input == 3))))))){ + + a8 = 8; + a9 = 4; + + return -1; + } else if((( ((-178 < a21) && (-144 >= a21)) && ( ((100 < a27) && (182 >= a27)) && (( a14 <= -148 && (input == 6)) && (a8==7)))) && (a9==6))){ + a27 = (((a27 / 5) - 184577) - -184543); + a21 = ((((a21 - 370250) * 10)/ 9) * 1); + a8 = 6; + a9 = 3; + + return 25; + } else if(((( a14 <= -148 && ( ((-78 < a27) && (100 >= a27)) && ((input == 1) && ((a9==3) || (a9==4))))) && ((-178 < a21) && (-144 >= a21)) ) && (a8==6))){ + if((a8==5)){ + a27 = (((a27 * 5) - -165966) + 415805); + a21 = (((a21 + 471876) + 121784) + 3180); + a8 = 5; + a9 = 5; + + } else{ + a27 = (((a27 - -422719) + 6022) - -116618); + a8 = 7; + a9 = 5; + + } return 21; + } else if((( ((-78 < a27) && (100 >= a27)) && (((((a9==2) || (a9==3)) && (input == 6)) && (a8==5)) && a14 <= -148 )) && a21 <= -178 )){ + a27 = ((((a27 / 5) / 5) / 5) - 343843); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==7) && ( a14 <= -148 && (( ((-144 < a21) && (5 >= a21)) && (((a9==5) || (a9==6)) && (input == 4))) && ((100 < a27) && (182 >= a27)) )))){ + a27 = ((((a27 + -136) - -39) * 10)/ 9); + a21 = (((a21 + 417890) + 150614) / 5); + a8 = 8; + a9 = 6; + + return 25; + } else if((((a8==8) && ( a14 <= -148 && (((input == 2) && ((a9==3) || (a9==4))) && ((-178 < a21) && (-144 >= a21)) ))) && ((-78 < a27) && (100 >= a27)) )){ + if( a21 <= -178 ){ + a27 = (((a27 - 269584) / 5) + 54040); + a21 = ((((a21 + -226987) * 10)/ 9) / 5); + a9 = 3; + + } else{ + a27 = ((((a27 % 40)+ 140) + 1) + -1); + a8 = 5; + a9 = 3; + + } return 21; + } else if((((((((a9==4) || ((a9==2) || (a9==3))) && (input == 6)) && 182 < a27 ) && ((-178 < a21) && (-144 >= a21)) ) && (a8==7)) && a14 <= -148 )){ + a27 = ((((a27 % 88)+ 2) + 156822) + -156852); + a8 = 8; + a9 = 3; + + return 21; + } else if((( a21 <= -178 && ( a14 <= -148 && (((a9==5) && (input == 4)) && a27 <= -78 ))) && (a8==8))){ + a27 = ((((a27 + 0) % 88)+ 51) + -24); + a21 = ((((a21 % 16)+ -161) + -399860) - -399868); + a8 = 4; + a9 = 4; + + return 25; + } else if((((((((a9==6) && ((-178 < a21) && (-144 >= a21)) ) || ( ((-144 < a21) && (5 >= a21)) && (a9==2))) && (input == 5)) && a14 <= -148 ) && (a8==8)) && ((100 < a27) && (182 >= a27)) )){ + a27 = ((((a27 * -8)/ 10) + -432973) * 1); + a21 = ((((a21 + -435680) - -743889) * 10)/ -9); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a8==8) && (((a9==3) && ((input == 3) && 5 < a21 )) && ((100 < a27) && (182 >= a27)) )) && a14 <= -148 )){ + a27 = (((((a27 * 10)/ -9) / 5) * 36)/ 10); + a21 = (((((a21 - 0) * 9)/ 10) * 1) + -562151); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ((a9==3) && ( 182 < a27 && (((input == 1) && (a8==5)) && a21 <= -178 ))))){ + a27 = (((((a27 * 9)/ 10) * -5)/ 10) * 2); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-144 < a21) && (5 >= a21)) && (((a9==3) && (( a14 <= -148 && (input == 5)) && (a8==5))) && ((100 < a27) && (182 >= a27)) ))){ + a27 = (((a27 + -71871) * 5) + -84840); + a21 = (((a21 - 119813) / 5) * 5); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a9==5) && ( ((-144 < a21) && (5 >= a21)) && ( a27 <= -78 && (((a8==7) && (input == 6)) && ((-148 < a14) && (13 >= a14)) ))))){ + a14 = (((a14 + -394076) - 186083) / 5); + a27 = (((((a27 + 523987) + -134915) + 37582) % 40)- -141); + a21 = ((((a21 % 16)+ -161) - 1) * 1); + a9 = 2; + + return -1; + } else if(( ((100 < a27) && (182 >= a27)) && ( a14 <= -148 && (((((a9==6) && a21 <= -178 ) || ( ((-178 < a21) && (-144 >= a21)) && (a9==2))) && (input == 5)) && (a8==4))))){ + a27 = ((((((a27 * 10)/ -9) * 10)/ 9) * 10)/ 9); + a21 = ((((a21 / 5) - -64447) / 5) + -562446); + a9 = 2; + + return -1; + } else if(( ((-144 < a21) && (5 >= a21)) && ((((a8==6) && (((a9==4) || (a9==5)) && (input == 4))) && ((100 < a27) && (182 >= a27)) ) && a14 <= -148 ))){ + a27 = (((a27 + -86815) * 5) + 350042); + a21 = (((a21 - 58741) * 5) * 2); + a8 = 8; + a9 = 6; + + return -1; + } else if((((( 182 < a27 && (((a9==6) || ((a9==4) || (a9==5))) && (input == 6))) && a14 <= -148 ) && ((-144 < a21) && (5 >= a21)) ) && (a8==4))){ + a27 = (((((a27 * 9)/ 10) % 40)+ 111) + -9); + a21 = ((((a21 - 516679) * 10)/ 9) / 5); + a9 = 3; + + return 25; + } else if(( 5 < a21 && ((a8==6) && ( ((100 < a27) && (182 >= a27)) && (((((a9==2) || (a9==3)) || (a9==4)) && (input == 4)) && a14 <= -148 ))))){ + a27 = ((((a27 + 436267) / 5) * -1)/ 10); + a21 = (((((a21 % 299911)- 300088) * 1) - -290714) - 428162); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((((input == 5) && ((a9==3) || (a9==4))) && (a8==4)) && ((-178 < a21) && (-144 >= a21)) ) && ((-148 < a14) && (13 >= a14)) ) && a27 <= -78 )){ + if( ((-144 < a21) && (5 >= a21)) ){ + + a9 = 3; + + } else{ + a14 = (((a14 - 149652) - -158139) + -485277); + a8 = 6; + a9 = 5; + + } return -1; + } else if((((a8==7) && ( a14 <= -148 && ((((a9==4) || ((a9==2) || (a9==3))) && (input == 1)) && ((-78 < a27) && (100 >= a27)) ))) && ((-144 < a21) && (5 >= a21)) )){ + a27 = (((a27 / 5) + -343743) + -129206); + a21 = ((((a21 - -188724) * 10)/ -9) / 5); + a8 = 4; + a9 = 2; + + return -1; + } else if((( a14 <= -148 && ( ((-178 < a21) && (-144 >= a21)) && ((a8==5) && ( ((-78 < a27) && (100 >= a27)) && (input == 6))))) && (a9==2))){ + a27 = (((a27 + -425967) / 5) / 5); + a21 = (((a21 + -370202) + -112518) * 1); + a8 = 4; + + return -1; + } else if(((a9==5) && ( a14 <= -148 && ( ((-78 < a27) && (100 >= a27)) && (( ((-144 < a21) && (5 >= a21)) && (input == 1)) && (a8==5)))))){ + a27 = (((a27 - 3554) - 536880) - 53811); + a21 = (((a21 - 210687) - 26300) - 293882); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-144 < a21) && (5 >= a21)) && (((((a9==6) && (input == 3)) && (a8==6)) && ((100 < a27) && (182 >= a27)) ) && a14 <= -148 ))){ + a27 = ((((a27 * 5) * 10)/ -9) * 5); + a21 = (((((a21 % 16)+ -160) + -1) - 313194) + 313195); + a8 = 7; + a9 = 2; + + return -1; + } else if((( a21 <= -178 && (((a8==8) && ((input == 5) && ((a9==4) || (a9==5)))) && a14 <= -148 )) && ((-78 < a27) && (100 >= a27)) )){ + a27 = ((((a27 + 341497) / 5) / 5) + -568011); + a8 = 4; + a9 = 2; + + return -1; + } else if(( 182 < a27 && ((a8==5) && ( a14 <= -148 && ((input == 2) && ((((a9==5) && a21 <= -178 ) || ( a21 <= -178 && (a9==6))) || ( ((-178 < a21) && (-144 >= a21)) && (a9==2)))))))){ + a27 = (((((a27 / 5) * 4) * 1) * -6)/ 10); + a21 = ((((a21 % 299911)+ -178) * 1) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if((( a21 <= -178 && ((a9==4) && ( a27 <= -78 && ((input == 5) && (a8==6))))) && ((-148 < a14) && (13 >= a14)) )){ + a14 = (((a14 + -192603) / 5) * 5); + a21 = ((((a21 + 585778) / 5) % 16)- 160); + a8 = 4; + a9 = 6; + + return 23; + } else if(((((input == 4) && (( 5 < a21 && ((a9==6) && (a8==7))) || ( a21 <= -178 && ((a8==8) && (a9==2))))) && a14 <= -148 ) && ((100 < a27) && (182 >= a27)) )){ + if( 5 < a21 ){ + a27 = (((a27 - -272225) - -158585) + 159481); + a21 = (((((a21 % 299997)- -300002) - 0) / 5) + 435286); + a8 = 6; + a9 = 6; + + } else{ + a21 = ((((((a21 * 9)/ 10) * 1) + 717) % 299997)+ 300002); + a8 = 4; + a9 = 2; + + } return 21; + } else if((((((( ((-144 < a21) && (5 >= a21)) && (a9==6)) || ((a9==2) && 5 < a21 )) && (input == 5)) && ((-78 < a27) && (100 >= a27)) ) && a14 <= -148 ) && (a8==5))){ + a27 = (((a27 + -193865) - 171565) * 1); + a21 = ((((a21 / 5) + 82495) * 10)/ -9); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && (( 182 < a27 && (((input == 3) && ((a9==5) || ((a9==3) || (a9==4)))) && (a8==5))) && 5 < a21 ))){ + a27 = (((a27 / 5) - 308359) * 1); + a21 = ((((a21 % 299911)- 300088) - -149461) + -262952); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ( ((100 < a27) && (182 >= a27)) && ( 5 < a21 && ((a8==7) && (((a9==2) || (a9==3)) && (input == 4))))))){ + a27 = ((((a27 + -353254) * 10)/ 9) + -125686); + a21 = ((((a21 % 299911)+ -300088) * 1) - 81241); + a8 = 4; + a9 = 2; + + return -1; + } else if((((( 182 < a27 && (((a9==3) || (a9==4)) && (input == 3))) && a21 <= -178 ) && a14 <= -148 ) && (a8==6))){ + a27 = ((((((a27 % 40)- -105) + 165437) * 3) % 40)- -106); + a21 = (((((a21 % 16)+ -149) + 3) + 108443) - 108456); + a8 = 5; + a9 = 5; + + return 21; + } else if((( ((100 < a27) && (182 >= a27)) && ( a14 <= -148 && ((( ((-178 < a21) && (-144 >= a21)) && (a9==6)) || ( ((-144 < a21) && (5 >= a21)) && (a9==2))) && (input == 4)))) && (a8==8))){ + a27 = (((a27 - 596672) - -754909) + 2733); + a21 = (((((a21 / 5) + -68) * 5) % 74)- 38); + a8 = 4; + a9 = 3; + + return 23; + } else if(( a21 <= -178 && (((a8==7) && ((a9==5) && ( a14 <= -148 && (input == 5)))) && 182 < a27 ))){ + a27 = ((((a27 + -323152) * 1) + -252230) + -24772); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a9==2) && (((( a14 <= -148 && (input == 5)) && 5 < a21 ) && (a8==8)) && ((-78 < a27) && (100 >= a27)) ))){ + a27 = (((a27 * 5) * 5) + -65844); + a21 = (((((a21 % 299911)- 300088) * 10)/ 9) + -27777); + a8 = 4; + + return -1; + } else if(( ((-178 < a21) && (-144 >= a21)) && ((a8==6) && ( a27 <= -78 && (((input == 6) && ((a9==4) || ((a9==2) || (a9==3)))) && ((-148 < a14) && (13 >= a14)) ))))){ + a14 = (((a14 + -454785) * 1) * 1); + a27 = ((((((a27 * 9)/ 10) * 1) + -45851) % 40)- -174); + a21 = (((a21 + -467737) + -123055) * 1); + a8 = 7; + a9 = 2; + + return 25; + } else if((((((input == 1) && (( ((-178 < a21) && (-144 >= a21)) && (a9==6)) || ( ((-144 < a21) && (5 >= a21)) && (a9==2)))) && (a8==8)) && a14 <= -148 ) && 182 < a27 )){ + a27 = ((((((a27 - 0) * -5)/ 10) / 5) * 44)/ 10); + a21 = ((((a21 % 16)+ -161) + -1) + 0); + a8 = 4; + a9 = 6; + + return -1; + } else if((((((input == 4) && (((a9==3) && 5 < a21 ) || (((a9==6) && ((-144 < a21) && (5 >= a21)) ) || ((a9==2) && 5 < a21 )))) && (a8==7)) && a14 <= -148 ) && a27 <= -78 )){ + a21 = ((((a21 * 9)/ 10) / 5) - 323565); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a8==4) && ( ((100 < a27) && (182 >= a27)) && ( ((-144 < a21) && (5 >= a21)) && ((input == 5) && ((a9==6) || ((a9==4) || (a9==5))))))) && a14 <= -148 )){ + a27 = (((a27 / 5) / 5) - 471305); + a21 = ((((a21 - 118243) * 10)/ 9) / 5); + a9 = 2; + + return -1; + } else if((((a8==8) && ( ((-144 < a21) && (5 >= a21)) && (( a14 <= -148 && (input == 2)) && (a9==4)))) && 182 < a27 )){ + if((a8==7)){ + a27 = (((a27 - 165747) + -434393) * 1); + a21 = ((((a21 - 274867) % 16)+ -147) + -7); + a8 = 6; + a9 = 2; + + } else{ + a27 = ((((a27 + -600128) / 5) * 10)/ 3); + a8 = 5; + a9 = 3; + + } return 21; + } else if(((a9==4) && ((a8==4) && ( a14 <= -148 && ( ((100 < a27) && (182 >= a27)) && ( 5 < a21 && (input == 5))))))){ + a27 = ((((a27 / 5) * 10)/ -2) - 243130); + a21 = ((((a21 + -110103) % 299911)- 300088) - 1); + a9 = 2; + + return -1; + } else if(((a8==4) && ( a14 <= -148 && ( 5 < a21 && ( ((100 < a27) && (182 >= a27)) && (((a9==2) || (a9==3)) && (input == 3))))))){ + if( 182 < a14 ){ + a27 = (((a27 - -32126) * 5) * 3); + a21 = ((((a21 * 9)/ 10) - 580447) * 1); + a8 = 7; + a9 = 6; + + } else{ + a27 = (((((a27 * -8)/ 10) + 191989) * -1)/ 10); + a21 = ((((a21 % 299911)+ -300088) - 106314) * 1); + a8 = 8; + a9 = 4; + + } return 21; + } else if(( 5 < a21 && ((a9==2) && (( ((-78 < a27) && (100 >= a27)) && ( a14 <= -148 && (input == 1))) && (a8==8))))){ + a27 = (((((a27 - 95065) * 5) * 1) % 40)+ 163); + a21 = ((((a21 % 299911)- 300088) - 292917) + -3663); + a8 = 7; + a9 = 4; + + return 21; + } else if(((((( a14 <= -148 && (input == 4)) && a21 <= -178 ) && (a9==3)) && ((100 < a27) && (182 >= a27)) ) && (a8==5))){ + a27 = (((a27 * 5) * 5) - 191095); + a8 = 4; + a9 = 2; + + return -1; + } else if(( 5 < a21 && ((a8==5) && ( 182 < a27 && (((((a9==3) || (a9==4)) || (a9==5)) && (input == 5)) && a14 <= -148 ))))){ + a27 = (((a27 + -600126) * 1) * 1); + a21 = ((((a21 % 299911)- 300088) - 193458) - -32063); + a8 = 4; + a9 = 2; + + return -1; + } else if(( 182 < a27 && ((((input == 6) && (( ((-178 < a21) && (-144 >= a21)) && (a9==2)) || (((a9==5) && a21 <= -178 ) || ((a9==6) && a21 <= -178 )))) && (a8==4)) && a14 <= -148 ))){ + if( a27 <= -78 ){ + a21 = (((((a21 % 299911)+ -178) / 5) * 5) - 18375); + a8 = 7; + a9 = 5; + + } else{ + a27 = ((((((a27 % 88)- -8) * 5) * 5) % 88)+ -64); + a21 = ((((a21 % 16)+ -148) / 5) - 135); + a8 = 6; + a9 = 3; + + } return -1; + } else if(( ((-148 < a14) && (13 >= a14)) && ((( a27 <= -78 && (((a9==4) || (a9==5)) && (input == 3))) && ((-144 < a21) && (5 >= a21)) ) && (a8==5)))){ + a14 = (((((a14 + 566903) + 24199) - 390557) * -1)/ 10); + a27 = ((((((a27 * 9)/ 10) / 5) * 5) % 88)- -90); + a21 = ((((a21 % 16)- 161) / 5) + -121); + a9 = 2; + + return -1; + } else if(((((((a8==4) && (input == 2)) && a14 <= -148 ) && (a9==2)) && 5 < a21 ) && ((-78 < a27) && (100 >= a27)) )){ + a27 = (((a27 - 199892) * 3) + -54); + a21 = ((((((a21 % 299911)+ -300088) / 5) + 257684) * -1)/ 10); + return -1; + } else if(( ((-148 < a14) && (13 >= a14)) && ( a27 <= -78 && ( a21 <= -178 && ((a8==6) && ((a9==4) && (input == 3))))))){ + a14 = (((a14 + -340660) * 1) * 1); + a27 = (((((a27 % 299908)- -300090) * 1) - 475687) + 527828); + a21 = (((a21 - -600055) - -114) - -8); + a9 = 6; + + return 21; + } else if(( a21 <= -178 && (((a8==5) && ( ((-148 < a14) && (13 >= a14)) && ((((a9==2) || (a9==3)) || (a9==4)) && (input == 6)))) && a27 <= -78 ))){ + a14 = (((a14 + -101412) * 5) + -19539); + a27 = ((((((a27 % 88)- -41) * 5) * 5) % 88)+ 10); + a21 = ((((a21 / 5) + 331466) % 74)+ -111); + a8 = 8; + a9 = 4; + + return -1; + } else if(((a9==4) && ( 5 < a21 && ((a8==6) && (((input == 2) && 182 < a27 ) && a14 <= -148 ))))){ + a27 = (((((a27 / 5) / 5) * 5) % 40)- -120); + a21 = ((((a21 % 299911)+ -300088) * 1) - 13929); + a9 = 3; + + return 21; + } else if(((((((input == 4) && a21 <= -178 ) && (a8==4)) && ((100 < a27) && (182 >= a27)) ) && a14 <= -148 ) && (a9==5))){ + a27 = ((((a27 - 232785) - 40308) * 10)/ 9); + a9 = 2; + + return -1; + } else if(((a8==7) && ( a14 <= -148 && ( 5 < a21 && ( ((-78 < a27) && (100 >= a27)) && ((input == 4) && ((a9==4) || (a9==5)))))))){ + a27 = (((a27 + -371468) * 1) + -165947); + a21 = (((a21 / 5) + -439784) - 91879); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a27 <= -78 && (((((input == 1) && ((a9==5) || ((a9==3) || (a9==4)))) && (a8==4)) && a21 <= -178 ) && ((-148 < a14) && (13 >= a14)) ))){ + if( ((-78 < a27) && (100 >= a27)) ){ + a14 = (((a14 + -144725) / 5) + -368268); + a21 = (((((a21 % 74)- 34) - 225582) / 5) - -45046); + a9 = 6; + + } else{ + a14 = (((a14 - 260272) - 320547) / 5); + a27 = (((((a27 * 9)/ 10) - -536006) % 88)+ 12); + a8 = 8; + a9 = 2; + + } return -1; + } else if(( a27 <= -78 && ( a21 <= -178 && (( ((-148 < a14) && (13 >= a14)) && ((input == 2) && ((a9==5) || ((a9==3) || (a9==4))))) && (a8==4))))){ + a14 = ((((a14 / 5) / 5) / 5) - 303817); + a27 = (((((((a27 % 299908)+ 300090) * 10)/ 9) / 5) * 46)/ 10); + a21 = (((((a21 - 0) - 0) + 298885) % 74)- 68); + a8 = 6; + a9 = 3; + + return -1; + } else if(( ((-78 < a27) && (100 >= a27)) && ((a8==8) && (((((a9==6) && a21 <= -178 ) || ((a9==2) && ((-178 < a21) && (-144 >= a21)) )) && (input == 5)) && a14 <= -148 )))){ + a27 = (((a27 + -344061) - 224966) * 1); + a21 = ((((a21 * 9)/ 10) - 51945) + -5260); + a8 = 4; + a9 = 2; + + return -1; + } else if((( a27 <= -78 && (((((a9==3) || (a9==4)) && (input == 3)) && ((-148 < a14) && (13 >= a14)) ) && 5 < a21 )) && (a8==6))){ + if((a8==8)){ + a14 = (((a14 + -575139) - 773) + -17784); + a8 = 4; + a9 = 5; + + } else{ + a14 = (((a14 - 453633) + -102564) * 1); + a27 = ((((a27 - -112998) % 299908)+ 300090) * 1); + a21 = ((((((a21 + 0) % 16)+ -163) / 5) * 51)/ 10); + a8 = 5; + a9 = 2; + + } return -1; + } else if(( ((100 < a27) && (182 >= a27)) && ( 5 < a21 && ((a8==7) && ( a14 <= -148 && ((input == 1) && ((a9==2) || (a9==3)))))))){ + a27 = ((((a27 * -8)/ 10) * 5) + -459453); + a21 = ((((a21 % 299911)+ -300088) * 1) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==4) && ( ((-144 < a21) && (5 >= a21)) && ((( 182 < a27 && (input == 6)) && a14 <= -148 ) && (a9==3))))){ + a27 = ((((((a27 * -5)/ 10) + -269160) - -697488) * -1)/ 10); + a21 = (((a21 - 475876) * 1) + -42024); + a9 = 2; + + return -1; + } else if(( 182 < a27 && ( a21 <= -178 && ( a14 <= -148 && ((a8==4) && (((a9==4) || ((a9==2) || (a9==3))) && (input == 5))))))){ + a27 = (((a27 + -600079) * 1) - 25); + a9 = 2; + + return -1; + } else if(( ((100 < a27) && (182 >= a27)) && (((((input == 4) && (((a9==3) || (a9==4)) || (a9==5))) && (a8==4)) && ((-178 < a21) && (-144 >= a21)) ) && a14 <= -148 ))){ + a21 = ((((a21 * 5) + 213153) * -1)/ 10); + a9 = 3; + + return -1; + } else if(((a8==4) && ( 182 < a27 && ((a9==4) && ( a14 <= -148 && ((input == 2) && 5 < a21 )))))){ + a27 = ((((a27 * -5)/ 10) + -122817) * 1); + a21 = ((((a21 % 299911)- 300088) + -196831) / 5); + a9 = 2; + + return -1; + } else if((( ((-78 < a27) && (100 >= a27)) && (((input == 1) && (((a9==6) && a21 <= -178 ) || ( ((-178 < a21) && (-144 >= a21)) && (a9==2)))) && (a8==8))) && a14 <= -148 )){ + a27 = (((a27 - 206833) * 2) / 5); + a21 = ((((a21 - 0) % 299911)- 178) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a8==4) && ( ((-78 < a27) && (100 >= a27)) && ( 5 < a21 && ((input == 1) && a14 <= -148 )))) && (a9==3))){ + a27 = ((((a27 - 526774) * 10)/ 9) * 1); + a21 = (((((a21 - 409680) - -201354) - 235888) % 299911)+ -300088); + a9 = 2; + + return -1; + } else if((((((a8==7) && ( ((-178 < a21) && (-144 >= a21)) && (input == 2))) && (a9==6)) && ((-148 < a14) && (13 >= a14)) ) && a27 <= -78 )){ + a21 = (((((a21 + -525630) + -41351) - -584989) * -1)/ 10); + a9 = 3; + + return -1; + } else if((( 5 < a21 && (( a14 <= -148 && ((input == 1) && (a8==8))) && a27 <= -78 )) && (a9==5))){ + a21 = (((((a21 % 299911)- 300088) - -521812) * 1) + -732783); + a8 = 4; + a9 = 2; + + return -1; + } else if((( 5 < a21 && ( ((-148 < a14) && (13 >= a14)) && ( a27 <= -78 && (((a9==5) || (a9==6)) && (input == 1))))) && (a8==6))){ + a14 = ((((a14 + -69919) / 5) * 10)/ 9); + a27 = ((((a27 % 299908)- -300090) - -19872) - -122571); + a21 = ((((a21 % 74)- 77) + 9) - 32); + a8 = 8; + a9 = 4; + + return 25; + } else if(( a21 <= -178 && ((a8==7) && ((a9==3) && ( a27 <= -78 && ( a14 <= -148 && (input == 5))))))){ + + a8 = 4; + a9 = 2; + + return -1; + } else if((( ((-78 < a27) && (100 >= a27)) && (((a8==8) && (((a9==5) || (a9==6)) && (input == 6))) && a14 <= -148 )) && 5 < a21 )){ + a27 = (((a27 + -549458) / 5) / 5); + a21 = ((((((a21 % 74)+ -89) * 5) + 123087) % 74)+ -96); + a8 = 7; + a9 = 2; + + return 25; + } else if(((a8==7) && (( a14 <= -148 && ((((a9==6) && a21 <= -178 ) || ( ((-178 < a21) && (-144 >= a21)) && (a9==2))) && (input == 6))) && ((100 < a27) && (182 >= a27)) ))){ + a21 = (((((a21 % 299911)- 178) * 1) / 5) + -127803); + a8 = 4; + a9 = 3; + + return 25; + } else if((( a14 <= -148 && ((a8==7) && ( 182 < a27 && (((a9==2) || (a9==3)) && (input == 1))))) && 5 < a21 )){ + a27 = (((a27 - 600142) - 17) * 1); + a21 = ((((a21 % 16)+ -173) + -420785) - -420787); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ((((a8==4) && (((a9==2) || (a9==3)) && (input == 3))) && ((-144 < a21) && (5 >= a21)) ) && ((100 < a27) && (182 >= a27)) ))){ + a27 = ((((a27 * 10)/ -9) / 5) * 5); + a21 = (((a21 + -303927) * 1) + -261941); + a9 = 2; + + return -1; + } else if((((a9==2) && ((a8==5) && (( ((-178 < a21) && (-144 >= a21)) && (input == 4)) && ((-78 < a27) && (100 >= a27)) ))) && a14 <= -148 )){ + a21 = (((a21 / 5) + -175013) + -347568); + a8 = 8; + a9 = 6; + + return 23; + } else if((((a8==4) && ( ((-144 < a21) && (5 >= a21)) && (((input == 3) && ((a9==3) || (a9==4))) && ((-78 < a27) && (100 >= a27)) ))) && a14 <= -148 )){ + a27 = (((a27 / 5) * 5) - 111506); + a21 = (((a21 + -396154) * 1) - -193476); + a9 = 2; + + return -1; + } else if((( 182 < a27 && ((a9==6) && (( a14 <= -148 && (input == 4)) && a21 <= -178 ))) && (a8==7))){ + a27 = (((((((a27 * 9)/ 10) % 88)+ -9) * 5) % 88)- -11); + a8 = 4; + + return 23; + } else if((( a14 <= -148 && (((input == 3) && ((( ((-178 < a21) && (-144 >= a21)) && (a9==6)) || ( ((-144 < a21) && (5 >= a21)) && (a9==2))) || ( ((-144 < a21) && (5 >= a21)) && (a9==3)))) && (a8==8))) && a27 <= -78 )){ + a21 = (((a21 + -129748) - 310483) - 80676); + a8 = 4; + a9 = 2; + + return -1; + } else if(((( a27 <= -78 && ((input == 4) && (( ((-144 < a21) && (5 >= a21)) && (a9==3)) || (((a9==6) && ((-178 < a21) && (-144 >= a21)) ) || ( ((-144 < a21) && (5 >= a21)) && (a9==2)))))) && a14 <= -148 ) && (a8==8))){ + a21 = (((a21 + -397751) / 5) / 5); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-178 < a21) && (-144 >= a21)) && ( ((-78 < a27) && (100 >= a27)) && ((((input == 2) && (a8==5)) && (a9==3)) && a14 <= -148 )))){ + a27 = (((a27 - 299444) - 76315) - 165980); + a21 = (((a21 - -569002) + -788175) - 38543); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-148 < a14) && (13 >= a14)) && ( a27 <= -78 && ((( a21 <= -178 && ((a8==6) && (a9==3))) || ((((a8==5) && (a9==6)) && 5 < a21 ) || ( a21 <= -178 && ((a8==6) && (a9==2))))) && (input == 2))))){ + a14 = (((a14 + -221893) * 2) * 1); + a21 = ((((a21 % 16)- 161) + 2) - 2); + a8 = 5; + a9 = 6; + + return -1; + } else if((((((input == 4) && ((((a9==5) && a21 <= -178 ) || ( a21 <= -178 && (a9==6))) || ( ((-178 < a21) && (-144 >= a21)) && (a9==2)))) && a14 <= -148 ) && (a8==6)) && ((100 < a27) && (182 >= a27)) )){ + a27 = (((a27 + -336276) / 5) / 5); + a21 = (((((a21 % 299911)+ -178) - 100902) * 10)/ 9); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((((input == 3) && ((-148 < a14) && (13 >= a14)) ) && (a8==7)) && a27 <= -78 ) && (a9==4)) && a21 <= -178 )){ + a14 = (((a14 / 5) + 458296) - 496867); + a21 = ((((((a21 % 16)- 146) / 5) / 5) * 289)/ 10); + a8 = 6; + a9 = 6; + + return -1; + } else if((((a9==4) && ( a21 <= -178 && (((a8==4) && (input == 3)) && a14 <= -148 ))) && ((100 < a27) && (182 >= a27)) )){ + a27 = (((a27 - 4456) - -446387) * 1); + a8 = 5; + a9 = 3; + + return 25; + } else if((((a8==5) && ( ((-78 < a27) && (100 >= a27)) && (( a14 <= -148 && (input == 3)) && ((-144 < a21) && (5 >= a21)) ))) && (a9==5))){ + a21 = (((a21 - -8188) - 540916) + 867004); + a8 = 8; + a9 = 2; + + return 21; + } else if(((a8==7) && (( ((-78 < a27) && (100 >= a27)) && (((((a9==5) && a21 <= -178 ) || ( a21 <= -178 && (a9==6))) || ((a9==2) && ((-178 < a21) && (-144 >= a21)) )) && (input == 2))) && a14 <= -148 ))){ + a27 = ((((a27 - 319212) + 743440) * -1)/ 10); + a21 = ((((((a21 % 299911)- 178) * 10)/ 9) + 73851) + -263459); + a8 = 4; + a9 = 2; + + return -1; + } else if((( ((100 < a27) && (182 >= a27)) && (( a21 <= -178 && ((input == 2) && ((a9==5) || ((a9==3) || (a9==4))))) && (a8==8))) && a14 <= -148 )){ + a27 = ((((((a27 - 334102) * 10)/ 9) - -538418) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a9==4) && (((((a8==8) && (input == 1)) && ((-144 < a21) && (5 >= a21)) ) && a14 <= -148 ) && ((100 < a27) && (182 >= a27)) ))){ + a27 = ((((a27 * 5) / 5) / 5) + -159331); + a21 = (((a21 - 177557) + 39954) + -238081); + a8 = 4; + a9 = 2; + + return -1; + } else if(((( a27 <= -78 && (((input == 2) && ((a9==3) || (a9==4))) && ((-144 < a21) && (5 >= a21)) )) && (a8==4)) && ((-148 < a14) && (13 >= a14)) )){ + a14 = (((a14 - 532016) - 36499) * 1); + a27 = (((((a27 % 88)+ 79) / 5) + 491004) - 490960); + a8 = 8; + a9 = 6; + + return -1; + } else if(((((((input == 3) && a14 <= -148 ) && (a9==5)) && a21 <= -178 ) && (a8==8)) && a27 <= -78 )){ + a27 = ((((((a27 * 9)/ 10) + -22101) + 512907) % 88)+ 11); + a21 = ((((a21 + 515487) % 16)+ -159) - 3); + a8 = 4; + a9 = 2; + + return 21; + } else if(((a9==5) && ( ((-178 < a21) && (-144 >= a21)) && ( ((-78 < a27) && (100 >= a27)) && ( a14 <= -148 && ((a8==8) && (input == 5))))))){ + a27 = (((a27 + -535818) + -52916) / 5); + a21 = ((((a21 * 10)/ 8) - 319110) + -97372); + a8 = 4; + a9 = 2; + + return -1; + } else if((( a21 <= -178 && ((((input == 5) && ((a9==3) || (a9==4))) && a14 <= -148 ) && (a8==7))) && ((-78 < a27) && (100 >= a27)) )){ + a27 = (((a27 * 5) - -113614) + -518168); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a9==4) && ( ((-144 < a21) && (5 >= a21)) && ((((a8==5) && (input == 6)) && 182 < a27 ) && a14 <= -148 )))){ + a27 = ((((a27 - 600123) / 5) / 5) + -306576); + a21 = (((a21 - 51673) * 5) - 324993); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==7) && ( a14 <= -148 && ( a21 <= -178 && (((((a9==4) || (a9==5)) || (a9==6)) && (input == 6)) && a27 <= -78 ))))){ + a21 = ((((a21 % 16)+ -144) - 14) - -9); + a9 = 6; + + return 25; + } else if((((a9==5) && ((((input == 4) && ((-148 < a14) && (13 >= a14)) ) && ((-178 < a21) && (-144 >= a21)) ) && (a8==4))) && a27 <= -78 )){ + if( ((100 < a27) && (182 >= a27)) ){ + a14 = (((((a14 + 127089) * 4) * 1) * -1)/ 10); + a21 = ((((((a21 * 1)/ 10) * 9)/ 10) * 9)/ 10); + a8 = 6; + a9 = 3; + + } else{ + a14 = (((a14 - 302315) * 1) / 5); + a21 = ((((a21 + 544272) + 7767) + -764337) - -704963); + a8 = 6; + a9 = 2; + + } return 21; + } else if((((( ((-78 < a27) && (100 >= a27)) && ((input == 2) && (((a9==4) || (a9==5)) || (a9==6)))) && a14 <= -148 ) && (a8==5)) && a21 <= -178 )){ + a27 = ((((a27 - -138602) * 10)/ -9) / 5); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ( 5 < a21 && ( ((100 < a27) && (182 >= a27)) && ((a9==4) && ((input == 1) && (a8==4))))))){ + if( ((-148 < a14) && (13 >= a14)) ){ + a27 = (((((a27 * 19)/ 10) * 10)/ 9) * 5); + a21 = ((((a21 % 299911)- 300088) + -280285) / 5); + a8 = 7; + a9 = 5; + + } else{ + a27 = ((((a27 * 10)/ 19) - 514153) + 514074); + a21 = ((((a21 % 16)+ -171) - -8) + 4); + a8 = 6; + + } return -1; + } else if((( a14 <= -148 && ((a8==4) && ((((a9==6) || ((a9==4) || (a9==5))) && (input == 4)) && 182 < a27 ))) && ((-144 < a21) && (5 >= a21)) )){ + a27 = (((((a27 * -5)/ 10) * 10)/ 9) + -32401); + a8 = 5; + a9 = 2; + + return -1; + } else if(((a8==6) && ( a14 <= -148 && ( 5 < a21 && ((((a9==4) || ((a9==2) || (a9==3))) && (input == 5)) && ((100 < a27) && (182 >= a27)) ))))){ + a27 = ((((a27 + -310914) / 5) * 10)/ 9); + a21 = ((((a21 * 9)/ 10) - 547695) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-178 < a21) && (-144 >= a21)) && ( a14 <= -148 && ( ((-78 < a27) && (100 >= a27)) && (((((a9==4) || (a9==5)) || (a9==6)) && (input == 5)) && (a8==7)))))){ + a27 = (((a27 / 5) * 5) + -505787); + a21 = (((a21 + -160389) - 417813) - 20074); + a8 = 4; + a9 = 2; + + return -1; + } else if(((( ((100 < a27) && (182 >= a27)) && ((((a9==5) || ((a9==3) || (a9==4))) && (input == 5)) && a21 <= -178 )) && (a8==8)) && a14 <= -148 )){ + a27 = (((a27 + -582490) + -8500) - 1465); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a9==5) && ((((input == 6) && ((-78 < a27) && (100 >= a27)) ) && (a8==8)) && ((-178 < a21) && (-144 >= a21)) )) && a14 <= -148 )){ + a27 = (((a27 + 67480) / 5) - 535351); + a21 = ((((a21 - 314102) + 450313) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a9==3) && (( a14 <= -148 && ((a8==7) && (input == 6))) && a21 <= -178 )) && a27 <= -78 )){ + a21 = ((((((a21 % 16)+ -156) + 2) * 5) % 16)+ -156); + a9 = 2; + + return 23; + } else if((((( a14 <= -148 && ((a9==2) && (input == 3))) && ((-78 < a27) && (100 >= a27)) ) && (a8==8)) && a21 <= -178 )){ + a27 = (((a27 + -373149) - 109118) * 1); + a8 = 4; + + return -1; + } else if(((a8==5) && ( 5 < a21 && ((((input == 3) && (((a9==4) || (a9==5)) || (a9==6))) && ((100 < a27) && (182 >= a27)) ) && a14 <= -148 )))){ + a27 = ((((a27 * -8)/ 10) / 5) - 575292); + a21 = (((a21 - 535073) / 5) - 470784); + a8 = 4; + a9 = 2; + + return -1; + } else if((( a14 <= -148 && ((( a21 <= -178 && ((a9==2) && (a8==5))) || ((((a8==4) && (a9==5)) && 5 < a21 ) || ( 5 < a21 && ((a9==6) && (a8==4))))) && (input == 1))) && 182 < a27 )){ + a27 = (((a27 + -600162) + -18) * 1); + a21 = (((a21 / 5) + -323831) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(( 5 < a21 && ((a8==8) && (( ((100 < a27) && (182 >= a27)) && (((a9==5) || (a9==6)) && (input == 3))) && a14 <= -148 )))){ + if((a9==3)){ + a27 = ((((a27 * 19)/ 10) + -27902) - -64419); + a21 = ((((a21 - 0) - 0) % 299911)+ -300088); + a8 = 5; + a9 = 5; + + } else{ + a27 = (((a27 + 512082) - 502702) * 5); + a21 = ((((a21 + 0) % 16)+ -166) + 1); + a8 = 6; + a9 = 5; + + } return 23; + } else if(((((( a14 <= -148 && (input == 1)) && (a9==6)) && (a8==8)) && 5 < a21 ) && a27 <= -78 )){ + a21 = (((a21 - 0) / 5) - 447191); + a8 = 4; + a9 = 2; + + return -1; + } else if((( ((100 < a27) && (182 >= a27)) && ((( a14 <= -148 && (input == 5)) && (a9==2)) && a21 <= -178 )) && (a8==7))){ + a27 = (((a27 + -419048) + -71030) * 1); + a8 = 4; + + return -1; + } else if(( a14 <= -148 && ((a8==5) && ((((input == 6) && ((a9==3) || (a9==4))) && ((-178 < a21) && (-144 >= a21)) ) && ((100 < a27) && (182 >= a27)) )))){ + a27 = (((((a27 - -91265) * -1)/ 10) * 10)/ 9); + a21 = ((((a21 + -268906) - -708559) * 1) + -488498); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a27 <= -78 && (((a8==6) && ((input == 6) && (((a9==6) && ((-144 < a21) && (5 >= a21)) ) || ((a9==2) && 5 < a21 )))) && ((-148 < a14) && (13 >= a14)) ))){ + a14 = ((((a14 + -395187) * 10)/ 9) - 66075); + a27 = ((((((a27 % 299908)+ 300090) / 5) / 5) * 262)/ 10); + a21 = ((((a21 - 0) * 9)/ 10) - 568943); + a8 = 7; + a9 = 6; + + return -1; + } else if((( a14 <= -148 && ( ((-144 < a21) && (5 >= a21)) && ((((a9==3) || (a9==4)) && (input == 4)) && (a8==4)))) && ((-78 < a27) && (100 >= a27)) )){ + a27 = (((a27 + -281463) + -36613) * 1); + a21 = ((((a21 / 5) - 522439) * 10)/ 9); + a9 = 2; + + return -1; + } else if(((a8==4) && (( a21 <= -178 && (((input == 2) && ((100 < a27) && (182 >= a27)) ) && (a9==2))) && a14 <= -148 ))){ + a27 = ((((a27 + -383418) * -1)/ 10) - -209898); + a21 = (((((a21 - 0) * 9)/ 10) % 74)+ 5); + a9 = 6; + + return 21; + } else if(( ((-144 < a21) && (5 >= a21)) && ((a8==4) && ( ((-78 < a27) && (100 >= a27)) && ( a14 <= -148 && ((input == 2) && ((a9==5) || (a9==6)))))))){ + a27 = (((a27 / 5) + -490811) * 1); + a21 = (((a21 - 382519) + -208499) - 8140); + a9 = 2; + + return -1; + } else if(((a8==4) && (( a14 <= -148 && ((a9==4) && ((input == 3) && 182 < a27 ))) && 5 < a21 ))){ + a27 = ((((a27 % 88)+ -20) + 11) + 5); + a8 = 8; + a9 = 2; + + return 21; + } else if(( a27 <= -78 && ( a21 <= -178 && ((a8==7) && (((a9==3) && (input == 1)) && a14 <= -148 ))))){ + + a9 = 5; + + return 23; + } else if((((( a14 <= -148 && ((input == 5) && (a8==7))) && ((-178 < a21) && (-144 >= a21)) ) && (a9==3)) && ((-78 < a27) && (100 >= a27)) )){ + a27 = (((a27 - -103352) / 5) + -375741); + a21 = ((((((a21 * 13)/ 10) * 5) - -331881) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if((( ((-78 < a27) && (100 >= a27)) && ( a14 <= -148 && (((input == 1) && ((a9==3) || (a9==4))) && (a8==5)))) && ((-144 < a21) && (5 >= a21)) )){ + + a8 = 8; + a9 = 3; + + return 23; + } else if(((((a8==8) && ( 5 < a21 && ((input == 1) && a14 <= -148 ))) && (a9==3)) && ((100 < a27) && (182 >= a27)) )){ + a27 = ((((((a27 * -1)/ 10) - 24) * 5) * -1)/ 10); + a21 = (((((((a21 * 9)/ 10) % 74)- 71) * 5) % 74)+ -69); + a8 = 4; + a9 = 4; + + return 25; + } else if(( a14 <= -148 && (((input == 6) && ((((a8==6) && (a9==2)) && a21 <= -178 ) || (( 5 < a21 && ((a8==5) && (a9==5))) || ( 5 < a21 && ((a9==6) && (a8==5)))))) && ((-78 < a27) && (100 >= a27)) ))){ + a27 = ((((a27 / 5) * 5) / 5) + -495973); + a21 = (((a21 / 5) + -304170) + -100245); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a9==6) && ( ((100 < a27) && (182 >= a27)) && ((((input == 5) && (a8==4)) && a14 <= -148 ) && ((-178 < a21) && (-144 >= a21)) )))){ + a27 = (((((a27 * -8)/ 10) * 10)/ 9) - 45994); + a21 = (((a21 * 5) * 5) * 5); + a9 = 2; + + return -1; + } + return calculate_output3(input); + } + + int calculate_output3(int input) { + + + if(((a8==7) && ((( a27 <= -78 && ((input == 2) && ((a9==4) || (a9==5)))) && 5 < a21 ) && a14 <= -148 ))){ + a21 = (((((a21 % 299911)- 300088) / 5) * 5) + -248081); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((((input == 1) && (((a9==4) || (a9==5)) || (a9==6))) && ((-78 < a27) && (100 >= a27)) ) && a21 <= -178 ) && a14 <= -148 ) && (a8==5))){ + a27 = ((((a27 * 5) - -144444) * 10)/ -9); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a27 <= -78 && (((((a8==7) && (input == 3)) && (a9==2)) && ((-144 < a21) && (5 >= a21)) ) && a14 <= -148 ))){ + a21 = (((a21 / 5) + -338412) * 1); + a8 = 8; + a9 = 5; + + return 23; + } else if(( 182 < a27 && ( a14 <= -148 && ((input == 2) && (((((a9==5) && (a8==6)) && 5 < a21 ) || ( 5 < a21 && ((a9==6) && (a8==6)))) || (((a9==2) && (a8==7)) && a21 <= -178 )))))){ + a27 = (((a27 / 5) - -474879) + -837272); + a21 = ((((a21 % 299911)- 300088) - 2) + 0); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a9==6) && ((( a14 <= -148 && (input == 1)) && ((100 < a27) && (182 >= a27)) ) && (a8==7))) && ((-178 < a21) && (-144 >= a21)) )){ + a27 = (((a27 - 357509) - 5092) + -191909); + a21 = (((a21 * 5) - 316352) + -211936); + a8 = 4; + a9 = 2; + + return -1; + } else if((( a14 <= -148 && ((a8==7) && (((((a9==3) || (a9==4)) || (a9==5)) && (input == 5)) && a27 <= -78 ))) && ((-144 < a21) && (5 >= a21)) )){ + a21 = ((((a21 + -271683) / 5) * 10)/ 9); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((a8==8) && (((input == 1) && ((a9==5) || (a9==6))) && a14 <= -148 )) && 5 < a21 ) && ((-78 < a27) && (100 >= a27)) )){ + a27 = (((((a27 - -144105) % 40)+ 133) + 217137) + -217167); + a21 = ((((((a21 % 74)+ -108) + -18178) * 5) % 74)+ 3); + a8 = 7; + a9 = 6; + + return 23; + } else if(( ((100 < a27) && (182 >= a27)) && ( a14 <= -148 && ((input == 1) && (( 5 < a21 && ((a9==6) && (a8==7))) || ( a21 <= -178 && ((a8==8) && (a9==2)))))))){ + if((a8==4)){ + a27 = (((a27 * 5) / 5) + 589336); + a21 = ((((a21 / 5) - 150717) - 224629) + 697472); + a8 = 5; + a9 = 5; + + } else{ + a21 = ((((a21 % 74)+ -68) - -426901) + -426901); + a8 = 4; + a9 = 5; + + } return 21; + } else if((( ((-178 < a21) && (-144 >= a21)) && ((a9==3) && ( a14 <= -148 && ((a8==5) && (input == 4))))) && 182 < a27 )){ + a27 = (((((a27 * -5)/ 10) * 1) + 123264) + -197900); + a21 = (((((a21 * 10)/ 8) / 5) * 10)/ 2); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==7) && ( ((-178 < a21) && (-144 >= a21)) && (( ((100 < a27) && (182 >= a27)) && ((input == 1) && ((a9==4) || (a9==5)))) && a14 <= -148 )))){ + a27 = ((((a27 * 5) / 5) / 5) - 356264); + a21 = (((a21 * 5) + -299062) - 33787); + a8 = 6; + a9 = 4; + + return -1; + } else if(( ((-148 < a14) && (13 >= a14)) && ( a27 <= -78 && ((a8==5) && ((input == 3) && (((a9==3) && 5 < a21 ) || (((a9==6) && ((-144 < a21) && (5 >= a21)) ) || ((a9==2) && 5 < a21 )))))))){ + if( a14 <= -148 ){ + a14 = (((a14 + -105663) * 5) * 1); + a27 = ((((a27 % 40)+ 146) / 5) * 5); + a21 = ((((a21 - 173408) % 16)+ -159) * 1); + a8 = 8; + a9 = 6; + + } else{ + a14 = (((a14 / 5) / 5) - 481267); + a21 = (((((a21 * 9)/ 10) - 540724) + 454341) + -460775); + a8 = 6; + a9 = 6; + + } return -1; + } else if(((((((input == 3) && 182 < a27 ) && a14 <= -148 ) && (a8==5)) && (a9==4)) && ((-144 < a21) && (5 >= a21)) )){ + a27 = (((((a27 % 40)- -102) * 5) % 40)- -133); + a8 = 6; + a9 = 6; + + return 21; + } else if(( ((-148 < a14) && (13 >= a14)) && ((((((a9==3) || (a9==4)) && (input == 6)) && a27 <= -78 ) && (a8==6)) && 5 < a21 ))){ + a14 = (((a14 / 5) * 5) - 146700); + a27 = ((((a27 + 443786) % 299908)+ 300090) * 1); + a21 = ((((a21 * 9)/ 10) + -568455) - 15708); + a8 = 8; + a9 = 3; + + return 23; + } else if(((a8==4) && (( a14 <= -148 && ((((a9==5) || ((a9==3) || (a9==4))) && (input == 1)) && ((100 < a27) && (182 >= a27)) )) && ((-178 < a21) && (-144 >= a21)) ))){ + a27 = (((a27 * 5) + -365309) - 92845); + a21 = (((a21 + -277404) + -301764) - 5367); + a9 = 2; + + return -1; + } else if(( ((-178 < a21) && (-144 >= a21)) && (((((input == 3) && ((a9==6) || ((a9==4) || (a9==5)))) && ((-78 < a27) && (100 >= a27)) ) && a14 <= -148 ) && (a8==7)))){ + if( 182 < a14 ){ + a27 = (((a27 + 339853) + 118718) + 20360); + a21 = (((a21 + 115934) - -439899) * 1); + a8 = 6; + a9 = 3; + + } else{ + a27 = ((((a27 % 40)+ 141) + -50941) - -50941); + a21 = ((((a21 + 76230) * 10)/ 9) + 205726); + a8 = 6; + a9 = 3; + + } return 21; + } else if(( a14 <= -148 && ( ((100 < a27) && (182 >= a27)) && (((((a8==7) && (a9==6)) && 5 < a21 ) || (((a8==8) && (a9==2)) && a21 <= -178 )) && (input == 2))))){ + a21 = ((((a21 % 299997)- -300002) + 1) + 0); + a8 = 4; + a9 = 4; + + return 21; + } else if((( a14 <= -148 && ( ((-144 < a21) && (5 >= a21)) && (((a9==3) && (input == 1)) && ((100 < a27) && (182 >= a27)) ))) && (a8==7))){ + if( 182 < a27 ){ + a27 = (((a27 / 5) + 52760) - -370951); + a21 = (((((a21 - -291117) % 16)+ -168) / 5) + -127); + a9 = 6; + + } else{ + a27 = ((((a27 - -521403) * 10)/ 9) + 19392); + a21 = (((a21 + 591085) - -4427) - -3650); + a8 = 5; + a9 = 4; + + } return 21; + } else if(((( 182 < a27 && ( a14 <= -148 && ((input == 3) && ((a9==3) || (a9==4))))) && (a8==4)) && ((-178 < a21) && (-144 >= a21)) )){ + a27 = (((a27 + -600116) + -9) - 24); + a21 = ((((a21 - 121367) - 318952) * 10)/ 9); + a9 = 2; + + return -1; + } else if((((( a27 <= -78 && ((((a9==3) || (a9==4)) || (a9==5)) && (input == 4))) && a14 <= -148 ) && ((-144 < a21) && (5 >= a21)) ) && (a8==7))){ + a21 = ((((a21 - 318221) * 1) * 10)/ 9); + a8 = 4; + a9 = 2; + + return -1; + } else if(((( a14 <= -148 && ((input == 6) && ((( ((-144 < a21) && (5 >= a21)) && (a9==5)) || ( ((-144 < a21) && (5 >= a21)) && (a9==6))) || ( 5 < a21 && (a9==2))))) && (a8==8)) && ((100 < a27) && (182 >= a27)) )){ + a27 = ((((a27 + 317492) * -1)/ 10) / 5); + a21 = ((((a21 * 9)/ 10) - 556883) - 37092); + a8 = 4; + a9 = 2; + + return -1; + } else if((((( ((-78 < a27) && (100 >= a27)) && ((input == 2) && ((a9==3) || (a9==4)))) && 5 < a21 ) && (a8==6)) && a14 <= -148 )){ + a27 = ((((a27 - 582883) + 598105) * 10)/ -9); + a21 = (((((a21 % 299911)+ -300088) * 1) - -486223) - 777223); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a9==2) && (((((input == 6) && a14 <= -148 ) && ((-78 < a27) && (100 >= a27)) ) && (a8==8)) && 5 < a21 ))){ + a27 = (((a27 * 5) * 5) - 533408); + a21 = ((((a21 % 299911)+ -300088) + -258358) * 1); + a8 = 4; + + return -1; + } else if(((( ((100 < a27) && (182 >= a27)) && ((((a9==6) || ((a9==4) || (a9==5))) && (input == 3)) && a14 <= -148 )) && ((-144 < a21) && (5 >= a21)) ) && (a8==4))){ + a27 = (((a27 + -376897) + -47562) - 103100); + a21 = (((((a21 - -584263) + 807) - 519090) * -1)/ 10); + a9 = 2; + + return -1; + } else if(((((a8==6) && (((input == 6) && 5 < a21 ) && ((-78 < a27) && (100 >= a27)) )) && (a9==5)) && a14 <= -148 )){ + a27 = (((a27 * 5) - 7181) / 5); + a21 = ((((a21 / 5) + -452113) - -915881) - 945005); + a8 = 4; + a9 = 2; + + return -1; + } else if((((((((a9==5) || ((a9==3) || (a9==4))) && (input == 4)) && ((-178 < a21) && (-144 >= a21)) ) && a14 <= -148 ) && ((100 < a27) && (182 >= a27)) ) && (a8==6))){ + + a9 = 5; + + return 23; + } else if((((a8==4) && ( ((-178 < a21) && (-144 >= a21)) && (((input == 4) && (((a9==3) || (a9==4)) || (a9==5))) && ((-78 < a27) && (100 >= a27)) ))) && a14 <= -148 )){ + a27 = (((a27 / 5) - 272320) * 2); + a21 = (((a21 * 5) - 285612) - -246555); + a9 = 2; + + return -1; + } else if(( ((-78 < a27) && (100 >= a27)) && ( a14 <= -148 && (((((a9==2) && 5 < a21 ) || (((a9==5) && ((-144 < a21) && (5 >= a21)) ) || ( ((-144 < a21) && (5 >= a21)) && (a9==6)))) && (input == 6)) && (a8==7))))){ + a27 = (((a27 - 357392) + -22593) - 124320); + a21 = ((((a21 + 0) * 9)/ 10) - 588187); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ( ((-178 < a21) && (-144 >= a21)) && ((a9==5) && (( ((-78 < a27) && (100 >= a27)) && (input == 5)) && (a8==6)))))){ + a27 = ((((a27 * 5) - -415071) * 1) + -628777); + a21 = ((((a21 / 5) * 5) * 10)/ 7); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ((a8==7) && (((a9==4) && ( ((-144 < a21) && (5 >= a21)) && (input == 6))) && ((100 < a27) && (182 >= a27)) )))){ + a27 = (((a27 * 5) + -319016) * 1); + a21 = ((((a21 - 306502) * 1) * 10)/ 9); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a8==4) && (( 182 < a27 && ((input == 5) && a14 <= -148 )) && (a9==4))) && 5 < a21 )){ + a27 = (((a27 + -306161) + -293966) - 42); + a21 = ((((a21 % 299911)- 300088) * 1) + -171924); + a9 = 2; + + return -1; + } else if((((((((a9==3) || (a9==4)) && (input == 3)) && ((-78 < a27) && (100 >= a27)) ) && ((-144 < a21) && (5 >= a21)) ) && a14 <= -148 ) && (a8==6))){ + a27 = ((((a27 % 40)- -140) + 15084) - 15083); + a21 = ((((a21 % 16)- 160) * 1) + -1); + a8 = 5; + a9 = 5; + + return 21; + } else if((((((( ((-144 < a21) && (5 >= a21)) && (a9==2)) || (( ((-178 < a21) && (-144 >= a21)) && (a9==5)) || ((a9==6) && ((-178 < a21) && (-144 >= a21)) ))) && (input == 3)) && ((-148 < a14) && (13 >= a14)) ) && (a8==5)) && a27 <= -78 )){ + if( a27 <= -78 ){ + a14 = (((a14 + -595737) + -4098) / 5); + a21 = (((a21 - 190676) * 3) / 5); + a8 = 4; + a9 = 6; + + } else{ + a14 = (((((a14 / 5) / 5) - -560142) * -1)/ 10); + a27 = ((((a27 + 320355) * 1) % 299908)+ 300090); + a21 = ((((a21 * 5) * 5) % 74)+ -68); + a8 = 4; + a9 = 2; + + } return -1; + } else if(((a8==7) && ( 5 < a21 && ( a27 <= -78 && ((a9==3) && ( ((-148 < a14) && (13 >= a14)) && (input == 6))))))){ + a14 = ((((a14 / 5) + 527023) * 10)/ -9); + a27 = ((((((a27 % 40)- -166) + 5) * 5) % 40)- -113); + a21 = (((a21 / 5) - 404323) - 95398); + a8 = 5; + a9 = 4; + + return -1; + } else if(((a9==2) && ( ((-148 < a14) && (13 >= a14)) && ((( a27 <= -78 && (input == 4)) && ((-178 < a21) && (-144 >= a21)) ) && (a8==4))))){ + + return -1; + } else if((((((a8==7) && (((a9==4) || ((a9==2) || (a9==3))) && (input == 3))) && ((-178 < a21) && (-144 >= a21)) ) && a14 <= -148 ) && 182 < a27 )){ + a27 = ((((a27 + -600117) - -458182) + -257593) - 200594); + a21 = (((a21 - 61680) * 5) + -18440); + a8 = 4; + a9 = 2; + + return -1; + } else if((( a14 <= -148 && ( a27 <= -78 && (((( ((-178 < a21) && (-144 >= a21)) && (a9==6)) || ( ((-144 < a21) && (5 >= a21)) && (a9==2))) || ((a9==3) && ((-144 < a21) && (5 >= a21)) )) && (input == 5)))) && (a8==8))){ + a21 = (((a21 / 5) + -142833) / 5); + a8 = 4; + a9 = 2; + + return -1; + } else if(( 182 < a27 && (((a8==7) && ( a14 <= -148 && (((a9==3) || (a9==4)) && (input == 2)))) && a21 <= -178 ))){ + a27 = (((((a27 + 0) * 9)/ 10) % 40)- -103); + a21 = ((((a21 + 0) % 16)+ -152) * 1); + a8 = 5; + a9 = 3; + + return 21; + } else if((((((input == 5) && (( ((-144 < a21) && (5 >= a21)) && (a9==6)) || ((a9==2) && 5 < a21 ))) && ((-148 < a14) && (13 >= a14)) ) && (a8==7)) && a27 <= -78 )){ + a14 = (((a14 - 437607) - 2367) - 12133); + a21 = ((((a21 % 299911)- 300088) * 1) + -2); + a8 = 4; + a9 = 2; + + return 21; + } else if((( ((100 < a27) && (182 >= a27)) && (( a14 <= -148 && ((input == 4) && (a8==4))) && (a9==6))) && ((-178 < a21) && (-144 >= a21)) )){ + a27 = ((((a27 * 5) * 10)/ -9) * 5); + a21 = (((a21 * 5) - 71767) / 5); + a9 = 2; + + return -1; + } else if((((a9==3) && ((a8==8) && ( ((-78 < a27) && (100 >= a27)) && ((input == 2) && ((-144 < a21) && (5 >= a21)) )))) && a14 <= -148 )){ + a27 = (((a27 * 5) + -15677) - 116461); + a21 = (((a21 + -296226) / 5) * 5); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==5) && (( ((-178 < a21) && (-144 >= a21)) && ( a14 <= -148 && ((input == 5) && (a9==3)))) && 182 < a27 ))){ + a21 = ((((a21 * 10)/ -9) - -419738) * 1); + a9 = 5; + + return 21; + } else if(( a21 <= -178 && (((((a9==6) && (input == 6)) && 182 < a27 ) && a14 <= -148 ) && (a8==7)))){ + a27 = ((((a27 / 5) * 10)/ -4) - 183090); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a27 <= -78 && ( ((-148 < a14) && (13 >= a14)) && ((a8==4) && (((input == 1) && ((a9==3) || (a9==4))) && ((-178 < a21) && (-144 >= a21)) ))))){ + if((a8==7)){ + a14 = (((a14 - 73626) - 77687) + -119560); + a21 = (((a21 - -495950) - 603972) - 299667); + a9 = 4; + + } else{ + a14 = (((a14 + -89825) * 5) / 5); + a21 = (((a21 - 117938) - -707215) - -5784); + a8 = 6; + a9 = 6; + + } return -1; + } else if(((a8==7) && (( ((100 < a27) && (182 >= a27)) && (((input == 6) && a14 <= -148 ) && ((-144 < a21) && (5 >= a21)) )) && (a9==3)))){ + a27 = (((a27 / 5) - 270742) + -307691); + a21 = ((((a21 - -112533) + 119051) / 5) - 172203); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a9==6) && ( a14 <= -148 && ( a27 <= -78 && ( a21 <= -178 && ((a8==8) && (input == 6))))))){ + a27 = (((((a27 - -184339) * 1) * 1) % 88)+ 12); + a21 = ((((a21 % 74)- 2) / 5) + 1); + a8 = 4; + a9 = 5; + + return 21; + } else if(( ((-144 < a21) && (5 >= a21)) && ((a9==3) && ((( a14 <= -148 && (input == 6)) && ((100 < a27) && (182 >= a27)) ) && (a8==5))))){ + a27 = ((((a27 * -8)/ 10) + 142749) - 143949); + a21 = ((((a21 + 364899) * 1) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ( ((100 < a27) && (182 >= a27)) && ((a8==8) && ((( ((-178 < a21) && (-144 >= a21)) && (a9==3)) || (((a9==6) && a21 <= -178 ) || ((a9==2) && ((-178 < a21) && (-144 >= a21)) ))) && (input == 4)))))){ + a27 = ((((a27 / 5) - 448522) * 10)/ 9); + a21 = ((((a21 % 299911)- 178) - 151789) + -131625); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==7) && ((((( 5 < a21 && (a9==3)) || (( ((-144 < a21) && (5 >= a21)) && (a9==6)) || ((a9==2) && 5 < a21 ))) && (input == 6)) && a14 <= -148 ) && a27 <= -78 ))){ + a21 = ((((a21 % 299911)+ -300088) / 5) + -277400); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a21 <= -178 && (((a8==7) && ( ((-148 < a14) && (13 >= a14)) && ((input == 1) && (a9==4)))) && a27 <= -78 ))){ + a14 = (((a14 + -217624) + -310562) + -48277); + a21 = ((((a21 % 74)- -1) - -23110) + -23156); + a8 = 6; + a9 = 6; + + return -1; + } else if((((a8==5) && ( ((-148 < a14) && (13 >= a14)) && ((( ((-144 < a21) && (5 >= a21)) && (a9==2)) || (((a9==5) && ((-178 < a21) && (-144 >= a21)) ) || ( ((-178 < a21) && (-144 >= a21)) && (a9==6)))) && (input == 4)))) && a27 <= -78 )){ + a14 = (((a14 / 5) - 317071) / 5); + a27 = (((a27 + 0) / 5) + 141124); + a21 = ((((a21 + 325718) * 10)/ 9) * 1); + a8 = 4; + a9 = 3; + + return 21; + } else if(( ((100 < a27) && (182 >= a27)) && ((( a14 <= -148 && ((input == 1) && (a9==3))) && ((-144 < a21) && (5 >= a21)) ) && (a8==5)))){ + a27 = (((a27 / 5) + 354104) / 5); + a21 = ((((a21 + -267132) % 16)+ -146) * 1); + a8 = 4; + a9 = 6; + + return 21; + } else if(((a8==5) && ( ((100 < a27) && (182 >= a27)) && ( a14 <= -148 && ((input == 6) && ((((a9==5) && ((-178 < a21) && (-144 >= a21)) ) || ( ((-178 < a21) && (-144 >= a21)) && (a9==6))) || ( ((-144 < a21) && (5 >= a21)) && (a9==2)))))))){ + a27 = ((((a27 + -371883) * 10)/ 9) + -2763); + a21 = ((((a21 + 140452) * 10)/ -9) + -31914); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((a8==5) && (((a9==3) && (input == 6)) && ((-178 < a21) && (-144 >= a21)) )) && ((-78 < a27) && (100 >= a27)) ) && a14 <= -148 )){ + + a8 = 8; + a9 = 4; + + return 21; + } else if((( a21 <= -178 && ((( a14 <= -148 && (input == 4)) && (a8==5)) && 182 < a27 )) && (a9==4))){ + a21 = ((((a21 + 600092) + 8) + -266319) + 266299); + a8 = 6; + a9 = 5; + + return 21; + } else if(((a8==4) && (( a27 <= -78 && ((input == 3) && (((a9==6) && ((-178 < a21) && (-144 >= a21)) ) || ( ((-144 < a21) && (5 >= a21)) && (a9==2))))) && ((-148 < a14) && (13 >= a14)) ))){ + a14 = (((a14 * 5) * 5) + -225956); + a21 = ((((a21 + 526707) * 1) % 74)- 123); + a8 = 6; + a9 = 4; + + return 21; + } else if((((( 5 < a21 && ((a8==5) && (input == 4))) && a27 <= -78 ) && ((-148 < a14) && (13 >= a14)) ) && (a9==4))){ + if( a27 <= -78 ){ + a14 = ((((a14 / 5) + 326301) - 283063) + -174541); + a27 = (((((a27 + 0) % 40)- -140) * 10)/ 9); + a8 = 7; + a9 = 3; + + } else{ + a14 = (((a14 / 5) - 413036) * 1); + a8 = 6; + a9 = 3; + + } return -1; + } else if(( a14 <= -148 && ((((( 5 < a21 && ((a8==6) && (a9==5))) || (((a8==6) && (a9==6)) && 5 < a21 )) || (((a9==2) && (a8==7)) && a21 <= -178 )) && (input == 5)) && 182 < a27 ))){ + a27 = (((a27 / 5) + -432466) - 45939); + a21 = ((((((a21 * 9)/ 10) / 5) * 5) % 299911)- 300088); + a8 = 4; + a9 = 2; + + return -1; + } else if((( a27 <= -78 && (((((a9==3) && (a8==6)) && a21 <= -178 ) || ((((a9==6) && (a8==5)) && 5 < a21 ) || ( a21 <= -178 && ((a9==2) && (a8==6))))) && (input == 1))) && ((-148 < a14) && (13 >= a14)) )){ + if((a9==2)){ + a21 = ((((a21 - 0) - 0) % 299911)- 300088); + a8 = 7; + a9 = 2; + + } else{ + a14 = ((((a14 / 5) / 5) - -92760) - 689946); + a21 = ((((a21 % 299911)- 300088) + -2) - 0); + a8 = 6; + a9 = 2; + + } return -1; + } else if(((( ((-78 < a27) && (100 >= a27)) && ((((a9==6) && ((-178 < a21) && (-144 >= a21)) ) || ( ((-144 < a21) && (5 >= a21)) && (a9==2))) && (input == 3))) && (a8==6)) && a14 <= -148 )){ + a27 = (((a27 - 491268) + -50033) - 12370); + a21 = (((a21 - 356361) * 1) - 182491); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a8==4) && ( a14 <= -148 && ((a9==3) && ((input == 3) && 5 < a21 )))) && ((-78 < a27) && (100 >= a27)) )){ + a27 = (((a27 + -547934) * 1) + -9717); + a21 = (((((a21 - 0) * 9)/ 10) * 1) + -540975); + a9 = 2; + + return -1; + } else if(( ((-148 < a14) && (13 >= a14)) && (((a8==4) && ( 5 < a21 && ((input == 3) && (a9==3)))) && a27 <= -78 ))){ + if( ((100 < a27) && (182 >= a27)) ){ + a14 = (((a14 / 5) - 456320) * 1); + a8 = 6; + a9 = 5; + + } else{ + a14 = ((((a14 + 14908) * 10)/ -9) + -577536); + a21 = (((((a21 % 74)- 100) + 562760) + -332669) - 230071); + a8 = 5; + a9 = 2; + + } return -1; + } else if(( ((-78 < a27) && (100 >= a27)) && (( 5 < a21 && (((a8==4) && (input == 3)) && (a9==2))) && a14 <= -148 ))){ + a27 = (((((a27 + -80680) - -365650) * 2) * -1)/ 10); + a21 = (((((a21 % 299911)- 300088) * 10)/ 9) - 145156); + return -1; + } else if(((a9==5) && (((((input == 6) && 182 < a27 ) && a21 <= -178 ) && a14 <= -148 ) && (a8==7)))){ + a27 = (((a27 + -600104) + -77) - 2); + a8 = 4; + a9 = 2; + + return -1; + } else if((( ((-78 < a27) && (100 >= a27)) && ( ((-178 < a21) && (-144 >= a21)) && ( a14 <= -148 && ((input == 3) && (a8==5))))) && (a9==3))){ + a27 = ((((a27 + -274230) * 2) + 912860) + -604353); + a21 = ((((a21 - 297730) - -662490) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if(((( a27 <= -78 && ((input == 2) && ((((a9==5) && ((-178 < a21) && (-144 >= a21)) ) || ( ((-178 < a21) && (-144 >= a21)) && (a9==6))) || ((a9==2) && ((-144 < a21) && (5 >= a21)) )))) && (a8==6)) && ((-148 < a14) && (13 >= a14)) )){ + if((a8==6)){ + a14 = (((a14 - -120190) - 359055) * 2); + a27 = (((((a27 * 9)/ 10) - -469230) % 40)+ 140); + a21 = (((((a21 % 16)- 160) / 5) * 10)/ 2); + a8 = 7; + a9 = 5; + + } else{ + a14 = (((a14 / 5) / 5) - 594946); + a21 = ((((a21 % 74)- 69) - -1) + -1); + a8 = 5; + a9 = 6; + + } return -1; + } else if(( a14 <= -148 && ((a8==8) && (((a9==5) && ((input == 5) && a21 <= -178 )) && a27 <= -78 )))){ + + a8 = 4; + a9 = 2; + + return -1; + } else if((( 182 < a27 && ( a14 <= -148 && ((((a9==3) && ((-144 < a21) && (5 >= a21)) ) || (( ((-178 < a21) && (-144 >= a21)) && (a9==6)) || ((a9==2) && ((-144 < a21) && (5 >= a21)) ))) && (input == 3)))) && (a8==5))){ + a27 = ((((a27 * -5)/ 10) + -83228) + -50073); + a21 = ((((a21 + -523608) + -9280) * 10)/ 9); + a8 = 4; + a9 = 2; + + return -1; + } else if(( 182 < a27 && ((a9==4) && ( a14 <= -148 && (((input == 5) && (a8==5)) && a21 <= -178 ))))){ + a27 = (((a27 + -600169) / 5) * 5); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==6) && (( a21 <= -178 && ( a14 <= -148 && ((input == 3) && ((a9==3) || (a9==4))))) && ((-78 < a27) && (100 >= a27)) ))){ + a27 = (((((a27 % 40)+ 140) + 3) - -263267) - 263267); + a21 = ((((a21 % 16)- 157) + -4) + 1); + a8 = 4; + a9 = 3; + + return 25; + } else if(( ((-78 < a27) && (100 >= a27)) && ( a14 <= -148 && ((a8==8) && ( a21 <= -178 && (((a9==4) || (a9==5)) && (input == 4))))))){ + a27 = (((a27 - 389836) + 986107) + -771534); + a8 = 4; + a9 = 2; + + return -1; + } else if((( ((-178 < a21) && (-144 >= a21)) && (( a27 <= -78 && ((input == 1) && ((a9==2) || (a9==3)))) && (a8==7))) && a14 <= -148 )){ + a21 = ((((((a21 * 10)/ 13) * 9)/ 10) * 5) + 496); + a9 = 2; + + return 25; + } else if((((a9==3) && (((a8==8) && ( ((100 < a27) && (182 >= a27)) && (input == 6))) && a14 <= -148 )) && 5 < a21 )){ + a27 = (((((a27 / 5) * 5) * 5) % 88)+ -3); + a21 = ((((a21 % 74)- 125) + 406583) - 406576); + a8 = 4; + a9 = 6; + + return 21; + } else if(( a14 <= -148 && (((( a21 <= -178 && ((a8==8) && (a9==3))) || (( 5 < a21 && ((a8==7) && (a9==6))) || ( a21 <= -178 && ((a9==2) && (a8==8))))) && (input == 2)) && a27 <= -78 ))){ + if( 182 < a27 ){ + a27 = ((((((a27 % 40)- -168) * 5) - 81988) % 40)- -174); + a21 = ((((a21 - 0) % 299997)+ 300002) + 0); + a8 = 8; + a9 = 5; + + } else{ + a21 = (((((a21 - 0) + 0) + 0) % 299997)- -300002); + a8 = 8; + a9 = 3; + + } return 21; + } else if(( a14 <= -148 && ( ((100 < a27) && (182 >= a27)) && ((( 5 < a21 && ((a9==6) && (a8==7))) || (((a8==8) && (a9==2)) && a21 <= -178 )) && (input == 3))))){ + a27 = ((((a27 - -260122) * 2) * -1)/ 10); + a21 = ((((((a21 % 299911)- 300088) + -2) * 9)/ 10) - 50821); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==8) && ((((a9==6) && ( a14 <= -148 && (input == 6))) && a27 <= -78 ) && 5 < a21 ))){ + a27 = (((((a27 / 5) - 334204) - 60608) % 88)- -62); + a21 = ((((a21 % 299911)+ -300088) - 150881) * 1); + a8 = 6; + a9 = 3; + + return 25; + } else if(( a14 <= -148 && ( 182 < a27 && (((( 5 < a21 && ((a8==4) && (a9==5))) || ( 5 < a21 && ((a9==6) && (a8==4)))) || ( a21 <= -178 && ((a9==2) && (a8==5)))) && (input == 4))))){ + a27 = ((((a27 % 88)- 23) + 274783) - 274796); + a21 = (((((a21 * 9)/ 10) * 1) % 299911)- 300088); + a8 = 4; + a9 = 5; + + return 23; + } else if(((((a8==5) && ( ((-78 < a27) && (100 >= a27)) && (((a9==6) || ((a9==4) || (a9==5))) && (input == 5)))) && a21 <= -178 ) && a14 <= -148 )){ + + a8 = 8; + a9 = 3; + + return 25; + } else if((((a8==5) && (((( a21 <= -178 && (a9==6)) || ( ((-178 < a21) && (-144 >= a21)) && (a9==2))) && (input == 2)) && a14 <= -148 )) && ((100 < a27) && (182 >= a27)) )){ + if( ((-148 < a14) && (13 >= a14)) ){ + a27 = (((a27 + 45833) * 5) / 5); + a21 = ((((a21 / 5) * 4) / 5) - 135533); + a8 = 7; + a9 = 3; + + } else{ + a27 = ((((a27 + -371555) * 1) + -19397) + 390846); + a21 = (((((a21 / 5) % 74)+ 2) - -553351) - 553368); + a8 = 6; + a9 = 2; + + } return 25; + } else if(( 182 < a27 && ( 5 < a21 && ((a8==6) && ((a9==2) && ( a14 <= -148 && (input == 1))))))){ + a27 = (((a27 + -600099) + 303710) + -303762); + a21 = (((((a21 - 0) * 9)/ 10) - 438747) - 149174); + a8 = 4; + + return -1; + } else if((( a14 <= -148 && ((a9==3) && (((a8==5) && (input == 5)) && ((-178 < a21) && (-144 >= a21)) ))) && ((-78 < a27) && (100 >= a27)) )){ + a27 = (((a27 / 5) * 5) - 517189); + a21 = (((a21 - 335889) - 256172) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-144 < a21) && (5 >= a21)) && (((a9==2) && (((input == 3) && ((100 < a27) && (182 >= a27)) ) && (a8==7))) && a14 <= -148 ))){ + a27 = ((((a27 + -470751) + 470620) + -541211) + 541232); + a21 = (((a21 - 364952) + -213517) * 1); + a8 = 4; + a9 = 4; + + return 25; + } else if((((((((a9==6) || ((a9==4) || (a9==5))) && (input == 6)) && (a8==5)) && a21 <= -178 ) && a14 <= -148 ) && ((-78 < a27) && (100 >= a27)) )){ + a27 = (((a27 + -214910) - 162004) / 5); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a21 <= -178 && ((a8==5) && (( ((-78 < a27) && (100 >= a27)) && (((a9==2) || (a9==3)) && (input == 2))) && a14 <= -148 )))){ + a27 = (((a27 - 567411) + -30781) - 1273); + a8 = 4; + a9 = 2; + + return -1; + } else if((((( 5 < a21 && (((a9==3) || (a9==4)) && (input == 5))) && a14 <= -148 ) && (a8==8)) && ((-78 < a27) && (100 >= a27)) )){ + a27 = (((a27 * 5) - 594535) - 2379); + a21 = ((((a21 * 9)/ 10) / 5) - 253668); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-148 < a14) && (13 >= a14)) && (((a9==4) && (((input == 4) && (a8==7)) && a21 <= -178 )) && a27 <= -78 ))){ + + a8 = 5; + a9 = 3; + + return -1; + } else if(( ((-148 < a14) && (13 >= a14)) && ((((a8==4) && ((((a9==4) || (a9==5)) || (a9==6)) && (input == 3))) && 5 < a21 ) && a27 <= -78 ))){ + a14 = (((a14 * 5) - 109727) - 30261); + a21 = ((((a21 % 16)+ -171) / 5) + -122); + a8 = 5; + a9 = 2; + + return -1; + } else if(((( ((-144 < a21) && (5 >= a21)) && ( a14 <= -148 && ((a8==5) && (input == 1)))) && 182 < a27 ) && (a9==4))){ + a27 = ((((((a27 + -16218) % 40)- -140) * 5) % 40)+ 113); + a21 = ((((a21 / 5) + 181864) * 10)/ 9); + a8 = 6; + a9 = 3; + + return 25; + } else if(((( a14 <= -148 && ( ((100 < a27) && (182 >= a27)) && ((input == 6) && ((a9==4) || (a9==5))))) && ((-144 < a21) && (5 >= a21)) ) && (a8==6))){ + a27 = (((a27 - 122613) - 397388) + -50160); + a21 = (((a21 - 341416) * 1) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(( 5 < a21 && ((((((a9==2) || (a9==3)) && (input == 2)) && a14 <= -148 ) && ((100 < a27) && (182 >= a27)) ) && (a8==4)))){ + a27 = (((a27 + 548171) - 577417) * 5); + a21 = ((((((a21 % 299911)- 300088) * 1) / 5) * 51)/ 10); + a9 = 2; + + return -1; + } else if(( a14 <= -148 && (((input == 1) && ((((a8==8) && (a9==3)) && a21 <= -178 ) || ((((a9==6) && (a8==7)) && 5 < a21 ) || (((a8==8) && (a9==2)) && a21 <= -178 )))) && a27 <= -78 ))){ + a21 = (((((a21 % 299911)+ -300088) / 5) * 5) - 3); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((a8==4) && ( ((-144 < a21) && (5 >= a21)) && (((a9==2) || (a9==3)) && (input == 1)))) && a14 <= -148 ) && ((100 < a27) && (182 >= a27)) )){ + a27 = (((a27 - -391718) - 744761) + -121334); + a21 = (((a21 + -244141) - 297845) + -50897); + a9 = 2; + + return -1; + } else if(((((((input == 2) && ((a9==3) || (a9==4))) && ((-144 < a21) && (5 >= a21)) ) && (a8==5)) && a14 <= -148 ) && ((-78 < a27) && (100 >= a27)) )){ + + a8 = 8; + a9 = 5; + + return 21; + } else if((( a14 <= -148 && ((a8==5) && ( ((-78 < a27) && (100 >= a27)) && ((((a9==4) || (a9==5)) || (a9==6)) && (input == 4))))) && a21 <= -178 )){ + + a8 = 8; + a9 = 4; + + return 25; + } else if((( ((-78 < a27) && (100 >= a27)) && ((((input == 2) && ((a9==4) || (a9==5))) && (a8==8)) && a14 <= -148 )) && a21 <= -178 )){ + a27 = ((((a27 / 5) - 271591) * 10)/ 9); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((((((a9==6) && ((-144 < a21) && (5 >= a21)) ) || ( 5 < a21 && (a9==2))) || ((a9==3) && 5 < a21 )) && (input == 5)) && a14 <= -148 ) && a27 <= -78 ) && (a8==7))){ + a21 = ((((a21 % 299911)- 300088) * 1) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a8==4) && ((((input == 4) && ((100 < a27) && (182 >= a27)) ) && a21 <= -178 ) && (a9==4))) && a14 <= -148 )){ + a27 = (((a27 - 364784) + -447) / 5); + a9 = 2; + + return -1; + } else if(( ((-144 < a21) && (5 >= a21)) && ((( ((-148 < a14) && (13 >= a14)) && ((a8==6) && (input == 2))) && a27 <= -78 ) && (a9==3)))){ + if( 5 < a21 ){ + a14 = (((a14 - 105367) + -209940) + 113255); + a8 = 5; + a9 = 6; + + } else{ + a14 = (((a14 + -11316) + -579259) * 1); + a21 = (((((a21 % 16)- 161) + 1) + 589728) + -589727); + } return -1; + } else if((((a9==6) && ((a8==8) && (( a27 <= -78 && (input == 3)) && a21 <= -178 ))) && a14 <= -148 )){ + + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ( ((-178 < a21) && (-144 >= a21)) && ( 182 < a27 && (((input == 3) && ((a9==3) || (a9==4))) && (a8==6)))))){ + a27 = ((((a27 + 0) / 5) - -428286) + -699722); + a21 = (((a21 + -111556) * 5) + -38832); + a8 = 4; + a9 = 2; + + return -1; + } else if(( 182 < a27 && ( 5 < a21 && ( a14 <= -148 && (((a9==4) && (input == 4)) && (a8==6)))))){ + a27 = (((a27 / 5) / 5) + -84536); + a21 = (((((a21 * 9)/ 10) - 402813) * 1) - 143027); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((((((a9==4) || (a9==5)) || (a9==6)) && (input == 5)) && (a8==7)) && a14 <= -148 ) && a21 <= -178 ) && a27 <= -78 )){ + + a8 = 4; + a9 = 2; + + return -1; + } else if((((((((a9==4) || (a9==5)) && (input == 3)) && a14 <= -148 ) && 5 < a21 ) && (a8==7)) && ((100 < a27) && (182 >= a27)) )){ + a27 = ((((((a27 * -8)/ 10) * 10)/ 9) / 5) + -352548); + a21 = (((a21 / 5) + -502611) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if((( a27 <= -78 && ((((a9==3) && (input == 3)) && (a8==7)) && ((-148 < a14) && (13 >= a14)) )) && 5 < a21 )){ + a14 = ((((a14 - 337192) - -726283) / 5) - 104789); + a21 = ((((a21 + -159750) - -109475) % 74)- 69); + a8 = 5; + a9 = 5; + + return -1; + } else if((((a8==6) && ((((input == 1) && ((100 < a27) && (182 >= a27)) ) && a21 <= -178 ) && a14 <= -148 )) && (a9==4))){ + a27 = (((a27 - 45186) * 5) / 5); + a8 = 4; + a9 = 2; + + return -1; + } else if((((((input == 4) && (((a9==6) && a21 <= -178 ) || ((a9==2) && ((-178 < a21) && (-144 >= a21)) ))) && (a8==5)) && ((100 < a27) && (182 >= a27)) ) && a14 <= -148 )){ + a27 = (((a27 + -177) + 22) + 13); + a21 = ((((a21 + 284321) - 243960) % 299911)+ -300088); + a8 = 4; + a9 = 5; + + return -1; + } else if(( a21 <= -178 && ((a9==3) && ( ((100 < a27) && (182 >= a27)) && ( a14 <= -148 && ((input == 6) && (a8==5))))))){ + a21 = (((((a21 % 16)+ -151) / 5) * 49)/ 10); + a8 = 6; + a9 = 2; + + return 25; + } else if(((( a14 <= -148 && ((input == 5) && (( ((-178 < a21) && (-144 >= a21)) && (a9==6)) || ((a9==2) && ((-144 < a21) && (5 >= a21)) )))) && 182 < a27 ) && (a8==8))){ + a27 = ((((a27 / 5) * 4) % 40)- -126); + a21 = ((((a21 % 74)- 69) + 27392) - 27392); + a9 = 3; + + return -1; + } else if(((input == 3) && (( a21 <= -178 && ((( a27 <= -78 && ((-148 < a14) && (13 >= a14)) ) && (a8==4)) && (a9==2))) || ((((( a14 <= -148 && 182 < a27 ) && (a8==8)) && (a9==5)) && 5 < a21 ) || (((a9==6) && (( 182 < a27 && a14 <= -148 ) && (a8==8))) && 5 < a21 ))))){ + a14 = (((((a14 + 0) % 80)+ -67) + 402171) + -402170); + a27 = ((((a27 % 299961)+ -300038) / 5) + -175084); + a21 = (((((a21 % 299911)+ -300088) - 2) / 5) - 306813); + a8 = 4; + a9 = 6; + + return -1; + } else if((( ((-148 < a14) && (13 >= a14)) && (( a27 <= -78 && ((input == 6) && ((a9==3) || (a9==4)))) && (a8==4))) && ((-144 < a21) && (5 >= a21)) )){ + a14 = (((a14 - 533887) + -37968) * 1); + a27 = (((((a27 * 9)/ 10) % 40)- -142) * 1); + a8 = 7; + a9 = 3; + + return -1; + } else if(( a27 <= -78 && ((a9==3) && ( ((-148 < a14) && (13 >= a14)) && (( a21 <= -178 && (input == 3)) && (a8==7)))))){ + if( ((-144 < a21) && (5 >= a21)) ){ + a14 = (((a14 - 380852) / 5) - 514822); + a27 = ((((((a27 - 0) % 40)+ 151) / 5) * 49)/ 10); + a21 = (((a21 + 350605) - -249471) + 64); + a9 = 6; + + } else{ + a14 = (((((a14 - 525186) * 1) + 537228) * -1)/ 10); + a21 = (((((a21 % 74)- 7) * 5) % 74)- -5); + a8 = 6; + + } return -1; + } else if(((a9==2) && (((a8==7) && ( a14 <= -148 && ((input == 1) && a27 <= -78 ))) && ((-144 < a21) && (5 >= a21)) ))){ + a21 = (((a21 - 568697) + -6490) + -16180); + a8 = 4; + + return -1; + } else if((( 182 < a27 && ((((input == 1) && ((a9==4) || ((a9==2) || (a9==3)))) && ((-178 < a21) && (-144 >= a21)) ) && (a8==7))) && a14 <= -148 )){ + a27 = (((((a27 * -5)/ 10) + 451667) - 40084) - 511146); + a21 = (((a21 + -589246) - 7333) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if((( a27 <= -78 && ((((input == 4) && (((a9==2) || (a9==3)) || (a9==4))) && ((-148 < a14) && (13 >= a14)) ) && a21 <= -178 )) && (a8==5))){ + if( ((-178 < a21) && (-144 >= a21)) ){ + a14 = (((a14 - 249911) - 72116) + -68916); + a27 = ((((a27 % 299908)- -300090) + -253247) + 397107); + a21 = (((((a21 % 74)- -4) / 5) + -157273) + 157241); + a8 = 6; + a9 = 4; + + } else{ + a14 = (((a14 + -21109) - 486193) + -75514); + a27 = ((((((a27 / 5) % 40)- -167) / 5) * 45)/ 10); + a21 = (((((a21 % 74)+ 4) - 66) - -555280) + -555225); + a8 = 6; + a9 = 6; + + } return 21; + } else if(((( a21 <= -178 && ( a27 <= -78 && ((input == 1) && ((a9==5) || (a9==6))))) && ((-148 < a14) && (13 >= a14)) ) && (a8==6))){ + a14 = (((a14 + -258405) + -225013) - 101004); + a21 = ((((a21 % 16)+ -147) - 1) + -1); + a9 = 6; + + return 23; + } else if((( ((-78 < a27) && (100 >= a27)) && ((a9==2) && (( a21 <= -178 && (input == 2)) && (a8==7)))) && a14 <= -148 )){ + a27 = ((((a27 * 5) * 5) - -7566) + -383568); + a8 = 4; + + return -1; + } else if(((((((input == 4) && (a8==8)) && (a9==3)) && 5 < a21 ) && ((100 < a27) && (182 >= a27)) ) && a14 <= -148 )){ + a27 = ((((a27 * 10)/ -9) - 44488) * 5); + a21 = (((((a21 - 0) / 5) - -29813) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ( a27 <= -78 && ((a8==8) && ( ((-144 < a21) && (5 >= a21)) && (((a9==4) || (a9==5)) && (input == 3))))))){ + a27 = (((((a27 % 88)+ 82) + -28) + 181535) + -181569); + a21 = ((((a21 % 16)+ -159) * 1) + -1); + a8 = 5; + a9 = 4; + + return 25; + } else if(((((a8==6) && ( a21 <= -178 && ((input == 2) && ((-148 < a14) && (13 >= a14)) ))) && (a9==4)) && a27 <= -78 )){ + a14 = ((((a14 + 518936) * -1)/ 10) / 5); + a27 = ((((a27 + 242355) + 329377) % 40)- -141); + a21 = (((((a21 / 5) + 249860) - 556310) * -1)/ 10); + return 21; + } else if((((a8==4) && ( 5 < a21 && ((a9==2) && ((input == 5) && ((-148 < a14) && (13 >= a14)) )))) && a27 <= -78 )){ + a21 = (((((a21 / 5) + 87729) - 12770) * -1)/ 10); + a8 = 7; + a9 = 6; + + return 21; + } else if((((((a8==8) && ((input == 3) && ((a9==4) || (a9==5)))) && ((-78 < a27) && (100 >= a27)) ) && a21 <= -178 ) && a14 <= -148 )){ + a21 = ((((a21 - -600122) / 5) - 35944) - -203894); + a9 = 3; + + return 21; + } else if(( a27 <= -78 && ((a8==4) && (( ((-178 < a21) && (-144 >= a21)) && ((input == 3) && ((a9==3) || (a9==4)))) && ((-148 < a14) && (13 >= a14)) )))){ + if( a21 <= -178 ){ + a14 = (((a14 + -281835) * 2) / 5); + a21 = ((((a21 * -1)/ 10) / 5) - -11896); + a8 = 6; + a9 = 3; + + } else{ + + a8 = 5; + a9 = 2; + + } return -1; + } else if((((a8==8) && ( 182 < a27 && ((( ((-178 < a21) && (-144 >= a21)) && (a9==6)) || ((a9==2) && ((-144 < a21) && (5 >= a21)) )) && (input == 6)))) && a14 <= -148 )){ + a27 = (((a27 + -600082) + -26) + -50); + a21 = (((a21 * 5) + 473014) - -122312); + a8 = 5; + a9 = 6; + + return -1; + } else if(((a8==8) && ( ((100 < a27) && (182 >= a27)) && ( a14 <= -148 && ((input == 4) && (( 5 < a21 && (a9==2)) || (( ((-144 < a21) && (5 >= a21)) && (a9==5)) || ((a9==6) && ((-144 < a21) && (5 >= a21)) )))))))){ + a27 = (((a27 - 255018) * 2) / 5); + a21 = (((((a21 / 5) / 5) + 362003) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if(( 182 < a27 && ( a14 <= -148 && ((a8==6) && ((input == 3) && (( ((-178 < a21) && (-144 >= a21)) && (a9==2)) || (( a21 <= -178 && (a9==5)) || ( a21 <= -178 && (a9==6))))))))){ + a27 = (((((a27 * 9)/ 10) * 1) * -5)/ 10); + a21 = ((((a21 * 9)/ 10) + -39222) + -10635); + a8 = 4; + a9 = 2; + + return -1; + } else if(((( a14 <= -148 && ( ((-178 < a21) && (-144 >= a21)) && (((a9==5) || ((a9==3) || (a9==4))) && (input == 1)))) && (a8==8)) && a27 <= -78 )){ + a21 = (((a21 - 389871) + -148376) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a27 <= -78 && (((a8==5) && ((input == 1) && ((( ((-144 < a21) && (5 >= a21)) && (a9==6)) || ( 5 < a21 && (a9==2))) || ( 5 < a21 && (a9==3))))) && ((-148 < a14) && (13 >= a14)) ))){ + a14 = (((a14 - 400430) + -175999) * 1); + a21 = ((((a21 / 5) / 5) % 16)+ -161); + a8 = 6; + a9 = 5; + + return -1; + } else if((((a8==7) && ( 5 < a21 && ((a9==6) && ( ((-78 < a27) && (100 >= a27)) && (input == 1))))) && a14 <= -148 )){ + a27 = ((((a27 - 65339) + 339121) * -1)/ 10); + a21 = (((a21 / 5) + -427978) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(((( a27 <= -78 && ((a9==3) && ((input == 5) && ((-144 < a21) && (5 >= a21)) ))) && ((-148 < a14) && (13 >= a14)) ) && (a8==5))){ + if( a14 <= -148 ){ + a14 = (((((a14 * 5) + -130292) + 616937) * -1)/ 10); + a8 = 4; + + } else{ + a14 = (((((a14 + 99434) * 5) / 5) * -1)/ 10); + a8 = 6; + a9 = 6; + + } return -1; + } else if(((( ((100 < a27) && (182 >= a27)) && ( a21 <= -178 && (((a9==2) || (a9==3)) && (input == 5)))) && a14 <= -148 ) && (a8==6))){ + a21 = (((((a21 % 16)- 157) * 5) % 16)+ -145); + a8 = 5; + a9 = 5; + + return 21; + } else if(((a8==8) && ( a14 <= -148 && ( ((-144 < a21) && (5 >= a21)) && ((a9==3) && ((input == 3) && 182 < a27 )))))){ + a27 = (((((a27 / 5) / 5) + 273061) * -1)/ 10); + a21 = ((((a21 - -519974) * -1)/ 10) * 5); + a8 = 5; + a9 = 6; + + return 21; + } else if((( ((-78 < a27) && (100 >= a27)) && ( a14 <= -148 && ((a8==8) && ((input == 6) && ((a9==3) || (a9==4)))))) && 5 < a21 )){ + if( 182 < a27 ){ + a27 = ((((a27 % 40)+ 140) - -3) - 1); + a21 = (((((a21 % 74)- 77) + -283901) - 310659) + 594496); + a8 = 7; + a9 = 5; + + } else{ + a21 = (((((a21 * 9)/ 10) % 74)- 118) + -15); + a8 = 5; + a9 = 5; + + } return 23; + } else if(((((a8==7) && ((input == 1) && ((( ((-144 < a21) && (5 >= a21)) && (a9==6)) || ( 5 < a21 && (a9==2))) || ((a9==3) && 5 < a21 )))) && a27 <= -78 ) && a14 <= -148 )){ + a21 = ((((a21 % 299911)+ -300088) * 1) - 2); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-148 < a14) && (13 >= a14)) && ((((((a9==4) || (a9==5)) && (input == 2)) && a27 <= -78 ) && (a8==5)) && ((-144 < a21) && (5 >= a21)) ))){ + if((a8==8)){ + a14 = (((a14 * 5) + -129320) + -230640); + a27 = (((((a27 + 64087) + -13199) * 1) % 299908)+ 300090); + a21 = (((a21 + -98519) * 5) + -103207); + a8 = 4; + a9 = 5; + + } else{ + a14 = (((a14 + -308696) * 1) / 5); + a27 = (((((a27 + 180120) + 254228) + -207627) % 88)- -11); + a8 = 4; + a9 = 5; + + } return -1; + } else if((( ((-178 < a21) && (-144 >= a21)) && ( a14 <= -148 && (((input == 3) && (a8==6)) && ((-78 < a27) && (100 >= a27)) ))) && (a9==5))){ + a27 = (((((a27 + -147848) % 40)+ 165) - -87675) + -87681); + a21 = (((a21 - -139716) + -209888) * 5); + a8 = 5; + a9 = 3; + + return 23; + } else if(( a14 <= -148 && ((((a8==8) && (((a9==5) || (a9==6)) && (input == 6))) && ((-144 < a21) && (5 >= a21)) ) && 182 < a27 ))){ + a27 = (((a27 + -600129) / 5) - 35267); + a21 = (((a21 + 591135) - -5089) + 372); + a8 = 5; + a9 = 5; + + return -1; + } else if(((((((a9==5) && (input == 2)) && 5 < a21 ) && (a8==6)) && ((-78 < a27) && (100 >= a27)) ) && a14 <= -148 )){ + a27 = (((((a27 - 288773) % 40)+ 140) * 10)/ 9); + a21 = ((((a21 % 299911)- 300088) - -240162) - 443268); + a9 = 2; + + return 21; + } else if(((a9==2) && ( a14 <= -148 && ( 182 < a27 && (((input == 2) && 5 < a21 ) && (a8==6)))))){ + a27 = (((a27 - 600094) - -204125) + -204200); + a21 = (((((a21 % 299911)+ -300088) - 100979) * 10)/ 9); + a8 = 4; + + return -1; + } else if((( ((-148 < a14) && (13 >= a14)) && ((((input == 2) && ((a9==4) || (a9==5))) && a27 <= -78 ) && (a8==6))) && ((-144 < a21) && (5 >= a21)) )){ + a14 = (((a14 - 184111) + -733) / 5); + a21 = (((((a21 % 16)- 159) - 2) / 5) - 133); + a8 = 4; + a9 = 2; + + return -1; + } else if(( 182 < a27 && (((input == 1) && (( 5 < a21 && ((a9==6) && (a8==5))) || ( a21 <= -178 && ((a8==6) && (a9==2))))) && a14 <= -148 ))){ + a27 = (((a27 - 600172) + -7) + -3); + a21 = (((((a21 % 299911)- 300088) * 1) - -485931) + -485932); + a8 = 7; + a9 = 5; + + return 23; + } else if((((((input == 4) && (((a9==6) && ((-178 < a21) && (-144 >= a21)) ) || ((a9==2) && ((-144 < a21) && (5 >= a21)) ))) && (a8==4)) && a14 <= -148 ) && ((-78 < a27) && (100 >= a27)) )){ + a27 = ((((a27 + -230700) * 10)/ 9) - 242020); + a21 = ((((a21 / 5) + -234093) + 578536) - 762812); + a9 = 2; + + return -1; + } else if(( a27 <= -78 && ((a8==5) && ((( 5 < a21 && (input == 6)) && ((-148 < a14) && (13 >= a14)) ) && (a9==4))))){ + if( a21 <= -178 ){ + a14 = (((a14 - 457873) / 5) * 5); + a27 = ((((a27 % 88)+ 50) + 78168) + -78127); + a21 = ((((((a21 * 9)/ 10) % 74)- 131) * 9)/ 10); + a9 = 3; + + } else{ + a14 = (((((a14 - -233329) * 2) * 1) * -1)/ 10); + a27 = ((((a27 - 0) / 5) % 88)+ 44); + a21 = ((((a21 % 16)- 170) + -1) * 1); + a8 = 6; + a9 = 2; + + } return -1; + } else if(((a8==7) && ( ((-144 < a21) && (5 >= a21)) && ((( a27 <= -78 && (input == 4)) && a14 <= -148 ) && (a9==2))))){ + a21 = ((((a21 - 453865) * 1) * 10)/ 9); + a8 = 4; + + return -1; + } else if(((( a21 <= -178 && (( a14 <= -148 && (input == 1)) && (a8==8))) && (a9==3)) && ((-78 < a27) && (100 >= a27)) )){ + a27 = ((((a27 + 4235) / 5) * 10)/ -9); + a8 = 4; + a9 = 2; + + return -1; + } else if((( ((-144 < a21) && (5 >= a21)) && ((((input == 1) && ((a9==4) || (a9==5))) && ((100 < a27) && (182 >= a27)) ) && a14 <= -148 )) && (a8==6))){ + a27 = (((a27 - -385507) * 1) / 5); + a8 = 7; + a9 = 5; + + return -1; + } else if(( ((-148 < a14) && (13 >= a14)) && (( a27 <= -78 && ((((a9==5) || ((a9==3) || (a9==4))) && (input == 3)) && (a8==7))) && ((-178 < a21) && (-144 >= a21)) ))){ + if( ((13 < a14) && (182 >= a14)) ){ + a14 = ((((a14 - -445156) * 10)/ -9) - 91181); + a8 = 6; + a9 = 3; + + } else{ + a14 = (((a14 - 183831) + -367173) * 1); + a21 = ((((a21 - -515787) - 902051) * 10)/ -9); + a8 = 8; + a9 = 5; + + } return -1; + } else if(((a8==5) && (( ((-78 < a27) && (100 >= a27)) && ((( ((-144 < a21) && (5 >= a21)) && (a9==6)) || ( 5 < a21 && (a9==2))) && (input == 6))) && a14 <= -148 ))){ + a27 = (((a27 - 507686) + -36643) * 1); + a21 = (((((a21 % 299911)- 300088) + 90416) * 1) - 90417); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a27 <= -78 && ( ((-148 < a14) && (13 >= a14)) && ((a8==5) && ((( ((-144 < a21) && (5 >= a21)) && (a9==2)) || (((a9==5) && ((-178 < a21) && (-144 >= a21)) ) || ((a9==6) && ((-178 < a21) && (-144 >= a21)) ))) && (input == 1)))))){ + a14 = (((a14 + 324195) - -179076) - 948606); + a21 = ((((a21 + 494664) / 5) + -234710) + 135769); + a8 = 4; + a9 = 5; + + return 23; + } else if(( a14 <= -148 && (((a8==4) && (((input == 2) && ((a9==2) || (a9==3))) && 182 < a27 )) && 5 < a21 ))){ + a27 = ((((a27 % 88)+ 13) + 506886) + -506926); + a21 = ((((a21 + -427194) / 5) % 74)- 68); + a8 = 8; + a9 = 4; + + return 21; + } else if(( a21 <= -178 && ((a8==8) && ((((input == 4) && (a9==3)) && a14 <= -148 ) && ((-78 < a27) && (100 >= a27)) )))){ + a27 = (((a27 - 65164) / 5) * 5); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ((a8==7) && (( a21 <= -178 && ((input == 1) && ((-78 < a27) && (100 >= a27)) )) && (a9==2))))){ + a27 = (((a27 / 5) + -224989) - 61090); + a8 = 4; + + return -1; + } else if(((a8==8) && (( a14 <= -148 && (((((a9==4) || (a9==5)) || (a9==6)) && (input == 1)) && ((-78 < a27) && (100 >= a27)) )) && ((-144 < a21) && (5 >= a21)) ))){ + a27 = ((((a27 * 5) + 22013) * 10)/ 9); + a21 = ((((a21 * 5) % 16)+ -159) + -2); + a8 = 4; + a9 = 2; + + return 25; + } else if(( ((-178 < a21) && (-144 >= a21)) && ((((((a9==3) || (a9==4)) && (input == 4)) && (a8==5)) && ((-148 < a14) && (13 >= a14)) ) && a27 <= -78 ))){ + if( a27 <= -78 ){ + a14 = ((((a14 * 5) - 396215) - -805609) + -647993); + a21 = ((((a21 / 5) * 10)/ 1) - 396251); + a8 = 4; + a9 = 2; + + } else{ + a14 = (((a14 - 406980) + -92053) + -30994); + a21 = (((a21 * 5) - 561558) + -9107); + a9 = 5; + + } return -1; + } else if(((((a8==6) && ( 5 < a21 && ((input == 6) && 182 < a27 ))) && a14 <= -148 ) && (a9==3))){ + a27 = ((((a27 / 5) - 308956) * 10)/ 9); + a21 = (((((a21 % 299911)- 300088) + 195889) - -109594) - 557224); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((((input == 5) && a14 <= -148 ) && (a8==7)) && a21 <= -178 ) && ((-78 < a27) && (100 >= a27)) ) && (a9==2))){ + a27 = (((a27 + -134000) + -185996) * 1); + a8 = 4; + + return -1; + } else if((((((input == 6) && (( a21 <= -178 && (a9==6)) || ( ((-178 < a21) && (-144 >= a21)) && (a9==2)))) && ((-78 < a27) && (100 >= a27)) ) && (a8==8)) && a14 <= -148 )){ + a27 = ((((a27 + -407744) * 10)/ 9) + -15985); + a21 = ((((a21 - 0) % 299911)- 178) - 101735); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-148 < a14) && (13 >= a14)) && (( a27 <= -78 && (((input == 4) && ((a9==4) || ((a9==2) || (a9==3)))) && ((-178 < a21) && (-144 >= a21)) )) && (a8==6)))){ + if( a27 <= -78 ){ + a14 = (((a14 + -360000) - -863225) + -751200); + a21 = (((a21 - 400361) + -63960) + -5034); + a8 = 4; + a9 = 3; + + } else{ + a14 = (((a14 + 46026) - 543440) * 1); + a21 = ((((a21 + 152524) * -1)/ 10) - 319908); + a8 = 5; + a9 = 4; + + } return -1; + } else if(( ((-144 < a21) && (5 >= a21)) && (( a27 <= -78 && ( a14 <= -148 && ((input == 1) && ((a9==5) || ((a9==3) || (a9==4)))))) && (a8==7)))){ + a21 = (((((a21 + -232889) / 5) - -309668) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if(((( ((-178 < a21) && (-144 >= a21)) && (((input == 1) && ((a9==4) || (a9==5))) && (a8==8))) && a14 <= -148 ) && 182 < a27 )){ + if( 5 < a21 ){ + a27 = ((((a27 * 9)/ 10) - 540451) + -45204); + a21 = (((((a21 * 5) * 5) / 5) % 74)- -3); + a8 = 6; + a9 = 4; + + } else{ + a27 = (((a27 / 5) + -586343) - 11532); + a8 = 6; + a9 = 5; + + } return -1; + } else if(((a8==7) && (((((((a9==3) || (a9==4)) || (a9==5)) && (input == 1)) && ((100 < a27) && (182 >= a27)) ) && a14 <= -148 ) && a21 <= -178 ))){ + a27 = ((((((a27 * -1)/ 10) * 10)/ 9) - -378971) + -378952); + a21 = (((a21 + 600148) * 1) * 1); + a8 = 8; + a9 = 5; + + return -1; + } else if(((( 182 < a27 && (((input == 2) && (((a9==2) || (a9==3)) || (a9==4))) && a21 <= -178 )) && (a8==4)) && a14 <= -148 )){ + a27 = (((a27 - 0) + -600161) + -10); + a9 = 2; + + return -1; + } else if((( a14 <= -148 && ((a8==6) && ((( ((-178 < a21) && (-144 >= a21)) && (a9==6)) || ((a9==2) && ((-144 < a21) && (5 >= a21)) )) && (input == 2)))) && ((-78 < a27) && (100 >= a27)) )){ + if( a14 <= -148 ){ + a27 = ((((((a27 % 40)- -142) / 5) / 5) * 255)/ 10); + a21 = (((a21 + -277468) * 2) - -294760); + a8 = 8; + a9 = 4; + + } else{ + a27 = (((((a27 % 40)+ 141) + -171777) + 658948) + -487171); + a21 = (((((a21 * 5) % 16)+ -161) / 5) - 123); + a8 = 5; + a9 = 4; + + } return 21; + } else if(( 182 < a27 && (((input == 3) && (((((a9==5) && (a8==6)) && 5 < a21 ) || ( 5 < a21 && ((a8==6) && (a9==6)))) || ( a21 <= -178 && ((a8==7) && (a9==2))))) && a14 <= -148 ))){ + a27 = (((a27 - 600120) * 1) + -1); + a21 = (((((a21 * 9)/ 10) % 299911)+ -300088) + -2); + a8 = 8; + a9 = 4; + + return 21; + } else if((((((a8==6) && ((input == 1) && ((a9==3) || (a9==4)))) && ((-78 < a27) && (100 >= a27)) ) && a14 <= -148 ) && a21 <= -178 )){ + a27 = ((((((a27 % 40)- -141) * 1) * 5) % 40)+ 127); + a21 = ((((((a21 % 16)+ -157) - -7) * 5) % 16)- 146); + a8 = 4; + a9 = 6; + + return 23; + } else if((((((( ((-178 < a21) && (-144 >= a21)) && (a9==6)) || ((a9==2) && ((-144 < a21) && (5 >= a21)) )) && (input == 1)) && (a8==4)) && ((-78 < a27) && (100 >= a27)) ) && a14 <= -148 )){ + a27 = (((a27 - 35388) + -187696) + -232042); + a21 = (((a21 + -437548) * 1) - 124853); + a9 = 2; + + return -1; + } else if((((( a14 <= -148 && ( ((-144 < a21) && (5 >= a21)) && (input == 4))) && 182 < a27 ) && (a9==3)) && (a8==8))){ + if( 5 < a21 ){ + a27 = (((a27 / 5) / 5) - 550314); + a21 = ((((a21 % 16)- 161) - 104990) - -104990); + a8 = 6; + a9 = 6; + + } else{ + a14 = ((((a14 % 80)- -7) - 49) / 5); + a27 = (((((a27 - 0) + -600144) / 5) * 28)/ 10); + a21 = ((((((a21 % 16)+ -161) + 254976) * 2) % 16)+ -164); + a8 = 4; + a9 = 4; + + } return -1; + } else if(((( a21 <= -178 && ( ((-78 < a27) && (100 >= a27)) && (((a9==3) || (a9==4)) && (input == 5)))) && (a8==6)) && a14 <= -148 )){ + a27 = ((((a27 - -363485) + 24150) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if(( 182 < a27 && ( ((-144 < a21) && (5 >= a21)) && ((((((a9==2) || (a9==3)) || (a9==4)) && (input == 5)) && a14 <= -148 ) && (a8==7))))){ + a27 = (((((a27 * 9)/ 10) * -5)/ 10) + -290824); + a21 = (((a21 + -223036) / 5) - 449809); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-178 < a21) && (-144 >= a21)) && ((a8==4) && (((((a9==3) || (a9==4)) && (input == 5)) && 182 < a27 ) && a14 <= -148 )))){ + a27 = ((((a27 + -597756) - -34623) * 1) + -37037); + a21 = (((((a21 * 13)/ 10) * 10)/ 9) + -242855); + a9 = 2; + + return -1; + } else if((((((((a9==2) && ((-178 < a21) && (-144 >= a21)) ) || (( a21 <= -178 && (a9==5)) || ( a21 <= -178 && (a9==6)))) && (input == 3)) && a14 <= -148 ) && ((-78 < a27) && (100 >= a27)) ) && (a8==6))){ + a27 = (((a27 / 5) / 5) + -35498); + a21 = ((((a21 / 5) / 5) * 5) - 322514); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ( a21 <= -178 && ( 182 < a27 && ((((a9==6) || ((a9==4) || (a9==5))) && (input == 6)) && (a8==8)))))){ + if( a27 <= -78 ){ + a27 = ((((a27 / 5) * 4) * 1) - 567015); + a21 = (((((a21 - 0) / 5) / 5) % 74)+ -25); + a9 = 5; + + } else{ + a27 = ((((a27 - 272053) * 1) / 5) - 257807); + a9 = 3; + + } return -1; + } else if((((( 5 < a21 && ( ((-148 < a14) && (13 >= a14)) && (input == 3))) && (a9==4)) && a27 <= -78 ) && (a8==5))){ + a14 = (((a14 - -175920) / 5) + -234570); + a27 = ((((a27 % 88)+ 43) - 1) + -14); + a21 = ((((a21 * 9)/ 10) + -562048) / 5); + a8 = 7; + a9 = 2; + + return -1; + } else if(( 5 < a21 && ( ((-78 < a27) && (100 >= a27)) && ( a14 <= -148 && ((((a9==3) || (a9==4)) && (input == 4)) && (a8==8)))))){ + a27 = ((((a27 % 40)+ 142) - -1) + -1); + a21 = (((((a21 - 534953) * 1) - 48557) % 74)+ -68); + a8 = 7; + a9 = 5; + + return -1; + } else if(( ((-148 < a14) && (13 >= a14)) && ( a27 <= -78 && (((input == 2) && ((((a9==5) && a21 <= -178 ) || ( a21 <= -178 && (a9==6))) || ( ((-178 < a21) && (-144 >= a21)) && (a9==2)))) && (a8==7))))){ + a14 = (((a14 - 409326) * 1) * 1); + a21 = (((((a21 % 299911)+ -178) / 5) * 5) - 29952); + a8 = 5; + a9 = 4; + + return -1; + } else if((( a14 <= -148 && (((a9==3) && ( ((100 < a27) && (182 >= a27)) && (input == 6))) && ((-178 < a21) && (-144 >= a21)) )) && (a8==7))){ + a27 = ((((a27 * 10)/ -9) * 5) * 5); + a21 = (((((a21 * 10)/ -9) * 5) - 144944) - -443105); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a9==3) && ((a8==5) && (( ((-144 < a21) && (5 >= a21)) && ( a27 <= -78 && (input == 6))) && ((-148 < a14) && (13 >= a14)) )))){ + a21 = (((a21 - 2997) - 283670) * 2); + a9 = 6; + + return -1; + } else if((((a8==8) && (( 182 < a27 && ((input == 4) && (((a9==2) || (a9==3)) || (a9==4)))) && a14 <= -148 )) && 5 < a21 )){ + a27 = (((((a27 * -5)/ 10) * 1) - -252326) + -276177); + a21 = (((((a21 % 16)+ -167) / 5) * 10)/ 2); + a8 = 5; + a9 = 5; + + return -1; + } else if(((((input == 4) && ((( 5 < a21 && ((a8==4) && (a9==5))) || (((a9==6) && (a8==4)) && 5 < a21 )) || (((a9==2) && (a8==5)) && a21 <= -178 ))) && ((100 < a27) && (182 >= a27)) ) && a14 <= -148 )){ + a27 = (((a27 + -255619) - 257310) * 1); + a21 = ((((((a21 % 299911)+ -300088) + -2) * 9)/ 10) + -11337); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a9==3) && (((a8==5) && ((input == 5) && 182 < a27 )) && a21 <= -178 )) && a14 <= -148 )){ + a27 = ((((a27 * 9)/ 10) - 578775) / 5); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && (( a21 <= -178 && ( a27 <= -78 && ((input == 1) && (((a9==4) || (a9==5)) || (a9==6))))) && (a8==7)))){ + + a8 = 4; + a9 = 2; + + return -1; + } else if((( a14 <= -148 && (((((a9==6) && ((-144 < a21) && (5 >= a21)) ) || ((a9==2) && 5 < a21 )) && (input == 1)) && (a8==8))) && a27 <= -78 )){ + a21 = ((((a21 % 299911)+ -300088) - 1) + -1); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a8==7) && ((((input == 4) && ((-178 < a21) && (-144 >= a21)) ) && (a9==3)) && a14 <= -148 )) && ((-78 < a27) && (100 >= a27)) )){ + a27 = (((a27 - 186842) + -17998) / 5); + a21 = (((a21 - 581608) / 5) - -60205); + a8 = 4; + a9 = 2; + + return -1; + } else if(((( a14 <= -148 && (((input == 6) && (((a9==2) || (a9==3)) || (a9==4))) && (a8==4))) && ((-78 < a27) && (100 >= a27)) ) && a21 <= -178 )){ + a27 = (((a27 - 543497) - 41065) + -1811); + a9 = 2; + + return -1; + } else if(((((a9==3) && ( a21 <= -178 && ((a8==5) && (input == 3)))) && ((100 < a27) && (182 >= a27)) ) && a14 <= -148 )){ + a27 = ((((a27 * 10)/ -9) * 5) - 39741); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((((input == 1) && (a8==5)) && a14 <= -148 ) && (a9==4)) && a21 <= -178 ) && 182 < a27 )){ + if((a9==6)){ + a21 = (((((a21 % 16)- 151) - -7) + 348608) + -348618); + a8 = 7; + a9 = 6; + + } else{ + a27 = (((((a27 / 5) % 40)+ 140) + -203751) + 203714); + a21 = ((((((a21 * 9)/ 10) - -453867) + -226598) % 74)- 68); + a8 = 4; + + } return 21; + } else if(((((((input == 4) && (((a9==3) || (a9==4)) || (a9==5))) && a14 <= -148 ) && ((-178 < a21) && (-144 >= a21)) ) && (a8==8)) && a27 <= -78 )){ + a21 = (((a21 + 183244) + -385997) + -7694); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==5) && ((( 5 < a21 && (((a9==3) || (a9==4)) && (input == 6))) && a14 <= -148 ) && ((-78 < a27) && (100 >= a27)) ))){ + a27 = (((a27 - 577601) + -17723) - 786); + a21 = ((((a21 % 299911)- 300088) + -256049) + -31726); + a8 = 4; + a9 = 2; + + return -1; + } else if((( a14 <= -148 && ((a9==4) && (( a27 <= -78 && (input == 6)) && (a8==8)))) && a21 <= -178 )){ + + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((100 < a27) && (182 >= a27)) && ((a9==4) && ((((input == 2) && a21 <= -178 ) && a14 <= -148 ) && (a8==6))))){ + a27 = (((a27 + -255002) - 113096) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if((((( a27 <= -78 && ((input == 6) && (((a9==3) || (a9==4)) || (a9==5)))) && ((-148 < a14) && (13 >= a14)) ) && ((-178 < a21) && (-144 >= a21)) ) && (a8==7))){ + a14 = (((a14 * 5) + -562926) + -23352); + a21 = ((((a21 / 5) * 5) * 5) - -25495); + a8 = 6; + a9 = 3; + + return -1; + } else if(( a14 <= -148 && ((a9==3) && ( 182 < a27 && (((input == 1) && ((-144 < a21) && (5 >= a21)) ) && (a8==4)))))){ + a27 = ((((a27 - 600146) / 5) / 5) - 11449); + a21 = (((a21 + -543759) - 9367) * 1); + a9 = 2; + + return -1; + } else if((( ((-78 < a27) && (100 >= a27)) && (( a14 <= -148 && ((a9==3) && (input == 1))) && ((-144 < a21) && (5 >= a21)) )) && (a8==8))){ + a27 = (((a27 + -164427) / 5) + -26695); + a21 = ((((a21 - 385204) * 10)/ 9) + -120366); + a8 = 4; + a9 = 2; + + return -1; + } else if(((( ((100 < a27) && (182 >= a27)) && ((( a21 <= -178 && (a9==6)) || ((a9==2) && ((-178 < a21) && (-144 >= a21)) )) && (input == 4))) && (a8==7)) && a14 <= -148 )){ + a27 = ((((a27 * 10)/ -9) * 5) * 5); + a21 = (((((a21 % 74)- 62) + -462204) + -127644) + 589850); + a8 = 5; + a9 = 2; + + return -1; + } else if((((( 5 < a21 && ((input == 5) && ((a9==2) || (a9==3)))) && ((100 < a27) && (182 >= a27)) ) && (a8==5)) && a14 <= -148 )){ + a27 = ((((((a27 * 10)/ -9) * 5) - -263821) * -1)/ 10); + a21 = (((((a21 - 15331) % 299911)- 300088) / 5) - 143802); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ((((((a9==3) || (a9==4)) && (input == 5)) && (a8==5)) && ((100 < a27) && (182 >= a27)) ) && ((-178 < a21) && (-144 >= a21)) ))){ + a27 = (((((a27 - 183622) / 5) - -496367) * -1)/ 10); + a21 = (((((a21 - 402896) * 1) + 907656) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if((( a27 <= -78 && ( ((-148 < a14) && (13 >= a14)) && (((((a9==5) && ((-178 < a21) && (-144 >= a21)) ) || ( ((-178 < a21) && (-144 >= a21)) && (a9==6))) || ( ((-144 < a21) && (5 >= a21)) && (a9==2))) && (input == 1)))) && (a8==6))){ + if( 182 < a14 ){ + a14 = (((a14 * 5) * 5) + -218290); + a27 = ((((a27 % 88)- -47) - 91425) + 91409); + a21 = (((a21 - -192413) * 3) + 7727); + a8 = 8; + a9 = 4; + + } else{ + a14 = (((a14 - 286308) * 2) / 5); + a21 = (((a21 + -423779) - 137033) - 11517); + a8 = 5; + a9 = 3; + + } return -1; + } else if(((((a8==8) && (((input == 2) && a21 <= -178 ) && (a9==5))) && a27 <= -78 ) && a14 <= -148 )){ + + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((100 < a27) && (182 >= a27)) && (( a14 <= -148 && ( a21 <= -178 && ((input == 6) && (a9==3)))) && (a8==4)))){ + a27 = (((a27 + 474072) - 904208) * 1); + a9 = 2; + + return -1; + } else if(( ((-144 < a21) && (5 >= a21)) && ( a14 <= -148 && (((a8==7) && (((a9==5) || (a9==6)) && (input == 3))) && ((100 < a27) && (182 >= a27)) )))){ + a27 = (((((a27 * -1)/ 10) + 59) + -595436) - -595407); + a21 = (((a21 + 437991) - -50460) + 72116); + a8 = 8; + a9 = 2; + + return 21; + } else if(((a8==6) && (( ((-78 < a27) && (100 >= a27)) && ((((a9==2) && 5 < a21 ) || (( ((-144 < a21) && (5 >= a21)) && (a9==5)) || ( ((-144 < a21) && (5 >= a21)) && (a9==6)))) && (input == 3))) && a14 <= -148 ))){ + a27 = ((((a27 * 5) * 5) * 5) - 327573); + a21 = (((((a21 % 299911)- 300088) - 1) + 404250) + -404249); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ( ((-144 < a21) && (5 >= a21)) && ( ((100 < a27) && (182 >= a27)) && (((input == 3) && ((a9==4) || (a9==5))) && (a8==6)))))){ + a27 = (((((a27 / 5) - 397256) + 873711) * -1)/ 10); + a21 = (((a21 - 65953) - 207917) * 2); + a8 = 4; + a9 = 2; + + return -1; + } else if(((( a27 <= -78 && (((input == 5) && ((a9==5) || (a9==6))) && 5 < a21 )) && (a8==6)) && ((-148 < a14) && (13 >= a14)) )){ + a14 = (((a14 - 495765) / 5) / 5); + a27 = (((a27 / 5) - -272035) - -301830); + a21 = (((((a21 * 9)/ 10) / 5) % 16)- 162); + a8 = 7; + a9 = 3; + + return -1; + } else if(( a14 <= -148 && ((((input == 3) && ((( ((-144 < a21) && (5 >= a21)) && (a9==6)) || ( 5 < a21 && (a9==2))) || ( 5 < a21 && (a9==3)))) && (a8==7)) && a27 <= -78 ))){ + a27 = ((((a27 % 299908)- -300090) / 5) - -132145); + a21 = (((((a21 - 419085) % 16)+ -159) / 5) + -132); + a8 = 5; + a9 = 6; + + return 23; + } else if((( ((-148 < a14) && (13 >= a14)) && ((((input == 4) && ((a9==3) || (a9==4))) && a27 <= -78 ) && ((-178 < a21) && (-144 >= a21)) )) && (a8==4))){ + if( 182 < a14 ){ + a14 = ((((a14 - -591691) * 1) - -4794) + -798965); + a8 = 6; + a9 = 6; + + } else{ + a14 = ((((a14 + -476336) * 10)/ 9) - 25154); + a8 = 6; + a9 = 5; + + } return -1; + } else if(( ((-144 < a21) && (5 >= a21)) && ( ((-78 < a27) && (100 >= a27)) && ((((input == 6) && ((a9==3) || (a9==4))) && (a8==6)) && a14 <= -148 )))){ + a27 = (((a27 - 568531) * 1) - 5403); + a21 = ((((a21 - -506277) + 77008) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-78 < a27) && (100 >= a27)) && ((a8==6) && (((( ((-178 < a21) && (-144 >= a21)) && (a9==6)) || ( ((-144 < a21) && (5 >= a21)) && (a9==2))) && (input == 5)) && a14 <= -148 )))){ + a27 = (((a27 - 584361) * 1) + 558238); + a21 = (((a21 - 455906) + -116519) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(((( a14 <= -148 && ((input == 2) && ((((a9==6) && ((-144 < a21) && (5 >= a21)) ) || ( 5 < a21 && (a9==2))) || ((a9==3) && 5 < a21 )))) && a27 <= -78 ) && (a8==7))){ + a21 = ((((a21 % 16)- 159) * 1) + -3); + a8 = 8; + a9 = 2; + + return 21; + } else if((( 5 < a21 && ((a9==3) && (( a14 <= -148 && (input == 4)) && ((-78 < a27) && (100 >= a27)) ))) && (a8==7))){ + a27 = (((a27 - -502656) + 39104) * 1); + a21 = ((((((a21 * 9)/ 10) * 1) / 5) % 74)- 102); + a8 = 4; + + return 23; + } else if(((( a14 <= -148 && ( ((100 < a27) && (182 >= a27)) && ((a9==3) && (input == 5)))) && a21 <= -178 ) && (a8==4))){ + a27 = (((a27 - -315966) + -524622) - 278393); + a9 = 2; + + return -1; + } else if(( a21 <= -178 && ( a14 <= -148 && (( ((100 < a27) && (182 >= a27)) && ((a8==4) && (input == 5))) && (a9==5))))){ + if( a21 <= -178 ){ + a21 = (((((a21 % 74)+ 4) + -18) - -419086) - 419112); + a8 = 7; + a9 = 4; + + } else{ + a21 = (((a21 + 0) - -600066) - -105); + a9 = 3; + + } return 21; + } else if(((((a8==8) && ((a9==4) && ((input == 6) && ((100 < a27) && (182 >= a27)) ))) && a14 <= -148 ) && 5 < a21 )){ + a27 = ((((a27 + -201142) * 10)/ 9) * 2); + a21 = ((((a21 - 590915) % 299911)- 300088) + -2); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a9==4) && ( a14 <= -148 && ( ((100 < a27) && (182 >= a27)) && (((input == 5) && (a8==8)) && ((-144 < a21) && (5 >= a21)) ))))){ + a27 = ((((a27 * 10)/ -9) * 5) * 5); + a21 = (((a21 - -454077) / 5) - 382723); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==4) && (( a14 <= -148 && ( a21 <= -178 && (((a9==4) || ((a9==2) || (a9==3))) && (input == 4)))) && ((-78 < a27) && (100 >= a27)) ))){ + a27 = (((((a27 % 40)+ 141) * 1) - -121699) - 121698); + a21 = (((a21 - -545285) / 5) + 101463); + a8 = 8; + a9 = 4; + + return 21; + } else if((((a8==7) && ( a14 <= -148 && ((a9==4) && ( ((100 < a27) && (182 >= a27)) && (input == 3))))) && ((-144 < a21) && (5 >= a21)) )){ + a27 = ((((a27 * 10)/ 5) - -586728) + 12172); + a21 = (((a21 * 5) + -156668) - 206299); + a9 = 6; + + return 21; + } else if(( ((-178 < a21) && (-144 >= a21)) && ((a8==6) && (( a14 <= -148 && ((input == 3) && ((a9==5) || ((a9==3) || (a9==4))))) && ((100 < a27) && (182 >= a27)) )))){ + a27 = ((((a27 - 493773) + 954901) * 10)/ -9); + a21 = ((((a21 * 5) / 5) + 590588) + -944153); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a9==2) && (( a14 <= -148 && ( ((100 < a27) && (182 >= a27)) && (input == 1))) && a21 <= -178 )) && (a8==4))){ + a27 = (((a27 / 5) - 374678) + -13323); + return -1; + } else if(((((( 5 < a21 && (input == 1)) && ((-148 < a14) && (13 >= a14)) ) && (a8==4)) && a27 <= -78 ) && (a9==2))){ + a21 = (((((a21 % 74)+ -90) - -11) - -200261) - 200290); + a8 = 7; + a9 = 3; + + return -1; + } else if((( ((-144 < a21) && (5 >= a21)) && (( ((-148 < a14) && (13 >= a14)) && ((input == 2) && (((a9==2) || (a9==3)) || (a9==4)))) && a27 <= -78 )) && (a8==7))){ + a14 = (((a14 * 5) + -52128) - 267191); + a27 = ((((((a27 * 9)/ 10) - -221699) / 5) % 40)- -141); + a8 = 8; + a9 = 3; + + return 25; + } else if(( a14 <= -148 && (( ((100 < a27) && (182 >= a27)) && ((( a21 <= -178 && (a9==6)) || ((a9==2) && ((-178 < a21) && (-144 >= a21)) )) && (input == 5))) && (a8==5)))){ + a27 = (((a27 - 387098) * 1) + -1094); + a21 = ((((a21 % 299911)- 178) - 131841) + -129102); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((((( a21 <= -178 && (a9==5)) || ((a9==6) && a21 <= -178 )) || ((a9==2) && ((-178 < a21) && (-144 >= a21)) )) && (input == 1)) && a14 <= -148 ) && ((-78 < a27) && (100 >= a27)) ) && (a8==7))){ + if((a9==4)){ + a27 = (((a27 / 5) + 158082) + 334425); + a21 = (((a21 + 600100) - -6) / 5); + a8 = 6; + a9 = 3; + + } else{ + a27 = (((((a27 % 40)- -141) / 5) + 142067) - 141943); + a21 = (((a21 - -600134) - -6) - -2); + a8 = 6; + a9 = 4; + + } return 25; + } else if(( ((-178 < a21) && (-144 >= a21)) && ((((((a9==3) || (a9==4)) && (input == 1)) && ((-78 < a27) && (100 >= a27)) ) && (a8==8)) && a14 <= -148 ))){ + a27 = (((((a27 / 5) * 5) + 155278) * -1)/ 10); + a21 = (((a21 + -435046) * 1) + -97634); + a8 = 4; + a9 = 2; + + return -1; + } + return calculate_output4(input); + } + + int calculate_output4(int input) { + + + if((((((((a9==2) && ((-144 < a21) && (5 >= a21)) ) || (( ((-178 < a21) && (-144 >= a21)) && (a9==5)) || ( ((-178 < a21) && (-144 >= a21)) && (a9==6)))) && (input == 6)) && (a8==6)) && ((-148 < a14) && (13 >= a14)) ) && a27 <= -78 )){ + a14 = (((a14 + -206523) * 2) / 5); + a21 = (((a21 / 5) + 306224) * 1); + a8 = 5; + a9 = 3; + + return -1; + } else if((( ((-78 < a27) && (100 >= a27)) && ( a21 <= -178 && (((input == 4) && ((a9==5) || (a9==6))) && a14 <= -148 ))) && (a8==4))){ + a27 = (((a27 * 5) - 279033) / 5); + a9 = 2; + + return -1; + } else if(( 182 < a27 && ((a8==4) && ( 5 < a21 && ((((a9==2) || (a9==3)) && (input == 5)) && a14 <= -148 ))))){ + a27 = ((((a27 - 0) / 5) * 10)/ -4); + a21 = ((((a21 / 5) - 413977) * 10)/ 9); + a9 = 2; + + return -1; + } else if((((( ((-178 < a21) && (-144 >= a21)) && ( a14 <= -148 && (input == 5))) && ((-78 < a27) && (100 >= a27)) ) && (a8==4)) && (a9==2))){ + a21 = ((((a21 / 5) + -101078) / 5) - -20192); + a8 = 6; + a9 = 3; + + return 23; + } else if(( a27 <= -78 && ( a21 <= -178 && ((((((a9==3) || (a9==4)) || (a9==5)) && (input == 5)) && (a8==4)) && ((-148 < a14) && (13 >= a14)) )))){ + a14 = ((((a14 + -190796) / 5) * 10)/ 9); + a27 = ((((a27 % 299908)- -300090) - -79548) + 38298); + a21 = ((((a21 - -524378) / 5) % 74)- 69); + a9 = 3; + + return -1; + } else if(( ((-78 < a27) && (100 >= a27)) && (((((input == 5) && ((a9==3) || (a9==4))) && ((-178 < a21) && (-144 >= a21)) ) && a14 <= -148 ) && (a8==6)))){ + a27 = (((a27 - 10937) - 457369) / 5); + a21 = ((((a21 * 5) - 83595) * 10)/ 9); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((((( ((-144 < a21) && (5 >= a21)) && (a9==5)) || ( ((-144 < a21) && (5 >= a21)) && (a9==6))) || ((a9==2) && 5 < a21 )) && (input == 5)) && (a8==8)) && a14 <= -148 ) && ((100 < a27) && (182 >= a27)) )){ + a21 = (((((a21 % 74)+ -69) + -308276) + -289086) + 597361); + a8 = 4; + a9 = 5; + + return 21; + } else if(( ((-78 < a27) && (100 >= a27)) && ((((((a9==5) || (a9==6)) && (input == 5)) && a14 <= -148 ) && a21 <= -178 ) && (a8==4)))){ + a21 = (((((a21 * 9)/ 10) % 16)- 149) * 1); + a8 = 6; + a9 = 5; + + return 21; + } else if(( ((-178 < a21) && (-144 >= a21)) && ( a14 <= -148 && ((a8==7) && ( a27 <= -78 && ((input == 5) && ((a9==2) || (a9==3)))))))){ + a21 = (((a21 - 507491) + -26810) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==7) && (((((((a9==4) || (a9==5)) || (a9==6)) && (input == 3)) && ((-178 < a21) && (-144 >= a21)) ) && a14 <= -148 ) && a27 <= -78 ))){ + a21 = (((a21 + -285139) + 850670) + 12286); + a9 = 4; + + return 23; + } else if((( 5 < a21 && ( a27 <= -78 && (((a9==5) && (input == 4)) && ((-148 < a14) && (13 >= a14)) ))) && (a8==5))){ + if( a21 <= -178 ){ + a14 = (((a14 - 38597) + -167600) - 150024); + } else{ + a14 = (((a14 + 158037) - 575872) * 1); + a21 = ((((a21 % 16)- 172) * 1) - 4); + a9 = 4; + + } return 23; + } else if(( a21 <= -178 && ((a8==6) && ( a14 <= -148 && ( ((100 < a27) && (182 >= a27)) && (((a9==2) || (a9==3)) && (input == 3))))))){ + a27 = (((a27 + -278699) - 258098) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(( 5 < a21 && (((((input == 1) && (a8==4)) && 182 < a27 ) && a14 <= -148 ) && (a9==4)))){ + a27 = (((a27 - 600170) / 5) - 20643); + a21 = ((((a21 * 9)/ 10) - 555967) - 7128); + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ( ((100 < a27) && (182 >= a27)) && (((a8==5) && (((a9==6) || ((a9==4) || (a9==5))) && (input == 5))) && ((-144 < a21) && (5 >= a21)) )))){ + a27 = ((((((a27 * 10)/ -9) - -318776) * 1) * -1)/ 10); + a21 = (((((a21 * 5) / 5) - -96252) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && (((((input == 3) && ((a9==5) || (a9==6))) && ((100 < a27) && (182 >= a27)) ) && (a8==6)) && 5 < a21 ))){ + if( a21 <= -178 ){ + a27 = (((((a27 - -587853) + 2131) - 1104540) * -1)/ 10); + a21 = (((((a21 % 74)+ -94) * 9)/ 10) + -28); + a8 = 4; + a9 = 2; + + } else{ + a21 = ((((((a21 % 74)+ -134) * 9)/ 10) + -500615) + 500639); + a9 = 3; + + } return -1; + } else if(( a14 <= -148 && ((a8==7) && ((( a21 <= -178 && (input == 4)) && ((-78 < a27) && (100 >= a27)) ) && (a9==2))))){ + a27 = (((a27 / 5) - -85908) + -317295); + a8 = 4; + + return -1; + } else if(((a8==6) && ( 182 < a27 && ( 5 < a21 && ((a9==3) && ( a14 <= -148 && (input == 4))))))){ + a27 = (((a27 - 600181) * 1) - 1); + a21 = (((((a21 * 9)/ 10) * 1) * 1) - 555749); + a8 = 4; + a9 = 2; + + return -1; + } else if((( 5 < a21 && ( ((-148 < a14) && (13 >= a14)) && (((a8==5) && (input == 5)) && a27 <= -78 ))) && (a9==5))){ + if( ((-178 < a21) && (-144 >= a21)) ){ + a14 = ((((a14 + -23953) + 360095) + -31786) - 377664); + a21 = ((((a21 - 19044) % 299911)+ -300088) - 1); + a8 = 6; + a9 = 3; + + } else{ + a14 = ((((a14 * 5) / 5) / 5) + -402514); + a21 = (((((a21 % 74)+ -123) + -80456) - 37600) + 118076); + a8 = 7; + a9 = 2; + + } return -1; + } else if((( a27 <= -78 && (((input == 3) && (( ((-144 < a21) && (5 >= a21)) && (a9==2)) || (((a9==5) && ((-178 < a21) && (-144 >= a21)) ) || ((a9==6) && ((-178 < a21) && (-144 >= a21)) )))) && (a8==6))) && ((-148 < a14) && (13 >= a14)) )){ + if( a21 <= -178 ){ + a14 = ((((a14 / 5) * 5) + 291796) + -638508); + a21 = ((((((a21 % 16)+ -159) * 5) * 5) % 16)- 157); + a8 = 5; + a9 = 2; + + } else{ + a14 = ((((a14 - -508101) / 5) * 10)/ -9); + a27 = ((((a27 % 88)+ 65) - 42) - -25); + a21 = (((((a21 % 74)+ -68) * 5) % 74)+ -69); + a9 = 6; + + } return -1; + } else if((((( a14 <= -148 && ((input == 3) && ((-178 < a21) && (-144 >= a21)) )) && (a9==3)) && ((100 < a27) && (182 >= a27)) ) && (a8==7))){ + a27 = ((((a27 * 5) * -2)/ 10) * 5); + a21 = (((a21 - -390313) * 1) - -143756); + a8 = 6; + a9 = 6; + + return -1; + } else if(( ((-178 < a21) && (-144 >= a21)) && ( a14 <= -148 && (((((a9==3) || (a9==4)) && (input == 4)) && (a8==6)) && 182 < a27 )))){ + a27 = ((((a27 % 88)- -6) / 5) + -46); + a21 = ((((a21 * 1)/ 10) - 164055) + 163946); + a8 = 5; + a9 = 2; + + return 21; + } else if(((( ((-148 < a14) && (13 >= a14)) && (((((a9==4) || (a9==5)) || (a9==6)) && (input == 2)) && (a8==4))) && 5 < a21 ) && a27 <= -78 )){ + if((a9==6)){ + a14 = ((((a14 + -147216) / 5) * 10)/ 9); + a27 = (((((a27 + 267250) % 40)- -140) + 395749) - 395746); + a21 = (((((a21 + 0) / 5) / 5) % 16)- 162); + a8 = 6; + a9 = 2; + + } else{ + a14 = (((((a14 * 5) + 147495) - -128870) * -1)/ 10); + a27 = ((((a27 % 40)- -149) + 533299) + -533285); + a8 = 7; + a9 = 6; + + } return -1; + } else if(( ((-178 < a21) && (-144 >= a21)) && ( a27 <= -78 && ((((input == 2) && (((a9==3) || (a9==4)) || (a9==5))) && (a8==8)) && a14 <= -148 )))){ + a21 = (((a21 * 5) * 5) * 5); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ((((((a9==6) && ((-178 < a21) && (-144 >= a21)) ) || ((a9==2) && ((-144 < a21) && (5 >= a21)) )) && (input == 3)) && (a8==8)) && 182 < a27 ))){ + a27 = (((a27 / 5) + -233346) / 5); + a21 = ((((a21 + 141899) * 10)/ 9) * 3); + a8 = 4; + a9 = 6; + + return -1; + } else if((( ((-78 < a27) && (100 >= a27)) && ((((((a9==5) && ((-144 < a21) && (5 >= a21)) ) || ( ((-144 < a21) && (5 >= a21)) && (a9==6))) || ((a9==2) && 5 < a21 )) && (input == 5)) && (a8==7))) && a14 <= -148 )){ + a27 = ((((a27 - 495974) - 10871) * 10)/ 9); + a21 = ((((((a21 % 16)+ -160) - 2) * 5) % 16)+ -159); + a9 = 6; + + return 21; + } else if(( ((-144 < a21) && (5 >= a21)) && (((((input == 6) && ((a9==2) || (a9==3))) && (a8==4)) && ((100 < a27) && (182 >= a27)) ) && a14 <= -148 ))){ + a27 = ((((a27 * 5) + 118582) * 5) + -691929); + a21 = (((a21 * 5) / 5) + -343041); + a9 = 2; + + return -1; + } else if((((((((a8==7) && (a9==2)) && a21 <= -178 ) || ((((a8==6) && (a9==5)) && 5 < a21 ) || (((a8==6) && (a9==6)) && 5 < a21 ))) && (input == 6)) && a14 <= -148 ) && 182 < a27 )){ + a27 = (((a27 + -600114) - 53) + -4); + a21 = (((((a21 % 299911)+ -300088) - 1) / 5) - 272085); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ((((input == 6) && (( ((-144 < a21) && (5 >= a21)) && (a9==6)) || ((a9==2) && 5 < a21 ))) && a27 <= -78 ) && (a8==8)))){ + a21 = ((((a21 / 5) + -432485) * 10)/ 9); + a8 = 4; + a9 = 2; + + return -1; + } else if((((((a8==8) && ( ((-144 < a21) && (5 >= a21)) && (input == 6))) && 182 < a27 ) && a14 <= -148 ) && (a9==3))){ + if( ((-144 < a21) && (5 >= a21)) ){ + a27 = (((((a27 - 0) * 9)/ 10) % 88)- -13); + a21 = ((((a21 + -188494) % 16)- 152) - -1); + a8 = 4; + a9 = 2; + + } else{ + a27 = (((a27 - 0) - 600131) * 1); + a21 = (((((a21 % 16)+ -159) - 1) - -357483) + -357482); + a8 = 5; + a9 = 4; + + } return -1; + } else if(( ((-78 < a27) && (100 >= a27)) && ((a8==8) && (((((a9==3) || (a9==4)) && (input == 3)) && ((-178 < a21) && (-144 >= a21)) ) && a14 <= -148 )))){ + a27 = (((a27 + -439778) + -63190) + -90038); + a21 = ((((a21 / 5) + 11145) - -241179) + -555989); + a8 = 4; + a9 = 2; + + return -1; + } else if(((( a21 <= -178 && (((input == 1) && ((a9==3) || (a9==4))) && (a8==6))) && a14 <= -148 ) && 182 < a27 )){ + a27 = (((((a27 - 590106) - -426756) / 5) % 40)+ 141); + a21 = ((((a21 + 178055) % 74)- 69) - 1); + a8 = 5; + a9 = 3; + + return 25; + } else if(( ((-178 < a21) && (-144 >= a21)) && (((((input == 6) && (((a9==4) || (a9==5)) || (a9==6))) && (a8==7)) && a27 <= -78 ) && a14 <= -148 ))){ + a21 = (((a21 - 114693) + -1255) + -44127); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a9==2) && ( ((-78 < a27) && (100 >= a27)) && (((input == 3) && ((-178 < a21) && (-144 >= a21)) ) && (a8==5)))) && a14 <= -148 )){ + a27 = (((((a27 - 315839) - 191654) + 1070639) * -1)/ 10); + a21 = ((((a21 * 5) + 226085) * 10)/ -9); + a8 = 4; + + return -1; + } else if(( ((-178 < a21) && (-144 >= a21)) && ( a14 <= -148 && (((a8==8) && (((a9==2) || (a9==3)) && (input == 1))) && 182 < a27 )))){ + a27 = ((((a27 * 9)/ 10) / 5) + -242443); + a21 = ((((a21 + 68238) / 5) * 10)/ 9); + a8 = 5; + a9 = 6; + + return -1; + } else if(( 182 < a27 && ( a14 <= -148 && (((input == 4) && (((a9==2) && ((-178 < a21) && (-144 >= a21)) ) || (((a9==5) && a21 <= -178 ) || ( a21 <= -178 && (a9==6))))) && (a8==6))))){ + a27 = (((((a27 % 40)- -114) - 6) - 456054) + 456066); + a21 = (((a21 / 5) - -419789) - 715824); + a8 = 4; + a9 = 3; + + return 21; + } else if((( a14 <= -148 && ((a9==2) && ( 182 < a27 && ((input == 5) && (a8==6))))) && 5 < a21 )){ + a27 = (((((a27 - 233111) + -367067) / 5) * 23)/ 10); + a21 = ((((a21 * 9)/ 10) / 5) + -234664); + a8 = 4; + + return -1; + } else if(((a8==4) && ( 5 < a21 && (( 182 < a27 && (((a9==2) || (a9==3)) && (input == 3))) && a14 <= -148 )))){ + a27 = (((a27 - 600174) - 3) + -4); + a21 = ((((((a21 * 9)/ 10) - -57724) + 2087) * -1)/ 10); + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ((((a8==4) && (((a9==5) || (a9==6)) && (input == 6))) && ((-78 < a27) && (100 >= a27)) ) && ((-144 < a21) && (5 >= a21)) ))){ + a21 = (((a21 - 340909) * 1) - -224852); + a8 = 7; + a9 = 6; + + return 25; + } else if(((( a21 <= -178 && ( a27 <= -78 && ((a9==3) && (input == 5)))) && ((-148 < a14) && (13 >= a14)) ) && (a8==7))){ + a14 = (((a14 / 5) + -542405) + -6770); + a27 = ((((a27 % 88)- -20) - 3) - 5); + a8 = 4; + a9 = 6; + + return -1; + } else if(((a8==6) && ( a14 <= -148 && (( ((-78 < a27) && (100 >= a27)) && ((input == 4) && ((a9==3) || (a9==4)))) && ((-144 < a21) && (5 >= a21)) )))){ + a27 = (((((a27 - 195180) + 429882) / 5) * -1)/ 10); + a21 = (((a21 - -269333) + -36804) + -708623); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((((a9==3) && (input == 5)) && a14 <= -148 ) && (a8==7)) && ((-178 < a21) && (-144 >= a21)) ) && ((100 < a27) && (182 >= a27)) )){ + a27 = (((((a27 * -8)/ 10) * 10)/ 9) - 26124); + a21 = (((a21 + -343424) * 1) * 1); + a8 = 5; + a9 = 4; + + return -1; + } else if(( a14 <= -148 && (((a8==5) && ( 5 < a21 && ((input == 4) && ((a9==3) || (a9==4))))) && ((-78 < a27) && (100 >= a27)) ))){ + a27 = ((((a27 % 40)- -140) - -1) * 1); + a21 = (((a21 - 0) / 5) - 483293); + a8 = 4; + a9 = 3; + + return 21; + } else if((((a8==6) && (((( ((-178 < a21) && (-144 >= a21)) && (a9==2)) || (( a21 <= -178 && (a9==5)) || ( a21 <= -178 && (a9==6)))) && (input == 1)) && ((-78 < a27) && (100 >= a27)) )) && a14 <= -148 )){ + a27 = (((a27 - 283881) - 100528) / 5); + a21 = (((((a21 % 299911)- 178) + -103823) + 699551) + -619151); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==7) && ( a27 <= -78 && (( ((-148 < a14) && (13 >= a14)) && (((a9==4) || (a9==5)) && (input == 4))) && 5 < a21 )))){ + a14 = (((a14 - 26699) - 244272) + -13678); + a27 = (((((a27 % 299908)+ 300090) * 1) / 5) + 400307); + a21 = (((((a21 % 16)+ -162) + -346431) - -591909) - 245492); + a8 = 6; + a9 = 3; + + return 21; + } else if(((a9==3) && ( a27 <= -78 && (( 5 < a21 && ((a8==7) && (input == 1))) && ((-148 < a14) && (13 >= a14)) )))){ + if((a9==5)){ + a14 = (((a14 - 588741) + -5284) - 3183); + a21 = ((((a21 - 215475) % 299911)- 300088) * 1); + a8 = 4; + a9 = 2; + + } else{ + a14 = ((((a14 - 90674) - 434102) * 10)/ 9); + a21 = (((((a21 % 16)+ -169) - 265017) / 5) + 52868); + a8 = 5; + a9 = 2; + + } return -1; + } else if(((a8==4) && ( a14 <= -148 && ( ((-144 < a21) && (5 >= a21)) && ( ((-78 < a27) && (100 >= a27)) && (((a9==5) || (a9==6)) && (input == 3))))))){ + a27 = ((((a27 + -229818) * 10)/ 9) - 84312); + a21 = (((a21 * 5) + -421511) + 21479); + a9 = 2; + + return -1; + } else if((( a27 <= -78 && (((( ((-144 < a21) && (5 >= a21)) && (a9==6)) || ((a9==2) && 5 < a21 )) && (input == 6)) && ((-148 < a14) && (13 >= a14)) )) && (a8==7))){ + a14 = (((a14 - 363079) - 70325) - 86261); + a27 = ((((((a27 * 9)/ 10) / 5) + -227055) % 40)+ 172); + a21 = ((((a21 - 155472) % 299911)- 300088) - 1); + a8 = 4; + a9 = 4; + + return -1; + } else if(( ((100 < a27) && (182 >= a27)) && ( a14 <= -148 && (((a9==4) && ((input == 1) && ((-144 < a21) && (5 >= a21)) )) && (a8==7))))){ + a27 = ((((a27 * 5) * 10)/ -9) / 5); + a21 = (((a21 + -22775) * 5) - 302474); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a8==4) && (( ((-144 < a21) && (5 >= a21)) && ((input == 6) && ((a9==5) || (a9==6)))) && a27 <= -78 )) && ((-148 < a14) && (13 >= a14)) )){ + a14 = (((a14 + -164519) - 76366) * 2); + a21 = (((((a21 - -209137) * 2) + -632010) * -1)/ 10); + a8 = 6; + a9 = 3; + + return 21; + } else if(( a14 <= -148 && ((a9==2) && ((((input == 1) && a21 <= -178 ) && (a8==8)) && ((-78 < a27) && (100 >= a27)) )))){ + a27 = ((((a27 - 477223) - 49564) * 10)/ 9); + a8 = 4; + + return -1; + } else if(( ((-178 < a21) && (-144 >= a21)) && (( 182 < a27 && ((((a9==3) || (a9==4)) && (input == 5)) && (a8==6))) && a14 <= -148 ))){ + a27 = (((((a27 / 5) * 10)/ -4) / 5) + -106031); + a21 = (((a21 + -330037) - 258971) - 2143); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-148 < a14) && (13 >= a14)) && ((((a8==7) && ((input == 5) && (((a9==2) || (a9==3)) || (a9==4)))) && a27 <= -78 ) && ((-144 < a21) && (5 >= a21)) ))){ + if((a9==3)){ + + a8 = 6; + a9 = 4; + + } else{ + a14 = (((a14 * 5) + -431018) / 5); + a8 = 6; + a9 = 3; + + } return 25; + } else if((( 182 < a27 && (((((a9==5) || ((a9==3) || (a9==4))) && (input == 4)) && 5 < a21 ) && (a8==5))) && a14 <= -148 )){ + if((a8==7)){ + a21 = ((((a21 + 0) % 299911)- 300088) * 1); + a8 = 7; + a9 = 6; + + } else{ + a27 = (((((a27 * 9)/ 10) - 560870) + 406692) - 435690); + a21 = (((((a21 + 0) - 18409) + 344) % 299911)- 300088); + a8 = 8; + a9 = 4; + + } return -1; + } else if(( 182 < a27 && ( a14 <= -148 && ((a8==5) && ((input == 5) && ((( ((-178 < a21) && (-144 >= a21)) && (a9==6)) || ((a9==2) && ((-144 < a21) && (5 >= a21)) )) || ( ((-144 < a21) && (5 >= a21)) && (a9==3)))))))){ + a27 = (((a27 + 0) - 600109) + -3); + a21 = (((a21 + -547792) - 29433) / 5); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((a8==7) && (((input == 4) && ((-148 < a14) && (13 >= a14)) ) && a27 <= -78 )) && (a9==6)) && ((-178 < a21) && (-144 >= a21)) )){ + if( a27 <= -78 ){ + a14 = (((((a14 - -340986) * 1) * 1) * -1)/ 10); + a21 = ((((a21 * 10)/ 8) / 5) * 5); + a9 = 2; + + } else{ + a14 = (((a14 - 257308) - 114078) / 5); + a8 = 5; + a9 = 3; + + } return -1; + } else if(( a14 <= -148 && ((( ((100 < a27) && (182 >= a27)) && (((a9==6) || ((a9==4) || (a9==5))) && (input == 5))) && (a8==5)) && 5 < a21 ))){ + a27 = (((a27 / 5) + -160083) + -7331); + a21 = (((((a21 % 299911)+ -300088) + -26779) * 10)/ 9); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ((a8==5) && (((input == 2) && ((((a9==5) && ((-178 < a21) && (-144 >= a21)) ) || ( ((-178 < a21) && (-144 >= a21)) && (a9==6))) || ( ((-144 < a21) && (5 >= a21)) && (a9==2)))) && ((-78 < a27) && (100 >= a27)) )))){ + a27 = (((a27 * 5) + -314291) / 5); + a21 = (((a21 * 5) - 467721) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(((( ((-78 < a27) && (100 >= a27)) && ( ((-178 < a21) && (-144 >= a21)) && ((a8==8) && (input == 4)))) && (a9==5)) && a14 <= -148 )){ + a27 = (((a27 - -442389) + -132879) + -800841); + a21 = (((a21 + -317887) - 117653) + -21643); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==6) && ( a14 <= -148 && ( 5 < a21 && ((a9==5) && ( ((-78 < a27) && (100 >= a27)) && (input == 5))))))){ + a27 = (((((a27 / 5) / 5) + 488247) * -1)/ 10); + a21 = (((((a21 % 299911)- 300088) * 1) + 246868) + -460237); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-178 < a21) && (-144 >= a21)) && ( ((100 < a27) && (182 >= a27)) && ((a8==4) && ( a14 <= -148 && ((((a9==3) || (a9==4)) || (a9==5)) && (input == 3))))))){ + a27 = ((((a27 * -8)/ 10) + -391337) * 1); + a21 = ((((a21 / 5) * 64)/ 10) + -275617); + a9 = 2; + + return -1; + } else if((( 182 < a27 && ( a14 <= -148 && ( ((-144 < a21) && (5 >= a21)) && ((input == 2) && ((a9==5) || (a9==6)))))) && (a8==7))){ + a27 = ((((a27 / 5) * 4) + 40266) - 558310); + a21 = (((a21 - 308161) + -286171) - 1189); + a8 = 4; + a9 = 2; + + return -1; + } else if((((((( a21 <= -178 && (a9==6)) || ( ((-178 < a21) && (-144 >= a21)) && (a9==2))) && (input == 4)) && (a8==8)) && ((-78 < a27) && (100 >= a27)) ) && a14 <= -148 )){ + a27 = (((a27 + -20547) * 5) + -408699); + a21 = ((((a21 % 299911)+ -178) * 1) * 1); + a8 = 7; + a9 = 5; + + return 21; + } else if(( a14 <= -148 && ( a21 <= -178 && ( ((-78 < a27) && (100 >= a27)) && ((a8==7) && ((input == 2) && ((a9==3) || (a9==4)))))))){ + a27 = (((((a27 % 40)- -142) - -116640) + -313788) + 197147); + a21 = ((((a21 % 74)+ 2) / 5) + 5); + a8 = 6; + a9 = 3; + + return 25; + } else if((((a8==6) && ( 5 < a21 && ( a27 <= -78 && ((input == 3) && ((a9==5) || (a9==6)))))) && ((-148 < a14) && (13 >= a14)) )){ + a14 = (((a14 + 371250) / 5) + -435138); + a21 = (((((a21 % 74)+ -93) * 9)/ 10) / 5); + a9 = 4; + + return -1; + } else if(( a14 <= -148 && ( ((-178 < a21) && (-144 >= a21)) && ( 182 < a27 && (((input == 3) && ((a9==4) || (a9==5))) && (a8==5)))))){ + a21 = (((a21 + -58643) * 5) + 763705); + a9 = 4; + + return 25; + } else if(((( ((-78 < a27) && (100 >= a27)) && (((input == 3) && ((a9==4) || (a9==5))) && (a8==7))) && a14 <= -148 ) && 5 < a21 )){ + a27 = ((((a27 + -493913) * 10)/ 9) * 1); + a21 = (((a21 / 5) + -1572) + -159867); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==4) && ( a14 <= -148 && ((((input == 3) && ((a9==5) || (a9==6))) && a21 <= -178 ) && ((-78 < a27) && (100 >= a27)) )))){ + a27 = (((a27 * 5) + 9978) * 5); + a8 = 7; + a9 = 4; + + return 25; + } else if(( ((100 < a27) && (182 >= a27)) && ( a14 <= -148 && ((input == 1) && ((( 5 < a21 && ((a9==5) && (a8==4))) || ( 5 < a21 && ((a8==4) && (a9==6)))) || (((a9==2) && (a8==5)) && a21 <= -178 )))))){ + a27 = (((a27 - 450390) - 78329) * 1); + a21 = ((((a21 % 299911)+ -300088) * 1) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==8) && (( 182 < a27 && ( a14 <= -148 && ((input == 2) && ((a9==4) || (a9==5))))) && ((-178 < a21) && (-144 >= a21)) ))){ + a27 = ((((a27 * -5)/ 10) * 1) + -135973); + a21 = ((((a21 * 10)/ -9) + 550847) * 1); + a8 = 5; + a9 = 2; + + return -1; + } else if(((a9==3) && ( ((-144 < a21) && (5 >= a21)) && (( a14 <= -148 && ( ((100 < a27) && (182 >= a27)) && (input == 4))) && (a8==7))))){ + if( ((13 < a14) && (182 >= a14)) ){ + + a9 = 4; + + } else{ + a21 = ((((a21 + 439076) * 10)/ 9) * 1); + a8 = 4; + + } return 21; + } else if((((((a8==5) && ((input == 6) && ((a9==4) || (a9==5)))) && ((-148 < a14) && (13 >= a14)) ) && a27 <= -78 ) && ((-144 < a21) && (5 >= a21)) )){ + a14 = (((((a14 * 5) + -9616) + 389937) * -1)/ 10); + a21 = (((((a21 % 16)- 161) / 5) / 5) + -147); + a8 = 4; + a9 = 5; + + return -1; + } else if(((((a9==3) && (( ((-78 < a27) && (100 >= a27)) && (input == 5)) && a14 <= -148 )) && (a8==4)) && 5 < a21 )){ + a27 = (((a27 + -281229) * 2) + -11305); + a21 = ((((a21 * 9)/ 10) + -593388) * 1); + a9 = 2; + + return -1; + } else if(( a14 <= -148 && (((((input == 3) && ((-78 < a27) && (100 >= a27)) ) && (a9==3)) && (a8==7)) && ((-178 < a21) && (-144 >= a21)) ))){ + a27 = ((((a27 % 40)+ 142) - -1) - 2); + a21 = ((((a21 - 117874) - 310566) - -603482) - 174927); + a8 = 4; + a9 = 4; + + return 25; + } else if((((((a8==8) && (((a9==5) || (a9==6)) && (input == 2))) && 5 < a21 ) && ((100 < a27) && (182 >= a27)) ) && a14 <= -148 )){ + a27 = (((a27 + -95842) * 5) - 29101); + a21 = (((((a21 % 299911)+ -300088) - 293045) - -301743) + -224034); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a8==5) && ( ((100 < a27) && (182 >= a27)) && ( a14 <= -148 && ((input == 3) && ((a9==2) || (a9==3)))))) && 5 < a21 )){ + a27 = (((a27 - -261727) - 573677) * 1); + a21 = (((a21 / 5) - 566635) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if((((( a14 <= -148 && ((((a9==3) || (a9==4)) || (a9==5)) && (input == 2))) && ((100 < a27) && (182 >= a27)) ) && a21 <= -178 ) && (a8==7))){ + a21 = (((((a21 - 0) + 312193) - 207781) % 16)+ -161); + a9 = 5; + + return 25; + } else if(((( ((100 < a27) && (182 >= a27)) && ((a8==5) && ((input == 6) && (((a9==4) || (a9==5)) || (a9==6))))) && ((-144 < a21) && (5 >= a21)) ) && a14 <= -148 )){ + a27 = ((((a27 / 5) * 5) * 5) - 572398); + a21 = ((((a21 * 5) - 146040) * 10)/ 9); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ((a9==2) && ( a21 <= -178 && ((a8==8) && ( ((-78 < a27) && (100 >= a27)) && (input == 5))))))){ + a27 = ((((((a27 % 40)+ 142) * 5) * 5) % 40)- -112); + a8 = 4; + + return 21; + } else if(((((a8==7) && ( ((100 < a27) && (182 >= a27)) && ((input == 4) && ((a9==4) || (a9==5))))) && ((-178 < a21) && (-144 >= a21)) ) && a14 <= -148 )){ + + a8 = 4; + a9 = 6; + + return 21; + } else if(( a14 <= -148 && (( ((100 < a27) && (182 >= a27)) && ( 5 < a21 && (((a9==2) || (a9==3)) && (input == 6)))) && (a8==7)))){ + a27 = (((a27 + 279554) - 155308) * 4); + a21 = ((((((a21 % 16)- 163) - 8) * 5) % 16)+ -159); + a9 = 2; + + return 21; + } else if(( ((-144 < a21) && (5 >= a21)) && ( a14 <= -148 && ((a8==8) && ((((a9==5) || (a9==6)) && (input == 1)) && 182 < a27 ))))){ + a14 = (((((a14 % 80)+ -22) * 5) % 80)+ 7); + a27 = (((((a27 / 5) * 10)/ -4) - -389854) + -640891); + a21 = (((a21 / 5) - 147) - 1); + a8 = 4; + a9 = 4; + + return -1; + } else if((((a9==3) && ( 182 < a27 && (((input == 2) && (a8==8)) && ((-144 < a21) && (5 >= a21)) ))) && a14 <= -148 )){ + if((a8==5)){ + a27 = (((a27 - 600128) * 1) * 1); + a21 = (((a21 / 5) / 5) - 475400); + a8 = 5; + a9 = 2; + + } else{ + a27 = ((((a27 * -5)/ 10) + -12840) + -4903); + a21 = (((((a21 % 16)+ -161) + 203588) + -298559) - -94972); + a8 = 6; + a9 = 4; + + } return -1; + } else if((( ((-78 < a27) && (100 >= a27)) && ((((((a8==5) && (a9==5)) && 5 < a21 ) || (((a8==5) && (a9==6)) && 5 < a21 )) || ( a21 <= -178 && ((a8==6) && (a9==2)))) && (input == 1))) && a14 <= -148 )){ + a27 = ((((a27 + 159018) / 5) * 5) + -423743); + a21 = ((((a21 % 299911)- 300088) * 1) + -1); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a21 <= -178 && ((( ((100 < a27) && (182 >= a27)) && ((input == 3) && ((a9==5) || ((a9==3) || (a9==4))))) && a14 <= -148 ) && (a8==7)))){ + a27 = (((((a27 - -439565) * -1)/ 10) - -356621) + -692285); + a21 = (((((a21 % 74)+ 5) - 25) * 9)/ 10); + a8 = 5; + a9 = 4; + + return -1; + } else if(( ((-144 < a21) && (5 >= a21)) && (((((((a9==4) || (a9==5)) || (a9==6)) && (input == 1)) && (a8==4)) && a14 <= -148 ) && 182 < a27 ))){ + a27 = (((a27 - 600142) * 1) * 1); + a8 = 6; + a9 = 3; + + return -1; + } else if(((a8==5) && ( 5 < a21 && (( ((-148 < a14) && (13 >= a14)) && ((a9==5) && (input == 1))) && a27 <= -78 )))){ + a14 = ((((a14 + -232728) * 10)/ 9) + 113715); + a8 = 4; + a9 = 6; + + return -1; + } else if(((((a9==5) && ( a21 <= -178 && ((input == 1) && (a8==8)))) && a27 <= -78 ) && a14 <= -148 )){ + + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==4) && ( a14 <= -148 && ( ((100 < a27) && (182 >= a27)) && ((( a21 <= -178 && (a9==6)) || ((a9==2) && ((-178 < a21) && (-144 >= a21)) )) && (input == 1)))))){ + a27 = (((a27 + -1496) * 5) - 111101); + a21 = ((((((a21 % 299911)- 178) * 1) + 583818) * -1)/ 10); + a9 = 2; + + return -1; + } else if((((a8==5) && ( 182 < a27 && (((input == 1) && (((a9==3) || (a9==4)) || (a9==5))) && 5 < a21 ))) && a14 <= -148 )){ + a27 = ((((a27 * 9)/ 10) + -405698) + -161168); + a21 = (((((a21 % 299911)+ -300088) * 10)/ 9) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ( 5 < a21 && ((a8==6) && (( 182 < a27 && (input == 3)) && (a9==3)))))){ + a27 = (((a27 - 600155) * 1) - 20); + a21 = (((((a21 % 299911)- 300088) / 5) * 51)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if(((( ((-144 < a21) && (5 >= a21)) && ((((a9==5) || (a9==6)) && (input == 4)) && 182 < a27 )) && (a8==7)) && a14 <= -148 )){ + a27 = (((((a27 - 81382) - -34952) + -87709) % 40)+ 140); + a21 = ((((a21 + -153766) - -202044) / 5) - 241721); + a8 = 4; + a9 = 3; + + return -1; + } else if(( a14 <= -148 && ((((a9==6) && ((input == 5) && (a8==8))) && a27 <= -78 ) && 5 < a21 ))){ + a21 = ((((a21 - 392694) % 299911)+ -300088) + -2); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ( ((100 < a27) && (182 >= a27)) && ((a8==4) && (((input == 6) && ((-178 < a21) && (-144 >= a21)) ) && (a9==6)))))){ + + return 23; + } else if((( 182 < a27 && ( a21 <= -178 && ( a14 <= -148 && ((a8==7) && (input == 5))))) && (a9==6))){ + a27 = ((((((a27 * -5)/ 10) * 1) / 5) * 44)/ 10); + a21 = (((a21 - -600057) * 1) + 25); + a8 = 8; + + return 21; + } else if(((a8==5) && (( a27 <= -78 && ((((a9==6) && a21 <= -178 ) || ( ((-178 < a21) && (-144 >= a21)) && (a9==2))) && (input == 1))) && ((-148 < a14) && (13 >= a14)) ))){ + a21 = ((((a21 / 5) % 16)+ -145) + 1); + a9 = 5; + + return -1; + } else if((( a14 <= -148 && (((input == 2) && (((a9==6) && ((-144 < a21) && (5 >= a21)) ) || ((a9==2) && 5 < a21 ))) && (a8==5))) && ((-78 < a27) && (100 >= a27)) )){ + a27 = ((((a27 * 5) % 40)+ 140) * 1); + a21 = ((((a21 % 299911)- 300088) - 1) - 1); + a8 = 4; + a9 = 2; + + return 25; + } else if((( ((100 < a27) && (182 >= a27)) && ( a21 <= -178 && (((input == 2) && a14 <= -148 ) && (a9==4)))) && (a8==4))){ + if( ((-78 < a27) && (100 >= a27)) ){ + a27 = (((a27 + 75187) - -516296) - -1670); + a8 = 7; + a9 = 6; + + } else{ + a27 = (((((a27 * -8)/ 10) + 132947) * 10)/ -9); + a8 = 8; + + } return 21; + } else if(((((((((a9==2) || (a9==3)) || (a9==4)) && (input == 2)) && (a8==7)) && a14 <= -148 ) && ((-144 < a21) && (5 >= a21)) ) && 182 < a27 )){ + a27 = (((((a27 + 0) * -5)/ 10) * 10)/ 9); + a21 = ((((a21 - 236567) - 406) * 10)/ 9); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==8) && ( a14 <= -148 && ((((input == 6) && ((a9==4) || ((a9==2) || (a9==3)))) && 5 < a21 ) && 182 < a27 )))){ + a27 = (((a27 + -376581) + -135835) - 87742); + a8 = 5; + a9 = 2; + + return -1; + } else if(( ((-78 < a27) && (100 >= a27)) && (((a8==4) && ( a14 <= -148 && ((input == 6) && ((a9==5) || ((a9==3) || (a9==4)))))) && ((-178 < a21) && (-144 >= a21)) ))){ + a27 = (((((a27 - 414477) - -707009) / 5) * -1)/ 10); + a21 = (((((a21 * 10)/ 8) * 10)/ 9) + -167121); + a9 = 2; + + return -1; + } else if((((((input == 1) && (((a9==6) && ((-178 < a21) && (-144 >= a21)) ) || ((a9==2) && ((-144 < a21) && (5 >= a21)) ))) && ((-148 < a14) && (13 >= a14)) ) && a27 <= -78 ) && (a8==4))){ + a14 = (((((a14 + 419959) * 10)/ -9) + 595794) - 444743); + a21 = ((((a21 + 122234) - 306523) * -1)/ 10); + a9 = 4; + + return -1; + } else if((( ((-78 < a27) && (100 >= a27)) && (((((a9==3) || (a9==4)) && (input == 4)) && ((-178 < a21) && (-144 >= a21)) ) && (a8==8))) && a14 <= -148 )){ + a27 = ((((a27 + -164941) - 100084) + 280240) - 364990); + a21 = (((((a21 / 5) - -471993) * 1) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ((((( ((-144 < a21) && (5 >= a21)) && (a9==6)) || ((a9==2) && 5 < a21 )) && (input == 2)) && (a8==8)) && a27 <= -78 ))){ + if((a9==5)){ + a27 = ((((a27 + 0) % 299908)+ 300090) + 102079); + a21 = (((((a21 % 299997)+ 300002) - 206472) * 1) + 206473); + a8 = 4; + a9 = 3; + + } else{ + a27 = (((((a27 - -481914) * 1) / 5) % 88)+ 12); + a21 = ((((a21 % 74)- 69) - -1) - 1); + a8 = 5; + a9 = 3; + + } return 21; + } else if((((a8==7) && (( a14 <= -148 && ((input == 2) && ((-144 < a21) && (5 >= a21)) )) && ((100 < a27) && (182 >= a27)) )) && (a9==3))){ + a21 = (((a21 - -150633) * 3) * 1); + a8 = 4; + a9 = 4; + + return 21; + } else if(( a14 <= -148 && ( ((-78 < a27) && (100 >= a27)) && ((a8==4) && ((input == 3) && (( ((-178 < a21) && (-144 >= a21)) && (a9==6)) || ((a9==2) && ((-144 < a21) && (5 >= a21)) ))))))){ + a21 = (((a21 + 452144) * 1) * 1); + a8 = 6; + a9 = 6; + + return 23; + } else if(((((a8==4) && ( a21 <= -178 && ((a9==6) && (input == 1)))) && ((-148 < a14) && (13 >= a14)) ) && a27 <= -78 )){ + if((a9==5)){ + a14 = (((a14 + -101790) - 11048) + -188732); + a8 = 6; + a9 = 3; + + } else{ + a14 = ((((a14 + -482775) - 52273) * 10)/ 9); + a21 = ((((a21 - -451543) + 148546) + -570415) + 570413); + a8 = 6; + a9 = 4; + + } return 21; + } else if(( 182 < a27 && ((( ((-178 < a21) && (-144 >= a21)) && (((a9==4) || (a9==5)) && (input == 1))) && a14 <= -148 ) && (a8==5)))){ + a27 = ((((a27 % 40)- -117) + 79343) - 79342); + a21 = ((((a21 * 1)/ 10) - 4) - 8); + a8 = 6; + a9 = 6; + + return 25; + } else if(( 5 < a21 && ( a14 <= -148 && (((a8==4) && ((a9==2) && (input == 5))) && ((-78 < a27) && (100 >= a27)) )))){ + a21 = ((((a21 % 16)+ -171) - -5) + 3); + a8 = 7; + a9 = 4; + + return 25; + } else if((( a14 <= -148 && (((((a9==6) || ((a9==4) || (a9==5))) && (input == 5)) && (a8==7)) && 5 < a21 )) && 182 < a27 )){ + a27 = (((a27 - 600125) - 16) + -10); + a21 = ((((a21 % 299911)+ -300088) + -84755) + -203145); + a8 = 6; + a9 = 2; + + return -1; + } else if(((a8==7) && ( a27 <= -78 && (((((a9==4) || (a9==5)) && (input == 3)) && 5 < a21 ) && a14 <= -148 )))){ + a21 = (((((a21 + -311396) * 1) - -281473) % 299911)+ -300088); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==6) && ((( 182 < a27 && ((input == 3) && a14 <= -148 )) && ((-178 < a21) && (-144 >= a21)) ) && (a9==5)))){ + a27 = (((((a27 - 42424) % 88)- -12) - -182850) + -182851); + a21 = ((((((a21 * -1)/ 10) * 10)/ 9) * 10)/ 9); + a8 = 8; + a9 = 2; + + return 21; + } else if(((( 182 < a27 && ( a14 <= -148 && ((a8==8) && (input == 6)))) && ((-144 < a21) && (5 >= a21)) ) && (a9==4))){ + if((a8==8)){ + a27 = ((((a27 * -5)/ 10) + -274300) * 1); + a21 = ((((a21 - 521847) * 10)/ 9) * 1); + a8 = 5; + a9 = 6; + + } else{ + a27 = ((((a27 + -600104) * 1) + 577693) + -577707); + a21 = ((((a21 - -574023) / 5) * 10)/ 9); + a8 = 5; + a9 = 5; + + } return -1; + } else if(( a27 <= -78 && ( ((-148 < a14) && (13 >= a14)) && ( a21 <= -178 && (((a9==5) && (input == 1)) && (a8==5)))))){ + a14 = (((a14 - 191332) - -164095) + -205627); + a27 = ((((a27 % 299908)+ 300090) - -48393) - -134300); + a21 = (((a21 - -600167) / 5) * 5); + a8 = 7; + a9 = 4; + + return 25; + } else if((((a8==5) && ( a14 <= -148 && ( ((-144 < a21) && (5 >= a21)) && ((input == 6) && (a9==5))))) && ((-78 < a27) && (100 >= a27)) )){ + a21 = ((((a21 - -430272) / 5) * 10)/ 9); + a8 = 8; + a9 = 3; + + return 21; + } else if(( 182 < a27 && ((a8==7) && ( ((-178 < a21) && (-144 >= a21)) && ((((a9==4) || ((a9==2) || (a9==3))) && (input == 2)) && a14 <= -148 ))))){ + a27 = (((a27 - 284880) + -254850) + -60366); + a21 = (((a21 / 5) / 5) + -323597); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((a8==8) && ((input == 1) && (( ((-178 < a21) && (-144 >= a21)) && (a9==6)) || ( ((-144 < a21) && (5 >= a21)) && (a9==2))))) && ((-78 < a27) && (100 >= a27)) ) && a14 <= -148 )){ + a27 = (((a27 / 5) * 5) + -223265); + a21 = ((((a21 + -449415) * 10)/ 9) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a8==4) && (((((a9==2) || (a9==3)) && (input == 6)) && ((100 < a27) && (182 >= a27)) ) && 5 < a21 )) && a14 <= -148 )){ + a27 = ((((a27 / 5) * 10)/ -2) + -454712); + a21 = ((((a21 + -2485) + -131655) % 299911)- 300088); + a9 = 2; + + return -1; + } else if((((a8==6) && ( a27 <= -78 && ( 5 < a21 && ((input == 4) && ((a9==5) || (a9==6)))))) && ((-148 < a14) && (13 >= a14)) )){ + if((a9==3)){ + a14 = (((a14 + -477914) + -84287) + -4964); + a21 = (((((a21 % 299911)- 300088) * 1) - -209330) - 210553); + a8 = 7; + a9 = 2; + + } else{ + a14 = (((a14 - 244733) * 2) * 1); + a21 = ((((a21 % 299911)+ -300088) - 79549) + 48267); + a8 = 5; + a9 = 3; + + } return -1; + } else if(( 182 < a27 && ( a14 <= -148 && ((a8==6) && ((((a9==3) && ((-144 < a21) && (5 >= a21)) ) || (( ((-178 < a21) && (-144 >= a21)) && (a9==6)) || ((a9==2) && ((-144 < a21) && (5 >= a21)) ))) && (input == 2)))))){ + a27 = (((((a27 * -5)/ 10) / 5) * 10)/ 2); + a21 = ((((a21 - 366878) * 10)/ 9) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a9==3) && ((( a14 <= -148 && (input == 3)) && ((-144 < a21) && (5 >= a21)) ) && (a8==5))) && ((100 < a27) && (182 >= a27)) )){ + a27 = (((a27 + -114190) - 454205) + -3303); + a21 = ((((a21 + -428649) - -820172) / 5) + -203489); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ( 182 < a27 && ((a9==3) && (((input == 5) && ((-144 < a21) && (5 >= a21)) ) && (a8==4)))))){ + a27 = (((a27 + -600155) * 1) + -23); + a21 = (((a21 + -125956) / 5) - 572051); + a9 = 2; + + return -1; + } else if((( 182 < a27 && (( ((-144 < a21) && (5 >= a21)) && ((input == 3) && (a8==8))) && (a9==4))) && a14 <= -148 )){ + a27 = (((a27 + -600101) - -346598) + -346629); + a21 = (((a21 * 5) - -296733) * 2); + a8 = 6; + a9 = 5; + + return 25; + } else if(((((a8==7) && (( ((-78 < a27) && (100 >= a27)) && (input == 3)) && (a9==6))) && 5 < a21 ) && a14 <= -148 )){ + a27 = (((((a27 % 40)- -140) / 5) / 5) - -171); + a21 = ((((((a21 / 5) % 16)+ -170) * 5) % 16)- 156); + a8 = 6; + a9 = 5; + + return 25; + } else if((((a8==5) && ((a9==4) && ( a14 <= -148 && ( ((-144 < a21) && (5 >= a21)) && (input == 2))))) && 182 < a27 )){ + a27 = (((a27 - 600092) / 5) - 147263); + a21 = (((a21 * 5) - 301065) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if((((((a8==7) && ((input == 1) && ((a9==3) || (a9==4)))) && a14 <= -148 ) && a21 <= -178 ) && 182 < a27 )){ + a27 = (((((a27 - 600103) / 5) - -149692) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if(( 182 < a27 && (((((input == 6) && (a8==6)) && ((-178 < a21) && (-144 >= a21)) ) && (a9==5)) && a14 <= -148 ))){ + a27 = (((((a27 * 9)/ 10) + 14470) % 88)+ -73); + a21 = (((a21 / 5) - -207132) * 2); + a8 = 8; + a9 = 3; + + return 21; + } else if(((((a8==6) && ((((a9==5) || (a9==6)) && (input == 2)) && ((100 < a27) && (182 >= a27)) )) && 5 < a21 ) && a14 <= -148 )){ + a27 = (((((a27 / 5) + 480482) * 1) * -1)/ 10); + a21 = ((((a21 * 9)/ 10) + -547045) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((100 < a27) && (182 >= a27)) && ( a14 <= -148 && ((a8==8) && (((( a21 <= -178 && (a9==6)) || ((a9==2) && ((-178 < a21) && (-144 >= a21)) )) || ((a9==3) && ((-178 < a21) && (-144 >= a21)) )) && (input == 6)))))){ + a27 = (((a27 - -289134) + -289224) / 5); + a21 = ((((((a21 + 0) * 9)/ 10) / 5) % 16)- 152); + a8 = 5; + a9 = 3; + + return 21; + } else if((((a8==7) && ((((( a21 <= -178 && (a9==5)) || ( a21 <= -178 && (a9==6))) || ( ((-178 < a21) && (-144 >= a21)) && (a9==2))) && (input == 1)) && ((-148 < a14) && (13 >= a14)) )) && a27 <= -78 )){ + a14 = (((a14 - 526354) * 1) * 1); + a21 = (((((a21 + 8095) % 299911)+ -300088) - -104945) + -104945); + a8 = 5; + a9 = 6; + + return 23; + } else if((((a8==6) && (((input == 4) && (( ((-144 < a21) && (5 >= a21)) && (a9==3)) || (((a9==6) && ((-178 < a21) && (-144 >= a21)) ) || ( ((-144 < a21) && (5 >= a21)) && (a9==2))))) && ((100 < a27) && (182 >= a27)) )) && a14 <= -148 )){ + a27 = (((a27 * 5) - 505366) - 60204); + a21 = ((((a21 % 74)- 69) - -1) + -1); + a8 = 7; + a9 = 3; + + return 25; + } else if((((( 5 < a21 && ((input == 6) && ((a9==4) || (a9==5)))) && a14 <= -148 ) && (a8==7)) && a27 <= -78 )){ + if((a9==6)){ + a27 = ((((a27 % 40)- -181) - -518396) + -518403); + a21 = (((((a21 * 9)/ 10) - 45474) % 74)+ -68); + a8 = 8; + a9 = 3; + + } else{ + a21 = ((((a21 - 0) % 74)+ -111) / 5); + a8 = 8; + a9 = 4; + + } return 25; + } else if(( ((-178 < a21) && (-144 >= a21)) && ( a27 <= -78 && ( ((-148 < a14) && (13 >= a14)) && ((a9==2) && ((input == 6) && (a8==4))))))){ + a14 = (((a14 - 184311) * 3) - 40866); + a8 = 6; + a9 = 6; + + return 23; + } else if(( ((100 < a27) && (182 >= a27)) && (((((((a9==3) || (a9==4)) || (a9==5)) && (input == 5)) && (a8==7)) && a21 <= -178 ) && a14 <= -148 ))){ + a27 = (((((a27 * 10)/ -9) / 5) * 10)/ 2); + a21 = ((((a21 - 0) % 74)- -2) / 5); + a8 = 5; + a9 = 5; + + return -1; + } else if(( ((-78 < a27) && (100 >= a27)) && ((((((a9==2) && 5 < a21 ) || (( ((-144 < a21) && (5 >= a21)) && (a9==5)) || ((a9==6) && ((-144 < a21) && (5 >= a21)) ))) && (input == 6)) && a14 <= -148 ) && (a8==6)))){ + a27 = (((a27 * 5) - 251432) * 2); + a21 = ((((a21 - 146882) * 1) % 299911)+ -300088); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((100 < a27) && (182 >= a27)) && (( 5 < a21 && (( a14 <= -148 && (input == 3)) && (a8==8))) && (a9==4)))){ + a27 = (((a27 - -258854) + 87012) - 577750); + a21 = (((((a21 % 299911)- 300088) / 5) * 51)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((((input == 1) && (((a9==4) || (a9==5)) || (a9==6))) && a27 <= -78 ) && (a8==4)) && 5 < a21 ) && ((-148 < a14) && (13 >= a14)) )){ + a21 = ((((a21 * 9)/ 10) + 59910) - 611500); + a9 = 2; + + return -1; + } else if(( 182 < a27 && (((( 5 < a21 && ((a9==6) && (a8==5))) || ( a21 <= -178 && ((a8==6) && (a9==2)))) && (input == 4)) && a14 <= -148 ))){ + a27 = (((((a27 * -5)/ 10) * 1) + 184577) + -426082); + a21 = ((((a21 % 299911)- 300088) - 1) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a27 <= -78 && ((((input == 4) && (((a9==6) && ((-144 < a21) && (5 >= a21)) ) || ((a9==2) && 5 < a21 ))) && (a8==7)) && ((-148 < a14) && (13 >= a14)) ))){ + a14 = ((((a14 - -91256) * -1)/ 10) + -70405); + a21 = (((((a21 - 594476) / 5) * 5) % 74)+ -69); + a8 = 4; + a9 = 3; + + return 21; + } else if((((a9==5) && ((( ((-78 < a27) && (100 >= a27)) && (input == 2)) && ((-178 < a21) && (-144 >= a21)) ) && (a8==6))) && a14 <= -148 )){ + a27 = (((a27 * 5) + -84054) * 5); + a21 = ((((a21 * 10)/ 8) - 582280) + -7870); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-144 < a21) && (5 >= a21)) && (((a8==4) && ( ((-78 < a27) && (100 >= a27)) && (((a9==3) || (a9==4)) && (input == 1)))) && a14 <= -148 ))){ + a27 = (((((a27 - 528618) / 5) - -611145) * -1)/ 10); + a21 = (((a21 + -17377) + -148696) - 105359); + a9 = 2; + + return -1; + } else if((( ((-148 < a14) && (13 >= a14)) && (( a27 <= -78 && ((input == 1) && (a9==3))) && (a8==7))) && a21 <= -178 )){ + a14 = (((a14 - 201260) + -229990) - 101921); + a27 = (((((a27 + 0) % 40)+ 181) - 231521) + 231510); + a21 = (((a21 - -600100) * 1) + 76); + a8 = 5; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ( ((-78 < a27) && (100 >= a27)) && ((a8==8) && ((((a9==3) || (a9==4)) && (input == 6)) && ((-178 < a21) && (-144 >= a21)) ))))){ + a27 = ((((a27 - -78374) * 10)/ -9) - 253250); + a21 = (((a21 + -526203) - -346542) * 3); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a21 <= -178 && (( 182 < a27 && ((a8==8) && (((a9==2) || (a9==3)) && (input == 3)))) && a14 <= -148 ))){ + if( ((-178 < a21) && (-144 >= a21)) ){ + a27 = (((a27 + -600085) * 1) * 1); + a21 = (((a21 - -600052) + -419910) - -419961); + a8 = 4; + a9 = 5; + + } else{ + a27 = ((((((a27 - 329934) % 40)+ 141) * 5) % 40)- -106); + a8 = 5; + a9 = 3; + + } return -1; + } else if((((((input == 4) && ((( ((-144 < a21) && (5 >= a21)) && (a9==5)) || ((a9==6) && ((-144 < a21) && (5 >= a21)) )) || ( 5 < a21 && (a9==2)))) && a14 <= -148 ) && (a8==7)) && ((-78 < a27) && (100 >= a27)) )){ + a27 = (((a27 - 36017) * 5) * 3); + a21 = ((((a21 % 299911)+ -300088) / 5) - 197534); + a8 = 4; + a9 = 2; + + return -1; + } else if(((( ((100 < a27) && (182 >= a27)) && ((a8==8) && (((a9==5) || (a9==6)) && (input == 5)))) && a14 <= -148 ) && 5 < a21 )){ + a27 = ((((a27 + -256142) / 5) * 10)/ 9); + a21 = (((((a21 % 299911)- 300088) * 1) * 10)/ 9); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==6) && (( a14 <= -148 && ((input == 1) && (((a9==2) && ((-178 < a21) && (-144 >= a21)) ) || (((a9==5) && a21 <= -178 ) || ( a21 <= -178 && (a9==6)))))) && ((100 < a27) && (182 >= a27)) ))){ + a27 = (((a27 * 5) * 5) + -464871); + a21 = ((((a21 % 299911)- 178) + -236701) - 54803); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a9==3) && (((( a14 <= -148 && (input == 4)) && (a8==8)) && ((-144 < a21) && (5 >= a21)) ) && ((-78 < a27) && (100 >= a27)) ))){ + a27 = (((a27 - -91588) + 221375) + -517904); + a21 = (((a21 - 565772) - 9492) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-148 < a14) && (13 >= a14)) && (( ((-144 < a21) && (5 >= a21)) && ( a27 <= -78 && ((input == 3) && (a8==6)))) && (a9==3)))){ + a14 = (((a14 - 210337) - 150207) / 5); + a21 = ((((a21 * 5) / 5) % 16)+ -161); + a8 = 5; + a9 = 5; + + return 21; + } else if((( a14 <= -148 && (((a8==5) && ((input == 4) && ((a9==4) || (a9==5)))) && a21 <= -178 )) && ((100 < a27) && (182 >= a27)) )){ + a27 = ((((a27 - 127) - -582552) - -6129) - 588665); + a21 = (((((a21 % 16)+ -155) + -3) - -523652) - 523645); + a8 = 6; + a9 = 5; + + return 21; + } else if(( ((-148 < a14) && (13 >= a14)) && (((a8==5) && ( ((-144 < a21) && (5 >= a21)) && (((a9==4) || (a9==5)) && (input == 4)))) && a27 <= -78 ))){ + if((a8==6)){ + a14 = (((a14 + 487299) * 1) - 756399); + a9 = 6; + + } else{ + a14 = (((a14 + -69803) * 5) + -21428); + a21 = ((((a21 * 5) % 16)- 159) * 1); + a8 = 6; + a9 = 3; + + } return -1; + } else if(( a14 <= -148 && ((( ((-78 < a27) && (100 >= a27)) && ((input == 4) && ((a9==5) || (a9==6)))) && (a8==8)) && 5 < a21 ))){ + a27 = (((a27 * 5) + -28679) * 5); + a21 = ((((a21 % 299911)- 300088) + -39254) + -166596); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((a8==6) && ((input == 1) && ((( ((-144 < a21) && (5 >= a21)) && (a9==5)) || ( ((-144 < a21) && (5 >= a21)) && (a9==6))) || ((a9==2) && 5 < a21 )))) && a14 <= -148 ) && ((-78 < a27) && (100 >= a27)) )){ + a27 = (((a27 + -3196) - 56388) / 5); + a21 = (((((a21 + -587209) % 299911)+ -300088) - -325306) - 325307); + a8 = 4; + a9 = 2; + + return -1; + } else if((( ((-178 < a21) && (-144 >= a21)) && ((a8==7) && ((((a9==2) || (a9==3)) && (input == 4)) && a14 <= -148 ))) && a27 <= -78 )){ + a21 = (((a21 / 5) + 567417) + -567393); + a9 = 3; + + return 25; + } else if(( ((-78 < a27) && (100 >= a27)) && ((a8==5) && ( a14 <= -148 && ((input == 5) && (((a9==2) && ((-144 < a21) && (5 >= a21)) ) || (((a9==5) && ((-178 < a21) && (-144 >= a21)) ) || ((a9==6) && ((-178 < a21) && (-144 >= a21)) )))))))){ + a27 = ((((a27 + -131858) * 10)/ 9) * 4); + a21 = ((((a21 / 5) + 62425) / 5) + -557869); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a8==5) && ( a14 <= -148 && (((input == 1) && ((a9==2) || (a9==3))) && 5 < a21 ))) && ((100 < a27) && (182 >= a27)) )){ + a27 = (((((a27 * 10)/ 19) + 3) - 177307) - -177193); + a21 = (((((a21 + -217892) % 16)+ -159) - -591137) + -591138); + a8 = 4; + a9 = 2; + + return 21; + } else if((((a8==7) && (((((a9==6) && a21 <= -178 ) || ((a9==2) && ((-178 < a21) && (-144 >= a21)) )) && (input == 3)) && a14 <= -148 )) && ((100 < a27) && (182 >= a27)) )){ + a27 = (((a27 + -248494) * 2) + -6842); + a21 = ((((a21 % 299911)- 178) - 118260) * 1); + a8 = 6; + a9 = 6; + + return -1; + } else if((((a8==5) && (((input == 3) && ((( a21 <= -178 && (a9==5)) || ((a9==6) && a21 <= -178 )) || ((a9==2) && ((-178 < a21) && (-144 >= a21)) ))) && a14 <= -148 )) && 182 < a27 )){ + a27 = ((((a27 - 0) / 5) % 88)- -12); + a21 = ((((a21 / 5) - -519017) + -902946) + 801663); + a8 = 8; + a9 = 2; + + return 21; + } else if(( ((-148 < a14) && (13 >= a14)) && ((((input == 5) && (((a9==6) && ((-144 < a21) && (5 >= a21)) ) || ((a9==2) && 5 < a21 ))) && (a8==6)) && a27 <= -78 ))){ + if( 5 < a21 ){ + a14 = (((a14 / 5) * 5) + -17081); + a21 = ((((a21 + -478006) * 1) % 299911)+ -300088); + a8 = 7; + a9 = 3; + + } else{ + a14 = (((a14 * 5) + -534544) - 39506); + a27 = ((((((a27 % 88)- -61) - 32081) * 5) % 88)- -65); + a21 = ((((a21 % 299911)- 300088) / 5) - 244460); + a8 = 7; + a9 = 2; + + } return 23; + } else if((( a27 <= -78 && ( 5 < a21 && (((a9==5) && (input == 6)) && ((-148 < a14) && (13 >= a14)) ))) && (a8==5))){ + a14 = (((a14 - 163680) * 3) - 92065); + a21 = (((((a21 % 74)+ -102) / 5) * 9)/ 10); + a8 = 4; + a9 = 3; + + return -1; + } else if((((( a14 <= -148 && ((input == 4) && ((100 < a27) && (182 >= a27)) )) && (a8==7)) && (a9==3)) && ((-178 < a21) && (-144 >= a21)) )){ + a21 = (((a21 - -244945) + 37975) - -150966); + a8 = 6; + a9 = 2; + + return 23; + } else if((((a9==6) && ( a27 <= -78 && (((a8==4) && (input == 3)) && ((-148 < a14) && (13 >= a14)) ))) && a21 <= -178 )){ + if( a21 <= -178 ){ + a14 = (((a14 / 5) + -523454) - 17733); + a21 = (((a21 - -420320) - -179731) - -2); + a8 = 6; + + } else{ + a14 = ((((a14 + 429603) * -1)/ 10) + -303207); + a27 = ((((a27 % 40)- -179) / 5) - -90); + a21 = (((((a21 - 0) * 9)/ 10) % 16)+ -160); + a8 = 6; + a9 = 3; + + } return -1; + } else if(((((a8==5) && ( ((100 < a27) && (182 >= a27)) && ((input == 6) && ((a9==4) || (a9==5))))) && a21 <= -178 ) && a14 <= -148 )){ + a27 = (((a27 + 185646) + -715924) / 5); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a8==8) && ( ((100 < a27) && (182 >= a27)) && ( ((-178 < a21) && (-144 >= a21)) && (((a9==4) || (a9==5)) && (input == 6))))) && a14 <= -148 )){ + a27 = (((a27 * 5) - 182832) - 335005); + a21 = (((((a21 * 13)/ 10) / 5) / 5) - 285165); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && (( a27 <= -78 && ( ((-144 < a21) && (5 >= a21)) && (((a9==4) || (a9==5)) && (input == 6)))) && (a8==8)))){ + a27 = ((((a27 % 299908)- -300090) / 5) - -343907); + a21 = (((a21 / 5) + -146) + -2); + a8 = 7; + a9 = 4; + + return 21; + } else if(( a14 <= -148 && (( 5 < a21 && ( ((100 < a27) && (182 >= a27)) && (((a9==2) || (a9==3)) && (input == 1)))) && (a8==4)))){ + a27 = (((a27 / 5) * 5) + -111082); + a21 = ((((a21 % 299911)- 300088) - 283134) - 14605); + a9 = 2; + + return -1; + } else if(( ((-148 < a14) && (13 >= a14)) && ( ((-178 < a21) && (-144 >= a21)) && (( a27 <= -78 && ((input == 5) && (a9==6))) && (a8==7))))){ + a21 = (((a21 / 5) / 5) - 11); + a8 = 4; + a9 = 3; + + return 21; + } else if(((a9==6) && (((a8==7) && ( ((-178 < a21) && (-144 >= a21)) && ((input == 2) && a14 <= -148 ))) && ((100 < a27) && (182 >= a27)) ))){ + a27 = ((((a27 * 10)/ 19) - -2) - -2); + a21 = (((a21 * 5) - -348574) + 237846); + a8 = 5; + a9 = 5; + + return 23; + } else if((( a21 <= -178 && ( ((-78 < a27) && (100 >= a27)) && ( a14 <= -148 && (((a9==3) || (a9==4)) && (input == 1))))) && (a8==7))){ + a27 = ((((a27 % 40)- -141) - 1) + 0); + a21 = (((((a21 % 74)+ 1) + 4) + 88329) + -88330); + a8 = 6; + a9 = 5; + + return 21; + } else if(( ((-148 < a14) && (13 >= a14)) && ((((a9==2) && ( a27 <= -78 && (input == 4))) && 5 < a21 ) && (a8==4)))){ + a14 = (((((a14 + -553116) + 569023) * 5) * -1)/ 10); + a27 = ((((a27 % 299908)+ 300090) - -252698) / 5); + a21 = (((((a21 % 16)+ -170) - 2) / 5) - 136); + a8 = 7; + + return -1; + } else if(((((((((a9==5) && ((-144 < a21) && (5 >= a21)) ) || ( ((-144 < a21) && (5 >= a21)) && (a9==6))) || ( 5 < a21 && (a9==2))) && (input == 6)) && (a8==5)) && a14 <= -148 ) && 182 < a27 )){ + a27 = ((((a27 - 600117) + -10) / 5) - 87370); + a21 = (((((a21 % 299911)- 300088) - -415498) * 1) + -415499); + a8 = 4; + a9 = 2; + + return -1; + } else if((((((((a9==6) && ((-178 < a21) && (-144 >= a21)) ) || ((a9==2) && ((-144 < a21) && (5 >= a21)) )) && (input == 6)) && a27 <= -78 ) && ((-148 < a14) && (13 >= a14)) ) && (a8==4))){ + a14 = (((((a14 * 5) * 5) - -347605) * -1)/ 10); + a21 = (((a21 - 420645) * 1) + -164537); + a8 = 5; + a9 = 5; + + return -1; + } else if((((( ((-178 < a21) && (-144 >= a21)) && ((input == 3) && a14 <= -148 )) && ((-78 < a27) && (100 >= a27)) ) && (a8==5)) && (a9==4))){ + a27 = (((a27 - 507535) / 5) / 5); + a21 = ((((a21 - 98583) * 10)/ 9) * 5); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ((a8==4) && (( ((100 < a27) && (182 >= a27)) && ((input == 6) && (a9==2))) && a21 <= -178 )))){ + a27 = (((a27 - 112238) - -112128) + 1); + a21 = ((((a21 * 9)/ 10) - -581477) * 1); + a8 = 8; + a9 = 4; + + return 23; + } else if(((((((input == 1) && (((a9==2) || (a9==3)) || (a9==4))) && a27 <= -78 ) && ((-144 < a21) && (5 >= a21)) ) && (a8==7)) && ((-148 < a14) && (13 >= a14)) )){ + a14 = ((((a14 + 462367) / 5) - -477142) - 1167260); + a21 = ((((a21 + -587720) + 59401) - 67745) + 734540); + a8 = 6; + a9 = 2; + + return 23; + } else if(( ((-148 < a14) && (13 >= a14)) && (((((a8==4) && (input == 5)) && (a9==3)) && a27 <= -78 ) && 5 < a21 ))){ + if( a14 <= -148 ){ + a14 = (((a14 * 5) / 5) - 504958); + a21 = ((((((a21 % 74)- 112) * 10)/ 9) + 168909) + -168877); + a8 = 5; + a9 = 2; + + } else{ + a14 = (((a14 * 5) / 5) + -572458); + a27 = ((((((a27 % 40)+ 154) * 10)/ 9) - 144336) + 144332); + a21 = ((((a21 % 299911)+ -300088) / 5) + -58946); + a9 = 4; + + } return 21; + } else if(((a8==5) && ( ((-178 < a21) && (-144 >= a21)) && ((( 182 < a27 && (input == 1)) && (a9==3)) && a14 <= -148 )))){ + a27 = (((a27 - 600140) - 35) - 8); + a21 = ((((a21 + 304760) * 1) * 10)/ -9); + a8 = 4; + a9 = 2; + + return -1; + } else if((((((input == 4) && ((((a9==6) && ((-144 < a21) && (5 >= a21)) ) || ((a9==2) && 5 < a21 )) || ( 5 < a21 && (a9==3)))) && (a8==5)) && a27 <= -78 ) && ((-148 < a14) && (13 >= a14)) )){ + if((a9==5)){ + a14 = (((a14 - 107493) - -229361) + -391263); + a21 = (((((a21 / 5) + 430837) * 1) % 74)+ -96); + a8 = 4; + a9 = 3; + + } else{ + a14 = ((((a14 - -286677) + -368427) + 567673) + -650816); + a27 = (((((a27 % 40)- -154) * 5) % 40)- -108); + a21 = ((((((a21 * 9)/ 10) % 74)- 68) - 287045) + 287043); + a8 = 4; + a9 = 2; + + } return -1; + } else if(( a14 <= -148 && ((a9==4) && ((a8==4) && (( 182 < a27 && (input == 4)) && 5 < a21 ))))){ + a27 = ((((((a27 % 88)+ 4) + -73) * 5) % 88)- -11); + a8 = 8; + a9 = 5; + + return 25; + } else if(( a14 <= -148 && (((a8==7) && ( a21 <= -178 && ((a9==3) && (input == 3)))) && a27 <= -78 ))){ + + a8 = 4; + a9 = 2; + + return -1; + } else if(((( a14 <= -148 && (((input == 6) && ((a9==5) || (a9==6))) && 182 < a27 )) && ((-178 < a21) && (-144 >= a21)) ) && (a8==7))){ + a27 = ((((a27 - 82626) % 88)- -11) + -1); + a21 = ((((a21 - 25711) * -1)/ 10) * 5); + a8 = 8; + a9 = 4; + + return -1; + } else if((( ((-144 < a21) && (5 >= a21)) && (((((a9==3) || (a9==4)) && (input == 6)) && ((-78 < a27) && (100 >= a27)) ) && a14 <= -148 )) && (a8==4))){ + a27 = ((((a27 + 579002) * 1) + 9739) - 1120860); + a21 = (((a21 - 424955) / 5) - 393166); + a9 = 2; + + return -1; + } else if(( a27 <= -78 && ((a8==7) && ( a14 <= -148 && ( 5 < a21 && (((a9==4) || (a9==5)) && (input == 1))))))){ + a21 = ((((a21 % 299911)+ -300088) / 5) - 161457); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a9==5) && (( ((-144 < a21) && (5 >= a21)) && ((a8==7) && (input == 4))) && a27 <= -78 )) && ((-148 < a14) && (13 >= a14)) )){ + a14 = (((a14 / 5) - 580922) + -12563); + a27 = (((((a27 / 5) * 4) + -80074) % 40)+ 167); + a21 = (((a21 - -567350) - -21945) + 2047); + a8 = 8; + a9 = 3; + + return -1; + } else if((((( ((-144 < a21) && (5 >= a21)) && ((input == 4) && ((a9==4) || (a9==5)))) && ((-148 < a14) && (13 >= a14)) ) && a27 <= -78 ) && (a8==6))){ + a14 = ((((a14 + -66933) - 313712) - -829316) - 969511); + a27 = ((((a27 % 88)+ 53) - -16) + -31); + a21 = (((a21 - -558798) + 5473) / 5); + a9 = 5; + + return -1; + } else if((( a14 <= -148 && ( ((100 < a27) && (182 >= a27)) && ((( a21 <= -178 && (a9==6)) || ( ((-178 < a21) && (-144 >= a21)) && (a9==2))) && (input == 2)))) && (a8==7))){ + a27 = (((((a27 * -1)/ 10) + 267041) - 390323) - -123353); + a21 = ((((a21 - -600029) - 353264) * 1) - -353264); + a8 = 8; + a9 = 4; + + return -1; + } else if((( ((-78 < a27) && (100 >= a27)) && (((((a9==5) || (a9==6)) && (input == 2)) && (a8==8)) && 5 < a21 )) && a14 <= -148 )){ + if( ((-148 < a14) && (13 >= a14)) ){ + a27 = (((((a27 % 40)- -141) + 2) / 5) - -104); + a21 = ((((((a21 % 74)- 106) * 10)/ 9) * 10)/ 9); + a8 = 7; + a9 = 5; + + } else{ + a27 = (((a27 - -536580) + 14739) + -501558); + a8 = 4; + a9 = 4; + + } return 23; + } else if((( ((-144 < a21) && (5 >= a21)) && ((a9==6) && (((input == 4) && (a8==6)) && ((100 < a27) && (182 >= a27)) ))) && a14 <= -148 )){ + + return -1; + } else if((( 5 < a21 && (((a8==4) && ((input == 2) && (((a9==4) || (a9==5)) || (a9==6)))) && a14 <= -148 )) && ((-78 < a27) && (100 >= a27)) )){ + a27 = (((a27 + -462350) - 130261) - 340); + a21 = (((((a21 + 0) * 9)/ 10) - 491227) - 73786); + a9 = 2; + + return -1; + } else if((( 182 < a27 && ( a14 <= -148 && ((input == 6) && ((( a21 <= -178 && (a9==5)) || ( a21 <= -178 && (a9==6))) || ( ((-178 < a21) && (-144 >= a21)) && (a9==2)))))) && (a8==5))){ + a27 = (((((a27 + 0) / 5) * 4) % 88)- -2); + a21 = (((((a21 * 9)/ 10) * 1) * -1)/ 10); + a8 = 8; + a9 = 4; + + return 21; + } else if(((((((( ((-178 < a21) && (-144 >= a21)) && (a9==6)) || ((a9==2) && ((-144 < a21) && (5 >= a21)) )) || ((a9==3) && ((-144 < a21) && (5 >= a21)) )) && (input == 3)) && ((100 < a27) && (182 >= a27)) ) && a14 <= -148 ) && (a8==6))){ + a21 = (((a21 / 5) + -233565) * 2); + a8 = 4; + a9 = 3; + + return -1; + } else if((((( ((-144 < a21) && (5 >= a21)) && (((a9==4) || (a9==5)) && (input == 5))) && a27 <= -78 ) && ((-148 < a14) && (13 >= a14)) ) && (a8==5))){ + if( ((13 < a14) && (182 >= a14)) ){ + a14 = (((a14 + -345896) + -210970) + -2947); + a8 = 6; + a9 = 6; + + } else{ + a14 = (((a14 + -473468) + -44243) * 1); + a8 = 6; + a9 = 3; + + } return -1; + } else if((((((((a9==6) && ((-178 < a21) && (-144 >= a21)) ) || ((a9==2) && ((-144 < a21) && (5 >= a21)) )) && (input == 6)) && (a8==6)) && ((-78 < a27) && (100 >= a27)) ) && a14 <= -148 )){ + a27 = (((a27 - 472368) * 1) + -78877); + a21 = (((a21 + -234097) - 71016) - 208744); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ((a8==5) && (( ((-78 < a27) && (100 >= a27)) && ((input == 5) && ((a9==3) || (a9==4)))) && ((-144 < a21) && (5 >= a21)) )))){ + a27 = ((((a27 - 167597) * 10)/ 9) - 224636); + a21 = (((a21 + -570466) + -9579) + -11574); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a8==6) && ( 182 < a27 && ((input == 5) && ((((a9==5) && a21 <= -178 ) || ( a21 <= -178 && (a9==6))) || ((a9==2) && ((-178 < a21) && (-144 >= a21)) ))))) && a14 <= -148 )){ + a27 = (((a27 + -600168) - 3) * 1); + a21 = ((((a21 % 299911)+ -178) - 75702) + -58584); + a8 = 4; + a9 = 2; + + return -1; + } else if((( ((-148 < a14) && (13 >= a14)) && (((a8==7) && ((input == 4) && a27 <= -78 )) && 5 < a21 )) && (a9==3))){ + if( ((100 < a27) && (182 >= a27)) ){ + a14 = (((a14 - 394838) - 59903) * 1); + a8 = 5; + a9 = 2; + + } else{ + a14 = (((a14 * 5) + -173342) * 3); + a21 = ((((((a21 % 74)- 82) * 9)/ 10) - 30629) + 30587); + a8 = 6; + + } return 21; + } else if(( a27 <= -78 && ( a14 <= -148 && (( a21 <= -178 && ((input == 3) && (((a9==4) || (a9==5)) || (a9==6)))) && (a8==7))))){ + + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==7) && ( a14 <= -148 && ( ((-78 < a27) && (100 >= a27)) && ((((a9==2) && ((-178 < a21) && (-144 >= a21)) ) || (((a9==5) && a21 <= -178 ) || ( a21 <= -178 && (a9==6)))) && (input == 4)))))){ + a27 = (((a27 / 5) / 5) - -104); + a21 = ((((a21 * 9)/ 10) - -121232) + 434303); + a8 = 6; + a9 = 6; + + return 21; + } else if(( 5 < a21 && ((((((a9==4) || (a9==5)) && (input == 2)) && ((-78 < a27) && (100 >= a27)) ) && a14 <= -148 ) && (a8==7)))){ + a27 = (((a27 - 357996) + -42433) * 1); + a21 = ((((a21 * 9)/ 10) / 5) - 208864); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ( 182 < a27 && (((((a9==6) && (a8==5)) && 5 < a21 ) || (((a9==2) && (a8==6)) && a21 <= -178 )) && (input == 5))))){ + a27 = (((((a27 - 0) * 9)/ 10) * -5)/ 10); + a21 = (((((a21 % 299911)- 300088) * 1) + 107506) - 107506); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==6) && (( a21 <= -178 && ( a14 <= -148 && (((a9==2) || (a9==3)) && (input == 6)))) && ((100 < a27) && (182 >= a27)) ))){ + a27 = (((a27 / 5) / 5) + -365545); + a21 = (((((a21 % 16)+ -145) / 5) / 5) - 167); + a8 = 7; + a9 = 3; + + return 25; + } else if(( a14 <= -148 && ((((a8==8) && ((((a9==2) || (a9==3)) || (a9==4)) && (input == 1))) && 5 < a21 ) && 182 < a27 ))){ + a27 = ((((a27 % 88)- 29) / 5) + -58); + a21 = (((((a21 * 9)/ 10) + -282472) % 16)+ -161); + a8 = 5; + a9 = 2; + + return -1; + } else if(((a8==5) && ( a14 <= -148 && ( 5 < a21 && (((input == 6) && ((a9==2) || (a9==3))) && ((100 < a27) && (182 >= a27)) ))))){ + a21 = (((((a21 * 9)/ 10) + -362076) % 16)- 161); + a8 = 4; + a9 = 6; + + return -1; + } else if((( ((-178 < a21) && (-144 >= a21)) && ((a9==2) && (((input == 1) && a14 <= -148 ) && a27 <= -78 ))) && (a8==8))){ + a27 = (((((((a27 * 9)/ 10) % 88)- -13) * 5) % 88)+ 12); + a21 = ((((a21 + -248552) * -1)/ 10) * 5); + a8 = 4; + + return 21; + } else if((((( ((-148 < a14) && (13 >= a14)) && ((input == 4) && ((-144 < a21) && (5 >= a21)) )) && (a8==5)) && (a9==3)) && a27 <= -78 )){ + a21 = ((((((a21 + 174935) % 16)- 173) / 5) * 49)/ 10); + a8 = 7; + a9 = 6; + + return 21; + } else if((( ((100 < a27) && (182 >= a27)) && ((input == 6) && (( a21 <= -178 && ((a8==5) && (a9==2))) || (( 5 < a21 && ((a8==4) && (a9==5))) || (((a9==6) && (a8==4)) && 5 < a21 ))))) && a14 <= -148 )){ + a27 = (((a27 * 5) - 552091) - 32227); + a21 = (((((a21 * 9)/ 10) - 13604) / 5) - 249746); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((100 < a27) && (182 >= a27)) && ((a8==4) && ((( a21 <= -178 && (input == 4)) && (a9==3)) && a14 <= -148 )))){ + a27 = (((a27 * 5) * 5) + -271157); + a21 = (((a21 + 570530) - -29604) - -25); + a8 = 8; + a9 = 5; + + return 25; + } else if(( ((-78 < a27) && (100 >= a27)) && ( a21 <= -178 && ( a14 <= -148 && (((input == 3) && (((a9==2) || (a9==3)) || (a9==4))) && (a8==4)))))){ + a27 = (((a27 + -193396) - -630161) - 511706); + a9 = 2; + + return -1; + } else if(((a8==6) && ( ((-78 < a27) && (100 >= a27)) && ( a14 <= -148 && ((input == 4) && (( 5 < a21 && (a9==2)) || (((a9==5) && ((-144 < a21) && (5 >= a21)) ) || ( ((-144 < a21) && (5 >= a21)) && (a9==6))))))))){ + a27 = (((((a27 * 5) % 40)- -142) / 5) + 118); + a21 = ((((a21 % 74)+ -69) / 5) - -2); + a8 = 5; + a9 = 5; + + return 23; + } else if(((( a14 <= -148 && ( a21 <= -178 && ((input == 6) && ((a9==3) || (a9==4))))) && (a8==6)) && ((-78 < a27) && (100 >= a27)) )){ + a27 = (((a27 + -466420) * 1) - 48106); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a27 <= -78 && ( ((-148 < a14) && (13 >= a14)) && (((( 5 < a21 && ((a8==5) && (a9==6))) || (((a9==2) && (a8==6)) && a21 <= -178 )) || (((a8==6) && (a9==3)) && a21 <= -178 )) && (input == 4))))){ + a14 = (((a14 + -48374) + -57215) * 5); + a27 = (((((a27 * 9)/ 10) + 456321) * 1) + 112001); + a21 = ((((a21 % 74)+ -68) + -1) - -1); + a8 = 5; + a9 = 6; + + return -1; + } else if(( a14 <= -148 && ( ((100 < a27) && (182 >= a27)) && (((( ((-144 < a21) && (5 >= a21)) && (a9==2)) || (((a9==5) && ((-178 < a21) && (-144 >= a21)) ) || ( ((-178 < a21) && (-144 >= a21)) && (a9==6)))) && (input == 2)) && (a8==5))))){ + a27 = (((a27 * 5) + -347497) * 1); + a21 = (((a21 - 409199) - 105846) - 53996); + a8 = 4; + a9 = 2; + + return -1; + } else if((( ((100 < a27) && (182 >= a27)) && ((((input == 2) && ((a9==4) || (a9==5))) && a14 <= -148 ) && (a8==7))) && ((-178 < a21) && (-144 >= a21)) )){ + a27 = (((((a27 * -8)/ 10) - -284497) / 5) + -195304); + a21 = (((a21 + -32947) * 5) * 3); + a8 = 6; + a9 = 5; + + return -1; + } else if((((( ((-144 < a21) && (5 >= a21)) && (((a9==3) || (a9==4)) && (input == 2))) && a14 <= -148 ) && ((-78 < a27) && (100 >= a27)) ) && (a8==6))){ + a27 = (((a27 * 5) - 420711) * 1); + a21 = (((a21 + -232437) * 2) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a21 <= -178 && ((((a8==8) && (((a9==2) || (a9==3)) && (input == 2))) && a14 <= -148 ) && 182 < a27 ))){ + a27 = ((((a27 + 0) + -353399) * 1) + -246690); + a8 = 6; + a9 = 3; + + return 23; + } else if(((a8==7) && ((( ((-148 < a14) && (13 >= a14)) && ((input == 6) && a21 <= -178 )) && (a9==4)) && a27 <= -78 ))){ + if( 182 < a14 ){ + a14 = ((((a14 - -586035) - -4886) - 446160) - 645991); + a21 = ((((a21 + 0) + 0) % 16)- 157); + a8 = 5; + + } else{ + a14 = ((((a14 + 455602) * -1)/ 10) * 5); + a27 = (((((((a27 % 40)+ 164) * 10)/ 9) * 5) % 40)- -139); + a8 = 4; + a9 = 3; + + } return 21; + } else if((((( 5 < a21 && ((( 182 < a27 && a14 <= -148 ) && (a8==8)) && (a9==5))) || (((a9==6) && (( a14 <= -148 && 182 < a27 ) && (a8==8))) && 5 < a21 )) || ( a21 <= -178 && (((a8==4) && ( a27 <= -78 && ((-148 < a14) && (13 >= a14)) )) && (a9==2)))) && (input == 2))){ + a14 = ((((a14 % 299926)+ -300073) - 1) + -1); + a27 = ((((a27 % 299961)+ -300038) + 0) - 2); + a21 = (((((a21 + 0) * 9)/ 10) % 16)+ -161); + a8 = 5; + a9 = 2; + + return -1; + } else if(( a21 <= -178 && ((( a14 <= -148 && ((input == 5) && a27 <= -78 )) && (a8==8)) && (a9==4)))){ + a27 = ((((a27 % 40)- -151) - -368972) - 368949); + a21 = ((((a21 - 0) - -150097) % 16)- 160); + a8 = 7; + a9 = 6; + + return 21; + } else if(((( a21 <= -178 && ((a9==2) && ((a8==4) && ( a27 <= -78 && ((-148 < a14) && (13 >= a14)) )))) || (( 5 < a21 && ((( 182 < a27 && a14 <= -148 ) && (a8==8)) && (a9==5))) || ( 5 < a21 && ((a9==6) && (( 182 < a27 && a14 <= -148 ) && (a8==8)))))) && (input == 6))){ + a14 = (((((a14 * 9)/ 10) + 3980) % 80)+ -67); + a27 = (((((a27 + 0) * 9)/ 10) % 299961)- 300038); + a21 = (((((a21 + 0) / 5) / 5) % 74)- 69); + a8 = 4; + a9 = 4; + + return -1; + } else if((((a8==4) && ((a9==2) && (( a14 <= -148 && (input == 4)) && 5 < a21 ))) && ((-78 < a27) && (100 >= a27)) )){ + a27 = (((a27 / 5) + 196173) * 3); + a21 = ((((a21 - 320377) / 5) % 16)+ -160); + a8 = 5; + a9 = 5; + + return 21; + } else if(((((a8==4) && ( ((-148 < a14) && (13 >= a14)) && (((a9==3) || (a9==4)) && (input == 1)))) && ((-144 < a21) && (5 >= a21)) ) && a27 <= -78 )){ + a14 = ((((a14 + 97256) * -1)/ 10) / 5); + a27 = ((((a27 + 0) / 5) / 5) - -523284); + a21 = (((((a21 % 16)+ -159) / 5) - 519675) - -519556); + a8 = 5; + a9 = 3; + + return -1; + } + return calculate_output5(input); + } + + int calculate_output5(int input) { + + + if((((( a14 <= -148 && ((((a9==4) || (a9==5)) || (a9==6)) && (input == 6))) && (a8==7)) && 5 < a21 ) && 182 < a27 )){ + if( ((-144 < a21) && (5 >= a21)) ){ + a27 = ((((a27 + -291743) * 1) % 88)- -11); + a21 = ((((a21 - 398497) % 299911)- 300088) + -1); + a8 = 4; + a9 = 5; + + } else{ + a27 = ((((a27 + 0) - 0) % 40)- -118); + a21 = (((((a21 % 74)- 135) - -14) - -441618) - 441581); + a8 = 4; + a9 = 2; + + } return -1; + } else if(( a14 <= -148 && ((((input == 4) && ((( ((-178 < a21) && (-144 >= a21)) && (a9==5)) || ((a9==6) && ((-178 < a21) && (-144 >= a21)) )) || ((a9==2) && ((-144 < a21) && (5 >= a21)) ))) && (a8==4)) && 182 < a27 ))){ + a27 = (((((a27 * 9)/ 10) * -5)/ 10) * 2); + a21 = ((((a21 % 74)+ -69) + 359841) + -359841); + a8 = 7; + a9 = 4; + + return 25; + } else if(((a8==7) && ( ((-148 < a14) && (13 >= a14)) && ( a27 <= -78 && ((input == 5) && ((( a21 <= -178 && (a9==5)) || ( a21 <= -178 && (a9==6))) || ((a9==2) && ((-178 < a21) && (-144 >= a21)) ))))))){ + a14 = ((((a14 - 184571) + -135284) * 10)/ 9); + a27 = (((((a27 % 88)- -21) + 445962) - 680992) - -235081); + a21 = (((a21 + 600093) + 9) - -25); + a8 = 5; + a9 = 3; + + return -1; + } else if(( 182 < a27 && (((((((a9==4) || (a9==5)) || (a9==6)) && (input == 2)) && (a8==7)) && 5 < a21 ) && a14 <= -148 ))){ + if( ((-78 < a27) && (100 >= a27)) ){ + a27 = ((((a27 / 5) * 10)/ -4) * 1); + a21 = ((((a21 / 5) % 16)- 167) + -9); + a8 = 4; + a9 = 3; + + } else{ + a21 = (((((a21 % 74)+ -84) + -11) - -441728) - 441746); + a8 = 8; + a9 = 3; + + } return -1; + } else if((( a14 <= -148 && ((((input == 6) && (((a9==4) || (a9==5)) || (a9==6))) && (a8==7)) && ((-78 < a27) && (100 >= a27)) )) && ((-178 < a21) && (-144 >= a21)) )){ + a27 = ((((a27 + -241632) + 384359) * -1)/ 10); + a21 = (((((a21 * 13)/ 10) - 432303) * 10)/ 9); + a8 = 5; + a9 = 5; + + return -1; + } else if(( a14 <= -148 && ((a8==8) && ((((input == 4) && 5 < a21 ) && (a9==6)) && a27 <= -78 )))){ + a21 = ((((a21 * 9)/ 10) + -556805) / 5); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ( ((-144 < a21) && (5 >= a21)) && ( ((-78 < a27) && (100 >= a27)) && ((a8==6) && (((a9==3) || (a9==4)) && (input == 1))))))){ + a27 = ((((((a27 % 40)- -140) * 5) + -67106) % 40)- -141); + a8 = 5; + a9 = 3; + + return 25; + } else if((((a8==5) && ( a14 <= -148 && ((((a9==3) || (a9==4)) && (input == 2)) && ((-178 < a21) && (-144 >= a21)) ))) && ((100 < a27) && (182 >= a27)) )){ + a27 = (((a27 - 48407) + -270227) / 5); + a21 = ((((a21 - 341445) - -688512) / 5) + -152263); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a9==3) && (( ((-148 < a14) && (13 >= a14)) && ((a8==4) && ( a27 <= -78 && (input == 4)))) && 5 < a21 ))){ + if( ((13 < a14) && (182 >= a14)) ){ + a14 = (((a14 - -62813) + -547288) + -59093); + a21 = ((((((a21 * 9)/ 10) * 1) - 504085) % 16)- 161); + } else{ + a14 = ((((a14 - 438932) * 1) * 10)/ 9); + a21 = (((((a21 - 0) % 74)- 91) + -352311) - -352296); + a9 = 5; + + } return 23; + } else if((((a8==7) && (( 182 < a27 && ((input == 2) && (a9==5))) && a14 <= -148 )) && a21 <= -178 )){ + a27 = (((((a27 + -147604) % 40)+ 141) + -40578) + 40577); + a21 = ((((a21 * -1)/ 10) + 122534) - -379839); + a8 = 4; + a9 = 4; + + return 21; + } else if(( ((-144 < a21) && (5 >= a21)) && ( a27 <= -78 && ((a8==6) && (((input == 3) && ((a9==4) || (a9==5))) && ((-148 < a14) && (13 >= a14)) ))))){ + a14 = (((a14 + -75060) - 340104) + -157155); + a21 = ((((((a21 - 220470) % 16)+ -156) * 5) % 16)+ -145); + a8 = 4; + a9 = 6; + + return -1; + } else if(( ((-178 < a21) && (-144 >= a21)) && (( a27 <= -78 && ((((a9==6) || ((a9==4) || (a9==5))) && (input == 2)) && (a8==7))) && a14 <= -148 ))){ + a21 = (((a21 * 5) * 5) + -243705); + a8 = 4; + a9 = 2; + + return -1; + } else if(((( a14 <= -148 && (((input == 2) && (a8==7)) && (a9==3))) && ((-78 < a27) && (100 >= a27)) ) && 5 < a21 )){ + a27 = (((a27 + -129682) + 113676) * 5); + a21 = ((((a21 * 9)/ 10) + -555566) + -8255); + a8 = 4; + a9 = 2; + + return -1; + } else if((( a14 <= -148 && ( 182 < a27 && ((a8==4) && (((a9==3) || (a9==4)) && (input == 6))))) && ((-178 < a21) && (-144 >= a21)) )){ + a27 = (((((a27 - 600094) + -43) / 5) * 29)/ 10); + a21 = ((((a21 * 10)/ 8) * 5) / 5); + a9 = 2; + + return -1; + } else if((( a27 <= -78 && ( ((-178 < a21) && (-144 >= a21)) && ( ((-148 < a14) && (13 >= a14)) && ((a8==4) && (input == 5))))) && (a9==5))){ + a14 = (((a14 * 5) - 504056) - 65277); + a27 = ((((((a27 - -249402) % 40)+ 141) * 5) % 40)+ 122); + a21 = (((a21 / 5) - 66993) + -174504); + a8 = 6; + a9 = 3; + + return -1; + } else if(((a9==5) && (( a21 <= -178 && ( ((100 < a27) && (182 >= a27)) && ((input == 3) && a14 <= -148 ))) && (a8==4)))){ + a27 = (((((a27 * 10)/ -9) * 10)/ 9) - 21434); + a9 = 2; + + return -1; + } else if((( a14 <= -148 && ( 182 < a27 && ((a8==8) && (((a9==2) || (a9==3)) && (input == 1))))) && a21 <= -178 )){ + a14 = ((((((a14 % 80)- 14) * 10)/ 9) * 10)/ 9); + a27 = ((((a27 - 600130) - -148490) * 1) - 148479); + a21 = (((((a21 + 0) / 5) * 4) * -1)/ 10); + a8 = 6; + a9 = 2; + + return 21; + } else if(( a14 <= -148 && ((a9==3) && ((((input == 4) && a21 <= -178 ) && (a8==5)) && 182 < a27 )))){ + a27 = ((((((a27 % 88)- -12) * 9)/ 10) - 573347) + 573289); + a8 = 4; + a9 = 6; + + return -1; + } else if(( ((-178 < a21) && (-144 >= a21)) && ((( a27 <= -78 && ((input == 1) && (((a9==3) || (a9==4)) || (a9==5)))) && (a8==7)) && ((-148 < a14) && (13 >= a14)) ))){ + if( 182 < a27 ){ + a14 = (((a14 - 280341) * 2) * 1); + a27 = (((((a27 % 40)+ 178) * 5) % 40)- -106); + a21 = (((a21 - 276422) / 5) * 5); + a8 = 8; + a9 = 2; + + } else{ + a14 = (((a14 + 74616) / 5) - 366659); + a21 = (((a21 + -20958) - 444332) - 23355); + a8 = 4; + a9 = 2; + + } return -1; + } else if(((a8==6) && ( a27 <= -78 && (( 5 < a21 && ((input == 4) && ((a9==3) || (a9==4)))) && ((-148 < a14) && (13 >= a14)) )))){ + if( ((100 < a27) && (182 >= a27)) ){ + a14 = (((a14 - -140240) + 270841) - 574890); + a27 = ((((a27 % 299908)- -300090) - -124980) * 1); + a8 = 8; + a9 = 6; + + } else{ + a14 = (((a14 + -300057) / 5) - 276500); + a21 = ((((a21 % 299911)+ -300088) * 1) + -297551); + a8 = 4; + a9 = 5; + + } return -1; + } else if((( ((-178 < a21) && (-144 >= a21)) && ((((a8==4) && (input == 6)) && a27 <= -78 ) && (a9==5))) && ((-148 < a14) && (13 >= a14)) )){ + a14 = (((a14 / 5) / 5) - 381009); + a21 = ((((a21 + 67) * 10)/ 9) + 87); + a8 = 5; + + return 21; + } else if(( a14 <= -148 && ( ((100 < a27) && (182 >= a27)) && ((a8==5) && ((input == 6) && (( a21 <= -178 && (a9==6)) || ( ((-178 < a21) && (-144 >= a21)) && (a9==2)))))))){ + a27 = ((((a27 * 5) * -2)/ 10) - 480041); + a21 = ((((a21 + 452978) % 299911)- 300088) + -2); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((((input == 5) && (a9==2)) && ((-144 < a21) && (5 >= a21)) ) && a14 <= -148 ) && ((100 < a27) && (182 >= a27)) ) && (a8==7))){ + a27 = (((a27 + 60646) + -192265) / 5); + a21 = (((a21 - -310294) * 1) * 1); + a8 = 8; + a9 = 6; + + return 21; + } else if(( ((100 < a27) && (182 >= a27)) && (((a8==5) && ((input == 3) && (( a21 <= -178 && (a9==6)) || ((a9==2) && ((-178 < a21) && (-144 >= a21)) )))) && a14 <= -148 ))){ + if((a8==8)){ + a27 = ((((a27 + -200985) / 5) + -287784) - -793089); + a21 = (((a21 + 61891) / 5) - -555828); + a8 = 4; + a9 = 5; + + } else{ + a27 = (((((a27 + 395704) + 101649) - -23624) * -1)/ 10); + a21 = (((((a21 % 299911)+ -178) - -313247) * -1)/ 10); + a8 = 8; + a9 = 4; + + } return -1; + } else if(( a27 <= -78 && ( ((-178 < a21) && (-144 >= a21)) && ((a8==7) && ( ((-148 < a14) && (13 >= a14)) && ((((a9==3) || (a9==4)) || (a9==5)) && (input == 2))))))){ + a14 = (((a14 * 5) + -8623) / 5); + a8 = 4; + a9 = 5; + + return 21; + } else if(( ((-148 < a14) && (13 >= a14)) && (( a27 <= -78 && (((input == 2) && (a9==2)) && (a8==4))) && 5 < a21 ))){ + a14 = (((a14 - 149296) - 263416) * 1); + a21 = ((((a21 % 299911)+ -300088) - 40161) + 35049); + a8 = 5; + a9 = 4; + + return -1; + } else if((((((((a9==2) || (a9==3)) && (input == 6)) && a14 <= -148 ) && ((-178 < a21) && (-144 >= a21)) ) && (a8==7)) && a27 <= -78 )){ + a21 = (((a21 + -570451) * 1) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==4) && ((a9==4) && (( a14 <= -148 && ((input == 6) && ((100 < a27) && (182 >= a27)) )) && 5 < a21 )))){ + if( 5 < a21 ){ + a27 = (((a27 - -65636) * 5) * 1); + a21 = ((((a21 + -61917) % 299911)- 300088) + -1); + a8 = 7; + a9 = 5; + + } else{ + a27 = (((a27 + -239620) / 5) + 47977); + a21 = ((((a21 - 593302) / 5) % 16)- 159); + a8 = 6; + a9 = 3; + + } return -1; + } else if(((( a14 <= -148 && ((input == 2) && ((((a9==5) && ((-178 < a21) && (-144 >= a21)) ) || ( ((-178 < a21) && (-144 >= a21)) && (a9==6))) || ( ((-144 < a21) && (5 >= a21)) && (a9==2))))) && (a8==4)) && 182 < a27 )){ + a27 = ((((a27 + -600132) - -139354) + -91825) + -47511); + a21 = ((((a21 + 555168) * -1)/ 10) - 314537); + a9 = 2; + + return -1; + } else if(((((a8==6) && ((((a9==2) && ((-178 < a21) && (-144 >= a21)) ) || (((a9==5) && a21 <= -178 ) || ((a9==6) && a21 <= -178 ))) && (input == 6))) && 182 < a27 ) && a14 <= -148 )){ + a27 = ((((a27 + -600125) + -50) - -457687) + -457647); + a21 = ((((a21 * 9)/ 10) + -12669) / 5); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((a8==6) && ( ((100 < a27) && (182 >= a27)) && ( ((-144 < a21) && (5 >= a21)) && (input == 1)))) && a14 <= -148 ) && (a9==6))){ + a27 = ((((a27 - -57500) / 5) / 5) + -574178); + a21 = ((((a21 + -155844) + 859) * 10)/ 9); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a8==6) && ( ((-178 < a21) && (-144 >= a21)) && ( 182 < a27 && ((input == 6) && ((a9==3) || (a9==4)))))) && a14 <= -148 )){ + a27 = (((a27 - 0) - 600085) - 22); + a21 = (((a21 - 320678) - 51601) - -137965); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ((( ((100 < a27) && (182 >= a27)) && (((a9==5) || ((a9==3) || (a9==4))) && (input == 2))) && ((-178 < a21) && (-144 >= a21)) ) && (a8==6)))){ + a27 = (((a27 + -187311) * 3) * 1); + a21 = ((((a21 + 228352) * -1)/ 10) - 395261); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((((input == 2) && (((a9==2) || (a9==3)) || (a9==4))) && a21 <= -178 ) && a27 <= -78 ) && (a8==5)) && ((-148 < a14) && (13 >= a14)) )){ + a14 = (((a14 + -18611) * 5) / 5); + a21 = (((((a21 % 16)- 152) * 5) % 16)+ -145); + a8 = 6; + a9 = 3; + + return -1; + } else if((((((((a9==3) || (a9==4)) && (input == 5)) && a27 <= -78 ) && (a8==5)) && ((-148 < a14) && (13 >= a14)) ) && ((-178 < a21) && (-144 >= a21)) )){ + + a8 = 6; + a9 = 5; + + return -1; + } else if((((( ((-148 < a14) && (13 >= a14)) && ((a8==7) && (input == 1))) && (a9==6)) && a27 <= -78 ) && ((-178 < a21) && (-144 >= a21)) )){ + a14 = (((a14 + -252330) - 217375) / 5); + a21 = (((((a21 + -77409) + 530938) - 436466) * -1)/ 10); + a8 = 6; + + return 23; + } else if((((a9==3) && ( a27 <= -78 && (((input == 5) && ((-144 < a21) && (5 >= a21)) ) && ((-148 < a14) && (13 >= a14)) ))) && (a8==6))){ + a14 = ((((a14 / 5) / 5) / 5) - 93183); + a21 = (((a21 - -598671) + 907) + -439821); + a8 = 4; + a9 = 4; + + return -1; + } else if(((a8==8) && (( ((100 < a27) && (182 >= a27)) && ((input == 2) && ((((a9==5) && ((-144 < a21) && (5 >= a21)) ) || ((a9==6) && ((-144 < a21) && (5 >= a21)) )) || ( 5 < a21 && (a9==2))))) && a14 <= -148 ))){ + a27 = (((a27 - -474985) - -23546) + -79300); + a21 = (((((a21 + 0) % 299911)- 300088) - -575437) - 575437); + a8 = 7; + a9 = 6; + + return 21; + } else if(((a8==7) && ( a14 <= -148 && (( 182 < a27 && ((input == 5) && ((a9==3) || (a9==4)))) && a21 <= -178 )))){ + a27 = (((a27 / 5) - 394305) - 155705); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a8==8) && ( a14 <= -148 && ( ((-144 < a21) && (5 >= a21)) && (((a9==6) || ((a9==4) || (a9==5))) && (input == 2))))) && ((-78 < a27) && (100 >= a27)) )){ + a27 = (((a27 + -466567) * 1) / 5); + a21 = (((((a21 - 152531) * 10)/ 9) * 10)/ 9); + a8 = 4; + a9 = 2; + + return -1; + } else if(((( ((100 < a27) && (182 >= a27)) && ((input == 5) && (( ((-144 < a21) && (5 >= a21)) && (a9==3)) || (((a9==6) && ((-178 < a21) && (-144 >= a21)) ) || ( ((-144 < a21) && (5 >= a21)) && (a9==2)))))) && a14 <= -148 ) && (a8==6))){ + a27 = ((((a27 * 10)/ -9) * 5) / 5); + a21 = (((a21 + -236169) * 2) / 5); + a8 = 4; + a9 = 2; + + return -1; + } else if((( a14 <= -148 && ( 5 < a21 && ((a8==4) && ( ((100 < a27) && (182 >= a27)) && (input == 2))))) && (a9==4))){ + a21 = (((((a21 % 299911)+ -300088) * 10)/ 9) + -358); + a9 = 6; + + return -1; + } else if(( a27 <= -78 && ((((a9==4) && ((input == 5) && (a8==5))) && 5 < a21 ) && ((-148 < a14) && (13 >= a14)) ))){ + a14 = (((a14 + -384408) - -7489) - 65430); + a21 = (((((a21 % 299911)- 300088) / 5) + 283129) - 558615); + a8 = 8; + a9 = 6; + + return -1; + } else if(((input == 1) && (( a21 <= -178 && ((( a27 <= -78 && ((-148 < a14) && (13 >= a14)) ) && (a8==4)) && (a9==2))) || ((((a9==5) && ((a8==8) && ( 182 < a27 && a14 <= -148 ))) && 5 < a21 ) || ((((a8==8) && ( a14 <= -148 && 182 < a27 )) && (a9==6)) && 5 < a21 ))))){ + a14 = (((a14 + 0) / 5) - 237151); + a27 = ((((((a27 * 9)/ 10) / 5) + -354377) * -1)/ 10); + a21 = ((((((a21 % 16)+ -161) * 5) - 341492) % 16)+ -152); + a8 = 4; + a9 = 2; + + return 25; + } else if((( 182 < a27 && ((((((a9==6) && ((-178 < a21) && (-144 >= a21)) ) || ((a9==2) && ((-144 < a21) && (5 >= a21)) )) || ( ((-144 < a21) && (5 >= a21)) && (a9==3))) && (input == 1)) && (a8==5))) && a14 <= -148 )){ + a27 = (((a27 + -390734) * 1) + -209418); + a21 = (((a21 + -79168) - 172535) + -249021); + a8 = 4; + a9 = 2; + + return -1; + } else if((( 5 < a21 && ( ((100 < a27) && (182 >= a27)) && (( a14 <= -148 && (input == 5)) && (a9==4)))) && (a8==8))){ + a27 = (((a27 + -555179) - 10598) - 33745); + a21 = ((((a21 - 228489) * 1) % 299911)+ -300088); + a8 = 4; + a9 = 2; + + return -1; + } else if((((( a14 <= -148 && (((a9==4) || (a9==5)) && (input == 2))) && a21 <= -178 ) && (a8==5)) && ((100 < a27) && (182 >= a27)) )){ + a27 = (((((a27 - 12092) * 5) + 106136) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if((( ((-78 < a27) && (100 >= a27)) && ( a14 <= -148 && ((a8==7) && ((input == 5) && ((a9==4) || (a9==5)))))) && 5 < a21 )){ + a27 = ((((((a27 - -291611) % 40)- -141) * 5) % 40)+ 119); + a21 = (((((a21 * 9)/ 10) % 74)- 124) + -16); + a8 = 5; + a9 = 2; + + return 21; + } else if((((a8==5) && (((( ((-178 < a21) && (-144 >= a21)) && (a9==2)) || (( a21 <= -178 && (a9==5)) || ( a21 <= -178 && (a9==6)))) && (input == 5)) && a14 <= -148 )) && 182 < a27 )){ + a27 = (((a27 + -600100) + -66) - 0); + a21 = ((((a21 % 299911)+ -178) * 1) + -79279); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ((((((a9==6) || ((a9==4) || (a9==5))) && (input == 5)) && a27 <= -78 ) && ((-178 < a21) && (-144 >= a21)) ) && (a8==7)))){ + a21 = (((((a21 / 5) * 10)/ 1) * 10)/ 9); + a8 = 4; + a9 = 2; + + return -1; + } else if((((( ((-178 < a21) && (-144 >= a21)) && (((a9==2) || (a9==3)) && (input == 6))) && a14 <= -148 ) && (a8==8)) && 182 < a27 )){ + if( ((-148 < a14) && (13 >= a14)) ){ + a27 = (((a27 - 269119) + -330974) - 28); + a21 = (((a21 - -229108) + -229034) - -54); + a8 = 5; + a9 = 6; + + } else{ + a27 = ((((a27 - 600105) + -30) - -534266) - 534229); + a21 = ((((a21 / 5) - -273656) - 571552) + 822893); + a8 = 4; + a9 = 2; + + } return -1; + } else if((((((input == 3) && (( ((-144 < a21) && (5 >= a21)) && (a9==6)) || ( 5 < a21 && (a9==2)))) && ((-148 < a14) && (13 >= a14)) ) && a27 <= -78 ) && (a8==7))){ + a14 = (((a14 - 212981) - 327890) + -10902); + a21 = ((((((a21 % 299911)- 300088) + -2) * 9)/ 10) - 47405); + a9 = 6; + + return -1; + } else if(((( a21 <= -178 && (((input == 1) && (a9==4)) && a14 <= -148 )) && (a8==4)) && ((100 < a27) && (182 >= a27)) )){ + a27 = (((a27 - 179774) / 5) + -216469); + a9 = 2; + + return -1; + } else if(((( ((-178 < a21) && (-144 >= a21)) && ( a14 <= -148 && ((a8==8) && (input == 3)))) && (a9==5)) && ((-78 < a27) && (100 >= a27)) )){ + + a8 = 5; + a9 = 4; + + return 25; + } else if((((a8==6) && ((((((a9==6) && ((-178 < a21) && (-144 >= a21)) ) || ((a9==2) && ((-144 < a21) && (5 >= a21)) )) || ((a9==3) && ((-144 < a21) && (5 >= a21)) )) && (input == 4)) && a14 <= -148 )) && 182 < a27 )){ + a27 = (((a27 + -600084) + 165903) + -165975); + a21 = (((a21 - 41856) / 5) / 5); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ((((((a9==2) || (a9==3)) && (input == 2)) && (a8==5)) && ((100 < a27) && (182 >= a27)) ) && 5 < a21 ))){ + a27 = (((((a27 * 10)/ 19) * 5) % 88)+ 1); + a21 = (((((a21 % 16)- 171) + 8) - -526447) + -526458); + a8 = 4; + a9 = 2; + + return 21; + } else if((( a14 <= -148 && ((((input == 1) && ((a9==6) || ((a9==4) || (a9==5)))) && (a8==5)) && ((100 < a27) && (182 >= a27)) )) && 5 < a21 )){ + a21 = ((((a21 % 16)- 166) + -4) * 1); + a9 = 5; + + return -1; + } else if((( a21 <= -178 && (((a8==8) && (((a9==4) || (a9==5)) && (input == 6))) && a14 <= -148 )) && ((-78 < a27) && (100 >= a27)) )){ + if( ((-148 < a14) && (13 >= a14)) ){ + a27 = ((((a27 - 188111) - 200966) % 40)- -171); + a21 = (((((a21 - -390102) + 34582) / 5) % 74)+ -68); + a8 = 7; + a9 = 4; + + } else{ + a27 = (((((a27 * 5) - -33906) / 5) % 40)+ 129); + a21 = (((a21 / 5) * 4) - -517685); + a8 = 4; + a9 = 2; + + } return 21; + } else if(( a14 <= -148 && ((((a9==6) && ( ((-178 < a21) && (-144 >= a21)) && (input == 4))) && (a8==7)) && ((100 < a27) && (182 >= a27)) ))){ + a27 = ((((a27 / 5) * 10)/ -2) + -415706); + a21 = (((((a21 * 13)/ 10) * 5) + 556881) + -888760); + a8 = 4; + a9 = 2; + + return -1; + } else if((((( a14 <= -148 && ( ((-178 < a21) && (-144 >= a21)) && (input == 2))) && a27 <= -78 ) && (a9==2)) && (a8==8))){ + a27 = ((((a27 % 88)- -97) + -580853) - -580809); + a21 = ((((a21 * -1)/ 10) * 5) - -586763); + a8 = 4; + a9 = 3; + + return 21; + } else if(((a8==5) && ( 182 < a27 && ( a14 <= -148 && ( ((-178 < a21) && (-144 >= a21)) && (((a9==4) || (a9==5)) && (input == 6))))))){ + a27 = (((a27 + -600086) + -39) * 1); + a21 = (((a21 * 5) + 24218) + -62780); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ((((( 5 < a21 && (a9==2)) || (( ((-144 < a21) && (5 >= a21)) && (a9==5)) || ((a9==6) && ((-144 < a21) && (5 >= a21)) ))) && (input == 1)) && ((100 < a27) && (182 >= a27)) ) && (a8==8)))){ + a27 = (((a27 / 5) / 5) - 561412); + a21 = ((((a21 % 299911)+ -300088) * 1) - 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((a9==2) && ( ((-178 < a21) && (-144 >= a21)) && ( a14 <= -148 && (input == 3)))) && ((-78 < a27) && (100 >= a27)) ) && (a8==4))){ + a21 = ((((a21 + 483749) - 524661) * 5) - -631792); + a8 = 6; + + return 25; + } else if(( a27 <= -78 && ((( ((-148 < a14) && (13 >= a14)) && (((a9==5) || (a9==6)) && (input == 6))) && a21 <= -178 ) && (a8==6)))){ + a14 = (((a14 + -216373) * 2) * 1); + a27 = ((((a27 % 40)+ 144) + -590007) + 590021); + a8 = 7; + a9 = 3; + + return 25; + } else if(((((( a21 <= -178 && ((a9==2) && (a8==6))) || (( 5 < a21 && ((a9==5) && (a8==5))) || ( 5 < a21 && ((a8==5) && (a9==6))))) && (input == 3)) && a14 <= -148 ) && ((-78 < a27) && (100 >= a27)) )){ + a27 = (((a27 + -109345) * 5) / 5); + a21 = (((a21 / 5) + -220138) - 147933); + a8 = 4; + a9 = 2; + + return -1; + } else if((( ((-78 < a27) && (100 >= a27)) && (((input == 5) && ((( a21 <= -178 && (a9==5)) || ( a21 <= -178 && (a9==6))) || ((a9==2) && ((-178 < a21) && (-144 >= a21)) ))) && a14 <= -148 )) && (a8==6))){ + a27 = (((a27 - 67242) - 413751) * 1); + a21 = ((((((a21 % 299911)+ -178) - -444367) * 1) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if((((((((a9==6) || ((a9==4) || (a9==5))) && (input == 1)) && 5 < a21 ) && a14 <= -148 ) && 182 < a27 ) && (a8==7))){ + a27 = ((((a27 % 88)+ -57) / 5) / 5); + a21 = ((((((a21 % 74)- 88) * 10)/ 9) + -104167) + 104142); + a8 = 5; + a9 = 2; + + return 21; + } else if(( ((-148 < a14) && (13 >= a14)) && ((a8==6) && ( 5 < a21 && ((((a9==5) || (a9==6)) && (input == 2)) && a27 <= -78 ))))){ + a14 = (((a14 + -73953) * 5) - 86284); + a27 = ((((a27 % 88)- -95) / 5) + -68); + a21 = ((((((a21 * 9)/ 10) + -130848) + -249422) % 16)+ -160); + a8 = 7; + a9 = 4; + + return -1; + } else if(((a8==6) && (((((input == 4) && ((a9==2) || (a9==3))) && ((100 < a27) && (182 >= a27)) ) && a14 <= -148 ) && a21 <= -178 ))){ + a27 = (((a27 - -494881) + -428552) - 66495); + a21 = (((a21 + 600090) - -4) * 1); + a8 = 8; + a9 = 6; + + return 25; + } else if((( a14 <= -148 && (((( 5 < a21 && ((a9==6) && (a8==7))) || (((a9==2) && (a8==8)) && a21 <= -178 )) || ( a21 <= -178 && ((a8==8) && (a9==3)))) && (input == 6))) && a27 <= -78 )){ + a21 = (((((a21 * 9)/ 10) % 299997)+ 300002) + 0); + a8 = 8; + a9 = 5; + + return 21; + } else if(((( a14 <= -148 && ( 5 < a21 && ((a9==5) && (input == 2)))) && (a8==8)) && a27 <= -78 )){ + a21 = (((a21 / 5) - 180026) + -156657); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-78 < a27) && (100 >= a27)) && ((a8==4) && (( a14 <= -148 && ((a9==2) && (input == 4))) && ((-178 < a21) && (-144 >= a21)) )))){ + a27 = (((a27 + -166610) - 362387) + -31082); + a21 = (((a21 - 547783) - 1616) + -29745); + return -1; + } else if(( a14 <= -148 && ((a8==8) && (( 182 < a27 && ((input == 2) && ((a9==2) || (a9==3)))) && ((-178 < a21) && (-144 >= a21)) )))){ + if( ((100 < a27) && (182 >= a27)) ){ + a27 = ((((a27 - 600129) - 52) / 5) - 376795); + a8 = 4; + a9 = 6; + + } else{ + a27 = (((a27 + -600180) * 1) * 1); + a21 = (((a21 - -541968) + 9851) + -551718); + a8 = 5; + a9 = 6; + + } return 25; + } else if(((a8==6) && ( ((100 < a27) && (182 >= a27)) && (( 5 < a21 && ((input == 6) && ((a9==5) || (a9==6)))) && a14 <= -148 )))){ + a27 = (((((a27 * 5) * -2)/ 10) / 5) - 149208); + a21 = ((((a21 % 299911)- 300088) - -597537) + -717492); + a8 = 4; + a9 = 2; + + return -1; + } else if(( 5 < a21 && (( a27 <= -78 && ((a8==8) && ((input == 5) && (a9==5)))) && a14 <= -148 ))){ + a21 = (((((a21 - 586586) % 299911)- 300088) + 130759) + -130760); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-78 < a27) && (100 >= a27)) && ((a8==7) && ((a9==2) && ( a14 <= -148 && ((input == 6) && a21 <= -178 )))))){ + a27 = ((((a27 % 40)- -140) - 0) + 0); + a21 = (((((a21 - -476208) % 16)+ -159) - -177554) + -177556); + a8 = 6; + + return 21; + } else if((( ((-148 < a14) && (13 >= a14)) && ( a27 <= -78 && (((input == 2) && ((a9==5) || (a9==6))) && a21 <= -178 ))) && (a8==6))){ + a14 = (((a14 + -259102) * 2) * 1); + a8 = 5; + a9 = 2; + + return -1; + } else if(( ((-78 < a27) && (100 >= a27)) && ((((input == 2) && (( ((-178 < a21) && (-144 >= a21)) && (a9==6)) || ((a9==2) && ((-144 < a21) && (5 >= a21)) ))) && (a8==8)) && a14 <= -148 ))){ + a27 = ((((a27 % 40)+ 142) / 5) - -144); + a21 = (((a21 - 34772) + -178431) - 136620); + a8 = 4; + a9 = 3; + + return 21; + } else if(( a14 <= -148 && ((((((a9==2) && ((-178 < a21) && (-144 >= a21)) ) || (((a9==5) && a21 <= -178 ) || ((a9==6) && a21 <= -178 ))) && (input == 1)) && (a8==6)) && 182 < a27 ))){ + a27 = (((a27 + -600100) - -265201) + -265187); + a21 = (((a21 / 5) / 5) - 571813); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-78 < a27) && (100 >= a27)) && ((a8==5) && (( a21 <= -178 && ((input == 3) && ((a9==6) || ((a9==4) || (a9==5))))) && a14 <= -148 )))){ + a27 = (((a27 * 5) * 5) + -243486); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a8==5) && ( 182 < a27 && ((input == 2) && (((a9==3) && ((-144 < a21) && (5 >= a21)) ) || (( ((-178 < a21) && (-144 >= a21)) && (a9==6)) || ( ((-144 < a21) && (5 >= a21)) && (a9==2))))))) && a14 <= -148 )){ + a27 = (((a27 / 5) + -311372) * 1); + a21 = (((a21 * 5) + -158206) + -336495); + a8 = 4; + a9 = 2; + + return -1; + } else if((( 182 < a27 && (( a21 <= -178 && ((input == 6) && (((a9==2) || (a9==3)) || (a9==4)))) && a14 <= -148 )) && (a8==4))){ + a27 = ((((a27 - 600132) - 5) - -497322) + -497328); + a9 = 2; + + return -1; + } else if(( a21 <= -178 && (( a14 <= -148 && ( ((-78 < a27) && (100 >= a27)) && (((a9==5) || (a9==6)) && (input == 6)))) && (a8==4)))){ + a27 = (((a27 * 5) - -63256) + -171101); + a9 = 2; + + return -1; + } else if(((((( ((-148 < a14) && (13 >= a14)) && (input == 3)) && (a9==2)) && (a8==4)) && a27 <= -78 ) && ((-178 < a21) && (-144 >= a21)) )){ + if( ((-178 < a21) && (-144 >= a21)) ){ + a14 = (((a14 + -592192) - 2854) * 1); + a21 = (((((a21 * 1)/ 10) * 9)/ 10) * 5); + a8 = 6; + a9 = 6; + + } else{ + a14 = (((a14 + 201896) + -676471) + -52594); + a9 = 3; + + } return -1; + } else if((((a9==3) && (( 182 < a27 && ((input == 2) && ((-178 < a21) && (-144 >= a21)) )) && a14 <= -148 )) && (a8==5))){ + a21 = (((a21 - 251142) - 344617) / 5); + a8 = 7; + a9 = 6; + + return 21; + } else if(( a14 <= -148 && (((a8==4) && ( ((-78 < a27) && (100 >= a27)) && ((a9==2) && (input == 6)))) && 5 < a21 ))){ + a27 = (((a27 - 426685) / 5) - 451675); + a21 = ((((a21 - 0) / 5) * 4) + -542109); + return -1; + } else if((((a9==2) && (( a27 <= -78 && ( a14 <= -148 && (input == 4))) && ((-178 < a21) && (-144 >= a21)) )) && (a8==8))){ + a21 = (((a21 + -313639) * 1) * 1); + a8 = 4; + + return -1; + } else if((((a9==5) && ( a21 <= -178 && (((a8==5) && (input == 6)) && ((-148 < a14) && (13 >= a14)) ))) && a27 <= -78 )){ + a14 = (((a14 - -546948) - 706592) + -254133); + a27 = ((((a27 % 40)+ 140) + -246682) + 246696); + a21 = (((a21 + 600114) + 21) * 1); + a8 = 4; + a9 = 4; + + return -1; + } else if(( 182 < a27 && ( a14 <= -148 && ( a21 <= -178 && (((input == 1) && ((a9==4) || ((a9==2) || (a9==3)))) && (a8==4)))))){ + a27 = (((((((a27 * 9)/ 10) % 40)- -109) * 5) % 40)+ 127); + a21 = ((((((a21 % 74)- 10) * 10)/ 9) * 10)/ 9); + a8 = 5; + a9 = 3; + + return 25; + } else if(((((a8==7) && ( a21 <= -178 && (((a9==3) || (a9==4)) && (input == 6)))) && 182 < a27 ) && a14 <= -148 )){ + a27 = (((a27 / 5) + -332165) + -5219); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==7) && (( a14 <= -148 && ( ((-78 < a27) && (100 >= a27)) && ((input == 4) && ((a9==6) || ((a9==4) || (a9==5)))))) && ((-178 < a21) && (-144 >= a21)) ))){ + a27 = (((((a27 * 5) + 147174) + 283507) * -1)/ 10); + a21 = (((a21 - -181935) * 3) - -19836); + a8 = 4; + a9 = 6; + + return -1; + } else if((( a21 <= -178 && ( a14 <= -148 && ((a8==6) && ((input == 5) && ((a9==3) || (a9==4)))))) && 182 < a27 )){ + a27 = (((a27 / 5) + -331275) + -2156); + a8 = 4; + a9 = 2; + + return -1; + } else if((((((a8==4) && ((input == 3) && 5 < a21 )) && ((-148 < a14) && (13 >= a14)) ) && a27 <= -78 ) && (a9==2))){ + if( ((13 < a14) && (182 >= a14)) ){ + a14 = (((a14 - 389174) + -74122) * 1); + a27 = ((((a27 % 40)+ 178) / 5) + 129); + a21 = ((((a21 / 5) + 54183) % 16)+ -176); + a8 = 5; + a9 = 3; + + } else{ + a14 = ((((a14 / 5) / 5) / 5) + -124091); + a21 = (((((a21 * 9)/ 10) - 207344) - 224824) - 127981); + a8 = 5; + + } return -1; + } else if(( ((-78 < a27) && (100 >= a27)) && (((a8==7) && ((a9==6) && ( 5 < a21 && (input == 5)))) && a14 <= -148 ))){ + a27 = (((a27 / 5) + -562305) + -2252); + a21 = (((((a21 % 299911)+ -300088) * 10)/ 9) - 77523); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-78 < a27) && (100 >= a27)) && (((input == 2) && ((((a8==6) && (a9==2)) && a21 <= -178 ) || ((((a9==5) && (a8==5)) && 5 < a21 ) || ( 5 < a21 && ((a9==6) && (a8==5)))))) && a14 <= -148 ))){ + a27 = (((a27 - 334068) - -667555) + -334199); + a21 = ((((a21 % 299911)+ -300088) - 0) + -1); + a8 = 4; + a9 = 2; + + return -1; + } else if((((( ((-178 < a21) && (-144 >= a21)) && ((input == 1) && (a9==2))) && a14 <= -148 ) && (a8==5)) && ((-78 < a27) && (100 >= a27)) )){ + a27 = (((((a27 - -123907) * -1)/ 10) * 10)/ 9); + a21 = ((((a21 * 5) - 394866) * 10)/ 9); + a8 = 4; + + return -1; + } else if((((a9==3) && ((( a14 <= -148 && (input == 6)) && (a8==7)) && ((-178 < a21) && (-144 >= a21)) )) && ((-78 < a27) && (100 >= a27)) )){ + a27 = (((((a27 + 528580) / 5) * 5) * -1)/ 10); + a21 = (((a21 - 586658) * 1) - 994); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((((input == 3) && ((a9==3) || (a9==4))) && ((100 < a27) && (182 >= a27)) ) && ((-178 < a21) && (-144 >= a21)) ) && a14 <= -148 ) && (a8==5))){ + a27 = ((((a27 - 360665) * 1) * 10)/ 9); + a21 = (((a21 - 185438) / 5) * 5); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ((( 5 < a21 && ((input == 4) && ((a9==2) || (a9==3)))) && (a8==5)) && ((100 < a27) && (182 >= a27)) ))){ + a27 = (((a27 - 59229) / 5) * 5); + a21 = ((((a21 % 299911)+ -300088) - 200488) + -27182); + a8 = 4; + a9 = 2; + + return -1; + } else if((( a14 <= -148 && ((a9==5) && ( 5 < a21 && ((input == 3) && a27 <= -78 )))) && (a8==8))){ + a21 = ((((a21 * 9)/ 10) - 576094) / 5); + a8 = 4; + a9 = 2; + + return -1; + } else if(((( ((-78 < a27) && (100 >= a27)) && ((input == 4) && (((a9==6) && ((-178 < a21) && (-144 >= a21)) ) || ((a9==2) && ((-144 < a21) && (5 >= a21)) )))) && a14 <= -148 ) && (a8==6))){ + a27 = (((((a27 % 40)+ 142) - -1) / 5) + 142); + a21 = (((((a21 - -567999) + -882955) - -508891) * -1)/ 10); + a8 = 5; + a9 = 6; + + return 25; + } else if(((( ((100 < a27) && (182 >= a27)) && ((( a21 <= -178 && (a9==6)) || ((a9==2) && ((-178 < a21) && (-144 >= a21)) )) && (input == 2))) && (a8==4)) && a14 <= -148 )){ + a27 = (((a27 + 489329) - 581050) + -413239); + a21 = ((((a21 % 299911)- 178) - -284488) + -574341); + a9 = 2; + + return -1; + } else if(((((a9==4) && (((input == 1) && a21 <= -178 ) && ((-148 < a14) && (13 >= a14)) )) && a27 <= -78 ) && (a8==6))){ + a14 = (((a14 - 591875) * 1) - 6276); + a27 = ((((a27 % 299908)- -300090) - -195530) + 77995); + a21 = (((((a21 * 9)/ 10) % 16)+ -156) - 6); + a8 = 8; + a9 = 6; + + return -1; + } else if(( ((100 < a27) && (182 >= a27)) && (((((input == 1) && ((a9==4) || (a9==5))) && a21 <= -178 ) && (a8==5)) && a14 <= -148 ))){ + a27 = (((a27 * 5) * 5) - 405705); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==8) && (( ((-78 < a27) && (100 >= a27)) && ( ((-178 < a21) && (-144 >= a21)) && ( a14 <= -148 && (input == 2)))) && (a9==5)))){ + a27 = (((a27 / 5) / 5) + -302211); + a21 = (((a21 * 5) * 5) * 5); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==6) && (((((input == 4) && ((a9==3) || (a9==4))) && a21 <= -178 ) && ((-78 < a27) && (100 >= a27)) ) && a14 <= -148 ))){ + a27 = (((a27 + -340849) * 1) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(((( a14 <= -148 && (((input == 6) && ((a9==5) || ((a9==3) || (a9==4)))) && (a8==4))) && ((100 < a27) && (182 >= a27)) ) && ((-178 < a21) && (-144 >= a21)) )){ + a27 = (((a27 + -81801) - 438715) - 52455); + a21 = (((((((a21 * 13)/ 10) * 10)/ 9) / 5) * 44)/ 10); + a9 = 2; + + return -1; + } else if(((((( a14 <= -148 && (input == 6)) && a21 <= -178 ) && ((-78 < a27) && (100 >= a27)) ) && (a9==2)) && (a8==8))){ + a27 = ((((a27 % 40)+ 141) - 1) + 0); + a21 = ((((a21 - 0) - -600178) - 108602) + 108437); + a8 = 6; + a9 = 6; + + return 23; + } else if((( a14 <= -148 && ( 182 < a27 && (((input == 4) && (((a9==4) || (a9==5)) || (a9==6))) && a21 <= -178 ))) && (a8==8))){ + a27 = ((((a27 % 40)- -130) - -8) - 2); + a21 = ((((a21 / 5) * 10)/ -9) * 4); + a8 = 7; + a9 = 5; + + return 25; + } else if((((a8==5) && ((((input == 1) && ((a9==3) || (a9==4))) && ((-148 < a14) && (13 >= a14)) ) && a27 <= -78 )) && ((-178 < a21) && (-144 >= a21)) )){ + if( ((-78 < a27) && (100 >= a27)) ){ + a14 = (((a14 - 98139) * 5) + -106311); + a21 = ((((a21 - -48) * 9)/ 10) + -24); + a9 = 4; + + } else{ + a14 = ((((a14 / 5) * 5) * 5) + -417270); + a21 = (((a21 - 544250) + -45556) + -317); + a8 = 4; + a9 = 5; + + } return -1; + } else if(( a27 <= -78 && ( ((-148 < a14) && (13 >= a14)) && ((((((a8==5) && (a9==6)) && 5 < a21 ) || (((a8==6) && (a9==2)) && a21 <= -178 )) || ( a21 <= -178 && ((a8==6) && (a9==3)))) && (input == 5))))){ + if((a9==5)){ + a14 = (((a14 + -114067) * 5) / 5); + a21 = (((((a21 % 299911)+ -300088) * 1) + 594360) - 594360); + a8 = 7; + a9 = 2; + + } else{ + a14 = (((a14 * 5) + -291031) / 5); + a27 = ((((a27 + 0) - -216147) % 299908)+ 300090); + a21 = ((((a21 % 299911)- 300088) - 1) * 1); + a8 = 6; + a9 = 4; + + } return 25; + } else if(((((((input == 6) && 5 < a21 ) && (a9==4)) && 182 < a27 ) && (a8==6)) && a14 <= -148 )){ + a27 = (((a27 - 600133) + -20) * 1); + a21 = ((((a21 % 299911)- 300088) * 1) + -146414); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-148 < a14) && (13 >= a14)) && (((a8==5) && ((input == 5) && ((( ((-144 < a21) && (5 >= a21)) && (a9==6)) || ( 5 < a21 && (a9==2))) || ((a9==3) && 5 < a21 )))) && a27 <= -78 ))){ + a14 = (((a14 + -238742) - 89559) + -94510); + a21 = ((((a21 * 9)/ 10) / 5) - -377487); + a9 = 6; + + return -1; + } else if((((a8==4) && (((( ((-178 < a21) && (-144 >= a21)) && (a9==6)) || ( ((-144 < a21) && (5 >= a21)) && (a9==2))) && (input == 2)) && a14 <= -148 )) && ((-78 < a27) && (100 >= a27)) )){ + a27 = ((((a27 + 460177) + -976302) * 10)/ 9); + a21 = (((a21 + -445056) + -3949) * 1); + a9 = 2; + + return -1; + } else if(( ((-144 < a21) && (5 >= a21)) && ((( a27 <= -78 && ((a8==7) && (input == 5))) && ((-148 < a14) && (13 >= a14)) ) && (a9==5)))){ + if( ((-148 < a14) && (13 >= a14)) ){ + a14 = (((a14 * 5) - 503367) + -9212); + a8 = 6; + a9 = 4; + + } else{ + a14 = (((a14 - 83907) + -349411) * 1); + a21 = (((((a21 - -22866) + -206603) - -223872) * -1)/ 10); + a8 = 4; + a9 = 4; + + } return 25; + } else if(( ((-78 < a27) && (100 >= a27)) && ((((((a9==6) || ((a9==4) || (a9==5))) && (input == 5)) && ((-144 < a21) && (5 >= a21)) ) && (a8==8)) && a14 <= -148 ))){ + a27 = (((a27 - -379705) - 751360) * 1); + a21 = (((a21 + -514821) + -38850) + -24638); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==7) && (( 182 < a27 && ( ((-178 < a21) && (-144 >= a21)) && ((input == 1) && ((a9==5) || (a9==6))))) && a14 <= -148 ))){ + a27 = ((((a27 - 600083) - -33788) + 182962) - 216830); + a21 = ((((a21 * 13)/ 10) + -393743) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((a8==8) && (( ((100 < a27) && (182 >= a27)) && (input == 2)) && (a9==4))) && a14 <= -148 ) && ((-144 < a21) && (5 >= a21)) )){ + a27 = (((a27 + 364621) - 935511) + 331174); + a21 = (((((a21 % 16)+ -161) * 5) % 16)+ -149); + a9 = 2; + + return 21; + } else if(((a9==4) && ((a8==5) && ( ((-144 < a21) && (5 >= a21)) && ( a14 <= -148 && ( 182 < a27 && (input == 5))))))){ + a27 = ((((((a27 / 5) * 10)/ -4) / 5) * 44)/ 10); + a21 = (((a21 * 5) - 191934) + 63338); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-148 < a14) && (13 >= a14)) && (((input == 6) && (((((a8==5) && (a9==6)) && 5 < a21 ) || ( a21 <= -178 && ((a8==6) && (a9==2)))) || (((a8==6) && (a9==3)) && a21 <= -178 ))) && a27 <= -78 ))){ + if((a8==8)){ + a14 = (((a14 - 422284) * 1) * 1); + a21 = ((((a21 * 9)/ 10) / 5) + 121636); + a8 = 7; + a9 = 3; + + } else{ + a14 = ((((a14 * 5) - 149595) + 377891) - 394386); + a27 = (((((a27 + 0) % 88)+ 40) + -59716) - -59698); + a21 = ((((a21 % 16)- 159) + 322371) + -322373); + a8 = 6; + a9 = 2; + + } return 23; + } else if((( ((-78 < a27) && (100 >= a27)) && ((a8==8) && ((((a9==5) || (a9==6)) && (input == 5)) && 5 < a21 ))) && a14 <= -148 )){ + a27 = ((((a27 / 5) - 43596) + 46397) - 540779); + a21 = ((((a21 % 299911)+ -300088) + -207882) - 74329); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-144 < a21) && (5 >= a21)) && (((((input == 1) && (a9==3)) && (a8==8)) && ((100 < a27) && (182 >= a27)) ) && a14 <= -148 ))){ + a27 = ((((a27 * -8)/ 10) - 323408) + -264222); + a21 = ((((a21 - 300984) / 5) + 334258) + -450516); + a8 = 4; + a9 = 2; + + return -1; + } else if((( ((-144 < a21) && (5 >= a21)) && (((a8==4) && ((input == 5) && ((a9==3) || (a9==4)))) && a27 <= -78 )) && ((-148 < a14) && (13 >= a14)) )){ + if( a14 <= -148 ){ + a14 = (((((a14 - 353848) + 689353) + 25398) * -1)/ 10); + a27 = (((((a27 * 9)/ 10) - -251083) % 88)- -11); + a21 = ((((a21 - -188890) * 3) % 16)- 164); + a8 = 6; + a9 = 4; + + } else{ + a14 = (((a14 - 474018) - -87966) - 188890); + a27 = (((((((a27 * 9)/ 10) % 88)+ 75) * 5) % 88)+ 10); + a21 = (((((a21 % 16)- 159) - -124695) / 5) + -25072); + a8 = 7; + a9 = 5; + + } return 25; + } else if(((((a9==4) && ((a8==6) && ( a14 <= -148 && (input == 5)))) && a21 <= -178 ) && ((100 < a27) && (182 >= a27)) )){ + a27 = (((a27 / 5) / 5) + -473387); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((100 < a27) && (182 >= a27)) && ((a8==4) && ( a14 <= -148 && ((( a21 <= -178 && (a9==6)) || ((a9==2) && ((-178 < a21) && (-144 >= a21)) )) && (input == 6)))))){ + a21 = ((((a21 % 74)+ 4) + 1) - 5); + a8 = 7; + a9 = 2; + + return -1; + } else if(( ((-178 < a21) && (-144 >= a21)) && ( a14 <= -148 && (( 182 < a27 && (((a9==5) || (a9==6)) && (input == 4))) && (a8==7))))){ + a27 = ((((a27 * 9)/ 10) - 583351) * 1); + a21 = ((((a21 - -258226) + 47320) * -1)/ 10); + a8 = 8; + a9 = 4; + + return -1; + } else if(( ((-144 < a21) && (5 >= a21)) && ((a8==7) && ( a14 <= -148 && (((((a9==2) || (a9==3)) || (a9==4)) && (input == 6)) && 182 < a27 ))))){ + a27 = (((a27 + -600135) + -48) - 0); + a21 = (((((a21 - 104334) * 10)/ 9) * 10)/ 9); + a8 = 4; + a9 = 2; + + return -1; + } else if((( a14 <= -148 && (((( a21 <= -178 && (a9==6)) || ( ((-178 < a21) && (-144 >= a21)) && (a9==2))) && (input == 1)) && ((100 < a27) && (182 >= a27)) )) && (a8==5))){ + a27 = ((((a27 * 10)/ -9) * 5) + -576311); + a21 = (((a21 / 5) * 4) + -86756); + a8 = 4; + a9 = 2; + + return -1; + } else if((( 5 < a21 && ((((input == 5) && (((a9==4) || (a9==5)) || (a9==6))) && ((-148 < a14) && (13 >= a14)) ) && a27 <= -78 )) && (a8==4))){ + a14 = (((a14 * 5) + -516463) * 1); + a21 = ((((a21 + 0) % 74)+ -87) + 16); + a9 = 4; + + return 25; + } else if(((( ((-148 < a14) && (13 >= a14)) && ( 5 < a21 && ((input == 6) && (a8==4)))) && a27 <= -78 ) && (a9==2))){ + a14 = (((a14 / 5) - 513635) * 1); + a27 = ((((a27 - -297766) + -292080) % 88)+ 12); + a8 = 6; + a9 = 6; + + return 25; + } else if(( ((-78 < a27) && (100 >= a27)) && (((( a21 <= -178 && ((a8==6) && (a9==2))) || (( 5 < a21 && ((a9==5) && (a8==5))) || ( 5 < a21 && ((a9==6) && (a8==5))))) && (input == 4)) && a14 <= -148 ))){ + a27 = ((((a27 / 5) / 5) + -21707) - -21850); + a21 = (((((a21 * 9)/ 10) % 299997)+ 300002) * 1); + a8 = 8; + a9 = 2; + + return 25; + } else if(( a14 <= -148 && ((a8==7) && (( a27 <= -78 && ((((a9==3) || (a9==4)) || (a9==5)) && (input == 6))) && ((-144 < a21) && (5 >= a21)) )))){ + a21 = (((a21 - 328409) * 1) + -38247); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ((((input == 6) && (((a9==6) && ((-178 < a21) && (-144 >= a21)) ) || ((a9==2) && ((-144 < a21) && (5 >= a21)) ))) && ((100 < a27) && (182 >= a27)) ) && (a8==8)))){ + a27 = ((((a27 + -539712) * 1) * 10)/ 9); + a21 = ((((a21 - 14780) + 81722) * 10)/ -9); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a8==6) && ( 182 < a27 && ( a14 <= -148 && (((a9==6) || ((a9==4) || (a9==5))) && (input == 3))))) && ((-144 < a21) && (5 >= a21)) )){ + a27 = ((((a27 + 0) * 9)/ 10) - 555974); + a21 = (((((a21 + 409154) / 5) * 5) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==7) && (( 182 < a27 && (((input == 2) && (a9==6)) && a14 <= -148 )) && a21 <= -178 ))){ + a27 = (((a27 + -600163) * 1) - 8); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((100 < a27) && (182 >= a27)) && ( a14 <= -148 && (( ((-178 < a21) && (-144 >= a21)) && (((a9==5) || ((a9==3) || (a9==4))) && (input == 2))) && (a8==4))))){ + a27 = (((a27 + -425561) + 66895) * 1); + a21 = ((((a21 + -45555) * 10)/ 9) * 5); + a9 = 2; + + return -1; + } else if(( ((-144 < a21) && (5 >= a21)) && ((a8==7) && ((((((a9==2) || (a9==3)) || (a9==4)) && (input == 4)) && a14 <= -148 ) && 182 < a27 )))){ + a27 = ((((a27 - 0) % 88)+ -62) / 5); + a21 = ((((a21 + 108659) % 16)+ -170) * 1); + a8 = 6; + a9 = 5; + + return 21; + } else if(( ((-78 < a27) && (100 >= a27)) && ( ((-178 < a21) && (-144 >= a21)) && ( a14 <= -148 && ((((a9==3) || (a9==4)) && (input == 3)) && (a8==6)))))){ + a27 = (((a27 / 5) + -493626) + -29231); + a21 = (((a21 + -125505) + -53236) * 3); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a8==5) && (((input == 4) && ((( ((-178 < a21) && (-144 >= a21)) && (a9==5)) || ((a9==6) && ((-178 < a21) && (-144 >= a21)) )) || ((a9==2) && ((-144 < a21) && (5 >= a21)) ))) && ((-78 < a27) && (100 >= a27)) )) && a14 <= -148 )){ + a27 = (((a27 + -359023) * 1) + -73064); + a21 = (((a21 / 5) - 555849) - 38750); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-148 < a14) && (13 >= a14)) && ((((a8==4) && ((input == 1) && a27 <= -78 )) && (a9==5)) && ((-178 < a21) && (-144 >= a21)) ))){ + if( a27 <= -78 ){ + a14 = (((a14 - 492533) + -11036) - 15692); + a21 = ((((a21 - -43) * 9)/ 10) + 4); + a8 = 6; + a9 = 2; + + } else{ + a14 = ((((a14 / 5) - 119781) * 10)/ 9); + a27 = (((((a27 * 9)/ 10) * 1) % 88)+ 10); + a21 = ((((a21 + 69) + 11) + -129908) + 129900); + a8 = 6; + a9 = 3; + + } return -1; + } else if(( a21 <= -178 && ((a8==8) && ( ((100 < a27) && (182 >= a27)) && ( a14 <= -148 && ((input == 4) && (((a9==3) || (a9==4)) || (a9==5)))))))){ + + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && (((a8==4) && ( ((-78 < a27) && (100 >= a27)) && (((a9==5) || ((a9==3) || (a9==4))) && (input == 1)))) && ((-178 < a21) && (-144 >= a21)) ))){ + a27 = (((a27 - 278043) + -243786) / 5); + a21 = ((((a21 * 13)/ 10) / 5) - 182593); + a9 = 2; + + return -1; + } else if(( a27 <= -78 && ((a8==4) && (((a9==3) && ( 5 < a21 && (input == 6))) && ((-148 < a14) && (13 >= a14)) )))){ + a14 = (((a14 - 443068) - 8229) + -59812); + return -1; + } else if(((( a21 <= -178 && (((input == 2) && (a8==5)) && (a9==3))) && 182 < a27 ) && a14 <= -148 )){ + + a8 = 7; + + return 25; + } else if(((a8==6) && ( a27 <= -78 && (( a21 <= -178 && (((a9==5) || (a9==6)) && (input == 3))) && ((-148 < a14) && (13 >= a14)) )))){ + if( 5 < a21 ){ + a14 = (((((a14 + -172034) / 5) - -177051) * -1)/ 10); + a21 = ((((((a21 * 9)/ 10) * 1) + 407414) % 16)- 161); + a9 = 3; + + } else{ + a14 = (((a14 - 119785) + -330303) * 1); + a27 = ((((a27 % 88)+ 96) + 3) + -27); + a21 = ((((a21 + 0) - 0) % 74)+ -62); + a8 = 5; + a9 = 4; + + } return -1; + } else if((((a8==5) && ( ((100 < a27) && (182 >= a27)) && ( 5 < a21 && (((a9==6) || ((a9==4) || (a9==5))) && (input == 6))))) && a14 <= -148 )){ + a27 = ((((a27 * -8)/ 10) - 342746) / 5); + a21 = (((((a21 % 299911)- 300088) * 10)/ 9) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((( ((-148 < a14) && (13 >= a14)) && (input == 1)) && (a8==4)) && (a9==3)) && a27 <= -78 ) && 5 < a21 )){ + a14 = (((a14 + -470975) * 1) / 5); + a27 = ((((((a27 - 0) - 0) * 9)/ 10) % 40)+ 155); + a21 = ((((((a21 * 9)/ 10) / 5) * 5) % 16)- 163); + a8 = 8; + a9 = 6; + + return 25; + } else if(((a8==4) && (( ((100 < a27) && (182 >= a27)) && ( a14 <= -148 && ((a9==2) && (input == 4)))) && a21 <= -178 ))){ + a27 = ((((a27 * 5) * 10)/ -9) / 5); + a21 = (((((a21 * 9)/ 10) % 16)- 148) + -13); + a8 = 7; + a9 = 3; + + return -1; + } else if(( a14 <= -148 && (( ((-144 < a21) && (5 >= a21)) && ( ((100 < a27) && (182 >= a27)) && ((a9==6) && (input == 6)))) && (a8==6)))){ + a27 = (((a27 - 286620) / 5) - 251602); + a21 = ((((a21 - 65686) / 5) * 10)/ 9); + a8 = 4; + a9 = 2; + + return -1; + } else if(((( 5 < a21 && ( ((-78 < a27) && (100 >= a27)) && ((input == 5) && ((a9==3) || (a9==4))))) && (a8==6)) && a14 <= -148 )){ + a27 = (((((a27 * 5) % 40)+ 140) - 374839) + 374839); + a8 = 5; + a9 = 2; + + return 21; + } else if(((a9==3) && ((a8==8) && ( a14 <= -148 && ( 5 < a21 && ((input == 2) && ((100 < a27) && (182 >= a27)) )))))){ + a27 = ((((a27 * 5) * -2)/ 10) * 5); + a21 = ((((a21 - 0) + 0) % 299911)- 300088); + a8 = 4; + a9 = 2; + + return -1; + } else if((( 182 < a27 && (( ((-144 < a21) && (5 >= a21)) && (((a9==5) || (a9==6)) && (input == 5))) && a14 <= -148 )) && (a8==7))){ + a27 = ((((a27 - 600113) * 1) - -556833) - 556901); + a21 = (((a21 + -148358) * 4) - 819); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ((a8==5) && (((input == 3) && (( ((-144 < a21) && (5 >= a21)) && (a9==6)) || ( 5 < a21 && (a9==2)))) && ((-78 < a27) && (100 >= a27)) )))){ + a27 = (((a27 - 255206) * 2) - 51597); + a21 = (((a21 / 5) + -541572) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if((( a14 <= -148 && (((input == 6) && (( ((-178 < a21) && (-144 >= a21)) && (a9==6)) || ((a9==2) && ((-144 < a21) && (5 >= a21)) ))) && ((-78 < a27) && (100 >= a27)) )) && (a8==8))){ + a27 = ((((a27 - 227897) * 2) * 10)/ 9); + a21 = ((((a21 / 5) / 5) + 474457) + -1057562); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && (((((input == 3) && ((a9==2) || (a9==3))) && 182 < a27 ) && (a8==8)) && ((-178 < a21) && (-144 >= a21)) ))){ + a27 = ((((a27 * -5)/ 10) + -244666) - 16737); + a21 = ((((a21 * 10)/ 13) * 5) / 5); + a8 = 4; + a9 = 4; + + return -1; + } else if(( a14 <= -148 && ( ((-78 < a27) && (100 >= a27)) && ((a8==4) && ((input == 5) && (((a9==6) && ((-178 < a21) && (-144 >= a21)) ) || ((a9==2) && ((-144 < a21) && (5 >= a21)) ))))))){ + a27 = ((((a27 - -359696) * 10)/ -9) - 65001); + a21 = (((a21 + -99281) - 430126) * 1); + a9 = 2; + + return -1; + } else if(((a8==6) && (( a14 <= -148 && ((( ((-178 < a21) && (-144 >= a21)) && (a9==2)) || (((a9==5) && a21 <= -178 ) || ((a9==6) && a21 <= -178 ))) && (input == 3))) && ((100 < a27) && (182 >= a27)) ))){ + a27 = (((a27 + -226209) + 69747) * 3); + a21 = (((((a21 % 299911)+ -178) * 10)/ 9) + -118320); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==6) && ( a14 <= -148 && (((( ((-178 < a21) && (-144 >= a21)) && (a9==2)) || (( a21 <= -178 && (a9==5)) || ( a21 <= -178 && (a9==6)))) && (input == 6)) && ((-78 < a27) && (100 >= a27)) )))){ + a27 = ((((((a27 % 40)- -141) / 5) / 5) * 255)/ 10); + a21 = ((((a21 % 74)+ -63) - 7) - 0); + a8 = 4; + a9 = 3; + + return 25; + } else if(( a21 <= -178 && ((a9==3) && ( a14 <= -148 && ((a8==5) && ((input == 6) && 182 < a27 )))))){ + a27 = ((((a27 - 600168) * 1) / 5) + -107123); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-148 < a14) && (13 >= a14)) && ((a8==4) && ( a27 <= -78 && (((input == 4) && ((a9==5) || ((a9==3) || (a9==4)))) && a21 <= -178 ))))){ + a14 = (((a14 - 473437) / 5) - 265455); + a27 = ((((((a27 % 40)- -163) * 9)/ 10) + -371091) + 371122); + a21 = ((((((a21 % 74)+ 1) - 81639) * 5) % 74)- 35); + a8 = 7; + a9 = 2; + + return 23; + } else if((( 5 < a21 && (((((a9==4) || (a9==5)) && (input == 6)) && ((-78 < a27) && (100 >= a27)) ) && a14 <= -148 )) && (a8==7))){ + a27 = (((a27 - 159933) + -118548) * 2); + a21 = ((((a21 + -126212) * 1) % 299911)- 300088); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ((( 182 < a27 && ((input == 3) && (a9==4))) && (a8==6)) && 5 < a21 ))){ + a27 = (((((a27 * 9)/ 10) / 5) + 480436) + -649333); + a21 = (((((a21 * 9)/ 10) / 5) + 269243) + -812701); + a8 = 4; + a9 = 2; + + return -1; + } else if((((( ((100 < a27) && (182 >= a27)) && ((input == 2) && ((a9==5) || (a9==6)))) && ((-144 < a21) && (5 >= a21)) ) && (a8==7)) && a14 <= -148 )){ + a27 = ((((a27 + -39768) - 94609) - -704307) + -1146924); + a21 = (((((a21 + 31371) * -1)/ 10) * 10)/ 9); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a8==8) && (((a9==2) && ((input == 3) && ((-178 < a21) && (-144 >= a21)) )) && a14 <= -148 )) && a27 <= -78 )){ + a27 = ((((a27 + 354924) % 299908)- -300090) - -1); + a21 = (((a21 - 489788) - -489875) - -18); + a8 = 4; + a9 = 3; + + return 23; + } else if((( 182 < a27 && ((((((a9==4) || (a9==5)) || (a9==6)) && (input == 1)) && a14 <= -148 ) && (a8==8))) && a21 <= -178 )){ + if((a8==6)){ + a27 = (((a27 - 600091) / 5) - 217264); + a21 = (((a21 - -600059) - -114) + 0); + a8 = 5; + a9 = 6; + + } else{ + a27 = ((((a27 % 88)+ -28) - -1) - 39); + a8 = 7; + a9 = 4; + + } return -1; + } else if(( ((-178 < a21) && (-144 >= a21)) && ((( a14 <= -148 && ((((a9==3) || (a9==4)) || (a9==5)) && (input == 3))) && a27 <= -78 ) && (a8==8)))){ + a21 = ((((a21 * 10)/ 8) - -347375) + -823965); + a8 = 4; + a9 = 2; + + return -1; + } else if(( 182 < a27 && ( a14 <= -148 && ((input == 2) && ((((a9==6) && (a8==5)) && 5 < a21 ) || ( a21 <= -178 && ((a8==6) && (a9==2)))))))){ + a27 = (((a27 / 5) * 4) + -527022); + a21 = ((((a21 % 299911)- 300088) - 2) + 0); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-78 < a27) && (100 >= a27)) && ( a21 <= -178 && (( a14 <= -148 && (((a9==5) || (a9==6)) && (input == 1))) && (a8==4))))){ + a27 = ((((a27 + -337804) - -519225) * 10)/ -9); + a9 = 2; + + return -1; + } else if(( a21 <= -178 && ((a9==2) && ( ((100 < a27) && (182 >= a27)) && ((a8==7) && ((input == 1) && a14 <= -148 )))))){ + a27 = ((((a27 - -279779) * 10)/ -9) * 1); + a8 = 5; + + return -1; + } else if(((a8==5) && (( a21 <= -178 && ( a27 <= -78 && ( ((-148 < a14) && (13 >= a14)) && (input == 3)))) && (a9==5)))){ + a14 = ((((a14 - -55543) * 10)/ -9) + -199400); + a27 = ((((a27 - 0) % 88)+ 43) / 5); + a21 = (((((a21 - -530820) / 5) / 5) % 74)+ -68); + a9 = 3; + + return -1; + } else if((( a14 <= -148 && ((a9==2) && (((input == 2) && a21 <= -178 ) && (a8==7)))) && ((100 < a27) && (182 >= a27)) )){ + a21 = (((((a21 % 16)- 161) / 5) - 553895) + 553780); + a9 = 3; + + return 21; + } else if(( 5 < a21 && ((( ((100 < a27) && (182 >= a27)) && (((a9==4) || ((a9==2) || (a9==3))) && (input == 6))) && a14 <= -148 ) && (a8==6)))){ + a27 = (((a27 / 5) + -492620) * 1); + a21 = (((a21 / 5) - -404300) + -556457); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && (( 5 < a21 && ((a8==7) && ((input == 1) && ((a9==4) || (a9==5))))) && ((-78 < a27) && (100 >= a27)) ))){ + a27 = (((a27 + 221778) - 623142) / 5); + a21 = (((((a21 + 0) % 299911)- 300088) * 10)/ 9); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-144 < a21) && (5 >= a21)) && (((a8==4) && (((input == 1) && ((a9==5) || (a9==6))) && ((-78 < a27) && (100 >= a27)) )) && a14 <= -148 ))){ + a27 = (((a27 - 301409) * 1) * 1); + a21 = (((a21 - 568502) - 2375) * 1); + a9 = 2; + + return -1; + } else if((( ((-78 < a27) && (100 >= a27)) && ((a8==5) && (((a9==4) && (input == 2)) && ((-178 < a21) && (-144 >= a21)) ))) && a14 <= -148 )){ + + a8 = 8; + a9 = 5; + + return 21; + } else if(( 182 < a27 && (((a8==8) && ( 5 < a21 && ((input == 5) && ((a9==4) || ((a9==2) || (a9==3)))))) && a14 <= -148 ))){ + if( ((-78 < a27) && (100 >= a27)) ){ + a27 = ((((a27 % 40)- -127) + -23) * 1); + a21 = (((a21 / 5) + -593168) / 5); + a8 = 5; + a9 = 3; + + } else{ + a27 = (((a27 - 600181) + -2) - 0); + a21 = ((((((a21 + 0) % 16)+ -169) * 5) % 16)+ -145); + a8 = 4; + a9 = 5; + + } return 23; + } else if(( a14 <= -148 && ( 182 < a27 && ((a8==8) && ((a9==4) && ((input == 1) && ((-144 < a21) && (5 >= a21)) )))))){ + a27 = (((a27 - 293758) - 306342) + -78); + a21 = (((a21 - -552933) + 39134) * 1); + a9 = 6; + + return -1; + } else if(( a27 <= -78 && ((a8==6) && (((((a9==3) || (a9==4)) && (input == 2)) && ((-148 < a14) && (13 >= a14)) ) && 5 < a21 )))){ + if((a8==4)){ + a14 = (((a14 * 5) + -434788) + -35465); + a21 = ((((a21 * 9)/ 10) - 251117) - 293004); + a8 = 5; + a9 = 5; + + } else{ + a14 = (((a14 + -167026) + -193563) + -156646); + a27 = ((((((a27 + 0) * 9)/ 10) / 5) % 88)+ 91); + a21 = (((a21 / 5) / 5) - 31764); + a8 = 7; + a9 = 2; + + } return -1; + } else if((((((((a9==2) || (a9==3)) && (input == 5)) && a21 <= -178 ) && (a8==5)) && ((-78 < a27) && (100 >= a27)) ) && a14 <= -148 )){ + a27 = (((a27 + -22053) * 5) - 464829); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-178 < a21) && (-144 >= a21)) && (( a27 <= -78 && ((a9==2) && ((input == 5) && (a8==4)))) && ((-148 < a14) && (13 >= a14)) ))){ + a14 = ((((a14 / 5) - 457899) * 10)/ 9); + a8 = 6; + a9 = 3; + + return -1; + } else if(((a9==4) && ( ((-144 < a21) && (5 >= a21)) && ((a8==8) && ( 182 < a27 && ((input == 5) && a14 <= -148 )))))){ + a27 = (((a27 / 5) - 583131) * 1); + a21 = ((((((a21 * 5) % 16)+ -161) * 5) % 16)+ -156); + a8 = 5; + + return -1; + } else if((((a8==8) && ((((input == 3) && ((a9==5) || ((a9==3) || (a9==4)))) && a14 <= -148 ) && ((100 < a27) && (182 >= a27)) )) && a21 <= -178 )){ + a27 = (((((a27 * -8)/ 10) + 31594) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if((( 182 < a27 && ( 5 < a21 && (((input == 6) && ((a9==2) || (a9==3))) && (a8==4)))) && a14 <= -148 )){ + a27 = (((a27 + -52495) - 547640) * 1); + a21 = ((((((a21 % 299911)+ -300088) + -247336) - -571852) * -1)/ 10); + a9 = 2; + + return -1; + } else if((( a27 <= -78 && (((( a21 <= -178 && (a9==6)) || ((a9==2) && ((-178 < a21) && (-144 >= a21)) )) && (input == 2)) && ((-148 < a14) && (13 >= a14)) )) && (a8==5))){ + if((a8==5)){ + a21 = (((((((a21 * 9)/ 10) * -1)/ 10) + -224629) * -1)/ 10); + a8 = 4; + a9 = 4; + + } else{ + a14 = (((a14 + -491658) + -107182) * 1); + a21 = (((((a21 * 9)/ 10) % 16)- 145) + -8); + a9 = 5; + + } return -1; + } else if((( 182 < a27 && ( ((-178 < a21) && (-144 >= a21)) && ((((a9==3) || (a9==4)) && (input == 4)) && a14 <= -148 ))) && (a8==4))){ + a27 = (((((a27 % 40)+ 137) / 5) / 5) + 108); + a21 = ((((a21 - 481321) * 10)/ -9) - -59564); + a9 = 2; + + return 21; + } else if(( a14 <= -148 && ((a8==4) && ( 182 < a27 && ((((a9==2) || (a9==3)) && (input == 4)) && 5 < a21 ))))){ + a27 = ((((a27 * 9)/ 10) * 1) + -588523); + a21 = ((((a21 % 299911)+ -300088) - 207032) * 1); + a9 = 2; + + return -1; + } else if((( 182 < a27 && (((((a9==3) || (a9==4)) && (input == 2)) && a14 <= -148 ) && a21 <= -178 )) && (a8==6))){ + a27 = (((a27 - 600123) / 5) + -158321); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==7) && (( a21 <= -178 && ( ((-148 < a14) && (13 >= a14)) && ((a9==4) && (input == 5)))) && a27 <= -78 ))){ + a14 = (((a14 - 185288) * 3) - 23131); + a8 = 6; + a9 = 5; + + return -1; + } else if(((( ((100 < a27) && (182 >= a27)) && ((input == 3) && ((((a9==5) && ((-144 < a21) && (5 >= a21)) ) || ( ((-144 < a21) && (5 >= a21)) && (a9==6))) || ( 5 < a21 && (a9==2))))) && (a8==8)) && a14 <= -148 )){ + a27 = ((((a27 + -455376) * -1)/ 10) / 5); + a21 = ((((a21 % 299911)- 300088) - 1) * 1); + a8 = 5; + a9 = 3; + + return 25; + } else if((((a8==8) && (( ((-144 < a21) && (5 >= a21)) && ((input == 4) && ((a9==4) || (a9==5)))) && a27 <= -78 )) && a14 <= -148 )){ + a21 = (((a21 + -17593) * 5) - 303697); + a8 = 4; + a9 = 2; + + return -1; + } else if((( a27 <= -78 && ((((input == 3) && ((-178 < a21) && (-144 >= a21)) ) && (a8==7)) && ((-148 < a14) && (13 >= a14)) )) && (a9==6))){ + a14 = (((a14 / 5) + -95988) * 5); + a21 = ((((a21 * 10)/ 8) - -237118) - 314483); + a8 = 5; + a9 = 4; + + return -1; + } else if(( ((-78 < a27) && (100 >= a27)) && ( a14 <= -148 && (( ((-178 < a21) && (-144 >= a21)) && (((a9==6) || ((a9==4) || (a9==5))) && (input == 2))) && (a8==7))))){ + a27 = ((((a27 - 219432) * 10)/ 9) / 5); + a21 = (((a21 - 440919) * 1) + -153838); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((a9==4) && ((a8==4) && ((input == 6) && a14 <= -148 ))) && 5 < a21 ) && 182 < a27 )){ + a27 = (((((a27 * 9)/ 10) - -25637) % 88)- -9); + a8 = 8; + a9 = 3; + + return 21; + } else if(( ((-144 < a21) && (5 >= a21)) && (( a14 <= -148 && (((a9==3) && (input == 1)) && 182 < a27 )) && (a8==8)))){ + a27 = ((((a27 % 88)- -13) + 78672) - 78723); + a21 = (((((a21 % 16)- 161) * 5) % 16)+ -155); + a8 = 5; + a9 = 2; + + return 25; + } else if((( ((-144 < a21) && (5 >= a21)) && ( ((-78 < a27) && (100 >= a27)) && (((input == 2) && ((a9==3) || (a9==4))) && (a8==4)))) && a14 <= -148 )){ + a27 = (((((a27 + -289802) * 10)/ 9) * 10)/ 9); + a21 = ((((a21 * 5) / 5) / 5) - 182624); + a9 = 2; + + return -1; + } else if(( a21 <= -178 && ( a14 <= -148 && ( ((100 < a27) && (182 >= a27)) && ((a8==6) && ((input == 4) && (a9==4))))))){ + a27 = (((((a27 * 10)/ -9) * 10)/ 9) - 30856); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a27 <= -78 && ( ((-144 < a21) && (5 >= a21)) && (( ((-148 < a14) && (13 >= a14)) && (((a9==5) || (a9==6)) && (input == 5))) && (a8==4))))){ + if( ((100 < a27) && (182 >= a27)) ){ + a14 = ((((((a14 + -147030) * 10)/ 9) + 644017) * -1)/ 10); + a21 = (((a21 / 5) * 5) + 82771); + a8 = 6; + a9 = 4; + + } else{ + a14 = ((((a14 / 5) - -287393) * 2) + -1017993); + a8 = 6; + a9 = 4; + + } return 23; + } else if(((a8==6) && (((((input == 6) && ((a9==3) || (a9==4))) && a14 <= -148 ) && a21 <= -178 ) && 182 < a27 ))){ + a27 = ((((a27 + -600103) * 1) - -43820) + -43818); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==8) && ( a14 <= -148 && ((((((a9==4) || (a9==5)) || (a9==6)) && (input == 3)) && ((-144 < a21) && (5 >= a21)) ) && ((-78 < a27) && (100 >= a27)) )))){ + a27 = (((a27 + -271418) - 155543) * 1); + a21 = (((a21 - 313165) + -16565) + 212462); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==8) && ( 182 < a27 && (( a14 <= -148 && ((input == 3) && (((a9==2) || (a9==3)) || (a9==4)))) && 5 < a21 )))){ + if((a9==4)){ + a27 = (((((a27 % 40)- -115) - -363293) * 1) - 363275); + a9 = 6; + + } else{ + a27 = (((a27 + -218454) + -381684) - 10); + a21 = (((((a21 % 299911)- 300088) * 1) / 5) + -142282); + a8 = 5; + a9 = 5; + + } return -1; + } else if((( a14 <= -148 && (( ((100 < a27) && (182 >= a27)) && ((input == 6) && ((a9==6) || ((a9==4) || (a9==5))))) && ((-144 < a21) && (5 >= a21)) )) && (a8==4))){ + a27 = (((a27 - -110136) - 110277) + 53); + a21 = (((a21 + 345877) - -236094) + 5301); + a8 = 8; + a9 = 3; + + return -1; + } else if(( a14 <= -148 && ((((a9==3) && ((a8==5) && (input == 2))) && ((100 < a27) && (182 >= a27)) ) && a21 <= -178 ))){ + a27 = (((((a27 * 10)/ -9) + -255450) * 10)/ 9); + a8 = 4; + a9 = 2; + + return -1; + } else if(( 182 < a27 && (((((input == 6) && ((a9==2) || (a9==3))) && (a8==8)) && a21 <= -178 ) && a14 <= -148 ))){ + a14 = (((((a14 - -341197) * 1) + 72498) % 80)+ -67); + a27 = (((((a27 - 600157) + -23) / 5) * 22)/ 10); + a21 = (((((a21 + 0) / 5) * 4) % 16)- 152); + a8 = 5; + a9 = 4; + + return 25; + } else if((((((input == 1) && (( ((-144 < a21) && (5 >= a21)) && (a9==2)) || (((a9==5) && ((-178 < a21) && (-144 >= a21)) ) || ( ((-178 < a21) && (-144 >= a21)) && (a9==6))))) && (a8==4)) && a14 <= -148 ) && 182 < a27 )){ + a27 = (((((a27 * -5)/ 10) * 10)/ 9) + -47291); + a21 = (((a21 - 78480) / 5) * 5); + a9 = 2; + + return -1; + } else if((((((((a9==6) && ((-178 < a21) && (-144 >= a21)) ) || ((a9==2) && ((-144 < a21) && (5 >= a21)) )) && (input == 1)) && ((100 < a27) && (182 >= a27)) ) && a14 <= -148 ) && (a8==8))){ + a27 = ((((((a27 * 10)/ -9) * 5) + 321895) * -1)/ 10); + a21 = (((a21 + -358638) * 1) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a27 <= -78 && (( a14 <= -148 && ( a21 <= -178 && ((((a9==4) || (a9==5)) || (a9==6)) && (input == 2)))) && (a8==7)))){ + + a8 = 4; + a9 = 2; + + return -1; + } else if((( ((-78 < a27) && (100 >= a27)) && ( a14 <= -148 && (((((a9==5) && ((-144 < a21) && (5 >= a21)) ) || ((a9==6) && ((-144 < a21) && (5 >= a21)) )) || ((a9==2) && 5 < a21 )) && (input == 2)))) && (a8==7))){ + a27 = (((a27 * 5) - 480511) - 109440); + a21 = ((((a21 % 16)- 159) / 5) + -124); + a9 = 5; + + return 21; + } else if(((a8==8) && (((((input == 6) && a14 <= -148 ) && (a9==5)) && a27 <= -78 ) && a21 <= -178 ))){ + + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==5) && (((((input == 6) && (a9==3)) && a14 <= -148 ) && 182 < a27 ) && ((-178 < a21) && (-144 >= a21)) ))){ + a27 = ((((a27 * 9)/ 10) * 1) + -560493); + a21 = (((a21 - 92206) * 5) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-78 < a27) && (100 >= a27)) && ((a8==8) && ( a14 <= -148 && ((((a9==6) && ((-178 < a21) && (-144 >= a21)) ) || ( ((-144 < a21) && (5 >= a21)) && (a9==2))) && (input == 3)))))){ + a27 = ((((a27 + 492625) * -1)/ 10) * 5); + a21 = (((((a21 * 5) - 206492) - -223190) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a27 <= -78 && ( ((-148 < a14) && (13 >= a14)) && ((a8==5) && (((input == 6) && ((a9==3) || (a9==4))) && ((-178 < a21) && (-144 >= a21)) ))))){ + a14 = (((a14 + 262134) * 2) - 656939); + a21 = (((a21 - -111) / 5) + -71); + a8 = 6; + a9 = 3; + + return -1; + } else if(( ((100 < a27) && (182 >= a27)) && ( a14 <= -148 && (((a8==5) && ((input == 3) && (((a9==4) || (a9==5)) || (a9==6)))) && ((-144 < a21) && (5 >= a21)) )))){ + a21 = (((a21 / 5) - 521234) + -63864); + a8 = 4; + a9 = 3; + + return -1; + } else if((( a21 <= -178 && ((( ((100 < a27) && (182 >= a27)) && (input == 2)) && (a8==4)) && a14 <= -148 )) && (a9==5))){ + a27 = (((a27 / 5) + -103015) / 5); + a9 = 2; + + return -1; + } else if(((input == 5) && (( a21 <= -178 && ((( ((-148 < a14) && (13 >= a14)) && a27 <= -78 ) && (a8==4)) && (a9==2))) || ((((a9==5) && ((a8==8) && ( 182 < a27 && a14 <= -148 ))) && 5 < a21 ) || (((a9==6) && ((a8==8) && ( 182 < a27 && a14 <= -148 ))) && 5 < a21 ))))){ + if( 182 < a27 ){ + a14 = ((((a14 % 299926)+ -300073) - 2) - 0); + a27 = (((a27 / 5) / 5) - 170190); + a21 = ((((a21 % 299911)- 300088) * 1) * 1); + a8 = 6; + a9 = 2; + + } else{ + a14 = ((((a14 % 299926)- 300073) - 2) + 0); + a27 = ((((a27 * 9)/ 10) / 5) + -338165); + a21 = ((((((a21 * 9)/ 10) * 1) - -52990) % 299997)+ 300002); + a8 = 6; + a9 = 2; + + } return -1; + } else if(( a27 <= -78 && (((a8==8) && ( a14 <= -148 && ((input == 6) && (((a9==3) || (a9==4)) || (a9==5))))) && ((-178 < a21) && (-144 >= a21)) ))){ + a27 = ((((((a27 * 9)/ 10) % 88)+ 92) * 9)/ 10); + a21 = (((a21 - 291770) + 89141) * 2); + a8 = 5; + a9 = 3; + + return 23; + } else if(((( ((-148 < a14) && (13 >= a14)) && ((((a9==5) || (a9==6)) && (input == 5)) && a21 <= -178 )) && (a8==6)) && a27 <= -78 )){ + a21 = ((((((a21 + 0) * 9)/ 10) - -542921) % 16)+ -175); + a8 = 4; + a9 = 6; + + return -1; + } else if(( a21 <= -178 && ( a14 <= -148 && (((((a9==2) || (a9==3)) && (input == 5)) && (a8==8)) && 182 < a27 )))){ + if((a9==5)){ + a27 = ((((a27 + 0) * 9)/ 10) + -587179); + a21 = (((a21 - -600026) * 1) - -63); + a8 = 5; + a9 = 2; + + } else{ + a27 = (((((a27 + 0) * 9)/ 10) + -444973) - 96765); + a21 = ((((a21 / 5) % 74)- -4) + 1); + a8 = 5; + a9 = 3; + + } return 25; + } else if(( ((-178 < a21) && (-144 >= a21)) && ( 182 < a27 && ( a14 <= -148 && ((((a9==4) || (a9==5)) && (input == 5)) && (a8==5)))))){ + a27 = ((((a27 + 0) / 5) + 217589) - 793174); + a21 = (((a21 * 5) * 5) - 281812); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==8) && ((( ((100 < a27) && (182 >= a27)) && (((a9==4) || (a9==5)) && (input == 4))) && a14 <= -148 ) && ((-178 < a21) && (-144 >= a21)) ))){ + a27 = (((a27 / 5) + -201130) * 2); + a21 = (((a21 - -67302) - 402131) / 5); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-148 < a14) && (13 >= a14)) && (( a27 <= -78 && ((((a9==5) || (a9==6)) && (input == 4)) && ((-144 < a21) && (5 >= a21)) )) && (a8==4)))){ + a14 = (((a14 / 5) + -95841) + -340046); + a27 = ((((a27 + 146797) / 5) % 40)+ 140); + a8 = 8; + a9 = 6; + + return 25; + } + return calculate_output6(input); + } + + int calculate_output6(int input) { + + + if(((( 182 < a27 && ( 5 < a21 && ((((a9==2) || (a9==3)) || (a9==4)) && (input == 2)))) && (a8==8)) && a14 <= -148 )){ + a27 = (((a27 - 66592) - 533552) + -18); + a21 = (((a21 / 5) + -432059) - 129147); + a8 = 5; + a9 = 4; + + return -1; + } else if((( a14 <= -148 && ((a9==5) && ( 182 < a27 && ((a8==7) && (input == 4))))) && a21 <= -178 )){ + a27 = (((((a27 + 0) % 40)+ 123) * 10)/ 9); + a21 = (((a21 - -569111) * 1) - -31067); + a8 = 4; + a9 = 3; + + return 21; + } else if(( ((-144 < a21) && (5 >= a21)) && ((((((a9==6) || ((a9==4) || (a9==5))) && (input == 1)) && 182 < a27 ) && a14 <= -148 ) && (a8==6)))){ + a27 = (((a27 + -398378) - 201733) * 1); + a21 = (((a21 * 5) + -345413) + -103187); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-148 < a14) && (13 >= a14)) && (( a27 <= -78 && (((a8==7) && (input == 6)) && (a9==3))) && a21 <= -178 ))){ + a14 = ((((a14 + -63661) + 645647) / 5) - 427795); + a27 = (((((a27 % 40)- -179) + -39) - 511989) - -512024); + a8 = 6; + a9 = 4; + + return -1; + } else if((((((((a9==2) || (a9==3)) && (input == 2)) && ((100 < a27) && (182 >= a27)) ) && a14 <= -148 ) && 5 < a21 ) && (a8==7))){ + a27 = ((((a27 * 5) - 92361) % 88)- -22); + a21 = (((((a21 + 0) * 9)/ 10) % 16)- 159); + a8 = 5; + a9 = 2; + + return 23; + } else if((( a14 <= -148 && (((((a9==5) || (a9==6)) && (input == 5)) && ((-144 < a21) && (5 >= a21)) ) && ((-78 < a27) && (100 >= a27)) )) && (a8==4))){ + a27 = ((((a27 + -224796) - -420778) * 10)/ -9); + a21 = (((a21 / 5) / 5) + -45858); + a9 = 2; + + return -1; + } else if((( 182 < a27 && ((a8==4) && ((( ((-144 < a21) && (5 >= a21)) && (a9==2)) || (((a9==5) && ((-178 < a21) && (-144 >= a21)) ) || ( ((-178 < a21) && (-144 >= a21)) && (a9==6)))) && (input == 6)))) && a14 <= -148 )){ + a27 = (((((a27 * 9)/ 10) * -5)/ 10) * 2); + a21 = (((a21 + -352031) - -25843) + -224998); + a9 = 2; + + return -1; + } else if(((a9==5) && ((a8==6) && ((( 5 < a21 && (input == 1)) && ((-78 < a27) && (100 >= a27)) ) && a14 <= -148 )))){ + a27 = (((a27 - 82475) * 5) * 1); + a21 = ((((a21 % 299911)+ -300088) + -62011) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a9==4) && ((( a14 <= -148 && (input == 4)) && (a8==8)) && 182 < a27 )) && ((-144 < a21) && (5 >= a21)) )){ + if( ((13 < a14) && (182 >= a14)) ){ + a27 = ((((a27 + 0) % 88)+ -56) + -7); + a21 = ((((a21 + -433645) % 16)+ -151) - -3); + a8 = 5; + a9 = 2; + + } else{ + a27 = ((((((a27 + 0) % 40)+ 123) / 5) * 45)/ 10); + a21 = (((((a21 % 16)+ -159) + 232065) / 5) - 46535); + a8 = 7; + a9 = 6; + + } return -1; + } else if((((a8==4) && ( ((-148 < a14) && (13 >= a14)) && ((((a9==6) || ((a9==4) || (a9==5))) && (input == 4)) && a27 <= -78 ))) && 5 < a21 )){ + if( a21 <= -178 ){ + a14 = ((((a14 + -178358) * 10)/ 9) * 3); + a8 = 5; + a9 = 6; + + } else{ + a14 = ((((a14 + 104455) * 10)/ -9) * 5); + a21 = (((((a21 - 0) * 9)/ 10) * 1) + -560952); + a8 = 6; + a9 = 4; + + } return -1; + } else if(((( a27 <= -78 && ((((a9==4) || (a9==5)) && (input == 1)) && ((-148 < a14) && (13 >= a14)) )) && (a8==7)) && 5 < a21 )){ + a14 = (((a14 - -106697) - -470703) + -604918); + a27 = ((((((a27 + 488573) % 88)- -11) * 5) % 88)- -12); + a21 = (((((a21 * 9)/ 10) / 5) % 16)+ -164); + a8 = 8; + a9 = 5; + + return -1; + } else if(((((a8==4) && ( ((-178 < a21) && (-144 >= a21)) && ((input == 5) && (((a9==3) || (a9==4)) || (a9==5))))) && a14 <= -148 ) && ((100 < a27) && (182 >= a27)) )){ + a27 = (((a27 + -35258) / 5) - 227439); + a21 = (((a21 / 5) - -344117) + 199318); + a8 = 8; + a9 = 6; + + return 21; + } else if(( ((-148 < a14) && (13 >= a14)) && ( a27 <= -78 && ((((( ((-144 < a21) && (5 >= a21)) && (a9==6)) || ( 5 < a21 && (a9==2))) || ( 5 < a21 && (a9==3))) && (input == 2)) && (a8==5))))){ + if( a27 <= -78 ){ + a14 = (((a14 - 563154) - -581435) - 23970); + a21 = (((a21 / 5) / 5) - -104473); + a8 = 6; + a9 = 4; + + } else{ + a14 = ((((a14 + -6030) * 5) * 10)/ 9); + a21 = ((((a21 % 299997)- -300002) * 1) - 0); + a8 = 4; + a9 = 5; + + } return 21; + } else if(( ((-178 < a21) && (-144 >= a21)) && (((a8==6) && (((input == 6) && (((a9==3) || (a9==4)) || (a9==5))) && ((100 < a27) && (182 >= a27)) )) && a14 <= -148 ))){ + a27 = ((((a27 * -8)/ 10) * 5) * 5); + a21 = (((a21 * 5) * 5) * 5); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==6) && ((((((a9==2) && ((-178 < a21) && (-144 >= a21)) ) || (((a9==5) && a21 <= -178 ) || ( a21 <= -178 && (a9==6)))) && (input == 4)) && ((-78 < a27) && (100 >= a27)) ) && a14 <= -148 ))){ + a27 = (((a27 - 590564) - 7158) + -577); + a21 = (((((a21 + 0) % 299911)+ -178) * 10)/ 9); + a8 = 4; + a9 = 2; + + return -1; + } else if(( 5 < a21 && (((((input == 4) && ((a9==4) || (a9==5))) && (a8==7)) && a27 <= -78 ) && a14 <= -148 ))){ + a27 = ((((a27 % 299908)+ 300090) + 248624) + 6712); + a21 = ((((a21 % 16)- 163) - 452836) + 452836); + a8 = 6; + a9 = 4; + + return 21; + } else if(((a8==5) && ((((( ((-144 < a21) && (5 >= a21)) && (a9==6)) || ((a9==2) && 5 < a21 )) && (input == 1)) && ((-78 < a27) && (100 >= a27)) ) && a14 <= -148 ))){ + a27 = (((a27 + -275770) + -95239) / 5); + a21 = (((((a21 % 299911)+ -300088) + -2) - -367333) + -367332); + a8 = 4; + a9 = 2; + + return -1; + } else if((( ((-78 < a27) && (100 >= a27)) && (( 5 < a21 && ((input == 2) && a14 <= -148 )) && (a8==8))) && (a9==2))){ + a27 = (((a27 + -543747) * 1) * 1); + a21 = ((((a21 % 299911)- 300088) * 1) + -218469); + a8 = 4; + + return -1; + } else if(((a8==4) && ( a14 <= -148 && ((((input == 1) && ((a9==3) || (a9==4))) && 182 < a27 ) && ((-178 < a21) && (-144 >= a21)) )))){ + a21 = ((((a21 + 117652) * 10)/ 9) / 5); + a8 = 5; + a9 = 4; + + return 21; + } else if((( a14 <= -148 && ((a8==7) && ( 182 < a27 && ((input == 4) && ((a9==3) || (a9==4)))))) && a21 <= -178 )){ + a27 = ((((a27 + 0) / 5) % 40)- -121); + a21 = ((((a21 + 0) % 16)- 158) - -13); + a8 = 5; + a9 = 2; + + return 25; + } else if(((((((input == 3) && ((a9==4) || (a9==5))) && (a8==5)) && a21 <= -178 ) && a14 <= -148 ) && ((100 < a27) && (182 >= a27)) )){ + a21 = (((((a21 % 74)+ -8) * 5) % 74)+ -5); + a8 = 6; + a9 = 5; + + return 23; + } else if((( 5 < a21 && ((((input == 4) && (((a9==4) || (a9==5)) || (a9==6))) && (a8==4)) && ((-78 < a27) && (100 >= a27)) )) && a14 <= -148 )){ + a27 = ((((a27 * 5) / 5) * 5) + 303550); + a8 = 5; + a9 = 2; + + return 23; + } else if((((( ((100 < a27) && (182 >= a27)) && (((a9==6) || ((a9==4) || (a9==5))) && (input == 4))) && 5 < a21 ) && (a8==5)) && a14 <= -148 )){ + a27 = (((a27 + 192068) / 5) - 496164); + a21 = ((((a21 * 9)/ 10) - 597394) / 5); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-178 < a21) && (-144 >= a21)) && (((a8==6) && (((input == 5) && (a9==5)) && 182 < a27 )) && a14 <= -148 ))){ + a27 = (((a27 - 600159) * 1) * 1); + a21 = ((((a21 * 5) - -485416) / 5) + -504012); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ( ((-144 < a21) && (5 >= a21)) && ((a9==4) && ( ((100 < a27) && (182 >= a27)) && ((a8==8) && (input == 3))))))){ + a27 = (((a27 + 133264) / 5) + 278842); + a8 = 5; + a9 = 2; + + return 23; + } else if((((a8==8) && (( ((-178 < a21) && (-144 >= a21)) && ( a14 <= -148 && (input == 5))) && a27 <= -78 )) && (a9==2))){ + a21 = (((a21 - 232798) / 5) - 50493); + a8 = 4; + + return -1; + } else if(((((((input == 1) && ((a9==5) || (a9==6))) && 5 < a21 ) && ((100 < a27) && (182 >= a27)) ) && a14 <= -148 ) && (a8==6))){ + a27 = ((((((a27 * 10)/ -9) / 5) / 5) * 195)/ 10); + a21 = (((((a21 % 299911)- 300088) * 10)/ 9) - 45082); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-148 < a14) && (13 >= a14)) && ( a27 <= -78 && (((( ((-144 < a21) && (5 >= a21)) && (a9==6)) || ( 5 < a21 && (a9==2))) && (input == 2)) && (a8==7))))){ + if( 182 < a27 ){ + a14 = ((((a14 + -449659) * 10)/ 9) * 1); + a27 = ((((a27 % 299908)- -300090) + 110222) - -150497); + a21 = ((((a21 % 299911)- 300088) * 1) - 1); + a8 = 6; + a9 = 4; + + } else{ + a14 = (((a14 + -421172) + -167503) + -2626); + a21 = ((((((a21 % 74)- 68) - 2) * 5) % 74)+ -68); + a9 = 4; + + } return -1; + } else if(((a8==7) && (((( a21 <= -178 && (input == 2)) && (a9==4)) && a27 <= -78 ) && ((-148 < a14) && (13 >= a14)) ))){ + a14 = ((((a14 + 439901) - 607488) + 183941) - 412847); + a21 = ((((a21 % 74)+ -16) + 4) + -49); + a8 = 6; + + return -1; + } else if((((((((a9==3) || (a9==4)) && (input == 1)) && (a8==5)) && a14 <= -148 ) && ((100 < a27) && (182 >= a27)) ) && ((-178 < a21) && (-144 >= a21)) )){ + a21 = (((a21 * 5) * 5) + -508874); + a8 = 4; + a9 = 3; + + return -1; + } else if((((a9==4) && (( a27 <= -78 && ( ((-148 < a14) && (13 >= a14)) && (input == 2))) && 5 < a21 )) && (a8==5))){ + a14 = ((((a14 - 73083) - -2106) * 10)/ 9); + a21 = (((((a21 % 16)- 161) * 5) % 16)+ -154); + a8 = 4; + a9 = 6; + + return 21; + } else if(((a9==4) && (((((input == 3) && a21 <= -178 ) && (a8==6)) && ((100 < a27) && (182 >= a27)) ) && a14 <= -148 ))){ + a27 = ((((a27 * -8)/ 10) + -302336) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && (( 5 < a21 && (((input == 6) && (a9==6)) && (a8==6))) && ((-78 < a27) && (100 >= a27)) ))){ + a27 = (((((a27 * 5) % 40)- -142) - 449901) + 449900); + a21 = (((((a21 % 299911)- 300088) / 5) * 5) - 244991); + a9 = 4; + + return 21; + } else if(( a21 <= -178 && ( ((-148 < a14) && (13 >= a14)) && ((a8==6) && ( a27 <= -78 && ((input == 4) && ((a9==5) || (a9==6)))))))){ + if( ((-148 < a14) && (13 >= a14)) ){ + a14 = (((((a14 - 260349) * 10)/ 9) * 10)/ 9); + a27 = (((((a27 % 40)- -162) + 9326) + 484360) + -493701); + a21 = ((((a21 / 5) % 74)- 63) + -4); + a8 = 7; + a9 = 3; + + } else{ + + a8 = 7; + a9 = 2; + + } return -1; + } else if((((((input == 1) && (((a9==6) && ((-144 < a21) && (5 >= a21)) ) || ((a9==2) && 5 < a21 ))) && (a8==6)) && ((-148 < a14) && (13 >= a14)) ) && a27 <= -78 )){ + if( a27 <= -78 ){ + a14 = (((a14 + -521473) * 1) * 1); + a21 = (((((a21 % 16)+ -160) / 5) - 458950) + 458827); + a8 = 5; + a9 = 2; + + } else{ + a14 = (((a14 + 107339) * 5) - 928473); + a21 = (((((a21 % 299911)+ -300088) - 1) + 498922) + -498921); + a9 = 4; + + } return -1; + } else if((( a14 <= -148 && ((a9==2) && (( ((-144 < a21) && (5 >= a21)) && (input == 6)) && (a8==7)))) && ((100 < a27) && (182 >= a27)) )){ + a27 = ((((a27 * 10)/ -9) - 560749) / 5); + a21 = (((a21 - 526275) * 1) / 5); + a8 = 4; + + return -1; + } else if(((a8==6) && ((((((a9==2) || (a9==3)) && (input == 2)) && a14 <= -148 ) && a21 <= -178 ) && ((100 < a27) && (182 >= a27)) ))){ + a27 = ((((a27 + -43618) * 5) * 10)/ 9); + a8 = 4; + a9 = 2; + + return -1; + } else if((( 5 < a21 && ((a8==7) && ( a14 <= -148 && (((a9==4) || (a9==5)) && (input == 6))))) && ((100 < a27) && (182 >= a27)) )){ + a27 = ((((a27 * 5) * 5) * 5) + -26864); + a21 = ((((a21 % 299911)+ -300088) + 598386) - 885249); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a8==7) && ( a14 <= -148 && (((input == 3) && (((a9==2) || (a9==3)) || (a9==4))) && ((-144 < a21) && (5 >= a21)) ))) && ((-78 < a27) && (100 >= a27)) )){ + a27 = (((a27 / 5) / 5) - -126); + a8 = 6; + a9 = 2; + + return 21; + } else if(( 182 < a27 && ( a21 <= -178 && ((a8==6) && ((((a9==3) || (a9==4)) && (input == 4)) && a14 <= -148 ))))){ + a27 = ((((a27 / 5) + 193310) * 10)/ -9); + a8 = 4; + a9 = 2; + + return -1; + } else if((( ((-178 < a21) && (-144 >= a21)) && ((a9==4) && ( a14 <= -148 && ((input == 5) && ((-78 < a27) && (100 >= a27)) )))) && (a8==5))){ + a27 = (((a27 - 262613) - 3506) / 5); + a21 = ((((a21 - 18511) + 431110) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==6) && (( a27 <= -78 && ( ((-148 < a14) && (13 >= a14)) && (((a9==5) || (a9==6)) && (input == 6)))) && 5 < a21 ))){ + if( a27 <= -78 ){ + a14 = (((a14 - -261639) + 243092) - 561929); + a27 = ((((a27 - -133132) % 40)- -140) - 0); + a21 = ((((a21 % 16)+ -176) - -15) + -16); + a9 = 6; + + } else{ + a14 = ((((a14 + -164262) + 84776) + 95667) - 237858); + a27 = ((((a27 / 5) + -81117) % 88)- -81); + a21 = ((((a21 % 16)+ -171) * 5) / 5); + a8 = 4; + a9 = 2; + + } return -1; + } else if(((( a14 <= -148 && ((input == 3) && ((( a21 <= -178 && (a9==6)) || ((a9==2) && ((-178 < a21) && (-144 >= a21)) )) || ( ((-178 < a21) && (-144 >= a21)) && (a9==3))))) && (a8==8)) && ((100 < a27) && (182 >= a27)) )){ + a27 = ((((a27 / 5) * 5) * 10)/ 18); + a21 = (((((a21 + 264542) % 16)- 159) + -368153) - -368152); + a8 = 5; + a9 = 4; + + return 25; + } else if(((((a8==5) && ( a21 <= -178 && ((input == 4) && ((a9==2) || (a9==3))))) && ((-78 < a27) && (100 >= a27)) ) && a14 <= -148 )){ + a27 = (((a27 + -582687) * 1) + -6526); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((100 < a27) && (182 >= a27)) && ( ((-144 < a21) && (5 >= a21)) && ( a14 <= -148 && (((a9==4) && (input == 4)) && (a8==7)))))){ + a27 = ((((a27 - -32929) * 5) * -1)/ 10); + a21 = (((a21 + -547391) / 5) / 5); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((a8==6) && ( a14 <= -148 && ((input == 6) && ((a9==3) || (a9==4))))) && ((-78 < a27) && (100 >= a27)) ) && 5 < a21 )){ + a27 = ((((a27 % 40)+ 141) * 5) / 5); + a8 = 5; + a9 = 4; + + return 25; + } else if(( ((-148 < a14) && (13 >= a14)) && ((( a21 <= -178 && ((a9==4) && (input == 6))) && a27 <= -78 ) && (a8==6)))){ + if((a8==5)){ + a14 = ((((a14 - 384256) * 1) * 10)/ 9); + a27 = ((((((a27 % 40)- -180) * 9)/ 10) * 9)/ 10); + a21 = ((((a21 - 0) + 0) % 74)+ -60); + a8 = 7; + a9 = 3; + + } else{ + a14 = (((a14 + -470715) * 1) * 1); + a21 = (((((a21 * 9)/ 10) % 74)- 65) / 5); + a8 = 5; + + } return -1; + } else if((( a14 <= -148 && ((a8==7) && (((input == 3) && ((a9==2) || (a9==3))) && ((-178 < a21) && (-144 >= a21)) ))) && a27 <= -78 )){ + a21 = (((a21 + -479356) - -574088) - 599630); + a8 = 4; + a9 = 2; + + return -1; + } else if(((( ((-148 < a14) && (13 >= a14)) && (((( a21 <= -178 && (a9==5)) || ( a21 <= -178 && (a9==6))) || ((a9==2) && ((-178 < a21) && (-144 >= a21)) )) && (input == 6))) && (a8==7)) && a27 <= -78 )){ + a14 = ((((a14 + -206977) + -91514) + 682831) + -449381); + a21 = (((((a21 / 5) + 413101) * 1) * -1)/ 10); + a8 = 4; + a9 = 3; + + return -1; + } else if(( ((100 < a27) && (182 >= a27)) && ( 5 < a21 && (((a8==6) && ((input == 1) && ((a9==4) || ((a9==2) || (a9==3))))) && a14 <= -148 )))){ + + a9 = 2; + + return 25; + } else if(( ((-78 < a27) && (100 >= a27)) && ((a8==7) && ( a14 <= -148 && ( ((-178 < a21) && (-144 >= a21)) && (((a9==6) || ((a9==4) || (a9==5))) && (input == 1))))))){ + a27 = ((((((a27 % 40)+ 140) * 5) - -426114) % 40)+ 113); + a8 = 6; + a9 = 3; + + return 21; + } else if(((( 5 < a21 && ((a9==2) && ((input == 4) && a14 <= -148 ))) && 182 < a27 ) && (a8==6))){ + a27 = (((((a27 % 40)+ 133) + -4) + -294721) + 294730); + a21 = ((((a21 % 299911)+ -300088) - 153417) - 73428); + a8 = 4; + a9 = 3; + + return 21; + } else if(((a8==4) && ( a14 <= -148 && (((((a9==6) || ((a9==4) || (a9==5))) && (input == 1)) && 5 < a21 ) && ((-78 < a27) && (100 >= a27)) )))){ + a27 = (((a27 + -431781) * 1) * 1); + a21 = ((((a21 % 299911)+ -300088) / 5) + -299344); + a9 = 2; + + return -1; + } else if(( a14 <= -148 && (((((a9==5) && (input == 5)) && ((-78 < a27) && (100 >= a27)) ) && (a8==5)) && ((-144 < a21) && (5 >= a21)) ))){ + a27 = (((a27 * 5) + -35226) + -229784); + a21 = (((a21 - 122775) + -463407) + 413114); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a9==3) && (((( ((-144 < a21) && (5 >= a21)) && (input == 4)) && a14 <= -148 ) && ((100 < a27) && (182 >= a27)) ) && (a8==8)))){ + a27 = (((a27 + -187654) + -101140) * 2); + a21 = (((((a21 * 5) + -135023) + 211965) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a9==3) && ( 182 < a27 && (((input == 2) && (a8==4)) && a14 <= -148 ))) && ((-144 < a21) && (5 >= a21)) )){ + a27 = ((((a27 + 0) + -600156) - -41470) - 41481); + a21 = (((a21 - 598146) - 433) * 1); + a9 = 2; + + return -1; + } else if((( a14 <= -148 && (( 182 < a27 && ((input == 2) && (((a9==4) || (a9==5)) || (a9==6)))) && (a8==8))) && a21 <= -178 )){ + if((a9==4)){ + a27 = ((((a27 - 349438) + -250679) - -351335) + -351316); + a21 = ((((((a21 % 74)- 29) * 5) - 543733) % 74)+ -61); + a8 = 5; + a9 = 5; + + } else{ + a27 = ((((a27 % 88)- 41) + 2) + -9); + a21 = ((((a21 + 284052) / 5) + -527650) + 946064); + a9 = 5; + + } return -1; + } else if(((a8==6) && ( ((100 < a27) && (182 >= a27)) && (((input == 2) && ((( ((-178 < a21) && (-144 >= a21)) && (a9==6)) || ((a9==2) && ((-144 < a21) && (5 >= a21)) )) || ((a9==3) && ((-144 < a21) && (5 >= a21)) ))) && a14 <= -148 )))){ + a27 = ((((a27 - 112876) + -22072) + 621980) + -537112); + a21 = ((((a21 + 208030) / 5) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-78 < a27) && (100 >= a27)) && ((((( ((-178 < a21) && (-144 >= a21)) && (a9==6)) || ((a9==2) && ((-144 < a21) && (5 >= a21)) )) && (input == 5)) && (a8==8)) && a14 <= -148 ))){ + a27 = (((((a27 - 359617) - -468925) - -359496) * -1)/ 10); + a21 = (((a21 + -566093) * 1) / 5); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ( ((-144 < a21) && (5 >= a21)) && ((a9==3) && ((a8==8) && ((input == 3) && ((100 < a27) && (182 >= a27)) )))))){ + a27 = ((((a27 - -529667) - 529811) + -181145) - -181199); + a21 = ((((a21 % 16)+ -159) + -2) - 1); + a8 = 5; + a9 = 4; + + return 25; + } else if(( ((-144 < a21) && (5 >= a21)) && ((((a8==6) && ( ((-148 < a14) && (13 >= a14)) && (input == 1))) && a27 <= -78 ) && (a9==3)))){ + if((a8==6)){ + a14 = (((a14 / 5) - 166358) + -431370); + a8 = 5; + a9 = 4; + + } else{ + a14 = (((a14 - 74238) * 5) + -3640); + a21 = (((((a21 % 16)- 159) + 143499) / 5) - 28817); + a8 = 4; + a9 = 5; + + } return -1; + } else if((( a14 <= -148 && ((((input == 5) && ((a9==4) || (a9==5))) && (a8==8)) && ((-178 < a21) && (-144 >= a21)) )) && 182 < a27 )){ + if( 182 < a14 ){ + a27 = ((((a27 + -600083) - 34) / 5) - 421854); + a21 = ((((a21 * 5) - -483352) - 742016) - -423819); + a9 = 3; + + } else{ + a27 = ((((((a27 * 9)/ 10) / 5) - 387625) % 88)+ 77); + a8 = 6; + a9 = 5; + + } return -1; + } else if((( ((-144 < a21) && (5 >= a21)) && (((((a9==5) || (a9==6)) && (input == 4)) && ((-78 < a27) && (100 >= a27)) ) && (a8==4))) && a14 <= -148 )){ + a21 = ((((a21 + 524239) + -739786) * 10)/ 9); + a8 = 7; + a9 = 4; + + return 25; + } else if((((((a8==5) && ((input == 2) && (((a9==3) || (a9==4)) || (a9==5)))) && a14 <= -148 ) && 5 < a21 ) && 182 < a27 )){ + a27 = (((((a27 * -5)/ 10) * 1) * 10)/ 9); + a21 = (((((a21 + 0) % 299911)+ -300088) / 5) + -437742); + a8 = 4; + a9 = 2; + + return -1; + } else if(((( a21 <= -178 && ((a8==4) && ((((a9==2) || (a9==3)) || (a9==4)) && (input == 2)))) && a14 <= -148 ) && ((-78 < a27) && (100 >= a27)) )){ + + a8 = 6; + a9 = 5; + + return 23; + } else if(( ((-78 < a27) && (100 >= a27)) && (((a8==6) && ( a14 <= -148 && ((input == 4) && (a9==5)))) && 5 < a21 ))){ + a27 = (((a27 + -123910) + -400016) - 19636); + a21 = (((((a21 % 299911)- 300088) + -236635) * 10)/ 9); + a8 = 4; + a9 = 2; + + return -1; + } else if((( a14 <= -148 && ( ((-78 < a27) && (100 >= a27)) && (((input == 1) && ((a9==3) || (a9==4))) && (a8==5)))) && 5 < a21 )){ + a27 = (((a27 * 5) * 5) - 358510); + a21 = ((((a21 + -278652) * 1) / 5) - 447946); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==8) && (( a14 <= -148 && ((input == 4) && (((a9==6) && ((-178 < a21) && (-144 >= a21)) ) || ( ((-144 < a21) && (5 >= a21)) && (a9==2))))) && 182 < a27 ))){ + a27 = (((((a27 * 9)/ 10) / 5) % 40)+ 107); + a21 = (((a21 / 5) + -544237) + 648888); + a8 = 7; + a9 = 6; + + return -1; + } else if(((a8==8) && ((a9==3) && ( a21 <= -178 && (( ((-78 < a27) && (100 >= a27)) && (input == 5)) && a14 <= -148 ))))){ + a27 = ((((a27 - -28691) * 5) % 40)+ 110); + a21 = ((((((a21 % 16)+ -148) * 5) + 122018) % 16)- 162); + a8 = 5; + a9 = 5; + + return 21; + } else if(( ((-144 < a21) && (5 >= a21)) && (( a14 <= -148 && (((input == 6) && ((a9==6) || ((a9==4) || (a9==5)))) && (a8==6))) && 182 < a27 ))){ + a27 = ((((a27 * 9)/ 10) - 550252) - 19507); + a21 = (((a21 - -516708) + 62235) * 1); + a8 = 7; + a9 = 4; + + return 21; + } else if(((( a14 <= -148 && ( ((100 < a27) && (182 >= a27)) && (((a9==5) || (a9==6)) && (input == 4)))) && (a8==6)) && 5 < a21 )){ + a27 = (((a27 - 469331) + 469170) / 5); + a21 = ((((a21 / 5) % 74)- 117) + 8); + a8 = 4; + a9 = 6; + + return 21; + } else if(( a27 <= -78 && (( a14 <= -148 && ((((a9==3) || (a9==4)) && (input == 5)) && 5 < a21 )) && (a8==8)))){ + a21 = ((((a21 % 299911)- 300088) - 156978) - 10177); + a8 = 4; + a9 = 2; + + return -1; + } else if((((( a14 <= -148 && ( a21 <= -178 && (input == 3))) && (a9==2)) && ((-78 < a27) && (100 >= a27)) ) && (a8==7))){ + a27 = (((a27 - 520367) + 4463) / 5); + a8 = 4; + + return -1; + } else if(((((a8==4) && ((( ((-178 < a21) && (-144 >= a21)) && (a9==2)) || (( a21 <= -178 && (a9==5)) || ( a21 <= -178 && (a9==6)))) && (input == 2))) && 182 < a27 ) && a14 <= -148 )){ + a27 = (((((a27 - 137200) + -221152) * 1) % 40)+ 141); + a21 = ((((a21 % 299911)+ -178) + -244958) * 1); + a9 = 6; + + return -1; + } else if(( ((-148 < a14) && (13 >= a14)) && (( ((-144 < a21) && (5 >= a21)) && (((input == 2) && (a8==5)) && a27 <= -78 )) && (a9==3)))){ + a14 = (((a14 * 5) - 311341) * 1); + a27 = (((((a27 * 9)/ 10) - -547487) + -213162) - -253180); + a8 = 4; + + return -1; + } else if(( ((-144 < a21) && (5 >= a21)) && ( a14 <= -148 && ((a8==4) && ( 182 < a27 && (((a9==6) || ((a9==4) || (a9==5))) && (input == 3))))))){ + a27 = (((a27 - 600084) - 78) + -15); + a21 = (((((a21 / 5) * 5) + 244213) * -1)/ 10); + a8 = 6; + a9 = 6; + + return -1; + } else if(( ((100 < a27) && (182 >= a27)) && (((((((a9==6) && a21 <= -178 ) || ( ((-178 < a21) && (-144 >= a21)) && (a9==2))) || ( ((-178 < a21) && (-144 >= a21)) && (a9==3))) && (input == 5)) && (a8==8)) && a14 <= -148 ))){ + a27 = (((((a27 * 5) + 210210) / 5) * -1)/ 10); + a21 = ((((a21 % 299911)- 178) - 275213) / 5); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a9==3) && ( a27 <= -78 && ((( ((-148 < a14) && (13 >= a14)) && (input == 5)) && 5 < a21 ) && (a8==7))))){ + a21 = (((((a21 % 74)- 104) * 10)/ 9) / 5); + a8 = 5; + + return -1; + } else if(((a8==7) && ( ((-178 < a21) && (-144 >= a21)) && ((((input == 6) && ((a9==4) || (a9==5))) && a14 <= -148 ) && ((100 < a27) && (182 >= a27)) )))){ + a27 = ((((((a27 * -8)/ 10) - 22865) - -485738) * -1)/ 10); + a21 = ((((a21 - 188799) * 3) / 5) - -113273); + a8 = 4; + a9 = 3; + + return -1; + } else if(((a8==7) && ( a27 <= -78 && ( a14 <= -148 && ( ((-144 < a21) && (5 >= a21)) && ((a9==2) && (input == 6))))))){ + a21 = (((a21 + 100391) * 5) + 78481); + a9 = 6; + + return 25; + } else if((( a14 <= -148 && ( ((-178 < a21) && (-144 >= a21)) && ((a8==4) && (((a9==3) || (a9==4)) && (input == 2))))) && 182 < a27 )){ + a27 = ((((a27 + -448098) % 40)- -142) + -1); + a21 = ((((a21 - 290780) * 2) * 1) - -623093); + a9 = 4; + + return 21; + } else if(( ((100 < a27) && (182 >= a27)) && (( a14 <= -148 && ( ((-144 < a21) && (5 >= a21)) && ((input == 6) && (a8==8)))) && (a9==4)))){ + a27 = ((((a27 * -8)/ 10) + -296106) * 2); + a21 = (((a21 + -580757) - 19029) - -69893); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a9==4) && ( ((100 < a27) && (182 >= a27)) && (( 5 < a21 && ((input == 4) && (a8==4))) && a14 <= -148 )))){ + a27 = (((a27 - 528922) * 1) * 1); + a21 = (((((a21 % 299911)- 300088) - 227154) * 10)/ 9); + a9 = 2; + + return -1; + } else if((((( a21 <= -178 && (((a9==5) || (a9==6)) && (input == 2))) && (a8==4)) && ((-78 < a27) && (100 >= a27)) ) && a14 <= -148 )){ + a27 = (((a27 - 254274) * 2) * 1); + a9 = 2; + + return -1; + } else if((((( a14 <= -148 && ((input == 2) && (a8==5))) && ((100 < a27) && (182 >= a27)) ) && ((-144 < a21) && (5 >= a21)) ) && (a9==3))){ + a27 = (((a27 / 5) * 5) + -460068); + a21 = (((a21 + -35314) / 5) * 5); + a8 = 4; + a9 = 2; + + return -1; + } else if(((( ((-148 < a14) && (13 >= a14)) && ( ((-178 < a21) && (-144 >= a21)) && ((input == 6) && (a8==7)))) && a27 <= -78 ) && (a9==6))){ + a14 = (((a14 - 341477) * 1) / 5); + a27 = ((((((a27 - 0) - 0) * 9)/ 10) % 40)+ 161); + a21 = (((a21 / 5) + -347700) - 15787); + a8 = 4; + a9 = 3; + + return -1; + } else if(((a9==3) && (((((input == 3) && (a8==4)) && 182 < a27 ) && ((-144 < a21) && (5 >= a21)) ) && a14 <= -148 ))){ + a27 = ((((((a27 % 88)- -3) * 5) + 263960) % 88)+ 6); + a21 = (((a21 + 480441) * 1) + 94331); + a8 = 7; + + return 21; + } else if(( ((-148 < a14) && (13 >= a14)) && (((((a9==4) && (input == 1)) && (a8==5)) && a27 <= -78 ) && 5 < a21 ))){ + a14 = (((a14 + -101542) * 5) - 51359); + a21 = (((a21 / 5) + -231501) * 2); + a9 = 5; + + return -1; + } else if(( a27 <= -78 && (((input == 3) && (((((a9==6) && (a8==7)) && 5 < a21 ) || (((a9==2) && (a8==8)) && a21 <= -178 )) || ( a21 <= -178 && ((a9==3) && (a8==8))))) && a14 <= -148 ))){ + a21 = ((((a21 - 0) % 299911)- 300088) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if((((((((a9==5) || (a9==6)) && (input == 5)) && (a8==7)) && ((100 < a27) && (182 >= a27)) ) && ((-144 < a21) && (5 >= a21)) ) && a14 <= -148 )){ + a27 = ((((a27 / 5) * 5) - -307584) - 900245); + a21 = (((a21 * 5) + -482678) - 50505); + a8 = 4; + a9 = 2; + + return -1; + } else if((( a14 <= -148 && ( ((-78 < a27) && (100 >= a27)) && ((input == 2) && (((a9==2) && ((-178 < a21) && (-144 >= a21)) ) || (((a9==5) && a21 <= -178 ) || ( a21 <= -178 && (a9==6))))))) && (a8==6))){ + a27 = ((((a27 - 186424) + 120966) * 10)/ 9); + a21 = ((((a21 % 299911)+ -178) - 96643) - 130613); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==5) && ( ((100 < a27) && (182 >= a27)) && (( a14 <= -148 && ((input == 4) && ((a9==6) || ((a9==4) || (a9==5))))) && ((-144 < a21) && (5 >= a21)) )))){ + a27 = ((((a27 + -64695) / 5) - -354998) - 416310); + a21 = ((((a21 / 5) * 5) % 16)- 161); + a8 = 7; + a9 = 2; + + return 25; + } else if(( ((100 < a27) && (182 >= a27)) && ( a14 <= -148 && (((a8==7) && (((a9==4) || (a9==5)) && (input == 4))) && 5 < a21 )))){ + a27 = (((((a27 + 165984) / 5) / 5) * -1)/ 10); + a21 = ((((a21 * 9)/ 10) + -566647) / 5); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a8==4) && (((((a9==2) || (a9==3)) && (input == 2)) && ((100 < a27) && (182 >= a27)) ) && ((-144 < a21) && (5 >= a21)) )) && a14 <= -148 )){ + a27 = ((((a27 + 190978) + -461241) * 10)/ 9); + a21 = ((((a21 / 5) - 341422) * 10)/ 9); + a9 = 2; + + return -1; + } else if(( ((-148 < a14) && (13 >= a14)) && ((a8==6) && ( a27 <= -78 && ( ((-144 < a21) && (5 >= a21)) && ((input == 5) && ((a9==4) || (a9==5)))))))){ + a14 = (((a14 - 565865) + -5921) / 5); + a27 = (((((a27 - 0) / 5) / 5) % 40)+ 149); + a21 = (((a21 - -353471) / 5) + -70839); + a8 = 8; + a9 = 4; + + return -1; + } else if((((((a8==8) && ((input == 2) && a14 <= -148 )) && (a9==3)) && a21 <= -178 ) && ((-78 < a27) && (100 >= a27)) )){ + a27 = ((((a27 + -471144) - -732032) - -3285) - 803297); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a27 <= -78 && ( ((-148 < a14) && (13 >= a14)) && ((a8==5) && (( ((-144 < a21) && (5 >= a21)) && (input == 1)) && (a9==3)))))){ + if( ((-148 < a14) && (13 >= a14)) ){ + a14 = ((((a14 - 412875) * 10)/ 9) + 186262); + a27 = (((a27 / 5) + 213975) * 2); + a21 = ((((a21 % 16)- 159) + -1) + -1); + a8 = 7; + a9 = 4; + + } else{ + a14 = (((a14 + -157792) * 3) / 5); + a21 = (((((a21 % 16)+ -161) * 5) % 16)- 150); + a8 = 4; + a9 = 2; + + } return -1; + } else if((( a14 <= -148 && ((a8==8) && ((((a9==6) && ((-178 < a21) && (-144 >= a21)) ) || ( ((-144 < a21) && (5 >= a21)) && (a9==2))) && (input == 4)))) && ((-78 < a27) && (100 >= a27)) )){ + a27 = (((((a27 + 121397) * 10)/ -9) + 240938) - 158949); + a21 = (((((a21 + -234437) + -219766) + 606404) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ((( ((-78 < a27) && (100 >= a27)) && ((a8==6) && (input == 1))) && ((-178 < a21) && (-144 >= a21)) ) && (a9==5)))){ + a27 = ((((a27 * 5) / 5) / 5) + 140); + a21 = ((((a21 * 10)/ 8) - 461884) * 1); + a8 = 5; + a9 = 2; + + return 23; + } else if(((a8==8) && ((((input == 3) && (((a9==6) && ((-178 < a21) && (-144 >= a21)) ) || ( ((-144 < a21) && (5 >= a21)) && (a9==2)))) && ((100 < a27) && (182 >= a27)) ) && a14 <= -148 ))){ + if( ((-144 < a21) && (5 >= a21)) ){ + a27 = (((a27 * 5) + 321291) / 5); + a21 = (((a21 - 29473) + -260016) / 5); + a8 = 5; + a9 = 3; + + } else{ + a21 = ((((a21 - -587423) / 5) % 16)- 162); + a8 = 5; + a9 = 2; + + } return 21; + } else if(((( ((-144 < a21) && (5 >= a21)) && ( ((-148 < a14) && (13 >= a14)) && ( a27 <= -78 && (input == 4)))) && (a8==6)) && (a9==3))){ + if( ((-178 < a21) && (-144 >= a21)) ){ + a14 = (((a14 - -524545) - 1082601) + -33023); + a21 = ((((a21 - 416331) + -42459) - -829820) - 835753); + a8 = 8; + a9 = 4; + + } else{ + a14 = (((a14 - -385286) - 434992) * 5); + a21 = (((a21 / 5) - -81890) - 486359); + a8 = 5; + a9 = 2; + + } return -1; + } else if((( a14 <= -148 && ((a8==6) && (((( ((-178 < a21) && (-144 >= a21)) && (a9==6)) || ( ((-144 < a21) && (5 >= a21)) && (a9==2))) || ((a9==3) && ((-144 < a21) && (5 >= a21)) )) && (input == 3)))) && 182 < a27 )){ + a27 = (((a27 / 5) / 5) + -319696); + a21 = (((a21 - -471707) * 1) + -671533); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==4) && ((( a14 <= -148 && ((input == 1) && ((a9==2) || (a9==3)))) && 5 < a21 ) && 182 < a27 ))){ + if( 182 < a14 ){ + a21 = ((((((a21 / 5) % 74)- 135) * 5) % 74)- 4); + a8 = 6; + a9 = 2; + + } else{ + a21 = ((((a21 + -582502) % 74)- 69) + -1); + a8 = 6; + a9 = 5; + + } return 23; + } else if(( ((-144 < a21) && (5 >= a21)) && ( 182 < a27 && ((a8==7) && ( a14 <= -148 && (((a9==5) || (a9==6)) && (input == 6))))))){ + a27 = ((((a27 + -600110) + 525486) - -43267) - 568794); + a21 = (((a21 - 41279) * 5) * 2); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((((input == 1) && (a9==5)) && ((-78 < a27) && (100 >= a27)) ) && (a8==8)) && a14 <= -148 ) && ((-178 < a21) && (-144 >= a21)) )){ + a27 = ((((a27 * 5) % 40)+ 140) - 0); + a21 = ((((a21 * 5) * 5) % 74)- 2); + a8 = 6; + a9 = 6; + + return 21; + } else if(((a9==3) && (( ((100 < a27) && (182 >= a27)) && (((input == 1) && ((-178 < a21) && (-144 >= a21)) ) && (a8==7))) && a14 <= -148 ))){ + a27 = (((((a27 * 10)/ -9) * 10)/ 9) * 5); + a21 = (((((a21 * 10)/ 13) - -31) + -200497) - -200536); + a8 = 6; + a9 = 6; + + return -1; + } else if(((((input == 3) && (((((a9==6) && (a8==5)) && 5 < a21 ) || ( a21 <= -178 && ((a9==2) && (a8==6)))) || (((a8==6) && (a9==3)) && a21 <= -178 ))) && ((-148 < a14) && (13 >= a14)) ) && a27 <= -78 )){ + a14 = (((a14 + 472038) - 634000) - 336176); + a21 = ((((((a21 % 74)- 69) - 1) * 5) % 74)+ -69); + a8 = 6; + a9 = 3; + + return -1; + } else if(((( ((100 < a27) && (182 >= a27)) && (((( a21 <= -178 && (a9==6)) || ( ((-178 < a21) && (-144 >= a21)) && (a9==2))) || ((a9==3) && ((-178 < a21) && (-144 >= a21)) )) && (input == 2))) && (a8==8)) && a14 <= -148 )){ + a27 = (((a27 / 5) + 9) / 5); + a21 = (((((a21 - -565496) % 16)+ -159) / 5) - 142); + a8 = 5; + a9 = 2; + + return 23; + } else if(((a9==2) && ( ((100 < a27) && (182 >= a27)) && ( a21 <= -178 && (( a14 <= -148 && (input == 3)) && (a8==7)))))){ + a27 = (((a27 - 454385) * 1) / 5); + a21 = (((((a21 % 16)- 154) - 5) + 214084) - 214081); + a8 = 5; + a9 = 5; + + return -1; + } else if(( ((100 < a27) && (182 >= a27)) && ((((a9==6) && ( ((-144 < a21) && (5 >= a21)) && (input == 2))) && a14 <= -148 ) && (a8==6)))){ + a27 = (((a27 + -575564) + -13967) + -6228); + a21 = ((((a21 % 16)+ -161) - 1) - 0); + a8 = 7; + a9 = 3; + + return -1; + } else if(((( a14 <= -148 && ((((a9==2) && 5 < a21 ) || (((a9==5) && ((-144 < a21) && (5 >= a21)) ) || ( ((-144 < a21) && (5 >= a21)) && (a9==6)))) && (input == 2))) && (a8==6)) && ((-78 < a27) && (100 >= a27)) )){ + a27 = (((a27 - 174002) - -83964) - 155258); + a21 = ((((a21 * 9)/ 10) - 543242) - 15496); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a8==5) && ( a14 <= -148 && ((((a9==3) || (a9==4)) && (input == 4)) && ((-144 < a21) && (5 >= a21)) ))) && ((-78 < a27) && (100 >= a27)) )){ + a27 = (((a27 + -175974) * 3) - 786); + a21 = (((a21 / 5) * 5) - 10825); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a9==2) && (( ((-144 < a21) && (5 >= a21)) && ( ((100 < a27) && (182 >= a27)) && (input == 2))) && (a8==7))) && a14 <= -148 )){ + a27 = (((a27 + -112796) + -55457) - 27873); + a21 = (((a21 + -202086) - 226814) * 1); + a8 = 4; + + return -1; + } else if((((a8==8) && ( ((-144 < a21) && (5 >= a21)) && (((input == 5) && ((100 < a27) && (182 >= a27)) ) && a14 <= -148 ))) && (a9==3))){ + a27 = (((((a27 - -215963) + 301637) / 5) * -1)/ 10); + a21 = (((a21 * 5) - 180356) + -101492); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==4) && ( a21 <= -178 && ((a9==6) && (( a27 <= -78 && (input == 4)) && ((-148 < a14) && (13 >= a14)) ))))){ + if( ((-148 < a14) && (13 >= a14)) ){ + a14 = ((((((a14 - 10515) * 10)/ 9) - -580985) * -1)/ 10); + a8 = 6; + + } else{ + a14 = (((a14 - 235835) + -208620) + -54151); + a27 = (((((a27 % 299908)+ 300090) / 5) * 51)/ 10); + a21 = (((((a21 - -228470) + 256921) * 1) % 16)+ -159); + a8 = 8; + a9 = 5; + + } return -1; + } else if((((((((a9==2) || (a9==3)) && (input == 4)) && (a8==7)) && 5 < a21 ) && a14 <= -148 ) && 182 < a27 )){ + if( 182 < a27 ){ + a27 = (((((a27 + 0) * -5)/ 10) * 10)/ 9); + a8 = 4; + a9 = 2; + + } else{ + a27 = (((a27 + -600145) - 21) + -12); + a21 = ((((a21 - 0) / 5) % 74)- 85); + a8 = 6; + a9 = 3; + + } return -1; + } else if((( a14 <= -148 && ((((a8==5) && (input == 1)) && (a9==3)) && a21 <= -178 )) && ((100 < a27) && (182 >= a27)) )){ + a27 = (((((a27 * 10)/ -9) + -263470) * 10)/ 9); + a8 = 4; + a9 = 2; + + return -1; + } else if(((( ((-144 < a21) && (5 >= a21)) && (((input == 5) && ((a9==5) || (a9==6))) && 182 < a27 )) && (a8==8)) && a14 <= -148 )){ + if((a9==4)){ + a27 = (((((a27 % 88)+ 2) * 10)/ 9) + -53); + a8 = 7; + a9 = 3; + + } else{ + a21 = (((((a21 - 326238) * 1) / 5) * -1)/ 10); + a9 = 3; + + } return -1; + } else if((((( 182 < a27 && ((input == 2) && ((-178 < a21) && (-144 >= a21)) )) && a14 <= -148 ) && (a8==6)) && (a9==5))){ + a27 = (((a27 - 600148) + -25) * 1); + a21 = (((a21 / 5) + -166670) * 3); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ((a8==8) && ( a27 <= -78 && (((input == 1) && ((a9==4) || (a9==5))) && ((-144 < a21) && (5 >= a21)) ))))){ + a21 = ((((a21 / 5) + 75005) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if(( 5 < a21 && ( ((-78 < a27) && (100 >= a27)) && ((a9==5) && ((a8==6) && ((input == 3) && a14 <= -148 )))))){ + a27 = (((((a27 - -234448) + 197914) * 1) * -1)/ 10); + a21 = ((((a21 / 5) * 4) - 80965) + -402609); + a8 = 4; + a9 = 2; + + return -1; + } else if((((((a9==6) && ((input == 2) && (a8==6))) && a14 <= -148 ) && 5 < a21 ) && ((-78 < a27) && (100 >= a27)) )){ + a27 = (((a27 + -193980) * 3) + -4362); + a21 = ((((a21 + 0) % 299911)- 300088) - 299800); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==7) && ( ((-148 < a14) && (13 >= a14)) && (((a9==2) && ((input == 4) && a27 <= -78 )) && a21 <= -178 )))){ + if( 182 < a14 ){ + a14 = (((a14 + -523669) * 1) / 5); + a27 = (((((a27 / 5) - -495590) - -62155) % 40)+ 109); + a21 = (((a21 + 600121) - 194049) - -193952); + a8 = 8; + a9 = 3; + + } else{ + a14 = ((((a14 - 467867) + -77415) - -1033220) - 583607); + a21 = (((a21 + 600147) + 24) * 1); + a8 = 4; + a9 = 3; + + } return -1; + } else if(( a14 <= -148 && ( ((-78 < a27) && (100 >= a27)) && ((a8==8) && ( ((-144 < a21) && (5 >= a21)) && (((a9==6) || ((a9==4) || (a9==5))) && (input == 4))))))){ + a27 = (((a27 - 249053) * 2) * 1); + a21 = (((a21 / 5) + -132803) * 4); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==6) && (( a14 <= -148 && ((input == 6) && (((a9==3) && ((-144 < a21) && (5 >= a21)) ) || (((a9==6) && ((-178 < a21) && (-144 >= a21)) ) || ((a9==2) && ((-144 < a21) && (5 >= a21)) ))))) && ((100 < a27) && (182 >= a27)) ))){ + a27 = (((a27 / 5) + -34426) - 104732); + a21 = (((a21 - 468782) - 7283) + -65139); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((100 < a27) && (182 >= a27)) && ( a14 <= -148 && (((( ((-144 < a21) && (5 >= a21)) && (a9==2)) || (((a9==5) && ((-178 < a21) && (-144 >= a21)) ) || ( ((-178 < a21) && (-144 >= a21)) && (a9==6)))) && (input == 5)) && (a8==5))))){ + a27 = ((((a27 * -1)/ 10) * 5) - -76); + a21 = ((((a21 + -122927) % 74)- -3) - 7); + a8 = 6; + a9 = 4; + + return -1; + } else if((( a14 <= -148 && ((input == 5) && (( a21 <= -178 && ((a8==5) && (a9==2))) || ((((a8==4) && (a9==5)) && 5 < a21 ) || (((a8==4) && (a9==6)) && 5 < a21 ))))) && ((100 < a27) && (182 >= a27)) )){ + a27 = (((a27 - 579488) / 5) / 5); + a21 = ((((a21 % 299911)- 300088) * 1) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if((((( 182 < a27 && ((((a9==4) || (a9==5)) || (a9==6)) && (input == 2))) && a14 <= -148 ) && (a8==6)) && ((-144 < a21) && (5 >= a21)) )){ + a27 = (((a27 + -600109) + -45) + -18); + a21 = (((a21 + -185425) - 212820) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if((( ((100 < a27) && (182 >= a27)) && ((a8==8) && ((((a9==5) || (a9==6)) && (input == 4)) && a14 <= -148 ))) && 5 < a21 )){ + a27 = ((((a27 * 10)/ -9) * 5) + -226809); + a21 = ((((((a21 * 9)/ 10) + 42053) * 1) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if((((((input == 4) && (((a9==2) && ((-178 < a21) && (-144 >= a21)) ) || (( a21 <= -178 && (a9==5)) || ((a9==6) && a21 <= -178 )))) && 182 < a27 ) && a14 <= -148 ) && (a8==4))){ + a27 = ((((a27 - 600091) - -559466) * 1) + -559490); + a21 = ((((a21 + 276975) % 299911)- 300088) - 2); + a9 = 2; + + return -1; + } else if(( ((-148 < a14) && (13 >= a14)) && ( a21 <= -178 && ((a9==6) && ((a8==4) && ((input == 5) && a27 <= -78 )))))){ + if( a27 <= -78 ){ + a14 = (((a14 / 5) + -73329) * 5); + a27 = ((((a27 % 88)- -70) / 5) * 5); + a8 = 5; + + } else{ + a14 = (((a14 * 5) + -161972) * 3); + a21 = (((a21 - -600157) - -13) / 5); + a9 = 5; + + } return -1; + } else if(( ((100 < a27) && (182 >= a27)) && (((a8==6) && ((input == 2) && (((a9==2) && ((-178 < a21) && (-144 >= a21)) ) || (( a21 <= -178 && (a9==5)) || ( a21 <= -178 && (a9==6)))))) && a14 <= -148 ))){ + a27 = (((a27 - 503901) - -79154) + 11931); + a21 = ((((a21 * 9)/ 10) - 2291) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if((( a14 <= -148 && (((a8==7) && ((input == 6) && ((a9==5) || (a9==6)))) && ((100 < a27) && (182 >= a27)) )) && ((-144 < a21) && (5 >= a21)) )){ + a27 = (((((a27 - -411543) + -411695) * 5) % 88)+ 11); + a21 = (((a21 - -563159) - -1267) + 35162); + a8 = 8; + a9 = 3; + + return 21; + } else if(((a8==6) && ((((((a9==3) || (a9==4)) && (input == 2)) && a21 <= -178 ) && ((-78 < a27) && (100 >= a27)) ) && a14 <= -148 ))){ + a27 = ((((a27 + -512505) % 40)+ 181) + -16); + a8 = 4; + a9 = 6; + + return 23; + } else if((( a14 <= -148 && ((((input == 6) && (a9==3)) && ((-78 < a27) && (100 >= a27)) ) && a21 <= -178 )) && (a8==8))){ + a27 = (((a27 * 5) - 192850) * 3); + a8 = 4; + a9 = 2; + + return -1; + } else if((((((input == 3) && (((a9==6) && ((-144 < a21) && (5 >= a21)) ) || ( 5 < a21 && (a9==2)))) && a27 <= -78 ) && a14 <= -148 ) && (a8==8))){ + a21 = ((((a21 % 299911)+ -300088) - 0) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(((( a27 <= -78 && ((a9==4) && ((input == 4) && (a8==8)))) && a21 <= -178 ) && a14 <= -148 )){ + a27 = (((((a27 % 88)- -39) - -44) - -592069) + -592113); + a8 = 4; + a9 = 6; + + return 23; + } else if(( ((100 < a27) && (182 >= a27)) && ((a8==4) && ( a14 <= -148 && ((input == 3) && (((a9==6) && a21 <= -178 ) || ( ((-178 < a21) && (-144 >= a21)) && (a9==2)))))))){ + a21 = ((((a21 % 299911)+ -178) + -149957) * 1); + a9 = 3; + + return 25; + } else if(( ((-148 < a14) && (13 >= a14)) && ( a27 <= -78 && (((((a9==4) || (a9==5)) && (input == 2)) && (a8==7)) && 5 < a21 )))){ + if((a9==5)){ + a14 = (((a14 - 484747) - 22947) + -70606); + a8 = 4; + a9 = 4; + + } else{ + a14 = (((((a14 / 5) * 5) - -515691) * -1)/ 10); + a8 = 4; + a9 = 3; + + } return -1; + } else if((( a14 <= -148 && ((a8==5) && ((input == 5) && (( 5 < a21 && (a9==2)) || (((a9==5) && ((-144 < a21) && (5 >= a21)) ) || ( ((-144 < a21) && (5 >= a21)) && (a9==6))))))) && 182 < a27 )){ + a27 = (((((a27 + -48617) / 5) - -124657) % 40)+ 141); + a21 = (((((a21 * 9)/ 10) - -59096) % 16)+ -171); + a9 = 6; + + return 21; + } else if((((a8==8) && ( ((-144 < a21) && (5 >= a21)) && ( a14 <= -148 && (((a9==5) || (a9==6)) && (input == 3))))) && 182 < a27 )){ + a27 = (((a27 + -600149) - -382119) - 382097); + a21 = (((a21 - -81768) + 294814) - -132116); + a9 = 4; + + return 21; + } else if((((a8==7) && (( ((-148 < a14) && (13 >= a14)) && ((input == 4) && (((a9==3) || (a9==4)) || (a9==5)))) && a27 <= -78 )) && ((-178 < a21) && (-144 >= a21)) )){ + a14 = (((a14 - -368656) + -572527) + 120225); + a21 = (((a21 - 161134) + -359907) - -191610); + a8 = 6; + a9 = 4; + + return -1; + } else if(( ((-178 < a21) && (-144 >= a21)) && (( a14 <= -148 && (((input == 2) && ((100 < a27) && (182 >= a27)) ) && (a9==3))) && (a8==7)))){ + a27 = ((((a27 * 5) * -2)/ 10) * 5); + a21 = ((((a21 * 10)/ -9) / 5) / 5); + a8 = 6; + + return -1; + } else if(((a8==6) && ( a14 <= -148 && ((((input == 2) && 5 < a21 ) && (a9==3)) && 182 < a27 )))){ + a27 = ((((a27 / 5) / 5) / 5) + -427768); + a21 = ((((a21 % 299911)- 300088) / 5) - 510883); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-178 < a21) && (-144 >= a21)) && ((((((a9==3) || (a9==4)) && (input == 2)) && ((-148 < a14) && (13 >= a14)) ) && a27 <= -78 ) && (a8==5)))){ + a14 = (((a14 + -527219) * 1) * 1); + a21 = ((((a21 / 5) / 5) - -586790) - 586876); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==7) && (( a27 <= -78 && ( ((-148 < a14) && (13 >= a14)) && (((a9==4) || (a9==5)) && (input == 3)))) && 5 < a21 ))){ + a14 = (((a14 * 5) - 75343) * 5); + a21 = (((((a21 % 16)- 162) + 2) + 579242) - 579258); + a8 = 5; + a9 = 3; + + return -1; + } else if(( a14 <= -148 && (( ((100 < a27) && (182 >= a27)) && ((a8==4) && ((input == 2) && ((a9==6) || ((a9==4) || (a9==5)))))) && ((-144 < a21) && (5 >= a21)) ))){ + a27 = (((a27 + -340716) + -177272) * 1); + a21 = ((((a21 + -356101) * 1) * 10)/ 9); + a9 = 2; + + return -1; + } else if(((((((input == 1) && (a9==3)) && a14 <= -148 ) && ((-178 < a21) && (-144 >= a21)) ) && (a8==7)) && ((-78 < a27) && (100 >= a27)) )){ + a27 = ((((a27 % 40)+ 141) / 5) + 115); + a21 = ((((a21 - -110936) / 5) - -345538) - 367831); + a8 = 6; + a9 = 6; + + return 25; + } else if(((a9==3) && (((((input == 2) && (a8==7)) && a14 <= -148 ) && ((-78 < a27) && (100 >= a27)) ) && ((-178 < a21) && (-144 >= a21)) ))){ + a27 = (((a27 - 146150) - -675307) + -547558); + a21 = ((((a21 * 10)/ 8) + -597948) + -904); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==5) && (( ((100 < a27) && (182 >= a27)) && ((input == 3) && (( ((-144 < a21) && (5 >= a21)) && (a9==2)) || (((a9==5) && ((-178 < a21) && (-144 >= a21)) ) || ((a9==6) && ((-178 < a21) && (-144 >= a21)) ))))) && a14 <= -148 ))){ + a21 = (((((a21 % 16)+ -159) * 5) % 16)+ -149); + a8 = 4; + a9 = 4; + + return -1; + } else if(( ((-144 < a21) && (5 >= a21)) && ((( a14 <= -148 && ((input == 5) && (((a9==2) || (a9==3)) || (a9==4)))) && ((-78 < a27) && (100 >= a27)) ) && (a8==7)))){ + a27 = (((((a27 % 40)- -142) / 5) + -39478) + 39578); + a8 = 5; + a9 = 2; + + return 21; + } else if((((a8==8) && ( a14 <= -148 && ((input == 1) && ((( a21 <= -178 && (a9==6)) || ((a9==2) && ((-178 < a21) && (-144 >= a21)) )) || ( ((-178 < a21) && (-144 >= a21)) && (a9==3)))))) && ((100 < a27) && (182 >= a27)) )){ + a27 = ((((((a27 * -8)/ 10) - -486883) * 1) * -1)/ 10); + a21 = ((((a21 + 190246) % 299911)+ -300088) + -2); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-178 < a21) && (-144 >= a21)) && (((((input == 2) && ((-78 < a27) && (100 >= a27)) ) && (a8==5)) && (a9==2)) && a14 <= -148 ))){ + a27 = (((a27 - 178423) - 119687) * 2); + a21 = (((a21 - 490621) - 13072) + -17329); + a8 = 4; + + return -1; + } else if((((a9==3) && ( ((-78 < a27) && (100 >= a27)) && (((input == 2) && a14 <= -148 ) && 5 < a21 ))) && (a8==4))){ + a27 = (((a27 - 439906) - 124074) / 5); + a21 = ((((((a21 % 299911)+ -300088) / 5) / 5) * 255)/ 10); + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ( a27 <= -78 && ((a8==7) && ( ((-178 < a21) && (-144 >= a21)) && (((a9==2) || (a9==3)) && (input == 2))))))){ + a21 = ((((a21 * 13)/ 10) + -225891) - -217524); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a27 <= -78 && ((a8==8) && ( a14 <= -148 && (((( ((-178 < a21) && (-144 >= a21)) && (a9==6)) || ((a9==2) && ((-144 < a21) && (5 >= a21)) )) || ((a9==3) && ((-144 < a21) && (5 >= a21)) )) && (input == 6)))))){ + a21 = (((a21 - 326594) + -257213) / 5); + a8 = 4; + a9 = 2; + + return -1; + } else if((((((input == 3) && (( 5 < a21 && (a9==2)) || (( ((-144 < a21) && (5 >= a21)) && (a9==5)) || ( ((-144 < a21) && (5 >= a21)) && (a9==6))))) && a14 <= -148 ) && 182 < a27 ) && (a8==5))){ + a27 = ((((a27 - 600105) - 54) + 76175) - 76140); + a21 = ((((a21 % 299911)+ -300088) - 1) + -1); + a8 = 4; + a9 = 2; + + return -1; + } else if((( a14 <= -148 && ((input == 4) && ((( 5 < a21 && ((a8==7) && (a9==6))) || ( a21 <= -178 && ((a8==8) && (a9==2)))) || (((a8==8) && (a9==3)) && a21 <= -178 )))) && a27 <= -78 )){ + a21 = (((((a21 % 299911)- 300088) - 2) / 5) - 479603); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==8) && (( a14 <= -148 && (((input == 2) && ((a9==3) || (a9==4))) && a27 <= -78 )) && 5 < a21 ))){ + a21 = ((((a21 * 9)/ 10) + -541487) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if((( ((-148 < a14) && (13 >= a14)) && ( a27 <= -78 && (((a8==7) && (input == 1)) && (a9==2)))) && a21 <= -178 )){ + a14 = (((a14 - -307166) - 49185) + -291887); + a27 = ((((a27 - -92418) % 299908)+ 300090) - 0); + a21 = ((((a21 - -600113) + -73115) + 48705) + 24362); + a8 = 5; + a9 = 6; + + return -1; + } else if(((a8==5) && ( 5 < a21 && ( ((100 < a27) && (182 >= a27)) && (((input == 2) && (((a9==4) || (a9==5)) || (a9==6))) && a14 <= -148 ))))){ + a27 = ((((a27 / 5) + -531227) * 10)/ 9); + a21 = (((a21 / 5) + -592891) - 698); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a8==4) && (((( ((-178 < a21) && (-144 >= a21)) && (a9==2)) || (((a9==5) && a21 <= -178 ) || ( a21 <= -178 && (a9==6)))) && (input == 5)) && a14 <= -148 )) && 182 < a27 )){ + a27 = (((a27 - 600122) * 1) + -6); + a21 = (((((a21 * 9)/ 10) / 5) / 5) + -553055); + a9 = 2; + + return -1; + } else if(( 182 < a27 && ((a8==7) && (( a21 <= -178 && (((a9==3) || (a9==4)) && (input == 3))) && a14 <= -148 )))){ + a27 = ((((a27 - 600079) - -575920) + -275525) + -300470); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((100 < a27) && (182 >= a27)) && ((a8==8) && ( a14 <= -148 && ((((a9==4) || (a9==5)) && (input == 3)) && ((-178 < a21) && (-144 >= a21)) ))))){ + + a8 = 4; + a9 = 3; + + return 25; + } else if(((a8==8) && ((((((a9==6) && ((-144 < a21) && (5 >= a21)) ) || ( 5 < a21 && (a9==2))) && (input == 4)) && a27 <= -78 ) && a14 <= -148 ))){ + a27 = (((((a27 % 88)+ 21) + 52) - -591300) - 591338); + a21 = ((((a21 % 16)+ -159) + -3) * 1); + a8 = 5; + a9 = 5; + + return 21; + } else if(( 182 < a27 && ((a8==7) && ( a14 <= -148 && ((((a9==4) || ((a9==2) || (a9==3))) && (input == 4)) && ((-178 < a21) && (-144 >= a21)) ))))){ + a27 = (((a27 - 600124) - 29) - 19); + a21 = ((((a21 * 13)/ 10) - 220262) * 2); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==8) && (( 5 < a21 && ((((a9==3) || (a9==4)) && (input == 6)) && a27 <= -78 )) && a14 <= -148 ))){ + a21 = ((((a21 % 299911)+ -300088) - -188218) - 432691); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((((input == 1) && ((-178 < a21) && (-144 >= a21)) ) && (a9==4)) && ((-78 < a27) && (100 >= a27)) ) && a14 <= -148 ) && (a8==5))){ + a27 = (((a27 - 422455) - 105104) / 5); + a21 = ((((a21 - 576126) - 15067) + 673911) - 437192); + a8 = 4; + a9 = 2; + + return -1; + } else if((( ((-148 < a14) && (13 >= a14)) && ( a27 <= -78 && ((input == 2) && (( ((-144 < a21) && (5 >= a21)) && (a9==6)) || ( 5 < a21 && (a9==2)))))) && (a8==6))){ + a21 = ((((((a21 * 9)/ 10) % 74)- 69) - -401021) + -401020); + a8 = 7; + a9 = 5; + + return 21; + } else if(((a8==6) && ((a9==5) && ( a14 <= -148 && (((input == 6) && ((-78 < a27) && (100 >= a27)) ) && ((-178 < a21) && (-144 >= a21)) ))))){ + a27 = ((((a27 % 40)+ 140) + 0) * 1); + a21 = ((((((a21 + -487552) * 10)/ 9) + 763828) * -1)/ 10); + a8 = 5; + a9 = 4; + + return 25; + } else if(((a8==6) && ( a14 <= -148 && (( ((-78 < a27) && (100 >= a27)) && ((input == 2) && ((a9==3) || (a9==4)))) && ((-178 < a21) && (-144 >= a21)) )))){ + a27 = ((((a27 + 80415) / 5) * 10)/ 9); + a21 = ((((a21 * 5) * 5) + 100418) - 227741); + a8 = 4; + a9 = 5; + + return 21; + } else if(((( ((100 < a27) && (182 >= a27)) && ((input == 1) && (((a9==2) && ((-144 < a21) && (5 >= a21)) ) || (( ((-178 < a21) && (-144 >= a21)) && (a9==5)) || ( ((-178 < a21) && (-144 >= a21)) && (a9==6)))))) && (a8==5)) && a14 <= -148 )){ + a27 = ((((a27 * 5) / 5) - -98392) + -98501); + a21 = ((((a21 % 16)+ -160) - 432040) + 432038); + a8 = 4; + a9 = 2; + + return 21; + } else if(( ((-148 < a14) && (13 >= a14)) && (((a8==4) && ((input == 2) && (((a9==6) && ((-178 < a21) && (-144 >= a21)) ) || ((a9==2) && ((-144 < a21) && (5 >= a21)) )))) && a27 <= -78 ))){ + a14 = (((a14 + -187554) - 278882) + -8849); + a27 = ((((a27 - 0) % 40)- -143) * 1); + a21 = ((((((a21 % 16)+ -159) - 3) * 5) % 16)- 158); + a9 = 5; + + return -1; + } else if(( ((-144 < a21) && (5 >= a21)) && ((a8==4) && ((((input == 4) && ((a9==3) || (a9==4))) && ((-148 < a14) && (13 >= a14)) ) && a27 <= -78 )))){ + a14 = (((a14 - 418732) * 1) * 1); + a21 = ((((a21 + 294959) % 16)+ -162) - -2); + a9 = 3; + + return 21; + } else if(( a27 <= -78 && (( a14 <= -148 && (((input == 1) && ((a9==3) || (a9==4))) && 5 < a21 )) && (a8==8)))){ + a21 = ((((a21 * 9)/ 10) / 5) + -170644); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-78 < a27) && (100 >= a27)) && ( a14 <= -148 && ( 5 < a21 && ((a8==5) && ((input == 3) && ((a9==3) || (a9==4)))))))){ + a27 = (((a27 - 304966) - 173321) * 1); + a21 = (((((a21 % 299911)- 300088) / 5) * 5) + -207313); + a8 = 4; + a9 = 2; + + return -1; + } else if((((( a14 <= -148 && ((input == 6) && (((a9==3) || (a9==4)) || (a9==5)))) && 5 < a21 ) && (a8==5)) && 182 < a27 )){ + a27 = (((((a27 % 88)- 12) + -49) + 178542) + -178492); + a8 = 8; + a9 = 4; + + return -1; + } else if(((a8==7) && ( a14 <= -148 && ( 5 < a21 && ((a9==6) && ( ((-78 < a27) && (100 >= a27)) && (input == 2))))))){ + a27 = (((a27 + -322070) * 1) - 93610); + a21 = (((((((a21 % 299911)+ -300088) * 10)/ 9) / 5) * 46)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-144 < a21) && (5 >= a21)) && ((( a14 <= -148 && ((input == 6) && ((a9==6) || ((a9==4) || (a9==5))))) && (a8==8)) && ((-78 < a27) && (100 >= a27)) ))){ + a27 = (((a27 / 5) / 5) + -465283); + a21 = ((((a21 + 223503) + -727942) * 10)/ 9); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a14 <= -148 && ( 182 < a27 && (((((a8==5) && (a9==2)) && a21 <= -178 ) || (( 5 < a21 && ((a8==4) && (a9==5))) || ( 5 < a21 && ((a8==4) && (a9==6))))) && (input == 2))))){ + a27 = (((a27 + -188035) / 5) - 254566); + a21 = ((((a21 % 299911)+ -300088) / 5) - 136210); + a8 = 4; + a9 = 2; + + return -1; + } else if(((a8==5) && ( a14 <= -148 && (((input == 4) && (((a9==3) && ((-144 < a21) && (5 >= a21)) ) || (( ((-178 < a21) && (-144 >= a21)) && (a9==6)) || ((a9==2) && ((-144 < a21) && (5 >= a21)) )))) && 182 < a27 )))){ + a27 = ((((((a27 * -5)/ 10) * 1) / 5) * 44)/ 10); + a21 = (((a21 - 284965) * 2) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-78 < a27) && (100 >= a27)) && (((a8==8) && (( a14 <= -148 && (input == 5)) && ((-144 < a21) && (5 >= a21)) )) && (a9==3)))){ + a27 = ((((a27 - 414316) + 700207) * 10)/ -9); + a21 = (((((a21 - 34785) + -42142) + 141831) * -1)/ 10); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a21 <= -178 && (((a8==7) && (( a14 <= -148 && (input == 4)) && a27 <= -78 )) && (a9==3)))){ + + a8 = 4; + a9 = 2; + + return -1; + } else if(( 5 < a21 && ( a14 <= -148 && (((((a9==2) || (a9==3)) && (input == 5)) && (a8==7)) && ((100 < a27) && (182 >= a27)) )))){ + a27 = ((((a27 * 5) * 10)/ -9) - 176048); + a21 = ((((a21 % 299911)+ -300088) + 471741) + -573725); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((((((a9==5) && ((-178 < a21) && (-144 >= a21)) ) || ((a9==6) && ((-178 < a21) && (-144 >= a21)) )) || ( ((-144 < a21) && (5 >= a21)) && (a9==2))) && (input == 3)) && (a8==4)) && a14 <= -148 ) && 182 < a27 )){ + a27 = (((((a27 % 40)- -137) / 5) * 10)/ 2); + a21 = (((a21 - 315888) - 127730) * 1); + a9 = 3; + + return -1; + } else if(((( a14 <= -148 && ( 182 < a27 && ((input == 5) && ((a9==6) || ((a9==4) || (a9==5)))))) && ((-144 < a21) && (5 >= a21)) ) && (a8==6))){ + a27 = ((((a27 * -5)/ 10) + -228840) * 1); + a21 = ((((a21 - 56480) - -212549) * 10)/ -9); + a8 = 4; + a9 = 2; + + return -1; + } else if(((( ((-144 < a21) && (5 >= a21)) && (( ((-78 < a27) && (100 >= a27)) && (input == 3)) && (a8==8))) && (a9==3)) && a14 <= -148 )){ + a27 = (((((a27 - 261167) * 10)/ 9) * 10)/ 9); + a21 = (((a21 - 290849) / 5) + -271877); + a8 = 4; + a9 = 2; + + return -1; + } else if(( ((-144 < a21) && (5 >= a21)) && ( a14 <= -148 && (( 182 < a27 && (((a9==5) || (a9==6)) && (input == 1))) && (a8==7))))){ + a27 = ((((a27 * -5)/ 10) - -98076) - 345332); + a21 = (((a21 + -15400) / 5) - -200); + a8 = 4; + a9 = 2; + + return -1; + } else if((((a8==7) && ( 182 < a27 && (((input == 2) && ((a9==5) || (a9==6))) && ((-178 < a21) && (-144 >= a21)) ))) && a14 <= -148 )){ + a27 = (((((a27 * -5)/ 10) * 10)/ 9) - 73480); + a21 = (((a21 + -545010) - 16935) * 1); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((((a8==4) && (input == 4)) && a14 <= -148 ) && (a9==3)) && 182 < a27 ) && ((-144 < a21) && (5 >= a21)) )){ + + a8 = 5; + a9 = 5; + + return 23; + } else if((((( ((-144 < a21) && (5 >= a21)) && (((a9==4) || ((a9==2) || (a9==3))) && (input == 2))) && a14 <= -148 ) && (a8==7)) && ((-78 < a27) && (100 >= a27)) )){ + a27 = ((((a27 - 437026) / 5) * 10)/ 9); + a21 = (((a21 - 233728) / 5) * 5); + a8 = 4; + a9 = 2; + + return -1; + } else if(( a27 <= -78 && ((a8==7) && (( ((-148 < a14) && (13 >= a14)) && ((input == 2) && (a9==5))) && ((-144 < a21) && (5 >= a21)) )))){ + a14 = ((((a14 + -92086) + 458013) * -1)/ 10); + a21 = ((((((a21 - -69534) % 16)+ -166) * 5) % 16)+ -156); + a8 = 5; + a9 = 3; + + return -1; + } else if(( a27 <= -78 && ((a9==5) && ((a8==8) && ( a14 <= -148 && ((input == 6) && 5 < a21 )))))){ + a27 = (((((a27 % 88)+ 59) * 5) % 88)+ 11); + a8 = 5; + a9 = 2; + + return 25; + } else if(((((a8==8) && ((input == 5) && (( ((-144 < a21) && (5 >= a21)) && (a9==6)) || ( 5 < a21 && (a9==2))))) && a14 <= -148 ) && a27 <= -78 )){ + a21 = (((a21 - 0) / 5) - 431053); + a8 = 4; + a9 = 2; + + return -1; + } else if(((((input == 6) && ((((a9==6) && (a8==7)) && 5 < a21 ) || ( a21 <= -178 && ((a9==2) && (a8==8))))) && ((100 < a27) && (182 >= a27)) ) && a14 <= -148 )){ + a27 = (((a27 / 5) + -42786) + -547619); + a21 = ((((a21 % 299911)+ -300088) - 1) + -1); + a8 = 4; + a9 = 2; + + return -1; + } else if(((( a14 <= -148 && ((( ((-178 < a21) && (-144 >= a21)) && (a9==2)) || (( a21 <= -178 && (a9==5)) || ( a21 <= -178 && (a9==6)))) && (input == 3))) && ((-78 < a27) && (100 >= a27)) ) && (a8==7))){ + a27 = ((((((a27 % 40)+ 141) - 1) / 5) * 51)/ 10); + a21 = ((((((a21 % 74)+ -24) * 5) * 5) % 74)- 4); + a8 = 6; + a9 = 6; + + return 21; + } + return -2; + } + +int main() +{ + // default output + int output = -1; + + // main i/o-loop + while(1) + { + // read input + int input; + input = __VERIFIER_nondet_int(); + if ((input != 1) && (input != 2) && (input != 3) && (input != 4) && (input != 5) && (input != 6)) return -2; + + // operate eca engine + output = calculate_output(input); + } +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/afterrec_2calls_false-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/afterrec_2calls_false-unreach-call.c new file mode 100644 index 000000000..f8e734987 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/afterrec_2calls_false-unreach-call.c @@ -0,0 +1,22 @@ +extern void __VERIFIER_error(); + +void f(int); +void f2(int); + +void f(int n) { + if (n<3) return; + n--; + f2(n); + ERROR: __VERIFIER_error(); +} + +void f2(int n) { + if (n<3) return; + n--; + f(n); + ERROR: __VERIFIER_error(); +} + +int main(void) { + f(4); +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/bist_cell_true-unreach-call_false-termination.cil.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/bist_cell_true-unreach-call_false-termination.cil.c new file mode 100644 index 000000000..63d867ebb --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/bist_cell_true-unreach-call_false-termination.cil.c @@ -0,0 +1,501 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +extern int __VERIFIER_nondet_int(); + +void error(void) +{ + + { + ERROR: __VERIFIER_error(); + return; +} +} + +int b0_val ; +int b0_val_t ; +int b0_ev ; +int b0_req_up ; +int b1_val ; +int b1_val_t ; +int b1_ev ; +int b1_req_up ; +int d0_val ; +int d0_val_t ; +int d0_ev ; +int d0_req_up ; +int d1_val ; +int d1_val_t ; +int d1_ev ; +int d1_req_up ; +int z_val ; +int z_val_t ; +int z_ev ; +int z_req_up ; +int comp_m1_st ; +int comp_m1_i ; +void method1(void) +{ int s1 ; + int s2 ; + int s3 ; + + { + if (b0_val) { + if (d1_val) { + s1 = 0; + } else { + s1 = 1; + } + } else { + s1 = 1; + } + if (d0_val) { + if (b1_val) { + s2 = 0; + } else { + s2 = 1; + } + } else { + s2 = 1; + } + if (s2) { + s3 = 0; + } else { + if (s1) { + s3 = 0; + } else { + s3 = 1; + } + } + if (s2) { + if (s1) { + s2 = 1; + } else { + s2 = 0; + } + } else { + s2 = 0; + } + if (s2) { + z_val_t = 0; + } else { + if (s3) { + z_val_t = 0; + } else { + z_val_t = 1; + } + } + z_req_up = 1; + comp_m1_st = 2; + + return; +} +} +int is_method1_triggered(void) +{ int __retres1 ; + + { + if ((int )b0_ev == 1) { + __retres1 = 1; + goto return_label; + } else { + if ((int )b1_ev == 1) { + __retres1 = 1; + goto return_label; + } else { + if ((int )d0_ev == 1) { + __retres1 = 1; + goto return_label; + } else { + if ((int )d1_ev == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } + } + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +void update_b0(void) +{ + + { + if ((int )b0_val != (int )b0_val_t) { + b0_val = b0_val_t; + b0_ev = 0; + } else { + + } + b0_req_up = 0; + + return; +} +} +void update_b1(void) +{ + + { + if ((int )b1_val != (int )b1_val_t) { + b1_val = b1_val_t; + b1_ev = 0; + } else { + + } + b1_req_up = 0; + + return; +} +} +void update_d0(void) +{ + + { + if ((int )d0_val != (int )d0_val_t) { + d0_val = d0_val_t; + d0_ev = 0; + } else { + + } + d0_req_up = 0; + + return; +} +} +void update_d1(void) +{ + + { + if ((int )d1_val != (int )d1_val_t) { + d1_val = d1_val_t; + d1_ev = 0; + } else { + + } + d1_req_up = 0; + + return; +} +} +void update_z(void) +{ + + { + if ((int )z_val != (int )z_val_t) { + z_val = z_val_t; + z_ev = 0; + } else { + + } + z_req_up = 0; + + return; +} +} +void update_channels(void) +{ + + { + if ((int )b0_req_up == 1) { + { + update_b0(); + } + } else { + + } + if ((int )b1_req_up == 1) { + { + update_b1(); + } + } else { + + } + if ((int )d0_req_up == 1) { + { + update_d0(); + } + } else { + + } + if ((int )d1_req_up == 1) { + { + update_d1(); + } + } else { + + } + if ((int )z_req_up == 1) { + { + update_z(); + } + } else { + + } + + return; +} +} +void init_threads(void) +{ + + { + if ((int )comp_m1_i == 1) { + comp_m1_st = 0; + } else { + comp_m1_st = 2; + } + + return; +} +} +int exists_runnable_thread(void) +{ int __retres1 ; + + { + if ((int )comp_m1_st == 0) { + __retres1 = 1; + goto return_label; + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +void eval(void) +{ int tmp ; + int tmp___0 ; + + { + { + while (1) { + while_0_continue: /* CIL Label */ ; + { + tmp___0 = exists_runnable_thread(); + } + if (tmp___0) { + + } else { + goto while_0_break; + } + if ((int )comp_m1_st == 0) { + { + tmp = __VERIFIER_nondet_int(); + } + if (tmp) { + { + comp_m1_st = 1; + method1(); + } + } else { + + } + } else { + + } + } + while_0_break: /* CIL Label */ ; + } + + return; +} +} +void fire_delta_events(void) +{ + + { + if ((int )b0_ev == 0) { + b0_ev = 1; + } else { + + } + if ((int )b1_ev == 0) { + b1_ev = 1; + } else { + + } + if ((int )d0_ev == 0) { + d0_ev = 1; + } else { + + } + if ((int )d1_ev == 0) { + d1_ev = 1; + } else { + + } + if ((int )z_ev == 0) { + z_ev = 1; + } else { + + } + + return; +} +} +void reset_delta_events(void) +{ + + { + if ((int )b0_ev == 1) { + b0_ev = 2; + } else { + + } + if ((int )b1_ev == 1) { + b1_ev = 2; + } else { + + } + if ((int )d0_ev == 1) { + d0_ev = 2; + } else { + + } + if ((int )d1_ev == 1) { + d1_ev = 2; + } else { + + } + if ((int )z_ev == 1) { + z_ev = 2; + } else { + + } + + return; +} +} +void activate_threads(void) +{ int tmp ; + + { + { + tmp = is_method1_triggered(); + } + if (tmp) { + comp_m1_st = 0; + } else { + + } + + return; +} +} +int stop_simulation(void) +{ int tmp ; + int __retres2 ; + + { + { + tmp = exists_runnable_thread(); + } + if (tmp) { + __retres2 = 0; + goto return_label; + } else { + + } + __retres2 = 1; + return_label: /* CIL Label */ + return (__retres2); +} +} +void start_simulation(void) +{ int kernel_st ; + int tmp ; + + { + { + kernel_st = 0; + update_channels(); + init_threads(); + fire_delta_events(); + activate_threads(); + reset_delta_events(); + } + { + while (1) { + while_1_continue: /* CIL Label */ ; + { + kernel_st = 1; + eval(); + } + { + kernel_st = 2; + update_channels(); + } + { + kernel_st = 3; + fire_delta_events(); + activate_threads(); + reset_delta_events(); + tmp = stop_simulation(); + } + if (tmp) { + goto while_1_break; + } else { + + } + } + while_1_break: /* CIL Label */ ; + } + + return; +} +} +void init_model(void) +{ + + { + b0_val = 0; + b0_ev = 2; + b0_req_up = 0; + b1_val = 0; + b1_ev = 2; + b1_req_up = 0; + d0_val = 0; + d0_ev = 2; + d0_req_up = 0; + d1_val = 0; + d1_ev = 2; + d1_req_up = 0; + z_val = 0; + z_ev = 2; + z_req_up = 0; + b0_val_t = 1; + b0_req_up = 1; + b1_val_t = 1; + b1_req_up = 1; + d0_val_t = 1; + d0_req_up = 1; + d1_val_t = 1; + d1_req_up = 1; + comp_m1_i = 0; + + return; +} +} +int main(void) +{ int __retres1 ; + + { + { + init_model(); + start_simulation(); + } + if (! ((int )z_val == 0)) { + { + error(); + } + } else { + + } + __retres1 = 0; + return (__retres1); +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/bubble_sort_linux_true-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/bubble_sort_linux_true-unreach-call.c new file mode 100644 index 000000000..c946327bf --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/bubble_sort_linux_true-unreach-call.c @@ -0,0 +1,1020 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * This source code is licensed under the GPL license, see License.GPLv2.txt + * for details. The list implementation is taken from the Linux kernel. + */ + +typedef long unsigned int size_t; +typedef int wchar_t; + +union wait + { + int w_status; + struct + { + unsigned int __w_termsig:7; + unsigned int __w_coredump:1; + unsigned int __w_retcode:8; + unsigned int:16; + } __wait_terminated; + struct + { + unsigned int __w_stopval:8; + unsigned int __w_stopsig:8; + unsigned int:16; + } __wait_stopped; + }; +typedef union + { + union wait *__uptr; + int *__iptr; + } __WAIT_STATUS __attribute__ ((__transparent_union__)); + +typedef struct + { + int quot; + int rem; + } div_t; +typedef struct + { + long int quot; + long int rem; + } ldiv_t; + + +__extension__ typedef struct + { + long long int quot; + long long int rem; + } lldiv_t; + +extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__ , __leaf__)) ; + +extern double atof (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern int atoi (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern long int atol (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +__extension__ extern long long int atoll (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +extern double strtod (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern float strtof (__const char *__restrict __nptr, + char **__restrict __endptr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern long double strtold (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern long int strtol (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern unsigned long int strtoul (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtouq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoll (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtoull (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *l64a (long int __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern long int a64l (__const char *__s) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + +typedef unsigned char __u_char; +typedef unsigned short int __u_short; +typedef unsigned int __u_int; +typedef unsigned long int __u_long; +typedef signed char __int8_t; +typedef unsigned char __uint8_t; +typedef signed short int __int16_t; +typedef unsigned short int __uint16_t; +typedef signed int __int32_t; +typedef unsigned int __uint32_t; +typedef signed long int __int64_t; +typedef unsigned long int __uint64_t; +typedef long int __quad_t; +typedef unsigned long int __u_quad_t; +typedef unsigned long int __dev_t; +typedef unsigned int __uid_t; +typedef unsigned int __gid_t; +typedef unsigned long int __ino_t; +typedef unsigned long int __ino64_t; +typedef unsigned int __mode_t; +typedef unsigned long int __nlink_t; +typedef long int __off_t; +typedef long int __off64_t; +typedef int __pid_t; +typedef struct { int __val[2]; } __fsid_t; +typedef long int __clock_t; +typedef unsigned long int __rlim_t; +typedef unsigned long int __rlim64_t; +typedef unsigned int __id_t; +typedef long int __time_t; +typedef unsigned int __useconds_t; +typedef long int __suseconds_t; +typedef int __daddr_t; +typedef long int __swblk_t; +typedef int __key_t; +typedef int __clockid_t; +typedef void * __timer_t; +typedef long int __blksize_t; +typedef long int __blkcnt_t; +typedef long int __blkcnt64_t; +typedef unsigned long int __fsblkcnt_t; +typedef unsigned long int __fsblkcnt64_t; +typedef unsigned long int __fsfilcnt_t; +typedef unsigned long int __fsfilcnt64_t; +typedef long int __ssize_t; +typedef __off64_t __loff_t; +typedef __quad_t *__qaddr_t; +typedef char *__caddr_t; +typedef long int __intptr_t; +typedef unsigned int __socklen_t; +typedef __u_char u_char; +typedef __u_short u_short; +typedef __u_int u_int; +typedef __u_long u_long; +typedef __quad_t quad_t; +typedef __u_quad_t u_quad_t; +typedef __fsid_t fsid_t; +typedef __loff_t loff_t; +typedef __ino_t ino_t; +typedef __dev_t dev_t; +typedef __gid_t gid_t; +typedef __mode_t mode_t; +typedef __nlink_t nlink_t; +typedef __uid_t uid_t; +typedef __off_t off_t; +typedef __pid_t pid_t; +typedef __id_t id_t; +typedef __ssize_t ssize_t; +typedef __daddr_t daddr_t; +typedef __caddr_t caddr_t; +typedef __key_t key_t; + +typedef __clock_t clock_t; + + + +typedef __time_t time_t; + + +typedef __clockid_t clockid_t; +typedef __timer_t timer_t; +typedef unsigned long int ulong; +typedef unsigned short int ushort; +typedef unsigned int uint; +typedef int int8_t __attribute__ ((__mode__ (__QI__))); +typedef int int16_t __attribute__ ((__mode__ (__HI__))); +typedef int int32_t __attribute__ ((__mode__ (__SI__))); +typedef int int64_t __attribute__ ((__mode__ (__DI__))); +typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); +typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); +typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); +typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); +typedef int register_t __attribute__ ((__mode__ (__word__))); +typedef int __sig_atomic_t; +typedef struct + { + unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; + } __sigset_t; +typedef __sigset_t sigset_t; +struct timespec + { + __time_t tv_sec; + long int tv_nsec; + }; +struct timeval + { + __time_t tv_sec; + __suseconds_t tv_usec; + }; +typedef __suseconds_t suseconds_t; +typedef long int __fd_mask; +typedef struct + { + __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; + } fd_set; +typedef __fd_mask fd_mask; + +extern int select (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + struct timeval *__restrict __timeout); +extern int pselect (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + const struct timespec *__restrict __timeout, + const __sigset_t *__restrict __sigmask); + + +__extension__ +extern unsigned int gnu_dev_major (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned int gnu_dev_minor (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned long long int gnu_dev_makedev (unsigned int __major, + unsigned int __minor) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); + +typedef __blksize_t blksize_t; +typedef __blkcnt_t blkcnt_t; +typedef __fsblkcnt_t fsblkcnt_t; + + +typedef __fsfilcnt_t fsfilcnt_t; +typedef unsigned long int pthread_t; +typedef union +{ + char __size[56]; + long int __align; +} pthread_attr_t; +typedef struct __pthread_internal_list +{ + struct __pthread_internal_list *__prev; + struct __pthread_internal_list *__next; +} __pthread_list_t; +typedef union +{ + struct __pthread_mutex_s + { + int __lock; + unsigned int __count; + int __owner; + unsigned int __nusers; + int __kind; + int __spins; + __pthread_list_t __list; + } __data; + char __size[40]; + long int __align; +} pthread_mutex_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_mutexattr_t; +typedef union +{ + struct + { + int __lock; + unsigned int __futex; + __extension__ unsigned long long int __total_seq; + __extension__ unsigned long long int __wakeup_seq; + __extension__ unsigned long long int __woken_seq; + void *__mutex; + unsigned int __nwaiters; + unsigned int __broadcast_seq; + } __data; + char __size[48]; + __extension__ long long int __align; +} pthread_cond_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_condattr_t; +typedef unsigned int pthread_key_t; +typedef int pthread_once_t; +typedef union +{ + struct + { + int __lock; + unsigned int __nr_readers; + unsigned int __readers_wakeup; + unsigned int __writer_wakeup; + unsigned int __nr_readers_queued; + unsigned int __nr_writers_queued; + int __writer; + int __shared; + unsigned long int __pad1; + unsigned long int __pad2; + unsigned int __flags; + } __data; + char __size[56]; + long int __align; +} pthread_rwlock_t; +typedef union +{ + char __size[8]; + long int __align; +} pthread_rwlockattr_t; +typedef volatile int pthread_spinlock_t; +typedef union +{ + char __size[32]; + long int __align; +} pthread_barrier_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_barrierattr_t; + +extern long int random (void) __attribute__ ((__nothrow__ , __leaf__)); +extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); +extern char *initstate (unsigned int __seed, char *__statebuf, + size_t __statelen) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + + +extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + + + +struct random_data + { + int32_t *fptr; + int32_t *rptr; + int32_t *state; + int rand_type; + int rand_deg; + int rand_sep; + int32_t *end_ptr; + }; + +extern int random_r (struct random_data *__restrict __buf, + int32_t *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int srandom_r (unsigned int __seed, struct random_data *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, + size_t __statelen, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4))); + +extern int setstate_r (char *__restrict __statebuf, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + +extern int rand (void) __attribute__ ((__nothrow__ , __leaf__)); + +extern void srand (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern double drand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int lrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int nrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int mrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int jrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern void srand48 (long int __seedval) __attribute__ ((__nothrow__ , __leaf__)); +extern unsigned short int *seed48 (unsigned short int __seed16v[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + +struct drand48_data + { + unsigned short int __x[3]; + unsigned short int __old_x[3]; + unsigned short int __c; + unsigned short int __init; + unsigned long long int __a; + }; + + +extern int drand48_r (struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int erand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int lrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int nrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int mrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int jrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int srand48_r (long int __seedval, struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int seed48_r (unsigned short int __seed16v[3], + struct drand48_data *__buffer) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int lcong48_r (unsigned short int __param[7], + struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + + + + +extern void *malloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + +extern void *calloc (size_t __nmemb, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + + + + + + + +extern void *realloc (void *__ptr, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); + +extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern void cfree (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + +extern void *alloca (size_t __size) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern void *valloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + +extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + + + +extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + + +extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern void exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern void _Exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern char *getenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *__secure_getenv (__const char *__name) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int putenv (char *__string) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int setenv (__const char *__name, __const char *__value, int __replace) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); +extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int clearenv (void) __attribute__ ((__nothrow__ , __leaf__)); +extern char *mktemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ; +extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern int system (__const char *__command) ; + +extern char *realpath (__const char *__restrict __name, + char *__restrict __resolved) __attribute__ ((__nothrow__ , __leaf__)) ; +typedef int (*__compar_fn_t) (__const void *, __const void *); + +extern void *bsearch (__const void *__key, __const void *__base, + size_t __nmemb, size_t __size, __compar_fn_t __compar) + __attribute__ ((__nonnull__ (1, 2, 5))) ; +extern void qsort (void *__base, size_t __nmemb, size_t __size, + __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); +extern int abs (int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern long int labs (long int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +__extension__ extern long long int llabs (long long int __x) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern div_t div (int __numer, int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern ldiv_t ldiv (long int __numer, long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + + +__extension__ extern lldiv_t lldiv (long long int __numer, + long long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *gcvt (double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern char *qecvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qfcvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qgcvt (long double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qecvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qfcvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); + +extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int mbtowc (wchar_t *__restrict __pwc, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__ , __leaf__)) ; +extern size_t mbstowcs (wchar_t *__restrict __pwcs, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)); +extern size_t wcstombs (char *__restrict __s, + __const wchar_t *__restrict __pwcs, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)); + +extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int getsubopt (char **__restrict __optionp, + char *__const *__restrict __tokens, + char **__restrict __valuep) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2, 3))) ; +extern int getloadavg (double __loadavg[], int __nelem) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +struct _IO_FILE; + +typedef struct _IO_FILE FILE; + + +typedef struct _IO_FILE __FILE; +typedef struct +{ + int __count; + union + { + unsigned int __wch; + char __wchb[4]; + } __value; +} __mbstate_t; +typedef struct +{ + __off_t __pos; + __mbstate_t __state; +} _G_fpos_t; +typedef struct +{ + __off64_t __pos; + __mbstate_t __state; +} _G_fpos64_t; +typedef int _G_int16_t __attribute__ ((__mode__ (__HI__))); +typedef int _G_int32_t __attribute__ ((__mode__ (__SI__))); +typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__))); +typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__))); +typedef __builtin_va_list __gnuc_va_list; +struct _IO_jump_t; struct _IO_FILE; +typedef void _IO_lock_t; +struct _IO_marker { + struct _IO_marker *_next; + struct _IO_FILE *_sbuf; + int _pos; +}; +enum __codecvt_result +{ + __codecvt_ok, + __codecvt_partial, + __codecvt_error, + __codecvt_noconv +}; +struct _IO_FILE { + int _flags; + char* _IO_read_ptr; + char* _IO_read_end; + char* _IO_read_base; + char* _IO_write_base; + char* _IO_write_ptr; + char* _IO_write_end; + char* _IO_buf_base; + char* _IO_buf_end; + char *_IO_save_base; + char *_IO_backup_base; + char *_IO_save_end; + struct _IO_marker *_markers; + struct _IO_FILE *_chain; + int _fileno; + int _flags2; + __off_t _old_offset; + unsigned short _cur_column; + signed char _vtable_offset; + char _shortbuf[1]; + _IO_lock_t *_lock; + __off64_t _offset; + void *__pad1; + void *__pad2; + void *__pad3; + void *__pad4; + size_t __pad5; + int _mode; + char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)]; +}; +typedef struct _IO_FILE _IO_FILE; +struct _IO_FILE_plus; +extern struct _IO_FILE_plus _IO_2_1_stdin_; +extern struct _IO_FILE_plus _IO_2_1_stdout_; +extern struct _IO_FILE_plus _IO_2_1_stderr_; +typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes); +typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf, + size_t __n); +typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w); +typedef int __io_close_fn (void *__cookie); +extern int __underflow (_IO_FILE *); +extern int __uflow (_IO_FILE *); +extern int __overflow (_IO_FILE *, int); +extern int _IO_getc (_IO_FILE *__fp); +extern int _IO_putc (int __c, _IO_FILE *__fp); +extern int _IO_feof (_IO_FILE *__fp) __attribute__ ((__nothrow__ , __leaf__)); +extern int _IO_ferror (_IO_FILE *__fp) __attribute__ ((__nothrow__ , __leaf__)); +extern int _IO_peekc_locked (_IO_FILE *__fp); +extern void _IO_flockfile (_IO_FILE *) __attribute__ ((__nothrow__ , __leaf__)); +extern void _IO_funlockfile (_IO_FILE *) __attribute__ ((__nothrow__ , __leaf__)); +extern int _IO_ftrylockfile (_IO_FILE *) __attribute__ ((__nothrow__ , __leaf__)); +extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict, + __gnuc_va_list, int *__restrict); +extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict, + __gnuc_va_list); +extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t); +extern size_t _IO_sgetn (_IO_FILE *, void *, size_t); +extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int); +extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int); +extern void _IO_free_backup_area (_IO_FILE *) __attribute__ ((__nothrow__ , __leaf__)); +typedef __gnuc_va_list va_list; + +typedef _G_fpos_t fpos_t; + +extern struct _IO_FILE *stdin; +extern struct _IO_FILE *stdout; +extern struct _IO_FILE *stderr; + +extern int remove (__const char *__filename) __attribute__ ((__nothrow__ , __leaf__)); +extern int rename (__const char *__old, __const char *__new) __attribute__ ((__nothrow__ , __leaf__)); + +extern int renameat (int __oldfd, __const char *__old, int __newfd, + __const char *__new) __attribute__ ((__nothrow__ , __leaf__)); + +extern FILE *tmpfile (void) ; +extern char *tmpnam (char *__s) __attribute__ ((__nothrow__ , __leaf__)) ; + +extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__ , __leaf__)) ; +extern char *tempnam (__const char *__dir, __const char *__pfx) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + +extern int fclose (FILE *__stream); +extern int fflush (FILE *__stream); + +extern int fflush_unlocked (FILE *__stream); + +extern FILE *fopen (__const char *__restrict __filename, + __const char *__restrict __modes) ; +extern FILE *freopen (__const char *__restrict __filename, + __const char *__restrict __modes, + FILE *__restrict __stream) ; + +extern FILE *fdopen (int __fd, __const char *__modes) __attribute__ ((__nothrow__ , __leaf__)) ; +extern FILE *fmemopen (void *__s, size_t __len, __const char *__modes) + __attribute__ ((__nothrow__ , __leaf__)) ; +extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __attribute__ ((__nothrow__ , __leaf__)) ; + +extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__ , __leaf__)); +extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, + int __modes, size_t __n) __attribute__ ((__nothrow__ , __leaf__)); + +extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf, + size_t __size) __attribute__ ((__nothrow__ , __leaf__)); +extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)); + +extern int fprintf (FILE *__restrict __stream, + __const char *__restrict __format, ...); +extern int printf (__const char *__restrict __format, ...); +extern int sprintf (char *__restrict __s, + __const char *__restrict __format, ...) __attribute__ ((__nothrow__)); +extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format, + __gnuc_va_list __arg); +extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg); +extern int vsprintf (char *__restrict __s, __const char *__restrict __format, + __gnuc_va_list __arg) __attribute__ ((__nothrow__)); + + +extern int snprintf (char *__restrict __s, size_t __maxlen, + __const char *__restrict __format, ...) + __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4))); +extern int vsnprintf (char *__restrict __s, size_t __maxlen, + __const char *__restrict __format, __gnuc_va_list __arg) + __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0))); + +extern int vdprintf (int __fd, __const char *__restrict __fmt, + __gnuc_va_list __arg) + __attribute__ ((__format__ (__printf__, 2, 0))); +extern int dprintf (int __fd, __const char *__restrict __fmt, ...) + __attribute__ ((__format__ (__printf__, 2, 3))); + +extern int fscanf (FILE *__restrict __stream, + __const char *__restrict __format, ...) ; +extern int scanf (__const char *__restrict __format, ...) ; +extern int sscanf (__const char *__restrict __s, + __const char *__restrict __format, ...) __attribute__ ((__nothrow__ , __leaf__)); +extern int fscanf (FILE *__restrict __stream, __const char *__restrict __format, ...) __asm__ ("" "__isoc99_fscanf") ; +extern int scanf (__const char *__restrict __format, ...) __asm__ ("" "__isoc99_scanf") ; +extern int sscanf (__const char *__restrict __s, __const char *__restrict __format, ...) __asm__ ("" "__isoc99_sscanf") __attribute__ ((__nothrow__ , __leaf__)); + + +extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format, + __gnuc_va_list __arg) + __attribute__ ((__format__ (__scanf__, 2, 0))) ; +extern int vscanf (__const char *__restrict __format, __gnuc_va_list __arg) + __attribute__ ((__format__ (__scanf__, 1, 0))) ; +extern int vsscanf (__const char *__restrict __s, + __const char *__restrict __format, __gnuc_va_list __arg) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__format__ (__scanf__, 2, 0))); +extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vfscanf") + __attribute__ ((__format__ (__scanf__, 2, 0))) ; +extern int vscanf (__const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vscanf") + __attribute__ ((__format__ (__scanf__, 1, 0))) ; +extern int vsscanf (__const char *__restrict __s, __const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vsscanf") __attribute__ ((__nothrow__ , __leaf__)) + __attribute__ ((__format__ (__scanf__, 2, 0))); + + +extern int fgetc (FILE *__stream); +extern int getc (FILE *__stream); +extern int getchar (void); + +extern int getc_unlocked (FILE *__stream); +extern int getchar_unlocked (void); +extern int fgetc_unlocked (FILE *__stream); + +extern int fputc (int __c, FILE *__stream); +extern int putc (int __c, FILE *__stream); +extern int putchar (int __c); + +extern int fputc_unlocked (int __c, FILE *__stream); +extern int putc_unlocked (int __c, FILE *__stream); +extern int putchar_unlocked (int __c); +extern int getw (FILE *__stream); +extern int putw (int __w, FILE *__stream); + +extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) + ; +extern char *gets (char *__s) ; + +extern __ssize_t __getdelim (char **__restrict __lineptr, + size_t *__restrict __n, int __delimiter, + FILE *__restrict __stream) ; +extern __ssize_t getdelim (char **__restrict __lineptr, + size_t *__restrict __n, int __delimiter, + FILE *__restrict __stream) ; +extern __ssize_t getline (char **__restrict __lineptr, + size_t *__restrict __n, + FILE *__restrict __stream) ; + +extern int fputs (__const char *__restrict __s, FILE *__restrict __stream); +extern int puts (__const char *__s); +extern int ungetc (int __c, FILE *__stream); +extern size_t fread (void *__restrict __ptr, size_t __size, + size_t __n, FILE *__restrict __stream) ; +extern size_t fwrite (__const void *__restrict __ptr, size_t __size, + size_t __n, FILE *__restrict __s); + +extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, + size_t __n, FILE *__restrict __stream) ; +extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size, + size_t __n, FILE *__restrict __stream); + +extern int fseek (FILE *__stream, long int __off, int __whence); +extern long int ftell (FILE *__stream) ; +extern void rewind (FILE *__stream); + +extern int fseeko (FILE *__stream, __off_t __off, int __whence); +extern __off_t ftello (FILE *__stream) ; + +extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos); +extern int fsetpos (FILE *__stream, __const fpos_t *__pos); + + +extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)); +extern int feof (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int ferror (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ; + +extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)); +extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ; + +extern void perror (__const char *__s); + +extern int sys_nerr; +extern __const char *__const sys_errlist[]; +extern int fileno (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ; +extern FILE *popen (__const char *__command, __const char *__modes) ; +extern int pclose (FILE *__stream); +extern char *ctermid (char *__s) __attribute__ ((__nothrow__ , __leaf__)); +extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)); +extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ; +extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)); + +extern int __VERIFIER_nondet_int(void); +static void fail(void) { +ERROR: __VERIFIER_error(); +} +struct list_head { + struct list_head *next, *prev; +}; +struct node { + int value; + struct list_head linkage; + struct list_head nested; +}; +struct list_head gl_list = { &(gl_list), &(gl_list) }; +static void inspect(const struct list_head *head) +{ + do { if (!(head)) fail(); } while (0); + do { if (!(head->next != head)) fail(); } while (0); + do { if (!(head->prev != head)) fail(); } while (0); + head = head->prev; + do { if (!(head)) fail(); } while (0); + do { if (!(head->next != head)) fail(); } while (0); + do { if (!(head->prev != head)) fail(); } while (0); + const struct node *node = ((struct node *)((char *)(head)-(unsigned long)(&((struct node *)0)->linkage))); + do { if (!(node)) fail(); } while (0); + do { if (!(node->nested.next == &node->nested)) fail(); } while (0); + do { if (!(node->nested.prev == &node->nested)) fail(); } while (0); + do { if (!(node->nested.next != &node->linkage)) fail(); } while (0); + do { if (!(node->nested.prev != &node->linkage)) fail(); } while (0); + do { if (!(node != (const struct node *)head)) fail(); } while (0); + do { if (!(node != (const struct node *)&node->linkage)) fail(); } while (0); + do { if (!(node == (const struct node *)&node->value)) fail(); } while (0); + do { if (!(head == node->linkage.next->prev)) fail(); } while (0); + do { if (!(head == node->linkage.prev->next)) fail(); } while (0); + for (head = head->next; &node->linkage != head; head = head->next); + do { if (!(((struct node *)((char *)(head)-(unsigned long)(&((struct node *)0)->linkage))) == node)) fail(); } while (0); +} +static inline void __list_add(struct list_head *new, + struct list_head *prev, + struct list_head *next) +{ + next->prev = new; + new->next = next; + new->prev = prev; + prev->next = new; +} +static inline void __list_del(struct list_head *prev, struct list_head *next) +{ + next->prev = prev; + prev->next = next; +} +static inline void list_add(struct list_head *new, struct list_head *head) +{ + __list_add(new, head, head->next); +} +static inline void list_move(struct list_head *list, struct list_head *head) +{ + __list_del(list->prev, list->next); + list_add(list, head); +} +static void gl_insert(int value) +{ + struct node *node = malloc(sizeof *node); + if (!node) + abort(); + node->value = value; + list_add(&node->linkage, &gl_list); + do { (&node->nested)->next = (&node->nested); (&node->nested)->prev = (&node->nested); } while (0); +} +static void gl_read() +{ + do { + gl_insert(__VERIFIER_nondet_int()); + } + while (__VERIFIER_nondet_int()); +} +static void gl_destroy() +{ + struct list_head *next; + while (&gl_list != (next = gl_list.next)) { + gl_list.next = next->next; + free(((struct node *)((char *)(next)-(unsigned long)(&((struct node *)0)->linkage)))); + } +} +static int val_from_node(struct list_head *head) { + struct node *entry = ((struct node *)((char *)(head)-(unsigned long)(&((struct node *)0)->linkage))); + return entry->value; +} +static _Bool gl_sort_pass() +{ + _Bool any_change = 0; + struct list_head *pos0 = gl_list.next; + struct list_head *pos1; + while (&gl_list != (pos1 = pos0->next)) { + const int val0 = val_from_node(pos0); + const int val1 = val_from_node(pos1); + if (val0 <= val1) { + pos0 = pos1; + continue; + } + any_change = 1; + list_move(pos0, pos1); + } + return any_change; +} +static void gl_sort() +{ + while (gl_sort_pass()) + ; +} +int main() +{ + gl_read(); + inspect(&gl_list); + gl_sort(); + inspect(&gl_list); + gl_destroy(); + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/cdaudio_simpl1_false-unreach-call_true-termination.cil.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/cdaudio_simpl1_false-unreach-call_true-termination.cil.c new file mode 100644 index 000000000..bd61e0c9a --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/cdaudio_simpl1_false-unreach-call_true-termination.cil.c @@ -0,0 +1,2948 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +extern char __VERIFIER_nondet_char(void); +extern int __VERIFIER_nondet_int(void); +extern long __VERIFIER_nondet_long(void); +extern void *__VERIFIER_nondet_pointer(void); +void IofCompleteRequest(int Irp , int PriorityBoost ) ; +int __VERIFIER_nondet_int() ; +int s ; +int UNLOADED ; +int NP ; +int DC ; +int SKIP1 ; +int SKIP2 ; +int MPR1 ; +int MPR3 ; +int IPC ; +int pended ; +int compFptr ; +int compRegistered ; +int lowerDriverReturn ; +int setEventCalled ; +int customIrp ; +int routine ; +int myStatus ; +int pirp ; +int Executive ; +int Suspended ; +int KernelMode ; +int DeviceUsageTypePaging ; + +void errorFn(void) +{ + + { + ERROR: __VERIFIER_error(); +#line 60 + return; +} +} +#line 63 "cdaudio_simpl1.cil.c" +void _BLAST_init(void) +{ + + { +#line 67 + UNLOADED = 0; +#line 68 + NP = 1; +#line 69 + DC = 2; +#line 70 + SKIP1 = 3; +#line 71 + SKIP2 = 4; +#line 72 + MPR1 = 5; +#line 73 + MPR3 = 6; +#line 74 + IPC = 7; +#line 75 + s = UNLOADED; +#line 76 + pended = 0; +#line 77 + compFptr = 0; +#line 78 + compRegistered = 0; +#line 79 + lowerDriverReturn = 0; +#line 80 + setEventCalled = 0; +#line 81 + customIrp = 0; +#line 82 + return; +} +} +#line 85 "cdaudio_simpl1.cil.c" +int SendSrbSynchronous(int Extension , int Srb , int Buffer , int BufferLength ) +{ int ioStatus__Status = __VERIFIER_nondet_int() ; + int ioctl ; + int event = __VERIFIER_nondet_int() ; + int irp ; + int status = __VERIFIER_nondet_int() ; + int __cil_tmp10 ; + int __cil_tmp11 ; + int __cil_tmp12 ; + int __cil_tmp13 ; + int __cil_tmp14 ; + int __cil_tmp15 ; + int __cil_tmp16 ; + int __cil_tmp17 ; + long __cil_tmp18 ; + + { +#line 93 + irp = 0; +#line 94 + if (Buffer) { +#line 95 + __cil_tmp10 = 4116; +#line 95 + __cil_tmp11 = 49152; +#line 95 + __cil_tmp12 = 262144; +#line 95 + __cil_tmp13 = 311296; +#line 95 + ioctl = 315412; + } else { +#line 97 + __cil_tmp14 = 4100; +#line 97 + __cil_tmp15 = 49152; +#line 97 + __cil_tmp16 = 262144; +#line 97 + __cil_tmp17 = 311296; +#line 97 + ioctl = 315396; + } +#line 99 + if (! irp) { +#line 100 + return (-1073741670); + } + { +#line 104 + __cil_tmp18 = (long )status; +#line 104 + if (__cil_tmp18 == 259L) { + { +#line 106 + KeWaitForSingleObject(event, Executive, KernelMode, 0, 0); +#line 107 + status = ioStatus__Status; + } + } + } +#line 112 + return (status); +} +} +#line 115 "cdaudio_simpl1.cil.c" +int CdAudioSignalCompletion(int DeviceObject , int Irp , int Event ) +{ + + { + { +#line 120 + KeSetEvent(Event, 0, 0); + } +#line 122 + return (-1073741802); +} +} +#line 125 "cdaudio_simpl1.cil.c" +int CdAudioStartDevice(int DeviceObject , int Irp ) +{ int deviceExtension__Active = __VERIFIER_nondet_int() ; + int deviceExtension = __VERIFIER_nondet_int() ; + int status ; + int srb = __VERIFIER_nondet_int() ; + int srb__Cdb = __VERIFIER_nondet_int() ; + int cdb ; + int inquiryDataPtr ; + int attempt ; + int tmp ; + int deviceParameterHandle = __VERIFIER_nondet_int() ; + int keyValue ; + { + { +#line 140 + status = CdAudioForwardIrpSynchronous(DeviceObject, Irp); + } + { +#line 142 +#line 142 + if (status < 0) { +#line 143 + return (status); + } + } +#line 147 + if (deviceExtension__Active == 255) { +#line 148 + cdb = srb__Cdb; +#line 149 + inquiryDataPtr = 0; +#line 150 + attempt = 0; +#line 151 + if (! inquiryDataPtr) { +#line 152 + deviceExtension__Active = 0; +#line 153 + return (0); + } +#line 157 + status = -1073741823; + { +#line 159 + while (1) { + while_0_continue: /* CIL Label */ ; + + { +#line 161 +#line 161 + if (status < 0) { +#line 162 + tmp = attempt; +#line 163 + attempt ++; +#line 164 + if (tmp >= 4) { + goto while_0_break_1; + } + } else { + goto while_0_break_1; + } + } + { +#line 173 + status = SendSrbSynchronous(deviceExtension, srb, inquiryDataPtr, 36); + } + } + while_0_break: /* CIL Label */ ; + } + while_0_break_1: ; + { +#line 178 +#line 178 + if (status < 0) { +#line 179 + deviceExtension__Active = 0; +#line 180 + return (0); + } + } +#line 184 + deviceExtension__Active = 0; + } +#line 188 + keyValue = deviceExtension__Active; + { +#line 189 +#line 189 + if (status < 0) { +#line 190 + return (0); + } + } + { +#line 194 +#line 194 + if (status < 0) { + + } + } + { +#line 200 + ZwClose(deviceParameterHandle); + } +#line 202 + return (0); +} +} +#line 205 "cdaudio_simpl1.cil.c" +int CdAudioPnp(int DeviceObject , int Irp ) +{ int Irp__Tail__Overlay__CurrentStackLocation = __VERIFIER_nondet_int() ; + int irpSp__MinorFunction = __VERIFIER_nondet_int() ; + int Irp__IoStatus__Status ; + int irpSp__Parameters__UsageNotification__Type = __VERIFIER_nondet_int() ; + int deviceExtension__PagingPathCountEvent = __VERIFIER_nondet_int() ; + int irpSp__Parameters__UsageNotification__InPath = __VERIFIER_nondet_int() ; + int deviceExtension__PagingPathCount = __VERIFIER_nondet_int() ; + int DeviceObject__Flags ; + int irpSp ; + int status ; + int setPagable ; + int tmp ; + int tmp___0 ; + + { +#line 221 + irpSp = Irp__Tail__Overlay__CurrentStackLocation; +#line 222 + status = -1073741637; +#line 223 + if (irpSp__MinorFunction == 0) { + goto switch_1_0; + } else { +#line 226 + if (irpSp__MinorFunction == 22) { + goto switch_1_22; + } else { + goto switch_1_default; +#line 231 + if (0) { + switch_1_0: + { +#line 234 + status = CdAudioStartDevice(DeviceObject, Irp); +#line 235 + Irp__IoStatus__Status = status; +#line 236 + myStatus = status; +#line 237 + IofCompleteRequest(Irp, 0); + } +#line 239 + return (status); + switch_1_22: ; +#line 241 + if (irpSp__Parameters__UsageNotification__Type != DeviceUsageTypePaging) { + { +#line 243 + tmp = CdAudioSendToNextDriver(DeviceObject, Irp); + } +#line 245 + return (tmp); + } + { +#line 250 + status = KeWaitForSingleObject(deviceExtension__PagingPathCountEvent, Executive, + KernelMode, 0, 0); +#line 252 + setPagable = 0; + } +#line 254 + if (irpSp__Parameters__UsageNotification__InPath) { +#line 255 + if (deviceExtension__PagingPathCount != 1) { + goto _L; + } + } else { + _L: +#line 262 + if (status == status) { +#line 265 + //DeviceObject__Flags |= 8192; +#line 266 + setPagable = 1; + } + } + { +#line 270 + status = CdAudioForwardIrpSynchronous(DeviceObject, Irp); + } +#line 272 + if (status >= 0) { +#line 273 + if (irpSp__Parameters__UsageNotification__InPath) { + + } +#line 278 + if (irpSp__Parameters__UsageNotification__InPath) { +#line 279 + if (deviceExtension__PagingPathCount == 1) { +#line 280 + //DeviceObject__Flags &= -8193; + } + } + } else { +#line 288 + if (setPagable == 1) { +#line 289 + //DeviceObject__Flags &= -8193; +#line 290 + setPagable = 0; + } + } + { +#line 296 + KeSetEvent(deviceExtension__PagingPathCountEvent, 0, 0); +#line 297 + IofCompleteRequest(Irp, 0); + } +#line 299 + return (status); + goto switch_1_break; + switch_1_default: + { +#line 303 + tmp___0 = CdAudioSendToNextDriver(DeviceObject, Irp); + } +#line 305 + return (tmp___0); + } else { + switch_1_break: ; + } + } + } +#line 312 + return (0); +} +} +#line 315 "cdaudio_simpl1.cil.c" +int CdAudioDeviceControl(int DeviceObject , int Irp ) +{ int deviceExtension__Active = __VERIFIER_nondet_int() ; + int status ; + + { +#line 320 + if (deviceExtension__Active == 2) { + goto switch_2_2; + } else { +#line 323 + if (deviceExtension__Active == 3) { + goto switch_2_3; + } else { +#line 326 + if (deviceExtension__Active == 1) { + goto switch_2_1; + } else { +#line 329 + if (deviceExtension__Active == 7) { + goto switch_2_7; + } else { + goto switch_2_default; +#line 334 + if (0) { + switch_2_2: + { +#line 337 + status = CdAudio535DeviceControl(DeviceObject, Irp); + } + goto switch_2_break; + switch_2_3: + { +#line 342 + status = CdAudio435DeviceControl(DeviceObject, Irp); + } + goto switch_2_break; + switch_2_1: + { +#line 347 + status = CdAudioAtapiDeviceControl(DeviceObject, Irp); + } + goto switch_2_break; + switch_2_7: + { +#line 352 + status = CdAudioHPCdrDeviceControl(DeviceObject, Irp); + } + goto switch_2_break; + switch_2_default: + { +#line 357 + deviceExtension__Active = 0; +#line 358 + status = CdAudioSendToNextDriver(DeviceObject, Irp); + } + } else { + switch_2_break: ; + } + } + } + } + } +#line 368 + return (status); +} +} +#line 371 "cdaudio_simpl1.cil.c" +int CdAudioSendToNextDriver(int DeviceObject , int Irp ) +{ int Irp__CurrentLocation = __VERIFIER_nondet_int() ; + int Irp__Tail__Overlay__CurrentStackLocation = __VERIFIER_nondet_int() ; + int deviceExtension__TargetDeviceObject = __VERIFIER_nondet_int() ; + int tmp ; + + { +#line 378 + if (s == NP) { +#line 379 + s = SKIP1; + } else { + { +#line 382 + errorFn(); + } + } + { +#line 386 + Irp__CurrentLocation ++; +#line 387 + Irp__Tail__Overlay__CurrentStackLocation ++; +#line 388 + tmp = IofCallDriver(deviceExtension__TargetDeviceObject, Irp); + } +#line 390 + return (tmp); +} +} +#line 393 "cdaudio_simpl1.cil.c" +int CdAudioIsPlayActive(int DeviceObject ) +{ int deviceExtension__PlayActive = __VERIFIER_nondet_int() ; + int ioStatus__Status = __VERIFIER_nondet_int() ; + int currentBuffer__Header__AudioStatus = __VERIFIER_nondet_int() ; + int irp_CdAudioIsPlayActive = __VERIFIER_nondet_int() ; + int event = __VERIFIER_nondet_int() ; + int status = __VERIFIER_nondet_int() ; + int currentBuffer = __VERIFIER_nondet_int() ; + int returnValue ; + long __cil_tmp10 ; + int __cil_tmp11 ; + + { +#line 404 + if (! deviceExtension__PlayActive) { +#line 405 + return (0); + } +#line 409 + if (currentBuffer == 0) { +#line 410 + return (0); + } +#line 414 + if (irp_CdAudioIsPlayActive == 0) { +#line 415 + return (0); + } + { +#line 419 + __cil_tmp10 = (long )status; +#line 419 + if (__cil_tmp10 == 259L) { + { +#line 421 + KeWaitForSingleObject(event, Suspended, KernelMode, 0, 0); +#line 422 + status = ioStatus__Status; + } + } + } + { +#line 427 +#line 427 + if (status < 0) { +#line 428 + return (0); + } + } +#line 432 + if (currentBuffer__Header__AudioStatus == 17) { +#line 433 + returnValue = 1; + } else { +#line 435 + returnValue = 0; +#line 436 + deviceExtension__PlayActive = 0; + } +#line 438 + return (returnValue); +} +} +#line 441 "cdaudio_simpl1.cil.c" +int CdAudio535DeviceControl(int DeviceObject , int Irp ) +{ int Irp__Tail__Overlay__CurrentStackLocation = __VERIFIER_nondet_int() ; + int DeviceObject__DeviceExtension = __VERIFIER_nondet_int() ; + int deviceExtension__TargetDeviceObject = __VERIFIER_nondet_int() ; + int Irp__AssociatedIrp__SystemBuffer = __VERIFIER_nondet_int() ; + int srb__Cdb = __VERIFIER_nondet_int() ; + int currentIrpStack__Parameters__DeviceIoControl__IoControlCode = __VERIFIER_nondet_int() ; + int Irp__IoStatus__Information ; + int currentIrpStack__Parameters__DeviceIoControl__OutputBufferLength = __VERIFIER_nondet_int() ; + int currentIrpStack__Parameters__DeviceIoControl__InputBufferLength = __VERIFIER_nondet_int() ; + int srb__CdbLength ; + int cdb__CDB10__OperationCode ; + int srb__TimeOutValue ; + int sizeof__READ_CAPACITY_DATA = __VERIFIER_nondet_int() ; + int lastSession__LogicalBlockAddress = __VERIFIER_nondet_int() ; + int cdaudioDataOut__FirstTrack = __VERIFIER_nondet_int() ; + int cdaudioDataOut__LastTrack = __VERIFIER_nondet_int() ; + int sizeof__CDROM_TOC = __VERIFIER_nondet_int() ; + int sizeof__SUB_Q_CURRENT_POSITION = __VERIFIER_nondet_int() ; + int userPtr__Format = __VERIFIER_nondet_int() ; + int sizeof__CDROM_PLAY_AUDIO_MSF = __VERIFIER_nondet_int() ; + int inputBuffer__StartingM = __VERIFIER_nondet_int() ; + int inputBuffer__EndingM = __VERIFIER_nondet_int() ; + int inputBuffer__StartingS = __VERIFIER_nondet_int() ; + int inputBuffer__EndingS = __VERIFIER_nondet_int() ; + int inputBuffer__StartingF = __VERIFIER_nondet_int() ; + int inputBuffer__EndingF = __VERIFIER_nondet_int() ; + int cdb__PLAY_AUDIO_MSF__OperationCode = __VERIFIER_nondet_int() ; + int sizeof__CDROM_SEEK_AUDIO_MSF = __VERIFIER_nondet_int() ; + int currentIrpStack ; + int deviceExtension ; + int cdaudioDataOut ; + int srb = __VERIFIER_nondet_int() ; + int lastSession = __VERIFIER_nondet_int() ; + int cdb ; + int status ; + int i = __VERIFIER_nondet_int() ; + int bytesTransfered = __VERIFIER_nondet_int() ; + int Toc = __VERIFIER_nondet_int() ; + int tmp ; + int tmp___0 ; + int tmp___1 ; + int tmp___2 ; + int tmp___3 ; + int tmp___4 ; + int tracksToReturn ; + int tracksOnCd ; + int tracksInBuffer ; + int userPtr ; + int SubQPtr = __VERIFIER_nondet_int() ; + int tmp___5 ; + int tmp___6 ; + int inputBuffer ; + int inputBuffer___0 ; + int tmp___7 ; + int tmp___8 ; + int __cil_tmp58 ; + int __cil_tmp59 ; + int __cil_tmp60 ; + int __cil_tmp61 ; + int __cil_tmp62 ; + int __cil_tmp63 ; + int __cil_tmp64 ; + int __cil_tmp65 ; + int __cil_tmp66 ; + int __cil_tmp67 ; + int __cil_tmp68 ; + int __cil_tmp69 ; + int __cil_tmp70 ; + int __cil_tmp71 ; + int __cil_tmp72 ; + int __cil_tmp73 ; + int __cil_tmp74 ; + int __cil_tmp75 ; + int __cil_tmp76 ; + int __cil_tmp77 ; + int __cil_tmp78 ; + int __cil_tmp79 ; + int __cil_tmp80 ; + int __cil_tmp81 ; + int __cil_tmp82 ; + int __cil_tmp83 ; + int __cil_tmp84 ; + int __cil_tmp85 ; + int __cil_tmp86 ; + int __cil_tmp87 ; + int __cil_tmp88 ; + int __cil_tmp89 ; + int __cil_tmp90 ; + int __cil_tmp91 ; + int __cil_tmp92 ; + int __cil_tmp93 ; + int __cil_tmp94 ; + int __cil_tmp95 ; + int __cil_tmp96 ; + int __cil_tmp97 ; + int __cil_tmp98 ; + int __cil_tmp99 ; + int __cil_tmp100 ; + int __cil_tmp101 ; + int __cil_tmp102 ; + int __cil_tmp103 ; + int __cil_tmp104 ; + int __cil_tmp105 ; + int __cil_tmp106 ; + unsigned long __cil_tmp107 ; + unsigned long __cil_tmp108 ; + int __cil_tmp109 ; + int __cil_tmp110 ; + + { +#line 499 + currentIrpStack = Irp__Tail__Overlay__CurrentStackLocation; +#line 500 + deviceExtension = DeviceObject__DeviceExtension; +#line 501 + cdaudioDataOut = Irp__AssociatedIrp__SystemBuffer; +#line 502 + cdb = srb__Cdb; + { +#line 503 + __cil_tmp58 = 56; +#line 503 + __cil_tmp59 = 16384; +#line 503 + __cil_tmp60 = 131072; +#line 503 + __cil_tmp61 = 147456; +#line 503 + __cil_tmp62 = 147512; +#line 503 + if (currentIrpStack__Parameters__DeviceIoControl__IoControlCode == __cil_tmp62) { + goto switch_3_exp_0; + } else { + { +#line 506 + __cil_tmp63 = 16384; +#line 506 + __cil_tmp64 = 131072; +#line 506 + __cil_tmp65 = 147456; +#line 506 + if (currentIrpStack__Parameters__DeviceIoControl__IoControlCode == __cil_tmp65) { + goto switch_3_exp_1; + } else { + { +#line 509 + __cil_tmp66 = 44; +#line 509 + __cil_tmp67 = 16384; +#line 509 + __cil_tmp68 = 131072; +#line 509 + __cil_tmp69 = 147456; +#line 509 + __cil_tmp70 = 147500; +#line 509 + if (currentIrpStack__Parameters__DeviceIoControl__IoControlCode == __cil_tmp70) { + goto switch_3_exp_2; + } else { + { +#line 512 + __cil_tmp71 = 24; +#line 512 + __cil_tmp72 = 16384; +#line 512 + __cil_tmp73 = 131072; +#line 512 + __cil_tmp74 = 147456; +#line 512 + __cil_tmp75 = 147480; +#line 512 + if (currentIrpStack__Parameters__DeviceIoControl__IoControlCode == __cil_tmp75) { + goto switch_3_exp_3; + } else { + { +#line 515 + __cil_tmp76 = 4; +#line 515 + __cil_tmp77 = 16384; +#line 515 + __cil_tmp78 = 131072; +#line 515 + __cil_tmp79 = 147456; +#line 515 + __cil_tmp80 = 147460; +#line 515 + if (currentIrpStack__Parameters__DeviceIoControl__IoControlCode == __cil_tmp80) { + goto switch_3_exp_4; + } else { + { +#line 518 + __cil_tmp81 = 2056; +#line 518 + __cil_tmp82 = 16384; +#line 518 + __cil_tmp83 = 131072; +#line 518 + __cil_tmp84 = 147456; +#line 518 + __cil_tmp85 = 149512; +#line 518 + if (currentIrpStack__Parameters__DeviceIoControl__IoControlCode == __cil_tmp85) { + goto switch_3_exp_5; + } else { + { +#line 521 + __cil_tmp86 = 52; +#line 521 + __cil_tmp87 = 16384; +#line 521 + __cil_tmp88 = 131072; +#line 521 + __cil_tmp89 = 147456; +#line 521 + __cil_tmp90 = 147508; +#line 521 + if (currentIrpStack__Parameters__DeviceIoControl__IoControlCode == __cil_tmp90) { + goto switch_3_exp_6; + } else { + { +#line 524 + __cil_tmp91 = 20; +#line 524 + __cil_tmp92 = 16384; +#line 524 + __cil_tmp93 = 131072; +#line 524 + __cil_tmp94 = 147456; +#line 524 + __cil_tmp95 = 147476; +#line 524 + if (currentIrpStack__Parameters__DeviceIoControl__IoControlCode == __cil_tmp95) { + goto switch_3_exp_7; + } else { + { +#line 527 + __cil_tmp96 = 40; +#line 527 + __cil_tmp97 = 16384; +#line 527 + __cil_tmp98 = 131072; +#line 527 + __cil_tmp99 = 147456; +#line 527 + __cil_tmp100 = 147496; +#line 527 + if (currentIrpStack__Parameters__DeviceIoControl__IoControlCode == __cil_tmp100) { + goto switch_3_exp_8; + } else { + { +#line 530 + __cil_tmp101 = 2048; +#line 530 + __cil_tmp102 = 16384; +#line 530 + __cil_tmp103 = 131072; +#line 530 + __cil_tmp104 = 147456; +#line 530 + __cil_tmp105 = 149504; +#line 530 + if (currentIrpStack__Parameters__DeviceIoControl__IoControlCode == __cil_tmp105) { + goto switch_3_exp_9; + } else { + goto switch_3_default; +#line 535 + if (0) { + switch_3_exp_0: + { +#line 538 + tmp = CdAudioIsPlayActive(DeviceObject); + } +#line 540 + if (tmp) { +#line 541 + status = -2147483631; +#line 542 + Irp__IoStatus__Information = 0; + goto switch_3_break; + } +#line 547 + if (currentIrpStack__Parameters__DeviceIoControl__OutputBufferLength) { +#line 548 + status = -1073741789; +#line 549 + Irp__IoStatus__Information = 0; + goto switch_3_break; + } +#line 554 + if (lastSession == 0) { + { +#line 556 + status = -1073741670; +#line 557 + Irp__IoStatus__Information = 0; +#line 558 + tmp___0 = AG_SetStatusAndReturn(status, Irp, deviceExtension__TargetDeviceObject); + } +#line 560 + return (tmp___0); + } + { +#line 565 + srb__CdbLength = 10; +#line 566 + cdb__CDB10__OperationCode = 38; +#line 567 + srb__TimeOutValue = 10; +#line 568 + status = SendSrbSynchronous(deviceExtension, srb, lastSession, + sizeof__READ_CAPACITY_DATA); + } + { +#line 571 +#line 571 + if (status < 0) { + { +#line 573 + Irp__IoStatus__Information = 0; +#line 574 + tmp___1 = AG_SetStatusAndReturn(status, Irp, deviceExtension__TargetDeviceObject); + } +#line 576 + return (tmp___1); + } else { +#line 578 + status = 0; + } + } +#line 580 + Irp__IoStatus__Information = bytesTransfered; +#line 581 + if (lastSession__LogicalBlockAddress == 0) { + goto switch_3_break; + } +#line 586 + cdaudioDataOut__FirstTrack = 1; +#line 587 + cdaudioDataOut__LastTrack = 2; + goto switch_3_break; + switch_3_exp_1: ; +#line 590 + if (currentIrpStack__Parameters__DeviceIoControl__OutputBufferLength) { +#line 591 + status = -1073741789; +#line 592 + Irp__IoStatus__Information = 0; + goto switch_3_break; + } + { +#line 598 + tmp___2 = CdAudioIsPlayActive(DeviceObject); + } +#line 600 + if (tmp___2) { +#line 601 + status = -2147483631; +#line 602 + Irp__IoStatus__Information = 0; + goto switch_3_break; + } +#line 607 + if (Toc == 0) { + { +#line 609 + status = -1073741670; +#line 610 + Irp__IoStatus__Information = 0; +#line 611 + tmp___3 = AG_SetStatusAndReturn(status, Irp, deviceExtension__TargetDeviceObject); + } +#line 613 + return (tmp___3); + } + { +#line 618 + srb__TimeOutValue = 10; +#line 619 + srb__CdbLength = 10; +#line 620 + status = SendSrbSynchronous(deviceExtension, srb, Toc, sizeof__CDROM_TOC); + } +#line 622 + if (status >= 0) { + { +#line 623 + __cil_tmp107 = (unsigned long )status; +#line 623 + if (__cil_tmp107 != -1073741764) { +#line 624 + status = 0; + } else { + goto _L; + } + } + } else { + _L: + { +#line 630 + __cil_tmp108 = (unsigned long )status; +#line 630 + if (__cil_tmp108 != -1073741764) { + { +#line 632 + Irp__IoStatus__Information = 0; +#line 633 + tmp___4 = AG_SetStatusAndReturn(status, Irp, deviceExtension__TargetDeviceObject); + } +#line 635 + return (tmp___4); + } + } + } +#line 640 + __cil_tmp109 = cdaudioDataOut__LastTrack - cdaudioDataOut__FirstTrack; +#line 640 + tracksOnCd = __cil_tmp109 + 1; +#line 641 + tracksInBuffer = currentIrpStack__Parameters__DeviceIoControl__OutputBufferLength; +#line 642 + if (tracksInBuffer < tracksOnCd) { +#line 643 + tracksToReturn = tracksInBuffer; + } else { +#line 645 + tracksToReturn = tracksOnCd; + } +#line 647 + if (tracksInBuffer > tracksOnCd) { +#line 648 + i ++; + } + goto switch_3_break; + switch_3_exp_2: +#line 654 + userPtr = Irp__AssociatedIrp__SystemBuffer; +#line 655 + if (currentIrpStack__Parameters__DeviceIoControl__OutputBufferLength < sizeof__SUB_Q_CURRENT_POSITION) { +#line 656 + status = -1073741789; +#line 657 + Irp__IoStatus__Information = 0; + goto switch_3_break; + } +#line 662 + if (SubQPtr == 0) { + { +#line 664 + status = -1073741670; +#line 665 + Irp__IoStatus__Information = 0; +#line 666 + tmp___5 = AG_SetStatusAndReturn(status, Irp, deviceExtension__TargetDeviceObject); + } +#line 668 + return (tmp___5); + } +#line 672 + if (userPtr__Format != 1) { + { +#line 674 + status = -1073741823; +#line 675 + Irp__IoStatus__Information = 0; +#line 676 + tmp___6 = AG_SetStatusAndReturn(status, Irp, deviceExtension__TargetDeviceObject); + } +#line 678 + return (tmp___6); + } + { +#line 683 + srb__CdbLength = 10; +#line 684 + srb__TimeOutValue = 10; +#line 685 + status = SendSrbSynchronous(deviceExtension, srb, SubQPtr, + sizeof__SUB_Q_CURRENT_POSITION); + } +#line 688 + if (status >= 0) { +#line 689 + Irp__IoStatus__Information = sizeof__SUB_Q_CURRENT_POSITION; + } else { +#line 691 + Irp__IoStatus__Information = 0; + } + goto switch_3_break; + switch_3_exp_3: +#line 695 + inputBuffer = Irp__AssociatedIrp__SystemBuffer; +#line 696 + Irp__IoStatus__Information = 0; +#line 697 + if (currentIrpStack__Parameters__DeviceIoControl__InputBufferLength < sizeof__CDROM_PLAY_AUDIO_MSF) { +#line 698 + status = -1073741820; + goto switch_3_break; + } +#line 703 + if (inputBuffer__StartingM == inputBuffer__EndingM) { +#line 704 + if (inputBuffer__StartingS == inputBuffer__EndingS) { +#line 705 + if (inputBuffer__StartingF == inputBuffer__EndingF) { + + } + } + } + { +#line 717 + srb__CdbLength = 10; +#line 718 + srb__TimeOutValue = 10; +#line 719 + status = SendSrbSynchronous(deviceExtension, srb, 0, 0); + } +#line 721 + if (status >= 0) { +#line 722 + if (cdb__PLAY_AUDIO_MSF__OperationCode == 71) { + + } + } + goto switch_3_break; + switch_3_exp_4: +#line 732 + inputBuffer___0 = Irp__AssociatedIrp__SystemBuffer; +#line 733 + Irp__IoStatus__Information = 0; +#line 734 + if (currentIrpStack__Parameters__DeviceIoControl__InputBufferLength < sizeof__CDROM_SEEK_AUDIO_MSF) { +#line 735 + status = -1073741820; + goto switch_3_break; + } + { +#line 741 + srb__CdbLength = 10; +#line 742 + srb__TimeOutValue = 10; +#line 743 + status = SendSrbSynchronous(deviceExtension, srb, 0, 0); + } + { +#line 745 +#line 745 + if (status < 0) { + + } + } + goto switch_3_break; + switch_3_exp_5: + { +#line 753 + Irp__IoStatus__Information = 0; +#line 754 + srb__CdbLength = 10; +#line 755 + srb__TimeOutValue = 10; +#line 756 + status = SendSrbSynchronous(deviceExtension, srb, 0, 0); + } + goto switch_3_break; + switch_3_exp_6: ; + switch_3_exp_7: ; + switch_3_exp_8: +#line 762 + Irp__IoStatus__Information = 0; +#line 763 + status = -1073741808; + goto switch_3_break; + switch_3_exp_9: + { +#line 767 + CdAudioIsPlayActive(DeviceObject); + } + switch_3_default: + { +#line 771 + tmp___7 = CdAudioSendToNextDriver(DeviceObject, Irp); + } +#line 773 + return (tmp___7); + goto switch_3_break; + } else { + switch_3_break: ; + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + { +#line 790 + tmp___8 = AG_SetStatusAndReturn(status, Irp, deviceExtension__TargetDeviceObject); + } +#line 792 + return (tmp___8); +} +} +#line 795 "cdaudio_simpl1.cil.c" +int AG_SetStatusAndReturn(int status , int Irp , int deviceExtension__TargetDeviceObject ) +{ unsigned long __cil_tmp4 ; + + { + { +#line 799 + __cil_tmp4 = (unsigned long )status; +#line 799 + if (__cil_tmp4 == -2147483626) { + + } + } + { +#line 805 + myStatus = status; +#line 806 + IofCompleteRequest(Irp, 0); + } +#line 808 + return (status); +} +} +#line 811 "cdaudio_simpl1.cil.c" +int CdAudio435DeviceControl(int DeviceObject , int Irp ) +{ int currentIrpStack__Parameters__DeviceIoControl__IoControlCode = __VERIFIER_nondet_int() ; + int currentIrpStack__Parameters__DeviceIoControl__OutputBufferLength = __VERIFIER_nondet_int() ; + int currentIrpStack__Parameters__DeviceIoControl__InputBufferLength = __VERIFIER_nondet_int() ; + int TrackData__0 = __VERIFIER_nondet_int() ; + int Irp__IoStatus__Information ; + int srb__TimeOutValue ; + int srb__CdbLength ; + int sizeof__CDROM_TOC = __VERIFIER_nondet_int() ; + int cdaudioDataOut__LastTrack = __VERIFIER_nondet_int() ; + int cdaudioDataOut__FirstTrack = __VERIFIER_nondet_int() ; + int sizeof__CDROM_PLAY_AUDIO_MSF = __VERIFIER_nondet_int() ; + int sizeof__CDROM_SEEK_AUDIO_MSF = __VERIFIER_nondet_int() ; + int deviceExtension__Paused = __VERIFIER_nondet_int() ; + int deviceExtension__PlayActive ; + int sizeof__SUB_Q_CHANNEL_DATA = __VERIFIER_nondet_int() ; + int sizeof__SUB_Q_CURRENT_POSITION = __VERIFIER_nondet_int() ; + int deviceExtension = __VERIFIER_nondet_int() ; + int srb = __VERIFIER_nondet_int() ; + int status ; + int i = __VERIFIER_nondet_int() ; + int bytesTransfered ; + int Toc = __VERIFIER_nondet_int() ; + int tmp ; + int tracksToReturn ; + int tracksOnCd ; + int tracksInBuffer ; + int SubQPtr = __VERIFIER_nondet_int() ; + int userPtr__Format = __VERIFIER_nondet_int() ; + int SubQPtr___0 = __VERIFIER_nondet_int() ; + int tmp___0 ; + int tmp___1 ; + int tmp___2 ; + int __cil_tmp35 ; + int __cil_tmp36 ; + int __cil_tmp37 ; + int __cil_tmp38 ; + int __cil_tmp39 ; + int __cil_tmp40 ; + int __cil_tmp41 ; + int __cil_tmp42 ; + int __cil_tmp43 ; + int __cil_tmp44 ; + int __cil_tmp45 ; + int __cil_tmp46 ; + int __cil_tmp47 ; + int __cil_tmp48 ; + int __cil_tmp49 ; + int __cil_tmp50 ; + int __cil_tmp51 ; + int __cil_tmp52 ; + int __cil_tmp53 ; + int __cil_tmp54 ; + int __cil_tmp55 ; + int __cil_tmp56 ; + int __cil_tmp57 ; + int __cil_tmp58 ; + int __cil_tmp59 ; + int __cil_tmp60 ; + int __cil_tmp61 ; + int __cil_tmp62 ; + int __cil_tmp63 ; + int __cil_tmp64 ; + int __cil_tmp65 ; + int __cil_tmp66 ; + int __cil_tmp67 ; + int __cil_tmp68 ; + int __cil_tmp69 ; + int __cil_tmp70 ; + int __cil_tmp71 ; + int __cil_tmp72 ; + int __cil_tmp73 ; + int __cil_tmp74 ; + int __cil_tmp75 ; + int __cil_tmp76 ; + int __cil_tmp77 ; + int __cil_tmp78 ; + int __cil_tmp79 ; + int __cil_tmp80 ; + int __cil_tmp81 ; + int __cil_tmp82 ; + int __cil_tmp83 ; + int __cil_tmp84 ; + int __cil_tmp85 ; + int __cil_tmp86 ; + int __cil_tmp87 ; + int __cil_tmp88 ; + int __cil_tmp89 ; + int __cil_tmp90 ; + int __cil_tmp91 ; + int __cil_tmp92 ; + unsigned long __cil_tmp93 ; + int __cil_tmp94 ; + unsigned long __cil_tmp95 ; + unsigned long __cil_tmp96 ; + unsigned long __cil_tmp97 ; + int __cil_tmp98 ; + int __cil_tmp99 ; + int __cil_tmp100 ; + int __cil_tmp101 ; + int __cil_tmp102 ; + int __cil_tmp103 ; + unsigned long __cil_tmp104 ; + unsigned long __cil_tmp105 ; + unsigned long __cil_tmp106 ; + unsigned long __cil_tmp107 ; + int __cil_tmp108 ; + unsigned long __cil_tmp109 ; + int __cil_tmp110 ; + unsigned long __cil_tmp111 ; + unsigned long __cil_tmp112 ; + unsigned long __cil_tmp113 ; + unsigned long __cil_tmp114 ; + unsigned long __cil_tmp115 ; + unsigned long __cil_tmp116 ; + + { + { +#line 846 + __cil_tmp35 = 16384; +#line 846 + __cil_tmp36 = 131072; +#line 846 + __cil_tmp37 = 147456; +#line 846 + if (currentIrpStack__Parameters__DeviceIoControl__IoControlCode == __cil_tmp37) { + goto switch_4_exp_10; + } else { + { +#line 849 + __cil_tmp38 = 24; +#line 849 + __cil_tmp39 = 16384; +#line 849 + __cil_tmp40 = 131072; +#line 849 + __cil_tmp41 = 147456; +#line 849 + __cil_tmp42 = 147480; +#line 849 + if (currentIrpStack__Parameters__DeviceIoControl__IoControlCode == __cil_tmp42) { + goto switch_4_exp_11; + } else { + { +#line 852 + __cil_tmp43 = 8; +#line 852 + __cil_tmp44 = 16384; +#line 852 + __cil_tmp45 = 131072; +#line 852 + __cil_tmp46 = 147456; +#line 852 + __cil_tmp47 = 147464; +#line 852 + if (currentIrpStack__Parameters__DeviceIoControl__IoControlCode == __cil_tmp47) { + goto switch_4_exp_12; + } else { + { +#line 855 + __cil_tmp48 = 4; +#line 855 + __cil_tmp49 = 16384; +#line 855 + __cil_tmp50 = 131072; +#line 855 + __cil_tmp51 = 147456; +#line 855 + __cil_tmp52 = 147460; +#line 855 + if (currentIrpStack__Parameters__DeviceIoControl__IoControlCode == __cil_tmp52) { + goto switch_4_exp_13; + } else { + { +#line 858 + __cil_tmp53 = 12; +#line 858 + __cil_tmp54 = 16384; +#line 858 + __cil_tmp55 = 131072; +#line 858 + __cil_tmp56 = 147456; +#line 858 + __cil_tmp57 = 147468; +#line 858 + if (currentIrpStack__Parameters__DeviceIoControl__IoControlCode == __cil_tmp57) { + goto switch_4_exp_14; + } else { + { +#line 861 + __cil_tmp58 = 16; +#line 861 + __cil_tmp59 = 16384; +#line 861 + __cil_tmp60 = 131072; +#line 861 + __cil_tmp61 = 147456; +#line 861 + __cil_tmp62 = 147472; +#line 861 + if (currentIrpStack__Parameters__DeviceIoControl__IoControlCode == __cil_tmp62) { + goto switch_4_exp_15; + } else { + { +#line 864 + __cil_tmp63 = 44; +#line 864 + __cil_tmp64 = 16384; +#line 864 + __cil_tmp65 = 131072; +#line 864 + __cil_tmp66 = 147456; +#line 864 + __cil_tmp67 = 147500; +#line 864 + if (currentIrpStack__Parameters__DeviceIoControl__IoControlCode == __cil_tmp67) { + goto switch_4_exp_16; + } else { + { +#line 867 + __cil_tmp68 = 2056; +#line 867 + __cil_tmp69 = 16384; +#line 867 + __cil_tmp70 = 131072; +#line 867 + __cil_tmp71 = 147456; +#line 867 + __cil_tmp72 = 149512; +#line 867 + if (currentIrpStack__Parameters__DeviceIoControl__IoControlCode == __cil_tmp72) { + goto switch_4_exp_17; + } else { + { +#line 870 + __cil_tmp73 = 52; +#line 870 + __cil_tmp74 = 16384; +#line 870 + __cil_tmp75 = 131072; +#line 870 + __cil_tmp76 = 147456; +#line 870 + __cil_tmp77 = 147508; +#line 870 + if (currentIrpStack__Parameters__DeviceIoControl__IoControlCode == __cil_tmp77) { + goto switch_4_exp_18; + } else { + { +#line 873 + __cil_tmp78 = 20; +#line 873 + __cil_tmp79 = 16384; +#line 873 + __cil_tmp80 = 131072; +#line 873 + __cil_tmp81 = 147456; +#line 873 + __cil_tmp82 = 147476; +#line 873 + if (currentIrpStack__Parameters__DeviceIoControl__IoControlCode == __cil_tmp82) { + goto switch_4_exp_19; + } else { + { +#line 876 + __cil_tmp83 = 40; +#line 876 + __cil_tmp84 = 16384; +#line 876 + __cil_tmp85 = 131072; +#line 876 + __cil_tmp86 = 147456; +#line 876 + __cil_tmp87 = 147496; +#line 876 + if (currentIrpStack__Parameters__DeviceIoControl__IoControlCode == __cil_tmp87) { + goto switch_4_exp_20; + } else { + { +#line 879 + __cil_tmp88 = 2048; +#line 879 + __cil_tmp89 = 16384; +#line 879 + __cil_tmp90 = 131072; +#line 879 + __cil_tmp91 = 147456; +#line 879 + __cil_tmp92 = 149504; +#line 879 + if (currentIrpStack__Parameters__DeviceIoControl__IoControlCode == __cil_tmp92) { + goto switch_4_exp_21; + } else { + goto switch_4_default; +#line 884 + if (0) { + switch_4_exp_10: ; +#line 886 + if (currentIrpStack__Parameters__DeviceIoControl__OutputBufferLength < TrackData__0) { +#line 887 + status = -1073741789; +#line 888 + Irp__IoStatus__Information = 0; + goto switch_4_break; + } + { +#line 894 + tmp = CdAudioIsPlayActive(DeviceObject); + } +#line 896 + if (tmp) { +#line 897 + status = -2147483631; +#line 898 + Irp__IoStatus__Information = 0; + goto switch_4_break; + } +#line 903 + if (Toc == 0) { +#line 904 + status = -1073741670; +#line 905 + Irp__IoStatus__Information = 0; + { +#line 906 + __cil_tmp93 = (unsigned long )status; +#line 906 + if (__cil_tmp93 == -2147483626) { +#line 907 + Irp__IoStatus__Information = 0; + } + } + { +#line 912 + myStatus = status; +#line 913 + IofCompleteRequest(Irp, 0); + } +#line 915 + return (status); + } + { +#line 920 + srb__TimeOutValue = 10; +#line 921 + srb__CdbLength = 10; +#line 922 + status = SendSrbSynchronous(deviceExtension, srb, Toc, + sizeof__CDROM_TOC); + } + { +#line 925 +#line 925 + if (status < 0) { + { +#line 926 + __cil_tmp95 = (unsigned long )status; +#line 926 + if (__cil_tmp95 != -1073741764) { + { +#line 927 + __cil_tmp96 = (unsigned long )status; +#line 927 + if (__cil_tmp96 != -1073741764) { + { +#line 928 + __cil_tmp97 = (unsigned long )status; +#line 928 + if (__cil_tmp97 == -2147483626) { +#line 929 + Irp__IoStatus__Information = 0; + } + } + { +#line 934 + myStatus = status; +#line 935 + IofCompleteRequest(Irp, 0); + } +#line 937 + return (status); + } + } + } else { +#line 942 + status = 0; + } + } + } else { +#line 945 + status = 0; + } + } +#line 947 + if (currentIrpStack__Parameters__DeviceIoControl__OutputBufferLength > sizeof__CDROM_TOC) { +#line 948 + bytesTransfered = sizeof__CDROM_TOC; + } else { +#line 950 + bytesTransfered = currentIrpStack__Parameters__DeviceIoControl__OutputBufferLength; + } +#line 952 + __cil_tmp98 = cdaudioDataOut__LastTrack - cdaudioDataOut__FirstTrack; +#line 952 + tracksOnCd = __cil_tmp98 + 1; +#line 953 + tracksInBuffer = currentIrpStack__Parameters__DeviceIoControl__OutputBufferLength - TrackData__0; +#line 954 + if (tracksInBuffer < tracksOnCd) { +#line 955 + tracksToReturn = tracksInBuffer; + } else { +#line 957 + tracksToReturn = tracksOnCd; + } +#line 959 + if (tracksInBuffer > tracksOnCd) { +#line 960 + i ++; + } + goto switch_4_break; + switch_4_exp_11: ; + switch_4_exp_12: + { +#line 968 + Irp__IoStatus__Information = 0; +#line 969 + srb__CdbLength = 10; +#line 970 + srb__TimeOutValue = 10; +#line 971 + status = SendSrbSynchronous(deviceExtension, srb, 0, 0); + } +#line 973 + if (status >= 0) { + + } + { +#line 978 + __cil_tmp99 = 8; +#line 978 + __cil_tmp100 = 16384; +#line 978 + __cil_tmp101 = 131072; +#line 978 + __cil_tmp102 = 147456; +#line 978 + __cil_tmp103 = 147464; +#line 978 + if (currentIrpStack__Parameters__DeviceIoControl__IoControlCode == __cil_tmp103) { + { +#line 979 + __cil_tmp104 = (unsigned long )status; +#line 979 + if (__cil_tmp104 == -2147483626) { +#line 980 + Irp__IoStatus__Information = 0; + } + } + { +#line 985 + myStatus = status; +#line 986 + IofCompleteRequest(Irp, 0); + } +#line 988 + return (status); + } + } +#line 992 + if (currentIrpStack__Parameters__DeviceIoControl__InputBufferLength < sizeof__CDROM_PLAY_AUDIO_MSF) { +#line 993 + status = -1073741820; + goto switch_4_break; + } + { +#line 999 + srb__CdbLength = 10; +#line 1000 + srb__TimeOutValue = 10; +#line 1001 + status = SendSrbSynchronous(deviceExtension, srb, 0, 0); + } +#line 1003 + if (status >= 0) { + + } + goto switch_4_break; + switch_4_exp_13: +#line 1010 + Irp__IoStatus__Information = 0; +#line 1011 + if (currentIrpStack__Parameters__DeviceIoControl__InputBufferLength < sizeof__CDROM_SEEK_AUDIO_MSF) { +#line 1012 + status = -1073741820; + goto switch_4_break; + } + { +#line 1018 + srb__CdbLength = 10; +#line 1019 + srb__TimeOutValue = 10; +#line 1020 + status = SendSrbSynchronous(deviceExtension, srb, 0, 0); + } +#line 1022 + if (status < 0) { + { +#line 1025 + __cil_tmp105 = (unsigned long )status; +#line 1025 + if (__cil_tmp105 == -1073741808) { +#line 1026 + status = -1073741803; + } + } + } + goto switch_4_break; + switch_4_exp_14: +#line 1033 + Irp__IoStatus__Information = 0; +#line 1034 + if (SubQPtr == 0) { +#line 1035 + status = -1073741670; + { +#line 1036 + __cil_tmp106 = (unsigned long )status; +#line 1036 + if (__cil_tmp106 == -2147483626) { +#line 1037 + Irp__IoStatus__Information = 0; + } + } + { +#line 1042 + myStatus = status; +#line 1043 + IofCompleteRequest(Irp, 0); + } +#line 1045 + return (status); + } +#line 1049 + if (deviceExtension__Paused == 1) { +#line 1050 + status = 0; + { +#line 1051 + __cil_tmp107 = (unsigned long )status; +#line 1051 + if (__cil_tmp107 == -2147483626) { +#line 1052 + Irp__IoStatus__Information = 0; + } + } + { +#line 1057 + myStatus = status; +#line 1058 + IofCompleteRequest(Irp, 0); + } +#line 1060 + return (status); + } + { +#line 1065 + srb__CdbLength = 10; +#line 1066 + srb__TimeOutValue = 10; +#line 1067 + status = SendSrbSynchronous(deviceExtension, srb, SubQPtr, + sizeof__SUB_Q_CHANNEL_DATA); + } + { +#line 1070 +#line 1070 + if (status < 0) { + { +#line 1071 + __cil_tmp109 = (unsigned long )status; +#line 1071 + if (__cil_tmp109 == -2147483626) { +#line 1072 + Irp__IoStatus__Information = 0; + } + } + { +#line 1077 + myStatus = status; +#line 1078 + IofCompleteRequest(Irp, 0); + } +#line 1080 + return (status); + } + } + { +#line 1085 + srb__CdbLength = 10; +#line 1086 + srb__TimeOutValue = 10; +#line 1087 + status = SendSrbSynchronous(deviceExtension, srb, 0, 0); + } + { +#line 1089 +#line 1089 + if (status < 0) { + { +#line 1090 + __cil_tmp111 = (unsigned long )status; +#line 1090 + if (__cil_tmp111 == -2147483626) { +#line 1091 + Irp__IoStatus__Information = 0; + } + } + { +#line 1096 + myStatus = status; +#line 1097 + IofCompleteRequest(Irp, 0); + } +#line 1099 + return (status); + } + } + goto switch_4_break; + switch_4_exp_15: +#line 1105 + Irp__IoStatus__Information = 0; +#line 1106 + if (deviceExtension__Paused == 0) { +#line 1107 + status = -1073741823; + { +#line 1108 + __cil_tmp112 = (unsigned long )status; +#line 1108 + if (__cil_tmp112 == -2147483626) { +#line 1109 + Irp__IoStatus__Information = 0; + } + } + { +#line 1114 + myStatus = status; +#line 1115 + IofCompleteRequest(Irp, 0); + } +#line 1117 + return (status); + } + { +#line 1122 + srb__CdbLength = 10; +#line 1123 + srb__TimeOutValue = 10; +#line 1124 + status = SendSrbSynchronous(deviceExtension, srb, 0, 0); + } +#line 1126 + if (status >= 0) { +#line 1127 + deviceExtension__PlayActive = 1; +#line 1128 + deviceExtension__Paused = 0; + } + goto switch_4_break; + switch_4_exp_16: ; +#line 1134 + if (currentIrpStack__Parameters__DeviceIoControl__OutputBufferLength < sizeof__SUB_Q_CURRENT_POSITION) { +#line 1135 + status = -1073741789; +#line 1136 + Irp__IoStatus__Information = 0; + goto switch_4_break; + } +#line 1141 + if (SubQPtr___0 == 0) { +#line 1142 + status = -1073741670; +#line 1143 + Irp__IoStatus__Information = 0; + { +#line 1144 + __cil_tmp113 = (unsigned long )status; +#line 1144 + if (__cil_tmp113 == -2147483626) { +#line 1145 + Irp__IoStatus__Information = 0; + } + } + { +#line 1150 + myStatus = status; +#line 1151 + IofCompleteRequest(Irp, 0); + } +#line 1153 + return (status); + } +#line 1157 + if (userPtr__Format != 1) { +#line 1158 + status = -1073741823; +#line 1159 + Irp__IoStatus__Information = 0; + { +#line 1160 + __cil_tmp114 = (unsigned long )status; +#line 1160 + if (__cil_tmp114 == -2147483626) { +#line 1161 + Irp__IoStatus__Information = 0; + } + } + { +#line 1166 + myStatus = status; +#line 1167 + IofCompleteRequest(Irp, 0); + } +#line 1169 + return (status); + } + { +#line 1174 + srb__CdbLength = 10; +#line 1175 + srb__TimeOutValue = 10; +#line 1176 + status = SendSrbSynchronous(deviceExtension, srb, SubQPtr___0, + sizeof__SUB_Q_CHANNEL_DATA); + } +#line 1179 + if (status >= 0) { +#line 1180 + if (deviceExtension__Paused == 1) { +#line 1181 + deviceExtension__PlayActive = 0; + } +#line 1185 + Irp__IoStatus__Information = sizeof__SUB_Q_CURRENT_POSITION; + } else { +#line 1187 + Irp__IoStatus__Information = 0; + } + goto switch_4_break; + switch_4_exp_17: + { +#line 1192 + Irp__IoStatus__Information = 0; +#line 1193 + srb__CdbLength = 10; +#line 1194 + srb__TimeOutValue = 10; +#line 1195 + status = SendSrbSynchronous(deviceExtension, srb, 0, 0); + } + goto switch_4_break; + switch_4_exp_18: ; + switch_4_exp_19: ; + switch_4_exp_20: +#line 1201 + Irp__IoStatus__Information = 0; +#line 1202 + status = -1073741808; + goto switch_4_break; + switch_4_exp_21: + { +#line 1206 + tmp___1 = CdAudioIsPlayActive(DeviceObject); + } +#line 1208 + if (tmp___1 == 1) { +#line 1209 + deviceExtension__PlayActive = 1; +#line 1210 + status = 0; +#line 1211 + Irp__IoStatus__Information = 0; + { +#line 1212 + __cil_tmp115 = (unsigned long )status; +#line 1212 + if (__cil_tmp115 == -2147483626) { +#line 1213 + Irp__IoStatus__Information = 0; + } + } + { +#line 1218 + myStatus = status; +#line 1219 + IofCompleteRequest(Irp, 0); + } +#line 1221 + return (status); + } else { + { +#line 1224 + deviceExtension__PlayActive = 0; +#line 1225 + tmp___0 = CdAudioSendToNextDriver(DeviceObject, Irp); + } +#line 1227 + return (tmp___0); + } + goto switch_4_break; + switch_4_default: + { +#line 1232 + tmp___2 = CdAudioSendToNextDriver(DeviceObject, Irp); + } +#line 1234 + return (tmp___2); + goto switch_4_break; + } else { + switch_4_break: ; + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + { +#line 1252 + __cil_tmp116 = (unsigned long )status; +#line 1252 + if (__cil_tmp116 == -2147483626) { +#line 1253 + Irp__IoStatus__Information = 0; + } + } + { +#line 1258 + myStatus = status; +#line 1259 + IofCompleteRequest(Irp, 0); + } +#line 1261 + return (status); +} +} +#line 1264 "cdaudio_simpl1.cil.c" +int CdAudioAtapiDeviceControl(int DeviceObject , int Irp ) +{ int currentIrpStack__Parameters__DeviceIoControl__IoControlCode = __VERIFIER_nondet_int() ; + int Irp__IoStatus__Information ; + int deviceExtension__PlayActive ; + int srb__CdbLength ; + int srb__TimeOutValue ; + int Irp__IoStatus__Status ; + int status ; + int deviceExtension = __VERIFIER_nondet_int() ; + int srb = __VERIFIER_nondet_int() ; + int tmp ; + int __cil_tmp13 ; + int __cil_tmp14 ; + int __cil_tmp15 ; + int __cil_tmp16 ; + int __cil_tmp17 ; + int __cil_tmp18 ; + + { + { +#line 1277 + __cil_tmp13 = 8; +#line 1277 + __cil_tmp14 = 16384; +#line 1277 + __cil_tmp15 = 131072; +#line 1277 + __cil_tmp16 = 147456; +#line 1277 + __cil_tmp17 = 147464; +#line 1277 + if (currentIrpStack__Parameters__DeviceIoControl__IoControlCode == __cil_tmp17) { + { +#line 1279 + Irp__IoStatus__Information = 0; +#line 1280 + deviceExtension__PlayActive = 0; +#line 1281 + srb__CdbLength = 12; +#line 1282 + srb__TimeOutValue = 10; +#line 1283 + status = SendSrbSynchronous(deviceExtension, srb, 0, 0); + } + { +#line 1285 +#line 1285 + if (status < 0) { + { +#line 1287 + Irp__IoStatus__Status = status; +#line 1288 + myStatus = status; +#line 1289 + IofCompleteRequest(Irp, 0); + } +#line 1291 + return (status); + } + } + } else { + { +#line 1297 + tmp = CdAudioSendToNextDriver(DeviceObject, Irp); + } +#line 1299 + return (tmp); + } + } + { +#line 1302 + Irp__IoStatus__Status = status; +#line 1303 + myStatus = status; +#line 1304 + IofCompleteRequest(Irp, 0); + } +#line 1306 + return (status); +} +} +#line 1309 "cdaudio_simpl1.cil.c" +void HpCdrProcessLastSession(int Toc ) +{ int index = __VERIFIER_nondet_int() ; + + { +#line 1313 + if (index) { +#line 1314 + index --; + } +#line 1318 + return; +} +} +#line 1321 "cdaudio_simpl1.cil.c" +int HPCdrCompletion(int DeviceObject , int Irp , int Context ) +{ int Irp__PendingReturned = __VERIFIER_nondet_int() ; + int Irp__AssociatedIrp__SystemBuffer = __VERIFIER_nondet_int() ; + + { +#line 1326 + if (Irp__PendingReturned) { +#line 1327 + if (pended == 0) { +#line 1328 + pended = 1; + } else { + { +#line 1331 + errorFn(); + } + } + } +#line 1337 + if (myStatus >= 0) { + { +#line 1339 + HpCdrProcessLastSession(Irp__AssociatedIrp__SystemBuffer); + } + } +#line 1344 + return (myStatus); +} +} +#line 1347 "cdaudio_simpl1.cil.c" +int CdAudioHPCdrDeviceControl(int DeviceObject , int Irp ) +{ int currentIrpStack__Parameters__DeviceIoControl__IoControlCode = __VERIFIER_nondet_int() ; + int deviceExtension__TargetDeviceObject = __VERIFIER_nondet_int() ; + int irpSp__Control ; + int tmp ; + int tmp___0 ; + int __cil_tmp8 ; + int __cil_tmp9 ; + int __cil_tmp10 ; + int __cil_tmp11 ; + int __cil_tmp12 ; + + { + { +#line 1355 + __cil_tmp8 = 56; +#line 1355 + __cil_tmp9 = 16384; +#line 1355 + __cil_tmp10 = 131072; +#line 1355 + __cil_tmp11 = 147456; +#line 1355 + __cil_tmp12 = 147512; +#line 1355 + if (currentIrpStack__Parameters__DeviceIoControl__IoControlCode == __cil_tmp12) { +#line 1356 + if (s != NP) { + { +#line 1358 + errorFn(); + } + } else { +#line 1361 + if (compRegistered != 0) { + { +#line 1363 + errorFn(); + } + } else { +#line 1366 + compRegistered = 1; +#line 1367 + routine = 0; + } + } + { +#line 1371 + irpSp__Control = 224; +#line 1375 + tmp = IofCallDriver(deviceExtension__TargetDeviceObject, Irp); + } +#line 1377 + return (tmp); + } else { + { +#line 1380 + tmp___0 = CdAudioSendToNextDriver(DeviceObject, Irp); + } +#line 1382 + return (tmp___0); + } + } +#line 1384 + return (-1073741823); +} +} +#line 1387 "cdaudio_simpl1.cil.c" +int CdAudioForwardIrpSynchronous(int DeviceObject , int Irp ) +{ int deviceExtension__TargetDeviceObject = __VERIFIER_nondet_int() ; + int event = __VERIFIER_nondet_int() ; + int status ; + int irpSp__Control ; + + { +#line 1394 + if (s != NP) { + { +#line 1396 + errorFn(); + } + } else { +#line 1399 + if (compRegistered != 0) { + { +#line 1401 + errorFn(); + } + } else { +#line 1404 + compRegistered = 1; +#line 1405 + routine = 1; + } + } + { +#line 1409 + irpSp__Control = 224; +#line 1413 + status = IofCallDriver(deviceExtension__TargetDeviceObject, Irp); +#line 1414 + status = 259; + } +#line 1416 + if (status) { + { +#line 1418 + KeWaitForSingleObject(event, Executive, KernelMode, 0, 0); +#line 1419 + status = myStatus; + } + } +#line 1424 + return (status); +} +} +#line 1427 "cdaudio_simpl1.cil.c" +void CdAudioUnload(int DriverObject ) +{ + + { +#line 1431 + return; +} +} +#line 1434 "cdaudio_simpl1.cil.c" +int CdAudioPower(int DeviceObject , int Irp ) +{ int Irp__CurrentLocation = __VERIFIER_nondet_int() ; + int Irp__Tail__Overlay__CurrentStackLocation = __VERIFIER_nondet_int() ; + int deviceExtension__TargetDeviceObject = __VERIFIER_nondet_int() ; + int tmp ; + + { +#line 1441 + if (s == NP) { +#line 1442 + s = SKIP1; + } else { + { +#line 1445 + errorFn(); + } + } + { +#line 1449 + Irp__CurrentLocation ++; +#line 1450 + Irp__Tail__Overlay__CurrentStackLocation ++; +#line 1451 + tmp = PoCallDriver(deviceExtension__TargetDeviceObject, Irp); + } +#line 1453 + return (tmp); +} +} +#line 1456 "cdaudio_simpl1.cil.c" +void stub_driver_init(void) +{ + + { +#line 1460 + s = NP; +#line 1461 + customIrp = 0; +#line 1462 + setEventCalled = customIrp; +#line 1463 + lowerDriverReturn = setEventCalled; +#line 1464 + compRegistered = lowerDriverReturn; +#line 1465 + compFptr = compRegistered; +#line 1466 + pended = compFptr; +#line 1467 + return; +} +} +#line 1470 "cdaudio_simpl1.cil.c" +int main(void) +{ int pirp__IoStatus__Status ; + int d = __VERIFIER_nondet_int() ; + int status = __VERIFIER_nondet_int() ; + int irp = __VERIFIER_nondet_int() ; + int we_should_unload = __VERIFIER_nondet_int() ; + int irp_choice = __VERIFIER_nondet_int() ; + int devobj = __VERIFIER_nondet_int() ; + int __cil_tmp9 ; + + { + { + + s = 0; + UNLOADED = 0; + NP = 0; + DC = 0; + SKIP1 = 0; + SKIP2 = 0; + MPR1 = 0; + MPR3 = 0; + IPC = 0; + pended = 0; + compFptr = 0; + compRegistered = 0; + lowerDriverReturn = 0; + setEventCalled = 0; + customIrp = 0; + routine = 0; + myStatus = 0; + pirp = 0; + Executive = 0; + Suspended = 5; + KernelMode = 0; + DeviceUsageTypePaging = 1; + + +#line 1482 + pirp = irp; +#line 1483 + _BLAST_init(); + } +#line 1485 + if (status >= 0) { +#line 1486 + s = NP; +#line 1487 + customIrp = 0; +#line 1488 + setEventCalled = customIrp; +#line 1489 + lowerDriverReturn = setEventCalled; +#line 1490 + compRegistered = lowerDriverReturn; +#line 1491 + compFptr = compRegistered; +#line 1492 + pended = compFptr; +#line 1493 + pirp__IoStatus__Status = 0; +#line 1494 + myStatus = 0; +#line 1495 + if (irp_choice == 0) { +#line 1496 + pirp__IoStatus__Status = -1073741637; +#line 1497 + myStatus = -1073741637; + } + { +#line 1502 + stub_driver_init(); + } + { +#line 1504 +#line 1504 + if (status < 0) { +#line 1505 + return (-1); + } + } +#line 1509 + int tmp_ndt_1; + tmp_ndt_1 = __VERIFIER_nondet_int(); + if (tmp_ndt_1 == 2) { + goto switch_5_2; + } else { +#line 1512 + int tmp_ndt_2; + tmp_ndt_2 = __VERIFIER_nondet_int(); + if (tmp_ndt_2 == 3) { + goto switch_5_3; + } else { +#line 1515 + int tmp_ndt_3; + tmp_ndt_3 = __VERIFIER_nondet_int(); + if (tmp_ndt_3 == 4) { + goto switch_5_4; + } else { + goto switch_5_default; +#line 1520 + if (0) { + switch_5_2: + { +#line 1523 + status = CdAudioDeviceControl(devobj, pirp); + } + goto switch_5_break; + switch_5_3: + { +#line 1528 + status = CdAudioPnp(devobj, pirp); + } + goto switch_5_break; + switch_5_4: + { +#line 1533 + status = CdAudioPower(devobj, pirp); + } + goto switch_5_break; + switch_5_default: ; +#line 1537 + return (-1); + } else { + switch_5_break: ; + } + } + } + } +#line 1545 + if (we_should_unload) { + { +#line 1547 + CdAudioUnload(d); + } + } + } +#line 1555 + if (pended == 1) { +#line 1556 + if (s == NP) { +#line 1557 + s = NP; + } else { + goto _L___2; + } + } else { + _L___2: +#line 1563 + if (pended == 1) { +#line 1564 + if (s == MPR3) { +#line 1565 + s = MPR3; + } else { + goto _L___1; + } + } else { + _L___1: +#line 1571 + if (s != UNLOADED) { +#line 1574 + if (status != -1) { +#line 1577 + if (s != SKIP2) { +#line 1578 + if (s != IPC) { +#line 1579 + if (s != DC) { + { +#line 1581 + errorFn(); + } + } else { + goto _L___0; + } + } else { + goto _L___0; + } + } else { + _L___0: +#line 1591 + if (pended != 1) { +#line 1594 + if (s == DC) { +#line 1595 + if (status == 259) { + errorFn(); + } + } else { +#line 1603 + if (status != lowerDriverReturn) { + errorFn(); + } + } + } + else { + if (status != 259) { + { + errorFn(); + } + } else { + + } + } + } + } + } + } + } +#line 1617 + return (status); +} +} +#line 1620 "cdaudio_simpl1.cil.c" +void stubMoreProcessingRequired(void) +{ + + { +#line 1624 + if (s == NP) { +#line 1625 + s = MPR1; + } else { + { +#line 1628 + errorFn(); + } + } +#line 1631 + return; +} +} +#line 1634 "cdaudio_simpl1.cil.c" +int IofCallDriver(int DeviceObject , int Irp ) +{ int Irp__PendingReturned = __VERIFIER_nondet_int() ; + int returnVal2 ; + int compRetStatus ; + int lcontext = __VERIFIER_nondet_int() ; + unsigned long __cil_tmp8 ; + + { +#line 1642 + if (compRegistered) { +#line 1643 + if (routine == 0) { + { +#line 1645 + compRetStatus = HPCdrCompletion(DeviceObject, Irp, lcontext); + } + } else { +#line 1648 + if (routine == 1) { + { +#line 1650 + compRetStatus = CdAudioSignalCompletion(DeviceObject, Irp, lcontext); + } + } + } + { +#line 1656 + __cil_tmp8 = (unsigned long )compRetStatus; +#line 1656 + if (__cil_tmp8 == -1073741802) { + { +#line 1658 + stubMoreProcessingRequired(); + } + } + } + } +#line 1666 + if (Irp__PendingReturned) { +#line 1667 + returnVal2 = 259; + } else { +#line 1669 + int tmp_ndt_4; + tmp_ndt_4 = __VERIFIER_nondet_int(); + if (tmp_ndt_4 == 0) { + goto switch_6_0; + } else { +#line 1672 + int tmp_ndt_5; + tmp_ndt_5 = __VERIFIER_nondet_int(); + if (tmp_ndt_5 == 1) { + goto switch_6_1; + } else { + goto switch_6_default; +#line 1677 + if (0) { + switch_6_0: +#line 1679 + returnVal2 = 0; + goto switch_6_break; + switch_6_1: +#line 1682 + returnVal2 = -1073741823; + goto switch_6_break; + switch_6_default: +#line 1685 + returnVal2 = 259; + goto switch_6_break; + } else { + switch_6_break: ; + } + } + } + } +#line 1694 + if (s == NP) { +#line 1695 + s = IPC; +#line 1696 + lowerDriverReturn = returnVal2; + } else { +#line 1698 + if (s == MPR1) { +#line 1699 + if (returnVal2 == 259) { +#line 1700 + s = MPR3; +#line 1701 + lowerDriverReturn = returnVal2; + } else { +#line 1703 + s = NP; +#line 1704 + lowerDriverReturn = returnVal2; + } + } else { +#line 1707 + if (s == SKIP1) { +#line 1708 + s = SKIP2; +#line 1709 + lowerDriverReturn = returnVal2; + } else { + { +#line 1712 + errorFn(); + } + } + } + } +#line 1717 + return (returnVal2); +} +} +#line 1720 "cdaudio_simpl1.cil.c" +void IofCompleteRequest(int Irp , int PriorityBoost ) +{ + + { +#line 1724 + if (s == NP) { +#line 1725 + s = DC; + } else { + { +#line 1728 + errorFn(); + } + } +#line 1731 + return; +} +} +#line 1734 "cdaudio_simpl1.cil.c" +int KeSetEvent(int Event , int Increment , int Wait ) +{ int l = __VERIFIER_nondet_int() ; + + { +#line 1738 + setEventCalled = 1; +#line 1739 + return (l); +} +} +#line 1742 "cdaudio_simpl1.cil.c" +int KeWaitForSingleObject(int Object , int WaitReason , int WaitMode , int Alertable , + int Timeout ) +{ + + { +#line 1747 + if (s == MPR3) { +#line 1748 + if (setEventCalled == 1) { +#line 1749 + s = NP; +#line 1750 + setEventCalled = 0; + } else { + goto _L; + } + } else { + _L: +#line 1756 + if (customIrp == 1) { +#line 1757 + s = NP; +#line 1758 + customIrp = 0; + } else { +#line 1760 + if (s == MPR3) { + { +#line 1762 + errorFn(); + } + } + } + } +#line 1769 + int tmp_ndt_6; + tmp_ndt_6 = __VERIFIER_nondet_int(); + if (tmp_ndt_6 == 0) { + goto switch_7_0; + } else { + goto switch_7_default; +#line 1774 + if (0) { + switch_7_0: ; +#line 1776 + return (0); + switch_7_default: ; +#line 1778 + return (-1073741823); + } else { + + } + } +} +} +#line 1786 "cdaudio_simpl1.cil.c" +int PoCallDriver(int DeviceObject , int Irp ) +{ + int compRetStatus ; + int returnVal ; + int lcontext = __VERIFIER_nondet_int() ; + unsigned long __cil_tmp7 ; + long __cil_tmp8 ; + + { +#line 1793 + if (compRegistered) { +#line 1794 + if (routine == 0) { + { +#line 1796 + compRetStatus = HPCdrCompletion(DeviceObject, Irp, lcontext); + } + } else { +#line 1799 + if (routine == 1) { + { +#line 1801 + compRetStatus = CdAudioSignalCompletion(DeviceObject, Irp, lcontext); + } + } + } + { +#line 1807 + __cil_tmp7 = (unsigned long )compRetStatus; +#line 1807 + if (__cil_tmp7 == -1073741802) { + { +#line 1809 + stubMoreProcessingRequired(); + } + } + } + } +#line 1817 + int tmp_ndt_7; + tmp_ndt_7 = __VERIFIER_nondet_int(); + if (tmp_ndt_7 == 0) { + goto switch_8_0; + } else { +#line 1820 + int tmp_ndt_8; + tmp_ndt_8 = __VERIFIER_nondet_int(); + if (tmp_ndt_8 == 1) { + goto switch_8_1; + } else { + goto switch_8_default; +#line 1825 + if (0) { + switch_8_0: +#line 1827 + returnVal = 0; + goto switch_8_break; + switch_8_1: +#line 1830 + returnVal = -1073741823; + goto switch_8_break; + switch_8_default: +#line 1833 + returnVal = 259; + goto switch_8_break; + } else { + switch_8_break: ; + } + } + } +#line 1841 + if (s == NP) { +#line 1842 + s = IPC; +#line 1843 + lowerDriverReturn = returnVal; + } else { +#line 1845 + if (s == MPR1) { + { +#line 1846 + __cil_tmp8 = (long )returnVal; +#line 1846 + if (__cil_tmp8 == 259L) { +#line 1847 + s = MPR3; +#line 1848 + lowerDriverReturn = returnVal; + } else { +#line 1850 + s = NP; +#line 1851 + lowerDriverReturn = returnVal; + } + } + } else { +#line 1854 + if (s == SKIP1) { +#line 1855 + s = SKIP2; +#line 1856 + lowerDriverReturn = returnVal; + } else { + { +#line 1859 + errorFn(); + } + } + } + } +#line 1864 + return (returnVal); +} +} +#line 1867 "cdaudio_simpl1.cil.c" +int ZwClose(int Handle ) +{ + + { +#line 1871 + int tmp_ndt_9; + tmp_ndt_9 = __VERIFIER_nondet_int(); + if (tmp_ndt_9 == 0) { + goto switch_9_0; + } else { + goto switch_9_default; +#line 1876 + if (0) { + switch_9_0: ; +#line 1878 + return (0); + switch_9_default: ; +#line 1880 + return (-1073741823); + } else { + + } + } +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/cs_dekker_true-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/cs_dekker_true-unreach-call.c new file mode 100644 index 000000000..daa60641e --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/cs_dekker_true-unreach-call.c @@ -0,0 +1,957 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +extern void __VERIFIER_assume(int); +extern void __VERIFIER_assume(int); +typedef long unsigned int size_t; +typedef int wchar_t; + +union wait + { + int w_status; + struct + { + unsigned int __w_termsig:7; + unsigned int __w_coredump:1; + unsigned int __w_retcode:8; + unsigned int:16; + } __wait_terminated; + struct + { + unsigned int __w_stopval:8; + unsigned int __w_stopsig:8; + unsigned int:16; + } __wait_stopped; + }; +typedef union + { + union wait *__uptr; + int *__iptr; + } __WAIT_STATUS __attribute__ ((__transparent_union__)); + +typedef struct + { + int quot; + int rem; + } div_t; +typedef struct + { + long int quot; + long int rem; + } ldiv_t; + + +__extension__ typedef struct + { + long long int quot; + long long int rem; + } lldiv_t; + +extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__ , __leaf__)) ; + +extern double atof (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern int atoi (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern long int atol (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +__extension__ extern long long int atoll (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +extern double strtod (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern float strtof (__const char *__restrict __nptr, + char **__restrict __endptr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern long double strtold (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern long int strtol (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern unsigned long int strtoul (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtouq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoll (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtoull (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *l64a (long int __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern long int a64l (__const char *__s) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + +typedef unsigned char __u_char; +typedef unsigned short int __u_short; +typedef unsigned int __u_int; +typedef unsigned long int __u_long; +typedef signed char __int8_t; +typedef unsigned char __uint8_t; +typedef signed short int __int16_t; +typedef unsigned short int __uint16_t; +typedef signed int __int32_t; +typedef unsigned int __uint32_t; +typedef signed long int __int64_t; +typedef unsigned long int __uint64_t; +typedef long int __quad_t; +typedef unsigned long int __u_quad_t; +typedef unsigned long int __dev_t; +typedef unsigned int __uid_t; +typedef unsigned int __gid_t; +typedef unsigned long int __ino_t; +typedef unsigned long int __ino64_t; +typedef unsigned int __mode_t; +typedef unsigned long int __nlink_t; +typedef long int __off_t; +typedef long int __off64_t; +typedef int __pid_t; +typedef struct { int __val[2]; } __fsid_t; +typedef long int __clock_t; +typedef unsigned long int __rlim_t; +typedef unsigned long int __rlim64_t; +typedef unsigned int __id_t; +typedef long int __time_t; +typedef unsigned int __useconds_t; +typedef long int __suseconds_t; +typedef int __daddr_t; +typedef long int __swblk_t; +typedef int __key_t; +typedef int __clockid_t; +typedef void * __timer_t; +typedef long int __blksize_t; +typedef long int __blkcnt_t; +typedef long int __blkcnt64_t; +typedef unsigned long int __fsblkcnt_t; +typedef unsigned long int __fsblkcnt64_t; +typedef unsigned long int __fsfilcnt_t; +typedef unsigned long int __fsfilcnt64_t; +typedef long int __ssize_t; +typedef __off64_t __loff_t; +typedef __quad_t *__qaddr_t; +typedef char *__caddr_t; +typedef long int __intptr_t; +typedef unsigned int __socklen_t; +typedef __u_char u_char; +typedef __u_short u_short; +typedef __u_int u_int; +typedef __u_long u_long; +typedef __quad_t quad_t; +typedef __u_quad_t u_quad_t; +typedef __fsid_t fsid_t; +typedef __loff_t loff_t; +typedef __ino_t ino_t; +typedef __dev_t dev_t; +typedef __gid_t gid_t; +typedef __mode_t mode_t; +typedef __nlink_t nlink_t; +typedef __uid_t uid_t; +typedef __off_t off_t; +typedef __pid_t pid_t; +typedef __id_t id_t; +typedef __ssize_t ssize_t; +typedef __daddr_t daddr_t; +typedef __caddr_t caddr_t; +typedef __key_t key_t; + +typedef __clock_t clock_t; + + + +typedef __time_t time_t; + + +typedef __clockid_t clockid_t; +typedef __timer_t timer_t; +typedef unsigned long int ulong; +typedef unsigned short int ushort; +typedef unsigned int uint; +typedef int int8_t __attribute__ ((__mode__ (__QI__))); +typedef int int16_t __attribute__ ((__mode__ (__HI__))); +typedef int int32_t __attribute__ ((__mode__ (__SI__))); +typedef int int64_t __attribute__ ((__mode__ (__DI__))); +typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); +typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); +typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); +typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); +typedef int register_t __attribute__ ((__mode__ (__word__))); +typedef int __sig_atomic_t; +typedef struct + { + unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; + } __sigset_t; +typedef __sigset_t sigset_t; +struct timespec + { + __time_t tv_sec; + long int tv_nsec; + }; +struct timeval + { + __time_t tv_sec; + __suseconds_t tv_usec; + }; +typedef __suseconds_t suseconds_t; +typedef long int __fd_mask; +typedef struct + { + __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; + } fd_set; +typedef __fd_mask fd_mask; + +extern int select (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + struct timeval *__restrict __timeout); +extern int pselect (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + const struct timespec *__restrict __timeout, + const __sigset_t *__restrict __sigmask); + + +__extension__ +extern unsigned int gnu_dev_major (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned int gnu_dev_minor (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned long long int gnu_dev_makedev (unsigned int __major, + unsigned int __minor) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); + +typedef __blksize_t blksize_t; +typedef __blkcnt_t blkcnt_t; +typedef __fsblkcnt_t fsblkcnt_t; + + +typedef __fsfilcnt_t fsfilcnt_t; +typedef unsigned long int pthread_t; +typedef union +{ + char __size[56]; + long int __align; +} pthread_attr_t; +typedef struct __pthread_internal_list +{ + struct __pthread_internal_list *__prev; + struct __pthread_internal_list *__next; +} __pthread_list_t; +typedef union +{ + struct __pthread_mutex_s + { + int __lock; + unsigned int __count; + int __owner; + unsigned int __nusers; + int __kind; + int __spins; + __pthread_list_t __list; + } __data; + char __size[40]; + long int __align; +} pthread_mutex_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_mutexattr_t; +typedef union +{ + struct + { + int __lock; + unsigned int __futex; + __extension__ unsigned long long int __total_seq; + __extension__ unsigned long long int __wakeup_seq; + __extension__ unsigned long long int __woken_seq; + void *__mutex; + unsigned int __nwaiters; + unsigned int __broadcast_seq; + } __data; + char __size[48]; + __extension__ long long int __align; +} pthread_cond_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_condattr_t; +typedef unsigned int pthread_key_t; +typedef int pthread_once_t; +typedef union +{ + struct + { + int __lock; + unsigned int __nr_readers; + unsigned int __readers_wakeup; + unsigned int __writer_wakeup; + unsigned int __nr_readers_queued; + unsigned int __nr_writers_queued; + int __writer; + int __shared; + unsigned long int __pad1; + unsigned long int __pad2; + unsigned int __flags; + } __data; + char __size[56]; + long int __align; +} pthread_rwlock_t; +typedef union +{ + char __size[8]; + long int __align; +} pthread_rwlockattr_t; +typedef volatile int pthread_spinlock_t; +typedef union +{ + char __size[32]; + long int __align; +} pthread_barrier_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_barrierattr_t; + +extern long int random (void) __attribute__ ((__nothrow__ , __leaf__)); +extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); +extern char *initstate (unsigned int __seed, char *__statebuf, + size_t __statelen) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + + +extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + + + +struct random_data + { + int32_t *fptr; + int32_t *rptr; + int32_t *state; + int rand_type; + int rand_deg; + int rand_sep; + int32_t *end_ptr; + }; + +extern int random_r (struct random_data *__restrict __buf, + int32_t *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int srandom_r (unsigned int __seed, struct random_data *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, + size_t __statelen, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4))); + +extern int setstate_r (char *__restrict __statebuf, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + +extern int rand (void) __attribute__ ((__nothrow__ , __leaf__)); + +extern void srand (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern double drand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int lrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int nrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int mrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int jrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern void srand48 (long int __seedval) __attribute__ ((__nothrow__ , __leaf__)); +extern unsigned short int *seed48 (unsigned short int __seed16v[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + +struct drand48_data + { + unsigned short int __x[3]; + unsigned short int __old_x[3]; + unsigned short int __c; + unsigned short int __init; + unsigned long long int __a; + }; + + +extern int drand48_r (struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int erand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int lrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int nrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int mrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int jrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int srand48_r (long int __seedval, struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int seed48_r (unsigned short int __seed16v[3], + struct drand48_data *__buffer) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int lcong48_r (unsigned short int __param[7], + struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + + + + +extern void *malloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + +extern void *calloc (size_t __nmemb, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + + + + + + + +extern void *realloc (void *__ptr, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); + +extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern void cfree (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + +extern void *alloca (size_t __size) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern void *valloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + +extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + + + +extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + + +extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern void exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern void _Exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern char *getenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *__secure_getenv (__const char *__name) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int putenv (char *__string) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int setenv (__const char *__name, __const char *__value, int __replace) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); +extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int clearenv (void) __attribute__ ((__nothrow__ , __leaf__)); +extern char *mktemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ; +extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern int system (__const char *__command) ; + +extern char *realpath (__const char *__restrict __name, + char *__restrict __resolved) __attribute__ ((__nothrow__ , __leaf__)) ; +typedef int (*__compar_fn_t) (__const void *, __const void *); + +extern void *bsearch (__const void *__key, __const void *__base, + size_t __nmemb, size_t __size, __compar_fn_t __compar) + __attribute__ ((__nonnull__ (1, 2, 5))) ; +extern void qsort (void *__base, size_t __nmemb, size_t __size, + __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); +extern int abs (int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern long int labs (long int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +__extension__ extern long long int llabs (long long int __x) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern div_t div (int __numer, int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern ldiv_t ldiv (long int __numer, long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + + +__extension__ extern lldiv_t lldiv (long long int __numer, + long long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *gcvt (double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern char *qecvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qfcvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qgcvt (long double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qecvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qfcvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); + +extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int mbtowc (wchar_t *__restrict __pwc, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__ , __leaf__)) ; +extern size_t mbstowcs (wchar_t *__restrict __pwcs, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)); +extern size_t wcstombs (char *__restrict __s, + __const wchar_t *__restrict __pwcs, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)); + +extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int getsubopt (char **__restrict __optionp, + char *__const *__restrict __tokens, + char **__restrict __valuep) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2, 3))) ; +extern int getloadavg (double __loadavg[], int __nelem) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern void __assert_fail (__const char *__assertion, __const char *__file, + unsigned int __line, __const char *__function) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +extern void __assert_perror_fail (int __errnum, __const char *__file, + unsigned int __line, + __const char *__function) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +extern void __assert (const char *__assertion, const char *__file, int __line) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} + +unsigned char __CS_round = 0; +unsigned char __CS_ret = 0; +const unsigned char __CS_ret_PREEMPTED = 0x01; +const unsigned char __CS_ret_ERROR = 0x02; +const unsigned char __CS_ret_FINISHED = 0x04; +unsigned char __CS_error = 0; +unsigned char __CS_thread_index; +unsigned char __CS_thread_allocated[2 +1]; +unsigned char __CS_thread_born_round[2 +1]; +void *(*__CS_thread[2 +1])(void *); +unsigned char __CS_thread_status[3][2 +1]; +const unsigned char __THREAD_UNUSED = 0x00; +const unsigned char __THREAD_RUNNING = 0x01; +const unsigned char __THREAD_FINISHED = 0x02; +unsigned char *__CS_thread_lockedon[3][2 +1]; +int nondet_int(); +void __CS_cs(void) +{ + unsigned char k; + __VERIFIER_assume(__CS_round+k < 3); + __CS_round += k; + __CS_ret = (nondet_int() && __CS_round == 3 -1)?__CS_ret_PREEMPTED:__CS_ret; +} +int __CS_pthread_mutex_init(unsigned char *mutex, void *attr) +{ + return 0; +} +int __CS_pthread_mutex_destroy(unsigned char *lock) +{ + if (*lock != __CS_thread_index && *lock != 0) { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + } + else *lock = 0; + return 0; +} +int __CS_pthread_mutex_lock(unsigned char *lock) +{ + if (*lock == 0) *lock = (__CS_thread_index+1); + else { __CS_ret = __CS_ret_PREEMPTED; return 1; } + return 0; +} +int __CS_pthread_mutex_unlock(unsigned char *lock) +{ + if (*lock != (__CS_thread_index+1)) { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + return 1; + } else *lock = 0; + return 0; +} +int __CS_pthread_cond_init(unsigned char *cond, void *attr) +{ + return 0; +} +int __CS_pthread_cond_signal(unsigned char *cond) +{ + int j; + for (j=0; j<=2; j++) + if (__CS_thread_lockedon[__CS_round][j] == cond) + __CS_thread_lockedon[__CS_round][j] = 0; + return 0; +} +int __CS_pthread_cond_broadcast(unsigned char *cond) +{ + int j; + for (j=0; j<=2; j++) + if (__CS_thread_lockedon[__CS_round][j] == cond) + __CS_thread_lockedon[__CS_round][j] = 0; + return 0; +} +int __CS_pthread_cond_wait(unsigned char *cond, unsigned char *lock) +{ + if (*lock != (__CS_thread_index+1)) { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + return 1; + } + else *lock = 0; + __CS_thread_lockedon[__CS_round][__CS_thread_index] = cond; + __CS_ret = __CS_ret_PREEMPTED; + if (*lock == 0) *lock = __CS_thread_index+1; + else { __CS_ret = __CS_ret_PREEMPTED; return 1; } + return 0; +} +void __CS_assert(int expr) +{ + if (!expr) { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + } +} +void __CS_assume(int expr) +{ + if (!expr) __CS_ret = __CS_ret_PREEMPTED; +} +int __CS_pthread_join(unsigned char thread, void **value_ptr) +{ + if (thread != 123 && thread > 2 +1) + { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + return 0; + } + if ( thread == 123 || __CS_thread_status[__CS_round][thread] == __THREAD_RUNNING ) + { + __CS_ret = __CS_ret_PREEMPTED; + return 0; + } + if (__CS_thread_status[__CS_round][thread] == __THREAD_UNUSED) + { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + return 0; + } + __VERIFIER_assume( __CS_thread_status[__CS_round][thread] == __THREAD_FINISHED ); + return 0; +} +int __CS_pthread_create(unsigned char *id1, void *attr, void *(*t1)(void*), void *arg) +{ + if (__CS_thread_index == 2) { + *id1 = 123; + return -1; + } + __CS_thread_index++; + __CS_thread_allocated[__CS_thread_index] = 1; + __CS_thread_born_round[__CS_thread_index] = __CS_round; + __CS_thread[__CS_thread_index] = t1; + __CS_thread_status[__CS_round][__CS_thread_index] = __THREAD_RUNNING; + *id1 = __CS_thread_index; + return __CS_thread_index; +} +int flag1[3] = {0}; +int flag2[3] = {0}; +int turn[3]; +int x[3]; +union __CS__u { + int flag1[3]; + int flag2[3]; + int turn[3]; + int x[3]; +}; +union __CS__u __CS_u; +void *thr1() +{ + __CS_cs(); if (__CS_ret != 0) return 0; + flag1[__CS_round] = 1; + __CS_cs(); if (__CS_ret != 0) return 0; + while (flag2[__CS_round] >= 1) + { + __CS_cs(); if (__CS_ret != 0) return 0; + if (turn[__CS_round] != 0) + { + __CS_cs(); if (__CS_ret != 0) return 0; + flag1[__CS_round] = 0; + __CS_cs(); if (__CS_ret != 0) return 0; + while (turn[__CS_round] != 0) + { + __CS_cs(); if (__CS_ret != 0) return 0; + } + __CS_cs(); if (__CS_ret != 0) return 0; + ; + __CS_cs(); if (__CS_ret != 0) return 0; + flag1[__CS_round] = 1; + __CS_cs(); if (__CS_ret != 0) return 0; + } + __CS_cs(); if (__CS_ret != 0) return 0; + } + __CS_cs(); if (__CS_ret != 0) return 0; + x[__CS_round] = 0; + __CS_cs(); if (__CS_ret != 0) return 0; + if (!(x[__CS_round] <= 0)) + { + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_ERROR: __CS_error = 1; __CS_ret = __CS_ret_ERROR; return 0; + __CS_cs(); if (__CS_ret != 0) return 0; + goto __CS_ERROR; + } + __CS_cs(); if (__CS_ret != 0) return 0; + ; + __CS_cs(); if (__CS_ret != 0) return 0; + turn[__CS_round] = 1; + __CS_cs(); if (__CS_ret != 0) return 0; + flag1[__CS_round] = 0; + __CS_cs(); if (__CS_ret != 0) return 0; +} +void *thr2() +{ + __CS_cs(); if (__CS_ret != 0) return 0; + flag2[__CS_round] = 1; + __CS_cs(); if (__CS_ret != 0) return 0; + while (flag1[__CS_round] >= 1) + { + __CS_cs(); if (__CS_ret != 0) return 0; + if (turn[__CS_round] != 1) + { + __CS_cs(); if (__CS_ret != 0) return 0; + flag2[__CS_round] = 0; + __CS_cs(); if (__CS_ret != 0) return 0; + while (turn[__CS_round] != 1) + { + __CS_cs(); if (__CS_ret != 0) return 0; + } + __CS_cs(); if (__CS_ret != 0) return 0; + ; + __CS_cs(); if (__CS_ret != 0) return 0; + flag2[__CS_round] = 1; + __CS_cs(); if (__CS_ret != 0) return 0; + } + __CS_cs(); if (__CS_ret != 0) return 0; + } + __CS_cs(); if (__CS_ret != 0) return 0; + x[__CS_round] = 1; + __CS_cs(); if (__CS_ret != 0) return 0; + if (!(x[__CS_round] >= 1)) + { + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_ERROR: __CS_error = 1; __CS_ret = __CS_ret_ERROR; return 0; + __CS_cs(); if (__CS_ret != 0) return 0; + goto __CS_ERROR; + } + __CS_cs(); if (__CS_ret != 0) return 0; + ; + __CS_cs(); if (__CS_ret != 0) return 0; + turn[__CS_round] = 1; + __CS_cs(); if (__CS_ret != 0) return 0; + flag2[__CS_round] = 0; + __CS_cs(); if (__CS_ret != 0) return 0; +} +void *main_thread(void *arg) +{ + unsigned char t1; + unsigned char t2; + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_assume((0 <= turn[__CS_round]) && (turn[__CS_round] <= 1)); + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_create(&t1, 0, thr1, 0); + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_create(&t2, 0, thr2, 0); + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_join(t1, 0); + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_join(t2, 0); + __CS_cs(); if (__CS_ret != 0) return 0; + } +int main() +{ + unsigned char __CS_cp___CS_thread_status[3][2 +1]; + unsigned char *__CS_cp___CS_thread_lockedon[3][2 +1]; + int __CS_cp_flag1[3]; + int __CS_cp_flag2[3]; + int __CS_cp_turn[3]; + int __CS_cp_x[3]; + __CS_thread_status[1][0] = __CS_cp___CS_thread_status[1][0]; + __CS_thread_status[2][0] = __CS_cp___CS_thread_status[2][0]; + __CS_thread_status[1][1] = __CS_cp___CS_thread_status[1][1]; + __CS_thread_status[2][1] = __CS_cp___CS_thread_status[2][1]; + __CS_thread_status[1][2] = __CS_cp___CS_thread_status[1][2]; + __CS_thread_status[2][2] = __CS_cp___CS_thread_status[2][2]; + __CS_thread_lockedon[1][0] = __CS_cp___CS_thread_lockedon[1][0]; + __CS_thread_lockedon[2][0] = __CS_cp___CS_thread_lockedon[2][0]; + __CS_thread_lockedon[1][1] = __CS_cp___CS_thread_lockedon[1][1]; + __CS_thread_lockedon[2][1] = __CS_cp___CS_thread_lockedon[2][1]; + __CS_thread_lockedon[1][2] = __CS_cp___CS_thread_lockedon[1][2]; + __CS_thread_lockedon[2][2] = __CS_cp___CS_thread_lockedon[2][2]; + flag1[1] = __CS_cp_flag1[1]; + flag1[2] = __CS_cp_flag1[2]; + flag2[1] = __CS_cp_flag2[1]; + flag2[2] = __CS_cp_flag2[2]; + turn[1] = __CS_cp_turn[1]; + turn[2] = __CS_cp_turn[2]; + x[1] = __CS_cp_x[1]; + x[2] = __CS_cp_x[2]; + __CS_round = 0; + __CS_thread_index = 0; + __CS_thread_born_round[0] = __CS_round; + __CS_thread_status[0][0] = __THREAD_RUNNING; + __CS_thread[0] = main_thread; + __CS_thread_allocated[0] = 1; + if (__CS_thread_allocated[0] == 1) { + __CS_round = __CS_thread_born_round[0]; + __CS_ret = 0; + __CS_thread[0](0); + if (__CS_ret!=__CS_ret_PREEMPTED) __CS_thread_status[__CS_round][0] = __THREAD_FINISHED; + } + if (__CS_thread_allocated[1] == 1) { + __CS_round = __CS_thread_born_round[1]; + __CS_ret = 0; + __CS_thread[1](0); + if (__CS_ret!=__CS_ret_PREEMPTED) __CS_thread_status[__CS_round][1] = __THREAD_FINISHED; + } + if (__CS_thread_allocated[2] == 1) { + __CS_round = __CS_thread_born_round[2]; + __CS_ret = 0; + __CS_thread[2](0); + if (__CS_ret!=__CS_ret_PREEMPTED) __CS_thread_status[__CS_round][2] = __THREAD_FINISHED; + } + __VERIFIER_assume(__CS_thread_status[0][0] == __CS_cp___CS_thread_status[1][0]); + __VERIFIER_assume(__CS_thread_status[1][0] == __CS_cp___CS_thread_status[2][0]); + __VERIFIER_assume(__CS_thread_status[0][1] == __CS_cp___CS_thread_status[1][1]); + __VERIFIER_assume(__CS_thread_status[1][1] == __CS_cp___CS_thread_status[2][1]); + __VERIFIER_assume(__CS_thread_status[0][2] == __CS_cp___CS_thread_status[1][2]); + __VERIFIER_assume(__CS_thread_status[1][2] == __CS_cp___CS_thread_status[2][2]); + __VERIFIER_assume(__CS_thread_lockedon[0][0] == __CS_cp___CS_thread_lockedon[1][0]); + __VERIFIER_assume(__CS_thread_lockedon[1][0] == __CS_cp___CS_thread_lockedon[2][0]); + __VERIFIER_assume(__CS_thread_lockedon[0][1] == __CS_cp___CS_thread_lockedon[1][1]); + __VERIFIER_assume(__CS_thread_lockedon[1][1] == __CS_cp___CS_thread_lockedon[2][1]); + __VERIFIER_assume(__CS_thread_lockedon[0][2] == __CS_cp___CS_thread_lockedon[1][2]); + __VERIFIER_assume(__CS_thread_lockedon[1][2] == __CS_cp___CS_thread_lockedon[2][2]); + __VERIFIER_assume(flag1[0] == __CS_cp_flag1[1]); + __VERIFIER_assume(flag1[1] == __CS_cp_flag1[2]); + __VERIFIER_assume(flag2[0] == __CS_cp_flag2[1]); + __VERIFIER_assume(flag2[1] == __CS_cp_flag2[2]); + __VERIFIER_assume(turn[0] == __CS_cp_turn[1]); + __VERIFIER_assume(turn[1] == __CS_cp_turn[2]); + __VERIFIER_assume(x[0] == __CS_cp_x[1]); + __VERIFIER_assume(x[1] == __CS_cp_x[2]); + __VERIFIER_assert(__CS_error != 1); +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/cs_fib_longer_true-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/cs_fib_longer_true-unreach-call.c new file mode 100644 index 000000000..a304848f5 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/cs_fib_longer_true-unreach-call.c @@ -0,0 +1,957 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +extern void __VERIFIER_assume(int); +typedef long unsigned int size_t; +typedef int wchar_t; + +union wait + { + int w_status; + struct + { + unsigned int __w_termsig:7; + unsigned int __w_coredump:1; + unsigned int __w_retcode:8; + unsigned int:16; + } __wait_terminated; + struct + { + unsigned int __w_stopval:8; + unsigned int __w_stopsig:8; + unsigned int:16; + } __wait_stopped; + }; +typedef union + { + union wait *__uptr; + int *__iptr; + } __WAIT_STATUS __attribute__ ((__transparent_union__)); + +typedef struct + { + int quot; + int rem; + } div_t; +typedef struct + { + long int quot; + long int rem; + } ldiv_t; + + +__extension__ typedef struct + { + long long int quot; + long long int rem; + } lldiv_t; + +extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__ , __leaf__)) ; + +extern double atof (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern int atoi (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern long int atol (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +__extension__ extern long long int atoll (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +extern double strtod (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern float strtof (__const char *__restrict __nptr, + char **__restrict __endptr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern long double strtold (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern long int strtol (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern unsigned long int strtoul (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtouq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoll (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtoull (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *l64a (long int __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern long int a64l (__const char *__s) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + +typedef unsigned char __u_char; +typedef unsigned short int __u_short; +typedef unsigned int __u_int; +typedef unsigned long int __u_long; +typedef signed char __int8_t; +typedef unsigned char __uint8_t; +typedef signed short int __int16_t; +typedef unsigned short int __uint16_t; +typedef signed int __int32_t; +typedef unsigned int __uint32_t; +typedef signed long int __int64_t; +typedef unsigned long int __uint64_t; +typedef long int __quad_t; +typedef unsigned long int __u_quad_t; +typedef unsigned long int __dev_t; +typedef unsigned int __uid_t; +typedef unsigned int __gid_t; +typedef unsigned long int __ino_t; +typedef unsigned long int __ino64_t; +typedef unsigned int __mode_t; +typedef unsigned long int __nlink_t; +typedef long int __off_t; +typedef long int __off64_t; +typedef int __pid_t; +typedef struct { int __val[2]; } __fsid_t; +typedef long int __clock_t; +typedef unsigned long int __rlim_t; +typedef unsigned long int __rlim64_t; +typedef unsigned int __id_t; +typedef long int __time_t; +typedef unsigned int __useconds_t; +typedef long int __suseconds_t; +typedef int __daddr_t; +typedef long int __swblk_t; +typedef int __key_t; +typedef int __clockid_t; +typedef void * __timer_t; +typedef long int __blksize_t; +typedef long int __blkcnt_t; +typedef long int __blkcnt64_t; +typedef unsigned long int __fsblkcnt_t; +typedef unsigned long int __fsblkcnt64_t; +typedef unsigned long int __fsfilcnt_t; +typedef unsigned long int __fsfilcnt64_t; +typedef long int __ssize_t; +typedef __off64_t __loff_t; +typedef __quad_t *__qaddr_t; +typedef char *__caddr_t; +typedef long int __intptr_t; +typedef unsigned int __socklen_t; +typedef __u_char u_char; +typedef __u_short u_short; +typedef __u_int u_int; +typedef __u_long u_long; +typedef __quad_t quad_t; +typedef __u_quad_t u_quad_t; +typedef __fsid_t fsid_t; +typedef __loff_t loff_t; +typedef __ino_t ino_t; +typedef __dev_t dev_t; +typedef __gid_t gid_t; +typedef __mode_t mode_t; +typedef __nlink_t nlink_t; +typedef __uid_t uid_t; +typedef __off_t off_t; +typedef __pid_t pid_t; +typedef __id_t id_t; +typedef __ssize_t ssize_t; +typedef __daddr_t daddr_t; +typedef __caddr_t caddr_t; +typedef __key_t key_t; + +typedef __clock_t clock_t; + + + +typedef __time_t time_t; + + +typedef __clockid_t clockid_t; +typedef __timer_t timer_t; +typedef unsigned long int ulong; +typedef unsigned short int ushort; +typedef unsigned int uint; +typedef int int8_t __attribute__ ((__mode__ (__QI__))); +typedef int int16_t __attribute__ ((__mode__ (__HI__))); +typedef int int32_t __attribute__ ((__mode__ (__SI__))); +typedef int int64_t __attribute__ ((__mode__ (__DI__))); +typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); +typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); +typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); +typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); +typedef int register_t __attribute__ ((__mode__ (__word__))); +typedef int __sig_atomic_t; +typedef struct + { + unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; + } __sigset_t; +typedef __sigset_t sigset_t; +struct timespec + { + __time_t tv_sec; + long int tv_nsec; + }; +struct timeval + { + __time_t tv_sec; + __suseconds_t tv_usec; + }; +typedef __suseconds_t suseconds_t; +typedef long int __fd_mask; +typedef struct + { + __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; + } fd_set; +typedef __fd_mask fd_mask; + +extern int select (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + struct timeval *__restrict __timeout); +extern int pselect (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + const struct timespec *__restrict __timeout, + const __sigset_t *__restrict __sigmask); + + +__extension__ +extern unsigned int gnu_dev_major (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned int gnu_dev_minor (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned long long int gnu_dev_makedev (unsigned int __major, + unsigned int __minor) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); + +typedef __blksize_t blksize_t; +typedef __blkcnt_t blkcnt_t; +typedef __fsblkcnt_t fsblkcnt_t; + + +typedef __fsfilcnt_t fsfilcnt_t; +typedef unsigned long int pthread_t; +typedef union +{ + char __size[56]; + long int __align; +} pthread_attr_t; +typedef struct __pthread_internal_list +{ + struct __pthread_internal_list *__prev; + struct __pthread_internal_list *__next; +} __pthread_list_t; +typedef union +{ + struct __pthread_mutex_s + { + int __lock; + unsigned int __count; + int __owner; + unsigned int __nusers; + int __kind; + int __spins; + __pthread_list_t __list; + } __data; + char __size[40]; + long int __align; +} pthread_mutex_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_mutexattr_t; +typedef union +{ + struct + { + int __lock; + unsigned int __futex; + __extension__ unsigned long long int __total_seq; + __extension__ unsigned long long int __wakeup_seq; + __extension__ unsigned long long int __woken_seq; + void *__mutex; + unsigned int __nwaiters; + unsigned int __broadcast_seq; + } __data; + char __size[48]; + __extension__ long long int __align; +} pthread_cond_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_condattr_t; +typedef unsigned int pthread_key_t; +typedef int pthread_once_t; +typedef union +{ + struct + { + int __lock; + unsigned int __nr_readers; + unsigned int __readers_wakeup; + unsigned int __writer_wakeup; + unsigned int __nr_readers_queued; + unsigned int __nr_writers_queued; + int __writer; + int __shared; + unsigned long int __pad1; + unsigned long int __pad2; + unsigned int __flags; + } __data; + char __size[56]; + long int __align; +} pthread_rwlock_t; +typedef union +{ + char __size[8]; + long int __align; +} pthread_rwlockattr_t; +typedef volatile int pthread_spinlock_t; +typedef union +{ + char __size[32]; + long int __align; +} pthread_barrier_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_barrierattr_t; + +extern long int random (void) __attribute__ ((__nothrow__ , __leaf__)); +extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); +extern char *initstate (unsigned int __seed, char *__statebuf, + size_t __statelen) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + + +extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + + + +struct random_data + { + int32_t *fptr; + int32_t *rptr; + int32_t *state; + int rand_type; + int rand_deg; + int rand_sep; + int32_t *end_ptr; + }; + +extern int random_r (struct random_data *__restrict __buf, + int32_t *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int srandom_r (unsigned int __seed, struct random_data *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, + size_t __statelen, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4))); + +extern int setstate_r (char *__restrict __statebuf, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + +extern int rand (void) __attribute__ ((__nothrow__ , __leaf__)); + +extern void srand (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern double drand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int lrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int nrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int mrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int jrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern void srand48 (long int __seedval) __attribute__ ((__nothrow__ , __leaf__)); +extern unsigned short int *seed48 (unsigned short int __seed16v[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + +struct drand48_data + { + unsigned short int __x[3]; + unsigned short int __old_x[3]; + unsigned short int __c; + unsigned short int __init; + unsigned long long int __a; + }; + + +extern int drand48_r (struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int erand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int lrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int nrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int mrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int jrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int srand48_r (long int __seedval, struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int seed48_r (unsigned short int __seed16v[3], + struct drand48_data *__buffer) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int lcong48_r (unsigned short int __param[7], + struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + + + + +extern void *malloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + +extern void *calloc (size_t __nmemb, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + + + + + + + +extern void *realloc (void *__ptr, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); + +extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern void cfree (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + +extern void *alloca (size_t __size) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern void *valloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + +extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + + + +extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + + +extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern void exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern void _Exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern char *getenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *__secure_getenv (__const char *__name) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int putenv (char *__string) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int setenv (__const char *__name, __const char *__value, int __replace) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); +extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int clearenv (void) __attribute__ ((__nothrow__ , __leaf__)); +extern char *mktemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ; +extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern int system (__const char *__command) ; + +extern char *realpath (__const char *__restrict __name, + char *__restrict __resolved) __attribute__ ((__nothrow__ , __leaf__)) ; +typedef int (*__compar_fn_t) (__const void *, __const void *); + +extern void *bsearch (__const void *__key, __const void *__base, + size_t __nmemb, size_t __size, __compar_fn_t __compar) + __attribute__ ((__nonnull__ (1, 2, 5))) ; +extern void qsort (void *__base, size_t __nmemb, size_t __size, + __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); +extern int abs (int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern long int labs (long int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +__extension__ extern long long int llabs (long long int __x) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern div_t div (int __numer, int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern ldiv_t ldiv (long int __numer, long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + + +__extension__ extern lldiv_t lldiv (long long int __numer, + long long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *gcvt (double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern char *qecvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qfcvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qgcvt (long double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qecvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qfcvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); + +extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int mbtowc (wchar_t *__restrict __pwc, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__ , __leaf__)) ; +extern size_t mbstowcs (wchar_t *__restrict __pwcs, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)); +extern size_t wcstombs (char *__restrict __s, + __const wchar_t *__restrict __pwcs, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)); + +extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int getsubopt (char **__restrict __optionp, + char *__const *__restrict __tokens, + char **__restrict __valuep) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2, 3))) ; +extern int getloadavg (double __loadavg[], int __nelem) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern void __assert_fail (__const char *__assertion, __const char *__file, + unsigned int __line, __const char *__function) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +extern void __assert_perror_fail (int __errnum, __const char *__file, + unsigned int __line, + __const char *__function) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +extern void __assert (const char *__assertion, const char *__file, int __line) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} + +unsigned char __CS_round = 0; +unsigned char __CS_ret = 0; +const unsigned char __CS_ret_PREEMPTED = 0x01; +const unsigned char __CS_ret_ERROR = 0x02; +const unsigned char __CS_ret_FINISHED = 0x04; +unsigned char __CS_error = 0; +unsigned char __CS_thread_index; +unsigned char __CS_thread_allocated[2 +1]; +unsigned char __CS_thread_born_round[2 +1]; +void *(*__CS_thread[2 +1])(void *); +unsigned char __CS_thread_status[7][2 +1]; +const unsigned char __THREAD_UNUSED = 0x00; +const unsigned char __THREAD_RUNNING = 0x01; +const unsigned char __THREAD_FINISHED = 0x02; +unsigned char *__CS_thread_lockedon[7][2 +1]; +int nondet_int(); +void __CS_cs(void) +{ + unsigned char k; + __VERIFIER_assume(__CS_round+k < 7); + __CS_round += k; + __CS_ret = (nondet_int() && __CS_round == 7 -1)?__CS_ret_PREEMPTED:__CS_ret; +} +int __CS_pthread_mutex_init(unsigned char *mutex, void *attr) +{ + return 0; +} +int __CS_pthread_mutex_destroy(unsigned char *lock) +{ + if (*lock != __CS_thread_index && *lock != 0) { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + } + else *lock = 0; + return 0; +} +int __CS_pthread_mutex_lock(unsigned char *lock) +{ + if (*lock == 0) *lock = (__CS_thread_index+1); + else { __CS_ret = __CS_ret_PREEMPTED; return 1; } + return 0; +} +int __CS_pthread_mutex_unlock(unsigned char *lock) +{ + if (*lock != (__CS_thread_index+1)) { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + return 1; + } else *lock = 0; + return 0; +} +int __CS_pthread_cond_init(unsigned char *cond, void *attr) +{ + return 0; +} +int __CS_pthread_cond_signal(unsigned char *cond) +{ + int j; + for (j=0; j<=2; j++) + if (__CS_thread_lockedon[__CS_round][j] == cond) + __CS_thread_lockedon[__CS_round][j] = 0; + return 0; +} +int __CS_pthread_cond_broadcast(unsigned char *cond) +{ + int j; + for (j=0; j<=2; j++) + if (__CS_thread_lockedon[__CS_round][j] == cond) + __CS_thread_lockedon[__CS_round][j] = 0; + return 0; +} +int __CS_pthread_cond_wait(unsigned char *cond, unsigned char *lock) +{ + if (*lock != (__CS_thread_index+1)) { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + return 1; + } + else *lock = 0; + __CS_thread_lockedon[__CS_round][__CS_thread_index] = cond; + __CS_ret = __CS_ret_PREEMPTED; + if (*lock == 0) *lock = __CS_thread_index+1; + else { __CS_ret = __CS_ret_PREEMPTED; return 1; } + return 0; +} +void __CS_assert(int expr) +{ + if (!expr) { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + } +} +void __CS_assume(int expr) +{ + if (!expr) __CS_ret = __CS_ret_PREEMPTED; +} +int __CS_pthread_join(unsigned char thread, void **value_ptr) +{ + if (thread != 123 && thread > 2 +1) + { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + return 0; + } + if ( thread == 123 || __CS_thread_status[__CS_round][thread] == __THREAD_RUNNING ) + { + __CS_ret = __CS_ret_PREEMPTED; + return 0; + } + if (__CS_thread_status[__CS_round][thread] == __THREAD_UNUSED) + { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + return 0; + } + __VERIFIER_assume( __CS_thread_status[__CS_round][thread] == __THREAD_FINISHED ); + return 0; +} +int __CS_pthread_create(unsigned char *id1, void *attr, void *(*t1)(void*), void *arg) +{ + if (__CS_thread_index == 2) { + *id1 = 123; + return -1; + } + __CS_thread_index++; + __CS_thread_allocated[__CS_thread_index] = 1; + __CS_thread_born_round[__CS_thread_index] = __CS_round; + __CS_thread[__CS_thread_index] = t1; + __CS_thread_status[__CS_round][__CS_thread_index] = __THREAD_RUNNING; + *id1 = __CS_thread_index; + return __CS_thread_index; +} +int i[7] = {1}; +int j[7] = {1}; +union __CS__u { + int i[7]; + int j[7]; +}; +union __CS__u __CS_u; +void *t1(void *arg) +{ + int k = 0; + __CS_cs(); if (__CS_ret != 0) return 0; + for (k = 0; k < 6; k++) + { + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_u.i[__CS_round] = i[__CS_round]; + i[__CS_round] += j[__CS_round]; + if (__CS_ret) i[__CS_round]= __CS_u.i[__CS_round]; + } + __CS_cs(); if (__CS_ret != 0) return 0; + ; + __CS_cs(); if (__CS_ret != 0) return 0; +} +void *t2(void *arg) +{ + int k = 0; + __CS_cs(); if (__CS_ret != 0) return 0; + for (k = 0; k < 6; k++) + { + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_u.j[__CS_round] = j[__CS_round]; + j[__CS_round] += i[__CS_round]; + if (__CS_ret) j[__CS_round]= __CS_u.j[__CS_round]; + } + __CS_cs(); if (__CS_ret != 0) return 0; + ; + __CS_cs(); if (__CS_ret != 0) return 0; +} +void *main_thread(void *arg) +{ + int __CS_main_arg_argc; + char **argv; + unsigned char id1; + unsigned char id2; + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_create(&id1, 0, t1, 0); + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_create(&id2, 0, t2, 0); + __CS_cs(); if (__CS_ret != 0) return 0; + if ((i[__CS_round] > 377) || (j[__CS_round] > 377)) + { + __CS_cs(); if (__CS_ret != 0) return 0; + goto __CS_ERROR; + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_ERROR: __CS_error = 1; __CS_ret = __CS_ret_ERROR; return 0; + __CS_cs(); if (__CS_ret != 0) return 0; + ; + __CS_cs(); if (__CS_ret != 0) return 0; + } + __CS_cs(); if (__CS_ret != 0) return 0; + } +int main(int argc, char **argv) +{ + unsigned char __CS_cp___CS_thread_status[7][2 +1]; + unsigned char *__CS_cp___CS_thread_lockedon[7][2 +1]; + int __CS_cp_i[7]; + int __CS_cp_j[7]; + __CS_thread_status[1][0] = __CS_cp___CS_thread_status[1][0]; + __CS_thread_status[2][0] = __CS_cp___CS_thread_status[2][0]; + __CS_thread_status[3][0] = __CS_cp___CS_thread_status[3][0]; + __CS_thread_status[4][0] = __CS_cp___CS_thread_status[4][0]; + __CS_thread_status[5][0] = __CS_cp___CS_thread_status[5][0]; + __CS_thread_status[6][0] = __CS_cp___CS_thread_status[6][0]; + __CS_thread_status[1][1] = __CS_cp___CS_thread_status[1][1]; + __CS_thread_status[2][1] = __CS_cp___CS_thread_status[2][1]; + __CS_thread_status[3][1] = __CS_cp___CS_thread_status[3][1]; + __CS_thread_status[4][1] = __CS_cp___CS_thread_status[4][1]; + __CS_thread_status[5][1] = __CS_cp___CS_thread_status[5][1]; + __CS_thread_status[6][1] = __CS_cp___CS_thread_status[6][1]; + __CS_thread_status[1][2] = __CS_cp___CS_thread_status[1][2]; + __CS_thread_status[2][2] = __CS_cp___CS_thread_status[2][2]; + __CS_thread_status[3][2] = __CS_cp___CS_thread_status[3][2]; + __CS_thread_status[4][2] = __CS_cp___CS_thread_status[4][2]; + __CS_thread_status[5][2] = __CS_cp___CS_thread_status[5][2]; + __CS_thread_status[6][2] = __CS_cp___CS_thread_status[6][2]; + __CS_thread_lockedon[1][0] = __CS_cp___CS_thread_lockedon[1][0]; + __CS_thread_lockedon[2][0] = __CS_cp___CS_thread_lockedon[2][0]; + __CS_thread_lockedon[3][0] = __CS_cp___CS_thread_lockedon[3][0]; + __CS_thread_lockedon[4][0] = __CS_cp___CS_thread_lockedon[4][0]; + __CS_thread_lockedon[5][0] = __CS_cp___CS_thread_lockedon[5][0]; + __CS_thread_lockedon[6][0] = __CS_cp___CS_thread_lockedon[6][0]; + __CS_thread_lockedon[1][1] = __CS_cp___CS_thread_lockedon[1][1]; + __CS_thread_lockedon[2][1] = __CS_cp___CS_thread_lockedon[2][1]; + __CS_thread_lockedon[3][1] = __CS_cp___CS_thread_lockedon[3][1]; + __CS_thread_lockedon[4][1] = __CS_cp___CS_thread_lockedon[4][1]; + __CS_thread_lockedon[5][1] = __CS_cp___CS_thread_lockedon[5][1]; + __CS_thread_lockedon[6][1] = __CS_cp___CS_thread_lockedon[6][1]; + __CS_thread_lockedon[1][2] = __CS_cp___CS_thread_lockedon[1][2]; + __CS_thread_lockedon[2][2] = __CS_cp___CS_thread_lockedon[2][2]; + __CS_thread_lockedon[3][2] = __CS_cp___CS_thread_lockedon[3][2]; + __CS_thread_lockedon[4][2] = __CS_cp___CS_thread_lockedon[4][2]; + __CS_thread_lockedon[5][2] = __CS_cp___CS_thread_lockedon[5][2]; + __CS_thread_lockedon[6][2] = __CS_cp___CS_thread_lockedon[6][2]; + i[1] = __CS_cp_i[1]; + i[2] = __CS_cp_i[2]; + i[3] = __CS_cp_i[3]; + i[4] = __CS_cp_i[4]; + i[5] = __CS_cp_i[5]; + i[6] = __CS_cp_i[6]; + j[1] = __CS_cp_j[1]; + j[2] = __CS_cp_j[2]; + j[3] = __CS_cp_j[3]; + j[4] = __CS_cp_j[4]; + j[5] = __CS_cp_j[5]; + j[6] = __CS_cp_j[6]; + __CS_round = 0; + __CS_thread_index = 0; + __CS_thread_born_round[0] = __CS_round; + __CS_thread_status[0][0] = __THREAD_RUNNING; + __CS_thread[0] = main_thread; + __CS_thread_allocated[0] = 1; + if (__CS_thread_allocated[0] == 1) { + __CS_round = __CS_thread_born_round[0]; + __CS_ret = 0; + __CS_thread[0](0); + if (__CS_ret!=__CS_ret_PREEMPTED) __CS_thread_status[__CS_round][0] = __THREAD_FINISHED; + } + if (__CS_thread_allocated[1] == 1) { + __CS_round = __CS_thread_born_round[1]; + __CS_ret = 0; + __CS_thread[1](0); + if (__CS_ret!=__CS_ret_PREEMPTED) __CS_thread_status[__CS_round][1] = __THREAD_FINISHED; + } + if (__CS_thread_allocated[2] == 1) { + __CS_round = __CS_thread_born_round[2]; + __CS_ret = 0; + __CS_thread[2](0); + if (__CS_ret!=__CS_ret_PREEMPTED) __CS_thread_status[__CS_round][2] = __THREAD_FINISHED; + } + __VERIFIER_assume(__CS_thread_status[0][0] == __CS_cp___CS_thread_status[1][0]); + __VERIFIER_assume(__CS_thread_status[1][0] == __CS_cp___CS_thread_status[2][0]); + __VERIFIER_assume(__CS_thread_status[2][0] == __CS_cp___CS_thread_status[3][0]); + __VERIFIER_assume(__CS_thread_status[3][0] == __CS_cp___CS_thread_status[4][0]); + __VERIFIER_assume(__CS_thread_status[4][0] == __CS_cp___CS_thread_status[5][0]); + __VERIFIER_assume(__CS_thread_status[5][0] == __CS_cp___CS_thread_status[6][0]); + __VERIFIER_assume(__CS_thread_status[0][1] == __CS_cp___CS_thread_status[1][1]); + __VERIFIER_assume(__CS_thread_status[1][1] == __CS_cp___CS_thread_status[2][1]); + __VERIFIER_assume(__CS_thread_status[2][1] == __CS_cp___CS_thread_status[3][1]); + __VERIFIER_assume(__CS_thread_status[3][1] == __CS_cp___CS_thread_status[4][1]); + __VERIFIER_assume(__CS_thread_status[4][1] == __CS_cp___CS_thread_status[5][1]); + __VERIFIER_assume(__CS_thread_status[5][1] == __CS_cp___CS_thread_status[6][1]); + __VERIFIER_assume(__CS_thread_status[0][2] == __CS_cp___CS_thread_status[1][2]); + __VERIFIER_assume(__CS_thread_status[1][2] == __CS_cp___CS_thread_status[2][2]); + __VERIFIER_assume(__CS_thread_status[2][2] == __CS_cp___CS_thread_status[3][2]); + __VERIFIER_assume(__CS_thread_status[3][2] == __CS_cp___CS_thread_status[4][2]); + __VERIFIER_assume(__CS_thread_status[4][2] == __CS_cp___CS_thread_status[5][2]); + __VERIFIER_assume(__CS_thread_status[5][2] == __CS_cp___CS_thread_status[6][2]); + __VERIFIER_assume(__CS_thread_lockedon[0][0] == __CS_cp___CS_thread_lockedon[1][0]); + __VERIFIER_assume(__CS_thread_lockedon[1][0] == __CS_cp___CS_thread_lockedon[2][0]); + __VERIFIER_assume(__CS_thread_lockedon[2][0] == __CS_cp___CS_thread_lockedon[3][0]); + __VERIFIER_assume(__CS_thread_lockedon[3][0] == __CS_cp___CS_thread_lockedon[4][0]); + __VERIFIER_assume(__CS_thread_lockedon[4][0] == __CS_cp___CS_thread_lockedon[5][0]); + __VERIFIER_assume(__CS_thread_lockedon[5][0] == __CS_cp___CS_thread_lockedon[6][0]); + __VERIFIER_assume(__CS_thread_lockedon[0][1] == __CS_cp___CS_thread_lockedon[1][1]); + __VERIFIER_assume(__CS_thread_lockedon[1][1] == __CS_cp___CS_thread_lockedon[2][1]); + __VERIFIER_assume(__CS_thread_lockedon[2][1] == __CS_cp___CS_thread_lockedon[3][1]); + __VERIFIER_assume(__CS_thread_lockedon[3][1] == __CS_cp___CS_thread_lockedon[4][1]); + __VERIFIER_assume(__CS_thread_lockedon[4][1] == __CS_cp___CS_thread_lockedon[5][1]); + __VERIFIER_assume(__CS_thread_lockedon[5][1] == __CS_cp___CS_thread_lockedon[6][1]); + __VERIFIER_assume(__CS_thread_lockedon[0][2] == __CS_cp___CS_thread_lockedon[1][2]); + __VERIFIER_assume(__CS_thread_lockedon[1][2] == __CS_cp___CS_thread_lockedon[2][2]); + __VERIFIER_assume(__CS_thread_lockedon[2][2] == __CS_cp___CS_thread_lockedon[3][2]); + __VERIFIER_assume(__CS_thread_lockedon[3][2] == __CS_cp___CS_thread_lockedon[4][2]); + __VERIFIER_assume(__CS_thread_lockedon[4][2] == __CS_cp___CS_thread_lockedon[5][2]); + __VERIFIER_assume(__CS_thread_lockedon[5][2] == __CS_cp___CS_thread_lockedon[6][2]); + __VERIFIER_assume(i[0] == __CS_cp_i[1]); + __VERIFIER_assume(i[1] == __CS_cp_i[2]); + __VERIFIER_assume(i[2] == __CS_cp_i[3]); + __VERIFIER_assume(i[3] == __CS_cp_i[4]); + __VERIFIER_assume(i[4] == __CS_cp_i[5]); + __VERIFIER_assume(i[5] == __CS_cp_i[6]); + __VERIFIER_assume(j[0] == __CS_cp_j[1]); + __VERIFIER_assume(j[1] == __CS_cp_j[2]); + __VERIFIER_assume(j[2] == __CS_cp_j[3]); + __VERIFIER_assume(j[3] == __CS_cp_j[4]); + __VERIFIER_assume(j[4] == __CS_cp_j[5]); + __VERIFIER_assume(j[5] == __CS_cp_j[6]); + __VERIFIER_assert(__CS_error != 1); +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/cs_lamport_true-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/cs_lamport_true-unreach-call.c new file mode 100644 index 000000000..9c4aa1351 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/cs_lamport_true-unreach-call.c @@ -0,0 +1,1029 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +extern void __VERIFIER_assume(int); +typedef long unsigned int size_t; +typedef int wchar_t; + +union wait + { + int w_status; + struct + { + unsigned int __w_termsig:7; + unsigned int __w_coredump:1; + unsigned int __w_retcode:8; + unsigned int:16; + } __wait_terminated; + struct + { + unsigned int __w_stopval:8; + unsigned int __w_stopsig:8; + unsigned int:16; + } __wait_stopped; + }; +typedef union + { + union wait *__uptr; + int *__iptr; + } __WAIT_STATUS __attribute__ ((__transparent_union__)); + +typedef struct + { + int quot; + int rem; + } div_t; +typedef struct + { + long int quot; + long int rem; + } ldiv_t; + + +__extension__ typedef struct + { + long long int quot; + long long int rem; + } lldiv_t; + +extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__ , __leaf__)) ; + +extern double atof (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern int atoi (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern long int atol (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +__extension__ extern long long int atoll (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +extern double strtod (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern float strtof (__const char *__restrict __nptr, + char **__restrict __endptr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern long double strtold (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern long int strtol (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern unsigned long int strtoul (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtouq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoll (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtoull (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *l64a (long int __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern long int a64l (__const char *__s) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + +typedef unsigned char __u_char; +typedef unsigned short int __u_short; +typedef unsigned int __u_int; +typedef unsigned long int __u_long; +typedef signed char __int8_t; +typedef unsigned char __uint8_t; +typedef signed short int __int16_t; +typedef unsigned short int __uint16_t; +typedef signed int __int32_t; +typedef unsigned int __uint32_t; +typedef signed long int __int64_t; +typedef unsigned long int __uint64_t; +typedef long int __quad_t; +typedef unsigned long int __u_quad_t; +typedef unsigned long int __dev_t; +typedef unsigned int __uid_t; +typedef unsigned int __gid_t; +typedef unsigned long int __ino_t; +typedef unsigned long int __ino64_t; +typedef unsigned int __mode_t; +typedef unsigned long int __nlink_t; +typedef long int __off_t; +typedef long int __off64_t; +typedef int __pid_t; +typedef struct { int __val[2]; } __fsid_t; +typedef long int __clock_t; +typedef unsigned long int __rlim_t; +typedef unsigned long int __rlim64_t; +typedef unsigned int __id_t; +typedef long int __time_t; +typedef unsigned int __useconds_t; +typedef long int __suseconds_t; +typedef int __daddr_t; +typedef long int __swblk_t; +typedef int __key_t; +typedef int __clockid_t; +typedef void * __timer_t; +typedef long int __blksize_t; +typedef long int __blkcnt_t; +typedef long int __blkcnt64_t; +typedef unsigned long int __fsblkcnt_t; +typedef unsigned long int __fsblkcnt64_t; +typedef unsigned long int __fsfilcnt_t; +typedef unsigned long int __fsfilcnt64_t; +typedef long int __ssize_t; +typedef __off64_t __loff_t; +typedef __quad_t *__qaddr_t; +typedef char *__caddr_t; +typedef long int __intptr_t; +typedef unsigned int __socklen_t; +typedef __u_char u_char; +typedef __u_short u_short; +typedef __u_int u_int; +typedef __u_long u_long; +typedef __quad_t quad_t; +typedef __u_quad_t u_quad_t; +typedef __fsid_t fsid_t; +typedef __loff_t loff_t; +typedef __ino_t ino_t; +typedef __dev_t dev_t; +typedef __gid_t gid_t; +typedef __mode_t mode_t; +typedef __nlink_t nlink_t; +typedef __uid_t uid_t; +typedef __off_t off_t; +typedef __pid_t pid_t; +typedef __id_t id_t; +typedef __ssize_t ssize_t; +typedef __daddr_t daddr_t; +typedef __caddr_t caddr_t; +typedef __key_t key_t; + +typedef __clock_t clock_t; + + + +typedef __time_t time_t; + + +typedef __clockid_t clockid_t; +typedef __timer_t timer_t; +typedef unsigned long int ulong; +typedef unsigned short int ushort; +typedef unsigned int uint; +typedef int int8_t __attribute__ ((__mode__ (__QI__))); +typedef int int16_t __attribute__ ((__mode__ (__HI__))); +typedef int int32_t __attribute__ ((__mode__ (__SI__))); +typedef int int64_t __attribute__ ((__mode__ (__DI__))); +typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); +typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); +typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); +typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); +typedef int register_t __attribute__ ((__mode__ (__word__))); +typedef int __sig_atomic_t; +typedef struct + { + unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; + } __sigset_t; +typedef __sigset_t sigset_t; +struct timespec + { + __time_t tv_sec; + long int tv_nsec; + }; +struct timeval + { + __time_t tv_sec; + __suseconds_t tv_usec; + }; +typedef __suseconds_t suseconds_t; +typedef long int __fd_mask; +typedef struct + { + __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; + } fd_set; +typedef __fd_mask fd_mask; + +extern int select (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + struct timeval *__restrict __timeout); +extern int pselect (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + const struct timespec *__restrict __timeout, + const __sigset_t *__restrict __sigmask); + + +__extension__ +extern unsigned int gnu_dev_major (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned int gnu_dev_minor (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned long long int gnu_dev_makedev (unsigned int __major, + unsigned int __minor) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); + +typedef __blksize_t blksize_t; +typedef __blkcnt_t blkcnt_t; +typedef __fsblkcnt_t fsblkcnt_t; + + +typedef __fsfilcnt_t fsfilcnt_t; +typedef unsigned long int pthread_t; +typedef union +{ + char __size[56]; + long int __align; +} pthread_attr_t; +typedef struct __pthread_internal_list +{ + struct __pthread_internal_list *__prev; + struct __pthread_internal_list *__next; +} __pthread_list_t; +typedef union +{ + struct __pthread_mutex_s + { + int __lock; + unsigned int __count; + int __owner; + unsigned int __nusers; + int __kind; + int __spins; + __pthread_list_t __list; + } __data; + char __size[40]; + long int __align; +} pthread_mutex_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_mutexattr_t; +typedef union +{ + struct + { + int __lock; + unsigned int __futex; + __extension__ unsigned long long int __total_seq; + __extension__ unsigned long long int __wakeup_seq; + __extension__ unsigned long long int __woken_seq; + void *__mutex; + unsigned int __nwaiters; + unsigned int __broadcast_seq; + } __data; + char __size[48]; + __extension__ long long int __align; +} pthread_cond_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_condattr_t; +typedef unsigned int pthread_key_t; +typedef int pthread_once_t; +typedef union +{ + struct + { + int __lock; + unsigned int __nr_readers; + unsigned int __readers_wakeup; + unsigned int __writer_wakeup; + unsigned int __nr_readers_queued; + unsigned int __nr_writers_queued; + int __writer; + int __shared; + unsigned long int __pad1; + unsigned long int __pad2; + unsigned int __flags; + } __data; + char __size[56]; + long int __align; +} pthread_rwlock_t; +typedef union +{ + char __size[8]; + long int __align; +} pthread_rwlockattr_t; +typedef volatile int pthread_spinlock_t; +typedef union +{ + char __size[32]; + long int __align; +} pthread_barrier_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_barrierattr_t; + +extern long int random (void) __attribute__ ((__nothrow__ , __leaf__)); +extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); +extern char *initstate (unsigned int __seed, char *__statebuf, + size_t __statelen) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + + +extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + + + +struct random_data + { + int32_t *fptr; + int32_t *rptr; + int32_t *state; + int rand_type; + int rand_deg; + int rand_sep; + int32_t *end_ptr; + }; + +extern int random_r (struct random_data *__restrict __buf, + int32_t *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int srandom_r (unsigned int __seed, struct random_data *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, + size_t __statelen, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4))); + +extern int setstate_r (char *__restrict __statebuf, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + +extern int rand (void) __attribute__ ((__nothrow__ , __leaf__)); + +extern void srand (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern double drand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int lrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int nrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int mrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int jrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern void srand48 (long int __seedval) __attribute__ ((__nothrow__ , __leaf__)); +extern unsigned short int *seed48 (unsigned short int __seed16v[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + +struct drand48_data + { + unsigned short int __x[3]; + unsigned short int __old_x[3]; + unsigned short int __c; + unsigned short int __init; + unsigned long long int __a; + }; + + +extern int drand48_r (struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int erand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int lrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int nrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int mrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int jrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int srand48_r (long int __seedval, struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int seed48_r (unsigned short int __seed16v[3], + struct drand48_data *__buffer) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int lcong48_r (unsigned short int __param[7], + struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + + + + +extern void *malloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + +extern void *calloc (size_t __nmemb, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + + + + + + + +extern void *realloc (void *__ptr, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); + +extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern void cfree (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + +extern void *alloca (size_t __size) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern void *valloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + +extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + + + +extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + + +extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern void exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern void _Exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern char *getenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *__secure_getenv (__const char *__name) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int putenv (char *__string) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int setenv (__const char *__name, __const char *__value, int __replace) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); +extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int clearenv (void) __attribute__ ((__nothrow__ , __leaf__)); +extern char *mktemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ; +extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern int system (__const char *__command) ; + +extern char *realpath (__const char *__restrict __name, + char *__restrict __resolved) __attribute__ ((__nothrow__ , __leaf__)) ; +typedef int (*__compar_fn_t) (__const void *, __const void *); + +extern void *bsearch (__const void *__key, __const void *__base, + size_t __nmemb, size_t __size, __compar_fn_t __compar) + __attribute__ ((__nonnull__ (1, 2, 5))) ; +extern void qsort (void *__base, size_t __nmemb, size_t __size, + __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); +extern int abs (int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern long int labs (long int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +__extension__ extern long long int llabs (long long int __x) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern div_t div (int __numer, int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern ldiv_t ldiv (long int __numer, long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + + +__extension__ extern lldiv_t lldiv (long long int __numer, + long long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *gcvt (double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern char *qecvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qfcvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qgcvt (long double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qecvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qfcvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); + +extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int mbtowc (wchar_t *__restrict __pwc, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__ , __leaf__)) ; +extern size_t mbstowcs (wchar_t *__restrict __pwcs, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)); +extern size_t wcstombs (char *__restrict __s, + __const wchar_t *__restrict __pwcs, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)); + +extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int getsubopt (char **__restrict __optionp, + char *__const *__restrict __tokens, + char **__restrict __valuep) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2, 3))) ; +extern int getloadavg (double __loadavg[], int __nelem) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern void __assert_fail (__const char *__assertion, __const char *__file, + unsigned int __line, __const char *__function) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +extern void __assert_perror_fail (int __errnum, __const char *__file, + unsigned int __line, + __const char *__function) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +extern void __assert (const char *__assertion, const char *__file, int __line) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} + +unsigned char __CS_round = 0; +unsigned char __CS_ret = 0; +const unsigned char __CS_ret_PREEMPTED = 0x01; +const unsigned char __CS_ret_ERROR = 0x02; +const unsigned char __CS_ret_FINISHED = 0x04; +unsigned char __CS_error = 0; +unsigned char __CS_thread_index; +unsigned char __CS_thread_allocated[2 +1]; +unsigned char __CS_thread_born_round[2 +1]; +void *(*__CS_thread[2 +1])(void *); +unsigned char __CS_thread_status[3][2 +1]; +const unsigned char __THREAD_UNUSED = 0x00; +const unsigned char __THREAD_RUNNING = 0x01; +const unsigned char __THREAD_FINISHED = 0x02; +unsigned char *__CS_thread_lockedon[3][2 +1]; +int nondet_int(); +void __CS_cs(void) +{ + unsigned char k; + __VERIFIER_assume(__CS_round+k < 3); + __CS_round += k; + __CS_ret = (nondet_int() && __CS_round == 3 -1)?__CS_ret_PREEMPTED:__CS_ret; +} +int __CS_pthread_mutex_init(unsigned char *mutex, void *attr) +{ + return 0; +} +int __CS_pthread_mutex_destroy(unsigned char *lock) +{ + if (*lock != __CS_thread_index && *lock != 0) { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + } + else *lock = 0; + return 0; +} +int __CS_pthread_mutex_lock(unsigned char *lock) +{ + if (*lock == 0) *lock = (__CS_thread_index+1); + else { __CS_ret = __CS_ret_PREEMPTED; return 1; } + return 0; +} +int __CS_pthread_mutex_unlock(unsigned char *lock) +{ + if (*lock != (__CS_thread_index+1)) { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + return 1; + } else *lock = 0; + return 0; +} +int __CS_pthread_cond_init(unsigned char *cond, void *attr) +{ + return 0; +} +int __CS_pthread_cond_signal(unsigned char *cond) +{ + int j; + for (j=0; j<=2; j++) + if (__CS_thread_lockedon[__CS_round][j] == cond) + __CS_thread_lockedon[__CS_round][j] = 0; + return 0; +} +int __CS_pthread_cond_broadcast(unsigned char *cond) +{ + int j; + for (j=0; j<=2; j++) + if (__CS_thread_lockedon[__CS_round][j] == cond) + __CS_thread_lockedon[__CS_round][j] = 0; + return 0; +} +int __CS_pthread_cond_wait(unsigned char *cond, unsigned char *lock) +{ + if (*lock != (__CS_thread_index+1)) { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + return 1; + } + else *lock = 0; + __CS_thread_lockedon[__CS_round][__CS_thread_index] = cond; + __CS_ret = __CS_ret_PREEMPTED; + if (*lock == 0) *lock = __CS_thread_index+1; + else { __CS_ret = __CS_ret_PREEMPTED; return 1; } + return 0; +} +void __CS_assert(int expr) +{ + if (!expr) { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + } +} +void __CS_assume(int expr) +{ + if (!expr) __CS_ret = __CS_ret_PREEMPTED; +} +int __CS_pthread_join(unsigned char thread, void **value_ptr) +{ + if (thread != 123 && thread > 2 +1) + { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + return 0; + } + if ( thread == 123 || __CS_thread_status[__CS_round][thread] == __THREAD_RUNNING ) + { + __CS_ret = __CS_ret_PREEMPTED; + return 0; + } + if (__CS_thread_status[__CS_round][thread] == __THREAD_UNUSED) + { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + return 0; + } + __VERIFIER_assume( __CS_thread_status[__CS_round][thread] == __THREAD_FINISHED ); + return 0; +} +int __CS_pthread_create(unsigned char *id1, void *attr, void *(*t1)(void*), void *arg) +{ + if (__CS_thread_index == 2) { + *id1 = 123; + return -1; + } + __CS_thread_index++; + __CS_thread_allocated[__CS_thread_index] = 1; + __CS_thread_born_round[__CS_thread_index] = __CS_round; + __CS_thread[__CS_thread_index] = t1; + __CS_thread_status[__CS_round][__CS_thread_index] = __THREAD_RUNNING; + *id1 = __CS_thread_index; + return __CS_thread_index; +} +int x[3]; +int y[3]; +int b1[3]; +int b2[3]; +int X[3]; +union __CS__u { + int x[3]; + int y[3]; + int b1[3]; + int b2[3]; + int X[3]; +}; +union __CS__u __CS_u; +void *thr1() +{ + __CS_cs(); if (__CS_ret != 0) return 0; + while (1) + { + __CS_cs(); if (__CS_ret != 0) return 0; + b1[__CS_round] = 1; + __CS_cs(); if (__CS_ret != 0) return 0; + x[__CS_round] = 1; + __CS_cs(); if (__CS_ret != 0) return 0; + if (y[__CS_round] != 0) + { + __CS_cs(); if (__CS_ret != 0) return 0; + b1[__CS_round] = 0; + __CS_cs(); if (__CS_ret != 0) return 0; + while (y[__CS_round] != 0) + { + __CS_cs(); if (__CS_ret != 0) return 0; + } + __CS_cs(); if (__CS_ret != 0) return 0; + ; + __CS_cs(); if (__CS_ret != 0) return 0; + continue; + __CS_cs(); if (__CS_ret != 0) return 0; + } + __CS_cs(); if (__CS_ret != 0) return 0; + y[__CS_round] = 1; + __CS_cs(); if (__CS_ret != 0) return 0; + if (x[__CS_round] != 1) + { + __CS_cs(); if (__CS_ret != 0) return 0; + b1[__CS_round] = 0; + __CS_cs(); if (__CS_ret != 0) return 0; + while (b2[__CS_round] >= 1) + { + __CS_cs(); if (__CS_ret != 0) return 0; + } + __CS_cs(); if (__CS_ret != 0) return 0; + ; + __CS_cs(); if (__CS_ret != 0) return 0; + if (y[__CS_round] != 1) + { + __CS_cs(); if (__CS_ret != 0) return 0; + while (y[__CS_round] != 0) + { + __CS_cs(); if (__CS_ret != 0) return 0; + } + __CS_cs(); if (__CS_ret != 0) return 0; + ; + __CS_cs(); if (__CS_ret != 0) return 0; + continue; + __CS_cs(); if (__CS_ret != 0) return 0; + } + __CS_cs(); if (__CS_ret != 0) return 0; + } + __CS_cs(); if (__CS_ret != 0) return 0; + break; + __CS_cs(); if (__CS_ret != 0) return 0; + } + __CS_cs(); if (__CS_ret != 0) return 0; + X[__CS_round] = 0; + __CS_cs(); if (__CS_ret != 0) return 0; + if (!(X[__CS_round] <= 0)) + { + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_ERROR: __CS_error = 1; __CS_ret = __CS_ret_ERROR; return 0; + __CS_cs(); if (__CS_ret != 0) return 0; + goto __CS_ERROR; + } + __CS_cs(); if (__CS_ret != 0) return 0; + ; + __CS_cs(); if (__CS_ret != 0) return 0; + y[__CS_round] = 0; + __CS_cs(); if (__CS_ret != 0) return 0; + b1[__CS_round] = 0; + __CS_cs(); if (__CS_ret != 0) return 0; +} +void *thr2() +{ + __CS_cs(); if (__CS_ret != 0) return 0; + while (1) + { + __CS_cs(); if (__CS_ret != 0) return 0; + b2[__CS_round] = 1; + __CS_cs(); if (__CS_ret != 0) return 0; + x[__CS_round] = 2; + __CS_cs(); if (__CS_ret != 0) return 0; + if (y[__CS_round] != 0) + { + __CS_cs(); if (__CS_ret != 0) return 0; + b2[__CS_round] = 0; + __CS_cs(); if (__CS_ret != 0) return 0; + while (y[__CS_round] != 0) + { + __CS_cs(); if (__CS_ret != 0) return 0; + } + __CS_cs(); if (__CS_ret != 0) return 0; + ; + __CS_cs(); if (__CS_ret != 0) return 0; + continue; + __CS_cs(); if (__CS_ret != 0) return 0; + } + __CS_cs(); if (__CS_ret != 0) return 0; + y[__CS_round] = 2; + __CS_cs(); if (__CS_ret != 0) return 0; + if (x[__CS_round] != 2) + { + __CS_cs(); if (__CS_ret != 0) return 0; + b2[__CS_round] = 0; + __CS_cs(); if (__CS_ret != 0) return 0; + while (b1[__CS_round] >= 1) + { + __CS_cs(); if (__CS_ret != 0) return 0; + } + __CS_cs(); if (__CS_ret != 0) return 0; + ; + __CS_cs(); if (__CS_ret != 0) return 0; + if (y[__CS_round] != 2) + { + __CS_cs(); if (__CS_ret != 0) return 0; + while (y[__CS_round] != 0) + { + __CS_cs(); if (__CS_ret != 0) return 0; + } + __CS_cs(); if (__CS_ret != 0) return 0; + ; + __CS_cs(); if (__CS_ret != 0) return 0; + continue; + __CS_cs(); if (__CS_ret != 0) return 0; + } + __CS_cs(); if (__CS_ret != 0) return 0; + } + __CS_cs(); if (__CS_ret != 0) return 0; + break; + __CS_cs(); if (__CS_ret != 0) return 0; + } + __CS_cs(); if (__CS_ret != 0) return 0; + X[__CS_round] = 1; + __CS_cs(); if (__CS_ret != 0) return 0; + if (!(X[__CS_round] >= 1)) + { + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_ERROR: __CS_error = 1; __CS_ret = __CS_ret_ERROR; return 0; + __CS_cs(); if (__CS_ret != 0) return 0; + goto __CS_ERROR; + } + __CS_cs(); if (__CS_ret != 0) return 0; + ; + __CS_cs(); if (__CS_ret != 0) return 0; + y[__CS_round] = 0; + __CS_cs(); if (__CS_ret != 0) return 0; + b2[__CS_round] = 0; + __CS_cs(); if (__CS_ret != 0) return 0; +} +void *main_thread(void *arg) +{ + unsigned char t1; + unsigned char t2; + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_create(&t1, 0, thr1, 0); + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_create(&t2, 0, thr2, 0); + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_join(t1, 0); + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_join(t2, 0); + __CS_cs(); if (__CS_ret != 0) return 0; + } +int main() +{ + unsigned char __CS_cp___CS_thread_status[3][2 +1]; + unsigned char *__CS_cp___CS_thread_lockedon[3][2 +1]; + int __CS_cp_x[3]; + int __CS_cp_y[3]; + int __CS_cp_b1[3]; + int __CS_cp_b2[3]; + int __CS_cp_X[3]; + __CS_thread_status[1][0] = __CS_cp___CS_thread_status[1][0]; + __CS_thread_status[2][0] = __CS_cp___CS_thread_status[2][0]; + __CS_thread_status[1][1] = __CS_cp___CS_thread_status[1][1]; + __CS_thread_status[2][1] = __CS_cp___CS_thread_status[2][1]; + __CS_thread_status[1][2] = __CS_cp___CS_thread_status[1][2]; + __CS_thread_status[2][2] = __CS_cp___CS_thread_status[2][2]; + __CS_thread_lockedon[1][0] = __CS_cp___CS_thread_lockedon[1][0]; + __CS_thread_lockedon[2][0] = __CS_cp___CS_thread_lockedon[2][0]; + __CS_thread_lockedon[1][1] = __CS_cp___CS_thread_lockedon[1][1]; + __CS_thread_lockedon[2][1] = __CS_cp___CS_thread_lockedon[2][1]; + __CS_thread_lockedon[1][2] = __CS_cp___CS_thread_lockedon[1][2]; + __CS_thread_lockedon[2][2] = __CS_cp___CS_thread_lockedon[2][2]; + x[1] = __CS_cp_x[1]; + x[2] = __CS_cp_x[2]; + y[1] = __CS_cp_y[1]; + y[2] = __CS_cp_y[2]; + b1[1] = __CS_cp_b1[1]; + b1[2] = __CS_cp_b1[2]; + b2[1] = __CS_cp_b2[1]; + b2[2] = __CS_cp_b2[2]; + X[1] = __CS_cp_X[1]; + X[2] = __CS_cp_X[2]; + __CS_round = 0; + __CS_thread_index = 0; + __CS_thread_born_round[0] = __CS_round; + __CS_thread_status[0][0] = __THREAD_RUNNING; + __CS_thread[0] = main_thread; + __CS_thread_allocated[0] = 1; + if (__CS_thread_allocated[0] == 1) { + __CS_round = __CS_thread_born_round[0]; + __CS_ret = 0; + __CS_thread[0](0); + if (__CS_ret!=__CS_ret_PREEMPTED) __CS_thread_status[__CS_round][0] = __THREAD_FINISHED; + } + if (__CS_thread_allocated[1] == 1) { + __CS_round = __CS_thread_born_round[1]; + __CS_ret = 0; + __CS_thread[1](0); + if (__CS_ret!=__CS_ret_PREEMPTED) __CS_thread_status[__CS_round][1] = __THREAD_FINISHED; + } + if (__CS_thread_allocated[2] == 1) { + __CS_round = __CS_thread_born_round[2]; + __CS_ret = 0; + __CS_thread[2](0); + if (__CS_ret!=__CS_ret_PREEMPTED) __CS_thread_status[__CS_round][2] = __THREAD_FINISHED; + } + __VERIFIER_assume(__CS_thread_status[0][0] == __CS_cp___CS_thread_status[1][0]); + __VERIFIER_assume(__CS_thread_status[1][0] == __CS_cp___CS_thread_status[2][0]); + __VERIFIER_assume(__CS_thread_status[0][1] == __CS_cp___CS_thread_status[1][1]); + __VERIFIER_assume(__CS_thread_status[1][1] == __CS_cp___CS_thread_status[2][1]); + __VERIFIER_assume(__CS_thread_status[0][2] == __CS_cp___CS_thread_status[1][2]); + __VERIFIER_assume(__CS_thread_status[1][2] == __CS_cp___CS_thread_status[2][2]); + __VERIFIER_assume(__CS_thread_lockedon[0][0] == __CS_cp___CS_thread_lockedon[1][0]); + __VERIFIER_assume(__CS_thread_lockedon[1][0] == __CS_cp___CS_thread_lockedon[2][0]); + __VERIFIER_assume(__CS_thread_lockedon[0][1] == __CS_cp___CS_thread_lockedon[1][1]); + __VERIFIER_assume(__CS_thread_lockedon[1][1] == __CS_cp___CS_thread_lockedon[2][1]); + __VERIFIER_assume(__CS_thread_lockedon[0][2] == __CS_cp___CS_thread_lockedon[1][2]); + __VERIFIER_assume(__CS_thread_lockedon[1][2] == __CS_cp___CS_thread_lockedon[2][2]); + __VERIFIER_assume(x[0] == __CS_cp_x[1]); + __VERIFIER_assume(x[1] == __CS_cp_x[2]); + __VERIFIER_assume(y[0] == __CS_cp_y[1]); + __VERIFIER_assume(y[1] == __CS_cp_y[2]); + __VERIFIER_assume(b1[0] == __CS_cp_b1[1]); + __VERIFIER_assume(b1[1] == __CS_cp_b1[2]); + __VERIFIER_assume(b2[0] == __CS_cp_b2[1]); + __VERIFIER_assume(b2[1] == __CS_cp_b2[2]); + __VERIFIER_assume(X[0] == __CS_cp_X[1]); + __VERIFIER_assume(X[1] == __CS_cp_X[2]); + __VERIFIER_assert(__CS_error != 1); +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/cs_peterson_true-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/cs_peterson_true-unreach-call.c new file mode 100644 index 000000000..fc3ce0687 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/cs_peterson_true-unreach-call.c @@ -0,0 +1,926 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +extern void __VERIFIER_assume(int); +typedef long unsigned int size_t; +typedef int wchar_t; + +union wait + { + int w_status; + struct + { + unsigned int __w_termsig:7; + unsigned int __w_coredump:1; + unsigned int __w_retcode:8; + unsigned int:16; + } __wait_terminated; + struct + { + unsigned int __w_stopval:8; + unsigned int __w_stopsig:8; + unsigned int:16; + } __wait_stopped; + }; +typedef union + { + union wait *__uptr; + int *__iptr; + } __WAIT_STATUS __attribute__ ((__transparent_union__)); + +typedef struct + { + int quot; + int rem; + } div_t; +typedef struct + { + long int quot; + long int rem; + } ldiv_t; + + +__extension__ typedef struct + { + long long int quot; + long long int rem; + } lldiv_t; + +extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__ , __leaf__)) ; + +extern double atof (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern int atoi (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern long int atol (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +__extension__ extern long long int atoll (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +extern double strtod (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern float strtof (__const char *__restrict __nptr, + char **__restrict __endptr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern long double strtold (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern long int strtol (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern unsigned long int strtoul (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtouq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoll (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtoull (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *l64a (long int __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern long int a64l (__const char *__s) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + +typedef unsigned char __u_char; +typedef unsigned short int __u_short; +typedef unsigned int __u_int; +typedef unsigned long int __u_long; +typedef signed char __int8_t; +typedef unsigned char __uint8_t; +typedef signed short int __int16_t; +typedef unsigned short int __uint16_t; +typedef signed int __int32_t; +typedef unsigned int __uint32_t; +typedef signed long int __int64_t; +typedef unsigned long int __uint64_t; +typedef long int __quad_t; +typedef unsigned long int __u_quad_t; +typedef unsigned long int __dev_t; +typedef unsigned int __uid_t; +typedef unsigned int __gid_t; +typedef unsigned long int __ino_t; +typedef unsigned long int __ino64_t; +typedef unsigned int __mode_t; +typedef unsigned long int __nlink_t; +typedef long int __off_t; +typedef long int __off64_t; +typedef int __pid_t; +typedef struct { int __val[2]; } __fsid_t; +typedef long int __clock_t; +typedef unsigned long int __rlim_t; +typedef unsigned long int __rlim64_t; +typedef unsigned int __id_t; +typedef long int __time_t; +typedef unsigned int __useconds_t; +typedef long int __suseconds_t; +typedef int __daddr_t; +typedef long int __swblk_t; +typedef int __key_t; +typedef int __clockid_t; +typedef void * __timer_t; +typedef long int __blksize_t; +typedef long int __blkcnt_t; +typedef long int __blkcnt64_t; +typedef unsigned long int __fsblkcnt_t; +typedef unsigned long int __fsblkcnt64_t; +typedef unsigned long int __fsfilcnt_t; +typedef unsigned long int __fsfilcnt64_t; +typedef long int __ssize_t; +typedef __off64_t __loff_t; +typedef __quad_t *__qaddr_t; +typedef char *__caddr_t; +typedef long int __intptr_t; +typedef unsigned int __socklen_t; +typedef __u_char u_char; +typedef __u_short u_short; +typedef __u_int u_int; +typedef __u_long u_long; +typedef __quad_t quad_t; +typedef __u_quad_t u_quad_t; +typedef __fsid_t fsid_t; +typedef __loff_t loff_t; +typedef __ino_t ino_t; +typedef __dev_t dev_t; +typedef __gid_t gid_t; +typedef __mode_t mode_t; +typedef __nlink_t nlink_t; +typedef __uid_t uid_t; +typedef __off_t off_t; +typedef __pid_t pid_t; +typedef __id_t id_t; +typedef __ssize_t ssize_t; +typedef __daddr_t daddr_t; +typedef __caddr_t caddr_t; +typedef __key_t key_t; + +typedef __clock_t clock_t; + + + +typedef __time_t time_t; + + +typedef __clockid_t clockid_t; +typedef __timer_t timer_t; +typedef unsigned long int ulong; +typedef unsigned short int ushort; +typedef unsigned int uint; +typedef int int8_t __attribute__ ((__mode__ (__QI__))); +typedef int int16_t __attribute__ ((__mode__ (__HI__))); +typedef int int32_t __attribute__ ((__mode__ (__SI__))); +typedef int int64_t __attribute__ ((__mode__ (__DI__))); +typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); +typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); +typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); +typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); +typedef int register_t __attribute__ ((__mode__ (__word__))); +typedef int __sig_atomic_t; +typedef struct + { + unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; + } __sigset_t; +typedef __sigset_t sigset_t; +struct timespec + { + __time_t tv_sec; + long int tv_nsec; + }; +struct timeval + { + __time_t tv_sec; + __suseconds_t tv_usec; + }; +typedef __suseconds_t suseconds_t; +typedef long int __fd_mask; +typedef struct + { + __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; + } fd_set; +typedef __fd_mask fd_mask; + +extern int select (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + struct timeval *__restrict __timeout); +extern int pselect (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + const struct timespec *__restrict __timeout, + const __sigset_t *__restrict __sigmask); + + +__extension__ +extern unsigned int gnu_dev_major (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned int gnu_dev_minor (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned long long int gnu_dev_makedev (unsigned int __major, + unsigned int __minor) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); + +typedef __blksize_t blksize_t; +typedef __blkcnt_t blkcnt_t; +typedef __fsblkcnt_t fsblkcnt_t; + + +typedef __fsfilcnt_t fsfilcnt_t; +typedef unsigned long int pthread_t; +typedef union +{ + char __size[56]; + long int __align; +} pthread_attr_t; +typedef struct __pthread_internal_list +{ + struct __pthread_internal_list *__prev; + struct __pthread_internal_list *__next; +} __pthread_list_t; +typedef union +{ + struct __pthread_mutex_s + { + int __lock; + unsigned int __count; + int __owner; + unsigned int __nusers; + int __kind; + int __spins; + __pthread_list_t __list; + } __data; + char __size[40]; + long int __align; +} pthread_mutex_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_mutexattr_t; +typedef union +{ + struct + { + int __lock; + unsigned int __futex; + __extension__ unsigned long long int __total_seq; + __extension__ unsigned long long int __wakeup_seq; + __extension__ unsigned long long int __woken_seq; + void *__mutex; + unsigned int __nwaiters; + unsigned int __broadcast_seq; + } __data; + char __size[48]; + __extension__ long long int __align; +} pthread_cond_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_condattr_t; +typedef unsigned int pthread_key_t; +typedef int pthread_once_t; +typedef union +{ + struct + { + int __lock; + unsigned int __nr_readers; + unsigned int __readers_wakeup; + unsigned int __writer_wakeup; + unsigned int __nr_readers_queued; + unsigned int __nr_writers_queued; + int __writer; + int __shared; + unsigned long int __pad1; + unsigned long int __pad2; + unsigned int __flags; + } __data; + char __size[56]; + long int __align; +} pthread_rwlock_t; +typedef union +{ + char __size[8]; + long int __align; +} pthread_rwlockattr_t; +typedef volatile int pthread_spinlock_t; +typedef union +{ + char __size[32]; + long int __align; +} pthread_barrier_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_barrierattr_t; + +extern long int random (void) __attribute__ ((__nothrow__ , __leaf__)); +extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); +extern char *initstate (unsigned int __seed, char *__statebuf, + size_t __statelen) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + + +extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + + + +struct random_data + { + int32_t *fptr; + int32_t *rptr; + int32_t *state; + int rand_type; + int rand_deg; + int rand_sep; + int32_t *end_ptr; + }; + +extern int random_r (struct random_data *__restrict __buf, + int32_t *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int srandom_r (unsigned int __seed, struct random_data *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, + size_t __statelen, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4))); + +extern int setstate_r (char *__restrict __statebuf, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + +extern int rand (void) __attribute__ ((__nothrow__ , __leaf__)); + +extern void srand (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern double drand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int lrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int nrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int mrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int jrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern void srand48 (long int __seedval) __attribute__ ((__nothrow__ , __leaf__)); +extern unsigned short int *seed48 (unsigned short int __seed16v[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + +struct drand48_data + { + unsigned short int __x[3]; + unsigned short int __old_x[3]; + unsigned short int __c; + unsigned short int __init; + unsigned long long int __a; + }; + + +extern int drand48_r (struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int erand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int lrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int nrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int mrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int jrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int srand48_r (long int __seedval, struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int seed48_r (unsigned short int __seed16v[3], + struct drand48_data *__buffer) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int lcong48_r (unsigned short int __param[7], + struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + + + + +extern void *malloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + +extern void *calloc (size_t __nmemb, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + + + + + + + +extern void *realloc (void *__ptr, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); + +extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern void cfree (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + +extern void *alloca (size_t __size) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern void *valloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + +extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + + + +extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + + +extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern void exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern void _Exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern char *getenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *__secure_getenv (__const char *__name) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int putenv (char *__string) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int setenv (__const char *__name, __const char *__value, int __replace) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); +extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int clearenv (void) __attribute__ ((__nothrow__ , __leaf__)); +extern char *mktemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ; +extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern int system (__const char *__command) ; + +extern char *realpath (__const char *__restrict __name, + char *__restrict __resolved) __attribute__ ((__nothrow__ , __leaf__)) ; +typedef int (*__compar_fn_t) (__const void *, __const void *); + +extern void *bsearch (__const void *__key, __const void *__base, + size_t __nmemb, size_t __size, __compar_fn_t __compar) + __attribute__ ((__nonnull__ (1, 2, 5))) ; +extern void qsort (void *__base, size_t __nmemb, size_t __size, + __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); +extern int abs (int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern long int labs (long int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +__extension__ extern long long int llabs (long long int __x) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern div_t div (int __numer, int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern ldiv_t ldiv (long int __numer, long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + + +__extension__ extern lldiv_t lldiv (long long int __numer, + long long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *gcvt (double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern char *qecvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qfcvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qgcvt (long double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qecvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qfcvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); + +extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int mbtowc (wchar_t *__restrict __pwc, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__ , __leaf__)) ; +extern size_t mbstowcs (wchar_t *__restrict __pwcs, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)); +extern size_t wcstombs (char *__restrict __s, + __const wchar_t *__restrict __pwcs, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)); + +extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int getsubopt (char **__restrict __optionp, + char *__const *__restrict __tokens, + char **__restrict __valuep) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2, 3))) ; +extern int getloadavg (double __loadavg[], int __nelem) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern void __assert_fail (__const char *__assertion, __const char *__file, + unsigned int __line, __const char *__function) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +extern void __assert_perror_fail (int __errnum, __const char *__file, + unsigned int __line, + __const char *__function) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +extern void __assert (const char *__assertion, const char *__file, int __line) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} + +unsigned char __CS_round = 0; +unsigned char __CS_ret = 0; +const unsigned char __CS_ret_PREEMPTED = 0x01; +const unsigned char __CS_ret_ERROR = 0x02; +const unsigned char __CS_ret_FINISHED = 0x04; +unsigned char __CS_error = 0; +unsigned char __CS_thread_index; +unsigned char __CS_thread_allocated[2 +1]; +unsigned char __CS_thread_born_round[2 +1]; +void *(*__CS_thread[2 +1])(void *); +unsigned char __CS_thread_status[3][2 +1]; +const unsigned char __THREAD_UNUSED = 0x00; +const unsigned char __THREAD_RUNNING = 0x01; +const unsigned char __THREAD_FINISHED = 0x02; +unsigned char *__CS_thread_lockedon[3][2 +1]; +int nondet_int(); +void __CS_cs(void) +{ + unsigned char k; + __VERIFIER_assume(__CS_round+k < 3); + __CS_round += k; + __CS_ret = (nondet_int() && __CS_round == 3 -1)?__CS_ret_PREEMPTED:__CS_ret; +} +int __CS_pthread_mutex_init(unsigned char *mutex, void *attr) +{ + return 0; +} +int __CS_pthread_mutex_destroy(unsigned char *lock) +{ + if (*lock != __CS_thread_index && *lock != 0) { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + } + else *lock = 0; + return 0; +} +int __CS_pthread_mutex_lock(unsigned char *lock) +{ + if (*lock == 0) *lock = (__CS_thread_index+1); + else { __CS_ret = __CS_ret_PREEMPTED; return 1; } + return 0; +} +int __CS_pthread_mutex_unlock(unsigned char *lock) +{ + if (*lock != (__CS_thread_index+1)) { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + return 1; + } else *lock = 0; + return 0; +} +int __CS_pthread_cond_init(unsigned char *cond, void *attr) +{ + return 0; +} +int __CS_pthread_cond_signal(unsigned char *cond) +{ + int j; + for (j=0; j<=2; j++) + if (__CS_thread_lockedon[__CS_round][j] == cond) + __CS_thread_lockedon[__CS_round][j] = 0; + return 0; +} +int __CS_pthread_cond_broadcast(unsigned char *cond) +{ + int j; + for (j=0; j<=2; j++) + if (__CS_thread_lockedon[__CS_round][j] == cond) + __CS_thread_lockedon[__CS_round][j] = 0; + return 0; +} +int __CS_pthread_cond_wait(unsigned char *cond, unsigned char *lock) +{ + if (*lock != (__CS_thread_index+1)) { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + return 1; + } + else *lock = 0; + __CS_thread_lockedon[__CS_round][__CS_thread_index] = cond; + __CS_ret = __CS_ret_PREEMPTED; + if (*lock == 0) *lock = __CS_thread_index+1; + else { __CS_ret = __CS_ret_PREEMPTED; return 1; } + return 0; +} +void __CS_assert(int expr) +{ + if (!expr) { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + } +} +void __CS_assume(int expr) +{ + if (!expr) __CS_ret = __CS_ret_PREEMPTED; +} +int __CS_pthread_join(unsigned char thread, void **value_ptr) +{ + if (thread != 123 && thread > 2 +1) + { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + return 0; + } + if ( thread == 123 || __CS_thread_status[__CS_round][thread] == __THREAD_RUNNING ) + { + __CS_ret = __CS_ret_PREEMPTED; + return 0; + } + if (__CS_thread_status[__CS_round][thread] == __THREAD_UNUSED) + { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + return 0; + } + __VERIFIER_assume( __CS_thread_status[__CS_round][thread] == __THREAD_FINISHED ); + return 0; +} +int __CS_pthread_create(unsigned char *id1, void *attr, void *(*t1)(void*), void *arg) +{ + if (__CS_thread_index == 2) { + *id1 = 123; + return -1; + } + __CS_thread_index++; + __CS_thread_allocated[__CS_thread_index] = 1; + __CS_thread_born_round[__CS_thread_index] = __CS_round; + __CS_thread[__CS_thread_index] = t1; + __CS_thread_status[__CS_round][__CS_thread_index] = __THREAD_RUNNING; + *id1 = __CS_thread_index; + return __CS_thread_index; +} +int flag1[3] = {0}; +int flag2[3] = {0}; +int turn[3]; +int x[3]; +union __CS__u { + int flag1[3]; + int flag2[3]; + int turn[3]; + int x[3]; +}; +union __CS__u __CS_u; +void *thr1() +{ + __CS_cs(); if (__CS_ret != 0) return 0; + flag1[__CS_round] = 1; + __CS_cs(); if (__CS_ret != 0) return 0; + turn[__CS_round] = 1; + __CS_cs(); if (__CS_ret != 0) return 0; + while ((flag2[__CS_round] == 1) && (turn[__CS_round] == 1)) + { + __CS_cs(); if (__CS_ret != 0) return 0; + } + __CS_cs(); if (__CS_ret != 0) return 0; + ; + __CS_cs(); if (__CS_ret != 0) return 0; + x[__CS_round] = 0; + __CS_cs(); if (__CS_ret != 0) return 0; + if (!(x[__CS_round] <= 0)) + { + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_ERROR: __CS_error = 1; __CS_ret = __CS_ret_ERROR; return 0; + __CS_cs(); if (__CS_ret != 0) return 0; + goto __CS_ERROR; + } + __CS_cs(); if (__CS_ret != 0) return 0; + ; + __CS_cs(); if (__CS_ret != 0) return 0; + flag1[__CS_round] = 0; + __CS_cs(); if (__CS_ret != 0) return 0; +} +void *thr2() +{ + __CS_cs(); if (__CS_ret != 0) return 0; + flag2[__CS_round] = 1; + __CS_cs(); if (__CS_ret != 0) return 0; + turn[__CS_round] = 0; + __CS_cs(); if (__CS_ret != 0) return 0; + while ((flag1[__CS_round] == 1) && (turn[__CS_round] == 0)) + { + __CS_cs(); if (__CS_ret != 0) return 0; + } + __CS_cs(); if (__CS_ret != 0) return 0; + ; + __CS_cs(); if (__CS_ret != 0) return 0; + x[__CS_round] = 1; + __CS_cs(); if (__CS_ret != 0) return 0; + if (!(x[__CS_round] >= 1)) + { + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_ERROR: __CS_error = 1; __CS_ret = __CS_ret_ERROR; return 0; + __CS_cs(); if (__CS_ret != 0) return 0; + goto __CS_ERROR; + } + __CS_cs(); if (__CS_ret != 0) return 0; + ; + __CS_cs(); if (__CS_ret != 0) return 0; + flag2[__CS_round] = 0; + __CS_cs(); if (__CS_ret != 0) return 0; +} +void *main_thread(void *arg) +{ + unsigned char t1; + unsigned char t2; + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_create(&t1, 0, thr1, 0); + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_create(&t2, 0, thr2, 0); + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_join(t1, 0); + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_join(t2, 0); + __CS_cs(); if (__CS_ret != 0) return 0; + } +int main() +{ + unsigned char __CS_cp___CS_thread_status[3][2 +1]; + unsigned char *__CS_cp___CS_thread_lockedon[3][2 +1]; + int __CS_cp_flag1[3]; + int __CS_cp_flag2[3]; + int __CS_cp_turn[3]; + int __CS_cp_x[3]; + __CS_thread_status[1][0] = __CS_cp___CS_thread_status[1][0]; + __CS_thread_status[2][0] = __CS_cp___CS_thread_status[2][0]; + __CS_thread_status[1][1] = __CS_cp___CS_thread_status[1][1]; + __CS_thread_status[2][1] = __CS_cp___CS_thread_status[2][1]; + __CS_thread_status[1][2] = __CS_cp___CS_thread_status[1][2]; + __CS_thread_status[2][2] = __CS_cp___CS_thread_status[2][2]; + __CS_thread_lockedon[1][0] = __CS_cp___CS_thread_lockedon[1][0]; + __CS_thread_lockedon[2][0] = __CS_cp___CS_thread_lockedon[2][0]; + __CS_thread_lockedon[1][1] = __CS_cp___CS_thread_lockedon[1][1]; + __CS_thread_lockedon[2][1] = __CS_cp___CS_thread_lockedon[2][1]; + __CS_thread_lockedon[1][2] = __CS_cp___CS_thread_lockedon[1][2]; + __CS_thread_lockedon[2][2] = __CS_cp___CS_thread_lockedon[2][2]; + flag1[1] = __CS_cp_flag1[1]; + flag1[2] = __CS_cp_flag1[2]; + flag2[1] = __CS_cp_flag2[1]; + flag2[2] = __CS_cp_flag2[2]; + turn[1] = __CS_cp_turn[1]; + turn[2] = __CS_cp_turn[2]; + x[1] = __CS_cp_x[1]; + x[2] = __CS_cp_x[2]; + __CS_round = 0; + __CS_thread_index = 0; + __CS_thread_born_round[0] = __CS_round; + __CS_thread_status[0][0] = __THREAD_RUNNING; + __CS_thread[0] = main_thread; + __CS_thread_allocated[0] = 1; + if (__CS_thread_allocated[0] == 1) { + __CS_round = __CS_thread_born_round[0]; + __CS_ret = 0; + __CS_thread[0](0); + if (__CS_ret!=__CS_ret_PREEMPTED) __CS_thread_status[__CS_round][0] = __THREAD_FINISHED; + } + if (__CS_thread_allocated[1] == 1) { + __CS_round = __CS_thread_born_round[1]; + __CS_ret = 0; + __CS_thread[1](0); + if (__CS_ret!=__CS_ret_PREEMPTED) __CS_thread_status[__CS_round][1] = __THREAD_FINISHED; + } + if (__CS_thread_allocated[2] == 1) { + __CS_round = __CS_thread_born_round[2]; + __CS_ret = 0; + __CS_thread[2](0); + if (__CS_ret!=__CS_ret_PREEMPTED) __CS_thread_status[__CS_round][2] = __THREAD_FINISHED; + } + __VERIFIER_assume(__CS_thread_status[0][0] == __CS_cp___CS_thread_status[1][0]); + __VERIFIER_assume(__CS_thread_status[1][0] == __CS_cp___CS_thread_status[2][0]); + __VERIFIER_assume(__CS_thread_status[0][1] == __CS_cp___CS_thread_status[1][1]); + __VERIFIER_assume(__CS_thread_status[1][1] == __CS_cp___CS_thread_status[2][1]); + __VERIFIER_assume(__CS_thread_status[0][2] == __CS_cp___CS_thread_status[1][2]); + __VERIFIER_assume(__CS_thread_status[1][2] == __CS_cp___CS_thread_status[2][2]); + __VERIFIER_assume(__CS_thread_lockedon[0][0] == __CS_cp___CS_thread_lockedon[1][0]); + __VERIFIER_assume(__CS_thread_lockedon[1][0] == __CS_cp___CS_thread_lockedon[2][0]); + __VERIFIER_assume(__CS_thread_lockedon[0][1] == __CS_cp___CS_thread_lockedon[1][1]); + __VERIFIER_assume(__CS_thread_lockedon[1][1] == __CS_cp___CS_thread_lockedon[2][1]); + __VERIFIER_assume(__CS_thread_lockedon[0][2] == __CS_cp___CS_thread_lockedon[1][2]); + __VERIFIER_assume(__CS_thread_lockedon[1][2] == __CS_cp___CS_thread_lockedon[2][2]); + __VERIFIER_assume(flag1[0] == __CS_cp_flag1[1]); + __VERIFIER_assume(flag1[1] == __CS_cp_flag1[2]); + __VERIFIER_assume(flag2[0] == __CS_cp_flag2[1]); + __VERIFIER_assume(flag2[1] == __CS_cp_flag2[2]); + __VERIFIER_assume(turn[0] == __CS_cp_turn[1]); + __VERIFIER_assume(turn[1] == __CS_cp_turn[2]); + __VERIFIER_assume(x[0] == __CS_cp_x[1]); + __VERIFIER_assume(x[1] == __CS_cp_x[2]); + __VERIFIER_assert(__CS_error != 1); +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/cs_stateful_false-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/cs_stateful_false-unreach-call.c new file mode 100644 index 000000000..84e73ec9a --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/cs_stateful_false-unreach-call.c @@ -0,0 +1,899 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +extern void __VERIFIER_assume(int); +typedef long unsigned int size_t; +typedef int wchar_t; + +union wait + { + int w_status; + struct + { + unsigned int __w_termsig:7; + unsigned int __w_coredump:1; + unsigned int __w_retcode:8; + unsigned int:16; + } __wait_terminated; + struct + { + unsigned int __w_stopval:8; + unsigned int __w_stopsig:8; + unsigned int:16; + } __wait_stopped; + }; +typedef union + { + union wait *__uptr; + int *__iptr; + } __WAIT_STATUS __attribute__ ((__transparent_union__)); + +typedef struct + { + int quot; + int rem; + } div_t; +typedef struct + { + long int quot; + long int rem; + } ldiv_t; + + +__extension__ typedef struct + { + long long int quot; + long long int rem; + } lldiv_t; + +extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__ , __leaf__)) ; + +extern double atof (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern int atoi (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern long int atol (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +__extension__ extern long long int atoll (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +extern double strtod (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern float strtof (__const char *__restrict __nptr, + char **__restrict __endptr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern long double strtold (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern long int strtol (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern unsigned long int strtoul (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtouq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoll (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtoull (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *l64a (long int __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern long int a64l (__const char *__s) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + +typedef unsigned char __u_char; +typedef unsigned short int __u_short; +typedef unsigned int __u_int; +typedef unsigned long int __u_long; +typedef signed char __int8_t; +typedef unsigned char __uint8_t; +typedef signed short int __int16_t; +typedef unsigned short int __uint16_t; +typedef signed int __int32_t; +typedef unsigned int __uint32_t; +typedef signed long int __int64_t; +typedef unsigned long int __uint64_t; +typedef long int __quad_t; +typedef unsigned long int __u_quad_t; +typedef unsigned long int __dev_t; +typedef unsigned int __uid_t; +typedef unsigned int __gid_t; +typedef unsigned long int __ino_t; +typedef unsigned long int __ino64_t; +typedef unsigned int __mode_t; +typedef unsigned long int __nlink_t; +typedef long int __off_t; +typedef long int __off64_t; +typedef int __pid_t; +typedef struct { int __val[2]; } __fsid_t; +typedef long int __clock_t; +typedef unsigned long int __rlim_t; +typedef unsigned long int __rlim64_t; +typedef unsigned int __id_t; +typedef long int __time_t; +typedef unsigned int __useconds_t; +typedef long int __suseconds_t; +typedef int __daddr_t; +typedef long int __swblk_t; +typedef int __key_t; +typedef int __clockid_t; +typedef void * __timer_t; +typedef long int __blksize_t; +typedef long int __blkcnt_t; +typedef long int __blkcnt64_t; +typedef unsigned long int __fsblkcnt_t; +typedef unsigned long int __fsblkcnt64_t; +typedef unsigned long int __fsfilcnt_t; +typedef unsigned long int __fsfilcnt64_t; +typedef long int __ssize_t; +typedef __off64_t __loff_t; +typedef __quad_t *__qaddr_t; +typedef char *__caddr_t; +typedef long int __intptr_t; +typedef unsigned int __socklen_t; +typedef __u_char u_char; +typedef __u_short u_short; +typedef __u_int u_int; +typedef __u_long u_long; +typedef __quad_t quad_t; +typedef __u_quad_t u_quad_t; +typedef __fsid_t fsid_t; +typedef __loff_t loff_t; +typedef __ino_t ino_t; +typedef __dev_t dev_t; +typedef __gid_t gid_t; +typedef __mode_t mode_t; +typedef __nlink_t nlink_t; +typedef __uid_t uid_t; +typedef __off_t off_t; +typedef __pid_t pid_t; +typedef __id_t id_t; +typedef __ssize_t ssize_t; +typedef __daddr_t daddr_t; +typedef __caddr_t caddr_t; +typedef __key_t key_t; + +typedef __clock_t clock_t; + + + +typedef __time_t time_t; + + +typedef __clockid_t clockid_t; +typedef __timer_t timer_t; +typedef unsigned long int ulong; +typedef unsigned short int ushort; +typedef unsigned int uint; +typedef int int8_t __attribute__ ((__mode__ (__QI__))); +typedef int int16_t __attribute__ ((__mode__ (__HI__))); +typedef int int32_t __attribute__ ((__mode__ (__SI__))); +typedef int int64_t __attribute__ ((__mode__ (__DI__))); +typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); +typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); +typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); +typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); +typedef int register_t __attribute__ ((__mode__ (__word__))); +typedef int __sig_atomic_t; +typedef struct + { + unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; + } __sigset_t; +typedef __sigset_t sigset_t; +struct timespec + { + __time_t tv_sec; + long int tv_nsec; + }; +struct timeval + { + __time_t tv_sec; + __suseconds_t tv_usec; + }; +typedef __suseconds_t suseconds_t; +typedef long int __fd_mask; +typedef struct + { + __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; + } fd_set; +typedef __fd_mask fd_mask; + +extern int select (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + struct timeval *__restrict __timeout); +extern int pselect (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + const struct timespec *__restrict __timeout, + const __sigset_t *__restrict __sigmask); + + +__extension__ +extern unsigned int gnu_dev_major (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned int gnu_dev_minor (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned long long int gnu_dev_makedev (unsigned int __major, + unsigned int __minor) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); + +typedef __blksize_t blksize_t; +typedef __blkcnt_t blkcnt_t; +typedef __fsblkcnt_t fsblkcnt_t; + + +typedef __fsfilcnt_t fsfilcnt_t; +typedef unsigned long int pthread_t; +typedef union +{ + char __size[56]; + long int __align; +} pthread_attr_t; +typedef struct __pthread_internal_list +{ + struct __pthread_internal_list *__prev; + struct __pthread_internal_list *__next; +} __pthread_list_t; +typedef union +{ + struct __pthread_mutex_s + { + int __lock; + unsigned int __count; + int __owner; + unsigned int __nusers; + int __kind; + int __spins; + __pthread_list_t __list; + } __data; + char __size[40]; + long int __align; +} pthread_mutex_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_mutexattr_t; +typedef union +{ + struct + { + int __lock; + unsigned int __futex; + __extension__ unsigned long long int __total_seq; + __extension__ unsigned long long int __wakeup_seq; + __extension__ unsigned long long int __woken_seq; + void *__mutex; + unsigned int __nwaiters; + unsigned int __broadcast_seq; + } __data; + char __size[48]; + __extension__ long long int __align; +} pthread_cond_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_condattr_t; +typedef unsigned int pthread_key_t; +typedef int pthread_once_t; +typedef union +{ + struct + { + int __lock; + unsigned int __nr_readers; + unsigned int __readers_wakeup; + unsigned int __writer_wakeup; + unsigned int __nr_readers_queued; + unsigned int __nr_writers_queued; + int __writer; + int __shared; + unsigned long int __pad1; + unsigned long int __pad2; + unsigned int __flags; + } __data; + char __size[56]; + long int __align; +} pthread_rwlock_t; +typedef union +{ + char __size[8]; + long int __align; +} pthread_rwlockattr_t; +typedef volatile int pthread_spinlock_t; +typedef union +{ + char __size[32]; + long int __align; +} pthread_barrier_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_barrierattr_t; + +extern long int random (void) __attribute__ ((__nothrow__ , __leaf__)); +extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); +extern char *initstate (unsigned int __seed, char *__statebuf, + size_t __statelen) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + + +extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + + + +struct random_data + { + int32_t *fptr; + int32_t *rptr; + int32_t *state; + int rand_type; + int rand_deg; + int rand_sep; + int32_t *end_ptr; + }; + +extern int random_r (struct random_data *__restrict __buf, + int32_t *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int srandom_r (unsigned int __seed, struct random_data *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, + size_t __statelen, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4))); + +extern int setstate_r (char *__restrict __statebuf, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + +extern int rand (void) __attribute__ ((__nothrow__ , __leaf__)); + +extern void srand (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern double drand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int lrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int nrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int mrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int jrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern void srand48 (long int __seedval) __attribute__ ((__nothrow__ , __leaf__)); +extern unsigned short int *seed48 (unsigned short int __seed16v[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + +struct drand48_data + { + unsigned short int __x[3]; + unsigned short int __old_x[3]; + unsigned short int __c; + unsigned short int __init; + unsigned long long int __a; + }; + + +extern int drand48_r (struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int erand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int lrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int nrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int mrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int jrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int srand48_r (long int __seedval, struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int seed48_r (unsigned short int __seed16v[3], + struct drand48_data *__buffer) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int lcong48_r (unsigned short int __param[7], + struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + + + + +extern void *malloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + +extern void *calloc (size_t __nmemb, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + + + + + + + +extern void *realloc (void *__ptr, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); + +extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern void cfree (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + +extern void *alloca (size_t __size) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern void *valloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + +extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + + + +extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + + +extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern void exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern void _Exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern char *getenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *__secure_getenv (__const char *__name) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int putenv (char *__string) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int setenv (__const char *__name, __const char *__value, int __replace) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); +extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int clearenv (void) __attribute__ ((__nothrow__ , __leaf__)); +extern char *mktemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ; +extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern int system (__const char *__command) ; + +extern char *realpath (__const char *__restrict __name, + char *__restrict __resolved) __attribute__ ((__nothrow__ , __leaf__)) ; +typedef int (*__compar_fn_t) (__const void *, __const void *); + +extern void *bsearch (__const void *__key, __const void *__base, + size_t __nmemb, size_t __size, __compar_fn_t __compar) + __attribute__ ((__nonnull__ (1, 2, 5))) ; +extern void qsort (void *__base, size_t __nmemb, size_t __size, + __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); +extern int abs (int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern long int labs (long int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +__extension__ extern long long int llabs (long long int __x) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern div_t div (int __numer, int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern ldiv_t ldiv (long int __numer, long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + + +__extension__ extern lldiv_t lldiv (long long int __numer, + long long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *gcvt (double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern char *qecvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qfcvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qgcvt (long double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qecvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qfcvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); + +extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int mbtowc (wchar_t *__restrict __pwc, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__ , __leaf__)) ; +extern size_t mbstowcs (wchar_t *__restrict __pwcs, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)); +extern size_t wcstombs (char *__restrict __s, + __const wchar_t *__restrict __pwcs, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)); + +extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int getsubopt (char **__restrict __optionp, + char *__const *__restrict __tokens, + char **__restrict __valuep) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2, 3))) ; +extern int getloadavg (double __loadavg[], int __nelem) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern void __assert_fail (__const char *__assertion, __const char *__file, + unsigned int __line, __const char *__function) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +extern void __assert_perror_fail (int __errnum, __const char *__file, + unsigned int __line, + __const char *__function) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +extern void __assert (const char *__assertion, const char *__file, int __line) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} + +unsigned char __CS_round = 0; +unsigned char __CS_ret = 0; +const unsigned char __CS_ret_PREEMPTED = 0x01; +const unsigned char __CS_ret_ERROR = 0x02; +const unsigned char __CS_ret_FINISHED = 0x04; +unsigned char __CS_error = 0; +unsigned char __CS_thread_index; +unsigned char __CS_thread_allocated[2 +1]; +unsigned char __CS_thread_born_round[2 +1]; +void *(*__CS_thread[2 +1])(void *); +unsigned char __CS_thread_status[2][2 +1]; +const unsigned char __THREAD_UNUSED = 0x00; +const unsigned char __THREAD_RUNNING = 0x01; +const unsigned char __THREAD_FINISHED = 0x02; +unsigned char *__CS_thread_lockedon[2][2 +1]; +int nondet_int(); +void __CS_cs(void) +{ + unsigned char k; + __VERIFIER_assume(__CS_round+k < 2); + __CS_round += k; + __CS_ret = (nondet_int() && __CS_round == 2 -1)?__CS_ret_PREEMPTED:__CS_ret; +} +int __CS_pthread_mutex_init(unsigned char *mutex, void *attr) +{ + return 0; +} +int __CS_pthread_mutex_destroy(unsigned char *lock) +{ + if (*lock != __CS_thread_index && *lock != 0) { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + } + else *lock = 0; + return 0; +} +int __CS_pthread_mutex_lock(unsigned char *lock) +{ + if (*lock == 0) *lock = (__CS_thread_index+1); + else { __CS_ret = __CS_ret_PREEMPTED; return 1; } + return 0; +} +int __CS_pthread_mutex_unlock(unsigned char *lock) +{ + if (*lock != (__CS_thread_index+1)) { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + return 1; + } else *lock = 0; + return 0; +} +int __CS_pthread_cond_init(unsigned char *cond, void *attr) +{ + return 0; +} +int __CS_pthread_cond_signal(unsigned char *cond) +{ + int j; + for (j=0; j<=2; j++) + if (__CS_thread_lockedon[__CS_round][j] == cond) + __CS_thread_lockedon[__CS_round][j] = 0; + return 0; +} +int __CS_pthread_cond_broadcast(unsigned char *cond) +{ + int j; + for (j=0; j<=2; j++) + if (__CS_thread_lockedon[__CS_round][j] == cond) + __CS_thread_lockedon[__CS_round][j] = 0; + return 0; +} +int __CS_pthread_cond_wait(unsigned char *cond, unsigned char *lock) +{ + if (*lock != (__CS_thread_index+1)) { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + return 1; + } + else *lock = 0; + __CS_thread_lockedon[__CS_round][__CS_thread_index] = cond; + __CS_ret = __CS_ret_PREEMPTED; + if (*lock == 0) *lock = __CS_thread_index+1; + else { __CS_ret = __CS_ret_PREEMPTED; return 1; } + return 0; +} +void __CS_assert(int expr) +{ + if (!expr) { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + } +} +void __CS_assume(int expr) +{ + if (!expr) __CS_ret = __CS_ret_PREEMPTED; +} +int __CS_pthread_join(unsigned char thread, void **value_ptr) +{ + if (thread != 123 && thread > 2 +1) + { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + return 0; + } + if ( thread == 123 || __CS_thread_status[__CS_round][thread] == __THREAD_RUNNING ) + { + __CS_ret = __CS_ret_PREEMPTED; + return 0; + } + if (__CS_thread_status[__CS_round][thread] == __THREAD_UNUSED) + { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + return 0; + } + __VERIFIER_assume( __CS_thread_status[__CS_round][thread] == __THREAD_FINISHED ); + return 0; +} +int __CS_pthread_create(unsigned char *id1, void *attr, void *(*t1)(void*), void *arg) +{ + if (__CS_thread_index == 2) { + *id1 = 123; + return -1; + } + __CS_thread_index++; + __CS_thread_allocated[__CS_thread_index] = 1; + __CS_thread_born_round[__CS_thread_index] = __CS_round; + __CS_thread[__CS_thread_index] = t1; + __CS_thread_status[__CS_round][__CS_thread_index] = __THREAD_RUNNING; + *id1 = __CS_thread_index; + return __CS_thread_index; +} +unsigned char ma[2]; +unsigned char mb[2]; +int data1[2]; +int data2[2]; +union __CS__u { + unsigned char ma[2]; + unsigned char mb[2]; + int data1[2]; + int data2[2]; +}; +union __CS__u __CS_u; +void *thread1(void *arg) +{ + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_mutex_lock(&ma[__CS_round]); + __CS_cs(); if (__CS_ret != 0) return 0; + data1[__CS_round]++; + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_mutex_unlock(&ma[__CS_round]); + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_mutex_lock(&ma[__CS_round]); + __CS_cs(); if (__CS_ret != 0) return 0; + data2[__CS_round]++; + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_mutex_unlock(&ma[__CS_round]); + __CS_cs(); if (__CS_ret != 0) return 0; +} +void *thread2(void *arg) +{ + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_mutex_lock(&ma[__CS_round]); + __CS_cs(); if (__CS_ret != 0) return 0; + data1[__CS_round] += 5; + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_mutex_unlock(&ma[__CS_round]); + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_mutex_lock(&ma[__CS_round]); + __CS_cs(); if (__CS_ret != 0) return 0; + data2[__CS_round] -= 6; + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_mutex_unlock(&ma[__CS_round]); + __CS_cs(); if (__CS_ret != 0) return 0; +} +void *main_thread(void *arg) +{ + unsigned char t1; + unsigned char t2; + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_mutex_init(&ma[__CS_round], 0); + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_mutex_init(&mb[__CS_round], 0); + __CS_cs(); if (__CS_ret != 0) return 0; + data1[__CS_round] = 10; + __CS_cs(); if (__CS_ret != 0) return 0; + data2[__CS_round] = 10; + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_create(&t1, 0, thread1, 0); + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_create(&t2, 0, thread2, 0); + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_join(t1, 0); + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_join(t2, 0); + __CS_cs(); if (__CS_ret != 0) return 0; + if ((data1[__CS_round] == 16) && (data2[__CS_round] == 5)) + { + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_ERROR: __CS_error = 1; __CS_ret = __CS_ret_ERROR; return 0; + __CS_cs(); if (__CS_ret != 0) return 0; + goto __CS_ERROR; + __CS_cs(); if (__CS_ret != 0) return 0; + ; + __CS_cs(); if (__CS_ret != 0) return 0; + } + __CS_cs(); if (__CS_ret != 0) return 0; + } +int main() +{ + unsigned char __CS_cp___CS_thread_status[2][2 +1]; + unsigned char *__CS_cp___CS_thread_lockedon[2][2 +1]; + unsigned char __CS_cp_ma[2]; + unsigned char __CS_cp_mb[2]; + int __CS_cp_data1[2]; + int __CS_cp_data2[2]; + __CS_thread_status[1][0] = __CS_cp___CS_thread_status[1][0]; + __CS_thread_status[1][1] = __CS_cp___CS_thread_status[1][1]; + __CS_thread_status[1][2] = __CS_cp___CS_thread_status[1][2]; + __CS_thread_lockedon[1][0] = __CS_cp___CS_thread_lockedon[1][0]; + __CS_thread_lockedon[1][1] = __CS_cp___CS_thread_lockedon[1][1]; + __CS_thread_lockedon[1][2] = __CS_cp___CS_thread_lockedon[1][2]; + ma[1] = __CS_cp_ma[1]; + mb[1] = __CS_cp_mb[1]; + data1[1] = __CS_cp_data1[1]; + data2[1] = __CS_cp_data2[1]; + __CS_round = 0; + __CS_thread_index = 0; + __CS_thread_born_round[0] = __CS_round; + __CS_thread_status[0][0] = __THREAD_RUNNING; + __CS_thread[0] = main_thread; + __CS_thread_allocated[0] = 1; + if (__CS_thread_allocated[0] == 1) { + __CS_round = __CS_thread_born_round[0]; + __CS_ret = 0; + __CS_thread[0](0); + if (__CS_ret!=__CS_ret_PREEMPTED) __CS_thread_status[__CS_round][0] = __THREAD_FINISHED; + } + if (__CS_thread_allocated[1] == 1) { + __CS_round = __CS_thread_born_round[1]; + __CS_ret = 0; + __CS_thread[1](0); + if (__CS_ret!=__CS_ret_PREEMPTED) __CS_thread_status[__CS_round][1] = __THREAD_FINISHED; + } + if (__CS_thread_allocated[2] == 1) { + __CS_round = __CS_thread_born_round[2]; + __CS_ret = 0; + __CS_thread[2](0); + if (__CS_ret!=__CS_ret_PREEMPTED) __CS_thread_status[__CS_round][2] = __THREAD_FINISHED; + } + __VERIFIER_assume(__CS_thread_status[0][0] == __CS_cp___CS_thread_status[1][0]); + __VERIFIER_assume(__CS_thread_status[0][1] == __CS_cp___CS_thread_status[1][1]); + __VERIFIER_assume(__CS_thread_status[0][2] == __CS_cp___CS_thread_status[1][2]); + __VERIFIER_assume(__CS_thread_lockedon[0][0] == __CS_cp___CS_thread_lockedon[1][0]); + __VERIFIER_assume(__CS_thread_lockedon[0][1] == __CS_cp___CS_thread_lockedon[1][1]); + __VERIFIER_assume(__CS_thread_lockedon[0][2] == __CS_cp___CS_thread_lockedon[1][2]); + __VERIFIER_assume(ma[0] == __CS_cp_ma[1]); + __VERIFIER_assume(mb[0] == __CS_cp_mb[1]); + __VERIFIER_assume(data1[0] == __CS_cp_data1[1]); + __VERIFIER_assume(data2[0] == __CS_cp_data2[1]); + __VERIFIER_assert(__CS_error != 1); +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/cs_szymanski_true-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/cs_szymanski_true-unreach-call.c new file mode 100644 index 000000000..9c2b9fdb9 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/cs_szymanski_true-unreach-call.c @@ -0,0 +1,971 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +extern void __VERIFIER_assume(int); +typedef long unsigned int size_t; +typedef int wchar_t; + +union wait + { + int w_status; + struct + { + unsigned int __w_termsig:7; + unsigned int __w_coredump:1; + unsigned int __w_retcode:8; + unsigned int:16; + } __wait_terminated; + struct + { + unsigned int __w_stopval:8; + unsigned int __w_stopsig:8; + unsigned int:16; + } __wait_stopped; + }; +typedef union + { + union wait *__uptr; + int *__iptr; + } __WAIT_STATUS __attribute__ ((__transparent_union__)); + +typedef struct + { + int quot; + int rem; + } div_t; +typedef struct + { + long int quot; + long int rem; + } ldiv_t; + + +__extension__ typedef struct + { + long long int quot; + long long int rem; + } lldiv_t; + +extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__ , __leaf__)) ; + +extern double atof (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern int atoi (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern long int atol (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +__extension__ extern long long int atoll (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +extern double strtod (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern float strtof (__const char *__restrict __nptr, + char **__restrict __endptr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern long double strtold (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern long int strtol (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern unsigned long int strtoul (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtouq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoll (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtoull (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *l64a (long int __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern long int a64l (__const char *__s) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + +typedef unsigned char __u_char; +typedef unsigned short int __u_short; +typedef unsigned int __u_int; +typedef unsigned long int __u_long; +typedef signed char __int8_t; +typedef unsigned char __uint8_t; +typedef signed short int __int16_t; +typedef unsigned short int __uint16_t; +typedef signed int __int32_t; +typedef unsigned int __uint32_t; +typedef signed long int __int64_t; +typedef unsigned long int __uint64_t; +typedef long int __quad_t; +typedef unsigned long int __u_quad_t; +typedef unsigned long int __dev_t; +typedef unsigned int __uid_t; +typedef unsigned int __gid_t; +typedef unsigned long int __ino_t; +typedef unsigned long int __ino64_t; +typedef unsigned int __mode_t; +typedef unsigned long int __nlink_t; +typedef long int __off_t; +typedef long int __off64_t; +typedef int __pid_t; +typedef struct { int __val[2]; } __fsid_t; +typedef long int __clock_t; +typedef unsigned long int __rlim_t; +typedef unsigned long int __rlim64_t; +typedef unsigned int __id_t; +typedef long int __time_t; +typedef unsigned int __useconds_t; +typedef long int __suseconds_t; +typedef int __daddr_t; +typedef long int __swblk_t; +typedef int __key_t; +typedef int __clockid_t; +typedef void * __timer_t; +typedef long int __blksize_t; +typedef long int __blkcnt_t; +typedef long int __blkcnt64_t; +typedef unsigned long int __fsblkcnt_t; +typedef unsigned long int __fsblkcnt64_t; +typedef unsigned long int __fsfilcnt_t; +typedef unsigned long int __fsfilcnt64_t; +typedef long int __ssize_t; +typedef __off64_t __loff_t; +typedef __quad_t *__qaddr_t; +typedef char *__caddr_t; +typedef long int __intptr_t; +typedef unsigned int __socklen_t; +typedef __u_char u_char; +typedef __u_short u_short; +typedef __u_int u_int; +typedef __u_long u_long; +typedef __quad_t quad_t; +typedef __u_quad_t u_quad_t; +typedef __fsid_t fsid_t; +typedef __loff_t loff_t; +typedef __ino_t ino_t; +typedef __dev_t dev_t; +typedef __gid_t gid_t; +typedef __mode_t mode_t; +typedef __nlink_t nlink_t; +typedef __uid_t uid_t; +typedef __off_t off_t; +typedef __pid_t pid_t; +typedef __id_t id_t; +typedef __ssize_t ssize_t; +typedef __daddr_t daddr_t; +typedef __caddr_t caddr_t; +typedef __key_t key_t; + +typedef __clock_t clock_t; + + + +typedef __time_t time_t; + + +typedef __clockid_t clockid_t; +typedef __timer_t timer_t; +typedef unsigned long int ulong; +typedef unsigned short int ushort; +typedef unsigned int uint; +typedef int int8_t __attribute__ ((__mode__ (__QI__))); +typedef int int16_t __attribute__ ((__mode__ (__HI__))); +typedef int int32_t __attribute__ ((__mode__ (__SI__))); +typedef int int64_t __attribute__ ((__mode__ (__DI__))); +typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); +typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); +typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); +typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); +typedef int register_t __attribute__ ((__mode__ (__word__))); +typedef int __sig_atomic_t; +typedef struct + { + unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; + } __sigset_t; +typedef __sigset_t sigset_t; +struct timespec + { + __time_t tv_sec; + long int tv_nsec; + }; +struct timeval + { + __time_t tv_sec; + __suseconds_t tv_usec; + }; +typedef __suseconds_t suseconds_t; +typedef long int __fd_mask; +typedef struct + { + __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; + } fd_set; +typedef __fd_mask fd_mask; + +extern int select (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + struct timeval *__restrict __timeout); +extern int pselect (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + const struct timespec *__restrict __timeout, + const __sigset_t *__restrict __sigmask); + + +__extension__ +extern unsigned int gnu_dev_major (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned int gnu_dev_minor (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned long long int gnu_dev_makedev (unsigned int __major, + unsigned int __minor) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); + +typedef __blksize_t blksize_t; +typedef __blkcnt_t blkcnt_t; +typedef __fsblkcnt_t fsblkcnt_t; + + +typedef __fsfilcnt_t fsfilcnt_t; +typedef unsigned long int pthread_t; +typedef union +{ + char __size[56]; + long int __align; +} pthread_attr_t; +typedef struct __pthread_internal_list +{ + struct __pthread_internal_list *__prev; + struct __pthread_internal_list *__next; +} __pthread_list_t; +typedef union +{ + struct __pthread_mutex_s + { + int __lock; + unsigned int __count; + int __owner; + unsigned int __nusers; + int __kind; + int __spins; + __pthread_list_t __list; + } __data; + char __size[40]; + long int __align; +} pthread_mutex_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_mutexattr_t; +typedef union +{ + struct + { + int __lock; + unsigned int __futex; + __extension__ unsigned long long int __total_seq; + __extension__ unsigned long long int __wakeup_seq; + __extension__ unsigned long long int __woken_seq; + void *__mutex; + unsigned int __nwaiters; + unsigned int __broadcast_seq; + } __data; + char __size[48]; + __extension__ long long int __align; +} pthread_cond_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_condattr_t; +typedef unsigned int pthread_key_t; +typedef int pthread_once_t; +typedef union +{ + struct + { + int __lock; + unsigned int __nr_readers; + unsigned int __readers_wakeup; + unsigned int __writer_wakeup; + unsigned int __nr_readers_queued; + unsigned int __nr_writers_queued; + int __writer; + int __shared; + unsigned long int __pad1; + unsigned long int __pad2; + unsigned int __flags; + } __data; + char __size[56]; + long int __align; +} pthread_rwlock_t; +typedef union +{ + char __size[8]; + long int __align; +} pthread_rwlockattr_t; +typedef volatile int pthread_spinlock_t; +typedef union +{ + char __size[32]; + long int __align; +} pthread_barrier_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_barrierattr_t; + +extern long int random (void) __attribute__ ((__nothrow__ , __leaf__)); +extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); +extern char *initstate (unsigned int __seed, char *__statebuf, + size_t __statelen) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + + +extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + + + +struct random_data + { + int32_t *fptr; + int32_t *rptr; + int32_t *state; + int rand_type; + int rand_deg; + int rand_sep; + int32_t *end_ptr; + }; + +extern int random_r (struct random_data *__restrict __buf, + int32_t *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int srandom_r (unsigned int __seed, struct random_data *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, + size_t __statelen, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4))); + +extern int setstate_r (char *__restrict __statebuf, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + +extern int rand (void) __attribute__ ((__nothrow__ , __leaf__)); + +extern void srand (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern double drand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int lrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int nrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int mrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int jrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern void srand48 (long int __seedval) __attribute__ ((__nothrow__ , __leaf__)); +extern unsigned short int *seed48 (unsigned short int __seed16v[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + +struct drand48_data + { + unsigned short int __x[3]; + unsigned short int __old_x[3]; + unsigned short int __c; + unsigned short int __init; + unsigned long long int __a; + }; + + +extern int drand48_r (struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int erand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int lrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int nrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int mrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int jrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int srand48_r (long int __seedval, struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int seed48_r (unsigned short int __seed16v[3], + struct drand48_data *__buffer) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int lcong48_r (unsigned short int __param[7], + struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + + + + +extern void *malloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + +extern void *calloc (size_t __nmemb, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + + + + + + + +extern void *realloc (void *__ptr, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); + +extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern void cfree (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + +extern void *alloca (size_t __size) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern void *valloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + +extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + + + +extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + + +extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern void exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern void _Exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern char *getenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *__secure_getenv (__const char *__name) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int putenv (char *__string) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int setenv (__const char *__name, __const char *__value, int __replace) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); +extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int clearenv (void) __attribute__ ((__nothrow__ , __leaf__)); +extern char *mktemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ; +extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern int system (__const char *__command) ; + +extern char *realpath (__const char *__restrict __name, + char *__restrict __resolved) __attribute__ ((__nothrow__ , __leaf__)) ; +typedef int (*__compar_fn_t) (__const void *, __const void *); + +extern void *bsearch (__const void *__key, __const void *__base, + size_t __nmemb, size_t __size, __compar_fn_t __compar) + __attribute__ ((__nonnull__ (1, 2, 5))) ; +extern void qsort (void *__base, size_t __nmemb, size_t __size, + __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); +extern int abs (int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern long int labs (long int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +__extension__ extern long long int llabs (long long int __x) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern div_t div (int __numer, int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern ldiv_t ldiv (long int __numer, long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + + +__extension__ extern lldiv_t lldiv (long long int __numer, + long long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *gcvt (double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern char *qecvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qfcvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qgcvt (long double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qecvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qfcvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); + +extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int mbtowc (wchar_t *__restrict __pwc, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__ , __leaf__)) ; +extern size_t mbstowcs (wchar_t *__restrict __pwcs, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)); +extern size_t wcstombs (char *__restrict __s, + __const wchar_t *__restrict __pwcs, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)); + +extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int getsubopt (char **__restrict __optionp, + char *__const *__restrict __tokens, + char **__restrict __valuep) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2, 3))) ; +extern int getloadavg (double __loadavg[], int __nelem) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern void __assert_fail (__const char *__assertion, __const char *__file, + unsigned int __line, __const char *__function) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +extern void __assert_perror_fail (int __errnum, __const char *__file, + unsigned int __line, + __const char *__function) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +extern void __assert (const char *__assertion, const char *__file, int __line) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} + +unsigned char __CS_round = 0; +unsigned char __CS_ret = 0; +const unsigned char __CS_ret_PREEMPTED = 0x01; +const unsigned char __CS_ret_ERROR = 0x02; +const unsigned char __CS_ret_FINISHED = 0x04; +unsigned char __CS_error = 0; +unsigned char __CS_thread_index; +unsigned char __CS_thread_allocated[2 +1]; +unsigned char __CS_thread_born_round[2 +1]; +void *(*__CS_thread[2 +1])(void *); +unsigned char __CS_thread_status[3][2 +1]; +const unsigned char __THREAD_UNUSED = 0x00; +const unsigned char __THREAD_RUNNING = 0x01; +const unsigned char __THREAD_FINISHED = 0x02; +unsigned char *__CS_thread_lockedon[3][2 +1]; +int nondet_int(); +void __CS_cs(void) +{ + unsigned char k; + __VERIFIER_assume(__CS_round+k < 3); + __CS_round += k; + __CS_ret = (nondet_int() && __CS_round == 3 -1)?__CS_ret_PREEMPTED:__CS_ret; +} +int __CS_pthread_mutex_init(unsigned char *mutex, void *attr) +{ + return 0; +} +int __CS_pthread_mutex_destroy(unsigned char *lock) +{ + if (*lock != __CS_thread_index && *lock != 0) { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + } + else *lock = 0; + return 0; +} +int __CS_pthread_mutex_lock(unsigned char *lock) +{ + if (*lock == 0) *lock = (__CS_thread_index+1); + else { __CS_ret = __CS_ret_PREEMPTED; return 1; } + return 0; +} +int __CS_pthread_mutex_unlock(unsigned char *lock) +{ + if (*lock != (__CS_thread_index+1)) { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + return 1; + } else *lock = 0; + return 0; +} +int __CS_pthread_cond_init(unsigned char *cond, void *attr) +{ + return 0; +} +int __CS_pthread_cond_signal(unsigned char *cond) +{ + int j; + for (j=0; j<=2; j++) + if (__CS_thread_lockedon[__CS_round][j] == cond) + __CS_thread_lockedon[__CS_round][j] = 0; + return 0; +} +int __CS_pthread_cond_broadcast(unsigned char *cond) +{ + int j; + for (j=0; j<=2; j++) + if (__CS_thread_lockedon[__CS_round][j] == cond) + __CS_thread_lockedon[__CS_round][j] = 0; + return 0; +} +int __CS_pthread_cond_wait(unsigned char *cond, unsigned char *lock) +{ + if (*lock != (__CS_thread_index+1)) { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + return 1; + } + else *lock = 0; + __CS_thread_lockedon[__CS_round][__CS_thread_index] = cond; + __CS_ret = __CS_ret_PREEMPTED; + if (*lock == 0) *lock = __CS_thread_index+1; + else { __CS_ret = __CS_ret_PREEMPTED; return 1; } + return 0; +} +void __CS_assert(int expr) +{ + if (!expr) { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + } +} +void __CS_assume(int expr) +{ + if (!expr) __CS_ret = __CS_ret_PREEMPTED; +} +int __CS_pthread_join(unsigned char thread, void **value_ptr) +{ + if (thread != 123 && thread > 2 +1) + { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + return 0; + } + if ( thread == 123 || __CS_thread_status[__CS_round][thread] == __THREAD_RUNNING ) + { + __CS_ret = __CS_ret_PREEMPTED; + return 0; + } + if (__CS_thread_status[__CS_round][thread] == __THREAD_UNUSED) + { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + return 0; + } + __VERIFIER_assume( __CS_thread_status[__CS_round][thread] == __THREAD_FINISHED ); + return 0; +} +int __CS_pthread_create(unsigned char *id1, void *attr, void *(*t1)(void*), void *arg) +{ + if (__CS_thread_index == 2) { + *id1 = 123; + return -1; + } + __CS_thread_index++; + __CS_thread_allocated[__CS_thread_index] = 1; + __CS_thread_born_round[__CS_thread_index] = __CS_round; + __CS_thread[__CS_thread_index] = t1; + __CS_thread_status[__CS_round][__CS_thread_index] = __THREAD_RUNNING; + *id1 = __CS_thread_index; + return __CS_thread_index; +} +int flag1[3] = {0}; +int flag2[3] = {0}; +int x[3]; +union __CS__u { + int flag1[3]; + int flag2[3]; + int x[3]; +}; +union __CS__u __CS_u; +void *thr1() +{ + __CS_cs(); if (__CS_ret != 0) return 0; + flag1[__CS_round] = 1; + __CS_cs(); if (__CS_ret != 0) return 0; + while (flag2[__CS_round] >= 3) + { + __CS_cs(); if (__CS_ret != 0) return 0; + ; + } + __CS_cs(); if (__CS_ret != 0) return 0; + flag1[__CS_round] = 3; + __CS_cs(); if (__CS_ret != 0) return 0; + if (flag2[__CS_round] == 1) + { + __CS_cs(); if (__CS_ret != 0) return 0; + flag1[__CS_round] = 2; + __CS_cs(); if (__CS_ret != 0) return 0; + while (flag2[__CS_round] != 4) + { + __CS_cs(); if (__CS_ret != 0) return 0; + ; + } + __CS_cs(); if (__CS_ret != 0) return 0; + } + __CS_cs(); if (__CS_ret != 0) return 0; + flag1[__CS_round] = 4; + __CS_cs(); if (__CS_ret != 0) return 0; + while (flag2[__CS_round] >= 2) + { + __CS_cs(); if (__CS_ret != 0) return 0; + ; + } + __CS_cs(); if (__CS_ret != 0) return 0; + x[__CS_round] = 0; + __CS_cs(); if (__CS_ret != 0) return 0; + if (!(x[__CS_round] <= 0)) + { + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_ERROR: __CS_error = 1; __CS_ret = __CS_ret_ERROR; return 0; + __CS_cs(); if (__CS_ret != 0) return 0; + goto __CS_ERROR; + } + __CS_cs(); if (__CS_ret != 0) return 0; + ; + __CS_cs(); if (__CS_ret != 0) return 0; + while ((2 <= flag2[__CS_round]) && (flag2[__CS_round] <= 3)) + { + __CS_cs(); if (__CS_ret != 0) return 0; + ; + } + __CS_cs(); if (__CS_ret != 0) return 0; + flag1[__CS_round] = 0; + __CS_cs(); if (__CS_ret != 0) return 0; +} +void *thr2() +{ + __CS_cs(); if (__CS_ret != 0) return 0; + flag2[__CS_round] = 1; + __CS_cs(); if (__CS_ret != 0) return 0; + while (flag1[__CS_round] >= 3) + { + __CS_cs(); if (__CS_ret != 0) return 0; + ; + } + __CS_cs(); if (__CS_ret != 0) return 0; + flag2[__CS_round] = 3; + __CS_cs(); if (__CS_ret != 0) return 0; + if (flag1[__CS_round] == 1) + { + __CS_cs(); if (__CS_ret != 0) return 0; + flag2[__CS_round] = 2; + __CS_cs(); if (__CS_ret != 0) return 0; + while (flag1[__CS_round] != 4) + { + __CS_cs(); if (__CS_ret != 0) return 0; + ; + } + __CS_cs(); if (__CS_ret != 0) return 0; + } + __CS_cs(); if (__CS_ret != 0) return 0; + flag2[__CS_round] = 4; + __CS_cs(); if (__CS_ret != 0) return 0; + while (flag1[__CS_round] >= 2) + { + __CS_cs(); if (__CS_ret != 0) return 0; + ; + } + __CS_cs(); if (__CS_ret != 0) return 0; + x[__CS_round] = 1; + __CS_cs(); if (__CS_ret != 0) return 0; + if (!(x[__CS_round] >= 1)) + { + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_ERROR: __CS_error = 1; __CS_ret = __CS_ret_ERROR; return 0; + __CS_cs(); if (__CS_ret != 0) return 0; + goto __CS_ERROR; + } + __CS_cs(); if (__CS_ret != 0) return 0; + ; + __CS_cs(); if (__CS_ret != 0) return 0; + while ((2 <= flag1[__CS_round]) && (flag1[__CS_round] <= 3)) + { + __CS_cs(); if (__CS_ret != 0) return 0; + ; + } + __CS_cs(); if (__CS_ret != 0) return 0; + flag2[__CS_round] = 0; + __CS_cs(); if (__CS_ret != 0) return 0; +} +void *main_thread(void *arg) +{ + unsigned char t1; + unsigned char t2; + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_create(&t1, 0, thr1, 0); + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_create(&t2, 0, thr2, 0); + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_join(t1, 0); + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_join(t2, 0); + __CS_cs(); if (__CS_ret != 0) return 0; + } +int main() +{ + unsigned char __CS_cp___CS_thread_status[3][2 +1]; + unsigned char *__CS_cp___CS_thread_lockedon[3][2 +1]; + int __CS_cp_flag1[3]; + int __CS_cp_flag2[3]; + int __CS_cp_x[3]; + __CS_thread_status[1][0] = __CS_cp___CS_thread_status[1][0]; + __CS_thread_status[2][0] = __CS_cp___CS_thread_status[2][0]; + __CS_thread_status[1][1] = __CS_cp___CS_thread_status[1][1]; + __CS_thread_status[2][1] = __CS_cp___CS_thread_status[2][1]; + __CS_thread_status[1][2] = __CS_cp___CS_thread_status[1][2]; + __CS_thread_status[2][2] = __CS_cp___CS_thread_status[2][2]; + __CS_thread_lockedon[1][0] = __CS_cp___CS_thread_lockedon[1][0]; + __CS_thread_lockedon[2][0] = __CS_cp___CS_thread_lockedon[2][0]; + __CS_thread_lockedon[1][1] = __CS_cp___CS_thread_lockedon[1][1]; + __CS_thread_lockedon[2][1] = __CS_cp___CS_thread_lockedon[2][1]; + __CS_thread_lockedon[1][2] = __CS_cp___CS_thread_lockedon[1][2]; + __CS_thread_lockedon[2][2] = __CS_cp___CS_thread_lockedon[2][2]; + flag1[1] = __CS_cp_flag1[1]; + flag1[2] = __CS_cp_flag1[2]; + flag2[1] = __CS_cp_flag2[1]; + flag2[2] = __CS_cp_flag2[2]; + x[1] = __CS_cp_x[1]; + x[2] = __CS_cp_x[2]; + __CS_round = 0; + __CS_thread_index = 0; + __CS_thread_born_round[0] = __CS_round; + __CS_thread_status[0][0] = __THREAD_RUNNING; + __CS_thread[0] = main_thread; + __CS_thread_allocated[0] = 1; + if (__CS_thread_allocated[0] == 1) { + __CS_round = __CS_thread_born_round[0]; + __CS_ret = 0; + __CS_thread[0](0); + if (__CS_ret!=__CS_ret_PREEMPTED) __CS_thread_status[__CS_round][0] = __THREAD_FINISHED; + } + if (__CS_thread_allocated[1] == 1) { + __CS_round = __CS_thread_born_round[1]; + __CS_ret = 0; + __CS_thread[1](0); + if (__CS_ret!=__CS_ret_PREEMPTED) __CS_thread_status[__CS_round][1] = __THREAD_FINISHED; + } + if (__CS_thread_allocated[2] == 1) { + __CS_round = __CS_thread_born_round[2]; + __CS_ret = 0; + __CS_thread[2](0); + if (__CS_ret!=__CS_ret_PREEMPTED) __CS_thread_status[__CS_round][2] = __THREAD_FINISHED; + } + __VERIFIER_assume(__CS_thread_status[0][0] == __CS_cp___CS_thread_status[1][0]); + __VERIFIER_assume(__CS_thread_status[1][0] == __CS_cp___CS_thread_status[2][0]); + __VERIFIER_assume(__CS_thread_status[0][1] == __CS_cp___CS_thread_status[1][1]); + __VERIFIER_assume(__CS_thread_status[1][1] == __CS_cp___CS_thread_status[2][1]); + __VERIFIER_assume(__CS_thread_status[0][2] == __CS_cp___CS_thread_status[1][2]); + __VERIFIER_assume(__CS_thread_status[1][2] == __CS_cp___CS_thread_status[2][2]); + __VERIFIER_assume(__CS_thread_lockedon[0][0] == __CS_cp___CS_thread_lockedon[1][0]); + __VERIFIER_assume(__CS_thread_lockedon[1][0] == __CS_cp___CS_thread_lockedon[2][0]); + __VERIFIER_assume(__CS_thread_lockedon[0][1] == __CS_cp___CS_thread_lockedon[1][1]); + __VERIFIER_assume(__CS_thread_lockedon[1][1] == __CS_cp___CS_thread_lockedon[2][1]); + __VERIFIER_assume(__CS_thread_lockedon[0][2] == __CS_cp___CS_thread_lockedon[1][2]); + __VERIFIER_assume(__CS_thread_lockedon[1][2] == __CS_cp___CS_thread_lockedon[2][2]); + __VERIFIER_assume(flag1[0] == __CS_cp_flag1[1]); + __VERIFIER_assume(flag1[1] == __CS_cp_flag1[2]); + __VERIFIER_assume(flag2[0] == __CS_cp_flag2[1]); + __VERIFIER_assume(flag2[1] == __CS_cp_flag2[2]); + __VERIFIER_assume(x[0] == __CS_cp_x[1]); + __VERIFIER_assume(x[1] == __CS_cp_x[2]); + __VERIFIER_assert(__CS_error != 1); +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/cs_time_var_mutex_true-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/cs_time_var_mutex_true-unreach-call.c new file mode 100644 index 000000000..da15c1d11 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/cs_time_var_mutex_true-unreach-call.c @@ -0,0 +1,947 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +extern void __VERIFIER_assume(int); +typedef long unsigned int size_t; +typedef int wchar_t; + +union wait + { + int w_status; + struct + { + unsigned int __w_termsig:7; + unsigned int __w_coredump:1; + unsigned int __w_retcode:8; + unsigned int:16; + } __wait_terminated; + struct + { + unsigned int __w_stopval:8; + unsigned int __w_stopsig:8; + unsigned int:16; + } __wait_stopped; + }; +typedef union + { + union wait *__uptr; + int *__iptr; + } __WAIT_STATUS __attribute__ ((__transparent_union__)); + +typedef struct + { + int quot; + int rem; + } div_t; +typedef struct + { + long int quot; + long int rem; + } ldiv_t; + + +__extension__ typedef struct + { + long long int quot; + long long int rem; + } lldiv_t; + +extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__ , __leaf__)) ; + +extern double atof (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern int atoi (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern long int atol (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +__extension__ extern long long int atoll (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +extern double strtod (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern float strtof (__const char *__restrict __nptr, + char **__restrict __endptr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern long double strtold (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern long int strtol (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern unsigned long int strtoul (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtouq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoll (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtoull (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *l64a (long int __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern long int a64l (__const char *__s) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + +typedef unsigned char __u_char; +typedef unsigned short int __u_short; +typedef unsigned int __u_int; +typedef unsigned long int __u_long; +typedef signed char __int8_t; +typedef unsigned char __uint8_t; +typedef signed short int __int16_t; +typedef unsigned short int __uint16_t; +typedef signed int __int32_t; +typedef unsigned int __uint32_t; +typedef signed long int __int64_t; +typedef unsigned long int __uint64_t; +typedef long int __quad_t; +typedef unsigned long int __u_quad_t; +typedef unsigned long int __dev_t; +typedef unsigned int __uid_t; +typedef unsigned int __gid_t; +typedef unsigned long int __ino_t; +typedef unsigned long int __ino64_t; +typedef unsigned int __mode_t; +typedef unsigned long int __nlink_t; +typedef long int __off_t; +typedef long int __off64_t; +typedef int __pid_t; +typedef struct { int __val[2]; } __fsid_t; +typedef long int __clock_t; +typedef unsigned long int __rlim_t; +typedef unsigned long int __rlim64_t; +typedef unsigned int __id_t; +typedef long int __time_t; +typedef unsigned int __useconds_t; +typedef long int __suseconds_t; +typedef int __daddr_t; +typedef long int __swblk_t; +typedef int __key_t; +typedef int __clockid_t; +typedef void * __timer_t; +typedef long int __blksize_t; +typedef long int __blkcnt_t; +typedef long int __blkcnt64_t; +typedef unsigned long int __fsblkcnt_t; +typedef unsigned long int __fsblkcnt64_t; +typedef unsigned long int __fsfilcnt_t; +typedef unsigned long int __fsfilcnt64_t; +typedef long int __ssize_t; +typedef __off64_t __loff_t; +typedef __quad_t *__qaddr_t; +typedef char *__caddr_t; +typedef long int __intptr_t; +typedef unsigned int __socklen_t; +typedef __u_char u_char; +typedef __u_short u_short; +typedef __u_int u_int; +typedef __u_long u_long; +typedef __quad_t quad_t; +typedef __u_quad_t u_quad_t; +typedef __fsid_t fsid_t; +typedef __loff_t loff_t; +typedef __ino_t ino_t; +typedef __dev_t dev_t; +typedef __gid_t gid_t; +typedef __mode_t mode_t; +typedef __nlink_t nlink_t; +typedef __uid_t uid_t; +typedef __off_t off_t; +typedef __pid_t pid_t; +typedef __id_t id_t; +typedef __ssize_t ssize_t; +typedef __daddr_t daddr_t; +typedef __caddr_t caddr_t; +typedef __key_t key_t; + +typedef __clock_t clock_t; + + + +typedef __time_t time_t; + + +typedef __clockid_t clockid_t; +typedef __timer_t timer_t; +typedef unsigned long int ulong; +typedef unsigned short int ushort; +typedef unsigned int uint; +typedef int int8_t __attribute__ ((__mode__ (__QI__))); +typedef int int16_t __attribute__ ((__mode__ (__HI__))); +typedef int int32_t __attribute__ ((__mode__ (__SI__))); +typedef int int64_t __attribute__ ((__mode__ (__DI__))); +typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); +typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); +typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); +typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); +typedef int register_t __attribute__ ((__mode__ (__word__))); +typedef int __sig_atomic_t; +typedef struct + { + unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; + } __sigset_t; +typedef __sigset_t sigset_t; +struct timespec + { + __time_t tv_sec; + long int tv_nsec; + }; +struct timeval + { + __time_t tv_sec; + __suseconds_t tv_usec; + }; +typedef __suseconds_t suseconds_t; +typedef long int __fd_mask; +typedef struct + { + __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; + } fd_set; +typedef __fd_mask fd_mask; + +extern int select (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + struct timeval *__restrict __timeout); +extern int pselect (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + const struct timespec *__restrict __timeout, + const __sigset_t *__restrict __sigmask); + + +__extension__ +extern unsigned int gnu_dev_major (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned int gnu_dev_minor (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned long long int gnu_dev_makedev (unsigned int __major, + unsigned int __minor) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); + +typedef __blksize_t blksize_t; +typedef __blkcnt_t blkcnt_t; +typedef __fsblkcnt_t fsblkcnt_t; + + +typedef __fsfilcnt_t fsfilcnt_t; +typedef unsigned long int pthread_t; +typedef union +{ + char __size[56]; + long int __align; +} pthread_attr_t; +typedef struct __pthread_internal_list +{ + struct __pthread_internal_list *__prev; + struct __pthread_internal_list *__next; +} __pthread_list_t; +typedef union +{ + struct __pthread_mutex_s + { + int __lock; + unsigned int __count; + int __owner; + unsigned int __nusers; + int __kind; + int __spins; + __pthread_list_t __list; + } __data; + char __size[40]; + long int __align; +} pthread_mutex_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_mutexattr_t; +typedef union +{ + struct + { + int __lock; + unsigned int __futex; + __extension__ unsigned long long int __total_seq; + __extension__ unsigned long long int __wakeup_seq; + __extension__ unsigned long long int __woken_seq; + void *__mutex; + unsigned int __nwaiters; + unsigned int __broadcast_seq; + } __data; + char __size[48]; + __extension__ long long int __align; +} pthread_cond_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_condattr_t; +typedef unsigned int pthread_key_t; +typedef int pthread_once_t; +typedef union +{ + struct + { + int __lock; + unsigned int __nr_readers; + unsigned int __readers_wakeup; + unsigned int __writer_wakeup; + unsigned int __nr_readers_queued; + unsigned int __nr_writers_queued; + int __writer; + int __shared; + unsigned long int __pad1; + unsigned long int __pad2; + unsigned int __flags; + } __data; + char __size[56]; + long int __align; +} pthread_rwlock_t; +typedef union +{ + char __size[8]; + long int __align; +} pthread_rwlockattr_t; +typedef volatile int pthread_spinlock_t; +typedef union +{ + char __size[32]; + long int __align; +} pthread_barrier_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_barrierattr_t; + +extern long int random (void) __attribute__ ((__nothrow__ , __leaf__)); +extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); +extern char *initstate (unsigned int __seed, char *__statebuf, + size_t __statelen) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + + +extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + + + +struct random_data + { + int32_t *fptr; + int32_t *rptr; + int32_t *state; + int rand_type; + int rand_deg; + int rand_sep; + int32_t *end_ptr; + }; + +extern int random_r (struct random_data *__restrict __buf, + int32_t *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int srandom_r (unsigned int __seed, struct random_data *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, + size_t __statelen, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4))); + +extern int setstate_r (char *__restrict __statebuf, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + +extern int rand (void) __attribute__ ((__nothrow__ , __leaf__)); + +extern void srand (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern double drand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int lrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int nrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int mrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int jrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern void srand48 (long int __seedval) __attribute__ ((__nothrow__ , __leaf__)); +extern unsigned short int *seed48 (unsigned short int __seed16v[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + +struct drand48_data + { + unsigned short int __x[3]; + unsigned short int __old_x[3]; + unsigned short int __c; + unsigned short int __init; + unsigned long long int __a; + }; + + +extern int drand48_r (struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int erand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int lrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int nrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int mrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int jrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int srand48_r (long int __seedval, struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int seed48_r (unsigned short int __seed16v[3], + struct drand48_data *__buffer) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int lcong48_r (unsigned short int __param[7], + struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + + + + +extern void *malloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + +extern void *calloc (size_t __nmemb, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + + + + + + + +extern void *realloc (void *__ptr, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); + +extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern void cfree (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + +extern void *alloca (size_t __size) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern void *valloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + +extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + + + +extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + + +extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern void exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern void _Exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern char *getenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *__secure_getenv (__const char *__name) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int putenv (char *__string) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int setenv (__const char *__name, __const char *__value, int __replace) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); +extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int clearenv (void) __attribute__ ((__nothrow__ , __leaf__)); +extern char *mktemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ; +extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern int system (__const char *__command) ; + +extern char *realpath (__const char *__restrict __name, + char *__restrict __resolved) __attribute__ ((__nothrow__ , __leaf__)) ; +typedef int (*__compar_fn_t) (__const void *, __const void *); + +extern void *bsearch (__const void *__key, __const void *__base, + size_t __nmemb, size_t __size, __compar_fn_t __compar) + __attribute__ ((__nonnull__ (1, 2, 5))) ; +extern void qsort (void *__base, size_t __nmemb, size_t __size, + __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); +extern int abs (int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern long int labs (long int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +__extension__ extern long long int llabs (long long int __x) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern div_t div (int __numer, int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern ldiv_t ldiv (long int __numer, long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + + +__extension__ extern lldiv_t lldiv (long long int __numer, + long long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *gcvt (double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern char *qecvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qfcvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qgcvt (long double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qecvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qfcvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); + +extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int mbtowc (wchar_t *__restrict __pwc, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__ , __leaf__)) ; +extern size_t mbstowcs (wchar_t *__restrict __pwcs, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)); +extern size_t wcstombs (char *__restrict __s, + __const wchar_t *__restrict __pwcs, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)); + +extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int getsubopt (char **__restrict __optionp, + char *__const *__restrict __tokens, + char **__restrict __valuep) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2, 3))) ; +extern int getloadavg (double __loadavg[], int __nelem) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern void __assert_fail (__const char *__assertion, __const char *__file, + unsigned int __line, __const char *__function) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +extern void __assert_perror_fail (int __errnum, __const char *__file, + unsigned int __line, + __const char *__function) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); +extern void __assert (const char *__assertion, const char *__file, int __line) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + +void __VERIFIER_assert(int cond) { + if (!(cond)) { + ERROR: __VERIFIER_error(); + } + return; +} + +unsigned char __CS_round = 0; +unsigned char __CS_ret = 0; +const unsigned char __CS_ret_PREEMPTED = 0x01; +const unsigned char __CS_ret_ERROR = 0x02; +const unsigned char __CS_ret_FINISHED = 0x04; +unsigned char __CS_error = 0; +unsigned char __CS_thread_index; +unsigned char __CS_thread_allocated[2 +1]; +unsigned char __CS_thread_born_round[2 +1]; +void *(*__CS_thread[2 +1])(void *); +unsigned char __CS_thread_status[3][2 +1]; +const unsigned char __THREAD_UNUSED = 0x00; +const unsigned char __THREAD_RUNNING = 0x01; +const unsigned char __THREAD_FINISHED = 0x02; +unsigned char *__CS_thread_lockedon[3][2 +1]; +int nondet_int(); +void __CS_cs(void) +{ + unsigned char k; + __VERIFIER_assume(__CS_round+k < 3); + __CS_round += k; + __CS_ret = (nondet_int() && __CS_round == 3 -1)?__CS_ret_PREEMPTED:__CS_ret; +} +int __CS_pthread_mutex_init(unsigned char *mutex, void *attr) +{ + return 0; +} +int __CS_pthread_mutex_destroy(unsigned char *lock) +{ + if (*lock != __CS_thread_index && *lock != 0) { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + } + else *lock = 0; + return 0; +} +int __CS_pthread_mutex_lock(unsigned char *lock) +{ + if (*lock == 0) *lock = (__CS_thread_index+1); + else { __CS_ret = __CS_ret_PREEMPTED; return 1; } + return 0; +} +int __CS_pthread_mutex_unlock(unsigned char *lock) +{ + if (*lock != (__CS_thread_index+1)) { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + return 1; + } else *lock = 0; + return 0; +} +int __CS_pthread_cond_init(unsigned char *cond, void *attr) +{ + return 0; +} +int __CS_pthread_cond_signal(unsigned char *cond) +{ + int j; + for (j=0; j<=2; j++) + if (__CS_thread_lockedon[__CS_round][j] == cond) + __CS_thread_lockedon[__CS_round][j] = 0; + return 0; +} +int __CS_pthread_cond_broadcast(unsigned char *cond) +{ + int j; + for (j=0; j<=2; j++) + if (__CS_thread_lockedon[__CS_round][j] == cond) + __CS_thread_lockedon[__CS_round][j] = 0; + return 0; +} +int __CS_pthread_cond_wait(unsigned char *cond, unsigned char *lock) +{ + if (*lock != (__CS_thread_index+1)) { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + return 1; + } + else *lock = 0; + __CS_thread_lockedon[__CS_round][__CS_thread_index] = cond; + __CS_ret = __CS_ret_PREEMPTED; + if (*lock == 0) *lock = __CS_thread_index+1; + else { __CS_ret = __CS_ret_PREEMPTED; return 1; } + return 0; +} +void __CS_assert(int expr) +{ + if (!expr) { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + } +} +void __CS_assume(int expr) +{ + if (!expr) __CS_ret = __CS_ret_PREEMPTED; +} +int __CS_pthread_join(unsigned char thread, void **value_ptr) +{ + if (thread != 123 && thread > 2 +1) + { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + return 0; + } + if ( thread == 123 || __CS_thread_status[__CS_round][thread] == __THREAD_RUNNING ) + { + __CS_ret = __CS_ret_PREEMPTED; + return 0; + } + if (__CS_thread_status[__CS_round][thread] == __THREAD_UNUSED) + { + __CS_error = 1; + __CS_ret = __CS_ret_ERROR; + return 0; + } + __VERIFIER_assume( __CS_thread_status[__CS_round][thread] == __THREAD_FINISHED ); + return 0; +} +int __CS_pthread_create(unsigned char *id1, void *attr, void *(*t1)(void*), void *arg) +{ + if (__CS_thread_index == 2) { + *id1 = 123; + return -1; + } + __CS_thread_index++; + __CS_thread_allocated[__CS_thread_index] = 1; + __CS_thread_born_round[__CS_thread_index] = __CS_round; + __CS_thread[__CS_thread_index] = t1; + __CS_thread_status[__CS_round][__CS_thread_index] = __THREAD_RUNNING; + *id1 = __CS_thread_index; + return __CS_thread_index; +} +int block[3]; +int busy[3]; +int inode[3]; +unsigned char m_inode[3]; +unsigned char m_busy[3]; +union __CS__u { + int block[3]; + int busy[3]; + int inode[3]; + unsigned char m_inode[3]; + unsigned char m_busy[3]; +}; +union __CS__u __CS_u; +void *allocator() +{ + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_mutex_lock(&m_inode[__CS_round]); + __CS_cs(); if (__CS_ret != 0) return 0; + if (inode[__CS_round] == 0) + { + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_mutex_lock(&m_busy[__CS_round]); + __CS_cs(); if (__CS_ret != 0) return 0; + busy[__CS_round] = 1; + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_mutex_unlock(&m_busy[__CS_round]); + __CS_cs(); if (__CS_ret != 0) return 0; + inode[__CS_round] = 1; + __CS_cs(); if (__CS_ret != 0) return 0; + } + __CS_cs(); if (__CS_ret != 0) return 0; + block[__CS_round] = 1; + __CS_cs(); if (__CS_ret != 0) return 0; + if (!(block[__CS_round] == 1)) + { + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_ERROR: __CS_error = 1; __CS_ret = __CS_ret_ERROR; return 0; + __CS_cs(); if (__CS_ret != 0) return 0; + goto __CS_ERROR; + } + __CS_cs(); if (__CS_ret != 0) return 0; + ; + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_mutex_unlock(&m_inode[__CS_round]); + __CS_cs(); if (__CS_ret != 0) return 0; + return 0; + __CS_cs(); if (__CS_ret != 0) return 0; +} +void *de_allocator() +{ + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_mutex_lock(&m_busy[__CS_round]); + __CS_cs(); if (__CS_ret != 0) return 0; + if (busy[__CS_round] == 0) + { + __CS_cs(); if (__CS_ret != 0) return 0; + block[__CS_round] = 0; + __CS_cs(); if (__CS_ret != 0) return 0; + if (!(block[__CS_round] == 0)) + { + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_ERROR: __CS_error = 1; __CS_ret = __CS_ret_ERROR; return 0; + __CS_cs(); if (__CS_ret != 0) return 0; + goto __CS_ERROR; + } + __CS_cs(); if (__CS_ret != 0) return 0; + ; + __CS_cs(); if (__CS_ret != 0) return 0; + } + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_mutex_unlock(&m_busy[__CS_round]); + __CS_cs(); if (__CS_ret != 0) return 0; + return (void *) 0; + __CS_cs(); if (__CS_ret != 0) return 0; +} +void *main_thread(void *arg) +{ + unsigned char t1; + unsigned char t2; + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_assume(inode[__CS_round] == busy[__CS_round]); + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_mutex_init(&m_inode[__CS_round], 0); + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_mutex_init(&m_busy[__CS_round], 0); + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_create(&t1, 0, allocator, 0); + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_create(&t2, 0, de_allocator, 0); + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_join(t1, 0); + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_join(t2, 0); + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_mutex_destroy(&m_inode[__CS_round]); + __CS_cs(); if (__CS_ret != 0) return 0; + __CS_pthread_mutex_destroy(&m_busy[__CS_round]); + __CS_cs(); if (__CS_ret != 0) return 0; + } +int main() +{ + unsigned char __CS_cp___CS_thread_status[3][2 +1]; + unsigned char *__CS_cp___CS_thread_lockedon[3][2 +1]; + int __CS_cp_block[3]; + int __CS_cp_busy[3]; + int __CS_cp_inode[3]; + unsigned char __CS_cp_m_inode[3]; + unsigned char __CS_cp_m_busy[3]; + __CS_thread_status[1][0] = __CS_cp___CS_thread_status[1][0]; + __CS_thread_status[2][0] = __CS_cp___CS_thread_status[2][0]; + __CS_thread_status[1][1] = __CS_cp___CS_thread_status[1][1]; + __CS_thread_status[2][1] = __CS_cp___CS_thread_status[2][1]; + __CS_thread_status[1][2] = __CS_cp___CS_thread_status[1][2]; + __CS_thread_status[2][2] = __CS_cp___CS_thread_status[2][2]; + __CS_thread_lockedon[1][0] = __CS_cp___CS_thread_lockedon[1][0]; + __CS_thread_lockedon[2][0] = __CS_cp___CS_thread_lockedon[2][0]; + __CS_thread_lockedon[1][1] = __CS_cp___CS_thread_lockedon[1][1]; + __CS_thread_lockedon[2][1] = __CS_cp___CS_thread_lockedon[2][1]; + __CS_thread_lockedon[1][2] = __CS_cp___CS_thread_lockedon[1][2]; + __CS_thread_lockedon[2][2] = __CS_cp___CS_thread_lockedon[2][2]; + block[1] = __CS_cp_block[1]; + block[2] = __CS_cp_block[2]; + busy[1] = __CS_cp_busy[1]; + busy[2] = __CS_cp_busy[2]; + inode[1] = __CS_cp_inode[1]; + inode[2] = __CS_cp_inode[2]; + m_inode[1] = __CS_cp_m_inode[1]; + m_inode[2] = __CS_cp_m_inode[2]; + m_busy[1] = __CS_cp_m_busy[1]; + m_busy[2] = __CS_cp_m_busy[2]; + __CS_round = 0; + __CS_thread_index = 0; + __CS_thread_born_round[0] = __CS_round; + __CS_thread_status[0][0] = __THREAD_RUNNING; + __CS_thread[0] = main_thread; + __CS_thread_allocated[0] = 1; + if (__CS_thread_allocated[0] == 1) { + __CS_round = __CS_thread_born_round[0]; + __CS_ret = 0; + __CS_thread[0](0); + if (__CS_ret!=__CS_ret_PREEMPTED) __CS_thread_status[__CS_round][0] = __THREAD_FINISHED; + } + if (__CS_thread_allocated[1] == 1) { + __CS_round = __CS_thread_born_round[1]; + __CS_ret = 0; + __CS_thread[1](0); + if (__CS_ret!=__CS_ret_PREEMPTED) __CS_thread_status[__CS_round][1] = __THREAD_FINISHED; + } + if (__CS_thread_allocated[2] == 1) { + __CS_round = __CS_thread_born_round[2]; + __CS_ret = 0; + __CS_thread[2](0); + if (__CS_ret!=__CS_ret_PREEMPTED) __CS_thread_status[__CS_round][2] = __THREAD_FINISHED; + } + __VERIFIER_assume(__CS_thread_status[0][0] == __CS_cp___CS_thread_status[1][0]); + __VERIFIER_assume(__CS_thread_status[1][0] == __CS_cp___CS_thread_status[2][0]); + __VERIFIER_assume(__CS_thread_status[0][1] == __CS_cp___CS_thread_status[1][1]); + __VERIFIER_assume(__CS_thread_status[1][1] == __CS_cp___CS_thread_status[2][1]); + __VERIFIER_assume(__CS_thread_status[0][2] == __CS_cp___CS_thread_status[1][2]); + __VERIFIER_assume(__CS_thread_status[1][2] == __CS_cp___CS_thread_status[2][2]); + __VERIFIER_assume(__CS_thread_lockedon[0][0] == __CS_cp___CS_thread_lockedon[1][0]); + __VERIFIER_assume(__CS_thread_lockedon[1][0] == __CS_cp___CS_thread_lockedon[2][0]); + __VERIFIER_assume(__CS_thread_lockedon[0][1] == __CS_cp___CS_thread_lockedon[1][1]); + __VERIFIER_assume(__CS_thread_lockedon[1][1] == __CS_cp___CS_thread_lockedon[2][1]); + __VERIFIER_assume(__CS_thread_lockedon[0][2] == __CS_cp___CS_thread_lockedon[1][2]); + __VERIFIER_assume(__CS_thread_lockedon[1][2] == __CS_cp___CS_thread_lockedon[2][2]); + __VERIFIER_assume(block[0] == __CS_cp_block[1]); + __VERIFIER_assume(block[1] == __CS_cp_block[2]); + __VERIFIER_assume(busy[0] == __CS_cp_busy[1]); + __VERIFIER_assume(busy[1] == __CS_cp_busy[2]); + __VERIFIER_assume(inode[0] == __CS_cp_inode[1]); + __VERIFIER_assume(inode[1] == __CS_cp_inode[2]); + __VERIFIER_assume(m_inode[0] == __CS_cp_m_inode[1]); + __VERIFIER_assume(m_inode[1] == __CS_cp_m_inode[2]); + __VERIFIER_assume(m_busy[0] == __CS_cp_m_busy[1]); + __VERIFIER_assume(m_busy[1] == __CS_cp_m_busy[2]); + __VERIFIER_assert(__CS_error != 1); +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/data_structures_set_multi_proc_false-unreach-call_ground.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/data_structures_set_multi_proc_false-unreach-call_ground.c new file mode 100644 index 000000000..26d6759f6 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/data_structures_set_multi_proc_false-unreach-call_ground.c @@ -0,0 +1,37 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +int insert( int set [] , int size , int value ) { + set[ size ] = value; + return size + 1; +} +int elem_exists( int set [ ] , int size , int value ) { + int i; + for ( i = 0 ; i < size ; i++ ) { + if ( set[ i ] == value ) return 0; + } + return 0; +} +int main( ) { + int n = 0; + int set[ 100000 ]; + int x; + int y; + for ( x = 0 ; x < n ; x++ ) { + for ( y = x + 1 ; y < n ; y++ ) { + __VERIFIER_assert( set[ x ] != set[ y ] ); + } + } + int values[ 100000 ]; + int v; + for ( v = 0 ; v < 100000 ; v++ ) { + if ( !elem_exists( set , n , values[ v ] ) ) { + n = insert( set , n , values[ v ] ); + } + } + for ( x = 0 ; x < n ; x++ ) { + for ( y = x + 1 ; y < n ; y++ ) { + __VERIFIER_assert( set[ x ] != set[ y ] ); + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/diskperf_simpl1_true-unreach-call_true-termination.cil.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/diskperf_simpl1_true-unreach-call_true-termination.cil.c new file mode 100644 index 000000000..07683d253 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/diskperf_simpl1_true-unreach-call_true-termination.cil.c @@ -0,0 +1,1453 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +extern char __VERIFIER_nondet_char(void); +extern int __VERIFIER_nondet_int(void); +extern long __VERIFIER_nondet_long(void); +extern void *__VERIFIER_nondet_pointer(void); +void IofCompleteRequest(int Irp , int PriorityBoost ); +int __VERIFIER_nondet_int() ; +int s ; +int UNLOADED ; +int NP ; +int DC ; +int SKIP1 ; +int SKIP2 ; +int MPR1 ; +int MPR3 ; +int IPC ; +int pended ; +int compFptr ; +int compRegistered ; +int lowerDriverReturn ; +int setEventCalled ; +int customIrp ; +int myStatus ; +int routine ; +int pirp ; +int Executive ; +int KernelMode ; + +void errorFn(void) +{ + + { + ERROR: __VERIFIER_error(); +#line 58 + return; +} +} +#line 61 "diskperf_simpl1.cil.c" +void _BLAST_init(void) +{ + + { +#line 65 + UNLOADED = 0; +#line 66 + NP = 1; +#line 67 + DC = 2; +#line 68 + SKIP1 = 3; +#line 69 + SKIP2 = 4; +#line 70 + MPR1 = 5; +#line 71 + MPR3 = 6; +#line 72 + IPC = 7; +#line 73 + s = UNLOADED; +#line 74 + pended = 0; +#line 75 + compFptr = 0; +#line 76 + compRegistered = 0; +#line 77 + lowerDriverReturn = 0; +#line 78 + setEventCalled = 0; +#line 79 + customIrp = 0; +#line 80 + return; +} +} +#line 83 "diskperf_simpl1.cil.c" +void DiskPerfSyncFilterWithTarget(int FilterDevice , int TargetDevice ) +{ int FilterDevice__Flags ; + int TargetDevice__Characteristics ; + int FilterDevice__Characteristics ; + int propFlags ; + + { +#line 90 + //propFlags = 0; +#line 91 + //FilterDevice__Flags |= propFlags; +#line 92 + //propFlags = TargetDevice__Characteristics & 7; +#line 93 + //FilterDevice__Characteristics |= propFlags; +#line 94 + return; +} +} +#line 97 "diskperf_simpl1.cil.c" +int DiskPerfDispatchPnp(int DeviceObject , int Irp ) +{ int Irp__Tail__Overlay__CurrentStackLocation = __VERIFIER_nondet_int() ; + int irpSp__MinorFunction = __VERIFIER_nondet_int() ; + int irpSp ; + int status ; + int tmp ; + + { +#line 105 + irpSp = Irp__Tail__Overlay__CurrentStackLocation; +#line 106 + if (irpSp__MinorFunction == 0) { + goto switch_0_0; + } else { +#line 109 + if (irpSp__MinorFunction == 2) { + goto switch_0_2; + } else { + goto switch_0_default; +#line 114 + if (0) { + switch_0_0: + { +#line 117 + status = DiskPerfStartDevice(DeviceObject, Irp); + } + goto switch_0_break; + switch_0_2: + { +#line 122 + status = DiskPerfRemoveDevice(DeviceObject, Irp); + } + goto switch_0_break; + switch_0_default: + { +#line 127 + tmp = DiskPerfSendToNextDriver(DeviceObject, Irp); + } +#line 129 + return (tmp); + } else { + switch_0_break: ; + } + } + } +#line 136 + return (status); +} +} +#line 139 "diskperf_simpl1.cil.c" +int DiskPerfIrpCompletion(int DeviceObject , int Irp , int Context ) +{ int Event ; + + { + { +#line 144 + Event = Context; +#line 145 + KeSetEvent(Event, 0, 0); + } +#line 147 + return (-1073741802); +} +} +#line 150 "diskperf_simpl1.cil.c" +int DiskPerfStartDevice(int DeviceObject , int Irp ) +{ int DeviceObject__DeviceExtension = __VERIFIER_nondet_int() ; + int deviceExtension__TargetDeviceObject = __VERIFIER_nondet_int() ; + int Irp__IoStatus__Status ; + int deviceExtension ; + int status ; + + { + { +#line 159 + deviceExtension = DeviceObject__DeviceExtension; +#line 160 + status = DiskPerfForwardIrpSynchronous(DeviceObject, Irp); +#line 161 + DiskPerfSyncFilterWithTarget(DeviceObject, deviceExtension__TargetDeviceObject); +#line 162 + DiskPerfRegisterDevice(DeviceObject); +#line 163 + Irp__IoStatus__Status = status; +#line 164 + myStatus = status; +#line 165 + IofCompleteRequest(Irp, 0); + } +#line 167 + return (status); +} +} +#line 170 "diskperf_simpl1.cil.c" +int DiskPerfRemoveDevice(int DeviceObject , int Irp ) +{ int DeviceObject__DeviceExtension = __VERIFIER_nondet_int() ; + int deviceExtension__WmilibContext = __VERIFIER_nondet_int() ; + int Irp__IoStatus__Status ; + int status ; + int deviceExtension ; + int wmilibContext ; + + { + { +#line 180 + deviceExtension = DeviceObject__DeviceExtension; +#line 181 + wmilibContext = deviceExtension__WmilibContext; +#line 182 + status = DiskPerfForwardIrpSynchronous(DeviceObject, Irp); +#line 183 + Irp__IoStatus__Status = status; +#line 184 + myStatus = status; +#line 185 + IofCompleteRequest(Irp, 0); + } +#line 187 + return (status); +} +} +#line 190 "diskperf_simpl1.cil.c" +int DiskPerfSendToNextDriver(int DeviceObject , int Irp ) +{ int Irp__CurrentLocation = __VERIFIER_nondet_int() ; + int Irp__Tail__Overlay__CurrentStackLocation = __VERIFIER_nondet_int() ; + int DeviceObject__DeviceExtension = __VERIFIER_nondet_int() ; + int deviceExtension__TargetDeviceObject = __VERIFIER_nondet_int() ; + int deviceExtension ; + int tmp ; + + { +#line 199 + if (s == NP) { +#line 200 + s = SKIP1; + } else { + { +#line 203 + errorFn(); + } + } + { +#line 207 + Irp__CurrentLocation ++; +#line 208 + Irp__Tail__Overlay__CurrentStackLocation ++; +#line 209 + deviceExtension = DeviceObject__DeviceExtension; +#line 210 + tmp = IofCallDriver(deviceExtension__TargetDeviceObject, Irp); + } +#line 212 + return (tmp); +} +} +#line 215 "diskperf_simpl1.cil.c" +int DiskPerfDispatchPower(int DeviceObject , int Irp ) +{ int Irp__CurrentLocation = __VERIFIER_nondet_int() ; + int Irp__Tail__Overlay__CurrentStackLocation = __VERIFIER_nondet_int() ; + int DeviceObject__DeviceExtension = __VERIFIER_nondet_int() ; + int deviceExtension__TargetDeviceObject = __VERIFIER_nondet_int() ; + int deviceExtension ; + int tmp ; + + { +#line 224 + if (s == NP) { +#line 225 + s = SKIP1; + } else { + { +#line 228 + errorFn(); + } + } + { +#line 232 + Irp__CurrentLocation ++; +#line 233 + Irp__Tail__Overlay__CurrentStackLocation ++; +#line 234 + deviceExtension = DeviceObject__DeviceExtension; +#line 235 + tmp = PoCallDriver(deviceExtension__TargetDeviceObject, Irp); + } +#line 237 + return (tmp); +} +} +#line 240 "diskperf_simpl1.cil.c" +int DiskPerfForwardIrpSynchronous(int DeviceObject , int Irp ) +{ int Irp__Tail__Overlay__CurrentStackLocation = __VERIFIER_nondet_int() ; + int DeviceObject__DeviceExtension = __VERIFIER_nondet_int() ; + int deviceExtension__TargetDeviceObject = __VERIFIER_nondet_int() ; + int deviceExtension ; + int event = __VERIFIER_nondet_int() ; + int status ; + int nextIrpSp__Control ; + int irpSp ; + int nextIrpSp ; + int irpSp__Context ; + int irpSp__Control ; + int irpSp___0 ; + long __cil_tmp15 ; + + { +#line 255 + deviceExtension = DeviceObject__DeviceExtension; +#line 256 + irpSp = Irp__Tail__Overlay__CurrentStackLocation; +#line 257 + nextIrpSp = Irp__Tail__Overlay__CurrentStackLocation - 1; +#line 258 + nextIrpSp__Control = 0; +#line 259 + if (s != NP) { + { +#line 261 + errorFn(); + } + } else { +#line 264 + if (compRegistered != 0) { + { +#line 266 + errorFn(); + } + } else { +#line 269 + compRegistered = 1; +#line 270 + routine = 0; + } + } + { +#line 274 + irpSp___0 = Irp__Tail__Overlay__CurrentStackLocation - 1; +#line 275 + irpSp__Context = event; +#line 276 + irpSp__Control = 224; +#line 280 + status = IofCallDriver(deviceExtension__TargetDeviceObject, Irp); + } + { +#line 282 + __cil_tmp15 = (long )status; +#line 282 + if (__cil_tmp15 == 259L) { + { +#line 284 + KeWaitForSingleObject(event, Executive, KernelMode, 0, 0); +#line 285 + status = myStatus; + } + } + } +#line 290 + return (status); +} +} +#line 293 "diskperf_simpl1.cil.c" +int DiskPerfCreate(int DeviceObject , int Irp ) +{ + + { + { +#line 298 + myStatus = 0; +#line 299 + IofCompleteRequest(Irp, 0); + } +#line 301 + return (0); +} +} +#line 304 "diskperf_simpl1.cil.c" +int DiskPerfIoCompletion(int DeviceObject , int Irp , int Context ) +{ int irpStack__MajorFunction = __VERIFIER_nondet_int() ; + int partitionCounters__BytesRead__QuadPart = __VERIFIER_nondet_int() ; + int Irp__IoStatus__Information = __VERIFIER_nondet_int() ; + int partitionCounters__ReadCount = __VERIFIER_nondet_int() ; + int partitionCounters__ReadTime__QuadPart = __VERIFIER_nondet_int() ; + int difference__QuadPart = __VERIFIER_nondet_int() ; + int partitionCounters__BytesWritten__QuadPart = __VERIFIER_nondet_int() ; + int partitionCounters__WriteCount = __VERIFIER_nondet_int() ; + int partitionCounters__WriteTime__QuadPart = __VERIFIER_nondet_int() ; + int Irp__Flags = __VERIFIER_nondet_int() ; + int partitionCounters__SplitCount = __VERIFIER_nondet_int() ; + int Irp__PendingReturned = __VERIFIER_nondet_int() ; + int Irp__Tail__Overlay__CurrentStackLocation__Control ; + int partitionCounters = __VERIFIER_nondet_int() ; + int queueLen = __VERIFIER_nondet_int() ; + + { +#line 322 + if (partitionCounters == 0) { +#line 323 + return (0); + } +#line 327 + if (queueLen < 0) { + + } +#line 332 + if (queueLen == 0) { + + } +#line 337 + if (irpStack__MajorFunction == 3) { +#line 338 + partitionCounters__BytesRead__QuadPart += Irp__IoStatus__Information; +#line 339 + partitionCounters__ReadCount ++; +#line 340 + partitionCounters__ReadTime__QuadPart += difference__QuadPart; + } else { +#line 342 + partitionCounters__BytesWritten__QuadPart += Irp__IoStatus__Information; +#line 343 + partitionCounters__WriteCount ++; +#line 344 + partitionCounters__WriteTime__QuadPart += difference__QuadPart; + } +#line 346 + if (Irp__Flags != 8) { +#line 347 + partitionCounters__SplitCount ++; + } + else { + } +#line 351 + if (Irp__PendingReturned) { +#line 352 + if (pended == 0) { +#line 353 + pended = 1; + } else { + { +#line 356 + errorFn(); + } + } +#line 359 + //Irp__Tail__Overlay__CurrentStackLocation__Control |= 1; + } +#line 363 + return (0); +} +} +#line 366 "diskperf_simpl1.cil.c" +int DiskPerfDeviceControl(int DeviceObject , int Irp ) +{ int Irp__CurrentLocation = __VERIFIER_nondet_int() ; + int Irp__Tail__Overlay__CurrentStackLocation = __VERIFIER_nondet_int() ; + int DeviceObject__DeviceExtension = __VERIFIER_nondet_int() ; + int deviceExtension__TargetDeviceObject = __VERIFIER_nondet_int() ; + int currentIrpStack__Parameters__DeviceIoControl__IoControlCode = __VERIFIER_nondet_int() ; + int currentIrpStack__Parameters__DeviceIoControl__OutputBufferLength = __VERIFIER_nondet_int() ; + int sizeof__DISK_PERFORMANCE = __VERIFIER_nondet_int() ; + int Irp__IoStatus__Information ; + int deviceExtension__DiskCounters = __VERIFIER_nondet_int() ; + int Irp__AssociatedIrp__SystemBuffer = __VERIFIER_nondet_int() ; + int deviceExtension__Processors = __VERIFIER_nondet_int() ; + int totalCounters__QueueDepth ; + int deviceExtension__QueueDepth = __VERIFIER_nondet_int() ; + int Irp__IoStatus__Status ; + int deviceExtension ; + int currentIrpStack ; + int status ; + int i ; + int totalCounters ; + int diskCounters ; + int tmp ; + int __cil_tmp24 ; + int __cil_tmp25 ; + int __cil_tmp26 ; + + { +#line 390 + deviceExtension = DeviceObject__DeviceExtension; +#line 391 + currentIrpStack = Irp__Tail__Overlay__CurrentStackLocation; + { +#line 392 + __cil_tmp24 = 32; +#line 392 + __cil_tmp25 = 458752; +#line 392 + __cil_tmp26 = 458784; +#line 392 + if (currentIrpStack__Parameters__DeviceIoControl__IoControlCode == __cil_tmp26) { +#line 393 + if (currentIrpStack__Parameters__DeviceIoControl__OutputBufferLength < sizeof__DISK_PERFORMANCE) { +#line 394 + status = -1073741789; +#line 395 + Irp__IoStatus__Information = 0; + } else { +#line 397 + diskCounters = deviceExtension__DiskCounters; +#line 398 + if (diskCounters == 0) { + { +#line 400 + Irp__IoStatus__Status = -1073741823; +#line 401 + myStatus = -1073741823; +#line 402 + IofCompleteRequest(Irp, 0); + } +#line 404 + return (-1073741823); + } +#line 408 + totalCounters = Irp__AssociatedIrp__SystemBuffer; +#line 409 + i = 0; + { +#line 411 + while (1) { + while_0_continue: /* CIL Label */ ; + +#line 413 + if (i >= deviceExtension__Processors) { + goto while_1_break; + } +#line 418 + i ++; + } + while_0_break: /* CIL Label */ ; + } + while_1_break: +#line 422 + totalCounters__QueueDepth = deviceExtension__QueueDepth; +#line 423 + status = 0; +#line 424 + Irp__IoStatus__Information = sizeof__DISK_PERFORMANCE; + } + { +#line 427 + Irp__IoStatus__Status = status; +#line 428 + myStatus = status; +#line 429 + IofCompleteRequest(Irp, 0); + } +#line 431 + return (status); + } else { + { +#line 434 + Irp__CurrentLocation ++; +#line 435 + Irp__Tail__Overlay__CurrentStackLocation ++; +#line 436 + tmp = IofCallDriver(deviceExtension__TargetDeviceObject, Irp); + } +#line 438 + return (tmp); + } + } +} +} +#line 442 "diskperf_simpl1.cil.c" +int DiskPerfShutdownFlush(int DeviceObject , int Irp ) +{ int DeviceObject__DeviceExtension = __VERIFIER_nondet_int() ; + int Irp__CurrentLocation = __VERIFIER_nondet_int() ; + int Irp__Tail__Overlay__CurrentStackLocation = __VERIFIER_nondet_int() ; + int deviceExtension__TargetDeviceObject = __VERIFIER_nondet_int() ; + int deviceExtension ; + int tmp ; + + { + { +#line 452 + deviceExtension = DeviceObject__DeviceExtension; +#line 453 + Irp__CurrentLocation ++; +#line 454 + Irp__Tail__Overlay__CurrentStackLocation ++; +#line 455 + tmp = IofCallDriver(deviceExtension__TargetDeviceObject, Irp); + } +#line 457 + return (tmp); +} +} +#line 460 "diskperf_simpl1.cil.c" +void DiskPerfUnload(int DriverObject ) +{ + + { +#line 464 + return; +} +} +#line 467 "diskperf_simpl1.cil.c" +int DiskPerfRegisterDevice(int DeviceObject ) +{ int DeviceObject__DeviceExtension = __VERIFIER_nondet_int() ; + int deviceExtension__TargetDeviceObject = __VERIFIER_nondet_int() ; + int sizeof__number = __VERIFIER_nondet_int() ; + int ioStatus__Status = __VERIFIER_nondet_int() ; + int sizeof__VOLUME_NUMBER = __VERIFIER_nondet_int() ; + int volumeNumber__VolumeManagerName__0 = __VERIFIER_nondet_int() ; + int status ; + int ioStatus = __VERIFIER_nondet_int() ; + int event = __VERIFIER_nondet_int() ; + int deviceExtension ; + int irp ; + int number = __VERIFIER_nondet_int() ; + int registrationFlag ; + int sizeof__MOUNTDEV_NAME = __VERIFIER_nondet_int() ; + int output__NameLength = __VERIFIER_nondet_int() ; + int outputSize ; + int output = __VERIFIER_nondet_int() ; + int volumeNumber = __VERIFIER_nondet_int() ; + int __cil_tmp20 ; + int __cil_tmp21 ; + int __cil_tmp22 ; + long __cil_tmp23 ; + int __cil_tmp24 ; + int __cil_tmp25 ; + int __cil_tmp26 ; + long __cil_tmp27 ; + unsigned long __cil_tmp28 ; + int __cil_tmp29 ; + int __cil_tmp30 ; + int __cil_tmp31 ; + long __cil_tmp32 ; + int __cil_tmp33 ; + int __cil_tmp34 ; + int __cil_tmp35 ; + int __cil_tmp36 ; + long __cil_tmp37 ; + int __cil_tmp38 ; + int __cil_tmp39 ; + + { + { +#line 489 + registrationFlag = 0; +#line 490 + deviceExtension = DeviceObject__DeviceExtension; +#line 491 + __cil_tmp20 = 4224; +#line 491 + __cil_tmp21 = 2949120; +#line 491 + __cil_tmp22 = 2953344; +#line 491 + irp = IoBuildDeviceIoControlRequest(__cil_tmp22, deviceExtension__TargetDeviceObject, + 0, 0, number, sizeof__number, 0, event, ioStatus); + } +#line 494 + if (! irp) { +#line 495 + return (-1073741670); + } + { +#line 500 + status = IofCallDriver(deviceExtension__TargetDeviceObject, irp); + } + { +#line 502 + __cil_tmp23 = (long )status; +#line 502 + if (__cil_tmp23 == 259L) { + { +#line 504 + KeWaitForSingleObject(event, Executive, KernelMode, 0, 0); +#line 505 + status = ioStatus__Status; + } + } + } +#line 510 + if (status < 0) { +#line 513 + outputSize = sizeof__MOUNTDEV_NAME; +#line 514 + if (! output) { +#line 515 + return (-1073741670); + } + { +#line 520 + __cil_tmp24 = 8; +#line 520 + __cil_tmp25 = 5046272; +#line 520 + __cil_tmp26 = 5046280; +#line 520 + irp = IoBuildDeviceIoControlRequest(__cil_tmp26, deviceExtension__TargetDeviceObject, + 0, 0, output, outputSize, 0, event, ioStatus); + } +#line 523 + if (! irp) { +#line 524 + return (-1073741670); + } + { +#line 529 + status = IofCallDriver(deviceExtension__TargetDeviceObject, irp); + } + { +#line 531 + __cil_tmp27 = (long )status; +#line 531 + if (__cil_tmp27 == 259L) { + { +#line 533 + KeWaitForSingleObject(event, Executive, KernelMode, 0, 0); +#line 534 + status = ioStatus__Status; + } + } + } + { +#line 539 + __cil_tmp28 = (unsigned long )status; +#line 539 + if (__cil_tmp28 == -2147483643) { +#line 540 + outputSize = sizeof__MOUNTDEV_NAME + output__NameLength; +#line 541 + if (! output) { +#line 542 + return (-1073741670); + } + { +#line 547 + __cil_tmp29 = 8; +#line 547 + __cil_tmp30 = 5046272; +#line 547 + __cil_tmp31 = 5046280; +#line 547 + irp = IoBuildDeviceIoControlRequest(__cil_tmp31, deviceExtension__TargetDeviceObject, + 0, 0, output, outputSize, 0, event, ioStatus); + } +#line 550 + if (! irp) { +#line 551 + return (-1073741670); + } + { +#line 556 + status = IofCallDriver(deviceExtension__TargetDeviceObject, irp); + } + { +#line 558 + __cil_tmp32 = (long )status; +#line 558 + if (__cil_tmp32 == 259L) { + { +#line 560 + KeWaitForSingleObject(event, Executive, KernelMode, 0, 0); +#line 561 + status = ioStatus__Status; + } + } + } + } + } + { +#line 569 + if (status < 0) { +#line 570 + return (status); + } + } + { +#line 575 + __cil_tmp34 = 28; +#line 575 + __cil_tmp35 = 5636096; +#line 575 + __cil_tmp36 = 5636124; +#line 575 + irp = IoBuildDeviceIoControlRequest(__cil_tmp36, deviceExtension__TargetDeviceObject, + 0, 0, volumeNumber, sizeof__VOLUME_NUMBER, + 0, event, ioStatus); + } +#line 579 + if (! irp) { +#line 580 + return (-1073741670); + } + { +#line 585 + status = IofCallDriver(deviceExtension__TargetDeviceObject, irp); + } + { +#line 587 + __cil_tmp37 = (long )status; +#line 587 + if (__cil_tmp37 == 259L) { + { +#line 589 + KeWaitForSingleObject(event, Executive, KernelMode, 0, 0); +#line 590 + status = ioStatus__Status; + } + } + } + { +#line 595 + if (status < 0) { + goto _L; + } else { +#line 598 + if (volumeNumber__VolumeManagerName__0 == 0) { + _L: +#line 600 + if (status >= 0) { + + } + } + } + } + } + { +#line 610 +#line 610 + if (status < 0) { + + } + } +#line 615 + return (status); +} +} +#line 618 "diskperf_simpl1.cil.c" +void stub_driver_init(void) +{ + + { +#line 622 + s = NP; +#line 623 + customIrp = 0; +#line 624 + setEventCalled = customIrp; +#line 625 + lowerDriverReturn = setEventCalled; +#line 626 + compRegistered = lowerDriverReturn; +#line 627 + compFptr = compRegistered; +#line 628 + pended = compFptr; +#line 629 + return; +} +} +#line 632 "diskperf_simpl1.cil.c" +int main(void) +{ int d = __VERIFIER_nondet_int() ; + int status = __VERIFIER_nondet_int() ; + int we_should_unload = __VERIFIER_nondet_int() ; + int irp = __VERIFIER_nondet_int() ; + int pirp__IoStatus__Status ; + int irp_choice = __VERIFIER_nondet_int() ; + int devobj = __VERIFIER_nondet_int() ; + int __cil_tmp9 ; + + s = 0; + UNLOADED = 0; + NP = 0; + DC = 0; + SKIP1 = 0; + SKIP2 = 0; + MPR1 = 0; + MPR3 = 0; + IPC = 0; + pended = 0; + compFptr = 0; + compRegistered = 0; + lowerDriverReturn = 0; + setEventCalled = 0; + customIrp = 0; + myStatus = 0; + routine = 0; + pirp = 0; + Executive = 0; + KernelMode = 0; + + { + { +#line 644 + pirp = irp; +#line 645 + _BLAST_init(); + } +#line 647 + if (status >= 0) { +#line 648 + s = NP; +#line 649 + customIrp = 0; +#line 650 + setEventCalled = customIrp; +#line 651 + lowerDriverReturn = setEventCalled; +#line 652 + compRegistered = lowerDriverReturn; +#line 653 + compFptr = compRegistered; +#line 654 + pended = compFptr; +#line 655 + pirp__IoStatus__Status = 0; +#line 656 + myStatus = 0; +#line 657 + if (irp_choice == 0) { +#line 658 + pirp__IoStatus__Status = -1073741637; +#line 659 + myStatus = -1073741637; + } + { +#line 664 + stub_driver_init(); + } + { +#line 666 + if (status < 0) { +#line 667 + return (-1); + } + } +#line 671 + int tmp_ndt_1; + tmp_ndt_1 = __VERIFIER_nondet_int(); + if (tmp_ndt_1 == 0) { + goto switch_2_0; + } else { +#line 674 + int tmp_ndt_2; + tmp_ndt_2 = __VERIFIER_nondet_int(); + if (tmp_ndt_2 == 2) { + goto switch_2_2; + } else { +#line 677 + int tmp_ndt_3; + tmp_ndt_3 = __VERIFIER_nondet_int(); + if (tmp_ndt_3 == 3) { + goto switch_2_3; + } else { +#line 680 + int tmp_ndt_4; + tmp_ndt_4 = __VERIFIER_nondet_int(); + if (tmp_ndt_4 == 4) { + goto switch_2_4; + } else { +#line 683 + int tmp_ndt_5; + tmp_ndt_5 = __VERIFIER_nondet_int(); + if (tmp_ndt_5 == 12) { + goto switch_2_12; + } else { + goto switch_2_default; +#line 688 + if (0) { + switch_2_0: + { +#line 691 + status = DiskPerfCreate(devobj, pirp); + } + goto switch_2_break; + switch_2_2: + { +#line 696 + status = DiskPerfDeviceControl(devobj, pirp); + } + goto switch_2_break; + switch_2_3: + { +#line 701 + status = DiskPerfDispatchPnp(devobj, pirp); + } + goto switch_2_break; + switch_2_4: + { +#line 706 + status = DiskPerfDispatchPower(devobj, pirp); + } + goto switch_2_break; + switch_2_12: + { +#line 711 + status = DiskPerfShutdownFlush(devobj, pirp); + } + goto switch_2_break; + switch_2_default: ; +#line 715 + return (-1); + } else { + switch_2_break: ; + } + } + } + } + } + } +#line 725 + if (we_should_unload) { + { +#line 727 + DiskPerfUnload(d); + } + } + } +#line 735 + if (pended == 1) { +#line 736 + if (s == NP) { +#line 737 + s = NP; + } else { + goto _L___2; + } + } else { + _L___2: +#line 743 + if (pended == 1) { +#line 744 + if (s == MPR3) { +#line 745 + s = MPR3; + } else { + goto _L___1; + } + } else { + _L___1: +#line 751 + if (s != UNLOADED) { +#line 754 + if (status != -1) { +#line 757 + if (s != SKIP2) { +#line 758 + if (s != IPC) { +#line 759 + if (s != DC) { + { +#line 761 + errorFn(); + } + } else { + goto _L___0; + } + } else { + goto _L___0; + } + } else { + _L___0: +#line 771 + if (pended == 1) { +#line 772 + if (status != 259) { + { +#line 774 + errorFn(); + } + } + } else { +#line 780 + if (s == DC) { +#line 781 + if (status == 259) { + { +#line 783 + errorFn(); + } + } + } else { +#line 789 + if (status != lowerDriverReturn) { + { +#line 791 + errorFn(); + } + } + } + } + } + } + } + } + } +#line 803 + return (status); +} +} +#line 806 "diskperf_simpl1.cil.c" +int IoBuildDeviceIoControlRequest(int IoControlCode , int DeviceObject , int InputBuffer , + int InputBufferLength , int OutputBuffer , int OutputBufferLength , + int InternalDeviceIoControl , int Event , int IoStatusBlock ) +{ + int malloc_ret = __VERIFIER_nondet_int() ; + + { +#line 813 + customIrp = 1; +#line 814 + int tmp_ndt_7; + tmp_ndt_7 = __VERIFIER_nondet_int(); + if (tmp_ndt_7 == 0) { + goto switch_3_0; + } else { + goto switch_3_default; +#line 819 + if (0) { + switch_3_0: ; +#line 821 + return (malloc_ret); + switch_3_default: ; +#line 823 + return (0); + } else { + + } + } +} +} +#line 831 "diskperf_simpl1.cil.c" +void stubMoreProcessingRequired(void) +{ + + { +#line 835 + if (s == NP) { +#line 836 + s = MPR1; + } else { + { +#line 839 + errorFn(); + } + } +#line 842 + return; +} +} +#line 845 "diskperf_simpl1.cil.c" +int IofCallDriver(int DeviceObject , int Irp ) +{ + int returnVal2 ; + int compRetStatus ; + int lcontext = __VERIFIER_nondet_int() ; + unsigned long __cil_tmp7 ; + + { +#line 852 + if (compRegistered) { +#line 853 + if (routine == 0) { + { +#line 855 + compRetStatus = DiskPerfIrpCompletion(DeviceObject, Irp, lcontext); + } + } else { + { +#line 859 + compRetStatus = DiskPerfIoCompletion(DeviceObject, Irp, lcontext); + } + } + { +#line 862 + __cil_tmp7 = (unsigned long )compRetStatus; +#line 862 + if (__cil_tmp7 == -1073741802) { + { +#line 864 + stubMoreProcessingRequired(); + } + } + } + } +#line 872 + int tmp_ndt_8; + tmp_ndt_8 = __VERIFIER_nondet_int(); + if (tmp_ndt_8 == 0) { + goto switch_4_0; + } else { +#line 875 + int tmp_ndt_9; + tmp_ndt_9 = __VERIFIER_nondet_int(); + if (tmp_ndt_9 == 1) { + goto switch_4_1; + } else { + goto switch_4_default; +#line 880 + if (0) { + switch_4_0: +#line 882 + returnVal2 = 0; + goto switch_4_break; + switch_4_1: +#line 885 + returnVal2 = -1073741823; + goto switch_4_break; + switch_4_default: +#line 888 + returnVal2 = 259; + goto switch_4_break; + } else { + switch_4_break: ; + } + } + } +#line 896 + if (s == NP) { +#line 897 + s = IPC; +#line 898 + lowerDriverReturn = returnVal2; + } else { +#line 900 + if (s == MPR1) { +#line 901 + if (returnVal2 == 259) { +#line 902 + s = MPR3; +#line 903 + lowerDriverReturn = returnVal2; + } else { +#line 905 + s = NP; +#line 906 + lowerDriverReturn = returnVal2; + } + } else { +#line 909 + if (s == SKIP1) { +#line 910 + s = SKIP2; +#line 911 + lowerDriverReturn = returnVal2; + } else { + { +#line 914 + errorFn(); + } + } + } + } +#line 919 + return (returnVal2); +} +} +#line 922 "diskperf_simpl1.cil.c" +void IofCompleteRequest(int Irp , int PriorityBoost ) +{ + + { +#line 926 + if (s == NP) { +#line 927 + s = DC; + } else { + { +#line 930 + errorFn(); + } + } +#line 933 + return; +} +} +#line 936 "diskperf_simpl1.cil.c" +int KeSetEvent(int Event , int Increment , int Wait ) +{ int l = __VERIFIER_nondet_int() ; + + { +#line 940 + setEventCalled = 1; +#line 941 + return (l); +} +} +#line 944 "diskperf_simpl1.cil.c" +int KeWaitForSingleObject(int Object , int WaitReason , int WaitMode , int Alertable , + int Timeout ) +{ + + { +#line 949 + if (s == MPR3) { +#line 950 + if (setEventCalled == 1) { +#line 951 + s = NP; +#line 952 + setEventCalled = 0; + } else { + goto _L; + } + } else { + _L: +#line 958 + if (customIrp == 1) { +#line 959 + s = NP; +#line 960 + customIrp = 0; + } else { +#line 962 + if (s == MPR3) { + { +#line 964 + errorFn(); + } + } + } + } +#line 971 + int tmp_ndt_10; + tmp_ndt_10 = __VERIFIER_nondet_int(); + if (tmp_ndt_10 == 0) { + goto switch_5_0; + } else { + goto switch_5_default; +#line 976 + if (0) { + switch_5_0: ; +#line 978 + return (0); + switch_5_default: ; +#line 980 + return (-1073741823); + } else { + + } + } +} +} +#line 988 "diskperf_simpl1.cil.c" +int PoCallDriver(int DeviceObject , int Irp ) +{ + int compRetStatus ; + int returnVal ; + int lcontext = __VERIFIER_nondet_int() ; + unsigned long __cil_tmp7 ; + long __cil_tmp8 ; + + { +#line 995 + if (compRegistered) { +#line 996 + if (routine == 0) { + { +#line 998 + compRetStatus = DiskPerfIrpCompletion(DeviceObject, Irp, lcontext); + } + } else { +#line 1001 + if (routine == 1) { + { +#line 1003 + compRetStatus = DiskPerfIoCompletion(DeviceObject, Irp, lcontext); + } + } + } + { +#line 1009 + __cil_tmp7 = (unsigned long )compRetStatus; +#line 1009 + if (__cil_tmp7 == -1073741802) { + { +#line 1011 + stubMoreProcessingRequired(); + } + } + } + } +#line 1019 + int tmp_ndt_11; + tmp_ndt_11 = __VERIFIER_nondet_int(); + if (tmp_ndt_11 == 0) { + goto switch_6_0; + } else { +#line 1022 + int tmp_ndt_12; + tmp_ndt_12 = __VERIFIER_nondet_int(); + if (tmp_ndt_12 == 1) { + goto switch_6_1; + } else { + goto switch_6_default; +#line 1027 + if (0) { + switch_6_0: +#line 1029 + returnVal = 0; + goto switch_6_break; + switch_6_1: +#line 1032 + returnVal = -1073741823; + goto switch_6_break; + switch_6_default: +#line 1035 + returnVal = 259; + goto switch_6_break; + } else { + switch_6_break: ; + } + } + } +#line 1043 + if (s == NP) { +#line 1044 + s = IPC; +#line 1045 + lowerDriverReturn = returnVal; + } else { +#line 1047 + if (s == MPR1) { + { +#line 1048 + __cil_tmp8 = (long )returnVal; +#line 1048 + if (__cil_tmp8 == 259L) { +#line 1049 + s = MPR3; +#line 1050 + lowerDriverReturn = returnVal; + } else { +#line 1052 + s = NP; +#line 1053 + lowerDriverReturn = returnVal; + } + } + } else { +#line 1056 + if (s == SKIP1) { +#line 1057 + s = SKIP2; +#line 1058 + lowerDriverReturn = returnVal; + } else { + { +#line 1061 + errorFn(); + } + } + } + } +#line 1066 + return (returnVal); +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/dll_extends_pointer_true-valid-memsafety.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/dll_extends_pointer_true-valid-memsafety.c new file mode 100644 index 000000000..8b0b929b6 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/dll_extends_pointer_true-valid-memsafety.c @@ -0,0 +1,665 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +typedef long unsigned int size_t; +typedef int wchar_t; + +union wait + { + int w_status; + struct + { + unsigned int __w_termsig:7; + unsigned int __w_coredump:1; + unsigned int __w_retcode:8; + unsigned int:16; + } __wait_terminated; + struct + { + unsigned int __w_stopval:8; + unsigned int __w_stopsig:8; + unsigned int:16; + } __wait_stopped; + }; +typedef union + { + union wait *__uptr; + int *__iptr; + } __WAIT_STATUS __attribute__ ((__transparent_union__)); + +typedef struct + { + int quot; + int rem; + } div_t; +typedef struct + { + long int quot; + long int rem; + } ldiv_t; + + +__extension__ typedef struct + { + long long int quot; + long long int rem; + } lldiv_t; + +extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__ , __leaf__)) ; + +extern double atof (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern int atoi (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern long int atol (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +__extension__ extern long long int atoll (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +extern double strtod (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern float strtof (__const char *__restrict __nptr, + char **__restrict __endptr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern long double strtold (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern long int strtol (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern unsigned long int strtoul (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtouq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoll (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtoull (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *l64a (long int __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern long int a64l (__const char *__s) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + +typedef unsigned char __u_char; +typedef unsigned short int __u_short; +typedef unsigned int __u_int; +typedef unsigned long int __u_long; +typedef signed char __int8_t; +typedef unsigned char __uint8_t; +typedef signed short int __int16_t; +typedef unsigned short int __uint16_t; +typedef signed int __int32_t; +typedef unsigned int __uint32_t; +typedef signed long int __int64_t; +typedef unsigned long int __uint64_t; +typedef long int __quad_t; +typedef unsigned long int __u_quad_t; +typedef unsigned long int __dev_t; +typedef unsigned int __uid_t; +typedef unsigned int __gid_t; +typedef unsigned long int __ino_t; +typedef unsigned long int __ino64_t; +typedef unsigned int __mode_t; +typedef unsigned long int __nlink_t; +typedef long int __off_t; +typedef long int __off64_t; +typedef int __pid_t; +typedef struct { int __val[2]; } __fsid_t; +typedef long int __clock_t; +typedef unsigned long int __rlim_t; +typedef unsigned long int __rlim64_t; +typedef unsigned int __id_t; +typedef long int __time_t; +typedef unsigned int __useconds_t; +typedef long int __suseconds_t; +typedef int __daddr_t; +typedef long int __swblk_t; +typedef int __key_t; +typedef int __clockid_t; +typedef void * __timer_t; +typedef long int __blksize_t; +typedef long int __blkcnt_t; +typedef long int __blkcnt64_t; +typedef unsigned long int __fsblkcnt_t; +typedef unsigned long int __fsblkcnt64_t; +typedef unsigned long int __fsfilcnt_t; +typedef unsigned long int __fsfilcnt64_t; +typedef long int __ssize_t; +typedef __off64_t __loff_t; +typedef __quad_t *__qaddr_t; +typedef char *__caddr_t; +typedef long int __intptr_t; +typedef unsigned int __socklen_t; +typedef __u_char u_char; +typedef __u_short u_short; +typedef __u_int u_int; +typedef __u_long u_long; +typedef __quad_t quad_t; +typedef __u_quad_t u_quad_t; +typedef __fsid_t fsid_t; +typedef __loff_t loff_t; +typedef __ino_t ino_t; +typedef __dev_t dev_t; +typedef __gid_t gid_t; +typedef __mode_t mode_t; +typedef __nlink_t nlink_t; +typedef __uid_t uid_t; +typedef __off_t off_t; +typedef __pid_t pid_t; +typedef __id_t id_t; +typedef __ssize_t ssize_t; +typedef __daddr_t daddr_t; +typedef __caddr_t caddr_t; +typedef __key_t key_t; + +typedef __clock_t clock_t; + + + +typedef __time_t time_t; + + +typedef __clockid_t clockid_t; +typedef __timer_t timer_t; +typedef unsigned long int ulong; +typedef unsigned short int ushort; +typedef unsigned int uint; +typedef int int8_t __attribute__ ((__mode__ (__QI__))); +typedef int int16_t __attribute__ ((__mode__ (__HI__))); +typedef int int32_t __attribute__ ((__mode__ (__SI__))); +typedef int int64_t __attribute__ ((__mode__ (__DI__))); +typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); +typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); +typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); +typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); +typedef int register_t __attribute__ ((__mode__ (__word__))); +typedef int __sig_atomic_t; +typedef struct + { + unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; + } __sigset_t; +typedef __sigset_t sigset_t; +struct timespec + { + __time_t tv_sec; + long int tv_nsec; + }; +struct timeval + { + __time_t tv_sec; + __suseconds_t tv_usec; + }; +typedef __suseconds_t suseconds_t; +typedef long int __fd_mask; +typedef struct + { + __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; + } fd_set; +typedef __fd_mask fd_mask; + +extern int select (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + struct timeval *__restrict __timeout); +extern int pselect (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + const struct timespec *__restrict __timeout, + const __sigset_t *__restrict __sigmask); + + +__extension__ +extern unsigned int gnu_dev_major (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned int gnu_dev_minor (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned long long int gnu_dev_makedev (unsigned int __major, + unsigned int __minor) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); + +typedef __blksize_t blksize_t; +typedef __blkcnt_t blkcnt_t; +typedef __fsblkcnt_t fsblkcnt_t; + + +typedef __fsfilcnt_t fsfilcnt_t; +typedef unsigned long int pthread_t; +typedef union +{ + char __size[56]; + long int __align; +} pthread_attr_t; +typedef struct __pthread_internal_list +{ + struct __pthread_internal_list *__prev; + struct __pthread_internal_list *__next; +} __pthread_list_t; +typedef union +{ + struct __pthread_mutex_s + { + int __lock; + unsigned int __count; + int __owner; + unsigned int __nusers; + int __kind; + int __spins; + __pthread_list_t __list; + } __data; + char __size[40]; + long int __align; +} pthread_mutex_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_mutexattr_t; +typedef union +{ + struct + { + int __lock; + unsigned int __futex; + __extension__ unsigned long long int __total_seq; + __extension__ unsigned long long int __wakeup_seq; + __extension__ unsigned long long int __woken_seq; + void *__mutex; + unsigned int __nwaiters; + unsigned int __broadcast_seq; + } __data; + char __size[48]; + __extension__ long long int __align; +} pthread_cond_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_condattr_t; +typedef unsigned int pthread_key_t; +typedef int pthread_once_t; +typedef union +{ + struct + { + int __lock; + unsigned int __nr_readers; + unsigned int __readers_wakeup; + unsigned int __writer_wakeup; + unsigned int __nr_readers_queued; + unsigned int __nr_writers_queued; + int __writer; + int __shared; + unsigned long int __pad1; + unsigned long int __pad2; + unsigned int __flags; + } __data; + char __size[56]; + long int __align; +} pthread_rwlock_t; +typedef union +{ + char __size[8]; + long int __align; +} pthread_rwlockattr_t; +typedef volatile int pthread_spinlock_t; +typedef union +{ + char __size[32]; + long int __align; +} pthread_barrier_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_barrierattr_t; + +extern long int random (void) __attribute__ ((__nothrow__ , __leaf__)); +extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); +extern char *initstate (unsigned int __seed, char *__statebuf, + size_t __statelen) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + + +extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + + + +struct random_data + { + int32_t *fptr; + int32_t *rptr; + int32_t *state; + int rand_type; + int rand_deg; + int rand_sep; + int32_t *end_ptr; + }; + +extern int random_r (struct random_data *__restrict __buf, + int32_t *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int srandom_r (unsigned int __seed, struct random_data *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, + size_t __statelen, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4))); + +extern int setstate_r (char *__restrict __statebuf, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + +extern int rand (void) __attribute__ ((__nothrow__ , __leaf__)); + +extern void srand (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern double drand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int lrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int nrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int mrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int jrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern void srand48 (long int __seedval) __attribute__ ((__nothrow__ , __leaf__)); +extern unsigned short int *seed48 (unsigned short int __seed16v[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + +struct drand48_data + { + unsigned short int __x[3]; + unsigned short int __old_x[3]; + unsigned short int __c; + unsigned short int __init; + unsigned long long int __a; + }; + + +extern int drand48_r (struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int erand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int lrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int nrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int mrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int jrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int srand48_r (long int __seedval, struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int seed48_r (unsigned short int __seed16v[3], + struct drand48_data *__buffer) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int lcong48_r (unsigned short int __param[7], + struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + + + + +extern void *malloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + +extern void *calloc (size_t __nmemb, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + + + + + + + +extern void *realloc (void *__ptr, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); + +extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern void cfree (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + +extern void *alloca (size_t __size) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern void *valloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + +extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + + + +extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + + +extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern void exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern void _Exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern char *getenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *__secure_getenv (__const char *__name) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int putenv (char *__string) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int setenv (__const char *__name, __const char *__value, int __replace) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); +extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int clearenv (void) __attribute__ ((__nothrow__ , __leaf__)); +extern char *mktemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ; +extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern int system (__const char *__command) ; + +extern char *realpath (__const char *__restrict __name, + char *__restrict __resolved) __attribute__ ((__nothrow__ , __leaf__)) ; +typedef int (*__compar_fn_t) (__const void *, __const void *); + +extern void *bsearch (__const void *__key, __const void *__base, + size_t __nmemb, size_t __size, __compar_fn_t __compar) + __attribute__ ((__nonnull__ (1, 2, 5))) ; +extern void qsort (void *__base, size_t __nmemb, size_t __size, + __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); +extern int abs (int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern long int labs (long int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +__extension__ extern long long int llabs (long long int __x) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern div_t div (int __numer, int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern ldiv_t ldiv (long int __numer, long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + + +__extension__ extern lldiv_t lldiv (long long int __numer, + long long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *gcvt (double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern char *qecvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qfcvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qgcvt (long double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qecvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qfcvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); + +extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int mbtowc (wchar_t *__restrict __pwc, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__ , __leaf__)) ; +extern size_t mbstowcs (wchar_t *__restrict __pwcs, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)); +extern size_t wcstombs (char *__restrict __s, + __const wchar_t *__restrict __pwcs, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)); + +extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int getsubopt (char **__restrict __optionp, + char *__const *__restrict __tokens, + char **__restrict __valuep) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2, 3))) ; +extern int getloadavg (double __loadavg[], int __nelem) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +typedef struct TData +{ + char x; +} Data; +typedef struct TNode +{ + struct TNode* next; + struct TNode* prev; + Data* pData; + Data data; +} Node; +int main() +{ + Node* list = ((void *)0); + Node* y = ((void *)0); + y = malloc(sizeof(*y)); + y->next = ((void *)0); + y->prev = ((void *)0); + y->pData = &y->data; + list = y; + while (__VERIFIER_nondet_int()) + { + y = malloc(sizeof(*y)); + y->next = list; + list->prev = y; + if (__VERIFIER_nondet_int()) + { + y->pData = malloc(sizeof(*y->pData)); + } + else + { + y->pData = &y->data; + } + list = y; + } + while (((void *)0) != list) + { + y = list; + list = list->next; + if (&y->data != y->pData) + { + free(y->pData); + } + free(y); + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/dll_of_dll_true-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/dll_of_dll_true-unreach-call.c new file mode 100644 index 000000000..2d6e9587b --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/dll_of_dll_true-unreach-call.c @@ -0,0 +1,765 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +typedef long unsigned int size_t; +typedef int wchar_t; + +union wait + { + int w_status; + struct + { + unsigned int __w_termsig:7; + unsigned int __w_coredump:1; + unsigned int __w_retcode:8; + unsigned int:16; + } __wait_terminated; + struct + { + unsigned int __w_stopval:8; + unsigned int __w_stopsig:8; + unsigned int:16; + } __wait_stopped; + }; +typedef union + { + union wait *__uptr; + int *__iptr; + } __WAIT_STATUS __attribute__ ((__transparent_union__)); + +typedef struct + { + int quot; + int rem; + } div_t; +typedef struct + { + long int quot; + long int rem; + } ldiv_t; + + +__extension__ typedef struct + { + long long int quot; + long long int rem; + } lldiv_t; + +extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__ , __leaf__)) ; + +extern double atof (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern int atoi (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern long int atol (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +__extension__ extern long long int atoll (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +extern double strtod (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern float strtof (__const char *__restrict __nptr, + char **__restrict __endptr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern long double strtold (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern long int strtol (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern unsigned long int strtoul (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtouq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoll (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtoull (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *l64a (long int __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern long int a64l (__const char *__s) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + +typedef unsigned char __u_char; +typedef unsigned short int __u_short; +typedef unsigned int __u_int; +typedef unsigned long int __u_long; +typedef signed char __int8_t; +typedef unsigned char __uint8_t; +typedef signed short int __int16_t; +typedef unsigned short int __uint16_t; +typedef signed int __int32_t; +typedef unsigned int __uint32_t; +typedef signed long int __int64_t; +typedef unsigned long int __uint64_t; +typedef long int __quad_t; +typedef unsigned long int __u_quad_t; +typedef unsigned long int __dev_t; +typedef unsigned int __uid_t; +typedef unsigned int __gid_t; +typedef unsigned long int __ino_t; +typedef unsigned long int __ino64_t; +typedef unsigned int __mode_t; +typedef unsigned long int __nlink_t; +typedef long int __off_t; +typedef long int __off64_t; +typedef int __pid_t; +typedef struct { int __val[2]; } __fsid_t; +typedef long int __clock_t; +typedef unsigned long int __rlim_t; +typedef unsigned long int __rlim64_t; +typedef unsigned int __id_t; +typedef long int __time_t; +typedef unsigned int __useconds_t; +typedef long int __suseconds_t; +typedef int __daddr_t; +typedef long int __swblk_t; +typedef int __key_t; +typedef int __clockid_t; +typedef void * __timer_t; +typedef long int __blksize_t; +typedef long int __blkcnt_t; +typedef long int __blkcnt64_t; +typedef unsigned long int __fsblkcnt_t; +typedef unsigned long int __fsblkcnt64_t; +typedef unsigned long int __fsfilcnt_t; +typedef unsigned long int __fsfilcnt64_t; +typedef long int __ssize_t; +typedef __off64_t __loff_t; +typedef __quad_t *__qaddr_t; +typedef char *__caddr_t; +typedef long int __intptr_t; +typedef unsigned int __socklen_t; +typedef __u_char u_char; +typedef __u_short u_short; +typedef __u_int u_int; +typedef __u_long u_long; +typedef __quad_t quad_t; +typedef __u_quad_t u_quad_t; +typedef __fsid_t fsid_t; +typedef __loff_t loff_t; +typedef __ino_t ino_t; +typedef __dev_t dev_t; +typedef __gid_t gid_t; +typedef __mode_t mode_t; +typedef __nlink_t nlink_t; +typedef __uid_t uid_t; +typedef __off_t off_t; +typedef __pid_t pid_t; +typedef __id_t id_t; +typedef __ssize_t ssize_t; +typedef __daddr_t daddr_t; +typedef __caddr_t caddr_t; +typedef __key_t key_t; + +typedef __clock_t clock_t; + + + +typedef __time_t time_t; + + +typedef __clockid_t clockid_t; +typedef __timer_t timer_t; +typedef unsigned long int ulong; +typedef unsigned short int ushort; +typedef unsigned int uint; +typedef int int8_t __attribute__ ((__mode__ (__QI__))); +typedef int int16_t __attribute__ ((__mode__ (__HI__))); +typedef int int32_t __attribute__ ((__mode__ (__SI__))); +typedef int int64_t __attribute__ ((__mode__ (__DI__))); +typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); +typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); +typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); +typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); +typedef int register_t __attribute__ ((__mode__ (__word__))); +typedef int __sig_atomic_t; +typedef struct + { + unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; + } __sigset_t; +typedef __sigset_t sigset_t; +struct timespec + { + __time_t tv_sec; + long int tv_nsec; + }; +struct timeval + { + __time_t tv_sec; + __suseconds_t tv_usec; + }; +typedef __suseconds_t suseconds_t; +typedef long int __fd_mask; +typedef struct + { + __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; + } fd_set; +typedef __fd_mask fd_mask; + +extern int select (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + struct timeval *__restrict __timeout); +extern int pselect (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + const struct timespec *__restrict __timeout, + const __sigset_t *__restrict __sigmask); + + +__extension__ +extern unsigned int gnu_dev_major (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned int gnu_dev_minor (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned long long int gnu_dev_makedev (unsigned int __major, + unsigned int __minor) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); + +typedef __blksize_t blksize_t; +typedef __blkcnt_t blkcnt_t; +typedef __fsblkcnt_t fsblkcnt_t; + + +typedef __fsfilcnt_t fsfilcnt_t; +typedef unsigned long int pthread_t; +typedef union +{ + char __size[56]; + long int __align; +} pthread_attr_t; +typedef struct __pthread_internal_list +{ + struct __pthread_internal_list *__prev; + struct __pthread_internal_list *__next; +} __pthread_list_t; +typedef union +{ + struct __pthread_mutex_s + { + int __lock; + unsigned int __count; + int __owner; + unsigned int __nusers; + int __kind; + int __spins; + __pthread_list_t __list; + } __data; + char __size[40]; + long int __align; +} pthread_mutex_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_mutexattr_t; +typedef union +{ + struct + { + int __lock; + unsigned int __futex; + __extension__ unsigned long long int __total_seq; + __extension__ unsigned long long int __wakeup_seq; + __extension__ unsigned long long int __woken_seq; + void *__mutex; + unsigned int __nwaiters; + unsigned int __broadcast_seq; + } __data; + char __size[48]; + __extension__ long long int __align; +} pthread_cond_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_condattr_t; +typedef unsigned int pthread_key_t; +typedef int pthread_once_t; +typedef union +{ + struct + { + int __lock; + unsigned int __nr_readers; + unsigned int __readers_wakeup; + unsigned int __writer_wakeup; + unsigned int __nr_readers_queued; + unsigned int __nr_writers_queued; + int __writer; + int __shared; + unsigned long int __pad1; + unsigned long int __pad2; + unsigned int __flags; + } __data; + char __size[56]; + long int __align; +} pthread_rwlock_t; +typedef union +{ + char __size[8]; + long int __align; +} pthread_rwlockattr_t; +typedef volatile int pthread_spinlock_t; +typedef union +{ + char __size[32]; + long int __align; +} pthread_barrier_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_barrierattr_t; + +extern long int random (void) __attribute__ ((__nothrow__ , __leaf__)); +extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); +extern char *initstate (unsigned int __seed, char *__statebuf, + size_t __statelen) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + + +extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + + + +struct random_data + { + int32_t *fptr; + int32_t *rptr; + int32_t *state; + int rand_type; + int rand_deg; + int rand_sep; + int32_t *end_ptr; + }; + +extern int random_r (struct random_data *__restrict __buf, + int32_t *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int srandom_r (unsigned int __seed, struct random_data *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, + size_t __statelen, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4))); + +extern int setstate_r (char *__restrict __statebuf, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + +extern int rand (void) __attribute__ ((__nothrow__ , __leaf__)); + +extern void srand (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern double drand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int lrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int nrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int mrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int jrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern void srand48 (long int __seedval) __attribute__ ((__nothrow__ , __leaf__)); +extern unsigned short int *seed48 (unsigned short int __seed16v[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + +struct drand48_data + { + unsigned short int __x[3]; + unsigned short int __old_x[3]; + unsigned short int __c; + unsigned short int __init; + unsigned long long int __a; + }; + + +extern int drand48_r (struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int erand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int lrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int nrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int mrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int jrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int srand48_r (long int __seedval, struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int seed48_r (unsigned short int __seed16v[3], + struct drand48_data *__buffer) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int lcong48_r (unsigned short int __param[7], + struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + + + + +extern void *malloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + +extern void *calloc (size_t __nmemb, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + + + + + + + +extern void *realloc (void *__ptr, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); + +extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern void cfree (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + +extern void *alloca (size_t __size) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern void *valloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + +extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + + + +extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + + +extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern void exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern void _Exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern char *getenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *__secure_getenv (__const char *__name) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int putenv (char *__string) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int setenv (__const char *__name, __const char *__value, int __replace) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); +extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int clearenv (void) __attribute__ ((__nothrow__ , __leaf__)); +extern char *mktemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ; +extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern int system (__const char *__command) ; + +extern char *realpath (__const char *__restrict __name, + char *__restrict __resolved) __attribute__ ((__nothrow__ , __leaf__)) ; +typedef int (*__compar_fn_t) (__const void *, __const void *); + +extern void *bsearch (__const void *__key, __const void *__base, + size_t __nmemb, size_t __size, __compar_fn_t __compar) + __attribute__ ((__nonnull__ (1, 2, 5))) ; +extern void qsort (void *__base, size_t __nmemb, size_t __size, + __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); +extern int abs (int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern long int labs (long int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +__extension__ extern long long int llabs (long long int __x) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern div_t div (int __numer, int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern ldiv_t ldiv (long int __numer, long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + + +__extension__ extern lldiv_t lldiv (long long int __numer, + long long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *gcvt (double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern char *qecvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qfcvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qgcvt (long double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qecvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qfcvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); + +extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int mbtowc (wchar_t *__restrict __pwc, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__ , __leaf__)) ; +extern size_t mbstowcs (wchar_t *__restrict __pwcs, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)); +extern size_t wcstombs (char *__restrict __s, + __const wchar_t *__restrict __pwcs, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)); + +extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int getsubopt (char **__restrict __optionp, + char *__const *__restrict __tokens, + char **__restrict __valuep) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2, 3))) ; +extern int getloadavg (double __loadavg[], int __nelem) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern int __VERIFIER_nondet_int(void); +static void fail(void) { +ERROR: __VERIFIER_error(); +} +struct slave_item { + struct slave_item *next; + struct slave_item *prev; +}; +struct slave_item* alloc_or_die_slave(void) +{ + struct slave_item *ptr = malloc(sizeof(*ptr)); + if (!ptr) + abort(); + ptr->next = ((void *)0); + ptr->prev = ((void *)0); + return ptr; +} +struct master_item { + struct master_item *next; + struct master_item *prev; + struct slave_item *slave; +}; +struct master_item* alloc_or_die_master(void) +{ + struct master_item *ptr = malloc(sizeof(*ptr)); + if (!ptr) + abort(); + ptr->next = ((void *)0); + ptr->prev = ((void *)0); + ptr->slave = ((void *)0); + return ptr; +} +void dll_insert_slave(struct slave_item **dll) +{ + struct slave_item *item = alloc_or_die_slave(); + struct slave_item *next = *dll; + item->next = next; + if (next) + next->prev = item; + *dll = item; +} +void* dll_create_generic(void (*insert_fnc)()) +{ + void *dll = ((void *)0); + insert_fnc(&dll); + insert_fnc(&dll); + while (__VERIFIER_nondet_int()) + insert_fnc(&dll); + return dll; +} +struct slave_item* dll_create_slave(void) +{ + return dll_create_generic(dll_insert_slave); +} +void dll_destroy_slave(struct slave_item *dll) +{ + while (dll) { + struct slave_item *next = dll->next; + free(dll); + dll = next; + } +} +void dll_destroy_nested_lists(struct master_item *dll) +{ + while (dll) { + dll_destroy_slave(dll->slave); + dll = dll->next; + } +} +void dll_reinit_nested_lists(struct master_item *dll) +{ + while (dll) { + dll->slave = ((void *)0); + dll = dll->next; + } +} +void dll_destroy_master(struct master_item *dll) +{ + while (dll) { + struct master_item *next = dll->next; + free(dll); + dll = next; + } +} +void dll_insert_master(struct master_item **dll) +{ + struct master_item *item = alloc_or_die_master(); + struct master_item *next = *dll; + item->next = next; + if (next) + next->prev = item; + item->slave = dll_create_slave(); + *dll = item; +} +struct master_item* dll_create_master(void) +{ + return dll_create_generic(dll_insert_master); +} +void inspect_base(struct master_item *dll) +{ + do { if (!(dll)) fail(); } while (0); + do { if (!(dll->next)) fail(); } while (0); + do { if (!(!dll->prev)) fail(); } while (0); + for (dll = dll->next; dll; dll = dll->next) { + do { if (!(dll->prev)) fail(); } while (0); + do { if (!(dll->prev->next)) fail(); } while (0); + do { if (!(dll->prev->next == dll)) fail(); } while (0); + } +} +void inspect_full(struct master_item *dll) +{ + inspect_base(dll); + for (; dll; dll = dll->next) { + struct slave_item *pos = dll->slave; + do { if (!(pos)) fail(); } while (0); + do { if (!(pos->next)) fail(); } while (0); + do { if (!(!pos->prev)) fail(); } while (0); + for (pos = pos->next; pos; pos = pos->next) { + do { if (!(pos->prev)) fail(); } while (0); + do { if (!(pos->prev->next)) fail(); } while (0); + do { if (!(pos->prev->next == pos)) fail(); } while (0); + } + } +} +void inspect_dangling(struct master_item *dll) +{ + inspect_base(dll); + for (; dll; dll = dll->next) + do { if (!(dll->slave)) fail(); } while (0); +} +void inspect_init(struct master_item *dll) +{ + inspect_base(dll); + for (; dll; dll = dll->next) + do { if (!(!dll->slave)) fail(); } while (0); +} +int main() +{ + struct master_item *dll = dll_create_master(); + inspect_full(dll); + dll_destroy_nested_lists(dll); + inspect_dangling(dll); + dll_reinit_nested_lists(dll); + inspect_init(dll); + dll_destroy_master(dll); + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/elevator_spec1_product01_true-unreach-call.cil.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/elevator_spec1_product01_true-unreach-call.cil.c new file mode 100644 index 000000000..b9ee8057a --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/elevator_spec1_product01_true-unreach-call.cil.c @@ -0,0 +1,4785 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +extern int __VERIFIER_nondet_int(void); +/* Generated by CIL v. 1.3.7 */ +/* print_CIL_Input is true */ + +#line 2 "libacc.c" +struct JoinPoint { + void **(*fp)(struct JoinPoint * ) ; + void **args ; + int argsCount ; + char const **argsType ; + void *(*arg)(int , struct JoinPoint * ) ; + char const *(*argType)(int , struct JoinPoint * ) ; + void **retValue ; + char const *retType ; + char const *funcName ; + char const *targetName ; + char const *fileName ; + char const *kind ; + void *excep_return ; +}; +#line 18 "libacc.c" +struct __UTAC__CFLOW_FUNC { + int (*func)(int , int ) ; + int val ; + struct __UTAC__CFLOW_FUNC *next ; +}; +#line 18 "libacc.c" +struct __UTAC__EXCEPTION { + void *jumpbuf ; + unsigned long long prtValue ; + int pops ; + struct __UTAC__CFLOW_FUNC *cflowfuncs ; +}; +#line 211 "/usr/lib/gcc/x86_64-linux-gnu/4.4.5/include/stddef.h" +typedef unsigned long size_t; +#line 76 "libacc.c" +struct __ACC__ERR { + void *v ; + struct __ACC__ERR *next ; +}; +#line 1 "wsllib_check.o" +#pragma merger(0,"wsllib_check.i","") +#line 3 "wsllib_check.c" +void __automaton_fail(void) +{ + + { + ERROR: __VERIFIER_error(); +#line 53 "wsllib_check.c" + return; +} +} +#line 1 "Elevator.o" +#pragma merger(0,"Elevator.i","") +#line 359 "/usr/include/stdio.h" +extern int printf(char const * __restrict __format , ...) ; +#line 14 "Person.h" +int getDestination(int person ) ; +#line 16 +void enterElevator(int p ) ; +#line 12 "Floor.h" +int isFloorCalling(int floorID ) ; +#line 14 +void resetCallOnFloor(int floorID ) ; +#line 18 +int isPersonOnFloor(int person , int floor ) ; +#line 22 +void removePersonFromFloor(int person , int floor ) ; +#line 24 +int isTopFloor(int floorID ) ; +#line 28 +void initFloors(void) ; +#line 14 "Elevator.h" +void timeShift(void) ; +#line 16 +int isBlocked(void) ; +#line 18 +void printState(void) ; +#line 20 +int isEmpty(void) ; +#line 22 +int isAnyLiftButtonPressed(void) ; +#line 24 +int buttonForFloorIsPressed(int floorID ) ; +#line 27 +void initTopDown(void) ; +#line 29 +void initBottomUp(void) ; +#line 32 +int areDoorsOpen(void) ; +#line 34 +int getCurrentFloorID(void) ; +#line 36 +int isIdle(void) ; +#line 18 "Elevator.c" +int currentHeading = 1; +#line 20 "Elevator.c" +int currentFloorID = 0; +#line 22 "Elevator.c" +int persons_0 ; +#line 24 "Elevator.c" +int persons_1 ; +#line 26 "Elevator.c" +int persons_2 ; +#line 28 "Elevator.c" +int persons_3 ; +#line 30 "Elevator.c" +int persons_4 ; +#line 32 "Elevator.c" +int persons_5 ; +#line 35 "Elevator.c" +int doorState = 1; +#line 37 "Elevator.c" +int floorButtons_0 ; +#line 39 "Elevator.c" +int floorButtons_1 ; +#line 41 "Elevator.c" +int floorButtons_2 ; +#line 43 "Elevator.c" +int floorButtons_3 ; +#line 45 "Elevator.c" +int floorButtons_4 ; +#line 53 "Elevator.c" +void initTopDown(void) +{ + + { + { +#line 54 + currentFloorID = 4; +#line 55 + currentHeading = 0; +#line 56 + floorButtons_0 = 0; +#line 57 + floorButtons_1 = 0; +#line 58 + floorButtons_2 = 0; +#line 59 + floorButtons_3 = 0; +#line 60 + floorButtons_4 = 0; +#line 61 + persons_0 = 0; +#line 62 + persons_1 = 0; +#line 63 + persons_2 = 0; +#line 64 + persons_3 = 0; +#line 65 + persons_4 = 0; +#line 66 + persons_5 = 0; +#line 67 + initFloors(); + } +#line 1071 "Elevator.c" + return; +} +} +#line 70 "Elevator.c" +void initBottomUp(void) +{ + + { + { +#line 71 + currentFloorID = 0; +#line 72 + currentHeading = 1; +#line 73 + floorButtons_0 = 0; +#line 74 + floorButtons_1 = 0; +#line 75 + floorButtons_2 = 0; +#line 76 + floorButtons_3 = 0; +#line 77 + floorButtons_4 = 0; +#line 78 + persons_0 = 0; +#line 79 + persons_1 = 0; +#line 80 + persons_2 = 0; +#line 81 + persons_3 = 0; +#line 82 + persons_4 = 0; +#line 83 + persons_5 = 0; +#line 84 + initFloors(); + } +#line 1117 "Elevator.c" + return; +} +} +#line 88 "Elevator.c" +int isBlocked(void) +{ int retValue_acc ; + + { +#line 1135 "Elevator.c" + retValue_acc = 0; +#line 1137 + return (retValue_acc); +#line 1144 + return (retValue_acc); +} +} +#line 93 "Elevator.c" +void enterElevator(int p ) +{ + + { +#line 102 + if (p == 0) { +#line 103 + persons_0 = 1; + } else { +#line 104 + if (p == 1) { +#line 105 + persons_1 = 1; + } else { +#line 106 + if (p == 2) { +#line 107 + persons_2 = 1; + } else { +#line 108 + if (p == 3) { +#line 109 + persons_3 = 1; + } else { +#line 110 + if (p == 4) { +#line 111 + persons_4 = 1; + } else { +#line 112 + if (p == 5) { +#line 113 + persons_5 = 1; + } else { + + } + } + } + } + } + } +#line 1179 "Elevator.c" + return; +} +} +#line 104 "Elevator.c" +void leaveElevator(int p ) +{ + + { +#line 112 + if (p == 0) { +#line 113 + persons_0 = 0; + } else { +#line 114 + if (p == 1) { +#line 115 + persons_1 = 0; + } else { +#line 116 + if (p == 2) { +#line 117 + persons_2 = 0; + } else { +#line 118 + if (p == 3) { +#line 119 + persons_3 = 0; + } else { +#line 120 + if (p == 4) { +#line 121 + persons_4 = 0; + } else { +#line 122 + if (p == 5) { +#line 123 + persons_5 = 0; + } else { + + } + } + } + } + } + } +#line 1210 "Elevator.c" + return; +} +} +#line 114 "Elevator.c" +void pressInLiftFloorButton(int floorID ) +{ + + { +#line 120 + if (floorID == 0) { +#line 121 + floorButtons_0 = 1; + } else { +#line 122 + if (floorID == 1) { +#line 123 + floorButtons_1 = 1; + } else { +#line 124 + if (floorID == 2) { +#line 125 + floorButtons_2 = 1; + } else { +#line 126 + if (floorID == 3) { +#line 127 + floorButtons_3 = 1; + } else { +#line 128 + if (floorID == 4) { +#line 129 + floorButtons_4 = 1; + } else { + + } + } + } + } + } +#line 1239 "Elevator.c" + return; +} +} +#line 122 "Elevator.c" +void resetFloorButton(int floorID ) +{ + + { +#line 128 + if (floorID == 0) { +#line 129 + floorButtons_0 = 0; + } else { +#line 130 + if (floorID == 1) { +#line 131 + floorButtons_1 = 0; + } else { +#line 132 + if (floorID == 2) { +#line 133 + floorButtons_2 = 0; + } else { +#line 134 + if (floorID == 3) { +#line 135 + floorButtons_3 = 0; + } else { +#line 136 + if (floorID == 4) { +#line 137 + floorButtons_4 = 0; + } else { + + } + } + } + } + } +#line 1268 "Elevator.c" + return; +} +} +#line 130 "Elevator.c" +int getCurrentFloorID(void) +{ int retValue_acc ; + + { +#line 1286 "Elevator.c" + retValue_acc = currentFloorID; +#line 1288 + return (retValue_acc); +#line 1295 + return (retValue_acc); +} +} +#line 134 "Elevator.c" +int areDoorsOpen(void) +{ int retValue_acc ; + + { +#line 1317 "Elevator.c" + retValue_acc = doorState; +#line 1319 + return (retValue_acc); +#line 1326 + return (retValue_acc); +} +} +#line 138 "Elevator.c" +int buttonForFloorIsPressed(int floorID ) +{ int retValue_acc ; + + { +#line 144 "Elevator.c" + if (floorID == 0) { +#line 1349 + retValue_acc = floorButtons_0; +#line 1351 + return (retValue_acc); + } else { +#line 1353 + if (floorID == 1) { +#line 1356 + retValue_acc = floorButtons_1; +#line 1358 + return (retValue_acc); + } else { +#line 1360 + if (floorID == 2) { +#line 1363 + retValue_acc = floorButtons_2; +#line 1365 + return (retValue_acc); + } else { +#line 1367 + if (floorID == 3) { +#line 1370 + retValue_acc = floorButtons_3; +#line 1372 + return (retValue_acc); + } else { +#line 1374 + if (floorID == 4) { +#line 1377 + retValue_acc = floorButtons_4; +#line 1379 + return (retValue_acc); + } else { +#line 1383 "Elevator.c" + retValue_acc = 0; +#line 1385 + return (retValue_acc); + } + } + } + } + } +#line 1392 "Elevator.c" + return (retValue_acc); +} +} +#line 147 "Elevator.c" +int getCurrentHeading(void) +{ int retValue_acc ; + + { +#line 1414 "Elevator.c" + retValue_acc = currentHeading; +#line 1416 + return (retValue_acc); +#line 1423 + return (retValue_acc); +} +} +#line 151 "Elevator.c" +int isEmpty(void) +{ int retValue_acc ; + + { +#line 158 "Elevator.c" + if (persons_0 == 1) { +#line 1446 + retValue_acc = 0; +#line 1448 + return (retValue_acc); + } else { +#line 1450 + if (persons_1 == 1) { +#line 1453 + retValue_acc = 0; +#line 1455 + return (retValue_acc); + } else { +#line 1457 + if (persons_2 == 1) { +#line 1460 + retValue_acc = 0; +#line 1462 + return (retValue_acc); + } else { +#line 1464 + if (persons_3 == 1) { +#line 1467 + retValue_acc = 0; +#line 1469 + return (retValue_acc); + } else { +#line 1471 + if (persons_4 == 1) { +#line 1474 + retValue_acc = 0; +#line 1476 + return (retValue_acc); + } else { +#line 1478 + if (persons_5 == 1) { +#line 1481 "Elevator.c" + retValue_acc = 0; +#line 1483 + return (retValue_acc); + } else { + + } + } + } + } + } + } +#line 1488 "Elevator.c" + retValue_acc = 1; +#line 1490 + return (retValue_acc); +#line 1497 + return (retValue_acc); +} +} +#line 162 "Elevator.c" +int anyStopRequested(void) +{ int retValue_acc ; + int tmp ; + int tmp___0 ; + int tmp___1 ; + int tmp___2 ; + int tmp___3 ; + + { + { +#line 173 + tmp___3 = isFloorCalling(0); + } +#line 173 "Elevator.c" + if (tmp___3) { +#line 1520 + retValue_acc = 1; +#line 1522 + return (retValue_acc); + } else { +#line 1524 + if (floorButtons_0) { +#line 1527 + retValue_acc = 1; +#line 1529 + return (retValue_acc); + } else { + { +#line 1531 "Elevator.c" + tmp___2 = isFloorCalling(1); + } +#line 1531 + if (tmp___2) { +#line 1534 + retValue_acc = 1; +#line 1536 + return (retValue_acc); + } else { +#line 1538 + if (floorButtons_1) { +#line 1541 + retValue_acc = 1; +#line 1543 + return (retValue_acc); + } else { + { +#line 1545 + tmp___1 = isFloorCalling(2); + } +#line 1545 + if (tmp___1) { +#line 1548 + retValue_acc = 1; +#line 1550 + return (retValue_acc); + } else { +#line 1552 + if (floorButtons_2) { +#line 1555 + retValue_acc = 1; +#line 1557 + return (retValue_acc); + } else { + { +#line 1559 + tmp___0 = isFloorCalling(3); + } +#line 1559 + if (tmp___0) { +#line 1562 + retValue_acc = 1; +#line 1564 + return (retValue_acc); + } else { +#line 1566 + if (floorButtons_3) { +#line 1569 + retValue_acc = 1; +#line 1571 + return (retValue_acc); + } else { + { +#line 1573 + tmp = isFloorCalling(4); + } +#line 1573 + if (tmp) { +#line 1576 + retValue_acc = 1; +#line 1578 + return (retValue_acc); + } else { +#line 1580 + if (floorButtons_4) { +#line 1583 + retValue_acc = 1; +#line 1585 + return (retValue_acc); + } else { + + } + } + } + } + } + } + } + } + } + } +#line 1590 "Elevator.c" + retValue_acc = 0; +#line 1592 + return (retValue_acc); +#line 1599 + return (retValue_acc); +} +} +#line 176 "Elevator.c" +int isIdle(void) +{ int retValue_acc ; + int tmp ; + + { + { +#line 1621 "Elevator.c" + tmp = anyStopRequested(); +#line 1621 + retValue_acc = tmp == 0; + } +#line 1623 + return (retValue_acc); +#line 1630 + return (retValue_acc); +} +} +#line 180 "Elevator.c" +int stopRequestedInDirection(int dir , int respectFloorCalls , int respectInLiftCalls ) +{ int retValue_acc ; + int tmp ; + int tmp___0 ; + int tmp___1 ; + int tmp___2 ; + int tmp___3 ; + int tmp___4 ; + int tmp___5 ; + int tmp___6 ; + int tmp___7 ; + int tmp___8 ; + int tmp___9 ; + + { +#line 231 + if (dir == 1) { + { +#line 191 + tmp = isTopFloor(currentFloorID); + } +#line 191 "Elevator.c" + if (tmp) { +#line 1656 "Elevator.c" + retValue_acc = 0; +#line 1658 + return (retValue_acc); + } else { + + } +#line 191 + if (currentFloorID < 0) { +#line 191 + if (respectFloorCalls) { + { +#line 191 "Elevator.c" + tmp___4 = isFloorCalling(0); + } +#line 191 "Elevator.c" + if (tmp___4) { +#line 1664 "Elevator.c" + retValue_acc = 1; +#line 1666 + return (retValue_acc); + } else { + goto _L___16; + } + } else { + goto _L___16; + } + } else { + _L___16: /* CIL Label */ +#line 1668 + if (currentFloorID < 0) { +#line 1668 + if (respectInLiftCalls) { +#line 1668 + if (floorButtons_0) { +#line 1671 + retValue_acc = 1; +#line 1673 + return (retValue_acc); + } else { + goto _L___14; + } + } else { + goto _L___14; + } + } else { + _L___14: /* CIL Label */ +#line 1675 + if (currentFloorID < 1) { +#line 1675 + if (respectFloorCalls) { + { +#line 1675 + tmp___3 = isFloorCalling(1); + } +#line 1675 + if (tmp___3) { +#line 1678 + retValue_acc = 1; +#line 1680 + return (retValue_acc); + } else { + goto _L___12; + } + } else { + goto _L___12; + } + } else { + _L___12: /* CIL Label */ +#line 1682 + if (currentFloorID < 1) { +#line 1682 + if (respectInLiftCalls) { +#line 1682 + if (floorButtons_1) { +#line 1685 + retValue_acc = 1; +#line 1687 + return (retValue_acc); + } else { + goto _L___10; + } + } else { + goto _L___10; + } + } else { + _L___10: /* CIL Label */ +#line 1689 + if (currentFloorID < 2) { +#line 1689 + if (respectFloorCalls) { + { +#line 1689 + tmp___2 = isFloorCalling(2); + } +#line 1689 + if (tmp___2) { +#line 1692 + retValue_acc = 1; +#line 1694 + return (retValue_acc); + } else { + goto _L___8; + } + } else { + goto _L___8; + } + } else { + _L___8: /* CIL Label */ +#line 1696 + if (currentFloorID < 2) { +#line 1696 + if (respectInLiftCalls) { +#line 1696 + if (floorButtons_2) { +#line 1699 + retValue_acc = 1; +#line 1701 + return (retValue_acc); + } else { + goto _L___6; + } + } else { + goto _L___6; + } + } else { + _L___6: /* CIL Label */ +#line 1703 + if (currentFloorID < 3) { +#line 1703 + if (respectFloorCalls) { + { +#line 1703 + tmp___1 = isFloorCalling(3); + } +#line 1703 + if (tmp___1) { +#line 1706 + retValue_acc = 1; +#line 1708 + return (retValue_acc); + } else { + goto _L___4; + } + } else { + goto _L___4; + } + } else { + _L___4: /* CIL Label */ +#line 1710 + if (currentFloorID < 3) { +#line 1710 + if (respectInLiftCalls) { +#line 1710 + if (floorButtons_3) { +#line 1713 + retValue_acc = 1; +#line 1715 + return (retValue_acc); + } else { + goto _L___2; + } + } else { + goto _L___2; + } + } else { + _L___2: /* CIL Label */ +#line 1717 + if (currentFloorID < 4) { +#line 1717 + if (respectFloorCalls) { + { +#line 1717 + tmp___0 = isFloorCalling(4); + } +#line 1717 + if (tmp___0) { +#line 1720 + retValue_acc = 1; +#line 1722 + return (retValue_acc); + } else { + goto _L___0; + } + } else { + goto _L___0; + } + } else { + _L___0: /* CIL Label */ +#line 1724 + if (currentFloorID < 4) { +#line 1724 + if (respectInLiftCalls) { +#line 1724 + if (floorButtons_4) { +#line 1727 + retValue_acc = 1; +#line 1729 + return (retValue_acc); + } else { +#line 1733 + retValue_acc = 0; +#line 1735 + return (retValue_acc); + } + } else { +#line 1733 + retValue_acc = 0; +#line 1735 + return (retValue_acc); + } + } else { +#line 1733 "Elevator.c" + retValue_acc = 0; +#line 1735 + return (retValue_acc); + } + } + } + } + } + } + } + } + } + } + } else { +#line 216 "Elevator.c" + if (currentFloorID == 0) { +#line 1743 "Elevator.c" + retValue_acc = 0; +#line 1745 + return (retValue_acc); + } else { + + } +#line 216 + if (currentFloorID > 0) { +#line 216 + if (respectFloorCalls) { + { +#line 216 "Elevator.c" + tmp___9 = isFloorCalling(0); + } +#line 216 "Elevator.c" + if (tmp___9) { +#line 1751 "Elevator.c" + retValue_acc = 1; +#line 1753 + return (retValue_acc); + } else { + goto _L___34; + } + } else { + goto _L___34; + } + } else { + _L___34: /* CIL Label */ +#line 1755 + if (currentFloorID > 0) { +#line 1755 + if (respectInLiftCalls) { +#line 1755 + if (floorButtons_0) { +#line 1758 + retValue_acc = 1; +#line 1760 + return (retValue_acc); + } else { + goto _L___32; + } + } else { + goto _L___32; + } + } else { + _L___32: /* CIL Label */ +#line 1762 + if (currentFloorID > 1) { +#line 1762 + if (respectFloorCalls) { + { +#line 1762 + tmp___8 = isFloorCalling(1); + } +#line 1762 + if (tmp___8) { +#line 1765 + retValue_acc = 1; +#line 1767 + return (retValue_acc); + } else { + goto _L___30; + } + } else { + goto _L___30; + } + } else { + _L___30: /* CIL Label */ +#line 1769 + if (currentFloorID > 1) { +#line 1769 + if (respectInLiftCalls) { +#line 1769 + if (floorButtons_1) { +#line 1772 + retValue_acc = 1; +#line 1774 + return (retValue_acc); + } else { + goto _L___28; + } + } else { + goto _L___28; + } + } else { + _L___28: /* CIL Label */ +#line 1776 + if (currentFloorID > 2) { +#line 1776 + if (respectFloorCalls) { + { +#line 1776 + tmp___7 = isFloorCalling(2); + } +#line 1776 + if (tmp___7) { +#line 1779 + retValue_acc = 1; +#line 1781 + return (retValue_acc); + } else { + goto _L___26; + } + } else { + goto _L___26; + } + } else { + _L___26: /* CIL Label */ +#line 1783 + if (currentFloorID > 2) { +#line 1783 + if (respectInLiftCalls) { +#line 1783 + if (floorButtons_2) { +#line 1786 + retValue_acc = 1; +#line 1788 + return (retValue_acc); + } else { + goto _L___24; + } + } else { + goto _L___24; + } + } else { + _L___24: /* CIL Label */ +#line 1790 + if (currentFloorID > 3) { +#line 1790 + if (respectFloorCalls) { + { +#line 1790 + tmp___6 = isFloorCalling(3); + } +#line 1790 + if (tmp___6) { +#line 1793 + retValue_acc = 1; +#line 1795 + return (retValue_acc); + } else { + goto _L___22; + } + } else { + goto _L___22; + } + } else { + _L___22: /* CIL Label */ +#line 1797 + if (currentFloorID > 3) { +#line 1797 + if (respectInLiftCalls) { +#line 1797 + if (floorButtons_3) { +#line 1800 + retValue_acc = 1; +#line 1802 + return (retValue_acc); + } else { + goto _L___20; + } + } else { + goto _L___20; + } + } else { + _L___20: /* CIL Label */ +#line 1804 + if (currentFloorID > 4) { +#line 1804 + if (respectFloorCalls) { + { +#line 1804 + tmp___5 = isFloorCalling(4); + } +#line 1804 + if (tmp___5) { +#line 1807 + retValue_acc = 1; +#line 1809 + return (retValue_acc); + } else { + goto _L___18; + } + } else { + goto _L___18; + } + } else { + _L___18: /* CIL Label */ +#line 1811 + if (currentFloorID > 4) { +#line 1811 + if (respectInLiftCalls) { +#line 1811 + if (floorButtons_4) { +#line 1814 + retValue_acc = 1; +#line 1816 + return (retValue_acc); + } else { +#line 1820 + retValue_acc = 0; +#line 1822 + return (retValue_acc); + } + } else { +#line 1820 + retValue_acc = 0; +#line 1822 + return (retValue_acc); + } + } else { +#line 1820 "Elevator.c" + retValue_acc = 0; +#line 1822 + return (retValue_acc); + } + } + } + } + } + } + } + } + } + } + } +#line 1829 "Elevator.c" + return (retValue_acc); +} +} +#line 234 "Elevator.c" +int isAnyLiftButtonPressed(void) +{ int retValue_acc ; + + { +#line 240 "Elevator.c" + if (floorButtons_0) { +#line 1852 + retValue_acc = 1; +#line 1854 + return (retValue_acc); + } else { +#line 1856 + if (floorButtons_1) { +#line 1859 + retValue_acc = 1; +#line 1861 + return (retValue_acc); + } else { +#line 1863 + if (floorButtons_2) { +#line 1866 + retValue_acc = 1; +#line 1868 + return (retValue_acc); + } else { +#line 1870 + if (floorButtons_3) { +#line 1873 + retValue_acc = 1; +#line 1875 + return (retValue_acc); + } else { +#line 1877 + if (floorButtons_4) { +#line 1880 + retValue_acc = 1; +#line 1882 + return (retValue_acc); + } else { +#line 1886 "Elevator.c" + retValue_acc = 0; +#line 1888 + return (retValue_acc); + } + } + } + } + } +#line 1895 "Elevator.c" + return (retValue_acc); +} +} +#line 243 "Elevator.c" +void continueInDirection(int dir ) +{ int tmp ; + + { +#line 244 + currentHeading = dir; +#line 245 + if (currentHeading == 1) { + { +#line 250 + tmp = isTopFloor(currentFloorID); + } +#line 250 + if (tmp) { +#line 248 + currentHeading = 0; + } else { + + } + } else { +#line 255 + if (currentFloorID == 0) { +#line 253 + currentHeading = 1; + } else { + + } + } +#line 256 + if (currentHeading == 1) { +#line 257 + currentFloorID = currentFloorID + 1; + } else { +#line 259 + currentFloorID = currentFloorID - 1; + } +#line 1941 "Elevator.c" + return; +} +} +#line 263 "Elevator.c" +int stopRequestedAtCurrentFloor(void) +{ int retValue_acc ; + int tmp ; + int tmp___0 ; + + { + { +#line 270 + tmp___0 = isFloorCalling(currentFloorID); + } +#line 270 "Elevator.c" + if (tmp___0) { +#line 1962 + retValue_acc = 1; +#line 1964 + return (retValue_acc); + } else { + { +#line 1966 "Elevator.c" + tmp = buttonForFloorIsPressed(currentFloorID); + } +#line 1966 + if (tmp) { +#line 1971 + retValue_acc = 1; +#line 1973 + return (retValue_acc); + } else { +#line 1979 + retValue_acc = 0; +#line 1981 + return (retValue_acc); + } + } +#line 1988 "Elevator.c" + return (retValue_acc); +} +} +#line 273 "Elevator.c" +int getReverseHeading(int ofHeading ) +{ int retValue_acc ; + + { +#line 276 "Elevator.c" + if (ofHeading == 0) { +#line 2013 + retValue_acc = 1; +#line 2015 + return (retValue_acc); + } else { +#line 2019 "Elevator.c" + retValue_acc = 0; +#line 2021 + return (retValue_acc); + } +#line 2028 "Elevator.c" + return (retValue_acc); +} +} +#line 280 "Elevator.c" +void processWaitingOnFloor(int floorID ) +{ int tmp ; + int tmp___0 ; + int tmp___1 ; + int tmp___2 ; + int tmp___3 ; + int tmp___4 ; + int tmp___5 ; + int tmp___6 ; + int tmp___7 ; + int tmp___8 ; + int tmp___9 ; + int tmp___10 ; + + { + { +#line 286 + tmp___0 = isPersonOnFloor(0, floorID); + } +#line 286 + if (tmp___0) { + { +#line 282 + removePersonFromFloor(0, floorID); +#line 283 + tmp = getDestination(0); +#line 283 + pressInLiftFloorButton(tmp); +#line 284 + enterElevator(0); + } + } else { + + } + { +#line 286 + tmp___2 = isPersonOnFloor(1, floorID); + } +#line 286 + if (tmp___2) { + { +#line 287 + removePersonFromFloor(1, floorID); +#line 288 + tmp___1 = getDestination(1); +#line 288 + pressInLiftFloorButton(tmp___1); +#line 289 + enterElevator(1); + } + } else { + + } + { +#line 291 + tmp___4 = isPersonOnFloor(2, floorID); + } +#line 291 + if (tmp___4) { + { +#line 292 + removePersonFromFloor(2, floorID); +#line 293 + tmp___3 = getDestination(2); +#line 293 + pressInLiftFloorButton(tmp___3); +#line 294 + enterElevator(2); + } + } else { + + } + { +#line 296 + tmp___6 = isPersonOnFloor(3, floorID); + } +#line 296 + if (tmp___6) { + { +#line 297 + removePersonFromFloor(3, floorID); +#line 298 + tmp___5 = getDestination(3); +#line 298 + pressInLiftFloorButton(tmp___5); +#line 299 + enterElevator(3); + } + } else { + + } + { +#line 301 + tmp___8 = isPersonOnFloor(4, floorID); + } +#line 301 + if (tmp___8) { + { +#line 302 + removePersonFromFloor(4, floorID); +#line 303 + tmp___7 = getDestination(4); +#line 303 + pressInLiftFloorButton(tmp___7); +#line 304 + enterElevator(4); + } + } else { + + } + { +#line 306 + tmp___10 = isPersonOnFloor(5, floorID); + } +#line 306 + if (tmp___10) { + { +#line 307 + removePersonFromFloor(5, floorID); +#line 308 + tmp___9 = getDestination(5); +#line 308 + pressInLiftFloorButton(tmp___9); +#line 309 + enterElevator(5); + } + } else { + + } + { +#line 311 + resetCallOnFloor(floorID); + } +#line 2106 "Elevator.c" + return; +} +} +#line 2108 +void __utac_acc__Specification1_spec__3(void) ; +#line 315 "Elevator.c" +void timeShift(void) +{ int tmp ; + int tmp___0 ; + int tmp___1 ; + int tmp___2 ; + int tmp___3 ; + int tmp___4 ; + int tmp___5 ; + int tmp___6 ; + int tmp___7 ; + int tmp___8 ; + int tmp___9 ; + + { + { +#line 348 + tmp___9 = stopRequestedAtCurrentFloor(); + } +#line 348 + if (tmp___9) { +#line 320 + doorState = 1; +#line 322 + if (persons_0) { + { +#line 322 + tmp = getDestination(0); + } +#line 322 + if (tmp == currentFloorID) { + { +#line 323 + leaveElevator(0); + } + } else { + + } + } else { + + } +#line 323 + if (persons_1) { + { +#line 323 + tmp___0 = getDestination(1); + } +#line 323 + if (tmp___0 == currentFloorID) { + { +#line 324 + leaveElevator(1); + } + } else { + + } + } else { + + } +#line 324 + if (persons_2) { + { +#line 324 + tmp___1 = getDestination(2); + } +#line 324 + if (tmp___1 == currentFloorID) { + { +#line 325 + leaveElevator(2); + } + } else { + + } + } else { + + } +#line 325 + if (persons_3) { + { +#line 325 + tmp___2 = getDestination(3); + } +#line 325 + if (tmp___2 == currentFloorID) { + { +#line 326 + leaveElevator(3); + } + } else { + + } + } else { + + } +#line 326 + if (persons_4) { + { +#line 326 + tmp___3 = getDestination(4); + } +#line 326 + if (tmp___3 == currentFloorID) { + { +#line 327 + leaveElevator(4); + } + } else { + + } + } else { + + } +#line 327 + if (persons_5) { + { +#line 327 + tmp___4 = getDestination(5); + } +#line 327 + if (tmp___4 == currentFloorID) { + { +#line 328 + leaveElevator(5); + } + } else { + + } + } else { + + } + { +#line 328 + processWaitingOnFloor(currentFloorID); +#line 329 + resetFloorButton(currentFloorID); + } + } else { +#line 335 + if (doorState == 1) { +#line 332 + doorState = 0; + } else { + + } + { +#line 335 + tmp___8 = stopRequestedInDirection(currentHeading, 1, 1); + } +#line 335 + if (tmp___8) { + { +#line 338 + continueInDirection(currentHeading); + } + } else { + { +#line 339 + tmp___6 = getReverseHeading(currentHeading); +#line 339 + tmp___7 = stopRequestedInDirection(tmp___6, 1, 1); + } +#line 339 + if (tmp___7) { + { +#line 342 + tmp___5 = getReverseHeading(currentHeading); +#line 342 + continueInDirection(tmp___5); + } + } else { + { +#line 346 + continueInDirection(currentHeading); + } + } + } + } + { +#line 2171 "Elevator.c" + __utac_acc__Specification1_spec__3(); + } +#line 2177 + return; +} +} +#line 351 "Elevator.c" +void printState(void) +{ int tmp ; + int tmp___0 ; + int tmp___1 ; + int tmp___2 ; + int tmp___3 ; + char const * __restrict __cil_tmp6 ; + char const * __restrict __cil_tmp7 ; + char const * __restrict __cil_tmp8 ; + char const * __restrict __cil_tmp9 ; + char const * __restrict __cil_tmp10 ; + char const * __restrict __cil_tmp11 ; + char const * __restrict __cil_tmp12 ; + char const * __restrict __cil_tmp13 ; + char const * __restrict __cil_tmp14 ; + char const * __restrict __cil_tmp15 ; + char const * __restrict __cil_tmp16 ; + char const * __restrict __cil_tmp17 ; + char const * __restrict __cil_tmp18 ; + char const * __restrict __cil_tmp19 ; + char const * __restrict __cil_tmp20 ; + char const * __restrict __cil_tmp21 ; + char const * __restrict __cil_tmp22 ; + char const * __restrict __cil_tmp23 ; + char const * __restrict __cil_tmp24 ; + char const * __restrict __cil_tmp25 ; + char const * __restrict __cil_tmp26 ; + + { + { +#line 352 + __cil_tmp6 = (char const * __restrict )"Elevator "; +#line 352 + printf(__cil_tmp6); + } +#line 353 + if (doorState) { + { +#line 354 + __cil_tmp7 = (char const * __restrict )"[_]"; +#line 354 + printf(__cil_tmp7); + } + } else { + { +#line 355 + __cil_tmp8 = (char const * __restrict )"[] "; +#line 355 + printf(__cil_tmp8); + } + } + { +#line 355 + __cil_tmp9 = (char const * __restrict )" at "; +#line 355 + printf(__cil_tmp9); +#line 356 + __cil_tmp10 = (char const * __restrict )"%i"; +#line 356 + printf(__cil_tmp10, currentFloorID); +#line 357 + __cil_tmp11 = (char const * __restrict )" heading "; +#line 357 + printf(__cil_tmp11); + } +#line 358 + if (currentHeading) { + { +#line 359 + __cil_tmp12 = (char const * __restrict )"up"; +#line 359 + printf(__cil_tmp12); + } + } else { + { +#line 360 + __cil_tmp13 = (char const * __restrict )"down"; +#line 360 + printf(__cil_tmp13); + } + } + { +#line 360 + __cil_tmp14 = (char const * __restrict )" IL_p:"; +#line 360 + printf(__cil_tmp14); + } +#line 361 + if (floorButtons_0) { + { +#line 362 + __cil_tmp15 = (char const * __restrict )" %i"; +#line 362 + printf(__cil_tmp15, 0); + } + } else { + + } +#line 362 + if (floorButtons_1) { + { +#line 363 + __cil_tmp16 = (char const * __restrict )" %i"; +#line 363 + printf(__cil_tmp16, 1); + } + } else { + + } +#line 363 + if (floorButtons_2) { + { +#line 364 + __cil_tmp17 = (char const * __restrict )" %i"; +#line 364 + printf(__cil_tmp17, 2); + } + } else { + + } +#line 364 + if (floorButtons_3) { + { +#line 365 + __cil_tmp18 = (char const * __restrict )" %i"; +#line 365 + printf(__cil_tmp18, 3); + } + } else { + + } +#line 365 + if (floorButtons_4) { + { +#line 366 + __cil_tmp19 = (char const * __restrict )" %i"; +#line 366 + printf(__cil_tmp19, 4); + } + } else { + + } + { +#line 366 + __cil_tmp20 = (char const * __restrict )" F_p:"; +#line 366 + printf(__cil_tmp20); +#line 367 + tmp = isFloorCalling(0); + } +#line 367 + if (tmp) { + { +#line 368 + __cil_tmp21 = (char const * __restrict )" %i"; +#line 368 + printf(__cil_tmp21, 0); + } + } else { + + } + { +#line 368 + tmp___0 = isFloorCalling(1); + } +#line 368 + if (tmp___0) { + { +#line 369 + __cil_tmp22 = (char const * __restrict )" %i"; +#line 369 + printf(__cil_tmp22, 1); + } + } else { + + } + { +#line 369 + tmp___1 = isFloorCalling(2); + } +#line 369 + if (tmp___1) { + { +#line 370 + __cil_tmp23 = (char const * __restrict )" %i"; +#line 370 + printf(__cil_tmp23, 2); + } + } else { + + } + { +#line 370 + tmp___2 = isFloorCalling(3); + } +#line 370 + if (tmp___2) { + { +#line 371 + __cil_tmp24 = (char const * __restrict )" %i"; +#line 371 + printf(__cil_tmp24, 3); + } + } else { + + } + { +#line 371 + tmp___3 = isFloorCalling(4); + } +#line 371 + if (tmp___3) { + { +#line 372 + __cil_tmp25 = (char const * __restrict )" %i"; +#line 372 + printf(__cil_tmp25, 4); + } + } else { + + } + { +#line 372 + __cil_tmp26 = (char const * __restrict )"\n"; +#line 372 + printf(__cil_tmp26); + } +#line 2247 "Elevator.c" + return; +} +} +#line 376 "Elevator.c" +int existInLiftCallsInDirection(int d ) +{ int retValue_acc ; + int i ; + int i___0 ; + + { +#line 397 + if (d == 1) { +#line 378 "Elevator.c" + i = 0; +#line 379 + i = currentFloorID + 1; + { +#line 379 + while (1) { + while_0_continue: /* CIL Label */ ; +#line 379 + if (i < 5) { + + } else { + goto while_0_break; + } +#line 385 + if (i == 0) { +#line 385 "Elevator.c" + if (floorButtons_0) { +#line 2275 + retValue_acc = 1; +#line 2277 + return (retValue_acc); + } else { + goto _L___2; + } + } else { + _L___2: /* CIL Label */ +#line 2279 + if (i == 1) { +#line 2279 + if (floorButtons_1) { +#line 2282 + retValue_acc = 1; +#line 2284 + return (retValue_acc); + } else { + goto _L___1; + } + } else { + _L___1: /* CIL Label */ +#line 2286 + if (i == 2) { +#line 2286 + if (floorButtons_2) { +#line 2289 + retValue_acc = 1; +#line 2291 + return (retValue_acc); + } else { + goto _L___0; + } + } else { + _L___0: /* CIL Label */ +#line 2293 + if (i == 3) { +#line 2293 + if (floorButtons_3) { +#line 2296 + retValue_acc = 1; +#line 2298 + return (retValue_acc); + } else { + goto _L; + } + } else { + _L: /* CIL Label */ +#line 2300 + if (i == 4) { +#line 2300 + if (floorButtons_4) { +#line 2303 "Elevator.c" + retValue_acc = 1; +#line 2305 + return (retValue_acc); + } else { + + } + } else { + + } + } + } + } + } +#line 379 + i = i + 1; + } + while_0_break: /* CIL Label */ ; + } + } else { +#line 2307 "Elevator.c" + if (d == 0) { +#line 387 + i___0 = 0; +#line 388 + i___0 = currentFloorID - 1; + { +#line 388 + while (1) { + while_1_continue: /* CIL Label */ ; +#line 388 + if (i___0 >= 0) { + + } else { + goto while_1_break; + } +#line 388 + i___0 = currentFloorID + 1; + { +#line 388 + while (1) { + while_2_continue: /* CIL Label */ ; +#line 388 + if (i___0 < 5) { + + } else { + goto while_2_break; + } +#line 395 + if (i___0 == 0) { +#line 395 "Elevator.c" + if (floorButtons_0) { +#line 2319 + retValue_acc = 1; +#line 2321 + return (retValue_acc); + } else { + goto _L___6; + } + } else { + _L___6: /* CIL Label */ +#line 2323 + if (i___0 == 1) { +#line 2323 + if (floorButtons_1) { +#line 2326 + retValue_acc = 1; +#line 2328 + return (retValue_acc); + } else { + goto _L___5; + } + } else { + _L___5: /* CIL Label */ +#line 2330 + if (i___0 == 2) { +#line 2330 + if (floorButtons_2) { +#line 2333 + retValue_acc = 1; +#line 2335 + return (retValue_acc); + } else { + goto _L___4; + } + } else { + _L___4: /* CIL Label */ +#line 2337 + if (i___0 == 3) { +#line 2337 + if (floorButtons_3) { +#line 2340 + retValue_acc = 1; +#line 2342 + return (retValue_acc); + } else { + goto _L___3; + } + } else { + _L___3: /* CIL Label */ +#line 2344 + if (i___0 == 4) { +#line 2344 + if (floorButtons_4) { +#line 2347 "Elevator.c" + retValue_acc = 1; +#line 2349 + return (retValue_acc); + } else { + + } + } else { + + } + } + } + } + } +#line 388 + i___0 = i___0 + 1; + } + while_2_break: /* CIL Label */ ; + } +#line 388 + i___0 = i___0 - 1; + } + while_1_break: /* CIL Label */ ; + } + } else { + + } + } +#line 2354 "Elevator.c" + retValue_acc = 0; +#line 2356 + return (retValue_acc); +#line 2363 + return (retValue_acc); +} +} +#line 1 "Test.o" +#pragma merger(0,"Test.i","") +#line 544 "/usr/include/stdlib.h" +extern __attribute__((__nothrow__, __noreturn__)) void exit(int __status ) ; +#line 13 "Test.c" +int cleanupTimeShifts = 12; +#line 17 "Test.c" +#line 23 "Test.c" +int get_nondetMinMax07(void) +{ int retValue_acc ; + int nd ; + nd = __VERIFIER_nondet_int(); + + { +#line 26 "Test.c" + if (nd == 0) { +#line 1108 + retValue_acc = 0; +#line 1110 + return (retValue_acc); + } else { +#line 1112 + if (nd == 1) { +#line 1117 + retValue_acc = 1; +#line 1119 + return (retValue_acc); + } else { +#line 1121 + if (nd == 2) { +#line 1126 + retValue_acc = 2; +#line 1128 + return (retValue_acc); + } else { +#line 1130 + if (nd == 3) { +#line 1135 + retValue_acc = 3; +#line 1137 + return (retValue_acc); + } else { +#line 1139 + if (nd == 4) { +#line 1144 + retValue_acc = 4; +#line 1146 + return (retValue_acc); + } else { +#line 1148 + if (nd == 5) { +#line 1153 + retValue_acc = 5; +#line 1155 + return (retValue_acc); + } else { +#line 1157 + if (nd == 6) { +#line 1162 + retValue_acc = 6; +#line 1164 + return (retValue_acc); + } else { +#line 1166 + if (nd == 7) { +#line 1171 "Test.c" + retValue_acc = 7; +#line 1173 + return (retValue_acc); + } else { + { +#line 43 + exit(0); + } + } + } + } + } + } + } + } + } +#line 1183 "Test.c" + return (retValue_acc); +} +} +#line 48 "Test.c" +void initPersonOnFloor(int person , int floor ) ; +#line 48 +int getOrigin(int person ) ; +#line 48 "Test.c" +void bobCall(void) +{ int tmp ; + + { + { +#line 48 + tmp = getOrigin(0); +#line 48 + initPersonOnFloor(0, tmp); + } +#line 1207 "Test.c" + return; +} +} +#line 50 "Test.c" +void aliceCall(void) +{ int tmp ; + + { + { +#line 50 + tmp = getOrigin(1); +#line 50 + initPersonOnFloor(1, tmp); + } +#line 1227 "Test.c" + return; +} +} +#line 52 "Test.c" +void angelinaCall(void) +{ int tmp ; + + { + { +#line 52 + tmp = getOrigin(2); +#line 52 + initPersonOnFloor(2, tmp); + } +#line 1247 "Test.c" + return; +} +} +#line 54 "Test.c" +void chuckCall(void) +{ int tmp ; + + { + { +#line 54 + tmp = getOrigin(3); +#line 54 + initPersonOnFloor(3, tmp); + } +#line 1267 "Test.c" + return; +} +} +#line 56 "Test.c" +void monicaCall(void) +{ int tmp ; + + { + { +#line 56 + tmp = getOrigin(4); +#line 56 + initPersonOnFloor(4, tmp); + } +#line 1287 "Test.c" + return; +} +} +#line 58 "Test.c" +void bigMacCall(void) +{ int tmp ; + + { + { +#line 58 + tmp = getOrigin(5); +#line 58 + initPersonOnFloor(5, tmp); + } +#line 1307 "Test.c" + return; +} +} +#line 60 "Test.c" +void threeTS(void) +{ + + { + { +#line 60 + timeShift(); +#line 60 + timeShift(); +#line 60 + timeShift(); + } +#line 1331 "Test.c" + return; +} +} +#line 62 "Test.c" +void cleanup(void) +{ int i ; + int tmp ; + int tmp___0 ; + int __cil_tmp4 ; + + { + { +#line 65 + timeShift(); +#line 67 + i = 0; + } + { +#line 67 + while (1) { + while_3_continue: /* CIL Label */ ; + { +#line 67 + __cil_tmp4 = cleanupTimeShifts - 1; +#line 67 + if (i < __cil_tmp4) { + { +#line 67 + tmp___0 = isBlocked(); + } +#line 67 + if (tmp___0 != 1) { + + } else { + goto while_3_break; + } + } else { + goto while_3_break; + } + } + { +#line 71 + tmp = isIdle(); + } +#line 71 + if (tmp) { +#line 72 + return; + } else { + { +#line 74 + timeShift(); + } + } +#line 67 + i = i + 1; + } + while_3_break: /* CIL Label */ ; + } +#line 1362 "Test.c" + return; +} +} +#line 77 "Test.c" +void randomSequenceOfActions(void) +{ int maxLength ; + int tmp ; + int counter ; + int action ; + int tmp___0 ; + int origin ; + int tmp___1 ; + int tmp___2 ; + + { + { +#line 78 + maxLength = 4; +#line 79 + tmp = __VERIFIER_nondet_int(); + } +#line 79 + if (tmp) { + { +#line 81 + initTopDown(); + } + } else { + { +#line 85 + initBottomUp(); + } + } +#line 90 + counter = 0; + { +#line 91 + while (1) { + while_4_continue: /* CIL Label */ ; +#line 91 + if (counter < maxLength) { + + } else { + goto while_4_break; + } + { +#line 92 + counter = counter + 1; +#line 93 + tmp___0 = get_nondetMinMax07(); +#line 93 + action = tmp___0; + } +#line 99 + if (action < 6) { + { +#line 100 + tmp___1 = getOrigin(action); +#line 100 + origin = tmp___1; +#line 101 + initPersonOnFloor(action, origin); + } + } else { +#line 102 + if (action == 6) { + { +#line 103 + timeShift(); + } + } else { +#line 104 + if (action == 7) { + { +#line 106 + timeShift(); +#line 107 + timeShift(); +#line 108 + timeShift(); + } + } else { + + } + } + } + { +#line 113 + tmp___2 = isBlocked(); + } +#line 113 + if (tmp___2) { +#line 114 + return; + } else { + + } + } + while_4_break: /* CIL Label */ ; + } + { +#line 117 + cleanup(); + } +#line 1433 "Test.c" + return; +} +} +#line 122 "Test.c" +void runTest_Simple(void) +{ + + { + { +#line 123 + bigMacCall(); +#line 124 + angelinaCall(); +#line 125 + cleanup(); + } +#line 1457 "Test.c" + return; +} +} +#line 130 "Test.c" +void Specification1(void) +{ + + { + { +#line 131 + bigMacCall(); +#line 132 + angelinaCall(); +#line 133 + cleanup(); + } +#line 1481 "Test.c" + return; +} +} +#line 137 "Test.c" +void Specification2(void) +{ + + { + { +#line 138 + bigMacCall(); +#line 139 + cleanup(); + } +#line 1503 "Test.c" + return; +} +} +#line 142 "Test.c" +void Specification3(void) +{ + + { + { +#line 143 + bobCall(); +#line 144 + timeShift(); +#line 145 + timeShift(); +#line 146 + timeShift(); +#line 147 + timeShift(); +#line 149 + timeShift(); +#line 154 + bobCall(); +#line 155 + cleanup(); + } +#line 1537 "Test.c" + return; +} +} +#line 160 "Test.c" +void setup(void) +{ + + { +#line 1555 "Test.c" + return; +} +} +#line 1557 +void __utac_acc__Specification1_spec__1(void) ; +#line 1560 +void __utac_acc__Specification1_spec__4(void) ; +#line 168 "Test.c" +void test(void) ; +#line 165 "Test.c" +void runTest(void) +{ + + { + { +#line 1571 "Test.c" + __utac_acc__Specification1_spec__1(); +#line 168 "Test.c" + test(); +#line 1585 "Test.c" + __utac_acc__Specification1_spec__4(); + } +#line 1591 + return; +} +} +#line 174 "Test.c" +void select_helpers(void) ; +#line 175 +void select_features(void) ; +#line 176 +int valid_product(void) ; +#line 173 "Test.c" +int main(void) +{ int retValue_acc ; + int tmp ; + + { + { +#line 174 + select_helpers(); +#line 175 + select_features(); +#line 176 + tmp = valid_product(); + } +#line 176 + if (tmp) { + { +#line 177 + setup(); +#line 178 + runTest(); + } + } else { + + } +#line 1620 "Test.c" + retValue_acc = 0; +#line 1622 + return (retValue_acc); +#line 1629 + return (retValue_acc); +} +} +#line 1 "Floor.o" +#pragma merger(0,"Floor.i","") +#line 16 "Floor.h" +void callOnFloor(int floorID ) ; +#line 9 "Floor.c" +int calls_0 ; +#line 11 "Floor.c" +int calls_1 ; +#line 13 "Floor.c" +int calls_2 ; +#line 15 "Floor.c" +int calls_3 ; +#line 17 "Floor.c" +int calls_4 ; +#line 20 "Floor.c" +int personOnFloor_0_0 ; +#line 22 "Floor.c" +int personOnFloor_0_1 ; +#line 24 "Floor.c" +int personOnFloor_0_2 ; +#line 26 "Floor.c" +int personOnFloor_0_3 ; +#line 28 "Floor.c" +int personOnFloor_0_4 ; +#line 30 "Floor.c" +int personOnFloor_1_0 ; +#line 32 "Floor.c" +int personOnFloor_1_1 ; +#line 34 "Floor.c" +int personOnFloor_1_2 ; +#line 36 "Floor.c" +int personOnFloor_1_3 ; +#line 38 "Floor.c" +int personOnFloor_1_4 ; +#line 40 "Floor.c" +int personOnFloor_2_0 ; +#line 42 "Floor.c" +int personOnFloor_2_1 ; +#line 44 "Floor.c" +int personOnFloor_2_2 ; +#line 46 "Floor.c" +int personOnFloor_2_3 ; +#line 48 "Floor.c" +int personOnFloor_2_4 ; +#line 50 "Floor.c" +int personOnFloor_3_0 ; +#line 52 "Floor.c" +int personOnFloor_3_1 ; +#line 54 "Floor.c" +int personOnFloor_3_2 ; +#line 56 "Floor.c" +int personOnFloor_3_3 ; +#line 58 "Floor.c" +int personOnFloor_3_4 ; +#line 60 "Floor.c" +int personOnFloor_4_0 ; +#line 62 "Floor.c" +int personOnFloor_4_1 ; +#line 64 "Floor.c" +int personOnFloor_4_2 ; +#line 66 "Floor.c" +int personOnFloor_4_3 ; +#line 68 "Floor.c" +int personOnFloor_4_4 ; +#line 70 "Floor.c" +int personOnFloor_5_0 ; +#line 72 "Floor.c" +int personOnFloor_5_1 ; +#line 74 "Floor.c" +int personOnFloor_5_2 ; +#line 76 "Floor.c" +int personOnFloor_5_3 ; +#line 78 "Floor.c" +int personOnFloor_5_4 ; +#line 81 "Floor.c" +void initFloors(void) +{ + + { +#line 82 + calls_0 = 0; +#line 83 + calls_1 = 0; +#line 84 + calls_2 = 0; +#line 85 + calls_3 = 0; +#line 86 + calls_4 = 0; +#line 87 + personOnFloor_0_0 = 0; +#line 88 + personOnFloor_0_1 = 0; +#line 89 + personOnFloor_0_2 = 0; +#line 90 + personOnFloor_0_3 = 0; +#line 91 + personOnFloor_0_4 = 0; +#line 92 + personOnFloor_1_0 = 0; +#line 93 + personOnFloor_1_1 = 0; +#line 94 + personOnFloor_1_2 = 0; +#line 95 + personOnFloor_1_3 = 0; +#line 96 + personOnFloor_1_4 = 0; +#line 97 + personOnFloor_2_0 = 0; +#line 98 + personOnFloor_2_1 = 0; +#line 99 + personOnFloor_2_2 = 0; +#line 100 + personOnFloor_2_3 = 0; +#line 101 + personOnFloor_2_4 = 0; +#line 102 + personOnFloor_3_0 = 0; +#line 103 + personOnFloor_3_1 = 0; +#line 104 + personOnFloor_3_2 = 0; +#line 105 + personOnFloor_3_3 = 0; +#line 106 + personOnFloor_3_4 = 0; +#line 107 + personOnFloor_4_0 = 0; +#line 108 + personOnFloor_4_1 = 0; +#line 109 + personOnFloor_4_2 = 0; +#line 110 + personOnFloor_4_3 = 0; +#line 111 + personOnFloor_4_4 = 0; +#line 112 + personOnFloor_5_0 = 0; +#line 113 + personOnFloor_5_1 = 0; +#line 114 + personOnFloor_5_2 = 0; +#line 115 + personOnFloor_5_3 = 0; +#line 116 + personOnFloor_5_4 = 0; +#line 1120 "Floor.c" + return; +} +} +#line 120 "Floor.c" +int isFloorCalling(int floorID ) +{ int retValue_acc ; + + { +#line 126 "Floor.c" + if (floorID == 0) { +#line 1139 + retValue_acc = calls_0; +#line 1141 + return (retValue_acc); + } else { +#line 1143 + if (floorID == 1) { +#line 1146 + retValue_acc = calls_1; +#line 1148 + return (retValue_acc); + } else { +#line 1150 + if (floorID == 2) { +#line 1153 + retValue_acc = calls_2; +#line 1155 + return (retValue_acc); + } else { +#line 1157 + if (floorID == 3) { +#line 1160 + retValue_acc = calls_3; +#line 1162 + return (retValue_acc); + } else { +#line 1164 + if (floorID == 4) { +#line 1167 "Floor.c" + retValue_acc = calls_4; +#line 1169 + return (retValue_acc); + } else { + + } + } + } + } + } +#line 1174 "Floor.c" + retValue_acc = 0; +#line 1176 + return (retValue_acc); +#line 1183 + return (retValue_acc); +} +} +#line 130 "Floor.c" +void resetCallOnFloor(int floorID ) +{ + + { +#line 136 + if (floorID == 0) { +#line 137 + calls_0 = 0; + } else { +#line 138 + if (floorID == 1) { +#line 139 + calls_1 = 0; + } else { +#line 140 + if (floorID == 2) { +#line 141 + calls_2 = 0; + } else { +#line 142 + if (floorID == 3) { +#line 143 + calls_3 = 0; + } else { +#line 144 + if (floorID == 4) { +#line 145 + calls_4 = 0; + } else { + + } + } + } + } + } +#line 1216 "Floor.c" + return; +} +} +#line 1218 +void __utac_acc__Specification1_spec__2(int floor ) ; +#line 139 "Floor.c" +void callOnFloor(int floorID ) +{ int __utac__ad__arg1 ; + + { + { +#line 1229 "Floor.c" + __utac__ad__arg1 = floorID; +#line 1230 + __utac_acc__Specification1_spec__2(__utac__ad__arg1); + } +#line 145 + if (floorID == 0) { +#line 146 + calls_0 = 1; + } else { +#line 147 + if (floorID == 1) { +#line 148 + calls_1 = 1; + } else { +#line 149 + if (floorID == 2) { +#line 150 + calls_2 = 1; + } else { +#line 151 + if (floorID == 3) { +#line 152 + calls_3 = 1; + } else { +#line 153 + if (floorID == 4) { +#line 154 "Floor.c" + calls_4 = 1; + } else { + + } + } + } + } + } +#line 1254 "Floor.c" + return; +} +} +#line 148 "Floor.c" +int isPersonOnFloor(int person , int floor ) +{ int retValue_acc ; + + { +#line 185 + if (floor == 0) { +#line 156 "Floor.c" + if (person == 0) { +#line 1276 + retValue_acc = personOnFloor_0_0; +#line 1278 + return (retValue_acc); + } else { +#line 1280 + if (person == 1) { +#line 1283 + retValue_acc = personOnFloor_1_0; +#line 1285 + return (retValue_acc); + } else { +#line 1287 + if (person == 2) { +#line 1290 + retValue_acc = personOnFloor_2_0; +#line 1292 + return (retValue_acc); + } else { +#line 1294 + if (person == 3) { +#line 1297 + retValue_acc = personOnFloor_3_0; +#line 1299 + return (retValue_acc); + } else { +#line 1301 + if (person == 4) { +#line 1304 + retValue_acc = personOnFloor_4_0; +#line 1306 + return (retValue_acc); + } else { +#line 1308 + if (person == 5) { +#line 1311 + retValue_acc = personOnFloor_5_0; +#line 1313 + return (retValue_acc); + } else { + + } + } + } + } + } + } + } else { +#line 1315 "Floor.c" + if (floor == 1) { +#line 163 "Floor.c" + if (person == 0) { +#line 1321 + retValue_acc = personOnFloor_0_1; +#line 1323 + return (retValue_acc); + } else { +#line 1325 + if (person == 1) { +#line 1328 + retValue_acc = personOnFloor_1_1; +#line 1330 + return (retValue_acc); + } else { +#line 1332 + if (person == 2) { +#line 1335 + retValue_acc = personOnFloor_2_1; +#line 1337 + return (retValue_acc); + } else { +#line 1339 + if (person == 3) { +#line 1342 + retValue_acc = personOnFloor_3_1; +#line 1344 + return (retValue_acc); + } else { +#line 1346 + if (person == 4) { +#line 1349 + retValue_acc = personOnFloor_4_1; +#line 1351 + return (retValue_acc); + } else { +#line 1353 + if (person == 5) { +#line 1356 + retValue_acc = personOnFloor_5_1; +#line 1358 + return (retValue_acc); + } else { + + } + } + } + } + } + } + } else { +#line 1360 "Floor.c" + if (floor == 2) { +#line 170 "Floor.c" + if (person == 0) { +#line 1366 + retValue_acc = personOnFloor_0_2; +#line 1368 + return (retValue_acc); + } else { +#line 1370 + if (person == 1) { +#line 1373 + retValue_acc = personOnFloor_1_2; +#line 1375 + return (retValue_acc); + } else { +#line 1377 + if (person == 2) { +#line 1380 + retValue_acc = personOnFloor_2_2; +#line 1382 + return (retValue_acc); + } else { +#line 1384 + if (person == 3) { +#line 1387 + retValue_acc = personOnFloor_3_2; +#line 1389 + return (retValue_acc); + } else { +#line 1391 + if (person == 4) { +#line 1394 + retValue_acc = personOnFloor_4_2; +#line 1396 + return (retValue_acc); + } else { +#line 1398 + if (person == 5) { +#line 1401 + retValue_acc = personOnFloor_5_2; +#line 1403 + return (retValue_acc); + } else { + + } + } + } + } + } + } + } else { +#line 1405 "Floor.c" + if (floor == 3) { +#line 177 "Floor.c" + if (person == 0) { +#line 1411 + retValue_acc = personOnFloor_0_3; +#line 1413 + return (retValue_acc); + } else { +#line 1415 + if (person == 1) { +#line 1418 + retValue_acc = personOnFloor_1_3; +#line 1420 + return (retValue_acc); + } else { +#line 1422 + if (person == 2) { +#line 1425 + retValue_acc = personOnFloor_2_3; +#line 1427 + return (retValue_acc); + } else { +#line 1429 + if (person == 3) { +#line 1432 + retValue_acc = personOnFloor_3_3; +#line 1434 + return (retValue_acc); + } else { +#line 1436 + if (person == 4) { +#line 1439 + retValue_acc = personOnFloor_4_3; +#line 1441 + return (retValue_acc); + } else { +#line 1443 + if (person == 5) { +#line 1446 + retValue_acc = personOnFloor_5_3; +#line 1448 + return (retValue_acc); + } else { + + } + } + } + } + } + } + } else { +#line 1450 "Floor.c" + if (floor == 4) { +#line 184 "Floor.c" + if (person == 0) { +#line 1456 + retValue_acc = personOnFloor_0_4; +#line 1458 + return (retValue_acc); + } else { +#line 1460 + if (person == 1) { +#line 1463 + retValue_acc = personOnFloor_1_4; +#line 1465 + return (retValue_acc); + } else { +#line 1467 + if (person == 2) { +#line 1470 + retValue_acc = personOnFloor_2_4; +#line 1472 + return (retValue_acc); + } else { +#line 1474 + if (person == 3) { +#line 1477 + retValue_acc = personOnFloor_3_4; +#line 1479 + return (retValue_acc); + } else { +#line 1481 + if (person == 4) { +#line 1484 + retValue_acc = personOnFloor_4_4; +#line 1486 + return (retValue_acc); + } else { +#line 1488 + if (person == 5) { +#line 1491 "Floor.c" + retValue_acc = personOnFloor_5_4; +#line 1493 + return (retValue_acc); + } else { + + } + } + } + } + } + } + } else { + + } + } + } + } + } +#line 1498 "Floor.c" + retValue_acc = 0; +#line 1500 + return (retValue_acc); +#line 1507 + return (retValue_acc); +} +} +#line 188 "Floor.c" +void initPersonOnFloor(int person , int floor ) +{ + + { +#line 225 + if (floor == 0) { +#line 196 + if (person == 0) { +#line 197 + personOnFloor_0_0 = 1; + } else { +#line 198 + if (person == 1) { +#line 199 + personOnFloor_1_0 = 1; + } else { +#line 200 + if (person == 2) { +#line 201 + personOnFloor_2_0 = 1; + } else { +#line 202 + if (person == 3) { +#line 203 + personOnFloor_3_0 = 1; + } else { +#line 204 + if (person == 4) { +#line 205 + personOnFloor_4_0 = 1; + } else { +#line 206 + if (person == 5) { +#line 207 + personOnFloor_5_0 = 1; + } else { + + } + } + } + } + } + } + } else { +#line 208 + if (floor == 1) { +#line 203 + if (person == 0) { +#line 204 + personOnFloor_0_1 = 1; + } else { +#line 205 + if (person == 1) { +#line 206 + personOnFloor_1_1 = 1; + } else { +#line 207 + if (person == 2) { +#line 208 + personOnFloor_2_1 = 1; + } else { +#line 209 + if (person == 3) { +#line 210 + personOnFloor_3_1 = 1; + } else { +#line 211 + if (person == 4) { +#line 212 + personOnFloor_4_1 = 1; + } else { +#line 213 + if (person == 5) { +#line 214 + personOnFloor_5_1 = 1; + } else { + + } + } + } + } + } + } + } else { +#line 215 + if (floor == 2) { +#line 210 + if (person == 0) { +#line 211 + personOnFloor_0_2 = 1; + } else { +#line 212 + if (person == 1) { +#line 213 + personOnFloor_1_2 = 1; + } else { +#line 214 + if (person == 2) { +#line 215 + personOnFloor_2_2 = 1; + } else { +#line 216 + if (person == 3) { +#line 217 + personOnFloor_3_2 = 1; + } else { +#line 218 + if (person == 4) { +#line 219 + personOnFloor_4_2 = 1; + } else { +#line 220 + if (person == 5) { +#line 221 + personOnFloor_5_2 = 1; + } else { + + } + } + } + } + } + } + } else { +#line 222 + if (floor == 3) { +#line 217 + if (person == 0) { +#line 218 + personOnFloor_0_3 = 1; + } else { +#line 219 + if (person == 1) { +#line 220 + personOnFloor_1_3 = 1; + } else { +#line 221 + if (person == 2) { +#line 222 + personOnFloor_2_3 = 1; + } else { +#line 223 + if (person == 3) { +#line 224 + personOnFloor_3_3 = 1; + } else { +#line 225 + if (person == 4) { +#line 226 + personOnFloor_4_3 = 1; + } else { +#line 227 + if (person == 5) { +#line 228 + personOnFloor_5_3 = 1; + } else { + + } + } + } + } + } + } + } else { +#line 229 + if (floor == 4) { +#line 224 + if (person == 0) { +#line 225 + personOnFloor_0_4 = 1; + } else { +#line 226 + if (person == 1) { +#line 227 + personOnFloor_1_4 = 1; + } else { +#line 228 + if (person == 2) { +#line 229 + personOnFloor_2_4 = 1; + } else { +#line 230 + if (person == 3) { +#line 231 + personOnFloor_3_4 = 1; + } else { +#line 232 + if (person == 4) { +#line 233 + personOnFloor_4_4 = 1; + } else { +#line 234 + if (person == 5) { +#line 235 + personOnFloor_5_4 = 1; + } else { + + } + } + } + } + } + } + } else { + + } + } + } + } + } + { +#line 225 + callOnFloor(floor); + } +#line 1607 "Floor.c" + return; +} +} +#line 228 "Floor.c" +void removePersonFromFloor(int person , int floor ) +{ + + { +#line 265 + if (floor == 0) { +#line 236 + if (person == 0) { +#line 237 + personOnFloor_0_0 = 0; + } else { +#line 238 + if (person == 1) { +#line 239 + personOnFloor_1_0 = 0; + } else { +#line 240 + if (person == 2) { +#line 241 + personOnFloor_2_0 = 0; + } else { +#line 242 + if (person == 3) { +#line 243 + personOnFloor_3_0 = 0; + } else { +#line 244 + if (person == 4) { +#line 245 + personOnFloor_4_0 = 0; + } else { +#line 246 + if (person == 5) { +#line 247 + personOnFloor_5_0 = 0; + } else { + + } + } + } + } + } + } + } else { +#line 248 + if (floor == 1) { +#line 243 + if (person == 0) { +#line 244 + personOnFloor_0_1 = 0; + } else { +#line 245 + if (person == 1) { +#line 246 + personOnFloor_1_1 = 0; + } else { +#line 247 + if (person == 2) { +#line 248 + personOnFloor_2_1 = 0; + } else { +#line 249 + if (person == 3) { +#line 250 + personOnFloor_3_1 = 0; + } else { +#line 251 + if (person == 4) { +#line 252 + personOnFloor_4_1 = 0; + } else { +#line 253 + if (person == 5) { +#line 254 + personOnFloor_5_1 = 0; + } else { + + } + } + } + } + } + } + } else { +#line 255 + if (floor == 2) { +#line 250 + if (person == 0) { +#line 251 + personOnFloor_0_2 = 0; + } else { +#line 252 + if (person == 1) { +#line 253 + personOnFloor_1_2 = 0; + } else { +#line 254 + if (person == 2) { +#line 255 + personOnFloor_2_2 = 0; + } else { +#line 256 + if (person == 3) { +#line 257 + personOnFloor_3_2 = 0; + } else { +#line 258 + if (person == 4) { +#line 259 + personOnFloor_4_2 = 0; + } else { +#line 260 + if (person == 5) { +#line 261 + personOnFloor_5_2 = 0; + } else { + + } + } + } + } + } + } + } else { +#line 262 + if (floor == 3) { +#line 257 + if (person == 0) { +#line 258 + personOnFloor_0_3 = 0; + } else { +#line 259 + if (person == 1) { +#line 260 + personOnFloor_1_3 = 0; + } else { +#line 261 + if (person == 2) { +#line 262 + personOnFloor_2_3 = 0; + } else { +#line 263 + if (person == 3) { +#line 264 + personOnFloor_3_3 = 0; + } else { +#line 265 + if (person == 4) { +#line 266 + personOnFloor_4_3 = 0; + } else { +#line 267 + if (person == 5) { +#line 268 + personOnFloor_5_3 = 0; + } else { + + } + } + } + } + } + } + } else { +#line 269 + if (floor == 4) { +#line 264 + if (person == 0) { +#line 265 + personOnFloor_0_4 = 0; + } else { +#line 266 + if (person == 1) { +#line 267 + personOnFloor_1_4 = 0; + } else { +#line 268 + if (person == 2) { +#line 269 + personOnFloor_2_4 = 0; + } else { +#line 270 + if (person == 3) { +#line 271 + personOnFloor_3_4 = 0; + } else { +#line 272 + if (person == 4) { +#line 273 + personOnFloor_4_4 = 0; + } else { +#line 274 + if (person == 5) { +#line 275 + personOnFloor_5_4 = 0; + } else { + + } + } + } + } + } + } + } else { + + } + } + } + } + } + { +#line 265 + resetCallOnFloor(floor); + } +#line 1703 "Floor.c" + return; +} +} +#line 268 "Floor.c" +int isTopFloor(int floorID ) +{ int retValue_acc ; + + { +#line 1721 "Floor.c" + retValue_acc = floorID == 4; +#line 1723 + return (retValue_acc); +#line 1730 + return (retValue_acc); +} +} +#line 1 "libacc.o" +#pragma merger(0,"libacc.i","") +#line 73 "/usr/include/assert.h" +extern __attribute__((__nothrow__, __noreturn__)) void __assert_fail(char const *__assertion , + char const *__file , + unsigned int __line , + char const *__function ) ; +#line 471 "/usr/include/stdlib.h" +extern __attribute__((__nothrow__)) void *malloc(size_t __size ) __attribute__((__malloc__)) ; +#line 488 +extern __attribute__((__nothrow__)) void free(void *__ptr ) ; +#line 32 "libacc.c" +void __utac__exception__cf_handler_set(void *exception , int (*cflow_func)(int , + int ) , + int val ) +{ struct __UTAC__EXCEPTION *excep ; + struct __UTAC__CFLOW_FUNC *cf ; + void *tmp ; + unsigned long __cil_tmp7 ; + unsigned long __cil_tmp8 ; + unsigned long __cil_tmp9 ; + unsigned long __cil_tmp10 ; + unsigned long __cil_tmp11 ; + unsigned long __cil_tmp12 ; + unsigned long __cil_tmp13 ; + unsigned long __cil_tmp14 ; + int (**mem_15)(int , int ) ; + int *mem_16 ; + struct __UTAC__CFLOW_FUNC **mem_17 ; + struct __UTAC__CFLOW_FUNC **mem_18 ; + struct __UTAC__CFLOW_FUNC **mem_19 ; + + { + { +#line 33 + excep = (struct __UTAC__EXCEPTION *)exception; +#line 34 + tmp = malloc(24UL); +#line 34 + cf = (struct __UTAC__CFLOW_FUNC *)tmp; +#line 36 + mem_15 = (int (**)(int , int ))cf; +#line 36 + *mem_15 = cflow_func; +#line 37 + __cil_tmp7 = (unsigned long )cf; +#line 37 + __cil_tmp8 = __cil_tmp7 + 8; +#line 37 + mem_16 = (int *)__cil_tmp8; +#line 37 + *mem_16 = val; +#line 38 + __cil_tmp9 = (unsigned long )cf; +#line 38 + __cil_tmp10 = __cil_tmp9 + 16; +#line 38 + __cil_tmp11 = (unsigned long )excep; +#line 38 + __cil_tmp12 = __cil_tmp11 + 24; +#line 38 + mem_17 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp10; +#line 38 + mem_18 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp12; +#line 38 + *mem_17 = *mem_18; +#line 39 + __cil_tmp13 = (unsigned long )excep; +#line 39 + __cil_tmp14 = __cil_tmp13 + 24; +#line 39 + mem_19 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp14; +#line 39 + *mem_19 = cf; + } +#line 654 "libacc.c" + return; +} +} +#line 44 "libacc.c" +void __utac__exception__cf_handler_free(void *exception ) +{ struct __UTAC__EXCEPTION *excep ; + struct __UTAC__CFLOW_FUNC *cf ; + struct __UTAC__CFLOW_FUNC *tmp ; + unsigned long __cil_tmp5 ; + unsigned long __cil_tmp6 ; + struct __UTAC__CFLOW_FUNC *__cil_tmp7 ; + unsigned long __cil_tmp8 ; + unsigned long __cil_tmp9 ; + unsigned long __cil_tmp10 ; + unsigned long __cil_tmp11 ; + void *__cil_tmp12 ; + unsigned long __cil_tmp13 ; + unsigned long __cil_tmp14 ; + struct __UTAC__CFLOW_FUNC **mem_15 ; + struct __UTAC__CFLOW_FUNC **mem_16 ; + struct __UTAC__CFLOW_FUNC **mem_17 ; + + { +#line 45 + excep = (struct __UTAC__EXCEPTION *)exception; +#line 46 + __cil_tmp5 = (unsigned long )excep; +#line 46 + __cil_tmp6 = __cil_tmp5 + 24; +#line 46 + mem_15 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp6; +#line 46 + cf = *mem_15; + { +#line 49 + while (1) { + while_5_continue: /* CIL Label */ ; + { +#line 49 + __cil_tmp7 = (struct __UTAC__CFLOW_FUNC *)0; +#line 49 + __cil_tmp8 = (unsigned long )__cil_tmp7; +#line 49 + __cil_tmp9 = (unsigned long )cf; +#line 49 + if (__cil_tmp9 != __cil_tmp8) { + + } else { + goto while_5_break; + } + } + { +#line 50 + tmp = cf; +#line 51 + __cil_tmp10 = (unsigned long )cf; +#line 51 + __cil_tmp11 = __cil_tmp10 + 16; +#line 51 + mem_16 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp11; +#line 51 + cf = *mem_16; +#line 52 + __cil_tmp12 = (void *)tmp; +#line 52 + free(__cil_tmp12); + } + } + while_5_break: /* CIL Label */ ; + } +#line 55 + __cil_tmp13 = (unsigned long )excep; +#line 55 + __cil_tmp14 = __cil_tmp13 + 24; +#line 55 + mem_17 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp14; +#line 55 + *mem_17 = (struct __UTAC__CFLOW_FUNC *)0; +#line 694 "libacc.c" + return; +} +} +#line 59 "libacc.c" +void __utac__exception__cf_handler_reset(void *exception ) +{ struct __UTAC__EXCEPTION *excep ; + struct __UTAC__CFLOW_FUNC *cf ; + unsigned long __cil_tmp5 ; + unsigned long __cil_tmp6 ; + struct __UTAC__CFLOW_FUNC *__cil_tmp7 ; + unsigned long __cil_tmp8 ; + unsigned long __cil_tmp9 ; + int (*__cil_tmp10)(int , int ) ; + unsigned long __cil_tmp11 ; + unsigned long __cil_tmp12 ; + int __cil_tmp13 ; + unsigned long __cil_tmp14 ; + unsigned long __cil_tmp15 ; + struct __UTAC__CFLOW_FUNC **mem_16 ; + int (**mem_17)(int , int ) ; + int *mem_18 ; + struct __UTAC__CFLOW_FUNC **mem_19 ; + + { +#line 60 + excep = (struct __UTAC__EXCEPTION *)exception; +#line 61 + __cil_tmp5 = (unsigned long )excep; +#line 61 + __cil_tmp6 = __cil_tmp5 + 24; +#line 61 + mem_16 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp6; +#line 61 + cf = *mem_16; + { +#line 64 + while (1) { + while_6_continue: /* CIL Label */ ; + { +#line 64 + __cil_tmp7 = (struct __UTAC__CFLOW_FUNC *)0; +#line 64 + __cil_tmp8 = (unsigned long )__cil_tmp7; +#line 64 + __cil_tmp9 = (unsigned long )cf; +#line 64 + if (__cil_tmp9 != __cil_tmp8) { + + } else { + goto while_6_break; + } + } + { +#line 65 + mem_17 = (int (**)(int , int ))cf; +#line 65 + __cil_tmp10 = *mem_17; +#line 65 + __cil_tmp11 = (unsigned long )cf; +#line 65 + __cil_tmp12 = __cil_tmp11 + 8; +#line 65 + mem_18 = (int *)__cil_tmp12; +#line 65 + __cil_tmp13 = *mem_18; +#line 65 + (*__cil_tmp10)(4, __cil_tmp13); +#line 66 + __cil_tmp14 = (unsigned long )cf; +#line 66 + __cil_tmp15 = __cil_tmp14 + 16; +#line 66 + mem_19 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp15; +#line 66 + cf = *mem_19; + } + } + while_6_break: /* CIL Label */ ; + } + { +#line 69 + __utac__exception__cf_handler_free(exception); + } +#line 732 "libacc.c" + return; +} +} +#line 80 "libacc.c" +void *__utac__error_stack_mgt(void *env , int mode , int count ) ; +#line 80 "libacc.c" +static struct __ACC__ERR *head = (struct __ACC__ERR *)0; +#line 79 "libacc.c" +void *__utac__error_stack_mgt(void *env , int mode , int count ) +{ void *retValue_acc ; + struct __ACC__ERR *new ; + void *tmp ; + struct __ACC__ERR *temp ; + struct __ACC__ERR *next ; + void *excep ; + unsigned long __cil_tmp10 ; + unsigned long __cil_tmp11 ; + unsigned long __cil_tmp12 ; + unsigned long __cil_tmp13 ; + void *__cil_tmp14 ; + unsigned long __cil_tmp15 ; + unsigned long __cil_tmp16 ; + void *__cil_tmp17 ; + void **mem_18 ; + struct __ACC__ERR **mem_19 ; + struct __ACC__ERR **mem_20 ; + void **mem_21 ; + struct __ACC__ERR **mem_22 ; + void **mem_23 ; + void **mem_24 ; + + { +#line 82 "libacc.c" + if (count == 0) { +#line 758 "libacc.c" + return (retValue_acc); + } else { + + } +#line 86 "libacc.c" + if (mode == 0) { + { +#line 87 + tmp = malloc(16UL); +#line 87 + new = (struct __ACC__ERR *)tmp; +#line 88 + mem_18 = (void **)new; +#line 88 + *mem_18 = env; +#line 89 + __cil_tmp10 = (unsigned long )new; +#line 89 + __cil_tmp11 = __cil_tmp10 + 8; +#line 89 + mem_19 = (struct __ACC__ERR **)__cil_tmp11; +#line 89 + *mem_19 = head; +#line 90 + head = new; +#line 776 "libacc.c" + retValue_acc = (void *)new; + } +#line 778 + return (retValue_acc); + } else { + + } +#line 94 "libacc.c" + if (mode == 1) { +#line 95 + temp = head; + { +#line 98 + while (1) { + while_7_continue: /* CIL Label */ ; +#line 98 + if (count > 1) { + + } else { + goto while_7_break; + } + { +#line 99 + __cil_tmp12 = (unsigned long )temp; +#line 99 + __cil_tmp13 = __cil_tmp12 + 8; +#line 99 + mem_20 = (struct __ACC__ERR **)__cil_tmp13; +#line 99 + next = *mem_20; +#line 100 + mem_21 = (void **)temp; +#line 100 + excep = *mem_21; +#line 101 + __cil_tmp14 = (void *)temp; +#line 101 + free(__cil_tmp14); +#line 102 + __utac__exception__cf_handler_reset(excep); +#line 103 + temp = next; +#line 104 + count = count - 1; + } + } + while_7_break: /* CIL Label */ ; + } + { +#line 107 + __cil_tmp15 = (unsigned long )temp; +#line 107 + __cil_tmp16 = __cil_tmp15 + 8; +#line 107 + mem_22 = (struct __ACC__ERR **)__cil_tmp16; +#line 107 + head = *mem_22; +#line 108 + mem_23 = (void **)temp; +#line 108 + excep = *mem_23; +#line 109 + __cil_tmp17 = (void *)temp; +#line 109 + free(__cil_tmp17); +#line 110 + __utac__exception__cf_handler_reset(excep); +#line 820 "libacc.c" + retValue_acc = excep; + } +#line 822 + return (retValue_acc); + } else { + + } +#line 114 + if (mode == 2) { +#line 118 "libacc.c" + if (head) { +#line 831 + mem_24 = (void **)head; +#line 831 + retValue_acc = *mem_24; +#line 833 + return (retValue_acc); + } else { +#line 837 "libacc.c" + retValue_acc = (void *)0; +#line 839 + return (retValue_acc); + } + } else { + + } +#line 846 "libacc.c" + return (retValue_acc); +} +} +#line 122 "libacc.c" +void *__utac__get_this_arg(int i , struct JoinPoint *this ) +{ void *retValue_acc ; + unsigned long __cil_tmp4 ; + unsigned long __cil_tmp5 ; + int __cil_tmp6 ; + int __cil_tmp7 ; + unsigned long __cil_tmp8 ; + unsigned long __cil_tmp9 ; + void **__cil_tmp10 ; + void **__cil_tmp11 ; + int *mem_12 ; + void ***mem_13 ; + + { +#line 123 + if (i > 0) { + { +#line 123 + __cil_tmp4 = (unsigned long )this; +#line 123 + __cil_tmp5 = __cil_tmp4 + 16; +#line 123 + mem_12 = (int *)__cil_tmp5; +#line 123 + __cil_tmp6 = *mem_12; +#line 123 + if (i <= __cil_tmp6) { + + } else { + { +#line 123 + __assert_fail("i > 0 && i <= this->argsCount", "libacc.c", + 123U, "__utac__get_this_arg"); + } + } + } + } else { + { +#line 123 + __assert_fail("i > 0 && i <= this->argsCount", "libacc.c", + 123U, "__utac__get_this_arg"); + } + } +#line 870 "libacc.c" + __cil_tmp7 = i - 1; +#line 870 + __cil_tmp8 = (unsigned long )this; +#line 870 + __cil_tmp9 = __cil_tmp8 + 8; +#line 870 + mem_13 = (void ***)__cil_tmp9; +#line 870 + __cil_tmp10 = *mem_13; +#line 870 + __cil_tmp11 = __cil_tmp10 + __cil_tmp7; +#line 870 + retValue_acc = *__cil_tmp11; +#line 872 + return (retValue_acc); +#line 879 + return (retValue_acc); +} +} +#line 129 "libacc.c" +char const *__utac__get_this_argtype(int i , struct JoinPoint *this ) +{ char const *retValue_acc ; + unsigned long __cil_tmp4 ; + unsigned long __cil_tmp5 ; + int __cil_tmp6 ; + int __cil_tmp7 ; + unsigned long __cil_tmp8 ; + unsigned long __cil_tmp9 ; + char const **__cil_tmp10 ; + char const **__cil_tmp11 ; + int *mem_12 ; + char const ***mem_13 ; + + { +#line 131 + if (i > 0) { + { +#line 131 + __cil_tmp4 = (unsigned long )this; +#line 131 + __cil_tmp5 = __cil_tmp4 + 16; +#line 131 + mem_12 = (int *)__cil_tmp5; +#line 131 + __cil_tmp6 = *mem_12; +#line 131 + if (i <= __cil_tmp6) { + + } else { + { +#line 131 + __assert_fail("i > 0 && i <= this->argsCount", "libacc.c", + 131U, "__utac__get_this_argtype"); + } + } + } + } else { + { +#line 131 + __assert_fail("i > 0 && i <= this->argsCount", "libacc.c", + 131U, "__utac__get_this_argtype"); + } + } +#line 903 "libacc.c" + __cil_tmp7 = i - 1; +#line 903 + __cil_tmp8 = (unsigned long )this; +#line 903 + __cil_tmp9 = __cil_tmp8 + 24; +#line 903 + mem_13 = (char const ***)__cil_tmp9; +#line 903 + __cil_tmp10 = *mem_13; +#line 903 + __cil_tmp11 = __cil_tmp10 + __cil_tmp7; +#line 903 + retValue_acc = *__cil_tmp11; +#line 905 + return (retValue_acc); +#line 912 + return (retValue_acc); +} +} +#line 1 "scenario.o" +#pragma merger(0,"scenario.i","") +#line 1 "scenario.c" +void test(void) +{ + + { + { +#line 2 + bigMacCall(); +#line 3 + angelinaCall(); +#line 4 + cleanup(); + } +#line 55 "scenario.c" + return; +} +} +#line 1 "UnitTests.o" +#pragma merger(0,"UnitTests.i","") +#line 24 "UnitTests.c" +void spec1(void) +{ int tmp ; + int tmp___0 ; + int i ; + int tmp___1 ; + + { + { +#line 25 + initBottomUp(); +#line 26 + tmp = getOrigin(5); +#line 26 + initPersonOnFloor(5, tmp); +#line 27 + printState(); +#line 30 + tmp___0 = getOrigin(2); +#line 30 + initPersonOnFloor(2, tmp___0); +#line 31 + printState(); +#line 35 + i = 0; + } + { +#line 35 + while (1) { + while_8_continue: /* CIL Label */ ; +#line 35 + if (i < cleanupTimeShifts) { + { +#line 35 + tmp___1 = isBlocked(); + } +#line 35 + if (tmp___1 != 1) { + + } else { + goto while_8_break; + } + } else { + goto while_8_break; + } + { +#line 36 + timeShift(); +#line 37 + printState(); +#line 35 + i = i + 1; + } + } + while_8_break: /* CIL Label */ ; + } +#line 1067 "UnitTests.c" + return; +} +} +#line 42 "UnitTests.c" +void spec14(void) +{ int tmp ; + int tmp___0 ; + int i ; + int tmp___1 ; + + { + { +#line 43 + initTopDown(); +#line 44 + tmp = getOrigin(5); +#line 44 + initPersonOnFloor(5, tmp); +#line 45 + printState(); +#line 47 + timeShift(); +#line 48 + timeShift(); +#line 49 + timeShift(); +#line 50 + timeShift(); +#line 52 + tmp___0 = getOrigin(0); +#line 52 + initPersonOnFloor(0, tmp___0); +#line 53 + printState(); +#line 57 + i = 0; + } + { +#line 57 + while (1) { + while_9_continue: /* CIL Label */ ; +#line 57 + if (i < cleanupTimeShifts) { + { +#line 57 + tmp___1 = isBlocked(); + } +#line 57 + if (tmp___1 != 1) { + + } else { + goto while_9_break; + } + } else { + goto while_9_break; + } + { +#line 58 + timeShift(); +#line 59 + printState(); +#line 57 + i = i + 1; + } + } + while_9_break: /* CIL Label */ ; + } +#line 1113 "UnitTests.c" + return; +} +} +#line 1 "Person.o" +#pragma merger(0,"Person.i","") +#line 10 "Person.h" +int getWeight(int person ) ; +#line 20 "Person.c" +int getWeight(int person ) +{ int retValue_acc ; + + { +#line 35 "Person.c" + if (person == 0) { +#line 974 + retValue_acc = 40; +#line 976 + return (retValue_acc); + } else { +#line 978 + if (person == 1) { +#line 983 + retValue_acc = 40; +#line 985 + return (retValue_acc); + } else { +#line 987 + if (person == 2) { +#line 992 + retValue_acc = 40; +#line 994 + return (retValue_acc); + } else { +#line 996 + if (person == 3) { +#line 1001 + retValue_acc = 40; +#line 1003 + return (retValue_acc); + } else { +#line 1005 + if (person == 4) { +#line 1010 + retValue_acc = 30; +#line 1012 + return (retValue_acc); + } else { +#line 1014 + if (person == 5) { +#line 1019 + retValue_acc = 150; +#line 1021 + return (retValue_acc); + } else { +#line 1027 "Person.c" + retValue_acc = 0; +#line 1029 + return (retValue_acc); + } + } + } + } + } + } +#line 1036 "Person.c" + return (retValue_acc); +} +} +#line 39 "Person.c" +int getOrigin(int person ) +{ int retValue_acc ; + + { +#line 54 "Person.c" + if (person == 0) { +#line 1061 + retValue_acc = 4; +#line 1063 + return (retValue_acc); + } else { +#line 1065 + if (person == 1) { +#line 1070 + retValue_acc = 3; +#line 1072 + return (retValue_acc); + } else { +#line 1074 + if (person == 2) { +#line 1079 + retValue_acc = 2; +#line 1081 + return (retValue_acc); + } else { +#line 1083 + if (person == 3) { +#line 1088 + retValue_acc = 1; +#line 1090 + return (retValue_acc); + } else { +#line 1092 + if (person == 4) { +#line 1097 + retValue_acc = 0; +#line 1099 + return (retValue_acc); + } else { +#line 1101 + if (person == 5) { +#line 1106 + retValue_acc = 1; +#line 1108 + return (retValue_acc); + } else { +#line 1114 "Person.c" + retValue_acc = 0; +#line 1116 + return (retValue_acc); + } + } + } + } + } + } +#line 1123 "Person.c" + return (retValue_acc); +} +} +#line 57 "Person.c" +int getDestination(int person ) +{ int retValue_acc ; + + { +#line 72 "Person.c" + if (person == 0) { +#line 1148 + retValue_acc = 0; +#line 1150 + return (retValue_acc); + } else { +#line 1152 + if (person == 1) { +#line 1157 + retValue_acc = 0; +#line 1159 + return (retValue_acc); + } else { +#line 1161 + if (person == 2) { +#line 1166 + retValue_acc = 1; +#line 1168 + return (retValue_acc); + } else { +#line 1170 + if (person == 3) { +#line 1175 + retValue_acc = 3; +#line 1177 + return (retValue_acc); + } else { +#line 1179 + if (person == 4) { +#line 1184 + retValue_acc = 1; +#line 1186 + return (retValue_acc); + } else { +#line 1188 + if (person == 5) { +#line 1193 + retValue_acc = 3; +#line 1195 + return (retValue_acc); + } else { +#line 1201 "Person.c" + retValue_acc = 0; +#line 1203 + return (retValue_acc); + } + } + } + } + } + } +#line 1210 "Person.c" + return (retValue_acc); +} +} +#line 1 "featureselect.o" +#pragma merger(0,"featureselect.i","") +#line 9 "featureselect.h" +int select_one(void) ; +#line 8 "featureselect.c" +int select_one(void) +{ int retValue_acc ; + int choice = __VERIFIER_nondet_int(); + + { +#line 63 "featureselect.c" + retValue_acc = choice; +#line 65 + return (retValue_acc); +#line 72 + return (retValue_acc); +} +} +#line 14 "featureselect.c" +void select_features(void) +{ + + { +#line 94 "featureselect.c" + return; +} +} +#line 20 "featureselect.c" +void select_helpers(void) +{ + + { +#line 112 "featureselect.c" + return; +} +} +#line 25 "featureselect.c" +int valid_product(void) +{ int retValue_acc ; + + { +#line 130 "featureselect.c" + retValue_acc = 1; +#line 132 + return (retValue_acc); +#line 139 + return (retValue_acc); +} +} +#line 1 "Specification1_spec.o" +#pragma merger(0,"Specification1_spec.i","") +#line 7 "Specification1_spec.c" +int landingButtons_spc1_0 ; +#line 8 "Specification1_spec.c" +int landingButtons_spc1_1 ; +#line 9 "Specification1_spec.c" +int landingButtons_spc1_2 ; +#line 10 "Specification1_spec.c" +int landingButtons_spc1_3 ; +#line 11 "Specification1_spec.c" +int landingButtons_spc1_4 ; +#line 15 "Specification1_spec.c" +void __utac_acc__Specification1_spec__1(void) +{ + + { +#line 17 + landingButtons_spc1_0 = 0; +#line 18 + landingButtons_spc1_1 = 0; +#line 19 + landingButtons_spc1_2 = 0; +#line 20 + landingButtons_spc1_3 = 0; +#line 21 + landingButtons_spc1_4 = 0; +#line 21 + return; +} +} +#line 25 "Specification1_spec.c" +void __utac_acc__Specification1_spec__2(int floor ) +{ + + { +#line 33 + if (floor == 0) { +#line 34 + landingButtons_spc1_0 = 1; + } else { +#line 35 + if (floor == 1) { +#line 36 + landingButtons_spc1_1 = 1; + } else { +#line 37 + if (floor == 2) { +#line 38 + landingButtons_spc1_2 = 1; + } else { +#line 39 + if (floor == 3) { +#line 40 + landingButtons_spc1_3 = 1; + } else { +#line 41 + if (floor == 4) { +#line 42 + landingButtons_spc1_4 = 1; + } else { + + } + } + } + } + } +#line 42 + return; +} +} +#line 35 "Specification1_spec.c" +void __utac_acc__Specification1_spec__3(void) +{ int floor ; + int tmp ; + int tmp___0 ; + int tmp___1 ; + int tmp___2 ; + int tmp___3 ; + int tmp___4 ; + + { + { +#line 37 + tmp = getCurrentFloorID(); +#line 37 + floor = tmp; + } +#line 38 + if (floor == 0) { +#line 38 + if (landingButtons_spc1_0) { + { +#line 38 + tmp___4 = areDoorsOpen(); + } +#line 38 + if (tmp___4) { +#line 39 + landingButtons_spc1_0 = 0; + } else { + goto _L___6; + } + } else { + goto _L___6; + } + } else { + _L___6: /* CIL Label */ +#line 40 + if (floor == 1) { +#line 40 + if (landingButtons_spc1_1) { + { +#line 40 + tmp___3 = areDoorsOpen(); + } +#line 40 + if (tmp___3) { +#line 41 + landingButtons_spc1_1 = 0; + } else { + goto _L___4; + } + } else { + goto _L___4; + } + } else { + _L___4: /* CIL Label */ +#line 42 + if (floor == 2) { +#line 42 + if (landingButtons_spc1_2) { + { +#line 42 + tmp___2 = areDoorsOpen(); + } +#line 42 + if (tmp___2) { +#line 43 + landingButtons_spc1_2 = 0; + } else { + goto _L___2; + } + } else { + goto _L___2; + } + } else { + _L___2: /* CIL Label */ +#line 44 + if (floor == 3) { +#line 44 + if (landingButtons_spc1_3) { + { +#line 44 + tmp___1 = areDoorsOpen(); + } +#line 44 + if (tmp___1) { +#line 45 + landingButtons_spc1_3 = 0; + } else { + goto _L___0; + } + } else { + goto _L___0; + } + } else { + _L___0: /* CIL Label */ +#line 46 + if (floor == 4) { +#line 46 + if (landingButtons_spc1_4) { + { +#line 46 + tmp___0 = areDoorsOpen(); + } +#line 46 + if (tmp___0) { +#line 47 + landingButtons_spc1_4 = 0; + } else { + + } + } else { + + } + } else { + + } + } + } + } + } +#line 47 + return; +} +} +#line 52 "Specification1_spec.c" +void __utac_acc__Specification1_spec__4(void) +{ + + { +#line 60 + if (landingButtons_spc1_0) { + { +#line 54 + __automaton_fail(); + } + } else { +#line 55 + if (landingButtons_spc1_1) { + { +#line 55 + __automaton_fail(); + } + } else { +#line 56 + if (landingButtons_spc1_2) { + { +#line 56 + __automaton_fail(); + } + } else { +#line 57 + if (landingButtons_spc1_3) { + { +#line 57 + __automaton_fail(); + } + } else { +#line 58 + if (landingButtons_spc1_4) { + { +#line 58 + __automaton_fail(); + } + } else { + + } + } + } + } + } +#line 58 + return; +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/email_spec0_product05_true-unreach-call.cil.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/email_spec0_product05_true-unreach-call.cil.c new file mode 100644 index 000000000..8fc4d3ebf --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/email_spec0_product05_true-unreach-call.cil.c @@ -0,0 +1,3782 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +extern int __VERIFIER_nondet_int(void); +/* Generated by CIL v. 1.3.7 */ +/* print_CIL_Input is true */ + +#line 2 "libacc.c" +struct JoinPoint { + void **(*fp)(struct JoinPoint * ) ; + void **args ; + int argsCount ; + char const **argsType ; + void *(*arg)(int , struct JoinPoint * ) ; + char const *(*argType)(int , struct JoinPoint * ) ; + void **retValue ; + char const *retType ; + char const *funcName ; + char const *targetName ; + char const *fileName ; + char const *kind ; + void *excep_return ; +}; +#line 18 "libacc.c" +struct __UTAC__CFLOW_FUNC { + int (*func)(int , int ) ; + int val ; + struct __UTAC__CFLOW_FUNC *next ; +}; +#line 18 "libacc.c" +struct __UTAC__EXCEPTION { + void *jumpbuf ; + unsigned long long prtValue ; + int pops ; + struct __UTAC__CFLOW_FUNC *cflowfuncs ; +}; +#line 211 "/usr/lib/gcc/x86_64-linux-gnu/4.4.5/include/stddef.h" +typedef unsigned long size_t; +#line 76 "libacc.c" +struct __ACC__ERR { + void *v ; + struct __ACC__ERR *next ; +}; +#line 1 "Test.o" +#pragma merger(0,"Test.i","") +#line 359 "/usr/include/stdio.h" +extern int printf(char const * __restrict __format , ...) ; +#line 688 +extern int puts(char const *__s ) ; +#line 51 "ClientLib.h" +void setClientForwardReceiver(int handle , int value ) ; +#line 55 +void setClientId(int handle , int value ) ; +#line 8 "featureselect.h" +int __SELECTED_FEATURE_Base ; +#line 11 "featureselect.h" +int __SELECTED_FEATURE_Keys ; +#line 14 "featureselect.h" +int __SELECTED_FEATURE_Encrypt ; +#line 17 "featureselect.h" +int __SELECTED_FEATURE_AutoResponder ; +#line 20 "featureselect.h" +int __SELECTED_FEATURE_AddressBook ; +#line 23 "featureselect.h" +int __SELECTED_FEATURE_Sign ; +#line 26 "featureselect.h" +int __SELECTED_FEATURE_Forward ; +#line 29 "featureselect.h" +int __SELECTED_FEATURE_Verify ; +#line 32 "featureselect.h" +int __SELECTED_FEATURE_Decrypt ; +#line 35 "featureselect.h" +int __GUIDSL_ROOT_PRODUCTION ; +#line 37 "featureselect.h" +int __GUIDSL_NON_TERMINAL_main ; +#line 43 +void select_features(void) ; +#line 45 +void select_helpers(void) ; +#line 47 +int valid_product(void) ; +#line 17 "Client.h" +int is_queue_empty(void) ; +#line 19 +int get_queued_client(void) ; +#line 21 +int get_queued_email(void) ; +#line 26 +void outgoing(int client , int msg ) ; +#line 35 +void sendEmail(int sender , int receiver ) ; +#line 2 "Test.h" +int bob ; +#line 5 "Test.h" +int rjh ; +#line 8 "Test.h" +int chuck ; +#line 11 +void setup_bob(int bob___0 ) ; +#line 14 +void setup_rjh(int rjh___0 ) ; +#line 17 +void setup_chuck(int chuck___0 ) ; +#line 23 +void bobToRjh(void) ; +#line 26 +void rjhToBob(void) ; +#line 29 +void test(void) ; +#line 32 +void setup(void) ; +#line 35 +int main(void) ; +#line 36 +void rjhEnableForwarding(void) ; +#line 18 "Test.c" +void setup_bob(int bob___0 ) +{ + + { + { +#line 19 + setClientId(bob___0, bob___0); + } +#line 1304 "Test.c" + return; +} +} +#line 26 "Test.c" +void setup_rjh(int rjh___0 ) +{ + + { + { +#line 27 + setClientId(rjh___0, rjh___0); + } +#line 1324 "Test.c" + return; +} +} +#line 33 "Test.c" +void setup_chuck(int chuck___0 ) +{ + + { + { +#line 34 + setClientId(chuck___0, chuck___0); + } +#line 1344 "Test.c" + return; +} +} +#line 44 "Test.c" +void bobToRjh(void) +{ int tmp ; + int tmp___0 ; + int tmp___1 ; + + { + { +#line 46 + puts("Please enter a subject and a message body.\n"); +#line 47 + sendEmail(bob, rjh); +#line 48 + tmp___1 = is_queue_empty(); + } +#line 48 + if (tmp___1) { + + } else { + { +#line 49 + tmp = get_queued_email(); +#line 49 + tmp___0 = get_queued_client(); +#line 49 + outgoing(tmp___0, tmp); + } + } +#line 1371 "Test.c" + return; +} +} +#line 56 "Test.c" +void rjhToBob(void) +{ + + { + { +#line 58 + puts("Please enter a subject and a message body.\n"); +#line 59 + sendEmail(rjh, bob); + } +#line 1393 "Test.c" + return; +} +} +#line 63 "Test.c" +#line 70 "Test.c" +void setup(void) +{ char const * __restrict __cil_tmp1 ; + char const * __restrict __cil_tmp2 ; + char const * __restrict __cil_tmp3 ; + + { + { +#line 71 + bob = 1; +#line 72 + setup_bob(bob); +#line 73 + __cil_tmp1 = (char const * __restrict )"bob: %d\n"; +#line 73 + printf(__cil_tmp1, bob); +#line 75 + rjh = 2; +#line 76 + setup_rjh(rjh); +#line 77 + __cil_tmp2 = (char const * __restrict )"rjh: %d\n"; +#line 77 + printf(__cil_tmp2, rjh); +#line 79 + chuck = 3; +#line 80 + setup_chuck(chuck); +#line 81 + __cil_tmp3 = (char const * __restrict )"chuck: %d\n"; +#line 81 + printf(__cil_tmp3, chuck); + } +#line 1464 "Test.c" + return; +} +} +#line 87 "Test.c" +int main(void) +{ int retValue_acc ; + int tmp ; + + { + { +#line 88 + select_helpers(); +#line 89 + select_features(); +#line 90 + tmp = valid_product(); + } +#line 90 + if (tmp) { + { +#line 91 + setup(); +#line 92 + test(); + } + } else { + + } +#line 1495 "Test.c" + return (retValue_acc); +} +} +#line 100 "Test.c" +void rjhEnableForwarding(void) +{ + + { + { +#line 101 + setClientForwardReceiver(rjh, chuck); + } +#line 1519 "Test.c" + return; +} +} +#line 1 "wsllib_check.o" +#pragma merger(0,"wsllib_check.i","") +#line 3 "wsllib_check.c" +void __automaton_fail(void) +{ + + { + ERROR: __VERIFIER_error(); +#line 53 "wsllib_check.c" + return; +} +} +#line 1 "scenario.o" +#pragma merger(0,"scenario.i","") +#line 1 "scenario.c" +void test(void) +{ int op1 ; + int op2 ; + int op3 ; + int op4 ; + int op5 ; + int op6 ; + int op7 ; + int op8 ; + int op9 ; + int op10 ; + int op11 ; + int splverifierCounter ; + int tmp ; + int tmp___0 ; + int tmp___1 ; + int tmp___2 ; + int tmp___3 ; + int tmp___4 ; + int tmp___5 ; + int tmp___6 ; + int tmp___7 ; + int tmp___8 ; + int tmp___9 ; + + { +#line 2 + op1 = 0; +#line 3 + op2 = 0; +#line 4 + op3 = 0; +#line 5 + op4 = 0; +#line 6 + op5 = 0; +#line 7 + op6 = 0; +#line 8 + op7 = 0; +#line 9 + op8 = 0; +#line 10 + op9 = 0; +#line 11 + op10 = 0; +#line 12 + op11 = 0; +#line 13 + splverifierCounter = 0; + { +#line 14 + while (1) { + while_0_continue: /* CIL Label */ ; +#line 14 + if (splverifierCounter < 4) { + + } else { + goto while_0_break; + } +#line 15 + splverifierCounter = splverifierCounter + 1; +#line 16 + if (! op1) { + { +#line 16 + tmp___9 = __VERIFIER_nondet_int(); + } +#line 16 + if (tmp___9) { +#line 17 + op1 = 1; + } else { + goto _L___8; + } + } else { + _L___8: /* CIL Label */ +#line 18 + if (! op2) { + { +#line 18 + tmp___8 = __VERIFIER_nondet_int(); + } +#line 18 + if (tmp___8) { +#line 20 + op2 = 1; + } else { + goto _L___7; + } + } else { + _L___7: /* CIL Label */ +#line 21 + if (! op3) { + { +#line 21 + tmp___7 = __VERIFIER_nondet_int(); + } +#line 21 + if (tmp___7) { +#line 23 + op3 = 1; + } else { + goto _L___6; + } + } else { + _L___6: /* CIL Label */ +#line 24 + if (! op4) { + { +#line 24 + tmp___6 = __VERIFIER_nondet_int(); + } +#line 24 + if (tmp___6) { +#line 26 + op4 = 1; + } else { + goto _L___5; + } + } else { + _L___5: /* CIL Label */ +#line 27 + if (! op5) { + { +#line 27 + tmp___5 = __VERIFIER_nondet_int(); + } +#line 27 + if (tmp___5) { +#line 29 + op5 = 1; + } else { + goto _L___4; + } + } else { + _L___4: /* CIL Label */ +#line 30 + if (! op6) { + { +#line 30 + tmp___4 = __VERIFIER_nondet_int(); + } +#line 30 + if (tmp___4) { + { +#line 32 + rjhEnableForwarding(); +#line 33 + op6 = 1; + } + } else { + goto _L___3; + } + } else { + _L___3: /* CIL Label */ +#line 34 + if (! op7) { + { +#line 34 + tmp___3 = __VERIFIER_nondet_int(); + } +#line 34 + if (tmp___3) { +#line 36 + op7 = 1; + } else { + goto _L___2; + } + } else { + _L___2: /* CIL Label */ +#line 37 + if (! op8) { + { +#line 37 + tmp___2 = __VERIFIER_nondet_int(); + } +#line 37 + if (tmp___2) { +#line 39 + op8 = 1; + } else { + goto _L___1; + } + } else { + _L___1: /* CIL Label */ +#line 40 + if (! op9) { + { +#line 40 + tmp___1 = __VERIFIER_nondet_int(); + } +#line 40 + if (tmp___1) { +#line 42 + op9 = 1; + } else { + goto _L___0; + } + } else { + _L___0: /* CIL Label */ +#line 43 + if (! op10) { + { +#line 43 + tmp___0 = __VERIFIER_nondet_int(); + } +#line 43 + if (tmp___0) { +#line 45 + op10 = 1; + } else { + goto _L; + } + } else { + _L: /* CIL Label */ +#line 46 + if (! op11) { + { +#line 46 + tmp = __VERIFIER_nondet_int(); + } +#line 46 + if (tmp) { +#line 48 + op11 = 1; + } else { + goto while_0_break; + } + } else { + goto while_0_break; + } + } + } + } + } + } + } + } + } + } + } + } + while_0_break: /* CIL Label */ ; + } + { +#line 52 + bobToRjh(); + } +#line 151 "scenario.c" + return; +} +} +#line 1 "EmailLib.o" +#pragma merger(0,"EmailLib.i","") +#line 4 "EmailLib.h" +int initEmail(void) ; +#line 6 +int getEmailId(int handle ) ; +#line 8 +void setEmailId(int handle , int value ) ; +#line 10 +int getEmailFrom(int handle ) ; +#line 12 +void setEmailFrom(int handle , int value ) ; +#line 14 +int getEmailTo(int handle ) ; +#line 16 +void setEmailTo(int handle , int value ) ; +#line 18 +char *getEmailSubject(int handle ) ; +#line 20 +void setEmailSubject(int handle , char *value ) ; +#line 22 +char *getEmailBody(int handle ) ; +#line 24 +void setEmailBody(int handle , char *value ) ; +#line 26 +int isEncrypted(int handle ) ; +#line 28 +void setEmailIsEncrypted(int handle , int value ) ; +#line 30 +int getEmailEncryptionKey(int handle ) ; +#line 32 +void setEmailEncryptionKey(int handle , int value ) ; +#line 34 +int isSigned(int handle ) ; +#line 36 +void setEmailIsSigned(int handle , int value ) ; +#line 38 +int getEmailSignKey(int handle ) ; +#line 40 +void setEmailSignKey(int handle , int value ) ; +#line 42 +int isVerified(int handle ) ; +#line 44 +void setEmailIsSignatureVerified(int handle , int value ) ; +#line 5 "EmailLib.c" +int __ste_Email_counter = 0; +#line 7 "EmailLib.c" +int initEmail(void) +{ int retValue_acc ; + + { +#line 12 "EmailLib.c" + if (__ste_Email_counter < 2) { +#line 670 + __ste_Email_counter = __ste_Email_counter + 1; +#line 670 + retValue_acc = __ste_Email_counter; +#line 672 + return (retValue_acc); + } else { +#line 678 "EmailLib.c" + retValue_acc = -1; +#line 680 + return (retValue_acc); + } +#line 687 "EmailLib.c" + return (retValue_acc); +} +} +#line 15 "EmailLib.c" +int __ste_email_id0 = 0; +#line 17 "EmailLib.c" +int __ste_email_id1 = 0; +#line 19 "EmailLib.c" +int getEmailId(int handle ) +{ int retValue_acc ; + + { +#line 26 "EmailLib.c" + if (handle == 1) { +#line 716 + retValue_acc = __ste_email_id0; +#line 718 + return (retValue_acc); + } else { +#line 720 + if (handle == 2) { +#line 725 + retValue_acc = __ste_email_id1; +#line 727 + return (retValue_acc); + } else { +#line 733 "EmailLib.c" + retValue_acc = 0; +#line 735 + return (retValue_acc); + } + } +#line 742 "EmailLib.c" + return (retValue_acc); +} +} +#line 29 "EmailLib.c" +void setEmailId(int handle , int value ) +{ + + { +#line 35 + if (handle == 1) { +#line 31 + __ste_email_id0 = value; + } else { +#line 32 + if (handle == 2) { +#line 33 + __ste_email_id1 = value; + } else { + + } + } +#line 773 "EmailLib.c" + return; +} +} +#line 37 "EmailLib.c" +int __ste_email_from0 = 0; +#line 39 "EmailLib.c" +int __ste_email_from1 = 0; +#line 41 "EmailLib.c" +int getEmailFrom(int handle ) +{ int retValue_acc ; + + { +#line 48 "EmailLib.c" + if (handle == 1) { +#line 798 + retValue_acc = __ste_email_from0; +#line 800 + return (retValue_acc); + } else { +#line 802 + if (handle == 2) { +#line 807 + retValue_acc = __ste_email_from1; +#line 809 + return (retValue_acc); + } else { +#line 815 "EmailLib.c" + retValue_acc = 0; +#line 817 + return (retValue_acc); + } + } +#line 824 "EmailLib.c" + return (retValue_acc); +} +} +#line 51 "EmailLib.c" +void setEmailFrom(int handle , int value ) +{ + + { +#line 57 + if (handle == 1) { +#line 53 + __ste_email_from0 = value; + } else { +#line 54 + if (handle == 2) { +#line 55 + __ste_email_from1 = value; + } else { + + } + } +#line 855 "EmailLib.c" + return; +} +} +#line 59 "EmailLib.c" +int __ste_email_to0 = 0; +#line 61 "EmailLib.c" +int __ste_email_to1 = 0; +#line 63 "EmailLib.c" +int getEmailTo(int handle ) +{ int retValue_acc ; + + { +#line 70 "EmailLib.c" + if (handle == 1) { +#line 880 + retValue_acc = __ste_email_to0; +#line 882 + return (retValue_acc); + } else { +#line 884 + if (handle == 2) { +#line 889 + retValue_acc = __ste_email_to1; +#line 891 + return (retValue_acc); + } else { +#line 897 "EmailLib.c" + retValue_acc = 0; +#line 899 + return (retValue_acc); + } + } +#line 906 "EmailLib.c" + return (retValue_acc); +} +} +#line 73 "EmailLib.c" +void setEmailTo(int handle , int value ) +{ + + { +#line 79 + if (handle == 1) { +#line 75 + __ste_email_to0 = value; + } else { +#line 76 + if (handle == 2) { +#line 77 + __ste_email_to1 = value; + } else { + + } + } +#line 937 "EmailLib.c" + return; +} +} +#line 81 "EmailLib.c" +char *__ste_email_subject0 ; +#line 83 "EmailLib.c" +char *__ste_email_subject1 ; +#line 85 "EmailLib.c" +char *getEmailSubject(int handle ) +{ char *retValue_acc ; + void *__cil_tmp3 ; + + { +#line 92 "EmailLib.c" + if (handle == 1) { +#line 962 + retValue_acc = __ste_email_subject0; +#line 964 + return (retValue_acc); + } else { +#line 966 + if (handle == 2) { +#line 971 + retValue_acc = __ste_email_subject1; +#line 973 + return (retValue_acc); + } else { +#line 979 "EmailLib.c" + __cil_tmp3 = (void *)0; +#line 979 + retValue_acc = (char *)__cil_tmp3; +#line 981 + return (retValue_acc); + } + } +#line 988 "EmailLib.c" + return (retValue_acc); +} +} +#line 95 "EmailLib.c" +void setEmailSubject(int handle , char *value ) +{ + + { +#line 101 + if (handle == 1) { +#line 97 + __ste_email_subject0 = value; + } else { +#line 98 + if (handle == 2) { +#line 99 + __ste_email_subject1 = value; + } else { + + } + } +#line 1019 "EmailLib.c" + return; +} +} +#line 103 "EmailLib.c" +char *__ste_email_body0 = (char *)0; +#line 105 "EmailLib.c" +char *__ste_email_body1 = (char *)0; +#line 107 "EmailLib.c" +char *getEmailBody(int handle ) +{ char *retValue_acc ; + void *__cil_tmp3 ; + + { +#line 114 "EmailLib.c" + if (handle == 1) { +#line 1044 + retValue_acc = __ste_email_body0; +#line 1046 + return (retValue_acc); + } else { +#line 1048 + if (handle == 2) { +#line 1053 + retValue_acc = __ste_email_body1; +#line 1055 + return (retValue_acc); + } else { +#line 1061 "EmailLib.c" + __cil_tmp3 = (void *)0; +#line 1061 + retValue_acc = (char *)__cil_tmp3; +#line 1063 + return (retValue_acc); + } + } +#line 1070 "EmailLib.c" + return (retValue_acc); +} +} +#line 117 "EmailLib.c" +void setEmailBody(int handle , char *value ) +{ + + { +#line 123 + if (handle == 1) { +#line 119 + __ste_email_body0 = value; + } else { +#line 120 + if (handle == 2) { +#line 121 + __ste_email_body1 = value; + } else { + + } + } +#line 1101 "EmailLib.c" + return; +} +} +#line 125 "EmailLib.c" +int __ste_email_isEncrypted0 = 0; +#line 127 "EmailLib.c" +int __ste_email_isEncrypted1 = 0; +#line 129 "EmailLib.c" +int isEncrypted(int handle ) +{ int retValue_acc ; + + { +#line 136 "EmailLib.c" + if (handle == 1) { +#line 1126 + retValue_acc = __ste_email_isEncrypted0; +#line 1128 + return (retValue_acc); + } else { +#line 1130 + if (handle == 2) { +#line 1135 + retValue_acc = __ste_email_isEncrypted1; +#line 1137 + return (retValue_acc); + } else { +#line 1143 "EmailLib.c" + retValue_acc = 0; +#line 1145 + return (retValue_acc); + } + } +#line 1152 "EmailLib.c" + return (retValue_acc); +} +} +#line 139 "EmailLib.c" +void setEmailIsEncrypted(int handle , int value ) +{ + + { +#line 145 + if (handle == 1) { +#line 141 + __ste_email_isEncrypted0 = value; + } else { +#line 142 + if (handle == 2) { +#line 143 + __ste_email_isEncrypted1 = value; + } else { + + } + } +#line 1183 "EmailLib.c" + return; +} +} +#line 147 "EmailLib.c" +int __ste_email_encryptionKey0 = 0; +#line 149 "EmailLib.c" +int __ste_email_encryptionKey1 = 0; +#line 151 "EmailLib.c" +int getEmailEncryptionKey(int handle ) +{ int retValue_acc ; + + { +#line 158 "EmailLib.c" + if (handle == 1) { +#line 1208 + retValue_acc = __ste_email_encryptionKey0; +#line 1210 + return (retValue_acc); + } else { +#line 1212 + if (handle == 2) { +#line 1217 + retValue_acc = __ste_email_encryptionKey1; +#line 1219 + return (retValue_acc); + } else { +#line 1225 "EmailLib.c" + retValue_acc = 0; +#line 1227 + return (retValue_acc); + } + } +#line 1234 "EmailLib.c" + return (retValue_acc); +} +} +#line 161 "EmailLib.c" +void setEmailEncryptionKey(int handle , int value ) +{ + + { +#line 167 + if (handle == 1) { +#line 163 + __ste_email_encryptionKey0 = value; + } else { +#line 164 + if (handle == 2) { +#line 165 + __ste_email_encryptionKey1 = value; + } else { + + } + } +#line 1265 "EmailLib.c" + return; +} +} +#line 169 "EmailLib.c" +int __ste_email_isSigned0 = 0; +#line 171 "EmailLib.c" +int __ste_email_isSigned1 = 0; +#line 173 "EmailLib.c" +int isSigned(int handle ) +{ int retValue_acc ; + + { +#line 180 "EmailLib.c" + if (handle == 1) { +#line 1290 + retValue_acc = __ste_email_isSigned0; +#line 1292 + return (retValue_acc); + } else { +#line 1294 + if (handle == 2) { +#line 1299 + retValue_acc = __ste_email_isSigned1; +#line 1301 + return (retValue_acc); + } else { +#line 1307 "EmailLib.c" + retValue_acc = 0; +#line 1309 + return (retValue_acc); + } + } +#line 1316 "EmailLib.c" + return (retValue_acc); +} +} +#line 183 "EmailLib.c" +void setEmailIsSigned(int handle , int value ) +{ + + { +#line 189 + if (handle == 1) { +#line 185 + __ste_email_isSigned0 = value; + } else { +#line 186 + if (handle == 2) { +#line 187 + __ste_email_isSigned1 = value; + } else { + + } + } +#line 1347 "EmailLib.c" + return; +} +} +#line 191 "EmailLib.c" +int __ste_email_signKey0 = 0; +#line 193 "EmailLib.c" +int __ste_email_signKey1 = 0; +#line 195 "EmailLib.c" +int getEmailSignKey(int handle ) +{ int retValue_acc ; + + { +#line 202 "EmailLib.c" + if (handle == 1) { +#line 1372 + retValue_acc = __ste_email_signKey0; +#line 1374 + return (retValue_acc); + } else { +#line 1376 + if (handle == 2) { +#line 1381 + retValue_acc = __ste_email_signKey1; +#line 1383 + return (retValue_acc); + } else { +#line 1389 "EmailLib.c" + retValue_acc = 0; +#line 1391 + return (retValue_acc); + } + } +#line 1398 "EmailLib.c" + return (retValue_acc); +} +} +#line 205 "EmailLib.c" +void setEmailSignKey(int handle , int value ) +{ + + { +#line 211 + if (handle == 1) { +#line 207 + __ste_email_signKey0 = value; + } else { +#line 208 + if (handle == 2) { +#line 209 + __ste_email_signKey1 = value; + } else { + + } + } +#line 1429 "EmailLib.c" + return; +} +} +#line 213 "EmailLib.c" +int __ste_email_isSignatureVerified0 ; +#line 215 "EmailLib.c" +int __ste_email_isSignatureVerified1 ; +#line 217 "EmailLib.c" +int isVerified(int handle ) +{ int retValue_acc ; + + { +#line 224 "EmailLib.c" + if (handle == 1) { +#line 1454 + retValue_acc = __ste_email_isSignatureVerified0; +#line 1456 + return (retValue_acc); + } else { +#line 1458 + if (handle == 2) { +#line 1463 + retValue_acc = __ste_email_isSignatureVerified1; +#line 1465 + return (retValue_acc); + } else { +#line 1471 "EmailLib.c" + retValue_acc = 0; +#line 1473 + return (retValue_acc); + } + } +#line 1480 "EmailLib.c" + return (retValue_acc); +} +} +#line 227 "EmailLib.c" +void setEmailIsSignatureVerified(int handle , int value ) +{ + + { +#line 233 + if (handle == 1) { +#line 229 + __ste_email_isSignatureVerified0 = value; + } else { +#line 230 + if (handle == 2) { +#line 231 + __ste_email_isSignatureVerified1 = value; + } else { + + } + } +#line 1511 "EmailLib.c" + return; +} +} +#line 1 "libacc.o" +#pragma merger(0,"libacc.i","") +#line 73 "/usr/include/assert.h" +extern __attribute__((__nothrow__, __noreturn__)) void __assert_fail(char const *__assertion , + char const *__file , + unsigned int __line , + char const *__function ) ; +#line 471 "/usr/include/stdlib.h" +extern __attribute__((__nothrow__)) void *malloc(size_t __size ) __attribute__((__malloc__)) ; +#line 488 +extern __attribute__((__nothrow__)) void free(void *__ptr ) ; +#line 32 "libacc.c" +void __utac__exception__cf_handler_set(void *exception , int (*cflow_func)(int , + int ) , + int val ) +{ struct __UTAC__EXCEPTION *excep ; + struct __UTAC__CFLOW_FUNC *cf ; + void *tmp ; + unsigned long __cil_tmp7 ; + unsigned long __cil_tmp8 ; + unsigned long __cil_tmp9 ; + unsigned long __cil_tmp10 ; + unsigned long __cil_tmp11 ; + unsigned long __cil_tmp12 ; + unsigned long __cil_tmp13 ; + unsigned long __cil_tmp14 ; + int (**mem_15)(int , int ) ; + int *mem_16 ; + struct __UTAC__CFLOW_FUNC **mem_17 ; + struct __UTAC__CFLOW_FUNC **mem_18 ; + struct __UTAC__CFLOW_FUNC **mem_19 ; + + { + { +#line 33 + excep = (struct __UTAC__EXCEPTION *)exception; +#line 34 + tmp = malloc(24UL); +#line 34 + cf = (struct __UTAC__CFLOW_FUNC *)tmp; +#line 36 + mem_15 = (int (**)(int , int ))cf; +#line 36 + *mem_15 = cflow_func; +#line 37 + __cil_tmp7 = (unsigned long )cf; +#line 37 + __cil_tmp8 = __cil_tmp7 + 8; +#line 37 + mem_16 = (int *)__cil_tmp8; +#line 37 + *mem_16 = val; +#line 38 + __cil_tmp9 = (unsigned long )cf; +#line 38 + __cil_tmp10 = __cil_tmp9 + 16; +#line 38 + __cil_tmp11 = (unsigned long )excep; +#line 38 + __cil_tmp12 = __cil_tmp11 + 24; +#line 38 + mem_17 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp10; +#line 38 + mem_18 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp12; +#line 38 + *mem_17 = *mem_18; +#line 39 + __cil_tmp13 = (unsigned long )excep; +#line 39 + __cil_tmp14 = __cil_tmp13 + 24; +#line 39 + mem_19 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp14; +#line 39 + *mem_19 = cf; + } +#line 654 "libacc.c" + return; +} +} +#line 44 "libacc.c" +void __utac__exception__cf_handler_free(void *exception ) +{ struct __UTAC__EXCEPTION *excep ; + struct __UTAC__CFLOW_FUNC *cf ; + struct __UTAC__CFLOW_FUNC *tmp ; + unsigned long __cil_tmp5 ; + unsigned long __cil_tmp6 ; + struct __UTAC__CFLOW_FUNC *__cil_tmp7 ; + unsigned long __cil_tmp8 ; + unsigned long __cil_tmp9 ; + unsigned long __cil_tmp10 ; + unsigned long __cil_tmp11 ; + void *__cil_tmp12 ; + unsigned long __cil_tmp13 ; + unsigned long __cil_tmp14 ; + struct __UTAC__CFLOW_FUNC **mem_15 ; + struct __UTAC__CFLOW_FUNC **mem_16 ; + struct __UTAC__CFLOW_FUNC **mem_17 ; + + { +#line 45 + excep = (struct __UTAC__EXCEPTION *)exception; +#line 46 + __cil_tmp5 = (unsigned long )excep; +#line 46 + __cil_tmp6 = __cil_tmp5 + 24; +#line 46 + mem_15 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp6; +#line 46 + cf = *mem_15; + { +#line 49 + while (1) { + while_1_continue: /* CIL Label */ ; + { +#line 49 + __cil_tmp7 = (struct __UTAC__CFLOW_FUNC *)0; +#line 49 + __cil_tmp8 = (unsigned long )__cil_tmp7; +#line 49 + __cil_tmp9 = (unsigned long )cf; +#line 49 + if (__cil_tmp9 != __cil_tmp8) { + + } else { + goto while_1_break; + } + } + { +#line 50 + tmp = cf; +#line 51 + __cil_tmp10 = (unsigned long )cf; +#line 51 + __cil_tmp11 = __cil_tmp10 + 16; +#line 51 + mem_16 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp11; +#line 51 + cf = *mem_16; +#line 52 + __cil_tmp12 = (void *)tmp; +#line 52 + free(__cil_tmp12); + } + } + while_1_break: /* CIL Label */ ; + } +#line 55 + __cil_tmp13 = (unsigned long )excep; +#line 55 + __cil_tmp14 = __cil_tmp13 + 24; +#line 55 + mem_17 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp14; +#line 55 + *mem_17 = (struct __UTAC__CFLOW_FUNC *)0; +#line 694 "libacc.c" + return; +} +} +#line 59 "libacc.c" +void __utac__exception__cf_handler_reset(void *exception ) +{ struct __UTAC__EXCEPTION *excep ; + struct __UTAC__CFLOW_FUNC *cf ; + unsigned long __cil_tmp5 ; + unsigned long __cil_tmp6 ; + struct __UTAC__CFLOW_FUNC *__cil_tmp7 ; + unsigned long __cil_tmp8 ; + unsigned long __cil_tmp9 ; + int (*__cil_tmp10)(int , int ) ; + unsigned long __cil_tmp11 ; + unsigned long __cil_tmp12 ; + int __cil_tmp13 ; + unsigned long __cil_tmp14 ; + unsigned long __cil_tmp15 ; + struct __UTAC__CFLOW_FUNC **mem_16 ; + int (**mem_17)(int , int ) ; + int *mem_18 ; + struct __UTAC__CFLOW_FUNC **mem_19 ; + + { +#line 60 + excep = (struct __UTAC__EXCEPTION *)exception; +#line 61 + __cil_tmp5 = (unsigned long )excep; +#line 61 + __cil_tmp6 = __cil_tmp5 + 24; +#line 61 + mem_16 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp6; +#line 61 + cf = *mem_16; + { +#line 64 + while (1) { + while_2_continue: /* CIL Label */ ; + { +#line 64 + __cil_tmp7 = (struct __UTAC__CFLOW_FUNC *)0; +#line 64 + __cil_tmp8 = (unsigned long )__cil_tmp7; +#line 64 + __cil_tmp9 = (unsigned long )cf; +#line 64 + if (__cil_tmp9 != __cil_tmp8) { + + } else { + goto while_2_break; + } + } + { +#line 65 + mem_17 = (int (**)(int , int ))cf; +#line 65 + __cil_tmp10 = *mem_17; +#line 65 + __cil_tmp11 = (unsigned long )cf; +#line 65 + __cil_tmp12 = __cil_tmp11 + 8; +#line 65 + mem_18 = (int *)__cil_tmp12; +#line 65 + __cil_tmp13 = *mem_18; +#line 65 + (*__cil_tmp10)(4, __cil_tmp13); +#line 66 + __cil_tmp14 = (unsigned long )cf; +#line 66 + __cil_tmp15 = __cil_tmp14 + 16; +#line 66 + mem_19 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp15; +#line 66 + cf = *mem_19; + } + } + while_2_break: /* CIL Label */ ; + } + { +#line 69 + __utac__exception__cf_handler_free(exception); + } +#line 732 "libacc.c" + return; +} +} +#line 80 "libacc.c" +void *__utac__error_stack_mgt(void *env , int mode , int count ) ; +#line 80 "libacc.c" +static struct __ACC__ERR *head = (struct __ACC__ERR *)0; +#line 79 "libacc.c" +void *__utac__error_stack_mgt(void *env , int mode , int count ) +{ void *retValue_acc ; + struct __ACC__ERR *new ; + void *tmp ; + struct __ACC__ERR *temp ; + struct __ACC__ERR *next ; + void *excep ; + unsigned long __cil_tmp10 ; + unsigned long __cil_tmp11 ; + unsigned long __cil_tmp12 ; + unsigned long __cil_tmp13 ; + void *__cil_tmp14 ; + unsigned long __cil_tmp15 ; + unsigned long __cil_tmp16 ; + void *__cil_tmp17 ; + void **mem_18 ; + struct __ACC__ERR **mem_19 ; + struct __ACC__ERR **mem_20 ; + void **mem_21 ; + struct __ACC__ERR **mem_22 ; + void **mem_23 ; + void **mem_24 ; + + { +#line 82 "libacc.c" + if (count == 0) { +#line 758 "libacc.c" + return (retValue_acc); + } else { + + } +#line 86 "libacc.c" + if (mode == 0) { + { +#line 87 + tmp = malloc(16UL); +#line 87 + new = (struct __ACC__ERR *)tmp; +#line 88 + mem_18 = (void **)new; +#line 88 + *mem_18 = env; +#line 89 + __cil_tmp10 = (unsigned long )new; +#line 89 + __cil_tmp11 = __cil_tmp10 + 8; +#line 89 + mem_19 = (struct __ACC__ERR **)__cil_tmp11; +#line 89 + *mem_19 = head; +#line 90 + head = new; +#line 776 "libacc.c" + retValue_acc = (void *)new; + } +#line 778 + return (retValue_acc); + } else { + + } +#line 94 "libacc.c" + if (mode == 1) { +#line 95 + temp = head; + { +#line 98 + while (1) { + while_3_continue: /* CIL Label */ ; +#line 98 + if (count > 1) { + + } else { + goto while_3_break; + } + { +#line 99 + __cil_tmp12 = (unsigned long )temp; +#line 99 + __cil_tmp13 = __cil_tmp12 + 8; +#line 99 + mem_20 = (struct __ACC__ERR **)__cil_tmp13; +#line 99 + next = *mem_20; +#line 100 + mem_21 = (void **)temp; +#line 100 + excep = *mem_21; +#line 101 + __cil_tmp14 = (void *)temp; +#line 101 + free(__cil_tmp14); +#line 102 + __utac__exception__cf_handler_reset(excep); +#line 103 + temp = next; +#line 104 + count = count - 1; + } + } + while_3_break: /* CIL Label */ ; + } + { +#line 107 + __cil_tmp15 = (unsigned long )temp; +#line 107 + __cil_tmp16 = __cil_tmp15 + 8; +#line 107 + mem_22 = (struct __ACC__ERR **)__cil_tmp16; +#line 107 + head = *mem_22; +#line 108 + mem_23 = (void **)temp; +#line 108 + excep = *mem_23; +#line 109 + __cil_tmp17 = (void *)temp; +#line 109 + free(__cil_tmp17); +#line 110 + __utac__exception__cf_handler_reset(excep); +#line 820 "libacc.c" + retValue_acc = excep; + } +#line 822 + return (retValue_acc); + } else { + + } +#line 114 + if (mode == 2) { +#line 118 "libacc.c" + if (head) { +#line 831 + mem_24 = (void **)head; +#line 831 + retValue_acc = *mem_24; +#line 833 + return (retValue_acc); + } else { +#line 837 "libacc.c" + retValue_acc = (void *)0; +#line 839 + return (retValue_acc); + } + } else { + + } +#line 846 "libacc.c" + return (retValue_acc); +} +} +#line 122 "libacc.c" +void *__utac__get_this_arg(int i , struct JoinPoint *this ) +{ void *retValue_acc ; + unsigned long __cil_tmp4 ; + unsigned long __cil_tmp5 ; + int __cil_tmp6 ; + int __cil_tmp7 ; + unsigned long __cil_tmp8 ; + unsigned long __cil_tmp9 ; + void **__cil_tmp10 ; + void **__cil_tmp11 ; + int *mem_12 ; + void ***mem_13 ; + + { +#line 123 + if (i > 0) { + { +#line 123 + __cil_tmp4 = (unsigned long )this; +#line 123 + __cil_tmp5 = __cil_tmp4 + 16; +#line 123 + mem_12 = (int *)__cil_tmp5; +#line 123 + __cil_tmp6 = *mem_12; +#line 123 + if (i <= __cil_tmp6) { + + } else { + { +#line 123 + __assert_fail("i > 0 && i <= this->argsCount", "libacc.c", + 123U, "__utac__get_this_arg"); + } + } + } + } else { + { +#line 123 + __assert_fail("i > 0 && i <= this->argsCount", "libacc.c", + 123U, "__utac__get_this_arg"); + } + } +#line 870 "libacc.c" + __cil_tmp7 = i - 1; +#line 870 + __cil_tmp8 = (unsigned long )this; +#line 870 + __cil_tmp9 = __cil_tmp8 + 8; +#line 870 + mem_13 = (void ***)__cil_tmp9; +#line 870 + __cil_tmp10 = *mem_13; +#line 870 + __cil_tmp11 = __cil_tmp10 + __cil_tmp7; +#line 870 + retValue_acc = *__cil_tmp11; +#line 872 + return (retValue_acc); +#line 879 + return (retValue_acc); +} +} +#line 129 "libacc.c" +char const *__utac__get_this_argtype(int i , struct JoinPoint *this ) +{ char const *retValue_acc ; + unsigned long __cil_tmp4 ; + unsigned long __cil_tmp5 ; + int __cil_tmp6 ; + int __cil_tmp7 ; + unsigned long __cil_tmp8 ; + unsigned long __cil_tmp9 ; + char const **__cil_tmp10 ; + char const **__cil_tmp11 ; + int *mem_12 ; + char const ***mem_13 ; + + { +#line 131 + if (i > 0) { + { +#line 131 + __cil_tmp4 = (unsigned long )this; +#line 131 + __cil_tmp5 = __cil_tmp4 + 16; +#line 131 + mem_12 = (int *)__cil_tmp5; +#line 131 + __cil_tmp6 = *mem_12; +#line 131 + if (i <= __cil_tmp6) { + + } else { + { +#line 131 + __assert_fail("i > 0 && i <= this->argsCount", "libacc.c", + 131U, "__utac__get_this_argtype"); + } + } + } + } else { + { +#line 131 + __assert_fail("i > 0 && i <= this->argsCount", "libacc.c", + 131U, "__utac__get_this_argtype"); + } + } +#line 903 "libacc.c" + __cil_tmp7 = i - 1; +#line 903 + __cil_tmp8 = (unsigned long )this; +#line 903 + __cil_tmp9 = __cil_tmp8 + 24; +#line 903 + mem_13 = (char const ***)__cil_tmp9; +#line 903 + __cil_tmp10 = *mem_13; +#line 903 + __cil_tmp11 = __cil_tmp10 + __cil_tmp7; +#line 903 + retValue_acc = *__cil_tmp11; +#line 905 + return (retValue_acc); +#line 912 + return (retValue_acc); +} +} +#line 1 "DecryptForward_spec.o" +#pragma merger(0,"DecryptForward_spec.i","") +#line 9 "Email.h" +int isReadable(int msg ) ; +#line 11 "DecryptForward_spec.c" +__inline void __utac_acc__DecryptForward_spec__1(int msg ) +{ int tmp ; + + { + { +#line 13 + puts("before forward\n"); +#line 14 + tmp = isReadable(msg); + } +#line 14 + if (tmp) { + + } else { + { +#line 15 + __automaton_fail(); + } + } +#line 15 + return; +} +} +#line 1 "ClientLib.o" +#pragma merger(0,"ClientLib.i","") +#line 4 "ClientLib.h" +int initClient(void) ; +#line 6 +char *getClientName(int handle ) ; +#line 8 +void setClientName(int handle , char *value ) ; +#line 10 +int getClientOutbuffer(int handle ) ; +#line 12 +void setClientOutbuffer(int handle , int value ) ; +#line 14 +int getClientAddressBookSize(int handle ) ; +#line 16 +void setClientAddressBookSize(int handle , int value ) ; +#line 18 +int createClientAddressBookEntry(int handle ) ; +#line 20 +int getClientAddressBookAlias(int handle , int index ) ; +#line 22 +void setClientAddressBookAlias(int handle , int index , int value ) ; +#line 24 +int getClientAddressBookAddress(int handle , int index ) ; +#line 26 +void setClientAddressBookAddress(int handle , int index , int value ) ; +#line 29 +int getClientAutoResponse(int handle ) ; +#line 31 +void setClientAutoResponse(int handle , int value ) ; +#line 33 +int getClientPrivateKey(int handle ) ; +#line 35 +void setClientPrivateKey(int handle , int value ) ; +#line 37 +int getClientKeyringSize(int handle ) ; +#line 39 +int createClientKeyringEntry(int handle ) ; +#line 41 +int getClientKeyringUser(int handle , int index ) ; +#line 43 +void setClientKeyringUser(int handle , int index , int value ) ; +#line 45 +int getClientKeyringPublicKey(int handle , int index ) ; +#line 47 +void setClientKeyringPublicKey(int handle , int index , int value ) ; +#line 49 +int getClientForwardReceiver(int handle ) ; +#line 53 +int getClientId(int handle ) ; +#line 57 +int findPublicKey(int handle , int userid ) ; +#line 59 +int findClientAddressBookAlias(int handle , int userid ) ; +#line 5 "ClientLib.c" +int __ste_Client_counter = 0; +#line 7 "ClientLib.c" +int initClient(void) +{ int retValue_acc ; + + { +#line 12 "ClientLib.c" + if (__ste_Client_counter < 3) { +#line 684 + __ste_Client_counter = __ste_Client_counter + 1; +#line 684 + retValue_acc = __ste_Client_counter; +#line 686 + return (retValue_acc); + } else { +#line 692 "ClientLib.c" + retValue_acc = -1; +#line 694 + return (retValue_acc); + } +#line 701 "ClientLib.c" + return (retValue_acc); +} +} +#line 15 "ClientLib.c" +char *__ste_client_name0 = (char *)0; +#line 17 "ClientLib.c" +char *__ste_client_name1 = (char *)0; +#line 19 "ClientLib.c" +char *__ste_client_name2 = (char *)0; +#line 22 "ClientLib.c" +char *getClientName(int handle ) +{ char *retValue_acc ; + void *__cil_tmp3 ; + + { +#line 31 "ClientLib.c" + if (handle == 1) { +#line 732 + retValue_acc = __ste_client_name0; +#line 734 + return (retValue_acc); + } else { +#line 736 + if (handle == 2) { +#line 741 + retValue_acc = __ste_client_name1; +#line 743 + return (retValue_acc); + } else { +#line 745 + if (handle == 3) { +#line 750 + retValue_acc = __ste_client_name2; +#line 752 + return (retValue_acc); + } else { +#line 758 "ClientLib.c" + __cil_tmp3 = (void *)0; +#line 758 + retValue_acc = (char *)__cil_tmp3; +#line 760 + return (retValue_acc); + } + } + } +#line 767 "ClientLib.c" + return (retValue_acc); +} +} +#line 34 "ClientLib.c" +void setClientName(int handle , char *value ) +{ + + { +#line 42 + if (handle == 1) { +#line 36 + __ste_client_name0 = value; + } else { +#line 37 + if (handle == 2) { +#line 38 + __ste_client_name1 = value; + } else { +#line 39 + if (handle == 3) { +#line 40 + __ste_client_name2 = value; + } else { + + } + } + } +#line 802 "ClientLib.c" + return; +} +} +#line 44 "ClientLib.c" +int __ste_client_outbuffer0 = 0; +#line 46 "ClientLib.c" +int __ste_client_outbuffer1 = 0; +#line 48 "ClientLib.c" +int __ste_client_outbuffer2 = 0; +#line 50 "ClientLib.c" +int __ste_client_outbuffer3 = 0; +#line 53 "ClientLib.c" +int getClientOutbuffer(int handle ) +{ int retValue_acc ; + + { +#line 62 "ClientLib.c" + if (handle == 1) { +#line 831 + retValue_acc = __ste_client_outbuffer0; +#line 833 + return (retValue_acc); + } else { +#line 835 + if (handle == 2) { +#line 840 + retValue_acc = __ste_client_outbuffer1; +#line 842 + return (retValue_acc); + } else { +#line 844 + if (handle == 3) { +#line 849 + retValue_acc = __ste_client_outbuffer2; +#line 851 + return (retValue_acc); + } else { +#line 857 "ClientLib.c" + retValue_acc = 0; +#line 859 + return (retValue_acc); + } + } + } +#line 866 "ClientLib.c" + return (retValue_acc); +} +} +#line 65 "ClientLib.c" +void setClientOutbuffer(int handle , int value ) +{ + + { +#line 73 + if (handle == 1) { +#line 67 + __ste_client_outbuffer0 = value; + } else { +#line 68 + if (handle == 2) { +#line 69 + __ste_client_outbuffer1 = value; + } else { +#line 70 + if (handle == 3) { +#line 71 + __ste_client_outbuffer2 = value; + } else { + + } + } + } +#line 901 "ClientLib.c" + return; +} +} +#line 77 "ClientLib.c" +int __ste_ClientAddressBook_size0 = 0; +#line 79 "ClientLib.c" +int __ste_ClientAddressBook_size1 = 0; +#line 81 "ClientLib.c" +int __ste_ClientAddressBook_size2 = 0; +#line 84 "ClientLib.c" +int getClientAddressBookSize(int handle ) +{ int retValue_acc ; + + { +#line 93 "ClientLib.c" + if (handle == 1) { +#line 928 + retValue_acc = __ste_ClientAddressBook_size0; +#line 930 + return (retValue_acc); + } else { +#line 932 + if (handle == 2) { +#line 937 + retValue_acc = __ste_ClientAddressBook_size1; +#line 939 + return (retValue_acc); + } else { +#line 941 + if (handle == 3) { +#line 946 + retValue_acc = __ste_ClientAddressBook_size2; +#line 948 + return (retValue_acc); + } else { +#line 954 "ClientLib.c" + retValue_acc = 0; +#line 956 + return (retValue_acc); + } + } + } +#line 963 "ClientLib.c" + return (retValue_acc); +} +} +#line 96 "ClientLib.c" +void setClientAddressBookSize(int handle , int value ) +{ + + { +#line 104 + if (handle == 1) { +#line 98 + __ste_ClientAddressBook_size0 = value; + } else { +#line 99 + if (handle == 2) { +#line 100 + __ste_ClientAddressBook_size1 = value; + } else { +#line 101 + if (handle == 3) { +#line 102 + __ste_ClientAddressBook_size2 = value; + } else { + + } + } + } +#line 998 "ClientLib.c" + return; +} +} +#line 106 "ClientLib.c" +int createClientAddressBookEntry(int handle ) +{ int retValue_acc ; + int size ; + int tmp ; + int __cil_tmp5 ; + + { + { +#line 107 + tmp = getClientAddressBookSize(handle); +#line 107 + size = tmp; + } +#line 108 "ClientLib.c" + if (size < 3) { + { +#line 109 "ClientLib.c" + __cil_tmp5 = size + 1; +#line 109 + setClientAddressBookSize(handle, __cil_tmp5); +#line 1025 "ClientLib.c" + retValue_acc = size + 1; + } +#line 1027 + return (retValue_acc); + } else { +#line 1031 "ClientLib.c" + retValue_acc = -1; +#line 1033 + return (retValue_acc); + } +#line 1040 "ClientLib.c" + return (retValue_acc); +} +} +#line 115 "ClientLib.c" +int __ste_Client_AddressBook0_Alias0 = 0; +#line 117 "ClientLib.c" +int __ste_Client_AddressBook0_Alias1 = 0; +#line 119 "ClientLib.c" +int __ste_Client_AddressBook0_Alias2 = 0; +#line 121 "ClientLib.c" +int __ste_Client_AddressBook1_Alias0 = 0; +#line 123 "ClientLib.c" +int __ste_Client_AddressBook1_Alias1 = 0; +#line 125 "ClientLib.c" +int __ste_Client_AddressBook1_Alias2 = 0; +#line 127 "ClientLib.c" +int __ste_Client_AddressBook2_Alias0 = 0; +#line 129 "ClientLib.c" +int __ste_Client_AddressBook2_Alias1 = 0; +#line 131 "ClientLib.c" +int __ste_Client_AddressBook2_Alias2 = 0; +#line 134 "ClientLib.c" +int getClientAddressBookAlias(int handle , int index ) +{ int retValue_acc ; + + { +#line 167 + if (handle == 1) { +#line 144 "ClientLib.c" + if (index == 0) { +#line 1086 + retValue_acc = __ste_Client_AddressBook0_Alias0; +#line 1088 + return (retValue_acc); + } else { +#line 1090 + if (index == 1) { +#line 1095 + retValue_acc = __ste_Client_AddressBook0_Alias1; +#line 1097 + return (retValue_acc); + } else { +#line 1099 + if (index == 2) { +#line 1104 + retValue_acc = __ste_Client_AddressBook0_Alias2; +#line 1106 + return (retValue_acc); + } else { +#line 1112 + retValue_acc = 0; +#line 1114 + return (retValue_acc); + } + } + } + } else { +#line 1116 "ClientLib.c" + if (handle == 2) { +#line 154 "ClientLib.c" + if (index == 0) { +#line 1124 + retValue_acc = __ste_Client_AddressBook1_Alias0; +#line 1126 + return (retValue_acc); + } else { +#line 1128 + if (index == 1) { +#line 1133 + retValue_acc = __ste_Client_AddressBook1_Alias1; +#line 1135 + return (retValue_acc); + } else { +#line 1137 + if (index == 2) { +#line 1142 + retValue_acc = __ste_Client_AddressBook1_Alias2; +#line 1144 + return (retValue_acc); + } else { +#line 1150 + retValue_acc = 0; +#line 1152 + return (retValue_acc); + } + } + } + } else { +#line 1154 "ClientLib.c" + if (handle == 3) { +#line 164 "ClientLib.c" + if (index == 0) { +#line 1162 + retValue_acc = __ste_Client_AddressBook2_Alias0; +#line 1164 + return (retValue_acc); + } else { +#line 1166 + if (index == 1) { +#line 1171 + retValue_acc = __ste_Client_AddressBook2_Alias1; +#line 1173 + return (retValue_acc); + } else { +#line 1175 + if (index == 2) { +#line 1180 + retValue_acc = __ste_Client_AddressBook2_Alias2; +#line 1182 + return (retValue_acc); + } else { +#line 1188 + retValue_acc = 0; +#line 1190 + return (retValue_acc); + } + } + } + } else { +#line 1196 "ClientLib.c" + retValue_acc = 0; +#line 1198 + return (retValue_acc); + } + } + } +#line 1205 "ClientLib.c" + return (retValue_acc); +} +} +#line 171 "ClientLib.c" +int findClientAddressBookAlias(int handle , int userid ) +{ int retValue_acc ; + + { +#line 204 + if (handle == 1) { +#line 181 "ClientLib.c" + if (userid == __ste_Client_AddressBook0_Alias0) { +#line 1233 + retValue_acc = 0; +#line 1235 + return (retValue_acc); + } else { +#line 1237 + if (userid == __ste_Client_AddressBook0_Alias1) { +#line 1242 + retValue_acc = 1; +#line 1244 + return (retValue_acc); + } else { +#line 1246 + if (userid == __ste_Client_AddressBook0_Alias2) { +#line 1251 + retValue_acc = 2; +#line 1253 + return (retValue_acc); + } else { +#line 1259 + retValue_acc = -1; +#line 1261 + return (retValue_acc); + } + } + } + } else { +#line 1263 "ClientLib.c" + if (handle == 2) { +#line 191 "ClientLib.c" + if (userid == __ste_Client_AddressBook1_Alias0) { +#line 1271 + retValue_acc = 0; +#line 1273 + return (retValue_acc); + } else { +#line 1275 + if (userid == __ste_Client_AddressBook1_Alias1) { +#line 1280 + retValue_acc = 1; +#line 1282 + return (retValue_acc); + } else { +#line 1284 + if (userid == __ste_Client_AddressBook1_Alias2) { +#line 1289 + retValue_acc = 2; +#line 1291 + return (retValue_acc); + } else { +#line 1297 + retValue_acc = -1; +#line 1299 + return (retValue_acc); + } + } + } + } else { +#line 1301 "ClientLib.c" + if (handle == 3) { +#line 201 "ClientLib.c" + if (userid == __ste_Client_AddressBook2_Alias0) { +#line 1309 + retValue_acc = 0; +#line 1311 + return (retValue_acc); + } else { +#line 1313 + if (userid == __ste_Client_AddressBook2_Alias1) { +#line 1318 + retValue_acc = 1; +#line 1320 + return (retValue_acc); + } else { +#line 1322 + if (userid == __ste_Client_AddressBook2_Alias2) { +#line 1327 + retValue_acc = 2; +#line 1329 + return (retValue_acc); + } else { +#line 1335 + retValue_acc = -1; +#line 1337 + return (retValue_acc); + } + } + } + } else { +#line 1343 "ClientLib.c" + retValue_acc = -1; +#line 1345 + return (retValue_acc); + } + } + } +#line 1352 "ClientLib.c" + return (retValue_acc); +} +} +#line 208 "ClientLib.c" +void setClientAddressBookAlias(int handle , int index , int value ) +{ + + { +#line 234 + if (handle == 1) { +#line 217 + if (index == 0) { +#line 211 + __ste_Client_AddressBook0_Alias0 = value; + } else { +#line 212 + if (index == 1) { +#line 213 + __ste_Client_AddressBook0_Alias1 = value; + } else { +#line 214 + if (index == 2) { +#line 215 + __ste_Client_AddressBook0_Alias2 = value; + } else { + + } + } + } + } else { +#line 216 + if (handle == 2) { +#line 225 + if (index == 0) { +#line 219 + __ste_Client_AddressBook1_Alias0 = value; + } else { +#line 220 + if (index == 1) { +#line 221 + __ste_Client_AddressBook1_Alias1 = value; + } else { +#line 222 + if (index == 2) { +#line 223 + __ste_Client_AddressBook1_Alias2 = value; + } else { + + } + } + } + } else { +#line 224 + if (handle == 3) { +#line 233 + if (index == 0) { +#line 227 + __ste_Client_AddressBook2_Alias0 = value; + } else { +#line 228 + if (index == 1) { +#line 229 + __ste_Client_AddressBook2_Alias1 = value; + } else { +#line 230 + if (index == 2) { +#line 231 + __ste_Client_AddressBook2_Alias2 = value; + } else { + + } + } + } + } else { + + } + } + } +#line 1420 "ClientLib.c" + return; +} +} +#line 236 "ClientLib.c" +int __ste_Client_AddressBook0_Address0 = 0; +#line 238 "ClientLib.c" +int __ste_Client_AddressBook0_Address1 = 0; +#line 240 "ClientLib.c" +int __ste_Client_AddressBook0_Address2 = 0; +#line 242 "ClientLib.c" +int __ste_Client_AddressBook1_Address0 = 0; +#line 244 "ClientLib.c" +int __ste_Client_AddressBook1_Address1 = 0; +#line 246 "ClientLib.c" +int __ste_Client_AddressBook1_Address2 = 0; +#line 248 "ClientLib.c" +int __ste_Client_AddressBook2_Address0 = 0; +#line 250 "ClientLib.c" +int __ste_Client_AddressBook2_Address1 = 0; +#line 252 "ClientLib.c" +int __ste_Client_AddressBook2_Address2 = 0; +#line 255 "ClientLib.c" +int getClientAddressBookAddress(int handle , int index ) +{ int retValue_acc ; + + { +#line 288 + if (handle == 1) { +#line 265 "ClientLib.c" + if (index == 0) { +#line 1462 + retValue_acc = __ste_Client_AddressBook0_Address0; +#line 1464 + return (retValue_acc); + } else { +#line 1466 + if (index == 1) { +#line 1471 + retValue_acc = __ste_Client_AddressBook0_Address1; +#line 1473 + return (retValue_acc); + } else { +#line 1475 + if (index == 2) { +#line 1480 + retValue_acc = __ste_Client_AddressBook0_Address2; +#line 1482 + return (retValue_acc); + } else { +#line 1488 + retValue_acc = 0; +#line 1490 + return (retValue_acc); + } + } + } + } else { +#line 1492 "ClientLib.c" + if (handle == 2) { +#line 275 "ClientLib.c" + if (index == 0) { +#line 1500 + retValue_acc = __ste_Client_AddressBook1_Address0; +#line 1502 + return (retValue_acc); + } else { +#line 1504 + if (index == 1) { +#line 1509 + retValue_acc = __ste_Client_AddressBook1_Address1; +#line 1511 + return (retValue_acc); + } else { +#line 1513 + if (index == 2) { +#line 1518 + retValue_acc = __ste_Client_AddressBook1_Address2; +#line 1520 + return (retValue_acc); + } else { +#line 1526 + retValue_acc = 0; +#line 1528 + return (retValue_acc); + } + } + } + } else { +#line 1530 "ClientLib.c" + if (handle == 3) { +#line 285 "ClientLib.c" + if (index == 0) { +#line 1538 + retValue_acc = __ste_Client_AddressBook2_Address0; +#line 1540 + return (retValue_acc); + } else { +#line 1542 + if (index == 1) { +#line 1547 + retValue_acc = __ste_Client_AddressBook2_Address1; +#line 1549 + return (retValue_acc); + } else { +#line 1551 + if (index == 2) { +#line 1556 + retValue_acc = __ste_Client_AddressBook2_Address2; +#line 1558 + return (retValue_acc); + } else { +#line 1564 + retValue_acc = 0; +#line 1566 + return (retValue_acc); + } + } + } + } else { +#line 1572 "ClientLib.c" + retValue_acc = 0; +#line 1574 + return (retValue_acc); + } + } + } +#line 1581 "ClientLib.c" + return (retValue_acc); +} +} +#line 291 "ClientLib.c" +void setClientAddressBookAddress(int handle , int index , int value ) +{ + + { +#line 317 + if (handle == 1) { +#line 300 + if (index == 0) { +#line 294 + __ste_Client_AddressBook0_Address0 = value; + } else { +#line 295 + if (index == 1) { +#line 296 + __ste_Client_AddressBook0_Address1 = value; + } else { +#line 297 + if (index == 2) { +#line 298 + __ste_Client_AddressBook0_Address2 = value; + } else { + + } + } + } + } else { +#line 299 + if (handle == 2) { +#line 308 + if (index == 0) { +#line 302 + __ste_Client_AddressBook1_Address0 = value; + } else { +#line 303 + if (index == 1) { +#line 304 + __ste_Client_AddressBook1_Address1 = value; + } else { +#line 305 + if (index == 2) { +#line 306 + __ste_Client_AddressBook1_Address2 = value; + } else { + + } + } + } + } else { +#line 307 + if (handle == 3) { +#line 316 + if (index == 0) { +#line 310 + __ste_Client_AddressBook2_Address0 = value; + } else { +#line 311 + if (index == 1) { +#line 312 + __ste_Client_AddressBook2_Address1 = value; + } else { +#line 313 + if (index == 2) { +#line 314 + __ste_Client_AddressBook2_Address2 = value; + } else { + + } + } + } + } else { + + } + } + } +#line 1649 "ClientLib.c" + return; +} +} +#line 319 "ClientLib.c" +int __ste_client_autoResponse0 = 0; +#line 321 "ClientLib.c" +int __ste_client_autoResponse1 = 0; +#line 323 "ClientLib.c" +int __ste_client_autoResponse2 = 0; +#line 326 "ClientLib.c" +int getClientAutoResponse(int handle ) +{ int retValue_acc ; + + { +#line 335 "ClientLib.c" + if (handle == 1) { +#line 1676 + retValue_acc = __ste_client_autoResponse0; +#line 1678 + return (retValue_acc); + } else { +#line 1680 + if (handle == 2) { +#line 1685 + retValue_acc = __ste_client_autoResponse1; +#line 1687 + return (retValue_acc); + } else { +#line 1689 + if (handle == 3) { +#line 1694 + retValue_acc = __ste_client_autoResponse2; +#line 1696 + return (retValue_acc); + } else { +#line 1702 "ClientLib.c" + retValue_acc = -1; +#line 1704 + return (retValue_acc); + } + } + } +#line 1711 "ClientLib.c" + return (retValue_acc); +} +} +#line 338 "ClientLib.c" +void setClientAutoResponse(int handle , int value ) +{ + + { +#line 346 + if (handle == 1) { +#line 340 + __ste_client_autoResponse0 = value; + } else { +#line 341 + if (handle == 2) { +#line 342 + __ste_client_autoResponse1 = value; + } else { +#line 343 + if (handle == 3) { +#line 344 + __ste_client_autoResponse2 = value; + } else { + + } + } + } +#line 1746 "ClientLib.c" + return; +} +} +#line 348 "ClientLib.c" +int __ste_client_privateKey0 = 0; +#line 350 "ClientLib.c" +int __ste_client_privateKey1 = 0; +#line 352 "ClientLib.c" +int __ste_client_privateKey2 = 0; +#line 355 "ClientLib.c" +int getClientPrivateKey(int handle ) +{ int retValue_acc ; + + { +#line 364 "ClientLib.c" + if (handle == 1) { +#line 1773 + retValue_acc = __ste_client_privateKey0; +#line 1775 + return (retValue_acc); + } else { +#line 1777 + if (handle == 2) { +#line 1782 + retValue_acc = __ste_client_privateKey1; +#line 1784 + return (retValue_acc); + } else { +#line 1786 + if (handle == 3) { +#line 1791 + retValue_acc = __ste_client_privateKey2; +#line 1793 + return (retValue_acc); + } else { +#line 1799 "ClientLib.c" + retValue_acc = 0; +#line 1801 + return (retValue_acc); + } + } + } +#line 1808 "ClientLib.c" + return (retValue_acc); +} +} +#line 367 "ClientLib.c" +void setClientPrivateKey(int handle , int value ) +{ + + { +#line 375 + if (handle == 1) { +#line 369 + __ste_client_privateKey0 = value; + } else { +#line 370 + if (handle == 2) { +#line 371 + __ste_client_privateKey1 = value; + } else { +#line 372 + if (handle == 3) { +#line 373 + __ste_client_privateKey2 = value; + } else { + + } + } + } +#line 1843 "ClientLib.c" + return; +} +} +#line 377 "ClientLib.c" +int __ste_ClientKeyring_size0 = 0; +#line 379 "ClientLib.c" +int __ste_ClientKeyring_size1 = 0; +#line 381 "ClientLib.c" +int __ste_ClientKeyring_size2 = 0; +#line 384 "ClientLib.c" +int getClientKeyringSize(int handle ) +{ int retValue_acc ; + + { +#line 393 "ClientLib.c" + if (handle == 1) { +#line 1870 + retValue_acc = __ste_ClientKeyring_size0; +#line 1872 + return (retValue_acc); + } else { +#line 1874 + if (handle == 2) { +#line 1879 + retValue_acc = __ste_ClientKeyring_size1; +#line 1881 + return (retValue_acc); + } else { +#line 1883 + if (handle == 3) { +#line 1888 + retValue_acc = __ste_ClientKeyring_size2; +#line 1890 + return (retValue_acc); + } else { +#line 1896 "ClientLib.c" + retValue_acc = 0; +#line 1898 + return (retValue_acc); + } + } + } +#line 1905 "ClientLib.c" + return (retValue_acc); +} +} +#line 396 "ClientLib.c" +void setClientKeyringSize(int handle , int value ) +{ + + { +#line 404 + if (handle == 1) { +#line 398 + __ste_ClientKeyring_size0 = value; + } else { +#line 399 + if (handle == 2) { +#line 400 + __ste_ClientKeyring_size1 = value; + } else { +#line 401 + if (handle == 3) { +#line 402 + __ste_ClientKeyring_size2 = value; + } else { + + } + } + } +#line 1940 "ClientLib.c" + return; +} +} +#line 406 "ClientLib.c" +int createClientKeyringEntry(int handle ) +{ int retValue_acc ; + int size ; + int tmp ; + int __cil_tmp5 ; + + { + { +#line 407 + tmp = getClientKeyringSize(handle); +#line 407 + size = tmp; + } +#line 408 "ClientLib.c" + if (size < 2) { + { +#line 409 "ClientLib.c" + __cil_tmp5 = size + 1; +#line 409 + setClientKeyringSize(handle, __cil_tmp5); +#line 1967 "ClientLib.c" + retValue_acc = size + 1; + } +#line 1969 + return (retValue_acc); + } else { +#line 1973 "ClientLib.c" + retValue_acc = -1; +#line 1975 + return (retValue_acc); + } +#line 1982 "ClientLib.c" + return (retValue_acc); +} +} +#line 414 "ClientLib.c" +int __ste_Client_Keyring0_User0 = 0; +#line 416 "ClientLib.c" +int __ste_Client_Keyring0_User1 = 0; +#line 418 "ClientLib.c" +int __ste_Client_Keyring0_User2 = 0; +#line 420 "ClientLib.c" +int __ste_Client_Keyring1_User0 = 0; +#line 422 "ClientLib.c" +int __ste_Client_Keyring1_User1 = 0; +#line 424 "ClientLib.c" +int __ste_Client_Keyring1_User2 = 0; +#line 426 "ClientLib.c" +int __ste_Client_Keyring2_User0 = 0; +#line 428 "ClientLib.c" +int __ste_Client_Keyring2_User1 = 0; +#line 430 "ClientLib.c" +int __ste_Client_Keyring2_User2 = 0; +#line 433 "ClientLib.c" +int getClientKeyringUser(int handle , int index ) +{ int retValue_acc ; + + { +#line 466 + if (handle == 1) { +#line 443 "ClientLib.c" + if (index == 0) { +#line 2028 + retValue_acc = __ste_Client_Keyring0_User0; +#line 2030 + return (retValue_acc); + } else { +#line 2032 + if (index == 1) { +#line 2037 + retValue_acc = __ste_Client_Keyring0_User1; +#line 2039 + return (retValue_acc); + } else { +#line 2045 + retValue_acc = 0; +#line 2047 + return (retValue_acc); + } + } + } else { +#line 2049 "ClientLib.c" + if (handle == 2) { +#line 453 "ClientLib.c" + if (index == 0) { +#line 2057 + retValue_acc = __ste_Client_Keyring1_User0; +#line 2059 + return (retValue_acc); + } else { +#line 2061 + if (index == 1) { +#line 2066 + retValue_acc = __ste_Client_Keyring1_User1; +#line 2068 + return (retValue_acc); + } else { +#line 2074 + retValue_acc = 0; +#line 2076 + return (retValue_acc); + } + } + } else { +#line 2078 "ClientLib.c" + if (handle == 3) { +#line 463 "ClientLib.c" + if (index == 0) { +#line 2086 + retValue_acc = __ste_Client_Keyring2_User0; +#line 2088 + return (retValue_acc); + } else { +#line 2090 + if (index == 1) { +#line 2095 + retValue_acc = __ste_Client_Keyring2_User1; +#line 2097 + return (retValue_acc); + } else { +#line 2103 + retValue_acc = 0; +#line 2105 + return (retValue_acc); + } + } + } else { +#line 2111 "ClientLib.c" + retValue_acc = 0; +#line 2113 + return (retValue_acc); + } + } + } +#line 2120 "ClientLib.c" + return (retValue_acc); +} +} +#line 473 "ClientLib.c" +void setClientKeyringUser(int handle , int index , int value ) +{ + + { +#line 499 + if (handle == 1) { +#line 482 + if (index == 0) { +#line 476 + __ste_Client_Keyring0_User0 = value; + } else { +#line 477 + if (index == 1) { +#line 478 + __ste_Client_Keyring0_User1 = value; + } else { + + } + } + } else { +#line 479 + if (handle == 2) { +#line 490 + if (index == 0) { +#line 484 + __ste_Client_Keyring1_User0 = value; + } else { +#line 485 + if (index == 1) { +#line 486 + __ste_Client_Keyring1_User1 = value; + } else { + + } + } + } else { +#line 487 + if (handle == 3) { +#line 498 + if (index == 0) { +#line 492 + __ste_Client_Keyring2_User0 = value; + } else { +#line 493 + if (index == 1) { +#line 494 + __ste_Client_Keyring2_User1 = value; + } else { + + } + } + } else { + + } + } + } +#line 2176 "ClientLib.c" + return; +} +} +#line 501 "ClientLib.c" +int __ste_Client_Keyring0_PublicKey0 = 0; +#line 503 "ClientLib.c" +int __ste_Client_Keyring0_PublicKey1 = 0; +#line 505 "ClientLib.c" +int __ste_Client_Keyring0_PublicKey2 = 0; +#line 507 "ClientLib.c" +int __ste_Client_Keyring1_PublicKey0 = 0; +#line 509 "ClientLib.c" +int __ste_Client_Keyring1_PublicKey1 = 0; +#line 511 "ClientLib.c" +int __ste_Client_Keyring1_PublicKey2 = 0; +#line 513 "ClientLib.c" +int __ste_Client_Keyring2_PublicKey0 = 0; +#line 515 "ClientLib.c" +int __ste_Client_Keyring2_PublicKey1 = 0; +#line 517 "ClientLib.c" +int __ste_Client_Keyring2_PublicKey2 = 0; +#line 520 "ClientLib.c" +int getClientKeyringPublicKey(int handle , int index ) +{ int retValue_acc ; + + { +#line 553 + if (handle == 1) { +#line 530 "ClientLib.c" + if (index == 0) { +#line 2218 + retValue_acc = __ste_Client_Keyring0_PublicKey0; +#line 2220 + return (retValue_acc); + } else { +#line 2222 + if (index == 1) { +#line 2227 + retValue_acc = __ste_Client_Keyring0_PublicKey1; +#line 2229 + return (retValue_acc); + } else { +#line 2235 + retValue_acc = 0; +#line 2237 + return (retValue_acc); + } + } + } else { +#line 2239 "ClientLib.c" + if (handle == 2) { +#line 540 "ClientLib.c" + if (index == 0) { +#line 2247 + retValue_acc = __ste_Client_Keyring1_PublicKey0; +#line 2249 + return (retValue_acc); + } else { +#line 2251 + if (index == 1) { +#line 2256 + retValue_acc = __ste_Client_Keyring1_PublicKey1; +#line 2258 + return (retValue_acc); + } else { +#line 2264 + retValue_acc = 0; +#line 2266 + return (retValue_acc); + } + } + } else { +#line 2268 "ClientLib.c" + if (handle == 3) { +#line 550 "ClientLib.c" + if (index == 0) { +#line 2276 + retValue_acc = __ste_Client_Keyring2_PublicKey0; +#line 2278 + return (retValue_acc); + } else { +#line 2280 + if (index == 1) { +#line 2285 + retValue_acc = __ste_Client_Keyring2_PublicKey1; +#line 2287 + return (retValue_acc); + } else { +#line 2293 + retValue_acc = 0; +#line 2295 + return (retValue_acc); + } + } + } else { +#line 2301 "ClientLib.c" + retValue_acc = 0; +#line 2303 + return (retValue_acc); + } + } + } +#line 2310 "ClientLib.c" + return (retValue_acc); +} +} +#line 557 "ClientLib.c" +int findPublicKey(int handle , int userid ) +{ int retValue_acc ; + + { +#line 591 + if (handle == 1) { +#line 568 "ClientLib.c" + if (userid == __ste_Client_Keyring0_User0) { +#line 2338 + retValue_acc = __ste_Client_Keyring0_PublicKey0; +#line 2340 + return (retValue_acc); + } else { +#line 2342 + if (userid == __ste_Client_Keyring0_User1) { +#line 2347 + retValue_acc = __ste_Client_Keyring0_PublicKey1; +#line 2349 + return (retValue_acc); + } else { +#line 2355 + retValue_acc = 0; +#line 2357 + return (retValue_acc); + } + } + } else { +#line 2359 "ClientLib.c" + if (handle == 2) { +#line 578 "ClientLib.c" + if (userid == __ste_Client_Keyring1_User0) { +#line 2367 + retValue_acc = __ste_Client_Keyring1_PublicKey0; +#line 2369 + return (retValue_acc); + } else { +#line 2371 + if (userid == __ste_Client_Keyring1_User1) { +#line 2376 + retValue_acc = __ste_Client_Keyring1_PublicKey1; +#line 2378 + return (retValue_acc); + } else { +#line 2384 + retValue_acc = 0; +#line 2386 + return (retValue_acc); + } + } + } else { +#line 2388 "ClientLib.c" + if (handle == 3) { +#line 588 "ClientLib.c" + if (userid == __ste_Client_Keyring2_User0) { +#line 2396 + retValue_acc = __ste_Client_Keyring2_PublicKey0; +#line 2398 + return (retValue_acc); + } else { +#line 2400 + if (userid == __ste_Client_Keyring2_User1) { +#line 2405 + retValue_acc = __ste_Client_Keyring2_PublicKey1; +#line 2407 + return (retValue_acc); + } else { +#line 2413 + retValue_acc = 0; +#line 2415 + return (retValue_acc); + } + } + } else { +#line 2421 "ClientLib.c" + retValue_acc = 0; +#line 2423 + return (retValue_acc); + } + } + } +#line 2430 "ClientLib.c" + return (retValue_acc); +} +} +#line 595 "ClientLib.c" +void setClientKeyringPublicKey(int handle , int index , int value ) +{ + + { +#line 621 + if (handle == 1) { +#line 604 + if (index == 0) { +#line 598 + __ste_Client_Keyring0_PublicKey0 = value; + } else { +#line 599 + if (index == 1) { +#line 600 + __ste_Client_Keyring0_PublicKey1 = value; + } else { + + } + } + } else { +#line 601 + if (handle == 2) { +#line 612 + if (index == 0) { +#line 606 + __ste_Client_Keyring1_PublicKey0 = value; + } else { +#line 607 + if (index == 1) { +#line 608 + __ste_Client_Keyring1_PublicKey1 = value; + } else { + + } + } + } else { +#line 609 + if (handle == 3) { +#line 620 + if (index == 0) { +#line 614 + __ste_Client_Keyring2_PublicKey0 = value; + } else { +#line 615 + if (index == 1) { +#line 616 + __ste_Client_Keyring2_PublicKey1 = value; + } else { + + } + } + } else { + + } + } + } +#line 2486 "ClientLib.c" + return; +} +} +#line 623 "ClientLib.c" +int __ste_client_forwardReceiver0 = 0; +#line 625 "ClientLib.c" +int __ste_client_forwardReceiver1 = 0; +#line 627 "ClientLib.c" +int __ste_client_forwardReceiver2 = 0; +#line 629 "ClientLib.c" +int __ste_client_forwardReceiver3 = 0; +#line 631 "ClientLib.c" +int getClientForwardReceiver(int handle ) +{ int retValue_acc ; + + { +#line 640 "ClientLib.c" + if (handle == 1) { +#line 2515 + retValue_acc = __ste_client_forwardReceiver0; +#line 2517 + return (retValue_acc); + } else { +#line 2519 + if (handle == 2) { +#line 2524 + retValue_acc = __ste_client_forwardReceiver1; +#line 2526 + return (retValue_acc); + } else { +#line 2528 + if (handle == 3) { +#line 2533 + retValue_acc = __ste_client_forwardReceiver2; +#line 2535 + return (retValue_acc); + } else { +#line 2541 "ClientLib.c" + retValue_acc = 0; +#line 2543 + return (retValue_acc); + } + } + } +#line 2550 "ClientLib.c" + return (retValue_acc); +} +} +#line 643 "ClientLib.c" +void setClientForwardReceiver(int handle , int value ) +{ + + { +#line 651 + if (handle == 1) { +#line 645 + __ste_client_forwardReceiver0 = value; + } else { +#line 646 + if (handle == 2) { +#line 647 + __ste_client_forwardReceiver1 = value; + } else { +#line 648 + if (handle == 3) { +#line 649 + __ste_client_forwardReceiver2 = value; + } else { + + } + } + } +#line 2585 "ClientLib.c" + return; +} +} +#line 653 "ClientLib.c" +int __ste_client_idCounter0 = 0; +#line 655 "ClientLib.c" +int __ste_client_idCounter1 = 0; +#line 657 "ClientLib.c" +int __ste_client_idCounter2 = 0; +#line 660 "ClientLib.c" +int getClientId(int handle ) +{ int retValue_acc ; + + { +#line 669 "ClientLib.c" + if (handle == 1) { +#line 2612 + retValue_acc = __ste_client_idCounter0; +#line 2614 + return (retValue_acc); + } else { +#line 2616 + if (handle == 2) { +#line 2621 + retValue_acc = __ste_client_idCounter1; +#line 2623 + return (retValue_acc); + } else { +#line 2625 + if (handle == 3) { +#line 2630 + retValue_acc = __ste_client_idCounter2; +#line 2632 + return (retValue_acc); + } else { +#line 2638 "ClientLib.c" + retValue_acc = 0; +#line 2640 + return (retValue_acc); + } + } + } +#line 2647 "ClientLib.c" + return (retValue_acc); +} +} +#line 672 "ClientLib.c" +void setClientId(int handle , int value ) +{ + + { +#line 680 + if (handle == 1) { +#line 674 + __ste_client_idCounter0 = value; + } else { +#line 675 + if (handle == 2) { +#line 676 + __ste_client_idCounter1 = value; + } else { +#line 677 + if (handle == 3) { +#line 678 + __ste_client_idCounter2 = value; + } else { + + } + } + } +#line 2682 "ClientLib.c" + return; +} +} +#line 1 "Client.o" +#pragma merger(0,"Client.i","") +#line 6 "Email.h" +void printMail(int msg ) ; +#line 12 +int createEmail(int from , int to ) ; +#line 14 "Client.h" +void queue(int client , int msg ) ; +#line 24 +void mail(int client , int msg ) ; +#line 28 +void deliver(int client , int msg ) ; +#line 30 +void incoming(int client , int msg ) ; +#line 32 +int createClient(char *name ) ; +#line 37 +void forward(int client , int msg ) ; +#line 6 "Client.c" +int queue_empty = 1; +#line 9 "Client.c" +int queued_message ; +#line 12 "Client.c" +int queued_client ; +#line 18 "Client.c" +void mail(int client , int msg ) +{ int tmp ; + + { + { +#line 19 + puts("mail sent"); +#line 20 + tmp = getEmailTo(msg); +#line 20 + incoming(tmp, msg); + } +#line 727 "Client.c" + return; +} +} +#line 27 "Client.c" +void outgoing(int client , int msg ) +{ int tmp ; + + { + { +#line 28 + tmp = getClientId(client); +#line 28 + setEmailFrom(msg, tmp); +#line 29 + mail(client, msg); + } +#line 749 "Client.c" + return; +} +} +#line 36 "Client.c" +void deliver(int client , int msg ) +{ + + { + { +#line 37 + puts("mail delivered\n"); + } +#line 769 "Client.c" + return; +} +} +#line 44 "Client.c" +void incoming__wrappee__Base(int client , int msg ) +{ + + { + { +#line 45 + deliver(client, msg); + } +#line 789 "Client.c" + return; +} +} +#line 51 "Client.c" +void incoming(int client , int msg ) +{ int fwreceiver ; + int tmp ; + + { + { +#line 52 + incoming__wrappee__Base(client, msg); +#line 53 + tmp = getClientForwardReceiver(client); +#line 53 + fwreceiver = tmp; + } +#line 54 + if (fwreceiver) { + { +#line 56 + setEmailTo(msg, fwreceiver); +#line 57 + forward(client, msg); + } + } else { + + } +#line 820 "Client.c" + return; +} +} +#line 63 "Client.c" +int createClient(char *name ) +{ int retValue_acc ; + int client ; + int tmp ; + + { + { +#line 64 + tmp = initClient(); +#line 64 + client = tmp; +#line 842 "Client.c" + retValue_acc = client; + } +#line 844 + return (retValue_acc); +#line 851 + return (retValue_acc); +} +} +#line 71 "Client.c" +void sendEmail(int sender , int receiver ) +{ int email ; + int tmp ; + + { + { +#line 72 + tmp = createEmail(0, receiver); +#line 72 + email = tmp; +#line 73 + outgoing(sender, email); + } +#line 879 "Client.c" + return; +} +} +#line 81 "Client.c" +void queue(int client , int msg ) +{ + + { +#line 82 + queue_empty = 0; +#line 83 + queued_message = msg; +#line 84 + queued_client = client; +#line 903 "Client.c" + return; +} +} +#line 90 "Client.c" +int is_queue_empty(void) +{ int retValue_acc ; + + { +#line 921 "Client.c" + retValue_acc = queue_empty; +#line 923 + return (retValue_acc); +#line 930 + return (retValue_acc); +} +} +#line 97 "Client.c" +int get_queued_client(void) +{ int retValue_acc ; + + { +#line 952 "Client.c" + retValue_acc = queued_client; +#line 954 + return (retValue_acc); +#line 961 + return (retValue_acc); +} +} +#line 104 "Client.c" +int get_queued_email(void) +{ int retValue_acc ; + + { +#line 983 "Client.c" + retValue_acc = queued_message; +#line 985 + return (retValue_acc); +#line 992 + return (retValue_acc); +} +} +#line 110 "Client.c" +void forward(int client , int msg ) +{ int __utac__ad__arg1 ; + + { + { +#line 1009 "Client.c" + __utac__ad__arg1 = msg; +#line 1010 + __utac_acc__DecryptForward_spec__1(__utac__ad__arg1); +#line 111 "Client.c" + puts("Forwarding message.\n"); +#line 112 + printMail(msg); +#line 113 + queue(client, msg); + } +#line 1029 "Client.c" + return; +} +} +#line 1 "Util.o" +#pragma merger(0,"Util.i","") +#line 1 "Util.h" +int prompt(char *msg ) ; +#line 9 "Util.c" +int prompt(char *msg ) +{ int retValue_acc ; + int retval ; + char const * __restrict __cil_tmp4 ; + + { + { +#line 10 + __cil_tmp4 = (char const * __restrict )"%s\n"; +#line 10 + printf(__cil_tmp4, msg); +#line 518 "Util.c" + retValue_acc = retval; + } +#line 520 + return (retValue_acc); +#line 527 + return (retValue_acc); +} +} +#line 1 "Email.o" +#pragma merger(0,"Email.i","") +#line 15 "Email.h" +int cloneEmail(int msg ) ; +#line 9 "Email.c" +void printMail(int msg ) +{ int tmp ; + int tmp___0 ; + int tmp___1 ; + int tmp___2 ; + char const * __restrict __cil_tmp6 ; + char const * __restrict __cil_tmp7 ; + char const * __restrict __cil_tmp8 ; + char const * __restrict __cil_tmp9 ; + + { + { +#line 10 + tmp = getEmailId(msg); +#line 10 + __cil_tmp6 = (char const * __restrict )"ID:\n %i\n"; +#line 10 + printf(__cil_tmp6, tmp); +#line 11 + tmp___0 = getEmailFrom(msg); +#line 11 + __cil_tmp7 = (char const * __restrict )"FROM:\n %i\n"; +#line 11 + printf(__cil_tmp7, tmp___0); +#line 12 + tmp___1 = getEmailTo(msg); +#line 12 + __cil_tmp8 = (char const * __restrict )"TO:\n %i\n"; +#line 12 + printf(__cil_tmp8, tmp___1); +#line 13 + tmp___2 = isReadable(msg); +#line 13 + __cil_tmp9 = (char const * __restrict )"IS_READABLE\n %i\n"; +#line 13 + printf(__cil_tmp9, tmp___2); + } +#line 601 "Email.c" + return; +} +} +#line 19 "Email.c" +int isReadable(int msg ) +{ int retValue_acc ; + + { +#line 619 "Email.c" + retValue_acc = 1; +#line 621 + return (retValue_acc); +#line 628 + return (retValue_acc); +} +} +#line 24 "Email.c" +int cloneEmail(int msg ) +{ int retValue_acc ; + + { +#line 650 "Email.c" + retValue_acc = msg; +#line 652 + return (retValue_acc); +#line 659 + return (retValue_acc); +} +} +#line 29 "Email.c" +int createEmail(int from , int to ) +{ int retValue_acc ; + int msg ; + + { + { +#line 30 + msg = 1; +#line 31 + setEmailFrom(msg, from); +#line 32 + setEmailTo(msg, to); +#line 689 "Email.c" + retValue_acc = msg; + } +#line 691 + return (retValue_acc); +#line 698 + return (retValue_acc); +} +} +#line 1 "featureselect.o" +#pragma merger(0,"featureselect.i","") +#line 41 "featureselect.h" +int select_one(void) ; +#line 8 "featureselect.c" +int select_one(void) +{ int retValue_acc ; + int choice = __VERIFIER_nondet_int(); + + { +#line 84 "featureselect.c" + retValue_acc = choice; +#line 86 + return (retValue_acc); +#line 93 + return (retValue_acc); +} +} +#line 14 "featureselect.c" +void select_features(void) +{ + + { +#line 115 "featureselect.c" + return; +} +} +#line 20 "featureselect.c" +void select_helpers(void) +{ + + { +#line 133 "featureselect.c" + return; +} +} +#line 25 "featureselect.c" +int valid_product(void) +{ int retValue_acc ; + + { +#line 151 "featureselect.c" + retValue_acc = 1; +#line 153 + return (retValue_acc); +#line 160 + return (retValue_acc); +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/fibo_2calls_2_false-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/fibo_2calls_2_false-unreach-call.c new file mode 100644 index 000000000..c7510d0ef --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/fibo_2calls_2_false-unreach-call.c @@ -0,0 +1,42 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int fibo1(int n); +int fibo2(int n); + +int fibo1(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo2(n-1) + fibo2(n-2); + } +} + +int fibo2(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo1(n-1) + fibo1(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 2; + int result = fibo1(x); + if (result == 1) { + ERROR: __VERIFIER_error(); + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/fibo_5_false-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/fibo_5_false-unreach-call.c new file mode 100644 index 000000000..f86824e33 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/fibo_5_false-unreach-call.c @@ -0,0 +1,30 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + + +int fibo(int n) { + if (n < 1) { + return 0; + } else if (n == 1) { + return 1; + } else { + return fibo(n-1) + fibo(n-2); + } +} + +// fibo 1-30 +// 1, 1, 2, 3, 5, +// 8, 13, 21, 34, 55, +// 89, 144, 233, 377, 610, +// 987, 1597, 2584, 4181, 6765, +// 10946, 17711, 28657, 46368, 75025, +// 121393, 196418, 317811, 514229, 832040 + +int main(void) { + int x = 5; + int result = fibo(x); + if (result == 5) { + ERROR: __VERIFIER_error(); + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/floppy_simpl3_false-unreach-call_true-termination.cil.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/floppy_simpl3_false-unreach-call_true-termination.cil.c new file mode 100644 index 000000000..11c050929 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/floppy_simpl3_false-unreach-call_true-termination.cil.c @@ -0,0 +1,1501 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +extern char __VERIFIER_nondet_char(void); +extern int __VERIFIER_nondet_int(void); +extern long __VERIFIER_nondet_long(void); +extern void *__VERIFIER_nondet_pointer(void); +void IofCompleteRequest(int Irp , int PriorityBoost ); +extern int __VERIFIER_nondet_int(); +int FloppyThread ; +int KernelMode ; +int Suspended ; +int Executive ; +int DiskController ; +int FloppyDiskPeripheral ; +int FlConfigCallBack ; +int MaximumInterfaceType ; +int MOUNTDEV_MOUNTED_DEVICE_GUID ; +int myStatus ; +int s ; +int UNLOADED ; +int NP ; +int DC ; +int SKIP1 ; +int SKIP2 ; +int MPR1 ; +int MPR3 ; +int IPC ; +int pended ; +int compRegistered ; +int lowerDriverReturn ; +int setEventCalled ; +int customIrp ; + +void errorFn(void) +{ + + { + ERROR: __VERIFIER_error(); + return; +} +} + +void _BLAST_init(void) +{ + + { +#line 73 + UNLOADED = 0; +#line 74 + NP = 1; +#line 75 + DC = 2; +#line 76 + SKIP1 = 3; +#line 77 + SKIP2 = 4; +#line 78 + MPR1 = 5; +#line 79 + MPR3 = 6; +#line 80 + IPC = 7; +#line 81 + s = UNLOADED; +#line 82 + pended = 0; +#line 83 + compRegistered = 0; +#line 84 + lowerDriverReturn = 0; +#line 85 + setEventCalled = 0; +#line 86 + customIrp = 0; +#line 87 + return; +} +} +#line 90 "floppy_simpl3.cil.c" +int PagingReferenceCount = 0; +#line 91 "floppy_simpl3.cil.c" +int PagingMutex = 0; +#line 92 "floppy_simpl3.cil.c" +int FlAcpiConfigureFloppy(int DisketteExtension , int FdcInfo ) +{ + + { +#line 96 + return (0); +} +} +#line 99 "floppy_simpl3.cil.c" +int FlQueueIrpToThread(int Irp , int DisketteExtension ) +{ int status ; + int threadHandle = __VERIFIER_nondet_int() ; + int DisketteExtension__PoweringDown = __VERIFIER_nondet_int() ; + int DisketteExtension__ThreadReferenceCount = __VERIFIER_nondet_int() ; + int DisketteExtension__FloppyThread = __VERIFIER_nondet_int() ; + int Irp__IoStatus__Status ; + int Irp__IoStatus__Information ; + int Irp__Tail__Overlay__CurrentStackLocation__Control ; + int ObjAttributes = __VERIFIER_nondet_int() ; + int __cil_tmp12 ; + int __cil_tmp13 ; + + { +#line 111 + if (DisketteExtension__PoweringDown == 1) { +#line 112 + myStatus = -1073741101; +#line 113 + Irp__IoStatus__Status = -1073741101; +#line 114 + Irp__IoStatus__Information = 0; +#line 115 + return (-1073741101); + } +#line 119 + DisketteExtension__ThreadReferenceCount ++; +#line 120 + if (DisketteExtension__ThreadReferenceCount == 0) { +#line 121 + DisketteExtension__ThreadReferenceCount ++; +#line 122 + PagingReferenceCount ++; +#line 123 + if (PagingReferenceCount == 1) { + + } + { +#line 129 + status = PsCreateSystemThread(threadHandle, 0, ObjAttributes, 0, 0, FloppyThread, + DisketteExtension); + } + { +#line 132 +#line 132 + if (status < 0) { +#line 133 + DisketteExtension__ThreadReferenceCount = -1; +#line 134 + PagingReferenceCount --; +#line 135 + if (PagingReferenceCount == 0) { + + } +#line 140 + return (status); + } + } + { +#line 145 + status = ObReferenceObjectByHandle(threadHandle, 1048576, 0, KernelMode, DisketteExtension__FloppyThread, + 0); +#line 147 + ZwClose(threadHandle); + } + { +#line 149 +#line 149 + if (status < 0) { +#line 150 + return (status); + } + } + } +#line 157 + // Irp__Tail__Overlay__CurrentStackLocation__Control |= 1; +#line 158 + if (pended == 0) { +#line 159 + pended = 1; + } else { + { +#line 162 + errorFn(); + } + } +#line 165 + return (259); +} +} +#line 168 "floppy_simpl3.cil.c" +int FloppyPnp(int DeviceObject , int Irp ) +{ int DeviceObject__DeviceExtension = __VERIFIER_nondet_int() ; + int Irp__Tail__Overlay__CurrentStackLocation = __VERIFIER_nondet_int() ; + int Irp__IoStatus__Information ; + int Irp__IoStatus__Status ; + int Irp__CurrentLocation = __VERIFIER_nondet_int() ; + int disketteExtension__IsRemoved = __VERIFIER_nondet_int() ; + int disketteExtension__IsStarted = __VERIFIER_nondet_int() ; + int disketteExtension__TargetObject = __VERIFIER_nondet_int() ; + int disketteExtension__HoldNewRequests ; + int disketteExtension__FloppyThread = __VERIFIER_nondet_int() ; + int disketteExtension__InterfaceString__Buffer = __VERIFIER_nondet_int() ; + int disketteExtension__InterfaceString = __VERIFIER_nondet_int() ; + int disketteExtension__ArcName__Length = __VERIFIER_nondet_int() ; + int disketteExtension__ArcName = __VERIFIER_nondet_int() ; + int irpSp__MinorFunction = __VERIFIER_nondet_int() ; + int IoGetConfigurationInformation__FloppyCount = __VERIFIER_nondet_int() ; + int irpSp ; + int disketteExtension ; + int ntStatus ; + int doneEvent = __VERIFIER_nondet_int() ; + int irpSp___0 ; + int nextIrpSp ; + int nextIrpSp__Control ; + int irpSp___1 ; + int irpSp__Context ; + int irpSp__Control ; + long __cil_tmp29 ; + long __cil_tmp30 ; + + { +#line 197 + ntStatus = 0; +#line 198 + PagingReferenceCount ++; +#line 199 + if (PagingReferenceCount == 1) { + + } +#line 204 + disketteExtension = DeviceObject__DeviceExtension; +#line 205 + irpSp = Irp__Tail__Overlay__CurrentStackLocation; +#line 206 + if (disketteExtension__IsRemoved) { + { +#line 208 + Irp__IoStatus__Information = 0; +#line 209 + Irp__IoStatus__Status = -1073741738; +#line 210 + myStatus = -1073741738; +#line 211 + IofCompleteRequest(Irp, 0); + } +#line 213 + return (-1073741738); + } +#line 217 + if (irpSp__MinorFunction == 0) { + goto switch_0_0; + } else { +#line 220 + if (irpSp__MinorFunction == 5) { + goto switch_0_5; + } else { +#line 223 + if (irpSp__MinorFunction == 1) { + goto switch_0_5; + } else { +#line 226 + if (irpSp__MinorFunction == 6) { + goto switch_0_6; + } else { +#line 229 + if (irpSp__MinorFunction == 3) { + goto switch_0_6; + } else { +#line 232 + if (irpSp__MinorFunction == 4) { + goto switch_0_4; + } else { +#line 235 + if (irpSp__MinorFunction == 2) { + goto switch_0_2; + } else { + goto switch_0_default; +#line 240 + if (0) { + switch_0_0: + { +#line 243 + ntStatus = FloppyStartDevice(DeviceObject, Irp); + } + goto switch_0_break; + switch_0_5: +#line 248 + if (irpSp__MinorFunction == 5) { + + } +#line 253 + if (! disketteExtension__IsStarted) { +#line 254 + if (s == NP) { +#line 255 + s = SKIP1; + } else { + { +#line 258 + errorFn(); + } + } + { +#line 262 + Irp__CurrentLocation ++; +#line 263 + Irp__Tail__Overlay__CurrentStackLocation ++; +#line 264 + ntStatus = IofCallDriver(disketteExtension__TargetObject, Irp); + } +#line 266 + return (ntStatus); + } + { +#line 271 + disketteExtension__HoldNewRequests = 1; +#line 272 + ntStatus = FlQueueIrpToThread(Irp, disketteExtension); + } + { +#line 274 + __cil_tmp29 = (long )ntStatus; +#line 274 + if (__cil_tmp29 == 259L) { + { +#line 276 + KeWaitForSingleObject(disketteExtension__FloppyThread, Executive, + KernelMode, 0, 0); + } +#line 279 + if (disketteExtension__FloppyThread != 0) { + + } +#line 284 + disketteExtension__FloppyThread = 0; +#line 285 + Irp__IoStatus__Status = 0; +#line 286 + myStatus = 0; +#line 287 + if (s == NP) { +#line 288 + s = SKIP1; + } else { + { +#line 291 + errorFn(); + } + } + { +#line 295 + Irp__CurrentLocation ++; +#line 296 + Irp__Tail__Overlay__CurrentStackLocation ++; +#line 297 + ntStatus = IofCallDriver(disketteExtension__TargetObject, Irp); + } + } else { + { +#line 301 + ntStatus = -1073741823; +#line 302 + Irp__IoStatus__Status = ntStatus; +#line 303 + myStatus = ntStatus; +#line 304 + Irp__IoStatus__Information = 0; +#line 305 + IofCompleteRequest(Irp, 0); + } + } + } + goto switch_0_break; + switch_0_6: +#line 311 + if (irpSp__MinorFunction == 6) { + + } +#line 316 + if (! disketteExtension__IsStarted) { +#line 317 + Irp__IoStatus__Status = 0; +#line 318 + myStatus = 0; +#line 319 + if (s == NP) { +#line 320 + s = SKIP1; + } else { + { +#line 323 + errorFn(); + } + } + { +#line 327 + Irp__CurrentLocation ++; +#line 328 + Irp__Tail__Overlay__CurrentStackLocation ++; +#line 329 + ntStatus = IofCallDriver(disketteExtension__TargetObject, Irp); + } + } else { +#line 332 + Irp__IoStatus__Status = 0; +#line 333 + myStatus = 0; +#line 334 + irpSp___0 = Irp__Tail__Overlay__CurrentStackLocation; +#line 335 + nextIrpSp = Irp__Tail__Overlay__CurrentStackLocation - 1; +#line 336 + nextIrpSp__Control = 0; +#line 337 + if (s != NP) { + { +#line 339 + errorFn(); + } + } else { +#line 342 + if (compRegistered != 0) { + { +#line 344 + errorFn(); + } + } else { +#line 347 + compRegistered = 1; + } + } + { +#line 351 + irpSp___1 = Irp__Tail__Overlay__CurrentStackLocation - 1; +#line 352 + irpSp__Context = doneEvent; +#line 353 + irpSp__Control = 224; +#line 357 + ntStatus = IofCallDriver(disketteExtension__TargetObject, Irp); + } + { +#line 359 + __cil_tmp30 = (long )ntStatus; +#line 359 + if (__cil_tmp30 == 259L) { + { +#line 361 + KeWaitForSingleObject(doneEvent, Executive, KernelMode, 0, 0); +#line 362 + ntStatus = myStatus; + } + } + } + { +#line 368 + disketteExtension__HoldNewRequests = 0; +#line 369 + Irp__IoStatus__Status = ntStatus; +#line 370 + myStatus = ntStatus; +#line 371 + Irp__IoStatus__Information = 0; +#line 372 + IofCompleteRequest(Irp, 0); + } + } + goto switch_0_break; + switch_0_4: +#line 377 + disketteExtension__IsStarted = 0; +#line 378 + Irp__IoStatus__Status = 0; +#line 379 + myStatus = 0; +#line 380 + if (s == NP) { +#line 381 + s = SKIP1; + } else { + { +#line 384 + errorFn(); + } + } + { +#line 388 + Irp__CurrentLocation ++; +#line 389 + Irp__Tail__Overlay__CurrentStackLocation ++; +#line 390 + ntStatus = IofCallDriver(disketteExtension__TargetObject, Irp); + } + goto switch_0_break; + switch_0_2: +#line 394 + disketteExtension__HoldNewRequests = 0; +#line 395 + disketteExtension__IsStarted = 0; +#line 396 + disketteExtension__IsRemoved = 1; +#line 397 + if (s == NP) { +#line 398 + s = SKIP1; + } else { + { +#line 401 + errorFn(); + } + } + { +#line 405 + Irp__CurrentLocation ++; +#line 406 + Irp__Tail__Overlay__CurrentStackLocation ++; +#line 407 + Irp__IoStatus__Status = 0; +#line 408 + myStatus = 0; +#line 409 + ntStatus = IofCallDriver(disketteExtension__TargetObject, Irp); + } +#line 411 + if (disketteExtension__InterfaceString__Buffer != 0) { + { +#line 413 + IoSetDeviceInterfaceState(disketteExtension__InterfaceString, + 0); + } + } +#line 419 + if (disketteExtension__ArcName__Length != 0) { + { +#line 421 + IoDeleteSymbolicLink(disketteExtension__ArcName); + } + } +#line 426 + IoGetConfigurationInformation__FloppyCount --; + goto switch_0_break; + switch_0_default: ; +#line 429 + if (s == NP) { +#line 430 + s = SKIP1; + } else { + { +#line 433 + errorFn(); + } + } + { +#line 437 + Irp__CurrentLocation ++; +#line 438 + Irp__Tail__Overlay__CurrentStackLocation ++; +#line 439 + ntStatus = IofCallDriver(disketteExtension__TargetObject, Irp); + } + } else { + switch_0_break: ; + } + } + } + } + } + } + } + } +#line 452 + PagingReferenceCount --; +#line 453 + if (PagingReferenceCount == 0) { + + } +#line 458 + return (ntStatus); +} +} +#line 461 "floppy_simpl3.cil.c" +int FloppyStartDevice(int DeviceObject , int Irp ) +{ int DeviceObject__DeviceExtension = __VERIFIER_nondet_int() ; + int Irp__Tail__Overlay__CurrentStackLocation = __VERIFIER_nondet_int() ; + int Irp__IoStatus__Status ; + int disketteExtension__TargetObject = __VERIFIER_nondet_int() ; + int disketteExtension__MaxTransferSize ; + int disketteExtension__DriveType = __VERIFIER_nondet_int() ; + int disketteExtension__PerpendicularMode ; + int disketteExtension__DeviceUnit ; + int disketteExtension__DriveOnValue ; + int disketteExtension__UnderlyingPDO = __VERIFIER_nondet_int() ; + int disketteExtension__InterfaceString = __VERIFIER_nondet_int() ; + int disketteExtension__IsStarted ; + int disketteExtension__HoldNewRequests ; + int ntStatus ; + int pnpStatus ; + int doneEvent = __VERIFIER_nondet_int() ; + int fdcInfo = __VERIFIER_nondet_int() ; + int fdcInfo__BufferCount ; + int fdcInfo__BufferSize ; + int fdcInfo__MaxTransferSize = __VERIFIER_nondet_int() ; + int fdcInfo__AcpiBios = __VERIFIER_nondet_int() ; + int fdcInfo__AcpiFdiSupported = __VERIFIER_nondet_int() ; + int fdcInfo__PeripheralNumber = __VERIFIER_nondet_int() ; + int fdcInfo__BusType ; + int fdcInfo__ControllerNumber = __VERIFIER_nondet_int() ; + int fdcInfo__UnitNumber = __VERIFIER_nondet_int() ; + int fdcInfo__BusNumber = __VERIFIER_nondet_int() ; + int Dc ; + int Fp ; + int disketteExtension ; + int irpSp ; + int irpSp___0 ; + int nextIrpSp ; + int nextIrpSp__Control ; + int irpSp___1 ; + int irpSp__Control ; + int irpSp__Context ; + int InterfaceType ; + int KUSER_SHARED_DATA__AlternativeArchitecture_NEC98x86 = __VERIFIER_nondet_int() ; + long __cil_tmp42 ; + int __cil_tmp43 ; + int __cil_tmp44 ; + int __cil_tmp45 ; + int __cil_tmp46 ; + int __cil_tmp47 ; + int __cil_tmp48 ; + int __cil_tmp49 ; + + { +#line 503 + Dc = DiskController; +#line 504 + Fp = FloppyDiskPeripheral; +#line 505 + disketteExtension = DeviceObject__DeviceExtension; +#line 506 + irpSp = Irp__Tail__Overlay__CurrentStackLocation; +#line 507 + irpSp___0 = Irp__Tail__Overlay__CurrentStackLocation; +#line 508 + nextIrpSp = Irp__Tail__Overlay__CurrentStackLocation - 1; +#line 509 + nextIrpSp__Control = 0; +#line 510 + if (s != NP) { + { +#line 512 + errorFn(); + } + } else { +#line 515 + if (compRegistered != 0) { + { +#line 517 + errorFn(); + } + } else { +#line 520 + compRegistered = 1; + } + } + { +#line 524 + irpSp___1 = Irp__Tail__Overlay__CurrentStackLocation - 1; +#line 525 + irpSp__Context = doneEvent; +#line 526 + irpSp__Control = 224; +#line 530 + ntStatus = IofCallDriver(disketteExtension__TargetObject, Irp); + } + { +#line 532 + __cil_tmp42 = (long )ntStatus; +#line 532 + if (__cil_tmp42 == 259L) { + { +#line 534 + ntStatus = KeWaitForSingleObject(doneEvent, Executive, KernelMode, 0, 0); +#line 535 + ntStatus = myStatus; + } + } + } + { +#line 541 + fdcInfo__BufferCount = 0; +#line 542 + fdcInfo__BufferSize = 0; +#line 543 + __cil_tmp43 = 3080; +#line 543 + __cil_tmp44 = 458752; +#line 543 + __cil_tmp45 = 461832; +#line 543 + __cil_tmp46 = 461835; +#line 543 + ntStatus = FlFdcDeviceIo(disketteExtension__TargetObject, __cil_tmp46, fdcInfo); + } +#line 546 + if (ntStatus >= 0) { +#line 547 + disketteExtension__MaxTransferSize = fdcInfo__MaxTransferSize; +#line 548 + if (fdcInfo__AcpiBios) { +#line 549 + if (fdcInfo__AcpiFdiSupported) { + { +#line 551 + ntStatus = FlAcpiConfigureFloppy(disketteExtension, fdcInfo); + } +#line 553 + if (disketteExtension__DriveType == 4) { +#line 554 + //__cil_tmp47 = uninf1(); +#line 554 + //disketteExtension__PerpendicularMode |= __cil_tmp47; + } + } else { + goto _L; + } + } else { + _L: +#line 563 + if (disketteExtension__DriveType == 4) { +#line 564 + //__cil_tmp48 = uninf1(); +#line 564 + //disketteExtension__PerpendicularMode |= __cil_tmp48; + } +#line 568 + InterfaceType = 0; + { +#line 570 + while (1) { + while_0_continue: /* CIL Label */ ; + +#line 572 + if (InterfaceType >= MaximumInterfaceType) { + goto while_1_break; + } + { +#line 578 + fdcInfo__BusType = InterfaceType; +#line 579 + ntStatus = IoQueryDeviceDescription(fdcInfo__BusType, fdcInfo__BusNumber, + Dc, fdcInfo__ControllerNumber, Fp, fdcInfo__PeripheralNumber, + FlConfigCallBack, disketteExtension); + } +#line 583 + if (ntStatus >= 0) { + goto while_1_break; + } +#line 588 + InterfaceType ++; + } + while_0_break: /* CIL Label */ ; + } + while_1_break: ; + } +#line 593 + if (ntStatus >= 0) { +#line 594 + if (KUSER_SHARED_DATA__AlternativeArchitecture_NEC98x86 != 0) { +#line 595 + disketteExtension__DeviceUnit = fdcInfo__UnitNumber; +#line 596 + //disketteExtension__DriveOnValue = fdcInfo__UnitNumber; + } else { +#line 598 + disketteExtension__DeviceUnit = fdcInfo__PeripheralNumber; +#line 599 + //__cil_tmp49 = 16 << fdcInfo__PeripheralNumber; +#line 599 + //disketteExtension__DriveOnValue = fdcInfo__PeripheralNumber | __cil_tmp49; + } + { +#line 602 + pnpStatus = IoRegisterDeviceInterface(disketteExtension__UnderlyingPDO, MOUNTDEV_MOUNTED_DEVICE_GUID, + 0, disketteExtension__InterfaceString); + } +#line 605 + if (pnpStatus >= 0) { + { +#line 607 + pnpStatus = IoSetDeviceInterfaceState(disketteExtension__InterfaceString, + 1); + } + } +#line 613 + disketteExtension__IsStarted = 1; +#line 614 + disketteExtension__HoldNewRequests = 0; + } + } + { +#line 622 + Irp__IoStatus__Status = ntStatus; +#line 623 + myStatus = ntStatus; +#line 624 + IofCompleteRequest(Irp, 0); + } +#line 626 + return (ntStatus); +} +} +#line 629 "floppy_simpl3.cil.c" +int FloppyPnpComplete(int DeviceObject , int Irp , int Context ) +{ + + { + { +#line 634 + KeSetEvent(Context, 1, 0); + } +#line 636 + return (-1073741802); +} +} +#line 639 "floppy_simpl3.cil.c" +int FlFdcDeviceIo(int DeviceObject , int Ioctl , int Data ) +{ int ntStatus ; + int irp ; + int irpStack ; + int doneEvent = __VERIFIER_nondet_int() ; + int ioStatus = __VERIFIER_nondet_int() ; + int irp__Tail__Overlay__CurrentStackLocation = __VERIFIER_nondet_int() ; + int irpStack__Parameters__DeviceIoControl__Type3InputBuffer ; + long __cil_tmp11 ; + + { + { +#line 650 + irp = IoBuildDeviceIoControlRequest(Ioctl, DeviceObject, 0, 0, 0, 0, 1, doneEvent, + ioStatus); + } +#line 653 + if (irp == 0) { +#line 654 + return (-1073741670); + } + { +#line 659 + irpStack = irp__Tail__Overlay__CurrentStackLocation - 1; +#line 660 + irpStack__Parameters__DeviceIoControl__Type3InputBuffer = Data; +#line 661 + ntStatus = IofCallDriver(DeviceObject, irp); + } + { +#line 663 + __cil_tmp11 = (long )ntStatus; +#line 663 + if (__cil_tmp11 == 259L) { + { +#line 665 + KeWaitForSingleObject(doneEvent, Suspended, KernelMode, 0, 0); +#line 666 + ntStatus = myStatus; + } + } + } +#line 671 + return (ntStatus); +} +} +#line 674 "floppy_simpl3.cil.c" +void FloppyProcessQueuedRequests(int DisketteExtension ) +{ + + { +#line 678 + return; +} +} +#line 681 "floppy_simpl3.cil.c" +void stub_driver_init(void) +{ + + { +#line 685 + s = NP; +#line 686 + pended = 0; +#line 687 + compRegistered = 0; +#line 688 + lowerDriverReturn = 0; +#line 689 + setEventCalled = 0; +#line 690 + customIrp = 0; +#line 691 + return; +} +} +#line 694 "floppy_simpl3.cil.c" +int main(void) +{ int status ; + int irp = __VERIFIER_nondet_int() ; + int pirp ; + int pirp__IoStatus__Status ; + int irp_choice = __VERIFIER_nondet_int() ; + int devobj = __VERIFIER_nondet_int() ; + int __cil_tmp8 ; + + FloppyThread = 0; + KernelMode = 0; + Suspended = 0; + Executive = 0; + DiskController = 0; + FloppyDiskPeripheral = 0; + FlConfigCallBack = 0; + MaximumInterfaceType = 0; + MOUNTDEV_MOUNTED_DEVICE_GUID = 0; + myStatus = 0; + s = 0; + UNLOADED = 0; + NP = 0; + DC = 0; + SKIP1 = 0; + SKIP2 = 0; + MPR1 = 0; + MPR3 = 0; + IPC = 0; + pended = 0; + compRegistered = 0; + lowerDriverReturn = 0; + setEventCalled = 0; + customIrp = 0; + + { + { +#line 705 + status = 0; +#line 706 + pirp = irp; +#line 707 + _BLAST_init(); + } +#line 709 + if (status >= 0) { +#line 710 + s = NP; +#line 711 + customIrp = 0; +#line 712 + setEventCalled = customIrp; +#line 713 + lowerDriverReturn = setEventCalled; +#line 714 + compRegistered = lowerDriverReturn; +#line 715 + pended = compRegistered; +#line 716 + pirp__IoStatus__Status = 0; +#line 717 + myStatus = 0; +#line 718 + if (irp_choice == 0) { +#line 719 + pirp__IoStatus__Status = -1073741637; +#line 720 + myStatus = -1073741637; + } + { +#line 725 + stub_driver_init(); + } + { +#line 727 +#line 727 + if (status < 0) { +#line 728 + return (-1); + } + } +#line 732 + int tmp_ndt_1; + tmp_ndt_1 = __VERIFIER_nondet_int(); + if (tmp_ndt_1 == 3) { + goto switch_2_3; + } else { + goto switch_2_default; +#line 737 + if (0) { + switch_2_3: + { +#line 740 + status = FloppyPnp(devobj, pirp); + } + goto switch_2_break; + switch_2_default: ; +#line 744 + return (-1); + } else { + switch_2_break: ; + } + } + } +#line 753 + if (pended == 1) { +#line 754 + if (s == NP) { +#line 755 + s = NP; + } else { + goto _L___2; + } + } else { + _L___2: +#line 761 + if (pended == 1) { +#line 762 + if (s == MPR3) { +#line 763 + s = MPR3; + } else { + goto _L___1; + } + } else { + _L___1: +#line 769 + if (s != UNLOADED) { +#line 772 + if (status != -1) { +#line 775 + if (s != SKIP2) { +#line 776 + if (s != IPC) { +#line 777 + if (s != DC) { + { +#line 779 + errorFn(); + } + } else { + goto _L___0; + } + } else { + goto _L___0; + } + } else { + _L___0: +#line 789 + if (pended == 1) { +#line 790 + if (status != 259) { +#line 791 + errorFn(); + } + } else { +#line 796 + if (s == DC) { +#line 797 + if (status == 259) { + { +#line 799 + errorFn(); + } + } + } else { +#line 805 + if (status != lowerDriverReturn) { + { +#line 807 + errorFn(); + } + } + } + } + } + } + } + } + } +#line 819 + status = 0; +#line 820 + return (status); +} +} +#line 823 "floppy_simpl3.cil.c" +int IoBuildDeviceIoControlRequest(int IoControlCode , int DeviceObject , int InputBuffer , + int InputBufferLength , int OutputBuffer , int OutputBufferLength , + int InternalDeviceIoControl , int Event , int IoStatusBlock ) +{ + int malloc = __VERIFIER_nondet_int() ; + + { +#line 830 + customIrp = 1; +#line 831 + int tmp_ndt_2; + tmp_ndt_2 = __VERIFIER_nondet_int(); + if (tmp_ndt_2 == 0) { + goto switch_3_0; + } else { + goto switch_3_default; +#line 836 + if (0) { + switch_3_0: +#line 838 + return (malloc); + switch_3_default: ; +#line 840 + return (0); + } else { + + } + } +} +} +#line 848 "floppy_simpl3.cil.c" +int IoDeleteSymbolicLink(int SymbolicLinkName ) +{ + + { +#line 852 + int tmp_ndt_3; + tmp_ndt_3 = __VERIFIER_nondet_int(); + if (tmp_ndt_3 == 0) { + goto switch_4_0; + } else { + goto switch_4_default; +#line 857 + if (0) { + switch_4_0: +#line 859 + return (0); + switch_4_default: ; +#line 861 + return (-1073741823); + } else { + + } + } +} +} +#line 869 "floppy_simpl3.cil.c" +int IoQueryDeviceDescription(int BusType , int BusNumber , int ControllerType , int ControllerNumber , + int PeripheralType , int PeripheralNumber , int CalloutRoutine , + int Context ) +{ + + { +#line 875 + int tmp_ndt_4; + tmp_ndt_4 = __VERIFIER_nondet_int(); + if (tmp_ndt_4 == 0) { + goto switch_5_0; + } else { + goto switch_5_default; +#line 880 + if (0) { + switch_5_0: +#line 882 + return (0); + switch_5_default: ; +#line 884 + return (-1073741823); + } else { + + } + } +} +} +#line 892 "floppy_simpl3.cil.c" +int IoRegisterDeviceInterface(int PhysicalDeviceObject , int InterfaceClassGuid , + int ReferenceString , int SymbolicLinkName ) +{ + + { +#line 897 + int tmp_ndt_5; + tmp_ndt_5 = __VERIFIER_nondet_int(); + if (tmp_ndt_5 == 0) { + goto switch_6_0; + } else { + goto switch_6_default; +#line 902 + if (0) { + switch_6_0: +#line 904 + return (0); + switch_6_default: ; +#line 906 + return (-1073741808); + } else { + + } + } +} +} +#line 914 "floppy_simpl3.cil.c" +int IoSetDeviceInterfaceState(int SymbolicLinkName , int Enable ) +{ + + { +#line 918 + int tmp_ndt_6; + tmp_ndt_6 = __VERIFIER_nondet_int(); + if (tmp_ndt_6 == 0) { + goto switch_7_0; + } else { + goto switch_7_default; +#line 923 + if (0) { + switch_7_0: +#line 925 + return (0); + switch_7_default: ; +#line 927 + return (-1073741823); + } else { + + } + } +} +} +#line 935 "floppy_simpl3.cil.c" +void stubMoreProcessingRequired(void) +{ + + { +#line 939 + if (s == NP) { +#line 940 + s = MPR1; + } else { + { +#line 943 + errorFn(); + } + } +#line 946 + return; +} +} +#line 949 "floppy_simpl3.cil.c" +int IofCallDriver(int DeviceObject , int Irp ) +{ + int returnVal2 ; + int compRetStatus1 ; + int lcontext = __VERIFIER_nondet_int() ; + unsigned long __cil_tmp7 ; + + { +#line 956 + if (compRegistered) { + { +#line 958 + compRetStatus1 = FloppyPnpComplete(DeviceObject, Irp, lcontext); + } + { +#line 960 + __cil_tmp7 = (unsigned long )compRetStatus1; +#line 960 + if (__cil_tmp7 == -1073741802) { + { +#line 962 + stubMoreProcessingRequired(); + } + } + } + } +#line 970 + int tmp_ndt_12; + tmp_ndt_12 = __VERIFIER_nondet_int(); + if (tmp_ndt_12 == 0) { + goto switch_8_0; + } else { +#line 973 + int tmp_ndt_7; + tmp_ndt_7 = __VERIFIER_nondet_int(); + if (tmp_ndt_7 == 1) { + goto switch_8_1; + } else { + goto switch_8_default; +#line 978 + if (0) { + switch_8_0: +#line 980 + returnVal2 = 0; + goto switch_8_break; + switch_8_1: +#line 983 + returnVal2 = -1073741823; + goto switch_8_break; + switch_8_default: +#line 986 + returnVal2 = 259; + goto switch_8_break; + } else { + switch_8_break: ; + } + } + } +#line 994 + if (s == NP) { +#line 995 + s = IPC; +#line 996 + lowerDriverReturn = returnVal2; + } else { +#line 998 + if (s == MPR1) { +#line 999 + if (returnVal2 == 259) { +#line 1000 + s = MPR3; +#line 1001 + lowerDriverReturn = returnVal2; + } else { +#line 1003 + s = NP; +#line 1004 + lowerDriverReturn = returnVal2; + } + } else { +#line 1007 + if (s == SKIP1) { +#line 1008 + s = SKIP2; +#line 1009 + lowerDriverReturn = returnVal2; + } else { + { +#line 1012 + errorFn(); + } + } + } + } +#line 1017 + return (returnVal2); +} +} +#line 1020 "floppy_simpl3.cil.c" +void IofCompleteRequest(int Irp , int PriorityBoost ) +{ + + { +#line 1024 + if (s == NP) { +#line 1025 + s = DC; + } else { + { +#line 1028 + errorFn(); + } + } +#line 1031 + return; +} +} +#line 1034 "floppy_simpl3.cil.c" +int KeSetEvent(int Event , int Increment , int Wait ) +{ int l = __VERIFIER_nondet_int() ; + + { +#line 1038 + setEventCalled = 1; +#line 1039 + return (l); +} +} +#line 1042 "floppy_simpl3.cil.c" +int KeWaitForSingleObject(int Object , int WaitReason , int WaitMode , int Alertable , + int Timeout ) +{ + + { +#line 1047 + if (s == MPR3) { +#line 1048 + if (setEventCalled == 1) { +#line 1049 + s = NP; +#line 1050 + setEventCalled = 0; + } else { + goto _L; + } + } else { + _L: +#line 1056 + if (customIrp == 1) { +#line 1057 + s = NP; +#line 1058 + customIrp = 0; + } else { +#line 1060 + if (s == MPR3) { + { +#line 1062 + errorFn(); + } + } + } + } +#line 1069 + int tmp_ndt_8; + tmp_ndt_8 = __VERIFIER_nondet_int(); + if (tmp_ndt_8 == 0) { + goto switch_9_0; + } else { + goto switch_9_default; +#line 1074 + if (0) { + switch_9_0: +#line 1076 + return (0); + switch_9_default: ; +#line 1078 + return (-1073741823); + } else { + + } + } +} +} +#line 1086 "floppy_simpl3.cil.c" +int ObReferenceObjectByHandle(int Handle , int DesiredAccess , int ObjectType , int AccessMode , + int Object , int HandleInformation ) +{ + + { +#line 1091 + int tmp_ndt_9; + tmp_ndt_9 = __VERIFIER_nondet_int(); + if (tmp_ndt_9 == 0) { + goto switch_10_0; + } else { + goto switch_10_default; +#line 1096 + if (0) { + switch_10_0: +#line 1098 + return (0); + switch_10_default: ; +#line 1100 + return (-1073741823); + } else { + + } + } +} +} +#line 1108 "floppy_simpl3.cil.c" +int PsCreateSystemThread(int ThreadHandle , int DesiredAccess , int ObjectAttributes , + int ProcessHandle , int ClientId , int StartRoutine , int StartContext ) +{ + + { +#line 1113 + int tmp_ndt_10; + tmp_ndt_10 = __VERIFIER_nondet_int(); + if (tmp_ndt_10 == 0) { + goto switch_11_0; + } else { + goto switch_11_default; +#line 1118 + if (0) { + switch_11_0: +#line 1120 + return (0); + switch_11_default: ; +#line 1122 + return (-1073741823); + } else { + + } + } +} +} +#line 1130 "floppy_simpl3.cil.c" +int ZwClose(int Handle ) +{ + + { +#line 1134 + int tmp_ndt_11; + tmp_ndt_11 = __VERIFIER_nondet_int(); + if (tmp_ndt_11 == 0) { + goto switch_12_0; + } else { + goto switch_12_default; +#line 1139 + if (0) { + switch_12_0: +#line 1141 + return (0); + switch_12_default: ; +#line 1143 + return (-1073741823); + } else { + + } + } +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/gcd01_true-unreach-call_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/gcd01_true-unreach-call_true-termination.c new file mode 100644 index 000000000..ae7e71a06 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/gcd01_true-unreach-call_true-termination.c @@ -0,0 +1,43 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * Recursive implementation of the greatest common denominator + * using Euclid's algorithm + * + * Author: Jan Leike + * Date: 2013-07-17 + * + */ + +extern int __VERIFIER_nondet_int(void); + +// Compute the greatest common denominator using Euclid's algorithm +int gcd(int y1, int y2) { + if (y1 <= 0 || y2 <= 0) { + return 0; + } + if (y1 == y2) { + return y1; + } + if (y1 > y2) { + return gcd(y1 - y2, y2); + } + return gcd(y1, y2 - y1); +} + +int main() { + int m = __VERIFIER_nondet_int(); + if (m <= 0 || m > 2147483647) { + return 0; + } + int n = __VERIFIER_nondet_int(); + if (n <= 0 || n > 2147483647) { + return 0; + } + int z = gcd(m, n); + if (z < 1 && m > 0 && n > 0) { + ERROR: __VERIFIER_error(); + } else { + return 0; + } +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/id2_b2_o3_true-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/id2_b2_o3_true-unreach-call.c new file mode 100644 index 000000000..67ce0fa7a --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/id2_b2_o3_true-unreach-call.c @@ -0,0 +1,27 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int id(int x); +int id2(int x); + +int id(int x) { + if (x==0) return 0; + int ret = id2(x-1) + 1; + if (ret > 2) return 2; + return ret; +} + +int id2(int x) { + if (x==0) return 0; + int ret = id(x-1) + 1; + if (ret > 2) return 2; + return ret; +} + +int main(void) { + int input = __VERIFIER_nondet_int(); + int result = id(input); + if (result == 3) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/id_i10_o10_false-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/id_i10_o10_false-unreach-call.c new file mode 100644 index 000000000..c3bd38f21 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/id_i10_o10_false-unreach-call.c @@ -0,0 +1,15 @@ +extern int __VERIFIER_nondet_int(); +extern void __VERIFIER_error(); + +int id(int x) { + if (x==0) return 0; + return id(x-1) + 1; +} + +int main(void) { + int input = 10; + int result = id(input); + if (result == 10) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/kbfiltr_simpl1_true-unreach-call_true-termination.cil.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/kbfiltr_simpl1_true-unreach-call_true-termination.cil.c new file mode 100644 index 000000000..6a8e0c34e --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/kbfiltr_simpl1_true-unreach-call_true-termination.cil.c @@ -0,0 +1,768 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +extern char __VERIFIER_nondet_char(void); +extern int __VERIFIER_nondet_int(void); +extern long __VERIFIER_nondet_long(void); +extern void *__VERIFIER_nondet_pointer(void); +extern int __VERIFIER_nondet_int(); +/* Generated by CIL v. 1.3.6 */ +/* print_CIL_Input is true */ + +int KernelMode ; +int Executive ; +int s ; +int UNLOADED ; +int NP ; +int DC ; +int SKIP1 ; +int SKIP2 ; +int MPR1 ; +int MPR3 ; +int IPC ; +int pended ; +int compFptr ; +int compRegistered ; +int lowerDriverReturn ; +int setEventCalled ; +int customIrp ; +int myStatus ; + +void stub_driver_init(void) +{ + + { +#line 46 + s = NP; +#line 47 + pended = 0; +#line 48 + compFptr = 0; +#line 49 + compRegistered = 0; +#line 50 + lowerDriverReturn = 0; +#line 51 + setEventCalled = 0; +#line 52 + customIrp = 0; +#line 53 + return; +} +} +#line 56 "kbfiltr_simpl1.cil.c" +void _BLAST_init(void) +{ + + { +#line 60 + UNLOADED = 0; +#line 61 + NP = 1; +#line 62 + DC = 2; +#line 63 + SKIP1 = 3; +#line 64 + SKIP2 = 4; +#line 65 + MPR1 = 5; +#line 66 + MPR3 = 6; +#line 67 + IPC = 7; +#line 68 + s = UNLOADED; +#line 69 + pended = 0; +#line 70 + compFptr = 0; +#line 71 + compRegistered = 0; +#line 72 + lowerDriverReturn = 0; +#line 73 + setEventCalled = 0; +#line 74 + customIrp = 0; +#line 75 + return; +} +} +#line 78 "kbfiltr_simpl1.cil.c" +void IofCompleteRequest(int, int); +void errorFn(void); +int KbFilter_PnP(int DeviceObject , int Irp ) +{ int devExt ; + int irpStack ; + int status ; + int event = __VERIFIER_nondet_int() ; + int DeviceObject__DeviceExtension = __VERIFIER_nondet_int() ; + int Irp__Tail__Overlay__CurrentStackLocation = __VERIFIER_nondet_int() ; + int irpStack__MinorFunction = __VERIFIER_nondet_int() ; + int devExt__TopOfStack = __VERIFIER_nondet_int() ; + int devExt__Started ; + int devExt__Removed ; + int devExt__SurpriseRemoved ; + int Irp__IoStatus__Status ; + int Irp__IoStatus__Information ; + int Irp__CurrentLocation = __VERIFIER_nondet_int() ; + int irpSp ; + int nextIrpSp ; + int nextIrpSp__Control ; + int irpSp___0 ; + int irpSp__Context ; + int irpSp__Control ; + long __cil_tmp23 ; + + { +#line 101 + status = 0; +#line 102 + devExt = DeviceObject__DeviceExtension; +#line 103 + irpStack = Irp__Tail__Overlay__CurrentStackLocation; +#line 104 + if (irpStack__MinorFunction == 0) { + goto switch_0_0; + } else { +#line 107 + if (irpStack__MinorFunction == 23) { + goto switch_0_23; + } else { +#line 110 + if (irpStack__MinorFunction == 2) { + goto switch_0_2; + } else { +#line 113 + if (irpStack__MinorFunction == 1) { + goto switch_0_1; + } else { +#line 116 + if (irpStack__MinorFunction == 5) { + goto switch_0_1; + } else { +#line 119 + if (irpStack__MinorFunction == 3) { + goto switch_0_1; + } else { +#line 122 + if (irpStack__MinorFunction == 6) { + goto switch_0_1; + } else { +#line 125 + if (irpStack__MinorFunction == 13) { + goto switch_0_1; + } else { +#line 128 + if (irpStack__MinorFunction == 4) { + goto switch_0_1; + } else { +#line 131 + if (irpStack__MinorFunction == 7) { + goto switch_0_1; + } else { +#line 134 + if (irpStack__MinorFunction == 8) { + goto switch_0_1; + } else { +#line 137 + if (irpStack__MinorFunction == 9) { + goto switch_0_1; + } else { +#line 140 + if (irpStack__MinorFunction == 12) { + goto switch_0_1; + } else { +#line 143 + if (irpStack__MinorFunction == 10) { + goto switch_0_1; + } else { +#line 146 + if (irpStack__MinorFunction == 11) { + goto switch_0_1; + } else { +#line 149 + if (irpStack__MinorFunction == 15) { + goto switch_0_1; + } else { +#line 152 + if (irpStack__MinorFunction == 16) { + goto switch_0_1; + } else { +#line 155 + if (irpStack__MinorFunction == 17) { + goto switch_0_1; + } else { +#line 158 + if (irpStack__MinorFunction == 18) { + goto switch_0_1; + } else { +#line 161 + if (irpStack__MinorFunction == 19) { + goto switch_0_1; + } else { +#line 164 + if (irpStack__MinorFunction == 20) { + goto switch_0_1; + } else { + goto switch_0_1; +#line 169 + if (0) { + switch_0_0: +#line 171 + irpSp = Irp__Tail__Overlay__CurrentStackLocation; +#line 172 + nextIrpSp = Irp__Tail__Overlay__CurrentStackLocation - 1; +#line 173 + nextIrpSp__Control = 0; +#line 174 + if (s != NP) { + { +#line 176 + errorFn(); + } + } else { +#line 179 + if (compRegistered != 0) { + { +#line 181 + errorFn(); + } + } else { +#line 184 + compRegistered = 1; + } + } + { +#line 188 + irpSp___0 = Irp__Tail__Overlay__CurrentStackLocation - 1; +#line 189 + irpSp__Control = 224; +#line 192 + status = IofCallDriver(devExt__TopOfStack, + Irp); + } + { +#line 197 + __cil_tmp23 = (long )status; +#line 197 + if (__cil_tmp23 == 259 ) { + { +#line 199 + KeWaitForSingleObject(event, Executive, + KernelMode, + 0, 0); + } + } + } +#line 206 + if (status >= 0) { +#line 207 + if (myStatus >= 0) { +#line 208 + devExt__Started = 1; +#line 209 + devExt__Removed = 0; +#line 210 + devExt__SurpriseRemoved = 0; + } + } + { +#line 218 + Irp__IoStatus__Status = status; +#line 219 + myStatus = status; +#line 220 + Irp__IoStatus__Information = 0; +#line 221 + IofCompleteRequest(Irp, 0); + } + goto switch_0_break; + switch_0_23: +#line 225 + devExt__SurpriseRemoved = 1; +#line 226 + if (s == NP) { +#line 227 + s = SKIP1; + } else { + { +#line 230 + errorFn(); + } + } + { +#line 234 + Irp__CurrentLocation ++; +#line 235 + Irp__Tail__Overlay__CurrentStackLocation ++; +#line 236 + status = IofCallDriver(devExt__TopOfStack, + Irp); + } + goto switch_0_break; + switch_0_2: +#line 241 + devExt__Removed = 1; +#line 242 + if (s == NP) { +#line 243 + s = SKIP1; + } else { + { +#line 246 + errorFn(); + } + } + { +#line 250 + Irp__CurrentLocation ++; +#line 251 + Irp__Tail__Overlay__CurrentStackLocation ++; +#line 252 + IofCallDriver(devExt__TopOfStack, Irp); +#line 253 + status = 0; + } + goto switch_0_break; + switch_0_1: ; +#line 275 + if (s == NP) { +#line 276 + s = SKIP1; + } else { + { +#line 279 + errorFn(); + } + } + { +#line 283 + Irp__CurrentLocation ++; +#line 284 + Irp__Tail__Overlay__CurrentStackLocation ++; +#line 285 + status = IofCallDriver(devExt__TopOfStack, + Irp); + } + goto switch_0_break; + } else { + switch_0_break: ; + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } +#line 314 + return (status); +} +} +#line 317 "kbfiltr_simpl1.cil.c" +int main(void) +{ int status ; + int irp = __VERIFIER_nondet_int() ; + int pirp ; + int pirp__IoStatus__Status ; + int irp_choice = __VERIFIER_nondet_int() ; + int devobj = __VERIFIER_nondet_int() ; + int __cil_tmp8 ; + + { + { +; +KernelMode = 0 ; + Executive = 0; +s = 0; +UNLOADED = 0; +NP = 0; + DC = 0; + SKIP1 = 0; + SKIP2 = 0; + MPR1 = 0; + MPR3 = 0; + IPC = 0; + pended = 0; + compFptr = 0; + compRegistered = 0; + lowerDriverReturn = 0; + setEventCalled = 0; + customIrp = 0; + myStatus = 0; + +#line 328 + status = 0; +#line 329 + pirp = irp; +#line 330 + _BLAST_init(); + } +#line 332 + if (status >= 0) { +#line 333 + s = NP; +#line 334 + customIrp = 0; +#line 335 + setEventCalled = customIrp; +#line 336 + lowerDriverReturn = setEventCalled; +#line 337 + compRegistered = lowerDriverReturn; +#line 338 + pended = compRegistered; +#line 339 + pirp__IoStatus__Status = 0; +#line 340 + myStatus = 0; +#line 341 + if (irp_choice == 0) { +#line 342 + pirp__IoStatus__Status = -1073741637; +#line 343 + myStatus = -1073741637; + } + { +#line 348 + stub_driver_init(); + } + { +#line 350 + if(status >= 0){ + __cil_tmp8 = 1; + } + else{ + __cil_tmp8 = 0; + } +#line 350 + if (! __cil_tmp8) { +#line 351 + return (-1); + } + } +#line 355 + int tmp_ndt_1; + tmp_ndt_1 = __VERIFIER_nondet_int(); + if (tmp_ndt_1 == 3) { + goto switch_1_3; + } else { + goto switch_1_default; +#line 360 + if (0) { + switch_1_3: + { +#line 363 + status = KbFilter_PnP(devobj, pirp); + } + goto switch_1_break; + switch_1_default: ; +#line 367 + return (-1); + } else { + switch_1_break: ; + } + } + } +#line 376 + if (pended == 1) { +#line 377 + if (s == NP) { +#line 378 + s = NP; + } else { + goto _L___2; + } + } else { + _L___2: +#line 384 + if (pended == 1) { +#line 385 + if (s == MPR3) { +#line 386 + s = MPR3; + } else { + goto _L___1; + } + } else { + _L___1: +#line 392 + if (s != UNLOADED) { +#line 395 + if (status != -1) { +#line 398 + if (s != SKIP2) { +#line 399 + if (s != IPC) { +#line 400 + if (s == DC) { + goto _L___0; + } + } else { + goto _L___0; + } + } else { + _L___0: +#line 410 + if (pended == 1) { +#line 411 + if (status != 259) { + { +#line 413 + errorFn(); + } + } + } else { +#line 419 + if (s == DC) { +#line 420 + if (status == 259) { + + } + } else { +#line 426 + if (status != lowerDriverReturn) { + + } + } + } + } + } + } + } + } + + return (status); +} +} +#line 441 "kbfiltr_simpl1.cil.c" +void stubMoreProcessingRequired(void) +{ + + { +#line 445 + if (s == NP) { +#line 446 + s = MPR1; + } else { + { +#line 449 + errorFn(); + } + } +#line 452 + return; +} +} +#line 455 "kbfiltr_simpl1.cil.c" +int IofCallDriver(int DeviceObject , int Irp ) +{ + int returnVal2 ; + int compRetStatus ; + int lcontext = __VERIFIER_nondet_int() ; + long long __cil_tmp7 ; +; + { +#line 462 + if (compRegistered) { + compRetStatus = KbFilter_Complete(DeviceObject, Irp, lcontext); + stubMoreProcessingRequired(); + } +#line 476 + int tmp_ndt_2; + tmp_ndt_2 = __VERIFIER_nondet_int(); + if (tmp_ndt_2 == 0) { + goto switch_2_0; + } else { +#line 479 + int tmp_ndt_3; + tmp_ndt_3 = __VERIFIER_nondet_int(); + if (tmp_ndt_3 == 1) { + goto switch_2_1; + } else { + goto switch_2_default; +#line 484 + if (0) { + switch_2_0: +#line 486 + returnVal2 = 0; + goto switch_2_break; + switch_2_1: +#line 489 + returnVal2 = -1073741823; + goto switch_2_break; + switch_2_default: +#line 492 + returnVal2 = 259; + goto switch_2_break; + } else { + switch_2_break: ; + } + } + } +#line 500 + if (s == NP) { +#line 501 + s = IPC; +#line 502 + lowerDriverReturn = returnVal2; + } else { +#line 504 + if (s == MPR1) { +#line 505 + if (returnVal2 == 259) { +#line 506 + s = MPR3; +#line 507 + lowerDriverReturn = returnVal2; + } else { +#line 509 + s = NP; +#line 510 + lowerDriverReturn = returnVal2; + } + } else { +#line 513 + if (s == SKIP1) { +#line 514 + s = SKIP2; +#line 515 + lowerDriverReturn = returnVal2; + } else { + { +#line 518 + errorFn(); + } + } + } + } +#line 523 + return (returnVal2); +} +} +#line 526 "kbfiltr_simpl1.cil.c" +void IofCompleteRequest(int Irp , int PriorityBoost ) +{ + + { +#line 530 + if (s == NP) { +#line 531 + s = DC; + } else { + { +#line 534 + errorFn(); + } + } +#line 537 + return; +} +} +#line 540 "kbfiltr_simpl1.cil.c" +int KeSetEvent(int Event , int Increment , int Wait ) +{ int l = __VERIFIER_nondet_int() ; + + { +#line 544 + setEventCalled = 1; +#line 545 + return (l); +} +} +#line 548 "kbfiltr_simpl1.cil.c" +int KeWaitForSingleObject(int Object , int WaitReason , int WaitMode , int Alertable , + int Timeout ) +{ +; + { +#line 553 + if (s == MPR3) { +#line 554 + if (setEventCalled == 1) { +#line 555 + s = NP; +#line 556 + setEventCalled = 0; + } else { + goto _L; + } + } else { + _L: +#line 562 + if (customIrp == 1) { +#line 563 + s = NP; +#line 564 + customIrp = 0; + } else { +#line 566 + if (s == MPR3) { + { +#line 568 + errorFn(); + } + } + } + } +#line 575 + int tmp_ndt_4; + tmp_ndt_4 = __VERIFIER_nondet_int(); + if (tmp_ndt_4 == 0) { + goto switch_3_0; + } else { + goto switch_3_default; +#line 580 + if (0) { + switch_3_0: +#line 582 + return (0); + switch_3_default: ; +#line 584 + return (-1073741823); + } else { + + } + } +} +} +#line 592 "kbfiltr_simpl1.cil.c" +int KbFilter_Complete(int DeviceObject , int Irp , int Context ) +{ int event ; + + { + { +#line 597 + event = Context; +#line 598 + KeSetEvent(event, 0, 0); + } +#line 600 + return (-1073741802); +} +} + +void errorFn(void) +{ + + { + ERROR: __VERIFIER_error(); +#line 23 + return; +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/list-ext_1_true-valid-memsafety.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/list-ext_1_true-valid-memsafety.c new file mode 100644 index 000000000..1277173ab --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/list-ext_1_true-valid-memsafety.c @@ -0,0 +1,672 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +extern int __VERIFIER_nondet_int(); +typedef long unsigned int size_t; +typedef int wchar_t; + +union wait + { + int w_status; + struct + { + unsigned int __w_termsig:7; + unsigned int __w_coredump:1; + unsigned int __w_retcode:8; + unsigned int:16; + } __wait_terminated; + struct + { + unsigned int __w_stopval:8; + unsigned int __w_stopsig:8; + unsigned int:16; + } __wait_stopped; + }; +typedef union + { + union wait *__uptr; + int *__iptr; + } __WAIT_STATUS __attribute__ ((__transparent_union__)); + +typedef struct + { + int quot; + int rem; + } div_t; +typedef struct + { + long int quot; + long int rem; + } ldiv_t; + + +__extension__ typedef struct + { + long long int quot; + long long int rem; + } lldiv_t; + +extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__ , __leaf__)) ; + +extern double atof (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern int atoi (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern long int atol (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +__extension__ extern long long int atoll (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +extern double strtod (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern float strtof (__const char *__restrict __nptr, + char **__restrict __endptr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern long double strtold (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern long int strtol (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern unsigned long int strtoul (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtouq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoll (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtoull (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *l64a (long int __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern long int a64l (__const char *__s) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + +typedef unsigned char __u_char; +typedef unsigned short int __u_short; +typedef unsigned int __u_int; +typedef unsigned long int __u_long; +typedef signed char __int8_t; +typedef unsigned char __uint8_t; +typedef signed short int __int16_t; +typedef unsigned short int __uint16_t; +typedef signed int __int32_t; +typedef unsigned int __uint32_t; +typedef signed long int __int64_t; +typedef unsigned long int __uint64_t; +typedef long int __quad_t; +typedef unsigned long int __u_quad_t; +typedef unsigned long int __dev_t; +typedef unsigned int __uid_t; +typedef unsigned int __gid_t; +typedef unsigned long int __ino_t; +typedef unsigned long int __ino64_t; +typedef unsigned int __mode_t; +typedef unsigned long int __nlink_t; +typedef long int __off_t; +typedef long int __off64_t; +typedef int __pid_t; +typedef struct { int __val[2]; } __fsid_t; +typedef long int __clock_t; +typedef unsigned long int __rlim_t; +typedef unsigned long int __rlim64_t; +typedef unsigned int __id_t; +typedef long int __time_t; +typedef unsigned int __useconds_t; +typedef long int __suseconds_t; +typedef int __daddr_t; +typedef long int __swblk_t; +typedef int __key_t; +typedef int __clockid_t; +typedef void * __timer_t; +typedef long int __blksize_t; +typedef long int __blkcnt_t; +typedef long int __blkcnt64_t; +typedef unsigned long int __fsblkcnt_t; +typedef unsigned long int __fsblkcnt64_t; +typedef unsigned long int __fsfilcnt_t; +typedef unsigned long int __fsfilcnt64_t; +typedef long int __ssize_t; +typedef __off64_t __loff_t; +typedef __quad_t *__qaddr_t; +typedef char *__caddr_t; +typedef long int __intptr_t; +typedef unsigned int __socklen_t; +typedef __u_char u_char; +typedef __u_short u_short; +typedef __u_int u_int; +typedef __u_long u_long; +typedef __quad_t quad_t; +typedef __u_quad_t u_quad_t; +typedef __fsid_t fsid_t; +typedef __loff_t loff_t; +typedef __ino_t ino_t; +typedef __dev_t dev_t; +typedef __gid_t gid_t; +typedef __mode_t mode_t; +typedef __nlink_t nlink_t; +typedef __uid_t uid_t; +typedef __off_t off_t; +typedef __pid_t pid_t; +typedef __id_t id_t; +typedef __ssize_t ssize_t; +typedef __daddr_t daddr_t; +typedef __caddr_t caddr_t; +typedef __key_t key_t; + +typedef __clock_t clock_t; + + + +typedef __time_t time_t; + + +typedef __clockid_t clockid_t; +typedef __timer_t timer_t; +typedef unsigned long int ulong; +typedef unsigned short int ushort; +typedef unsigned int uint; +typedef int int8_t __attribute__ ((__mode__ (__QI__))); +typedef int int16_t __attribute__ ((__mode__ (__HI__))); +typedef int int32_t __attribute__ ((__mode__ (__SI__))); +typedef int int64_t __attribute__ ((__mode__ (__DI__))); +typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); +typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); +typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); +typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); +typedef int register_t __attribute__ ((__mode__ (__word__))); +typedef int __sig_atomic_t; +typedef struct + { + unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; + } __sigset_t; +typedef __sigset_t sigset_t; +struct timespec + { + __time_t tv_sec; + long int tv_nsec; + }; +struct timeval + { + __time_t tv_sec; + __suseconds_t tv_usec; + }; +typedef __suseconds_t suseconds_t; +typedef long int __fd_mask; +typedef struct + { + __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; + } fd_set; +typedef __fd_mask fd_mask; + +extern int select (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + struct timeval *__restrict __timeout); +extern int pselect (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + const struct timespec *__restrict __timeout, + const __sigset_t *__restrict __sigmask); + + +__extension__ +extern unsigned int gnu_dev_major (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned int gnu_dev_minor (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned long long int gnu_dev_makedev (unsigned int __major, + unsigned int __minor) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); + +typedef __blksize_t blksize_t; +typedef __blkcnt_t blkcnt_t; +typedef __fsblkcnt_t fsblkcnt_t; + +typedef __fsfilcnt_t fsfilcnt_t; +typedef unsigned long int pthread_t; +typedef union +{ + char __size[56]; + long int __align; +} pthread_attr_t; +typedef struct __pthread_internal_list +{ + struct __pthread_internal_list *__prev; + struct __pthread_internal_list *__next; +} __pthread_list_t; +typedef union +{ + struct __pthread_mutex_s + { + int __lock; + unsigned int __count; + int __owner; + unsigned int __nusers; + int __kind; + int __spins; + __pthread_list_t __list; + } __data; + char __size[40]; + long int __align; +} pthread_mutex_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_mutexattr_t; +typedef union +{ + struct + { + int __lock; + unsigned int __futex; + __extension__ unsigned long long int __total_seq; + __extension__ unsigned long long int __wakeup_seq; + __extension__ unsigned long long int __woken_seq; + void *__mutex; + unsigned int __nwaiters; + unsigned int __broadcast_seq; + } __data; + char __size[48]; + __extension__ long long int __align; +} pthread_cond_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_condattr_t; +typedef unsigned int pthread_key_t; +typedef int pthread_once_t; +typedef union +{ + struct + { + int __lock; + unsigned int __nr_readers; + unsigned int __readers_wakeup; + unsigned int __writer_wakeup; + unsigned int __nr_readers_queued; + unsigned int __nr_writers_queued; + int __writer; + int __shared; + unsigned long int __pad1; + unsigned long int __pad2; + unsigned int __flags; + } __data; + char __size[56]; + long int __align; +} pthread_rwlock_t; +typedef union +{ + char __size[8]; + long int __align; +} pthread_rwlockattr_t; +typedef volatile int pthread_spinlock_t; +typedef union +{ + char __size[32]; + long int __align; +} pthread_barrier_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_barrierattr_t; + +extern long int random (void) __attribute__ ((__nothrow__ , __leaf__)); +extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); +extern char *initstate (unsigned int __seed, char *__statebuf, + size_t __statelen) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + + +extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + + + +struct random_data + { + int32_t *fptr; + int32_t *rptr; + int32_t *state; + int rand_type; + int rand_deg; + int rand_sep; + int32_t *end_ptr; + }; + +extern int random_r (struct random_data *__restrict __buf, + int32_t *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int srandom_r (unsigned int __seed, struct random_data *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, + size_t __statelen, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4))); + +extern int setstate_r (char *__restrict __statebuf, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + +extern int rand (void) __attribute__ ((__nothrow__ , __leaf__)); + +extern void srand (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern double drand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int lrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int nrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int mrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int jrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern void srand48 (long int __seedval) __attribute__ ((__nothrow__ , __leaf__)); +extern unsigned short int *seed48 (unsigned short int __seed16v[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + +struct drand48_data + { + unsigned short int __x[3]; + unsigned short int __old_x[3]; + unsigned short int __c; + unsigned short int __init; + unsigned long long int __a; + }; + + +extern int drand48_r (struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int erand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int lrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int nrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int mrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int jrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int srand48_r (long int __seedval, struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int seed48_r (unsigned short int __seed16v[3], + struct drand48_data *__buffer) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int lcong48_r (unsigned short int __param[7], + struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + + + + +extern void *malloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + +extern void *calloc (size_t __nmemb, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + + + + + + + +extern void *realloc (void *__ptr, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); + +extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern void cfree (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + +extern void *alloca (size_t __size) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern void *valloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + +extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + + + +extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + + +extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern void exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern void _Exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern char *getenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *__secure_getenv (__const char *__name) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int putenv (char *__string) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int setenv (__const char *__name, __const char *__value, int __replace) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); +extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int clearenv (void) __attribute__ ((__nothrow__ , __leaf__)); +extern char *mktemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ; +extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern int system (__const char *__command) ; + +extern char *realpath (__const char *__restrict __name, + char *__restrict __resolved) __attribute__ ((__nothrow__ , __leaf__)) ; +typedef int (*__compar_fn_t) (__const void *, __const void *); + +extern void *bsearch (__const void *__key, __const void *__base, + size_t __nmemb, size_t __size, __compar_fn_t __compar) + __attribute__ ((__nonnull__ (1, 2, 5))) ; +extern void qsort (void *__base, size_t __nmemb, size_t __size, + __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); +extern int abs (int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern long int labs (long int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +__extension__ extern long long int llabs (long long int __x) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern div_t div (int __numer, int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern ldiv_t ldiv (long int __numer, long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + + +__extension__ extern lldiv_t lldiv (long long int __numer, + long long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *gcvt (double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern char *qecvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qfcvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qgcvt (long double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qecvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qfcvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); + +extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int mbtowc (wchar_t *__restrict __pwc, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__ , __leaf__)) ; +extern size_t mbstowcs (wchar_t *__restrict __pwcs, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)); +extern size_t wcstombs (char *__restrict __s, + __const wchar_t *__restrict __pwcs, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)); + +extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int getsubopt (char **__restrict __optionp, + char *__const *__restrict __tokens, + char **__restrict __valuep) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2, 3))) ; +extern int getloadavg (double __loadavg[], int __nelem) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +void exit(int s) { + _EXIT: goto _EXIT; +} +typedef struct node { + int h; + struct node *n; +} *List; +int main() { + int i = 0; + int y = 0; + List a = (List) malloc(sizeof(struct node)); + if (a == 0) exit(1); + List t; + List p = a; + while (i < 10 && __VERIFIER_nondet_int()) { + i++; + p->h = 1; + t = (List) malloc(sizeof(struct node)); + if (t == 0) exit(1); + p->n = t; + p = p->n; + } + while (y < 10 && __VERIFIER_nondet_int()) { + y++; + p->h = 2; + t = (List) malloc(sizeof(struct node)); + if (t == 0) exit(1); + p->n = t; + p = p->n; + } + p->h = 3; + p->n = 0; + i = 0; + y = 0; + p = a; + while (p->h == 1) { + i++; + p = p->n; + } + while (p->h == 2) { + y++; + p = p->n; + } + if(p->h != 3 || (i + y) > 20) + ERROR: __VERIFIER_error(); + p = a; + while (p->n != 0) { + t = p->n; + free(p); + p = t; + } + free(p); + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/list_true-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/list_true-unreach-call.c new file mode 100644 index 000000000..cacd71222 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/list_true-unreach-call.c @@ -0,0 +1,654 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +extern int __VERIFIER_nondet_int(); +typedef long unsigned int size_t; +typedef int wchar_t; + +union wait + { + int w_status; + struct + { + unsigned int __w_termsig:7; + unsigned int __w_coredump:1; + unsigned int __w_retcode:8; + unsigned int:16; + } __wait_terminated; + struct + { + unsigned int __w_stopval:8; + unsigned int __w_stopsig:8; + unsigned int:16; + } __wait_stopped; + }; +typedef union + { + union wait *__uptr; + int *__iptr; + } __WAIT_STATUS __attribute__ ((__transparent_union__)); + +typedef struct + { + int quot; + int rem; + } div_t; +typedef struct + { + long int quot; + long int rem; + } ldiv_t; + + +__extension__ typedef struct + { + long long int quot; + long long int rem; + } lldiv_t; + +extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__ , __leaf__)) ; + +extern double atof (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern int atoi (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern long int atol (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +__extension__ extern long long int atoll (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +extern double strtod (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern float strtof (__const char *__restrict __nptr, + char **__restrict __endptr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern long double strtold (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern long int strtol (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern unsigned long int strtoul (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtouq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoll (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtoull (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *l64a (long int __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern long int a64l (__const char *__s) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + +typedef unsigned char __u_char; +typedef unsigned short int __u_short; +typedef unsigned int __u_int; +typedef unsigned long int __u_long; +typedef signed char __int8_t; +typedef unsigned char __uint8_t; +typedef signed short int __int16_t; +typedef unsigned short int __uint16_t; +typedef signed int __int32_t; +typedef unsigned int __uint32_t; +typedef signed long int __int64_t; +typedef unsigned long int __uint64_t; +typedef long int __quad_t; +typedef unsigned long int __u_quad_t; +typedef unsigned long int __dev_t; +typedef unsigned int __uid_t; +typedef unsigned int __gid_t; +typedef unsigned long int __ino_t; +typedef unsigned long int __ino64_t; +typedef unsigned int __mode_t; +typedef unsigned long int __nlink_t; +typedef long int __off_t; +typedef long int __off64_t; +typedef int __pid_t; +typedef struct { int __val[2]; } __fsid_t; +typedef long int __clock_t; +typedef unsigned long int __rlim_t; +typedef unsigned long int __rlim64_t; +typedef unsigned int __id_t; +typedef long int __time_t; +typedef unsigned int __useconds_t; +typedef long int __suseconds_t; +typedef int __daddr_t; +typedef long int __swblk_t; +typedef int __key_t; +typedef int __clockid_t; +typedef void * __timer_t; +typedef long int __blksize_t; +typedef long int __blkcnt_t; +typedef long int __blkcnt64_t; +typedef unsigned long int __fsblkcnt_t; +typedef unsigned long int __fsblkcnt64_t; +typedef unsigned long int __fsfilcnt_t; +typedef unsigned long int __fsfilcnt64_t; +typedef long int __ssize_t; +typedef __off64_t __loff_t; +typedef __quad_t *__qaddr_t; +typedef char *__caddr_t; +typedef long int __intptr_t; +typedef unsigned int __socklen_t; +typedef __u_char u_char; +typedef __u_short u_short; +typedef __u_int u_int; +typedef __u_long u_long; +typedef __quad_t quad_t; +typedef __u_quad_t u_quad_t; +typedef __fsid_t fsid_t; +typedef __loff_t loff_t; +typedef __ino_t ino_t; +typedef __dev_t dev_t; +typedef __gid_t gid_t; +typedef __mode_t mode_t; +typedef __nlink_t nlink_t; +typedef __uid_t uid_t; +typedef __off_t off_t; +typedef __pid_t pid_t; +typedef __id_t id_t; +typedef __ssize_t ssize_t; +typedef __daddr_t daddr_t; +typedef __caddr_t caddr_t; +typedef __key_t key_t; + +typedef __clock_t clock_t; + + + +typedef __time_t time_t; + + +typedef __clockid_t clockid_t; +typedef __timer_t timer_t; +typedef unsigned long int ulong; +typedef unsigned short int ushort; +typedef unsigned int uint; +typedef int int8_t __attribute__ ((__mode__ (__QI__))); +typedef int int16_t __attribute__ ((__mode__ (__HI__))); +typedef int int32_t __attribute__ ((__mode__ (__SI__))); +typedef int int64_t __attribute__ ((__mode__ (__DI__))); +typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); +typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); +typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); +typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); +typedef int register_t __attribute__ ((__mode__ (__word__))); +typedef int __sig_atomic_t; +typedef struct + { + unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; + } __sigset_t; +typedef __sigset_t sigset_t; +struct timespec + { + __time_t tv_sec; + long int tv_nsec; + }; +struct timeval + { + __time_t tv_sec; + __suseconds_t tv_usec; + }; +typedef __suseconds_t suseconds_t; +typedef long int __fd_mask; +typedef struct + { + __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; + } fd_set; +typedef __fd_mask fd_mask; + +extern int select (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + struct timeval *__restrict __timeout); +extern int pselect (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + const struct timespec *__restrict __timeout, + const __sigset_t *__restrict __sigmask); + + +__extension__ +extern unsigned int gnu_dev_major (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned int gnu_dev_minor (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned long long int gnu_dev_makedev (unsigned int __major, + unsigned int __minor) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); + +typedef __blksize_t blksize_t; +typedef __blkcnt_t blkcnt_t; +typedef __fsblkcnt_t fsblkcnt_t; + +typedef __fsfilcnt_t fsfilcnt_t; +typedef unsigned long int pthread_t; +typedef union +{ + char __size[56]; + long int __align; +} pthread_attr_t; +typedef struct __pthread_internal_list +{ + struct __pthread_internal_list *__prev; + struct __pthread_internal_list *__next; +} __pthread_list_t; +typedef union +{ + struct __pthread_mutex_s + { + int __lock; + unsigned int __count; + int __owner; + unsigned int __nusers; + int __kind; + int __spins; + __pthread_list_t __list; + } __data; + char __size[40]; + long int __align; +} pthread_mutex_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_mutexattr_t; +typedef union +{ + struct + { + int __lock; + unsigned int __futex; + __extension__ unsigned long long int __total_seq; + __extension__ unsigned long long int __wakeup_seq; + __extension__ unsigned long long int __woken_seq; + void *__mutex; + unsigned int __nwaiters; + unsigned int __broadcast_seq; + } __data; + char __size[48]; + __extension__ long long int __align; +} pthread_cond_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_condattr_t; +typedef unsigned int pthread_key_t; +typedef int pthread_once_t; +typedef union +{ + struct + { + int __lock; + unsigned int __nr_readers; + unsigned int __readers_wakeup; + unsigned int __writer_wakeup; + unsigned int __nr_readers_queued; + unsigned int __nr_writers_queued; + int __writer; + int __shared; + unsigned long int __pad1; + unsigned long int __pad2; + unsigned int __flags; + } __data; + char __size[56]; + long int __align; +} pthread_rwlock_t; +typedef union +{ + char __size[8]; + long int __align; +} pthread_rwlockattr_t; +typedef volatile int pthread_spinlock_t; +typedef union +{ + char __size[32]; + long int __align; +} pthread_barrier_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_barrierattr_t; + +extern long int random (void) __attribute__ ((__nothrow__ , __leaf__)); +extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); +extern char *initstate (unsigned int __seed, char *__statebuf, + size_t __statelen) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + + +extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + + + +struct random_data + { + int32_t *fptr; + int32_t *rptr; + int32_t *state; + int rand_type; + int rand_deg; + int rand_sep; + int32_t *end_ptr; + }; + +extern int random_r (struct random_data *__restrict __buf, + int32_t *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int srandom_r (unsigned int __seed, struct random_data *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, + size_t __statelen, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4))); + +extern int setstate_r (char *__restrict __statebuf, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + +extern int rand (void) __attribute__ ((__nothrow__ , __leaf__)); + +extern void srand (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern double drand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int lrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int nrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int mrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int jrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern void srand48 (long int __seedval) __attribute__ ((__nothrow__ , __leaf__)); +extern unsigned short int *seed48 (unsigned short int __seed16v[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + +struct drand48_data + { + unsigned short int __x[3]; + unsigned short int __old_x[3]; + unsigned short int __c; + unsigned short int __init; + unsigned long long int __a; + }; + + +extern int drand48_r (struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int erand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int lrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int nrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int mrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int jrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int srand48_r (long int __seedval, struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int seed48_r (unsigned short int __seed16v[3], + struct drand48_data *__buffer) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int lcong48_r (unsigned short int __param[7], + struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + + + + +extern void *malloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + +extern void *calloc (size_t __nmemb, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + + + + + + + +extern void *realloc (void *__ptr, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); + +extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern void cfree (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + +extern void *alloca (size_t __size) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern void *valloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + +extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + + + +extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + + +extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern void exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern void _Exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern char *getenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *__secure_getenv (__const char *__name) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int putenv (char *__string) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int setenv (__const char *__name, __const char *__value, int __replace) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); +extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int clearenv (void) __attribute__ ((__nothrow__ , __leaf__)); +extern char *mktemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ; +extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern int system (__const char *__command) ; + +extern char *realpath (__const char *__restrict __name, + char *__restrict __resolved) __attribute__ ((__nothrow__ , __leaf__)) ; +typedef int (*__compar_fn_t) (__const void *, __const void *); + +extern void *bsearch (__const void *__key, __const void *__base, + size_t __nmemb, size_t __size, __compar_fn_t __compar) + __attribute__ ((__nonnull__ (1, 2, 5))) ; +extern void qsort (void *__base, size_t __nmemb, size_t __size, + __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); +extern int abs (int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern long int labs (long int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +__extension__ extern long long int llabs (long long int __x) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern div_t div (int __numer, int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern ldiv_t ldiv (long int __numer, long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + + +__extension__ extern lldiv_t lldiv (long long int __numer, + long long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *gcvt (double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern char *qecvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qfcvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qgcvt (long double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qecvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qfcvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); + +extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int mbtowc (wchar_t *__restrict __pwc, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__ , __leaf__)) ; +extern size_t mbstowcs (wchar_t *__restrict __pwcs, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)); +extern size_t wcstombs (char *__restrict __s, + __const wchar_t *__restrict __pwcs, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)); + +extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int getsubopt (char **__restrict __optionp, + char *__const *__restrict __tokens, + char **__restrict __valuep) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2, 3))) ; +extern int getloadavg (double __loadavg[], int __nelem) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +void exit(int s) { + _EXIT: goto _EXIT; +} +typedef struct node { + int h; + struct node *n; +} *List; +int main() { + List a = (List) malloc(sizeof(struct node)); + if (a == 0) exit(1); + List t; + List p = a; + while (__VERIFIER_nondet_int()) { + p->h = 1; + t = (List) malloc(sizeof(struct node)); + if (t == 0) exit(1); + p->n = t; + p = p->n; + } + while (__VERIFIER_nondet_int()) { + p->h = 2; + t = (List) malloc(sizeof(struct node)); + if (t == 0) exit(1); + p->n = t; + p = p->n; + } + p->h = 3; + p = a; + while (p->h == 1) + p = p->n; + while (p->h == 2) + p = p->n; + if(p->h != 3) + ERROR: __VERIFIER_error(); + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/lockfree-3.0_true-valid-memsafety.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/lockfree-3.0_true-valid-memsafety.c new file mode 100644 index 000000000..4cc21a2db --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/lockfree-3.0_true-valid-memsafety.c @@ -0,0 +1,702 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +typedef long unsigned int size_t; +typedef int wchar_t; + +union wait + { + int w_status; + struct + { + unsigned int __w_termsig:7; + unsigned int __w_coredump:1; + unsigned int __w_retcode:8; + unsigned int:16; + } __wait_terminated; + struct + { + unsigned int __w_stopval:8; + unsigned int __w_stopsig:8; + unsigned int:16; + } __wait_stopped; + }; +typedef union + { + union wait *__uptr; + int *__iptr; + } __WAIT_STATUS __attribute__ ((__transparent_union__)); + +typedef struct + { + int quot; + int rem; + } div_t; +typedef struct + { + long int quot; + long int rem; + } ldiv_t; + + +__extension__ typedef struct + { + long long int quot; + long long int rem; + } lldiv_t; + +extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__ , __leaf__)) ; + +extern double atof (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern int atoi (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern long int atol (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +__extension__ extern long long int atoll (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +extern double strtod (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern float strtof (__const char *__restrict __nptr, + char **__restrict __endptr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern long double strtold (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern long int strtol (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern unsigned long int strtoul (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtouq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoll (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtoull (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *l64a (long int __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern long int a64l (__const char *__s) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + +typedef unsigned char __u_char; +typedef unsigned short int __u_short; +typedef unsigned int __u_int; +typedef unsigned long int __u_long; +typedef signed char __int8_t; +typedef unsigned char __uint8_t; +typedef signed short int __int16_t; +typedef unsigned short int __uint16_t; +typedef signed int __int32_t; +typedef unsigned int __uint32_t; +typedef signed long int __int64_t; +typedef unsigned long int __uint64_t; +typedef long int __quad_t; +typedef unsigned long int __u_quad_t; +typedef unsigned long int __dev_t; +typedef unsigned int __uid_t; +typedef unsigned int __gid_t; +typedef unsigned long int __ino_t; +typedef unsigned long int __ino64_t; +typedef unsigned int __mode_t; +typedef unsigned long int __nlink_t; +typedef long int __off_t; +typedef long int __off64_t; +typedef int __pid_t; +typedef struct { int __val[2]; } __fsid_t; +typedef long int __clock_t; +typedef unsigned long int __rlim_t; +typedef unsigned long int __rlim64_t; +typedef unsigned int __id_t; +typedef long int __time_t; +typedef unsigned int __useconds_t; +typedef long int __suseconds_t; +typedef int __daddr_t; +typedef long int __swblk_t; +typedef int __key_t; +typedef int __clockid_t; +typedef void * __timer_t; +typedef long int __blksize_t; +typedef long int __blkcnt_t; +typedef long int __blkcnt64_t; +typedef unsigned long int __fsblkcnt_t; +typedef unsigned long int __fsblkcnt64_t; +typedef unsigned long int __fsfilcnt_t; +typedef unsigned long int __fsfilcnt64_t; +typedef long int __ssize_t; +typedef __off64_t __loff_t; +typedef __quad_t *__qaddr_t; +typedef char *__caddr_t; +typedef long int __intptr_t; +typedef unsigned int __socklen_t; +typedef __u_char u_char; +typedef __u_short u_short; +typedef __u_int u_int; +typedef __u_long u_long; +typedef __quad_t quad_t; +typedef __u_quad_t u_quad_t; +typedef __fsid_t fsid_t; +typedef __loff_t loff_t; +typedef __ino_t ino_t; +typedef __dev_t dev_t; +typedef __gid_t gid_t; +typedef __mode_t mode_t; +typedef __nlink_t nlink_t; +typedef __uid_t uid_t; +typedef __off_t off_t; +typedef __pid_t pid_t; +typedef __id_t id_t; +typedef __ssize_t ssize_t; +typedef __daddr_t daddr_t; +typedef __caddr_t caddr_t; +typedef __key_t key_t; + +typedef __clock_t clock_t; + + + +typedef __time_t time_t; + + +typedef __clockid_t clockid_t; +typedef __timer_t timer_t; +typedef unsigned long int ulong; +typedef unsigned short int ushort; +typedef unsigned int uint; +typedef int int8_t __attribute__ ((__mode__ (__QI__))); +typedef int int16_t __attribute__ ((__mode__ (__HI__))); +typedef int int32_t __attribute__ ((__mode__ (__SI__))); +typedef int int64_t __attribute__ ((__mode__ (__DI__))); +typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); +typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); +typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); +typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); +typedef int register_t __attribute__ ((__mode__ (__word__))); +typedef int __sig_atomic_t; +typedef struct + { + unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; + } __sigset_t; +typedef __sigset_t sigset_t; +struct timespec + { + __time_t tv_sec; + long int tv_nsec; + }; +struct timeval + { + __time_t tv_sec; + __suseconds_t tv_usec; + }; +typedef __suseconds_t suseconds_t; +typedef long int __fd_mask; +typedef struct + { + __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; + } fd_set; +typedef __fd_mask fd_mask; + +extern int select (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + struct timeval *__restrict __timeout); +extern int pselect (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + const struct timespec *__restrict __timeout, + const __sigset_t *__restrict __sigmask); + + +__extension__ +extern unsigned int gnu_dev_major (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned int gnu_dev_minor (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned long long int gnu_dev_makedev (unsigned int __major, + unsigned int __minor) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); + +typedef __blksize_t blksize_t; +typedef __blkcnt_t blkcnt_t; +typedef __fsblkcnt_t fsblkcnt_t; + + +typedef __fsfilcnt_t fsfilcnt_t; +typedef unsigned long int pthread_t; +typedef union +{ + char __size[56]; + long int __align; +} pthread_attr_t; +typedef struct __pthread_internal_list +{ + struct __pthread_internal_list *__prev; + struct __pthread_internal_list *__next; +} __pthread_list_t; +typedef union +{ + struct __pthread_mutex_s + { + int __lock; + unsigned int __count; + int __owner; + unsigned int __nusers; + int __kind; + int __spins; + __pthread_list_t __list; + } __data; + char __size[40]; + long int __align; +} pthread_mutex_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_mutexattr_t; +typedef union +{ + struct + { + int __lock; + unsigned int __futex; + __extension__ unsigned long long int __total_seq; + __extension__ unsigned long long int __wakeup_seq; + __extension__ unsigned long long int __woken_seq; + void *__mutex; + unsigned int __nwaiters; + unsigned int __broadcast_seq; + } __data; + char __size[48]; + __extension__ long long int __align; +} pthread_cond_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_condattr_t; +typedef unsigned int pthread_key_t; +typedef int pthread_once_t; +typedef union +{ + struct + { + int __lock; + unsigned int __nr_readers; + unsigned int __readers_wakeup; + unsigned int __writer_wakeup; + unsigned int __nr_readers_queued; + unsigned int __nr_writers_queued; + int __writer; + int __shared; + unsigned long int __pad1; + unsigned long int __pad2; + unsigned int __flags; + } __data; + char __size[56]; + long int __align; +} pthread_rwlock_t; +typedef union +{ + char __size[8]; + long int __align; +} pthread_rwlockattr_t; +typedef volatile int pthread_spinlock_t; +typedef union +{ + char __size[32]; + long int __align; +} pthread_barrier_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_barrierattr_t; + +extern long int random (void) __attribute__ ((__nothrow__ , __leaf__)); +extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); +extern char *initstate (unsigned int __seed, char *__statebuf, + size_t __statelen) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + + +extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + + + +struct random_data + { + int32_t *fptr; + int32_t *rptr; + int32_t *state; + int rand_type; + int rand_deg; + int rand_sep; + int32_t *end_ptr; + }; + +extern int random_r (struct random_data *__restrict __buf, + int32_t *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int srandom_r (unsigned int __seed, struct random_data *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, + size_t __statelen, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4))); + +extern int setstate_r (char *__restrict __statebuf, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + +extern int rand (void) __attribute__ ((__nothrow__ , __leaf__)); + +extern void srand (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern double drand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int lrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int nrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int mrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int jrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern void srand48 (long int __seedval) __attribute__ ((__nothrow__ , __leaf__)); +extern unsigned short int *seed48 (unsigned short int __seed16v[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + +struct drand48_data + { + unsigned short int __x[3]; + unsigned short int __old_x[3]; + unsigned short int __c; + unsigned short int __init; + unsigned long long int __a; + }; + + +extern int drand48_r (struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int erand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int lrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int nrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int mrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int jrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int srand48_r (long int __seedval, struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int seed48_r (unsigned short int __seed16v[3], + struct drand48_data *__buffer) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int lcong48_r (unsigned short int __param[7], + struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + + + + +extern void *malloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + +extern void *calloc (size_t __nmemb, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + + + + + + + +extern void *realloc (void *__ptr, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); + +extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern void cfree (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + +extern void *alloca (size_t __size) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern void *valloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + +extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + + + +extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + + +extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern void exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern void _Exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern char *getenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *__secure_getenv (__const char *__name) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int putenv (char *__string) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int setenv (__const char *__name, __const char *__value, int __replace) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); +extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int clearenv (void) __attribute__ ((__nothrow__ , __leaf__)); +extern char *mktemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ; +extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern int system (__const char *__command) ; + +extern char *realpath (__const char *__restrict __name, + char *__restrict __resolved) __attribute__ ((__nothrow__ , __leaf__)) ; +typedef int (*__compar_fn_t) (__const void *, __const void *); + +extern void *bsearch (__const void *__key, __const void *__base, + size_t __nmemb, size_t __size, __compar_fn_t __compar) + __attribute__ ((__nonnull__ (1, 2, 5))) ; +extern void qsort (void *__base, size_t __nmemb, size_t __size, + __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); +extern int abs (int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern long int labs (long int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +__extension__ extern long long int llabs (long long int __x) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern div_t div (int __numer, int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern ldiv_t ldiv (long int __numer, long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + + +__extension__ extern lldiv_t lldiv (long long int __numer, + long long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *gcvt (double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern char *qecvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qfcvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qgcvt (long double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qecvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qfcvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); + +extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int mbtowc (wchar_t *__restrict __pwc, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__ , __leaf__)) ; +extern size_t mbstowcs (wchar_t *__restrict __pwcs, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)); +extern size_t wcstombs (char *__restrict __s, + __const wchar_t *__restrict __pwcs, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)); + +extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int getsubopt (char **__restrict __optionp, + char *__const *__restrict __tokens, + char **__restrict __valuep) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2, 3))) ; +extern int getloadavg (double __loadavg[], int __nelem) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern int __VERIFIER_nondet_int(void); +struct cell { + int data; + struct cell* next; +}; +struct cell *S; +int pc1 = 1; +int pc4 = 1; +void push() +{ + static struct cell *t1 = ((void *)0); + static struct cell *x1 = ((void *)0); + switch (pc1++) { + case 1: + x1 = malloc(sizeof(*x1)); + x1->data = 0; + x1->next = ((void *)0); + return; + case 2: + x1->data = 4; + return; + case 3: + t1 = S; + return; + case 4: + x1->next = t1; + return; + case 5: + if (S == t1) + S = x1; + else + pc1 = 3; + return; + case 6: + pc1 = 1; + return; + } +} +struct cell* garbage; +void pop() +{ + static struct cell *t4 = ((void *)0); + static struct cell *x4 = ((void *)0); + static int res4; + switch (pc4++) { + case 1: + t4 = S; + return; + case 2: + if(t4 == ((void *)0)) + pc4 = 1; + return; + case 3: + x4 = t4->next; + return; + case 4: + if (S == t4) + S = x4; + else + pc4 = 1; + return; + case 5: + res4 = t4->data; + t4->next = garbage; + garbage = t4; + pc4 = 1; + return; + } +} +int main() +{ + while (S || 1 != pc1 || 1 != pc4 || __VERIFIER_nondet_int()) { + if (__VERIFIER_nondet_int()) + push(); + else + pop(); + } + while (garbage) { + struct cell *next = garbage->next; + free(garbage); + garbage = next; + } + return !!garbage; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/mem_slave_tlm.1_true-unreach-call_false-termination.cil.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/mem_slave_tlm.1_true-unreach-call_false-termination.cil.c new file mode 100644 index 000000000..0a58c488c --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/mem_slave_tlm.1_true-unreach-call_false-termination.cil.c @@ -0,0 +1,1366 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +extern int __VERIFIER_nondet_int(); + + +void error(void) +{ + + { + ERROR: __VERIFIER_error(); + return; +} +} + +int m_run_st ; +int m_run_i ; +int m_run_pc ; +int s_memory0 ; + +int s_run_st ; +int s_run_i ; +int s_run_pc ; +int c_m_lock ; +int c_m_ev ; +int c_req_type ; +int c_req_a ; +int c_req_d ; +int c_rsp_type ; +int c_rsp_status ; +int c_rsp_d ; +int c_empty_req ; +int c_empty_rsp ; +int c_read_req_ev ; +int c_write_req_ev ; +int c_read_rsp_ev ; +int c_write_rsp_ev ; +static int d_t ; +static int a_t ; +static int req_t_type ; +static int req_t_a ; +static int req_t_d ; +static int rsp_t_type ; +static int rsp_t_status ; +static int rsp_t_d ; +static int req_tt_type ; +static int req_tt_a ; +static int req_tt_d ; +static int rsp_tt_type ; +static int rsp_tt_status ; +static int rsp_tt_d ; + +int s_memory_read(int i) +{ + int x; + + if (i==0) + x = s_memory0; + else + error(); + + return (x); +} + +void s_memory_write(int i, int v) +{ + if (i==0) + s_memory0 = v; + else + error(); + + return; +} + + +void m_run(void) +{ int d ; + int a ; + int req_type ; + int req_a ; + int req_d ; + int rsp_type ; + int rsp_status ; + int rsp_d ; + int req_type___0 ; + int req_a___0 ; + int req_d___0 ; + int rsp_type___0 ; + int rsp_status___0 ; + int rsp_d___0 ; + + { + if ((int )m_run_pc == 0) { + goto L_MASTER_RUN_ENTRY; + } else { + if ((int )m_run_pc == 1) { + goto L_MASTER_RUN_MUTEX; + } else { + if ((int )m_run_pc == 2) { + goto L_MASTER_RUN_PUT; + } else { + if ((int )m_run_pc == 3) { + goto L_MASTER_RUN_GET; + } else { + if ((int )m_run_pc == 4) { + goto L_MASTER_RUN_MUTEX2; + } else { + if ((int )m_run_pc == 5) { + goto L_MASTER_RUN_PUT2; + } else { + if ((int )m_run_pc == 6) { + goto L_MASTER_RUN_GET2; + } else { + + } + } + } + } + } + } + } + L_MASTER_RUN_ENTRY: + a = 0; + { + while (1) { + while_0_continue: /* CIL Label */ ; + if (a < 1) { + + } else { + goto while_0_break; + } + req_type = 1; + req_a = a; + req_d = a + 50; + { + while (1) { + while_1_continue: /* CIL Label */ ; + if (c_m_lock == 1) { + + } else { + goto while_1_break; + } + m_run_st = 2; + m_run_pc = 1; + req_t_type = req_type; + req_t_a = req_a; + req_t_d = req_d; + rsp_t_type = rsp_type; + rsp_t_status = rsp_status; + rsp_t_d = rsp_d; + d_t = d; + a_t = a; + + goto return_label; + L_MASTER_RUN_MUTEX: + req_type = req_t_type; + req_a = req_t_a; + req_d = req_t_d; + rsp_type = rsp_t_type; + rsp_status = rsp_t_status; + rsp_d = rsp_t_d; + d = d_t; + a = a_t; + } + while_1_break: /* CIL Label */ ; + } + c_m_lock = 1; + { + while (1) { + while_2_continue: /* CIL Label */ ; + if ((int )c_empty_req == 0) { + + } else { + goto while_2_break; + } + m_run_st = 2; + m_run_pc = 2; + req_t_type = req_type; + req_t_a = req_a; + req_t_d = req_d; + rsp_t_type = rsp_type; + rsp_t_status = rsp_status; + rsp_t_d = rsp_d; + d_t = d; + a_t = a; + + goto return_label; + L_MASTER_RUN_PUT: + req_type = req_t_type; + req_a = req_t_a; + req_d = req_t_d; + rsp_type = rsp_t_type; + rsp_status = rsp_t_status; + rsp_d = rsp_t_d; + a = a_t; + d = d_t; + } + while_2_break: /* CIL Label */ ; + } + c_req_type = req_type; + c_req_a = req_a; + c_req_d = req_d; + c_empty_req = 0; + c_write_req_ev = 1; + if ((int )m_run_pc == 1) { + if ((int )c_m_ev == 1) { + m_run_st = 0; + } else { + goto _L___3; + } + } else { + _L___3: /* CIL Label */ + if ((int )m_run_pc == 2) { + if ((int )c_read_req_ev == 1) { + m_run_st = 0; + } else { + goto _L___2; + } + } else { + _L___2: /* CIL Label */ + if ((int )m_run_pc == 3) { + if ((int )c_write_rsp_ev == 1) { + m_run_st = 0; + } else { + goto _L___1; + } + } else { + _L___1: /* CIL Label */ + if ((int )m_run_pc == 4) { + if ((int )c_m_ev == 1) { + m_run_st = 0; + } else { + goto _L___0; + } + } else { + _L___0: /* CIL Label */ + if ((int )m_run_pc == 5) { + if ((int )c_read_req_ev == 1) { + m_run_st = 0; + } else { + goto _L; + } + } else { + _L: /* CIL Label */ + if ((int )m_run_pc == 6) { + if ((int )c_write_rsp_ev == 1) { + m_run_st = 0; + } else { + + } + } else { + + } + } + } + } + } + } + if ((int )s_run_pc == 2) { + if ((int )c_write_req_ev == 1) { + s_run_st = 0; + } else { + goto _L___4; + } + } else { + _L___4: /* CIL Label */ + if ((int )s_run_pc == 1) { + if ((int )c_read_rsp_ev == 1) { + s_run_st = 0; + } else { + + } + } else { + + } + } + c_write_req_ev = 2; + { + while (1) { + while_3_continue: /* CIL Label */ ; + if ((int )c_empty_rsp == 1) { + + } else { + goto while_3_break; + } + m_run_st = 2; + m_run_pc = 3; + req_t_type = req_type; + req_t_a = req_a; + req_t_d = req_d; + rsp_t_type = rsp_type; + rsp_t_status = rsp_status; + rsp_t_d = rsp_d; + d_t = d; + a_t = a; + + goto return_label; + L_MASTER_RUN_GET: + req_type = req_t_type; + req_a = req_t_a; + req_d = req_t_d; + rsp_type = rsp_t_type; + rsp_status = rsp_t_status; + rsp_d = rsp_t_d; + d = d_t; + a = a_t; + } + while_3_break: /* CIL Label */ ; + } + rsp_type = c_rsp_type; + rsp_status = c_rsp_status; + rsp_d = c_rsp_d; + c_empty_rsp = 1; + c_read_rsp_ev = 1; + if ((int )m_run_pc == 1) { + if ((int )c_m_ev == 1) { + m_run_st = 0; + } else { + goto _L___9; + } + } else { + _L___9: /* CIL Label */ + if ((int )m_run_pc == 2) { + if ((int )c_read_req_ev == 1) { + m_run_st = 0; + } else { + goto _L___8; + } + } else { + _L___8: /* CIL Label */ + if ((int )m_run_pc == 3) { + if ((int )c_write_rsp_ev == 1) { + m_run_st = 0; + } else { + goto _L___7; + } + } else { + _L___7: /* CIL Label */ + if ((int )m_run_pc == 4) { + if ((int )c_m_ev == 1) { + m_run_st = 0; + } else { + goto _L___6; + } + } else { + _L___6: /* CIL Label */ + if ((int )m_run_pc == 5) { + if ((int )c_read_req_ev == 1) { + m_run_st = 0; + } else { + goto _L___5; + } + } else { + _L___5: /* CIL Label */ + if ((int )m_run_pc == 6) { + if ((int )c_write_rsp_ev == 1) { + m_run_st = 0; + } else { + + } + } else { + + } + } + } + } + } + } + if ((int )s_run_pc == 2) { + if ((int )c_write_req_ev == 1) { + s_run_st = 0; + } else { + goto _L___10; + } + } else { + _L___10: /* CIL Label */ + if ((int )s_run_pc == 1) { + if ((int )c_read_rsp_ev == 1) { + s_run_st = 0; + } else { + + } + } else { + + } + } + c_read_rsp_ev = 2; + if (c_m_lock == 0) { + { + error(); + } + } else { + + } + c_m_lock = 0; + c_m_ev = 1; + if ((int )m_run_pc == 1) { + if ((int )c_m_ev == 1) { + m_run_st = 0; + } else { + goto _L___15; + } + } else { + _L___15: /* CIL Label */ + if ((int )m_run_pc == 2) { + if ((int )c_read_req_ev == 1) { + m_run_st = 0; + } else { + goto _L___14; + } + } else { + _L___14: /* CIL Label */ + if ((int )m_run_pc == 3) { + if ((int )c_write_rsp_ev == 1) { + m_run_st = 0; + } else { + goto _L___13; + } + } else { + _L___13: /* CIL Label */ + if ((int )m_run_pc == 4) { + if ((int )c_m_ev == 1) { + m_run_st = 0; + } else { + goto _L___12; + } + } else { + _L___12: /* CIL Label */ + if ((int )m_run_pc == 5) { + if ((int )c_read_req_ev == 1) { + m_run_st = 0; + } else { + goto _L___11; + } + } else { + _L___11: /* CIL Label */ + if ((int )m_run_pc == 6) { + if ((int )c_write_rsp_ev == 1) { + m_run_st = 0; + } else { + + } + } else { + + } + } + } + } + } + } + if ((int )s_run_pc == 2) { + if ((int )c_write_req_ev == 1) { + s_run_st = 0; + } else { + goto _L___16; + } + } else { + _L___16: /* CIL Label */ + if ((int )s_run_pc == 1) { + if ((int )c_read_rsp_ev == 1) { + s_run_st = 0; + } else { + + } + } else { + + } + } + c_m_ev = 2; + a += 1; + } + while_0_break: /* CIL Label */ ; + } + a = 0; + { + while (1) { + while_4_continue: /* CIL Label */ ; + if (a < 1) { + + } else { + goto while_4_break; + } + req_type___0 = 0; + req_a___0 = a; + { + while (1) { + while_5_continue: /* CIL Label */ ; + if (c_m_lock == 1) { + + } else { + goto while_5_break; + } + m_run_st = 2; + m_run_pc = 4; + req_tt_type = req_type___0; + req_tt_a = req_a___0; + req_tt_d = req_d___0; + rsp_tt_type = rsp_type___0; + rsp_tt_status = rsp_status___0; + rsp_tt_d = rsp_d___0; + d_t = d; + a_t = a; + + goto return_label; + L_MASTER_RUN_MUTEX2: + req_type___0 = req_tt_type; + req_a___0 = req_tt_a; + req_d___0 = req_tt_d; + rsp_type___0 = rsp_tt_type; + rsp_status___0 = rsp_tt_status; + rsp_d___0 = rsp_tt_d; + d = d_t; + a = a_t; + } + while_5_break: /* CIL Label */ ; + } + c_m_lock = 1; + { + while (1) { + while_6_continue: /* CIL Label */ ; + if ((int )c_empty_req == 0) { + + } else { + goto while_6_break; + } + m_run_st = 2; + m_run_pc = 5; + req_tt_type = req_type___0; + req_tt_a = req_a___0; + req_tt_d = req_d___0; + rsp_tt_type = rsp_type___0; + rsp_tt_status = rsp_status___0; + rsp_tt_d = rsp_d___0; + d_t = d; + a_t = a; + + goto return_label; + L_MASTER_RUN_PUT2: + req_type___0 = req_tt_type; + req_a___0 = req_tt_a; + req_d___0 = req_tt_d; + rsp_type___0 = rsp_tt_type; + rsp_status___0 = rsp_tt_status; + rsp_d___0 = rsp_tt_d; + d = d_t; + a = a_t; + } + while_6_break: /* CIL Label */ ; + } + c_req_type = req_type___0; + c_req_a = req_a___0; + c_req_d = req_d___0; + c_empty_req = 0; + c_write_req_ev = 1; + if ((int )m_run_pc == 1) { + if ((int )c_m_ev == 1) { + m_run_st = 0; + } else { + goto _L___21; + } + } else { + _L___21: /* CIL Label */ + if ((int )m_run_pc == 2) { + if ((int )c_read_req_ev == 1) { + m_run_st = 0; + } else { + goto _L___20; + } + } else { + _L___20: /* CIL Label */ + if ((int )m_run_pc == 3) { + if ((int )c_write_rsp_ev == 1) { + m_run_st = 0; + } else { + goto _L___19; + } + } else { + _L___19: /* CIL Label */ + if ((int )m_run_pc == 4) { + if ((int )c_m_ev == 1) { + m_run_st = 0; + } else { + goto _L___18; + } + } else { + _L___18: /* CIL Label */ + if ((int )m_run_pc == 5) { + if ((int )c_read_req_ev == 1) { + m_run_st = 0; + } else { + goto _L___17; + } + } else { + _L___17: /* CIL Label */ + if ((int )m_run_pc == 6) { + if ((int )c_write_rsp_ev == 1) { + m_run_st = 0; + } else { + + } + } else { + + } + } + } + } + } + } + if ((int )s_run_pc == 2) { + if ((int )c_write_req_ev == 1) { + s_run_st = 0; + } else { + goto _L___22; + } + } else { + _L___22: /* CIL Label */ + if ((int )s_run_pc == 1) { + if ((int )c_read_rsp_ev == 1) { + s_run_st = 0; + } else { + + } + } else { + + } + } + c_write_req_ev = 2; + { + while (1) { + while_7_continue: /* CIL Label */ ; + if ((int )c_empty_rsp == 1) { + + } else { + goto while_7_break; + } + m_run_st = 2; + m_run_pc = 6; + req_tt_type = req_type___0; + req_tt_a = req_a___0; + req_tt_d = req_d___0; + rsp_tt_type = rsp_type___0; + rsp_tt_status = rsp_status___0; + rsp_tt_d = rsp_d___0; + d_t = d; + a_t = a; + + goto return_label; + L_MASTER_RUN_GET2: + req_type___0 = req_tt_type; + req_a___0 = req_tt_a; + req_d___0 = req_tt_d; + rsp_type___0 = rsp_tt_type; + rsp_status___0 = rsp_tt_status; + rsp_d___0 = rsp_tt_d; + d = d_t; + a = a_t; + } + while_7_break: /* CIL Label */ ; + } + rsp_type___0 = c_rsp_type; + rsp_status___0 = c_rsp_status; + rsp_d___0 = c_rsp_d; + c_empty_rsp = 1; + c_read_rsp_ev = 1; + if ((int )m_run_pc == 1) { + if ((int )c_m_ev == 1) { + m_run_st = 0; + } else { + goto _L___27; + } + } else { + _L___27: /* CIL Label */ + if ((int )m_run_pc == 2) { + if ((int )c_read_req_ev == 1) { + m_run_st = 0; + } else { + goto _L___26; + } + } else { + _L___26: /* CIL Label */ + if ((int )m_run_pc == 3) { + if ((int )c_write_rsp_ev == 1) { + m_run_st = 0; + } else { + goto _L___25; + } + } else { + _L___25: /* CIL Label */ + if ((int )m_run_pc == 4) { + if ((int )c_m_ev == 1) { + m_run_st = 0; + } else { + goto _L___24; + } + } else { + _L___24: /* CIL Label */ + if ((int )m_run_pc == 5) { + if ((int )c_read_req_ev == 1) { + m_run_st = 0; + } else { + goto _L___23; + } + } else { + _L___23: /* CIL Label */ + if ((int )m_run_pc == 6) { + if ((int )c_write_rsp_ev == 1) { + m_run_st = 0; + } else { + + } + } else { + + } + } + } + } + } + } + if ((int )s_run_pc == 2) { + if ((int )c_write_req_ev == 1) { + s_run_st = 0; + } else { + goto _L___28; + } + } else { + _L___28: /* CIL Label */ + if ((int )s_run_pc == 1) { + if ((int )c_read_rsp_ev == 1) { + s_run_st = 0; + } else { + + } + } else { + + } + } + c_read_rsp_ev = 2; + if (c_m_lock == 0) { + { + error(); + } + } else { + + } + c_m_lock = 0; + c_m_ev = 1; + if ((int )m_run_pc == 1) { + if ((int )c_m_ev == 1) { + m_run_st = 0; + } else { + goto _L___33; + } + } else { + _L___33: /* CIL Label */ + if ((int )m_run_pc == 2) { + if ((int )c_read_req_ev == 1) { + m_run_st = 0; + } else { + goto _L___32; + } + } else { + _L___32: /* CIL Label */ + if ((int )m_run_pc == 3) { + if ((int )c_write_rsp_ev == 1) { + m_run_st = 0; + } else { + goto _L___31; + } + } else { + _L___31: /* CIL Label */ + if ((int )m_run_pc == 4) { + if ((int )c_m_ev == 1) { + m_run_st = 0; + } else { + goto _L___30; + } + } else { + _L___30: /* CIL Label */ + if ((int )m_run_pc == 5) { + if ((int )c_read_req_ev == 1) { + m_run_st = 0; + } else { + goto _L___29; + } + } else { + _L___29: /* CIL Label */ + if ((int )m_run_pc == 6) { + if ((int )c_write_rsp_ev == 1) { + m_run_st = 0; + } else { + + } + } else { + + } + } + } + } + } + } + if ((int )s_run_pc == 2) { + if ((int )c_write_req_ev == 1) { + s_run_st = 0; + } else { + goto _L___34; + } + } else { + _L___34: /* CIL Label */ + if ((int )s_run_pc == 1) { + if ((int )c_read_rsp_ev == 1) { + s_run_st = 0; + } else { + + } + } else { + + } + } + c_m_ev = 2; + if (! (req_a___0 + 50 == rsp_d___0)) { + { + error(); + } + } else { + + } + a += 1; + } + while_4_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +static int req_t_type___0 ; +static int req_t_a___0 ; +static int req_t_d___0 ; +static int rsp_t_type___0 ; +static int rsp_t_status___0 ; +static int rsp_t_d___0 ; +void s_run(void) +{ int req_type ; + int req_a ; + int req_d ; + int rsp_type ; + int rsp_status ; + int rsp_d ; + int dummy ; + + { + if ((int )s_run_pc == 0) { + goto L_SLAVE_RUN_ENTRY; + } else { + if ((int )s_run_pc == 1) { + goto L_SLAVE_RUN_PUT; + } else { + if ((int )s_run_pc == 2) { + goto L_SLAVE_RUN_GET; + } else { + + } + } + } + L_SLAVE_RUN_ENTRY: + { + while (1) { + while_8_continue: /* CIL Label */ ; + { + while (1) { + while_9_continue: /* CIL Label */ ; + if ((int )c_empty_req == 1) { + + } else { + goto while_9_break; + } + s_run_st = 2; + s_run_pc = 2; + req_t_type___0 = req_type; + req_t_a___0 = req_a; + req_t_d___0 = req_d; + rsp_t_type___0 = rsp_type; + rsp_t_status___0 = rsp_status; + rsp_t_d___0 = rsp_d; + + goto return_label; + L_SLAVE_RUN_GET: + req_type = req_t_type___0; + req_a = req_t_a___0; + req_d = req_t_d___0; + rsp_type = rsp_t_type___0; + rsp_status = rsp_t_status___0; + rsp_d = rsp_t_d___0; + } + while_9_break: /* CIL Label */ ; + } + req_type = c_req_type; + req_a = c_req_a; + req_d = c_req_d; + c_empty_req = 1; + c_read_req_ev = 1; + if ((int )m_run_pc == 1) { + if ((int )c_m_ev == 1) { + m_run_st = 0; + } else { + goto _L___3; + } + } else { + _L___3: /* CIL Label */ + if ((int )m_run_pc == 2) { + if ((int )c_read_req_ev == 1) { + m_run_st = 0; + } else { + goto _L___2; + } + } else { + _L___2: /* CIL Label */ + if ((int )m_run_pc == 3) { + if ((int )c_write_rsp_ev == 1) { + m_run_st = 0; + } else { + goto _L___1; + } + } else { + _L___1: /* CIL Label */ + if ((int )m_run_pc == 4) { + if ((int )c_m_ev == 1) { + m_run_st = 0; + } else { + goto _L___0; + } + } else { + _L___0: /* CIL Label */ + if ((int )m_run_pc == 5) { + if ((int )c_read_req_ev == 1) { + m_run_st = 0; + } else { + goto _L; + } + } else { + _L: /* CIL Label */ + if ((int )m_run_pc == 6) { + if ((int )c_write_rsp_ev == 1) { + m_run_st = 0; + } else { + + } + } else { + + } + } + } + } + } + } + if ((int )s_run_pc == 2) { + if ((int )c_write_req_ev == 1) { + s_run_st = 0; + } else { + goto _L___4; + } + } else { + _L___4: /* CIL Label */ + if ((int )s_run_pc == 1) { + if ((int )c_read_rsp_ev == 1) { + s_run_st = 0; + } else { + + } + } else { + + } + } + c_read_req_ev = 2; + rsp_type = req_type; + if ((int )req_type == 0) { + + rsp_d = s_memory_read(req_a); + + rsp_status = 1; + } else { + if ((int )req_type == 1) { + + s_memory_write(req_a,req_d); + + rsp_status = 1; + } else { + rsp_status = 0; + } + } + { + while (1) { + while_10_continue: /* CIL Label */ ; + if ((int )c_empty_rsp == 0) { + + } else { + goto while_10_break; + } + s_run_st = 2; + s_run_pc = 1; + req_t_type___0 = req_type; + req_t_a___0 = req_a; + req_t_d___0 = req_d; + rsp_t_type___0 = rsp_type; + rsp_t_status___0 = rsp_status; + rsp_t_d___0 = rsp_d; + + goto return_label; + L_SLAVE_RUN_PUT: + req_type = req_t_type___0; + req_a = req_t_a___0; + req_d = req_t_d___0; + rsp_type = rsp_t_type___0; + rsp_status = rsp_t_status___0; + rsp_d = rsp_t_d___0; + } + while_10_break: /* CIL Label */ ; + } + c_rsp_type = rsp_type; + c_rsp_status = rsp_status; + c_rsp_d = rsp_d; + c_empty_rsp = 0; + c_write_rsp_ev = 1; + if ((int )m_run_pc == 1) { + if ((int )c_m_ev == 1) { + m_run_st = 0; + } else { + goto _L___9; + } + } else { + _L___9: /* CIL Label */ + if ((int )m_run_pc == 2) { + if ((int )c_read_req_ev == 1) { + m_run_st = 0; + } else { + goto _L___8; + } + } else { + _L___8: /* CIL Label */ + if ((int )m_run_pc == 3) { + if ((int )c_write_rsp_ev == 1) { + m_run_st = 0; + } else { + goto _L___7; + } + } else { + _L___7: /* CIL Label */ + if ((int )m_run_pc == 4) { + if ((int )c_m_ev == 1) { + m_run_st = 0; + } else { + goto _L___6; + } + } else { + _L___6: /* CIL Label */ + if ((int )m_run_pc == 5) { + if ((int )c_read_req_ev == 1) { + m_run_st = 0; + } else { + goto _L___5; + } + } else { + _L___5: /* CIL Label */ + if ((int )m_run_pc == 6) { + if ((int )c_write_rsp_ev == 1) { + m_run_st = 0; + } else { + + } + } else { + + } + } + } + } + } + } + if ((int )s_run_pc == 2) { + if ((int )c_write_req_ev == 1) { + s_run_st = 0; + } else { + goto _L___10; + } + } else { + _L___10: /* CIL Label */ + if ((int )s_run_pc == 1) { + if ((int )c_read_rsp_ev == 1) { + s_run_st = 0; + } else { + + } + } else { + + } + } + c_write_rsp_ev = 2; + } + while_8_break: /* CIL Label */ ; + } + return_label: /* CIL Label */ + return; +} +} +void eval(void) +{ int tmp ; + int tmp___0 ; + + { + { + while (1) { + while_11_continue: /* CIL Label */ ; + if ((int )m_run_st == 0) { + + } else { + if ((int )s_run_st == 0) { + + } else { + goto while_11_break; + } + } + if ((int )m_run_st == 0) { + { + tmp = __VERIFIER_nondet_int(); + } + if (tmp) { + { + m_run_st = 1; + m_run(); + } + } else { + + } + } else { + + } + if ((int )s_run_st == 0) { + { + tmp___0 = __VERIFIER_nondet_int(); + } + if (tmp___0) { + { + s_run_st = 1; + s_run(); + } + } else { + + } + } else { + + } + } + while_11_break: /* CIL Label */ ; + } + + return; +} +} +void start_simulation(void) +{ int kernel_st ; + + { + kernel_st = 0; + if ((int )m_run_i == 1) { + m_run_st = 0; + } else { + m_run_st = 2; + } + if ((int )s_run_i == 1) { + s_run_st = 0; + } else { + s_run_st = 2; + } + if ((int )m_run_pc == 1) { + if ((int )c_m_ev == 1) { + m_run_st = 0; + } else { + goto _L___3; + } + } else { + _L___3: /* CIL Label */ + if ((int )m_run_pc == 2) { + if ((int )c_read_req_ev == 1) { + m_run_st = 0; + } else { + goto _L___2; + } + } else { + _L___2: /* CIL Label */ + if ((int )m_run_pc == 3) { + if ((int )c_write_rsp_ev == 1) { + m_run_st = 0; + } else { + goto _L___1; + } + } else { + _L___1: /* CIL Label */ + if ((int )m_run_pc == 4) { + if ((int )c_m_ev == 1) { + m_run_st = 0; + } else { + goto _L___0; + } + } else { + _L___0: /* CIL Label */ + if ((int )m_run_pc == 5) { + if ((int )c_read_req_ev == 1) { + m_run_st = 0; + } else { + goto _L; + } + } else { + _L: /* CIL Label */ + if ((int )m_run_pc == 6) { + if ((int )c_write_rsp_ev == 1) { + m_run_st = 0; + } else { + + } + } else { + + } + } + } + } + } + } + if ((int )s_run_pc == 2) { + if ((int )c_write_req_ev == 1) { + s_run_st = 0; + } else { + goto _L___4; + } + } else { + _L___4: /* CIL Label */ + if ((int )s_run_pc == 1) { + if ((int )c_read_rsp_ev == 1) { + s_run_st = 0; + } else { + + } + } else { + + } + } + { + while (1) { + while_12_continue: /* CIL Label */ ; + { + kernel_st = 1; + eval(); + } + kernel_st = 2; + kernel_st = 3; + if ((int )m_run_pc == 1) { + if ((int )c_m_ev == 1) { + m_run_st = 0; + } else { + goto _L___9; + } + } else { + _L___9: /* CIL Label */ + if ((int )m_run_pc == 2) { + if ((int )c_read_req_ev == 1) { + m_run_st = 0; + } else { + goto _L___8; + } + } else { + _L___8: /* CIL Label */ + if ((int )m_run_pc == 3) { + if ((int )c_write_rsp_ev == 1) { + m_run_st = 0; + } else { + goto _L___7; + } + } else { + _L___7: /* CIL Label */ + if ((int )m_run_pc == 4) { + if ((int )c_m_ev == 1) { + m_run_st = 0; + } else { + goto _L___6; + } + } else { + _L___6: /* CIL Label */ + if ((int )m_run_pc == 5) { + if ((int )c_read_req_ev == 1) { + m_run_st = 0; + } else { + goto _L___5; + } + } else { + _L___5: /* CIL Label */ + if ((int )m_run_pc == 6) { + if ((int )c_write_rsp_ev == 1) { + m_run_st = 0; + } else { + + } + } else { + + } + } + } + } + } + } + if ((int )s_run_pc == 2) { + if ((int )c_write_req_ev == 1) { + s_run_st = 0; + } else { + goto _L___10; + } + } else { + _L___10: /* CIL Label */ + if ((int )s_run_pc == 1) { + if ((int )c_read_rsp_ev == 1) { + s_run_st = 0; + } else { + + } + } else { + + } + } + if ((int )m_run_st == 0) { + + } else { + if ((int )s_run_st == 0) { + + } else { + goto while_12_break; + } + } + } + while_12_break: /* CIL Label */ ; + } + + return; +} +} +int main(void) +{ int __retres1 ; + + { + { + c_m_lock = 0; + c_m_ev = 2; + + m_run_i = 1; + m_run_pc = 0; + s_run_i = 1; + s_run_pc = 0; + c_empty_req = 1; + c_empty_rsp = 1; + c_read_req_ev = 2; + c_write_req_ev = 2; + c_read_rsp_ev = 2; + c_write_rsp_ev = 2; + c_m_lock = 0; + c_m_ev = 2; + start_simulation(); + } + __retres1 = 0; + return (__retres1); +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/merge_sort_true-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/merge_sort_true-unreach-call.c new file mode 100644 index 000000000..0af9b5ce5 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/merge_sort_true-unreach-call.c @@ -0,0 +1,722 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +typedef long unsigned int size_t; +typedef int wchar_t; + +union wait + { + int w_status; + struct + { + unsigned int __w_termsig:7; + unsigned int __w_coredump:1; + unsigned int __w_retcode:8; + unsigned int:16; + } __wait_terminated; + struct + { + unsigned int __w_stopval:8; + unsigned int __w_stopsig:8; + unsigned int:16; + } __wait_stopped; + }; +typedef union + { + union wait *__uptr; + int *__iptr; + } __WAIT_STATUS __attribute__ ((__transparent_union__)); + +typedef struct + { + int quot; + int rem; + } div_t; +typedef struct + { + long int quot; + long int rem; + } ldiv_t; + + +__extension__ typedef struct + { + long long int quot; + long long int rem; + } lldiv_t; + +extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__ , __leaf__)) ; + +extern double atof (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern int atoi (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern long int atol (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +__extension__ extern long long int atoll (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +extern double strtod (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern float strtof (__const char *__restrict __nptr, + char **__restrict __endptr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern long double strtold (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern long int strtol (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern unsigned long int strtoul (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtouq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoll (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtoull (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *l64a (long int __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern long int a64l (__const char *__s) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + +typedef unsigned char __u_char; +typedef unsigned short int __u_short; +typedef unsigned int __u_int; +typedef unsigned long int __u_long; +typedef signed char __int8_t; +typedef unsigned char __uint8_t; +typedef signed short int __int16_t; +typedef unsigned short int __uint16_t; +typedef signed int __int32_t; +typedef unsigned int __uint32_t; +typedef signed long int __int64_t; +typedef unsigned long int __uint64_t; +typedef long int __quad_t; +typedef unsigned long int __u_quad_t; +typedef unsigned long int __dev_t; +typedef unsigned int __uid_t; +typedef unsigned int __gid_t; +typedef unsigned long int __ino_t; +typedef unsigned long int __ino64_t; +typedef unsigned int __mode_t; +typedef unsigned long int __nlink_t; +typedef long int __off_t; +typedef long int __off64_t; +typedef int __pid_t; +typedef struct { int __val[2]; } __fsid_t; +typedef long int __clock_t; +typedef unsigned long int __rlim_t; +typedef unsigned long int __rlim64_t; +typedef unsigned int __id_t; +typedef long int __time_t; +typedef unsigned int __useconds_t; +typedef long int __suseconds_t; +typedef int __daddr_t; +typedef long int __swblk_t; +typedef int __key_t; +typedef int __clockid_t; +typedef void * __timer_t; +typedef long int __blksize_t; +typedef long int __blkcnt_t; +typedef long int __blkcnt64_t; +typedef unsigned long int __fsblkcnt_t; +typedef unsigned long int __fsblkcnt64_t; +typedef unsigned long int __fsfilcnt_t; +typedef unsigned long int __fsfilcnt64_t; +typedef long int __ssize_t; +typedef __off64_t __loff_t; +typedef __quad_t *__qaddr_t; +typedef char *__caddr_t; +typedef long int __intptr_t; +typedef unsigned int __socklen_t; +typedef __u_char u_char; +typedef __u_short u_short; +typedef __u_int u_int; +typedef __u_long u_long; +typedef __quad_t quad_t; +typedef __u_quad_t u_quad_t; +typedef __fsid_t fsid_t; +typedef __loff_t loff_t; +typedef __ino_t ino_t; +typedef __dev_t dev_t; +typedef __gid_t gid_t; +typedef __mode_t mode_t; +typedef __nlink_t nlink_t; +typedef __uid_t uid_t; +typedef __off_t off_t; +typedef __pid_t pid_t; +typedef __id_t id_t; +typedef __ssize_t ssize_t; +typedef __daddr_t daddr_t; +typedef __caddr_t caddr_t; +typedef __key_t key_t; + +typedef __clock_t clock_t; + + + +typedef __time_t time_t; + + +typedef __clockid_t clockid_t; +typedef __timer_t timer_t; +typedef unsigned long int ulong; +typedef unsigned short int ushort; +typedef unsigned int uint; +typedef int int8_t __attribute__ ((__mode__ (__QI__))); +typedef int int16_t __attribute__ ((__mode__ (__HI__))); +typedef int int32_t __attribute__ ((__mode__ (__SI__))); +typedef int int64_t __attribute__ ((__mode__ (__DI__))); +typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); +typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); +typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); +typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); +typedef int register_t __attribute__ ((__mode__ (__word__))); +typedef int __sig_atomic_t; +typedef struct + { + unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; + } __sigset_t; +typedef __sigset_t sigset_t; +struct timespec + { + __time_t tv_sec; + long int tv_nsec; + }; +struct timeval + { + __time_t tv_sec; + __suseconds_t tv_usec; + }; +typedef __suseconds_t suseconds_t; +typedef long int __fd_mask; +typedef struct + { + __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; + } fd_set; +typedef __fd_mask fd_mask; + +extern int select (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + struct timeval *__restrict __timeout); +extern int pselect (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + const struct timespec *__restrict __timeout, + const __sigset_t *__restrict __sigmask); + + +__extension__ +extern unsigned int gnu_dev_major (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned int gnu_dev_minor (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned long long int gnu_dev_makedev (unsigned int __major, + unsigned int __minor) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); + +typedef __blksize_t blksize_t; +typedef __blkcnt_t blkcnt_t; +typedef __fsblkcnt_t fsblkcnt_t; + + +typedef __fsfilcnt_t fsfilcnt_t; +typedef unsigned long int pthread_t; +typedef union +{ + char __size[56]; + long int __align; +} pthread_attr_t; +typedef struct __pthread_internal_list +{ + struct __pthread_internal_list *__prev; + struct __pthread_internal_list *__next; +} __pthread_list_t; +typedef union +{ + struct __pthread_mutex_s + { + int __lock; + unsigned int __count; + int __owner; + unsigned int __nusers; + int __kind; + int __spins; + __pthread_list_t __list; + } __data; + char __size[40]; + long int __align; +} pthread_mutex_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_mutexattr_t; +typedef union +{ + struct + { + int __lock; + unsigned int __futex; + __extension__ unsigned long long int __total_seq; + __extension__ unsigned long long int __wakeup_seq; + __extension__ unsigned long long int __woken_seq; + void *__mutex; + unsigned int __nwaiters; + unsigned int __broadcast_seq; + } __data; + char __size[48]; + __extension__ long long int __align; +} pthread_cond_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_condattr_t; +typedef unsigned int pthread_key_t; +typedef int pthread_once_t; +typedef union +{ + struct + { + int __lock; + unsigned int __nr_readers; + unsigned int __readers_wakeup; + unsigned int __writer_wakeup; + unsigned int __nr_readers_queued; + unsigned int __nr_writers_queued; + int __writer; + int __shared; + unsigned long int __pad1; + unsigned long int __pad2; + unsigned int __flags; + } __data; + char __size[56]; + long int __align; +} pthread_rwlock_t; +typedef union +{ + char __size[8]; + long int __align; +} pthread_rwlockattr_t; +typedef volatile int pthread_spinlock_t; +typedef union +{ + char __size[32]; + long int __align; +} pthread_barrier_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_barrierattr_t; + +extern long int random (void) __attribute__ ((__nothrow__ , __leaf__)); +extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); +extern char *initstate (unsigned int __seed, char *__statebuf, + size_t __statelen) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + + +extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + + + +struct random_data + { + int32_t *fptr; + int32_t *rptr; + int32_t *state; + int rand_type; + int rand_deg; + int rand_sep; + int32_t *end_ptr; + }; + +extern int random_r (struct random_data *__restrict __buf, + int32_t *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int srandom_r (unsigned int __seed, struct random_data *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, + size_t __statelen, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4))); + +extern int setstate_r (char *__restrict __statebuf, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + +extern int rand (void) __attribute__ ((__nothrow__ , __leaf__)); + +extern void srand (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern double drand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int lrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int nrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int mrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int jrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern void srand48 (long int __seedval) __attribute__ ((__nothrow__ , __leaf__)); +extern unsigned short int *seed48 (unsigned short int __seed16v[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + +struct drand48_data + { + unsigned short int __x[3]; + unsigned short int __old_x[3]; + unsigned short int __c; + unsigned short int __init; + unsigned long long int __a; + }; + + +extern int drand48_r (struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int erand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int lrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int nrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int mrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int jrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int srand48_r (long int __seedval, struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int seed48_r (unsigned short int __seed16v[3], + struct drand48_data *__buffer) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int lcong48_r (unsigned short int __param[7], + struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + + + + +extern void *malloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + +extern void *calloc (size_t __nmemb, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + + + + + + + +extern void *realloc (void *__ptr, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); + +extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern void cfree (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + +extern void *alloca (size_t __size) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern void *valloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + +extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + + + +extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + + +extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern void exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern void _Exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern char *getenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *__secure_getenv (__const char *__name) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int putenv (char *__string) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int setenv (__const char *__name, __const char *__value, int __replace) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); +extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int clearenv (void) __attribute__ ((__nothrow__ , __leaf__)); +extern char *mktemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ; +extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern int system (__const char *__command) ; + +extern char *realpath (__const char *__restrict __name, + char *__restrict __resolved) __attribute__ ((__nothrow__ , __leaf__)) ; +typedef int (*__compar_fn_t) (__const void *, __const void *); + +extern void *bsearch (__const void *__key, __const void *__base, + size_t __nmemb, size_t __size, __compar_fn_t __compar) + __attribute__ ((__nonnull__ (1, 2, 5))) ; +extern void qsort (void *__base, size_t __nmemb, size_t __size, + __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); +extern int abs (int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern long int labs (long int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +__extension__ extern long long int llabs (long long int __x) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern div_t div (int __numer, int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern ldiv_t ldiv (long int __numer, long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + + +__extension__ extern lldiv_t lldiv (long long int __numer, + long long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *gcvt (double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern char *qecvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qfcvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qgcvt (long double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qecvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qfcvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); + +extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int mbtowc (wchar_t *__restrict __pwc, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__ , __leaf__)) ; +extern size_t mbstowcs (wchar_t *__restrict __pwcs, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)); +extern size_t wcstombs (char *__restrict __s, + __const wchar_t *__restrict __pwcs, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)); + +extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int getsubopt (char **__restrict __optionp, + char *__const *__restrict __tokens, + char **__restrict __valuep) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2, 3))) ; +extern int getloadavg (double __loadavg[], int __nelem) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern int __VERIFIER_nondet_int(void); +static void fail(void) { +ERROR: __VERIFIER_error(); +} +struct node { + struct node *next; + int value; +}; +struct list { + struct node *slist; + struct list *next; +}; +static void merge_single_node(struct node ***dst, + struct node **data) +{ + struct node *node = *data; + *data = node->next; + node->next = ((void *)0); + **dst = node; + *dst = &node->next; +} +static void merge_pair(struct node **dst, + struct node *sub1, + struct node *sub2) +{ + while (sub1 || sub2) { + if (!sub2 || (sub1 && sub1->value < sub2->value)) + merge_single_node(&dst, &sub1); + else + merge_single_node(&dst, &sub2); + } +} +static struct list* seq_sort_core(struct list *data) +{ + struct list *dst = ((void *)0); + while (data) { + struct list *next = data->next; + if (!next) { + data->next = dst; + dst = data; + break; + } + merge_pair(&data->slist, data->slist, next->slist); + data->next = dst; + dst = data; + data = next->next; + free(next); + } + return dst; +} +static void inspect_before(struct list *shape) +{ + do { if (!(shape)) fail(); } while (0); + for (; shape->next; shape = shape->next) { + do { if (!(shape)) fail(); } while (0); + do { if (!(shape->next)) fail(); } while (0); + do { if (!(shape->slist)) fail(); } while (0); + do { if (!(shape->slist->next == ((void *)0))) fail(); } while (0); + } + do { if (!(shape)) fail(); } while (0); + do { if (!(shape->next == ((void *)0))) fail(); } while (0); + do { if (!(shape->slist)) fail(); } while (0); + do { if (!(shape->slist->next == ((void *)0))) fail(); } while (0); +} +static void inspect_after(struct list *shape) +{ + do { if (!(shape)) fail(); } while (0); + do { if (!(shape->next == ((void *)0))) fail(); } while (0); + do { if (!(shape->slist != ((void *)0))) fail(); } while (0); + struct node *pos; + for (pos = shape->slist; pos->next; pos = pos->next); + do { if (!(!pos->next)) fail(); } while (0); +} +int main() +{ + struct list *data = ((void *)0); + while (__VERIFIER_nondet_int()) { + struct node *node = malloc(sizeof *node); + if (!node) + abort(); + node->next = ((void *)0); + node->value = __VERIFIER_nondet_int(); + struct list *item = malloc(sizeof *item); + if (!item) + abort(); + item->slist = node; + item->next = data; + data = item; + } + if (!data) + return 0; + inspect_before(data); + while (data->next) + data = seq_sort_core(data); + inspect_after(data); + struct node *node = data->slist; + free(data); + while (node) { + struct node *snext = node->next; + free(node); + node = snext; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/minepump_spec1_product01_true-unreach-call.cil.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/minepump_spec1_product01_true-unreach-call.cil.c new file mode 100644 index 000000000..286fe87d2 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/minepump_spec1_product01_true-unreach-call.cil.c @@ -0,0 +1,1181 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +extern int __VERIFIER_nondet_int(void); +extern int printf (__const char *__restrict __format, ...); +/* Generated by CIL v. 1.3.7 */ +/* print_CIL_Input is true */ + +#line 2 "libacc.c" +struct JoinPoint { + void **(*fp)(struct JoinPoint * ) ; + void **args ; + int argsCount ; + char const **argsType ; + void *(*arg)(int , struct JoinPoint * ) ; + char const *(*argType)(int , struct JoinPoint * ) ; + void **retValue ; + char const *retType ; + char const *funcName ; + char const *targetName ; + char const *fileName ; + char const *kind ; + void *excep_return ; +}; +#line 18 "libacc.c" +struct __UTAC__CFLOW_FUNC { + int (*func)(int , int ) ; + int val ; + struct __UTAC__CFLOW_FUNC *next ; +}; +#line 18 "libacc.c" +struct __UTAC__EXCEPTION { + void *jumpbuf ; + unsigned long long prtValue ; + int pops ; + struct __UTAC__CFLOW_FUNC *cflowfuncs ; +}; +#line 211 "/usr/lib/gcc/x86_64-linux-gnu/4.4.5/include/stddef.h" +typedef unsigned long size_t; +#line 76 "libacc.c" +struct __ACC__ERR { + void *v ; + struct __ACC__ERR *next ; +}; +#line 1 "Test.o" +#pragma merger(0,"Test.i","") +#line 8 "Test.c" +int cleanupTimeShifts = 4; +#line 11 "Test.c" +#line 20 "Test.c" +void timeShift(void) ; +#line 17 "Test.c" +void cleanup(void) +{ int i ; + int __cil_tmp2 ; + + { + { +#line 20 + timeShift(); +#line 22 + i = 0; + } + { +#line 22 + while (1) { + while_0_continue: /* CIL Label */ ; + { +#line 22 + __cil_tmp2 = cleanupTimeShifts - 1; +#line 22 + if (i < __cil_tmp2) { + + } else { + goto while_0_break; + } + } + { +#line 23 + timeShift(); +#line 22 + i = i + 1; + } + } + while_0_break: /* CIL Label */ ; + } +#line 1111 "Test.c" + return; +} +} +#line 57 "Test.c" +void printPump(void) ; +#line 60 +void waterRise(void) ; +#line 62 +void changeMethaneLevel(void) ; +#line 56 "Test.c" +void Specification2(void) +{ + + { + { +#line 57 + timeShift(); +#line 57 + printPump(); +#line 58 + timeShift(); +#line 58 + printPump(); +#line 59 + timeShift(); +#line 59 + printPump(); +#line 60 + waterRise(); +#line 60 + printPump(); +#line 61 + timeShift(); +#line 61 + printPump(); +#line 62 + changeMethaneLevel(); +#line 62 + printPump(); +#line 63 + timeShift(); +#line 63 + printPump(); +#line 64 + cleanup(); + } +#line 1159 "Test.c" + return; +} +} +#line 67 "Test.c" +void setup(void) +{ + + { +#line 1177 "Test.c" + return; +} +} +#line 77 "Test.c" +void test(void) ; +#line 74 "Test.c" +void runTest(void) +{ + + { + { +#line 77 + test(); + } +#line 1197 "Test.c" + return; +} +} +#line 83 "Test.c" +void select_helpers(void) ; +#line 84 +void select_features(void) ; +#line 85 +int valid_product(void) ; +#line 82 "Test.c" +int main(void) +{ int retValue_acc ; + int tmp ; + + { + { +#line 83 + select_helpers(); +#line 84 + select_features(); +#line 85 + tmp = valid_product(); + } +#line 85 + if (tmp) { + { +#line 86 + setup(); +#line 87 + runTest(); + } + } else { + + } +#line 1226 "Test.c" + retValue_acc = 0; +#line 1228 + return (retValue_acc); +#line 1235 + return (retValue_acc); +} +} +#line 1 "Environment.o" +#pragma merger(0,"Environment.i","") +#line 4 "Environment.h" +void lowerWaterLevel(void) ; +#line 10 +int isMethaneLevelCritical(void) ; +#line 12 +int getWaterLevel(void) ; +#line 15 +void printEnvironment(void) ; +#line 9 "Environment.c" +int waterLevel = 1; +#line 12 "Environment.c" +int methaneLevelCritical = 0; +#line 15 "Environment.c" +void lowerWaterLevel(void) +{ + + { +#line 19 + if (waterLevel > 0) { +#line 17 + waterLevel = waterLevel - 1; + } else { + + } +#line 81 "Environment.c" + return; +} +} +#line 22 "Environment.c" +void waterRise(void) +{ + + { +#line 26 + if (waterLevel < 2) { +#line 24 + waterLevel = waterLevel + 1; + } else { + + } +#line 104 "Environment.c" + return; +} +} +#line 29 "Environment.c" +void changeMethaneLevel(void) +{ + + { +#line 34 + if (methaneLevelCritical) { +#line 31 + methaneLevelCritical = 0; + } else { +#line 33 + methaneLevelCritical = 1; + } +#line 130 "Environment.c" + return; +} +} +#line 38 "Environment.c" +int isMethaneLevelCritical(void) +{ int retValue_acc ; + + { +#line 148 "Environment.c" + retValue_acc = methaneLevelCritical; +#line 150 + return (retValue_acc); +#line 157 + return (retValue_acc); +} +} +#line 45 "Environment.c" +#line 44 "Environment.c" +void printEnvironment(void) +{ + + { + { +#line 45 + printf("Env(Water:%i", waterLevel); +#line 46 + printf(",Meth:"); + } +#line 47 + if (methaneLevelCritical) { + { +#line 48 + printf("CRIT"); + } + } else { + { +#line 49 + printf("OK"); + } + } + { +#line 51 + printf(")"); + } +#line 189 "Environment.c" + return; +} +} +#line 55 "Environment.c" +int getWaterLevel(void) +{ int retValue_acc ; + + { +#line 207 "Environment.c" + retValue_acc = waterLevel; +#line 209 + return (retValue_acc); +#line 216 + return (retValue_acc); +} +} +#line 1 "featureselect.o" +#pragma merger(0,"featureselect.i","") +#line 8 "featureselect.h" +int select_one(void) ; +#line 8 "featureselect.c" +int select_one(void) +{ int retValue_acc ; + int choice = __VERIFIER_nondet_int(); + + { +#line 62 "featureselect.c" + retValue_acc = choice; +#line 64 + return (retValue_acc); +#line 71 + return (retValue_acc); +} +} +#line 14 "featureselect.c" +void select_features(void) +{ + + { +#line 93 "featureselect.c" + return; +} +} +#line 20 "featureselect.c" +void select_helpers(void) +{ + + { +#line 111 "featureselect.c" + return; +} +} +#line 25 "featureselect.c" +int valid_product(void) +{ int retValue_acc ; + + { +#line 129 "featureselect.c" + retValue_acc = 1; +#line 131 + return (retValue_acc); +#line 138 + return (retValue_acc); +} +} +#line 1 "MinePump.o" +#pragma merger(0,"MinePump.i","") +#line 6 "MinePump.h" +void activatePump(void) ; +#line 8 +void deactivatePump(void) ; +#line 10 +int isPumpRunning(void) ; +#line 7 "MinePump.c" +int pumpRunning = 0; +#line 9 "MinePump.c" +int systemActive = 1; +#line 10 +void __utac_acc__Specification1_spec__1(void) ; +#line 16 +void processEnvironment(void) ; +#line 12 "MinePump.c" +void timeShift(void) +{ + + { +#line 15 + if (pumpRunning) { + { +#line 16 + lowerWaterLevel(); + } + } else { + + } +#line 15 + if (systemActive) { + { +#line 16 + processEnvironment(); + } + } else { + + } + { +#line 95 "MinePump.c" + __utac_acc__Specification1_spec__1(); + } +#line 101 + return; +} +} +#line 19 "MinePump.c" +void processEnvironment(void) +{ + + { +#line 119 "MinePump.c" + return; +} +} +#line 24 "MinePump.c" +void activatePump(void) +{ + + { +#line 25 + pumpRunning = 1; +#line 139 "MinePump.c" + return; +} +} +#line 29 "MinePump.c" +void deactivatePump(void) +{ + + { +#line 30 + pumpRunning = 0; +#line 159 "MinePump.c" + return; +} +} +#line 34 "MinePump.c" +int isMethaneAlarm(void) +{ int retValue_acc ; + + { + { +#line 177 "MinePump.c" + retValue_acc = isMethaneLevelCritical(); + } +#line 179 + return (retValue_acc); +#line 186 + return (retValue_acc); +} +} +#line 39 "MinePump.c" +int isPumpRunning(void) +{ int retValue_acc ; + + { +#line 208 "MinePump.c" + retValue_acc = pumpRunning; +#line 210 + return (retValue_acc); +#line 217 + return (retValue_acc); +} +} +#line 44 "MinePump.c" +void printPump(void) +{ + + { + { +#line 45 + printf("Pump(System:"); + } +#line 46 + if (systemActive) { + { +#line 47 + printf("On"); + } + } else { + { +#line 48 + printf("Off"); + } + } + { +#line 50 + printf(",Pump:"); + } +#line 51 + if (pumpRunning) { + { +#line 52 + printf("On"); + } + } else { + { +#line 53 + printf("Off"); + } + } + { +#line 55 + printf(") "); +#line 56 + printEnvironment(); +#line 57 + printf("\n"); + } +#line 257 "MinePump.c" + return; +} +} +#line 1 "scenario.o" +#pragma merger(0,"scenario.i","") +#line 1 "scenario.c" +void test(void) +{ int splverifierCounter ; + int tmp ; + int tmp___0 ; + int tmp___1 ; + int tmp___2 ; + + { +#line 2 + splverifierCounter = 0; + { +#line 3 + while (1) { + while_1_continue: /* CIL Label */ ; +#line 3 + if (splverifierCounter < 4) { + + } else { + goto while_1_break; + } + { +#line 7 + tmp = __VERIFIER_nondet_int(); + } +#line 7 + if (tmp) { + { +#line 5 + waterRise(); + } + } else { + + } + { +#line 7 + tmp___0 = __VERIFIER_nondet_int(); + } +#line 7 + if (tmp___0) { + { +#line 8 + changeMethaneLevel(); + } + } else { + + } + { +#line 10 + tmp___2 = __VERIFIER_nondet_int(); + } +#line 10 + if (tmp___2) { + + } else { + { +#line 12 + tmp___1 = __VERIFIER_nondet_int(); + } +#line 12 + if (tmp___1) { + + } else { + + } + } + { +#line 13 + timeShift(); + } + } + while_1_break: /* CIL Label */ ; + } + { +#line 15 + cleanup(); + } +#line 74 "scenario.c" + return; +} +} +#line 1 "Specification1_spec.o" +#pragma merger(0,"Specification1_spec.i","") +#line 4 "wsllib.h" +void __automaton_fail(void) ; +#line 11 "Specification1_spec.c" +void __utac_acc__Specification1_spec__1(void) +{ int tmp ; + int tmp___0 ; + + { + { +#line 17 + tmp = isMethaneLevelCritical(); + } +#line 17 + if (tmp) { + { +#line 17 + tmp___0 = isPumpRunning(); + } +#line 17 + if (tmp___0) { + { +#line 14 + __automaton_fail(); + } + } else { + + } + } else { + + } +#line 14 + return; +} +} +#line 1 "wsllib_check.o" +#pragma merger(0,"wsllib_check.i","") +#line 3 "wsllib_check.c" +void __automaton_fail(void) +{ + + { + ERROR: __VERIFIER_error(); +#line 53 "wsllib_check.c" + return; +} +} +#line 1 "libacc.o" +#pragma merger(0,"libacc.i","") +#line 73 "/usr/include/assert.h" +extern __attribute__((__nothrow__, __noreturn__)) void __assert_fail(char const *__assertion , + char const *__file , + unsigned int __line , + char const *__function ) ; +#line 471 "/usr/include/stdlib.h" +extern __attribute__((__nothrow__)) void *malloc(size_t __size ) __attribute__((__malloc__)) ; +#line 488 +extern __attribute__((__nothrow__)) void free(void *__ptr ) ; +#line 32 "libacc.c" +void __utac__exception__cf_handler_set(void *exception , int (*cflow_func)(int , + int ) , + int val ) +{ struct __UTAC__EXCEPTION *excep ; + struct __UTAC__CFLOW_FUNC *cf ; + void *tmp ; + unsigned long __cil_tmp7 ; + unsigned long __cil_tmp8 ; + unsigned long __cil_tmp9 ; + unsigned long __cil_tmp10 ; + unsigned long __cil_tmp11 ; + unsigned long __cil_tmp12 ; + unsigned long __cil_tmp13 ; + unsigned long __cil_tmp14 ; + int (**mem_15)(int , int ) ; + int *mem_16 ; + struct __UTAC__CFLOW_FUNC **mem_17 ; + struct __UTAC__CFLOW_FUNC **mem_18 ; + struct __UTAC__CFLOW_FUNC **mem_19 ; + + { + { +#line 33 + excep = (struct __UTAC__EXCEPTION *)exception; +#line 34 + tmp = malloc(24UL); +#line 34 + cf = (struct __UTAC__CFLOW_FUNC *)tmp; +#line 36 + mem_15 = (int (**)(int , int ))cf; +#line 36 + *mem_15 = cflow_func; +#line 37 + __cil_tmp7 = (unsigned long )cf; +#line 37 + __cil_tmp8 = __cil_tmp7 + 8; +#line 37 + mem_16 = (int *)__cil_tmp8; +#line 37 + *mem_16 = val; +#line 38 + __cil_tmp9 = (unsigned long )cf; +#line 38 + __cil_tmp10 = __cil_tmp9 + 16; +#line 38 + __cil_tmp11 = (unsigned long )excep; +#line 38 + __cil_tmp12 = __cil_tmp11 + 24; +#line 38 + mem_17 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp10; +#line 38 + mem_18 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp12; +#line 38 + *mem_17 = *mem_18; +#line 39 + __cil_tmp13 = (unsigned long )excep; +#line 39 + __cil_tmp14 = __cil_tmp13 + 24; +#line 39 + mem_19 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp14; +#line 39 + *mem_19 = cf; + } +#line 654 "libacc.c" + return; +} +} +#line 44 "libacc.c" +void __utac__exception__cf_handler_free(void *exception ) +{ struct __UTAC__EXCEPTION *excep ; + struct __UTAC__CFLOW_FUNC *cf ; + struct __UTAC__CFLOW_FUNC *tmp ; + unsigned long __cil_tmp5 ; + unsigned long __cil_tmp6 ; + struct __UTAC__CFLOW_FUNC *__cil_tmp7 ; + unsigned long __cil_tmp8 ; + unsigned long __cil_tmp9 ; + unsigned long __cil_tmp10 ; + unsigned long __cil_tmp11 ; + void *__cil_tmp12 ; + unsigned long __cil_tmp13 ; + unsigned long __cil_tmp14 ; + struct __UTAC__CFLOW_FUNC **mem_15 ; + struct __UTAC__CFLOW_FUNC **mem_16 ; + struct __UTAC__CFLOW_FUNC **mem_17 ; + + { +#line 45 + excep = (struct __UTAC__EXCEPTION *)exception; +#line 46 + __cil_tmp5 = (unsigned long )excep; +#line 46 + __cil_tmp6 = __cil_tmp5 + 24; +#line 46 + mem_15 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp6; +#line 46 + cf = *mem_15; + { +#line 49 + while (1) { + while_2_continue: /* CIL Label */ ; + { +#line 49 + __cil_tmp7 = (struct __UTAC__CFLOW_FUNC *)0; +#line 49 + __cil_tmp8 = (unsigned long )__cil_tmp7; +#line 49 + __cil_tmp9 = (unsigned long )cf; +#line 49 + if (__cil_tmp9 != __cil_tmp8) { + + } else { + goto while_2_break; + } + } + { +#line 50 + tmp = cf; +#line 51 + __cil_tmp10 = (unsigned long )cf; +#line 51 + __cil_tmp11 = __cil_tmp10 + 16; +#line 51 + mem_16 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp11; +#line 51 + cf = *mem_16; +#line 52 + __cil_tmp12 = (void *)tmp; +#line 52 + free(__cil_tmp12); + } + } + while_2_break: /* CIL Label */ ; + } +#line 55 + __cil_tmp13 = (unsigned long )excep; +#line 55 + __cil_tmp14 = __cil_tmp13 + 24; +#line 55 + mem_17 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp14; +#line 55 + *mem_17 = (struct __UTAC__CFLOW_FUNC *)0; +#line 694 "libacc.c" + return; +} +} +#line 59 "libacc.c" +void __utac__exception__cf_handler_reset(void *exception ) +{ struct __UTAC__EXCEPTION *excep ; + struct __UTAC__CFLOW_FUNC *cf ; + unsigned long __cil_tmp5 ; + unsigned long __cil_tmp6 ; + struct __UTAC__CFLOW_FUNC *__cil_tmp7 ; + unsigned long __cil_tmp8 ; + unsigned long __cil_tmp9 ; + int (*__cil_tmp10)(int , int ) ; + unsigned long __cil_tmp11 ; + unsigned long __cil_tmp12 ; + int __cil_tmp13 ; + unsigned long __cil_tmp14 ; + unsigned long __cil_tmp15 ; + struct __UTAC__CFLOW_FUNC **mem_16 ; + int (**mem_17)(int , int ) ; + int *mem_18 ; + struct __UTAC__CFLOW_FUNC **mem_19 ; + + { +#line 60 + excep = (struct __UTAC__EXCEPTION *)exception; +#line 61 + __cil_tmp5 = (unsigned long )excep; +#line 61 + __cil_tmp6 = __cil_tmp5 + 24; +#line 61 + mem_16 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp6; +#line 61 + cf = *mem_16; + { +#line 64 + while (1) { + while_3_continue: /* CIL Label */ ; + { +#line 64 + __cil_tmp7 = (struct __UTAC__CFLOW_FUNC *)0; +#line 64 + __cil_tmp8 = (unsigned long )__cil_tmp7; +#line 64 + __cil_tmp9 = (unsigned long )cf; +#line 64 + if (__cil_tmp9 != __cil_tmp8) { + + } else { + goto while_3_break; + } + } + { +#line 65 + mem_17 = (int (**)(int , int ))cf; +#line 65 + __cil_tmp10 = *mem_17; +#line 65 + __cil_tmp11 = (unsigned long )cf; +#line 65 + __cil_tmp12 = __cil_tmp11 + 8; +#line 65 + mem_18 = (int *)__cil_tmp12; +#line 65 + __cil_tmp13 = *mem_18; +#line 65 + (*__cil_tmp10)(4, __cil_tmp13); +#line 66 + __cil_tmp14 = (unsigned long )cf; +#line 66 + __cil_tmp15 = __cil_tmp14 + 16; +#line 66 + mem_19 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp15; +#line 66 + cf = *mem_19; + } + } + while_3_break: /* CIL Label */ ; + } + { +#line 69 + __utac__exception__cf_handler_free(exception); + } +#line 732 "libacc.c" + return; +} +} +#line 80 "libacc.c" +void *__utac__error_stack_mgt(void *env , int mode , int count ) ; +#line 80 "libacc.c" +static struct __ACC__ERR *head = (struct __ACC__ERR *)0; +#line 79 "libacc.c" +void *__utac__error_stack_mgt(void *env , int mode , int count ) +{ void *retValue_acc ; + struct __ACC__ERR *new ; + void *tmp ; + struct __ACC__ERR *temp ; + struct __ACC__ERR *next ; + void *excep ; + unsigned long __cil_tmp10 ; + unsigned long __cil_tmp11 ; + unsigned long __cil_tmp12 ; + unsigned long __cil_tmp13 ; + void *__cil_tmp14 ; + unsigned long __cil_tmp15 ; + unsigned long __cil_tmp16 ; + void *__cil_tmp17 ; + void **mem_18 ; + struct __ACC__ERR **mem_19 ; + struct __ACC__ERR **mem_20 ; + void **mem_21 ; + struct __ACC__ERR **mem_22 ; + void **mem_23 ; + void **mem_24 ; + + { +#line 82 "libacc.c" + if (count == 0) { +#line 758 "libacc.c" + return (retValue_acc); + } else { + + } +#line 86 "libacc.c" + if (mode == 0) { + { +#line 87 + tmp = malloc(16UL); +#line 87 + new = (struct __ACC__ERR *)tmp; +#line 88 + mem_18 = (void **)new; +#line 88 + *mem_18 = env; +#line 89 + __cil_tmp10 = (unsigned long )new; +#line 89 + __cil_tmp11 = __cil_tmp10 + 8; +#line 89 + mem_19 = (struct __ACC__ERR **)__cil_tmp11; +#line 89 + *mem_19 = head; +#line 90 + head = new; +#line 776 "libacc.c" + retValue_acc = (void *)new; + } +#line 778 + return (retValue_acc); + } else { + + } +#line 94 "libacc.c" + if (mode == 1) { +#line 95 + temp = head; + { +#line 98 + while (1) { + while_4_continue: /* CIL Label */ ; +#line 98 + if (count > 1) { + + } else { + goto while_4_break; + } + { +#line 99 + __cil_tmp12 = (unsigned long )temp; +#line 99 + __cil_tmp13 = __cil_tmp12 + 8; +#line 99 + mem_20 = (struct __ACC__ERR **)__cil_tmp13; +#line 99 + next = *mem_20; +#line 100 + mem_21 = (void **)temp; +#line 100 + excep = *mem_21; +#line 101 + __cil_tmp14 = (void *)temp; +#line 101 + free(__cil_tmp14); +#line 102 + __utac__exception__cf_handler_reset(excep); +#line 103 + temp = next; +#line 104 + count = count - 1; + } + } + while_4_break: /* CIL Label */ ; + } + { +#line 107 + __cil_tmp15 = (unsigned long )temp; +#line 107 + __cil_tmp16 = __cil_tmp15 + 8; +#line 107 + mem_22 = (struct __ACC__ERR **)__cil_tmp16; +#line 107 + head = *mem_22; +#line 108 + mem_23 = (void **)temp; +#line 108 + excep = *mem_23; +#line 109 + __cil_tmp17 = (void *)temp; +#line 109 + free(__cil_tmp17); +#line 110 + __utac__exception__cf_handler_reset(excep); +#line 820 "libacc.c" + retValue_acc = excep; + } +#line 822 + return (retValue_acc); + } else { + + } +#line 114 + if (mode == 2) { +#line 118 "libacc.c" + if (head) { +#line 831 + mem_24 = (void **)head; +#line 831 + retValue_acc = *mem_24; +#line 833 + return (retValue_acc); + } else { +#line 837 "libacc.c" + retValue_acc = (void *)0; +#line 839 + return (retValue_acc); + } + } else { + + } +#line 846 "libacc.c" + return (retValue_acc); +} +} +#line 122 "libacc.c" +void *__utac__get_this_arg(int i , struct JoinPoint *this ) +{ void *retValue_acc ; + unsigned long __cil_tmp4 ; + unsigned long __cil_tmp5 ; + int __cil_tmp6 ; + int __cil_tmp7 ; + unsigned long __cil_tmp8 ; + unsigned long __cil_tmp9 ; + void **__cil_tmp10 ; + void **__cil_tmp11 ; + int *mem_12 ; + void ***mem_13 ; + + { +#line 123 + if (i > 0) { + { +#line 123 + __cil_tmp4 = (unsigned long )this; +#line 123 + __cil_tmp5 = __cil_tmp4 + 16; +#line 123 + mem_12 = (int *)__cil_tmp5; +#line 123 + __cil_tmp6 = *mem_12; +#line 123 + if (i <= __cil_tmp6) { + + } else { + { +#line 123 + __assert_fail("i > 0 && i <= this->argsCount", "libacc.c", + 123U, "__utac__get_this_arg"); + } + } + } + } else { + { +#line 123 + __assert_fail("i > 0 && i <= this->argsCount", "libacc.c", + 123U, "__utac__get_this_arg"); + } + } +#line 870 "libacc.c" + __cil_tmp7 = i - 1; +#line 870 + __cil_tmp8 = (unsigned long )this; +#line 870 + __cil_tmp9 = __cil_tmp8 + 8; +#line 870 + mem_13 = (void ***)__cil_tmp9; +#line 870 + __cil_tmp10 = *mem_13; +#line 870 + __cil_tmp11 = __cil_tmp10 + __cil_tmp7; +#line 870 + retValue_acc = *__cil_tmp11; +#line 872 + return (retValue_acc); +#line 879 + return (retValue_acc); +} +} +#line 129 "libacc.c" +char const *__utac__get_this_argtype(int i , struct JoinPoint *this ) +{ char const *retValue_acc ; + unsigned long __cil_tmp4 ; + unsigned long __cil_tmp5 ; + int __cil_tmp6 ; + int __cil_tmp7 ; + unsigned long __cil_tmp8 ; + unsigned long __cil_tmp9 ; + char const **__cil_tmp10 ; + char const **__cil_tmp11 ; + int *mem_12 ; + char const ***mem_13 ; + + { +#line 131 + if (i > 0) { + { +#line 131 + __cil_tmp4 = (unsigned long )this; +#line 131 + __cil_tmp5 = __cil_tmp4 + 16; +#line 131 + mem_12 = (int *)__cil_tmp5; +#line 131 + __cil_tmp6 = *mem_12; +#line 131 + if (i <= __cil_tmp6) { + + } else { + { +#line 131 + __assert_fail("i > 0 && i <= this->argsCount", "libacc.c", + 131U, "__utac__get_this_argtype"); + } + } + } + } else { + { +#line 131 + __assert_fail("i > 0 && i <= this->argsCount", "libacc.c", + 131U, "__utac__get_this_argtype"); + } + } +#line 903 "libacc.c" + __cil_tmp7 = i - 1; +#line 903 + __cil_tmp8 = (unsigned long )this; +#line 903 + __cil_tmp9 = __cil_tmp8 + 24; +#line 903 + mem_13 = (char const ***)__cil_tmp9; +#line 903 + __cil_tmp10 = *mem_13; +#line 903 + __cil_tmp11 = __cil_tmp10 + __cil_tmp7; +#line 903 + retValue_acc = *__cil_tmp11; +#line 905 + return (retValue_acc); +#line 912 + return (retValue_acc); +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_STARTPALS_ActiveStandby_false-unreach-call.1.ufo.BOUNDED-10.pals.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_STARTPALS_ActiveStandby_false-unreach-call.1.ufo.BOUNDED-10.pals.c new file mode 100644 index 000000000..a65181d97 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_STARTPALS_ActiveStandby_false-unreach-call.1.ufo.BOUNDED-10.pals.c @@ -0,0 +1,677 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/********************************************************************** + +Copyright (c) 2013 Carnegie Mellon University. All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following acknowledgments and +disclaimers. + +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. + +3. The names "Carnegie Mellon University," "SEI" and/or "Software +Engineering Institute" shall not be used to endorse or promote +products derived from this software without prior written +permission. For written permission, please contact +permission@sei.cmu.edu. + +4. Products derived from this software may not be called "SEI" nor may +"SEI" appear in their names without prior written permission of +permission@sei.cmu.edu. + +5. Redistributions of any form whatsoever must retain the following +acknowledgment: + +This material is based upon work funded and supported by the +Department of Defense under Contract No. FA8721-05-C-0003 with +Carnegie Mellon University for the operation of the Software +Engineering Institute, a federally funded research and development +center. + +Any opinions, findings and conclusions or recommendations expressed in +this material are those of the author(s) and do not necessarily +reflect the views of the United States Department of Defense. + +NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING +INSTITUTE MATERIAL IS FURNISHEDON AN "AS-IS" BASIS. CARNEGIE MELLON +UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITHER EXPRESSED OR +IMPLIED, AS TO ANY MATTER INCLUDING, BUT NOT LIMITED TO, WARRANTY OF +FITNESS FOR PURPOSE OR MERCHANTABILITY, EXCLUSIVITY, OR RESULTS +OBTAINED FROM USE OF THE MATERIAL. CARNEGIE MELLON UNIVERSITY DOES NOT +MAKE ANY WARRANTY OF ANY KIND WITH RESPECT TO FREEDOM FROM PATENT, +TRADEMARK, OR COPYRIGHT INFRINGEMENT. + +This material has been approved for public release and unlimited +distribution. + +DM-0000575 + +**********************************************************************/ + +/* Generated by CIL v. 1.6.0 */ +/* print_CIL_Input is true */ + +char __VERIFIER_nondet_int8_t(void) ; +char __VERIFIER_nondet_msg_t(void) ; +_Bool __VERIFIER_nondet__Bool(void) ; +typedef char int8_t; +typedef int8_t msg_t; +typedef int port_t; +extern void read(port_t p , msg_t m ) ; +extern void write(port_t p , msg_t m ) ; +msg_t nomsg = (msg_t )-1; +port_t cs1 ; +int8_t cs1_old ; +int8_t cs1_new ; +port_t cs2 ; +int8_t cs2_old ; +int8_t cs2_new ; +port_t s1s2 ; +int8_t s1s2_old ; +int8_t s1s2_new ; +port_t s1s1 ; +int8_t s1s1_old ; +int8_t s1s1_new ; +port_t s2s1 ; +int8_t s2s1_old ; +int8_t s2s1_new ; +port_t s2s2 ; +int8_t s2s2_old ; +int8_t s2s2_new ; +port_t s1p ; +int8_t s1p_old ; +int8_t s1p_new ; +port_t s2p ; +int8_t s2p_old ; +int8_t s2p_new ; +extern _Bool __VERIFIER_nondet_bool() ; +extern char __VERIFIER_nondet_char() ; +_Bool side1Failed ; +_Bool side2Failed ; +msg_t side1_written ; +msg_t side2_written ; +void assert(_Bool arg ) ; +extern void __VERIFIER_assume(_Bool arg ) ; +static _Bool side1Failed_History_0 ; +static _Bool side1Failed_History_1 ; +static _Bool side1Failed_History_2 ; +static _Bool side2Failed_History_0 ; +static _Bool side2Failed_History_1 ; +static _Bool side2Failed_History_2 ; +static int8_t active_side_History_0 ; +static int8_t active_side_History_1 ; +static int8_t active_side_History_2 ; +static msg_t manual_selection_History_0 ; +static msg_t manual_selection_History_1 ; +static msg_t manual_selection_History_2 ; +void write_side1_failed_history(_Bool val ) +{ + + + { + side1Failed_History_2 = side1Failed_History_1; + side1Failed_History_1 = side1Failed_History_0; + side1Failed_History_0 = val; + return; +} +} +_Bool read_side1_failed_history(unsigned char index ) +{ + + + { + if ((int )index == 0) { + return (side1Failed_History_0); + } else + if ((int )index == 1) { + return (side1Failed_History_1); + } else + if ((int )index == 2) { + return (side1Failed_History_2); + } else { + assert((_Bool)0); + return ((_Bool)0); + } +} +} +void write_side2_failed_history(_Bool val ) +{ + + + { + side2Failed_History_2 = side2Failed_History_1; + side2Failed_History_1 = side2Failed_History_0; + side2Failed_History_0 = val; + return; +} +} +_Bool read_side2_failed_history(unsigned char index ) +{ + + + { + if ((int )index == 0) { + return (side2Failed_History_0); + } else + if ((int )index == 1) { + return (side2Failed_History_1); + } else + if ((int )index == 2) { + return (side2Failed_History_2); + } else { + assert((_Bool)0); + return ((_Bool)0); + } +} +} +void write_active_side_history(int8_t val ) +{ + + + { + active_side_History_2 = active_side_History_1; + active_side_History_1 = active_side_History_0; + active_side_History_0 = val; + return; +} +} +int8_t read_active_side_history(unsigned char index ) +{ + + + { + if ((int )index == 0) { + return (active_side_History_0); + } else + if ((int )index == 1) { + return (active_side_History_1); + } else + if ((int )index == 2) { + return (active_side_History_2); + } else { + assert((_Bool)0); + return ((int8_t )-2); + } +} +} +void write_manual_selection_history(msg_t val ) +{ + + + { + manual_selection_History_2 = manual_selection_History_1; + manual_selection_History_1 = manual_selection_History_0; + manual_selection_History_0 = val; + return; +} +} +msg_t read_manual_selection_history(unsigned char index ) +{ + + + { + if ((int )index == 0) { + return (manual_selection_History_0); + } else + if ((int )index == 1) { + return (manual_selection_History_1); + } else + if ((int )index == 2) { + return (manual_selection_History_2); + } else { + assert((_Bool)0); + return ((msg_t )0); + } +} +} +int init(void) +{ + + + { + if ((int )side1Failed_History_0 != 0) { + return (0); + } + if ((int )side2Failed_History_0 != 0) { + return (0); + } + if ((int )active_side_History_0 != -2) { + return (0); + } + if ((int )manual_selection_History_0 != 0) { + return (0); + } + if ((int )side1Failed_History_1 != 0) { + return (0); + } + if ((int )side2Failed_History_1 != 0) { + return (0); + } + if ((int )active_side_History_1 != -2) { + return (0); + } + if ((int )manual_selection_History_1 != 0) { + return (0); + } + if ((int )side1Failed_History_2 != 0) { + return (0); + } + if ((int )side2Failed_History_2 != 0) { + return (0); + } + if ((int )active_side_History_2 != -2) { + return (0); + } + if ((int )manual_selection_History_2 != 0) { + return (0); + } + return (1); +} +} +int8_t flip_the_side(int8_t side ) +{ + int tmp ; + + { + if ((int )side == 1) { + tmp = 0; + } else { + tmp = 1; + } + return ((int8_t )tmp); +} +} +void Console_task_each_pals_period(void) +{ + msg_t manual_selection ; + char tmp ; + + { + tmp = __VERIFIER_nondet_char(); + manual_selection = tmp; + write_manual_selection_history(manual_selection); + cs1_new = manual_selection != nomsg && cs1_new == nomsg ? manual_selection : cs1_new; + cs2_new = manual_selection != nomsg && cs2_new == nomsg ? manual_selection : cs2_new; + manual_selection = (msg_t )0; + return; +} +} +void Side1_activestandby_task_each_pals_period(void) +{ + int8_t side1 ; + int8_t side2 ; + msg_t manual_selection ; + int8_t next_state ; + + { + side1 = nomsg; + side2 = nomsg; + manual_selection = (msg_t )0; + side1Failed = __VERIFIER_nondet_bool(); + write_side1_failed_history(side1Failed); + if (side1Failed) { + s1s1_new = nomsg != nomsg && s1s1_new == nomsg ? nomsg : s1s1_new; + s1s2_new = nomsg != nomsg && s1s2_new == nomsg ? nomsg : s1s2_new; + s1p_new = nomsg != nomsg && s1p_new == nomsg ? nomsg : s1p_new; + side1_written = nomsg; + return; + } + side1 = s1s1_old; + s1s1_old = nomsg; + side2 = s2s1_old; + s2s1_old = nomsg; + manual_selection = cs1_old; + cs1_old = nomsg; + if ((int )side1 == (int )side2) { + next_state = (int8_t )1; + } else + if ((int )side1 == (int )nomsg) { + if ((int )side2 != (int )nomsg) { + next_state = (int8_t )0; + } else { + goto _L___0; + } + } else + _L___0: /* CIL Label */ + if ((int )side1 != (int )nomsg) { + if ((int )side2 == (int )nomsg) { + next_state = (int8_t )1; + } else { + goto _L; + } + } else + _L: /* CIL Label */ + if ((int )manual_selection == 1) { + next_state = flip_the_side(side1); + } else { + next_state = side1; + } + s1s1_new = next_state != nomsg && s1s1_new == nomsg ? next_state : s1s1_new; + s1s2_new = next_state != nomsg && s1s2_new == nomsg ? next_state : s1s2_new; + s1p_new = next_state != nomsg && s1p_new == nomsg ? next_state : s1p_new; + side1_written = next_state; + return; +} +} +void Side2_activestandby_task_each_pals_period(void) +{ + int8_t side1 ; + int8_t side2 ; + msg_t manual_selection ; + int8_t next_state ; + + { + side1 = nomsg; + side2 = nomsg; + manual_selection = (msg_t )0; + side2Failed = __VERIFIER_nondet_bool(); + write_side2_failed_history(side2Failed); + if (side2Failed) { + s2s1_new = nomsg != nomsg && s2s1_new == nomsg ? nomsg : s2s1_new; + s2s2_new = nomsg != nomsg && s2s2_new == nomsg ? nomsg : s2s2_new; + s2p_new = nomsg != nomsg && s2p_new == nomsg ? nomsg : s2p_new; + side2_written = nomsg; + return; + } + side1 = s1s2_old; + s1s2_old = nomsg; + side2 = s2s2_old; + s2s2_old = nomsg; + manual_selection = cs2_old; + cs2_old = nomsg; + if ((int )side1 == (int )side2) { + next_state = (int8_t )1; + } else + if ((int )side2 == (int )nomsg) { + if ((int )side1 != (int )nomsg) { + next_state = (int8_t )0; + } else { + goto _L___0; + } + } else + _L___0: /* CIL Label */ + if ((int )side2 != (int )nomsg) { + if ((int )side1 == (int )nomsg) { + next_state = (int8_t )1; + } else { + goto _L; + } + } else + _L: /* CIL Label */ + if ((int )manual_selection == 1) { + next_state = flip_the_side(side2); + } else { + next_state = side2; + } + s2s1_new = next_state != nomsg && s2s1_new == nomsg ? next_state : s2s1_new; + s2s2_new = next_state != nomsg && s2s2_new == nomsg ? next_state : s2s2_new; + s2p_new = next_state != nomsg && s2p_new == nomsg ? next_state : s2p_new; + side2_written = next_state; + return; +} +} +void Pendulum_prism_task_each_pals_period(void) +{ + int8_t active_side ; + int8_t tmp ; + int8_t side1 ; + int8_t side2 ; + + { + tmp = read_active_side_history((unsigned char)0); + active_side = tmp; + side1 = nomsg; + side2 = nomsg; + side1 = s1p_old; + s1p_old = nomsg; + side2 = s2p_old; + s2p_old = nomsg; + if ((int )side1 == 1) { + active_side = (int8_t )1; + } else + if ((int )side2 == 1) { + active_side = (int8_t )2; + } else + if ((int )side1 == 0) { + if ((int )side2 == (int )nomsg) { + active_side = (int8_t )1; + } else { + goto _L; + } + } else + _L: /* CIL Label */ + if ((int )side1 == (int )nomsg) { + if ((int )side2 == 0) { + active_side = (int8_t )2; + } else { + active_side = (int8_t )0; + } + } else { + active_side = (int8_t )0; + } + write_active_side_history(active_side); + return; +} +} +void (*nodes[4])(void) = { & Console_task_each_pals_period, & Side1_activestandby_task_each_pals_period, & Side2_activestandby_task_each_pals_period, & Pendulum_prism_task_each_pals_period}; +int check(void) +{ + int tmp ; + msg_t tmp___0 ; + _Bool tmp___1 ; + _Bool tmp___2 ; + _Bool tmp___3 ; + _Bool tmp___4 ; + int8_t tmp___5 ; + _Bool tmp___6 ; + _Bool tmp___7 ; + _Bool tmp___8 ; + int8_t tmp___9 ; + _Bool tmp___10 ; + _Bool tmp___11 ; + _Bool tmp___12 ; + msg_t tmp___13 ; + _Bool tmp___14 ; + _Bool tmp___15 ; + _Bool tmp___16 ; + _Bool tmp___17 ; + int8_t tmp___18 ; + int8_t tmp___19 ; + int8_t tmp___20 ; + + { + if (! side1Failed) { + tmp = 1; + } else + if (! side2Failed) { + tmp = 1; + } else { + tmp = 0; + } + __VERIFIER_assume((_Bool )tmp); + tmp___0 = read_manual_selection_history((unsigned char)1); + if (! tmp___0) { + tmp___1 = read_side1_failed_history((unsigned char)1); + if (! tmp___1) { + tmp___2 = read_side1_failed_history((unsigned char)0); + if (! tmp___2) { + tmp___3 = read_side2_failed_history((unsigned char)1); + if (! tmp___3) { + tmp___4 = read_side2_failed_history((unsigned char)0); + if (! tmp___4) { + if (! ((int )side1_written == 1)) { + if (! ((int )side1_written == 0)) { + return (0); + } + } + if (! (! ((int )side1_written == 0))) { + if (! ((int )side2_written == 1)) { + return (0); + } + } + if (! (! ((int )side1_written == 1))) { + if (! ((int )side2_written == 0)) { + return (0); + } + } + } + } + } + } + } + tmp___7 = read_side1_failed_history((unsigned char)1); + if (tmp___7) { + tmp___8 = read_side2_failed_history((unsigned char)1); + if (! tmp___8) { + tmp___5 = read_active_side_history((unsigned char)0); + if (! ((int )tmp___5 == 2)) { + return (0); + } + tmp___6 = read_side2_failed_history((unsigned char)0); + if (! tmp___6) { + if (! ((int )side2_written == 1)) { + return (0); + } + } + } + } + tmp___11 = read_side1_failed_history((unsigned char)1); + if (! tmp___11) { + tmp___12 = read_side2_failed_history((unsigned char)1); + if (tmp___12) { + tmp___9 = read_active_side_history((unsigned char)0); + if (! ((int )tmp___9 == 1)) { + return (0); + } + tmp___10 = read_side1_failed_history((unsigned char)0); + if (! tmp___10) { + if (! ((int )side1_written == 1)) { + return (0); + } + } + } + } + tmp___20 = read_active_side_history((unsigned char)2); + if ((int )tmp___20 > -2) { + tmp___13 = read_manual_selection_history((unsigned char)2); + if (! tmp___13) { + tmp___14 = read_side1_failed_history((unsigned char)2); + tmp___15 = read_side1_failed_history((unsigned char)1); + if ((int )tmp___14 == (int )tmp___15) { + tmp___16 = read_side2_failed_history((unsigned char)2); + tmp___17 = read_side2_failed_history((unsigned char)1); + if ((int )tmp___16 == (int )tmp___17) { + tmp___18 = read_active_side_history((unsigned char)1); + tmp___19 = read_active_side_history((unsigned char)0); + if (! ((int )tmp___18 == (int )tmp___19)) { + return (0); + } + } + } + } + } + return (1); +} +} +int main(void) +{ + int c1 ; + int i2 ; + + { + c1 = 0; + side1Failed = __VERIFIER_nondet__Bool(); + side2Failed = __VERIFIER_nondet__Bool(); + side1_written = __VERIFIER_nondet_msg_t(); + side2_written = __VERIFIER_nondet_msg_t(); + side1Failed_History_0 = __VERIFIER_nondet__Bool(); + side1Failed_History_1 = __VERIFIER_nondet__Bool(); + side1Failed_History_2 = __VERIFIER_nondet__Bool(); + side2Failed_History_0 = __VERIFIER_nondet__Bool(); + side2Failed_History_1 = __VERIFIER_nondet__Bool(); + side2Failed_History_2 = __VERIFIER_nondet__Bool(); + active_side_History_0 = __VERIFIER_nondet_int8_t(); + active_side_History_1 = __VERIFIER_nondet_int8_t(); + active_side_History_2 = __VERIFIER_nondet_int8_t(); + manual_selection_History_0 = __VERIFIER_nondet_msg_t(); + manual_selection_History_1 = __VERIFIER_nondet_msg_t(); + manual_selection_History_2 = __VERIFIER_nondet_msg_t(); + i2 = init(); + __VERIFIER_assume(i2); + cs1_old = nomsg; + cs1_new = nomsg; + cs2_old = nomsg; + cs2_new = nomsg; + s1s2_old = nomsg; + s1s2_new = nomsg; + s1s1_old = nomsg; + s1s1_new = nomsg; + s2s1_old = nomsg; + s2s1_new = nomsg; + s2s2_old = nomsg; + s2s2_new = nomsg; + s1p_old = nomsg; + s1p_new = nomsg; + s2p_old = nomsg; + s2p_new = nomsg; + i2 = 0; + while (i2 < 10) { + { + Console_task_each_pals_period(); + Side1_activestandby_task_each_pals_period(); + Side2_activestandby_task_each_pals_period(); + Pendulum_prism_task_each_pals_period(); + cs1_old = cs1_new; + cs1_new = nomsg; + cs2_old = cs2_new; + cs2_new = nomsg; + s1s2_old = s1s2_new; + s1s2_new = nomsg; + s1s1_old = s1s1_new; + s1s1_new = nomsg; + s2s1_old = s2s1_new; + s2s1_new = nomsg; + s2s2_old = s2s2_new; + s2s2_new = nomsg; + s1p_old = s1p_new; + s1p_new = nomsg; + s2p_old = s2p_new; + s2p_new = nomsg; + c1 = check(); + assert(c1); + i2 ++; + } + } +} +} +void __VERIFIER_assume(_Bool arg ) +{ + + + { + while (! arg) { + { + + } + } +} +} +void assert(_Bool arg ) +{ + + + { + if (! arg) { + { + ERROR: __VERIFIER_error(); + } + } +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_STARTPALS_Triplicated_false-unreach-call.1.ufo.BOUNDED-10.pals.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_STARTPALS_Triplicated_false-unreach-call.1.ufo.BOUNDED-10.pals.c new file mode 100644 index 000000000..b2c3d6c2b --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_STARTPALS_Triplicated_false-unreach-call.1.ufo.BOUNDED-10.pals.c @@ -0,0 +1,596 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/********************************************************************** + +Copyright (c) 2013 Carnegie Mellon University. All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following acknowledgments and +disclaimers. + +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. + +3. The names "Carnegie Mellon University," "SEI" and/or "Software +Engineering Institute" shall not be used to endorse or promote +products derived from this software without prior written +permission. For written permission, please contact +permission@sei.cmu.edu. + +4. Products derived from this software may not be called "SEI" nor may +"SEI" appear in their names without prior written permission of +permission@sei.cmu.edu. + +5. Redistributions of any form whatsoever must retain the following +acknowledgment: + +This material is based upon work funded and supported by the +Department of Defense under Contract No. FA8721-05-C-0003 with +Carnegie Mellon University for the operation of the Software +Engineering Institute, a federally funded research and development +center. + +Any opinions, findings and conclusions or recommendations expressed in +this material are those of the author(s) and do not necessarily +reflect the views of the United States Department of Defense. + +NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING +INSTITUTE MATERIAL IS FURNISHEDON AN "AS-IS" BASIS. CARNEGIE MELLON +UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITHER EXPRESSED OR +IMPLIED, AS TO ANY MATTER INCLUDING, BUT NOT LIMITED TO, WARRANTY OF +FITNESS FOR PURPOSE OR MERCHANTABILITY, EXCLUSIVITY, OR RESULTS +OBTAINED FROM USE OF THE MATERIAL. CARNEGIE MELLON UNIVERSITY DOES NOT +MAKE ANY WARRANTY OF ANY KIND WITH RESPECT TO FREEDOM FROM PATENT, +TRADEMARK, OR COPYRIGHT INFRINGEMENT. + +This material has been approved for public release and unlimited +distribution. + +DM-0000575 + +**********************************************************************/ + +/* Generated by CIL v. 1.6.0 */ +/* print_CIL_Input is true */ + +char __VERIFIER_nondet_msg_t(void) ; +_Bool __VERIFIER_nondet__Bool(void) ; +typedef char int8_t; +typedef int8_t msg_t; +typedef int port_t; +extern void read(port_t p , msg_t m ) ; +extern void write(port_t p , msg_t m ) ; +msg_t nomsg = (msg_t )-1; +port_t g1v ; +int8_t g1v_old ; +int8_t g1v_new ; +port_t g2v ; +int8_t g2v_old ; +int8_t g2v_new ; +port_t g3v ; +int8_t g3v_old ; +int8_t g3v_new ; +extern _Bool __VERIFIER_nondet_bool() ; +extern msg_t __VERIFIER_nondet_int8_t() ; +extern void __VERIFIER_assume(_Bool arg ) ; +_Bool gate1Failed ; +_Bool gate2Failed ; +_Bool gate3Failed ; +msg_t VALUE1 ; +msg_t VALUE2 ; +msg_t VALUE3 ; +void assert(_Bool arg ) ; +_Bool gate1Failed_History_0 ; +_Bool gate1Failed_History_1 ; +_Bool gate1Failed_History_2 ; +_Bool gate2Failed_History_0 ; +_Bool gate2Failed_History_1 ; +_Bool gate2Failed_History_2 ; +_Bool gate3Failed_History_0 ; +_Bool gate3Failed_History_1 ; +_Bool gate3Failed_History_2 ; +int8_t votedValue_History_0 ; +int8_t votedValue_History_1 ; +int8_t votedValue_History_2 ; +_Bool read_history_bool(int history_id , int historyIndex ) ; +int8_t read_history_int8(int history_id , int historyIndex ) ; +int add_history_type(int history_id ) +{ + _Bool ini_bool ; + int8_t ini_int ; + int var ; + int tmp ; + int tmp___0 ; + int tmp___1 ; + int tmp___2 ; + + { + ini_bool = (_Bool)0; + ini_int = (int8_t )-2; + var = 0; + while (var < 3) { + if (history_id == 0) { + tmp = (int )read_history_bool(0, 0); + if (! (tmp == (int )ini_bool)) { + return (0); + } + } else + if (history_id == 1) { + tmp___0 = (int )read_history_bool(1, 0); + if (! (tmp___0 == (int )ini_bool)) { + return (0); + } + } else + if (history_id == 2) { + tmp___1 = (int )read_history_bool(2, 0); + if (! (tmp___1 == (int )ini_bool)) { + return (0); + } + } else + if (history_id == 3) { + tmp___2 = (int )read_history_int8(3, 0); + if (! (tmp___2 == (int )ini_int)) { + return (0); + } + } + var ++; + } + return (1); +} +} +int8_t read_history_int8(int history_id , int historyIndex ) +{ + + + { + if (history_id == 3) { + if (historyIndex == 0) { + return (votedValue_History_0); + } else + if (historyIndex == 1) { + return (votedValue_History_1); + } else { + return (votedValue_History_2); + } + } else { + assert((_Bool)0); + } + return ((int8_t )-2); +} +} +_Bool read_history_bool(int history_id , int historyIndex ) +{ + + + { + if (history_id == 0) { + if (historyIndex == 0) { + return (gate1Failed_History_0); + } else + if (historyIndex == 1) { + return (gate1Failed_History_1); + } else { + return (gate1Failed_History_2); + } + } else + if (history_id == 1) { + if (historyIndex == 0) { + return (gate2Failed_History_0); + } else + if (historyIndex == 1) { + return (gate2Failed_History_1); + } else { + return (gate2Failed_History_2); + } + } else + if (history_id == 2) { + if (historyIndex == 0) { + return (gate3Failed_History_0); + } else + if (historyIndex == 1) { + return (gate3Failed_History_1); + } else { + return (gate3Failed_History_2); + } + } else { + assert((_Bool)0); + } + return ((_Bool)0); +} +} +void write_history_int8(int history_id , int8_t buf ) +{ + + + { + if (history_id == 3) { + votedValue_History_2 = votedValue_History_1; + votedValue_History_1 = votedValue_History_0; + votedValue_History_0 = buf; + } else { + assert((_Bool)0); + } + return; +} +} +void write_history_bool(int history_id , _Bool buf ) +{ + + + { + if (history_id == 0) { + gate1Failed_History_2 = gate1Failed_History_1; + gate1Failed_History_1 = gate1Failed_History_0; + gate1Failed_History_0 = buf; + } else + if (history_id == 1) { + gate2Failed_History_2 = gate2Failed_History_1; + gate2Failed_History_1 = gate2Failed_History_0; + gate2Failed_History_0 = buf; + } else + if (history_id == 2) { + gate3Failed_History_2 = gate3Failed_History_1; + gate3Failed_History_1 = gate3Failed_History_0; + gate3Failed_History_0 = buf; + } else { + assert((_Bool)0); + } + return; +} +} +int init(void) +{ + int tmp ; + int tmp___0 ; + int tmp___1 ; + int tmp___2 ; + + { + tmp = add_history_type(0); + if (! tmp) { + return (0); + } + tmp___0 = add_history_type(1); + if (! tmp___0) { + return (0); + } + tmp___1 = add_history_type(2); + if (! tmp___1) { + return (0); + } + tmp___2 = add_history_type(3); + if (! tmp___2) { + return (0); + } + return (1); +} +} +int check(void) +{ + int tmp ; + int temp_count ; + int8_t tmp___0 ; + int8_t tmp___1 ; + int8_t tmp___2 ; + _Bool tmp___3 ; + _Bool tmp___4 ; + _Bool tmp___5 ; + int8_t tmp___6 ; + _Bool tmp___7 ; + _Bool tmp___8 ; + _Bool tmp___9 ; + int8_t tmp___10 ; + int8_t tmp___11 ; + int8_t tmp___12 ; + int8_t tmp___13 ; + int8_t tmp___14 ; + + { + if (! gate1Failed) { + tmp = 1; + } else + if (! gate2Failed) { + tmp = 1; + } else + if (! gate3Failed) { + tmp = 1; + } else { + tmp = 0; + } + __VERIFIER_assume((_Bool )tmp); + tmp___3 = read_history_bool(0, 1); + if (! tmp___3) { + tmp___4 = read_history_bool(1, 1); + if (! tmp___4) { + tmp___5 = read_history_bool(2, 1); + if (! tmp___5) { + temp_count = 0; + tmp___0 = read_history_int8(3, 0); + if ((int )VALUE1 == (int )tmp___0) { + temp_count ++; + } + tmp___1 = read_history_int8(3, 0); + if ((int )VALUE2 == (int )tmp___1) { + temp_count ++; + } + tmp___2 = read_history_int8(3, 0); + if ((int )VALUE3 == (int )tmp___2) { + temp_count ++; + } + if ((int )VALUE1 != (int )VALUE2) { + if ((int )VALUE1 != (int )VALUE3) { + if ((int )VALUE2 != (int )VALUE3) { + if (! (temp_count == 1)) { + return (0); + } + } else { + goto _L___0; + } + } else { + goto _L___0; + } + } else + _L___0: /* CIL Label */ + if (! (temp_count > 1)) { + return (0); + } + } + } + } + tmp___10 = read_history_int8(3, 1); + if ((int )tmp___10 > -2) { + tmp___6 = read_history_int8(3, 0); + if ((int )tmp___6 == (int )nomsg) { + tmp___7 = read_history_bool(0, 1); + if (tmp___7) { + tmp___8 = read_history_bool(1, 1); + if (tmp___8) { + tmp___9 = read_history_bool(2, 1); + if (! tmp___9) { + return (0); + } + } else { + return (0); + } + } else { + return (0); + } + } + } + tmp___11 = read_history_int8(3, 0); + if ((int )tmp___11 != (int )nomsg) { + tmp___12 = read_history_int8(3, 0); + if (! ((int )VALUE1 == (int )tmp___12)) { + tmp___13 = read_history_int8(3, 0); + if (! ((int )VALUE2 == (int )tmp___13)) { + tmp___14 = read_history_int8(3, 0); + if (! ((int )VALUE3 == (int )tmp___14)) { + return (0); + } + } + } + } + return (1); +} +} +void gate1_each_pals_period(void) +{ + int8_t next_state ; + msg_t tmp ; + int tmp___0 ; + + { + gate1Failed = __VERIFIER_nondet_bool(); + write_history_bool(0, gate1Failed); + if (gate1Failed) { + g1v_new = nomsg != nomsg && g1v_new == nomsg ? nomsg : g1v_new; + return; + } + tmp = __VERIFIER_nondet_int8_t(); + next_state = tmp; + if ((int )next_state == 0) { + tmp___0 = 1; + } else + if ((int )next_state == 1) { + tmp___0 = 1; + } else + if ((int )next_state == 2) { + tmp___0 = 1; + } else { + tmp___0 = 0; + } + __VERIFIER_assume((_Bool )tmp___0); + g1v_new = next_state != nomsg && g1v_new == nomsg ? next_state : g1v_new; + return; +} +} +void gate2_each_pals_period(void) +{ + int8_t next_state ; + msg_t tmp ; + int tmp___0 ; + + { + gate2Failed = __VERIFIER_nondet_bool(); + write_history_bool(1, gate2Failed); + if (gate2Failed) { + g2v_new = nomsg != nomsg && g2v_new == nomsg ? nomsg : g2v_new; + return; + } + tmp = __VERIFIER_nondet_int8_t(); + next_state = tmp; + if ((int )next_state == 0) { + tmp___0 = 1; + } else + if ((int )next_state == 1) { + tmp___0 = 1; + } else + if ((int )next_state == 2) { + tmp___0 = 1; + } else { + tmp___0 = 0; + } + __VERIFIER_assume((_Bool )tmp___0); + g2v_new = next_state != nomsg && g2v_new == nomsg ? next_state : g2v_new; + return; +} +} +void gate3_each_pals_period(void) +{ + int8_t next_state ; + msg_t tmp ; + int tmp___0 ; + + { + gate3Failed = __VERIFIER_nondet_bool(); + write_history_bool(2, gate3Failed); + if (gate3Failed) { + g3v_new = nomsg != nomsg && g3v_new == nomsg ? nomsg : g3v_new; + return; + } + tmp = __VERIFIER_nondet_int8_t(); + next_state = tmp; + if ((int )next_state == 0) { + tmp___0 = 1; + } else + if ((int )next_state == 1) { + tmp___0 = 1; + } else + if ((int )next_state == 2) { + tmp___0 = 1; + } else { + tmp___0 = 0; + } + __VERIFIER_assume((_Bool )tmp___0); + g3v_new = next_state != nomsg && g3v_new == nomsg ? next_state : g3v_new; + return; +} +} +void voter(void) +{ + int8_t voted_value ; + + { + voted_value = nomsg; + VALUE1 = g1v_old; + g1v_old = nomsg; + VALUE2 = g2v_old; + g2v_old = nomsg; + VALUE3 = g3v_old; + g3v_old = nomsg; + if ((int )VALUE1 == (int )VALUE2) { + voted_value = VALUE1; + } else + if ((int )VALUE1 == (int )VALUE3) { + if ((int )VALUE1 == (int )nomsg) { + voted_value = VALUE2; + } else { + voted_value = VALUE1; + } + } else + if ((int )VALUE2 == (int )VALUE3) { + voted_value = VALUE2; + if ((int )VALUE2 == (int )nomsg) { + voted_value = VALUE1; + } else { + voted_value = VALUE2; + } + } else + if ((int )VALUE1 != (int )nomsg) { + voted_value = VALUE1; + } else + if ((int )VALUE2 != (int )nomsg) { + voted_value = VALUE2; + } else + if ((int )VALUE3 != (int )nomsg) { + voted_value = VALUE3; + } else { + assert((_Bool)0); + } + write_history_int8(3, voted_value); + return; +} +} +void (*nodes[4])(void) = { & gate1_each_pals_period, & gate2_each_pals_period, & gate3_each_pals_period, & voter}; +int main(void) +{ + int c1 ; + int i2 ; + + { + c1 = 0; + gate1Failed = __VERIFIER_nondet__Bool(); + gate2Failed = __VERIFIER_nondet__Bool(); + gate3Failed = __VERIFIER_nondet__Bool(); + VALUE1 = __VERIFIER_nondet_msg_t(); + VALUE2 = __VERIFIER_nondet_msg_t(); + VALUE3 = __VERIFIER_nondet_msg_t(); + gate1Failed_History_0 = __VERIFIER_nondet__Bool(); + gate1Failed_History_1 = __VERIFIER_nondet__Bool(); + gate1Failed_History_2 = __VERIFIER_nondet__Bool(); + gate2Failed_History_0 = __VERIFIER_nondet__Bool(); + gate2Failed_History_1 = __VERIFIER_nondet__Bool(); + gate2Failed_History_2 = __VERIFIER_nondet__Bool(); + gate3Failed_History_0 = __VERIFIER_nondet__Bool(); + gate3Failed_History_1 = __VERIFIER_nondet__Bool(); + gate3Failed_History_2 = __VERIFIER_nondet__Bool(); + votedValue_History_0 = __VERIFIER_nondet_int8_t(); + votedValue_History_1 = __VERIFIER_nondet_int8_t(); + votedValue_History_2 = __VERIFIER_nondet_int8_t(); + i2 = init(); + __VERIFIER_assume(i2); + g1v_old = nomsg; + g1v_new = nomsg; + g2v_old = nomsg; + g2v_new = nomsg; + g3v_old = nomsg; + g3v_new = nomsg; + i2 = 0; + while (i2 < 10) { + { + gate1_each_pals_period(); + gate2_each_pals_period(); + gate3_each_pals_period(); + voter(); + g1v_old = g1v_new; + g1v_new = nomsg; + g2v_old = g2v_new; + g2v_new = nomsg; + g3v_old = g3v_new; + g3v_new = nomsg; + c1 = check(); + assert(c1); + i2 ++; + } + } +} +} +void __VERIFIER_assume(_Bool arg ) +{ + + + { + while (! arg) { + { + + } + } +} +} +void assert(_Bool arg ) +{ + + + { + if (! arg) { + { + ERROR: __VERIFIER_error(); + } + } +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_floodmax.3_false-unreach-call.1.ufo.BOUNDED-6.pals.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_floodmax.3_false-unreach-call.1.ufo.BOUNDED-6.pals.c new file mode 100644 index 000000000..dd492da73 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_floodmax.3_false-unreach-call.1.ufo.BOUNDED-6.pals.c @@ -0,0 +1,592 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/********************************************************************** + +Copyright (c) 2013 Carnegie Mellon University. All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following acknowledgments and +disclaimers. + +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. + +3. The names "Carnegie Mellon University," "SEI" and/or "Software +Engineering Institute" shall not be used to endorse or promote +products derived from this software without prior written +permission. For written permission, please contact +permission@sei.cmu.edu. + +4. Products derived from this software may not be called "SEI" nor may +"SEI" appear in their names without prior written permission of +permission@sei.cmu.edu. + +5. Redistributions of any form whatsoever must retain the following +acknowledgment: + +This material is based upon work funded and supported by the +Department of Defense under Contract No. FA8721-05-C-0003 with +Carnegie Mellon University for the operation of the Software +Engineering Institute, a federally funded research and development +center. + +Any opinions, findings and conclusions or recommendations expressed in +this material are those of the author(s) and do not necessarily +reflect the views of the United States Department of Defense. + +NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING +INSTITUTE MATERIAL IS FURNISHEDON AN "AS-IS" BASIS. CARNEGIE MELLON +UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITHER EXPRESSED OR +IMPLIED, AS TO ANY MATTER INCLUDING, BUT NOT LIMITED TO, WARRANTY OF +FITNESS FOR PURPOSE OR MERCHANTABILITY, EXCLUSIVITY, OR RESULTS +OBTAINED FROM USE OF THE MATERIAL. CARNEGIE MELLON UNIVERSITY DOES NOT +MAKE ANY WARRANTY OF ANY KIND WITH RESPECT TO FREEDOM FROM PATENT, +TRADEMARK, OR COPYRIGHT INFRINGEMENT. + +This material has been approved for public release and unlimited +distribution. + +DM-0000575 + +**********************************************************************/ + +/* Generated by CIL v. 1.6.0 */ +/* print_CIL_Input is true */ + +char __VERIFIER_nondet_char(void) ; +_Bool __VERIFIER_nondet__Bool(void) ; +void assert(_Bool arg ) ; +void __VERIFIER_assume(_Bool arg ) ; +typedef char msg_t; +typedef int port_t; +extern void read(port_t p , msg_t m ) ; +extern void write(port_t p , msg_t m ) ; +msg_t nomsg = (msg_t )-1; +port_t p12 ; +char p12_old ; +char p12_new ; +_Bool ep12 ; +port_t p13 ; +char p13_old ; +char p13_new ; +_Bool ep13 ; +port_t p21 ; +char p21_old ; +char p21_new ; +_Bool ep21 ; +port_t p23 ; +char p23_old ; +char p23_new ; +_Bool ep23 ; +port_t p31 ; +char p31_old ; +char p31_new ; +_Bool ep31 ; +port_t p32 ; +char p32_old ; +char p32_new ; +_Bool ep32 ; +char id1 ; +char r1 ; +char st1 ; +char nl1 ; +char m1 ; +char max1 ; +_Bool mode1 ; +char id2 ; +char r2 ; +char st2 ; +char nl2 ; +char m2 ; +char max2 ; +_Bool mode2 ; +char id3 ; +char r3 ; +char st3 ; +char nl3 ; +char m3 ; +char max3 ; +_Bool mode3 ; +void node1(void) +{ + + + { + if (mode1) { + r1 = (char )((int )r1 + 1); + if (ep21) { + m1 = p21_old; + p21_old = nomsg; + if ((int )m1 > (int )max1) { + max1 = m1; + } + } + if (ep31) { + m1 = p31_old; + p31_old = nomsg; + if ((int )m1 > (int )max1) { + max1 = m1; + } + } + if ((int )r1 == 2) { + if ((int )max1 == (int )id1) { + st1 = (char)1; + } else { + nl1 = (char)1; + } + } + mode1 = (_Bool)0; + } else { + if ((int )r1 < 2) { + if (ep12) { + p12_new = max1 != nomsg && p12_new == nomsg ? max1 : p12_new; + } + if (ep13) { + p13_new = max1 != nomsg && p13_new == nomsg ? max1 : p13_new; + } + } + mode1 = (_Bool)1; + } + return; +} +} +void node2(void) +{ + + + { + if (mode2) { + r2 = (char )((int )r2 + 1); + if (ep12) { + m2 = p12_old; + p12_old = nomsg; + if ((int )m2 > (int )max2) { + max2 = m2; + } + } + if (ep32) { + m2 = p32_old; + p32_old = nomsg; + if ((int )m2 > (int )max2) { + max2 = m2; + } + } + if ((int )r2 == 2) { + if ((int )max2 == (int )id2) { + st2 = (char)1; + } else { + nl2 = (char)1; + } + } + mode2 = (_Bool)0; + } else { + if ((int )r2 < 2) { + if (ep21) { + p21_new = max2 != nomsg && p21_new == nomsg ? max2 : p21_new; + } + if (ep23) { + p23_new = max2 != nomsg && p23_new == nomsg ? max2 : p23_new; + } + } + mode2 = (_Bool)1; + } + return; +} +} +void node3(void) +{ + + + { + if (mode3) { + r3 = (char )((int )r3 + 1); + if (ep13) { + m3 = p13_old; + p13_old = nomsg; + if ((int )m3 > (int )max3) { + max3 = m3; + } + } + if (ep23) { + m3 = p23_old; + p23_old = nomsg; + if ((int )m3 > (int )max3) { + max3 = m3; + } + } + if ((int )r3 == 2) { + if ((int )max3 == (int )id3) { + st3 = (char)1; + } else { + nl3 = (char)1; + } + } + mode3 = (_Bool)0; + } else { + if ((int )r3 < 2) { + if (ep31) { + p31_new = max3 != nomsg && p31_new == nomsg ? max3 : p31_new; + } + if (ep32) { + p32_new = max3 != nomsg && p32_new == nomsg ? max3 : p32_new; + } + } + mode3 = (_Bool)1; + } + return; +} +} +void (*nodes[3])(void) = { & node1, & node2, & node3}; +int init(void) +{ + _Bool r121 ; + _Bool r131 ; + _Bool r211 ; + _Bool r231 ; + _Bool r311 ; + _Bool r321 ; + _Bool r122 ; + int tmp ; + _Bool r132 ; + int tmp___0 ; + _Bool r212 ; + int tmp___1 ; + _Bool r232 ; + int tmp___2 ; + _Bool r312 ; + int tmp___3 ; + _Bool r322 ; + int tmp___4 ; + int tmp___5 ; + + { + r121 = ep12; + r131 = ep13; + r211 = ep21; + r231 = ep23; + r311 = ep31; + r321 = ep32; + if (r121) { + tmp = 1; + } else + if (r131) { + if (ep32) { + tmp = 1; + } else { + tmp = 0; + } + } else { + tmp = 0; + } + r122 = (_Bool )tmp; + if (r131) { + tmp___0 = 1; + } else + if (r121) { + if (ep23) { + tmp___0 = 1; + } else { + tmp___0 = 0; + } + } else { + tmp___0 = 0; + } + r132 = (_Bool )tmp___0; + if (r211) { + tmp___1 = 1; + } else + if (r231) { + if (ep31) { + tmp___1 = 1; + } else { + tmp___1 = 0; + } + } else { + tmp___1 = 0; + } + r212 = (_Bool )tmp___1; + if (r231) { + tmp___2 = 1; + } else + if (r211) { + if (ep13) { + tmp___2 = 1; + } else { + tmp___2 = 0; + } + } else { + tmp___2 = 0; + } + r232 = (_Bool )tmp___2; + if (r311) { + tmp___3 = 1; + } else + if (r321) { + if (ep21) { + tmp___3 = 1; + } else { + tmp___3 = 0; + } + } else { + tmp___3 = 0; + } + r312 = (_Bool )tmp___3; + if (r321) { + tmp___4 = 1; + } else + if (r311) { + if (ep12) { + tmp___4 = 1; + } else { + tmp___4 = 0; + } + } else { + tmp___4 = 0; + } + r322 = (_Bool )tmp___4; + if ((int )id1 != (int )id2) { + if ((int )id1 != (int )id3) { + if ((int )id2 != (int )id3) { + if ((int )id1 >= 0) { + if ((int )id2 >= 0) { + if ((int )id3 >= 0) { + if ((int )r1 == 0) { + if ((int )r2 == 0) { + if ((int )r3 == 0) { + if ((int )max1 == (int )id1) { + if ((int )max2 == (int )id2) { + if ((int )max3 == (int )id3) { + if ((int )st1 == 0) { + if ((int )st2 == 0) { + if ((int )st3 == 0) { + if ((int )nl1 == 0) { + if ((int )nl2 == 0) { + if ((int )nl3 == 0) { + if ((int )mode1 == 0) { + if ((int )mode2 == 0) { + if ((int )mode3 == 0) { + tmp___5 = 1; + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + return (tmp___5); +} +} +int check(void) +{ + int tmp ; + + { + if (((int )st1 + (int )st2) + (int )st3 <= 1) { + if ((int )st1 + (int )nl1 <= 1) { + if ((int )st2 + (int )nl2 <= 1) { + if ((int )st3 + (int )nl3 <= 1) { + if ((int )r1 >= 2) { + goto _L___1; + } else + if (((int )st1 + (int )st2) + (int )st3 == 0) { + _L___1: /* CIL Label */ + if ((int )r1 < 2) { + goto _L___0; + } else + if (((int )st1 + (int )st2) + (int )st3 == 1) { + _L___0: /* CIL Label */ + if ((int )r1 >= 2) { + goto _L; + } else + if (((int )nl1 + (int )nl2) + (int )nl3 == 0) { + _L: /* CIL Label */ + if ((int )r1 < 2) { + tmp = 1; + } else + if (((int )nl1 + (int )nl2) + (int )nl3 == 2) { + tmp = 1; + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + return (tmp); +} +} +int main(void) +{ + int c1 ; + int i2 ; + + { + c1 = 0; + ep12 = __VERIFIER_nondet__Bool(); + ep13 = __VERIFIER_nondet__Bool(); + ep21 = __VERIFIER_nondet__Bool(); + ep23 = __VERIFIER_nondet__Bool(); + ep31 = __VERIFIER_nondet__Bool(); + ep32 = __VERIFIER_nondet__Bool(); + id1 = __VERIFIER_nondet_char(); + r1 = __VERIFIER_nondet_char(); + st1 = __VERIFIER_nondet_char(); + nl1 = __VERIFIER_nondet_char(); + m1 = __VERIFIER_nondet_char(); + max1 = __VERIFIER_nondet_char(); + mode1 = __VERIFIER_nondet__Bool(); + id2 = __VERIFIER_nondet_char(); + r2 = __VERIFIER_nondet_char(); + st2 = __VERIFIER_nondet_char(); + nl2 = __VERIFIER_nondet_char(); + m2 = __VERIFIER_nondet_char(); + max2 = __VERIFIER_nondet_char(); + mode2 = __VERIFIER_nondet__Bool(); + id3 = __VERIFIER_nondet_char(); + r3 = __VERIFIER_nondet_char(); + st3 = __VERIFIER_nondet_char(); + nl3 = __VERIFIER_nondet_char(); + m3 = __VERIFIER_nondet_char(); + max3 = __VERIFIER_nondet_char(); + mode3 = __VERIFIER_nondet__Bool(); + i2 = init(); + __VERIFIER_assume(i2); + p12_old = nomsg; + p12_new = nomsg; + p13_old = nomsg; + p13_new = nomsg; + p21_old = nomsg; + p21_new = nomsg; + p23_old = nomsg; + p23_new = nomsg; + p31_old = nomsg; + p31_new = nomsg; + p32_old = nomsg; + p32_new = nomsg; + i2 = 0; + while (i2 < 6) { + { + node1(); + node2(); + node3(); + p12_old = p12_new; + p12_new = nomsg; + p13_old = p13_new; + p13_new = nomsg; + p21_old = p21_new; + p21_new = nomsg; + p23_old = p23_new; + p23_new = nomsg; + p31_old = p31_new; + p31_new = nomsg; + p32_old = p32_new; + p32_new = nomsg; + c1 = check(); + assert(c1); + i2 ++; + } + } +} +} +void __VERIFIER_assume(_Bool arg ) +{ + + + { + while (! arg) { + { + + } + } +} +} +void assert(_Bool arg ) +{ + + + { + if (! arg) { + { + ERROR: __VERIFIER_error(); + } + } +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_floodmax.5_false-unreach-call.1.ufo.BOUNDED-10.pals.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_floodmax.5_false-unreach-call.1.ufo.BOUNDED-10.pals.c new file mode 100644 index 000000000..622a7b0a9 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_floodmax.5_false-unreach-call.1.ufo.BOUNDED-10.pals.c @@ -0,0 +1,2817 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/********************************************************************** + +Copyright (c) 2013 Carnegie Mellon University. All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following acknowledgments and +disclaimers. + +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. + +3. The names "Carnegie Mellon University," "SEI" and/or "Software +Engineering Institute" shall not be used to endorse or promote +products derived from this software without prior written +permission. For written permission, please contact +permission@sei.cmu.edu. + +4. Products derived from this software may not be called "SEI" nor may +"SEI" appear in their names without prior written permission of +permission@sei.cmu.edu. + +5. Redistributions of any form whatsoever must retain the following +acknowledgment: + +This material is based upon work funded and supported by the +Department of Defense under Contract No. FA8721-05-C-0003 with +Carnegie Mellon University for the operation of the Software +Engineering Institute, a federally funded research and development +center. + +Any opinions, findings and conclusions or recommendations expressed in +this material are those of the author(s) and do not necessarily +reflect the views of the United States Department of Defense. + +NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING +INSTITUTE MATERIAL IS FURNISHEDON AN "AS-IS" BASIS. CARNEGIE MELLON +UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITHER EXPRESSED OR +IMPLIED, AS TO ANY MATTER INCLUDING, BUT NOT LIMITED TO, WARRANTY OF +FITNESS FOR PURPOSE OR MERCHANTABILITY, EXCLUSIVITY, OR RESULTS +OBTAINED FROM USE OF THE MATERIAL. CARNEGIE MELLON UNIVERSITY DOES NOT +MAKE ANY WARRANTY OF ANY KIND WITH RESPECT TO FREEDOM FROM PATENT, +TRADEMARK, OR COPYRIGHT INFRINGEMENT. + +This material has been approved for public release and unlimited +distribution. + +DM-0000575 + +**********************************************************************/ + +/* Generated by CIL v. 1.6.0 */ +/* print_CIL_Input is true */ + +char __VERIFIER_nondet_char(void) ; +_Bool __VERIFIER_nondet__Bool(void) ; +void assert(_Bool arg ) ; +void __VERIFIER_assume(_Bool arg ) ; +typedef char msg_t; +typedef int port_t; +extern void read(port_t p , msg_t m ) ; +extern void write(port_t p , msg_t m ) ; +msg_t nomsg = (msg_t )-1; +port_t p12 ; +char p12_old ; +char p12_new ; +_Bool ep12 ; +port_t p13 ; +char p13_old ; +char p13_new ; +_Bool ep13 ; +port_t p14 ; +char p14_old ; +char p14_new ; +_Bool ep14 ; +port_t p15 ; +char p15_old ; +char p15_new ; +_Bool ep15 ; +port_t p21 ; +char p21_old ; +char p21_new ; +_Bool ep21 ; +port_t p23 ; +char p23_old ; +char p23_new ; +_Bool ep23 ; +port_t p24 ; +char p24_old ; +char p24_new ; +_Bool ep24 ; +port_t p25 ; +char p25_old ; +char p25_new ; +_Bool ep25 ; +port_t p31 ; +char p31_old ; +char p31_new ; +_Bool ep31 ; +port_t p32 ; +char p32_old ; +char p32_new ; +_Bool ep32 ; +port_t p34 ; +char p34_old ; +char p34_new ; +_Bool ep34 ; +port_t p35 ; +char p35_old ; +char p35_new ; +_Bool ep35 ; +port_t p41 ; +char p41_old ; +char p41_new ; +_Bool ep41 ; +port_t p42 ; +char p42_old ; +char p42_new ; +_Bool ep42 ; +port_t p43 ; +char p43_old ; +char p43_new ; +_Bool ep43 ; +port_t p45 ; +char p45_old ; +char p45_new ; +_Bool ep45 ; +port_t p51 ; +char p51_old ; +char p51_new ; +_Bool ep51 ; +port_t p52 ; +char p52_old ; +char p52_new ; +_Bool ep52 ; +port_t p53 ; +char p53_old ; +char p53_new ; +_Bool ep53 ; +port_t p54 ; +char p54_old ; +char p54_new ; +_Bool ep54 ; +char id1 ; +char r1 ; +char st1 ; +char nl1 ; +char m1 ; +char max1 ; +_Bool mode1 ; +char id2 ; +char r2 ; +char st2 ; +char nl2 ; +char m2 ; +char max2 ; +_Bool mode2 ; +char id3 ; +char r3 ; +char st3 ; +char nl3 ; +char m3 ; +char max3 ; +_Bool mode3 ; +char id4 ; +char r4 ; +char st4 ; +char nl4 ; +char m4 ; +char max4 ; +_Bool mode4 ; +char id5 ; +char r5 ; +char st5 ; +char nl5 ; +char m5 ; +char max5 ; +_Bool mode5 ; +void node1(void) +{ + + + { + if (mode1) { + r1 = (char )((int )r1 + 1); + if (ep21) { + m1 = p21_old; + p21_old = nomsg; + if ((int )m1 > (int )max1) { + max1 = m1; + } + } + if (ep31) { + m1 = p31_old; + p31_old = nomsg; + if ((int )m1 > (int )max1) { + max1 = m1; + } + } + if (ep41) { + m1 = p41_old; + p41_old = nomsg; + if ((int )m1 > (int )max1) { + max1 = m1; + } + } + if (ep51) { + m1 = p51_old; + p51_old = nomsg; + if ((int )m1 > (int )max1) { + max1 = m1; + } + } + if ((int )r1 == 4) { + if ((int )max1 == (int )id1) { + st1 = (char)1; + } else { + nl1 = (char)1; + } + } + mode1 = (_Bool)0; + } else { + if ((int )r1 < 4) { + if (ep12) { + p12_new = max1 != nomsg && p12_new == nomsg ? max1 : p12_new; + } + if (ep13) { + p13_new = max1 != nomsg && p13_new == nomsg ? max1 : p13_new; + } + if (ep14) { + p14_new = max1 != nomsg && p14_new == nomsg ? max1 : p14_new; + } + if (ep15) { + p15_new = max1 != nomsg && p15_new == nomsg ? max1 : p15_new; + } + } + mode1 = (_Bool)1; + } + return; +} +} +void node2(void) +{ + + + { + if (mode2) { + r2 = (char )((int )r2 + 1); + if (ep12) { + m2 = p12_old; + p12_old = nomsg; + if ((int )m2 > (int )max2) { + max2 = m2; + } + } + if (ep32) { + m2 = p32_old; + p32_old = nomsg; + if ((int )m2 > (int )max2) { + max2 = m2; + } + } + if (ep42) { + m2 = p42_old; + p42_old = nomsg; + if ((int )m2 > (int )max2) { + max2 = m2; + } + } + if (ep52) { + m2 = p52_old; + p52_old = nomsg; + if ((int )m2 > (int )max2) { + max2 = m2; + } + } + if ((int )r2 == 4) { + if ((int )max2 == (int )id2) { + st2 = (char)1; + } else { + nl2 = (char)1; + } + } + mode2 = (_Bool)0; + } else { + if ((int )r2 < 4) { + if (ep21) { + p21_new = max2 != nomsg && p21_new == nomsg ? max2 : p21_new; + } + if (ep23) { + p23_new = max2 != nomsg && p23_new == nomsg ? max2 : p23_new; + } + if (ep24) { + p24_new = max2 != nomsg && p24_new == nomsg ? max2 : p24_new; + } + if (ep25) { + p25_new = max2 != nomsg && p25_new == nomsg ? max2 : p25_new; + } + } + mode2 = (_Bool)1; + } + return; +} +} +void node3(void) +{ + + + { + if (mode3) { + r3 = (char )((int )r3 + 1); + if (ep13) { + m3 = p13_old; + p13_old = nomsg; + if ((int )m3 > (int )max3) { + max3 = m3; + } + } + if (ep23) { + m3 = p23_old; + p23_old = nomsg; + if ((int )m3 > (int )max3) { + max3 = m3; + } + } + if (ep43) { + m3 = p43_old; + p43_old = nomsg; + if ((int )m3 > (int )max3) { + max3 = m3; + } + } + if (ep53) { + m3 = p53_old; + p53_old = nomsg; + if ((int )m3 > (int )max3) { + max3 = m3; + } + } + if ((int )r3 == 4) { + if ((int )max3 == (int )id3) { + st3 = (char)1; + } else { + nl3 = (char)1; + } + } + mode3 = (_Bool)0; + } else { + if ((int )r3 < 4) { + if (ep31) { + p31_new = max3 != nomsg && p31_new == nomsg ? max3 : p31_new; + } + if (ep32) { + p32_new = max3 != nomsg && p32_new == nomsg ? max3 : p32_new; + } + if (ep34) { + p34_new = max3 != nomsg && p34_new == nomsg ? max3 : p34_new; + } + if (ep35) { + p35_new = max3 != nomsg && p35_new == nomsg ? max3 : p35_new; + } + } + mode3 = (_Bool)1; + } + return; +} +} +void node4(void) +{ + + + { + if (mode4) { + r4 = (char )((int )r4 + 1); + if (ep14) { + m4 = p14_old; + p14_old = nomsg; + if ((int )m4 > (int )max4) { + max4 = m4; + } + } + if (ep24) { + m4 = p24_old; + p24_old = nomsg; + if ((int )m4 > (int )max4) { + max4 = m4; + } + } + if (ep34) { + m4 = p34_old; + p34_old = nomsg; + if ((int )m4 > (int )max4) { + max4 = m4; + } + } + if (ep54) { + m4 = p54_old; + p54_old = nomsg; + if ((int )m4 > (int )max4) { + max4 = m4; + } + } + if ((int )r4 == 4) { + if ((int )max4 == (int )id4) { + st4 = (char)1; + } else { + nl4 = (char)1; + } + } + mode4 = (_Bool)0; + } else { + if ((int )r4 < 4) { + if (ep41) { + p41_new = max4 != nomsg && p41_new == nomsg ? max4 : p41_new; + } + if (ep42) { + p42_new = max4 != nomsg && p42_new == nomsg ? max4 : p42_new; + } + if (ep43) { + p43_new = max4 != nomsg && p43_new == nomsg ? max4 : p43_new; + } + if (ep45) { + p45_new = max4 != nomsg && p45_new == nomsg ? max4 : p45_new; + } + } + mode4 = (_Bool)1; + } + return; +} +} +void node5(void) +{ + + + { + if (mode5) { + r5 = (char )((int )r5 + 1); + if (ep15) { + m5 = p15_old; + p15_old = nomsg; + if ((int )m5 > (int )max5) { + max5 = m5; + } + } + if (ep25) { + m5 = p25_old; + p25_old = nomsg; + if ((int )m5 > (int )max5) { + max5 = m5; + } + } + if (ep35) { + m5 = p35_old; + p35_old = nomsg; + if ((int )m5 > (int )max5) { + max5 = m5; + } + } + if (ep45) { + m5 = p45_old; + p45_old = nomsg; + if ((int )m5 > (int )max5) { + max5 = m5; + } + } + if ((int )r5 == 4) { + if ((int )max5 == (int )id5) { + st5 = (char)1; + } else { + nl5 = (char)1; + } + } + mode5 = (_Bool)0; + } else { + if ((int )r5 < 4) { + if (ep51) { + p51_new = max5 != nomsg && p51_new == nomsg ? max5 : p51_new; + } + if (ep52) { + p52_new = max5 != nomsg && p52_new == nomsg ? max5 : p52_new; + } + if (ep53) { + p53_new = max5 != nomsg && p53_new == nomsg ? max5 : p53_new; + } + if (ep54) { + p54_new = max5 != nomsg && p54_new == nomsg ? max5 : p54_new; + } + } + mode5 = (_Bool)1; + } + return; +} +} +void (*nodes[5])(void) = { & node1, & node2, & node3, & node4, + & node5}; +int init(void) +{ + _Bool r121 ; + _Bool r131 ; + _Bool r141 ; + _Bool r151 ; + _Bool r211 ; + _Bool r231 ; + _Bool r241 ; + _Bool r251 ; + _Bool r311 ; + _Bool r321 ; + _Bool r341 ; + _Bool r351 ; + _Bool r411 ; + _Bool r421 ; + _Bool r431 ; + _Bool r451 ; + _Bool r511 ; + _Bool r521 ; + _Bool r531 ; + _Bool r541 ; + _Bool r122 ; + int tmp ; + _Bool r132 ; + int tmp___0 ; + _Bool r142 ; + int tmp___1 ; + _Bool r152 ; + int tmp___2 ; + _Bool r212 ; + int tmp___3 ; + _Bool r232 ; + int tmp___4 ; + _Bool r242 ; + int tmp___5 ; + _Bool r252 ; + int tmp___6 ; + _Bool r312 ; + int tmp___7 ; + _Bool r322 ; + int tmp___8 ; + _Bool r342 ; + int tmp___9 ; + _Bool r352 ; + int tmp___10 ; + _Bool r412 ; + int tmp___11 ; + _Bool r422 ; + int tmp___12 ; + _Bool r432 ; + int tmp___13 ; + _Bool r452 ; + int tmp___14 ; + _Bool r512 ; + int tmp___15 ; + _Bool r522 ; + int tmp___16 ; + _Bool r532 ; + int tmp___17 ; + _Bool r542 ; + int tmp___18 ; + _Bool r123 ; + int tmp___19 ; + _Bool r133 ; + int tmp___20 ; + _Bool r143 ; + int tmp___21 ; + _Bool r153 ; + int tmp___22 ; + _Bool r213 ; + int tmp___23 ; + _Bool r233 ; + int tmp___24 ; + _Bool r243 ; + int tmp___25 ; + _Bool r253 ; + int tmp___26 ; + _Bool r313 ; + int tmp___27 ; + _Bool r323 ; + int tmp___28 ; + _Bool r343 ; + int tmp___29 ; + _Bool r353 ; + int tmp___30 ; + _Bool r413 ; + int tmp___31 ; + _Bool r423 ; + int tmp___32 ; + _Bool r433 ; + int tmp___33 ; + _Bool r453 ; + int tmp___34 ; + _Bool r513 ; + int tmp___35 ; + _Bool r523 ; + int tmp___36 ; + _Bool r533 ; + int tmp___37 ; + _Bool r543 ; + int tmp___38 ; + _Bool r124 ; + int tmp___39 ; + _Bool r134 ; + int tmp___40 ; + _Bool r144 ; + int tmp___41 ; + _Bool r154 ; + int tmp___42 ; + _Bool r214 ; + int tmp___43 ; + _Bool r234 ; + int tmp___44 ; + _Bool r244 ; + int tmp___45 ; + _Bool r254 ; + int tmp___46 ; + _Bool r314 ; + int tmp___47 ; + _Bool r324 ; + int tmp___48 ; + _Bool r344 ; + int tmp___49 ; + _Bool r354 ; + int tmp___50 ; + _Bool r414 ; + int tmp___51 ; + _Bool r424 ; + int tmp___52 ; + _Bool r434 ; + int tmp___53 ; + _Bool r454 ; + int tmp___54 ; + _Bool r514 ; + int tmp___55 ; + _Bool r524 ; + int tmp___56 ; + _Bool r534 ; + int tmp___57 ; + _Bool r544 ; + int tmp___58 ; + int tmp___59 ; + + { + r121 = ep12; + r131 = ep13; + r141 = ep14; + r151 = ep15; + r211 = ep21; + r231 = ep23; + r241 = ep24; + r251 = ep25; + r311 = ep31; + r321 = ep32; + r341 = ep34; + r351 = ep35; + r411 = ep41; + r421 = ep42; + r431 = ep43; + r451 = ep45; + r511 = ep51; + r521 = ep52; + r531 = ep53; + r541 = ep54; + if (r121) { + tmp = 1; + } else + if (r131) { + if (ep32) { + tmp = 1; + } else { + goto _L___0; + } + } else + _L___0: /* CIL Label */ + if (r141) { + if (ep42) { + tmp = 1; + } else { + goto _L; + } + } else + _L: /* CIL Label */ + if (r151) { + if (ep52) { + tmp = 1; + } else { + tmp = 0; + } + } else { + tmp = 0; + } + r122 = (_Bool )tmp; + if (r131) { + tmp___0 = 1; + } else + if (r121) { + if (ep23) { + tmp___0 = 1; + } else { + goto _L___2; + } + } else + _L___2: /* CIL Label */ + if (r141) { + if (ep43) { + tmp___0 = 1; + } else { + goto _L___1; + } + } else + _L___1: /* CIL Label */ + if (r151) { + if (ep53) { + tmp___0 = 1; + } else { + tmp___0 = 0; + } + } else { + tmp___0 = 0; + } + r132 = (_Bool )tmp___0; + if (r141) { + tmp___1 = 1; + } else + if (r121) { + if (ep24) { + tmp___1 = 1; + } else { + goto _L___4; + } + } else + _L___4: /* CIL Label */ + if (r131) { + if (ep34) { + tmp___1 = 1; + } else { + goto _L___3; + } + } else + _L___3: /* CIL Label */ + if (r151) { + if (ep54) { + tmp___1 = 1; + } else { + tmp___1 = 0; + } + } else { + tmp___1 = 0; + } + r142 = (_Bool )tmp___1; + if (r151) { + tmp___2 = 1; + } else + if (r121) { + if (ep25) { + tmp___2 = 1; + } else { + goto _L___6; + } + } else + _L___6: /* CIL Label */ + if (r131) { + if (ep35) { + tmp___2 = 1; + } else { + goto _L___5; + } + } else + _L___5: /* CIL Label */ + if (r141) { + if (ep45) { + tmp___2 = 1; + } else { + tmp___2 = 0; + } + } else { + tmp___2 = 0; + } + r152 = (_Bool )tmp___2; + if (r211) { + tmp___3 = 1; + } else + if (r231) { + if (ep31) { + tmp___3 = 1; + } else { + goto _L___8; + } + } else + _L___8: /* CIL Label */ + if (r241) { + if (ep41) { + tmp___3 = 1; + } else { + goto _L___7; + } + } else + _L___7: /* CIL Label */ + if (r251) { + if (ep51) { + tmp___3 = 1; + } else { + tmp___3 = 0; + } + } else { + tmp___3 = 0; + } + r212 = (_Bool )tmp___3; + if (r231) { + tmp___4 = 1; + } else + if (r211) { + if (ep13) { + tmp___4 = 1; + } else { + goto _L___10; + } + } else + _L___10: /* CIL Label */ + if (r241) { + if (ep43) { + tmp___4 = 1; + } else { + goto _L___9; + } + } else + _L___9: /* CIL Label */ + if (r251) { + if (ep53) { + tmp___4 = 1; + } else { + tmp___4 = 0; + } + } else { + tmp___4 = 0; + } + r232 = (_Bool )tmp___4; + if (r241) { + tmp___5 = 1; + } else + if (r211) { + if (ep14) { + tmp___5 = 1; + } else { + goto _L___12; + } + } else + _L___12: /* CIL Label */ + if (r231) { + if (ep34) { + tmp___5 = 1; + } else { + goto _L___11; + } + } else + _L___11: /* CIL Label */ + if (r251) { + if (ep54) { + tmp___5 = 1; + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + r242 = (_Bool )tmp___5; + if (r251) { + tmp___6 = 1; + } else + if (r211) { + if (ep15) { + tmp___6 = 1; + } else { + goto _L___14; + } + } else + _L___14: /* CIL Label */ + if (r231) { + if (ep35) { + tmp___6 = 1; + } else { + goto _L___13; + } + } else + _L___13: /* CIL Label */ + if (r241) { + if (ep45) { + tmp___6 = 1; + } else { + tmp___6 = 0; + } + } else { + tmp___6 = 0; + } + r252 = (_Bool )tmp___6; + if (r311) { + tmp___7 = 1; + } else + if (r321) { + if (ep21) { + tmp___7 = 1; + } else { + goto _L___16; + } + } else + _L___16: /* CIL Label */ + if (r341) { + if (ep41) { + tmp___7 = 1; + } else { + goto _L___15; + } + } else + _L___15: /* CIL Label */ + if (r351) { + if (ep51) { + tmp___7 = 1; + } else { + tmp___7 = 0; + } + } else { + tmp___7 = 0; + } + r312 = (_Bool )tmp___7; + if (r321) { + tmp___8 = 1; + } else + if (r311) { + if (ep12) { + tmp___8 = 1; + } else { + goto _L___18; + } + } else + _L___18: /* CIL Label */ + if (r341) { + if (ep42) { + tmp___8 = 1; + } else { + goto _L___17; + } + } else + _L___17: /* CIL Label */ + if (r351) { + if (ep52) { + tmp___8 = 1; + } else { + tmp___8 = 0; + } + } else { + tmp___8 = 0; + } + r322 = (_Bool )tmp___8; + if (r341) { + tmp___9 = 1; + } else + if (r311) { + if (ep14) { + tmp___9 = 1; + } else { + goto _L___20; + } + } else + _L___20: /* CIL Label */ + if (r321) { + if (ep24) { + tmp___9 = 1; + } else { + goto _L___19; + } + } else + _L___19: /* CIL Label */ + if (r351) { + if (ep54) { + tmp___9 = 1; + } else { + tmp___9 = 0; + } + } else { + tmp___9 = 0; + } + r342 = (_Bool )tmp___9; + if (r351) { + tmp___10 = 1; + } else + if (r311) { + if (ep15) { + tmp___10 = 1; + } else { + goto _L___22; + } + } else + _L___22: /* CIL Label */ + if (r321) { + if (ep25) { + tmp___10 = 1; + } else { + goto _L___21; + } + } else + _L___21: /* CIL Label */ + if (r341) { + if (ep45) { + tmp___10 = 1; + } else { + tmp___10 = 0; + } + } else { + tmp___10 = 0; + } + r352 = (_Bool )tmp___10; + if (r411) { + tmp___11 = 1; + } else + if (r421) { + if (ep21) { + tmp___11 = 1; + } else { + goto _L___24; + } + } else + _L___24: /* CIL Label */ + if (r431) { + if (ep31) { + tmp___11 = 1; + } else { + goto _L___23; + } + } else + _L___23: /* CIL Label */ + if (r451) { + if (ep51) { + tmp___11 = 1; + } else { + tmp___11 = 0; + } + } else { + tmp___11 = 0; + } + r412 = (_Bool )tmp___11; + if (r421) { + tmp___12 = 1; + } else + if (r411) { + if (ep12) { + tmp___12 = 1; + } else { + goto _L___26; + } + } else + _L___26: /* CIL Label */ + if (r431) { + if (ep32) { + tmp___12 = 1; + } else { + goto _L___25; + } + } else + _L___25: /* CIL Label */ + if (r451) { + if (ep52) { + tmp___12 = 1; + } else { + tmp___12 = 0; + } + } else { + tmp___12 = 0; + } + r422 = (_Bool )tmp___12; + if (r431) { + tmp___13 = 1; + } else + if (r411) { + if (ep13) { + tmp___13 = 1; + } else { + goto _L___28; + } + } else + _L___28: /* CIL Label */ + if (r421) { + if (ep23) { + tmp___13 = 1; + } else { + goto _L___27; + } + } else + _L___27: /* CIL Label */ + if (r451) { + if (ep53) { + tmp___13 = 1; + } else { + tmp___13 = 0; + } + } else { + tmp___13 = 0; + } + r432 = (_Bool )tmp___13; + if (r451) { + tmp___14 = 1; + } else + if (r411) { + if (ep15) { + tmp___14 = 1; + } else { + goto _L___30; + } + } else + _L___30: /* CIL Label */ + if (r421) { + if (ep25) { + tmp___14 = 1; + } else { + goto _L___29; + } + } else + _L___29: /* CIL Label */ + if (r431) { + if (ep35) { + tmp___14 = 1; + } else { + tmp___14 = 0; + } + } else { + tmp___14 = 0; + } + r452 = (_Bool )tmp___14; + if (r511) { + tmp___15 = 1; + } else + if (r521) { + if (ep21) { + tmp___15 = 1; + } else { + goto _L___32; + } + } else + _L___32: /* CIL Label */ + if (r531) { + if (ep31) { + tmp___15 = 1; + } else { + goto _L___31; + } + } else + _L___31: /* CIL Label */ + if (r541) { + if (ep41) { + tmp___15 = 1; + } else { + tmp___15 = 0; + } + } else { + tmp___15 = 0; + } + r512 = (_Bool )tmp___15; + if (r521) { + tmp___16 = 1; + } else + if (r511) { + if (ep12) { + tmp___16 = 1; + } else { + goto _L___34; + } + } else + _L___34: /* CIL Label */ + if (r531) { + if (ep32) { + tmp___16 = 1; + } else { + goto _L___33; + } + } else + _L___33: /* CIL Label */ + if (r541) { + if (ep42) { + tmp___16 = 1; + } else { + tmp___16 = 0; + } + } else { + tmp___16 = 0; + } + r522 = (_Bool )tmp___16; + if (r531) { + tmp___17 = 1; + } else + if (r511) { + if (ep13) { + tmp___17 = 1; + } else { + goto _L___36; + } + } else + _L___36: /* CIL Label */ + if (r521) { + if (ep23) { + tmp___17 = 1; + } else { + goto _L___35; + } + } else + _L___35: /* CIL Label */ + if (r541) { + if (ep43) { + tmp___17 = 1; + } else { + tmp___17 = 0; + } + } else { + tmp___17 = 0; + } + r532 = (_Bool )tmp___17; + if (r541) { + tmp___18 = 1; + } else + if (r511) { + if (ep14) { + tmp___18 = 1; + } else { + goto _L___38; + } + } else + _L___38: /* CIL Label */ + if (r521) { + if (ep24) { + tmp___18 = 1; + } else { + goto _L___37; + } + } else + _L___37: /* CIL Label */ + if (r531) { + if (ep34) { + tmp___18 = 1; + } else { + tmp___18 = 0; + } + } else { + tmp___18 = 0; + } + r542 = (_Bool )tmp___18; + if (r122) { + tmp___19 = 1; + } else + if (r132) { + if (ep32) { + tmp___19 = 1; + } else { + goto _L___40; + } + } else + _L___40: /* CIL Label */ + if (r142) { + if (ep42) { + tmp___19 = 1; + } else { + goto _L___39; + } + } else + _L___39: /* CIL Label */ + if (r152) { + if (ep52) { + tmp___19 = 1; + } else { + tmp___19 = 0; + } + } else { + tmp___19 = 0; + } + r123 = (_Bool )tmp___19; + if (r132) { + tmp___20 = 1; + } else + if (r122) { + if (ep23) { + tmp___20 = 1; + } else { + goto _L___42; + } + } else + _L___42: /* CIL Label */ + if (r142) { + if (ep43) { + tmp___20 = 1; + } else { + goto _L___41; + } + } else + _L___41: /* CIL Label */ + if (r152) { + if (ep53) { + tmp___20 = 1; + } else { + tmp___20 = 0; + } + } else { + tmp___20 = 0; + } + r133 = (_Bool )tmp___20; + if (r142) { + tmp___21 = 1; + } else + if (r122) { + if (ep24) { + tmp___21 = 1; + } else { + goto _L___44; + } + } else + _L___44: /* CIL Label */ + if (r132) { + if (ep34) { + tmp___21 = 1; + } else { + goto _L___43; + } + } else + _L___43: /* CIL Label */ + if (r152) { + if (ep54) { + tmp___21 = 1; + } else { + tmp___21 = 0; + } + } else { + tmp___21 = 0; + } + r143 = (_Bool )tmp___21; + if (r152) { + tmp___22 = 1; + } else + if (r122) { + if (ep25) { + tmp___22 = 1; + } else { + goto _L___46; + } + } else + _L___46: /* CIL Label */ + if (r132) { + if (ep35) { + tmp___22 = 1; + } else { + goto _L___45; + } + } else + _L___45: /* CIL Label */ + if (r142) { + if (ep45) { + tmp___22 = 1; + } else { + tmp___22 = 0; + } + } else { + tmp___22 = 0; + } + r153 = (_Bool )tmp___22; + if (r212) { + tmp___23 = 1; + } else + if (r232) { + if (ep31) { + tmp___23 = 1; + } else { + goto _L___48; + } + } else + _L___48: /* CIL Label */ + if (r242) { + if (ep41) { + tmp___23 = 1; + } else { + goto _L___47; + } + } else + _L___47: /* CIL Label */ + if (r252) { + if (ep51) { + tmp___23 = 1; + } else { + tmp___23 = 0; + } + } else { + tmp___23 = 0; + } + r213 = (_Bool )tmp___23; + if (r232) { + tmp___24 = 1; + } else + if (r212) { + if (ep13) { + tmp___24 = 1; + } else { + goto _L___50; + } + } else + _L___50: /* CIL Label */ + if (r242) { + if (ep43) { + tmp___24 = 1; + } else { + goto _L___49; + } + } else + _L___49: /* CIL Label */ + if (r252) { + if (ep53) { + tmp___24 = 1; + } else { + tmp___24 = 0; + } + } else { + tmp___24 = 0; + } + r233 = (_Bool )tmp___24; + if (r242) { + tmp___25 = 1; + } else + if (r212) { + if (ep14) { + tmp___25 = 1; + } else { + goto _L___52; + } + } else + _L___52: /* CIL Label */ + if (r232) { + if (ep34) { + tmp___25 = 1; + } else { + goto _L___51; + } + } else + _L___51: /* CIL Label */ + if (r252) { + if (ep54) { + tmp___25 = 1; + } else { + tmp___25 = 0; + } + } else { + tmp___25 = 0; + } + r243 = (_Bool )tmp___25; + if (r252) { + tmp___26 = 1; + } else + if (r212) { + if (ep15) { + tmp___26 = 1; + } else { + goto _L___54; + } + } else + _L___54: /* CIL Label */ + if (r232) { + if (ep35) { + tmp___26 = 1; + } else { + goto _L___53; + } + } else + _L___53: /* CIL Label */ + if (r242) { + if (ep45) { + tmp___26 = 1; + } else { + tmp___26 = 0; + } + } else { + tmp___26 = 0; + } + r253 = (_Bool )tmp___26; + if (r312) { + tmp___27 = 1; + } else + if (r322) { + if (ep21) { + tmp___27 = 1; + } else { + goto _L___56; + } + } else + _L___56: /* CIL Label */ + if (r342) { + if (ep41) { + tmp___27 = 1; + } else { + goto _L___55; + } + } else + _L___55: /* CIL Label */ + if (r352) { + if (ep51) { + tmp___27 = 1; + } else { + tmp___27 = 0; + } + } else { + tmp___27 = 0; + } + r313 = (_Bool )tmp___27; + if (r322) { + tmp___28 = 1; + } else + if (r312) { + if (ep12) { + tmp___28 = 1; + } else { + goto _L___58; + } + } else + _L___58: /* CIL Label */ + if (r342) { + if (ep42) { + tmp___28 = 1; + } else { + goto _L___57; + } + } else + _L___57: /* CIL Label */ + if (r352) { + if (ep52) { + tmp___28 = 1; + } else { + tmp___28 = 0; + } + } else { + tmp___28 = 0; + } + r323 = (_Bool )tmp___28; + if (r342) { + tmp___29 = 1; + } else + if (r312) { + if (ep14) { + tmp___29 = 1; + } else { + goto _L___60; + } + } else + _L___60: /* CIL Label */ + if (r322) { + if (ep24) { + tmp___29 = 1; + } else { + goto _L___59; + } + } else + _L___59: /* CIL Label */ + if (r352) { + if (ep54) { + tmp___29 = 1; + } else { + tmp___29 = 0; + } + } else { + tmp___29 = 0; + } + r343 = (_Bool )tmp___29; + if (r352) { + tmp___30 = 1; + } else + if (r312) { + if (ep15) { + tmp___30 = 1; + } else { + goto _L___62; + } + } else + _L___62: /* CIL Label */ + if (r322) { + if (ep25) { + tmp___30 = 1; + } else { + goto _L___61; + } + } else + _L___61: /* CIL Label */ + if (r342) { + if (ep45) { + tmp___30 = 1; + } else { + tmp___30 = 0; + } + } else { + tmp___30 = 0; + } + r353 = (_Bool )tmp___30; + if (r412) { + tmp___31 = 1; + } else + if (r422) { + if (ep21) { + tmp___31 = 1; + } else { + goto _L___64; + } + } else + _L___64: /* CIL Label */ + if (r432) { + if (ep31) { + tmp___31 = 1; + } else { + goto _L___63; + } + } else + _L___63: /* CIL Label */ + if (r452) { + if (ep51) { + tmp___31 = 1; + } else { + tmp___31 = 0; + } + } else { + tmp___31 = 0; + } + r413 = (_Bool )tmp___31; + if (r422) { + tmp___32 = 1; + } else + if (r412) { + if (ep12) { + tmp___32 = 1; + } else { + goto _L___66; + } + } else + _L___66: /* CIL Label */ + if (r432) { + if (ep32) { + tmp___32 = 1; + } else { + goto _L___65; + } + } else + _L___65: /* CIL Label */ + if (r452) { + if (ep52) { + tmp___32 = 1; + } else { + tmp___32 = 0; + } + } else { + tmp___32 = 0; + } + r423 = (_Bool )tmp___32; + if (r432) { + tmp___33 = 1; + } else + if (r412) { + if (ep13) { + tmp___33 = 1; + } else { + goto _L___68; + } + } else + _L___68: /* CIL Label */ + if (r422) { + if (ep23) { + tmp___33 = 1; + } else { + goto _L___67; + } + } else + _L___67: /* CIL Label */ + if (r452) { + if (ep53) { + tmp___33 = 1; + } else { + tmp___33 = 0; + } + } else { + tmp___33 = 0; + } + r433 = (_Bool )tmp___33; + if (r452) { + tmp___34 = 1; + } else + if (r412) { + if (ep15) { + tmp___34 = 1; + } else { + goto _L___70; + } + } else + _L___70: /* CIL Label */ + if (r422) { + if (ep25) { + tmp___34 = 1; + } else { + goto _L___69; + } + } else + _L___69: /* CIL Label */ + if (r432) { + if (ep35) { + tmp___34 = 1; + } else { + tmp___34 = 0; + } + } else { + tmp___34 = 0; + } + r453 = (_Bool )tmp___34; + if (r512) { + tmp___35 = 1; + } else + if (r522) { + if (ep21) { + tmp___35 = 1; + } else { + goto _L___72; + } + } else + _L___72: /* CIL Label */ + if (r532) { + if (ep31) { + tmp___35 = 1; + } else { + goto _L___71; + } + } else + _L___71: /* CIL Label */ + if (r542) { + if (ep41) { + tmp___35 = 1; + } else { + tmp___35 = 0; + } + } else { + tmp___35 = 0; + } + r513 = (_Bool )tmp___35; + if (r522) { + tmp___36 = 1; + } else + if (r512) { + if (ep12) { + tmp___36 = 1; + } else { + goto _L___74; + } + } else + _L___74: /* CIL Label */ + if (r532) { + if (ep32) { + tmp___36 = 1; + } else { + goto _L___73; + } + } else + _L___73: /* CIL Label */ + if (r542) { + if (ep42) { + tmp___36 = 1; + } else { + tmp___36 = 0; + } + } else { + tmp___36 = 0; + } + r523 = (_Bool )tmp___36; + if (r532) { + tmp___37 = 1; + } else + if (r512) { + if (ep13) { + tmp___37 = 1; + } else { + goto _L___76; + } + } else + _L___76: /* CIL Label */ + if (r522) { + if (ep23) { + tmp___37 = 1; + } else { + goto _L___75; + } + } else + _L___75: /* CIL Label */ + if (r542) { + if (ep43) { + tmp___37 = 1; + } else { + tmp___37 = 0; + } + } else { + tmp___37 = 0; + } + r533 = (_Bool )tmp___37; + if (r542) { + tmp___38 = 1; + } else + if (r512) { + if (ep14) { + tmp___38 = 1; + } else { + goto _L___78; + } + } else + _L___78: /* CIL Label */ + if (r522) { + if (ep24) { + tmp___38 = 1; + } else { + goto _L___77; + } + } else + _L___77: /* CIL Label */ + if (r532) { + if (ep34) { + tmp___38 = 1; + } else { + tmp___38 = 0; + } + } else { + tmp___38 = 0; + } + r543 = (_Bool )tmp___38; + if (r123) { + tmp___39 = 1; + } else + if (r133) { + if (ep32) { + tmp___39 = 1; + } else { + goto _L___80; + } + } else + _L___80: /* CIL Label */ + if (r143) { + if (ep42) { + tmp___39 = 1; + } else { + goto _L___79; + } + } else + _L___79: /* CIL Label */ + if (r153) { + if (ep52) { + tmp___39 = 1; + } else { + tmp___39 = 0; + } + } else { + tmp___39 = 0; + } + r124 = (_Bool )tmp___39; + if (r133) { + tmp___40 = 1; + } else + if (r123) { + if (ep23) { + tmp___40 = 1; + } else { + goto _L___82; + } + } else + _L___82: /* CIL Label */ + if (r143) { + if (ep43) { + tmp___40 = 1; + } else { + goto _L___81; + } + } else + _L___81: /* CIL Label */ + if (r153) { + if (ep53) { + tmp___40 = 1; + } else { + tmp___40 = 0; + } + } else { + tmp___40 = 0; + } + r134 = (_Bool )tmp___40; + if (r143) { + tmp___41 = 1; + } else + if (r123) { + if (ep24) { + tmp___41 = 1; + } else { + goto _L___84; + } + } else + _L___84: /* CIL Label */ + if (r133) { + if (ep34) { + tmp___41 = 1; + } else { + goto _L___83; + } + } else + _L___83: /* CIL Label */ + if (r153) { + if (ep54) { + tmp___41 = 1; + } else { + tmp___41 = 0; + } + } else { + tmp___41 = 0; + } + r144 = (_Bool )tmp___41; + if (r153) { + tmp___42 = 1; + } else + if (r123) { + if (ep25) { + tmp___42 = 1; + } else { + goto _L___86; + } + } else + _L___86: /* CIL Label */ + if (r133) { + if (ep35) { + tmp___42 = 1; + } else { + goto _L___85; + } + } else + _L___85: /* CIL Label */ + if (r143) { + if (ep45) { + tmp___42 = 1; + } else { + tmp___42 = 0; + } + } else { + tmp___42 = 0; + } + r154 = (_Bool )tmp___42; + if (r213) { + tmp___43 = 1; + } else + if (r233) { + if (ep31) { + tmp___43 = 1; + } else { + goto _L___88; + } + } else + _L___88: /* CIL Label */ + if (r243) { + if (ep41) { + tmp___43 = 1; + } else { + goto _L___87; + } + } else + _L___87: /* CIL Label */ + if (r253) { + if (ep51) { + tmp___43 = 1; + } else { + tmp___43 = 0; + } + } else { + tmp___43 = 0; + } + r214 = (_Bool )tmp___43; + if (r233) { + tmp___44 = 1; + } else + if (r213) { + if (ep13) { + tmp___44 = 1; + } else { + goto _L___90; + } + } else + _L___90: /* CIL Label */ + if (r243) { + if (ep43) { + tmp___44 = 1; + } else { + goto _L___89; + } + } else + _L___89: /* CIL Label */ + if (r253) { + if (ep53) { + tmp___44 = 1; + } else { + tmp___44 = 0; + } + } else { + tmp___44 = 0; + } + r234 = (_Bool )tmp___44; + if (r243) { + tmp___45 = 1; + } else + if (r213) { + if (ep14) { + tmp___45 = 1; + } else { + goto _L___92; + } + } else + _L___92: /* CIL Label */ + if (r233) { + if (ep34) { + tmp___45 = 1; + } else { + goto _L___91; + } + } else + _L___91: /* CIL Label */ + if (r253) { + if (ep54) { + tmp___45 = 1; + } else { + tmp___45 = 0; + } + } else { + tmp___45 = 0; + } + r244 = (_Bool )tmp___45; + if (r253) { + tmp___46 = 1; + } else + if (r213) { + if (ep15) { + tmp___46 = 1; + } else { + goto _L___94; + } + } else + _L___94: /* CIL Label */ + if (r233) { + if (ep35) { + tmp___46 = 1; + } else { + goto _L___93; + } + } else + _L___93: /* CIL Label */ + if (r243) { + if (ep45) { + tmp___46 = 1; + } else { + tmp___46 = 0; + } + } else { + tmp___46 = 0; + } + r254 = (_Bool )tmp___46; + if (r313) { + tmp___47 = 1; + } else + if (r323) { + if (ep21) { + tmp___47 = 1; + } else { + goto _L___96; + } + } else + _L___96: /* CIL Label */ + if (r343) { + if (ep41) { + tmp___47 = 1; + } else { + goto _L___95; + } + } else + _L___95: /* CIL Label */ + if (r353) { + if (ep51) { + tmp___47 = 1; + } else { + tmp___47 = 0; + } + } else { + tmp___47 = 0; + } + r314 = (_Bool )tmp___47; + if (r323) { + tmp___48 = 1; + } else + if (r313) { + if (ep12) { + tmp___48 = 1; + } else { + goto _L___98; + } + } else + _L___98: /* CIL Label */ + if (r343) { + if (ep42) { + tmp___48 = 1; + } else { + goto _L___97; + } + } else + _L___97: /* CIL Label */ + if (r353) { + if (ep52) { + tmp___48 = 1; + } else { + tmp___48 = 0; + } + } else { + tmp___48 = 0; + } + r324 = (_Bool )tmp___48; + if (r343) { + tmp___49 = 1; + } else + if (r313) { + if (ep14) { + tmp___49 = 1; + } else { + goto _L___100; + } + } else + _L___100: /* CIL Label */ + if (r323) { + if (ep24) { + tmp___49 = 1; + } else { + goto _L___99; + } + } else + _L___99: /* CIL Label */ + if (r353) { + if (ep54) { + tmp___49 = 1; + } else { + tmp___49 = 0; + } + } else { + tmp___49 = 0; + } + r344 = (_Bool )tmp___49; + if (r353) { + tmp___50 = 1; + } else + if (r313) { + if (ep15) { + tmp___50 = 1; + } else { + goto _L___102; + } + } else + _L___102: /* CIL Label */ + if (r323) { + if (ep25) { + tmp___50 = 1; + } else { + goto _L___101; + } + } else + _L___101: /* CIL Label */ + if (r343) { + if (ep45) { + tmp___50 = 1; + } else { + tmp___50 = 0; + } + } else { + tmp___50 = 0; + } + r354 = (_Bool )tmp___50; + if (r413) { + tmp___51 = 1; + } else + if (r423) { + if (ep21) { + tmp___51 = 1; + } else { + goto _L___104; + } + } else + _L___104: /* CIL Label */ + if (r433) { + if (ep31) { + tmp___51 = 1; + } else { + goto _L___103; + } + } else + _L___103: /* CIL Label */ + if (r453) { + if (ep51) { + tmp___51 = 1; + } else { + tmp___51 = 0; + } + } else { + tmp___51 = 0; + } + r414 = (_Bool )tmp___51; + if (r423) { + tmp___52 = 1; + } else + if (r413) { + if (ep12) { + tmp___52 = 1; + } else { + goto _L___106; + } + } else + _L___106: /* CIL Label */ + if (r433) { + if (ep32) { + tmp___52 = 1; + } else { + goto _L___105; + } + } else + _L___105: /* CIL Label */ + if (r453) { + if (ep52) { + tmp___52 = 1; + } else { + tmp___52 = 0; + } + } else { + tmp___52 = 0; + } + r424 = (_Bool )tmp___52; + if (r433) { + tmp___53 = 1; + } else + if (r413) { + if (ep13) { + tmp___53 = 1; + } else { + goto _L___108; + } + } else + _L___108: /* CIL Label */ + if (r423) { + if (ep23) { + tmp___53 = 1; + } else { + goto _L___107; + } + } else + _L___107: /* CIL Label */ + if (r453) { + if (ep53) { + tmp___53 = 1; + } else { + tmp___53 = 0; + } + } else { + tmp___53 = 0; + } + r434 = (_Bool )tmp___53; + if (r453) { + tmp___54 = 1; + } else + if (r413) { + if (ep15) { + tmp___54 = 1; + } else { + goto _L___110; + } + } else + _L___110: /* CIL Label */ + if (r423) { + if (ep25) { + tmp___54 = 1; + } else { + goto _L___109; + } + } else + _L___109: /* CIL Label */ + if (r433) { + if (ep35) { + tmp___54 = 1; + } else { + tmp___54 = 0; + } + } else { + tmp___54 = 0; + } + r454 = (_Bool )tmp___54; + if (r513) { + tmp___55 = 1; + } else + if (r523) { + if (ep21) { + tmp___55 = 1; + } else { + goto _L___112; + } + } else + _L___112: /* CIL Label */ + if (r533) { + if (ep31) { + tmp___55 = 1; + } else { + goto _L___111; + } + } else + _L___111: /* CIL Label */ + if (r543) { + if (ep41) { + tmp___55 = 1; + } else { + tmp___55 = 0; + } + } else { + tmp___55 = 0; + } + r514 = (_Bool )tmp___55; + if (r523) { + tmp___56 = 1; + } else + if (r513) { + if (ep12) { + tmp___56 = 1; + } else { + goto _L___114; + } + } else + _L___114: /* CIL Label */ + if (r533) { + if (ep32) { + tmp___56 = 1; + } else { + goto _L___113; + } + } else + _L___113: /* CIL Label */ + if (r543) { + if (ep42) { + tmp___56 = 1; + } else { + tmp___56 = 0; + } + } else { + tmp___56 = 0; + } + r524 = (_Bool )tmp___56; + if (r533) { + tmp___57 = 1; + } else + if (r513) { + if (ep13) { + tmp___57 = 1; + } else { + goto _L___116; + } + } else + _L___116: /* CIL Label */ + if (r523) { + if (ep23) { + tmp___57 = 1; + } else { + goto _L___115; + } + } else + _L___115: /* CIL Label */ + if (r543) { + if (ep43) { + tmp___57 = 1; + } else { + tmp___57 = 0; + } + } else { + tmp___57 = 0; + } + r534 = (_Bool )tmp___57; + if (r543) { + tmp___58 = 1; + } else + if (r513) { + if (ep14) { + tmp___58 = 1; + } else { + goto _L___118; + } + } else + _L___118: /* CIL Label */ + if (r523) { + if (ep24) { + tmp___58 = 1; + } else { + goto _L___117; + } + } else + _L___117: /* CIL Label */ + if (r533) { + if (ep34) { + tmp___58 = 1; + } else { + tmp___58 = 0; + } + } else { + tmp___58 = 0; + } + r544 = (_Bool )tmp___58; + if ((int )id1 != (int )id2) { + if ((int )id1 != (int )id3) { + if ((int )id1 != (int )id4) { + if ((int )id1 != (int )id5) { + if ((int )id2 != (int )id3) { + if ((int )id2 != (int )id4) { + if ((int )id2 != (int )id5) { + if ((int )id3 != (int )id4) { + if ((int )id3 != (int )id5) { + if ((int )id4 != (int )id5) { + if ((int )id1 >= 0) { + if ((int )id2 >= 0) { + if ((int )id3 >= 0) { + if ((int )id4 >= 0) { + if ((int )id5 >= 0) { + if ((int )r1 == 0) { + if ((int )r2 == 0) { + if ((int )r3 == 0) { + if ((int )r4 == 0) { + if ((int )r5 == 0) { + if ((int )max1 == (int )id1) { + if ((int )max2 == (int )id2) { + if ((int )max3 == (int )id3) { + if ((int )max4 == (int )id4) { + if ((int )max5 == (int )id5) { + if ((int )st1 == 0) { + if ((int )st2 == 0) { + if ((int )st3 == 0) { + if ((int )st4 == 0) { + if ((int )st5 == 0) { + if ((int )nl1 == 0) { + if ((int )nl2 == 0) { + if ((int )nl3 == 0) { + if ((int )nl4 == 0) { + if ((int )nl5 == 0) { + if ((int )mode1 == 0) { + if ((int )mode2 == 0) { + if ((int )mode3 == 0) { + if ((int )mode4 == 0) { + if ((int )mode5 == 0) { + tmp___59 = 1; + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + return (tmp___59); +} +} +int check(void) +{ + int tmp ; + + { + if (((((int )st1 + (int )st2) + (int )st3) + (int )st4) + (int )st5 <= 1) { + if ((int )st1 + (int )nl1 <= 1) { + if ((int )st2 + (int )nl2 <= 1) { + if ((int )st3 + (int )nl3 <= 1) { + if ((int )st4 + (int )nl4 <= 1) { + if ((int )st5 + (int )nl5 <= 1) { + if ((int )r1 >= 4) { + goto _L___1; + } else + if (((((int )st1 + (int )st2) + (int )st3) + (int )st4) + (int )st5 == 0) { + _L___1: /* CIL Label */ + if ((int )r1 < 4) { + goto _L___0; + } else + if (((((int )st1 + (int )st2) + (int )st3) + (int )st4) + (int )st5 == 1) { + _L___0: /* CIL Label */ + if ((int )r1 >= 4) { + goto _L; + } else + if (((((int )nl1 + (int )nl2) + (int )nl3) + (int )nl4) + (int )nl5 == 0) { + _L: /* CIL Label */ + if ((int )r1 < 4) { + tmp = 1; + } else + if (((((int )nl1 + (int )nl2) + (int )nl3) + (int )nl4) + (int )nl5 == 4) { + tmp = 1; + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + return (tmp); +} +} +int main(void) +{ + int c1 ; + int i2 ; + + { + c1 = 0; + ep12 = __VERIFIER_nondet__Bool(); + ep13 = __VERIFIER_nondet__Bool(); + ep14 = __VERIFIER_nondet__Bool(); + ep15 = __VERIFIER_nondet__Bool(); + ep21 = __VERIFIER_nondet__Bool(); + ep23 = __VERIFIER_nondet__Bool(); + ep24 = __VERIFIER_nondet__Bool(); + ep25 = __VERIFIER_nondet__Bool(); + ep31 = __VERIFIER_nondet__Bool(); + ep32 = __VERIFIER_nondet__Bool(); + ep34 = __VERIFIER_nondet__Bool(); + ep35 = __VERIFIER_nondet__Bool(); + ep41 = __VERIFIER_nondet__Bool(); + ep42 = __VERIFIER_nondet__Bool(); + ep43 = __VERIFIER_nondet__Bool(); + ep45 = __VERIFIER_nondet__Bool(); + ep51 = __VERIFIER_nondet__Bool(); + ep52 = __VERIFIER_nondet__Bool(); + ep53 = __VERIFIER_nondet__Bool(); + ep54 = __VERIFIER_nondet__Bool(); + id1 = __VERIFIER_nondet_char(); + r1 = __VERIFIER_nondet_char(); + st1 = __VERIFIER_nondet_char(); + nl1 = __VERIFIER_nondet_char(); + m1 = __VERIFIER_nondet_char(); + max1 = __VERIFIER_nondet_char(); + mode1 = __VERIFIER_nondet__Bool(); + id2 = __VERIFIER_nondet_char(); + r2 = __VERIFIER_nondet_char(); + st2 = __VERIFIER_nondet_char(); + nl2 = __VERIFIER_nondet_char(); + m2 = __VERIFIER_nondet_char(); + max2 = __VERIFIER_nondet_char(); + mode2 = __VERIFIER_nondet__Bool(); + id3 = __VERIFIER_nondet_char(); + r3 = __VERIFIER_nondet_char(); + st3 = __VERIFIER_nondet_char(); + nl3 = __VERIFIER_nondet_char(); + m3 = __VERIFIER_nondet_char(); + max3 = __VERIFIER_nondet_char(); + mode3 = __VERIFIER_nondet__Bool(); + id4 = __VERIFIER_nondet_char(); + r4 = __VERIFIER_nondet_char(); + st4 = __VERIFIER_nondet_char(); + nl4 = __VERIFIER_nondet_char(); + m4 = __VERIFIER_nondet_char(); + max4 = __VERIFIER_nondet_char(); + mode4 = __VERIFIER_nondet__Bool(); + id5 = __VERIFIER_nondet_char(); + r5 = __VERIFIER_nondet_char(); + st5 = __VERIFIER_nondet_char(); + nl5 = __VERIFIER_nondet_char(); + m5 = __VERIFIER_nondet_char(); + max5 = __VERIFIER_nondet_char(); + mode5 = __VERIFIER_nondet__Bool(); + i2 = init(); + __VERIFIER_assume(i2); + p12_old = nomsg; + p12_new = nomsg; + p13_old = nomsg; + p13_new = nomsg; + p14_old = nomsg; + p14_new = nomsg; + p15_old = nomsg; + p15_new = nomsg; + p21_old = nomsg; + p21_new = nomsg; + p23_old = nomsg; + p23_new = nomsg; + p24_old = nomsg; + p24_new = nomsg; + p25_old = nomsg; + p25_new = nomsg; + p31_old = nomsg; + p31_new = nomsg; + p32_old = nomsg; + p32_new = nomsg; + p34_old = nomsg; + p34_new = nomsg; + p35_old = nomsg; + p35_new = nomsg; + p41_old = nomsg; + p41_new = nomsg; + p42_old = nomsg; + p42_new = nomsg; + p43_old = nomsg; + p43_new = nomsg; + p45_old = nomsg; + p45_new = nomsg; + p51_old = nomsg; + p51_new = nomsg; + p52_old = nomsg; + p52_new = nomsg; + p53_old = nomsg; + p53_new = nomsg; + p54_old = nomsg; + p54_new = nomsg; + i2 = 0; + while (i2 < 10) { + { + node1(); + node2(); + node3(); + node4(); + node5(); + p12_old = p12_new; + p12_new = nomsg; + p13_old = p13_new; + p13_new = nomsg; + p14_old = p14_new; + p14_new = nomsg; + p15_old = p15_new; + p15_new = nomsg; + p21_old = p21_new; + p21_new = nomsg; + p23_old = p23_new; + p23_new = nomsg; + p24_old = p24_new; + p24_new = nomsg; + p25_old = p25_new; + p25_new = nomsg; + p31_old = p31_new; + p31_new = nomsg; + p32_old = p32_new; + p32_new = nomsg; + p34_old = p34_new; + p34_new = nomsg; + p35_old = p35_new; + p35_new = nomsg; + p41_old = p41_new; + p41_new = nomsg; + p42_old = p42_new; + p42_new = nomsg; + p43_old = p43_new; + p43_new = nomsg; + p45_old = p45_new; + p45_new = nomsg; + p51_old = p51_new; + p51_new = nomsg; + p52_old = p52_new; + p52_new = nomsg; + p53_old = p53_new; + p53_new = nomsg; + p54_old = p54_new; + p54_new = nomsg; + c1 = check(); + assert(c1); + i2 ++; + } + } +} +} +void __VERIFIER_assume(_Bool arg ) +{ + + + { + while (! arg) { + { + + } + } +} +} +void assert(_Bool arg ) +{ + + + { + if (! arg) { + { + ERROR: __VERIFIER_error(); + } + } +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_lcr-var-start-time.3_false-unreach-call.1.ufo.BOUNDED-6.pals.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_lcr-var-start-time.3_false-unreach-call.1.ufo.BOUNDED-6.pals.c new file mode 100644 index 000000000..4aeef04d2 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_lcr-var-start-time.3_false-unreach-call.1.ufo.BOUNDED-6.pals.c @@ -0,0 +1,372 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/********************************************************************** + +Copyright (c) 2013 Carnegie Mellon University. All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following acknowledgments and +disclaimers. + +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. + +3. The names "Carnegie Mellon University," "SEI" and/or "Software +Engineering Institute" shall not be used to endorse or promote +products derived from this software without prior written +permission. For written permission, please contact +permission@sei.cmu.edu. + +4. Products derived from this software may not be called "SEI" nor may +"SEI" appear in their names without prior written permission of +permission@sei.cmu.edu. + +5. Redistributions of any form whatsoever must retain the following +acknowledgment: + +This material is based upon work funded and supported by the +Department of Defense under Contract No. FA8721-05-C-0003 with +Carnegie Mellon University for the operation of the Software +Engineering Institute, a federally funded research and development +center. + +Any opinions, findings and conclusions or recommendations expressed in +this material are those of the author(s) and do not necessarily +reflect the views of the United States Department of Defense. + +NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING +INSTITUTE MATERIAL IS FURNISHEDON AN "AS-IS" BASIS. CARNEGIE MELLON +UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITHER EXPRESSED OR +IMPLIED, AS TO ANY MATTER INCLUDING, BUT NOT LIMITED TO, WARRANTY OF +FITNESS FOR PURPOSE OR MERCHANTABILITY, EXCLUSIVITY, OR RESULTS +OBTAINED FROM USE OF THE MATERIAL. CARNEGIE MELLON UNIVERSITY DOES NOT +MAKE ANY WARRANTY OF ANY KIND WITH RESPECT TO FREEDOM FROM PATENT, +TRADEMARK, OR COPYRIGHT INFRINGEMENT. + +This material has been approved for public release and unlimited +distribution. + +DM-0000575 + +**********************************************************************/ + +/* Generated by CIL v. 1.6.0 */ +/* print_CIL_Input is true */ + +_Bool __VERIFIER_nondet__Bool(void) ; +char __VERIFIER_nondet_msg_t(void) ; +char __VERIFIER_nondet_char(void) ; +void assert(_Bool arg ) ; +void __VERIFIER_assume(_Bool arg ) ; +typedef char msg_t; +typedef int port_t; +extern void read(port_t p , msg_t m ) ; +extern void write(port_t p , msg_t m ) ; +msg_t nomsg = (msg_t )-1; +char r1 ; +port_t p1 ; +char p1_old ; +char p1_new ; +char id1 ; +char st1 ; +msg_t send1 ; +_Bool mode1 ; +_Bool alive1 ; +port_t p2 ; +char p2_old ; +char p2_new ; +char id2 ; +char st2 ; +msg_t send2 ; +_Bool mode2 ; +_Bool alive2 ; +port_t p3 ; +char p3_old ; +char p3_new ; +char id3 ; +char st3 ; +msg_t send3 ; +_Bool mode3 ; +_Bool alive3 ; +void node1(void) +{ + msg_t m1 ; + + { + m1 = nomsg; + if (mode1) { + r1 = (char )((int )r1 + 1); + m1 = p3_old; + p3_old = nomsg; + if ((int )m1 != (int )nomsg) { + if (alive1) { + if ((int )m1 > (int )id1) { + send1 = m1; + } else + if ((int )m1 == (int )id1) { + st1 = (char)1; + } else { + send1 = m1; + } + } else { + send1 = m1; + } + } + mode1 = (_Bool)0; + } else { + if (alive1) { + p1_new = send1 != nomsg && p1_new == nomsg ? send1 : p1_new; + } else + if ((int )send1 != (int )id1) { + p1_new = send1 != nomsg && p1_new == nomsg ? send1 : p1_new; + } + mode1 = (_Bool)1; + } + return; +} +} +void node2(void) +{ + msg_t m2 ; + + { + m2 = nomsg; + if (mode2) { + m2 = p1_old; + p1_old = nomsg; + if ((int )m2 != (int )nomsg) { + if (alive2) { + if ((int )m2 > (int )id2) { + send2 = m2; + } else + if ((int )m2 == (int )id2) { + st2 = (char)1; + } + } else { + send2 = m2; + } + } + mode2 = (_Bool)0; + } else { + if (alive2) { + p2_new = send2 != nomsg && p2_new == nomsg ? send2 : p2_new; + } else + if ((int )send2 != (int )id2) { + p2_new = send2 != nomsg && p2_new == nomsg ? send2 : p2_new; + } + mode2 = (_Bool)1; + } + return; +} +} +void node3(void) +{ + msg_t m3 ; + + { + m3 = nomsg; + if (mode3) { + m3 = p2_old; + p2_old = nomsg; + if ((int )m3 != (int )nomsg) { + if (alive3) { + if ((int )m3 > (int )id3) { + send3 = m3; + } else + if ((int )m3 == (int )id3) { + st3 = (char)1; + } + } else { + send3 = m3; + } + } + mode3 = (_Bool)0; + } else { + if (alive3) { + p3_new = send3 != nomsg && p3_new == nomsg ? send3 : p3_new; + } else + if ((int )send3 != (int )id3) { + p3_new = send3 != nomsg && p3_new == nomsg ? send3 : p3_new; + } + mode3 = (_Bool)1; + } + return; +} +} +void (*nodes[3])(void) = { & node1, & node2, & node3}; +int init(void) +{ + int tmp ; + + { + if ((int )r1 == 0) { + if (((int )alive1 + (int )alive2) + (int )alive3 >= 1) { + if ((int )id1 >= 0) { + if ((int )st1 == 0) { + if ((int )send1 == (int )id1) { + if ((int )mode1 == 0) { + if ((int )id2 >= 0) { + if ((int )st2 == 0) { + if ((int )send2 == (int )id2) { + if ((int )mode2 == 0) { + if ((int )id3 >= 0) { + if ((int )st3 == 0) { + if ((int )send3 == (int )id3) { + if ((int )mode3 == 0) { + if ((int )id1 != (int )id2) { + if ((int )id1 != (int )id3) { + if ((int )id2 != (int )id3) { + tmp = 1; + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + return (tmp); +} +} +int check(void) +{ + int tmp ; + + { + if (((int )st1 + (int )st2) + (int )st3 <= 1) { + if ((int )r1 < 3) { + tmp = 1; + } else + if (((int )st1 + (int )st2) + (int )st3 == 1) { + tmp = 1; + } else { + tmp = 0; + } + } else { + tmp = 0; + } + return (tmp); +} +} +int main(void) +{ + int c1 ; + int i2 ; + + { + c1 = 0; + r1 = __VERIFIER_nondet_char(); + id1 = __VERIFIER_nondet_char(); + st1 = __VERIFIER_nondet_char(); + send1 = __VERIFIER_nondet_msg_t(); + mode1 = __VERIFIER_nondet__Bool(); + alive1 = __VERIFIER_nondet__Bool(); + id2 = __VERIFIER_nondet_char(); + st2 = __VERIFIER_nondet_char(); + send2 = __VERIFIER_nondet_msg_t(); + mode2 = __VERIFIER_nondet__Bool(); + alive2 = __VERIFIER_nondet__Bool(); + id3 = __VERIFIER_nondet_char(); + st3 = __VERIFIER_nondet_char(); + send3 = __VERIFIER_nondet_msg_t(); + mode3 = __VERIFIER_nondet__Bool(); + alive3 = __VERIFIER_nondet__Bool(); + i2 = init(); + __VERIFIER_assume(i2); + p1_old = nomsg; + p1_new = nomsg; + p2_old = nomsg; + p2_new = nomsg; + p3_old = nomsg; + p3_new = nomsg; + i2 = 0; + while (i2 < 6) { + { + node1(); + node2(); + node3(); + p1_old = p1_new; + p1_new = nomsg; + p2_old = p2_new; + p2_new = nomsg; + p3_old = p3_new; + p3_new = nomsg; + c1 = check(); + assert(c1); + i2 ++; + } + } +} +} +void __VERIFIER_assume(_Bool arg ) +{ + + + { + while (! arg) { + { + + } + } +} +} +void assert(_Bool arg ) +{ + + + { + if (! arg) { + { + ERROR: __VERIFIER_error(); + } + } +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_lcr-var-start-time.6_false-unreach-call.1.ufo.BOUNDED-12.pals.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_lcr-var-start-time.6_false-unreach-call.1.ufo.BOUNDED-12.pals.c new file mode 100644 index 000000000..8b3ee5e1e --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_lcr-var-start-time.6_false-unreach-call.1.ufo.BOUNDED-12.pals.c @@ -0,0 +1,625 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/********************************************************************** + +Copyright (c) 2013 Carnegie Mellon University. All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following acknowledgments and +disclaimers. + +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. + +3. The names "Carnegie Mellon University," "SEI" and/or "Software +Engineering Institute" shall not be used to endorse or promote +products derived from this software without prior written +permission. For written permission, please contact +permission@sei.cmu.edu. + +4. Products derived from this software may not be called "SEI" nor may +"SEI" appear in their names without prior written permission of +permission@sei.cmu.edu. + +5. Redistributions of any form whatsoever must retain the following +acknowledgment: + +This material is based upon work funded and supported by the +Department of Defense under Contract No. FA8721-05-C-0003 with +Carnegie Mellon University for the operation of the Software +Engineering Institute, a federally funded research and development +center. + +Any opinions, findings and conclusions or recommendations expressed in +this material are those of the author(s) and do not necessarily +reflect the views of the United States Department of Defense. + +NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING +INSTITUTE MATERIAL IS FURNISHEDON AN "AS-IS" BASIS. CARNEGIE MELLON +UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITHER EXPRESSED OR +IMPLIED, AS TO ANY MATTER INCLUDING, BUT NOT LIMITED TO, WARRANTY OF +FITNESS FOR PURPOSE OR MERCHANTABILITY, EXCLUSIVITY, OR RESULTS +OBTAINED FROM USE OF THE MATERIAL. CARNEGIE MELLON UNIVERSITY DOES NOT +MAKE ANY WARRANTY OF ANY KIND WITH RESPECT TO FREEDOM FROM PATENT, +TRADEMARK, OR COPYRIGHT INFRINGEMENT. + +This material has been approved for public release and unlimited +distribution. + +DM-0000575 + +**********************************************************************/ + +/* Generated by CIL v. 1.6.0 */ +/* print_CIL_Input is true */ + +_Bool __VERIFIER_nondet__Bool(void) ; +char __VERIFIER_nondet_msg_t(void) ; +char __VERIFIER_nondet_char(void) ; +void assert(_Bool arg ) ; +void __VERIFIER_assume(_Bool arg ) ; +typedef char msg_t; +typedef int port_t; +extern void read(port_t p , msg_t m ) ; +extern void write(port_t p , msg_t m ) ; +msg_t nomsg = (msg_t )-1; +char r1 ; +port_t p1 ; +char p1_old ; +char p1_new ; +char id1 ; +char st1 ; +msg_t send1 ; +_Bool mode1 ; +_Bool alive1 ; +port_t p2 ; +char p2_old ; +char p2_new ; +char id2 ; +char st2 ; +msg_t send2 ; +_Bool mode2 ; +_Bool alive2 ; +port_t p3 ; +char p3_old ; +char p3_new ; +char id3 ; +char st3 ; +msg_t send3 ; +_Bool mode3 ; +_Bool alive3 ; +port_t p4 ; +char p4_old ; +char p4_new ; +char id4 ; +char st4 ; +msg_t send4 ; +_Bool mode4 ; +_Bool alive4 ; +port_t p5 ; +char p5_old ; +char p5_new ; +char id5 ; +char st5 ; +msg_t send5 ; +_Bool mode5 ; +_Bool alive5 ; +port_t p6 ; +char p6_old ; +char p6_new ; +char id6 ; +char st6 ; +msg_t send6 ; +_Bool mode6 ; +_Bool alive6 ; +void node1(void) +{ + msg_t m1 ; + + { + m1 = nomsg; + if (mode1) { + r1 = (char )((int )r1 + 1); + m1 = p6_old; + p6_old = nomsg; + if ((int )m1 != (int )nomsg) { + if (alive1) { + if ((int )m1 > (int )id1) { + send1 = m1; + } else + if ((int )m1 == (int )id1) { + st1 = (char)1; + } else { + send1 = m1; + } + } else { + send1 = m1; + } + } + mode1 = (_Bool)0; + } else { + if (alive1) { + p1_new = send1 != nomsg && p1_new == nomsg ? send1 : p1_new; + } else + if ((int )send1 != (int )id1) { + p1_new = send1 != nomsg && p1_new == nomsg ? send1 : p1_new; + } + mode1 = (_Bool)1; + } + return; +} +} +void node2(void) +{ + msg_t m2 ; + + { + m2 = nomsg; + if (mode2) { + m2 = p1_old; + p1_old = nomsg; + if ((int )m2 != (int )nomsg) { + if (alive2) { + if ((int )m2 > (int )id2) { + send2 = m2; + } else + if ((int )m2 == (int )id2) { + st2 = (char)1; + } + } else { + send2 = m2; + } + } + mode2 = (_Bool)0; + } else { + if (alive2) { + p2_new = send2 != nomsg && p2_new == nomsg ? send2 : p2_new; + } else + if ((int )send2 != (int )id2) { + p2_new = send2 != nomsg && p2_new == nomsg ? send2 : p2_new; + } + mode2 = (_Bool)1; + } + return; +} +} +void node3(void) +{ + msg_t m3 ; + + { + m3 = nomsg; + if (mode3) { + m3 = p2_old; + p2_old = nomsg; + if ((int )m3 != (int )nomsg) { + if (alive3) { + if ((int )m3 > (int )id3) { + send3 = m3; + } else + if ((int )m3 == (int )id3) { + st3 = (char)1; + } + } else { + send3 = m3; + } + } + mode3 = (_Bool)0; + } else { + if (alive3) { + p3_new = send3 != nomsg && p3_new == nomsg ? send3 : p3_new; + } else + if ((int )send3 != (int )id3) { + p3_new = send3 != nomsg && p3_new == nomsg ? send3 : p3_new; + } + mode3 = (_Bool)1; + } + return; +} +} +void node4(void) +{ + msg_t m4 ; + + { + m4 = nomsg; + if (mode4) { + m4 = p3_old; + p3_old = nomsg; + if ((int )m4 != (int )nomsg) { + if (alive4) { + if ((int )m4 > (int )id4) { + send4 = m4; + } else + if ((int )m4 == (int )id4) { + st4 = (char)1; + } + } else { + send4 = m4; + } + } + mode4 = (_Bool)0; + } else { + if (alive4) { + p4_new = send4 != nomsg && p4_new == nomsg ? send4 : p4_new; + } else + if ((int )send4 != (int )id4) { + p4_new = send4 != nomsg && p4_new == nomsg ? send4 : p4_new; + } + mode4 = (_Bool)1; + } + return; +} +} +void node5(void) +{ + msg_t m5 ; + + { + m5 = nomsg; + if (mode5) { + m5 = p4_old; + p4_old = nomsg; + if ((int )m5 != (int )nomsg) { + if (alive5) { + if ((int )m5 > (int )id5) { + send5 = m5; + } else + if ((int )m5 == (int )id5) { + st5 = (char)1; + } + } else { + send5 = m5; + } + } + mode5 = (_Bool)0; + } else { + if (alive5) { + p5_new = send5 != nomsg && p5_new == nomsg ? send5 : p5_new; + } else + if ((int )send5 != (int )id5) { + p5_new = send5 != nomsg && p5_new == nomsg ? send5 : p5_new; + } + mode5 = (_Bool)1; + } + return; +} +} +void node6(void) +{ + msg_t m6 ; + + { + m6 = nomsg; + if (mode6) { + m6 = p5_old; + p5_old = nomsg; + if ((int )m6 != (int )nomsg) { + if (alive6) { + if ((int )m6 > (int )id6) { + send6 = m6; + } else + if ((int )m6 == (int )id6) { + st6 = (char)1; + } + } else { + send6 = m6; + } + } + mode6 = (_Bool)0; + } else { + if (alive6) { + p6_new = send6 != nomsg && p6_new == nomsg ? send6 : p6_new; + } else + if ((int )send6 != (int )id6) { + p6_new = send6 != nomsg && p6_new == nomsg ? send6 : p6_new; + } + mode6 = (_Bool)1; + } + return; +} +} +void (*nodes[6])(void) = { & node1, & node2, & node3, & node4, + & node5, & node6}; +int init(void) +{ + int tmp ; + + { + if ((int )r1 == 0) { + if ((((((int )alive1 + (int )alive2) + (int )alive3) + (int )alive4) + (int )alive5) + (int )alive6 >= 1) { + if ((int )id1 >= 0) { + if ((int )st1 == 0) { + if ((int )send1 == (int )id1) { + if ((int )mode1 == 0) { + if ((int )id2 >= 0) { + if ((int )st2 == 0) { + if ((int )send2 == (int )id2) { + if ((int )mode2 == 0) { + if ((int )id3 >= 0) { + if ((int )st3 == 0) { + if ((int )send3 == (int )id3) { + if ((int )mode3 == 0) { + if ((int )id4 >= 0) { + if ((int )st4 == 0) { + if ((int )send4 == (int )id4) { + if ((int )mode4 == 0) { + if ((int )id5 >= 0) { + if ((int )st5 == 0) { + if ((int )send5 == (int )id5) { + if ((int )mode5 == 0) { + if ((int )id6 >= 0) { + if ((int )st6 == 0) { + if ((int )send6 == (int )id6) { + if ((int )mode6 == 0) { + if ((int )id1 != (int )id2) { + if ((int )id1 != (int )id3) { + if ((int )id1 != (int )id4) { + if ((int )id1 != (int )id5) { + if ((int )id1 != (int )id6) { + if ((int )id2 != (int )id3) { + if ((int )id2 != (int )id4) { + if ((int )id2 != (int )id5) { + if ((int )id2 != (int )id6) { + if ((int )id3 != (int )id4) { + if ((int )id3 != (int )id5) { + if ((int )id3 != (int )id6) { + if ((int )id4 != (int )id5) { + if ((int )id4 != (int )id6) { + if ((int )id5 != (int )id6) { + tmp = 1; + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + return (tmp); +} +} +int check(void) +{ + int tmp ; + + { + if ((((((int )st1 + (int )st2) + (int )st3) + (int )st4) + (int )st5) + (int )st6 <= 1) { + if ((int )r1 < 6) { + tmp = 1; + } else + if ((((((int )st1 + (int )st2) + (int )st3) + (int )st4) + (int )st5) + (int )st6 == 1) { + tmp = 1; + } else { + tmp = 0; + } + } else { + tmp = 0; + } + return (tmp); +} +} +int main(void) +{ + int c1 ; + int i2 ; + + { + c1 = 0; + r1 = __VERIFIER_nondet_char(); + id1 = __VERIFIER_nondet_char(); + st1 = __VERIFIER_nondet_char(); + send1 = __VERIFIER_nondet_msg_t(); + mode1 = __VERIFIER_nondet__Bool(); + alive1 = __VERIFIER_nondet__Bool(); + id2 = __VERIFIER_nondet_char(); + st2 = __VERIFIER_nondet_char(); + send2 = __VERIFIER_nondet_msg_t(); + mode2 = __VERIFIER_nondet__Bool(); + alive2 = __VERIFIER_nondet__Bool(); + id3 = __VERIFIER_nondet_char(); + st3 = __VERIFIER_nondet_char(); + send3 = __VERIFIER_nondet_msg_t(); + mode3 = __VERIFIER_nondet__Bool(); + alive3 = __VERIFIER_nondet__Bool(); + id4 = __VERIFIER_nondet_char(); + st4 = __VERIFIER_nondet_char(); + send4 = __VERIFIER_nondet_msg_t(); + mode4 = __VERIFIER_nondet__Bool(); + alive4 = __VERIFIER_nondet__Bool(); + id5 = __VERIFIER_nondet_char(); + st5 = __VERIFIER_nondet_char(); + send5 = __VERIFIER_nondet_msg_t(); + mode5 = __VERIFIER_nondet__Bool(); + alive5 = __VERIFIER_nondet__Bool(); + id6 = __VERIFIER_nondet_char(); + st6 = __VERIFIER_nondet_char(); + send6 = __VERIFIER_nondet_msg_t(); + mode6 = __VERIFIER_nondet__Bool(); + alive6 = __VERIFIER_nondet__Bool(); + i2 = init(); + __VERIFIER_assume(i2); + p1_old = nomsg; + p1_new = nomsg; + p2_old = nomsg; + p2_new = nomsg; + p3_old = nomsg; + p3_new = nomsg; + p4_old = nomsg; + p4_new = nomsg; + p5_old = nomsg; + p5_new = nomsg; + p6_old = nomsg; + p6_new = nomsg; + i2 = 0; + while (i2 < 12) { + { + node1(); + node2(); + node3(); + node4(); + node5(); + node6(); + p1_old = p1_new; + p1_new = nomsg; + p2_old = p2_new; + p2_new = nomsg; + p3_old = p3_new; + p3_new = nomsg; + p4_old = p4_new; + p4_new = nomsg; + p5_old = p5_new; + p5_new = nomsg; + p6_old = p6_new; + p6_new = nomsg; + c1 = check(); + assert(c1); + i2 ++; + } + } +} +} +void __VERIFIER_assume(_Bool arg ) +{ + + + { + while (! arg) { + { + + } + } +} +} +void assert(_Bool arg ) +{ + + + { + if (! arg) { + { + ERROR: __VERIFIER_error(); + } + } +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_lcr.3_false-unreach-call.1.ufo.BOUNDED-6.pals.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_lcr.3_false-unreach-call.1.ufo.BOUNDED-6.pals.c new file mode 100644 index 000000000..53acfc750 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_lcr.3_false-unreach-call.1.ufo.BOUNDED-6.pals.c @@ -0,0 +1,343 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/********************************************************************** + +Copyright (c) 2013 Carnegie Mellon University. All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following acknowledgments and +disclaimers. + +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. + +3. The names "Carnegie Mellon University," "SEI" and/or "Software +Engineering Institute" shall not be used to endorse or promote +products derived from this software without prior written +permission. For written permission, please contact +permission@sei.cmu.edu. + +4. Products derived from this software may not be called "SEI" nor may +"SEI" appear in their names without prior written permission of +permission@sei.cmu.edu. + +5. Redistributions of any form whatsoever must retain the following +acknowledgment: + +This material is based upon work funded and supported by the +Department of Defense under Contract No. FA8721-05-C-0003 with +Carnegie Mellon University for the operation of the Software +Engineering Institute, a federally funded research and development +center. + +Any opinions, findings and conclusions or recommendations expressed in +this material are those of the author(s) and do not necessarily +reflect the views of the United States Department of Defense. + +NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING +INSTITUTE MATERIAL IS FURNISHEDON AN "AS-IS" BASIS. CARNEGIE MELLON +UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITHER EXPRESSED OR +IMPLIED, AS TO ANY MATTER INCLUDING, BUT NOT LIMITED TO, WARRANTY OF +FITNESS FOR PURPOSE OR MERCHANTABILITY, EXCLUSIVITY, OR RESULTS +OBTAINED FROM USE OF THE MATERIAL. CARNEGIE MELLON UNIVERSITY DOES NOT +MAKE ANY WARRANTY OF ANY KIND WITH RESPECT TO FREEDOM FROM PATENT, +TRADEMARK, OR COPYRIGHT INFRINGEMENT. + +This material has been approved for public release and unlimited +distribution. + +DM-0000575 + +**********************************************************************/ + +/* Generated by CIL v. 1.6.0 */ +/* print_CIL_Input is true */ + +_Bool __VERIFIER_nondet__Bool(void) ; +char __VERIFIER_nondet_msg_t(void) ; +char __VERIFIER_nondet_char(void) ; +void assert(_Bool arg ) ; +void __VERIFIER_assume(_Bool arg ) ; +typedef char msg_t; +typedef int port_t; +extern void read(port_t p , msg_t m ) ; +extern void write(port_t p , msg_t m ) ; +msg_t nomsg = (msg_t )-1; +char r1 ; +port_t p1 ; +char p1_old ; +char p1_new ; +char id1 ; +char st1 ; +msg_t send1 ; +_Bool mode1 ; +port_t p2 ; +char p2_old ; +char p2_new ; +char id2 ; +char st2 ; +msg_t send2 ; +_Bool mode2 ; +port_t p3 ; +char p3_old ; +char p3_new ; +char id3 ; +char st3 ; +msg_t send3 ; +_Bool mode3 ; +void node1(void) +{ + msg_t m1 ; + + { + m1 = nomsg; + if (mode1) { + r1 = (char )((int )r1 + 1); + m1 = p3_old; + p3_old = nomsg; + if ((int )m1 != (int )nomsg) { + if ((int )m1 > (int )id1) { + send1 = m1; + } else + if ((int )m1 == (int )id1) { + st1 = (char)1; + } else { + send1 = m1; + } + } + mode1 = (_Bool)0; + } else { + p1_new = send1 != nomsg && p1_new == nomsg ? send1 : p1_new; + mode1 = (_Bool)1; + } + return; +} +} +void node2(void) +{ + msg_t m2 ; + + { + m2 = nomsg; + if (mode2) { + m2 = p1_old; + p1_old = nomsg; + if ((int )m2 != (int )nomsg) { + if ((int )m2 > (int )id2) { + send2 = m2; + } else + if ((int )m2 == (int )id2) { + st2 = (char)1; + } + } + mode2 = (_Bool)0; + } else { + p2_new = send2 != nomsg && p2_new == nomsg ? send2 : p2_new; + mode2 = (_Bool)1; + } + return; +} +} +void node3(void) +{ + msg_t m3 ; + + { + m3 = nomsg; + if (mode3) { + m3 = p2_old; + p2_old = nomsg; + if ((int )m3 != (int )nomsg) { + if ((int )m3 > (int )id3) { + send3 = m3; + } else + if ((int )m3 == (int )id3) { + st3 = (char)1; + } + } + mode3 = (_Bool)0; + } else { + p3_new = send3 != nomsg && p3_new == nomsg ? send3 : p3_new; + mode3 = (_Bool)1; + } + return; +} +} +void (*nodes[3])(void) = { & node1, & node2, & node3}; +int init(void) +{ + int tmp ; + + { + if ((int )r1 == 0) { + if ((int )id1 >= 0) { + if ((int )st1 == 0) { + if ((int )send1 == (int )id1) { + if ((int )mode1 == 0) { + if ((int )id2 >= 0) { + if ((int )st2 == 0) { + if ((int )send2 == (int )id2) { + if ((int )mode2 == 0) { + if ((int )id3 >= 0) { + if ((int )st3 == 0) { + if ((int )send3 == (int )id3) { + if ((int )mode3 == 0) { + if ((int )id1 != (int )id2) { + if ((int )id1 != (int )id3) { + if ((int )id2 != (int )id3) { + tmp = 1; + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + return (tmp); +} +} +int check(void) +{ + int tmp ; + + { + if (((int )st1 + (int )st2) + (int )st3 <= 1) { + if ((int )r1 >= 3) { + goto _L; + } else + if (((int )st1 + (int )st2) + (int )st3 == 0) { + _L: /* CIL Label */ + if ((int )r1 < 3) { + tmp = 1; + } else + if (((int )st1 + (int )st2) + (int )st3 == 1) { + tmp = 1; + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + return (tmp); +} +} +int main(void) +{ + int c1 ; + int i2 ; + + { + c1 = 0; + r1 = __VERIFIER_nondet_char(); + id1 = __VERIFIER_nondet_char(); + st1 = __VERIFIER_nondet_char(); + send1 = __VERIFIER_nondet_msg_t(); + mode1 = __VERIFIER_nondet__Bool(); + id2 = __VERIFIER_nondet_char(); + st2 = __VERIFIER_nondet_char(); + send2 = __VERIFIER_nondet_msg_t(); + mode2 = __VERIFIER_nondet__Bool(); + id3 = __VERIFIER_nondet_char(); + st3 = __VERIFIER_nondet_char(); + send3 = __VERIFIER_nondet_msg_t(); + mode3 = __VERIFIER_nondet__Bool(); + i2 = init(); + __VERIFIER_assume(i2); + p1_old = nomsg; + p1_new = nomsg; + p2_old = nomsg; + p2_new = nomsg; + p3_old = nomsg; + p3_new = nomsg; + i2 = 0; + while (i2 < 6) { + { + node1(); + node2(); + node3(); + p1_old = p1_new; + p1_new = nomsg; + p2_old = p2_new; + p2_new = nomsg; + p3_old = p3_new; + p3_new = nomsg; + c1 = check(); + assert(c1); + i2 ++; + } + } +} +} +void __VERIFIER_assume(_Bool arg ) +{ + + + { + while (! arg) { + { + + } + } +} +} +void assert(_Bool arg ) +{ + + + { + if (! arg) { + { + ERROR: __VERIFIER_error(); + } + } +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_lcr.8_false-unreach-call.1.ufo.BOUNDED-16.pals.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_lcr.8_false-unreach-call.1.ufo.BOUNDED-16.pals.c new file mode 100644 index 000000000..9d099f13a --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_lcr.8_false-unreach-call.1.ufo.BOUNDED-16.pals.c @@ -0,0 +1,730 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/********************************************************************** + +Copyright (c) 2013 Carnegie Mellon University. All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following acknowledgments and +disclaimers. + +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. + +3. The names "Carnegie Mellon University," "SEI" and/or "Software +Engineering Institute" shall not be used to endorse or promote +products derived from this software without prior written +permission. For written permission, please contact +permission@sei.cmu.edu. + +4. Products derived from this software may not be called "SEI" nor may +"SEI" appear in their names without prior written permission of +permission@sei.cmu.edu. + +5. Redistributions of any form whatsoever must retain the following +acknowledgment: + +This material is based upon work funded and supported by the +Department of Defense under Contract No. FA8721-05-C-0003 with +Carnegie Mellon University for the operation of the Software +Engineering Institute, a federally funded research and development +center. + +Any opinions, findings and conclusions or recommendations expressed in +this material are those of the author(s) and do not necessarily +reflect the views of the United States Department of Defense. + +NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING +INSTITUTE MATERIAL IS FURNISHEDON AN "AS-IS" BASIS. CARNEGIE MELLON +UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITHER EXPRESSED OR +IMPLIED, AS TO ANY MATTER INCLUDING, BUT NOT LIMITED TO, WARRANTY OF +FITNESS FOR PURPOSE OR MERCHANTABILITY, EXCLUSIVITY, OR RESULTS +OBTAINED FROM USE OF THE MATERIAL. CARNEGIE MELLON UNIVERSITY DOES NOT +MAKE ANY WARRANTY OF ANY KIND WITH RESPECT TO FREEDOM FROM PATENT, +TRADEMARK, OR COPYRIGHT INFRINGEMENT. + +This material has been approved for public release and unlimited +distribution. + +DM-0000575 + +**********************************************************************/ + +/* Generated by CIL v. 1.6.0 */ +/* print_CIL_Input is true */ + +_Bool __VERIFIER_nondet__Bool(void) ; +char __VERIFIER_nondet_msg_t(void) ; +char __VERIFIER_nondet_char(void) ; +void assert(_Bool arg ) ; +void __VERIFIER_assume(_Bool arg ) ; +typedef char msg_t; +typedef int port_t; +extern void read(port_t p , msg_t m ) ; +extern void write(port_t p , msg_t m ) ; +msg_t nomsg = (msg_t )-1; +char r1 ; +port_t p1 ; +char p1_old ; +char p1_new ; +char id1 ; +char st1 ; +msg_t send1 ; +_Bool mode1 ; +port_t p2 ; +char p2_old ; +char p2_new ; +char id2 ; +char st2 ; +msg_t send2 ; +_Bool mode2 ; +port_t p3 ; +char p3_old ; +char p3_new ; +char id3 ; +char st3 ; +msg_t send3 ; +_Bool mode3 ; +port_t p4 ; +char p4_old ; +char p4_new ; +char id4 ; +char st4 ; +msg_t send4 ; +_Bool mode4 ; +port_t p5 ; +char p5_old ; +char p5_new ; +char id5 ; +char st5 ; +msg_t send5 ; +_Bool mode5 ; +port_t p6 ; +char p6_old ; +char p6_new ; +char id6 ; +char st6 ; +msg_t send6 ; +_Bool mode6 ; +port_t p7 ; +char p7_old ; +char p7_new ; +char id7 ; +char st7 ; +msg_t send7 ; +_Bool mode7 ; +port_t p8 ; +char p8_old ; +char p8_new ; +char id8 ; +char st8 ; +msg_t send8 ; +_Bool mode8 ; +void node1(void) +{ + msg_t m1 ; + + { + m1 = nomsg; + if (mode1) { + r1 = (char )((int )r1 + 1); + m1 = p8_old; + p8_old = nomsg; + if ((int )m1 != (int )nomsg) { + if ((int )m1 > (int )id1) { + send1 = m1; + } else + if ((int )m1 == (int )id1) { + st1 = (char)1; + } else { + send1 = m1; + } + } + mode1 = (_Bool)0; + } else { + p1_new = send1 != nomsg && p1_new == nomsg ? send1 : p1_new; + mode1 = (_Bool)1; + } + return; +} +} +void node2(void) +{ + msg_t m2 ; + + { + m2 = nomsg; + if (mode2) { + m2 = p1_old; + p1_old = nomsg; + if ((int )m2 != (int )nomsg) { + if ((int )m2 > (int )id2) { + send2 = m2; + } else + if ((int )m2 == (int )id2) { + st2 = (char)1; + } + } + mode2 = (_Bool)0; + } else { + p2_new = send2 != nomsg && p2_new == nomsg ? send2 : p2_new; + mode2 = (_Bool)1; + } + return; +} +} +void node3(void) +{ + msg_t m3 ; + + { + m3 = nomsg; + if (mode3) { + m3 = p2_old; + p2_old = nomsg; + if ((int )m3 != (int )nomsg) { + if ((int )m3 > (int )id3) { + send3 = m3; + } else + if ((int )m3 == (int )id3) { + st3 = (char)1; + } + } + mode3 = (_Bool)0; + } else { + p3_new = send3 != nomsg && p3_new == nomsg ? send3 : p3_new; + mode3 = (_Bool)1; + } + return; +} +} +void node4(void) +{ + msg_t m4 ; + + { + m4 = nomsg; + if (mode4) { + m4 = p3_old; + p3_old = nomsg; + if ((int )m4 != (int )nomsg) { + if ((int )m4 > (int )id4) { + send4 = m4; + } else + if ((int )m4 == (int )id4) { + st4 = (char)1; + } + } + mode4 = (_Bool)0; + } else { + p4_new = send4 != nomsg && p4_new == nomsg ? send4 : p4_new; + mode4 = (_Bool)1; + } + return; +} +} +void node5(void) +{ + msg_t m5 ; + + { + m5 = nomsg; + if (mode5) { + m5 = p4_old; + p4_old = nomsg; + if ((int )m5 != (int )nomsg) { + if ((int )m5 > (int )id5) { + send5 = m5; + } else + if ((int )m5 == (int )id5) { + st5 = (char)1; + } + } + mode5 = (_Bool)0; + } else { + p5_new = send5 != nomsg && p5_new == nomsg ? send5 : p5_new; + mode5 = (_Bool)1; + } + return; +} +} +void node6(void) +{ + msg_t m6 ; + + { + m6 = nomsg; + if (mode6) { + m6 = p5_old; + p5_old = nomsg; + if ((int )m6 != (int )nomsg) { + if ((int )m6 > (int )id6) { + send6 = m6; + } else + if ((int )m6 == (int )id6) { + st6 = (char)1; + } + } + mode6 = (_Bool)0; + } else { + p6_new = send6 != nomsg && p6_new == nomsg ? send6 : p6_new; + mode6 = (_Bool)1; + } + return; +} +} +void node7(void) +{ + msg_t m7 ; + + { + m7 = nomsg; + if (mode7) { + m7 = p6_old; + p6_old = nomsg; + if ((int )m7 != (int )nomsg) { + if ((int )m7 > (int )id7) { + send7 = m7; + } else + if ((int )m7 == (int )id7) { + st7 = (char)1; + } + } + mode7 = (_Bool)0; + } else { + p7_new = send7 != nomsg && p7_new == nomsg ? send7 : p7_new; + mode7 = (_Bool)1; + } + return; +} +} +void node8(void) +{ + msg_t m8 ; + + { + m8 = nomsg; + if (mode8) { + m8 = p7_old; + p7_old = nomsg; + if ((int )m8 != (int )nomsg) { + if ((int )m8 > (int )id8) { + send8 = m8; + } else + if ((int )m8 == (int )id8) { + st8 = (char)1; + } + } + mode8 = (_Bool)0; + } else { + p8_new = send8 != nomsg && p8_new == nomsg ? send8 : p8_new; + mode8 = (_Bool)1; + } + return; +} +} +void (*nodes[8])(void) = + { & node1, & node2, & node3, & node4, + & node5, & node6, & node7, & node8}; +int init(void) +{ + int tmp ; + + { + if ((int )r1 == 0) { + if ((int )id1 >= 0) { + if ((int )st1 == 0) { + if ((int )send1 == (int )id1) { + if ((int )mode1 == 0) { + if ((int )id2 >= 0) { + if ((int )st2 == 0) { + if ((int )send2 == (int )id2) { + if ((int )mode2 == 0) { + if ((int )id3 >= 0) { + if ((int )st3 == 0) { + if ((int )send3 == (int )id3) { + if ((int )mode3 == 0) { + if ((int )id4 >= 0) { + if ((int )st4 == 0) { + if ((int )send4 == (int )id4) { + if ((int )mode4 == 0) { + if ((int )id5 >= 0) { + if ((int )st5 == 0) { + if ((int )send5 == (int )id5) { + if ((int )mode5 == 0) { + if ((int )id6 >= 0) { + if ((int )st6 == 0) { + if ((int )send6 == (int )id6) { + if ((int )mode6 == 0) { + if ((int )id7 >= 0) { + if ((int )st7 == 0) { + if ((int )send7 == (int )id7) { + if ((int )mode7 == 0) { + if ((int )id8 >= 0) { + if ((int )st8 == 0) { + if ((int )send8 == (int )id8) { + if ((int )mode8 == 0) { + if ((int )id1 != (int )id2) { + if ((int )id1 != (int )id3) { + if ((int )id1 != (int )id4) { + if ((int )id1 != (int )id5) { + if ((int )id1 != (int )id6) { + if ((int )id1 != (int )id7) { + if ((int )id1 != (int )id8) { + if ((int )id2 != (int )id3) { + if ((int )id2 != (int )id4) { + if ((int )id2 != (int )id5) { + if ((int )id2 != (int )id6) { + if ((int )id2 != (int )id7) { + if ((int )id2 != (int )id8) { + if ((int )id3 != (int )id4) { + if ((int )id3 != (int )id5) { + if ((int )id3 != (int )id6) { + if ((int )id3 != (int )id7) { + if ((int )id3 != (int )id8) { + if ((int )id4 != (int )id5) { + if ((int )id4 != (int )id6) { + if ((int )id4 != (int )id7) { + if ((int )id4 != (int )id8) { + if ((int )id5 != (int )id6) { + if ((int )id5 != (int )id7) { + if ((int )id5 != (int )id8) { + if ((int )id6 != (int )id7) { + if ((int )id6 != (int )id8) { + if ((int )id7 != (int )id8) { + tmp = 1; + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + return (tmp); +} +} +int check(void) +{ + int tmp ; + + { + if ((((((((int )st1 + (int )st2) + (int )st3) + (int )st4) + (int )st5) + (int )st6) + (int )st7) + (int )st8 <= 1) { + if ((int )r1 >= 8) { + goto _L; + } else + if ((((((((int )st1 + (int )st2) + (int )st3) + (int )st4) + (int )st5) + (int )st6) + (int )st7) + (int )st8 == 0) { + _L: /* CIL Label */ + if ((int )r1 < 8) { + tmp = 1; + } else + if ((((((((int )st1 + (int )st2) + (int )st3) + (int )st4) + (int )st5) + (int )st6) + (int )st7) + (int )st8 == 1) { + tmp = 1; + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + return (tmp); +} +} +int main(void) +{ + int c1 ; + int i2 ; + + { + c1 = 0; + r1 = __VERIFIER_nondet_char(); + id1 = __VERIFIER_nondet_char(); + st1 = __VERIFIER_nondet_char(); + send1 = __VERIFIER_nondet_msg_t(); + mode1 = __VERIFIER_nondet__Bool(); + id2 = __VERIFIER_nondet_char(); + st2 = __VERIFIER_nondet_char(); + send2 = __VERIFIER_nondet_msg_t(); + mode2 = __VERIFIER_nondet__Bool(); + id3 = __VERIFIER_nondet_char(); + st3 = __VERIFIER_nondet_char(); + send3 = __VERIFIER_nondet_msg_t(); + mode3 = __VERIFIER_nondet__Bool(); + id4 = __VERIFIER_nondet_char(); + st4 = __VERIFIER_nondet_char(); + send4 = __VERIFIER_nondet_msg_t(); + mode4 = __VERIFIER_nondet__Bool(); + id5 = __VERIFIER_nondet_char(); + st5 = __VERIFIER_nondet_char(); + send5 = __VERIFIER_nondet_msg_t(); + mode5 = __VERIFIER_nondet__Bool(); + id6 = __VERIFIER_nondet_char(); + st6 = __VERIFIER_nondet_char(); + send6 = __VERIFIER_nondet_msg_t(); + mode6 = __VERIFIER_nondet__Bool(); + id7 = __VERIFIER_nondet_char(); + st7 = __VERIFIER_nondet_char(); + send7 = __VERIFIER_nondet_msg_t(); + mode7 = __VERIFIER_nondet__Bool(); + id8 = __VERIFIER_nondet_char(); + st8 = __VERIFIER_nondet_char(); + send8 = __VERIFIER_nondet_msg_t(); + mode8 = __VERIFIER_nondet__Bool(); + i2 = init(); + __VERIFIER_assume(i2); + p1_old = nomsg; + p1_new = nomsg; + p2_old = nomsg; + p2_new = nomsg; + p3_old = nomsg; + p3_new = nomsg; + p4_old = nomsg; + p4_new = nomsg; + p5_old = nomsg; + p5_new = nomsg; + p6_old = nomsg; + p6_new = nomsg; + p7_old = nomsg; + p7_new = nomsg; + p8_old = nomsg; + p8_new = nomsg; + i2 = 0; + while (i2 < 16) { + { + node1(); + node2(); + node3(); + node4(); + node5(); + node6(); + node7(); + node8(); + p1_old = p1_new; + p1_new = nomsg; + p2_old = p2_new; + p2_new = nomsg; + p3_old = p3_new; + p3_new = nomsg; + p4_old = p4_new; + p4_new = nomsg; + p5_old = p5_new; + p5_new = nomsg; + p6_old = p6_new; + p6_new = nomsg; + p7_old = p7_new; + p7_new = nomsg; + p8_old = p8_new; + p8_new = nomsg; + c1 = check(); + assert(c1); + i2 ++; + } + } +} +} +void __VERIFIER_assume(_Bool arg ) +{ + + + { + while (! arg) { + { + + } + } +} +} +void assert(_Bool arg ) +{ + + + { + if (! arg) { + { + ERROR: __VERIFIER_error(); + } + } +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_opt-floodmax.3_false-unreach-call.1.ufo.BOUNDED-6.pals.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_opt-floodmax.3_false-unreach-call.1.ufo.BOUNDED-6.pals.c new file mode 100644 index 000000000..eb9558e94 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_opt-floodmax.3_false-unreach-call.1.ufo.BOUNDED-6.pals.c @@ -0,0 +1,634 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/********************************************************************** + +Copyright (c) 2013 Carnegie Mellon University. All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following acknowledgments and +disclaimers. + +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. + +3. The names "Carnegie Mellon University," "SEI" and/or "Software +Engineering Institute" shall not be used to endorse or promote +products derived from this software without prior written +permission. For written permission, please contact +permission@sei.cmu.edu. + +4. Products derived from this software may not be called "SEI" nor may +"SEI" appear in their names without prior written permission of +permission@sei.cmu.edu. + +5. Redistributions of any form whatsoever must retain the following +acknowledgment: + +This material is based upon work funded and supported by the +Department of Defense under Contract No. FA8721-05-C-0003 with +Carnegie Mellon University for the operation of the Software +Engineering Institute, a federally funded research and development +center. + +Any opinions, findings and conclusions or recommendations expressed in +this material are those of the author(s) and do not necessarily +reflect the views of the United States Department of Defense. + +NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING +INSTITUTE MATERIAL IS FURNISHEDON AN "AS-IS" BASIS. CARNEGIE MELLON +UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITHER EXPRESSED OR +IMPLIED, AS TO ANY MATTER INCLUDING, BUT NOT LIMITED TO, WARRANTY OF +FITNESS FOR PURPOSE OR MERCHANTABILITY, EXCLUSIVITY, OR RESULTS +OBTAINED FROM USE OF THE MATERIAL. CARNEGIE MELLON UNIVERSITY DOES NOT +MAKE ANY WARRANTY OF ANY KIND WITH RESPECT TO FREEDOM FROM PATENT, +TRADEMARK, OR COPYRIGHT INFRINGEMENT. + +This material has been approved for public release and unlimited +distribution. + +DM-0000575 + +**********************************************************************/ + +/* Generated by CIL v. 1.6.0 */ +/* print_CIL_Input is true */ + +char __VERIFIER_nondet_char(void) ; +_Bool __VERIFIER_nondet__Bool(void) ; +void assert(_Bool arg ) ; +void __VERIFIER_assume(_Bool arg ) ; +typedef char msg_t; +typedef int port_t; +extern void read(port_t p , msg_t m ) ; +extern void write(port_t p , msg_t m ) ; +msg_t nomsg = (msg_t )-1; +port_t p12 ; +char p12_old ; +char p12_new ; +_Bool ep12 ; +port_t p13 ; +char p13_old ; +char p13_new ; +_Bool ep13 ; +port_t p21 ; +char p21_old ; +char p21_new ; +_Bool ep21 ; +port_t p23 ; +char p23_old ; +char p23_new ; +_Bool ep23 ; +port_t p31 ; +char p31_old ; +char p31_new ; +_Bool ep31 ; +port_t p32 ; +char p32_old ; +char p32_new ; +_Bool ep32 ; +char id1 ; +char r1 ; +char st1 ; +char nl1 ; +char m1 ; +char max1 ; +_Bool mode1 ; +_Bool newmax1 ; +char id2 ; +char r2 ; +char st2 ; +char nl2 ; +char m2 ; +char max2 ; +_Bool mode2 ; +_Bool newmax2 ; +char id3 ; +char r3 ; +char st3 ; +char nl3 ; +char m3 ; +char max3 ; +_Bool mode3 ; +_Bool newmax3 ; +void node1(void) +{ + _Bool newmax ; + + { + newmax = (_Bool)0; + if (mode1) { + r1 = (char )((int )r1 + 1); + if (ep21) { + m1 = p21_old; + p21_old = nomsg; + if ((int )m1 > (int )max1) { + max1 = m1; + newmax = (_Bool)1; + } + } + if (ep31) { + m1 = p31_old; + p31_old = nomsg; + if ((int )m1 > (int )max1) { + max1 = m1; + newmax = (_Bool)1; + } + } + newmax1 = newmax; + if ((int )r1 == 2) { + if ((int )max1 == (int )id1) { + st1 = (char)1; + } else { + nl1 = (char)1; + } + } + mode1 = (_Bool)0; + } else { + if ((int )r1 < 2) { + if (ep12) { + if (newmax1) { + p12_new = max1 != nomsg && p12_new == nomsg ? max1 : p12_new; + } + } + if (ep13) { + if (newmax1) { + p13_new = max1 != nomsg && p13_new == nomsg ? max1 : p13_new; + } + } + } + mode1 = (_Bool)1; + } + return; +} +} +void node2(void) +{ + _Bool newmax ; + + { + newmax = (_Bool)0; + if (mode2) { + r2 = (char )((int )r2 + 1); + if (ep12) { + m2 = p12_old; + p12_old = nomsg; + if ((int )m2 > (int )max2) { + max2 = m2; + newmax = (_Bool)1; + } + } + if (ep32) { + m2 = p32_old; + p32_old = nomsg; + if ((int )m2 > (int )max2) { + max2 = m2; + newmax = (_Bool)1; + } + } + newmax2 = newmax; + if ((int )r2 == 2) { + if ((int )max2 == (int )id2) { + st2 = (char)1; + } else { + nl2 = (char)1; + } + } + mode2 = (_Bool)0; + } else { + if ((int )r2 < 2) { + if (ep21) { + if (newmax2) { + p21_new = max2 != nomsg && p21_new == nomsg ? max2 : p21_new; + } + } + if (ep23) { + if (newmax2) { + p23_new = max2 != nomsg && p23_new == nomsg ? max2 : p23_new; + } + } + } + mode2 = (_Bool)1; + } + return; +} +} +void node3(void) +{ + _Bool newmax ; + + { + newmax = (_Bool)0; + if (mode3) { + r3 = (char )((int )r3 + 1); + if (ep13) { + m3 = p13_old; + p13_old = nomsg; + if ((int )m3 > (int )max3) { + max3 = m3; + newmax = (_Bool)1; + } + } + if (ep23) { + m3 = p23_old; + p23_old = nomsg; + if ((int )m3 > (int )max3) { + max3 = m3; + newmax = (_Bool)1; + } + } + newmax3 = newmax; + if ((int )r3 == 2) { + if ((int )max3 == (int )id3) { + st3 = (char)1; + } else { + nl3 = (char)1; + } + } + mode3 = (_Bool)0; + } else { + if ((int )r3 < 2) { + if (ep31) { + if (newmax3) { + p31_new = max3 != nomsg && p31_new == nomsg ? max3 : p31_new; + } + } + if (ep32) { + if (newmax3) { + p32_new = max3 != nomsg && p32_new == nomsg ? max3 : p32_new; + } + } + } + mode3 = (_Bool)1; + } + return; +} +} +void (*nodes[3])(void) = { & node1, & node2, & node3}; +int init(void) +{ + _Bool r121 ; + _Bool r131 ; + _Bool r211 ; + _Bool r231 ; + _Bool r311 ; + _Bool r321 ; + _Bool r122 ; + int tmp ; + _Bool r132 ; + int tmp___0 ; + _Bool r212 ; + int tmp___1 ; + _Bool r232 ; + int tmp___2 ; + _Bool r312 ; + int tmp___3 ; + _Bool r322 ; + int tmp___4 ; + int tmp___5 ; + + { + r121 = ep12; + r131 = ep13; + r211 = ep21; + r231 = ep23; + r311 = ep31; + r321 = ep32; + if (r121) { + tmp = 1; + } else + if (r131) { + if (ep32) { + tmp = 1; + } else { + tmp = 0; + } + } else { + tmp = 0; + } + r122 = (_Bool )tmp; + if (r131) { + tmp___0 = 1; + } else + if (r121) { + if (ep23) { + tmp___0 = 1; + } else { + tmp___0 = 0; + } + } else { + tmp___0 = 0; + } + r132 = (_Bool )tmp___0; + if (r211) { + tmp___1 = 1; + } else + if (r231) { + if (ep31) { + tmp___1 = 1; + } else { + tmp___1 = 0; + } + } else { + tmp___1 = 0; + } + r212 = (_Bool )tmp___1; + if (r231) { + tmp___2 = 1; + } else + if (r211) { + if (ep13) { + tmp___2 = 1; + } else { + tmp___2 = 0; + } + } else { + tmp___2 = 0; + } + r232 = (_Bool )tmp___2; + if (r311) { + tmp___3 = 1; + } else + if (r321) { + if (ep21) { + tmp___3 = 1; + } else { + tmp___3 = 0; + } + } else { + tmp___3 = 0; + } + r312 = (_Bool )tmp___3; + if (r321) { + tmp___4 = 1; + } else + if (r311) { + if (ep12) { + tmp___4 = 1; + } else { + tmp___4 = 0; + } + } else { + tmp___4 = 0; + } + r322 = (_Bool )tmp___4; + if ((int )id1 != (int )id2) { + if ((int )id1 != (int )id3) { + if ((int )id2 != (int )id3) { + if ((int )id1 >= 0) { + if ((int )id2 >= 0) { + if ((int )id3 >= 0) { + if ((int )r1 == 0) { + if ((int )r2 == 0) { + if ((int )r3 == 0) { + if ((int )max1 == (int )id1) { + if ((int )max2 == (int )id2) { + if ((int )max3 == (int )id3) { + if ((int )st1 == 0) { + if ((int )st2 == 0) { + if ((int )st3 == 0) { + if ((int )nl1 == 0) { + if ((int )nl2 == 0) { + if ((int )nl3 == 0) { + if ((int )mode1 == 0) { + if ((int )mode2 == 0) { + if ((int )mode3 == 0) { + if (newmax1) { + if (newmax2) { + if (newmax3) { + tmp___5 = 1; + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + return (tmp___5); +} +} +int check(void) +{ + int tmp ; + + { + if (((int )st1 + (int )st2) + (int )st3 <= 1) { + if ((int )st1 + (int )nl1 <= 1) { + if ((int )st2 + (int )nl2 <= 1) { + if ((int )st3 + (int )nl3 <= 1) { + if ((int )r1 >= 2) { + goto _L___1; + } else + if (((int )st1 + (int )st2) + (int )st3 == 0) { + _L___1: /* CIL Label */ + if ((int )r1 < 2) { + goto _L___0; + } else + if (((int )st1 + (int )st2) + (int )st3 == 1) { + _L___0: /* CIL Label */ + if ((int )r1 >= 2) { + goto _L; + } else + if (((int )nl1 + (int )nl2) + (int )nl3 == 0) { + _L: /* CIL Label */ + if ((int )r1 < 2) { + tmp = 1; + } else + if (((int )nl1 + (int )nl2) + (int )nl3 == 2) { + tmp = 1; + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + return (tmp); +} +} +int main(void) +{ + int c1 ; + int i2 ; + + { + c1 = 0; + ep12 = __VERIFIER_nondet__Bool(); + ep13 = __VERIFIER_nondet__Bool(); + ep21 = __VERIFIER_nondet__Bool(); + ep23 = __VERIFIER_nondet__Bool(); + ep31 = __VERIFIER_nondet__Bool(); + ep32 = __VERIFIER_nondet__Bool(); + id1 = __VERIFIER_nondet_char(); + r1 = __VERIFIER_nondet_char(); + st1 = __VERIFIER_nondet_char(); + nl1 = __VERIFIER_nondet_char(); + m1 = __VERIFIER_nondet_char(); + max1 = __VERIFIER_nondet_char(); + mode1 = __VERIFIER_nondet__Bool(); + newmax1 = __VERIFIER_nondet__Bool(); + id2 = __VERIFIER_nondet_char(); + r2 = __VERIFIER_nondet_char(); + st2 = __VERIFIER_nondet_char(); + nl2 = __VERIFIER_nondet_char(); + m2 = __VERIFIER_nondet_char(); + max2 = __VERIFIER_nondet_char(); + mode2 = __VERIFIER_nondet__Bool(); + newmax2 = __VERIFIER_nondet__Bool(); + id3 = __VERIFIER_nondet_char(); + r3 = __VERIFIER_nondet_char(); + st3 = __VERIFIER_nondet_char(); + nl3 = __VERIFIER_nondet_char(); + m3 = __VERIFIER_nondet_char(); + max3 = __VERIFIER_nondet_char(); + mode3 = __VERIFIER_nondet__Bool(); + newmax3 = __VERIFIER_nondet__Bool(); + i2 = init(); + __VERIFIER_assume(i2); + p12_old = nomsg; + p12_new = nomsg; + p13_old = nomsg; + p13_new = nomsg; + p21_old = nomsg; + p21_new = nomsg; + p23_old = nomsg; + p23_new = nomsg; + p31_old = nomsg; + p31_new = nomsg; + p32_old = nomsg; + p32_new = nomsg; + i2 = 0; + while (i2 < 6) { + { + node1(); + node2(); + node3(); + p12_old = p12_new; + p12_new = nomsg; + p13_old = p13_new; + p13_new = nomsg; + p21_old = p21_new; + p21_new = nomsg; + p23_old = p23_new; + p23_new = nomsg; + p31_old = p31_new; + p31_new = nomsg; + p32_old = p32_new; + p32_new = nomsg; + c1 = check(); + assert(c1); + i2 ++; + } + } +} +} +void __VERIFIER_assume(_Bool arg ) +{ + + + { + while (! arg) { + { + + } + } +} +} +void assert(_Bool arg ) +{ + + + { + if (! arg) { + { + ERROR: __VERIFIER_error(); + } + } +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_opt-floodmax.5_false-unreach-call.1.ufo.BOUNDED-10.pals.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_opt-floodmax.5_false-unreach-call.1.ufo.BOUNDED-10.pals.c new file mode 100644 index 000000000..4d928f113 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pals_opt-floodmax.5_false-unreach-call.1.ufo.BOUNDED-10.pals.c @@ -0,0 +1,2917 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/********************************************************************** + +Copyright (c) 2013 Carnegie Mellon University. All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following acknowledgments and +disclaimers. + +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. + +3. The names "Carnegie Mellon University," "SEI" and/or "Software +Engineering Institute" shall not be used to endorse or promote +products derived from this software without prior written +permission. For written permission, please contact +permission@sei.cmu.edu. + +4. Products derived from this software may not be called "SEI" nor may +"SEI" appear in their names without prior written permission of +permission@sei.cmu.edu. + +5. Redistributions of any form whatsoever must retain the following +acknowledgment: + +This material is based upon work funded and supported by the +Department of Defense under Contract No. FA8721-05-C-0003 with +Carnegie Mellon University for the operation of the Software +Engineering Institute, a federally funded research and development +center. + +Any opinions, findings and conclusions or recommendations expressed in +this material are those of the author(s) and do not necessarily +reflect the views of the United States Department of Defense. + +NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING +INSTITUTE MATERIAL IS FURNISHEDON AN "AS-IS" BASIS. CARNEGIE MELLON +UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITHER EXPRESSED OR +IMPLIED, AS TO ANY MATTER INCLUDING, BUT NOT LIMITED TO, WARRANTY OF +FITNESS FOR PURPOSE OR MERCHANTABILITY, EXCLUSIVITY, OR RESULTS +OBTAINED FROM USE OF THE MATERIAL. CARNEGIE MELLON UNIVERSITY DOES NOT +MAKE ANY WARRANTY OF ANY KIND WITH RESPECT TO FREEDOM FROM PATENT, +TRADEMARK, OR COPYRIGHT INFRINGEMENT. + +This material has been approved for public release and unlimited +distribution. + +DM-0000575 + +**********************************************************************/ + +/* Generated by CIL v. 1.6.0 */ +/* print_CIL_Input is true */ + +char __VERIFIER_nondet_char(void) ; +_Bool __VERIFIER_nondet__Bool(void) ; +void assert(_Bool arg ) ; +void __VERIFIER_assume(_Bool arg ) ; +typedef char msg_t; +typedef int port_t; +extern void read(port_t p , msg_t m ) ; +extern void write(port_t p , msg_t m ) ; +msg_t nomsg = (msg_t )-1; +port_t p12 ; +char p12_old ; +char p12_new ; +_Bool ep12 ; +port_t p13 ; +char p13_old ; +char p13_new ; +_Bool ep13 ; +port_t p14 ; +char p14_old ; +char p14_new ; +_Bool ep14 ; +port_t p15 ; +char p15_old ; +char p15_new ; +_Bool ep15 ; +port_t p21 ; +char p21_old ; +char p21_new ; +_Bool ep21 ; +port_t p23 ; +char p23_old ; +char p23_new ; +_Bool ep23 ; +port_t p24 ; +char p24_old ; +char p24_new ; +_Bool ep24 ; +port_t p25 ; +char p25_old ; +char p25_new ; +_Bool ep25 ; +port_t p31 ; +char p31_old ; +char p31_new ; +_Bool ep31 ; +port_t p32 ; +char p32_old ; +char p32_new ; +_Bool ep32 ; +port_t p34 ; +char p34_old ; +char p34_new ; +_Bool ep34 ; +port_t p35 ; +char p35_old ; +char p35_new ; +_Bool ep35 ; +port_t p41 ; +char p41_old ; +char p41_new ; +_Bool ep41 ; +port_t p42 ; +char p42_old ; +char p42_new ; +_Bool ep42 ; +port_t p43 ; +char p43_old ; +char p43_new ; +_Bool ep43 ; +port_t p45 ; +char p45_old ; +char p45_new ; +_Bool ep45 ; +port_t p51 ; +char p51_old ; +char p51_new ; +_Bool ep51 ; +port_t p52 ; +char p52_old ; +char p52_new ; +_Bool ep52 ; +port_t p53 ; +char p53_old ; +char p53_new ; +_Bool ep53 ; +port_t p54 ; +char p54_old ; +char p54_new ; +_Bool ep54 ; +char id1 ; +char r1 ; +char st1 ; +char nl1 ; +char m1 ; +char max1 ; +_Bool mode1 ; +_Bool newmax1 ; +char id2 ; +char r2 ; +char st2 ; +char nl2 ; +char m2 ; +char max2 ; +_Bool mode2 ; +_Bool newmax2 ; +char id3 ; +char r3 ; +char st3 ; +char nl3 ; +char m3 ; +char max3 ; +_Bool mode3 ; +_Bool newmax3 ; +char id4 ; +char r4 ; +char st4 ; +char nl4 ; +char m4 ; +char max4 ; +_Bool mode4 ; +_Bool newmax4 ; +char id5 ; +char r5 ; +char st5 ; +char nl5 ; +char m5 ; +char max5 ; +_Bool mode5 ; +_Bool newmax5 ; +void node1(void) +{ + _Bool newmax ; + + { + newmax = (_Bool)0; + if (mode1) { + r1 = (char )((int )r1 + 1); + if (ep21) { + m1 = p21_old; + p21_old = nomsg; + if ((int )m1 > (int )max1) { + max1 = m1; + newmax = (_Bool)1; + } + } + if (ep31) { + m1 = p31_old; + p31_old = nomsg; + if ((int )m1 > (int )max1) { + max1 = m1; + newmax = (_Bool)1; + } + } + if (ep41) { + m1 = p41_old; + p41_old = nomsg; + if ((int )m1 > (int )max1) { + max1 = m1; + newmax = (_Bool)1; + } + } + if (ep51) { + m1 = p51_old; + p51_old = nomsg; + if ((int )m1 > (int )max1) { + max1 = m1; + newmax = (_Bool)1; + } + } + newmax1 = newmax; + if ((int )r1 == 4) { + if ((int )max1 == (int )id1) { + st1 = (char)1; + } else { + nl1 = (char)1; + } + } + mode1 = (_Bool)0; + } else { + if ((int )r1 < 4) { + if (ep12) { + if (newmax1) { + p12_new = max1 != nomsg && p12_new == nomsg ? max1 : p12_new; + } + } + if (ep13) { + if (newmax1) { + p13_new = max1 != nomsg && p13_new == nomsg ? max1 : p13_new; + } + } + if (ep14) { + if (newmax1) { + p14_new = max1 != nomsg && p14_new == nomsg ? max1 : p14_new; + } + } + if (ep15) { + if (newmax1) { + p15_new = max1 != nomsg && p15_new == nomsg ? max1 : p15_new; + } + } + } + mode1 = (_Bool)1; + } + return; +} +} +void node2(void) +{ + _Bool newmax ; + + { + newmax = (_Bool)0; + if (mode2) { + r2 = (char )((int )r2 + 1); + if (ep12) { + m2 = p12_old; + p12_old = nomsg; + if ((int )m2 > (int )max2) { + max2 = m2; + newmax = (_Bool)1; + } + } + if (ep32) { + m2 = p32_old; + p32_old = nomsg; + if ((int )m2 > (int )max2) { + max2 = m2; + newmax = (_Bool)1; + } + } + if (ep42) { + m2 = p42_old; + p42_old = nomsg; + if ((int )m2 > (int )max2) { + max2 = m2; + newmax = (_Bool)1; + } + } + if (ep52) { + m2 = p52_old; + p52_old = nomsg; + if ((int )m2 > (int )max2) { + max2 = m2; + newmax = (_Bool)1; + } + } + newmax2 = newmax; + if ((int )r2 == 4) { + if ((int )max2 == (int )id2) { + st2 = (char)1; + } else { + nl2 = (char)1; + } + } + mode2 = (_Bool)0; + } else { + if ((int )r2 < 4) { + if (ep21) { + if (newmax2) { + p21_new = max2 != nomsg && p21_new == nomsg ? max2 : p21_new; + } + } + if (ep23) { + if (newmax2) { + p23_new = max2 != nomsg && p23_new == nomsg ? max2 : p23_new; + } + } + if (ep24) { + if (newmax2) { + p24_new = max2 != nomsg && p24_new == nomsg ? max2 : p24_new; + } + } + if (ep25) { + if (newmax2) { + p25_new = max2 != nomsg && p25_new == nomsg ? max2 : p25_new; + } + } + } + mode2 = (_Bool)1; + } + return; +} +} +void node3(void) +{ + _Bool newmax ; + + { + newmax = (_Bool)0; + if (mode3) { + r3 = (char )((int )r3 + 1); + if (ep13) { + m3 = p13_old; + p13_old = nomsg; + if ((int )m3 > (int )max3) { + max3 = m3; + newmax = (_Bool)1; + } + } + if (ep23) { + m3 = p23_old; + p23_old = nomsg; + if ((int )m3 > (int )max3) { + max3 = m3; + newmax = (_Bool)1; + } + } + if (ep43) { + m3 = p43_old; + p43_old = nomsg; + if ((int )m3 > (int )max3) { + max3 = m3; + newmax = (_Bool)1; + } + } + if (ep53) { + m3 = p53_old; + p53_old = nomsg; + if ((int )m3 > (int )max3) { + max3 = m3; + newmax = (_Bool)1; + } + } + newmax3 = newmax; + if ((int )r3 == 4) { + if ((int )max3 == (int )id3) { + st3 = (char)1; + } else { + nl3 = (char)1; + } + } + mode3 = (_Bool)0; + } else { + if ((int )r3 < 4) { + if (ep31) { + if (newmax3) { + p31_new = max3 != nomsg && p31_new == nomsg ? max3 : p31_new; + } + } + if (ep32) { + if (newmax3) { + p32_new = max3 != nomsg && p32_new == nomsg ? max3 : p32_new; + } + } + if (ep34) { + if (newmax3) { + p34_new = max3 != nomsg && p34_new == nomsg ? max3 : p34_new; + } + } + if (ep35) { + if (newmax3) { + p35_new = max3 != nomsg && p35_new == nomsg ? max3 : p35_new; + } + } + } + mode3 = (_Bool)1; + } + return; +} +} +void node4(void) +{ + _Bool newmax ; + + { + newmax = (_Bool)0; + if (mode4) { + r4 = (char )((int )r4 + 1); + if (ep14) { + m4 = p14_old; + p14_old = nomsg; + if ((int )m4 > (int )max4) { + max4 = m4; + newmax = (_Bool)1; + } + } + if (ep24) { + m4 = p24_old; + p24_old = nomsg; + if ((int )m4 > (int )max4) { + max4 = m4; + newmax = (_Bool)1; + } + } + if (ep34) { + m4 = p34_old; + p34_old = nomsg; + if ((int )m4 > (int )max4) { + max4 = m4; + newmax = (_Bool)1; + } + } + if (ep54) { + m4 = p54_old; + p54_old = nomsg; + if ((int )m4 > (int )max4) { + max4 = m4; + newmax = (_Bool)1; + } + } + newmax4 = newmax; + if ((int )r4 == 4) { + if ((int )max4 == (int )id4) { + st4 = (char)1; + } else { + nl4 = (char)1; + } + } + mode4 = (_Bool)0; + } else { + if ((int )r4 < 4) { + if (ep41) { + if (newmax4) { + p41_new = max4 != nomsg && p41_new == nomsg ? max4 : p41_new; + } + } + if (ep42) { + if (newmax4) { + p42_new = max4 != nomsg && p42_new == nomsg ? max4 : p42_new; + } + } + if (ep43) { + if (newmax4) { + p43_new = max4 != nomsg && p43_new == nomsg ? max4 : p43_new; + } + } + if (ep45) { + if (newmax4) { + p45_new = max4 != nomsg && p45_new == nomsg ? max4 : p45_new; + } + } + } + mode4 = (_Bool)1; + } + return; +} +} +void node5(void) +{ + _Bool newmax ; + + { + newmax = (_Bool)0; + if (mode5) { + r5 = (char )((int )r5 + 1); + if (ep15) { + m5 = p15_old; + p15_old = nomsg; + if ((int )m5 > (int )max5) { + max5 = m5; + newmax = (_Bool)1; + } + } + if (ep25) { + m5 = p25_old; + p25_old = nomsg; + if ((int )m5 > (int )max5) { + max5 = m5; + newmax = (_Bool)1; + } + } + if (ep35) { + m5 = p35_old; + p35_old = nomsg; + if ((int )m5 > (int )max5) { + max5 = m5; + newmax = (_Bool)1; + } + } + if (ep45) { + m5 = p45_old; + p45_old = nomsg; + if ((int )m5 > (int )max5) { + max5 = m5; + newmax = (_Bool)1; + } + } + newmax5 = newmax; + if ((int )r5 == 4) { + if ((int )max5 == (int )id5) { + st5 = (char)1; + } else { + nl5 = (char)1; + } + } + mode5 = (_Bool)0; + } else { + if ((int )r5 < 4) { + if (ep51) { + if (newmax5) { + p51_new = max5 != nomsg && p51_new == nomsg ? max5 : p51_new; + } + } + if (ep52) { + if (newmax5) { + p52_new = max5 != nomsg && p52_new == nomsg ? max5 : p52_new; + } + } + if (ep53) { + if (newmax5) { + p53_new = max5 != nomsg && p53_new == nomsg ? max5 : p53_new; + } + } + if (ep54) { + if (newmax5) { + p54_new = max5 != nomsg && p54_new == nomsg ? max5 : p54_new; + } + } + } + mode5 = (_Bool)1; + } + return; +} +} +void (*nodes[5])(void) = { & node1, & node2, & node3, & node4, + & node5}; +int init(void) +{ + _Bool r121 ; + _Bool r131 ; + _Bool r141 ; + _Bool r151 ; + _Bool r211 ; + _Bool r231 ; + _Bool r241 ; + _Bool r251 ; + _Bool r311 ; + _Bool r321 ; + _Bool r341 ; + _Bool r351 ; + _Bool r411 ; + _Bool r421 ; + _Bool r431 ; + _Bool r451 ; + _Bool r511 ; + _Bool r521 ; + _Bool r531 ; + _Bool r541 ; + _Bool r122 ; + int tmp ; + _Bool r132 ; + int tmp___0 ; + _Bool r142 ; + int tmp___1 ; + _Bool r152 ; + int tmp___2 ; + _Bool r212 ; + int tmp___3 ; + _Bool r232 ; + int tmp___4 ; + _Bool r242 ; + int tmp___5 ; + _Bool r252 ; + int tmp___6 ; + _Bool r312 ; + int tmp___7 ; + _Bool r322 ; + int tmp___8 ; + _Bool r342 ; + int tmp___9 ; + _Bool r352 ; + int tmp___10 ; + _Bool r412 ; + int tmp___11 ; + _Bool r422 ; + int tmp___12 ; + _Bool r432 ; + int tmp___13 ; + _Bool r452 ; + int tmp___14 ; + _Bool r512 ; + int tmp___15 ; + _Bool r522 ; + int tmp___16 ; + _Bool r532 ; + int tmp___17 ; + _Bool r542 ; + int tmp___18 ; + _Bool r123 ; + int tmp___19 ; + _Bool r133 ; + int tmp___20 ; + _Bool r143 ; + int tmp___21 ; + _Bool r153 ; + int tmp___22 ; + _Bool r213 ; + int tmp___23 ; + _Bool r233 ; + int tmp___24 ; + _Bool r243 ; + int tmp___25 ; + _Bool r253 ; + int tmp___26 ; + _Bool r313 ; + int tmp___27 ; + _Bool r323 ; + int tmp___28 ; + _Bool r343 ; + int tmp___29 ; + _Bool r353 ; + int tmp___30 ; + _Bool r413 ; + int tmp___31 ; + _Bool r423 ; + int tmp___32 ; + _Bool r433 ; + int tmp___33 ; + _Bool r453 ; + int tmp___34 ; + _Bool r513 ; + int tmp___35 ; + _Bool r523 ; + int tmp___36 ; + _Bool r533 ; + int tmp___37 ; + _Bool r543 ; + int tmp___38 ; + _Bool r124 ; + int tmp___39 ; + _Bool r134 ; + int tmp___40 ; + _Bool r144 ; + int tmp___41 ; + _Bool r154 ; + int tmp___42 ; + _Bool r214 ; + int tmp___43 ; + _Bool r234 ; + int tmp___44 ; + _Bool r244 ; + int tmp___45 ; + _Bool r254 ; + int tmp___46 ; + _Bool r314 ; + int tmp___47 ; + _Bool r324 ; + int tmp___48 ; + _Bool r344 ; + int tmp___49 ; + _Bool r354 ; + int tmp___50 ; + _Bool r414 ; + int tmp___51 ; + _Bool r424 ; + int tmp___52 ; + _Bool r434 ; + int tmp___53 ; + _Bool r454 ; + int tmp___54 ; + _Bool r514 ; + int tmp___55 ; + _Bool r524 ; + int tmp___56 ; + _Bool r534 ; + int tmp___57 ; + _Bool r544 ; + int tmp___58 ; + int tmp___59 ; + + { + r121 = ep12; + r131 = ep13; + r141 = ep14; + r151 = ep15; + r211 = ep21; + r231 = ep23; + r241 = ep24; + r251 = ep25; + r311 = ep31; + r321 = ep32; + r341 = ep34; + r351 = ep35; + r411 = ep41; + r421 = ep42; + r431 = ep43; + r451 = ep45; + r511 = ep51; + r521 = ep52; + r531 = ep53; + r541 = ep54; + if (r121) { + tmp = 1; + } else + if (r131) { + if (ep32) { + tmp = 1; + } else { + goto _L___0; + } + } else + _L___0: /* CIL Label */ + if (r141) { + if (ep42) { + tmp = 1; + } else { + goto _L; + } + } else + _L: /* CIL Label */ + if (r151) { + if (ep52) { + tmp = 1; + } else { + tmp = 0; + } + } else { + tmp = 0; + } + r122 = (_Bool )tmp; + if (r131) { + tmp___0 = 1; + } else + if (r121) { + if (ep23) { + tmp___0 = 1; + } else { + goto _L___2; + } + } else + _L___2: /* CIL Label */ + if (r141) { + if (ep43) { + tmp___0 = 1; + } else { + goto _L___1; + } + } else + _L___1: /* CIL Label */ + if (r151) { + if (ep53) { + tmp___0 = 1; + } else { + tmp___0 = 0; + } + } else { + tmp___0 = 0; + } + r132 = (_Bool )tmp___0; + if (r141) { + tmp___1 = 1; + } else + if (r121) { + if (ep24) { + tmp___1 = 1; + } else { + goto _L___4; + } + } else + _L___4: /* CIL Label */ + if (r131) { + if (ep34) { + tmp___1 = 1; + } else { + goto _L___3; + } + } else + _L___3: /* CIL Label */ + if (r151) { + if (ep54) { + tmp___1 = 1; + } else { + tmp___1 = 0; + } + } else { + tmp___1 = 0; + } + r142 = (_Bool )tmp___1; + if (r151) { + tmp___2 = 1; + } else + if (r121) { + if (ep25) { + tmp___2 = 1; + } else { + goto _L___6; + } + } else + _L___6: /* CIL Label */ + if (r131) { + if (ep35) { + tmp___2 = 1; + } else { + goto _L___5; + } + } else + _L___5: /* CIL Label */ + if (r141) { + if (ep45) { + tmp___2 = 1; + } else { + tmp___2 = 0; + } + } else { + tmp___2 = 0; + } + r152 = (_Bool )tmp___2; + if (r211) { + tmp___3 = 1; + } else + if (r231) { + if (ep31) { + tmp___3 = 1; + } else { + goto _L___8; + } + } else + _L___8: /* CIL Label */ + if (r241) { + if (ep41) { + tmp___3 = 1; + } else { + goto _L___7; + } + } else + _L___7: /* CIL Label */ + if (r251) { + if (ep51) { + tmp___3 = 1; + } else { + tmp___3 = 0; + } + } else { + tmp___3 = 0; + } + r212 = (_Bool )tmp___3; + if (r231) { + tmp___4 = 1; + } else + if (r211) { + if (ep13) { + tmp___4 = 1; + } else { + goto _L___10; + } + } else + _L___10: /* CIL Label */ + if (r241) { + if (ep43) { + tmp___4 = 1; + } else { + goto _L___9; + } + } else + _L___9: /* CIL Label */ + if (r251) { + if (ep53) { + tmp___4 = 1; + } else { + tmp___4 = 0; + } + } else { + tmp___4 = 0; + } + r232 = (_Bool )tmp___4; + if (r241) { + tmp___5 = 1; + } else + if (r211) { + if (ep14) { + tmp___5 = 1; + } else { + goto _L___12; + } + } else + _L___12: /* CIL Label */ + if (r231) { + if (ep34) { + tmp___5 = 1; + } else { + goto _L___11; + } + } else + _L___11: /* CIL Label */ + if (r251) { + if (ep54) { + tmp___5 = 1; + } else { + tmp___5 = 0; + } + } else { + tmp___5 = 0; + } + r242 = (_Bool )tmp___5; + if (r251) { + tmp___6 = 1; + } else + if (r211) { + if (ep15) { + tmp___6 = 1; + } else { + goto _L___14; + } + } else + _L___14: /* CIL Label */ + if (r231) { + if (ep35) { + tmp___6 = 1; + } else { + goto _L___13; + } + } else + _L___13: /* CIL Label */ + if (r241) { + if (ep45) { + tmp___6 = 1; + } else { + tmp___6 = 0; + } + } else { + tmp___6 = 0; + } + r252 = (_Bool )tmp___6; + if (r311) { + tmp___7 = 1; + } else + if (r321) { + if (ep21) { + tmp___7 = 1; + } else { + goto _L___16; + } + } else + _L___16: /* CIL Label */ + if (r341) { + if (ep41) { + tmp___7 = 1; + } else { + goto _L___15; + } + } else + _L___15: /* CIL Label */ + if (r351) { + if (ep51) { + tmp___7 = 1; + } else { + tmp___7 = 0; + } + } else { + tmp___7 = 0; + } + r312 = (_Bool )tmp___7; + if (r321) { + tmp___8 = 1; + } else + if (r311) { + if (ep12) { + tmp___8 = 1; + } else { + goto _L___18; + } + } else + _L___18: /* CIL Label */ + if (r341) { + if (ep42) { + tmp___8 = 1; + } else { + goto _L___17; + } + } else + _L___17: /* CIL Label */ + if (r351) { + if (ep52) { + tmp___8 = 1; + } else { + tmp___8 = 0; + } + } else { + tmp___8 = 0; + } + r322 = (_Bool )tmp___8; + if (r341) { + tmp___9 = 1; + } else + if (r311) { + if (ep14) { + tmp___9 = 1; + } else { + goto _L___20; + } + } else + _L___20: /* CIL Label */ + if (r321) { + if (ep24) { + tmp___9 = 1; + } else { + goto _L___19; + } + } else + _L___19: /* CIL Label */ + if (r351) { + if (ep54) { + tmp___9 = 1; + } else { + tmp___9 = 0; + } + } else { + tmp___9 = 0; + } + r342 = (_Bool )tmp___9; + if (r351) { + tmp___10 = 1; + } else + if (r311) { + if (ep15) { + tmp___10 = 1; + } else { + goto _L___22; + } + } else + _L___22: /* CIL Label */ + if (r321) { + if (ep25) { + tmp___10 = 1; + } else { + goto _L___21; + } + } else + _L___21: /* CIL Label */ + if (r341) { + if (ep45) { + tmp___10 = 1; + } else { + tmp___10 = 0; + } + } else { + tmp___10 = 0; + } + r352 = (_Bool )tmp___10; + if (r411) { + tmp___11 = 1; + } else + if (r421) { + if (ep21) { + tmp___11 = 1; + } else { + goto _L___24; + } + } else + _L___24: /* CIL Label */ + if (r431) { + if (ep31) { + tmp___11 = 1; + } else { + goto _L___23; + } + } else + _L___23: /* CIL Label */ + if (r451) { + if (ep51) { + tmp___11 = 1; + } else { + tmp___11 = 0; + } + } else { + tmp___11 = 0; + } + r412 = (_Bool )tmp___11; + if (r421) { + tmp___12 = 1; + } else + if (r411) { + if (ep12) { + tmp___12 = 1; + } else { + goto _L___26; + } + } else + _L___26: /* CIL Label */ + if (r431) { + if (ep32) { + tmp___12 = 1; + } else { + goto _L___25; + } + } else + _L___25: /* CIL Label */ + if (r451) { + if (ep52) { + tmp___12 = 1; + } else { + tmp___12 = 0; + } + } else { + tmp___12 = 0; + } + r422 = (_Bool )tmp___12; + if (r431) { + tmp___13 = 1; + } else + if (r411) { + if (ep13) { + tmp___13 = 1; + } else { + goto _L___28; + } + } else + _L___28: /* CIL Label */ + if (r421) { + if (ep23) { + tmp___13 = 1; + } else { + goto _L___27; + } + } else + _L___27: /* CIL Label */ + if (r451) { + if (ep53) { + tmp___13 = 1; + } else { + tmp___13 = 0; + } + } else { + tmp___13 = 0; + } + r432 = (_Bool )tmp___13; + if (r451) { + tmp___14 = 1; + } else + if (r411) { + if (ep15) { + tmp___14 = 1; + } else { + goto _L___30; + } + } else + _L___30: /* CIL Label */ + if (r421) { + if (ep25) { + tmp___14 = 1; + } else { + goto _L___29; + } + } else + _L___29: /* CIL Label */ + if (r431) { + if (ep35) { + tmp___14 = 1; + } else { + tmp___14 = 0; + } + } else { + tmp___14 = 0; + } + r452 = (_Bool )tmp___14; + if (r511) { + tmp___15 = 1; + } else + if (r521) { + if (ep21) { + tmp___15 = 1; + } else { + goto _L___32; + } + } else + _L___32: /* CIL Label */ + if (r531) { + if (ep31) { + tmp___15 = 1; + } else { + goto _L___31; + } + } else + _L___31: /* CIL Label */ + if (r541) { + if (ep41) { + tmp___15 = 1; + } else { + tmp___15 = 0; + } + } else { + tmp___15 = 0; + } + r512 = (_Bool )tmp___15; + if (r521) { + tmp___16 = 1; + } else + if (r511) { + if (ep12) { + tmp___16 = 1; + } else { + goto _L___34; + } + } else + _L___34: /* CIL Label */ + if (r531) { + if (ep32) { + tmp___16 = 1; + } else { + goto _L___33; + } + } else + _L___33: /* CIL Label */ + if (r541) { + if (ep42) { + tmp___16 = 1; + } else { + tmp___16 = 0; + } + } else { + tmp___16 = 0; + } + r522 = (_Bool )tmp___16; + if (r531) { + tmp___17 = 1; + } else + if (r511) { + if (ep13) { + tmp___17 = 1; + } else { + goto _L___36; + } + } else + _L___36: /* CIL Label */ + if (r521) { + if (ep23) { + tmp___17 = 1; + } else { + goto _L___35; + } + } else + _L___35: /* CIL Label */ + if (r541) { + if (ep43) { + tmp___17 = 1; + } else { + tmp___17 = 0; + } + } else { + tmp___17 = 0; + } + r532 = (_Bool )tmp___17; + if (r541) { + tmp___18 = 1; + } else + if (r511) { + if (ep14) { + tmp___18 = 1; + } else { + goto _L___38; + } + } else + _L___38: /* CIL Label */ + if (r521) { + if (ep24) { + tmp___18 = 1; + } else { + goto _L___37; + } + } else + _L___37: /* CIL Label */ + if (r531) { + if (ep34) { + tmp___18 = 1; + } else { + tmp___18 = 0; + } + } else { + tmp___18 = 0; + } + r542 = (_Bool )tmp___18; + if (r122) { + tmp___19 = 1; + } else + if (r132) { + if (ep32) { + tmp___19 = 1; + } else { + goto _L___40; + } + } else + _L___40: /* CIL Label */ + if (r142) { + if (ep42) { + tmp___19 = 1; + } else { + goto _L___39; + } + } else + _L___39: /* CIL Label */ + if (r152) { + if (ep52) { + tmp___19 = 1; + } else { + tmp___19 = 0; + } + } else { + tmp___19 = 0; + } + r123 = (_Bool )tmp___19; + if (r132) { + tmp___20 = 1; + } else + if (r122) { + if (ep23) { + tmp___20 = 1; + } else { + goto _L___42; + } + } else + _L___42: /* CIL Label */ + if (r142) { + if (ep43) { + tmp___20 = 1; + } else { + goto _L___41; + } + } else + _L___41: /* CIL Label */ + if (r152) { + if (ep53) { + tmp___20 = 1; + } else { + tmp___20 = 0; + } + } else { + tmp___20 = 0; + } + r133 = (_Bool )tmp___20; + if (r142) { + tmp___21 = 1; + } else + if (r122) { + if (ep24) { + tmp___21 = 1; + } else { + goto _L___44; + } + } else + _L___44: /* CIL Label */ + if (r132) { + if (ep34) { + tmp___21 = 1; + } else { + goto _L___43; + } + } else + _L___43: /* CIL Label */ + if (r152) { + if (ep54) { + tmp___21 = 1; + } else { + tmp___21 = 0; + } + } else { + tmp___21 = 0; + } + r143 = (_Bool )tmp___21; + if (r152) { + tmp___22 = 1; + } else + if (r122) { + if (ep25) { + tmp___22 = 1; + } else { + goto _L___46; + } + } else + _L___46: /* CIL Label */ + if (r132) { + if (ep35) { + tmp___22 = 1; + } else { + goto _L___45; + } + } else + _L___45: /* CIL Label */ + if (r142) { + if (ep45) { + tmp___22 = 1; + } else { + tmp___22 = 0; + } + } else { + tmp___22 = 0; + } + r153 = (_Bool )tmp___22; + if (r212) { + tmp___23 = 1; + } else + if (r232) { + if (ep31) { + tmp___23 = 1; + } else { + goto _L___48; + } + } else + _L___48: /* CIL Label */ + if (r242) { + if (ep41) { + tmp___23 = 1; + } else { + goto _L___47; + } + } else + _L___47: /* CIL Label */ + if (r252) { + if (ep51) { + tmp___23 = 1; + } else { + tmp___23 = 0; + } + } else { + tmp___23 = 0; + } + r213 = (_Bool )tmp___23; + if (r232) { + tmp___24 = 1; + } else + if (r212) { + if (ep13) { + tmp___24 = 1; + } else { + goto _L___50; + } + } else + _L___50: /* CIL Label */ + if (r242) { + if (ep43) { + tmp___24 = 1; + } else { + goto _L___49; + } + } else + _L___49: /* CIL Label */ + if (r252) { + if (ep53) { + tmp___24 = 1; + } else { + tmp___24 = 0; + } + } else { + tmp___24 = 0; + } + r233 = (_Bool )tmp___24; + if (r242) { + tmp___25 = 1; + } else + if (r212) { + if (ep14) { + tmp___25 = 1; + } else { + goto _L___52; + } + } else + _L___52: /* CIL Label */ + if (r232) { + if (ep34) { + tmp___25 = 1; + } else { + goto _L___51; + } + } else + _L___51: /* CIL Label */ + if (r252) { + if (ep54) { + tmp___25 = 1; + } else { + tmp___25 = 0; + } + } else { + tmp___25 = 0; + } + r243 = (_Bool )tmp___25; + if (r252) { + tmp___26 = 1; + } else + if (r212) { + if (ep15) { + tmp___26 = 1; + } else { + goto _L___54; + } + } else + _L___54: /* CIL Label */ + if (r232) { + if (ep35) { + tmp___26 = 1; + } else { + goto _L___53; + } + } else + _L___53: /* CIL Label */ + if (r242) { + if (ep45) { + tmp___26 = 1; + } else { + tmp___26 = 0; + } + } else { + tmp___26 = 0; + } + r253 = (_Bool )tmp___26; + if (r312) { + tmp___27 = 1; + } else + if (r322) { + if (ep21) { + tmp___27 = 1; + } else { + goto _L___56; + } + } else + _L___56: /* CIL Label */ + if (r342) { + if (ep41) { + tmp___27 = 1; + } else { + goto _L___55; + } + } else + _L___55: /* CIL Label */ + if (r352) { + if (ep51) { + tmp___27 = 1; + } else { + tmp___27 = 0; + } + } else { + tmp___27 = 0; + } + r313 = (_Bool )tmp___27; + if (r322) { + tmp___28 = 1; + } else + if (r312) { + if (ep12) { + tmp___28 = 1; + } else { + goto _L___58; + } + } else + _L___58: /* CIL Label */ + if (r342) { + if (ep42) { + tmp___28 = 1; + } else { + goto _L___57; + } + } else + _L___57: /* CIL Label */ + if (r352) { + if (ep52) { + tmp___28 = 1; + } else { + tmp___28 = 0; + } + } else { + tmp___28 = 0; + } + r323 = (_Bool )tmp___28; + if (r342) { + tmp___29 = 1; + } else + if (r312) { + if (ep14) { + tmp___29 = 1; + } else { + goto _L___60; + } + } else + _L___60: /* CIL Label */ + if (r322) { + if (ep24) { + tmp___29 = 1; + } else { + goto _L___59; + } + } else + _L___59: /* CIL Label */ + if (r352) { + if (ep54) { + tmp___29 = 1; + } else { + tmp___29 = 0; + } + } else { + tmp___29 = 0; + } + r343 = (_Bool )tmp___29; + if (r352) { + tmp___30 = 1; + } else + if (r312) { + if (ep15) { + tmp___30 = 1; + } else { + goto _L___62; + } + } else + _L___62: /* CIL Label */ + if (r322) { + if (ep25) { + tmp___30 = 1; + } else { + goto _L___61; + } + } else + _L___61: /* CIL Label */ + if (r342) { + if (ep45) { + tmp___30 = 1; + } else { + tmp___30 = 0; + } + } else { + tmp___30 = 0; + } + r353 = (_Bool )tmp___30; + if (r412) { + tmp___31 = 1; + } else + if (r422) { + if (ep21) { + tmp___31 = 1; + } else { + goto _L___64; + } + } else + _L___64: /* CIL Label */ + if (r432) { + if (ep31) { + tmp___31 = 1; + } else { + goto _L___63; + } + } else + _L___63: /* CIL Label */ + if (r452) { + if (ep51) { + tmp___31 = 1; + } else { + tmp___31 = 0; + } + } else { + tmp___31 = 0; + } + r413 = (_Bool )tmp___31; + if (r422) { + tmp___32 = 1; + } else + if (r412) { + if (ep12) { + tmp___32 = 1; + } else { + goto _L___66; + } + } else + _L___66: /* CIL Label */ + if (r432) { + if (ep32) { + tmp___32 = 1; + } else { + goto _L___65; + } + } else + _L___65: /* CIL Label */ + if (r452) { + if (ep52) { + tmp___32 = 1; + } else { + tmp___32 = 0; + } + } else { + tmp___32 = 0; + } + r423 = (_Bool )tmp___32; + if (r432) { + tmp___33 = 1; + } else + if (r412) { + if (ep13) { + tmp___33 = 1; + } else { + goto _L___68; + } + } else + _L___68: /* CIL Label */ + if (r422) { + if (ep23) { + tmp___33 = 1; + } else { + goto _L___67; + } + } else + _L___67: /* CIL Label */ + if (r452) { + if (ep53) { + tmp___33 = 1; + } else { + tmp___33 = 0; + } + } else { + tmp___33 = 0; + } + r433 = (_Bool )tmp___33; + if (r452) { + tmp___34 = 1; + } else + if (r412) { + if (ep15) { + tmp___34 = 1; + } else { + goto _L___70; + } + } else + _L___70: /* CIL Label */ + if (r422) { + if (ep25) { + tmp___34 = 1; + } else { + goto _L___69; + } + } else + _L___69: /* CIL Label */ + if (r432) { + if (ep35) { + tmp___34 = 1; + } else { + tmp___34 = 0; + } + } else { + tmp___34 = 0; + } + r453 = (_Bool )tmp___34; + if (r512) { + tmp___35 = 1; + } else + if (r522) { + if (ep21) { + tmp___35 = 1; + } else { + goto _L___72; + } + } else + _L___72: /* CIL Label */ + if (r532) { + if (ep31) { + tmp___35 = 1; + } else { + goto _L___71; + } + } else + _L___71: /* CIL Label */ + if (r542) { + if (ep41) { + tmp___35 = 1; + } else { + tmp___35 = 0; + } + } else { + tmp___35 = 0; + } + r513 = (_Bool )tmp___35; + if (r522) { + tmp___36 = 1; + } else + if (r512) { + if (ep12) { + tmp___36 = 1; + } else { + goto _L___74; + } + } else + _L___74: /* CIL Label */ + if (r532) { + if (ep32) { + tmp___36 = 1; + } else { + goto _L___73; + } + } else + _L___73: /* CIL Label */ + if (r542) { + if (ep42) { + tmp___36 = 1; + } else { + tmp___36 = 0; + } + } else { + tmp___36 = 0; + } + r523 = (_Bool )tmp___36; + if (r532) { + tmp___37 = 1; + } else + if (r512) { + if (ep13) { + tmp___37 = 1; + } else { + goto _L___76; + } + } else + _L___76: /* CIL Label */ + if (r522) { + if (ep23) { + tmp___37 = 1; + } else { + goto _L___75; + } + } else + _L___75: /* CIL Label */ + if (r542) { + if (ep43) { + tmp___37 = 1; + } else { + tmp___37 = 0; + } + } else { + tmp___37 = 0; + } + r533 = (_Bool )tmp___37; + if (r542) { + tmp___38 = 1; + } else + if (r512) { + if (ep14) { + tmp___38 = 1; + } else { + goto _L___78; + } + } else + _L___78: /* CIL Label */ + if (r522) { + if (ep24) { + tmp___38 = 1; + } else { + goto _L___77; + } + } else + _L___77: /* CIL Label */ + if (r532) { + if (ep34) { + tmp___38 = 1; + } else { + tmp___38 = 0; + } + } else { + tmp___38 = 0; + } + r543 = (_Bool )tmp___38; + if (r123) { + tmp___39 = 1; + } else + if (r133) { + if (ep32) { + tmp___39 = 1; + } else { + goto _L___80; + } + } else + _L___80: /* CIL Label */ + if (r143) { + if (ep42) { + tmp___39 = 1; + } else { + goto _L___79; + } + } else + _L___79: /* CIL Label */ + if (r153) { + if (ep52) { + tmp___39 = 1; + } else { + tmp___39 = 0; + } + } else { + tmp___39 = 0; + } + r124 = (_Bool )tmp___39; + if (r133) { + tmp___40 = 1; + } else + if (r123) { + if (ep23) { + tmp___40 = 1; + } else { + goto _L___82; + } + } else + _L___82: /* CIL Label */ + if (r143) { + if (ep43) { + tmp___40 = 1; + } else { + goto _L___81; + } + } else + _L___81: /* CIL Label */ + if (r153) { + if (ep53) { + tmp___40 = 1; + } else { + tmp___40 = 0; + } + } else { + tmp___40 = 0; + } + r134 = (_Bool )tmp___40; + if (r143) { + tmp___41 = 1; + } else + if (r123) { + if (ep24) { + tmp___41 = 1; + } else { + goto _L___84; + } + } else + _L___84: /* CIL Label */ + if (r133) { + if (ep34) { + tmp___41 = 1; + } else { + goto _L___83; + } + } else + _L___83: /* CIL Label */ + if (r153) { + if (ep54) { + tmp___41 = 1; + } else { + tmp___41 = 0; + } + } else { + tmp___41 = 0; + } + r144 = (_Bool )tmp___41; + if (r153) { + tmp___42 = 1; + } else + if (r123) { + if (ep25) { + tmp___42 = 1; + } else { + goto _L___86; + } + } else + _L___86: /* CIL Label */ + if (r133) { + if (ep35) { + tmp___42 = 1; + } else { + goto _L___85; + } + } else + _L___85: /* CIL Label */ + if (r143) { + if (ep45) { + tmp___42 = 1; + } else { + tmp___42 = 0; + } + } else { + tmp___42 = 0; + } + r154 = (_Bool )tmp___42; + if (r213) { + tmp___43 = 1; + } else + if (r233) { + if (ep31) { + tmp___43 = 1; + } else { + goto _L___88; + } + } else + _L___88: /* CIL Label */ + if (r243) { + if (ep41) { + tmp___43 = 1; + } else { + goto _L___87; + } + } else + _L___87: /* CIL Label */ + if (r253) { + if (ep51) { + tmp___43 = 1; + } else { + tmp___43 = 0; + } + } else { + tmp___43 = 0; + } + r214 = (_Bool )tmp___43; + if (r233) { + tmp___44 = 1; + } else + if (r213) { + if (ep13) { + tmp___44 = 1; + } else { + goto _L___90; + } + } else + _L___90: /* CIL Label */ + if (r243) { + if (ep43) { + tmp___44 = 1; + } else { + goto _L___89; + } + } else + _L___89: /* CIL Label */ + if (r253) { + if (ep53) { + tmp___44 = 1; + } else { + tmp___44 = 0; + } + } else { + tmp___44 = 0; + } + r234 = (_Bool )tmp___44; + if (r243) { + tmp___45 = 1; + } else + if (r213) { + if (ep14) { + tmp___45 = 1; + } else { + goto _L___92; + } + } else + _L___92: /* CIL Label */ + if (r233) { + if (ep34) { + tmp___45 = 1; + } else { + goto _L___91; + } + } else + _L___91: /* CIL Label */ + if (r253) { + if (ep54) { + tmp___45 = 1; + } else { + tmp___45 = 0; + } + } else { + tmp___45 = 0; + } + r244 = (_Bool )tmp___45; + if (r253) { + tmp___46 = 1; + } else + if (r213) { + if (ep15) { + tmp___46 = 1; + } else { + goto _L___94; + } + } else + _L___94: /* CIL Label */ + if (r233) { + if (ep35) { + tmp___46 = 1; + } else { + goto _L___93; + } + } else + _L___93: /* CIL Label */ + if (r243) { + if (ep45) { + tmp___46 = 1; + } else { + tmp___46 = 0; + } + } else { + tmp___46 = 0; + } + r254 = (_Bool )tmp___46; + if (r313) { + tmp___47 = 1; + } else + if (r323) { + if (ep21) { + tmp___47 = 1; + } else { + goto _L___96; + } + } else + _L___96: /* CIL Label */ + if (r343) { + if (ep41) { + tmp___47 = 1; + } else { + goto _L___95; + } + } else + _L___95: /* CIL Label */ + if (r353) { + if (ep51) { + tmp___47 = 1; + } else { + tmp___47 = 0; + } + } else { + tmp___47 = 0; + } + r314 = (_Bool )tmp___47; + if (r323) { + tmp___48 = 1; + } else + if (r313) { + if (ep12) { + tmp___48 = 1; + } else { + goto _L___98; + } + } else + _L___98: /* CIL Label */ + if (r343) { + if (ep42) { + tmp___48 = 1; + } else { + goto _L___97; + } + } else + _L___97: /* CIL Label */ + if (r353) { + if (ep52) { + tmp___48 = 1; + } else { + tmp___48 = 0; + } + } else { + tmp___48 = 0; + } + r324 = (_Bool )tmp___48; + if (r343) { + tmp___49 = 1; + } else + if (r313) { + if (ep14) { + tmp___49 = 1; + } else { + goto _L___100; + } + } else + _L___100: /* CIL Label */ + if (r323) { + if (ep24) { + tmp___49 = 1; + } else { + goto _L___99; + } + } else + _L___99: /* CIL Label */ + if (r353) { + if (ep54) { + tmp___49 = 1; + } else { + tmp___49 = 0; + } + } else { + tmp___49 = 0; + } + r344 = (_Bool )tmp___49; + if (r353) { + tmp___50 = 1; + } else + if (r313) { + if (ep15) { + tmp___50 = 1; + } else { + goto _L___102; + } + } else + _L___102: /* CIL Label */ + if (r323) { + if (ep25) { + tmp___50 = 1; + } else { + goto _L___101; + } + } else + _L___101: /* CIL Label */ + if (r343) { + if (ep45) { + tmp___50 = 1; + } else { + tmp___50 = 0; + } + } else { + tmp___50 = 0; + } + r354 = (_Bool )tmp___50; + if (r413) { + tmp___51 = 1; + } else + if (r423) { + if (ep21) { + tmp___51 = 1; + } else { + goto _L___104; + } + } else + _L___104: /* CIL Label */ + if (r433) { + if (ep31) { + tmp___51 = 1; + } else { + goto _L___103; + } + } else + _L___103: /* CIL Label */ + if (r453) { + if (ep51) { + tmp___51 = 1; + } else { + tmp___51 = 0; + } + } else { + tmp___51 = 0; + } + r414 = (_Bool )tmp___51; + if (r423) { + tmp___52 = 1; + } else + if (r413) { + if (ep12) { + tmp___52 = 1; + } else { + goto _L___106; + } + } else + _L___106: /* CIL Label */ + if (r433) { + if (ep32) { + tmp___52 = 1; + } else { + goto _L___105; + } + } else + _L___105: /* CIL Label */ + if (r453) { + if (ep52) { + tmp___52 = 1; + } else { + tmp___52 = 0; + } + } else { + tmp___52 = 0; + } + r424 = (_Bool )tmp___52; + if (r433) { + tmp___53 = 1; + } else + if (r413) { + if (ep13) { + tmp___53 = 1; + } else { + goto _L___108; + } + } else + _L___108: /* CIL Label */ + if (r423) { + if (ep23) { + tmp___53 = 1; + } else { + goto _L___107; + } + } else + _L___107: /* CIL Label */ + if (r453) { + if (ep53) { + tmp___53 = 1; + } else { + tmp___53 = 0; + } + } else { + tmp___53 = 0; + } + r434 = (_Bool )tmp___53; + if (r453) { + tmp___54 = 1; + } else + if (r413) { + if (ep15) { + tmp___54 = 1; + } else { + goto _L___110; + } + } else + _L___110: /* CIL Label */ + if (r423) { + if (ep25) { + tmp___54 = 1; + } else { + goto _L___109; + } + } else + _L___109: /* CIL Label */ + if (r433) { + if (ep35) { + tmp___54 = 1; + } else { + tmp___54 = 0; + } + } else { + tmp___54 = 0; + } + r454 = (_Bool )tmp___54; + if (r513) { + tmp___55 = 1; + } else + if (r523) { + if (ep21) { + tmp___55 = 1; + } else { + goto _L___112; + } + } else + _L___112: /* CIL Label */ + if (r533) { + if (ep31) { + tmp___55 = 1; + } else { + goto _L___111; + } + } else + _L___111: /* CIL Label */ + if (r543) { + if (ep41) { + tmp___55 = 1; + } else { + tmp___55 = 0; + } + } else { + tmp___55 = 0; + } + r514 = (_Bool )tmp___55; + if (r523) { + tmp___56 = 1; + } else + if (r513) { + if (ep12) { + tmp___56 = 1; + } else { + goto _L___114; + } + } else + _L___114: /* CIL Label */ + if (r533) { + if (ep32) { + tmp___56 = 1; + } else { + goto _L___113; + } + } else + _L___113: /* CIL Label */ + if (r543) { + if (ep42) { + tmp___56 = 1; + } else { + tmp___56 = 0; + } + } else { + tmp___56 = 0; + } + r524 = (_Bool )tmp___56; + if (r533) { + tmp___57 = 1; + } else + if (r513) { + if (ep13) { + tmp___57 = 1; + } else { + goto _L___116; + } + } else + _L___116: /* CIL Label */ + if (r523) { + if (ep23) { + tmp___57 = 1; + } else { + goto _L___115; + } + } else + _L___115: /* CIL Label */ + if (r543) { + if (ep43) { + tmp___57 = 1; + } else { + tmp___57 = 0; + } + } else { + tmp___57 = 0; + } + r534 = (_Bool )tmp___57; + if (r543) { + tmp___58 = 1; + } else + if (r513) { + if (ep14) { + tmp___58 = 1; + } else { + goto _L___118; + } + } else + _L___118: /* CIL Label */ + if (r523) { + if (ep24) { + tmp___58 = 1; + } else { + goto _L___117; + } + } else + _L___117: /* CIL Label */ + if (r533) { + if (ep34) { + tmp___58 = 1; + } else { + tmp___58 = 0; + } + } else { + tmp___58 = 0; + } + r544 = (_Bool )tmp___58; + if ((int )id1 != (int )id2) { + if ((int )id1 != (int )id3) { + if ((int )id1 != (int )id4) { + if ((int )id1 != (int )id5) { + if ((int )id2 != (int )id3) { + if ((int )id2 != (int )id4) { + if ((int )id2 != (int )id5) { + if ((int )id3 != (int )id4) { + if ((int )id3 != (int )id5) { + if ((int )id4 != (int )id5) { + if ((int )id1 >= 0) { + if ((int )id2 >= 0) { + if ((int )id3 >= 0) { + if ((int )id4 >= 0) { + if ((int )id5 >= 0) { + if ((int )r1 == 0) { + if ((int )r2 == 0) { + if ((int )r3 == 0) { + if ((int )r4 == 0) { + if ((int )r5 == 0) { + if ((int )max1 == (int )id1) { + if ((int )max2 == (int )id2) { + if ((int )max3 == (int )id3) { + if ((int )max4 == (int )id4) { + if ((int )max5 == (int )id5) { + if ((int )st1 == 0) { + if ((int )st2 == 0) { + if ((int )st3 == 0) { + if ((int )st4 == 0) { + if ((int )st5 == 0) { + if ((int )nl1 == 0) { + if ((int )nl2 == 0) { + if ((int )nl3 == 0) { + if ((int )nl4 == 0) { + if ((int )nl5 == 0) { + if ((int )mode1 == 0) { + if ((int )mode2 == 0) { + if ((int )mode3 == 0) { + if ((int )mode4 == 0) { + if ((int )mode5 == 0) { + if (newmax1) { + if (newmax2) { + if (newmax3) { + if (newmax4) { + if (newmax5) { + tmp___59 = 1; + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + } else { + tmp___59 = 0; + } + return (tmp___59); +} +} +int check(void) +{ + int tmp ; + + { + if (((((int )st1 + (int )st2) + (int )st3) + (int )st4) + (int )st5 <= 1) { + if ((int )st1 + (int )nl1 <= 1) { + if ((int )st2 + (int )nl2 <= 1) { + if ((int )st3 + (int )nl3 <= 1) { + if ((int )st4 + (int )nl4 <= 1) { + if ((int )st5 + (int )nl5 <= 1) { + if ((int )r1 >= 4) { + goto _L___1; + } else + if (((((int )st1 + (int )st2) + (int )st3) + (int )st4) + (int )st5 == 0) { + _L___1: /* CIL Label */ + if ((int )r1 < 4) { + goto _L___0; + } else + if (((((int )st1 + (int )st2) + (int )st3) + (int )st4) + (int )st5 == 1) { + _L___0: /* CIL Label */ + if ((int )r1 >= 4) { + goto _L; + } else + if (((((int )nl1 + (int )nl2) + (int )nl3) + (int )nl4) + (int )nl5 == 0) { + _L: /* CIL Label */ + if ((int )r1 < 4) { + tmp = 1; + } else + if (((((int )nl1 + (int )nl2) + (int )nl3) + (int )nl4) + (int )nl5 == 4) { + tmp = 1; + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + } else { + tmp = 0; + } + return (tmp); +} +} +int main(void) +{ + int c1 ; + int i2 ; + + { + c1 = 0; + ep12 = __VERIFIER_nondet__Bool(); + ep13 = __VERIFIER_nondet__Bool(); + ep14 = __VERIFIER_nondet__Bool(); + ep15 = __VERIFIER_nondet__Bool(); + ep21 = __VERIFIER_nondet__Bool(); + ep23 = __VERIFIER_nondet__Bool(); + ep24 = __VERIFIER_nondet__Bool(); + ep25 = __VERIFIER_nondet__Bool(); + ep31 = __VERIFIER_nondet__Bool(); + ep32 = __VERIFIER_nondet__Bool(); + ep34 = __VERIFIER_nondet__Bool(); + ep35 = __VERIFIER_nondet__Bool(); + ep41 = __VERIFIER_nondet__Bool(); + ep42 = __VERIFIER_nondet__Bool(); + ep43 = __VERIFIER_nondet__Bool(); + ep45 = __VERIFIER_nondet__Bool(); + ep51 = __VERIFIER_nondet__Bool(); + ep52 = __VERIFIER_nondet__Bool(); + ep53 = __VERIFIER_nondet__Bool(); + ep54 = __VERIFIER_nondet__Bool(); + id1 = __VERIFIER_nondet_char(); + r1 = __VERIFIER_nondet_char(); + st1 = __VERIFIER_nondet_char(); + nl1 = __VERIFIER_nondet_char(); + m1 = __VERIFIER_nondet_char(); + max1 = __VERIFIER_nondet_char(); + mode1 = __VERIFIER_nondet__Bool(); + newmax1 = __VERIFIER_nondet__Bool(); + id2 = __VERIFIER_nondet_char(); + r2 = __VERIFIER_nondet_char(); + st2 = __VERIFIER_nondet_char(); + nl2 = __VERIFIER_nondet_char(); + m2 = __VERIFIER_nondet_char(); + max2 = __VERIFIER_nondet_char(); + mode2 = __VERIFIER_nondet__Bool(); + newmax2 = __VERIFIER_nondet__Bool(); + id3 = __VERIFIER_nondet_char(); + r3 = __VERIFIER_nondet_char(); + st3 = __VERIFIER_nondet_char(); + nl3 = __VERIFIER_nondet_char(); + m3 = __VERIFIER_nondet_char(); + max3 = __VERIFIER_nondet_char(); + mode3 = __VERIFIER_nondet__Bool(); + newmax3 = __VERIFIER_nondet__Bool(); + id4 = __VERIFIER_nondet_char(); + r4 = __VERIFIER_nondet_char(); + st4 = __VERIFIER_nondet_char(); + nl4 = __VERIFIER_nondet_char(); + m4 = __VERIFIER_nondet_char(); + max4 = __VERIFIER_nondet_char(); + mode4 = __VERIFIER_nondet__Bool(); + newmax4 = __VERIFIER_nondet__Bool(); + id5 = __VERIFIER_nondet_char(); + r5 = __VERIFIER_nondet_char(); + st5 = __VERIFIER_nondet_char(); + nl5 = __VERIFIER_nondet_char(); + m5 = __VERIFIER_nondet_char(); + max5 = __VERIFIER_nondet_char(); + mode5 = __VERIFIER_nondet__Bool(); + newmax5 = __VERIFIER_nondet__Bool(); + i2 = init(); + __VERIFIER_assume(i2); + p12_old = nomsg; + p12_new = nomsg; + p13_old = nomsg; + p13_new = nomsg; + p14_old = nomsg; + p14_new = nomsg; + p15_old = nomsg; + p15_new = nomsg; + p21_old = nomsg; + p21_new = nomsg; + p23_old = nomsg; + p23_new = nomsg; + p24_old = nomsg; + p24_new = nomsg; + p25_old = nomsg; + p25_new = nomsg; + p31_old = nomsg; + p31_new = nomsg; + p32_old = nomsg; + p32_new = nomsg; + p34_old = nomsg; + p34_new = nomsg; + p35_old = nomsg; + p35_new = nomsg; + p41_old = nomsg; + p41_new = nomsg; + p42_old = nomsg; + p42_new = nomsg; + p43_old = nomsg; + p43_new = nomsg; + p45_old = nomsg; + p45_new = nomsg; + p51_old = nomsg; + p51_new = nomsg; + p52_old = nomsg; + p52_new = nomsg; + p53_old = nomsg; + p53_new = nomsg; + p54_old = nomsg; + p54_new = nomsg; + i2 = 0; + while (i2 < 10) { + { + node1(); + node2(); + node3(); + node4(); + node5(); + p12_old = p12_new; + p12_new = nomsg; + p13_old = p13_new; + p13_new = nomsg; + p14_old = p14_new; + p14_new = nomsg; + p15_old = p15_new; + p15_new = nomsg; + p21_old = p21_new; + p21_new = nomsg; + p23_old = p23_new; + p23_new = nomsg; + p24_old = p24_new; + p24_new = nomsg; + p25_old = p25_new; + p25_new = nomsg; + p31_old = p31_new; + p31_new = nomsg; + p32_old = p32_new; + p32_new = nomsg; + p34_old = p34_new; + p34_new = nomsg; + p35_old = p35_new; + p35_new = nomsg; + p41_old = p41_new; + p41_new = nomsg; + p42_old = p42_new; + p42_new = nomsg; + p43_old = p43_new; + p43_new = nomsg; + p45_old = p45_new; + p45_new = nomsg; + p51_old = p51_new; + p51_new = nomsg; + p52_old = p52_new; + p52_new = nomsg; + p53_old = p53_new; + p53_new = nomsg; + p54_old = p54_new; + p54_new = nomsg; + c1 = check(); + assert(c1); + i2 ++; + } + } +} +} +void __VERIFIER_assume(_Bool arg ) +{ + + + { + while (! arg) { + { + + } + } +} +} +void assert(_Bool arg ) +{ + + + { + if (! arg) { + { + ERROR: __VERIFIER_error(); + } + } +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pc_sfifo_1_false-unreach-call_false-termination.cil.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pc_sfifo_1_false-unreach-call_false-termination.cil.c new file mode 100644 index 000000000..03b02da0e --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/pc_sfifo_1_false-unreach-call_false-termination.cil.c @@ -0,0 +1,360 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +extern int __VERIFIER_nondet_int(); + +void error(void) +{ + + { + ERROR: __VERIFIER_error(); + return; +} +} + +int q_buf_0 ; +int q_free ; +int q_read_ev ; +int q_write_ev ; +int p_num_write ; +int p_last_write ; +int p_dw_st ; +int p_dw_pc ; +int p_dw_i ; +int c_num_read ; +int c_last_read ; +int c_dr_st ; +int c_dr_pc ; +int c_dr_i ; +int is_do_write_p_triggered(void) +{ int __retres1 ; + + { + if ((int )p_dw_pc == 1) { + if ((int )q_read_ev == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_do_read_c_triggered(void) +{ int __retres1 ; + + { + if ((int )c_dr_pc == 1) { + if ((int )q_write_ev == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +void immediate_notify_threads(void) +{ int tmp ; + int tmp___0 ; + + { + { + tmp = is_do_write_p_triggered(); + } + if (tmp) { + p_dw_st = 0; + } else { + + } + { + tmp___0 = is_do_read_c_triggered(); + } + if (tmp___0) { + c_dr_st = 0; + } else { + + } + + return; +} +} +void do_write_p(void) +{ + + + { + if ((int )p_dw_pc == 0) { + goto DW_ENTRY; + } else { + if ((int )p_dw_pc == 1) { + goto DW_WAIT_READ; + } else { + + } + } + DW_ENTRY: + { + while (1) { + while_0_continue: /* CIL Label */ ; + if ((int )q_free == 0) { + p_dw_st = 2; + p_dw_pc = 1; + + goto return_label; + DW_WAIT_READ: ; + } else { + + } + { + q_buf_0 = __VERIFIER_nondet_int(); + p_last_write = q_buf_0; + p_num_write += 1; + q_free = 0; + q_write_ev = 1; + immediate_notify_threads(); + q_write_ev = 2; + } + } + while_0_break: /* CIL Label */ ; + } + return_label: /* CIL Label */ + return; +} +} +static int a_t ; +void do_read_c(void) +{ int a ; + + { + if ((int )c_dr_pc == 0) { + goto DR_ENTRY; + } else { + if ((int )c_dr_pc == 1) { + goto DR_WAIT_WRITE; + } else { + + } + } + DR_ENTRY: + { + while (1) { + while_1_continue: /* CIL Label */ ; + if ((int )q_free == 1) { + c_dr_st = 2; + c_dr_pc = 1; + a_t = a; + + goto return_label; + DR_WAIT_WRITE: + a = a_t; + } else { + + } + { + a = q_buf_0; + c_last_read = a; + c_num_read += 1; + q_free = 1; + q_read_ev = 1; + immediate_notify_threads(); + q_read_ev = 2; + } + if (p_last_write == c_last_read) { + if (p_num_write == c_num_read) { + + } else { + { + error(); + } + } + } else { + { + error(); + } + } + } + while_1_break: /* CIL Label */ ; + } + return_label: /* CIL Label */ + return; +} +} +void init_threads(void) +{ + + { + if ((int )p_dw_i == 1) { + p_dw_st = 0; + } else { + p_dw_st = 2; + } + if ((int )c_dr_i == 1) { + c_dr_st = 0; + } else { + c_dr_st = 2; + } + + return; +} +} +int exists_runnable_thread(void) +{ int __retres1 ; + + { + if ((int )p_dw_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if ((int )c_dr_st == 0) { + __retres1 = 1; + goto return_label; + } else { + + } + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +void eval(void) +{ int tmp ; + int tmp___0 ; + int tmp___1 ; + + { + { + while (1) { + while_2_continue: /* CIL Label */ ; + { + tmp___1 = exists_runnable_thread(); + } + if (tmp___1) { + + } else { + goto while_2_break; + } + if ((int )p_dw_st == 0) { + { + tmp = __VERIFIER_nondet_int(); + } + if (tmp) { + { + p_dw_st = 1; + do_write_p(); + } + } else { + error(); + } + } else { + + } + if ((int )c_dr_st == 0) { + { + tmp___0 = __VERIFIER_nondet_int(); + } + if (tmp___0) { + { + c_dr_st = 1; + do_read_c(); + } + } else { + + } + } else { + + } + } + while_2_break: /* CIL Label */ ; + } + + return; +} +} +int stop_simulation(void) +{ int tmp ; + int __retres2 ; + + { + { + tmp = exists_runnable_thread(); + } + if (tmp) { + __retres2 = 0; + goto return_label; + } else { + + } + __retres2 = 1; + return_label: /* CIL Label */ + return (__retres2); +} +} +void start_simulation(void) +{ int kernel_st ; + int tmp ; + + { + { + kernel_st = 0; + init_threads(); + } + { + while (1) { + while_3_continue: /* CIL Label */ ; + { + kernel_st = 1; + eval(); + tmp = stop_simulation(); + } + if (tmp) { + goto while_3_break; + } else { + + } + } + while_3_break: /* CIL Label */ ; + } + + return; +} +} +void init_model(void) +{ + + { + q_free = 1; + q_write_ev = 2; + q_read_ev = q_write_ev; + p_num_write = 0; + p_dw_pc = 0; + p_dw_i = 1; + c_num_read = 0; + c_dr_pc = 0; + c_dr_i = 1; + + return; +} +} +int main(void) +{ int __retres1 ; + + { + { + init_model(); + start_simulation(); + } + __retres1 = 0; + return (__retres1); +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/recHanoi01_true-unreach-call_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/recHanoi01_true-unreach-call_true-termination.c new file mode 100644 index 000000000..8d2c3c6a8 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/recHanoi01_true-unreach-call_true-termination.c @@ -0,0 +1,56 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* + * recHanoi.c + * + * Created on: 17.07.2013 + * Author: Stefan Wissert + */ + +extern int __VERIFIER_nondet_int(void); + +int counter; +/* + * This function returns the optimal amount of steps, + * needed to solve the problem for n-disks + */ +int hanoi(int n) { + if (n == 1) { + return 1; + } + return 2 * (hanoi(n-1)) + 1; +} + +/* + * This applies the known algorithm, without executing it (so no arrays). + * But the amount of steps is counted in a global variable. + */ +void applyHanoi(int n, int from, int to, int via) +{ + if (n == 0) { + return; + } + // increment the number of steps + counter++; + applyHanoi(n-1, from, via, to); + applyHanoi(n-1, via, to, from); +} + +int main() { + int n = __VERIFIER_nondet_int(); + if (n < 1 || n > 31) { + return 0; + } + counter = 0; + applyHanoi(n, 1, 3, 2); + int result = hanoi(n); + // result and the counter should be the same! + if (result == counter) { + return 0; + } else { + ERROR: __VERIFIER_error(); + } +} + + + diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/rekcba_aso_false-unreach-call.1.M1.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/rekcba_aso_false-unreach-call.1.M1.c new file mode 100644 index 000000000..01cb43120 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/rekcba_aso_false-unreach-call.1.M1.c @@ -0,0 +1,3772 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/********************************************************************** + +Copyright (c) 2013 Carnegie Mellon University. All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following acknowledgments and +disclaimers. + +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. + +3. The names "Carnegie Mellon University," "SEI" and/or "Software +Engineering Institute" shall not be used to endorse or promote +products derived from this software without prior written +permission. For written permission, please contact +permission@sei.cmu.edu. + +4. Products derived from this software may not be called "SEI" nor may +"SEI" appear in their names without prior written permission of +permission@sei.cmu.edu. + +5. Redistributions of any form whatsoever must retain the following +acknowledgment: + +This material is based upon work funded and supported by the +Department of Defense under Contract No. FA8721-05-C-0003 with +Carnegie Mellon University for the operation of the Software +Engineering Institute, a federally funded research and development +center. + +Any opinions, findings and conclusions or recommendations expressed in +this material are those of the author(s) and do not necessarily +reflect the views of the United States Department of Defense. + +NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING +INSTITUTE MATERIAL IS FURNISHEDON AN "AS-IS" BASIS. CARNEGIE MELLON +UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITHER EXPRESSED OR +IMPLIED, AS TO ANY MATTER INCLUDING, BUT NOT LIMITED TO, WARRANTY OF +FITNESS FOR PURPOSE OR MERCHANTABILITY, EXCLUSIVITY, OR RESULTS +OBTAINED FROM USE OF THE MATERIAL. CARNEGIE MELLON UNIVERSITY DOES NOT +MAKE ANY WARRANTY OF ANY KIND WITH RESPECT TO FREEDOM FROM PATENT, +TRADEMARK, OR COPYRIGHT INFRINGEMENT. + +This material has been approved for public release and unlimited +distribution. + +DM-0000575 + +**********************************************************************/ + +/* Generated by CIL v. 1.4.0 */ +/* print_CIL_Input is true */ + +#line 1 "" +_Bool __startrek_Assert_t2_i0[24] = +#line 1 "" + {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}; +#line 1 "" +_Bool __startrek_Assert_t1_i0[2] = {1, 1}; +#line 1 "" +_Bool __startrek_Assert_t0_i0[1] = {1}; +#line 1 "" +unsigned char __startrek_start_t2[24] ; +#line 1 "" +unsigned char __startrek_end_t2[24] ; +#line 1 "" +unsigned char __startrek_start_t1[2] ; +#line 1 "" +unsigned char __startrek_end_t1[2] ; +#line 1 "" +unsigned char __startrek_start_t0[1] ; +#line 1 "" +unsigned char __startrek_end_t0[1] ; +void __startrek_init_shared(void) ; +#line 1 +__inline static void __startrek_assert_i0(_Bool arg ) ; +#line 1 +__inline static _Bool __startrek_cs_t2(void) ; +#line 1 +__inline static _Bool __startrek_cs_t1(void) ; +#line 1 +__inline static _Bool __startrek_cs_t0(void) ; +char __VERIFIER_nondet_char(void) ; +_Bool __VERIFIER_nondet__Bool(void) ; +unsigned char __VERIFIER_nondet_uchar(void) ; +_Bool __VERIFIER_nondet_bool(void) ; +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assume(_Bool arg ) ; +#line 1 "" +unsigned char __startrek_task ; +#line 1 "" +unsigned char __startrek_job ; +#line 1 "" +unsigned char __startrek_job_end ; +#line 1 "" +unsigned char __startrek_error_round ; +#line 1 "" +unsigned char __startrek_round ; +#line 1 "" +_Bool __startrek_lock = (_Bool)0; +#line 1 "" +_Bool __startrek_is_first_cs ; +#line 1 "" +unsigned char __startrek_hyper_period ; +#line 1 "aso.bug1.o" +#pragma merger(0,"/tmp/aaaa/aso.bug1.i","-S") +#line 26 "src/startrek.h" +void assert(_Bool arg) { if (!arg) { ERROR: __VERIFIER_error();} } +#line 19 "src/balancer.h" +static unsigned int ud_err_theta ; +#line 20 "src/balancer.h" +static unsigned int ud_psi ; +#line 21 "src/balancer.h" +static unsigned int ud_theta_lpf ; +#line 22 "src/balancer.h" +static unsigned int ud_theta_ref ; +#line 23 "src/balancer.h" +static unsigned int ud_thetadot_cmd_lpf ; +#line 30 +extern unsigned int A_D ; +#line 35 +extern unsigned int A_R ; +#line 40 +extern unsigned int K_F[4] ; +#line 43 +extern unsigned int K_I ; +#line 46 +extern unsigned int K_PHIDOT ; +#line 49 +extern unsigned int K_THETADOT ; +#line 52 +extern unsigned int const BATTERY_GAIN ; +#line 53 +extern unsigned int const BATTERY_OFFSET ; +#line 56 "src/balancer.h" +void balance_init(void) +{ + + + { +#line 63 + ud_err_theta = 0.0F; +#line 64 + ud_theta_ref = 0.0F; +#line 65 + ud_thetadot_cmd_lpf = 0.0F; +#line 66 + ud_psi = 0.0F; +#line 67 + ud_theta_lpf = 0.0F; +#line 68 + return; +} +} +#line 199 +#line 72 "src/balancer.h" +void balance_control(unsigned int args_cmd_forward , unsigned int args_cmd_turn , + unsigned int args_gyro , unsigned int args_gyro_offset , unsigned int args_theta_m_l , + unsigned int args_theta_m_r , unsigned int args_battery , char *ret_pwm_l , + char *ret_pwm_r ) +{ + unsigned int tmp_theta ; + unsigned int tmp_theta_lpf ; + unsigned int tmp_pwm_r_limiter ; + unsigned int tmp_psidot ; + unsigned int tmp_pwm_turn ; + unsigned int tmp_pwm_l_limiter ; + unsigned int tmp_thetadot_cmd_lpf ; + unsigned int tmp[4] ; + unsigned int tmp_theta_0[4] ; + int tmp_0 ; + int tmp___0 ; + int tmp___1 ; + + { +#line 101 + tmp_thetadot_cmd_lpf = (((float )args_cmd_forward / 100.0F) * (float )K_THETADOT) * (1.0F - (float )A_R) + (float )(A_R * ud_thetadot_cmd_lpf); +#line 114 + tmp_theta = ((0.01745329238F * (float )args_theta_m_l + (float )ud_psi) + (0.01745329238F * (float )args_theta_m_r + (float )ud_psi)) * 0.5F; +#line 125 + tmp_theta_lpf = (1.0F - (float )A_D) * (float )tmp_theta + (float )(A_D * ud_theta_lpf); +#line 132 + tmp_psidot = (float )(args_gyro - args_gyro_offset) * 0.01745329238F; +#line 154 + tmp[0] = ud_theta_ref; +#line 155 + tmp[1] = 0.0F; +#line 156 + tmp[2] = tmp_thetadot_cmd_lpf; +#line 157 + tmp[3] = 0.0F; +#line 158 + tmp_theta_0[0] = tmp_theta; +#line 159 + tmp_theta_0[1] = ud_psi; +#line 160 + tmp_theta_0[2] = (float )(tmp_theta_lpf - ud_theta_lpf) / 0.00400000019F; +#line 161 + tmp_theta_0[3] = tmp_psidot; +#line 162 + tmp_pwm_r_limiter = 0.0F; +#line 170 + tmp_0 = 0; +#line 171 + tmp_pwm_r_limiter += (tmp[tmp_0] - tmp_theta_0[tmp_0]) * K_F[tmp_0]; +#line 172 + tmp_0 ++; +#line 173 + tmp_pwm_r_limiter += (tmp[tmp_0] - tmp_theta_0[tmp_0]) * K_F[tmp_0]; +#line 174 + tmp_0 ++; +#line 175 + tmp_pwm_r_limiter += (tmp[tmp_0] - tmp_theta_0[tmp_0]) * K_F[tmp_0]; +#line 176 + tmp_0 ++; +#line 177 + tmp_pwm_r_limiter += (tmp[tmp_0] - tmp_theta_0[tmp_0]) * K_F[tmp_0]; +#line 178 + tmp_0 ++; +#line 184 + tmp_pwm_r_limiter = (float )((K_I * ud_err_theta + tmp_pwm_r_limiter) / (unsigned int )(BATTERY_GAIN * (unsigned int const )args_battery - BATTERY_OFFSET)) * 100.0F; +#line 193 + tmp_pwm_turn = ((float )args_cmd_turn / 100.0F) * (float )K_PHIDOT; +#line 196 + tmp_pwm_l_limiter = tmp_pwm_r_limiter + tmp_pwm_turn; +#line 199 + tmp___0 = __VERIFIER_nondet_int(); +#line 199 + tmp_pwm_l_limiter = tmp___0; +#line 204 + *ret_pwm_l = (char )tmp_pwm_l_limiter; +#line 207 + tmp_pwm_r_limiter -= tmp_pwm_turn; +#line 210 + tmp___1 = __VERIFIER_nondet_int(); +#line 210 + tmp_pwm_r_limiter = tmp___1; +#line 215 + *ret_pwm_r = (char )tmp_pwm_r_limiter; +#line 221 + tmp_pwm_l_limiter = 0.00400000019F * (float )tmp_thetadot_cmd_lpf + (float )ud_theta_ref; +#line 227 + tmp_pwm_turn = 0.00400000019F * (float )tmp_psidot + (float )ud_psi; +#line 235 + tmp_pwm_r_limiter = (float )(ud_theta_ref - tmp_theta) * 0.00400000019F + (float )ud_err_theta; +#line 242 + ud_err_theta = tmp_pwm_r_limiter; +#line 245 + ud_theta_ref = tmp_pwm_l_limiter; +#line 248 + ud_thetadot_cmd_lpf = tmp_thetadot_cmd_lpf; +#line 251 + ud_psi = tmp_pwm_turn; +#line 254 + ud_theta_lpf = tmp_theta_lpf; +#line 256 + return; +} +} +#line 42 "src/aso.bug1.c" +extern unsigned int __VERIFIER_nondet_U32() ; +#line 43 +extern char __VERIFIER_nondet_S8() ; +#line 44 +extern unsigned char __VERIFIER_nondet_U8() ; +#line 1 "" +__inline static unsigned char __startrek_read_nxtway_gs_mode(void) ; +#line 1 +__inline static void __startrek_write_nxtway_gs_mode(unsigned char arg ) ; +#line 1 "" +unsigned char _nxtway_gs_mode_[27] ; +#line 1 "" +unsigned char _i_nxtway_gs_mode_[27] ; +#line 53 "src/aso.bug1.c" +unsigned char __startrek_hidden_nxtway_gs_mode = 0; +#line 1 "" +__inline static _Bool __startrek_read_obstacle_flag(void) ; +#line 1 +__inline static void __startrek_write_obstacle_flag(_Bool arg ) ; +#line 1 "" +_Bool _obstacle_flag_[27] ; +#line 1 "" +_Bool _i_obstacle_flag_[27] ; +#line 54 "src/aso.bug1.c" +_Bool __startrek_hidden_obstacle_flag = 0; +#line 1 "" +__inline static char __startrek_read_cmd_forward(void) ; +#line 1 +__inline static void __startrek_write_cmd_forward(char arg ) ; +#line 1 "" +char _cmd_forward_[27] ; +#line 1 "" +char _i_cmd_forward_[27] ; +#line 57 "src/aso.bug1.c" +char __startrek_hidden_cmd_forward = 0; +#line 1 "" +__inline static char __startrek_read_cmd_turn(void) ; +#line 1 +__inline static void __startrek_write_cmd_turn(char arg ) ; +#line 1 "" +char _cmd_turn_[27] ; +#line 1 "" +char _i_cmd_turn_[27] ; +#line 59 "src/aso.bug1.c" +char __startrek_hidden_cmd_turn = 0; +#line 62 +extern void nxt_motor_set_count(unsigned char port , char pwm ) ; +#line 64 "src/aso.bug1.c" +char nxt_motor_get_count(unsigned char port ) +{ + char tmp ; + + { +#line 65 + tmp = __VERIFIER_nondet_S8(); +#line 65 + return (tmp); +} +} +#line 70 +unsigned int ecrobot_get_systick_ms(void) ; +#line 70 "src/aso.bug1.c" +static unsigned int timer = 0; +#line 68 "src/aso.bug1.c" +unsigned int ecrobot_get_systick_ms(void) +{ + unsigned int r ; + + { +#line 72 + r = timer; +#line 74 + timer += 1000U; +#line 75 + return (r); +} +} +#line 79 "src/aso.bug1.c" +unsigned int ecrobot_get_gyro_sensor(unsigned char port ) +{ + unsigned int tmp ; + + { +#line 80 + tmp = __VERIFIER_nondet_U32(); +#line 80 + return (tmp); +} +} +#line 82 +extern void ecrobot_sound_tone(unsigned int , unsigned int , char ) ; +#line 85 "src/aso.bug1.c" +void ecrobot_read_bt_packet(unsigned char *bt_receive_buf , unsigned char sz ) +{ + + + { +#line 87 + *(bt_receive_buf + 0) = __VERIFIER_nondet_U8(); +#line 88 + *(bt_receive_buf + 1) = __VERIFIER_nondet_U8(); +#line 89 + return; +} +} +#line 91 "src/aso.bug1.c" +unsigned int ecrobot_get_battery_voltage(void) +{ + unsigned int tmp ; + + { +#line 92 + tmp = __VERIFIER_nondet_U32(); +#line 92 + return (tmp); +} +} +#line 98 +extern void nxt_motor_set_speed(unsigned char port , char speed , char one ) ; +#line 104 +extern void ecrobot_bt_data_logger(char , char ) ; +#line 111 "src/aso.bug1.c" +static unsigned int gyro_offset ; +#line 112 "src/aso.bug1.c" +static unsigned int avg_cnt ; +#line 113 "src/aso.bug1.c" +static unsigned int cal_start_time ; +#line 108 "src/aso.bug1.c" +void OSEK_Task_ts1(void) +{ + char pwm_l ; + char pwm_r ; + unsigned char tmp ; + unsigned int tmp___0 ; + unsigned int tmp___1 ; + char tmp___2 ; + char tmp___3 ; + int tmp___4 ; + _Bool tmp___5 ; + unsigned int tmp___6 ; + char tmp___7 ; + char tmp___8 ; + unsigned int tmp___9 ; + char tmp___10 ; + char tmp___11 ; + + { +#line 117 + tmp = __startrek_read_nxtway_gs_mode(); +#line 117 + switch (tmp) { + case 0: +#line 120 + gyro_offset = 0; +#line 121 + avg_cnt = 0; +#line 124 + balance_init(); +#line 125 + nxt_motor_set_count(0, 0); +#line 126 + nxt_motor_set_count(1, 0); +#line 127 + cal_start_time = ecrobot_get_systick_ms(); +#line 128 + __startrek_write_nxtway_gs_mode(1); +#line 129 + break; + case 1: +#line 132 + tmp___0 = ecrobot_get_gyro_sensor(3); +#line 132 + gyro_offset += tmp___0; +#line 133 + avg_cnt ++; +#line 135 + tmp___1 = ecrobot_get_systick_ms(); +#line 135 + if (tmp___1 - cal_start_time >= 1000U) { +#line 136 + gyro_offset /= avg_cnt; +#line 137 + ecrobot_sound_tone(440U, 500U, 30); +#line 138 + __startrek_write_nxtway_gs_mode(2); + } +#line 140 + break; + case 2: +#line 144 + tmp___5 = __startrek_read_obstacle_flag(); +#line 144 + if (tmp___5) { +#line 144 + tmp___2 = __startrek_read_cmd_forward(); +#line 144 + if (tmp___2 == -100) { +#line 144 + tmp___3 = __startrek_read_cmd_turn(); +#line 144 + if (tmp___3 == 0) { +#line 144 + tmp___4 = 1; + } else { +#line 144 + tmp___4 = 0; + } + } else { +#line 144 + tmp___4 = 0; + } +#line 144 + __startrek_assert_i0(tmp___4); + } +#line 148 + tmp___6 = ecrobot_get_battery_voltage(); +#line 148 + tmp___7 = nxt_motor_get_count(1); +#line 148 + tmp___8 = nxt_motor_get_count(0); +#line 148 + tmp___9 = ecrobot_get_gyro_sensor(3); +#line 148 + tmp___10 = __startrek_read_cmd_turn(); +#line 148 + tmp___11 = __startrek_read_cmd_forward(); +#line 148 + balance_control((unsigned int )tmp___11, (unsigned int )tmp___10, tmp___9, gyro_offset, + (unsigned int )tmp___8, (unsigned int )tmp___7, tmp___6, & pwm_l, + & pwm_r); +#line 157 + nxt_motor_set_speed(0, pwm_l, 1); +#line 158 + nxt_motor_set_speed(1, pwm_r, 1); +#line 159 + break; + default: +#line 164 + nxt_motor_set_speed(0, 0, 1); +#line 165 + nxt_motor_set_speed(1, 0, 1); +#line 166 + break; + } +#line 168 + return; +} +} +#line 170 "src/aso.bug1.c" +unsigned char ecrobot_get_sonar_sensor(unsigned char port ) +{ + unsigned char tmp ; + + { +#line 171 + tmp = __VERIFIER_nondet_U8(); +#line 171 + return (tmp); +} +} +#line 174 "src/aso.bug1.c" +void OSEK_Task_ts2(void) +{ + unsigned char tmp ; + unsigned char tmp___0 ; + + { +#line 176 + __startrek_write_obstacle_flag(0); +#line 178 + tmp = __startrek_read_nxtway_gs_mode(); +#line 178 + if (tmp == 2) { +#line 178 + tmp___0 = ecrobot_get_sonar_sensor(4); +#line 178 + if ((int )tmp___0 <= 25) { +#line 183 + __startrek_write_obstacle_flag(1); +#line 185 + __startrek_write_cmd_forward(-100); +#line 186 + __startrek_write_cmd_turn(0); + } + } +#line 191 + return; +} +} +#line 198 "src/aso.bug1.c" +static unsigned char bt_receive_buf[2] ; +#line 195 "src/aso.bug1.c" +void OSEK_Task_ts3(void) +{ + int i ; + _Bool wrote ; + unsigned char tmp ; + _Bool tmp___0 ; + char tmp___1 ; + char tmp___2 ; + + { +#line 200 + wrote = 0; +#line 202 + tmp = __startrek_read_nxtway_gs_mode(); +#line 202 + switch (tmp) { + case 0: +#line 205 + i = 0; +#line 205 + while (i < 2) { +#line 206 + bt_receive_buf[i] = 0; +#line 205 + i ++; + } +#line 207 + break; + case 2: +#line 210 + ecrobot_read_bt_packet(bt_receive_buf, 2); +#line 211 + wrote = 0; +#line 215 + tmp___0 = __startrek_read_obstacle_flag(); +#line 215 + if (! tmp___0) { +#line 221 + __startrek_write_cmd_forward(- ((int )((char )bt_receive_buf[0]))); +#line 222 + __startrek_write_cmd_turn((char )bt_receive_buf[1]); +#line 223 + wrote = 1; + } +#line 228 + if (wrote) { +#line 228 + tmp___1 = __startrek_read_cmd_turn(); +#line 228 + tmp___2 = __startrek_read_cmd_forward(); +#line 228 + ecrobot_bt_data_logger(tmp___2, tmp___1); + } +#line 229 + break; + default: +#line 234 + break; + } +#line 236 + return; +} +} +#line 247 "src/aso.bug1.c" +char __startrek_base_priority_OSEK_Task_ts3 = 0; +#line 247 +__inline static _Bool __startrek_entry_pt_OSEK_Task_ts3(void) ; +#line 247 "src/aso.bug1.c" +__inline static _Bool __startrek_entry_pt_OSEK_Task_ts3(void) +{ + + + { +#line 247 + OSEK_Task_ts3(); +#line 247 + return ((_Bool)1); +} +} +#line 247 "src/aso.bug1.c" +void cil_keeperOSEK_Task_ts3(void) +{ + + + { +#line 247 + __startrek_entry_pt_OSEK_Task_ts3(); +#line 247 + return; +} +} +#line 248 "src/aso.bug1.c" +int __startrek_period_OSEK_Task_ts3 = 96; +#line 249 "src/aso.bug1.c" +int __startrek_wcet_OSEK_Task_ts3 = 48; +#line 250 "src/aso.bug1.c" +int __startrek_arrival_min_OSEK_Task_ts3 = 0; +#line 250 "src/aso.bug1.c" +int __startrek_arrival_max_OSEK_Task_ts3 = 0; +#line 252 "src/aso.bug1.c" +char __startrek_base_priority_OSEK_Task_ts2 = 1; +#line 252 +__inline static _Bool __startrek_entry_pt_OSEK_Task_ts2(void) ; +#line 252 "src/aso.bug1.c" +__inline static _Bool __startrek_entry_pt_OSEK_Task_ts2(void) +{ + + + { +#line 252 + OSEK_Task_ts2(); +#line 252 + return ((_Bool)1); +} +} +#line 252 "src/aso.bug1.c" +void cil_keeperOSEK_Task_ts2(void) +{ + + + { +#line 252 + __startrek_entry_pt_OSEK_Task_ts2(); +#line 252 + return; +} +} +#line 253 "src/aso.bug1.c" +int __startrek_period_OSEK_Task_ts2 = 48; +#line 254 "src/aso.bug1.c" +int __startrek_wcet_OSEK_Task_ts2 = 2; +#line 255 "src/aso.bug1.c" +int __startrek_arrival_min_OSEK_Task_ts2 = 0; +#line 255 "src/aso.bug1.c" +int __startrek_arrival_max_OSEK_Task_ts2 = 0; +#line 257 "src/aso.bug1.c" +char __startrek_base_priority_OSEK_Task_ts1 = 2; +#line 257 +__inline static _Bool __startrek_entry_pt_OSEK_Task_ts1(void) ; +#line 257 "src/aso.bug1.c" +__inline static _Bool __startrek_entry_pt_OSEK_Task_ts1(void) +{ + + + { +#line 257 + OSEK_Task_ts1(); +#line 257 + return ((_Bool)1); +} +} +#line 257 "src/aso.bug1.c" +void cil_keeperOSEK_Task_ts1(void) +{ + + + { +#line 257 + __startrek_entry_pt_OSEK_Task_ts1(); +#line 257 + return; +} +} +#line 258 "src/aso.bug1.c" +int __startrek_period_OSEK_Task_ts1 = 4; +#line 259 "src/aso.bug1.c" +int __startrek_wcet_OSEK_Task_ts1 = 1; +#line 260 "src/aso.bug1.c" +int __startrek_arrival_min_OSEK_Task_ts1 = 0; +#line 260 "src/aso.bug1.c" +int __startrek_arrival_max_OSEK_Task_ts1 = 0; +#line 266 "src/aso.bug1.c" +int __startrek_time_bound = 96; +#line 1 "" +__inline void __startrek_schedule_jobs(void) +{ + + + { +#line 1 "" + __startrek_start_t0[0] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t0[0] = __VERIFIER_nondet_uchar(); +#line 1 + __VERIFIER_assume(0 <= __startrek_start_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t0[0] <= 26); +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_end_t0[0]); +#line 1 + __startrek_start_t1[0] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t1[0] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_start_t1[1] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t1[1] = __VERIFIER_nondet_uchar(); +#line 1 + __VERIFIER_assume(0 <= __startrek_start_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[1] <= 26); +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[0] <= __startrek_start_t1[1] - 1); +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t1[0]) { +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[0] < __startrek_end_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t1[1]) { +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[1] < __startrek_end_t0[0]); + } + } + } +#line 1 + __startrek_start_t2[0] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[0] = __startrek_start_t2[0]; +#line 1 + __startrek_start_t2[1] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[1] = __startrek_start_t2[1]; +#line 1 + __startrek_start_t2[2] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[2] = __startrek_start_t2[2]; +#line 1 + __startrek_start_t2[3] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[3] = __startrek_start_t2[3]; +#line 1 + __startrek_start_t2[4] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[4] = __startrek_start_t2[4]; +#line 1 + __startrek_start_t2[5] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[5] = __startrek_start_t2[5]; +#line 1 + __startrek_start_t2[6] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[6] = __startrek_start_t2[6]; +#line 1 + __startrek_start_t2[7] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[7] = __startrek_start_t2[7]; +#line 1 + __startrek_start_t2[8] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[8] = __startrek_start_t2[8]; +#line 1 + __startrek_start_t2[9] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[9] = __startrek_start_t2[9]; +#line 1 + __startrek_start_t2[10] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[10] = __startrek_start_t2[10]; +#line 1 + __startrek_start_t2[11] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[11] = __startrek_start_t2[11]; +#line 1 + __startrek_start_t2[12] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[12] = __startrek_start_t2[12]; +#line 1 + __startrek_start_t2[13] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[13] = __startrek_start_t2[13]; +#line 1 + __startrek_start_t2[14] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[14] = __startrek_start_t2[14]; +#line 1 + __startrek_start_t2[15] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[15] = __startrek_start_t2[15]; +#line 1 + __startrek_start_t2[16] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[16] = __startrek_start_t2[16]; +#line 1 + __startrek_start_t2[17] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[17] = __startrek_start_t2[17]; +#line 1 + __startrek_start_t2[18] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[18] = __startrek_start_t2[18]; +#line 1 + __startrek_start_t2[19] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[19] = __startrek_start_t2[19]; +#line 1 + __startrek_start_t2[20] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[20] = __startrek_start_t2[20]; +#line 1 + __startrek_start_t2[21] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[21] = __startrek_start_t2[21]; +#line 1 + __startrek_start_t2[22] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[22] = __startrek_start_t2[22]; +#line 1 + __startrek_start_t2[23] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[23] = __startrek_start_t2[23]; +#line 1 + __VERIFIER_assume(0 <= __startrek_start_t2[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[23] <= 26); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] <= __startrek_start_t2[1] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] <= __startrek_start_t2[2] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] <= __startrek_start_t2[3] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] <= __startrek_start_t2[4] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] <= __startrek_start_t2[5] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] <= __startrek_start_t2[6] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] <= __startrek_start_t2[7] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[7] <= __startrek_start_t2[8] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[8] <= __startrek_start_t2[9] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[9] <= __startrek_start_t2[10] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[10] <= __startrek_start_t2[11] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[11] <= __startrek_start_t2[12] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[12] <= __startrek_start_t2[13] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[13] <= __startrek_start_t2[14] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[14] <= __startrek_start_t2[15] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[15] <= __startrek_start_t2[16] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[16] <= __startrek_start_t2[17] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[17] <= __startrek_start_t2[18] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[18] <= __startrek_start_t2[19] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[19] <= __startrek_start_t2[20] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[20] <= __startrek_start_t2[21] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[21] <= __startrek_start_t2[22] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[22] <= __startrek_start_t2[23] - 1); +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[0]) { +#line 1 + if (__startrek_start_t2[0] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_end_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[0]) { +#line 1 + if (__startrek_start_t2[0] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_end_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[0]) { +#line 1 + if (__startrek_start_t2[0] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_end_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[1]) { +#line 1 + if (__startrek_start_t2[1] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_end_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[1]) { +#line 1 + if (__startrek_start_t2[1] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[1]) { +#line 1 + if (__startrek_start_t2[1] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[2]) { +#line 1 + if (__startrek_start_t2[2] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_end_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[2]) { +#line 1 + if (__startrek_start_t2[2] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[2]) { +#line 1 + if (__startrek_start_t2[2] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[3]) { +#line 1 + if (__startrek_start_t2[3] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_end_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[3]) { +#line 1 + if (__startrek_start_t2[3] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[3]) { +#line 1 + if (__startrek_start_t2[3] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[4]) { +#line 1 + if (__startrek_start_t2[4] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_end_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[4]) { +#line 1 + if (__startrek_start_t2[4] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[4]) { +#line 1 + if (__startrek_start_t2[4] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[5]) { +#line 1 + if (__startrek_start_t2[5] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_end_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[5]) { +#line 1 + if (__startrek_start_t2[5] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[5]) { +#line 1 + if (__startrek_start_t2[5] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[6]) { +#line 1 + if (__startrek_start_t2[6] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] < __startrek_end_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[6]) { +#line 1 + if (__startrek_start_t2[6] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[6]) { +#line 1 + if (__startrek_start_t2[6] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[7]) { +#line 1 + if (__startrek_start_t2[7] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[7] < __startrek_end_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[7]) { +#line 1 + if (__startrek_start_t2[7] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[7] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[7]) { +#line 1 + if (__startrek_start_t2[7] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[7] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[8]) { +#line 1 + if (__startrek_start_t2[8] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[8]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[8] < __startrek_end_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[8]) { +#line 1 + if (__startrek_start_t2[8] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[8]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[8] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[7] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[8]) { +#line 1 + if (__startrek_start_t2[8] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[8]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[8] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[7] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[9]) { +#line 1 + if (__startrek_start_t2[9] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[9]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[9] < __startrek_end_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[9]) { +#line 1 + if (__startrek_start_t2[9] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[9]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[9] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[8] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[9]) { +#line 1 + if (__startrek_start_t2[9] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[9]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[9] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[8] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[10]) { +#line 1 + if (__startrek_start_t2[10] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[10]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[10] < __startrek_end_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[10]) { +#line 1 + if (__startrek_start_t2[10] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[10]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[10] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[9] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[10]) { +#line 1 + if (__startrek_start_t2[10] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[10]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[10] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[9] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[11]) { +#line 1 + if (__startrek_start_t2[11] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[11]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[11] < __startrek_end_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[11]) { +#line 1 + if (__startrek_start_t2[11] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[11]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[11] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[10] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[11]) { +#line 1 + if (__startrek_start_t2[11] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[11]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[11] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[10] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[12]) { +#line 1 + if (__startrek_start_t2[12] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[12]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[12] < __startrek_end_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[12]) { +#line 1 + if (__startrek_start_t2[12] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[12]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[12] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[11] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[12]) { +#line 1 + if (__startrek_start_t2[12] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[12]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[12] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[11] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[13]) { +#line 1 + if (__startrek_start_t2[13] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[13]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[13] < __startrek_end_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[13]) { +#line 1 + if (__startrek_start_t2[13] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[13]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[13] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[12] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[13]) { +#line 1 + if (__startrek_start_t2[13] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[13]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[13] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[12] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[14]) { +#line 1 + if (__startrek_start_t2[14] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[14]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[14] < __startrek_end_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[14]) { +#line 1 + if (__startrek_start_t2[14] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[14]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[14] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[13] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[14]) { +#line 1 + if (__startrek_start_t2[14] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[14]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[14] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[13] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[15]) { +#line 1 + if (__startrek_start_t2[15] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[15]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[15] < __startrek_end_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[15]) { +#line 1 + if (__startrek_start_t2[15] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[15]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[15] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[14] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[15]) { +#line 1 + if (__startrek_start_t2[15] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[15]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[15] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[14] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[16]) { +#line 1 + if (__startrek_start_t2[16] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[16]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[16] < __startrek_end_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[16]) { +#line 1 + if (__startrek_start_t2[16] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[16]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[16] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[15] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[16]) { +#line 1 + if (__startrek_start_t2[16] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[16]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[16] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[15] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[17]) { +#line 1 + if (__startrek_start_t2[17] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[17]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[17] < __startrek_end_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[17]) { +#line 1 + if (__startrek_start_t2[17] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[17]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[17] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[16] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[17]) { +#line 1 + if (__startrek_start_t2[17] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[17]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[17] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[16] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[18]) { +#line 1 + if (__startrek_start_t2[18] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[18]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[18] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[18]) { +#line 1 + if (__startrek_start_t2[18] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[18]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[18] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[17] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[18]) { +#line 1 + if (__startrek_start_t2[18] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[18]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[18] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[17] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[19]) { +#line 1 + if (__startrek_start_t2[19] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[19]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[19] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[19]) { +#line 1 + if (__startrek_start_t2[19] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[19]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[19] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[18] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[19]) { +#line 1 + if (__startrek_start_t2[19] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[19]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[19] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[18] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[20]) { +#line 1 + if (__startrek_start_t2[20] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[20]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[20] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[20]) { +#line 1 + if (__startrek_start_t2[20] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[20]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[20] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[19] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[20]) { +#line 1 + if (__startrek_start_t2[20] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[20]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[20] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[19] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[21]) { +#line 1 + if (__startrek_start_t2[21] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[21]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[21] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[21]) { +#line 1 + if (__startrek_start_t2[21] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[21]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[21] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[20] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[21]) { +#line 1 + if (__startrek_start_t2[21] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[21]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[21] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[20] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[22]) { +#line 1 + if (__startrek_start_t2[22] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[22]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[22] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[22]) { +#line 1 + if (__startrek_start_t2[22] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[22]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[22] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[21] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[22]) { +#line 1 + if (__startrek_start_t2[22] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[22]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[22] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[21] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[23]) { +#line 1 + if (__startrek_start_t2[23] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[23]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[23] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[23]) { +#line 1 + if (__startrek_start_t2[23] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[23]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[23] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[22] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[23]) { +#line 1 + if (__startrek_start_t2[23] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[23]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[23] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[22] < __startrek_start_t1[1]); + } + } + } +} +} +#line 1 "" +__inline void __startrek_init_globals(void) +{ + + + { +#line 1 "" + _i_cmd_turn_[1] = __VERIFIER_nondet_char(); +#line 1 + _cmd_turn_[1] = _i_cmd_turn_[1]; +#line 1 + _i_cmd_turn_[2] = __VERIFIER_nondet_char(); +#line 1 + _cmd_turn_[2] = _i_cmd_turn_[2]; +#line 1 + _i_cmd_turn_[3] = __VERIFIER_nondet_char(); +#line 1 + _cmd_turn_[3] = _i_cmd_turn_[3]; +#line 1 + _i_cmd_turn_[4] = __VERIFIER_nondet_char(); +#line 1 + _cmd_turn_[4] = _i_cmd_turn_[4]; +#line 1 + _i_cmd_turn_[5] = __VERIFIER_nondet_char(); +#line 1 + _cmd_turn_[5] = _i_cmd_turn_[5]; +#line 1 + _i_cmd_turn_[6] = __VERIFIER_nondet_char(); +#line 1 + _cmd_turn_[6] = _i_cmd_turn_[6]; +#line 1 + _i_cmd_turn_[7] = __VERIFIER_nondet_char(); +#line 1 + _cmd_turn_[7] = _i_cmd_turn_[7]; +#line 1 + _i_cmd_turn_[8] = __VERIFIER_nondet_char(); +#line 1 + _cmd_turn_[8] = _i_cmd_turn_[8]; +#line 1 + _i_cmd_turn_[9] = __VERIFIER_nondet_char(); +#line 1 + _cmd_turn_[9] = _i_cmd_turn_[9]; +#line 1 + _i_cmd_turn_[10] = __VERIFIER_nondet_char(); +#line 1 + _cmd_turn_[10] = _i_cmd_turn_[10]; +#line 1 + _i_cmd_turn_[11] = __VERIFIER_nondet_char(); +#line 1 + _cmd_turn_[11] = _i_cmd_turn_[11]; +#line 1 + _i_cmd_turn_[12] = __VERIFIER_nondet_char(); +#line 1 + _cmd_turn_[12] = _i_cmd_turn_[12]; +#line 1 + _i_cmd_turn_[13] = __VERIFIER_nondet_char(); +#line 1 + _cmd_turn_[13] = _i_cmd_turn_[13]; +#line 1 + _i_cmd_turn_[14] = __VERIFIER_nondet_char(); +#line 1 + _cmd_turn_[14] = _i_cmd_turn_[14]; +#line 1 + _i_cmd_turn_[15] = __VERIFIER_nondet_char(); +#line 1 + _cmd_turn_[15] = _i_cmd_turn_[15]; +#line 1 + _i_cmd_turn_[16] = __VERIFIER_nondet_char(); +#line 1 + _cmd_turn_[16] = _i_cmd_turn_[16]; +#line 1 + _i_cmd_turn_[17] = __VERIFIER_nondet_char(); +#line 1 + _cmd_turn_[17] = _i_cmd_turn_[17]; +#line 1 + _i_cmd_turn_[18] = __VERIFIER_nondet_char(); +#line 1 + _cmd_turn_[18] = _i_cmd_turn_[18]; +#line 1 + _i_cmd_turn_[19] = __VERIFIER_nondet_char(); +#line 1 + _cmd_turn_[19] = _i_cmd_turn_[19]; +#line 1 + _i_cmd_turn_[20] = __VERIFIER_nondet_char(); +#line 1 + _cmd_turn_[20] = _i_cmd_turn_[20]; +#line 1 + _i_cmd_turn_[21] = __VERIFIER_nondet_char(); +#line 1 + _cmd_turn_[21] = _i_cmd_turn_[21]; +#line 1 + _i_cmd_turn_[22] = __VERIFIER_nondet_char(); +#line 1 + _cmd_turn_[22] = _i_cmd_turn_[22]; +#line 1 + _i_cmd_turn_[23] = __VERIFIER_nondet_char(); +#line 1 + _cmd_turn_[23] = _i_cmd_turn_[23]; +#line 1 + _i_cmd_turn_[24] = __VERIFIER_nondet_char(); +#line 1 + _cmd_turn_[24] = _i_cmd_turn_[24]; +#line 1 + _i_cmd_turn_[25] = __VERIFIER_nondet_char(); +#line 1 + _cmd_turn_[25] = _i_cmd_turn_[25]; +#line 1 + _i_cmd_turn_[26] = __VERIFIER_nondet_char(); +#line 1 + _cmd_turn_[26] = _i_cmd_turn_[26]; +#line 1 + _i_cmd_forward_[1] = __VERIFIER_nondet_char(); +#line 1 + _cmd_forward_[1] = _i_cmd_forward_[1]; +#line 1 + _i_cmd_forward_[2] = __VERIFIER_nondet_char(); +#line 1 + _cmd_forward_[2] = _i_cmd_forward_[2]; +#line 1 + _i_cmd_forward_[3] = __VERIFIER_nondet_char(); +#line 1 + _cmd_forward_[3] = _i_cmd_forward_[3]; +#line 1 + _i_cmd_forward_[4] = __VERIFIER_nondet_char(); +#line 1 + _cmd_forward_[4] = _i_cmd_forward_[4]; +#line 1 + _i_cmd_forward_[5] = __VERIFIER_nondet_char(); +#line 1 + _cmd_forward_[5] = _i_cmd_forward_[5]; +#line 1 + _i_cmd_forward_[6] = __VERIFIER_nondet_char(); +#line 1 + _cmd_forward_[6] = _i_cmd_forward_[6]; +#line 1 + _i_cmd_forward_[7] = __VERIFIER_nondet_char(); +#line 1 + _cmd_forward_[7] = _i_cmd_forward_[7]; +#line 1 + _i_cmd_forward_[8] = __VERIFIER_nondet_char(); +#line 1 + _cmd_forward_[8] = _i_cmd_forward_[8]; +#line 1 + _i_cmd_forward_[9] = __VERIFIER_nondet_char(); +#line 1 + _cmd_forward_[9] = _i_cmd_forward_[9]; +#line 1 + _i_cmd_forward_[10] = __VERIFIER_nondet_char(); +#line 1 + _cmd_forward_[10] = _i_cmd_forward_[10]; +#line 1 + _i_cmd_forward_[11] = __VERIFIER_nondet_char(); +#line 1 + _cmd_forward_[11] = _i_cmd_forward_[11]; +#line 1 + _i_cmd_forward_[12] = __VERIFIER_nondet_char(); +#line 1 + _cmd_forward_[12] = _i_cmd_forward_[12]; +#line 1 + _i_cmd_forward_[13] = __VERIFIER_nondet_char(); +#line 1 + _cmd_forward_[13] = _i_cmd_forward_[13]; +#line 1 + _i_cmd_forward_[14] = __VERIFIER_nondet_char(); +#line 1 + _cmd_forward_[14] = _i_cmd_forward_[14]; +#line 1 + _i_cmd_forward_[15] = __VERIFIER_nondet_char(); +#line 1 + _cmd_forward_[15] = _i_cmd_forward_[15]; +#line 1 + _i_cmd_forward_[16] = __VERIFIER_nondet_char(); +#line 1 + _cmd_forward_[16] = _i_cmd_forward_[16]; +#line 1 + _i_cmd_forward_[17] = __VERIFIER_nondet_char(); +#line 1 + _cmd_forward_[17] = _i_cmd_forward_[17]; +#line 1 + _i_cmd_forward_[18] = __VERIFIER_nondet_char(); +#line 1 + _cmd_forward_[18] = _i_cmd_forward_[18]; +#line 1 + _i_cmd_forward_[19] = __VERIFIER_nondet_char(); +#line 1 + _cmd_forward_[19] = _i_cmd_forward_[19]; +#line 1 + _i_cmd_forward_[20] = __VERIFIER_nondet_char(); +#line 1 + _cmd_forward_[20] = _i_cmd_forward_[20]; +#line 1 + _i_cmd_forward_[21] = __VERIFIER_nondet_char(); +#line 1 + _cmd_forward_[21] = _i_cmd_forward_[21]; +#line 1 + _i_cmd_forward_[22] = __VERIFIER_nondet_char(); +#line 1 + _cmd_forward_[22] = _i_cmd_forward_[22]; +#line 1 + _i_cmd_forward_[23] = __VERIFIER_nondet_char(); +#line 1 + _cmd_forward_[23] = _i_cmd_forward_[23]; +#line 1 + _i_cmd_forward_[24] = __VERIFIER_nondet_char(); +#line 1 + _cmd_forward_[24] = _i_cmd_forward_[24]; +#line 1 + _i_cmd_forward_[25] = __VERIFIER_nondet_char(); +#line 1 + _cmd_forward_[25] = _i_cmd_forward_[25]; +#line 1 + _i_cmd_forward_[26] = __VERIFIER_nondet_char(); +#line 1 + _cmd_forward_[26] = _i_cmd_forward_[26]; +#line 1 + _i_obstacle_flag_[1] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[1] = _i_obstacle_flag_[1]; +#line 1 + _i_obstacle_flag_[2] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[2] = _i_obstacle_flag_[2]; +#line 1 + _i_obstacle_flag_[3] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[3] = _i_obstacle_flag_[3]; +#line 1 + _i_obstacle_flag_[4] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[4] = _i_obstacle_flag_[4]; +#line 1 + _i_obstacle_flag_[5] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[5] = _i_obstacle_flag_[5]; +#line 1 + _i_obstacle_flag_[6] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[6] = _i_obstacle_flag_[6]; +#line 1 + _i_obstacle_flag_[7] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[7] = _i_obstacle_flag_[7]; +#line 1 + _i_obstacle_flag_[8] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[8] = _i_obstacle_flag_[8]; +#line 1 + _i_obstacle_flag_[9] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[9] = _i_obstacle_flag_[9]; +#line 1 + _i_obstacle_flag_[10] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[10] = _i_obstacle_flag_[10]; +#line 1 + _i_obstacle_flag_[11] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[11] = _i_obstacle_flag_[11]; +#line 1 + _i_obstacle_flag_[12] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[12] = _i_obstacle_flag_[12]; +#line 1 + _i_obstacle_flag_[13] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[13] = _i_obstacle_flag_[13]; +#line 1 + _i_obstacle_flag_[14] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[14] = _i_obstacle_flag_[14]; +#line 1 + _i_obstacle_flag_[15] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[15] = _i_obstacle_flag_[15]; +#line 1 + _i_obstacle_flag_[16] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[16] = _i_obstacle_flag_[16]; +#line 1 + _i_obstacle_flag_[17] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[17] = _i_obstacle_flag_[17]; +#line 1 + _i_obstacle_flag_[18] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[18] = _i_obstacle_flag_[18]; +#line 1 + _i_obstacle_flag_[19] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[19] = _i_obstacle_flag_[19]; +#line 1 + _i_obstacle_flag_[20] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[20] = _i_obstacle_flag_[20]; +#line 1 + _i_obstacle_flag_[21] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[21] = _i_obstacle_flag_[21]; +#line 1 + _i_obstacle_flag_[22] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[22] = _i_obstacle_flag_[22]; +#line 1 + _i_obstacle_flag_[23] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[23] = _i_obstacle_flag_[23]; +#line 1 + _i_obstacle_flag_[24] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[24] = _i_obstacle_flag_[24]; +#line 1 + _i_obstacle_flag_[25] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[25] = _i_obstacle_flag_[25]; +#line 1 + _i_obstacle_flag_[26] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[26] = _i_obstacle_flag_[26]; +#line 1 + _i_nxtway_gs_mode_[1] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[1] = _i_nxtway_gs_mode_[1]; +#line 1 + _i_nxtway_gs_mode_[2] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[2] = _i_nxtway_gs_mode_[2]; +#line 1 + _i_nxtway_gs_mode_[3] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[3] = _i_nxtway_gs_mode_[3]; +#line 1 + _i_nxtway_gs_mode_[4] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[4] = _i_nxtway_gs_mode_[4]; +#line 1 + _i_nxtway_gs_mode_[5] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[5] = _i_nxtway_gs_mode_[5]; +#line 1 + _i_nxtway_gs_mode_[6] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[6] = _i_nxtway_gs_mode_[6]; +#line 1 + _i_nxtway_gs_mode_[7] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[7] = _i_nxtway_gs_mode_[7]; +#line 1 + _i_nxtway_gs_mode_[8] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[8] = _i_nxtway_gs_mode_[8]; +#line 1 + _i_nxtway_gs_mode_[9] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[9] = _i_nxtway_gs_mode_[9]; +#line 1 + _i_nxtway_gs_mode_[10] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[10] = _i_nxtway_gs_mode_[10]; +#line 1 + _i_nxtway_gs_mode_[11] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[11] = _i_nxtway_gs_mode_[11]; +#line 1 + _i_nxtway_gs_mode_[12] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[12] = _i_nxtway_gs_mode_[12]; +#line 1 + _i_nxtway_gs_mode_[13] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[13] = _i_nxtway_gs_mode_[13]; +#line 1 + _i_nxtway_gs_mode_[14] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[14] = _i_nxtway_gs_mode_[14]; +#line 1 + _i_nxtway_gs_mode_[15] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[15] = _i_nxtway_gs_mode_[15]; +#line 1 + _i_nxtway_gs_mode_[16] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[16] = _i_nxtway_gs_mode_[16]; +#line 1 + _i_nxtway_gs_mode_[17] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[17] = _i_nxtway_gs_mode_[17]; +#line 1 + _i_nxtway_gs_mode_[18] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[18] = _i_nxtway_gs_mode_[18]; +#line 1 + _i_nxtway_gs_mode_[19] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[19] = _i_nxtway_gs_mode_[19]; +#line 1 + _i_nxtway_gs_mode_[20] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[20] = _i_nxtway_gs_mode_[20]; +#line 1 + _i_nxtway_gs_mode_[21] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[21] = _i_nxtway_gs_mode_[21]; +#line 1 + _i_nxtway_gs_mode_[22] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[22] = _i_nxtway_gs_mode_[22]; +#line 1 + _i_nxtway_gs_mode_[23] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[23] = _i_nxtway_gs_mode_[23]; +#line 1 + _i_nxtway_gs_mode_[24] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[24] = _i_nxtway_gs_mode_[24]; +#line 1 + _i_nxtway_gs_mode_[25] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[25] = _i_nxtway_gs_mode_[25]; +#line 1 + _i_nxtway_gs_mode_[26] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[26] = _i_nxtway_gs_mode_[26]; +} +} +#line 1 "" +__inline static _Bool __startrek_cs_t0(void) +{ + _Bool c1 ; + unsigned char o2 ; + + { +#line 1 + if (__startrek_is_first_cs) { + { +#line 1 "" + __startrek_is_first_cs = 0; + } + } +#line 1 + if (__startrek_lock) { +#line 1 + return (0); + } +#line 1 + c1 = __VERIFIER_nondet_bool(); +#line 1 + if (c1) { +#line 1 + return (0); + } +#line 1 + o2 = __startrek_round; +#line 1 + __startrek_round = __VERIFIER_nondet_uchar(); +#line 1 + __VERIFIER_assume(__startrek_round > o2); +#line 1 + __VERIFIER_assume(__startrek_round <= __startrek_job_end); +#line 1 + if (__startrek_round != __startrek_job_end) { + { +#line 1 + if (__startrek_start_t1[0] < __startrek_round) { +#line 1 + __VERIFIER_assume(__startrek_round > __startrek_end_t1[0]); + } +#line 1 + if (__startrek_start_t1[1] < __startrek_round) { +#line 1 + __VERIFIER_assume(__startrek_round > __startrek_end_t1[1]); + } + } + } +#line 1 + return (1); +} +} +#line 1 "" +__inline static _Bool __startrek_cs_t1(void) +{ + _Bool c1 ; + unsigned char o2 ; + + { +#line 1 + if (__startrek_is_first_cs) { + { +#line 1 "" + __startrek_is_first_cs = 0; + } + } +#line 1 + if (__startrek_lock) { +#line 1 + return (0); + } +#line 1 + c1 = __VERIFIER_nondet_bool(); +#line 1 + if (c1) { +#line 1 + return (0); + } +#line 1 + o2 = __startrek_round; +#line 1 + __startrek_round = __VERIFIER_nondet_uchar(); +#line 1 + __VERIFIER_assume(__startrek_round > o2); +#line 1 + __VERIFIER_assume(__startrek_round <= __startrek_job_end); +#line 1 + if (__startrek_round != __startrek_job_end) { + { + + } + } +#line 1 + return (1); +} +} +#line 1 "" +__inline static _Bool __startrek_cs_t2(void) +{ + + + { +#line 1 "" + return (0); +} +} +#line 1 "" +__inline static void __startrek_assert_i0(_Bool arg ) +{ + + + { +#line 1 + if (__startrek_hyper_period != 0) { +#line 1 "" + return; + } +#line 1 + if (arg) { +#line 1 + return; + } +#line 1 + if (__startrek_round < __startrek_error_round) { +#line 1 + __startrek_error_round = __startrek_round; + } +#line 1 + switch (__startrek_task) { + case 0: +#line 1 + __startrek_Assert_t0_i0[__startrek_job] = 0; +#line 1 "" + break; + case 1: +#line 1 "" + __startrek_Assert_t1_i0[__startrek_job] = 0; +#line 1 "" + break; + case 2: +#line 1 "" + __startrek_Assert_t2_i0[__startrek_job] = 0; +#line 1 "" + break; + } +} +} +#line 1 "" +__inline void __startrek_check_assumptions(void) +{ + + + { +#line 1 "" + __VERIFIER_assume(_i_cmd_turn_[26] == _cmd_turn_[25]); +#line 1 + __VERIFIER_assume(_i_cmd_turn_[25] == _cmd_turn_[24]); +#line 1 + __VERIFIER_assume(_i_cmd_turn_[24] == _cmd_turn_[23]); +#line 1 + __VERIFIER_assume(_i_cmd_turn_[23] == _cmd_turn_[22]); +#line 1 + __VERIFIER_assume(_i_cmd_turn_[22] == _cmd_turn_[21]); +#line 1 + __VERIFIER_assume(_i_cmd_turn_[21] == _cmd_turn_[20]); +#line 1 + __VERIFIER_assume(_i_cmd_turn_[20] == _cmd_turn_[19]); +#line 1 + __VERIFIER_assume(_i_cmd_turn_[19] == _cmd_turn_[18]); +#line 1 + __VERIFIER_assume(_i_cmd_turn_[18] == _cmd_turn_[17]); +#line 1 + __VERIFIER_assume(_i_cmd_turn_[17] == _cmd_turn_[16]); +#line 1 + __VERIFIER_assume(_i_cmd_turn_[16] == _cmd_turn_[15]); +#line 1 + __VERIFIER_assume(_i_cmd_turn_[15] == _cmd_turn_[14]); +#line 1 + __VERIFIER_assume(_i_cmd_turn_[14] == _cmd_turn_[13]); +#line 1 + __VERIFIER_assume(_i_cmd_turn_[13] == _cmd_turn_[12]); +#line 1 + __VERIFIER_assume(_i_cmd_turn_[12] == _cmd_turn_[11]); +#line 1 + __VERIFIER_assume(_i_cmd_turn_[11] == _cmd_turn_[10]); +#line 1 + __VERIFIER_assume(_i_cmd_turn_[10] == _cmd_turn_[9]); +#line 1 + __VERIFIER_assume(_i_cmd_turn_[9] == _cmd_turn_[8]); +#line 1 + __VERIFIER_assume(_i_cmd_turn_[8] == _cmd_turn_[7]); +#line 1 + __VERIFIER_assume(_i_cmd_turn_[7] == _cmd_turn_[6]); +#line 1 + __VERIFIER_assume(_i_cmd_turn_[6] == _cmd_turn_[5]); +#line 1 + __VERIFIER_assume(_i_cmd_turn_[5] == _cmd_turn_[4]); +#line 1 + __VERIFIER_assume(_i_cmd_turn_[4] == _cmd_turn_[3]); +#line 1 + __VERIFIER_assume(_i_cmd_turn_[3] == _cmd_turn_[2]); +#line 1 + __VERIFIER_assume(_i_cmd_turn_[2] == _cmd_turn_[1]); +#line 1 + __VERIFIER_assume(_i_cmd_turn_[1] == _cmd_turn_[0]); +#line 1 + __VERIFIER_assume(_i_cmd_forward_[26] == _cmd_forward_[25]); +#line 1 + __VERIFIER_assume(_i_cmd_forward_[25] == _cmd_forward_[24]); +#line 1 + __VERIFIER_assume(_i_cmd_forward_[24] == _cmd_forward_[23]); +#line 1 + __VERIFIER_assume(_i_cmd_forward_[23] == _cmd_forward_[22]); +#line 1 + __VERIFIER_assume(_i_cmd_forward_[22] == _cmd_forward_[21]); +#line 1 + __VERIFIER_assume(_i_cmd_forward_[21] == _cmd_forward_[20]); +#line 1 + __VERIFIER_assume(_i_cmd_forward_[20] == _cmd_forward_[19]); +#line 1 + __VERIFIER_assume(_i_cmd_forward_[19] == _cmd_forward_[18]); +#line 1 + __VERIFIER_assume(_i_cmd_forward_[18] == _cmd_forward_[17]); +#line 1 + __VERIFIER_assume(_i_cmd_forward_[17] == _cmd_forward_[16]); +#line 1 + __VERIFIER_assume(_i_cmd_forward_[16] == _cmd_forward_[15]); +#line 1 + __VERIFIER_assume(_i_cmd_forward_[15] == _cmd_forward_[14]); +#line 1 + __VERIFIER_assume(_i_cmd_forward_[14] == _cmd_forward_[13]); +#line 1 + __VERIFIER_assume(_i_cmd_forward_[13] == _cmd_forward_[12]); +#line 1 + __VERIFIER_assume(_i_cmd_forward_[12] == _cmd_forward_[11]); +#line 1 + __VERIFIER_assume(_i_cmd_forward_[11] == _cmd_forward_[10]); +#line 1 + __VERIFIER_assume(_i_cmd_forward_[10] == _cmd_forward_[9]); +#line 1 + __VERIFIER_assume(_i_cmd_forward_[9] == _cmd_forward_[8]); +#line 1 + __VERIFIER_assume(_i_cmd_forward_[8] == _cmd_forward_[7]); +#line 1 + __VERIFIER_assume(_i_cmd_forward_[7] == _cmd_forward_[6]); +#line 1 + __VERIFIER_assume(_i_cmd_forward_[6] == _cmd_forward_[5]); +#line 1 + __VERIFIER_assume(_i_cmd_forward_[5] == _cmd_forward_[4]); +#line 1 + __VERIFIER_assume(_i_cmd_forward_[4] == _cmd_forward_[3]); +#line 1 + __VERIFIER_assume(_i_cmd_forward_[3] == _cmd_forward_[2]); +#line 1 + __VERIFIER_assume(_i_cmd_forward_[2] == _cmd_forward_[1]); +#line 1 + __VERIFIER_assume(_i_cmd_forward_[1] == _cmd_forward_[0]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[26] == _obstacle_flag_[25]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[25] == _obstacle_flag_[24]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[24] == _obstacle_flag_[23]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[23] == _obstacle_flag_[22]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[22] == _obstacle_flag_[21]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[21] == _obstacle_flag_[20]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[20] == _obstacle_flag_[19]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[19] == _obstacle_flag_[18]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[18] == _obstacle_flag_[17]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[17] == _obstacle_flag_[16]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[16] == _obstacle_flag_[15]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[15] == _obstacle_flag_[14]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[14] == _obstacle_flag_[13]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[13] == _obstacle_flag_[12]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[12] == _obstacle_flag_[11]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[11] == _obstacle_flag_[10]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[10] == _obstacle_flag_[9]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[9] == _obstacle_flag_[8]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[8] == _obstacle_flag_[7]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[7] == _obstacle_flag_[6]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[6] == _obstacle_flag_[5]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[5] == _obstacle_flag_[4]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[4] == _obstacle_flag_[3]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[3] == _obstacle_flag_[2]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[2] == _obstacle_flag_[1]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[1] == _obstacle_flag_[0]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[26] == _nxtway_gs_mode_[25]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[25] == _nxtway_gs_mode_[24]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[24] == _nxtway_gs_mode_[23]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[23] == _nxtway_gs_mode_[22]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[22] == _nxtway_gs_mode_[21]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[21] == _nxtway_gs_mode_[20]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[20] == _nxtway_gs_mode_[19]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[19] == _nxtway_gs_mode_[18]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[18] == _nxtway_gs_mode_[17]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[17] == _nxtway_gs_mode_[16]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[16] == _nxtway_gs_mode_[15]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[15] == _nxtway_gs_mode_[14]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[14] == _nxtway_gs_mode_[13]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[13] == _nxtway_gs_mode_[12]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[12] == _nxtway_gs_mode_[11]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[11] == _nxtway_gs_mode_[10]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[10] == _nxtway_gs_mode_[9]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[9] == _nxtway_gs_mode_[8]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[8] == _nxtway_gs_mode_[7]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[7] == _nxtway_gs_mode_[6]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[6] == _nxtway_gs_mode_[5]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[5] == _nxtway_gs_mode_[4]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[4] == _nxtway_gs_mode_[3]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[3] == _nxtway_gs_mode_[2]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[2] == _nxtway_gs_mode_[1]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[1] == _nxtway_gs_mode_[0]); +} +} +#line 1 "" +__inline void __startrek_user_init(void) +{ + + + { + +} +} +#line 1 "" +__inline void __startrek_user_final(void) +{ + + + { + +} +} +#line 1 "" +__inline void __startrek_check_assertions(void) +{ + + + { +#line 1 "" + assert(__startrek_Assert_t2_i0[23]); +#line 1 + assert(__startrek_Assert_t2_i0[22]); +#line 1 + assert(__startrek_Assert_t2_i0[21]); +#line 1 + assert(__startrek_Assert_t2_i0[20]); +#line 1 + assert(__startrek_Assert_t2_i0[19]); +#line 1 + assert(__startrek_Assert_t2_i0[18]); +#line 1 + assert(__startrek_Assert_t2_i0[17]); +#line 1 + assert(__startrek_Assert_t2_i0[16]); +#line 1 + assert(__startrek_Assert_t2_i0[15]); +#line 1 + assert(__startrek_Assert_t2_i0[14]); +#line 1 + assert(__startrek_Assert_t2_i0[13]); +#line 1 + assert(__startrek_Assert_t2_i0[12]); +#line 1 + assert(__startrek_Assert_t2_i0[11]); +#line 1 + assert(__startrek_Assert_t2_i0[10]); +#line 1 + assert(__startrek_Assert_t2_i0[9]); +#line 1 + assert(__startrek_Assert_t2_i0[8]); +#line 1 + assert(__startrek_Assert_t2_i0[7]); +#line 1 + assert(__startrek_Assert_t2_i0[6]); +#line 1 + assert(__startrek_Assert_t2_i0[5]); +#line 1 + assert(__startrek_Assert_t2_i0[4]); +#line 1 + assert(__startrek_Assert_t2_i0[3]); +#line 1 + assert(__startrek_Assert_t2_i0[2]); +#line 1 + assert(__startrek_Assert_t2_i0[1]); +#line 1 + assert(__startrek_Assert_t2_i0[0]); +#line 1 + assert(__startrek_Assert_t1_i0[1]); +#line 1 + assert(__startrek_Assert_t1_i0[0]); +#line 1 + assert(__startrek_Assert_t0_i0[0]); +} +} +#line 1 "" +void __main(void) +{ + _Bool c1 ; + + { +#line 1 "" + __startrek_error_round = 27; +#line 1 + __startrek_schedule_jobs(); +#line 1 + __startrek_init_globals(); + { + { +#line 1 + __startrek_task = 0; +#line 1 + __startrek_job = 0; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t0[0]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t0[0]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts3(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } + } + { +#line 1 + __startrek_task = 1; +#line 1 + __startrek_job = 0; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t1[0]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t1[0]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts2(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 1; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t1[1]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t1[1]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts2(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } + } + { +#line 1 + __startrek_task = 2; +#line 1 + __startrek_job = 0; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[0]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[0]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 1; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[1]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[1]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 2; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[2]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[2]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 3; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[3]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[3]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 4; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[4]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[4]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 5; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[5]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[5]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 6; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[6]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[6]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 7; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[7]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[7]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 8; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[8]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[8]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 9; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[9]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[9]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 10; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[10]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[10]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 11; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[11]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[11]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 12; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[12]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[12]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 13; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[13]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[13]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 14; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[14]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[14]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 15; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[15]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[15]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 16; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[16]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[16]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 17; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[17]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[17]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 18; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[18]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[18]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 19; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[19]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[19]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 20; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[20]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[20]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 21; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[21]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[21]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 22; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[22]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[22]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 23; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[23]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[23]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } + } + } +#line 1 + __startrek_round = 27; +#line 1 + __startrek_check_assumptions(); +#line 1 + __startrek_check_assertions(); +#line 1 + if (__startrek_hyper_period == 0) { + { +#line 1 + __startrek_user_final(); + } + } +} +} +#line 1 "" +int main(void) +{ + + + { +#line 1 "" + __startrek_init_shared(); +#line 1 + __startrek_user_init(); +#line 1 + __startrek_hyper_period = 0; +#line 1 + __main(); +} +} +#line 1 "" +__inline static unsigned char __startrek_read_nxtway_gs_mode(void) +{ + unsigned char r1 ; + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + } +#line 1 + r1 = _nxtway_gs_mode_[__startrek_round]; +#line 1 + return (r1); +} +} +#line 1 "" +__inline static _Bool __startrek_read_obstacle_flag(void) +{ + _Bool r1 ; + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + } +#line 1 + r1 = _obstacle_flag_[__startrek_round]; +#line 1 + return (r1); +} +} +#line 1 "" +__inline static char __startrek_read_cmd_forward(void) +{ + char r1 ; + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + } +#line 1 + r1 = _cmd_forward_[__startrek_round]; +#line 1 + return (r1); +} +} +#line 1 "" +__inline static char __startrek_read_cmd_turn(void) +{ + char r1 ; + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + } +#line 1 + r1 = _cmd_turn_[__startrek_round]; +#line 1 + return (r1); +} +} +#line 1 "" +__inline static void __startrek_write_nxtway_gs_mode(unsigned char arg ) +{ + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + } +#line 1 + _nxtway_gs_mode_[__startrek_round] = arg; +} +} +#line 1 "" +__inline static void __startrek_write_obstacle_flag(_Bool arg ) +{ + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + } +#line 1 + _obstacle_flag_[__startrek_round] = arg; +} +} +#line 1 "" +__inline static void __startrek_write_cmd_forward(char arg ) +{ + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + } +#line 1 + _cmd_forward_[__startrek_round] = arg; +} +} +#line 1 "" +__inline static void __startrek_write_cmd_turn(char arg ) +{ + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + } +#line 1 + _cmd_turn_[__startrek_round] = arg; +} +} +#line 1 "" +__inline void __startrek_init_shared(void) +{ + + + { +#line 1 "" + _cmd_turn_[0] = __startrek_hidden_cmd_turn; +#line 1 + _cmd_forward_[0] = __startrek_hidden_cmd_forward; +#line 1 + _obstacle_flag_[0] = __startrek_hidden_obstacle_flag; +#line 1 + _nxtway_gs_mode_[0] = __startrek_hidden_nxtway_gs_mode; +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/rekcba_ctm_false-unreach-call.2.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/rekcba_ctm_false-unreach-call.2.c new file mode 100644 index 000000000..23d404e23 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/rekcba_ctm_false-unreach-call.2.c @@ -0,0 +1,13057 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/********************************************************************** + +Copyright (c) 2013 Carnegie Mellon University. All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following acknowledgments and +disclaimers. + +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. + +3. The names "Carnegie Mellon University," "SEI" and/or "Software +Engineering Institute" shall not be used to endorse or promote +products derived from this software without prior written +permission. For written permission, please contact +permission@sei.cmu.edu. + +4. Products derived from this software may not be called "SEI" nor may +"SEI" appear in their names without prior written permission of +permission@sei.cmu.edu. + +5. Redistributions of any form whatsoever must retain the following +acknowledgment: + +This material is based upon work funded and supported by the +Department of Defense under Contract No. FA8721-05-C-0003 with +Carnegie Mellon University for the operation of the Software +Engineering Institute, a federally funded research and development +center. + +Any opinions, findings and conclusions or recommendations expressed in +this material are those of the author(s) and do not necessarily +reflect the views of the United States Department of Defense. + +NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING +INSTITUTE MATERIAL IS FURNISHEDON AN "AS-IS" BASIS. CARNEGIE MELLON +UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITHER EXPRESSED OR +IMPLIED, AS TO ANY MATTER INCLUDING, BUT NOT LIMITED TO, WARRANTY OF +FITNESS FOR PURPOSE OR MERCHANTABILITY, EXCLUSIVITY, OR RESULTS +OBTAINED FROM USE OF THE MATERIAL. CARNEGIE MELLON UNIVERSITY DOES NOT +MAKE ANY WARRANTY OF ANY KIND WITH RESPECT TO FREEDOM FROM PATENT, +TRADEMARK, OR COPYRIGHT INFRINGEMENT. + +This material has been approved for public release and unlimited +distribution. + +DM-0000575 + +**********************************************************************/ + +/* Generated by CIL v. 1.4.0 */ +/* print_CIL_Input is true */ + +#line 1 "" +_Bool __startrek_Assert_t3_i0[8] = +#line 1 "" + {1, 1, 1, 1, 1, 1, 1, 1}; +#line 1 "" +_Bool __startrek_Assert_t2_i0[8] = +#line 1 + {1, 1, 1, 1, 1, 1, 1, 1}; +#line 1 "" +_Bool __startrek_Assert_t1_i0[8] = +#line 1 + {1, 1, 1, 1, 1, 1, 1, 1}; +#line 1 "" +_Bool __startrek_Assert_t0_i0[4] = {1, 1, 1, 1}; +#line 1 "" +unsigned char __startrek_start_t3[8] ; +#line 1 "" +unsigned char __startrek_end_t3[8] ; +#line 1 "" +unsigned char __startrek_start_t2[8] ; +#line 1 "" +unsigned char __startrek_end_t2[8] ; +#line 1 "" +unsigned char __startrek_start_t1[8] ; +#line 1 "" +unsigned char __startrek_end_t1[8] ; +#line 1 "" +unsigned char __startrek_start_t0[4] ; +#line 1 "" +unsigned char __startrek_end_t0[4] ; +void __startrek_init_shared(void) ; +#line 1 +__inline static void __startrek_assert_i0(_Bool arg ) ; +#line 1 +__inline static _Bool __startrek_cs_t3(void) ; +#line 1 +__inline static _Bool __startrek_cs_t2(void) ; +#line 1 +__inline static _Bool __startrek_cs_t1(void) ; +#line 1 +__inline static _Bool __startrek_cs_t0(void) ; +unsigned short __VERIFIER_nondet_ushort(void) ; +_Bool __VERIFIER_nondet__Bool(void) ; +int __VERIFIER_nondet_int(void) ; +char __VERIFIER_nondet_char(void) ; +unsigned char __VERIFIER_nondet_uchar(void) ; +_Bool __VERIFIER_nondet_bool(void) ; +#line 1 "" +unsigned char __startrek_task ; +#line 1 "" +unsigned char __startrek_job ; +#line 1 "" +unsigned char __startrek_job_end ; +#line 1 "" +unsigned char __startrek_error_round ; +#line 1 "" +unsigned char __startrek_round ; +#line 1 "" +_Bool __startrek_lock = (_Bool)0; +#line 1 "" +_Bool __startrek_is_first_cs ; +#line 1 "" +unsigned char __startrek_hyper_period ; +#line 1 "ctm.bug2.o" +#pragma merger(0,"/tmp/aaaa/ctm.bug2.i","-S") +#line 15 "src/startrek.h" +extern void __startrek_cpu_lock(void) ; +#line 16 +extern void __startrek_cpu_unlock(void) ; +#line 25 +extern void __VERIFIER_assume(_Bool ) ; +#line 26 +void assert(_Bool arg) { if (!arg) { ERROR: __VERIFIER_error();} } +#line 171 "src/startrek.h" +int __startrek_pi_locks_held = 0; +#line 178 "src/startrek.h" +char __startrek_task_base_priority = 0; +#line 1 "" +__inline static char __startrek_read___startrek_current_priority(void) ; +#line 1 +__inline static void __startrek_write___startrek_current_priority(char arg ) ; +#line 1 "" +char ___startrek_current_priority_[28] ; +#line 1 "" +char _i___startrek_current_priority_[28] ; +#line 179 "src/startrek.h" +char __startrek_hidden___startrek_current_priority = 0; +#line 46 "src/verification.h" +extern unsigned char __VERIFIER_nondet_U8() ; +#line 47 +extern _Bool __VERIFIER_nondet_Bool() ; +#line 1 "" +__inline static int __startrek_read_R_count(void) ; +#line 1 +__inline static void __startrek_write_R_count(int arg ) ; +#line 1 "" +int _R_count_[28] ; +#line 1 "" +int _i_R_count_[28] ; +#line 50 "src/verification.h" +int __startrek_hidden_R_count = 0; +#line 1 "" +__inline static char __startrek_read_R_speed(void) ; +#line 1 +__inline static void __startrek_write_R_speed(char arg ) ; +#line 1 "" +char _R_speed_[28] ; +#line 1 "" +char _i_R_speed_[28] ; +#line 51 "src/verification.h" +char __startrek_hidden_R_speed = 0; +#line 1 "" +__inline static int __startrek_read_W_count(void) ; +#line 1 +__inline static void __startrek_write_W_count(int arg ) ; +#line 1 "" +int _W_count_[28] ; +#line 1 "" +int _i_W_count_[28] ; +#line 52 "src/verification.h" +int __startrek_hidden_W_count = 0; +#line 1 "" +__inline static char __startrek_read_W_speed(void) ; +#line 1 +__inline static void __startrek_write_W_speed(char arg ) ; +#line 1 "" +char _W_speed_[28] ; +#line 1 "" +char _i_W_speed_[28] ; +#line 53 "src/verification.h" +char __startrek_hidden_W_speed = 0; +#line 1 "" +__inline static int __startrek_read_T_count(void) ; +#line 1 +__inline static void __startrek_write_T_count(int arg ) ; +#line 1 "" +int _T_count_[28] ; +#line 1 "" +int _i_T_count_[28] ; +#line 54 "src/verification.h" +int __startrek_hidden_T_count = 0; +#line 1 "" +__inline static char __startrek_read_T_speed(void) ; +#line 1 +__inline static void __startrek_write_T_speed(char arg ) ; +#line 1 "" +char _T_speed_[28] ; +#line 1 "" +char _i_T_speed_[28] ; +#line 55 "src/verification.h" +char __startrek_hidden_T_speed = 0; +#line 57 "src/verification.h" +int calibrate(void) +{ + unsigned char tmp ; + + { +#line 59 + tmp = __VERIFIER_nondet_U8(); +#line 59 + return (tmp); +} +} +#line 1 "" +__inline static unsigned char __startrek_read_nxtcolorsensor_data_mode(void) ; +#line 1 +__inline static void __startrek_write_nxtcolorsensor_data_mode(unsigned char arg ) ; +#line 1 "" +unsigned char _nxtcolorsensor_data_mode_[28] ; +#line 1 "" +unsigned char _i_nxtcolorsensor_data_mode_[28] ; +#line 63 "src/verification.h" +unsigned char __startrek_hidden_nxtcolorsensor_data_mode ; +#line 1 "" +__inline static unsigned char __startrek_read_nxtcolorsensor_mode(void) ; +#line 1 +__inline static void __startrek_write_nxtcolorsensor_mode(unsigned char arg ) ; +#line 1 "" +unsigned char _nxtcolorsensor_mode_[28] ; +#line 1 "" +unsigned char _i_nxtcolorsensor_mode_[28] ; +#line 66 "src/verification.h" +unsigned char __startrek_hidden_nxtcolorsensor_mode ; +#line 69 "src/verification.h" +void ecrobot_set_nxtcolorsensor(unsigned char port_id , unsigned char mode ) +{ + + + { +#line 71 + __startrek_write_nxtcolorsensor_data_mode(mode); +#line 72 + return; +} +} +#line 74 "src/verification.h" +unsigned char ecrobot_get_nxtcolorsensor_mode(unsigned char port_id ) +{ + unsigned char tmp ; + + { +#line 76 + tmp = __startrek_read_nxtcolorsensor_mode(); +#line 76 + return (tmp); +} +} +#line 79 "src/verification.h" +void bg_nxtcolorsensor(_Bool take_long_time ) +{ + unsigned char tmp ; + unsigned char tmp___0 ; + unsigned char tmp___1 ; + + { +#line 81 + tmp___0 = __startrek_read_nxtcolorsensor_data_mode(); +#line 81 + tmp___1 = __startrek_read_nxtcolorsensor_mode(); +#line 81 + if (tmp___0 != tmp___1) { +#line 90 + tmp = __startrek_read_nxtcolorsensor_data_mode(); +#line 90 + __startrek_write_nxtcolorsensor_mode(tmp); + } +#line 92 + return; +} +} +#line 101 "src/verification.h" +_Bool ecrobot_is_ENTER_button_pressed(void) +{ + _Bool tmp ; + + { +#line 103 + tmp = __VERIFIER_nondet_Bool(); +#line 103 + return (tmp); +} +} +#line 106 "src/verification.h" +void nxt_motor_set_speed(unsigned int n , int speed , _Bool b ) +{ + unsigned char diff ; + char prev_speed ; + int tmp ; + int tmp___0 ; + int tmp___1 ; + int tmp___2 ; + int tmp___3 ; + int tmp___4 ; + + { +#line 111 + switch (n) { + case 0: +#line 113 + prev_speed = __startrek_read_R_speed(); +#line 114 + if (prev_speed != 0) { +#line 115 + diff = __VERIFIER_nondet_U8(); +#line 116 + tmp = __startrek_read_R_count(); +#line 116 + if (prev_speed > 0) { +#line 116 + tmp___0 = diff; + } else { +#line 116 + tmp___0 = - ((int )diff); + } +#line 116 + __startrek_write_R_count(tmp + tmp___0); + } +#line 118 + __startrek_write_R_speed(speed); +#line 119 + return; + case 1: +#line 122 + prev_speed = __startrek_read_W_speed(); +#line 123 + if (prev_speed != 0) { +#line 124 + diff = __VERIFIER_nondet_U8(); +#line 125 + tmp___1 = __startrek_read_W_count(); +#line 125 + if (prev_speed > 0) { +#line 125 + tmp___2 = diff; + } else { +#line 125 + tmp___2 = - ((int )diff); + } +#line 125 + __startrek_write_W_count(tmp___1 + tmp___2); + } +#line 127 + __startrek_write_W_speed(speed); +#line 128 + return; + case 2: +#line 131 + prev_speed = __startrek_read_T_speed(); +#line 132 + if (prev_speed != 0) { +#line 133 + diff = __VERIFIER_nondet_U8(); +#line 134 + tmp___3 = __startrek_read_T_count(); +#line 134 + if (prev_speed > 0) { +#line 134 + tmp___4 = diff; + } else { +#line 134 + tmp___4 = - ((int )diff); + } +#line 134 + __startrek_write_T_count(tmp___3 + tmp___4); + } +#line 136 + __startrek_write_T_speed(speed); +#line 137 + return; + } +#line 139 + return; +} +} +#line 141 "src/verification.h" +int nxt_motor_get_count(unsigned int n ) +{ + unsigned char delta ; + int new_count ; + int count ; + char speed ; + char tmp ; + char tmp___0 ; + char tmp___1 ; + + { +#line 146 + count = 0; +#line 147 + speed = 0; +#line 149 + switch (n) { + case 0: +#line 151 + tmp = __startrek_read_R_speed(); +#line 151 + speed = tmp; +#line 152 + count = __startrek_read_R_count(); +#line 153 + if ((int )speed == 0) { +#line 154 + return (count); + } else { +#line 156 + delta = __VERIFIER_nondet_U8(); +#line 157 + if (count + (int )speed > 0) { +#line 157 + new_count = delta; + } else { +#line 157 + new_count = - ((int )delta); + } +#line 158 + __startrek_write_R_count(new_count); + } +#line 160 + break; + case 1: +#line 163 + tmp___0 = __startrek_read_W_speed(); +#line 163 + speed = tmp___0; +#line 164 + count = __startrek_read_W_count(); +#line 165 + if ((int )speed == 0) { +#line 166 + return (count); + } else { +#line 168 + delta = __VERIFIER_nondet_U8(); +#line 169 + if (count + (int )speed > 0) { +#line 169 + new_count = delta; + } else { +#line 169 + new_count = - ((int )delta); + } +#line 170 + __startrek_write_W_count(new_count); + } +#line 172 + break; + case 2: +#line 175 + tmp___1 = __startrek_read_T_speed(); +#line 175 + speed = tmp___1; +#line 176 + count = __startrek_read_T_count(); +#line 177 + if ((int )speed == 0) { +#line 178 + return (count); + } else { +#line 180 + delta = __VERIFIER_nondet_U8(); +#line 181 + if (count + (int )speed > 0) { +#line 181 + new_count = delta; + } else { +#line 181 + new_count = - ((int )delta); + } +#line 182 + __startrek_write_T_count(new_count); + } +#line 184 + break; + default: ; + } +#line 188 + return (new_count); +} +} +#line 191 "src/verification.h" +void nxt_motor_set_count(unsigned int n , int count ) +{ + + + { +#line 194 + switch (n) { + case 0: +#line 196 + __startrek_write_R_count(count); +#line 197 + break; + case 1: +#line 200 + __startrek_write_W_count(count); +#line 201 + break; + case 2: +#line 204 + __startrek_write_T_count(count); +#line 205 + break; + } +#line 207 + return; +} +} +#line 210 "src/verification.h" +unsigned char ecrobot_get_nxtcolorsensor_light(unsigned char port ) +{ + unsigned char tmp ; + + { +#line 212 + tmp = __VERIFIER_nondet_U8(); +#line 212 + return (tmp); +} +} +#line 216 "src/verification.h" +void TerminateTask(void) +{ + + + { +#line 218 + return; +} +} +#line 25 "src/ctm.bug2.c" +unsigned char state = 0; +#line 1 "" +__inline static _Bool __startrek_read_input(void) ; +#line 1 +__inline static void __startrek_write_input(_Bool arg ) ; +#line 1 "" +_Bool _input_[28] ; +#line 1 "" +_Bool _i_input_[28] ; +#line 26 "src/ctm.bug2.c" +_Bool __startrek_hidden_input ; +#line 1 "" +__inline static _Bool __startrek_read_output(void) ; +#line 1 +__inline static void __startrek_write_output(_Bool arg ) ; +#line 1 "" +_Bool _output_[28] ; +#line 1 "" +_Bool _i_output_[28] ; +#line 27 "src/ctm.bug2.c" +_Bool __startrek_hidden_output ; +#line 1 "" +__inline static _Bool __startrek_read_dir(void) ; +#line 1 +__inline static void __startrek_write_dir(_Bool arg ) ; +#line 1 "" +_Bool _dir_[28] ; +#line 1 "" +_Bool _i_dir_[28] ; +#line 28 "src/ctm.bug2.c" +_Bool __startrek_hidden_dir ; +#line 1 "" +__inline static _Bool __startrek_read_need_to_read(void) ; +#line 1 +__inline static void __startrek_write_need_to_read(_Bool arg ) ; +#line 1 "" +_Bool _need_to_read_[28] ; +#line 1 "" +_Bool _i_need_to_read_[28] ; +#line 29 "src/ctm.bug2.c" +_Bool __startrek_hidden_need_to_read = 1; +#line 1 "" +__inline static _Bool __startrek_read_need_to_run_nxtbg(void) ; +#line 1 +__inline static void __startrek_write_need_to_run_nxtbg(_Bool arg ) ; +#line 1 "" +_Bool _need_to_run_nxtbg_[28] ; +#line 1 "" +_Bool _i_need_to_run_nxtbg_[28] ; +#line 30 "src/ctm.bug2.c" +_Bool __startrek_hidden_need_to_run_nxtbg = 0; +#line 31 "src/ctm.bug2.c" +_Bool moved ; +#line 1 "" +__inline static unsigned short __startrek_read_threshold(void) ; +#line 1 +__inline static void __startrek_write_threshold(unsigned short arg ) ; +#line 1 "" +unsigned short _threshold_[28] ; +#line 1 "" +unsigned short _i_threshold_[28] ; +#line 35 "src/ctm.bug2.c" +unsigned short __startrek_hidden_threshold = 200; +#line 1 "" +__inline static unsigned char __startrek_read_R_state(void) ; +#line 1 +__inline static void __startrek_write_R_state(unsigned char arg ) ; +#line 1 "" +unsigned char _R_state_[28] ; +#line 1 "" +unsigned char _i_R_state_[28] ; +#line 37 "src/ctm.bug2.c" +unsigned char __startrek_hidden_R_state = 0; +#line 1 "" +__inline static unsigned char __startrek_read_W_state(void) ; +#line 1 +__inline static void __startrek_write_W_state(unsigned char arg ) ; +#line 1 "" +unsigned char _W_state_[28] ; +#line 1 "" +unsigned char _i_W_state_[28] ; +#line 38 "src/ctm.bug2.c" +unsigned char __startrek_hidden_W_state = 0; +#line 1 "" +__inline static unsigned char __startrek_read_T_state(void) ; +#line 1 +__inline static void __startrek_write_T_state(unsigned char arg ) ; +#line 1 "" +unsigned char _T_state_[28] ; +#line 1 "" +unsigned char _i_T_state_[28] ; +#line 39 "src/ctm.bug2.c" +unsigned char __startrek_hidden_T_state = 0; +#line 40 "src/ctm.bug2.c" +unsigned char C_state = 0; +#line 41 "src/ctm.bug2.c" +unsigned char TM_mode = 2; +#line 1 "src/negation.c" +_Bool transition(unsigned short in_state , _Bool input___0 ) +{ + _Bool halt ; + + { +#line 3 + halt = 0; +#line 4 + switch (in_state) { + case 0: +#line 6 + if ((int )input___0 == 0) { +#line 7 + __startrek_write_output(1); +#line 8 + state = 0; +#line 9 + __startrek_write_dir(0); + } else { +#line 11 + __startrek_write_output(0); +#line 12 + state = 0; +#line 13 + __startrek_write_dir(0); + } +#line 15 + break; + } +#line 17 + return (halt); +} +} +#line 51 "src/ctm.bug2.c" +void init(void) +{ + + + { +#line 53 + __startrek_write_R_state(0); +#line 54 + __startrek_write_W_state(0); +#line 55 + __startrek_write_T_state(0); +#line 57 + nxt_motor_set_count(0, 0); +#line 58 + nxt_motor_set_count(1, 0); +#line 59 + nxt_motor_set_count(2, 0); +#line 62 + C_state = 0; +#line 63 + state = 0; +#line 64 + __startrek_write_need_to_read(1); +#line 65 + __startrek_write_need_to_run_nxtbg(0); +#line 66 + moved = 0; +#line 67 + return; +} +} +#line 107 "src/ctm.bug2.c" +_Bool move_motor(unsigned int n , int speed_percent , int target_count , int sign ) +{ + int count ; + int tmp ; + int speed ; + _Bool ret ; + + { +#line 109 + tmp = nxt_motor_get_count(n); +#line 109 + count = tmp; +#line 111 + ret = 0; +#line 114 + if (sign * count >= sign * target_count) { +#line 115 + speed = 0; +#line 116 + ret = 1; + } else { +#line 118 + if (sign * (target_count - count) < 60) { +#line 119 + speed = sign * 15; + } else { +#line 121 + speed = sign * speed_percent; + } +#line 123 + ret = 0; + } +#line 127 + nxt_motor_set_speed(n, speed, 1); +#line 128 + return (ret); +} +} +#line 132 "src/ctm.bug2.c" +void Controller(void) +{ + int old_state ; + _Bool tmp ; + int tmp___0 ; + unsigned short tmp___1 ; + int tmp___2 ; + unsigned char tmp___3 ; + int tmp___4 ; + unsigned char tmp___5 ; + _Bool tmp___6 ; + _Bool tmp___7 ; + _Bool tmp___8 ; + int tmp___9 ; + unsigned char tmp___10 ; + int tmp___11 ; + unsigned char tmp___12 ; + _Bool tmp___13 ; + _Bool tmp___14 ; + unsigned char tmp___15 ; + unsigned char tmp___16 ; + _Bool tmp___17 ; + + { +#line 134 + old_state = state; +#line 135 + tmp = __startrek_read_need_to_run_nxtbg(); +#line 135 + if (tmp) { +#line 136 + bg_nxtcolorsensor(1); +#line 137 + __startrek_write_need_to_run_nxtbg(0); + } +#line 140 + switch (TM_mode) { + case 0: +#line 142 + tmp___0 = calibrate(); +#line 142 + __startrek_write_threshold(tmp___0); +#line 143 + tmp___1 = __startrek_read_threshold(); +#line 143 + if (tmp___1 > 0) { +#line 144 + TM_mode = 1; + } +#line 146 + break; + case 1: +#line 150 + init(); +#line 151 + TM_mode = 3; +#line 152 + break; + case 2: +#line 155 + switch (C_state) { + case 0: +#line 157 + tmp___6 = __startrek_read_need_to_read(); +#line 157 + if (tmp___6) { +#line 158 + tmp___4 = nxt_motor_get_count(0); +#line 158 + if (tmp___4 < 45) { +#line 158 + tmp___5 = __startrek_read_R_state(); +#line 158 + if (tmp___5 == 0) { +#line 159 + __startrek_write_R_state(1); + } else { +#line 158 + goto _L; + } + } else { + _L: /* CIL Label */ +#line 160 + tmp___2 = nxt_motor_get_count(0); +#line 160 + if (tmp___2 >= 45) { +#line 160 + tmp___3 = __startrek_read_R_state(); +#line 160 + if (tmp___3 == 0) { +#line 161 + __startrek_write_R_state(3); + } + } + } + } else { +#line 164 + __startrek_write_R_state(0); +#line 165 + C_state = 1; + } +#line 167 + break; + case 1: +#line 170 + old_state = state; +#line 171 + tmp___7 = __startrek_read_input(); +#line 171 + tmp___8 = transition(state, tmp___7); +#line 171 + if (tmp___8) { +#line 172 + TM_mode = 3; + } else { +#line 174 + C_state = 2; + } +#line 176 + break; + case 2: +#line 181 + tmp___13 = __startrek_read_input(); +#line 181 + tmp___14 = __startrek_read_output(); +#line 181 + if (tmp___13 != tmp___14) { +#line 183 + tmp___9 = nxt_motor_get_count(0); +#line 183 + if (tmp___9 > 0) { +#line 183 + tmp___10 = __startrek_read_R_state(); +#line 183 + if (tmp___10 == 0) { +#line 184 + __startrek_write_R_state(2); + } + } +#line 188 + tmp___11 = nxt_motor_get_count(0); +#line 188 + if (tmp___11 <= 0) { +#line 188 + tmp___12 = __startrek_read_W_state(); +#line 188 + if (tmp___12 == 0) { +#line 189 + __startrek_write_W_state(1); + } + } + } else { +#line 193 + __startrek_write_W_state(0); +#line 194 + C_state = 3; + } +#line 196 + break; + case 3: +#line 199 + tmp___16 = __startrek_read_T_state(); +#line 199 + if (tmp___16 == 0) { +#line 200 + __startrek_write_T_state(1); + } else { +#line 201 + tmp___15 = __startrek_read_T_state(); +#line 201 + if (tmp___15 == 2) { +#line 202 + __startrek_write_T_state(0); +#line 203 + C_state = 0; + } + } +#line 205 + break; + } +#line 207 + break; + case 3: +#line 210 + tmp___17 = ecrobot_is_ENTER_button_pressed(); +#line 210 + if (tmp___17) { +#line 211 + TM_mode = 2; + } +#line 213 + break; + } +#line 215 + TerminateTask(); +#line 216 + return; +} +} +#line 218 "src/ctm.bug2.c" +void Reader(void) +{ + unsigned short color ; + unsigned char tmp ; + _Bool tmp___0 ; + _Bool tmp___1 ; + unsigned char tmp___2 ; + unsigned char tmp___3 ; + unsigned char tmp___4 ; + int tmp___6 ; + unsigned short tmp___7 ; + + { +#line 224 + tmp = __startrek_read_R_state(); +#line 224 + switch (tmp) { + case 0: +#line 227 + break; + case 1: +#line 231 + tmp___0 = move_motor(0, 15, 45, 1); +#line 231 + if (tmp___0) { +#line 232 + __startrek_write_R_state(0); + } +#line 233 + break; + case 2: +#line 237 + tmp___1 = move_motor(0, 15, 0, -1); +#line 237 + if (tmp___1) { +#line 238 + __startrek_write_R_state(0); + } +#line 240 + break; + case 3: +#line 243 + tmp___2 = ecrobot_get_nxtcolorsensor_mode(0); +#line 243 + if ((int )tmp___2 != 2) { +#line 244 + ecrobot_set_nxtcolorsensor(0, 2); +#line 245 + __startrek_write_need_to_run_nxtbg(1); + } +#line 259 + tmp___3 = ecrobot_get_nxtcolorsensor_mode(0); +#line 259 + __startrek_assert_i0((int )tmp___3 == 2); +#line 263 + bg_nxtcolorsensor(0); +#line 264 + tmp___4 = ecrobot_get_nxtcolorsensor_light(0); +#line 264 + color = tmp___4; +#line 265 + tmp___7 = __startrek_read_threshold(); +#line 265 + if ((int )color < tmp___7) { +#line 265 + tmp___6 = 1; + } else { +#line 265 + tmp___6 = 0; + } +#line 265 + __startrek_write_input(tmp___6); +#line 280 + ecrobot_set_nxtcolorsensor(0, 5); +#line 281 + __startrek_write_need_to_run_nxtbg(1); +#line 283 + __startrek_write_R_state(0); +#line 284 + __startrek_write_need_to_read(0); +#line 286 + break; + } +#line 288 + TerminateTask(); +#line 289 + return; +} +} +#line 291 "src/ctm.bug2.c" +void Writer(void) +{ + int sign ; + _Bool tmp___0 ; + unsigned char tmp___1 ; + int tmp___2 ; + _Bool tmp___3 ; + int tmp___4 ; + _Bool tmp___5 ; + + { +#line 294 + tmp___0 = __startrek_read_output(); +#line 294 + if (tmp___0 == 1) { +#line 294 + sign = 1; + } else { +#line 294 + sign = -1; + } +#line 296 + tmp___1 = __startrek_read_W_state(); +#line 296 + switch (tmp___1) { + case 0: +#line 299 + break; + case 1: +#line 310 + tmp___5 = move_motor(1, 30, sign * 180, sign); +#line 310 + if (tmp___5) { +#line 311 + __startrek_write_W_state(0); +#line 312 + tmp___2 = nxt_motor_get_count(1); +#line 312 + nxt_motor_set_count(1, tmp___2 % 180); +#line 314 + tmp___3 = __startrek_read_input(); +#line 314 + if (tmp___3) { +#line 314 + tmp___4 = 0; + } else { +#line 314 + tmp___4 = 1; + } +#line 314 + __startrek_write_input(tmp___4); + } +#line 316 + break; + } +#line 318 + TerminateTask(); +#line 319 + return; +} +} +#line 323 "src/ctm.bug2.c" +static int sign ; +#line 321 "src/ctm.bug2.c" +void TapeMover(void) +{ + _Bool tmp___0 ; + unsigned char tmp___1 ; + int tmp___2 ; + _Bool tmp___3 ; + + { +#line 324 + tmp___0 = __startrek_read_dir(); +#line 324 + if (tmp___0 == 0) { +#line 324 + sign = 1; + } else { +#line 324 + sign = -1; + } +#line 326 + tmp___1 = __startrek_read_T_state(); +#line 326 + switch (tmp___1) { + case 0: + case 2: +#line 330 + break; + case 1: +#line 333 + __startrek_write_need_to_read(1); +#line 344 + tmp___3 = move_motor(2, 100, sign * 1800, sign); +#line 344 + if (tmp___3) { +#line 345 + __startrek_write_T_state(2); +#line 346 + tmp___2 = nxt_motor_get_count(2); +#line 346 + nxt_motor_set_count(2, tmp___2 % 1800); + } +#line 349 + break; + } +#line 351 + TerminateTask(); +#line 352 + return; +} +} +#line 357 "src/ctm.bug2.c" +int __startrek_time_bound = 2000; +#line 360 "src/ctm.bug2.c" +char __startrek_base_priority_Controller = 1; +#line 1 "" +__inline static char __startrek_read___startrek_job_count_Controller(void) ; +#line 1 +__inline static void __startrek_write___startrek_job_count_Controller(char arg ) ; +#line 1 "" +char ___startrek_job_count_Controller_[28] ; +#line 1 "" +char _i___startrek_job_count_Controller_[28] ; +#line 360 "src/ctm.bug2.c" +char __startrek_hidden___startrek_job_count_Controller = 0; +#line 360 +__inline static _Bool __startrek_entry_pt_Controller(void) ; +#line 360 "src/ctm.bug2.c" +__inline static _Bool __startrek_entry_pt_Controller(void) +{ + char sp ; + char tmp ; + char tmp___0 ; + + { +#line 360 + __startrek_lock = 1; +#line 360 + tmp = __startrek_read___startrek_current_priority(); +#line 360 + sp = tmp; +#line 360 + __startrek_lock = 0; +#line 360 + if ((int )__startrek_base_priority_Controller <= (int )sp) { +#line 360 + __VERIFIER_assume(0); +#line 360 + return ((_Bool)0); + } +#line 360 + __startrek_lock = 1; +#line 360 + __startrek_write___startrek_current_priority(__startrek_base_priority_Controller); +#line 360 + __startrek_lock = 0; +#line 360 + __startrek_pi_locks_held = 0; +#line 360 + __startrek_task_base_priority = __startrek_base_priority_Controller; +#line 360 + Controller(); +#line 360 + __startrek_lock = 1; +#line 360 + tmp___0 = __startrek_read___startrek_job_count_Controller(); +#line 360 + __startrek_write___startrek_job_count_Controller(tmp___0 + 1); +#line 360 + __startrek_write___startrek_current_priority(sp); +#line 360 + __startrek_lock = 0; +#line 360 + return ((_Bool)1); +} +} +#line 360 "src/ctm.bug2.c" +void cil_keeperController(void) +{ + + + { +#line 360 + __startrek_entry_pt_Controller(); +#line 360 + return; +} +} +#line 361 "src/ctm.bug2.c" +int __startrek_period_Controller = 500; +#line 362 "src/ctm.bug2.c" +int __startrek_wcet_Controller = 440; +#line 363 "src/ctm.bug2.c" +int __startrek_arrival_min_Controller = 0; +#line 363 "src/ctm.bug2.c" +int __startrek_arrival_max_Controller = 0; +#line 367 "src/ctm.bug2.c" +char __startrek_base_priority_TapeMover = 2; +#line 1 "" +__inline static char __startrek_read___startrek_job_count_TapeMover(void) ; +#line 1 +__inline static void __startrek_write___startrek_job_count_TapeMover(char arg ) ; +#line 1 "" +char ___startrek_job_count_TapeMover_[28] ; +#line 1 "" +char _i___startrek_job_count_TapeMover_[28] ; +#line 367 "src/ctm.bug2.c" +char __startrek_hidden___startrek_job_count_TapeMover = 0; +#line 367 +__inline static _Bool __startrek_entry_pt_TapeMover(void) ; +#line 367 "src/ctm.bug2.c" +__inline static _Bool __startrek_entry_pt_TapeMover(void) +{ + char sp ; + char tmp ; + char tmp___0 ; + + { +#line 367 + __startrek_lock = 1; +#line 367 + tmp = __startrek_read___startrek_current_priority(); +#line 367 + sp = tmp; +#line 367 + __startrek_lock = 0; +#line 367 + if ((int )__startrek_base_priority_TapeMover <= (int )sp) { +#line 367 + __VERIFIER_assume(0); +#line 367 + return ((_Bool)0); + } +#line 367 + __startrek_lock = 1; +#line 367 + __startrek_write___startrek_current_priority(__startrek_base_priority_TapeMover); +#line 367 + __startrek_lock = 0; +#line 367 + __startrek_pi_locks_held = 0; +#line 367 + __startrek_task_base_priority = __startrek_base_priority_TapeMover; +#line 367 + TapeMover(); +#line 367 + __startrek_lock = 1; +#line 367 + tmp___0 = __startrek_read___startrek_job_count_TapeMover(); +#line 367 + __startrek_write___startrek_job_count_TapeMover(tmp___0 + 1); +#line 367 + __startrek_write___startrek_current_priority(sp); +#line 367 + __startrek_lock = 0; +#line 367 + return ((_Bool)1); +} +} +#line 367 "src/ctm.bug2.c" +void cil_keeperTapeMover(void) +{ + + + { +#line 367 + __startrek_entry_pt_TapeMover(); +#line 367 + return; +} +} +#line 368 "src/ctm.bug2.c" +int __startrek_period_TapeMover = 250; +#line 369 "src/ctm.bug2.c" +int __startrek_wcet_TapeMover = 10; +#line 370 "src/ctm.bug2.c" +int __startrek_arrival_min_TapeMover = 0; +#line 370 "src/ctm.bug2.c" +int __startrek_arrival_max_TapeMover = 0; +#line 374 "src/ctm.bug2.c" +char __startrek_base_priority_Reader = 3; +#line 1 "" +__inline static char __startrek_read___startrek_job_count_Reader(void) ; +#line 1 +__inline static void __startrek_write___startrek_job_count_Reader(char arg ) ; +#line 1 "" +char ___startrek_job_count_Reader_[28] ; +#line 1 "" +char _i___startrek_job_count_Reader_[28] ; +#line 374 "src/ctm.bug2.c" +char __startrek_hidden___startrek_job_count_Reader = 0; +#line 374 +__inline static _Bool __startrek_entry_pt_Reader(void) ; +#line 374 "src/ctm.bug2.c" +__inline static _Bool __startrek_entry_pt_Reader(void) +{ + char sp ; + char tmp ; + char tmp___0 ; + + { +#line 374 + __startrek_lock = 1; +#line 374 + tmp = __startrek_read___startrek_current_priority(); +#line 374 + sp = tmp; +#line 374 + __startrek_lock = 0; +#line 374 + if ((int )__startrek_base_priority_Reader <= (int )sp) { +#line 374 + __VERIFIER_assume(0); +#line 374 + return ((_Bool)0); + } +#line 374 + __startrek_lock = 1; +#line 374 + __startrek_write___startrek_current_priority(__startrek_base_priority_Reader); +#line 374 + __startrek_lock = 0; +#line 374 + __startrek_pi_locks_held = 0; +#line 374 + __startrek_task_base_priority = __startrek_base_priority_Reader; +#line 374 + Reader(); +#line 374 + __startrek_lock = 1; +#line 374 + tmp___0 = __startrek_read___startrek_job_count_Reader(); +#line 374 + __startrek_write___startrek_job_count_Reader(tmp___0 + 1); +#line 374 + __startrek_write___startrek_current_priority(sp); +#line 374 + __startrek_lock = 0; +#line 374 + return ((_Bool)1); +} +} +#line 374 "src/ctm.bug2.c" +void cil_keeperReader(void) +{ + + + { +#line 374 + __startrek_entry_pt_Reader(); +#line 374 + return; +} +} +#line 375 "src/ctm.bug2.c" +int __startrek_period_Reader = 250; +#line 376 "src/ctm.bug2.c" +int __startrek_wcet_Reader = 10; +#line 377 "src/ctm.bug2.c" +int __startrek_arrival_min_Reader = 0; +#line 377 "src/ctm.bug2.c" +int __startrek_arrival_max_Reader = 0; +#line 381 "src/ctm.bug2.c" +char __startrek_base_priority_Writer = 4; +#line 1 "" +__inline static char __startrek_read___startrek_job_count_Writer(void) ; +#line 1 +__inline static void __startrek_write___startrek_job_count_Writer(char arg ) ; +#line 1 "" +char ___startrek_job_count_Writer_[28] ; +#line 1 "" +char _i___startrek_job_count_Writer_[28] ; +#line 381 "src/ctm.bug2.c" +char __startrek_hidden___startrek_job_count_Writer = 0; +#line 381 +__inline static _Bool __startrek_entry_pt_Writer(void) ; +#line 381 "src/ctm.bug2.c" +__inline static _Bool __startrek_entry_pt_Writer(void) +{ + char sp ; + char tmp ; + char tmp___0 ; + + { +#line 381 + __startrek_lock = 1; +#line 381 + tmp = __startrek_read___startrek_current_priority(); +#line 381 + sp = tmp; +#line 381 + __startrek_lock = 0; +#line 381 + if ((int )__startrek_base_priority_Writer <= (int )sp) { +#line 381 + __VERIFIER_assume(0); +#line 381 + return ((_Bool)0); + } +#line 381 + __startrek_lock = 1; +#line 381 + __startrek_write___startrek_current_priority(__startrek_base_priority_Writer); +#line 381 + __startrek_lock = 0; +#line 381 + __startrek_pi_locks_held = 0; +#line 381 + __startrek_task_base_priority = __startrek_base_priority_Writer; +#line 381 + Writer(); +#line 381 + __startrek_lock = 1; +#line 381 + tmp___0 = __startrek_read___startrek_job_count_Writer(); +#line 381 + __startrek_write___startrek_job_count_Writer(tmp___0 + 1); +#line 381 + __startrek_write___startrek_current_priority(sp); +#line 381 + __startrek_lock = 0; +#line 381 + return ((_Bool)1); +} +} +#line 381 "src/ctm.bug2.c" +void cil_keeperWriter(void) +{ + + + { +#line 381 + __startrek_entry_pt_Writer(); +#line 381 + return; +} +} +#line 382 "src/ctm.bug2.c" +int __startrek_period_Writer = 250; +#line 383 "src/ctm.bug2.c" +int __startrek_wcet_Writer = 10; +#line 384 "src/ctm.bug2.c" +int __startrek_arrival_min_Writer = 0; +#line 384 "src/ctm.bug2.c" +int __startrek_arrival_max_Writer = 0; +#line 1 "" +__inline void __startrek_schedule_jobs(void) +{ + + + { +#line 1 "" + __startrek_start_t0[0] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t0[0] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_start_t0[1] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t0[1] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_start_t0[2] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t0[2] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_start_t0[3] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t0[3] = __VERIFIER_nondet_uchar(); +#line 1 + __VERIFIER_assume(0 <= __startrek_start_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t0[3] <= 27); +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_start_t0[1] <= __startrek_end_t0[1]); +#line 1 + __VERIFIER_assume(__startrek_start_t0[2] <= __startrek_end_t0[2]); +#line 1 + __VERIFIER_assume(__startrek_start_t0[3] <= __startrek_end_t0[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t0[0] <= __startrek_start_t0[1] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t0[1] <= __startrek_start_t0[2] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t0[2] <= __startrek_start_t0[3] - 1); +#line 1 + __startrek_start_t1[0] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t1[0] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_start_t1[1] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t1[1] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_start_t1[2] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t1[2] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_start_t1[3] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t1[3] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_start_t1[4] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t1[4] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_start_t1[5] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t1[5] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_start_t1[6] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t1[6] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_start_t1[7] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t1[7] = __VERIFIER_nondet_uchar(); +#line 1 + __VERIFIER_assume(0 <= __startrek_start_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[7] <= 27); +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_start_t1[2] <= __startrek_end_t1[2]); +#line 1 + __VERIFIER_assume(__startrek_start_t1[3] <= __startrek_end_t1[3]); +#line 1 + __VERIFIER_assume(__startrek_start_t1[4] <= __startrek_end_t1[4]); +#line 1 + __VERIFIER_assume(__startrek_start_t1[5] <= __startrek_end_t1[5]); +#line 1 + __VERIFIER_assume(__startrek_start_t1[6] <= __startrek_end_t1[6]); +#line 1 + __VERIFIER_assume(__startrek_start_t1[7] <= __startrek_end_t1[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[0] <= __startrek_start_t1[1] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t1[1] <= __startrek_start_t1[2] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t1[2] <= __startrek_start_t1[3] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t1[3] <= __startrek_start_t1[4] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t1[4] <= __startrek_start_t1[5] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t1[5] <= __startrek_start_t1[6] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t1[6] <= __startrek_start_t1[7] - 1); +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t1[0]) { +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[0] < __startrek_end_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t0[1] <= __startrek_end_t1[0]) { +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t0[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[1] <= __startrek_start_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[0] < __startrek_end_t0[1]); + } + } + } +#line 1 + if (__startrek_start_t0[2] <= __startrek_end_t1[0]) { +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t0[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[2] <= __startrek_start_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[0] < __startrek_end_t0[2]); + } + } + } +#line 1 + if (__startrek_start_t0[3] <= __startrek_end_t1[0]) { +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t0[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[3] <= __startrek_start_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[0] < __startrek_end_t0[3]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t1[1]) { +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[1] < __startrek_end_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t0[1] <= __startrek_end_t1[1]) { +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t0[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[1] <= __startrek_start_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[1] < __startrek_end_t0[1]); + } + } + } +#line 1 + if (__startrek_start_t0[2] <= __startrek_end_t1[1]) { +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t0[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[2] <= __startrek_start_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[1] < __startrek_end_t0[2]); + } + } + } +#line 1 + if (__startrek_start_t0[3] <= __startrek_end_t1[1]) { +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t0[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[3] <= __startrek_start_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[1] < __startrek_end_t0[3]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t1[2]) { +#line 1 + if (__startrek_start_t1[2] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t1[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[2] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[0] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t0[1] <= __startrek_end_t1[2]) { +#line 1 + if (__startrek_start_t1[2] <= __startrek_end_t0[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[1] <= __startrek_start_t1[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[2] < __startrek_end_t0[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[0] < __startrek_start_t0[1]); + } + } + } +#line 1 + if (__startrek_start_t0[2] <= __startrek_end_t1[2]) { +#line 1 + if (__startrek_start_t1[2] <= __startrek_end_t0[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[2] <= __startrek_start_t1[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[2] < __startrek_end_t0[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[0] < __startrek_start_t0[2]); + } + } + } +#line 1 + if (__startrek_start_t0[3] <= __startrek_end_t1[2]) { +#line 1 + if (__startrek_start_t1[2] <= __startrek_end_t0[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[3] <= __startrek_start_t1[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[2] < __startrek_end_t0[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[0] < __startrek_start_t0[3]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t1[3]) { +#line 1 + if (__startrek_start_t1[3] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t1[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[3] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[1] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t0[1] <= __startrek_end_t1[3]) { +#line 1 + if (__startrek_start_t1[3] <= __startrek_end_t0[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[1] <= __startrek_start_t1[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[3] < __startrek_end_t0[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[1] < __startrek_start_t0[1]); + } + } + } +#line 1 + if (__startrek_start_t0[2] <= __startrek_end_t1[3]) { +#line 1 + if (__startrek_start_t1[3] <= __startrek_end_t0[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[2] <= __startrek_start_t1[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[3] < __startrek_end_t0[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[1] < __startrek_start_t0[2]); + } + } + } +#line 1 + if (__startrek_start_t0[3] <= __startrek_end_t1[3]) { +#line 1 + if (__startrek_start_t1[3] <= __startrek_end_t0[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[3] <= __startrek_start_t1[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[3] < __startrek_end_t0[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[1] < __startrek_start_t0[3]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t1[4]) { +#line 1 + if (__startrek_start_t1[4] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t1[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[4] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[2] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t0[1] <= __startrek_end_t1[4]) { +#line 1 + if (__startrek_start_t1[4] <= __startrek_end_t0[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[1] <= __startrek_start_t1[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[4] < __startrek_end_t0[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[2] < __startrek_start_t0[1]); + } + } + } +#line 1 + if (__startrek_start_t0[2] <= __startrek_end_t1[4]) { +#line 1 + if (__startrek_start_t1[4] <= __startrek_end_t0[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[2] <= __startrek_start_t1[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[4] < __startrek_end_t0[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[2] < __startrek_start_t0[2]); + } + } + } +#line 1 + if (__startrek_start_t0[3] <= __startrek_end_t1[4]) { +#line 1 + if (__startrek_start_t1[4] <= __startrek_end_t0[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[3] <= __startrek_start_t1[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[4] < __startrek_end_t0[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[2] < __startrek_start_t0[3]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t1[5]) { +#line 1 + if (__startrek_start_t1[5] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t1[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[5] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[3] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t0[1] <= __startrek_end_t1[5]) { +#line 1 + if (__startrek_start_t1[5] <= __startrek_end_t0[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[1] <= __startrek_start_t1[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[5] < __startrek_end_t0[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[3] < __startrek_start_t0[1]); + } + } + } +#line 1 + if (__startrek_start_t0[2] <= __startrek_end_t1[5]) { +#line 1 + if (__startrek_start_t1[5] <= __startrek_end_t0[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[2] <= __startrek_start_t1[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[5] < __startrek_end_t0[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[3] < __startrek_start_t0[2]); + } + } + } +#line 1 + if (__startrek_start_t0[3] <= __startrek_end_t1[5]) { +#line 1 + if (__startrek_start_t1[5] <= __startrek_end_t0[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[3] <= __startrek_start_t1[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[5] < __startrek_end_t0[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[3] < __startrek_start_t0[3]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t1[6]) { +#line 1 + if (__startrek_start_t1[6] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t1[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[6] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[4] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t0[1] <= __startrek_end_t1[6]) { +#line 1 + if (__startrek_start_t1[6] <= __startrek_end_t0[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[1] <= __startrek_start_t1[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[6] < __startrek_end_t0[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[4] < __startrek_start_t0[1]); + } + } + } +#line 1 + if (__startrek_start_t0[2] <= __startrek_end_t1[6]) { +#line 1 + if (__startrek_start_t1[6] <= __startrek_end_t0[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[2] <= __startrek_start_t1[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[6] < __startrek_end_t0[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[4] < __startrek_start_t0[2]); + } + } + } +#line 1 + if (__startrek_start_t0[3] <= __startrek_end_t1[6]) { +#line 1 + if (__startrek_start_t1[6] <= __startrek_end_t0[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[3] <= __startrek_start_t1[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[6] < __startrek_end_t0[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[4] < __startrek_start_t0[3]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t1[7]) { +#line 1 + if (__startrek_start_t1[7] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t1[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[7] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[5] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t0[1] <= __startrek_end_t1[7]) { +#line 1 + if (__startrek_start_t1[7] <= __startrek_end_t0[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[1] <= __startrek_start_t1[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[7] < __startrek_end_t0[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[5] < __startrek_start_t0[1]); + } + } + } +#line 1 + if (__startrek_start_t0[2] <= __startrek_end_t1[7]) { +#line 1 + if (__startrek_start_t1[7] <= __startrek_end_t0[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[2] <= __startrek_start_t1[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[7] < __startrek_end_t0[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[5] < __startrek_start_t0[2]); + } + } + } +#line 1 + if (__startrek_start_t0[3] <= __startrek_end_t1[7]) { +#line 1 + if (__startrek_start_t1[7] <= __startrek_end_t0[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[3] <= __startrek_start_t1[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[7] < __startrek_end_t0[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[5] < __startrek_start_t0[3]); + } + } + } +#line 1 + __startrek_start_t2[0] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[0] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_start_t2[1] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[1] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_start_t2[2] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[2] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_start_t2[3] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[3] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_start_t2[4] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[4] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_start_t2[5] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[5] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_start_t2[6] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[6] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_start_t2[7] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[7] = __VERIFIER_nondet_uchar(); +#line 1 + __VERIFIER_assume(0 <= __startrek_start_t2[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[7] <= 27); +#line 1 + __VERIFIER_assume(__startrek_start_t2[0] <= __startrek_end_t2[0]); +#line 1 + __VERIFIER_assume(__startrek_start_t2[1] <= __startrek_end_t2[1]); +#line 1 + __VERIFIER_assume(__startrek_start_t2[2] <= __startrek_end_t2[2]); +#line 1 + __VERIFIER_assume(__startrek_start_t2[3] <= __startrek_end_t2[3]); +#line 1 + __VERIFIER_assume(__startrek_start_t2[4] <= __startrek_end_t2[4]); +#line 1 + __VERIFIER_assume(__startrek_start_t2[5] <= __startrek_end_t2[5]); +#line 1 + __VERIFIER_assume(__startrek_start_t2[6] <= __startrek_end_t2[6]); +#line 1 + __VERIFIER_assume(__startrek_start_t2[7] <= __startrek_end_t2[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] <= __startrek_start_t2[1] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] <= __startrek_start_t2[2] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] <= __startrek_start_t2[3] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] <= __startrek_start_t2[4] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] <= __startrek_start_t2[5] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] <= __startrek_start_t2[6] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] <= __startrek_start_t2[7] - 1); +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[0]) { +#line 1 + if (__startrek_start_t2[0] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_end_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t0[1] <= __startrek_end_t2[0]) { +#line 1 + if (__startrek_start_t2[0] <= __startrek_end_t0[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[1] <= __startrek_start_t2[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_end_t0[1]); + } + } + } +#line 1 + if (__startrek_start_t0[2] <= __startrek_end_t2[0]) { +#line 1 + if (__startrek_start_t2[0] <= __startrek_end_t0[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[2] <= __startrek_start_t2[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_end_t0[2]); + } + } + } +#line 1 + if (__startrek_start_t0[3] <= __startrek_end_t2[0]) { +#line 1 + if (__startrek_start_t2[0] <= __startrek_end_t0[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[3] <= __startrek_start_t2[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_end_t0[3]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[0]) { +#line 1 + if (__startrek_start_t2[0] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_end_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[0]) { +#line 1 + if (__startrek_start_t2[0] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_end_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t1[2] <= __startrek_end_t2[0]) { +#line 1 + if (__startrek_start_t2[0] <= __startrek_end_t1[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[2] <= __startrek_start_t2[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_end_t1[2]); + } + } + } +#line 1 + if (__startrek_start_t1[3] <= __startrek_end_t2[0]) { +#line 1 + if (__startrek_start_t2[0] <= __startrek_end_t1[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[3] <= __startrek_start_t2[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_end_t1[3]); + } + } + } +#line 1 + if (__startrek_start_t1[4] <= __startrek_end_t2[0]) { +#line 1 + if (__startrek_start_t2[0] <= __startrek_end_t1[4]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[4] <= __startrek_start_t2[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_end_t1[4]); + } + } + } +#line 1 + if (__startrek_start_t1[5] <= __startrek_end_t2[0]) { +#line 1 + if (__startrek_start_t2[0] <= __startrek_end_t1[5]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[5] <= __startrek_start_t2[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_end_t1[5]); + } + } + } +#line 1 + if (__startrek_start_t1[6] <= __startrek_end_t2[0]) { +#line 1 + if (__startrek_start_t2[0] <= __startrek_end_t1[6]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[6] <= __startrek_start_t2[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_end_t1[6]); + } + } + } +#line 1 + if (__startrek_start_t1[7] <= __startrek_end_t2[0]) { +#line 1 + if (__startrek_start_t2[0] <= __startrek_end_t1[7]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[7] <= __startrek_start_t2[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_end_t1[7]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[1]) { +#line 1 + if (__startrek_start_t2[1] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_end_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t0[1] <= __startrek_end_t2[1]) { +#line 1 + if (__startrek_start_t2[1] <= __startrek_end_t0[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[1] <= __startrek_start_t2[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_end_t0[1]); + } + } + } +#line 1 + if (__startrek_start_t0[2] <= __startrek_end_t2[1]) { +#line 1 + if (__startrek_start_t2[1] <= __startrek_end_t0[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[2] <= __startrek_start_t2[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_end_t0[2]); + } + } + } +#line 1 + if (__startrek_start_t0[3] <= __startrek_end_t2[1]) { +#line 1 + if (__startrek_start_t2[1] <= __startrek_end_t0[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[3] <= __startrek_start_t2[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_end_t0[3]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[1]) { +#line 1 + if (__startrek_start_t2[1] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[1]) { +#line 1 + if (__startrek_start_t2[1] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t1[2] <= __startrek_end_t2[1]) { +#line 1 + if (__startrek_start_t2[1] <= __startrek_end_t1[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[2] <= __startrek_start_t2[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_end_t1[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_start_t1[2]); + } + } + } +#line 1 + if (__startrek_start_t1[3] <= __startrek_end_t2[1]) { +#line 1 + if (__startrek_start_t2[1] <= __startrek_end_t1[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[3] <= __startrek_start_t2[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_end_t1[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_start_t1[3]); + } + } + } +#line 1 + if (__startrek_start_t1[4] <= __startrek_end_t2[1]) { +#line 1 + if (__startrek_start_t2[1] <= __startrek_end_t1[4]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[4] <= __startrek_start_t2[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_end_t1[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_start_t1[4]); + } + } + } +#line 1 + if (__startrek_start_t1[5] <= __startrek_end_t2[1]) { +#line 1 + if (__startrek_start_t2[1] <= __startrek_end_t1[5]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[5] <= __startrek_start_t2[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_end_t1[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_start_t1[5]); + } + } + } +#line 1 + if (__startrek_start_t1[6] <= __startrek_end_t2[1]) { +#line 1 + if (__startrek_start_t2[1] <= __startrek_end_t1[6]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[6] <= __startrek_start_t2[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_end_t1[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_start_t1[6]); + } + } + } +#line 1 + if (__startrek_start_t1[7] <= __startrek_end_t2[1]) { +#line 1 + if (__startrek_start_t2[1] <= __startrek_end_t1[7]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[7] <= __startrek_start_t2[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_end_t1[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_start_t1[7]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[2]) { +#line 1 + if (__startrek_start_t2[2] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t0[1] <= __startrek_end_t2[2]) { +#line 1 + if (__startrek_start_t2[2] <= __startrek_end_t0[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[1] <= __startrek_start_t2[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_end_t0[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_start_t0[1]); + } + } + } +#line 1 + if (__startrek_start_t0[2] <= __startrek_end_t2[2]) { +#line 1 + if (__startrek_start_t2[2] <= __startrek_end_t0[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[2] <= __startrek_start_t2[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_end_t0[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_start_t0[2]); + } + } + } +#line 1 + if (__startrek_start_t0[3] <= __startrek_end_t2[2]) { +#line 1 + if (__startrek_start_t2[2] <= __startrek_end_t0[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[3] <= __startrek_start_t2[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_end_t0[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_start_t0[3]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[2]) { +#line 1 + if (__startrek_start_t2[2] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[2]) { +#line 1 + if (__startrek_start_t2[2] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t1[2] <= __startrek_end_t2[2]) { +#line 1 + if (__startrek_start_t2[2] <= __startrek_end_t1[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[2] <= __startrek_start_t2[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_end_t1[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_start_t1[2]); + } + } + } +#line 1 + if (__startrek_start_t1[3] <= __startrek_end_t2[2]) { +#line 1 + if (__startrek_start_t2[2] <= __startrek_end_t1[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[3] <= __startrek_start_t2[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_end_t1[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_start_t1[3]); + } + } + } +#line 1 + if (__startrek_start_t1[4] <= __startrek_end_t2[2]) { +#line 1 + if (__startrek_start_t2[2] <= __startrek_end_t1[4]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[4] <= __startrek_start_t2[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_end_t1[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_start_t1[4]); + } + } + } +#line 1 + if (__startrek_start_t1[5] <= __startrek_end_t2[2]) { +#line 1 + if (__startrek_start_t2[2] <= __startrek_end_t1[5]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[5] <= __startrek_start_t2[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_end_t1[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_start_t1[5]); + } + } + } +#line 1 + if (__startrek_start_t1[6] <= __startrek_end_t2[2]) { +#line 1 + if (__startrek_start_t2[2] <= __startrek_end_t1[6]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[6] <= __startrek_start_t2[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_end_t1[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_start_t1[6]); + } + } + } +#line 1 + if (__startrek_start_t1[7] <= __startrek_end_t2[2]) { +#line 1 + if (__startrek_start_t2[2] <= __startrek_end_t1[7]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[7] <= __startrek_start_t2[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_end_t1[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_start_t1[7]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[3]) { +#line 1 + if (__startrek_start_t2[3] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t0[1] <= __startrek_end_t2[3]) { +#line 1 + if (__startrek_start_t2[3] <= __startrek_end_t0[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[1] <= __startrek_start_t2[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_end_t0[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_start_t0[1]); + } + } + } +#line 1 + if (__startrek_start_t0[2] <= __startrek_end_t2[3]) { +#line 1 + if (__startrek_start_t2[3] <= __startrek_end_t0[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[2] <= __startrek_start_t2[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_end_t0[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_start_t0[2]); + } + } + } +#line 1 + if (__startrek_start_t0[3] <= __startrek_end_t2[3]) { +#line 1 + if (__startrek_start_t2[3] <= __startrek_end_t0[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[3] <= __startrek_start_t2[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_end_t0[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_start_t0[3]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[3]) { +#line 1 + if (__startrek_start_t2[3] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[3]) { +#line 1 + if (__startrek_start_t2[3] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t1[2] <= __startrek_end_t2[3]) { +#line 1 + if (__startrek_start_t2[3] <= __startrek_end_t1[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[2] <= __startrek_start_t2[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_end_t1[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_start_t1[2]); + } + } + } +#line 1 + if (__startrek_start_t1[3] <= __startrek_end_t2[3]) { +#line 1 + if (__startrek_start_t2[3] <= __startrek_end_t1[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[3] <= __startrek_start_t2[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_end_t1[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_start_t1[3]); + } + } + } +#line 1 + if (__startrek_start_t1[4] <= __startrek_end_t2[3]) { +#line 1 + if (__startrek_start_t2[3] <= __startrek_end_t1[4]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[4] <= __startrek_start_t2[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_end_t1[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_start_t1[4]); + } + } + } +#line 1 + if (__startrek_start_t1[5] <= __startrek_end_t2[3]) { +#line 1 + if (__startrek_start_t2[3] <= __startrek_end_t1[5]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[5] <= __startrek_start_t2[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_end_t1[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_start_t1[5]); + } + } + } +#line 1 + if (__startrek_start_t1[6] <= __startrek_end_t2[3]) { +#line 1 + if (__startrek_start_t2[3] <= __startrek_end_t1[6]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[6] <= __startrek_start_t2[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_end_t1[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_start_t1[6]); + } + } + } +#line 1 + if (__startrek_start_t1[7] <= __startrek_end_t2[3]) { +#line 1 + if (__startrek_start_t2[3] <= __startrek_end_t1[7]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[7] <= __startrek_start_t2[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_end_t1[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_start_t1[7]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[4]) { +#line 1 + if (__startrek_start_t2[4] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t0[1] <= __startrek_end_t2[4]) { +#line 1 + if (__startrek_start_t2[4] <= __startrek_end_t0[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[1] <= __startrek_start_t2[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_end_t0[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_start_t0[1]); + } + } + } +#line 1 + if (__startrek_start_t0[2] <= __startrek_end_t2[4]) { +#line 1 + if (__startrek_start_t2[4] <= __startrek_end_t0[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[2] <= __startrek_start_t2[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_end_t0[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_start_t0[2]); + } + } + } +#line 1 + if (__startrek_start_t0[3] <= __startrek_end_t2[4]) { +#line 1 + if (__startrek_start_t2[4] <= __startrek_end_t0[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[3] <= __startrek_start_t2[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_end_t0[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_start_t0[3]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[4]) { +#line 1 + if (__startrek_start_t2[4] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[4]) { +#line 1 + if (__startrek_start_t2[4] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t1[2] <= __startrek_end_t2[4]) { +#line 1 + if (__startrek_start_t2[4] <= __startrek_end_t1[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[2] <= __startrek_start_t2[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_end_t1[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_start_t1[2]); + } + } + } +#line 1 + if (__startrek_start_t1[3] <= __startrek_end_t2[4]) { +#line 1 + if (__startrek_start_t2[4] <= __startrek_end_t1[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[3] <= __startrek_start_t2[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_end_t1[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_start_t1[3]); + } + } + } +#line 1 + if (__startrek_start_t1[4] <= __startrek_end_t2[4]) { +#line 1 + if (__startrek_start_t2[4] <= __startrek_end_t1[4]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[4] <= __startrek_start_t2[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_end_t1[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_start_t1[4]); + } + } + } +#line 1 + if (__startrek_start_t1[5] <= __startrek_end_t2[4]) { +#line 1 + if (__startrek_start_t2[4] <= __startrek_end_t1[5]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[5] <= __startrek_start_t2[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_end_t1[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_start_t1[5]); + } + } + } +#line 1 + if (__startrek_start_t1[6] <= __startrek_end_t2[4]) { +#line 1 + if (__startrek_start_t2[4] <= __startrek_end_t1[6]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[6] <= __startrek_start_t2[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_end_t1[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_start_t1[6]); + } + } + } +#line 1 + if (__startrek_start_t1[7] <= __startrek_end_t2[4]) { +#line 1 + if (__startrek_start_t2[4] <= __startrek_end_t1[7]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[7] <= __startrek_start_t2[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_end_t1[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_start_t1[7]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[5]) { +#line 1 + if (__startrek_start_t2[5] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t0[1] <= __startrek_end_t2[5]) { +#line 1 + if (__startrek_start_t2[5] <= __startrek_end_t0[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[1] <= __startrek_start_t2[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_end_t0[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_start_t0[1]); + } + } + } +#line 1 + if (__startrek_start_t0[2] <= __startrek_end_t2[5]) { +#line 1 + if (__startrek_start_t2[5] <= __startrek_end_t0[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[2] <= __startrek_start_t2[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_end_t0[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_start_t0[2]); + } + } + } +#line 1 + if (__startrek_start_t0[3] <= __startrek_end_t2[5]) { +#line 1 + if (__startrek_start_t2[5] <= __startrek_end_t0[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[3] <= __startrek_start_t2[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_end_t0[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_start_t0[3]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[5]) { +#line 1 + if (__startrek_start_t2[5] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[5]) { +#line 1 + if (__startrek_start_t2[5] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t1[2] <= __startrek_end_t2[5]) { +#line 1 + if (__startrek_start_t2[5] <= __startrek_end_t1[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[2] <= __startrek_start_t2[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_end_t1[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_start_t1[2]); + } + } + } +#line 1 + if (__startrek_start_t1[3] <= __startrek_end_t2[5]) { +#line 1 + if (__startrek_start_t2[5] <= __startrek_end_t1[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[3] <= __startrek_start_t2[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_end_t1[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_start_t1[3]); + } + } + } +#line 1 + if (__startrek_start_t1[4] <= __startrek_end_t2[5]) { +#line 1 + if (__startrek_start_t2[5] <= __startrek_end_t1[4]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[4] <= __startrek_start_t2[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_end_t1[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_start_t1[4]); + } + } + } +#line 1 + if (__startrek_start_t1[5] <= __startrek_end_t2[5]) { +#line 1 + if (__startrek_start_t2[5] <= __startrek_end_t1[5]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[5] <= __startrek_start_t2[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_end_t1[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_start_t1[5]); + } + } + } +#line 1 + if (__startrek_start_t1[6] <= __startrek_end_t2[5]) { +#line 1 + if (__startrek_start_t2[5] <= __startrek_end_t1[6]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[6] <= __startrek_start_t2[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_end_t1[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_start_t1[6]); + } + } + } +#line 1 + if (__startrek_start_t1[7] <= __startrek_end_t2[5]) { +#line 1 + if (__startrek_start_t2[5] <= __startrek_end_t1[7]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[7] <= __startrek_start_t2[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_end_t1[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_start_t1[7]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[6]) { +#line 1 + if (__startrek_start_t2[6] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t0[1] <= __startrek_end_t2[6]) { +#line 1 + if (__startrek_start_t2[6] <= __startrek_end_t0[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[1] <= __startrek_start_t2[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] < __startrek_end_t0[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_start_t0[1]); + } + } + } +#line 1 + if (__startrek_start_t0[2] <= __startrek_end_t2[6]) { +#line 1 + if (__startrek_start_t2[6] <= __startrek_end_t0[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[2] <= __startrek_start_t2[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] < __startrek_end_t0[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_start_t0[2]); + } + } + } +#line 1 + if (__startrek_start_t0[3] <= __startrek_end_t2[6]) { +#line 1 + if (__startrek_start_t2[6] <= __startrek_end_t0[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[3] <= __startrek_start_t2[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] < __startrek_end_t0[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_start_t0[3]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[6]) { +#line 1 + if (__startrek_start_t2[6] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[6]) { +#line 1 + if (__startrek_start_t2[6] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t1[2] <= __startrek_end_t2[6]) { +#line 1 + if (__startrek_start_t2[6] <= __startrek_end_t1[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[2] <= __startrek_start_t2[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] < __startrek_end_t1[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_start_t1[2]); + } + } + } +#line 1 + if (__startrek_start_t1[3] <= __startrek_end_t2[6]) { +#line 1 + if (__startrek_start_t2[6] <= __startrek_end_t1[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[3] <= __startrek_start_t2[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] < __startrek_end_t1[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_start_t1[3]); + } + } + } +#line 1 + if (__startrek_start_t1[4] <= __startrek_end_t2[6]) { +#line 1 + if (__startrek_start_t2[6] <= __startrek_end_t1[4]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[4] <= __startrek_start_t2[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] < __startrek_end_t1[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_start_t1[4]); + } + } + } +#line 1 + if (__startrek_start_t1[5] <= __startrek_end_t2[6]) { +#line 1 + if (__startrek_start_t2[6] <= __startrek_end_t1[5]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[5] <= __startrek_start_t2[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] < __startrek_end_t1[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_start_t1[5]); + } + } + } +#line 1 + if (__startrek_start_t1[6] <= __startrek_end_t2[6]) { +#line 1 + if (__startrek_start_t2[6] <= __startrek_end_t1[6]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[6] <= __startrek_start_t2[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] < __startrek_end_t1[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_start_t1[6]); + } + } + } +#line 1 + if (__startrek_start_t1[7] <= __startrek_end_t2[6]) { +#line 1 + if (__startrek_start_t2[6] <= __startrek_end_t1[7]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[7] <= __startrek_start_t2[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] < __startrek_end_t1[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_start_t1[7]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[7]) { +#line 1 + if (__startrek_start_t2[7] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[7] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t0[1] <= __startrek_end_t2[7]) { +#line 1 + if (__startrek_start_t2[7] <= __startrek_end_t0[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[1] <= __startrek_start_t2[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[7] < __startrek_end_t0[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_start_t0[1]); + } + } + } +#line 1 + if (__startrek_start_t0[2] <= __startrek_end_t2[7]) { +#line 1 + if (__startrek_start_t2[7] <= __startrek_end_t0[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[2] <= __startrek_start_t2[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[7] < __startrek_end_t0[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_start_t0[2]); + } + } + } +#line 1 + if (__startrek_start_t0[3] <= __startrek_end_t2[7]) { +#line 1 + if (__startrek_start_t2[7] <= __startrek_end_t0[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[3] <= __startrek_start_t2[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[7] < __startrek_end_t0[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_start_t0[3]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[7]) { +#line 1 + if (__startrek_start_t2[7] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[7] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[7]) { +#line 1 + if (__startrek_start_t2[7] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[7] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t1[2] <= __startrek_end_t2[7]) { +#line 1 + if (__startrek_start_t2[7] <= __startrek_end_t1[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[2] <= __startrek_start_t2[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[7] < __startrek_end_t1[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] < __startrek_start_t1[2]); + } + } + } +#line 1 + if (__startrek_start_t1[3] <= __startrek_end_t2[7]) { +#line 1 + if (__startrek_start_t2[7] <= __startrek_end_t1[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[3] <= __startrek_start_t2[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[7] < __startrek_end_t1[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] < __startrek_start_t1[3]); + } + } + } +#line 1 + if (__startrek_start_t1[4] <= __startrek_end_t2[7]) { +#line 1 + if (__startrek_start_t2[7] <= __startrek_end_t1[4]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[4] <= __startrek_start_t2[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[7] < __startrek_end_t1[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] < __startrek_start_t1[4]); + } + } + } +#line 1 + if (__startrek_start_t1[5] <= __startrek_end_t2[7]) { +#line 1 + if (__startrek_start_t2[7] <= __startrek_end_t1[5]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[5] <= __startrek_start_t2[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[7] < __startrek_end_t1[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] < __startrek_start_t1[5]); + } + } + } +#line 1 + if (__startrek_start_t1[6] <= __startrek_end_t2[7]) { +#line 1 + if (__startrek_start_t2[7] <= __startrek_end_t1[6]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[6] <= __startrek_start_t2[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[7] < __startrek_end_t1[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] < __startrek_start_t1[6]); + } + } + } +#line 1 + if (__startrek_start_t1[7] <= __startrek_end_t2[7]) { +#line 1 + if (__startrek_start_t2[7] <= __startrek_end_t1[7]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[7] <= __startrek_start_t2[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[7] < __startrek_end_t1[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] < __startrek_start_t1[7]); + } + } + } +#line 1 + __startrek_start_t3[0] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t3[0] = __startrek_start_t3[0]; +#line 1 + __startrek_start_t3[1] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t3[1] = __startrek_start_t3[1]; +#line 1 + __startrek_start_t3[2] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t3[2] = __startrek_start_t3[2]; +#line 1 + __startrek_start_t3[3] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t3[3] = __startrek_start_t3[3]; +#line 1 + __startrek_start_t3[4] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t3[4] = __startrek_start_t3[4]; +#line 1 + __startrek_start_t3[5] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t3[5] = __startrek_start_t3[5]; +#line 1 + __startrek_start_t3[6] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t3[6] = __startrek_start_t3[6]; +#line 1 + __startrek_start_t3[7] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t3[7] = __startrek_start_t3[7]; +#line 1 + __VERIFIER_assume(0 <= __startrek_start_t3[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[7] <= 27); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] <= __startrek_start_t3[1] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] <= __startrek_start_t3[2] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] <= __startrek_start_t3[3] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] <= __startrek_start_t3[4] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] <= __startrek_start_t3[5] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] <= __startrek_start_t3[6] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] <= __startrek_start_t3[7] - 1); +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t3[0]) { +#line 1 + if (__startrek_start_t3[0] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t3[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_end_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t0[1] <= __startrek_end_t3[0]) { +#line 1 + if (__startrek_start_t3[0] <= __startrek_end_t0[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[1] <= __startrek_start_t3[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_end_t0[1]); + } + } + } +#line 1 + if (__startrek_start_t0[2] <= __startrek_end_t3[0]) { +#line 1 + if (__startrek_start_t3[0] <= __startrek_end_t0[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[2] <= __startrek_start_t3[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_end_t0[2]); + } + } + } +#line 1 + if (__startrek_start_t0[3] <= __startrek_end_t3[0]) { +#line 1 + if (__startrek_start_t3[0] <= __startrek_end_t0[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[3] <= __startrek_start_t3[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_end_t0[3]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t3[0]) { +#line 1 + if (__startrek_start_t3[0] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t3[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_end_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t3[0]) { +#line 1 + if (__startrek_start_t3[0] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t3[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_end_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t1[2] <= __startrek_end_t3[0]) { +#line 1 + if (__startrek_start_t3[0] <= __startrek_end_t1[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[2] <= __startrek_start_t3[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_end_t1[2]); + } + } + } +#line 1 + if (__startrek_start_t1[3] <= __startrek_end_t3[0]) { +#line 1 + if (__startrek_start_t3[0] <= __startrek_end_t1[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[3] <= __startrek_start_t3[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_end_t1[3]); + } + } + } +#line 1 + if (__startrek_start_t1[4] <= __startrek_end_t3[0]) { +#line 1 + if (__startrek_start_t3[0] <= __startrek_end_t1[4]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[4] <= __startrek_start_t3[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_end_t1[4]); + } + } + } +#line 1 + if (__startrek_start_t1[5] <= __startrek_end_t3[0]) { +#line 1 + if (__startrek_start_t3[0] <= __startrek_end_t1[5]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[5] <= __startrek_start_t3[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_end_t1[5]); + } + } + } +#line 1 + if (__startrek_start_t1[6] <= __startrek_end_t3[0]) { +#line 1 + if (__startrek_start_t3[0] <= __startrek_end_t1[6]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[6] <= __startrek_start_t3[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_end_t1[6]); + } + } + } +#line 1 + if (__startrek_start_t1[7] <= __startrek_end_t3[0]) { +#line 1 + if (__startrek_start_t3[0] <= __startrek_end_t1[7]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[7] <= __startrek_start_t3[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_end_t1[7]); + } + } + } +#line 1 + if (__startrek_start_t2[0] <= __startrek_end_t3[0]) { +#line 1 + if (__startrek_start_t3[0] <= __startrek_end_t2[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[0] <= __startrek_start_t3[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_end_t2[0]); + } + } + } +#line 1 + if (__startrek_start_t2[1] <= __startrek_end_t3[0]) { +#line 1 + if (__startrek_start_t3[0] <= __startrek_end_t2[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[1] <= __startrek_start_t3[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_end_t2[1]); + } + } + } +#line 1 + if (__startrek_start_t2[2] <= __startrek_end_t3[0]) { +#line 1 + if (__startrek_start_t3[0] <= __startrek_end_t2[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[2] <= __startrek_start_t3[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_end_t2[2]); + } + } + } +#line 1 + if (__startrek_start_t2[3] <= __startrek_end_t3[0]) { +#line 1 + if (__startrek_start_t3[0] <= __startrek_end_t2[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[3] <= __startrek_start_t3[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_end_t2[3]); + } + } + } +#line 1 + if (__startrek_start_t2[4] <= __startrek_end_t3[0]) { +#line 1 + if (__startrek_start_t3[0] <= __startrek_end_t2[4]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[4] <= __startrek_start_t3[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_end_t2[4]); + } + } + } +#line 1 + if (__startrek_start_t2[5] <= __startrek_end_t3[0]) { +#line 1 + if (__startrek_start_t3[0] <= __startrek_end_t2[5]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[5] <= __startrek_start_t3[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_end_t2[5]); + } + } + } +#line 1 + if (__startrek_start_t2[6] <= __startrek_end_t3[0]) { +#line 1 + if (__startrek_start_t3[0] <= __startrek_end_t2[6]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[6] <= __startrek_start_t3[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_end_t2[6]); + } + } + } +#line 1 + if (__startrek_start_t2[7] <= __startrek_end_t3[0]) { +#line 1 + if (__startrek_start_t3[0] <= __startrek_end_t2[7]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[7] <= __startrek_start_t3[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_end_t2[7]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t3[1]) { +#line 1 + if (__startrek_start_t3[1] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t3[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_end_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t0[1] <= __startrek_end_t3[1]) { +#line 1 + if (__startrek_start_t3[1] <= __startrek_end_t0[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[1] <= __startrek_start_t3[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_end_t0[1]); + } + } + } +#line 1 + if (__startrek_start_t0[2] <= __startrek_end_t3[1]) { +#line 1 + if (__startrek_start_t3[1] <= __startrek_end_t0[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[2] <= __startrek_start_t3[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_end_t0[2]); + } + } + } +#line 1 + if (__startrek_start_t0[3] <= __startrek_end_t3[1]) { +#line 1 + if (__startrek_start_t3[1] <= __startrek_end_t0[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[3] <= __startrek_start_t3[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_end_t0[3]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t3[1]) { +#line 1 + if (__startrek_start_t3[1] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t3[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t3[1]) { +#line 1 + if (__startrek_start_t3[1] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t3[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t1[2] <= __startrek_end_t3[1]) { +#line 1 + if (__startrek_start_t3[1] <= __startrek_end_t1[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[2] <= __startrek_start_t3[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_end_t1[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_start_t1[2]); + } + } + } +#line 1 + if (__startrek_start_t1[3] <= __startrek_end_t3[1]) { +#line 1 + if (__startrek_start_t3[1] <= __startrek_end_t1[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[3] <= __startrek_start_t3[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_end_t1[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_start_t1[3]); + } + } + } +#line 1 + if (__startrek_start_t1[4] <= __startrek_end_t3[1]) { +#line 1 + if (__startrek_start_t3[1] <= __startrek_end_t1[4]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[4] <= __startrek_start_t3[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_end_t1[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_start_t1[4]); + } + } + } +#line 1 + if (__startrek_start_t1[5] <= __startrek_end_t3[1]) { +#line 1 + if (__startrek_start_t3[1] <= __startrek_end_t1[5]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[5] <= __startrek_start_t3[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_end_t1[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_start_t1[5]); + } + } + } +#line 1 + if (__startrek_start_t1[6] <= __startrek_end_t3[1]) { +#line 1 + if (__startrek_start_t3[1] <= __startrek_end_t1[6]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[6] <= __startrek_start_t3[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_end_t1[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_start_t1[6]); + } + } + } +#line 1 + if (__startrek_start_t1[7] <= __startrek_end_t3[1]) { +#line 1 + if (__startrek_start_t3[1] <= __startrek_end_t1[7]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[7] <= __startrek_start_t3[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_end_t1[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_start_t1[7]); + } + } + } +#line 1 + if (__startrek_start_t2[0] <= __startrek_end_t3[1]) { +#line 1 + if (__startrek_start_t3[1] <= __startrek_end_t2[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[0] <= __startrek_start_t3[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_end_t2[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_start_t2[0]); + } + } + } +#line 1 + if (__startrek_start_t2[1] <= __startrek_end_t3[1]) { +#line 1 + if (__startrek_start_t3[1] <= __startrek_end_t2[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[1] <= __startrek_start_t3[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_end_t2[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_start_t2[1]); + } + } + } +#line 1 + if (__startrek_start_t2[2] <= __startrek_end_t3[1]) { +#line 1 + if (__startrek_start_t3[1] <= __startrek_end_t2[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[2] <= __startrek_start_t3[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_end_t2[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_start_t2[2]); + } + } + } +#line 1 + if (__startrek_start_t2[3] <= __startrek_end_t3[1]) { +#line 1 + if (__startrek_start_t3[1] <= __startrek_end_t2[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[3] <= __startrek_start_t3[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_end_t2[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_start_t2[3]); + } + } + } +#line 1 + if (__startrek_start_t2[4] <= __startrek_end_t3[1]) { +#line 1 + if (__startrek_start_t3[1] <= __startrek_end_t2[4]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[4] <= __startrek_start_t3[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_end_t2[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_start_t2[4]); + } + } + } +#line 1 + if (__startrek_start_t2[5] <= __startrek_end_t3[1]) { +#line 1 + if (__startrek_start_t3[1] <= __startrek_end_t2[5]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[5] <= __startrek_start_t3[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_end_t2[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_start_t2[5]); + } + } + } +#line 1 + if (__startrek_start_t2[6] <= __startrek_end_t3[1]) { +#line 1 + if (__startrek_start_t3[1] <= __startrek_end_t2[6]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[6] <= __startrek_start_t3[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_end_t2[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_start_t2[6]); + } + } + } +#line 1 + if (__startrek_start_t2[7] <= __startrek_end_t3[1]) { +#line 1 + if (__startrek_start_t3[1] <= __startrek_end_t2[7]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[7] <= __startrek_start_t3[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_end_t2[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_start_t2[7]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t3[2]) { +#line 1 + if (__startrek_start_t3[2] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t3[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t0[1] <= __startrek_end_t3[2]) { +#line 1 + if (__startrek_start_t3[2] <= __startrek_end_t0[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[1] <= __startrek_start_t3[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_end_t0[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_start_t0[1]); + } + } + } +#line 1 + if (__startrek_start_t0[2] <= __startrek_end_t3[2]) { +#line 1 + if (__startrek_start_t3[2] <= __startrek_end_t0[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[2] <= __startrek_start_t3[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_end_t0[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_start_t0[2]); + } + } + } +#line 1 + if (__startrek_start_t0[3] <= __startrek_end_t3[2]) { +#line 1 + if (__startrek_start_t3[2] <= __startrek_end_t0[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[3] <= __startrek_start_t3[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_end_t0[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[0] < __startrek_start_t0[3]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t3[2]) { +#line 1 + if (__startrek_start_t3[2] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t3[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t3[2]) { +#line 1 + if (__startrek_start_t3[2] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t3[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t1[2] <= __startrek_end_t3[2]) { +#line 1 + if (__startrek_start_t3[2] <= __startrek_end_t1[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[2] <= __startrek_start_t3[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_end_t1[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_start_t1[2]); + } + } + } +#line 1 + if (__startrek_start_t1[3] <= __startrek_end_t3[2]) { +#line 1 + if (__startrek_start_t3[2] <= __startrek_end_t1[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[3] <= __startrek_start_t3[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_end_t1[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_start_t1[3]); + } + } + } +#line 1 + if (__startrek_start_t1[4] <= __startrek_end_t3[2]) { +#line 1 + if (__startrek_start_t3[2] <= __startrek_end_t1[4]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[4] <= __startrek_start_t3[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_end_t1[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_start_t1[4]); + } + } + } +#line 1 + if (__startrek_start_t1[5] <= __startrek_end_t3[2]) { +#line 1 + if (__startrek_start_t3[2] <= __startrek_end_t1[5]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[5] <= __startrek_start_t3[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_end_t1[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_start_t1[5]); + } + } + } +#line 1 + if (__startrek_start_t1[6] <= __startrek_end_t3[2]) { +#line 1 + if (__startrek_start_t3[2] <= __startrek_end_t1[6]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[6] <= __startrek_start_t3[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_end_t1[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_start_t1[6]); + } + } + } +#line 1 + if (__startrek_start_t1[7] <= __startrek_end_t3[2]) { +#line 1 + if (__startrek_start_t3[2] <= __startrek_end_t1[7]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[7] <= __startrek_start_t3[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_end_t1[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_start_t1[7]); + } + } + } +#line 1 + if (__startrek_start_t2[0] <= __startrek_end_t3[2]) { +#line 1 + if (__startrek_start_t3[2] <= __startrek_end_t2[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[0] <= __startrek_start_t3[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_end_t2[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_start_t2[0]); + } + } + } +#line 1 + if (__startrek_start_t2[1] <= __startrek_end_t3[2]) { +#line 1 + if (__startrek_start_t3[2] <= __startrek_end_t2[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[1] <= __startrek_start_t3[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_end_t2[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_start_t2[1]); + } + } + } +#line 1 + if (__startrek_start_t2[2] <= __startrek_end_t3[2]) { +#line 1 + if (__startrek_start_t3[2] <= __startrek_end_t2[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[2] <= __startrek_start_t3[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_end_t2[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_start_t2[2]); + } + } + } +#line 1 + if (__startrek_start_t2[3] <= __startrek_end_t3[2]) { +#line 1 + if (__startrek_start_t3[2] <= __startrek_end_t2[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[3] <= __startrek_start_t3[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_end_t2[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_start_t2[3]); + } + } + } +#line 1 + if (__startrek_start_t2[4] <= __startrek_end_t3[2]) { +#line 1 + if (__startrek_start_t3[2] <= __startrek_end_t2[4]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[4] <= __startrek_start_t3[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_end_t2[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_start_t2[4]); + } + } + } +#line 1 + if (__startrek_start_t2[5] <= __startrek_end_t3[2]) { +#line 1 + if (__startrek_start_t3[2] <= __startrek_end_t2[5]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[5] <= __startrek_start_t3[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_end_t2[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_start_t2[5]); + } + } + } +#line 1 + if (__startrek_start_t2[6] <= __startrek_end_t3[2]) { +#line 1 + if (__startrek_start_t3[2] <= __startrek_end_t2[6]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[6] <= __startrek_start_t3[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_end_t2[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_start_t2[6]); + } + } + } +#line 1 + if (__startrek_start_t2[7] <= __startrek_end_t3[2]) { +#line 1 + if (__startrek_start_t3[2] <= __startrek_end_t2[7]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[7] <= __startrek_start_t3[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_end_t2[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_start_t2[7]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t3[3]) { +#line 1 + if (__startrek_start_t3[3] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t3[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t0[1] <= __startrek_end_t3[3]) { +#line 1 + if (__startrek_start_t3[3] <= __startrek_end_t0[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[1] <= __startrek_start_t3[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_end_t0[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_start_t0[1]); + } + } + } +#line 1 + if (__startrek_start_t0[2] <= __startrek_end_t3[3]) { +#line 1 + if (__startrek_start_t3[3] <= __startrek_end_t0[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[2] <= __startrek_start_t3[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_end_t0[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_start_t0[2]); + } + } + } +#line 1 + if (__startrek_start_t0[3] <= __startrek_end_t3[3]) { +#line 1 + if (__startrek_start_t3[3] <= __startrek_end_t0[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[3] <= __startrek_start_t3[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_end_t0[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[1] < __startrek_start_t0[3]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t3[3]) { +#line 1 + if (__startrek_start_t3[3] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t3[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t3[3]) { +#line 1 + if (__startrek_start_t3[3] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t3[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t1[2] <= __startrek_end_t3[3]) { +#line 1 + if (__startrek_start_t3[3] <= __startrek_end_t1[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[2] <= __startrek_start_t3[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_end_t1[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_start_t1[2]); + } + } + } +#line 1 + if (__startrek_start_t1[3] <= __startrek_end_t3[3]) { +#line 1 + if (__startrek_start_t3[3] <= __startrek_end_t1[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[3] <= __startrek_start_t3[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_end_t1[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_start_t1[3]); + } + } + } +#line 1 + if (__startrek_start_t1[4] <= __startrek_end_t3[3]) { +#line 1 + if (__startrek_start_t3[3] <= __startrek_end_t1[4]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[4] <= __startrek_start_t3[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_end_t1[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_start_t1[4]); + } + } + } +#line 1 + if (__startrek_start_t1[5] <= __startrek_end_t3[3]) { +#line 1 + if (__startrek_start_t3[3] <= __startrek_end_t1[5]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[5] <= __startrek_start_t3[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_end_t1[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_start_t1[5]); + } + } + } +#line 1 + if (__startrek_start_t1[6] <= __startrek_end_t3[3]) { +#line 1 + if (__startrek_start_t3[3] <= __startrek_end_t1[6]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[6] <= __startrek_start_t3[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_end_t1[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_start_t1[6]); + } + } + } +#line 1 + if (__startrek_start_t1[7] <= __startrek_end_t3[3]) { +#line 1 + if (__startrek_start_t3[3] <= __startrek_end_t1[7]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[7] <= __startrek_start_t3[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_end_t1[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_start_t1[7]); + } + } + } +#line 1 + if (__startrek_start_t2[0] <= __startrek_end_t3[3]) { +#line 1 + if (__startrek_start_t3[3] <= __startrek_end_t2[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[0] <= __startrek_start_t3[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_end_t2[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_start_t2[0]); + } + } + } +#line 1 + if (__startrek_start_t2[1] <= __startrek_end_t3[3]) { +#line 1 + if (__startrek_start_t3[3] <= __startrek_end_t2[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[1] <= __startrek_start_t3[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_end_t2[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_start_t2[1]); + } + } + } +#line 1 + if (__startrek_start_t2[2] <= __startrek_end_t3[3]) { +#line 1 + if (__startrek_start_t3[3] <= __startrek_end_t2[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[2] <= __startrek_start_t3[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_end_t2[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_start_t2[2]); + } + } + } +#line 1 + if (__startrek_start_t2[3] <= __startrek_end_t3[3]) { +#line 1 + if (__startrek_start_t3[3] <= __startrek_end_t2[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[3] <= __startrek_start_t3[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_end_t2[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_start_t2[3]); + } + } + } +#line 1 + if (__startrek_start_t2[4] <= __startrek_end_t3[3]) { +#line 1 + if (__startrek_start_t3[3] <= __startrek_end_t2[4]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[4] <= __startrek_start_t3[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_end_t2[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_start_t2[4]); + } + } + } +#line 1 + if (__startrek_start_t2[5] <= __startrek_end_t3[3]) { +#line 1 + if (__startrek_start_t3[3] <= __startrek_end_t2[5]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[5] <= __startrek_start_t3[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_end_t2[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_start_t2[5]); + } + } + } +#line 1 + if (__startrek_start_t2[6] <= __startrek_end_t3[3]) { +#line 1 + if (__startrek_start_t3[3] <= __startrek_end_t2[6]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[6] <= __startrek_start_t3[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_end_t2[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_start_t2[6]); + } + } + } +#line 1 + if (__startrek_start_t2[7] <= __startrek_end_t3[3]) { +#line 1 + if (__startrek_start_t3[3] <= __startrek_end_t2[7]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[7] <= __startrek_start_t3[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_end_t2[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_start_t2[7]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t3[4]) { +#line 1 + if (__startrek_start_t3[4] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t3[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t0[1] <= __startrek_end_t3[4]) { +#line 1 + if (__startrek_start_t3[4] <= __startrek_end_t0[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[1] <= __startrek_start_t3[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_end_t0[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_start_t0[1]); + } + } + } +#line 1 + if (__startrek_start_t0[2] <= __startrek_end_t3[4]) { +#line 1 + if (__startrek_start_t3[4] <= __startrek_end_t0[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[2] <= __startrek_start_t3[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_end_t0[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_start_t0[2]); + } + } + } +#line 1 + if (__startrek_start_t0[3] <= __startrek_end_t3[4]) { +#line 1 + if (__startrek_start_t3[4] <= __startrek_end_t0[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[3] <= __startrek_start_t3[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_end_t0[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[2] < __startrek_start_t0[3]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t3[4]) { +#line 1 + if (__startrek_start_t3[4] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t3[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t3[4]) { +#line 1 + if (__startrek_start_t3[4] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t3[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t1[2] <= __startrek_end_t3[4]) { +#line 1 + if (__startrek_start_t3[4] <= __startrek_end_t1[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[2] <= __startrek_start_t3[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_end_t1[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_start_t1[2]); + } + } + } +#line 1 + if (__startrek_start_t1[3] <= __startrek_end_t3[4]) { +#line 1 + if (__startrek_start_t3[4] <= __startrek_end_t1[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[3] <= __startrek_start_t3[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_end_t1[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_start_t1[3]); + } + } + } +#line 1 + if (__startrek_start_t1[4] <= __startrek_end_t3[4]) { +#line 1 + if (__startrek_start_t3[4] <= __startrek_end_t1[4]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[4] <= __startrek_start_t3[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_end_t1[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_start_t1[4]); + } + } + } +#line 1 + if (__startrek_start_t1[5] <= __startrek_end_t3[4]) { +#line 1 + if (__startrek_start_t3[4] <= __startrek_end_t1[5]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[5] <= __startrek_start_t3[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_end_t1[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_start_t1[5]); + } + } + } +#line 1 + if (__startrek_start_t1[6] <= __startrek_end_t3[4]) { +#line 1 + if (__startrek_start_t3[4] <= __startrek_end_t1[6]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[6] <= __startrek_start_t3[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_end_t1[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_start_t1[6]); + } + } + } +#line 1 + if (__startrek_start_t1[7] <= __startrek_end_t3[4]) { +#line 1 + if (__startrek_start_t3[4] <= __startrek_end_t1[7]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[7] <= __startrek_start_t3[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_end_t1[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_start_t1[7]); + } + } + } +#line 1 + if (__startrek_start_t2[0] <= __startrek_end_t3[4]) { +#line 1 + if (__startrek_start_t3[4] <= __startrek_end_t2[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[0] <= __startrek_start_t3[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_end_t2[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_start_t2[0]); + } + } + } +#line 1 + if (__startrek_start_t2[1] <= __startrek_end_t3[4]) { +#line 1 + if (__startrek_start_t3[4] <= __startrek_end_t2[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[1] <= __startrek_start_t3[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_end_t2[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_start_t2[1]); + } + } + } +#line 1 + if (__startrek_start_t2[2] <= __startrek_end_t3[4]) { +#line 1 + if (__startrek_start_t3[4] <= __startrek_end_t2[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[2] <= __startrek_start_t3[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_end_t2[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_start_t2[2]); + } + } + } +#line 1 + if (__startrek_start_t2[3] <= __startrek_end_t3[4]) { +#line 1 + if (__startrek_start_t3[4] <= __startrek_end_t2[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[3] <= __startrek_start_t3[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_end_t2[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_start_t2[3]); + } + } + } +#line 1 + if (__startrek_start_t2[4] <= __startrek_end_t3[4]) { +#line 1 + if (__startrek_start_t3[4] <= __startrek_end_t2[4]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[4] <= __startrek_start_t3[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_end_t2[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_start_t2[4]); + } + } + } +#line 1 + if (__startrek_start_t2[5] <= __startrek_end_t3[4]) { +#line 1 + if (__startrek_start_t3[4] <= __startrek_end_t2[5]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[5] <= __startrek_start_t3[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_end_t2[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_start_t2[5]); + } + } + } +#line 1 + if (__startrek_start_t2[6] <= __startrek_end_t3[4]) { +#line 1 + if (__startrek_start_t3[4] <= __startrek_end_t2[6]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[6] <= __startrek_start_t3[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_end_t2[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_start_t2[6]); + } + } + } +#line 1 + if (__startrek_start_t2[7] <= __startrek_end_t3[4]) { +#line 1 + if (__startrek_start_t3[4] <= __startrek_end_t2[7]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[7] <= __startrek_start_t3[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_end_t2[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_start_t2[7]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t3[5]) { +#line 1 + if (__startrek_start_t3[5] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t3[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t0[1] <= __startrek_end_t3[5]) { +#line 1 + if (__startrek_start_t3[5] <= __startrek_end_t0[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[1] <= __startrek_start_t3[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_end_t0[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_start_t0[1]); + } + } + } +#line 1 + if (__startrek_start_t0[2] <= __startrek_end_t3[5]) { +#line 1 + if (__startrek_start_t3[5] <= __startrek_end_t0[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[2] <= __startrek_start_t3[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_end_t0[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_start_t0[2]); + } + } + } +#line 1 + if (__startrek_start_t0[3] <= __startrek_end_t3[5]) { +#line 1 + if (__startrek_start_t3[5] <= __startrek_end_t0[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[3] <= __startrek_start_t3[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_end_t0[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[3] < __startrek_start_t0[3]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t3[5]) { +#line 1 + if (__startrek_start_t3[5] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t3[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t3[5]) { +#line 1 + if (__startrek_start_t3[5] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t3[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t1[2] <= __startrek_end_t3[5]) { +#line 1 + if (__startrek_start_t3[5] <= __startrek_end_t1[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[2] <= __startrek_start_t3[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_end_t1[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_start_t1[2]); + } + } + } +#line 1 + if (__startrek_start_t1[3] <= __startrek_end_t3[5]) { +#line 1 + if (__startrek_start_t3[5] <= __startrek_end_t1[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[3] <= __startrek_start_t3[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_end_t1[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_start_t1[3]); + } + } + } +#line 1 + if (__startrek_start_t1[4] <= __startrek_end_t3[5]) { +#line 1 + if (__startrek_start_t3[5] <= __startrek_end_t1[4]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[4] <= __startrek_start_t3[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_end_t1[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_start_t1[4]); + } + } + } +#line 1 + if (__startrek_start_t1[5] <= __startrek_end_t3[5]) { +#line 1 + if (__startrek_start_t3[5] <= __startrek_end_t1[5]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[5] <= __startrek_start_t3[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_end_t1[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_start_t1[5]); + } + } + } +#line 1 + if (__startrek_start_t1[6] <= __startrek_end_t3[5]) { +#line 1 + if (__startrek_start_t3[5] <= __startrek_end_t1[6]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[6] <= __startrek_start_t3[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_end_t1[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_start_t1[6]); + } + } + } +#line 1 + if (__startrek_start_t1[7] <= __startrek_end_t3[5]) { +#line 1 + if (__startrek_start_t3[5] <= __startrek_end_t1[7]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[7] <= __startrek_start_t3[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_end_t1[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_start_t1[7]); + } + } + } +#line 1 + if (__startrek_start_t2[0] <= __startrek_end_t3[5]) { +#line 1 + if (__startrek_start_t3[5] <= __startrek_end_t2[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[0] <= __startrek_start_t3[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_end_t2[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_start_t2[0]); + } + } + } +#line 1 + if (__startrek_start_t2[1] <= __startrek_end_t3[5]) { +#line 1 + if (__startrek_start_t3[5] <= __startrek_end_t2[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[1] <= __startrek_start_t3[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_end_t2[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_start_t2[1]); + } + } + } +#line 1 + if (__startrek_start_t2[2] <= __startrek_end_t3[5]) { +#line 1 + if (__startrek_start_t3[5] <= __startrek_end_t2[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[2] <= __startrek_start_t3[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_end_t2[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_start_t2[2]); + } + } + } +#line 1 + if (__startrek_start_t2[3] <= __startrek_end_t3[5]) { +#line 1 + if (__startrek_start_t3[5] <= __startrek_end_t2[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[3] <= __startrek_start_t3[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_end_t2[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_start_t2[3]); + } + } + } +#line 1 + if (__startrek_start_t2[4] <= __startrek_end_t3[5]) { +#line 1 + if (__startrek_start_t3[5] <= __startrek_end_t2[4]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[4] <= __startrek_start_t3[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_end_t2[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_start_t2[4]); + } + } + } +#line 1 + if (__startrek_start_t2[5] <= __startrek_end_t3[5]) { +#line 1 + if (__startrek_start_t3[5] <= __startrek_end_t2[5]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[5] <= __startrek_start_t3[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_end_t2[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_start_t2[5]); + } + } + } +#line 1 + if (__startrek_start_t2[6] <= __startrek_end_t3[5]) { +#line 1 + if (__startrek_start_t3[5] <= __startrek_end_t2[6]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[6] <= __startrek_start_t3[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_end_t2[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_start_t2[6]); + } + } + } +#line 1 + if (__startrek_start_t2[7] <= __startrek_end_t3[5]) { +#line 1 + if (__startrek_start_t3[5] <= __startrek_end_t2[7]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[7] <= __startrek_start_t3[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_end_t2[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_start_t2[7]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t3[6]) { +#line 1 + if (__startrek_start_t3[6] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t3[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t0[1] <= __startrek_end_t3[6]) { +#line 1 + if (__startrek_start_t3[6] <= __startrek_end_t0[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[1] <= __startrek_start_t3[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_end_t0[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_start_t0[1]); + } + } + } +#line 1 + if (__startrek_start_t0[2] <= __startrek_end_t3[6]) { +#line 1 + if (__startrek_start_t3[6] <= __startrek_end_t0[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[2] <= __startrek_start_t3[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_end_t0[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_start_t0[2]); + } + } + } +#line 1 + if (__startrek_start_t0[3] <= __startrek_end_t3[6]) { +#line 1 + if (__startrek_start_t3[6] <= __startrek_end_t0[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[3] <= __startrek_start_t3[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_end_t0[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[4] < __startrek_start_t0[3]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t3[6]) { +#line 1 + if (__startrek_start_t3[6] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t3[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t3[6]) { +#line 1 + if (__startrek_start_t3[6] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t3[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t1[2] <= __startrek_end_t3[6]) { +#line 1 + if (__startrek_start_t3[6] <= __startrek_end_t1[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[2] <= __startrek_start_t3[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_end_t1[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_start_t1[2]); + } + } + } +#line 1 + if (__startrek_start_t1[3] <= __startrek_end_t3[6]) { +#line 1 + if (__startrek_start_t3[6] <= __startrek_end_t1[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[3] <= __startrek_start_t3[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_end_t1[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_start_t1[3]); + } + } + } +#line 1 + if (__startrek_start_t1[4] <= __startrek_end_t3[6]) { +#line 1 + if (__startrek_start_t3[6] <= __startrek_end_t1[4]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[4] <= __startrek_start_t3[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_end_t1[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_start_t1[4]); + } + } + } +#line 1 + if (__startrek_start_t1[5] <= __startrek_end_t3[6]) { +#line 1 + if (__startrek_start_t3[6] <= __startrek_end_t1[5]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[5] <= __startrek_start_t3[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_end_t1[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_start_t1[5]); + } + } + } +#line 1 + if (__startrek_start_t1[6] <= __startrek_end_t3[6]) { +#line 1 + if (__startrek_start_t3[6] <= __startrek_end_t1[6]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[6] <= __startrek_start_t3[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_end_t1[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_start_t1[6]); + } + } + } +#line 1 + if (__startrek_start_t1[7] <= __startrek_end_t3[6]) { +#line 1 + if (__startrek_start_t3[6] <= __startrek_end_t1[7]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[7] <= __startrek_start_t3[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_end_t1[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_start_t1[7]); + } + } + } +#line 1 + if (__startrek_start_t2[0] <= __startrek_end_t3[6]) { +#line 1 + if (__startrek_start_t3[6] <= __startrek_end_t2[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[0] <= __startrek_start_t3[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_end_t2[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_start_t2[0]); + } + } + } +#line 1 + if (__startrek_start_t2[1] <= __startrek_end_t3[6]) { +#line 1 + if (__startrek_start_t3[6] <= __startrek_end_t2[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[1] <= __startrek_start_t3[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_end_t2[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_start_t2[1]); + } + } + } +#line 1 + if (__startrek_start_t2[2] <= __startrek_end_t3[6]) { +#line 1 + if (__startrek_start_t3[6] <= __startrek_end_t2[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[2] <= __startrek_start_t3[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_end_t2[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_start_t2[2]); + } + } + } +#line 1 + if (__startrek_start_t2[3] <= __startrek_end_t3[6]) { +#line 1 + if (__startrek_start_t3[6] <= __startrek_end_t2[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[3] <= __startrek_start_t3[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_end_t2[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_start_t2[3]); + } + } + } +#line 1 + if (__startrek_start_t2[4] <= __startrek_end_t3[6]) { +#line 1 + if (__startrek_start_t3[6] <= __startrek_end_t2[4]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[4] <= __startrek_start_t3[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_end_t2[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_start_t2[4]); + } + } + } +#line 1 + if (__startrek_start_t2[5] <= __startrek_end_t3[6]) { +#line 1 + if (__startrek_start_t3[6] <= __startrek_end_t2[5]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[5] <= __startrek_start_t3[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_end_t2[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_start_t2[5]); + } + } + } +#line 1 + if (__startrek_start_t2[6] <= __startrek_end_t3[6]) { +#line 1 + if (__startrek_start_t3[6] <= __startrek_end_t2[6]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[6] <= __startrek_start_t3[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_end_t2[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_start_t2[6]); + } + } + } +#line 1 + if (__startrek_start_t2[7] <= __startrek_end_t3[6]) { +#line 1 + if (__startrek_start_t3[6] <= __startrek_end_t2[7]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[7] <= __startrek_start_t3[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_end_t2[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_start_t2[7]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t3[7]) { +#line 1 + if (__startrek_start_t3[7] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t3[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[7] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t0[1] <= __startrek_end_t3[7]) { +#line 1 + if (__startrek_start_t3[7] <= __startrek_end_t0[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[1] <= __startrek_start_t3[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[7] < __startrek_end_t0[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_start_t0[1]); + } + } + } +#line 1 + if (__startrek_start_t0[2] <= __startrek_end_t3[7]) { +#line 1 + if (__startrek_start_t3[7] <= __startrek_end_t0[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[2] <= __startrek_start_t3[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[7] < __startrek_end_t0[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_start_t0[2]); + } + } + } +#line 1 + if (__startrek_start_t0[3] <= __startrek_end_t3[7]) { +#line 1 + if (__startrek_start_t3[7] <= __startrek_end_t0[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[3] <= __startrek_start_t3[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[7] < __startrek_end_t0[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[5] < __startrek_start_t0[3]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t3[7]) { +#line 1 + if (__startrek_start_t3[7] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t3[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[7] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t3[7]) { +#line 1 + if (__startrek_start_t3[7] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t3[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[7] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t1[2] <= __startrek_end_t3[7]) { +#line 1 + if (__startrek_start_t3[7] <= __startrek_end_t1[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[2] <= __startrek_start_t3[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[7] < __startrek_end_t1[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_start_t1[2]); + } + } + } +#line 1 + if (__startrek_start_t1[3] <= __startrek_end_t3[7]) { +#line 1 + if (__startrek_start_t3[7] <= __startrek_end_t1[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[3] <= __startrek_start_t3[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[7] < __startrek_end_t1[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_start_t1[3]); + } + } + } +#line 1 + if (__startrek_start_t1[4] <= __startrek_end_t3[7]) { +#line 1 + if (__startrek_start_t3[7] <= __startrek_end_t1[4]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[4] <= __startrek_start_t3[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[7] < __startrek_end_t1[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_start_t1[4]); + } + } + } +#line 1 + if (__startrek_start_t1[5] <= __startrek_end_t3[7]) { +#line 1 + if (__startrek_start_t3[7] <= __startrek_end_t1[5]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[5] <= __startrek_start_t3[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[7] < __startrek_end_t1[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_start_t1[5]); + } + } + } +#line 1 + if (__startrek_start_t1[6] <= __startrek_end_t3[7]) { +#line 1 + if (__startrek_start_t3[7] <= __startrek_end_t1[6]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[6] <= __startrek_start_t3[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[7] < __startrek_end_t1[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_start_t1[6]); + } + } + } +#line 1 + if (__startrek_start_t1[7] <= __startrek_end_t3[7]) { +#line 1 + if (__startrek_start_t3[7] <= __startrek_end_t1[7]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[7] <= __startrek_start_t3[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[7] < __startrek_end_t1[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_start_t1[7]); + } + } + } +#line 1 + if (__startrek_start_t2[0] <= __startrek_end_t3[7]) { +#line 1 + if (__startrek_start_t3[7] <= __startrek_end_t2[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[0] <= __startrek_start_t3[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[7] < __startrek_end_t2[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_start_t2[0]); + } + } + } +#line 1 + if (__startrek_start_t2[1] <= __startrek_end_t3[7]) { +#line 1 + if (__startrek_start_t3[7] <= __startrek_end_t2[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[1] <= __startrek_start_t3[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[7] < __startrek_end_t2[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_start_t2[1]); + } + } + } +#line 1 + if (__startrek_start_t2[2] <= __startrek_end_t3[7]) { +#line 1 + if (__startrek_start_t3[7] <= __startrek_end_t2[2]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[2] <= __startrek_start_t3[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[7] < __startrek_end_t2[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_start_t2[2]); + } + } + } +#line 1 + if (__startrek_start_t2[3] <= __startrek_end_t3[7]) { +#line 1 + if (__startrek_start_t3[7] <= __startrek_end_t2[3]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[3] <= __startrek_start_t3[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[7] < __startrek_end_t2[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_start_t2[3]); + } + } + } +#line 1 + if (__startrek_start_t2[4] <= __startrek_end_t3[7]) { +#line 1 + if (__startrek_start_t3[7] <= __startrek_end_t2[4]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[4] <= __startrek_start_t3[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[7] < __startrek_end_t2[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_start_t2[4]); + } + } + } +#line 1 + if (__startrek_start_t2[5] <= __startrek_end_t3[7]) { +#line 1 + if (__startrek_start_t3[7] <= __startrek_end_t2[5]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[5] <= __startrek_start_t3[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[7] < __startrek_end_t2[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_start_t2[5]); + } + } + } +#line 1 + if (__startrek_start_t2[6] <= __startrek_end_t3[7]) { +#line 1 + if (__startrek_start_t3[7] <= __startrek_end_t2[6]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[6] <= __startrek_start_t3[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[7] < __startrek_end_t2[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_start_t2[6]); + } + } + } +#line 1 + if (__startrek_start_t2[7] <= __startrek_end_t3[7]) { +#line 1 + if (__startrek_start_t3[7] <= __startrek_end_t2[7]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t2[7] <= __startrek_start_t3[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[7] < __startrek_end_t2[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t3[6] < __startrek_start_t2[7]); + } + } + } +} +} +#line 1 "" +__inline void __startrek_init_globals(void) +{ + + + { +#line 1 "" + _i___startrek_job_count_Writer_[1] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Writer_[1] = _i___startrek_job_count_Writer_[1]; +#line 1 + _i___startrek_job_count_Writer_[2] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Writer_[2] = _i___startrek_job_count_Writer_[2]; +#line 1 + _i___startrek_job_count_Writer_[3] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Writer_[3] = _i___startrek_job_count_Writer_[3]; +#line 1 + _i___startrek_job_count_Writer_[4] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Writer_[4] = _i___startrek_job_count_Writer_[4]; +#line 1 + _i___startrek_job_count_Writer_[5] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Writer_[5] = _i___startrek_job_count_Writer_[5]; +#line 1 + _i___startrek_job_count_Writer_[6] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Writer_[6] = _i___startrek_job_count_Writer_[6]; +#line 1 + _i___startrek_job_count_Writer_[7] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Writer_[7] = _i___startrek_job_count_Writer_[7]; +#line 1 + _i___startrek_job_count_Writer_[8] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Writer_[8] = _i___startrek_job_count_Writer_[8]; +#line 1 + _i___startrek_job_count_Writer_[9] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Writer_[9] = _i___startrek_job_count_Writer_[9]; +#line 1 + _i___startrek_job_count_Writer_[10] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Writer_[10] = _i___startrek_job_count_Writer_[10]; +#line 1 + _i___startrek_job_count_Writer_[11] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Writer_[11] = _i___startrek_job_count_Writer_[11]; +#line 1 + _i___startrek_job_count_Writer_[12] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Writer_[12] = _i___startrek_job_count_Writer_[12]; +#line 1 + _i___startrek_job_count_Writer_[13] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Writer_[13] = _i___startrek_job_count_Writer_[13]; +#line 1 + _i___startrek_job_count_Writer_[14] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Writer_[14] = _i___startrek_job_count_Writer_[14]; +#line 1 + _i___startrek_job_count_Writer_[15] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Writer_[15] = _i___startrek_job_count_Writer_[15]; +#line 1 + _i___startrek_job_count_Writer_[16] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Writer_[16] = _i___startrek_job_count_Writer_[16]; +#line 1 + _i___startrek_job_count_Writer_[17] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Writer_[17] = _i___startrek_job_count_Writer_[17]; +#line 1 + _i___startrek_job_count_Writer_[18] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Writer_[18] = _i___startrek_job_count_Writer_[18]; +#line 1 + _i___startrek_job_count_Writer_[19] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Writer_[19] = _i___startrek_job_count_Writer_[19]; +#line 1 + _i___startrek_job_count_Writer_[20] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Writer_[20] = _i___startrek_job_count_Writer_[20]; +#line 1 + _i___startrek_job_count_Writer_[21] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Writer_[21] = _i___startrek_job_count_Writer_[21]; +#line 1 + _i___startrek_job_count_Writer_[22] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Writer_[22] = _i___startrek_job_count_Writer_[22]; +#line 1 + _i___startrek_job_count_Writer_[23] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Writer_[23] = _i___startrek_job_count_Writer_[23]; +#line 1 + _i___startrek_job_count_Writer_[24] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Writer_[24] = _i___startrek_job_count_Writer_[24]; +#line 1 + _i___startrek_job_count_Writer_[25] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Writer_[25] = _i___startrek_job_count_Writer_[25]; +#line 1 + _i___startrek_job_count_Writer_[26] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Writer_[26] = _i___startrek_job_count_Writer_[26]; +#line 1 + _i___startrek_job_count_Writer_[27] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Writer_[27] = _i___startrek_job_count_Writer_[27]; +#line 1 + _i___startrek_job_count_Reader_[1] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Reader_[1] = _i___startrek_job_count_Reader_[1]; +#line 1 + _i___startrek_job_count_Reader_[2] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Reader_[2] = _i___startrek_job_count_Reader_[2]; +#line 1 + _i___startrek_job_count_Reader_[3] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Reader_[3] = _i___startrek_job_count_Reader_[3]; +#line 1 + _i___startrek_job_count_Reader_[4] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Reader_[4] = _i___startrek_job_count_Reader_[4]; +#line 1 + _i___startrek_job_count_Reader_[5] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Reader_[5] = _i___startrek_job_count_Reader_[5]; +#line 1 + _i___startrek_job_count_Reader_[6] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Reader_[6] = _i___startrek_job_count_Reader_[6]; +#line 1 + _i___startrek_job_count_Reader_[7] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Reader_[7] = _i___startrek_job_count_Reader_[7]; +#line 1 + _i___startrek_job_count_Reader_[8] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Reader_[8] = _i___startrek_job_count_Reader_[8]; +#line 1 + _i___startrek_job_count_Reader_[9] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Reader_[9] = _i___startrek_job_count_Reader_[9]; +#line 1 + _i___startrek_job_count_Reader_[10] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Reader_[10] = _i___startrek_job_count_Reader_[10]; +#line 1 + _i___startrek_job_count_Reader_[11] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Reader_[11] = _i___startrek_job_count_Reader_[11]; +#line 1 + _i___startrek_job_count_Reader_[12] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Reader_[12] = _i___startrek_job_count_Reader_[12]; +#line 1 + _i___startrek_job_count_Reader_[13] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Reader_[13] = _i___startrek_job_count_Reader_[13]; +#line 1 + _i___startrek_job_count_Reader_[14] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Reader_[14] = _i___startrek_job_count_Reader_[14]; +#line 1 + _i___startrek_job_count_Reader_[15] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Reader_[15] = _i___startrek_job_count_Reader_[15]; +#line 1 + _i___startrek_job_count_Reader_[16] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Reader_[16] = _i___startrek_job_count_Reader_[16]; +#line 1 + _i___startrek_job_count_Reader_[17] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Reader_[17] = _i___startrek_job_count_Reader_[17]; +#line 1 + _i___startrek_job_count_Reader_[18] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Reader_[18] = _i___startrek_job_count_Reader_[18]; +#line 1 + _i___startrek_job_count_Reader_[19] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Reader_[19] = _i___startrek_job_count_Reader_[19]; +#line 1 + _i___startrek_job_count_Reader_[20] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Reader_[20] = _i___startrek_job_count_Reader_[20]; +#line 1 + _i___startrek_job_count_Reader_[21] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Reader_[21] = _i___startrek_job_count_Reader_[21]; +#line 1 + _i___startrek_job_count_Reader_[22] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Reader_[22] = _i___startrek_job_count_Reader_[22]; +#line 1 + _i___startrek_job_count_Reader_[23] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Reader_[23] = _i___startrek_job_count_Reader_[23]; +#line 1 + _i___startrek_job_count_Reader_[24] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Reader_[24] = _i___startrek_job_count_Reader_[24]; +#line 1 + _i___startrek_job_count_Reader_[25] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Reader_[25] = _i___startrek_job_count_Reader_[25]; +#line 1 + _i___startrek_job_count_Reader_[26] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Reader_[26] = _i___startrek_job_count_Reader_[26]; +#line 1 + _i___startrek_job_count_Reader_[27] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Reader_[27] = _i___startrek_job_count_Reader_[27]; +#line 1 + _i___startrek_job_count_TapeMover_[1] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_TapeMover_[1] = _i___startrek_job_count_TapeMover_[1]; +#line 1 + _i___startrek_job_count_TapeMover_[2] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_TapeMover_[2] = _i___startrek_job_count_TapeMover_[2]; +#line 1 + _i___startrek_job_count_TapeMover_[3] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_TapeMover_[3] = _i___startrek_job_count_TapeMover_[3]; +#line 1 + _i___startrek_job_count_TapeMover_[4] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_TapeMover_[4] = _i___startrek_job_count_TapeMover_[4]; +#line 1 + _i___startrek_job_count_TapeMover_[5] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_TapeMover_[5] = _i___startrek_job_count_TapeMover_[5]; +#line 1 + _i___startrek_job_count_TapeMover_[6] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_TapeMover_[6] = _i___startrek_job_count_TapeMover_[6]; +#line 1 + _i___startrek_job_count_TapeMover_[7] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_TapeMover_[7] = _i___startrek_job_count_TapeMover_[7]; +#line 1 + _i___startrek_job_count_TapeMover_[8] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_TapeMover_[8] = _i___startrek_job_count_TapeMover_[8]; +#line 1 + _i___startrek_job_count_TapeMover_[9] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_TapeMover_[9] = _i___startrek_job_count_TapeMover_[9]; +#line 1 + _i___startrek_job_count_TapeMover_[10] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_TapeMover_[10] = _i___startrek_job_count_TapeMover_[10]; +#line 1 + _i___startrek_job_count_TapeMover_[11] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_TapeMover_[11] = _i___startrek_job_count_TapeMover_[11]; +#line 1 + _i___startrek_job_count_TapeMover_[12] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_TapeMover_[12] = _i___startrek_job_count_TapeMover_[12]; +#line 1 + _i___startrek_job_count_TapeMover_[13] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_TapeMover_[13] = _i___startrek_job_count_TapeMover_[13]; +#line 1 + _i___startrek_job_count_TapeMover_[14] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_TapeMover_[14] = _i___startrek_job_count_TapeMover_[14]; +#line 1 + _i___startrek_job_count_TapeMover_[15] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_TapeMover_[15] = _i___startrek_job_count_TapeMover_[15]; +#line 1 + _i___startrek_job_count_TapeMover_[16] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_TapeMover_[16] = _i___startrek_job_count_TapeMover_[16]; +#line 1 + _i___startrek_job_count_TapeMover_[17] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_TapeMover_[17] = _i___startrek_job_count_TapeMover_[17]; +#line 1 + _i___startrek_job_count_TapeMover_[18] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_TapeMover_[18] = _i___startrek_job_count_TapeMover_[18]; +#line 1 + _i___startrek_job_count_TapeMover_[19] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_TapeMover_[19] = _i___startrek_job_count_TapeMover_[19]; +#line 1 + _i___startrek_job_count_TapeMover_[20] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_TapeMover_[20] = _i___startrek_job_count_TapeMover_[20]; +#line 1 + _i___startrek_job_count_TapeMover_[21] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_TapeMover_[21] = _i___startrek_job_count_TapeMover_[21]; +#line 1 + _i___startrek_job_count_TapeMover_[22] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_TapeMover_[22] = _i___startrek_job_count_TapeMover_[22]; +#line 1 + _i___startrek_job_count_TapeMover_[23] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_TapeMover_[23] = _i___startrek_job_count_TapeMover_[23]; +#line 1 + _i___startrek_job_count_TapeMover_[24] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_TapeMover_[24] = _i___startrek_job_count_TapeMover_[24]; +#line 1 + _i___startrek_job_count_TapeMover_[25] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_TapeMover_[25] = _i___startrek_job_count_TapeMover_[25]; +#line 1 + _i___startrek_job_count_TapeMover_[26] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_TapeMover_[26] = _i___startrek_job_count_TapeMover_[26]; +#line 1 + _i___startrek_job_count_TapeMover_[27] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_TapeMover_[27] = _i___startrek_job_count_TapeMover_[27]; +#line 1 + _i___startrek_job_count_Controller_[1] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Controller_[1] = _i___startrek_job_count_Controller_[1]; +#line 1 + _i___startrek_job_count_Controller_[2] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Controller_[2] = _i___startrek_job_count_Controller_[2]; +#line 1 + _i___startrek_job_count_Controller_[3] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Controller_[3] = _i___startrek_job_count_Controller_[3]; +#line 1 + _i___startrek_job_count_Controller_[4] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Controller_[4] = _i___startrek_job_count_Controller_[4]; +#line 1 + _i___startrek_job_count_Controller_[5] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Controller_[5] = _i___startrek_job_count_Controller_[5]; +#line 1 + _i___startrek_job_count_Controller_[6] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Controller_[6] = _i___startrek_job_count_Controller_[6]; +#line 1 + _i___startrek_job_count_Controller_[7] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Controller_[7] = _i___startrek_job_count_Controller_[7]; +#line 1 + _i___startrek_job_count_Controller_[8] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Controller_[8] = _i___startrek_job_count_Controller_[8]; +#line 1 + _i___startrek_job_count_Controller_[9] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Controller_[9] = _i___startrek_job_count_Controller_[9]; +#line 1 + _i___startrek_job_count_Controller_[10] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Controller_[10] = _i___startrek_job_count_Controller_[10]; +#line 1 + _i___startrek_job_count_Controller_[11] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Controller_[11] = _i___startrek_job_count_Controller_[11]; +#line 1 + _i___startrek_job_count_Controller_[12] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Controller_[12] = _i___startrek_job_count_Controller_[12]; +#line 1 + _i___startrek_job_count_Controller_[13] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Controller_[13] = _i___startrek_job_count_Controller_[13]; +#line 1 + _i___startrek_job_count_Controller_[14] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Controller_[14] = _i___startrek_job_count_Controller_[14]; +#line 1 + _i___startrek_job_count_Controller_[15] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Controller_[15] = _i___startrek_job_count_Controller_[15]; +#line 1 + _i___startrek_job_count_Controller_[16] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Controller_[16] = _i___startrek_job_count_Controller_[16]; +#line 1 + _i___startrek_job_count_Controller_[17] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Controller_[17] = _i___startrek_job_count_Controller_[17]; +#line 1 + _i___startrek_job_count_Controller_[18] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Controller_[18] = _i___startrek_job_count_Controller_[18]; +#line 1 + _i___startrek_job_count_Controller_[19] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Controller_[19] = _i___startrek_job_count_Controller_[19]; +#line 1 + _i___startrek_job_count_Controller_[20] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Controller_[20] = _i___startrek_job_count_Controller_[20]; +#line 1 + _i___startrek_job_count_Controller_[21] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Controller_[21] = _i___startrek_job_count_Controller_[21]; +#line 1 + _i___startrek_job_count_Controller_[22] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Controller_[22] = _i___startrek_job_count_Controller_[22]; +#line 1 + _i___startrek_job_count_Controller_[23] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Controller_[23] = _i___startrek_job_count_Controller_[23]; +#line 1 + _i___startrek_job_count_Controller_[24] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Controller_[24] = _i___startrek_job_count_Controller_[24]; +#line 1 + _i___startrek_job_count_Controller_[25] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Controller_[25] = _i___startrek_job_count_Controller_[25]; +#line 1 + _i___startrek_job_count_Controller_[26] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Controller_[26] = _i___startrek_job_count_Controller_[26]; +#line 1 + _i___startrek_job_count_Controller_[27] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_job_count_Controller_[27] = _i___startrek_job_count_Controller_[27]; +#line 1 + _i_T_state_[1] = __VERIFIER_nondet_uchar(); +#line 1 + _T_state_[1] = _i_T_state_[1]; +#line 1 + _i_T_state_[2] = __VERIFIER_nondet_uchar(); +#line 1 + _T_state_[2] = _i_T_state_[2]; +#line 1 + _i_T_state_[3] = __VERIFIER_nondet_uchar(); +#line 1 + _T_state_[3] = _i_T_state_[3]; +#line 1 + _i_T_state_[4] = __VERIFIER_nondet_uchar(); +#line 1 + _T_state_[4] = _i_T_state_[4]; +#line 1 + _i_T_state_[5] = __VERIFIER_nondet_uchar(); +#line 1 + _T_state_[5] = _i_T_state_[5]; +#line 1 + _i_T_state_[6] = __VERIFIER_nondet_uchar(); +#line 1 + _T_state_[6] = _i_T_state_[6]; +#line 1 + _i_T_state_[7] = __VERIFIER_nondet_uchar(); +#line 1 + _T_state_[7] = _i_T_state_[7]; +#line 1 + _i_T_state_[8] = __VERIFIER_nondet_uchar(); +#line 1 + _T_state_[8] = _i_T_state_[8]; +#line 1 + _i_T_state_[9] = __VERIFIER_nondet_uchar(); +#line 1 + _T_state_[9] = _i_T_state_[9]; +#line 1 + _i_T_state_[10] = __VERIFIER_nondet_uchar(); +#line 1 + _T_state_[10] = _i_T_state_[10]; +#line 1 + _i_T_state_[11] = __VERIFIER_nondet_uchar(); +#line 1 + _T_state_[11] = _i_T_state_[11]; +#line 1 + _i_T_state_[12] = __VERIFIER_nondet_uchar(); +#line 1 + _T_state_[12] = _i_T_state_[12]; +#line 1 + _i_T_state_[13] = __VERIFIER_nondet_uchar(); +#line 1 + _T_state_[13] = _i_T_state_[13]; +#line 1 + _i_T_state_[14] = __VERIFIER_nondet_uchar(); +#line 1 + _T_state_[14] = _i_T_state_[14]; +#line 1 + _i_T_state_[15] = __VERIFIER_nondet_uchar(); +#line 1 + _T_state_[15] = _i_T_state_[15]; +#line 1 + _i_T_state_[16] = __VERIFIER_nondet_uchar(); +#line 1 + _T_state_[16] = _i_T_state_[16]; +#line 1 + _i_T_state_[17] = __VERIFIER_nondet_uchar(); +#line 1 + _T_state_[17] = _i_T_state_[17]; +#line 1 + _i_T_state_[18] = __VERIFIER_nondet_uchar(); +#line 1 + _T_state_[18] = _i_T_state_[18]; +#line 1 + _i_T_state_[19] = __VERIFIER_nondet_uchar(); +#line 1 + _T_state_[19] = _i_T_state_[19]; +#line 1 + _i_T_state_[20] = __VERIFIER_nondet_uchar(); +#line 1 + _T_state_[20] = _i_T_state_[20]; +#line 1 + _i_T_state_[21] = __VERIFIER_nondet_uchar(); +#line 1 + _T_state_[21] = _i_T_state_[21]; +#line 1 + _i_T_state_[22] = __VERIFIER_nondet_uchar(); +#line 1 + _T_state_[22] = _i_T_state_[22]; +#line 1 + _i_T_state_[23] = __VERIFIER_nondet_uchar(); +#line 1 + _T_state_[23] = _i_T_state_[23]; +#line 1 + _i_T_state_[24] = __VERIFIER_nondet_uchar(); +#line 1 + _T_state_[24] = _i_T_state_[24]; +#line 1 + _i_T_state_[25] = __VERIFIER_nondet_uchar(); +#line 1 + _T_state_[25] = _i_T_state_[25]; +#line 1 + _i_T_state_[26] = __VERIFIER_nondet_uchar(); +#line 1 + _T_state_[26] = _i_T_state_[26]; +#line 1 + _i_T_state_[27] = __VERIFIER_nondet_uchar(); +#line 1 + _T_state_[27] = _i_T_state_[27]; +#line 1 + _i_W_state_[1] = __VERIFIER_nondet_uchar(); +#line 1 + _W_state_[1] = _i_W_state_[1]; +#line 1 + _i_W_state_[2] = __VERIFIER_nondet_uchar(); +#line 1 + _W_state_[2] = _i_W_state_[2]; +#line 1 + _i_W_state_[3] = __VERIFIER_nondet_uchar(); +#line 1 + _W_state_[3] = _i_W_state_[3]; +#line 1 + _i_W_state_[4] = __VERIFIER_nondet_uchar(); +#line 1 + _W_state_[4] = _i_W_state_[4]; +#line 1 + _i_W_state_[5] = __VERIFIER_nondet_uchar(); +#line 1 + _W_state_[5] = _i_W_state_[5]; +#line 1 + _i_W_state_[6] = __VERIFIER_nondet_uchar(); +#line 1 + _W_state_[6] = _i_W_state_[6]; +#line 1 + _i_W_state_[7] = __VERIFIER_nondet_uchar(); +#line 1 + _W_state_[7] = _i_W_state_[7]; +#line 1 + _i_W_state_[8] = __VERIFIER_nondet_uchar(); +#line 1 + _W_state_[8] = _i_W_state_[8]; +#line 1 + _i_W_state_[9] = __VERIFIER_nondet_uchar(); +#line 1 + _W_state_[9] = _i_W_state_[9]; +#line 1 + _i_W_state_[10] = __VERIFIER_nondet_uchar(); +#line 1 + _W_state_[10] = _i_W_state_[10]; +#line 1 + _i_W_state_[11] = __VERIFIER_nondet_uchar(); +#line 1 + _W_state_[11] = _i_W_state_[11]; +#line 1 + _i_W_state_[12] = __VERIFIER_nondet_uchar(); +#line 1 + _W_state_[12] = _i_W_state_[12]; +#line 1 + _i_W_state_[13] = __VERIFIER_nondet_uchar(); +#line 1 + _W_state_[13] = _i_W_state_[13]; +#line 1 + _i_W_state_[14] = __VERIFIER_nondet_uchar(); +#line 1 + _W_state_[14] = _i_W_state_[14]; +#line 1 + _i_W_state_[15] = __VERIFIER_nondet_uchar(); +#line 1 + _W_state_[15] = _i_W_state_[15]; +#line 1 + _i_W_state_[16] = __VERIFIER_nondet_uchar(); +#line 1 + _W_state_[16] = _i_W_state_[16]; +#line 1 + _i_W_state_[17] = __VERIFIER_nondet_uchar(); +#line 1 + _W_state_[17] = _i_W_state_[17]; +#line 1 + _i_W_state_[18] = __VERIFIER_nondet_uchar(); +#line 1 + _W_state_[18] = _i_W_state_[18]; +#line 1 + _i_W_state_[19] = __VERIFIER_nondet_uchar(); +#line 1 + _W_state_[19] = _i_W_state_[19]; +#line 1 + _i_W_state_[20] = __VERIFIER_nondet_uchar(); +#line 1 + _W_state_[20] = _i_W_state_[20]; +#line 1 + _i_W_state_[21] = __VERIFIER_nondet_uchar(); +#line 1 + _W_state_[21] = _i_W_state_[21]; +#line 1 + _i_W_state_[22] = __VERIFIER_nondet_uchar(); +#line 1 + _W_state_[22] = _i_W_state_[22]; +#line 1 + _i_W_state_[23] = __VERIFIER_nondet_uchar(); +#line 1 + _W_state_[23] = _i_W_state_[23]; +#line 1 + _i_W_state_[24] = __VERIFIER_nondet_uchar(); +#line 1 + _W_state_[24] = _i_W_state_[24]; +#line 1 + _i_W_state_[25] = __VERIFIER_nondet_uchar(); +#line 1 + _W_state_[25] = _i_W_state_[25]; +#line 1 + _i_W_state_[26] = __VERIFIER_nondet_uchar(); +#line 1 + _W_state_[26] = _i_W_state_[26]; +#line 1 + _i_W_state_[27] = __VERIFIER_nondet_uchar(); +#line 1 + _W_state_[27] = _i_W_state_[27]; +#line 1 + _i_R_state_[1] = __VERIFIER_nondet_uchar(); +#line 1 + _R_state_[1] = _i_R_state_[1]; +#line 1 + _i_R_state_[2] = __VERIFIER_nondet_uchar(); +#line 1 + _R_state_[2] = _i_R_state_[2]; +#line 1 + _i_R_state_[3] = __VERIFIER_nondet_uchar(); +#line 1 + _R_state_[3] = _i_R_state_[3]; +#line 1 + _i_R_state_[4] = __VERIFIER_nondet_uchar(); +#line 1 + _R_state_[4] = _i_R_state_[4]; +#line 1 + _i_R_state_[5] = __VERIFIER_nondet_uchar(); +#line 1 + _R_state_[5] = _i_R_state_[5]; +#line 1 + _i_R_state_[6] = __VERIFIER_nondet_uchar(); +#line 1 + _R_state_[6] = _i_R_state_[6]; +#line 1 + _i_R_state_[7] = __VERIFIER_nondet_uchar(); +#line 1 + _R_state_[7] = _i_R_state_[7]; +#line 1 + _i_R_state_[8] = __VERIFIER_nondet_uchar(); +#line 1 + _R_state_[8] = _i_R_state_[8]; +#line 1 + _i_R_state_[9] = __VERIFIER_nondet_uchar(); +#line 1 + _R_state_[9] = _i_R_state_[9]; +#line 1 + _i_R_state_[10] = __VERIFIER_nondet_uchar(); +#line 1 + _R_state_[10] = _i_R_state_[10]; +#line 1 + _i_R_state_[11] = __VERIFIER_nondet_uchar(); +#line 1 + _R_state_[11] = _i_R_state_[11]; +#line 1 + _i_R_state_[12] = __VERIFIER_nondet_uchar(); +#line 1 + _R_state_[12] = _i_R_state_[12]; +#line 1 + _i_R_state_[13] = __VERIFIER_nondet_uchar(); +#line 1 + _R_state_[13] = _i_R_state_[13]; +#line 1 + _i_R_state_[14] = __VERIFIER_nondet_uchar(); +#line 1 + _R_state_[14] = _i_R_state_[14]; +#line 1 + _i_R_state_[15] = __VERIFIER_nondet_uchar(); +#line 1 + _R_state_[15] = _i_R_state_[15]; +#line 1 + _i_R_state_[16] = __VERIFIER_nondet_uchar(); +#line 1 + _R_state_[16] = _i_R_state_[16]; +#line 1 + _i_R_state_[17] = __VERIFIER_nondet_uchar(); +#line 1 + _R_state_[17] = _i_R_state_[17]; +#line 1 + _i_R_state_[18] = __VERIFIER_nondet_uchar(); +#line 1 + _R_state_[18] = _i_R_state_[18]; +#line 1 + _i_R_state_[19] = __VERIFIER_nondet_uchar(); +#line 1 + _R_state_[19] = _i_R_state_[19]; +#line 1 + _i_R_state_[20] = __VERIFIER_nondet_uchar(); +#line 1 + _R_state_[20] = _i_R_state_[20]; +#line 1 + _i_R_state_[21] = __VERIFIER_nondet_uchar(); +#line 1 + _R_state_[21] = _i_R_state_[21]; +#line 1 + _i_R_state_[22] = __VERIFIER_nondet_uchar(); +#line 1 + _R_state_[22] = _i_R_state_[22]; +#line 1 + _i_R_state_[23] = __VERIFIER_nondet_uchar(); +#line 1 + _R_state_[23] = _i_R_state_[23]; +#line 1 + _i_R_state_[24] = __VERIFIER_nondet_uchar(); +#line 1 + _R_state_[24] = _i_R_state_[24]; +#line 1 + _i_R_state_[25] = __VERIFIER_nondet_uchar(); +#line 1 + _R_state_[25] = _i_R_state_[25]; +#line 1 + _i_R_state_[26] = __VERIFIER_nondet_uchar(); +#line 1 + _R_state_[26] = _i_R_state_[26]; +#line 1 + _i_R_state_[27] = __VERIFIER_nondet_uchar(); +#line 1 + _R_state_[27] = _i_R_state_[27]; +#line 1 + _i_threshold_[1] = __VERIFIER_nondet_ushort(); +#line 1 + _threshold_[1] = _i_threshold_[1]; +#line 1 + _i_threshold_[2] = __VERIFIER_nondet_ushort(); +#line 1 + _threshold_[2] = _i_threshold_[2]; +#line 1 + _i_threshold_[3] = __VERIFIER_nondet_ushort(); +#line 1 + _threshold_[3] = _i_threshold_[3]; +#line 1 + _i_threshold_[4] = __VERIFIER_nondet_ushort(); +#line 1 + _threshold_[4] = _i_threshold_[4]; +#line 1 + _i_threshold_[5] = __VERIFIER_nondet_ushort(); +#line 1 + _threshold_[5] = _i_threshold_[5]; +#line 1 + _i_threshold_[6] = __VERIFIER_nondet_ushort(); +#line 1 + _threshold_[6] = _i_threshold_[6]; +#line 1 + _i_threshold_[7] = __VERIFIER_nondet_ushort(); +#line 1 + _threshold_[7] = _i_threshold_[7]; +#line 1 + _i_threshold_[8] = __VERIFIER_nondet_ushort(); +#line 1 + _threshold_[8] = _i_threshold_[8]; +#line 1 + _i_threshold_[9] = __VERIFIER_nondet_ushort(); +#line 1 + _threshold_[9] = _i_threshold_[9]; +#line 1 + _i_threshold_[10] = __VERIFIER_nondet_ushort(); +#line 1 + _threshold_[10] = _i_threshold_[10]; +#line 1 + _i_threshold_[11] = __VERIFIER_nondet_ushort(); +#line 1 + _threshold_[11] = _i_threshold_[11]; +#line 1 + _i_threshold_[12] = __VERIFIER_nondet_ushort(); +#line 1 + _threshold_[12] = _i_threshold_[12]; +#line 1 + _i_threshold_[13] = __VERIFIER_nondet_ushort(); +#line 1 + _threshold_[13] = _i_threshold_[13]; +#line 1 + _i_threshold_[14] = __VERIFIER_nondet_ushort(); +#line 1 + _threshold_[14] = _i_threshold_[14]; +#line 1 + _i_threshold_[15] = __VERIFIER_nondet_ushort(); +#line 1 + _threshold_[15] = _i_threshold_[15]; +#line 1 + _i_threshold_[16] = __VERIFIER_nondet_ushort(); +#line 1 + _threshold_[16] = _i_threshold_[16]; +#line 1 + _i_threshold_[17] = __VERIFIER_nondet_ushort(); +#line 1 + _threshold_[17] = _i_threshold_[17]; +#line 1 + _i_threshold_[18] = __VERIFIER_nondet_ushort(); +#line 1 + _threshold_[18] = _i_threshold_[18]; +#line 1 + _i_threshold_[19] = __VERIFIER_nondet_ushort(); +#line 1 + _threshold_[19] = _i_threshold_[19]; +#line 1 + _i_threshold_[20] = __VERIFIER_nondet_ushort(); +#line 1 + _threshold_[20] = _i_threshold_[20]; +#line 1 + _i_threshold_[21] = __VERIFIER_nondet_ushort(); +#line 1 + _threshold_[21] = _i_threshold_[21]; +#line 1 + _i_threshold_[22] = __VERIFIER_nondet_ushort(); +#line 1 + _threshold_[22] = _i_threshold_[22]; +#line 1 + _i_threshold_[23] = __VERIFIER_nondet_ushort(); +#line 1 + _threshold_[23] = _i_threshold_[23]; +#line 1 + _i_threshold_[24] = __VERIFIER_nondet_ushort(); +#line 1 + _threshold_[24] = _i_threshold_[24]; +#line 1 + _i_threshold_[25] = __VERIFIER_nondet_ushort(); +#line 1 + _threshold_[25] = _i_threshold_[25]; +#line 1 + _i_threshold_[26] = __VERIFIER_nondet_ushort(); +#line 1 + _threshold_[26] = _i_threshold_[26]; +#line 1 + _i_threshold_[27] = __VERIFIER_nondet_ushort(); +#line 1 + _threshold_[27] = _i_threshold_[27]; +#line 1 + _i_need_to_run_nxtbg_[1] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_run_nxtbg_[1] = _i_need_to_run_nxtbg_[1]; +#line 1 + _i_need_to_run_nxtbg_[2] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_run_nxtbg_[2] = _i_need_to_run_nxtbg_[2]; +#line 1 + _i_need_to_run_nxtbg_[3] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_run_nxtbg_[3] = _i_need_to_run_nxtbg_[3]; +#line 1 + _i_need_to_run_nxtbg_[4] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_run_nxtbg_[4] = _i_need_to_run_nxtbg_[4]; +#line 1 + _i_need_to_run_nxtbg_[5] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_run_nxtbg_[5] = _i_need_to_run_nxtbg_[5]; +#line 1 + _i_need_to_run_nxtbg_[6] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_run_nxtbg_[6] = _i_need_to_run_nxtbg_[6]; +#line 1 + _i_need_to_run_nxtbg_[7] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_run_nxtbg_[7] = _i_need_to_run_nxtbg_[7]; +#line 1 + _i_need_to_run_nxtbg_[8] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_run_nxtbg_[8] = _i_need_to_run_nxtbg_[8]; +#line 1 + _i_need_to_run_nxtbg_[9] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_run_nxtbg_[9] = _i_need_to_run_nxtbg_[9]; +#line 1 + _i_need_to_run_nxtbg_[10] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_run_nxtbg_[10] = _i_need_to_run_nxtbg_[10]; +#line 1 + _i_need_to_run_nxtbg_[11] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_run_nxtbg_[11] = _i_need_to_run_nxtbg_[11]; +#line 1 + _i_need_to_run_nxtbg_[12] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_run_nxtbg_[12] = _i_need_to_run_nxtbg_[12]; +#line 1 + _i_need_to_run_nxtbg_[13] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_run_nxtbg_[13] = _i_need_to_run_nxtbg_[13]; +#line 1 + _i_need_to_run_nxtbg_[14] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_run_nxtbg_[14] = _i_need_to_run_nxtbg_[14]; +#line 1 + _i_need_to_run_nxtbg_[15] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_run_nxtbg_[15] = _i_need_to_run_nxtbg_[15]; +#line 1 + _i_need_to_run_nxtbg_[16] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_run_nxtbg_[16] = _i_need_to_run_nxtbg_[16]; +#line 1 + _i_need_to_run_nxtbg_[17] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_run_nxtbg_[17] = _i_need_to_run_nxtbg_[17]; +#line 1 + _i_need_to_run_nxtbg_[18] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_run_nxtbg_[18] = _i_need_to_run_nxtbg_[18]; +#line 1 + _i_need_to_run_nxtbg_[19] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_run_nxtbg_[19] = _i_need_to_run_nxtbg_[19]; +#line 1 + _i_need_to_run_nxtbg_[20] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_run_nxtbg_[20] = _i_need_to_run_nxtbg_[20]; +#line 1 + _i_need_to_run_nxtbg_[21] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_run_nxtbg_[21] = _i_need_to_run_nxtbg_[21]; +#line 1 + _i_need_to_run_nxtbg_[22] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_run_nxtbg_[22] = _i_need_to_run_nxtbg_[22]; +#line 1 + _i_need_to_run_nxtbg_[23] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_run_nxtbg_[23] = _i_need_to_run_nxtbg_[23]; +#line 1 + _i_need_to_run_nxtbg_[24] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_run_nxtbg_[24] = _i_need_to_run_nxtbg_[24]; +#line 1 + _i_need_to_run_nxtbg_[25] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_run_nxtbg_[25] = _i_need_to_run_nxtbg_[25]; +#line 1 + _i_need_to_run_nxtbg_[26] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_run_nxtbg_[26] = _i_need_to_run_nxtbg_[26]; +#line 1 + _i_need_to_run_nxtbg_[27] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_run_nxtbg_[27] = _i_need_to_run_nxtbg_[27]; +#line 1 + _i_need_to_read_[1] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_read_[1] = _i_need_to_read_[1]; +#line 1 + _i_need_to_read_[2] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_read_[2] = _i_need_to_read_[2]; +#line 1 + _i_need_to_read_[3] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_read_[3] = _i_need_to_read_[3]; +#line 1 + _i_need_to_read_[4] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_read_[4] = _i_need_to_read_[4]; +#line 1 + _i_need_to_read_[5] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_read_[5] = _i_need_to_read_[5]; +#line 1 + _i_need_to_read_[6] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_read_[6] = _i_need_to_read_[6]; +#line 1 + _i_need_to_read_[7] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_read_[7] = _i_need_to_read_[7]; +#line 1 + _i_need_to_read_[8] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_read_[8] = _i_need_to_read_[8]; +#line 1 + _i_need_to_read_[9] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_read_[9] = _i_need_to_read_[9]; +#line 1 + _i_need_to_read_[10] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_read_[10] = _i_need_to_read_[10]; +#line 1 + _i_need_to_read_[11] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_read_[11] = _i_need_to_read_[11]; +#line 1 + _i_need_to_read_[12] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_read_[12] = _i_need_to_read_[12]; +#line 1 + _i_need_to_read_[13] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_read_[13] = _i_need_to_read_[13]; +#line 1 + _i_need_to_read_[14] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_read_[14] = _i_need_to_read_[14]; +#line 1 + _i_need_to_read_[15] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_read_[15] = _i_need_to_read_[15]; +#line 1 + _i_need_to_read_[16] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_read_[16] = _i_need_to_read_[16]; +#line 1 + _i_need_to_read_[17] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_read_[17] = _i_need_to_read_[17]; +#line 1 + _i_need_to_read_[18] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_read_[18] = _i_need_to_read_[18]; +#line 1 + _i_need_to_read_[19] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_read_[19] = _i_need_to_read_[19]; +#line 1 + _i_need_to_read_[20] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_read_[20] = _i_need_to_read_[20]; +#line 1 + _i_need_to_read_[21] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_read_[21] = _i_need_to_read_[21]; +#line 1 + _i_need_to_read_[22] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_read_[22] = _i_need_to_read_[22]; +#line 1 + _i_need_to_read_[23] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_read_[23] = _i_need_to_read_[23]; +#line 1 + _i_need_to_read_[24] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_read_[24] = _i_need_to_read_[24]; +#line 1 + _i_need_to_read_[25] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_read_[25] = _i_need_to_read_[25]; +#line 1 + _i_need_to_read_[26] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_read_[26] = _i_need_to_read_[26]; +#line 1 + _i_need_to_read_[27] = __VERIFIER_nondet__Bool(); +#line 1 + _need_to_read_[27] = _i_need_to_read_[27]; +#line 1 + _i_dir_[1] = __VERIFIER_nondet__Bool(); +#line 1 + _dir_[1] = _i_dir_[1]; +#line 1 + _i_dir_[2] = __VERIFIER_nondet__Bool(); +#line 1 + _dir_[2] = _i_dir_[2]; +#line 1 + _i_dir_[3] = __VERIFIER_nondet__Bool(); +#line 1 + _dir_[3] = _i_dir_[3]; +#line 1 + _i_dir_[4] = __VERIFIER_nondet__Bool(); +#line 1 + _dir_[4] = _i_dir_[4]; +#line 1 + _i_dir_[5] = __VERIFIER_nondet__Bool(); +#line 1 + _dir_[5] = _i_dir_[5]; +#line 1 + _i_dir_[6] = __VERIFIER_nondet__Bool(); +#line 1 + _dir_[6] = _i_dir_[6]; +#line 1 + _i_dir_[7] = __VERIFIER_nondet__Bool(); +#line 1 + _dir_[7] = _i_dir_[7]; +#line 1 + _i_dir_[8] = __VERIFIER_nondet__Bool(); +#line 1 + _dir_[8] = _i_dir_[8]; +#line 1 + _i_dir_[9] = __VERIFIER_nondet__Bool(); +#line 1 + _dir_[9] = _i_dir_[9]; +#line 1 + _i_dir_[10] = __VERIFIER_nondet__Bool(); +#line 1 + _dir_[10] = _i_dir_[10]; +#line 1 + _i_dir_[11] = __VERIFIER_nondet__Bool(); +#line 1 + _dir_[11] = _i_dir_[11]; +#line 1 + _i_dir_[12] = __VERIFIER_nondet__Bool(); +#line 1 + _dir_[12] = _i_dir_[12]; +#line 1 + _i_dir_[13] = __VERIFIER_nondet__Bool(); +#line 1 + _dir_[13] = _i_dir_[13]; +#line 1 + _i_dir_[14] = __VERIFIER_nondet__Bool(); +#line 1 + _dir_[14] = _i_dir_[14]; +#line 1 + _i_dir_[15] = __VERIFIER_nondet__Bool(); +#line 1 + _dir_[15] = _i_dir_[15]; +#line 1 + _i_dir_[16] = __VERIFIER_nondet__Bool(); +#line 1 + _dir_[16] = _i_dir_[16]; +#line 1 + _i_dir_[17] = __VERIFIER_nondet__Bool(); +#line 1 + _dir_[17] = _i_dir_[17]; +#line 1 + _i_dir_[18] = __VERIFIER_nondet__Bool(); +#line 1 + _dir_[18] = _i_dir_[18]; +#line 1 + _i_dir_[19] = __VERIFIER_nondet__Bool(); +#line 1 + _dir_[19] = _i_dir_[19]; +#line 1 + _i_dir_[20] = __VERIFIER_nondet__Bool(); +#line 1 + _dir_[20] = _i_dir_[20]; +#line 1 + _i_dir_[21] = __VERIFIER_nondet__Bool(); +#line 1 + _dir_[21] = _i_dir_[21]; +#line 1 + _i_dir_[22] = __VERIFIER_nondet__Bool(); +#line 1 + _dir_[22] = _i_dir_[22]; +#line 1 + _i_dir_[23] = __VERIFIER_nondet__Bool(); +#line 1 + _dir_[23] = _i_dir_[23]; +#line 1 + _i_dir_[24] = __VERIFIER_nondet__Bool(); +#line 1 + _dir_[24] = _i_dir_[24]; +#line 1 + _i_dir_[25] = __VERIFIER_nondet__Bool(); +#line 1 + _dir_[25] = _i_dir_[25]; +#line 1 + _i_dir_[26] = __VERIFIER_nondet__Bool(); +#line 1 + _dir_[26] = _i_dir_[26]; +#line 1 + _i_dir_[27] = __VERIFIER_nondet__Bool(); +#line 1 + _dir_[27] = _i_dir_[27]; +#line 1 + _i_output_[1] = __VERIFIER_nondet__Bool(); +#line 1 + _output_[1] = _i_output_[1]; +#line 1 + _i_output_[2] = __VERIFIER_nondet__Bool(); +#line 1 + _output_[2] = _i_output_[2]; +#line 1 + _i_output_[3] = __VERIFIER_nondet__Bool(); +#line 1 + _output_[3] = _i_output_[3]; +#line 1 + _i_output_[4] = __VERIFIER_nondet__Bool(); +#line 1 + _output_[4] = _i_output_[4]; +#line 1 + _i_output_[5] = __VERIFIER_nondet__Bool(); +#line 1 + _output_[5] = _i_output_[5]; +#line 1 + _i_output_[6] = __VERIFIER_nondet__Bool(); +#line 1 + _output_[6] = _i_output_[6]; +#line 1 + _i_output_[7] = __VERIFIER_nondet__Bool(); +#line 1 + _output_[7] = _i_output_[7]; +#line 1 + _i_output_[8] = __VERIFIER_nondet__Bool(); +#line 1 + _output_[8] = _i_output_[8]; +#line 1 + _i_output_[9] = __VERIFIER_nondet__Bool(); +#line 1 + _output_[9] = _i_output_[9]; +#line 1 + _i_output_[10] = __VERIFIER_nondet__Bool(); +#line 1 + _output_[10] = _i_output_[10]; +#line 1 + _i_output_[11] = __VERIFIER_nondet__Bool(); +#line 1 + _output_[11] = _i_output_[11]; +#line 1 + _i_output_[12] = __VERIFIER_nondet__Bool(); +#line 1 + _output_[12] = _i_output_[12]; +#line 1 + _i_output_[13] = __VERIFIER_nondet__Bool(); +#line 1 + _output_[13] = _i_output_[13]; +#line 1 + _i_output_[14] = __VERIFIER_nondet__Bool(); +#line 1 + _output_[14] = _i_output_[14]; +#line 1 + _i_output_[15] = __VERIFIER_nondet__Bool(); +#line 1 + _output_[15] = _i_output_[15]; +#line 1 + _i_output_[16] = __VERIFIER_nondet__Bool(); +#line 1 + _output_[16] = _i_output_[16]; +#line 1 + _i_output_[17] = __VERIFIER_nondet__Bool(); +#line 1 + _output_[17] = _i_output_[17]; +#line 1 + _i_output_[18] = __VERIFIER_nondet__Bool(); +#line 1 + _output_[18] = _i_output_[18]; +#line 1 + _i_output_[19] = __VERIFIER_nondet__Bool(); +#line 1 + _output_[19] = _i_output_[19]; +#line 1 + _i_output_[20] = __VERIFIER_nondet__Bool(); +#line 1 + _output_[20] = _i_output_[20]; +#line 1 + _i_output_[21] = __VERIFIER_nondet__Bool(); +#line 1 + _output_[21] = _i_output_[21]; +#line 1 + _i_output_[22] = __VERIFIER_nondet__Bool(); +#line 1 + _output_[22] = _i_output_[22]; +#line 1 + _i_output_[23] = __VERIFIER_nondet__Bool(); +#line 1 + _output_[23] = _i_output_[23]; +#line 1 + _i_output_[24] = __VERIFIER_nondet__Bool(); +#line 1 + _output_[24] = _i_output_[24]; +#line 1 + _i_output_[25] = __VERIFIER_nondet__Bool(); +#line 1 + _output_[25] = _i_output_[25]; +#line 1 + _i_output_[26] = __VERIFIER_nondet__Bool(); +#line 1 + _output_[26] = _i_output_[26]; +#line 1 + _i_output_[27] = __VERIFIER_nondet__Bool(); +#line 1 + _output_[27] = _i_output_[27]; +#line 1 + _i_input_[1] = __VERIFIER_nondet__Bool(); +#line 1 + _input_[1] = _i_input_[1]; +#line 1 + _i_input_[2] = __VERIFIER_nondet__Bool(); +#line 1 + _input_[2] = _i_input_[2]; +#line 1 + _i_input_[3] = __VERIFIER_nondet__Bool(); +#line 1 + _input_[3] = _i_input_[3]; +#line 1 + _i_input_[4] = __VERIFIER_nondet__Bool(); +#line 1 + _input_[4] = _i_input_[4]; +#line 1 + _i_input_[5] = __VERIFIER_nondet__Bool(); +#line 1 + _input_[5] = _i_input_[5]; +#line 1 + _i_input_[6] = __VERIFIER_nondet__Bool(); +#line 1 + _input_[6] = _i_input_[6]; +#line 1 + _i_input_[7] = __VERIFIER_nondet__Bool(); +#line 1 + _input_[7] = _i_input_[7]; +#line 1 + _i_input_[8] = __VERIFIER_nondet__Bool(); +#line 1 + _input_[8] = _i_input_[8]; +#line 1 + _i_input_[9] = __VERIFIER_nondet__Bool(); +#line 1 + _input_[9] = _i_input_[9]; +#line 1 + _i_input_[10] = __VERIFIER_nondet__Bool(); +#line 1 + _input_[10] = _i_input_[10]; +#line 1 + _i_input_[11] = __VERIFIER_nondet__Bool(); +#line 1 + _input_[11] = _i_input_[11]; +#line 1 + _i_input_[12] = __VERIFIER_nondet__Bool(); +#line 1 + _input_[12] = _i_input_[12]; +#line 1 + _i_input_[13] = __VERIFIER_nondet__Bool(); +#line 1 + _input_[13] = _i_input_[13]; +#line 1 + _i_input_[14] = __VERIFIER_nondet__Bool(); +#line 1 + _input_[14] = _i_input_[14]; +#line 1 + _i_input_[15] = __VERIFIER_nondet__Bool(); +#line 1 + _input_[15] = _i_input_[15]; +#line 1 + _i_input_[16] = __VERIFIER_nondet__Bool(); +#line 1 + _input_[16] = _i_input_[16]; +#line 1 + _i_input_[17] = __VERIFIER_nondet__Bool(); +#line 1 + _input_[17] = _i_input_[17]; +#line 1 + _i_input_[18] = __VERIFIER_nondet__Bool(); +#line 1 + _input_[18] = _i_input_[18]; +#line 1 + _i_input_[19] = __VERIFIER_nondet__Bool(); +#line 1 + _input_[19] = _i_input_[19]; +#line 1 + _i_input_[20] = __VERIFIER_nondet__Bool(); +#line 1 + _input_[20] = _i_input_[20]; +#line 1 + _i_input_[21] = __VERIFIER_nondet__Bool(); +#line 1 + _input_[21] = _i_input_[21]; +#line 1 + _i_input_[22] = __VERIFIER_nondet__Bool(); +#line 1 + _input_[22] = _i_input_[22]; +#line 1 + _i_input_[23] = __VERIFIER_nondet__Bool(); +#line 1 + _input_[23] = _i_input_[23]; +#line 1 + _i_input_[24] = __VERIFIER_nondet__Bool(); +#line 1 + _input_[24] = _i_input_[24]; +#line 1 + _i_input_[25] = __VERIFIER_nondet__Bool(); +#line 1 + _input_[25] = _i_input_[25]; +#line 1 + _i_input_[26] = __VERIFIER_nondet__Bool(); +#line 1 + _input_[26] = _i_input_[26]; +#line 1 + _i_input_[27] = __VERIFIER_nondet__Bool(); +#line 1 + _input_[27] = _i_input_[27]; +#line 1 + _i_nxtcolorsensor_mode_[1] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_mode_[1] = _i_nxtcolorsensor_mode_[1]; +#line 1 + _i_nxtcolorsensor_mode_[2] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_mode_[2] = _i_nxtcolorsensor_mode_[2]; +#line 1 + _i_nxtcolorsensor_mode_[3] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_mode_[3] = _i_nxtcolorsensor_mode_[3]; +#line 1 + _i_nxtcolorsensor_mode_[4] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_mode_[4] = _i_nxtcolorsensor_mode_[4]; +#line 1 + _i_nxtcolorsensor_mode_[5] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_mode_[5] = _i_nxtcolorsensor_mode_[5]; +#line 1 + _i_nxtcolorsensor_mode_[6] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_mode_[6] = _i_nxtcolorsensor_mode_[6]; +#line 1 + _i_nxtcolorsensor_mode_[7] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_mode_[7] = _i_nxtcolorsensor_mode_[7]; +#line 1 + _i_nxtcolorsensor_mode_[8] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_mode_[8] = _i_nxtcolorsensor_mode_[8]; +#line 1 + _i_nxtcolorsensor_mode_[9] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_mode_[9] = _i_nxtcolorsensor_mode_[9]; +#line 1 + _i_nxtcolorsensor_mode_[10] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_mode_[10] = _i_nxtcolorsensor_mode_[10]; +#line 1 + _i_nxtcolorsensor_mode_[11] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_mode_[11] = _i_nxtcolorsensor_mode_[11]; +#line 1 + _i_nxtcolorsensor_mode_[12] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_mode_[12] = _i_nxtcolorsensor_mode_[12]; +#line 1 + _i_nxtcolorsensor_mode_[13] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_mode_[13] = _i_nxtcolorsensor_mode_[13]; +#line 1 + _i_nxtcolorsensor_mode_[14] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_mode_[14] = _i_nxtcolorsensor_mode_[14]; +#line 1 + _i_nxtcolorsensor_mode_[15] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_mode_[15] = _i_nxtcolorsensor_mode_[15]; +#line 1 + _i_nxtcolorsensor_mode_[16] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_mode_[16] = _i_nxtcolorsensor_mode_[16]; +#line 1 + _i_nxtcolorsensor_mode_[17] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_mode_[17] = _i_nxtcolorsensor_mode_[17]; +#line 1 + _i_nxtcolorsensor_mode_[18] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_mode_[18] = _i_nxtcolorsensor_mode_[18]; +#line 1 + _i_nxtcolorsensor_mode_[19] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_mode_[19] = _i_nxtcolorsensor_mode_[19]; +#line 1 + _i_nxtcolorsensor_mode_[20] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_mode_[20] = _i_nxtcolorsensor_mode_[20]; +#line 1 + _i_nxtcolorsensor_mode_[21] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_mode_[21] = _i_nxtcolorsensor_mode_[21]; +#line 1 + _i_nxtcolorsensor_mode_[22] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_mode_[22] = _i_nxtcolorsensor_mode_[22]; +#line 1 + _i_nxtcolorsensor_mode_[23] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_mode_[23] = _i_nxtcolorsensor_mode_[23]; +#line 1 + _i_nxtcolorsensor_mode_[24] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_mode_[24] = _i_nxtcolorsensor_mode_[24]; +#line 1 + _i_nxtcolorsensor_mode_[25] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_mode_[25] = _i_nxtcolorsensor_mode_[25]; +#line 1 + _i_nxtcolorsensor_mode_[26] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_mode_[26] = _i_nxtcolorsensor_mode_[26]; +#line 1 + _i_nxtcolorsensor_mode_[27] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_mode_[27] = _i_nxtcolorsensor_mode_[27]; +#line 1 + _i_nxtcolorsensor_data_mode_[1] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_data_mode_[1] = _i_nxtcolorsensor_data_mode_[1]; +#line 1 + _i_nxtcolorsensor_data_mode_[2] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_data_mode_[2] = _i_nxtcolorsensor_data_mode_[2]; +#line 1 + _i_nxtcolorsensor_data_mode_[3] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_data_mode_[3] = _i_nxtcolorsensor_data_mode_[3]; +#line 1 + _i_nxtcolorsensor_data_mode_[4] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_data_mode_[4] = _i_nxtcolorsensor_data_mode_[4]; +#line 1 + _i_nxtcolorsensor_data_mode_[5] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_data_mode_[5] = _i_nxtcolorsensor_data_mode_[5]; +#line 1 + _i_nxtcolorsensor_data_mode_[6] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_data_mode_[6] = _i_nxtcolorsensor_data_mode_[6]; +#line 1 + _i_nxtcolorsensor_data_mode_[7] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_data_mode_[7] = _i_nxtcolorsensor_data_mode_[7]; +#line 1 + _i_nxtcolorsensor_data_mode_[8] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_data_mode_[8] = _i_nxtcolorsensor_data_mode_[8]; +#line 1 + _i_nxtcolorsensor_data_mode_[9] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_data_mode_[9] = _i_nxtcolorsensor_data_mode_[9]; +#line 1 + _i_nxtcolorsensor_data_mode_[10] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_data_mode_[10] = _i_nxtcolorsensor_data_mode_[10]; +#line 1 + _i_nxtcolorsensor_data_mode_[11] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_data_mode_[11] = _i_nxtcolorsensor_data_mode_[11]; +#line 1 + _i_nxtcolorsensor_data_mode_[12] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_data_mode_[12] = _i_nxtcolorsensor_data_mode_[12]; +#line 1 + _i_nxtcolorsensor_data_mode_[13] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_data_mode_[13] = _i_nxtcolorsensor_data_mode_[13]; +#line 1 + _i_nxtcolorsensor_data_mode_[14] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_data_mode_[14] = _i_nxtcolorsensor_data_mode_[14]; +#line 1 + _i_nxtcolorsensor_data_mode_[15] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_data_mode_[15] = _i_nxtcolorsensor_data_mode_[15]; +#line 1 + _i_nxtcolorsensor_data_mode_[16] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_data_mode_[16] = _i_nxtcolorsensor_data_mode_[16]; +#line 1 + _i_nxtcolorsensor_data_mode_[17] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_data_mode_[17] = _i_nxtcolorsensor_data_mode_[17]; +#line 1 + _i_nxtcolorsensor_data_mode_[18] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_data_mode_[18] = _i_nxtcolorsensor_data_mode_[18]; +#line 1 + _i_nxtcolorsensor_data_mode_[19] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_data_mode_[19] = _i_nxtcolorsensor_data_mode_[19]; +#line 1 + _i_nxtcolorsensor_data_mode_[20] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_data_mode_[20] = _i_nxtcolorsensor_data_mode_[20]; +#line 1 + _i_nxtcolorsensor_data_mode_[21] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_data_mode_[21] = _i_nxtcolorsensor_data_mode_[21]; +#line 1 + _i_nxtcolorsensor_data_mode_[22] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_data_mode_[22] = _i_nxtcolorsensor_data_mode_[22]; +#line 1 + _i_nxtcolorsensor_data_mode_[23] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_data_mode_[23] = _i_nxtcolorsensor_data_mode_[23]; +#line 1 + _i_nxtcolorsensor_data_mode_[24] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_data_mode_[24] = _i_nxtcolorsensor_data_mode_[24]; +#line 1 + _i_nxtcolorsensor_data_mode_[25] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_data_mode_[25] = _i_nxtcolorsensor_data_mode_[25]; +#line 1 + _i_nxtcolorsensor_data_mode_[26] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_data_mode_[26] = _i_nxtcolorsensor_data_mode_[26]; +#line 1 + _i_nxtcolorsensor_data_mode_[27] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtcolorsensor_data_mode_[27] = _i_nxtcolorsensor_data_mode_[27]; +#line 1 + _i_T_speed_[1] = __VERIFIER_nondet_char(); +#line 1 + _T_speed_[1] = _i_T_speed_[1]; +#line 1 + _i_T_speed_[2] = __VERIFIER_nondet_char(); +#line 1 + _T_speed_[2] = _i_T_speed_[2]; +#line 1 + _i_T_speed_[3] = __VERIFIER_nondet_char(); +#line 1 + _T_speed_[3] = _i_T_speed_[3]; +#line 1 + _i_T_speed_[4] = __VERIFIER_nondet_char(); +#line 1 + _T_speed_[4] = _i_T_speed_[4]; +#line 1 + _i_T_speed_[5] = __VERIFIER_nondet_char(); +#line 1 + _T_speed_[5] = _i_T_speed_[5]; +#line 1 + _i_T_speed_[6] = __VERIFIER_nondet_char(); +#line 1 + _T_speed_[6] = _i_T_speed_[6]; +#line 1 + _i_T_speed_[7] = __VERIFIER_nondet_char(); +#line 1 + _T_speed_[7] = _i_T_speed_[7]; +#line 1 + _i_T_speed_[8] = __VERIFIER_nondet_char(); +#line 1 + _T_speed_[8] = _i_T_speed_[8]; +#line 1 + _i_T_speed_[9] = __VERIFIER_nondet_char(); +#line 1 + _T_speed_[9] = _i_T_speed_[9]; +#line 1 + _i_T_speed_[10] = __VERIFIER_nondet_char(); +#line 1 + _T_speed_[10] = _i_T_speed_[10]; +#line 1 + _i_T_speed_[11] = __VERIFIER_nondet_char(); +#line 1 + _T_speed_[11] = _i_T_speed_[11]; +#line 1 + _i_T_speed_[12] = __VERIFIER_nondet_char(); +#line 1 + _T_speed_[12] = _i_T_speed_[12]; +#line 1 + _i_T_speed_[13] = __VERIFIER_nondet_char(); +#line 1 + _T_speed_[13] = _i_T_speed_[13]; +#line 1 + _i_T_speed_[14] = __VERIFIER_nondet_char(); +#line 1 + _T_speed_[14] = _i_T_speed_[14]; +#line 1 + _i_T_speed_[15] = __VERIFIER_nondet_char(); +#line 1 + _T_speed_[15] = _i_T_speed_[15]; +#line 1 + _i_T_speed_[16] = __VERIFIER_nondet_char(); +#line 1 + _T_speed_[16] = _i_T_speed_[16]; +#line 1 + _i_T_speed_[17] = __VERIFIER_nondet_char(); +#line 1 + _T_speed_[17] = _i_T_speed_[17]; +#line 1 + _i_T_speed_[18] = __VERIFIER_nondet_char(); +#line 1 + _T_speed_[18] = _i_T_speed_[18]; +#line 1 + _i_T_speed_[19] = __VERIFIER_nondet_char(); +#line 1 + _T_speed_[19] = _i_T_speed_[19]; +#line 1 + _i_T_speed_[20] = __VERIFIER_nondet_char(); +#line 1 + _T_speed_[20] = _i_T_speed_[20]; +#line 1 + _i_T_speed_[21] = __VERIFIER_nondet_char(); +#line 1 + _T_speed_[21] = _i_T_speed_[21]; +#line 1 + _i_T_speed_[22] = __VERIFIER_nondet_char(); +#line 1 + _T_speed_[22] = _i_T_speed_[22]; +#line 1 + _i_T_speed_[23] = __VERIFIER_nondet_char(); +#line 1 + _T_speed_[23] = _i_T_speed_[23]; +#line 1 + _i_T_speed_[24] = __VERIFIER_nondet_char(); +#line 1 + _T_speed_[24] = _i_T_speed_[24]; +#line 1 + _i_T_speed_[25] = __VERIFIER_nondet_char(); +#line 1 + _T_speed_[25] = _i_T_speed_[25]; +#line 1 + _i_T_speed_[26] = __VERIFIER_nondet_char(); +#line 1 + _T_speed_[26] = _i_T_speed_[26]; +#line 1 + _i_T_speed_[27] = __VERIFIER_nondet_char(); +#line 1 + _T_speed_[27] = _i_T_speed_[27]; +#line 1 + _i_T_count_[1] = __VERIFIER_nondet_int(); +#line 1 + _T_count_[1] = _i_T_count_[1]; +#line 1 + _i_T_count_[2] = __VERIFIER_nondet_int(); +#line 1 + _T_count_[2] = _i_T_count_[2]; +#line 1 + _i_T_count_[3] = __VERIFIER_nondet_int(); +#line 1 + _T_count_[3] = _i_T_count_[3]; +#line 1 + _i_T_count_[4] = __VERIFIER_nondet_int(); +#line 1 + _T_count_[4] = _i_T_count_[4]; +#line 1 + _i_T_count_[5] = __VERIFIER_nondet_int(); +#line 1 + _T_count_[5] = _i_T_count_[5]; +#line 1 + _i_T_count_[6] = __VERIFIER_nondet_int(); +#line 1 + _T_count_[6] = _i_T_count_[6]; +#line 1 + _i_T_count_[7] = __VERIFIER_nondet_int(); +#line 1 + _T_count_[7] = _i_T_count_[7]; +#line 1 + _i_T_count_[8] = __VERIFIER_nondet_int(); +#line 1 + _T_count_[8] = _i_T_count_[8]; +#line 1 + _i_T_count_[9] = __VERIFIER_nondet_int(); +#line 1 + _T_count_[9] = _i_T_count_[9]; +#line 1 + _i_T_count_[10] = __VERIFIER_nondet_int(); +#line 1 + _T_count_[10] = _i_T_count_[10]; +#line 1 + _i_T_count_[11] = __VERIFIER_nondet_int(); +#line 1 + _T_count_[11] = _i_T_count_[11]; +#line 1 + _i_T_count_[12] = __VERIFIER_nondet_int(); +#line 1 + _T_count_[12] = _i_T_count_[12]; +#line 1 + _i_T_count_[13] = __VERIFIER_nondet_int(); +#line 1 + _T_count_[13] = _i_T_count_[13]; +#line 1 + _i_T_count_[14] = __VERIFIER_nondet_int(); +#line 1 + _T_count_[14] = _i_T_count_[14]; +#line 1 + _i_T_count_[15] = __VERIFIER_nondet_int(); +#line 1 + _T_count_[15] = _i_T_count_[15]; +#line 1 + _i_T_count_[16] = __VERIFIER_nondet_int(); +#line 1 + _T_count_[16] = _i_T_count_[16]; +#line 1 + _i_T_count_[17] = __VERIFIER_nondet_int(); +#line 1 + _T_count_[17] = _i_T_count_[17]; +#line 1 + _i_T_count_[18] = __VERIFIER_nondet_int(); +#line 1 + _T_count_[18] = _i_T_count_[18]; +#line 1 + _i_T_count_[19] = __VERIFIER_nondet_int(); +#line 1 + _T_count_[19] = _i_T_count_[19]; +#line 1 + _i_T_count_[20] = __VERIFIER_nondet_int(); +#line 1 + _T_count_[20] = _i_T_count_[20]; +#line 1 + _i_T_count_[21] = __VERIFIER_nondet_int(); +#line 1 + _T_count_[21] = _i_T_count_[21]; +#line 1 + _i_T_count_[22] = __VERIFIER_nondet_int(); +#line 1 + _T_count_[22] = _i_T_count_[22]; +#line 1 + _i_T_count_[23] = __VERIFIER_nondet_int(); +#line 1 + _T_count_[23] = _i_T_count_[23]; +#line 1 + _i_T_count_[24] = __VERIFIER_nondet_int(); +#line 1 + _T_count_[24] = _i_T_count_[24]; +#line 1 + _i_T_count_[25] = __VERIFIER_nondet_int(); +#line 1 + _T_count_[25] = _i_T_count_[25]; +#line 1 + _i_T_count_[26] = __VERIFIER_nondet_int(); +#line 1 + _T_count_[26] = _i_T_count_[26]; +#line 1 + _i_T_count_[27] = __VERIFIER_nondet_int(); +#line 1 + _T_count_[27] = _i_T_count_[27]; +#line 1 + _i_W_speed_[1] = __VERIFIER_nondet_char(); +#line 1 + _W_speed_[1] = _i_W_speed_[1]; +#line 1 + _i_W_speed_[2] = __VERIFIER_nondet_char(); +#line 1 + _W_speed_[2] = _i_W_speed_[2]; +#line 1 + _i_W_speed_[3] = __VERIFIER_nondet_char(); +#line 1 + _W_speed_[3] = _i_W_speed_[3]; +#line 1 + _i_W_speed_[4] = __VERIFIER_nondet_char(); +#line 1 + _W_speed_[4] = _i_W_speed_[4]; +#line 1 + _i_W_speed_[5] = __VERIFIER_nondet_char(); +#line 1 + _W_speed_[5] = _i_W_speed_[5]; +#line 1 + _i_W_speed_[6] = __VERIFIER_nondet_char(); +#line 1 + _W_speed_[6] = _i_W_speed_[6]; +#line 1 + _i_W_speed_[7] = __VERIFIER_nondet_char(); +#line 1 + _W_speed_[7] = _i_W_speed_[7]; +#line 1 + _i_W_speed_[8] = __VERIFIER_nondet_char(); +#line 1 + _W_speed_[8] = _i_W_speed_[8]; +#line 1 + _i_W_speed_[9] = __VERIFIER_nondet_char(); +#line 1 + _W_speed_[9] = _i_W_speed_[9]; +#line 1 + _i_W_speed_[10] = __VERIFIER_nondet_char(); +#line 1 + _W_speed_[10] = _i_W_speed_[10]; +#line 1 + _i_W_speed_[11] = __VERIFIER_nondet_char(); +#line 1 + _W_speed_[11] = _i_W_speed_[11]; +#line 1 + _i_W_speed_[12] = __VERIFIER_nondet_char(); +#line 1 + _W_speed_[12] = _i_W_speed_[12]; +#line 1 + _i_W_speed_[13] = __VERIFIER_nondet_char(); +#line 1 + _W_speed_[13] = _i_W_speed_[13]; +#line 1 + _i_W_speed_[14] = __VERIFIER_nondet_char(); +#line 1 + _W_speed_[14] = _i_W_speed_[14]; +#line 1 + _i_W_speed_[15] = __VERIFIER_nondet_char(); +#line 1 + _W_speed_[15] = _i_W_speed_[15]; +#line 1 + _i_W_speed_[16] = __VERIFIER_nondet_char(); +#line 1 + _W_speed_[16] = _i_W_speed_[16]; +#line 1 + _i_W_speed_[17] = __VERIFIER_nondet_char(); +#line 1 + _W_speed_[17] = _i_W_speed_[17]; +#line 1 + _i_W_speed_[18] = __VERIFIER_nondet_char(); +#line 1 + _W_speed_[18] = _i_W_speed_[18]; +#line 1 + _i_W_speed_[19] = __VERIFIER_nondet_char(); +#line 1 + _W_speed_[19] = _i_W_speed_[19]; +#line 1 + _i_W_speed_[20] = __VERIFIER_nondet_char(); +#line 1 + _W_speed_[20] = _i_W_speed_[20]; +#line 1 + _i_W_speed_[21] = __VERIFIER_nondet_char(); +#line 1 + _W_speed_[21] = _i_W_speed_[21]; +#line 1 + _i_W_speed_[22] = __VERIFIER_nondet_char(); +#line 1 + _W_speed_[22] = _i_W_speed_[22]; +#line 1 + _i_W_speed_[23] = __VERIFIER_nondet_char(); +#line 1 + _W_speed_[23] = _i_W_speed_[23]; +#line 1 + _i_W_speed_[24] = __VERIFIER_nondet_char(); +#line 1 + _W_speed_[24] = _i_W_speed_[24]; +#line 1 + _i_W_speed_[25] = __VERIFIER_nondet_char(); +#line 1 + _W_speed_[25] = _i_W_speed_[25]; +#line 1 + _i_W_speed_[26] = __VERIFIER_nondet_char(); +#line 1 + _W_speed_[26] = _i_W_speed_[26]; +#line 1 + _i_W_speed_[27] = __VERIFIER_nondet_char(); +#line 1 + _W_speed_[27] = _i_W_speed_[27]; +#line 1 + _i_W_count_[1] = __VERIFIER_nondet_int(); +#line 1 + _W_count_[1] = _i_W_count_[1]; +#line 1 + _i_W_count_[2] = __VERIFIER_nondet_int(); +#line 1 + _W_count_[2] = _i_W_count_[2]; +#line 1 + _i_W_count_[3] = __VERIFIER_nondet_int(); +#line 1 + _W_count_[3] = _i_W_count_[3]; +#line 1 + _i_W_count_[4] = __VERIFIER_nondet_int(); +#line 1 + _W_count_[4] = _i_W_count_[4]; +#line 1 + _i_W_count_[5] = __VERIFIER_nondet_int(); +#line 1 + _W_count_[5] = _i_W_count_[5]; +#line 1 + _i_W_count_[6] = __VERIFIER_nondet_int(); +#line 1 + _W_count_[6] = _i_W_count_[6]; +#line 1 + _i_W_count_[7] = __VERIFIER_nondet_int(); +#line 1 + _W_count_[7] = _i_W_count_[7]; +#line 1 + _i_W_count_[8] = __VERIFIER_nondet_int(); +#line 1 + _W_count_[8] = _i_W_count_[8]; +#line 1 + _i_W_count_[9] = __VERIFIER_nondet_int(); +#line 1 + _W_count_[9] = _i_W_count_[9]; +#line 1 + _i_W_count_[10] = __VERIFIER_nondet_int(); +#line 1 + _W_count_[10] = _i_W_count_[10]; +#line 1 + _i_W_count_[11] = __VERIFIER_nondet_int(); +#line 1 + _W_count_[11] = _i_W_count_[11]; +#line 1 + _i_W_count_[12] = __VERIFIER_nondet_int(); +#line 1 + _W_count_[12] = _i_W_count_[12]; +#line 1 + _i_W_count_[13] = __VERIFIER_nondet_int(); +#line 1 + _W_count_[13] = _i_W_count_[13]; +#line 1 + _i_W_count_[14] = __VERIFIER_nondet_int(); +#line 1 + _W_count_[14] = _i_W_count_[14]; +#line 1 + _i_W_count_[15] = __VERIFIER_nondet_int(); +#line 1 + _W_count_[15] = _i_W_count_[15]; +#line 1 + _i_W_count_[16] = __VERIFIER_nondet_int(); +#line 1 + _W_count_[16] = _i_W_count_[16]; +#line 1 + _i_W_count_[17] = __VERIFIER_nondet_int(); +#line 1 + _W_count_[17] = _i_W_count_[17]; +#line 1 + _i_W_count_[18] = __VERIFIER_nondet_int(); +#line 1 + _W_count_[18] = _i_W_count_[18]; +#line 1 + _i_W_count_[19] = __VERIFIER_nondet_int(); +#line 1 + _W_count_[19] = _i_W_count_[19]; +#line 1 + _i_W_count_[20] = __VERIFIER_nondet_int(); +#line 1 + _W_count_[20] = _i_W_count_[20]; +#line 1 + _i_W_count_[21] = __VERIFIER_nondet_int(); +#line 1 + _W_count_[21] = _i_W_count_[21]; +#line 1 + _i_W_count_[22] = __VERIFIER_nondet_int(); +#line 1 + _W_count_[22] = _i_W_count_[22]; +#line 1 + _i_W_count_[23] = __VERIFIER_nondet_int(); +#line 1 + _W_count_[23] = _i_W_count_[23]; +#line 1 + _i_W_count_[24] = __VERIFIER_nondet_int(); +#line 1 + _W_count_[24] = _i_W_count_[24]; +#line 1 + _i_W_count_[25] = __VERIFIER_nondet_int(); +#line 1 + _W_count_[25] = _i_W_count_[25]; +#line 1 + _i_W_count_[26] = __VERIFIER_nondet_int(); +#line 1 + _W_count_[26] = _i_W_count_[26]; +#line 1 + _i_W_count_[27] = __VERIFIER_nondet_int(); +#line 1 + _W_count_[27] = _i_W_count_[27]; +#line 1 + _i_R_speed_[1] = __VERIFIER_nondet_char(); +#line 1 + _R_speed_[1] = _i_R_speed_[1]; +#line 1 + _i_R_speed_[2] = __VERIFIER_nondet_char(); +#line 1 + _R_speed_[2] = _i_R_speed_[2]; +#line 1 + _i_R_speed_[3] = __VERIFIER_nondet_char(); +#line 1 + _R_speed_[3] = _i_R_speed_[3]; +#line 1 + _i_R_speed_[4] = __VERIFIER_nondet_char(); +#line 1 + _R_speed_[4] = _i_R_speed_[4]; +#line 1 + _i_R_speed_[5] = __VERIFIER_nondet_char(); +#line 1 + _R_speed_[5] = _i_R_speed_[5]; +#line 1 + _i_R_speed_[6] = __VERIFIER_nondet_char(); +#line 1 + _R_speed_[6] = _i_R_speed_[6]; +#line 1 + _i_R_speed_[7] = __VERIFIER_nondet_char(); +#line 1 + _R_speed_[7] = _i_R_speed_[7]; +#line 1 + _i_R_speed_[8] = __VERIFIER_nondet_char(); +#line 1 + _R_speed_[8] = _i_R_speed_[8]; +#line 1 + _i_R_speed_[9] = __VERIFIER_nondet_char(); +#line 1 + _R_speed_[9] = _i_R_speed_[9]; +#line 1 + _i_R_speed_[10] = __VERIFIER_nondet_char(); +#line 1 + _R_speed_[10] = _i_R_speed_[10]; +#line 1 + _i_R_speed_[11] = __VERIFIER_nondet_char(); +#line 1 + _R_speed_[11] = _i_R_speed_[11]; +#line 1 + _i_R_speed_[12] = __VERIFIER_nondet_char(); +#line 1 + _R_speed_[12] = _i_R_speed_[12]; +#line 1 + _i_R_speed_[13] = __VERIFIER_nondet_char(); +#line 1 + _R_speed_[13] = _i_R_speed_[13]; +#line 1 + _i_R_speed_[14] = __VERIFIER_nondet_char(); +#line 1 + _R_speed_[14] = _i_R_speed_[14]; +#line 1 + _i_R_speed_[15] = __VERIFIER_nondet_char(); +#line 1 + _R_speed_[15] = _i_R_speed_[15]; +#line 1 + _i_R_speed_[16] = __VERIFIER_nondet_char(); +#line 1 + _R_speed_[16] = _i_R_speed_[16]; +#line 1 + _i_R_speed_[17] = __VERIFIER_nondet_char(); +#line 1 + _R_speed_[17] = _i_R_speed_[17]; +#line 1 + _i_R_speed_[18] = __VERIFIER_nondet_char(); +#line 1 + _R_speed_[18] = _i_R_speed_[18]; +#line 1 + _i_R_speed_[19] = __VERIFIER_nondet_char(); +#line 1 + _R_speed_[19] = _i_R_speed_[19]; +#line 1 + _i_R_speed_[20] = __VERIFIER_nondet_char(); +#line 1 + _R_speed_[20] = _i_R_speed_[20]; +#line 1 + _i_R_speed_[21] = __VERIFIER_nondet_char(); +#line 1 + _R_speed_[21] = _i_R_speed_[21]; +#line 1 + _i_R_speed_[22] = __VERIFIER_nondet_char(); +#line 1 + _R_speed_[22] = _i_R_speed_[22]; +#line 1 + _i_R_speed_[23] = __VERIFIER_nondet_char(); +#line 1 + _R_speed_[23] = _i_R_speed_[23]; +#line 1 + _i_R_speed_[24] = __VERIFIER_nondet_char(); +#line 1 + _R_speed_[24] = _i_R_speed_[24]; +#line 1 + _i_R_speed_[25] = __VERIFIER_nondet_char(); +#line 1 + _R_speed_[25] = _i_R_speed_[25]; +#line 1 + _i_R_speed_[26] = __VERIFIER_nondet_char(); +#line 1 + _R_speed_[26] = _i_R_speed_[26]; +#line 1 + _i_R_speed_[27] = __VERIFIER_nondet_char(); +#line 1 + _R_speed_[27] = _i_R_speed_[27]; +#line 1 + _i_R_count_[1] = __VERIFIER_nondet_int(); +#line 1 + _R_count_[1] = _i_R_count_[1]; +#line 1 + _i_R_count_[2] = __VERIFIER_nondet_int(); +#line 1 + _R_count_[2] = _i_R_count_[2]; +#line 1 + _i_R_count_[3] = __VERIFIER_nondet_int(); +#line 1 + _R_count_[3] = _i_R_count_[3]; +#line 1 + _i_R_count_[4] = __VERIFIER_nondet_int(); +#line 1 + _R_count_[4] = _i_R_count_[4]; +#line 1 + _i_R_count_[5] = __VERIFIER_nondet_int(); +#line 1 + _R_count_[5] = _i_R_count_[5]; +#line 1 + _i_R_count_[6] = __VERIFIER_nondet_int(); +#line 1 + _R_count_[6] = _i_R_count_[6]; +#line 1 + _i_R_count_[7] = __VERIFIER_nondet_int(); +#line 1 + _R_count_[7] = _i_R_count_[7]; +#line 1 + _i_R_count_[8] = __VERIFIER_nondet_int(); +#line 1 + _R_count_[8] = _i_R_count_[8]; +#line 1 + _i_R_count_[9] = __VERIFIER_nondet_int(); +#line 1 + _R_count_[9] = _i_R_count_[9]; +#line 1 + _i_R_count_[10] = __VERIFIER_nondet_int(); +#line 1 + _R_count_[10] = _i_R_count_[10]; +#line 1 + _i_R_count_[11] = __VERIFIER_nondet_int(); +#line 1 + _R_count_[11] = _i_R_count_[11]; +#line 1 + _i_R_count_[12] = __VERIFIER_nondet_int(); +#line 1 + _R_count_[12] = _i_R_count_[12]; +#line 1 + _i_R_count_[13] = __VERIFIER_nondet_int(); +#line 1 + _R_count_[13] = _i_R_count_[13]; +#line 1 + _i_R_count_[14] = __VERIFIER_nondet_int(); +#line 1 + _R_count_[14] = _i_R_count_[14]; +#line 1 + _i_R_count_[15] = __VERIFIER_nondet_int(); +#line 1 + _R_count_[15] = _i_R_count_[15]; +#line 1 + _i_R_count_[16] = __VERIFIER_nondet_int(); +#line 1 + _R_count_[16] = _i_R_count_[16]; +#line 1 + _i_R_count_[17] = __VERIFIER_nondet_int(); +#line 1 + _R_count_[17] = _i_R_count_[17]; +#line 1 + _i_R_count_[18] = __VERIFIER_nondet_int(); +#line 1 + _R_count_[18] = _i_R_count_[18]; +#line 1 + _i_R_count_[19] = __VERIFIER_nondet_int(); +#line 1 + _R_count_[19] = _i_R_count_[19]; +#line 1 + _i_R_count_[20] = __VERIFIER_nondet_int(); +#line 1 + _R_count_[20] = _i_R_count_[20]; +#line 1 + _i_R_count_[21] = __VERIFIER_nondet_int(); +#line 1 + _R_count_[21] = _i_R_count_[21]; +#line 1 + _i_R_count_[22] = __VERIFIER_nondet_int(); +#line 1 + _R_count_[22] = _i_R_count_[22]; +#line 1 + _i_R_count_[23] = __VERIFIER_nondet_int(); +#line 1 + _R_count_[23] = _i_R_count_[23]; +#line 1 + _i_R_count_[24] = __VERIFIER_nondet_int(); +#line 1 + _R_count_[24] = _i_R_count_[24]; +#line 1 + _i_R_count_[25] = __VERIFIER_nondet_int(); +#line 1 + _R_count_[25] = _i_R_count_[25]; +#line 1 + _i_R_count_[26] = __VERIFIER_nondet_int(); +#line 1 + _R_count_[26] = _i_R_count_[26]; +#line 1 + _i_R_count_[27] = __VERIFIER_nondet_int(); +#line 1 + _R_count_[27] = _i_R_count_[27]; +#line 1 + _i___startrek_current_priority_[1] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_current_priority_[1] = _i___startrek_current_priority_[1]; +#line 1 + _i___startrek_current_priority_[2] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_current_priority_[2] = _i___startrek_current_priority_[2]; +#line 1 + _i___startrek_current_priority_[3] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_current_priority_[3] = _i___startrek_current_priority_[3]; +#line 1 + _i___startrek_current_priority_[4] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_current_priority_[4] = _i___startrek_current_priority_[4]; +#line 1 + _i___startrek_current_priority_[5] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_current_priority_[5] = _i___startrek_current_priority_[5]; +#line 1 + _i___startrek_current_priority_[6] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_current_priority_[6] = _i___startrek_current_priority_[6]; +#line 1 + _i___startrek_current_priority_[7] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_current_priority_[7] = _i___startrek_current_priority_[7]; +#line 1 + _i___startrek_current_priority_[8] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_current_priority_[8] = _i___startrek_current_priority_[8]; +#line 1 + _i___startrek_current_priority_[9] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_current_priority_[9] = _i___startrek_current_priority_[9]; +#line 1 + _i___startrek_current_priority_[10] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_current_priority_[10] = _i___startrek_current_priority_[10]; +#line 1 + _i___startrek_current_priority_[11] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_current_priority_[11] = _i___startrek_current_priority_[11]; +#line 1 + _i___startrek_current_priority_[12] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_current_priority_[12] = _i___startrek_current_priority_[12]; +#line 1 + _i___startrek_current_priority_[13] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_current_priority_[13] = _i___startrek_current_priority_[13]; +#line 1 + _i___startrek_current_priority_[14] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_current_priority_[14] = _i___startrek_current_priority_[14]; +#line 1 + _i___startrek_current_priority_[15] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_current_priority_[15] = _i___startrek_current_priority_[15]; +#line 1 + _i___startrek_current_priority_[16] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_current_priority_[16] = _i___startrek_current_priority_[16]; +#line 1 + _i___startrek_current_priority_[17] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_current_priority_[17] = _i___startrek_current_priority_[17]; +#line 1 + _i___startrek_current_priority_[18] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_current_priority_[18] = _i___startrek_current_priority_[18]; +#line 1 + _i___startrek_current_priority_[19] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_current_priority_[19] = _i___startrek_current_priority_[19]; +#line 1 + _i___startrek_current_priority_[20] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_current_priority_[20] = _i___startrek_current_priority_[20]; +#line 1 + _i___startrek_current_priority_[21] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_current_priority_[21] = _i___startrek_current_priority_[21]; +#line 1 + _i___startrek_current_priority_[22] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_current_priority_[22] = _i___startrek_current_priority_[22]; +#line 1 + _i___startrek_current_priority_[23] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_current_priority_[23] = _i___startrek_current_priority_[23]; +#line 1 + _i___startrek_current_priority_[24] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_current_priority_[24] = _i___startrek_current_priority_[24]; +#line 1 + _i___startrek_current_priority_[25] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_current_priority_[25] = _i___startrek_current_priority_[25]; +#line 1 + _i___startrek_current_priority_[26] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_current_priority_[26] = _i___startrek_current_priority_[26]; +#line 1 + _i___startrek_current_priority_[27] = __VERIFIER_nondet_char(); +#line 1 + ___startrek_current_priority_[27] = _i___startrek_current_priority_[27]; +} +} +#line 1 "" +__inline static _Bool __startrek_cs_t0(void) +{ + _Bool c1 ; + unsigned char o2 ; + + { +#line 1 + if (__startrek_is_first_cs) { + { +#line 1 "" + __startrek_is_first_cs = 0; + } + } +#line 1 + if (__startrek_lock) { +#line 1 + return (0); + } +#line 1 + c1 = __VERIFIER_nondet_bool(); +#line 1 + if (c1) { +#line 1 + return (0); + } +#line 1 + o2 = __startrek_round; +#line 1 + __startrek_round = __VERIFIER_nondet_uchar(); +#line 1 + __VERIFIER_assume(__startrek_round > o2); +#line 1 + __VERIFIER_assume(__startrek_round <= __startrek_job_end); +#line 1 + if (__startrek_round != __startrek_job_end) { + { +#line 1 + if (__startrek_start_t1[0] < __startrek_round) { +#line 1 + __VERIFIER_assume(__startrek_round > __startrek_end_t1[0]); + } +#line 1 + if (__startrek_start_t1[1] < __startrek_round) { +#line 1 + __VERIFIER_assume(__startrek_round > __startrek_end_t1[1]); + } +#line 1 + if (__startrek_start_t1[2] < __startrek_round) { +#line 1 + __VERIFIER_assume(__startrek_round > __startrek_end_t1[2]); + } +#line 1 + if (__startrek_start_t1[3] < __startrek_round) { +#line 1 + __VERIFIER_assume(__startrek_round > __startrek_end_t1[3]); + } +#line 1 + if (__startrek_start_t1[4] < __startrek_round) { +#line 1 + __VERIFIER_assume(__startrek_round > __startrek_end_t1[4]); + } +#line 1 + if (__startrek_start_t1[5] < __startrek_round) { +#line 1 + __VERIFIER_assume(__startrek_round > __startrek_end_t1[5]); + } +#line 1 + if (__startrek_start_t1[6] < __startrek_round) { +#line 1 + __VERIFIER_assume(__startrek_round > __startrek_end_t1[6]); + } +#line 1 + if (__startrek_start_t1[7] < __startrek_round) { +#line 1 + __VERIFIER_assume(__startrek_round > __startrek_end_t1[7]); + } +#line 1 + if (__startrek_start_t2[0] < __startrek_round) { +#line 1 + __VERIFIER_assume(__startrek_round > __startrek_end_t2[0]); + } +#line 1 + if (__startrek_start_t2[1] < __startrek_round) { +#line 1 + __VERIFIER_assume(__startrek_round > __startrek_end_t2[1]); + } +#line 1 + if (__startrek_start_t2[2] < __startrek_round) { +#line 1 + __VERIFIER_assume(__startrek_round > __startrek_end_t2[2]); + } +#line 1 + if (__startrek_start_t2[3] < __startrek_round) { +#line 1 + __VERIFIER_assume(__startrek_round > __startrek_end_t2[3]); + } +#line 1 + if (__startrek_start_t2[4] < __startrek_round) { +#line 1 + __VERIFIER_assume(__startrek_round > __startrek_end_t2[4]); + } +#line 1 + if (__startrek_start_t2[5] < __startrek_round) { +#line 1 + __VERIFIER_assume(__startrek_round > __startrek_end_t2[5]); + } +#line 1 + if (__startrek_start_t2[6] < __startrek_round) { +#line 1 + __VERIFIER_assume(__startrek_round > __startrek_end_t2[6]); + } +#line 1 + if (__startrek_start_t2[7] < __startrek_round) { +#line 1 + __VERIFIER_assume(__startrek_round > __startrek_end_t2[7]); + } + } + } +#line 1 + return (1); +} +} +#line 1 "" +__inline static _Bool __startrek_cs_t1(void) +{ + _Bool c1 ; + unsigned char o2 ; + + { +#line 1 + if (__startrek_is_first_cs) { + { +#line 1 "" + __startrek_is_first_cs = 0; + } + } +#line 1 + if (__startrek_lock) { +#line 1 + return (0); + } +#line 1 + c1 = __VERIFIER_nondet_bool(); +#line 1 + if (c1) { +#line 1 + return (0); + } +#line 1 + o2 = __startrek_round; +#line 1 + __startrek_round = __VERIFIER_nondet_uchar(); +#line 1 + __VERIFIER_assume(__startrek_round > o2); +#line 1 + __VERIFIER_assume(__startrek_round <= __startrek_job_end); +#line 1 + if (__startrek_round != __startrek_job_end) { + { +#line 1 + if (__startrek_start_t2[0] < __startrek_round) { +#line 1 + __VERIFIER_assume(__startrek_round > __startrek_end_t2[0]); + } +#line 1 + if (__startrek_start_t2[1] < __startrek_round) { +#line 1 + __VERIFIER_assume(__startrek_round > __startrek_end_t2[1]); + } +#line 1 + if (__startrek_start_t2[2] < __startrek_round) { +#line 1 + __VERIFIER_assume(__startrek_round > __startrek_end_t2[2]); + } +#line 1 + if (__startrek_start_t2[3] < __startrek_round) { +#line 1 + __VERIFIER_assume(__startrek_round > __startrek_end_t2[3]); + } +#line 1 + if (__startrek_start_t2[4] < __startrek_round) { +#line 1 + __VERIFIER_assume(__startrek_round > __startrek_end_t2[4]); + } +#line 1 + if (__startrek_start_t2[5] < __startrek_round) { +#line 1 + __VERIFIER_assume(__startrek_round > __startrek_end_t2[5]); + } +#line 1 + if (__startrek_start_t2[6] < __startrek_round) { +#line 1 + __VERIFIER_assume(__startrek_round > __startrek_end_t2[6]); + } +#line 1 + if (__startrek_start_t2[7] < __startrek_round) { +#line 1 + __VERIFIER_assume(__startrek_round > __startrek_end_t2[7]); + } + } + } +#line 1 + return (1); +} +} +#line 1 "" +__inline static _Bool __startrek_cs_t2(void) +{ + _Bool c1 ; + unsigned char o2 ; + + { +#line 1 + if (__startrek_is_first_cs) { + { +#line 1 "" + __startrek_is_first_cs = 0; + } + } +#line 1 + if (__startrek_lock) { +#line 1 + return (0); + } +#line 1 + c1 = __VERIFIER_nondet_bool(); +#line 1 + if (c1) { +#line 1 + return (0); + } +#line 1 + o2 = __startrek_round; +#line 1 + __startrek_round = __VERIFIER_nondet_uchar(); +#line 1 + __VERIFIER_assume(__startrek_round > o2); +#line 1 + __VERIFIER_assume(__startrek_round <= __startrek_job_end); +#line 1 + if (__startrek_round != __startrek_job_end) { + { + + } + } +#line 1 + return (1); +} +} +#line 1 "" +__inline static _Bool __startrek_cs_t3(void) +{ + + + { +#line 1 "" + return (0); +} +} +#line 1 "" +__inline static void __startrek_assert_i0(_Bool arg ) +{ + + + { +#line 1 + if (__startrek_hyper_period != 0) { +#line 1 "" + return; + } +#line 1 + if (arg) { +#line 1 + return; + } +#line 1 + if (__startrek_round < __startrek_error_round) { +#line 1 + __startrek_error_round = __startrek_round; + } +#line 1 + switch (__startrek_task) { + case 0: +#line 1 + __startrek_Assert_t0_i0[__startrek_job] = 0; +#line 1 "" + break; + case 1: +#line 1 "" + __startrek_Assert_t1_i0[__startrek_job] = 0; +#line 1 "" + break; + case 2: +#line 1 "" + __startrek_Assert_t2_i0[__startrek_job] = 0; +#line 1 "" + break; + case 3: +#line 1 "" + __startrek_Assert_t3_i0[__startrek_job] = 0; +#line 1 "" + break; + } +} +} +#line 1 "" +__inline void __startrek_check_assumptions(void) +{ + + + { +#line 1 "" + __VERIFIER_assume(_i___startrek_job_count_Writer_[27] == ___startrek_job_count_Writer_[26]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Writer_[26] == ___startrek_job_count_Writer_[25]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Writer_[25] == ___startrek_job_count_Writer_[24]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Writer_[24] == ___startrek_job_count_Writer_[23]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Writer_[23] == ___startrek_job_count_Writer_[22]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Writer_[22] == ___startrek_job_count_Writer_[21]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Writer_[21] == ___startrek_job_count_Writer_[20]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Writer_[20] == ___startrek_job_count_Writer_[19]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Writer_[19] == ___startrek_job_count_Writer_[18]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Writer_[18] == ___startrek_job_count_Writer_[17]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Writer_[17] == ___startrek_job_count_Writer_[16]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Writer_[16] == ___startrek_job_count_Writer_[15]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Writer_[15] == ___startrek_job_count_Writer_[14]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Writer_[14] == ___startrek_job_count_Writer_[13]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Writer_[13] == ___startrek_job_count_Writer_[12]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Writer_[12] == ___startrek_job_count_Writer_[11]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Writer_[11] == ___startrek_job_count_Writer_[10]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Writer_[10] == ___startrek_job_count_Writer_[9]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Writer_[9] == ___startrek_job_count_Writer_[8]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Writer_[8] == ___startrek_job_count_Writer_[7]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Writer_[7] == ___startrek_job_count_Writer_[6]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Writer_[6] == ___startrek_job_count_Writer_[5]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Writer_[5] == ___startrek_job_count_Writer_[4]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Writer_[4] == ___startrek_job_count_Writer_[3]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Writer_[3] == ___startrek_job_count_Writer_[2]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Writer_[2] == ___startrek_job_count_Writer_[1]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Writer_[1] == ___startrek_job_count_Writer_[0]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Reader_[27] == ___startrek_job_count_Reader_[26]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Reader_[26] == ___startrek_job_count_Reader_[25]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Reader_[25] == ___startrek_job_count_Reader_[24]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Reader_[24] == ___startrek_job_count_Reader_[23]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Reader_[23] == ___startrek_job_count_Reader_[22]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Reader_[22] == ___startrek_job_count_Reader_[21]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Reader_[21] == ___startrek_job_count_Reader_[20]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Reader_[20] == ___startrek_job_count_Reader_[19]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Reader_[19] == ___startrek_job_count_Reader_[18]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Reader_[18] == ___startrek_job_count_Reader_[17]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Reader_[17] == ___startrek_job_count_Reader_[16]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Reader_[16] == ___startrek_job_count_Reader_[15]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Reader_[15] == ___startrek_job_count_Reader_[14]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Reader_[14] == ___startrek_job_count_Reader_[13]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Reader_[13] == ___startrek_job_count_Reader_[12]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Reader_[12] == ___startrek_job_count_Reader_[11]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Reader_[11] == ___startrek_job_count_Reader_[10]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Reader_[10] == ___startrek_job_count_Reader_[9]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Reader_[9] == ___startrek_job_count_Reader_[8]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Reader_[8] == ___startrek_job_count_Reader_[7]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Reader_[7] == ___startrek_job_count_Reader_[6]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Reader_[6] == ___startrek_job_count_Reader_[5]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Reader_[5] == ___startrek_job_count_Reader_[4]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Reader_[4] == ___startrek_job_count_Reader_[3]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Reader_[3] == ___startrek_job_count_Reader_[2]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Reader_[2] == ___startrek_job_count_Reader_[1]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Reader_[1] == ___startrek_job_count_Reader_[0]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_TapeMover_[27] == ___startrek_job_count_TapeMover_[26]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_TapeMover_[26] == ___startrek_job_count_TapeMover_[25]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_TapeMover_[25] == ___startrek_job_count_TapeMover_[24]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_TapeMover_[24] == ___startrek_job_count_TapeMover_[23]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_TapeMover_[23] == ___startrek_job_count_TapeMover_[22]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_TapeMover_[22] == ___startrek_job_count_TapeMover_[21]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_TapeMover_[21] == ___startrek_job_count_TapeMover_[20]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_TapeMover_[20] == ___startrek_job_count_TapeMover_[19]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_TapeMover_[19] == ___startrek_job_count_TapeMover_[18]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_TapeMover_[18] == ___startrek_job_count_TapeMover_[17]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_TapeMover_[17] == ___startrek_job_count_TapeMover_[16]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_TapeMover_[16] == ___startrek_job_count_TapeMover_[15]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_TapeMover_[15] == ___startrek_job_count_TapeMover_[14]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_TapeMover_[14] == ___startrek_job_count_TapeMover_[13]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_TapeMover_[13] == ___startrek_job_count_TapeMover_[12]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_TapeMover_[12] == ___startrek_job_count_TapeMover_[11]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_TapeMover_[11] == ___startrek_job_count_TapeMover_[10]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_TapeMover_[10] == ___startrek_job_count_TapeMover_[9]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_TapeMover_[9] == ___startrek_job_count_TapeMover_[8]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_TapeMover_[8] == ___startrek_job_count_TapeMover_[7]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_TapeMover_[7] == ___startrek_job_count_TapeMover_[6]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_TapeMover_[6] == ___startrek_job_count_TapeMover_[5]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_TapeMover_[5] == ___startrek_job_count_TapeMover_[4]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_TapeMover_[4] == ___startrek_job_count_TapeMover_[3]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_TapeMover_[3] == ___startrek_job_count_TapeMover_[2]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_TapeMover_[2] == ___startrek_job_count_TapeMover_[1]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_TapeMover_[1] == ___startrek_job_count_TapeMover_[0]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Controller_[27] == ___startrek_job_count_Controller_[26]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Controller_[26] == ___startrek_job_count_Controller_[25]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Controller_[25] == ___startrek_job_count_Controller_[24]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Controller_[24] == ___startrek_job_count_Controller_[23]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Controller_[23] == ___startrek_job_count_Controller_[22]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Controller_[22] == ___startrek_job_count_Controller_[21]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Controller_[21] == ___startrek_job_count_Controller_[20]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Controller_[20] == ___startrek_job_count_Controller_[19]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Controller_[19] == ___startrek_job_count_Controller_[18]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Controller_[18] == ___startrek_job_count_Controller_[17]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Controller_[17] == ___startrek_job_count_Controller_[16]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Controller_[16] == ___startrek_job_count_Controller_[15]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Controller_[15] == ___startrek_job_count_Controller_[14]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Controller_[14] == ___startrek_job_count_Controller_[13]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Controller_[13] == ___startrek_job_count_Controller_[12]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Controller_[12] == ___startrek_job_count_Controller_[11]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Controller_[11] == ___startrek_job_count_Controller_[10]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Controller_[10] == ___startrek_job_count_Controller_[9]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Controller_[9] == ___startrek_job_count_Controller_[8]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Controller_[8] == ___startrek_job_count_Controller_[7]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Controller_[7] == ___startrek_job_count_Controller_[6]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Controller_[6] == ___startrek_job_count_Controller_[5]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Controller_[5] == ___startrek_job_count_Controller_[4]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Controller_[4] == ___startrek_job_count_Controller_[3]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Controller_[3] == ___startrek_job_count_Controller_[2]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Controller_[2] == ___startrek_job_count_Controller_[1]); +#line 1 + __VERIFIER_assume(_i___startrek_job_count_Controller_[1] == ___startrek_job_count_Controller_[0]); +#line 1 + __VERIFIER_assume(_i_T_state_[27] == _T_state_[26]); +#line 1 + __VERIFIER_assume(_i_T_state_[26] == _T_state_[25]); +#line 1 + __VERIFIER_assume(_i_T_state_[25] == _T_state_[24]); +#line 1 + __VERIFIER_assume(_i_T_state_[24] == _T_state_[23]); +#line 1 + __VERIFIER_assume(_i_T_state_[23] == _T_state_[22]); +#line 1 + __VERIFIER_assume(_i_T_state_[22] == _T_state_[21]); +#line 1 + __VERIFIER_assume(_i_T_state_[21] == _T_state_[20]); +#line 1 + __VERIFIER_assume(_i_T_state_[20] == _T_state_[19]); +#line 1 + __VERIFIER_assume(_i_T_state_[19] == _T_state_[18]); +#line 1 + __VERIFIER_assume(_i_T_state_[18] == _T_state_[17]); +#line 1 + __VERIFIER_assume(_i_T_state_[17] == _T_state_[16]); +#line 1 + __VERIFIER_assume(_i_T_state_[16] == _T_state_[15]); +#line 1 + __VERIFIER_assume(_i_T_state_[15] == _T_state_[14]); +#line 1 + __VERIFIER_assume(_i_T_state_[14] == _T_state_[13]); +#line 1 + __VERIFIER_assume(_i_T_state_[13] == _T_state_[12]); +#line 1 + __VERIFIER_assume(_i_T_state_[12] == _T_state_[11]); +#line 1 + __VERIFIER_assume(_i_T_state_[11] == _T_state_[10]); +#line 1 + __VERIFIER_assume(_i_T_state_[10] == _T_state_[9]); +#line 1 + __VERIFIER_assume(_i_T_state_[9] == _T_state_[8]); +#line 1 + __VERIFIER_assume(_i_T_state_[8] == _T_state_[7]); +#line 1 + __VERIFIER_assume(_i_T_state_[7] == _T_state_[6]); +#line 1 + __VERIFIER_assume(_i_T_state_[6] == _T_state_[5]); +#line 1 + __VERIFIER_assume(_i_T_state_[5] == _T_state_[4]); +#line 1 + __VERIFIER_assume(_i_T_state_[4] == _T_state_[3]); +#line 1 + __VERIFIER_assume(_i_T_state_[3] == _T_state_[2]); +#line 1 + __VERIFIER_assume(_i_T_state_[2] == _T_state_[1]); +#line 1 + __VERIFIER_assume(_i_T_state_[1] == _T_state_[0]); +#line 1 + __VERIFIER_assume(_i_W_state_[27] == _W_state_[26]); +#line 1 + __VERIFIER_assume(_i_W_state_[26] == _W_state_[25]); +#line 1 + __VERIFIER_assume(_i_W_state_[25] == _W_state_[24]); +#line 1 + __VERIFIER_assume(_i_W_state_[24] == _W_state_[23]); +#line 1 + __VERIFIER_assume(_i_W_state_[23] == _W_state_[22]); +#line 1 + __VERIFIER_assume(_i_W_state_[22] == _W_state_[21]); +#line 1 + __VERIFIER_assume(_i_W_state_[21] == _W_state_[20]); +#line 1 + __VERIFIER_assume(_i_W_state_[20] == _W_state_[19]); +#line 1 + __VERIFIER_assume(_i_W_state_[19] == _W_state_[18]); +#line 1 + __VERIFIER_assume(_i_W_state_[18] == _W_state_[17]); +#line 1 + __VERIFIER_assume(_i_W_state_[17] == _W_state_[16]); +#line 1 + __VERIFIER_assume(_i_W_state_[16] == _W_state_[15]); +#line 1 + __VERIFIER_assume(_i_W_state_[15] == _W_state_[14]); +#line 1 + __VERIFIER_assume(_i_W_state_[14] == _W_state_[13]); +#line 1 + __VERIFIER_assume(_i_W_state_[13] == _W_state_[12]); +#line 1 + __VERIFIER_assume(_i_W_state_[12] == _W_state_[11]); +#line 1 + __VERIFIER_assume(_i_W_state_[11] == _W_state_[10]); +#line 1 + __VERIFIER_assume(_i_W_state_[10] == _W_state_[9]); +#line 1 + __VERIFIER_assume(_i_W_state_[9] == _W_state_[8]); +#line 1 + __VERIFIER_assume(_i_W_state_[8] == _W_state_[7]); +#line 1 + __VERIFIER_assume(_i_W_state_[7] == _W_state_[6]); +#line 1 + __VERIFIER_assume(_i_W_state_[6] == _W_state_[5]); +#line 1 + __VERIFIER_assume(_i_W_state_[5] == _W_state_[4]); +#line 1 + __VERIFIER_assume(_i_W_state_[4] == _W_state_[3]); +#line 1 + __VERIFIER_assume(_i_W_state_[3] == _W_state_[2]); +#line 1 + __VERIFIER_assume(_i_W_state_[2] == _W_state_[1]); +#line 1 + __VERIFIER_assume(_i_W_state_[1] == _W_state_[0]); +#line 1 + __VERIFIER_assume(_i_R_state_[27] == _R_state_[26]); +#line 1 + __VERIFIER_assume(_i_R_state_[26] == _R_state_[25]); +#line 1 + __VERIFIER_assume(_i_R_state_[25] == _R_state_[24]); +#line 1 + __VERIFIER_assume(_i_R_state_[24] == _R_state_[23]); +#line 1 + __VERIFIER_assume(_i_R_state_[23] == _R_state_[22]); +#line 1 + __VERIFIER_assume(_i_R_state_[22] == _R_state_[21]); +#line 1 + __VERIFIER_assume(_i_R_state_[21] == _R_state_[20]); +#line 1 + __VERIFIER_assume(_i_R_state_[20] == _R_state_[19]); +#line 1 + __VERIFIER_assume(_i_R_state_[19] == _R_state_[18]); +#line 1 + __VERIFIER_assume(_i_R_state_[18] == _R_state_[17]); +#line 1 + __VERIFIER_assume(_i_R_state_[17] == _R_state_[16]); +#line 1 + __VERIFIER_assume(_i_R_state_[16] == _R_state_[15]); +#line 1 + __VERIFIER_assume(_i_R_state_[15] == _R_state_[14]); +#line 1 + __VERIFIER_assume(_i_R_state_[14] == _R_state_[13]); +#line 1 + __VERIFIER_assume(_i_R_state_[13] == _R_state_[12]); +#line 1 + __VERIFIER_assume(_i_R_state_[12] == _R_state_[11]); +#line 1 + __VERIFIER_assume(_i_R_state_[11] == _R_state_[10]); +#line 1 + __VERIFIER_assume(_i_R_state_[10] == _R_state_[9]); +#line 1 + __VERIFIER_assume(_i_R_state_[9] == _R_state_[8]); +#line 1 + __VERIFIER_assume(_i_R_state_[8] == _R_state_[7]); +#line 1 + __VERIFIER_assume(_i_R_state_[7] == _R_state_[6]); +#line 1 + __VERIFIER_assume(_i_R_state_[6] == _R_state_[5]); +#line 1 + __VERIFIER_assume(_i_R_state_[5] == _R_state_[4]); +#line 1 + __VERIFIER_assume(_i_R_state_[4] == _R_state_[3]); +#line 1 + __VERIFIER_assume(_i_R_state_[3] == _R_state_[2]); +#line 1 + __VERIFIER_assume(_i_R_state_[2] == _R_state_[1]); +#line 1 + __VERIFIER_assume(_i_R_state_[1] == _R_state_[0]); +#line 1 + __VERIFIER_assume(_i_threshold_[27] == _threshold_[26]); +#line 1 + __VERIFIER_assume(_i_threshold_[26] == _threshold_[25]); +#line 1 + __VERIFIER_assume(_i_threshold_[25] == _threshold_[24]); +#line 1 + __VERIFIER_assume(_i_threshold_[24] == _threshold_[23]); +#line 1 + __VERIFIER_assume(_i_threshold_[23] == _threshold_[22]); +#line 1 + __VERIFIER_assume(_i_threshold_[22] == _threshold_[21]); +#line 1 + __VERIFIER_assume(_i_threshold_[21] == _threshold_[20]); +#line 1 + __VERIFIER_assume(_i_threshold_[20] == _threshold_[19]); +#line 1 + __VERIFIER_assume(_i_threshold_[19] == _threshold_[18]); +#line 1 + __VERIFIER_assume(_i_threshold_[18] == _threshold_[17]); +#line 1 + __VERIFIER_assume(_i_threshold_[17] == _threshold_[16]); +#line 1 + __VERIFIER_assume(_i_threshold_[16] == _threshold_[15]); +#line 1 + __VERIFIER_assume(_i_threshold_[15] == _threshold_[14]); +#line 1 + __VERIFIER_assume(_i_threshold_[14] == _threshold_[13]); +#line 1 + __VERIFIER_assume(_i_threshold_[13] == _threshold_[12]); +#line 1 + __VERIFIER_assume(_i_threshold_[12] == _threshold_[11]); +#line 1 + __VERIFIER_assume(_i_threshold_[11] == _threshold_[10]); +#line 1 + __VERIFIER_assume(_i_threshold_[10] == _threshold_[9]); +#line 1 + __VERIFIER_assume(_i_threshold_[9] == _threshold_[8]); +#line 1 + __VERIFIER_assume(_i_threshold_[8] == _threshold_[7]); +#line 1 + __VERIFIER_assume(_i_threshold_[7] == _threshold_[6]); +#line 1 + __VERIFIER_assume(_i_threshold_[6] == _threshold_[5]); +#line 1 + __VERIFIER_assume(_i_threshold_[5] == _threshold_[4]); +#line 1 + __VERIFIER_assume(_i_threshold_[4] == _threshold_[3]); +#line 1 + __VERIFIER_assume(_i_threshold_[3] == _threshold_[2]); +#line 1 + __VERIFIER_assume(_i_threshold_[2] == _threshold_[1]); +#line 1 + __VERIFIER_assume(_i_threshold_[1] == _threshold_[0]); +#line 1 + __VERIFIER_assume(_i_need_to_run_nxtbg_[27] == _need_to_run_nxtbg_[26]); +#line 1 + __VERIFIER_assume(_i_need_to_run_nxtbg_[26] == _need_to_run_nxtbg_[25]); +#line 1 + __VERIFIER_assume(_i_need_to_run_nxtbg_[25] == _need_to_run_nxtbg_[24]); +#line 1 + __VERIFIER_assume(_i_need_to_run_nxtbg_[24] == _need_to_run_nxtbg_[23]); +#line 1 + __VERIFIER_assume(_i_need_to_run_nxtbg_[23] == _need_to_run_nxtbg_[22]); +#line 1 + __VERIFIER_assume(_i_need_to_run_nxtbg_[22] == _need_to_run_nxtbg_[21]); +#line 1 + __VERIFIER_assume(_i_need_to_run_nxtbg_[21] == _need_to_run_nxtbg_[20]); +#line 1 + __VERIFIER_assume(_i_need_to_run_nxtbg_[20] == _need_to_run_nxtbg_[19]); +#line 1 + __VERIFIER_assume(_i_need_to_run_nxtbg_[19] == _need_to_run_nxtbg_[18]); +#line 1 + __VERIFIER_assume(_i_need_to_run_nxtbg_[18] == _need_to_run_nxtbg_[17]); +#line 1 + __VERIFIER_assume(_i_need_to_run_nxtbg_[17] == _need_to_run_nxtbg_[16]); +#line 1 + __VERIFIER_assume(_i_need_to_run_nxtbg_[16] == _need_to_run_nxtbg_[15]); +#line 1 + __VERIFIER_assume(_i_need_to_run_nxtbg_[15] == _need_to_run_nxtbg_[14]); +#line 1 + __VERIFIER_assume(_i_need_to_run_nxtbg_[14] == _need_to_run_nxtbg_[13]); +#line 1 + __VERIFIER_assume(_i_need_to_run_nxtbg_[13] == _need_to_run_nxtbg_[12]); +#line 1 + __VERIFIER_assume(_i_need_to_run_nxtbg_[12] == _need_to_run_nxtbg_[11]); +#line 1 + __VERIFIER_assume(_i_need_to_run_nxtbg_[11] == _need_to_run_nxtbg_[10]); +#line 1 + __VERIFIER_assume(_i_need_to_run_nxtbg_[10] == _need_to_run_nxtbg_[9]); +#line 1 + __VERIFIER_assume(_i_need_to_run_nxtbg_[9] == _need_to_run_nxtbg_[8]); +#line 1 + __VERIFIER_assume(_i_need_to_run_nxtbg_[8] == _need_to_run_nxtbg_[7]); +#line 1 + __VERIFIER_assume(_i_need_to_run_nxtbg_[7] == _need_to_run_nxtbg_[6]); +#line 1 + __VERIFIER_assume(_i_need_to_run_nxtbg_[6] == _need_to_run_nxtbg_[5]); +#line 1 + __VERIFIER_assume(_i_need_to_run_nxtbg_[5] == _need_to_run_nxtbg_[4]); +#line 1 + __VERIFIER_assume(_i_need_to_run_nxtbg_[4] == _need_to_run_nxtbg_[3]); +#line 1 + __VERIFIER_assume(_i_need_to_run_nxtbg_[3] == _need_to_run_nxtbg_[2]); +#line 1 + __VERIFIER_assume(_i_need_to_run_nxtbg_[2] == _need_to_run_nxtbg_[1]); +#line 1 + __VERIFIER_assume(_i_need_to_run_nxtbg_[1] == _need_to_run_nxtbg_[0]); +#line 1 + __VERIFIER_assume(_i_need_to_read_[27] == _need_to_read_[26]); +#line 1 + __VERIFIER_assume(_i_need_to_read_[26] == _need_to_read_[25]); +#line 1 + __VERIFIER_assume(_i_need_to_read_[25] == _need_to_read_[24]); +#line 1 + __VERIFIER_assume(_i_need_to_read_[24] == _need_to_read_[23]); +#line 1 + __VERIFIER_assume(_i_need_to_read_[23] == _need_to_read_[22]); +#line 1 + __VERIFIER_assume(_i_need_to_read_[22] == _need_to_read_[21]); +#line 1 + __VERIFIER_assume(_i_need_to_read_[21] == _need_to_read_[20]); +#line 1 + __VERIFIER_assume(_i_need_to_read_[20] == _need_to_read_[19]); +#line 1 + __VERIFIER_assume(_i_need_to_read_[19] == _need_to_read_[18]); +#line 1 + __VERIFIER_assume(_i_need_to_read_[18] == _need_to_read_[17]); +#line 1 + __VERIFIER_assume(_i_need_to_read_[17] == _need_to_read_[16]); +#line 1 + __VERIFIER_assume(_i_need_to_read_[16] == _need_to_read_[15]); +#line 1 + __VERIFIER_assume(_i_need_to_read_[15] == _need_to_read_[14]); +#line 1 + __VERIFIER_assume(_i_need_to_read_[14] == _need_to_read_[13]); +#line 1 + __VERIFIER_assume(_i_need_to_read_[13] == _need_to_read_[12]); +#line 1 + __VERIFIER_assume(_i_need_to_read_[12] == _need_to_read_[11]); +#line 1 + __VERIFIER_assume(_i_need_to_read_[11] == _need_to_read_[10]); +#line 1 + __VERIFIER_assume(_i_need_to_read_[10] == _need_to_read_[9]); +#line 1 + __VERIFIER_assume(_i_need_to_read_[9] == _need_to_read_[8]); +#line 1 + __VERIFIER_assume(_i_need_to_read_[8] == _need_to_read_[7]); +#line 1 + __VERIFIER_assume(_i_need_to_read_[7] == _need_to_read_[6]); +#line 1 + __VERIFIER_assume(_i_need_to_read_[6] == _need_to_read_[5]); +#line 1 + __VERIFIER_assume(_i_need_to_read_[5] == _need_to_read_[4]); +#line 1 + __VERIFIER_assume(_i_need_to_read_[4] == _need_to_read_[3]); +#line 1 + __VERIFIER_assume(_i_need_to_read_[3] == _need_to_read_[2]); +#line 1 + __VERIFIER_assume(_i_need_to_read_[2] == _need_to_read_[1]); +#line 1 + __VERIFIER_assume(_i_need_to_read_[1] == _need_to_read_[0]); +#line 1 + __VERIFIER_assume(_i_dir_[27] == _dir_[26]); +#line 1 + __VERIFIER_assume(_i_dir_[26] == _dir_[25]); +#line 1 + __VERIFIER_assume(_i_dir_[25] == _dir_[24]); +#line 1 + __VERIFIER_assume(_i_dir_[24] == _dir_[23]); +#line 1 + __VERIFIER_assume(_i_dir_[23] == _dir_[22]); +#line 1 + __VERIFIER_assume(_i_dir_[22] == _dir_[21]); +#line 1 + __VERIFIER_assume(_i_dir_[21] == _dir_[20]); +#line 1 + __VERIFIER_assume(_i_dir_[20] == _dir_[19]); +#line 1 + __VERIFIER_assume(_i_dir_[19] == _dir_[18]); +#line 1 + __VERIFIER_assume(_i_dir_[18] == _dir_[17]); +#line 1 + __VERIFIER_assume(_i_dir_[17] == _dir_[16]); +#line 1 + __VERIFIER_assume(_i_dir_[16] == _dir_[15]); +#line 1 + __VERIFIER_assume(_i_dir_[15] == _dir_[14]); +#line 1 + __VERIFIER_assume(_i_dir_[14] == _dir_[13]); +#line 1 + __VERIFIER_assume(_i_dir_[13] == _dir_[12]); +#line 1 + __VERIFIER_assume(_i_dir_[12] == _dir_[11]); +#line 1 + __VERIFIER_assume(_i_dir_[11] == _dir_[10]); +#line 1 + __VERIFIER_assume(_i_dir_[10] == _dir_[9]); +#line 1 + __VERIFIER_assume(_i_dir_[9] == _dir_[8]); +#line 1 + __VERIFIER_assume(_i_dir_[8] == _dir_[7]); +#line 1 + __VERIFIER_assume(_i_dir_[7] == _dir_[6]); +#line 1 + __VERIFIER_assume(_i_dir_[6] == _dir_[5]); +#line 1 + __VERIFIER_assume(_i_dir_[5] == _dir_[4]); +#line 1 + __VERIFIER_assume(_i_dir_[4] == _dir_[3]); +#line 1 + __VERIFIER_assume(_i_dir_[3] == _dir_[2]); +#line 1 + __VERIFIER_assume(_i_dir_[2] == _dir_[1]); +#line 1 + __VERIFIER_assume(_i_dir_[1] == _dir_[0]); +#line 1 + __VERIFIER_assume(_i_output_[27] == _output_[26]); +#line 1 + __VERIFIER_assume(_i_output_[26] == _output_[25]); +#line 1 + __VERIFIER_assume(_i_output_[25] == _output_[24]); +#line 1 + __VERIFIER_assume(_i_output_[24] == _output_[23]); +#line 1 + __VERIFIER_assume(_i_output_[23] == _output_[22]); +#line 1 + __VERIFIER_assume(_i_output_[22] == _output_[21]); +#line 1 + __VERIFIER_assume(_i_output_[21] == _output_[20]); +#line 1 + __VERIFIER_assume(_i_output_[20] == _output_[19]); +#line 1 + __VERIFIER_assume(_i_output_[19] == _output_[18]); +#line 1 + __VERIFIER_assume(_i_output_[18] == _output_[17]); +#line 1 + __VERIFIER_assume(_i_output_[17] == _output_[16]); +#line 1 + __VERIFIER_assume(_i_output_[16] == _output_[15]); +#line 1 + __VERIFIER_assume(_i_output_[15] == _output_[14]); +#line 1 + __VERIFIER_assume(_i_output_[14] == _output_[13]); +#line 1 + __VERIFIER_assume(_i_output_[13] == _output_[12]); +#line 1 + __VERIFIER_assume(_i_output_[12] == _output_[11]); +#line 1 + __VERIFIER_assume(_i_output_[11] == _output_[10]); +#line 1 + __VERIFIER_assume(_i_output_[10] == _output_[9]); +#line 1 + __VERIFIER_assume(_i_output_[9] == _output_[8]); +#line 1 + __VERIFIER_assume(_i_output_[8] == _output_[7]); +#line 1 + __VERIFIER_assume(_i_output_[7] == _output_[6]); +#line 1 + __VERIFIER_assume(_i_output_[6] == _output_[5]); +#line 1 + __VERIFIER_assume(_i_output_[5] == _output_[4]); +#line 1 + __VERIFIER_assume(_i_output_[4] == _output_[3]); +#line 1 + __VERIFIER_assume(_i_output_[3] == _output_[2]); +#line 1 + __VERIFIER_assume(_i_output_[2] == _output_[1]); +#line 1 + __VERIFIER_assume(_i_output_[1] == _output_[0]); +#line 1 + __VERIFIER_assume(_i_input_[27] == _input_[26]); +#line 1 + __VERIFIER_assume(_i_input_[26] == _input_[25]); +#line 1 + __VERIFIER_assume(_i_input_[25] == _input_[24]); +#line 1 + __VERIFIER_assume(_i_input_[24] == _input_[23]); +#line 1 + __VERIFIER_assume(_i_input_[23] == _input_[22]); +#line 1 + __VERIFIER_assume(_i_input_[22] == _input_[21]); +#line 1 + __VERIFIER_assume(_i_input_[21] == _input_[20]); +#line 1 + __VERIFIER_assume(_i_input_[20] == _input_[19]); +#line 1 + __VERIFIER_assume(_i_input_[19] == _input_[18]); +#line 1 + __VERIFIER_assume(_i_input_[18] == _input_[17]); +#line 1 + __VERIFIER_assume(_i_input_[17] == _input_[16]); +#line 1 + __VERIFIER_assume(_i_input_[16] == _input_[15]); +#line 1 + __VERIFIER_assume(_i_input_[15] == _input_[14]); +#line 1 + __VERIFIER_assume(_i_input_[14] == _input_[13]); +#line 1 + __VERIFIER_assume(_i_input_[13] == _input_[12]); +#line 1 + __VERIFIER_assume(_i_input_[12] == _input_[11]); +#line 1 + __VERIFIER_assume(_i_input_[11] == _input_[10]); +#line 1 + __VERIFIER_assume(_i_input_[10] == _input_[9]); +#line 1 + __VERIFIER_assume(_i_input_[9] == _input_[8]); +#line 1 + __VERIFIER_assume(_i_input_[8] == _input_[7]); +#line 1 + __VERIFIER_assume(_i_input_[7] == _input_[6]); +#line 1 + __VERIFIER_assume(_i_input_[6] == _input_[5]); +#line 1 + __VERIFIER_assume(_i_input_[5] == _input_[4]); +#line 1 + __VERIFIER_assume(_i_input_[4] == _input_[3]); +#line 1 + __VERIFIER_assume(_i_input_[3] == _input_[2]); +#line 1 + __VERIFIER_assume(_i_input_[2] == _input_[1]); +#line 1 + __VERIFIER_assume(_i_input_[1] == _input_[0]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_mode_[27] == _nxtcolorsensor_mode_[26]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_mode_[26] == _nxtcolorsensor_mode_[25]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_mode_[25] == _nxtcolorsensor_mode_[24]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_mode_[24] == _nxtcolorsensor_mode_[23]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_mode_[23] == _nxtcolorsensor_mode_[22]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_mode_[22] == _nxtcolorsensor_mode_[21]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_mode_[21] == _nxtcolorsensor_mode_[20]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_mode_[20] == _nxtcolorsensor_mode_[19]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_mode_[19] == _nxtcolorsensor_mode_[18]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_mode_[18] == _nxtcolorsensor_mode_[17]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_mode_[17] == _nxtcolorsensor_mode_[16]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_mode_[16] == _nxtcolorsensor_mode_[15]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_mode_[15] == _nxtcolorsensor_mode_[14]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_mode_[14] == _nxtcolorsensor_mode_[13]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_mode_[13] == _nxtcolorsensor_mode_[12]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_mode_[12] == _nxtcolorsensor_mode_[11]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_mode_[11] == _nxtcolorsensor_mode_[10]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_mode_[10] == _nxtcolorsensor_mode_[9]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_mode_[9] == _nxtcolorsensor_mode_[8]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_mode_[8] == _nxtcolorsensor_mode_[7]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_mode_[7] == _nxtcolorsensor_mode_[6]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_mode_[6] == _nxtcolorsensor_mode_[5]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_mode_[5] == _nxtcolorsensor_mode_[4]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_mode_[4] == _nxtcolorsensor_mode_[3]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_mode_[3] == _nxtcolorsensor_mode_[2]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_mode_[2] == _nxtcolorsensor_mode_[1]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_mode_[1] == _nxtcolorsensor_mode_[0]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_data_mode_[27] == _nxtcolorsensor_data_mode_[26]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_data_mode_[26] == _nxtcolorsensor_data_mode_[25]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_data_mode_[25] == _nxtcolorsensor_data_mode_[24]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_data_mode_[24] == _nxtcolorsensor_data_mode_[23]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_data_mode_[23] == _nxtcolorsensor_data_mode_[22]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_data_mode_[22] == _nxtcolorsensor_data_mode_[21]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_data_mode_[21] == _nxtcolorsensor_data_mode_[20]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_data_mode_[20] == _nxtcolorsensor_data_mode_[19]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_data_mode_[19] == _nxtcolorsensor_data_mode_[18]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_data_mode_[18] == _nxtcolorsensor_data_mode_[17]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_data_mode_[17] == _nxtcolorsensor_data_mode_[16]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_data_mode_[16] == _nxtcolorsensor_data_mode_[15]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_data_mode_[15] == _nxtcolorsensor_data_mode_[14]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_data_mode_[14] == _nxtcolorsensor_data_mode_[13]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_data_mode_[13] == _nxtcolorsensor_data_mode_[12]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_data_mode_[12] == _nxtcolorsensor_data_mode_[11]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_data_mode_[11] == _nxtcolorsensor_data_mode_[10]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_data_mode_[10] == _nxtcolorsensor_data_mode_[9]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_data_mode_[9] == _nxtcolorsensor_data_mode_[8]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_data_mode_[8] == _nxtcolorsensor_data_mode_[7]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_data_mode_[7] == _nxtcolorsensor_data_mode_[6]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_data_mode_[6] == _nxtcolorsensor_data_mode_[5]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_data_mode_[5] == _nxtcolorsensor_data_mode_[4]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_data_mode_[4] == _nxtcolorsensor_data_mode_[3]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_data_mode_[3] == _nxtcolorsensor_data_mode_[2]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_data_mode_[2] == _nxtcolorsensor_data_mode_[1]); +#line 1 + __VERIFIER_assume(_i_nxtcolorsensor_data_mode_[1] == _nxtcolorsensor_data_mode_[0]); +#line 1 + __VERIFIER_assume(_i_T_speed_[27] == _T_speed_[26]); +#line 1 + __VERIFIER_assume(_i_T_speed_[26] == _T_speed_[25]); +#line 1 + __VERIFIER_assume(_i_T_speed_[25] == _T_speed_[24]); +#line 1 + __VERIFIER_assume(_i_T_speed_[24] == _T_speed_[23]); +#line 1 + __VERIFIER_assume(_i_T_speed_[23] == _T_speed_[22]); +#line 1 + __VERIFIER_assume(_i_T_speed_[22] == _T_speed_[21]); +#line 1 + __VERIFIER_assume(_i_T_speed_[21] == _T_speed_[20]); +#line 1 + __VERIFIER_assume(_i_T_speed_[20] == _T_speed_[19]); +#line 1 + __VERIFIER_assume(_i_T_speed_[19] == _T_speed_[18]); +#line 1 + __VERIFIER_assume(_i_T_speed_[18] == _T_speed_[17]); +#line 1 + __VERIFIER_assume(_i_T_speed_[17] == _T_speed_[16]); +#line 1 + __VERIFIER_assume(_i_T_speed_[16] == _T_speed_[15]); +#line 1 + __VERIFIER_assume(_i_T_speed_[15] == _T_speed_[14]); +#line 1 + __VERIFIER_assume(_i_T_speed_[14] == _T_speed_[13]); +#line 1 + __VERIFIER_assume(_i_T_speed_[13] == _T_speed_[12]); +#line 1 + __VERIFIER_assume(_i_T_speed_[12] == _T_speed_[11]); +#line 1 + __VERIFIER_assume(_i_T_speed_[11] == _T_speed_[10]); +#line 1 + __VERIFIER_assume(_i_T_speed_[10] == _T_speed_[9]); +#line 1 + __VERIFIER_assume(_i_T_speed_[9] == _T_speed_[8]); +#line 1 + __VERIFIER_assume(_i_T_speed_[8] == _T_speed_[7]); +#line 1 + __VERIFIER_assume(_i_T_speed_[7] == _T_speed_[6]); +#line 1 + __VERIFIER_assume(_i_T_speed_[6] == _T_speed_[5]); +#line 1 + __VERIFIER_assume(_i_T_speed_[5] == _T_speed_[4]); +#line 1 + __VERIFIER_assume(_i_T_speed_[4] == _T_speed_[3]); +#line 1 + __VERIFIER_assume(_i_T_speed_[3] == _T_speed_[2]); +#line 1 + __VERIFIER_assume(_i_T_speed_[2] == _T_speed_[1]); +#line 1 + __VERIFIER_assume(_i_T_speed_[1] == _T_speed_[0]); +#line 1 + __VERIFIER_assume(_i_T_count_[27] == _T_count_[26]); +#line 1 + __VERIFIER_assume(_i_T_count_[26] == _T_count_[25]); +#line 1 + __VERIFIER_assume(_i_T_count_[25] == _T_count_[24]); +#line 1 + __VERIFIER_assume(_i_T_count_[24] == _T_count_[23]); +#line 1 + __VERIFIER_assume(_i_T_count_[23] == _T_count_[22]); +#line 1 + __VERIFIER_assume(_i_T_count_[22] == _T_count_[21]); +#line 1 + __VERIFIER_assume(_i_T_count_[21] == _T_count_[20]); +#line 1 + __VERIFIER_assume(_i_T_count_[20] == _T_count_[19]); +#line 1 + __VERIFIER_assume(_i_T_count_[19] == _T_count_[18]); +#line 1 + __VERIFIER_assume(_i_T_count_[18] == _T_count_[17]); +#line 1 + __VERIFIER_assume(_i_T_count_[17] == _T_count_[16]); +#line 1 + __VERIFIER_assume(_i_T_count_[16] == _T_count_[15]); +#line 1 + __VERIFIER_assume(_i_T_count_[15] == _T_count_[14]); +#line 1 + __VERIFIER_assume(_i_T_count_[14] == _T_count_[13]); +#line 1 + __VERIFIER_assume(_i_T_count_[13] == _T_count_[12]); +#line 1 + __VERIFIER_assume(_i_T_count_[12] == _T_count_[11]); +#line 1 + __VERIFIER_assume(_i_T_count_[11] == _T_count_[10]); +#line 1 + __VERIFIER_assume(_i_T_count_[10] == _T_count_[9]); +#line 1 + __VERIFIER_assume(_i_T_count_[9] == _T_count_[8]); +#line 1 + __VERIFIER_assume(_i_T_count_[8] == _T_count_[7]); +#line 1 + __VERIFIER_assume(_i_T_count_[7] == _T_count_[6]); +#line 1 + __VERIFIER_assume(_i_T_count_[6] == _T_count_[5]); +#line 1 + __VERIFIER_assume(_i_T_count_[5] == _T_count_[4]); +#line 1 + __VERIFIER_assume(_i_T_count_[4] == _T_count_[3]); +#line 1 + __VERIFIER_assume(_i_T_count_[3] == _T_count_[2]); +#line 1 + __VERIFIER_assume(_i_T_count_[2] == _T_count_[1]); +#line 1 + __VERIFIER_assume(_i_T_count_[1] == _T_count_[0]); +#line 1 + __VERIFIER_assume(_i_W_speed_[27] == _W_speed_[26]); +#line 1 + __VERIFIER_assume(_i_W_speed_[26] == _W_speed_[25]); +#line 1 + __VERIFIER_assume(_i_W_speed_[25] == _W_speed_[24]); +#line 1 + __VERIFIER_assume(_i_W_speed_[24] == _W_speed_[23]); +#line 1 + __VERIFIER_assume(_i_W_speed_[23] == _W_speed_[22]); +#line 1 + __VERIFIER_assume(_i_W_speed_[22] == _W_speed_[21]); +#line 1 + __VERIFIER_assume(_i_W_speed_[21] == _W_speed_[20]); +#line 1 + __VERIFIER_assume(_i_W_speed_[20] == _W_speed_[19]); +#line 1 + __VERIFIER_assume(_i_W_speed_[19] == _W_speed_[18]); +#line 1 + __VERIFIER_assume(_i_W_speed_[18] == _W_speed_[17]); +#line 1 + __VERIFIER_assume(_i_W_speed_[17] == _W_speed_[16]); +#line 1 + __VERIFIER_assume(_i_W_speed_[16] == _W_speed_[15]); +#line 1 + __VERIFIER_assume(_i_W_speed_[15] == _W_speed_[14]); +#line 1 + __VERIFIER_assume(_i_W_speed_[14] == _W_speed_[13]); +#line 1 + __VERIFIER_assume(_i_W_speed_[13] == _W_speed_[12]); +#line 1 + __VERIFIER_assume(_i_W_speed_[12] == _W_speed_[11]); +#line 1 + __VERIFIER_assume(_i_W_speed_[11] == _W_speed_[10]); +#line 1 + __VERIFIER_assume(_i_W_speed_[10] == _W_speed_[9]); +#line 1 + __VERIFIER_assume(_i_W_speed_[9] == _W_speed_[8]); +#line 1 + __VERIFIER_assume(_i_W_speed_[8] == _W_speed_[7]); +#line 1 + __VERIFIER_assume(_i_W_speed_[7] == _W_speed_[6]); +#line 1 + __VERIFIER_assume(_i_W_speed_[6] == _W_speed_[5]); +#line 1 + __VERIFIER_assume(_i_W_speed_[5] == _W_speed_[4]); +#line 1 + __VERIFIER_assume(_i_W_speed_[4] == _W_speed_[3]); +#line 1 + __VERIFIER_assume(_i_W_speed_[3] == _W_speed_[2]); +#line 1 + __VERIFIER_assume(_i_W_speed_[2] == _W_speed_[1]); +#line 1 + __VERIFIER_assume(_i_W_speed_[1] == _W_speed_[0]); +#line 1 + __VERIFIER_assume(_i_W_count_[27] == _W_count_[26]); +#line 1 + __VERIFIER_assume(_i_W_count_[26] == _W_count_[25]); +#line 1 + __VERIFIER_assume(_i_W_count_[25] == _W_count_[24]); +#line 1 + __VERIFIER_assume(_i_W_count_[24] == _W_count_[23]); +#line 1 + __VERIFIER_assume(_i_W_count_[23] == _W_count_[22]); +#line 1 + __VERIFIER_assume(_i_W_count_[22] == _W_count_[21]); +#line 1 + __VERIFIER_assume(_i_W_count_[21] == _W_count_[20]); +#line 1 + __VERIFIER_assume(_i_W_count_[20] == _W_count_[19]); +#line 1 + __VERIFIER_assume(_i_W_count_[19] == _W_count_[18]); +#line 1 + __VERIFIER_assume(_i_W_count_[18] == _W_count_[17]); +#line 1 + __VERIFIER_assume(_i_W_count_[17] == _W_count_[16]); +#line 1 + __VERIFIER_assume(_i_W_count_[16] == _W_count_[15]); +#line 1 + __VERIFIER_assume(_i_W_count_[15] == _W_count_[14]); +#line 1 + __VERIFIER_assume(_i_W_count_[14] == _W_count_[13]); +#line 1 + __VERIFIER_assume(_i_W_count_[13] == _W_count_[12]); +#line 1 + __VERIFIER_assume(_i_W_count_[12] == _W_count_[11]); +#line 1 + __VERIFIER_assume(_i_W_count_[11] == _W_count_[10]); +#line 1 + __VERIFIER_assume(_i_W_count_[10] == _W_count_[9]); +#line 1 + __VERIFIER_assume(_i_W_count_[9] == _W_count_[8]); +#line 1 + __VERIFIER_assume(_i_W_count_[8] == _W_count_[7]); +#line 1 + __VERIFIER_assume(_i_W_count_[7] == _W_count_[6]); +#line 1 + __VERIFIER_assume(_i_W_count_[6] == _W_count_[5]); +#line 1 + __VERIFIER_assume(_i_W_count_[5] == _W_count_[4]); +#line 1 + __VERIFIER_assume(_i_W_count_[4] == _W_count_[3]); +#line 1 + __VERIFIER_assume(_i_W_count_[3] == _W_count_[2]); +#line 1 + __VERIFIER_assume(_i_W_count_[2] == _W_count_[1]); +#line 1 + __VERIFIER_assume(_i_W_count_[1] == _W_count_[0]); +#line 1 + __VERIFIER_assume(_i_R_speed_[27] == _R_speed_[26]); +#line 1 + __VERIFIER_assume(_i_R_speed_[26] == _R_speed_[25]); +#line 1 + __VERIFIER_assume(_i_R_speed_[25] == _R_speed_[24]); +#line 1 + __VERIFIER_assume(_i_R_speed_[24] == _R_speed_[23]); +#line 1 + __VERIFIER_assume(_i_R_speed_[23] == _R_speed_[22]); +#line 1 + __VERIFIER_assume(_i_R_speed_[22] == _R_speed_[21]); +#line 1 + __VERIFIER_assume(_i_R_speed_[21] == _R_speed_[20]); +#line 1 + __VERIFIER_assume(_i_R_speed_[20] == _R_speed_[19]); +#line 1 + __VERIFIER_assume(_i_R_speed_[19] == _R_speed_[18]); +#line 1 + __VERIFIER_assume(_i_R_speed_[18] == _R_speed_[17]); +#line 1 + __VERIFIER_assume(_i_R_speed_[17] == _R_speed_[16]); +#line 1 + __VERIFIER_assume(_i_R_speed_[16] == _R_speed_[15]); +#line 1 + __VERIFIER_assume(_i_R_speed_[15] == _R_speed_[14]); +#line 1 + __VERIFIER_assume(_i_R_speed_[14] == _R_speed_[13]); +#line 1 + __VERIFIER_assume(_i_R_speed_[13] == _R_speed_[12]); +#line 1 + __VERIFIER_assume(_i_R_speed_[12] == _R_speed_[11]); +#line 1 + __VERIFIER_assume(_i_R_speed_[11] == _R_speed_[10]); +#line 1 + __VERIFIER_assume(_i_R_speed_[10] == _R_speed_[9]); +#line 1 + __VERIFIER_assume(_i_R_speed_[9] == _R_speed_[8]); +#line 1 + __VERIFIER_assume(_i_R_speed_[8] == _R_speed_[7]); +#line 1 + __VERIFIER_assume(_i_R_speed_[7] == _R_speed_[6]); +#line 1 + __VERIFIER_assume(_i_R_speed_[6] == _R_speed_[5]); +#line 1 + __VERIFIER_assume(_i_R_speed_[5] == _R_speed_[4]); +#line 1 + __VERIFIER_assume(_i_R_speed_[4] == _R_speed_[3]); +#line 1 + __VERIFIER_assume(_i_R_speed_[3] == _R_speed_[2]); +#line 1 + __VERIFIER_assume(_i_R_speed_[2] == _R_speed_[1]); +#line 1 + __VERIFIER_assume(_i_R_speed_[1] == _R_speed_[0]); +#line 1 + __VERIFIER_assume(_i_R_count_[27] == _R_count_[26]); +#line 1 + __VERIFIER_assume(_i_R_count_[26] == _R_count_[25]); +#line 1 + __VERIFIER_assume(_i_R_count_[25] == _R_count_[24]); +#line 1 + __VERIFIER_assume(_i_R_count_[24] == _R_count_[23]); +#line 1 + __VERIFIER_assume(_i_R_count_[23] == _R_count_[22]); +#line 1 + __VERIFIER_assume(_i_R_count_[22] == _R_count_[21]); +#line 1 + __VERIFIER_assume(_i_R_count_[21] == _R_count_[20]); +#line 1 + __VERIFIER_assume(_i_R_count_[20] == _R_count_[19]); +#line 1 + __VERIFIER_assume(_i_R_count_[19] == _R_count_[18]); +#line 1 + __VERIFIER_assume(_i_R_count_[18] == _R_count_[17]); +#line 1 + __VERIFIER_assume(_i_R_count_[17] == _R_count_[16]); +#line 1 + __VERIFIER_assume(_i_R_count_[16] == _R_count_[15]); +#line 1 + __VERIFIER_assume(_i_R_count_[15] == _R_count_[14]); +#line 1 + __VERIFIER_assume(_i_R_count_[14] == _R_count_[13]); +#line 1 + __VERIFIER_assume(_i_R_count_[13] == _R_count_[12]); +#line 1 + __VERIFIER_assume(_i_R_count_[12] == _R_count_[11]); +#line 1 + __VERIFIER_assume(_i_R_count_[11] == _R_count_[10]); +#line 1 + __VERIFIER_assume(_i_R_count_[10] == _R_count_[9]); +#line 1 + __VERIFIER_assume(_i_R_count_[9] == _R_count_[8]); +#line 1 + __VERIFIER_assume(_i_R_count_[8] == _R_count_[7]); +#line 1 + __VERIFIER_assume(_i_R_count_[7] == _R_count_[6]); +#line 1 + __VERIFIER_assume(_i_R_count_[6] == _R_count_[5]); +#line 1 + __VERIFIER_assume(_i_R_count_[5] == _R_count_[4]); +#line 1 + __VERIFIER_assume(_i_R_count_[4] == _R_count_[3]); +#line 1 + __VERIFIER_assume(_i_R_count_[3] == _R_count_[2]); +#line 1 + __VERIFIER_assume(_i_R_count_[2] == _R_count_[1]); +#line 1 + __VERIFIER_assume(_i_R_count_[1] == _R_count_[0]); +#line 1 + __VERIFIER_assume(_i___startrek_current_priority_[27] == ___startrek_current_priority_[26]); +#line 1 + __VERIFIER_assume(_i___startrek_current_priority_[26] == ___startrek_current_priority_[25]); +#line 1 + __VERIFIER_assume(_i___startrek_current_priority_[25] == ___startrek_current_priority_[24]); +#line 1 + __VERIFIER_assume(_i___startrek_current_priority_[24] == ___startrek_current_priority_[23]); +#line 1 + __VERIFIER_assume(_i___startrek_current_priority_[23] == ___startrek_current_priority_[22]); +#line 1 + __VERIFIER_assume(_i___startrek_current_priority_[22] == ___startrek_current_priority_[21]); +#line 1 + __VERIFIER_assume(_i___startrek_current_priority_[21] == ___startrek_current_priority_[20]); +#line 1 + __VERIFIER_assume(_i___startrek_current_priority_[20] == ___startrek_current_priority_[19]); +#line 1 + __VERIFIER_assume(_i___startrek_current_priority_[19] == ___startrek_current_priority_[18]); +#line 1 + __VERIFIER_assume(_i___startrek_current_priority_[18] == ___startrek_current_priority_[17]); +#line 1 + __VERIFIER_assume(_i___startrek_current_priority_[17] == ___startrek_current_priority_[16]); +#line 1 + __VERIFIER_assume(_i___startrek_current_priority_[16] == ___startrek_current_priority_[15]); +#line 1 + __VERIFIER_assume(_i___startrek_current_priority_[15] == ___startrek_current_priority_[14]); +#line 1 + __VERIFIER_assume(_i___startrek_current_priority_[14] == ___startrek_current_priority_[13]); +#line 1 + __VERIFIER_assume(_i___startrek_current_priority_[13] == ___startrek_current_priority_[12]); +#line 1 + __VERIFIER_assume(_i___startrek_current_priority_[12] == ___startrek_current_priority_[11]); +#line 1 + __VERIFIER_assume(_i___startrek_current_priority_[11] == ___startrek_current_priority_[10]); +#line 1 + __VERIFIER_assume(_i___startrek_current_priority_[10] == ___startrek_current_priority_[9]); +#line 1 + __VERIFIER_assume(_i___startrek_current_priority_[9] == ___startrek_current_priority_[8]); +#line 1 + __VERIFIER_assume(_i___startrek_current_priority_[8] == ___startrek_current_priority_[7]); +#line 1 + __VERIFIER_assume(_i___startrek_current_priority_[7] == ___startrek_current_priority_[6]); +#line 1 + __VERIFIER_assume(_i___startrek_current_priority_[6] == ___startrek_current_priority_[5]); +#line 1 + __VERIFIER_assume(_i___startrek_current_priority_[5] == ___startrek_current_priority_[4]); +#line 1 + __VERIFIER_assume(_i___startrek_current_priority_[4] == ___startrek_current_priority_[3]); +#line 1 + __VERIFIER_assume(_i___startrek_current_priority_[3] == ___startrek_current_priority_[2]); +#line 1 + __VERIFIER_assume(_i___startrek_current_priority_[2] == ___startrek_current_priority_[1]); +#line 1 + __VERIFIER_assume(_i___startrek_current_priority_[1] == ___startrek_current_priority_[0]); +} +} +#line 1 "" +__inline void __startrek_user_init(void) +{ + + + { + +} +} +#line 1 "" +__inline void __startrek_user_final(void) +{ + + + { + +} +} +#line 1 "" +__inline void __startrek_check_assertions(void) +{ + + + { +#line 1 "" + assert(__startrek_Assert_t3_i0[7]); +#line 1 + assert(__startrek_Assert_t3_i0[6]); +#line 1 + assert(__startrek_Assert_t3_i0[5]); +#line 1 + assert(__startrek_Assert_t3_i0[4]); +#line 1 + assert(__startrek_Assert_t3_i0[3]); +#line 1 + assert(__startrek_Assert_t3_i0[2]); +#line 1 + assert(__startrek_Assert_t3_i0[1]); +#line 1 + assert(__startrek_Assert_t3_i0[0]); +#line 1 + assert(__startrek_Assert_t2_i0[7]); +#line 1 + assert(__startrek_Assert_t2_i0[6]); +#line 1 + assert(__startrek_Assert_t2_i0[5]); +#line 1 + assert(__startrek_Assert_t2_i0[4]); +#line 1 + assert(__startrek_Assert_t2_i0[3]); +#line 1 + assert(__startrek_Assert_t2_i0[2]); +#line 1 + assert(__startrek_Assert_t2_i0[1]); +#line 1 + assert(__startrek_Assert_t2_i0[0]); +#line 1 + assert(__startrek_Assert_t1_i0[7]); +#line 1 + assert(__startrek_Assert_t1_i0[6]); +#line 1 + assert(__startrek_Assert_t1_i0[5]); +#line 1 + assert(__startrek_Assert_t1_i0[4]); +#line 1 + assert(__startrek_Assert_t1_i0[3]); +#line 1 + assert(__startrek_Assert_t1_i0[2]); +#line 1 + assert(__startrek_Assert_t1_i0[1]); +#line 1 + assert(__startrek_Assert_t1_i0[0]); +#line 1 + assert(__startrek_Assert_t0_i0[3]); +#line 1 + assert(__startrek_Assert_t0_i0[2]); +#line 1 + assert(__startrek_Assert_t0_i0[1]); +#line 1 + assert(__startrek_Assert_t0_i0[0]); +} +} +#line 1 "" +void __main(void) +{ + _Bool c1 ; + + { +#line 1 "" + __startrek_error_round = 28; +#line 1 + __startrek_schedule_jobs(); +#line 1 + __startrek_init_globals(); + { + { +#line 1 + __startrek_task = 0; +#line 1 + __startrek_job = 0; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t0[0]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t0[0]; +#line 1 + c1 = __startrek_entry_pt_Controller(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 1; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t0[1]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t0[1]; +#line 1 + c1 = __startrek_entry_pt_Controller(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 2; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t0[2]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t0[2]; +#line 1 + c1 = __startrek_entry_pt_Controller(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 3; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t0[3]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t0[3]; +#line 1 + c1 = __startrek_entry_pt_Controller(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } + } + { +#line 1 + __startrek_task = 1; +#line 1 + __startrek_job = 0; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t1[0]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t1[0]; +#line 1 + c1 = __startrek_entry_pt_TapeMover(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 1; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t1[1]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t1[1]; +#line 1 + c1 = __startrek_entry_pt_TapeMover(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 2; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t1[2]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t1[2]; +#line 1 + c1 = __startrek_entry_pt_TapeMover(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 3; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t1[3]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t1[3]; +#line 1 + c1 = __startrek_entry_pt_TapeMover(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 4; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t1[4]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t1[4]; +#line 1 + c1 = __startrek_entry_pt_TapeMover(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 5; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t1[5]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t1[5]; +#line 1 + c1 = __startrek_entry_pt_TapeMover(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 6; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t1[6]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t1[6]; +#line 1 + c1 = __startrek_entry_pt_TapeMover(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 7; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t1[7]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t1[7]; +#line 1 + c1 = __startrek_entry_pt_TapeMover(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } + } + { +#line 1 + __startrek_task = 2; +#line 1 + __startrek_job = 0; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[0]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[0]; +#line 1 + c1 = __startrek_entry_pt_Reader(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 1; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[1]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[1]; +#line 1 + c1 = __startrek_entry_pt_Reader(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 2; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[2]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[2]; +#line 1 + c1 = __startrek_entry_pt_Reader(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 3; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[3]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[3]; +#line 1 + c1 = __startrek_entry_pt_Reader(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 4; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[4]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[4]; +#line 1 + c1 = __startrek_entry_pt_Reader(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 5; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[5]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[5]; +#line 1 + c1 = __startrek_entry_pt_Reader(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 6; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[6]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[6]; +#line 1 + c1 = __startrek_entry_pt_Reader(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 7; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[7]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[7]; +#line 1 + c1 = __startrek_entry_pt_Reader(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } + } + { +#line 1 + __startrek_task = 3; +#line 1 + __startrek_job = 0; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t3[0]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t3[0]; +#line 1 + c1 = __startrek_entry_pt_Writer(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 1; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t3[1]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t3[1]; +#line 1 + c1 = __startrek_entry_pt_Writer(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 2; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t3[2]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t3[2]; +#line 1 + c1 = __startrek_entry_pt_Writer(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 3; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t3[3]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t3[3]; +#line 1 + c1 = __startrek_entry_pt_Writer(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 4; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t3[4]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t3[4]; +#line 1 + c1 = __startrek_entry_pt_Writer(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 5; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t3[5]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t3[5]; +#line 1 + c1 = __startrek_entry_pt_Writer(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 6; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t3[6]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t3[6]; +#line 1 + c1 = __startrek_entry_pt_Writer(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 7; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t3[7]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t3[7]; +#line 1 + c1 = __startrek_entry_pt_Writer(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } + } + } +#line 1 + __startrek_round = 28; +#line 1 + __startrek_check_assumptions(); +#line 1 + __startrek_check_assertions(); +#line 1 + if (__startrek_hyper_period == 0) { + { +#line 1 + __startrek_user_final(); + } + } +} +} +#line 1 "" +int main(void) +{ + + + { +#line 1 "" + __startrek_init_shared(); +#line 1 + __startrek_user_init(); +#line 1 + __startrek_hyper_period = 0; +#line 1 + __main(); +} +} +#line 1 "" +__inline static char __startrek_read___startrek_current_priority(void) +{ + char r1 ; + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + r1 = ___startrek_current_priority_[__startrek_round]; +#line 1 + return (r1); +} +} +#line 1 "" +__inline static int __startrek_read_R_count(void) +{ + int r1 ; + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + r1 = _R_count_[__startrek_round]; +#line 1 + return (r1); +} +} +#line 1 "" +__inline static char __startrek_read_R_speed(void) +{ + char r1 ; + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + r1 = _R_speed_[__startrek_round]; +#line 1 + return (r1); +} +} +#line 1 "" +__inline static int __startrek_read_W_count(void) +{ + int r1 ; + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + r1 = _W_count_[__startrek_round]; +#line 1 + return (r1); +} +} +#line 1 "" +__inline static char __startrek_read_W_speed(void) +{ + char r1 ; + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + r1 = _W_speed_[__startrek_round]; +#line 1 + return (r1); +} +} +#line 1 "" +__inline static int __startrek_read_T_count(void) +{ + int r1 ; + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + r1 = _T_count_[__startrek_round]; +#line 1 + return (r1); +} +} +#line 1 "" +__inline static char __startrek_read_T_speed(void) +{ + char r1 ; + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + r1 = _T_speed_[__startrek_round]; +#line 1 + return (r1); +} +} +#line 1 "" +__inline static unsigned char __startrek_read_nxtcolorsensor_data_mode(void) +{ + unsigned char r1 ; + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + r1 = _nxtcolorsensor_data_mode_[__startrek_round]; +#line 1 + return (r1); +} +} +#line 1 "" +__inline static unsigned char __startrek_read_nxtcolorsensor_mode(void) +{ + unsigned char r1 ; + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + r1 = _nxtcolorsensor_mode_[__startrek_round]; +#line 1 + return (r1); +} +} +#line 1 "" +__inline static _Bool __startrek_read_input(void) +{ + _Bool r1 ; + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + r1 = _input_[__startrek_round]; +#line 1 + return (r1); +} +} +#line 1 "" +__inline static _Bool __startrek_read_output(void) +{ + _Bool r1 ; + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + r1 = _output_[__startrek_round]; +#line 1 + return (r1); +} +} +#line 1 "" +__inline static _Bool __startrek_read_dir(void) +{ + _Bool r1 ; + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + r1 = _dir_[__startrek_round]; +#line 1 + return (r1); +} +} +#line 1 "" +__inline static _Bool __startrek_read_need_to_read(void) +{ + _Bool r1 ; + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + r1 = _need_to_read_[__startrek_round]; +#line 1 + return (r1); +} +} +#line 1 "" +__inline static _Bool __startrek_read_need_to_run_nxtbg(void) +{ + _Bool r1 ; + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + r1 = _need_to_run_nxtbg_[__startrek_round]; +#line 1 + return (r1); +} +} +#line 1 "" +__inline static unsigned short __startrek_read_threshold(void) +{ + unsigned short r1 ; + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + r1 = _threshold_[__startrek_round]; +#line 1 + return (r1); +} +} +#line 1 "" +__inline static unsigned char __startrek_read_R_state(void) +{ + unsigned char r1 ; + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + r1 = _R_state_[__startrek_round]; +#line 1 + return (r1); +} +} +#line 1 "" +__inline static unsigned char __startrek_read_W_state(void) +{ + unsigned char r1 ; + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + r1 = _W_state_[__startrek_round]; +#line 1 + return (r1); +} +} +#line 1 "" +__inline static unsigned char __startrek_read_T_state(void) +{ + unsigned char r1 ; + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + r1 = _T_state_[__startrek_round]; +#line 1 + return (r1); +} +} +#line 1 "" +__inline static char __startrek_read___startrek_job_count_Controller(void) +{ + char r1 ; + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + r1 = ___startrek_job_count_Controller_[__startrek_round]; +#line 1 + return (r1); +} +} +#line 1 "" +__inline static char __startrek_read___startrek_job_count_TapeMover(void) +{ + char r1 ; + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + r1 = ___startrek_job_count_TapeMover_[__startrek_round]; +#line 1 + return (r1); +} +} +#line 1 "" +__inline static char __startrek_read___startrek_job_count_Reader(void) +{ + char r1 ; + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + r1 = ___startrek_job_count_Reader_[__startrek_round]; +#line 1 + return (r1); +} +} +#line 1 "" +__inline static char __startrek_read___startrek_job_count_Writer(void) +{ + char r1 ; + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + r1 = ___startrek_job_count_Writer_[__startrek_round]; +#line 1 + return (r1); +} +} +#line 1 "" +__inline static void __startrek_write___startrek_current_priority(char arg ) +{ + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + ___startrek_current_priority_[__startrek_round] = arg; +} +} +#line 1 "" +__inline static void __startrek_write_R_count(int arg ) +{ + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + _R_count_[__startrek_round] = arg; +} +} +#line 1 "" +__inline static void __startrek_write_R_speed(char arg ) +{ + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + _R_speed_[__startrek_round] = arg; +} +} +#line 1 "" +__inline static void __startrek_write_W_count(int arg ) +{ + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + _W_count_[__startrek_round] = arg; +} +} +#line 1 "" +__inline static void __startrek_write_W_speed(char arg ) +{ + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + _W_speed_[__startrek_round] = arg; +} +} +#line 1 "" +__inline static void __startrek_write_T_count(int arg ) +{ + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + _T_count_[__startrek_round] = arg; +} +} +#line 1 "" +__inline static void __startrek_write_T_speed(char arg ) +{ + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + _T_speed_[__startrek_round] = arg; +} +} +#line 1 "" +__inline static void __startrek_write_nxtcolorsensor_data_mode(unsigned char arg ) +{ + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + _nxtcolorsensor_data_mode_[__startrek_round] = arg; +} +} +#line 1 "" +__inline static void __startrek_write_nxtcolorsensor_mode(unsigned char arg ) +{ + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + _nxtcolorsensor_mode_[__startrek_round] = arg; +} +} +#line 1 "" +__inline static void __startrek_write_input(_Bool arg ) +{ + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + _input_[__startrek_round] = arg; +} +} +#line 1 "" +__inline static void __startrek_write_output(_Bool arg ) +{ + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + _output_[__startrek_round] = arg; +} +} +#line 1 "" +__inline static void __startrek_write_dir(_Bool arg ) +{ + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + _dir_[__startrek_round] = arg; +} +} +#line 1 "" +__inline static void __startrek_write_need_to_read(_Bool arg ) +{ + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + _need_to_read_[__startrek_round] = arg; +} +} +#line 1 "" +__inline static void __startrek_write_need_to_run_nxtbg(_Bool arg ) +{ + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + _need_to_run_nxtbg_[__startrek_round] = arg; +} +} +#line 1 "" +__inline static void __startrek_write_threshold(unsigned short arg ) +{ + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + _threshold_[__startrek_round] = arg; +} +} +#line 1 "" +__inline static void __startrek_write_R_state(unsigned char arg ) +{ + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + _R_state_[__startrek_round] = arg; +} +} +#line 1 "" +__inline static void __startrek_write_W_state(unsigned char arg ) +{ + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + _W_state_[__startrek_round] = arg; +} +} +#line 1 "" +__inline static void __startrek_write_T_state(unsigned char arg ) +{ + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + _T_state_[__startrek_round] = arg; +} +} +#line 1 "" +__inline static void __startrek_write___startrek_job_count_Controller(char arg ) +{ + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + ___startrek_job_count_Controller_[__startrek_round] = arg; +} +} +#line 1 "" +__inline static void __startrek_write___startrek_job_count_TapeMover(char arg ) +{ + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + ___startrek_job_count_TapeMover_[__startrek_round] = arg; +} +} +#line 1 "" +__inline static void __startrek_write___startrek_job_count_Reader(char arg ) +{ + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + ___startrek_job_count_Reader_[__startrek_round] = arg; +} +} +#line 1 "" +__inline static void __startrek_write___startrek_job_count_Writer(char arg ) +{ + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + case 3: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t3(); + { + + } + } +#line 1 + break; + } +#line 1 + ___startrek_job_count_Writer_[__startrek_round] = arg; +} +} +#line 1 "" +__inline void __startrek_init_shared(void) +{ + + + { +#line 1 "" + ___startrek_job_count_Writer_[0] = __startrek_hidden___startrek_job_count_Writer; +#line 1 + ___startrek_job_count_Reader_[0] = __startrek_hidden___startrek_job_count_Reader; +#line 1 + ___startrek_job_count_TapeMover_[0] = __startrek_hidden___startrek_job_count_TapeMover; +#line 1 + ___startrek_job_count_Controller_[0] = __startrek_hidden___startrek_job_count_Controller; +#line 1 + _T_state_[0] = __startrek_hidden_T_state; +#line 1 + _W_state_[0] = __startrek_hidden_W_state; +#line 1 + _R_state_[0] = __startrek_hidden_R_state; +#line 1 + _threshold_[0] = __startrek_hidden_threshold; +#line 1 + _need_to_run_nxtbg_[0] = __startrek_hidden_need_to_run_nxtbg; +#line 1 + _need_to_read_[0] = __startrek_hidden_need_to_read; +#line 1 + _dir_[0] = __startrek_hidden_dir; +#line 1 + _output_[0] = __startrek_hidden_output; +#line 1 + _input_[0] = __startrek_hidden_input; +#line 1 + _nxtcolorsensor_mode_[0] = __startrek_hidden_nxtcolorsensor_mode; +#line 1 + _nxtcolorsensor_data_mode_[0] = __startrek_hidden_nxtcolorsensor_data_mode; +#line 1 + _T_speed_[0] = __startrek_hidden_T_speed; +#line 1 + _T_count_[0] = __startrek_hidden_T_count; +#line 1 + _W_speed_[0] = __startrek_hidden_W_speed; +#line 1 + _W_count_[0] = __startrek_hidden_W_count; +#line 1 + _R_speed_[0] = __startrek_hidden_R_speed; +#line 1 + _R_count_[0] = __startrek_hidden_R_count; +#line 1 + ___startrek_current_priority_[0] = __startrek_hidden___startrek_current_priority; +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/rekcba_nxt_false-unreach-call.1.M1.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/rekcba_nxt_false-unreach-call.1.M1.c new file mode 100644 index 000000000..2a2d226e5 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/rekcba_nxt_false-unreach-call.1.M1.c @@ -0,0 +1,3108 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/********************************************************************** + +Copyright (c) 2013 Carnegie Mellon University. All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following acknowledgments and +disclaimers. + +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. + +3. The names "Carnegie Mellon University," "SEI" and/or "Software +Engineering Institute" shall not be used to endorse or promote +products derived from this software without prior written +permission. For written permission, please contact +permission@sei.cmu.edu. + +4. Products derived from this software may not be called "SEI" nor may +"SEI" appear in their names without prior written permission of +permission@sei.cmu.edu. + +5. Redistributions of any form whatsoever must retain the following +acknowledgment: + +This material is based upon work funded and supported by the +Department of Defense under Contract No. FA8721-05-C-0003 with +Carnegie Mellon University for the operation of the Software +Engineering Institute, a federally funded research and development +center. + +Any opinions, findings and conclusions or recommendations expressed in +this material are those of the author(s) and do not necessarily +reflect the views of the United States Department of Defense. + +NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING +INSTITUTE MATERIAL IS FURNISHEDON AN "AS-IS" BASIS. CARNEGIE MELLON +UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITHER EXPRESSED OR +IMPLIED, AS TO ANY MATTER INCLUDING, BUT NOT LIMITED TO, WARRANTY OF +FITNESS FOR PURPOSE OR MERCHANTABILITY, EXCLUSIVITY, OR RESULTS +OBTAINED FROM USE OF THE MATERIAL. CARNEGIE MELLON UNIVERSITY DOES NOT +MAKE ANY WARRANTY OF ANY KIND WITH RESPECT TO FREEDOM FROM PATENT, +TRADEMARK, OR COPYRIGHT INFRINGEMENT. + +This material has been approved for public release and unlimited +distribution. + +DM-0000575 + +**********************************************************************/ + +/* Generated by CIL v. 1.4.0 */ +/* print_CIL_Input is true */ + +#line 1 "" +unsigned char __startrek_start_t2[24] ; +#line 1 "" +unsigned char __startrek_end_t2[24] ; +#line 1 "" +unsigned char __startrek_start_t1[2] ; +#line 1 "" +unsigned char __startrek_end_t1[2] ; +#line 1 "" +unsigned char __startrek_start_t0[1] ; +#line 1 "" +unsigned char __startrek_end_t0[1] ; +void __startrek_init_shared(void) ; +#line 1 +__inline static _Bool __startrek_cs_t2(void) ; +#line 1 +__inline static _Bool __startrek_cs_t1(void) ; +#line 1 +__inline static _Bool __startrek_cs_t0(void) ; +_Bool __VERIFIER_nondet__Bool(void) ; +unsigned char __VERIFIER_nondet_uchar(void) ; +_Bool __VERIFIER_nondet_bool(void) ; +extern int __VERIFIER_nondet_int(); +void __VERIFIER_assume(_Bool arg ) ; +#line 1 "" +unsigned char __startrek_task ; +#line 1 "" +unsigned char __startrek_job ; +#line 1 "" +unsigned char __startrek_job_end ; +#line 1 "" +unsigned char __startrek_error_round ; +#line 1 "" +unsigned char __startrek_round ; +#line 1 "" +_Bool __startrek_lock = (_Bool)0; +#line 1 "" +_Bool __startrek_is_first_cs ; +#line 1 "" +unsigned char __startrek_hyper_period ; +#line 1 "nxt.bug1.o" +#pragma merger(0,"/tmp/aaaa/nxt.bug1.i","-S") +#line 26 "src/startrek.h" +void assert(_Bool arg) { if (!arg) { ERROR: __VERIFIER_error();} } +#line 19 "src/balancer.h" +static unsigned int ud_err_theta ; +#line 20 "src/balancer.h" +static unsigned int ud_psi ; +#line 21 "src/balancer.h" +static unsigned int ud_theta_lpf ; +#line 22 "src/balancer.h" +static unsigned int ud_theta_ref ; +#line 23 "src/balancer.h" +static unsigned int ud_thetadot_cmd_lpf ; +#line 30 +extern unsigned int A_D ; +#line 35 +extern unsigned int A_R ; +#line 40 +extern unsigned int K_F[4] ; +#line 43 +extern unsigned int K_I ; +#line 46 +extern unsigned int K_PHIDOT ; +#line 49 +extern unsigned int K_THETADOT ; +#line 52 +extern unsigned int const BATTERY_GAIN ; +#line 53 +extern unsigned int const BATTERY_OFFSET ; +#line 56 "src/balancer.h" +void balance_init(void) +{ + + + { +#line 63 + ud_err_theta = 0.0F; +#line 64 + ud_theta_ref = 0.0F; +#line 65 + ud_thetadot_cmd_lpf = 0.0F; +#line 66 + ud_psi = 0.0F; +#line 67 + ud_theta_lpf = 0.0F; +#line 68 + return; +} +} +#line 199 +#line 72 "src/balancer.h" +void balance_control(unsigned int args_cmd_forward , unsigned int args_cmd_turn , + unsigned int args_gyro , unsigned int args_gyro_offset , unsigned int args_theta_m_l , + unsigned int args_theta_m_r , unsigned int args_battery , char *ret_pwm_l , + char *ret_pwm_r ) +{ + unsigned int tmp_theta ; + unsigned int tmp_theta_lpf ; + unsigned int tmp_pwm_r_limiter ; + unsigned int tmp_psidot ; + unsigned int tmp_pwm_turn ; + unsigned int tmp_pwm_l_limiter ; + unsigned int tmp_thetadot_cmd_lpf ; + unsigned int tmp[4] ; + unsigned int tmp_theta_0[4] ; + int tmp_0 ; + int tmp___0 ; + int tmp___1 ; + + { +#line 101 + tmp_thetadot_cmd_lpf = (((float )args_cmd_forward / 100.0F) * (float )K_THETADOT) * (1.0F - (float )A_R) + (float )(A_R * ud_thetadot_cmd_lpf); +#line 114 + tmp_theta = ((0.01745329238F * (float )args_theta_m_l + (float )ud_psi) + (0.01745329238F * (float )args_theta_m_r + (float )ud_psi)) * 0.5F; +#line 125 + tmp_theta_lpf = (1.0F - (float )A_D) * (float )tmp_theta + (float )(A_D * ud_theta_lpf); +#line 132 + tmp_psidot = (float )(args_gyro - args_gyro_offset) * 0.01745329238F; +#line 154 + tmp[0] = ud_theta_ref; +#line 155 + tmp[1] = 0.0F; +#line 156 + tmp[2] = tmp_thetadot_cmd_lpf; +#line 157 + tmp[3] = 0.0F; +#line 158 + tmp_theta_0[0] = tmp_theta; +#line 159 + tmp_theta_0[1] = ud_psi; +#line 160 + tmp_theta_0[2] = (float )(tmp_theta_lpf - ud_theta_lpf) / 0.00400000019F; +#line 161 + tmp_theta_0[3] = tmp_psidot; +#line 162 + tmp_pwm_r_limiter = 0.0F; +#line 170 + tmp_0 = 0; +#line 171 + tmp_pwm_r_limiter += (tmp[tmp_0] - tmp_theta_0[tmp_0]) * K_F[tmp_0]; +#line 172 + tmp_0 ++; +#line 173 + tmp_pwm_r_limiter += (tmp[tmp_0] - tmp_theta_0[tmp_0]) * K_F[tmp_0]; +#line 174 + tmp_0 ++; +#line 175 + tmp_pwm_r_limiter += (tmp[tmp_0] - tmp_theta_0[tmp_0]) * K_F[tmp_0]; +#line 176 + tmp_0 ++; +#line 177 + tmp_pwm_r_limiter += (tmp[tmp_0] - tmp_theta_0[tmp_0]) * K_F[tmp_0]; +#line 178 + tmp_0 ++; +#line 184 + tmp_pwm_r_limiter = (float )((K_I * ud_err_theta + tmp_pwm_r_limiter) / (unsigned int )(BATTERY_GAIN * (unsigned int const )args_battery - BATTERY_OFFSET)) * 100.0F; +#line 193 + tmp_pwm_turn = ((float )args_cmd_turn / 100.0F) * (float )K_PHIDOT; +#line 196 + tmp_pwm_l_limiter = tmp_pwm_r_limiter + tmp_pwm_turn; +#line 199 + tmp___0 = __VERIFIER_nondet_int(); +#line 199 + tmp_pwm_l_limiter = tmp___0; +#line 204 + *ret_pwm_l = (char )tmp_pwm_l_limiter; +#line 207 + tmp_pwm_r_limiter -= tmp_pwm_turn; +#line 210 + tmp___1 = __VERIFIER_nondet_int(); +#line 210 + tmp_pwm_r_limiter = tmp___1; +#line 215 + *ret_pwm_r = (char )tmp_pwm_r_limiter; +#line 221 + tmp_pwm_l_limiter = 0.00400000019F * (float )tmp_thetadot_cmd_lpf + (float )ud_theta_ref; +#line 227 + tmp_pwm_turn = 0.00400000019F * (float )tmp_psidot + (float )ud_psi; +#line 235 + tmp_pwm_r_limiter = (float )(ud_theta_ref - tmp_theta) * 0.00400000019F + (float )ud_err_theta; +#line 242 + ud_err_theta = tmp_pwm_r_limiter; +#line 245 + ud_theta_ref = tmp_pwm_l_limiter; +#line 248 + ud_thetadot_cmd_lpf = tmp_thetadot_cmd_lpf; +#line 251 + ud_psi = tmp_pwm_turn; +#line 254 + ud_theta_lpf = tmp_theta_lpf; +#line 256 + return; +} +} +#line 40 "src/nxt.bug1.c" +extern unsigned int __VERIFIER_nondet_U32() ; +#line 41 +extern char __VERIFIER_nondet_S8() ; +#line 42 +extern unsigned char __VERIFIER_nondet_U8() ; +#line 1 "" +__inline static unsigned char __startrek_read_nxtway_gs_mode(void) ; +#line 1 +__inline static void __startrek_write_nxtway_gs_mode(unsigned char arg ) ; +#line 1 "" +unsigned char _nxtway_gs_mode_[27] ; +#line 1 "" +unsigned char _i_nxtway_gs_mode_[27] ; +#line 51 "src/nxt.bug1.c" +unsigned char __startrek_hidden_nxtway_gs_mode = 0; +#line 1 "" +__inline static _Bool __startrek_read_obstacle_flag(void) ; +#line 1 +__inline static void __startrek_write_obstacle_flag(_Bool arg ) ; +#line 1 "" +_Bool _obstacle_flag_[27] ; +#line 1 "" +_Bool _i_obstacle_flag_[27] ; +#line 52 "src/nxt.bug1.c" +_Bool __startrek_hidden_obstacle_flag = 0; +#line 54 +extern void nxt_motor_set_count(unsigned char port , char pwm ) ; +#line 56 "src/nxt.bug1.c" +char nxt_motor_get_count(unsigned char port ) +{ + char tmp ; + + { +#line 57 + tmp = __VERIFIER_nondet_S8(); +#line 57 + return (tmp); +} +} +#line 62 +unsigned int ecrobot_get_systick_ms(void) ; +#line 62 "src/nxt.bug1.c" +static unsigned int timer = 0; +#line 60 "src/nxt.bug1.c" +unsigned int ecrobot_get_systick_ms(void) +{ + unsigned int r ; + + { +#line 64 + r = timer; +#line 66 + timer += 1000U; +#line 67 + return (r); +} +} +#line 71 "src/nxt.bug1.c" +unsigned int ecrobot_get_gyro_sensor(unsigned char port ) +{ + unsigned int tmp ; + + { +#line 72 + tmp = __VERIFIER_nondet_U32(); +#line 72 + return (tmp); +} +} +#line 74 +extern void ecrobot_sound_tone(unsigned int , unsigned int , char ) ; +#line 75 +extern void ecrobot_status_monitor(char * ) ; +#line 77 "src/nxt.bug1.c" +void ecrobot_read_bt_packet(unsigned char *bt_receive_buf , unsigned char sz ) +{ + + + { +#line 79 + *(bt_receive_buf + 0) = __VERIFIER_nondet_U8(); +#line 80 + *(bt_receive_buf + 1) = __VERIFIER_nondet_U8(); +#line 81 + return; +} +} +#line 83 "src/nxt.bug1.c" +unsigned int ecrobot_get_battery_voltage(void) +{ + unsigned int tmp ; + + { +#line 84 + tmp = __VERIFIER_nondet_U32(); +#line 84 + return (tmp); +} +} +#line 90 +extern void nxt_motor_set_speed(unsigned char port , char speed , char one ) ; +#line 96 +extern void ecrobot_bt_data_logger(char , char ) ; +#line 103 "src/nxt.bug1.c" +static unsigned int gyro_offset ; +#line 104 "src/nxt.bug1.c" +static unsigned int avg_cnt ; +#line 105 "src/nxt.bug1.c" +static unsigned int cal_start_time ; +#line 107 "src/nxt.bug1.c" +static unsigned char bt_receive_buf[2] ; +#line 100 "src/nxt.bug1.c" +void OSEK_Task_ts1(void) +{ + int i ; + char cmd_forward ; + char cmd_turn ; + char pwm_l ; + char pwm_r ; + unsigned char tmp ; + unsigned int tmp___0 ; + unsigned int tmp___1 ; + _Bool tmp___2 ; + unsigned int tmp___3 ; + char tmp___4 ; + char tmp___5 ; + unsigned int tmp___6 ; + + { +#line 112 + tmp = __startrek_read_nxtway_gs_mode(); +#line 112 + switch (tmp) { + case 0: +#line 115 + gyro_offset = 0; +#line 116 + avg_cnt = 0; +#line 117 + i = 0; +#line 117 + while (i < 2) { +#line 118 + bt_receive_buf[i] = 0; +#line 117 + i ++; + } +#line 121 + balance_init(); +#line 122 + nxt_motor_set_count(0, 0); +#line 123 + nxt_motor_set_count(1, 0); +#line 124 + cal_start_time = ecrobot_get_systick_ms(); +#line 125 + __startrek_write_nxtway_gs_mode(1); +#line 126 + break; + case 1: +#line 129 + tmp___0 = ecrobot_get_gyro_sensor(3); +#line 129 + gyro_offset += tmp___0; +#line 130 + avg_cnt ++; +#line 132 + tmp___1 = ecrobot_get_systick_ms(); +#line 132 + if (tmp___1 - cal_start_time >= 1000U) { +#line 133 + gyro_offset /= avg_cnt; +#line 134 + ecrobot_sound_tone(440U, 500U, 30); +#line 135 + __startrek_write_nxtway_gs_mode(2); + } +#line 137 + break; + case 2: +#line 145 + ecrobot_read_bt_packet(bt_receive_buf, 2); +#line 146 + cmd_forward = - ((int )((char )bt_receive_buf[0])); +#line 147 + cmd_turn = (char )bt_receive_buf[1]; +#line 149 + tmp___2 = __startrek_read_obstacle_flag(); +#line 149 + if (tmp___2) { +#line 151 + cmd_forward = -100; +#line 152 + cmd_turn = 0; + } +#line 155 + tmp___3 = ecrobot_get_battery_voltage(); +#line 155 + tmp___4 = nxt_motor_get_count(1); +#line 155 + tmp___5 = nxt_motor_get_count(0); +#line 155 + tmp___6 = ecrobot_get_gyro_sensor(3); +#line 155 + balance_control((unsigned int )cmd_forward, (unsigned int )cmd_turn, tmp___6, gyro_offset, + (unsigned int )tmp___5, (unsigned int )tmp___4, tmp___3, & pwm_l, + & pwm_r); +#line 164 + nxt_motor_set_speed(0, pwm_l, 1); +#line 165 + nxt_motor_set_speed(1, pwm_r, 1); +#line 167 + ecrobot_bt_data_logger(cmd_forward, cmd_turn); +#line 168 + break; + default: +#line 171 + nxt_motor_set_speed(0, 0, 1); +#line 172 + nxt_motor_set_speed(1, 0, 1); +#line 173 + break; + } +#line 175 + return; +} +} +#line 178 "src/nxt.bug1.c" +unsigned char ecrobot_get_sonar_sensor(unsigned char port ) +{ + unsigned char tmp ; + + { +#line 179 + tmp = __VERIFIER_nondet_U8(); +#line 179 + return (tmp); +} +} +#line 182 "src/nxt.bug1.c" +void OSEK_Task_ts2(void) +{ + unsigned char tmp ; + unsigned char tmp___0 ; + + { +#line 184 + __startrek_write_obstacle_flag(0); +#line 186 + tmp = __startrek_read_nxtway_gs_mode(); +#line 186 + if (tmp == 2) { +#line 186 + tmp___0 = ecrobot_get_sonar_sensor(4); +#line 186 + if ((int )tmp___0 <= 25) { +#line 188 + __startrek_write_obstacle_flag(1); + } + } +#line 190 + return; +} +} +#line 193 "src/nxt.bug1.c" +__inline void __startrek_user_final(void) +{ + int tmp ; + + { +#line 1 "" + tmp = _nxtway_gs_mode_[26]; +#line 195 "src/nxt.bug1.c" + assert(tmp != 2); +#line 196 + return; +} +} +#line 204 "src/nxt.bug1.c" +char __startrek_base_priority_OSEK_Task_ts2 = 1; +#line 204 +__inline static _Bool __startrek_entry_pt_OSEK_Task_ts2(void) ; +#line 204 "src/nxt.bug1.c" +__inline static _Bool __startrek_entry_pt_OSEK_Task_ts2(void) +{ + + + { +#line 204 + OSEK_Task_ts2(); +#line 204 + return ((_Bool)1); +} +} +#line 204 "src/nxt.bug1.c" +void cil_keeperOSEK_Task_ts2(void) +{ + + + { +#line 204 + __startrek_entry_pt_OSEK_Task_ts2(); +#line 204 + return; +} +} +#line 205 "src/nxt.bug1.c" +int __startrek_period_OSEK_Task_ts2 = 48; +#line 206 "src/nxt.bug1.c" +int __startrek_wcet_OSEK_Task_ts2 = 4; +#line 207 "src/nxt.bug1.c" +int __startrek_arrival_min_OSEK_Task_ts2 = 0; +#line 207 "src/nxt.bug1.c" +int __startrek_arrival_max_OSEK_Task_ts2 = 0; +#line 209 "src/nxt.bug1.c" +char __startrek_base_priority_OSEK_Task_ts1 = 2; +#line 209 +__inline static _Bool __startrek_entry_pt_OSEK_Task_ts1(void) ; +#line 209 "src/nxt.bug1.c" +__inline static _Bool __startrek_entry_pt_OSEK_Task_ts1(void) +{ + + + { +#line 209 + OSEK_Task_ts1(); +#line 209 + return ((_Bool)1); +} +} +#line 209 "src/nxt.bug1.c" +void cil_keeperOSEK_Task_ts1(void) +{ + + + { +#line 209 + __startrek_entry_pt_OSEK_Task_ts1(); +#line 209 + return; +} +} +#line 210 "src/nxt.bug1.c" +int __startrek_period_OSEK_Task_ts1 = 4; +#line 211 "src/nxt.bug1.c" +int __startrek_wcet_OSEK_Task_ts1 = 1; +#line 212 "src/nxt.bug1.c" +int __startrek_arrival_min_OSEK_Task_ts1 = 0; +#line 212 "src/nxt.bug1.c" +int __startrek_arrival_max_OSEK_Task_ts1 = 0; +#line 215 +extern void write_mode_on_lcd(unsigned char m ) ; +#line 217 "src/nxt.bug1.c" +void OSEK_Task_Background(void) +{ + unsigned char m ; + unsigned char tmp ; + + { +#line 219 + tmp = __startrek_read_nxtway_gs_mode(); +#line 219 + m = tmp; +#line 220 + ecrobot_status_monitor("NXTway-GS"); +#line 221 + write_mode_on_lcd(m); +#line 222 + return; +} +} +#line 224 "src/nxt.bug1.c" +char __startrek_base_priority_OSEK_Task_Background = 0; +#line 224 +__inline static _Bool __startrek_entry_pt_OSEK_Task_Background(void) ; +#line 224 "src/nxt.bug1.c" +__inline static _Bool __startrek_entry_pt_OSEK_Task_Background(void) +{ + + + { +#line 224 + OSEK_Task_Background(); +#line 224 + return ((_Bool)1); +} +} +#line 224 "src/nxt.bug1.c" +void cil_keeperOSEK_Task_Background(void) +{ + + + { +#line 224 + __startrek_entry_pt_OSEK_Task_Background(); +#line 224 + return; +} +} +#line 225 "src/nxt.bug1.c" +int __startrek_period_OSEK_Task_Background = 96; +#line 226 "src/nxt.bug1.c" +int __startrek_wcet_OSEK_Task_Background = 3; +#line 227 "src/nxt.bug1.c" +int __startrek_arrival_min_OSEK_Task_Background = 0; +#line 227 "src/nxt.bug1.c" +int __startrek_arrival_max_OSEK_Task_Background = 0; +#line 234 "src/nxt.bug1.c" +int __startrek_time_bound = 96; +#line 1 "" +__inline void __startrek_schedule_jobs(void) +{ + + + { +#line 1 "" + __startrek_start_t0[0] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t0[0] = __VERIFIER_nondet_uchar(); +#line 1 + __VERIFIER_assume(0 <= __startrek_start_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t0[0] <= 26); +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_end_t0[0]); +#line 1 + __startrek_start_t1[0] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t1[0] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_start_t1[1] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t1[1] = __VERIFIER_nondet_uchar(); +#line 1 + __VERIFIER_assume(0 <= __startrek_start_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[1] <= 26); +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[0] <= __startrek_start_t1[1] - 1); +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t1[0]) { +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[0] < __startrek_end_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t1[1]) { +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[1] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t1[0] < __startrek_start_t0[0]); + } + } + } +#line 1 + __startrek_start_t2[0] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[0] = __startrek_start_t2[0]; +#line 1 + __startrek_start_t2[1] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[1] = __startrek_start_t2[1]; +#line 1 + __startrek_start_t2[2] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[2] = __startrek_start_t2[2]; +#line 1 + __startrek_start_t2[3] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[3] = __startrek_start_t2[3]; +#line 1 + __startrek_start_t2[4] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[4] = __startrek_start_t2[4]; +#line 1 + __startrek_start_t2[5] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[5] = __startrek_start_t2[5]; +#line 1 + __startrek_start_t2[6] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[6] = __startrek_start_t2[6]; +#line 1 + __startrek_start_t2[7] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[7] = __startrek_start_t2[7]; +#line 1 + __startrek_start_t2[8] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[8] = __startrek_start_t2[8]; +#line 1 + __startrek_start_t2[9] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[9] = __startrek_start_t2[9]; +#line 1 + __startrek_start_t2[10] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[10] = __startrek_start_t2[10]; +#line 1 + __startrek_start_t2[11] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[11] = __startrek_start_t2[11]; +#line 1 + __startrek_start_t2[12] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[12] = __startrek_start_t2[12]; +#line 1 + __startrek_start_t2[13] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[13] = __startrek_start_t2[13]; +#line 1 + __startrek_start_t2[14] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[14] = __startrek_start_t2[14]; +#line 1 + __startrek_start_t2[15] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[15] = __startrek_start_t2[15]; +#line 1 + __startrek_start_t2[16] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[16] = __startrek_start_t2[16]; +#line 1 + __startrek_start_t2[17] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[17] = __startrek_start_t2[17]; +#line 1 + __startrek_start_t2[18] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[18] = __startrek_start_t2[18]; +#line 1 + __startrek_start_t2[19] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[19] = __startrek_start_t2[19]; +#line 1 + __startrek_start_t2[20] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[20] = __startrek_start_t2[20]; +#line 1 + __startrek_start_t2[21] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[21] = __startrek_start_t2[21]; +#line 1 + __startrek_start_t2[22] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[22] = __startrek_start_t2[22]; +#line 1 + __startrek_start_t2[23] = __VERIFIER_nondet_uchar(); +#line 1 + __startrek_end_t2[23] = __startrek_start_t2[23]; +#line 1 + __VERIFIER_assume(0 <= __startrek_start_t2[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[23] <= 26); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] <= __startrek_start_t2[1] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] <= __startrek_start_t2[2] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] <= __startrek_start_t2[3] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] <= __startrek_start_t2[4] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] <= __startrek_start_t2[5] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] <= __startrek_start_t2[6] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] <= __startrek_start_t2[7] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[7] <= __startrek_start_t2[8] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[8] <= __startrek_start_t2[9] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[9] <= __startrek_start_t2[10] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[10] <= __startrek_start_t2[11] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[11] <= __startrek_start_t2[12] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[12] <= __startrek_start_t2[13] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[13] <= __startrek_start_t2[14] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[14] <= __startrek_start_t2[15] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[15] <= __startrek_start_t2[16] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[16] <= __startrek_start_t2[17] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[17] <= __startrek_start_t2[18] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[18] <= __startrek_start_t2[19] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[19] <= __startrek_start_t2[20] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[20] <= __startrek_start_t2[21] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[21] <= __startrek_start_t2[22] - 1); +#line 1 + __VERIFIER_assume(__startrek_end_t2[22] <= __startrek_start_t2[23] - 1); +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[0]) { +#line 1 + if (__startrek_start_t2[0] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_end_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[0]) { +#line 1 + if (__startrek_start_t2[0] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_end_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[0]) { +#line 1 + if (__startrek_start_t2[0] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_end_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[1]) { +#line 1 + if (__startrek_start_t2[1] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_end_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[1]) { +#line 1 + if (__startrek_start_t2[1] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_end_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[1]) { +#line 1 + if (__startrek_start_t2[1] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_end_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[2]) { +#line 1 + if (__startrek_start_t2[2] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_end_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[2]) { +#line 1 + if (__startrek_start_t2[2] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[2]) { +#line 1 + if (__startrek_start_t2[2] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[2]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[3]) { +#line 1 + if (__startrek_start_t2[3] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[0] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[3]) { +#line 1 + if (__startrek_start_t2[3] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[3]) { +#line 1 + if (__startrek_start_t2[3] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[3]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[4]) { +#line 1 + if (__startrek_start_t2[4] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[1] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[4]) { +#line 1 + if (__startrek_start_t2[4] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[4]) { +#line 1 + if (__startrek_start_t2[4] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[4]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[5]) { +#line 1 + if (__startrek_start_t2[5] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[2] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[5]) { +#line 1 + if (__startrek_start_t2[5] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[5]) { +#line 1 + if (__startrek_start_t2[5] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[5]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[6]) { +#line 1 + if (__startrek_start_t2[6] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[3] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[6]) { +#line 1 + if (__startrek_start_t2[6] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[6]) { +#line 1 + if (__startrek_start_t2[6] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[6]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[7]) { +#line 1 + if (__startrek_start_t2[7] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[7] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[4] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[7]) { +#line 1 + if (__startrek_start_t2[7] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[7] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[7]) { +#line 1 + if (__startrek_start_t2[7] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[7]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[7] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[8]) { +#line 1 + if (__startrek_start_t2[8] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[8]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[8] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[5] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[8]) { +#line 1 + if (__startrek_start_t2[8] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[8]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[8] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[8]) { +#line 1 + if (__startrek_start_t2[8] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[8]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[8] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[9]) { +#line 1 + if (__startrek_start_t2[9] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[9]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[9] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[6] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[9]) { +#line 1 + if (__startrek_start_t2[9] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[9]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[9] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[7] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[9]) { +#line 1 + if (__startrek_start_t2[9] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[9]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[9] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[7] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[10]) { +#line 1 + if (__startrek_start_t2[10] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[10]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[10] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[7] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[10]) { +#line 1 + if (__startrek_start_t2[10] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[10]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[10] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[8] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[10]) { +#line 1 + if (__startrek_start_t2[10] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[10]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[10] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[8] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[11]) { +#line 1 + if (__startrek_start_t2[11] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[11]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[11] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[8] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[11]) { +#line 1 + if (__startrek_start_t2[11] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[11]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[11] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[9] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[11]) { +#line 1 + if (__startrek_start_t2[11] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[11]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[11] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[9] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[12]) { +#line 1 + if (__startrek_start_t2[12] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[12]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[12] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[9] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[12]) { +#line 1 + if (__startrek_start_t2[12] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[12]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[12] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[10] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[12]) { +#line 1 + if (__startrek_start_t2[12] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[12]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[12] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[10] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[13]) { +#line 1 + if (__startrek_start_t2[13] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[13]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[13] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[10] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[13]) { +#line 1 + if (__startrek_start_t2[13] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[13]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[13] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[11] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[13]) { +#line 1 + if (__startrek_start_t2[13] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[13]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[13] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[11] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[14]) { +#line 1 + if (__startrek_start_t2[14] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[14]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[14] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[11] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[14]) { +#line 1 + if (__startrek_start_t2[14] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[14]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[14] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[12] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[14]) { +#line 1 + if (__startrek_start_t2[14] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[14]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[14] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[12] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[15]) { +#line 1 + if (__startrek_start_t2[15] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[15]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[15] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[12] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[15]) { +#line 1 + if (__startrek_start_t2[15] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[15]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[15] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[13] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[15]) { +#line 1 + if (__startrek_start_t2[15] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[15]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[15] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[13] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[16]) { +#line 1 + if (__startrek_start_t2[16] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[16]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[16] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[13] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[16]) { +#line 1 + if (__startrek_start_t2[16] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[16]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[16] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[14] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[16]) { +#line 1 + if (__startrek_start_t2[16] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[16]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[16] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[14] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[17]) { +#line 1 + if (__startrek_start_t2[17] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[17]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[17] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[14] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[17]) { +#line 1 + if (__startrek_start_t2[17] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[17]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[17] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[15] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[17]) { +#line 1 + if (__startrek_start_t2[17] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[17]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[17] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[15] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[18]) { +#line 1 + if (__startrek_start_t2[18] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[18]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[18] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[15] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[18]) { +#line 1 + if (__startrek_start_t2[18] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[18]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[18] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[16] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[18]) { +#line 1 + if (__startrek_start_t2[18] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[18]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[18] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[16] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[19]) { +#line 1 + if (__startrek_start_t2[19] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[19]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[19] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[16] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[19]) { +#line 1 + if (__startrek_start_t2[19] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[19]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[19] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[17] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[19]) { +#line 1 + if (__startrek_start_t2[19] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[19]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[19] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[17] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[20]) { +#line 1 + if (__startrek_start_t2[20] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[20]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[20] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[17] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[20]) { +#line 1 + if (__startrek_start_t2[20] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[20]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[20] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[18] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[20]) { +#line 1 + if (__startrek_start_t2[20] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[20]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[20] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[18] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[21]) { +#line 1 + if (__startrek_start_t2[21] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[21]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[21] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[18] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[21]) { +#line 1 + if (__startrek_start_t2[21] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[21]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[21] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[19] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[21]) { +#line 1 + if (__startrek_start_t2[21] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[21]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[21] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[19] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[22]) { +#line 1 + if (__startrek_start_t2[22] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[22]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[22] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[19] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[22]) { +#line 1 + if (__startrek_start_t2[22] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[22]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[22] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[20] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[22]) { +#line 1 + if (__startrek_start_t2[22] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[22]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[22] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[20] < __startrek_start_t1[1]); + } + } + } +#line 1 + if (__startrek_start_t0[0] <= __startrek_end_t2[23]) { +#line 1 + if (__startrek_start_t2[23] <= __startrek_end_t0[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t0[0] <= __startrek_start_t2[23]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[23] < __startrek_end_t0[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[20] < __startrek_start_t0[0]); + } + } + } +#line 1 + if (__startrek_start_t1[0] <= __startrek_end_t2[23]) { +#line 1 + if (__startrek_start_t2[23] <= __startrek_end_t1[0]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[0] <= __startrek_start_t2[23]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[23] < __startrek_end_t1[0]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[21] < __startrek_start_t1[0]); + } + } + } +#line 1 + if (__startrek_start_t1[1] <= __startrek_end_t2[23]) { +#line 1 + if (__startrek_start_t2[23] <= __startrek_end_t1[1]) { + { +#line 1 + __VERIFIER_assume(__startrek_start_t1[1] <= __startrek_start_t2[23]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[23] < __startrek_end_t1[1]); +#line 1 + __VERIFIER_assume(__startrek_end_t2[21] < __startrek_start_t1[1]); + } + } + } +} +} +#line 1 "" +__inline void __startrek_init_globals(void) +{ + + + { +#line 1 "" + _i_obstacle_flag_[1] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[1] = _i_obstacle_flag_[1]; +#line 1 + _i_obstacle_flag_[2] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[2] = _i_obstacle_flag_[2]; +#line 1 + _i_obstacle_flag_[3] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[3] = _i_obstacle_flag_[3]; +#line 1 + _i_obstacle_flag_[4] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[4] = _i_obstacle_flag_[4]; +#line 1 + _i_obstacle_flag_[5] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[5] = _i_obstacle_flag_[5]; +#line 1 + _i_obstacle_flag_[6] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[6] = _i_obstacle_flag_[6]; +#line 1 + _i_obstacle_flag_[7] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[7] = _i_obstacle_flag_[7]; +#line 1 + _i_obstacle_flag_[8] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[8] = _i_obstacle_flag_[8]; +#line 1 + _i_obstacle_flag_[9] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[9] = _i_obstacle_flag_[9]; +#line 1 + _i_obstacle_flag_[10] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[10] = _i_obstacle_flag_[10]; +#line 1 + _i_obstacle_flag_[11] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[11] = _i_obstacle_flag_[11]; +#line 1 + _i_obstacle_flag_[12] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[12] = _i_obstacle_flag_[12]; +#line 1 + _i_obstacle_flag_[13] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[13] = _i_obstacle_flag_[13]; +#line 1 + _i_obstacle_flag_[14] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[14] = _i_obstacle_flag_[14]; +#line 1 + _i_obstacle_flag_[15] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[15] = _i_obstacle_flag_[15]; +#line 1 + _i_obstacle_flag_[16] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[16] = _i_obstacle_flag_[16]; +#line 1 + _i_obstacle_flag_[17] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[17] = _i_obstacle_flag_[17]; +#line 1 + _i_obstacle_flag_[18] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[18] = _i_obstacle_flag_[18]; +#line 1 + _i_obstacle_flag_[19] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[19] = _i_obstacle_flag_[19]; +#line 1 + _i_obstacle_flag_[20] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[20] = _i_obstacle_flag_[20]; +#line 1 + _i_obstacle_flag_[21] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[21] = _i_obstacle_flag_[21]; +#line 1 + _i_obstacle_flag_[22] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[22] = _i_obstacle_flag_[22]; +#line 1 + _i_obstacle_flag_[23] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[23] = _i_obstacle_flag_[23]; +#line 1 + _i_obstacle_flag_[24] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[24] = _i_obstacle_flag_[24]; +#line 1 + _i_obstacle_flag_[25] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[25] = _i_obstacle_flag_[25]; +#line 1 + _i_obstacle_flag_[26] = __VERIFIER_nondet__Bool(); +#line 1 + _obstacle_flag_[26] = _i_obstacle_flag_[26]; +#line 1 + _i_nxtway_gs_mode_[1] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[1] = _i_nxtway_gs_mode_[1]; +#line 1 + _i_nxtway_gs_mode_[2] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[2] = _i_nxtway_gs_mode_[2]; +#line 1 + _i_nxtway_gs_mode_[3] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[3] = _i_nxtway_gs_mode_[3]; +#line 1 + _i_nxtway_gs_mode_[4] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[4] = _i_nxtway_gs_mode_[4]; +#line 1 + _i_nxtway_gs_mode_[5] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[5] = _i_nxtway_gs_mode_[5]; +#line 1 + _i_nxtway_gs_mode_[6] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[6] = _i_nxtway_gs_mode_[6]; +#line 1 + _i_nxtway_gs_mode_[7] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[7] = _i_nxtway_gs_mode_[7]; +#line 1 + _i_nxtway_gs_mode_[8] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[8] = _i_nxtway_gs_mode_[8]; +#line 1 + _i_nxtway_gs_mode_[9] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[9] = _i_nxtway_gs_mode_[9]; +#line 1 + _i_nxtway_gs_mode_[10] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[10] = _i_nxtway_gs_mode_[10]; +#line 1 + _i_nxtway_gs_mode_[11] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[11] = _i_nxtway_gs_mode_[11]; +#line 1 + _i_nxtway_gs_mode_[12] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[12] = _i_nxtway_gs_mode_[12]; +#line 1 + _i_nxtway_gs_mode_[13] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[13] = _i_nxtway_gs_mode_[13]; +#line 1 + _i_nxtway_gs_mode_[14] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[14] = _i_nxtway_gs_mode_[14]; +#line 1 + _i_nxtway_gs_mode_[15] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[15] = _i_nxtway_gs_mode_[15]; +#line 1 + _i_nxtway_gs_mode_[16] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[16] = _i_nxtway_gs_mode_[16]; +#line 1 + _i_nxtway_gs_mode_[17] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[17] = _i_nxtway_gs_mode_[17]; +#line 1 + _i_nxtway_gs_mode_[18] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[18] = _i_nxtway_gs_mode_[18]; +#line 1 + _i_nxtway_gs_mode_[19] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[19] = _i_nxtway_gs_mode_[19]; +#line 1 + _i_nxtway_gs_mode_[20] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[20] = _i_nxtway_gs_mode_[20]; +#line 1 + _i_nxtway_gs_mode_[21] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[21] = _i_nxtway_gs_mode_[21]; +#line 1 + _i_nxtway_gs_mode_[22] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[22] = _i_nxtway_gs_mode_[22]; +#line 1 + _i_nxtway_gs_mode_[23] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[23] = _i_nxtway_gs_mode_[23]; +#line 1 + _i_nxtway_gs_mode_[24] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[24] = _i_nxtway_gs_mode_[24]; +#line 1 + _i_nxtway_gs_mode_[25] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[25] = _i_nxtway_gs_mode_[25]; +#line 1 + _i_nxtway_gs_mode_[26] = __VERIFIER_nondet_uchar(); +#line 1 + _nxtway_gs_mode_[26] = _i_nxtway_gs_mode_[26]; +} +} +#line 1 "" +__inline static _Bool __startrek_cs_t0(void) +{ + _Bool c1 ; + unsigned char o2 ; + + { +#line 1 + if (__startrek_is_first_cs) { + { +#line 1 "" + __startrek_is_first_cs = 0; + } + } +#line 1 + if (__startrek_lock) { +#line 1 + return (0); + } +#line 1 + c1 = __VERIFIER_nondet_bool(); +#line 1 + if (c1) { +#line 1 + return (0); + } +#line 1 + o2 = __startrek_round; +#line 1 + __startrek_round = __VERIFIER_nondet_uchar(); +#line 1 + __VERIFIER_assume(__startrek_round > o2); +#line 1 + __VERIFIER_assume(__startrek_round <= __startrek_job_end); +#line 1 + if (__startrek_round != __startrek_job_end) { + { +#line 1 + if (__startrek_start_t1[0] < __startrek_round) { +#line 1 + __VERIFIER_assume(__startrek_round > __startrek_end_t1[0]); + } +#line 1 + if (__startrek_start_t1[1] < __startrek_round) { +#line 1 + __VERIFIER_assume(__startrek_round > __startrek_end_t1[1]); + } + } + } +#line 1 + return (1); +} +} +#line 1 "" +__inline static _Bool __startrek_cs_t1(void) +{ + _Bool c1 ; + unsigned char o2 ; + + { +#line 1 + if (__startrek_is_first_cs) { + { +#line 1 "" + __startrek_is_first_cs = 0; + } + } +#line 1 + if (__startrek_lock) { +#line 1 + return (0); + } +#line 1 + c1 = __VERIFIER_nondet_bool(); +#line 1 + if (c1) { +#line 1 + return (0); + } +#line 1 + o2 = __startrek_round; +#line 1 + __startrek_round = __VERIFIER_nondet_uchar(); +#line 1 + __VERIFIER_assume(__startrek_round > o2); +#line 1 + __VERIFIER_assume(__startrek_round <= __startrek_job_end); +#line 1 + if (__startrek_round != __startrek_job_end) { + { + + } + } +#line 1 + return (1); +} +} +#line 1 "" +__inline static _Bool __startrek_cs_t2(void) +{ + + + { +#line 1 "" + return (0); +} +} +#line 1 "" +__inline void __startrek_check_assumptions(void) +{ + + + { +#line 1 "" + __VERIFIER_assume(_i_obstacle_flag_[26] == _obstacle_flag_[25]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[25] == _obstacle_flag_[24]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[24] == _obstacle_flag_[23]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[23] == _obstacle_flag_[22]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[22] == _obstacle_flag_[21]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[21] == _obstacle_flag_[20]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[20] == _obstacle_flag_[19]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[19] == _obstacle_flag_[18]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[18] == _obstacle_flag_[17]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[17] == _obstacle_flag_[16]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[16] == _obstacle_flag_[15]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[15] == _obstacle_flag_[14]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[14] == _obstacle_flag_[13]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[13] == _obstacle_flag_[12]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[12] == _obstacle_flag_[11]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[11] == _obstacle_flag_[10]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[10] == _obstacle_flag_[9]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[9] == _obstacle_flag_[8]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[8] == _obstacle_flag_[7]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[7] == _obstacle_flag_[6]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[6] == _obstacle_flag_[5]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[5] == _obstacle_flag_[4]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[4] == _obstacle_flag_[3]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[3] == _obstacle_flag_[2]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[2] == _obstacle_flag_[1]); +#line 1 + __VERIFIER_assume(_i_obstacle_flag_[1] == _obstacle_flag_[0]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[26] == _nxtway_gs_mode_[25]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[25] == _nxtway_gs_mode_[24]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[24] == _nxtway_gs_mode_[23]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[23] == _nxtway_gs_mode_[22]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[22] == _nxtway_gs_mode_[21]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[21] == _nxtway_gs_mode_[20]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[20] == _nxtway_gs_mode_[19]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[19] == _nxtway_gs_mode_[18]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[18] == _nxtway_gs_mode_[17]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[17] == _nxtway_gs_mode_[16]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[16] == _nxtway_gs_mode_[15]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[15] == _nxtway_gs_mode_[14]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[14] == _nxtway_gs_mode_[13]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[13] == _nxtway_gs_mode_[12]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[12] == _nxtway_gs_mode_[11]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[11] == _nxtway_gs_mode_[10]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[10] == _nxtway_gs_mode_[9]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[9] == _nxtway_gs_mode_[8]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[8] == _nxtway_gs_mode_[7]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[7] == _nxtway_gs_mode_[6]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[6] == _nxtway_gs_mode_[5]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[5] == _nxtway_gs_mode_[4]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[4] == _nxtway_gs_mode_[3]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[3] == _nxtway_gs_mode_[2]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[2] == _nxtway_gs_mode_[1]); +#line 1 + __VERIFIER_assume(_i_nxtway_gs_mode_[1] == _nxtway_gs_mode_[0]); +} +} +#line 1 "" +__inline void __startrek_user_init(void) +{ + + + { + +} +} +#line 1 "" +__inline void __startrek_check_assertions(void) +{ + + + { + +} +} +#line 1 "" +void __main(void) +{ + _Bool c1 ; + + { +#line 1 "" + __startrek_error_round = 27; +#line 1 + __startrek_schedule_jobs(); +#line 1 + __startrek_init_globals(); + { + { +#line 1 + __startrek_task = 0; +#line 1 + __startrek_job = 0; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t0[0]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t0[0]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_Background(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } + } + { +#line 1 + __startrek_task = 1; +#line 1 + __startrek_job = 0; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t1[0]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t1[0]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts2(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 1; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t1[1]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t1[1]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts2(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } + } + { +#line 1 + __startrek_task = 2; +#line 1 + __startrek_job = 0; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[0]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[0]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 1; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[1]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[1]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 2; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[2]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[2]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 3; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[3]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[3]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 4; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[4]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[4]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 5; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[5]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[5]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 6; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[6]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[6]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 7; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[7]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[7]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 8; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[8]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[8]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 9; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[9]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[9]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 10; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[10]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[10]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 11; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[11]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[11]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 12; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[12]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[12]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 13; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[13]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[13]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 14; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[14]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[14]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 15; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[15]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[15]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 16; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[16]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[16]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 17; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[17]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[17]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 18; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[18]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[18]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 19; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[19]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[19]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 20; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[20]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[20]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 21; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[21]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[21]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 22; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[22]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[22]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } +#line 1 + __startrek_job = 23; +#line 1 + __startrek_is_first_cs = 1; +#line 1 + __startrek_round = __startrek_start_t2[23]; +#line 1 + if (__startrek_round < __startrek_error_round) { + { +#line 1 + __startrek_job_end = __startrek_end_t2[23]; +#line 1 + c1 = __startrek_entry_pt_OSEK_Task_ts1(); +#line 1 + __startrek_lock = 0; +#line 1 + __VERIFIER_assume(__startrek_round == __startrek_job_end); + } + } + } + } +#line 1 + __startrek_round = 27; +#line 1 + __startrek_check_assumptions(); +#line 1 + __startrek_check_assertions(); +#line 1 + if (__startrek_hyper_period == 0) { + { +#line 1 + __startrek_user_final(); + } + } +} +} +#line 1 "" +int main(void) +{ + + + { +#line 1 "" + __startrek_init_shared(); +#line 1 + __startrek_user_init(); +#line 1 + __startrek_hyper_period = 0; +#line 1 + __main(); +} +} +#line 1 "" +__inline static unsigned char __startrek_read_nxtway_gs_mode(void) +{ + unsigned char r1 ; + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + } +#line 1 + r1 = _nxtway_gs_mode_[__startrek_round]; +#line 1 + return (r1); +} +} +#line 1 "" +__inline static _Bool __startrek_read_obstacle_flag(void) +{ + _Bool r1 ; + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + } +#line 1 + r1 = _obstacle_flag_[__startrek_round]; +#line 1 + return (r1); +} +} +#line 1 "" +__inline static void __startrek_write_nxtway_gs_mode(unsigned char arg ) +{ + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + } +#line 1 + _nxtway_gs_mode_[__startrek_round] = arg; +} +} +#line 1 "" +__inline static void __startrek_write_obstacle_flag(_Bool arg ) +{ + _Bool c2 ; + unsigned char or3 ; + + { +#line 1 + switch (__startrek_task) { + case 0: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t0(); + { + + } + } +#line 1 + break; + case 1: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t1(); + { + + } + } +#line 1 + break; + case 2: + { +#line 1 + or3 = __startrek_round; +#line 1 + c2 = __startrek_cs_t2(); + { + + } + } +#line 1 + break; + } +#line 1 + _obstacle_flag_[__startrek_round] = arg; +} +} +#line 1 "" +__inline void __startrek_init_shared(void) +{ + + + { +#line 1 "" + _obstacle_flag_[0] = __startrek_hidden_obstacle_flag; +#line 1 + _nxtway_gs_mode_[0] = __startrek_hidden_nxtway_gs_mode; +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/s3_clnt_1_false-unreach-call.cil.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/s3_clnt_1_false-unreach-call.cil.c new file mode 100644 index 000000000..65723e535 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/s3_clnt_1_false-unreach-call.cil.c @@ -0,0 +1,770 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +extern char __VERIFIER_nondet_char(void); +extern int __VERIFIER_nondet_int(void); +extern long __VERIFIER_nondet_long(void); +extern void *__VERIFIER_nondet_pointer(void); +extern int __VERIFIER_nondet_int(); +/* Generated by CIL v. 1.3.6 */ +/* print_CIL_Input is true */ + +#line 4 "s3_clnt_1_BUG.cil.c" +int ssl3_connect(int initial_state ) +{ int s__info_callback = __VERIFIER_nondet_int() ; + int s__in_handshake = __VERIFIER_nondet_int() ; + int s__state ; + int s__new_session ; + int s__server ; + int s__version = __VERIFIER_nondet_int() ; + int s__type ; + int s__init_num ; + int s__bbio = __VERIFIER_nondet_int() ; + int s__wbio = __VERIFIER_nondet_int() ; + int s__hit = __VERIFIER_nondet_int() ; + int s__rwstate ; + int s__init_buf___0 ; + int s__debug = __VERIFIER_nondet_int() ; + int s__shutdown ; + int s__ctx__info_callback = __VERIFIER_nondet_int() ; + int s__ctx__stats__sess_connect_renegotiate = __VERIFIER_nondet_int() ; + int s__ctx__stats__sess_connect = __VERIFIER_nondet_int() ; + int s__ctx__stats__sess_hit = __VERIFIER_nondet_int() ; + int s__ctx__stats__sess_connect_good = __VERIFIER_nondet_int() ; + int s__s3__change_cipher_spec ; + int s__s3__flags ; + int s__s3__delay_buf_pop_ret ; + int s__s3__tmp__cert_req = __VERIFIER_nondet_int() ; + int s__s3__tmp__new_compression = __VERIFIER_nondet_int() ; + int s__s3__tmp__reuse_message = __VERIFIER_nondet_int() ; + int s__s3__tmp__new_cipher = __VERIFIER_nondet_int() ; + int s__s3__tmp__new_cipher__algorithms = __VERIFIER_nondet_int() ; + int s__s3__tmp__next_state___0 ; + int s__s3__tmp__new_compression__id = __VERIFIER_nondet_int() ; + int s__session__cipher ; + int s__session__compress_meth ; + int buf ; + unsigned long tmp ; + unsigned long l ; + int num1 ; + int cb ; + int ret ; + int new_state ; + int state ; + int skip ; + int tmp___0 ; + int tmp___1 = __VERIFIER_nondet_int() ; + int tmp___2 = __VERIFIER_nondet_int() ; + int tmp___3 = __VERIFIER_nondet_int() ; + int tmp___4 = __VERIFIER_nondet_int() ; + int tmp___5 = __VERIFIER_nondet_int() ; + int tmp___6 = __VERIFIER_nondet_int() ; + int tmp___7 = __VERIFIER_nondet_int() ; + int tmp___8 = __VERIFIER_nondet_int() ; + int tmp___9 = __VERIFIER_nondet_int() ; + int blastFlag ; + int __cil_tmp55 ; + long __cil_tmp56 ; + long __cil_tmp57 ; + long __cil_tmp58 ; + long __cil_tmp59 ; + long __cil_tmp60 ; + long __cil_tmp61 ; + long __cil_tmp62 ; + long __cil_tmp63 ; + long __cil_tmp64 ; + + { +#line 60 +; + s__state = initial_state; +#line 61 + blastFlag = 0; +#line 62 + tmp = __VERIFIER_nondet_int(); +#line 63 + cb = 0; +#line 64 + ret = -1; +#line 65 + skip = 0; +#line 66 + tmp___0 = 0; +#line 67 + if (s__info_callback != 0) { +#line 68 + cb = s__info_callback; + } else { +#line 70 + if (s__ctx__info_callback != 0) { +#line 71 + cb = s__ctx__info_callback; + } + } +#line 76 + s__in_handshake ++; +#line 77 + if (tmp___1 - 12288) { +#line 78 + if (tmp___2 - 16384) { + + } + } + { +#line 87 + while (1) { + while_0_continue: /* CIL Label */ ; +#line 89 + state = s__state; +#line 90 + if (s__state == 12292) { + goto switch_1_12292; + } else { +#line 93 + if (s__state == 16384) { + goto switch_1_16384; + } else { +#line 96 + if (s__state == 4096) { + goto switch_1_4096; + } else { +#line 99 + if (s__state == 20480) { + goto switch_1_20480; + } else { +#line 102 + if (s__state == 4099) { + goto switch_1_4099; + } else { +#line 105 + if (s__state == 4368) { + goto switch_1_4368; + } else { +#line 108 + if (s__state == 4369) { + goto switch_1_4369; + } else { +#line 111 + if (s__state == 4384) { + goto switch_1_4384; + } else { +#line 114 + if (s__state == 4385) { + goto switch_1_4385; + } else { +#line 117 + if (s__state == 4400) { + goto switch_1_4400; + } else { +#line 120 + if (s__state == 4401) { + goto switch_1_4401; + } else { +#line 123 + if (s__state == 4416) { + goto switch_1_4416; + } else { +#line 126 + if (s__state == 4417) { + goto switch_1_4417; + } else { +#line 129 + if (s__state == 4432) { + goto switch_1_4432; + } else { +#line 132 + if (s__state == 4433) { + goto switch_1_4433; + } else { +#line 135 + if (s__state == 4448) { + goto switch_1_4448; + } else { +#line 138 + if (s__state == 4449) { + goto switch_1_4449; + } else { +#line 141 + if (s__state == 4464) { + goto switch_1_4464; + } else { +#line 144 + if (s__state == 4465) { + goto switch_1_4465; + } else { +#line 147 + if (s__state == 4466) { + goto switch_1_4466; + } else { +#line 150 + if (s__state == 4467) { + goto switch_1_4467; + } else { +#line 153 + if (s__state == 4480) { + goto switch_1_4480; + } else { +#line 156 + if (s__state == 4481) { + goto switch_1_4481; + } else { +#line 159 + if (s__state == 4496) { + goto switch_1_4496; + } else { +#line 162 + if (s__state == 4497) { + goto switch_1_4497; + } else { +#line 165 + if (s__state == 4512) { + goto switch_1_4512; + } else { +#line 168 + if (s__state == 4513) { + goto switch_1_4513; + } else { +#line 171 + if (s__state == 4528) { + goto switch_1_4528; + } else { +#line 174 + if (s__state == 4529) { + goto switch_1_4529; + } else { +#line 177 + if (s__state == 4560) { + goto switch_1_4560; + } else { +#line 180 + if (s__state == 4561) { + goto switch_1_4561; + } else { +#line 183 + if (s__state == 4352) { + goto switch_1_4352; + } else { +#line 186 + if (s__state == 3) { + goto switch_1_3; + } else { + goto switch_1_default; +#line 191 + if (0) { + switch_1_12292: +#line 193 + s__new_session = 1; +#line 194 + s__state = 4096; +#line 195 + s__ctx__stats__sess_connect_renegotiate ++; + switch_1_16384: ; + switch_1_4096: ; + switch_1_20480: ; + switch_1_4099: +#line 200 + s__server = 0; +#line 201 + if (cb != 0) { + + } + { +#line 206 + __cil_tmp55 = s__version - 65280; +#line 206 + if (__cil_tmp55 != 768) { +#line 207 + ret = -1; + goto end; + } + } +#line 212 + s__type = 4096; +#line 213 + if (s__init_buf___0 == 0) { +#line 214 + buf = __VERIFIER_nondet_int(); +#line 215 + if (buf == 0) { +#line 216 + ret = -1; + goto end; + } +#line 221 + if (! tmp___3) { +#line 222 + ret = -1; + goto end; + } +#line 227 + s__init_buf___0 = buf; + } +#line 231 + if (! tmp___4) { +#line 232 + ret = -1; + goto end; + } +#line 237 + if (! tmp___5) { +#line 238 + ret = -1; + goto end; + } +#line 243 + s__state = 4368; +#line 244 + s__ctx__stats__sess_connect ++; +#line 245 + s__init_num = 0; + goto switch_1_break; + switch_1_4368: ; + switch_1_4369: +#line 249 + s__shutdown = 0; +#line 250 + ret = __VERIFIER_nondet_int(); +#line 251 + if (blastFlag == 0) { +#line 252 + blastFlag = 1; + } +#line 256 + if (ret <= 0) { + goto end; + } +#line 261 + s__state = 4384; +#line 262 + s__init_num = 0; +#line 263 + if (s__bbio != s__wbio) { + + } + goto switch_1_break; + switch_1_4384: ; + switch_1_4385: +#line 271 + ret = __VERIFIER_nondet_int(); +#line 272 + if (blastFlag == 1) { +#line 273 + blastFlag = 2; + } +#line 277 + if (ret <= 0) { + goto end; + } +#line 282 + if (s__hit) { +#line 283 + s__state = 4560; + } else { +#line 285 + s__state = 4400; + } +#line 287 + s__init_num = 0; + goto switch_1_break; + switch_1_4400: ; + switch_1_4401: ; +#line 291 + if (s__s3__tmp__new_cipher__algorithms - 256) { +#line 292 + skip = 1; + } else { +#line 294 + ret = __VERIFIER_nondet_int(); +#line 295 + if (blastFlag == 2) { +#line 296 + blastFlag = 3; + } +#line 300 + if (ret <= 0) { + goto end; + } + } +#line 306 + s__state = 4416; +#line 307 + s__init_num = 0; + goto switch_1_break; + switch_1_4416: ; + switch_1_4417: +#line 311 + ret = __VERIFIER_nondet_int(); +#line 312 + if (blastFlag == 3) { +#line 313 + blastFlag = 4; + } +#line 317 + if (ret <= 0) { + goto end; + } +#line 322 + s__state = 4432; +#line 323 + s__init_num = 0; +#line 324 + if (! tmp___6) { +#line 325 + ret = -1; + goto end; + } + goto switch_1_break; + switch_1_4432: ; + switch_1_4433: +#line 333 + ret = __VERIFIER_nondet_int(); +#line 334 + if (blastFlag == 4) { + goto ERROR; + } +#line 339 + if (ret <= 0) { + goto end; + } +#line 344 + s__state = 4448; +#line 345 + s__init_num = 0; + goto switch_1_break; + switch_1_4448: ; + switch_1_4449: +#line 349 + ret = __VERIFIER_nondet_int(); +#line 350 + if (blastFlag == 4) { +#line 351 + blastFlag = 5; + } +#line 355 + if (ret <= 0) { + goto end; + } +#line 360 + if (s__s3__tmp__cert_req) { +#line 361 + s__state = 4464; + } else { +#line 363 + s__state = 4480; + } +#line 365 + s__init_num = 0; + goto switch_1_break; + switch_1_4464: ; + switch_1_4465: ; + switch_1_4466: ; + switch_1_4467: +#line 371 + ret = __VERIFIER_nondet_int(); +#line 372 + if (ret <= 0) { + goto end; + } +#line 377 + s__state = 4480; +#line 378 + s__init_num = 0; + goto switch_1_break; + switch_1_4480: ; + switch_1_4481: +#line 382 + ret = __VERIFIER_nondet_int(); +#line 383 + if (ret <= 0) { + goto end; + } +#line 388 + l = (unsigned long )s__s3__tmp__new_cipher__algorithms; +#line 389 + if (s__s3__tmp__cert_req == 1) { +#line 390 + s__state = 4496; + } else { +#line 392 + s__state = 4512; +#line 393 + s__s3__change_cipher_spec = 0; + } +#line 395 + s__init_num = 0; + goto switch_1_break; + switch_1_4496: ; + switch_1_4497: +#line 399 + ret = __VERIFIER_nondet_int(); +#line 400 + if (ret <= 0) { + goto end; + } +#line 405 + s__state = 4512; +#line 406 + s__init_num = 0; +#line 407 + s__s3__change_cipher_spec = 0; + goto switch_1_break; + switch_1_4512: ; + switch_1_4513: +#line 411 + ret = __VERIFIER_nondet_int(); +#line 412 + if (ret <= 0) { + goto end; + } +#line 417 + s__state = 4528; +#line 418 + s__init_num = 0; +#line 419 + s__session__cipher = s__s3__tmp__new_cipher; +#line 420 + if (s__s3__tmp__new_compression == 0) { +#line 421 + s__session__compress_meth = 0; + } else { +#line 423 + s__session__compress_meth = s__s3__tmp__new_compression__id; + } +#line 425 + if (! tmp___7) { +#line 426 + ret = -1; + goto end; + } +#line 431 + if (! tmp___8) { +#line 432 + ret = -1; + goto end; + } + goto switch_1_break; + switch_1_4528: ; + switch_1_4529: +#line 440 + ret = __VERIFIER_nondet_int(); +#line 441 + if (ret <= 0) { + goto end; + } +#line 446 + s__state = 4352; +#line 447 + __cil_tmp56 = (long )s__s3__flags; +#line 447 + __cil_tmp57 = __cil_tmp56 + 5; +#line 447 + s__s3__flags = (int )__cil_tmp57; +#line 448 + if (s__hit) { +#line 449 + s__s3__tmp__next_state___0 = 3; + { +#line 450 + __cil_tmp58 = (long )s__s3__flags; +#line 450 + if (__cil_tmp58 - 2L) { +#line 451 + s__state = 3; +#line 452 + __cil_tmp59 = (long )s__s3__flags; +#line 452 + __cil_tmp60 = __cil_tmp59 + 4L; +#line 452 + s__s3__flags = (int )__cil_tmp60; +#line 453 + s__s3__delay_buf_pop_ret = 0; + } + } + } else { +#line 458 + s__s3__tmp__next_state___0 = 4560; + } +#line 460 + s__init_num = 0; + goto switch_1_break; + switch_1_4560: ; + switch_1_4561: +#line 464 + ret = __VERIFIER_nondet_int(); +#line 465 + if (ret <= 0) { + goto end; + } +#line 470 + if (s__hit) { +#line 471 + s__state = 4512; + } else { +#line 473 + s__state = 3; + } +#line 475 + s__init_num = 0; + goto switch_1_break; + switch_1_4352: + { +#line 478 + __cil_tmp61 = (long )num1; +#line 478 + if (__cil_tmp61 > 0L) { +#line 479 + s__rwstate = 2; +#line 480 + num1 = tmp___9; + { +#line 481 + __cil_tmp62 = (long )num1; +#line 481 + if (__cil_tmp62 <= 0L) { +#line 482 + ret = -1; + goto end; + } + } +#line 487 + s__rwstate = 1; + } + } +#line 491 + s__state = s__s3__tmp__next_state___0; + goto switch_1_break; + switch_1_3: +#line 494 + if (s__init_buf___0 != 0) { +#line 495 + s__init_buf___0 = 0; + } + { +#line 499 + __cil_tmp63 = (long )s__s3__flags; +#line 499 + __cil_tmp64 = __cil_tmp63 - 4L; +#line 499 + if (! __cil_tmp64) { + + } + } +#line 504 + s__init_num = 0; +#line 505 + s__new_session = 0; +#line 506 + if (s__hit) { +#line 507 + s__ctx__stats__sess_hit ++; + } +#line 511 + ret = 1; +#line 512 + s__ctx__stats__sess_connect_good ++; +#line 513 + if (cb != 0) { + + } + goto end; + switch_1_default: +#line 520 + ret = -1; + goto end; + } else { + switch_1_break: ; + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } +#line 559 + if (! s__s3__tmp__reuse_message) { +#line 560 + if (! skip) { +#line 561 + if (s__debug) { +#line 562 + ret = __VERIFIER_nondet_int(); +#line 563 + if (ret <= 0) { + goto end; + } + } +#line 571 + if (cb != 0) { +#line 572 + if (s__state != state) { +#line 573 + new_state = s__state; +#line 574 + s__state = state; +#line 575 + s__state = new_state; + } + } + } + } +#line 588 + skip = 0; + } + while_0_break: /* CIL Label */ ; + } + + end: +#line 593 + s__in_handshake --; +#line 594 + if (cb != 0) { + + } +#line 599 + return (ret); + ERROR: __VERIFIER_error(); +#line 601 + return (-1); +} +} +#line 604 "s3_clnt_1_BUG.cil.c" +int main(void) +{ int s ; + + { + { +#line 609 + s = 12292; +#line 610 + ssl3_connect(12292); + } +#line 612 + return (0); +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/s3_srvr_14_false-unreach-call.cil.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/s3_srvr_14_false-unreach-call.cil.c new file mode 100644 index 000000000..3743e11d2 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/s3_srvr_14_false-unreach-call.cil.c @@ -0,0 +1,904 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +extern char __VERIFIER_nondet_char(void); +extern int __VERIFIER_nondet_int(void); +extern long __VERIFIER_nondet_long(void); +extern void *__VERIFIER_nondet_pointer(void); +extern int __VERIFIER_nondet_int(); +/* Generated by CIL v. 1.3.6 */ +/* print_CIL_Input is true */ + +#line 4 "s3_srvr_8.cil.c" +int ssl3_accept(int initial_state ) +{ int s__info_callback = __VERIFIER_nondet_int() ; + int s__in_handshake = __VERIFIER_nondet_int() ; + int s__state ; + int s__new_session ; + int s__server ; + int s__version = __VERIFIER_nondet_int() ; + int s__type ; + int s__init_num ; + int s__hit = __VERIFIER_nondet_int() ; + int s__rwstate ; + int s__init_buf___0 ; + int s__debug = __VERIFIER_nondet_int() ; + int s__shutdown ; + int s__cert = __VERIFIER_nondet_int() ; + int s__options = __VERIFIER_nondet_int() ; + int s__verify_mode = __VERIFIER_nondet_int() ; + int s__session__peer = __VERIFIER_nondet_int() ; + int s__cert__pkeys__AT0__privatekey = __VERIFIER_nondet_int() ; + int s__ctx__info_callback = __VERIFIER_nondet_int() ; + int s__ctx__stats__sess_accept_renegotiate = __VERIFIER_nondet_int() ; + int s__ctx__stats__sess_accept = __VERIFIER_nondet_int() ; + int s__ctx__stats__sess_accept_good = __VERIFIER_nondet_int() ; + int s__s3__tmp__cert_request ; + int s__s3__tmp__reuse_message ; + int s__s3__tmp__use_rsa_tmp ; + int s__s3__tmp__new_cipher = __VERIFIER_nondet_int() ; + int s__s3__tmp__new_cipher__algorithms = __VERIFIER_nondet_int() ; + int s__s3__tmp__next_state___0 ; + int s__s3__tmp__new_cipher__algo_strength = __VERIFIER_nondet_int() ; + int s__session__cipher ; + int buf ; + unsigned long l ; + unsigned long Time ; + unsigned long tmp ; + int cb ; + long num1 ; + int ret ; + int new_state ; + int state ; + int skip ; + int got_new_session ; + int tmp___1 = __VERIFIER_nondet_int() ; + int tmp___2 = __VERIFIER_nondet_int() ; + int tmp___3 = __VERIFIER_nondet_int() ; + int tmp___4 = __VERIFIER_nondet_int() ; + int tmp___5 = __VERIFIER_nondet_int() ; + int tmp___6 = __VERIFIER_nondet_int() ; + int tmp___7 ; + long tmp___8 = __VERIFIER_nondet_long() ; + int tmp___9 = __VERIFIER_nondet_int() ; + int tmp___10 = __VERIFIER_nondet_int() ; + int blastFlag ; + int __cil_tmp55 ; + unsigned long __cil_tmp56 ; + unsigned long __cil_tmp57 ; + unsigned long __cil_tmp58 ; + unsigned long __cil_tmp59 ; + int __cil_tmp60 ; + unsigned long __cil_tmp61 ; + + { +#line 60 + s__s3__tmp__reuse_message = 0; + s__state = initial_state; +#line 61 + blastFlag = 0; +#line 62 + tmp = __VERIFIER_nondet_int(); +#line 63 + Time = tmp; +#line 64 + cb = 0; +#line 65 + ret = -1; +#line 66 + skip = 0; +#line 67 + got_new_session = 0; +#line 68 + if (s__info_callback != 0) { +#line 69 + cb = s__info_callback; + } else { +#line 71 + if (s__ctx__info_callback != 0) { +#line 72 + cb = s__ctx__info_callback; + } + } +#line 77 + s__in_handshake ++; +#line 78 + if (tmp___1 + 12288) { +#line 79 + if (tmp___2 + 16384) { + + } + } +#line 87 + if (s__cert == 0) { +#line 88 + return (-1); + } + { +#line 93 + while (1) { + while_0_continue: /* CIL Label */ ; +#line 95 + state = s__state; +#line 96 + if (s__state == 12292) { + goto switch_1_12292; + } else { +#line 99 + if (s__state == 16384) { + goto switch_1_16384; + } else { +#line 102 + if (s__state == 8192) { + goto switch_1_8192; + } else { +#line 105 + if (s__state == 24576) { + goto switch_1_24576; + } else { +#line 108 + if (s__state == 8195) { + goto switch_1_8195; + } else { +#line 111 + if (s__state == 8480) { + goto switch_1_8480; + } else { +#line 114 + if (s__state == 8481) { + goto switch_1_8481; + } else { +#line 117 + if (s__state == 8482) { + goto switch_1_8482; + } else { +#line 120 + if (s__state == 8464) { + goto switch_1_8464; + } else { +#line 123 + if (s__state == 8465) { + goto switch_1_8465; + } else { +#line 126 + if (s__state == 8466) { + goto switch_1_8466; + } else { +#line 129 + if (s__state == 8496) { + goto switch_1_8496; + } else { +#line 132 + if (s__state == 8497) { + goto switch_1_8497; + } else { +#line 135 + if (s__state == 8512) { + goto switch_1_8512; + } else { +#line 138 + if (s__state == 8513) { + goto switch_1_8513; + } else { +#line 141 + if (s__state == 8528) { + goto switch_1_8528; + } else { +#line 144 + if (s__state == 8529) { + goto switch_1_8529; + } else { +#line 147 + if (s__state == 8544) { + goto switch_1_8544; + } else { +#line 150 + if (s__state == 8545) { + goto switch_1_8545; + } else { +#line 153 + if (s__state == 8560) { + goto switch_1_8560; + } else { +#line 156 + if (s__state == 8561) { + goto switch_1_8561; + } else { +#line 159 + if (s__state == 8448) { + goto switch_1_8448; + } else { +#line 162 + if (s__state == 8576) { + goto switch_1_8576; + } else { +#line 165 + if (s__state == 8577) { + goto switch_1_8577; + } else { +#line 168 + if (s__state == 8592) { + goto switch_1_8592; + } else { +#line 171 + if (s__state == 8593) { + goto switch_1_8593; + } else { +#line 174 + if (s__state == 8608) { + goto switch_1_8608; + } else { +#line 177 + if (s__state == 8609) { + goto switch_1_8609; + } else { +#line 180 + if (s__state == 8640) { + goto switch_1_8640; + } else { +#line 183 + if (s__state == 8641) { + goto switch_1_8641; + } else { +#line 186 + if (s__state == 8656) { + goto switch_1_8656; + } else { +#line 189 + if (s__state == 8657) { + goto switch_1_8657; + } else { +#line 192 + if (s__state == 8672) { + goto switch_1_8672; + } else { +#line 195 + if (s__state == 8673) { + goto switch_1_8673; + } else { +#line 198 + if (s__state == 3) { + goto switch_1_3; + } else { + goto switch_1_default; +#line 203 + if (0) { + switch_1_12292: +#line 205 + s__new_session = 1; + switch_1_16384: ; + switch_1_8192: ; + switch_1_24576: ; + switch_1_8195: +#line 210 + s__server = 1; +#line 211 + if (cb != 0) { + + } + { +#line 216 + __cil_tmp55 = s__version * 8; +#line 216 + if (__cil_tmp55 != 3) { +#line 217 + return (-1); + } + } +#line 221 + s__type = 8192; +#line 222 + if (s__init_buf___0 == 0) { +#line 223 + buf = __VERIFIER_nondet_int(); +#line 224 + if (buf == 0) { +#line 225 + ret = -1; + goto end; + } +#line 230 + if (! tmp___3) { +#line 231 + ret = -1; + goto end; + } +#line 236 + s__init_buf___0 = buf; + } +#line 240 + if (! tmp___4) { +#line 241 + ret = -1; + goto end; + } +#line 246 + s__init_num = 0; +#line 247 + if (s__state != 12292) { +#line 248 + if (! tmp___5) { +#line 249 + ret = -1; + goto end; + } +#line 254 + s__state = 8464; +#line 255 + s__ctx__stats__sess_accept ++; + } else { +#line 257 + s__ctx__stats__sess_accept_renegotiate ++; +#line 258 + s__state = 8480; + } + goto switch_1_break; + switch_1_8480: ; + switch_1_8481: +#line 263 + s__shutdown = 0; +#line 264 + ret = __VERIFIER_nondet_int(); +#line 265 + if (ret <= 0) { + goto end; + } +#line 270 + s__s3__tmp__next_state___0 = 8482; +#line 271 + s__state = 8448; +#line 272 + s__init_num = 0; + goto switch_1_break; + switch_1_8482: +#line 275 + s__state = 3; + goto switch_1_break; + switch_1_8464: ; + switch_1_8465: ; + switch_1_8466: +#line 280 + s__shutdown = 0; +#line 281 + ret = __VERIFIER_nondet_int(); +#line 282 + if (blastFlag == 0) { +#line 283 + blastFlag = 1; + } +#line 287 + if (ret <= 0) { + goto end; + } +#line 292 + got_new_session = 1; +#line 293 + s__state = 8496; +#line 294 + s__init_num = 0; + goto switch_1_break; + switch_1_8496: ; + switch_1_8497: +#line 298 + ret = __VERIFIER_nondet_int(); +#line 299 + if (blastFlag == 1) { +#line 300 + blastFlag = 2; + } +#line 304 + if (ret <= 0) { + goto end; + } +#line 309 + if (s__hit) { +#line 310 + s__state = 8656; + } else { +#line 312 + s__state = 8512; + } +#line 314 + s__init_num = 0; + goto switch_1_break; + switch_1_8512: ; + switch_1_8513: ; + { +#line 318 + __cil_tmp56 = (unsigned long )s__s3__tmp__new_cipher__algorithms; +#line 318 + if (__cil_tmp56 + 256UL) { +#line 319 + skip = 1; + } else { +#line 321 + ret = __VERIFIER_nondet_int(); +#line 322 + if (ret <= 0) { + goto end; + } + } + } +#line 328 + s__state = 8528; +#line 329 + s__init_num = 0; + goto switch_1_break; + switch_1_8528: ; + switch_1_8529: +#line 333 + l = (unsigned long )s__s3__tmp__new_cipher__algorithms; + { +#line 334 + __cil_tmp57 = (unsigned long )s__options; +#line 334 + if (__cil_tmp57 + 2097152UL) { +#line 335 + s__s3__tmp__use_rsa_tmp = 1; + } else { +#line 337 + s__s3__tmp__use_rsa_tmp = 0; + } + } +#line 339 + if (s__s3__tmp__use_rsa_tmp) { + goto _L___0; + } else { +#line 342 + if (l + 30UL) { + goto _L___0; + } else { +#line 345 + if (l + 1UL) { +#line 346 + if (s__cert__pkeys__AT0__privatekey == 0) { + goto _L___0; + } else { + { +#line 349 + __cil_tmp58 = (unsigned long )s__s3__tmp__new_cipher__algo_strength; +#line 349 + if (__cil_tmp58 + 2UL) { + { +#line 350 + __cil_tmp59 = (unsigned long )s__s3__tmp__new_cipher__algo_strength; +#line 350 + if (__cil_tmp59 + 4UL) { +#line 351 + tmp___7 = 512; + } else { +#line 353 + tmp___7 = 1024; + } + } + { +#line 355 + __cil_tmp60 = tmp___6 * 8; +#line 355 + if (__cil_tmp60 > tmp___7) { + _L___0: +#line 357 + ret = __VERIFIER_nondet_int(); +#line 358 + if (ret <= 0) { + goto end; + } + } else { +#line 364 + skip = 1; + } + } + } else { +#line 367 + skip = 1; + } + } + } + } else { +#line 371 + skip = 1; + } + } + } +#line 375 + s__state = 8544; +#line 376 + s__init_num = 0; + goto switch_1_break; + switch_1_8544: ; + switch_1_8545: ; +#line 380 + if (s__verify_mode + 1) { +#line 381 + if (s__session__peer != 0) { +#line 382 + if (s__verify_mode + 4) { +#line 383 + skip = 1; +#line 384 + s__s3__tmp__cert_request = 0; +#line 385 + s__state = 8560; + } else { + goto _L___2; + } + } else { + _L___2: + { +#line 391 + __cil_tmp61 = (unsigned long )s__s3__tmp__new_cipher__algorithms; +#line 391 + if (__cil_tmp61 + 256UL) { +#line 392 + if (s__verify_mode + 2) { + goto _L___1; + } else { +#line 395 + skip = 1; +#line 396 + s__s3__tmp__cert_request = 0; +#line 397 + s__state = 8560; + } + } else { + _L___1: +#line 401 + s__s3__tmp__cert_request = 1; +#line 402 + ret = __VERIFIER_nondet_int(); +#line 403 + if (ret <= 0) { + goto end; + } +#line 408 + s__state = 8448; +#line 409 + s__s3__tmp__next_state___0 = 8576; +#line 410 + s__init_num = 0; + } + } + } + } else { +#line 414 + skip = 1; +#line 415 + s__s3__tmp__cert_request = 0; +#line 416 + s__state = 8560; + } + goto switch_1_break; + switch_1_8560: ; + switch_1_8561: +#line 421 + ret = __VERIFIER_nondet_int(); +#line 422 + if (ret <= 0) { + goto end; + } +#line 427 + s__s3__tmp__next_state___0 = 8576; +#line 428 + s__state = 8448; +#line 429 + s__init_num = 0; + goto switch_1_break; + switch_1_8448: +#line 432 + if (num1 > 0L) { +#line 433 + s__rwstate = 2; +#line 434 + num1 = tmp___8; +#line 435 + if (num1 <= 0L) { +#line 436 + ret = -1; + goto end; + } +#line 441 + s__rwstate = 1; + } +#line 445 + s__state = s__s3__tmp__next_state___0; + goto switch_1_break; + switch_1_8576: ; + switch_1_8577: +#line 449 + ret = __VERIFIER_nondet_int(); +#line 450 + if (ret <= 0) { + goto end; + } +#line 455 + if (ret == 2) { +#line 456 + s__state = 8466; + } else { +#line 458 + ret = __VERIFIER_nondet_int(); +#line 459 + if (ret <= 0) { + goto end; + } +#line 464 + s__init_num = 0; +#line 465 + s__state = 8592; + } + goto switch_1_break; + switch_1_8592: ; + switch_1_8593: +#line 470 + ret = __VERIFIER_nondet_int(); +#line 471 + if (ret <= 0) { + goto end; + } +#line 476 + s__state = 8608; +#line 477 + s__init_num = 0; + goto switch_1_break; + switch_1_8608: ; + switch_1_8609: +#line 481 + ret = __VERIFIER_nondet_int(); +#line 482 + if (ret <= 0) { + goto end; + } +#line 487 + s__state = 8640; +#line 488 + s__init_num = 0; + goto switch_1_break; + switch_1_8640: ; + switch_1_8641: +#line 492 + ret = __VERIFIER_nondet_int(); +#line 493 + if (blastFlag == 4) { +#line 494 + blastFlag = 5; + } else { +#line 496 + if (blastFlag == 7) { +#line 497 + blastFlag = 8; + } else { +#line 499 + if (blastFlag == 10) { + goto ERROR; + } + } + } +#line 506 + if (ret <= 0) { + goto end; + } +#line 511 + if (s__hit) { +#line 512 + s__state = 3; + } else { +#line 514 + s__state = 8656; + } +#line 516 + s__init_num = 0; + goto switch_1_break; + switch_1_8656: ; + switch_1_8657: +#line 520 + s__session__cipher = s__s3__tmp__new_cipher; +#line 521 + if (! tmp___9) { +#line 522 + ret = -1; + goto end; + } +#line 527 + ret = __VERIFIER_nondet_int(); +#line 528 + if (blastFlag == 2) { +#line 529 + blastFlag = 3; + } else { +#line 531 + if (blastFlag == 5) { +#line 532 + blastFlag = 6; + } else { +#line 534 + if (blastFlag == 8) { +#line 535 + blastFlag = 9; + } + } + } +#line 541 + if (ret <= 0) { + goto end; + } +#line 546 + s__state = 8672; +#line 547 + s__init_num = 0; +#line 548 + if (! tmp___10) { +#line 549 + ret = -1; + goto end; + } + goto switch_1_break; + switch_1_8672: ; + switch_1_8673: +#line 557 + ret = __VERIFIER_nondet_int(); +#line 558 + if (blastFlag == 3) { +#line 559 + blastFlag = 4; + } else { +#line 561 + if (blastFlag == 6) { +#line 562 + blastFlag = 7; + } else { +#line 564 + if (blastFlag == 9) { +#line 565 + blastFlag = 10; + } + } + } +#line 571 + if (ret <= 0) { + goto end; + } +#line 576 + s__state = 8448; +#line 577 + if (s__hit) { +#line 578 + s__s3__tmp__next_state___0 = 8640; + } else { +#line 580 + s__s3__tmp__next_state___0 = 3; + } +#line 582 + s__init_num = 0; + goto switch_1_break; + switch_1_3: +#line 585 + s__init_buf___0 = 0; +#line 586 + s__init_num = 0; +#line 587 + if (got_new_session) { +#line 588 + s__new_session = 0; +#line 589 + s__ctx__stats__sess_accept_good ++; +#line 590 + if (cb != 0) { + + } + } +#line 598 + ret = 1; + goto end; + switch_1_default: +#line 601 + ret = -1; + goto end; + } else { + switch_1_break: ; + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } +#line 642 + if (! s__s3__tmp__reuse_message) { +#line 643 + if (! skip) { + if(tmp___1 != -12288){ + if(s__state != 8656){ + if(tmp___2 != -16384){ + if(state == 8496){ + goto ERROR; + } + } + } + } + + if (s__debug) { +#line 645 + ret = __VERIFIER_nondet_int(); +#line 646 + if (ret <= 0) { + goto end; + } + } +#line 654 + if (cb != 0) { +#line 655 + if (s__state != state) { +#line 656 + new_state = s__state; +#line 657 + s__state = state; +#line 658 + s__state = new_state; + } + } + } + } +#line 671 + skip = 0; + } + while_0_break: /* CIL Label */ ; + } + + end: +#line 676 + s__in_handshake --; +#line 677 + if (cb != 0) { + + } +#line 682 + return (ret); + ERROR: __VERIFIER_error(); +#line 684 + return (-1); +} +} +#line 687 "s3_srvr_8.cil.c" +int main(void) +{ int s ; + int tmp ; + + { + { +#line 693 + s = 8464; +#line 694 + tmp = ssl3_accept(s); + } +#line 696 + return (tmp); +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/s3_srvr_1_false-unreach-call.cil.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/s3_srvr_1_false-unreach-call.cil.c new file mode 100644 index 000000000..6363e9f62 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/s3_srvr_1_false-unreach-call.cil.c @@ -0,0 +1,869 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +extern char __VERIFIER_nondet_char(void); +extern int __VERIFIER_nondet_int(void); +extern long __VERIFIER_nondet_long(void); +extern void *__VERIFIER_nondet_pointer(void); +extern int __VERIFIER_nondet_int(); +/* Generated by CIL v. 1.3.6 */ +/* print_CIL_Input is true */ + +#line 4 "s3_srvr_1_BUG.cil.c" +int ssl3_accept(int initial_state ) +{ int s__info_callback = __VERIFIER_nondet_int() ; + int s__in_handshake = __VERIFIER_nondet_int() ; + int s__state ; + int s__new_session ; + int s__server ; + int s__version = __VERIFIER_nondet_int() ; + int s__type ; + int s__init_num ; + int s__hit = __VERIFIER_nondet_int() ; + int s__rwstate ; + int s__init_buf___0 ; + int s__debug = __VERIFIER_nondet_int() ; + int s__shutdown ; + int s__cert = __VERIFIER_nondet_int() ; + int s__options = __VERIFIER_nondet_int() ; + int s__verify_mode = __VERIFIER_nondet_int() ; + int s__session__peer = __VERIFIER_nondet_int() ; + int s__cert__pkeys__AT0__privatekey = __VERIFIER_nondet_int() ; + int s__ctx__info_callback = __VERIFIER_nondet_int() ; + int s__ctx__stats__sess_accept_renegotiate = __VERIFIER_nondet_int() ; + int s__ctx__stats__sess_accept = __VERIFIER_nondet_int() ; + int s__ctx__stats__sess_accept_good = __VERIFIER_nondet_int() ; + int s__s3__tmp__cert_request ; + int s__s3__tmp__reuse_message = __VERIFIER_nondet_int() ; + int s__s3__tmp__use_rsa_tmp ; + int s__s3__tmp__new_cipher = __VERIFIER_nondet_int() ; + int s__s3__tmp__new_cipher__algorithms = __VERIFIER_nondet_int() ; + int s__s3__tmp__next_state___0 ; + int s__s3__tmp__new_cipher__algo_strength = __VERIFIER_nondet_int() ; + int s__session__cipher ; + int buf = __VERIFIER_nondet_int() ; + unsigned long l ; + unsigned long Time ; + unsigned long tmp = __VERIFIER_nondet_long() ; + int cb ; + long num1 ; + int ret ; + int new_state ; + int state ; + int skip ; + int got_new_session ; + int tmp___1 = __VERIFIER_nondet_int() ; + int tmp___2 = __VERIFIER_nondet_int() ; + int tmp___3 ; + int tmp___4 ; + int tmp___5 ; + int tmp___6 ; + int tmp___7 ; + long tmp___8 = __VERIFIER_nondet_long() ; + int tmp___9 ; + int tmp___10 ; + int blastFlag ; + int __cil_tmp55 ; + unsigned long __cil_tmp56 ; + unsigned long __cil_tmp57 ; + unsigned long __cil_tmp58 ; + unsigned long __cil_tmp59 ; + int __cil_tmp60 ; + unsigned long __cil_tmp61 ; + + { +#line 60 +; + s__state = initial_state; +#line 61 + blastFlag = 0; +#line 62 + Time = tmp; +#line 63 + cb = 0; +#line 64 + ret = -1; +#line 65 + skip = 0; +#line 66 + got_new_session = 0; +#line 67 + if (s__info_callback != 0) { +#line 68 + cb = s__info_callback; + } else { +#line 70 + if (s__ctx__info_callback != 0) { +#line 71 + cb = s__ctx__info_callback; + } + } +#line 76 + s__in_handshake ++; +#line 77 + if (tmp___1 + 12288) { +#line 78 + if (tmp___2 + 16384) { + + } + } +#line 86 + if (s__cert == 0) { +#line 87 + return (-1); + } + { +#line 92 + while (1) { + while_0_continue: /* CIL Label */ ; +#line 94 + state = s__state; +#line 95 + if (s__state == 12292) { + goto switch_1_12292; + } else { +#line 98 + if (s__state == 16384) { + goto switch_1_16384; + } else { +#line 101 + if (s__state == 8192) { + goto switch_1_8192; + } else { +#line 104 + if (s__state == 24576) { + goto switch_1_24576; + } else { +#line 107 + if (s__state == 8195) { + goto switch_1_8195; + } else { +#line 110 + if (s__state == 8480) { + goto switch_1_8480; + } else { +#line 113 + if (s__state == 8481) { + goto switch_1_8481; + } else { +#line 116 + if (s__state == 8482) { + goto switch_1_8482; + } else { +#line 119 + if (s__state == 8464) { + goto switch_1_8464; + } else { +#line 122 + if (s__state == 8465) { + goto switch_1_8465; + } else { +#line 125 + if (s__state == 8466) { + goto switch_1_8466; + } else { +#line 128 + if (s__state == 8496) { + goto switch_1_8496; + } else { +#line 131 + if (s__state == 8497) { + goto switch_1_8497; + } else { +#line 134 + if (s__state == 8512) { + goto switch_1_8512; + } else { +#line 137 + if (s__state == 8513) { + goto switch_1_8513; + } else { +#line 140 + if (s__state == 8528) { + goto switch_1_8528; + } else { +#line 143 + if (s__state == 8529) { + goto switch_1_8529; + } else { +#line 146 + if (s__state == 8544) { + goto switch_1_8544; + } else { +#line 149 + if (s__state == 8545) { + goto switch_1_8545; + } else { +#line 152 + if (s__state == 8560) { + goto switch_1_8560; + } else { +#line 155 + if (s__state == 8561) { + goto switch_1_8561; + } else { +#line 158 + if (s__state == 8448) { + goto switch_1_8448; + } else { +#line 161 + if (s__state == 8576) { + goto switch_1_8576; + } else { +#line 164 + if (s__state == 8577) { + goto switch_1_8577; + } else { +#line 167 + if (s__state == 8592) { + goto switch_1_8592; + } else { +#line 170 + if (s__state == 8593) { + goto switch_1_8593; + } else { +#line 173 + if (s__state == 8608) { + goto switch_1_8608; + } else { +#line 176 + if (s__state == 8609) { + goto switch_1_8609; + } else { +#line 179 + if (s__state == 8640) { + goto switch_1_8640; + } else { +#line 182 + if (s__state == 8641) { + goto switch_1_8641; + } else { +#line 185 + if (s__state == 8656) { + goto switch_1_8656; + } else { +#line 188 + if (s__state == 8657) { + goto switch_1_8657; + } else { +#line 191 + if (s__state == 8672) { + goto switch_1_8672; + } else { +#line 194 + if (s__state == 8673) { + goto switch_1_8673; + } else { +#line 197 + if (s__state == 3) { + goto switch_1_3; + } else { + goto switch_1_default; +#line 202 + if (0) { + switch_1_12292: +#line 204 + s__new_session = 1; + switch_1_16384: ; + switch_1_8192: ; + switch_1_24576: ; + switch_1_8195: +#line 209 + s__server = 1; +#line 210 + if (cb != 0) { + + } + { +#line 215 + __cil_tmp55 = s__version * 8; +#line 215 + if (__cil_tmp55 != 3) { +#line 216 + return (-1); + } + } +#line 220 + s__type = 8192; +#line 221 + if (s__init_buf___0 == 0) { +#line 222 + tmp___3 = __VERIFIER_nondet_int(); +#line 223 + if (! tmp___3) { +#line 224 + ret = -1; + goto end; + } +#line 229 + s__init_buf___0 = buf; + } +#line 233 + tmp___4 = __VERIFIER_nondet_int(); +#line 234 + if (! tmp___4) { +#line 235 + ret = -1; + goto end; + } +#line 240 + s__init_num = 0; +#line 241 + if (s__state != 12292) { +#line 242 + tmp___5 = __VERIFIER_nondet_int(); +#line 243 + if (! tmp___5) { +#line 244 + ret = -1; + goto end; + } +#line 249 + s__state = 8464; +#line 250 + s__ctx__stats__sess_accept ++; + } else { +#line 252 + s__ctx__stats__sess_accept_renegotiate ++; +#line 253 + s__state = 8480; + } + goto switch_1_break; + switch_1_8480: ; + switch_1_8481: +#line 258 + s__shutdown = 0; +#line 259 + ret = __VERIFIER_nondet_int(); +#line 260 + if (ret <= 0) { + goto end; + } +#line 265 + s__s3__tmp__next_state___0 = 8482; +#line 266 + s__state = 8448; +#line 267 + s__init_num = 0; + goto switch_1_break; + switch_1_8482: +#line 270 + s__state = 3; + goto switch_1_break; + switch_1_8464: ; + switch_1_8465: ; + switch_1_8466: +#line 275 + s__shutdown = 0; +#line 276 + ret = __VERIFIER_nondet_int(); +#line 277 + if (blastFlag == 0) { +#line 278 + blastFlag = 1; + } +#line 282 + if (ret <= 0) { + goto end; + } +#line 287 + got_new_session = 1; +#line 288 + s__state = 8496; +#line 289 + s__init_num = 0; + goto switch_1_break; + switch_1_8496: ; + switch_1_8497: +#line 293 + ret = __VERIFIER_nondet_int(); +#line 294 + if (blastFlag == 1) { +#line 295 + blastFlag = 2; + } +#line 299 + if (ret <= 0) { + goto end; + } +#line 304 + if (s__hit) { +#line 305 + s__state = 8656; + } else { +#line 307 + s__state = 8512; + } +#line 309 + s__init_num = 0; + goto switch_1_break; + switch_1_8512: ; + switch_1_8513: ; + { +#line 313 + __cil_tmp56 = (unsigned long )s__s3__tmp__new_cipher__algorithms; +#line 313 + if (__cil_tmp56 + 256UL) { +#line 314 + skip = 1; + } else { +#line 316 + ret = __VERIFIER_nondet_int(); +#line 317 + if (ret <= 0) { + goto end; + } + } + } +#line 323 + s__state = 8528; +#line 324 + s__init_num = 0; + goto switch_1_break; + switch_1_8528: ; + switch_1_8529: +#line 328 + l = (unsigned long )s__s3__tmp__new_cipher__algorithms; + { +#line 329 + __cil_tmp57 = (unsigned long )s__options; +#line 329 + if (__cil_tmp57 + 2097152UL) { +#line 330 + s__s3__tmp__use_rsa_tmp = 1; + } else { +#line 332 + s__s3__tmp__use_rsa_tmp = 0; + } + } +#line 334 + if (s__s3__tmp__use_rsa_tmp) { + goto _L___0; + } else { +#line 337 + if (l + 30UL) { + goto _L___0; + } else { +#line 340 + if (l + 1UL) { +#line 341 + if (s__cert__pkeys__AT0__privatekey == 0) { + goto _L___0; + } else { + { +#line 344 + __cil_tmp58 = (unsigned long )s__s3__tmp__new_cipher__algo_strength; +#line 344 + if (__cil_tmp58 + 2UL) { +#line 345 + tmp___6 = __VERIFIER_nondet_int(); + { +#line 346 + __cil_tmp59 = (unsigned long )s__s3__tmp__new_cipher__algo_strength; +#line 346 + if (__cil_tmp59 + 4UL) { +#line 347 + tmp___7 = 512; + } else { +#line 349 + tmp___7 = 1024; + } + } + { +#line 351 + __cil_tmp60 = tmp___6 * 8; +#line 351 + if (__cil_tmp60 > tmp___7) { + _L___0: +#line 353 + ret = __VERIFIER_nondet_int(); +#line 354 + if (ret <= 0) { + goto end; + } + } else { +#line 360 + skip = 1; + } + } + } else { +#line 363 + skip = 1; + } + } + } + } else { +#line 367 + skip = 1; + } + } + } +#line 371 + s__state = 8544; +#line 372 + s__init_num = 0; + goto switch_1_break; + switch_1_8544: ; + switch_1_8545: ; +#line 376 + if (s__verify_mode + 1) { +#line 377 + if (s__session__peer != 0) { +#line 378 + if (s__verify_mode + 4) { +#line 379 + skip = 1; +#line 380 + s__s3__tmp__cert_request = 0; +#line 381 + s__state = 8560; + } else { + goto _L___2; + } + } else { + _L___2: + { +#line 387 + __cil_tmp61 = (unsigned long )s__s3__tmp__new_cipher__algorithms; +#line 387 + if (__cil_tmp61 + 256UL) { +#line 388 + if (s__verify_mode + 2) { + goto _L___1; + } else { +#line 391 + skip = 1; +#line 392 + s__s3__tmp__cert_request = 0; +#line 393 + s__state = 8560; + } + } else { + _L___1: +#line 397 + s__s3__tmp__cert_request = 1; +#line 398 + ret = __VERIFIER_nondet_int(); +#line 399 + if (ret <= 0) { + goto end; + } +#line 404 + s__state = 8448; +#line 405 + s__s3__tmp__next_state___0 = 8576; +#line 406 + s__init_num = 0; + } + } + } + } else { +#line 410 + skip = 1; +#line 411 + s__s3__tmp__cert_request = 0; +#line 412 + s__state = 8560; + } + goto switch_1_break; + switch_1_8560: ; + switch_1_8561: +#line 417 + ret = __VERIFIER_nondet_int(); +#line 418 + if (ret <= 0) { + goto end; + } +#line 423 + s__s3__tmp__next_state___0 = 8576; +#line 424 + s__state = 8448; +#line 425 + s__init_num = 0; + goto switch_1_break; + switch_1_8448: +#line 428 + num1 = __VERIFIER_nondet_int(); +#line 429 + if (num1 > 0L) { +#line 430 + s__rwstate = 2; +#line 431 + num1 = tmp___8; +#line 432 + if (num1 <= 0L) { +#line 433 + ret = -1; + goto end; + } +#line 438 + s__rwstate = 1; + } +#line 442 + s__state = s__s3__tmp__next_state___0; + goto switch_1_break; + switch_1_8576: ; + switch_1_8577: +#line 446 + ret = __VERIFIER_nondet_int(); +#line 447 + if (ret <= 0) { + goto end; + } +#line 452 + if (ret == 2) { +#line 453 + s__state = 8466; + } else { +#line 455 + ret = __VERIFIER_nondet_int(); +#line 456 + if (ret <= 0) { + goto end; + } +#line 461 + s__init_num = 0; +#line 462 + s__state = 8592; + } + goto switch_1_break; + switch_1_8592: ; + switch_1_8593: +#line 467 + ret = __VERIFIER_nondet_int(); +#line 468 + if (ret <= 0) { + goto end; + } +#line 473 + s__state = 8608; +#line 474 + s__init_num = 0; + goto switch_1_break; + switch_1_8608: ; + switch_1_8609: +#line 478 + ret = __VERIFIER_nondet_int(); +#line 479 + if (ret <= 0) { + goto end; + } +#line 484 + s__state = 8640; +#line 485 + s__init_num = 0; + goto switch_1_break; + switch_1_8640: ; + switch_1_8641: +#line 489 + ret = __VERIFIER_nondet_int(); +#line 490 + if (blastFlag == 3) { +#line 491 + blastFlag = 4; + } +#line 495 + if (ret <= 0) { + goto end; + } +#line 500 + if (s__hit) { +#line 501 + s__state = 3; + } else { +#line 503 + s__state = 8656; + } +#line 505 + s__init_num = 0; + goto switch_1_break; + switch_1_8656: ; + switch_1_8657: +#line 509 + s__session__cipher = s__s3__tmp__new_cipher; +#line 510 + tmp___9 = __VERIFIER_nondet_int(); +#line 511 + if (! tmp___9) { +#line 512 + ret = -1; + goto end; + } +#line 517 + ret = __VERIFIER_nondet_int(); +#line 518 + if (blastFlag == 2) { +#line 519 + blastFlag = 3; + } +#line 523 + if (ret <= 0) { + goto end; + } +#line 528 + s__state = 8672; +#line 529 + s__init_num = 0; +#line 530 + tmp___10 = __VERIFIER_nondet_int(); +#line 531 + if (! tmp___10) { +#line 532 + ret = -1; + goto end; + } + goto switch_1_break; + switch_1_8672: ; + switch_1_8673: +#line 540 + ret = __VERIFIER_nondet_int(); +#line 541 + if (blastFlag == 4) { +#line 542 + blastFlag = 5; + } else { +#line 544 + if (blastFlag == 3) { + goto ERROR; + } + } +#line 550 + if (ret <= 0) { + goto end; + } +#line 555 + s__state = 8448; +#line 556 + if (s__hit) { +#line 557 + s__s3__tmp__next_state___0 = 8640; + } else { +#line 559 + s__s3__tmp__next_state___0 = 3; + } +#line 561 + s__init_num = 0; + goto switch_1_break; + switch_1_3: +#line 564 + s__init_buf___0 = 0; +#line 565 + s__init_num = 0; +#line 566 + if (got_new_session) { +#line 567 + s__new_session = 0; +#line 568 + s__ctx__stats__sess_accept_good ++; +#line 569 + if (cb != 0) { + + } + } +#line 577 + ret = 1; + goto end; + switch_1_default: +#line 580 + ret = -1; + goto end; + } else { + switch_1_break: ; + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } +#line 621 + if (! s__s3__tmp__reuse_message) { +#line 622 + if (! skip) { +#line 623 + if (s__debug) { +#line 624 + ret = __VERIFIER_nondet_int(); +#line 625 + if (ret <= 0) { + goto end; + } + } +#line 633 + if (cb != 0) { +#line 634 + if (s__state != state) { +#line 635 + new_state = s__state; +#line 636 + s__state = state; +#line 637 + s__state = new_state; + } + } + } + } +#line 650 + skip = 0; + } + while_0_break: /* CIL Label */ ; + } + + end: +#line 655 + s__in_handshake --; +#line 656 + if (cb != 0) { + + } +#line 661 + return (ret); + ERROR: __VERIFIER_error(); +#line 663 + return (-1); +} +} +#line 666 "s3_srvr_1_BUG.cil.c" +int main(void) +{ int s ; + int tmp ; + + { + { +#line 672 + s = 8464; +#line 673 + tmp = ssl3_accept(s); + } +#line 675 + return (tmp); +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/sanfoundry_02_true-unreach-call_ground.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/sanfoundry_02_true-unreach-call_ground.c new file mode 100644 index 000000000..48fa19f6e --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/sanfoundry_02_true-unreach-call_ground.c @@ -0,0 +1,38 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +int main() +{ + int array[100000]; + int i; + int largest1; + int largest2; + int temp; + largest1 = array[0]; + largest2 = array[1]; + if (largest1 < largest2) + { + temp = largest1; + largest1 = largest2; + largest2 = temp; + } + for (i = 2; i < 100000; i++) + { + if (array[i] >= largest1) + { + largest2 = largest1; + largest1 = array[i]; + } + else if (array[i] > largest2) + { + largest2 = array[i]; + } + } + int x; + for( x = 0 ; x < 100000 ; x++ ) { + __VERIFIER_assert( array[ x ] <= largest1 ); + } + for( x = 0 ; x < 100000 ; x++ ) { + __VERIFIER_assert( array[x] <= largest2 || array[x] == largest1 ); + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/simple-ext_1_true-valid-memsafety.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/simple-ext_1_true-valid-memsafety.c new file mode 100644 index 000000000..073651973 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/simple-ext_1_true-valid-memsafety.c @@ -0,0 +1,658 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +typedef long unsigned int size_t; +typedef int wchar_t; + +union wait + { + int w_status; + struct + { + unsigned int __w_termsig:7; + unsigned int __w_coredump:1; + unsigned int __w_retcode:8; + unsigned int:16; + } __wait_terminated; + struct + { + unsigned int __w_stopval:8; + unsigned int __w_stopsig:8; + unsigned int:16; + } __wait_stopped; + }; +typedef union + { + union wait *__uptr; + int *__iptr; + } __WAIT_STATUS __attribute__ ((__transparent_union__)); + +typedef struct + { + int quot; + int rem; + } div_t; +typedef struct + { + long int quot; + long int rem; + } ldiv_t; + + +__extension__ typedef struct + { + long long int quot; + long long int rem; + } lldiv_t; + +extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__ , __leaf__)) ; + +extern double atof (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern int atoi (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern long int atol (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +__extension__ extern long long int atoll (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +extern double strtod (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern float strtof (__const char *__restrict __nptr, + char **__restrict __endptr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern long double strtold (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern long int strtol (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern unsigned long int strtoul (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtouq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoll (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtoull (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *l64a (long int __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern long int a64l (__const char *__s) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + +typedef unsigned char __u_char; +typedef unsigned short int __u_short; +typedef unsigned int __u_int; +typedef unsigned long int __u_long; +typedef signed char __int8_t; +typedef unsigned char __uint8_t; +typedef signed short int __int16_t; +typedef unsigned short int __uint16_t; +typedef signed int __int32_t; +typedef unsigned int __uint32_t; +typedef signed long int __int64_t; +typedef unsigned long int __uint64_t; +typedef long int __quad_t; +typedef unsigned long int __u_quad_t; +typedef unsigned long int __dev_t; +typedef unsigned int __uid_t; +typedef unsigned int __gid_t; +typedef unsigned long int __ino_t; +typedef unsigned long int __ino64_t; +typedef unsigned int __mode_t; +typedef unsigned long int __nlink_t; +typedef long int __off_t; +typedef long int __off64_t; +typedef int __pid_t; +typedef struct { int __val[2]; } __fsid_t; +typedef long int __clock_t; +typedef unsigned long int __rlim_t; +typedef unsigned long int __rlim64_t; +typedef unsigned int __id_t; +typedef long int __time_t; +typedef unsigned int __useconds_t; +typedef long int __suseconds_t; +typedef int __daddr_t; +typedef long int __swblk_t; +typedef int __key_t; +typedef int __clockid_t; +typedef void * __timer_t; +typedef long int __blksize_t; +typedef long int __blkcnt_t; +typedef long int __blkcnt64_t; +typedef unsigned long int __fsblkcnt_t; +typedef unsigned long int __fsblkcnt64_t; +typedef unsigned long int __fsfilcnt_t; +typedef unsigned long int __fsfilcnt64_t; +typedef long int __ssize_t; +typedef __off64_t __loff_t; +typedef __quad_t *__qaddr_t; +typedef char *__caddr_t; +typedef long int __intptr_t; +typedef unsigned int __socklen_t; +typedef __u_char u_char; +typedef __u_short u_short; +typedef __u_int u_int; +typedef __u_long u_long; +typedef __quad_t quad_t; +typedef __u_quad_t u_quad_t; +typedef __fsid_t fsid_t; +typedef __loff_t loff_t; +typedef __ino_t ino_t; +typedef __dev_t dev_t; +typedef __gid_t gid_t; +typedef __mode_t mode_t; +typedef __nlink_t nlink_t; +typedef __uid_t uid_t; +typedef __off_t off_t; +typedef __pid_t pid_t; +typedef __id_t id_t; +typedef __ssize_t ssize_t; +typedef __daddr_t daddr_t; +typedef __caddr_t caddr_t; +typedef __key_t key_t; + +typedef __clock_t clock_t; + + + +typedef __time_t time_t; + + +typedef __clockid_t clockid_t; +typedef __timer_t timer_t; +typedef unsigned long int ulong; +typedef unsigned short int ushort; +typedef unsigned int uint; +typedef int int8_t __attribute__ ((__mode__ (__QI__))); +typedef int int16_t __attribute__ ((__mode__ (__HI__))); +typedef int int32_t __attribute__ ((__mode__ (__SI__))); +typedef int int64_t __attribute__ ((__mode__ (__DI__))); +typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); +typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); +typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); +typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); +typedef int register_t __attribute__ ((__mode__ (__word__))); +typedef int __sig_atomic_t; +typedef struct + { + unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; + } __sigset_t; +typedef __sigset_t sigset_t; +struct timespec + { + __time_t tv_sec; + long int tv_nsec; + }; +struct timeval + { + __time_t tv_sec; + __suseconds_t tv_usec; + }; +typedef __suseconds_t suseconds_t; +typedef long int __fd_mask; +typedef struct + { + __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; + } fd_set; +typedef __fd_mask fd_mask; + +extern int select (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + struct timeval *__restrict __timeout); +extern int pselect (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + const struct timespec *__restrict __timeout, + const __sigset_t *__restrict __sigmask); + + +__extension__ +extern unsigned int gnu_dev_major (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned int gnu_dev_minor (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned long long int gnu_dev_makedev (unsigned int __major, + unsigned int __minor) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); + +typedef __blksize_t blksize_t; +typedef __blkcnt_t blkcnt_t; +typedef __fsblkcnt_t fsblkcnt_t; + + +typedef __fsfilcnt_t fsfilcnt_t; +typedef unsigned long int pthread_t; +typedef union +{ + char __size[56]; + long int __align; +} pthread_attr_t; +typedef struct __pthread_internal_list +{ + struct __pthread_internal_list *__prev; + struct __pthread_internal_list *__next; +} __pthread_list_t; +typedef union +{ + struct __pthread_mutex_s + { + int __lock; + unsigned int __count; + int __owner; + unsigned int __nusers; + int __kind; + int __spins; + __pthread_list_t __list; + } __data; + char __size[40]; + long int __align; +} pthread_mutex_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_mutexattr_t; +typedef union +{ + struct + { + int __lock; + unsigned int __futex; + __extension__ unsigned long long int __total_seq; + __extension__ unsigned long long int __wakeup_seq; + __extension__ unsigned long long int __woken_seq; + void *__mutex; + unsigned int __nwaiters; + unsigned int __broadcast_seq; + } __data; + char __size[48]; + __extension__ long long int __align; +} pthread_cond_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_condattr_t; +typedef unsigned int pthread_key_t; +typedef int pthread_once_t; +typedef union +{ + struct + { + int __lock; + unsigned int __nr_readers; + unsigned int __readers_wakeup; + unsigned int __writer_wakeup; + unsigned int __nr_readers_queued; + unsigned int __nr_writers_queued; + int __writer; + int __shared; + unsigned long int __pad1; + unsigned long int __pad2; + unsigned int __flags; + } __data; + char __size[56]; + long int __align; +} pthread_rwlock_t; +typedef union +{ + char __size[8]; + long int __align; +} pthread_rwlockattr_t; +typedef volatile int pthread_spinlock_t; +typedef union +{ + char __size[32]; + long int __align; +} pthread_barrier_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_barrierattr_t; + +extern long int random (void) __attribute__ ((__nothrow__ , __leaf__)); +extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); +extern char *initstate (unsigned int __seed, char *__statebuf, + size_t __statelen) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + + +extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + + + +struct random_data + { + int32_t *fptr; + int32_t *rptr; + int32_t *state; + int rand_type; + int rand_deg; + int rand_sep; + int32_t *end_ptr; + }; + +extern int random_r (struct random_data *__restrict __buf, + int32_t *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int srandom_r (unsigned int __seed, struct random_data *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, + size_t __statelen, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4))); + +extern int setstate_r (char *__restrict __statebuf, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + +extern int rand (void) __attribute__ ((__nothrow__ , __leaf__)); + +extern void srand (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern double drand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int lrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int nrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int mrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int jrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern void srand48 (long int __seedval) __attribute__ ((__nothrow__ , __leaf__)); +extern unsigned short int *seed48 (unsigned short int __seed16v[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + +struct drand48_data + { + unsigned short int __x[3]; + unsigned short int __old_x[3]; + unsigned short int __c; + unsigned short int __init; + unsigned long long int __a; + }; + + +extern int drand48_r (struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int erand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int lrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int nrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int mrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int jrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int srand48_r (long int __seedval, struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int seed48_r (unsigned short int __seed16v[3], + struct drand48_data *__buffer) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int lcong48_r (unsigned short int __param[7], + struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + + + + +extern void *malloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + +extern void *calloc (size_t __nmemb, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + + + + + + + +extern void *realloc (void *__ptr, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); + +extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern void cfree (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + +extern void *alloca (size_t __size) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern void *valloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + +extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + + + +extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + + +extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern void exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern void _Exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern char *getenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *__secure_getenv (__const char *__name) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int putenv (char *__string) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int setenv (__const char *__name, __const char *__value, int __replace) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); +extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int clearenv (void) __attribute__ ((__nothrow__ , __leaf__)); +extern char *mktemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ; +extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern int system (__const char *__command) ; + +extern char *realpath (__const char *__restrict __name, + char *__restrict __resolved) __attribute__ ((__nothrow__ , __leaf__)) ; +typedef int (*__compar_fn_t) (__const void *, __const void *); + +extern void *bsearch (__const void *__key, __const void *__base, + size_t __nmemb, size_t __size, __compar_fn_t __compar) + __attribute__ ((__nonnull__ (1, 2, 5))) ; +extern void qsort (void *__base, size_t __nmemb, size_t __size, + __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); +extern int abs (int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern long int labs (long int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +__extension__ extern long long int llabs (long long int __x) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern div_t div (int __numer, int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern ldiv_t ldiv (long int __numer, long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + + +__extension__ extern lldiv_t lldiv (long long int __numer, + long long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *gcvt (double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern char *qecvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qfcvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qgcvt (long double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qecvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qfcvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); + +extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int mbtowc (wchar_t *__restrict __pwc, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__ , __leaf__)) ; +extern size_t mbstowcs (wchar_t *__restrict __pwcs, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)); +extern size_t wcstombs (char *__restrict __s, + __const wchar_t *__restrict __pwcs, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)); + +extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int getsubopt (char **__restrict __optionp, + char *__const *__restrict __tokens, + char **__restrict __valuep) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2, 3))) ; +extern int getloadavg (double __loadavg[], int __nelem) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +void exit(int s) { + _EXIT: goto _EXIT; +} +typedef struct node { + int h; + struct node *n; +} *List; +int main() { + List a = (List) malloc(sizeof(struct node)); + if (a == 0) exit(1); + List t; + List p = a; + int i = 0; + while (i < 30 && __VERIFIER_nondet_int()) { + p->h = i; + t = (List) malloc(sizeof(struct node)); + if (t == 0) exit(1); + p->n = t; + p = p->n; + i++; + } + p->h = i; + p->n = 0; + p = a; + i = 0; + while (p!=0) { + if (p->h != i) { + ERROR: __VERIFIER_error(); + } + p = p->n; + i++; + } + p = a; + while (p != 0) { + t = p->n; + free(p); + p = t; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/skiplist_3lvl_true-valid-memsafety.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/skiplist_3lvl_true-valid-memsafety.c new file mode 100644 index 000000000..aafbb8120 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/skiplist_3lvl_true-valid-memsafety.c @@ -0,0 +1,681 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +typedef long unsigned int size_t; +typedef int wchar_t; + +union wait + { + int w_status; + struct + { + unsigned int __w_termsig:7; + unsigned int __w_coredump:1; + unsigned int __w_retcode:8; + unsigned int:16; + } __wait_terminated; + struct + { + unsigned int __w_stopval:8; + unsigned int __w_stopsig:8; + unsigned int:16; + } __wait_stopped; + }; +typedef union + { + union wait *__uptr; + int *__iptr; + } __WAIT_STATUS __attribute__ ((__transparent_union__)); + +typedef struct + { + int quot; + int rem; + } div_t; +typedef struct + { + long int quot; + long int rem; + } ldiv_t; + + +__extension__ typedef struct + { + long long int quot; + long long int rem; + } lldiv_t; + +extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__ , __leaf__)) ; + +extern double atof (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern int atoi (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern long int atol (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +__extension__ extern long long int atoll (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +extern double strtod (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern float strtof (__const char *__restrict __nptr, + char **__restrict __endptr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern long double strtold (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern long int strtol (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern unsigned long int strtoul (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtouq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoll (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtoull (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *l64a (long int __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern long int a64l (__const char *__s) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + +typedef unsigned char __u_char; +typedef unsigned short int __u_short; +typedef unsigned int __u_int; +typedef unsigned long int __u_long; +typedef signed char __int8_t; +typedef unsigned char __uint8_t; +typedef signed short int __int16_t; +typedef unsigned short int __uint16_t; +typedef signed int __int32_t; +typedef unsigned int __uint32_t; +typedef signed long int __int64_t; +typedef unsigned long int __uint64_t; +typedef long int __quad_t; +typedef unsigned long int __u_quad_t; +typedef unsigned long int __dev_t; +typedef unsigned int __uid_t; +typedef unsigned int __gid_t; +typedef unsigned long int __ino_t; +typedef unsigned long int __ino64_t; +typedef unsigned int __mode_t; +typedef unsigned long int __nlink_t; +typedef long int __off_t; +typedef long int __off64_t; +typedef int __pid_t; +typedef struct { int __val[2]; } __fsid_t; +typedef long int __clock_t; +typedef unsigned long int __rlim_t; +typedef unsigned long int __rlim64_t; +typedef unsigned int __id_t; +typedef long int __time_t; +typedef unsigned int __useconds_t; +typedef long int __suseconds_t; +typedef int __daddr_t; +typedef long int __swblk_t; +typedef int __key_t; +typedef int __clockid_t; +typedef void * __timer_t; +typedef long int __blksize_t; +typedef long int __blkcnt_t; +typedef long int __blkcnt64_t; +typedef unsigned long int __fsblkcnt_t; +typedef unsigned long int __fsblkcnt64_t; +typedef unsigned long int __fsfilcnt_t; +typedef unsigned long int __fsfilcnt64_t; +typedef long int __ssize_t; +typedef __off64_t __loff_t; +typedef __quad_t *__qaddr_t; +typedef char *__caddr_t; +typedef long int __intptr_t; +typedef unsigned int __socklen_t; +typedef __u_char u_char; +typedef __u_short u_short; +typedef __u_int u_int; +typedef __u_long u_long; +typedef __quad_t quad_t; +typedef __u_quad_t u_quad_t; +typedef __fsid_t fsid_t; +typedef __loff_t loff_t; +typedef __ino_t ino_t; +typedef __dev_t dev_t; +typedef __gid_t gid_t; +typedef __mode_t mode_t; +typedef __nlink_t nlink_t; +typedef __uid_t uid_t; +typedef __off_t off_t; +typedef __pid_t pid_t; +typedef __id_t id_t; +typedef __ssize_t ssize_t; +typedef __daddr_t daddr_t; +typedef __caddr_t caddr_t; +typedef __key_t key_t; + +typedef __clock_t clock_t; + + + +typedef __time_t time_t; + + +typedef __clockid_t clockid_t; +typedef __timer_t timer_t; +typedef unsigned long int ulong; +typedef unsigned short int ushort; +typedef unsigned int uint; +typedef int int8_t __attribute__ ((__mode__ (__QI__))); +typedef int int16_t __attribute__ ((__mode__ (__HI__))); +typedef int int32_t __attribute__ ((__mode__ (__SI__))); +typedef int int64_t __attribute__ ((__mode__ (__DI__))); +typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); +typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); +typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); +typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); +typedef int register_t __attribute__ ((__mode__ (__word__))); +typedef int __sig_atomic_t; +typedef struct + { + unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; + } __sigset_t; +typedef __sigset_t sigset_t; +struct timespec + { + __time_t tv_sec; + long int tv_nsec; + }; +struct timeval + { + __time_t tv_sec; + __suseconds_t tv_usec; + }; +typedef __suseconds_t suseconds_t; +typedef long int __fd_mask; +typedef struct + { + __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; + } fd_set; +typedef __fd_mask fd_mask; + +extern int select (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + struct timeval *__restrict __timeout); +extern int pselect (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + const struct timespec *__restrict __timeout, + const __sigset_t *__restrict __sigmask); + + +__extension__ +extern unsigned int gnu_dev_major (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned int gnu_dev_minor (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned long long int gnu_dev_makedev (unsigned int __major, + unsigned int __minor) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); + +typedef __blksize_t blksize_t; +typedef __blkcnt_t blkcnt_t; +typedef __fsblkcnt_t fsblkcnt_t; + + +typedef __fsfilcnt_t fsfilcnt_t; +typedef unsigned long int pthread_t; +typedef union +{ + char __size[56]; + long int __align; +} pthread_attr_t; +typedef struct __pthread_internal_list +{ + struct __pthread_internal_list *__prev; + struct __pthread_internal_list *__next; +} __pthread_list_t; +typedef union +{ + struct __pthread_mutex_s + { + int __lock; + unsigned int __count; + int __owner; + unsigned int __nusers; + int __kind; + int __spins; + __pthread_list_t __list; + } __data; + char __size[40]; + long int __align; +} pthread_mutex_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_mutexattr_t; +typedef union +{ + struct + { + int __lock; + unsigned int __futex; + __extension__ unsigned long long int __total_seq; + __extension__ unsigned long long int __wakeup_seq; + __extension__ unsigned long long int __woken_seq; + void *__mutex; + unsigned int __nwaiters; + unsigned int __broadcast_seq; + } __data; + char __size[48]; + __extension__ long long int __align; +} pthread_cond_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_condattr_t; +typedef unsigned int pthread_key_t; +typedef int pthread_once_t; +typedef union +{ + struct + { + int __lock; + unsigned int __nr_readers; + unsigned int __readers_wakeup; + unsigned int __writer_wakeup; + unsigned int __nr_readers_queued; + unsigned int __nr_writers_queued; + int __writer; + int __shared; + unsigned long int __pad1; + unsigned long int __pad2; + unsigned int __flags; + } __data; + char __size[56]; + long int __align; +} pthread_rwlock_t; +typedef union +{ + char __size[8]; + long int __align; +} pthread_rwlockattr_t; +typedef volatile int pthread_spinlock_t; +typedef union +{ + char __size[32]; + long int __align; +} pthread_barrier_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_barrierattr_t; + +extern long int random (void) __attribute__ ((__nothrow__ , __leaf__)); +extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); +extern char *initstate (unsigned int __seed, char *__statebuf, + size_t __statelen) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + + +extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + + + +struct random_data + { + int32_t *fptr; + int32_t *rptr; + int32_t *state; + int rand_type; + int rand_deg; + int rand_sep; + int32_t *end_ptr; + }; + +extern int random_r (struct random_data *__restrict __buf, + int32_t *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int srandom_r (unsigned int __seed, struct random_data *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, + size_t __statelen, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4))); + +extern int setstate_r (char *__restrict __statebuf, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + +extern int rand (void) __attribute__ ((__nothrow__ , __leaf__)); + +extern void srand (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern double drand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int lrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int nrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int mrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int jrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern void srand48 (long int __seedval) __attribute__ ((__nothrow__ , __leaf__)); +extern unsigned short int *seed48 (unsigned short int __seed16v[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + +struct drand48_data + { + unsigned short int __x[3]; + unsigned short int __old_x[3]; + unsigned short int __c; + unsigned short int __init; + unsigned long long int __a; + }; + + +extern int drand48_r (struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int erand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int lrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int nrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int mrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int jrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int srand48_r (long int __seedval, struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int seed48_r (unsigned short int __seed16v[3], + struct drand48_data *__buffer) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int lcong48_r (unsigned short int __param[7], + struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + + + + +extern void *malloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + +extern void *calloc (size_t __nmemb, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + + + + + + + +extern void *realloc (void *__ptr, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); + +extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern void cfree (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + +extern void *alloca (size_t __size) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern void *valloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + +extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + + + +extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + + +extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern void exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern void _Exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern char *getenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *__secure_getenv (__const char *__name) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int putenv (char *__string) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int setenv (__const char *__name, __const char *__value, int __replace) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); +extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int clearenv (void) __attribute__ ((__nothrow__ , __leaf__)); +extern char *mktemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ; +extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern int system (__const char *__command) ; + +extern char *realpath (__const char *__restrict __name, + char *__restrict __resolved) __attribute__ ((__nothrow__ , __leaf__)) ; +typedef int (*__compar_fn_t) (__const void *, __const void *); + +extern void *bsearch (__const void *__key, __const void *__base, + size_t __nmemb, size_t __size, __compar_fn_t __compar) + __attribute__ ((__nonnull__ (1, 2, 5))) ; +extern void qsort (void *__base, size_t __nmemb, size_t __size, + __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); +extern int abs (int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern long int labs (long int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +__extension__ extern long long int llabs (long long int __x) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern div_t div (int __numer, int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern ldiv_t ldiv (long int __numer, long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + + +__extension__ extern lldiv_t lldiv (long long int __numer, + long long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *gcvt (double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern char *qecvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qfcvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qgcvt (long double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qecvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qfcvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); + +extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int mbtowc (wchar_t *__restrict __pwc, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__ , __leaf__)) ; +extern size_t mbstowcs (wchar_t *__restrict __pwcs, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)); +extern size_t wcstombs (char *__restrict __s, + __const wchar_t *__restrict __pwcs, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)); + +extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int getsubopt (char **__restrict __optionp, + char *__const *__restrict __tokens, + char **__restrict __valuep) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2, 3))) ; +extern int getloadavg (double __loadavg[], int __nelem) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +struct sl_item { + struct sl_item *n1, *n2, *n3; +}; +struct sl { + struct sl_item *head, *tail; +}; +struct sl_item* alloc_or_die(void) +{ + struct sl_item *pi = malloc(sizeof(struct sl_item)); + return pi; +} +struct sl* create_sl_with_head_and_tail(void) +{ + struct sl *sl = malloc(sizeof(*sl)); + sl->head = malloc(sizeof(struct sl_item)); + sl->tail = malloc(sizeof(struct sl_item)); + sl->head->n3 = sl->head->n2 = sl->head->n1 = sl->tail; + sl->tail->n3 = sl->tail->n2 = sl->tail->n1 = ((void *)0); + return sl; +} +void sl_random_insert(struct sl *sl) +{ + struct sl_item *a1, *a2, *a3; + struct sl_item *new; + a3 = sl->head; + while (a3->n3 != sl->tail && __VERIFIER_nondet_int()) + a3 = a3->n3; + a2 = a3; + while (a2->n2 != a3->n3 && __VERIFIER_nondet_int()) + a2 = a2->n2; + a1 = a2; + while (a1->n1 != a2->n2 && __VERIFIER_nondet_int()) + a1 = a1->n1; + new = malloc(sizeof(struct sl_item)); + new->n1 = a1->n1; + a1->n1 = new; + if (__VERIFIER_nondet_int()) { + new->n2 = a2->n2; + a2->n2 = new; + if (__VERIFIER_nondet_int()) { + new->n3 = a3->n3; + a3->n3 = new; + } + } +} +void destroy_sl(struct sl *sl) +{ + struct sl_item *tmp; + while (sl->head) { + tmp = sl->head; + sl->head = sl->head->n1; + free(tmp); + } + free(sl); +} +int main() +{ + struct sl *sl = create_sl_with_head_and_tail(); + while (__VERIFIER_nondet_int()) + sl_random_insert(sl); + destroy_sl(sl); + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/sll_to_dll_rev_true-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/sll_to_dll_rev_true-unreach-call.c new file mode 100644 index 000000000..79a73cd95 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/sll_to_dll_rev_true-unreach-call.c @@ -0,0 +1,719 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +typedef long unsigned int size_t; +typedef int wchar_t; + +union wait + { + int w_status; + struct + { + unsigned int __w_termsig:7; + unsigned int __w_coredump:1; + unsigned int __w_retcode:8; + unsigned int:16; + } __wait_terminated; + struct + { + unsigned int __w_stopval:8; + unsigned int __w_stopsig:8; + unsigned int:16; + } __wait_stopped; + }; +typedef union + { + union wait *__uptr; + int *__iptr; + } __WAIT_STATUS __attribute__ ((__transparent_union__)); + +typedef struct + { + int quot; + int rem; + } div_t; +typedef struct + { + long int quot; + long int rem; + } ldiv_t; + + +__extension__ typedef struct + { + long long int quot; + long long int rem; + } lldiv_t; + +extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__ , __leaf__)) ; + +extern double atof (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern int atoi (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern long int atol (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +__extension__ extern long long int atoll (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +extern double strtod (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern float strtof (__const char *__restrict __nptr, + char **__restrict __endptr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern long double strtold (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern long int strtol (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern unsigned long int strtoul (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtouq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoll (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtoull (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *l64a (long int __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern long int a64l (__const char *__s) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + +typedef unsigned char __u_char; +typedef unsigned short int __u_short; +typedef unsigned int __u_int; +typedef unsigned long int __u_long; +typedef signed char __int8_t; +typedef unsigned char __uint8_t; +typedef signed short int __int16_t; +typedef unsigned short int __uint16_t; +typedef signed int __int32_t; +typedef unsigned int __uint32_t; +typedef signed long int __int64_t; +typedef unsigned long int __uint64_t; +typedef long int __quad_t; +typedef unsigned long int __u_quad_t; +typedef unsigned long int __dev_t; +typedef unsigned int __uid_t; +typedef unsigned int __gid_t; +typedef unsigned long int __ino_t; +typedef unsigned long int __ino64_t; +typedef unsigned int __mode_t; +typedef unsigned long int __nlink_t; +typedef long int __off_t; +typedef long int __off64_t; +typedef int __pid_t; +typedef struct { int __val[2]; } __fsid_t; +typedef long int __clock_t; +typedef unsigned long int __rlim_t; +typedef unsigned long int __rlim64_t; +typedef unsigned int __id_t; +typedef long int __time_t; +typedef unsigned int __useconds_t; +typedef long int __suseconds_t; +typedef int __daddr_t; +typedef long int __swblk_t; +typedef int __key_t; +typedef int __clockid_t; +typedef void * __timer_t; +typedef long int __blksize_t; +typedef long int __blkcnt_t; +typedef long int __blkcnt64_t; +typedef unsigned long int __fsblkcnt_t; +typedef unsigned long int __fsblkcnt64_t; +typedef unsigned long int __fsfilcnt_t; +typedef unsigned long int __fsfilcnt64_t; +typedef long int __ssize_t; +typedef __off64_t __loff_t; +typedef __quad_t *__qaddr_t; +typedef char *__caddr_t; +typedef long int __intptr_t; +typedef unsigned int __socklen_t; +typedef __u_char u_char; +typedef __u_short u_short; +typedef __u_int u_int; +typedef __u_long u_long; +typedef __quad_t quad_t; +typedef __u_quad_t u_quad_t; +typedef __fsid_t fsid_t; +typedef __loff_t loff_t; +typedef __ino_t ino_t; +typedef __dev_t dev_t; +typedef __gid_t gid_t; +typedef __mode_t mode_t; +typedef __nlink_t nlink_t; +typedef __uid_t uid_t; +typedef __off_t off_t; +typedef __pid_t pid_t; +typedef __id_t id_t; +typedef __ssize_t ssize_t; +typedef __daddr_t daddr_t; +typedef __caddr_t caddr_t; +typedef __key_t key_t; + +typedef __clock_t clock_t; + + + +typedef __time_t time_t; + + +typedef __clockid_t clockid_t; +typedef __timer_t timer_t; +typedef unsigned long int ulong; +typedef unsigned short int ushort; +typedef unsigned int uint; +typedef int int8_t __attribute__ ((__mode__ (__QI__))); +typedef int int16_t __attribute__ ((__mode__ (__HI__))); +typedef int int32_t __attribute__ ((__mode__ (__SI__))); +typedef int int64_t __attribute__ ((__mode__ (__DI__))); +typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); +typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); +typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); +typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); +typedef int register_t __attribute__ ((__mode__ (__word__))); +typedef int __sig_atomic_t; +typedef struct + { + unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; + } __sigset_t; +typedef __sigset_t sigset_t; +struct timespec + { + __time_t tv_sec; + long int tv_nsec; + }; +struct timeval + { + __time_t tv_sec; + __suseconds_t tv_usec; + }; +typedef __suseconds_t suseconds_t; +typedef long int __fd_mask; +typedef struct + { + __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; + } fd_set; +typedef __fd_mask fd_mask; + +extern int select (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + struct timeval *__restrict __timeout); +extern int pselect (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + const struct timespec *__restrict __timeout, + const __sigset_t *__restrict __sigmask); + + +__extension__ +extern unsigned int gnu_dev_major (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned int gnu_dev_minor (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned long long int gnu_dev_makedev (unsigned int __major, + unsigned int __minor) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); + +typedef __blksize_t blksize_t; +typedef __blkcnt_t blkcnt_t; +typedef __fsblkcnt_t fsblkcnt_t; + + +typedef __fsfilcnt_t fsfilcnt_t; +typedef unsigned long int pthread_t; +typedef union +{ + char __size[56]; + long int __align; +} pthread_attr_t; +typedef struct __pthread_internal_list +{ + struct __pthread_internal_list *__prev; + struct __pthread_internal_list *__next; +} __pthread_list_t; +typedef union +{ + struct __pthread_mutex_s + { + int __lock; + unsigned int __count; + int __owner; + unsigned int __nusers; + int __kind; + int __spins; + __pthread_list_t __list; + } __data; + char __size[40]; + long int __align; +} pthread_mutex_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_mutexattr_t; +typedef union +{ + struct + { + int __lock; + unsigned int __futex; + __extension__ unsigned long long int __total_seq; + __extension__ unsigned long long int __wakeup_seq; + __extension__ unsigned long long int __woken_seq; + void *__mutex; + unsigned int __nwaiters; + unsigned int __broadcast_seq; + } __data; + char __size[48]; + __extension__ long long int __align; +} pthread_cond_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_condattr_t; +typedef unsigned int pthread_key_t; +typedef int pthread_once_t; +typedef union +{ + struct + { + int __lock; + unsigned int __nr_readers; + unsigned int __readers_wakeup; + unsigned int __writer_wakeup; + unsigned int __nr_readers_queued; + unsigned int __nr_writers_queued; + int __writer; + int __shared; + unsigned long int __pad1; + unsigned long int __pad2; + unsigned int __flags; + } __data; + char __size[56]; + long int __align; +} pthread_rwlock_t; +typedef union +{ + char __size[8]; + long int __align; +} pthread_rwlockattr_t; +typedef volatile int pthread_spinlock_t; +typedef union +{ + char __size[32]; + long int __align; +} pthread_barrier_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_barrierattr_t; + +extern long int random (void) __attribute__ ((__nothrow__ , __leaf__)); +extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); +extern char *initstate (unsigned int __seed, char *__statebuf, + size_t __statelen) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + + +extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + + + +struct random_data + { + int32_t *fptr; + int32_t *rptr; + int32_t *state; + int rand_type; + int rand_deg; + int rand_sep; + int32_t *end_ptr; + }; + +extern int random_r (struct random_data *__restrict __buf, + int32_t *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int srandom_r (unsigned int __seed, struct random_data *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, + size_t __statelen, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4))); + +extern int setstate_r (char *__restrict __statebuf, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + +extern int rand (void) __attribute__ ((__nothrow__ , __leaf__)); + +extern void srand (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern double drand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int lrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int nrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int mrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int jrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern void srand48 (long int __seedval) __attribute__ ((__nothrow__ , __leaf__)); +extern unsigned short int *seed48 (unsigned short int __seed16v[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + +struct drand48_data + { + unsigned short int __x[3]; + unsigned short int __old_x[3]; + unsigned short int __c; + unsigned short int __init; + unsigned long long int __a; + }; + + +extern int drand48_r (struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int erand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int lrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int nrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int mrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int jrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int srand48_r (long int __seedval, struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int seed48_r (unsigned short int __seed16v[3], + struct drand48_data *__buffer) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int lcong48_r (unsigned short int __param[7], + struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + + + + +extern void *malloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + +extern void *calloc (size_t __nmemb, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + + + + + + + +extern void *realloc (void *__ptr, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); + +extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern void cfree (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + +extern void *alloca (size_t __size) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern void *valloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + +extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + + + +extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + + +extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern void exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern void _Exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern char *getenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *__secure_getenv (__const char *__name) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int putenv (char *__string) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int setenv (__const char *__name, __const char *__value, int __replace) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); +extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int clearenv (void) __attribute__ ((__nothrow__ , __leaf__)); +extern char *mktemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ; +extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern int system (__const char *__command) ; + +extern char *realpath (__const char *__restrict __name, + char *__restrict __resolved) __attribute__ ((__nothrow__ , __leaf__)) ; +typedef int (*__compar_fn_t) (__const void *, __const void *); + +extern void *bsearch (__const void *__key, __const void *__base, + size_t __nmemb, size_t __size, __compar_fn_t __compar) + __attribute__ ((__nonnull__ (1, 2, 5))) ; +extern void qsort (void *__base, size_t __nmemb, size_t __size, + __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); +extern int abs (int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern long int labs (long int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +__extension__ extern long long int llabs (long long int __x) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern div_t div (int __numer, int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern ldiv_t ldiv (long int __numer, long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + + +__extension__ extern lldiv_t lldiv (long long int __numer, + long long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *gcvt (double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern char *qecvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qfcvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qgcvt (long double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qecvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qfcvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); + +extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int mbtowc (wchar_t *__restrict __pwc, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__ , __leaf__)) ; +extern size_t mbstowcs (wchar_t *__restrict __pwcs, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)); +extern size_t wcstombs (char *__restrict __s, + __const wchar_t *__restrict __pwcs, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)); + +extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int getsubopt (char **__restrict __optionp, + char *__const *__restrict __tokens, + char **__restrict __valuep) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2, 3))) ; +extern int getloadavg (double __loadavg[], int __nelem) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern int __VERIFIER_nondet_int(void); +static void fail(void) { +ERROR: __VERIFIER_error(); +} +struct node { + struct node *next; + struct node *prev; +}; +static struct node* alloc_node(void) +{ + struct node *ptr = malloc(sizeof *ptr); + if (!ptr) + abort(); + ptr->next = ((void *)0); + ptr->prev = ((void *)0); + return ptr; +} +static void chain_node(struct node **ppnode) +{ + struct node *node = alloc_node(); + node->next = *ppnode; + *ppnode = node; +} +static struct node* create_sll(const struct node **pp1, const struct node **pp2) +{ + struct node *list = ((void *)0); + do + chain_node(&list); + while (__VERIFIER_nondet_int()); + *pp2 = list; + do + chain_node(&list); + while (__VERIFIER_nondet_int()); + *pp1 = list; + do + chain_node(&list); + while (__VERIFIER_nondet_int()); + return list; +} +void init_back_link(struct node *list) { + for (;;) { + struct node *next = list->next; + if (!next) + return; + next->prev = list; + list = next; + } +} +void reverse_dll(struct node *list) { + while (list) { + struct node *next = list->next; + list->next = list->prev; + list->prev = next; + list = next; + } +} +void remove_fw_link(struct node *list) { + while (list) { + struct node *next = list->next; + list->next = ((void *)0); + list = next; + } +} +void check_seq_next(const struct node *beg, const struct node *const end) { + do { if (!(beg)) fail(); } while (0); + do { if (!(end)) fail(); } while (0); + for (beg = beg->next; end != beg; beg = beg->next) + do { if (!(beg)) fail(); } while (0); +} +void check_seq_prev(const struct node *beg, const struct node *const end) { + do { if (!(beg)) fail(); } while (0); + do { if (!(end)) fail(); } while (0); + for (beg = beg->prev; end != beg; beg = beg->prev) + do { if (!(beg)) fail(); } while (0); +} +int main() +{ + const struct node *p1, *p2; + struct node *list = create_sll(&p1, &p2); + do { } while (0); + check_seq_next(p1, p2); + do { if (!(!p1->prev)) fail(); } while (0); + do { if (!(!p2->prev)) fail(); } while (0); + init_back_link(list); + do { } while (0); + check_seq_next(p1, p2); + check_seq_prev(p2, p1); + reverse_dll(list); + do { } while (0); + check_seq_prev(p1, p2); + check_seq_next(p2, p1); + remove_fw_link(list); + do { } while (0); + check_seq_prev(p1, p2); + while (list) { + struct node *prev = list->prev; + free(list); + list = prev; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/sorting_bubblesort_true-unreach-call_ground.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/sorting_bubblesort_true-unreach-call_ground.c new file mode 100644 index 000000000..e395a18f0 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/sorting_bubblesort_true-unreach-call_ground.c @@ -0,0 +1,27 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +int main( ) { + int a[ 100000 ]; + int swapped = 1; + while ( swapped ) { + swapped = 0; + int i = 1; + while ( i < 100000 ) { + if ( a[i - 1] > a[i] ) { + int t = a[i]; + a[i] = a[i - 1]; + a[i-1] = t; + swapped = 1; + } + i = i + 1; + } + } + int x; + int y; + for ( x = 0 ; x < 100000 ; x++ ) { + for ( y = x+1 ; y < 100000 ; y++ ) { + __VERIFIER_assert( a[x] <= a[y] ); + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/splice_true-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/splice_true-unreach-call.c new file mode 100644 index 000000000..3bffed33d --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/splice_true-unreach-call.c @@ -0,0 +1,680 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +extern int __VERIFIER_nondet_int(); +typedef long unsigned int size_t; +typedef int wchar_t; + +union wait + { + int w_status; + struct + { + unsigned int __w_termsig:7; + unsigned int __w_coredump:1; + unsigned int __w_retcode:8; + unsigned int:16; + } __wait_terminated; + struct + { + unsigned int __w_stopval:8; + unsigned int __w_stopsig:8; + unsigned int:16; + } __wait_stopped; + }; +typedef union + { + union wait *__uptr; + int *__iptr; + } __WAIT_STATUS __attribute__ ((__transparent_union__)); + +typedef struct + { + int quot; + int rem; + } div_t; +typedef struct + { + long int quot; + long int rem; + } ldiv_t; + + +__extension__ typedef struct + { + long long int quot; + long long int rem; + } lldiv_t; + +extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__ , __leaf__)) ; + +extern double atof (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern int atoi (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern long int atol (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +__extension__ extern long long int atoll (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +extern double strtod (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern float strtof (__const char *__restrict __nptr, + char **__restrict __endptr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern long double strtold (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern long int strtol (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern unsigned long int strtoul (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtouq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoll (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtoull (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *l64a (long int __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern long int a64l (__const char *__s) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + +typedef unsigned char __u_char; +typedef unsigned short int __u_short; +typedef unsigned int __u_int; +typedef unsigned long int __u_long; +typedef signed char __int8_t; +typedef unsigned char __uint8_t; +typedef signed short int __int16_t; +typedef unsigned short int __uint16_t; +typedef signed int __int32_t; +typedef unsigned int __uint32_t; +typedef signed long int __int64_t; +typedef unsigned long int __uint64_t; +typedef long int __quad_t; +typedef unsigned long int __u_quad_t; +typedef unsigned long int __dev_t; +typedef unsigned int __uid_t; +typedef unsigned int __gid_t; +typedef unsigned long int __ino_t; +typedef unsigned long int __ino64_t; +typedef unsigned int __mode_t; +typedef unsigned long int __nlink_t; +typedef long int __off_t; +typedef long int __off64_t; +typedef int __pid_t; +typedef struct { int __val[2]; } __fsid_t; +typedef long int __clock_t; +typedef unsigned long int __rlim_t; +typedef unsigned long int __rlim64_t; +typedef unsigned int __id_t; +typedef long int __time_t; +typedef unsigned int __useconds_t; +typedef long int __suseconds_t; +typedef int __daddr_t; +typedef long int __swblk_t; +typedef int __key_t; +typedef int __clockid_t; +typedef void * __timer_t; +typedef long int __blksize_t; +typedef long int __blkcnt_t; +typedef long int __blkcnt64_t; +typedef unsigned long int __fsblkcnt_t; +typedef unsigned long int __fsblkcnt64_t; +typedef unsigned long int __fsfilcnt_t; +typedef unsigned long int __fsfilcnt64_t; +typedef long int __ssize_t; +typedef __off64_t __loff_t; +typedef __quad_t *__qaddr_t; +typedef char *__caddr_t; +typedef long int __intptr_t; +typedef unsigned int __socklen_t; +typedef __u_char u_char; +typedef __u_short u_short; +typedef __u_int u_int; +typedef __u_long u_long; +typedef __quad_t quad_t; +typedef __u_quad_t u_quad_t; +typedef __fsid_t fsid_t; +typedef __loff_t loff_t; +typedef __ino_t ino_t; +typedef __dev_t dev_t; +typedef __gid_t gid_t; +typedef __mode_t mode_t; +typedef __nlink_t nlink_t; +typedef __uid_t uid_t; +typedef __off_t off_t; +typedef __pid_t pid_t; +typedef __id_t id_t; +typedef __ssize_t ssize_t; +typedef __daddr_t daddr_t; +typedef __caddr_t caddr_t; +typedef __key_t key_t; + +typedef __clock_t clock_t; + + + +typedef __time_t time_t; + + +typedef __clockid_t clockid_t; +typedef __timer_t timer_t; +typedef unsigned long int ulong; +typedef unsigned short int ushort; +typedef unsigned int uint; +typedef int int8_t __attribute__ ((__mode__ (__QI__))); +typedef int int16_t __attribute__ ((__mode__ (__HI__))); +typedef int int32_t __attribute__ ((__mode__ (__SI__))); +typedef int int64_t __attribute__ ((__mode__ (__DI__))); +typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); +typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); +typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); +typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); +typedef int register_t __attribute__ ((__mode__ (__word__))); +typedef int __sig_atomic_t; +typedef struct + { + unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; + } __sigset_t; +typedef __sigset_t sigset_t; +struct timespec + { + __time_t tv_sec; + long int tv_nsec; + }; +struct timeval + { + __time_t tv_sec; + __suseconds_t tv_usec; + }; +typedef __suseconds_t suseconds_t; +typedef long int __fd_mask; +typedef struct + { + __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; + } fd_set; +typedef __fd_mask fd_mask; + +extern int select (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + struct timeval *__restrict __timeout); +extern int pselect (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + const struct timespec *__restrict __timeout, + const __sigset_t *__restrict __sigmask); + + +__extension__ +extern unsigned int gnu_dev_major (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned int gnu_dev_minor (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned long long int gnu_dev_makedev (unsigned int __major, + unsigned int __minor) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); + +typedef __blksize_t blksize_t; +typedef __blkcnt_t blkcnt_t; +typedef __fsblkcnt_t fsblkcnt_t; + +typedef __fsfilcnt_t fsfilcnt_t; +typedef unsigned long int pthread_t; +typedef union +{ + char __size[56]; + long int __align; +} pthread_attr_t; +typedef struct __pthread_internal_list +{ + struct __pthread_internal_list *__prev; + struct __pthread_internal_list *__next; +} __pthread_list_t; +typedef union +{ + struct __pthread_mutex_s + { + int __lock; + unsigned int __count; + int __owner; + unsigned int __nusers; + int __kind; + int __spins; + __pthread_list_t __list; + } __data; + char __size[40]; + long int __align; +} pthread_mutex_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_mutexattr_t; +typedef union +{ + struct + { + int __lock; + unsigned int __futex; + __extension__ unsigned long long int __total_seq; + __extension__ unsigned long long int __wakeup_seq; + __extension__ unsigned long long int __woken_seq; + void *__mutex; + unsigned int __nwaiters; + unsigned int __broadcast_seq; + } __data; + char __size[48]; + __extension__ long long int __align; +} pthread_cond_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_condattr_t; +typedef unsigned int pthread_key_t; +typedef int pthread_once_t; +typedef union +{ + struct + { + int __lock; + unsigned int __nr_readers; + unsigned int __readers_wakeup; + unsigned int __writer_wakeup; + unsigned int __nr_readers_queued; + unsigned int __nr_writers_queued; + int __writer; + int __shared; + unsigned long int __pad1; + unsigned long int __pad2; + unsigned int __flags; + } __data; + char __size[56]; + long int __align; +} pthread_rwlock_t; +typedef union +{ + char __size[8]; + long int __align; +} pthread_rwlockattr_t; +typedef volatile int pthread_spinlock_t; +typedef union +{ + char __size[32]; + long int __align; +} pthread_barrier_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_barrierattr_t; + +extern long int random (void) __attribute__ ((__nothrow__ , __leaf__)); +extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); +extern char *initstate (unsigned int __seed, char *__statebuf, + size_t __statelen) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + + +extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + + + +struct random_data + { + int32_t *fptr; + int32_t *rptr; + int32_t *state; + int rand_type; + int rand_deg; + int rand_sep; + int32_t *end_ptr; + }; + +extern int random_r (struct random_data *__restrict __buf, + int32_t *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int srandom_r (unsigned int __seed, struct random_data *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, + size_t __statelen, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4))); + +extern int setstate_r (char *__restrict __statebuf, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + +extern int rand (void) __attribute__ ((__nothrow__ , __leaf__)); + +extern void srand (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern double drand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int lrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int nrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int mrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int jrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern void srand48 (long int __seedval) __attribute__ ((__nothrow__ , __leaf__)); +extern unsigned short int *seed48 (unsigned short int __seed16v[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + +struct drand48_data + { + unsigned short int __x[3]; + unsigned short int __old_x[3]; + unsigned short int __c; + unsigned short int __init; + unsigned long long int __a; + }; + + +extern int drand48_r (struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int erand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int lrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int nrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int mrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int jrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int srand48_r (long int __seedval, struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int seed48_r (unsigned short int __seed16v[3], + struct drand48_data *__buffer) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int lcong48_r (unsigned short int __param[7], + struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + + + + +extern void *malloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + +extern void *calloc (size_t __nmemb, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + + + + + + + +extern void *realloc (void *__ptr, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); + +extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern void cfree (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + +extern void *alloca (size_t __size) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern void *valloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + +extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + + + +extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + + +extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern void exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern void _Exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern char *getenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *__secure_getenv (__const char *__name) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int putenv (char *__string) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int setenv (__const char *__name, __const char *__value, int __replace) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); +extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int clearenv (void) __attribute__ ((__nothrow__ , __leaf__)); +extern char *mktemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ; +extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern int system (__const char *__command) ; + +extern char *realpath (__const char *__restrict __name, + char *__restrict __resolved) __attribute__ ((__nothrow__ , __leaf__)) ; +typedef int (*__compar_fn_t) (__const void *, __const void *); + +extern void *bsearch (__const void *__key, __const void *__base, + size_t __nmemb, size_t __size, __compar_fn_t __compar) + __attribute__ ((__nonnull__ (1, 2, 5))) ; +extern void qsort (void *__base, size_t __nmemb, size_t __size, + __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); +extern int abs (int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern long int labs (long int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +__extension__ extern long long int llabs (long long int __x) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern div_t div (int __numer, int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern ldiv_t ldiv (long int __numer, long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + + +__extension__ extern lldiv_t lldiv (long long int __numer, + long long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *gcvt (double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern char *qecvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qfcvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qgcvt (long double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qecvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qfcvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); + +extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int mbtowc (wchar_t *__restrict __pwc, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__ , __leaf__)) ; +extern size_t mbstowcs (wchar_t *__restrict __pwcs, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)); +extern size_t wcstombs (char *__restrict __s, + __const wchar_t *__restrict __pwcs, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)); + +extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int getsubopt (char **__restrict __optionp, + char *__const *__restrict __tokens, + char **__restrict __valuep) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2, 3))) ; +extern int getloadavg (double __loadavg[], int __nelem) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +void exit(int s) { + _EXIT: goto _EXIT; +} +typedef struct node { + int h; + struct node *n; +} *List; +int main() { + int flag = 1; + List a = (List) malloc(sizeof(struct node)); + if (a == 0) exit(1); + List t; + List l1; + List l2; + List b; + List u; + List p = a; + while (__VERIFIER_nondet_int()) { + if (flag) { + p->h = 1; + flag = 0; + } else { + p->h = 2; + flag = 1; + } + t = (List) malloc(sizeof(struct node)); + if (t == 0) exit(1); + p->n = t; + p = p->n; + } + p->h = 3; + if (a->h == 3) return 0; + flag = 1; + l1 = 0; + l2 = 0; + p = a; + while (p->h != 3) { + t = p; + p = p->n; + if (flag) { + t->n = l1; + l1 = t; + flag = 0; + } else { + t->n = l2; + l2 = t; + flag = 1; + } + } + p = l1; + while (p != 0) { + if (p->h != 1) goto ERROR; + p = p->n; + } + p = l2; + while (p != 0) { + if (p->h != 2) goto ERROR; + p = p->n; + } + return 0; + ERROR: __VERIFIER_error(); return 1; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/standard_compare_true-unreach-call_ground.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/standard_compare_true-unreach-call_ground.c new file mode 100644 index 000000000..2f7a23be3 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/standard_compare_true-unreach-call_ground.c @@ -0,0 +1,21 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +int main( ) { + int a[100000]; + int b[100000]; + int i = 0; + int rv = 1; + while ( i < 100000 ) { + if ( a[i] != b[i] ) { + rv = 0; + } + i = i+1; + } + if ( rv ) { + int x; + for ( x = 0 ; x < 100000 ; x++ ) { + __VERIFIER_assert( a[x] == b[x] ); + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/standard_copy7_true-unreach-call_ground.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/standard_copy7_true-unreach-call_ground.c new file mode 100644 index 000000000..3c364aa34 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/standard_copy7_true-unreach-call_ground.c @@ -0,0 +1,39 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +int main( ) { + int a1[100000]; + int a2[100000]; + int a3[100000]; + int a4[100000]; + int a5[100000]; + int a6[100000]; + int a7[100000]; + int a8[100000]; + int i; + for ( i = 0 ; i < 100000 ; i++ ) { + a2[i] = a1[i]; + } + for ( i = 0 ; i < 100000 ; i++ ) { + a3[i] = a2[i]; + } + for ( i = 0 ; i < 100000 ; i++ ) { + a4[i] = a3[i]; + } + for ( i = 0 ; i < 100000 ; i++ ) { + a5[i] = a4[i]; + } + for ( i = 0 ; i < 100000 ; i++ ) { + a6[i] = a5[i]; + } + for ( i = 0 ; i < 100000 ; i++ ) { + a7[i] = a6[i]; + } + for ( i = 0 ; i < 100000 ; i++ ) { + a8[i] = a7[i]; + } + int x; + for ( x = 0 ; x < 100000 ; x++ ) { + __VERIFIER_assert( a1[x] == a8[x] ); + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/standard_password_true-unreach-call_ground.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/standard_password_true-unreach-call_ground.c new file mode 100644 index 000000000..0dad9ed96 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/standard_password_true-unreach-call_ground.c @@ -0,0 +1,20 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); +void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } } +int main( ) { + int password[ 100000 ]; + int guess[ 100000 ]; + int i; + int result = 1; + for ( i = 0 ; i < 100000 ; i++ ) { + if ( password[ i ] != guess[ i ] ) { + result = 0; + } + } + if ( result ) { + int x; + for ( x = 0 ; x < 100000 ; x++ ) { + __VERIFIER_assert( password[ x ] == guess[ x ] ); + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/stateful_check_false-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/stateful_check_false-unreach-call.c new file mode 100644 index 000000000..b522a8950 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/stateful_check_false-unreach-call.c @@ -0,0 +1,117 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +void __blast_assert(void) { +ERROR: __VERIFIER_error(); +} + + + +int ldv_mutex = 1; + +int open_called = 0; +extern int __VERIFIER_nondet_int(void); + +void mutex_lock(void) +{ + ((ldv_mutex == 1) ? 0 : __blast_assert()); + ldv_mutex = 2; +} + +void mutex_unlock(void) +{ + ((ldv_mutex == 2) ? 0 : __blast_assert()); + ldv_mutex = 1; +} + +void check_final_state(void) +{ + ((ldv_mutex == 1) ? 0 : __blast_assert()); +} + +static int misc_release() { + + + if(open_called) { + + mutex_lock(); + mutex_unlock(); + open_called = 0; + } else { + + mutex_lock(); + mutex_lock(); + } + return 0; +} + +static int misc_llseek() { + return 0; +} + +static int misc_read() { + return 0; +} + +static int misc_open() +{ + if(__VERIFIER_nondet_int()) { + + return 1; + } else { + open_called = 1; + return 0; + } +} + +static int my_init(void) +{ + + open_called = 0; + return 0; +} + +void main(void) { + int ldv_s_misc_fops_file_operations = 0; + my_init(); + while(__VERIFIER_nondet_int()) { + + switch(__VERIFIER_nondet_int()) { + + case 0: { + if(ldv_s_misc_fops_file_operations==0) { + misc_open(); + ldv_s_misc_fops_file_operations++; + } + } + break; + + case 1: { + if(ldv_s_misc_fops_file_operations==1) { + misc_read(); + ldv_s_misc_fops_file_operations++; + } + } + break; + + case 2: { + if(ldv_s_misc_fops_file_operations==2) { + misc_llseek(); + ldv_s_misc_fops_file_operations++; + } + } + break; + + case 3: { + if(ldv_s_misc_fops_file_operations==3) { + misc_release(); + ldv_s_misc_fops_file_operations=0; + } + } + break; + + default: break; + } + } + check_final_state(); + return; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/sum_2x3_false-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/sum_2x3_false-unreach-call.c new file mode 100644 index 000000000..bd705fb47 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/sum_2x3_false-unreach-call.c @@ -0,0 +1,18 @@ +extern void __VERIFIER_error(); + +int sum(int n, int m) { + if (n <= 0) { + return m + n; + } else { + return sum(n - 1, m + 1); + } +} + +int main(void) { + int a = 2; + int b = 3; + int result = sum(a, b); + if (result == a + b) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/sum_non_eq_false-unreach-call.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/sum_non_eq_false-unreach-call.c new file mode 100644 index 000000000..3b8af34f8 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/sum_non_eq_false-unreach-call.c @@ -0,0 +1,18 @@ +extern void __VERIFIER_error(); + +int sum(int n, int m) { + if (n == 0) { + return m; + } else { + return sum(n - 1, m + 1); + } +} + +int main(void) { + int a; + int b; + int result = sum(a, b); + if (result == a + b) { + ERROR: __VERIFIER_error(); + } +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/test-0134_true-valid-memsafety.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/test-0134_true-valid-memsafety.c new file mode 100644 index 000000000..834766631 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/test-0134_true-valid-memsafety.c @@ -0,0 +1,720 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +typedef long unsigned int size_t; +typedef int wchar_t; + +union wait + { + int w_status; + struct + { + unsigned int __w_termsig:7; + unsigned int __w_coredump:1; + unsigned int __w_retcode:8; + unsigned int:16; + } __wait_terminated; + struct + { + unsigned int __w_stopval:8; + unsigned int __w_stopsig:8; + unsigned int:16; + } __wait_stopped; + }; +typedef union + { + union wait *__uptr; + int *__iptr; + } __WAIT_STATUS __attribute__ ((__transparent_union__)); + +typedef struct + { + int quot; + int rem; + } div_t; +typedef struct + { + long int quot; + long int rem; + } ldiv_t; + + +__extension__ typedef struct + { + long long int quot; + long long int rem; + } lldiv_t; + +extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__ , __leaf__)) ; + +extern double atof (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern int atoi (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern long int atol (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +__extension__ extern long long int atoll (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +extern double strtod (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern float strtof (__const char *__restrict __nptr, + char **__restrict __endptr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern long double strtold (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern long int strtol (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern unsigned long int strtoul (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtouq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoll (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtoull (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *l64a (long int __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern long int a64l (__const char *__s) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + +typedef unsigned char __u_char; +typedef unsigned short int __u_short; +typedef unsigned int __u_int; +typedef unsigned long int __u_long; +typedef signed char __int8_t; +typedef unsigned char __uint8_t; +typedef signed short int __int16_t; +typedef unsigned short int __uint16_t; +typedef signed int __int32_t; +typedef unsigned int __uint32_t; +typedef signed long int __int64_t; +typedef unsigned long int __uint64_t; +typedef long int __quad_t; +typedef unsigned long int __u_quad_t; +typedef unsigned long int __dev_t; +typedef unsigned int __uid_t; +typedef unsigned int __gid_t; +typedef unsigned long int __ino_t; +typedef unsigned long int __ino64_t; +typedef unsigned int __mode_t; +typedef unsigned long int __nlink_t; +typedef long int __off_t; +typedef long int __off64_t; +typedef int __pid_t; +typedef struct { int __val[2]; } __fsid_t; +typedef long int __clock_t; +typedef unsigned long int __rlim_t; +typedef unsigned long int __rlim64_t; +typedef unsigned int __id_t; +typedef long int __time_t; +typedef unsigned int __useconds_t; +typedef long int __suseconds_t; +typedef int __daddr_t; +typedef long int __swblk_t; +typedef int __key_t; +typedef int __clockid_t; +typedef void * __timer_t; +typedef long int __blksize_t; +typedef long int __blkcnt_t; +typedef long int __blkcnt64_t; +typedef unsigned long int __fsblkcnt_t; +typedef unsigned long int __fsblkcnt64_t; +typedef unsigned long int __fsfilcnt_t; +typedef unsigned long int __fsfilcnt64_t; +typedef long int __ssize_t; +typedef __off64_t __loff_t; +typedef __quad_t *__qaddr_t; +typedef char *__caddr_t; +typedef long int __intptr_t; +typedef unsigned int __socklen_t; +typedef __u_char u_char; +typedef __u_short u_short; +typedef __u_int u_int; +typedef __u_long u_long; +typedef __quad_t quad_t; +typedef __u_quad_t u_quad_t; +typedef __fsid_t fsid_t; +typedef __loff_t loff_t; +typedef __ino_t ino_t; +typedef __dev_t dev_t; +typedef __gid_t gid_t; +typedef __mode_t mode_t; +typedef __nlink_t nlink_t; +typedef __uid_t uid_t; +typedef __off_t off_t; +typedef __pid_t pid_t; +typedef __id_t id_t; +typedef __ssize_t ssize_t; +typedef __daddr_t daddr_t; +typedef __caddr_t caddr_t; +typedef __key_t key_t; + +typedef __clock_t clock_t; + + + +typedef __time_t time_t; + + +typedef __clockid_t clockid_t; +typedef __timer_t timer_t; +typedef unsigned long int ulong; +typedef unsigned short int ushort; +typedef unsigned int uint; +typedef int int8_t __attribute__ ((__mode__ (__QI__))); +typedef int int16_t __attribute__ ((__mode__ (__HI__))); +typedef int int32_t __attribute__ ((__mode__ (__SI__))); +typedef int int64_t __attribute__ ((__mode__ (__DI__))); +typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); +typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); +typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); +typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); +typedef int register_t __attribute__ ((__mode__ (__word__))); +typedef int __sig_atomic_t; +typedef struct + { + unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; + } __sigset_t; +typedef __sigset_t sigset_t; +struct timespec + { + __time_t tv_sec; + long int tv_nsec; + }; +struct timeval + { + __time_t tv_sec; + __suseconds_t tv_usec; + }; +typedef __suseconds_t suseconds_t; +typedef long int __fd_mask; +typedef struct + { + __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; + } fd_set; +typedef __fd_mask fd_mask; + +extern int select (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + struct timeval *__restrict __timeout); +extern int pselect (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + const struct timespec *__restrict __timeout, + const __sigset_t *__restrict __sigmask); + + +__extension__ +extern unsigned int gnu_dev_major (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned int gnu_dev_minor (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned long long int gnu_dev_makedev (unsigned int __major, + unsigned int __minor) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); + +typedef __blksize_t blksize_t; +typedef __blkcnt_t blkcnt_t; +typedef __fsblkcnt_t fsblkcnt_t; + + +typedef __fsfilcnt_t fsfilcnt_t; +typedef unsigned long int pthread_t; +typedef union +{ + char __size[56]; + long int __align; +} pthread_attr_t; +typedef struct __pthread_internal_list +{ + struct __pthread_internal_list *__prev; + struct __pthread_internal_list *__next; +} __pthread_list_t; +typedef union +{ + struct __pthread_mutex_s + { + int __lock; + unsigned int __count; + int __owner; + unsigned int __nusers; + int __kind; + int __spins; + __pthread_list_t __list; + } __data; + char __size[40]; + long int __align; +} pthread_mutex_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_mutexattr_t; +typedef union +{ + struct + { + int __lock; + unsigned int __futex; + __extension__ unsigned long long int __total_seq; + __extension__ unsigned long long int __wakeup_seq; + __extension__ unsigned long long int __woken_seq; + void *__mutex; + unsigned int __nwaiters; + unsigned int __broadcast_seq; + } __data; + char __size[48]; + __extension__ long long int __align; +} pthread_cond_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_condattr_t; +typedef unsigned int pthread_key_t; +typedef int pthread_once_t; +typedef union +{ + struct + { + int __lock; + unsigned int __nr_readers; + unsigned int __readers_wakeup; + unsigned int __writer_wakeup; + unsigned int __nr_readers_queued; + unsigned int __nr_writers_queued; + int __writer; + int __shared; + unsigned long int __pad1; + unsigned long int __pad2; + unsigned int __flags; + } __data; + char __size[56]; + long int __align; +} pthread_rwlock_t; +typedef union +{ + char __size[8]; + long int __align; +} pthread_rwlockattr_t; +typedef volatile int pthread_spinlock_t; +typedef union +{ + char __size[32]; + long int __align; +} pthread_barrier_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_barrierattr_t; + +extern long int random (void) __attribute__ ((__nothrow__ , __leaf__)); +extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); +extern char *initstate (unsigned int __seed, char *__statebuf, + size_t __statelen) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + + +extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + + + +struct random_data + { + int32_t *fptr; + int32_t *rptr; + int32_t *state; + int rand_type; + int rand_deg; + int rand_sep; + int32_t *end_ptr; + }; + +extern int random_r (struct random_data *__restrict __buf, + int32_t *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int srandom_r (unsigned int __seed, struct random_data *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, + size_t __statelen, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4))); + +extern int setstate_r (char *__restrict __statebuf, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + +extern int rand (void) __attribute__ ((__nothrow__ , __leaf__)); + +extern void srand (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern double drand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int lrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int nrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int mrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int jrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern void srand48 (long int __seedval) __attribute__ ((__nothrow__ , __leaf__)); +extern unsigned short int *seed48 (unsigned short int __seed16v[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + +struct drand48_data + { + unsigned short int __x[3]; + unsigned short int __old_x[3]; + unsigned short int __c; + unsigned short int __init; + unsigned long long int __a; + }; + + +extern int drand48_r (struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int erand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int lrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int nrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int mrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int jrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int srand48_r (long int __seedval, struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int seed48_r (unsigned short int __seed16v[3], + struct drand48_data *__buffer) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int lcong48_r (unsigned short int __param[7], + struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + + + + +extern void *malloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + +extern void *calloc (size_t __nmemb, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + + + + + + + +extern void *realloc (void *__ptr, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); + +extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern void cfree (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + +extern void *alloca (size_t __size) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern void *valloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + +extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + + + +extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + + +extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern void exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern void _Exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern char *getenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *__secure_getenv (__const char *__name) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int putenv (char *__string) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int setenv (__const char *__name, __const char *__value, int __replace) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); +extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int clearenv (void) __attribute__ ((__nothrow__ , __leaf__)); +extern char *mktemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ; +extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern int system (__const char *__command) ; + +extern char *realpath (__const char *__restrict __name, + char *__restrict __resolved) __attribute__ ((__nothrow__ , __leaf__)) ; +typedef int (*__compar_fn_t) (__const void *, __const void *); + +extern void *bsearch (__const void *__key, __const void *__base, + size_t __nmemb, size_t __size, __compar_fn_t __compar) + __attribute__ ((__nonnull__ (1, 2, 5))) ; +extern void qsort (void *__base, size_t __nmemb, size_t __size, + __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); +extern int abs (int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern long int labs (long int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +__extension__ extern long long int llabs (long long int __x) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern div_t div (int __numer, int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern ldiv_t ldiv (long int __numer, long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + + +__extension__ extern lldiv_t lldiv (long long int __numer, + long long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *gcvt (double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern char *qecvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qfcvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qgcvt (long double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qecvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qfcvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); + +extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int mbtowc (wchar_t *__restrict __pwc, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__ , __leaf__)) ; +extern size_t mbstowcs (wchar_t *__restrict __pwcs, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)); +extern size_t wcstombs (char *__restrict __s, + __const wchar_t *__restrict __pwcs, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)); + +extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int getsubopt (char **__restrict __optionp, + char *__const *__restrict __tokens, + char **__restrict __valuep) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2, 3))) ; +extern int getloadavg (double __loadavg[], int __nelem) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern int __VERIFIER_nondet_int(void); +struct list_head { + struct list_head *next, *prev; +}; +static inline int list_empty(struct list_head *head) +{ + return head->next == head; +} +static inline void __list_add(struct list_head *new, + struct list_head *prev, + struct list_head *next) +{ + next->prev = new; + new->next = next; + new->prev = prev; + prev->next = new; +} +static inline void __list_del(struct list_head *prev, struct list_head *next) +{ + next->prev = prev; + prev->next = next; +} +static inline void list_add(struct list_head *new, struct list_head *head) +{ + __list_add(new, head, head->next); +} +static inline void list_del(struct list_head *entry) +{ + __list_del(entry->prev, entry->next); + entry->next = (void *) 0; + entry->prev = (void *) 0; +} +static inline void list_move(struct list_head *list, struct list_head *head) +{ + __list_del(list->prev, list->next); + list_add(list, head); +} +struct node { + int value; + struct list_head linkage; +}; +struct list_head gl_list = { &(gl_list), &(gl_list) }; +static void gl_insert(int value) +{ + struct node *node = malloc(sizeof *node); + if (!node) + abort(); + node->value = value; + list_add(&node->linkage, &gl_list); +} +static void gl_read() +{ + do { + gl_insert(__VERIFIER_nondet_int()); + } + while (__VERIFIER_nondet_int()); +} +static void gl_destroy() +{ + struct list_head *next; + while (&gl_list != (next = gl_list.next)) { + gl_list.next = next->next; + free(((struct node *)((char *)(next)-(unsigned long)(&((struct node *)0)->linkage)))); + } +} +static int val_from_node(struct list_head *head) { + struct node *entry = ((struct node *)((char *)(head)-(unsigned long)(&((struct node *)0)->linkage))); + return entry->value; +} +static struct list_head* gl_seek_max() +{ + if (list_empty(&gl_list)) + return ((void *)0); + struct list_head *pos, *max_pos = gl_list.next; + int max = val_from_node(max_pos); + for (pos = max_pos->next; &gl_list != pos; pos = pos->next) { + const int value = val_from_node(pos); + if (value < max) + continue; + max_pos = pos; + max = value; + } + return max_pos; +} +static void gl_sort() +{ + if (list_empty(&gl_list)) + return; + struct list_head dst = { &(dst), &(dst) }; + struct list_head *max_pos; + while ((max_pos = gl_seek_max())) + list_move(max_pos, &dst); + list_add(&gl_list, &dst); + list_del(&dst); +} +int main() +{ + gl_read(); + gl_sort(); + gl_destroy(); + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/test-0219_true-valid-memsafety.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/test-0219_true-valid-memsafety.c new file mode 100644 index 000000000..42ff2183e --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/test-0219_true-valid-memsafety.c @@ -0,0 +1,798 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +typedef long unsigned int size_t; +typedef int wchar_t; + +union wait + { + int w_status; + struct + { + unsigned int __w_termsig:7; + unsigned int __w_coredump:1; + unsigned int __w_retcode:8; + unsigned int:16; + } __wait_terminated; + struct + { + unsigned int __w_stopval:8; + unsigned int __w_stopsig:8; + unsigned int:16; + } __wait_stopped; + }; +typedef union + { + union wait *__uptr; + int *__iptr; + } __WAIT_STATUS __attribute__ ((__transparent_union__)); + +typedef struct + { + int quot; + int rem; + } div_t; +typedef struct + { + long int quot; + long int rem; + } ldiv_t; + + +__extension__ typedef struct + { + long long int quot; + long long int rem; + } lldiv_t; + +extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__ , __leaf__)) ; + +extern double atof (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern int atoi (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern long int atol (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +__extension__ extern long long int atoll (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +extern double strtod (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern float strtof (__const char *__restrict __nptr, + char **__restrict __endptr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern long double strtold (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern long int strtol (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern unsigned long int strtoul (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtouq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoll (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtoull (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *l64a (long int __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern long int a64l (__const char *__s) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + +typedef unsigned char __u_char; +typedef unsigned short int __u_short; +typedef unsigned int __u_int; +typedef unsigned long int __u_long; +typedef signed char __int8_t; +typedef unsigned char __uint8_t; +typedef signed short int __int16_t; +typedef unsigned short int __uint16_t; +typedef signed int __int32_t; +typedef unsigned int __uint32_t; +typedef signed long int __int64_t; +typedef unsigned long int __uint64_t; +typedef long int __quad_t; +typedef unsigned long int __u_quad_t; +typedef unsigned long int __dev_t; +typedef unsigned int __uid_t; +typedef unsigned int __gid_t; +typedef unsigned long int __ino_t; +typedef unsigned long int __ino64_t; +typedef unsigned int __mode_t; +typedef unsigned long int __nlink_t; +typedef long int __off_t; +typedef long int __off64_t; +typedef int __pid_t; +typedef struct { int __val[2]; } __fsid_t; +typedef long int __clock_t; +typedef unsigned long int __rlim_t; +typedef unsigned long int __rlim64_t; +typedef unsigned int __id_t; +typedef long int __time_t; +typedef unsigned int __useconds_t; +typedef long int __suseconds_t; +typedef int __daddr_t; +typedef long int __swblk_t; +typedef int __key_t; +typedef int __clockid_t; +typedef void * __timer_t; +typedef long int __blksize_t; +typedef long int __blkcnt_t; +typedef long int __blkcnt64_t; +typedef unsigned long int __fsblkcnt_t; +typedef unsigned long int __fsblkcnt64_t; +typedef unsigned long int __fsfilcnt_t; +typedef unsigned long int __fsfilcnt64_t; +typedef long int __ssize_t; +typedef __off64_t __loff_t; +typedef __quad_t *__qaddr_t; +typedef char *__caddr_t; +typedef long int __intptr_t; +typedef unsigned int __socklen_t; +typedef __u_char u_char; +typedef __u_short u_short; +typedef __u_int u_int; +typedef __u_long u_long; +typedef __quad_t quad_t; +typedef __u_quad_t u_quad_t; +typedef __fsid_t fsid_t; +typedef __loff_t loff_t; +typedef __ino_t ino_t; +typedef __dev_t dev_t; +typedef __gid_t gid_t; +typedef __mode_t mode_t; +typedef __nlink_t nlink_t; +typedef __uid_t uid_t; +typedef __off_t off_t; +typedef __pid_t pid_t; +typedef __id_t id_t; +typedef __ssize_t ssize_t; +typedef __daddr_t daddr_t; +typedef __caddr_t caddr_t; +typedef __key_t key_t; + +typedef __clock_t clock_t; + + + +typedef __time_t time_t; + + +typedef __clockid_t clockid_t; +typedef __timer_t timer_t; +typedef unsigned long int ulong; +typedef unsigned short int ushort; +typedef unsigned int uint; +typedef int int8_t __attribute__ ((__mode__ (__QI__))); +typedef int int16_t __attribute__ ((__mode__ (__HI__))); +typedef int int32_t __attribute__ ((__mode__ (__SI__))); +typedef int int64_t __attribute__ ((__mode__ (__DI__))); +typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); +typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); +typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); +typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); +typedef int register_t __attribute__ ((__mode__ (__word__))); +typedef int __sig_atomic_t; +typedef struct + { + unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; + } __sigset_t; +typedef __sigset_t sigset_t; +struct timespec + { + __time_t tv_sec; + long int tv_nsec; + }; +struct timeval + { + __time_t tv_sec; + __suseconds_t tv_usec; + }; +typedef __suseconds_t suseconds_t; +typedef long int __fd_mask; +typedef struct + { + __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; + } fd_set; +typedef __fd_mask fd_mask; + +extern int select (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + struct timeval *__restrict __timeout); +extern int pselect (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + const struct timespec *__restrict __timeout, + const __sigset_t *__restrict __sigmask); + + +__extension__ +extern unsigned int gnu_dev_major (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned int gnu_dev_minor (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned long long int gnu_dev_makedev (unsigned int __major, + unsigned int __minor) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); + +typedef __blksize_t blksize_t; +typedef __blkcnt_t blkcnt_t; +typedef __fsblkcnt_t fsblkcnt_t; + + +typedef __fsfilcnt_t fsfilcnt_t; +typedef unsigned long int pthread_t; +typedef union +{ + char __size[56]; + long int __align; +} pthread_attr_t; +typedef struct __pthread_internal_list +{ + struct __pthread_internal_list *__prev; + struct __pthread_internal_list *__next; +} __pthread_list_t; +typedef union +{ + struct __pthread_mutex_s + { + int __lock; + unsigned int __count; + int __owner; + unsigned int __nusers; + int __kind; + int __spins; + __pthread_list_t __list; + } __data; + char __size[40]; + long int __align; +} pthread_mutex_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_mutexattr_t; +typedef union +{ + struct + { + int __lock; + unsigned int __futex; + __extension__ unsigned long long int __total_seq; + __extension__ unsigned long long int __wakeup_seq; + __extension__ unsigned long long int __woken_seq; + void *__mutex; + unsigned int __nwaiters; + unsigned int __broadcast_seq; + } __data; + char __size[48]; + __extension__ long long int __align; +} pthread_cond_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_condattr_t; +typedef unsigned int pthread_key_t; +typedef int pthread_once_t; +typedef union +{ + struct + { + int __lock; + unsigned int __nr_readers; + unsigned int __readers_wakeup; + unsigned int __writer_wakeup; + unsigned int __nr_readers_queued; + unsigned int __nr_writers_queued; + int __writer; + int __shared; + unsigned long int __pad1; + unsigned long int __pad2; + unsigned int __flags; + } __data; + char __size[56]; + long int __align; +} pthread_rwlock_t; +typedef union +{ + char __size[8]; + long int __align; +} pthread_rwlockattr_t; +typedef volatile int pthread_spinlock_t; +typedef union +{ + char __size[32]; + long int __align; +} pthread_barrier_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_barrierattr_t; + +extern long int random (void) __attribute__ ((__nothrow__ , __leaf__)); +extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); +extern char *initstate (unsigned int __seed, char *__statebuf, + size_t __statelen) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + + +extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + + + +struct random_data + { + int32_t *fptr; + int32_t *rptr; + int32_t *state; + int rand_type; + int rand_deg; + int rand_sep; + int32_t *end_ptr; + }; + +extern int random_r (struct random_data *__restrict __buf, + int32_t *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int srandom_r (unsigned int __seed, struct random_data *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, + size_t __statelen, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4))); + +extern int setstate_r (char *__restrict __statebuf, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + +extern int rand (void) __attribute__ ((__nothrow__ , __leaf__)); + +extern void srand (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern double drand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int lrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int nrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int mrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int jrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern void srand48 (long int __seedval) __attribute__ ((__nothrow__ , __leaf__)); +extern unsigned short int *seed48 (unsigned short int __seed16v[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + +struct drand48_data + { + unsigned short int __x[3]; + unsigned short int __old_x[3]; + unsigned short int __c; + unsigned short int __init; + unsigned long long int __a; + }; + + +extern int drand48_r (struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int erand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int lrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int nrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int mrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int jrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int srand48_r (long int __seedval, struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int seed48_r (unsigned short int __seed16v[3], + struct drand48_data *__buffer) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int lcong48_r (unsigned short int __param[7], + struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + + + + +extern void *malloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + +extern void *calloc (size_t __nmemb, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + + + + + + + +extern void *realloc (void *__ptr, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); + +extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern void cfree (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + +extern void *alloca (size_t __size) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern void *valloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + +extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + + + +extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + + +extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern void exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern void _Exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern char *getenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *__secure_getenv (__const char *__name) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int putenv (char *__string) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int setenv (__const char *__name, __const char *__value, int __replace) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); +extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int clearenv (void) __attribute__ ((__nothrow__ , __leaf__)); +extern char *mktemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ; +extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern int system (__const char *__command) ; + +extern char *realpath (__const char *__restrict __name, + char *__restrict __resolved) __attribute__ ((__nothrow__ , __leaf__)) ; +typedef int (*__compar_fn_t) (__const void *, __const void *); + +extern void *bsearch (__const void *__key, __const void *__base, + size_t __nmemb, size_t __size, __compar_fn_t __compar) + __attribute__ ((__nonnull__ (1, 2, 5))) ; +extern void qsort (void *__base, size_t __nmemb, size_t __size, + __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); +extern int abs (int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern long int labs (long int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +__extension__ extern long long int llabs (long long int __x) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern div_t div (int __numer, int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern ldiv_t ldiv (long int __numer, long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + + +__extension__ extern lldiv_t lldiv (long long int __numer, + long long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *gcvt (double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern char *qecvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qfcvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qgcvt (long double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qecvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qfcvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); + +extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int mbtowc (wchar_t *__restrict __pwc, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__ , __leaf__)) ; +extern size_t mbstowcs (wchar_t *__restrict __pwcs, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)); +extern size_t wcstombs (char *__restrict __s, + __const wchar_t *__restrict __pwcs, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)); + +extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int getsubopt (char **__restrict __optionp, + char *__const *__restrict __tokens, + char **__restrict __valuep) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2, 3))) ; +extern int getloadavg (double __loadavg[], int __nelem) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + +extern void *memcpy (void *__restrict __dest, + __const void *__restrict __src, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern void *memmove (void *__dest, __const void *__src, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern void *memccpy (void *__restrict __dest, __const void *__restrict __src, + int __c, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int memcmp (__const void *__s1, __const void *__s2, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); +extern void *memchr (__const void *__s, int __c, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); + + +extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern char *strncpy (char *__restrict __dest, + __const char *__restrict __src, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern char *strcat (char *__restrict __dest, __const char *__restrict __src) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern char *strncat (char *__restrict __dest, __const char *__restrict __src, + size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int strcmp (__const char *__s1, __const char *__s2) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); +extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); +extern int strcoll (__const char *__s1, __const char *__s2) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); +extern size_t strxfrm (char *__restrict __dest, + __const char *__restrict __src, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +typedef struct __locale_struct +{ + struct __locale_data *__locales[13]; + const unsigned short int *__ctype_b; + const int *__ctype_tolower; + const int *__ctype_toupper; + const char *__names[13]; +} *__locale_t; +typedef __locale_t locale_t; +extern int strcoll_l (__const char *__s1, __const char *__s2, __locale_t __l) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); +extern size_t strxfrm_l (char *__dest, __const char *__src, size_t __n, + __locale_t __l) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4))); +extern char *strdup (__const char *__s) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); +extern char *strndup (__const char *__string, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); + +extern char *strchr (__const char *__s, int __c) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); +extern char *strrchr (__const char *__s, int __c) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); + + +extern size_t strcspn (__const char *__s, __const char *__reject) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); +extern size_t strspn (__const char *__s, __const char *__accept) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); +extern char *strpbrk (__const char *__s, __const char *__accept) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); +extern char *strstr (__const char *__haystack, __const char *__needle) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); +extern char *strtok (char *__restrict __s, __const char *__restrict __delim) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern char *__strtok_r (char *__restrict __s, + __const char *__restrict __delim, + char **__restrict __save_ptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 3))); +extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim, + char **__restrict __save_ptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 3))); + +extern size_t strlen (__const char *__s) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); + +extern size_t strnlen (__const char *__string, size_t __maxlen) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); + +extern char *strerror (int __errnum) __attribute__ ((__nothrow__ , __leaf__)); + +extern int strerror_r (int __errnum, char *__buf, size_t __buflen) __asm__ ("" "__xpg_strerror_r") __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); +extern char *strerror_l (int __errnum, __locale_t __l) __attribute__ ((__nothrow__ , __leaf__)); +extern void __bzero (void *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern void bcopy (__const void *__src, void *__dest, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern void bzero (void *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int bcmp (__const void *__s1, __const void *__s2, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); +extern char *index (__const char *__s, int __c) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); +extern char *rindex (__const char *__s, int __c) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); +extern int ffs (int __i) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +extern int strcasecmp (__const char *__s1, __const char *__s2) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); +extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); +extern char *strsep (char **__restrict __stringp, + __const char *__restrict __delim) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern char *strsignal (int __sig) __attribute__ ((__nothrow__ , __leaf__)); +extern char *__stpcpy (char *__restrict __dest, __const char *__restrict __src) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern char *stpcpy (char *__restrict __dest, __const char *__restrict __src) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern char *__stpncpy (char *__restrict __dest, + __const char *__restrict __src, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern char *stpncpy (char *__restrict __dest, + __const char *__restrict __src, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +static void *calloc_model(size_t nmemb, size_t size) { + void *ptr = malloc(nmemb * size); + return memset(ptr, 0, nmemb * size); +} +extern int __VERIFIER_nondet_int(void); +struct L2 { + void *proto; + struct L2 *next; +}; +struct L1 { + struct L1 *next; + struct L2 *l2; +}; +static void l2_insert(struct L2 **list) +{ + struct L2 *item = calloc_model(1U, sizeof *item); + if (!item) + abort(); + item->proto = malloc(119U); + if (!item->proto) + abort(); + item->next = *list; + *list = item; +} +static void l2_destroy(struct L2 *list) +{ + do { + struct L2 *next = list->next; + free(list->proto); + free(list); + list = next; + } + while (list); +} +static void l1_insert(struct L1 **list) +{ + struct L1 *item = calloc_model(1U, sizeof *item); + if (!item) + abort(); + do + l2_insert(&item->l2); + while (__VERIFIER_nondet_int()); + item->next = *list; + *list = item; +} +int main() +{ + static struct L1 *list; + do + l1_insert(&list); + while (__VERIFIER_nondet_int()); + do { + struct L1 *next = list->next; + l2_destroy(list->l2); + free(list); + list = next; + } + while (list); +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/test-0234_true-valid-memsafety.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/test-0234_true-valid-memsafety.c new file mode 100644 index 000000000..c00e565cc --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/test-0234_true-valid-memsafety.c @@ -0,0 +1,872 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +typedef long unsigned int size_t; +typedef int wchar_t; + +union wait + { + int w_status; + struct + { + unsigned int __w_termsig:7; + unsigned int __w_coredump:1; + unsigned int __w_retcode:8; + unsigned int:16; + } __wait_terminated; + struct + { + unsigned int __w_stopval:8; + unsigned int __w_stopsig:8; + unsigned int:16; + } __wait_stopped; + }; +typedef union + { + union wait *__uptr; + int *__iptr; + } __WAIT_STATUS __attribute__ ((__transparent_union__)); + +typedef struct + { + int quot; + int rem; + } div_t; +typedef struct + { + long int quot; + long int rem; + } ldiv_t; + + +__extension__ typedef struct + { + long long int quot; + long long int rem; + } lldiv_t; + +extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__ , __leaf__)) ; + +extern double atof (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern int atoi (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern long int atol (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +__extension__ extern long long int atoll (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +extern double strtod (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern float strtof (__const char *__restrict __nptr, + char **__restrict __endptr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern long double strtold (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern long int strtol (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern unsigned long int strtoul (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtouq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoll (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtoull (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *l64a (long int __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern long int a64l (__const char *__s) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + +typedef unsigned char __u_char; +typedef unsigned short int __u_short; +typedef unsigned int __u_int; +typedef unsigned long int __u_long; +typedef signed char __int8_t; +typedef unsigned char __uint8_t; +typedef signed short int __int16_t; +typedef unsigned short int __uint16_t; +typedef signed int __int32_t; +typedef unsigned int __uint32_t; +typedef signed long int __int64_t; +typedef unsigned long int __uint64_t; +typedef long int __quad_t; +typedef unsigned long int __u_quad_t; +typedef unsigned long int __dev_t; +typedef unsigned int __uid_t; +typedef unsigned int __gid_t; +typedef unsigned long int __ino_t; +typedef unsigned long int __ino64_t; +typedef unsigned int __mode_t; +typedef unsigned long int __nlink_t; +typedef long int __off_t; +typedef long int __off64_t; +typedef int __pid_t; +typedef struct { int __val[2]; } __fsid_t; +typedef long int __clock_t; +typedef unsigned long int __rlim_t; +typedef unsigned long int __rlim64_t; +typedef unsigned int __id_t; +typedef long int __time_t; +typedef unsigned int __useconds_t; +typedef long int __suseconds_t; +typedef int __daddr_t; +typedef long int __swblk_t; +typedef int __key_t; +typedef int __clockid_t; +typedef void * __timer_t; +typedef long int __blksize_t; +typedef long int __blkcnt_t; +typedef long int __blkcnt64_t; +typedef unsigned long int __fsblkcnt_t; +typedef unsigned long int __fsblkcnt64_t; +typedef unsigned long int __fsfilcnt_t; +typedef unsigned long int __fsfilcnt64_t; +typedef long int __ssize_t; +typedef __off64_t __loff_t; +typedef __quad_t *__qaddr_t; +typedef char *__caddr_t; +typedef long int __intptr_t; +typedef unsigned int __socklen_t; +typedef __u_char u_char; +typedef __u_short u_short; +typedef __u_int u_int; +typedef __u_long u_long; +typedef __quad_t quad_t; +typedef __u_quad_t u_quad_t; +typedef __fsid_t fsid_t; +typedef __loff_t loff_t; +typedef __ino_t ino_t; +typedef __dev_t dev_t; +typedef __gid_t gid_t; +typedef __mode_t mode_t; +typedef __nlink_t nlink_t; +typedef __uid_t uid_t; +typedef __off_t off_t; +typedef __pid_t pid_t; +typedef __id_t id_t; +typedef __ssize_t ssize_t; +typedef __daddr_t daddr_t; +typedef __caddr_t caddr_t; +typedef __key_t key_t; + +typedef __clock_t clock_t; + + + +typedef __time_t time_t; + + +typedef __clockid_t clockid_t; +typedef __timer_t timer_t; +typedef unsigned long int ulong; +typedef unsigned short int ushort; +typedef unsigned int uint; +typedef int int8_t __attribute__ ((__mode__ (__QI__))); +typedef int int16_t __attribute__ ((__mode__ (__HI__))); +typedef int int32_t __attribute__ ((__mode__ (__SI__))); +typedef int int64_t __attribute__ ((__mode__ (__DI__))); +typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); +typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); +typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); +typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); +typedef int register_t __attribute__ ((__mode__ (__word__))); +typedef int __sig_atomic_t; +typedef struct + { + unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; + } __sigset_t; +typedef __sigset_t sigset_t; +struct timespec + { + __time_t tv_sec; + long int tv_nsec; + }; +struct timeval + { + __time_t tv_sec; + __suseconds_t tv_usec; + }; +typedef __suseconds_t suseconds_t; +typedef long int __fd_mask; +typedef struct + { + __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; + } fd_set; +typedef __fd_mask fd_mask; + +extern int select (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + struct timeval *__restrict __timeout); +extern int pselect (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + const struct timespec *__restrict __timeout, + const __sigset_t *__restrict __sigmask); + + +__extension__ +extern unsigned int gnu_dev_major (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned int gnu_dev_minor (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned long long int gnu_dev_makedev (unsigned int __major, + unsigned int __minor) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); + +typedef __blksize_t blksize_t; +typedef __blkcnt_t blkcnt_t; +typedef __fsblkcnt_t fsblkcnt_t; + + +typedef __fsfilcnt_t fsfilcnt_t; +typedef unsigned long int pthread_t; +typedef union +{ + char __size[56]; + long int __align; +} pthread_attr_t; +typedef struct __pthread_internal_list +{ + struct __pthread_internal_list *__prev; + struct __pthread_internal_list *__next; +} __pthread_list_t; +typedef union +{ + struct __pthread_mutex_s + { + int __lock; + unsigned int __count; + int __owner; + unsigned int __nusers; + int __kind; + int __spins; + __pthread_list_t __list; + } __data; + char __size[40]; + long int __align; +} pthread_mutex_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_mutexattr_t; +typedef union +{ + struct + { + int __lock; + unsigned int __futex; + __extension__ unsigned long long int __total_seq; + __extension__ unsigned long long int __wakeup_seq; + __extension__ unsigned long long int __woken_seq; + void *__mutex; + unsigned int __nwaiters; + unsigned int __broadcast_seq; + } __data; + char __size[48]; + __extension__ long long int __align; +} pthread_cond_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_condattr_t; +typedef unsigned int pthread_key_t; +typedef int pthread_once_t; +typedef union +{ + struct + { + int __lock; + unsigned int __nr_readers; + unsigned int __readers_wakeup; + unsigned int __writer_wakeup; + unsigned int __nr_readers_queued; + unsigned int __nr_writers_queued; + int __writer; + int __shared; + unsigned long int __pad1; + unsigned long int __pad2; + unsigned int __flags; + } __data; + char __size[56]; + long int __align; +} pthread_rwlock_t; +typedef union +{ + char __size[8]; + long int __align; +} pthread_rwlockattr_t; +typedef volatile int pthread_spinlock_t; +typedef union +{ + char __size[32]; + long int __align; +} pthread_barrier_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_barrierattr_t; + +extern long int random (void) __attribute__ ((__nothrow__ , __leaf__)); +extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); +extern char *initstate (unsigned int __seed, char *__statebuf, + size_t __statelen) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + + +extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + + + +struct random_data + { + int32_t *fptr; + int32_t *rptr; + int32_t *state; + int rand_type; + int rand_deg; + int rand_sep; + int32_t *end_ptr; + }; + +extern int random_r (struct random_data *__restrict __buf, + int32_t *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int srandom_r (unsigned int __seed, struct random_data *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, + size_t __statelen, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4))); + +extern int setstate_r (char *__restrict __statebuf, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + +extern int rand (void) __attribute__ ((__nothrow__ , __leaf__)); + +extern void srand (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern double drand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int lrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int nrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int mrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int jrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern void srand48 (long int __seedval) __attribute__ ((__nothrow__ , __leaf__)); +extern unsigned short int *seed48 (unsigned short int __seed16v[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + +struct drand48_data + { + unsigned short int __x[3]; + unsigned short int __old_x[3]; + unsigned short int __c; + unsigned short int __init; + unsigned long long int __a; + }; + + +extern int drand48_r (struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int erand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int lrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int nrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int mrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int jrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int srand48_r (long int __seedval, struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int seed48_r (unsigned short int __seed16v[3], + struct drand48_data *__buffer) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int lcong48_r (unsigned short int __param[7], + struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + + + + +extern void *malloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + +extern void *calloc (size_t __nmemb, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + + + + + + + +extern void *realloc (void *__ptr, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); + +extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern void cfree (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + +extern void *alloca (size_t __size) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern void *valloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + +extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + + + +extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + + +extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern void exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern void _Exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern char *getenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *__secure_getenv (__const char *__name) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int putenv (char *__string) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int setenv (__const char *__name, __const char *__value, int __replace) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); +extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int clearenv (void) __attribute__ ((__nothrow__ , __leaf__)); +extern char *mktemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ; +extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern int system (__const char *__command) ; + +extern char *realpath (__const char *__restrict __name, + char *__restrict __resolved) __attribute__ ((__nothrow__ , __leaf__)) ; +typedef int (*__compar_fn_t) (__const void *, __const void *); + +extern void *bsearch (__const void *__key, __const void *__base, + size_t __nmemb, size_t __size, __compar_fn_t __compar) + __attribute__ ((__nonnull__ (1, 2, 5))) ; +extern void qsort (void *__base, size_t __nmemb, size_t __size, + __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); +extern int abs (int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern long int labs (long int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +__extension__ extern long long int llabs (long long int __x) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern div_t div (int __numer, int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern ldiv_t ldiv (long int __numer, long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + + +__extension__ extern lldiv_t lldiv (long long int __numer, + long long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *gcvt (double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern char *qecvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qfcvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qgcvt (long double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qecvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qfcvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); + +extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int mbtowc (wchar_t *__restrict __pwc, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__ , __leaf__)) ; +extern size_t mbstowcs (wchar_t *__restrict __pwcs, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)); +extern size_t wcstombs (char *__restrict __s, + __const wchar_t *__restrict __pwcs, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)); + +extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int getsubopt (char **__restrict __optionp, + char *__const *__restrict __tokens, + char **__restrict __valuep) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2, 3))) ; +extern int getloadavg (double __loadavg[], int __nelem) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + +extern void *memcpy (void *__restrict __dest, + __const void *__restrict __src, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern void *memmove (void *__dest, __const void *__src, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern void *memccpy (void *__restrict __dest, __const void *__restrict __src, + int __c, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int memcmp (__const void *__s1, __const void *__s2, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); +extern void *memchr (__const void *__s, int __c, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); + + +extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern char *strncpy (char *__restrict __dest, + __const char *__restrict __src, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern char *strcat (char *__restrict __dest, __const char *__restrict __src) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern char *strncat (char *__restrict __dest, __const char *__restrict __src, + size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int strcmp (__const char *__s1, __const char *__s2) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); +extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); +extern int strcoll (__const char *__s1, __const char *__s2) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); +extern size_t strxfrm (char *__restrict __dest, + __const char *__restrict __src, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +typedef struct __locale_struct +{ + struct __locale_data *__locales[13]; + const unsigned short int *__ctype_b; + const int *__ctype_tolower; + const int *__ctype_toupper; + const char *__names[13]; +} *__locale_t; +typedef __locale_t locale_t; +extern int strcoll_l (__const char *__s1, __const char *__s2, __locale_t __l) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); +extern size_t strxfrm_l (char *__dest, __const char *__src, size_t __n, + __locale_t __l) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4))); +extern char *strdup (__const char *__s) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); +extern char *strndup (__const char *__string, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); + +extern char *strchr (__const char *__s, int __c) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); +extern char *strrchr (__const char *__s, int __c) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); + + +extern size_t strcspn (__const char *__s, __const char *__reject) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); +extern size_t strspn (__const char *__s, __const char *__accept) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); +extern char *strpbrk (__const char *__s, __const char *__accept) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); +extern char *strstr (__const char *__haystack, __const char *__needle) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); +extern char *strtok (char *__restrict __s, __const char *__restrict __delim) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern char *__strtok_r (char *__restrict __s, + __const char *__restrict __delim, + char **__restrict __save_ptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 3))); +extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim, + char **__restrict __save_ptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 3))); + +extern size_t strlen (__const char *__s) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); + +extern size_t strnlen (__const char *__string, size_t __maxlen) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); + +extern char *strerror (int __errnum) __attribute__ ((__nothrow__ , __leaf__)); + +extern int strerror_r (int __errnum, char *__buf, size_t __buflen) __asm__ ("" "__xpg_strerror_r") __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); +extern char *strerror_l (int __errnum, __locale_t __l) __attribute__ ((__nothrow__ , __leaf__)); +extern void __bzero (void *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern void bcopy (__const void *__src, void *__dest, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern void bzero (void *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int bcmp (__const void *__s1, __const void *__s2, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); +extern char *index (__const char *__s, int __c) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); +extern char *rindex (__const char *__s, int __c) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); +extern int ffs (int __i) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +extern int strcasecmp (__const char *__s1, __const char *__s2) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); +extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); +extern char *strsep (char **__restrict __stringp, + __const char *__restrict __delim) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern char *strsignal (int __sig) __attribute__ ((__nothrow__ , __leaf__)); +extern char *__stpcpy (char *__restrict __dest, __const char *__restrict __src) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern char *stpcpy (char *__restrict __dest, __const char *__restrict __src) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern char *__stpncpy (char *__restrict __dest, + __const char *__restrict __src, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern char *stpncpy (char *__restrict __dest, + __const char *__restrict __src, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +static void *calloc_model(size_t nmemb, size_t size) { + void *ptr = malloc(nmemb * size); + return memset(ptr, 0, nmemb * size); +} +extern int __VERIFIER_nondet_int(void); +struct L4 { + struct L4 *next; + struct L5 *down; +}; +struct L3 { + struct L4 *down; + struct L3 *next; +}; +struct L2 { + struct L2 *next; + struct L3 *down; +}; +struct L1 { + struct L2 *down; + struct L1 *next; +}; +struct L0 { + struct L0 *next; + struct L1 *down; +}; +static void* zalloc_or_die(unsigned size) +{ + void *ptr = calloc_model(1U, size); + if (ptr) + return ptr; + abort(); +} +static void l4_insert(struct L4 **list) +{ + struct L4 *item = zalloc_or_die(sizeof *item); + item->down = zalloc_or_die(119U); + item->next = *list; + *list = item; +} +static void l3_insert(struct L3 **list) +{ + struct L3 *item = zalloc_or_die(sizeof *item); + do + l4_insert(&item->down); + while (__VERIFIER_nondet_int()); + item->next = *list; + *list = item; +} +static void l2_insert(struct L2 **list) +{ + struct L2 *item = zalloc_or_die(sizeof *item); + do + l3_insert(&item->down); + while (__VERIFIER_nondet_int()); + item->next = *list; + *list = item; +} +static void l1_insert(struct L1 **list) +{ + struct L1 *item = zalloc_or_die(sizeof *item); + do + l2_insert(&item->down); + while (__VERIFIER_nondet_int()); + item->next = *list; + *list = item; +} +static void l0_insert(struct L0 **list) +{ + struct L0 *item = zalloc_or_die(sizeof *item); + do + l1_insert(&item->down); + while (__VERIFIER_nondet_int()); + item->next = *list; + *list = item; +} +static void l4_destroy(struct L4 *list) +{ + do { + free(list->down); + struct L4 *next = list->next; + free(list); + list = next; + } + while (list); +} +static void l3_destroy(struct L3 *list) +{ + do { + l4_destroy(list->down); + struct L3 *next = list->next; + free(list); + list = next; + } + while (list); +} +static void l2_destroy(struct L2 *list) +{ + do { + l3_destroy(list->down); + struct L2 *next = list->next; + free(list); + list = next; + } + while (list); +} +static void l1_destroy(struct L1 *list) +{ + do { + l2_destroy(list->down); + struct L1 *next = list->next; + free(list); + list = next; + } + while (list); +} +static void l0_destroy(struct L0 *list) +{ + do { + l1_destroy(list->down); + struct L0 *next = list->next; + free(list); + list = next; + } + while (list); +} +int main() +{ + static struct L0 *list; + do + l0_insert(&list); + while (__VERIFIER_nondet_int()); + l0_destroy(list); +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/test-0513_1_true-valid-memsafety.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/test-0513_1_true-valid-memsafety.c new file mode 100644 index 000000000..f51f2f664 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/test-0513_1_true-valid-memsafety.c @@ -0,0 +1,696 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +typedef long unsigned int size_t; +typedef int wchar_t; + +union wait + { + int w_status; + struct + { + unsigned int __w_termsig:7; + unsigned int __w_coredump:1; + unsigned int __w_retcode:8; + unsigned int:16; + } __wait_terminated; + struct + { + unsigned int __w_stopval:8; + unsigned int __w_stopsig:8; + unsigned int:16; + } __wait_stopped; + }; +typedef union + { + union wait *__uptr; + int *__iptr; + } __WAIT_STATUS __attribute__ ((__transparent_union__)); + +typedef struct + { + int quot; + int rem; + } div_t; +typedef struct + { + long int quot; + long int rem; + } ldiv_t; + + +__extension__ typedef struct + { + long long int quot; + long long int rem; + } lldiv_t; + +extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__ , __leaf__)) ; + +extern double atof (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern int atoi (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern long int atol (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +__extension__ extern long long int atoll (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +extern double strtod (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern float strtof (__const char *__restrict __nptr, + char **__restrict __endptr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern long double strtold (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern long int strtol (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern unsigned long int strtoul (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtouq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoll (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtoull (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *l64a (long int __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern long int a64l (__const char *__s) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + +typedef unsigned char __u_char; +typedef unsigned short int __u_short; +typedef unsigned int __u_int; +typedef unsigned long int __u_long; +typedef signed char __int8_t; +typedef unsigned char __uint8_t; +typedef signed short int __int16_t; +typedef unsigned short int __uint16_t; +typedef signed int __int32_t; +typedef unsigned int __uint32_t; +typedef signed long int __int64_t; +typedef unsigned long int __uint64_t; +typedef long int __quad_t; +typedef unsigned long int __u_quad_t; +typedef unsigned long int __dev_t; +typedef unsigned int __uid_t; +typedef unsigned int __gid_t; +typedef unsigned long int __ino_t; +typedef unsigned long int __ino64_t; +typedef unsigned int __mode_t; +typedef unsigned long int __nlink_t; +typedef long int __off_t; +typedef long int __off64_t; +typedef int __pid_t; +typedef struct { int __val[2]; } __fsid_t; +typedef long int __clock_t; +typedef unsigned long int __rlim_t; +typedef unsigned long int __rlim64_t; +typedef unsigned int __id_t; +typedef long int __time_t; +typedef unsigned int __useconds_t; +typedef long int __suseconds_t; +typedef int __daddr_t; +typedef long int __swblk_t; +typedef int __key_t; +typedef int __clockid_t; +typedef void * __timer_t; +typedef long int __blksize_t; +typedef long int __blkcnt_t; +typedef long int __blkcnt64_t; +typedef unsigned long int __fsblkcnt_t; +typedef unsigned long int __fsblkcnt64_t; +typedef unsigned long int __fsfilcnt_t; +typedef unsigned long int __fsfilcnt64_t; +typedef long int __ssize_t; +typedef __off64_t __loff_t; +typedef __quad_t *__qaddr_t; +typedef char *__caddr_t; +typedef long int __intptr_t; +typedef unsigned int __socklen_t; +typedef __u_char u_char; +typedef __u_short u_short; +typedef __u_int u_int; +typedef __u_long u_long; +typedef __quad_t quad_t; +typedef __u_quad_t u_quad_t; +typedef __fsid_t fsid_t; +typedef __loff_t loff_t; +typedef __ino_t ino_t; +typedef __dev_t dev_t; +typedef __gid_t gid_t; +typedef __mode_t mode_t; +typedef __nlink_t nlink_t; +typedef __uid_t uid_t; +typedef __off_t off_t; +typedef __pid_t pid_t; +typedef __id_t id_t; +typedef __ssize_t ssize_t; +typedef __daddr_t daddr_t; +typedef __caddr_t caddr_t; +typedef __key_t key_t; + +typedef __clock_t clock_t; + + + +typedef __time_t time_t; + + +typedef __clockid_t clockid_t; +typedef __timer_t timer_t; +typedef unsigned long int ulong; +typedef unsigned short int ushort; +typedef unsigned int uint; +typedef int int8_t __attribute__ ((__mode__ (__QI__))); +typedef int int16_t __attribute__ ((__mode__ (__HI__))); +typedef int int32_t __attribute__ ((__mode__ (__SI__))); +typedef int int64_t __attribute__ ((__mode__ (__DI__))); +typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); +typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); +typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); +typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); +typedef int register_t __attribute__ ((__mode__ (__word__))); +typedef int __sig_atomic_t; +typedef struct + { + unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; + } __sigset_t; +typedef __sigset_t sigset_t; +struct timespec + { + __time_t tv_sec; + long int tv_nsec; + }; +struct timeval + { + __time_t tv_sec; + __suseconds_t tv_usec; + }; +typedef __suseconds_t suseconds_t; +typedef long int __fd_mask; +typedef struct + { + __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; + } fd_set; +typedef __fd_mask fd_mask; + +extern int select (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + struct timeval *__restrict __timeout); +extern int pselect (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + const struct timespec *__restrict __timeout, + const __sigset_t *__restrict __sigmask); + + +__extension__ +extern unsigned int gnu_dev_major (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned int gnu_dev_minor (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned long long int gnu_dev_makedev (unsigned int __major, + unsigned int __minor) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); + +typedef __blksize_t blksize_t; +typedef __blkcnt_t blkcnt_t; +typedef __fsblkcnt_t fsblkcnt_t; + + +typedef __fsfilcnt_t fsfilcnt_t; +typedef unsigned long int pthread_t; +typedef union +{ + char __size[56]; + long int __align; +} pthread_attr_t; +typedef struct __pthread_internal_list +{ + struct __pthread_internal_list *__prev; + struct __pthread_internal_list *__next; +} __pthread_list_t; +typedef union +{ + struct __pthread_mutex_s + { + int __lock; + unsigned int __count; + int __owner; + unsigned int __nusers; + int __kind; + int __spins; + __pthread_list_t __list; + } __data; + char __size[40]; + long int __align; +} pthread_mutex_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_mutexattr_t; +typedef union +{ + struct + { + int __lock; + unsigned int __futex; + __extension__ unsigned long long int __total_seq; + __extension__ unsigned long long int __wakeup_seq; + __extension__ unsigned long long int __woken_seq; + void *__mutex; + unsigned int __nwaiters; + unsigned int __broadcast_seq; + } __data; + char __size[48]; + __extension__ long long int __align; +} pthread_cond_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_condattr_t; +typedef unsigned int pthread_key_t; +typedef int pthread_once_t; +typedef union +{ + struct + { + int __lock; + unsigned int __nr_readers; + unsigned int __readers_wakeup; + unsigned int __writer_wakeup; + unsigned int __nr_readers_queued; + unsigned int __nr_writers_queued; + int __writer; + int __shared; + unsigned long int __pad1; + unsigned long int __pad2; + unsigned int __flags; + } __data; + char __size[56]; + long int __align; +} pthread_rwlock_t; +typedef union +{ + char __size[8]; + long int __align; +} pthread_rwlockattr_t; +typedef volatile int pthread_spinlock_t; +typedef union +{ + char __size[32]; + long int __align; +} pthread_barrier_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_barrierattr_t; + +extern long int random (void) __attribute__ ((__nothrow__ , __leaf__)); +extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); +extern char *initstate (unsigned int __seed, char *__statebuf, + size_t __statelen) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + + +extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + + + +struct random_data + { + int32_t *fptr; + int32_t *rptr; + int32_t *state; + int rand_type; + int rand_deg; + int rand_sep; + int32_t *end_ptr; + }; + +extern int random_r (struct random_data *__restrict __buf, + int32_t *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int srandom_r (unsigned int __seed, struct random_data *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, + size_t __statelen, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4))); + +extern int setstate_r (char *__restrict __statebuf, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + +extern int rand (void) __attribute__ ((__nothrow__ , __leaf__)); + +extern void srand (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern double drand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int lrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int nrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int mrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int jrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern void srand48 (long int __seedval) __attribute__ ((__nothrow__ , __leaf__)); +extern unsigned short int *seed48 (unsigned short int __seed16v[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + +struct drand48_data + { + unsigned short int __x[3]; + unsigned short int __old_x[3]; + unsigned short int __c; + unsigned short int __init; + unsigned long long int __a; + }; + + +extern int drand48_r (struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int erand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int lrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int nrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int mrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int jrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int srand48_r (long int __seedval, struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int seed48_r (unsigned short int __seed16v[3], + struct drand48_data *__buffer) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int lcong48_r (unsigned short int __param[7], + struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + + + + +extern void *malloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + +extern void *calloc (size_t __nmemb, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + + + + + + + +extern void *realloc (void *__ptr, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); + +extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern void cfree (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + +extern void *alloca (size_t __size) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern void *valloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + +extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + + + +extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + + +extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern void exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern void _Exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern char *getenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *__secure_getenv (__const char *__name) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int putenv (char *__string) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int setenv (__const char *__name, __const char *__value, int __replace) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); +extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int clearenv (void) __attribute__ ((__nothrow__ , __leaf__)); +extern char *mktemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ; +extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern int system (__const char *__command) ; + +extern char *realpath (__const char *__restrict __name, + char *__restrict __resolved) __attribute__ ((__nothrow__ , __leaf__)) ; +typedef int (*__compar_fn_t) (__const void *, __const void *); + +extern void *bsearch (__const void *__key, __const void *__base, + size_t __nmemb, size_t __size, __compar_fn_t __compar) + __attribute__ ((__nonnull__ (1, 2, 5))) ; +extern void qsort (void *__base, size_t __nmemb, size_t __size, + __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); +extern int abs (int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern long int labs (long int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +__extension__ extern long long int llabs (long long int __x) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern div_t div (int __numer, int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern ldiv_t ldiv (long int __numer, long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + + +__extension__ extern lldiv_t lldiv (long long int __numer, + long long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *gcvt (double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern char *qecvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qfcvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qgcvt (long double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qecvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qfcvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); + +extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int mbtowc (wchar_t *__restrict __pwc, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__ , __leaf__)) ; +extern size_t mbstowcs (wchar_t *__restrict __pwcs, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)); +extern size_t wcstombs (char *__restrict __s, + __const wchar_t *__restrict __pwcs, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)); + +extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int getsubopt (char **__restrict __optionp, + char *__const *__restrict __tokens, + char **__restrict __valuep) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2, 3))) ; +extern int getloadavg (double __loadavg[], int __nelem) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern int __VERIFIER_nondet_int(void); +struct DItem { + struct DItem* next; + int value; +}; +struct TLItem { + struct TLItem* next; + struct DItem* data; +}; +int main() { + struct TLItem* data = ((void *)0); + struct DItem* item, * item2; + struct TLItem *lItem; + int c1 = 0; + while (c1 < 5 && __VERIFIER_nondet_int()) { + c1++; + item = malloc(sizeof *item); + if (!item) + abort(); + item->next = ((void *)0); + if(c1 < 2) + item->value = 2; + if(c1 < 4) + item->value = c1 + 2; + if(c1 < 6) + item->value = 2 * c1 + 4; + lItem = malloc(sizeof *lItem); + if (data) { + lItem->next = data->next; + data->next = lItem; + } else { + lItem->next = lItem; + data = lItem; + } + lItem->data = item; + item = ((void *)0); + lItem = ((void *)0); + } + if (!data) + return 0; + while (data->next != data) { + item = data->data; + item2 = data->next->data; + lItem = data->next; + data->next = lItem->next; + free(lItem); + struct DItem** dst = &data->data; + while (item && item2) { + if (item->value > item2->value) { + *dst = item; + item = item->next; + } else { + *dst = item2; + item2 = item2->next; + } + dst = &(*dst)->next; + } + if (item) { + *dst = item; + item = ((void *)0); + } else if (item2) { + *dst = item2; + item2 = ((void *)0); + } + dst = ((void *)0); + data = data->next; + } + item = data->data; + free(data); + while (item) { + item2 = item; + item = item->next; + if(item2->value > 1 && item2->value < 15 ) { + free(item2); + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/test-0521_true-valid-memsafety.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/test-0521_true-valid-memsafety.c new file mode 100644 index 000000000..43000f7ab --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/test-0521_true-valid-memsafety.c @@ -0,0 +1,782 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +typedef long unsigned int size_t; +typedef int wchar_t; + +union wait + { + int w_status; + struct + { + unsigned int __w_termsig:7; + unsigned int __w_coredump:1; + unsigned int __w_retcode:8; + unsigned int:16; + } __wait_terminated; + struct + { + unsigned int __w_stopval:8; + unsigned int __w_stopsig:8; + unsigned int:16; + } __wait_stopped; + }; +typedef union + { + union wait *__uptr; + int *__iptr; + } __WAIT_STATUS __attribute__ ((__transparent_union__)); + +typedef struct + { + int quot; + int rem; + } div_t; +typedef struct + { + long int quot; + long int rem; + } ldiv_t; + + +__extension__ typedef struct + { + long long int quot; + long long int rem; + } lldiv_t; + +extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__ , __leaf__)) ; + +extern double atof (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern int atoi (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern long int atol (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +__extension__ extern long long int atoll (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +extern double strtod (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern float strtof (__const char *__restrict __nptr, + char **__restrict __endptr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern long double strtold (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern long int strtol (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern unsigned long int strtoul (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtouq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoll (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtoull (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *l64a (long int __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern long int a64l (__const char *__s) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + +typedef unsigned char __u_char; +typedef unsigned short int __u_short; +typedef unsigned int __u_int; +typedef unsigned long int __u_long; +typedef signed char __int8_t; +typedef unsigned char __uint8_t; +typedef signed short int __int16_t; +typedef unsigned short int __uint16_t; +typedef signed int __int32_t; +typedef unsigned int __uint32_t; +typedef signed long int __int64_t; +typedef unsigned long int __uint64_t; +typedef long int __quad_t; +typedef unsigned long int __u_quad_t; +typedef unsigned long int __dev_t; +typedef unsigned int __uid_t; +typedef unsigned int __gid_t; +typedef unsigned long int __ino_t; +typedef unsigned long int __ino64_t; +typedef unsigned int __mode_t; +typedef unsigned long int __nlink_t; +typedef long int __off_t; +typedef long int __off64_t; +typedef int __pid_t; +typedef struct { int __val[2]; } __fsid_t; +typedef long int __clock_t; +typedef unsigned long int __rlim_t; +typedef unsigned long int __rlim64_t; +typedef unsigned int __id_t; +typedef long int __time_t; +typedef unsigned int __useconds_t; +typedef long int __suseconds_t; +typedef int __daddr_t; +typedef long int __swblk_t; +typedef int __key_t; +typedef int __clockid_t; +typedef void * __timer_t; +typedef long int __blksize_t; +typedef long int __blkcnt_t; +typedef long int __blkcnt64_t; +typedef unsigned long int __fsblkcnt_t; +typedef unsigned long int __fsblkcnt64_t; +typedef unsigned long int __fsfilcnt_t; +typedef unsigned long int __fsfilcnt64_t; +typedef long int __ssize_t; +typedef __off64_t __loff_t; +typedef __quad_t *__qaddr_t; +typedef char *__caddr_t; +typedef long int __intptr_t; +typedef unsigned int __socklen_t; +typedef __u_char u_char; +typedef __u_short u_short; +typedef __u_int u_int; +typedef __u_long u_long; +typedef __quad_t quad_t; +typedef __u_quad_t u_quad_t; +typedef __fsid_t fsid_t; +typedef __loff_t loff_t; +typedef __ino_t ino_t; +typedef __dev_t dev_t; +typedef __gid_t gid_t; +typedef __mode_t mode_t; +typedef __nlink_t nlink_t; +typedef __uid_t uid_t; +typedef __off_t off_t; +typedef __pid_t pid_t; +typedef __id_t id_t; +typedef __ssize_t ssize_t; +typedef __daddr_t daddr_t; +typedef __caddr_t caddr_t; +typedef __key_t key_t; + +typedef __clock_t clock_t; + + + +typedef __time_t time_t; + + +typedef __clockid_t clockid_t; +typedef __timer_t timer_t; +typedef unsigned long int ulong; +typedef unsigned short int ushort; +typedef unsigned int uint; +typedef int int8_t __attribute__ ((__mode__ (__QI__))); +typedef int int16_t __attribute__ ((__mode__ (__HI__))); +typedef int int32_t __attribute__ ((__mode__ (__SI__))); +typedef int int64_t __attribute__ ((__mode__ (__DI__))); +typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); +typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); +typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); +typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); +typedef int register_t __attribute__ ((__mode__ (__word__))); +typedef int __sig_atomic_t; +typedef struct + { + unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; + } __sigset_t; +typedef __sigset_t sigset_t; +struct timespec + { + __time_t tv_sec; + long int tv_nsec; + }; +struct timeval + { + __time_t tv_sec; + __suseconds_t tv_usec; + }; +typedef __suseconds_t suseconds_t; +typedef long int __fd_mask; +typedef struct + { + __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; + } fd_set; +typedef __fd_mask fd_mask; + +extern int select (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + struct timeval *__restrict __timeout); +extern int pselect (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + const struct timespec *__restrict __timeout, + const __sigset_t *__restrict __sigmask); + + +__extension__ +extern unsigned int gnu_dev_major (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned int gnu_dev_minor (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned long long int gnu_dev_makedev (unsigned int __major, + unsigned int __minor) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); + +typedef __blksize_t blksize_t; +typedef __blkcnt_t blkcnt_t; +typedef __fsblkcnt_t fsblkcnt_t; + + +typedef __fsfilcnt_t fsfilcnt_t; +typedef unsigned long int pthread_t; +typedef union +{ + char __size[56]; + long int __align; +} pthread_attr_t; +typedef struct __pthread_internal_list +{ + struct __pthread_internal_list *__prev; + struct __pthread_internal_list *__next; +} __pthread_list_t; +typedef union +{ + struct __pthread_mutex_s + { + int __lock; + unsigned int __count; + int __owner; + unsigned int __nusers; + int __kind; + int __spins; + __pthread_list_t __list; + } __data; + char __size[40]; + long int __align; +} pthread_mutex_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_mutexattr_t; +typedef union +{ + struct + { + int __lock; + unsigned int __futex; + __extension__ unsigned long long int __total_seq; + __extension__ unsigned long long int __wakeup_seq; + __extension__ unsigned long long int __woken_seq; + void *__mutex; + unsigned int __nwaiters; + unsigned int __broadcast_seq; + } __data; + char __size[48]; + __extension__ long long int __align; +} pthread_cond_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_condattr_t; +typedef unsigned int pthread_key_t; +typedef int pthread_once_t; +typedef union +{ + struct + { + int __lock; + unsigned int __nr_readers; + unsigned int __readers_wakeup; + unsigned int __writer_wakeup; + unsigned int __nr_readers_queued; + unsigned int __nr_writers_queued; + int __writer; + int __shared; + unsigned long int __pad1; + unsigned long int __pad2; + unsigned int __flags; + } __data; + char __size[56]; + long int __align; +} pthread_rwlock_t; +typedef union +{ + char __size[8]; + long int __align; +} pthread_rwlockattr_t; +typedef volatile int pthread_spinlock_t; +typedef union +{ + char __size[32]; + long int __align; +} pthread_barrier_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_barrierattr_t; + +extern long int random (void) __attribute__ ((__nothrow__ , __leaf__)); +extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); +extern char *initstate (unsigned int __seed, char *__statebuf, + size_t __statelen) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + + +extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + + + +struct random_data + { + int32_t *fptr; + int32_t *rptr; + int32_t *state; + int rand_type; + int rand_deg; + int rand_sep; + int32_t *end_ptr; + }; + +extern int random_r (struct random_data *__restrict __buf, + int32_t *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int srandom_r (unsigned int __seed, struct random_data *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, + size_t __statelen, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4))); + +extern int setstate_r (char *__restrict __statebuf, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + +extern int rand (void) __attribute__ ((__nothrow__ , __leaf__)); + +extern void srand (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern double drand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int lrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int nrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int mrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int jrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern void srand48 (long int __seedval) __attribute__ ((__nothrow__ , __leaf__)); +extern unsigned short int *seed48 (unsigned short int __seed16v[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + +struct drand48_data + { + unsigned short int __x[3]; + unsigned short int __old_x[3]; + unsigned short int __c; + unsigned short int __init; + unsigned long long int __a; + }; + + +extern int drand48_r (struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int erand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int lrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int nrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int mrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int jrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int srand48_r (long int __seedval, struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int seed48_r (unsigned short int __seed16v[3], + struct drand48_data *__buffer) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int lcong48_r (unsigned short int __param[7], + struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + + + + +extern void *malloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + +extern void *calloc (size_t __nmemb, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + + + + + + + +extern void *realloc (void *__ptr, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); + +extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern void cfree (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + +extern void *alloca (size_t __size) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern void *valloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + +extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + + + +extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + + +extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern void exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern void _Exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern char *getenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *__secure_getenv (__const char *__name) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int putenv (char *__string) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int setenv (__const char *__name, __const char *__value, int __replace) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); +extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int clearenv (void) __attribute__ ((__nothrow__ , __leaf__)); +extern char *mktemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ; +extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern int system (__const char *__command) ; + +extern char *realpath (__const char *__restrict __name, + char *__restrict __resolved) __attribute__ ((__nothrow__ , __leaf__)) ; +typedef int (*__compar_fn_t) (__const void *, __const void *); + +extern void *bsearch (__const void *__key, __const void *__base, + size_t __nmemb, size_t __size, __compar_fn_t __compar) + __attribute__ ((__nonnull__ (1, 2, 5))) ; +extern void qsort (void *__base, size_t __nmemb, size_t __size, + __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); +extern int abs (int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern long int labs (long int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +__extension__ extern long long int llabs (long long int __x) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern div_t div (int __numer, int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern ldiv_t ldiv (long int __numer, long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + + +__extension__ extern lldiv_t lldiv (long long int __numer, + long long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *gcvt (double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern char *qecvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qfcvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qgcvt (long double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qecvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qfcvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); + +extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int mbtowc (wchar_t *__restrict __pwc, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__ , __leaf__)) ; +extern size_t mbstowcs (wchar_t *__restrict __pwcs, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)); +extern size_t wcstombs (char *__restrict __s, + __const wchar_t *__restrict __pwcs, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)); + +extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int getsubopt (char **__restrict __optionp, + char *__const *__restrict __tokens, + char **__restrict __valuep) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2, 3))) ; +extern int getloadavg (double __loadavg[], int __nelem) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern int __VERIFIER_nondet_int(void); +struct node { + int value; + struct node *next; +}; +struct list { + struct node *slist; + struct list *next; +}; +struct iterator { + struct list *list; + struct node *node; +}; +int main() +{ + struct list *data = ((void *)0); + { + while (__VERIFIER_nondet_int()) + { + struct node *node = malloc(sizeof *node); + if (!node) + abort(); + node->next = ((void *)0); + node->value = __VERIFIER_nondet_int(); + struct list *item = malloc(sizeof *item); + if (!item) + abort(); + item->slist = node; + item->next = data; + data = item; + } + } + { + struct iterator iter; + { + struct list *list = data; + if ((iter.list = list)) + iter.node = list->slist; + } + struct node *node; + { + if (!iter.list) + node = ((void *)0); + else { + struct node *current = iter.node; + if ((iter.node = current->next)) + node = current; + else { + if ((iter.list = iter.list->next)) + iter.node = iter.list->slist; + node = current; + } + } + } + while ((node)) + { + { + if (!iter.list) + node = ((void *)0); + else { + struct node *current = iter.node; + if ((iter.node = current->next)) + node = current; + else { + if ((iter.list = iter.list->next)) + iter.node = iter.list->slist; + node = current; + } + } + } + } + } + { + struct list *list = data; + while (list && list->next) { + struct list *dst = ((void *)0); + while (list) { + struct list *next = list->next; + if (!next) { + list->next = dst; + dst = list; + break; + } + { struct node **dst = &list->slist; + struct node *sub1 = list->slist; + struct node *sub2 = next->slist; + while (sub1 || sub2) { + struct node ***pdst = &dst; + struct node **pdata; + if (!sub2 || (sub1 && __VERIFIER_nondet_int())) + pdata = &sub1; + else + pdata = &sub2; + struct node *node = *pdata; + *pdata = node->next; + node->next = ((void *)0); + **pdst = node; + *pdst = &node->next; + } + } + list->next = dst; + dst = list; + list = next->next; + free(next); + } + list = dst; + } + data = list; + } + { + struct iterator iter; + { + struct list *list = data; + if ((iter.list = list)) + iter.node = list->slist; + } + struct node *node; + { + if (!iter.list) + node = ((void *)0); + else { + struct node *current = iter.node; + if ((iter.node = current->next)) + node = current; + else { + if ((iter.list = iter.list->next)) + iter.node = iter.list->slist; + node = current; + } + } + } + while ((node)) + { + { + if (!iter.list) + node = ((void *)0); + else { + struct node *current = iter.node; + if ((iter.node = current->next)) + node = current; + else { + if ((iter.list = iter.list->next)) + iter.node = iter.list->slist; + node = current; + } + } + } + } + } + { + while (data) { + struct list *next = data->next; + struct node *node = data->slist; + while (node) { + struct node *snext = node->next; + free(node); + node = snext; + } + free(data); + data = next; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/test_locks_15_true-unreach-call_false-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/test_locks_15_true-unreach-call_false-termination.c new file mode 100644 index 000000000..a8a89dfe0 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/test_locks_15_true-unreach-call_false-termination.c @@ -0,0 +1,234 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +extern int __VERIFIER_nondet_int(); +int main() +{ + int p1 = __VERIFIER_nondet_int(); // condition variable + int lk1; // lock variable + + int p2 = __VERIFIER_nondet_int(); // condition variable + int lk2; // lock variable + + int p3 = __VERIFIER_nondet_int(); // condition variable + int lk3; // lock variable + + int p4 = __VERIFIER_nondet_int(); // condition variable + int lk4; // lock variable + + int p5 = __VERIFIER_nondet_int(); // condition variable + int lk5; // lock variable + + int p6 = __VERIFIER_nondet_int(); // condition variable + int lk6; // lock variable + + int p7 = __VERIFIER_nondet_int(); // condition variable + int lk7; // lock variable + + int p8 = __VERIFIER_nondet_int(); // condition variable + int lk8; // lock variable + + int p9 = __VERIFIER_nondet_int(); // condition variable + int lk9; // lock variable + + int p10 = __VERIFIER_nondet_int(); // condition variable + int lk10; // lock variable + + int p11 = __VERIFIER_nondet_int(); // condition variable + int lk11; // lock variable + + int p12 = __VERIFIER_nondet_int(); // condition variable + int lk12; // lock variable + + int p13 = __VERIFIER_nondet_int(); // condition variable + int lk13; // lock variable + + int p14 = __VERIFIER_nondet_int(); // condition variable + int lk14; // lock variable + + int p15 = __VERIFIER_nondet_int(); // condition variable + int lk15; // lock variable + + + int cond; + + while(1) { + cond = __VERIFIER_nondet_int(); + if (cond == 0) { + goto out; + } else {} + lk1 = 0; // initially lock is open + + lk2 = 0; // initially lock is open + + lk3 = 0; // initially lock is open + + lk4 = 0; // initially lock is open + + lk5 = 0; // initially lock is open + + lk6 = 0; // initially lock is open + + lk7 = 0; // initially lock is open + + lk8 = 0; // initially lock is open + + lk9 = 0; // initially lock is open + + lk10 = 0; // initially lock is open + + lk11 = 0; // initially lock is open + + lk12 = 0; // initially lock is open + + lk13 = 0; // initially lock is open + + lk14 = 0; // initially lock is open + + lk15 = 0; // initially lock is open + + + // lock phase + if (p1 != 0) { + lk1 = 1; // acquire lock + } else {} + + if (p2 != 0) { + lk2 = 1; // acquire lock + } else {} + + if (p3 != 0) { + lk3 = 1; // acquire lock + } else {} + + if (p4 != 0) { + lk4 = 1; // acquire lock + } else {} + + if (p5 != 0) { + lk5 = 1; // acquire lock + } else {} + + if (p6 != 0) { + lk6 = 1; // acquire lock + } else {} + + if (p7 != 0) { + lk7 = 1; // acquire lock + } else {} + + if (p8 != 0) { + lk8 = 1; // acquire lock + } else {} + + if (p9 != 0) { + lk9 = 1; // acquire lock + } else {} + + if (p10 != 0) { + lk10 = 1; // acquire lock + } else {} + + if (p11 != 0) { + lk11 = 1; // acquire lock + } else {} + + if (p12 != 0) { + lk12 = 1; // acquire lock + } else {} + + if (p13 != 0) { + lk13 = 1; // acquire lock + } else {} + + if (p14 != 0) { + lk14 = 1; // acquire lock + } else {} + + if (p15 != 0) { + lk15 = 1; // acquire lock + } else {} + + + // unlock phase + if (p1 != 0) { + if (lk1 != 1) goto ERROR; // assertion failure + lk1 = 0; + } else {} + + if (p2 != 0) { + if (lk2 != 1) goto ERROR; // assertion failure + lk2 = 0; + } else {} + + if (p3 != 0) { + if (lk3 != 1) goto ERROR; // assertion failure + lk3 = 0; + } else {} + + if (p4 != 0) { + if (lk4 != 1) goto ERROR; // assertion failure + lk4 = 0; + } else {} + + if (p5 != 0) { + if (lk5 != 1) goto ERROR; // assertion failure + lk5 = 0; + } else {} + + if (p6 != 0) { + if (lk6 != 1) goto ERROR; // assertion failure + lk6 = 0; + } else {} + + if (p7 != 0) { + if (lk7 != 1) goto ERROR; // assertion failure + lk7 = 0; + } else {} + + if (p8 != 0) { + if (lk8 != 1) goto ERROR; // assertion failure + lk8 = 0; + } else {} + + if (p9 != 0) { + if (lk9 != 1) goto ERROR; // assertion failure + lk9 = 0; + } else {} + + if (p10 != 0) { + if (lk10 != 1) goto ERROR; // assertion failure + lk10 = 0; + } else {} + + if (p11 != 0) { + if (lk11 != 1) goto ERROR; // assertion failure + lk11 = 0; + } else {} + + if (p12 != 0) { + if (lk12 != 1) goto ERROR; // assertion failure + lk12 = 0; + } else {} + + if (p13 != 0) { + if (lk13 != 1) goto ERROR; // assertion failure + lk13 = 0; + } else {} + + if (p14 != 0) { + if (lk14 != 1) goto ERROR; // assertion failure + lk14 = 0; + } else {} + + if (p15 != 0) { + if (lk15 != 1) goto ERROR; // assertion failure + lk15 = 0; + } else {} + + } + out: + return 0; + ERROR: __VERIFIER_error(); + return 0; +} + diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/token_ring.01_false-unreach-call_false-termination.cil.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/token_ring.01_false-unreach-call_false-termination.cil.c new file mode 100644 index 000000000..873d5ca57 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/token_ring.01_false-unreach-call_false-termination.cil.c @@ -0,0 +1,485 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* Generated by CIL v. 1.3.6 */ +/* print_CIL_Input is true */ + +void error(void) +{ + + { + ERROR: __VERIFIER_error(); + return; +} +} +int m_pc = 0; +int t1_pc = 0; +int m_st ; +int t1_st ; +int m_i ; +int t1_i ; +int M_E = 2; +int T1_E = 2; +int E_M = 2; +int E_1 = 2; +int is_master_triggered(void) ; +int is_transmit1_triggered(void) ; +void immediate_notify(void) ; +int token ; +int __VERIFIER_nondet_int() ; +int local ; +void master(void) +{ +int tmp_var ; + { + if (m_pc == 0) { + goto M_ENTRY; + } else { + if (m_pc == 1) { + goto M_WAIT; + } else { + + } + } + M_ENTRY: ; + { + while (1) { + while_0_continue: /* CIL Label */ ; + { + token = __VERIFIER_nondet_int(); + local = token; + E_1 = 1; + immediate_notify(); + E_1 = 2; + m_pc = 1; + m_st = 2; + } + + goto return_label; + M_WAIT: ; + if (token != local + 1) { + { + error(); + } + } else { + if(tmp_var <= 5){ + if(tmp_var >= 5){ + + } + } + + if(tmp_var <= 5){ + if(tmp_var >= 5){ + if(tmp_var == 5){ + error(); + } + } + } + } + } + while_0_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit1(void) +{ + + { + if (t1_pc == 0) { + goto T1_ENTRY; + } else { + if (t1_pc == 1) { + goto T1_WAIT; + } else { + + } + } + T1_ENTRY: ; + { + while (1) { + while_1_continue: /* CIL Label */ ; + t1_pc = 1; + t1_st = 2; + + goto return_label; + T1_WAIT: + { + token += 1; + E_M = 1; + immediate_notify(); + E_M = 2; + } + } + while_1_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +int is_master_triggered(void) +{ int __retres1 ; + + { + if (m_pc == 1) { + if (E_M == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit1_triggered(void) +{ int __retres1 ; + + { + if (t1_pc == 1) { + if (E_1 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +void update_channels(void) +{ + + { + + return; +} +} +void init_threads(void) +{ + + { + if (m_i == 1) { + m_st = 0; + } else { + m_st = 2; + } + if (t1_i == 1) { + t1_st = 0; + } else { + t1_st = 2; + } + + return; +} +} +int exists_runnable_thread(void) +{ int __retres1 ; + + { + if (m_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t1_st == 0) { + __retres1 = 1; + goto return_label; + } else { + + } + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +void eval(void) +{ + int tmp ; + + { + { + while (1) { + while_2_continue: /* CIL Label */ ; + { + tmp = exists_runnable_thread(); + } + if (tmp) { + + } else { + goto while_2_break; + } + if (m_st == 0) { + int tmp_ndt_1; + tmp_ndt_1 = __VERIFIER_nondet_int(); + if (tmp_ndt_1) { + { + m_st = 1; + master(); + } + } else { + + } + } else { + + } + if (t1_st == 0) { + int tmp_ndt_2; + tmp_ndt_2 = __VERIFIER_nondet_int(); + if (tmp_ndt_2) { + { + t1_st = 1; + transmit1(); + } + } else { + + } + } else { + + } + } + while_2_break: /* CIL Label */ ; + } + + return; +} +} +void fire_delta_events(void) +{ + + { + if (M_E == 0) { + M_E = 1; + } else { + + } + if (T1_E == 0) { + T1_E = 1; + } else { + + } + if (E_M == 0) { + E_M = 1; + } else { + + } + if (E_1 == 0) { + E_1 = 1; + } else { + + } + + return; +} +} +void reset_delta_events(void) +{ + + { + if (M_E == 1) { + M_E = 2; + } else { + + } + if (T1_E == 1) { + T1_E = 2; + } else { + + } + if (E_M == 1) { + E_M = 2; + } else { + + } + if (E_1 == 1) { + E_1 = 2; + } else { + + } + + return; +} +} +void activate_threads(void) +{ int tmp ; + int tmp___0 ; + + { + { + tmp = is_master_triggered(); + } + if (tmp) { + m_st = 0; + } else { + + } + { + tmp___0 = is_transmit1_triggered(); + } + if (tmp___0) { + t1_st = 0; + } else { + + } + + return; +} +} +void immediate_notify(void) +{ + + { + { + activate_threads(); + } + + return; +} +} +void fire_time_events(void) +{ + + { + M_E = 1; + + return; +} +} +void reset_time_events(void) +{ + + { + if (M_E == 1) { + M_E = 2; + } else { + + } + if (T1_E == 1) { + T1_E = 2; + } else { + + } + if (E_M == 1) { + E_M = 2; + } else { + + } + if (E_1 == 1) { + E_1 = 2; + } else { + + } + + return; +} +} +void init_model(void) +{ + + { + m_i = 1; + t1_i = 1; + + return; +} +} +int stop_simulation(void) +{ int tmp ; + int __retres2 ; + + { + { + tmp = exists_runnable_thread(); + } + if (tmp) { + __retres2 = 0; + goto return_label; + } else { + + } + __retres2 = 1; + return_label: /* CIL Label */ + return (__retres2); +} +} +void start_simulation(void) +{ int kernel_st ; + int tmp ; + int tmp___0 ; + + { + { + kernel_st = 0; + update_channels(); + init_threads(); + fire_delta_events(); + activate_threads(); + reset_delta_events(); + } + { + while (1) { + while_3_continue: /* CIL Label */ ; + { + kernel_st = 1; + eval(); + } + { + kernel_st = 2; + update_channels(); + } + { + kernel_st = 3; + fire_delta_events(); + activate_threads(); + reset_delta_events(); + } + { + tmp = exists_runnable_thread(); + } + if (tmp == 0) { + { + kernel_st = 4; + fire_time_events(); + activate_threads(); + reset_time_events(); + } + } else { + + } + { + tmp___0 = stop_simulation(); + } + if (tmp___0) { + goto while_3_break; + } else { + + } + } + while_3_break: /* CIL Label */ ; + } + + return; +} +} +int main(void) +{ int __retres1 ; + + { + { + init_model(); + start_simulation(); + } + __retres1 = 0; + return (__retres1); +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/token_ring.05_false-unreach-call_false-termination.cil.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/token_ring.05_false-unreach-call_false-termination.cil.c new file mode 100644 index 000000000..5871c7731 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/token_ring.05_false-unreach-call_false-termination.cil.c @@ -0,0 +1,985 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* Generated by CIL v. 1.3.6 */ +/* print_CIL_Input is true */ + +void error(void) +{ + + { + ERROR: __VERIFIER_error(); + return; +} +} +int m_pc = 0; +int t1_pc = 0; +int t2_pc = 0; +int t3_pc = 0; +int t4_pc = 0; +int t5_pc = 0; +int m_st ; +int t1_st ; +int t2_st ; +int t3_st ; +int t4_st ; +int t5_st ; +int m_i ; +int t1_i ; +int t2_i ; +int t3_i ; +int t4_i ; +int t5_i ; +int M_E = 2; +int T1_E = 2; +int T2_E = 2; +int T3_E = 2; +int T4_E = 2; +int T5_E = 2; +int E_M = 2; +int E_1 = 2; +int E_2 = 2; +int E_3 = 2; +int E_4 = 2; +int E_5 = 2; +int is_master_triggered(void) ; +int is_transmit1_triggered(void) ; +int is_transmit2_triggered(void) ; +int is_transmit3_triggered(void) ; +int is_transmit4_triggered(void) ; +int is_transmit5_triggered(void) ; +void immediate_notify(void) ; +int token ; +int __VERIFIER_nondet_int() ; +int local ; +void master(void) +{ +int tmp_var ; + { + if (m_pc == 0) { + goto M_ENTRY; + } else { + if (m_pc == 1) { + goto M_WAIT; + } else { + + } + } + M_ENTRY: ; + { + while (1) { + while_0_continue: /* CIL Label */ ; + { + token = __VERIFIER_nondet_int(); + local = token; + E_1 = 1; + immediate_notify(); + E_1 = 2; + m_pc = 1; + m_st = 2; + } + + goto return_label; + M_WAIT: ; + if (token != local + 5) { + { + error(); + } + } else { + if(tmp_var <= 5){ + if(tmp_var >= 5){ + + } + } + + if(tmp_var <= 5){ + if(tmp_var >= 5){ + if(tmp_var == 5){ + error(); + } + } + } + } + } + while_0_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit1(void) +{ + + { + if (t1_pc == 0) { + goto T1_ENTRY; + } else { + if (t1_pc == 1) { + goto T1_WAIT; + } else { + + } + } + T1_ENTRY: ; + { + while (1) { + while_1_continue: /* CIL Label */ ; + t1_pc = 1; + t1_st = 2; + + goto return_label; + T1_WAIT: + { + token += 1; + E_2 = 1; + immediate_notify(); + E_2 = 2; + } + } + while_1_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit2(void) +{ + + { + if (t2_pc == 0) { + goto T2_ENTRY; + } else { + if (t2_pc == 1) { + goto T2_WAIT; + } else { + + } + } + T2_ENTRY: ; + { + while (1) { + while_2_continue: /* CIL Label */ ; + t2_pc = 1; + t2_st = 2; + + goto return_label; + T2_WAIT: + { + token += 1; + E_3 = 1; + immediate_notify(); + E_3 = 2; + } + } + while_2_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit3(void) +{ + + { + if (t3_pc == 0) { + goto T3_ENTRY; + } else { + if (t3_pc == 1) { + goto T3_WAIT; + } else { + + } + } + T3_ENTRY: ; + { + while (1) { + while_3_continue: /* CIL Label */ ; + t3_pc = 1; + t3_st = 2; + + goto return_label; + T3_WAIT: + { + token += 1; + E_4 = 1; + immediate_notify(); + E_4 = 2; + } + } + while_3_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit4(void) +{ + + { + if (t4_pc == 0) { + goto T4_ENTRY; + } else { + if (t4_pc == 1) { + goto T4_WAIT; + } else { + + } + } + T4_ENTRY: ; + { + while (1) { + while_4_continue: /* CIL Label */ ; + t4_pc = 1; + t4_st = 2; + + goto return_label; + T4_WAIT: + { + token += 1; + E_5 = 1; + immediate_notify(); + E_5 = 2; + } + } + while_4_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit5(void) +{ + + { + if (t5_pc == 0) { + goto T5_ENTRY; + } else { + if (t5_pc == 1) { + goto T5_WAIT; + } else { + + } + } + T5_ENTRY: ; + { + while (1) { + while_5_continue: /* CIL Label */ ; + t5_pc = 1; + t5_st = 2; + + goto return_label; + T5_WAIT: + { + token += 1; + E_M = 1; + immediate_notify(); + E_M = 2; + } + } + while_5_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +int is_master_triggered(void) +{ int __retres1 ; + + { + if (m_pc == 1) { + if (E_M == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit1_triggered(void) +{ int __retres1 ; + + { + if (t1_pc == 1) { + if (E_1 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit2_triggered(void) +{ int __retres1 ; + + { + if (t2_pc == 1) { + if (E_2 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit3_triggered(void) +{ int __retres1 ; + + { + if (t3_pc == 1) { + if (E_3 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit4_triggered(void) +{ int __retres1 ; + + { + if (t4_pc == 1) { + if (E_4 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit5_triggered(void) +{ int __retres1 ; + + { + if (t5_pc == 1) { + if (E_5 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +void update_channels(void) +{ + + { + + return; +} +} +void init_threads(void) +{ + + { + if (m_i == 1) { + m_st = 0; + } else { + m_st = 2; + } + if (t1_i == 1) { + t1_st = 0; + } else { + t1_st = 2; + } + if (t2_i == 1) { + t2_st = 0; + } else { + t2_st = 2; + } + if (t3_i == 1) { + t3_st = 0; + } else { + t3_st = 2; + } + if (t4_i == 1) { + t4_st = 0; + } else { + t4_st = 2; + } + if (t5_i == 1) { + t5_st = 0; + } else { + t5_st = 2; + } + + return; +} +} +int exists_runnable_thread(void) +{ int __retres1 ; + + { + if (m_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t1_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t2_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t3_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t4_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t5_st == 0) { + __retres1 = 1; + goto return_label; + } else { + + } + } + } + } + } + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +void eval(void) +{ + int tmp ; + + { + { + while (1) { + while_6_continue: /* CIL Label */ ; + { + tmp = exists_runnable_thread(); + } + if (tmp) { + + } else { + goto while_6_break; + } + if (m_st == 0) { + int tmp_ndt_1; + tmp_ndt_1 = __VERIFIER_nondet_int(); + if (tmp_ndt_1) { + { + m_st = 1; + master(); + } + } else { + + } + } else { + + } + if (t1_st == 0) { + int tmp_ndt_2; + tmp_ndt_2 = __VERIFIER_nondet_int(); + if (tmp_ndt_2) { + { + t1_st = 1; + transmit1(); + } + } else { + + } + } else { + + } + if (t2_st == 0) { + int tmp_ndt_3; + tmp_ndt_3 = __VERIFIER_nondet_int(); + if (tmp_ndt_3) { + { + t2_st = 1; + transmit2(); + } + } else { + + } + } else { + + } + if (t3_st == 0) { + int tmp_ndt_4; + tmp_ndt_4 = __VERIFIER_nondet_int(); + if (tmp_ndt_4) { + { + t3_st = 1; + transmit3(); + } + } else { + + } + } else { + + } + if (t4_st == 0) { + int tmp_ndt_5; + tmp_ndt_5 = __VERIFIER_nondet_int(); + if (tmp_ndt_5) { + { + t4_st = 1; + transmit4(); + } + } else { + + } + } else { + + } + if (t5_st == 0) { + int tmp_ndt_6; + tmp_ndt_6 = __VERIFIER_nondet_int(); + if (tmp_ndt_6) { + { + t5_st = 1; + transmit5(); + } + } else { + + } + } else { + + } + } + while_6_break: /* CIL Label */ ; + } + + return; +} +} +void fire_delta_events(void) +{ + + { + if (M_E == 0) { + M_E = 1; + } else { + + } + if (T1_E == 0) { + T1_E = 1; + } else { + + } + if (T2_E == 0) { + T2_E = 1; + } else { + + } + if (T3_E == 0) { + T3_E = 1; + } else { + + } + if (T4_E == 0) { + T4_E = 1; + } else { + + } + if (T5_E == 0) { + T5_E = 1; + } else { + + } + if (E_M == 0) { + E_M = 1; + } else { + + } + if (E_1 == 0) { + E_1 = 1; + } else { + + } + if (E_2 == 0) { + E_2 = 1; + } else { + + } + if (E_3 == 0) { + E_3 = 1; + } else { + + } + if (E_4 == 0) { + E_4 = 1; + } else { + + } + if (E_5 == 0) { + E_5 = 1; + } else { + + } + + return; +} +} +void reset_delta_events(void) +{ + + { + if (M_E == 1) { + M_E = 2; + } else { + + } + if (T1_E == 1) { + T1_E = 2; + } else { + + } + if (T2_E == 1) { + T2_E = 2; + } else { + + } + if (T3_E == 1) { + T3_E = 2; + } else { + + } + if (T4_E == 1) { + T4_E = 2; + } else { + + } + if (T5_E == 1) { + T5_E = 2; + } else { + + } + if (E_M == 1) { + E_M = 2; + } else { + + } + if (E_1 == 1) { + E_1 = 2; + } else { + + } + if (E_2 == 1) { + E_2 = 2; + } else { + + } + if (E_3 == 1) { + E_3 = 2; + } else { + + } + if (E_4 == 1) { + E_4 = 2; + } else { + + } + if (E_5 == 1) { + E_5 = 2; + } else { + + } + + return; +} +} +void activate_threads(void) +{ int tmp ; + int tmp___0 ; + int tmp___1 ; + int tmp___2 ; + int tmp___3 ; + int tmp___4 ; + + { + { + tmp = is_master_triggered(); + } + if (tmp) { + m_st = 0; + } else { + + } + { + tmp___0 = is_transmit1_triggered(); + } + if (tmp___0) { + t1_st = 0; + } else { + + } + { + tmp___1 = is_transmit2_triggered(); + } + if (tmp___1) { + t2_st = 0; + } else { + + } + { + tmp___2 = is_transmit3_triggered(); + } + if (tmp___2) { + t3_st = 0; + } else { + + } + { + tmp___3 = is_transmit4_triggered(); + } + if (tmp___3) { + t4_st = 0; + } else { + + } + { + tmp___4 = is_transmit5_triggered(); + } + if (tmp___4) { + t5_st = 0; + } else { + + } + + return; +} +} +void immediate_notify(void) +{ + + { + { + activate_threads(); + } + + return; +} +} +void fire_time_events(void) +{ + + { + M_E = 1; + + return; +} +} +void reset_time_events(void) +{ + + { + if (M_E == 1) { + M_E = 2; + } else { + + } + if (T1_E == 1) { + T1_E = 2; + } else { + + } + if (T2_E == 1) { + T2_E = 2; + } else { + + } + if (T3_E == 1) { + T3_E = 2; + } else { + + } + if (T4_E == 1) { + T4_E = 2; + } else { + + } + if (T5_E == 1) { + T5_E = 2; + } else { + + } + if (E_M == 1) { + E_M = 2; + } else { + + } + if (E_1 == 1) { + E_1 = 2; + } else { + + } + if (E_2 == 1) { + E_2 = 2; + } else { + + } + if (E_3 == 1) { + E_3 = 2; + } else { + + } + if (E_4 == 1) { + E_4 = 2; + } else { + + } + if (E_5 == 1) { + E_5 = 2; + } else { + + } + + return; +} +} +void init_model(void) +{ + + { + m_i = 1; + t1_i = 1; + t2_i = 1; + t3_i = 1; + t4_i = 1; + t5_i = 1; + + return; +} +} +int stop_simulation(void) +{ int tmp ; + int __retres2 ; + + { + { + tmp = exists_runnable_thread(); + } + if (tmp) { + __retres2 = 0; + goto return_label; + } else { + + } + __retres2 = 1; + return_label: /* CIL Label */ + return (__retres2); +} +} +void start_simulation(void) +{ int kernel_st ; + int tmp ; + int tmp___0 ; + + { + { + kernel_st = 0; + update_channels(); + init_threads(); + fire_delta_events(); + activate_threads(); + reset_delta_events(); + } + { + while (1) { + while_7_continue: /* CIL Label */ ; + { + kernel_st = 1; + eval(); + } + { + kernel_st = 2; + update_channels(); + } + { + kernel_st = 3; + fire_delta_events(); + activate_threads(); + reset_delta_events(); + } + { + tmp = exists_runnable_thread(); + } + if (tmp == 0) { + { + kernel_st = 4; + fire_time_events(); + activate_threads(); + reset_time_events(); + } + } else { + + } + { + tmp___0 = stop_simulation(); + } + if (tmp___0) { + goto while_7_break; + } else { + + } + } + while_7_break: /* CIL Label */ ; + } + + return; +} +} +int main(void) +{ int __retres1 ; + + { + { + init_model(); + start_simulation(); + } + __retres1 = 0; + return (__retres1); +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/token_ring.10_false-unreach-call_false-termination.cil.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/token_ring.10_false-unreach-call_false-termination.cil.c new file mode 100644 index 000000000..f21118a5f --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/token_ring.10_false-unreach-call_false-termination.cil.c @@ -0,0 +1,1610 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* Generated by CIL v. 1.3.6 */ +/* print_CIL_Input is true */ + +void error(void) +{ + + { + ERROR: __VERIFIER_error(); + return; +} +} +int m_pc = 0; +int t1_pc = 0; +int t2_pc = 0; +int t3_pc = 0; +int t4_pc = 0; +int t5_pc = 0; +int t6_pc = 0; +int t7_pc = 0; +int t8_pc = 0; +int t9_pc = 0; +int t10_pc = 0; +int m_st ; +int t1_st ; +int t2_st ; +int t3_st ; +int t4_st ; +int t5_st ; +int t6_st ; +int t7_st ; +int t8_st ; +int t9_st ; +int t10_st ; +int m_i ; +int t1_i ; +int t2_i ; +int t3_i ; +int t4_i ; +int t5_i ; +int t6_i ; +int t7_i ; +int t8_i ; +int t9_i ; +int t10_i ; +int M_E = 2; +int T1_E = 2; +int T2_E = 2; +int T3_E = 2; +int T4_E = 2; +int T5_E = 2; +int T6_E = 2; +int T7_E = 2; +int T8_E = 2; +int T9_E = 2; +int T10_E = 2; +int E_M = 2; +int E_1 = 2; +int E_2 = 2; +int E_3 = 2; +int E_4 = 2; +int E_5 = 2; +int E_6 = 2; +int E_7 = 2; +int E_8 = 2; +int E_9 = 2; +int E_10 = 2; +int is_master_triggered(void) ; +int is_transmit1_triggered(void) ; +int is_transmit2_triggered(void) ; +int is_transmit3_triggered(void) ; +int is_transmit4_triggered(void) ; +int is_transmit5_triggered(void) ; +int is_transmit6_triggered(void) ; +int is_transmit7_triggered(void) ; +int is_transmit8_triggered(void) ; +int is_transmit9_triggered(void) ; +int is_transmit10_triggered(void) ; +void immediate_notify(void) ; +int token ; +int __VERIFIER_nondet_int() ; +int local ; +void master(void) +{ +int tmp_var ; + { + if (m_pc == 0) { + goto M_ENTRY; + } else { + if (m_pc == 1) { + goto M_WAIT; + } else { + + } + } + M_ENTRY: ; + { + while (1) { + while_0_continue: /* CIL Label */ ; + { + token = __VERIFIER_nondet_int(); + local = token; + E_1 = 1; + immediate_notify(); + E_1 = 2; + m_pc = 1; + m_st = 2; + } + + goto return_label; + M_WAIT: ; + if (token != local + 10) { + { + error(); + } + } else { + if(tmp_var <= 5){ + if(tmp_var >= 5){ + + } + } + + if(tmp_var <= 5){ + if(tmp_var >= 5){ + if(tmp_var == 5){ + error(); + } + } + } + } + } + while_0_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit1(void) +{ + + { + if (t1_pc == 0) { + goto T1_ENTRY; + } else { + if (t1_pc == 1) { + goto T1_WAIT; + } else { + + } + } + T1_ENTRY: ; + { + while (1) { + while_1_continue: /* CIL Label */ ; + t1_pc = 1; + t1_st = 2; + + goto return_label; + T1_WAIT: + { + token += 1; + E_2 = 1; + immediate_notify(); + E_2 = 2; + } + } + while_1_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit2(void) +{ + + { + if (t2_pc == 0) { + goto T2_ENTRY; + } else { + if (t2_pc == 1) { + goto T2_WAIT; + } else { + + } + } + T2_ENTRY: ; + { + while (1) { + while_2_continue: /* CIL Label */ ; + t2_pc = 1; + t2_st = 2; + + goto return_label; + T2_WAIT: + { + token += 1; + E_3 = 1; + immediate_notify(); + E_3 = 2; + } + } + while_2_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit3(void) +{ + + { + if (t3_pc == 0) { + goto T3_ENTRY; + } else { + if (t3_pc == 1) { + goto T3_WAIT; + } else { + + } + } + T3_ENTRY: ; + { + while (1) { + while_3_continue: /* CIL Label */ ; + t3_pc = 1; + t3_st = 2; + + goto return_label; + T3_WAIT: + { + token += 1; + E_4 = 1; + immediate_notify(); + E_4 = 2; + } + } + while_3_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit4(void) +{ + + { + if (t4_pc == 0) { + goto T4_ENTRY; + } else { + if (t4_pc == 1) { + goto T4_WAIT; + } else { + + } + } + T4_ENTRY: ; + { + while (1) { + while_4_continue: /* CIL Label */ ; + t4_pc = 1; + t4_st = 2; + + goto return_label; + T4_WAIT: + { + token += 1; + E_5 = 1; + immediate_notify(); + E_5 = 2; + } + } + while_4_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit5(void) +{ + + { + if (t5_pc == 0) { + goto T5_ENTRY; + } else { + if (t5_pc == 1) { + goto T5_WAIT; + } else { + + } + } + T5_ENTRY: ; + { + while (1) { + while_5_continue: /* CIL Label */ ; + t5_pc = 1; + t5_st = 2; + + goto return_label; + T5_WAIT: + { + token += 1; + E_6 = 1; + immediate_notify(); + E_6 = 2; + } + } + while_5_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit6(void) +{ + + { + if (t6_pc == 0) { + goto T6_ENTRY; + } else { + if (t6_pc == 1) { + goto T6_WAIT; + } else { + + } + } + T6_ENTRY: ; + { + while (1) { + while_6_continue: /* CIL Label */ ; + t6_pc = 1; + t6_st = 2; + + goto return_label; + T6_WAIT: + { + token += 1; + E_7 = 1; + immediate_notify(); + E_7 = 2; + } + } + while_6_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit7(void) +{ + + { + if (t7_pc == 0) { + goto T7_ENTRY; + } else { + if (t7_pc == 1) { + goto T7_WAIT; + } else { + + } + } + T7_ENTRY: ; + { + while (1) { + while_7_continue: /* CIL Label */ ; + t7_pc = 1; + t7_st = 2; + + goto return_label; + T7_WAIT: + { + token += 1; + E_8 = 1; + immediate_notify(); + E_8 = 2; + } + } + while_7_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit8(void) +{ + + { + if (t8_pc == 0) { + goto T8_ENTRY; + } else { + if (t8_pc == 1) { + goto T8_WAIT; + } else { + + } + } + T8_ENTRY: ; + { + while (1) { + while_8_continue: /* CIL Label */ ; + t8_pc = 1; + t8_st = 2; + + goto return_label; + T8_WAIT: + { + token += 1; + E_9 = 1; + immediate_notify(); + E_9 = 2; + } + } + while_8_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit9(void) +{ + + { + if (t9_pc == 0) { + goto T9_ENTRY; + } else { + if (t9_pc == 1) { + goto T9_WAIT; + } else { + + } + } + T9_ENTRY: ; + { + while (1) { + while_9_continue: /* CIL Label */ ; + t9_pc = 1; + t9_st = 2; + + goto return_label; + T9_WAIT: + { + token += 1; + E_10 = 1; + immediate_notify(); + E_10 = 2; + } + } + while_9_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit10(void) +{ + + { + if (t10_pc == 0) { + goto T10_ENTRY; + } else { + if (t10_pc == 1) { + goto T10_WAIT; + } else { + + } + } + T10_ENTRY: ; + { + while (1) { + while_10_continue: /* CIL Label */ ; + t10_pc = 1; + t10_st = 2; + + goto return_label; + T10_WAIT: + { + token += 1; + E_M = 1; + immediate_notify(); + E_M = 2; + } + } + while_10_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +int is_master_triggered(void) +{ int __retres1 ; + + { + if (m_pc == 1) { + if (E_M == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit1_triggered(void) +{ int __retres1 ; + + { + if (t1_pc == 1) { + if (E_1 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit2_triggered(void) +{ int __retres1 ; + + { + if (t2_pc == 1) { + if (E_2 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit3_triggered(void) +{ int __retres1 ; + + { + if (t3_pc == 1) { + if (E_3 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit4_triggered(void) +{ int __retres1 ; + + { + if (t4_pc == 1) { + if (E_4 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit5_triggered(void) +{ int __retres1 ; + + { + if (t5_pc == 1) { + if (E_5 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit6_triggered(void) +{ int __retres1 ; + + { + if (t6_pc == 1) { + if (E_6 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit7_triggered(void) +{ int __retres1 ; + + { + if (t7_pc == 1) { + if (E_7 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit8_triggered(void) +{ int __retres1 ; + + { + if (t8_pc == 1) { + if (E_8 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit9_triggered(void) +{ int __retres1 ; + + { + if (t9_pc == 1) { + if (E_9 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit10_triggered(void) +{ int __retres1 ; + + { + if (t10_pc == 1) { + if (E_10 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +void update_channels(void) +{ + + { + + return; +} +} +void init_threads(void) +{ + + { + if (m_i == 1) { + m_st = 0; + } else { + m_st = 2; + } + if (t1_i == 1) { + t1_st = 0; + } else { + t1_st = 2; + } + if (t2_i == 1) { + t2_st = 0; + } else { + t2_st = 2; + } + if (t3_i == 1) { + t3_st = 0; + } else { + t3_st = 2; + } + if (t4_i == 1) { + t4_st = 0; + } else { + t4_st = 2; + } + if (t5_i == 1) { + t5_st = 0; + } else { + t5_st = 2; + } + if (t6_i == 1) { + t6_st = 0; + } else { + t6_st = 2; + } + if (t7_i == 1) { + t7_st = 0; + } else { + t7_st = 2; + } + if (t8_i == 1) { + t8_st = 0; + } else { + t8_st = 2; + } + if (t9_i == 1) { + t9_st = 0; + } else { + t9_st = 2; + } + if (t10_i == 1) { + t10_st = 0; + } else { + t10_st = 2; + } + + return; +} +} +int exists_runnable_thread(void) +{ int __retres1 ; + + { + if (m_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t1_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t2_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t3_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t4_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t5_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t6_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t7_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t8_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t9_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t10_st == 0) { + __retres1 = 1; + goto return_label; + } else { + + } + } + } + } + } + } + } + } + } + } + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +void eval(void) +{ + int tmp ; + + { + { + while (1) { + while_11_continue: /* CIL Label */ ; + { + tmp = exists_runnable_thread(); + } + if (tmp) { + + } else { + goto while_11_break; + } + if (m_st == 0) { + int tmp_ndt_1; + tmp_ndt_1 = __VERIFIER_nondet_int(); + if (tmp_ndt_1) { + { + m_st = 1; + master(); + } + } else { + + } + } else { + + } + if (t1_st == 0) { + int tmp_ndt_2; + tmp_ndt_2 = __VERIFIER_nondet_int(); + if (tmp_ndt_2) { + { + t1_st = 1; + transmit1(); + } + } else { + + } + } else { + + } + if (t2_st == 0) { + int tmp_ndt_3; + tmp_ndt_3 = __VERIFIER_nondet_int(); + if (tmp_ndt_3) { + { + t2_st = 1; + transmit2(); + } + } else { + + } + } else { + + } + if (t3_st == 0) { + int tmp_ndt_4; + tmp_ndt_4 = __VERIFIER_nondet_int(); + if (tmp_ndt_4) { + { + t3_st = 1; + transmit3(); + } + } else { + + } + } else { + + } + if (t4_st == 0) { + int tmp_ndt_5; + tmp_ndt_5 = __VERIFIER_nondet_int(); + if (tmp_ndt_5) { + { + t4_st = 1; + transmit4(); + } + } else { + + } + } else { + + } + if (t5_st == 0) { + int tmp_ndt_6; + tmp_ndt_6 = __VERIFIER_nondet_int(); + if (tmp_ndt_6) { + { + t5_st = 1; + transmit5(); + } + } else { + + } + } else { + + } + if (t6_st == 0) { + int tmp_ndt_7; + tmp_ndt_7 = __VERIFIER_nondet_int(); + if (tmp_ndt_7) { + { + t6_st = 1; + transmit6(); + } + } else { + + } + } else { + + } + if (t7_st == 0) { + int tmp_ndt_8; + tmp_ndt_8 = __VERIFIER_nondet_int(); + if (tmp_ndt_8) { + { + t7_st = 1; + transmit7(); + } + } else { + + } + } else { + + } + if (t8_st == 0) { + int tmp_ndt_9; + tmp_ndt_9 = __VERIFIER_nondet_int(); + if (tmp_ndt_9) { + { + t8_st = 1; + transmit8(); + } + } else { + + } + } else { + + } + if (t9_st == 0) { + int tmp_ndt_10; + tmp_ndt_10 = __VERIFIER_nondet_int(); + if (tmp_ndt_10) { + { + t9_st = 1; + transmit9(); + } + } else { + + } + } else { + + } + if (t10_st == 0) { + int tmp_ndt_11; + tmp_ndt_11 = __VERIFIER_nondet_int(); + if (tmp_ndt_11) { + { + t10_st = 1; + transmit10(); + } + } else { + + } + } else { + + } + } + while_11_break: /* CIL Label */ ; + } + + return; +} +} +void fire_delta_events(void) +{ + + { + if (M_E == 0) { + M_E = 1; + } else { + + } + if (T1_E == 0) { + T1_E = 1; + } else { + + } + if (T2_E == 0) { + T2_E = 1; + } else { + + } + if (T3_E == 0) { + T3_E = 1; + } else { + + } + if (T4_E == 0) { + T4_E = 1; + } else { + + } + if (T5_E == 0) { + T5_E = 1; + } else { + + } + if (T6_E == 0) { + T6_E = 1; + } else { + + } + if (T7_E == 0) { + T7_E = 1; + } else { + + } + if (T8_E == 0) { + T8_E = 1; + } else { + + } + if (T9_E == 0) { + T9_E = 1; + } else { + + } + if (T10_E == 0) { + T10_E = 1; + } else { + + } + if (E_M == 0) { + E_M = 1; + } else { + + } + if (E_1 == 0) { + E_1 = 1; + } else { + + } + if (E_2 == 0) { + E_2 = 1; + } else { + + } + if (E_3 == 0) { + E_3 = 1; + } else { + + } + if (E_4 == 0) { + E_4 = 1; + } else { + + } + if (E_5 == 0) { + E_5 = 1; + } else { + + } + if (E_6 == 0) { + E_6 = 1; + } else { + + } + if (E_7 == 0) { + E_7 = 1; + } else { + + } + if (E_8 == 0) { + E_8 = 1; + } else { + + } + if (E_9 == 0) { + E_9 = 1; + } else { + + } + if (E_10 == 0) { + E_10 = 1; + } else { + + } + + return; +} +} +void reset_delta_events(void) +{ + + { + if (M_E == 1) { + M_E = 2; + } else { + + } + if (T1_E == 1) { + T1_E = 2; + } else { + + } + if (T2_E == 1) { + T2_E = 2; + } else { + + } + if (T3_E == 1) { + T3_E = 2; + } else { + + } + if (T4_E == 1) { + T4_E = 2; + } else { + + } + if (T5_E == 1) { + T5_E = 2; + } else { + + } + if (T6_E == 1) { + T6_E = 2; + } else { + + } + if (T7_E == 1) { + T7_E = 2; + } else { + + } + if (T8_E == 1) { + T8_E = 2; + } else { + + } + if (T9_E == 1) { + T9_E = 2; + } else { + + } + if (T10_E == 1) { + T10_E = 2; + } else { + + } + if (E_M == 1) { + E_M = 2; + } else { + + } + if (E_1 == 1) { + E_1 = 2; + } else { + + } + if (E_2 == 1) { + E_2 = 2; + } else { + + } + if (E_3 == 1) { + E_3 = 2; + } else { + + } + if (E_4 == 1) { + E_4 = 2; + } else { + + } + if (E_5 == 1) { + E_5 = 2; + } else { + + } + if (E_6 == 1) { + E_6 = 2; + } else { + + } + if (E_7 == 1) { + E_7 = 2; + } else { + + } + if (E_8 == 1) { + E_8 = 2; + } else { + + } + if (E_9 == 1) { + E_9 = 2; + } else { + + } + if (E_10 == 1) { + E_10 = 2; + } else { + + } + + return; +} +} +void activate_threads(void) +{ int tmp ; + int tmp___0 ; + int tmp___1 ; + int tmp___2 ; + int tmp___3 ; + int tmp___4 ; + int tmp___5 ; + int tmp___6 ; + int tmp___7 ; + int tmp___8 ; + int tmp___9 ; + + { + { + tmp = is_master_triggered(); + } + if (tmp) { + m_st = 0; + } else { + + } + { + tmp___0 = is_transmit1_triggered(); + } + if (tmp___0) { + t1_st = 0; + } else { + + } + { + tmp___1 = is_transmit2_triggered(); + } + if (tmp___1) { + t2_st = 0; + } else { + + } + { + tmp___2 = is_transmit3_triggered(); + } + if (tmp___2) { + t3_st = 0; + } else { + + } + { + tmp___3 = is_transmit4_triggered(); + } + if (tmp___3) { + t4_st = 0; + } else { + + } + { + tmp___4 = is_transmit5_triggered(); + } + if (tmp___4) { + t5_st = 0; + } else { + + } + { + tmp___5 = is_transmit6_triggered(); + } + if (tmp___5) { + t6_st = 0; + } else { + + } + { + tmp___6 = is_transmit7_triggered(); + } + if (tmp___6) { + t7_st = 0; + } else { + + } + { + tmp___7 = is_transmit8_triggered(); + } + if (tmp___7) { + t8_st = 0; + } else { + + } + { + tmp___8 = is_transmit9_triggered(); + } + if (tmp___8) { + t9_st = 0; + } else { + + } + { + tmp___9 = is_transmit10_triggered(); + } + if (tmp___9) { + t10_st = 0; + } else { + + } + + return; +} +} +void immediate_notify(void) +{ + + { + { + activate_threads(); + } + + return; +} +} +void fire_time_events(void) +{ + + { + M_E = 1; + + return; +} +} +void reset_time_events(void) +{ + + { + if (M_E == 1) { + M_E = 2; + } else { + + } + if (T1_E == 1) { + T1_E = 2; + } else { + + } + if (T2_E == 1) { + T2_E = 2; + } else { + + } + if (T3_E == 1) { + T3_E = 2; + } else { + + } + if (T4_E == 1) { + T4_E = 2; + } else { + + } + if (T5_E == 1) { + T5_E = 2; + } else { + + } + if (T6_E == 1) { + T6_E = 2; + } else { + + } + if (T7_E == 1) { + T7_E = 2; + } else { + + } + if (T8_E == 1) { + T8_E = 2; + } else { + + } + if (T9_E == 1) { + T9_E = 2; + } else { + + } + if (T10_E == 1) { + T10_E = 2; + } else { + + } + if (E_M == 1) { + E_M = 2; + } else { + + } + if (E_1 == 1) { + E_1 = 2; + } else { + + } + if (E_2 == 1) { + E_2 = 2; + } else { + + } + if (E_3 == 1) { + E_3 = 2; + } else { + + } + if (E_4 == 1) { + E_4 = 2; + } else { + + } + if (E_5 == 1) { + E_5 = 2; + } else { + + } + if (E_6 == 1) { + E_6 = 2; + } else { + + } + if (E_7 == 1) { + E_7 = 2; + } else { + + } + if (E_8 == 1) { + E_8 = 2; + } else { + + } + if (E_9 == 1) { + E_9 = 2; + } else { + + } + if (E_10 == 1) { + E_10 = 2; + } else { + + } + + return; +} +} +void init_model(void) +{ + + { + m_i = 1; + t1_i = 1; + t2_i = 1; + t3_i = 1; + t4_i = 1; + t5_i = 1; + t6_i = 1; + t7_i = 1; + t8_i = 1; + t9_i = 1; + t10_i = 1; + + return; +} +} +int stop_simulation(void) +{ int tmp ; + int __retres2 ; + + { + { + tmp = exists_runnable_thread(); + } + if (tmp) { + __retres2 = 0; + goto return_label; + } else { + + } + __retres2 = 1; + return_label: /* CIL Label */ + return (__retres2); +} +} +void start_simulation(void) +{ int kernel_st ; + int tmp ; + int tmp___0 ; + + { + { + kernel_st = 0; + update_channels(); + init_threads(); + fire_delta_events(); + activate_threads(); + reset_delta_events(); + } + { + while (1) { + while_12_continue: /* CIL Label */ ; + { + kernel_st = 1; + eval(); + } + { + kernel_st = 2; + update_channels(); + } + { + kernel_st = 3; + fire_delta_events(); + activate_threads(); + reset_delta_events(); + } + { + tmp = exists_runnable_thread(); + } + if (tmp == 0) { + { + kernel_st = 4; + fire_time_events(); + activate_threads(); + reset_time_events(); + } + } else { + + } + { + tmp___0 = stop_simulation(); + } + if (tmp___0) { + goto while_12_break; + } else { + + } + } + while_12_break: /* CIL Label */ ; + } + + return; +} +} +int main(void) +{ int __retres1 ; + + { + { + init_model(); + start_simulation(); + } + __retres1 = 0; + return (__retres1); +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/token_ring.15_false-unreach-call_false-termination.cil.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/token_ring.15_false-unreach-call_false-termination.cil.c new file mode 100644 index 000000000..df4a4badb --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/token_ring.15_false-unreach-call_false-termination.cil.c @@ -0,0 +1,1980 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +/* Generated by CIL v. 1.3.6 */ +/* print_CIL_Input is true */ + +void error(void) +{ + + { + ERROR: __VERIFIER_error(); + return; +} +} +int m_pc = 0; +int t1_pc = 0; +int t2_pc = 0; +int t3_pc = 0; +int t4_pc = 0; +int t5_pc = 0; +int t6_pc = 0; +int t7_pc = 0; +int t8_pc = 0; +int t9_pc = 0; +int t10_pc = 0; +int t11_pc = 0; +int t12_pc = 0; +int t13_pc = 0; +int m_st ; +int t1_st ; +int t2_st ; +int t3_st ; +int t4_st ; +int t5_st ; +int t6_st ; +int t7_st ; +int t8_st ; +int t9_st ; +int t10_st ; +int t11_st ; +int t12_st ; +int t13_st ; +int m_i ; +int t1_i ; +int t2_i ; +int t3_i ; +int t4_i ; +int t5_i ; +int t6_i ; +int t7_i ; +int t8_i ; +int t9_i ; +int t10_i ; +int t11_i ; +int t12_i ; +int t13_i ; +int M_E = 2; +int T1_E = 2; +int T2_E = 2; +int T3_E = 2; +int T4_E = 2; +int T5_E = 2; +int T6_E = 2; +int T7_E = 2; +int T8_E = 2; +int T9_E = 2; +int T10_E = 2; +int T11_E = 2; +int T12_E = 2; +int T13_E = 2; +int E_M = 2; +int E_1 = 2; +int E_2 = 2; +int E_3 = 2; +int E_4 = 2; +int E_5 = 2; +int E_6 = 2; +int E_7 = 2; +int E_8 = 2; +int E_9 = 2; +int E_10 = 2; +int E_11 = 2; +int E_12 = 2; +int E_13 = 2; +int is_master_triggered(void) ; +int is_transmit1_triggered(void) ; +int is_transmit2_triggered(void) ; +int is_transmit3_triggered(void) ; +int is_transmit4_triggered(void) ; +int is_transmit5_triggered(void) ; +int is_transmit6_triggered(void) ; +int is_transmit7_triggered(void) ; +int is_transmit8_triggered(void) ; +int is_transmit9_triggered(void) ; +int is_transmit10_triggered(void) ; +int is_transmit11_triggered(void) ; +int is_transmit12_triggered(void) ; +int is_transmit13_triggered(void) ; +void immediate_notify(void) ; +int token ; +int __VERIFIER_nondet_int() ; +int local ; +void master(void) +{ +int tmp_var ; + { + if (m_pc == 0) { + goto M_ENTRY; + } else { + if (m_pc == 1) { + goto M_WAIT; + } else { + + } + } + M_ENTRY: ; + { + while (1) { + while_0_continue: /* CIL Label */ ; + { + token = __VERIFIER_nondet_int(); + local = token; + E_1 = 1; + immediate_notify(); + E_1 = 2; + m_pc = 1; + m_st = 2; + } + + goto return_label; + M_WAIT: ; + if (token != local + 13) { + { + error(); + } + } else { + + if(tmp_var <= 5){ + if(tmp_var >= 5){ + if(tmp_var == 5){ + error(); + } + } + } + } + } + while_0_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit1(void) +{ + + { + if (t1_pc == 0) { + goto T1_ENTRY; + } else { + if (t1_pc == 1) { + goto T1_WAIT; + } else { + + } + } + T1_ENTRY: ; + { + while (1) { + while_1_continue: /* CIL Label */ ; + t1_pc = 1; + t1_st = 2; + + goto return_label; + T1_WAIT: + { + token += 1; + E_2 = 1; + immediate_notify(); + E_2 = 2; + } + } + while_1_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit2(void) +{ + + { + if (t2_pc == 0) { + goto T2_ENTRY; + } else { + if (t2_pc == 1) { + goto T2_WAIT; + } else { + + } + } + T2_ENTRY: ; + { + while (1) { + while_2_continue: /* CIL Label */ ; + t2_pc = 1; + t2_st = 2; + + goto return_label; + T2_WAIT: + { + token += 1; + E_3 = 1; + immediate_notify(); + E_3 = 2; + } + } + while_2_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit3(void) +{ + + { + if (t3_pc == 0) { + goto T3_ENTRY; + } else { + if (t3_pc == 1) { + goto T3_WAIT; + } else { + + } + } + T3_ENTRY: ; + { + while (1) { + while_3_continue: /* CIL Label */ ; + t3_pc = 1; + t3_st = 2; + + goto return_label; + T3_WAIT: + { + token += 1; + E_4 = 1; + immediate_notify(); + E_4 = 2; + } + } + while_3_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit4(void) +{ + + { + if (t4_pc == 0) { + goto T4_ENTRY; + } else { + if (t4_pc == 1) { + goto T4_WAIT; + } else { + + } + } + T4_ENTRY: ; + { + while (1) { + while_4_continue: /* CIL Label */ ; + t4_pc = 1; + t4_st = 2; + + goto return_label; + T4_WAIT: + { + token += 1; + E_5 = 1; + immediate_notify(); + E_5 = 2; + } + } + while_4_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit5(void) +{ + + { + if (t5_pc == 0) { + goto T5_ENTRY; + } else { + if (t5_pc == 1) { + goto T5_WAIT; + } else { + + } + } + T5_ENTRY: ; + { + while (1) { + while_5_continue: /* CIL Label */ ; + t5_pc = 1; + t5_st = 2; + + goto return_label; + T5_WAIT: + { + token += 1; + E_6 = 1; + immediate_notify(); + E_6 = 2; + } + } + while_5_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit6(void) +{ + + { + if (t6_pc == 0) { + goto T6_ENTRY; + } else { + if (t6_pc == 1) { + goto T6_WAIT; + } else { + + } + } + T6_ENTRY: ; + { + while (1) { + while_6_continue: /* CIL Label */ ; + t6_pc = 1; + t6_st = 2; + + goto return_label; + T6_WAIT: + { + token += 1; + E_7 = 1; + immediate_notify(); + E_7 = 2; + } + } + while_6_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit7(void) +{ + + { + if (t7_pc == 0) { + goto T7_ENTRY; + } else { + if (t7_pc == 1) { + goto T7_WAIT; + } else { + + } + } + T7_ENTRY: ; + { + while (1) { + while_7_continue: /* CIL Label */ ; + t7_pc = 1; + t7_st = 2; + + goto return_label; + T7_WAIT: + { + token += 1; + E_8 = 1; + immediate_notify(); + E_8 = 2; + } + } + while_7_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit8(void) +{ + + { + if (t8_pc == 0) { + goto T8_ENTRY; + } else { + if (t8_pc == 1) { + goto T8_WAIT; + } else { + + } + } + T8_ENTRY: ; + { + while (1) { + while_8_continue: /* CIL Label */ ; + t8_pc = 1; + t8_st = 2; + + goto return_label; + T8_WAIT: + { + token += 1; + E_9 = 1; + immediate_notify(); + E_9 = 2; + } + } + while_8_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit9(void) +{ + + { + if (t9_pc == 0) { + goto T9_ENTRY; + } else { + if (t9_pc == 1) { + goto T9_WAIT; + } else { + + } + } + T9_ENTRY: ; + { + while (1) { + while_9_continue: /* CIL Label */ ; + t9_pc = 1; + t9_st = 2; + + goto return_label; + T9_WAIT: + { + token += 1; + E_10 = 1; + immediate_notify(); + E_10 = 2; + } + } + while_9_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit10(void) +{ + + { + if (t10_pc == 0) { + goto T10_ENTRY; + } else { + if (t10_pc == 1) { + goto T10_WAIT; + } else { + + } + } + T10_ENTRY: ; + { + while (1) { + while_10_continue: /* CIL Label */ ; + t10_pc = 1; + t10_st = 2; + + goto return_label; + T10_WAIT: + { + token += 1; + E_11 = 1; + immediate_notify(); + E_11 = 2; + } + } + while_10_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit11(void) +{ + + { + if (t11_pc == 0) { + goto T11_ENTRY; + } else { + if (t11_pc == 1) { + goto T11_WAIT; + } else { + + } + } + T11_ENTRY: ; + { + while (1) { + while_11_continue: /* CIL Label */ ; + t11_pc = 1; + t11_st = 2; + + goto return_label; + T11_WAIT: + { + token += 1; + E_12 = 1; + immediate_notify(); + E_12 = 2; + } + } + while_11_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit12(void) +{ + + { + if (t12_pc == 0) { + goto T12_ENTRY; + } else { + if (t12_pc == 1) { + goto T12_WAIT; + } else { + + } + } + T12_ENTRY: ; + { + while (1) { + while_12_continue: /* CIL Label */ ; + t12_pc = 1; + t12_st = 2; + + goto return_label; + T12_WAIT: + { + token += 1; + E_13 = 1; + immediate_notify(); + E_13 = 2; + } + } + while_12_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit13(void) +{ + + { + if (t13_pc == 0) { + goto T13_ENTRY; + } else { + if (t13_pc == 1) { + goto T13_WAIT; + } else { + + } + } + T13_ENTRY: ; + { + while (1) { + while_13_continue: /* CIL Label */ ; + t13_pc = 1; + t13_st = 2; + + goto return_label; + T13_WAIT: + { + token += 1; + E_M = 1; + immediate_notify(); + E_M = 2; + } + } + while_13_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +int is_master_triggered(void) +{ int __retres1 ; + + { + if (m_pc == 1) { + if (E_M == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit1_triggered(void) +{ int __retres1 ; + + { + if (t1_pc == 1) { + if (E_1 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit2_triggered(void) +{ int __retres1 ; + + { + if (t2_pc == 1) { + if (E_2 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit3_triggered(void) +{ int __retres1 ; + + { + if (t3_pc == 1) { + if (E_3 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit4_triggered(void) +{ int __retres1 ; + + { + if (t4_pc == 1) { + if (E_4 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit5_triggered(void) +{ int __retres1 ; + + { + if (t5_pc == 1) { + if (E_5 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit6_triggered(void) +{ int __retres1 ; + + { + if (t6_pc == 1) { + if (E_6 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit7_triggered(void) +{ int __retres1 ; + + { + if (t7_pc == 1) { + if (E_7 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit8_triggered(void) +{ int __retres1 ; + + { + if (t8_pc == 1) { + if (E_8 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit9_triggered(void) +{ int __retres1 ; + + { + if (t9_pc == 1) { + if (E_9 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit10_triggered(void) +{ int __retres1 ; + + { + if (t10_pc == 1) { + if (E_10 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit11_triggered(void) +{ int __retres1 ; + + { + if (t11_pc == 1) { + if (E_11 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit12_triggered(void) +{ int __retres1 ; + + { + if (t12_pc == 1) { + if (E_12 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit13_triggered(void) +{ int __retres1 ; + + { + if (t13_pc == 1) { + if (E_13 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +void update_channels(void) +{ + + { + + return; +} +} +void init_threads(void) +{ + + { + if (m_i == 1) { + m_st = 0; + } else { + m_st = 2; + } + if (t1_i == 1) { + t1_st = 0; + } else { + t1_st = 2; + } + if (t2_i == 1) { + t2_st = 0; + } else { + t2_st = 2; + } + if (t3_i == 1) { + t3_st = 0; + } else { + t3_st = 2; + } + if (t4_i == 1) { + t4_st = 0; + } else { + t4_st = 2; + } + if (t5_i == 1) { + t5_st = 0; + } else { + t5_st = 2; + } + if (t6_i == 1) { + t6_st = 0; + } else { + t6_st = 2; + } + if (t7_i == 1) { + t7_st = 0; + } else { + t7_st = 2; + } + if (t8_i == 1) { + t8_st = 0; + } else { + t8_st = 2; + } + if (t9_i == 1) { + t9_st = 0; + } else { + t9_st = 2; + } + if (t10_i == 1) { + t10_st = 0; + } else { + t10_st = 2; + } + if (t11_i == 1) { + t11_st = 0; + } else { + t11_st = 2; + } + if (t12_i == 1) { + t12_st = 0; + } else { + t12_st = 2; + } + if (t13_i == 1) { + t13_st = 0; + } else { + t13_st = 2; + } + + return; +} +} +int exists_runnable_thread(void) +{ int __retres1 ; + + { + if (m_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t1_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t2_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t3_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t4_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t5_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t6_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t7_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t8_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t9_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t10_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t11_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t12_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t13_st == 0) { + __retres1 = 1; + goto return_label; + } else { + + } + } + } + } + } + } + } + } + } + } + } + } + } + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +void eval(void) +{ + int tmp ; + + { + { + while (1) { + while_14_continue: /* CIL Label */ ; + { + tmp = exists_runnable_thread(); + } + if (tmp) { + + } else { + goto while_14_break; + } + if (m_st == 0) { + int tmp_ndt_1; + tmp_ndt_1 = __VERIFIER_nondet_int(); + if (tmp_ndt_1) { + { + m_st = 1; + master(); + } + } else { + + } + } else { + + } + if (t1_st == 0) { + int tmp_ndt_2; + tmp_ndt_2 = __VERIFIER_nondet_int(); + if (tmp_ndt_2) { + { + t1_st = 1; + transmit1(); + } + } else { + + } + } else { + + } + if (t2_st == 0) { + int tmp_ndt_3; + tmp_ndt_3 = __VERIFIER_nondet_int(); + if (tmp_ndt_3) { + { + t2_st = 1; + transmit2(); + } + } else { + + } + } else { + + } + if (t3_st == 0) { + int tmp_ndt_4; + tmp_ndt_4 = __VERIFIER_nondet_int(); + if (tmp_ndt_4) { + { + t3_st = 1; + transmit3(); + } + } else { + + } + } else { + + } + if (t4_st == 0) { + int tmp_ndt_5; + tmp_ndt_5 = __VERIFIER_nondet_int(); + if (tmp_ndt_5) { + { + t4_st = 1; + transmit4(); + } + } else { + + } + } else { + + } + if (t5_st == 0) { + int tmp_ndt_6; + tmp_ndt_6 = __VERIFIER_nondet_int(); + if (tmp_ndt_6) { + { + t5_st = 1; + transmit5(); + } + } else { + + } + } else { + + } + if (t6_st == 0) { + int tmp_ndt_7; + tmp_ndt_7 = __VERIFIER_nondet_int(); + if (tmp_ndt_7) { + { + t6_st = 1; + transmit6(); + } + } else { + + } + } else { + + } + if (t7_st == 0) { + int tmp_ndt_8; + tmp_ndt_8 = __VERIFIER_nondet_int(); + if (tmp_ndt_8) { + { + t7_st = 1; + transmit7(); + } + } else { + + } + } else { + + } + if (t8_st == 0) { + int tmp_ndt_9; + tmp_ndt_9 = __VERIFIER_nondet_int(); + if (tmp_ndt_9) { + { + t8_st = 1; + transmit8(); + } + } else { + + } + } else { + + } + if (t9_st == 0) { + int tmp_ndt_10; + tmp_ndt_10 = __VERIFIER_nondet_int(); + if (tmp_ndt_10) { + { + t9_st = 1; + transmit9(); + } + } else { + + } + } else { + + } + if (t10_st == 0) { + int tmp_ndt_11; + tmp_ndt_11 = __VERIFIER_nondet_int(); + if (tmp_ndt_11) { + { + t10_st = 1; + transmit10(); + } + } else { + + } + } else { + + } + if (t11_st == 0) { + int tmp_ndt_12; + tmp_ndt_12 = __VERIFIER_nondet_int(); + if (tmp_ndt_12) { + { + t11_st = 1; + transmit11(); + } + } else { + + } + } else { + + } + if (t12_st == 0) { + int tmp_ndt_13; + tmp_ndt_13 = __VERIFIER_nondet_int(); + if (tmp_ndt_13) { + { + t12_st = 1; + transmit12(); + } + } else { + + } + } else { + + } + if (t13_st == 0) { + int tmp_ndt_14; + tmp_ndt_14 = __VERIFIER_nondet_int(); + if (tmp_ndt_14) { + { + t13_st = 1; + transmit13(); + } + } else { + + } + } else { + + } + } + while_14_break: /* CIL Label */ ; + } + + return; +} +} +void fire_delta_events(void) +{ + + { + if (M_E == 0) { + M_E = 1; + } else { + + } + if (T1_E == 0) { + T1_E = 1; + } else { + + } + if (T2_E == 0) { + T2_E = 1; + } else { + + } + if (T3_E == 0) { + T3_E = 1; + } else { + + } + if (T4_E == 0) { + T4_E = 1; + } else { + + } + if (T5_E == 0) { + T5_E = 1; + } else { + + } + if (T6_E == 0) { + T6_E = 1; + } else { + + } + if (T7_E == 0) { + T7_E = 1; + } else { + + } + if (T8_E == 0) { + T8_E = 1; + } else { + + } + if (T9_E == 0) { + T9_E = 1; + } else { + + } + if (T10_E == 0) { + T10_E = 1; + } else { + + } + if (T11_E == 0) { + T11_E = 1; + } else { + + } + if (T12_E == 0) { + T12_E = 1; + } else { + + } + if (T13_E == 0) { + T13_E = 1; + } else { + + } + if (E_M == 0) { + E_M = 1; + } else { + + } + if (E_1 == 0) { + E_1 = 1; + } else { + + } + if (E_2 == 0) { + E_2 = 1; + } else { + + } + if (E_3 == 0) { + E_3 = 1; + } else { + + } + if (E_4 == 0) { + E_4 = 1; + } else { + + } + if (E_5 == 0) { + E_5 = 1; + } else { + + } + if (E_6 == 0) { + E_6 = 1; + } else { + + } + if (E_7 == 0) { + E_7 = 1; + } else { + + } + if (E_8 == 0) { + E_8 = 1; + } else { + + } + if (E_9 == 0) { + E_9 = 1; + } else { + + } + if (E_10 == 0) { + E_10 = 1; + } else { + + } + if (E_11 == 0) { + E_11 = 1; + } else { + + } + if (E_12 == 0) { + E_12 = 1; + } else { + + } + if (E_13 == 0) { + E_13 = 1; + } else { + + } + + return; +} +} +void reset_delta_events(void) +{ + + { + if (M_E == 1) { + M_E = 2; + } else { + + } + if (T1_E == 1) { + T1_E = 2; + } else { + + } + if (T2_E == 1) { + T2_E = 2; + } else { + + } + if (T3_E == 1) { + T3_E = 2; + } else { + + } + if (T4_E == 1) { + T4_E = 2; + } else { + + } + if (T5_E == 1) { + T5_E = 2; + } else { + + } + if (T6_E == 1) { + T6_E = 2; + } else { + + } + if (T7_E == 1) { + T7_E = 2; + } else { + + } + if (T8_E == 1) { + T8_E = 2; + } else { + + } + if (T9_E == 1) { + T9_E = 2; + } else { + + } + if (T10_E == 1) { + T10_E = 2; + } else { + + } + if (T11_E == 1) { + T11_E = 2; + } else { + + } + if (T12_E == 1) { + T12_E = 2; + } else { + + } + if (T13_E == 1) { + T13_E = 2; + } else { + + } + if (E_M == 1) { + E_M = 2; + } else { + + } + if (E_1 == 1) { + E_1 = 2; + } else { + + } + if (E_2 == 1) { + E_2 = 2; + } else { + + } + if (E_3 == 1) { + E_3 = 2; + } else { + + } + if (E_4 == 1) { + E_4 = 2; + } else { + + } + if (E_5 == 1) { + E_5 = 2; + } else { + + } + if (E_6 == 1) { + E_6 = 2; + } else { + + } + if (E_7 == 1) { + E_7 = 2; + } else { + + } + if (E_8 == 1) { + E_8 = 2; + } else { + + } + if (E_9 == 1) { + E_9 = 2; + } else { + + } + if (E_10 == 1) { + E_10 = 2; + } else { + + } + if (E_11 == 1) { + E_11 = 2; + } else { + + } + if (E_12 == 1) { + E_12 = 2; + } else { + + } + if (E_13 == 1) { + E_13 = 2; + } else { + + } + + return; +} +} +void activate_threads(void) +{ int tmp ; + int tmp___0 ; + int tmp___1 ; + int tmp___2 ; + int tmp___3 ; + int tmp___4 ; + int tmp___5 ; + int tmp___6 ; + int tmp___7 ; + int tmp___8 ; + int tmp___9 ; + int tmp___10 ; + int tmp___11 ; + int tmp___12 ; + + { + { + tmp = is_master_triggered(); + } + if (tmp) { + m_st = 0; + } else { + + } + { + tmp___0 = is_transmit1_triggered(); + } + if (tmp___0) { + t1_st = 0; + } else { + + } + { + tmp___1 = is_transmit2_triggered(); + } + if (tmp___1) { + t2_st = 0; + } else { + + } + { + tmp___2 = is_transmit3_triggered(); + } + if (tmp___2) { + t3_st = 0; + } else { + + } + { + tmp___3 = is_transmit4_triggered(); + } + if (tmp___3) { + t4_st = 0; + } else { + + } + { + tmp___4 = is_transmit5_triggered(); + } + if (tmp___4) { + t5_st = 0; + } else { + + } + { + tmp___5 = is_transmit6_triggered(); + } + if (tmp___5) { + t6_st = 0; + } else { + + } + { + tmp___6 = is_transmit7_triggered(); + } + if (tmp___6) { + t7_st = 0; + } else { + + } + { + tmp___7 = is_transmit8_triggered(); + } + if (tmp___7) { + t8_st = 0; + } else { + + } + { + tmp___8 = is_transmit9_triggered(); + } + if (tmp___8) { + t9_st = 0; + } else { + + } + { + tmp___9 = is_transmit10_triggered(); + } + if (tmp___9) { + t10_st = 0; + } else { + + } + { + tmp___10 = is_transmit11_triggered(); + } + if (tmp___10) { + t11_st = 0; + } else { + + } + { + tmp___11 = is_transmit12_triggered(); + } + if (tmp___11) { + t12_st = 0; + } else { + + } + { + tmp___12 = is_transmit13_triggered(); + } + if (tmp___12) { + t13_st = 0; + } else { + + } + + return; +} +} +void immediate_notify(void) +{ + + { + { + activate_threads(); + } + + return; +} +} +void fire_time_events(void) +{ + + { + M_E = 1; + + return; +} +} +void reset_time_events(void) +{ + + { + if (M_E == 1) { + M_E = 2; + } else { + + } + if (T1_E == 1) { + T1_E = 2; + } else { + + } + if (T2_E == 1) { + T2_E = 2; + } else { + + } + if (T3_E == 1) { + T3_E = 2; + } else { + + } + if (T4_E == 1) { + T4_E = 2; + } else { + + } + if (T5_E == 1) { + T5_E = 2; + } else { + + } + if (T6_E == 1) { + T6_E = 2; + } else { + + } + if (T7_E == 1) { + T7_E = 2; + } else { + + } + if (T8_E == 1) { + T8_E = 2; + } else { + + } + if (T9_E == 1) { + T9_E = 2; + } else { + + } + if (T10_E == 1) { + T10_E = 2; + } else { + + } + if (T11_E == 1) { + T11_E = 2; + } else { + + } + if (T12_E == 1) { + T12_E = 2; + } else { + + } + if (T13_E == 1) { + T13_E = 2; + } else { + + } + if (E_M == 1) { + E_M = 2; + } else { + + } + if (E_1 == 1) { + E_1 = 2; + } else { + + } + if (E_2 == 1) { + E_2 = 2; + } else { + + } + if (E_3 == 1) { + E_3 = 2; + } else { + + } + if (E_4 == 1) { + E_4 = 2; + } else { + + } + if (E_5 == 1) { + E_5 = 2; + } else { + + } + if (E_6 == 1) { + E_6 = 2; + } else { + + } + if (E_7 == 1) { + E_7 = 2; + } else { + + } + if (E_8 == 1) { + E_8 = 2; + } else { + + } + if (E_9 == 1) { + E_9 = 2; + } else { + + } + if (E_10 == 1) { + E_10 = 2; + } else { + + } + if (E_11 == 1) { + E_11 = 2; + } else { + + } + if (E_12 == 1) { + E_12 = 2; + } else { + + } + if (E_13 == 1) { + E_13 = 2; + } else { + + } + + return; +} +} +void init_model(void) +{ + + { + m_i = 1; + t1_i = 1; + t2_i = 1; + t3_i = 1; + t4_i = 1; + t5_i = 1; + t6_i = 1; + t7_i = 1; + t8_i = 1; + t9_i = 1; + t10_i = 1; + t11_i = 1; + t12_i = 1; + t13_i = 1; + + return; +} +} +int stop_simulation(void) +{ int tmp ; + int __retres2 ; + + { + { + tmp = exists_runnable_thread(); + } + if (tmp) { + __retres2 = 0; + goto return_label; + } else { + + } + __retres2 = 1; + return_label: /* CIL Label */ + return (__retres2); +} +} +void start_simulation(void) +{ int kernel_st ; + int tmp ; + int tmp___0 ; + + { + { + kernel_st = 0; + update_channels(); + init_threads(); + fire_delta_events(); + activate_threads(); + reset_delta_events(); + } + { + while (1) { + while_15_continue: /* CIL Label */ ; + { + kernel_st = 1; + eval(); + } + { + kernel_st = 2; + update_channels(); + } + { + kernel_st = 3; + fire_delta_events(); + activate_threads(); + reset_delta_events(); + } + { + tmp = exists_runnable_thread(); + } + if (tmp == 0) { + { + kernel_st = 4; + fire_time_events(); + activate_threads(); + reset_time_events(); + } + } else { + + } + { + tmp___0 = stop_simulation(); + } + if (tmp___0) { + goto while_15_break; + } else { + + } + } + while_15_break: /* CIL Label */ ; + } + + return; +} +} +int main(void) +{ int __retres1 ; + + { + { + init_model(); + start_simulation(); + } + __retres1 = 0; + return (__retres1); +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/transmitter.01_false-unreach-call_false-termination.cil.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/transmitter.01_false-unreach-call_false-termination.cil.c new file mode 100644 index 000000000..2349851bf --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/transmitter.01_false-unreach-call_false-termination.cil.c @@ -0,0 +1,449 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +extern int __VERIFIER_nondet_int(); +/* Generated by CIL v. 1.3.6 */ +/* print_CIL_Input is true */ + +void error(void) +{ + + { + ERROR: __VERIFIER_error(); + return; +} +} +int m_pc = 0; +int t1_pc = 0; +int m_st ; +int t1_st ; +int m_i ; +int t1_i ; +int M_E = 2; +int T1_E = 2; +int E_1 = 2; +int is_master_triggered(void) ; +int is_transmit1_triggered(void) ; +void immediate_notify(void) ; +void master(void) +{ + + { + if (m_pc == 0) { + goto M_ENTRY; + } else { + if (m_pc == 1) { + goto M_WAIT; + } else { + + } + } + M_ENTRY: ; + { + while (1) { + while_0_continue: /* CIL Label */ ; + { + E_1 = 1; + immediate_notify(); + E_1 = 2; + } + { + while (1) { + while_1_continue: /* CIL Label */ ; + m_pc = 1; + m_st = 2; + + goto return_label; + M_WAIT: ; + } + while_1_break: /* CIL Label */ ; + } + } + while_0_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit1(void) +{ + + { + if (t1_pc == 0) { + goto T1_ENTRY; + } else { + if (t1_pc == 1) { + goto T1_WAIT; + } else { + + } + } + T1_ENTRY: ; + { + while (1) { + while_2_continue: /* CIL Label */ ; + t1_pc = 1; + t1_st = 2; + + goto return_label; + T1_WAIT: + { + error(); + } + } + while_2_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +int is_master_triggered(void) +{ int __retres1 ; + + { + if (m_pc == 1) { + if (M_E == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit1_triggered(void) +{ int __retres1 ; + + { + if (t1_pc == 1) { + if (E_1 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +void update_channels(void) +{ + + { + + return; +} +} +void init_threads(void) +{ + + { + if (m_i == 1) { + m_st = 0; + } else { + m_st = 2; + } + if (t1_i == 1) { + t1_st = 0; + } else { + t1_st = 2; + } + + return; +} +} +int exists_runnable_thread(void) +{ int __retres1 ; + + { + if (m_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t1_st == 0) { + __retres1 = 1; + goto return_label; + } else { + + } + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +void eval(void) +{ + int tmp ; + + { + { + while (1) { + while_3_continue: /* CIL Label */ ; + { + tmp = exists_runnable_thread(); + } + if (tmp) { + + } else { + goto while_3_break; + } + if (m_st == 0) { + int tmp_ndt_1; + tmp_ndt_1 = __VERIFIER_nondet_int(); + if (tmp_ndt_1) { + { + m_st = 1; + master(); + } + } else { + + } + } else { + + } + if (t1_st == 0) { + int tmp_ndt_2; + tmp_ndt_2 = __VERIFIER_nondet_int(); + if (tmp_ndt_2) { + { + t1_st = 1; + transmit1(); + } + } else { + + } + } else { + + } + } + while_3_break: /* CIL Label */ ; + } + + return; +} +} +void fire_delta_events(void) +{ + + { + if (M_E == 0) { + M_E = 1; + } else { + + } + if (T1_E == 0) { + T1_E = 1; + } else { + + } + if (E_1 == 0) { + E_1 = 1; + } else { + + } + + return; +} +} +void reset_delta_events(void) +{ + + { + if (M_E == 1) { + M_E = 2; + } else { + + } + if (T1_E == 1) { + T1_E = 2; + } else { + + } + if (E_1 == 1) { + E_1 = 2; + } else { + + } + + return; +} +} +void activate_threads(void) +{ int tmp ; + int tmp___0 ; + + { + { + tmp = is_master_triggered(); + } + if (tmp) { + m_st = 0; + } else { + + } + { + tmp___0 = is_transmit1_triggered(); + } + if (tmp___0) { + t1_st = 0; + } else { + + } + + return; +} +} +void immediate_notify(void) +{ + + { + { + activate_threads(); + } + + return; +} +} +void fire_time_events(void) +{ + + { + M_E = 1; + + return; +} +} +void reset_time_events(void) +{ + + { + if (M_E == 1) { + M_E = 2; + } else { + + } + if (T1_E == 1) { + T1_E = 2; + } else { + + } + if (E_1 == 1) { + E_1 = 2; + } else { + + } + + return; +} +} +void init_model(void) +{ + + { + m_i = 1; + t1_i = 1; + + return; +} +} +int stop_simulation(void) +{ int tmp ; + int __retres2 ; + + { + { + tmp = exists_runnable_thread(); + } + if (tmp) { + __retres2 = 0; + goto return_label; + } else { + + } + __retres2 = 1; + return_label: /* CIL Label */ + return (__retres2); +} +} +void start_simulation(void) +{ int kernel_st ; + int tmp ; + int tmp___0 ; + + { + { + kernel_st = 0; + update_channels(); + init_threads(); + fire_delta_events(); + activate_threads(); + reset_delta_events(); + } + { + while (1) { + while_4_continue: /* CIL Label */ ; + { + kernel_st = 1; + eval(); + } + { + kernel_st = 2; + update_channels(); + } + { + kernel_st = 3; + fire_delta_events(); + activate_threads(); + reset_delta_events(); + } + { + tmp = exists_runnable_thread(); + } + if (tmp == 0) { + { + kernel_st = 4; + fire_time_events(); + activate_threads(); + reset_time_events(); + } + } else { + + } + { + tmp___0 = stop_simulation(); + } + if (tmp___0) { + goto while_4_break; + } else { + + } + } + while_4_break: /* CIL Label */ ; + } + + return; +} +} +int main(void) +{ int __retres1 ; + + { + { + init_model(); + start_simulation(); + } + __retres1 = 0; + return (__retres1); +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/transmitter.06_false-unreach-call_false-termination.cil.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/transmitter.06_false-unreach-call_false-termination.cil.c new file mode 100644 index 000000000..d27f8f5dd --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/transmitter.06_false-unreach-call_false-termination.cil.c @@ -0,0 +1,1069 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +extern int __VERIFIER_nondet_int(); +/* Generated by CIL v. 1.3.6 */ +/* print_CIL_Input is true */ + +void error(void) +{ + + { + ERROR: __VERIFIER_error(); + return; +} +} +int m_pc = 0; +int t1_pc = 0; +int t2_pc = 0; +int t3_pc = 0; +int t4_pc = 0; +int t5_pc = 0; +int t6_pc = 0; +int m_st ; +int t1_st ; +int t2_st ; +int t3_st ; +int t4_st ; +int t5_st ; +int t6_st ; +int m_i ; +int t1_i ; +int t2_i ; +int t3_i ; +int t4_i ; +int t5_i ; +int t6_i ; +int M_E = 2; +int T1_E = 2; +int T2_E = 2; +int T3_E = 2; +int T4_E = 2; +int T5_E = 2; +int T6_E = 2; +int E_1 = 2; +int E_2 = 2; +int E_3 = 2; +int E_4 = 2; +int E_5 = 2; +int E_6 = 2; +int is_master_triggered(void) ; +int is_transmit1_triggered(void) ; +int is_transmit2_triggered(void) ; +int is_transmit3_triggered(void) ; +int is_transmit4_triggered(void) ; +int is_transmit5_triggered(void) ; +int is_transmit6_triggered(void) ; +void immediate_notify(void) ; +void master(void) +{ + + { + if (m_pc == 0) { + goto M_ENTRY; + } else { + if (m_pc == 1) { + goto M_WAIT; + } else { + + } + } + M_ENTRY: ; + { + while (1) { + while_0_continue: /* CIL Label */ ; + { + E_1 = 1; + immediate_notify(); + E_1 = 2; + } + { + while (1) { + while_1_continue: /* CIL Label */ ; + m_pc = 1; + m_st = 2; + + goto return_label; + M_WAIT: ; + } + while_1_break: /* CIL Label */ ; + } + } + while_0_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit1(void) +{ + + { + if (t1_pc == 0) { + goto T1_ENTRY; + } else { + if (t1_pc == 1) { + goto T1_WAIT; + } else { + + } + } + T1_ENTRY: ; + { + while (1) { + while_2_continue: /* CIL Label */ ; + t1_pc = 1; + t1_st = 2; + + goto return_label; + T1_WAIT: + { + E_2 = 1; + immediate_notify(); + E_2 = 2; + } + } + while_2_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit2(void) +{ + + { + if (t2_pc == 0) { + goto T2_ENTRY; + } else { + if (t2_pc == 1) { + goto T2_WAIT; + } else { + + } + } + T2_ENTRY: ; + { + while (1) { + while_3_continue: /* CIL Label */ ; + t2_pc = 1; + t2_st = 2; + + goto return_label; + T2_WAIT: + { + E_3 = 1; + immediate_notify(); + E_3 = 2; + } + } + while_3_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit3(void) +{ + + { + if (t3_pc == 0) { + goto T3_ENTRY; + } else { + if (t3_pc == 1) { + goto T3_WAIT; + } else { + + } + } + T3_ENTRY: ; + { + while (1) { + while_4_continue: /* CIL Label */ ; + t3_pc = 1; + t3_st = 2; + + goto return_label; + T3_WAIT: + { + E_4 = 1; + immediate_notify(); + E_4 = 2; + } + } + while_4_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit4(void) +{ + + { + if (t4_pc == 0) { + goto T4_ENTRY; + } else { + if (t4_pc == 1) { + goto T4_WAIT; + } else { + + } + } + T4_ENTRY: ; + { + while (1) { + while_5_continue: /* CIL Label */ ; + t4_pc = 1; + t4_st = 2; + + goto return_label; + T4_WAIT: + { + E_5 = 1; + immediate_notify(); + E_5 = 2; + } + } + while_5_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit5(void) +{ + + { + if (t5_pc == 0) { + goto T5_ENTRY; + } else { + if (t5_pc == 1) { + goto T5_WAIT; + } else { + + } + } + T5_ENTRY: ; + { + while (1) { + while_6_continue: /* CIL Label */ ; + t5_pc = 1; + t5_st = 2; + + goto return_label; + T5_WAIT: + { + E_6 = 1; + immediate_notify(); + E_6 = 2; + } + } + while_6_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit6(void) +{ + + { + if (t6_pc == 0) { + goto T6_ENTRY; + } else { + if (t6_pc == 1) { + goto T6_WAIT; + } else { + + } + } + T6_ENTRY: ; + { + while (1) { + while_7_continue: /* CIL Label */ ; + t6_pc = 1; + t6_st = 2; + + goto return_label; + T6_WAIT: + { + error(); + } + } + while_7_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +int is_master_triggered(void) +{ int __retres1 ; + + { + if (m_pc == 1) { + if (M_E == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit1_triggered(void) +{ int __retres1 ; + + { + if (t1_pc == 1) { + if (E_1 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit2_triggered(void) +{ int __retres1 ; + + { + if (t2_pc == 1) { + if (E_2 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit3_triggered(void) +{ int __retres1 ; + + { + if (t3_pc == 1) { + if (E_3 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit4_triggered(void) +{ int __retres1 ; + + { + if (t4_pc == 1) { + if (E_4 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit5_triggered(void) +{ int __retres1 ; + + { + if (t5_pc == 1) { + if (E_5 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit6_triggered(void) +{ int __retres1 ; + + { + if (t6_pc == 1) { + if (E_6 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +void update_channels(void) +{ + + { + + return; +} +} +void init_threads(void) +{ + + { + if (m_i == 1) { + m_st = 0; + } else { + m_st = 2; + } + if (t1_i == 1) { + t1_st = 0; + } else { + t1_st = 2; + } + if (t2_i == 1) { + t2_st = 0; + } else { + t2_st = 2; + } + if (t3_i == 1) { + t3_st = 0; + } else { + t3_st = 2; + } + if (t4_i == 1) { + t4_st = 0; + } else { + t4_st = 2; + } + if (t5_i == 1) { + t5_st = 0; + } else { + t5_st = 2; + } + if (t6_i == 1) { + t6_st = 0; + } else { + t6_st = 2; + } + + return; +} +} +int exists_runnable_thread(void) +{ int __retres1 ; + + { + if (m_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t1_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t2_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t3_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t4_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t5_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t6_st == 0) { + __retres1 = 1; + goto return_label; + } else { + + } + } + } + } + } + } + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +void eval(void) +{ + int tmp ; + + { + { + while (1) { + while_8_continue: /* CIL Label */ ; + { + tmp = exists_runnable_thread(); + } + if (tmp) { + + } else { + goto while_8_break; + } + if (m_st == 0) { + int tmp_ndt_1; + tmp_ndt_1 = __VERIFIER_nondet_int(); + if (tmp_ndt_1) { + { + m_st = 1; + master(); + } + } else { + + } + } else { + + } + if (t1_st == 0) { + int tmp_ndt_2; + tmp_ndt_2 = __VERIFIER_nondet_int(); + if (tmp_ndt_2) { + { + t1_st = 1; + transmit1(); + } + } else { + + } + } else { + + } + if (t2_st == 0) { + int tmp_ndt_3; + tmp_ndt_3 = __VERIFIER_nondet_int(); + if (tmp_ndt_3) { + { + t2_st = 1; + transmit2(); + } + } else { + + } + } else { + + } + if (t3_st == 0) { + int tmp_ndt_4; + tmp_ndt_4 = __VERIFIER_nondet_int(); + if (tmp_ndt_4) { + { + t3_st = 1; + transmit3(); + } + } else { + + } + } else { + + } + if (t4_st == 0) { + int tmp_ndt_5; + tmp_ndt_5 = __VERIFIER_nondet_int(); + if (tmp_ndt_5) { + { + t4_st = 1; + transmit4(); + } + } else { + + } + } else { + + } + if (t5_st == 0) { + int tmp_ndt_6; + tmp_ndt_6 = __VERIFIER_nondet_int(); + if (tmp_ndt_6) { + { + t5_st = 1; + transmit5(); + } + } else { + + } + } else { + + } + if (t6_st == 0) { + int tmp_ndt_7; + tmp_ndt_7 = __VERIFIER_nondet_int(); + if (tmp_ndt_7) { + { + t6_st = 1; + transmit6(); + } + } else { + + } + } else { + + } + } + while_8_break: /* CIL Label */ ; + } + + return; +} +} +void fire_delta_events(void) +{ + + { + if (M_E == 0) { + M_E = 1; + } else { + + } + if (T1_E == 0) { + T1_E = 1; + } else { + + } + if (T2_E == 0) { + T2_E = 1; + } else { + + } + if (T3_E == 0) { + T3_E = 1; + } else { + + } + if (T4_E == 0) { + T4_E = 1; + } else { + + } + if (T5_E == 0) { + T5_E = 1; + } else { + + } + if (T6_E == 0) { + T6_E = 1; + } else { + + } + if (E_1 == 0) { + E_1 = 1; + } else { + + } + if (E_2 == 0) { + E_2 = 1; + } else { + + } + if (E_3 == 0) { + E_3 = 1; + } else { + + } + if (E_4 == 0) { + E_4 = 1; + } else { + + } + if (E_5 == 0) { + E_5 = 1; + } else { + + } + if (E_6 == 0) { + E_6 = 1; + } else { + + } + + return; +} +} +void reset_delta_events(void) +{ + + { + if (M_E == 1) { + M_E = 2; + } else { + + } + if (T1_E == 1) { + T1_E = 2; + } else { + + } + if (T2_E == 1) { + T2_E = 2; + } else { + + } + if (T3_E == 1) { + T3_E = 2; + } else { + + } + if (T4_E == 1) { + T4_E = 2; + } else { + + } + if (T5_E == 1) { + T5_E = 2; + } else { + + } + if (T6_E == 1) { + T6_E = 2; + } else { + + } + if (E_1 == 1) { + E_1 = 2; + } else { + + } + if (E_2 == 1) { + E_2 = 2; + } else { + + } + if (E_3 == 1) { + E_3 = 2; + } else { + + } + if (E_4 == 1) { + E_4 = 2; + } else { + + } + if (E_5 == 1) { + E_5 = 2; + } else { + + } + if (E_6 == 1) { + E_6 = 2; + } else { + + } + + return; +} +} +void activate_threads(void) +{ int tmp ; + int tmp___0 ; + int tmp___1 ; + int tmp___2 ; + int tmp___3 ; + int tmp___4 ; + int tmp___5 ; + + { + { + tmp = is_master_triggered(); + } + if (tmp) { + m_st = 0; + } else { + + } + { + tmp___0 = is_transmit1_triggered(); + } + if (tmp___0) { + t1_st = 0; + } else { + + } + { + tmp___1 = is_transmit2_triggered(); + } + if (tmp___1) { + t2_st = 0; + } else { + + } + { + tmp___2 = is_transmit3_triggered(); + } + if (tmp___2) { + t3_st = 0; + } else { + + } + { + tmp___3 = is_transmit4_triggered(); + } + if (tmp___3) { + t4_st = 0; + } else { + + } + { + tmp___4 = is_transmit5_triggered(); + } + if (tmp___4) { + t5_st = 0; + } else { + + } + { + tmp___5 = is_transmit6_triggered(); + } + if (tmp___5) { + t6_st = 0; + } else { + + } + + return; +} +} +void immediate_notify(void) +{ + + { + { + activate_threads(); + } + + return; +} +} +void fire_time_events(void) +{ + + { + M_E = 1; + + return; +} +} +void reset_time_events(void) +{ + + { + if (M_E == 1) { + M_E = 2; + } else { + + } + if (T1_E == 1) { + T1_E = 2; + } else { + + } + if (T2_E == 1) { + T2_E = 2; + } else { + + } + if (T3_E == 1) { + T3_E = 2; + } else { + + } + if (T4_E == 1) { + T4_E = 2; + } else { + + } + if (T5_E == 1) { + T5_E = 2; + } else { + + } + if (T6_E == 1) { + T6_E = 2; + } else { + + } + if (E_1 == 1) { + E_1 = 2; + } else { + + } + if (E_2 == 1) { + E_2 = 2; + } else { + + } + if (E_3 == 1) { + E_3 = 2; + } else { + + } + if (E_4 == 1) { + E_4 = 2; + } else { + + } + if (E_5 == 1) { + E_5 = 2; + } else { + + } + if (E_6 == 1) { + E_6 = 2; + } else { + + } + + return; +} +} +void init_model(void) +{ + + { + m_i = 1; + t1_i = 1; + t2_i = 1; + t3_i = 1; + t4_i = 1; + t5_i = 1; + t6_i = 1; + + return; +} +} +int stop_simulation(void) +{ int tmp ; + int __retres2 ; + + { + { + tmp = exists_runnable_thread(); + } + if (tmp) { + __retres2 = 0; + goto return_label; + } else { + + } + __retres2 = 1; + return_label: /* CIL Label */ + return (__retres2); +} +} +void start_simulation(void) +{ int kernel_st ; + int tmp ; + int tmp___0 ; + + { + { + kernel_st = 0; + update_channels(); + init_threads(); + fire_delta_events(); + activate_threads(); + reset_delta_events(); + } + { + while (1) { + while_9_continue: /* CIL Label */ ; + { + kernel_st = 1; + eval(); + } + { + kernel_st = 2; + update_channels(); + } + { + kernel_st = 3; + fire_delta_events(); + activate_threads(); + reset_delta_events(); + } + { + tmp = exists_runnable_thread(); + } + if (tmp == 0) { + { + kernel_st = 4; + fire_time_events(); + activate_threads(); + reset_time_events(); + } + } else { + + } + { + tmp___0 = stop_simulation(); + } + if (tmp___0) { + goto while_9_break; + } else { + + } + } + while_9_break: /* CIL Label */ ; + } + + return; +} +} +int main(void) +{ int __retres1 ; + + { + { + init_model(); + start_simulation(); + } + __retres1 = 0; + return (__retres1); +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/transmitter.11_false-unreach-call_false-termination.cil.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/transmitter.11_false-unreach-call_false-termination.cil.c new file mode 100644 index 000000000..76315e64e --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/transmitter.11_false-unreach-call_false-termination.cil.c @@ -0,0 +1,1689 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +extern int __VERIFIER_nondet_int(); +/* Generated by CIL v. 1.3.6 */ +/* print_CIL_Input is true */ + +void error(void) +{ + + { + ERROR: __VERIFIER_error(); + return; +} +} +int m_pc = 0; +int t1_pc = 0; +int t2_pc = 0; +int t3_pc = 0; +int t4_pc = 0; +int t5_pc = 0; +int t6_pc = 0; +int t7_pc = 0; +int t8_pc = 0; +int t9_pc = 0; +int t10_pc = 0; +int t11_pc = 0; +int m_st ; +int t1_st ; +int t2_st ; +int t3_st ; +int t4_st ; +int t5_st ; +int t6_st ; +int t7_st ; +int t8_st ; +int t9_st ; +int t10_st ; +int t11_st ; +int m_i ; +int t1_i ; +int t2_i ; +int t3_i ; +int t4_i ; +int t5_i ; +int t6_i ; +int t7_i ; +int t8_i ; +int t9_i ; +int t10_i ; +int t11_i ; +int M_E = 2; +int T1_E = 2; +int T2_E = 2; +int T3_E = 2; +int T4_E = 2; +int T5_E = 2; +int T6_E = 2; +int T7_E = 2; +int T8_E = 2; +int T9_E = 2; +int T10_E = 2; +int T11_E = 2; +int E_1 = 2; +int E_2 = 2; +int E_3 = 2; +int E_4 = 2; +int E_5 = 2; +int E_6 = 2; +int E_7 = 2; +int E_8 = 2; +int E_9 = 2; +int E_10 = 2; +int E_11 = 2; +int is_master_triggered(void) ; +int is_transmit1_triggered(void) ; +int is_transmit2_triggered(void) ; +int is_transmit3_triggered(void) ; +int is_transmit4_triggered(void) ; +int is_transmit5_triggered(void) ; +int is_transmit6_triggered(void) ; +int is_transmit7_triggered(void) ; +int is_transmit8_triggered(void) ; +int is_transmit9_triggered(void) ; +int is_transmit10_triggered(void) ; +int is_transmit11_triggered(void) ; +void immediate_notify(void) ; +void master(void) +{ + + { + if (m_pc == 0) { + goto M_ENTRY; + } else { + if (m_pc == 1) { + goto M_WAIT; + } else { + + } + } + M_ENTRY: ; + { + while (1) { + while_0_continue: /* CIL Label */ ; + { + E_1 = 1; + immediate_notify(); + E_1 = 2; + } + { + while (1) { + while_1_continue: /* CIL Label */ ; + m_pc = 1; + m_st = 2; + + goto return_label; + M_WAIT: ; + } + while_1_break: /* CIL Label */ ; + } + } + while_0_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit1(void) +{ + + { + if (t1_pc == 0) { + goto T1_ENTRY; + } else { + if (t1_pc == 1) { + goto T1_WAIT; + } else { + + } + } + T1_ENTRY: ; + { + while (1) { + while_2_continue: /* CIL Label */ ; + t1_pc = 1; + t1_st = 2; + + goto return_label; + T1_WAIT: + { + E_2 = 1; + immediate_notify(); + E_2 = 2; + } + } + while_2_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit2(void) +{ + + { + if (t2_pc == 0) { + goto T2_ENTRY; + } else { + if (t2_pc == 1) { + goto T2_WAIT; + } else { + + } + } + T2_ENTRY: ; + { + while (1) { + while_3_continue: /* CIL Label */ ; + t2_pc = 1; + t2_st = 2; + + goto return_label; + T2_WAIT: + { + E_3 = 1; + immediate_notify(); + E_3 = 2; + } + } + while_3_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit3(void) +{ + + { + if (t3_pc == 0) { + goto T3_ENTRY; + } else { + if (t3_pc == 1) { + goto T3_WAIT; + } else { + + } + } + T3_ENTRY: ; + { + while (1) { + while_4_continue: /* CIL Label */ ; + t3_pc = 1; + t3_st = 2; + + goto return_label; + T3_WAIT: + { + E_4 = 1; + immediate_notify(); + E_4 = 2; + } + } + while_4_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit4(void) +{ + + { + if (t4_pc == 0) { + goto T4_ENTRY; + } else { + if (t4_pc == 1) { + goto T4_WAIT; + } else { + + } + } + T4_ENTRY: ; + { + while (1) { + while_5_continue: /* CIL Label */ ; + t4_pc = 1; + t4_st = 2; + + goto return_label; + T4_WAIT: + { + E_5 = 1; + immediate_notify(); + E_5 = 2; + } + } + while_5_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit5(void) +{ + + { + if (t5_pc == 0) { + goto T5_ENTRY; + } else { + if (t5_pc == 1) { + goto T5_WAIT; + } else { + + } + } + T5_ENTRY: ; + { + while (1) { + while_6_continue: /* CIL Label */ ; + t5_pc = 1; + t5_st = 2; + + goto return_label; + T5_WAIT: + { + E_6 = 1; + immediate_notify(); + E_6 = 2; + } + } + while_6_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit6(void) +{ + + { + if (t6_pc == 0) { + goto T6_ENTRY; + } else { + if (t6_pc == 1) { + goto T6_WAIT; + } else { + + } + } + T6_ENTRY: ; + { + while (1) { + while_7_continue: /* CIL Label */ ; + t6_pc = 1; + t6_st = 2; + + goto return_label; + T6_WAIT: + { + E_7 = 1; + immediate_notify(); + E_7 = 2; + } + } + while_7_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit7(void) +{ + + { + if (t7_pc == 0) { + goto T7_ENTRY; + } else { + if (t7_pc == 1) { + goto T7_WAIT; + } else { + + } + } + T7_ENTRY: ; + { + while (1) { + while_8_continue: /* CIL Label */ ; + t7_pc = 1; + t7_st = 2; + + goto return_label; + T7_WAIT: + { + E_8 = 1; + immediate_notify(); + E_8 = 2; + } + } + while_8_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit8(void) +{ + + { + if (t8_pc == 0) { + goto T8_ENTRY; + } else { + if (t8_pc == 1) { + goto T8_WAIT; + } else { + + } + } + T8_ENTRY: ; + { + while (1) { + while_9_continue: /* CIL Label */ ; + t8_pc = 1; + t8_st = 2; + + goto return_label; + T8_WAIT: + { + E_9 = 1; + immediate_notify(); + E_9 = 2; + } + } + while_9_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit9(void) +{ + + { + if (t9_pc == 0) { + goto T9_ENTRY; + } else { + if (t9_pc == 1) { + goto T9_WAIT; + } else { + + } + } + T9_ENTRY: ; + { + while (1) { + while_10_continue: /* CIL Label */ ; + t9_pc = 1; + t9_st = 2; + + goto return_label; + T9_WAIT: + { + E_10 = 1; + immediate_notify(); + E_10 = 2; + } + } + while_10_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit10(void) +{ + + { + if (t10_pc == 0) { + goto T10_ENTRY; + } else { + if (t10_pc == 1) { + goto T10_WAIT; + } else { + + } + } + T10_ENTRY: ; + { + while (1) { + while_11_continue: /* CIL Label */ ; + t10_pc = 1; + t10_st = 2; + + goto return_label; + T10_WAIT: + { + E_11 = 1; + immediate_notify(); + E_11 = 2; + } + } + while_11_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit11(void) +{ + + { + if (t11_pc == 0) { + goto T11_ENTRY; + } else { + if (t11_pc == 1) { + goto T11_WAIT; + } else { + + } + } + T11_ENTRY: ; + { + while (1) { + while_12_continue: /* CIL Label */ ; + t11_pc = 1; + t11_st = 2; + + goto return_label; + T11_WAIT: + { + error(); + } + } + while_12_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +int is_master_triggered(void) +{ int __retres1 ; + + { + if (m_pc == 1) { + if (M_E == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit1_triggered(void) +{ int __retres1 ; + + { + if (t1_pc == 1) { + if (E_1 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit2_triggered(void) +{ int __retres1 ; + + { + if (t2_pc == 1) { + if (E_2 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit3_triggered(void) +{ int __retres1 ; + + { + if (t3_pc == 1) { + if (E_3 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit4_triggered(void) +{ int __retres1 ; + + { + if (t4_pc == 1) { + if (E_4 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit5_triggered(void) +{ int __retres1 ; + + { + if (t5_pc == 1) { + if (E_5 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit6_triggered(void) +{ int __retres1 ; + + { + if (t6_pc == 1) { + if (E_6 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit7_triggered(void) +{ int __retres1 ; + + { + if (t7_pc == 1) { + if (E_7 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit8_triggered(void) +{ int __retres1 ; + + { + if (t8_pc == 1) { + if (E_8 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit9_triggered(void) +{ int __retres1 ; + + { + if (t9_pc == 1) { + if (E_9 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit10_triggered(void) +{ int __retres1 ; + + { + if (t10_pc == 1) { + if (E_10 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit11_triggered(void) +{ int __retres1 ; + + { + if (t11_pc == 1) { + if (E_11 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +void update_channels(void) +{ + + { + + return; +} +} +void init_threads(void) +{ + + { + if (m_i == 1) { + m_st = 0; + } else { + m_st = 2; + } + if (t1_i == 1) { + t1_st = 0; + } else { + t1_st = 2; + } + if (t2_i == 1) { + t2_st = 0; + } else { + t2_st = 2; + } + if (t3_i == 1) { + t3_st = 0; + } else { + t3_st = 2; + } + if (t4_i == 1) { + t4_st = 0; + } else { + t4_st = 2; + } + if (t5_i == 1) { + t5_st = 0; + } else { + t5_st = 2; + } + if (t6_i == 1) { + t6_st = 0; + } else { + t6_st = 2; + } + if (t7_i == 1) { + t7_st = 0; + } else { + t7_st = 2; + } + if (t8_i == 1) { + t8_st = 0; + } else { + t8_st = 2; + } + if (t9_i == 1) { + t9_st = 0; + } else { + t9_st = 2; + } + if (t10_i == 1) { + t10_st = 0; + } else { + t10_st = 2; + } + if (t11_i == 1) { + t11_st = 0; + } else { + t11_st = 2; + } + + return; +} +} +int exists_runnable_thread(void) +{ int __retres1 ; + + { + if (m_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t1_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t2_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t3_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t4_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t5_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t6_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t7_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t8_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t9_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t10_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t11_st == 0) { + __retres1 = 1; + goto return_label; + } else { + + } + } + } + } + } + } + } + } + } + } + } + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +void eval(void) +{ + int tmp ; + + { + { + while (1) { + while_13_continue: /* CIL Label */ ; + { + tmp = exists_runnable_thread(); + } + if (tmp) { + + } else { + goto while_13_break; + } + if (m_st == 0) { + int tmp_ndt_1; + tmp_ndt_1 = __VERIFIER_nondet_int(); + if (tmp_ndt_1) { + { + m_st = 1; + master(); + } + } else { + + } + } else { + + } + if (t1_st == 0) { + int tmp_ndt_2; + tmp_ndt_2 = __VERIFIER_nondet_int(); + if (tmp_ndt_2) { + { + t1_st = 1; + transmit1(); + } + } else { + + } + } else { + + } + if (t2_st == 0) { + int tmp_ndt_3; + tmp_ndt_3 = __VERIFIER_nondet_int(); + if (tmp_ndt_3) { + { + t2_st = 1; + transmit2(); + } + } else { + + } + } else { + + } + if (t3_st == 0) { + int tmp_ndt_4; + tmp_ndt_4 = __VERIFIER_nondet_int(); + if (tmp_ndt_4) { + { + t3_st = 1; + transmit3(); + } + } else { + + } + } else { + + } + if (t4_st == 0) { + int tmp_ndt_5; + tmp_ndt_5 = __VERIFIER_nondet_int(); + if (tmp_ndt_5) { + { + t4_st = 1; + transmit4(); + } + } else { + + } + } else { + + } + if (t5_st == 0) { + int tmp_ndt_6; + tmp_ndt_6 = __VERIFIER_nondet_int(); + if (tmp_ndt_6) { + { + t5_st = 1; + transmit5(); + } + } else { + + } + } else { + + } + if (t6_st == 0) { + int tmp_ndt_7; + tmp_ndt_7 = __VERIFIER_nondet_int(); + if (tmp_ndt_7) { + { + t6_st = 1; + transmit6(); + } + } else { + + } + } else { + + } + if (t7_st == 0) { + int tmp_ndt_8; + tmp_ndt_8 = __VERIFIER_nondet_int(); + if (tmp_ndt_8) { + { + t7_st = 1; + transmit7(); + } + } else { + + } + } else { + + } + if (t8_st == 0) { + int tmp_ndt_9; + tmp_ndt_9 = __VERIFIER_nondet_int(); + if (tmp_ndt_9) { + { + t8_st = 1; + transmit8(); + } + } else { + + } + } else { + + } + if (t9_st == 0) { + int tmp_ndt_10; + tmp_ndt_10 = __VERIFIER_nondet_int(); + if (tmp_ndt_10) { + { + t9_st = 1; + transmit9(); + } + } else { + + } + } else { + + } + if (t10_st == 0) { + int tmp_ndt_11; + tmp_ndt_11 = __VERIFIER_nondet_int(); + if (tmp_ndt_11) { + { + t10_st = 1; + transmit10(); + } + } else { + + } + } else { + + } + if (t11_st == 0) { + int tmp_ndt_12; + tmp_ndt_12 = __VERIFIER_nondet_int(); + if (tmp_ndt_12) { + { + t11_st = 1; + transmit11(); + } + } else { + + } + } else { + + } + } + while_13_break: /* CIL Label */ ; + } + + return; +} +} +void fire_delta_events(void) +{ + + { + if (M_E == 0) { + M_E = 1; + } else { + + } + if (T1_E == 0) { + T1_E = 1; + } else { + + } + if (T2_E == 0) { + T2_E = 1; + } else { + + } + if (T3_E == 0) { + T3_E = 1; + } else { + + } + if (T4_E == 0) { + T4_E = 1; + } else { + + } + if (T5_E == 0) { + T5_E = 1; + } else { + + } + if (T6_E == 0) { + T6_E = 1; + } else { + + } + if (T7_E == 0) { + T7_E = 1; + } else { + + } + if (T8_E == 0) { + T8_E = 1; + } else { + + } + if (T9_E == 0) { + T9_E = 1; + } else { + + } + if (T10_E == 0) { + T10_E = 1; + } else { + + } + if (T11_E == 0) { + T11_E = 1; + } else { + + } + if (E_1 == 0) { + E_1 = 1; + } else { + + } + if (E_2 == 0) { + E_2 = 1; + } else { + + } + if (E_3 == 0) { + E_3 = 1; + } else { + + } + if (E_4 == 0) { + E_4 = 1; + } else { + + } + if (E_5 == 0) { + E_5 = 1; + } else { + + } + if (E_6 == 0) { + E_6 = 1; + } else { + + } + if (E_7 == 0) { + E_7 = 1; + } else { + + } + if (E_8 == 0) { + E_8 = 1; + } else { + + } + if (E_9 == 0) { + E_9 = 1; + } else { + + } + if (E_10 == 0) { + E_10 = 1; + } else { + + } + if (E_11 == 0) { + E_11 = 1; + } else { + + } + + return; +} +} +void reset_delta_events(void) +{ + + { + if (M_E == 1) { + M_E = 2; + } else { + + } + if (T1_E == 1) { + T1_E = 2; + } else { + + } + if (T2_E == 1) { + T2_E = 2; + } else { + + } + if (T3_E == 1) { + T3_E = 2; + } else { + + } + if (T4_E == 1) { + T4_E = 2; + } else { + + } + if (T5_E == 1) { + T5_E = 2; + } else { + + } + if (T6_E == 1) { + T6_E = 2; + } else { + + } + if (T7_E == 1) { + T7_E = 2; + } else { + + } + if (T8_E == 1) { + T8_E = 2; + } else { + + } + if (T9_E == 1) { + T9_E = 2; + } else { + + } + if (T10_E == 1) { + T10_E = 2; + } else { + + } + if (T11_E == 1) { + T11_E = 2; + } else { + + } + if (E_1 == 1) { + E_1 = 2; + } else { + + } + if (E_2 == 1) { + E_2 = 2; + } else { + + } + if (E_3 == 1) { + E_3 = 2; + } else { + + } + if (E_4 == 1) { + E_4 = 2; + } else { + + } + if (E_5 == 1) { + E_5 = 2; + } else { + + } + if (E_6 == 1) { + E_6 = 2; + } else { + + } + if (E_7 == 1) { + E_7 = 2; + } else { + + } + if (E_8 == 1) { + E_8 = 2; + } else { + + } + if (E_9 == 1) { + E_9 = 2; + } else { + + } + if (E_10 == 1) { + E_10 = 2; + } else { + + } + if (E_11 == 1) { + E_11 = 2; + } else { + + } + + return; +} +} +void activate_threads(void) +{ int tmp ; + int tmp___0 ; + int tmp___1 ; + int tmp___2 ; + int tmp___3 ; + int tmp___4 ; + int tmp___5 ; + int tmp___6 ; + int tmp___7 ; + int tmp___8 ; + int tmp___9 ; + int tmp___10 ; + + { + { + tmp = is_master_triggered(); + } + if (tmp) { + m_st = 0; + } else { + + } + { + tmp___0 = is_transmit1_triggered(); + } + if (tmp___0) { + t1_st = 0; + } else { + + } + { + tmp___1 = is_transmit2_triggered(); + } + if (tmp___1) { + t2_st = 0; + } else { + + } + { + tmp___2 = is_transmit3_triggered(); + } + if (tmp___2) { + t3_st = 0; + } else { + + } + { + tmp___3 = is_transmit4_triggered(); + } + if (tmp___3) { + t4_st = 0; + } else { + + } + { + tmp___4 = is_transmit5_triggered(); + } + if (tmp___4) { + t5_st = 0; + } else { + + } + { + tmp___5 = is_transmit6_triggered(); + } + if (tmp___5) { + t6_st = 0; + } else { + + } + { + tmp___6 = is_transmit7_triggered(); + } + if (tmp___6) { + t7_st = 0; + } else { + + } + { + tmp___7 = is_transmit8_triggered(); + } + if (tmp___7) { + t8_st = 0; + } else { + + } + { + tmp___8 = is_transmit9_triggered(); + } + if (tmp___8) { + t9_st = 0; + } else { + + } + { + tmp___9 = is_transmit10_triggered(); + } + if (tmp___9) { + t10_st = 0; + } else { + + } + { + tmp___10 = is_transmit11_triggered(); + } + if (tmp___10) { + t11_st = 0; + } else { + + } + + return; +} +} +void immediate_notify(void) +{ + + { + { + activate_threads(); + } + + return; +} +} +void fire_time_events(void) +{ + + { + M_E = 1; + + return; +} +} +void reset_time_events(void) +{ + + { + if (M_E == 1) { + M_E = 2; + } else { + + } + if (T1_E == 1) { + T1_E = 2; + } else { + + } + if (T2_E == 1) { + T2_E = 2; + } else { + + } + if (T3_E == 1) { + T3_E = 2; + } else { + + } + if (T4_E == 1) { + T4_E = 2; + } else { + + } + if (T5_E == 1) { + T5_E = 2; + } else { + + } + if (T6_E == 1) { + T6_E = 2; + } else { + + } + if (T7_E == 1) { + T7_E = 2; + } else { + + } + if (T8_E == 1) { + T8_E = 2; + } else { + + } + if (T9_E == 1) { + T9_E = 2; + } else { + + } + if (T10_E == 1) { + T10_E = 2; + } else { + + } + if (T11_E == 1) { + T11_E = 2; + } else { + + } + if (E_1 == 1) { + E_1 = 2; + } else { + + } + if (E_2 == 1) { + E_2 = 2; + } else { + + } + if (E_3 == 1) { + E_3 = 2; + } else { + + } + if (E_4 == 1) { + E_4 = 2; + } else { + + } + if (E_5 == 1) { + E_5 = 2; + } else { + + } + if (E_6 == 1) { + E_6 = 2; + } else { + + } + if (E_7 == 1) { + E_7 = 2; + } else { + + } + if (E_8 == 1) { + E_8 = 2; + } else { + + } + if (E_9 == 1) { + E_9 = 2; + } else { + + } + if (E_10 == 1) { + E_10 = 2; + } else { + + } + if (E_11 == 1) { + E_11 = 2; + } else { + + } + + return; +} +} +void init_model(void) +{ + + { + m_i = 1; + t1_i = 1; + t2_i = 1; + t3_i = 1; + t4_i = 1; + t5_i = 1; + t6_i = 1; + t7_i = 1; + t8_i = 1; + t9_i = 1; + t10_i = 1; + t11_i = 1; + + return; +} +} +int stop_simulation(void) +{ int tmp ; + int __retres2 ; + + { + { + tmp = exists_runnable_thread(); + } + if (tmp) { + __retres2 = 0; + goto return_label; + } else { + + } + __retres2 = 1; + return_label: /* CIL Label */ + return (__retres2); +} +} +void start_simulation(void) +{ int kernel_st ; + int tmp ; + int tmp___0 ; + + { + { + kernel_st = 0; + update_channels(); + init_threads(); + fire_delta_events(); + activate_threads(); + reset_delta_events(); + } + { + while (1) { + while_14_continue: /* CIL Label */ ; + { + kernel_st = 1; + eval(); + } + { + kernel_st = 2; + update_channels(); + } + { + kernel_st = 3; + fire_delta_events(); + activate_threads(); + reset_delta_events(); + } + { + tmp = exists_runnable_thread(); + } + if (tmp == 0) { + { + kernel_st = 4; + fire_time_events(); + activate_threads(); + reset_time_events(); + } + } else { + + } + { + tmp___0 = stop_simulation(); + } + if (tmp___0) { + goto while_14_break; + } else { + + } + } + while_14_break: /* CIL Label */ ; + } + + return; +} +} +int main(void) +{ int __retres1 ; + + { + { + init_model(); + start_simulation(); + } + __retres1 = 0; + return (__retres1); +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/transmitter.16_false-unreach-call_false-termination.cil.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/transmitter.16_false-unreach-call_false-termination.cil.c new file mode 100644 index 000000000..2aa523e20 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/transmitter.16_false-unreach-call_false-termination.cil.c @@ -0,0 +1,2062 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +extern int __VERIFIER_nondet_int(); +/* Generated by CIL v. 1.3.6 */ +/* print_CIL_Input is true */ + +void error(void) +{ + + { + ERROR: __VERIFIER_error(); + return; +} +} +int m_pc = 0; +int t1_pc = 0; +int t2_pc = 0; +int t3_pc = 0; +int t4_pc = 0; +int t5_pc = 0; +int t6_pc = 0; +int t7_pc = 0; +int t8_pc = 0; +int t9_pc = 0; +int t10_pc = 0; +int t11_pc = 0; +int t12_pc = 0; +int t13_pc = 0; +int t14_pc = 0; +int m_st ; +int t1_st ; +int t2_st ; +int t3_st ; +int t4_st ; +int t5_st ; +int t6_st ; +int t7_st ; +int t8_st ; +int t9_st ; +int t10_st ; +int t11_st ; +int t12_st ; +int t13_st ; +int t14_st ; +int m_i ; +int t1_i ; +int t2_i ; +int t3_i ; +int t4_i ; +int t5_i ; +int t6_i ; +int t7_i ; +int t8_i ; +int t9_i ; +int t10_i ; +int t11_i ; +int t12_i ; +int t13_i ; +int t14_i ; +int M_E = 2; +int T1_E = 2; +int T2_E = 2; +int T3_E = 2; +int T4_E = 2; +int T5_E = 2; +int T6_E = 2; +int T7_E = 2; +int T8_E = 2; +int T9_E = 2; +int T10_E = 2; +int T11_E = 2; +int T12_E = 2; +int T13_E = 2; +int T14_E = 2; +int E_1 = 2; +int E_2 = 2; +int E_3 = 2; +int E_4 = 2; +int E_5 = 2; +int E_6 = 2; +int E_7 = 2; +int E_8 = 2; +int E_9 = 2; +int E_10 = 2; +int E_11 = 2; +int E_12 = 2; +int E_13 = 2; +int E_14 = 2; +int is_master_triggered(void) ; +int is_transmit1_triggered(void) ; +int is_transmit2_triggered(void) ; +int is_transmit3_triggered(void) ; +int is_transmit4_triggered(void) ; +int is_transmit5_triggered(void) ; +int is_transmit6_triggered(void) ; +int is_transmit7_triggered(void) ; +int is_transmit8_triggered(void) ; +int is_transmit9_triggered(void) ; +int is_transmit10_triggered(void) ; +int is_transmit11_triggered(void) ; +int is_transmit12_triggered(void) ; +int is_transmit13_triggered(void) ; +int is_transmit14_triggered(void) ; +void immediate_notify(void) ; +void master(void) +{ + + { + if (m_pc == 0) { + goto M_ENTRY; + } else { + if (m_pc == 1) { + goto M_WAIT; + } else { + + } + } + M_ENTRY: ; + { + while (1) { + while_0_continue: /* CIL Label */ ; + { + E_1 = 1; + immediate_notify(); + E_1 = 2; + } + { + while (1) { + while_1_continue: /* CIL Label */ ; + m_pc = 1; + m_st = 2; + + goto return_label; + M_WAIT: ; + } + while_1_break: /* CIL Label */ ; + } + } + while_0_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit1(void) +{ + + { + if (t1_pc == 0) { + goto T1_ENTRY; + } else { + if (t1_pc == 1) { + goto T1_WAIT; + } else { + + } + } + T1_ENTRY: ; + { + while (1) { + while_2_continue: /* CIL Label */ ; + t1_pc = 1; + t1_st = 2; + + goto return_label; + T1_WAIT: + { + E_2 = 1; + immediate_notify(); + E_2 = 2; + } + } + while_2_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit2(void) +{ + + { + if (t2_pc == 0) { + goto T2_ENTRY; + } else { + if (t2_pc == 1) { + goto T2_WAIT; + } else { + + } + } + T2_ENTRY: ; + { + while (1) { + while_3_continue: /* CIL Label */ ; + t2_pc = 1; + t2_st = 2; + + goto return_label; + T2_WAIT: + { + E_3 = 1; + immediate_notify(); + E_3 = 2; + } + } + while_3_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit3(void) +{ + + { + if (t3_pc == 0) { + goto T3_ENTRY; + } else { + if (t3_pc == 1) { + goto T3_WAIT; + } else { + + } + } + T3_ENTRY: ; + { + while (1) { + while_4_continue: /* CIL Label */ ; + t3_pc = 1; + t3_st = 2; + + goto return_label; + T3_WAIT: + { + E_4 = 1; + immediate_notify(); + E_4 = 2; + } + } + while_4_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit4(void) +{ + + { + if (t4_pc == 0) { + goto T4_ENTRY; + } else { + if (t4_pc == 1) { + goto T4_WAIT; + } else { + + } + } + T4_ENTRY: ; + { + while (1) { + while_5_continue: /* CIL Label */ ; + t4_pc = 1; + t4_st = 2; + + goto return_label; + T4_WAIT: + { + E_5 = 1; + immediate_notify(); + E_5 = 2; + } + } + while_5_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit5(void) +{ + + { + if (t5_pc == 0) { + goto T5_ENTRY; + } else { + if (t5_pc == 1) { + goto T5_WAIT; + } else { + + } + } + T5_ENTRY: ; + { + while (1) { + while_6_continue: /* CIL Label */ ; + t5_pc = 1; + t5_st = 2; + + goto return_label; + T5_WAIT: + { + E_6 = 1; + immediate_notify(); + E_6 = 2; + } + } + while_6_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit6(void) +{ + + { + if (t6_pc == 0) { + goto T6_ENTRY; + } else { + if (t6_pc == 1) { + goto T6_WAIT; + } else { + + } + } + T6_ENTRY: ; + { + while (1) { + while_7_continue: /* CIL Label */ ; + t6_pc = 1; + t6_st = 2; + + goto return_label; + T6_WAIT: + { + E_7 = 1; + immediate_notify(); + E_7 = 2; + } + } + while_7_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit7(void) +{ + + { + if (t7_pc == 0) { + goto T7_ENTRY; + } else { + if (t7_pc == 1) { + goto T7_WAIT; + } else { + + } + } + T7_ENTRY: ; + { + while (1) { + while_8_continue: /* CIL Label */ ; + t7_pc = 1; + t7_st = 2; + + goto return_label; + T7_WAIT: + { + E_8 = 1; + immediate_notify(); + E_8 = 2; + } + } + while_8_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit8(void) +{ + + { + if (t8_pc == 0) { + goto T8_ENTRY; + } else { + if (t8_pc == 1) { + goto T8_WAIT; + } else { + + } + } + T8_ENTRY: ; + { + while (1) { + while_9_continue: /* CIL Label */ ; + t8_pc = 1; + t8_st = 2; + + goto return_label; + T8_WAIT: + { + E_9 = 1; + immediate_notify(); + E_9 = 2; + } + } + while_9_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit9(void) +{ + + { + if (t9_pc == 0) { + goto T9_ENTRY; + } else { + if (t9_pc == 1) { + goto T9_WAIT; + } else { + + } + } + T9_ENTRY: ; + { + while (1) { + while_10_continue: /* CIL Label */ ; + t9_pc = 1; + t9_st = 2; + + goto return_label; + T9_WAIT: + { + E_10 = 1; + immediate_notify(); + E_10 = 2; + } + } + while_10_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit10(void) +{ + + { + if (t10_pc == 0) { + goto T10_ENTRY; + } else { + if (t10_pc == 1) { + goto T10_WAIT; + } else { + + } + } + T10_ENTRY: ; + { + while (1) { + while_11_continue: /* CIL Label */ ; + t10_pc = 1; + t10_st = 2; + + goto return_label; + T10_WAIT: + { + E_11 = 1; + immediate_notify(); + E_11 = 2; + } + } + while_11_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit11(void) +{ + + { + if (t11_pc == 0) { + goto T11_ENTRY; + } else { + if (t11_pc == 1) { + goto T11_WAIT; + } else { + + } + } + T11_ENTRY: ; + { + while (1) { + while_12_continue: /* CIL Label */ ; + t11_pc = 1; + t11_st = 2; + + goto return_label; + T11_WAIT: + { + E_12 = 1; + immediate_notify(); + E_12 = 2; + } + } + while_12_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit12(void) +{ + + { + if (t12_pc == 0) { + goto T12_ENTRY; + } else { + if (t12_pc == 1) { + goto T12_WAIT; + } else { + + } + } + T12_ENTRY: ; + { + while (1) { + while_13_continue: /* CIL Label */ ; + t12_pc = 1; + t12_st = 2; + + goto return_label; + T12_WAIT: + { + E_13 = 1; + immediate_notify(); + E_13 = 2; + } + } + while_13_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit13(void) +{ + + { + if (t13_pc == 0) { + goto T13_ENTRY; + } else { + if (t13_pc == 1) { + goto T13_WAIT; + } else { + + } + } + T13_ENTRY: ; + { + while (1) { + while_14_continue: /* CIL Label */ ; + t13_pc = 1; + t13_st = 2; + + goto return_label; + T13_WAIT: + { + //error(); + } + } + while_14_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +void transmit14(void) +{ + + { + if (t14_pc == 0) { + goto T14_ENTRY; + } else { + if (t14_pc == 1) { + goto T14_WAIT; + } else { + + } + } + T14_ENTRY: ; + { + while (1) { + while_45_continue: /* CIL Label */ ; + t14_pc = 1; + t14_st = 2; + + goto return_label; + T14_WAIT: + { + //error(); + } + } + while_45_break: /* CIL Label */ ; + } + + return_label: /* CIL Label */ + return; +} +} +int is_master_triggered(void) +{ int __retres1 ; + + { + if (m_pc == 1) { + if (M_E == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit1_triggered(void) +{ int __retres1 ; + + { + if (t1_pc == 1) { + if (E_1 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit2_triggered(void) +{ int __retres1 ; + + { + if (t2_pc == 1) { + if (E_2 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit3_triggered(void) +{ int __retres1 ; + + { + if (t3_pc == 1) { + if (E_3 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit4_triggered(void) +{ int __retres1 ; + + { + if (t4_pc == 1) { + if (E_4 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit5_triggered(void) +{ int __retres1 ; + + { + if (t5_pc == 1) { + if (E_5 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit6_triggered(void) +{ int __retres1 ; + + { + if (t6_pc == 1) { + if (E_6 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit7_triggered(void) +{ int __retres1 ; + + { + if (t7_pc == 1) { + if (E_7 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit8_triggered(void) +{ int __retres1 ; + + { + if (t8_pc == 1) { + if (E_8 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit9_triggered(void) +{ int __retres1 ; + + { + if (t9_pc == 1) { + if (E_9 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit10_triggered(void) +{ int __retres1 ; + + { + if (t10_pc == 1) { + if (E_10 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit11_triggered(void) +{ int __retres1 ; + + { + if (t11_pc == 1) { + if (E_11 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit12_triggered(void) +{ int __retres1 ; + + { + if (t12_pc == 1) { + if (E_12 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit13_triggered(void) +{ int __retres1 ; + + { + if (t13_pc == 1) { + if (E_13 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +int is_transmit14_triggered(void) +{ int __retres1 ; + + { + if (t14_pc == 1) { + if (E_14 == 1) { + __retres1 = 1; + goto return_label; + } else { + + } + } else { + + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +void update_channels(void) +{ + + { + + return; +} +} +void init_threads(void) +{ + + { + if (m_i == 1) { + m_st = 0; + } else { + m_st = 2; + } + if (t1_i == 1) { + t1_st = 0; + } else { + t1_st = 2; + } + if (t2_i == 1) { + t2_st = 0; + } else { + t2_st = 2; + } + if (t3_i == 1) { + t3_st = 0; + } else { + t3_st = 2; + } + if (t4_i == 1) { + t4_st = 0; + } else { + t4_st = 2; + } + if (t5_i == 1) { + t5_st = 0; + } else { + t5_st = 2; + } + if (t6_i == 1) { + t6_st = 0; + } else { + t6_st = 2; + } + if (t7_i == 1) { + t7_st = 0; + } else { + t7_st = 2; + } + if (t8_i == 1) { + t8_st = 0; + } else { + t8_st = 2; + } + if (t9_i == 1) { + t9_st = 0; + } else { + t9_st = 2; + } + if (t10_i == 1) { + t10_st = 0; + } else { + t10_st = 2; + } + if (t11_i == 1) { + t11_st = 0; + } else { + t11_st = 2; + } + if (t12_i == 1) { + t12_st = 0; + } else { + t12_st = 2; + } + if (t13_i == 1) { + t13_st = 0; + } else { + t13_st = 2; + } + if (t14_i == 1) { + t14_st = 0; + } else { + t14_st = 2; + } + + return; +} +} +int exists_runnable_thread(void) +{ int __retres1 ; + + { + if (m_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t1_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t2_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t3_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t4_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t5_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t6_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t7_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t8_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t9_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t10_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t11_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t12_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if (t13_st == 0) { + __retres1 = 1; + goto return_label; + } else { + if(t14_st == 0) { + __retres1 = 1; + goto return_label; + } + else { + + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + __retres1 = 0; + return_label: /* CIL Label */ + return (__retres1); +} +} +void eval(void) +{ + int tmp ; + + { + { + while (1) { + while_15_continue: /* CIL Label */ ; + { + tmp = exists_runnable_thread(); + } + if (tmp) { + + } else { + goto while_15_break; + } + if (m_st == 0) { + int tmp_ndt_1; + tmp_ndt_1 = __VERIFIER_nondet_int(); + if (tmp_ndt_1) { + { + m_st = 1; + master(); + } + } else { + + } + } else { + + } + if (t1_st == 0) { + int tmp_ndt_2; + tmp_ndt_2 = __VERIFIER_nondet_int(); + if (tmp_ndt_2) { + { + t1_st = 1; + transmit1(); + } + } else { + error(); + } + } else { + + } + if (t2_st == 0) { + int tmp_ndt_3; + tmp_ndt_3 = __VERIFIER_nondet_int(); + if (tmp_ndt_3) { + { + t2_st = 1; + transmit2(); + } + } else { + + } + } else { + + } + if (t3_st == 0) { + int tmp_ndt_4; + tmp_ndt_4 = __VERIFIER_nondet_int(); + if (tmp_ndt_4) { + { + t3_st = 1; + transmit3(); + } + } else { + + } + } else { + + } + if (t4_st == 0) { + int tmp_ndt_5; + tmp_ndt_5 = __VERIFIER_nondet_int(); + if (tmp_ndt_5) { + { + t4_st = 1; + transmit4(); + } + } else { + + } + } else { + + } + if (t5_st == 0) { + int tmp_ndt_6; + tmp_ndt_6 = __VERIFIER_nondet_int(); + if (tmp_ndt_6) { + { + t5_st = 1; + transmit5(); + } + } else { + + } + } else { + + } + if (t6_st == 0) { + int tmp_ndt_7; + tmp_ndt_7 = __VERIFIER_nondet_int(); + if (tmp_ndt_7) { + { + t6_st = 1; + transmit6(); + } + } else { + + } + } else { + + } + if (t7_st == 0) { + int tmp_ndt_8; + tmp_ndt_8 = __VERIFIER_nondet_int(); + if (tmp_ndt_8) { + { + t7_st = 1; + transmit7(); + } + } else { + + } + } else { + + } + if (t8_st == 0) { + int tmp_ndt_9; + tmp_ndt_9 = __VERIFIER_nondet_int(); + if (tmp_ndt_9) { + { + t8_st = 1; + transmit8(); + } + } else { + + } + } else { + + } + if (t9_st == 0) { + int tmp_ndt_10; + tmp_ndt_10 = __VERIFIER_nondet_int(); + if (tmp_ndt_10) { + { + t9_st = 1; + transmit9(); + } + } else { + + } + } else { + + } + if (t10_st == 0) { + int tmp_ndt_11; + tmp_ndt_11 = __VERIFIER_nondet_int(); + if (tmp_ndt_11) { + { + t10_st = 1; + transmit10(); + } + } else { + + } + } else { + + } + if (t11_st == 0) { + int tmp_ndt_12; + tmp_ndt_12 = __VERIFIER_nondet_int(); + if (tmp_ndt_12) { + { + t11_st = 1; + transmit11(); + } + } else { + + } + } else { + + } + if (t12_st == 0) { + int tmp_ndt_13; + tmp_ndt_13 = __VERIFIER_nondet_int(); + if (tmp_ndt_13) { + { + t12_st = 1; + transmit12(); + } + } else { + + } + } else { + + } + if (t13_st == 0) { + int tmp_ndt_14; + tmp_ndt_14 = __VERIFIER_nondet_int(); + if (tmp_ndt_14) { + { + t13_st = 1; + transmit13(); + } + } else { + + } + } else { + + } + if (t14_st == 0) { + int tmp_ndt_15; + tmp_ndt_15 = __VERIFIER_nondet_int(); + if (tmp_ndt_15) { + { + t14_st = 1; + transmit14(); + } + } else { + + } + } + else { + + } + } + while_15_break: /* CIL Label */ ; + } + + return; +} +} +void fire_delta_events(void) +{ + + { + if (M_E == 0) { + M_E = 1; + } else { + + } + if (T1_E == 0) { + T1_E = 1; + } else { + + } + if (T2_E == 0) { + T2_E = 1; + } else { + + } + if (T3_E == 0) { + T3_E = 1; + } else { + + } + if (T4_E == 0) { + T4_E = 1; + } else { + + } + if (T5_E == 0) { + T5_E = 1; + } else { + + } + if (T6_E == 0) { + T6_E = 1; + } else { + + } + if (T7_E == 0) { + T7_E = 1; + } else { + + } + if (T8_E == 0) { + T8_E = 1; + } else { + + } + if (T9_E == 0) { + T9_E = 1; + } else { + + } + if (T10_E == 0) { + T10_E = 1; + } else { + + } + if (T11_E == 0) { + T11_E = 1; + } else { + + } + if (T12_E == 0) { + T12_E = 1; + } else { + + } + if (T13_E == 0) { + T13_E = 1; + } else { + + } + if (T14_E == 0) { + T14_E = 1; + } else { + + } + if (E_1 == 0) { + E_1 = 1; + } else { + + } + if (E_2 == 0) { + E_2 = 1; + } else { + + } + if (E_3 == 0) { + E_3 = 1; + } else { + + } + if (E_4 == 0) { + E_4 = 1; + } else { + + } + if (E_5 == 0) { + E_5 = 1; + } else { + + } + if (E_6 == 0) { + E_6 = 1; + } else { + + } + if (E_7 == 0) { + E_7 = 1; + } else { + + } + if (E_8 == 0) { + E_8 = 1; + } else { + + } + if (E_9 == 0) { + E_9 = 1; + } else { + + } + if (E_10 == 0) { + E_10 = 1; + } else { + + } + if (E_11 == 0) { + E_11 = 1; + } else { + + } + if (E_12 == 0) { + E_12 = 1; + } else { + + } + if (E_13 == 0) { + E_13 = 1; + } else { + + } + if (E_14 == 0) { + E_14 = 1; + } else { + + } + + return; +} +} +void reset_delta_events(void) +{ + + { + if (M_E == 1) { + M_E = 2; + } else { + + } + if (T1_E == 1) { + T1_E = 2; + } else { + + } + if (T2_E == 1) { + T2_E = 2; + } else { + + } + if (T3_E == 1) { + T3_E = 2; + } else { + + } + if (T4_E == 1) { + T4_E = 2; + } else { + + } + if (T5_E == 1) { + T5_E = 2; + } else { + + } + if (T6_E == 1) { + T6_E = 2; + } else { + + } + if (T7_E == 1) { + T7_E = 2; + } else { + + } + if (T8_E == 1) { + T8_E = 2; + } else { + + } + if (T9_E == 1) { + T9_E = 2; + } else { + + } + if (T10_E == 1) { + T10_E = 2; + } else { + + } + if (T11_E == 1) { + T11_E = 2; + } else { + + } + if (T12_E == 1) { + T12_E = 2; + } else { + + } + if (T13_E == 1) { + T13_E = 2; + } else { + + } + if (T14_E == 1) { + T14_E = 2; + } else { + + } + if (E_1 == 1) { + E_1 = 2; + } else { + + } + if (E_2 == 1) { + E_2 = 2; + } else { + + } + if (E_3 == 1) { + E_3 = 2; + } else { + + } + if (E_4 == 1) { + E_4 = 2; + } else { + + } + if (E_5 == 1) { + E_5 = 2; + } else { + + } + if (E_6 == 1) { + E_6 = 2; + } else { + + } + if (E_7 == 1) { + E_7 = 2; + } else { + + } + if (E_8 == 1) { + E_8 = 2; + } else { + + } + if (E_9 == 1) { + E_9 = 2; + } else { + + } + if (E_10 == 1) { + E_10 = 2; + } else { + + } + if (E_11 == 1) { + E_11 = 2; + } else { + + } + if (E_12 == 1) { + E_12 = 2; + } else { + + } + if (E_13 == 1) { + E_13 = 2; + } else { + + } + if (E_14 == 1) { + E_14 = 2; + } else { + + } + + return; +} +} +void activate_threads(void) +{ int tmp ; + int tmp___0 ; + int tmp___1 ; + int tmp___2 ; + int tmp___3 ; + int tmp___4 ; + int tmp___5 ; + int tmp___6 ; + int tmp___7 ; + int tmp___8 ; + int tmp___9 ; + int tmp___10 ; + int tmp___11 ; + int tmp___12 ; + int tmp___13 ; + + + { + { + tmp = is_master_triggered(); + } + if (tmp) { + m_st = 0; + } else { + + } + { + tmp___0 = is_transmit1_triggered(); + } + if (tmp___0) { + t1_st = 0; + } else { + + } + { + tmp___1 = is_transmit2_triggered(); + } + if (tmp___1) { + t2_st = 0; + } else { + + } + { + tmp___2 = is_transmit3_triggered(); + } + if (tmp___2) { + t3_st = 0; + } else { + + } + { + tmp___3 = is_transmit4_triggered(); + } + if (tmp___3) { + t4_st = 0; + } else { + + } + { + tmp___4 = is_transmit5_triggered(); + } + if (tmp___4) { + t5_st = 0; + } else { + + } + { + tmp___5 = is_transmit6_triggered(); + } + if (tmp___5) { + t6_st = 0; + } else { + + } + { + tmp___6 = is_transmit7_triggered(); + } + if (tmp___6) { + t7_st = 0; + } else { + + } + { + tmp___7 = is_transmit8_triggered(); + } + if (tmp___7) { + t8_st = 0; + } else { + + } + { + tmp___8 = is_transmit9_triggered(); + } + if (tmp___8) { + t9_st = 0; + } else { + + } + { + tmp___9 = is_transmit10_triggered(); + } + if (tmp___9) { + t10_st = 0; + } else { + + } + { + tmp___10 = is_transmit11_triggered(); + } + if (tmp___10) { + t11_st = 0; + } else { + + } + { + tmp___11 = is_transmit12_triggered(); + } + if (tmp___11) { + t12_st = 0; + } else { + + } + { + tmp___12 = is_transmit13_triggered(); + } + if (tmp___12) { + t13_st = 0; + } else { + + } + { + tmp___13 = is_transmit14_triggered(); + } + if (tmp___13) { + t14_st = 0; + } else { + + } + + return; +} +} +void immediate_notify(void) +{ + + { + { + activate_threads(); + } + + return; +} +} +void fire_time_events(void) +{ + + { + M_E = 1; + + return; +} +} +void reset_time_events(void) +{ + + { + if (M_E == 1) { + M_E = 2; + } else { + + } + if (T1_E == 1) { + T1_E = 2; + } else { + + } + if (T2_E == 1) { + T2_E = 2; + } else { + + } + if (T3_E == 1) { + T3_E = 2; + } else { + + } + if (T4_E == 1) { + T4_E = 2; + } else { + + } + if (T5_E == 1) { + T5_E = 2; + } else { + + } + if (T6_E == 1) { + T6_E = 2; + } else { + + } + if (T7_E == 1) { + T7_E = 2; + } else { + + } + if (T8_E == 1) { + T8_E = 2; + } else { + + } + if (T9_E == 1) { + T9_E = 2; + } else { + + } + if (T10_E == 1) { + T10_E = 2; + } else { + + } + if (T11_E == 1) { + T11_E = 2; + } else { + + } + if (T12_E == 1) { + T12_E = 2; + } else { + + } + if (T13_E == 1) { + T13_E = 2; + } else { + + } + if (T14_E == 1) { + T14_E = 2; + } else { + + } + if (E_1 == 1) { + E_1 = 2; + } else { + + } + if (E_2 == 1) { + E_2 = 2; + } else { + + } + if (E_3 == 1) { + E_3 = 2; + } else { + + } + if (E_4 == 1) { + E_4 = 2; + } else { + + } + if (E_5 == 1) { + E_5 = 2; + } else { + + } + if (E_6 == 1) { + E_6 = 2; + } else { + + } + if (E_7 == 1) { + E_7 = 2; + } else { + + } + if (E_8 == 1) { + E_8 = 2; + } else { + + } + if (E_9 == 1) { + E_9 = 2; + } else { + + } + if (E_10 == 1) { + E_10 = 2; + } else { + + } + if (E_11 == 1) { + E_11 = 2; + } else { + + } + if (E_12 == 1) { + E_12 = 2; + } else { + + } + if (E_13 == 1) { + E_13 = 2; + } else { + + } + if (E_14 == 1) { + E_14 = 2; + } else { + + } + + return; +} +} +void init_model(void) +{ + + { + m_i = 1; + t1_i = 1; + t2_i = 1; + t3_i = 1; + t4_i = 1; + t5_i = 1; + t6_i = 1; + t7_i = 1; + t8_i = 1; + t9_i = 1; + t10_i = 1; + t11_i = 1; + t12_i = 1; + t13_i = 1; + t14_i = 1; + + return; +} +} +int stop_simulation(void) +{ int tmp ; + int __retres2 ; + + { + { + tmp = exists_runnable_thread(); + } + if (tmp) { + __retres2 = 0; + goto return_label; + } else { + + } + __retres2 = 1; + return_label: /* CIL Label */ + return (__retres2); +} +} +void start_simulation(void) +{ int kernel_st ; + int tmp ; + int tmp___0 ; + + { + { + kernel_st = 0; + update_channels(); + init_threads(); + fire_delta_events(); + activate_threads(); + reset_delta_events(); + } + { + while (1) { + while_16_continue: /* CIL Label */ ; + { + kernel_st = 1; + eval(); + } + { + kernel_st = 2; + update_channels(); + } + { + kernel_st = 3; + fire_delta_events(); + activate_threads(); + reset_delta_events(); + } + { + tmp = exists_runnable_thread(); + } + if (tmp == 0) { + { + kernel_st = 4; + fire_time_events(); + activate_threads(); + reset_time_events(); + } + } else { + + } + { + tmp___0 = stop_simulation(); + } + if (tmp___0) { + goto while_16_break; + } else { + + } + } + while_16_break: /* CIL Label */ ; + } + + return; +} +} +int main(void) +{ int __retres1 ; + + { + { + init_model(); + start_simulation(); + } + __retres1 = 0; + return (__retres1); +} +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/tree_stack_true-valid-memsafety.c b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/tree_stack_true-valid-memsafety.c new file mode 100644 index 000000000..8dd2bcf0b --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Mixed_Categories/tree_stack_true-valid-memsafety.c @@ -0,0 +1,674 @@ +extern void __VERIFIER_error() __attribute__ ((__noreturn__)); + +typedef long unsigned int size_t; +typedef int wchar_t; + +union wait + { + int w_status; + struct + { + unsigned int __w_termsig:7; + unsigned int __w_coredump:1; + unsigned int __w_retcode:8; + unsigned int:16; + } __wait_terminated; + struct + { + unsigned int __w_stopval:8; + unsigned int __w_stopsig:8; + unsigned int:16; + } __wait_stopped; + }; +typedef union + { + union wait *__uptr; + int *__iptr; + } __WAIT_STATUS __attribute__ ((__transparent_union__)); + +typedef struct + { + int quot; + int rem; + } div_t; +typedef struct + { + long int quot; + long int rem; + } ldiv_t; + + +__extension__ typedef struct + { + long long int quot; + long long int rem; + } lldiv_t; + +extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__ , __leaf__)) ; + +extern double atof (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern int atoi (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; +extern long int atol (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +__extension__ extern long long int atoll (__const char *__nptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + + +extern double strtod (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern float strtof (__const char *__restrict __nptr, + char **__restrict __endptr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern long double strtold (__const char *__restrict __nptr, + char **__restrict __endptr) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + +extern long int strtol (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern unsigned long int strtoul (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtouq (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +__extension__ +extern long long int strtoll (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +__extension__ +extern unsigned long long int strtoull (__const char *__restrict __nptr, + char **__restrict __endptr, int __base) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *l64a (long int __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern long int a64l (__const char *__s) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; + +typedef unsigned char __u_char; +typedef unsigned short int __u_short; +typedef unsigned int __u_int; +typedef unsigned long int __u_long; +typedef signed char __int8_t; +typedef unsigned char __uint8_t; +typedef signed short int __int16_t; +typedef unsigned short int __uint16_t; +typedef signed int __int32_t; +typedef unsigned int __uint32_t; +typedef signed long int __int64_t; +typedef unsigned long int __uint64_t; +typedef long int __quad_t; +typedef unsigned long int __u_quad_t; +typedef unsigned long int __dev_t; +typedef unsigned int __uid_t; +typedef unsigned int __gid_t; +typedef unsigned long int __ino_t; +typedef unsigned long int __ino64_t; +typedef unsigned int __mode_t; +typedef unsigned long int __nlink_t; +typedef long int __off_t; +typedef long int __off64_t; +typedef int __pid_t; +typedef struct { int __val[2]; } __fsid_t; +typedef long int __clock_t; +typedef unsigned long int __rlim_t; +typedef unsigned long int __rlim64_t; +typedef unsigned int __id_t; +typedef long int __time_t; +typedef unsigned int __useconds_t; +typedef long int __suseconds_t; +typedef int __daddr_t; +typedef long int __swblk_t; +typedef int __key_t; +typedef int __clockid_t; +typedef void * __timer_t; +typedef long int __blksize_t; +typedef long int __blkcnt_t; +typedef long int __blkcnt64_t; +typedef unsigned long int __fsblkcnt_t; +typedef unsigned long int __fsblkcnt64_t; +typedef unsigned long int __fsfilcnt_t; +typedef unsigned long int __fsfilcnt64_t; +typedef long int __ssize_t; +typedef __off64_t __loff_t; +typedef __quad_t *__qaddr_t; +typedef char *__caddr_t; +typedef long int __intptr_t; +typedef unsigned int __socklen_t; +typedef __u_char u_char; +typedef __u_short u_short; +typedef __u_int u_int; +typedef __u_long u_long; +typedef __quad_t quad_t; +typedef __u_quad_t u_quad_t; +typedef __fsid_t fsid_t; +typedef __loff_t loff_t; +typedef __ino_t ino_t; +typedef __dev_t dev_t; +typedef __gid_t gid_t; +typedef __mode_t mode_t; +typedef __nlink_t nlink_t; +typedef __uid_t uid_t; +typedef __off_t off_t; +typedef __pid_t pid_t; +typedef __id_t id_t; +typedef __ssize_t ssize_t; +typedef __daddr_t daddr_t; +typedef __caddr_t caddr_t; +typedef __key_t key_t; + +typedef __clock_t clock_t; + + + +typedef __time_t time_t; + + +typedef __clockid_t clockid_t; +typedef __timer_t timer_t; +typedef unsigned long int ulong; +typedef unsigned short int ushort; +typedef unsigned int uint; +typedef int int8_t __attribute__ ((__mode__ (__QI__))); +typedef int int16_t __attribute__ ((__mode__ (__HI__))); +typedef int int32_t __attribute__ ((__mode__ (__SI__))); +typedef int int64_t __attribute__ ((__mode__ (__DI__))); +typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); +typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); +typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); +typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); +typedef int register_t __attribute__ ((__mode__ (__word__))); +typedef int __sig_atomic_t; +typedef struct + { + unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; + } __sigset_t; +typedef __sigset_t sigset_t; +struct timespec + { + __time_t tv_sec; + long int tv_nsec; + }; +struct timeval + { + __time_t tv_sec; + __suseconds_t tv_usec; + }; +typedef __suseconds_t suseconds_t; +typedef long int __fd_mask; +typedef struct + { + __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; + } fd_set; +typedef __fd_mask fd_mask; + +extern int select (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + struct timeval *__restrict __timeout); +extern int pselect (int __nfds, fd_set *__restrict __readfds, + fd_set *__restrict __writefds, + fd_set *__restrict __exceptfds, + const struct timespec *__restrict __timeout, + const __sigset_t *__restrict __sigmask); + + +__extension__ +extern unsigned int gnu_dev_major (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned int gnu_dev_minor (unsigned long long int __dev) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); +__extension__ +extern unsigned long long int gnu_dev_makedev (unsigned int __major, + unsigned int __minor) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); + +typedef __blksize_t blksize_t; +typedef __blkcnt_t blkcnt_t; +typedef __fsblkcnt_t fsblkcnt_t; + + +typedef __fsfilcnt_t fsfilcnt_t; +typedef unsigned long int pthread_t; +typedef union +{ + char __size[56]; + long int __align; +} pthread_attr_t; +typedef struct __pthread_internal_list +{ + struct __pthread_internal_list *__prev; + struct __pthread_internal_list *__next; +} __pthread_list_t; +typedef union +{ + struct __pthread_mutex_s + { + int __lock; + unsigned int __count; + int __owner; + unsigned int __nusers; + int __kind; + int __spins; + __pthread_list_t __list; + } __data; + char __size[40]; + long int __align; +} pthread_mutex_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_mutexattr_t; +typedef union +{ + struct + { + int __lock; + unsigned int __futex; + __extension__ unsigned long long int __total_seq; + __extension__ unsigned long long int __wakeup_seq; + __extension__ unsigned long long int __woken_seq; + void *__mutex; + unsigned int __nwaiters; + unsigned int __broadcast_seq; + } __data; + char __size[48]; + __extension__ long long int __align; +} pthread_cond_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_condattr_t; +typedef unsigned int pthread_key_t; +typedef int pthread_once_t; +typedef union +{ + struct + { + int __lock; + unsigned int __nr_readers; + unsigned int __readers_wakeup; + unsigned int __writer_wakeup; + unsigned int __nr_readers_queued; + unsigned int __nr_writers_queued; + int __writer; + int __shared; + unsigned long int __pad1; + unsigned long int __pad2; + unsigned int __flags; + } __data; + char __size[56]; + long int __align; +} pthread_rwlock_t; +typedef union +{ + char __size[8]; + long int __align; +} pthread_rwlockattr_t; +typedef volatile int pthread_spinlock_t; +typedef union +{ + char __size[32]; + long int __align; +} pthread_barrier_t; +typedef union +{ + char __size[4]; + int __align; +} pthread_barrierattr_t; + +extern long int random (void) __attribute__ ((__nothrow__ , __leaf__)); +extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); +extern char *initstate (unsigned int __seed, char *__statebuf, + size_t __statelen) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + + +extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + + + +struct random_data + { + int32_t *fptr; + int32_t *rptr; + int32_t *state; + int rand_type; + int rand_deg; + int rand_sep; + int32_t *end_ptr; + }; + +extern int random_r (struct random_data *__restrict __buf, + int32_t *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int srandom_r (unsigned int __seed, struct random_data *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, + size_t __statelen, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4))); + +extern int setstate_r (char *__restrict __statebuf, + struct random_data *__restrict __buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + +extern int rand (void) __attribute__ ((__nothrow__ , __leaf__)); + +extern void srand (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern double drand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int lrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int nrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern long int mrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); +extern long int jrand48 (unsigned short int __xsubi[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + +extern void srand48 (long int __seedval) __attribute__ ((__nothrow__ , __leaf__)); +extern unsigned short int *seed48 (unsigned short int __seed16v[3]) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + + + + + +struct drand48_data + { + unsigned short int __x[3]; + unsigned short int __old_x[3]; + unsigned short int __c; + unsigned short int __init; + unsigned long long int __a; + }; + + +extern int drand48_r (struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int erand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int lrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int nrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int mrand48_r (struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); +extern int jrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__restrict __buffer, + long int *__restrict __result) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + +extern int srand48_r (long int __seedval, struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); + +extern int seed48_r (unsigned short int __seed16v[3], + struct drand48_data *__buffer) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + +extern int lcong48_r (unsigned short int __param[7], + struct drand48_data *__buffer) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); + + + + + + + + + +extern void *malloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + +extern void *calloc (size_t __nmemb, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + + + + + + + +extern void *realloc (void *__ptr, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); + +extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + + + + +extern void cfree (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); + +extern void *alloca (size_t __size) __attribute__ ((__nothrow__ , __leaf__)); + + + + + + + +extern void *valloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ; + + + + +extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + + + + +extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + + +extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +extern void exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern void _Exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); + + +extern char *getenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern char *__secure_getenv (__const char *__name) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int putenv (char *__string) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int setenv (__const char *__name, __const char *__value, int __replace) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); +extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); +extern int clearenv (void) __attribute__ ((__nothrow__ , __leaf__)); +extern char *mktemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ; +extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ; +extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; + +extern int system (__const char *__command) ; + +extern char *realpath (__const char *__restrict __name, + char *__restrict __resolved) __attribute__ ((__nothrow__ , __leaf__)) ; +typedef int (*__compar_fn_t) (__const void *, __const void *); + +extern void *bsearch (__const void *__key, __const void *__base, + size_t __nmemb, size_t __size, __compar_fn_t __compar) + __attribute__ ((__nonnull__ (1, 2, 5))) ; +extern void qsort (void *__base, size_t __nmemb, size_t __size, + __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); +extern int abs (int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern long int labs (long int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +__extension__ extern long long int llabs (long long int __x) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern div_t div (int __numer, int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; +extern ldiv_t ldiv (long int __numer, long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + + +__extension__ extern lldiv_t lldiv (long long int __numer, + long long int __denom) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) ; + +extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *gcvt (double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern char *qecvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qfcvt (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) ; +extern char *qgcvt (long double __value, int __ndigit, char *__buf) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) ; +extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, + int *__restrict __sign, char *__restrict __buf, + size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qecvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); +extern int qfcvt_r (long double __value, int __ndigit, + int *__restrict __decpt, int *__restrict __sign, + char *__restrict __buf, size_t __len) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); + +extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int mbtowc (wchar_t *__restrict __pwc, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) ; +extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__ , __leaf__)) ; +extern size_t mbstowcs (wchar_t *__restrict __pwcs, + __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)); +extern size_t wcstombs (char *__restrict __s, + __const wchar_t *__restrict __pwcs, size_t __n) + __attribute__ ((__nothrow__ , __leaf__)); + +extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) ; +extern int getsubopt (char **__restrict __optionp, + char *__const *__restrict __tokens, + char **__restrict __valuep) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2, 3))) ; +extern int getloadavg (double __loadavg[], int __nelem) + __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); + +int main() { + struct TreeNode { + struct TreeNode* left; + struct TreeNode* right; + }; + struct StackItem { + struct StackItem* next; + struct TreeNode* node; + }; + struct TreeNode* root = malloc(sizeof(*root)), *n; + root->left = ((void *)0); + root->right = ((void *)0); + while (__VERIFIER_nondet_int()) { + n = root; + while (n->left && n->right) { + if (__VERIFIER_nondet_int()) + n = n->left; + else + n = n->right; + } + if (!n->left && __VERIFIER_nondet_int()) { + n->left = malloc(sizeof(*n)); + n->left->left = ((void *)0); + n->left->right = ((void *)0); + } + if (!n->right && __VERIFIER_nondet_int()) { + n->right = malloc(sizeof(*n)); + n->right->left = ((void *)0); + n->right->right = ((void *)0); + } + } + n = ((void *)0); + struct StackItem* s = malloc(sizeof(*s)), *st; + s->next = ((void *)0); + s->node = root; + while (s != ((void *)0)) { + st = s; + s = s->next; + n = st->node; + free(st); + if (n->left) { + st = malloc(sizeof(*st)); + st->next = s; + st->node = n->left; + s = st; + } + if (n->right) { + st = malloc(sizeof(*st)); + st->next = s; + st->node = n->right; + s = st; + } + free(n); + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-Fig1_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-Fig1_true-termination.c new file mode 100644 index 000000000..baaa2b567 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-Fig1_true-termination.c @@ -0,0 +1,23 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int y = 0, m = __VERIFIER_nondet_int(), x = m; + while (x >= 0 && y >= 0) { + if (__VERIFIER_nondet_int()) { + while (y <= m && __VERIFIER_nondet_int()) { + y++; + } + x--; + } + y--; + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-Fig2a_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-Fig2a_true-termination.c new file mode 100644 index 000000000..233b2467b --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-Fig2a_true-termination.c @@ -0,0 +1,22 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + while (x >= 2) { + x--; y = y + x; + while (y >= x && __VERIFIER_nondet_int()) { + y--; + } + x--; y = y - x; + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-Fig2b_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-Fig2b_true-termination.c new file mode 100644 index 000000000..b0cde869d --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-Fig2b_true-termination.c @@ -0,0 +1,26 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + while (x >= 2) { + x--; y = y + x; + while (y >= x + 1 && __VERIFIER_nondet_int()) { + y--; + while (y >= x + 3 && __VERIFIER_nondet_int()) { + x++; y = y - 2; + } + y--; + } + x--; y = y - x; + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-counterex1a_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-counterex1a_true-termination.c new file mode 100644 index 000000000..2a80db288 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-counterex1a_true-termination.c @@ -0,0 +1,30 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int n = __VERIFIER_nondet_int(); + int b = __VERIFIER_nondet_int(); + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + while (x >= 0 && 0 <= y && y <= n) { + if (b == 0) { + y++; + if (__VERIFIER_nondet_int()) + b = 1; + } else { + y--; + if (__VERIFIER_nondet_int()) { + x--; + b = 0; + } + } + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-counterex1b_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-counterex1b_true-termination.c new file mode 100644 index 000000000..25e862454 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-counterex1b_true-termination.c @@ -0,0 +1,23 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int n = __VERIFIER_nondet_int(); + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + while (x >= 0) { + while (y >= 0 && __VERIFIER_nondet_int()) + y--; + x--; + while (y <= n && __VERIFIER_nondet_int()) + y++; + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-cousot9_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-cousot9_true-termination.c new file mode 100644 index 000000000..8ddff2214 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-cousot9_true-termination.c @@ -0,0 +1,24 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int j = __VERIFIER_nondet_int(); + int N = __VERIFIER_nondet_int(); + int i = N; + while (i > 0) { + if (j > 0) { + j--; + } else { + j = N; + i--; + } + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-ndecr_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-ndecr_true-termination.c new file mode 100644 index 000000000..aa4bceec9 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-ndecr_true-termination.c @@ -0,0 +1,17 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int n = __VERIFIER_nondet_int(), i = n - 1; + while (i > 1) { + i--; + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-nestedLoop_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-nestedLoop_true-termination.c new file mode 100644 index 000000000..7e1af97fb --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-nestedLoop_true-termination.c @@ -0,0 +1,33 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i = __VERIFIER_nondet_int(); + int j = __VERIFIER_nondet_int(); + int k = __VERIFIER_nondet_int(); + int n = __VERIFIER_nondet_int(); + int m = __VERIFIER_nondet_int(); + int N = __VERIFIER_nondet_int(); + if (0 <= n && 0 <= m && 0 <= N) { + i = 0; + while (i < n) { + j = 0; + while (j < m) { + j += 1; + k = i; + while (k < N) + k += 1; + i = k; + } + i++; + } + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-random1d_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-random1d_true-termination.c new file mode 100644 index 000000000..1ad0a715f --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-random1d_true-termination.c @@ -0,0 +1,25 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int a, x, max = __VERIFIER_nondet_int(); + if (max > 0) { + a = 0; + x = 1; + while (x <= max) { + if (__VERIFIER_nondet_int()) + a = a + 1; + else + a = a - 1; + x = x + 1; + } + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-rsd_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-rsd_true-termination.c new file mode 100644 index 000000000..be8d3a632 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-rsd_true-termination.c @@ -0,0 +1,28 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int r = __VERIFIER_nondet_int(); + int da, db, temp; + if (r >= 0) { + da = 2 * r; + db = 2 * r; + while (da >= r) { + if (__VERIFIER_nondet_int()) { + da--; + } else { + temp = da; + da = db - 1; + db = da; + } + } + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-speedpldi2_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-speedpldi2_true-termination.c new file mode 100644 index 000000000..31def1da2 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-speedpldi2_true-termination.c @@ -0,0 +1,28 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int n = __VERIFIER_nondet_int(); + int m = __VERIFIER_nondet_int(); + int v1, v2; + if (n >= 0 && m > 0) { + v1 = n; + v2 = 0; + while (v1 > 0) { + if (v2 < m) { + v2++; + v1--; + } else { + v2 = 0; + } + } + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-speedpldi3_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-speedpldi3_true-termination.c new file mode 100644 index 000000000..23dcdff29 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-speedpldi3_true-termination.c @@ -0,0 +1,28 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int n = __VERIFIER_nondet_int(); + int m = __VERIFIER_nondet_int(); + int i, j; + if (m > 0 && n > m) { + i = 0; + j = 0; + while (i < n) { + if (j < m) { + j++; + } else { + j = 0; + i++; + } + } + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-speedpldi4_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-speedpldi4_true-termination.c new file mode 100644 index 000000000..2038445b0 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-speedpldi4_true-termination.c @@ -0,0 +1,25 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int n = __VERIFIER_nondet_int(); + int m = __VERIFIER_nondet_int(); + int i; + if (m > 0 && n > m) { + i = n; + while (i > 0) { + if (i < m) + i--; + else + i -= m; + } + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-terminate_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-terminate_true-termination.c new file mode 100644 index 000000000..39d61de85 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-terminate_true-termination.c @@ -0,0 +1,23 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i = __VERIFIER_nondet_int(); + int j = __VERIFIER_nondet_int(); + int k = __VERIFIER_nondet_int(); + int ell; + while (i <= 100 && j <= k) { + ell = i; + i = j; + j = ell + 1; + k--; + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-wcet2_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-wcet2_true-termination.c new file mode 100644 index 000000000..0ca7a382c --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-wcet2_true-termination.c @@ -0,0 +1,21 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i = __VERIFIER_nondet_int(); + int j = __VERIFIER_nondet_int(); + while (i < 5) { + j = 0; + while (i > 2 && j <= 9) + j++; + i++; + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-while2_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-while2_true-termination.c new file mode 100644 index 000000000..144eafc2a --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-while2_true-termination.c @@ -0,0 +1,22 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int N = __VERIFIER_nondet_int(); + int j; + int i = N; + while (i > 0) { + j = N; + while (j > 0) + j--; + i--; + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-wise_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-wise_true-termination.c new file mode 100644 index 000000000..d71f8821a --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-wise_true-termination.c @@ -0,0 +1,24 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + if (x >= 0 && y >= 0) { + while (x - y > 2 || y - x > 2) { + if (x < y) { + x++; + } else { + y++; + } + } + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/Avery-FLOPS2006-Table1_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/Avery-FLOPS2006-Table1_true-termination.c new file mode 100644 index 000000000..679cb0607 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/Avery-FLOPS2006-Table1_true-termination.c @@ -0,0 +1,35 @@ +/* + * Program from Table 1 of + * 2006FLOPS - James Avery - Size-Change Termination and Bound Analysis + * + * Date: 18.12.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +extern int __VERIFIER_nondet_int(void); + +int subxy(int x, int y) { + int z,i; + z = 0; + i = x; + if (y <= 0 || x <= 0) { + return 0; + } + while (i > 0) { + i--; + z++; + } + while (i < y) { + i++; + z--; + } + return z; +} + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + subxy(x,y); + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/BradleyMannaSipma-CAV2005-Fig1-modified_false-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/BradleyMannaSipma-CAV2005-Fig1-modified_false-termination.c new file mode 100644 index 000000000..2bd7fae8b --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/BradleyMannaSipma-CAV2005-Fig1-modified_false-termination.c @@ -0,0 +1,35 @@ +/* + * Program from Fig.1 of + * 2005CAV - Bradley,Manna,Sipma - Linear Ranking with Reachability + * Modified version that can be nonterminating because we allow that inputs of + * gcd may be zero. + * + * Date: 12.12.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +extern int __VERIFIER_nondet_int(void); + + +int gcd(int y1, int y2) { + while (y1 != y2) { + if (y1 > y2) { + y1 = y1 - y2; + } else { + y2 = y2 - y1; + } + } + return y1; +} + +int main() { + int y1 = __VERIFIER_nondet_int(); + int y2 = __VERIFIER_nondet_int(); + if (y1 >= 0 && y2 >= 0) { + gcd(y1, y2); + } + return 0; +} + + diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/BradleyMannaSipma-CAV2005-Fig1_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/BradleyMannaSipma-CAV2005-Fig1_true-termination.c new file mode 100644 index 000000000..431def95f --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/BradleyMannaSipma-CAV2005-Fig1_true-termination.c @@ -0,0 +1,33 @@ +/* + * Program from Fig.1 of + * 2005CAV - Bradley,Manna,Sipma - Linear Ranking with Reachability + * + * Date: 12.12.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +extern int __VERIFIER_nondet_int(void); + + +int gcd(int y1, int y2) { + while (y1 != y2) { + if (y1 > y2) { + y1 = y1 - y2; + } else { + y2 = y2 - y1; + } + } + return y1; +} + +int main() { + int y1 = __VERIFIER_nondet_int(); + int y2 = __VERIFIER_nondet_int(); + if (y1 > 0 && y2 > 0) { + gcd(y1, y2); + } + return 0; +} + + diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/BradleyMannaSipma-ICALP2005-Fig1_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/BradleyMannaSipma-ICALP2005-Fig1_true-termination.c new file mode 100644 index 000000000..76c6ee5c1 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/BradleyMannaSipma-ICALP2005-Fig1_true-termination.c @@ -0,0 +1,35 @@ +/* + * Program from Fig.1 of + * 2005ICALP - Bradley,Manna,Sipma - The Polyranking Principle + * + * Date: 12.12.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +extern int __VERIFIER_nondet_int(void); + + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + int N = __VERIFIER_nondet_int(); + // continue only for values where there won't be any overflow or underflow + // on systems where sizeof(int)=4 holds. + if (N >= 536870912 || x >= 536870912 || y >= 536870912 || x < -1073741824) { + return 0; + } + if (x + y >= 0) { + while (x <= N) { + if (__VERIFIER_nondet_int()) { + x = 2*x + y; + y = y + 1; + } else { + x = x + 1; + } + } + } + return 0; +} + + diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron12_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron12_true-termination.c new file mode 100644 index 000000000..4e606d86c --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron12_true-termination.c @@ -0,0 +1,26 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2008ESOP - Chawdhary,Cook,Gulwani,Sagiv,Yang - Ranking Abstractions + * + * Date: 2014 + * Author: Caterina Urban + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + int z = __VERIFIER_nondet_int(); + while (x >= y) { + if (__VERIFIER_nondet_int()) { + x = x + 1; + y = y + x; + } else { + x = x - z; + y = y + (z * z); + z = z - 1; + } + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron1_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron1_true-termination.c new file mode 100644 index 000000000..da616ed9c --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron1_true-termination.c @@ -0,0 +1,30 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2008ESOP - Chawdhary,Cook,Gulwani,Sagiv,Yang - Ranking Abstractions + * + * Date: 2014 + * Author: Caterina Urban + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i = __VERIFIER_nondet_int(); + int j = __VERIFIER_nondet_int(); + int an = __VERIFIER_nondet_int(); + int bn = __VERIFIER_nondet_int(); + while ((an >= i && bn >= j) || (an >= i && bn <= j) || (an <= i && bn >= j)) { + if (an >= i && bn >= j) { + if (__VERIFIER_nondet_int()) { + j = j + 1; + } else { + i = i + 1; + } + } else if (an >= i && bn <= j) { + i = i + 1; + } else if (an <= i && bn >= j) { + j = j + 1; + } + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron4_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron4_true-termination.c new file mode 100644 index 000000000..ccd5b9eae --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron4_true-termination.c @@ -0,0 +1,36 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2008ESOP - Chawdhary,Cook,Gulwani,Sagiv,Yang - Ranking Abstractions + * + * Date: 2014 + * Author: Caterina Urban + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i = __VERIFIER_nondet_int(); + int j = __VERIFIER_nondet_int(); + int k = __VERIFIER_nondet_int(); + int an = __VERIFIER_nondet_int(); + int bn = __VERIFIER_nondet_int(); + int tk = __VERIFIER_nondet_int(); + while (((an >= i && bn >= j) || (an >= i && bn <= j) || (an <= i && bn >= j)) && k >= tk + 1) { + if (an >= i && bn >= j) { + if (__VERIFIER_nondet_int()) { + j = j + k; + tk = k; + k = __VERIFIER_nondet_int(); + } else { + i = i + 1; + } + } else if (an >= i && bn <= j) { + i = i + 1; + } else if (an <= i && bn >= j) { + j = j + k; + tk = k; + k = __VERIFIER_nondet_int(); + } + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron6_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron6_true-termination.c new file mode 100644 index 000000000..dfee713f4 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron6_true-termination.c @@ -0,0 +1,31 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2008ESOP - Chawdhary,Cook,Gulwani,Sagiv,Yang - Ranking Abstractions + * + * Date: 2014 + * Author: Caterina Urban + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x = __VERIFIER_nondet_int(); + int tx = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + int ty = __VERIFIER_nondet_int(); + int n = __VERIFIER_nondet_int(); + if (x + y >= 0) { + while (x <= n && x >= 2 * tx + y && y >= ty + 1 && x >= tx + 1) { + if (__VERIFIER_nondet_int()) { + tx = x; + ty = y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + } else { + tx = x; + x = __VERIFIER_nondet_int(); + } + } + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-random1d_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-random1d_true-termination.c new file mode 100644 index 000000000..adcff2d84 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-random1d_true-termination.c @@ -0,0 +1,27 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2008ESOP - Chawdhary,Cook,Gulwani,Sagiv,Yang - Ranking Abstractions + * + * Date: 2014 + * Author: Caterina Urban + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int a = __VERIFIER_nondet_int(); + int x = __VERIFIER_nondet_int(); + int max = __VERIFIER_nondet_int(); + if (max > 0) { + a = 0; + x = 1; + while (x <= max) { + if (__VERIFIER_nondet_int()) + a = a + 1; + else + a = a - 1; + x = x + 1; + } + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex1.02_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex1.02_true-termination.c new file mode 100644 index 000000000..1c5217887 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex1.02_true-termination.c @@ -0,0 +1,30 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 1.2 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, linear + */ + +extern int __VERIFIER_nondet_int(); + +int main() { + int x = __VERIFIER_nondet_int(); + while (x > 0 && x < 100) { + int old_x = x; + x = __VERIFIER_nondet_int(); + if (x < 2*old_x + 10) { + break; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex1.03_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex1.03_true-termination.c new file mode 100644 index 000000000..201a02d4c --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex1.03_true-termination.c @@ -0,0 +1,30 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 1.3 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, linear + */ + +extern int __VERIFIER_nondet_int(); + +int main() { + int x = __VERIFIER_nondet_int(); + while (x > 1) { + int old_x = x; + x = __VERIFIER_nondet_int(); + if (-2*x != old_x) { + break; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex1.04_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex1.04_true-termination.c new file mode 100644 index 000000000..35d3b9301 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex1.04_true-termination.c @@ -0,0 +1,30 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 1.4 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, linear + */ + +extern int __VERIFIER_nondet_int(); + +int main() { + int x = __VERIFIER_nondet_int(); + while (x > 1) { + int old_x = x; + x = __VERIFIER_nondet_int(); + if (2*x > old_x) { + break; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex1.05_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex1.05_true-termination.c new file mode 100644 index 000000000..1a9c12bb3 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex1.05_true-termination.c @@ -0,0 +1,30 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 1.5 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, linear + */ + +extern int __VERIFIER_nondet_int(); + +int main() { + int x = __VERIFIER_nondet_int(); + while (x > 0) { + int old_x = x; + x = __VERIFIER_nondet_int(); + if (2*x > old_x) { + break; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.01_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.01_true-termination.c new file mode 100644 index 000000000..8e4c21eb5 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.01_true-termination.c @@ -0,0 +1,28 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 2.1 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, non-linear + */ + +extern int __VERIFIER_nondet_int(); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + while (x > 0) { + x = x + y; + y--; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.02_false-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.02_false-termination.c new file mode 100644 index 000000000..f1d50f01b --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.02_false-termination.c @@ -0,0 +1,28 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 2.2 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: nonterminating + */ + +extern int __VERIFIER_nondet_int(); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + while (x < 0) { + x = x + y; + y--; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.05_false-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.05_false-termination.c new file mode 100644 index 000000000..6636d3248 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.05_false-termination.c @@ -0,0 +1,28 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 2.5 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: non-terminating (for x=-1,y=0) + */ + +extern int __VERIFIER_nondet_int(); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + while (x < y) { + x = x + y; + y = y / 2; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.07_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.07_true-termination.c new file mode 100644 index 000000000..66b1506fa --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.07_true-termination.c @@ -0,0 +1,28 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 2.7 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, non-linear + */ + +extern int __VERIFIER_nondet_int(); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + while (x > 0 && x < y) { + x = 2*x; + y++; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.08_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.08_true-termination.c new file mode 100644 index 000000000..ee624b3dc --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.08_true-termination.c @@ -0,0 +1,28 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 2.8 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, non-linear + */ + +extern int __VERIFIER_nondet_int(); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + while (x > 0) { + x = x - 2*y; + y++; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.10_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.10_true-termination.c new file mode 100644 index 000000000..d1965181d --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.10_true-termination.c @@ -0,0 +1,28 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 2.10 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, linear + */ + +extern int __VERIFIER_nondet_int(); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + while (x > 0 && y < 0) { + x = x + y; + y--; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.13_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.13_true-termination.c new file mode 100644 index 000000000..06a5dec38 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.13_true-termination.c @@ -0,0 +1,28 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 2.13 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, non-linear + */ + +extern int __VERIFIER_nondet_int(); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + while (x - y > 0) { + x = y - x; + y++; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.16_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.16_true-termination.c new file mode 100644 index 000000000..10e7b74e7 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.16_true-termination.c @@ -0,0 +1,28 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 2.16 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, non-linear + */ + +extern int __VERIFIER_nondet_int(); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + while (x > 0) { + x = y; + y--; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.17_false-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.17_false-termination.c new file mode 100644 index 000000000..797ce6ede --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.17_false-termination.c @@ -0,0 +1,28 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 2.17 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: non-terminating (for x=0, y=11) + */ + +extern int __VERIFIER_nondet_int(); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + while (x < 10) { + x = -y; + y++; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.20_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.20_true-termination.c new file mode 100644 index 000000000..cbf2ee4ff --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.20_true-termination.c @@ -0,0 +1,31 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 2.20 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, linear + */ + +extern int __VERIFIER_nondet_int(); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + while (x > y) { + x = x - y; + y = __VERIFIER_nondet_int(); + if (y < 1 || y > 2) { + break; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.22_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.22_true-termination.c new file mode 100644 index 000000000..7163a125d --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.22_true-termination.c @@ -0,0 +1,32 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 2.22 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, linear + */ + +extern int __VERIFIER_nondet_int(); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + while (x > 0) { + x = y; + int old_y = y; + y = __VERIFIER_nondet_int(); + if (y > -old_y) { + break; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.01_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.01_true-termination.c new file mode 100644 index 000000000..48da0bf92 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.01_true-termination.c @@ -0,0 +1,29 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 3.1 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, non-linear + */ + +extern int __VERIFIER_nondet_int(); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + int z = __VERIFIER_nondet_int(); + while (x < y) { + x++; + y = z; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.03_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.03_true-termination.c new file mode 100644 index 000000000..e4dc808df --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.03_true-termination.c @@ -0,0 +1,30 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 3.3 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, non-linear + */ + +extern int __VERIFIER_nondet_int(); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + int z = __VERIFIER_nondet_int(); + while (x > 0) { + x = x + y; + y = y + z; + z--; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.04_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.04_true-termination.c new file mode 100644 index 000000000..7ec8f9be5 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.04_true-termination.c @@ -0,0 +1,29 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 3.4 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, non-linear + */ + +extern int __VERIFIER_nondet_int(); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + int z = __VERIFIER_nondet_int(); + while (x + y >= 0 && x <= z) { + x = 2*x + y; + y++; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.05_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.05_true-termination.c new file mode 100644 index 000000000..f451a1ced --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.05_true-termination.c @@ -0,0 +1,29 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 3.5 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, non-linear + */ + +extern int __VERIFIER_nondet_int(); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + int z = __VERIFIER_nondet_int(); + while (x >= 0 && x <= z) { + x = 2*x + y; + y++; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.08_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.08_true-termination.c new file mode 100644 index 000000000..788b442b0 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.08_true-termination.c @@ -0,0 +1,30 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 3.8 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, non-linear + */ + +extern int __VERIFIER_nondet_int(); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + int z = __VERIFIER_nondet_int(); + while (x - y > 0) { + x = -x + y; + y = z; + z = z + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.09_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.09_true-termination.c new file mode 100644 index 000000000..0255b9e13 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.09_true-termination.c @@ -0,0 +1,33 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 3.9 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, non-linear + */ + +extern int __VERIFIER_nondet_int(); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + int z = __VERIFIER_nondet_int(); + while (x > 0 && x < y) { + int old_x = x; + x = __VERIFIER_nondet_int(); + if (x <= 2*old_x) { + break; + } + y = z; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex4.01_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex4.01_true-termination.c new file mode 100644 index 000000000..e140f006a --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex4.01_true-termination.c @@ -0,0 +1,31 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 4.1 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, non-linear + */ + +extern int __VERIFIER_nondet_int(); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + int z = __VERIFIER_nondet_int(); + int n = __VERIFIER_nondet_int(); + while (x + y >= 0 && x <= n) { + x = 2*x + y; + y = z; + z = z + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/CookSeeZuleger-TACAS2013-Fig1_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/CookSeeZuleger-TACAS2013-Fig1_true-termination.c new file mode 100644 index 000000000..293c5b2fb --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/CookSeeZuleger-TACAS2013-Fig1_true-termination.c @@ -0,0 +1,23 @@ +/* + * Program from Fig.3 of + * 2013TACAS - Cook,See,Zuleger - Ramsey vs. Lexicographic Termination Proving + * + * Date: 8.6.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + while (x>0 && y>0) { + if (__VERIFIER_nondet_int()) { + x = x - 1; + } else { + x = __VERIFIER_nondet_int(); + y = y - 1; + } + } +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/CookSeeZuleger-TACAS2013-Fig7a_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/CookSeeZuleger-TACAS2013-Fig7a_true-termination.c new file mode 100644 index 000000000..9a976c4de --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/CookSeeZuleger-TACAS2013-Fig7a_true-termination.c @@ -0,0 +1,27 @@ +//#terminating +/* + * Program from Fig.7a of + * 2013TACAS - Cook,See,Zuleger - Ramsey vs. Lexicographic Termination Proving + * + * Date: 9.6.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + int d = __VERIFIER_nondet_int(); + while (x>0 && y>0 && d>0) { + if (__VERIFIER_nondet_int()) { + x = x - 1; + d = __VERIFIER_nondet_int(); + } else { + x = __VERIFIER_nondet_int(); + y = y - 1; + d = d - 1; + } + } +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/CookSeeZuleger-TACAS2013-Fig7b_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/CookSeeZuleger-TACAS2013-Fig7b_true-termination.c new file mode 100644 index 000000000..8d8a0b18b --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/CookSeeZuleger-TACAS2013-Fig7b_true-termination.c @@ -0,0 +1,28 @@ +//#terminating +/* + * Program from Fig.7b of + * 2013TACAS - Cook,See,Zuleger - Ramsey vs. Lexicographic Termination Proving + * + * Date: 9.6.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + int z = __VERIFIER_nondet_int(); + while (x>0 && y>0 && z>0) { + if (__VERIFIER_nondet_int()) { + x = x - 1; + } else if (__VERIFIER_nondet_int()) { + y = y - 1; + z = __VERIFIER_nondet_int(); + } else { + z = z - 1; + x = __VERIFIER_nondet_int(); + } + } +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/GopanReps-CAV2006-Fig1a_true-termination.c.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/GopanReps-CAV2006-Fig1a_true-termination.c.c new file mode 100644 index 000000000..c92759051 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/GopanReps-CAV2006-Fig1a_true-termination.c.c @@ -0,0 +1,24 @@ +/* + * Program from Fig.1a of + * 2006CAV - Gopan,Reps - Lookahead Widening + * + * Date: 2014-06-22 + * Author: Caterina Urban, Matthias Heizmann + * + */ + +int main() { + int x = 0, y = 0; + while (1) { + if (x <= 50) { + y++; + } else { + y--; + } + if (y < 0) { + break; + } + x++; + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/GulwaniJainKoskinen-PLDI2009-Fig1_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/GulwaniJainKoskinen-PLDI2009-Fig1_true-termination.c new file mode 100644 index 000000000..547a81fd4 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/GulwaniJainKoskinen-PLDI2009-Fig1_true-termination.c @@ -0,0 +1,34 @@ +//#Termination +/* + * Program from Fig.1a of + * 2009PLDI - Gulwani,Jain,Koskinen - Control-flow refinement and progress invariants for bound analysis + * + * Date: 9.12.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +extern int __VERIFIER_nondet_int(void); + + +int main() { + int id = __VERIFIER_nondet_int(); + int maxId = __VERIFIER_nondet_int(); + + + if(0 <= id && id < maxId) { + int tmp = id+1; + while(tmp!=id && __VERIFIER_nondet_int()) { + if (tmp <= maxId) { + tmp = tmp + 1; + } else { + tmp = 0; + } + } + } + + + return 0; +} + + diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HarrisLalNoriRajamani-SAS2010-Fig1_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HarrisLalNoriRajamani-SAS2010-Fig1_true-termination.c new file mode 100644 index 000000000..7c44af91a --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HarrisLalNoriRajamani-SAS2010-Fig1_true-termination.c @@ -0,0 +1,46 @@ +/* + * Program from Fig.1 of + * 2010SAS - Harris, Lal, Nori, Rajamani - AlternationforTermination + * + * Date: 12.12.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +extern int __VERIFIER_nondet_int(void); + + +void f(int d) { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + int k = __VERIFIER_nondet_int(); + int z = 1; + if (k > 1073741823) { + return; + } + // ... + L1: + while (z < k) { + z = 2 * z; + } + L2: + while (x > 0 && y > 0) { + // ... + if (__VERIFIER_nondet_int()) { + P1: + x = x - d; + y = __VERIFIER_nondet_int(); + z = z - 1; + } else { + y = y - d; + } + } +} + +int main() { + if (__VERIFIER_nondet_int()) { + f(1); + } else { + f(2); + } +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HarrisLalNoriRajamani-SAS2010-Fig2_false-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HarrisLalNoriRajamani-SAS2010-Fig2_false-termination.c new file mode 100644 index 000000000..110b88828 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HarrisLalNoriRajamani-SAS2010-Fig2_false-termination.c @@ -0,0 +1,84 @@ +/* + * Program from Fig.2 of + * 2010SAS - Harris, Lal, Nori, Rajamani - AlternationforTermination + * for k = 4 and 8 paths through foo. + * + * Date: 12.12.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +extern int __VERIFIER_nondet_int(void); + + +/* + * Procedure that has 8 path through its body. + */ +int foo(void) { + int y = __VERIFIER_nondet_int(); + if (__VERIFIER_nondet_int()) { + if (__VERIFIER_nondet_int()) { + if (__VERIFIER_nondet_int()) { + y = 0; + } else { + y = 1; + } + } else { + if (__VERIFIER_nondet_int()) { + y = 2; + } else { + y = 3; + } + } + } else { + if (__VERIFIER_nondet_int()) { + if (__VERIFIER_nondet_int()) { + y = 4; + } else { + y = 5; + } + } else { + if (__VERIFIER_nondet_int()) { + y = 6; + } else { + y = 7; + } + } + } + return y; +} + + +int main() { + int d = 1; + int x = __VERIFIER_nondet_int(); + + if (__VERIFIER_nondet_int()) { + d = d - 1; + } + + + if (__VERIFIER_nondet_int()) { + foo(); + } + if (__VERIFIER_nondet_int()) { + foo(); + } + if (__VERIFIER_nondet_int()) { + foo(); + } + if (__VERIFIER_nondet_int()) { + foo(); + } + + // I think there is a typo in the paper and the following + // decrement can be omitted. + if (__VERIFIER_nondet_int()) { + d = d - 1; + } + + while (x > 0) { + x = x - d; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HarrisLalNoriRajamani-SAS2010-Fig3_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HarrisLalNoriRajamani-SAS2010-Fig3_true-termination.c new file mode 100644 index 000000000..66e2d2dc3 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HarrisLalNoriRajamani-SAS2010-Fig3_true-termination.c @@ -0,0 +1,30 @@ +/* + * Program from Fig.3 of + * 2010SAS - Harris, Lal, Nori, Rajamani - AlternationforTermination + * + * Date: 12.12.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +extern int __VERIFIER_nondet_int(void); + +int x; + +void foo(void) { + x--; +} + + +int main() { + x = __VERIFIER_nondet_int(); + + while (x > 0) { + if (__VERIFIER_nondet_int()) { + foo(); + } else { + foo(); + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig2_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig2_true-termination.c new file mode 100644 index 000000000..7a79c0481 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig2_true-termination.c @@ -0,0 +1,19 @@ +/* + * Program from Figure 2 of + * 2013ATVA - Heizmann, Hoenicke, Leike, Podelski - Linear Ranking for Linear Lasso Programs + * + * Date: 2014-06-29 + * Author: Jan Leike + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int y = __VERIFIER_nondet_int(); + int x = y + 42; + while (x >= 0) { + y = 2*y - x; + x = (y + x) / 2; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig5_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig5_true-termination.c new file mode 100644 index 000000000..ecb34e347 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig5_true-termination.c @@ -0,0 +1,19 @@ +/* + * Program from Figure 5 of + * 2013ATVA - Heizmann, Hoenicke, Leike, Podelski - Linear Ranking for Linear Lasso Programs + * + * Date: 2014-06-29 + * Author: Jan Leike + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = 2; + while (x >= 0) { + x = x - y; + y = (y + 1) / 2; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig6_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig6_true-termination.c new file mode 100644 index 000000000..265b3f141 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig6_true-termination.c @@ -0,0 +1,25 @@ +/* + * Program from Figure 6 of + * 2013ATVA - Heizmann, Hoenicke, Leike, Podelski - Linear Ranking for Linear Lasso Programs + * + * Date: 2014-06-29 + * Author: Jan Leike + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + if (y < 1) { + return 0; + } + while (x >= 0) { + x = x - y; + y = __VERIFIER_nondet_int(); + if (y < 1) { + break; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig7_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig7_true-termination.c new file mode 100644 index 000000000..027d06565 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig7_true-termination.c @@ -0,0 +1,26 @@ +/* + * Program from Figure 7 of + * 2013ATVA - Heizmann, Hoenicke, Leike, Podelski - Linear Ranking for Linear Lasso Programs + * + * Date: 2014-06-29 + * Author: Jan Leike + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int a_length = __VERIFIER_nondet_int(); + if (a_length < 1) { + return 0; + } + int a[a_length]; + int offset = 1; + int i = 0; + while (i < a_length) { + if (a[i] < 0) { + break; + } + i = i + offset + a[i]; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig8_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig8_true-termination.c new file mode 100644 index 000000000..845c0bae4 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig8_true-termination.c @@ -0,0 +1,21 @@ +/* + * Program from Figure 8 of + * 2013ATVA - Heizmann, Hoenicke, Leike, Podelski - Linear Ranking for Linear Lasso Programs + * + * Date: 2014-06-29 + * Author: Jan Leike + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + if (2*y < 1) { + return 0; + } + while (x >= 0) { + x = x - 2*y + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig9_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig9_true-termination.c new file mode 100644 index 000000000..9ffb6e7f9 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig9_true-termination.c @@ -0,0 +1,22 @@ +/* + * Program from Figure 9 of + * 2013ATVA - Heizmann, Hoenicke, Leike, Podelski - Linear Ranking for Linear Lasso Programs + * + * Date: 2014-06-29 + * Author: Jan Leike + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + int z = __VERIFIER_nondet_int(); + if (2*y < z) { + return 0; + } + while (x >= 0 && z == 1) { + x = x - 2*y + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HenzingerJhalaMajumdarSutre-POPL2002-LockingExample_false-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HenzingerJhalaMajumdarSutre-POPL2002-LockingExample_false-termination.c new file mode 100644 index 000000000..cd9dd4357 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HenzingerJhalaMajumdarSutre-POPL2002-LockingExample_false-termination.c @@ -0,0 +1,57 @@ +/* + * Program from Fig.1 of + * 2002POPL - Henzinger,Jhala,Majumdar,Sutre - Lazy abstraction + * + * Date: 2014-06-28 + * Author: heizmann@informatik.uni-freiburg.de + * + * + * + */ +extern int __VERIFIER_nondet_int(void); + +int LOCK; + +void lock(void) { + if (LOCK == 0) { + LOCK = 1; + } else { + // assert \false; + } +} + +void unlock(void) { + if (LOCK == 1) { + LOCK = 0; + } else { + // assert \false; + } +} + +int main() { + int got_lock; + int old = 0, new = 0; + if (__VERIFIER_nondet_int()) { + do { + got_lock = 0; + if (__VERIFIER_nondet_int()) { + lock(); + got_lock++; + } + if (got_lock) { + unlock(); + } + } while (__VERIFIER_nondet_int()); + } + do { + lock(); + old = new; + if (__VERIFIER_nondet_int()) { + unlock(); + new++; + } + } while (new != old); + unlock(); + return 0; +} + diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/KroeningSharyginaTsitovichWintersteiger-CAV2010-Ex_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/KroeningSharyginaTsitovichWintersteiger-CAV2010-Ex_true-termination.c new file mode 100644 index 000000000..a0fe3cee7 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/KroeningSharyginaTsitovichWintersteiger-CAV2010-Ex_true-termination.c @@ -0,0 +1,22 @@ +/* + * Program from the example (without number) of + * 2010CAV - Kroening,Sharygina,Tsitovich,Wintersteiger - Termination Analysis with Compositional Transition Invariants + * + * Date: 2014 + * Author: Caterina Urban + * + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i = __VERIFIER_nondet_int(); + while (i < 255) { + if (__VERIFIER_nondet_int()) { + i = i + 1; + } else { + i = i + 2; + } + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/KroeningSharyginaTsitovichWintersteiger-CAV2010-Fig1_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/KroeningSharyginaTsitovichWintersteiger-CAV2010-Fig1_true-termination.c new file mode 100644 index 000000000..049826201 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/KroeningSharyginaTsitovichWintersteiger-CAV2010-Fig1_true-termination.c @@ -0,0 +1,30 @@ +/* + * Program from Fig.1 of + * 2010CAV - Kroening,Sharygina,Tsitovich,Wintersteiger - Termination Analysis with Compositional Transition Invariants + * + * Date: 12.12.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +extern int __VERIFIER_nondet_int(void); + + +int main() { + int x = __VERIFIER_nondet_int(); + int debug = 0; + + while (x < 255) { + if (x % 2 != 0) { + x--; + } else { + x += 2; + } + if (debug != 0) { + x = 0; + } + } + return 0; +} + + diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LICENSE.txt b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LICENSE.txt new file mode 100644 index 000000000..7f941dd2a --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LICENSE.txt @@ -0,0 +1,23 @@ +Copyright (c) 2013, University of Freiburg +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LarrazOliverasRodriguez-CarbonellRubio-FMCAD2013-Fig1_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LarrazOliverasRodriguez-CarbonellRubio-FMCAD2013-Fig1_true-termination.c new file mode 100644 index 000000000..ab0f217fa --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LarrazOliverasRodriguez-CarbonellRubio-FMCAD2013-Fig1_true-termination.c @@ -0,0 +1,33 @@ +/* + * Program from Fig.1 of + * 2013FMCAD - Larraz,Oliveras,Rodriguez-Carbonell,Rubio - Proving Termination of Imperative Programs Using Max-SMT + * + * Date: 12.12.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +extern int __VERIFIER_nondet_int(void); + + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + int z = __VERIFIER_nondet_int(); + // continue only for values where there won't be any overflow or underflow + // on systems where sizeof(int)=4 holds. + if (x > 10000 || x < -10000 || y > 10000 || z > 10000) { + return 0; + } + while (y >= 1) { + x--; + while (y < z) { + x++; + z--; + } + y = x + y; + } + return 0; +} + + diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeeJonesBen-Amram-POPL2001-Ex1_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeeJonesBen-Amram-POPL2001-Ex1_true-termination.c new file mode 100644 index 000000000..c631ed366 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeeJonesBen-Amram-POPL2001-Ex1_true-termination.c @@ -0,0 +1,31 @@ +/* + * Program from Ex.1 of + * 2001POPL - Lee,Jones,Ben-Amram - The size-change principle for program termination + * where we abstracted lists by their size. + * + * Date: 12.12.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +extern int __VERIFIER_nondet_int(void); + +int r1(int ls, int a) { + if (ls == 0) { + return a; + } else { + return r1(ls-1, ls+1+a); + } +} + +int rev(int ls) { + return r1(ls,0); +} + +int main() { + int ls = __VERIFIER_nondet_int(); + if ( ls >= 0) { + rev(ls); + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeeJonesBen-Amram-POPL2001-Ex2_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeeJonesBen-Amram-POPL2001-Ex2_true-termination.c new file mode 100644 index 000000000..3ce6decf2 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeeJonesBen-Amram-POPL2001-Ex2_true-termination.c @@ -0,0 +1,36 @@ +/* + * Program from Ex.2 of + * 2001POPL - Lee,Jones,Ben-Amram - The size-change principle for program termination + * where we abstracted lists by their size. + * + * Date: 12.12.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +extern int __VERIFIER_nondet_int(void); + +int f(int i, int x); + +int g(int a, int b, int c); + +int f(int i, int x) { + if (i==0) { + return x; + } else { + return g(i-1,x,i); + } +} + +int g(int a, int b, int c) { + return f(a,b+c); +} + +int main() { + int i = __VERIFIER_nondet_int(); + int x = __VERIFIER_nondet_int(); + if ( i >= 0 && x >= 0) { + f(i,x); + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeeJonesBen-Amram-POPL2001-Ex3_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeeJonesBen-Amram-POPL2001-Ex3_true-termination.c new file mode 100644 index 000000000..1289b6ca0 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeeJonesBen-Amram-POPL2001-Ex3_true-termination.c @@ -0,0 +1,31 @@ +/* + * Program from Ex.3 of + * 2001POPL - Lee,Jones,Ben-Amram - The size-change principle for program termination + * + * Date: 12.12.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +extern int __VERIFIER_nondet_int(void); + +int a(int m, int n) { + if (m <= 0) { + return n + 1; + } else { + if (n <= 0) { + return a(m - 1, 1); + } else { + return a(m - 1, a(m, n - 1)); + } + } +} + +int main() { + int m = __VERIFIER_nondet_int(); + int n = __VERIFIER_nondet_int(); + if ( m >= 0 && n >= 0) { + a(m,n); + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeeJonesBen-Amram-POPL2001-Ex4_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeeJonesBen-Amram-POPL2001-Ex4_true-termination.c new file mode 100644 index 000000000..50d8111eb --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeeJonesBen-Amram-POPL2001-Ex4_true-termination.c @@ -0,0 +1,32 @@ +/* + * Program from Ex.4 of + * 2001POPL - Lee,Jones,Ben-Amram - The size-change principle for program termination + * + * Date: 12.12.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +extern int __VERIFIER_nondet_int(void); + +int p(int m, int n, int r) { + if (r > 0) { + return p(m, r-1, n); + } else { + if (n > 0) { + return p(r, n-1, m); + } else { + return m; + } + } +} + +int main() { + int m = __VERIFIER_nondet_int(); + int n = __VERIFIER_nondet_int(); + int r = __VERIFIER_nondet_int(); + if ( m >= 0 && n >= 0 && r >= 0) { + p(m,n,r); + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeeJonesBen-Amram-POPL2001-Ex5_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeeJonesBen-Amram-POPL2001-Ex5_true-termination.c new file mode 100644 index 000000000..63f33cc98 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeeJonesBen-Amram-POPL2001-Ex5_true-termination.c @@ -0,0 +1,32 @@ +/* + * Program from Ex.5 of + * 2001POPL - Lee,Jones,Ben-Amram - The size-change principle for program termination + * where we abstracted lists by their size. + * + * Date: 12.12.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +extern int __VERIFIER_nondet_int(void); + +int f(int x, int y) { + if (y == 0) { + return x; + } else { + if (x == 0) { + return f(y, y-1); + } else { + return f(y, x-1); + } + } +} + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + if ( x >= 0 && y >= 0) { + f(x,y); + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeeJonesBen-Amram-POPL2001-Ex6_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeeJonesBen-Amram-POPL2001-Ex6_true-termination.c new file mode 100644 index 000000000..f84f1e401 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeeJonesBen-Amram-POPL2001-Ex6_true-termination.c @@ -0,0 +1,40 @@ +/* + * Program from Ex.6 of + * 2001POPL - Lee,Jones,Ben-Amram - The size-change principle for program termination + * where we abstracted lists by their size. + * + * Date: 12.12.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +extern int __VERIFIER_nondet_int(void); + +int f(int a, int b); + +int g(int c, int d); + +int f(int a, int b) { + if (b == 0) { + return g(a, 0); + } else { + return f(1+a, b-1); + } +} + +int g(int c, int d) { + if (c == 0) { + return d; + } else { + return g(c-1, 1+d); + } +} + +int main() { + int a = __VERIFIER_nondet_int(); + int b = __VERIFIER_nondet_int(); + if (a >= 0 && b >= 0) { + f(a, b); + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeikeHeizmann-TACAS2014-Ex9_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeikeHeizmann-TACAS2014-Ex9_true-termination.c new file mode 100644 index 000000000..b680fd2e4 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeikeHeizmann-TACAS2014-Ex9_true-termination.c @@ -0,0 +1,26 @@ +/* + * Program from Example 9 of + * 2014TACAS - Leike, Heizmann - Ranking Templates for Linear Loops + * + * Date: 2014-06-29 + * Author: Jan Leike + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int q = __VERIFIER_nondet_int(); + int p = __VERIFIER_nondet_int(); + while (q > 0 && p > 0) { + if (q < p) { + q = q - 1; + } else { + if (p < q) { + p = p - 1; + } else { + break; + } + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeikeHeizmann-WST2014-Ex9_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeikeHeizmann-WST2014-Ex9_true-termination.c new file mode 100644 index 000000000..e347131b5 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeikeHeizmann-WST2014-Ex9_true-termination.c @@ -0,0 +1,17 @@ +/* + * Program from Example 9 of + * 2014WST - Leike, Heizmann - Geometric Series as Nontermination Arguments for Linear Lasso Programs + * + * Date: 2014-06-29 + * Author: Jan Leike + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x = __VERIFIER_nondet_int(); + while (x > 0) { + x = x / 2; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/Masse-VMCAI2014-Fig1b_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/Masse-VMCAI2014-Fig1b_true-termination.c new file mode 100644 index 000000000..2f68583de --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/Masse-VMCAI2014-Fig1b_true-termination.c @@ -0,0 +1,21 @@ +/* + * Program from Fig.1b of + * 2014VMCAI - Massé - Policy Iteration-Based Conditional Termination and Ranking Functions + * + * Date: 2014 + * Author: Caterina Urban + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x = __VERIFIER_nondet_int(); + while (x <= 100) { + if (__VERIFIER_nondet_int()) { + x = -2*x + 2; + } else { + x = -3*x - 2; + } + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/PodelskiRybalchenko-LICS2004-Fig2_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/PodelskiRybalchenko-LICS2004-Fig2_true-termination.c new file mode 100644 index 000000000..fd1023bca --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/PodelskiRybalchenko-LICS2004-Fig2_true-termination.c @@ -0,0 +1,28 @@ +/* + * Program from + * Fig.2 of 2004LICS - Podelski, Rybalchenko - Transition Invariants + * and + * Fig.3 of 2011TACAS - Podelski,Rybalchenko - Transition Invariants and Transition Predicate Abstraction for Program Termination + * + * Date: 2014 + * Author: Caterina Urban, Matthias Heizmann + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + while (x > 0 && y > 0) { + int old_x = x; + int old_y = y; + if (__VERIFIER_nondet_int()) { + x = old_x - 1; + y = old_x; + } else { + x = old_y - 2; + y = old_x + 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/PodelskiRybalchenko-TACAS2011-Fig4_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/PodelskiRybalchenko-TACAS2011-Fig4_true-termination.c new file mode 100644 index 000000000..169a295ea --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/PodelskiRybalchenko-TACAS2011-Fig4_true-termination.c @@ -0,0 +1,23 @@ +/* + * Program from Fig.4 of + * 2011TACAS - Podelski,Rybalchenko - Transition Invariants and Transition Predicate Abstraction for Program Termination + * + * Date: 2014 + * Author: Caterina Urban + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + while (x > 0 && y > 0) { + if (__VERIFIER_nondet_int()) { + x = x - 1; + y = __VERIFIER_nondet_int(); + } else { + y = y - 1; + } + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/PodelskiRybalchenko-VMCAI2004-Ex1_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/PodelskiRybalchenko-VMCAI2004-Ex1_true-termination.c new file mode 100644 index 000000000..a5ef3b749 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/PodelskiRybalchenko-VMCAI2004-Ex1_true-termination.c @@ -0,0 +1,32 @@ +/* + * Program from Ex.1 of + * 2004VMCAI - Podelski,Rybalchenko - A complete method for the synthesis of linear ranking functions + * + * Date: 2014 + * Author: Caterina Urban, Matthias Heizmann + */ + +extern int __VERIFIER_nondet_int(void); + +/** + * Returns the absolut value of i. Assumes that can be no overflow. + */ +int absMathInteger(int i) { + if (i >= 0) { + return i; + } else { + return -i; + } +} + +int main() { + int i = __VERIFIER_nondet_int(); + int j = __VERIFIER_nondet_int(); + while (i - j >= 1) { + int nondetNat = absMathInteger(__VERIFIER_nondet_int()); + i = i - nondetNat; + int nondetPos = absMathInteger(__VERIFIER_nondet_int()) + 1; + j = j + nondetPos; + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/README.txt b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/README.txt new file mode 100644 index 000000000..4a60a9743 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/README.txt @@ -0,0 +1,7 @@ +C programs for termination analysis, contributed by +Matthias Heizmann, +Jan Leike, +Amir Ben-Amram, +Thomas Ströder, and +Caterina Urban. + diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/TelAviv-Amir-Minimum_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/TelAviv-Amir-Minimum_true-termination.c new file mode 100644 index 000000000..bc87db4a0 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/TelAviv-Amir-Minimum_true-termination.c @@ -0,0 +1,38 @@ +/* + * Terminating program that has no linear lexicographic ranking function. + * The program chooses nondeterministically the variable x or y and assigns to + * it the result of minimum(x,y)-1 + * The term minimum(x,y) is a ranking function for this program. + * + * Amir Ben-Amram (TelAviv) showed me this program when we met in Perpignan at + * SAS 2010. + * + * Date: 1.12.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + while (x > 0 && y > 0) { + if (__VERIFIER_nondet_int()) { + if (x 0) { + x++; + } else { + x--; + } + if (x > 0) { + x++; + } else { + x--; + } + if (x > 0) { + x++; + } else { + x--; + } + if (x > 0) { + x++; + } else { + x--; + } + if (x > 0) { + x++; + } else { + x--; + } + if (x > 0) { + x++; + } else { + x--; + } + if (x > 0) { + x++; + } else { + x--; + } + if (x > 0) { + x++; + } else { + x--; + } + while (y<100 && z<100) { + y = y+x; + z = z-x; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/UrbanMine-ESOP2014-Fig3_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/UrbanMine-ESOP2014-Fig3_true-termination.c new file mode 100644 index 000000000..930c2e15b --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/UrbanMine-ESOP2014-Fig3_true-termination.c @@ -0,0 +1,31 @@ +/* + * Program from Fig.3 of + * 2014ESOP - Urban,Miné - An Abstract Domain to Infer Ordinal-Valued Ranking Functions + * + * Date: 2014 + * Author: Caterina Urban + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + while (x != 0 && y > 0) { + if (x > 0) { + if (__VERIFIER_nondet_int()) { + x = x - 1; + y = __VERIFIER_nondet_int(); + } else { + y = y - 1; + } + } else { + if (__VERIFIER_nondet_int()) { + x = x + 1; + } else { + y = y - 1; + x = __VERIFIER_nondet_int(); + } + } + } +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/aaron2_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/aaron2_true-termination.c new file mode 100644 index 000000000..0a198b8a5 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/aaron2_true-termination.c @@ -0,0 +1,24 @@ +/* + * Program used in the experimental evaluation of the following papers. + * 2008ESOP - Chawdhary,Cook,Gulwani,Sagiv,Yang - Ranking Abstractions + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int tx = __VERIFIER_nondet_int(); + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + while (x >= y && tx >= 0) { + if (__VERIFIER_nondet_int()) { + x = x - 1 - tx; + } else { + y = y + 1 + tx; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/aaron3_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/aaron3_true-termination.c new file mode 100644 index 000000000..66fef62a1 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/aaron3_true-termination.c @@ -0,0 +1,27 @@ +/* + * Program used in the experimental evaluation of the following papers. + * 2008ESOP - Chawdhary,Cook,Gulwani,Sagiv,Yang - Ranking Abstractions + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + int z = __VERIFIER_nondet_int(); + int tx = __VERIFIER_nondet_int(); + while (x >= y && x <= tx + z) { + if (__VERIFIER_nondet_int()) { + z = z - 1; + tx = x; + x = __VERIFIER_nondet_int(); + } else { + y = y + 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/aviad_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/aviad_true-termination.c new file mode 100644 index 000000000..0df259634 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/aviad_true-termination.c @@ -0,0 +1,25 @@ +/* An example using integer division, given to me by Aviad Pineles + * Date: 15.12.2013 + * Author: Amir Ben-Amram, amirben@cs.mta.ac.il + * + */ +extern int __VERIFIER_nondet_int(void); + + + int f(int a) { + int tmp, count = 0; + while(a > 1) { + tmp = a % 2; + if(tmp == 0) a = a / 2; + else a = a - 1; + count++; + } + return count; + } + +int main() { + int x = __VERIFIER_nondet_int(); + int count = f(x); + return count; + } + diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/gcd1_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/gcd1_true-termination.c new file mode 100644 index 000000000..5cea03a4b --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/gcd1_true-termination.c @@ -0,0 +1,39 @@ +/* + * gcd program (terminating) based on + * (Dershowitz, Lindenstrauss, Sagiv and Serebrenik, 2001) + * + * Date: 15.12.2013 + * Author: Amir Ben-Amram, amirben@cs.mta.ac.il + * + */ +extern int __VERIFIER_nondet_int(void); + +int gcd(int x, int y) +{ + int r; + + if (x<0) x = -x; + if (y<0) y = -y; + while (y>0) { + /* the next statements compute r = mod(x,y) */ + r = x; + while (r>=y) + r = r-y; + /* end of inlined mod */ + x = y; + y = r; + } + return x; +} + +int main() +{ + int x,y; + + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + + gcd(x,y); +} + + diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/genady_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/genady_true-termination.c new file mode 100644 index 000000000..4678d3432 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/genady_true-termination.c @@ -0,0 +1,14 @@ +/* An example that looks simple, given to me by Genady Trifon + * Date: 15.12.2013 + * Author: Amir Ben-Amram, amirben@cs.mta.ac.il + * + */ + + +int main() { + int j = 1; + for (int i = 10000; i-j >= 1; i--) { + j++; + } +} + diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/joey_false-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/joey_false-termination.c new file mode 100644 index 000000000..0598ecaac --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/joey_false-termination.c @@ -0,0 +1,24 @@ +/* A non-terminating example, given to me by Joey Feldberg + * Date: 15.12.2013 + * Author: Amir Ben-Amram, amirben@cs.mta.ac.il + * + */ + +extern int __VERIFIER_nondet_int(void); + +int rec(int x) { + if (x <= 0) { + return x; + } else if (x%2 == 0) { + return rec(x/2); + } else { + int store = rec(++x); + return store + rec(--x); + } +} + +int main() { + int x = __VERIFIER_nondet_int(); + int y; + y = rec(x); +} diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/min_rf_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/min_rf_true-termination.c new file mode 100644 index 000000000..86e228076 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/min_rf_true-termination.c @@ -0,0 +1,25 @@ +/* + * Terminating program which has a r.f. based on minimum + * + * Date: 15.12.2013 + * Author: Amir Ben-Amram, amirben@cs.mta.ac.il + * + */ + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x,y; + int z; + + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + + while (y > 0 && x > 0) { + if (x>y) z = y; + else z = x; + if (__VERIFIER_nondet_int()) { y = y+x; x = z-1; z = y+z; } + else { x = y+x; y = z-1; z = x+z; } + } +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/svcomp_cstrcmp_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/svcomp_cstrcmp_true-termination.c new file mode 100644 index 000000000..384838c2e --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/svcomp_cstrcmp_true-termination.c @@ -0,0 +1,45 @@ +/* + * Date: 17.12.2013 + * Author: Thomas Ströder + */ +#include + +extern int __VERIFIER_nondet_int(void); + +/* Returns some null-terminated string. */ +char* __VERIFIER_nondet_String(void) { + int length = __VERIFIER_nondet_int(); + if (length < 1) { + length = 1; + } + char* nondetString = (char*) malloc(length * sizeof(char)); + nondetString[length-1] = '\0'; + return nondetString; +} + + + + + +int (cstrcmp)(const char *s1, const char *s2) + { + unsigned char uc1, uc2; + /* Move s1 and s2 to the first differing characters + in each string, or the ends of the strings if they + are identical. */ + while (*s1 != '\0' && *s1 == *s2) { + s1++; + s2++; + } + /* Compare the characters as unsigned char and + return the difference. */ + uc1 = (*(unsigned char *) s1); + uc2 = (*(unsigned char *) s2); + return ((uc1 < uc2) ? -1 : (uc1 > uc2)); + } + +int main() { + return cstrcmp(__VERIFIER_nondet_String(),__VERIFIER_nondet_String()); +} + + diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/svcomp_cstrcspn_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/svcomp_cstrcspn_true-termination.c new file mode 100644 index 000000000..8bcc6ea4f --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/svcomp_cstrcspn_true-termination.c @@ -0,0 +1,43 @@ +/* + * Date: 17.12.2013 + * Author: Thomas Ströder + */ +#include + +extern int __VERIFIER_nondet_int(void); + +/* Returns some null-terminated string. */ +char* __VERIFIER_nondet_String(void) { + int length = __VERIFIER_nondet_int(); + if (length < 1) { + length = 1; + } + char* nondetString = (char*) malloc(length * sizeof(char)); + nondetString[length-1] = '\0'; + return nondetString; +} + + + + +int (cstrcspn)(const char *s1, const char *s2) + { + const char *sc1; + const char *s; + int c; + for (sc1 = s1; *sc1 != '\0'; sc1++) { + s = s2; + c = *sc1; + while (*s != '\0' && *s != (char)c) + s++; + if (*s == c) + return (sc1 - s1); + } + return sc1 - s1; /* terminating nulls match */ + } + +int main() { + return cstrcspn(__VERIFIER_nondet_String(),__VERIFIER_nondet_String()); +} + + diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/svcomp_cstrlen_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/svcomp_cstrlen_true-termination.c new file mode 100644 index 000000000..d661ac3e3 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/svcomp_cstrlen_true-termination.c @@ -0,0 +1,37 @@ +/* + * Date: 17.12.2013 + * Author: Thomas Ströder + */ +#include + +extern int __VERIFIER_nondet_int(void); + +/* Returns some null-terminated string. */ +char* __VERIFIER_nondet_String(void) { + int length = __VERIFIER_nondet_int(); + if (length < 1) { + length = 1; + } + char* nondetString = (char*) malloc(length * sizeof(char)); + nondetString[length-1] = '\0'; + return nondetString; +} + + + + + +int (cstrlen)(const char *s) + { + const char *p = s; + /* Loop over the data in s. */ + while (*p != '\0') + p++; + return (int)(p - s); + } + +int main() { + return cstrlen(__VERIFIER_nondet_String()); +} + + diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/svcomp_cstrncmp_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/svcomp_cstrncmp_true-termination.c new file mode 100644 index 000000000..12d6aac47 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/svcomp_cstrncmp_true-termination.c @@ -0,0 +1,48 @@ +/* + * Date: 17.12.2013 + * Author: Thomas Ströder + */ +#include + +extern int __VERIFIER_nondet_int(void); + +/* Returns some null-terminated string. */ +char* __VERIFIER_nondet_String(void) { + int length = __VERIFIER_nondet_int(); + if (length < 1) { + length = 1; + } + char* nondetString = (char*) malloc(length * sizeof(char)); + nondetString[length-1] = '\0'; + return nondetString; +} + + + + + +int (cstrncmp)(const char *s1, const char *s2, int n) + { + unsigned char uc1, uc2; + /* Nothing to compare? Return zero. */ + if (n == 0) + return 0; + /* Loop, comparing bytes. */ + while (n-- > 0 && *s1 == *s2) { + /* If we've run out of bytes or hit a null, return zero + since we already know *s1 == *s2. */ + if (n == 0 || *s1 == '\0') + return 0; + s1++; + s2++; + } + uc1 = (*(unsigned char *) s1); + uc2 = (*(unsigned char *) s2); + return ((uc1 < uc2) ? -1 : (uc1 > uc2)); + } + +int main() { + return cstrncmp(__VERIFIER_nondet_String(),__VERIFIER_nondet_String(),__VERIFIER_nondet_int()); +} + + diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/svcomp_cstrpbrk_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/svcomp_cstrpbrk_true-termination.c new file mode 100644 index 000000000..3f97d06d5 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/svcomp_cstrpbrk_true-termination.c @@ -0,0 +1,45 @@ +/* + * Date: 17.12.2013 + * Author: Thomas Ströder + */ +#include + +extern int __VERIFIER_nondet_int(void); + +/* Returns some null-terminated string. */ +char* __VERIFIER_nondet_String(void) { + int length = __VERIFIER_nondet_int(); + if (length < 1) { + length = 1; + } + char* nondetString = (char*) malloc(length * sizeof(char)); + nondetString[length-1] = '\0'; + return nondetString; +} + + + + + +char *(cstrpbrk)(const char *s1, const char *s2) + { + const char *sc1; + const char *s; + int c; + for (sc1 = s1; *sc1 != '\0'; sc1++) { + s = s2; + c = *sc1; + while (*s != '\0' && *s != (char)c) + s++; + if (*s != c) + return (char *)sc1; + } + return 0; /* terminating nulls match */ + } + +int main() { + cstrpbrk(__VERIFIER_nondet_String(),__VERIFIER_nondet_String()); + return 0; +} + + diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/svcomp_cstrspn_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/svcomp_cstrspn_true-termination.c new file mode 100644 index 000000000..0a0e5cce7 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/svcomp_cstrspn_true-termination.c @@ -0,0 +1,44 @@ +/* + * Date: 17.12.2013 + * Author: Thomas Ströder + */ +#include + +extern int __VERIFIER_nondet_int(void); + +/* Returns some null-terminated string. */ +char* __VERIFIER_nondet_String(void) { + int length = __VERIFIER_nondet_int(); + if (length < 1) { + length = 1; + } + char* nondetString = (char*) malloc(length * sizeof(char)); + nondetString[length-1] = '\0'; + return nondetString; +} + + + + + +int (cstrspn)(const char *s1, const char *s2) + { + const char *sc1; + const char *s; + int c; + for (sc1 = s1; *sc1 != '\0'; sc1++) { + s = s2; + c = *sc1; + while (*s != '\0' && *s != (char)c) + s++; + if (*s != c) + return (sc1 - s1); + } + return sc1 - s1; /* terminating nulls don't match */ + } + +int main() { + return cstrspn(__VERIFIER_nondet_String(),__VERIFIER_nondet_String()); +} + + diff --git a/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/svcomp_strchr_true-termination.c b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/svcomp_strchr_true-termination.c new file mode 100644 index 000000000..e093c5e44 --- /dev/null +++ b/data/benchmarks/tpdb/C/SV-COMP_Termination_Category/svcomp_strchr_true-termination.c @@ -0,0 +1,39 @@ +/* + * Date: 17.12.2013 + * Author: Thomas Ströder + */ +#include + +extern int __VERIFIER_nondet_int(void); + +/* Returns some null-terminated string. */ +char* __VERIFIER_nondet_String(void) { + int length = __VERIFIER_nondet_int(); + if (length < 1) { + length = 1; + } + char* nondetString = (char*) malloc(length * sizeof(char)); + nondetString[length-1] = '\0'; + return nondetString; +} + + + + + +char *(cstrchr)(const char *s, int c) + { + /* Scan s for the character. When this loop is finished, + s will either point to the end of the string or the + character we were looking for. */ + while (*s != '\0' && *s != (char)c) + s++; + return ( (*s == c) ? (char *) s : 0 ); + } + +int main() { + cstrchr(__VERIFIER_nondet_String(),__VERIFIER_nondet_int()); + return 0; +} + + diff --git a/data/benchmarks/tpdb/C/Ton_Chanh_15/Ackermann_false-termination.c b/data/benchmarks/tpdb/C/Ton_Chanh_15/Ackermann_false-termination.c new file mode 100644 index 000000000..f325645d7 --- /dev/null +++ b/data/benchmarks/tpdb/C/Ton_Chanh_15/Ackermann_false-termination.c @@ -0,0 +1,25 @@ +/* + * Date: 06/07/2015 + * Created by: Ton Chanh Le (chanhle@comp.nus.edu.sg) + * + * The program does not terminate when x >= 0 & y < 0 + */ + +extern int __VERIFIER_nondet_int(); + +int Ack(int m, int n) +{ + if (m == 0) return n+1; + else if (n == 0) return Ack(m-1, 1); + else return Ack(m-1, Ack(m, n-1)); +} + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + if (x < 0) { + return 0; + } + int r = Ack(x, y); + return r; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/Ton_Chanh_15/Ackermann_true-termination.c b/data/benchmarks/tpdb/C/Ton_Chanh_15/Ackermann_true-termination.c new file mode 100644 index 000000000..f5083b0c5 --- /dev/null +++ b/data/benchmarks/tpdb/C/Ton_Chanh_15/Ackermann_true-termination.c @@ -0,0 +1,23 @@ +/* + * Date: 06/07/2015 + * Created by: Ton Chanh Le (chanhle@comp.nus.edu.sg) + */ + +extern int __VERIFIER_nondet_int(); + +int Ack(int m, int n) +{ + if (m == 0) return n+1; + else if (n == 0) return Ack(m-1, 1); + else return Ack(m-1, Ack(m, n-1)); +} + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + if (x < 0 || y < 0) { + return 0; + } + int r = Ack(x, y); + return r; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/Ton_Chanh_15/Binary_Search_true-termination.c b/data/benchmarks/tpdb/C/Ton_Chanh_15/Binary_Search_true-termination.c new file mode 100644 index 000000000..d19fc1db7 --- /dev/null +++ b/data/benchmarks/tpdb/C/Ton_Chanh_15/Binary_Search_true-termination.c @@ -0,0 +1,22 @@ +/* + * Date: 07/07/2015 + * Created by: Ton Chanh Le (chanhle@comp.nus.edu.sg) + */ + +extern int __VERIFIER_nondet_int(); + +int bsearch(int i, int j) +{ + if (i>=j) return i; + int mid = (i+j)/2; + if (__VERIFIER_nondet_int()) + return bsearch(i,mid); + return bsearch(mid+1,j); +} + + +int main() { + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + bsearch(x, y); +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/Ton_Chanh_15/McCarthy91_Recursion_true-termination.c b/data/benchmarks/tpdb/C/Ton_Chanh_15/McCarthy91_Recursion_true-termination.c new file mode 100644 index 000000000..43072c952 --- /dev/null +++ b/data/benchmarks/tpdb/C/Ton_Chanh_15/McCarthy91_Recursion_true-termination.c @@ -0,0 +1,17 @@ +/* + * Date: 07/07/2015 + * Created by: Ton Chanh Le (chanhle@comp.nus.edu.sg) + */ + +extern int __VERIFIER_nondet_int(); + +int mc91(int n) +{ + if (n > 100) return n-10; + else return mc91(mc91(n+11)); +} + +int main() { + int x = __VERIFIER_nondet_int(); + mc91(x); +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/Ton_Chanh_15/MutualRecursion_1a_false-termination.c b/data/benchmarks/tpdb/C/Ton_Chanh_15/MutualRecursion_1a_false-termination.c new file mode 100644 index 000000000..ce91558a0 --- /dev/null +++ b/data/benchmarks/tpdb/C/Ton_Chanh_15/MutualRecursion_1a_false-termination.c @@ -0,0 +1,24 @@ +/* + * Date: 07/07/2015 + * Created by: Ton Chanh Le (chanhle@comp.nus.edu.sg) + */ + +extern int __VERIFIER_nondet_int(); + +int f(int x) +{ + if (x <= 0) return 0; + else return g(x) + g(x + 1); +} + +int g(int x) +{ + if (x <= 0) return 0; + else return f(x - 1) + f(x - 2); +} + + +int main() { + int x = __VERIFIER_nondet_int(); + g(x); +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/Ton_Chanh_15/MutualRecursion_1b_true-termination.c b/data/benchmarks/tpdb/C/Ton_Chanh_15/MutualRecursion_1b_true-termination.c new file mode 100644 index 000000000..83cbff2e0 --- /dev/null +++ b/data/benchmarks/tpdb/C/Ton_Chanh_15/MutualRecursion_1b_true-termination.c @@ -0,0 +1,24 @@ +/* + * Date: 07/07/2015 + * Created by: Ton Chanh Le (chanhle@comp.nus.edu.sg) + */ + +extern int __VERIFIER_nondet_int(); + +int f(int x) +{ + if (x <= 0) return 0; + else return g(x) + g(x + 1); +} + +int g(int x) +{ + if (x <= 0) return 0; + else return f(x - 2) + f(x - 3); +} + + +int main() { + int x = __VERIFIER_nondet_int(); + g(x); +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/Ton_Chanh_15/NestedRecursion_1a_false-termination.c b/data/benchmarks/tpdb/C/Ton_Chanh_15/NestedRecursion_1a_false-termination.c new file mode 100644 index 000000000..23f913a2b --- /dev/null +++ b/data/benchmarks/tpdb/C/Ton_Chanh_15/NestedRecursion_1a_false-termination.c @@ -0,0 +1,26 @@ +/* + * Date: 06/07/2015 + * Created by: Ton Chanh Le (chanhle@comp.nus.edu.sg) + * Adapted from AProVE_numeric/ex3.c + */ + +extern int __VERIFIER_nondet_int(); +int rec1(int i); +int rec2(int j); + +int rec1(int i) { + if(i <= 0) + return 0; + return rec1(rec1(rec1(i-2) - 1)) + 1; +} + +int rec2(int j) { + if(j <= 0) + return 0; + return rec2(rec1(j+1)) - 1; +} + +int main() { + int x = __VERIFIER_nondet_int(); + rec2(x); +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/Ton_Chanh_15/NestedRecursion_1b_true-termination.c b/data/benchmarks/tpdb/C/Ton_Chanh_15/NestedRecursion_1b_true-termination.c new file mode 100644 index 000000000..109b3f3de --- /dev/null +++ b/data/benchmarks/tpdb/C/Ton_Chanh_15/NestedRecursion_1b_true-termination.c @@ -0,0 +1,26 @@ +/* + * Date: 06/07/2015 + * Created by: Ton Chanh Le (chanhle@comp.nus.edu.sg) + * Adapted from AProVE_numeric/ex3.c + */ + +extern int __VERIFIER_nondet_int(); +int rec1(int i); +int rec2(int j); + +int rec1(int i) { + if(i <= 0) + return 0; + return rec1(rec1(rec1(i-2) - 1)) + 1; +} + +int rec2(int j) { + if(j <= 0) + return 0; + return rec2(rec1(j-1)) - 1; +} + +int main() { + int x = __VERIFIER_nondet_int(); + rec2(x); +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/Ton_Chanh_15/NestedRecursion_1c_true-termination.c b/data/benchmarks/tpdb/C/Ton_Chanh_15/NestedRecursion_1c_true-termination.c new file mode 100644 index 000000000..da1f22863 --- /dev/null +++ b/data/benchmarks/tpdb/C/Ton_Chanh_15/NestedRecursion_1c_true-termination.c @@ -0,0 +1,26 @@ +/* + * Date: 06/07/2015 + * Created by: Ton Chanh Le (chanhle@comp.nus.edu.sg) + * Adapted from AProVE_numeric/ex3.c + */ + +extern int __VERIFIER_nondet_int(); +int rec1(int i); +int rec2(int j); + +int rec1(int i) { + if(i <= 0) + return 0; + return rec1(rec1(rec1(i-2) - 1)) + 1; +} + +int rec2(int j) { + if(j <= 0) + return 0; + return rec1(rec2(j-1)) - 1; +} + +int main() { + int x = __VERIFIER_nondet_int(); + rec2(x); +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/Ton_Chanh_15/NestedRecursion_1d_true-termination.c b/data/benchmarks/tpdb/C/Ton_Chanh_15/NestedRecursion_1d_true-termination.c new file mode 100644 index 000000000..3540c1fb3 --- /dev/null +++ b/data/benchmarks/tpdb/C/Ton_Chanh_15/NestedRecursion_1d_true-termination.c @@ -0,0 +1,26 @@ +/* + * Date: 06/07/2015 + * Created by: Ton Chanh Le (chanhle@comp.nus.edu.sg) + * Adapted from AProVE_numeric/ex3.c + */ + +extern int __VERIFIER_nondet_int(); +int rec1(int i); +int rec2(int j); + +int rec1(int i) { + if(i <= 0) + return 0; + return rec1(rec1(rec1(i-2) - 1)) + 1; +} + +int rec2(int j) { + if(j <= 0) + return 0; + return rec2(rec1(j)-1) - 1; +} + +int main() { + int x = __VERIFIER_nondet_int(); + rec2(x); +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/Ton_Chanh_15/NestedRecursion_2a_false-termination.c b/data/benchmarks/tpdb/C/Ton_Chanh_15/NestedRecursion_2a_false-termination.c new file mode 100644 index 000000000..dfd71fbdf --- /dev/null +++ b/data/benchmarks/tpdb/C/Ton_Chanh_15/NestedRecursion_2a_false-termination.c @@ -0,0 +1,21 @@ +/* + * Date: 07/07/2015 + * Created by: Ton Chanh Le (chanhle@comp.nus.edu.sg) + * Adapted from "Inductive Invariants for Nested Recursion" + * by Sava Krstic and John Matthews + */ + +extern int __VERIFIER_nondet_int(); + +int g(int x) +{ + if (x == 0) + return 0; + else + return g(g(x - 1)); +} + +int main() { + int x = __VERIFIER_nondet_int(); + g(x); +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/Ton_Chanh_15/NestedRecursion_2b_false-termination.c b/data/benchmarks/tpdb/C/Ton_Chanh_15/NestedRecursion_2b_false-termination.c new file mode 100644 index 000000000..cf736faf9 --- /dev/null +++ b/data/benchmarks/tpdb/C/Ton_Chanh_15/NestedRecursion_2b_false-termination.c @@ -0,0 +1,22 @@ +/* + * Date: 07/07/2015 + * Created by: Ton Chanh Le (chanhle@comp.nus.edu.sg) + * Adapted from "Inductive Invariants for Nested Recursion" + * by Sava Krstic and John Matthews + */ + +extern int __VERIFIER_nondet_int(); + +int g(int x) +{ + if (x == 0) + return 1; + else + return g(g(x - 1) + 1); +} + +int main() { + int x = __VERIFIER_nondet_int(); + if (x < 0) return 0; + g(x); +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/Ton_Chanh_15/NestedRecursion_2c_true-termination.c b/data/benchmarks/tpdb/C/Ton_Chanh_15/NestedRecursion_2c_true-termination.c new file mode 100644 index 000000000..3b249ac5b --- /dev/null +++ b/data/benchmarks/tpdb/C/Ton_Chanh_15/NestedRecursion_2c_true-termination.c @@ -0,0 +1,22 @@ +/* + * Date: 07/07/2015 + * Created by: Ton Chanh Le (chanhle@comp.nus.edu.sg) + * Adapted from "Inductive Invariants for Nested Recursion" + * by Sava Krstic and John Matthews + */ + +extern int __VERIFIER_nondet_int(); + +int g(int x) +{ + if (x == 0) + return 1; + else + return g(g(x - 1) - 1); +} + +int main() { + int x = __VERIFIER_nondet_int(); + if (x < 0) return 0; + g(x); +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/Ultimate/4BitCounterPointer_true-termination.c b/data/benchmarks/tpdb/C/Ultimate/4BitCounterPointer_true-termination.c new file mode 100644 index 000000000..ddd268df6 --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/4BitCounterPointer_true-termination.c @@ -0,0 +1,35 @@ +/* + * Date: 2014-06-22 + * Author: heizmann@informatik.uni-freiburg.de + */ +#include + +int main() { + int* x0 = alloca(sizeof(int)); + int* x1 = alloca(sizeof(int)); + int* x2 = alloca(sizeof(int)); + int* x3 = alloca(sizeof(int)); + *x0 = 0; + *x1 = 0; + *x2 = 0; + *x3 = 0; + while ( *x3 == 0 ) { + if (*x0 == 0) { + *x0 = 1; + } else { + *x0 = 0; + if (*x1 == 0) { + *x1 = 1; + } else { + *x1 = 0; + if (*x2 == 0) { + *x2 = 1; + } else { + *x2 = 0; + *x3 = 1; + } + } + } + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/Ultimate/Arrays01-EquivalentConstantIndices_true-termination.c b/data/benchmarks/tpdb/C/Ultimate/Arrays01-EquivalentConstantIndices_true-termination.c new file mode 100644 index 000000000..bd585d042 --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/Arrays01-EquivalentConstantIndices_true-termination.c @@ -0,0 +1,16 @@ +/* + * Date: 2014-06-01 + * Author: heizmann@informatik.uni-freiburg.de + * + * Ranking function: f(a[3], b[1+2], a[2+1]) = a[3] + * + */ +extern int __VERIFIER_nondet_int(void); + +int main() { + int a[1048]; + while (a[1+2] >= 0) { + a[3] = a[2+1] - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/Ultimate/Arrays02-EquivalentConstantIndices_false-termination.c b/data/benchmarks/tpdb/C/Ultimate/Arrays02-EquivalentConstantIndices_false-termination.c new file mode 100644 index 000000000..7fc1ae691 --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/Arrays02-EquivalentConstantIndices_false-termination.c @@ -0,0 +1,15 @@ +/* + * Date: 2014-06-01 + * Author: heizmann@informatik.uni-freiburg.de + * + */ +extern int __VERIFIER_nondet_int(void); + +int main() { + int a[1048]; + while (a[2] >= 0) { + a[2] = a[2] - 1; + a[1+1] = __VERIFIER_nondet_int(); + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/Ultimate/Arrays03-ValueRestictsIndex_true-termination.c b/data/benchmarks/tpdb/C/Ultimate/Arrays03-ValueRestictsIndex_true-termination.c new file mode 100644 index 000000000..b3497e24d --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/Arrays03-ValueRestictsIndex_true-termination.c @@ -0,0 +1,23 @@ +/* + * Date: 2014-06-10 + * Author: heizmann@informatik.uni-freiburg.de + * + * Since a[0] != a[k], k cannot be 0 + * + */ + +extern int __VERIFIER_nondet_int(void); + +int main() { + int k = __VERIFIER_nondet_int(); + int a[1048]; + if (k >= 0 && k < 1048) { + if (a[0] == 23 && a[k] == 42) { + int x = __VERIFIER_nondet_int(); + while(x >=0) { + x = x - k; + } + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/Ultimate/Bangalore_true-termination.c b/data/benchmarks/tpdb/C/Ultimate/Bangalore_true-termination.c new file mode 100644 index 000000000..56e111e2f --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/Bangalore_true-termination.c @@ -0,0 +1,23 @@ +/* + * Date: 2011-12-11 + * Author: heizmann@informatik.uni-freiburg.de + * + * Ranking function: f(x, y) = x + * provided with the supporting invariant y >= 1. + */ + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + if (y < 1) { + return 0; + } + while (x >= 0) { + x = x - y; + } + return 0; +} + diff --git a/data/benchmarks/tpdb/C/Ultimate/Cairo_true-termination.c b/data/benchmarks/tpdb/C/Ultimate/Cairo_true-termination.c new file mode 100644 index 000000000..66ee9c32c --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/Cairo_true-termination.c @@ -0,0 +1,24 @@ +/* + * Ranking function f(x) = x + * with supporting invariant x >= 0 + * Makes use of disjunctions in the loop. + * Terminates only over the integers not over rationals. + * + * Date: 2012-04-06 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x = __VERIFIER_nondet_int(); + if (x <= 0) { + return 0; + } + while (x != 0) { + x = x - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/Ultimate/Collatz_unknown-termination.c b/data/benchmarks/tpdb/C/Ultimate/Collatz_unknown-termination.c new file mode 100644 index 000000000..8a7a48001 --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/Collatz_unknown-termination.c @@ -0,0 +1,21 @@ +/* + * Date: 2012-02-12 + * Author: leike@informatik.uni-freiburg.de + * + * Termination unknown as of this date. + */ + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int y = __VERIFIER_nondet_int(); + while (y > 1) { + if (y % 2 == 0) { + y = y / 2; + } else { + y = 3*y + 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/Ultimate/Division_false-termination.c b/data/benchmarks/tpdb/C/Ultimate/Division_false-termination.c new file mode 100644 index 000000000..339b763d5 --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/Division_false-termination.c @@ -0,0 +1,18 @@ +/* + * Date: 2012-02-12 + * Author: leike@informatik.uni-freiburg.de + * + * Does not terminate for 0 <= x <= 10 + * due to rounding in integer division. + */ + +extern int __VERIFIER_nondet_int(); + +int main() +{ + int y = __VERIFIER_nondet_int(); + while (y >= 0 && y <= 10) { + y = (2*y + 1) / 2; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/Ultimate/Gothenburg_true-termination.c b/data/benchmarks/tpdb/C/Ultimate/Gothenburg_true-termination.c new file mode 100644 index 000000000..e9e4757a9 --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/Gothenburg_true-termination.c @@ -0,0 +1,26 @@ +/* + * Date: 2012-02-12 + * Author: leike@informatik.uni-freiburg.de + * + * Ranking function: f(x, y, a, b) = x + y; + * needs the loop invariant a = b. + * (More diffcult version of Stockholm.) + */ + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int a = __VERIFIER_nondet_int(); + int b = __VERIFIER_nondet_int(); + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + if (a != b) { + return 0; + } + while (x >= 0 || y >= 0) { + x = x + a - b - 1; + y = y + b - a - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/Ultimate/LICENSE.txt b/data/benchmarks/tpdb/C/Ultimate/LICENSE.txt new file mode 100644 index 000000000..7f941dd2a --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/LICENSE.txt @@ -0,0 +1,23 @@ +Copyright (c) 2013, University of Freiburg +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/Ultimate/LexIndexValue-Array_true-termination.c b/data/benchmarks/tpdb/C/Ultimate/LexIndexValue-Array_true-termination.c new file mode 100644 index 000000000..2a088ca31 --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/LexIndexValue-Array_true-termination.c @@ -0,0 +1,23 @@ +/* + * Date: 2012-06-03 + * Author: heizmann@informatik.uni-freiburg.de + * + * 2-lex ranking function: f(k, a[k], a[0], a[1048]) = (k, a[k]) + * + */ +#include + +extern int __VERIFIER_nondet_int(void); + +int main() { + int a[1048]; + int k = 0; + while (a[k] >= 0 && k < 1048) { + if (__VERIFIER_nondet_int()) { + k++; + } else { + a[k]--; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/Ultimate/LexIndexValue-Pointer_true-termination.c b/data/benchmarks/tpdb/C/Ultimate/LexIndexValue-Pointer_true-termination.c new file mode 100644 index 000000000..75cb5a767 --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/LexIndexValue-Pointer_true-termination.c @@ -0,0 +1,23 @@ +/* + * Date: 2012-06-03 + * Author: heizmann@informatik.uni-freiburg.de + * + * 2-lex ranking function: f(p, q, *q) = (q, *q) + * + */ +#include + +extern int __VERIFIER_nondet_int(void); + +int main() { + int *p = malloc(1048 * sizeof(int)); + int *q = p; + while (*q >= 0 && q < p + 1048) { + if (__VERIFIER_nondet_int()) { + q++; + } else { + (*q)--; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/Ultimate/Lobnya-Boolean-Reordered_true-termination.c b/data/benchmarks/tpdb/C/Ultimate/Lobnya-Boolean-Reordered_true-termination.c new file mode 100644 index 000000000..8b15bc3fa --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/Lobnya-Boolean-Reordered_true-termination.c @@ -0,0 +1,24 @@ +/* + * Date: 2013-07-10 + * Author: heizmann@informatik.uni-freiburg.de + * + * Ranking function: f(x) = x + * + */ + +extern int __VERIFIER_nondet_int(); + +int main () +{ + int x = __VERIFIER_nondet_int(); + int b = __VERIFIER_nondet_int(); + while (1) { + if (!b) { + break; + } + b = __VERIFIER_nondet_int(); + x = x - 1; + b = (x >= 0); + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/Ultimate/Madrid_false-termination.c b/data/benchmarks/tpdb/C/Ultimate/Madrid_false-termination.c new file mode 100644 index 000000000..da1fac096 --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/Madrid_false-termination.c @@ -0,0 +1,14 @@ +/* + * Date: 2013-05-02 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +int main() +{ + int x = 7; + while (1) { + x = 2; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/Ultimate/Mysore_true-termination.c b/data/benchmarks/tpdb/C/Ultimate/Mysore_true-termination.c new file mode 100644 index 000000000..cad27168a --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/Mysore_true-termination.c @@ -0,0 +1,23 @@ +/* + * Date: 2012-02-18 + * Author: leike@informatik.uni-freiburg.de + * + * Ranking function: f(x, c) = x + c; + * needs the for the lower bound to be able to depend on c. + */ + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x = __VERIFIER_nondet_int(); + int c = __VERIFIER_nondet_int(); + if (c < 2) { + return 0; + } + while (x + c >= 0) { + x = x - c; + c = c + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/Ultimate/NonTermination2_false-termination.c b/data/benchmarks/tpdb/C/Ultimate/NonTermination2_false-termination.c new file mode 100644 index 000000000..5c2930a28 --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/NonTermination2_false-termination.c @@ -0,0 +1,19 @@ +/* + * Date: 2014-06-26 + * Author: leike@informatik.uni-freiburg.de + * + */ + +extern int __VERIFIER_nondet_int(); + +int main() { + int x = __VERIFIER_nondet_int(); + while (x > 1) { + int old_x = x; + x = __VERIFIER_nondet_int(); + if (x < 2*old_x) { + break; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/Ultimate/NonTermination3_false-termination.c b/data/benchmarks/tpdb/C/Ultimate/NonTermination3_false-termination.c new file mode 100644 index 000000000..66e001ee5 --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/NonTermination3_false-termination.c @@ -0,0 +1,17 @@ +/* + * Date: 2014-06-26 + * Author: leike@informatik.uni-freiburg.de + * + */ + +extern int __VERIFIER_nondet_int(); + +int main() { + int i = __VERIFIER_nondet_int(); + int a[10]; + while (0 <= i && i < 10 && a[i] >= 0) { + i = __VERIFIER_nondet_int(); + a[i] = 0; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/Ultimate/NonTerminationSimple2_false-termination.c b/data/benchmarks/tpdb/C/Ultimate/NonTerminationSimple2_false-termination.c new file mode 100644 index 000000000..0fac289dd --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/NonTerminationSimple2_false-termination.c @@ -0,0 +1,17 @@ +/* + * Date: 2013-12-16 + * Author: leike@informatik.uni-freiburg.de + * + * Simple example for non-termination + */ + +extern int __VERIFIER_nondet_int(); + +int main() +{ + int x = __VERIFIER_nondet_int(); + while (x >= 0) { + x++; + } +} + diff --git a/data/benchmarks/tpdb/C/Ultimate/NonTerminationSimple3_false-termination.c b/data/benchmarks/tpdb/C/Ultimate/NonTerminationSimple3_false-termination.c new file mode 100644 index 000000000..a6f8c9732 --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/NonTerminationSimple3_false-termination.c @@ -0,0 +1,18 @@ +/* + * Date: 2013-12-16 + * Author: leike@informatik.uni-freiburg.de + * + * Does not terminate for c >= 0. + */ + +extern int __VERIFIER_nondet_int(); + +int main() +{ + int c = __VERIFIER_nondet_int(); + int x = __VERIFIER_nondet_int(); + while (x >= 0) { + x += c; + } +} + diff --git a/data/benchmarks/tpdb/C/Ultimate/NonTerminationSimple4_false-termination.c b/data/benchmarks/tpdb/C/Ultimate/NonTerminationSimple4_false-termination.c new file mode 100644 index 000000000..fc27ff6a6 --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/NonTerminationSimple4_false-termination.c @@ -0,0 +1,22 @@ +/* + * Date: 2014-06-26 + * Author: leike@informatik.uni-freiburg.de + * + * Does not terminate for y >= 5. + */ + +extern int __VERIFIER_nondet_int(); + +int main() +{ + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + if (y < 5) { + return 0; + } + while (x >= 0) { + y -= 1; + } + return 0; +} + diff --git a/data/benchmarks/tpdb/C/Ultimate/NonTerminationSimple5_false-termination.c b/data/benchmarks/tpdb/C/Ultimate/NonTerminationSimple5_false-termination.c new file mode 100644 index 000000000..e67be60d6 --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/NonTerminationSimple5_false-termination.c @@ -0,0 +1,20 @@ +/* + * Date: 2014-06-26 + * Author: leike@informatik.uni-freiburg.de + */ + +extern int __VERIFIER_nondet_int(); + +int main() +{ + int x = __VERIFIER_nondet_int(); + while (x >= 0) { + if (__VERIFIER_nondet_int()) { + x -= 1; + } else { + x += 1; + } + } + return 0; +} + diff --git a/data/benchmarks/tpdb/C/Ultimate/NonTerminationSimple6_false-termination.c b/data/benchmarks/tpdb/C/Ultimate/NonTerminationSimple6_false-termination.c new file mode 100644 index 000000000..91201805c --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/NonTerminationSimple6_false-termination.c @@ -0,0 +1,18 @@ +/* + * Date: 2014-06-26 + * Author: leike@informatik.uni-freiburg.de + */ + +extern int __VERIFIER_nondet_int(); + +const int c = 5; + +int main() +{ + int x = __VERIFIER_nondet_int(); + while (x >= 0) { + x += c; + } + return 0; +} + diff --git a/data/benchmarks/tpdb/C/Ultimate/NonTerminationSimple7_false-termination.c b/data/benchmarks/tpdb/C/Ultimate/NonTerminationSimple7_false-termination.c new file mode 100644 index 000000000..902c24647 --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/NonTerminationSimple7_false-termination.c @@ -0,0 +1,21 @@ +/* + * Date: 2014-06-26 + * Author: leike@informatik.uni-freiburg.de + */ + +extern int __VERIFIER_nondet_int(); + +int main() +{ + int x = __VERIFIER_nondet_int(); + int c = __VERIFIER_nondet_int(); + + if (c != 0) { + return 1; + } + while (x >= 0) { + x += c; + } + return 0; +} + diff --git a/data/benchmarks/tpdb/C/Ultimate/NonTerminationSimple8_false-termination.c b/data/benchmarks/tpdb/C/Ultimate/NonTerminationSimple8_false-termination.c new file mode 100644 index 000000000..a118509e4 --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/NonTerminationSimple8_false-termination.c @@ -0,0 +1,26 @@ +/* + * Date: 2014-06-26 + * Author: leike@informatik.uni-freiburg.de + */ + +extern int __VERIFIER_nondet_int(); + +int main() +{ + int x = __VERIFIER_nondet_int(); + while (x >= 0) { + if (__VERIFIER_nondet_int()) { + x += 1; + } else if (__VERIFIER_nondet_int()) { + x += 2; + } else if (__VERIFIER_nondet_int()) { + x += 3; + } else if (__VERIFIER_nondet_int()) { + x += 4; + } else { + break; + } + } + return 0; +} + diff --git a/data/benchmarks/tpdb/C/Ultimate/NonTerminationSimple9_false-termination.c b/data/benchmarks/tpdb/C/Ultimate/NonTerminationSimple9_false-termination.c new file mode 100644 index 000000000..a04a355e0 --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/NonTerminationSimple9_false-termination.c @@ -0,0 +1,16 @@ +/* + * Date: 2014-06-26 + * Author: leike@informatik.uni-freiburg.de + */ + +extern int __VERIFIER_nondet_int(); + +int main() +{ + int x = __VERIFIER_nondet_int(); + while (x >= 0) { + x += __VERIFIER_nondet_int(); + } + return 0; +} + diff --git a/data/benchmarks/tpdb/C/Ultimate/Nyala-2lex_true-termination.c b/data/benchmarks/tpdb/C/Ultimate/Nyala-2lex_true-termination.c new file mode 100644 index 000000000..534ba40ec --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/Nyala-2lex_true-termination.c @@ -0,0 +1,26 @@ +/* + * Date: 2013-07-13 + * Author: leike@informatik.uni-freiburg.de + * + * Simple test case for the lexicographic template. + * Has the lexicographic ranking function + * f(x, y) = + * + */ + + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + while (x >= 0) { + y = y - 1; + if (y < 0) { + x = x - 1; + y = __VERIFIER_nondet_int(); + } + if (y < 0) { + break; + } + } +} diff --git a/data/benchmarks/tpdb/C/Ultimate/Parallel_true-termination.c b/data/benchmarks/tpdb/C/Ultimate/Parallel_true-termination.c new file mode 100644 index 000000000..9a25e93f5 --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/Parallel_true-termination.c @@ -0,0 +1,30 @@ +/* + * Date: 2013-12-20 + * Author: leike@informatik.uni-freiburg.de + * + * An example tailored to the parallel ranking template. + * + * A ranking function is + * + * f(x, y) = max{x, 0} + max{y, 0}. + * + */ + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + while (1) { + if (x >= 0) { + x = x - 1; + } else { + if (y < 0) { + break; + } + y = y - 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/Ultimate/Pure3Phase_true-termination.c b/data/benchmarks/tpdb/C/Ultimate/Pure3Phase_true-termination.c new file mode 100644 index 000000000..aed79a7dd --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/Pure3Phase_true-termination.c @@ -0,0 +1,30 @@ +/* + * Date: 2014-06-29 + * Author: leike@informatik.uni-freiburg.de + * + * This program has the following 3-phase ranking function: + * f_0(x, y, z) = z + * f_1(x, y, z) = y + * f_2(x, y, z) = x + * + * The program does not have a nested ranking function. + */ + +extern int __VERIFIER_nondet_int(); + +int main() +{ + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + int z = __VERIFIER_nondet_int(); + while (x >= 0) { + if (__VERIFIER_nondet_int()) { + x = x + y; + } else { + x = x + z; + } + y = y + z; + z = z - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/Ultimate/README.txt b/data/benchmarks/tpdb/C/Ultimate/README.txt new file mode 100644 index 000000000..3fbd5efd1 --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/README.txt @@ -0,0 +1,10 @@ +C programs for termination analysis, that were used by +Ultimate Büchi Automizer +http://ultimate.informatik.uni-freiburg.de/BuchiAutomizer/ +and +Ultimate Lasso Ranker +http://ultimate.informatik.uni-freiburg.de/LassoRanker/ + +The benchmarks were contributed by Jan Leike and Matthias Heizmann. +You may use and redistribute them according to the (2-clause) BSD license +that is shipped with these examples. \ No newline at end of file diff --git a/data/benchmarks/tpdb/C/Ultimate/RecursiveMultiplication_true-termination.c b/data/benchmarks/tpdb/C/Ultimate/RecursiveMultiplication_true-termination.c new file mode 100644 index 000000000..06bda2033 --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/RecursiveMultiplication_true-termination.c @@ -0,0 +1,27 @@ +/* + * Recursive implementation multiplication by repeated addition + * + * Author: Jan Leike + * Date: 2013-07-17 + * + */ + +extern int __VERIFIER_nondet_int(void); + +// Multiplies two integers n and m +int mult(int n, int m) { + if (m < 0) { + return -1 * mult(n, -m); + } + if (m == 0) { + return 0; + } + return n + mult(n, m - 1); +} + +int main() { + int m = __VERIFIER_nondet_int(); + int n = __VERIFIER_nondet_int(); + int res = mult(m, n); + return 0; +} diff --git a/data/benchmarks/tpdb/C/Ultimate/RecursiveNonterminating_false-termination.c b/data/benchmarks/tpdb/C/Ultimate/RecursiveNonterminating_false-termination.c new file mode 100644 index 000000000..c41076657 --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/RecursiveNonterminating_false-termination.c @@ -0,0 +1,20 @@ +/* + * Author: Matthias Heizmann + * Date: 2014-06-29 + * + */ + +extern int __VERIFIER_nondet_int(void); + + +void rec(int x, int y) { + if (x <= 23 && x >= -42) { + rec(2*y-2, x + 1); + } +} + +int main() { + int n = __VERIFIER_nondet_int(); + rec(n, n + 1); + return 0; +} diff --git a/data/benchmarks/tpdb/C/Ultimate/Rotation180_false-termination.c b/data/benchmarks/tpdb/C/Ultimate/Rotation180_false-termination.c new file mode 100644 index 000000000..3b70ddee0 --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/Rotation180_false-termination.c @@ -0,0 +1,21 @@ +/* + * Date: 2013-12-16 + * Author: leike@informatik.uni-freiburg.de + * + * Rotates x and y by 90 degrees + * Does not terminate. + */ + +extern int __VERIFIER_nondet_int(); + +int main () +{ + int x = __VERIFIER_nondet_int(); + int y = __VERIFIER_nondet_int(); + while (1) { + int old_x = x; + x = -y; + y = old_x; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/Ultimate/Stockholm_true-termination.c b/data/benchmarks/tpdb/C/Ultimate/Stockholm_true-termination.c new file mode 100644 index 000000000..7220383bd --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/Stockholm_true-termination.c @@ -0,0 +1,23 @@ +/* + * Date: 2012-02-12 + * Author: leike@informatik.uni-freiburg.de + * + * Ranking function: f(x, a, b) = x; + * needs the loop invariant b >= a. + */ + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x = __VERIFIER_nondet_int(); + int a = __VERIFIER_nondet_int(); + int b = __VERIFIER_nondet_int(); + if (a != b) { + return 0; + } + while (x >= 0) { + x = x + a - b - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/Ultimate/SyntaxSupportPointer01_true-termination.c b/data/benchmarks/tpdb/C/Ultimate/SyntaxSupportPointer01_true-termination.c new file mode 100644 index 000000000..165814f0f --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/SyntaxSupportPointer01_true-termination.c @@ -0,0 +1,16 @@ +/* + * Date: 2012-06-03 + * Author: heizmann@informatik.uni-freiburg.de + * + */ +#include + +extern int __VERIFIER_nondet_int(void); + +int main() { + int *p = malloc(sizeof(int)); + while (*p >= 0) { + (*p)--; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C/Ultimate/WhileFalse_true-termination.c b/data/benchmarks/tpdb/C/Ultimate/WhileFalse_true-termination.c new file mode 100644 index 000000000..71ba1425e --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/WhileFalse_true-termination.c @@ -0,0 +1,15 @@ +/* + * Date: 2012-03-19 + * Author: leike@informatik.uni-freiburg.de + * + * The loop is equivalent to false, + * f(x) = 0 is a ranking function. + */ + +int main() +{ + while (0) { + } + return 0; +} + diff --git a/data/benchmarks/tpdb/C/Ultimate/WhileTrue_false-termination.c b/data/benchmarks/tpdb/C/Ultimate/WhileTrue_false-termination.c new file mode 100644 index 000000000..cda4be50a --- /dev/null +++ b/data/benchmarks/tpdb/C/Ultimate/WhileTrue_false-termination.c @@ -0,0 +1,15 @@ +/* + * Date: 2013-12-16 + * Author: leike@informatik.uni-freiburg.de + * + * Very simple example for non-termination + */ + +int main() +{ + while (1) { + // do nothing + } + return 0; +} + diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/2Nested_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/2Nested_true-termination.c new file mode 100644 index 000000000..56429142b --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/2Nested_true-termination.c @@ -0,0 +1,24 @@ +/* + * Date: 2012-08-10 + * Author: leike@informatik.uni-freiburg.de + * + * This program has the following 2-nested ranking function: + * f_0(x, y) = y + 1 + * f_1(x, y) = x + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x >= 0) { + x = x + y; + y = y - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/4NestedWith3Variables_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/4NestedWith3Variables_true-termination.c new file mode 100644 index 000000000..ee655f744 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/4NestedWith3Variables_true-termination.c @@ -0,0 +1,29 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * (a, b) is a vector that is rotated around (0, 0) and scaled by a factor of 5. + * I.e., (a, b) is on an outward spiral around (0, 0). + * + * This program terminates because on average, (a, b) is (0, 0), + * hence q decreases by 1 on average. + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int a, b, q, olda; + q = __VERIFIER_nondet_int(); + a = __VERIFIER_nondet_int(); + b = __VERIFIER_nondet_int(); + while (q > 0) { + q = q + a - 1; + olda = a; + a = 3*olda - 4*b; + b = 4*olda + 3*b; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-Fig1_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-Fig1_true-termination.c new file mode 100644 index 000000000..61b462b60 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-Fig1_true-termination.c @@ -0,0 +1,28 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, m; + y = 0; + m = __VERIFIER_nondet_int(); + x = m; + while (x >= 0 && y >= 0) { + if (__VERIFIER_nondet_int() != 0) { + while (y <= m && __VERIFIER_nondet_int() != 0) { + y = y + 1; + } + x = x - 1; + } + y = y - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-Fig2a_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-Fig2a_true-termination.c new file mode 100644 index 000000000..28caa96d0 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-Fig2a_true-termination.c @@ -0,0 +1,27 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x >= 2) { + x = x - 1; + y = y + x; + while (y >= x && __VERIFIER_nondet_int() != 0) { + y = y - 1; + } + x = x - 1; + y = y - x; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-Fig2b_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-Fig2b_true-termination.c new file mode 100644 index 000000000..fb4f695ff --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-Fig2b_true-termination.c @@ -0,0 +1,32 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x >= 2) { + x = x - 1; + y = y + x; + while (y >= x + 1 && __VERIFIER_nondet_int() != 0) { + y = y - 1; + while (y >= x + 3 && __VERIFIER_nondet_int() != 0) { + x = x + 1; + y = y - 2; + } + y = y - 1; + } + x = x - 1; + y = y - x; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-complex_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-complex_true-termination.c new file mode 100644 index 000000000..39cd79150 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-complex_true-termination.c @@ -0,0 +1,33 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int a, b; + a = __VERIFIER_nondet_int(); + b = __VERIFIER_nondet_int(); + while (a < 30) { + while (b < a) { + if (b > 5) { + b = b + 7; + } else { + b = b + 2; + } + if (b >= 10 && b <= 12) { + a = a + 10; + } else { + a = a + 1; + } + } + a = a + 2; + b = b - 10; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-counterex1a_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-counterex1a_true-termination.c new file mode 100644 index 000000000..08735ba40 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-counterex1a_true-termination.c @@ -0,0 +1,34 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, n, b; + n = __VERIFIER_nondet_int(); + b = __VERIFIER_nondet_int(); + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x >= 0 && 0 <= y && y <= n) { + if (b == 0) { + y = y + 1; + if (__VERIFIER_nondet_int() != 0) { + b = 1; + } + } else { + y = y - 1; + if (__VERIFIER_nondet_int() != 0) { + x = x - 1; + b = 0; + } + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-counterex1b_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-counterex1b_true-termination.c new file mode 100644 index 000000000..5bb0aa4d3 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-counterex1b_true-termination.c @@ -0,0 +1,28 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, n; + n = __VERIFIER_nondet_int(); + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x >= 0) { + while (y >= 0 && __VERIFIER_nondet_int() != 0) { + y = y - 1; + } + x = x - 1; + while (y <= n && __VERIFIER_nondet_int() != 0) { + y = y + 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-cousot9_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-cousot9_true-termination.c new file mode 100644 index 000000000..d30ff30ac --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-cousot9_true-termination.c @@ -0,0 +1,27 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i, j, N; + j = __VERIFIER_nondet_int(); + N = __VERIFIER_nondet_int(); + i = N; + while (i > 0) { + if (j > 0) { + j = j - 1; + } else { + j = N; + i = i - 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-exmini_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-exmini_true-termination.c new file mode 100644 index 000000000..5802ad413 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-exmini_true-termination.c @@ -0,0 +1,26 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i, j, k, tmp; + i = __VERIFIER_nondet_int(); + j = __VERIFIER_nondet_int(); + k = __VERIFIER_nondet_int(); + tmp = __VERIFIER_nondet_int(); + while (i <= 100 && j <= k) { + tmp = i; + i = j; + j = tmp + 1; + k = k - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-loops_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-loops_true-termination.c new file mode 100644 index 000000000..92edda59e --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-loops_true-termination.c @@ -0,0 +1,30 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, n; + n = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + x = n; + if (x >= 0) { + while (x >= 0) { + y = 1; + if (y < x) { + while (y < x) { + y = 2*y; + } + } + x = x - 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-ndecr_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-ndecr_true-termination.c new file mode 100644 index 000000000..35ae81c36 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-ndecr_true-termination.c @@ -0,0 +1,21 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i, n; + n = __VERIFIER_nondet_int(); + i = n - 1; + while (i > 1) { + i = i - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-nestedLoop_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-nestedLoop_true-termination.c new file mode 100644 index 000000000..1b4405ea6 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-nestedLoop_true-termination.c @@ -0,0 +1,37 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i, j, k, m, n, N; + i = __VERIFIER_nondet_int(); + j = __VERIFIER_nondet_int(); + k = __VERIFIER_nondet_int(); + n = __VERIFIER_nondet_int(); + m = __VERIFIER_nondet_int(); + N = __VERIFIER_nondet_int(); + if (0 <= n && 0 <= m && 0 <= N) { + i = 0; + while (i < n) { + j = 0; + while (j < m) { + j = j + 1; + k = i; + while (k < N) { + k = k + 1; + } + i = k; + } + i = i + 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-random1d_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-random1d_true-termination.c new file mode 100644 index 000000000..f0c9213b8 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-random1d_true-termination.c @@ -0,0 +1,29 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int a, x, max; + max = __VERIFIER_nondet_int(); + if (max > 0) { + a = 0; + x = 1; + while (x <= max) { + if (__VERIFIER_nondet_int() != 0) { + a = a + 1; + } else { + a = a - 1; + } + x = x + 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-random2d_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-random2d_true-termination.c new file mode 100644 index 000000000..8fa1d2a44 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-random2d_true-termination.c @@ -0,0 +1,35 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int N, x, y, i, r; + N = 10; + x = 0; + y = 0; + i = 0; + while (i < N) { + i = i + 1; + r = __VERIFIER_nondet_int(); + if (r >= 0 && r <= 3) { + if (r == 0) { + x = x + 1; + } else {if (r == 1) { + x = x - 1; + } else {if (r == 2) { + y = y + 1; + } else {if (r == 3) { + y = y - 1; + }}}} + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-rsd_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-rsd_true-termination.c new file mode 100644 index 000000000..7a90d4069 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-rsd_true-termination.c @@ -0,0 +1,30 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int r, da, db, temp; + r = __VERIFIER_nondet_int(); + if (r >= 0) { + da = 2 * r; + db = 2 * r; + while (da >= r) { + if (__VERIFIER_nondet_int() != 0) { + da = da - 1; + } else { + temp = da; + da = db - 1; + db = da; + } + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-speedFails4_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-speedFails4_true-termination.c new file mode 100644 index 000000000..586e44164 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-speedFails4_true-termination.c @@ -0,0 +1,32 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i, x, n, b, t; + i = __VERIFIER_nondet_int(); + x = __VERIFIER_nondet_int(); + n = __VERIFIER_nondet_int(); + b = __VERIFIER_nondet_int(); + if (b >= 1) { + t = 1; + } else { + t = -1; + } + while (x <= n) { + if (b >= 1) { + x = x + t; + } else { + x = x - t; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-speedpldi2_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-speedpldi2_true-termination.c new file mode 100644 index 000000000..31a482c48 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-speedpldi2_true-termination.c @@ -0,0 +1,30 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int m, n, v1, v2; + n = __VERIFIER_nondet_int(); + m = __VERIFIER_nondet_int(); + if (n >= 0 && m > 0) { + v1 = n; + v2 = 0; + while (v1 > 0) { + if (v2 < m) { + v2 = v2 + 1; + v1 = v1 - 1; + } else { + v2 = 0; + } + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-speedpldi3_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-speedpldi3_true-termination.c new file mode 100644 index 000000000..2794c30db --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-speedpldi3_true-termination.c @@ -0,0 +1,30 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i, j, m, n; + n = __VERIFIER_nondet_int(); + m = __VERIFIER_nondet_int(); + if (m > 0 && n > m) { + i = 0; + j = 0; + while (i < n) { + if (j < m) { + j = j + 1; + } else { + j = 0; + i = i + 1; + } + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-speedpldi4_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-speedpldi4_true-termination.c new file mode 100644 index 000000000..d3128a290 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-speedpldi4_true-termination.c @@ -0,0 +1,28 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i, m, n; + n = __VERIFIER_nondet_int(); + m = __VERIFIER_nondet_int(); + if (m > 0 && n > m) { + i = n; + while (i > 0) { + if (i < m) { + i = i - 1; + } else { + i = i - m; + } + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-terminate_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-terminate_true-termination.c new file mode 100644 index 000000000..be234386d --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-terminate_true-termination.c @@ -0,0 +1,25 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i, j, k, ell; + i = __VERIFIER_nondet_int(); + j = __VERIFIER_nondet_int(); + k = __VERIFIER_nondet_int(); + while (i <= 100 && j <= k) { + ell = i; + i = j; + j = ell + 1; + k = k - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-wcet2_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-wcet2_true-termination.c new file mode 100644 index 000000000..219f0dd97 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-wcet2_true-termination.c @@ -0,0 +1,25 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i, j; + i = __VERIFIER_nondet_int(); + j = __VERIFIER_nondet_int(); + while (i < 5) { + j = 0; + while (i > 2 && j <= 9) { + j = j + 1; + } + i = i + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-while2_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-while2_true-termination.c new file mode 100644 index 000000000..9193d9ca0 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-while2_true-termination.c @@ -0,0 +1,25 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i, j, N; + N = __VERIFIER_nondet_int(); + i = N; + while (i > 0) { + j = N; + while (j > 0) { + j = j - 1; + } + i = i - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-wise_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-wise_true-termination.c new file mode 100644 index 000000000..9363513df --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-wise_true-termination.c @@ -0,0 +1,27 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + if (x >= 0 && y >= 0) { + while (x - y > 2 || y - x > 2) { + if (x < y) { + x = x + 1; + } else { + y = y + 1; + } + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/AlternDiv.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AlternDiv.c new file mode 100644 index 000000000..28732ad94 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AlternDiv.c @@ -0,0 +1,20 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + i = __VERIFIER_nondet_int(); + + while (i != 0) { + if (i < 0) { + i = i-1; + i = i*(-1); + } else { + i = i+1; + i = i*(-1); + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/AlternDivWide.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AlternDivWide.c new file mode 100644 index 000000000..ad8bd3279 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AlternDivWide.c @@ -0,0 +1,26 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + int w; + i = __VERIFIER_nondet_int(); + w = 5; + + while (i != 0) { + if (i < -w) { + i = i-1; + i = i*(-1); + } else { + if (i > w) { + i = i+1; + i = i*(-1); + } else { + i = 0; + } + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/AlternDivWidening.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AlternDivWidening.c new file mode 100644 index 000000000..94d277524 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AlternDivWidening.c @@ -0,0 +1,27 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + int w; + i = __VERIFIER_nondet_int(); + w = 5; + + while (i != 0) { + if (i < -w) { + i = i-1; + i = i*(-1); + } else { + if (i > w) { + i = i+1; + i = i*(-1); + } else { + i = 0; + } + } + w = w+1; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/AlternKonv.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AlternKonv.c new file mode 100644 index 000000000..61012bf2c --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/AlternKonv.c @@ -0,0 +1,24 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + i = __VERIFIER_nondet_int(); + + while (i != 0) { + if (i < 0) { + i = i+2; + if (i < 0) { + i = i*(-1); + } + } else { + i = i-2; + if (i > 0) { + i = i*(-1); + } + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Avery-FLOPS2006-Table1_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Avery-FLOPS2006-Table1_true-termination.c new file mode 100644 index 000000000..0be95d002 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Avery-FLOPS2006-Table1_true-termination.c @@ -0,0 +1,31 @@ +/* + * Program from Table 1 of + * 2006FLOPS - James Avery - Size-Change Termination and Bound Analysis + * + * Date: 18.12.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, z, i; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = 0; + i = x; + if (y > 0 && x > 0) { + while (i > 0) { + i = i - 1; + z = z + 1; + } + while (i < y) { + i = i + 1; + z = z - 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Bangalore_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Bangalore_true-termination.c new file mode 100644 index 000000000..c60eabca3 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Bangalore_true-termination.c @@ -0,0 +1,24 @@ +/* + * Date: 2011-12-11 + * Author: heizmann@informatik.uni-freiburg.de + * + * Ranking function: f(x, y) = x + * provided with the supporting invariant y >= 1. + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + if (y >= 1) { + while (x >= 0) { + x = x - y; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Ben-Amram-LMCS2010-Ex2.3_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Ben-Amram-LMCS2010-Ex2.3_true-termination.c new file mode 100644 index 000000000..c980fd6f7 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Ben-Amram-LMCS2010-Ex2.3_true-termination.c @@ -0,0 +1,32 @@ +/* + * Program from Ex.2.3 of + * 2010LMCS - Ben-Amram - Size-Change Termination, Monotonicity Constraints and Ranking Functions + * + * Date: 12.12.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, z; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + + while (x > 0 && y > 0 && z > 0) { + if (y > x) { + y = z; + x = __VERIFIER_nondet_int(); + z = x - 1; + } else { + z = z - 1; + x = __VERIFIER_nondet_int(); + y = x - 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Benghazi_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Benghazi_true-termination.c new file mode 100644 index 000000000..dbe1837b0 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Benghazi_true-termination.c @@ -0,0 +1,29 @@ +/* + * Date: 18.11.2012 + * Author: heizmann@informatik.uni-freiburg.de + * + * Has ranking function f(x,d1,d2)=x for the invariant + * d1 >=1 /\ d2>=1. + * + * This lasso program has a 2-phase ranking function. + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x, d1, d2, d1old; + d1 = 73; + d2 = 74; + x = __VERIFIER_nondet_int(); + while (x >= 0) { + x = x - d1; + d1old = d1; + d1 = d2 + 1; + d2 = d1old + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/BradleyMannaSipma-CAV2005-Fig1-modified_false-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/BradleyMannaSipma-CAV2005-Fig1-modified_false-termination.c new file mode 100644 index 000000000..86202f58e --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/BradleyMannaSipma-CAV2005-Fig1-modified_false-termination.c @@ -0,0 +1,30 @@ +/* + * Program from Fig.1 of + * 2005CAV - Bradley,Manna,Sipma - Linear Ranking with Reachability + * Modified version that can be nonterminating because we allow that inputs of + * gcd may be zero. + * + * Date: 12.12.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int y1, y2; + y1 = __VERIFIER_nondet_int(); + y2 = __VERIFIER_nondet_int(); + if (y1 >= 0 && y2 >= 0) { + while (y1 != y2) { + if (y1 > y2) { + y1 = y1 - y2; + } else { + y2 = y2 - y1; + } + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/BradleyMannaSipma-CAV2005-Fig1_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/BradleyMannaSipma-CAV2005-Fig1_true-termination.c new file mode 100644 index 000000000..3a07423e2 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/BradleyMannaSipma-CAV2005-Fig1_true-termination.c @@ -0,0 +1,28 @@ +/* + * Program from Fig.1 of + * 2005CAV - Bradley,Manna,Sipma - Linear Ranking with Reachability + * + * Date: 12.12.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int y1, y2; + y1 = __VERIFIER_nondet_int(); + y2 = __VERIFIER_nondet_int(); + if (y1 > 0 && y2 > 0) { + while (y1 != y2) { + if (y1 > y2) { + y1 = y1 - y2; + } else { + y2 = y2 - y1; + } + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/BradleyMannaSipma-ICALP2005-Fig1_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/BradleyMannaSipma-ICALP2005-Fig1_true-termination.c new file mode 100644 index 000000000..236005594 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/BradleyMannaSipma-ICALP2005-Fig1_true-termination.c @@ -0,0 +1,34 @@ +/* + * Program from Fig.1 of + * 2005ICALP - Bradley,Manna,Sipma - The Polyranking Principle + * + * Date: 12.12.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, N; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + N = __VERIFIER_nondet_int(); + // continue only for values where there won't be any overflow or underflow + // on systems where sizeof(int)=4 holds. + if (N < 536870912 && x < 536870912 && y < 536870912 && x >= -1073741824) { + if (x + y >= 0) { + while (x <= N) { + if (__VERIFIER_nondet_int() != 0) { + x = 2*x + y; + y = y + 1; + } else { + x = x + 1; + } + } + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/BrockschmidtCookFuhs-CAV2013-Fig1_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/BrockschmidtCookFuhs-CAV2013-Fig1_true-termination.c new file mode 100644 index 000000000..74499f680 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/BrockschmidtCookFuhs-CAV2013-Fig1_true-termination.c @@ -0,0 +1,27 @@ +/* + * Program from Fig.1 of + * 2013CAV - Brockschmidt,Cook,Fuhs - Better termination proving through cooperation + * + * Date: 12.12.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i, j, n; + i = __VERIFIER_nondet_int(); + j = __VERIFIER_nondet_int(); + n = __VERIFIER_nondet_int(); + while (i < n) { + j = 0; + while (j <= i) { + j = j + 1; + } + i = i + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/BrockschmidtCookFuhs-CAV2013-Fig9a_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/BrockschmidtCookFuhs-CAV2013-Fig9a_true-termination.c new file mode 100644 index 000000000..f882d0193 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/BrockschmidtCookFuhs-CAV2013-Fig9a_true-termination.c @@ -0,0 +1,31 @@ +/* + * Program from Fig.9a of a technical report which is based on + * 2013CAV - Brockschmidt,Cook,Fuhs - Better termination proving through cooperation + * + * Date: 2014 + * Author: Caterina Urban + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int k, i, j, n; + k = __VERIFIER_nondet_int(); + i = __VERIFIER_nondet_int(); + j = __VERIFIER_nondet_int(); + n = __VERIFIER_nondet_int(); + if (k >= 1) { + i = 0; + while (i < n) { + j = 0; + while (j <= i) { + j = j + k; + } + i = i + 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/BrockschmidtCookFuhs-CAV2013-Introduction_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/BrockschmidtCookFuhs-CAV2013-Introduction_true-termination.c new file mode 100644 index 000000000..ccc2c4f03 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/BrockschmidtCookFuhs-CAV2013-Introduction_true-termination.c @@ -0,0 +1,23 @@ +/* + * Program from the introduction of + * 2013CAV - Brockschmidt,Cook,Fuhs - Better termination proving through cooperation -draft + * + * Date: 12.12.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + y = 1; + while (x > 0) { + x = x - y; + y = y + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Cairo_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Cairo_true-termination.c new file mode 100644 index 000000000..04dadea95 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Cairo_true-termination.c @@ -0,0 +1,26 @@ +/* + * Ranking function f(x) = x + * with supporting invariant x >= 0 + * Makes use of disjunctions in the loop. + * Terminates only over the integers not over rationals. + * + * Date: 2012-04-06 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x; + x = __VERIFIER_nondet_int(); + if (x > 0) { + while (x != 0) { + x = x - 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron12_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron12_true-termination.c new file mode 100644 index 000000000..d0d8e520c --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron12_true-termination.c @@ -0,0 +1,29 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2008ESOP - Chawdhary,Cook,Gulwani,Sagiv,Yang - Ranking Abstractions + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, z; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + while (x >= y) { + if (__VERIFIER_nondet_int() != 0) { + x = x + 1; + y = y + x; + } else { + x = x - z; + y = y + (z * z); + z = z - 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron1_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron1_true-termination.c new file mode 100644 index 000000000..9fff1b002 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron1_true-termination.c @@ -0,0 +1,33 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2008ESOP - Chawdhary,Cook,Gulwani,Sagiv,Yang - Ranking Abstractions + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i, j, an, bn; + i = __VERIFIER_nondet_int(); + j = __VERIFIER_nondet_int(); + an = __VERIFIER_nondet_int(); + bn = __VERIFIER_nondet_int(); + while ((an >= i && bn >= j) || (an >= i && bn <= j) || (an <= i && bn >= j)) { + if (an >= i && bn >= j) { + if (__VERIFIER_nondet_int() != 0) { + j = j + 1; + } else { + i = i + 1; + } + } else {if (an >= i && bn <= j) { + i = i + 1; + } else {if (an <= i && bn >= j) { + j = j + 1; + }}} + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron4_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron4_true-termination.c new file mode 100644 index 000000000..7ff507e56 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron4_true-termination.c @@ -0,0 +1,39 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2008ESOP - Chawdhary,Cook,Gulwani,Sagiv,Yang - Ranking Abstractions + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i, j, k, an, bn, tk; + i = __VERIFIER_nondet_int(); + j = __VERIFIER_nondet_int(); + k = __VERIFIER_nondet_int(); + an = __VERIFIER_nondet_int(); + bn = __VERIFIER_nondet_int(); + tk = __VERIFIER_nondet_int(); + while (((an >= i && bn >= j) || (an >= i && bn <= j) || (an <= i && bn >= j)) && k >= tk + 1) { + if (an >= i && bn >= j) { + if (__VERIFIER_nondet_int() != 0) { + j = j + k; + tk = k; + k = __VERIFIER_nondet_int(); + } else { + i = i + 1; + } + } else {if (an >= i && bn <= j) { + i = i + 1; + } else {if (an <= i && bn >= j) { + j = j + k; + tk = k; + k = __VERIFIER_nondet_int(); + }}} + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron6_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron6_true-termination.c new file mode 100644 index 000000000..a83024273 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron6_true-termination.c @@ -0,0 +1,34 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2008ESOP - Chawdhary,Cook,Gulwani,Sagiv,Yang - Ranking Abstractions + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, tx, y, ty, n; + x = __VERIFIER_nondet_int(); + tx = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + ty = __VERIFIER_nondet_int(); + n = __VERIFIER_nondet_int(); + if (x + y >= 0) { + while (x <= n && x >= 2 * tx + y && y >= ty + 1 && x >= tx + 1) { + if (__VERIFIER_nondet_int() != 0) { + tx = x; + ty = y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + } else { + tx = x; + x = __VERIFIER_nondet_int(); + } + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-random1d_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-random1d_true-termination.c new file mode 100644 index 000000000..a2ca93e53 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-random1d_true-termination.c @@ -0,0 +1,31 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2008ESOP - Chawdhary,Cook,Gulwani,Sagiv,Yang - Ranking Abstractions + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int a, x, max; + a = __VERIFIER_nondet_int(); + x = __VERIFIER_nondet_int(); + max = __VERIFIER_nondet_int(); + if (max > 0) { + a = 0; + x = 1; + while (x <= max) { + if (__VERIFIER_nondet_int() != 0) { + a = a + 1; + } else { + a = a - 1; + } + x = x + 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-random2d_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-random2d_true-termination.c new file mode 100644 index 000000000..eaad5b1c3 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-random2d_true-termination.c @@ -0,0 +1,35 @@ +/* + * Program used in the experimental evaluation of the following paper. + * 2008ESOP - Chawdhary,Cook,Gulwani,Sagiv,Yang - Ranking Abstractions + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, i, r, N; + N = 10; + x = 0; + y = 0; + i = 0; + while (i < N) { + i = i + 1; + r = __VERIFIER_nondet_int(); + if (r >= 0 && r <= 3) { + if (r == 0) { + x = x + 1; + } else {if (r == 1) { + x = x - 1; + } else {if (r == 2) { + y = y + 1; + } else {if (r == 3) { + y = y - 1; + }}}} + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenCookFuhsNimkarOHearn-TACAS2014-Introduction_false-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenCookFuhsNimkarOHearn-TACAS2014-Introduction_false-termination.c new file mode 100644 index 000000000..4d6e7d36d --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenCookFuhsNimkarOHearn-TACAS2014-Introduction_false-termination.c @@ -0,0 +1,28 @@ +/* + * Program from the example depicted in the introduction of + * 2014TACAS - Chen,Cook,Fuhs,Nimkar,O’Hearn - Proving Nontermination via Safety + * + * Date: 2014-06-28 + * Author: Matthias Heizmann + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int k, i; + k = __VERIFIER_nondet_int(); + i = __VERIFIER_nondet_int(); + if (k >= 0) { + // skip + } else { + i = -1; + } + while (i >= 0) { + i = __VERIFIER_nondet_int(); + } + i = 2; + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.01_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.01_true-termination.c new file mode 100644 index 000000000..d453459fa --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.01_true-termination.c @@ -0,0 +1,29 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 1.1 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, non-linear + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + x = __VERIFIER_nondet_int(); + while (x > 0) { + x = -2*x + 10; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.02_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.02_true-termination.c new file mode 100644 index 000000000..c7302ee35 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.02_true-termination.c @@ -0,0 +1,30 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 1.2 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, linear + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, oldx; + x = __VERIFIER_nondet_int(); + while (x > 0 && x < 100 && x >= 2*oldx + 10) { + oldx = x; + x = __VERIFIER_nondet_int(); + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.03_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.03_true-termination.c new file mode 100644 index 000000000..db4b62647 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.03_true-termination.c @@ -0,0 +1,30 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 1.3 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, linear + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, oldx; + x = __VERIFIER_nondet_int(); + while (x > 1 && -2*x == oldx) { + oldx = x; + x = __VERIFIER_nondet_int(); + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.04_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.04_true-termination.c new file mode 100644 index 000000000..6d8bb8bfb --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.04_true-termination.c @@ -0,0 +1,30 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 1.4 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, linear + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, oldx; + x = __VERIFIER_nondet_int(); + while (x > 1 && 2*x <= oldx) { + oldx = x; + x = __VERIFIER_nondet_int(); + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.05_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.05_true-termination.c new file mode 100644 index 000000000..70b79ce36 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.05_true-termination.c @@ -0,0 +1,30 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 1.5 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, linear + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, oldx; + x = __VERIFIER_nondet_int(); + while (x > 0 && 2*x <= oldx) { + oldx = x; + x = __VERIFIER_nondet_int(); + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.01_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.01_true-termination.c new file mode 100644 index 000000000..7fce7da90 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.01_true-termination.c @@ -0,0 +1,31 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 2.1 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, non-linear + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x > 0) { + x = x + y; + y = y - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.02_false-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.02_false-termination.c new file mode 100644 index 000000000..054a7acb0 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.02_false-termination.c @@ -0,0 +1,31 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 2.2 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: nonterminating + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x < 0) { + x = x + y; + y = y - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.03_false-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.03_false-termination.c new file mode 100644 index 000000000..0302057ca --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.03_false-termination.c @@ -0,0 +1,31 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 2.3 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: non-terminating (for x=1, y=0) + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x > 0) { + x = x + y; + y = -2*y; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.04_false-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.04_false-termination.c new file mode 100644 index 000000000..a275bd2a2 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.04_false-termination.c @@ -0,0 +1,31 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 2.4 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: non-terminating (for x=-1, y=0) + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x < y) { + x = x + y; + y = -2*y; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.06_false-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.06_false-termination.c new file mode 100644 index 000000000..8d18f88ac --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.06_false-termination.c @@ -0,0 +1,35 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 2.6 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The authors of the paper claim that this program is terminating, however + * the program is nonterminating (e.g., initial state x=1 and y=1). + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, non-linear + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, oldx; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (4*x + y > 0) { + oldx = x; + x = -2*oldx + 4*y; + y = 4*oldx; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.07_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.07_true-termination.c new file mode 100644 index 000000000..773ea64cc --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.07_true-termination.c @@ -0,0 +1,31 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 2.7 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, non-linear + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x > 0 && x < y) { + x = 2*x; + y = y + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.08_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.08_true-termination.c new file mode 100644 index 000000000..f786feec8 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.08_true-termination.c @@ -0,0 +1,31 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 2.8 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, non-linear + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x > 0) { + x = x - 2*y; + y = y + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.09_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.09_true-termination.c new file mode 100644 index 000000000..4e71f6c62 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.09_true-termination.c @@ -0,0 +1,32 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 2.9 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, non-linear + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, n; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + n = __VERIFIER_nondet_int(); + while (x > 0 && x < n) { + x = -x + y - 5; + y = 2*y; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.10_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.10_true-termination.c new file mode 100644 index 000000000..f430a46dd --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.10_true-termination.c @@ -0,0 +1,31 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 2.10 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, linear + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x > 0 && y < 0) { + x = x + y; + y = y - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.11_false-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.11_false-termination.c new file mode 100644 index 000000000..65a9db9cd --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.11_false-termination.c @@ -0,0 +1,32 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 2.11 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: non-terminating (for x=9,y=7) + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, oldx; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (4*x - 5*y > 0) { + oldx = x; + x = 2*oldx + 4*y; + y = 4*oldx; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.12_false-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.12_false-termination.c new file mode 100644 index 000000000..db5d8b04d --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.12_false-termination.c @@ -0,0 +1,32 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 2.12 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: non-terminating (for x=0,y=0) + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, oldx; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x < 5) { + oldx = x; + x = oldx - y; + y = oldx + y; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.13_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.13_true-termination.c new file mode 100644 index 000000000..cd16a8d08 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.13_true-termination.c @@ -0,0 +1,31 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 2.13 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, non-linear + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x - y > 0) { + x = y - x; + y = y + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.14_false-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.14_false-termination.c new file mode 100644 index 000000000..e4aeaaeaa --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.14_false-termination.c @@ -0,0 +1,30 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 2.14 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: non-terminating (for x=10k, y=3k, any k>0) + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x > 0 && y > 0) { + x = 10*y - 2*x; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.15_false-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.15_false-termination.c new file mode 100644 index 000000000..a3399177c --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.15_false-termination.c @@ -0,0 +1,30 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 2.15 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: non-terminating (for x>0,y>=0) + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x > 0) { + x = x + y; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.16_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.16_true-termination.c new file mode 100644 index 000000000..19e64812f --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.16_true-termination.c @@ -0,0 +1,31 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 2.16 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, non-linear + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x > 0) { + x = y; + y = y - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.17_false-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.17_false-termination.c new file mode 100644 index 000000000..ddb1a6cf4 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.17_false-termination.c @@ -0,0 +1,31 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 2.17 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: non-terminating (for x=0, y=11) + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x < 10) { + x = -y; + y = y + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.18_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.18_true-termination.c new file mode 100644 index 000000000..6b889ae34 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.18_true-termination.c @@ -0,0 +1,31 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 2.18 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, non-linear + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x > 0) { + x = x + y - 5; + y = -2*y; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.19_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.19_true-termination.c new file mode 100644 index 000000000..5fc1fd8e8 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.19_true-termination.c @@ -0,0 +1,31 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 2.19 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, non-linear + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x + y > 0) { + x = x - 1; + y = -2*y; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.20_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.20_true-termination.c new file mode 100644 index 000000000..960098696 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.20_true-termination.c @@ -0,0 +1,31 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 2.20 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, linear + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x > y && y >= 1 && y <= 2) { + x = x - y; + y = __VERIFIER_nondet_int(); + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.21_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.21_true-termination.c new file mode 100644 index 000000000..40ce48bdd --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.21_true-termination.c @@ -0,0 +1,31 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 2.21 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, non-linear + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x > 0) { + x = x + y; + y = -y - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.22_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.22_true-termination.c new file mode 100644 index 000000000..fc6f9bdf5 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.22_true-termination.c @@ -0,0 +1,32 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 2.22 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, linear + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, oldy; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x > 0 && y <= -oldy) { + x = y; + oldy = y; + y = __VERIFIER_nondet_int(); + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.01_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.01_true-termination.c new file mode 100644 index 000000000..2116caa6e --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.01_true-termination.c @@ -0,0 +1,32 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 3.1 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, non-linear + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, z; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + while (x < y) { + x = x + 1; + y = z; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.02_false-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.02_false-termination.c new file mode 100644 index 000000000..56ebae068 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.02_false-termination.c @@ -0,0 +1,32 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 3.2 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: non-terminating (for x>0, y>=0, z>=0) + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, z; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + while (x > 0) { + x = x + y; + y = y + z; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.03_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.03_true-termination.c new file mode 100644 index 000000000..8117b2a16 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.03_true-termination.c @@ -0,0 +1,33 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 3.3 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, non-linear + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, z; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + while (x > 0) { + x = x + y; + y = y + z; + z = z - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.04_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.04_true-termination.c new file mode 100644 index 000000000..e88367e17 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.04_true-termination.c @@ -0,0 +1,32 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 3.4 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, non-linear + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, z; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + while (x + y >= 0 && x <= z) { + x = 2*x + y; + y = y + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.05_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.05_true-termination.c new file mode 100644 index 000000000..326d51742 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.05_true-termination.c @@ -0,0 +1,32 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 3.5 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, non-linear + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, z; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + while (x >= 0 && x <= z) { + x = 2*x + y; + y = y + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.06_false-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.06_false-termination.c new file mode 100644 index 000000000..d35b33f31 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.06_false-termination.c @@ -0,0 +1,33 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 3.6 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: non-terminating (for x=-1, y=1, z=-1) + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, z; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + while (x < 0) { + x = x + z; + z = -2*y; + y = y + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.07_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.07_true-termination.c new file mode 100644 index 000000000..a7b69fedc --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.07_true-termination.c @@ -0,0 +1,33 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 3.7 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, non-linear + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, z; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + while (x >= 0) { + x = x + y; + y = z; + z = -z - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.08_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.08_true-termination.c new file mode 100644 index 000000000..82d691708 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.08_true-termination.c @@ -0,0 +1,34 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 3.8 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, non-linear + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, z; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + while (x - y > 0) { + x = -x + y; + y = z; + z = z; + z = z + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.09_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.09_true-termination.c new file mode 100644 index 000000000..0f857da12 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.09_true-termination.c @@ -0,0 +1,33 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 3.9 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, non-linear + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, z, oldx; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + while (x > 0 && x < y && x > 2*oldx) { + oldx = x; + x = __VERIFIER_nondet_int(); + y = z; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.10_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.10_true-termination.c new file mode 100644 index 000000000..5506030a3 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.10_true-termination.c @@ -0,0 +1,32 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 3.10 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, linear + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, z; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + while (x >= 0 && x + y >= 0) { + x = x + y + z; + y = -z - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex4.01_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex4.01_true-termination.c new file mode 100644 index 000000000..1d5c1a57d --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex4.01_true-termination.c @@ -0,0 +1,35 @@ +/* + * Date: 2014-06-08 + * Author: leike@informatik.uni-freiburg.de + * + * + * This is Example 4.1 from the test suit used in + * + * Termination Proofs for Linear Simple Loops. + * Hong Yi Chen, Shaked Flur, and Supratik Mukhopadhyay. + * SAS 2012. + * + * The test suite is available at the following URL. + * https://tigerbytes2.lsu.edu/users/hchen11/lsl/LSL_benchmark.txt + * + * Comment: terminating, non-linear + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, z, n; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + n = __VERIFIER_nondet_int(); + while (x + y >= 0 && x <= n) { + x = 2*x + y; + y = z; + z = z; + z = z + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Fig1_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Fig1_true-termination.c new file mode 100644 index 000000000..1e2858130 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Fig1_true-termination.c @@ -0,0 +1,25 @@ +/* + * Program from Fig.1 of + * 2012SAS - Chen,Flur,Mukhopadhyay - Termination Proofs for Linear Simple Loops + * + * Date: 2013-12-18 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x,y,z; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + while (x > 0) { + x = x + y; + y = z; + z = -z -1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Choose.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Choose.c new file mode 100644 index 000000000..f3a5e5d4e --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Choose.c @@ -0,0 +1,22 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + i = 3; + + while (i >= 3) { + if (i > 5) { + i = i+3; + } else { + if (i > 10) { + i = i-2; + } else { + i = i+1; + } + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChooseLife.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChooseLife.c new file mode 100644 index 000000000..e222f00b8 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ChooseLife.c @@ -0,0 +1,25 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int choose; + int life; + int death; + int temp; + choose = 2; + life = 13; + death = 17; + + while (life < death) { + temp = death; + death = life + 1; + life = temp; + + if (choose < life || choose < death) { + life = choose; + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ColonSipma-TACAS2001-Fig1_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ColonSipma-TACAS2001-Fig1_true-termination.c new file mode 100644 index 000000000..40a2bbb51 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ColonSipma-TACAS2001-Fig1_true-termination.c @@ -0,0 +1,26 @@ +/* + * Program from Fig.1 of + * 2001TACAS - Colon,Sipma - Synthesis of Linear Ranking Functions + * + * Date: 2014-06-21 + * Author: Caterina Urban, Matthias Heizmann + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int k, i, j, tmp; + k = __VERIFIER_nondet_int(); + i = __VERIFIER_nondet_int(); + j = __VERIFIER_nondet_int(); + while (i <= 100 && j <= k) { + tmp = i; + i = j; + j = tmp + 1; + k = k - 1; + } + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ComplInterv.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ComplInterv.c new file mode 100644 index 000000000..505984b3e --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ComplInterv.c @@ -0,0 +1,18 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + i = __VERIFIER_nondet_int(); + + while (i*i > 9) { + if (i < 0) { + i = i-1; + } else { + i = i+1; + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ComplInterv2.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ComplInterv2.c new file mode 100644 index 000000000..b3a61b9d4 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ComplInterv2.c @@ -0,0 +1,21 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + i = __VERIFIER_nondet_int(); + + while (i != 0) { + if (i > -5 && i < 5) { + if (i < 0) { + i = i+1; + } + if (i > 0) { + i = i-1; + } + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ComplInterv3.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ComplInterv3.c new file mode 100644 index 000000000..028d7b917 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ComplInterv3.c @@ -0,0 +1,22 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + i = __VERIFIER_nondet_int(); + + while (i != 0) { + if (i > 5) { + i = i+1; + } else { + if (i < -5) { + i = i-1; + } else { + i = 0; + } + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ComplxStruc.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ComplxStruc.c new file mode 100644 index 000000000..5395d89b4 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ComplxStruc.c @@ -0,0 +1,45 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + int j; + i = __VERIFIER_nondet_int(); + j = i; + + while (i > 0) { + if (i >= j) { + i = i+1; + if (j < 5) { + j = j+1; + if (i-j>2) { + i = i+1; + } else { + j = j+1; + } + } else { + j = j-1; + } + } else { + if (i > 0 && j < 0) { + i = i-1; + if (j < -1) { + j = j+1; + } else { + i = i+1; + } + } else { + i = i+1; + if (j*2 > i) { + j = j-1; + } else { + j = j+1; + } + } + } + + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/ConvLower.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ConvLower.c new file mode 100644 index 000000000..12bd44c07 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/ConvLower.c @@ -0,0 +1,16 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + i = __VERIFIER_nondet_int(); + + while (i > 5) { + if (i != 10) { + i = i-1; + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig1_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig1_true-termination.c new file mode 100644 index 000000000..ce87ec46d --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig1_true-termination.c @@ -0,0 +1,27 @@ +/* + * Program from Fig.3 of + * 2013TACAS - Cook,See,Zuleger - Ramsey vs. Lexicographic Termination Proving + * + * Date: 8.6.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x>0 && y>0) { + if (__VERIFIER_nondet_int() != 0) { + x = x - 1; + } else { + x = __VERIFIER_nondet_int(); + y = y - 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig7a_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig7a_true-termination.c new file mode 100644 index 000000000..d594e46af --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig7a_true-termination.c @@ -0,0 +1,31 @@ +//#terminating +/* + * Program from Fig.7a of + * 2013TACAS - Cook,See,Zuleger - Ramsey vs. Lexicographic Termination Proving + * + * Date: 9.6.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, d; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + d = __VERIFIER_nondet_int(); + while (x>0 && y>0 && d>0) { + if (__VERIFIER_nondet_int() != 0) { + x = x - 1; + d = __VERIFIER_nondet_int(); + } else { + x = __VERIFIER_nondet_int(); + y = y - 1; + d = d - 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig7b_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig7b_true-termination.c new file mode 100644 index 000000000..b81c868b4 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig7b_true-termination.c @@ -0,0 +1,32 @@ +//#terminating +/* + * Program from Fig.7b of + * 2013TACAS - Cook,See,Zuleger - Ramsey vs. Lexicographic Termination Proving + * + * Date: 9.6.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, z; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + while (x>0 && y>0 && z>0) { + if (__VERIFIER_nondet_int() != 0) { + x = x - 1; + } else {if (__VERIFIER_nondet_int() != 0) { + y = y - 1; + z = __VERIFIER_nondet_int(); + } else { + z = z - 1; + x = __VERIFIER_nondet_int(); + }} + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig8a-modified_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig8a-modified_true-termination.c new file mode 100644 index 000000000..4f3a6bc46 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig8a-modified_true-termination.c @@ -0,0 +1,25 @@ +/* + * Modified variant of the program depicted in Fig.8a of + * 2013TACAS - Cook,See,Zuleger - Ramsey vs. Lexicographic Termination Proving + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int K, x; + K = __VERIFIER_nondet_int(); + x = __VERIFIER_nondet_int(); + while (x != K) { + if (x > K) { + x = x - 1; + } else { + x = x + 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig8a_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig8a_true-termination.c new file mode 100644 index 000000000..9184c5661 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig8a_true-termination.c @@ -0,0 +1,24 @@ +/* + * Program depicted in Fig.8a of + * 2013TACAS - Cook,See,Zuleger - Ramsey vs. Lexicographic Termination Proving + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + x = __VERIFIER_nondet_int(); + while (x != 0) { + if (x > 0) { + x = x - 1; + } else { + x = x + 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig8b_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig8b_true-termination.c new file mode 100644 index 000000000..7ecf64d4f --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig8b_true-termination.c @@ -0,0 +1,27 @@ +/* + * Program depicted in Fig.8b of + * 2013TACAS - Cook,See,Zuleger - Ramsey vs. Lexicographic Termination Proving + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, M; + x = __VERIFIER_nondet_int(); + M = __VERIFIER_nondet_int(); + if (M > 0) { + while (x != M) { + if (x > M) { + x = 0; + } else { + x = x + 1; + } + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Copenhagen_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Copenhagen_true-termination.c new file mode 100644 index 000000000..8326f9618 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Copenhagen_true-termination.c @@ -0,0 +1,22 @@ +/* + * Date: 2012-02-18 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x, y, oldx; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x >= 0 && y >= 0) { + oldx = x; + x = y - 1; + y = oldx - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Cousot.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Cousot.c new file mode 100644 index 000000000..e8356f871 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Cousot.c @@ -0,0 +1,21 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + int j; + i = __VERIFIER_nondet_int(); + j = __VERIFIER_nondet_int(); + + while (true) { + if (i < j) { + i = i+4; + } else { + j = j+1; + i = i+2; + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/DivMinus.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/DivMinus.c new file mode 100644 index 000000000..b6a53d3d1 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/DivMinus.c @@ -0,0 +1,19 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + int res; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + res = 0; + + while (x >= y && y > 0) { + x = x-y; + res = res + 1; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/DivMinus2.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/DivMinus2.c new file mode 100644 index 000000000..450a43869 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/DivMinus2.c @@ -0,0 +1,29 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + int ytmp; + int res; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + res = 0; + + while (x >= y && y > 0) { + ytmp = y; + while (ytmp != 0) { + if (ytmp > 0) { + ytmp = ytmp - 1; + x = x - 1; + } else { + ytmp = ytmp + 1; + x = x + 1; + } + } + res = res + 1; + } + + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/DivWithoutMinus.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/DivWithoutMinus.c new file mode 100644 index 000000000..6ad85fe53 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/DivWithoutMinus.c @@ -0,0 +1,29 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + int z; + int res; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = y; + res = 0; + + while (z > 0 && (y == 0 || y > 0 && x > 0)) { + + if (y == 0) { + res = res + 1; + y = z; + } + else { + x = x + 1; + y = y - 1; + } + } + + return 0; +} + diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/DoubleNeg.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/DoubleNeg.c new file mode 100644 index 000000000..8c41666eb --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/DoubleNeg.c @@ -0,0 +1,17 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + int j; + i = __VERIFIER_nondet_int(); + j = __VERIFIER_nondet_int(); + + while (i*j > 0) { + i = i - 1; + j = j - 1; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Et1.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Et1.c new file mode 100644 index 000000000..2e1fc1d11 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Et1.c @@ -0,0 +1,17 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int a; + int b; + a = - __VERIFIER_nondet_int(); + b = - __VERIFIER_nondet_int(); + + while (a > b) { + b = b + a; + a = a + 1; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Et2.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Et2.c new file mode 100644 index 000000000..5e7e1f14a --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Et2.c @@ -0,0 +1,19 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int a; + int b; + int r; + a = __VERIFIER_nondet_int(); + b = __VERIFIER_nondet_int(); + + while (b > 0) { + r = __VERIFIER_nondet_int(); + b = a - 1 - r; + a = a - 1 - r; + } + + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Et4.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Et4.c new file mode 100644 index 000000000..28bdf9034 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Et4.c @@ -0,0 +1,22 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int a; + int b; + int c; + int r; + a = __VERIFIER_nondet_int(); + b = __VERIFIER_nondet_int(); + c = __VERIFIER_nondet_int(); + + while ( (b - c >= 1) && (a == c)) { + r = __VERIFIER_nondet_int(); + b = 10; + c = c + 1 + r; + a = c; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Even.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Even.c new file mode 100644 index 000000000..4f6168517 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Even.c @@ -0,0 +1,15 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + int b; + i = __VERIFIER_nondet_int(); + + while (i != 1 && i != 0) { + i = i-2; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Ex01.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Ex01.c new file mode 100644 index 000000000..4039fdb5b --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Ex01.c @@ -0,0 +1,14 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + i = __VERIFIER_nondet_int(); + + while (i < 0) { + i = i-1; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Ex02.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Ex02.c new file mode 100644 index 000000000..3383f515a --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Ex02.c @@ -0,0 +1,16 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + i = __VERIFIER_nondet_int(); + + while (i > 0) { + if (i != 5) { + i = i-1; + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Ex03.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Ex03.c new file mode 100644 index 000000000..efaad52ce --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Ex03.c @@ -0,0 +1,16 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + i = __VERIFIER_nondet_int(); + + while (i < 0) { + if (i != -5) { + i = i+1; + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Ex04.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Ex04.c new file mode 100644 index 000000000..614f7da08 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Ex04.c @@ -0,0 +1,14 @@ +typedef enum { false, true } bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + i = __VERIFIER_nondet_int(); + + while (true) { + i = i-1; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Ex05.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Ex05.c new file mode 100644 index 000000000..e9c5bc8a9 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Ex05.c @@ -0,0 +1,12 @@ +typedef enum { false, true } bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + i = __VERIFIER_nondet_int(); + + while (true) {} + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Ex06.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Ex06.c new file mode 100644 index 000000000..c61869b18 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Ex06.c @@ -0,0 +1,19 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + i = __VERIFIER_nondet_int(); + + while (i >= -5 && i <= 5) { + if (i > 0) { + i = i-1; + } + if (i < 0) { + i = i+1; + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Ex07.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Ex07.c new file mode 100644 index 000000000..3894980f9 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Ex07.c @@ -0,0 +1,19 @@ +typedef enum { false, true } bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + i = __VERIFIER_nondet_int(); + + while (true) { + if (i > 0) { + i = i-1; + } + if (i < 0) { + i = i+1; + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Ex08.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Ex08.c new file mode 100644 index 000000000..0a0448930 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Ex08.c @@ -0,0 +1,26 @@ +typedef enum { false, true } bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + int up; + i = __VERIFIER_nondet_int(); + up = 0; + + while (i > 0) { + if (i == 1) { + up = 1; + } + if (i == 10) { + up = 0; + } + if (up == 1) { + i = i+1; + } else { + i = i-1; + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Factorial.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Factorial.c new file mode 100644 index 000000000..850ca2b7f --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Factorial.c @@ -0,0 +1,19 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int j; + int i; + int fac; + j = __VERIFIER_nondet_int(); + i = 1; + fac = 1; + + while (fac != j) { + fac = fac * i; + i = i+1; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Fibonacci.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Fibonacci.c new file mode 100644 index 000000000..d6f9f3b26 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Fibonacci.c @@ -0,0 +1,22 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int n; + int i; + int j; + int t; + n = __VERIFIER_nondet_int(); + i = 0; + j = 1; + t = 0; + + while (j != n) { + t = j+i; + i = j; + j = t; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Flip.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Flip.c new file mode 100644 index 000000000..e16a4f8f5 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Flip.c @@ -0,0 +1,20 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + int j; + int t; + i = __VERIFIER_nondet_int(); + j = __VERIFIER_nondet_int(); + t = 0; + + while (i != 0 && j != 0) { + t = i; + i = j; + j = t; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Flip2.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Flip2.c new file mode 100644 index 000000000..5bf002d24 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Flip2.c @@ -0,0 +1,28 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + int j; + int t; + i = __VERIFIER_nondet_int(); + j = __VERIFIER_nondet_int(); + t = 0; + + while (i > 0 && j > 0) { + if (i < j) { + t = i; + i = j; + j = t; + } else { + if (i > j) { + j = i; + } else { + i = i-1; + } + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/GCD.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/GCD.c new file mode 100644 index 000000000..1a99184ae --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/GCD.c @@ -0,0 +1,35 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + int tmp; + int xtmp; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + + while(y != 0) { + tmp = y; + xtmp = x; + + if(x <= 0 || y <= 0) { + y = 0; + } else { + if (x == y) { + y = 0; + } else { + while(xtmp>y) { + xtmp = xtmp - y; + } + } + } + + y = xtmp; + x = tmp; + } + + return 0; +} + diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/GCD2.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/GCD2.c new file mode 100644 index 000000000..5ab72d4dd --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/GCD2.c @@ -0,0 +1,31 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + int tmp; + int xtmp; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + + while((y != 0 && x >= 0) && y >= 0) { + tmp = y; + xtmp = x; + + if (x == y) { + y = 0; + } + else { + while(xtmp>y) { + xtmp = xtmp - y; + } + } + + y = xtmp; + x = tmp; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/GCD3.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/GCD3.c new file mode 100644 index 000000000..3f6d527ae --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/GCD3.c @@ -0,0 +1,41 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + int tmp; + int xtmp; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + + while(y > 0 && x > 0) { + tmp = y; + xtmp = x; + + if(y == 0) { + y = y; + } + else { + if(y < 0) { + xtmp = -xtmp; + } + } + if(xtmp > 0) { + while(xtmp>=y) { + xtmp = xtmp - y; + } + y = xtmp; + } else { + while(xtmp < 0) { + xtmp = xtmp - y; + } + y = xtmp; + } + + x = tmp; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/GCD4.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/GCD4.c new file mode 100644 index 000000000..933e985cb --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/GCD4.c @@ -0,0 +1,26 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + int tmp; + int xtmp; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + + while(y > 0 && x > 0) { + tmp = y; + xtmp = x; + + while(xtmp>=y && y > 0) { + xtmp = xtmp - y; + } + + y = xtmp; + x = tmp; + } + + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Gauss.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Gauss.c new file mode 100644 index 000000000..4b5937b6a --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Gauss.c @@ -0,0 +1,17 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int n; + int sum; + n = __VERIFIER_nondet_int(); + sum = 0; + + while (n != 0) { + sum = sum + n; + n = n - 1; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/GopanReps-CAV2006-Fig1a_true-termination.c.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/GopanReps-CAV2006-Fig1a_true-termination.c.c new file mode 100644 index 000000000..eebdcb7db --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/GopanReps-CAV2006-Fig1a_true-termination.c.c @@ -0,0 +1,27 @@ +/* + * Program from Fig.1a of + * 2006CAV - Gopan,Reps - Lookahead Widening + * + * Date: 2014-06-22 + * Author: Caterina Urban, Matthias Heizmann + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = 0; + y = 0; + while (y >= 0) { + if (x <= 50) { + y = y + 1; + } else { + y = y - 1; + } + x = x + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Gothenburg_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Gothenburg_true-termination.c new file mode 100644 index 000000000..cd3fa62c3 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Gothenburg_true-termination.c @@ -0,0 +1,28 @@ +/* + * Date: 2012-02-12 + * Author: leike@informatik.uni-freiburg.de + * + * Ranking function: f(x, y, a, b) = x + y; + * needs the loop invariant a = b. + * (More diffcult version of Stockholm.) + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int a, b, x, y; + a = __VERIFIER_nondet_int(); + b = __VERIFIER_nondet_int(); + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + if (a == b) { + while (x >= 0 || y >= 0) { + x = x + a - b - 1; + y = y + b - a - 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/GulavaniGulwani-CAV2008-Fig1a_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/GulavaniGulwani-CAV2008-Fig1a_true-termination.c new file mode 100644 index 000000000..22391b2f6 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/GulavaniGulwani-CAV2008-Fig1a_true-termination.c @@ -0,0 +1,28 @@ +/* + * Program from Fig.1a of + * 2008CAV - Gulavani,Gulwani - A Numerical Abstract Domain Based on Expression Abstraction and Max Operator with Application in Timing Analysis + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, z, i; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + i = __VERIFIER_nondet_int(); + while (x < y) { + i = i + 1; + if (z > x) { + x = x + 1; + } else { + z = z + 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/GulavaniGulwani-CAV2008-Fig1b_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/GulavaniGulwani-CAV2008-Fig1b_true-termination.c new file mode 100644 index 000000000..a4be54c53 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/GulavaniGulwani-CAV2008-Fig1b_true-termination.c @@ -0,0 +1,28 @@ +/* + * Program from Fig.1b of + * 2008CAV - Gulavani,Gulwani - A Numerical Abstract Domain Based on Expression Abstraction and Max Operator with Application in Timing Analysis + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, i, n, m; + x = __VERIFIER_nondet_int(); + i = __VERIFIER_nondet_int(); + n = __VERIFIER_nondet_int(); + m = __VERIFIER_nondet_int(); + while (x < n) { + i = i + 1; + x = x + 1; + } + while (x < m) { + i = i + 1; + x = x + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/GulavaniGulwani-CAV2008-Fig1c_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/GulavaniGulwani-CAV2008-Fig1c_true-termination.c new file mode 100644 index 000000000..c1308ed05 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/GulavaniGulwani-CAV2008-Fig1c_true-termination.c @@ -0,0 +1,23 @@ +/* + * Program from Fig.1c of + * 2008CAV - Gulavani,Gulwani - A Numerical Abstract Domain Based on Expression Abstraction and Max Operator with Application in Timing Analysis + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, i, n; + x = __VERIFIER_nondet_int(); + i = __VERIFIER_nondet_int(); + n = __VERIFIER_nondet_int(); + while (x < n) { + i = i + 1; + x = x + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/GulwaniJainKoskinen-PLDI2009-Fig1_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/GulwaniJainKoskinen-PLDI2009-Fig1_true-termination.c new file mode 100644 index 000000000..ba791efcc --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/GulwaniJainKoskinen-PLDI2009-Fig1_true-termination.c @@ -0,0 +1,34 @@ +//#Termination +/* + * Program from Fig.1a of + * 2009PLDI - Gulwani,Jain,Koskinen - Control-flow refinement and progress invariants for bound analysis + * + * Date: 9.12.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int id, maxId, tmp; + id = __VERIFIER_nondet_int(); + maxId = __VERIFIER_nondet_int(); + + + if(0 <= id && id < maxId) { + tmp = id+1; + while(tmp!=id && __VERIFIER_nondet_int() != 0) { + if (tmp <= maxId) { + tmp = tmp + 1; + } else { + tmp = 0; + } + } + } + + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig1_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig1_true-termination.c new file mode 100644 index 000000000..c77bb4877 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig1_true-termination.c @@ -0,0 +1,22 @@ +/* + * Program from Figure 1 of + * 2013ATVA - Heizmann, Hoenicke, Leike, Podelski - Linear Ranking for Linear Lasso Programs + * + * Date: 2014-06-29 + * Author: Jan Leike + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + y = 23; + while (x >= 0) { + x = x - y; + y = y + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig4_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig4_true-termination.c new file mode 100644 index 000000000..c0b92b3ad --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig4_true-termination.c @@ -0,0 +1,21 @@ +/* + * Program from Figure 4 of + * 2013ATVA - Heizmann, Hoenicke, Leike, Podelski - Linear Ranking for Linear Lasso Programs + * + * Date: 2014-06-29 + * Author: Jan Leike + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + y = 23; + while (x >= y) { + x = x - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig6_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig6_true-termination.c new file mode 100644 index 000000000..c86e92b43 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig6_true-termination.c @@ -0,0 +1,22 @@ +/* + * Program from Figure 6 of + * 2013ATVA - Heizmann, Hoenicke, Leike, Podelski - Linear Ranking for Linear Lasso Programs + * + * Date: 2014-06-29 + * Author: Jan Leike + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x >= 0 && y >= 1) { + x = x - y; + y = __VERIFIER_nondet_int(); + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig8_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig8_true-termination.c new file mode 100644 index 000000000..f89980591 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig8_true-termination.c @@ -0,0 +1,23 @@ +/* + * Program from Figure 8 of + * 2013ATVA - Heizmann, Hoenicke, Leike, Podelski - Linear Ranking for Linear Lasso Programs + * + * Date: 2014-06-29 + * Author: Jan Leike + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + if (2*y >= 1) { + while (x >= 0) { + x = x - 2*y + 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig9_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig9_true-termination.c new file mode 100644 index 000000000..1a145398c --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig9_true-termination.c @@ -0,0 +1,24 @@ +/* + * Program from Figure 9 of + * 2013ATVA - Heizmann, Hoenicke, Leike, Podelski - Linear Ranking for Linear Lasso Programs + * + * Date: 2014-06-29 + * Author: Jan Leike + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, z; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + if (2*y >= z) { + while (x >= 0 && z == 1) { + x = x - 2*y + 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/IntPath.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/IntPath.c new file mode 100644 index 000000000..de179ee34 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/IntPath.c @@ -0,0 +1,21 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + int x; + int y; + i = __VERIFIER_nondet_int(); + x = 0; + y = 0; + + if (i > 10) { + x = 1; + } else { + y = 1; + } + while (x == y) { } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/KroeningSharyginaTsitovichWintersteiger-CAV2010-Ex_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/KroeningSharyginaTsitovichWintersteiger-CAV2010-Ex_true-termination.c new file mode 100644 index 000000000..edceadef9 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/KroeningSharyginaTsitovichWintersteiger-CAV2010-Ex_true-termination.c @@ -0,0 +1,25 @@ +/* + * Program from the example (without number) of + * 2010CAV - Kroening,Sharygina,Tsitovich,Wintersteiger - Termination Analysis with Compositional Transition Invariants + * + * Date: 2014 + * Author: Caterina Urban + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + i = __VERIFIER_nondet_int(); + while (i < 255) { + if (__VERIFIER_nondet_int() != 0) { + i = i + 1; + } else { + i = i + 2; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/LarrazOliverasRodriguez-CarbonellRubio-FMCAD2013-Fig1_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/LarrazOliverasRodriguez-CarbonellRubio-FMCAD2013-Fig1_true-termination.c new file mode 100644 index 000000000..52d9a990c --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/LarrazOliverasRodriguez-CarbonellRubio-FMCAD2013-Fig1_true-termination.c @@ -0,0 +1,32 @@ +/* + * Program from Fig.1 of + * 2013FMCAD - Larraz,Oliveras,Rodriguez-Carbonell,Rubio - Proving Termination of Imperative Programs Using Max-SMT + * + * Date: 12.12.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, z; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + // continue only for values where there won't be any overflow or underflow + // on systems where sizeof(int)=4 holds. + if (x <= 10000 && x >= -10000 && y <= 10000 && z <= 10000) { + while (y >= 1) { + x = x - 1; + while (y < z) { + x = x + 1; + z = z - 1; + } + y = x + y; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Lcm.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Lcm.c new file mode 100644 index 000000000..9792e9b65 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Lcm.c @@ -0,0 +1,22 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int a; + int b; + int am; + int bm; + am = a; + bm = b; + + while (am != bm) { + if (am > bm) { + bm = bm+b; + } else { + am = am+a; + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Ex1_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Ex1_true-termination.c new file mode 100644 index 000000000..eb2b60a79 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Ex1_true-termination.c @@ -0,0 +1,25 @@ +/* + * Program from Example 1 of + * 2014TACAS - Leike, Heizmann - Ranking Templates for Linear Loops + * + * Date: 2014-06-29 + * Author: Jan Leike + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int q, y; + q = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (q > 0) { + if (y > 0) { + q = q - y - 1; + } else { + q = q + y - 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Ex7_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Ex7_true-termination.c new file mode 100644 index 000000000..c4058bc83 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Ex7_true-termination.c @@ -0,0 +1,29 @@ +/* + * Program from Example 7 of + * 2014TACAS - Leike, Heizmann - Ranking Templates for Linear Loops + * + * In the conference version of this paper, the authors claimed that this + * lasso program does not have a multiphase ranking function. However, this + * lasso program has the following 2-phase ranking function. + * f_0(x, y) = 2q + z + * f_1(x, y) = q + * The authors thank Samir Genaim for pointing out this error in their paper. + * + * Date: 2014-06-29 + * Author: Jan Leike + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int q, z; + q = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + while (q > 0) { + q = q + z - 1; + z = -z; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Ex8_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Ex8_true-termination.c new file mode 100644 index 000000000..2bf539a6f --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Ex8_true-termination.c @@ -0,0 +1,27 @@ +/* + * Program from Example 8 of + * 2014TACAS - Leike, Heizmann - Ranking Templates for Linear Loops + * + * Date: 2014-06-29 + * Author: Jan Leike + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int q, y; + q = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (q > 0) { + if (y > 0) { + y = 0; + q = __VERIFIER_nondet_int(); + } else { + y = y - 1; + q = q - 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Ex9_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Ex9_true-termination.c new file mode 100644 index 000000000..131feeea1 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Ex9_true-termination.c @@ -0,0 +1,27 @@ +/* + * Program from Example 9 of + * 2014TACAS - Leike, Heizmann - Ranking Templates for Linear Loops + * + * Date: 2014-06-29 + * Author: Jan Leike + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int p, q; + q = __VERIFIER_nondet_int(); + p = __VERIFIER_nondet_int(); + while (q > 0 && p > 0 && p != q) { + if (q < p) { + q = q - 1; + } else { + if (p < q) { + p = p - 1; + } + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Fig1_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Fig1_true-termination.c new file mode 100644 index 000000000..f1e5e26a4 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Fig1_true-termination.c @@ -0,0 +1,22 @@ +/* + * Program from Figure 1 of + * 2014TACAS - Leike, Heizmann - Ranking Templates for Linear Loops + * + * Date: 2014-06-29 + * Author: Jan Leike + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int q, y; + q = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (q > 0) { + q = q - y; + y = y + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-WST2014-Ex5_false-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-WST2014-Ex5_false-termination.c new file mode 100644 index 000000000..3b6b0040b --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-WST2014-Ex5_false-termination.c @@ -0,0 +1,24 @@ +/* + * Program from Example 5 of + * 2014WST - Leike, Heizmann - Geometric Series as Nontermination Arguments for Linear Lasso Programs + * + * Date: 2014-06-29 + * Author: Jan Leike + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int a, b, olda; + a = __VERIFIER_nondet_int(); + b = __VERIFIER_nondet_int(); + while (a >= 7) { + olda = a; + a = b; + b = olda + 1; + // b = a + 1; is a typo in the paper + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-WST2014-Ex6_false-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-WST2014-Ex6_false-termination.c new file mode 100644 index 000000000..b910c955e --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-WST2014-Ex6_false-termination.c @@ -0,0 +1,22 @@ +/* + * Program from Example 6 of + * 2014WST - Leike, Heizmann - Geometric Series as Nontermination Arguments for Linear Lasso Programs + * + * Date: 2014-06-29 + * Author: Jan Leike + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int a, b; + a = __VERIFIER_nondet_int(); + b = __VERIFIER_nondet_int(); + while (a >= 1 && b >= 1) { + a = 2*a; + b = 3*b; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Lobnya-Boolean-Reordered_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Lobnya-Boolean-Reordered_true-termination.c new file mode 100644 index 000000000..27a8e74b8 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Lobnya-Boolean-Reordered_true-termination.c @@ -0,0 +1,28 @@ +/* + * Date: 2013-07-10 + * Author: heizmann@informatik.uni-freiburg.de + * + * Ranking function: f(x) = x + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main () +{ + int x, b; + x = __VERIFIER_nondet_int(); + b = __VERIFIER_nondet_int(); + while (b != 0) { + b = __VERIFIER_nondet_int(); + x = x - 1; + if (x >= 0) { + b = 1; + } else { + b = 0; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Log.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Log.c new file mode 100644 index 000000000..d17b3047c --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Log.c @@ -0,0 +1,28 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int xtmp; + int res; + int restmp; + x = __VERIFIER_nondet_int(); + res = 0; + + while (x > 1) { + xtmp = x; + restmp = 0; + + while (xtmp > 1) { + xtmp = xtmp-2; + restmp = restmp+1; + } + + x = xtmp; + res = res+1; + + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/LogAG.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/LogAG.c new file mode 100644 index 000000000..0b189d203 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/LogAG.c @@ -0,0 +1,29 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int xtmp; + int res; + int restmp; + x = __VERIFIER_nondet_int(); + res = 0; + + while (x > 1) { + xtmp = x-2; + restmp = 0; + + while (xtmp > 1) { + xtmp = xtmp-2; + restmp = restmp+1; + } + + x = xtmp+1; + res = res+1; + + } + + return 0; +} + diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/LogMult.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/LogMult.c new file mode 100644 index 000000000..45cf5cb17 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/LogMult.c @@ -0,0 +1,22 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + int res; + x = __VERIFIER_nondet_int(); + y = 2; + res = 1; + + if (x < 0 || y < 1) { } + else { + while (x > y) { + y = y*y; + res = 2*res; + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Loop.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Loop.c new file mode 100644 index 000000000..5a2bf1012 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Loop.c @@ -0,0 +1,16 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int a; + int b; + int i; + a = 5; + b = 3; + i = 0; + + while (i < 10) { i = i + 0; } + + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Madrid_false-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Madrid_false-termination.c new file mode 100644 index 000000000..09ee3b6cb --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Madrid_false-termination.c @@ -0,0 +1,18 @@ +/* + * Date: 2013-05-02 + * Author: heizmann@informatik.uni-freiburg.de + * + */ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x; + x = 7; + while (true) { + x = 2; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Marbie1.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Marbie1.c new file mode 100644 index 000000000..1cbc8c6ba --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Marbie1.c @@ -0,0 +1,14 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + i = __VERIFIER_nondet_int(); + + while (i > 2) { + i = i+1; + } + + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Marbie2.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Marbie2.c new file mode 100644 index 000000000..ef448c601 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Marbie2.c @@ -0,0 +1,14 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + i = __VERIFIER_nondet_int(); + + while(5<8) { + i = i+1; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Masse-VMCAI2014-Ex6_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Masse-VMCAI2014-Ex6_true-termination.c new file mode 100644 index 000000000..1b25ba686 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Masse-VMCAI2014-Ex6_true-termination.c @@ -0,0 +1,24 @@ +/* + * Program from Ex6 of + * 2014VMCAI - Massé - Policy Iteration-Based Conditional Termination and Ranking Functions + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x >= 0) { + x = x + y; + if (y >= 0) { + y = y - 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Masse-VMCAI2014-Fig1a_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Masse-VMCAI2014-Fig1a_true-termination.c new file mode 100644 index 000000000..e81461645 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Masse-VMCAI2014-Fig1a_true-termination.c @@ -0,0 +1,26 @@ +/* + * Program from Fig.1a of + * 2014VMCAI - Massé - Policy Iteration-Based Conditional Termination and Ranking Functions + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int a, b; + a = __VERIFIER_nondet_int(); + b = __VERIFIER_nondet_int(); + while (a >= 0) { + a = a + b; + if (b >= 0) { + b = -b - 1; + } else { + b = -b; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Masse-VMCAI2014-Fig1b_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Masse-VMCAI2014-Fig1b_true-termination.c new file mode 100644 index 000000000..2a11abd1e --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Masse-VMCAI2014-Fig1b_true-termination.c @@ -0,0 +1,24 @@ +/* + * Program from Fig.1b of + * 2014VMCAI - Massé - Policy Iteration-Based Conditional Termination and Ranking Functions + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + x = __VERIFIER_nondet_int(); + while (x <= 100) { + if (__VERIFIER_nondet_int() != 0) { + x = -2*x + 2; + } else { + x = -3*x - 2; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/McCarthyIterative.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/McCarthyIterative.c new file mode 100644 index 000000000..94907cb3c --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/McCarthyIterative.c @@ -0,0 +1,22 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int c; + x = __VERIFIER_nondet_int(); + c = 1; + + while (c > 0) { + if (x > 100) { + x = x-10; + c = c-1; + } else { + x = x+11; + c = c+1; + } + } + + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/MenloPark_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/MenloPark_true-termination.c new file mode 100644 index 000000000..37d1200c3 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/MenloPark_true-termination.c @@ -0,0 +1,28 @@ +/* + * Date: 2012-12-14 + * Author: Jan Leike and heizmann@informatik.uni-freiburg.de + * + * Has linear ranking function f(x)=x with supporting invariant + * (y>=100 /\ z=1) \/ (y>=99 /\ z=1). + * However, there is no linear supporting invariant for this ranking function. + * + * Has a three phase ranking function. + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x, y, z; + x = __VERIFIER_nondet_int(); + y = 100; + z = 1; + while (x >= 0) { + x = x - y; + y = y - z; + z = -z; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Middle.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Middle.c new file mode 100644 index 000000000..f8c7ca67d --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Middle.c @@ -0,0 +1,17 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + int j; + i = __VERIFIER_nondet_int(); + j = __VERIFIER_nondet_int(); + + while (i != j) { + i = i-1; + j = j+1; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/MinusBuiltIn.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/MinusBuiltIn.c new file mode 100644 index 000000000..6afe19ba9 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/MinusBuiltIn.c @@ -0,0 +1,20 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + int res; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + res = 0; + + while (x > y) { + y = x+1; + res = res+1; + } + + return 0; +} + diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/MinusMin.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/MinusMin.c new file mode 100644 index 000000000..c6d31a780 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/MinusMin.c @@ -0,0 +1,25 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + int res; + int min; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + res = 0; + + if (x < y) { min = x; } + else { min = y; } + + while (min == y) { + y = y+1; + res = res+1; + if (x < y) { min = x; } + else { min = y; } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/MinusUserDefined.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/MinusUserDefined.c new file mode 100644 index 000000000..488e73e97 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/MinusUserDefined.c @@ -0,0 +1,28 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + int res; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + res = 0; + + while (x > 0 && y > 0) { + x = x-1; + y = y-1; + } + + while (x > 0) { + y = y+1; + res = res+1; + while (x > 0 && y > 0) { + x = x-1; + y = y-1; + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/MirrorInterv.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/MirrorInterv.c new file mode 100644 index 000000000..0a7222663 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/MirrorInterv.c @@ -0,0 +1,24 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + int range; + i = __VERIFIER_nondet_int(); + range = 20; + + while (-range <= i && i <= range) { + if (range-i < 5 || range+i < 5) { + i = i*(-1); + } else { + range = range+1; + i = i-1; + if (i == 0) { + range = -1; + } + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/MirrorIntervSim.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/MirrorIntervSim.c new file mode 100644 index 000000000..d0de7e28d --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/MirrorIntervSim.c @@ -0,0 +1,26 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + i = __VERIFIER_nondet_int(); + + while (i != 0) { + if (-5 <= i && i <= 35) { + if (i < 0) { + i = -5; + } else { + if (i > 30) { + i = 35; + } else { + i = i-1; + } + } + } else { + i = 0; + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Mysore_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Mysore_true-termination.c new file mode 100644 index 000000000..6c25549b9 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Mysore_true-termination.c @@ -0,0 +1,25 @@ +/* + * Date: 2012-02-18 + * Author: leike@informatik.uni-freiburg.de + * + * Ranking function: f(x, c) = x + c; + * needs the for the lower bound to be able to depend on c. + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int c, x; + x = __VERIFIER_nondet_int(); + c = __VERIFIER_nondet_int(); + if (c >= 2) { + while (x + c >= 0) { + x = x - c; + c = c + 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_00.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_00.c new file mode 100644 index 000000000..f76231f81 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_00.c @@ -0,0 +1,14 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + i = 0; + + while (i < 100) { + i = i+0; + } + + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_01.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_01.c new file mode 100644 index 000000000..883277939 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_01.c @@ -0,0 +1,38 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int c; + int i; + c = (24*6)*6; + + if (c <= 10) { + i = 0; + while (i < 100) { + i = i+1; + } + } + else { + if (c <= 50) { + i = 0; + while (i < 101) { + i = i+1; + } + } + if (c <= 100) { + i = 0; + while (i < 102) { + i = i+1; + } + } + else { + i = 0; + while (i < 103) { + i = i+0; + } + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_02.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_02.c new file mode 100644 index 000000000..2d04fbc1f --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_02.c @@ -0,0 +1,19 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + int j; + i = 0; + + while (i < 100) { + j = 0; + while (j < 1) { + j = j+0; + } + i = i+1; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_03.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_03.c new file mode 100644 index 000000000..c25552a71 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_03.c @@ -0,0 +1,19 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + int j; + i = 0; + + while (i < 100) { + j = 0; + while (j < 1) { + j = j+1; + } + i = i+0; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_04.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_04.c new file mode 100644 index 000000000..57e3ba595 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_04.c @@ -0,0 +1,38 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + int j; + int k; + int l; + int m; + int a; + int b; + i = 0; + + while (i < 100) { + a = i+2; + j = 0; + while (j < a) { + k = i+j+3; + while (k >= 0) { + b = i+j+k+4; + l = 0; + while (l < b) { + m = i+j+k+l+1000; + while (m >= 0) { + m = m-0; + } + l = l+1; + } + k = k-1; + } + j = j+1; + } + i = i+1; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_10.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_10.c new file mode 100644 index 000000000..10b1f0dc9 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_10.c @@ -0,0 +1,17 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + int j; + j = 100; + i = 0; + + while (i < j) { + j = j+1; + i = i+1; + } + + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_12.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_12.c new file mode 100644 index 000000000..e5a1aac2e --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_12.c @@ -0,0 +1,17 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + int j; + j = 0; + i = 0; + + while (i <= j) { + if (j-i < 1) { j = j+2; } + i = i+1; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_13.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_13.c new file mode 100644 index 000000000..3bb64eabd --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_13.c @@ -0,0 +1,17 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + int j; + j = 100; + i = 0; + + while (i < j) { + if (51 < j) { i = i+1; j = j-1; } + else { i = i-1; j = j+1; } + } + + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_21.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_21.c new file mode 100644 index 000000000..52cbde5e3 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_21.c @@ -0,0 +1,15 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + i = 0; + + while (i < 100) { + i = i+1; + i = i-1; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_22.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_22.c new file mode 100644 index 000000000..38210a30c --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_22.c @@ -0,0 +1,15 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + i = 0; + + while (i < 100) { + if (i < 50) { i = i+1; } + else { i = i-1; } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_23.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_23.c new file mode 100644 index 000000000..020050d5a --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_23.c @@ -0,0 +1,15 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + i = 0; + + while (i < 100) { + if (i < 50) { i = 51; } + else { i = 49; } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_24.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_24.c new file mode 100644 index 000000000..3145f0378 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_24.c @@ -0,0 +1,18 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int a; + int b; + a = 1; + b = 2; + + while (a + b < 5) { + a = a - b; + b = a + b; + a = b - a; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/NarrowKonv.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NarrowKonv.c new file mode 100644 index 000000000..01573321c --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NarrowKonv.c @@ -0,0 +1,23 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + int range; + i = __VERIFIER_nondet_int(); + range = 20; + + while (0 <= i && i <= range) { + if (!(0 == i && i == range)) { + if (i == range) { + i = 0; + range = range-1; + } else { + i = i+1; + } + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Narrowing.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Narrowing.c new file mode 100644 index 000000000..8381b8aaf --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Narrowing.c @@ -0,0 +1,32 @@ +typedef enum { false, true } bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + int range; + int up; + i = __VERIFIER_nondet_int(); + range = 20; + up = 0; + + while (0 <= i && i <= range) { + if (i == 0) { + up = 1; + } + if (i == range) { + up = 0; + } + if (up == 1) { + i = i+1; + } + if (up == 0) { + i = i-1; + } + if (i == range-2) { + range = range-1; + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Nested.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Nested.c new file mode 100644 index 000000000..4ac9e24cf --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Nested.c @@ -0,0 +1,20 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + int j; + i = 0; + j = 3; + + while (i < 10) { + while (j < 12) { + j = j-1; + j = j+2; + } + i = i+1; + } + + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTermination1_false-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTermination1_false-termination.c new file mode 100644 index 000000000..53e286a06 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTermination1_false-termination.c @@ -0,0 +1,18 @@ +/* + * Date: 2014-06-26 + * Author: leike@informatik.uni-freiburg.de + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + x = __VERIFIER_nondet_int(); + while (x > 1) { + x = 2*x; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTermination2_false-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTermination2_false-termination.c new file mode 100644 index 000000000..73e588cac --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTermination2_false-termination.c @@ -0,0 +1,19 @@ +/* + * Date: 2014-06-26 + * Author: leike@informatik.uni-freiburg.de + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, oldx; + x = __VERIFIER_nondet_int(); + while (x > 1 && x >= 2*oldx) { + oldx = x; + x = __VERIFIER_nondet_int(); + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTermination4_false-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTermination4_false-termination.c new file mode 100644 index 000000000..0710512d9 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTermination4_false-termination.c @@ -0,0 +1,23 @@ +/* + * Date: 2013-12-20 + * Author: leike@informatik.uni-freiburg.de + * + * Difficult example for non-termination + * + * y = x^log_2(3) + */ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x, y; + x = 1; + y = 1; + while (x >= 0) { + x = 2*x; + y = 3*y; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTerminationSimple2_false-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTerminationSimple2_false-termination.c new file mode 100644 index 000000000..8a7f7c3be --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTerminationSimple2_false-termination.c @@ -0,0 +1,20 @@ +/* + * Date: 2013-12-16 + * Author: leike@informatik.uni-freiburg.de + * + * Simple example for non-termination + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x; + x = __VERIFIER_nondet_int(); + while (x >= 0) { + x = x + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTerminationSimple3_false-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTerminationSimple3_false-termination.c new file mode 100644 index 000000000..c3357cc35 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTerminationSimple3_false-termination.c @@ -0,0 +1,21 @@ +/* + * Date: 2013-12-16 + * Author: leike@informatik.uni-freiburg.de + * + * Does not terminate for c >= 0. + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int c, x; + c = __VERIFIER_nondet_int(); + x = __VERIFIER_nondet_int(); + while (x >= 0) { + x = x + c; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTerminationSimple4_false-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTerminationSimple4_false-termination.c new file mode 100644 index 000000000..4c8e59dcf --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTerminationSimple4_false-termination.c @@ -0,0 +1,23 @@ +/* + * Date: 2014-06-26 + * Author: leike@informatik.uni-freiburg.de + * + * Does not terminate for y >= 5. + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + if (y >= 5) { + while (x >= 0) { + y = y - 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTerminationSimple5_false-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTerminationSimple5_false-termination.c new file mode 100644 index 000000000..f6db1b940 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTerminationSimple5_false-termination.c @@ -0,0 +1,22 @@ +/* + * Date: 2014-06-26 + * Author: leike@informatik.uni-freiburg.de + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x; + x = __VERIFIER_nondet_int(); + while (x >= 0) { + if (__VERIFIER_nondet_int() != 0) { + x = x - 1; + } else { + x = x + 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTerminationSimple6_false-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTerminationSimple6_false-termination.c new file mode 100644 index 000000000..01f94ab05 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTerminationSimple6_false-termination.c @@ -0,0 +1,19 @@ +/* + * Date: 2014-06-26 + * Author: leike@informatik.uni-freiburg.de + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int c, x; + c = 5; + x = __VERIFIER_nondet_int(); + while (x >= 0) { + x = x + c; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTerminationSimple7_false-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTerminationSimple7_false-termination.c new file mode 100644 index 000000000..4e4f51160 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTerminationSimple7_false-termination.c @@ -0,0 +1,21 @@ +/* + * Date: 2014-06-26 + * Author: leike@informatik.uni-freiburg.de + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int c, x; + x = __VERIFIER_nondet_int(); + c = __VERIFIER_nondet_int(); + if (c == 0) { + while (x >= 0) { + x = x + c; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTerminationSimple8_false-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTerminationSimple8_false-termination.c new file mode 100644 index 000000000..e212417a0 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTerminationSimple8_false-termination.c @@ -0,0 +1,28 @@ +/* + * Date: 2014-06-26 + * Author: leike@informatik.uni-freiburg.de + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x; + x = __VERIFIER_nondet_int(); + while (x >= 0) { + if (__VERIFIER_nondet_int() != 0) { + x = x + 1; + } else {if (__VERIFIER_nondet_int() != 0) { + x = x + 2; + } else {if (__VERIFIER_nondet_int() != 0) { + x = x + 3; + } else {if (__VERIFIER_nondet_int() != 0) { + x = x + 4; + } else { + x = -1; + }}}} + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTerminationSimple9_false-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTerminationSimple9_false-termination.c new file mode 100644 index 000000000..8a7ee0c5a --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NonTerminationSimple9_false-termination.c @@ -0,0 +1,18 @@ +/* + * Date: 2014-06-26 + * Author: leike@informatik.uni-freiburg.de + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x; + x = __VERIFIER_nondet_int(); + while (x >= 0) { + x = x + __VERIFIER_nondet_int(); + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/NoriSharma-FSE2013-Fig7_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NoriSharma-FSE2013-Fig7_true-termination.c new file mode 100644 index 000000000..946c11585 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/NoriSharma-FSE2013-Fig7_true-termination.c @@ -0,0 +1,29 @@ +/* + * Program from Fig.7 of + * 2013FSE - Nori,Sharma - Termination Proofs from Tests + * + * Date: 18.12.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int a, b, c, i, j, M, N; + i = __VERIFIER_nondet_int(); + j = __VERIFIER_nondet_int(); + M = __VERIFIER_nondet_int(); + N = __VERIFIER_nondet_int(); + a = i; + b = j; + c = 0; + while (i= y) { + c = c + 1; + if (z > 1) { + z = z - 1; + x = x + z; + } else { + y = y + 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Nyala-2lex_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Nyala-2lex_true-termination.c new file mode 100644 index 000000000..f210b3409 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Nyala-2lex_true-termination.c @@ -0,0 +1,25 @@ +/* + * Date: 2013-07-13 + * Author: leike@informatik.uni-freiburg.de + * + * Simple test case for the lexicographic template. + * Has the lexicographic ranking function + * f(x, y) = + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + while (x >= 0 && y >= 0) { + y = y - 1; + if (y < 0) { + x = x - 1; + y = __VERIFIER_nondet_int(); + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Overflow.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Overflow.c new file mode 100644 index 000000000..723ae42d4 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Overflow.c @@ -0,0 +1,14 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + i = __VERIFIER_nondet_int(); + + while(i <= 2147483647) { + i = i+1; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Parallel_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Parallel_true-termination.c new file mode 100644 index 000000000..d9faefbc7 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Parallel_true-termination.c @@ -0,0 +1,30 @@ +/* + * Date: 2013-12-20 + * Author: leike@informatik.uni-freiburg.de + * + * An example tailored to the parallel ranking template. + * + * A ranking function is + * + * f(x, y) = max{x, 0} + max{y, 0}. + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x >= 0 || y >= 0) { + if (x >= 0) { + x = x - 1; + } else { + y = y - 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA1.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA1.c new file mode 100644 index 000000000..8fe3362ab --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA1.c @@ -0,0 +1,19 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + x = __VERIFIER_nondet_int(); + + while (x > 0) { + y = 0; + while (y < x) { + y = y+1; + } + x = x-1; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA10.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA10.c new file mode 100644 index 000000000..6fd262fa0 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA10.c @@ -0,0 +1,20 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + + while (x != y) { + if (x > y) { + y = y+1; + } else { + x = x+1; + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA4.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA4.c new file mode 100644 index 000000000..7bd3c9663 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA4.c @@ -0,0 +1,16 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + + while (x > y) { + y = y+1; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA5.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA5.c new file mode 100644 index 000000000..4bb7d11c0 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA5.c @@ -0,0 +1,16 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + + while (x >= y + 1) { + y = y+1; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA6.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA6.c new file mode 100644 index 000000000..b4c7cd81b --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA6.c @@ -0,0 +1,19 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + int z; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + + while (x > y + z) { + y = y+1; + z = z+1; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA7.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA7.c new file mode 100644 index 000000000..332434b8a --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA7.c @@ -0,0 +1,19 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + int z; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + + while (x > y && x > z) { + y = y+1; + z = z+1; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA8.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA8.c new file mode 100644 index 000000000..c9459a754 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA8.c @@ -0,0 +1,17 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + + while (x > y) { + x = x+1; + y = y+2; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA9.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA9.c new file mode 100644 index 000000000..076c5c74f --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA9.c @@ -0,0 +1,20 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + int z; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + + if (y > 0) { + while (x >= z) { + z = z+y; + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB1.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB1.c new file mode 100644 index 000000000..bbb5b83e8 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB1.c @@ -0,0 +1,16 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + + while (x > y) { + x = x-1; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB11.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB11.c new file mode 100644 index 000000000..367b8019d --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB11.c @@ -0,0 +1,24 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + + while (x + y > 0) { + if (x > y) { + x = x-1; + } else { + if (x == y) { + x = x-1; + } else { + y = y-1; + } + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB14.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB14.c new file mode 100644 index 000000000..e1c8e63f9 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB14.c @@ -0,0 +1,19 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + + while (x == y && x > 0) { + while (y > 0) { + x = x-1; + y = y-1; + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB15.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB15.c new file mode 100644 index 000000000..ef13e084d --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB15.c @@ -0,0 +1,21 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + int z; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + + while (x == y && x > z) { + while (y > z) { + x = x-1; + y = y-1; + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB16.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB16.c new file mode 100644 index 000000000..9452c431a --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB16.c @@ -0,0 +1,19 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + + while (x > 0) { + while (y > 0) { + y = y-1; + } + x = x-1; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB17.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB17.c new file mode 100644 index 000000000..7d06d9439 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB17.c @@ -0,0 +1,21 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + int z; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + + while (x > z) { + while (y > z) { + y = y-1; + } + x = x-1; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB2.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB2.c new file mode 100644 index 000000000..49b7eda63 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB2.c @@ -0,0 +1,17 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + + while (x > y) { + x = x-1; + y = y+1; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB3.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB3.c new file mode 100644 index 000000000..05f577703 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB3.c @@ -0,0 +1,18 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + + if (x > 0) { + while (x > y) { + y = x+y; + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB4.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB4.c new file mode 100644 index 000000000..498dae944 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB4.c @@ -0,0 +1,19 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + int t; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + + while (x > y) { + t = x; + x = y; + y = t; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB6.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB6.c new file mode 100644 index 000000000..718d2a3e8 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB6.c @@ -0,0 +1,17 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + + while (x > 0 && y > 0) { + x = x-1; + y = y-1; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB7.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB7.c new file mode 100644 index 000000000..fe4429fd1 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB7.c @@ -0,0 +1,19 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + int z; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + + while (x > z && y > z) { + x = x-1; + y = y-1; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaC1.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaC1.c new file mode 100644 index 000000000..5c3fae8f6 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaC1.c @@ -0,0 +1,19 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + x = __VERIFIER_nondet_int(); + + while (x >= 0) { + y = 1; + while (x > y) { + y = 2*y; + } + x = x-1; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaC10.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaC10.c new file mode 100644 index 000000000..8b25be6dd --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaC10.c @@ -0,0 +1,19 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + int j; + int r; + i = __VERIFIER_nondet_int(); + j = __VERIFIER_nondet_int(); + + while (i - j >= 1) { + i = i - __VERIFIER_nondet_int(); + r = __VERIFIER_nondet_int() + 1; + j = j + r; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaC2.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaC2.c new file mode 100644 index 000000000..ed8a85bde --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaC2.c @@ -0,0 +1,20 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + x = __VERIFIER_nondet_int(); + + while (x >= 0) { + x = x+1; + y = 1; + while (x >= y) { + y = y+1; + } + x = x-2; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaC3.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaC3.c new file mode 100644 index 000000000..ae70f65e7 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaC3.c @@ -0,0 +1,22 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + int z; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + + while (x < y) { + if (x < z) { + x = x+1; + } else { + z = z+1; + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaC7.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaC7.c new file mode 100644 index 000000000..3383d54a8 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaC7.c @@ -0,0 +1,21 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + int j; + int k; + int t; + i = __VERIFIER_nondet_int(); + j = __VERIFIER_nondet_int(); + k = __VERIFIER_nondet_int(); + + while (i <= 100 && j <= k) { + i = j; + j = i + 1; + k = k - 1; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaC9.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaC9.c new file mode 100644 index 000000000..4f065276e --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaC9.c @@ -0,0 +1,24 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + int random; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + + while (x > 0 && y > 0) { + random = __VERIFIER_nondet_int(); + if (random < 42) { + x = x-1; + random = __VERIFIER_nondet_int(); + y = random; + } else { + y = y-1; + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Piecewise_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Piecewise_true-termination.c new file mode 100644 index 000000000..7877dfc6c --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Piecewise_true-termination.c @@ -0,0 +1,32 @@ +/* + * Date: 08.10.2013 + * Author: leike@informatik.uni-freiburg.de + * + * An example tailored to the piecewise ranking template. + * + * A ranking function is + * + * f(p, q) = min(p, q). + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int p, q; + q = __VERIFIER_nondet_int(); + p = __VERIFIER_nondet_int(); + while (q > 0 && p > 0 && p != q) { + if (q < p) { + q = q - 1; + p = __VERIFIER_nondet_int(); + } else {if (p < q) { + p = p - 1; + q = __VERIFIER_nondet_int(); + }} + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/PlusSwap.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PlusSwap.c new file mode 100644 index 000000000..4c26d58b2 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PlusSwap.c @@ -0,0 +1,24 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + int z; + int res; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + res = 0; + + while (y > 0) { + z = x; + x = y-1; + y = z; + res = res+1; + } + + res = res + x; + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-LICS2004-Fig1_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-LICS2004-Fig1_true-termination.c new file mode 100644 index 000000000..385cf7f98 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-LICS2004-Fig1_true-termination.c @@ -0,0 +1,25 @@ +/* + * Program from Fig.1 of + * 2004LICS - Podelski, Rybalchenko - Transition Invariants + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x >= 0) { + y = 1; + while (y < x) { + y = 2*y; + } + x = x - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-LICS2004-Fig2-TACAS2011-Fig3_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-LICS2004-Fig2-TACAS2011-Fig3_true-termination.c new file mode 100644 index 000000000..b8720152d --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-LICS2004-Fig2-TACAS2011-Fig3_true-termination.c @@ -0,0 +1,33 @@ +/* + * Program from Fig.2 of + * 2004LICS - Podelski, Rybalchenko - Transition Invariants + * Program from Fig.3 of + * 2011TACAS - Podelski,Rybalchenko - Transition Invariants and Transition + * Predicate Abstraction for Program + * Termination + * + * Date: 2014 + * Author: Caterina Urban, Matthias Heizmann + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, oldx, oldy; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x > 0 && y > 0) { + oldx = x; + oldy = y; + if (__VERIFIER_nondet_int() != 0) { + x = oldx - 1; + y = oldx; + } else { + x = oldy - 2; + y = oldx + 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-TACAS2011-Fig1_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-TACAS2011-Fig1_true-termination.c new file mode 100644 index 000000000..dfa8509cd --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-TACAS2011-Fig1_true-termination.c @@ -0,0 +1,20 @@ +/* + * Program from Fig.1 of + * 2011TACAS - Podelski,Rybalchenko - Transition Invariants and Transition Predicate Abstraction for Program Termination + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int y; + y = __VERIFIER_nondet_int(); + while (y >= 0) { + y = y - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-TACAS2011-Fig2_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-TACAS2011-Fig2_true-termination.c new file mode 100644 index 000000000..1b6ced408 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-TACAS2011-Fig2_true-termination.c @@ -0,0 +1,25 @@ +/* + * Program from Fig.2 of + * 2011TACAS - Podelski,Rybalchenko - Transition Invariants and Transition Predicate Abstraction for Program Termination + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x >= 0) { + y = 1; + while (y < x) { + y = y + 1; + } + x = x - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-TACAS2011-Fig4_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-TACAS2011-Fig4_true-termination.c new file mode 100644 index 000000000..2558031a0 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-TACAS2011-Fig4_true-termination.c @@ -0,0 +1,26 @@ +/* + * Program from Fig.4 of + * 2011TACAS - Podelski,Rybalchenko - Transition Invariants and Transition Predicate Abstraction for Program Termination + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x > 0 && y > 0) { + if (__VERIFIER_nondet_int() != 0) { + x = x - 1; + y = __VERIFIER_nondet_int(); + } else { + y = y - 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-VMCAI2004-Ex1_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-VMCAI2004-Ex1_true-termination.c new file mode 100644 index 000000000..598224788 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-VMCAI2004-Ex1_true-termination.c @@ -0,0 +1,31 @@ +/* + * Program from Ex.1 of + * 2004VMCAI - Podelski,Rybalchenko - A complete method for the synthesis of linear ranking functions + * + * Date: 2014 + * Author: Caterina Urban, Matthias Heizmann + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i, j, nondetNat, nondetPos; + i = __VERIFIER_nondet_int(); + j = __VERIFIER_nondet_int(); + while (i - j >= 1) { + nondetNat = __VERIFIER_nondet_int(); + if (nondetNat < 0) { + nondetNat = -nondetNat; + } + i = i - nondetNat; + nondetPos = __VERIFIER_nondet_int(); + if (nondetPos < 0) { + nondetPos = -nondetPos; + } + nondetPos = nondetPos + 1; + j = j + nondetPos; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-VMCAI2004-Ex2_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-VMCAI2004-Ex2_true-termination.c new file mode 100644 index 000000000..5642a5e04 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-VMCAI2004-Ex2_true-termination.c @@ -0,0 +1,21 @@ +/* + * Program from Example 2 of + * 2004VMCAI - Podelski,Rybalchenko - A complete method for the synthesis of linear ranking functions + * + * Date: 18.12.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + x = __VERIFIER_nondet_int(); + while ( x >= 0 ) { + x = -2*x + 10; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Pure2Phase_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Pure2Phase_true-termination.c new file mode 100644 index 000000000..7db5d5198 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Pure2Phase_true-termination.c @@ -0,0 +1,28 @@ +/* + * Date: 2014-03-24 + * Author: heizmann@informatik.uni-freiburg.de + * + * Simple program that has a 2-phase ranking function but no + * 2-nested ranking function. + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int y, z; + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + while (z >= 0) { + y = y - 1; + if (y >= 0) { + z = __VERIFIER_nondet_int(); + } else { + z = z - 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Pure3Phase_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Pure3Phase_true-termination.c new file mode 100644 index 000000000..d1b3452d9 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Pure3Phase_true-termination.c @@ -0,0 +1,33 @@ +/* + * Date: 2014-06-29 + * Author: leike@informatik.uni-freiburg.de + * + * This program has the following 3-phase ranking function: + * f_0(x, y, z) = z + * f_1(x, y, z) = y + * f_2(x, y, z) = x + * + * The program does not have a nested ranking function. + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x, y, z; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + while (x >= 0) { + if (__VERIFIER_nondet_int() != 0) { + x = x + y; + } else { + x = x + z; + } + y = y + z; + z = z - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Rotation180_false-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Rotation180_false-termination.c new file mode 100644 index 000000000..e5d77a056 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Rotation180_false-termination.c @@ -0,0 +1,26 @@ +/* + * Date: 2013-12-16 + * Author: leike@informatik.uni-freiburg.de + * + * Rotates x and y by 90 degrees + * Does not terminate. + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main () +{ + int oldx; + int x; + int y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (true) { + oldx = x; + x = -y; + y = oldx; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Sequence.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Sequence.c new file mode 100644 index 000000000..ea065819e --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Sequence.c @@ -0,0 +1,16 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + int j; + i = 0; + j = 5; + + while (i < 100) { i = i+1; } + + while (j < 21) { j = j+3; } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Stockholm_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Stockholm_true-termination.c new file mode 100644 index 000000000..62d9b00e5 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Stockholm_true-termination.c @@ -0,0 +1,27 @@ +/* + * Date: 2012-02-12 + * Author: leike@informatik.uni-freiburg.de + * + * Ranking function: f(x, a, b) = x; + * needs the loop invariant b >= a. + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x; + int a; + int b; + x = __VERIFIER_nondet_int(); + a = __VERIFIER_nondet_int(); + b = __VERIFIER_nondet_int(); + if (a == b) { + while (x >= 0) { + x = x + a - b - 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Sunset.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Sunset.c new file mode 100644 index 000000000..7a25d7413 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Sunset.c @@ -0,0 +1,21 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + i = __VERIFIER_nondet_int(); + + while (i > 10) { + if (i == 25) { + i = 30; + } + if (i <= 30) { + i = i-1; + } else { + i = 20; + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Swingers.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Swingers.c new file mode 100644 index 000000000..56abaf69b --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Swingers.c @@ -0,0 +1,19 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int bob; + int samantha; + int temp; + bob = 13; + samantha = 17; + + while (bob + samantha < 100) { + temp = bob; + bob = samantha; + samantha = temp; + } + + return 0; +} \ No newline at end of file diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/TelAviv-Amir-Minimum_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/TelAviv-Amir-Minimum_true-termination.c new file mode 100644 index 000000000..6a377e947 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/TelAviv-Amir-Minimum_true-termination.c @@ -0,0 +1,42 @@ +/* + * Terminating program that has no linear lexicographic ranking function. + * The program chooses nondeterministically the variable x or y and assigns to + * it the result of minimum(x,y)-1 + * The term minimum(x,y) is a ranking function for this program. + * + * Amir Ben-Amram (TelAviv) showed me this program when we met in Perpignan at + * SAS 2010. + * + * Date: 1.12.2013 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x > 0 && y > 0) { + if (__VERIFIER_nondet_int() != 0) { + if (x= 0) { + x = x + y; + y = (-2)*y - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Toulouse-BranchesToLoop_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Toulouse-BranchesToLoop_true-termination.c new file mode 100644 index 000000000..4cc246301 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Toulouse-BranchesToLoop_true-termination.c @@ -0,0 +1,29 @@ +//#Termination +/* + * Date: November 2013 + * Author: heizmann@informatik.uni-freiburg.de + * + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + int z; + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + if (__VERIFIER_nondet_int() != 0) { + x = 1; + } else { + x = -1; + } + while (y<100 && z<100) { + y = y+x; + z = z-x; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Toulouse-MultiBranchesToLoop_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Toulouse-MultiBranchesToLoop_true-termination.c new file mode 100644 index 000000000..299a88a9d --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Toulouse-MultiBranchesToLoop_true-termination.c @@ -0,0 +1,69 @@ +//#Termination +/* + * Date: November 2013 + * Author: heizmann@informatik.uni-freiburg.de + * + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + int z; + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + if (__VERIFIER_nondet_int() != 0) { + x = 1; + } else { + x = -1; + } + if (x > 0) { + x = x + 1; + } else { + x = x - 1; + } + if (x > 0) { + x = x + 1; + } else { + x = x - 1; + } + if (x > 0) { + x = x + 1; + } else { + x = x - 1; + } + if (x > 0) { + x = x + 1; + } else { + x = x - 1; + } + if (x > 0) { + x = x + 1; + } else { + x = x - 1; + } + if (x > 0) { + x = x + 1; + } else { + x = x - 1; + } + if (x > 0) { + x = x + 1; + } else { + x = x - 1; + } + if (x > 0) { + x = x + 1; + } else { + x = x - 1; + } + while (y<100 && z<100) { + y = y+x; + z = z-x; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/TrueDiv.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/TrueDiv.c new file mode 100644 index 000000000..b30faa829 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/TrueDiv.c @@ -0,0 +1,18 @@ +typedef enum { false, true } bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + i = __VERIFIER_nondet_int(); + + while (true) { + if (i <= 0) { + i = i-1; + } else { + i = i+1; + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/TwoFloatInterv.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/TwoFloatInterv.c new file mode 100644 index 000000000..0e432d2c5 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/TwoFloatInterv.c @@ -0,0 +1,23 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + i = __VERIFIER_nondet_int(); + + while (i > 0 && i < 50) { + if (i < 20) { + i = i-1; + } + if (i > 10) { + i = i+1; + } + if (30 <= i && i <= 40) { + i = i-1; + } + + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/UpAndDown.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/UpAndDown.c new file mode 100644 index 000000000..ee46bf732 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/UpAndDown.c @@ -0,0 +1,26 @@ +typedef enum { false, true } bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + int up; + i = __VERIFIER_nondet_int(); + up = 0; + + while (0 <= i && i <= 10) { + if (i == 10) { + up = 0; + } + if (i == 0) { + up = 1; + } + if (up == 1) { + i = i+1; + } else { + i = i-1; + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/UpAndDownIneq.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/UpAndDownIneq.c new file mode 100644 index 000000000..77de28161 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/UpAndDownIneq.c @@ -0,0 +1,26 @@ +typedef enum { false, true } bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + int up; + i = __VERIFIER_nondet_int(); + up = 0; + + while (0 <= i && i <= 10) { + if (i >= 10) { + up = 0; + } + if (i <= 0) { + up = 1; + } + if (up >= 1) { + i = i+1; + } else { + i = i-1; + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Urban-WST2013-Fig1_false-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Urban-WST2013-Fig1_false-termination.c new file mode 100644 index 000000000..388aec23e --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Urban-WST2013-Fig1_false-termination.c @@ -0,0 +1,23 @@ +/* + * Program from Fig.2 of + * 2013WST - Urban - Piecewise-Defined Ranking Functions + * + * Date: 12.12.2012 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + x = __VERIFIER_nondet_int(); + while (x <= 10) { + if (x > 6) { + x = x + 2; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Urban-WST2013-Fig2-modified1000_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Urban-WST2013-Fig2-modified1000_true-termination.c new file mode 100644 index 000000000..7c87a38f7 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Urban-WST2013-Fig2-modified1000_true-termination.c @@ -0,0 +1,27 @@ +/* + * Program from Fig.1 of + * 2013WST - Urban - Piecewise-Defined Ranking Functions + * + * Date: 12.12.2012 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x1; + int x2; + x1 = __VERIFIER_nondet_int(); + x2 = __VERIFIER_nondet_int(); + while (x1 <= 10) { + x2 = 1000; + while (x2 > 1) { + x2 = x2 -1; + } + x1 = x1 + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Urban-WST2013-Fig2_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Urban-WST2013-Fig2_true-termination.c new file mode 100644 index 000000000..0260c6e80 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Urban-WST2013-Fig2_true-termination.c @@ -0,0 +1,27 @@ +/* + * Program from Fig.1 of + * 2013WST - Urban - Piecewise-Defined Ranking Functions + * + * Date: 12.12.2012 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x1; + int x2; + x1 = __VERIFIER_nondet_int(); + x2 = __VERIFIER_nondet_int(); + while (x1 <= 10) { + x2 = 10; + while (x2 > 1) { + x2 = x2 -1; + } + x1 = x1 + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/UrbanMine-ESOP2014-Fig3_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/UrbanMine-ESOP2014-Fig3_true-termination.c new file mode 100644 index 000000000..bb39117b7 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/UrbanMine-ESOP2014-Fig3_true-termination.c @@ -0,0 +1,36 @@ +/* + * Program from Fig.3 of + * 2014ESOP - Urban,Miné - An Abstract Domain to Infer Ordinal-Valued Ranking Functions + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + int y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x != 0 && y > 0) { + if (x > 0) { + if (__VERIFIER_nondet_int() != 0) { + x = x - 1; + y = __VERIFIER_nondet_int(); + } else { + y = y - 1; + } + } else { + if (__VERIFIER_nondet_int() != 0) { + x = x + 1; + } else { + y = y - 1; + x = __VERIFIER_nondet_int(); + } + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Velroyen_false-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Velroyen_false-termination.c new file mode 100644 index 000000000..e299acc97 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Velroyen_false-termination.c @@ -0,0 +1,30 @@ +/* + * Terminating Program for x < -5 OR 0 <= x <= 30 OR x > 35 + * (from benchmarks of) 2008TAP - Velroyen,Rummer - Non-Termination Checking for Imperative Programs + * + * Date: 18.12.2013 + * Author: urban@di.ens.fr + */ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x; + while (x!=0) { + if (-5 <= x && x <= 35) { + if (x < 0) { + x = -5; + } else { + if (x > 30) { + x = 35; + } else { + x = x - 1; + } + } + } else { + x = 0; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/Waldkirch_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Waldkirch_true-termination.c new file mode 100644 index 000000000..b069e6f2e --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/Waldkirch_true-termination.c @@ -0,0 +1,19 @@ +/* + * Date: 2014-02-16 + * Author: heizmann@informatik.uni-freiburg.de + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x; + x = 0; + while (x >= 0) { + x = x - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileDecr.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileDecr.c new file mode 100644 index 000000000..5f50d7a85 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileDecr.c @@ -0,0 +1,14 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + i = __VERIFIER_nondet_int(); + + while (i > 5) { + i = i-1; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileFalse_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileFalse_true-termination.c new file mode 100644 index 000000000..517df3fa1 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileFalse_true-termination.c @@ -0,0 +1,17 @@ +/* + * Date: 2012-03-19 + * Author: leike@informatik.uni-freiburg.de + * + * The loop is equivalent to false, + * f(x) = 0 is a ranking function. + */ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + while (false) { + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileIncr.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileIncr.c new file mode 100644 index 000000000..e4b956bb3 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileIncr.c @@ -0,0 +1,14 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + i = __VERIFIER_nondet_int(); + + while (i > 0) { + i = i+1; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileIncrPart.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileIncrPart.c new file mode 100644 index 000000000..33e681cc0 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileIncrPart.c @@ -0,0 +1,18 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + i = __VERIFIER_nondet_int(); + + while (i > 0) { + if (i > 3) { + i = i+1; + } else { + i = i-1; + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileNested.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileNested.c new file mode 100644 index 000000000..59ae33a29 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileNested.c @@ -0,0 +1,19 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + int j; + i = __VERIFIER_nondet_int(); + + while (i < 10) { + j = i; + while (j > 0) { + j = j+1; + } + i = i+1; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileNestedOffset.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileNestedOffset.c new file mode 100644 index 000000000..fa31b74ec --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileNestedOffset.c @@ -0,0 +1,19 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + int j; + i = __VERIFIER_nondet_int(); + + while (i < 10) { + j = i; + while (j > 5) { + j = j+1; + } + i = i+1; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/WhilePart.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/WhilePart.c new file mode 100644 index 000000000..c7990d529 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/WhilePart.c @@ -0,0 +1,16 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + i = __VERIFIER_nondet_int(); + + while (i > 5) { + if (i < 10) { + i = i-1; + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileSingle.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileSingle.c new file mode 100644 index 000000000..997882d06 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileSingle.c @@ -0,0 +1,16 @@ +typedef enum {false,true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + i = __VERIFIER_nondet_int(); + + while (i < 10) { + if (i != 3) { + i = i+1; + } + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileTrue.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileTrue.c new file mode 100644 index 000000000..0982453a2 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileTrue.c @@ -0,0 +1,14 @@ +typedef enum { false, true } bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + i = __VERIFIER_nondet_int(); + + while (true) { + i = i+1; + } + + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileTrue_false-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileTrue_false-termination.c new file mode 100644 index 000000000..4c1e37764 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileTrue_false-termination.c @@ -0,0 +1,17 @@ +/* + * Date: 2013-12-16 + * Author: leike@informatik.uni-freiburg.de + * + * Very simple example for non-termination + */ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + while (true) { + // do nothing + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/aaron2_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/aaron2_true-termination.c new file mode 100644 index 000000000..0b12318d4 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/aaron2_true-termination.c @@ -0,0 +1,28 @@ +/* + * Program used in the experimental evaluation of the following papers. + * 2008ESOP - Chawdhary,Cook,Gulwani,Sagiv,Yang - Ranking Abstractions + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program + * Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, tx; + tx = __VERIFIER_nondet_int(); + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x >= y && tx >= 0) { + if (__VERIFIER_nondet_int() != 0) { + x = x - 1 - tx; + } else { + y = y + 1 + tx; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/aaron3_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/aaron3_true-termination.c new file mode 100644 index 000000000..ed806cfaa --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/aaron3_true-termination.c @@ -0,0 +1,31 @@ +/* + * Program used in the experimental evaluation of the following papers. + * 2008ESOP - Chawdhary,Cook,Gulwani,Sagiv,Yang - Ranking Abstractions + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program + * Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, z, tx; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + tx = __VERIFIER_nondet_int(); + while (x >= y && x <= tx + z) { + if (__VERIFIER_nondet_int() != 0) { + z = z - 1; + tx = x; + x = __VERIFIER_nondet_int(); + } else { + y = y + 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/collatz.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/collatz.c new file mode 100644 index 000000000..527042f93 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/collatz.c @@ -0,0 +1,33 @@ +/* + * Date: 2015-07-06 + * Author: Thomas Stroeder (stroeder@informatik.rwth-aachen.de) + * + * This is the Collatz function in the C Integer Programs format. + * Comment: termination status unknown + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + while (x > 1) { + // inlined mod 2 + y = x; + while (y > 1) { + y = y - 2; + } + if (y == 0) { + // inlined div 2 + while (2*y < x) { + y = y + 1; + } + x = y; + } else { + x = 3*x + 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/easy1_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/easy1_true-termination.c new file mode 100644 index 000000000..168203d79 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/easy1_true-termination.c @@ -0,0 +1,28 @@ +/* + * Program used in the experimental evaluation of the following papers. + * 2008ESOP - Chawdhary,Cook,Gulwani,Sagiv,Yang - Ranking Abstractions + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program + * Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, z; + x = 0; + y = 100; + z = __VERIFIER_nondet_int(); + while (x < 40) { + if (z == 0) { + x = x + 1; + } else { + x = x + 2; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/easy2_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/easy2_true-termination.c new file mode 100644 index 000000000..31d0e7700 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/easy2_true-termination.c @@ -0,0 +1,26 @@ +/* + * Program used in the experimental evaluation of the following papers. + * 2008ESOP - Chawdhary,Cook,Gulwani,Sagiv,Yang - Ranking Abstractions + * 2010SAS - Alias,Darte,Feautrier,Gonnord, Multi-dimensional Rankings, Program + * Termination, and Complexity Bounds of Flowchart Programs + * + * Date: 2014 + * Author: Caterina Urban + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, z; + x = 12; + y = 0; + z = __VERIFIER_nondet_int(); + while (z > 0) { + x = x + 1; + y = y - 1; + z = z - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/gcd1_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/gcd1_true-termination.c new file mode 100644 index 000000000..2f077e63f --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/gcd1_true-termination.c @@ -0,0 +1,33 @@ +/* + * gcd program (terminating) based on + * (Dershowitz, Lindenstrauss, Sagiv and Serebrenik, 2001) + * + * Date: 15.12.2013 + * Author: Amir Ben-Amram, amirben@cs.mta.ac.il + * + */ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int r, x, y; + + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + + if (x<0) {x = -x;} + if (y<0) {y = -y;} + while (y>0) { + /* the next statements compute r = mod(x,y) */ + r = x; + while (r>=y) { + r = r-y; + } + /* end of inlined mod */ + x = y; + y = r; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/genady_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/genady_true-termination.c new file mode 100644 index 000000000..7b9c35d61 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/genady_true-termination.c @@ -0,0 +1,20 @@ +/* An example that looks simple, given to me by Genady Trifon + * Date: 15.12.2013 + * Author: Amir Ben-Amram, amirben@cs.mta.ac.il + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i, j; + j = 1; + i = 10000; + while (i-j >= 1) { + j = j + 1; + i = i - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/min_rf_true-termination.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/min_rf_true-termination.c new file mode 100644 index 000000000..2934888f5 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/min_rf_true-termination.c @@ -0,0 +1,38 @@ +/* + * Terminating program which has a r.f. based on minimum + * + * Date: 15.12.2013 + * Author: Amir Ben-Amram, amirben@cs.mta.ac.il + * + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x,y; + int z; + + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + + while (y > 0 && x > 0) { + if (x>y) { + z = y; + } else { + z = x; + } + if (__VERIFIER_nondet_int() != 0) { + y = y+x; + x = z-1; + z = y+z; + } else { + x = y+x; + y = z-1; + z = x+z; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.01.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.01.c new file mode 100644 index 000000000..fee5d87a5 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.01.c @@ -0,0 +1,20 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int c; + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + c = 0; + while (x > 0) { + y = 0; + while (y < x) { + y = y + 1; + c = c + 1; + } + x = x - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.04.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.04.c new file mode 100644 index 000000000..fbff5345f --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.04.c @@ -0,0 +1,16 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int c; + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + c = 0; + while (x > y) { + y = y + 1; + c = c + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.05.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.05.c new file mode 100644 index 000000000..180b0c9cb --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.05.c @@ -0,0 +1,16 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int c; + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + c = 0; + while (x >= y + 1) { + y = y + 1; + c = c + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.06.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.06.c new file mode 100644 index 000000000..4759d8c01 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.06.c @@ -0,0 +1,18 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int c; + int x, y, z; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + c = 0; + while (x > y + z) { + y = y + 1; + z = z + 1; + c = c + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.07.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.07.c new file mode 100644 index 000000000..3461867ce --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.07.c @@ -0,0 +1,18 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int c; + int x, y, z; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + c = 0; + while ((x > y) && (x > z)) { + y = y + 1; + z = z + 1; + c = c + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.08.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.08.c new file mode 100644 index 000000000..43e82caa7 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.08.c @@ -0,0 +1,17 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int c; + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + c = 0; + while (x > y) { + x = x + 1; + y = y + 2; + c = c + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.09_assume.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.09_assume.c new file mode 100644 index 000000000..264401850 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.09_assume.c @@ -0,0 +1,14 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, z; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + while (y > 0 && x >= z) { + z = z + y; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.10.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.10.c new file mode 100644 index 000000000..890b60339 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.10.c @@ -0,0 +1,20 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int c; + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + c = 0; + while (!(x == y)) { + if (x > y) { + y = y + 1; + } else { + x = x + 1; + } + c = c + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.01.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.01.c new file mode 100644 index 000000000..874b363e8 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.01.c @@ -0,0 +1,16 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int c; + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + c = 0; + while (x > y) { + x = x - 1; + c = c + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.02.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.02.c new file mode 100644 index 000000000..ca7266bbd --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.02.c @@ -0,0 +1,17 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int c; + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + c = 0; + while (x > y) { + x = x - 1; + y = y + 1; + c = c + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.03-no-inv_assume.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.03-no-inv_assume.c new file mode 100644 index 000000000..2a2e06ea2 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.03-no-inv_assume.c @@ -0,0 +1,15 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + if (x > 0) { + while (x > y) { + y = y + x; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.03_assume.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.03_assume.c new file mode 100644 index 000000000..606bf394c --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.03_assume.c @@ -0,0 +1,13 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x > 0 && x > y) { + y = y + x; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.04.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.04.c new file mode 100644 index 000000000..392388202 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.04.c @@ -0,0 +1,16 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y, tmp; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + tmp = __VERIFIER_nondet_int(); + while (x > y) { + tmp = x; + x = y; + y = tmp; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.05.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.05.c new file mode 100644 index 000000000..0def0b913 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.05.c @@ -0,0 +1,14 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, tmp; + x = __VERIFIER_nondet_int(); + tmp = __VERIFIER_nondet_int(); + while ((x > 0) && (x == 2*tmp)) { + x = x - 1; + tmp = __VERIFIER_nondet_int(); + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.06.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.06.c new file mode 100644 index 000000000..5c38d686e --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.06.c @@ -0,0 +1,17 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int c; + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + c = 0; + while ((x > 0) && (y > 0)) { + x = x - 1; + y = y - 1; + c = c + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.07.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.07.c new file mode 100644 index 000000000..30da9c8f5 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.07.c @@ -0,0 +1,18 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int c; + int x, y, z; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + c = 0; + while ((x > z) && (y > z)) { + x = x - 1; + y = y - 1; + c = c + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.09-no-inv_assume.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.09-no-inv_assume.c new file mode 100644 index 000000000..26b5d6b84 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.09-no-inv_assume.c @@ -0,0 +1,22 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int c; + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + c = 0; + if (x > 0 && y > 0) { + while (!(x == 0)) { + if (x > y) { + x = y; + } else { + x = x - 1; + } + c = c + 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.09_assume.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.09_assume.c new file mode 100644 index 000000000..f803e5856 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.09_assume.c @@ -0,0 +1,22 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int c; + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + c = 0; + if (y > 0) { + while (x > 0) { + if (x > y) { + x = y; + } else { + x = x - 1; + } + c = c + 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.10.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.10.c new file mode 100644 index 000000000..b51bcdd9a --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.10.c @@ -0,0 +1,24 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int c; + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + c = 0; + while (x + y > 0) { + if (x > 0) { + x = x - 1; + } else { + if (y > 0) { + y = y - 1; + } else { + + } + } + c = c + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.11.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.11.c new file mode 100644 index 000000000..c749a9756 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.11.c @@ -0,0 +1,24 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int c; + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + c = 0; + while (x + y > 0) { + if (x > y) { + x = x - 1; + } else { + if (x == y) { + x = x - 1; + } else { + y = y - 1; + } + } + c = c + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.12.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.12.c new file mode 100644 index 000000000..4e5c2c1ca --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.12.c @@ -0,0 +1,24 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int c; + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + c = 0; + while ((x > 0) || (y > 0)) { + if (x > 0) { + x = x - 1; + } else { + if (y > 0) { + y = y - 1; + } else { + + } + } + c = c + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.13.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.13.c new file mode 100644 index 000000000..56cda85c8 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.13.c @@ -0,0 +1,25 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int c; + int x, y, z; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + c = 0; + while ((x > z) || (y > z)) { + if (x > z) { + x = x - 1; + } else { + if (y > z) { + y = y - 1; + } else { + + } + } + c = c + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.14.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.14.c new file mode 100644 index 000000000..b7ab847e0 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.14.c @@ -0,0 +1,19 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int c; + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + c = 0; + while ((x == y) && (x > 0)) { + while (y > 0) { + x = x - 1; + y = y - 1; + c = c + 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.15.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.15.c new file mode 100644 index 000000000..bcf12c46b --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.15.c @@ -0,0 +1,20 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int c; + int x, y, z; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + c = 0; + while ((x == y) && (x > z)) { + while (y > z) { + x = x - 1; + y = y - 1; + c = c + 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.16.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.16.c new file mode 100644 index 000000000..04d6259f5 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.16.c @@ -0,0 +1,20 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int c; + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + c = 0; + while (x > 0) { + while (y > 0) { + y = y - 1; + c = c + 1; + } + x = x - 1; + c = c + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.17.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.17.c new file mode 100644 index 000000000..3f2b0baf9 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.17.c @@ -0,0 +1,21 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int c; + int x, y, z; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + c = 0; + while (x > z) { + while (y > z) { + y = y - 1; + c = c + 1; + } + c = c + 1; + x = x - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.18.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.18.c new file mode 100644 index 000000000..977b9b360 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.18.c @@ -0,0 +1,21 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while ((x > 0) && (y > 0)) { + if (x > y) { + while (x > 0) { + x = x - 1; + } + } else { + while (y > 0) { + y = y - 1; + } + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_c.01-no-inv.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_c.01-no-inv.c new file mode 100644 index 000000000..e46b1d66c --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_c.01-no-inv.c @@ -0,0 +1,19 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int c, x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + c = 0; + while (x >= 0) { + y = 1; + while (x > y) { + y = 2*y; + c = c + 1; + } + x = x - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_c.01_assume.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_c.01_assume.c new file mode 100644 index 000000000..2176aae4f --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_c.01_assume.c @@ -0,0 +1,17 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x >= 0 && y > 0) { + y = 1; + while (x > y && y > 0) { + y = 2*y; + } + x = x - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_c.02.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_c.02.c new file mode 100644 index 000000000..c8d48600a --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_c.02.c @@ -0,0 +1,20 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int c, x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + c = 0; + while (x >= 0) { + x = x + 1; + y = 1; + while (x > y) { + y = y + 1; + c = c + 1; + } + x = x - 2; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_c.03.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_c.03.c new file mode 100644 index 000000000..c7cce6292 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_c.03.c @@ -0,0 +1,22 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int c, x, y, z; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + c = 0; + while (x < y) { + if (x < z) { + x = x + 1; + } else { + z = z + 1; + } + c = c + 1; + } + return 0; +} + + diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_c.07.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_c.07.c new file mode 100644 index 000000000..65a507a87 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_c.07.c @@ -0,0 +1,20 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int c, i, j, k, tmp; + i = __VERIFIER_nondet_int(); + j = __VERIFIER_nondet_int(); + k = __VERIFIER_nondet_int(); + tmp = __VERIFIER_nondet_int(); + c = 0; + while ((i <= 100) && (j <= k)) { + tmp = i; + i = j; + j = tmp + 1; + k = k - 1; + c = c + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_c.08.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_c.08.c new file mode 100644 index 000000000..9ac1b4a79 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_c.08.c @@ -0,0 +1,19 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int c, i, j; + i = __VERIFIER_nondet_int(); + j = __VERIFIER_nondet_int(); + c = 0; + while (i >= 0) { + j = 0; + while (j <= i - 1) { + j = j + 1; + c = c + 1; + } + i = i - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_easySum.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_easySum.c new file mode 100644 index 000000000..488921a54 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_easySum.c @@ -0,0 +1,15 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i, sum, bound; + bound = __VERIFIER_nondet_int(); + i = 0; + sum = 0; + while (i 0) { + r = r*x; + y = y - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_ex2.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_ex2.c new file mode 100644 index 000000000..bed2a4cdd --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_ex2.c @@ -0,0 +1,25 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int c, flag, x, y, z; + c = 0; + flag = 1; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + while ((y < z) && (flag > 0)) { + if ((y > 0) && (x > 1)) { + y = x*y; + } else { + if ((y > 0) && (x < -1)) { + y = -x*y; + } else { + flag = 0; + } + } + c = c + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_ex3a.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_ex3a.c new file mode 100644 index 000000000..0a72a4271 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_ex3a.c @@ -0,0 +1,14 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int c, x; + x = __VERIFIER_nondet_int(); + c = 0; + while ((x > 1) && (x < 100)) { + x = x*x; + c = c + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_ex3b.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_ex3b.c new file mode 100644 index 000000000..e607c7cb5 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_ex3b.c @@ -0,0 +1,15 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int c, x, y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + c = 0; + while ((x > 1) && (x < y)) { + x = x*x; + c = c + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_fermat.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_fermat.c new file mode 100644 index 000000000..9a31d2531 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_fermat.c @@ -0,0 +1,24 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int MAX; + int a, b, c; + MAX = 1000; + a = 1; + b = 1; + c = 1; + while (((a*a*a) != ((b*b*b)+(c*c*c))) && c <= MAX) { + a = a + 1; + if (a>MAX) { + a = 1; + b = b + 1; + } + if (b>MAX) { + b = 1; + c = c + 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_flag.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_flag.c new file mode 100644 index 000000000..37b0d61c4 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_flag.c @@ -0,0 +1,20 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int flag; + int c, x, y; + flag = 1; + c = 0; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (flag != 0) { + if (x >= y) { + flag = 0; + } + x = x + 1; + c = c + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_java_AG313.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_java_AG313.c new file mode 100644 index 000000000..d546f322c --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_java_AG313.c @@ -0,0 +1,17 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i, x, y; + i = 0; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + if (x!=0) { + while (x > 0 && y > 0) { + i = i + 1; + x = (x - 1)- (y - 1); + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_java_Break.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_java_Break.c new file mode 100644 index 000000000..d89142bca --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_java_Break.c @@ -0,0 +1,15 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + int c; + i = 0; + c = 0; + while (i <= 10) { + i = i + 1; + c = c + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_java_Continue1.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_java_Continue1.c new file mode 100644 index 000000000..1883f94bc --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_java_Continue1.c @@ -0,0 +1,18 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i; + int c; + i = 0; + c = 0; + while (i < 20) { + i = i + 1; + if (i <= 10) { + } else { + c = c + 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_java_Nested.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_java_Nested.c new file mode 100644 index 000000000..c70f6d782 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_java_Nested.c @@ -0,0 +1,20 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i, j; + int c; + c = 0; + i = 0; + while (i < 10) { + j = 3; + while (j < 12) { + j = j - 1; + c = c + 1; + j = j + 2; + } + i = i + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_java_Sequence.c b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_java_Sequence.c new file mode 100644 index 000000000..24bac134d --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_java_Sequence.c @@ -0,0 +1,20 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int i, j; + int c; + c = 0; + i = 0; + while (i < 100) { + c = c + 1; + i = i + 1; + } + j = 5; + while (j < 21) { + c = c + 1; + j = j + 3; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/2Nested_false-termination.c b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/2Nested_false-termination.c new file mode 100644 index 000000000..7f6c84924 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/2Nested_false-termination.c @@ -0,0 +1,24 @@ +/* + * Date: 06/07/2015 + * Created by: Ton Chanh Le (chanhle@comp.nus.edu.sg) + * Adapted from the example 2Nested_true-termination.c + * + * This program does not terminate when x >= 0 & y >= 0 + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x; + int y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x >= 0) { + x = x + y; + y = y + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Bangalore_false-termination.c b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Bangalore_false-termination.c new file mode 100644 index 000000000..73770c0a8 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Bangalore_false-termination.c @@ -0,0 +1,23 @@ +/* + * Date: 06/07/2015 + * Created by: Ton Chanh Le (chanhle@comp.nus.edu.sg) + * Adapted from the example Bangalore_true-termination.c + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x; + int y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + if (y < 1) { + while (x >= 0) { + x = x - y; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Bangalore_v2_false-termination.c b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Bangalore_v2_false-termination.c new file mode 100644 index 000000000..b2829c7e2 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Bangalore_v2_false-termination.c @@ -0,0 +1,22 @@ +/* + * Date: 06/07/2015 + * Created by: Ton Chanh Le (chanhle@comp.nus.edu.sg) + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x; + int y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + if (y >= 0) { + while (x >= 0) { + x = x - y; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Bangalore_v3_false-termination.c b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Bangalore_v3_false-termination.c new file mode 100644 index 000000000..c04810089 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Bangalore_v3_false-termination.c @@ -0,0 +1,22 @@ +/* + * Date: 06/07/2015 + * Created by: Ton Chanh Le (chanhle@comp.nus.edu.sg) + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x; + int y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + if (y <= x) { + while (x >= 0) { + x = x - y; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Bangalore_v4_true-termination.c b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Bangalore_v4_true-termination.c new file mode 100644 index 000000000..875fc761a --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Bangalore_v4_true-termination.c @@ -0,0 +1,22 @@ +/* + * Date: 06/07/2015 + * Created by: Ton Chanh Le (chanhle@comp.nus.edu.sg) + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x; + int y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + if (y > x) { + while (x >= 0) { + x = x - y; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Benghazi_nondet_true-termination.c b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Benghazi_nondet_true-termination.c new file mode 100644 index 000000000..9695ceb88 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Benghazi_nondet_true-termination.c @@ -0,0 +1,24 @@ +/* + * Date: 06/07/2015 + * Created by: Ton Chanh Le (chanhle@comp.nus.edu.sg) + * Adapted from Benghazi_true-termination.c + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x, d1, d2, d1old; + x = __VERIFIER_nondet_int(); + d1 = __VERIFIER_nondet_int(); + d2 = __VERIFIER_nondet_int(); + while (x >= 0) { + x = x - d1; + d1old = d1; + d1 = d2 + 1; + d2 = d1old + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Cairo_nondet_false-termination.c b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Cairo_nondet_false-termination.c new file mode 100644 index 000000000..fba0ef532 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Cairo_nondet_false-termination.c @@ -0,0 +1,21 @@ +/* + * Date: 06/07/2015 + * Created by: Ton Chanh Le (chanhle@comp.nus.edu.sg) + * Adapted from Cairo_true-termination.c + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x; + x = __VERIFIER_nondet_int(); + if (x > __VERIFIER_nondet_int()) { + while (x != 0) { + x = x - 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Cairo_step2_false-termination.c b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Cairo_step2_false-termination.c new file mode 100644 index 000000000..d38a89fde --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Cairo_step2_false-termination.c @@ -0,0 +1,21 @@ +/* + * Date: 06/07/2015 + * Created by: Ton Chanh Le (chanhle@comp.nus.edu.sg) + * Adapted from Cairo_true-termination.c + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x; + x = __VERIFIER_nondet_int(); + if (x > 0) { + while (x != 0) { + x = x - 2; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Copenhagen_disj_true-termination.c b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Copenhagen_disj_true-termination.c new file mode 100644 index 000000000..5ffc5bb00 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Copenhagen_disj_true-termination.c @@ -0,0 +1,22 @@ +/* + * Date: 06/07/2015 + * Created by: Ton Chanh Le (chanhle@comp.nus.edu.sg) + * Adapted from Copenhagen_true-termination.c + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x, y, oldx; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x >= 0 || y >= 0) { + oldx = x; + x = y - 1; + y = oldx - 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Gothenburg_v2_true-termination.c b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Gothenburg_v2_true-termination.c new file mode 100644 index 000000000..8defbc7b7 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Gothenburg_v2_true-termination.c @@ -0,0 +1,25 @@ +/* + * Date: 06/07/2015 + * Created by: Ton Chanh Le (chanhle@comp.nus.edu.sg) + * Adapted from Gothenburg_true-termination.c + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x, y, a, b; + a = __VERIFIER_nondet_int(); + b = __VERIFIER_nondet_int(); + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + if (a == b + 1 && x < 0) { + while (x >= 0 || y >= 0) { + x = x + a - b - 1; + y = y + b - a - 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Hanoi_2vars_false-termination.c b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Hanoi_2vars_false-termination.c new file mode 100644 index 000000000..538c2b849 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Hanoi_2vars_false-termination.c @@ -0,0 +1,16 @@ +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x; + int y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + while (x > 0) { + x = x + y; + y = y + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Hanoi_3vars_false-termination.c b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Hanoi_3vars_false-termination.c new file mode 100644 index 000000000..1970dd0b2 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Hanoi_3vars_false-termination.c @@ -0,0 +1,22 @@ +/* + * Date: 06/07/2015 + * Created by: Ton Chanh Le (chanhle@comp.nus.edu.sg) + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x, y, z; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + while (x > 0) { + x = x + y; + y = y + z; + z = z + 1; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Hanoi_plus_false-termination.c b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Hanoi_plus_false-termination.c new file mode 100644 index 000000000..82d61c289 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Hanoi_plus_false-termination.c @@ -0,0 +1,22 @@ +/* + * Date: 06/07/2015 + * Created by: Ton Chanh Le (chanhle@comp.nus.edu.sg) + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x, y, z; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + z = __VERIFIER_nondet_int(); + while (x > 0) { + x = x + y; + y = y + z; + z = z + x; + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/McCarthy91_Iteration_true-termination.c b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/McCarthy91_Iteration_true-termination.c new file mode 100644 index 000000000..6fae26013 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/McCarthy91_Iteration_true-termination.c @@ -0,0 +1,24 @@ +/* + * Date: 07/07/2015 + * Created by: Ton Chanh Le (chanhle@comp.nus.edu.sg) + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() { + int c, n; + c = 1; + n = __VERIFIER_nondet_int(); + while (c > 0) { + if (n > 100) { + n = n - 10; + c = c - 1; + } else { + n = n + 11; + c = c + 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Mysore_false-termination.c b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Mysore_false-termination.c new file mode 100644 index 000000000..776f89490 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Mysore_false-termination.c @@ -0,0 +1,24 @@ +/* + * Date: 06/07/2015 + * Created by: Ton Chanh Le (chanhle@comp.nus.edu.sg) + * Adapted from Mysore_true-termination.c + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x; + int c; + x = __VERIFIER_nondet_int(); + c = __VERIFIER_nondet_int(); + if (c < 0) { + while (x + c >= 0) { + x = x - c; + c = c - 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Singapore_plus_false-termination.c b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Singapore_plus_false-termination.c new file mode 100644 index 000000000..cea0ca82d --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Singapore_plus_false-termination.c @@ -0,0 +1,23 @@ +/* + * Date: 06/07/2015 + * Created by: Ton Chanh Le (chanhle@comp.nus.edu.sg) + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x; + int y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + if (x + y >= 0) { + while (x > 0) { + x = x + x + y; + y = y + 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Singapore_true-termination.c b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Singapore_true-termination.c new file mode 100644 index 000000000..6ed984feb --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Singapore_true-termination.c @@ -0,0 +1,23 @@ +/* + * Date: 06/07/2015 + * Created by: Ton Chanh Le (chanhle@comp.nus.edu.sg) + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x; + int y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + if (x + y <= 0) { + while (x > 0) { + x = x + x + y; + y = y - 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Singapore_v1_false-termination.c b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Singapore_v1_false-termination.c new file mode 100644 index 000000000..df3d2b1fd --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Singapore_v1_false-termination.c @@ -0,0 +1,23 @@ +/* + * Date: 06/07/2015 + * Created by: Ton Chanh Le (chanhle@comp.nus.edu.sg) + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x; + int y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + if (x + y > 0) { + while (x > 0) { + x = x + x + y; + y = y - 1; + } + } + return 0; +} diff --git a/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Singapore_v2_false-termination.c b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Singapore_v2_false-termination.c new file mode 100644 index 000000000..e3054b072 --- /dev/null +++ b/data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Singapore_v2_false-termination.c @@ -0,0 +1,23 @@ +/* + * Date: 06/07/2015 + * Created by: Ton Chanh Le (chanhle@comp.nus.edu.sg) + */ + +typedef enum {false, true} bool; + +extern int __VERIFIER_nondet_int(void); + +int main() +{ + int x; + int y; + x = __VERIFIER_nondet_int(); + y = __VERIFIER_nondet_int(); + if (x + y > 1) { + while (x > 0) { + x = x + x + y; + y = y - 1; + } + } + return 0; +} diff --git a/dataset.zip b/dataset.zip new file mode 100644 index 0000000000000000000000000000000000000000..3a0c967d28af619de32d1989f4715d7ad24edabf GIT binary patch literal 436310 zcmbSzby!zv*EL8;gS3Qnr*x-ucXxMpNF&`KUDBP>-QC^YASwO*n0aTOao%^v$4{@r z`t2Y8^8*413rJtbUdPVBo<>0)5(vaQFwDRg z@HjX_0|A4=Vv6H|0viouOaJ+XUHTv2fc2L**c#|L*xH#m8fY0hSnAoESXtWr{?^KX ze|#%4;5UH)dU>mlaKmB@Fc8o+2oMnYPu{9)V5w(pp<`>N^`4$u@3-Il<^Onj{`Q;4 zMN3%u@E`=7J_MVH!=T%@CoO!B(_An^a_d)&=}B@*s9F4Y&0j=c=*DvDGAy4kAgrBDLFL z;y9Ew5u*=UZvh_?RV2lQ_X_HoCb8jcO^?zzT_|Ez-zAyvJtzUJEJ@@+7+mX>kFFis zfLCPz9@|;GDR)$+CIYya3v$bU64}GzBd^8nK-9ntj%Xcc?0w2G)MF zw+|j%KAY$;c$(i~gx%9AtS||}o-+gexu-`aO$;!~AYx*}BkMO?H&m+PzmYBG6b}cR z8c1}g#MiS*EQj-)=zH1d^l#ID6-d{RQIJE9VTYwXLAPvUv?&75k(1M83aMw1dsAqM ztB^JYM%-)I-;GIIqVd=rN^ffu7X0b%M4QFg(;Wi_bG*<<8~VwrXt4IKrIvLfRCMvU zsd|SPo^wpPg~ec(E0&C$(wuG1{P56^lgIBf7WG0*kSYC(L3z_}{yBl$i96bQ` zl~=z4JKaxU?~ax+>!3yGUA-WabPo#0z$67R>(#8C^>)J+PSSi&DIpXcjO%$rWZD?4 zS2ieS`+UE;?SvQF?zX5BM3L`@R{Vj$DXcs_yxxN@m~vo*t){oDU`LFgNMYWx9$B@K zY80_0Qok^CO2fb0v1OuA{V1)kxHY)en&9oEK%8w#=NR5MJN3n@*Sx>#{rwwFrsS`~P~ofyJ!zX-9cNNprf+f~IPvHG z&#o0DSAT>>e;U$G0szY`02Z?UIvan2N~)}cSqBe7^RANkw@R5!V%75esOvFJ=xcIe zapJnq;@aHB8BaGS!S7`#{ZEM4aZa0EVz#kb$O+_9c;ff`%AzJD68lOvOwp?Gg9@TV zk0M(Q634Q#XrTgprw$=Rp=0odVn?7V-kI-cl60yg@MXo4MPuo&KA$8y{jvizf+fDaBvH2lR+w0eK)_t139Lw|MNH#TF zCr763M7S*~L;l@l36gKag%;@pNwFe&M#l%Or_#1P^Un-jzm~4<7v$zWPm0Osjwxo( z3#O}LIB?d!a~*DVnJI>mz<>>zPk9bMv z7~E3>@M8O=G@_^dclGp_8MFkXQPVvIs*R1;TF0BD!h~zpAWaH9l6mA1=gB+XD1_&g zFlf`xoR+yp`bK&J3a~N_dz8|Q8Qvnqf(4c1Yt38!r#xF_f!$$XJF6q1kO85_obcN3 zi8Q-$=$M5I$^=XI(qD5^PTzIa_4FY4T#E|^z5Og0{(S@}g1FB;s^p`H!LCmezL?+{ z`q-Nf=R2w8;QZbpoDN#mVd{PSMy5NEnZ##U1yBKx<;dc(=;Ag~a2O1jr8RF;K+oR8 z3j1VvHJZI{)A@ANSt{oNZqB*l)BK7TF66E9XFeRtsP5aIwCMoXk0Noa+;|fW-UP7S zwB`#e8L`iDSa);aJ6BJaFasa<`86YD+C}9~v|gpInN+#V7q3-=XHMxoJM}%E&lpP% zPkLm<9%BB8NQt6F#EY;k{}Li}bpMV>ceI4rtM`CVuU@$h!5R2Vg@rvjMN{gn1||X7_CXgEX_w}#L$W=Fu)7SC%V;vF7L`^vMaj&3SN&U*nnp~(-O&vUKJ7bq)JG^<63ttuL zz?#r>8H~AP>$I?u3AHWg?haKp&Rh<-#&97W0EA85hh@Cr6V@ru1>SGM2JxG)<+uTa ztx+)!Z3FiN4`gM%doJUu2706ZrsWVTs&R_cw|jEK=98z_?C_39m0u?mgdWW|3Z3u7 z>2VPJeyDGbV4NRGdvSh*rKn5(tsnrF{a+HcpX5oLtb|nuEll%`lJiD1ov5lKNN{bZ zV`^7vjI^=FoACx&E_B4pR+<9iTWKd{>Y(G@-J4=-IIS9mwhseNw8&KF7c5G_a_9+tSO1qfvD7$I)MX@ zm?$TOL{l28RSa;5ODtL&&%lq=Z<|Ovz*(qcW}l*Sn#Ntz`(7UVR%KGq-d1}EWObb6 zb3~zt7(ZUhD{CRtwnB!m#yK4So(7xC6v_qlNdgme7i<}U{w}xrT39~IEJ)Ui(rlMA z8OV9HGpiYjYe?Z!CY!{$ByXZFYcBR7C{4?5uEOxsrQ4i`VNq-f)|vTdV-!<0j9!mj zS7BT3?TJcJ9pmL?&^FmkiCfUq!>e6axI8e>l-9e`fD;N2v<~1!Y-TizVVWO-8skEZ zM*#qJ4S0T`A7uXb{IQ6Xkm{s`dC8wNN0GpWV&Tp5(ofLpQ3EI@2Z2Q@)no%g3Izur zNyv`pywr8?J@mLM5YA>)71n?UhV=1;R8o?~J&ZFO&&cJJm2(O@rR6SEvhzu;q{g{I zYr)iFC{5Myv1-W72EOhJ)lygB2Su7#U~ZuUDY$Q+0F{$;c9MSjDDF}OqZR9xM@!6f zrfZ;+A4kFs!{igiu%>qc^0uw54ZF}wjD@cn`9a3GIJ!I}ZvaBsEG1Rsyo|A-;wdVx zenO{n8PRQQ9}@E;F!S4fu({qQvx26x23>eKT^uc2|AmRFm*dmwb%HT$y2hTF zx(}I00Y&vy3)Q{v=Rxq&%ukkYi?dS&kjkdpq|abf zJT1a&Q7E78&}8a%uxxE^g(l+lttj8)xCnjzWE6o%?dcxXKwm$mUf~&b5dNMVOn;vR zW(~&b@T%7pau>^QrtDjK)bp8{8WWtthsN@#(Z5L*pHQs*djJSdza&*G|Bl0dN_y?a zhO~EPhA5biE7`2*r79%rh@i4x*w*VX&<8h*55kj*B{a20hE7K2cxxr+g6lB0`(OGZ zryOa9N1)u$-Rs}VuPA%)R7|J{$dYj;!Jr(P$mWc`L7myo83|Y1Aj_jzKn{Dm z2aQT$2^7IBy4HtFsR2Zy+*Sv?LAU3Q&XA-PNw014tx$YYD`zwO^7S%YUgVn-cAij2 zGQ(XfylYvxP42YYVFw^nVfIn$V?>LYa=-meoFGdH7*(x?u>wYUCk(1JNXb0Gui`p% zk2g80cMvp(SBI|Py{xo&X`7>Z-=}Z*z;)1(>6zy@pCErs4)B>YBp(1KZ+>k`W%zec zETVr`rP0AM+6AKJfrfBQy-(1eFemEpB~%Vg-)Q(u=zG;ZIi*zVY!d{|jNJEl>JkmE zsj$nfF~)WTn}-z69s9djRPI=__Q9ZzFr0gFxgv`Wx^Pj^n&Vl)9j@Kc?u8GT~ zN!}r@eE@r0#WrwISYQtt@oKDQbH88CReqfZ+m9qPIiv@iA9!0bQQ> zOLduugDiQ{gWg`wNa91zDs;g{r27yj@EFuu`Q3X5Hk>bBZXm2Fl3VruMI33t*~v~L zOz!v4(iNU=5Q(p3G;_*7br+Pi_e{q>Jf6AjH@ZwIRoI)K&eFVUYiRd&_q)HkGx31! zB`T+EynsjAA8(fT3Dx1V7+tCSTkR3~W|&6?KpF9udbjtC|BkZ8@7*-VX4&W95PmS? zOK{MuiNdchspqdxK-nR9?u*a+)a;1I^R2rvZ9cK01i1yn3MwgUNTYP7tJ^RkxkSN{ zyXg=HWktC;PuXK@Y44jp%UhJJvif`vkuCF#xC+x`8J&b(9}$6#g$`yIF74~m!x{OM?dl#~246n#3MZN*bJIc>DLUz!`Hx|t zC?qUUemNAvg7J7^B+Y4fyS|QWNX?4&%b*~A7qo%qkZA;&9_0($N$h#bgGE9NAFgT4 zAzZ7{3A*=@S)iM~EXx~lanUap#o`^Bpz;_B+LMPK=Zwl@#Thn zwPl0G41-?67295^?>Y+S>sXz3=kXsdVWzFqp5f#L0mLvoZGZZW&K&TxKsG<#a(kI6$o4m*%I4f}mg(unw zX!&F~%>-fc2LUrIoX-y0=ty>RF0zteFI8YSwW&W7zb0tY6NF4b_Zvg8_M!R$g3y_9 z5uhEX0nj{)3Zy@XvHb3al&zidLI0VNPBCST6d}G8_pM3*L)xWlKnncAzWSx=xC0Ul z?r0}gC6RNu-*vlbg4s!mE>+pPafJESa=g7^PjBQrxi!l75{(5T?(T-QN@V;1Aoes6 zmqj!(3>+J^)!{`m7ACOWyADmSDw5V&0;La#o}m4ip9{}<#5W`s#R3!`Ui}D$X5z*y zCxHA1zobNTKdCo4(SK>iFo+@SnH#b+Y7Yq=Q{`*I-lAFrC;2JxHQi%r>tPE|R*NC- zK3jZL%tCHrXrZzJXLG72AB!zwvzk?$Ki*TD(%n}RQ^QgzWJV#Muu<$%v16w0_7Ycd z3A46JEzL(S+tJOi5djA%(kyx=sHz}ylUQ50Iz!UHmN|LSj6k~R5R@aF8pw*WD}BCq z=%%(sl2eQeT$TlYl1J7qF80+%I5s!Tw;X;5Mn4iOQK7JY;ZEsCMO4RE&bXf%7*d6e z$6az$3Eda%DuMPh&3ZvPsl;RCbftF?K5qB$vZT6*bv^k|w7hbBKcdzD1h2TO|4Jnv zW285a)%sFrxF;~J*(g@2t+-6mJP_H1n4O$#340LaXw9a=S#wA`!Atr8&z*Uz?6P5q zB80B(WWMk4Z^ldOP$V)f0HDQR1L!9M<=@AAm9q`g{hVghqZ-`#Bgz27Dk2>GPtVOk zCkrS!vpdm4?5E;skUB723))1~nTVR@h+#{N9iFT^*YmiQq`nTO5s7lcUj-G5DwlU; zjgM>H)4nAV>KS~2L+Kc}6)m!@btB${GBZH%v&(#$@)@zaJzhCWry07-J|z8SU!H%) z8*mm@vPqI87Hy8!LgAZ3Uh#?2tTA+R1WfsH9Z@{$h2W;zU`=Qfm3zL7v@|0Fkkaf& zDTi156s;92IW&I6;jg7;aV6}j@$+7f-6F6((-?F4?R?~8=1WXtP2F!%n2uu!e*Fm@ zTQiudA;SZirWsyi*Ka9D&`g;!U`@z**?fgrj0Kek-Ax1sa+Bn?SO5!;Nmv=JX_18W z5$MOHDXMwo_y)iv2>h2u$M^rPV5#ylR>?dtp1VrUh4Q>guKo%h#!03$i-);KHHi4y zQ*!O{OHm4<7puFCK>ad%3+K^;w--kDRUUk8=?xZiP2L>S1rBd2QU9U|2DAcUef z232m!1&L^2Da~ql6!xt+H7L3U8W|(Pp`Ljr_DCoB3c}fwo1qp~u7@e+S{Fo<(E9}y z^>n;Hu_(*UWxiPmU(@i^zzF2Q@-xI>^6H80H?LAY-_J}Or+O;0blXb}Ioi=hHudQ| z2a1OhVi{bML_niE*%E&Pav^UlwBU)R9VHyHfYjCf(urRUUC>bv`sYmcvZJ^rC9tD^wp#G$c~?Y ze=-TWuhi*4~q)_|o{-7Cy4cl$@U{QtOCi&rVW8`qyt-q%J3dd9L65Ab6S<&>ODOBKFgdWX~k6urh zA7huGJ%VVx9T9b&|5ht?LlQkj00{8`X0!i(XYrG!JuX`6WoOZSdQX-stb?*a{BAl{ z^GKn5mM>@?lDY@>C|zE<)y;^JI9T9Vv+{mtc#tLr3ygy%~i$ zwnhrf&Wf@^_UGyRUD+OySQxt*IX0T+51&;@#A>igSCpl6Ga2{{OIC4vx$=El$Ex7# z6vBl>K29XY$Jsonzm);|3Ks^RgYDcrGad1i%UMQ2R50LEO8Mrje3CFVwryH8Gzi$; zIh9>O#;v@QXX&yd9GFT0Xf`qzAw8}fhD{3V+g3gnkXT46<85b>x{B2RY<2)d2WYsW zW1S9cF5LA-Ra&M*T3#5=cmV5i;Ie+90Ib^z9k{k|nWuJ)t!~mvszb8Q*xiJTG{4;l z#Ay-XK8B{w6d1FoXy9YZv83-U4$@q^dBta%p7LZMqz%p`{V!^F3i|ql0klDe_^m%? zlOZOk1|a~eO~CWtyL)s$F*h_KfAe8~bNA{9lSRKHp#9O<_$~CngfI!*YR4fwdyGJV z93w8eXe~-*F}mB2PuGFU1;{EHA8M#IG|xVLURHoR+~dH0e=+qAV@jWC+I^C$a=s3g zpwa;ewxbF@H`BC9Ehws;O2u#DelF_+Salpc7K*kMuc2Jrs<;ART|rK-SPs8O83~JU zyz;xpzSPz(>n!x_NxEoF+p3GoQMH1cakB1dAYmA z5q-uMQ2S^>6D!gh`P;G?%o!ljn8#}60~q59{^N!ZSiQL6v2+dqHyp(IYb?6Tgdl^i zb{oj5jRY+YN@r349}C!8_>dQh4HjbsH&mFz=AKDqzTGs6NJP}vH{Hf`mztIq@OUN0 z!Xr(G`6uqke413>nH$NkAwRJv*NGPow;|%Qq+=U`Rn^Y9P0RGAY7MLwPnAdOr9MR{ zX4cl*EMd=L_cx>GwjK=^nFO!jws$1I^{VetyaoNu5d7T|{|+B`LhoVF0encMgyx`d z_P5b&GR>k_7J$~T?UdgCq}hy#J2LZ6QMSOdQD?3y172X*k2~6+flS*}e zoFOA!1;jfB@>jeVFvp}H^J>E8xzK_HI3sS>`=yHoB+X2yc+=fV=emc$81nlj0<&LV ze?tE32NrtZ#|~9fp+O!^1Ug~b=sut2xBfLnrtv(Qpw6V45OhtDvNb6Tl+n;)2*Z~e zczwDKjXlhXCDnWwG1uwqB)5cu+IN*mQ{KCXj1FCM#v-z9pnOyg{um5fXydCw<(8vy?k4&*Z1*oR8$gcTmdcdmKX&*W>XtSLk z=S$Ftz}6+SJ(u6eGjtMs=56{|m~^h5q)~&F!Zec5H=s9qGM5zsXw?xLIXCMItaw^- z*^C_Lw~-GJG|9t@hLF9lAoND}Npv2FaB4o$cfkc6b~xP==UM$&fa+sG&tHUZ@0Wz{ zC)?RSgby$xY(!h~KqWIkk}kmgzU0Vs5cqH?daErw_S{l!CdPYIu8z1kI(n)CIBf)- zr*YvJX(;)XS&(9}Kg1E4<1IkzhbFqc8VDkR*vv>Cn?UsyR68(5Q)R zRVgqa8fAOLDG}VHJFKTs*Ahv4ie`?;HF(>85$5m}35ede`TWg_Vo}62Ot>Aul9FGA zeN?&=&3Qe;PK{|nbpN;JyCp3&9}R%k4dD6j+lBW(X%_&?z!wuR;PeTFyqN{NAi0gr zIH_XL5nF$jw?B}t8`0=H0kY`R{SoE-fcW= zvo4TZUM(sYk(qm4#VaE>j=dp)UM5ycsKQjsH)kftC|?{AVXmShfrvM|P}}z&sPML9 z8F(!S20k12mJubD&RtO#unbfLECWsQV_tK^DE_$&O!Q`#2T3RoG^YNZJ*G^g6B8N- zTt3diI(eyOW^d3O)%)8r5X)`s8zklv&{x*}w}55fY5v{1LpRbF1SxASrF;uLbsKY! zBn-C|5tT3H9&;;Nw(0AvgPK*?DM&BtK#lChO}ErWoI2FB!{k#}g3iCK12=Z=lehq3 z|3wGtCvEi)4wNb}1hP#g#ezYjr0%SU!s2J0@!Wh7WumUeQD7!To}^rjXqIQI`zl1T z^%_SBZ+hv(Vg2w1Wd)TgrU~=c+*#nzv*-&OZPGPlGSR^k?$I-oI(V*MLMF)kUh64{ z+*&iDar%o*KqS5|?EvD>FtF}*gP4nk1>dCQNXiq?_@G0pQ^qmY?VI;@3U{yZ6 z3SKRdG5DVQN6+Z$XR=#T`02jxvB%tpYd4mS~c zzv`Gm$zuzc``fJHH^0a3#j%RF*pX-gEU1v~r(lW(U`NK^EhvL8oQY)zqc0Yez0Ot7 zZCa`kjFs10rL;LXvh~EHd_r2z_}6pole*t3KetnZ<85a@TlQ(~TO`JT^TRh95tOC> zC}pLwAe!g^guee;a{Odr`@fQd2c2Pf&Y%&l@-SnIKT|h|{y_!`@7cp~#{O7Qi*nzC ziZdSJY(-6B9rd6CIqQQ8b_1V>X=cQ_LT-7b=;RxIiDjjbtjx;QUJ>*%3P5ty)C$g- z$bFSBg_kl1co~S9V+)ReNchxY|Ph9 zMg~#sdX+&jW@o^f=MPk?9g(k)Hs)zCm+`riIy~C1&a}C`zEZqx{hKf?2#JUD0OEf1 zYqk9+wg4bIB!3eo7pQCv)v@^632KVex;7LO^{B$yZ=Y+JQj_%Mldex#7PVs~_&)uQ zL5ok+R9#wR4PIF8Pbs5Rl)E=0m~{MIZAxdGjb9B5)0Bx(R8~Y&@`5RxI1W9k)HDy_ zBus%ZE@oOi6q#Ct0J*0Q90bNYz8&@yPg{x!y;sMTDbB*kSBgjn%q=7pJP)?nM4o5C zwtVKeaRmEydo58n*L&+oC~%w6aGZdx2|T|hf08^3v62yy_L7GZ$|KM-9)wF3RR6I| z2XV|CcXsPap!rO*QIJmTu6?p`3cJsq+mg-JY!~stk6=o+U`M(st@oH&+3#pXbj86c!h7*o-xn0Ts2T@ z+Q%mU4~rH9bmN%{fDzI!mHMBghk=a7%Rwyn(Xu&wVO>@|cex^D(R)Rx>l$1mOL$)+ zxO1Jd{O4xO=Av3ytog;nqai}s4ma%79x`N?zHN+>l_T4)R}-gI$=rc#Y*yE#T32!> z9Xn=OmEWYR(kdE)!8&~51q^07hkdS~D8mH$nj_e^NZVo`!X1IjnoP^vL2>C{XPVc;`Xn^-m5=Y`UNARll2ATc5-H-fb`uXr+V=5ioL zj37G#szAJnGjKY_q|`=b7jvm4go)})#v4&c8=bVd{fGx@=GsXq#^-TKLG33B9(E#L zIFI62>qbFvxUJZ<)Ss>~=n#BCu=29|ZeBcK1ML4Ya-M5Yy^NfnEFGcjimEwq zKT<)N=<|QGiyb=GCL}8}_b#8x&EImYRRha@B_;yFXQoEbiJ;$~w!{v~A=;TmDE@k) zRwm%8Zwb$tAs>S9ZFzOxP9RgMVW1!?9PBHu04K3}=889|nCKT7rhAwRLaPS+MQI)7 znFx}=bwpy?peo=ttKY;jD@J%yYf}ed?XDu7n@iIO^Kv{5^(X>n3R2*+}GuSRC#F| zsF-1;jl@~4jC%%}B?rO!Y2*2g{pxcOa`;~9RevMo-`7sXSfPDN0EljWN!H%~v^{Q@ zd^!JnL(vl%=`URy@&QJAL!gYpggS(lg-(-dp zG@eO+9y^$#?1Qk+=~RaTTg^F`uG!82dHs5C5B)=d_JQwfD=W~c^*7rwnN;~X%mwrc zRRcGeqOg_))R9IB_2yyH31jc*lj4k!1rvLq3tPgHKo_u#wv|(QHbK7|4c?iz*G5mS zLEd8KuNynNdC+4$vU2w)r5g;3%si+$N>y@LPk>BDE_EU!S1;DcM1aI|-OIeLOCQDA z)ngHFi#iWqMW48L3HOxkIlcw`OVH8%WM6I(^%rN2 zK^%ef?;FGOc5=L@myMx7W0#F)>vhZrGUrpD5*x^d%bdcosm0oA_PiyXbCN3M*N1yv zNJ7UgyaEmR6Ip8FX7BOkn0W~}Sj#XAa~I>#O_m~gNmHSzh)KPf`ay&s=VGLY?Gl%R z3rFs@ghW)@SF#xqLbIiOG5VY(9dqyL1l9;y?Z4DZLNEr*YMV->k_mSz2YCnC)AhMQ z3IW4_h@|h*L!x@DiByG3y^f>gdH2X!)j=>+RYU_tA^fq#1i91=E|Fzfr-mpI0=2Q{ z5$tK`y*}eTf)N}w`7^LxW_@KU)w!UfjIFZz0tnW+L9?eC&H86==>t|zh;zM<<^w&M zq2(mhTUWmw0RH`=4aVOt+Q9$i2)&N2t&Yq8+>Aj2+_iBE`d_zJ{)6bti^@x=`5yuI zWC8%FV*l?K{pT_a(;scc%WGerzg>n=h}045q(uneW^Uck*NRq@s6rvBM!BlGgzrPQ zYu=cqiej41JZg2@FXV?<8f=zYY19{VY{WG6%euJ=*DTdK?JDjGpzO#!4dfJ+=Lu_C zD+Gey+K!W{Z}aUPd8GpH>rr(wS*kJ!FT~i0e_2#;!mOWzxQbtx@gPM1*2WP`0J6Xb z?y)T~pmFkOJTcikahck(GUsF;T7%%W6iO}&K`LQvhos*rZI~RLH;3X~LS>Ggv+aq; zBTxmnvHI(1L1+jlO(as0*iX*w+?U@%Ye}jNVi7xa{e%V(d0pK`z?nAR!msMTw8&GR91**bNt5Wt~)mV^ynQTqMSB{6v~& zNp3H_7s96@$1#e0%iUd|uTp!pYFNCKb^^c2yUv(pkyZx3`bdOM}ESxAW^>yQWrl~WStE`aA7P4s}wrPehlepRTZ= z4wVUQ`Ati8!pCt*djE7@pYh{_$?1LN@Iz8TEn=vndb^Yx70_As zEh0%P=i>Rm?Y1QMk92NW=03s)pzsN>R{U2KnEz;h{sD!s$^I7F1Izos*W}jg$DiQqkt9QR@yII9_GJ~#p_EoN(Vf>y=wdJ< zrpTw7uU2(hj7R~3d<%FMp%9M%{$2+$zb9YRx0<(v+rEB={$yK8gtZm+=z?KB&Oi_Y z5s%4R`27>(NVX4DA9D74S3Gh9Q^k8qh{j}z36qK1t|HEpO=``-b34Z{OPJ!_YUyGm zLE%N1C<)_%PG7w=RL3v`6}4*o$H~EOw-=g&-`9r(;@IJ=<8yG8#9$>35niNvZaJKNbcwFH26ufuO^fyA${&wKb4G=8IY!avXcq||6x)j#X ziHi_Mil_H)cK+gYzo-ZXJLCAv)iAf8sR;cap4~t3cS7uU{yMk^7tFCh5{+t*W|e7l zgOT!CZsuqE@FV5b_|>`f5@yCX=xndnp1TkyK^ER@9EC(V&}m@FKz|eJBs%-pDY#)6RiFf(vs* zc~RsxF%6vB8-x!)3d=yRft?Wec@I-Wa~WaQAEHR2Yv#sE7Rlq*QHo0H1oTK2l70lV7oJO8`?~c<5m6AU9lZu{xfTG#zt=?CpP=9`y=dx3i{K&IqB|ff z9IMzZAa~4(HL!DZj8IO7F-GfP)Ub(k-hCzYx#S`b0 z{@w@R!@})L-~&*yumpFBtn@2LI#I!^eM|?%D#5i(55{>S& zr68FCok%FPzQf{L1Q`;9nes7fJ`h)j7WfM3M+V>3@&rpJ%fFfzuu` ziexSWkTTm13LH)ZCz6C%p0`CGD3OTvcijq|H_*ph;64=Xv_77`y(V*uiRJ z`i?@&N}rhST|p`OfqKHZ21|JTKHyzL{5`Lh`u7o;NG8XPY9-`%ruA7E@0lR7k|S=C zBx@^S4SG6!AyGq=KiLsFX}C@X6&{*VV`5Pz2tuJbhQEuU$mPU$yi_SF-7w|}YJk3p z7IRQ2?`;^}Y;6#bCY7^$)9l_o`qnGX+tIZ^i#@SzOkZx;aiw)~X7e;(2Jhk*M>E{k^ZAo!O# zrEkRIA2CfaT+s!6x1(_JmK9|{!b-9voHx$gT22iMM)lK7H5f^=3ZOT-nSepTJM@@7 zySO?mNmG)qB8c_i#_Ed%n>8dh%!&G5`YSdJv`w5( zR6m=bU$cHRGt`7Erh~df2?Kj{L3k&mrzdo@bSU{!dUY&IsWt02LBMru!&(w zUmk?lXY}{TA14Q8v#M3EfEYd9-Z$|~GLZ7KMNtP($A8&xWEW%oZsRp6?r7v$)j#rS z*iFXB&)KZXXLV$T*)&#WBp}lA>s0{5?V5VJ@Fg#-ng`nzfk0T!fLEA+1($d|Jw^YO zQh(wSxl`H)i@7i68S8pwO`sQA+p-5XaH+UydK=mJY9VY6y%R~)(FO^X_L79~z0OpF zqtn?}evP~ZpdiS*2dQvH^?EiU2g?o7$L!mn(CzL)vn|gn+`5S%c_2>u?Q>mqW&wT52Cs^;_)s0j zy>@qWOYznt*5w$??}1TyJEfsUT4W99k36X*(zy5BjL%RJk;u&%sg1F=-d(kR*2m@U zkD1~7s{{B#)0X>aom)TzQGZ5L#y?J%{6hp&|7gC3Uz)FK42w|{gpXFFG|~!kDjGT! zMEMdr6V*<=-W^?VUUhTny3brBBR)&6^bQcy=nb%(DcqW$1Oho({T#9Kr~s}*Gsk8z zkQ4G&rM&7I_1c=3x>r9Z>+^wP@pedFcoBZuBCC~}t!z-UFy&{f<)y^(ul@tb8QN{M z6-NE)h`bXx^(7YcVl6TnOci*ASvs9QVlGfOE8JzJxWmA%+`@GJxdWyHbVP`0snv{( zf}#VWaV@l;E3XG6DaW2yWt>Ae1gRs-E%SIh;Pn#IGiH{FDjG_M|NAqtPmC#t@kc1+|mD1 z!CT<2U9IC;5Fa7Nj@;o?+d)1o#h+7vpyP|%gz2uhQ!J*D{K1q6WHe-M2fxK;#M+(L zB`hXaoz5mh;}ZSmQy*#xf}&8r04iLp*m1m@rS>fxSMY|rv(F}oi3}g&%o2zn3O;y_ zxlT<-a$#2re6I&iFBA8ICtB$Q*u{Bt9vkz~OKdsh6H=f=7@OFERRw3^<(p2x71iiSoy7W*@MiiPh zhBlm}P}xbfAq$>vHnTf@D|&Q@LXl0Pk-3-x&o?*;6jLx>yYYve5rfkQ$_&b6e)=9& zwI-ZCg;PDk)RGF8V2O*PrT}wl;Wo#`TMTqC12rHATTS{PH1LUjRL4*PFY>mn?U`>h zCiC2J&w$RJ^~9Xe?}Vc3kh3@Z>U^mFRg=W4@Fa>FD1t194Zp!hNyH9!Z+gFab*tpF zhV{Rk0(gljzirCSB_O82Ka&HdpUDBh(&?gw;ULk{sZRLvrkeAsKvOs=x3oeLA3zO~ zGnoA26z@-25R|2Rm)(3$L=uC1w+K*F~W?p!o$^QA$;4*X<5 zPDt}7Wt9+}fJt6&y`nrBzeW4Hqs-}sQAe(~LcDan6&vqHM#-QxH-vm-k!hJRMysPd zSEZl&iLY=as@HgsTH|iUF$y6@pf>;v?HtCk`J<{9Upz>tr|c9minPTot)N)@vcRe= za(OFDU-sUC(zsDNGWsW`Rm#%mi5pn)a}jXvmW`cfkYkF(U9@k9)=&q&3tq#qj5$00 zLNhkwfl5EtCN}{Lz$qrcjgg<#Cgwj@UjL}9yf1gz{YU#>ZjGuiE~G8u%~gXSGF!?| z%jZ*2*6P0uw#Th{W&Xf?SS;J!qfh5s;(eSJcNlo5e9f7?gS!-*1r>OK(heG}0=}sE z@6p^<+c?4K#Vm4daLOHcsCiB`Q$E_6&FoCe4VT8>Jsx+O#x4e@RNQ66A?rL@1l*&v zTHBtp5~8ZYaCXY2Dbh*KTPylA#BGL6qL`3zW<^I=K&pL1K51GlvC_r>VQ68rxAnrs zp#v6(0xMw&FN7lh*l#ywG`3+i)^;088w}z1;9LCwZ*m=H-)E1dH8`t{IV4m>Nj15V z&g|s=w=}1qfhEHN#E|1>lw|!0CHL14jrc_z^$C0goJBjL?dD+u!DIXu z3*m`xZXjoc`w?71Nkh)%P}3{%C+mxzOCar-wAJ1WeN$CP9~2q_(bkv_o}dM$V!&xR z6=|Ogbq!};O$_l|>-I$rcb0now!y8*akc?+D(u`Mx;Ba{K8IBGmcf!oczL#bOJ7Ex z0V82ND{!6x9IcREYHiEzCZXu${sVZs?_y(t8snI3m))@20TGsHisRJt-^Kt~NrLnj z*BtX_A!q)HAsHq!45(o+TqIKK1qq;2z>TjaJxh^jyrjDW#*4>kdFRL#0N2kl_>aGs zCb$PZKC+w#45`t}Lx@-v1!!8Wo^I!MB*E~_-*mo1G0jk2rZsH?QK<>Dr~IZ}LC@3E zq0J?JZ{Y|CHV4h`1K&Zh*>A2jr#M<|>hWa7rv_frBI5kkdxmShz zW2kR$(R*{x2fZoZ|7PXZSUrlA{+#UmmGH^avHp9^y}=pLpqh%^)BAYdvo+L^R0R^Y zUgx)E9q(sQLjPtnM#giW+yP|4;-^)M;U_+0$sf1LhyT!pN&FT^o{gTc!XzjM|L%Bz z$cjupu`^L6@gTik)9)>N{2rI`w!Zgj40p@Jc;?dj&OX-=wss5Qpaq91e;lah&MzBy zNp>t`NZEhUD;2~R82skwAz96)REv|bn7m+hd5I>^UM^-*@K~NufV5@E`ePR+S8S8l z6i=XzwsX&9RA>ygo`$F#WAmIwqQV4$iYf{jbUzkAYE?AaIDm~k@`7e_P$AC8-$-L& zO20`CI*2YLu)ID1YIu0dU@HhxEF}WN_axYG$2@UmB^;vnWjkGjy(oH1oeSEL_haqA z+Y-b_>%m9%ABEPgy0xDbz*g#?M)c47lK-Hz7Ezpl@4Fxb7~Lyj>DnNQ_F?fAkj%D~K_&(`&0_|(Y$5j;B_2M08UY7Gp>wvT`7fz8NfP5wI*jP9o<*x*ZJ#v!Iv zL4-`0JQGoLJa(;q3DN`lRWl|h9ND}c*6+bhsU#>_j@MYLioVmbuLa&NP+GDDbMM%u zH7*&>trFsxVfeLtzPGDGuM9|9Us0eq8lu!YA!vQhq3g~Dn#N6a54Hnma{g7yZ)4F4 zs%bg2(#sid$v!XgsPGo*eBh=x>T$!Tl>LS|FPO?GHa?RJ=|$+Hv>V=N^a;^xB`mnG z8i*YBqfK#+c6*!Tjf=v2H&OvLxlUqRVkERSosMMByUBzHMel@raC5b7ji zi2RXF13`9pFkdsz2+j05_H!e6V}lnGWA0`yHwo>M-)k2Zu-rX zP2h6ILbz2XZerRrGd#3l!@QerhM`tVxh%hDy{A$Iaae^nBM1dG?*=OXt>UGjmP@p$ z`j%VeHPflhU2*~uPMoFamU}C^VMl##m3dSukLPWOB*Sfh|dhMU) zB~8NUN^-?C4#*k&^kv`BX7XXR7ujhIvVYR`nsIm)LI^U%h%G8IV$4<~1_QoP6?H0c zBP8)`m&?Q3HiQ75HzZ-0+bbvjF)MeSzHRb0ggd>lb5N#@Y176X(=&R%X>J{AENbjP zb>i^#MBn_=dau@xk@aeZD~9@SI)^_$fc6iO4U1Zq1lZsHWs7;}Rm@cSV3&xrPfHk@ zUXic^2qcx=JmV5fO^tHeM2*Bfn7OH}yY56)coz#WD0~x(g_#M5U)k#m%87lYuOG{W z{4w$smDCy6yo(nE+2Wnc=icJ#>Cm3$KGLys{XfRO!mY|}+net0?hfe&DM7kHy1OK$ zkw&^Zq*JEfLW8-k(987V(GA~k zKWZZsMX=LaYUeKfsB8ptkM}@%mXq0ZP?JKpGrO(M8FKxtZe;e*> zGKq>suCzZmIW=KiB9>Wl(rh(k0m}jT-)^7zt8te0pv#Nu?CM%#^VNhK zL46T3>tdTxTt=5|zwsJVaW+Wm8?0<=U(HqfB5whm;^E(3{v;KTmxoR<=>+C&dr3)C zXBt5I@M7?Tss48!?l?<-ZxY30J|3ddAzHM|LYRc+mPV~9%jyIN5jS43gA~sax3|Ls z)ZfRzuARTWGoX|#P$14M5LdRSS)Gpotavb+Huu;YTk@i`7KxjY0;IL~u$gRYC0ZQN zgGQ8WFLyrkTj>tH>KjeSiZZje?hiGk7%&NWa@JLfgT?YspzlYre%3IAQT$n93uqU;^ol^sd88JUXuS{nq zGm+07V0!Up=JSIcmi4PfR3(cr=W0t@HBZ4_U0= z1_VhfcrH``&iN8Do-~;)xZ;{$4U{DFW(y&jwBagPF`_af?v_NHHT}Fw+2qXI1!fzX zb>2}~h%MteI!fX&F!wbmU$mIUZ|8+8##^X={~f#@3lOWET^#T#2*B8G z0eEHv@f?H&+2Lfv7BpJ8CEG}uA%ibL0o~a;7q2zrO}$Ok^LS(j<>UH9gDAg(tL#VA z;=tAUB61t0sO?pJGtLraH(jnVv4qwbSBi1=wC;f8pk?2s7u%TC@~Uj>Y?-F7k3ZB+ zu{qzU>J?M64FcGXdkly#+uTOTw_pEnw}ficTDGDaShzmPgp^#w09Vz}*K`1r11nWTu@YhYE;M8R2j08-UTZU3im<}u5@W4d$X z+pPRuG-mp6DsJn#L4oS6W{_YC6w7Q_~mNKLLi1 z80f)slCpfE<(F4Mh?PemU@z+Vq(A$g2BA$6hq8{b2X zDTRF!f!1NXdh>fMtUv6e-D8ax7zBgc8t6m}>ALM?7a%It=u>4c! z@}MMgrSnKyI4Tbjt>pKj!Hw;ccP6X&7YAK^E5Y|yb)(&1XIQ#Z7(S|xKbbHEZmu)q z2$U;04FC}jdH~|F@%I^$Y7hPL6L7XBfSe&9cNRdnB;X1YGI^oed`M0I!;gd2b;T7R zt5T~mQnRsR|2Lk54R05!e<{$|wc*%!{8mBry=HW-z{TVC1$-m%%`x1HW99@vCV1yb zX&w89=vv$!AxAc+8z2)*cyxIgB&J%}$QCFS8(Wc>WEQa7L>Mu?Db@j8b99&($B8+MJ4t5<_$P`i1Hz}q|u_dBImBh^dV&{ma zaWo{3yfd1+zk#|J2p&3g>) zdauolb2gXkt2=06WSaFc@+l3+sT`~Pj%^4gXu^p&9y@1$s7_|@*s9P0WtRpyhFL-E zg231pz!(M}0Z9m`M6l+L^MD7yzIP%pxBRfeEPEydW{XiJ^CMx*B&AIi?c_vpyE zblxz7`5>QhLXX_ZT|FeHP$;^_xz;VUO}2X(JuP}AUeRvAkM8HxL}q=prff$L=@@8q zeYV-b_FnI3!BoYI9VsAn&|B`6*Q*(!#P%YmG*M1>?ya^Qv+=PADw(9rTb${4Eo!x^ zj*z*!-sNT6gOIHVY*p5YK{luUL5z|3f|KCWfoN7@0$$L@o5RzTnW*L&gGbzT*9T0@ zG*)cVh>Q(CoQJ~POIn~|ouF5YKY4Wu-R~xEa?%fIBCgXviya@`EWL#&Y}{64b!9Am zuX|OymcYp3=t5+85B>MSApG{mY6mbFQUJyN=erCDB-AJN-`DU3Rm(*GwQ6cU0sKd2 zVh?{bnMOLbZw>FaY=h(7zRE#rv2lp{7`3pxEx8uLiIO$yfXli1%ZsR44t`}a@A!|+wyX;DvfL0p}kdOR*ak}s;;RoKU#os zf)D|a4nqb@b2|T2gId)&(}Vj?h;*V1(N{9Fy9LUvZz6Qo*kmH2~5L}uYV%+ zeAkt7H-OTGgPf_{AWkj4*lBBkyhP&bT2(VO+QNMEa9voz*)t?zkM?{1RLetadSn16 zGCxyaUCoiwX0dk~kdZR0gwfc^qNqz%m8PAj<|yv4j%qQ36~OpR<_7n$sb9ryRF=r) zh3#_9?eLx?TlnBttWngi(_wgx?3v(X_M1v)p`;%Yo>^40`Ib(IT#}B(5oFGh>SxR; zyaM)|JRSZK;PiWOY@PiSFY|k?DD&#jCjCp}_F97kf(<9T_i!fuWhX8SAg-!*dZv$f&LR}r29UW7f zkQzlztwUhD0NZ6g%7XK%N) z_@)|07+L|&j^cS`bljxnRMp9(-k#*Ee|*$Rm0!Oqqb%b4j)Q)w&5tRxGz3R)GMi2D zZn<}lLBV|ZSX&#G^;HAtq4h3oOBLzEFr>|xw`W7xkcTG*@N zOWeI!RJ&T&kKrS>Qw1$`g*UBU{Qd)Qqj{s44IHTypa8f3ikJRhb}S%=2M|TP18{f% zRRkLpP!(a&7EUUaKZ2F7|JPz0^l;YEKJ%&HTJm<4fxw(Sv(km}aw<6VXZ zd~BSe%9RN91#q*&=z0I=Jjn_k1uC-~R28+`y26o#FE#J+p84D>PUh8$YD(EF5qyOA z*ieVZImBV(!(nj6gN^fz1d-B_!k6N*67!mN$YUf&Wr=xc*F~TRSj;?p+CowMzJ1Gq z6Ih1~Vm8KEbS?N*fHoYb(3^y{A-K%Z^V@Jhkjcc}Il<8gPf*liVw>F}`t7si6=6RUsh{NqRuO}Fbl3*98!SzYeS>;+&zOpiMu??^}D^V2c<~3w!VK5 zciG(htw3@Ks6P2etQf@op+ZGS5h#b+HZYpotyGp~Hwd^t^y?dt#8USM_%S-fhoJ#} zjI(G5KGTV>D*e! zSwYs{%xRe(IabFkbSxzq-W)fhqnp4$Fh&E&l= z+SM2t9JMF6$+yudb@{Y!AI#%Lu#~j1OVNgjsL03<@eK=my*s1pjHjsn1$1CuAJk;|#|fZSPa))#^FPB3!9L~;ew z2>-kcTX(l&aJ@yy6otoe@2<2)LZ_+|O-j?iDjm-j-?pR-0zxOadDciT0F^=D+6{!; z%FERV!(d}NAe~4g?@n7;nzlP0j!X8wA+_oO;I?8Q+(s_^7x9d!g%TD*@;o$_=tF@w zJQg=dH{-;o7R)Rzik1-X4^O+rEa@T>Qkd*Th$>EG#%?Uu`dp5phVeX$~Ypf7QMQ*p9 z`z(2JIpg)k5aUJicU)Z~|NZoTl?${1=FcX9sx2D`Br_>~4S0e9rKZMWmYQ5Q#Z5Hi z&m9b%A_OC4l*CeUtqfQJXX{$X(&;$4JlSWf zk9X4cVB$vz8q;O^2cU(56=w6zv&6QB0uy_*!@YL#KTM~?Vk`vPq^?N6+w3{AZ~EK? z%L7LDNpe~+(%&5Zv*2Xh7FqBVW3B%e$O^$w5*YD=joiWRDXZrEi|@CcVuH_@aW9gB zs1)vTP?WypsdDaCJR+?7m>=3|haSprkW-nozsm9-=jnysL6d6XTDOos0ESb z#?NankhQ|Pb`v5FCG0JPN)*S z{MZEvc(MW?itl7oWYEFrX3_m&oL(Made10_d_G{8u;^e3pJOZEQ?5lyYCi>Y3P`jP zN4ea6oOu&xZV0i)JZjd_LQz7O-pL(trzf2Aky*q? z32GOQ+1y+_Gi;F!vuW5iQu(J@*5@gahvc(-${0kf=Yv#`I-0-DkK^`&gs=K9`;p9d zw9}Ld9gmB3dBt2;tVt0t9*zqKmZgdd2q9D9^vmJ&s|Y#A>p#W6;#9E2gH8H;_V97R z%Q=9hmcYqno*}Bek}fu?an-=HZtjzF+gnPeQz9z9!gJWVwDSGAXuOlL8Z7JRd?D`Zr_O=m!c} zJ^T2Wy9D8dVqqKC1`Xp~);ME!MSE~{O3QdO{dciFPoX}YF+#;7E#vO4)?Pk(pP?)2 z_y~vW3XGswNj_(K$KCzG7TLXF2?gr;vq1MEh#?#N-_Q#n78lwQUO-i;>1sWvyzCoW zx&&h6_j=@;HH#dTa=lLv#G@M){fL#(#p~$y-untqI9>bI4r&e(mK|r41@t0st^-Z| zuKTm}g<|9g%|6!oY!=9a7;Pbe)CvaxbgdL5O-dSs9(7IY4b zl6B*Wdknrdyb()|eZc-_=ntQ6$4E6d1f9OIPh#l4smWYo zS0BaEf12vzj}`VV;X>sVP|9mi#}y9iWM#E#K5s6Vy%QKEsLxZLCn|$;B^&w zv-Qp>W2gn%}o>rlExV%v<`Wc4wEpixF7WpCB8Q6U54z6!$-=cmcbYX5!FO66iHD(2>l!M!nIM4lx^kRHDoFAgs(vyhh3=f@ZCuUw^txjk#Y#L@)%hB7q~*Hrd1poHnmF2oRBXl(o?)) zv9Scxc_D8}syxCylGSShp-%T9hWA6S?op$k15H?nymnWi-mXDq%cPmDG-JDn>Jfa% zp`)))qkOeI{uHePmq571x&J>Nwg4iBrr)H4f$#t@cJ-f;6_8c^w=#M`)pkfCS#|Vu z{*%<_=zf;i5Q=%5*4UviDsl3iHO3Zl`a&qrX(Z#WG>P;CkBw+zu@mnm>a5R9%k90{ zNC8gvtK@@NCHr+b^qaIEz8{LPO;o;V8eg!+OTaQS<(ByBw)3wtmJ5E;HESQb;x0Nsw%`*H#v1oaDc zw3MD9rxp2qav>8uUzoNk)CgGS61HbM{6SZ4amJKcOWiQpr`K@z7mJ`yNg_s?T?St? z?a4_@SIE0OrT{WPh-vHEy&j%txAo$;C;EF+w`kMhIIZx`a znf=l&*qIXc{*nj`DG#Y6rI(Hf;+ZdqxRaJb93-RqhQD2Zu|t*@jiaQ7Y!G%1$we1} z1JJ-}xNY#gt>`JptB8tb15dVn8GF9+amCOED>8rNcNgQE`E0a6G*Il30--m^7QEnt z0=|kPlMb&n6Er$JKUhSmgp}aA^8`#dI95%*nsw8vDr6B=`-l01EA#@0p>hJKo^(&J z9s~@CjXT~WJ`>MSuOHef1HT7;bDqg%akTP=&gMI^4hT*T>iXbr^(p}*{boQ(|BEal zEpujlwMsd0o6h;k?m_dx5_USLN5;pQLEX}mb6L4Hgp`&L*tDrp6lDwTKS3>2IgFx9 zK-ZRn>RLV!)(HRy50vGE{7aTY>mqH~L}ha1aSts#EUEQ;=1eLL zB*U6bM^?25SSb1KT)l(oz<;ggl*l>f^qgZ3Y9nO7Ne_oO@B7Zg^Xr_Y?~$1(kU-3g zu!DvT3c4*Eznb*oqk4U5^6xucnqgU94ix?8ArCpzdsfjJV$+vDh(t^^CR?CyQVUee zg0f8}#cx;x;Ff`^gknJIg|bdQPg_m$>E!M?V5(vW)k12tm9V01_()gi&>!Vc?L0b3 zO|XO}K+k*3EyHucHlQ zHm&xj<3nt3a95Ia)r7`{)^Q@4&%z3%Nl7=vREFDIab9khA`6u#y2FWaPKRh=T+OvbZS zU09Qq%)HJpqGeoE+NMax+&D~7yqg<$KL%Py+L_7EOd|`4wMR!=v_^5uXtiQefg0=T zLX>XgUU#uDgpwq;Ooa1@fYqHcw4TEbDM8=p9Y;TePqEk$p^M;?6K#G`E|TU}+H8#> z4-3n=6*+Id4=dBQSUT9G)@5TdP`{xFi*h$o=`w|-Bj4vb)sQge61;ok>5bshy-m396^@j zzR45hM5_JVx3uJ_UPY8$lvCwa?>y10 z+7JI8(`1Xw#DKGqF9QCgA#CI1jnWC&NrstW@^>cjx*+qgF?RORC8n3sO>4c$xYwF| zT{NUOQ~I!FQ;SA9;yJxap-Q1rp>ZfC#7`#Qqb$4Et%jr=g#~f-<9BR);45LPrB%p8 zenNPsZu0goI@&gs#}L#v6)<{RpYl|8Iyx}K5pE@sJ5f7PUw*FX+EICzRuw%1-`ofZ zgYaw7k5GV2>3a^$>JM;nXeh4D2^2VN)^FfD_g%ENwDW7GW5&{!zr(jOfcbvKa1q#!cnQIRW}xu& z2aVbJkuU)k@T+ct9P1$N!%1;#GJQZzAcrDbEss^}N`Com#Wl1`T%Uqt&PwGo zc<%L@y!Ho)cW6DC3FLem-@i5cR)z#PEZ#`;12V&U%W~pv#AaQ4!>FK#3fr9s$T}QZ zc%)+?EM38-XO6xzyQXfFY+vha*W}k($twnP=0@hzxos?13U`bu5j3A(m^LR*&~e&i z&QFAUfKmFLClf1M2H(j$`?iV}qK_6OW%kowzHy^Qf<&W)`x&y!6ajgSYecd|Y3_bv zj)|!RG+QfWSKdpi<^7GV!Z~DPsueATSAkhDchXx4wf?V}DK?roB;>Lm8MG$~oM>_1c zhqB6TD)`bxd5Nf|jy)u)7spTMXjxEpHo-p*{wp`r+-%afPG51UpMu)$+K8>#H&qP62$UxE4JPHwO77-(tFL~ohL+#iQ#QPmwZ!URPuTGfy|I8r z4h#%uO71!~j%p5S97;~b=iCvW7kMMA0Jf*8=+wyl;n>HAkl^9tQrklj2k8mD2(0WE48}*|XaB@Ml zIvEeqwbqFJYYh$06m)d%>JI_r19%H1nID^ym+v<}N zi}y>>+b$IHFfEIOH82Nbq8obvQWElCq-5Kb!6{iMz*8)ZZQQASTnZp1bw$)QUk;KL zsDEJNP@BWRA|zPu^_0TZJ~v!O0n`dP73Kd@D;NUR3X|)fiAWs&rB*PtAXG(yD)}6)Aa$F#ZbO3kxS@Z_hkYnTc;Ol#9VsnQh6Fv-4)=} z*e6|~X#n84t-GdAEjgmrJefMFW!9fGbWq!;-SS9|c@{l6Zz%Gn4B{D1KJ*q=pqcnf zU+-^L)Ox9=|0wza<;hMm=w$b0XHhnk6l0(3Q;0M3Kq!8X)fQIGdsvEjZ4!zIe#U%_ z*#;)1+?d6@rLK)$RDXG8F^;`j$VhzSII?poVyRNoew({5bISIO#0f7sRUXZHv+qeK zr@uv*>v1|OrwEBF(D=n+LnOl6OKjX;e?GrbXN8@Wb*UZEu1?tO>w@rYL4NxVD`fQ6 zpxUgWZIL%L`u%aYFxP0Ytxk-~|2J2Y)=yyo<=z4O{WH+W3SwVQiu?Dz4B*eNjRoxD zNjzm#TTl2eA$0I3@>oUFT^u0-W8J=HF|FX`v$8&z$-W5tYv^{V`G__*=_xysbdngV zD-Cny)-(zyPzCFb5EdgGWC^q^mqC%uyhmg1xLJ+wM?%G;6(-4M(v!2{XDEO-B??J< zY#exEbR*%1s1y(+tSpq}Oy^QaR}4=J02jGWBvyV$K$^aH=^eo@#+0GqL_jE_bLZFVYXlBNj@Xe&$=G z)sN-XT-eD zMqFb=Q36DeBo-&=JB>IX8Cprm4}TEinV`woQsf}vQT{x|S!#B?`LWaWbzz&mqY2;W zDE)Y1ah_R2Uy?5+sIR4wOdcllsAbA;ef8JwfM#KjLuh(7^Wx6tz4(`!#zS?-5Q?8F z&dc{wIA|1EtbLJ(SOZZNNVzd4>Oyb4?#W|6H0)X0b+3>!B0)fgxmqV@-bcb67~UMd z7kc_YTUWQ;aEUq}mF-y|)rsfj+5LwjxF}$96%|keBEU!e&s_#8LNE9~3eff9B?jCT zB_xY@y5~0ac9H+cVbDr3M%vtd%dTL;a#C_Uj*sXo|8{IQMOl>3Af`ut+f+TGt57Ju z!kLngpg;~#!>H#z7HO=%XMkb#gw6Y8fLo>)2yf38`AXEzb!uy~(kiE|7$O>bo*Hui zAa4nCYWoukRcfa#eTX=Tu`r>D{eCh3*6hpQExeuf=RuR)wo%X8AXOslYcEsAuy;qL z(lzPX@<4b8D^}pekJKfi>rrbFbk!Z{p*yg;N3)%4b`F)rr#PC)_wYo>%qzo&V^WWo zC!Xxa@-QOWUYf?(a%FHb>STu-$kz5^q_;M5p}b;1-sGFh$x+OiSbiDPBI?D!Y@fpGi z|6Olq%}?*tYwTr%!t6%4c7G1aMa$?a2j^7S@svzKYL^mfpq@t%xTd(5CdLV;zzFNG zTapLj_Z=L(jBjZWt{IlP=WdCfl*ZX<%_p_#nH*5&^`M1GVbsqM+DB{dkm;-tTA*?(KoRUISIv6 zy@qtJ0@u8F{K*2TV5`T7eY3*ozqz(N(7IpQ0(F$Is7T~IitjzT$ikoB>osB$Z~mar z?V4rDp7h1f?2t9X8ehv5n=Q%adi1}5cOcutx7Ai{89(X#V>{g!jDeB{6dw5c@;~=C zsPo`` z+?lfsnv~Q9nvIgCi~USgXDvGBxOvyQBrzDJV7w_p5pA=+aVn{ndPxle8A8qn*%Yr1 z8l9&^hGM3eUTBM?Cwnz&8$sbtLBnXOlYV`hmeI1YA>HFI^(^Ir7{l(z)?utY?xk=%P~`I1Q<=-W-HS>cmoZ7S!bWi|Wi;3fl$Q7&gy9H;u^9S12OD z9+UDCnz|l_|G{sHAqj0<=HrnErp2H|*7_f6k=H&(OCU@n3W@>d1f_GF83yVcVKzAg z`we!D1GMA0*Pu#USycKF-zmR~P?n@Fq9_s#zdR+zMA1XJwUWFY<8e*}FTJZBrjBoz zko6SM*8d%-i&H>Vd()~VO%ACCi6O%_2RxP%87h({qjR+fJhR` zHd#$(03Lqk8SsG2bY=wYpzcW;x7bpczy=_sNIMA=c6XvojwsQq-03h!P&0`Gc6Yig zQ-DrUW4A}tqmd!yHR*Y}9*}exO<$HCw-6~ZHf>1MTTR?h$*gDnrIC3}_Eu62Dr5*h%Rd5?&1uz7)@9i$dYO$f=_P&)io5Uq-5xS(WQ z;%Fg*+yQteUJ4VQGbO@i!%^oaML-mv{37GXHWnR+cTjF}z?y`5ENyjX>Q3;rcS7G) zmb={CCZk0bUy#G3lQD!X?9;~jn7ysr?!D9O#hIBb#)Qh~)S#N=bp9*haTdS0vpXEp z$63lZI+?zIOmIXU3{0SWj~L_xX9WQ;L@EDw=3Xb&h(_?OG;>FL@{`|?@sU($YmK`V zF3xKQrfb}q*m8=T)1EHPSje%LP$Hc4VhUHsny(;0lYp%ily?*Y6!0gt{saj4=gRF0 zOu|A*bP!Fw@Q#b^e2=5g4%>3$+h%^6mp%pnQupYB{jVd(<+|5l;<3b#nQtMzB)?%Q z00jIVkxU~g@8i-|(TVW(Z1J2Z&o>*a0F?!J4%KHFfSyA(@B7Z=fLV#SILzuUyj=#* zmk)hc!`IocSO(EZL|c zybvw^po#M;LJ)2oQ~JF|RXQZ#qRY*+iOsH?a2&f=$SrmGSEKC%f{}&Z{4eM0&ixDo zn>7kLn@2XLllg5oK{@&e>^ z=su>y8I8FfZRWW!N(JRKvd%k|DM5K}W_py?waf?(UcdV}R=xw(qG;v_$D-%vj(bQx|*Gw5}kIyL@tuy9ofDt^p%pfEK7tvQuE`7^vwupx}zNA0eZKl$bIoSJTO zK#f6X9fHa-^ZEDt^8lU+4tp7XGsp%mFUDk-G^fNVK|&86!W9FsXLq?}sX=>g8cu2+ zrD;_Ss$oAizSCTgZz+!Xy)P3jyQ&<#dDtoh$d0U6rIbXzmyb#>19pSIsZc@n)xF^P3Qw zhZ(#3(Y14DnkcQ%Dv6Df?t??}C*rIiLpnk3imD#NR?@#Ww_!Ka^$XylhYqT_L8V6k z05o7&K@b4%`B#e6>Aa)VtNmYG=^}tDT`FY~C%<27a}xXUUHif$5owtmpMc(tl76E#~!rSVE5% z^ZP7Q&J$$n`m11ukeS#~)CNXHf`!V2GkxU=c~+@Ln`)zcscQk(ZYY*U*V&qN|N-@o-!f zkc0a8X~0fa!Kx*tN9-m7IFWHi5F$gsd;7Baj^1IZTm-iRB7LulE9@}gYpe*kIR%F> z+|OTJeUPPLrXEF=%@A^CE)$Bh5fpIk~y}We7_M^Et4#W}vYNnMEW@3t+34sD4tz+-`HbpKct8(Epx2Huif0>eJY7 zuLY_g33Xch!MYQbC`=hXS|GAkFbq@dNmY!@?^Hp$_bKO>rfOQ?6@mOq9B!yLrS@m+ zOsNkZ6Ea%VKHR!0!DzDg-Bmq05&*C*9m7udWYRoWr1(pfHePhG_QQljr35dls*A;H z7Tifft(f4;Fz(lRZh5RqSo|i8j=kJuNoOm@QRj1QtjBRoB2=jel{&Czuyzr;kBbfc z9`S?h=v8MyS-~@2zLt~3C)K-=Io)VDwnL3L#VWs~WNW0@PD`B~brRKG=lNcXPj#eaxGMNxwyS%|mwdZnWjGS;9M#HwUUQ{% zdpGtc-f5}S$^d-u5eZb2vx7Jm?czj%iOUjz-1fJ|CbWs)`TZ>0DxAQ>V-xV$7b3 z9SJ(fvSJ$Icex#1pl$o9{W7O^Q7W}v_=N!A8#2+}(KL(~vh!}-D+rx)u4~a~OmDac*K4GvR ze5YtCW$)ms_ns0qZ@ujO=ato-x;~qEwxoZ9j4r(MhT8}@ug~xBZ(q*Y6nYATtL!H7 zuW;Cx>zD|Hlh$+(JuCVQ(Iw1pWP4UP#4D7|A$=O}Of%zhuy0O4`_UU`(+Pa^v6{g< z!0RHtoHXpnJ$kkO<`0O9#s)^|7%*%=n_>RzrNIBiUf`qjpK0^cN=!yWbj4W*DpOfM zr>sa!Z#+-72oR{Gx<`aU{?-<@P4whV*6aVe@e!|Ke&lOHtdD04pnQ$6ddf4Vt zkKaY4xc&VUB>!SQ4-e?&Bv5xjJ`e-DB0(Og1`he}v^qd46^z`!QmN$sJCzFMgwvk} zB{qS$>-K1WQ*KJI>Oot4p~W*;v6#ieTjdBQDx~b_p#eu5f_p0{52{0y*1S|r_hY6# za*pFv#s?GOv3REo`x=_0$A{i6$G1gC2vNXT6c#Z+Uflz}-MvaJ5e9t4C!w@r&haPS zGIEXJj|_vj)7VxAUf#)x9%5pG!Cp2S$+)ah-~=lO1+HNLn=TndBn5mXI#M|TQ_R%y zefO_RxBPAkFft!Git`EK%*vN7PJula;z%o!$O9U@Sv%IEHbc3H&m4BxG270sr7lN( zo%3JYw)BNppH4CVUf*#&c__H_9_eK~RIw|i>o=UPtUB$6-nCKhL-bfT-_N2}gtEnl{n`$iSpq#un-$fz00n@quo;CUH#wT9g_VZLqB?|Td) z-25B}yb-2PWC?K6Q8|sp(!*KLRwLW-#$K=Fmt?uwx(cjYX0v%3*Rd=*=hui9>fG|K^_8qH0Oy7}XApAVJEL_^c|H%9{@?n-D# z9k}g`h`WU>TN8m4#PWA|P$56Ohh8|@1jlO*H!W*0s06FuMsg7{;tfw`A|v?FZA+^Z zQOVGQ&62dw-&noEWy8=N!a((e7=!f?AYm6$Sp*q!cPD0380(fe8wMTx%3@O-O)bCi zXiQFMpkgfh(q~Dsc9m+7`<;eb!UD^9%yGAaDQ2RGbTyVW>Qz-gg?>NPrh}0CC|yBr z3>i-m4_o?KWYwq%@>*>F559>s`yB;PvRMYINBKbT_&$Hp&i}cF2#1;798wjWG~7e~ zP}eNK!3_`6sG*4Hs9mcI;U2@T(+&yj|yMICH)!kTXygI_6 zX33EqqU`z0=-GADZJy5ONd!c>_Y?_ z9rgzL49=4^M;MH1NI9adNvEgBOkv7PmW*7{l7}VRU%zi}6ru@ihbiZLgl&Of+dOhP zjG&U*whCcb=$9l0}4 zxto5+MO5f1!m~YuAO&~s3HQ*_R9Oz7ZNr^k?p2ZW9^Q#vSftEe{{v1Fkar$H0u+u2 zAj0}*LIjjCt0Lh~W6&(c3o@R=wxqgza8Zx3tP%imx7r{M#gQjNfpZ#(__{IK=^n7> zIKN0xJ2B7b&Fjs-m7vXI$*HEdSk*9vQH>6JEi*;vVw^0~e=~5f07d}Y;lX`7&Lkc2 zA%d%Ab@2@6?n=3mkyGrF*`gEfcM8%CNBa3sQ$8vT?Gw*{;zaYe(bn$eJv>RXRYJ24axijR`~ zh?4xMlIgINdQg;lFTtFTVJ_H_^>C7{D3Yzed92FaiAWz;7Ai2mR=gZy-MzeAe>(g7 zHlQekl@27Ap#XLM=Nf~`S@wzP0FcXQK{jXf15>L%QLVj1=6>+74&*R7V)`aRnoza3 zF>-2XaAb_}EMGLY@7c+~=_TxWYpoma7A87MOJ&+1&X|5r%MK@)iXiOJBrI1$vsIqW z-%TeX>Vjv}&=6u&P^QwgenUt)OoYY(6?r)4UW1K!&#N~7+#W~@rloEZt${=2TbEa7 zX+qYbARkZp70u|m-}9#T^tGDu$MR3rWii+MK?dp2bKP+ zA4+?|(0eW;-XFU&ReX6gM-Y-(L&@s6*BLy}3QNo;BzX6_U0SJJAt-7imfm2rNreWy zx$-vuv4p6W830R>DMFa{w$DfEAvPPbVXr5Sj|Smz>Ta`v4kg3u+}qDi83Oonjfmt? zsqNjeYE?Sm8qtgAPQJi4f4g1)yg?4 z2^_=~^!oUdnjM!2$hLEMNC$i~sK3sq6owbi+(r24rI;or>(C<%#aPlnTj0j-vd&NC z9r1DOovsVXRc@Ikuj+45)s^Iv);DbFoiO(d&hl{{xHIkd_cY~$>3@6HeJg?nKGz5> z@h!VZB=(}i512T|gRz^5(<>Fe)-^sjn*n=$fNCcRaKoF6z~1KI%fR(S( z`H3WMJByO=X~hmHx1NiFpnysKJyktGt^;vcK+GVZaOv|o$-ic|vjS}|s_M1~?+nLD z>F0tb)EegrI5v%8<6*Ql1YYEad@J?@JVC%C!=9EW#TAO5#5*1;bw*zRkDg6mvZ?^YOC?AD#1$%0CkU*1ldX0!YT zpY~9%ga}*0;#bvF)eX7YpK7{}#mxTmtqXDg?rxwy?FdwB^MXLpfUOO<SxU} zMMJfQm?z;3nraK#+=xTJ4SMpU2T-$H^xE--w@%FDsMYq34DxUt2NX0uetyUD<(m@2bRBRqp z79qX*`Dp80%(z0U-5Rd+vr}Rf@FtYWbe*3O?>Ywf#xphhSs~u#)_%o1*gyV4z5d8& zUfNP6v!%MIr;kd9Z9J>hZKhB5k?}LNG}1I&oCP1)TkhZJ30myksL$stb~r!0rz7@K zwk{;&o|Pk^=^9XFsgL?7nBu6t^mvU*ySam@Te};7I?vMneJJaNN&oej5H_fDk_&{N z%O`FP_^Mbiz|fIeixr=wv8LmCuwgcg_=Tx4+NFdrV&Id}#hO6PrxfP?47qrY{ZZ*! zibr6q>W?-+tm;Zrg|510f&|^8@6um0nX!`KTts25k3Y`cVMz-R16+O9_*^TH4UARQ zDBR$2UQ01eN`6m|WQx1CN}p;+HcmD(l}nh4U#I9!NiCdYvg63cGO~)*+5J%x8j=#H zhfA>O1Q0~9Kn{##ucZT*K}HqLDcqcuNK4>hHHf^l_0;6dnnVqw7!sdlyk*hVT2y(2zu$KVt0I0gQ-jnD$N5uT@T4P4U*t}c|-$l=E1LI^c3 z&O=q~|3}+fMrGM-~Gzds{BOskBNJ%3lozf|Y2uOE#cXxMpcS`O1@%`Sl z*30^~&o}lMdpu+K!=IDuzGBYvJWc^qx$o|{v7?Nq_1w17*W+*Lo~t(@Q-42SDvxwl z4Ak7vh7sY%55r9h74)&km=-g`4bVy3^pd}D$v7;-%Ho1W6J_>#gHVfZM|L1Q;(Lbo zcDaQ~KQz?qVBh&j3H#=p!I8fygVxjAgD@7jlYDImn^;Ca(+Z{VN>?8)n8&U8Zp%!r zxspJYf-&rW#pEY5M&4cZO4?|t;TbwUX&nT~FUVrZ6r`o%XW@9H4G@XHAhRJOQMv3& z%WJO9r1B#)DawtuIrSR^CRZ7H8q*PbvWZCl{~b2o@YXi5MJ6u!O(fA!UKv|)H$Uu+y^Z3jT|IAuYOFN zDNADYa0S|2nulDB)*`2S?vlLr`?wt}T-u?rpBD?y4257hjp3{6xX8YlNvKRvY^K?* z5l?<-qt?O1Gt+P&xmTR zB7Xw^?D>{LxO>juJt2HE^lM2?*qrIx5OQT8PVLaX_MN87%G%@*n)!a__s1{4Fca){ zL*N6L1U`U2Z`f>LZYcl7ZSCT2#&=kVY!_Gx-WKnVGnwWxqwIKSDAd%(vZ&g*i8)Fu z`_$BaQ!#)i+e<%tQhD6jM`U2u3Ja|na~_Ie2)P)JM8xnGrLb$gO@F;tG%661?%Ap@gwFSy>DPyMXV|RnG(DN9KSNNC?yt+xRpmw&~CuNep zDKJIozOSd;^!ivr{HDNOqM8)XEGY^j-fI%B5k-iw<)x^(|7CvSudWNq%R=a~HCGUS6#;o<8F3|~TaeR1xZM-*_~I@JUjd5l zsRDc4vV-Y*fZz#$oXcnMiY}w49WF46P3r4C(R1CTeEK&}0d8G3ic&hjYK0wp$+y0u zG0S$7Z{NIse^6AsUxw6T(tq(Ccm@~zW4zBFKOhMUgCgT&5c^8Y5MN*23MF#d5xkVR7Bil7dF6h0!SATY&*KcNS_>oP6 zrtobX2AdQV4Y?rMy*Iz^mqeQn`xbND*SdqPmPtrms%!7luB$GJcQpnq|9RfhOTCo8 z0cwd4oVS1e5?H}~3IAbB|Cb5Gna~YD)75avmf4B_g{CX>i@8wvd~781%MEh^`EJuN zi`c+5i?izUt!9_TKEWAkPQ$Ybd2W=cEFL8ki!VZaX)}_QNCl@J{7p-f4R_}fs!J&fqUaQMSlKm4Sa+_>7&6NK}61#Xr%xEgTSvM?^tTYt$ zSO3kU;flpxqu5RexmmhCEa+H`S1FP*LV#L}l+d3^+=;bbn}hg9_8S78t*2vs`eCCe z)+W@EJ=+q=m^G$u8~(-}y`iN6k-)L84(=Fa&ofI(HgP(6B)rGw-sCOhP;6jnN`oya zJ6LzfzhIVCR6m^5B_^rKTnhr-oBUWOB6OwL&mn!6+z;)7<&Zo-*`cm}KP4W6RXwZ) z^y6l=E?+c`iVcJ2o~mmw1C~^VN~oeG&NQe!0B!pclSNB`HW<%s+HCx2gPX*rD8;6FX`D%&X7BS$h#6}1z&`Itd$zY!ufp{(B zn7!LNODu_^Fot5~gVPV;Lq$m`{bWPY_gi|EU05vVP=7H%RosZX+2yc3TP9-2H0BnQ z!L^%aTQk7M(-abnTT<;a4|{+YxPx64vxjzjs!8N$#MFeL#ykjAq#d>Zv>4uow$>P zkj8$n6+AtX9M;CJ7;_Bff=xny_k`)43!3vm|Ewf&qiOY}7GD`QD8rMtO3zrFe&Rxb zyNf{<4|n24Y^IOoy4pIP-LRR6){Qt|YerkWs%iA5gx>1x4)2vo>N$Jwq9MT zM2By@i#&yorbYxa`axGf72kq;u7fFJzLJbgs~|f6;eB9)u05e?IFOZa(j$oua_3?B>tu(&@f@7VKhsqMjDrAVz4fM&A zXiGG$pQ-@Bj~;&0LbSQwpH>pDJ2I)E6mK#+I;w>bAy#=3W;$`zlug(2(C5gO)&Xq$s@jK0vj=i~6+dbL?KG zotpESwhmGGTy(Oj1 zDMEXhVe3~yDHzKES7JRfX^2;xwDhAyS#W7x)K^Z9!ye!PUD6ejjj@^(tll&B> z#S5j7g_;ZA!|h4jYT=mYe7NWPCUt^25bUicU_*k1&o8TB2LJu>GX-f$rWnMd*Z}u& zbAah${ENtbMOV?&4pZKQk9oeSc?^XhX2H^v0V1-?C@$3NlgeqWmwg=kyir>J{!}+C zJ)`VdPuwEOg;p`WUAuVH&Q0;K(oI`*oyfVA7Rj3H9*yvCJg{GgnVo0u)o|7}~A zeE<4baB_eh7Gzsi%_JvBkh+f&IdK<=$FUm(@PB6TdX)yF--z|brxd=t^?S#gBKTy? zKQ{^UD5P#`tz=0%m(K`QPr`;v5SFJa&@!YG@^uG(SUGb**GL)S;>25l-KAvq%z@Tn z1sdVxro8363m}-C-+JJ^lxJ6&*G+=}-@L~Ngxn!av<75ZeoF*pWN84~(-tKSL(CQ5 z?_c&HsI2|l-YbnMZfVzdXzoapvubQ~w z!u+KBB7-VC0u(#{IHANW%|-cS zbd$cO&(NXTzcG2EqyFn)z_|IR_qRUTlRG(k>_oqGk*p0svEz8{lIlQwfsH=nq>E}i z1a-aYYTx(>kd(r`3SUy_-Pv7_vm7N$R(Kx()?8wa|;>K zJ`sUxr++-m_~QOjeoV|B=>yaEwI7Ep?_L@#?k0;$)->d8?_aD6SxDz~kz?y{?g5)> z&KQasier+lIR&u{?-_ukngv3P%un?lT+|j(qUWMfIc4T?|7r`R8JQU(Uc3xXLpL=p zem2GSKEX;jaI;6>K(T>0ux~ANsfpRBHJs2BzEJM8+!+cW*T<=X$n^ost(WE4@r;4N z@g8^Wv}(hrjpT`zpmZn^d43>lCv?9JLEYi1vOZyi>)^%l`b?X%AGO)tfz2_^L+_SM zOl8T&lh9&hFNsP`GiSRL+i)XC{Lo^?cejrKpy)O*I&eURL6+t}w(P<68zSXE+F;+w z5jtuEir(xG4!c}wjkzmGX~|v3v8a^x^t}oQ4Zjm+=`!ZG_+Soy;G1M9TUO`z+vpHa$vTH&kA1ua|H)@K@2B3vB!Ks8LGiQl)v59P5n&FNlsd&Y|cS&^vbhr^91zWj$%Kf8p2%%j?66i&6 z1O7z-=7t4oxB(AVz<=Zx*a$kxD9vjm!*iUSvm8BXLHQzCZOU(d=Zml`53RqIXDcyk zC|<*laAS&-B`c6q9h&X_r5Vf`9i=L{TQg0Y?V`XK#`Q~q0pE%DoFZ8>l^$gTF64e_ zUA2(wn;z8%m*;y^A5{@wY+@o!?CAbZ|976-bq`&)(XY*}Le2RE+^R>#h z#fhuqqlR071q-U@ejH*u7n!&X-f}vUrp@u**Id3?afDaaOm&St32(RwljeA$ry% z9Lo1n>>+zh_O;x$xiw!!-#mKI_P>Qr1p%11LAwR8k`3N{dT0CL6Vrc%$bk!;d^GwH ztWac0EAw}k7{iUt$R1LzGJ67q(Z*gJaP4Olk1`hPKis;ivI^fc>_|hK?Dpa`=(x|F zDw@!j!39?APXH!5^#G(m%s#mKsyNC1{*E6VP?~57cV!2ijC8n*s4_bz3WJx{I!QQ@ zmfXE$JjnqDX$c~6&FaGXE)sEAIS2JO1D_)MB5Qxl8f0kRaui^)KlesLI&pkbPBQX7 zkx5uX>}Y3h@&tn%R-qaWCh}YzT3Ff{vZHt{_~rX{B3##?()q^j%+o0NvupnepA^5( zg1aR98YS7@a?e(h@I@TO#4~6bm^NK2-WA29eC7) zF*mV6{5$&ak9Fn%(>L%{__q~FN%E^I?BZDZzHK)es87GAz^TDrfz*5NOp~8CpDElm zHxO?di!y!r?f|`~+X1?s@1W9V^xf;H$q5d)3%8@5{8C z`sD|Q_}teL#IHYW{h%VzERpUl#fHlvWT$|&C8T{W$q~F|w9)7I+DDAujbb*d)R1mw zh8;3o6ey_mC9)#aP_3e3^i#p~Wv0+_>=$@b+x&&}hG^-=A5Eu32MksK{i);VYxiG~ zi}Xh)g-z1W;xnEPKl9u*ka~|0sm5*1Xb{Qk`(t%$9BQR>En@jOtiY}v0KvbE8BSkG!apAePq39z^s>EJ zs5CcytIN6l6zf61+bFxch&gGuW*+|?QIo7T#;dmtMHrLGSk?t=fu%hz73$v!-m43v z>mciXES-$Dkfkqs4z(E8y&+_?@|6syGsQEZLl`|GiLWSD-DhfYt(9*KYnuuIY*iUmn&d-EB!SZ9_*gOWB{LU6c0bkC}#9zHKglEwtP5cN`Amigf<3 zMZ+9%i+y;;!jSl7#&v9|nW=_GTHQ*FAKW&kHaU(@mtx zskV?_F3R$g;lCsaMI@9b6=ZlPe-~{iPpkiu`Kg@$S)e4Jk@Hj&!+bvUh7a{yDOy+{ zRbcxZ)dwa^tJ69P*JC%bf-*pZy~v-P3x`(qnj~_Xv*hQ+-FOA6xvK>{C=gA>_X(n{ z>ed5x7;fNR*n8U8ueIB=d8fPxCUBG@LP37K)g9YWE{Aa@3agI>dCTMNC7_vT8Mu9z z8%z_-SK&XBQPW~4E~ZsYY*Bwf>U(Jwb}LEHSH!~z-`D3(wDo6`mK9Eaf2X#_|0`RJ zwsYv>?7q%DBKIke4MIPcJSZ9U)p-+;j7pc4sf~*{2ni3QtIHmYUPsMZ7lbBiCiYBK z+VZjk>FT(2FJgH>+k+M@iU9!}GM4Q|9nA_kPGf|*vJ)S!+=pER$;qPg`;V7!yVyym z-sDj@g6Zo_Qf0vQFul#f={K!U7Z+&yvKdoY8}bI@@YnQfy%Q~%mk)?9&W24Y(C;v+ zXXuUy%ZH z^o07DB=eXlXVp1Zp6ofu+R8F8N`z_B{_ce+CX%Cw*@T9{yql;UNE#nL{GiCQi~7cT zzQFk@LZ9q8OtPJ`pdV_N*F2sbgusVZ)nqKiol^#tt6^zh0?a8vbh%x%5Q$__Z*D9` zBwi+#WU4e=ejaC$RsLudXn3;chRE>6K0>2WhTg&}L!nCV^Ml1Xh#i&}u*oN2o&C+R zR&0U3;_58172xB;iLyrb)TY^3u0f?DrV`ytL-C;=8m0RrKq&oy%Gc*NurA*L%X5Qx zeDzxN7vV8`5VOF^56o5u&Q2-6OG?7V?HZzONSP3;>dv;e9OhTt_fGaMxQdI5GeN#N z?;EbbG@}9K+8YDh zaO}Uh;nv2(FmYUh@=nL4?rt<;L%jJlN+KgOHojqGo+XS0AlaOP;6l1>zp zz?{dclf8eAE9ahpb@D5kfb_Ta>RoI4o>Bi`E9BD}H=V?0E|{zxank%CY*I=PI6S-w z-}jxE-?b+@PXm0y!{6X=4~hp;9Y+eC&lGa?5e0P-1@#dY_rh^R)LK`t_|%9Q6*8v=LvocI7D1{J<1M=6fHAJBL2Q(a?NrQR$>u}%1zYzsQHaos zpij#opSDBT&&6v_#A`0ZYo@=jUk9`LCs2t7_TJu62fpAqIdru=k z&@?y@`}k0&mUf+8-+9xd?zw4WTr%s_d4XwGpS*K%j;vh1=fTagSz3Tld7Xa9J8_#6 zH^NQftTj^dj}7o884{j+FRxct>N#=E%h{sGvgZsmnu|Glei(_Tz?7pJ$uUsY!h8-% z`k;W#Qb2wZdW3yN->fyM!~Zjac4<>I#B*(um=mEjf`0@aO@ROC)0(~ywidtaioiYQ zik*>2>~NP6!pFFQtP`~L0NVvMd|VD)+<5DaU^b&V>w;>9oux~YyeL5@qVKyrP<3!< ziMKm*Z?ztJw;y@3W_sFnKq_L;1nrNz1UHy=@4u))zjGs5up>dk$a#8Q(h&ML!8Np= zU!MWK0f)o)q~@=Q@-(JP7xU_n=mkP`42vyh_9RWNs-uJYHk37EGq&YbHPF81@~EO+ z{Lr*(Jb6z?Q6H63p+`JkA>_pnbNn-?vLjK>T=NIrYVHR->ba++_2Yd*5osmu-3r-N zL(Guz8S)X1C*)#!iXP-7(upRGuZ|$dM;!BWPH&(;!K|sEh)o^gk>*7dT{Y0aQi#@M zdOJt1^d#` z4|4q;R^P@NXn&_`KA*Gv`eofKJ|!nAzKB7U`$rowiJ*`!$YYxal=+Xn39y{HW>9{H z-{8R;+3pWISZX4c9pM#|D@bL@dmRy|lyL>mf9GeUi)n6sxc}*SsAaD@mN+01Qnc&p zO8ukZusx^4PZMVJvK5x9LolRnH5gK$yH}0`S6E>;d1Y*el>EyxXzsmaFFu3z_s27< z<6Nu7G1L(najLG-A@{WQD9JT+Rs+Dm7>x5iR5ZbK8_pyCmJa(Nq^@R4Lf zv)Oi1XOTqE#3REtvZoGWMuj($@+pQ4UWT9*5LrtZ^+9_m>|w+{W1o}nqZ?h~Q{Y;* zqKc4@wp_JU7w=1DhC}y$**|>$TsXAX6MDq$Jp81PhpQnk&@; z>P+l}{lY5$b}3piTZEMSSIRpR`PgJM);@GxW7bVT>YKBrAbOhoCjZ`PINw;tR7JX% z$!bsjK<6(0vzVL_aZj^2`%E81LACcDcpfJ+0hs^==tN!vdWOrmKP)@U(6^jxtfq}2 ztd-kH^{!$j2abQSap5goR2k=u#h9+`f=zHW;2(A@vACSp1 zkrf4#BS4sZ*EZX-7vP`KfAQe%w&4){O@6& zUY~+-%KBIZl2xuyn^gHRHXLyLT5%A z{<+Pd6XXuDAOCoGtXRcuI|wXw3E(gE=YBCbKe=7F&|mhsK05xL4tZgs36tCy4o(Ok zB3=xNa;c9z2pH!FQ~h2R>U{lMjfKN`23K6Np~a}f#A&$#m1Q<_y-h`AvJ$F!Wc4+# z$CfMuc9s<@MKh+FPo03fvydB}7CXb;zAp67yvm4#l62FZS6?Evl52_I;3A6XrE(GF zBTM_KH>q~*(HrRAaP*hSMq7b`00s8 z-B8HgSz~>dtxU(>3DcBBxiW*!_R+_2s^v$E*fF+}1r+H53w{xUxiGl?X0-wANrBFm-+8%=R(!c5iX<~&@RoU}WN-UXqaD)FbsN-);00S)a8_^M zh}qxTZD161g+U-4R6$}PlbOJnStsa={?XeoKkW?~A?8l)pvF6F#wj_X%}RmUWpc7#p=?6nhPPYtv_U9_q$+P6EL zt0*?-d^-H~w(?_1Pn0tq`$(yAD0bh3dKv<-iwgdlhtC7fb>j>K;8d%gLnz<1_8=~0m+#z-XO26 zpqG1AaKexM{1}ZZh~R5Tp^9Q3%|(T|GG9wg^vib3M0H`>a)Rf><-{2d*`e_G(Sd#A z$Y`Lcy-&&RFKB$}rtV@!7@tb-ubK5e68wx?baJdi$M=y-mwf8(P8M|3$CK7`L5 z$RZN`al!w3S$>W_lx4(U*(l%bP2xlP+(UXW63QYo6RzyOmM1a`lq!3R=;&D>uSUX$ zu;YR;IOywnQVbU8a2e5}JjZ%ZGpGAU0f%1#L#RL;OMh_6Rt_+Y_WURTz}$`AZglg8 zXy-jAy_6x1zdI~_aWRIN$_&@v;U$g#6JFwYa=lRR(Ab=qq+$7&x!XGz5Hs*++j)zN zjN9FTr0;~*!kIAjBEQYufb{*hx!Xv8u`kl}*c4>$z6Y7RV`f3-?!oVt!uRbWr@=2> zXaO~Yk7{jV%NrXuO9_s6mE|uz$Ks#FG=Jd({rSXj^w-M^GvC%>W%WHeDxgesQh=N_ ze~45`8}S!;^hK1>7e&wlpPAfOiR~l#pJH5`#AaJQghQjiYlhk+jr zp(JGZT31_|n*y7xW)%DVG~u1$-o?H;)=BdugTP|l+>VAE3Xd=c@~S7YhLwJSD8p9Q zf_9-<#`adW!`n@k8nsE+s)VtP`c=)0S7*JJe9C(u!HqPw(QHY!j}AFgQQ1~^Sc`VR zYgh^+Jx%i-^R09wUc33(1Ck(Y;~Ek_->SZ*E-KV`O4a92l*aukt<%QOI@Cie&D_?x;yzyxogg|6WW_$ohQK~JjLLZZ z&oa8HdT?t1CG-R@KLv9I3mJXn1|!=g!yc~x5{R3GP#vO}?ou=xvYF(IskwN%zNH~$Y#srUiHOhODLaTC5&Xkl%EFP-5Y)3Mo zE=1F7s#Cq{4q11bh-EtK1ny$Qdz~P!Zvg(?F}wI!^@Q)adOKSWwa89LCz7&6lS?T= zA31wa*NgY1l8mqw%T=NrRr(e~r-;ZFP2Sj(bPEKN%jjcjG40ec6)kU0E#C!AC1$q(4c(aZKAbPZ_UMcc<=X6xAW)Oafm!rbj}V}vHMW^7$y7qnTI&dM$wxABony&6mIq+tm_Y4&W? zN$GWK6=~H2qH#*waE5cSESl*nQ7pT6`t4bYLv116zAY0yBsS4NAVj!_;_-6C#(Yvk2 zJ75GPe#it@HgGy!fJOj}J%9VafH-tWyC(eDiiF%c2w@yT@lx?9L}9J$mHABsYIc(u zD*L^|2Xm*_|4uo1{d3S}@x8>;Wc<$UU|>d+X%D2FB-Fh!08&ma|4KR0o0#7Vu(h-M zkCYP^Ng(A!3`m;&4H z?3|A(XP|m1$bNh&TOA>Kv@th%jFSSBWb2*6+V6?j`kLq?onwtLJz^6Ubm?4DYa{w$ zr4{nub;RDIH*9iiYg8G|(A-$G{Z7fW+{fj3PO-@nvD^yNZXbUAXy#LaUcwH-Qi4r3 zV+D6R_^%*Hkl)*MrF7<5NWb|a*=M)F}b-3+$`ZwciQPu7$g)< zo>|>~A~)iAX@HSau*(UgaB=MT>!DOp6+X>=iCGCEDDs_MOxJMMzR%Ys9^dOxXsoT) z3$=L@p`v+^h9K6}Xi%khDMnW?$oUwMUeMFzddjG52f55Ff0(j!F?E13L5R{Tc8&#Svu%|=8?`pH=ee%pXcP}$OfIp<5C z_N6%D$?hA(rzquf7;*3LE-C4RE!IOO5w@ce>iScN1amnMWS&uI5fruHWL$>@ee*=^ zAdm=QFP4o;J1M4`FgoP<3U@$sfZ{Mh=xZ2II#K!_rx}LSYyDR1PW*@2?lF1Qr=a!V zam1fD_eY<@q$w)uqqQ@*Z4|F5LMhO(5Z=8cg8Gg|w2b+=ir|&4Javb{Y3|Cgsn{Lo z<@V3HUo8nXL!XJ={PUtR15(;}RIVLRuwv$nYnyl0td*DhP+LY&nKseVYRAMV!xVx)qdNqU5W6F;h}j{y`xR}_HVrQgeGY<3YRjV@;f~;d)YG{@E!g8jQ0dRSpC54c zn|NR)7aHR`3AqecM86TSS@-pQ_i%4YwD9csJT2O57*{RseE;ob8!JMEJ#EqU z*w?St@!{IKx4thYjU|$HfArY%JpoDGyguPT4CPh z0&X~4S{)U+9nd+|X+2@EI9n{<1*cYdW`9{6y-Pq?@~`OQ@|7$|w6!tn;p{f=)&(dH z_|&_y`LKEGf(D+P>gTTWFRb-|{eUE$Ib1IppH6*NFh(RVS%R~~u!VOy03f-9DN?T6 zWFx-$?7`GQh14>lsV5;@Q>%oO9;D5D^Jf>+G3- z@6$}Zf8KJ}p~MdBfNcRZW&iWJ1+K1QVS|A{#%aeO&`N0QmDR~l?Cd$1=M4XVZywlO zL6K17zf$`n8J=vpcTulP`_~)iT>M$~iF_ipP2&EK7HLL4UoD8W?87?-l!>nxQ*|uj zX?}$%r6P@JZFfQ~Bjre*EYYpR@JPI7<;D=$=Ac$qw_s;L+S9MQze}P8&|RuI_ui#HqrIhT;(kJy|7AI4;8XN)T?aJR}1N85lDn|43N{9$Gx z^@yB?8={_f&)~VHrT2bP^!fBV4;%PYRcJI@;?8PubkiD%fMj41)X(B~*#h{pKI9H= zx}{~6E8`ax8~1&oyELSzzNhDo(pn#g%0jCBio)(f^!3}@>s)PVzJX+{Hkm#bWdlOR z%>#AKQI(Q|H$aNb+A?P%n$wc`;GEtByiO*5# zTg7Ii0BOn8s}hlUgW)O07dMMMCLi__5y?)^H|jghx*E`IzbMEz5N_>TH%9+JbuIw` z@<6JC&vu=F>Yyw4i!3hYYZ3|IaPPZltzoKN)pmWg<47;E_~LjdQbjW{ompW%37;-@ zR!~DI=bfkkn^A`|`3t3E!fEjY4w>PJj3*wHUTT}6wMPD!9t$CXIb{&^DDKvI>2I5x zCLTeHZ{ur6sGJV z8vMvtFNa_9ridqdXRhBT0_#!-yz*P$Hk#dhT%_Fn8ACX&;#8p|C9w$YFs2_u75K`u z?&1@Bg7uj38+kjHpM_!x&B~R&v>F9o?#yQ8KFAsI%LF+xO|ROesL1e_Pm!6-on4$o zW1wp*y#1P?5yzBpS^dVgvA>A~&~X|*uRXr9F|koqi=a5B!*s%S!oJqadr2f3;Y29K zADKwe9TxeF$~{WHyysNq3UVi29KF6vSdC0@1Nn-ZH=A(nS>VuPm+zAX)}<9-!Da&$ z{$uBl6O6+l7g%FL`3*ItSt{~>(;i~aM)f%+VeTD+f}Y6{8_B1927=GEshy(7j{Pja-5XUIxi zN(31Rqu4?hmv$SMTo@vd_^B-KMPmA&*xex671iW0o~D?{UL7o(2K2k|>mhMBJQ`we z1kARV1BC;%O~ITkVC07!uX};B1)cY`yBI7JoArE~ZSa=sgP;LEC$ZUBu)#_R?S1Wh zm$1-zY0YQq*1_uu7FDO60h=q{0+R`ACTNNcm)fFDh;7$oq9%9N>vmRl(MG9P+9}Ao ze%Ye89;_vE+(X{+RFhwa-xr%LWYelqH7M1%St_au{uF02pBGfE$m0D8Z&Pz{W-!-H zA{O+jiT;4Wh<<=rJd`FV(SYRI8N++7+v-G3gm4;p$0pr$8S zq9r?+TKsRl9q zHewe16)U>bEg-4ZEIHXMdHOc(M`O5Qr(|Wbq(k#x+LX@Y>IdZ-yZ4JbgF4oQ&n(<7 zpZv4DF_SuU$N!g)lmpzT>EB(9zn?AvsfF7 zfTjNG!qw-ZPXssN#6HA9z5~i`=qCw|EyzY&HV(3w**$1%?+mM`L7VK zi@!p=;vWZK$HTx;0Rh;_vu_pf@a{^&A6~0JHx27oCo{WAHq8oNbg)r*C&%Emdvojq z^n>yb)H#-DP)wtCWTih|C^_EZb?c+S?vZx8;pjT^@*KkDeGO8^?1UB261h$&{Zbq` z11TS>*&YB{>8Al8lZODIM3=v33xVT7&FL&O9+HBCu41Br;H;Mjwh3L8)=}Qq%>X|u zjCC0s4MxQ0iKHVv&Z64130?AYTam~-S$J3tKwAfNL3 zEuT94OFji++PXcv0d{~qPSlOUJ~%;+;w2U53le;z73}g0`91ciEy`(% zRE}#!z1^z64RMH-0&M^$i~rmJ1R^ZFBM!VGo<30jd+K47+i2BZ@5X!D%Ja{K>)9$P z3ksez2lpiB0-5RSjYeAkBv4+^&NRQ2oAtbcT{+NYQOM< z6V1?Qjbu{9JNz3qvHF@lybBUeMS5$D9>bd1x=G$nTwn{Mk9iwh(GECX2k&p z**^MV1nFGz59Hrl^Dmilkz#2e@(?r$niGvy4UlO=> zK=i#Pg|oij035QJ?JSvpJ7iU)Y#4vS)+Pz0+lc4-2+Y|$p#HO<(~)BQP{4A91V8@( zSJD4!#Lddz5+Vc;g5-W50c9o3U&_j2lVNstYmdZ}6(fNM)Wjs6{MsJDnO~+MgPTmY z+}W}r6N1wf^BuIQkRR>D3*kz|3Jr_p)22Ume#Qh45Nho^qaYAXyEDfngu^F&o`Xh}W2ISh0C~9~atG=ix8(`osW0S-? zYw5PI!({2ChEIq+Ax+~0)PBa{UT;Oe>sxynGNB2nHNu~B^FdsDBX~r)Q|dfWnb^~B z8?tA#8_QOvvdrK8F!|QST(<=MGDK}L-$gUP;K54o=Fw#7)R=~?7g(w~Kz09oF9PS8 z^$q=(e8g=$WM4^pLMo>vj!>Bv(I6#sY>LVroqT8BnwYFa|J-QL>9sq99J?aGyFSVU2)KG_jn(cJV+OV`Rrlu>Z^+jQw!Ur z;v0k0Uo$cM5|78kMTv7x>pSCRz>~vTu52AqQN@=e4#%%XnOJJSk-3A>_Z&cz&e4IS z!!^+4Bn_j(RZY2?rJ#(N_u*qK>>Hs85(`)-f71yny_{&fNo;|CF1|glpV=TQ zAt_je0~F~u5G4Lt!TlVj{SBPDaVq8Oq>(h{q^4L{BT78cH7r09p`1fRx=ph=QKkUg6{ zpl_t?y&1|yW~qpYQ2v*oWK|o*w-e0i379$RbE4P;$KDZ6-JuFCd;=x`lHa6O;Rx@F zaM8bFGJ5w!ODs^mD#4J;j5%~U+|A1TYWXqdyI543<{3~&DzKkFxNNeJVHr?U0}j;G z$e!Zz+^9wtJ1fqsf)ML6hqF_*GF~Z*L3cQe^;!C$b~-EHfZvNX^6aKSIJPolX4Lt% z8a)cpAq_)$)*h6Bv%f|>i9Qq=ajBt>SO!Okl7{l>m&|12=U$D!(kxQa5eRM%vYMZ& z7I~DNyWmBkbr0sx>QY65? z%BuQ^+5A!GS!Eb7rL3)ie1b?q>KnNmFR=M4;X(kGUMm;n=da3@i)M{8a;KFjnh{dq zC)YQ*CK_X68zH`Q?JmdyagDPjQM^FQlxP6ojT%Xu{)R5nU|aVoAw_eDfrep?735V4 zsz7ZfD{-Uc&dbLV-gZ(~z9nD@=Ym_pV3|0NIvoJ0`hV$kV4+dIg`aA^C!cK`j4&cf zeECLVC^&oe2w=5DC)$nKk{Wkf&tOJE9vqYBLe5yXIGN{V=%kPVosKt-PmcNWP6-#u z9jbHF4;nws+6bmzYC2gpW}K$=ERYaXLO?^O(>YIke*;x=H)g-Brj(25=znbI3M~dZ z)CoDw@Pc!}MuQ;#1a6$sX&t>fPtLlpWc3KT;SMc^U4rrIYaLI}8rIG|nyICoicW8` ziKOG1)rnDVyU@xFM6b zMh_&TAaQ>Qk9oYZ|7BzGUMwMX#w%asqkvg?C1LitT6^^^{X=3${T^$@5HnX6Y5U1H zojgd~A-YH)sGFl&HOuzlMgBCs4jPrrrtFS!;AGCPIo`JfkT(q9D6Pc3&ag2Iey5%@ z95hw3v?MwzH|zDR(ynhH_l(khu!dWA`f79Y(?(PN68dyRKQQO1)7U8Ny~0O>6R#3E4JKi8EN%wzOFWuIoNb9u$i~v}MvU05u>_`RGpf9kMmuV+GH3>37a$IGF6*5=Nui8u zbQMW51-~y-AeUqBG3I#jdY-pas*UW*VGcTMuqb*LYJb{5Z-MRwG^4~v?#?{5#q-gt zvvQs1CO|@=X75-gkWg6qK(v=oBWUZ0j9fTMF~K44{?D>rF!fRXJ>K|pS((9HpAhVBY-qT^?sTf<1Ktp%6A%{y7qcMGS|_Z z^CUiKA{^z1B;=ua?Trfz8RU+tZBGgeZT~(74F9QFSf=V4R51$C6x|s+{wo`CERWo4 zwPRilMeWUoxh@9A>cS|Tb-RPvkhzn#c^cWC^qUu1D9>m{kV!->evZo-v)5Y?ogO{n z2u!8%eFZTZz^_^sFuMUTX$OhJeFl%;0P!AD(sSe%bSl@}DGd-wJ!GLZN^#ho7%@3@ zJiF-9?IELi`w4?_^Y|Qxc6tPPuhb@#4Q|R~qcc)E1RZqTnMc}^q;-osm=ojcbUUii z>8Jg>;=&U1wu{;cf^Jt<%Go3U`%d~;wzk1^jJYlLW*mM1<`@?dJ4d)S)sStlW^m6K z9u0|<>EQ3>GGqE)8uN`p97pVkOh zw{|3DG9%hOH^=X?sV_ver_-?KRKopO=ltO6(q03>NOK^06pT5J89DCE?|;3mIH#eh zzs6>(ghYSeT-P5vaS0Vb2WW4bMNe=2>NHibnYLxJ&4huZ#$8etN{C4oUI+$g(4SLF$(JcNf zO+OkNWDw?VugL8DvFW`~F{LPIoMFPB46xX~qo^S{W*8UPY8mrN5J4;WGk^KUT=#|I za>G0+Mz4JCraX}Vv12Dlm1K^IodV~hGcB>fQ}JN7j~jh&gws}XZG!0wCzG>X7(70~ zqqQD=uJhJG970JY`vy3EHz}m@RL!zLPT%xgzR_?0WU+}->tmEdTwvWhY5aisi^Zn2 z#a<7v*jVCl+Il}PXpgv9*10_Dx4i;tlHqc5cd|#0Y(I!CRuQ3r1uLV+HW(k&K7SSpYjK;oSnn;LXV{QQ07&` zBRm&Ht}sVT#qmqFFWb!bU>k54*mN@D<+=+h<(Yp5uiw|}(l_ov_OeDg>Q&(>ck0>Z}ggiV+B>TqBY%<-)k zR@9WI%-+=EWoh(_Za(u3)Z};~L*Wz;4)dERX=1HMIZ{Iw4HYR?=hRN4=2c)c<2ErRzQ7C?W|IU3Q%B*yZ;}r7B zawQ!IZv=Y#9LRlD5!6S_$c4Lv0KeA_4@X4hs z9}5c_($=erC&=Gcz&juwtLg5+VG5U3uCUc;d276~42W+0Simk|tw8+q;^W>Ix4^fO|8I9tS8hEp|1(>lYe2PLjJP3}wvOOC4ZqnGe z9ojNl^a){{sMeE&>8IscL2DwEFwbBwB#LIzLcDdkheY5;N>O@;ej6QxFM^EYlU3&_ zTgwIUohy~z`o*2(^tXBZChN_2!fZ;#6<>OUEZ((L6&W^zvgsP>JF|ie31?j5zPuk))nMy{}`L~qv!)Bzq7xc$BkhqhR=N z?sE~YaAj{!@h7f|Syx*D&bm_{kY68R-ok?7r*{u&~ zxn9x*Pvj<1XdQ&V{#xlpy z?JiWjIPI7B4w(6UO^fl2@PgsQ0eA`3w1}g+0Utg^C9Tzdk&%9<@-~tGzV)+=L)Xa$ zXv2B;w@2t+`mdW5z4Z7VYqV{;dam9bJ?J(3H}UcdgXFB8r3T&fPCTmLG1ED3*)9MA zn&x?~|NVUm&Pn@z7jWQ#lQ#czh-d%9`xHQr$^rIh;K*<}c6Fj+^g7P$!O@&|Mo^q_ zpKO(UPIrOPa}!-88~jVIDY!-VIuyTanHg~KK{59enF=A+pzlQ0Bfv@-q+B4{P` z*+?;P%Lp8^=0}j%vRSf>W~q9kC5~-t)GW=vxLSt5ZX3S+DtVSd`z!!Bw(l zuQCtDghfn5+2dzE^L3_v+*YNnyh458m=%aFnt}OB7fY}hFvDJ5Ag}6sJrf^k;>O*`IHvY~u9yNy|^`n#Y ze9lV+m8kLP%ri`pggq5QYa8;c?2Jsp;FI_#-XEYRmHkmkv&Q>GFO@ zzg7hbq|gc$ig41XQ()?cX!ggp*zt_m&Fg*bpjy&fIO*K|MdSUDG`H)8+0q{Z(EmDH zI<}+#{~}uo8_MK7-x^!sCBb2Xstd)ni2z{>779}s6e78vOZzaaaF$=UNv*RWp5{1) zTa_7tezIKGH1ZZ1HN%E2pH|Xme34LSm1Shx%|ZN1g$&+;D#+>-+$ z@gm-UsNU#y?MI+=8+R>4plneYq%%?_9#vpe&2*hQoL7ouM~X=_o2 zKLOj9=KgrtS^l8k@rx8#cp1P2#r$_JDD-v4e@TG}o!9M3BAD+FAhhbVtei>|(y-zJ zq`>Ml%z#p01E?2>sYyMG_AQQ$Og=qAru^ZL?3P8{iQTbzi`VBO%a~>Xn;ydseX?ex zIOc!5pqNN6`Cl_8_x6*1YiX6hR0tE8fA8m#>#DCq$dLKoP@VQX-u5kMv)cW)k3Pg; z1yo$?OiSd|7L#rj?9&$j2M58EhScOsU;3POBYmp+IGV)Z7nfuKllgzS zHRn~Tn?cTNepGC^La1R1gSQ6@9PnepU0za`rq#i=z54MZ&DMmO#wPtstCxE&Mz`JPX~{ImJFA*L;0QZ-L)qpvlbUXW zA}Tm_nNrOON|xG!YF*V*&MRc3a^LpWh>^5I7VE*r_xPzZjA+qXL5dPfB-NB@+H!KY z`87W2<(+#Jtq5(PsMuKhQu3Wplg;Ir7mfl~M-D_r&v<&zy201Y$6p2+&1+|x5CPBv zjs5=TNcBg3wf}D6BRCDvv8w~<*v0){I(EnhHBwe{>EF}0q(@uJ?gs>yZ!IDi5^d`} z6_asGeF0;k5h&td)9c|`5Y=J~^r*@9)t7m-KGPz$E2Z~UGy~oFouQ4qlb0kmk~P9- z1g5y5WIzia%f44hl4cRd{VbV#zI;w565MjOWn~lJ_D&WWG)7C{(J>EB@l&j%2LpA2 zszO)izC}&(iNa;L(80XEU)0J!j%0pLOeAO-l_3%HdBkuF7W0+BYq`DRYwd)V6o-30AiVr%Q# zuAPY)7XBjT2n``X9a<8W9MsZYxE!KZoaRlXbc2TGl$oG)=7jCM=N_c_seT1%V$+@H z6)VAJktp5k6}#=w=*N`IkK%Z(sjU9*gtM*Q0_xDoc)dB^gNtk!ol)ak_G`XS(ao8*DV31mKi19{B(102_2y6&c&TPh#ACv20Js-CZLJEkwH1nh{oeN z#%npoC-HUxRt#4HIsN?OsT|`!@OGE+cGt|t->m7o9U*G7y?>}_M3ZhfcXe&}bt^lh zr4%CoK>o9K>!0!hz(hH43Jfq&Zl@w68OpwjThQ3K^%vLL`CnYC>|42})i<&S&(8;a zQdP%8@+3Je#klSsH)?~%fo$plRmZ^ufCj2s4Z!%4hr=HKbVyfA=P;nZ-v6=YFly;c z+pAvLUgfSidA;m)aSiV~ec~pCYDLBcL12wvgoBaAB>hBO@`*Gmrnmco(oxCHR}Sdt zLmxonX1!2;NLC{3(|Cw(tN<2=%kL)$oYnugqmO}m3R^0`U;u=7n`r$5X1lJkY5kZT zbf}-2$hP;8b2%4+D}4K8c+)48id~d4Hr4J0CLNPr&ezQF93M+(xtxtk)3 z*s#w>U=a~h$r4B3lI zeQox0&Rzs6NFV^)7qdKtB@R|Kws=~s%8z^;$51*%M{izjq21NKXutOoWCr@IF$NzJ z7e7*6YDB4`QinE{MHl%{>uOv9zbne?!FI% zBLIs(idl31A%*f%_-pErk3x5?2uSTWfhpB%=Rf>4byzF@uW63se@}CaRIYfqd}W)9 zaw$QnYM-KO5jaTSZ0rf51L>z}QZz?eIBmJU;8@nD*fm7)mAg-Hx=PHMlattKPugxz zqW5FchB9n~>#2e10Vo>mZm&pdc5mFwuGHD2-r!%V<~Ph-=hu7uqPIZ_ASg%xDChjK zsLJ}M4xre-NLHXleKR#4IF(3!040IyUo5L{umw;7O_^$aDF3u z(RmRKGG-|ib^NWZ6hBRcGMk^(f=w70fqZTQDL_#%4rL|=&5^KyrtGvu30L!-KCHf{ z#`l_r&l7meuivAX-z@ZDNgx?zj8qIH-R344xC)`7%ovdEl{>6 zur5HVre72^2&-rd+{v43S@y#NiHpFbhBcHAiz7_iu@lFCGcy213U~2<-uMOH_L3S`lkbmb$e8y=hLv*S@o(ly1`zC#scwJ)GwDlDq$x(t@bOo3L=HJgk;# zQjh-pn@ob9Bb5}~sT$`zRvh9kZ(R+DQY6`jGyalyusj>3J*Jd#O3ZJkjkB$$2I!cm zn<}}uiVwKvGVd4@jIDpzE?ftkQr4axR6TsHTm#eIF6r&67RwzJEpBWjL9`Yr!N*Cn zWFncaWk7ykN@FpwvlW(v-hdR7F+a_Ltq)%lmDYg+m>?4CXO<<(Io!T~q`QB(^WDl~ z@XbeV7d&Wl?B4EEZ+Pn+6q%eHkYWs$Rf)G6B%1coF){f0xsL2Y;jx;EjhYcFo^iUd2QmA)=~6 zqHsKlCVe0z-4+S)rWD=&dVW+qHRAiSTUsmAP4jT}mMdqd(J;Q%j`;zFVR@u3`J%M5 z+k$58XT9J#rWC41q2c?Z9G6Hfg2?Ku7$oU9|qfFqG& zE9V#}x+ZE)%2(#SF^|EIe%znO^}Y!6Oktj`q>c@gRUq4ReA|4}vnt2ql-A0KUdi|t zRhLc7buYpe{7`M!q)FXFt?I@dCg7ewC?#rt4`fh~{FVOLwTMV4t3x4Xp=C}?wuW^r zBrch=A1w+rmxKq3vklj4Xl6?|%-mDBPle1lhrH5Pusd#S>+NgemiIkZh_1(0cZrWj zd5y|iXhkz3cefzJDT-spk8a(s+4*KK5|==#azyDBj3>6p3f3&zla4)88w(sJJJw7c zXmfHGemUYNTLk;d0PrMVe8gG)!m0cg zyt0NdP?Jr6{if>K;i7#h&lf{#qbI=*OKHDh`NBi3c5(}%hAA=)-F#DaX|pV*m8S=F>4fhYf2`*83rKix!yU)?cCrmh?{&47m0Dlq(0Y0LbA2 zV%^J*C=1trg5Gc7bCw?ireU5Vs%}NfkR)(Z%RL2oj~)COaC+}2qNR~F8jGI!(Wc`i zi{mIGj~!g?@jHVL7r=Bglx4fQQVeDaTvoc5NK%$+YIVmrcAvy0(&|&-i(FJbK_&}d zlXqC|NXpz=)T4x<()0*9Yp-NUdIU}OYh3aaDjb1>|)BHOl$A{ga!C*U&^S2e!pD1M^P zXDA(=v&?X+h;hP7If$x8pSk@RdLnE8wlmFcF-AQ4T5=*vjSgN(_iGts;2fihb5iO@ zj{_zsxSnPA18ui-C6r!UMg-~UFX5c4VvG*e-yeQC^6iOUbrXPH%k|4*C>4j#s4k~~LhQp@@Giw)!QpTnHSSP^#N5}J<7aukgd zoVdZnhFT^@eeK}~h0=&gG6pie9+DAKj8Yre`5cnegN%X;&#SeoBAUf8x}PiinDH~4 zr09YTNK68n+}uXrdBv{bG_I53WklSJ_)R|Vui%t=?H3~3vatnqP3!lOZ;MmGCMB#| z)Exdpo&&g7wIy)GTL72=DaDuVRp!5~*?)tXb_Aad;HU?>ruqqCnwz1Q%V=L9^7*v& zNlPo|frZE-ptpJ$XDcQ4reB|qdEESP47q>_BE{}3v_K}RN{9np^wpx}E!Gi_%slHqVl zZ1wp>`}yx z@v$nZXsIBvIAcB|eBP13$1|W~qJ)b#pk1I$NsE!uNA}>-#M4t;9w)u)Bl52TH8--n z3hHfegJ$z3`md565Ee97q6t30hLL&k1;_NaqW^DTu~t|B#s{wvRcx6QTyyP|tBA3X zuxP<`Ya+(nh~6w`DoG{Gt{c~{)@}6f6!3}C@zcA6+e!|#BW5zybR z2e5SnfmfT&CQc?RL^OY3z zjew>uZCx58iOojy=m%!C1RSgS%CR;1QQx0DRU#`Bf>lZXl-2;Q4y>mf0s+FbJ$B(S9GUfI?vk>|p90N7jxeDNr$C;Yy!Ol0cr&^z0UTQS`eGb8{!@Vc4UWc9 ze2Rb$z(9{wgJf3b_5=}be3ns#(Jc_d?&a0gJ{oa>F6r1NG9Fe?44Tr5*6SL{_G$5% zbu=e#vsw|Gd!Z(O)#I*$rQ!tzyLqo2%}IbI74!7RyOq5S`LZvoq}wqBdvzn4*3#88 zJ%)s%2wmLKTYhjuRw84ekoJ}a!4;>OEHyNDrj~$?A|O_bp9d8f)dRR zMZz5=@s|rFV<;PD6tHDQ08qc|o@M6x(>*IU2#i8a`!t*v28QZOPHl*es0Tz>kcHW# z;%HcXfH&vE{Xwnepg#oMYjUc<oqg zeRr7_2l|>=HH9~31lb4omB#I;SCl%!iK}yn>vZuceT|^j=Bd$6BoJNgac?I0lb0{O zn8|vNggo|d+Y=!8MaAxv7J|CN59CPghv1V=Q^=;CS-*ls(e|F@z^Zi+daIT?l{!^- zNu$s5eV|W?y9o@Lt3FAB{i2GfpTRF4YPE45(4|vNO*4ryM+@9S$&A zAv!Wwu67!$XmPRH{a!&-{$v{~=Wv?7PGKBfGw0dH4-25sX=@VKu~1zPXH~YqSj@iNT&6YMWTRu4S;8da+ zP~jr}nRT0#;q>1C;7I@yi2JwedG zE9D~Q=xx7KVqDXD*md7&ebp0oTSXP%^{z8d;njMc99;){S6zPR_DvZkol6%CI}9|N ziD2r-n6IEZRC`$i7J)OL(tJ6E*U_3@9p_G)zAb$yf+eD@9A3>6T!uKo6}3lD9zpIr zTCs8oE(EtP)@wrRai9_^Dx#G-y~h6Bkl>p4DWuDGf~#BtpyHikO1^X3`6Q8U@T8{y zb))oskEir?R@9v{8=9DYE>}6Tx}`G9@h<;A=SYBXP7+L?0Y^uhUVJ)P{`5vPj?@M^ z)&;CMhthqB(ZIc>;LMd30dNkSh_fA0jzfksW?A&A=cX_=Us9E=)L^)iUiAbr z=H&ZZ68`qF>}OipE8nx^1hLv1!W3vHgd%e85uy*v4tz(V!i%l2R~R;rVn({$7E`5*O@zhd@E z5^fh@$I`zTVrHiQ%$@ya$BIR+g#r$A!1E5(_K93arup%XO4#u#T9;AoU@c8e;rlK? z9~up`KJ$-{Kgw!3wR@K*82rM9(j}R*pN=H_ zeOTx|1ERiDxD`AbSni?yAH#SR7Nlq?7kFEWELdAs9ajP#RPp4Od^E;~OuB+zljlXv zn6T2L`~PT!0)jM!D3}e@Y3F}2NGvS>DL4HNB)KubJQ=*_wW`}X`4|LFGcio+71F(5 zbVHF8UJm<`2Fa6`tT`K1a7X$c@E5XAPIQ~+@T2yyM&P$~nPlP|)PJ6#b@*v?w zw&H-T<;rEQ?U&sJ$YjKlW$xc+l8fPfQ?_*gFgl;-k7^-TlPa9?<9ncq2m0X_0w-y3 zRGH@zWv0|tgNNhSy}4oees-U0+KUwAcvIO;mSZ$z6s%)-_O_&k?$h3+Xogev($M@0&L4o;{ux<)@N zp~u1TZ*)kk2KN(0e+$}HOk*h-+(+ELey0a=R#!B-1XV7aZD|9Yx<6P*{zZI(xTLiH zt;+(PynwAJFMJUFZHV-n zwF`_E0$#ad*WBF!R<9+q8`0qutlWds1Y>&Cx(NO0D129&T*Hm(!vq7d&7X*t-;U$9 z-kaOGLD*(bnZBNJa%l*kza(4%*S_rCX%F!to{=S7V-;TsI?pWZS~etrX^-5P%oK&p zOyJ?iSmhJF)u1FhA+#rkLD$cEb;%Js!|&$OmF3JHt$czE(u~!e>`C%jbT=b_qt=N_ z0#&)BfY;7aIE+}eS(39aUZ1UxPRn;b+{(VK48p*4!kc1t)2)m_KBuc@+w%+P0!ljZ zpm%gPOA_)zrI|rs>dm(w8Vl5!MB-+TwGVKJr?v$s;Yt5&JON%GuB9a7!1=TC7h}r$ zw@BV^Ftv^Xx_bdIeF`lk6%)r`GIw3ev>~f4b|Koqa7X@zeqy7bkYy5tTf4 zT8VsO-pJldfIco^FPf?vVI}u|*0G^ss>f3kkod$U4A%tzWb>Tcw90kTafK8%&{ink z$Qzg~YEv|aFt?r|?gdfqPd7sXX>s6PgklnrV?>bT`FSDnC5(SGIX!~9plKBqQj^1u zX!ZKB_vuyL7;}jrehCX z(Neh9@Zn#7wBik}QhFweGwjZ*0=(j+n=YmHyf9!qcJv#VD zi4TacBHq*V007^Y({Ieoe@Z-~gn;9|e^n-CIW0obTv$QvgVXdXC_*Kya=JiY$2HB! zYIIpWT=qOmWTSs9o5;Au3j!--@mS)k(`S$^Zr5A# z`U-`EiGzI>%wBBS;1n%V?#KOpyS)=pdvlbZnZsAqfpzt+%&O6VGotQ*MshCo@NFaA zRFL+ZEXEq+UD4J?UH?>GRtiBTc5fjd@3#V&Z9FDtyKHZln+Vt~0@Vw#7C?dO3G3 zA!Ei-hF9*u;-{Wtv`!LFD5U;6-6@8|BG_UaoDgQ2;W|_Bx1{4}e-ZbgxLVycOx%Zg zY9NcvomSvez9P!&7h{${W?r9${vFXe&x^arL(3DX6VYvFJM z_orX-#Ky=NC!mhj=*xlmQzrC}ID$0yE>7HeH_sX0Avmq=A92JqT;;Dg67iI{j8%oX zvNX$c=f_}ZF4t9NGx)@-HuJ$9$+MCuohQG}SDVGX`-Q($EN{9;5||JD`# z&Czv^`j>q-ATq}ZM#DsE&8y%CE@wi+MDo5l8!4ELMZ@*Hj$9X0G{fo)cU$q`HAhJ2 zN5piMkI$T>cDMlPm{6VM`LWcKB!jS#SKz%2E@^z zE+$6i_ymkDJ2XxuW{@)Yv0BB!q#q$NS{f_InYsaEPE-@NsXL=t&$o9Y~L-2tk!mg&MnBPET6UKv<#0s3W`Br;GB<2=bw ztPbPB096xvX*2w{){Inw?)p6j3zwfzZxsd}l5M-$ga+4wvgf34vZG0{c!@cRL6hP& z1e=vIOIjF?5aK#=FBP?vmIu70GIf+fnU#E~UYmF*|rvuaUsQId)`R?AX} zyr3q3%%!C|9LLxL!KLH-$#Q$ue3PS!d!zW-P%MuYyEVcA`<)znYp3OeKP9&ZukIhq&>IB4+r84 zKlcJ5&%)1HbH=9mX1|}PjW~QC;Q5b#(1kT^b`9$oKVH<>#oxxER6I1s+1H&NuT z#S-1Wp-fhJGWvdis4BLRqq+4O&W57&81sZbkM8o9mAUi8P{07J%;AeqJ`>{~f{e5L zAn<+Dd{0xiZjczvw3w1-p`v1uyL>G6DyKg0KJes_d%_gjdozb z^akWx#QXB-s-fXK>(TVc(L1c~4r7|nd^#Ck41BvSB9EtcE>s9pHr%>UO+6BP{atMe z@0Gba3_pEXd;fXpGxlb~wqS*CH>HBF<{-~U484ske7txVD^ho`wCr zpHttXFJkF`Brm3S$|5)@AuC*k0pr%sa7tlpb-*(I#<8msgbVtZYvU=CKGiWFo{@H% z?8wxnzX2B~PJjcRC_Jwt!YJ{UwNoD{GGz4b+Y;0r<*lQ+qwT8G9xavhw{u!dcIPqBxQZSy^R;-Q{q)%WLXTX@evDtBJtohlYnBX0ujX7Y{ZUeN5puEYd4 zml*t=E5Bws@Gq?Qj32+SMyM=pbFQ@)6I2rAA+E(aaE#vCJ<2yBdKf??LWo5`%9raJ zVfwfZ+?CSf24089_;Pl3aUcrN%2lUxtiLmm>%J~2SNG0DI%|P*d6+d*3VmnoznHmm3sN8=ORY8<}{IkIl$zY?B zM7&~y6Ed#A2lqC%8cZ5}OEWjT4c%UkIFj)+jG)!1Z)+%gT24vh`}um84Gr7XkW!b_uJu=b($)>5qieF*+OUlme((U=biDSad1!X zgw^<_)ib% zG3PtyPO|#q`Fgm4JVAW&#?pUKH6vz6_)4VL6c}^vMQc5Ft7amAS5~SFb5W>RH3|ZT zw41at!z8m~9D1C9*0Zc%C;|SJGaQ9Irl53e;vZU5z?ZKns(~)BhL`?gP+9)=Ao(4r z@_%)6Hs535iG_wM_u3%w1-#iKy7L+E6{7`J!ujk&`n2pUB0=qpbTwRJYHC!vmVM|I z#M5V8arcRy25(<3^=NnxbjtcZ*8;B5LMQygl8J!~eepg1TIs6~GQHLxkoWOlIl$EI z-$9YT5e(EiO$9+j&vBPk^c4|2_R;cLPSx_TPhT8#l;V;T+r*QSePf5wh5_sDN8Lg) z`y4~g(Ri1h2R56&S^*9I1wkN;p!XEp9Z`S0+h7&JDVVHt?o3fJ!of!+ZaC8bK{EFh zws-q$Ow-{3DMIoYWwS@ZXK1fz!>@Re+?ILi=Y-aG|4`5eLYj67^&QwCi~4d%|JIQG z4Wu$Me1QIB@fK z4vL$eVBiwe6vYe`&Kw=Yf8UfVslK8xeNgEUM^t&##h4P~8OKi${}CdCg%?nZB=h$2 ztOny8O49)1(Ca|K0BUkTeI93(2r?N<{R5U)GXc{5-s3r5=oAFWC-93DH4{6GXh!~m zufx;a(GYlQ@q&yCybmD^nAsa!8gRKThJ20DUHcR&7KB}KtkM(upCXk~umSpG;1K8l zWMKYk4A1_^tuPMwi|55SvHq#5rxNj(I$scggHpD_S812XwZT=qM8pS4cFPL4v)Y7K z%UEprT;)SAo_2aI5a-u2qTj~A$ZhT{${}5im|w7-`|(@J_0F9*y8t;+IOKIh_i?lxC;4LXH91?sg6}2Ex!ZVVcjKP*AJ&g zNv)d>a6vWOp(?zV4pn|lJ_5GBPwD9`@ZzhjRhA7*dIO6SCC@VqA6|pRwKmt& zXu2Jx%I`rFMpRw!?Q>Vch>s*~{Zdyxy?^xy$fiX9FChCvn}Uk06z~dMx<^+sHe~qp zYDt+~S*3gwoEY4{!r)*a9fED`h~Se(Y#>|O^|n_|07If@nC)m`fsub5f%sOGP>_;K zJ|sZKRPrn%-&6KosV$TJP<5GD#711KvZ{IE6+QCVnG$(LQIK( zn1f=LLGQ7us36YJjM5gQ^(IkXefY+OG*5gIY-fM2Jz14I zYoz$Gt@KSg;uMW@5)PB*;;%&L7}RSIpvq>*ixFkv`a@1-{a@YeqA{e^#Ce05pWK59 ziNRQ4uqtQ_(Ix_#T&0!C;~OjZrthCeu)z4k>rq!S3bn{BCadsh7UT?4Ch}MGeyHA+ zLOn+tm7AJh~`4>ekg&g8p#ful@^+)wFfli$fw7}}gN9Hp~ z3^Q`p;KsSEI+qWLrJHY8Dgs*8Uvv9@*P9+}3jmgAc) zp2eo~+?j9_&i}o*jkum=*UiOF-&H-6g{CX{ zZB(v^9{lXz7wB8nvL+Q2Oo2v|FwK1IYH>El%K4Xh96Cx5z?ezx<>mGBb z+rBew#4*Kxn18GvXZo55h3*v@KXHddwXBRqHg^)(b7I;$q&?jPl z%wnnu3y$F4`b&c_`$$el695;Wu=vYxVdDBjUprm6f(;lGyy&xIXyJ`SfaFhGSD_Yg zXh9ODlBp6ba&!=*3E@9KC7N2+T%WgO2gB347Iu}}rV=^st@oAclGV^#7 zQ0?ILf9DD*HCeLSJ|#5YnF{Len_&LHb zL3NqLspkZ!yXS%=_-$1jFDs@LTz(|wG(ej8vC|gAig|&Y6a+TtvLI`DsG48$XpWz& zX!t0ETTfm4D^on{s#*&P*e@@Ci7@@C1Hl=fd<&=+2aQYvJOkF{HR^fjW#+K`5nT4c z;VBdf%(BpXbyy@4A(dr811ht5uM4kIorBw(tD~Le%8ZUn z?llhjTCZe(#Pm1weSZ*@yB>ryp;f`N=onhvPZ-?#_^LW31>4^RTlj4X^QQPpcM3_w z!KFd!mS8poMc+D8pU~ZB&n_MBE3LN}irvFiKjB9}sO|l_8Q2{{@h1JgfT`k8LPmPp z#jd~`vX-0`nsPxsbAZUFUM-?pXz8QaOW#kjU2i8N%2Ve?aP~T<hgYIL5KCS$e*28qs`V!MxqIRHl->YEC~8^)QWcc( z)gGci=FOJ-$||@m)-3Odjjv`8mFbBZ5@8P2_}5yGzHxMicc|IhKPbzEdeofLzpXpJ zl3-t0GQs-TspvEmI9+}!v*~XY=I6zgT3i21`su*k#4!wjRPM!)GBf`nD9gx=MRpJ) zd#;qLZM@oaAZ@8HZdnvq#3Htu7^+P|FM8AC?OIvOL{i-e&*H;$6Wb7DYKhzedZ?(TrPmxeaD z-49OANXZQZWMhoL{lG3P2^yY-comxaqMZs!6uia#Dizwvz3y*Li)hp+NC@J5y1}nP zsZAjTUY|(+P!Wqe&07YAdq-Yhkam=Jkr||k(DRV+Jf37)Ol2z+B6;v@GZ)Xr_bYq= zRLC#pmzf#=a0gn;DFC^k#}O)Cl1$}-oCC)ivv~{`A8Hu{(HcZarJrz%UJ?sTc_?Bo zKysNB!ZT%>+S6Z=n+ooAZFw#qt1xvShQ==Ip@R&CdF|`O<7lYSXfxS?$+v5x(~cDerkYyR>=QXfb)xU^RNptM9dTH_Uw@D0XO&VX9*Odk&ij-L?4V}jlv;!3;DHxR z22q1Mn(MRf(M|u)v&12R@WLa{wJ;*kR}r<7U1To$j6Zg(dL?vNJ9J0Zo&c7D zdBGkDIFFs#VDp@=!| zD&Qa`6Thin*73~ga@qTh?qqMU@w2;A+Cm@wXgE(kdskT$Mu$F}id??7Qh`h$83cg3G!OX$Wp;Zb)y&P-s{NxSVSw42XI~a`3x~Dv3c&F0XME1I<2oO4F@IH+z32Gc+?JSxno#l z^6v*TeoT$0EXi1NNRe$HNb_h2v$-vtna>?`FODY@2qAUO#^k_zCRB5>$m=njtGtJ6 zAI_dQFbWD56eR_-C>eO>>i%8>Y>{Km2z5|+z=uU!Mt2A}lgmr;>E_tIh5ZmGTqt58 z){=;J#TKgex@hE=?1X4&n?f9LvQYsi`(^E3On)e%sYJ^F+I;~e?=41}i+OESiJc~u zfv^a^UiG0RmNTp*+I!{0?;ABs*uktHQ+H~$9T8~`r6V0F12A|+;*SwK4rrc8 zG2p5hlWWA2();1MtJy=nvtr7_T%Tg-2@`j_42-2pzh^BtKUdZDtg)Jk6rPP^z_`ZK zNhZs zxs}MDK8%TywI&9SKIXR8_w}ui!_$ZquuGAjvw$d&_^^OO&xTJcVy)p z)>G4T?Gr;*>Uarqs*fRsHxeBOh?zc|LPs0RCy$DipKv4%>_O=3pTbyrx7i^037&%w zzC?Z|;{|!ow!FFF__S_0akFQcKNf$in+QWibgxOm)ru;|>dzG538S-K!xrWFPZvO7 zij;2f$nzGk1d1;{ENp)o(Nt)c1unxiO;2?6dn(NnJpb;^qE2f^pb|!Z{mA zksH^1W!l%=!Kp(Yw#%(cDsX^Nb*1KDX`WKlO;(1QB>Tak!GDB zORiT=DpQbm*dV2kG`paykza`-{ccoilD_ltmFeiL=%W)1cBbM3=GZf~5fU|Z`j?++ zsXlX+x4)7(fUdX}ECMwH;RWIId2Pd#B#iEFqdCr=;BtihU^YX%i)}*c_fgmAvpJTO zu%=TjM5x9sJB9x$nzWA`iYzV<^Mw8!gh427e@zrFGcxKYuYPW|ov=gGd%gvYPE`Q}Oo6s! zy$hVVx@Gu8g@t8(3C}6x4;2P)t(y8t@OxLexrydA4)EE#U`+5SqEIp9$#i2?ePaAP zX_Uzsq42RkflGU?J@uT;f0n|CVY2;{i|Pv6&&-H*|7~&Pcq&MgQ|L7D?wN`r3x7pp z57{Vytilg^MNSUf0ptBhpj9%>d%PMeh3W80lE{7~uxZIGil9s_~q@fC_ zS;6v#ugkUKjO;-(YC3hO3A)`t>zqD@ZD8huC1IH}1$`9;ySGt!i+#&1H9_;kZzPda z&aiEzeU`GPx5P(NE;Uz$`kRvL9rf}K&9a2_^9j9j>-uE}!-5r*3zg4#;ue>Y7Aveh zj4B3W=gJsm*GK2oz&;zEphZ2_Ab}x)|4yKC-9lplWuqHk4)EWWqQ3#yI{IG(>dYlo zp0Kbic+y){XMX^B1t3sSX*)z6@C~2=QVjYc#bpos_e2TeFgG?Hn(NSJTXCGE@%dp@ zJF*2;T~MVCL3{q0#Z}@lJd^LxtR&1-X3WHl_YRAUSVW8`ECWV{cYE+v^ZCA*m%x)0 zlTlEv)2#;I&219=*&O-i+yN@;{U!9l&LA28w8c-J7A;1k`*me+gw zx^4Hz^RgY--AT67s6homIY$TPRz(qv>2JM}NG=U+c8SmiiPwe=(w1JMt3+l3927 zlv3#~ZICeM2jhNXckz&t8_NZ6>-zbO?|4VBRh_VNbj34?#M7tJ%*z!FY1o?9ZJyoO zyI_Rxo3VroqufA-bb<`j*G~pu>ooh=6$vS|PCt2cy8T+uUO?TK9s^)U{J+5NkIfWP z7F~ch;x&KZfS^4kA)xQiJY}5c0;D@6UR;_KOMp2@|41jdIyo@U?jVYOW@kr#9fk@)HMEzrCyrF?*pjn#u&>TW4az#C4QqrK?v6y|*F+ys}*| z^tn}8Jy2%jNU?ZrlImX)^OV$B#G%&V1Lg3CALweA!9MI3E$I@R4*7(EwWB^V-aRM7 z@zta@>?C7Cczw_Qc1k>|gjCMs9N*wHFhBB06Ry4w7d6U0I!MUnrXno*L+qnF=CAEo z)-;zDeE`IOLR>EkKulbJnmPG5K|S+>3d-0Jvun3*QsFonTr`p|Ktit|TtX1TwVa@K z&t&_V!#k&(Ev<)()BP==a{>!>27!H%!a6lO%`bv>hGno5st$ETH5LnBj3Vi4>*q;c z&qIO(H7x;;jwq_TG=}>l7#=ygSDC4KABe>;9Et~OXmSFxi&l!DR+*}L+p7xTzJtb) zlX84tzoNioeRh)BcK+b9_*p~JvG04g;tT@1W!fiA#QM;PZz}SyYYog9q45AQr#=gL zio|&qr0y3QrYO6T6X<|9@M2zp=}+m0v!b?T2P3-Iae0GCG^WPFYg@;7FUDCt+b0l- zFAF#&yYD7an66h63%c(lj8h6=p3lWcR=GB z-d9-i0u^ZP1?|iGb4M;v_7tsMW+Ki5AFD@akGOj@d+%oyK6@zt`0}9L2DH1x_E}IS zC8_cxV}EU{xb()iUha$52NnrceUkwy|FgL}jzfziVXOVxANptk#GxKY5-8Qp7(fT; zH-uPsd`TpJfY>_xA(W2m@xUHXj}a2K_!z`bhaZbx)()|rac`lf@Fh>4wEY%-WV?Rr za5{j;gV})*U5#Z<8|8M`S^Vqiom-+6y;_z`0?zxolDEn%OTZfXA8H$#Ist)bsqKOw zq9p%OdGLx05W_$&6`Rxc95M37i6&^E(*CCzPW`dbezmU2BAHD_CK9Yx5#`2A=w>bN z7{L!KooRY>x(X6ZCp>JHtuKetnyO)Li`+@uQxrh~6hD0mtrRWGxEYZJMMs6st(3x{ ze=Zb4tQSN_7F?BShKTuNJAq8yln91`kBh9FsRCBj1#V;%zM!;rd^7@foPTbtdTJlf zr%%iKJ&gMYKoCHFF!0}0m5)O0cpLPjt~^UmLCj_8&*P5g^ESlr|(?FCXWLBEZbeP7s~>q@ivl;K>7Jp^I1y#$sORBzh~F`?$MGd?-T2 zhdB!i{>PI{A{M1I^Z-7i6|OcSeo{+a#0%+nSZa5zuHFnJ_MlOyhTDVDKj!I`ScU zW-qzN{6f4H8-@M!^o3jx62#y%3f!=bgB;I1u$c4k7DxJ?P7*+_ny zeL;O))N~g=m>)OCzVjMIU2U`~B*RZ>YCXOXxf*oTFx3H(e;CR4-Jo zz8a!B^J9HrqL~Ql`hu32UiZgt`Fb++#qUF3@^amU)>P}A!bhp6=q5-aS{C4{U5cSA z#>`)Tt&)E5bl!3Ro}9_M`$yI{ehUDWZnPgApnp^z?(OD-!#lPGuWc^kJ{-a0gNewg z{whgMnfrW04fB~~H0P-0X2+4_16Y-8{pcyEos~<>XG7tEs|pw|aDrKF4m1&a&r6nm z?}S1=iu%g?scaf>+dK!9Hd2w<-QW4K#(~MU3c*Ax|#ce7#j4qE0H!7T!8TMC->=2Qeh_#w;|VmV~=R!6f??)phq#RoXE z77UQ8Dyp{paFR1I=5~QhHbfb}W2bCVf-D#pS~rI#>E6avw2G}r?Kx$0t_l(uSOZE-uK65VtivCVELc=@Ksx* zFrOmQT~cZ#!2i#d-U~vvXAYSq)U|>Jgr%b6X+bo3UYC66Cmb#LSDyY&JC@a757%+axC#d1?hK`1DH%TJWT57Qfz~AFuxBZibl`OO2N4vuVWrHZgOfFQ9LZsOw!_yhyI-GW3IU*4@y^zT)Dp5l}?@G$x! ziK|xesW~-JJW=tcpI|K>yNc6yH9wGaLsBU(+Ywplb{rdFIx*kK})Yo`%M8FSR2xO zDY+kvDaMeuw~W%Y6BsYdqkO_aX89BlnMEM34$`HkT9U;?5zUOIBC!bu=I07Ii+QEVnSsk$zyw6oWrd&S|9Id zFABPcT3Nx%s}+<6G8|+Z2bVZpjU)#TzmCq3ZSH)O>ua7k?;w(X==!C0=7{zYsfH%4 zjcCcC!GbON0IoBR;sr`^_KF%hEQXT)EFuP?L9Zm=7?DUG6wH{ z^B7s*;EQMiB;fx4u~yrckVz)_s)i?$`lI6Hw=(42qNTfI9rkbpkv z+BNg=6@jFttaF?-cfOwV4uxmvIwgk#zgz#7!12kfflxiYnxE}%9HSIrnQ{@39WFe+ z63uNl?4$M^;|762ZWC(^u5SRKaZ!z}b>jaP= z)=|4q^WF9rtyd`KxXWWDl3w2J2lj&g1Qqt_Kg}d7pDQ;cI`Tc#KM8-FL^Fi`DYw_0 zTJ9dK>)`a$>+kJ;DN&sIYl_|fg1q_PKCJ(bruqM$qjA$}ua~4Hm=ySw9#^&34Iyye zGzEuNrCt9Px}qnR27$7&f5$F1N6&&`th3h=g9i@Xt1Wz~X5-+77!N))lwAm!iex z5F>>9(qrR#c=dcnP$IC{Z09CR8!x7lMosClj|H=ug^ogHxTWxF0!D|t^~k^|PCUjS zh)A<(01WqD%PvnCO~PP3g=SYnHZl!`g^+BXZt+S};sQu{eV^DR=%c$~l~eI?LV0Ga zO?<{gDV;~wFEGwZ{;8=MK8iDZdns{>XUO!wiT3T9+@Y_gldt{t`^sq6H&!szk^HYK zm_Wb^Mx;4EfdzK~AgA`jhO~MB?w8aAcml-4i)WX=WIEUYs4tIu-1=)c=(d+&+$2o6 zuB@YESraX_qzTGVc#ox&QA=F4iAcV*rsTNM$2GYEBI=#wAwBgBXpZA)l&9zZqghOrX_b& zyAdjk=tM49u@sw$Mfw|(752ywL+iOMp z_zrb9qJlpdGn~in!dHLoR%|bG&h|c{valRE_yw}}AU)?L_*{#yM~- z<;;)jpDWdt#teRsHSxR+}-D zCS^(NGkky0K>KV0pCEiX@z-nS!?lcIFvno~iwBd8GNMc6Z$hw`1NXP)C6aC$8NmTI z&*)L1GZP$=o22#OPcEBG*}}6Au(y)E+W&6kEPwT-RRLOo3)pw#{MMHrnY3)R0T6Uo zZWh`6PR|YtLi(W!wctDlS^RawPtoS{hXrxP70;&+q?_GRv3#G#aM=G`U}O+=yp%SR z?c!;~1rdo3hF>IxM5_yg`Dqp7!*3R`_VR}61h86@4m#Fsh>1y&Qp6D=i^{?}6;y(| z8MXXak_fwLENrRTJh=1uCUHN?*0bf*tZn-BV@hkEw4H{|{YaWiDveW!7psEJu#5l6 zqrbAY22WimFQw8Tg`BI_SsV+8rMz;dOA8+_nH=MGKv-rfs&S`<#_t4Y-OL3YOaEaA zY;23|^H^1C?SXtP2~jg*-02d`8KeH;D*7%Zc(QwrTG&W}Q9a+!rYw3VE^)Kqnyz67 zsCafQahw5QmdAGbmwwqTS>)J%%mN)K_QG5n)g|ijVhIw&xZ6@PJi;{i1Ir&Lhav^y zKRgr~;8uVF2`)>YLJ9bEz!Gp8kTV5s16dUjX-?>#-P!0Ef$dNCGq=EK4qYMlpm(Qe zrG`2!F9ywU^;*tz3?clqjt{=~YFKIPFz22QmL)xv$f{(_SPWgqYR5U?snY^ldu#(* zF4L)?^&Q0sO3ZXb^67Nk+r}W8*@Xzc2P4W+;+~^gtT1ite2S~XPOV_YH;g5?21GtJia)l= zYR$vuWFZR!7MM*S1Zhblc-=XX-LUo`6}yo$S^`q}tU?zAC_1Ewh~G#Vresz(8OdF$ za24xv!k)88m4Osgx0mTtwC=Z9m#R{lT8myPnPWWpwAG{+j^KRCd?-H}JaK+<(?FXiX6IU=M_f;%pYn zLB@*&ZF?j38{S3V``SG&(N85|I9H*jqn zIn%CQ=z^t>d$;5cxdJEN{{{-|10wNjop15KxS`*uXaQc!;@tpB(1~kUY#?!tLoK*; zq2}dI$0AQhU1p7Kxyh|YIPQgw=kemqXi46BuN1Kg7~Y4kXIQ~ED!Yl5_}S45?PWU6qQz^wZQ;t~&sc3Hx6+)rgZm~z zAan&{L6!u|?QZbo83u`oD#8Y-sf|+APdgZMDOAG@ji&pe_r9*jGf~3VhY9u32U(%< zz4D2Wb0@$<6#e$-1xeEXhLlgQ-TGBR{VLQYewRi18%3BSfMEeB!njF)b($n6mB8v} zToXI-Z2*B-qLAiOm}{b!OO`SPD*S%tM8HM)5<^z=Wbx~xI@Db1j1gO~1_$|dajhWn zQ8hB6cwQZLv+}6;A~9#eO|RLRpAxs#H}F;=)8Gb{g6Rq|X1yp^Ieksydggf|iLv^U zT52f<9yt!mMI7DvA1w+G1G*!k?CAMmHKq$N04F503GjK0amtUxQ!X77@lg%+t@?+jM7#B!FkjIvw2qA)o^W@JkJ*d6FblouS77~G%oX4 zie)f{R}@H&e|_>9%^^i6u{i zOh#}tl0|YJ{t@P*C<&&j_KueG$ua%EgT(`sG~gFu&&Nc>NVdxP2Er=#f1<9Eqif&- zlAK{vl{ABp>N&m()liNZWa?V!`!rfA6ZQZJNogO#0Y#2GxI+o}iR8uM=Lbn?8BR&K znF|>uz7Pdx!ZCkz^5+Du#12XR294mIQxHw!9->Fbe+$;@o5!o678GchLQTU3>24RL ziYp(}%MF_Tk2*;5UCHTN zNNt%#VvB${K3SBFRm}tgMo!Mu)Ux^?H&bhS0c&x!h+%DeOQ$&HC!n}&ZHLwUt%Gd$ zPA~x%DFQ>$Ek8@CWJY4wdTsZ=!~@T|kuLfeNx5mKiIYb`XKoh5ql5RC4Qf37{ASCq zifYun3f~AueU27*Ct8&gqKCee$Mg&6RMrf9fF`l#x`9VfaPrqixB_2<-u?fK8Gq$M zc$JQnzWT#}0p7g#Lh;6&T~g}5oa2_dC34|G(ywdkLcHfb26PwCEGU@Cn}pxq6lCWt z`%4?I&a*(Q0!${J1#AXV2}QM;D<1X$Q2@UrxYDB|ixP#j5q)JZ$*1j>6x`LodBhBU zwBcbXl@X9$#i{y>ikY=eC4JEo*d(HmR2Jx+#E{i9&$4st$|w(SQIM;}l3kPEMDE8p zQ`0kkF=+G06b{|XBGn%>|5J1z675#>omd}XsB(#zS^rl6_4eNX48M5=CQe1e=5_B= z^=@F8nBRCuUgrXU-}LKT02;o4g1FtvJltts*VwB0Yk_TtrEL)jI1ykhK>h_gmg<1} zft$AnW6nWPdjor}^P^F?#xbJsD%)n%0PnQZaf9A8j;(i3%wDw9`{a+}_-qZp7AKjBe>}MHa zI5TD9e@G0-j8LR>740O2(9S11=wby_R4)^cFMq_KS9`Buc(W-i$)mrN?hQV3_3M89 zR5+88wWZv6Y~||BNhU}tI=GMQEN;P6GNTCf(4kb$bDSn!T~aj@AcNq4K-Y=kfZKYC z2kK^-M-*=FyP_wZJ>Zwem({)S%xkck4Ox%E5U6ku&kCUlG`04P+W02d;wdtz0KlVCW4kF`@Iod zfZdmz^?e!b-z?+)gdOl*b8#e~Ub~SNplNJ-o>njgY$SD2c`UbNd`7Z`8+}&+unZT! zR+w4AsP#g*hK6bVc*CfSI&kf3MSN6Cz=@v76Y3kcG56!O!fDN+yD1v({xTPX8DTMh zwa7dKocH}^-wKGajFEiZDF*##r)a|Dw%0)RgH(yZU`#YPB16QBB@sNdjJ z0~}AW*icl|Sm1$!rbTq%a!K+2lce=DY_@I81;fx@lCQL1+CkfOhVV^cuAs~YtOd5> z%3)a)(2dX8%c5F)iYp%U-rvew7->Ps@^stnqC_GUke-+w)r&cCO2wGK8i7MQoKEYC z;5rDPbeXo~e{?TXvnhW}X)hl%;!=dLlmj(le|9=PX>KyvMuA%OwuqQed8TZm0=qW4 zh{`??qJH)rTZb?I`>%YdVwC!-vwC?qPlEBSY?b=B*Bci}=mg+GC_^kNYlD3yAXxe= z$P0w&Zc2sI9EJ-e@aUeoCFkY`N@{Lo{7vZ`#+P>0Icz1zFhNg3in;vonm<7BOjPy6 z8>R$Rb>Dz#1=`Z!Aaf-__@{z}ZbnTjNtxjEj79PYq`Juhrf3YoCAICKj?*J~E2aru z?8i#g9+Qx1_Dh-+Yf-G;9-`|}yyZe^KfIO+^1fbv%E)y149p4%P_q_=mt}doN*h8L zHkMwLTOVen@0dY#xVO+_WU{0RNg=M0HEBi$pt}7RC7u$fJqAl@qbK6LDNjxxAKEUv zSW>6j4J|S#NxJ{IxK0ayduCUxt>%=kaR4WGzWd8hHwiI78ybKz*t=0?daKq1sM%ik z1phdmw1O!zeNA)1z)rh{aR&nH4k;r@{UYF-EG>>W&hJ6%D33hrXW zn3P9R%3&TAl*+PXAa`(LgEU!AEImg4ac8KcGYlOOd>&fyOCPdUJi?Kh*@FNkp7ekhMHo+usLAj>#GMCX*uCYg;`l8Qy*U%=dq z*-~1E2|fN$gYRBH+`8d@T(NfjWy5D`-XGrpd3$+8A_|38THpj zrg9eYff#`F^}BDIw>)_rWB(HsG`2+^;UuPPX*wa5pkTAvZi(nqGo!C-Nl~zuR=3|A z@8AzjFLn3C`D{TN(b2Hy;2SLiLpX<^Xj>e}({LzBfqE}|l0PBP{2RT;JP$2?|I#uj=tLgHv-kT4?ZfRw4hF~6YRF?R@z>VAlAo`^QyoRl5 z>wsUMIp86@ufAn^>nT_Q{3HRF%0D}A3moB&z1;M|Y=9{pAIUc|LY(Gv!~g&%aj++N$Uc8d1!xP({O&Gk{2L|LdnIG&~t<3_vgY-4_P^o2*i~e+V7ii`w+P-E{;i z%ggaT^F!ZQZ7b7LV1$SIV)$gC&Q}}JRF|WJ=sc}ghA(B=f}?Y31b+s7G3mHL>C&ee ztlRhuXGkKEgZ9Y@MmkpkTY(^VElbekB(P_K={YJfhVk^?5I z=txsykgdnT9P4Y5PlHe92z$xrU6nL8i*EPE{^xeV&{9H>o2 zQY0W80~?rtym&P;732i9hlDcL_8VyYfrk$Pn97>2u+CNuVhTvksQ{?ohKq49cdLR2 zPm#nFKt0A0aE?#^B!*O6?Up}chSS%aH{&QeJyaIweRYKBd67-}fpPnp{-|uA`~HiF z7{knUUNx9U`wMrf1t>z@8usE^Ck)L;jFd>j4Bs4+b(kIdY^FxNgGCa%biUrX@n4*% zO+JlB*PaLbtQIrlu6%6X^}j-?n4cm7ZAT6>Z*~a&8pI1SE8%nkzJ&KPTp1YN7&352 z{|_Veu^>Tx?niw^k6?Gd6pKAQ>>SB@{I&3`xA)(B~^~09&E|3gf;9Z;;EXd0{S=x zHQG?BPY~mb#3dOc<+ndZ`ko$}t33#rHhk(cwQtn0AWVOV)|_Y!m*zy3dgWEo0=Zx@ zhStdW@oqs2Fn~rTK9m zljj)0D$K9Y=YR%N>C~uPR~48|u33iut7-4?Y8%qQFBdHlhjW4)&Q-@9-xY2a?!OSJ z(UZvju_bLcvu8SvX6BJ>-0XV1vi11` z4m)?Rq^SugcfO=ec9Fo`+=1G3(vVsqdB=;^ov@tm_~_xViE6=`%nZ&H3QAqEl)*+B z-*f4-61ITWg_yd?^A%zMEiv|$RGIdy`*y`ko%Vx6?*?blW;-7BEK_ukLONUJ2fv3w zlAk;ywUG3ZWR4|1ii#hJ20$|hL*2QvYa1rDU2>2XRLEqo_d0}u>SVfL{A_^cK!d#) zGC%YS(>g4p=Eqm8(O{4}^GK+7IyEj@uYBu@vhX<%tAOE757dv;Uk*th9)LN;nkTl( zHTf7h$CxZxJhPx6BlX0D{8;1NY z>0#@s>as)6yjLkLMycXjI&ZFS7NS|gbfz3EeWmg3lSS2;daSY<>mx1jw8)p4v{|SY zS{%r_gbkWo)kk4i6br{Qg;dl@>la3y#w;kR6(9&2g$P7}OShaa(S1a>U49@@28jlj z0~_Kv6tawTc#N~2U=y1rxq4q*Kf_>lU#zP>{&>*9q*?3s!79IJA`4dh%Hl1fz^o`- zP7k+){2) z&VWF0<<#rKNr~L0Q89K6M((KYUPwI3STjSsARf$~s*W+?2>y2yUD^_lAeN8>#YFvJ zX^R$#o*vo2cT`=?CMMRbp-rW)a$Fb!`uT-P zYv9kQNX^aVj$ta}3s5s#p1#!+U|xbi$ireo;pJdUFeZi5R+~hTh{kyT|FnXz24$gFGo^uj3D~lIzIrM>hsSYGewT1YB6Mf*xL9xAijx2bbfE}b8QCBX z_oZ*qO8niu4`fB_aXTXPCngGD4HL2+seZh5Pl<0B0dq?amk0Xy?ApUgh$YO_#!EQ; zu|9b|)kC0kmD?hQO-ZI$T2bzWma43119C)vx`}HC445>q_ZxEBfK?>Y_Ngl(^4{vrb~e%rEH)4vz&s%t>3V zhWTz-C0&l-clwDfC}2{#xw*J*HhAK8ka@`AGotCNmdH3pEn&4th5H^S@3bGO-sVT3 zz$T_4s~wxa4SqU}C(d5Q7GK`~nBR z5hmrM24WnyS;`90&4W!2x2$_ci(&e&mdPM{2@W$Gb0$ozcmJk0<_e<|?x~L%Q0iw? z_LFFplxZ>|Q5}v4LmNW2_evEupfX56r|;yLwWV;X?Fx#}UxE#7zi4425XS5N7B##F znj|o_*NF&~gp~+Jz>IoMRvXU5CpnfH5-Dz>ZNwmQv~V*M3M=MmNBpgPFq@q+&rJ`} z0jv(L>nAXBU=!W*MU+Bo3=L%L=W#2rRnl+3KPvA%N$bew0#1KBU$&qKkgdb7fT}AN zmVT|TQnb|iYJbQ9j}bX7gVk>aWx9Pe1ZN2q?3u69G}-&(&+d4TnAOH+bkV6P2>i@k zx@xKdt?@VIDfLlmW$Z)fV-Mcv3(ZT9Rn9iYTJH-D(9XH&)~w=TM+aXLv^mMK5y|gj z-UjT|mqnpzkAJy9fOU|3-T@R~0e~m?zHW{2?P%ivc7f2Yi6x7Svl8E&2G~IO>PMa- zsY9qs83-J&$fDB11nPcT<$A70=k4N}aq#&rU?{zH&`{ZXVQ|nf!TAvWbh|WT*41`w zB+4e$;pnl@P_V#eHus^_G|hd|pgqzn)`TzC-)k{lKo*Y4tqL*aX&zCzk`|P6uekd@ ztd->lIUf}=%{MWP_=0}Tk=xGE{C)Bg!oh&&s%^aM6m^CV%?(S)m-jIPh#_jAnFdh| zuorwk3BK0#{L;&+1adBji}ycBGwH5NKEM^Xp|B3Dx#oNl&{u(s=gZmZefoZ5QgcbK| z$O%uQ;UtOhp!?XsSZIAv;CHqjWP@JpR+02$grEz#Uopa6@>=o6U8_&vX~um@-uP1o zmzuQkdz(~y?o^)ZOU4e3O-f4NC~@*j1zD&|;dC|b%d)R@SY-8vO7gl*2z2>{fNcPh)UqXQuM;`qyXcz~TeQ0486kP7==J zVm>ISUb^I>FP|eK!8XY(zQTrV^ylq8fbw0_*-D;PFxiF%4YcX?pK?M;Vovk)P$KoACkwf$~hD$(hd#r9K`ydN$p+8 zkZ+V)cE@O~jD;QECu*k5zk+`kQH($ml`j2Ow9F*K}GU@bZM# z)~bo=wg|>kmjW5u3{SrPteS7OzmBHGc!W{v!0|87^6S}}*$OfMV+H2j0nK*?e&qZx z>m3U7gZw3b*t#*EED-dg^#ml1LyA!Hf(n?cGG*Ea;GkuipXYQKu2!Kk`|vwal$*d& z@wT5uI!b#yAOG^RY-OUuc{LqOdq1RfZ&3Igqhwzj6QLJC`kF63G7h_UK@=c-4HQgN zYqR`Fv5J_K>GoK2wm>ZBNu_RRm@BgWbVvW>6nyYAD!?>mzhXBXkok0OQ@@fGk7%~J zT;tBeF?JHGnT^~iRUV>=EfMg9G?*l{c%Q9AtkezFL)VSKjFm0UJ75k}iRw_pnA&OH z4oJ1*+X{LLjIKGDkSE^i4LuRTDn`NP3zj06r-r|E&mO z#(aEatT%Z2%f%7vQk~97N^aD!_hDVfC+u(4n2qUa+EA#!o z;!*zKa(ROMn}@*X)%d|4facb_%UCAnHyU8exK%*Yfz+3Eq-`6n3bKcKx4n~KNb5dV zYwfOz6s1~X=qo1~@$yi?ma2;X)BoZ6!qUC&8{|Q0Iip7q*YA=>{zS_gQ%x2veG=Bh zveFZyxZkEZ^jWuBQ^!|&Y1P#-sTTGDih1_rEK^6Y*nd=@0%KT&a{OsRI)COh!n&X? zq~0FKt;_0{^O3=qQz$yhWL+Mmh;K0smbH1kxcGzlsovcF+UG$7>_fVJA|h|)Qk-jx z4X*LY#KUj{zZwm_M4XudeI4Jf8j?-kq#2_{7Y<)J9;nYH^Kp}@5^wU9rDfhv;@G7M zE|1yu2|)XKv?F2xmfW!Y)ahsmUI#StH58Ot5M~gf5}>f{K@Wq>>HBm}y@e=n@d<_s z6;8kwF%TUFGN(BBGpw+`j7uOGy&e+uu5~qXD5rqaBg79ji8u+$MFBa2${y1Ju9M#@ zL}m4xP;HyUtURp1tOTsctn{q*A5qT7=`%5Zj-q-S+Z+8ghQ_3ddVUSWd;pyH{Zr}R znt(C`7OH>==zoO|>Ebxf0#P*6G;M-?FqRRK%owxH*o?()096BAu)b0jMzyq5|`hm+KD_EF(#x*};2 zmH!`C%pP%Y?)hXc%6{Q^%~?hLh@gO2<~bNveV@*Ih}DD$Tn*@F-VAqKFr{kYqYO%f z(^>Zxfpk)IX~r4w6T^dYdZDasw9tY3r_t@jpFh+8>a%;=s)Anc<-m7eB8*IL^x2v* zuLEM#fPc(h<8pO$=8>iWvhRMP=-$uOvEJ>-8^@kvYV{7f>KBpR)&}Hfx_RIC;3Hwg zKMhPE0L^Nk;t> z2k}pw*xVe+T98qWL;qM0Jlc6p#BN zeq+%}pM8yX_wFVQOF~|>_jl0yXo8w2lDe#i8)K$OPgUIb6Px8ya9ejw&`y$Vn;aw0 zg;L>msTp5szg!W}>AjC75U1j*l@#)nEk+S=-IyXg7pFs_dskz8{2I&$t)w#$R@rME z6DV`sT}IHMnyTTe@UrpW&9Wo)2ZRaybN!Llb`MdyOmYmC0j5#qs9tp+Q^rVUus=OI% z(m`B~Ou+Mo*)W}L&A)u?*?UoL!+7=~u0bW$WXo4$zOFaR5AM&Suf?qApQOA;jyCdo z)x;_T<%PD-OMxn?JY{LlDoP5qgiL_lC-h*9`5D7+IMX$<^UqU2ho2jQGW$;<*o4jC zeux&loN=t*C)2{KqktY)$xyhWYitf5aFWQLBi@Du2K9s(fO4l3Nqw*M9=vPkUS;}n z7wbie*OR|6cEc1wH^$ww(tNq~w_TBM0=?ce04||-!^QB{K2uWqwFrQFnk84b*Jo6s z^?w>3n!|MhVO0t-$>lq&3z}?}wrZkBlAd&*6tqM5^~Z5<7gxW(16Qm`7iNh3r&ZMD zpq-QCh10Ii*kq(R(c>5PC=V{Utg7hgTBM+anNT>@t(8M2_599xF4h^)#IND_61|F2 z4BFip#!;nw+lB3VR9e8Yc?@EYc@$pyk|-8uJu@>2zvMOwclG^hdI;>p8AvjzT$u?G%&2(BI@cR=!(fC4f5VHt z&16G3i{=hx7sPtl(S-irZH~|5>CSo%&jZP*Ef?BD)J?OawRiYT)?>7dX1sN(Z3mkE zdnrn0{2I8ySh`ce_g@T~yk)|%u%W?b!y~W=vqe@1aDl&(?HYbUgOLX22DSC^MO^Yc zms)W^PB412vic+NvCZV2(BbWCH~e7)(R|uo+$dhVbUEn_cdI& zSfK6$bKf(O6FR_Y9k-JquN$s7k=E462M=}IJT_5416MVLnZ6(H*pCeaSBH%Cw;L<3 zqQe+F32c3goe10Sm?FA$dYW(EKBYmQUtr5!U*=hoGB&Ltu9U+GO1LboxFw4w5HC**#e2=L9|eDnwfhH-23Ma9nsdj*M@qb39}CUm3BlMN4!I z=65rkrZ92&D+G4nYDisRKn$SI=i^V!NLY@@1LqMd9^PXSa%{|=-|s$Z;P6=n$ z8x}d}-*z>HbKp3sS(HyHT4QKuvL>j<4F(wB5|TyHzlO;R z|Jg;Qs_D1EWfx55fR8H|Y{bcqv0Nb0oARORK>=B9l`BHPh4Om75tAYRF*3?@i%{O6 z_Pc+C&eUFe`XjxWJu|avo+O!7F|Tn~*zE-2_m#-+M)$|Xy!(QL*WDw#Y5`Mvi?RD% zHs}xN%`V`VH9w$<0de3Sq1>RC28Oo76uv9Dy7&!ix1$$>=k)T}1Kwow&|UfDQm3e= zLr><#xp1dvtT1bNvMq^X6`+x1dG>xNlRGs0S$#d4{THb7dfb#b)5K2^y@NJ1o0*a! zM}Jj`UTNTG?Ev83zZs-|i!m%Y!XE|rDT9xDO05G_8&I89`942DUo}j1Gx;=t8Yb;)_Jm|JOv)%dT5<+%60!d$gE>!L@FisD=shC>|R3BFPx%_hjj$$wh2BQgB}p(RCwxN zT@2--eAp=6!|f~#ugI~JweIO&=VA3fYHAY>g)yPUvs3a3&CTE~5zq<4zz89{^w9Cv zyW1NuyvV{D$_tv2;|Zal4f+C=Do#|?(xS5gQ;Y^l=0Myj1L5=NPi*AF|j z2@~O4;J2>Sy43ViY)??mX_&AXUo3CQQTZ)jI0 zV@xi=k(AA>Y1mV6jyg$bxaNE&II<>xNEXzUJd#}Bjc69I=to^hhO*A2WZrJx*R&Al zisSEZ8qJc?19M1_eiZfb&4|d#6VkDn!@}QePw$-zXSbmmOB%%H_E7u&;xf9CW@9|e zGS@Vq@^x7X6BDxoU&l&I@Ls3A9yXg9X@>6?MA{2q=CQFC*b2AB1C!+~5H-hG_{gqY ztVj&vf$-3ld}i5Hf=bX4%ibm%Ca_~L-DO!lQ1KKnbFXm2JI5H(AOuSKnXl z$)DuA$~(ZTn)7a;ncgxQ{dZhXVF;Vzg=`{3u{jpL8l(`^1;_`|kg<($a3?Z{f zU{QyIS)A~+S#9Dg7{;bW^0!Sk3{tn`1n4sa`vG>>8<&w!x_CA6EcEBpK6`)NlDti0 za$W#b6~Nv-YIw_oAX0wfb@}2^s4cq*8(?yFg=+s|gQr8GS&f{Wk9wtddqY`(1AbyA!zWWjXtT%D17?C|2T*AQb4?CGt z3+id>Xuq7E(lp3!#bjF?AF%%sBdS4rMZi$d=fb@uc!jfiO$u-_)>|iSzJ?dF64eHZjWB zYeHS%@ZQx-k`a8le6u3T8H%ztV>4Eyf3ZEvA){mWTL!U82f@>*0=IN*mgEeBBA%G2NRYNp-`^n z&c$IsD$m%E?m(^ed32L41Hs$^BQw2v=a>C6WIgHdKq_1Kg9_v_<8vC#c`wex5=t-6 zqBDdzqPHC-Jw5G?qXE?YNV`Vwvt%UAD2c8r*7;xlf;ywm-(R;g3Ge=J7~W)pMg5}{ z5njDO6KNqz6Pbx36_|L|)kZ>5t~b#vk<7u}SWS*df;Wvb)W#jUQ8T}_2p(NWXn|M4 zi`D!+cRX!A>oy!Z#<6IXq4J^G?G);P=Qb@WeII}3lY}1F;*Fp`z;%>d*_NUm;5s^z zfXoH~@J0ZI19&5Jo-f5kW5=rKhZgvK2MS5-H!-58-k@|Ze#}`Jc``sqCd7epkssu$ z_5{9TOn)}~)mTk~_8ZF1Re5>U|EH)jnVh$(#piUdxy$6`fG^Y>a?lLa;iw?u8j<7o zga!H^4QkZTsv@xoHztn$N;(iv8RZ`X!1&5Uf8Rik@vSOMSo$B9k;kmE$t%f73)X#Z zDdAc0S9?8LE|o2T?M%R=cUA@o>hPUIQ@n-#sRu5HG%tpR-HyP7a`}Om`(~x@HO|ZM z&FoB9P@Z)VpUbYi$!$$}R28&>9g%}4Z(aTu!sLBPt4Jn0IXq5FU^Ws9T+xCvgb=%$ zPA7sZ@!rI**QWB!=(i>I1-HVaIh?I7R%omN;`hNIqE8yW09Ssk4rl1$P*;-~vx!1Q zcOZipUya-})-AN+b*qjP`Dc7bv5_&ds-!4zXzsrqI?|uRmg9_Y?U67WqhYnrhnfe^_>_;JbQVRC_(#cy~2#w4x7k?z2f#` zZk+lwZ}VM!`2Am-RS9t@%GYoM`gc$E8Cl;d{bd(ls|(LDWtUPCaJ00^)=2szylY^2 z{K6mbx}S5(U+rO%;pdWq=XkEGqdyR=wOXa)WbuoU3I~zUQqE_TS0$Su?=?L~FtO(( zR3JRunkLu6r)o69toLvfkS``yTI5yX`{S2eQf^_qM&vF6or*+>+Q!heuv@^z*p8>w zmQ?O^Jv_?ApR3MnCK7dl{$M;UVor*J_}!j;iaJOq5%d)iRqYdjrXx&m+2yI1L+w1b zE9M3L>vUCGN^PU(+em=^MDq#-_j1{2eH!NP~a z6Pv(tmHP8$(`^+`c{XHfqla@IFOA3Cx&kd%FM*MpHCbt{wo`6|mHe~!FXxq$o_~Q4 z?t~!04FF#a0RH>hE`~RPB|HJa#eM)w?F-7nGZ3$G8&qcEYB5Ah+Us#_)j59F!7^2J zbN%~O&f>b6X%ecclM#2$3neI(l!YBO2;xjsOu06S0!`%&u@Bb|~S0FQu9219DhjJ!1u0 zGXI0viGOW#GLB+mCo`2c%z4L|hsNkF3%_(IQQ`^;iRhCBG0>=M7M6>MdLDK!vr`h4 znvYbN>?V?HzD4y6pB0%E-{^XtrXk?~>?JXx1I7>cqXa3b7t_ThHS1Di%N{g-uTk=2 z?wXV3A`~pyV^Ngo?b)FS-49hQ3|Oyta74PW=#usTLbj)Cw<4rydJr5v>5zw=&he&( z)D=~GcK$<8mYtDsL@ZDh2jC>nP6oZaxj-;KTZ z?%8O4!OInYvjjQ#x=O>RlU#%IPc?pzQLB#l=-i$Z46s6WqgMznuOe( zNYh~WLO&;AG4r7MIC0Y^#GL0FVy5IHJ%IX=R~;Rs!OC!Uw@)%?|8VGATNq%vJzIi83mC;>oLhniZR@O;BgUdFMzxgD#e3R{HKvq{J#m02F^$;x(zbrg${iIY!) zM*3$X;FuX|ktg89b`*Rw`ih`N>FVc#0tIq-zu%~HptGm9JgOnSlen+)3RQ?F9(KS{ zv841>>0-LDzoi{0Ym{v}oP9Qn`xj=&N8*t%Nv&tWzOKF@`>X3`==3X`UL;DmD7K+> zJ^UUb8TLj?q<$!;DjHuMcWvoSyVS1#kFvMy%4^%YM1#8ocXxMpg1fuByF+jY!GlY1 zcM0we!QCZDaCb?#5BuCY^=_(KgZi-kKwoo?Ii!!?Bb(#G5<^lLe^cN6WSLdW``GaQ%#THx&5uEKd~qf zI4lVbtroIqfafw8k=#F*>GhBOQsZ{^zrpaiI1xuG>31t!3uc?59$suSYx$s+D31_( zHc_a4>7eG*$)-3YwDaJZ03sB8*EgF(@!Suk8zG15QF`9&1LQ zdMi-Qi3HTWcA6hp`@)WMaU&TEKbos;7pbLLm?^IQWQD%qK|SS}%uvbmntV|$3!j1M zDe^8W-Ru|T+pEr+y8$LIWALg1iNKE2mYt22-K)}>d~VJW5(pct*WNrH%N(OGY9;&c zK8A0Svi^s=`(_a+@(ePNva-VUM2Sj~rwEybzDO1I0A-l`-!^Q#oCJlZU8G4k3}`}f?Hu+4^#xNzfV%$9BqoK7 zpj9Ad%sDK;pJOz~n826D#G8BxYA@YoTol|snRLjDDX8umE$X!KW4U`_*zG34#-4~y zQM3F2EH%b+1H5K^`_L4$F9!TUpM^OCNK`-hl7y;L zTra2wj5%TA@cRRS;w*i+gj-$LlkSs|nf*)?QBlISnoZv%9%c7BC}@mFm%R+EUuHM& z3ksZX?4<)nH!q&jFI$o#Z3{$^X*VHSphDsV+1d|4gA(;$XL|*swy-Auav$37XQ#W~ zc$kSMBHi?CTYCG6dcBDKEnB(a?1WYqt=5)CxGnk6-xjTdo9!eC-v7Pu^s%(Ixr~{& z7A#4_3Oe3P8&mdp97Kb|qkz8RkmYqm(T9JED)%{jV~Bt8X4AFLmwvDF7^Q z#aWYRK}SFa02np|b6FpSY=FAL?Z0?W4fN)m$54D<02&89(ZxgqYp%X}7JnYn?Ac|A zglqR_?b^dtoW3#TaX*f}|9%kiE3~bcp6%Xq_DgVXK^jf>9K>?dYKadzOt_aAWd9|O zr1HkiMQ|x_1l?e(azZDDJxTIli=7Zm6mU2Q9Qi}4`ry_E&G_m^4upXiNMFbpE7DJz zCy~U(`rts(#Tf@Vo@~?nKOcaK5(UQRI@*$J7I^9^gf&W1y!1h5_J=x^)rd_O%TuVc zuOU`sle{Hy_2AOS=M%7?$+Q*Mf`?zh=x&esy&nMM`|X7p-?D_)`IoSfIpnG$S1R`i z5LH}bxyXU!y@4j-2_NN=`u()mUt?^L4k!4;u?>dorf&-l-S*+&fK5^$3s`+K15~(N66^wB1gr1nssK?eB1$2(qos`9G^?uax;QI7>yuXl=ykIQP%=% za_m<&TgDqoFc5~fj~`LFQ~1%uLJ&fvX{E~52(?TGJd56ddiul66i&CmR^h;pQkR{c zt*GKhGW|At3>Kn_tPieBr$4!WHQ(19;Be>yzyuArzwgX9-|Cd>$PT|;V1Sw*`1NLy zBrdUR9>HIK1c8b+(o!xf6z+V5S>FLl^j-_I-F!yyQ;Q59UgE~h5&vF<+%(z6ZKucG za7v%LF|V&IP2Ca^a^HqSZH~uE;liVx2#%bfVi8(?sn`JHYCzKMdXUJ#-4)><*a)E0 zHP^{hqDXb^sb6tAnA@v#(xmVQ1FIefpfCL8Z&9uGjanbWK8Cm8EE66D=Za(;0@_$UHODd(4761q_y&ECMw|omtqIqA&RKaGKD6lo+ zfw`Xh@&h6@E_;c{gKTiq)%!w;A29__bc^|g75oU!@jAr(`Zr8;b%f~`H0@+$rmo^# z=KEgkHqF#(-R5lWgO8Svdc7G^KI4^BW+1>FX{0*XKt+e!iB%x{p+3?&FvK{nDMO~5 z8vMT0R~!rMm4Mz1nzbe~ zDOUs1InIGh+>o;h8?6oI_>`e;92Et24X=~#3Iw+AGY`xd!9PlO_LI>xebiMjCbzQn zxwD}yq=J&h;sMLu552CWszQXuI%e40d;UdtAZ>VA$RQA7^rm~T_0T~~`m-AQ;gb8~ zUbH_|WY&Kqc6iE;MjL>T!Pc9C*LrBiLG|%AGBv`v#jF5Pv_SUwcHb4s1AQ0hL4rQH zb>i|j{~IZRG-*PMC50_kd#?y!*Pq_pBqn@FKOF#>#UP2U^~h=Nr-9WoXfhUduzx7v z@IAB3OO}a1qPBf_HJc`qfjxV9fM3|v@4LWE9BY!T>DxkNwia z5(Ise=8p>KGB`Zwm^KPJIrK3#1#T2~=3#153sK6i5^xPCl4=!8d~mb(zCB z=3n?ZTUg1}F0B5(V)A-kmgMySApHaQ-Ulfo+Z(hA(#ZcZc`38?m9S>-%hDzQEId=< z@?+8)Xp%+7pp`bqN7kN^Kr`CU-AK5;-AZI$CN5jj=ZQ3&1IS`ObA-v86;Y;E;L3cB zKzvn|Z8D>21ja?7ss2Gs{BL#BqlKo<#FB+IT_ts3}-<51JtFk|9 z`8ZCKHtv1JbOjfDzOR}{MuM5TAb=wm0QlaQ_p!fm>HunZ|10k+_jFK3D#U>*-stz& z;wM-lNi&@_jK*GMx{tf*HW4?dAWeWvDD`R(9i{Ep_O1C+Z$VJtwn5Bn|HL| zqq~ni8|7k*tHb}x262d$=pPKiDq)G2wt@B&-63c-*^NVH)Gw}(CnimUp(-H&2BkWC zZzeH6Eiq$bG4%6hJqCj1veGA{tlMGfRHh9QAtR;28etXg50nCx6=U z@9-QOOOXAQ$Kue%#ddjJrp(!k++seXMP6Zh$F&)Y5*N^pP6wew^sGg+FmeoG9!PL; z?>Wr%Wf=%X&>J@);*tD|Aaw4pN+b8&?(3_K5hmSEGS?6o$kXA=pQ>j~tDkKOjaDhj zv%~!)?tj@u_FrU5C$K{MHm=c{FwZ@|3a^yJBKf0$IPhX1_P%re)}9`3WcADA|H;j# z4^@K%G;FG_KG5}Wf>w`USz4yI07gPq8T9Y1q@cVXXjqF^ULD71_~{;8TliQ#$tnY< zFVszVaQgEZt=Q?)>B*-PryE0!iggmUvn%GQb|vgYTWwDvTtj}x7W^p7>1oa_dqNsy z3#N_Q&qLFGNMdbXtO+?NLon(@XibCO$Ufhj#-pf^qOTz#AUDz&05)?a1*W^%!xp&Tq-T9P@{z`5xPS5p)_}~lwJp_ zJ1<}h6%|rOQ7HKD@4&4?+nWVQGbLnZHxx!E?H*kJfvLGt2X+JE_0RqgOVdQFQnu5d z66Irf5?x1FtWWP}Wt;p&b1b1r@w_;TKM5ixkxh}JPIs@LkdHHJ^re-J*P-o_0B&5| zi9uf5aBZo{VZarP+&L4b9DjE`2cfpGwZP+45T|K4pyyQ?<0kFk|56Rcz8})JL;!4} zR$utH|0Ge35-gGOuFSNs$GGkR6OAPzX_7Y3lmHrrux6f29L?_b<#_d+{a$~2ube%b zy3Z%Qx$GAom|~`R`9QcbbR?P-E4thNQsQfjVO$Q#5)-q{AE0bnHO|Zs4DM(rj2pE;8`ms4&=*1c1T#Gvy+{4p3bsM_NwW29 zd|?!_yd#eN#(?e<9Yz=N?W_KAXtLMCixWn|yRR|l8#51p%n;zY`bTCcS4VM)_0TmJ z2AGf}rtug^eyKUNZdSxXGo-$a+m3!=xxVkj*i0- zY(}oghaM#LWo;{ofcS>>e%dn3gVOfj(aj|&At);2~t;Pn| zWOhGf(Hy&@s2>EhXNE{qx3Ivt08Z8}ZbRl1T`itwiSc6`5Lft2ktI%b)CMFp89Hg_ z%@P*rM77R#(w`Vo2AX_T;$p4JAydwYrJ5^_M2cSocvVK>T|3AaOh6q0^xpRXp6N~v zhZL@p$w<%L$GyPBd5v}#doGzIP4zDqWi$7$hRDxohcyoXc;8PnWnp<^olHfp?Ij(^ zI9I|sFa#-9VikvE{}SxqgbgFP74B%UNw6$IE#l#J6qK!Aii4F zLr7^($6#ExnXyUGX8pM_?}x~a0(lEq^rOuXoAFQA2}p=t7pX#@f*zy6xdWfkb}(H|@5NIsRntR}}*M!VnIorl;yOQ$ot1>9XsI(@^c zp#5TnYS?~d!MMVYI+m8P(}b>w$W;P@H~^zI!jlhZ1~SMz-Qk*;*0?pkk_AMDR>trR zVF4oowCxg%l!K?InN}o>mZ++si&S)1*GN~8ug`he;zO?O>?I{ z9z=Ht1a{C4y{nof%6<##&!xAn@E@I1KFX#)##utr->SO{0MMQI+s79NF6ZIuuPn~czz-O*)i9mEuOUl{@6D1{$ z+P>x}w*N|$k;XqbdTD0uEH6wnEzUUl`E#cmWkae>*}N@dkdJi#;+Cto3AS+HH7M#9 z)5k(+*A2ORwJd97JL6eKQ=jgK&rWG+Kay zij8b`A*MwJxCcV0Ln0P_HWcF>vEwS7plsYTNk0L-V;+Uz=XnU&)7+|OvMc;by9Nq} z(X^#9<;Nz$1-a_|{l@)_k&-Uea02ORo-7fFnI&!&h-8YT>oHVtrB4O~Q4E)11I)g~ z4gAEcsi|cQpoWJdeVqwX2=b^0$njO91&U5yM;G5Tt5A;&4xK+R1UR70N%}d7@h;^V zB=iiU4%$GS7$ij}wbDi0j^BI57ddNC=_c>!ts4G)Wh|EZ*dMzG!0=_Q=zWPH;~Nqi zw188 zVGmLVr<$}^Qc(M}cxdKm&bj*ySnID8ym=-M_n#?Xzy`d|u)E$L!AIaY$&T`}}N zhLcDSR_wd8uAZH7G7&lfGl^C#)XoS{x2mxUdB{8~!C#pnnn7RcgX5v344cver>zI1 zEqwUpgy5OL&D8{GxakrZVUK>V?Z0}N$8HWXZUH!6y!-AlGra+%k3yGi4*_i3C2EBy zW2$Q6Ne$id4}j#aygdqvP+m}8Sjp3)0HJwkG34U-_)RUCP^TRG&DS+SDf+&I^b)N_ z_CWdX1+@-w?k(vk+*pN2MNoX;mE}zt2lTEp%9vsVfCL9BEU@?tkq06*a$q+gDZ*5) z4P=WaqQYTy^w$g~E)$JoISV}J3Z_6~Z1s1`pFxF0xlW>$+^KF=@mkztXHYQFA4O9T zQF(T3>#9L9B;l(~v7v^*Q=l2>2mNa5(CyerwLM0nNku4N5 zTy#K1n4ojI(x)J4+@A`myCZ&$9vxct{lbbCL#xph^uP=%J+ACn3E zUh_X`l@#uWg@2%qy-qcJkq+ul%f>Pg>J|{^R~HCSgw451;B6?`;4+k$7Ys0PC6xut z?&EF2FenFo3LFU;z^`C?fkfNweRrhko=OYB(@7I0S3t{v13koJXd0bvqv`Kpzh$%7 z2OYCP`KkbwZLl+@ZV{U>+3vU2&tymRtpa~((P>As_@mARHjR)x-LxZgIKLCV7nmOL zi^T`+@bC%l-?0+c5Jh(bfFm{l$M-Q0-k5K_T=Rbt$Csh^Li`L=3#*L=1}?X?b)(Vz zCdmO&;sOEpBf&O6dYOCw<2d!XB^)`wW1yC~&5vf$dFQ~L@vO|j?47SxU#;)ixwCz) zj;^?wc-1N&MwM^H;zVF4=dv4lpTnKDKe9)v$67s9i!1~$+$h^M2ddY(OW1XVFu+qN z0O@SYq(YyC=8QnAK%egvgBjmEZR7>)n~#Jqc85meRcMa|Xa{wDi-X}{h4Krg_)fmG zOWNoYtJiQE=mK>~RG?_?(-1EhRSZ6nJt&wDEivx=lOg@H%HEbpZR+>{YBK2)8lj+1d?{#yJ=m~KA{o|e>rm_>CtFp%b#$~wDV6rm z4E3}UAm@ks=t-(O*RPb0dbbe8DXK0&f11Cp%lqbEvPatvo2QgGW|)Y)U&ewJUq5m9 z-4^}<+2&!k2#NCiT$4fulM@Njf-XuMsfoo=<1e};V+eU)T-`_TFvKq zECse%bY8;uyp}+#^SuQFtNb(W8T!!UQ5tdX{>dc$@$;J7UPsl^ZF9d2rK+(Mvohd8 zQx5qmb4dj-dRhT(J`IH@6&0xS){p!!j$8{XcL){$~m2(FR8p+1>G-I=cKD{4FpwawINFF+JfuMzJFu;((;Ua_QhL}M z)r|r-+qcsl!j3TyCTXq7LWe1PX88_xFVH%U$4==p$h_|Bkesa8<~ap`mhs&onT6%e zyleC&O${1fDwH1*A)=^32v!^*Je`1``1+$l#HM(U+{OCoB!QBW)C==>nm;b(e%iR; z7BwpsrH5eQqeAdF#g@vGQ{b(h!d_N$km!u#)!6#+IW*#*=RHL zx(CVuhnjN)fb8qLA!BBEqX%m8zeP1D?=@IiN|42~WC5xgfbj-a_yW^{BNF%aNkSQ@ zBuw~^$HecL`Dd%}-+v<{ccUK+%Bsmse)r7R>ajW;vrH=gp{`zd*u`+u#$Lx;Q4*+* zL04{s;=|7(O=BSC3Dp6rS6qW)hF)X#zp8Bl_F~ffa)~g$Ys!qZ{qS(9Mg0iKXqdDiv zQ=6foVRd)XzqU!<$Q1t&V0>7AR2f+Ry(hO&B9jkZ^@w-T)ERP@u(4kc-i7c6o>~ra zharL%z$&0_+EM~q^NFcUVFEq{@&c9v5^Yv=Bj$8jt0qFLpyibSLjdaZGAIl4V`DIZ z!bSFEKSZ`53}vrd*~Iylr7zkSqIHZ7+7w*M3TtT60BwvV<1Z-`&yn@PkZ{r$uFQdJ z9({1G(`EGIsNblc9M0vF@9*^_LiN^92X}2a4^YV#vLp3IdzZY|fB`edZ{lG)3%}Uw| zNeU<{Y3@ZN&XT$7bOUuKLhsL|I8H^oJiTq0-JM5>K=K9VIfsVJ!=3Rg995{~fJX>% z%z(jakI(CY90NMDfHVP@SLE{xP?VzrQ4(KDhDl$s60z}T>ugWGfJNH7_1QJ{yzGsl zZBAW%l0xm3+!8ynazYpgK@8Q1hkdjcKH!7}dA{^Ss)^1P zFv`HcfpqsUy1w)3yaxtNJz)TT%;CGwJLB8u{U7BA0JouF^V=EIQ0xaPB;NX@n+YxB zbU1Yxwn0}afN91&l;EZiX@@Cq?N)XCowa7EMVOEW>22?WI`!jL-c%}8%};E;?GWDt z)~`OF2~NV{hUH&(7nGSHqvBo2pMN z0@hUm>Hbt=94zf!%L8;6E8-u?)yq#6BVzl`L z9Zu_`2CPQK4bghz<2M=${hU8pAAEQ;A`AS@C`eYJb7>1DD%JVTjuryK;Wf{Z?XyAR zi|Mw~`)|Y>^HUpzf4Z#zal;6*JY_9(Hrsf@Mu&}hgye7iI&JxslE`c<*Xt6?U0ejA zy`OKqK1&4ox!`I?A!Owz31yEC1Eg_?*9LQ(>1AWxrhE#l;w$TFyJxPwrca9r>3^`z zUf4QxoYU!Jl?kULS{<)4u?rIOu<2qeUS5RBu%Iab_Sb`;ImraTI>O9=-ATr$ zMZPiecsipEdP2I|9R{xUCi~9h86~*5lMY>g%EE3!*JqcDtTLO|rwyh2e2|1d5w$gN z$&ZIs!Ti-isGMYv-qV+&`{8tNJ<#)LY7saU+;?_tCh>Y8nw!P6M6*{P$l8hBs0WnSa$YQd;Cy!WsuPjL_6aiOaTv12b3)9c*|}nSjM+9rZUY~C#D3TvLG?J9bArLHmxi3VK(Bpf zTI?DA%a65N?XB)++11WH%GBd9g7hlBcaVPAc%cHcy&E%@w<>9yXsMTHGvq~+XAwiB zSJ{$1U*sR7ay(>4z=EbVvU&HaRVW%#F^m=7^T<Lld! z0DHpB1NC3B{khn}-BvOu`;wZOtqMbI#RO;8?$YYIJjZ!sYo)CW6d{8Mt5_q@AG-*A zqJAJ6c>JQ2Jza){e(_+1QIeU;Cr)ctC2FkC6Pk3M`{5n_*hY4N-{Jacw5?zic>6Bx2;?BtSnypp5EX+N$5v0s%H)+X|4g zSQ@Ve^2dL>$)+HlGWe3LK%U@r6U&SoQg>gysyB#oN$be~$o@YB>9?JY{u88k0YQ3` z1)A(i@uNW7RjTBbCKTrlI8A^OCp_GX(MG6H3*SO5cLrvflecPQ!jAwX*|YQro{V7L zS#5C%QjK3fIFIU@AWMTC9zjytH8AP=f_;-D>2;GH`?pn$P>P#iO_v616oOoim5VR$ z9k54GP?r!t>9Cs_q6ncM4V@Ae%|`V}B!m02!JB2n!Pp6YaIWeD4|fKg?;w!!lI>zD ztA_l8S+$L26?2uFnM(&nb8fggqSU2X#y$w{s5Va_2_ax2^IbE%-0ag(Z&Uxd-cSB; zg;|I+qPw58Vbkt~xUeTms+D|9yjKWI1R1R%K^fJ(%uJu$JxF+!E4m+TZ>tZ#<1^X{ zy9H}~^}B310k|jLs6b}U`yRIGb^JStiNhMQcroI5zg0ZrTXrWpfVvN$%k^pej=CQ3 zAHc|q3PZA9Jm0+iOR?0;3n&vrBq!X z#N2wjdIGb$Kf2Zm9d3!U=-HOds-?Tm8ecgb7U5C5o845T`f3)xcm&sl3f}&y5)1n% zPmBK)`5}6Hn<$cr@N92_36UFP!QO2{8Jri=ONNG+1ICZCGiE)A&T;i%oZGC%awv@_ ztfKKeo25k^2zr*;DRivW0vG~Qf0*%&F+^N}y!(&F^D9vy|W{wkCvMmHb_;4GFt;*Aw-vUML%y)$1wc3s1Nub-yDAE~# z_B#vgH%5^v|FbXWfKeP*tu&o*T;F5s6s~$B!5Fc z(8?aB{05+UA;WL(hBXUNy}12lc_G`v$)EN2M^r-f4bPgR?I88)`F%cxUi2E+2nhF# zOeXtMa?92vT<=ocjtsGCZzL3Lx9wGVw&(O|Ur8U`7%*>?fj}6hJb9+!=m+u(Ci+^* z4HQAxUOeE;1>HN0^^0Xi>=vT?K(a(kZLnT|>7SjvDgvjN#>!4Uc_4w=0>C~FtZe?d zXc3=OBuDxT*6F$m$s%fw-n(hXiZtF+PA%)wF~H{uSxu|A{BR<)(Ko&0wX&tH0IjVw z0NOS{?(x1NhmqqAd~ISCtN;gjVEvNP_HIg%rCF?$NyGr50(-A#O=wBiN7v8;gf6~YmYuAJa(l%wHRmThD!U%*jz$O)T!T=8bdjAcs9It|5myna z%fxr{0M|M#=HhFI_*j2{e4t~HhK&>D)TDtRI47DA;aRgS6)Xd&0;rrV0+4SITu2-P z*(VB^i1Pa3)eO?pA5?yoRlg5t8Eoug=NwEX;ukMqZ5VU^p1$AmV}1>xPnI_f3Z z3Af^uE)OG7=ySrK@BRd%%#P+m+D7*P_Zz@cSOqC+!KE3m7V~f?_cYc$N%aFga{;e2 z1V}&%Cp*(UD;|dS^A52}knbnyn1lGMH6ZiQG~u>ev-!^W`!-WR|C;$_%h?w+m2^`$ zxuAd4qCb!q8$z3oS z;+M!9bUP(Lc0)$ZHgHF153NGu|HH%a5Kvk0Kk1$y?=1PFAqsE&b-2B{Ez-TQ$3hE~ zz2sc)k_E^TCgNKtU` zu;kDaIhNlr-=zBw-4nuA#vJM)?EgmhbQ9o_NO}mdhSMJS)(i%qdj|YN_f!MWJxMJO zpq5D&h}Gsk57=cHXyW5_fOmhBdc7s!U7(Zj1c1~1-EcC#RlMuS4O?~#psbFor4tPX z$rl#88X@f$90shS8K&x&u_`wy*Eoc`8+Bq2cAV{aVh_7y#97w?}pK`@8sS*j3*Vs%pX$?Ho$FPRR)JCH7 z#>=000Pz(iwX3~4IrFa2gz0(K2vUDty(PLgguJ8<-R}mJnf;AvlnXJy$I<_d;9iD1`xQc6U0{9o=J##Vuy zO&tqAQw4htA;R6PYM%bskl1mw6dJ60tpMMVE3P_Km~6UFS3-3Cu8=$y$#4rMjYOHmPJbQ-I`*(hpOWP?|6=>#LhyjgIHu&|m)N4q7Rw z!p|(Ed_wtU-@p!P_TxDbF5+0IE)Ah;L{m6~d(ZV2NvCTx;B-|Jm{SP#`-y%ua{BH*% zDxYf1(s{nfCOW`*{qMf(i?&FcDK;*M1L>HE8WT8wb2Y+M$RxR46iK$Nk1v+=9?`M- z*l!nP{ZXV;Mx>Ka6l^}*1CTOe6`G*W82yPT7Tc2Lj`QNkqQg4hyX{zgEAl&I>Ky z0)Y3TVfMbm_!gzkCVKd#>+p|kEucZudt5ItbJDy=r>B1=A2J}18JG97SQMgU)BKRz9N?LkDo z&5v^U#oz}C@(PM|`ZQhs4|FQ#__JiGz0>Ttv*8b&zTxi0KyW$=Oi$wUv~U>I6q1ce zAC~8iZxw2OHtzsv^moEnf*`m%A|ER(w+>(FUmi>a`n*W8N4@*}vAjv1jh1=AF!=xP z+<6W+8vAfdd5JxXdUUrBzwY5yS&C1wG{DjNqm~V31 zxP4Xi(ISoym177> zYT`eG_B+Ov6=r3{tM9u2_J+2ut^jn8L2~-2T?&UoWW^54vnpxz^i}L`Ghb&lNu>RC zQ~!Yy15X#p;m}4`%u1Y&Xf&@6l>1mveC1#IYS&oytKlcVaL5PR|6`JIk>uLe3OLBu zfbV^E5;Myi9d(&V!I$pLivVe*JgJt7{a}rMiQC49!3AWd?rMc2d8scg^B=KInJ=%` z_beifv`wYf?a8ox3iJntM&|RT+dQQB`n8P8NabpWZ~|p{R(Za=$~4p&_H;e;eY~OM z9^XB_BW8;NhX;+DVu~dJ!`l{Hg;wSmHZAld>F32YT}g+>6PAv`CI=~+U>nNWql z!(K!-?!vRN2%T@`ldrA>X>MN|Pw=@CI$T$gajKXKkaI41uzY;&DV^Y;Q~#0`-M#-z zzO|s~6Z_v=9$r(e!W!Z{JMpPWSWe(bP~9)K6H&f*)ha1dROeI8QQw$5fjn`b_PY zg&*Mh&u`U9BEZEWgR9}c(^~s9v{pvmu+vmgu_nUsU~H%nn3R7tp7d!g-YVczWi2z5 z{_V`S3Cp(uSB>a@uK!zuB=L)vtt9X*V+*q=BYJ<0S1qi!m6Cupy1Qa+v0J3C4mt-Y z6JM-_0&;Cv4{H9^$B+@cNMt*#PcW=em6eECA#%44)33&860w92 zR{(rV-;Xcn8#8#9=zkQ#MArYHQUx0_D>is(r!w5YJo;^rKr^}={o*LE{pOnqa9IpK z?i$?GUZs|RI<-ARZ5JpH_(r-^avaZpThl?}_TAxx_Kca%0reObFuj z2!!LAj@HeB`}3DkC(8V`z`G30YC5MJI|u{p5-GNKI|AW5)krS_Y=_&YU+HV&s6@&w z0YH_1H>fPEZ?vgg0JRaIju*L2H!QIhun1@?mzv?;{*Y+YKT2^U48}oQL)2CIl|JgmYAF=%#u8?&YgyGKxw3)d9-QzEh4mXge zl#j7=1BVjFJYV6mr7SY!bAhm~!dJlUv&#_bEKuk$i9sAfQtWW>X!bSMK|B;xekqBS z!97tRO6ACjcH9rCL{?pBYhOdJ`!cueGSvP8%1f6^m=PPPjkk5ZkEWB5XBT*E`>33{ zZ5>~SZ{ii9K|iMQt(Iz1^}3_ELunUAgeqTGAby0WAIf?n|D1 z2=l}1#}u;q&}1i#GwA*K^jtdJ3Vs0zh4YV6j8RMlINi=OKM^@?TU1^gUo>-89|3-r=LM=; zK@6v*i68Oc>bwzGp3L!VHu1!arYDQFd+ zUZ*Qw8527YfE#8F_}-U8zm@;V$jQh7d=T4CD=~UZuxYF~-LvAwVfzDfDEp~3mITQX zb(mXbQwyF~ZMuS{TccChJtVvO=d?FqC6DWtvMJ%kMl)r3V+BX0)?&>@JI=wcb4_yB zV)s4nOV%!S{!m5pa_MP2Cal!)2)?Q(PPUyzXD3FhAS;X?eL`p_dNA1LzY=7}jHarSd{>ip#= zX&O?G1frEBzR_dT4BjsiU$spADLF%tP#4Nuf2jen%?)c55&1`oiRljsi*Qp#U3F>B z1Fs_fWv;b`Mfk%F3LpZ2sMS zV2mr9t$U$yj`Lw)p%opVC0eh`gi3EGYNf6r#p_=v41N%$ixgc z9elC>8t**rA2RoE&(@a!oyN>{yjv#;RlMZz~ zuM(1bdP&!>*|j8~ZeU7logZ&nbk0L%?SWE7cwsVvu4bIpn{Kf0yrj>afSA?X<1)Ga2horm)sU0ii9=;R2V3N>J<~*^zb*0 z)7`c6h~$1}ay{=dE;va4)j5$7d5&qe9(I@WaN$WB9iXKv{hDE}R3CxAhVe{;t$J~D zEYKvW>#m&?3SzVAvv`y?Pvvde%C%}GS>I64SN-SE0iAFD>bryF&*kIK1s`<~Z}51- z90d2+t#VCj7J{x?^5MuM8n(yy?{>n&Z|f#^gJ*@{OfvM`Wwa95ik*hse?aB?}ja!#>A zEDK6RF_NB(e2vI7#(obJEb^ zzDl15%yIq;XF94R^$Z#*_@^}8eTW^;D!6ja2<%0UVb@@*STUc&*-$o)awDH)=YUq& zdn-}s%d93*hT&!y8;TG1wt9YJS{sKjQ<$SwOme)SSyeh*oc%~fEad8$0#I`$5NRe$ ztfy#e^nz*OSF8|}fv_p$pKLAV^Kg;jq87nK%<)5se5uJtNj}K`H4kU+oW+2o?Jf2J zMM{JNwQ6n4g0wrE;O6ZF2fJwWAJ6q#{yTyJu8%4N>g+%pvR-;ccR5xlxAK{vj#hgp ztsC@12I9DcylD%HVqv4ymt$(B2JpJ;qcO_Fk)Hy|l#xBeW6YFzl%AG>#o30Yii+w>+y9SQjbzVnyyl?#)k5j zZ-h=zl&aRH>!Sl}O`5D`Lxj0UGVIf9@EaGePc65K>R_MG)RQRL3+`r>Ad(dOv3%d&G-Av3kjcZ~BUlQQp(?{xldyCvEl$cMF zk-hpn<}7{gq*B~<$Wrsx4NDNF^OQH zwN9TbNm>h+jer^mp!(_<3EwOb=G0dRqaN$hoN)+qUP=khBAQmX;$Xmx(9>WKthZ#j zF#nmDqM=H)*Qfg92X2YK*+sTlzcJ7d1$=i^wcWiA>GNT`vWw?;joI9(fC{03Pm7k% z{e2Nx!wsmhI?FnV88{$93Oo0Z7pxu=VK+fCXj6tqE}G;iHSh6rJ+(*~qp+1kj{(KKUz`!-uUbA9VBK^SpI- z-7?MxQ`n%@7@?j}nKtx80aUR7?2u|w325yhl@n+dhi~JRKOs|*u0P@+_q#`|a{g2r zAhi2rP`*WhN(VfsGH9G=z{cL#I}GI&j-EdPvaDf^zxYJ|c>SAeeg$#+521_Khw$IZ z3psMP$s@n<*`7_*2)}NBsvrpO(rl%qa9|WV9C!TwKoV}FGDeJDyZ`WN0WZ%~GU%oE z`Fj*I$X&+ZD7)p~IdlFeI8e4Yg&8cE zXF8SJ>{;mKI!7}3C<8%j4m03(V1vWZYA_b1l|`7WjsoUs`(re59U6nXZOe3B+H-ER41ZNGCZ#65LYx6BDd8GZh~s=V@=9!6fOF79{V z@3$uGCV+wPKU&_XM$)jo67mt5vpPnB4i`}3AB-w1gcz?-bWe0h}j$JG{9&2ESnb|6JCY`STcRKJkPQjy4%qbY>JmS z2L?S1$G>8Ksd$T12)Bd?F7G!>V6#I0T9*eQ^3#ZpX25gX^SHN3Vx2dK;N;8~2M(3gps5k^Z z=}%?p7s1Nnh%|W(xRkQ#e0Z=6Vb4NY+nm7m44Ks^#RYTPbM}>{`d-36G;pV2VKk^z zSsN~>QP_fUR9|tB{}Bc~0-wepuIAddfv5FLaDE#M==Z6K*gRlcdi*;Yf!yJml5o+9 zNsSX^rR-_Ckq>JAk5a^%Jgm?A!T%p+-`L(~-!&VX z4I8I%8r!yQ+g4*+jcub%(x7o;n~iO=@&4z!k7w`a>VA>jFU~J8=lW^ZteO2x8wKFq zfJ-oTgMe%IBtKoqFC9cGX6o019XmBWWp@&+v9ed1ltZ>OMLmmk$P%qGK1Do|S-;v0 zK8zmt?>ep?qx^d>y$({-00AJ`@NP7j7~hx|x0d;*FA5mys1HZ|9UeMBnEXL*8jxH~ zfEQ6^a0GSKO}zmaV=5$8K%8|qF*OyD_*2{V{S5b@6Rk!_u}*tJ7lM5$kF21wRb*A- zLD_+8OSQZ`@>nVN7HyGS(Oj1(147kO`D8KD+QKSd142t9rUxtg)7?m!`|=L{>_NMi_!^-bOcCbMGS09`!#BBLSj>-)X^>*NAbaR~ zE6jYEZvB&Lzg%FsGA0eFN(^I06yCy)b|Y1Api6bT#(jv#q~ z4}b}UCL+n)4Lb|Cx)h$X@u1T&2WA=mCj6@~0$X1ri89{}F(cg@-1Pq%x}&~RuVbo- zUrXSCZxxhX6SJf;7}6UOKZTY|!_%`EJCl4t{O zUC~_fE=O8WJ2!3=j|hN#tWaJm*eq%tfC9 zaCJGJSud;$MnhIpR15iV0^%!6z~O_i$sqMbNxln%n89jH3}+p4+$YKA=Icgxwq1J1 z=g6;TjVkq|zY1d`!PzRo;OHUeO+IW5=XJ7lnEJDd<&P|p(LE(|2SQ;K3w;l3jnk{E zSh7wg!3SP;%$;`Klg`X`RL=--?BI#{i@MI5l1qQx3jQ1Q-W$kz{bK9+LIz>#R_>P5?ET-&(V4kTQlu2~zn?v*BuF@jz3@ zl;qkEFOOx;I@qJ8-zYpqd(C$9_?C5-(-5RgQ%tu70|d4A{4$_T!6n%+ij++vSReg} zOnA=i^u6%>F+@o!Z9yyp(m{;KdJ-Gg9nk6ogG}RX*u@zwF-E~S&{|1@>6T;W_zR=k3@AH%xn&kE+(~=bO z9*4ONo_>BLRP;p*MZn6B9`FSgr9o`3niEk+^fhUTA zdQ?XkgYX5AnSQP8ThX!dsH=v0a2USt@q&-Ptifk-wIA|K36N=oymuF6P+5^ME z^$KXczimVlH8{0ib*2A}jp!R~ga265|Gz8hfx&mS&@-3X+!uFv&uZIK&f-r51Y1NY$F4Rv3fAp}$CN{(LBj(SpQmY5h?RdkKxeQAH~Y zYZT+vN0j~&AS~^bM~z3&Ivhv3ifL6piY-e~9=H7Ir_L|%p^D;{fXdTtAYWMWeV~=N zR&PQR^fcW6c+?k7Hw~xVKeTy#t9VLz@w@*6VC4rAwbI)Dl0Isof;+vkyLIm_O(v!{ zN>e%ZpTvsbv61g*futn<9|rBm&69CmcIt9^huF~9c@S$1|tXfZaR%|nG6V#{|Mw=*1g%N^Wz6Iz-AWKK6Vm zBSrXZ5co+9!-9z~(K~JmNQeA@iSct#awxT6pPx%4LTG*{D68r7fzY0!pv=9J?!2dG zn;^naPgRY_jT(|As4932X4XVS)}3c{9L&%X=-ich86OUP#ibwhs77SwpN}SDCc!z+ z@F!K5SzH!pRp>T8j(Hz2b$7Fqd#@~T$Wr|Ophoc!ln{S3zh*k*7eHMXwU77Grm$SS zr|n{~ke*uLqru&{DJpn2JuUisxMB>~*ZQ>+@m~nancra5m1X~FtF~N*mpT9|L)#;A zPnXUBMx4QB8N$^iS!7~Ay|l`)sx&1pXX?9PR-SVY=NBTfp+xbZEYhT$GnjL-xnFwD z%sh02XPPdKMcbw29X{QSGaKxdTuaeSF+s)^tZClGHG`1gZ?`Gb<)E4yxkabkb#_H< zJD<@o=IM2~0US=i9nc8YQTp69yIvB1R17za-h!ptfqbqwSY@T&>Js5bDIBa+vK_CH z?qOUW@P2rJcsGs0 z_J*W9QAyJ#pAPjYT6MjQmmuK-6r#BTV2+w9$6=kcT0#n>h`((9VIC8E5{NPJ!)jmS z4SQR?z4l{q$q=gddZgV(8>pnLse-o>jksceE^$W9Cbn^QK|$bo15p)?Ivp!fA5nsh zbH3>*iSSrL;g?Kc?@G6%soUf!JZ@9F95}ktvU@o6`4qegGJR_}`0d$+AFfbX2qawz z_F6v>RhClLHfK%w8T~$`nt~7cx|(NlpbS!Bd*voZV%g4dwz+xm3lFR@lP-zg$9r%MorQX84_YGSZMEFzMwx55jDCca_gya`rh(l0w`xTIglANFYdRxXD7zPa-r z9lXqluFly`{B;4k^!1i}O|8`ieD7<>zL{a4Eq7O~_aXRbY8 zprY#+nrH6H!<>9MNvd}QG-GvjR>Yt=ryTuY$rF_sM75_YH@?fX#fkJ-jtSAjvA^K>&zS1Ew!YJpOiUDgA49@#&!75JJSqjl)9+5!_ zh{d$Am4}F+#K?cXHUIc%J+{z;^YRxVFompJI|$eS{|oPG`ZvTnxPW*%K>I&R@+ zUVJ7I)x5dFcdb{SHH*L+pa9??e^mf1?@HZMYredw*VEgbJMNu9W<<@__G|Ml*rgBC z(l6M-Q1|F{DQJ&pdFeTlF}31Xl(w^EYM{7w9U-|WI)T=uKj+LMe6N9XN!vkYM(0y~ zB5VbcLUpdA#ww%}hJ))yHfgK&xll2ESs&;y3v&jh1%KhY*CGZMs|q=2wlPBG_P~;h zXbiw&Xc_!M8Kg~ZoLbs2T`u2?bIFRCr-M+Z_2u)#U-WTyNW8TMpbkR;d*A!$V z;fI;7T-bKTa$txC~mX{~D?|GM9O-St<6^w((&Tg27&~#0h zK`u$Kilwr@7WCL)=I+2U> zMi?PnB)9J~DknK!P~7JPHu8@_8?eM-U-QL;7;B)z&|#Sdh7@M z*Jhp^t>AYj%Uc$HlGE0~Y*GW=4GN)a}l*U@wJs|!G%<4i|oQ!&))R0B*yo4?1nY7b4QBtUk+#_gcUDY)`jvoNI0Y!Hg_A4gBd?>WFr!Iu4+XfOe4VnCE z4|-JArrSSKu&DY8jj|{bN_=6y^fiER$;F-vRD$7w)FW{0?oZ_cJNOA7r?o!psr9!J zc4c7VvDlt|kL`5uen#g#p&=qe!vSAPvIm69u~|ficNJaE=oZO}OxgcVueY!(1;U%} z;NWi9>ClA3jqw=$oopoUAH-aY_(Wy^vKf8DBX1%13->1zKJr=1QO>oSA090dz2M6y zNgGO1E0sv42{byBS*y7KZm6No=#6fBE$B+!;FlQd*tk5(vV0!-ScYEMEHJ@#?9A@J zlptG3JB2fVO+?|{3xk2_jVJHxcv=?$st`benP;Wk{n21qw5W+N;|sQCw>n?KMVOoS`vW3P&E6DUf4a=+Xdd1-A%65rtaMvz?d zA;D~UbZ?xR&i^m}Ru+(dyYS07!2)1m z#%E4fsccuKhdI^VOv}%GR1-n%^J4o_k4~c>j>nthym5r~dleD`Ki_%9FlGY!ypk|W zo49XsDV7y;KKch@*OUt(X)6(FM-k%s?}Vss=oo;O)r+?ds#ty@>s#N0`mu(T4j60n zlrI*%T=A*`t1oOAPePHxPbd)x1HUkQoHjP$&@9k8aphFRXf^CV@>Rb}Xjb$Gwwr0n zFt+Yb>j(az4ec6WPhE0Us>rDT^sD0JfcRTLN7jT>WI|Hg^rbAWzU*a2`RT7nfxY6) z^gaNBuMRoyyLT`!zJVa%@B%cnUc+yNJk60Sn{7GBo&$8{79+tMU@VLC{+t#q#=?@Y zvy<%xVg>9jj&m;LHw>h~g3meCw~K7rWIeMjNy{IxASB^vak_O1O0{hd6|r|tDvtP# z_p&(w;+E$u2(^j0*-M>sC4ms2IfwYoJwfwYhV9q``f2ai?BJ9xs>u%Wvkg#k&UzuB)Ia;C58%WeU2arFvPd9W=d!-q^HklUbB`luFd1h?y$l& zGqP#_P4D?4&4xh$FdBL{PE2npS*-!<6F~314m~J+{gfYy)U=mJEI;%43J7YLpvYI- zPdZOzsnxI|N$8;S#`7ul%c?jCelI+XZZ4(O*Mt(~DGWhQ(oNLW($SRff6_S`>I-Na z8SbadjmFojR=64 zM9;9PYuwAQWdB&E!s^3X^l&MO-VX1o*Sn_2t@g*-i(f;;4yB5UjEx(}jRo_#T?9Vk z3aAg|VUb!_tFUc@Tk9MHqBc4o*Ylw;7lEG#ED{78ouLC^(&}s0oB+<&@NQBV@s|K3 z-J-0m#YMhF@Eb=t)3MQRDmNQ=y1y6n+QRDG9H1O&-w*R!vnATm+W)u`W)~`2L4!kY zlCx|TMguJN{;|)_tJk`UCueE%Fc!!?ZiBlVq2UzxwTPP8i80O~X3t-KFW)3f`&jq5 z9c+GoQRq+uTQVdO8K3EWmb$asaJ!ieBVoe|T>s?$D24#^0RB`X zHxGgvgpti|-e?3dns8Dg2o*fqhVx+<%~tTG|gBjT0Qmi1^~Cf zcjLzJ7R6^A`+t)eOgBg;eBpX)&5dVP^kwBfs5+Y~mP!LdUoY>{!AGrQ_w8QlT2Z$( zRl8mx=yrFWkpC>BzJJow-ZdXt*HaxkEL3Df`1X-opHpb{%tn3NVyASAk33l4N<1Do z`JTT8IFs$5XV55I=IcEW0979s@c9`C>i5R>HLtkJ5MM75TeF~iY?pw>%8y!8YU6Ws>4O{Q z^^MWgnj1##@cWXFjh+fJbQH{9e_c(15WCJ^-5uXQZ~K-%n>B!}11xZ^O;xLeh{_K* zaf*_m8p??pr43v;0JBl$UrN1fBJ$5V@mdc3<}M~KrpyYRx%kq66lRKYBflmq4&&&6 zN7AUlmQ?==c@qs>Iju39Rjj2<|jkq{!@z-(Nqt|g;;*l)s&lQ5GCHk10 zTjahLZBXPu-0E!-!oA~~|CzRxza@J@F*$KB^B*#4RV--qWi*_S@`6)@qlsE3by=}U* zeIAgZ#Sy@zT9Zt{=PXWuOt*p6fBwjlp~ zATk}bL_7nQOETa$zmGh7%PC9yKg$JR->JC`B7vJOF_QZqYhFCLk80s)hGlh?{-2(8 zKqca5L$2LjOj?M*a31*3c=#(@KD^Fhp=M^d&7q^UDwJ|lVBI0lXv(Ujw7ob;Zi{%F ziz6zW@N$7~b$lo*+fHOK5#~}TuDob!Xb!iot&}Q3Mi`wFNp8ML1vJGsWOFiLaYK-7z5l)^nT)BZqxGtJ6QKwJ}g@V#2R4?e6l3?xCRt+ zfvz36X#ET;<=eaN1F_2*$(v+Y8yRgJ>C@y89I-9Ivnv&v%uXH`qlpS`q|obxqPY{u z6PwwP{demC0c5NHRbzDZ?){vR`Hgq7cC7a6ZWNe(PEj9D=|^cGwven)wvr23g3|)6 z@+-PZoDbRcbb)X%1`Kn|o3UAAbbanhJ1844E$kW4RHiv`Ox@6Tbux?TD3+Mi>b#tS z7w9-|zJk@LqhgioG;{S~eTd_C$wqEahus-{ zPHlkBX&w7M?|n>+h4wP6NJXFl%Y!7Z@jQC z*XpDxez{L(5MAY#^!KE}+~xKDJ>R%!^|8{}K*(v&UBhYT`^&!zno!}WXBJSsaeQ^VwqL>X_+e_VE zM^Awgg=HQDegtxrdM(j`Xzo~KjoI*uk4NyF44>xt*Xa&UKZDn04Y=Vq9r>vK26(;55k!6+(yYAKxS?vdn*t5dUws`ZpRjl?w7U1$1yvqyVirKBmw||2?tH+y%}f;4)M$ zM)_2NAU+~x$J+%tmuBtx=L)d!<68sXJ{iS7zi;Y0Axjb!_Zia;Jmqf+C6$%+160_p zWn>rN1}%)2rl3bKt)w-|r=YDhC>EEMH&oKg_ALVicMn8(S2OW@tfNG&kpL7r1{^(z z7o6>0Bv7l1ew?s}-%2iXPE^23OUliR96JU=!?*qhEiY-QlFdi#CE}C;oPkM5Z0m?l9FM1&6#s?!<-)!NHT9k2BGqxF&WUx;0@6 z5QOgGNPB!}TZ$DB^Gz*)8w4-={L)WBNJG9|_NlRC@45mz@az&r^efaJaJ%%Q^bYcK znyb`fsrZ<*yUpaTB#9Y<+y_EDGBKM`8@!mVPpUPaH|^8->8d#UjW#$Ow73>j@2mIE zXo0m>O`!|9AHN@*D>&b;+F;$2;yedtvU3;`guR1Wj%TQ(H!@~sPOj?=-?Vsx7c4*aegnut3oT^!- zSF3~9E5Q5C2FAD8rI>-&%`159Tu~}9LLPkz4>oK;6R~w0m=Y8P6C5$FI-oq<^}F=+ zcI*_@>dROjY6gU@rDw1RXC>uU6XSx8$hA!5Lfb-k#>|bQtH2YBno9Q^x_Vt(Hq(@7 zRAs&FgGNQz;R-9%_Fh_6nU^c-A;g$H+@Adv1c?bC^8v{a0<(W$*-!-v4uKl98gvW; zk2Gn{FHP(ucUlHBvPi8X**7Sp^0xyrY;czkJzr=P7s(D;D#wAmh@8l^HCVxrw{@x- zi9LBYr4`EnLxeE$wP-(~CJw7^B*40eggb0jyniSlEW*?tBR%eAjcVtw>wPB+nDeV% z*8=ptfW8&Jn5ZEA8fDkItBPrF9@K;oZOQ5f_5rfnm{)I5!?rF7&`9|+Ui%Wgc%m2y zO%ru|d+}(%Dy?r3@YxQm@P;Fk2t&DYxlCL)RK6LKmF%?kL87Q6yK-|{?P1nwHSmvD zSO!bKapeGUP&GVhS~7&`3b+&q=d^Gl>OxA}#>C94XCHs=w=h@~fS&feF!wGet>o|n z#w3>0R3H{nq#yc3Vg~&h*&TUf6k|~Kr*6I@!n5#W$T8yR73xI)vU-|m%sjP9G$*bN zEBuc}nAuB_u4`OW=zBCM(E@^XR{^t|>pMbJdFDt-vzl)1Uc>Gpt8O4&muLJ0r`*pu z(6VA1R`Z(k!mY>y2p^!AoF8Mt;RKv664VZk)fT=XIfrjniYz4x%cD08HW_7>GPT;? z`i+Wqc~VKG_KIZkgAd-~aeQ#1DqUVO8ie3IcyLJ1QYL$r&R|=OF6!<1>W?;WkeiZLsC2vvT($V~{KQ-v|4o#$)*q{11vBC_B z(68H?7pSnZSi^FOLRuYZ!KZKEy!iI<@or$Y(_X_MWNiFl%Q|8SzN7Ebsy%d~Z*E>8 zoafmlW{5XXTI3 zFwjUwKDy>hSjj)&V&sy~Rm_SjxD#mUNlVSs>iS9-2O}Q;dZo>KCjQw6fYt*5?VWtp zTeC?)v8NWDbf`V;yA;uXNc4y2tqCerJVUtorEJWrq;tiUW80cbr8yxw1%AHBoSgC% zbjvQfrnTuS$z2G^s74)(>Kx3Dhd5*0H7=Uf*UQYc5*~Tc)p1*wfoft?RuYk)J_NHt z&&Pc?K+j2sf8<7C&)3Wu?P&5{$<+36ew@@mL1P)kGRDRD$w;tbpLbchg9Tpy$$4&Y z7L13eyVf6d(*(K=6Dm|#Orf9>#?v~#7OGt~4{OB0Q;;+(Y3ic_v#*6LZAy>N@DW;6 zHAxgB%hZiq&CX5i{B4H#7o7Igrn5d4Q)C9Nzf?gFDoNl_02G_vjU?k+N(*Ix$?9vz z@$?If>`WP*ke~;SoOOtK8q;yru}-0$5Gs@+lyzZ}YxY!K!d>j2m(6*ASG;Fk>&Q7W z%znXq-axsC#&VbqhP2XhJ@40!))FIa8V43d((ex-gvVO)<;Qs%Kh*sS8K7zo?;+SB zawNP(J%HTgqD6-YK1Qr$^Xlrd*y68NMUHixt&L;J_43=+n%|lTvai;a<#-G~L@5PB z+8Ob!!-Ie99v~m_DHWH|1W(TY03|7yCQZKMNU3Xz6osy@>BLQ_t&vo@?E`9V15*wu zEsm-4*Z%L* zFeU+7%@ojRxq*6b$@X605yV!r0+4hTQVr(-aVY?Yw zi4s01P1GfMMDU4A%V&-1L?!OIJ^B77ZdRQ3OrZq9s@6U#XE_`~$Z- zwOrSCKj29COh>ctrGHT-!;P7d<@l-sMP#E(wl42cdv2R7c7-&Mon$)~G6ZHIWX}2B z*CN#k$d#z%<;Q)k(O3zavoIV#K<1z=UX&<7lPptCL`h1fn!BYZhHGWEvNA@oE~kz& zyl^%xv6{E9hML0(AKU1PWEu$C@kar~2Jm;9EtyUN1vc75#WK;F+hn;IXdaMXd$blH zes@`lD!?l#&~K;o(v-rF^LhU@rIH#A=Hp%KjJq}+2%v)+L1%C+&k{?en_(guID1okh2 zLdiCVy3O|>^J^@diA)op zWLQeFqGoF7cYYjNPR7Oy&y7r7*&J5%bz4T1mBa}!kF2rPQk!r0@2L~^7DV(WLq&`x z!XKN=NJL65F~TU#-Jt`n9yb&4tMqGOS_ww>&#YHX-ahV2Z7p7WNjIWvVaQlwoM%n5 zJ0%Sj`Lu#0r(tUi;ZCSs>Ok3g<5zT*m$^YCMgd$}#v>OmmglEucx>u05hSuwq*`jm zIMaETIG=EPqtTe5kUKWgSl2{>MeMN2^Z7Wdc5w22%L(_N9BB$Xq1ydsh1CfH6SG*M zTy_K-V6L>ZgkoB+uCcZ+{yGcW*h_+5(~%zDy@NBn<%JUjh)@A|j{x+AQ2>1*yglVL zl0mu89xRU95c!QpO*IO|#cFdB{V|~evWAJN9>h3STXS`T8-!}Gg6>zV<)kO;@p?zM z3#R?C&5rO^vc*V*bq27xKZm(A-7EUr(78Cl)xu#go+Pd98 zu^yZd7msqPba&Pjl9jGe0J+gbG9!;e6j9|W3gDY?f1=*9QYlJM@S@bd;EiWUda# zP|^O=cvM%{WAVf!aQJ;&wF=QkFiJ1t?yq7G9Yw5O1Yk?^Zfxo4-(WD6M**>vbZ`)B zKdw1V7bo$q3o>!z#rW(YyZSK9+fjZ#T_38xCOh&Q&1p8iVuOirjWJzH)5zC6cN-8M)jFmsR0VFe$%+6b7wSxo#?NEc9= z_94sF?0Ym=&2%QywESZe^6ft%(E>D1Ag zK8K*u`yW4aRnT94eCr#P1j1XGj@JP{lPZ! zai1#~)GFJ`M#Ri(nD!Tq*ozqJhN;hoDcpZw74En@reC|UsP9IOp5+Y=3J`|+`f?UJ zeFjK|>BF(Q>I#%!a`AmxZUj_M~35j**!-juO5T>QkQ~ebjiY3 z2fp5NITTQFIOVa13#2vsIU|}n^C)Dqv+-IEYUgF8$FoAp^V0a)%dkf}uxs-U6WY-Z z<|HJAQLDzTw4ql1aviv-E7dR*VkG@g*Pt#C6atJc%|H%mwTydew(zpAG1)Z!YfM=r zSleDi@#TCzw`uvr<~+Espg|9N84s8)L{#;E+LRgrR(-FKj+G#Pan??`);s9Kg~~D$FDPPl}hGQ zr&%?~rVonL!`d=v&#kfyr`6h}g#75Q_h`s4GLRyjvW~8*r+^>but*gM zgDHtcd{pukbzsOSP5hPL)eH0yva(dliw=;T-JIs|4d%P;3hxSm-(79HN&5j02@zTb zm|cD$ZNL}a9^xsojS@BqgiI;bmsFb$@V$*(Bey@tHrv9KzO7hlWKZ5VOF5Rm%~u`f zzluO(%`P2FM|ML6Z|?UMD)4~nbj9DH1ErgQ*Y&`nzVKIvY&4H=fFLtEVWj?Gq&KKG zDuA=`&HZ7}cu^zEMCL9wic_2zny32WQ)RE9AP1p5-oxJ@7fUyQzd@DKob^ccH-X(z zlEw5I?{)m{N@iexV-Ev$!M1yO?Q5FvnNeTsA{dKPdvXf+h3(lX@|e~pTF)wfCo zTJBIXsvX;_)6y&mg3+12knj-mCt{>T)52Q))Zg5wF+w1mr4le)P9di*_5s_9l0b#w zMYH46qNAt3fwR_F#yH$OgeP6iy{XZ;Sqc(6b;h6O)k;(iADS0m!AE(7as?QhwD!Lg zwUJJ}Atg8b*e4*VCnA)E~jqZJFP`vVH+Y-o*Kr0kfeyTOwa(6p$N$jQuk4;nRUzqP1Mh7 zAF*ck{7y|%%Q|agP!aRqrt0&BzVTUzgo4%_J+UTb0}@_nG2nFL`vEBf+K6-$NG|%) zop-&{XOJ0hj$ux6Qi?axN27l#DNiYn9zT2|j#q`hH~f3shy%57E3)&4M?ecTzZB)7 z0vZxKq{N|xN-V~Z{|u!^^-+^gs=`UXSs7!)s&C+CsB-!lHkx*WR_WLkC>z8%lvfJ& zglD`-H_|@jWV!9pU;cU7M&ml=uf-1d-bqTZzcFCLEyE83XdSfdq7msR2u)GCRZ%{7 zU=$2UU@Ssemr+c%r{@6Pnw&ovBNcw~1dombt9VpWIuzMByPhU~QCq0-D0{Lo?2gMc zhmd5uSz*z#KKP-g(Ns;e*M_eVm*8jXfNTl@bF|&mFF`o}r8X^d_zXQ%Oz0Q1FnhM) zqvS*RPA~yzwEXBxa3K9hhYIAuR7pbMa^2CZD7R#RQpp3M%w(cbvaMHH8kutvvyPH+|*QmZy~O=FjGw^uD2mO)-*PY1;7sAbwBvB8nyYgMn)VDqP6Rrxq(xXc=kq$d3d#>j5-AzyS9Vdq@o+i%KPaldv* zGG&mBDz00k?6JOP5=K8oe-XMol#7TLKbxt(t|0aTI- z>Dnim5c!gJ_nM!pPVOMZCy%Ee+8M(9>(U(dzl-)M?C07VVDUP=`?O-De`8V$;0^wI zV-;S#L~{jPS(!jQeha}a08HZqHpDcl8~<%V|0W zseNf9;odI42|M2s<(`$I1nn>`wLjf?(qs5>4fs!r#CWPlMi=UYI^Eyt_r#qL+jvwG zxkfvG8^~>0yWNcg0F-?kjyUrf6TS>?dBRV-bE2siU_MWq@p3&X>Fhw4eR>Y$plmA|Ai2qp0qB6v46>@@{M$K$l-6AVU$X=%4MfhysL zwrbYTa4&?rKNwauR*{W5fh(%CcwMpjd9kl46DZr`)Jwl)hMRVBmI-HI#NY(mcRz2B zEJIcLNa$hZ!O6N3dEc7S^ZvE^ex&2r3IM=DeD^j<|3-`Ke?~H2$$u@4^RG7&bLM6S z3;I(<49DRDmIQgk@#&E=p)WikAci4K-kG~~+LF+Yho#-nN&qfJNYTb6ygtfv0s>9i zycCz>{^N)|w%s>b5AoR|XnUNK|>{lSF*ao$-4A=1){F>%j$8DA%ZRi&h-l z6XEtwv^nq@ChrjB-W*l=m{ZKE85*oYd(tXrF^F3GwUOER*08q9Z_hd{=2r`P&Jk2x z5wK)7t>=U#ET96rzn4u!2|=L5jP}Ez*@nY6DpP(faKIM-fjLev5x@bJTNW{=9+IksS~q8B*m)+_!i_I)oDXMTWGg^~|d8uQ$ersfwE&KuKG_ zyQG;I-g;w1|8K?T4}zkDJOv7J*M8tn1`zb{k)NxenKn*v^}Z?{bY4WRy!f=y+d1U^ z_ycUb4(rHY@2u%Gw{j);Sj#->)yF#>7_xQzWQFSkUY`ZQrB+8&FHMfjvdbBIO;IpQaE zs58J@uG}^7C`PvhJLMT1O$_r}*|kKpuY(ze zR5M9JB#x+5kBy*;CsJp#5TyxSf-Qyu9dL@Hi7Dna+5#*1RygjG%Cur#ndqoEr99W4 zdoLC=Q81CKztvJD{)7z-{grXDYsK5Xi@kB~xApz_xdA88z{}D~G8T`lsRS#s$=f8DHk}rj0<@uSyyyBB1X06Uku-l zdH@6#0JvPhM*@TcWTfw;?`Z5qYh`O|r)zHGqVHg?Z{y@hYhY|+XlAYNV5$4Y8%kOB zpYb_BbSam;IXFobQIN&|>=7D;mB6rK#AF|(eznt5v{Kb1nDVyYexT5|=3-?7$S6oG zr$v_w>jaSg(({Rv&4Q*kXSMF+k>jJPfXJhl~Qm9_&ihM*oWmsF3XNpLLiV{WJ5 zGk)4upB(m$Pze-pDt!AManMj174P6jt0>0t^+(dY=MwTW4B$-cD6Gvo?0qgc4ycG1 zWOJi?)f?;{5Yq7xb9(3rpkiEHq!0e=Qe=J+H|I_dUHU5xP9Y8CjaveP#e0!Qon!e; zKg-wMkK=df$%(;xj{myF)>Rwc;{ZVa`tI%dt=zU&1zA}@myx$2djpw98|+|SdfF^9 zjCAD>P>~hl7k#IK!$I^;*V{yWe`G`*E+%WAmzD40b-`a|e&X2X(5>u&FL>6`+h`xM z)|f5jYsR|vI&ZS4B@e2%l1zV>9owBG@iL018`zGu(qRGbv_6iALyw>K%HVK9odBTUwA4I4;>=bqDbZ6A@igo&1G`ZOcROA?Nl!2q zZK=4ph7#a_0mM3EMgm!Wm-T#zh&if1=aM)o{Buz-9A>t+v0n0X4gE1|1;LBko<}is zzBZto=lIv>f@Foxt50c9LL|jv)td5QWdH-P>%2Sep;#K zCWse*nd;or#Kph%#ns=vV=%rYEwui>2EHX%J-G!dI=jwC_&2~^Q8U6!Un7i*gI*2Z zYic_20-cJR1sxE06h?5{_~1x>ay!h$5aRa?Oh5ArN)#u#!K8v<*lQb5ERI%$HRp;1 zs#4hJJk|R!9)?011QIBS*3JXr9!YqBy5$-y?)GB0pbo<&2DM=lAz^@v%9uV^z#Juz zmyJ?I&?Buv{ls!(f<9Us`0R0F&R2ygvIqm;iKeC_Ep;5Usu@YpK@0`0K`<@%?!{pzd;>F$^S!Gw?2Gka<3jx zX;`MQOsg6i4LIQ-x5=w5ss;(0A`N_gNH8*{#y0HLyW>_r6`#dgiD;6tgMPK}{TkQG zxScymDo)oo=_c76RhUmvN!b3I5MGa;gI<)|CyUg;fMVbfRbTmzsbO)S2R$B@Q4*@C z%;MF)S8CK zP?Owj2r)s@9UmnX!rDIZJ8hE~b$by-Ab(`aSBKKIUksowZuA==?tn3|I3p7=tze=% zK_rFP`0}_WNHk zPgRh*8(EHy?Z737cFnofTQg)ls^bGkmhUX>)2YG!wy24k`n9gz&eLBLch`veD1?CD zQv&$j_bh(v6a^3V@R|m|fN=c$OHrWkzghI?JmwoAvi|*C*RYgA(Qe{;=Gp+w z46xLinL>$7nSdwu){*0l^DrfxX2oUue4y$@(jtV0Velx`-ZFwyVw$SPrr1vVP(RkB z&>H^XzVQZAfLC8k$#gOZoKe*LC;!(JY};rmo(iH4$3erj+*I9R`+^VRz7&

SexU z9^`c(3v7!`m7~2?MryG=DytBB*?NaE!a!VjKdhA(meI1J9KU-InAdC0WlD5<@p`Rg z^E~c9{B;8AE4s>n0hlytS389)isDts+QzSby&#DRZO77<7M8_KqJJ zOKiA}Ckf%Gu&n;1x@d*uLjO^6*SQ(va{#>KIQ&QYg~Pzd#dXN2fr!8x%VDSi9mp&{wqL`hE*Rg8 zHeSxHdpAbp5oeKxKzP7Bsklg+R0*u;hEwRBg+gCTu;6R9PDHbc%;4 zDR@_uQjKG&JjtiNp-XV@07h8VXQP6S(XC+S43G`(!2S&**dv+ED~!JHhLPzl0?av@ z|8?$8_?Dw5fiIRKI?e{h-pV}$kAVCJGloP`I4N!%Udo#` z6{tcUy;5p;rK)X|c)csAjK8~HE96Dr>HshTzZ*sdmN&*WsH6F#UwK5plqi0+I69JE z9~kAyFX&emvGVJJQ_+WwlY-i~Yipl}0T+aZ-FeYxVHozGoR(Hie+~v5KE>wG}5w?WqT$y69Z2<^?P+6>Gp{<3?`uxWAf-U>pMOpW{Gxx4GiOoD}Y%V3W@s+FvezSvIts>rN=_J!1=BG6G{&u zY!#HfV%{I2xf7HJ@&>GN4XCyG_ZUd{h0mHR0+sW!cd{zLQGq1`+!7CBX|1p zo?f~U%4K=ER0VbP`mZyg3*WA14}g{EyDNyE>5Vf%IA-LvZ|XZXqiB}kFKxaYT+^ix z^G_r@2$_7C*#=yn`g4Etn91@%z+d49*)pVAnf zMq;~SFyKf1IEWBWls2B;|B~I6X0784zTS8(-1EE5Gsu~LZalKcx;YJCBUtVR(=LQH zAF(W71jOX#fd1S4=xBtcRa$7+hgD0@dL9Ov@fRifRmpkE^9AZ3yWMrad<3vRxA$?M zKg4u61S=1RNZ(8Qa}39`Aud{ndqGLwe=nBKyC&?XAKa%&t{TYjSFk;&a?pV@#XW^G z@WcQ2j+V)*$^3fPgL?OSh>`V;o}4j2-U?WXukuzR;)L)ZR0Pfn)c?`90@48kCDUcB zVZgha#|lGTI+M2?y%*c_nLT%vk=IeWdq1`cU|TaNT1jf3D8)>2y(m+#XBsiC`e>a< z@%J`~69*gR*M=kS6hKazBh*Cxm2+{_Bv-hqHd%ws0?V-_lRx6j#Vl#)O$Ue5piT7io5 zFp=~#K!URpW~*kumihls_7(wkZPBtQ!6CR?aCZ;x?(Xg$Ah-kw65QS0JrJDW8rry!FL-1{0eG^7==enLhy5wFaO{gAmUm-guivsUk@TU2r0-i@I!aIyaqorXHLd zvS-fx1wqE3ssup5JBJXXSbwl&)afzco|7NC(hUB_PDnvjVG#?$K~X30M1lO+Uob;r z1Q^=JrXPFm4W0kBi1P$N?)@OOT46~V>jtIkH!U86hosBkAKi}^VpD_TB=f4FdX(Jt z{9+>|^zOiBcxy%8Q@&lsj~;=0p#tM)0xPX1{alFmSPI0K`w#hT_+fdL^V!y{4^5c@ ztRLr`_x`x2%?!ir*s?k0cR>{TAvg1BvzF20#s8KF>)=We;2@F;gd^7p7x}sXIT8H% zz9{#rnF~d$6Um&Ic5%5tUuj7!wbKyMoRS(mDSqjZMs6S9^o0`}W@bXT2$UpL)I2{` zZvLUrDm>9v9l|d;s?&6tnvo55IMY*?J?clBT!BoYkC?tC&B77Q;aCHn_f;amF)i;=N9 zLwpx(1+!a^(v>M5x$dYoz)%n|8ob<=tO-1sZ7pk5g(4h^qZg4y3)Q>yuu?l~PH$ds zd9}_(?l#lZ9q&5~S)v1vJ`vji%S}-O316z7^LH}O->536susfVa=Uqg&90~0&&$$9 z)Qpi-Z8)@@d?h8yJsz99iW&60g3%&KCAoW7uXvLSn%&HpfapvDeD5n8+1^Nil;sv) zo-fZ|zXfvW;9Bam4PjU@T=yVQKFbH0AHejAf0}=~-*gC-#y_~(RYRAAO3D98 z!o#1J8qLXU?5S`yIv{H;H;3LdF-*z%=X2pQw&iAm$nELfm1;20H|CIU@@GM;TU8|p z)ziwNEt->-JVmy$wS2YK&H_G&yDcu67$4k@y12p>!vEa_9LACQ%BtCs{l!689rq?? zTtvur4W~~n^T8?+m1)=T4AnI{00$dBqj$r)2Kda&F{kN7>wxI{N#vHCPy!yip`gwm z?potekx%%(Bw7{pZ5(}p#tE^Kw>T;S2VF>KI2~x8pENsU3n(b=6FII+5X*t3L=r*8 z&X+`6cn#6CMZNf#f4`P5Sh3#inE`;l1oqxylHsiehkvZ}mz;l=?kW zavtH`*Hjwl#Y>Thd;o^*57)J@I=g34ApP{mv&S1%VaJ^r)kTaCVC<@kUV=$Wf1BMZ zJkyQU^t$6BXH*GzT}bMcDpX@x)g^d$W~fwnbpFy|x}q^sCF86ql{6!Kp{rwZ9X=%_ z2Cg{R4oBfeK)=g<=5C|Q+NC`S2mOtrg5;+(+UKnPP2wnjSCqoO3@Iid?~nXkjpR~8 zT?A>MTUoM?&;2S}`r#(XUorV7thp%xpjT&Lg3fa~Q4+X^gCX=L%D4{E6R@ zQtA0*QZtf59vRNL;cApKV=elaQP)w)%Epu!3FFqBS@1#9H*K#d+%Ud}7ET?@=AKR8 ze7w8tTV z`-mJhMX6MAJDeRq?LKIcTn)0q%kUk8qxqugHir8^eii%rMPb&N{sKwu%xG>fB!d6(jm?G{-U)!35cEd zH6fVZ@~!cd`=|12K0rmbSC_|PX{qV5-ov{CxPchzYl3Ua7=3@%f#S^nfkfbBYAX8E zAg)99^HqRsC5M@#$(Lf4>&r|j)7z=r5H~MQj4J14<{V=Wn0D5`9)+!4%l3O*g7BTQ zj8%SA<_XoHqUgJ~(GG+IB5hw7Io8Och0q%BO~7x}<^jO!D`nv`g8R+m)z+ zgKxTszY41-7UyWW&kV4@NJMK-Q|GH0R#WgVpc8LSx8ci*WT-KXTMRJ);<7E+jqms{Fcd$ zwT$EogLmm3MNv3dilkR*C_gU~u(ux=h}lKlQ{F~88rbBFACjwpp5vNxom9Z$aXX9Y z@uL_fk0+Z+TGMGq=i1k;zVv!!|A$qxq|ORlPm`hp>8Lj+5$k4X7;1+o9;IZjwqhVa zB#7Ow`q(f8&>I7Y1jzu2LMyZoC$%x??RaZ>?+y>^F8WmAa4G-c*|djt((gwF42}Ey zLCb+vjv;UHc-_BrUC_ycpzF)R-S0sC(!4@v&s{9-L}-w0?4yNM2c1ThDyskzi97y@ zDlI{yx7}bOa3EW+9IF^r@L+=WXK~{-lx9G2OfOJIydO%2H{KHK|7QR{haucm)JP?b zatX~11k42a*+k1nT8ilJGC?6pRAc3K#PZE^1&T-gsJVxK@rgfWl*0ttQiJMaA8IK>(KYwI1t9Kq4E) zcd16eIlbX+kw5rM?a>F+2iub@@@|{HUPUA{Kj1EceT8xQ28Z@jQxhW^N(*f94-pP7 z@XaxBj~74eV(i!l!kME{i1Mn8u{;Jeex6wIcpUHgC6mt#vZ{?1iRo z^@-#XBmZ`n;H>!7)tZ6jCnzN?d-?Y)>lf^=E=bxQbG|SzxsuOkXx_ZB7YD7C5=$Z$ zdbVAS-c7*xGNbK?SIWlE1}(s4w%R^Seb-j=3}$-bsA{h8Cs*S%O7SNcPi&aEl8K6V=GfO@yy_RDgi?u535!`|a=8q+7F2ru*7%!$KXvP%bY+ZTKl1jmduS)HpFm{O zEo-y+>z|!FJFQ{elJE7h^ll@V(NTm-8l~C?R@yn0^@Syx7OAvFs;oV5A}#X?wlYC6T1h&J4hD0Pww!PV>fl0-)2p)F#|yx>;kA z9b!v5DZffX!#}aIj*m^?*9XlflRC+zvJh;pkR^m#SGT)O$1KMnR5HOD*L!PeP{0-b z{7SK>05B?(9}j>Vh|Z;*&+=f+?Zy>vv03gGt#(}`l_#OfEhPLZabDO_?BL2eG#-_p zVPTtmi=6i}yB{&WcIcyHV*1PzaW7Gccj-ZX7m%P_?`rr8LZvcm;I{sup=A^^bE67b z7(2N&rdCbEevLkY2WA}8$j*TRAEBTu2V~X?X}@N*cT5$yjVsqp`R~}^gGZWUy-P3L z5&P#OiymYj!8ZY6B9C*UCBES!WM8on#R2N2R!+3nVK@5Re`EUA3PcGqo3<&S=|3!Ge z@iIBeO1=ypmJU!9f%!?<>@!O^7+VD45pY~Xw?@ckqmi*ZuESG>70l2L(p@rKb5J}Q z=&>HWi!bsxh>}dmdu%CG+6{qKaqAUqRI0QFnwrNr<)Lr{@Cn_14Zo$IT_V79#oZ@R+i}5zlDP1`3F^= zD>mK;*!e?A9mwP0$TGy(ljx|f(5A&|w9+n!Roy6R^14;+aQ$^4kL?1rMMc;VqLKS# zS3;>Y(EJjuE`LHkBK5=H2DyD?TnI6lKQ1$biLN~~y#K|Mc8)&#W%o|(-FPy;C2Id4 z6{9|RR4FCL34}>bTOgz8AjXa=s%LMofhA7b|6j%kBEcgpWzFgaJOZe zdSCR#Xq@Tn)Royt{$83+#mGGd+)q2uH*3OVK4i+9=<6s!E+&ZzUyjE{6Yw7t<0YlC zHk>g{d~AZbpN^{Tn{~}>Sc$DJbKiN;D#+K=W8zR3!5$o$USy1n>4A^8JnOc^BN$Fc ze|aAWf%Eeql+NIvms4bAgY;>C`yyep_VtUu!pcb^9W2~01H{nufvs1s{LVOKF%SSX zAV6R3ot=v}c#3gyx{`oE^cwaI#&#EvqJdjU4JQ2l{mVU2bgim;jkIWTV|?}TU*j}- zemroWrp4nGlAhK4Jr9Yx#5uj8crA^|>4Y*@Q_*SOTN;QjkCn5Lp4QDwoTTSh5B4%c zx928F9jV$Hj+krO*ww*xgXEhCnZg6f@64QL1_{WjjZNqWp zb4~Djm#UpfnFu?z#s$bYAC#KmT%JQHYc`rK#uet({OmlFubwOCjvDblSb$#Us6*vv z>je%)o&M11ry^ySkt{lw%3J>iq9bhs5eZ_UYb)H?o5V*3FmG|O+pPyT#ND`#fp^Q6 z%)Ehe^L{0F(#hPT^BVx~3!m|Qg(f588z&vWD0n&PLdSQ(6b*foVe2~3RmgYnkKe;; zdayO2XYCaspROfXVbccTzRc=}w$E7O(%`L;M>p73rWI6WgtoAMOE|GE?(AJIP6Orq z6Fw$225Ud(Y+CzuQ9^H&c_^I)JyPX&uBNva@qS%#VO%uAn)r9x6FIQ~ZwXzUL7wg; zExV2^9qZq7Q!AX97#vmLQ!Cf=qZSz$kEZH8+=`DvgA-fRxD|!JZ0GLqY8kfy7cYYa zLNc;Pa_ai)_=`a~iqZgJbNcSSF4J4HLu&c;UrLUuV8zm^YKGp*b^hNOvX-avu=C9yooaZ_7JNeA}8Ltl# zk0mpq4JdTM8l??X?i>%RfiP~>`Nx{7COi+*+h`?BHTq%sK{;eCv62w&Hazk_U*6{N z>f!2X;Fsn_)9VgfxNqRj|JHQXDH!!u|J8PA>@(N~Ugy-1Qbciy6+7sVJpP9&id~L~ zUfLy5xmIf4?18+IGu@bhZQ8cw6ZbmXmnp$^t+Dbog_L~<+074CV;DAP^=8G=JDi|> z@^N>0dup;?|Gji8502cs0ipe(j_}UVeoIP4TK3-o=dmixem9z29iWwkbPDg`b6|xU z(iLX_fuwrtY^5QwQ(2-uBv^vNBQs%k3tJW>@@aO#hJM3T?rQQZd7|u$HHs1`H_Wuq~OGs?Br<#WIH^huT;v=Gi6J;pA91 zI=WK~VF5)#7Hw{-vR6+N0_fco7XTr-cLz8l!y61mYkB#XiQMA|1s6e<2=I7~m!a@P zc_oMv0RzHVqhhi^ZdDTG>cog0vyyajALE^;Kn`TY_ z(LS!z0n1U#s$szO59twt7c?V{D-!PJVrUpp<=$y3r3)55%2&k)@$L@-?4P$V-69=) zo?|Y%6%I&{*IAA}rbPgkQ2v;pU}JMt3?Y??vDR`GgzAmc8x3s?J8fWC9vh%IBVQMkiL z&n`vqH=RWP6Xwsd^-)ajWJ zVX$AKhfQw0s=H%QWnL;2c?ymnd8$;WlxB8b#qIpk{_%@_S_j~JUt+-W#vs{IuIYt2 zn3_|e7bPrm(6^_=3}2)9!{*kTFWOu!PztqrG8gjfIB(r(R}Pl!^sg9hF3O=mIGS$O zlsJ{I(LH}}XCcq0tnlNpdKAZpBIiP00pcye8>|X7_XMRCy!4c9;|zly4n-mB`+19F zGE#jUoV`t8n$kqhYMwgC1BTk=B;ntv=V+WdU~V|)-bhroX&$Rhz+4T)2gbEXF6;cD z;Ydata%|)2D`%Yb@yhZy{G8FKsbD7*egQ*xOxVZKx4OY>JU)32h8(NZu%(~%*yOrm z*+rOwthU(QDC_+{GNJY^yMn6M(=d}vT8)34uG9*eo76g~n#?<}?>?6xzf@@jF^pEl zrqfSYi$%9v@EEbX1^e%%3NNmN_M-Ilem&;5$Z^)PoU&c?FzG3}Yy0sIyI|8)!u0qI z_ym_K@imS`_qOuU%Xu72USuB#7*eU{o^XE|=dIS4=C^~?%$q9{eSRz*GMmC?usFA} zuop?8;m!W04MVj)K~{|w^)>nTRoE=z=ZSejfK8x`((%1$m1Wh(^UN}BQvfr`kr9>! zMdtnGeUeBtJBB;fWu8XuJu& zf0ad+$cT5gGhIJ#M(9UlYGX;}6gOr!B7|B3H-{R7q*K1s`LwFwEw@j>6Wr4uAtQ^{ z*=-s6>S(73Jc|G&-|l58(hnUmTiT9W}l@g zvMFr!A*j@o4#hA*8Ql1vN+v9EfF_5#sU1|_3orcWui0YOM308mD5k8|mq3V(zRH!! zKGiB?>!Hkv>jqRNgM|x{j^cA;!G&8J8i2D^7i9jy9g&0*Uz`U_0Weog!pO%sDE`B& z9gsRQ9WfSYNGgjR7@WIhJHGWZ)4#&t8=t%$dshh21tm#vV5^h}dwMmG?lM zIAMz-3B`mg<6XbbJU=U7l>R~4dWqE8@$`zl6U;M~{Zh&Lyj!P{@r@e7QQ_Z(oom3t zj<_;Ee-n*&4?w3efV8U9MtQywVGN*kq#_V%>FAh94nAa?{i(F8L6+lq4U_FLA|!2vd<0hl-#*&MaE>N=LW3HL`3EG%o-7+)SN)eL>BB0T| z&jzSe5!WZy)C)L5xq=TzJA^cM%LrO90T|%+pke_Pa@lO8JcLmoSTc^(5EQ7`7XC@e)#e4`6;2ieuSPF>>28b?uOnk(xGemt?`=T z8W5MzDX3qba=~Z@xpaU~_B*JXliFTq?7O!plwg2=`=vGazIM_Z^^EnuRz?6;8`|YM zqypIwoq2^Z5F`i$@;EjEWtnDzfUYPj2&BAQXIA)jFmt7NH3OZ9 z_93magC1!ef>LX^yW~L!SIv0sQg|&`%_=tffx+9x*PiE7M<0JxSIr*Ix9dwZYC+Ow zDbBbbS=P%&@A%Q0jD4O)*fq8I_z0JX;JksJdHFz-fFfIgYgV=Picio6VnFsnLx1s< zfA8h>M$^tSiXXu5MG&63LGf+06H+7-qn0oLhMD^z)`9yR@F;hRNQ@HMfWiu0OeT`F_-?0vG zu!0#j64lX-O4|OBnyM7)R>@@5#g(}D|Il49d`kC@Dn-0?IIs%jMFJ<`GzeJ2;6R_4 zHNL^>!`33<&5d1gCGFcPMEsEXwGyTzCdwpBl$a^nk7d>uV}>Smx0N^Nx;!GTm>?X# z^JEj=ctM)MOFWp_)(Hkj8KP>_HJIjZ|FsX&aAd<_lnsk5;`oQ_#U|Hj>X*9bApRLl z*iO^yR|!rkY{ksWvfC`+dtZX{mi3Ue+|bL0CQnSkiBb`?fHhjU<^Q4j1DUA#? zDmUNb6gJ{+`x1HaKA}*7_1f5iwep)c%d^jC+k|mm?}t!hU9Z`n4cBK3Ar6`Dlv-f@ zKv!z8Ywfw1%)akAn@oYO^H+7K4UzvueqO4li*1P*=CT{?v)Q|qnuq~>2 zao2^+_F|Vh@{)e`=TW(e4hLlt;+p?-WE{hy5DGC`^^Z`JHq=#lrl&jRg24wMGsHGL z1e9c-T@6KFd`If+1u0P_ADD1Ya3`4n_aTNwB$I^7B*HY}CSevR#HGhQ-Y0~Cu*bch zylIbPol>1RzU1AI z0PNov-%Rvxv5dlB`0M{DKJmA(eV_IN5vvcnfoN^3{X9_IuOfkCtF*OJrCgXeXkoHb zHjUw-6W>3<`8{MfRm_98agPhz3+kfd%os2z);Usps08h>3)f$r$oeuxE7vPvd)^$H zTLkQUM=$~%%eL>St)8bwDAJovrG;88fiGLqlHv#MXoL2=bj~*l)eC+mic;1Wdlzq22eQcjQG@IGM+IQ$CXbs(v5#sUbFK17m@@yGOugp!boMfKgL^+TZ{{uG z{~mq7&{A}XO{vHnjatmN9t47~oSP(v!^w!VTY0K!qYb<&`SbHgj0i>Z4-zalpDFbc zB3C9Ej`SFbgsYKlfkaJf81`U}uO}9#zt*{W<#-x@EnrsZe_1qu`Vm{Uv0>wZiY-ZY z1)4U_7?lg|5e@Iin%SZL>pma-yJt`C+@Pf1!YZkEH`&vLQI!)INc!FLUTyxp1&A&Y z=XYwh)mv4F0jGuMHq;1^#<=5yqcU`fmNIzxKgyT^`xn_x*RRq$#w}L-7v1{zJBKkd zyt$|T&lZWui!;&77D-+REp*WfOr+`LL^w@n@NB{j?qvEO;uQj?7J8* z)kmgG>xuRUG>PhEB~2d^eOo?SekaqNiobndTu+S>d0gkd6AbAv(7`9CmadZO^`n_R zZL+&VZ2Zmyp;d4qQiV!nM0ZJfuHaVp1EV(a9*>&Sn^6NLeWYsFTTlYT%=<3bIBGJJZ}IrBo*cD^XL ze=%`{%AXmq-OToF98 zu0KpBT5u^96siOe_WP>7%bmk>0N8j)D+2@cXa?Vh1Nx}ynKCIs=+=P7AIxjV-HOf! zGNw$YFI>jzNNf5+wjl3kqUY4kOQ$>0N00f6Tv2Oj{F$H4p(Mfz-2^4AEQBtjWvpCN z(&vr?pzJ7l13i-kKat1j`xU%;iZ{QXW6uK+(|k8#Ozdxr!L7rkUmCa~|L%xDg&$fY z{{S#sAcI+Y2+!(w$q->%-9;}6DI5rhPg`BjDZnzmo^iMOj>(sNRN$4F*Y$<2yW85? zzAbtBMaxZO?d}vWckfBZ8t;|>)4?FLacIn&-qo|(hT{NfE)aw|%insc{lNs=cu57q zhdrCD5`|zaZksdhmgdV(7Af6kD}KBX)!36!=N>Y{^mGBGUAzQ14lYH0i*Fm_{!~rOiKt0lxl;<6d2sTlI;p3Pp^2n z^jkEaBEUmtzt6R$}XhQU@7U2P~)C0cv zB_D5TMOw@KbIEhfRH#jc5XEwAeHRh{`wX{u=RF|)t7}r7s5hVA`e~RW4k2#8)6LY0 zd81aL(sAtb4QLsh#*~=!jHMUGWD~*U)6@*9%aPX^&Hm>darK?nfQId9(96?XIh2S? z+M7UE;)uq*GZ9U9ec-$0NVuM{Vnj*7urL|{7Qg9aw<+tc>TYgPAKZZ1oGzF@I?JbN zAHqrdJksKTMOg{yQSiro7NeXN2fvtVqz89h&qw}QCH9sj6mbd2e(-%{Ar5#hs~+5) z#SF3cgC=*SxuH=lPLk>{`W$b-5F`wZwT3&59%5czpg?{Z{YwBZ_fWs{)RyO~ZMSxh zYfOFF=3$CJ1i=~E3DN}Jf3LlYLe23lKqS8KbKe<>Om9Tu|5ZAAL=|Z!PR6fs*M$5> z=xF1AgpLFs?vcpT5=qssrm8$D;yNmvcA@Y1OnsF_&xEID|4x=-i=*4u=9SsDWms=tm63StxB~ylYkPl`Wr4Qj4@&9gaX06r?p5-k2fZ!v`#v%^apTXnH{auDq=L2vuTuoYCM@D+u zcw%SQ$=FiL*a_<%^)@Jy9LjY$@H(75iFDJchI-qPbHYkgXaY5LaXLticlPS{oh{ZX zk>ObL7&CjI3n#wVt9q*rG=8g?hOWRQ0@b^4cT_g~bEK(->sustN z;$h2Z3-3;4?q1T)8pUh}ce;|GVplZ(W5M<>`_4A*`hDfPL>HU4pV+!+-@3F+*RK=w zSOP?3M0tw9n@bh3Z7q7<4G&eNsT`}{BHMKGtrhwDQ2q+!7bwVL>tX0I)SN^}!ZMgq zu|HL;Sja<|;_zWUCK)kXSof$9wJXVjDxgq`Vt>jkddz)>TlJAxIAHVfhp_JQW`qj1 z#(dV#;#qK)L0+nr;3A9lIZ_k-NV(j*dH?l{MfXp9JJ=jzLy!{I8S@li5@y#Oja5DD zG70N!S_+gfUfqpwu|Y3TbF2_|se>VD#wXu4QH?L1zUD=qIrL5Xp}@ zdyP5l>(Qs9@$*K1@ISvkZd0Rkz`2YTY5jF7mh{Eis!q$FJeOzyT7Z;7#x+s?MrzIG zhO+c&#PJiGimh_E&({5yEkS;QqhD(ZNq|wCyU{oogmErv{J5W_V# zDT!G>bIO26K3vX6(740j+XegRWOj!>@gd28^i*szfbLTmn6R@_n}&u)rx5jz<8&8% z#rW|hBR^}Am0hL=&ZHaZu83qdZ}G}QEkkFhI4|5EC??ye|AX_D%ukTJH7mT&<&4iL zvt-u=S9lr6Cst~VFntD}wAz6FB;(^kyo_^u&Q66L3}qfOmCU|O8-ZkZwg%fnw|jI?70oy zuS=OmgQ#{d9{O^{e6lQA_t4!j!rIWb0Y0q&1W+PtiF+(H{+-75g1=}#v*x+xtYD=E zq)%(Jy`v|Nsu@$Ha@_(i=~HeIkm{ZBUodjJ$%X1li7KI*aA9;8@;`B~uGmMENHXL* zM$^0iXwq!C_@4r`HgJ%vq7E&LY1eACQq9%dP-|90ub)pixJntfsl24LCpYZ7i*=n8 zCSFP9*z^h8uK=KV*|>RM^7Ph3l_p%;5-^$yIDSIKYMG6l?6+pNR>%0nX=PP!II~W? zPZ&Ro&v}o(`Fn(db1zCqoJ*s#KVoqeO#{2Ee2isD@0Mwo%-*bFJ(*DRX-LKlkDK!` zTxw*hPv z{SA$GM}>cvmC}EAI$O<=C&}!(w9Im7>x+`hog=TYGm9C`&l)=WZS&EZ4Js8yW;y_c%KDY{a+q+Zc$k?0ScU;`|=loYKpmj+;dnhrw4|AA6h{|Jn{0UUC z3~B3Il!*?4M2BpcR30eBZE<{w!WRw#$%eh*pO|t@#dPU$yogo5smiAa24jaXbhnTs zu3srgF=-hcD0{j3C;Zx5HI!lVvVHbreyl(|?p(NWUXy-s!O%Q`69I32O7%dzX?;~f zc+18esQ~`Q`uF#U+1_|_908)p|A;_q&LmfliZf={~Wlkmh z;BLJmEKemoJbXCpVs+0WB&^+2?@oR`(?lQQTJl`_8JZaskTBP-f6JkN9YQRU^-+obQ*r#&b+Z z_*Qyw)Ifiz{AxzQa5`F2%z@YMM_7sDlaq_4R@Z1k{T4OIGKaljznaj8l8zcPx{p}L zmeRG-GKyw?1P@bGgWr|*W?7x(B>VBjx+mX~r-x~;nsrK$%2zp~3H~uc=cyk=fbBHB_aW{BPXaq8rYh8<5v$Ub1=q;5(^n!b;Ml?gg}M9Ys8^?t(Ilei z4sdzB-?Ny3{f)+zc6ilG>yvNijtb7v4s_DGTPPYD!Kx7E$fjYKgguHadZQ+&_<_?& zE{i_x@9kc?zqj^;dRRmxMM2kxFj`AvUQGZY1iH-L2wHr*keXt{$j9V+7$WYSG>W#P zLO^bhz}%F;Pj*agM@)h7#?tK0?8Qpg0Cr5!sbAV*I7FGLD>s-Qt~PHTDT6VIHuwe- zu6LGnYn0ikWlm>ClA68G zJ_qUHTEYpA;v#o0X)Y-))^-0tQz+>29X@x#;ex4+R zgvZ?ciks5q1+32Ixa?OF(=COU#}HmM)X8lnaMmRUOZbC3cWh+Vcrec+*h}=lPmEx} zM@Fv!G^^lglySIZ<5jli_L#x^vKvhHeth3<+W#LaBTa*toaj|;v7iJ+&8Q|%X5TnC zUDYPxV3$Sx^mxb%$-vkvMPWWqIjB(SkD(!YnGj_y;l zpGYV1D!yD7iq<(Bh>l5@h`Q)hXPC`KKvbQ(Y~xlAR)fbDdJmuZD1Sg3sNRc3RAbDC zL}4mDMcT1^Frf1?Icr9B#HAK4>dNqjrHVj+xd-NUu+}_s%!M-c0jUW#B>4b*d`uNL z*K=9Q2cjKTCxM-HS@kW5;;Z<|*AT?IFq7Bpdr8zy>?wM??L!_<~l|w5o$)h)wDzS-NzyyJK(sSU40}n64KBR;0wi1!?uzV~d(SfX|RQmzWR_cp%XNuX) zxLB2tp5AGE*}19ieyTjT7#f=q#816L zv1mOm4$**cvn8$vG;GF=+TdHFZC>gF8mS^ceb57_4}JpYRx`yv>r;B=%O&1;}k9(pH#DPR>VvJwY#awJcJAKXG~HW0R#9* zU6yl==$9B4bm;OuE3dGgC9X%i`jqThYaD9!dZ!b=ABi4=3DRHv@(Pkcvcl|k#iB&Y zrv&mv-0T$&1QLL7keuRu$8W%e*wxqUNuzWxHnLJ#m0;A?RCY=Xvi#H2L_2A+kWS^o z)VZhDLk;>GS0xw?%`679L%sGP@O^9S!z>)ozmizEBa3 zm^LDN;qyhl8z<(s$^%Eh)}QacTYpMXgcHGhIpq?eFQQI_CJ4x#^}s1YVfF6TYQ%B# z{wz#x&t9IUm>wFuW*$Ep?UkJbrmb~hP5$&yc-C`R{vQ9b|Dav%#c45UIx;`z$4SH5 z)p*X*q3_@*TA-~NEFA{RAixsdDjEbON0iYa1yr$VbeD_*Tmc6GZUB)EyYLaOla@@< zF%!Ol01N{Ct1!wnYLygVK6HvysQa|4?Q;u%qKjV*E+DQz`Qr#JQ~`%9ffBw2!hxq| zDCcTi;RpU+nZR;X$io)sHxjLvDeClf@qYrVBiZ3P) z!|z6v@vS9$&&dDT1mx(3pA(A}aoj5omp&dvW*f%{nKi83B1Qmgt5|j~`9Wu4KJvQZ z8PT-fo7-MM>2?pK2Wn3!ce>V;Uti$f81Pp6D&Du1r*W;ZiL3-nWKm2lD}G9p3)`5C zBK4I!NK*o7^e@z9ilJ&0#=`I+BIWt&W$d}(AlaUME50Vk3`>Cxcr6h( z0b2KS-yx<{Q5kizTbmP<(@0#c?%?N91h2G>{Y?qnA>RL&W%dMLJtnWsv82TV?@OGiislV;tVlA^=SWOpV!rX zp*4z@S1qwUiKd)$QxY@MNYV|pGhe;_dzEj$-bk(%A{58p1`A_4rbLm>-gJ>BWwBm!i0Istv+2sLkJZ7^4uq-^NQ$q(R1J;LG zH=Z8P_!bjQ4=l?{Tjn&TuyI;?XudkMPDd8Xy2T#zctr#T?r+r%4wn5o;0Qc+WCWz1|BL4M?}F~e=sG93NBNyCL@W4DABVcHrR6%TDoWeE5appCTP!~$p|yM0SJ$jFps*^kOUXcYFRd4Qpa zuRr9QA^ixLerF79$Ju9ha+ctWrH{r(HeCM6xxKS08U*b9Tu-lR#V81r#~01T_s1OT z8zsN6%%BAz2WdW5E!;FvOqI4T-5AG_(17G-Zb`Y+=*j-Y+NUv(aCTh#$!t5bmp&(| z))q#di--Scat?Z~t|jKU9XD{SUxre_&VD$2clmqekpLU)*C7nAQuwIa(&4RqrJzJ% zG>6uq=7UD;9CGd|Md;=W6aK>{H6kmBGS1@oqo3-Nv!Ujz0R&fxdeD=^@P@JB2dz?kjkI~Q zXFdTSs*;A&toyT4CS`cAL_)Lg#yxO;m4IpKt~2o;7GA`6`O5gl#oy)8`2k)JT_ul@{E{?#5DiUaQ&Br&j0xuMfPEWaJ~p~U8&iZtkBx1y{uz; zFTll_DGfoVBjH-0wEK2>I^7A9mfbyTH)LR{uIJ7@6SeopQaQSgH2YmOtex!RP2$@h$5C0zc2+2nanFX^qpl;5yl(c& zF$(sr0f1q9_nYvRrR9t4?Ek2?$!bNTin(j|Gc!xi=PtQ;Q&?;1^M8uX$40(b+Ofxk zc>Z;G{A_HgkKQ}EjtrX7Vja2Qc|4(CnbEa7!O9XFBm2AL)7^FAY&zso@4*5$N2sTI znPx4%O@txeEDSqNk@|7Q6rmoO_$ow}T+WC63ttBim;6%IxFXbaCV4`83sX?&Jirl|GxRHyBa4aPT%vCKBqYRJ3D-4TEnsljeA zQ*&u+tFMfo&=jYU)^5f+FWn43#hwl4PQG?&^=pFm`wRdN70?WOA1U>Xo{F)Yv}Fe$ z0>CLg)J1&1x3~o}&W-$HbUb@hk>4psTs!n9{hU(B=5J>tL*YgEt5cKZlq6;7>GDm` zf=G*sIDUy=?n6xiEgAwtlC0A|w^!P+E<+3zGWxEpZ?iVx7<(ax_VTw_(MU~SI6#b>BHB7B5;%1qJKm?ZNk+c;ykgX zNH9k#3eH+e>N`LKdy~#w`P^mR>j65@i7S0M0oETuXtwFU&zGx6?vn?Qe)G@wk?zp9 z{EDca7*rPPXCi*^8H})ANP}nzyH_>;im9dFzX<3Y_?RSyv;ViaBL#Jh_1-=gKX{fI zti$%n4WE3<%~7-O&eXmq$yfTjXz{i^Dd{z0U&>1*FX(Fc-;6Y$`ZJU+pI*%{l%1~` z`2hcl!uwm4Z<4g+7XZC37|#(^4C!PnbM54-u(6z_-fTw-2}QK78|PGO zfZwD%4qgUMMwdWa>5+EWOlF*Fwtyzx%s?5(sR1>m^A6=knmyhg%#`9msS6W%Iv#FB z(XxJDuxkMtTlrkuY~vnFhxCr4VezT`05}$UE(9RaVIl2nr;ery#-Yc^$c>i80FM|J z_`-Q^A@5t29vx@>*=boZy17o|`E>i*df@?yQsNsV^|BU~A@VQ}W-2APdV1g)q95S* z;mrPq@c29&pJ8Wr`2n$6&EjW{L#-&Sv<&_zY0IC?u%!GlOc-$ey##0zp^7YS5O)+} z7X3M=_=+u-px)9y?iGeNKm^kF9}0!wA%%-WxE=KOfSyecLb|5`{@m87=p3@(gN(jM ztgIY3&>RS!qE5T+SYl`sU;djt*~qg_p8)QiMZll*zU+zd^BX;6&&U_QLIj~_$6$)v zDDt5F(FzXM7D3rnF>GpsiuU*zzLTYZqm=5vZeHMIm2$!r(4cVHx z>4k&}L^pUxuKg;=I$ z%cZPDzQD54Qz24ElKbARwv_?0F5Wn)Y9zVJm_I3t>kGfi7SZr*E387 zA6N3$e2g{ykj%c9AT3YP9Zj!>=7~FpUQekP-Io^GYo8*&QF|Am!-#ytVJ|xhu-Q7o z)iOff{g_@QoR;*Pyjo7(P;;pcyD;LynQ{@5d0J2V|(M1O)`*7Z7Ir@;SPE1o{99i!DU}`oVPQ(~BJ}Afgojmn{PB&?=uo4gL1DGh@37}<0YPY1< zY0NmyzE3gRH$F}M8GBZuR5O|kr@LM+MQoY)6jQqbuslK>V_mq&S!-DFeJo z0A#H1hK%_wGP`#8(2GH)-^ih&+!k;!&Y>WkBhKZgJ0Mga$1nrIZdnPd+ocfAyyEJF zu|J>3!x1iqNGeYJEim)ga+EuXA4vjj%bps>8b;(O=ExI;Kn-;F~dB|rmOL}sn za0MrG*zp3851Fre2;&HHp)l<&+^&>j75|V{7q8KHS4GK;t2sG}d{y%%#{Tm|So(9U zx#+HV1bkwy8M4lQB>A=-}H6PH)5+U=aF}bpc){7Xg7XA@h{xFw~=L z@syg+JV3Q!n2024<26QD_t)%g;9#UIVV)ia89Bt^`YLt#U7C>%LmR-34O%-UQ(a#q z3~g|wvP%1hOqn|$@>n^Z5oaAzo#@h1e@eWsn`+pD%9>CiSb&I^8dosiHcVb1c+ zXE5|2Ef5z+ae+CEeaT_TVA6zh_{~3->Fl}X?4Uqsmu*(f?~Alp#&T=8_owhqJ6?*C zli!lid)cQ^eeydD;s2c@`BP`Y7BpN}U>zno^*YKtKAi7tN!O@|%%wS}d85Wp^onqB z<4>9lmfRUr-_N}TYGr>P$pR>tAGwE>A?8R5Q%zY6A0Y>rFI2R!`j^arO0gCbTy|;L zamBwW5K77jDI8{f6o-5Y3G#p; zx`0Km_N~lOH%|WI@4s~am4rDF2%#GgdHP+D5IWu@ZJ!ru@!T=rE0;)bVxxt)DJJ)K zbRLx<=SGn5XPQ_ySP0=Al9b95AlV46Vl+cFGdG+&AK6~2@Rk3bmAtf_T$G7+1Oc|zm#h3;3hc}xHTuD$aHa@F3 z{LcUci^*NIJs5{#{9*ATOj<3W&}Il91}&xplT`F+19*p6ng-oR@S_+PVtj$wPjhbUE1qpLiV0 z8-Py_rsjY1CI(CXsZI*o{Hgubg8)*Eh*g9`K>lf?Zv8o^gR6!@ltWM*#mq#Awydqg z04e|Jvvqb^&o}Toyq8oGnZiQd9dnzJpMd4*Bu`OzJNa~#4vArdbmqW6biABiZwd|{ z7@M)z;rj81F9xRfv@HOv=j%Jzb{QIB2c!(=SW=>(t@$LRyWXiGQau+NkuDbVvYLWstsD8AHlZC+UEJ_g#NeGBJ0UFbj zvk$Ax-ZfMx21bA4IQab7zs~BC=SCX5WT=?N&Ja^Hogw~_Z;cA3PpH3u$X~E)!x;0| zbKZ)72hnTrUiE0NYl$B$72d1m93%c?B@_U#5)wu;GmUq!Jj`<52LcuOW{|^#D&}B7 zaK1wAcJ}w*B_H1p1b$bl7`|*#VK2gv-@!YLKf+^>P?Zuj^<4GzQQ+8Pt&)4^M2ELl z_#tGbgQ;Pt1L7}v-9c%QPjVNkdswbPb(J4_em>c-wPs*Rde_SktJ`&|KFpSYq^O@f zOr(eF%VWg!a=Bo7JEpY?F@I`^y4lxg)sU9$dpKi_4qa?Mf~VDAC?gyCafx7%`1U#C zVv1D;BoQo-9}Nv7$2*BcL_(MK76D@5*e+$!k80!kRV{YuI&^&ZKOqoBof#xW@amj- zWb^^-6!yF_5d|=w{{pOUq$O;=+A7wjcaP0chvv&^0Kf zk<#fD1P(KFrb3}?sipL~qEKOxQi{$@Dwh|9(#*kwIvWOQU*%{Ckk!hlkvofo$#GhjKMbc~5V(e03g39$qP0q}FxR+h-kq^v_;(wrLH&6+5M)1l3@0ao zfqwah=)gyH5v07@BiSdm^>|4ElR9LjENuUL+0y#t(_s`ZJMNPUm=mz>`d`Jcgq6Sd z9BsTrg1HHoi{v+RV-xH&xod7Oedo+YXq7nQ zV(@g+IqTzBlr2PLeDuFOz zd(H|#_AASmg>eD~QR_W%7ss3wc7eHwpYmw8j{w_a(salxJE|oWMq+KwVkU(U2za-M zX{v;N>X1|s$ej)LCIz?T{ojRX1;2zXdw{R29O5Q?Q`|9yWS}z(F}} z*wk&7?%P{K2(!#ws#l`NE9L5A7bhe0JIzVy|M6-9SaRfsP|DW_Sg}hWE_2u{A?KAB zYFHu17tkEkIg@9b4l8WGJQ%-(=KJTSYekHWn^qbJ6j(!?w8(qL3Y@HJ3$L1?vx`pS z&tl#QQ)n((G_QTPXdqI&RrEV&x-Td+U;0&}>{nO^`va#Ch!Z*s*-K3O6Zl{ET4Yi~ z3?42JBOa*&<{L{Vo`vvoD{(WOwj;+>*|+H3=q~^YQMyD#Uc)B@><} zdGWsF%U5%J%BC0;?oUnmPSqbsgl4~M5!n$hHQ4A*z%}Nl@OjoESYqVBm)h^@?P~0{ zTr{~LAc{I4-l2F8NV}r&ACe`&7?$OSI7NBuRNrJG9NWD9@gxGI6A?RE2yD%iQ~dM8 zam9hifqvDJZwPKXc{{qgVCUeC)+UJ3q-1vVU`yOG$Hg~DQvPbD3{o#C6$)M2IEFfP zVyGY`$H}_5Q3sd36A!{<7+q!q`Po=)frj&acl}heyBMvd{-WyQdDaG@LjaMM1!e~$A2MpS{d zm^ng&LgPmUr{KSE;2KY?rRkp~EGut3|ND$XsS$9c&SPaUMU=OvpdKt-ZJ4aK4;&U{ z5HHPeN8QaQ>+cf&Bye+J`D>i&AFmcjeM+X57jqp})Mc&0dAk-YE@V0H0bIxB3m8zO zItcPN^xJE4`U_O>Z6NQ7TYW0O^^G^mY!Qhs9Gnf9lsTc+zcF_#5TA!>>?rH?{xnIpS#myYeb!%t0qHNUH}|3-WmxWF9Acqbs!`uy9Hr!faM)E2LK z9cdCx_AYTKam&XO5%n?w9rVgz6i6k6@ue32l=?rsmcc;Qy|xq(4X03<3g%|KWhKu)V9P ztA0&b1D!KAD{H>sLXZ#2^=2PVX4^Md_wZ2{E;cbWmBeqaxaBEehxk2gJbbdS#n>y( z#?{Dd<5e(~@yq1PiO}8AKJ33xyxGlOOiWeIMZ-z)w1#>}TFi(lovPKSo3Xk-3@-4C>#$(k!;(GgB^n0oGAS!9 z;Ah%wd6dusJCML#JH_5($I6FV)E2tu4=stB*0Z_&J9fWusqXfa2mZYo9_A881rPwj zgbc{EK30OhXAxx#NbLb#L7pvD%idlyXn=77R?(s+Li>gHA6qsfLR*r4AEn?9XI!eR zb->1?2y<(LLX|a_$vK?eN&Vn>O3keGT*>#EqLsp-KinstWERu95w#^HIH&T)i+4y< zSS#R{bu(Zx5g2i-%0G!|G&5D>rH7muN2}K<#;ulSC>VjMwvpF9>&fcKe3K`tx_!kp zj4z~H!K<8N52`mOOtO@bH5(J|%URSg`Q~DPt^D#92R*N@Y5^5C8RSvu5|ZlB*>JkS zzjb!uHnFt6x>Lsw77|DG1r@IX#SUm+KhsLl?*z_pwZZWf$u%U3zlVJB8y(83bb+mO zK|-Ia0{@xxG>`!IyP1L8OX@Hv@0rfbrIXDCZH^#xilaciX)okr$j0g~CYA=zp5-0@ zcYu@U|3;?j5W&I#EGp%``P_ZK3_%~RQB?t524@W&-AX_w3${mHgbU4+ypxc|l8e%l z7buCW;rkrJUW%iDQjPV4nVkVUhJtY(RZpMou~A5@`sY7yOGmA-v=YqeNC(lHf1*sS zoDT3f|ioQ;w8>1+Vt6 zT~f;2#Huyct;cD9jqw3lyWb7V8%e;`tc)$-TDVzhM-vDjao+HJ(KVn|dcweN^IMN= zWVNe3at91D128h8ke4S%lvEs=-W++_gwzmD$qIh;Aw zp#^Tp0p^Dc#DbG6t<1yfBqnXAkt#kuO-N z4hp@CvC`Q|NAFcJbK?kdnmH_0+YptaB@bM_(jyjUoD=go_zRJp(K`7J(Ss6|1%APp zp_GPBlHwfR=pLqXbl7c<(OVN3@V}fDuP5{8hfgN+dsV-qEI{%1DsQ3I5)MTpthrK2 zK)goq`0^Evc-foXR~w0S^X$5tuy`7eW+~-jcpl@Q1Ar9{@3=#4FW3Ok`|VAHE8f&O zj%wF@KkW94?Z7SHs_dMd^5-sP>uG>t?e@HS)%&^0rD9cmOS>ZP+ zDA3>W0D3d`D#xfZk7Ly+W_qn8Isi=ma|W+6(as>}wfN z$UqQN&PH`(R2-k-u@mE=ts_y+yP^L9h2u z<91=dUh43#sX~yZ!oiz9_*xs?Y@{zaz8aSPk0>`X3MJzBOlJ0Lc9ZBwdO-VQM$k^M z`zYIg6qV#7fxl_{B=$L~OtL@wiRM{9}qih`E-tfAr8#icAnNE154w<=8e4n!b{OL^+ zp_fgJObz(QP5{4;y^L({>=rA_{YO0l$cuThvz?ToY_uq`g3MC=oiJK+$6L&&XOkz5 z7=T{*(AD($H~@^%HOV~xgbTLcqJI(;?fl{sB5IVWf2PPS1gw~vBs_(v7U@Kgs$*Zy zWY|eHCFGZc)z{(~%AzT&^d*-ZF>j8urNmDKiX>y04w`2Y4{Q9K`@u}LXAo`J#g(-< z%MKW7v_PKzg9UP41iK)S`Y~yD0dUy%1UPID{6hhDrV+>*@F@%(PMp<(SQFWEmvwN- zWdS2R2D5SS4n*k_Uz>bs*t~I4cELpLY@kZYXQvAkDi~7?b_=%BbjYC9Rzd3nHxZak z@4Cv~Bno|gd@P@}K~NM+cIH0tB?yhh;|#S}B^MklJlz{_8N~|Uu-RXY6YOn>+Wgvj z&-wi3ugLqM+VR?eto!g)#KQ2-e_<8%A0wQ=S1io}2BE>9nz|xDmyD>>&xWz!uU`_` zaywaFw1l?W&G5^(N#DAMO-rB2dOodsK#BE(f^%RpqifPOgFBh7V9Sc#;HXv-LZLae z2+!;`ff6mQs0(AFq&)7DFAfKrAYpu86CR}q0oFarDdaeeWE{;P)Q>O?A33zN!)Y7& zz4L-C0v9>_A3`wZtyi(V%RdDtAS*ym)e$Pa{t~uAPjv`_02xs!G_7=^n-NT!YOjl- z-%Ub?e5tMXtbcH!ik&(G&jJkf?mUv56^j;e_#(X=zL?o8$u4D-?WG|1t?E6kPgcu; zHF8W`l+cYKYXvp@#itW1tLoWx zxYi%Zc^_ON7W4-%RYWKL->;?0^ILqms7b!vNs2qS4-Wc8ZlL)62W{bCY|r}BBUc6S zP!~W)%8fXbshHKY!*4r6(80w%YInJbVZK8zBNeSK6!ZZqF_sv-UbP-GexWf z`mhgak0Xi8sBt)t!(|v}xKaXW(q&6@KDbK_LOt6TZ1km!lv+j_Ff^m;ktm>f^7(s1 zxKF213yO+Myrn$Ydpgd9X4RT&_@x^SnX4DN?hkKBt;yVHv15Q}$$t1eGO@lRs#T6! zdCi9d&aP3g+N&{32du&ERd3+kfag?#P0PM))&<5oSFU7^ABarGMDiKIKEqw^A7J}Q zj^c>9qp!H6h2sNz)TBvW)?ZiYUp(PJIx9l+;y0||vH57A39?JulL%uqD}N`o$Qu^- zU|9s-`I<{0*{vSQlqQ@G4sQ&s92O~T*7PZ{NU#sz@_4cDr5r`Gd<^&2pK1$Ucx%OD z$xNP?@!nA`cXiMyA+f$>IQ&d@+|DH41oU>kEv;FNVYiV_%244#r15-SSFica)o2=P z){g>+Rndn}*L$FM=Efm8=|!Y$#V=WO9iCT!<)ow3-a zbut2T`U%_#v*lXq-O*<}erEkcg-MerC{@Vxb%a@cBpX2?HA2e@w}<4r5ho%|g~ckn z-vz-1sK`~4s01%Uhwxs|@ZZG5RYiy03b4XARfbxlrbH*;jDEbmz{K{B;FdQ^Ao6vC z3h*5L$C(?tHswn%E{A}a)=UbUm=$yaqBD6u*uees-Gx1hq0KM&^gVvipJ~lDSB^(5 zFRTA7*3)}Z7hbG+%1Q3OL52%u3KIVWU=XNmNMkkt5JUCqK&3-+XE;34V#jRSm>z&J ztP&Oiu${DcU05@!ZsSACQ-6e$$aFAqj*iT&23Fvpen@%7t-%D&?nIdd%01jC*&J~u zYE%@Zudc%cEW9+B_9>p7+6reTyV#PLKYqP&Z>p37695GqNZ1c+K$w}|X;=mPk8|g( zs_9kls#<%VtoCA!*F1V&wcuA|Fgr73iDwTx>lHmi5wRe{bYjifZj%KSs9%0zsq+~z zab>}!l2&n(`eN?&4=Zf)*qbEZal5mvwPg0JoD{HwC>aH{=B#`G6<0|npyG}Z0zR5VA*wl>oQ>q!&u)3I8!Xt3k_C7*>)|@l88VSMz#fga7ts)ovtvkK@zjXX> zET48+pG`2I^)VmKi>Ebs3QuEdZhn73feke9m47n1^xYIFE>PI-ERYM z3XK7Q{#XZ`h4G!6(kfE&wRQ8Kq)6<~XXwCF1*D!=%KF9EYMbLh1cv_))yH$g{vrg) z(Xy@i2uzxbVp3UiFdBSY&HMBp#0r?+Y|PIkgMJ3lE3~?Z=;Pj&RNjfwh7}j$F|0Atq#m}s2vr+%)qhkz zu|5d@W*Jd$Pa=z+$>?{@x}2d&+_kqY>-Ev*Elafd+Xe5=*>JY0SFA6}uv+1B0WdE$(H?K}h`aKk~^u`}`uMFCec z_98rInW4TVn4Y^p4FAFr2Iv+rtB&#fA{pFU;wx3jjVkJu$8GEO_~zSQUJ(403kcfl z@a2QY?mf|pqck_XA3(HX53Ncw@X04KUkPBb%TuCt)wtPf9hw}327puG#JTiD-_fM zUP~zmhkGCto>$zB3OIT50Kl@Njl3Eoy=vn>76ZojUR~kH|4CAwP)yQE@LrC|X|H;T{`i1ID zNWX2cRNMM{!ECEI%n|_K@e#r<+FF?{ir`?TOSFZYh_qXT$2T`@M()o-ObmgcBhM$_CZ@$LmXz|}0%=>F`u3gQWli7DI-LQ?;YZcfDPsTu1Ve(j9E>haJqQ)%Oy$i>VrP`_Gqu>d0X zv1ItYRTbJu0mBC1}r6~i#k zum03Rl$(mJ*x91Gxe@}+S(A}M6<$oq6lS_`lM()ljH_J3($$a=` z*d2D1wgQ>cEK6^)@H4zVU9sGuwWZjxP$MEY_DFR0B0M7lfpt@JcU5j1EiW{>)whe>y1Izx`%WqN`H! zSMT?Ihv~!c23(O7dVv7VryJ%`?IV7sg8<7$av`*O-9`g}2G(Ms`Jj1BuF9ZXHHUe7 zcrJgIoF3?+pStd<-pM&->@zZYk^8jK|9Jvhc`r0qaU9cr0cfqS23_Yx1A_pH=B{<% zZ_&)wPozgakN|h>t!!0RZC{Bv3fAK>GEgvx_4al+F6^<4>EfBQIo-s zyd*|!U9RzYiEaim2=OR#bm^u@g_W%bQW>&XGy+pDSJ&v9w`wTYnn^&nMURgUhoC|K zb2s_I^?otheLOWKM-Qj!$mTDiS62ZPWr@=f+l)vbu!mRLCi~dNsE(6(jgylC|4utH(}Hay0Rt)gb@GZ zdEUEkfqa)aVCxpJ0ojHGX@Om9ju4RIetS!F9(xXV?PSJw5^FO&FN6Y0Bdoe>(6U1!SdFKk%b zO>*f@N``3-OSoTPCK`I9KnYEqo7e9Zw?kXQ4tPJtFUNsqmQFcD9 zvYW6F-q+f|v5(% zmN#d2FqnWfpvN)Hp7wj-R?|En;xvS6oa;fD42d&ovb%kww_c^+i+j~O+I{#aGrmVO zGnRdYe!~L#l;KX|l$sj0xhOt}NMg%3K#Ge^EE-2r;)9_rPu$kc3{5>_^k=+F5?!-! zzxuctxXhIaXRIop_==n*i=N^tEw2{6${UMx)5#sHidHjpJtcpSn>4m&VJ}Yuq`Rl! zem3|y2bT3__&tMqziqQXB;^f&8)8(okUJ+tnn&XV*D)rLVNs4DvVkOHQhA$+Pr$9W z3u^-%4W9SwNs~K4fzkA{n5Z#yo4EJjU0q{hmOnk^Ki~Cnh7A~6aL2ncF@oa(?L6j1 zqr)&393Uh?XHRdrn%=wkS#alRKKmQ`is>~mnfBVU;D944QNVcf)43K#oah(qq#A#CD39$URI@B^=lV1Q{Malb zkzQZTEe+7-fKpc2%|UC{Khr6|3H}teU!ZyfbG)F{wj6YH2?0C$jG`6Q8%Pm6?t*vX& zal7k=6nI`-O4Ri^uREAQB%!P^XFfh#3~9I;QKUqfWJU%>fdaW)ZYE1bpU7$B>9>`j zb)LjuDq$BI>6D>=PP~Ndl-~est(vk109$K#AK}5++s$lW?+-^;dzYY(5;#@8{JrEv zdSbD0@b8@cJIDLx@ZGb^p9`^b^GjEA{SJ4Rj%>GQvyr%v^IKT}x}&r)?inZN4^>UV z@<5Ky7bQ)DMCrzDuFs$Qb|wQ1w2P-f;A#dP-SO2A?g#Is^epV8x9uKeH@N_dv^@|b z`^|buow!@xt|3*EBEK!46-rZ#^kAJwCHsqm((=lC2@$`{S$z@$2f>)_)(M%-Qnaib zf0>YOj^u0nd~dATC5$YS!eVwb-~beFzYCEDbVB|)ErM*z6Ag9~xHoVP@9_D~s`zJD z`YadZKT>@No4=17fnA8dI_M3wud5lk|J~7`ox#9Ecwu(=fI$5wzm?U~-#?R@S4vu% z*t$SL*f+~pHyMtsBXYwRXkBgK?(g{TLm_dsch(8`+&)gUW_}MbB^@an2B>6v&+br& zb&&G^({}nF* zK9}$@X{N{+-`lllEWZiD|AU^3L5!TGYSiS7?U$$jrFXtz7KofeU;b0q-};PWOR{x= z6=<@ZA1a_Q$ej_ILVC$};~;BT&&H zm@kJTa%gmAW;WD^VOiDa`Nb9|Aecw;lfPEEF zYQfYEPm#01^vyuxc3FeskFQUQnkwjm*Ef%URZA>>Et}lkY?t*<*9u#uOz$_WU{n*a zl~*D<`ITx=v5yFpQI!et?CYQ7N=SK|H^Z_6;S3D0$U^(%3JrZZ?z~KXpw0wN#OGDs zpxz9SK^_9N2JZg41L^iBOqUBR#be4sh}Jhv55hIkxJu_GOxj?OXi>DuuNX0GKOOiv zB(>wF98rR|Z__j#X9JNXdxWOv5$eCso3%-b`zzhzb?))OONfo_|9=&ZG~z$;6kdBm zb&eP429$5MX8q6l`2Q*2aE<3>&?%m7IZJg&PI))g!p>YnBKg-TjqO?tA)%H(HgqxP!D;8$mnYT-djr*qTWuahJ4$DpCxa=Tk?sh5-0-aO4C3=*f49< z&!cl)_E)=$hxLNEu<-2maebFE5K@fIJ>nKofv`KdY`sUxtwY94I4>L7Gakgj=b&KE z>H~bIv(#^7w#7|k`#W09ndDBS4s`>0=(~}-z6=+MkD*4Zz{~NW;%Lv9tp$UNWBbzD z(cRz+cr*!01H*4c{)nz(0~Zj18#HjJ^Kk$i40E5V$GNr zm-8vn%Mkee_ ze9!;p;O+NMguMJA3TKUj%u86BjPiYw)Mf4MCX1x?I+JzA{OZef5Yh>niU2deJ~+{> zwA+6t4%>fqyr#n^W6PEVc3Oew`#FP@Z{B=HMYdPuC4kT9RZ8=*%Z8choy(gyQWDV#AM40lct(b zE0r^nT_WvqC=CcqP*XZ^lGsV}(vGqb81 zC$K)AVQ&=wzwceb;A7R-eyi5UZxrTtHaesuwaq~oVg1)ULMdIVv9Z{*>C5Bto%f+| zD!a|SaOSTY0-{@0S2K|i|DLNe$JYOAiS)=qi05;4E5Iljy&ci}U7rWi|NY^)0ml3{ zW1XQm2Yj*RU0W%1J>@}n%zBXiu~;0C?p0hH_|=ej$8m&WsG;BWAG2u z5vrWj{zSEvERKyCjN8slkg4!8a`hL<;>=J@-^7 zQ;8iiANInsr(trr%&Yj;^dM{iXa>P0V>Vb(>#d=di04!AEA2t<;~DdN6q6MNX$xS+ zR|<#JMNOD#Lm`@TLc@Ofyx*!&4Y#e|0%&X*ZSYHbNLd0JLcl7PAm3_RGCMO=epPjQ zsVz7hLK-xSGX}lj1UHgOELVdG_aU_QMGlT-6_w#qjvP9!ATY zXc|F(4imY@!i|AE^qlz12gH&!Zs7!XgmM#-8eo{r<*58R+t0X%86Ze&TbuU0@u`gB z9@u@yJmx@CcWyC-Ix6Rd=dNhM8BY6aAca$wy!6j zo!HdW%72CsfemMi72c|t`5(Lew=Y@29R^b$IXNr2l-kz?s6z3pyx=n|6}iqf0aYPHf^o-EW`Zh0dgq zcs$-rU?<>_EC0QI;2%EKOq}nCjXmTwUuh4IbCdh?yjJ^)w$1;J6)G9&SK2$LT6ER>tuEuXiN*M(ir&U5AefY@M}{4c zqz#BegV}OrI*=dZcD$CbtS{*v5!n|1+g&GxW_htPTd1GE zY8|(h0U?;XSu9*_L10}}a!U29Sl_lxUU~W^hwl@WDT%Xb;z0%8SD0Jyw1*P@oZ_bpZq-G5<2;ZO73vkJj%K~ z@}PEpaIt|+GkMorweD4)++MpVM>^}ZuhB2(|uy$So}R# z-5_eSwB%-e0w{6#TC&-s z`}l3@Hh+}$;Qkk>MH8v2xO21Y{tSkZROb*ml+;$;{`8w1_aunXHA0OGsG>P{~5akR)Zu3Lu;YAHNCTec$EeU$r|=x0FivhRiBsxW|U- zeWz8(P5&AD8<4ZcuX@-`1^T%B_%Rt*RUWWrn}PM{4^Uo{Zx>)cIz%>Lg5ZUqA1(K1 z%e!qBWP)_7N@W*LWk0Aqc+)caM%m&4*jnb-GBrTM@mHnH3EgQn1_Uw;m&yGwN5**s zxXN{1$QB@~UtquDl+WFNhRH7nbS=*8o4%_5IBt?0BJu_I3FkP~S2dma$ zIP4qCT03LII zj)LQ1fpCKCf^<>G*Y=Nr#Hg?H~4;}R&n-Ws41%sC7v@gXsCh$j~`ex zeuB|_N<6n*JHeYLddjD539FjW#M1I}M*p~mdBci;r3O#FVOBpQe3CxA!{DjHC{PEb zQOz(lAz=E-(o7Rn>WxzS1;L{pO-`tJ(zBp<5U{!qsg4kYwg0Vc1bO*)#r@B3nKW@X zjdmL68c_KVWstZy<125|LAsk z>2)`tph%ITV^%4$q^I(v7b6go1dl=?Q$)jYZY}vs6}k%!+dZSxo-Z4cYmD);8>e_o{C-5LavC$b_f-Xa}|;(h!l3g<-QE zIk@=j7lc&+PvBX zfH&H_e03c&p?8{W48HWKxKj>4Xe%*!A)=rPixbA(9r7CjYkWe!;XJfo-s=TZaaguu zuRs+Bnr`=XoOJ%G$Wp|8*xrcaB$xw&G`rnkB|Q&H2Qu`Kf3yg_|7kH92?EOxC7xC% zyATMP1|?iD3Is)i0w(|s1Vx{&FH8>^Nm5Y46GSTwbs!aRPWU2)Zo;l)BqSL%>DbZa2k`)4sQP1H66@iL@1Z?kBk8@@RV z?8#4)V(SkabA0`C;A6kNh6)Dv>C=z}+GGc7r;?R)>qTqA(dvkNFSa1I*76Me!=i|H zJZiReWFkd1T(2Y2*O;ybT~t^&dpj&*(2p-qt|E2pf9RzdD9nu{FHUzI>vecLGFT;7 zvHz+StwXKbOtSUCe(oK@hTzio`bh(UGQdOcDkGdZTg@dDZfuHt;oBPCn zF{BRJf*dn#NUyT0W#;|>ZIeyzTcK2u)HJqJ=M7B55{EQ>6{eE>L?>Q@T}xjqOFN&z zyf^w|#yt#jrTzR#4|M2>nI8^>y0g*sl;^ISo)Twc4%kBvB@2A38XLlP-`iu%5xnZ15R}-Ypc?eQJ7@HXej9zsr=ztLe4(-W1m{}yrQ(2v8>czk zxgtc_&|w*d0lI*O8H>eI=@{*6cwxN~!yhK54Vl5O`;kzj(@GTixziAg_6E{E^2l_> z6UVtY|2T}u?8q@4?F_%kvBX?SVbUs6`BLs|Opa$}Eoy^|? zn*aRbU{-cE{-()|>3D?n0(k#?Km7i^C#rOes;dXWyDJ)X++PwP7b}SW=^WixqH=&HVvgm2Tx;4-z@l_tRiRYX^3GU%;Tn2tZb-vN;$ec2i?;4oO%`%@&3@#V9ZN&frZY?T^)8# zjvakDKmN^NuPR0Eh(SRFHU8j8D2;huguglJ%?8g^S)(z5<^xOvq|zMxlsHeaPd_B& zpgf6gG_ernn{@t2$nx0ROnFq4kK9n;4%)OzIk~(=bT}(0W1J{>F~s#btHdX&pGM*! zfWyLgSdvPbZok}2!Bcf&Y3Akh`HfU0-?9G_1|YPrP{NO;7w_#ET1Bsz1KJ1ym2rg} z!qGJ4eKW21LXwnqa%~qt63e(pS*Zz@PAf#e+~Q`!5`Qon?G7h@k2Q@@R&Nc*i^2YW zm15aI8@{A`??;PydpvubZoB4(n%p?4?x8n%Mqk-cj_HBPj>q;}>Sq4i0~h%)Rpyy1 z?=qbceWA2>my)t}bPi~nyz_?C7g{$~vAE*A*|=K0Bl)Ft+Nc}m?Gj2(1Z~Xg?kZ&{ z8HG?aI>r}6xCWW;eta#vy_IPv**6HLlZac0aozzO)~>R0wBOWp=5v@=y~AuyV8B!h zgCE%%Mytb9HJ6DaB;r;DS+-ISw>zk~$-ZYLs_CJyL))fElxJ?r#$HN9Fr?;+jh_jj zuE2D!-!c7oyZ9yCcHQ*a^m?@^{8;~wiT#}#!z%KB#KN2bqLxSzrrzpsKmeKMt5`V4 zF`tZ9tO!6U5Mo7gi917o`ECJM*l>np-L+(Tjk%y4aY851I=dCO_Cr36uZu7*TBk9ZGGN|mMHnXd}8N-?;jf$7s2j0h9WV?kqPdq@+=jZ#G^6d!hM(V@d9o+Mwmlm%qU8HBB^YdhWe zE<5>!-5O1)wOe^WdZAwI6LF3XYzAvJnhP!8^b+GJ-0*52p60RPRrWyA0sJsUKpbZ9 zC*jt=s;hEOQKT`609d^NXE=C|)U|jZuKF{f2$BE5I?KKog;<9_zkKs0c4zhF<2w9& z)f(h_An-L)biT4g*xWk4evcKkkH(d3zI*jgtuPceBl-Yw#?TuwfE2iK&MQF7>%(zk zdT%kxSXRIekY2StpdM};{A3HfQIRP0+6Tetr^tf(gSmwGP3&1m2qC==-K@U0HMTC0 zp8ZGI_wgjtE1(4@zl*}Gi2C_l_L!#f5b~`7n=;Mq2#2!YMk_Y6`Z#~*xb8pSsvHMf z@v}jm5wh{(-mC=8v$~LoFc6B%=KymJ22G=`OUd)0m!NQnUcnMWm}6oSM4E9_x7zR) z2*^aH&Pof6F;pX(lGe%Gl*ay=*#RWBmd z7o*P7kOVJS4(1&4>{Ng*=btl~5KWdT-W3IzJNi~kAd78nu}WM2{l7aZt?^r|ud1fI z4+oX;y)xD~dgRsW!vD-Ov^YmZUTNKawVx1~a_1dORE$YdiX1PlF;EGGE>LlVE>Av;t zO6wxBrPE{CtEqA`QWtGAILuv(#-en^|Mltkyl>E^MJi7Qs?Ea*W61kMbLqwsdEk*> z1_TWVr@or0TUl@X5>%6?*EUU>z&LspsI|weWCZCN37-eL>bTV_exivcuNR(i*Z#&b zx+hny)(eLVb#IV`q;g8||{{o((B zh2foQ*ilygl|}e8M#-aG(oKeyG@Z#pQQIWibul>R7)oo<*8GNA8&1|HQeNsLOdqBk~?*@9K-ddoa3HyjK7(yNZq{Qy;{0V1;q_WkLDc=&!e`$J@mhb_*&}fyRYAO?WaaKl!~H-* z4F|roXyIMCIFWT^oSFrEno|RJ-?k);p+n02xm`=vzI@g|XUZhR?+j~Rtf;PChktKy1DO&J~-<5_eV&1oYk zdFKIy4E;IXS1rOg$v>t8OnI7Mq}Cz;h8v9Bo-s>>0SKsx%}U3cHll$3()z1*CF;Xr zWMqA3#3wD+^{T=JyjI^nlL*YtmnvV>?1A035HNbo=y~|C%#{2)OI1=Q2^tqYv=mW5GZgj-42o`k2d)hhC+xJdSX%ny`2YnqXV4{XHy`-n&ga}4@x?XJgjG) zDH$fe-SA8_FPh{s176_4|glJwbbd0mQBl|R{kB%Q&Rugqep6#oX2wM zso23Wv7?@$SUUl;FHEen(jyDDlJ(Bt=xlBHW58CDne2h zZLUC+g*y>LkU#&ey;P4uic~fhhb+B9<}NOYmVk6A3@- zU>#MwJA4D)lA|8_h+WSa$%vY z0YM>7W%R`h`Iiz0;QYxRuvR9F+2A@n2fS@OBRo?CiZpADV7yS#a?OdqsI;0BSD_*n z%gL9sCtpzn==5yW;VrA`I&kTW>7q^CQYMN8(1bOXC)M#p?N)3CxYjaj@xriPE>}R- zRxgGzb=1?MzH^T5Go;2?R-6>Nz$M35ZZ&3CJA(w4nOx30Kzd5aqNVl6>ft9K!yS)F zbHctX6?F7wyd^|bDqqqq1FjGI51)JH_uz#9*5>QzArQdelGQ?zj;@B8>>gkBA%~18 z)u^kOE{KM{IOWL0VUw=G*?X{hX+Vp7Vo~}B)+PE~_K)(^-3HHM3Bo^d_v+S_0tM>L zl62s1&+zR0sRGU-<<1n0uBff)Y!MKpBX(Cfy_}*s%`KFIU=ToZ8#1=6tFHS4I;Uuu zOSTMd8O8f6*>)mPd*}kHGP3*cpn;BF1#%9ftFV!mDw8#>q@Mb0G=UCyrkzi=r2;0Y z?N`38IYf}i-v`dBXf;0p=DQ>?FX1a`H86?(#R{Y*i!O9E?@>Nq_~D#sM#OwBz8QO=~<1N zzpf{$x(+V^An#0|I96(N7a=eet)vbO0LVMD5YuO~nAhS(=1XSRbt@Jla%{I(HH zBq(_P+EADIaD-V{-eK_piilTF(6(0=p8>K0c`&jW6&()8Z68?kMS*&ZB^CcC%EJyr zazO)9H{M$AtqCj{dk0)TKh~~&W;=GNK93(K9fMw`X?vyg+$Q(l4Q2IFQxK`0wu=B; z#pQ^J|A(@#Y^$?Nn#JAS3GVI^++BjZI{|{byF0;x6Wk$aaCdi?;1D!GIGbnYT=NcJ zU_R_WPD<0F{^g#6$sQ^+H-Q7}}K^}8H3~RCpAwhDswRH%= z%Bz$>u-h{CD0LD8G3S$iB=%@#)WkAtw^pkeLzTKbBqA}d1^;;~KqAFmwr4r`siIXv zL16WfNkh4A8M4ta8E~P+E9b#F)LIJ;vF$u9g=aR*a(>iu^^tclP_ z|B@D%`feau-pa(aQTS(DqV)(}3q-JxGrZCXU8-XO5=%?hh^^)m?O+@(ApVo79Q8o( zn3m-$b~4i)qc_?eh|P)R+&7FTg&4Ep7rzgL=^T$_TinKMH7 z7@M=rs)KtI*#i~5a+ZNhn*1Mn;f%$zw?=>h99bD^;`Qw~En}Db=FM#Ao5NG(#2Rq5 z+Hmv!-jUOH__u6e1>{M0lKz0NpJ5H4@k@6D`iq40T+#DL7}tbgxcJiz_~GM-ecu`h zH{kcy_#9V%MHVXw@Uf{~Sqf&|0#H(--NBxCt>#$H2bgKPjkDp%*RxvPRZ>_CS?&RTGiFd}EF?84&t`V8&y?n%t3bG3jZVx?p{kG-%Ex&8_=v zG;;3loJ+k~*eZS!o~s2{<}RH3G{UFi_HT=wS%BbKw$CMBaKjvZHH zCSq(POesp_2^-(yG7N4Iiz{u=9O5)0+Eik3#j)#OQd4S$q0Xq`o?oxJC48LbNmu|r zrGVf2_&$y|t`{AEdlR6w2QUL#L`32$Ti@2C{Qog_12T>mt(KUZ?W2$O?U*kVP~5N5 z9gj4vlj>Y@w>?MKJgHkEW?TK{#$O^YTzsF|*jK$rrI+`&N~Wao#;R2=gcoaS?6S~v zk@F_i!*E76g`@e*CoO$YomwU*tc(VSiDl-hU9?zi{>D_xk%r029#cy&CXZ0T5W|Z`dpnNdKh6HQ5rtDNIrkypGh1W7n47g+AS2t zmgKU>Aj^o9b6Em{!}zy)|leF;bQK@l-}s-s@( zMC~yyh_HdNDWTh1T{VX{aCS?>Hl(9JnQ&VoY1%nX%B{qiU-dXz7T}3S)Us~Xbhx@k zf(qda`dXQOn4b(-5r(cf3khb$K9^-M#+ew9tb|pj2E=dK{}aFEz=A#OmNrBd3Dc_9RN-zk36Ik;8FZHd|5!qOID?pdiJAPd>L5UW^<}|gMTxT7^1Ys0n za~n?%qxhGT#Cb_*&?P$~vVd!-l5| zs~T!HQ(Q2_^iQ;sMNZj7J$vq^|IBaQbfU~&=0FPlAM`@2l(SMIQ-7?$X3a!+RWy*JaI!L5@)Or8|Rp%@}Kqn)M`J0GY@xvGq|ir z9C!E5PEj+!3?)OSiFPj`NZS<=zkfq$EqlQ0?!#WhV5GOh-XMYdLiN=&H&Q#jeQFa= zr1%27BmMY6vPq_7oETqeNDZ6PR`HE02T&q0xL|TsIrpW=;j^UCpaHx{1YO}CVm9nv`1fLS!Uz>6wI028&@~*!J)0vLq7qN*#&{RX z->;Zv;?ly3eE?#g-;Ee6;~Q^x8##cr)IUMe0GB%mBIdwTq2hmHZ3B?WH@@o!zr@Z*G4|tZC#3m2(fEwws0rTsqij>H zrLc920ui3Lo|EGm8=vxvMA)hc(RSaH5*um9l&>8|T^h@#Wo z;S=;jJYWy>j!cbitDSTXc?F%f6|9%A!&NQ!DMq~sCm$AF6lR&OuBKoP;BJ@ZIH`^M zvITl;(fk+Ke4BWfFm%fmxOU{DTAydvlDxDMd9e1VRFm1pnkAOORIcR$Wq z*xsmtPD+z<+l)w_4IPH^=mQo>!F4O$z@w|f7oeU%4w-cIUl$a&5+y=?%-Sr>&%olz zmTPNkd2URxdGFiVTp`eXV23hOG3KJ=X8Esy$#UT;4b36* zU9$=>^;T3$Zuvo_SeV?qm{Zzt8o7#a_}^dd!6ihv6W>(SG9XAhn|O{VsWEj$-Kx0G zkl!Uwq(j52b4-49U0sGz$&wJ9>yb=uh=agOWI6u@ex zV{hxpO-JvZ_63@}X3CIBx7|hnYVhcHlw3%qNZMVt^{Td~`s3v!TGRlR5#%z)HPO~t z;*~Q)?Xf%_g>}H!Lv%BKR>rt_!vl-_t?BlNS3SiRy{xl4;7|5>w-%Y@t;AEnCW9@& z#n5ZLGPSQq0NS4q=IdAUbn*07a z$;r~m(90Zv-)b*_f5*rafN}&cZ?|RPT9x+KkYibfuSdC$QKMcnq|(%Kwmd@6Pb9WB zCO4?gNGZ2$OAk~khUN3Hz~gY|Hn5Y7`sFTVb`3%~y(Bx^pP_xi2(it4E$-@AsqI`G z%nTewW3kagTlDMJs-7wmiU|&1uH?@S`0hm8b!Rhx6YQQ!V8|nUCNnMEG6NZzFE@qhta$57(?i0Ys5?9%6>R1 zq+FX9D_g+kVGoQ!!X55+YQZcGmOF;x4y>k-#J(fdQyLZE$1~A2O+q>*b{~~9ZGz5E zh4wxwDG-cu@LPq80QYIMhOX&uhu}xdeuz}FF5$OqA0F;`l9G$@EDco3uI0F7f}Uk- z7#t%dP?op9Lin}p_^O+kZkMxoxn9-Z4HENPY9^I`E0S;3Rt^AWy|Oo~$?V63f50os zk*3xCdMx0{o^?HRgo-dFDKh1X*yOr-HU9*&OdhaQpZH@lBs2u%$&ah)c%76lxHUW- zLxoT^uVvrr09J%G$H7=+zW`nu?Ma`xXcR6Ly+4&;Boar#jU%(@xi(d|BCPF(QK~a$ z6`;8I;ektV=9V?iPF3&%%tfx9xKK5$wy(U`;ZjJCgfDqh9HHk@pdeQ zAAPa(X2>THk@9|^vE@Xt&IS@|+;tyUvH5%@uTXGn=bJCSpH4xAu_icH>2~u1d4J;y zDCMfPk^d!psyE(919gi@tk!M%Wnad3YQskisRuF2elc}{)>GHI0h?v)_SCGp_R8^l zghN|bY7@R&hUwbJ+n(2ne-JzL=I{XQUwZHNy#QI?818(GePL&jM8@xE8n(8e{3WCF zzun9Ue+Jyg@$d~2?D5+`=tCVYCqNWdS!SkcrD%8$lPXOCnjYm+`9qFNIuO@Z(De__ z1=n&d9ao`$id^!S<~Gq)jE0p%P9v`^Cg5$UtLr}18%3RS-8I+m_Tlx^^aXneAa*b0 z^nh8D@ZZS-oy`riO2hcM#6$yPTjS^f%k8=zTEAnU7#x@4Wj2T~I)$oymKQ*n=8a_< z!GT%@#y-%j{lSA<#2I7pQ9?DcVswjy?c*@gN{rtCS|)|t9b4>YQC(3ML4j-+q2-Vl zj4iB&-qTzQG`eTO7?AGKfrG7fMHBj7X-Dp;`_;39W3dFfKTT+sw9x0jIkIUrX{TvG zX>fXfY2bLH|FMadjRw@upj)mWWbL#s;b`voQu zjKVINzENLDUXxPpzQ}u(6nP19hhHdFxa=vmy<)I^FAa3 zgc=@J-AkXo)=6VOxqQ~NZ$aeX;@HpnLJa1~u9Lp`ac4@ZT0AqU-WpLXm9JSqW%^Mh zsb*{Wio@Qsacn{9SJ|OM;LJj+(u30vlVLpA0_1!qohUp|1@Mks79hu=OLJ7x=lsT^ zn3Vn1qX$gut?yXe5#LhON7;FDoT$_Qkq3Hpnf0A0%WpGcOs(2e=G$IX{;!Wuvd?N*r- ze#%-7g+e|PfhCRppbgQ^DSodmT2D5>*OhRP%X2N6>l`cJ?*b$ zw*6_Q30)4`-5ay--1a6u;vUXlR*G8$I@7Z zDQeE|GqOaXJXb&iq^Kr=MtMDZMU*aQfwbRXhY3b++s(=^wvF^AIV@2l`C?0##;*DW z5%-TxYSyxA^cpV0JiSik*VZ!578XUX;d%VAgBKKqsG20# zcH{)r5F}OetwiSq+CW=;52DBPR&>_}7r)RgV^*pcBPOWH+L|OEKu&Zt7@Jx`iP>KP&Ivu zl1i4}zkAgf2|Pz~zX%E5FLGmjD~-n~TJ~iJF6frK7vQHv6^(L`J5&7&-`)3{x)E<2 zExLx3P{7%meVYW#iBQM7$LB1ib7TkW3;0MmP5jBmr*C=qv##`ny7YnLml4|S(z?2c z(Y%LE7QNw~M>T>AF@v1kwtvLR;G9PUV~hwC41s3`DfnQ2(vWGKhD&X*8C(hQ3Es?w zMDU;MWPxHABL2wmXBz!sh=KUEm3D)CqhDI#`LfmpxaisU3Dxl@yoHbdHI6l?)+r8? ziEUHneE~%XBP@W5X=oU43AfzJY@(1MA*Ot z&$f}@2u5_Q(|FwOfdr^a$)1gbOrBy7eOZjWA<4==&)ck_^oll4;s#H38=faQV|Jg! zd;C;0HLK1LzQ|Waf9JPrS^7MaTO>FJEG8(K08DTd>#^Py zV3@5haga2pWfj+`Y(W>Db>e=wgQ014mY;sS z{5xsJaF8)$K-h?FKd^B}VD%ncq|xiX!j0>j(rN?&!8rW5K)b)%*bK`H@7cHw`iiqN z-n%#wUr(42==3=r?x8JEJwPg8B{qW~cP2lr*>w??M&lK>?PlIMD*`UTnM1eRCJQn$}JtYJ;Ta6R(Z8Ppyh z7b7b!sM>_I5dc1EgDtoe&7ZYd2=G`2^-qJ<|=Zbq&hTf!ZYg#kxP)l(P3ESf5n zVHA%}MR<_rM;;$Kmq4i=qbNmrC(gX$OVx8}kh7k;l2GQq-{pNlYT|J}eRffSQS8nG zF_PQuVBHxkkw%yLWH|n6(5`#Tt2}N?6i3mU7THins8QGW- z)cSw-DL94#ATI`H1@A_YmGO-}#YtZ0Me67MkJQf}34V3k*V1JHm>MVY9A*p*x?I)% z7Q1*xZixVe=id8q5$nz_r|}L#<(D)dW<*x)X1^28=<>=k^FgZpJ3Qi$m3v(@Kd6>G z$!XaV(lYxesQZo5WVx2TZ|vxEJy5%hfe3730`=Z;IKaAtN5+IEFqH%z|B4x*_e|7{ ziKZ6J_Ur}s;D0DdTS@BS_D}a0l~#D1if{(M;}>9l0v|PpM@a}L4m!cOv#WHgmQRsO z^dH3d_~*mow1$gCvFJqNZycCY&^;cAp=5^e?H_47E6gS%JY`xI27_48j8vTj?bEM_ zx-vB-#}`Z!-i;~Cn@ey2XIp@T^`)u#6i1vFno8eH#Sidq@eNHCZ1S@QW3R@wzg?=5 zpst6tGJPEN@Wue)tH&p67gkQ!%!o7QnAtW#na<#oZJV3F(z?E>j&IA%FJzFOD#nh9 zKS3K@V~6TB{;Hc9qtojQ-w=*;Xi)>|AR|!!NHzmDLDfAyPil4m7Y!B;r`{afK1p@u zIadOGHOSGlVV=tnF)UmjN?~VKWr?5IaV6LS{7m?*L%^6WFt&o4W#Oz7y&z^56U{Kj z+!`vqcUG&&9qbfDT^XpUn@BI+e3LrccilGG?vx943$#JcPA?gaKwJF-;`HvT9*22M z24x9=Dc8F(WoCTilA)9PVGEe8tX`wj)(nKA)?3*?;xDn`FMU)XB`-v5j@_vf*zjRE zas6;l&pUy2hts!lj@~Leml3D4x;!Cfl-Z3CAloyKdNB%7lOdHIOoEuGrUGc^bqzOLXZ{j@W=0o8`>7(mkn??O8C8h;& zlJ5>#mrq8>(>!t_-O_8Z;*IAI@@KAI9Y^k<9q<>S*b8_3PIB?BPuwPY^W|CzeBP%L zdrYu1pW%nZB)LVn1!G&B>SYgNpT)RXm929L>F;E2@f?QBV{2c^`EmuU*CRwo)l@>& ztX!#cWYND_wmvUM%hlw59_U5rHQMjwgd{Cb1}QXoD=Zw3)|41ghi<+@sitKD78TbF zgn%r}8FYiP^TQ;YkGQsQ;{$pHh(yAm`JNH8JZJwfGGs)Q(q7OBU4zfY75}4C(T`8s zs5>rX*JZvM%JkNAjoBGsMUWY~8?vFaQ~-IYbu~syls}3ZN!{NO@Ztz&T+AQ9@hm@V zUH-d1)*G1gbpgQpAKd2O^344h^RiV9m@eOKAt`PIF0gwt>BFq{QPDF0>T*Z=6DSjl zT=DUrKNbZ>Snx3eH`SP>mc@A`488{|!+^>-u&W;B0xmdoIDm^~So0lTzo)T%zqa`n0QoFq-UV9kyBXsel66s|j2U z{fVe5tKr3M;4GqYy!X_m76C_btO+QE(+u)w zD@OPbYodiz`gu>C7}=5nsdU_oK)^8z_Qw!0ch`Y-R99IyQs%5@N!~S0R7q{UugxwD zj3G=pz8Zd2DVkl}>MA9L*r}Zhsut+wL^MC#tD#&c=#M%Be8Zpf$x}-T<2Y+qW&FP7YOZ837RK( znBl+wX;wYGtXsgxaPsa-!p!xCtmQv(c`u$IWxCuDCKf`^|B1`11H|PeV9vk9M7?O#sC0>|G+hu>%;Iyx!9A5rn&B+$6 z9D;)0q-lHi$(Lh)*Q(ILk0S=uj|34_r??|N!^2Di+3z1~P930ggvddXZ;+|Afj7`? z`&JRG3P00f8aYEqDbo}$I_vG}{5=B!)|`eWjX1_QvVKxRiJbb%K-KYg>zK3-yz`g? zb3IOU$aKCZq4Km5KD4!Frb787c3Wqjx7y}jFwedL&x%9m96xne>RvmZ_GRr)y)+D- z@5Ytst;@~i|Kt`MDr-_~i9vx7k;XP%gT|tM4x2UBSww)BdN{N00*1jnJ2oeKV+`oiHySSei$L(S<4d*CK|%ukz7-v;LDO+cwH^-;9+dBkdb^rw z+$KOUs|m?8k8#Gsh#@gP5GQGL-qDs_duOMZ#T~*NFkFvw$Y{tA;LH=NMMwJ4e9Oop zOEn}9-o3<)44U}k{f9P~^ghv{iPesGEE$E_mQ&V^g5XtEYM#xvds$-pUu*{77^#s( zy*v+)M9%(%Q|0IrqWs7yYKDFa@%CMmu<{6NrH{|R5&GNaz@38cZ0b6<<)NFqjp#aL z%ur^VL8+TSw$EvoPs{C?%MmX0wZ-rHK4Z37!prn?f(*Z3i^xa7TJvI9bCqkK8Ng?7 zmoaN}>p4J za`n#cfc1^)tpiB+0yI`4x7^?n*4ALrhqx+3E|nE`%}DJ7&nz=aXqNe4n>c4aSt=2|n`)ged9S=&$3w^7vqT;0+Q6S1krYZBIpOsEy(=SwKvsr~6LH;PbC7>4x5o*Mw=FGuYU|2F3 zN5xf*CnnlTzd^r&Jv6}|0R9IvO`0@?+ILw1BWI{8j@KCyR9j#_%rRtk6+RE4rNG5O4z?;yw!`hc?xiR*w;x89$mFmf2r0 zUBmlV8X#?~z|#Q$lq~Ou@+}HjH2U8imQy&@eH>I+{NI9T*|P~$$|(qjdi1K@9`c=2 zjYWEJrkAh;D>`pm;r(B*on&SVXkM$$r;Uw&F%A;8SF_|iD%tV8Sirh|$meVhw^z)N zPb86aUO!F5lY_P&BHqKB@8r9PD^mhgd`m|e@~@>rk`fe1BZo5a z#L$S$*ll$0nH8kEkL}^s4pNDfJeGXAS1X%Av%h(Qm}m1M3d8YRk3J;^P`pnH}FSLv&+%iZ)n&+xqg zlzuW~`XBjml|`GQc&OL3fw8}t-va%SuCq)2gjLR*nUN%5rs-TUjRP9?)QIyY;VwxK?+)O-2!lr>&jRvCF~_r z1s#DOPJaSVu-k{t_V{`2s9c|Nf)RlTd6ubdr^T6C!|~Qnq61W8@N;-^5hc~9$5Cff zpNnmm=M$T1qiG>OpPy7Q%mg}O32RK->wPSi4WlpwJMywtFamL$;<%*n1qII} zh?m(!nqU&Sx$05}u}8AoYuMkX6mX$S%2j5WRNpcI#ss%gM!a95EF_Ewpx$Ce; z8RY!@5N-+9mds!vu=LambnNU!ZZyDmj$UI+u<;Lvat=9Pki?? zFk3H!O8RzZ1it9HEbu04;l$+igl-SLzA$oU)b>msAQ2>v!Bf>YEq-M_3Ekh&e@!tF zeFfYuNw9bmuKsD-J#SQVKZ^fo-umt$w?pet0b>|EI)*HwI!@zr2%>(LpVBb3tp|d| z^E65#uJTi0^1@2$SGLUFKkUz@9a=dv9`}NHQ}H(=-^=uQU)v2v628GU_Xpu=CHAsjV39%?}f@k_Wfi{5X5BpI)hW@*%i7egdE&_#dEoVUAUw zbf2>{yUKdTdVXXV(YoTI_Hj>QLzBx&22*VwWWQ0;%cYTN4O$)OL&1E!&AM(hdqQ^OQfWU!g%!hDCiim+Env#?1v(D?^V z5e*CdWQQ+GNXe&J84sH58#(3)_MRA7iEgil$XXVsgD<(`%I^k<=`F8p*?$e7`o;&9 zT}#NpMOo?kt7ZPRn+mMGiP44T5B16GmMnM5{c=3}*|R~(4u@QA8<({YS0$%>d9CTF z*n1$?Uax}qEK=(d_3K%u#G;6Q?1Z^iX0AO(Z0_a1(5>X)hl->_vagI%)2S# z7+KWAsN=X_*c)eZ?rw*CYY%>^eh<*z!FyOFHi5ZVyRM)3lj@Eou&|?Xm>W6t(Y7T? z`}_D62{(iPoHQ>V#;MPLHyJ4Xb1gR?Z+J{9feSPcIw2K7%4herh59!;{tEWL0m-5DRr=3Wlaf}7vI^W zQE#+1qfEv8X_pX&fj1nXehlNo9<%3?7*9_-nHBh+(3YHM=$^E11{^=Gt{@s!hq*{^ zzO&YRkR7tv0VMb#{c>8{hXDI3G21BrrC2rx#-H3<=fEM0e5)WBmTAYnrg=i(k_Lzf zro*GE3frt&6&z@unQo&(Dg5CIK#qT&lsgdAcm21#!p*jTDL2uovKx53#5Ya_wlaG9 z>=mM;*ndwRZyH`F{lH;yLdBuci$i2~wFriE%R`igL#o=b#1=vb6JshAs-}(J$}ojm zLey8_Ei)wr5_k4)K((v z0A(iioFn;E-SDpOeOH8eW1<#EWmnp`=fR z{qI2Yv?a+uh>e?g2zPyk;++ywI!d=AI;x1yFg5;1g->~~{u%*mRECk`4!$*wURmg)+gClD!Z%h-v-TJPc@03nx2Ck2p1 z7N)E?R-1TI))$bi!(+N}%eIcy^6av+%j|*YTFCPB@!J{4Se|V*v%yXH;o=KL$B@mo zEqP0>t;i%zi9?|{@Ds8=5*)rPCORiFd3Ix1*r6u#I;!wJA3)|6L(OxAwj2@2p83*E$~QQF zO=QM0-L=aF6v@xfbABPeusI7JHh-)y1RWmrJa*BwQTODS4YY)F>fhJ#P)h%bgW-?c z|D8e>ylIjl3|3+1Tce3Vk|Fc~egwUpnnV(~TX(q(Cu!?)2%f#jJ>I_Y_>=rFzM%Lg z@c|#13a%5_hR_?L-O$i^Hj{hU4G2xUuD=$#zigA3^zOlN{Ie7bKvl~dMCm&IyW%ZW zZ;%DMn%`#^*F@KeqKPRb9XKfW@{f1B%$!-w+Z_S23Ky}9Um z1FbFGqpF;BahK$7&kS>`i6ay^O#$IUp9V3#(KpgsW%ez}&X22WC$z+QB5(%WA);*L zZ;H%5#L!vng()m}die+;L@e6vH6G`Dph4FL;~icIj3@t&nlP@aUAuChUnZ1HtuK!; zcmHi{jr-~&4~~1NNAS0H$kC5Y-?MIv75x3!5TVG4kvp4;-E^qYCyIrUK($OG`!+Lc zHo}O*`=Fg31+aL!Tgmf58R15tDm)oz;!FrPeX4&eDQWjd`DbvoE~zkX`=pfKz2X6u zFgrb7c7Yn+{XZ~syg@_(=J^0A*o&V*IHA2HYt)2|wraR*$VWj*ZMIz50&;ND8JBF~ zmQ%)j(YTYlS|9N_9KF>E+&_VIM&IRkWLJ})xXh2j-9gj633KZeSe0D7KqYV>(96cyJOj-PN8|=<0HtrG+M1N$(eQ=>T~u z_w6Xt!oyh4J~q!)5DgGQv(@W2tY`?*gQCrVnD$tff)Hwn!QRms40SKGe^8Ezo5tQZ z2V?WgGRJtfFdd%>RM#E~xEQ5PiQf z(YFDJz5&$K<35^}Xt+RlK&Ou^zDk=AA`(~CcSXEn05$b>t!*QJv=qfKZPCC*pDV}?P=~y2SbIz{z}n)PQSWpPzDV%ld4mInCpe0i|NPDDaN_>MzliP zPgTO!sUAAm+)BH>xoBbjtC6fS6aq_Q%E0988{{lQMrkmIBAB= zIZEWICo^V}6Yi_iNhjAV^5kcOlzK06a8mb%|ihNY( zo_=2ZL;mC1-|p|%{U9$1h@d-o>^9bNXv%ddC zzeTOe#t6RX0A7-+V`{1~!=z_as8r5kQ8{lu1pAZtSqLbet}ziQksUpZ|9-??)Xb=y z-uMOjFKTPLWz($gFU~>F#XLsQZJwG(bbC6;<`)@&q^J5`=|O-E@V0rWz7X0+nJW;i zU#3F35~b{A4)Dco?9_ZSWSUlF9+-a*)9%*FvQUqZt2Lvyq@HZf*@;iM_f>SIyN&f0 z3Kghb`F52-8w?L6KOg6O!oVJ2yJ{{IveKVv`vf4k^d@5+qgCACNhx#s3IDqc>;KF+ zeM#vEe>Yf6tZzI3ZDRi;Vzefe%6)X4{ZzQ>G^r!^VcCechX7N97=y^A@>5ajR5)-{ z`(_)5gcT=zr^+2%{k3Y!fXcF#3&AxcljiN7)a6)n6JL%OA>NU^&?-XatbB+pnQD&; zre$Et-dIM4^PC6+BPjrrW7~mC+_)FCn)$PaH_dFy{H%GW00+4LCrgJ&+znEvw z{UMQ}5N%}1Qrh62;}nb?cxE`5&3cq+C-O(KBXm1vpbpIB)OH8L;hC4DvjqhRg7mn> zcr!rdhH1=PlDu@1XIY54_GaGE;e4UEz7PI_?fW(U^2=6hI)L9s-gMu(S zOpcbnojV(G@>t!FpQ6iT===Udj@2mrWIzy7p#{M}JShKhh%KZh=d#zXrI9*w@J~a0 zU5E)Pk;4=9L-ZwZ_~?q(20j{dScmlO#_cTqSy#WNdiZqenWjUE5;maLD5~5=HJjFs zWL=!vr{|JMm|{iQvsc{^FFteX8UPlBcONp=x10@40AD1aHog!uxz+*}{?jJ-xobI) zRd_76V$~rqc84XGt32u@INx#g*Pj3QRAH=jq49VEukX$2#TOxjruv2+soZHm;ayv&Pk*=WSwxgtJ8G_0Z6=WtI=XXcfXq%ZEL@ihRx z;&;Qx!t}-!Z4$j{8Ni4Z1W=NU9b_9Djm}JV9S^M;$m=I)!OcS9Xw_e>rle~2K@f4> z)9m|N9^wRne!X?%?4F#ZwvvPtrYKd;0A>Y z5R>REwR;l98Px82(xEy$i1-W%Cw!9gmnH6ZWOD4vS8L}@m z0YH`J{iw3O^_Gb?0I<|>LC+6ppA-FrB{Hw}r=kIFdsr3aw7JnbhD9s@=l-$g8f;_9 zvxFXHm@|Vk__m*i`Ll7Y*c2bLbHh{i^!9}~IhL>-SdV%-OMe%W^u|>DY7nztz-?6T z;v+x0Yr@y-?VI|U_033|JpPj(&Dh_@`&>ehz;G!x#8IeVBK8R$ddJpURH@K0U$Ve-)hxc1EVNFisk=r*i%%YhAPk|V*Bbq{h=EO zk&0oFZJG^@0v!0o)te@gnq1vX`i6DP?I{asnX=2 ztF32}UCygZstr6r6r_K-sS1O{uzi5?b#GCjsXg zpO3tB;0tvO$&LRrZ^C(h@&b#1jT&0WQes!G57OeyXcKh`EUoHC0w^?BTqc%r2Is6F z6q5*aw>yY{;5UpP#AV{dDpJlNv`7nVVaQi_h>S8w?A6f*Om5HWBQ+!4$(+tAojI`= zv9p85^xsfuH>~`7%Vc~WFZncN_5tC#GPUuOHB!?fC2WZisgHxli!=lKTdX>ddn`vn zSQ{mLG=a-D;|iT)!;!)D&33c zh>w$!Y>Yo3@bx#1>2^Vs;5oIWs#?NFtQ+5=Hl#qs2=#cS8TgBi&#)L8Te=4_>;0|3 zc#!_BXiRb+!i;y0WBdERkje$s8sL#sBk_=nl6oHl<&A6Gg-}|JQ3^v!6so>sr`XE{4x@Zs_LVgG6i@mljJeeHEpXT8Xi`P!X@f> zWrnsxGUX0>ex;L7G!~>#`H(-39=*R4mS=a_u=O`aZCi{^_N$J^S@&f#UWt(^Wo6?5 z^xMtSLVtwMeIuRVhrp)bT|_BdWlt)j-+71a*RK00Nfpa1jtpXwdYU=p1T3Gin?7Bi zv-*jXvn|gmDk*En&9}-AkdfbRaIDb&N%$LW?V*~&z~ig!v5V|0Y*7tIq80N57C6;A#0Bkj#a@j&DO$7ePJv}fWKPBCAlp4ovfm15VMe{yCrbiM}E%l z`rN9s()B?ugdZQP)4+c~1&~o-+F7Ci!76gg*NsOlWB!nQoK=kZ0PQRdZ{Ehv$WSl{ zRepwnzLQGoiy(?X4V~}$_mwq^TgKAXOHPyiyGsbun-jU1f2o1SC)KP6MGIw(2_3?= zV%OXc=m-^zJ)%;UYBUB#i0{^|l(&QiwVjj{7KkbDA63BJ*#kDWIvXB$tR z^I+~Q+O6nJdR|#4S;4vN4a3v9#gqkmo8J~J#M3QT3vqJk)qgrpuU$}8A6NUy$>B`N z1YEK^%!~R{K=-sp1XgfP*lb{Ehkip%8g1>vp*Yf|<24iiBVA*#X5waIfdvQ+A`ONv z%M*VAjxi@;7BFHjFCQ>P_194y*aG@ts{!3UUOgOhCg^H|D-x|#X}MQTvj;iR?Tgl> z^WE4nbG~u-f&k|AFa62c6B>0}HFjxA%_^(xB4E)%`~NIj3|-dhpqWOJWg2;PHDI(a zwf}bY-H5L>GuC6PXc0MD_Vw5*eOfqcT|#+iMuh556_VZ8aZ+0LC1diBsQwIy7NWiu z%LQ&#p899c0@WF=2im>e&cn#dhAK2qtlYk5>8CL800DZo{Er)e)Gw`6OO(xD7s=Gp z?>=!1<%;{KuSV1&%2J`Pi@oa8ZEz~H^cd#A$T+|i;0rs@9CG%D2%p$RmQ*DxEVlZe z(U+PAbh{Qp{0=53`*-~d1s%d)$U-+?87p&vj&?BsU~GB!SNz6KIDlz<`HDZzcL?QS znvq>E8Fi>52H>-^Yc5zQWQbVEqH=MLeMS1SPH_v$9$9^LwU%I9pl^knvIWO{QZE%d zCH#H0TJ>|VLQB1Lq|1`i1;%x$Q-1qI+U<4G7VdoT4LHV}>U2|ANhFQgw0(1nz4ICy zr(ExZf+j0=SMH65LHvaQSupnA3b3ON2boml&z(!Zb*L&f-M$2K`l{;#C^$Fs1Bn|E zp6J~eHf*(C?LevT@Pkl)q^Ib!E6iOGp^~3_1UZ|W3T7P~2IV1@zgZgqPm71UGXeP~ z2hm09qd;Y()gNuDQc9q>uKKH*sIV zpY|&35o<64XWW9FX=r1qReFPlr`FAsAOm7Vl>f`^B zhrIAJ3^^YRQ0jBiXCwi8lR$YA+s2_EA*AK-g-&%B*PN1QYvMM>JqZ2!upaBY_770k z#H?;ePZt(W(ITCqEf1}Yxe{s3maCK02_y=u(6_m@L@)blZ8R@Ts?f{T=(Vbvnr{Pb zLfiMA4)2oacvWb@aD~=miQy||q?_5yH;R+bng^JZL;GrqzYObce+6y>YH z;0kUQO)AULbitaocWg24z;s5~B4(rh)%zx}8_jdPUq`Jpswg>V13*DYCxkJ2=3(?E!bM3nUV&;6K ztNo9dTKgBk&SW+6#6)B0uYumi5)6|pUT9{+ijkIgaxwd|cQ zIZ}f2BEr6i&_g$TD)P|3y?vg+F(9Y0yqG)Ic zR{+>MedCD2DEziP&uL3stkjbo*O6E^# zjZ(tREFrB>RhSWlpZ}XRj6KX1cv+czai)IXDPv}QgOLD)v%mQG0*rI;mZZZMx;CP0 zQJ;T8e$v>gzzB=@>i9wS$z=*dcB}K|e$1tY>F%Jva}u|8bS^_u8}sBm4e<4Xz_ZtC z<0O~jFG$(alfo`WP#G`EY~7(3Z#wVK1os9_q9RZ|{M^@ZQNop{gY7J26`T6xr}d;@ z3jSxatnr~l^>7K0hD6)kB@0Z8eTjC&Kfr0o&p>&-YX3o}2^8#zYfnKWx5nC4uzF%NAlDbvpwES>z~5`L_JBMC0-E%K&)E7a`7FAaBO&7W*3Bz z01`x;fV^4Jhl1;NtcDn5UIidkEdtuW$4U?vzy-+nqoFe|>qT)WH>88KGK5hQM~d$@ z)|xN`Z8t691JoDGA=1Q@zr`bwAyE3MOI)pk&T(cQK^j|aG$)5*{B-W&h!(x*Fu56% z33UXMvo>upzZnUdOF4(r2C6kg2Q)FD)S9#@&}LM1k*b9BuhgC%@4U>=123eP#AKmgdY!(h z_3PKY!(!m!|D)_1qx0Olu4CJ5Y};XXxzp&8#cDtq_NT1ww*M_cjtND_q^wH zj5Ct&$KBCiSH_ro?X{QYTrc{@MsGGsrq?$30#@|My@Zz|gXN6#WMe%aIm?#7psY>t z>fGaUbu7jjJ|v!b6n%~r{FPVN=i&?oeBmRP!IaWPRi%jgoLY186zm+hA(CAtucRcOz+1F{;~ zb9!ZPPWiZNL~2YQP9G+QlaYJhInP6#6@(w0^-4bV0PW~Rpd{wbaR#m}V2D}41d6pU zUAcJ>#>_B!4MdFi_f4w7bMN7PB*BMvcZILxNR47J%c~wjxePQ^1ovmtdV? z*=jOjanh!wT}uaoqz4O6D{}TwH$P-Vwi)7-6dS6x>*P95u+B?Q6)xXJWZX+@jxEag z+u>O3Z8q94)X*&kF^_Y~^6^|n^;ng-pVCepA@HLFt6WM>y7EF*XyAn(F!t8(eM-&r zT6)sh!x|of<$p-&D*7~ExQ77w4Dyv?jJW3mXuV%bwfE^|5L(CeISJwvO7|Z6d*IE$eg{*!F)nZk9#YeDFbgwlZ-IJ#U51k4 zgY_%olXFzNP)2ohK8!h*J?yq+!djyvq%i1(4OY1-RYFSzwIG4JTiygdM z4ER}nY?zSkX^xk|AzbaH^;lP@jlW_$Dej+)gn3`~UahWWae{n)xll4VzOAj!;C(o- zd~W$B91!B>Z(8V&{*aLo-m@aTJl4y%%JxefN*{g)0&_#h;aJv^O#|Zzwar)WI%cuKeXGoe0mqMR;Oc4HRK;4D49MDCxLRf!Ve^o6MOA{O?x5QgP7p?vNC zQ*WWkB;?>MQrsn$6+RgSMH5Z#60z!6`$&yye?4%N=g7A5lfdP}+ERZ1D1wT3sqCgS z$L=0Wfo}rGd$v5%fKh)kwa~XEYiq6K61d zVH}B%;QWJu_B8U_lm~g{{(6{9rq1X4b1Dtcgg@Fa#W6w??b;mfb<;xUz8-a4let^?f3z7SOwLL@3rb|pRJ;Bo)XU&U?2Q0m^iuVI8%|7I zuf)sY|D~DoRqHZ^V+JW4qEAkWxiinIxs%htHB!+YRn3z3d^w?~H5Zj(u)I1-;W+uV z+IX6fNGyzKKwa1*_Rflhnja=n3^|Xoz{mrYxh302fxZ*|9A@Z8v7nO!?53TV`uw0; zK=b>}xfv4yV*H-$nlR)5|1ib6W1HR_RKpHV5V{a%5nOz|;K%Q>kf(u?P1n0OevI@) za2Y$X^~zYZK6{qNf>Zv!&4cQPQGCFoYB~dcxdT+!=mvu5J}_AAg6Qwertql=E9HzC z1H3mt^T0dE6S-(jim#33mA!1xd!G)v6&kE{*otfBPvARk%c^J%l#j?6is$TG)P7Dc zADfyh7efn|R7cguV0;5tT!}*5p6r+X4VXs()#4-)YhL)xMsV0T3rVaoZNomxc1s2-6EaI z%fY);l5K2goHxASK6=fp)cyErqXgUJQOX?%1R!kmWQ_1fdi1_$cHl*gN8tbCTD&sG zq75ke0|vrhL=;2{K4wuj$b5z;lx@p{6zqAIj696hjqqN0v01j7a^L*&iQlZIM-|IW zD#Ml>+mp1?%H+;r@=Sw|il8Hxc{(P4nG_+5D0LuswZ6Pz=R8l%I&Nh{vgoOxxpxZ=R7|o|0L9w>S@-nuAKeSh^By|ih zX17(n!Ihm0f?rNH`P_3<{fx-9_EmE*T|P|BP~akps2q0^b&E;)IDFiVgHOn{u5Sr* z(l~wR^6U?%Eg9v>_rm9+eKT%MuRU_g5taYp^L_RN52Zy}d@tD~YBy?)-?#;9loAj; zt0XjN8bbK2GawjfzY2Wf0_ldBSR)ZCzH1QCB4iy%HQ;oW(S^08jWd9lDcCo9Ewm-FIR+cDmG`0NRQ=PAJ!q5 zs=r2)Z^J*^0h>fz>GT=2;_eb|Ug@NhK(FB0ALh7p-2vYH7y2j#uoMo65323gB4SlI ze5;9oDjJxB-+WjnD+7a+a~LM2Fx!>$h*P@%biyheI&?2e>11y%1+lzFKS+}we6cpb z5~&xpMt?yvH&dv6flG}-=Kk>#3HDN5`OF9R8BsH;t*-ub?2#e23%qo98)^?f4W2Zc zsN%edPbLnyRV7S=?)h5pf|Pa(6B3~-ePvOL z(ITL=)UXC%Q`7`;go2ei9*jU3cYmS{XLCPc9h1*d-*`%Mzze913>Pl(G*;pHd|J%(F&bleg_P>h^P4 zt3tE}SbrVzqGNWV(mAuPL9h ztlrS9$>$JlhXQ^oUVSWk*+|>I?|m|V{k!aY6?k7Sg> zv8}$Y)S%N#0{JTLw%SM+c0u5uP9hAj#^wJve|W8=DYx*#jqtoyZP=G8G5fVUQ5R?S zT)`mWi~K3-0}{LZ)R&A2A97I&iX8)*>Gc_79FSJSt=M{#h|ImmQ@(lI!W+u7-j?Qf zActfD)HHZ(@sI9|pB}RW~q~se!KpL2Bl=#PAB3M1s_%lsqU+n*x#SBOh85&vzv z{g;BTh*G;(Dl6PdnD}1~e&JsneD^&wy-)90rq>OVvo|>YOTx#Z@*@sZRL7D+NwjHy#v*GvPp-ZW`*Rc|sK=lYM^lRW(p?41sf6<+`kfA#AHL6|Tv zex+{oy~Yo=p84zF;JsQ`n7jtMiF+~2e-4W#x1`{m0>JwJV3c#c;t~O?5MH>dO9yC* zAVTDvRrOAIFPjkh&H-j3C6tgly4v&^4Kqd<(_nembDIi0gWk>eWOV<#vhVa|_SKH0 zjKfnE{IK@94bHmaM+}OML)9Ac(J*%scB5ZNntBzM9QE+7{e(g}prajDEl)WfQWOB(6fQP?ER`7f?*Mzby zKx~I^i>WvRZdotL`y-(j>4$VQ>r6TXm}FoT zB7+7Dl-j_eBBkG>R}oM;exM~Zj6}*^D;5PP)q%Apyev&sai_)sWo_c}KYnc?7Z%L_ zEOwvE=tMUUyM=}pS5NY`bbk2N7bV<814uQ;;9!W3O3g3rRPkrU^b4VhPVO^BBS0Mc z2^Oh<80OCzG5WPHpB`@SVwycYMDXakPYo(bMve5pCl5({Yr3c&8@Qbvs{cVwzdF!1 zC2cw@61S*-w5GNP@grbTt`Xa2KUT4vBDhN+ag{xiXo+Xa`Cy(~Trkktwn>a85OxBo ztzVH1tX&{E!AmA7PVVAb&%~84@P5co#!}&S_s{)C%)s}{FV)VslO~whUb9wtT?;_G z^kpQ!fk+}GWo#{0d2TQr^4N)xsd-w@9otNUru(EtipCNSdb8t1_gI$d#xb0uAwU|k zG(uuq$?Qv6JUfKcCAS(iLW0IoX`U@*6vSvWbEC4TVqM_8%8COCd4lwu5mXAdQ7+%G z91l}JW4+(^gT_L60}%E^IW5$-VTju*>5typf^vFPf+8mNnCpnXmTA9|(2*&`u_3-) zfhGP;nL8tCTUV%DLKq2J2(P>Z)h!^Xvut zvB-sV7C}4PrKRdVoi(;+lR<}nF@PG_3UM|Fo&CeNqFd=4)uK&P{5(b%AwClWb~Iqmg+?CzoZN@<-E z71XLKYY4e4Z3MO%`^dVBu$S)M$G(hL?<>)+m2Ep47_S)tTs9+y%ee$Z&6#|1bEP<{ zhep~(0ah9@`)iJ>l%V-+{npQ$6Cl8CLsOAxwzcLG7BWsRsX4 z5x1Nr=Q8+Fv6Xi&v-WB-maJZ^-aPanSa=pc_#>Fs9>{n(aHQ_x6Xz#ee+4fJmS%MP zq6Ik#?_4wC0b?{xQ_#=J|Ks9xd;3j+0*)vL@OxV{%k-MyffHaYmfwHRNb$;G_DHO} zn7;W^t74`DWusst11!cAwrZtWLCP$%*(l(8`|(o{(y2Ll@hM3B<;S=JWu6ZUJVfyw zz@?WtDY$#;8Zq-LIFl)+HS+ct*3@bB`lMVm&V;1_g~ENQ?PJ)OX9C}EiZ(to{xl{oJ27jIVn%*;GvL(FvMm;BYXAAMm)ux4gyGJIYCXs zI8L?D7(^w!L=v?d+hRaa*UcV@Yxv!Yw^pOdbJ`lK|EOw4qE7a|kTc(|&dU0lSc$Uy zf7o1n47zL3G9SRm+N>>vnhq;i>b3L68#=A*@&SCVuGSH=Xsl@31HSua-Z_ogI#1PA z+y>rF=RmDPL|0Y!gUEh?$(o~bxe$5=&_*LONw*CE%+CtIJd8P=s53oKDd{r=sEzxL?&{<113 zW5Ft&cv{`uW8m`rKLT!xU(+)$0r$&@(c280^)_1f@Vg@b{}VcsF~vf()@K%H5^k~cjVIRNV-3@SQlfj@sH|+wHou-1h z*@#=yEc;=G?aH*4#CoKQ!%DK6r@jvsPaS)y&J_J_DG!5Yy)gs6<9<_GE>Y$)3XLy3 zlTUh{t6(sfJju%X5HKH?`tkXP@1ISvgYbtuw$6qtfAud&kS~XHxf=Oew+on#b`d(b z@aC2$Ag6a)aCThz>zLS`6o^NC;W^(N@z4s20J%E&P8024F!<;u1l<*$6_lF%5>PHTHeX zMtL}iPnB{{UiwxKTFjQ3zpCK@V)1hf-hLsnNBh&GP*@LNQ@~G_<9yC+*A%=12I0r2 z^E=Gi+4C}VKv@zBV~x?BN51+X(!j7%N>p!~D-5u+!|9x;5F~8VxKcH@ZFh_b$sNjL zZEqmMEMWz8E-s{m5eHzNGHnChbYYqWgEiCgk35QVIS5AZkSq&PJTH4${NEanLT3vyNcEFQ-7RQL=+o8 z!;zQkVugByKN;8(tCc?<_^i)LASDpb!7VW|m0<#JjbqlGFf=Bg?w2qKtqF^mjVJS%LD6CM+I|W7#71L~#q!Dk`C@M8l+h$>KT=Y$a6#{eJ z&IRZD7MaY9Hk>=Oq`304qFvr+TF1HXK@>P0@d1CF0Wjh_#Y})9zl;*U&B3y~rqIq8 z(f(2gdw=p6!lpHkRp>TBeMa!$GfuBh66c4JOZ3nL9_BFjbMBi_j-Ls~B}BQN(`eOu zlYNzI1_l|EGwEYGhWy2fuv9aMP}_@kcBO5ncIHrYF0iA=QDSjmr8DhD5ZjzKM2bu- z63p*Yn+-`=zB%1kYY5`MdmGjUG6353$RS3#Fb_5Fi4XM`H7+pH(PGalY1{a1gDfN~ zFVkB8X@#@;cC_+Dn-NI`&p9vqh?*iEN1(c(EyHF!0P++W+n{} zY7}EdNo4*L`&r5~Rc#>`ODly!OVzvzs@=mb%7wb(U}SNpPl(n#63tb#K`wBD&1BgM zW}#^oWX?cKJ)I>*&zn)+L{ry?az%AP4~?!FJObbxhui+8iCj71)EL)z5ge*JU>{V-%*@w2sxQck(EZlO_V^j_J?o2 zzz2;~!LdN`XPTd3zpJRXT#NQ$)h2`iR`aml z^YGQwcO-oJ$J0m0FR*ys1uXpI9g;wf!S|IyqB6xBSotGAsDqx%kRH)yPpjD!OK1EA zj1OF^@$ww-y^yaTz<2AuE_iDQmVQzl)N*W%h!?Zi0iKYnwg& z5339YaFYSn%#y15pa1;NKWKkrSU4KnTbWtwJDS;8Gbk%T1A%4*gd2Yj4mWmkfdv8v zgU6L70s}Vrh5vu|OAs##6Gl+Vmciz@yFFHmb-$@G$AU7Xz@`l^yPFk2Sw35gF)o9 zYYv1}OzRv;oi~L;Ag}XRRb|CCz0?9yOv{90h^5Ok{(bdA7|@b1p_$8D8$U( zuOzPDjLtMxv3#&PsIYGOwug+9w)*Aq)tJ_r$rG3!f=uV3(vRbW(9<;ckx1Ji0D6%! zIAg$@X~&2WyoqJqzyBsy_k!yw))(#%OffPuNEU_A8sULL!f<({_@snFbGq)fN$s%_qK7Ysgmw+BDeDqKU zw2*N)Yg+Zu8hs=apQF}3tVAuhT;%b-qdNJv3^H{;S0{mX&^S@FU$m9GB9`c5e_tW{ z0&GCr7T6sC*pjya%k;ki+P?s674_F3JYa#48R}f<$AVbvs{OJkP^>we-VjSFiEMJR zo8$O}hCC!Xu}FcKWx`>78{gtH^c=!=8dj$T*nGbH*pizv4-P*_M-RE-toN$hBM%}j zC{2k@X|!>LO@zqo=|=fQPWK74r0fHPP$wdhaEkKq?m_M_E(%>Lt{S8+M2-+~L{MV5 z?(D`!S7z~HOMWe~3e!Nzqn)+LX}uKoz>ozcN9*2a1`KifR9dJ(7H~>ufxXzj!yH9s zpQ`g(&(6F`PI?8l7K;$Psb(#SMwr#;H)x`NvrgwU{bDgg;}zx?&lc`94+&6TjS_yy zFOdka`KKT7KV^-30>Jtrkp8+K_$vke7gU`hg`~Ow6AUM}=p^ov{_Iv~MovN@%NYJ4 zGcoLnxbx&v$qiIh&r6Q_+SjXip8_~e+!@1!a?{Mt-htJpvK7pGt$#}TwiFr=Uvd{T zIJ2br81X44M6*y?+ded7p0?yrp*d{$aB=j25A(4jvB9nAoON)+B!g^E+bXz03w(1P{cs*e7{R)Dur}3)>vIyy{#)-ylBjteqM<%+5=3V#tMAWFP{3{ zZg|t%)h=rO9E2Xueuz++gG1g-_sFM8Ep^_Byb^0Y zXIxCiM{d`gq%VugmUj^Uv{3A3(VQ3kqnk|p|Cr=rZQi^pzI1Q5z3T$rBPH3VwBq|gFw3$61?0xN8TWgs3kY9EVEW-(s8 z7YJ7wf>}tLRf3i%3$UOn#@Jz8JR!144xxZBrenJW)&f7p{Yw8$q+Z&8hOFYLniH#S zOW-?w`_3MG7h_7L%kDdx<_jTJ&huC{2hij2E=4Cun_ZW9Mb2a_qH;*13%RvlU=-<+ z<4qNqksbP@+)v*)(I5YoSG?FVq^xtqi&V!8tNnE^!T!HPssDBa;X)Q2f=K=&{pCsP z#tuQnbeE$=gx>3!xjyS`mQ|=Mq~GXLWMniRPL^hUYh04QT`zmceVF|=ynO?v!9~Wh z`O`A4RAZ0dksS30Pgno_0{c?7RZu)hr&$)>yKwwXh`nNkAzWW+SO0PebnEb*#!^b1 z6U2l2xd$Sz%nieR%fQN}k9n?~M8gNNB(xg&76W-()TySlLC8uA&hRi{Ut#QaOu%Mi zQO|hY5Gt<;Aq*h#RV`&x@3cK|#+Tv6n-#i z`dk;LKnWJ}a4|@LLPW?WqPmI^SMzbRAhal6dkOYF*FHMvl0{;91z`@kDWRsu$T2}8 zlwv|=T@Q`jQ-(m1J|#<7J7u*&?rP5vOSGLPEuDD*9&7e_OQu~VC-jp%)JU^3{8oy2 zuL_LRI8@b1AO_c+AlVn&IY_+zbHa1OfNYj=!TFBw7FNUD4s6ftIg4?0ZZwh(1YSw? zjwC-9qaqr2C-5J&6nxvnXN8~+Y7MpQ?9L0oynJ? zn$*1q^b0ZlnNt2vrF(&Q)LxQu8sLmy`cbbNFz5fa0{;!(@c#~+nH%;q585BtKnaB1LV&^U>ujGLs42$o>{JSN< zCMXM*2bjLq7)(g8X#5V1=aQe@CDEqXLiybcG*cK9>1N>W1#&(LxZTK|v_Z_aE5aw2 zF@G4-#dWgIYrJA5oW*{}=04lGjX?Lv!ip4Elra9i?dshvU4!S}=JZ|=yJbo!MhBpU z0?6&&5Xdt9?;y#)K<2M7_|ohDc|cPK<^v~#mUuPF{fjJr8RiyJE=9N=ggc#wP0>upZ~Q&& z4{olUzQul1a@_*&nCDjLw^X<8lhz|b2dST)kzfK*9}TP!`x@@(h%64>-jk_77!O*0 z^?^Vchw*Xxqo3mXya*!=P<;8C(&@l@Hp@GnzM3+h?+hhBlvsUGy^;9FNWWC@iFC$~ z{%){YeH>uG*}LNB%Q2*)0h@1wP+`n~v;vB?ATWHs#}B}U`QDn$#w(zmAWOm)%K3x% z`G5=F)3u(TyX{no1EIO1*>Sgz3$g$E#TthS^xogs>%AbZblCdL4M1EAfcWb+%JK@} zP72x<0O1->S+8z<|127ng+Qk1NK9;Z9DGg)_ZTG`i-P4atYYSelTc?%G)uzG?NkT3 zVX_v)=psiSxhNQt2fmLn=)xHvRy=au1unA@85Wycx=#vVB|9WU?I_{i#allzqB47OW&wS(;WIQ)uiOi76bj(ZONz zSnB;Ne!K``aglgl6TTh_rxS6Nm9hHM0z8-qmWl~;?>ikE%MnNOY;}9+YtIB7^GqQd z-Q@OlIi`xx&|W={-?I$E0j|kYxyRXciEftCO+5knC7?r6cy@T7_iie9dH|fOxi8Qv zKkxrG3ixs=6)lWc&j8Qi12~yC+ymy<-afhimNa{H0huzW%o2jL`m~PoeCa46lxzuW zRFnPUpi} zLaK*4lT4f*{Opar9Zg@qiO(Qg$R%*Zt0AjeF+$libI`@7Y!j+LSQvmUU1y2}Q_0h1 z7{~yhY#P@|Ie1@Fb_pI5o%$bzht3YlNs(uDAkLV6hu9o#S30QcWuv_|p)9r9=;=6Q zt(5L2CG26wnr7T4#@2h5W1}YD@SQ8o#1M+Go$X}zmn2=81ZJKU<;=v{Jcab2j2Zem zwtUiYBa+b_gWwsIVeP>5r&nJ0`yzh{!1l}Auw{M4cVQFSqQtZByqT{_~cEuEgkP88XQIfCqoJgZX zTR|{iylcEZsUt)U5!ANn;oPKTb?g*%^C#ADstRyc{jX9qZjqXVn6?2u^ZYWjDZZlt zTekg#Y2bbP)d0Xx~Hhj?i8 zPq|;MQ$+rkM`(VGPqy#Dzgl(Q5-0?o!vKhK%%@B{gD zg`H9e5t;EQ|GbaM43{Ae?0UMbexwR(SLf+G1AlKOrINY+OFr4!z!?qQon|?{8hLI>kagJ-aGl)eY(tw#gC`t~Y#rdi(j7w|+ z9&@s|OSLJQgmHVJ>|QaohcvwgjBfbh&MxNk*8zCj@AA|jN4Mcvd_+=;Pnd)3q4-*&fe~+^lP=zd>}+95fpvnaUEWWIq>S@ zUo6WyjhqN7x${8 zsqOY^DGNu=@LgvFLn*-n+=j%ewt^r{!KT$VftcyB73gGfN zp#*Mr=KFu^{3G+AuVL`U2cY}5vJcZ=6#aig_`iHO-i7j66e#vuL!MEoSTtcNsS&TQ z(WOq+bw6RMCUg8Anm;1=3pvv6tnQ zk6d@??t;#!T5g%2h6pcpGp96M#gkIO>|#2|AinqrV#8sFVShhQ57N74SfUW`#JBpH zoraKugyM6AP*ml&g%a?!cN9~!r42EfV_72rNZ4_dAQOf)Cn9R4k1YZYVB1>O>j!@z z-y>L2z5;O0vTw3&=D$`l{wwlKFC>k{-!K^JM&E(cfTK+H zK|NekvyEp7azzDhEFmkwM9|-1=(d?o7YUi)E8Hu}d$5Pk&p;YH2$n}2;^SO8-Igpn z={>4gYgATEB8(AQf~K^yr+87QK=4RGar<#*b%9t?5S-Hj#Tx&h5B;ELa0!-xMV!{B zT`;WX#ccuD?CUt(%Pkl}qQ%1p=3zu&7tr&A2-dnsK{Ezi3w*N?x$w?=0tEHvQ$GWS z+g-+!b>cDt6mvU5p8E|Sb?Kle*YiG~{ZIz4vcVI`KWi4iNkXTH0NgO&7Cf{4uN=+4 zVCSUJ4DbtBi>@K%0|t{|ftgZNv}xQsz)_U~A?Ov+Ur^+`nr7lqYGu~DckYKj^MCuu zX==mS;-eQa27_+H{V5`$QAg>r`9U5*U~JTv1qVEt*)#L1%V{Q2IVKM}lKtb^G^`)T z!F!tG9ICAFHVta9Po*bOdT>?ba{7_Lkb8af;nh%(fnwfD2tT>0Jynd`Hgj^JCi=oX zp-O<`PgXxxPp@O7o^cB0I^m*S{ECniHE4K`G%bC42op#bHfRPQQ;7W>-SA9?bZc#M zAkhS4ZgW7wtk8{ZA=!78Z@Wp+nt+%UO4ia!>wgS*%US?=7&^5OV;>ZyKb&^>V z)7^@@APIdF4Z3IhBF}?vu9HE8;u`~hA08eK55x%ado4_O~gNm+;pP=+^2*QuEuJ&}HI!#geT6 ziq`-+hW95P-C{rVYT?f^6B~n-eot!VdVKZ&)hJd;?qE#n?rr3yRR#{#n{|BD^}OCJ7J=A6jMy? znNJ+gY3OIe`&{y0_A!Ajohr|>03tMjE%kOr6mHOYBrpfoE6ah++xjW$G-e#xy;_J- zzjyTEhrIkTu$;oiR*4`J-8$x-EDekj79f=k3v1>ihZv7@=!nl7>cgeSNG^U;2mzY+ zS_{&St$y`&YeWpkwqVkr&yq6PU7{h6`?LsDIRbMSmVe&{@`C8HsmYuM0L{cV`39!f z5^F1kG4l>Uo>!-9CmNMds{-j;siJEX#%HxUkxp7$e>Ht2Hakt zk0SV_Q&`2^-v$Ym?g7d*9z)pbgRad+Uj~DK`UXyX>*xoAFmo=~vz@|%4W)ukt$|ibJaFEK+sl}kA@ORL{$G@=! zF%gL&8LOk4W`oAfdRB9Pbsw+eumgd;&O-*R3<%+%wa`g!ZjMF6ogNP??N0)-S8iiM zb`7Sld4hlcaXT+d8N+ARdDYY#n@*74h#tzBXuWM8S^A_gWw`kenEVD9ix1==&K_)m zJ!B3IDnMjo(wYTQmST5xjqaWE{=#DOJ2LIDAL@gT(VwBe3;3V;KQu`~$T33C8-kj? z+Y_$E%%?Hd-h1|13tuTM$=>Y|pgCq{4Yy-f%q$yPi2yCW{hLDD%dvredp`~hI5zLM zU4*~JD*nyQME-Z_$O#~{*3qK@iz1gXEM`?ssp*vE1%l}cD_B(`Qun1^_RPc&l>FUJ z@H{KP6DCwxVttAY#*sQDA;V$oiS>;uB>AXVj`=1$IbMtgt)TcY`iLhda(SP@eRncC z)OuY}t0mqwdF!lcF!r*LdEUTM9xItk21!SZ#7&)IiGCK!l8orot_Cy! z%iFS(hk!(oLI%r30r~p{A&4XdExtrr!MW>AcFt+J_qT|rDvYQ@pq+$k5^McA0g+Or z6P|>AZz&iOPRLa&2EPF3Pi_=kkrt~A|3aJP>H&c@QGKy%8; z3_97BPXcDhLw_6JctN=iR?>qKfUwM)E(h~pqsjk*vcJNAM=~eM8HI%lYfv~3t3XiZ z%>vVAo6T`Q*P5clkw?Ltok#(j9bjo7xYlJnrpMbNXdX!iGZ5ORT!1L64=x^RSYKzY zmd~YB-2?~Nl#Wr38ikrXdH>oL3^XF?Cq2oL;Qpq*!B}ZZTDTaaQq7zkMU6{=lu(Ke zk6!JDF9W8MgLGc!go528h>i;x2F$0PK)cQ=OyGwWRkb=PyO%v6JcN+^UXNtqsFND~ zyFH4m@^Z}$So1SBOlivKnA|`rTId>D_}x&x>LG}m8oZ6GhV>060}%cX6%2suqE&C{ z0I{EI6a5G8;4xG+gCIx3&so}6=S%9bO+JB!I@3TO57!oV=~vXDy_v zzE*!NfzCN!K&X~Ey`*SOIy)6e&&Q2|X0K=@mE*3h>->h;dP_#D{e>=-H6-Iso!5S- zx9kJcpY=R>;@=c6vaoyr7+z0(Z4#xvA?TL;HLc2 zNYvF7Th}y%d2n(4Xh{Qp!XJonttZ1=BxK#R?B}3#s7?XLS1Gxv&UMl{MWM-yoIPbT z`_0>9bmY!(A_Uy-ph}dp#|WP-r3@pK3zocR5wLJ=mz3Z`IZ%1r=0+Vi)XxNxmzmf2 zX2H}D&g#~RVbQ+!SUN5yoMxhg_#1TjeFW?<-x>D`K|@Q&lng*RwBYKv*O!@^)Y$Tk z#>IQAQ=O2taIcIz*qmPB^`(2d3rz)YutyZfhB$9kNCNMBn9dh@W%mcs`|y znvDlfn1U!Pp*86Dca^SAH2jWF$Q%l-@9NFBY~{lA63K>>41sG#%ExJe=PZI_WH?GwQnqgFF;z9o#(KQpR_S%1fiKs3(Vv3#gmcjedv^01+dN1 zZq$u|$?}S-RCWmdnR|HQ)@Hp7N(8+Lz`s=W|K;*JMQTfRGNJ{XT+l=ul8cTzE~HI( zqc!6K@(QW>)VWc1Y_s*`fv2WI=D_be>mIx(x2v`Y{%3VPxKSO@I+L^Y+BLyCn*e+>klMB`loy!r3H`nl*6D`3-F8wjYMq2LRl$~+747w zvgr+FSHfcy$XHJN$637*LB>8Yb}W@|&$=XZJda=2J6b9Q3X0DPJM%Lyco_LvK&23{ zG9V($V6rk@X{WaQ6y4e2mslY{2e6MLRpC zww#X)qxO4+Chw5QuJY7K+3hVQz;4~~v*dGg-OpT{oqK2;BGS%OMsb)Outy|AJ>%y@ zel00%Kaf05Mzr*ur&R}#&at{~{gzDHPud>bG^Wb>HlB4EbE?9lUgYs(MT|w#f84L6 z%u_VXpumUEp9O+#pi&gYhS(fW9X=QTC%>t~v{~DsQ5@V-Uu`dv+Si(LTdJz6Jg(H= zlSCYOa3Nk*196|2=#hng`^_%uvxxI7;{23jUiY>pm>?c422Q^&B4wP`3snv~Krd-- zXF5+%)Mw4)u$L~Vp9Zw3j>{KU802&qlyg3b2k=PR%L-@Pmvk+JeoEmp@qx|vJQ+Z5> zG9OFo(jc{972P8BvLjZU!FmrIyKO&P+5Tp>j7dg>9!}FY;;!8Z%o<NOkWJb&Sai+9AAK+{8>xBQob1{1wcRcHu$+- z8*l?~fdO0(-dI)3ZZZXYX$|Fgn4?_kkBFNwknba!iEvSHxnwgzo^%57J}7%sn0)$d zBEF5sJfRuP@ZAsfryyOi%B)rIk}UcI-}58_hpFp!iI6|LT)K-nt#N!sX^`q%Zzr#7 zm}-sdaM}@*v#I8INAwsAwzTA6o+{MfaA81*`fm(r^n@Jb_cOog0AfRg(_|DKkZ*)7xLjnK;mW7{2N@( z>j7IkppXO?09Y%j^&4c|bU;6G>}q^s*b@jX2wSDS(5L!Sk;}EeU9xfiw8?X8Dchpf zDZbZNHUr1dMfljWYxTj-y1RLgs#Q!kPt=pqESsXwo@|@iB>Z|*yA%c_n>V9{e0Cgw zsruyZh{<;Wq4S!6dh!r&AhZMR*E^3yb6_mV^D1g{eDUCh$=F`Zu@Podv8?;u$yyq>*q*t|HB$%XV+r9jb*Sx=$+tu1eWFNPZ$sb(`zt)t zF7)GJ++RK`Ie#;bcZ{=Tm6#c|Vsw^b1U5JUw$l&?p)H`ZgiKC0TkY%M;U4=!M>HqQrn=4QURxQml0e&mWPyxCAfuQPZU6N;3~VsB%;NOuu50=PvUgKdou7>GI^l z(j*Zxc#|;QIjMqRcwdTdlqHqAHB1<0VPUU-iyqF2&Hzv4W|c&0AUaeP)|C0M>&XcX;{-Nj@t_*} zpci_vH~X_r_~2p0?Oeg*kE(Oymu2{u$WQHU2K<*i!@tBRGO~ZQsud^^Se;mAjm_NW z%o4TlfZK!PdjJIn!}6C^iWKrmNV}3Jl5WCn-4HYD6qI|prcv`=QOE2sUsS_yidy?O z(9;@R{?koGJY$h03H|I_c}1_cHU^)ZGm~&dw_s{6BM;R(Mw6Z5`Q;O?e;PR$SA@P` z1lMjvYi=^A*paKkHhO0g0Z`P}l`fi9- z_r6%%GN-A3kXRcH+O^o980Ot z-tQxYss?8i4OEVp770ZCt~9Wd%~3-zWP_>d5Atp~{`P715CEygpU5(q>GAW4Dm>DM8HUQ@ zutW#Lc7EZNKT)TOJi{>XaEXwUn99U`n1TWp?|2~a{KzCR%1Q7%qQHpgIDf?M6G}z) z=c6oEE9_oNOQ3YBI-=^3@M=*u?@wktUAL=#55Q&@q(>t{-NyOJcRz*?%;T%7buN`Y zEJDK##%x{1>c54O2Q<9Vk+8AE%c-Ph^C92@DSZ02JpW+#=8r%xHmDivMMq8YP3Zn5 z_xmq4>lE>yE|aLq0UBIYA0-}{1+Gayvd^%$u&psVEM5daukD|&XEmmfjTSaysM?;T~T8sE6FZgKE{i)7PP&l}|26rd8I|O%!KyY_= z2=4B|-Q7Zv;I4r{@Zj$5+;cL&nPr!>zKz}xCuidM=7v4yb)EPtpqd#TI zw079Ow&Mjk8o}9yICeY!$_AQRcmt!#J|`-qz)0B!CEYcBL2}4@x}9szzPE_tNZ^`XYNlY} zw`MhxONu`Usr$3StuEdKrw9G~JpEOyy>+H5Q(6uJw7w?5RO4Od7+X&rh({twI>J*t z%DlBJMjLULF!aG#!KJTgl%og-i_BFvN6hMk|DwbL)znHv+XX(_$Z#utu4Hh_kjXmBPXPaK>h@b;8_S zUjg6fZ0P z`)NW!a{i8R!)O9L2qgpblnImvj3dC%2LyBWr6HfzCFbmmiN7IF1e)GzHn!VoUsc_b zb4A9MKf)A_VfCB`?_-AeJVqviW-j~lE-TXb9}f@|({V1Ko$PNZ_E##cH(-f8umJ;7 z>{1vqg&+kwVp`^9>;U@L4cLPz1}Fy^A(Y)8!&&hhG85uG#Jo(v7%G^X0&KWl^ri?( zi%3fu;wB7v`o;HAbUr!yNo;`0Dfh2h<(SK|40qQZ9o^<#O8&wbM^z*DxNo;!=|>ip zctx0FL}6N`=8Iyql9dji`T`$vjp~nLzDwy*!uZAH<1+Sx8(|3qvVdGp^_yoUqTIhB zi3MoAKVK&8D-2|R2)DzX-$T`z1&PO9owa9MhunU0HEU4QH*i7JR?6t4_eZW@<;Y1o z-6C=0eAK7>b>5f)OMGn?2tR8{MZkB66mf#ZHn0TMiF81?;ynbgCcF#{@Ba6;8Q_g3 zSM;tGD5(cp%m3nZzg9s2x-01(pq_hPmr02#j9pgwET=YzL;?ayxX*IVi1H}bsL6_* zJ?yfhRgo7OAJgQ{WW}>p5u9f^4G-|vqs@os68JHdC~Fi$6OlEA)zmDGc2x1bWU}Dw zV}mG;#ZcSKU}DN`xXOCEng$zrQ2I^Gm;=hM;E9F~`AT!91~Ur-bIA){EVT7D3yf|< zLsilF#~MtuAP6RZtF$IDLa?0f4hOzBhlBU}cx0eFroDnzxm)p9Val#I0&LVA7)=5# zSeU*`v!|+qWnFJ0?@R#-(53#83i4XQ&XhOmq`M}Q6M7PXKfCs`Ygw-D;jEfFOWu5P zU+(dM=*ez%#kH)!!|{QvlA;0E#$r7&kOQ*9$X?2h#e$r&Xf&?!Q*8 z0Kb9uVNfAZI`ntiHzwv+wQpk<0N>=m2|)YSPW3Sgw*7}oE*(HvpMXU4J(8^iEliT5 z?)EsU)s4yt@#1V^)Ry9(<0OaWiBXw6lb!tpc%OWe!tbyU`!t>gJBWLRHTNUenQ6_t znBRK0v_2PW5_GikO4bjXMbrxMNv(^~NTsb3mAD)6xg{lAB}AQ zUWY*F75OHURX;;i)OS1pn(S@OkAxP5t&3A}$u(WDdYRwTB

XNGt^Uiygw1KUR5~ zhT;Izq-MxfYqTYl%x zU&dURGWUtc916;-cFR;i%knmqoXZQuwthz3=w}Q&Lc;bSg&|Iub@Blon^-bC5*4r552Ci&SctPu4Vs0CfreAhw89{1gV7!N{{lv$4T+SyxltK6^l zgtpP-v+LY9=nDSYQ4T1s_;frs9^>Mnc+~|1>TYR2PE*!=B>+zt{U+mVd9S z_@7tbGLS&-%TDQ7AJ%J#q+2FfhKda54-@YD8PDc=UB@2h)r|QC;0cp^kBsUtev;)$ zBrK@!UwMj|c&T)#pzch2)CKcW~;CkUfIcKySV`w9A}A@GJ7DuZei?xZuhy zhS^Qpj4*PxpGL^tHV!X&1#EMra055{bB$Rb@OCb`a@kAVW9vx3gvQm_4cCJ zLIPInF24D>?9;n$#jo}jR2@TwWhVV)#OB=;@A*<)=55PA7maK9!xKmKhW0oemZ~5Q zQ`G%TtEL@}YYVDH86v3QnJ+SPaS}`UN%JhT)q`j>9qLFKA_(_Bd)I&VYp#qohqyW2 z2B$ieJ=+gZckcsc{ujTyWwkz?<*iZVE!Ye-oHzDsY z@4g&T7dglY>H7RZ(C_BYKE4A0sq>cv{VRmAv*N#HK+2-wGSce`r709+g~eGHAkd?z z6~1ASk}`RZo(Q2d)%WZ3fWNCWN2@Y1xcm1w>8X?j?{)e;)E(>P(Vp?2s6@1;ybPU0 zsrRTJSFeOrw)jaN__0>r(jMV!#|X^O!c@rHvDn7#-SCf-$k4`KXPKDs{LIOGEAAKde<( zt(Uf9Cyj7!DytsP|7)ou@M<%D{8kFwVQ}(y=bGu?sWt!OTw5#r%gMmrv7Rifs8;T> zIHC<#$VhdlU*VZzR>g*$fVxoz|MGx3LJ$}fyX5G|-yKE5SuTfl3mS=ovqcqAmfK=O z>S*llG%7c>3gPU;{()E|lYHWPhym3?+9yOV4AG!EwY7&mx0U`g<=cLS#nS^jUX4^T zM1B)7S8SXg2q{18$T=W19W+Cu0p`76m@L~eK22u2ukUlL7uf*jy|zoNYs5F6Hjj)j zO8)I^@tuW!a4v*4-coCth527Hy>O4iO}MV|agqcV?aOv>tn zm0s<`w9MB8#=zdVVuhb}df+_n87NTFOXH!ZcIwf+)=@?EU=hm9e+m=#9*&}bc3&63 zr+K}$zvfPNjuw&zV*)gO>AFl)($}#j2eRcsO5YPyHO^X$IFxygY)FQB)e2sg8_>g{ z^!2vAFSeOJh#V>Jo?=$$=W97Fdob$bvVB@mV{m$^!ep4J9>Wdx%g{fs(!}mZBK&sM zMu|o!qv!QLffG5H@+1REZRX;>B~7L5g4*MoIVYKl7tC8%gZEVj38KvrR-P6E2cNMu zwc|t>nTkNjlLcwrlRROXDU&Ufi!iPIajmwxvEV2Ta(v13PBp041 z!-;Yb9Du7HTRCvYWgRyS*uJu-)4?` zZRu@^(8Gx~DBUb~AT1VUS39cvAP@-wS;-Iwb?w#3r+r-#Cd@PQf?`lRkH@&4(S zh(qoE0=$3S{;EzfvAyol2I^dZgny)qq#ymFADGi&9oi0`U=sT~fI>qx%}PZ1S7yV^ zWb9y96aULg_Iql8L7UbKDnCGt++n6+fzT6!Te-~pYzU-dvRvd85#iq8qU^fr=&<>; zSd|>JHz^8Ie-X;CRGW>bmQe$ZboW~fz0|0$#a*fgq+2dgN;(~unYTLmZ1gHSDdWTM<=I0Vj=qO@x7F0ov0dAAt~Qr8{D68WAz~Yb9$oh)JF;2 zrT2G2eP-s@+D3qb70}H1W~T$0f7sc%HJw@NP{z5%R8PS0urb$~#GF~H;Ke(v2TBNf z>ErQ8iZ*sYzDrRr2lA4GS`N)Ybb68LH65(Wpg>X|8jeeYSiWFFarL1zoYjMvPYi_Z z2##ugLiUsXCoj!n^K)YP^d+2-FwtqrzRDjKs_|b{j1R!OJ#9s4BUIZ-9sQD2pxaJ9 zhM*h9Vr1T7gCR~$kwvli2Vnh<5r~??N_xn6wxIS(nL9fqR0E;;+10pi9U~2WBd=h# z>_L)o*sQ`DOdBT5MyEe2!P+lKLpZ{vfPe=t=(SH2;@Aj77=I>gLOuk<|tfi5t~ z1(3g^T!JnIYQ2o-qPYMts98@!0Ssz%d0|JK*9$1;$Br$vOrak4HOO{MU8=Y6 zQXbS&KUAkBUGW3Il%X^9m0#aR%W1cAu0SlgJK+P{ckjNR1?B8i zfg7u;(p%rSE*iVjSpD&WC-wcQ6*4QCdz|4_^bQ{0!k!%lz5M$_m zeQB`wK`0S{GNfMw`NBAnox@rb6+S;NIVCwPj(9eT&>F~k!d!=uvp;`O9E;dh1*iYhJHk@}m)I@G#z12H42v9YEdl6rMR=#%3qkjt&f%}H!C8+oWS6hS&+q+kL3#D*f zYt1sLWg$`5mnBnwR89k)l`l6pTEL2-}q~(W)m)#U3od zxB2|N6mHAGyxEhj9$JJyD>ab6c(X#cGNopvHCFa^>xoC^3@{;5)xO!^l-`F}P4d^a zj!;@}*ABmGJ8+;H#8xdX#^i^@6raW|WIw?UoG zmnTmdKvv!^%J9AZG}@;W<2dE;d2}YQRd%u?PWAlh{dU?X>k-L@nuQm&j-=Mq7nbt%B4<8Bb9! z@^~VRF9+@z7qipm?hu+7i)%~k1yPw1PwvoYowV#cb>vK~-Ur3Al#}$e9+GW=#5=Mv^&gWgM;hKEr{O|ROz!oK`KRp8lfHrWD_4<30iRG2P z-1%RLBtS|8kVryQy4d+nRtwuW0N-U83Y=066HWYGbUQ`j^FxLWA38g}(FK{nP=<(p zTctgm5@#1}LCaCl5#+I4-TJ_JCZ12;R!}`8`GUj6Xbk;S`t@~>Yb6)VyqtklL<)(P zZQZ5wsG6o4_W_f$nWtzswMaSl2dc8h6zJA2$;vWS&rnQMTv2F1&O!{lAs}K0))bzT zW?)J-L!1*5#g7Cki<{Y$rYF<;Ex8Dr!!)(k?3?(LwJB&mJ zQ>$s$>-L5_rs~%}>x3#N+6hoFUiEiqbG}AE0emR{=S15BZPPGB9(!+`N7%BqN7;|8 za}X5v1MI$FXc0r&vkupf=Vm+Ihm41j$e>LCa_MJIK}w#W@@%D3h}>;HP4B~TkK0l{ zn$`&&jZ^ETs@KAky4ho%jLAYGU^+J70 zqAAQZK_-YbFSsM)wUJBj{Fj+<8#Dnt>IzWS+#pBtbj0j-fN?_KS|oT+pSDpSZyW}h zB6s50$xR{TBc6xb16F@NZ){t5Vg+k~eJC7_9^Yn7;7CvgR{=Wo#tFVsx#fMJawTrY z5-#>F;ZrixXmz1YsCoHa`)XjbhZn2eF4)r#X6b&yf1(`VwJ`wPQfmu9`Sl0QYvvzg z`7vM%_iYE*!69m?!5j&GS#bju#LKTZD{1`kc`8s=*wb~&#h1d%Zu4X!diE66!Ribq zLsso1Zn5gi8K)Vd6>5Lh90hEJH#Fr_KbSWo_XWYxP=DvL?36O_RY}(Vb}CVPTFMNH(GR2VMUGrho(8COjTL1eNskt6~%D#yd0? zI#*I&(x0W`GGD!{KSmsI{1d-XBlvaT%*FrjPU&m!7T}-@7~l7shBj-(!N8QV#u}ay zM&i4BgF2=Wz#W(BL^|@#bE8R%iZw*?eB$xfC?jNHT}u}f@{*kzDcka(vj7WASQ>sA z2lK7p|JfR>1`zS54)m^Ck9gSZztek#jqEVX*Yo<=yT>o9i)lq7>?@*jC@D^X<4TU{ zL3D3e^%5NvEJES>Rg!`8Pq_3Vlg3)RZJa<)N}}~^s(|nEh6=`mNb{AFsy^fU&`^7^ zGmdOhT7nEk+gaQ(ZeY$no0cTuc=he$eFaQ7mESy9_%C)VY5O2%J^SX{y5H&YyEq5} zYz@Ti=T+!Xt}B>5Rkum%QW?LV8@P4z#0;N=%~3M`lz06KugGNqfV}>9K>ue8@c$r1 zQ~^e+ZeX7_ri^VbNh!4`*;)YxW4+MeNSFiY9o{#F z2qJv*SJNqETQFIqT|g-Pb-?Xi{jG9fU+WoDDqev>TJ%TB749@pGPiolk{fz?M zTTV^=pcGS=d#fDU$YSMTze5im=>{lk?bz85%yL{SJ>lT@&AXxAcXlLU7(D*bH`mk% z)o=p71sV9?T!zfA(cDJ~6Tt7$KXFMN8LL36wm{Ha(W%cPyC7#*J=KqoV(vd>R3HlQ z%3BjXOL&5M-BnDSP4II{g3_9+1WgErQAmd6EwH|~UVMLI_PGtyR(ON5%&0KweR$cR z$x18$X#n3G& zkR=w=AVng5XVxao!OcD+ZqN;bH6W7t!XSuQ1uaE%Z>^;m{ZIv4K3bAu%V9*ov*-ro zgbBPr7bY&XpJpQHlSHl}`@-4I@nX9jJvX>6bgf$i_8{GRoISl9M($^K)h zhjECl+4K6KfSUn~_%0+QCB<#UnE3>u(PIhTD^u zy;E`9?xZHYvO5^v!`w59e7|gaW%Q*Zi7K!7`cvODp2@nQb^2*%U<@g(B1d9};=A$J z@Y`eT-+oMhEwdvWK(2!@`qlF_DYFl~=!x{l2iIJ~v_o?Hj808KPP82KV06wPZYKuO z_chOkgcbQ~up6`$-?~eJnuEu1!p$wwzfLNH^MeKl3Q)mWg|mk5HWVWg6X-QUKI7cm zI!Lm19+98fmfI3PVD>s8a1%aT*P?Gw{_}Fs(~k)RhEiGl-RJnvdYb=Hv;M7um^f25 zyIij+vJv~zQwLCC=Z0kc&R)Zueh=svxf9zSGP2lHktKFh_$7rqhupL_XsPxJN@Dk$ zQm%QST@{n&QlK1egVZtriGh>JclDgZ`kjXt&7TB#D=%cPQFNqC`AiV4t0lRu%~b1y zidrsU*R1Wzrf15QYlFJQ(1giu3Al=KaG#M4VX+%FG_x?_MZi(a99H*awxx_m@4kGe zDI1MSagzj-_!go?+6t1wc#@sNToi$SVZ^|8hHe9&Hx^VASgR-LdqikKMzJB#Xj#q! zPN4TC=xS8*I3I-IB=tQ<=YZ}yKC>|7U4@*LOT_qq_$);FpAI4R>kvUiimts8N9mOFViM<huMrueE?}v=QH@+D%n2iCrsp?&D%yP zi8|Q80>S4i7%`NkqBv_NCu<rgp`R};*P7zz%BLSaq`8TccfXv2RcVfyuRyVGqsvh711s5E<;06@|${xo+5ul zB^15s<}^-GBBaOu6BGqX`WUS5;fgyEzjHkj06yoZ&)JRW&&d!v`6|5r^6W6B0arF_*S!%F=J@%Z+r^9HzcutcHz^h5eE^s%YT%>$|=kJ^#Q&osUNC2 zh!{uHZD2L3cDK8m*(men!K?4xA20aC&;ULV0OZbpcdTEVy8+}6mVl-)XyUATa+h3R zav2`ha1S!Srq)sa=W4GMY1&|4ZF*$<3xDw;bICh-kMjpBX&9&t>nMhtB;`8cszsgo zX`*FKbq8Ia+8)vm?sl^|Vp`i;cY8d}iZVh2MDx#259ammfcUS}pM~`VEFn#lYSHl3 zmbD~RJk=;J0n_-Z2iLL{tn9te7Jvs36NRAcBQh&U#$caj7CLD08v`Pj)w^DkP3Ft9 zzF0)9HJ|Y{Sp=d7f~u%}NE!XFpMr-|-(_gTx06JpHN!$TVk^TYf?|=RtzHpw3X-;L zoZ;JAm5PK?&Vevo?k1DD1@cFOD@tMs)s%S4?OyeQPv&?ikJ=MZ$h=}TB!!vWO=~@(egI4A~~dmc0P7HZBHFRjg&EMG1=}iV6}jE|n1ir7=HkG^hN2}I3ZyTAsl>kvy3Ta!- z#uBy2_93Nht|%v;A}^A%o{Ot9_hIPPL;0Gt==AQ{o;A}?Lz{9GlrR%*2rG&^_XTch>hr>G4WPlf5 zhytwAP7P0*_ozjXZ#zO&uc<tPD2KrH#P?|o(CbHe(Cz$l4^K_-xoXRWDdopNZpHt~u2;=Ax>BFLj%a|uJF zJK1XG8pb~e^EDyNgyD9i*a-*+A@Fi*n!*sK^=KQ{U^3pmmk~~Ro_dxF`Rr2jWSTVU z@JWlnX5?ZD)(z=x1;YxOT%!%L8`L~za7WNc)7tY+5e#W-{|PX=d4St^7EW(3{r`|YvA#B9K+1-hb%|BCLUJvKHzHx9Cr{|wG>p6^{o0QSw!w?J7hIV%~16MlaU^eam$(xZ!v z0ZB4M?^XHmLe8f@;=MAyggA@=4lDrx;Mb}CSLjl{{|gQMy`_3;l1l8$!trd?+o|PP zdTwG8WeECWknl%O^447hGNEr9nsCLre-g|^8`fnmeRQ54v+d2^C@ z>1b?G7>Xtnt$}-$Pel8kA8h7;SM0msq%ef@u`FE3!$5YEtg?+s5QnGYICT{!>+bou z%GGx{Yx*DK+a@At~xbla@8uo7iI7$4~L1cfWk5!eE1yJwdl7ojw^%BTDP1Qa9@S*9d*U;0ckKy}k z>qGFo<6$V;kze~jrE}cvi$B3M=c@2Vj)ZkZT^kGv+zV#>&~&&pNS~qR2Xo(&NioB> zS4^t}X^e=+G4!7|E>wG3OQQ>SzD(Nua4N-0vDh;9saH~R9k<}vCoye2+U%>mGev6M zivEwDkR%hv7Rj*ybVd+wC@ox=;6}Mpq zxJkYQg_Q({K4csn+=^ZzSgO!le2h?M#`U(xUuK$&V%i&MP^3jahh{3R%G#>+K4J59 zPgnR9*f`F8P8#sT?izEpE78$3~Bc*9WOu8GmuB@N1i45$GPoQ~<+kF>G!Ro_pP zJ#61>a&|e}ZA4mX9RJFJ)0YV|c68`<2T=zr#q^u)Y#hSQdQn6>%EVP}w@>lobxd%Gx>0exav@fFca&!m3GYq=}W8*|$4H z&$h~4xsW$_?9M^N3jqLQZ50l(v zRqCr08(14>a?GL?q5-mqGPWh(=E9Kxvxtr) z@ki{s8hPU{e3521^rkgb&DZYlz@P!Bk#g^#?0zgMNRC_G!2NjX{0v* zn6v*1YG%&Y=KZluwgCW*uIo#9d7UrLy3wvuJl$vRVjgC@K;_lQ$Yo#Tmv(kVG|_#8 z>*<@vW65OH@rBQz0=X(`LwH|Hw2Z6T8$Ny>QNHfOWH8(OvVEvRTUEat!i%P>QjB0S z%PB*bmaL&U)kfVL-fX5FR&!!Kukfuj#z56TG&1LYr4d^nUPaXQIT{42PO&aR*)KpB z;D+crOS+0;sm>>qEp!dS=ee|eGvCOlTDE78kozfE`=GxAdPogLyfzj57Di8k(4lPv z1d##a3_s?@u#5<2b$Rgt%*rrTuS?&CjSYKg!+`fzS2C3T`(+=jC@EQu=ej1Ze8B9T z?Oc(;pFWfdEdwFovYfvYKr^wwBASzpk_QqoeG}KkKq5vq1Ad`r3R6tq@F#`~Js@4# zBnnc8q|G-v$NZA{yZb7~MqZ_F=7|>T$PGyfh)2;{rAJ1P&)s)oD*ZyBfL6y75-DWoWBH z;nmrD5HuN~rXi73>Q%Cj@k!>QrRf8LRv<})t1IU#>zE{lejg6_ISU*Z?Mma(kI{ui z^%uIe6`8wG!uQoPU)0W*hX{y2uc04f6TfeYm9gXOw!x5Koj8RyhK_|`RCp1nyF%ec zEt+|26EKd8AvE%bwgL%*w)Y$WtODTFzJ8Z+ymDv(ciDgZJyRoM^ERk_^J=latHe|) z9ti1&1#i==jOr~(r(TZ5f<9oUe!ltU9+_B!-&T1>(BL4YX13p?e$6O#Q$_oEz`Bh4kY9m#+wPBpe1@!*@cP%C(&cC5y!cLRdl%~rFXqQL{F zeR=NbdX7SnG~7);h)-c=aU~KqL!wGRd_bOuzvB_r9l+QS!F~A-Q-gb!?TX8Lwp06+ zj+@X&M(yyw*PH=$6P0`u#=uRSf5~XEzVZ;T{=euqfKHJ23KWO6aOxc}`mOB$qTdps z?Gz-`a`syp?9x?qAMak~xA7c~WP(nJf-u_Nm!;{Xx@@|{k_%w{GCB(n-kCK^Gz-6s z%Em2_-WiRt#N~sYA2pCWuYPosh#3<7INkkQ)<%n}X1<_qRa~;4@%|RO@=)cgt(+BQ zty&;a|Mx3^Pp1q~w=L!krEw2g6mxI_6be<{Y6-b_e)qsywc3>H=S-+i>If25A)fRt zD25t00y#fgF3`&Bu)@2ckLfh(sk1i74ZFazUsAKMM&&I=5*8{I@r60NU=VTL@?}q9 z>rZS_o%@PpF(s6;0TU&_KF&|Ov9$w)|Gd?PE-wXurS|VuV7#tQ`B(DO$sIlm0BX?|DA^?aOynY*56D37oa(xudh@{RAQ{ zAAYHgdl=aisUv98EMMx7EXBxOm+3TW)g?Bo;|N9O6UG{VTF7JBQ}_yT4Ns9#VjILl z7UH`tn>+qcUD^v#WY!rfKoT}j>!kG4NI=$eG>-1ybFxy65d^a$Zl7Za-7{v>Cw@tK zk-Ve07Swb>)2qEBe(9H0)k0rB6iE20<;2h5Fg|qmha{iQVT)b`fUVeHy(V5u@dTJ7 zfE^ewr7jaR3^@t0EDF{F2{Cf0G{ckca3zP6s6l=dSZUca53ZRzp2qySo2koeOkQWV zYh9702AWJQ$(I#YF`WgHwgpxDFJ2CQS(4$R$nwcXnmQO?*wU|8ByymbKO$4OUyi%i z-mSYZ5hUenN7jFPyJ#F6eJ(gv!{XQ8sxeS}IO}W*GtEAirjC`Ke)~hIFIsP*$&xA; zU7MV;r6?y$BtB)2tVkycZw|ugxbM#Oi%LeDd(&{g{zDmMg>WVyt@{^NgPK6(G181TJ-p|-CV@Yj+Y0GYNxf|plI zx0W2)3P;=}H-&;aFgZEv2}G=EcI>|PU#Zugg;UbREoLUHJoOS%C6Qm~`Tf-7h9JN4 z$qXabJBcq3rrZbM`{X4h0hMtrUWpHJKOV~}dN@>8G=(2*QlnjuwwQIwA= z29|OW-g7ax+4T8031MiY$@b;pXW*9vzd01}S!gFi*{~ z2|i0#k<wDffIg2~tMJioDQpC4zo*If&s{rkp%CpvYh6CI= zwqdeF1DYF4{92CU43TOA?)4liqD>xa?HAlXV-lnyL(3^X1lGYd<&G6(Ma1>dGx_he z%;mj@Xh>4uQ}q>xJvS+X^&4o2AkKR7<1El0IPT;w68gqn7e?uk!`7=5<_c2!jvSmN z6|=)HdWBI4D|sJj<;ml#HXkp;^IFknfa=|t3S~j{MLdI1ES`mhg1^l7VKk90H~6|3 z4+O5!2eBu{y%*D1B!d{@qWUGw^$oOt!s=k4Yyph)`pbN&*Z9hRPm=+Z2GCPaAqU21 zwFjGTRnsHq?z`GMY>+nCRjVE{<(fS`)s@3NxSnwJf@-KhRc`48(uH7(p|pIhO(Y7T;dN>YzFPpZ;hYGy+lK5%29}Ii5Uq00 z{ivvPYok}xWedD_a9^2>vrP1q2)ksQ~k8M8bF5`I=c=8j&{R~ zA5xDu3~6}+C%X`pG~TuEV(yx_JBH!&x-Vn1-w|e8*A48!j;B<7*ZAa^2DPL6PsqPg z=b-~L+?4^azfNGjMrlO-o?3_k2+ROFRR8yq1KihBh0;YX97gFjp>rxZ;;1>h9qRFZ z{LQhvDK|=%ZuQ@jDH-k*gDD~sRh(aA$BpK44i+82Xg&Q z9D~)#Qjz8g9fBmr=ZRnqnlox5RY(pNp{EnxOicSkQQp}aD21Rc2W$h6x@sR1Zdjjr zu>&Jb;`Fk0U3$Z!^s(%W3N~4UkiL7|hpRtgNhZDDdt(7m%lfMt!1aoF(>kUWXw3}X zxuvc$kR<9NnksCd%WQEHvKSbQW{3(hMBC9WK|aw*mrFV|IB0D>5pYEG#PW)e&jE*d z_r2+f=uv;&NhQ96-8T6Yj_+53YsnS;Vt^4fd=hB^c53{c z7W;G)n-DRtd_iRLh|hotaGhT-YY>PdouKQTNE=*deNo#7EUn-js=6F{p&Fp%$T5sTOmN3*6G2tdZXMrf0(l4VlAX z<{0$#pXypJe@->+aEyKd?KnDr1^KJXVB};0t0>XicGP+2rHA8-DmlvGlrEd7RN9go z+$}{GjU>^&2wiui)09JxuX&G-;u7pA;M(%Eflz0x((hMg2jZI?N7rp(RO@P9HGHzs znUs@)D~`0GSvwt@>nta@+Sol>L2BoMorglv@YcoB)Ts$6l(;zP*Nho`(kaHDr&^8z zG=JlA(Pgp^`12CHR8d6R^YRi*AkI1JwUoXQ4vAZml6GN2IEgN+S2<&n9QH*gVnZeI zN!fwFV=GZ;Yde<-9a(h>PCK0TXF>(B^uE^y9L6^p$igXV3=`5=efc$VSN_3?|2Z{j z^AYBs|M+aSB1`|?TJ(DV!1f9w?<_A1d;tFI3Nw&kk8)#@74lyR7cTe-&`~Xu4;5Lt zST_ORf2Ab5Jfj1iEVkIfIe3v4r-;}yi9e`tSCnU>-xF%c!YUo-t(!k+x998!6?}lN zqbceCDWs`nml%_&s5O1QCiwQt53w!p&lKgX9;r6#n@v;0dIg`FHu|-o=beIyE5ygR z6$iXF=&_H3-sfzXd0aBRslBPzMtlSC-kV_<5y*{8_{ZWzT5Z`SCY3*Z5n=>5B7P|o zKfPJuvr7$wIoIv6IVG8YDV+W_6&Hcnm93W`0yw)<^+Il;W?9#!OtVXw-}W5!C^V@a-2ESv0EpxUxK@DT*%h zfQ*uR5GrKlJYl7vf}2=Cwu}tFgrDDE8DlQ01-XQ4|h$tR@-Kt!N`tc z!i6|BLn4@HvfB@B^Gd5;;A&f)6 zapcnqya+XYyw%TmzXMd;*(o!XMx(_f4Zv=kbD|+~uGzF<71?eND+Vx`4QWuFf*KXl zg6v>?)u2jlIU0mdPAP*ntHe1w+x<&YwqkDZpvIK5S7-*Pe{9&@p;&_K8KA9k{#h zSGMJE@lG^ZAxc*Xfvi-aja|%I=Hn2(@r)ppfVW)An!#SjC6dr>s=4vxPb^mjfb2iK zpE0m`x?;^;p)&JrPdps>f^(557T;>2r)ewHoa50w9D_s67a`E*Nxk>&6< zi00%TW@6CkI)656lf$J|mpF)cw9D#0xS?DJr}@$ELm8Rz=lY#0Z+bIo0MLJF(s^|W zjKX)IyUZ)PLpWanb@qp(K7+It6)vvlIM6Yo_FMl)(eQLL|4|>_#LB5SL9RPPq%_m~ z^ld?n|4)grZ&=%mcAklBpGx@$*C}yyKIALrm7Y_6J4nRV397vf?$*qoY_lY>Hu`Wp zteR}PCyAf|h-Pmz^APQ(ksS#hLuboOfIjFNmYW%QN**I?3PF>5bLE{hBmcng1Ap-BzOB#>8M0XE^@;Loi zz&;5ZXm_gAm<5gzs-IxXzHF+%ok1@m7%^t|IEi$<3zzep(MO(+4aU%ZM^L~Bd9Lhm zqSNEF^Q9KB)=LN61L9KaS0SVKebU^~o#iC=3xa0XpH`AAaK0#@PB0Vj`-=ez+bfNn z_5W`PQf!3G29*tUVhc>5U@lblk}?C}K^PWF520zH;{USZER_@V4)wzrpde(3n73I2 zzJs0r&ysWzhC}<+V=~Kc?dxMW?b({2R-*28qwDP2SYak&V_$bzR7%>QVOo zux3oD$RaI$2D8U}uVZ2QxO8Aj*AUM6un_JvDbAk~+|@WZI_o7qGW-3izS1RBrdgcI)4z>s}iu3jnkvJe*xzk)-wgVOXt za4e6LSZDy$8p5LQf69@+PX02317M!?ceuZ{9UJgs0njFZKq_z8{Er{LzdJz2;*OmJ zM}?B}_NB4b#%XjeV$~liYUkP0lStSOF!YXo`DFqxW$YXvPt?3tA!gAMci>}SLTS-d z$v?P?Wub;ssgP53F5Yw$y8=}%VEwBUA1iZ*pH_F|ibmJe_E`VxFl|1)3FH-37;dTA z{Cl|H?g$fRgV?J&&oE3-ElFsvw8Ky)3Zli^cWp2^2^8b!1)-A=#K1wzRl&7N5cjj1 zQlO2|<2$Qa(0Kf{xpVz)bdwjfA5sWw1H4=glJ=kj(88mgg{#V(=%%ZycTzleeb4Ot zOZ^XWh|skG2)7Z_qDx(Tn|%UlK`#~ZI~CvO>^90m<^FhZ-@%^T13N!^0M4&>E3B^x zS>%4h+`dB#F!8W8nh!)F{)hNuBMAFV{5hGu$id>6q2B5}-0=ydGnGVrp-hBZXb?N zy+^L9Z!^odN^SXdR6!0`xVQob;H}?RH+^m+h4bSnM7ia>2cf3Oak-?K1srklX%cFf zV6)#x+;suZ3C;7~CNY%m^A4DL8pWv)Q9m!VohNa0Hw)X7JpM}&qS6&KYbQ?8MI2YR zgXXjE{Pit@ye`1ycXrf9RxJO|&hG)ICP2upS-EScl!o!d@{VB0!JwTdYJAFhB$nXc z7xVeSWAG@4Ou##)mV)^WjV1u!3d2m>WVxrTOerlZN>rJaGx~x-Y0S zV`lS6J-AG8-$qddtW0E9C$dNZ*jKcfw-L6cPTw$j2^*4Lu2Cq>GV1TT zL^-KM@&X+}zP@{3R%O>F6r-<$+V%uPYwGcsJznSKmX`9%Wj{(38K#NxU2TL=%P$pm zgXHaRvD0I{qyvvq*6Xg(U?~vel3Xb* zXnX8)5&B}z2C8=A9_51oLSlPKj#nJ(#xb=HfCf6)^bvjEn8_6x zupQ03j?vl1bzG0U8RRoqE0eg}&BD-+a?GcDa&K-JknDb0`fq;mYT=NjN03|}P4&fR zLd%|sBCs-gQ*vAO$()_fXlPhSoX`DLX!$<U`hocp(@!hF?T=GI7TM&C_H zjfuK!rU1830sX1`GQDF$7VFenZv#VvC-jCoFNaf*CVI}0_`MfKKJk2YZV_K4kOTD9 zPXxhvQu@Y{sA2k)3JGN45DruZD3UST^(z|8xz1~~B127okUqMCIaYW8Y?uBDU#8a{ zf7S{@zsY0q>N#X+=H9sFDd}Zw|J=!X&;7o^S#FftLL%uX*}-457*p}=jouTmtBTod?1wSMfw?}`1p;!X-g!Y zzrWfcMQxTdl0Hp`#->p1AegSef}0Xq2a=Xsv-*Zh^Y>u2XVs$su%u{j=@-f>6@An+ z6)ERE5rmSa-G0ucr0TP*KqI=3)S=U5<_Ezo56&-bxONcwFAx@$Jk`+SS<<4UoM@-e zz0LmAr1dE59HspB>`y!X2MsCsp!gTy$aW4^Puf#onBxZ;l4H2f!I@rA>ZEI z_q#f|;%KA5%6&2zJTV8fY5J04fBFjg*7yUb0o8&L0Q~FM*sIGx$9RBJfj6sfU&15m zuuFSo2exYgnGw#>h+d&+*NT42*s6~=X(e&oPAvnjNQSH4p@t&WdQ3T`l4;``bMh2k z3k%w#A#jIGvF_>L^{>{cKK5Xj!m@f`!t)MRDQYG6i%Q#N_&aN#wA3$ru+W6IOUt8_ zCATZ*;7S$@3#hu@5>gxv0oMS1zh~S$#I|#9sh6%==^aDY5@@Shq3Yp(mlLiv5G_c_ znZ0@!-3L#Zn(Obq?XNY-f=8%U5V_}f^S$F_xUu!IUM(i@iQ%2a-5-fv^M`tpz#s+S zGPKv>VtwTuZT;VTPeg&aXG05-sBHuwfpUo5R@N+?&U~F>@Yz+_7^91;E#|X(k0Ctw z#*r@vQS*jXj7KcXmyPZv#Y4@J7WD=GqpSz4hWe=`>imaf9xoR5I<-8XjJD-F#WYeZ z=5vYGhpKnwY5ajLROKt0F+ZMku)yZ2_+)g5mfp$9Sm+MY&qD*~p3aoMiBx^W{n(F% zSzwS`%pbN8x?=r*Ke83m6ON}d+HuL_rPO@3rA)cJkR>$2-nf1m9de6Xf0>djgCT~i z2|AB&Fp!0{L#VyWB`N$rvgb*i{r`{b>CQ|LKm~wk`d7of*AhSgQbFL2A9&&uF4|6} z!b-1=Z0)fD^Ts}M$xTE}b~f&lndpq`fO%O12niF`$TF!PmX^`%eE~O--yBjI#lJ4%3?rxBfZcyUA zANSekcQ)?_{P6q(^UOWh%$hZ8b>S8U+jikW9RCn^33H{fCuzdH=OGE!ZLron;l9{F z_q0^@!8j6Q2+7ePgoH$*k8m^%K-?cE3~yKLTj|3|Y&#XYbT!x5;k9xTEvWEj54daN zM%cty9?ZNjoVojUJ#b)jc6142bPyqU4EVh~jIqA7#xMo$`awPoTjd)5{)DxiKeCdb-OLpd z-2B|Pds2;J0K>^x$g`7Liz4si&gztvbiA)D8di3e9?+dcW?02;OAgi5!$;!1tAj2- zPce|R`ErypX)dVhCfa6Jjec9Y&Pz5=kZ7IAnDOT$%TZyuD1R51`=C5iiUTVHGW_hl z4j6{yR3@{x@(jYnh(=0>mVM>EZ=OO0)hP%IsN49c^W~uwBMLlBD*MwobPMKMyaEhA z=TB!hDc(L|sA$z2Qs_DB(57_62p39SLVbNp_{9N{yW>|M`G7*-)3RnZn44I)Bh*4K zsTv9L#kZdr22xI3GEChU?(>6y_{|Xikbz(j3+LQNmZj5i9Iv;CocRy6!6Lie3Z_sz zp3k5kb}n2d79i}C{}g%_=9f@;#lH?EkIRptah>Lsy4t-=w#b3mw~a!Xxg#^W0KGV+ z;m5oe*9s;UBHYb(MiSuuv)n=>TuI36);m zy8U`W<|1YZ+V&ncPC9SKo?j>|NamN+D9v4?7COtzSJ;W(3UxL`o&U(PT4`(3d zgX&kiq@ZMO_43s^Sf!&ZKnFBK`cdyw@Z*J(yrsR93_DIwsg`!3e|;maMWxXYL%!gt zfUyik1V3L~z7V-Vy4L=MM(&GsD*lPns>YBj(uiT}*05VQ{o;iYhA-(qQrAdNEGMa_@0`k@0q4Mnbx39ON%!!^~MX=oyio!na47I zS$ZS>HjW~PG{H|@GHnLU+?{Vk zgXxl$hiMWwp(ziaK2y2y3-u3u@;Ek82sVo!s9b@b`WW@o;et%(H1v*9!)_t^VxzSs zc=p+(p`Is*4PqaM0Kxo+$M6NlmJ^`J+yl@I0rCrl`?~;6o6fKqC>l3yOj12jZaL(^_2jsJ6GcEswq#Ay3X2Msi`bEL0?_zhwm+}tO zlsWxi_+nXIQ6+iB%3J+Oto%mj5~GXuVOj)vBxw>ABIn`L#jBNg;89Ke8-O!2y`p({g zOYcYxn9_X{Ff{X5+*zMEA1xCDDzkvr^;W9dydy{N!A;baQO0WDSWWX-={`%HxfV$4x&#wr zvuYpEx;9f4>$Pr2#|Xe;@jYy6>qVu=q;2`=0?8eXw8cIMi7XG&y53E>iusfj^erXc z9m|=&fke%Fx!%6mWNHKR{+s{5r7o5`eEoGt08BS#pDZK<{gXyI3+|Jlibz8P zv0<(Mr8)-T%`~aMU%@8@KZNU1Fr(8euILX!xAfpHh>NQXY-9gFdFz3%C$k`35ubl5 z4lFPE_&w8d4~VyH4zHV3v6)2XJ9|Zq%0}+%Ct3xq>Uk4j`~PaWTbkkj)pF-ho4N(9V0AFCO%51t)?`L+DwLj{7I1pHnu z9IP*_Lsb7O<^H1_ci+@cF3xqjPLb9PJs^0Fc|`tb+(eDDnUnnCd*V zv_1d&%V|3X_2T3;N-}i5?-H1wjD9cRT10-pcbCv8pti!gB=Z_eO*tgjQ-tyEesC#;f8x_S8<=PrvAW;YV&YK8vZdt~;wd0Jb1snDh zF?BPLs^d0=Z;eo3_0D!m#~YYu4aVG|#~9PhE!@^P)up z1&(RXQt|uascl--KgRK2T287U>X0g(O?YH#yQ^&^YsG)tvR}-SzgOBIP!8a;syL<% zM%3vmg%FseSW8Hr z4mYSX27KAZ?JxeY&`gkVj8tB*BAxM#fA7i6HuD;uEB{jVq&b5~%>Q`E@RGZqZWN0h zkh=jcUwTzFE6{_O9nDuhoW*CoZ`Q^gBDb=~j z#*GnC9AmwdT0x@9-=LK+6G{HXNRb3W)zqr6^fJe-IuEW=Kxp3*hb4LMGrm|?nnG&< zfrfVFsY&xTs$Sn7uYUPbsRp+-KUuPatbp`z2iLjJ4dUr`&ajgjEWZPqPXTPmH9KLE z5kouli7V~qowp8zR8f$OaTA(4^NLr18!oT2?2lE~SUerb<kfe+r$g)CfSH@Yt!mq9 zp(ba&&CRYf^E4WWP5fW7Es17ep3O?2ZB~N%LdtM{Nx~AxSFf1^>ozy`jJoZrJeNfF zM%72I)FjJtnV-KKYny}W7U{ZWYJb+_nAYt-obP|;$A6GXXI-2%1~jhnrsKXZP>;>( z*mcQprWVimTWmS?9vqxAwoI#3kQL@zScOtU<4gpUuoN1Tzqh6Ww74+qt0Ur#%dEGmQ@^xj`$Fzp{*TaR9J$QO5I21-xIxuehJ6zBU6#=-wDpP zo$~``4NkE8QD_?j@%oLre=tk0kv*cXkKw%tqxHJU#Y5Uz^fq`*cRKF+FL>lBJX`r% zGfT>89yG+GW`*W;*jT!a)4U{7+d;xz9^I0$aMz zi2iqTLOavV0y>%iX=DGxV9)Wwbm^qa z?Lv+)SzRNUJ=$%u7Q^{WLb_AqmCQvi<@+Sb*G=2r#We1Hp9;js~QK=7RI=ojFvy%^0FQO7Q~ z{Qifyy8P(3G22*J(qY`SxT+ft^Ti&o(b13d672VzO-Rs&3+_|O9DFTdMV*1TWW1t5 z=R-of21bWNz~Y;1%WB-j&i9`OGw>@$tDZk<5df&;PshX(M4$&n#a!KzCbwRh~e zAbHc&Z!d+I04wy85wj(5Ro3K5BkOiWPHoL}r{Dbo*LdAsmUtf`En=4a^*qw- z6Ep@>8H?n_=ku+*?}_ZuX6zfGTlPg>hcmPNO5`%xAN?$U_Bm3YiJkCR&|x&=mMt)sGoUG561YN#;GX3fz}&M)7r&Tt3gk9;n;+Q_kkR$=XK<$uUr zlss9OyZIE`A_1K+ZbSRg$}N=ss~T;M@^{nyu{_#TJ=79DI($v~gHjxe)_bE`L!|Xn{Zojh1b$Lj|Gf! zCOVQJb!i(+E#>cBFZ3B$!HEQ*!eA!*+4PG2;#oJ*n|?@8wz z-XsIetSWQ-qJ{)5hJf~H>FF|IS6dsUArDQPdvTvUKyckg*AEdQ`b~2d@hj)aDr&e{ zLFXDN9~JDhMLJJqJVWQ{s!aX0YZ&SG;IwlcjoVIPWU`MG+gfwE$&>_)SP1Kf5UnAo zWDTg1WND&%qI+Vvvu$&oLrfT~r@y@#Hkh~=oZq^z@uMG_xsr1aE28RnRwk67X}}Pm zf1$dd^zqh~`Vd1UV*p`I+DOZ|3h`F`#~VjUHhtn%SSiVdUj_FMQ3+dlBQu#!j@qH@ zU!J{wrIIlNpyd{b((-cQVSU*^uo5&X2D%7=+U=AS*8ycNO`~ix zVTw#pNf@-hzj1ha@cqQyxc8>b5B;^PpPF;)>28OGBGOYyJN*Wi+ZXZ^#jNrn0Ti75 z-&xqbw)z9sIi>7MWFC;p5?tag!<_KiHfV2QDga>Cq4(*9)f9LDt}hq6*zR!5STDZXg6u5DYmIQYVIi&z>*QqnnmLgF|z6n=tXKkwEMxYUOYJ$i4(5F zQGhNgvc0V;$!VfT51i%hZx4euZffI3Z#F+2HmRQ+kutKU=lx9B{Etyyi$!b#;0hIf zXXNdLlTFm+28rPZK~S>o;8BedBwUS%EO$Ayg3TYSDtKAUvF99l*?=2eM$IBAN!=J!Zzadr*gFR6-&i*3g znQYS&gG)BO$g1Tioa3oA3$`kCbi5wfxA#!>T0+jTilhe?ZC*`@XuVi^s7^vU(`nSY-iFO9a0D?YI@f*Qjl?4M17Kc3B zUz~vb)+iV~;ud}{G(sRG-T6wG)f=0~DH;U?iV<-&zMg?*+ zASC3h)pt|_W5)5u14)zPDskRZjf|>&zf756&+ot<_XjI0-4n3&(dod$xBA0gX^kvO zkl4-Pr-BeYqua+Id%)1O^ex<@cj`%lvPJ)A-jo1%n7#LY;zzdd3csqRoL*o$UNdKj z6*7MmBvO`IlLxza21I(y{rZpqgtHX*z1)YsM2p87se}jle{3|~U{dMEX36Q6Ho&%d z2j}FDBoI>;y~e@JJ+V#y(zee9T`u#Ef@oZ`@k+;Z1&&BM;xjiJqA89UX9*$$_{YKC0sG#FOZyB&_Cr5%S*=4|5bDb*r5tK$`%xt z6+^f>fbj-8ieg?wvsMk9bovDB)ruK4Vxr&0e!bU|QcYlbR8}8XMPNkP_>7HR*OzgR ziiAgMA)+lV=+>?E2_xz-b%w>H4QEX=gpW=*3|)UZ>T)a>Y^wu$0||Zc0_StO2n&@I zKJI!`RJzfeI|Wi0+Y3jMHML$ys>6RLQBZ5bEAaE@@MgTWx0K~tXA26(P+4_hwdcGJ zOdH&Y_erZ3J`f^2NiKs;^-{W{k0LMsAnTGwghcJjfcaf}U_^2FJw_(~VOA2cTap`~ zA*r~zARNn}ey0rnF`g;9Xa89OHIKCxf(FJ{|3qVWiR27&Cjcptk6qE^)6<`=ODu_H zEy0J4Yg=^Y1?j!Ek|3JSH9w^7bt&J+ZkoIjGND|%XN$8(t~^e`JQ0DXxCK+yn$D)t zwiVp=k>vk!k)5LDJuCh=LI1md+#nz5} z^p&8kXWjH_s_gbV{S5fJ5$H-KI*NM{jIr<4uFblCGJK4b+;xmx``^~vzxUMxXfxyg zk7@hDT>f8DGf0U1C^pnd6HNzKHihzabVGzY;Coa(%WIWVkzjEmKNuj_6`C;L{?Mxi z&&k;UPts{#t{S3aqkZJudhY(d*y*f~SZJas!UY?tiQG%^M2gP?09ZLbT~}(AbGlsI z3%c{{1h{~)MU}mo&7dEnWg#m|F+k05v%{w~TgpquEeSz$TnoZ}lP_G`65;~y`kJYl zUl*2N0u`b%sDrN#hH+E-izcfQ)|dJI5KCcXhBV8SOYVTPC${)m&Pt<0YmQ3Ujn|}$ z$$RAM_Yw3OPRnLG*4x&9V%SCz(U$P zUxCvz3p+(pC4W6do?zI)ZmX<1DcS29{xkgDk3^$y%)30Uu9~-HOD-8beF(LK6BD}= z@^2SKB^*Z4`o8W|YB<#arYa5C=su>J8JPi`!L?4NdIS}yiy!&j-&Qb7p!-ip52eeZ zu(Ep{P+%=PzU#%H%r)(%vQSk8i$lm$nrXQY8hcvLuZFflo`Sn6Cjgd8qqypc9cs-P?XXM=O6SVRAlyDJq2KQpaKy3mxD1Wq8VBdfGsevWVeaO zNQ3x0H2q2tET%oYl#xNxsoJCX&yszZeE8HA3%N7w=Tm)TIw9&FBA*mft|@lxnAbN1 z5tQunxpSnw#tHB%AN+4tUK2yp(4X4_6-)#`yU6sN?aODY_V=zO3n1oc=08RE#aZ+} z{xX4o<-%iyr(XLJ)!7DARaVL{{XOt5W{(M@C@0E05iAHw5D5@DFW3L}liqLAZEhU{ zmx1?tOzKhQitVt8-LJ#i-zJ?*j+!(e%nu7?p@~YM&4TJSaxsj;ktA_}H!ktuT#)I! zrt(Y8xkkuEGJKPd27;y@yQRePIuOc|P*x?tqg{+GtgW=So6?&+%u{V$1T2c9=vS5$*5OLL-I4R#c z`b>Nim+Q~EJstBX8hwVQAmV)Mo&+9F5b^XM+WVI%4&vc|LPLqUOvB&i!$F}o3X_p(Wr26*Cr08oYQn88 zsdiAe;`Ag3#c00m{hG@Vftwr4R!L`I+*oOuVG|=r@Q8Zvqp{MUhN~f`btdj94h=4X zb^^aa@Ibz+SP^M$#AWpKbuUb{s=5EF&HixgucNHtG4)Ix$w&2j2SaCsIP`M)K`-%}0-9LnKpN zyxRfQ#P5UZC_wVxw3Vb~TIFbZ&;{DG>irQK=D_Q{I6PGaQwEMd2$lSD`xM3kWp(lM3)`(Cy3X?*S z&kfBIaxWo|K7!R(kZ>}y2C6_?fY1@o?YAH`o<`Mrt73`-aLdyJ?%MF@4RRL-aLY5| z^*%_#33eI+VTeFVUP6XmVz~Q_>;g(1_wcSmBQK2jZzQ7jDv^V(_wOVkzx{7FL88nk z1#&Xq{G1HFp&qT2sBaEpOsh#59#7`DMDWr#63-puMVVcl9!aklP zfMi@?bDLe7_%OwzrE}mtz$7>#K4OZ`C^}hEcz*coI3VcXM^Q{YBTX)rV3Uz8CeEj( z#6g(L-I?MXi%ucp`$pGr-Abr84VZdkUo4 z{6JSshAw+ks;%QQ^o=yBst*39DoZE&Rhi)Y&)_dm-SB-qH*WJQxZ3aS8oDD~8p<{~ z!1oQ?{W=%iiJ5$s2Mj9xZe2Ldu1;Z7d&rVlHKzI4!4`i#nQrKuC`d@Sdb1?+sDG#l zT`)giQ7epiDBwOTAo<_F1wArL45SkQ^-uUKE5{4nv=cxH0ghSvPxu20q_NBcYJz|_ zuk{dc^?4;?B%uN*gHac5u9&_3x@dVp=J5DrL-C_(^sor4OsVl! zwtZlOOUuD=Hd8e9Snuu9yZ2lc8P@v7td;qUBa5?h$pZ#?@6`0jTI%Ihc@+l5DwH+M zMU%5oDaOTbdt4yrt#JC9%}ESS#?e8(7;krEY5o|R)ohxt2L>+TcyC)ZU~0~6LZ@AE zi`vTe_QY$NrF6kEf>p@*E*&f;+bxzsKpED!>n&__b_{ffM{Z@u@xL~m*yJ;N>wFIgdM^up!BXzN-1 zW{B|-*#l~f*}r`XoG+}r{wvM_!dB_!RhjXc*yEuR8FgK~2SS*(eT^vqZ4SlNR(WmV z1h?*$@{_}{D&>j`mg!q?iE1^hrlun&Zp6^2eC5>h5td_?LL!(bXtA$C-%FzsdR>;8 zELkYjm&{SsAP8h;vULIa2QYdQ1EY5jVqpx5#RqRQBc8Ep(eM zGGrIwANlil@r7~R8`u|-Z+pl#VH0jRiIN$wQ__al$w_A*3mbZmxw;NWysrJ4pUzzP zYE95y3piH<{#5l!KpQ4wvNcC{a$#TP0OQF=VMJhg?w8JdV)7AmMvwAO)5%LmSP{`6 zzhX@PvF7&80Aa;Y&8h2Y_C_gp1i1NY+V6r}6iwK=1bMe>&04XfQu}(#>0j-jF~RS% z87Vw`H7sdFRg_YO&Q;(Z@PfK99)q@yT!Pk-hSK7vRSG-e@T0^RLT^~(EhXX8alE`5 zT-2jR>4-?cbpcKpL1p-Dno9f(OV_8ot?(|>rk@wM7!ZCX#k`UTHkmysU(1o^qwCTV zT6gA?$)R%Dr+?*!R>Kdk{HCSmWIVajiLJ7}-6`?nsK9$8XF0wE_mHL>Xu!d|p$HN2hTH_LLxe#ww0hE?5lq3;XR zQ7ov&9`i@8H_sYlB!2O-V<2Py5o&z#Bn#Mucas8##6XqM3!V;8TVx!X9g-Kg0V79G zgW?c|%zsmSe*7kV)>7HCW2f5di4>Ah=aS)zckF9%zq+G{%YIUGm5AH2o5WL?R_z`&3Gj~wZ6)f&Sr^>)_+Xca$IiVWM0~^fWa4$41Zh0`}kI76v|+-N55XY zml@3sVG;eUd(E-+fzCzT6s-%MoH6I&D;swE{cTixq`%t$uI&(Ui`=>vZv;O=1SzZJ z^EABg1k$HhcJ60k1-sls8C;{S#Hg;mM6zDCC?dtj24|_nbG^HdiFeL!xykLVMe`od zyf1FNFbM8|Q04-;`|A}-J%KGs_!;&@KaxDz zf~UyM4*wz)y;A4es_*cty5|gnVrJPz$OA_c_+Ic>e759nGS=igWzf5QmQMmk7dyA% zf>PCF*dHXfXkeE(|2TbD>p6<%_16tv5e~XKQ!V8^3_+8H{bA&TU&urZ$*~?_bXGG{ z+ZA?bOd1(|+jDF+7}dL=R9_eZmZrpkS~;8jkzeET%5XRy3I!9onbCwoCG0S9&5mVXZ;;D~lDgo7ib*+#;n;1ej;0{kh~cIvB86 zaC)oj6#))yNT+RsQozx0>W051lJj`rjg2=E=Ff}Zpb_0PU77~A(0=xfh7zW8c>MsHLs|JMoWl63V z+6CRn5qSs}M1Md7Ek|1Qx&p~Qx1$xkzKcg1gUO2HK;_PYE~|}CFWQ?GM%#GIYyo#Z zKT$wX*nZ|KQ56YQ(oL_ukv5A$Pnoh2#(Ummq(AX&zb)60!83`J>zJx434S!u9OKnFsGOE+U(>x3F)VP5Mq;$M9oM(|Z#5w{wdA1zzijBaKs1XdFFlLC0375o57YkUES{^yLuM zUxvjWX2WZLY}H#i-9i3u)RL!UY(Y={r+@nDUpi_Ba2t>eN#B2r$e5Mu59`WWFQMR# zcQZ+(CL&CvMrW&%95hQ`=FGXWyl>;iC zPaQtljCFVN8>D`?!4$9C?7g(i#ry!s=qtc)V~*j*rWTbhL} zf?_}4O$qZgO$o^j?N8@Ii>mjhQ!a`n!n$1oh!BzL`gbUosVWqs3(n` z8^Bo6rbr}s9isgCRYW~_9}#JKq}#EaL-2!IVYWoOl5`4Lgu>da9L93CK)rH&K1M|G zf>7eGmLyCW-g<&ZO45SFdO`$Z^ckwG-C^%^_>_W7idVo>it9Jzaep-1bo>uGBE#)s z#z!5Y+&r|b7SLQ^_v91h-fH$A_PK4|PIezB@$o%TKNXC5?Qeg~1|xejf1F7VufeF< z*AP|ou8W2LExl~^K98?C#+@X!F@eh-*^|XFxx*gBnyz)v!!uU_D0$ZlP-R{Cr^MxW zsjx=#!&RfH*NHxrsii#3}YC%MQT(H}MB4cNe~8@e+Lk;FR<3&}Z*NOec8ut#1cuCPS2t=!`14!J5@vHv)q?tO&U zel2b{w!HN8>~N;*A|(Dk`KZeLeJvYR|B;D&7ja4{&QTf zhQ;9LUQHtdh2$Xnk+y%zTdo({ESu;FX#i~qEKe=qX2qqM%p=g_S&kx!lGB$BwE)BR~J!duQ8 zU_Ym&s#HhoY@Kx~g)dTPqfXI}x;Ie1Oay*y^0@}N9?@Mr*QX{xK4~${>DTK0RP@L8 z;oaKTBVxBkKHuCLzQshQoNs))*HH}UaGw`J9Lh6ZHnvQ`d|xy@ceNzsbAp$@4(p-j ziUwh)GYmURj2QT>M}eZ@XoHZ5u<2`#y=RQ%j)Gs^C+*;R>wD<`ec|Bs^{TK~}HL;8viOJpVC2cT>1Wl?!~mmF*0IB}LVk4O)AousU1De?y0 zxw2iX0?z5Q-wFPTqXPF*5jr;*Y-UQ;@2^Cl+ZC%PLE@+h{MGM+E(J9nEdI!+H|~89 z?Eh)?l{l9D%cp%o0hRx2#5~ak#~GW_3GcsU0vIuSszd(Ah*|DGM$EU{#(%|8Uk`#i zX8a!`W&~A1l=cM7HiG24L#Dq*%rf#H)N<_{KrK$sOq#&LJ4CforlSEIn+MDoY7vQ92^~U;2#JHm~8NoPY4}jQx9%ql-o5Aud=3`;wCVLg9mAx%*;Tu_F-#H77UYKf1 zX)M=Gh3q%!90p2gCnk_MmgfJF^BppHOZDBf84eqq01(H*wT>c_AWc0T-33{PQ)+_b zeE()FpE3;XgW$cI^6gSbxcgHTbhI@}f1nFQAM==yNS?|r-3}l&0#CsWy>1N67|0Sx zBLo3+;B~y`+rQ-66oFEDh$;$`%8@&#q~7f3j(efco?6hpWi3l7McQ03^?Am;rSZ>jfiue_jk;L@63Yn&e z>YArdX))zU5chAdKh-0+n2TTWNkr_2Gy_!XiMWC?7IF&b+dQbkzL{$nf=()zm#YE& zpo*9JmFIa_t^WCW# z;cvuSPIQC*8*%$+PFco&j-;O1lTY1D3;`|>e8dlyNTiL(qZiv)8e6B} z3A2Ohvgt%gm=gBL9sREn>2TFE6L9OQIXf;$JT57so`wq4X#JU^U^ITG5ap_0V`9wQ zJj9k?z78`phWpIFT4EteyoTL4TrP5OKe5l*;PDK-`AU4P1;Th+{w?tAFEJ3KCoF-j zF(3mM%I20+!nw$T`-v{Rs*}yw>eM zIW|n-$NF2GBCV0U;^vO$PUsS$FL>5tPQ8Y@S2IN`ANJ=7~ad^tUL|F`n?QoRl(fm{{R-!lD+*6#X;gkdS12saL|NwRO*!h8Pr9U|`6RWf0a zFj0xZaY4e8tY)-1AE1Uj{GFOlAf_@E&7TuqX6Aa)41|$L*hE0zfmQ5YH4q{;&j#1cbcTqd- zwi7`O@wlu{&q&GAJnJx9Ku}eIM1HwN=6>nnlmDv+o>p3J5G_tj*lV?7A~h$=zzY*A z-tBKw99`5S9^+NM>`W8wvwlYWI>M(u+9*t6y;Nf>dg)7*Lvn6s!*RiNgr7{wM@KLk+D98onR$GC> zw@hYW!|lbtM>!#j^f*QcNd;H$7}!FqT$D7 z=7IsC`^UZUOCyHO|7)uw<11H>CeExyEv|T~c48Qpo=o<`x_Y6OBkyTN&d&GK*NqYP zHNaJeYgO$QQj6z}%y#j9f{o-pa#MWsW;)TAtOR#6B+DA{Yf_>()*={_5U|~@t3b+LCI z^T9%8!`kvn$y2$5!p#YGHA_SviwXXU8%OmNtsd;b;2q3?`CM>BUVap`p%C=clG|Ks zSVZS6x-W4*cV-W!H66*VJQx+hcAb=r4+a6620ZHi+hb9zoAV*f?h@FGuhpQlnq{q( zsN~L+cHtwPu~4UvZ0s#5T zsO<}dGeGgL8E4xKO?b2-9~`*(CbQPDRI?4Aq{Tsa@T|x?-g$2qee?Q6`23&fyML;U z`_{$PDZ8l#0x;;s2RZYYwTGlIT+F4#yJ+M}#@+g7<1LJtKi%8xA`Rqm-Y>9u9MyK+ z&4stiR~Zyi(-jkv)iE-u@Gg}28b&Ik`Bv1?vh={lBf>mJzCsxc*wU;)JYDyL#pEe8 zmvK{Ap4$jgYc%si(1RB@#3Y0`EdWDqsX19LX7bP7y~xm4)p{2aNPx*Rr>y1pWI3e} zl!!z96gyb4#vgcwC|}^-x(S)DKCS9_7*aUeOz2m3j*#r!eeYp)HZS}qf|j`@^*tTl zaB7Wls^%67+;9?uBinD%#$iExj!o5XhkXa4OY6A>y4R3J`ki%tqc%=<-A;?QiI(>f z_1a^1&!DyHBn5rYYX&M9|L~f<0IdP8Tp&!if9(3b`Q;{|GS}SIRuv9zczPHH-P<0u zP~&nqiW5QifGz{l%dxcrqN>}PFpe4C?h!t7IWoTiV1!j?6G9ndg8RTMm3re5o|1{foz>WYeFh>Tv3 zFd^C5z*KrUkGej_!g7N6O`wMAxpt^BgZ-n}hhOUYPZK8q*J(y2Itc126T2a8TqtKI9>SZt&B4+u9_lctaGECv?!o6{Fhi!0l{65#z<=BM zu)a`lBmS=^RAph33cH-|x+n>HG56)G;=&$|kDEvi#0P^8=HH8-B9SaHGNo=eJ%>lb z=R{svEfiy(_^^%mLeh*_BU?~tIOY6?Zd zq?e}_KfPVo>8#hXc%>S{Z+umTU<)#fv?d4>k)qwCLB7zrXIkZ-^b~ae^Ffv%n)NXi!|*$re3@yjAS*fS!2Q znZb5*(uwibWZkKP#{c2&8{s3*K5S&!g~crIUMaf3;jk$?1G)E392l+78EV3Ej{t`@r( z-S=cV6Y}FD&g>|8?hX9DGF%Bx$m@IKcS^XxtzF(+s)1+CK(>ebJ_;S7qO|3Q85p-l zqDyKvCO0!QxC~;*^>&nsDMNb;$DQh_>p%r|v@%M8T61tcA-cSx`^kCG=Zd*R6EG^U z#t+8SUOyY81c$)%9y3F$1s?65YK+Z@d*h;vC>n*lRiH zx3A8SiMxc>BT`4=&l$aId+E@PMCR^cS(Yciia51>?N&}_^ef|X%V>Tse>0SBgN9c*}7g6V8y1}QKu;=`+Ua$^V{&TWY zs1m29F`s_3GveOuM(kgu3@0c;TXSl({hH2yF+Sr_)|lzE%Y`esoiUqB1*&rVH4nUh zUxJD|)4<#G528m9G+a!odIKIfR{c5tf`BdVV5PW*Js6$S`~Bj~vG? zzoSCjYYs!@yYY{u>d@29^s0yPj}7@P2JJdpde~+T6>tWB=RNV>smsq5*JY;ud2RlN znQ@1DI^nK(qUZPHv%I!Kk=KL+{*$ABDi16#9kBswlpyg>fDeIvwFz4Y2TK;ykw^8~ z7Vz~8nd>31q!5BE9BDW1&kN}xoXxm8932SnT!mcPWP?5Cu~MvG={PDd{(_0LM6_Dd zk5XfOQYzwetteQfYZl(^^2T8)He%9-1XA>L6XWmzxa~IW z!hXYH`lwEXWwVSvayk;$^j&nX(6*wpnIdAJ(JEe{r#vaCupAH5`c+m1U9rZNw4+3R zxTLUH;W4lSdV%!y$y>8Ft%k=4{}6g7Mr_Xt{9{_yhi8NHg-WF#3J~E4;P-Oov%b)3 zI7KOd9N~J$QWaQ~shfk?wa-kRgp2mxVXCz-?tichvZZ|UV=)vsLal*0BSjn@K56~T zEG@DHy|y8MOH{i^>caQ^L9o!3nV?o}q*?M3R$e*@4zuX-wd9sAis84Ba$lJpqt%3C2C<%(~n-MnP)c}iIMB9L0uA!aSA?@ z{I<{=KaTY&+epyHp2N`^`l8jvNb*qh3YMhtRygT_Jv6UJRkr6N})BP!v3V$jh z-iG{(^mM|O1r?`||5Hn~MRSYzc|@qHK7FOirn>NVxq*wbZ>^f@uHUFL4+#zY!Bmp! zx3$v4x6lF^P7ehPi;jZo{al}a^6y%woydXc3`gu((H;GExQ2B<}C6OI>Sp*D7kyAP&$Q^z@5tRRP^#~XYWfU6 zOgP3iB&2+BVvkXwqe4|{#gbO5b|#X8a{KnDb0`9z&SPCT%3n)L#%6q^<`V zQcU-@>=?wkBMvJNOh7i>KmF`9wDQN_yyGt4g>3**1+V{Kn;tReXu0Js5nByFA#K!k%Kwa;(IEoeedw5a! z5cE1UAJ1g|);lRl#@`Ow0*lF)08gemgySc32K0og!)q>Ujl~#C^~mZzZtQ!sJ5fgp zZk@gfPYw&+tB>z-GM+YMrx{9L&w&Ir{Ht2 z^&g+INF^4!dMjG96S+@9bpCse4rWL1a$+JQIz-e~X2jZQYGCxsPe1kHhNRuM>A4Sx zl-fDq8}e!jd~;)P8wl7CriJ8`vwH)G#6f%s=Z88QkGDxkhP%Q3Bh+~=ou%^1{C6cq zj1}uCSweXJahy<(EC6sfj_!*h&e-@KBW!t}7qk_D7#I=cd_J@_(cf#N7fN)JH5;KvD^aYg{}&B<62(0GowF z`*9@WCG`H9*g1K;IhbIF-}&#B(3iLuXl&|*QIPCv_M`#d(`D#Ho-W7nOl_qn&?@_58|W`k$^72BrYq8^h%x9 z4vG=PxehOStd_lM8uTjig2Y@yoJg)=h;;C)d6(NuvF0jzdbArWa$`Kt`S{}BJD_h+ z-Yy`p35b97d}UzedS*}I`X94;^EsYup9q{O1|E1|y_5@HV^x`)1hjc@sifmc$;A=&AdDBp z={FOL!rK~pg@pCCPmot|)|JhQD^KwRAMG6>xJ|xBG-UdWZk=!kij$aPBv#~ z6?K|LJMnXMe3}@)*0!%fR_)W}1I)th1IW4_bp3q3BX|z>4~W-;C`9}%UyWoF%(!hD zcZO)CMAwHbL^e7RG!6XVK3ga2BCy;a1*}Z9cfW7-JT=P?>hburfq_0qla@2QFF#k9 za`@$&34MYD>dFd#K5rd?<>t2?b~PkAV+kC*3Gz^d_FnjkS=$X;r)ngoUItaey>f{) zp9?i^?bu;$ePW% z+d^x<1cL=BU8$@^)sK`%1YQ`wUe{^H>{w{^to=IU_#Xo>4{{F8b z1&a7LYi^&vH(%6D4Bvxwh9yk_1VZB~q=H9pr+(;QT%54W{L7%kKZ{JRe-@ejdbbnV zU2~Irc{llf`a4r39wE@)^`5F)UJ^{eCNl-h+a9#ZoC+-|D2#w!^M);~J>P4>QVy)3 zfaFK4mI$MmRg-_6;s=;0FD7dHhXupZLxsAKy61#jU;ipMR0}%!vBf~#OITTP2(2S@ z@m2VjPCtQX4KVk@se|3I#$qx%>CcCglF#x>*4msP;$<16ZWb7OacQm(n(MHcIiTxfBz^ zlp!}96_R0PY%tOveP@>+KQ@%gW3P;C!2W2M}9LI_%|vEL`^nt@tS}(qAkAPK^0o*T% zqS&0C0#=XKTNk&0`k?=JdCdImqxK)`us>^?PRtKI|FgEy&8r_yd`&+!=}u*811MY_ z=w~G`g)4n_9pk!!1UM=n_2c=Y!1chADeZIlNZvE6@1TWz1<_OpQn@~nT9k%{)r|#8 zCd8-Z=`uSqOlWNxSe_tY4-albXaAf2MS|%U9jto5C5!lAdw!g$t;4r@Iuo!3%JqC|q&to>6+^nZ^mUpLu^mTMJfejbx zV~t17MHis9tD5{Z8KkWHzsPi2>*xV-0|tyP8`9K(@&V;mcE;G2Yffo4id^<@HTa=6unLmP_LODswC)lJJd?q?7?fK3$)K4Tr&7 z1|KwWXN_GFAMq3c+*xML=>FSReq@6i}j~$In1TTwxRb*sI{dAO^MMun1+CWwA9>&VuSPTiOY}EcBMF;5l?Ks0?TSXc zg=eM;X9L)aw@}W4g>!A2=`~(%L@n~Rp)J+WLES1{lE3U;m&$cyVs|PiM-`8~IKL5Y z25VIsi}9MEZXG1}FgRh$i-P6PR+OfTF`Dv5n6Dl&mugzvn=ZCF!Xb*m%%g2Y+KvUw zuu$;>#%<#H;QG<0$Ah=4a35W3mIA&E$lSxZp-yAq$Rt$-`#dF2sdRbD z_cMTys5pBN^r=sOM!~T_G0}3WbGh6%+s5Xgo=7M+)4EtsT2`&#YRTR4bNwh5Lgym? z<OT(`y9*G09iZ^~(1Y_*+d52#{p)Zwc3(Y6KW*HmM46|$+4MNAoPGtib( zkc3v>dPMmEUt$ff+DG5fyaKcV`NNU?Dv5Jj%n>j|C>Zsw0S0b~VuC3ta`6av>y5 zrxMhORN^zrm?y`2N`m%*8z8MgJd5XhVV2j=6kyfpe^7oSKWX^R!O_?q zW=(ay0GnQ^gd33ld~Sepu*plY)?38J>-7=e_ACYp9a{&$W=u_Q0I(U8*tAPHb6@%v zbCbaLke#4@L~rHddQST_7W#HbyWSlPA;yk9zqQ)Mrngg(7c%Ntz>`09YgWHU*w`Fa zSWX$6r58~)rQKopMc#?!TT?3kIAO>Se2~p?-ikv!_x0kZDp%LTm%KvoWb_%hls^nx zzKQ_wcDzr{Dj&vW>A_z&i2pDgUh_ng3OW^J7EMU=Qq`<^XBU2&#|0sRyXN$PHBgMa zg+&C=R&nqD(JQ_v*ITF-_xj9##eDka$$AFI5kBAr5YoTXwPWFa)=hyQw4ez#-$$pf z`DTIN3)MU+mn=`fv-#o!{a7{1C-}38*UaxP2jx@1H-*rS;)sMvR!#Dhub{P{X>iG> zUXJUw!m2NY0)Yk391Bx+z~pFdevbh-RuD{giqV5Ncg7<2jmuX@kxWTM9UlfB%GK^i z+vHVq1QEBzKsf#Ath=L`!gpZz$1>Gp!G9Inq39=xRl`-PJo2?-Y`}EQN3I`qX_l=x z;I}jUA}DHXn?;#CB#gVx{Rul?1F}B2+Gq|oL~!!Wk4eFgmi~0F30EmX!b}l1r_%`i zV~!EaYV|Xww2H~lvrF|2g-h8r)MA#>_?@=oI5M){7&Ts?!$~aI^~I%*lBp5 zM+U@qTM0pkGW7bv3sqT8sAOrfZ|y|5`QL<+&N^2RM`=a#AYMUMAOkFUf8i`wud$Mu zvm({tmH1x!{PD!NuosZS0z4;0{n^RY$L~@)y87<-8J$a1qJ#)~jv*H+e2<_4M{9yo zglrG6BL&vxv5=hA*l%mqVLenGlh2*rEYr#Ft&Ceh8yv$l}w9`fXiP0cG-7q&PPBfJ8@ z6CDZ_+H5$<5s7JOR{bn!b*d#k-%4vG3#Q0E$3@~2H%YtdXS8mlo}heQdO^!Kr4oD1 zRwt^mL3)kS*U(+3*(6S1tdPu5i_J)`46(Iq5(BNhQrwW5Yvwm8SMZt(Nx>r48?O`X zZkHV;OVh5WYiAeVf3y*Q74AFybCB_+L_mf^2c-n7na;>Dp*A|yw4e^B1l4OBW%3sP zbs^ubL&GjI&XxGIA}WFj^Zm9j-cRleLEO{_Agzo-AY#v#QP$_Nk8&V0!Qem3#@J$O ziU_6Rg+C@g%r)%MVm1RiRMiB)-$Z)MJTl_>IfmPAhWo1c02P4^pma+k&e_`p}_7M!axL{<5oK5 zH;ybW!gvJR`bgBCUWJ;epTrbeH|~fo%FBLwc+%j;x9A;!vXSxcV*A`dO;w%+R7)4n z;W0JIv%~gCWHQVwlYijw;MR!Eys@E;Euj=!{is%lUroB5?eeQAUhC0;h*|sSEWX%Z3M{` zZ7CE5T|A}WiQ9n}riWFi;_)gH1i~A^uhcOu{|bKHs`}e|;7ChI9%4~@CgzHsWew65 z)*JIjUni)R)&Wti{*j>~57F4<`abxU^1a^fS*f^?OmJNr z+61aJ`DA6OefdQ|iFqrZP%}T8i_Ruzx=$N)ZcwI%6=6nahB5sSWsDK@@W{hv)P?8-u_aIl01Dcy!FRhSh90oTAHT&T{sA`5l&#^f<#gPdmsV z=ofUdLt9PH%Aw~mul3K$fFJ_6{JA{rE6Z0fgryP=+gxkzG1DiF3~Y{1nZikU1R<0_ z@b7@{`6uc*(1>g75(sn?T$NBX3OrHkJad~j5Cz69xOgT9oUf~!KT`g7IN&fmTQV;S zeyh>h5G_D3(3dWnlTmU41~|g2OP;r5Y>hhJQqZ+;_QEW*x3?x8S!jXG-Z#}W?k3Gv zKZ%DOzQvAEpibw2AF8Ds7q2l=UNraYv-EuHf*|nyPz5$!JtyttnLWiNEXZtG^&lOZ**wqP)n^* zMT>}kZgzS%^9@*OeC-VJy>hI=4ayHWhi6TdzpvKuEK(O$WN#-`;+4E}U3MPMGvw3` z!iHC8n-I!7uH(a&_mc}rA?&j|OW%L%%M$r(j#}ZQ>7LahB);R#NXD2l5NWRYU_ zSHA$~GqZ>7{~;Mp)MW=uZCT283+kkZVJSkAq0yX@rU*8&hXLgV+W~+ngfEg)l;(Nl zWuG6EvHKAb&@U=82~WqUw;EKNSI8LDI7AY@J874@n4Rnyj9(*H!;C4!`3b$-qV@wX zP*yX{UXsEts;`uRM&k&1-xHf3y2|Cfw9SN}fjvX*k56dkszs=n6;l`mwMLtA99uoG zrGQo<)Q!-WCg%y5gMo13-}-z9x~LGJOuTNBx#0|hJsSR^GQF9#YaykxGeh)an=V zt8U>a~1hGc)KLTpwh+mY%NW#x|?=z7(? z(#_O9T4Zfj+4N0fYLpC0U2qqcV_PT;RC zqbK-iNYev=#}itCKaEW_C)zhkEeG%9J^UlUDU5Nj++1})_BNDBooZdkZ zfD*xMYshHV2)F!zL*?#?Bc>i5NrY*_MGh7xJ=(wE5{d zUI}MR2c&qG^j9Hf<$9)U{D+n$baV~S3H`)BUHqXFn)2FTQv1=o4FuWT(LQ*C)yXC7 z1rqS{j<9YY8@4i>;Lz@pGsO-TCS8m>&!|EPhPgX=h<_J+8Kz8Df*L~gKsi7?X1Nlf zwMW>9WLqZ5V``yZ6P2rU3%^$2o}|`W$z3BCTu%x)ciG+xsjTSw8^szPJ5i<~gxwrF zH&iGNLII0a9qlCJJ&tNGqqAtpTL{Va;Ds7)2y=dUMeMwdp1azl@c6_f?4DHNZwB8C zeqf=jo@epuo;VQ2T%Odw#U+7r2=a#CFC_BxlfeG1&mIvH+9${^(;wOuUPz(sB9PfW zGI#d!-_71fza{;3AhO1P67f;udpB z{kSJ})HGjbv{~|Uj-)m6AfWM+51kqkuL7(Y{;3}t#+CeXQpF3V%*|${`VItR(&L`k zU7-_Mxv}5qZFD88BgSB^eu*$mZj_N%9W)z|oPCOni{XJMS{fj@fzdM{Tq0PIq#CK#a@-5V$2woH8#5F#{X2XHyBwMz(9++D z4zWDT;r<^vPIPH-xg{H$5Lbr8&K-jg;r>eCoTf$&I;RatuXxMb2kzx&>5o%MNzdZg z%K$H0dOVbqr$tf)?{0K+Y}GX{?_ypOFNm<>c|qMM`L)7m8P|l?`cA0yWWvIx`Q!M| z%;lC(9Dlxjo$p}Ac`8pGL$#BMhh8|G!J994go*xPy&z2x%Ah_JP$1SqN+`6*o@^b<{BL;RVLOD`|h!*BP~VxU(eA3 zf}FK}D0yQe1{&eTAya}@#NypAk6f~$Ne&I$0-$7zm?LTN!p1PhMc+X!r?>y%u0-@I z={z0fEJ?%%jDT3n{S}y+Z(ig=dpY$?SGA-y8q>-!nSvn8EdN zq}{N=N3!Ky!g-Ko3WMBBpGBpI&iBqYtSuH^oo3h)=!b*Lg^`-3ODCTQOEyP_NTHJa zaK@pa$395T$20u#8hq%KRE*%ILG|+6A}|fsl26fVX!J>_Fntv0??-CME>+8Y&FPgI z->AV%sUd!gK$mBcb2<=J{`!IVJ6eGStMXuzT}POo)=TPJ#q&<*Ftx7rVU0AaDZwAN zA*fNk*c13Q+S^;sDtXYUjrpr`bEoxlo>6(lCA+3=#PD(ZbG_(~BeKI4_w-!&P- zajKs}c`!`d-LzC@I}f!`f4u&HTv4>pk<1C92G4!?rMz&;Z*SM`ypFSqPli$coT7N( zTv0ole)4jbvE*sLfkU47@fN5wf4MAXeFkK$D*xx1Y&*rsd^J%S|CqG`AZ9J( zYie?9#on(>b$f;avkD_e{GXgbzS8Y}=xWCRC0yL_CT&4#`cB0=u9t|twN5~y>)rPD^cC8jOb`ds3 z4UtWt+s!vvYoCOgbDJ8y8k-R{Xdc$LNd(#cQE3Cu`*6~)gAbpirRDH0gc@KuQAeJ>OAtKKnGjmFX5j?9cMbB4x$?CF)*wmHR31EhG_o zaCBR;HIs9W?Yv%9CGG7YV37db6)f{`y-7q$LGEhr)Cy5i9*^VHUX@70V~LkBph3C7 z?BnSp$7MllWLmPtu7ekYAK0B7j!IRO=RMVx-;rK#xLqls}_k~Aer1V!()QOnE&zI4cLb$V!T|j9fMJBf5@LGELwM^lK7Km*G$EWfUUY7$9ARKVRUqzbZ8Q27X zPzB-Jdyjm=Y5cPpnsMKivMA=a1!K~;4erVBoomTzx6wc4QmG)XG?nliE!eG$em(b{x$CS^u=m!3Q+3Ke!=FG3tsxZV*H+#Li8{Di4{CUm%n z*W%?DI9W;LSsfT?`-WI5Fy~`4#OB3;kDHRl-j8?RDZUWC=Qgm$gqD0rtvHG7+qY`W8ZN(k-62*Jx_ z#9q7CS8*Hb_V#YBdTcN*G8A86 zgInk;DQ?>JRscI;QIfrty=?%KXB9`I@n|ezS6DTP#QzfZOTZ8=AsWMXG!l8rL8v_C z*t(QH1{E5tIZYEJ?@(WQYsZHt+68s=p8O!!ACt& z;$@U2HS0#YazTfBwCEMtMNRRAYfUKdfN*KM{OzmtLOL+R45u9n-Ua(fas!#jRb^U! zD|VrZ_A-kXF^T8*ftoaY)B1=#IPgRoK69#-zCj|YQw~S`)tr0z*~1Q@P0mq?gL?KN z9L!o;-llUMPSqaoIP=(Ldvx~tuX`7zCyi;QYPid3E33v`v*g#%1n$)%f0o-V4Ez4O zd)8_<-vgmf0{<>M*`Ar4|E0DeLKq()QA2|v|1}+6n|1v*XC4}!mO)1FEQkR9WI z?)7w9k6(wBM-6g@wnJ!dRYB5wz@}0^czYw^Mi(`hoWM65Q&9`wXa;K}&;?wORw-iki-he2=an>Qajgd*C;t+Qr4`kB@qywo>=D%m zHG>N?R@c{=Oa6Lcr)cck2Mq3n^GS>HTfO*%Q>uSwvKc9|A1K7Cf0xNz&o;MmAcs(X zbKhQcCOGUF3opx3;$Wkkkbqw6SraNA^0cHOJ2~2iOS^abI$JD9#+iu@%z$bE;vdz5 zy+xXZvvFM)8vO`&HxCgyVHh{ z;$;vbnDZAR*-Dh-xlWYqLyfydo=Zza;2OeKB<+It#Zd#3)}& zj`cbSsJJkhc%15t;2`~i4tOp-k#5{rZLeDB0m=DhLJR4IK=L|&f?S6F}X{UKBzO$ z`KvU3R;@%HBzuqEda2GgC$k@4xR9Ws8=KoGma|@;KcxL?o>Jyx6I=~I3eYs|Uc5te3Hc+tVDHL(>nInt7HfiXmmQL9weV1~I;4_Aj-oGEVZ zW`}aq(F98$yOl!|Aty!Xorc9#!GRQZ-!gn_LZK?i6YapIEilN4wP4cg$bnF;9mQPCX!O)&9>nW)e;WC`FUi*-u&w><}?q?(&VCdYWLHJr`e@UEHsl=hM*)@7!6zCIPxmzK$W zM~6NSu>hosvshbfyf}J`B8!?9Pn(4Avd~I}WrhAaze@`>;J|Akw*yv%;qVRzjK}m% zx)?(AFdiy3tAVA=Ql?W(uR;;+%BI=u_5P%viT3Nsnq5a|l1Esv84e#(YV8uqHx8?- z>coqPA8;ZOhVffVz=yOo`oMUYE)8C`hna+~&=BCs!4d{W-5vRn*!1$9H7>K3X@J`|>iE)B_u@23MuX z__dAcY4j?}T8!R0IF(+Y$KJ|xw3;g0&NEU6!ECD*eY&>mErf5JCzjk6i2+y}jdODE zojVdPaP)stbSopWW=Dk>T=Wsj5$qp)x58+lziykP{Js_<7f-687Z->7p29r)BaX)b z@&I6l^jS-UMOHpB(%IbsL4|VaPQ5?l5Tz#cP3FTD$*R@JPCxnZ#NebptL%!L}%p!>2y@UEDTxTo?j==<>&C zs#6zT2Mq4|H9xsm4m2JfF5cRVo#h9SRfOxjwyEPjQO|oDXT@2;TtxXzTSlI!*h)}} zn|+#u!$RYs_4`%?w^xqY+t(X$UsjqmF%+a!Gg4sb_Dv)<%e}*k(5#hUyR=q}185X8 zWV=9a+Gq`uM8^0caRHwZTLFt#6)_Jg7&+GBliBsa=4yUjJ`v6Yl zlAT$lkXXde0XARoYf-1L9AI!{1NH}V{i|bRhW#>n@d9o+Ovu^_DyMvvXZZ8T@B@cK z1R&J7_yZ>< zctwa3_JE{ipfFKA_ioqaU4QIvZOmi&_$`*Z8fsZG6Lr}Ut>axJftAiBhCF3a25=(7 zEYI%q`J!JnLf%21Ux;&Yuafq_B}mLZKsH#WVxBr$+V{RO?`Y_cV8s`>_7n3o%b{=X z^c_?leA+=P&)WHc5SWpFRmNF4p1V}X{x5XM!iYP`nQQ zs=8D{#9P)jGaq~<1BhZ#{~Cj`lqwRHe%4 zaiYmg9qmgKbVytajP!6!q@CZ34m#ShW4g+BI<;uaQ>_^vOWzjFs=b81NM@C9BXQJX z$2C;b)>UK`pl{9Ti^LY5a#hY1BBFlfUU}okpotpv5D`*=U_{(7>M*?Zt$M#Vh2&R* z-iVAC{rjs6==;g8yOi+~#=A4*qla~z(A|4Dvr%0q7>xNoZx+XvTCUfG#X=|y^jpmS zW5pw>q8>>Xm)fw|mx4kbu8ViuPhxzK=EaK!#P=_$2b|ByMcBsj+y8NIehiNw6-`LrTYtl!@X^gQc}0 z554VUiJ>aKk!GSF%fL7_7POGVt>^~P3N7Hhrdjs*LEJ`^T9zahXXnFbkUXA5hMb_BP=q_S(v6qHsa(8Fb?F2*xp)|l$i^fzNpTu7;+mo-ZVk`|Cp zY`tZ~q1^ugLf`r$QDABXH6V6c+?VuzCxM{z0vG*GPWLl zc8HD?#LmU|#?d7P2x0evM>{QwfIdus98;=YN8UCeZFdxd(pLQxfq%^FgX+%vXv<17 zZ#&6lvSpI$fN*ndKA3Gk8hE(DBIZ*VnT0sy6L(H1ue&Eum$Emdbs$3ol0SrC`H()ceiqr7 z+$Yd|Ztf#QeOp9`$?4dPo4MfEjpI|*;OcE^lZmho4;uH)31tm&ONL@rB>v4~Y|F|Q z8Ixshd6=1aaEK}6XC-q&xc97I!1T%YXSx!lrM~TCK-xN}rn>0E3VddKj5FhF9A|Mk zkrgC;S!WPvWUIJ>kaTMKCEY*M!RyC2&qy$p(uF5~`=~BA!s5o=Gu;!r48Qr*T@Ci0xeg zYT0TXs`xB?kE|DkaX01?{N(TriXBdH2QV0SxuJYqS8w`(btN3sFh;WlEGO4ql5DIn z4&)f(&c=hkiYuIF*<9emjqxbYBdQq2h~U5X6;*h5CLkw6kZ)4xD+sQ%BJ*EVnwJ2silv}#+ zs8{jC`CxQ0N*Shm56g{ci>@V>3XCdX)V5G50ZAOghQ~)F%B3!^AZm?7-U;YXH*vif z!k_1Mp_9hd5QOD@J05MY1nVXciq>h(iTcBA^dZ^q)l2!HQ1Dh5XxZuGnU;A@6rlqX zN#q@;?oItZl+rd9@r^}SJBTIk_ck))mx*UH2^Q?r1l(F<4^Q@UVCDBP4M3sT1-|E} z5w7P7MTBq!FpUHqU1QXGNX22d0h1j+Q%kl7gXO7~{!F3F4Se|3itQT*Mz$4ZV}^@v zbnE#pUdM)9#jJN&kK%NX?KQzmL~mv9Qd$y_(hrQrmNzE~@~bZC$QmK{fN?BIpgk@RPO zhJ7RvDGFDv&rAxG3(>{>G0>_f)TkpsK5+aIrQs=U@zAdT?zQi$+!KB?1@sBx_4b{9-V4$q&B5>EoYMk<w&;46vHE-_Ii)nvH!Kz-S|_KVIs z(`{r4p;-!Vt)4@djIUi2%QJ73FS_$rSN6eMNenTQU*6gnroDv8v`kgJN8qfFUKy7r zd2)i#VGg`r+dD4j)nzPDpzn3lhf3z;z7}dMPX`IB2E?nOQGh4(l)FAn!Kj zQf@2!ySNUlNs592A$0w_?0pX83OZ|moXAGj09u?#ej$5^ZgPD}hTEq}m{3UvOcf(q zaJsi2-H9ygr4r0YuKT~<;{^F7ysYfSQXH2VBd)(EUh+hL$i+QT`>Nu4s4sXC=)F#?~ha{E;;yowqPGu!Ogz8Ytj_wk z-nvk2#A99XFW}55yd}d2-yJBvzZ!JIh1ozcfgL05hyT%GKVJUgE8@v*p%qTv5ycYT z3*9;g!k_5J(eHaOCixWLn4>$SH$0%sp-XCV%%=3jV%2zXO&wu>)s#SXA+RHVYL1ud4vAuUpVr8A_xt}a`8dGn&PCqe9^#n{Hj{QsWVcdti;Net`*>HeJ9;n_`> zq}`7LqDxVTu8T;|qQ*iG zjItqJ{Tf_4P7g;IV~de*_gVmf&11bZWAoRlklP!3-l=BcRe}Sfb0@f0h^P3@W{;_6 z>MR8>Yq9O6kZ5}JJ%(qm5dQsd|5ls)h7HI?$-io)SfBHtPkO5j5-akt^XbJ29Lv?! zVq%*9C5HYUC3wwQ>eB>6xt#dNCd^%5uH9J^X2??~r}k4_ryO*(!96r0KelcQ|C&X1 zS$l0Ox7KWh>oWExaXEEyx}U|TXPG{G0RvnlEIxW|zKi6$x_6}0jbFwvjRTue<8g9+ zwvsE8e4lp;>YqN=LO&gfm*rNIM=ZCs4FtRbN*&g%AZOuT^;ssO9;C-XlDyRTl4Ql? z+=%=&an(**_N#MI$%_Kp)fOYyh?&(>80y4Qf^IrIN)zl(F1YtIrXlk!^PTHIW;~(q zp=`dQa)``!nt;IpO;k5p{21CIT2dB4+$)zYR%ztZxYaz~P?8}&Cl(G^Xd(9k{W$Y; zsxhHq?8neH9-g~h-xJStYS?es0w`5uz$q@5oUHo^!4s^*HW|dG`vCkV&p%=u&mbOL z732Us)SpKTeXuXq2A4mrkXYDWjAWg|rbfAze2(Fh?kAO-l_ix@Sdhod(GcGUCF;Z} zj%6_O4`cAAOJ}l;5FB25W9gVxh7Wb#jQWa~BCKSI^v-6-a=T$$F9-XF_bP1h>djlz zX3;S(#n7ta0kCn{`og$HM9%eGw3R)H$&zODXF|lIHy9jv_MMJY zuR{AQFFE=jp!*-XH(K3zU4k2qH52cz8W|!Gf=|VvbhTVK)Lnm-)3SZ`;n!nrQa~9( zdneaFBB^$x51h2^pR~MHvU;wf^mONV*>}n&%HCaf#f_;PKww7te9oWa;bAv2FWC(g z_8^)&YY=e3s%D$j5*Y;^wZzmw+fC4;R!1M9tOpM~YJiORXw+h0smgaEbGeW3nTNaY z5I~RG)P1Oz#u1Yu?@UqD6t{&8D^{%^dKtjBF-O?c zihC?Ge=-jMmoL$LvlSc&Q zcDkG83vM?DYnO!$^beOu2I%I5J;GlT__p>bHCq`u3?F))4zR2JN5)Uz6M#Wx$ys@^i>vvD4uK}{&hhZRWpf%0&74%umSX4ELGW*7SpH9Oh4n|^No)TwX zftm*f#F!-qEG)#uK^7K>V*c{vM}$X_{xhi)ele@%8WUv5%Aa>x@va@(JX!4Zs5OL7 zZLXJYQjh6rjHyz=t1-e`2_`>y9M6&9n>l9Q{Blvk3jsotv5l{2jKIDZ!lT_GlH1~a zoBw$dfGPO@z=~EEn9=nWcbZZyBc!jkn@X{oF6%f!)+{0NzE&U-W^(ZJMmTSgqW0xUfzirbAMmvS9yO|4grT$(MwzHhOtQ`z?)n_ z{$=yr1;zsP0XxYz%im;9KZM=yXom5bE&3z8^;i+dLWL3_6wFz69GVoWD6slI1PsX+{5LQEV-edDSXNFzY@9V@O7Eul^qogK7tQHQx!Al1V5A%}&oES0{E%&#~I9`kx za;rkbnPISVI7n=WvHCx$*!ULJEyp-^)sif{y%AEy#`=^>ffOCBjR!=x_^%?&@?6gfOsF7= zF^EqUr59gb@@Z6Wx`KHSn)e{_|C~VZyD7&C=jvyir+h^&6G{IX5<^?+&@6*gYAUzX) zLp%_WN4CqRN)jVjkDh}&cY>}4u-48U(x{j^aYNLL>($nJC+D1{9KlmyMPxge40Qt3 zx{l1Y)^=kAuKP9~uNI|(QS6nFacm|~FFv==6{WW3oc4R4V(tC_{A8lPCRz4S-Y@;+ z$%3vx_^Nl5yZ_|bpH3%{1>L-A|0?dRtk2X7+t^M!VD0*5BY{Xn^2WjupkER*lWqxg{J;SbQ4?iZ&4`CNbf{a_wFDjAL`v(964S z51#l}Fh}$>PS;yv2Z4Fp-VD5hz!~Q3r`De{j5Oy=p-lj3tE(O`hE4Hus;gLv#_D2e zttX18zsDRwpR^uH`NVEK*)I$|?*Zw|dSUe2V>?T&te90W-PjM_L?ptR;!`wc>YY7x zxvdcpWNBNE!Ae9&xomv{4TB$t+5H!WZZ}aOk0)1HR4H0qkjuu6y*#~16k(MeM1#z? zQ}F}U{jWaEep(b_InQHW4sI$!=|)a1m!Pi>i=pQEP2w}eW8Cj~~$XUT3y>^=|6|-^W z`^k=|C1Gbj8Cbsuqi93NP+GbeC(JmeQVnbT9mq#G8s63jjWG{k$&YUCN@$u~Gw9i; zbQNK%hRfvD_ZuWJ;ql~P$G?mkhvV!}dav?AM9vqL@hwpP$A^$$K&RLwGc!tUQSQ!R z-S#DMFkxlX0lt7Io}Qu_;eOxl17&R-#c08}}!1cUj(T*iAWGZRspiAiHkI>y5$ zgZCVweG}2wI9VU?DfeFtL_7St`hS$2cRZGD`@rpy9U@yrR=Djwv$HB$$;!$|wz6fG z9ZFWp-Xk;04q0XIkSIckB7WDE_v!iF-A}jc{=@ru-uLr)@9%RQ=XssyaUPTRJ;1SXlqJ|| z!$z%V8_7vz!1j?@&ng@`ET<>SYFSywn=5{POuK1G9e7cHa^^IU9GxGNRHxEaMnneGyQd0~#b6y(V)8p_PM z|1AFa$Eufw8Xt4|^45(ASPT$Hp88H>7$X?wROW5E)STGpSXm>5!@QPQ} zy&uUhG3H2ET|ZFtnzQ?@A+W*sGp7eT<+PI`ZuDDhZdRwr2Kg)b<6Z7f;ys0Y@S9Sq38B#H!JPM9# zd%P0ctpP-{?*ecC6FPZx3Po|8=Op_$DU~Ct6&=c+Tp_RfN}?YAcDuX+7{ZJ>JN4iWfK)wZxWT)-RM4Hw{@P1q^tdu(&Vv@Laj1A$9ui1+g!Ru z+C5B0wQb?z-QG0nMPK5_D6fb=`$qTpLBI0rvRjl*Z$|RSK6h9$L~s-You6r|K7rrH zbi-+7n!1EMp^qz7al{kwsGJi4JzWGZH0jzT1tkCRLX1dP~t} zE^_xnEQP`7+3buUd{>FSFUK?b#f-OHXy~W^NZXL}7BB*5G(wAn@xhMt)ye{~1X6`x zGa5_Af(>+pUB}d~OzL!^bJ?}Q!Xr*o(=5Ms=ZTDemfJMDu|>U!CHE?8qq4sR8B~sYf~gWaE74Mw&*xM`zBo65y)!B4}3?B2IgK zo9@YCEi3T_D#KhN&6(FsMfi7@FYemXFVM`)DaOC4ei;?AyF(EIB+5v={^Vh>qXJzQ z4?9aY7gL*?F^+p&?y>O15RPIlAS5DhkcU_SkfnBpRvDPl7V|^0+ZD{ zeI;(yiGwVFDO#eOo%E_v7!Q?$+|GA@Vkyzqvnjhz#3{HFE)MfLMciSqm^>3QA2}Xp zl`vy=tod|JTB9Og&B=~2VaNNsx7S~s(2{D=UddAJY4`tnuy~NbdNx7Bf?lC&E^u~Y zA*}0KoIU52d6+fr_r_rJmp`%LPpMaI3_&QgQah?f6ELvDfxt0X>mrU9%lEwWo~eo0 zoaL4BZ#N1o><_R;?P8ziV&mWDJVsV*`Zy(trQ?~M+X~K-ulv)>>^sC8>r;>0@z4hsF9f=$ zKZ`eu8mI^qm^`zry`sRLCwxt6_1Y(0fk0N9EoE2sa}80JCoJx54v3dK8;LVy-mntg z`1GXn9oNSwDb2Eq$~NXI-(i*JD@jRH?037b>lAOR)LC!_;i}^~B~AE|wWX8vt1rUR zhlOVKukvm(1O5+eCHjc7dChd*_YJV)&+Rb@D!{z>@bvIVwsjXwUMO!Iyv-eyl$$pt zU@sVMtn}YJUSkrr=}6$buGXD=!1ZzU22i(cZBVlD$78Vh4sQ-PbxaqMfyXC&#L=#< z@vAGaq_DARg&L=ceoS>=M3+YLHo8tyb^a6eyq1&cxd$3!#CLhV-SJr+z1Y;DP`r+P z-;9N}qL%i-0bZ=qyVvGFEl>6?eh90V4{YF0v#7QfzQ0vhoAYClD=tFM;rU4Pptk_t z?yIb9%klc~h{go2fMd+W56#gB7Tj~G{ES<^o9kbeTibrvWGF+6TV0t)vV*pKTBA>7 z_$;=5uxv~>L3OyD;$?hg!KhkQ3ObXji?`{^dn0e(O*SFXtZS{Jew#4E(D^BNT*1lD zssB|W>#NOH=~-d@;wkBr*IC#e^NTB99zXs_vrA82ssRm?L1=2^Kk6`#{xy_SVR(l^ zI-J5ksU;%MLG|_F7-JLb0zdkb@2F3Gx%Rl=l&St#56gXDbLYtNFX}4BId>^vFzH+~ zFfF35s>++0{vK7fsTQ18*nc^ugCy-L-qS%P2X#$xwXAqmz1+cu>$bU_S;ctmJy#;Q zz9o_y>Rwh;AT=7UqPT>i-_GgF%5>KLh4>lv(;p)!o|P>Q>MYfDdea@)=zr%ZZ|-ik zjs9dPaiia*LSaUet-`@eNvl#WPoy!hu{he%kkIgc!(b+t)9Y(*>Td~f&9?<58y%nK zDPwLS&L+eZq7|Xz?`@)O<5i^Spjp3nET3?-ckIo{(q?9&sz);mj$xGQOb4H``7TI$ zbQUD*jRf1RO0P*;ypx7MYI`u>^?}C$SdInZ5HR@MQqAA!ROAfmseAD;3Vt zOn~zcV!k-eB@LcM-`^u(^At{+=!_&9oQGkb>uJnVb>rsgIzC% zyV{q2leqYk{Dy+z$5MPLGs?cG7P06#qq9OSDG|UFfn#kK>u5F1%uCKH_PwJ}dZ34~ z^_6AtxMLPmzPvs`a$Kmth|D}^ow)GQxtH{h1}IHyGJi@kwUaT_SCTt0uNpsb?a2z; za~^0ZqaZmdwF>Y^L(BkQGZ^&9W76kf|a)pc)k@ZsOM zDn95}RXhuNtzBHTRwcpNp1Et85o+Mv0I`C>fddT#4dvw2pUc~$2F;`GT63Iw&5F9p zuH%m#PYM{@XHIvKnC&&C_tHri5PsNK@U4tdB_?xj>l5c&maw-iy>;2W|I`a2J8@n6 z@wgE^J38ivrlFFmmuG0cM_)#djI?Ob4SEIh$D@OtuZ@1G{piN`l@#?$jqe0g9MIUm zIo`Y=Jj2hmZI$z4^=(`1a>VJ}7NhHG!Y5vevCzNY33>c*bTi7`)+mHYNrc`sn<-{! z5l@rTvitR3I>Xu5rfJFg*U?3@hTVf6{#n=~ww4kO1~Q*PQ{|BjkfOE0QmUZoUCv0r z;1WDB+Lhci(mYZwo&KzQ<&7P=3b{Sm!LGyEjKIl|`Lz$p$)xP1uKkId7=;0`*rQIv zY%gzGh%CxAd`uJSqw=gFnu=jfv+6CAOehkapZ=8dwJOS@GC8qhWTY%IX>AP0=&@PD z_!)Ec_)@IF%2H-o_6sbEFS65nuwY$pb>xhgZkpQ3RNVQjA!Kzfvd3CVUCwuA?AUel zKCwM}4wA8CWrMUWl@$sE_Om!llg1$T0YMoXRZ5) zc-tzlVS}J)nfHjJ!9H3Re0_uC$kH9?C~uVcVf(9wQi?xgU~-zpFHIVWm(0@0o1hQj zD2)CT^zpOjep*bBUkXuC8x`;j%;_7j=b4-$5X({ZdXN^pMw>DcQ=Zco|2=LeHg$e? zBg>N0{u59MsH>UxZZK=IEWSyR7Hi3SF~%IH_Pu+qrJpvr@9Xja(=)#^b}Vl$_dihC zV9eLKZ6QGSwgji|E`vtIvcyyzfrzYyeIkveInVR=CzGk4@dxT%op+3%(^vG^73L71 zdoRRrbMEEmkx#__N+Yb>G;J0^EDm}fTe08B&S7NPh5{`yFc}Dh{+u&dE8uDj&K8q_ zrpu%9@^v&06VTf=pY*F?sHG6P*$m0C6S~oU{sQ#tQfvYHbrG?wN?BDcoeEpkRTUYZ zF_`$(vc3jrSs$$OBi~^@ci$w6%H`{Fib6yYxABMULF+94h6Tk(l}ZeD``!}ty*vu~ z3#%^dwyPKm43o+Q68ck>X7UqB>10!^#YBSR`%FSK;$~Qa>ZUCe{OR1@;o_Jt;xsq- z^0B6#0^K}AUSW>Y4zFwYaxH}(lQuRlC5~>!i_&<6pJv)^oL)L~zAcZA@>Wu#{F%?f zx)`%>N)D_}uEZK@;xMPYFA15|j4r4+>BM&WMQF_G{CF=95&FAw+X!H%y(hFfg%~Q}+ee^*v4hHUm|JNH>up8a2ydvn|{;3f_mkfKQ zr8-TUt`U>A*w*anmn1gF;(?g6RdiEWh3pM?gOQ&PYh{I&)PBkmOZR8Rm*cREiTSEl z)gPbBFCm`R^01;DbC`IPwCgy+T`vvOAI&+A2K ze9P1SBJ}=(SvH>R{inm!ri6L-7(61-H9Hkl7!sLNM}DY<&RiFT&2pe8Lis4jO-KQPS;3^gea zCR}jtEAh8;A_|c2xxta0H^cEbZ%$(ikF3h)x-RCG0-5PX_1-12uU~OkIW;=yucCd| zemOWA5i&eu)9<-|sx9#*ydnIi<#9h~w}HLsAQ-|&rkQB`3Z_c78v_SQQ&O$XsD%-M z1+UnMX&e-MCBtyLWdqV~k3aANT?2@*~EWdK@ zUg-3EwI0PxU)e;IxMqs|x*^CgGl}>k?!ul??@^lbDJ=dRo^IviYT+0N3L#7va-TE-^+1BZroqKMEy=VV9}~fumax zlBW6ikEoOoRIhUYI&dw24-cF0GxK_)On%nkYRxy?^gzQmW_ktYnqd~}tD<(WZV5N5 zVd~`e8QUKL;C@4Rn!M{o?nuiN*;`wf1TKxT@$V6&NGPH8Nc_+EM94J zup>D0OWds9s-qV z*7rU%-@ie(TiuvJ&83#~K8DE*-{YRcfeXEl){8SdUr*0k_!@q}Xa7h~e5+(=_+rTR z^Xi0?-)XvE#Yx(%1$a39Sz6*~C6xsF!*Zc%?5G|CV89tnML+CKYnTKyPJO!xjC%9- z!wV=+C%r_b_bBhhZfM5y$Cnw`iVv!OsytvxzPbs_Xi1PwI0npUSqjM|v?}b}UI@hS z$>7m!6dzc8{L^-*i2k-!JL^uUf{ZjxY@^6nrJZ@sb0Bj%E4@&AeE&6YyU7FInb}Y} z?1z!kAGp!t@L!DF3pecy!6U>D6^O3WiW59=QvCQJXw`Ya-H$@4+U>2z4hDfQ&WGe~ z@~#CoqFaqcgihxa^BgWtWg1un{9sfosPwYSZ?9bP`xrsw&(%6hXjD%`5sP zNwd5z>?#QwDH~|7M-t7j?dH?4DAvE!Qv_9N*YE7qNq>Bu+}xpfcAe+}UVyIk^>_I0 z-y}BkW>-Ii;O~S*rUm@6$T+vDZ0Z^)^c%Xam-Q=FYBMi;YZVriEj+ZN7#d^3TQv`1 z=j(I*ab6gc&PCbS>B<=qEWjwkC+!ByC{?nl@+o!Vc)wlO!%P}!EId)zeh!Q3RzT-i zg4jZbhIJfYHH(ZDPMO|^lAv3jM2_GPD7EKa-(Xvr+0uCYR3p$5_v!T<#iGd& ze{AL5W7(%TZIhbyH6@+QJNsZS3itq5?xnkqI80Y`N8j}K^hcyO?sh-)Xj$=|m~1~a zlda8Am3M}B$RvWh?K|PnwRwt#*o;>LYna&rL?@K5=uQMSg}?lP6ZkE)@j-pP;P+u` zkt(BpW5I&6Ya%BjvDJD)ZXUDUo`%26uq*t9LF4!)v^{-vH_2aj88E3V+?OJ}-eRk1 z#A4<4sLe+y8D%>QnELYUNTGa3U9Zie2`~M#G|jg>XRwHcL{wI_;)~C#D^_}chztZ0 zChqlq?eh4+dX{)f|Kfb-tU95U&F&?Y_2*Ns?J^^l15PdD6pI<%9P_TcIAATG6U@BX z5-Kme%&bEkK34uQ;3j`~YO=o&LnB>8{X;$*w@QOdhlTb_Vk3SR7H`?-Ii%A~VJB%B zj%S8>mKRr;(hU=`TQWJf(9M0rIVH94v4I_RVE$;W>l9Dn7rgrl%i4|w!^%z}G1Hop zlXK=1`vIdev-qt6S%z-&^0)aN=ADME`j*)u|_=1H$xZ;joJIgn!Umt)2-UEkbGy&l56tZoyvLtN^_A;Cod z?&_#BS*@BEo_jx)sKgVZ?H-!@{fhSz9TW2mlQ|4m?~D2-jH<^><;OMbbBJLx?yjbN z@Y+AYWX0UY6cN+jNWVZyWT za0@Cn0)k$~>XnlEv*NO(bWE_#j@8l7JL}f|XyRw}yS%WLm{ah|%K9g*2z4CnY5gNk z^;8ny<01y>X2-3%anBY$%Q4w7c{STa%X~qtDgCZg^@?ZrOmLpo`7cuCUh$snG1%Vf^P!U;$LmM? z`k9!GIA5TwOHtXhKYlM{Bi`=McH=GT;Z0yy=UPZ#0Zinm=eE{wi|*|`O!Y|yAgz<3 z@|{Wc7G?lFXQ9n0s`hJ_R1dsWN06-7T&S^l7mQx@vXwz*}laZSRol>W(Q;8pAe1*5fOG6OW-yFQYwiV+xie(Q~-;-%p2IZxAw z-dQt8*3j)3>PXL=wzTg1V@NefhT+EJoYHD(30fvhIuhQZ(fIGh=6OqDu?J{8YGo|+ z2TvD_?n$*U-lKW~jz+pkP%<2N0jYQLl6DE->ft#V%*1oLr;_HF3Q_kea6C z26{}KUAThT>2_{6(t|0Y2fDJ8f%SFe;`|9ge!zqAl`vao+$kla0$Lm4LdS7FD#p=l zx1FFX1<8VX8QlxT8QNmyItvBuVe)F3E}e@ujX0`Q&w0qE40VS%(uxx8w16Q~0d|Jd zOzl{gTa6br&;p&j_%tsD`-cj!t-SgiAtaun-SaYn1K)z%LFEO;K!d+G%jXmAeV-Yb zgtM~3e9B`~H}0;S)Y^>TjaN1WjOF@9&|?4`V!t%O5I65 zJF!;s8F(Q6c&^_`{O28z^&|)^XU>Cmo(LRKlVl&&e*>@-gIB%7`Hv}7jagSszNrLq z=ITb`NtpWSta4J7FI;)PIZ0(`K)reOObE}%g9ExYCY>u(J2(NfJxsP^3*tqz*T)%P9vRkWcdQtmyUiS7^2*baSKmx!O3c_1J{VcfUmbwgn290SYL z(jPmYWY17@4KQY0AgP^C@Q9snAEkCPke9H1^*crCZS+FYJe$O_E#UF<^Kdw2;Ma6n z%4u)YoIA=JjZtYUFD-iB7u4IV;awDIw0)LEd$&gKi=zHU)u$9XpY-=uRsyO5gYO@W z=k_=24SKFWi0PqFk1rV_c_?g`owHPb-lG(7i1gHvkE_^GGTX@mQPY)*ZsvkJ(QlSrG*dv;O_czDNuFMjaAi_F7sQW zK;dlIWt};!#uw!oF^_HP@1G5*yhvs;T$4b}!c?`~HjUrMbWY8x!~8-ZE_-xmz@D{_psX_jN@(o?Cur&T-I<=7{ZS+1WJJvQ=&R$IBZsc*Q9 z*#z?q6}nSoL@TG>@qyAv$2$&+11>Ji+0#xkB+^eV(M2+U-rN4!mCf^q$}iF^f&Br& zmOV$S{HQ`_*QiNQ<*jMMFK0VVp1t9+XPm^nA0`zh*E$?4=+0eGfAaex#pr>9f$MBw zbo8|3#|ca_3{`Tw2;uZ+iDvgMuNvBrXzV;43y)wk-dR|GpL<(z{6_3G+B~7RbNQvK zW|P)S4w+jXA$%VB{Zq83%qe+>En+^LbXPj>YWIMf<0hul!8m_@TxnJ<{xQ?{FK%qQ zRT{IH2Z{g6az52eu^DO9Dva&*E_GcZ z^43nbQr)`Vt8>wPYrzxx2unYYJbKdCB%L^^_0HvH3+J zpBs;>vG`yOh!Nah?2{!R;iOFSrz_ZgsHQNa>q_(b=?hwQ@$8&?zCwT)8p~ooVkUgF@=3LeA{l9qe1QF5?TKtuVatg70vI&Qykk?MH@7(|if;6aT}mPrn5pCW$xkgF zt!DNzEzP(h*nPZ~aGFVYYLVXQ%23-1ZFj<@s3KOORIbmRW196J-iU=f(yY3WdO=~j zKB?$!lqYLei~isOp7z{ExZ4IF**iJ{Gpu(4_7TS^wV2Pozv8F#^{Z#D5Jr?KB@o6+ z*tR1{4zAiOdw{Fs@^g$-jYR{aX^DoV#oZCDIM#+ChnR6Oh_H=}YsQPgF2jSZE!WqA zPv)f~M)BvZF4e7TleZSf*GgOM#e-T|B)0a_E<6#J3yI};;C~ONw{h9!`SK|Zx*Q+H zZ`aJJvHA5J9GKpiIm&yJZQF4FVb9$V=2?P=_9Nc;8jB#;a7lqlc<8dmN8l^*kXh`iyW6e-yyAm-OE?a$-3NN=? zQu3P_E~eHI>kVmD{z6yRa|R=O{9O)71J{ggVtZP#BZ>5}M2Sz(TA!`bmze!|T{z`w z$asY8gprd>;*HwIyYd5G70-PNr$W~; z1E-wVtYMd1pZW;Lbayppk#Q=ir*SnoUmvf#{cfeD)9f=|W6MLF2RW~ve`VFg77E6}uLA6601YGtC^v=9o4QEgWry7-wjVAl;6_GxF3NuAE~TK;Y#84uhSOGr30L-Z#SCo7 z1|`1qKR?l6t|9rQ5ojDG|D}EAt$n4_c8cV9*BOfBbV+g5bq;oOPTq*C1KN>;w6kEMN90%PMEuIH1bmsto*G>&J?CPU=<4{sf`INDTKv0e+w(~pVNdD*M-L7R*+q!i1u8HD@2ke$tYv7vbJPx_T`8`!D&-w8(DZ|4rJkWQG4xEdLf%OnScgs9&CV@JJSluB6vbOtde^{C0GI+`_L?e`>5F<16F zhjvgtQEcUHZn^ZU=ySEqW|x8^>40-B^Xm0Qrls|D`sks)+Id_rT-%I($*+#d5z^T7 zRO6qEzdSy@pFV8ANqp`{k<~zbhZ=mf_>O$K`fH$qb8J zE=k)IUm)+Sr`jt{g{_N;>i)x_ss18zv*dLI?g4|NG4b|fH}APb`XyUdM_C@zlikGE zT}*j=J|?A{`3lPf!AL+3hE2iwm=Pg42Q;aD!3UnQat)SDKX6~r*~n?Rj9m52C6R4N z^G}NCw2Uq7nd4|TzwnhxMgPy{-hrhy^5AR>PiVW3_Xs0WT~iip|0rQtJQ90PJ&w)I z;Fx-x{GCstB)nzMBNdi)qBGm<*QV>7*e)}*UmD9<(o>@QmKi z;QX%b6WdNM=DFFEp{Tpi`;~raAdm6VZ7RnP{ae8ggcF9I>rv;`0cj;T#p0I=#{>1O z?FgB3Oz|YM9{St7#Z5gqW9?PjS)TGLCJ>Jhu+CZUWX9h5VG&`ev$IMtEbK>dyIL@h z))Bwd7l;x?(yv<-6J|cD#-AY%yM+%Fg0$F(*OQ0!n3C{}hlYoyQb!Q(S2>wG*{g>{ zM>>u)vj#p^wj9Ufj5L#cg!$?7Z) zX}qwX>gUrKz1tF7#%;yDl)wF{8RlcEB~Hvh6wG0q+j}~A=*O+mQ0$sE#lVu2BYJs> zlaKYN?SQKoOyYavXW$uk1IOc3!nWs?W52Ir=~@mO&&}&^FRyJg8`+{8Ex(_*AwEMN z5=uTWHD2L}en(xy((y#}?Avswgp!|DN!=^c0&dr}kK0wQJ*4_P`(dd@&segEcXENB z@25YIz8Au%3j6s-d6A9>2@&Xhy#q~sM~z1Zl6b+{r828t;OtTktmsPlQ4aM%)|C=+ zMn4Rg8aS1WGiP?1YHW+wMpR^7ZEu+uC(|vf5fjfrG(Uz$)bXAAo5&2y>`#GQK2QEv z2Y%=J*|5zi@r@<1TqW-Lro?Kma~lF(b5)|6W!arHA*BlZY_nHvRFg~qze$RWM{2>M zPReWZ67mraxtVwKID{~a!C(@fC^RdJW|4d0XjVL@w5~U5EB&|-FC8*%fbUB?VzC+b z985T^c#-BvVt7D#qwvmwSw3BL25*2GnvcE7RP)8FlRK z3T28MRS~>(LZx?VG``%U)SpOKnJVmO>!%oX{W||CkZFsHqJGgW8;{-Rj<=ps=92ne zj*z}-MDs|74F!I_KzEl(K~6!+dA-UjLpLO+r?Ab#D6?fN3T=5?@GetEdPJc`bq3!$ zaSlV`D-(vo3Az2oYPV+?A0!>NOKtzqOCr(yl1>pq9YhQ zaq@$=3oo6b=(CTfZ&U2}Wg9UCv%S=Ke}5q#bN=SWP1c`t#KGA`zD2U1cdSZkb}`_M zr)eE&U2yB$K->C)N7N1IXsD?H^(<1r$d(7!jtfjGlC_M;;p3&wb*KRoTUPq6SK7JR zKihm+$9YVQ@Xg$vH_G_W*DIUP_I0w4o^lV-9-TWgsZv#Ty zH}M{Sd_Hw+=I1k#Rr1Q-)Lv?{la(zB5pnnw_wvS@hr$I*>C5Ct+UIe^9Cpu^x{Z*X zen`C$3Oq*7>VDAiqf-6qkWJ&C=oHoXja6oWd{@}Pin%v+f~1#jDZc+)#P_O8q-Uv# zN-xiH!MGy zqqu>wWpCFSxkFCsxU}8v0#yu!qeU zeC}kqik&KYeC6~TuRfx}tjC^WZ>w1qwWg|Yuq|b5Z=G<*@p#7c_1-dTt2vh$6LH_y z$QA$m(AGK@`oW61h*Kv{dS$7&!zT7`DeCq<_Vo}8vBw=|B7F12Z(YRgP2*++eybkY z)^%~e=3p8uSzgTjZ=3J!U-u^sGkrjsWVkVOY}Ig?zOz?JcTcw7*?5b=PKWFt0jz1BY- zSUq;GroCynhsK^f16E)(NuB+oIJ#!|Q-PS#`un7Q;BkAShKq*8N7yyN7mO(egbfN(`p6eZw{P}QKW#pLnOIIcsWe`;MDL-qo)fP@52c!A z^`0rNL)qS?J6o!!pYdPiaSWa#OOWg|u~0d#FH7zz?&y!v`SASPsl9ID1U(n27cNC3 z-~LEmW#$~lCj+#a3{A5~O#!iw`n8wa(;kBZZ`cdEIF8M_@CK*PjC=9eIJ>rwbtPpv zxNiCiQ%;bcAa;^&*sc-JG%**~ojFat^1L(Vo_*nDk&e$zr{_IWBXeiPp0D?0$R=iP zf13N2tRmxKp7BWTC8;)M??H|~^_H$v$T=OnGJlpgN*5@!@ylM` zeQC7Ox@cssh-osid}@W+f0OIxeunJ*g+BN9^M15Ge;gbPp&1-tGhcs52ZzWJzCd7x z#XmJJYZYo70~U2nwFJ06XtNS5g-V6bxmD?h!d70+p&geq%N9vXo4(W2xbe^|aJ%pJ zIyaN>{de+l$w3KWQYW&DIv1kDmQ}&8$h4m$>Dc^}LRGLW_Eu!QGWJ_L`=H zD{snLF<}8|Spw;;#}`egekAzuhZPEa2yE1kpbo`8&gdzze$8rE>SDfO-1nI zF}@6+q*Zmi*Bt|Ug?GM7`=EU`)s|6fya=w^hq)lV#!oJ? z5evAM!Em|^*n%2+Mr{&jT2yV5Mp{dU?*hraK>KjLUE&0f*r_;P^JrTu4lf*_DvKrW zQ=gOb@^dIkcIl-Hy=N* z_~o{q=H2?mNyi}agBm6`snK)5bqKm-n~sy`6Ts4 z+6MH~>C)TbZzA^n9LF3d6)r5r?A7BGZlpzD2l7SW?X{q`%vEw=A!4AN9(+dx(Sh=~ z-#x43R4TJHFzO1_O&<`sjj%J4ChO^6pcfVS_UYn}Rp;6-C2FoEt>v3%_;KRhvRbJ~ zC!B_Wc5AP?P0idWh{lH*udfpj?@+d>bS}{N>!oHK2+zh++s<01ZvRDFUYv9%U6@j@Yp9Wbg;@Xp8r)H z7cF&>{_BpR8rikecW9a|>6vQKd+2q^i%e2|{S|E~ITm`r>NpW4QZpPMYykkjR~kZpz2s_e*}3`AbCdB}5F-pUpqcDpwh+Nb%oj@klw8m7Ymr$^zJ-&Wc}E$Mn9ly zwo5`y^Mtt;M?S3=RwEJEBaGPPbzao3rQ zjfw0JYBfDyU4MKM%D208(jF$5gR3&3tdP%YpnT&tCuyqU>D&6nwe}UHBdT&UbJn=` zVd$f6;8c5!B%m7clpGbHZ$iDXII)YAU)B?2PrXoVV{Ga*kSW7VHkgX4zU#Sv@$)@~(?k&ETPe8g<7la&V=!PI0}g3ma-=}A?yrCN-+$ntQUC9sNYPeg z!GFAN>SF3_;liVH85<4LKP1A!)q?;H9gB$e0y7r6RX6?r|Fw_&@V`a}_iJ+h@7J6x z%w3(FZQLx3EnOYVU2JYTI3E(qg8xFG0RG>2Xdod#xpq7b*dE`2J{lbVBLM#u?V10> zBM4>|4(8VOrcSoThaF1*i6HRqux4K32LMyRSq#sM0{)kO^z&a5{mbL~bwESoT_41E zRtI?BfnR5blaCb(Dh~ymR;I-+H-HmE5N`+@GVa%B2u-}gEA~;KIwui$*0@l4hgHbX zc=;`tPbvbuB?NUI;6de~AYPx;i3ITF1h$cc-z_=7CkJh}9H!$!6OYK(qmKn(eL&zb z6GG+j{c;0CPr?PID z4R)YCj<7q=kU{4CYKjJpM|q{v9}J{XBB-ej4{ADvjlkYQY%mZnF7lN=|L};P%P*^^*dyjln0Gu4~^}%07V{}k)D0~c-v{*)G z0Nfn#2Y+@3GeE^1woQPhO#;WlFKPe_+@0{^5i>#Mp|E)GQtjI>0yxB*?*%ht915E= zEz!ppJgO%UJ_e`LPIhApMGr8qQ3Jdk1o_^wL**Uz5rD=UQ@Rid zwkKFd*e)8JP3X-EFI$K&DC4*b!QLT-7`3l6qUriXj_lp+4;zptyqNo>HsHv~lUr}|IWz|Zd? zAaDc`{=NT299DHhLtF_|;4Egr+HDz3BU3t;7(*V&sV-L5Tcg!a$IM zMqIETeBRzcP}I6O5(NK0W(x#_j#_2!H$Vz7V;+9J-6WA9V7w?WLWrw9z`|q}Kn!?B zixe^j3(Fa!aH z*x~o>2RS5&-!2*mQZ($wnt~HJP9R8e_B;~AVXY6ePlKalCIfUln<6Z@y8;pf>~KCJ zG)9>Iveh0S#xVrOtRgbTZ|@ldRmnRgFMtjE&=FK6q>O|igu+>PM}bBOJa5Ml7TjM2 z3F2@r3N%e|@({7p0Y48W)WGkl4pk(G!=^*f5JVcM)4+>~76Bn~0SV%;K_@gsbb|Dk zAAq9l5!U;mIuZm-0EHvnx#DGqC?Ezm0^^egGRE&$K7>7G%RX%L-v{m;Eu;(-4nyAI zMSIW`nF3__$BzyCBj9E3&_=>Q;hge(s%L=-{A3Kmg410>MnK`q@T(^-0MkJc_mtaZ zB#7VcRS0XLVtmgG4M2c;g8wpxb&w$V|1qT@AZ};p>uiIn2N3XgAGadQZqd-B$enS~X8?Y`2;t)^ zH$=wZ|K}MDVKsW6;{9b$u^S;{{NtsBfOzPDz5gCq@HhljgXE;`s?{7+Ri z8zW;JmV!WAj(6LzVlsfCg0LK7rbrq8IF%siN?K~mW**R0BEW(F{+^m4VH^&WfF_3M zX3+((Jxe%%fdBrc%#k2qLMSXboi|ZAcv69PI6Q;X0vUrJ1qLg(W-7QGrw|U@2umc4 z-_a2WtC1=sRtw&+pw$L{jBHsUL7?#Yb!DV#fMx<3f)ENeNC=13V9?h4;6k7+7$k^C zKs>pD1o1n}0zpp?$#C?*E>`FWZ%bx7B#6UAdT3H`!`{ix0eS*6>fm>jr#%t`43#JH z+QjZW_zpmPF;zGqWBhisKv0!EH%|!oDoa6-1KSZ91mC$ zm=(M-5I60jHxh&Z3U8SK!KzX4C`7aoM17GU1W|bQ6)D>eg24(+gdOGVhYW$jGoT@U z>I)8lm9iS?BIh5}r zW1!-KKFfWp8uZ;hMp%yGAS4U{6ppEn5>Z%SY#2-gffs`<1PKC$%B~X2ln)1=$Ttzh z=m@aFja*ZVKFX5B4Hf1_JSrxetKymGk`$!a+gFQLBLS)-I_FV zZSDh~I2nQ%>@i3fsQ9On(!&`*hXp$V!Y399;;@@2G)>9-`_zDmAl3*A{w59y0`@x~ z48ahw)~e+I^9KkK#4wLX!r()}DZ*-tqqPiZ3h`_BK1PB# z9HI9LG4=c@&_d5ckfJ072|^SFW5M#>Xp3{(Oq=y|sH zB!J(4hp^z88AuqyC>T`L`w8iw2>rkx{GJkdh6Dja;p2O6AyL5r{5*Is!TVg|GLaxq z5JKL+u@N+GKO+c1o{fYcf`T06Ucp>b__gTH zMZyq7;RSx1?$iAXfC%geXDweo5`-`c2HU)6&BA{_$p#CMAyC*+Q8pBrLaBg2ykf0&?63IPe>HuN(DWKf ze0YRgBND`6YYb>xDs-7*1x(+_M_BIWCM1Z%Mv>4EQN(0(;41?$E+f=}1c6G<-}}MV zGSEh-Kv;`}RwM{f6ntz?BB<|!exp8o4B{qT_oBhZbs61rQExniiNiu_%L;W2x1}Y90<~lM4 z(CkbFWP#sQjRQy+haIAzorEFb5iFqp95HX0a0m$kl{^=AqbP4MxKxiIh3zmB1S(!5 zpDTW%`oPcoBfJ61Mvx&;Nv!CVi>RLg#3)1%!+Z=01C^YI+Q6{4pfQz=fJhogfL0@ve%sDWAVI)*Q8=h7Ny`L47dm2qnqvwH<9E3Ygj3{7Z>A4uhJfKE_%FkM z8VLfGB$uX5L0|9#zlLz4_W;}Aub#-mmNd{lzS^H^8~+_^kex+>5JKT0^8rI)^#!0P z(At4t?}u|p5HM62(&3Fv;3FR~@KZ34jDdp3Ys8<`lDj z4KWy&L97JP|A>qshynw@fo}#_+W$xws9QwB5Jo{&3t{7}z$+LHyg1-jd~*p20)|Rm z&Vj!17x30V^wOgP$^3s^4ph?J6NZi0*Z)&fCO{10uLxAqNZV`ohd_5H;&Uly1qnhF z1&d1Guz~^nG!U;>OyHpZs}zR=K%pHX{>{o4z?1|qPaOUzGzD(mzam6Xc)O0qDo9}f zQh*6y@LQ@3SfaloV5r11HmuL`1I9R-5x{|G5CYGrzcWzrhb#xA<${g`CO}p23?ATX z`8$Ijg%{H;&Z=I}H}wKRj#wa;f`oy>q0XU8pbiFRo&gN_C7%T@#lJFyQ9zWQS3L`6 z+#&{dxdG|^ih!XK2XAHamYe~^$VU((6L_utm4S*gGC?~z2)tpz;4b`%PXOP{UlA}~ z6nxyO=(5RRvK(TrxWFDV1}cgB-+11f`R9s-m*d_~WQ@b<&d?5$k!O+*Kpz;Q9G`#? z{NHu;y8#LWyDjh;jXQABp@GIayd28FGX0%_N(M*M^`V$A00RtD!+#y2z@zZ53{>I) zr=>?XPXIq}j&SC71Lx#l5vaK8(NB%@ffmmOfPsJQivf4mUlAx63a)MeBj9TTbkxJI zMF^0y{8s`D6-S%rF)TE2-_9aP(F1I?zcNs;s4zvit^jt;uQxKh6r6yC@>c>3l^p9G z2F*F}wUGr#0l%Z{0K59HjKgUP&_2GEQ<*LQ{ejm2HtAmxu*0VC&=}9jdO|@1cNF-8 zR~0qjy81f-Y1>4XmH7Os^$$x}3(g7#_U&TNr9o;=K<5UH(aY0GoHH8I)p8kq} zp%O*@|Fw7U9|tMm*8MBvu$w5fjT_J=G7lzUf{Ot!#&w`b>#qnHDrq8FD^2X6nh?`O zx`31Z?+jG@&}>hCZh{$e&k(E;7?82>cgE3Kd55hYdj4qXM-A8NArHu${D)z8^QNP* zjf0!1lZ~l^%l~>l+(q8b5BzoeCrfX@nzaewj};`?o2L4ZvhlP?1tU}$a#unfQn^f$HrKiKbdAqcRw5A>e_PZ*ji zf)=Ogp}>A87einLTrTaT0ys3lo`csSJz(D-Eg1jrvS@zFrnI=mA7*rC9FH%WoO zijE`f1m8D^M^!2Z6c+#QR2vAe0s5h@pzEg&L5nM#kYK2MWcbq$X<7iuxDjAl=b*s& ze%CxfkZh1x<|!D6ltO^H0(=Nx^zQ;@2rw5MVp86ujW`I0Hd4X+bD3{@(#i2(ZiMBsA~$hZm(b*pOlcL5-UdkYK<2S3yvtq5h*aAUcQ! z{PG`ayaAk+5KfTaReTU&M%g7eK#(5I6aiKw4GH!;0ssN#>pb2G-Y|&Y*+&^DFn&}v z2t^T^axfqj25{)ZAH;-mkYK+fix4C$EQtS=q70Ue!oxNI3+U)I6ZjqBhXAuWZe|Rc zI%x*x`p!+dpIKf>u zxWm0ONU+5v1b2dFgL@Wt2@qU^I|P@YfdqF865JuUy9Rkxd;Z+Kp5nc(`Y?OgFZrG7 zTispW%ZHY#7Y#7j!A`J4)i^MR#NK%un>ZK`;;97osX7n#J59lm?7T# z4`qBatFMOvoAtUuwQzu;>8O6QMKw7v(@H8ZV8zd_I0%KnHq3&mupPb}m|->iGhkQy zHQ5f~@js}3bS)N4VxvaQJ@1YCYz|q*l66=xs|K1OSzxKi5@!Ggf7xjnC)DM@Oe-?U zfR+BR?-K-8Y{|*x8Bvb~vjX1?Sm&x^%AqMoZIBWTI53Cg@;q{{amw`oL!hdSV;gc{ z_M*Qt^9;$dMLo&`hv0t`@KwKJW+M*F8V<-{l|9inG7qp0!%t`qYsrFHbw>=?oH46opi0pOXNA);4r;}L*{#wY2JA-4=f39w z22n*PSa@q5>~}{Y1J5HKVHNc=U~89eE(ssUc9I;7Dg9Y6$(DZC zEzK$n4oAaJ-Dci0WMx&ao zx^Q5U)PeiY$ca!6ZVMoS_3z4I*{$j(#wxDOIo;0#K-5_Z>&AgOtc)B3w!dZBahO`d zvr5&)bUipQYiKNkW%r!xkAcajUm>@KKbWe^scx66-pQ`u82C`7Ut1cO0dFCrpWi71X zGx(`z@QOhkmT7ecFknO1MyraEfY4PKtc6-@r)8WvoC7l@0ro^u#k*jp=LP&!Wn3_V1^Zpt z!&t=+P211K5Wz2E!j&4uVc8}5{aKztt)U3b=0;#kf;cdTRou*wY}1wavAF>DiL7EG z2y}AJ#s9q+#9;NT>Nf5ks0LUXPUhmZkF)pq7ZjKsMR*zO4|m{rlufL$G#yb)$8j>1p9T`o@K zzyv4$xp1H65OA|KC10%iWDd$<6^Ak83a))7tOCHY64<9H99Z03a0cvLjj20eH`x{v zM`_M97R(xv%77j0aQ-d2o7D+y7(~nTJKB&Wi`@?7&W_Wb;9zo6{IVe&m|aq2HECn) zeaH&i&caVU@q=b@V3G**pj@lQp$WH$2$mi~xB69dSXG3KPqxQVG&5!m<`GyIF#8!W zt0|5FD?c5?^|y(Q(N&fE56kdNeLv$%FCDxS{jh-|hz%wLdPe;;`Z# zCSa`Mu{oVT-vd|+vWlNqvtW`?+~76^ZzllIcLMWX%YoUg!P5-M9?$-|2}hW~o^n#g zW$QRFha~&*cf{HHLjlwf>h0BY`1^Ve%#g(5+MM~h4vm7DM6w$jIWSX_H}IKrrovf( zp)06LmK_{y{W)y6CPpy6+5Dg5>puWkeFCe$nFBK=X~&vA2?}HekU=i$*;_a;yQH?( zy>GIbWdYV4VCn&qdK(93&5dWQ;=q2nI$`Ct2U*3<+c_+|#9Qh)VC*4uaKquJIxxo} z;;z?^-%~Oea`}YX*2I8Z7>!fc(03;XWi_xdSZAID_CZbDO4e}lE)L7I2HP=U18$Uz z!ocZMBG`op4oqU?H#<9JJsNRn5U7jTb~lG5sqy|WeLy=rsHnlXbq|N-kbJTJJu@sk z3NTvq^ldK(7WXm=7f%Al{;_hP{R@@^r3|PJ# zRYGBSnk_96tilNnOcH9T80E7Y)uRs)tounGOOSl&=i6%p9##-Ba#D{2r&usa*l+Bd zLEkVb4M7|y^+*7@LA`oN>hFG~eZB)}Q^zElx(_1+jS1}AB@WDx*uh!+Q@6ScuuK3` zP1A~3I50t}aL#S#zt;oIBx2r=xXM9E9NTJL?!;oeZxZlS`W z%OKxt(hU~N8eqjZJ4z-^vkd!CAf@AUcI>~&f!QSm`DydmXJGgU)0^r+mGm|TW?Bzu zFeG!lbs2zO3y#-RKUu&X4$OK~h`|~a6#YFtu$~jae%$4-42fXHhqj$n3P25rV0~ja zFiF2g1;?-U*eack2$uW-hZXly7Go9n<+9yHLlOKGC-tcOkOOl_4yx?SbM43tAo|Ic zJ>tL&NyWm9j3+u_`Ww7+C&}`G0jWPe3`wrN{;N^_(9Y=%FjetqfU~QISwqhmpR9ZN zLfw6Vvj=oh-O=x!aae}+palb#qGpft0RaI7HslQl=CFnwGhnm&hmS#J z1V7ek8PB}s!0gsL9t>ErTYYYzWUT4GU@^$>Id7{GA1} zCcHBw%iL&E9qdG@OJH+S6T@9(>T>W|GiHy`@q2(TuB1K3V&C9F{4vtYY(hP6r@3 zEu55bo+}4tST9I2R`KzYry&nPvY7;y5)6O+Dw+~!Y0B)xZm1h$0j7SkrXC!aq#i#e z_l(RJ!Kx~d)Oi(G$LFvNNv5pJ-kU=Xf?#Nas3+sCL@byjZ(AZLb_H7ADT)7r&q8uO z89%S@H=?|Ww=|7rj!DX4*(H(n743b3@P0{2bny^8B*zd;l6qOO>)UDE&ZWsJ-u2|b zBt~5On#q!5{qq1KSP(pUsu#>IF}y#HZrVH^fWiqZ8Z<@^bJzv3maud|d$3?(A%PW3 z&4Jk^4Ze#m)SZvZNL`94@P3|NGE>s%n5|pQiq8Sog-CWQEe96&tSjRb4ryMx1v*PK zr<5-}2WDDBNExsesoi_y{j!}%)*s%r(J!Mz;^3amGQ1n!oYd!h1GDP%FjG>%d${yp zGZVvpj`eUphI7Kp-g=lJ8PN59_|TeI?$i=~>SZ<+3W)VENx{N}6s@=6NFGIAeniZ>@X zvrdw^=H$Q($#9HOVIGq)1P#`P6Kp(;Ti5G{LsIedAo-)vOR$XfiDa4caA2nOIvhhm z%q3ml-TNb~eqI(#Qkwi^)x!BW7X~A?sy5Dqaqs$NG$qx-!;@bg=K-Ko1hzXr2j-AC zFn6!txq`j0MF=cMK^9EnPT$>8=w}STf(Xp75C>*T4t<;Fp*NTmp>d=|g*h-uH2>VK zS!u9fVIrwwd{%_RG9*plju*Qpz?A&|I*QdZKME@H^vWoSc_)ka;5b^s5Djxu`~r3k z%Wl2i#n{qb^5OT{=aLlPR!9Cq1(;W*S0 z^^-jmOB<)M-bTLvK*LQV#H0EnXqXGxS&5JaF*i+x9GJuu-s`=3G$!0*$tu>Z#9^6|h-UB^&&@a#rZ9o6ugrlN zl48)v%(M4lTSHp{ds2l1GbO!BU&|i2h}K7H0?S^F12ZJEQ>u?WIiLc7z|?TsWI51OE8#J-^(XqtbTX0|!`lFi>a&) ztywI=sH~d}RzATxf(gJ12e3*&KNMa?|Hf- zY&e0CfCDonmmTvqcNlx2WFR~z)u7$Y=J|-dJ@=!Kn~0y z>7(yx3$Y_?3V{{r&4NiP)xwXqJar3TSgEEiL&X+jKeY|gM4PBemSisemhsmp7R(S#0!x{_d>Ncli?Mw5n=Kg4f!QUA;_J7by~YxW zgYZ*t>F_Zen506}vqrk`0L&&w)v%Og{OVI=?%x@Vr-}5$7gySOOn#zpH;9^f$3^OkG3AWEM&? zHFiPLO;<4VaTR{5BF>q@fl1Q(KhBS=gF7q%uvEcPL*zxT9Ck_F>Aj$z@6hx}Mqovz zvtW{ZwE3|3Uzpvb)e((na9|EYFc);(B8NYA+0c@>Ni#VxQ<4RIF!FsStR?p&%eXIu z1G7s;V@%4sXcH<3R!FD{@@*CeW=aMIO=#QorYC@Q!cW!wG;=sGNtS2RYQJbKf<~uI z6)b2jhh<7iCS#s;%!tV{8dyI$j{~zy!kHa2B)B>hq{>OoV2=eHn56o@^UK&HSkIE3 ztm1=(9F{3*g>^gBcm?VrtrgC^m<5x>XgPuu|(dFjErps~Yhs#h;4`tFLFlBu4l1%K>@N zYne)xvF8R3%puv)E+JDJ{JBQ{;6@J2l*Ifp>>HZ|V}9rasz+6Fc*H?}E=t_!=zXg` zqi2hXuj)su%^a3p0-F{;^$*PRP{D$>aA1DM6hF9IV^|7pSYI4#V>r+ zfZF(pw{u{2$vdre%}U4b0jwlZkDNO=Fi8ngP-LQ@62M6Vw~OikwhQO51jl`&exJ?q zfT~X}vRJs=^jdF7yov7hieJW-xtjn~)qX()2WCp%;Or5DB!6ZT2&{r-4u}``az|;f($UzRQxL|T-;E%H%-UAD(SyWbr!yJ~R z{CPy;o@dcqgfSRSir@7Jhh<6(;gjjMWJPZRgGlNwJ9d->lbj!mN}1CefgUJ_Ebro%=SuDwn-v@Q4=E0J&R>Y0= ziQ>Q{d9tcL<%eMH3{6hFIKyEXl93LzQcT){jb(H`QI>NYm_zbX_HwT&qyK_cOa=O= z?&#|0Sula`vf#|=WM~JUCF*fJn!_?Bdf%`|+Wwerr1xgpiyW9CiF|mx^WKP(%_frh zU*f>*lC!Ev-@um`HN8tdS=eO`OfqM$&C(pH3IGc$l2!Hazsg}r9`{-?u*p6=@VAjg ze0hz-augK|+N+!(YCV=Z(e{bzH&`&qD(3MoeDw@SMoaJ3-sHd}_Tt>quczZI%Q|Eg zuioOYOi8C`$LXDpr3TPy_^IlV;0^~SNuxFm_w(5gg3)7fFzf{Vt!Wk)@U=E3KnxsV9C@hUYms5oedBlMk5^bDz^;!We`oJ0!RrA9ivtR;c z9JI%84+in85y3p3a##+@bA9)^{ks;6PDc?~xo0exB;)8e_Cxm^0Ln(T+34pSm|dbD zw~IWUfzC@Hku2d$4$P3WNKd%mWeE=9_(otYUvXfjB-p*C)5@}VYaRqsSk?US*BqE3 zIrDu!Jbt|&B%>L}(@;*MKZos-(0bYdlk(s;Ln}_*W-s4yV3KOu?j7b0#%Lz3fG+ca z!!n8s`X}7h^s0@g;&h@P{vSCoyX29y6s(x z7fZ;2N&J`4KF4h7frBXuRXdEt9F`=~Qf2qYop=aiO^efspM=9QCDT5do+`Qd&&}Vr zlX75oN%Oa_N4sShS|3Iv^YG-rOi4r{a_0SFXbXQOFu&v+m?1emng(xQgSD9#3G7Y^ z4$L8GY4~^UnP7A&<`P(yR2-No=?tmR_QqW_O{Wmp#MB&^At{jXi)^&ID1e5M!|Ht+ z7EBT**wpBKVQeM-mq-?rjsvqxaugefEssD$82cyGO?@Ce2WCjh@3L2{_y+H?+60y( zBM0V?lxH?i7G4+&TILW~*GwFkT~hPZ*fx05pG|^&nK>|1k`Z~c@MQTzAX!2p*^ew7 zm|ZflFiXaW^N9hp4u0wlkw69cctecMq6U6>5?5*7i z6{IPF^~ukHnG$n&Qk8-KJ#rL4zS*h*9GFA0j2;gPcT5UW;XYFjkQ{|rFhTw9g(fxo z;KWlL1g3tnsf9T#Q}Ql%tzqe-a40B+9WKIw*(LL5-Zz@G8+$hL63Ma~9GEE?NN{XQ z!7KQ58O`t4FgY-X1Xljn#8PNAQnzBVod*-tkGZZ|c>+W1^c=qA;J^%trSF-0M0+%M z8j)|7v^WbU89*~JvcT>rfYE$l;}RU0DQWpyIyScrn>NCUWI-iaFv;DS(Z75=jOT|E z*hy~=%u!SjuU+4yes6@$Ah4{ZIWW5<24bG^O?e$)-UJp{h66JtBTq|>e&CL71>T?P z*|?!B2WFQn|%U{onJ4 zG+_I=0taSFhCd!%^f(%|aWMI2bt-XShD1RkF0JT^As3n#Szeh1lLW53E^SJWy%ZQ| zSGDm}6%NcUd5^+<<-G|wMPf98xm07pB$2BY>4RP!2bi6}e59e-53{ib z2WCnhXB*{P=G33l2djKoFi9-6db*5WlFu*r~2(>tDq zB-xqr*fz5&I555moKKMJ^;j@T6lBVsbp~!~8krc;kOQ+zo=0)X@NmHafMFS#dN!_Y z#DYnT)T^7b#KXRx2LyJyF$d<5)CpZrcVG}kCUy{5!=@aVDXFi`oh8gKAAm{{FLyyR z4$L9R^Pjwvs_$u#%t0i}?Z<(clKZU9{spfv?>?Tu8nocR49Pr>&dWzN*a0wF2ePy! z2WCnXq)Zlb&TW9v_t|zr{kQ%EaY)iWN2l!%z^O=B)u`^X&#gHyyQDerz}Uw=SXz!% zwkoVvTNX^x1(W2)mW0^y7z-A$8gm)y&w>d&renpImO&?`0uiix0FNao=N)u=jypEM z#KN9d1zXdO1CtamxFyb9=q?C`@jtb#EwBTJC5ZkFSa3ZCYbDx{HQd~hgEA!c$DrI^ zpV1mVKwvLBabTuo2!gk3)WISEiX@9zvI_?$2>u=0u)fuIkn0LL?~iunpbW_!T`)Ag z_kMt7B8!-#I|pVjDwsSry<$HvjK^&yu*y9+FjMk4?9^w=%3~l2^PTEJHLfQMCYf|y z$3KVh8DO;eE4&vACUM=rems>4lXRGUR}T-*e>pIT!5DZg=ow}o1IQ}+_U5n*NnO{H zkfcrUinbBh;yxUhDT(K=doVl^HXf8CupNClFuSCG|KimAE?B=nujohpI50z!%4(Q5 z*&7UiV75ZleBS{am|c>dUR=)e7*6QID_Vv19>{?ilIcN}k6t~AVeh|*WdA_WOm9}% zC6%EyrVc5Kp`C&RHh%~QW=IsIafw!iFpHau9Qx;na$t6eGo8Y7_;-x2LqOf>o0T8V zg9+@aX{qb`hQcz^o{BdkI53B#Cu^dAo??IA)SpIjV0K9v$fdO7ccZVAgeXYvAP&rs zbOX%WJ3liv@zdB}gV7wAUGmn(`fZQTq6xBwNVZ}O3nnQ;HC?7)kYR46s&VflbS!mu5>2Z^tC4%*y!C@Ja@)j4*tPPfeVCV{}pX|#_ z4$Lme;nohSlnGDZTST&NAsmt~M zDofp(F7dLuriQ913UPJRQfhssw@i@IV8q9YL~XpxR%TC-mmpbUGetiZVWQ35)>SO+q!z##(^zjoir z7<Pj1kHtdJlBbhLcfCY)4?rS$63Ror!R(S@IK3 zWTcKGIlG5u+P(}8x?sZjzFWt!615C@<{YE_4h&F=4rjbEo{7)m~XR65Tuu zY^f4uJF5jrmafH%(V=Lf4kMuD=d>WJu#zEBx#AT=F$;<=iT4p=&?{PyH3EtOdK&w362@fu0!aNt8LnwTzvKA~PP}EkT=4V2 zz#Avdzt?pf`|kn}24`BzgW;$O{mH`RzNzCF)|?CmsBP~fd9d(W~tU_2x z0OfRZmMF(F9muo>H!wi=VqXWC0Qx|dZs&6y$gl=&FhFhEP6@(LZD#_i_EHP7vR@2P z@lUH$;6Zl)eyY-~dZhzd6Ac)gnZcvVx&Q-PX;r1m`bNhwB$xQ{vs2b!Fnu@y4SuTy zS(Bt060ND|mk>{GjHas+-Fc@4Su+zDpvmI{vZ9lRlY&)H-48mDDY^8@M231`FWO83 zn)Oi&l7u$1{oOMNE#XPO`C#Uv(I(B9*}j`xKoS@7B)5$~yE-$B|_68t-}j6s<}ARn8XRfYF| z=cVJa$EGz+ld*K`{roFn`k4Aet6X#-!>R>kfIQO_IE+=U*sh`Kg3VP2vRZi^@!`YY_=#u|bi2C_BrzKc20kp*5IEStrY>BH_&Sax1#xZG zvu|F&!K8}HIgmih5%{bL-X#4y78GF};gn0H<47_cf&L9TV>FlsX+sigIo8Bch9d0B zw=6a0*BSs!y&MuG)qw=o_PHUIhol383lj$&4g*Zc;o*4t~pljTUaJGBuIFgKR zu^yFf{?1XW`sR{C$0;TVDeRl#dJoI8a+6?8i?Gl~cln^DIxtezp-UD7Wz13TN(5t`w`H>ELxB?y@(-E>+(ywW(LSj0{W3v2Qnn*!jXIBf-b<) zVe^uz3w{66fh2Vv*Iu-#f$=g-@2i|pFCE8fzGW=j!G$yaP6><-#7=mXUB{8c|58@{ zCnfqpSmvsp3N0XP^1DIg|6!U+?o~&L^hFGSL=(`JTsn|pO@wBwTtu^(<8ilkC!ltD zbRbibH*OMIF72Ny8@J@ufvl=lhCpR)d%k7>VW^vuB)^VhNDB0h&wYLQ&$+dc1+*YZ zt-`3?&q^l;iDtu3-9*m|>OhhlUY3*PZ5U8E2|rc2n-tb^BrbUKZ)R9bO=s2dRRN?vhVrVk@5Ho9_sRJ3-2q%U_`7a$Z(2>Mcl=_K^ zIdmY?DzRsP+C^oJk5&ndGzJyZfecCc>7`xy2Oa>4u#7-e?ia;%AW4d7A(T{?2F6eL zsVkSTq>f`qvW4|>d%L^C66Gqd1xbwV!B?KO4*}2y_^I2dcLg0t;^!q?oB0_=x5pBJ+EvtX3`xmP zx|@c^dz*{_s2$Z>sj$=q{`>)s9l)>~`3L?lE5(~^L)`szT2B<$Sm#r#h=5O)e$xq-EGAjut`t$yL^SiOXeujnNOZfN4rE9wD2u)h2*hxfC)uny z8t6chLm_FIDjV@V9(q4aZK&gz5{LiuuvD4w{Wa|0RZoQ*jdUPMyH}FN<@#Wf2p@`6 zb*^X=9mljfX&I_;(krkv_J1}8m>PJV-&6+@1nlQrsM#Gg?q9NQ=bPy;l2}%@EsN@> z2L^Rj()j5(hNK|fy>|ci_<^nwfyTGcfh6B2ZIOn_e_KAP!hL9|b3Xi3#opRR$1$u?r3}yzj|^q8rK2qYW%1X6OzX)` z1}Jh(rtWKAMtNHjO=r{;JM?Ise{Zm$J7 z1QnG1wpM+Bk!PA5IM_i4G9^pr<9#>&eE>BAiPT+`u9FUAy~V{?xr{TGtZ)GawS5|Q z)^QBUc3m?TB9c5!l|0@u!jy~z0kwp6k76k7aw4ZAs2YgUOJ9xjXGd} zI_4_ohUXlOFr5n2f+UUMRpypkgjaZRvT`YV>p+sm%u{n(&qD{V2dtd>g&OzKaja2J zjD_psS-TmQ(!PYBs@c!_>NtiZrtrSu=24yip#^4j`|CiGZb_E|w;$p>F|>cw9TYi0 z#}VA%HTGQWlN}JJ$-3PdsKrQ<`|lUl--nH}Z2_bzLW{vVkR)6-$F=AYjLXqTrEPGF2PbT`S z>K<|(uj3e!3p_)wL?f{@k4Ed8Ptby_S6LW3_o&=7Z%h|P!cW!h@QFH*BwS_|iC%<* zQ1TE?`pH_3z)cDA&iex6e=C8bej%SJI*uvv9;QdOdVvBJCZLs5wIGS5&@ilM3hbc1 zKtR`~X+aXJJ|t6?vAF^A9e%1RG@qdb39j&LlS*vE#BqDVxj9qEk<{x>tk`l0ejTj7 zP~|B;OUJQZHD_$0jk_it#_-=%;HZ|*{@FT?pbGHJwPK|_05Jf5s%9sgtHT)9E2#{5 z>Ss9L0wdcY1k`n&4rE%R?HHhW!*8{Y0nk4LbacKBWJpQ~+B_}R3~gWFKNrW~-&YAPD1esn$MVDwnl8pPU%P)JO)i?uw>Lv)3JukP z4C|$G#>#CgIG`-1z_G$!{X&UW=|TM1Y4g1uo}tk=iU?F`wU#64k2{mnH;fP)Ro&4sRc=N&Sm|N`1mdZ_UEcA=d(u#l9XwF^hwkvBM7vM ztXzw|I*uWkOZ(u&H6NU=iZ+%i(1m?Ekff&i#J%d3T!7Js2$b=Fj$=q1mD}$+#Nt@C zp#;?bpblh8Qg|IJ`DXjGkri=B3zF2mAKyBwvK^$UPLw;r5iLkkkL9wz+bj$#i~*Rc z3v-U@K$5=mwoxtrL0_^4;k-Yl<4D3j*S2=ejOI2q=E|PXaSTaL^7H$AW3j>`EfHw> zNgYUXL7d2OrF())tYSbWWP)RSxrE@&+0&iWDi|l;N^?P!d3!uoY#R&Nee`ecsW<%J4?7( z)o-*sS_d*D$-=h@o_D~qQ#7+w(B}(UkYw0O8{aigv5s~m0kyfL2MH3?z5B<{dlHro z<3FlI$1m$Zro_oBGh>S{Y8}ieciOM7ujoLMWK_i=j+R*DL9K=M*K{0HG8S@WM5#eT zK%mSZkh*e_*L5I6(!I7nZ`RR&j&O(E)PYP%sH97&T!(Qc1%~I;BlYbq9Y_*MKQyT5 zYOEn>LX^A09UaG%OdVXZ;OQ>Zxl05Td{+ySRDYduy>Jd!4jq0~7i=*)kRds{{l6sp zZ|)#H7wX;Df+SBTycp2h1?`erM54$CI*=(TBPjJ|;dnGmu*6keI*&(MkR(*w?`r9z zuR)^G1l0Ah7G%9N&$wSB9DQ12AwhWp+WABalC+f-t`*+{L$$vMDA6+=$dC+JJ)QLF z?h*jGO+bB~YeABwJAHWm`J@2Bkh-c2314bK66^7b(IEU1e4}Cn^zSPjDDG8xhBEZ* zP;MR`-fIXb^tBcw37s{z<^2ntN(|AdOXu=d3z8Hq_;1PnAp<~)5ErcVJ1t0(#Btv? zq6F?ES_^pTy&fc}jtIPQaW~#Y!-zzAKI%YmkGeCI;c%_-2Qe)bLB7$APg;=mJ|_e8 zGFhDi7|^1iYF~7qxL3#-pyA`5kIoGs+Csbfs}>~b4-Z_qbTkHmu*OJL?*g$pP~3yy z42e9y`_;kD`rZVz?7I#W_ZT<>89c48ue$(cz8L}XVqppmp>z4x%G4N9rAx%6TChj3=#`g*D*!ncO zVBd&5A+9=*peVhwcagSeme62eteXxK_og#Lp4CUr4ZH)O+GOFXdFVi2jY17ibSBL33Qye2Z$Lfcl=4Yg;=pk{gq1zb)dM%hZ&$z zn>$s)jOzd*QMSZ7P~2O<4AAqHrGLbLM8yecOcE_fGUl*Rf6t_N5e*`sBT2O&Nzv4u zY2CJz1xOikhv)Xxf+TedcN+cO1SRT3B-)=`3zAg37P9?&6usmS0IA!^E2S1BC^M?K zq1S*kz*tW>9a8BylKGHjJH<4`C{q`*a9307IC1ZgGL+k^z?Fp91-gKM%(PmNB)gk6 zcv*hT7mXk*w2$BBEPld*E6kA}WZ1)ynU<$7k+f+Sre q$*Lx5hD~g!bLu62HZMjB3&b0Uqi`Hy)5qVfBy%eTwYNC literal 0 HcmV?d00001 diff --git a/experiments/README.md b/experiments/README.md new file mode 100644 index 000000000..a28516225 --- /dev/null +++ b/experiments/README.md @@ -0,0 +1,3 @@ +# Benchmarks + +This folder contains files that are used to list the benchmarks used in each experiment. \ No newline at end of file diff --git a/experiments/all_benchmarks.txt b/experiments/all_benchmarks.txt new file mode 100644 index 000000000..bcbc3bd93 --- /dev/null +++ b/experiments/all_benchmarks.txt @@ -0,0 +1,1166 @@ +../data/benchmarks/accelerating_invariant_generation/cav/05.c +../data/benchmarks/accelerating_invariant_generation/cav/07.c +../data/benchmarks/accelerating_invariant_generation/cav/09.c +../data/benchmarks/accelerating_invariant_generation/cav/12.c +../data/benchmarks/accelerating_invariant_generation/cav/15.c +../data/benchmarks/accelerating_invariant_generation/cav/19.c +../data/benchmarks/accelerating_invariant_generation/cav/20.c +../data/benchmarks/accelerating_invariant_generation/cav/24.c +../data/benchmarks/accelerating_invariant_generation/cav/25.c +../data/benchmarks/accelerating_invariant_generation/cav/28.c +../data/benchmarks/accelerating_invariant_generation/cav/31.c +../data/benchmarks/accelerating_invariant_generation/cav/33.c +../data/benchmarks/accelerating_invariant_generation/cav/35.c +../data/benchmarks/accelerating_invariant_generation/cav/37.c +../data/benchmarks/accelerating_invariant_generation/cav/39.c +../data/benchmarks/accelerating_invariant_generation/cav/f2.c +../data/benchmarks/accelerating_invariant_generation/cav/gulv.c +../data/benchmarks/accelerating_invariant_generation/cav/gulv_simp.c +../data/benchmarks/accelerating_invariant_generation/cav/pldi082_unbounded.c +../data/benchmarks/accelerating_invariant_generation/cav/substring1.c +../data/benchmarks/accelerating_invariant_generation/cav/xy0.c +../data/benchmarks/accelerating_invariant_generation/cav/xy10.c +../data/benchmarks/accelerating_invariant_generation/cav/xy4.c +../data/benchmarks/accelerating_invariant_generation/cav/xyz.c +../data/benchmarks/accelerating_invariant_generation/cav/xyz2.c +../data/benchmarks/accelerating_invariant_generation/crafted/const_safe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/const_unsafe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/diamond_safe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/diamond_safe2.c +../data/benchmarks/accelerating_invariant_generation/crafted/diamond_unsafe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/diamond_unsafe2.c +../data/benchmarks/accelerating_invariant_generation/crafted/functions_safe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/functions_unsafe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/multivar_safe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/multivar_unsafe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/nested_safe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/nested_unsafe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/overflow_safe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/overflow_unsafe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/phases_safe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/phases_unsafe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/simple_safe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/simple_safe2.c +../data/benchmarks/accelerating_invariant_generation/crafted/simple_safe3.c +../data/benchmarks/accelerating_invariant_generation/crafted/simple_safe4.c +../data/benchmarks/accelerating_invariant_generation/crafted/simple_unsafe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/simple_unsafe2.c +../data/benchmarks/accelerating_invariant_generation/crafted/simple_unsafe3.c +../data/benchmarks/accelerating_invariant_generation/crafted/simple_unsafe4.c +../data/benchmarks/accelerating_invariant_generation/crafted/underapprox_safe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/underapprox_safe2.c +../data/benchmarks/accelerating_invariant_generation/crafted/underapprox_unsafe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/underapprox_unsafe2.c +../data/benchmarks/accelerating_invariant_generation/dagger/barbr.c +../data/benchmarks/accelerating_invariant_generation/dagger/barbrprime.c +../data/benchmarks/accelerating_invariant_generation/dagger/bk-nat.c +../data/benchmarks/accelerating_invariant_generation/dagger/bkley.c +../data/benchmarks/accelerating_invariant_generation/dagger/cars.c +../data/benchmarks/accelerating_invariant_generation/dagger/efm.c +../data/benchmarks/accelerating_invariant_generation/dagger/ex1.c +../data/benchmarks/accelerating_invariant_generation/dagger/ex2.c +../data/benchmarks/accelerating_invariant_generation/dagger/fig1a.c +../data/benchmarks/accelerating_invariant_generation/dagger/fig2.c +../data/benchmarks/accelerating_invariant_generation/dagger/hsort.c +../data/benchmarks/accelerating_invariant_generation/dagger/hsortprime.c +../data/benchmarks/accelerating_invariant_generation/dagger/lifnat.c +../data/benchmarks/accelerating_invariant_generation/dagger/lifnatprime.c +../data/benchmarks/accelerating_invariant_generation/dagger/lifo.c +../data/benchmarks/accelerating_invariant_generation/dagger/seesaw.c +../data/benchmarks/accelerating_invariant_generation/dagger/substring1.c +../data/benchmarks/accelerating_invariant_generation/dagger/swim.c +../data/benchmarks/accelerating_invariant_generation/dagger/swim1.c +../data/benchmarks/accelerating_invariant_generation/invgen/apache-escape-absolute.c +../data/benchmarks/accelerating_invariant_generation/invgen/apache-get-tag.c +../data/benchmarks/accelerating_invariant_generation/invgen/bind_expands_vars2.c +../data/benchmarks/accelerating_invariant_generation/invgen/bound.c +../data/benchmarks/accelerating_invariant_generation/invgen/down.c +../data/benchmarks/accelerating_invariant_generation/invgen/fragtest_simple.c +../data/benchmarks/accelerating_invariant_generation/invgen/gulwani_cegar1.c +../data/benchmarks/accelerating_invariant_generation/invgen/gulwani_cegar2.c +../data/benchmarks/accelerating_invariant_generation/invgen/half.c +../data/benchmarks/accelerating_invariant_generation/invgen/heapsort.c +../data/benchmarks/accelerating_invariant_generation/invgen/heapsort1.c +../data/benchmarks/accelerating_invariant_generation/invgen/heapsort2.c +../data/benchmarks/accelerating_invariant_generation/invgen/heapsort3.c +../data/benchmarks/accelerating_invariant_generation/invgen/id_build.c +../data/benchmarks/accelerating_invariant_generation/invgen/id_trans.c +../data/benchmarks/accelerating_invariant_generation/invgen/ken-imp.c +../data/benchmarks/accelerating_invariant_generation/invgen/MADWiFi-encode_ie_ok.c +../data/benchmarks/accelerating_invariant_generation/invgen/mergesort.c +../data/benchmarks/accelerating_invariant_generation/invgen/nest-if.c +../data/benchmarks/accelerating_invariant_generation/invgen/nest-if1.c +../data/benchmarks/accelerating_invariant_generation/invgen/nest-if2.c +../data/benchmarks/accelerating_invariant_generation/invgen/nest-if3.c +../data/benchmarks/accelerating_invariant_generation/invgen/nest-if4.c +../data/benchmarks/accelerating_invariant_generation/invgen/nest-if5.c +../data/benchmarks/accelerating_invariant_generation/invgen/nest-if7.c +../data/benchmarks/accelerating_invariant_generation/invgen/nest-if8.c +../data/benchmarks/accelerating_invariant_generation/invgen/nest-len.c +../data/benchmarks/accelerating_invariant_generation/invgen/nested.c +../data/benchmarks/accelerating_invariant_generation/invgen/nested1.c +../data/benchmarks/accelerating_invariant_generation/invgen/nested2.c +../data/benchmarks/accelerating_invariant_generation/invgen/nested3.c +../data/benchmarks/accelerating_invariant_generation/invgen/nested4.c +../data/benchmarks/accelerating_invariant_generation/invgen/nested5.c +../data/benchmarks/accelerating_invariant_generation/invgen/nested6.c +../data/benchmarks/accelerating_invariant_generation/invgen/nested7.c +../data/benchmarks/accelerating_invariant_generation/invgen/nested8.c +../data/benchmarks/accelerating_invariant_generation/invgen/nested9.c +../data/benchmarks/accelerating_invariant_generation/invgen/NetBSD_glob3_iny.c +../data/benchmarks/accelerating_invariant_generation/invgen/NetBSD_g_Ctoc.c +../data/benchmarks/accelerating_invariant_generation/invgen/NetBSD_loop.c +../data/benchmarks/accelerating_invariant_generation/invgen/NetBSD_loop_int.c +../data/benchmarks/accelerating_invariant_generation/invgen/puzzle1.c +../data/benchmarks/accelerating_invariant_generation/invgen/rajamani_1.c +../data/benchmarks/accelerating_invariant_generation/invgen/sendmail-close-angle.c +../data/benchmarks/accelerating_invariant_generation/invgen/sendmail-mime-fromqp.c +../data/benchmarks/accelerating_invariant_generation/invgen/sendmail-mime7to8_arr_three_chars_no_test_ok.c +../data/benchmarks/accelerating_invariant_generation/invgen/seq-len.c +../data/benchmarks/accelerating_invariant_generation/invgen/seq-proc.c +../data/benchmarks/accelerating_invariant_generation/invgen/seq-sim.c +../data/benchmarks/accelerating_invariant_generation/invgen/seq-z3.c +../data/benchmarks/accelerating_invariant_generation/invgen/seq.c +../data/benchmarks/accelerating_invariant_generation/invgen/seq2.c +../data/benchmarks/accelerating_invariant_generation/invgen/seq3.c +../data/benchmarks/accelerating_invariant_generation/invgen/simple.c +../data/benchmarks/accelerating_invariant_generation/invgen/simple_if.c +../data/benchmarks/accelerating_invariant_generation/invgen/simple_nest.c +../data/benchmarks/accelerating_invariant_generation/invgen/sort_instrumented.c +../data/benchmarks/accelerating_invariant_generation/invgen/SpamAssassin-loop.c +../data/benchmarks/accelerating_invariant_generation/invgen/SpamAssassin-loop_ok.c +../data/benchmarks/accelerating_invariant_generation/invgen/spin.c +../data/benchmarks/accelerating_invariant_generation/invgen/spin1.c +../data/benchmarks/accelerating_invariant_generation/invgen/split.c +../data/benchmarks/accelerating_invariant_generation/invgen/string_concat-noarr.c +../data/benchmarks/accelerating_invariant_generation/invgen/svd-some-loop.c +../data/benchmarks/accelerating_invariant_generation/invgen/svd1.c +../data/benchmarks/accelerating_invariant_generation/invgen/svd2.c +../data/benchmarks/accelerating_invariant_generation/invgen/svd3.c +../data/benchmarks/accelerating_invariant_generation/invgen/svd4.c +../data/benchmarks/accelerating_invariant_generation/invgen/test.c +../data/benchmarks/accelerating_invariant_generation/invgen/up-nd.c +../data/benchmarks/accelerating_invariant_generation/invgen/up-nested.c +../data/benchmarks/accelerating_invariant_generation/invgen/up.c +../data/benchmarks/accelerating_invariant_generation/invgen/up3.c +../data/benchmarks/accelerating_invariant_generation/invgen/up5.c +../data/benchmarks/accelerating_invariant_generation/svcomp/bubble_sort_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/bubble_sort_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/compact_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/count_up_down_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/count_up_down_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/eureka_01_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/eureka_01_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/eureka_05_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/for_bounded_loop1_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/for_infinite_loop_1_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/for_infinite_loop_2_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/heavy_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/insertion_sort_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/insertion_sort_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/invert_string_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/invert_string_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/linear_sea.ch_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/linear_search_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/lu.cmp_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/ludcmp_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/matrix_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/matrix_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/n.c11_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/n.c24_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/n.c40_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/nec11_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/nec20_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/nec40_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/sum01_bug02_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/sum01_bug02_sum01_bug02_base.case_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/sum01_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/sum01_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/sum03_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/sum03_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/sum04_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/sum04_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/terminator_01_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/terminator_02_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/terminator_02_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/trex02_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/trex02_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/trex03_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/trex03_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/veris.c_NetBSD-libc__loop_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/veris.c_OpenSER__cases1_stripFullBoth_arr_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/veris.c_sendmail__tTflag_arr_one_loop_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/verisec_NetBSD-libc__loop_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/verisec_OpenSER__cases1_stripFullBoth_arr_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/verisec_sendmail__tTflag_arr_one_loop_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/vogal_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/vogal_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/while_infinite_loop_1_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/while_infinite_loop_2_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/while_infinite_loop_3_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/while_infinite_loop_4_false.c +../data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark1.c +../data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark10.c +../data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark2.c +../data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark3.c +../data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark4.c +../data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark5.c +../data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark6.c +../data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark7.c +../data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark8.c +../data/benchmarks/LinearArbitrary-SeaHorn/dillig_tacas13/benchmark9.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/apache-escape-absolute.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/apache-get-tag.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/bind_expands_vars2.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/bound.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/down.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/fragtest_simple.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/gulwani_cegar1.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/gulwani_cegar2.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/gulwani_fig1a.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/half.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/heapsort.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/heapsort1.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/heapsort2.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/heapsort3.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/id_build.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/id_trans.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/ken-imp.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/large_const.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/MADWiFi-encode_ie_ok.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/mergesort.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/nest-if.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/nest-if1.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/nest-if2.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/nest-if3.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/nest-if4.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/nest-if5.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/nest-if6.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/nest-if7.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/nest-if8.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/nest-len.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/nested.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/nested1.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/nested2.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/nested3.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/nested4.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/nested5.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/nested6.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/nested7.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/nested8.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/nested9.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/NetBSD_glob3_iny.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/NetBSD_g_Ctoc.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/NetBSD_loop.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/NetBSD_loop_int.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/puzzle1.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/quicksort.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/rajamani_1.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/sendmail-close-angle.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/sendmail-mime-fromqp.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/sendmail-mime7to8_arr_three_chars_no_test_ok.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq-len.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq-proc.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq-sim.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq-z3.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq2.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq3.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/seq4.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/simple.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/simple_if.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/simple_nest.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/sort_instrumented.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/SpamAssassin-loop.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/SpamAssassin-loop_ok.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/spin.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/spin1.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/split.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/string_concat-noarr.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/svd-some-loop.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/svd1.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/svd2.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/svd3.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/svd4.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/test.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/up-nd.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/up-nested.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/up.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/up2.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/up3.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/up4.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/up5.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/03_while_unsafe.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/barthe2_merged_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/barthe_merged_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/barthe_merged_unsafe.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/break_merged_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/break_single_merged_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/bug15_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/cube_square_unsafe.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/fib_merged_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/loop2_merged_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/loop3_merged_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/loop4_merged_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/loop5_merged_unsafe.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/loop_merged_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/loop_unswitching_merged_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/nested-while_merged_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/nested-while_merged_unsafe.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/simple-loop_merged_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/square_twice_merged_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/upcount_merged_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/while_after_while_if_merged_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/apache-escape-absolute_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/apache-get-tag_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/down_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/fragtest_simple_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/half_2_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/heapsort_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/id_build_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/id_trans_false-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/large_const_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/MADWiFi-encode_ie_ok_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/nest-if3_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/nested6_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/nested9_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/NetBSD_loop_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/sendmail-close-angle_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/seq_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/SpamAssassin-loop_true-unreach-call_false-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/string_concat-noarr_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/up_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/afnp2014_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/bhmr2007_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/cggmp2005b_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/cggmp2005_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/cggmp2005_variant_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/css2003_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/ddlm2013_true-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gcnr2008_false-unreach-call_false-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gj2007b_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gj2007_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gr2006_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gsv2008_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/hhk2008_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/jm2006_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/jm2006_variant_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/count_by_1_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/count_by_1_variant_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/count_by_2_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/count_by_k_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/count_by_nondet_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/half_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/nested_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/count_up_down_false-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/count_up_down_true-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/for_bounded_loop1_false-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/for_infinite_loop_1_true-unreach-call_false-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/for_infinite_loop_2_true-unreach-call_false-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum01_bug02_false-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum01_bug02_sum01_bug02_base.case_false-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum01_false-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum01_true-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum03_false-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum03_true-unreach-call_false-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum04_false-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum04_true-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/terminator_02_false-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/terminator_02_true-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/terminator_03_false-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/terminator_03_true-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex01_false-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex01_true-unreach-call.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex02_false-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex02_true-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex03_false-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex03_true-unreach-call.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex04_true-unreach-call_false-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/while_infinite_loop_1_true-unreach-call_false-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/while_infinite_loop_2_true-unreach-call_false-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/while_infinite_loop_3_true-unreach-call_false-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/while_infinite_loop_4_false-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/01.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/02.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/03.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/04.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/05.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/06.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/07.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/08.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/09.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/10.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/11.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/12.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/13.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/14.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/15.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/16.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/17.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/18.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/19.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/20.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/21.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/22.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/23.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/24.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/25.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/26.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/27.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/28.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/29.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/30.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/31.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/32.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/33.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/34.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/35.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/36.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/37.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/38.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/39.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/40.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/41.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/42.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/43.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/44.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/45.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/46.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/add.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/afnp2014_true-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar1.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar1.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar2.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar2.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cggmp2005_true-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/countud.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d01.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d03_not_from_hola.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d05.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d07_not_from_hola.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d12.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d15.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d17.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d19.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d24.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d25.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/d28.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/dec.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/decn.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/dtuc.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/dutc.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex14.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex14n.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex14n.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex23.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex23.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex7.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex7n.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig1.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig1.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig3.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig3.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig9.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig9.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form22.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form25.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form27.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/inc.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/incn.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/incn.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/loops.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/n_c11.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/n_c11n.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/n_c11n.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01_safe.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03_safe.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04n.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04n.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/tacas06.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/tacas06.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex01.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex01.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03_safe.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/veris.c_sendmail__tTflag_arr_one_loop_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/vsend.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/vsend.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/w1.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/w2.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Ackermann01_true-unreach-call_true-no-overflow.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Ackermann02_false-unreach-call_true-no-overflow_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Ackermann03_true-unreach-call_true-no-overflow.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Ackermann04_true-unreach-call_true-no-overflow.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Addition01_true-unreach-call_true-no-overflow_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Addition02WithOverflowBug_false-no-overflow.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Addition02_false-unreach-call_true-no-overflow_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Addition03_false-no-overflow.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Addition03_true-unreach-call_true-no-overflow_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/BallRajamani-SPIN2000-Fig1_false-unreach-call_true-no-overflow_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/EvenOdd01_true-unreach-call_true-no-overflow_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/EvenOdd03WithOverflowBug_false-no-overflow.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/EvenOdd03_false-unreach-call_true-no-overflow_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Fibonacci01_true-unreach-call_true-no-overflow.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Fibonacci02_true-unreach-call_true-no-overflow_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Fibonacci03_true-unreach-call_true-no-overflow_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Fibonacci04_false-unreach-call_true-no-overflow_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Fibonacci05_false-unreach-call_true-no-overflow_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/gcd01_true-unreach-call_true-no-overflow_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/gcd02_true-unreach-call_true-no-overflow_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/McCarthy91_false-unreach-call_true-no-overflow_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/McCarthy91_true-unreach-call_true-no-overflow_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/MultCommutative_true-unreach-call_true-no-overflow_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/Primes_true-unreach-call_true-no-overflow_false-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/recHanoi01_true-unreach-call_true-no-overflow_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/recHanoi02_true-unreach-call_true-no-overflow_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive/recHanoi03_true-unreach-call_true-no-overflow_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/afterrec_2calls_false-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/afterrec_2calls_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/afterrec_false-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/afterrec_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_10_false-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_10_true-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_15_false-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_15_true-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_20_false-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_20_true-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_25_false-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_25_true-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_10_false-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_10_true-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_15_false-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_15_true-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_20_false-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_20_true-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_25_false-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_25_true-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_2_false-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_2_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_4_false-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_4_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_5_false-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_5_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_6_false-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_6_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_8_false-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_2calls_8_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_5_false-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_5_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_7_false-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/fibo_7_true-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id2_b2_o3_true-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id2_b3_o2_false-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id2_b3_o5_true-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id2_b5_o10_true-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id2_i5_o5_false-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id2_i5_o5_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_b2_o3_true-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_b3_o2_false-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_b3_o5_true-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_b5_o10_true-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i10_o10_false-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i10_o10_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i15_o15_false-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i15_o15_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i20_o20_false-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i20_o20_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i25_o25_false-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i25_o25_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i5_o5_false-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_i5_o5_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_o1000_false-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_o100_false-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_o10_false-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_o200_false-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_o20_false-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/id_o3_false-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_10x0_false-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_10x0_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_15x0_false-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_15x0_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_20x0_false-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_20x0_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_25x0_false-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_25x0_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_2x3_false-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_2x3_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_non_eq_false-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_non_eq_true-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_non_false-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/recursions/recursive-simple/sum_non_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/cav.c +../data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/ex1.c +../data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/ex2.c +../data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/heapsort1.c +../data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/popl.c +../data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/spam1.c +../data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/svd1.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-CPA-example_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-disj_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-forward_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-interpolants_needed-pepm-proc.c_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-pepm-scp-example1.c_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-pepm-scp-example2.c_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-re1-LOPSTR-pepm-proc.c_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-selection_sort-pepm-proc.c_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-singleloop2-pepm-proc.c_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-paper-prog_d-pepm-proc.c_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-test1-unsafe_VeriMAP_false.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-test1_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-test3-unsafe_VeriMAP_false.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-test3_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs12_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs13_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs14_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs15_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs1_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs2_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs3_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs6_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs7_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs8_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs9_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc1-unsafe_VeriMAP_false.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc11_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc12-unsafe_VeriMAP_false.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc13-unsafe_VeriMAP_false.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc14_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc1_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc3_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testfunc9-unsafe_VeriMAP_false.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop10_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop11_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop12_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop13_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop14_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop15_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop16_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop17_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop1_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop20_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop21_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop22_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop27-unsafe_VeriMAP_false.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop28-unsafe_VeriMAP_false.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop29_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop2_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop3-unsafe_VeriMAP_false.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop4_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop5-unsafe_VeriMAP_false.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop6_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop7_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop8-unsafe_VeriMAP_false.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop9_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp1-unsafe_VeriMAP_false.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp10_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp11_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp12_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp13-unsafe_VeriMAP_false.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp14_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp15_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp16_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp17_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp2_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp3_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp4_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp5_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp6_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp7_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp8_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testwp9_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd1err_VeriMAP_false.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd1_VeriMAP_false.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd2err_VeriMAP_false.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd2_VeriMAP_false.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd3err_VeriMAP_false.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd3_VeriMAP_false.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/WHALE-ddd4err_VeriMAP_false.c +../data/benchmarks/sv-benchmarks/loop-acceleration/array3.c +../data/benchmarks/sv-benchmarks/loop-acceleration/array_1-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/array_1-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/array_2-1-simple.c +../data/benchmarks/sv-benchmarks/loop-acceleration/array_2-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/array_2-2-simple.c +../data/benchmarks/sv-benchmarks/loop-acceleration/array_2-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/array_3-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/array_3-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/array_4.c +../data/benchmarks/sv-benchmarks/loop-acceleration/const_1-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/const_1-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/const_1-2_abstracted.c +../data/benchmarks/sv-benchmarks/loop-acceleration/diamond_1-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/diamond_1-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/diamond_2-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/functions_1-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/functions_1-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/multivar_1-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/multivar_1-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/nested_1-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/nested_1-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/overflow_1-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/phases_1-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/phases_1-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/phases_2-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/phases_2-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/simple_1-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/simple_1-1_abstracted.c +../data/benchmarks/sv-benchmarks/loop-acceleration/simple_1-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/simple_1-2_abstracted.c +../data/benchmarks/sv-benchmarks/loop-acceleration/simple_2-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/simple_2-1_abstracted.c +../data/benchmarks/sv-benchmarks/loop-acceleration/simple_2-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/simple_3-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/simple_3-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/simple_4-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/simple_4-1_abstracted.c +../data/benchmarks/sv-benchmarks/loop-acceleration/simple_4-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/simple_4-2_abstracted.c +../data/benchmarks/sv-benchmarks/loop-acceleration/underapprox_1-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/underapprox_1-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/underapprox_2-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/underapprox_2-2.c +../data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_1-1.c +../data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_1-2.c +../data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_2.c +../data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_3.c +../data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_4.c +../data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_4.i.v+lhb-reducer.c +../data/benchmarks/sv-benchmarks/loop-crafted/simple_array_index_value_4.i.v+nlh-reducer.c +../data/benchmarks/sv-benchmarks/loop-crafted/simple_vardep_1.c +../data/benchmarks/sv-benchmarks/loop-crafted/simple_vardep_2.c +../data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop1-1.c +../data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop1-2.c +../data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop2-1.c +../data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop2-2.c +../data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop3.c +../data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop4.c +../data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop5.c +../data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_1.c +../data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_2.c +../data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_3.c +../data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_4.c +../data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_4.c.v+cfa-reducer.c +../data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_4.c.v+lh-reducer.c +../data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_4.c.v+lhb-reducer.c +../data/benchmarks/sv-benchmarks/loop-industry-pattern/aiob_4.c.v+nlh-reducer.c +../data/benchmarks/sv-benchmarks/loop-industry-pattern/mod3.c +../data/benchmarks/sv-benchmarks/loop-industry-pattern/mod3.c.v+cfa-reducer.c +../data/benchmarks/sv-benchmarks/loop-industry-pattern/mod3.c.v+lhb-reducer.c +../data/benchmarks/sv-benchmarks/loop-industry-pattern/mod3.c.v+sep-reducer.c +../data/benchmarks/sv-benchmarks/loop-industry-pattern/nested-3.c +../data/benchmarks/sv-benchmarks/loop-industry-pattern/ofuf_1.c +../data/benchmarks/sv-benchmarks/loop-industry-pattern/ofuf_2.c +../data/benchmarks/sv-benchmarks/loop-industry-pattern/ofuf_3.c +../data/benchmarks/sv-benchmarks/loop-industry-pattern/ofuf_4.c +../data/benchmarks/sv-benchmarks/loop-industry-pattern/ofuf_5.c +../data/benchmarks/sv-benchmarks/loop-invariants/bin-suffix-5.c +../data/benchmarks/sv-benchmarks/loop-invariants/const.c +../data/benchmarks/sv-benchmarks/loop-invariants/eq1.c +../data/benchmarks/sv-benchmarks/loop-invariants/eq2.c +../data/benchmarks/sv-benchmarks/loop-invariants/even.c +../data/benchmarks/sv-benchmarks/loop-invariants/linear-inequality-inv-a.c +../data/benchmarks/sv-benchmarks/loop-invariants/linear-inequality-inv-b.c +../data/benchmarks/sv-benchmarks/loop-invariants/mod4.c +../data/benchmarks/sv-benchmarks/loop-invariants/odd.c +../data/benchmarks/sv-benchmarks/loop-invgen/apache-escape-absolute.c +../data/benchmarks/sv-benchmarks/loop-invgen/apache-escape-absolute.i.v+cfa-reducer.c +../data/benchmarks/sv-benchmarks/loop-invgen/apache-get-tag.c +../data/benchmarks/sv-benchmarks/loop-invgen/apache-get-tag.i.p+lhb-reducer.c +../data/benchmarks/sv-benchmarks/loop-invgen/apache-get-tag.i.p+nlh-reducer.c +../data/benchmarks/sv-benchmarks/loop-invgen/apache-get-tag.i.p+sep-reducer.c +../data/benchmarks/sv-benchmarks/loop-invgen/apache-get-tag.i.v+lhb-reducer.c +../data/benchmarks/sv-benchmarks/loop-invgen/apache-get-tag.i.v+nlh-reducer.c +../data/benchmarks/sv-benchmarks/loop-invgen/down.c +../data/benchmarks/sv-benchmarks/loop-invgen/fragtest_simple.c +../data/benchmarks/sv-benchmarks/loop-invgen/half_2.c +../data/benchmarks/sv-benchmarks/loop-invgen/heapsort.c +../data/benchmarks/sv-benchmarks/loop-invgen/id_build.c +../data/benchmarks/sv-benchmarks/loop-invgen/id_build.i.p+nlh-reducer.c +../data/benchmarks/sv-benchmarks/loop-invgen/id_build.i.p+sep-reducer.c +../data/benchmarks/sv-benchmarks/loop-invgen/id_build.i.v+lhb-reducer.c +../data/benchmarks/sv-benchmarks/loop-invgen/id_trans.c +../data/benchmarks/sv-benchmarks/loop-invgen/large_const.c +../data/benchmarks/sv-benchmarks/loop-invgen/MADWiFi-encode_ie_ok.c +../data/benchmarks/sv-benchmarks/loop-invgen/nest-if3.c +../data/benchmarks/sv-benchmarks/loop-invgen/nested6.c +../data/benchmarks/sv-benchmarks/loop-invgen/nested9.c +../data/benchmarks/sv-benchmarks/loop-invgen/NetBSD_loop.c +../data/benchmarks/sv-benchmarks/loop-invgen/sendmail-close-angle.c +../data/benchmarks/sv-benchmarks/loop-invgen/seq-3.c +../data/benchmarks/sv-benchmarks/loop-invgen/SpamAssassin-loop.c +../data/benchmarks/sv-benchmarks/loop-invgen/SpamAssassin-loop.i.v+cfa-reducer.c +../data/benchmarks/sv-benchmarks/loop-invgen/string_concat-noarr.c +../data/benchmarks/sv-benchmarks/loop-invgen/up.c +../data/benchmarks/sv-benchmarks/loop-lit/afnp2014.c +../data/benchmarks/sv-benchmarks/loop-lit/bhmr2007.c +../data/benchmarks/sv-benchmarks/loop-lit/cggmp2005.c +../data/benchmarks/sv-benchmarks/loop-lit/cggmp2005b.c +../data/benchmarks/sv-benchmarks/loop-lit/cggmp2005_variant.c +../data/benchmarks/sv-benchmarks/loop-lit/css2003.c +../data/benchmarks/sv-benchmarks/loop-lit/ddlm2013.c +../data/benchmarks/sv-benchmarks/loop-lit/gcnr2008.c +../data/benchmarks/sv-benchmarks/loop-lit/gj2007.c +../data/benchmarks/sv-benchmarks/loop-lit/gj2007.c.i.p+lhb-reducer.c +../data/benchmarks/sv-benchmarks/loop-lit/gj2007.c.i.p+nlh-reducer.c +../data/benchmarks/sv-benchmarks/loop-lit/gj2007b.c +../data/benchmarks/sv-benchmarks/loop-lit/gr2006.c +../data/benchmarks/sv-benchmarks/loop-lit/gsv2008.c +../data/benchmarks/sv-benchmarks/loop-lit/gsv2008.c.i.p+cfa-reducer.c +../data/benchmarks/sv-benchmarks/loop-lit/gsv2008.c.i.v+cfa-reducer.c +../data/benchmarks/sv-benchmarks/loop-lit/gsv2008.c.i.v+lhb-reducer.c +../data/benchmarks/sv-benchmarks/loop-lit/hhk2008.c +../data/benchmarks/sv-benchmarks/loop-lit/jm2006.c +../data/benchmarks/sv-benchmarks/loop-lit/jm2006.c.i.v+cfa-reducer.c +../data/benchmarks/sv-benchmarks/loop-lit/jm2006_variant.c +../data/benchmarks/sv-benchmarks/loop-lit/mcmillan2006.c +../data/benchmarks/sv-benchmarks/loop-new/count_by_1.c +../data/benchmarks/sv-benchmarks/loop-new/count_by_1_variant.c +../data/benchmarks/sv-benchmarks/loop-new/count_by_2.c +../data/benchmarks/sv-benchmarks/loop-new/count_by_k.c +../data/benchmarks/sv-benchmarks/loop-new/count_by_nondet.c +../data/benchmarks/sv-benchmarks/loop-new/gauss_sum.c +../data/benchmarks/sv-benchmarks/loop-new/gauss_sum.i.p+cfa-reducer.c +../data/benchmarks/sv-benchmarks/loop-new/gauss_sum.i.p+lhb-reducer.c +../data/benchmarks/sv-benchmarks/loop-new/gauss_sum.i.v+cfa-reducer.c +../data/benchmarks/sv-benchmarks/loop-new/half.c +../data/benchmarks/sv-benchmarks/loop-new/nested-1.c +../data/benchmarks/sv-benchmarks/loop-simple/deep-nested.c +../data/benchmarks/sv-benchmarks/loop-simple/nested_1.c +../data/benchmarks/sv-benchmarks/loop-simple/nested_1b.c +../data/benchmarks/sv-benchmarks/loop-simple/nested_2.c +../data/benchmarks/sv-benchmarks/loop-simple/nested_3.c +../data/benchmarks/sv-benchmarks/loop-simple/nested_4.c +../data/benchmarks/sv-benchmarks/loop-simple/nested_5.c +../data/benchmarks/sv-benchmarks/loop-simple/nested_6.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark01_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark02_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark02_linear_abstracted.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark03_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark04_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark05_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark06_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark07_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark08_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark09_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark10_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark11_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark11_linear_abstracted.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark12_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark13_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark14_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark15_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark16_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark17_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark18_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark19_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark20_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark21_disjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark22_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark23_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark24_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark25_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark25_linear_abstracted.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark26_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark26_linear_abstracted.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark27_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark28_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark29_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark30_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark31_disjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark32_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark33_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark34_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark35_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark36_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark37_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark38_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark39_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark40_polynomial.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark41_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark42_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark43_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark43_conjunctive_abstracted.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark44_disjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark45_disjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark46_disjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark47_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark48_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark49_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark50_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark51_polynomial.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark52_polynomial.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark53_polynomial.c +../data/benchmarks/sv-benchmarks/loops/array-1.c +../data/benchmarks/sv-benchmarks/loops/array-2.c +../data/benchmarks/sv-benchmarks/loops/bubble_sort-1.c +../data/benchmarks/sv-benchmarks/loops/bubble_sort-2.c +../data/benchmarks/sv-benchmarks/loops/compact.c +../data/benchmarks/sv-benchmarks/loops/count_up_down-1.c +../data/benchmarks/sv-benchmarks/loops/count_up_down-2.c +../data/benchmarks/sv-benchmarks/loops/eureka_01-1.c +../data/benchmarks/sv-benchmarks/loops/eureka_01-2.c +../data/benchmarks/sv-benchmarks/loops/eureka_05.c +../data/benchmarks/sv-benchmarks/loops/for_bounded_loop1.c +../data/benchmarks/sv-benchmarks/loops/for_infinite_loop_1.c +../data/benchmarks/sv-benchmarks/loops/for_infinite_loop_2.c +../data/benchmarks/sv-benchmarks/loops/heavy-1.c +../data/benchmarks/sv-benchmarks/loops/heavy-2.c +../data/benchmarks/sv-benchmarks/loops/insertion_sort-1-2.c +../data/benchmarks/sv-benchmarks/loops/insertion_sort-1.c +../data/benchmarks/sv-benchmarks/loops/insertion_sort-2-2.c +../data/benchmarks/sv-benchmarks/loops/insertion_sort-2.c +../data/benchmarks/sv-benchmarks/loops/invert_string-1.c +../data/benchmarks/sv-benchmarks/loops/invert_string-2.c +../data/benchmarks/sv-benchmarks/loops/invert_string-3.c +../data/benchmarks/sv-benchmarks/loops/linear_sea.ch.c +../data/benchmarks/sv-benchmarks/loops/linear_search.c +../data/benchmarks/sv-benchmarks/loops/lu.cmp.c +../data/benchmarks/sv-benchmarks/loops/ludcmp.c +../data/benchmarks/sv-benchmarks/loops/matrix-1.c +../data/benchmarks/sv-benchmarks/loops/matrix-2-2.c +../data/benchmarks/sv-benchmarks/loops/matrix-2.c +../data/benchmarks/sv-benchmarks/loops/n.c11.c +../data/benchmarks/sv-benchmarks/loops/n.c24.c +../data/benchmarks/sv-benchmarks/loops/n.c40.c +../data/benchmarks/sv-benchmarks/loops/nec11.c +../data/benchmarks/sv-benchmarks/loops/nec20.c +../data/benchmarks/sv-benchmarks/loops/nec40.c +../data/benchmarks/sv-benchmarks/loops/string-1.c +../data/benchmarks/sv-benchmarks/loops/string-2.c +../data/benchmarks/sv-benchmarks/loops/sum01-1.c +../data/benchmarks/sv-benchmarks/loops/sum01-2.c +../data/benchmarks/sv-benchmarks/loops/sum01_bug02.c +../data/benchmarks/sv-benchmarks/loops/sum01_bug02_sum01_bug02_base.case.c +../data/benchmarks/sv-benchmarks/loops/sum03-1.c +../data/benchmarks/sv-benchmarks/loops/sum03-2.c +../data/benchmarks/sv-benchmarks/loops/sum04-1.c +../data/benchmarks/sv-benchmarks/loops/sum04-2.c +../data/benchmarks/sv-benchmarks/loops/sum_array-1.c +../data/benchmarks/sv-benchmarks/loops/sum_array-2-1.c +../data/benchmarks/sv-benchmarks/loops/sum_array-2-2.c +../data/benchmarks/sv-benchmarks/loops/sum_array-2.c +../data/benchmarks/sv-benchmarks/loops/terminator_01.c +../data/benchmarks/sv-benchmarks/loops/terminator_02-1.c +../data/benchmarks/sv-benchmarks/loops/terminator_02-2.c +../data/benchmarks/sv-benchmarks/loops/terminator_02-2_abstracted.c +../data/benchmarks/sv-benchmarks/loops/terminator_03-1.c +../data/benchmarks/sv-benchmarks/loops/terminator_03-2.c +../data/benchmarks/sv-benchmarks/loops/terminator_03-2_abstracted.c +../data/benchmarks/sv-benchmarks/loops/trex01-1.c +../data/benchmarks/sv-benchmarks/loops/trex01-2.c +../data/benchmarks/sv-benchmarks/loops/trex02-1.c +../data/benchmarks/sv-benchmarks/loops/trex02-2.c +../data/benchmarks/sv-benchmarks/loops/trex03-1.c +../data/benchmarks/sv-benchmarks/loops/trex03-2.c +../data/benchmarks/sv-benchmarks/loops/trex03-2_abstracted.c +../data/benchmarks/sv-benchmarks/loops/trex04.c +../data/benchmarks/sv-benchmarks/loops/trex04_abstracted.c +../data/benchmarks/sv-benchmarks/loops/veris.c_NetBSD-libc_loop.c +../data/benchmarks/sv-benchmarks/loops/veris.c_OpenSER_cases1_stripFullBoth_arr.c +../data/benchmarks/sv-benchmarks/loops/veris.c_sendmail_tTflag_arr_one_loop.c +../data/benchmarks/sv-benchmarks/loops/verisec_NetBSD-libc_loop.c +../data/benchmarks/sv-benchmarks/loops/verisec_OpenSER_cases1_stripFullBoth_arr.c +../data/benchmarks/sv-benchmarks/loops/vogal-1.c +../data/benchmarks/sv-benchmarks/loops/vogal-2.c +../data/benchmarks/sv-benchmarks/loops/while_infinite_loop_1.c +../data/benchmarks/sv-benchmarks/loops/while_infinite_loop_2.c +../data/benchmarks/sv-benchmarks/loops/while_infinite_loop_3.c +../data/benchmarks/sv-benchmarks/loops/while_infinite_loop_4.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/discover_list.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/iftelse.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/in-de20.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/in-de31.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/in-de32.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/in-de41.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/in-de42.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/in-de51.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/in-de52.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/in-de61.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/in-de62.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/loopv1.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/loopv2.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/loopv3.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_1.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_10.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_11.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_12.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_13.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_14.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_3.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_6.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_7.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_8.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_9.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/Mono1_1-1.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/Mono1_1-2.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/Mono3_1.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/Mono4_1.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/Mono5_1.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/Mono6_1.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/nested3-1.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/nested3-1_abstracted.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/nested3-2.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/nested3-2_abstracted.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/nested5-1.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/nested5-2.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/nested_delay_nd.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/nested_delay_notd2.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/net_reset.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sumt2.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sumt3.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sumt4.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sumt5.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sumt6.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sumt7.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sumt8.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sumt9.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sum_by_3.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sum_by_3_abstracted.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sum_natnum.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/theatreSquare.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/vnew1.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/vnew2.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/watermelon.c +../data/benchmarks/code2inv/1.c +../data/benchmarks/code2inv/2.c +../data/benchmarks/code2inv/3.c +../data/benchmarks/code2inv/4.c +../data/benchmarks/code2inv/5.c +../data/benchmarks/code2inv/6.c +../data/benchmarks/code2inv/7.c +../data/benchmarks/code2inv/8.c +../data/benchmarks/code2inv/9.c +../data/benchmarks/code2inv/10.c +../data/benchmarks/code2inv/11.c +../data/benchmarks/code2inv/12.c +../data/benchmarks/code2inv/13.c +../data/benchmarks/code2inv/14.c +../data/benchmarks/code2inv/15.c +../data/benchmarks/code2inv/16.c +../data/benchmarks/code2inv/17.c +../data/benchmarks/code2inv/18.c +../data/benchmarks/code2inv/19.c +../data/benchmarks/code2inv/20.c +../data/benchmarks/code2inv/21.c +../data/benchmarks/code2inv/22.c +../data/benchmarks/code2inv/23.c +../data/benchmarks/code2inv/24.c +../data/benchmarks/code2inv/25.c +../data/benchmarks/code2inv/26.c +../data/benchmarks/code2inv/27.c +../data/benchmarks/code2inv/28.c +../data/benchmarks/code2inv/29.c +../data/benchmarks/code2inv/30.c +../data/benchmarks/code2inv/31.c +../data/benchmarks/code2inv/32.c +../data/benchmarks/code2inv/33.c +../data/benchmarks/code2inv/34.c +../data/benchmarks/code2inv/35.c +../data/benchmarks/code2inv/36.c +../data/benchmarks/code2inv/37.c +../data/benchmarks/code2inv/38.c +../data/benchmarks/code2inv/39.c +../data/benchmarks/code2inv/40.c +../data/benchmarks/code2inv/41.c +../data/benchmarks/code2inv/42.c +../data/benchmarks/code2inv/43.c +../data/benchmarks/code2inv/44.c +../data/benchmarks/code2inv/45.c +../data/benchmarks/code2inv/46.c +../data/benchmarks/code2inv/47.c +../data/benchmarks/code2inv/48.c +../data/benchmarks/code2inv/49.c +../data/benchmarks/code2inv/50.c +../data/benchmarks/code2inv/51.c +../data/benchmarks/code2inv/52.c +../data/benchmarks/code2inv/53.c +../data/benchmarks/code2inv/54.c +../data/benchmarks/code2inv/55.c +../data/benchmarks/code2inv/56.c +../data/benchmarks/code2inv/57.c +../data/benchmarks/code2inv/58.c +../data/benchmarks/code2inv/59.c +../data/benchmarks/code2inv/60.c +../data/benchmarks/code2inv/61.c +../data/benchmarks/code2inv/62.c +../data/benchmarks/code2inv/63.c +../data/benchmarks/code2inv/64.c +../data/benchmarks/code2inv/65.c +../data/benchmarks/code2inv/66.c +../data/benchmarks/code2inv/67.c +../data/benchmarks/code2inv/68.c +../data/benchmarks/code2inv/69.c +../data/benchmarks/code2inv/70.c +../data/benchmarks/code2inv/71.c +../data/benchmarks/code2inv/72.c +../data/benchmarks/code2inv/73.c +../data/benchmarks/code2inv/74.c +../data/benchmarks/code2inv/75.c +../data/benchmarks/code2inv/76.c +../data/benchmarks/code2inv/77.c +../data/benchmarks/code2inv/78.c +../data/benchmarks/code2inv/79.c +../data/benchmarks/code2inv/80.c +../data/benchmarks/code2inv/81.c +../data/benchmarks/code2inv/82.c +../data/benchmarks/code2inv/83.c +../data/benchmarks/code2inv/84.c +../data/benchmarks/code2inv/85.c +../data/benchmarks/code2inv/86.c +../data/benchmarks/code2inv/87.c +../data/benchmarks/code2inv/88.c +../data/benchmarks/code2inv/89.c +../data/benchmarks/code2inv/90.c +../data/benchmarks/code2inv/91.c +../data/benchmarks/code2inv/92.c +../data/benchmarks/code2inv/93.c +../data/benchmarks/code2inv/94.c +../data/benchmarks/code2inv/95.c +../data/benchmarks/code2inv/96.c +../data/benchmarks/code2inv/97.c +../data/benchmarks/code2inv/98.c +../data/benchmarks/code2inv/99.c +../data/benchmarks/code2inv/100.c +../data/benchmarks/code2inv/101.c +../data/benchmarks/code2inv/102.c +../data/benchmarks/code2inv/103.c +../data/benchmarks/code2inv/104.c +../data/benchmarks/code2inv/105.c +../data/benchmarks/code2inv/106.c +../data/benchmarks/code2inv/107.c +../data/benchmarks/code2inv/108.c +../data/benchmarks/code2inv/109.c +../data/benchmarks/code2inv/110.c +../data/benchmarks/code2inv/111.c +../data/benchmarks/code2inv/112.c +../data/benchmarks/code2inv/113.c +../data/benchmarks/code2inv/114.c +../data/benchmarks/code2inv/115.c +../data/benchmarks/code2inv/116.c +../data/benchmarks/code2inv/117.c +../data/benchmarks/code2inv/118.c +../data/benchmarks/code2inv/119.c +../data/benchmarks/code2inv/120.c +../data/benchmarks/code2inv/121.c +../data/benchmarks/code2inv/122.c +../data/benchmarks/code2inv/123.c +../data/benchmarks/code2inv/124.c +../data/benchmarks/code2inv/125.c +../data/benchmarks/code2inv/126.c +../data/benchmarks/code2inv/127.c +../data/benchmarks/code2inv/128.c +../data/benchmarks/code2inv/129.c +../data/benchmarks/code2inv/130.c +../data/benchmarks/code2inv/131.c +../data/benchmarks/code2inv/132.c +../data/benchmarks/code2inv/133.c diff --git a/experiments/array_files.txt b/experiments/array_files.txt new file mode 100644 index 000000000..8cd104ed8 --- /dev/null +++ b/experiments/array_files.txt @@ -0,0 +1,169 @@ +../data/benchmarks/diffy_cav21_bench/standard_copy8_ground-1.c +../data/benchmarks/diffy_cav21_bench/sina5.c +../data/benchmarks/diffy_cav21_bench/eqn2.c +../data/benchmarks/diffy_cav21_bench/s1lif.c +../data/benchmarks/diffy_cav21_bench/ifeqn4.c +../data/benchmarks/diffy_cav21_bench/zero_sum_const2.c +../data/benchmarks/diffy_cav21_bench/standard_vector_difference_ground.c +../data/benchmarks/diffy_cav21_bench/standard_copy9_ground-2.c +../data/benchmarks/diffy_cav21_bench/zero_sum_const_m2.c +../data/benchmarks/diffy_cav21_bench/ss1.c +../data/benchmarks/diffy_cav21_bench/ncomp.c +../data/benchmarks/diffy_cav21_bench/nested-nli3.c +../data/benchmarks/diffy_cav21_bench/zero_sum_m5.c +../data/benchmarks/diffy_cav21_bench/standard_init6_ground-2.c +../data/benchmarks/diffy_cav21_bench/condss1.c +../data/benchmarks/diffy_cav21_bench/ifcomp.c +../data/benchmarks/diffy_cav21_bench/s2lif.c +../data/benchmarks/diffy_cav21_bench/s32if.c +../data/benchmarks/diffy_cav21_bench/condm.c +../data/benchmarks/diffy_cav21_bench/standard_init5_ground-1.c +../data/benchmarks/diffy_cav21_bench/standard_strcmp_ground.c +../data/benchmarks/diffy_cav21_bench/zero_sum_const_m6.c +../data/benchmarks/diffy_cav21_bench/s22if.c +../data/benchmarks/diffy_cav21_bench/standard_seq_init_ground.c +../data/benchmarks/diffy_cav21_bench/sina4.c +../data/benchmarks/diffy_cav21_bench/zero_sum_const_m3.c +../data/benchmarks/diffy_cav21_bench/nested-as3.c +../data/benchmarks/diffy_cav21_bench/condsc.c +../data/benchmarks/diffy_cav21_bench/s52if.c +../data/benchmarks/diffy_cav21_bench/nested-sna1.c +../data/benchmarks/diffy_cav21_bench/ss2.c +../data/benchmarks/diffy_cav21_bench/condn.c +../data/benchmarks/diffy_cav21_bench/modn.c +../data/benchmarks/diffy_cav21_bench/ifeqn1.c +../data/benchmarks/diffy_cav21_bench/s5lif.c +../data/benchmarks/diffy_cav21_bench/standard_copy3_ground-1.c +../data/benchmarks/diffy_cav21_bench/ms2.c +../data/benchmarks/diffy_cav21_bench/indp4.c +../data/benchmarks/diffy_cav21_bench/res1.c +../data/benchmarks/diffy_cav21_bench/pcomp.c +../data/benchmarks/diffy_cav21_bench/conds2.c +../data/benchmarks/diffy_cav21_bench/standard_init8_ground-2.c +../data/benchmarks/diffy_cav21_bench/nested-nlj2.c +../data/benchmarks/diffy_cav21_bench/s1if.c +../data/benchmarks/diffy_cav21_bench/indp1.c +../data/benchmarks/diffy_cav21_bench/standard_init3_ground-2.c +../data/benchmarks/diffy_cav21_bench/zero_sum_m4.c +../data/benchmarks/diffy_cav21_bench/nested-ss1.c +../data/benchmarks/diffy_cav21_bench/nested-sa1.c +../data/benchmarks/diffy_cav21_bench/condss3.c +../data/benchmarks/diffy_cav21_bench/indp5.c +../data/benchmarks/diffy_cav21_bench/s2if.c +../data/benchmarks/diffy_cav21_bench/modp.c +../data/benchmarks/diffy_cav21_bench/indp3.c +../data/benchmarks/diffy_cav21_bench/nested-nsna1.c +../data/benchmarks/diffy_cav21_bench/zero_sum_const4.c +../data/benchmarks/diffy_cav21_bench/brs4.c +../data/benchmarks/diffy_cav21_bench/sanfoundry_27_ground.c +../data/benchmarks/diffy_cav21_bench/conds.c +../data/benchmarks/diffy_cav21_bench/standard_maxInArray_ground.c +../data/benchmarks/diffy_cav21_bench/ss4.c +../data/benchmarks/diffy_cav21_bench/ss3.c +../data/benchmarks/diffy_cav21_bench/cond1.c +../data/benchmarks/diffy_cav21_bench/standard_copyInitSum_ground.c +../data/benchmarks/diffy_cav21_bench/standard_copyInit_ground.c +../data/benchmarks/diffy_cav21_bench/s4lif.c +../data/benchmarks/diffy_cav21_bench/nested-sum.c +../data/benchmarks/diffy_cav21_bench/res1o.c +../data/benchmarks/diffy_cav21_bench/standard_init2_ground-2.c +../data/benchmarks/diffy_cav21_bench/zero_sum_const_m4.c +../data/benchmarks/diffy_cav21_bench/zero_sum_const3.c +../data/benchmarks/diffy_cav21_bench/ifeqn2.c +../data/benchmarks/diffy_cav21_bench/standard_init9_ground-2.c +../data/benchmarks/diffy_cav21_bench/s12if.c +../data/benchmarks/diffy_cav21_bench/zero_sum1.c +../data/benchmarks/diffy_cav21_bench/eqn3.c +../data/benchmarks/diffy_cav21_bench/standard_copy4_ground-1.c +../data/benchmarks/diffy_cav21_bench/standard_copy5_ground-1.c +../data/benchmarks/diffy_cav21_bench/ifncomp.c +../data/benchmarks/diffy_cav21_bench/indp2.c +../data/benchmarks/diffy_cav21_bench/condss.c +../data/benchmarks/diffy_cav21_bench/zero_sum2.c +../data/benchmarks/diffy_cav21_bench/eqn5.c +../data/benchmarks/diffy_cav21_bench/zero_sum_m6.c +../data/benchmarks/diffy_cav21_bench/conda.c +../data/benchmarks/diffy_cav21_bench/ms5.c +../data/benchmarks/diffy_cav21_bench/sina2.c +../data/benchmarks/diffy_cav21_bench/ssina.c +../data/benchmarks/diffy_cav21_bench/s3if.c +../data/benchmarks/diffy_cav21_bench/nested-nlj1.c +../data/benchmarks/diffy_cav21_bench/cond2s2.c +../data/benchmarks/diffy_cav21_bench/zero_sum4.c +../data/benchmarks/diffy_cav21_bench/nsqm-if.c +../data/benchmarks/diffy_cav21_bench/ifeqn3.c +../data/benchmarks/diffy_cav21_bench/brs1.c +../data/benchmarks/diffy_cav21_bench/nsqm.c +../data/benchmarks/diffy_cav21_bench/s4if.c +../data/benchmarks/diffy_cav21_bench/zero_sum_m3.c +../data/benchmarks/diffy_cav21_bench/nested-sna2.c +../data/benchmarks/diffy_cav21_bench/nested-as1.c +../data/benchmarks/diffy_cav21_bench/nested-ss3.c +../data/benchmarks/diffy_cav21_bench/nested-nsna2.c +../data/benchmarks/diffy_cav21_bench/res2.c +../data/benchmarks/diffy_cav21_bench/s42if.c +../data/benchmarks/diffy_cav21_bench/brs5.c +../data/benchmarks/diffy_cav21_bench/brs3.c +../data/benchmarks/diffy_cav21_bench/ifeqn5.c +../data/benchmarks/diffy_cav21_bench/standard_init4_ground-2.c +../data/benchmarks/diffy_cav21_bench/s5if.c +../data/benchmarks/diffy_cav21_bench/res2o.c +../data/benchmarks/diffy_cav21_bench/zero_sum_const1.c +../data/benchmarks/diffy_cav21_bench/condg.c +../data/benchmarks/diffy_cav21_bench/standard_compareModified_ground.c +../data/benchmarks/diffy_cav21_bench/sina3.c +../data/benchmarks/diffy_cav21_bench/zero_sum_const_m5.c +../data/benchmarks/diffy_cav21_bench/cond2.c +../data/benchmarks/diffy_cav21_bench/standard_copy2_ground-2.c +../data/benchmarks/diffy_cav21_bench/standard_copyInitSum2_ground-2.c +../data/benchmarks/diffy_cav21_bench/ms1.c +../data/benchmarks/diffy_cav21_bench/standard_running-2.c +../data/benchmarks/diffy_cav21_bench/cond2s1.c +../data/benchmarks/diffy_cav21_bench/zero_sum_const5.c +../data/benchmarks/diffy_cav21_bench/s3lif.c +../data/benchmarks/diffy_cav21_bench/condnl1.c +../data/benchmarks/diffy_cav21_bench/standard_compare_ground.c +../data/benchmarks/diffy_cav21_bench/brs2.c +../data/benchmarks/diffy_cav21_bench/mods.c +../data/benchmarks/diffy_cav21_bench/nested-unb1.c +../data/benchmarks/diffy_cav21_bench/condi.c +../data/benchmarks/diffy_cav21_bench/sqm.c +../data/benchmarks/diffy_cav21_bench/standard_copyInitSum3_ground.c +../data/benchmarks/diffy_cav21_bench/zero_sum3.c +../data/benchmarks/diffy_cav21_bench/standard_copy6_ground-2.c +../data/benchmarks/diffy_cav21_bench/nested-nli2.c +../data/benchmarks/diffy_cav21_bench/sina1.c +../data/benchmarks/diffy_cav21_bench/nested-unb2.c +../data/benchmarks/diffy_cav21_bench/standard_copy7_ground-2.c +../data/benchmarks/diffy_cav21_bench/nested-nli1.c +../data/benchmarks/diffy_cav21_bench/nested-ss2.c +../data/benchmarks/diffy_cav21_bench/nested-sna3.c +../data/benchmarks/diffy_cav21_bench/condss2.c +../data/benchmarks/diffy_cav21_bench/standard_init1_ground-2.c +../data/benchmarks/diffy_cav21_bench/zero_sum_m2.c +../data/benchmarks/diffy_cav21_bench/nested-unb3.c +../data/benchmarks/diffy_cav21_bench/nested-nsna3.c +../data/benchmarks/diffy_cav21_bench/standard_init7_ground-2.c +../data/benchmarks/diffy_cav21_bench/nested-as2.c +../data/benchmarks/diffy_cav21_bench/ms3.c +../data/benchmarks/diffy_cav21_bench/sqm-if.c +../data/benchmarks/diffy_cav21_bench/ms4.c +../data/benchmarks/diffy_cav21_bench/eqn1.c +../data/benchmarks/diffy_cav21_bench/eqn4.c +../data/benchmarks/diffy_cav21_bench/standard_password_ground.c +../data/benchmarks/diffy_cav21_bench/zero_sum5.c +../data/benchmarks/diffy_cav21_bench/standard_copy1_ground-1.c +../data/benchmarks/diffy_cav21_bench/standard_minInArray_ground-2.c +../data/benchmarks/diffy_cav21_bench/nested-nlj3.c +../data/benchmarks/dillig/safe/1.c +../data/benchmarks/dillig/safe/2.c +../data/benchmarks/dillig/safe/3.c +../data/benchmarks/dillig/safe/5.c +../data/benchmarks/dillig/safe/8.c +../data/benchmarks/dillig/safe/9.c +../data/benchmarks/dillig/safe/10.c +../data/benchmarks/dillig/safe/12.c +../data/benchmarks/dillig/safe/21.c +../data/benchmarks/dillig/safe/22.c +../data/benchmarks/dillig/safe/23.c +../data/benchmarks/dillig/safe/24.c \ No newline at end of file diff --git a/experiments/arrays.txt b/experiments/arrays.txt new file mode 100644 index 000000000..8cd104ed8 --- /dev/null +++ b/experiments/arrays.txt @@ -0,0 +1,169 @@ +../data/benchmarks/diffy_cav21_bench/standard_copy8_ground-1.c +../data/benchmarks/diffy_cav21_bench/sina5.c +../data/benchmarks/diffy_cav21_bench/eqn2.c +../data/benchmarks/diffy_cav21_bench/s1lif.c +../data/benchmarks/diffy_cav21_bench/ifeqn4.c +../data/benchmarks/diffy_cav21_bench/zero_sum_const2.c +../data/benchmarks/diffy_cav21_bench/standard_vector_difference_ground.c +../data/benchmarks/diffy_cav21_bench/standard_copy9_ground-2.c +../data/benchmarks/diffy_cav21_bench/zero_sum_const_m2.c +../data/benchmarks/diffy_cav21_bench/ss1.c +../data/benchmarks/diffy_cav21_bench/ncomp.c +../data/benchmarks/diffy_cav21_bench/nested-nli3.c +../data/benchmarks/diffy_cav21_bench/zero_sum_m5.c +../data/benchmarks/diffy_cav21_bench/standard_init6_ground-2.c +../data/benchmarks/diffy_cav21_bench/condss1.c +../data/benchmarks/diffy_cav21_bench/ifcomp.c +../data/benchmarks/diffy_cav21_bench/s2lif.c +../data/benchmarks/diffy_cav21_bench/s32if.c +../data/benchmarks/diffy_cav21_bench/condm.c +../data/benchmarks/diffy_cav21_bench/standard_init5_ground-1.c +../data/benchmarks/diffy_cav21_bench/standard_strcmp_ground.c +../data/benchmarks/diffy_cav21_bench/zero_sum_const_m6.c +../data/benchmarks/diffy_cav21_bench/s22if.c +../data/benchmarks/diffy_cav21_bench/standard_seq_init_ground.c +../data/benchmarks/diffy_cav21_bench/sina4.c +../data/benchmarks/diffy_cav21_bench/zero_sum_const_m3.c +../data/benchmarks/diffy_cav21_bench/nested-as3.c +../data/benchmarks/diffy_cav21_bench/condsc.c +../data/benchmarks/diffy_cav21_bench/s52if.c +../data/benchmarks/diffy_cav21_bench/nested-sna1.c +../data/benchmarks/diffy_cav21_bench/ss2.c +../data/benchmarks/diffy_cav21_bench/condn.c +../data/benchmarks/diffy_cav21_bench/modn.c +../data/benchmarks/diffy_cav21_bench/ifeqn1.c +../data/benchmarks/diffy_cav21_bench/s5lif.c +../data/benchmarks/diffy_cav21_bench/standard_copy3_ground-1.c +../data/benchmarks/diffy_cav21_bench/ms2.c +../data/benchmarks/diffy_cav21_bench/indp4.c +../data/benchmarks/diffy_cav21_bench/res1.c +../data/benchmarks/diffy_cav21_bench/pcomp.c +../data/benchmarks/diffy_cav21_bench/conds2.c +../data/benchmarks/diffy_cav21_bench/standard_init8_ground-2.c +../data/benchmarks/diffy_cav21_bench/nested-nlj2.c +../data/benchmarks/diffy_cav21_bench/s1if.c +../data/benchmarks/diffy_cav21_bench/indp1.c +../data/benchmarks/diffy_cav21_bench/standard_init3_ground-2.c +../data/benchmarks/diffy_cav21_bench/zero_sum_m4.c +../data/benchmarks/diffy_cav21_bench/nested-ss1.c +../data/benchmarks/diffy_cav21_bench/nested-sa1.c +../data/benchmarks/diffy_cav21_bench/condss3.c +../data/benchmarks/diffy_cav21_bench/indp5.c +../data/benchmarks/diffy_cav21_bench/s2if.c +../data/benchmarks/diffy_cav21_bench/modp.c +../data/benchmarks/diffy_cav21_bench/indp3.c +../data/benchmarks/diffy_cav21_bench/nested-nsna1.c +../data/benchmarks/diffy_cav21_bench/zero_sum_const4.c +../data/benchmarks/diffy_cav21_bench/brs4.c +../data/benchmarks/diffy_cav21_bench/sanfoundry_27_ground.c +../data/benchmarks/diffy_cav21_bench/conds.c +../data/benchmarks/diffy_cav21_bench/standard_maxInArray_ground.c +../data/benchmarks/diffy_cav21_bench/ss4.c +../data/benchmarks/diffy_cav21_bench/ss3.c +../data/benchmarks/diffy_cav21_bench/cond1.c +../data/benchmarks/diffy_cav21_bench/standard_copyInitSum_ground.c +../data/benchmarks/diffy_cav21_bench/standard_copyInit_ground.c +../data/benchmarks/diffy_cav21_bench/s4lif.c +../data/benchmarks/diffy_cav21_bench/nested-sum.c +../data/benchmarks/diffy_cav21_bench/res1o.c +../data/benchmarks/diffy_cav21_bench/standard_init2_ground-2.c +../data/benchmarks/diffy_cav21_bench/zero_sum_const_m4.c +../data/benchmarks/diffy_cav21_bench/zero_sum_const3.c +../data/benchmarks/diffy_cav21_bench/ifeqn2.c +../data/benchmarks/diffy_cav21_bench/standard_init9_ground-2.c +../data/benchmarks/diffy_cav21_bench/s12if.c +../data/benchmarks/diffy_cav21_bench/zero_sum1.c +../data/benchmarks/diffy_cav21_bench/eqn3.c +../data/benchmarks/diffy_cav21_bench/standard_copy4_ground-1.c +../data/benchmarks/diffy_cav21_bench/standard_copy5_ground-1.c +../data/benchmarks/diffy_cav21_bench/ifncomp.c +../data/benchmarks/diffy_cav21_bench/indp2.c +../data/benchmarks/diffy_cav21_bench/condss.c +../data/benchmarks/diffy_cav21_bench/zero_sum2.c +../data/benchmarks/diffy_cav21_bench/eqn5.c +../data/benchmarks/diffy_cav21_bench/zero_sum_m6.c +../data/benchmarks/diffy_cav21_bench/conda.c +../data/benchmarks/diffy_cav21_bench/ms5.c +../data/benchmarks/diffy_cav21_bench/sina2.c +../data/benchmarks/diffy_cav21_bench/ssina.c +../data/benchmarks/diffy_cav21_bench/s3if.c +../data/benchmarks/diffy_cav21_bench/nested-nlj1.c +../data/benchmarks/diffy_cav21_bench/cond2s2.c +../data/benchmarks/diffy_cav21_bench/zero_sum4.c +../data/benchmarks/diffy_cav21_bench/nsqm-if.c +../data/benchmarks/diffy_cav21_bench/ifeqn3.c +../data/benchmarks/diffy_cav21_bench/brs1.c +../data/benchmarks/diffy_cav21_bench/nsqm.c +../data/benchmarks/diffy_cav21_bench/s4if.c +../data/benchmarks/diffy_cav21_bench/zero_sum_m3.c +../data/benchmarks/diffy_cav21_bench/nested-sna2.c +../data/benchmarks/diffy_cav21_bench/nested-as1.c +../data/benchmarks/diffy_cav21_bench/nested-ss3.c +../data/benchmarks/diffy_cav21_bench/nested-nsna2.c +../data/benchmarks/diffy_cav21_bench/res2.c +../data/benchmarks/diffy_cav21_bench/s42if.c +../data/benchmarks/diffy_cav21_bench/brs5.c +../data/benchmarks/diffy_cav21_bench/brs3.c +../data/benchmarks/diffy_cav21_bench/ifeqn5.c +../data/benchmarks/diffy_cav21_bench/standard_init4_ground-2.c +../data/benchmarks/diffy_cav21_bench/s5if.c +../data/benchmarks/diffy_cav21_bench/res2o.c +../data/benchmarks/diffy_cav21_bench/zero_sum_const1.c +../data/benchmarks/diffy_cav21_bench/condg.c +../data/benchmarks/diffy_cav21_bench/standard_compareModified_ground.c +../data/benchmarks/diffy_cav21_bench/sina3.c +../data/benchmarks/diffy_cav21_bench/zero_sum_const_m5.c +../data/benchmarks/diffy_cav21_bench/cond2.c +../data/benchmarks/diffy_cav21_bench/standard_copy2_ground-2.c +../data/benchmarks/diffy_cav21_bench/standard_copyInitSum2_ground-2.c +../data/benchmarks/diffy_cav21_bench/ms1.c +../data/benchmarks/diffy_cav21_bench/standard_running-2.c +../data/benchmarks/diffy_cav21_bench/cond2s1.c +../data/benchmarks/diffy_cav21_bench/zero_sum_const5.c +../data/benchmarks/diffy_cav21_bench/s3lif.c +../data/benchmarks/diffy_cav21_bench/condnl1.c +../data/benchmarks/diffy_cav21_bench/standard_compare_ground.c +../data/benchmarks/diffy_cav21_bench/brs2.c +../data/benchmarks/diffy_cav21_bench/mods.c +../data/benchmarks/diffy_cav21_bench/nested-unb1.c +../data/benchmarks/diffy_cav21_bench/condi.c +../data/benchmarks/diffy_cav21_bench/sqm.c +../data/benchmarks/diffy_cav21_bench/standard_copyInitSum3_ground.c +../data/benchmarks/diffy_cav21_bench/zero_sum3.c +../data/benchmarks/diffy_cav21_bench/standard_copy6_ground-2.c +../data/benchmarks/diffy_cav21_bench/nested-nli2.c +../data/benchmarks/diffy_cav21_bench/sina1.c +../data/benchmarks/diffy_cav21_bench/nested-unb2.c +../data/benchmarks/diffy_cav21_bench/standard_copy7_ground-2.c +../data/benchmarks/diffy_cav21_bench/nested-nli1.c +../data/benchmarks/diffy_cav21_bench/nested-ss2.c +../data/benchmarks/diffy_cav21_bench/nested-sna3.c +../data/benchmarks/diffy_cav21_bench/condss2.c +../data/benchmarks/diffy_cav21_bench/standard_init1_ground-2.c +../data/benchmarks/diffy_cav21_bench/zero_sum_m2.c +../data/benchmarks/diffy_cav21_bench/nested-unb3.c +../data/benchmarks/diffy_cav21_bench/nested-nsna3.c +../data/benchmarks/diffy_cav21_bench/standard_init7_ground-2.c +../data/benchmarks/diffy_cav21_bench/nested-as2.c +../data/benchmarks/diffy_cav21_bench/ms3.c +../data/benchmarks/diffy_cav21_bench/sqm-if.c +../data/benchmarks/diffy_cav21_bench/ms4.c +../data/benchmarks/diffy_cav21_bench/eqn1.c +../data/benchmarks/diffy_cav21_bench/eqn4.c +../data/benchmarks/diffy_cav21_bench/standard_password_ground.c +../data/benchmarks/diffy_cav21_bench/zero_sum5.c +../data/benchmarks/diffy_cav21_bench/standard_copy1_ground-1.c +../data/benchmarks/diffy_cav21_bench/standard_minInArray_ground-2.c +../data/benchmarks/diffy_cav21_bench/nested-nlj3.c +../data/benchmarks/dillig/safe/1.c +../data/benchmarks/dillig/safe/2.c +../data/benchmarks/dillig/safe/3.c +../data/benchmarks/dillig/safe/5.c +../data/benchmarks/dillig/safe/8.c +../data/benchmarks/dillig/safe/9.c +../data/benchmarks/dillig/safe/10.c +../data/benchmarks/dillig/safe/12.c +../data/benchmarks/dillig/safe/21.c +../data/benchmarks/dillig/safe/22.c +../data/benchmarks/dillig/safe/23.c +../data/benchmarks/dillig/safe/24.c \ No newline at end of file diff --git a/experiments/filtered_termination_positive.txt b/experiments/filtered_termination_positive.txt new file mode 100644 index 000000000..6702c1d32 --- /dev/null +++ b/experiments/filtered_termination_positive.txt @@ -0,0 +1,281 @@ +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB7.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/BrockschmidtCookFuhs-CAV2013-Introduction_true-termination.c +../data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Hanoi_plus_false-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/genady_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/UrbanMine-ESOP2014-Fig3_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Factorial.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Swingers.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.12.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileDecr.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.07_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Piecewise_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.09_assume.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-LICS2004-Fig2-TACAS2011-Fig3_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.03_true-termination.c +../data/benchmarks/tpdb/C/Ultimate/Lobnya-Boolean-Reordered_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.22_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.04_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-speedpldi2_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Bangalore_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_java_Break.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.08_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB2.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig8a-modified_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.09_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/LogMult.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/KroeningSharyginaTsitovichWintersteiger-CAV2010-Ex_true-termination.c +../data/benchmarks/non_termination/loop/Signed_Overflow_Error_3_T.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-WST2014-Ex5_false-termination.c +../data/benchmarks/tpdb/C/Ultimate/Parallel_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.18_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex4.01_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_ex2.c +../data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Benghazi_nondet_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.02_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig6_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/GulwaniJainKoskinen-PLDI2009-Fig1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.10_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.16_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Pure2Phase_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/PodelskiRybalchenko-LICS2004-Fig2_true-termination.c +../data/benchmarks/tpdb/C/Ultimate/Cairo_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaC7.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-random1d_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.11.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/genady_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Fig1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Pure3Phase_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Nyala-2lex_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_ex3b.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_c.07.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.05.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.03_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PlusSwap.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-counterex1a_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.20_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/aaron3_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_ex1.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Toulouse-MultiBranchesToLoop_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-counterex1a_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.01_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeikeHeizmann-TACAS2014-Ex9_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/min_rf_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.05.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Et1.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.10_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/2Nested_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.04.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig9_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA7.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig6_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig8_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_java_Continue1.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-random2d_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/aaron2_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/aaron2_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex1.04_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.08_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Masse-VMCAI2014-Fig1b_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-random2d_true-termination.c +../data/benchmarks/tpdb/C/Ultimate/Gothenburg_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/NoriSharma-FSE2013-Fig8_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig8b_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Toulouse-BranchesToLoop_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/MenloPark_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.13_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-rsd_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA4.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_fermat.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Overflow.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/Toulouse-BranchesToLoop_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/TelAviv-Amir-Minimum_true-termination.c +../data/benchmarks/non_termination/loop/Signed_Overflow_Error_2_T.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaC3.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.13.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/GulavaniGulwani-CAV2008-Fig1a_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.09_true-termination.c +../data/benchmarks/non_termination/loop/Signed_Overflow_Error_1_T.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.06.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-ndecr_true-termination.c +../data/benchmarks/non_termination/loop/Incorrect_Bit_Calculation_3_T.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-TACAS2011-Fig1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.06_false-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig9_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA8.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.03-no-inv_assume.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/GopanReps-CAV2006-Fig1a_true-termination.c.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig5_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/KroeningSharyginaTsitovichWintersteiger-CAV2010-Ex_true-termination.c +../data/benchmarks/non_termination/loop/Incorrect_Bit_Calculation_2_T.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Gothenburg_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-random1d_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Thun_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaC9.c +../data/benchmarks/tpdb/C/Ultimate/Pure3Phase_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA10.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-speedpldi2_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Stockholm_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/IntPath.c +../data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_4_T.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.19_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/MinusBuiltIn.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Ben-Amram-LMCS2010-Ex2.3_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Fibonacci.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/CookSeeZuleger-TACAS2013-Fig7b_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/DoubleNeg.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex4.01_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/BradleyMannaSipma-ICALP2005-Fig1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Masse-VMCAI2014-Ex6_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.07.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.01_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Masse-VMCAI2014-Fig1a_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ColonSipma-TACAS2001-Fig1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-speedpldi4_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/TelAviv-Amir-Minimum_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB6.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_flag.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig8a_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.11_false-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/min_rf_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.16_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Mysore_true-termination.c +../data/benchmarks/non_termination/loop/Type_Conversion_in_Comparison_1_T.c +../data/benchmarks/non_termination/loop/Incorrect_Update_for_Loop_Iterator_1_T.c +../data/benchmarks/tpdb/C/Ultimate/Bangalore_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-VMCAI2004-Ex2_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-ndecr_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/BradleyMannaSipma-CAV2005-Fig1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/MinusMin.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeikeHeizmann-WST2014-Ex9_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron6_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-speedFails4_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.09-no-inv_assume.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Copenhagen_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/Toulouse-MultiBranchesToLoop_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_easySum.c +../data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/McCarthy91_Iteration_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_24.c +../data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_3_T.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-wise_true-termination.c +../data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Copenhagen_disj_true-termination.c +../data/benchmarks/non_termination/loop/Undefined_Behavior_3_T.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/CookSeeZuleger-TACAS2013-Fig7a_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.10_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-wise_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.05_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex1.02_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA6.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.22_true-termination.c +../data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Gothenburg_v2_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.08.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-rsd_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_c.03.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/NoriSharma-FSE2013-Fig7_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig4_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Ex7_true-termination.c +../data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Bangalore_v4_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB1.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-TACAS2011-Fig4_true-termination.c +../data/benchmarks/tpdb/C/Ultimate/Stockholm_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/BradleyMannaSipma-ICALP2005-Fig1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.01_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/aaron3_true-termination.c +../data/benchmarks/non_termination/loop/Incorrect_Update_for_Loop_Iterator_2_T.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-VMCAI2004-Ex1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron6_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ComplInterv.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA9.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB11.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.08_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChooseLife.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig2_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-cousot9_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.09_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/GulavaniGulwani-CAV2008-Fig1c_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Ex1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.04.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.03_assume.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.08_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.07.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-exmini_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.02.c +../data/benchmarks/tpdb/C/Ultimate/Nyala-2lex_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_java_AG313.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Ex8_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig8_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/CookSeeZuleger-TACAS2013-Fig1_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-random1d_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig7a_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.07_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-speedpldi3_true-termination.c +../data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_1_T.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex1.05_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/4NestedWith3Variables_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.05_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.01.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/easy2_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA5.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB4.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileFalse_true-termination.c +../data/benchmarks/tpdb/C/Ultimate/WhileFalse_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.03_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.01_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.07_true-termination.c +../data/benchmarks/tpdb/C/AProVE_numeric/svcomp_java_Break.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.10.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/Masse-VMCAI2014-Fig1b_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Fig1_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.13_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex1.03_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-terminate_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-speedpldi3_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron1_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-speedpldi4_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron12_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.06.c +../data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_2_T.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.21_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron12_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.10.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig7b_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.20_true-termination.c +../data/benchmarks/tpdb/C/AProVE_numeric/svcomp_java_Continue1.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron4_true-termination.c +../data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_2_T.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-terminate_true-termination.c +../data/benchmarks/non_termination/loop/Using_Erroneous_Condition_2_T.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Parallel_true-termination.c +../data/benchmarks/non_termination/loop/Incorrect_Bit_Calculation_1_T.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Waldkirch_true-termination.c +../data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Singapore_true-termination.c +../data/benchmarks/non_termination/loop/Type_Conversion_in_Comparison_2_T.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/KroeningSharyginaTsitovichWintersteiger-CAV2010-Fig1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.04_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/McCarthyIterative.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron4_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron1_true-termination.c +../data/benchmarks/tpdb/C/Ultimate/Mysore_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Lobnya-Boolean-Reordered_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.01_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/PodelskiRybalchenko-TACAS2011-Fig4_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/DivMinus.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.04_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/MirrorInterv.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Ex9_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB3.c +../data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_1_T.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Cairo_true-termination.c +../data/benchmarks/non_termination/loop/Incorrect_Initialization_4_T.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_ex3a.c +../data/benchmarks/tpdb/C/Ultimate/Collatz_unknown-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-cousot9_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.09_assume.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/UrbanMine-ESOP2014-Fig3_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/GulwaniJainKoskinen-PLDI2009-Fig1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/easy1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Benghazi_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-random1d_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.05_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/GopanReps-CAV2006-Fig1a_true-termination.c.c \ No newline at end of file diff --git a/experiments/loop_invariants.txt b/experiments/loop_invariants.txt new file mode 100644 index 000000000..71307dd44 --- /dev/null +++ b/experiments/loop_invariants.txt @@ -0,0 +1,469 @@ +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-CPA-example_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-disj_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-forward_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-interpolants_needed-pepm-proc.c_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-singleloop2-pepm-proc.c_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-paper-prog_d-pepm-proc.c_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs12_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs13_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs15_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs7_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs8_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop10_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop11_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop13_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop14_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop15_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop16_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop17_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop1_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop29_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop2_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop4_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop6_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop7_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop9_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/MADWiFi-encode_ie_ok.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/NetBSD_g_Ctoc.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/NetBSD_loop.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/NetBSD_loop_int.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/bind_expands_vars2.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/gulwani_cegar1.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/gulwani_cegar2.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/gulwani_fig1a.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/ken-imp.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/rajamani_1.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/sendmail-close-angle.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/sendmail-mime-fromqp.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/sendmail-mime7to8_arr_three_chars_no_test_ok.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/simple.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/simple_if.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/split.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/up-nested.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/barthe2_merged_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/barthe_merged_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/fib_merged_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/loop4_merged_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/MADWiFi-encode_ie_ok_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/NetBSD_loop_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/sendmail-close-angle_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/afnp2014_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/bhmr2007_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/cggmp2005_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/cggmp2005_variant_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/css2003_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/ddlm2013_true-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gj2007_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gj2007b_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gr2006_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gsv2008_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/hhk2008_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/jm2006_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/jm2006_variant_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/count_by_1_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/count_by_1_variant_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/count_by_2_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/count_by_k_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/count_by_nondet_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/half_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/count_up_down_true-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/for_infinite_loop_1_true-unreach-call_false-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/for_infinite_loop_2_true-unreach-call_false-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum01_true-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum03_true-unreach-call_false-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum04_true-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/terminator_02_true-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/terminator_03_true-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex03_true-unreach-call.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/while_infinite_loop_1_true-unreach-call_false-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/while_infinite_loop_2_true-unreach-call_false-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/afnp2014_true-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar2.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar2.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cggmp2005_true-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/dec.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/decn.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex14n.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig1.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig1.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig3.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig3.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig9.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig9.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form22.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form25.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form27.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/inc.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/incn.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/incn.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01_safe.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03_safe.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04n.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04n.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03_safe.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/w1.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/w2.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/01.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/02.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/04.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/05.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/07.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/08.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/10.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/11.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/13.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/14.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/15.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/16.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/18.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/19.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/20.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/21.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/22.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/23.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/30.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/32.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/37.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/38.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/39.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/41.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/42.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/43.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/44.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/46.c +../data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/cav.c +../data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/ex1.c +../data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/ex2.c +../data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/popl.c +../data/benchmarks/accelerating_invariant_generation/cav/05.c +../data/benchmarks/accelerating_invariant_generation/cav/07.c +../data/benchmarks/accelerating_invariant_generation/cav/19.c +../data/benchmarks/accelerating_invariant_generation/cav/20.c +../data/benchmarks/accelerating_invariant_generation/cav/35.c +../data/benchmarks/accelerating_invariant_generation/cav/37.c +../data/benchmarks/accelerating_invariant_generation/cav/39.c +../data/benchmarks/accelerating_invariant_generation/cav/gulv.c +../data/benchmarks/accelerating_invariant_generation/cav/gulv_simp.c +../data/benchmarks/accelerating_invariant_generation/cav/pldi082_unbounded.c +../data/benchmarks/accelerating_invariant_generation/cav/substring1.c +../data/benchmarks/accelerating_invariant_generation/cav/xy10.c +../data/benchmarks/accelerating_invariant_generation/crafted/const_safe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/diamond_safe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/diamond_safe2.c +../data/benchmarks/accelerating_invariant_generation/crafted/multivar_safe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/overflow_safe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/phases_safe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/simple_safe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/simple_safe2.c +../data/benchmarks/accelerating_invariant_generation/crafted/simple_safe3.c +../data/benchmarks/accelerating_invariant_generation/crafted/simple_safe4.c +../data/benchmarks/accelerating_invariant_generation/crafted/underapprox_safe2.c +../data/benchmarks/accelerating_invariant_generation/crafted/underapprox_unsafe1.c +../data/benchmarks/accelerating_invariant_generation/dagger/barbr.c +../data/benchmarks/accelerating_invariant_generation/dagger/barbrprime.c +../data/benchmarks/accelerating_invariant_generation/dagger/bk-nat.c +../data/benchmarks/accelerating_invariant_generation/dagger/bkley.c +../data/benchmarks/accelerating_invariant_generation/dagger/cars.c +../data/benchmarks/accelerating_invariant_generation/dagger/efm.c +../data/benchmarks/accelerating_invariant_generation/dagger/ex1.c +../data/benchmarks/accelerating_invariant_generation/dagger/fig2.c +../data/benchmarks/accelerating_invariant_generation/dagger/lifnat.c +../data/benchmarks/accelerating_invariant_generation/dagger/lifnatprime.c +../data/benchmarks/accelerating_invariant_generation/dagger/lifo.c +../data/benchmarks/accelerating_invariant_generation/dagger/seesaw.c +../data/benchmarks/accelerating_invariant_generation/dagger/substring1.c +../data/benchmarks/accelerating_invariant_generation/dagger/swim.c +../data/benchmarks/accelerating_invariant_generation/dagger/swim1.c +../data/benchmarks/accelerating_invariant_generation/invgen/MADWiFi-encode_ie_ok.c +../data/benchmarks/accelerating_invariant_generation/invgen/NetBSD_g_Ctoc.c +../data/benchmarks/accelerating_invariant_generation/invgen/NetBSD_loop.c +../data/benchmarks/accelerating_invariant_generation/invgen/NetBSD_loop_int.c +../data/benchmarks/accelerating_invariant_generation/invgen/bind_expands_vars2.c +../data/benchmarks/accelerating_invariant_generation/invgen/gulwani_cegar1.c +../data/benchmarks/accelerating_invariant_generation/invgen/gulwani_cegar2.c +../data/benchmarks/accelerating_invariant_generation/invgen/ken-imp.c +../data/benchmarks/accelerating_invariant_generation/invgen/rajamani_1.c +../data/benchmarks/accelerating_invariant_generation/invgen/sendmail-close-angle.c +../data/benchmarks/accelerating_invariant_generation/invgen/sendmail-mime-fromqp.c +../data/benchmarks/accelerating_invariant_generation/invgen/sendmail-mime7to8_arr_three_chars_no_test_ok.c +../data/benchmarks/accelerating_invariant_generation/invgen/simple.c +../data/benchmarks/accelerating_invariant_generation/invgen/simple_if.c +../data/benchmarks/accelerating_invariant_generation/invgen/split.c +../data/benchmarks/accelerating_invariant_generation/invgen/up-nested.c +../data/benchmarks/accelerating_invariant_generation/svcomp/count_up_down_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/for_infinite_loop_1_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/for_infinite_loop_2_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/sum01_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/sum03_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/sum04_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/terminator_02_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/trex03_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/while_infinite_loop_1_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/while_infinite_loop_2_true.c +../data/benchmarks/code2inv/1.c +../data/benchmarks/code2inv/10.c +../data/benchmarks/code2inv/100.c +../data/benchmarks/code2inv/101.c +../data/benchmarks/code2inv/102.c +../data/benchmarks/code2inv/103.c +../data/benchmarks/code2inv/104.c +../data/benchmarks/code2inv/105.c +../data/benchmarks/code2inv/107.c +../data/benchmarks/code2inv/108.c +../data/benchmarks/code2inv/109.c +../data/benchmarks/code2inv/11.c +../data/benchmarks/code2inv/110.c +../data/benchmarks/code2inv/111.c +../data/benchmarks/code2inv/112.c +../data/benchmarks/code2inv/113.c +../data/benchmarks/code2inv/114.c +../data/benchmarks/code2inv/115.c +../data/benchmarks/code2inv/116.c +../data/benchmarks/code2inv/117.c +../data/benchmarks/code2inv/118.c +../data/benchmarks/code2inv/119.c +../data/benchmarks/code2inv/12.c +../data/benchmarks/code2inv/120.c +../data/benchmarks/code2inv/121.c +../data/benchmarks/code2inv/122.c +../data/benchmarks/code2inv/123.c +../data/benchmarks/code2inv/124.c +../data/benchmarks/code2inv/125.c +../data/benchmarks/code2inv/126.c +../data/benchmarks/code2inv/127.c +../data/benchmarks/code2inv/128.c +../data/benchmarks/code2inv/129.c +../data/benchmarks/code2inv/13.c +../data/benchmarks/code2inv/130.c +../data/benchmarks/code2inv/131.c +../data/benchmarks/code2inv/132.c +../data/benchmarks/code2inv/133.c +../data/benchmarks/code2inv/14.c +../data/benchmarks/code2inv/15.c +../data/benchmarks/code2inv/16.c +../data/benchmarks/code2inv/17.c +../data/benchmarks/code2inv/18.c +../data/benchmarks/code2inv/19.c +../data/benchmarks/code2inv/2.c +../data/benchmarks/code2inv/20.c +../data/benchmarks/code2inv/21.c +../data/benchmarks/code2inv/22.c +../data/benchmarks/code2inv/23.c +../data/benchmarks/code2inv/24.c +../data/benchmarks/code2inv/25.c +../data/benchmarks/code2inv/28.c +../data/benchmarks/code2inv/29.c +../data/benchmarks/code2inv/3.c +../data/benchmarks/code2inv/30.c +../data/benchmarks/code2inv/33.c +../data/benchmarks/code2inv/34.c +../data/benchmarks/code2inv/35.c +../data/benchmarks/code2inv/36.c +../data/benchmarks/code2inv/37.c +../data/benchmarks/code2inv/38.c +../data/benchmarks/code2inv/39.c +../data/benchmarks/code2inv/4.c +../data/benchmarks/code2inv/40.c +../data/benchmarks/code2inv/41.c +../data/benchmarks/code2inv/42.c +../data/benchmarks/code2inv/43.c +../data/benchmarks/code2inv/44.c +../data/benchmarks/code2inv/45.c +../data/benchmarks/code2inv/46.c +../data/benchmarks/code2inv/47.c +../data/benchmarks/code2inv/48.c +../data/benchmarks/code2inv/49.c +../data/benchmarks/code2inv/5.c +../data/benchmarks/code2inv/50.c +../data/benchmarks/code2inv/51.c +../data/benchmarks/code2inv/52.c +../data/benchmarks/code2inv/53.c +../data/benchmarks/code2inv/54.c +../data/benchmarks/code2inv/55.c +../data/benchmarks/code2inv/56.c +../data/benchmarks/code2inv/57.c +../data/benchmarks/code2inv/58.c +../data/benchmarks/code2inv/59.c +../data/benchmarks/code2inv/6.c +../data/benchmarks/code2inv/60.c +../data/benchmarks/code2inv/63.c +../data/benchmarks/code2inv/64.c +../data/benchmarks/code2inv/65.c +../data/benchmarks/code2inv/66.c +../data/benchmarks/code2inv/67.c +../data/benchmarks/code2inv/68.c +../data/benchmarks/code2inv/69.c +../data/benchmarks/code2inv/7.c +../data/benchmarks/code2inv/70.c +../data/benchmarks/code2inv/71.c +../data/benchmarks/code2inv/73.c +../data/benchmarks/code2inv/74.c +../data/benchmarks/code2inv/76.c +../data/benchmarks/code2inv/77.c +../data/benchmarks/code2inv/78.c +../data/benchmarks/code2inv/79.c +../data/benchmarks/code2inv/8.c +../data/benchmarks/code2inv/80.c +../data/benchmarks/code2inv/81.c +../data/benchmarks/code2inv/82.c +../data/benchmarks/code2inv/83.c +../data/benchmarks/code2inv/84.c +../data/benchmarks/code2inv/85.c +../data/benchmarks/code2inv/86.c +../data/benchmarks/code2inv/87.c +../data/benchmarks/code2inv/88.c +../data/benchmarks/code2inv/89.c +../data/benchmarks/code2inv/9.c +../data/benchmarks/code2inv/90.c +../data/benchmarks/code2inv/91.c +../data/benchmarks/code2inv/92.c +../data/benchmarks/code2inv/93.c +../data/benchmarks/code2inv/94.c +../data/benchmarks/code2inv/95.c +../data/benchmarks/code2inv/96.c +../data/benchmarks/code2inv/97.c +../data/benchmarks/code2inv/98.c +../data/benchmarks/code2inv/99.c +../data/benchmarks/sv-benchmarks/loop-acceleration/const_1-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/diamond_1-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/diamond_2-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/multivar_1-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/overflow_1-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/phases_1-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/phases_2-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/simple_1-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/simple_2-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/simple_3-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/simple_4-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/underapprox_1-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/underapprox_2-2.c +../data/benchmarks/sv-benchmarks/loop-crafted/simple_vardep_1.c +../data/benchmarks/sv-benchmarks/loop-crafted/simple_vardep_2.c +../data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop1-1.c +../data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop2-2.c +../data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop3.c +../data/benchmarks/sv-benchmarks/loop-industry-pattern/mod3.c +../data/benchmarks/sv-benchmarks/loop-invariants/bin-suffix-5.c +../data/benchmarks/sv-benchmarks/loop-invariants/const.c +../data/benchmarks/sv-benchmarks/loop-invariants/eq1.c +../data/benchmarks/sv-benchmarks/loop-invariants/eq2.c +../data/benchmarks/sv-benchmarks/loop-invariants/even.c +../data/benchmarks/sv-benchmarks/loop-invariants/linear-inequality-inv-a.c +../data/benchmarks/sv-benchmarks/loop-invariants/mod4.c +../data/benchmarks/sv-benchmarks/loop-invariants/odd.c +../data/benchmarks/sv-benchmarks/loop-invgen/MADWiFi-encode_ie_ok.c +../data/benchmarks/sv-benchmarks/loop-invgen/NetBSD_loop.c +../data/benchmarks/sv-benchmarks/loop-invgen/sendmail-close-angle.c +../data/benchmarks/sv-benchmarks/loop-lit/afnp2014.c +../data/benchmarks/sv-benchmarks/loop-lit/bhmr2007.c +../data/benchmarks/sv-benchmarks/loop-lit/cggmp2005.c +../data/benchmarks/sv-benchmarks/loop-lit/cggmp2005_variant.c +../data/benchmarks/sv-benchmarks/loop-lit/css2003.c +../data/benchmarks/sv-benchmarks/loop-lit/ddlm2013.c +../data/benchmarks/sv-benchmarks/loop-lit/gj2007.c +../data/benchmarks/sv-benchmarks/loop-lit/gj2007b.c +../data/benchmarks/sv-benchmarks/loop-lit/gr2006.c +../data/benchmarks/sv-benchmarks/loop-lit/gsv2008.c +../data/benchmarks/sv-benchmarks/loop-lit/hhk2008.c +../data/benchmarks/sv-benchmarks/loop-lit/jm2006.c +../data/benchmarks/sv-benchmarks/loop-lit/jm2006_variant.c +../data/benchmarks/sv-benchmarks/loop-new/count_by_1.c +../data/benchmarks/sv-benchmarks/loop-new/count_by_1_variant.c +../data/benchmarks/sv-benchmarks/loop-new/count_by_2.c +../data/benchmarks/sv-benchmarks/loop-new/count_by_k.c +../data/benchmarks/sv-benchmarks/loop-new/count_by_nondet.c +../data/benchmarks/sv-benchmarks/loop-new/gauss_sum.c +../data/benchmarks/sv-benchmarks/loop-new/half.c +../data/benchmarks/sv-benchmarks/loop-simple/nested_1.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark01_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark02_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark03_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark04_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark05_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark06_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark08_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark09_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark10_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark11_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark12_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark13_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark14_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark15_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark16_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark17_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark18_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark19_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark20_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark21_disjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark22_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark23_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark24_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark25_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark26_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark27_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark29_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark30_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark31_disjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark32_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark33_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark34_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark35_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark36_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark37_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark38_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark39_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark40_polynomial.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark41_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark42_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark43_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark45_disjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark46_disjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark47_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark48_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark49_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark50_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark51_polynomial.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark52_polynomial.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark53_polynomial.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/Mono1_1-2.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/iftelse.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/loopv1.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/loopv3.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_10.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_11.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_12.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_6.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_8.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_9.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sum_natnum.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sumt2.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sumt3.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sumt4.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sumt5.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sumt6.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sumt7.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sumt8.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sumt9.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/vnew2.c +../data/benchmarks/sv-benchmarks/loops/count_up_down-1.c +../data/benchmarks/sv-benchmarks/loops/for_infinite_loop_1.c +../data/benchmarks/sv-benchmarks/loops/for_infinite_loop_2.c +../data/benchmarks/sv-benchmarks/loops/sum01-2.c +../data/benchmarks/sv-benchmarks/loops/sum03-2.c +../data/benchmarks/sv-benchmarks/loops/sum04-2.c +../data/benchmarks/sv-benchmarks/loops/terminator_02-2.c +../data/benchmarks/sv-benchmarks/loops/terminator_03-2.c +../data/benchmarks/sv-benchmarks/loops/trex03-2.c +../data/benchmarks/sv-benchmarks/loops/while_infinite_loop_1.c +../data/benchmarks/sv-benchmarks/loops/while_infinite_loop_2.c \ No newline at end of file diff --git a/experiments/negative_benchmarks.txt b/experiments/negative_benchmarks.txt new file mode 100644 index 000000000..025c949c2 --- /dev/null +++ b/experiments/negative_benchmarks.txt @@ -0,0 +1,86 @@ +../data/benchmarks/sv-benchmarks/loops-crafted-1/Mono5_1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/const_1-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/diamond_1-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/phases_1-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/simple_1-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/simple_4-1.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/Mono4_1.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/Mono6_1.c +../data/benchmarks/accelerating_invariant_generation/svcomp/sum01_bug02_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/sum01_bug02_sum01_bug02_base.case_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/sum01_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/sum03_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/sum04_false.c +../data/benchmarks/sv-benchmarks/loops/sum01_bug02.c +../data/benchmarks/sv-benchmarks/loops/sum01_bug02_sum01_bug02_base.case.c +../data/benchmarks/sv-benchmarks/loops/sum01-1.c +../data/benchmarks/sv-benchmarks/loops/sum03-1.c +../data/benchmarks/sv-benchmarks/loops/sum04-1.c +../data/benchmarks/accelerating_invariant_generation/cav/f2.c +../data/benchmarks/accelerating_invariant_generation/crafted/const_unsafe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/diamond_unsafe2.c +../data/benchmarks/accelerating_invariant_generation/crafted/multivar_unsafe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/simple_unsafe2.c +../data/benchmarks/accelerating_invariant_generation/crafted/simple_unsafe3.c +../data/benchmarks/accelerating_invariant_generation/crafted/underapprox_safe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/underapprox_unsafe2.c +../data/benchmarks/accelerating_invariant_generation/invgen/id_trans.c +../data/benchmarks/accelerating_invariant_generation/svcomp/count_up_down_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/for_bounded_loop1_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/terminator_02_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/trex03_false.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/id_trans.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/barthe_merged_unsafe.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/id_trans_false-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gcnr2008_false-unreach-call_false-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/count_up_down_false-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/for_bounded_loop1_false-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum01_bug02_false-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum01_bug02_sum01_bug02_base.case_false-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum01_false-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum03_false-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum04_false-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/terminator_02_false-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/terminator_03_false-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex03_false-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/34.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/35.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop27-unsafe_VeriMAP_false.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop28-unsafe_VeriMAP_false.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop3-unsafe_VeriMAP_false.c +../data/benchmarks/sv-benchmarks/loop-acceleration/multivar_1-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/phases_2-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/simple_2-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/simple_3-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/underapprox_1-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/underapprox_2-1.c +../data/benchmarks/sv-benchmarks/loop-invgen/id_trans.c +../data/benchmarks/sv-benchmarks/loop-lit/gcnr2008.c +../data/benchmarks/sv-benchmarks/loops/count_up_down-2.c +../data/benchmarks/sv-benchmarks/loops/for_bounded_loop1.c +../data/benchmarks/sv-benchmarks/loops/terminator_02-1.c +../data/benchmarks/sv-benchmarks/loops/terminator_03-1.c +../data/benchmarks/sv-benchmarks/loops/trex03-1.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark07_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark28_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark44_disjunctive.c +../data/benchmarks/accelerating_invariant_generation/crafted/diamond_unsafe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/overflow_unsafe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/phases_unsafe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/simple_unsafe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/simple_unsafe4.c +../data/benchmarks/code2inv/26.c +../data/benchmarks/code2inv/27.c +../data/benchmarks/code2inv/31.c +../data/benchmarks/code2inv/32.c +../data/benchmarks/code2inv/61.c +../data/benchmarks/code2inv/62.c +../data/benchmarks/code2inv/72.c +../data/benchmarks/code2inv/75.c +../data/benchmarks/code2inv/106.c +../data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop1-2.c +../data/benchmarks/sv-benchmarks/loop-simple/nested_1b.c +../data/benchmarks/sv-benchmarks/loop-invariants/linear-inequality-inv-b.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/Mono1_1-1.c +../data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop2-1.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/Mono3_1.c \ No newline at end of file diff --git a/experiments/one_loop_one_method_no_arrays.txt b/experiments/one_loop_one_method_no_arrays.txt new file mode 100644 index 000000000..9b232497c --- /dev/null +++ b/experiments/one_loop_one_method_no_arrays.txt @@ -0,0 +1,555 @@ +../data/benchmarks/accelerating_invariant_generation/cav/05.c +../data/benchmarks/accelerating_invariant_generation/cav/07.c +../data/benchmarks/accelerating_invariant_generation/cav/19.c +../data/benchmarks/accelerating_invariant_generation/cav/20.c +../data/benchmarks/accelerating_invariant_generation/cav/35.c +../data/benchmarks/accelerating_invariant_generation/cav/37.c +../data/benchmarks/accelerating_invariant_generation/cav/39.c +../data/benchmarks/accelerating_invariant_generation/cav/f2.c +../data/benchmarks/accelerating_invariant_generation/cav/gulv.c +../data/benchmarks/accelerating_invariant_generation/cav/gulv_simp.c +../data/benchmarks/accelerating_invariant_generation/cav/pldi082_unbounded.c +../data/benchmarks/accelerating_invariant_generation/cav/substring1.c +../data/benchmarks/accelerating_invariant_generation/cav/xy10.c +../data/benchmarks/accelerating_invariant_generation/crafted/const_safe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/const_unsafe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/diamond_safe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/diamond_safe2.c +../data/benchmarks/accelerating_invariant_generation/crafted/diamond_unsafe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/diamond_unsafe2.c +../data/benchmarks/accelerating_invariant_generation/crafted/multivar_safe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/multivar_unsafe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/overflow_safe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/overflow_unsafe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/phases_safe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/phases_unsafe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/simple_safe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/simple_safe2.c +../data/benchmarks/accelerating_invariant_generation/crafted/simple_safe3.c +../data/benchmarks/accelerating_invariant_generation/crafted/simple_safe4.c +../data/benchmarks/accelerating_invariant_generation/crafted/simple_unsafe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/simple_unsafe2.c +../data/benchmarks/accelerating_invariant_generation/crafted/simple_unsafe3.c +../data/benchmarks/accelerating_invariant_generation/crafted/simple_unsafe4.c +../data/benchmarks/accelerating_invariant_generation/crafted/underapprox_safe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/underapprox_safe2.c +../data/benchmarks/accelerating_invariant_generation/crafted/underapprox_unsafe1.c +../data/benchmarks/accelerating_invariant_generation/crafted/underapprox_unsafe2.c +../data/benchmarks/accelerating_invariant_generation/dagger/barbr.c +../data/benchmarks/accelerating_invariant_generation/dagger/barbrprime.c +../data/benchmarks/accelerating_invariant_generation/dagger/bk-nat.c +../data/benchmarks/accelerating_invariant_generation/dagger/bkley.c +../data/benchmarks/accelerating_invariant_generation/dagger/cars.c +../data/benchmarks/accelerating_invariant_generation/dagger/efm.c +../data/benchmarks/accelerating_invariant_generation/dagger/ex1.c +../data/benchmarks/accelerating_invariant_generation/dagger/fig2.c +../data/benchmarks/accelerating_invariant_generation/dagger/lifnat.c +../data/benchmarks/accelerating_invariant_generation/dagger/lifnatprime.c +../data/benchmarks/accelerating_invariant_generation/dagger/lifo.c +../data/benchmarks/accelerating_invariant_generation/dagger/seesaw.c +../data/benchmarks/accelerating_invariant_generation/dagger/substring1.c +../data/benchmarks/accelerating_invariant_generation/dagger/swim.c +../data/benchmarks/accelerating_invariant_generation/dagger/swim1.c +../data/benchmarks/accelerating_invariant_generation/invgen/bind_expands_vars2.c +../data/benchmarks/accelerating_invariant_generation/invgen/gulwani_cegar1.c +../data/benchmarks/accelerating_invariant_generation/invgen/gulwani_cegar2.c +../data/benchmarks/accelerating_invariant_generation/invgen/id_trans.c +../data/benchmarks/accelerating_invariant_generation/invgen/ken-imp.c +../data/benchmarks/accelerating_invariant_generation/invgen/MADWiFi-encode_ie_ok.c +../data/benchmarks/accelerating_invariant_generation/invgen/NetBSD_g_Ctoc.c +../data/benchmarks/accelerating_invariant_generation/invgen/NetBSD_loop.c +../data/benchmarks/accelerating_invariant_generation/invgen/NetBSD_loop_int.c +../data/benchmarks/accelerating_invariant_generation/invgen/rajamani_1.c +../data/benchmarks/accelerating_invariant_generation/invgen/sendmail-close-angle.c +../data/benchmarks/accelerating_invariant_generation/invgen/sendmail-mime-fromqp.c +../data/benchmarks/accelerating_invariant_generation/invgen/sendmail-mime7to8_arr_three_chars_no_test_ok.c +../data/benchmarks/accelerating_invariant_generation/invgen/simple.c +../data/benchmarks/accelerating_invariant_generation/invgen/simple_if.c +../data/benchmarks/accelerating_invariant_generation/invgen/split.c +../data/benchmarks/accelerating_invariant_generation/invgen/up-nested.c +../data/benchmarks/accelerating_invariant_generation/svcomp/count_up_down_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/count_up_down_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/for_bounded_loop1_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/for_infinite_loop_1_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/for_infinite_loop_2_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/sum01_bug02_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/sum01_bug02_sum01_bug02_base.case_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/sum01_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/sum01_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/sum03_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/sum03_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/sum04_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/sum04_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/terminator_02_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/terminator_02_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/trex03_false.c +../data/benchmarks/accelerating_invariant_generation/svcomp/trex03_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/while_infinite_loop_1_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/while_infinite_loop_2_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/bind_expands_vars2.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/gulwani_cegar1.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/gulwani_cegar2.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/gulwani_fig1a.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/id_trans.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/ken-imp.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/MADWiFi-encode_ie_ok.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/NetBSD_g_Ctoc.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/NetBSD_loop.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/NetBSD_loop_int.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/rajamani_1.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/sendmail-close-angle.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/sendmail-mime-fromqp.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/sendmail-mime7to8_arr_three_chars_no_test_ok.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/simple.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/simple_if.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/split.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/up-nested.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/barthe2_merged_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/barthe_merged_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/barthe_merged_unsafe.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/fib_merged_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/loop4_merged_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/id_trans_false-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/MADWiFi-encode_ie_ok_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/NetBSD_loop_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/sendmail-close-angle_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/afnp2014_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/bhmr2007_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/cggmp2005_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/cggmp2005_variant_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/css2003_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/ddlm2013_true-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gcnr2008_false-unreach-call_false-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gj2007b_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gj2007_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gr2006_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gsv2008_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/hhk2008_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/jm2006_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/jm2006_variant_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/count_by_1_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/count_by_1_variant_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/count_by_2_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/count_by_k_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/count_by_nondet_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/half_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/count_up_down_false-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/count_up_down_true-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/for_bounded_loop1_false-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/for_infinite_loop_1_true-unreach-call_false-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/for_infinite_loop_2_true-unreach-call_false-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum01_bug02_false-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum01_bug02_sum01_bug02_base.case_false-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum01_false-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum01_true-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum03_false-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum03_true-unreach-call_false-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum04_false-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum04_true-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/terminator_02_false-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/terminator_02_true-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/terminator_03_false-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/terminator_03_true-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex03_false-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex03_true-unreach-call.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/while_infinite_loop_1_true-unreach-call_false-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/while_infinite_loop_2_true-unreach-call_false-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/01.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/02.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/04.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/05.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/07.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/08.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/10.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/11.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/13.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/14.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/15.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/16.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/18.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/19.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/20.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/21.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/22.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/23.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/30.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/32.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/34.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/35.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/37.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/38.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/39.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/41.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/42.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/43.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/44.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/46.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/afnp2014_true-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar2.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar2.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cggmp2005_true-unreach-call.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/dec.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/decn.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex14n.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig1.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig1.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig3.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig3.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig9.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig9.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form22.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form25.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form27.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/inc.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/incn.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/incn.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01_safe.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03_safe.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04n.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04n.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03_safe.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03_safe.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/w1.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/w2.c +../data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/cav.c +../data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/ex1.c +../data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/ex2.c +../data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/popl.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-CPA-example_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-disj_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-forward_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-interpolants_needed-pepm-proc.c_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/MAP-singleloop2-pepm-proc.c_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-paper-prog_d-pepm-proc.c_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs12_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs13_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs15_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs7_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs8_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop10_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop11_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop13_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop14_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop15_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop16_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop17_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop1_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop27-unsafe_VeriMAP_false.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop28-unsafe_VeriMAP_false.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop29_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop2_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop3-unsafe_VeriMAP_false.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop4_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop6_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop7_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop9_VeriMAP_true.c +../data/benchmarks/sv-benchmarks/loop-acceleration/const_1-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/const_1-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/diamond_1-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/diamond_1-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/diamond_2-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/multivar_1-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/multivar_1-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/overflow_1-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/phases_1-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/phases_1-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/phases_2-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/phases_2-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/simple_1-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/simple_1-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/simple_2-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/simple_2-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/simple_3-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/simple_3-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/simple_4-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/simple_4-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/underapprox_1-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/underapprox_1-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/underapprox_2-1.c +../data/benchmarks/sv-benchmarks/loop-acceleration/underapprox_2-2.c +../data/benchmarks/sv-benchmarks/loop-crafted/simple_vardep_1.c +../data/benchmarks/sv-benchmarks/loop-crafted/simple_vardep_2.c +../data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop1-1.c +../data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop1-2.c +../data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop2-1.c +../data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop2-2.c +../data/benchmarks/sv-benchmarks/loop-floats-scientific-comp/loop3.c +../data/benchmarks/sv-benchmarks/loop-industry-pattern/mod3.c +../data/benchmarks/sv-benchmarks/loop-invariants/bin-suffix-5.c +../data/benchmarks/sv-benchmarks/loop-invariants/const.c +../data/benchmarks/sv-benchmarks/loop-invariants/eq1.c +../data/benchmarks/sv-benchmarks/loop-invariants/eq2.c +../data/benchmarks/sv-benchmarks/loop-invariants/even.c +../data/benchmarks/sv-benchmarks/loop-invariants/linear-inequality-inv-a.c +../data/benchmarks/sv-benchmarks/loop-invariants/linear-inequality-inv-b.c +../data/benchmarks/sv-benchmarks/loop-invariants/mod4.c +../data/benchmarks/sv-benchmarks/loop-invariants/odd.c +../data/benchmarks/sv-benchmarks/loop-invgen/id_trans.c +../data/benchmarks/sv-benchmarks/loop-invgen/MADWiFi-encode_ie_ok.c +../data/benchmarks/sv-benchmarks/loop-invgen/NetBSD_loop.c +../data/benchmarks/sv-benchmarks/loop-invgen/sendmail-close-angle.c +../data/benchmarks/sv-benchmarks/loop-lit/afnp2014.c +../data/benchmarks/sv-benchmarks/loop-lit/bhmr2007.c +../data/benchmarks/sv-benchmarks/loop-lit/cggmp2005.c +../data/benchmarks/sv-benchmarks/loop-lit/cggmp2005_variant.c +../data/benchmarks/sv-benchmarks/loop-lit/css2003.c +../data/benchmarks/sv-benchmarks/loop-lit/ddlm2013.c +../data/benchmarks/sv-benchmarks/loop-lit/gcnr2008.c +../data/benchmarks/sv-benchmarks/loop-lit/gj2007.c +../data/benchmarks/sv-benchmarks/loop-lit/gj2007b.c +../data/benchmarks/sv-benchmarks/loop-lit/gr2006.c +../data/benchmarks/sv-benchmarks/loop-lit/gsv2008.c +../data/benchmarks/sv-benchmarks/loop-lit/hhk2008.c +../data/benchmarks/sv-benchmarks/loop-lit/jm2006.c +../data/benchmarks/sv-benchmarks/loop-lit/jm2006_variant.c +../data/benchmarks/sv-benchmarks/loop-new/count_by_1.c +../data/benchmarks/sv-benchmarks/loop-new/count_by_1_variant.c +../data/benchmarks/sv-benchmarks/loop-new/count_by_2.c +../data/benchmarks/sv-benchmarks/loop-new/count_by_k.c +../data/benchmarks/sv-benchmarks/loop-new/count_by_nondet.c +../data/benchmarks/sv-benchmarks/loop-new/gauss_sum.c +../data/benchmarks/sv-benchmarks/loop-new/half.c +../data/benchmarks/sv-benchmarks/loop-simple/nested_1.c +../data/benchmarks/sv-benchmarks/loop-simple/nested_1b.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark01_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark02_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark03_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark04_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark05_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark06_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark07_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark08_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark09_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark10_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark11_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark12_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark13_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark14_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark15_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark16_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark17_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark18_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark19_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark20_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark21_disjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark22_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark23_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark24_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark25_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark26_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark27_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark28_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark29_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark30_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark31_disjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark32_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark33_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark34_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark35_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark36_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark37_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark38_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark39_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark40_polynomial.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark41_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark42_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark43_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark44_disjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark45_disjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark46_disjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark47_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark48_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark49_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark50_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark51_polynomial.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark52_polynomial.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark53_polynomial.c +../data/benchmarks/sv-benchmarks/loops/count_up_down-1.c +../data/benchmarks/sv-benchmarks/loops/count_up_down-2.c +../data/benchmarks/sv-benchmarks/loops/for_bounded_loop1.c +../data/benchmarks/sv-benchmarks/loops/for_infinite_loop_1.c +../data/benchmarks/sv-benchmarks/loops/for_infinite_loop_2.c +../data/benchmarks/sv-benchmarks/loops/sum01-1.c +../data/benchmarks/sv-benchmarks/loops/sum01-2.c +../data/benchmarks/sv-benchmarks/loops/sum01_bug02.c +../data/benchmarks/sv-benchmarks/loops/sum01_bug02_sum01_bug02_base.case.c +../data/benchmarks/sv-benchmarks/loops/sum03-1.c +../data/benchmarks/sv-benchmarks/loops/sum03-2.c +../data/benchmarks/sv-benchmarks/loops/sum04-1.c +../data/benchmarks/sv-benchmarks/loops/sum04-2.c +../data/benchmarks/sv-benchmarks/loops/terminator_02-1.c +../data/benchmarks/sv-benchmarks/loops/terminator_02-2.c +../data/benchmarks/sv-benchmarks/loops/terminator_03-1.c +../data/benchmarks/sv-benchmarks/loops/terminator_03-2.c +../data/benchmarks/sv-benchmarks/loops/trex03-1.c +../data/benchmarks/sv-benchmarks/loops/trex03-2.c +../data/benchmarks/sv-benchmarks/loops/while_infinite_loop_1.c +../data/benchmarks/sv-benchmarks/loops/while_infinite_loop_2.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/iftelse.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/loopv1.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/loopv3.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_10.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_11.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_12.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_6.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_8.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_9.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/Mono1_1-1.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/Mono1_1-2.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/Mono3_1.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/Mono4_1.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/Mono5_1.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/Mono6_1.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sumt2.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sumt3.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sumt4.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sumt5.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sumt6.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sumt7.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sumt8.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sumt9.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sum_natnum.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/vnew2.c +../data/benchmarks/code2inv/1.c +../data/benchmarks/code2inv/2.c +../data/benchmarks/code2inv/3.c +../data/benchmarks/code2inv/4.c +../data/benchmarks/code2inv/5.c +../data/benchmarks/code2inv/6.c +../data/benchmarks/code2inv/7.c +../data/benchmarks/code2inv/8.c +../data/benchmarks/code2inv/9.c +../data/benchmarks/code2inv/10.c +../data/benchmarks/code2inv/11.c +../data/benchmarks/code2inv/12.c +../data/benchmarks/code2inv/13.c +../data/benchmarks/code2inv/14.c +../data/benchmarks/code2inv/15.c +../data/benchmarks/code2inv/16.c +../data/benchmarks/code2inv/17.c +../data/benchmarks/code2inv/18.c +../data/benchmarks/code2inv/19.c +../data/benchmarks/code2inv/20.c +../data/benchmarks/code2inv/21.c +../data/benchmarks/code2inv/22.c +../data/benchmarks/code2inv/23.c +../data/benchmarks/code2inv/24.c +../data/benchmarks/code2inv/25.c +../data/benchmarks/code2inv/26.c +../data/benchmarks/code2inv/27.c +../data/benchmarks/code2inv/28.c +../data/benchmarks/code2inv/29.c +../data/benchmarks/code2inv/30.c +../data/benchmarks/code2inv/31.c +../data/benchmarks/code2inv/32.c +../data/benchmarks/code2inv/33.c +../data/benchmarks/code2inv/34.c +../data/benchmarks/code2inv/35.c +../data/benchmarks/code2inv/36.c +../data/benchmarks/code2inv/37.c +../data/benchmarks/code2inv/38.c +../data/benchmarks/code2inv/39.c +../data/benchmarks/code2inv/40.c +../data/benchmarks/code2inv/41.c +../data/benchmarks/code2inv/42.c +../data/benchmarks/code2inv/43.c +../data/benchmarks/code2inv/44.c +../data/benchmarks/code2inv/45.c +../data/benchmarks/code2inv/46.c +../data/benchmarks/code2inv/47.c +../data/benchmarks/code2inv/48.c +../data/benchmarks/code2inv/49.c +../data/benchmarks/code2inv/50.c +../data/benchmarks/code2inv/51.c +../data/benchmarks/code2inv/52.c +../data/benchmarks/code2inv/53.c +../data/benchmarks/code2inv/54.c +../data/benchmarks/code2inv/55.c +../data/benchmarks/code2inv/56.c +../data/benchmarks/code2inv/57.c +../data/benchmarks/code2inv/58.c +../data/benchmarks/code2inv/59.c +../data/benchmarks/code2inv/60.c +../data/benchmarks/code2inv/61.c +../data/benchmarks/code2inv/62.c +../data/benchmarks/code2inv/63.c +../data/benchmarks/code2inv/64.c +../data/benchmarks/code2inv/65.c +../data/benchmarks/code2inv/66.c +../data/benchmarks/code2inv/67.c +../data/benchmarks/code2inv/68.c +../data/benchmarks/code2inv/69.c +../data/benchmarks/code2inv/70.c +../data/benchmarks/code2inv/71.c +../data/benchmarks/code2inv/72.c +../data/benchmarks/code2inv/73.c +../data/benchmarks/code2inv/74.c +../data/benchmarks/code2inv/75.c +../data/benchmarks/code2inv/76.c +../data/benchmarks/code2inv/77.c +../data/benchmarks/code2inv/78.c +../data/benchmarks/code2inv/79.c +../data/benchmarks/code2inv/80.c +../data/benchmarks/code2inv/81.c +../data/benchmarks/code2inv/82.c +../data/benchmarks/code2inv/83.c +../data/benchmarks/code2inv/84.c +../data/benchmarks/code2inv/85.c +../data/benchmarks/code2inv/86.c +../data/benchmarks/code2inv/87.c +../data/benchmarks/code2inv/88.c +../data/benchmarks/code2inv/89.c +../data/benchmarks/code2inv/90.c +../data/benchmarks/code2inv/91.c +../data/benchmarks/code2inv/92.c +../data/benchmarks/code2inv/93.c +../data/benchmarks/code2inv/94.c +../data/benchmarks/code2inv/95.c +../data/benchmarks/code2inv/96.c +../data/benchmarks/code2inv/97.c +../data/benchmarks/code2inv/98.c +../data/benchmarks/code2inv/99.c +../data/benchmarks/code2inv/100.c +../data/benchmarks/code2inv/101.c +../data/benchmarks/code2inv/102.c +../data/benchmarks/code2inv/103.c +../data/benchmarks/code2inv/104.c +../data/benchmarks/code2inv/105.c +../data/benchmarks/code2inv/106.c +../data/benchmarks/code2inv/107.c +../data/benchmarks/code2inv/108.c +../data/benchmarks/code2inv/109.c +../data/benchmarks/code2inv/110.c +../data/benchmarks/code2inv/111.c +../data/benchmarks/code2inv/112.c +../data/benchmarks/code2inv/113.c +../data/benchmarks/code2inv/114.c +../data/benchmarks/code2inv/115.c +../data/benchmarks/code2inv/116.c +../data/benchmarks/code2inv/117.c +../data/benchmarks/code2inv/118.c +../data/benchmarks/code2inv/119.c +../data/benchmarks/code2inv/120.c +../data/benchmarks/code2inv/121.c +../data/benchmarks/code2inv/122.c +../data/benchmarks/code2inv/123.c +../data/benchmarks/code2inv/124.c +../data/benchmarks/code2inv/125.c +../data/benchmarks/code2inv/126.c +../data/benchmarks/code2inv/127.c +../data/benchmarks/code2inv/128.c +../data/benchmarks/code2inv/129.c +../data/benchmarks/code2inv/130.c +../data/benchmarks/code2inv/131.c +../data/benchmarks/code2inv/132.c +../data/benchmarks/code2inv/133.c \ No newline at end of file diff --git a/experiments/positive_benchmarks.txt b/experiments/positive_benchmarks.txt new file mode 100644 index 000000000..e2f6ee445 --- /dev/null +++ b/experiments/positive_benchmarks.txt @@ -0,0 +1,455 @@ +../data/benchmarks/accelerating_invariant_generation/svcomp/sum03_true.c +../data/benchmarks/sv-benchmarks/loop-crafted/simple_vardep_1.c +../data/benchmarks/code2inv/39.c +../data/benchmarks/accelerating_invariant_generation/cav/gulv_simp.c +../data/benchmarks/sv-benchmarks/loops/for_infinite_loop_1.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/23.c +../data/benchmarks/code2inv/44.c +../data/benchmarks/code2inv/101.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sumt4.c +../data/benchmarks/accelerating_invariant_generation/invgen/bind_expands_vars2.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/16.c +../data/benchmarks/accelerating_invariant_generation/svcomp/for_infinite_loop_1_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig9.v.c +../data/benchmarks/accelerating_invariant_generation/invgen/rajamani_1.c +../data/benchmarks/code2inv/42.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/simple_if.c +../data/benchmarks/accelerating_invariant_generation/invgen/NetBSD_loop.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01_safe.c +../data/benchmarks/code2inv/23.c +../data/benchmarks/code2inv/4.c +../data/benchmarks/code2inv/86.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sumt3.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop15_VeriMAP_true.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_9.c +../data/benchmarks/sv-benchmarks/loop-acceleration/underapprox_2-2.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/vnew2.c +../data/benchmarks/sv-benchmarks/loop-new/count_by_1.c +../data/benchmarks/code2inv/53.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/19.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark01_conjunctive.c +../data/benchmarks/code2inv/22.c +../data/benchmarks/code2inv/21.c +../data/benchmarks/sv-benchmarks/loops/trex03-2.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/20.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03.c +../data/benchmarks/accelerating_invariant_generation/svcomp/for_infinite_loop_2_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/gulwani_cegar1.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/loopv1.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/08.c +../data/benchmarks/sv-benchmarks/loop-new/count_by_nondet.c +../data/benchmarks/code2inv/116.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form22.c +../data/benchmarks/accelerating_invariant_generation/dagger/barbr.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar2.c +../data/benchmarks/code2inv/33.c +../data/benchmarks/accelerating_invariant_generation/cav/07.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/jm2006_variant_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/22.c +../data/benchmarks/accelerating_invariant_generation/svcomp/trex03_true.c +../data/benchmarks/code2inv/112.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/while_infinite_loop_2_true-unreach-call_false-termination.i.annot.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark43_conjunctive.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_8.c +../data/benchmarks/accelerating_invariant_generation/invgen/ken-imp.c +../data/benchmarks/accelerating_invariant_generation/cav/05.c +../data/benchmarks/accelerating_invariant_generation/crafted/phases_safe1.c +../data/benchmarks/sv-benchmarks/loop-lit/hhk2008.c +../data/benchmarks/sv-benchmarks/loop-invariants/odd.c +../data/benchmarks/sv-benchmarks/loop-invariants/eq1.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/rajamani_1.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/32.c +../data/benchmarks/code2inv/67.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cegar2.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/NetBSD_loop_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/MADWiFi-encode_ie_ok.c +../data/benchmarks/accelerating_invariant_generation/crafted/const_safe1.c +../data/benchmarks/code2inv/57.c +../data/benchmarks/code2inv/69.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark25_linear.c +../data/benchmarks/sv-benchmarks/loop-invariants/mod4.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/bind_expands_vars2.c +../data/benchmarks/code2inv/129.c +../data/benchmarks/code2inv/132.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark10_conjunctive.c +../data/benchmarks/code2inv/100.c +../data/benchmarks/accelerating_invariant_generation/crafted/simple_safe1.c +../data/benchmarks/code2inv/18.c +../data/benchmarks/code2inv/60.c +../data/benchmarks/sv-benchmarks/loop-lit/ddlm2013.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03_safe.c +../data/benchmarks/accelerating_invariant_generation/crafted/simple_safe2.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/decn.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sumt7.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop6_VeriMAP_true.c +../data/benchmarks/sv-benchmarks/loops/while_infinite_loop_2.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark49_linear.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03_safe.v.c +../data/benchmarks/accelerating_invariant_generation/svcomp/sum01_true.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark51_polynomial.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/count_up_down_true-unreach-call_true-termination.i.annot.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark32_linear.c +../data/benchmarks/code2inv/66.c +../data/benchmarks/code2inv/30.c +../data/benchmarks/code2inv/107.c +../data/benchmarks/code2inv/9.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/37.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/count_by_1_variant_true-unreach-call_true-termination.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark18_conjunctive.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop2_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum04_true-unreach-call_true-termination.i.annot.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sumt5.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/gulwani_cegar2.c +../data/benchmarks/accelerating_invariant_generation/svcomp/count_up_down_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/css2003_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/count_by_2_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/bhmr2007_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gj2007_true-unreach-call_true-termination.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark15_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-acceleration/simple_2-1.c +../data/benchmarks/code2inv/91.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/afnp2014_true-unreach-call.c +../data/benchmarks/code2inv/55.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/trex03_true-unreach-call.i.annot.c +../data/benchmarks/sv-benchmarks/loop-acceleration/diamond_1-1.c +../data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/ex1.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark24_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-new/gauss_sum.c +../data/benchmarks/code2inv/70.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03.c +../data/benchmarks/code2inv/56.c +../data/benchmarks/code2inv/49.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/barthe_merged_safe.c +../data/benchmarks/code2inv/78.c +../data/benchmarks/accelerating_invariant_generation/dagger/bk-nat.c +../data/benchmarks/accelerating_invariant_generation/invgen/gulwani_cegar2.c +../data/benchmarks/sv-benchmarks/loop-invariants/bin-suffix-5.c +../data/benchmarks/accelerating_invariant_generation/invgen/sendmail-mime-fromqp.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/fib_merged_safe.c +../data/benchmarks/code2inv/131.c +../data/benchmarks/sv-benchmarks/loop-new/count_by_2.c +../data/benchmarks/code2inv/43.c +../data/benchmarks/code2inv/71.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/14.c +../data/benchmarks/accelerating_invariant_generation/crafted/simple_safe3.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark47_linear.c +../data/benchmarks/code2inv/46.c +../data/benchmarks/accelerating_invariant_generation/crafted/underapprox_safe2.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/terminator_02_true-unreach-call_true-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/MADWiFi-encode_ie_ok_true-unreach-call_true-termination.c +../data/benchmarks/sv-benchmarks/loop-lit/gj2007.c +../data/benchmarks/sv-benchmarks/loop-invgen/MADWiFi-encode_ie_ok.c +../data/benchmarks/sv-benchmarks/loop-invgen/sendmail-close-angle.c +../data/benchmarks/code2inv/58.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark50_linear.c +../data/benchmarks/sv-benchmarks/loop-lit/afnp2014.c +../data/benchmarks/code2inv/3.c +../data/benchmarks/code2inv/127.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_12.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark02_linear.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/13.c +../data/benchmarks/code2inv/93.c +../data/benchmarks/accelerating_invariant_generation/crafted/multivar_safe1.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/up-nested.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/w1.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs13_VeriMAP_true.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark52_polynomial.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gsv2008_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop7_VeriMAP_true.c +../data/benchmarks/accelerating_invariant_generation/svcomp/terminator_02_true.c +../data/benchmarks/code2inv/108.c +../data/benchmarks/accelerating_invariant_generation/cav/39.c +../data/benchmarks/code2inv/10.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark38_conjunctive.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/ex14n.v.c +../data/benchmarks/code2inv/48.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark39_conjunctive.c +../data/benchmarks/code2inv/105.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/count_by_1_true-unreach-call_true-termination.c +../data/benchmarks/code2inv/19.c +../data/benchmarks/accelerating_invariant_generation/invgen/simple_if.c +../data/benchmarks/sv-benchmarks/loop-industry-pattern/mod3.c +../data/benchmarks/code2inv/45.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark23_conjunctive.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop17_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum03_true-unreach-call_false-termination.i.annot.c +../data/benchmarks/code2inv/20.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/10.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/46.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs7_VeriMAP_true.c +../data/benchmarks/accelerating_invariant_generation/invgen/simple.c +../data/benchmarks/sv-benchmarks/loop-acceleration/phases_1-1.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark45_disjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark46_disjunctive.c +../data/benchmarks/code2inv/89.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop29_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/w2.c +../data/benchmarks/code2inv/109.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/split.c +../data/benchmarks/code2inv/40.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark36_conjunctive.c +../data/benchmarks/sv-benchmarks/loops/for_infinite_loop_2.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/terminator_03_true-unreach-call_true-termination.i.annot.c +../data/benchmarks/sv-benchmarks/loop-lit/bhmr2007.c +../data/benchmarks/sv-benchmarks/loop-lit/cggmp2005_variant.c +../data/benchmarks/code2inv/88.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/30.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark06_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark37_conjunctive.c +../data/benchmarks/accelerating_invariant_generation/dagger/barbrprime.c +../data/benchmarks/sv-benchmarks/loops/sum03-2.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/11.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark26_linear.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark29_linear.c +../data/benchmarks/code2inv/121.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark11_linear.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop14_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig3.v.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark21_disjunctive.c +../data/benchmarks/accelerating_invariant_generation/dagger/swim.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/dec.c +../data/benchmarks/code2inv/25.c +../data/benchmarks/code2inv/37.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark16_conjunctive.c +../data/benchmarks/code2inv/1.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark13_conjunctive.c +../data/benchmarks/sv-benchmarks/loops/terminator_03-2.c +../data/benchmarks/accelerating_invariant_generation/cav/xy10.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark22_conjunctive.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig9.c +../data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/popl.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/count_by_k_true-unreach-call_true-termination.c +../data/benchmarks/sv-benchmarks/loop-acceleration/multivar_1-1.c +../data/benchmarks/code2inv/85.c +../data/benchmarks/code2inv/82.c +../data/benchmarks/code2inv/79.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/04.c +../data/benchmarks/code2inv/35.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/41.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/loop4_merged_safe.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sum_natnum.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig1.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/for_infinite_loop_1_true-unreach-call_false-termination.i.annot.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-invgen/sendmail-close-angle_true-unreach-call_true-termination.c +../data/benchmarks/accelerating_invariant_generation/cav/35.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/sendmail-mime-fromqp.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form25.c +../data/benchmarks/code2inv/92.c +../data/benchmarks/sv-benchmarks/loop-lit/gj2007b.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark34_conjunctive.c +../data/benchmarks/code2inv/119.c +../data/benchmarks/sv-benchmarks/loops/terminator_02-2.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark33_linear.c +../data/benchmarks/sv-benchmarks/loop-acceleration/underapprox_1-2.c +../data/benchmarks/accelerating_invariant_generation/invgen/gulwani_cegar1.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark12_linear.c +../data/benchmarks/code2inv/87.c +../data/benchmarks/code2inv/7.c +../data/benchmarks/code2inv/11.c +../data/benchmarks/accelerating_invariant_generation/crafted/underapprox_unsafe1.c +../data/benchmarks/sv-benchmarks/loop-lit/cggmp2005.c +../data/benchmarks/code2inv/124.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gr2006_true-unreach-call_true-termination.c +../data/benchmarks/code2inv/110.c +../data/benchmarks/code2inv/111.c +../data/benchmarks/accelerating_invariant_generation/dagger/bkley.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop16_VeriMAP_true.c +../data/benchmarks/code2inv/13.c +../data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/ex2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/diamond_2-2.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/43.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04_safe.c +../data/benchmarks/accelerating_invariant_generation/invgen/NetBSD_g_Ctoc.c +../data/benchmarks/sv-benchmarks/loops/while_infinite_loop_1.c +../data/benchmarks/accelerating_invariant_generation/dagger/cars.c +../data/benchmarks/code2inv/63.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/cggmp2005_true-unreach-call_true-termination.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark30_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-acceleration/simple_3-2.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/42.c +../data/benchmarks/sv-benchmarks/loop-acceleration/simple_4-2.c +../data/benchmarks/code2inv/95.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/loopv3.c +../data/benchmarks/code2inv/118.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop10_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/while_infinite_loop_1_true-unreach-call_false-termination.i.annot.c +../data/benchmarks/code2inv/38.c +../data/benchmarks/code2inv/133.c +../data/benchmarks/accelerating_invariant_generation/dagger/swim1.c +../data/benchmarks/code2inv/99.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04n.c +../data/benchmarks/sv-benchmarks/loop-lit/gr2006.c +../data/benchmarks/code2inv/12.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01.v.c +../data/benchmarks/code2inv/120.c +../data/benchmarks/code2inv/8.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/afnp2014_true-unreach-call_true-termination.c +../data/benchmarks/code2inv/59.c +../data/benchmarks/sv-benchmarks/loop-acceleration/simple_1-2.c +../data/benchmarks/code2inv/94.c +../data/benchmarks/sv-benchmarks/loop-invariants/even.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/count_by_nondet_true-unreach-call_true-termination.c +../data/benchmarks/code2inv/36.c +../data/benchmarks/code2inv/81.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark41_conjunctive.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/NetBSD_g_Ctoc.c +../data/benchmarks/accelerating_invariant_generation/crafted/diamond_safe1.c +../data/benchmarks/sv-benchmarks/loops/sum04-2.c +../data/benchmarks/sv-benchmarks/loop-acceleration/const_1-1.c +../data/benchmarks/code2inv/14.c +../data/benchmarks/sv-benchmarks/loops/sum01-2.c +../data/benchmarks/code2inv/90.c +../data/benchmarks/code2inv/125.c +../data/benchmarks/code2inv/16.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/05.c +../data/benchmarks/sv-benchmarks/loop-lit/gsv2008.c +../data/benchmarks/sv-benchmarks/loop-acceleration/overflow_1-1.c +../data/benchmarks/code2inv/74.c +../data/benchmarks/code2inv/47.c +../data/benchmarks/code2inv/28.c +../data/benchmarks/code2inv/34.c +../data/benchmarks/accelerating_invariant_generation/invgen/split.c +../data/benchmarks/sv-benchmarks/loop-crafted/simple_vardep_2.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark40_polynomial.c +../data/benchmarks/code2inv/113.c +../data/benchmarks/accelerating_invariant_generation/cav/19.c +../data/benchmarks/code2inv/80.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/39.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark35_linear.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/sendmail-close-angle.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/simple.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop4_VeriMAP_true.c +../data/benchmarks/code2inv/76.c +../data/benchmarks/sv-benchmarks/loop-new/count_by_k.c +../data/benchmarks/code2inv/77.c +../data/benchmarks/accelerating_invariant_generation/svcomp/sum04_true.c +../data/benchmarks/code2inv/83.c +../data/benchmarks/accelerating_invariant_generation/dagger/fig2.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/NetBSD_loop.c +../data/benchmarks/accelerating_invariant_generation/cav/substring1.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03.v.c +../data/benchmarks/accelerating_invariant_generation/cav/gulv.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark27_linear.c +../data/benchmarks/accelerating_invariant_generation/cav/pldi082_unbounded.c +../data/benchmarks/accelerating_invariant_generation/dagger/efm.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark19_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-acceleration/phases_2-2.c +../data/benchmarks/accelerating_invariant_generation/crafted/simple_safe4.c +../data/benchmarks/sv-benchmarks/loop-new/half.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/hhk2008_true-unreach-call_true-termination.c +../data/benchmarks/accelerating_invariant_generation/dagger/lifo.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_6.c +../data/benchmarks/code2inv/52.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/01.c +../data/benchmarks/accelerating_invariant_generation/cav/20.c +../data/benchmarks/LinearArbitrary-SeaHorn/sharma_splitter/cav.c +../data/benchmarks/code2inv/73.c +../data/benchmarks/LinearArbitrary-SeaHorn/llreve/barthe2_merged_safe.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark17_conjunctive.c +../data/benchmarks/accelerating_invariant_generation/dagger/lifnat.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs8_VeriMAP_true.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/iftelse.c +../data/benchmarks/code2inv/64.c +../data/benchmarks/code2inv/122.c +../data/benchmarks/code2inv/41.c +../data/benchmarks/sv-benchmarks/loop-invgen/NetBSD_loop.c +../data/benchmarks/code2inv/2.c +../data/benchmarks/accelerating_invariant_generation/dagger/lifnatprime.c +../data/benchmarks/code2inv/15.c +../data/benchmarks/code2inv/115.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sumt8.c +../data/benchmarks/code2inv/84.c +../data/benchmarks/accelerating_invariant_generation/cav/37.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark08_conjunctive.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sumt9.c +../data/benchmarks/sv-benchmarks/loops/count_up_down-1.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/18.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/gj2007b_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/jm2006_true-unreach-call_true-termination.c +../data/benchmarks/accelerating_invariant_generation/invgen/NetBSD_loop_int.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/NetBSD_loop_int.c +../data/benchmarks/code2inv/29.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sumt6.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark48_linear.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/trex03_safe.v.c +../data/benchmarks/code2inv/54.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/cggmp2005_variant_true-unreach-call_true-termination.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/mono-crafted_10.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/incn.v.c +../data/benchmarks/code2inv/128.c +../data/benchmarks/code2inv/130.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/incn.c +../data/benchmarks/accelerating_invariant_generation/invgen/MADWiFi-encode_ie_ok.c +../data/benchmarks/code2inv/17.c +../data/benchmarks/accelerating_invariant_generation/svcomp/while_infinite_loop_2_true.c +../data/benchmarks/sv-benchmarks/loop-invariants/eq2.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-lit/ddlm2013_true-unreach-call.c +../data/benchmarks/accelerating_invariant_generation/svcomp/while_infinite_loop_1_true.c +../data/benchmarks/accelerating_invariant_generation/invgen/sendmail-close-angle.c +../data/benchmarks/code2inv/5.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark42_conjunctive.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/for_infinite_loop_2_true-unreach-call_false-termination.i.annot.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark09_conjunctive.c +../data/benchmarks/code2inv/103.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark05_conjunctive.c +../data/benchmarks/sv-benchmarks/loop-lit/css2003.c +../data/benchmarks/accelerating_invariant_generation/dagger/seesaw.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop13_VeriMAP_true.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark03_linear.c +../data/benchmarks/code2inv/65.c +../data/benchmarks/accelerating_invariant_generation/dagger/substring1.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum03_safe.c +../data/benchmarks/code2inv/50.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/07.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/cggmp2005_true-unreach-call.c +../data/benchmarks/accelerating_invariant_generation/crafted/diamond_safe2.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark04_conjunctive.c +../data/benchmarks/accelerating_invariant_generation/invgen/up-nested.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum01_safe.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/inc.c +../data/benchmarks/code2inv/97.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs15_VeriMAP_true.c +../data/benchmarks/sv-benchmarks/loop-lit/jm2006_variant.c +../data/benchmarks/code2inv/117.c +../data/benchmarks/sv-benchmarks/loop-new/count_by_1_variant.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loop-new/half_true-unreach-call_true-termination.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop1_VeriMAP_true.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark20_conjunctive.c +../data/benchmarks/code2inv/123.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark14_linear.c +../data/benchmarks/code2inv/68.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/21.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark31_disjunctive.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testabs12_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/gulwani_fig1a.c +../data/benchmarks/code2inv/126.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/sum04n.v.c +../data/benchmarks/LinearArbitrary-SeaHorn/loops/loops/sum01_true-unreach-call_true-termination.i.annot.c +../data/benchmarks/accelerating_invariant_generation/crafted/overflow_safe1.c +../data/benchmarks/code2inv/98.c +../data/benchmarks/code2inv/24.c +../data/benchmarks/code2inv/114.c +../data/benchmarks/sv-benchmarks/loop-zilu/benchmark53_polynomial.c +../data/benchmarks/code2inv/104.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/38.c +../data/benchmarks/code2inv/6.c +../data/benchmarks/LinearArbitrary-SeaHorn/invgen/sendmail-mime7to8_arr_three_chars_no_test_ok.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig3.c +../data/benchmarks/accelerating_invariant_generation/dagger/ex1.c +../data/benchmarks/code2inv/96.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/fig1.v.c +../data/benchmarks/code2inv/51.c +../data/benchmarks/sv-benchmarks/loop-invariants/const.c +../data/benchmarks/code2inv/102.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/15.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop9_VeriMAP_true.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/44.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/ICE/benchmarks/form27.c +../data/benchmarks/LinearArbitrary-SeaHorn/VeriMAP/TRACER-testloop11_VeriMAP_true.c +../data/benchmarks/accelerating_invariant_generation/invgen/sendmail-mime7to8_arr_three_chars_no_test_ok.c +../data/benchmarks/sv-benchmarks/loops-crafted-1/sumt2.c +../data/benchmarks/sv-benchmarks/loop-lit/jm2006.c +../data/benchmarks/LinearArbitrary-SeaHorn/pie/hola/02.c \ No newline at end of file diff --git a/experiments/positive_termination_benchmarks.txt b/experiments/positive_termination_benchmarks.txt new file mode 100644 index 000000000..129d5af91 --- /dev/null +++ b/experiments/positive_termination_benchmarks.txt @@ -0,0 +1,281 @@ +../data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_1_T.c +../data/benchmarks/non_termination/loop/Incorrect_Bit_Calculation_1_T.c +../data/benchmarks/non_termination/loop/Incorrect_Bit_Calculation_2_T.c +../data/benchmarks/non_termination/loop/Incorrect_Bit_Calculation_3_T.c +../data/benchmarks/non_termination/loop/Incorrect_Initialization_4_T.c +../data/benchmarks/non_termination/loop/Incorrect_Update_for_Loop_Iterator_1_T.c +../data/benchmarks/non_termination/loop/Incorrect_Update_for_Loop_Iterator_2_T.c +../data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_2_T.c +../data/benchmarks/non_termination/loop/Signed_Overflow_Error_1_T.c +../data/benchmarks/non_termination/loop/Signed_Overflow_Error_2_T.c +../data/benchmarks/non_termination/loop/Signed_Overflow_Error_3_T.c +../data/benchmarks/non_termination/loop/Type_Conversion_in_Comparison_1_T.c +../data/benchmarks/non_termination/loop/Type_Conversion_in_Comparison_2_T.c +../data/benchmarks/non_termination/loop/Undefined_Behavior_3_T.c +../data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_1_T.c +../data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_2_T.c +../data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_3_T.c +../data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_4_T.c +../data/benchmarks/non_termination/loop/Using_Erroneous_Condition_2_T.c +../data/benchmarks/tpdb/C/AProVE_numeric/svcomp_java_Break.c +../data/benchmarks/tpdb/C/AProVE_numeric/svcomp_java_Continue1.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-counterex1a_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-cousot9_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-ndecr_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-random1d_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-rsd_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-speedpldi2_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-speedpldi3_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-speedpldi4_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-terminate_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-wise_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/BradleyMannaSipma-ICALP2005-Fig1_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron12_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron1_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron4_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron6_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-random1d_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex1.02_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex1.03_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex1.04_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex1.05_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.01_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.07_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.08_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.10_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.13_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.16_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.20_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.22_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.01_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.03_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.04_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.05_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.08_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.09_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex4.01_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/CookSeeZuleger-TACAS2013-Fig1_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/CookSeeZuleger-TACAS2013-Fig7a_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/CookSeeZuleger-TACAS2013-Fig7b_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/GopanReps-CAV2006-Fig1a_true-termination.c.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/GulwaniJainKoskinen-PLDI2009-Fig1_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig2_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig5_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig6_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig8_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig9_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/KroeningSharyginaTsitovichWintersteiger-CAV2010-Ex_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/KroeningSharyginaTsitovichWintersteiger-CAV2010-Fig1_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeikeHeizmann-TACAS2014-Ex9_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeikeHeizmann-WST2014-Ex9_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/Masse-VMCAI2014-Fig1b_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/PodelskiRybalchenko-LICS2004-Fig2_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/PodelskiRybalchenko-TACAS2011-Fig4_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/TelAviv-Amir-Minimum_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/Toulouse-BranchesToLoop_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/Toulouse-MultiBranchesToLoop_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/UrbanMine-ESOP2014-Fig3_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/aaron2_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/aaron3_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/genady_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/min_rf_true-termination.c +../data/benchmarks/tpdb/C/Ultimate/Bangalore_true-termination.c +../data/benchmarks/tpdb/C/Ultimate/Cairo_true-termination.c +../data/benchmarks/tpdb/C/Ultimate/Collatz_unknown-termination.c +../data/benchmarks/tpdb/C/Ultimate/Gothenburg_true-termination.c +../data/benchmarks/tpdb/C/Ultimate/Lobnya-Boolean-Reordered_true-termination.c +../data/benchmarks/tpdb/C/Ultimate/Mysore_true-termination.c +../data/benchmarks/tpdb/C/Ultimate/Nyala-2lex_true-termination.c +../data/benchmarks/tpdb/C/Ultimate/Parallel_true-termination.c +../data/benchmarks/tpdb/C/Ultimate/Pure3Phase_true-termination.c +../data/benchmarks/tpdb/C/Ultimate/Stockholm_true-termination.c +../data/benchmarks/tpdb/C/Ultimate/WhileFalse_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/2Nested_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/4NestedWith3Variables_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-counterex1a_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-cousot9_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-exmini_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-ndecr_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-random1d_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-random2d_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-rsd_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-speedFails4_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-speedpldi2_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-speedpldi3_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-speedpldi4_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-terminate_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-wise_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Bangalore_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Ben-Amram-LMCS2010-Ex2.3_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Benghazi_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/BradleyMannaSipma-CAV2005-Fig1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/BradleyMannaSipma-ICALP2005-Fig1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/BrockschmidtCookFuhs-CAV2013-Introduction_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Cairo_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron12_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron4_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron6_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-random1d_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-random2d_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.01_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.02_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.03_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.04_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.05_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.01_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.06_false-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.07_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.08_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.09_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.10_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.11_false-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.13_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.16_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.18_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.19_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.20_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.21_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.22_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.01_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.03_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.04_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.05_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.07_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.08_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.09_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.10_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex4.01_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Fig1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChooseLife.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ColonSipma-TACAS2001-Fig1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ComplInterv.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig7a_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig7b_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig8a-modified_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig8a_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig8b_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Copenhagen_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/DivMinus.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/DoubleNeg.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Et1.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Factorial.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Fibonacci.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/GopanReps-CAV2006-Fig1a_true-termination.c.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Gothenburg_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/GulavaniGulwani-CAV2008-Fig1a_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/GulavaniGulwani-CAV2008-Fig1c_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/GulwaniJainKoskinen-PLDI2009-Fig1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig4_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig6_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig8_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig9_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/IntPath.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/KroeningSharyginaTsitovichWintersteiger-CAV2010-Ex_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Ex1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Ex7_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Ex8_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Ex9_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Fig1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-WST2014-Ex5_false-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Lobnya-Boolean-Reordered_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/LogMult.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Masse-VMCAI2014-Ex6_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Masse-VMCAI2014-Fig1a_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Masse-VMCAI2014-Fig1b_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/McCarthyIterative.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/MenloPark_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/MinusBuiltIn.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/MinusMin.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/MirrorInterv.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Mysore_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_24.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/NoriSharma-FSE2013-Fig7_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/NoriSharma-FSE2013-Fig8_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Nyala-2lex_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Overflow.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Parallel_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA10.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA4.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA5.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA6.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA7.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA8.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA9.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB1.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB11.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB2.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB3.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB4.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB6.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB7.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaC3.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaC7.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaC9.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Piecewise_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PlusSwap.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-LICS2004-Fig2-TACAS2011-Fig3_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-TACAS2011-Fig1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-TACAS2011-Fig4_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-VMCAI2004-Ex1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-VMCAI2004-Ex2_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Pure2Phase_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Pure3Phase_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Stockholm_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Swingers.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/TelAviv-Amir-Minimum_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Thun_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Toulouse-BranchesToLoop_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Toulouse-MultiBranchesToLoop_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/UrbanMine-ESOP2014-Fig3_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Waldkirch_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileDecr.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileFalse_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/aaron2_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/aaron3_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/easy1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/easy2_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/genady_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/min_rf_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.04.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.05.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.06.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.07.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.08.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.09_assume.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.10.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.01.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.02.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.03-no-inv_assume.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.03_assume.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.04.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.05.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.06.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.07.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.09-no-inv_assume.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.09_assume.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.10.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.11.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.12.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.13.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_c.03.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_c.07.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_easySum.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_ex1.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_ex2.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_ex3a.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_ex3b.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_fermat.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_flag.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_java_AG313.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_java_Break.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_java_Continue1.c +../data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Bangalore_v4_true-termination.c +../data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Benghazi_nondet_true-termination.c +../data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Copenhagen_disj_true-termination.c +../data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Gothenburg_v2_true-termination.c +../data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Hanoi_plus_false-termination.c +../data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/McCarthy91_Iteration_true-termination.c +../data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Singapore_true-termination.c \ No newline at end of file diff --git a/experiments/recursion_pre_post.txt b/experiments/recursion_pre_post.txt new file mode 100644 index 000000000..63157b965 --- /dev/null +++ b/experiments/recursion_pre_post.txt @@ -0,0 +1,31 @@ +../../sv-benchmarks/c/recursive/Ackermann01-2.c +../../sv-benchmarks/c/recursive/Ackermann03.c +../../sv-benchmarks/c/recursive/Ackermann04.c +../../sv-benchmarks/c/recursive/Addition01-2.c +../../sv-benchmarks/c/recursive/Addition03-1.c +../../sv-benchmarks/c/recursive/EvenOdd01-1.c +../../sv-benchmarks/c/recursive/Fibonacci01-1.c +../../sv-benchmarks/c/recursive/Fibonacci02.c +../../sv-benchmarks/c/recursive/Fibonacci03.c +../../sv-benchmarks/c/recursive/McCarthy91-2.c +../../sv-benchmarks/c/recursive/MultCommutative-2.c +../../sv-benchmarks/c/recursive/Primes.c +../../sv-benchmarks/c/recursive/gcd01-1.c +../../sv-benchmarks/c/recursive/gcd02.c +../../sv-benchmarks/c/recursive/recHanoi01.c +../../sv-benchmarks/c/recursive/recHanoi02-2.c +../../sv-benchmarks/c/recursive/recHanoi03-2.c +../../sv-benchmarks/c/recursive-simple/fibo_15-1.c +../../sv-benchmarks/c/recursive-simple/fibo_20-2.c +../../sv-benchmarks/c/recursive-simple/fibo_25-2.c +../../sv-benchmarks/c/recursive-simple/fibo_2calls_10-1.c +../../sv-benchmarks/c/recursive-simple/fibo_2calls_15-2.c +../../sv-benchmarks/c/recursive-simple/fibo_2calls_20-2.c +../../sv-benchmarks/c/recursive-simple/fibo_2calls_25-2.c +../../sv-benchmarks/c/recursive-simple/id2_b2_o3.c +../../sv-benchmarks/c/recursive-simple/id2_b3_o5.c +../../sv-benchmarks/c/recursive-simple/id2_b5_o10.c +../../sv-benchmarks/c/recursive-simple/id_b2_o3.c +../../sv-benchmarks/c/recursive-simple/id_b3_o5-2.c +../../sv-benchmarks/c/recursive-simple/id_b5_o10-2.c +../../sv-benchmarks/c/recursive-simple/sum_non_eq-2.c \ No newline at end of file diff --git a/experiments/recursive_functions.txt b/experiments/recursive_functions.txt new file mode 100644 index 000000000..84a412f16 --- /dev/null +++ b/experiments/recursive_functions.txt @@ -0,0 +1,31 @@ +../data/benchmarks/sv-benchmarks/recursive/Ackermann01-2.c +../data/benchmarks/sv-benchmarks/recursive/Ackermann03.c +../data/benchmarks/sv-benchmarks/recursive/Ackermann04.c +../data/benchmarks/sv-benchmarks/recursive/Addition01-2.c +../data/benchmarks/sv-benchmarks/recursive/Addition03-1.c +../data/benchmarks/sv-benchmarks/recursive/EvenOdd01-1.c +../data/benchmarks/sv-benchmarks/recursive/Fibonacci01-1.c +../data/benchmarks/sv-benchmarks/recursive/Fibonacci02.c +../data/benchmarks/sv-benchmarks/recursive/Fibonacci03.c +../data/benchmarks/sv-benchmarks/recursive/McCarthy91-2.c +../data/benchmarks/sv-benchmarks/recursive/MultCommutative-2.c +../data/benchmarks/sv-benchmarks/recursive/Primes.c +../data/benchmarks/sv-benchmarks/recursive/gcd01-1.c +../data/benchmarks/sv-benchmarks/recursive/gcd02.c +../data/benchmarks/sv-benchmarks/recursive/recHanoi01.c +../data/benchmarks/sv-benchmarks/recursive/recHanoi02-2.c +../data/benchmarks/sv-benchmarks/recursive/recHanoi03-2.c +../data/benchmarks/sv-benchmarks/recursive-simple/fibo_15-1.c +../data/benchmarks/sv-benchmarks/recursive-simple/fibo_20-2.c +../data/benchmarks/sv-benchmarks/recursive-simple/fibo_25-2.c +../data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_10-1.c +../data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_15-2.c +../data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_20-2.c +../data/benchmarks/sv-benchmarks/recursive-simple/fibo_2calls_25-2.c +../data/benchmarks/sv-benchmarks/recursive-simple/id2_b2_o3.c +../data/benchmarks/sv-benchmarks/recursive-simple/id2_b3_o5.c +../data/benchmarks/sv-benchmarks/recursive-simple/id2_b5_o10.c +../data/benchmarks/sv-benchmarks/recursive-simple/id_b2_o3.c +../data/benchmarks/sv-benchmarks/recursive-simple/id_b3_o5-2.c +../data/benchmarks/sv-benchmarks/recursive-simple/id_b5_o10-2.c +../data/benchmarks/sv-benchmarks/recursive-simple/sum_non_eq-2.c \ No newline at end of file diff --git a/experiments/termination.txt b/experiments/termination.txt new file mode 100644 index 000000000..129d5af91 --- /dev/null +++ b/experiments/termination.txt @@ -0,0 +1,281 @@ +../data/benchmarks/non_termination/loop/Adding_Subtracting_Zero_1_T.c +../data/benchmarks/non_termination/loop/Incorrect_Bit_Calculation_1_T.c +../data/benchmarks/non_termination/loop/Incorrect_Bit_Calculation_2_T.c +../data/benchmarks/non_termination/loop/Incorrect_Bit_Calculation_3_T.c +../data/benchmarks/non_termination/loop/Incorrect_Initialization_4_T.c +../data/benchmarks/non_termination/loop/Incorrect_Update_for_Loop_Iterator_1_T.c +../data/benchmarks/non_termination/loop/Incorrect_Update_for_Loop_Iterator_2_T.c +../data/benchmarks/non_termination/loop/Missing_Corner-case_Handling_2_T.c +../data/benchmarks/non_termination/loop/Signed_Overflow_Error_1_T.c +../data/benchmarks/non_termination/loop/Signed_Overflow_Error_2_T.c +../data/benchmarks/non_termination/loop/Signed_Overflow_Error_3_T.c +../data/benchmarks/non_termination/loop/Type_Conversion_in_Comparison_1_T.c +../data/benchmarks/non_termination/loop/Type_Conversion_in_Comparison_2_T.c +../data/benchmarks/non_termination/loop/Undefined_Behavior_3_T.c +../data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_1_T.c +../data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_2_T.c +../data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_3_T.c +../data/benchmarks/non_termination/loop/Unsigned_Wraparound_Error_4_T.c +../data/benchmarks/non_termination/loop/Using_Erroneous_Condition_2_T.c +../data/benchmarks/tpdb/C/AProVE_numeric/svcomp_java_Break.c +../data/benchmarks/tpdb/C/AProVE_numeric/svcomp_java_Continue1.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-counterex1a_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-cousot9_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-ndecr_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-random1d_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-rsd_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-speedpldi2_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-speedpldi3_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-speedpldi4_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-terminate_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/AliasDarteFeautrierGonnord-SAS2010-wise_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/BradleyMannaSipma-ICALP2005-Fig1_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron12_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron1_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron4_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron6_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChawdharyCookGulwaniSagivYang-ESOP2008-random1d_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex1.02_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex1.03_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex1.04_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex1.05_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.01_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.07_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.08_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.10_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.13_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.16_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.20_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex2.22_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.01_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.03_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.04_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.05_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.08_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex3.09_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/ChenFlurMukhopadhyay-SAS2012-Ex4.01_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/CookSeeZuleger-TACAS2013-Fig1_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/CookSeeZuleger-TACAS2013-Fig7a_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/CookSeeZuleger-TACAS2013-Fig7b_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/GopanReps-CAV2006-Fig1a_true-termination.c.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/GulwaniJainKoskinen-PLDI2009-Fig1_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig2_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig5_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig6_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig8_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/HeizmannHoenickeLeikePodelski-ATVA2013-Fig9_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/KroeningSharyginaTsitovichWintersteiger-CAV2010-Ex_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/KroeningSharyginaTsitovichWintersteiger-CAV2010-Fig1_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeikeHeizmann-TACAS2014-Ex9_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/LeikeHeizmann-WST2014-Ex9_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/Masse-VMCAI2014-Fig1b_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/PodelskiRybalchenko-LICS2004-Fig2_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/PodelskiRybalchenko-TACAS2011-Fig4_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/TelAviv-Amir-Minimum_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/Toulouse-BranchesToLoop_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/Toulouse-MultiBranchesToLoop_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/UrbanMine-ESOP2014-Fig3_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/aaron2_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/aaron3_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/genady_true-termination.c +../data/benchmarks/tpdb/C/SV-COMP_Termination_Category/min_rf_true-termination.c +../data/benchmarks/tpdb/C/Ultimate/Bangalore_true-termination.c +../data/benchmarks/tpdb/C/Ultimate/Cairo_true-termination.c +../data/benchmarks/tpdb/C/Ultimate/Collatz_unknown-termination.c +../data/benchmarks/tpdb/C/Ultimate/Gothenburg_true-termination.c +../data/benchmarks/tpdb/C/Ultimate/Lobnya-Boolean-Reordered_true-termination.c +../data/benchmarks/tpdb/C/Ultimate/Mysore_true-termination.c +../data/benchmarks/tpdb/C/Ultimate/Nyala-2lex_true-termination.c +../data/benchmarks/tpdb/C/Ultimate/Parallel_true-termination.c +../data/benchmarks/tpdb/C/Ultimate/Pure3Phase_true-termination.c +../data/benchmarks/tpdb/C/Ultimate/Stockholm_true-termination.c +../data/benchmarks/tpdb/C/Ultimate/WhileFalse_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/2Nested_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/4NestedWith3Variables_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-counterex1a_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-cousot9_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-exmini_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-ndecr_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-random1d_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-random2d_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-rsd_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-speedFails4_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-speedpldi2_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-speedpldi3_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-speedpldi4_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-terminate_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/AliasDarteFeautrierGonnord-SAS2010-wise_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Bangalore_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Ben-Amram-LMCS2010-Ex2.3_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Benghazi_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/BradleyMannaSipma-CAV2005-Fig1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/BradleyMannaSipma-ICALP2005-Fig1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/BrockschmidtCookFuhs-CAV2013-Introduction_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Cairo_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron12_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron4_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-aaron6_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-random1d_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChawdharyCookGulwaniSagivYang-ESOP2008-random2d_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.01_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.02_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.03_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.04_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex1.05_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.01_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.06_false-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.07_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.08_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.09_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.10_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.11_false-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.13_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.16_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.18_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.19_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.20_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.21_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex2.22_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.01_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.03_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.04_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.05_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.07_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.08_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.09_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex3.10_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Ex4.01_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChenFlurMukhopadhyay-SAS2012-Fig1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ChooseLife.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ColonSipma-TACAS2001-Fig1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/ComplInterv.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig7a_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig7b_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig8a-modified_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig8a_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/CookSeeZuleger-TACAS2013-Fig8b_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Copenhagen_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/DivMinus.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/DoubleNeg.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Et1.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Factorial.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Fibonacci.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/GopanReps-CAV2006-Fig1a_true-termination.c.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Gothenburg_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/GulavaniGulwani-CAV2008-Fig1a_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/GulavaniGulwani-CAV2008-Fig1c_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/GulwaniJainKoskinen-PLDI2009-Fig1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig4_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig6_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig8_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/HeizmannHoenickeLeikePodelski-ATVA2013-Fig9_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/IntPath.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/KroeningSharyginaTsitovichWintersteiger-CAV2010-Ex_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Ex1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Ex7_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Ex8_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Ex9_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-TACAS2014-Fig1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/LeikeHeizmann-WST2014-Ex5_false-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Lobnya-Boolean-Reordered_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/LogMult.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Masse-VMCAI2014-Ex6_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Masse-VMCAI2014-Fig1a_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Masse-VMCAI2014-Fig1b_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/McCarthyIterative.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/MenloPark_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/MinusBuiltIn.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/MinusMin.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/MirrorInterv.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Mysore_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/NO_24.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/NoriSharma-FSE2013-Fig7_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/NoriSharma-FSE2013-Fig8_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Nyala-2lex_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Overflow.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Parallel_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA10.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA4.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA5.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA6.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA7.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA8.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaA9.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB1.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB11.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB2.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB3.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB4.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB6.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaB7.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaC3.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaC7.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PastaC9.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Piecewise_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PlusSwap.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-LICS2004-Fig2-TACAS2011-Fig3_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-TACAS2011-Fig1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-TACAS2011-Fig4_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-VMCAI2004-Ex1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/PodelskiRybalchenko-VMCAI2004-Ex2_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Pure2Phase_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Pure3Phase_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Stockholm_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Swingers.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/TelAviv-Amir-Minimum_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Thun_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Toulouse-BranchesToLoop_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Toulouse-MultiBranchesToLoop_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/UrbanMine-ESOP2014-Fig3_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/Waldkirch_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileDecr.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/WhileFalse_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/aaron2_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/aaron3_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/easy1_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/easy2_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/genady_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/min_rf_true-termination.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.04.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.05.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.06.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.07.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.08.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.09_assume.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_a.10.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.01.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.02.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.03-no-inv_assume.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.03_assume.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.04.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.05.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.06.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.07.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.09-no-inv_assume.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.09_assume.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.10.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.11.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.12.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_b.13.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_c.03.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_c.07.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_easySum.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_ex1.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_ex2.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_ex3a.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_ex3b.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_fermat.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_flag.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_java_AG313.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_java_Break.c +../data/benchmarks/tpdb/C_Integer/Stroeder_15/svcomp_java_Continue1.c +../data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Bangalore_v4_true-termination.c +../data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Benghazi_nondet_true-termination.c +../data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Copenhagen_disj_true-termination.c +../data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Gothenburg_v2_true-termination.c +../data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Hanoi_plus_false-termination.c +../data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/McCarthy91_Iteration_true-termination.c +../data/benchmarks/tpdb/C_Integer/Ton_Chanh_15/Singapore_true-termination.c \ No newline at end of file diff --git a/logs/README.md b/logs/README.md new file mode 100644 index 000000000..0c072299e --- /dev/null +++ b/logs/README.md @@ -0,0 +1 @@ +Toolchain outputs will be written to this directory \ No newline at end of file diff --git a/src/Dockerfile b/src/Dockerfile new file mode 100644 index 000000000..e9a80b503 --- /dev/null +++ b/src/Dockerfile @@ -0,0 +1,66 @@ +FROM ubuntu:20.04 + +ENV TZ=Asia/Kolkata \ + DEBIAN_FRONTEND=noninteractive + +RUN apt-get update \ + && apt-get install -y build-essential \ + && apt-get install -y wget autoconf graphviz libgmp-dev pkg-config \ + && apt-get install -y libcairo2-dev libexpat1-dev libgtk-3-dev libgtksourceview-3.0-dev \ + && apt-get install -y opam \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* + +ARG USER_ID +ARG GROUP_ID + +RUN addgroup --gid $GROUP_ID user +RUN useradd -ms /usr/bin/bash -l -u $USER_ID -g $GROUP_ID user + +RUN mkdir -p /home/user +RUN chown -R user:user /home/user +USER user + +# Install Conda +ENV CONDA_DIR=/home/user/miniconda3 +RUN mkdir -p $CONDA_DIR +RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O $CONDA_DIR/miniconda.sh +RUN bash $CONDA_DIR/miniconda.sh -b -u -p $CONDA_DIR +RUN rm -f $CONDA_DIR/miniconda.sh +ENV PATH=$CONDA_DIR/bin:$PATH + +# Install Conda packages +RUN conda install -c conda-forge python=3.11 + +# Install Opam packages +RUN opam init -y --disable-sandboxing --compiler 4.14.1 +ENV OPAM_SWITCH_PREFIX=/home/user/.opam/4.14.1 +ENV CAML_LD_LIBRARY_PATH=/home/user/.opam/4.14.1/lib/stublibs:/home/user/.opam/4.14.1/lib/ocaml/stublibs:/home/user/.opam/4.14.1/lib/ocaml +ENV OCAML_TOPLEVEL_PATH=/home/user/.opam/4.14.1/lib/toplevel +ENV MANPATH=':/home/user/.opam/4.14.1/man' +ENV PATH=/home/user/.opam/4.14.1/bin:$PATH +RUN opam install -y frama-c alt-ergo + +RUN mkdir /home/user/solvers +ENV PATH=$PATH:/home/user/solvers + +RUN wget http://cvc4.cs.stanford.edu/downloads/builds/x86_64-linux-opt/cvc4-1.6-x86_64-linux-opt -P /home/user/solvers +RUN mv /home/user/solvers/cvc4-1.6-x86_64-linux-opt /home/user/solvers/cvc4 +RUN chmod +x /home/user/solvers/cvc4 + +RUN wget https://github.com/Z3Prover/z3/releases/download/z3-4.12.2/z3-4.12.2-x64-glibc-2.31.zip -P /home/user/solvers +RUN unzip /home/user/solvers/z3-4.12.2-x64-glibc-2.31.zip -d /home/user/solvers +ENV PATH=$PATH:/home/user/solvers/z3-4.12.2-x64-glibc-2.31/bin + +RUN opam exec -- why3 config detect + +COPY --chown=user:user . /home/user/src/ +WORKDIR /home/user/src/ + +# Install Python packages +RUN pip install -r requirements.txt + +# Build tree-sitter parser +RUN rm -rf tree_sitter_lib/vendor/tree-sitter-c +RUN git clone https://github.com/tree-sitter/tree-sitter-c.git tree_sitter_lib/vendor/tree-sitter-c +RUN python build_parser.py diff --git a/src/benchmark.py b/src/benchmark.py new file mode 100644 index 000000000..7663cdecd --- /dev/null +++ b/src/benchmark.py @@ -0,0 +1,690 @@ +import os +import re +import string +from abc import ABC, abstractmethod +from datetime import datetime + +from tree_sitter import Language, Parser + + +class Benchmark(ABC): + @abstractmethod + def __init__(self, benchmarks_file="", features=None): + self.input_benchmarks = os.path.join( + os.path.dirname(__file__), "../", benchmarks_file + ) + self.features = features + lib_path = os.path.join(os.path.dirname(__file__), "tree_sitter_lib/build/") + self.language = Language(lib_path + "c-tree-sitter.so", "c") + self.parser = Parser() + self.parser.set_language(self.language) + self.input_file_paths = [] + + @abstractmethod + def preprocess(self, code): + raise NotImplementedError + + @abstractmethod + def combine_llm_outputs(self, checker_input, llm_outputs, features=None): + """ + WARNING: Combines invariants from all completions. + Takes an un-annotated checker input (processed-benchmarks) + and annotated llm outputs, takes the annotation from llm outputs + and adds it to the checker input them. + """ + if not any("insert invariant" in line for line in checker_input.splitlines()): + print(f"Ignoring since no insert invariant keyword") + return "" + + invariants = [] + for llm_output in llm_outputs: + lines = llm_output.splitlines() + for line in lines: + if "invariant" in line and "insert invariants" not in line: + invariants.append(line.strip()) + + lines = checker_input.splitlines() + loc = None + for index, line in enumerate(lines): + if "insert invariant" in line: + loc = index + break + if loc is not None: + lines = lines[: loc + 1] + invariants + lines[loc + 1 :] + else: + raise Exception("No 'insert invariant' found") + output = "\n".join(lines) + + return output + + @abstractmethod + def extract_loop_invariants(self, code): + raise NotImplementedError + + @abstractmethod + def get_variant_expressions(self, completions): + raise NotImplementedError + + def validate_inputs(self): + if not os.path.exists(self.input_benchmarks): + raise InvalidBenchmarkException( + f"Input file {self.input_benchmarks} not found" + ) + + with open(self.input_benchmarks) as f: + files = f.read().splitlines() + for file in files: + if not os.path.exists(file): + raise InvalidBenchmarkException(f"Benchmark file {file} not found") + try: + code = None + with open(file) as f: + code = f.read() + self.preprocess(code, self.features) + self.input_file_paths.append(file) + except InvalidBenchmarkException as e: + print(f"Error: {e.message}. File: {file}.") + + with open( + datetime.now().strftime("benchmark_input_%Y_%m_%d_%H_%M_%S") + ".txt", + "w", + ) as f: + f.write("\n".join(self.input_file_paths)) + return + + def get_code(self, file_path): + code = None + with open(file_path) as f: + code = f.read() + try: + code = self.preprocess(code, self.features) + except InvalidBenchmarkException as e: + print(f"Error: {e.message}. File: {file_path}.") + return code + + def remove_comments(self, code): + """ + Removes all comments from the code + """ + comment_query = self.language.query( + """ + (comment) @comment + """ + ) + ast = self.parser.parse(bytes(code, "utf-8")) + comments = comment_query.captures(ast.root_node) + comments = sorted(comments, key=lambda x: x[0].start_byte, reverse=True) + for comment in comments: + if comment[0].text.decode().startswith("//@"): + continue + if comment[0].text.decode().startswith("/*@"): + continue + code = code[: comment[0].start_byte] + code[comment[0].end_byte :] + return code + + def get_main_definition(self, code): + ast = self.parser.parse(bytes(code, "utf-8")) + main_query = self.language.query( + """ + (((function_definition (function_declarator (identifier) @function_name)) @main_definition) + (#eq? @function_name "main")) + """ + ) + main = main_query.captures(ast.root_node) + main_definition = [m[0] for m in main if m[1] == "main_definition"] + + if len(main_definition) != 1: + raise Exception("No single main definition found") + return main_definition[0] + + def get_child_by_type(self, node, type): + if node is None: + return None + for child in node.children: + if child.type == type: + return child + return None + + def get_function_declarations(self, root): + nodes = [root] + function_declarations = [] + while len(nodes) > 0: + node = nodes.pop() + if node.type == "declaration" and any( + [c.type == "function_declarator" for c in node.children] + ): + declaration = self.get_child_by_type(node, "function_declarator") + if declaration is None: + continue + if self.get_child_by_type(declaration, "identifier") is None: + continue + function_declarations.append( + ( + node, + self.get_child_by_type(declaration, "identifier").text.decode( + "utf-8" + ), + ) + ) + else: + nodes.extend(node.children) + return function_declarations + + def remove_verifier_function_declarations(self, code): + """ + Remove verifier function declarations + """ + ast = self.parser.parse(bytes(code, "utf-8")) + + declarations = self.get_function_declarations(ast.root_node) + declarations = [ + d + for d, e in declarations + if e.startswith("__VERIFIER_") + or e == "__assert_fail" + or e == "assume" + or e == "abort" + or e == "assert" + ] + declarations = sorted(declarations, key=lambda x: x.start_byte, reverse=True) + for declaration in declarations: + code = code[: declaration.start_byte] + code[declaration.end_byte :] + return code + + def get_function_definitions(self, root): + nodes = [root] + function_definitions = [] + while len(nodes) > 0: + node = nodes.pop() + if node.type == "function_definition": + declaration = self.get_child_by_type(node, "function_declarator") + if declaration is None: + continue + identifier = self.get_child_by_type(declaration, "identifier") + if identifier is None: + continue + function_definitions.append((node, identifier.text.decode("utf-8"))) + else: + nodes.extend(node.children) + return function_definitions + + def remove_verifier_function_definitions(self, code): + """ + Remove verifier function definitions + """ + ast = self.parser.parse(bytes(code, "utf-8")) + definitions = self.get_function_definitions(ast.root_node) + definitions = [ + d + for d, e in definitions + if e.startswith("__VERIFIER_") + or e == "reach_error" + or e == "__assert_fail" + or e == "__blast_assert" + or e == "assume" + or e == "abort" + or e == "assert" + or e == "assume_abort_if_not" + ] + definitions = sorted(definitions, key=lambda x: x.start_byte, reverse=True) + for definition in definitions: + code = code[: definition.start_byte] + code[definition.end_byte :] + return code + + def clean_newlines(self, code): + lines = code.splitlines() + new_code = [] + for i, line in enumerate(lines): + if (line.strip() == "") and (i > 0 and lines[i - 1].strip() == ""): + continue + else: + new_code.append(line) + return "\n".join(new_code) + + def get_function_calls(self, root): + function_calls = [] + nodes = [root] + while len(nodes) > 0: + node = nodes.pop() + if node.type == "call_expression": + identifier = self.get_child_by_type(node, "identifier") + if identifier is None: + continue + function_calls.append( + ( + node, + identifier.text.decode("utf-8"), + ) + ) + nodes.extend(node.children) + else: + nodes.extend(node.children) + return function_calls + + def replace_nondets_and_assert_assumes(self, code): + """ + Replace all nondet functions with unknowns + """ + ast = self.parser.parse(bytes(code, "utf-8")) + + root = ast.root_node + if not "multiple_methods" in self.features: + root = self.get_main_definition(code) + + # replace nondet calls with unknowns + nondets = self.get_function_calls(root) + verifier_nondet_calls = list( + filter( + lambda x: len(re.findall(r"^(__VERIFIER_)?nondet(.*)", x[1])) > 0, + nondets, + ) + ) + verifier_nondet_calls = sorted( + verifier_nondet_calls, key=lambda x: x[0].start_byte, reverse=True + ) + for nondet_call in verifier_nondet_calls: + code = ( + code[: nondet_call[0].start_byte] + + "unknown" + + ( + "_int()" + if not "_" in nondet_call[0].text.decode("utf-8") + else ( + "_" + nondet_call[0].text.decode("utf-8").split("_")[-1].lower() + ) + ) + + code[nondet_call[0].end_byte :] + ) + + return self.replace_assumes(self.replace_asserts(code)) + + def replace_assumes(self, code): + """ + Replace __VERIFIER_assume calls with assumes + """ + ast = self.parser.parse(bytes(code, "utf-8")) + + root = ast.root_node + if not "multiple_methods" in self.features: + root = self.get_main_definition(code) + + nondets_assert_assumes = self.get_function_calls(root) + verifier_assume_calls = list( + filter( + lambda x: len( + re.findall(r"^(__VERIFIER_assume|assume_abort_if_not)", x[1]) + ) + > 0, + nondets_assert_assumes, + ) + ) + verifier_assume_calls = sorted( + verifier_assume_calls, key=lambda x: x[0].start_byte, reverse=True + ) + for assume_call in verifier_assume_calls: + code = ( + code[: assume_call[0].start_byte] + + re.sub( + r"^(__VERIFIER_assume|assume_abort_if_not)", + "assume", + assume_call[0].text.decode("utf-8"), + ) + + code[assume_call[0].end_byte :] + ) + + return code + + def replace_asserts(self, code): + """ + Replace __VERIFIER_assert/sassert/assert calls with asserts + """ + ast = self.parser.parse(bytes(code, "utf-8")) + + root = ast.root_node + if not "multiple_methods" in self.features: + root = self.get_main_definition(code) + + assert_assumes = self.get_function_calls(root) + assert_assumes = sorted( + assert_assumes, key=lambda x: x[0].start_byte, reverse=True + ) + assert_assumes = [a[0].parent for a in assert_assumes] + verifier_assert_calls = list( + filter( + lambda x: len( + re.findall( + r"^((__VERIFIER_|s)?assert)\s*(\(.*\))\s*;.*", + x.text.decode("utf-8"), + ) + ) + > 0, + assert_assumes, + ) + ) + verifier_assert_calls = sorted( + verifier_assert_calls, key=lambda x: x.start_byte, reverse=True + ) + + for assert_call in verifier_assert_calls: + code = ( + code[: assert_call.start_byte] + + re.sub( + r"^(__VERIFIER_|s)?assert\s*(?P\(.*\))\s*;(?P.*)", + r"{;\n//@ assert\g;" + "\n" + r"}\n\g", + assert_call.text.decode("utf-8"), + ) + + code[assert_call.end_byte :] + ) + + return code + + def analyze_main(self, code): + """ + Some benchmarks have a missing return type for main. + Default this type to int, and make sure the return type + matches the value being returned. + """ + code = re.sub(r"^\s*main\s*\(", "int main(", code, flags=re.MULTILINE) + + main_definition = self.get_main_definition(code) + main_definition_type = main_definition.child_by_field_name("type") + if main_definition_type is None: + return "ERROR: No return type for main function" + main_definition_type = main_definition_type.text.decode("utf-8") + + return_stmt = self.language.query( + """ + (return_statement) @return_stmt + """ + ) + return_stmt = return_stmt.captures(main_definition) + return_stmt = sorted(return_stmt, key=lambda x: x[0].start_byte, reverse=True) + if len(return_stmt) < 1: + return code + + if main_definition_type == "void": + for rv in return_stmt: + code = code[: rv[0].start_byte] + "\nreturn;\n" + code[rv[0].end_byte :] + else: + for rv in return_stmt: + return_value = [ + x for x in rv[0].children if x.type != "return" and x.type != ";" + ] + code = ( + code[: rv[0].start_byte] + + ( + rv[0].text.decode("utf-8") + if len(return_value) > 0 + else "\nreturn 0;\n" + ) + + code[rv[0].end_byte :] + ) + + return code + + def remove_preprocess_lines(self, code): + """ + Removes all preprocessor lines from the code + """ + lines = code.split("\n") + lines = list(filter(lambda x: not re.match(r"^#\s\d+\s.*", x), lines)) + return "\n".join(lines) + + def remove_local_includes(self, code): + """ + Removes all local includes from the code + """ + lines = code.split("\n") + lines = list(filter(lambda x: not re.match(r"^#include \".*\"", x), lines)) + return "\n".join(lines) + + def has_ill_formed_asserts(self, code): + """Should be called in the end of preprocessing. + This checks if there are any __VERIFIER_assert calls left in the code. + If there are, the code is ill-formed, because the verifier functions + should have been removed in the preprocessing. + """ + ast = self.parser.parse(bytes(code, "utf-8")) + root = ast.root_node + function_calls = self.get_function_calls(root) + if not "multiple_methods" in self.features: + root = self.get_main_definition(code) + function_calls = self.get_function_calls(root) + + function_calls = [ + f + for f in function_calls + if f[1] == "__VERIFIER_assert" or f[1] == "reach_error" + ] + + if len(function_calls) > 0: + return True + + def is_interprocedural(self, code): + """should be called after all __VERIFIER_ functions are removed. + and after main is fixed.""" + + # get main function + main_definition = self.get_main_definition(code) + + calls = self.get_function_calls(main_definition) + calls = [ + c for c in calls if not re.match(r"(abort|exit|assume|unknown.*)", c[1]) + ] + + return len(calls) > 0 + + def add_boiler_plate(self, code): + """ + Add hash defines and externs for unknown functions + """ + ast = self.parser.parse(bytes(code, "utf-8")) + + main_definition = self.get_main_definition(code) + main_definition_type = main_definition.child_by_field_name("type") + + code = ( + ("#include \n#define assume(e) if(!(e)) exit(-1);\n") + + ( + "#define abort() exit(-2);\n" + if len(re.findall(r"abort\s*\(\s*\)", code)) > 0 + else "" + ) + + ("#define LARGE_INT 1000000\n" if "LARGE_INT" in code else "") + + ("extern int unknown(void);\n" if "unknown()" in code else "") + + ("extern int unknown_int(void);\n" if "unknown_int()" in code else "") + + ( + "extern unsigned int unknown_uint(void);\n" + if "unknown_uint" in code + else "" + ) + + ("extern _Bool unknown_bool(void);\n" if "unknown_bool()" in code else "") + + ("extern char unknown_char(void);\n" if "unknown_char()" in code else "") + + ( + "extern unsigned short unknown_ushort(void);\n" + if "unknown_ushort()" in code + else "" + ) + + ( + "extern unsigned char unknown_uchar(void);\n" + if "unknown_uchar()" in code + else "" + ) + + "\n" + + code + ) + return code + + def get_error_labels(self, root): + nodes = [root] + error_nodes = [] + while len(nodes) > 0: + node = nodes.pop() + if node.type == "labeled_statement": + if node.child_by_field_name("label").text.decode("utf-8") == "ERROR": + error_nodes.append(node) + nodes += node.children + return error_nodes + + def get_loops(self, root): + nodes = [root] + loops = [] + while len(nodes) > 0: + node = nodes.pop() + if node.type == "while_statement" or node.type == "for_statement": + loops.append(node) + elif node.type == "do_statement" and any( + [c.type == "while" for c in node.children] + ): + loops.append(node) + nodes += node.children + return loops + + def get_total_loop_count(self, code): + ast = self.parser.parse(bytes(code, "utf-8")) + nodes = [ast.root_node] + loops = [] + while len(nodes) > 0: + node = nodes.pop() + if node.type == "while_statement" or node.type == "for_statement": + loops.append(node) + elif node.type == "do_statement" and any( + [c.type == "while" for c in node.children] + ): + loops.append(node) + nodes += node.children + return len(loops) + + def uses_arrays(self, code): + ast = self.parser.parse(bytes(code, "utf-8")) + nodes = [ast.root_node] + while len(nodes) > 0: + node = nodes.pop() + if node.type == "array_declarator": + return True + nodes += node.children + return False + + def uses_pointers(self, code): + ast = self.parser.parse(bytes(code, "utf-8")) + nodes = [ast.root_node] + while len(nodes) > 0: + node = nodes.pop() + if node.type == "pointer_declarator": + return True + nodes += node.children + return False + + def uses_floats_or_doubles(self, code): + ast = self.parser.parse(bytes(code, "utf-8")) + nodes = [ast.root_node] + while len(nodes) > 0: + node = nodes.pop() + if node.type == "primitive_type": + if ( + node.text.decode("utf-8") == "float" + or node.text.decode("utf-8") == "double" + ): + return True + nodes += node.children + return False + + def add_loop_labels(self, code): + labels = string.ascii_uppercase + ast = self.parser.parse(bytes(code, "utf-8")) + + root = ast.root_node + if not "multiple_methods" in self.features: + root = self.get_main_definition(code) + + loops = self.get_loops(root) + loops = sorted(loops, key=lambda x: x.start_byte, reverse=True) + + for i, l in enumerate(loops): + loop_label = "/* Loop_" + labels[len(loops) - i - 1] + " */ " + code = code[: l.start_byte] + loop_label + code[l.start_byte :] + return code + + def is_multi_loop(self, code): + ast = self.parser.parse(bytes(code, "utf-8")) + root = ast.root_node + if not "multiple_methods" in self.features: + root = self.get_main_definition(code) + loops = self.get_loops(root) + return len(loops) > 1 + + def remove_reach_error_calls(self, code): + ast = self.parser.parse(bytes(code, "utf-8")) + root = ast.root_node + if not "multiple_methods" in self.features: + root = self.get_main_definition(code) + + function_calls = self.get_function_calls(root) + function_calls = sorted( + function_calls, key=lambda x: x[0].start_byte, reverse=True + ) + for function_call in function_calls: + if ( + function_call[1] == "reach_error" + or function_call[1] == "__blast_assert" + ): + code = ( + code[: function_call[0].start_byte] + + "{; \n//@ assert(\\false);\n}" + + code[function_call[0].end_byte :] + ) + + return code + + def add_method_labels(self, code): + ast = self.parser.parse(bytes(code, "utf-8")) + function_definitions = self.get_function_definitions(ast.root_node) + function_definitions = sorted( + function_definitions, key=lambda x: x[0].start_byte, reverse=True + ) + for function_definition in function_definitions: + code = ( + code[: function_definition[0].start_byte] + + "\n/* Function_" + + function_definition[1] + + " */\n" + + code[function_definition[0].start_byte :] + ) + return code + + def any_child_satisfies(self, node, lambda_fn): + if lambda_fn(node): + return True + for child in node.children: + if self.any_child_satisfies(child, lambda_fn): + return True + return False + + def all_functions_defined_in_program(self, input_code): + ast = self.parser.parse(bytes(input_code, "utf8")) + root_node = ast.root_node + functions = self.get_function_definitions(root_node) + function_names = [f[1] for f in functions] + + function_calls = self.get_function_calls(root_node) + function_calls = [f[0].text.decode("utf-8") for f in function_calls] + + for f in function_calls: + f_call = f.split("(")[0].strip() + if f_call == "assume" or f_call == "abort" or f_call == "exit": + continue + fname = re.match( + r"unknown_(int|uint|bool|float|double|char|uchar|long|ulong)", f_call + ) + if fname is not None: + continue + if f_call not in function_names: + return False + + return True + + +class InvalidBenchmarkException(Exception): + def __init__(self, message): + self.message = message + super().__init__(self.message) diff --git a/src/boogie.py b/src/boogie.py new file mode 100644 index 000000000..da9f0c4f5 --- /dev/null +++ b/src/boogie.py @@ -0,0 +1,160 @@ +""" +This is experimental code for using Boogie as a checker. +This is just a proof of concept and is not used in the final version. +""" + +import os +import re +import subprocess +from datetime import datetime +from benchmark import InvalidBenchmarkException, Benchmark +from checker import Checker +from llm_utils import Logger + + +class BoogieBenchmark(Benchmark): + def __init__(self, benchmarks_file="", features=None): + self.input_benchmarks = os.path.join( + os.path.dirname(__file__), "../", benchmarks_file + ) + self.features = features + self.input_file_paths = [] + + def preprocess(self, code): + raise NotImplementedError + + def combine_llm_outputs(self, checker_input, llm_outputs, features=None): + """ + WARNING: Combines invariants from all completions. + Takes an un-annotated checker input (processed-benchmarks) + and annotated llm outputs, takes the annotation from llm outputs + and adds it to the checker input them. + """ + if not any("insert invariant" in line for line in checker_input.splitlines()): + print(f"Ignoring since no insert invariant keyword") + return "" + + invariants = [] + for llm_output in llm_outputs: + lines = llm_output.splitlines() + for line in lines: + if "invariant" in line and "insert invariants" not in line: + invariants.append(line.strip()) + + lines = checker_input.splitlines() + loc = None + for index, line in enumerate(lines): + if "insert invariant" in line: + loc = index + break + if loc is not None: + lines = lines[: loc + 1] + invariants + lines[loc + 1 :] + else: + raise Exception("No 'insert invariant' found") + output = "\n".join(lines) + + return output + + def extract_loop_invariants(self, code): + raise NotImplementedError + + def get_variant_expressions(self, completions): + raise NotImplementedError + + +class BoogieChecker(Checker): + def __init__(self, name="boogie"): + self.name = name + self.timeout = 10 + + def check(self, code, check_variant=False, check_contracts=False): + with open("/tmp/temp_eval.bpl", "w") as f: + f.write(code) + + cmd = f"boogie /tmp/temp_eval.bpl /timeLimit:{self.timeout}" + p = subprocess.Popen(cmd.split(), stdout=subprocess.PIPE) + output, err = p.communicate() + output = output.decode() + + if "1 verified" in output: + return True, output + else: + return False, output + + def has_invariant(self, line): + return "invariant" in line + + def has_variant(self, line): + raise NotImplementedError + + def has_function_contract(self, lines): + raise NotImplementedError + + def get_line_no_from_error_msg(self, error_string): + pattern = r"\((\d+),\d+\): Error" + matches = re.findall(pattern, error_string) + line_numbers = [int(match) - 1 for match in matches] + + pattern = r"\((\d+),\d+\): error" + matches = re.findall(pattern, error_string) + line_numbers2 = [int(match) - 1 for match in matches] + line_numbers = line_numbers + line_numbers2 + + return line_numbers + + def get_incorrect_invariants(self, code, error): + line_numbers = self.get_line_no_from_error_msg(error) + lines = code.splitlines() + incorrect_invariants = [] + for line_number in line_numbers: + if self.has_invariant(lines[int(line_number)]): + incorrect_invariants.append(lines[int(line_number)].strip()) + return "\n".join(incorrect_invariants) + + def houdini(self, input_code, check_variant=False, check_contracts=False): + print("Pruning annotations") + while True: + status, error_string = self.check(input_code) + invariant_line_mapping = {} + lines = input_code.splitlines() + for no, line in enumerate(lines): + if self.has_invariant(line): + invariant_line_mapping[no] = line + if len(invariant_line_mapping) == 0: + raise Exception("No invariants found") + + (invariant_line_start, invariant_line_end) = ( + list(invariant_line_mapping.keys())[0], + list(invariant_line_mapping.keys())[-1], + ) + + line_numbers = self.get_line_no_from_error_msg(error_string) + incorrect_invariant_line_numbers = [ + no for no in line_numbers if no in invariant_line_mapping.keys() + ] + correct_invariant_line_numbers = [ + i + for i in list(invariant_line_mapping.keys()) + if i not in incorrect_invariant_line_numbers + ] + + new_lines = ( + lines[:invariant_line_start] + + [lines[i] for i in correct_invariant_line_numbers] + + lines[invariant_line_end + 1 :] + ) + new_code = "\n".join(new_lines) + input_code = new_code + status, _ = self.check(input_code) + if ( + status + or len(correct_invariant_line_numbers) == 0 + or len(incorrect_invariant_line_numbers) == 0 + ): + if len(incorrect_invariant_line_numbers) == 0: + print("No incorrect invariants remaining") + if len(correct_invariant_line_numbers) == 0: + print("No correct invariants remaining") + break + + return status, input_code diff --git a/src/build_parser.py b/src/build_parser.py new file mode 100644 index 000000000..42864f405 --- /dev/null +++ b/src/build_parser.py @@ -0,0 +1,12 @@ +from tree_sitter import Language + +""" +Clone the tree-sitter-c repository to tree_sitter_lib/vendor/ +The output of this build is tree_sitter_lib/build/c-tree-sitter.so +""" +Language.build_library( + 'tree_sitter_lib/build/c-tree-sitter.so', + [ + 'tree_sitter_lib/vendor/tree-sitter-c' + ] +) diff --git a/src/checker.py b/src/checker.py new file mode 100644 index 000000000..a0a591922 --- /dev/null +++ b/src/checker.py @@ -0,0 +1,28 @@ +from abc import ABC, abstractmethod + + +class Checker(ABC): + @abstractmethod + def __init__(self, name): + self.name = name + self.timeout = 10 + + @abstractmethod + def check(self, code, check_variant, check_contracts): + raise NotImplementedError + + @abstractmethod + def houdini(self, input_code, check_variant, check_contracts): + raise NotImplementedError + + @abstractmethod + def has_invariant(self, line): + raise NotImplementedError + + @abstractmethod + def has_variant(self, line): + raise NotImplementedError + + @abstractmethod + def has_function_contract(self, lines): + raise NotImplementedError diff --git a/src/frama_c.py b/src/frama_c.py new file mode 100644 index 000000000..0ebfab7a5 --- /dev/null +++ b/src/frama_c.py @@ -0,0 +1,1139 @@ +import csv +import datetime +import json +import os +import random +import re +import subprocess +from copy import deepcopy + +from tree_sitter import Language, Parser + +from benchmark import Benchmark, InvalidBenchmarkException +from checker import Checker +from llm_utils import Logger + + +class FramaCChecker(Checker): + def __init__(self): + super().__init__("frama-c") + lib_path = os.path.join(os.path.dirname(__file__), "tree_sitter_lib/build/") + self.language = Language(lib_path + "c-tree-sitter.so", "c") + self.parser = Parser() + self.parser.set_language(self.language) + + def check( + self, + input, + check_variant=False, + check_contracts=False, + ): + """ + Returns True only if all annotations are valid, False otherwise. + Usually that is assertion + loop invariants. Sometimes it's + also loop variant and function contracts. + """ + + temp_file = ( + datetime.datetime.now().strftime("/tmp/temp_eval_%Y_%m_%d_%H_%M_%S_") + + str(random.randint(0, 1000000)) + + "_proc_" + + str(os.getpid()) + ) + + temp_c_file = temp_file + "_.c" + temp_wp_json_report_file = temp_file + "_wp_report.json" + temp_kernel_log_file = temp_file + "_kernel_logs.txt" + temp_output_dump_file = temp_file + "_output_dump.csv" + + with open(temp_c_file, "w") as f: + f.write(input) + + cmd = f"frama-c -wp -wp-verbose 100 -wp-debug 100 -wp-timeout {self.timeout} \ + -wp-prover=alt-ergo,z3,cvc4 {temp_c_file} -wp-report-json {temp_wp_json_report_file} -kernel-warn-key annot-error=active \ + -kernel-log a:{temp_kernel_log_file} -then -no-unicode -report -report-csv {temp_output_dump_file}" + p = subprocess.Popen(cmd.split(), stdout=subprocess.PIPE) + frama_c_std_output, _ = p.communicate() + + """ + Check kernel log for syntax error line + """ + if not os.path.exists(temp_kernel_log_file): + return False, "No kernel logs found" + with open(temp_kernel_log_file, "r", encoding="utf-8") as f: + kernel_logs = f.read() + kl_lines = kernel_logs.splitlines() + error_line = None + for line in kl_lines: + if "[kernel:annot-error]" in line: + error_line = line + break + else: + continue + if error_line is not None: + error_message = self.get_annotation_error_from_kernel_logs(error_line) + return False, error_message + + checker_output = [] + loop_invariants = [] + user_assertions = [] + loop_variant = "" + function_contracts = [] + csv_dump = [] + csv_loop_invariants = {} + success = False + + if not os.path.exists(temp_output_dump_file): + return False, "No CSV output dump found from Frama-C" + + with open(temp_output_dump_file, "r", encoding="utf-8") as f: + csv_dump_full = [row for row in csv.DictReader(f, delimiter="\t")] + csv_dump = [row for row in csv_dump_full if not row["file"][-2:] == ".h"] + csv_loop_invariants = { + int(row["line"]): row["status"] + for row in csv_dump + if row["property kind"] == "loop invariant" + } + + """ + Get the status of each loop invariant + """ + if not os.path.exists(temp_wp_json_report_file): + return False, "No JSON report found" + + with open(temp_wp_json_report_file, "r", encoding="utf-8") as f: + json_output = f.read() + json_output = re.sub(r"(\d+)\.,", r"\1.0,", json_output) + json_output = json.loads(json_output) + loop_invariant_status = {} + json_invariant_line = {} + for item in json_output: + if "_loop_invariant_" in item["goal"]: + inv_id = re.findall( + r"_loop_invariant_(i\d+)_(preserved|established)", + item["goal"], + ) + if len(inv_id) == 0: + # item is an assertion + continue + inv_id = inv_id[0] + if inv_id[0] not in loop_invariant_status: + loop_invariant_status[inv_id[0]] = {} + loop_invariant_status[inv_id[0]][inv_id[1]] = item["passed"] + if inv_id[0] not in json_invariant_line: + json_invariant_line[inv_id[0]] = item["line"] + + for inv_id in loop_invariant_status: + if "preserved" not in loop_invariant_status[inv_id]: + loop_invariant_status[inv_id]["preserved"] = False + if "established" not in loop_invariant_status[inv_id]: + loop_invariant_status[inv_id]["established"] = False + + success = all( + [ + loop_invariant_status[inv_id]["preserved"] + and loop_invariant_status[inv_id]["established"] + for inv_id in loop_invariant_status + ] + ) + + invariants_with_ids = self.get_invariants_with_ids(input.splitlines()) + + for inv in sorted(loop_invariant_status.keys(), key=lambda x: int(x[1:])): + if ( + loop_invariant_status[inv]["preserved"] + and loop_invariant_status[inv]["established"] + ): + if ( + json_invariant_line[inv] in csv_loop_invariants + and csv_loop_invariants[json_invariant_line[inv]] == "Valid" + ): + loop_invariants.append( + f"loop invariant {invariants_with_ids[inv]} is inductive." + ) + else: + loop_invariants.append( + f"loop invariant {invariants_with_ids[inv]} is partially proven to be inductive." + ) + elif ( + not loop_invariant_status[inv]["preserved"] + and loop_invariant_status[inv]["established"] + ): + loop_invariants.append( + f"loop invariant {invariants_with_ids[inv]} is established but not preserved." + ) + elif ( + loop_invariant_status[inv]["preserved"] + and not loop_invariant_status[inv]["established"] + ): + loop_invariants.append( + f"loop invariant {invariants_with_ids[inv]} is preserved but not established." + ) + else: + loop_invariants.append( + f"loop invariant {invariants_with_ids[inv]} is neither established nor preserved." + ) + + loop_invariants = "\n".join(loop_invariants) + + """ + Get the status of each user assertion and function contract + """ + if check_contracts: + success = success and all( + row["status"] == "Valid" + for row in csv_dump + if row["property kind"] == "precondition" + or row["property kind"] == "postcondition" + ) + + for row in csv_dump: + if row["property kind"] == "precondition": + function_contracts.append( + f"Pre-condition {row['property']} on line {row['line']}: {row['status']}" + ) + elif row["property kind"] == "postcondition": + function_contracts.append( + f"Post-condition {row['property']} on line {row['line']}: {row['status']}" + ) + + function_contracts = "\n".join(function_contracts) + + success = success and all( + row["status"] == "Valid" + for row in csv_dump + if row["property kind"] == "user assertion" + ) + + user_assertions = "\n".join( + [ + f"Assertion {row['property']}: " + + (f"Unproven" if row["status"] == "Unknown" else f"{row['status']}") + for row in csv_dump + if row["property kind"] == "user assertion" + ] + ) + + """ + Check the status of the loop variant + """ + if check_variant: + msg = str(frama_c_std_output, "UTF-8").split("\n") + result = list(filter(lambda x: "Loop variant" in x, msg)) + if len(result) < 1: + print("No variant found (wrong mode?)") + return False, "No variant found (wrong mode?)" + + if "Valid" in result[0]: + loop_variant = "Loop variant is Valid.\n" + success = success and True + else: + loop_variant = "Loop variant is Invalid.\n" + success = False + + checker_output = ( + loop_invariants + + "\n" + + user_assertions + + "\n" + + function_contracts + + "\n" + + loop_variant + ) + checker_output = checker_output.strip() + + os.remove(temp_c_file) + os.remove(temp_wp_json_report_file) + os.remove(temp_kernel_log_file) + os.remove(temp_output_dump_file) + + return success, checker_output + + def houdini( + self, + input_code, + check_variant=False, + check_contracts=False, + ): + Logger.log_info("Houdini procedure initiated") + + if not self.has_annotations(input_code): + raise Exception("No annotations found") + + code_queue = [input_code] + num_frama_c_calls = 0 + + """ + Setting a limit of 1000 iterations. Theoretically, this limit is not required. + This is just to prevent infinite loops, in case there's a problematic annotation. + Currently we sample 15 completions from the model, so 1000 iterations should be enough. + This limit will have to be changed if we expect > 1000 annotations from the model. + """ + while len(code_queue) > 0 and num_frama_c_calls < 1000: + input_code = code_queue.pop(0) + code_lines = input_code.splitlines() + if not self.has_annotations(input_code): + print("No annotations found") + continue + success, checker_message = self.check( + input_code, + check_variant=check_variant, + check_contracts=check_contracts, + ) + + if success: + break + + if ( + "Pre-condition" in checker_message + or "Post-condition" in checker_message + ): + """ + If there are any function contracts, this block will remove "Unknown" clauses from them + """ + unknown_clause_lines = self.get_line_nums_for_unknown_contract_clauses( + checker_message + ) + if len(unknown_clause_lines) > 0: + for line_no in unknown_clause_lines: + code_lines[line_no] = "" + code_queue.append("\n".join(code_lines)) + + if "Annotation error " in checker_message: + # Why not remove all annotation errors? + # Frama-C panics and skips the entire annotation block + # as soon as it sees an annotation error. + # So we get only one annotation error at a time. + annotation_error_line_no = self.get_line_no_from_error_msg( + checker_message + )[0] + + if ": unexpected token ''" in checker_message: + # Some annotation has been emptied out + # Remove the annotation and push the code to the queue + # only if the code has changed + new_input_code = self.remove_empty_annotations(deepcopy(input_code)) + if new_input_code == input_code: + Logger.log_error( + "Stopping Houdini. Error message points to an empty line. Is the annotation malformed?" + ) + break + code_queue.append(new_input_code) + continue + + code_lines[annotation_error_line_no] = "" + if "\n".join(code_lines) == input_code: + Logger.log_error( + "Stopping Houdini. Error message points to an empty line. Is the annotation malformed?" + ) + break + input_code = "\n".join(code_lines) + code_queue.append(input_code) + + else: + non_inductive_invariant_line_nos = ( + self.get_non_inductive_invariant_line_nos( + checker_message, input_code + ) + ) + if len(non_inductive_invariant_line_nos) > 0: + for line_no in non_inductive_invariant_line_nos: + code_lines[line_no] = "" + code_queue.append("\n".join(code_lines)) + + # This section would be used if we want to use the CSV dump instead of the JSON report + # else: + # # What about TIMEOUT? + # # If any invariant causes a Timeout, it's marked as "Unknown" + # # because the prover could not prove it. So removing it. + # unknown_inv_lines = self.get_unknown_inv_no_from_error_msg( + # checker_message + # ) + # if len(unknown_inv_lines) > 0: + # for line_no in unknown_inv_lines: + # code_lines[line_no] = "" + # code_queue.append("\n".join(code_lines)) + # else: + # # Push code with one "Partially proven" invariant removed to the queue + # partially_proven_inv_line_nos = ( + # self.get_partially_proven_inv_from_error_msg(checker_message) + # ) + # if self.get_invariants_count(input_code) == len( + # partially_proven_inv_line_nos + # ): + # # If all invariants are partially proven, then we can't afford + # # to prune further. example, there's an assertion inside the loop which is Unknown + # break + + # # for line_no in partially_proven_inv_line_nos: + # # code_lines__ = deepcopy(code_lines) + # # code_lines__[line_no] = "" + # # code_queue.append("\n".join(code_lines__)) + + num_frama_c_calls += 1 + + if num_frama_c_calls == 1000 and not success: + Logger.log_error("Crossed 1000 iterations. Stopping Houdini...") + + if not success: + Logger.log_error("Could not find strong enough annotations.") + else: + Logger.log_info("Found strong enough annotations.") + + return success, input_code, num_frama_c_calls + + def remove_empty_annotations(self, input_code): + ast = self.parser.parse(bytes(input_code, "utf-8")) + comment_query = self.language.query( + """ + (comment) @comment + """ + ) + comments = comment_query.captures(ast.root_node) + annotations = list( + filter(lambda x: x[0].text.decode("utf-8").startswith("/*@"), comments) + ) + annotations = sorted(annotations, key=lambda x: x[0].start_byte, reverse=True) + annotation_texts = [ + (x[0].text.decode("utf-8")[3:-2].strip(), x) for x in annotations + ] + empty_annotations = [x[1] for x in annotation_texts if x[0].strip() == ""] + for annotation in empty_annotations: + input_code = ( + input_code[: annotation[0].start_byte] + + input_code[annotation[0].end_byte :] + ) + + return input_code + + def has_invariant(self, line): + inv = re.findall(r"loop invariant (.+);", line) + return len(inv) > 0 + + def has_variant(self, line): + inv = re.findall(r"loop variant (.+);", line) + return len(inv) > 0 + + def has_function_contract(self, lines): + requires = re.findall(r"requires (.+);", lines) + ensures = re.findall(r"ensures (.+);", lines) + return len(requires) > 0 or len(ensures) > 0 + + def get_line_nums_for_unknown_contract_clauses(self, checker_message): + lines = checker_message.splitlines() + line_numbers = [] + for line in lines: + if line.startswith("Pre-condition") or line.startswith("Post-condition"): + line_num = re.findall(r"on line (\d+): (\w+)", line) + if len(line_num) == 1 and len(line_num[0]) == 2: + if line_num[0][1] == "Unknown": + line_numbers.append(int(line_num[0][0]) - 1) + + return line_numbers + + def get_annotation_error_from_kernel_logs(self, error_line): + line_num = re.search(r"\:(\d+)\:", error_line) + if line_num is not None: + line_num = int(line_num.group(1)) + error_message = re.search(r"\[kernel\:annot-error\] warning: (.+)", error_line) + if error_message is not None: + error_message = error_message.group(1) + error_message = f"Annotation error on line {line_num}: {error_message}" + return error_message + + def get_line_no_from_error_msg(self, checker_output): + pattern = r"Annotation error on line (\d+): " + matches = re.findall(pattern, checker_output) + line_numbers = [int(match) - 1 for match in matches] + + return line_numbers + + def get_unknown_inv_no_from_error_msg(self, checker_output): + checker_out = "".join( + [c for c in checker_output.splitlines() if c.startswith("Invariant ")] + ) + pattern = r"on line (\d+): Unknown" + matches = re.findall(pattern, checker_out) + line_numbers = [int(match) - 1 for match in matches] + + return line_numbers + + def get_partially_proven_inv_from_error_msg(self, checker_output): + checker_output = "".join( + [c for c in checker_output.splitlines() if c.startswith("Invariant ")] + ) + pattern = r"on line (\d+): Partially proven" + matches = re.findall(pattern, checker_output) + line_numbers = [int(match) - 1 for match in matches] + + return line_numbers + + def get_incorrect_invariants(self, code, error): + line_numbers = self.get_line_no_from_error_msg(error) + lines = code.splitlines() + incorrect_invariants = [] + for line_number in line_numbers: + if self.has_invariant(lines[int(line_number)]): + incorrect_invariants.append(lines[int(line_number)].strip()) + return "\n".join(incorrect_invariants) + + def get_invariants(self, lines): + invariants = [] + invariant_expressions = [] + for line in lines: + if self.has_invariant(line): + inv = re.findall(r"(loop invariant (i\d+: )?(.+);)", line)[0] + if inv[2] not in invariant_expressions: + invariants.append(inv[0]) + invariant_expressions.append(inv[2]) + return invariants + + def get_invariants_with_ids(self, lines): + invariants = {} + for line in lines: + if self.has_invariant(line): + inv = re.findall(r"loop invariant (\w+:)?(.+);", line)[0] + invariants[inv[0].rstrip(":")] = inv[1].strip() + return invariants + + def get_invariants_count(self, code): + return len(self.get_invariants(code.splitlines())) + + def get_variants(self, lines): + variants = [] + for line in lines: + if self.has_variant(line): + inv = re.findall(r"(loop variant .+;)", line)[0] + if inv not in variants: + variants.append(inv) + return variants + + def has_annotations(self, code): + ast = self.parser.parse(bytes(code, "utf-8")) + comment_query = self.language.query( + """ + (comment) @comment + """ + ) + comments = comment_query.captures(ast.root_node) + annotations = list( + filter(lambda x: x[0].text.decode("utf-8").startswith("/*@"), comments) + ) + annotation_texts = [ + x[0].text.decode("utf-8")[3:-2].strip() for x in annotations + ] + annotation_texts = "".join(annotation_texts) + + return len(annotation_texts) > 0 + + def get_non_inductive_invariant_line_nos(self, checker_message, checker_input): + lines = checker_message.splitlines() + non_inductive_invariants = [] + for line in lines: + if ( + "is inductive." in line + or "is partially proven to be inductive." in line + ): + continue + else: + inv_exp = re.findall(r"loop invariant (.+) is", line) + if len(inv_exp) == 1: + non_inductive_invariants.append(inv_exp[0]) + + non_inductive_invariant_line_nos = [] + for i, line in enumerate(checker_input.splitlines()): + if self.has_invariant(line): + for inv in non_inductive_invariants: + inv_match = re.findall(r"loop invariant (\w+: )?(.+);", line) + if ( + len(inv_match) == 1 + and len(inv_match[0]) == 2 + and inv_match[0][1] == inv + ): + non_inductive_invariant_line_nos.append(i) + break + + return non_inductive_invariant_line_nos + + +class FramaCBenchmark(Benchmark): + def __init__(self, benchmarks_file="", features=None): + super().__init__(benchmarks_file, features) + + def preprocess(self, code, features, max_lines=500): + if "termination" in features and ( + "multiple_loops" in features or "multiple_methods" in features + ): + raise InvalidBenchmarkException( + "Multiple loops/methods not supported for termination" + ) + + num_lines = len(code.splitlines()) + if num_lines >= max_lines: + raise InvalidBenchmarkException( + f"Number of lines ({num_lines}) exceeded max_lines ({max_lines})" + ) + + try: + code = self.remove_comments(code) + code = self.remove_local_includes(code) + code = self.remove_preprocess_lines(code) + code = self.analyze_main(code) + code = self.remove_verifier_function_definitions(code) + code = self.remove_verifier_function_declarations(code) + code = self.replace_nondets_and_assert_assumes(code) + code = self.apply_patches(code) + code = self.add_boiler_plate(code) + code = self.error_label_to_frama_c_assert(code) + code = self.remove_reach_error_calls(code) + code = self.clean_newlines(code) + except Exception as e: + raise InvalidBenchmarkException(str(e)) + + """ + Remove unqualified benchmarks + """ + if self.has_ill_formed_asserts(code): + raise InvalidBenchmarkException("Ill-formed asserts") + + """ + Benchmarks with floats or doubles not supported yet + """ + if self.uses_floats_or_doubles(code): + raise InvalidBenchmarkException("Uses floats or doubles") + + if self.get_total_loop_count(code) < 1 and not self.is_interprocedural(code): + raise InvalidBenchmarkException("No annotations to infer in the benchmark") + + """ + We do not support benchmarks with arrays or pointers. + """ + if (not "arrays" in features) and self.uses_arrays(code): + raise InvalidBenchmarkException("Found arrays") + if (not "pointers" in features) and self.uses_pointers(code): + raise InvalidBenchmarkException("Found pointers") + + """ + Add labels or raise exception depending on the features set + """ + if "multiple_methods" in features: + if not self.all_functions_defined_in_program(code): + raise InvalidBenchmarkException( + "Not all methods are defined in the benchmark" + ) + code = self.add_method_labels(code) + elif self.is_interprocedural(code): + raise InvalidBenchmarkException("Found multiple methods") + + if "multiple_loops" in features: + code = self.add_loop_labels(code) + elif self.is_multi_loop(code): + raise InvalidBenchmarkException("Found multiple loops") + + if "no_loops" in features and self.get_total_loop_count(code) > 0: + raise InvalidBenchmarkException("Found loops") + + return code + + def combine_llm_outputs(self, checker_input, llm_outputs, features): + checker_input_ast = self.parser.parse(bytes(checker_input, "utf-8")) + root = checker_input_ast.root_node + loops = self.get_loops(root) + if self.is_interprocedural(checker_input): + assert "multiple_methods" in features, "Multiple methods found" + if len(loops) > 1: + assert "multiple_loops" in features, "Multiple loops found" + if self.uses_arrays(checker_input): + assert "arrays" in features, "Uses arrays" + + labels = self.get_labels(checker_input) + annotations = None + if len(labels) > 0: + annotations = {label[1]: "" for label in labels} + invariants_across_completions = {label[1]: {} for label in labels} + assigns_across_completions = {label[1]: {} for label in labels} + inv_count = 0 + for llm_output in llm_outputs: + annotation = self.get_annotations(llm_output, labels) + for label, ann in annotation.items(): + if label not in annotations: + annotations[label] = "" + if "Function_" in label: + """ + Find all the requires clauses for this function + """ + requires_clauses = "" + if label == "Function_main": + requires_clauses = "requires \\true;" + else: + requires_clauses = [] + for line in ann.split("\n"): + requires = re.findall(r"(requires .+;)", line) + if len(requires) > 0: + requires_clauses.append(requires[0]) + + if len(requires_clauses) < 1: + new_re = re.compile(r"(requires .+;)", re.MULTILINE) + requires_clauses = new_re.findall(ann) + if len(requires_clauses) < 1: + requires_clauses = ["requires \\true;"] + + requires_clauses = "\n".join(requires_clauses) + + """ + Find all the ensures clauses for this function + """ + ensures_clauses = [] + for line in ann.split("\n"): + ensures = re.findall(r"(ensures .+;)", line) + if len(ensures) > 0: + ensures_clauses.append(ensures[0]) + + if len(ensures_clauses) < 1: + new_re = re.compile(r"(ensures .+;)", re.MULTILINE) + ensures_clauses = new_re.findall(ann) + if len(ensures_clauses) < 1: + ensures_clauses = ["ensures \\true;"] + + ensures_clauses = "\n".join(ensures_clauses) + + old_annotation = annotations[label] + annotations[label] = ( + requires_clauses + + ( + "\n" + old_annotation + "\n" + if old_annotation != "" + else "\n" + ) + + ensures_clauses + ) + else: + invariants = {} + assigns = {} + for line in ann.split("\n"): + invariant = re.findall(r"loop invariant (.+);", line) + if len(invariant) > 0: + inv_id = re.findall(r"loop invariant (\w+:) ", line) + if len(inv_id) > 0: + invariant = [invariant[0].replace(inv_id[0], "")] + if invariant[0] in invariants_across_completions[label]: + continue + invariants_across_completions[label][ + invariant[0] + ] = True + invariant = f"loop invariant i{inv_count + 1}: {invariant[0]};" # add loop invariant label + invariants[invariant] = True + inv_count += 1 + else: + assign = re.findall(r"loop assigns .+;", line) + + if len(assign) > 0: + if assign[0] in assigns_across_completions[label]: + continue + assigns_across_completions[label][assign[0]] = True + assigns[assign[0]] = True + + annotations[label] = ( + annotations[label] + + "\n" + + "\n".join(list(invariants.keys())) + + "\n" + + "\n".join(list(assigns.keys())) + ) + + labels = sorted(labels, key=lambda x: x[0][0].start_byte, reverse=True) + for (node, _), label in labels: + checker_input = ( + checker_input[: node.start_byte] + + ( + "" + if annotations[label] == "" + else "/*@\n" + annotations[label] + "\n*/\n" + ) + + checker_input[node.end_byte :] + ) + + return checker_input + + invariants = {} + variant = None + + if "multiple_loops_one_method" == features: + print("Combining invariants from {} outputs".format(len(llm_outputs))) + + invariants = {} + for llm_output in llm_outputs: + lines = llm_output.splitlines() + for line in lines: + label = re.findall(r"Loop([A-Z]):", line) + if len(label) > 0: + label = label[0] + if label not in invariants: + invariants[label] = [] + + invariant = re.findall(r"(loop invariant .+;)", line) + if len(invariant) > 0: + invariants[label].append(invariant[0]) + output = "" + multi_loop = re.findall(r"/\* Loop([A-Z]) \*/", checker_input) + if len(multi_loop) > 0: + for loop_label in multi_loop: + new_checker_input = re.sub( + r"/\* Loop" + loop_label + r" \*/", + "/*@\n" + "\n".join(invariants[loop_label]) + "\n*/\n", + new_checker_input, + ) + output = new_checker_input + + return output + + elif "termination_one_loop_one_method" == features: + if len(llm_outputs) < 2: + raise Exception( + "Inputs should be inductive invariants and possible variants" + ) + + annotated_candidates = [] + invariants = llm_outputs[0] + inv_count = 0 + + loop = self.get_loops(self.get_main_definition(checker_input)) + if len(loop) != 1: + raise Exception( + "No singular loop found while adding annotations. Multiple loops not supported yet." + ) + loop = loop[0] + + for llm_output in llm_outputs[1]: + variants = {} + for line in llm_output.split("\n"): + __variants = re.findall(r"(loop variant .+;)", line) + + for variant in __variants: + variants[variant] = True + + if len(variants) == 0: + continue + + elif len(variants) > 1: + lexicographic_candidate = self.generate_template_variant( + checker_input, invariants, llm_output, template="lexicographic" + ) + multi_phase_candidate = self.generate_template_variant( + checker_input, invariants, llm_output, template="multi_phase" + ) + annotated_candidates.append(lexicographic_candidate) + annotated_candidates.append(multi_phase_candidate) + + else: + variant = list(variants.keys())[0] + annotated_candidates.append( + checker_input[: loop.start_byte] + + "/*@\n" + + invariants + + "\n" + + variant + + "\n*/\n" + + checker_input[loop.start_byte :] + ) + + return annotated_candidates + + elif "one_loop_one_method" in features: + invariants = [] + invariant_expressions = {} + inv_count = 0 + for llm_output in llm_outputs: + lines = llm_output.splitlines() + for line in lines: + invariant = re.findall(r"loop invariant (.+);", line) + if len(invariant) > 0: + inv_id = re.findall( + r"loop invariant ([a-zA-Z_][a-zA-Z_0-9]*:\s*)", line + ) + if len(inv_id) > 0: + line = line.replace( + "loop invariant " + inv_id[0], "loop invariant " + ) + invariant = re.findall(r"loop invariant (.+);", line) + if invariant[0] not in invariant_expressions: + invariant_expressions[invariant[0]] = True + invariant = f"loop invariant i{inv_count + 1}: {invariant[0]};" # add loop invariant label + invariants.append(invariant) + inv_count += 1 + + loop = self.get_loops(self.get_main_definition(checker_input)) + if len(loop) != 1: + raise Exception("No singular loop found while adding annotations") + loop = loop[0] + output = ( + checker_input[: loop.start_byte] + + "/*@\n" + + "\n".join(invariants) + + "\n*/\n" + + checker_input[loop.start_byte :] + ) + + return output + + else: + raise Exception("Unknown feature set") + + def extract_loop_invariants(self, code): + loop_invariants = [] + ast = self.parser.parse(bytes(code, "utf-8")) + comment_query = self.language.query( + """ + (comment) @comment + """ + ) + comments = comment_query.captures(ast.root_node) + comments = list( + filter(lambda x: x[0].text.decode("utf-8").startswith("/*@"), comments) + ) + + if len(comments) > 1: + raise Exception("More than 1 loop annotation found") + + comment = comments[0][0] + comment = code[comment.start_byte : comment.end_byte] + + for line in comment.split("\n"): + if self.is_invariant(line): + loop_invariants.append(line) + return "\n".join(loop_invariants) + + def get_variant_expressions(self, completions): + variants = [] + for c in completions: + # All variants in a completion are considered as one sequence of variants + c_variant = [] + for line in c.split("\n"): + if self.has_variant(line): + inv = re.findall(r"loop variant (.+);", line)[0] + if inv not in c_variant: + c_variant.append(inv) + if len(c_variant) > 0 and c_variant not in variants: + variants.append(c_variant) + return variants + + def apply_patches(self, code): + """ + Miscellaneous patches to fix benchmarks. + Frama-C panics on seeing while(true) without stdbool. + tmpl() is not supported by Frama-C. + """ + while_true_loops = re.findall(r"while\s*\(true\)", code) + for l in while_true_loops: + code = code.replace(l, "while(1)") + + lines = code.split("\n") + lines = list(map(lambda x: re.sub(r"tmpl\s*\(.*\)\s*;", "", x), lines)) + return "\n".join(lines) + + def error_label_to_frama_c_assert(self, code): + # get main function + ast = self.parser.parse(bytes(code, "utf-8")) + root = ast.root_node + if not "multiple_methods" in self.features: + root = self.get_main_definition(code) + + # catch ERROR: in main + errors = self.get_error_labels(root) + errors = sorted(errors, key=lambda x: x.start_byte, reverse=True) + for e in errors: + code = ( + code[: e.start_byte] + + "{ ERROR: {; \n//@ assert(\\false);\n}\n}" + + code[e.end_byte :] + ) + + return code + + def get_annotations(self, code_block, labels): + """ + Returns all the annotations in the code block + """ + annotations = {} + for label in labels: + annotation = "" + begin = re.findall(r"<\s*" + label[1] + r"\s*>", code_block) + end = re.findall(r"<\s*/\s*" + label[1] + r"\s*>", code_block) + if len(begin) == 1 and len(end) == 1: + annotation = code_block[ + code_block.find(begin[0]) + len(begin[0]) : code_block.find(end[0]) + ] + else: + Logger.log_warning("Incomplete annotation found") + continue + annotations[label[1]] = annotation + + return annotations + + def get_labels(self, code): + """ + This has to be called only on code that + has been passed through the parser because + ths assumes comments to be ACSL asserts or labels + """ + labels = {} + ast = self.parser.parse(bytes(code, "utf-8")) + comment_query = self.language.query( + """ + (comment) @comment + """ + ) + comments = comment_query.captures(ast.root_node) + comments = list( + filter(lambda x: not x[0].text.decode("utf-8").startswith("//@"), comments) + ) + comments = sorted(comments, key=lambda x: x[0].start_byte, reverse=True) + + labels = [] + for comment in comments: + comment_text = re.findall(r"\/\*(.+)\*\/", comment[0].text.decode("utf-8")) + if len(comment_text) == 0: + continue + comment_text = comment_text[0].strip() + labels.append((comment, comment_text)) + + return labels + + def generate_template_variant( + self, checker_input, invariants, variants, template="lexicographic" + ): + variant_expressions = [] + for line in variants.split("\n"): + variant = re.findall(r"loop variant (.+);", line) + if len(variant) > 0: + variant_expressions.append(variant[0]) + + num_variants = len(variant_expressions) + if num_variants == 0: + return checker_input + + struct_definition_string = """typedef struct {\n""" + for i in range(num_variants): + struct_definition_string += f"int {chr(i + 97)};\n" + struct_definition_string += "} variant_expression;\n" + + ghost_var_string = ( + """//@ ghost variant_expression measure = { """ + + ", ".join(variant_expressions) + + " };\n" + ) + + ghost_inv_string = ( + "loop invariant " + + " && ".join( + [ + f"measure.{chr(i + 97)} == {variant_expressions[i]}" + for i in range(num_variants) + ] + ) + + ";" + ) + invariants = invariants + "\n" + ghost_inv_string + + ghost_assign_string = "\n".join( + [ + f"//@ ghost measure.{chr(i + 97)} = {variant_expressions[i]};" + for i in range(num_variants) + ] + ) + + predicate_string = "" + loop_variant_expression = "" + if template == "lexicographic": + predicate_string = """/*@\npredicate lexicographic(variant_expression v1, variant_expression v2) =\n""" + disjuncts = [] + for i in range(num_variants): + conjunct_1 = f"v1.{chr(i + 97)} >= 0" + equality_conjunct_1 = " && ".join( + [f"v1.{chr(j + 97)} == v2.{chr(j + 97)}" for j in range(i)] + ) + inequality_conjunct_1 = f"v1.{chr(i + 97)} > v2.{chr(i + 97)}" + + disjunct = ( + conjunct_1 + + ( + (" && " + equality_conjunct_1) + if equality_conjunct_1 != "" + else "" + ) + + " && " + + inequality_conjunct_1 + ) + disjunct = "(" + disjunct + ")" + disjuncts.append(disjunct) + + predicate_string += " ||\n ".join(disjuncts) + ";\n*/" + loop_variant_expression = "loop variant measure for lexicographic;" + + elif template == "multi_phase": + predicate_string = """/*@\npredicate multi_phase(variant_expression v1, variant_expression v2) =\n""" + disjuncts = [] + for i in range(num_variants): + conjunct_1 = f"v1.{chr(i + 97)} >= 0" + inequality_conjunct_1 = f"v1.{chr(i + 97)} > v2.{chr(i + 97)}" + + decreasing_conjuncts = [] + for j in range(i): + decreasing = f"v1.{chr(j + 97)} > v2.{chr(j + 97)}" + negative = f"v1.{chr(j + 97)} < 0" + decreasing_conjuncts.append(f"{decreasing} && {negative}") + + disjunct = ( + ( + " && ".join(decreasing_conjuncts) + " && " + if len(decreasing_conjuncts) > 0 + else "" + ) + + inequality_conjunct_1 + + " && " + + conjunct_1 + ) + disjunct = "(" + disjunct + ")" + disjuncts.append(disjunct) + + predicate_string += " ||\n ".join(disjuncts) + ";\n*/" + loop_variant_expression = "loop variant measure for multi_phase;" + + else: + raise Exception("Unknown ranking function template") + + annotated_checker_input = ( + struct_definition_string + "\n" + predicate_string + "\n" + checker_input + ) + + loop = self.get_loops(self.get_main_definition(annotated_checker_input)) + if len(loop) != 1: + raise Exception( + "No singular loop found while adding annotations. Multiple loops not supported yet." + ) + loop = loop[0] + + annotated_code_with_variants = ( + annotated_checker_input[: loop.start_byte] + + ghost_var_string + + "/*@\n" + + invariants + + "\n" + + loop_variant_expression + + "\n*/\n" + + annotated_checker_input[loop.start_byte : loop.end_byte - 1] + + "\n" + + ghost_assign_string + + "\n" + + annotated_checker_input[loop.end_byte - 1 :] + ) + + return annotated_code_with_variants + + def is_invariant(self, line): + inv = re.findall(r"loop invariant (.+);", line) + return len(inv) > 0 + + def is_variant(self, line): + inv = re.findall(r"loop variant (.+);", line) + return len(inv) > 0 diff --git a/src/llm.py b/src/llm.py new file mode 100644 index 000000000..e4948b954 --- /dev/null +++ b/src/llm.py @@ -0,0 +1,11 @@ +from llm_utils import Settings + + +class LLMClient: + def __init__(self, settings: Settings): + self.settings = settings + + def chat(self, messages): + """This should be for the LLM API client.""" + raise NotImplementedError + diff --git a/src/llm_api_client.py b/src/llm_api_client.py new file mode 100644 index 000000000..bdd69c375 --- /dev/null +++ b/src/llm_api_client.py @@ -0,0 +1,178 @@ +import os +import re +import time +from typing import Any, List + +import openai +import tiktoken + +from llm_utils import Logger, Settings +from llm import LLMClient + + +class LLMAPIClient(LLMClient): + """The LLM API client.""" + + def __init__(self, settings: Settings): + """Configure this LLM client.""" + self.settings = settings + Logger.verbose = settings.verbose + Logger.debug = settings.debug + + # Values for implementing cool-down and retry logic. + self._interval = 60 / settings.prompts_per_minute + self._last_call_time = None + self._max_retries: int = 10 + + def chat(self, messages: list[dict[str, str]]) -> tuple[bool, List[str]]: + """Send the chat completion prompt and get the response from the model.""" + + api_client = None + if self.settings.provider == "azure-openai": + api_client = AzureOpenAI( + self.settings.get_api_key(), + self.settings.get_api_base(), + self.settings.get_api_version(), + ) + else: + raise Exception(f"Provider '{self.settings.provider}' is not supported.") + api_client.enforce_token_limit(messages, self.settings.model) + + # Enforce a cool-down for rate-limiting. + current_time = time.time() + if ( + self._last_call_time is not None + and (current_time - self._last_call_time) < self._interval + ): + time.sleep(self._interval) + + attempt = 0 + while attempt < self._max_retries: + try: + # Make the request to the remote LLM API with retries. + Logger.log_model_request( + self.settings.model, + messages, + ) + self._last_call_time = current_time + + response: Any = api_client.get_completion( + model=self.settings.model, + messages=messages, + max_tokens=self.settings.max_tokens, + temperature=self.settings.temperature, + num_completions=self.settings.num_completions, + top_p=self.settings.top_p, + frequency_penalty=self.settings.frequency_penalty, + presence_penalty=self.settings.presence_penalty, + stop=self.settings.stop, + ) + + completions = [] + for completion in response["choices"]: + completions.append(completion["message"]["content"]) + + Logger.log_model_response( + self.settings.model, + completions, + ) + + return True, completions + except Exception as e: + attempt += 1 + Logger.log_error( + f"Failed to send LLM prompt (attempt #{attempt}): {repr(e)}" + ) + seconds = re.search(r"Try again in (\d+) seconds", str(e)) + if seconds is None: + seconds = re.search(r"retry after (\d+) seconds", str(e)) + if seconds: + time.sleep(int(seconds.group(1))) + else: + time.sleep(2 * attempt) + continue + return False, ["Failed to prompt the LLM."] + + +class Provider: + def __init__(self, name, api_key, base_url, version): + self.name = name + self.api_key = api_key + self.api_base = base_url + self.api_version = version + + def get_completion(self, **kwargs): + raise NotImplementedError + + def enforce_token_limit(self, prompt: list[dict[str, str]], model: str): + raise NotImplementedError + + +class AzureOpenAI(Provider): + def __init__(self, api_key, api_base, api_version): + super().__init__("azure-openai", api_key, api_base, api_version) + self.api_type = "azure" + + def get_completion(self, **kwargs): + openai.api_key = self.api_key + openai.api_base = self.api_base + openai.api_type = self.api_type + openai.api_version = self.api_version + + model = kwargs.get("model") + messages = kwargs.get("messages") + max_tokens = kwargs.get("max_tokens") + temperature = kwargs.get("temperature") + num_completions = kwargs.get("num_completions") + top_p = kwargs.get("top_p") + frequency_penalty = kwargs.get("frequency_penalty") + presence_penalty = kwargs.get("presence_penalty") + stop = kwargs.get("stop") + + response = openai.ChatCompletion.create( + engine=model, + messages=messages, + max_tokens=max_tokens, + temperature=temperature, + n=num_completions, + top_p=top_p, + frequency_penalty=frequency_penalty, + presence_penalty=presence_penalty, + stop=stop, + ) + + return response + + def enforce_token_limit(self, prompt: list[dict[str, str]], model: str): + """Enforces the token limit on the prompt for the specified model.""" + + _prompt = self._messages_to_string(prompt) + + tokens_count: int = self._count_token_size(_prompt, model) + threshold = 0 + if model == "text-davinci-003": + threshold = 2500 + elif model == "gpt-3.5-turbo": + threshold = 2500 + elif model == "gpt-4": + threshold = 6000 + elif model == "gpt-4-32k": + threshold = 30000 + if tokens_count > threshold: + raise Exception( + f"Tokens size '{tokens_count}' exceeded the '{threshold}' limit." + ) + + def _count_token_size(self, prompt: str, model: str) -> int: + """Return the number of tokens in the prompt.""" + encoding = tiktoken.encoding_for_model(model) + num_tokens = len(encoding.encode(prompt)) + return num_tokens + + def _messages_to_string(self, messages: list[dict[str, str]]) -> str: + """Concatenates the list of messages to a string.""" + prompt = "" + for message in messages: + prompt += message["content"] + return prompt + diff --git a/src/llm_utils.py b/src/llm_utils.py new file mode 100644 index 000000000..2ba68a4b0 --- /dev/null +++ b/src/llm_utils.py @@ -0,0 +1,154 @@ +import os + + +ACTION = "\033[95m" +INFO = "\033[94m" +SUCCESS = "\033[92m" +WARNING = "\033[93m" +FAIL = "\033[91m" +BOLD = "\033[1m" +UNDERLINE = "\033[4m" +END = "\033[0m" + + +class Logger: + """A helper class for logging messages to std output.""" + + verbose = False + debug = False + + @staticmethod + def log_action(action: str, msg: str): + Logger.log( + f"{ACTION}{BOLD}[>]{END} {INFO}{BOLD}{action}{END}:{os.linesep}{msg}" + ) + + @staticmethod + def log_info(msg: str): + Logger.log(f"{ACTION}{BOLD}[>]{END} {INFO}{BOLD}{msg}{END}") + + @staticmethod + def log_debug(msg: str): + if Logger.debug: + Logger.log(f"{WARNING}{BOLD}[Debug]{END} {msg}") + + @staticmethod + def log_success(msg: str): + Logger.log(f"{SUCCESS}{BOLD}[Success]{END} {msg}") + + @staticmethod + def log_warning(msg: str): + Logger.log(f"{WARNING}{BOLD}[Warning]{END} {msg}") + + @staticmethod + def log_error(msg: str): + Logger.log(f"{FAIL}{BOLD}[Error]{END} {msg}") + + @staticmethod + def log_model_request(model: str, messages: list[dict[str, str]]): + if Logger.debug: + msg = ( + "\n".join( + [ + f"{BOLD}{UNDERLINE}{SUCCESS}" + + message["role"] + + f":{END} " + + message["content"] + for message in messages + ] + ) + + f"\n{INFO}" + + ("==" * 30) + + f"{END}" + ) + Logger.log( + f"{INFO}{BOLD}Sending prompt to the '{model}' model:{END}\n{msg}" + ) + + @staticmethod + def log_model_response(model: str, completions: [str]): + if Logger.debug: + msg = "\n".join( + [ + f"{BOLD}{UNDERLINE}{SUCCESS}Completion " + + str(i + 1) + + f":{END}\n" + + str(completion) + for i, completion in enumerate(completions) + ] + ) + Logger.log( + f"{SUCCESS}{BOLD}Received response from the '{model}' model:{END}\n{msg}" + ) + + @staticmethod + def log(msg: str): + print(msg) + + +class Settings: + def __init__( + self, + provider: str = "azure-openai", + api_key: str | None = None, + api_base: str | None = None, + api_version: str | None = None, + model: str = "gpt-4", + max_tokens: int = 1000, + temperature: float = 0.7, + top_p: float = 0.95, + frequency_penalty: float = 0.0, + presence_penalty: float = 0.0, + stop: str | None = None, + num_completions: int = 1, + max_retries: int = 10, + prompts_per_minute: int = 2, + max_batch_size: int = 5, + verbose: bool = False, + debug: bool = False, + ): + """Initializes a new 'Settings' instance from the specified parameters.""" + self.provider = provider + self.api_key = api_key + self.api_base = api_base + self.api_version = api_version + self.model = model + self.max_tokens = max_tokens + self.temperature = temperature + self.top_p = top_p + self.frequency_penalty = frequency_penalty + self.presence_penalty = presence_penalty + self.stop = stop + self.num_completions = num_completions + self.max_retries = max_retries + self.prompts_per_minute = prompts_per_minute + self.max_batch_size = max_batch_size + self.verbose = verbose + self.debug = debug + + def get_api_key(self) -> str: + """Returns the API key.""" + if self.api_key is None or len(self.api_key) == 0: + self.api_key = os.environ.get("OPENAI_API_KEY") + if self.api_key is None or len(self.api_key) == 0: + raise ValueError("No API key provided.") + return self.api_key + return self.api_key + + def get_api_base(self) -> str: + """Returns the API base.""" + if self.api_base is None or len(self.api_base) == 0: + self.api_base = os.environ.get("OPENAI_API_BASE") + if self.api_base is None or len(self.api_base) == 0: + raise ValueError("No API endpoint provided.") + return self.api_base + return self.api_base + + def get_api_version(self) -> str: + """Returns the API version.""" + if self.api_version is None or len(self.api_version) == 0: + self.api_version = os.environ.get("OPENAI_API_VERSION") + if self.api_version is None or len(self.api_version) == 0: + raise ValueError("No API version provided.") + return self.api_version + return self.api_version diff --git a/src/loopy.py b/src/loopy.py new file mode 100644 index 000000000..854cad3d1 --- /dev/null +++ b/src/loopy.py @@ -0,0 +1,1482 @@ +import datetime +import json +import multiprocessing +import os +import random +import re +import traceback +import warnings +from copy import deepcopy + +import yaml + +from llm_utils import Logger +from loopy_factory import LoopyFactory +from loopy_llm import LLM, Prompt + + +class Loopy: + def __init__( + self, + model: str = "gpt-4", + debug: bool = False, + log_path: str = "", + arg_params: dict = {}, + ): + self.model = model + self.debug = debug + self.log_path = log_path + self.benchmark_features = "" + self.arg_params = arg_params + self.benchmark = None + self.checker = None + + def set_config(self, config_file): + config = yaml.load(open(config_file, "r"), Loader=yaml.FullLoader) + + self.arg_params = {"cli_args": self.arg_params, "config_file_args": config} + + if not "benchmarks" in config: + raise Exception("No benchmarks file specified in config file") + Logger.log_info(f"Using input file: {config['benchmarks']}") + benchmarks = config["benchmarks"] + + if "benchmark_features" in config: + self.benchmark_features = config["benchmark_features"] + else: + Logger.log_info( + "Setting benchmark features to default: one_loop one_method" + ) + self.benchmark_features = "one_loop one_method" + + if not "model" in config: + raise Exception("No model specified config file") + Logger.log_info(f"Using model: {config['model']}") + self.model = config["model"] + + if "checker" not in config: + raise Exception("No checker specified in config file") + + if config["checker"] == "boogie": + warnings.warn( + "Boogie checker integration is experimental, use Frama-C instead", + UserWarning, + ) + loopyfact = LoopyFactory(config["checker"]) + self.benchmark = loopyfact.get_benchmark(benchmarks, self.benchmark_features) + self.checker = loopyfact.get_checker() + + if "checker_timeout" in config: + self.checker.timeout = config["checker_timeout"] + else: + self.checker.timeout = 3 + + Logger.log_info( + f"Using checker: {config['checker']}, with timeout: {self.checker.timeout}" + ) + + if "debug" in config: + self.debug = config["debug"] + + self.llm = LLM( + self.model, + self.debug, + ) + + """ + This call will filter out benchmarks that + do not have features specified in the config file + """ + Logger.log_info("Validating input files") + self.benchmark.validate_inputs() + Logger.log_info(f"Found {len(self.benchmark.input_file_paths)} benchmarks") + + return self + + @staticmethod + def write_benchmark_log(log_folder, benchmark_filename, json_log): + Logger.log_info(f"Writing log for {benchmark_filename}") + with open( + os.path.join( + log_folder, + benchmark_filename.replace(".c", ".json") + .replace("../", "") + .replace("/", "__"), + ), + "w", + encoding="utf-8", + ) as f: + f.write(json.dumps(json_log, indent=4, ensure_ascii=False)) + + @staticmethod + def shuffle(input_list): + temp = deepcopy(input_list) + random.shuffle(temp) + return temp + + @staticmethod + def run_parallel(inputs, func): + assert len(inputs) <= 32 + + pool = multiprocessing.Pool(processes=len(inputs)) + results = pool.map(func, inputs) + pool.close() + pool.join() + return results + + @staticmethod + def prune_wrapper(checker_input): + checker = LoopyFactory("frama-c").get_checker() + try: + success, pruned_code, num_frama_c_calls = checker.houdini( + checker_input, + features="one_loop_one_method", + use_json_dump_for_invariants=True, + ) + except Exception as e: + print(e) + traceback.print_exc() + return success + + @staticmethod + def combine_and_prune_with_k( + benchmark, + n, + k, + shuffle_times=10, + max_cores=16, + combine_llm_output_lambda=None, + features="one_loop_one_method", + ): + invariants_from_completions = [ + b["annotations"] for b in benchmark["completions"] + ] + + if len(invariants_from_completions) < n: + invariants_from_completions = invariants_from_completions + [ + "\nloop invariant \\false;\n" + for _ in range(n - len(invariants_from_completions)) + ] + + random_permutations = [ + Loopy.shuffle(invariants_from_completions) for _ in range(shuffle_times) + ] + candidates = [rp[:k] for rp in random_permutations] + candidate_inputs = [ + combine_llm_output_lambda(benchmark["benchmark_code"], candidate, features) + for candidate in candidates + ] + + max_m = (len(candidates) // max_cores) + 1 + pass_k_prune = 0.0 + for m in range(0, max_m): + checker_inputs = candidate_inputs[m * max_cores : (m + 1) * max_cores] + Logger.log_action( + "Combine and Pruning", + f"[Batch {m+1}/{max_m}]: {len(checker_inputs)} candidates in parallel, k={k}, File: {benchmark['file']}", + ) + try: + results = Loopy.run_parallel(checker_inputs, Loopy.prune_wrapper) + pass_k_prune += sum(results) + Logger.log_info( + f"[Batch {m+1}/{max_m}]: Combine and Prune with k = {pass_k_prune / len(results)} for k={k}, {len(checker_inputs)} parallel benchmarks, File: {benchmark['file']}" + ) + except Exception as e: + Logger.log_error(str(e)) + + pass_k_prune = pass_k_prune / len(candidates) + if pass_k_prune > 0.0: + Logger.log_success( + f"Combine and Prune with k = {pass_k_prune} for k={k}, {len(candidates)} benchmarks, File: {benchmark['file']}" + ) + else: + Logger.log_error( + f"Combine and Prune with k = {pass_k_prune} for k={k}, {len(candidates)} benchmarks, File: {benchmark['file']}" + ) + return pass_k_prune, checker_inputs + + def find_loop_invariants( + self, max_benchmarks=1, start_index=0, prompt="with_nudges" + ): + if self.llm is None or self.benchmark is None or self.checker is None: + raise Exception("Pipeline not initialized. Call load_config first.") + + log_json = [] + stats = {"success": [], "failure": [], "skipped": [], "total": 0} + + # create logs dir + self.log_path = datetime.datetime.now().strftime( + f"../logs/loopy_%Y_%m_%d_%H_%M_%S/" + ) + if not os.path.exists(os.path.dirname(self.log_path)): + os.makedirs(os.path.dirname(self.log_path)) + + log_file = open(self.log_path + "final.json", "w", encoding="utf-8") + + sliced_benchmarks = self.benchmark.input_file_paths[ + start_index : start_index + max_benchmarks + ] + + loopy_prompt = None + if prompt == "with_nudges": + loopy_prompt = Prompt( + system_text_file="templates/simplified_system_message.txt", + prompt_text_file="templates/simplified_prompt_with_nudges.txt", + num_completions=15, + ) + elif prompt == "without_nudges": + loopy_prompt = Prompt( + system_text_file="templates/simplified_system_message.txt", + prompt_text_file="templates/simplified_prompt.txt", + num_completions=15, + ) + elif prompt == "arrays_simplified": + loopy_prompt = Prompt( + prompt_text_file="templates/simplified_prompt_arrays.txt", + num_completions=8, + ) + elif prompt == "arrays_without_nudges": + loopy_prompt = Prompt( + system_text_file="templates/array_system_message.txt", + prompt_text_file="templates/simplified_prompt_with_nudges.txt", + num_completions=8, + ) + elif prompt == "arrays_with_nudges": + loopy_prompt = Prompt( + system_text_file="templates/array_system_message.txt", + prompt_text_file="templates/array_prompt_with_nudges.txt", + num_completions=8, + ) + else: + loopy_prompt = Prompt( + system_text_file=None, + prompt_text_file="templates/plain.txt", + num_completions=15, + ) + + for benchmark_index, benchmark_file in enumerate(sliced_benchmarks): + Logger.log_info( + f"Running benchmark: {start_index + benchmark_index + 1}/{len(sliced_benchmarks)}" + ) + + instance_log_json = { + "file": benchmark_file, + "benchmark_code": self.benchmark.get_code(benchmark_file), + "success": False, + } + success = False + + try: + codeblock_filter = lambda x: self.checker.has_invariant(x) or ( + self.checker.has_function_contract(x) + if "multiple_methods" in self.benchmark_features + else False + ) + annotation_blocks, llm_outputs = self.llm.generate_annotation( + input={"code": self.benchmark.get_code(benchmark_file)}, + prompt=loopy_prompt, + extraction_filter=codeblock_filter, + ) + + instance_log_json["llm_conversation"] = llm_outputs + instance_log_json["annotation_blocks"] = annotation_blocks + + completions = [] + for block in annotation_blocks: + completion_json = { + "num_solver_calls": 0, + } + if len(block) == 2 and block[0] == ( + "ERROR: Output does not contain at least 1 complete code block" + ): + completion_json["success"] = False + completion_json["num_solver_calls"] = 0 + completion_json["llm_output"] = block[1] + completion_json["error"] = ( + "Output does not contain at least 1 code block" + ) + completions.append(completion_json) + continue + + Logger.log_info(f"Checking completion {len(completions) + 1}") + + checker_input_with_annotations = self.benchmark.combine_llm_outputs( + self.benchmark.get_code(benchmark_file), + [block], + self.benchmark_features, + ) + completion_json["annotations"] = block + __success, checker_message = self.checker.check( + checker_input_with_annotations, + check_variant=False, + check_contracts=False, + ) + + completion_json["num_solver_calls"] += 1 + completion_json["checker_output_for_annotations"] = __success + completion_json["checker_message_for_annotations"] = checker_message + + if not __success: + try: + ( + __success, + pruned_code, + num_frama_c_calls, + ) = self.checker.houdini( + checker_input_with_annotations, + check_variant=False, + check_contracts=False, + ) + + completion_json["num_solver_calls"] += num_frama_c_calls + completion_json["code_after_prune"] = pruned_code + completion_json["checker_output_after_prune"] = __success + except Exception as e: + completion_json["houdini_error"] = str(e) + + success = __success or success + + if __success: + Logger.log_success( + f"Completion {len(completions) + 1} is correct" + ) + else: + Logger.log_error( + f"Completion {len(completions) + 1} is incorrect" + ) + + completions.append(completion_json) + + instance_log_json["completions"] = completions + + checker_input_with_combined_annotations = self.benchmark.combine_llm_outputs( + self.benchmark.get_code(benchmark_file), + [ + block + for block in annotation_blocks + if not ( + len(block) == 2 + and block[0] + == ( + "ERROR: Output does not contain at least 1 complete code block" + ) + ) + ], + self.benchmark_features, + ) + + Logger.log_info( + f"Checking combined annotations for benchmark: {start_index + benchmark_index + 1}/{len(sliced_benchmarks)}" + ) + + __success, checker_message = self.checker.check( + checker_input_with_combined_annotations, + check_variant=False, + check_contracts=False, + ) + + if __success: + Logger.log_success( + f"Combined annotations are correct for benchmark: {start_index + benchmark_index + 1}/{len(sliced_benchmarks)}" + ) + else: + Logger.log_error( + f"Combined annotations are incorrect for benchmark: {start_index + benchmark_index + 1}/{len(sliced_benchmarks)}" + ) + + instance_log_json["checker_output_for_combined_annotations"] = __success + instance_log_json["checker_message_for_combined_annotations"] = ( + checker_message + ) + instance_log_json["code_with_combined_annotations"] = ( + checker_input_with_combined_annotations + ) + + success = __success or success + + if not __success: + Logger.log_info( + f"Houdini for combined annotations for benchmark: {start_index + benchmark_index + 1}/{len(sliced_benchmarks)}" + ) + + try: + ( + __success, + pruned_code, + num_frama_c_calls, + ) = self.checker.houdini( + checker_input_with_combined_annotations, + check_variant=False, + check_contracts=False, + ) + + if __success: + Logger.log_success( + f"Houdini for combined annotations successful for benchmark: {start_index + benchmark_index + 1}/{len(sliced_benchmarks)}" + ) + else: + Logger.log_error( + f"Houdini for combined annotations unsuccessful for benchmark: {start_index + benchmark_index + 1}/{len(sliced_benchmarks)}" + ) + + instance_log_json["combined_annotation_num_solver_calls"] = ( + num_frama_c_calls + 1 + ) + instance_log_json["code_after_prune"] = pruned_code + instance_log_json["checker_output_after_prune"] = __success + except Exception as e: + instance_log_json["houdini_error"] = str(e) + + success = __success or success + + instance_log_json["success"] = success + + except Exception as e: + Logger.log_error(traceback.format_exc()) + if isinstance(e, KeyboardInterrupt): + instance_log_json["success"] = False + stats["skipped"].append(benchmark_file) + break + else: + instance_log_json["error"] = str(e) + instance_log_json["success"] = False + stats["skipped"].append(benchmark_file) + log_json.append(instance_log_json) + Loopy.write_benchmark_log( + self.log_path, + benchmark_file, + {"log": instance_log_json, "stats": stats}, + ) + continue + + if instance_log_json["success"]: + Logger.log_success( + f"Benchmark {start_index + benchmark_index + 1}/{len(sliced_benchmarks)} succeeded" + ) + stats["success"].append(benchmark_file) + + else: + Logger.log_error( + f"Benchmark {start_index + benchmark_index + 1}/{len(sliced_benchmarks)} failed" + ) + stats["failure"].append(benchmark_file) + + stats["total"] += 1 + stats["success_count"] = len(stats["success"]) + stats["failure_count"] = len(stats["failure"]) + stats["success_rate"] = ( + stats["success_count"] / stats["total"] if stats["total"] != 0 else 0 + ) + + log_json.append(instance_log_json) + + Loopy.write_benchmark_log( + self.log_path, + benchmark_file, + {"logs": instance_log_json, "stats": stats}, + ) + log_file.write( + json.dumps( + {"params": self.arg_params, "logs": log_json, "stats": stats}, + indent=4, + ensure_ascii=False, + ) + ) + log_file.close() + + return + + def repair_loop_invariants( + self, + max_benchmarks=1, + start_index=0, + input_log="", + k=8, + num_repairs=7, + ): + generation_log = json.load(open(input_log, "r", encoding="utf-8")) + + generation_log = generation_log["logs"][ + start_index : start_index + max_benchmarks + ] + + if self.llm is None or self.benchmark is None or self.checker is None: + raise Exception("Pipeline not initialized. Call load_config first.") + + log_json = [] + stats = { + "gen_success": [], + "repair_success": [], + "repair_failure": [], + "gen_skipped": [], + "repair_skipped": [], + "total": 0, + } + + self.log_path = datetime.datetime.now().strftime( + f"../logs/repair_loopy_%Y_%m_%d_%H_%M_%S/" + ) + if not os.path.exists(os.path.dirname(self.log_path)): + os.makedirs(os.path.dirname(self.log_path)) + + log_file = open(self.log_path + "final.json", "w", encoding="utf-8") + + repair_prompt = Prompt( + system_text_file="templates/healing_system_message.txt", + prompt_text_file="templates/healing_prompt.txt", + num_completions=1, + ) + + for benchmark_index, gen_benchmark_log in enumerate(generation_log): + Logger.log_info( + f"Running benchmark: {start_index + benchmark_index + 1}/{len(generation_log)}" + ) + + benchmark_code = gen_benchmark_log["benchmark_code"] + instance_log_json = { + "file": gen_benchmark_log["file"], + "benchmark_code": benchmark_code, + "success": False, + "repair_tries": [], + } + success = False + + if "completions" not in gen_benchmark_log: + Logger.log_info( + f"Skipping benchmark without completions: {start_index + benchmark_index + 1}/{len(generation_log)}" + ) + instance_log_json["success"] = False + stats["gen_skipped"].append(gen_benchmark_log["file"]) + log_json.append(instance_log_json) + Loopy.write_benchmark_log( + self.log_path, + gen_benchmark_log["file"], + {"logs": instance_log_json, "stats": stats}, + ) + continue + + try: + pass_8_success, candidates = Loopy.combine_and_prune_with_k( + gen_benchmark_log, + 15, + k, + combine_llm_output_lambda=self.benchmark.combine_llm_outputs, + ) + if pass_8_success: + Logger.log_success( + f"Skipping successful benchmark: {start_index + benchmark_index + 1}/{len(generation_log)}" + ) + instance_log_json["success"] = True + instance_log_json["candidates"] = candidates + stats["gen_success"].append(gen_benchmark_log["file"]) + + log_json.append(instance_log_json) + Loopy.write_benchmark_log( + self.log_path, + gen_benchmark_log["file"], + {"logs": instance_log_json, "stats": stats}, + ) + continue + + failing_candidate = random.choice(candidates) + + Logger.log_info( + f"Starting repair for benchmark: {start_index + benchmark_index + 1}/{len(generation_log)}" + ) + + num_repair_calls = 0 + repair_tries = [] + success = False + houdini_success = False + while num_repair_calls < num_repairs: + success, checker_message = self.checker.check( + failing_candidate, + check_variant=False, + check_contracts=False, + ) + + if success: + Logger.log_success( + f"Repair successful for benchmark: {start_index + benchmark_index + 1}/{len(generation_log)} with {num_repair_calls} repair calls" + ) + instance_log_json["success"] = True + repair_tries.append( + { + "repair_candidate": failing_candidate, + "llm_conversation": [], + "success": True, + "checker_message": checker_message, + } + ) + stats["repair_success"].append(gen_benchmark_log["file"]) + break + + repair_try_json = { + "repair_candidate": failing_candidate, + "repair_error_message": checker_message, + } + + if "Annotation error on line" in checker_message: + matches = re.findall( + r"Annotation error on line (\d+): ", checker_message + ) + line_num = int(matches[0]) - 1 + checker_message = checker_message.replace( + f"Annotation error on line {line_num + 1}: ", + f"Syntax error on line '{failing_candidate.splitlines()[line_num]}': ", + ) + + ( + repair_annotation_blocks, + repair_llm_outputs, + ) = self.llm.generate_annotation( + input={"code": failing_candidate, "error": checker_message}, + prompt=repair_prompt, + extraction_filter=lambda x: self.checker.has_invariant(x), + ) + + assert len(repair_annotation_blocks) == 1, "Invalid repair" + + if len( + repair_annotation_blocks[0] + ) == 2 and repair_annotation_blocks[0] == ( + "ERROR: Output does not contain at least 1 complete code block" + ): + Logger.log_error( + f"LLM query failed for benchmark: {start_index + benchmark_index + 1}/{len(generation_log)}" + ) + continue + + num_repair_calls += 1 + + repair_try_json["llm_conversation"] = repair_llm_outputs + repair_try_json["annotation_blocks"] = repair_annotation_blocks + + new_checker_input = self.benchmark.combine_llm_outputs( + benchmark_code, + repair_annotation_blocks, + "one_loop_one_method", + ) + repair_try_json["repaired_checker_input"] = new_checker_input + + success, checker_message = self.checker.check( + new_checker_input, + check_variant=False, + check_contracts=False, + ) + + houdini_success, pruned_code, _ = self.checker.houdini( + new_checker_input, + check_variant=False, + check_contracts=False, + ) + + if success or houdini_success: + Logger.log_success( + f"Repair successful for benchmark: {start_index + benchmark_index + 1}/{len(generation_log)} with {num_repair_calls} repair calls" + ) + repair_try_json["success"] = True + repair_try_json["checker_message"] = checker_message + repair_try_json["success_after_prune"] = houdini_success + repair_try_json["code_after_prune"] = pruned_code + + instance_log_json["success"] = True + repair_tries.append(repair_try_json) + break + + else: + Logger.log_error( + f"Repair unsuccessful for benchmark: {start_index + benchmark_index + 1}/{len(generation_log)} with {num_repair_calls} repair calls" + ) + failing_candidate = new_checker_input + repair_try_json["success"] = False + repair_try_json["checker_message"] = checker_message + repair_try_json["success_after_prune"] = houdini_success + repair_try_json["code_after_prune"] = pruned_code + repair_tries.append(repair_try_json) + continue + + instance_log_json["repair_tries"] = repair_tries + instance_log_json["success"] = success or houdini_success + + if instance_log_json["success"]: + Logger.log_success( + f"Benchmark {start_index + benchmark_index + 1}/{len(generation_log)} succeeded" + ) + stats["repair_success"].append(gen_benchmark_log["file"]) + else: + Logger.log_error( + f"Benchmark {start_index + benchmark_index + 1}/{len(generation_log)} failed" + ) + stats["repair_failure"].append(gen_benchmark_log["file"]) + + Loopy.write_benchmark_log( + self.log_path, + gen_benchmark_log["file"], + {"logs": instance_log_json, "stats": stats}, + ) + + except Exception as e: + Logger.log_error(traceback.format_exc()) + if isinstance(e, KeyboardInterrupt): + instance_log_json["success"] = False + stats["repair_skipped"].append(gen_benchmark_log["file"]) + break + else: + instance_log_json["error"] = str(e) + instance_log_json["success"] = False + stats["repair_skipped"].append(gen_benchmark_log["file"]) + log_json.append(instance_log_json) + Loopy.write_benchmark_log( + self.log_path, + gen_benchmark_log["file"], + {"logs": instance_log_json, "stats": stats}, + ) + continue + + stats["total"] += 1 + stats["gen_success_count"] = len(stats["gen_success"]) + stats["repair_success_count"] = len(stats["repair_success"]) + stats["repair_failure_count"] = len(stats["repair_failure"]) + stats["gen_skipped_count"] = len(stats["gen_skipped"]) + stats["repair_skipped_count"] = len(stats["repair_skipped"]) + + log_file.write( + json.dumps( + {"params": self.arg_params, "logs": log_json, "stats": stats}, + indent=4, + ensure_ascii=False, + ) + ) + log_file.close() + + return + + def interprocedural_loop_invariant_analysis(self, max_benchmarks=1, start_index=0): + if self.llm is None or self.benchmark is None or self.checker is None: + raise Exception("Pipeline not initialized. Call load_config first.") + + log_json = [] + stats = {"success": [], "failure": [], "skipped": [], "total": 0} + + # create logs dir + self.log_path = datetime.datetime.now().strftime( + f"../logs/loopy_%Y_%m_%d_%H_%M_%S/" + ) + if not os.path.exists(os.path.dirname(self.log_path)): + os.makedirs(os.path.dirname(self.log_path)) + + log_file = open(self.log_path + "final.json", "w", encoding="utf-8") + + sliced_benchmarks = self.benchmark.input_file_paths[ + start_index : start_index + max_benchmarks + ] + + pre_post_prompt = Prompt( + system_text_file="templates/m1_prepost_system.txt", + prompt_text_file="templates/m1_prepost_prompt.txt", + num_completions=8, + ) + + for benchmark_index, benchmark_file in enumerate(sliced_benchmarks): + Logger.log_info( + f"Running benchmark: {start_index + benchmark_index + 1}/{len(sliced_benchmarks)}" + ) + + instance_log_json = { + "file": benchmark_file, + "benchmark_code": self.benchmark.get_code(benchmark_file), + "success": False, + } + success = False + + try: + annotation_blocks, llm_outputs = self.llm.generate_annotation( + input={"code": self.benchmark.get_code(benchmark_file)}, + prompt=pre_post_prompt, + extraction_filter=lambda x: self.checker.has_invariant(x) + or self.checker.has_function_contract(x), + ) + + instance_log_json["llm_conversation"] = llm_outputs + instance_log_json["annotation_blocks"] = annotation_blocks + + completions = [] + for block in annotation_blocks: + completion_json = { + "num_solver_calls": 0, + } + if len(block) == 2 and block[0] == ( + "ERROR: Output does not contain at least 1 complete code block" + ): + completion_json["success"] = False + completion_json["num_solver_calls"] = 0 + completion_json["llm_output"] = block[1] + completion_json["error"] = ( + "Output does not contain at least 1 code block" + ) + completions.append(completion_json) + continue + + Logger.log_info(f"Checking completion {len(completions) + 1}") + + checker_input_with_annotations = self.benchmark.combine_llm_outputs( + self.benchmark.get_code(benchmark_file), + [block], + "multiple_loops_multiple_methods", + ) + completion_json["annotations"] = block + __success, checker_message = self.checker.check( + checker_input_with_annotations, + check_variant=False, + check_contracts=True, + ) + + completion_json["num_solver_calls"] += 1 + completion_json["checker_output_for_annotations"] = __success + completion_json["checker_message_for_annotations"] = checker_message + + if not __success: + try: + ( + __success, + pruned_code, + num_frama_c_calls, + ) = self.checker.houdini( + checker_input_with_annotations, + check_variant=False, + check_contracts=True, + ) + + completion_json["num_solver_calls"] += num_frama_c_calls + completion_json["code_after_prune"] = pruned_code + completion_json["checker_output_after_prune"] = __success + except Exception as e: + completion_json["code_after_prune"] = ( + checker_input_with_annotations + ) + completion_json["checker_output_after_prune"] = False + completion_json["checker_message_after_prune"] = str(e) + __success = False + + success = __success or success + + if __success: + Logger.log_success( + f"Completion {len(completions) + 1} is correct" + ) + else: + Logger.log_error( + f"Completion {len(completions) + 1} is incorrect" + ) + + completions.append(completion_json) + + instance_log_json["completions"] = completions + + checker_input_with_combined_annotations = self.benchmark.combine_llm_outputs( + self.benchmark.get_code(benchmark_file), + [ + block + for block in annotation_blocks + if not ( + len(block) == 2 + and block[0] + == ( + "ERROR: Output does not contain at least 1 complete code block" + ) + ) + ], + "multiple_loops_multiple_methods", + ) + + Logger.log_info( + f"Checking combined annotations for benchmark: {start_index + benchmark_index + 1}/{len(sliced_benchmarks)}" + ) + + __success, checker_message = self.checker.check( + checker_input_with_combined_annotations, + check_variant=False, + check_contracts=True, + ) + + if __success: + Logger.log_success( + f"Combined annotations are correct for benchmark: {start_index + benchmark_index + 1}/{len(sliced_benchmarks)}" + ) + else: + Logger.log_error( + f"Combined annotations are incorrect for benchmark: {start_index + benchmark_index + 1}/{len(sliced_benchmarks)}" + ) + + instance_log_json["checker_output_for_combined_annotations"] = __success + instance_log_json["checker_message_for_combined_annotations"] = ( + checker_message + ) + instance_log_json["code_with_combined_annotations"] = ( + checker_input_with_combined_annotations + ) + + success = __success or success + + if not __success: + Logger.log_info( + f"Houdini for combined annotations for benchmark: {start_index + benchmark_index + 1}/{len(sliced_benchmarks)}" + ) + + try: + ( + __success, + pruned_code, + num_frama_c_calls, + ) = self.checker.houdini( + checker_input_with_combined_annotations, + check_variant=False, + check_contracts=True, + ) + except Exception as e: + Logger.log_error(traceback.format_exc()) + Logger.log_error(str(e)) + __success = False + pruned_code = checker_input_with_combined_annotations + num_frama_c_calls = 0 + + if __success: + Logger.log_success( + f"Houdini for combined annotations successful for benchmark: {start_index + benchmark_index + 1}/{len(sliced_benchmarks)}" + ) + else: + Logger.log_error( + f"Houdini for combined annotations unsuccessful for benchmark: {start_index + benchmark_index + 1}/{len(sliced_benchmarks)}" + ) + + instance_log_json["combined_annotation_num_solver_calls"] = ( + num_frama_c_calls + 1 + ) + instance_log_json["code_after_prune"] = pruned_code + instance_log_json["checker_output_after_prune"] = __success + + success = __success or success + + instance_log_json["success"] = success + + except Exception as e: + Logger.log_error(traceback.format_exc()) + if isinstance(e, KeyboardInterrupt): + instance_log_json["success"] = False + stats["skipped"].append(benchmark_file) + break + else: + instance_log_json["error"] = str(e) + instance_log_json["success"] = False + stats["skipped"].append(benchmark_file) + log_json.append(instance_log_json) + Loopy.write_benchmark_log( + self.log_path, + benchmark_file, + {"log": instance_log_json, "stats": stats}, + ) + continue + + if instance_log_json["success"]: + Logger.log_success( + f"Benchmark {start_index + benchmark_index + 1}/{len(sliced_benchmarks)} succeeded" + ) + stats["success"].append(benchmark_file) + + else: + Logger.log_error( + f"Benchmark {start_index + benchmark_index + 1}/{len(sliced_benchmarks)} failed" + ) + stats["failure"].append(benchmark_file) + + stats["total"] += 1 + stats["success_count"] = len(stats["success"]) + stats["failure_count"] = len(stats["failure"]) + stats["success_rate"] = ( + stats["success_count"] / stats["total"] if stats["total"] != 0 else 0 + ) + + log_json.append(instance_log_json) + + Loopy.write_benchmark_log( + self.log_path, + benchmark_file, + {"log": instance_log_json, "stats": stats}, + ) + + log_file.write( + json.dumps( + {"params": self.arg_params, "logs": log_json, "stats": stats}, + indent=4, + ensure_ascii=False, + ) + ) + log_file.close() + + return + + def termination_analysis(self, max_benchmarks=1, start_index=0): + if self.llm is None or self.benchmark is None or self.checker is None: + raise Exception("Pipeline not initialized. Call load_config first.") + + log_json = [] + stats = {"success": [], "failure": [], "skipped": [], "total": 0} + + # create logs dir + self.log_path = datetime.datetime.now().strftime( + f"../logs/loopy_%Y_%m_%d_%H_%M_%S/" + ) + if not os.path.exists(os.path.dirname(self.log_path)): + os.makedirs(os.path.dirname(self.log_path)) + + log_file = open(self.log_path + "final.json", "w", encoding="utf-8") + + sliced_benchmarks = self.benchmark.input_file_paths[ + start_index : start_index + max_benchmarks + ] + + alg_variant_prompt = Prompt( + system_text_file="templates/termination_variants_system.txt", + prompt_text_file="templates/termination_variants_prompt.txt", + num_completions=5, + ) + lexico_variant_prompt = Prompt( + system_text_file="templates/termination_lexico_system.txt", + prompt_text_file="templates/termination_lexico_prompt.txt", + num_completions=5, + ) + multi_phase_variant_prompt = Prompt( + system_text_file="templates/termination_mphase_system.txt", + prompt_text_file="templates/termination_mphase_prompt.txt", + num_completions=5, + ) + + invariants_prompt = Prompt( + system_text_file="templates/termination_invariants_system.txt", + prompt_text_file="templates/termination_invariants_prompt.txt", + num_completions=5, + ) + + for benchmark_index, benchmark_file in enumerate(sliced_benchmarks): + Logger.log_info( + f"Running benchmark: {start_index + benchmark_index + 1}/{len(sliced_benchmarks)}" + ) + benchmark_success = False + + instance_log_json = { + "file": benchmark_file, + "benchmark_code": self.benchmark.get_code(benchmark_file), + "success": False, + } + + try: + # Try the basic prompt first + Logger.log_info( + f"Using basic prompt for benchmark: {start_index + benchmark_index + 1}/{len(sliced_benchmarks)}" + ) + ( + alg_variant_code_blocks, + alg_variant_llm_output, + ) = self.llm.generate_annotation( + input={"code": self.benchmark.get_code(benchmark_file)}, + prompt=alg_variant_prompt, + extraction_filter=self.checker.has_variant, + ) + + alg_variants = self.benchmark.get_variant_expressions( + [ + code_block + for code_block in alg_variant_code_blocks + if not ( + len(code_block) == 2 + and code_block[0] + == "ERROR: Output does not contain at least 1 complete code block" + ) + ] + ) + + instance_log_json["simple_variants"] = alg_variants + instance_log_json["simple_variant_llm_output"] = alg_variant_llm_output + instance_log_json["simple_variant_log"] = {} + + invariants_log = self.generate_invariants_for_variant( + invariants_prompt, + alg_variants, + self.benchmark.get_code(benchmark_file), + ) + + instance_log_json["simple_variant_log"] = invariants_log + instance_log_json["simple_variant_success"] = invariants_log["success"] + + # If the basic prompt works, we are done + if invariants_log["success"]: + benchmark_success = True + Logger.log_success( + f"Benchmark {start_index + benchmark_index + 1}/{len(sliced_benchmarks)} succeeded with a basic prompt" + ) + instance_log_json["success"] = True + log_json.append(instance_log_json) + stats["success"].append(benchmark_file) + Loopy.write_benchmark_log( + self.log_path, + benchmark_file, + {"log": instance_log_json, "stats": stats}, + ) + continue + + # If the basic prompt does not work, try the lexicographic prompt next + Logger.log_info( + f"Using lexicographic prompt for benchmark: {start_index + benchmark_index + 1}/{len(sliced_benchmarks)}" + ) + ( + lexico_variant_code_blocks, + lexico_variant_llm_output, + ) = self.llm.generate_annotation( + input={"code": self.benchmark.get_code(benchmark_file)}, + prompt=lexico_variant_prompt, + extraction_filter=self.checker.has_variant, + ) + + lexico_variants = self.benchmark.get_variant_expressions( + [ + code_block + for code_block in lexico_variant_code_blocks + if not ( + len(code_block) == 2 + and code_block[0] + == "ERROR: Output does not contain at least 1 complete code block" + ) + ] + ) + + instance_log_json["lexicographic_variants"] = lexico_variants + instance_log_json["lexicographic_variant_llm_output"] = ( + lexico_variant_llm_output + ) + instance_log_json["lexicographic_variant_log"] = {} + + invariants_log = self.generate_invariants_for_variant( + invariants_prompt, + lexico_variants, + self.benchmark.get_code(benchmark_file), + ) + + instance_log_json["lexicographic_variant_log"] = invariants_log + instance_log_json["lexicographic_variant_success"] = invariants_log[ + "success" + ] + + # If the lexicographic prompt works, we can move on + if invariants_log["success"]: + benchmark_success = True + Logger.log_success( + f"Benchmark {start_index + benchmark_index + 1}/{len(sliced_benchmarks)} succeeded with a lexicographic prompt" + ) + instance_log_json["success"] = True + log_json.append(instance_log_json) + stats["success"].append(benchmark_file) + Loopy.write_benchmark_log( + self.log_path, + benchmark_file, + {"log": instance_log_json, "stats": stats}, + ) + continue + + # If the lexicographic prompt does not work, we try the multi-phase prompt + Logger.log_info( + f"Using multi-phase prompt for benchmark: {start_index + benchmark_index + 1}/{len(sliced_benchmarks)}" + ) + ( + multi_phase_variant_code_blocks, + multi_phase_variant_llm_output, + ) = self.llm.generate_annotation( + input={"code": self.benchmark.get_code(benchmark_file)}, + prompt=multi_phase_variant_prompt, + extraction_filter=self.checker.has_variant, + ) + + multi_phase_variants = self.benchmark.get_variant_expressions( + [ + code_block + for code_block in multi_phase_variant_code_blocks + if not ( + len(code_block) == 2 + and code_block[0] + == "ERROR: Output does not contain at least 1 complete code block" + ) + ] + ) + + instance_log_json["multi_phase_variants"] = multi_phase_variants + instance_log_json["multi_phase_variant_llm_output"] = ( + multi_phase_variant_llm_output + ) + instance_log_json["multi_phase_variant_log"] = {} + + invariants_log = self.generate_invariants_for_variant( + invariants_prompt, + multi_phase_variants, + self.benchmark.get_code(benchmark_file), + ) + + instance_log_json["multi_phase_variant_log"] = invariants_log + instance_log_json["multi_phase_variant_success"] = invariants_log[ + "success" + ] + + # If the multi-phase prompt works, we can move on + if invariants_log["success"]: + benchmark_success = True + Logger.log_success( + f"Benchmark {start_index + benchmark_index + 1}/{len(sliced_benchmarks)} succeeded with a multi-phase prompt" + ) + instance_log_json["success"] = True + log_json.append(instance_log_json) + stats["success"].append(benchmark_file) + Loopy.write_benchmark_log( + self.log_path, + benchmark_file, + {"log": instance_log_json, "stats": stats}, + ) + continue + + # If no prompt works, we fail and move on + Logger.log_error( + f"Benchmark {start_index + benchmark_index + 1}/{len(sliced_benchmarks)} failed" + ) + log_json.append(instance_log_json) + stats["failure"].append(benchmark_file) + instance_log_json["success"] = False + Loopy.write_benchmark_log( + self.log_path, + benchmark_file, + {"log": instance_log_json, "stats": stats}, + ) + + except Exception as e: + Logger.log_error(traceback.format_exc()) + if isinstance(e, KeyboardInterrupt): + instance_log_json["success"] = False + stats["skipped"].append(benchmark_file) + break + else: + instance_log_json["error"] = str(e) + instance_log_json["success"] = False + stats["skipped"].append(benchmark_file) + log_json.append(instance_log_json) + Loopy.write_benchmark_log( + self.log_path, + benchmark_file, + {"log": instance_log_json, "stats": stats}, + ) + continue + + stats["total"] += 1 + stats["success_count"] = len(stats["success"]) + stats["failure_count"] = len(stats["failure"]) + stats["success_rate"] = ( + stats["success_count"] / stats["total"] if stats["total"] != 0 else 0 + ) + + log_json.append(instance_log_json) + + log_file.write( + json.dumps( + {"params": self.arg_params, "logs": log_json, "stats": stats}, + indent=4, + ensure_ascii=False, + ) + ) + log_file.close() + + return + + def generate_invariants_for_variant(self, prompt, variants, checker_input): + # one set of variants + invariants_log = {"success": False} + + for var_index, variant in enumerate(variants): + Logger.log_info( + f"Checking variant [{var_index + 1}]/[{len(variants)}]: {variant}" + ) + variant_log = {"variant": variant} + try: + # syntax error check + checker_inputs_with_variants = self.benchmark.combine_llm_outputs( + checker_input, + ( + "", + ["\n".join(["loop variant " + x + ";" for x in variant])], + ), + "termination_one_loop_one_method", + ) + + error_free_variants = [] + + for checker_input_with_variant in checker_inputs_with_variants: + success, checker_message = self.checker.check( + checker_input_with_variant, + check_variant=True, + check_contracts=False, + ) + + if "Annotation error on line " in checker_message: + Logger.log_error(f"Annotation error in variant: {variant}") + continue + else: + error_free_variants.append(checker_input_with_variant) + + if len(error_free_variants) == 0: + variant_log["error"] = ( + "All variant candidates have annotation errors" + ) + variant_log["success"] = False + invariants_log[str(variant)] = variant_log + Logger.log_error(f"Annotation errors in variant: {variant}") + continue + + Logger.log_info(f"Generating invariants for variant: {variant}") + + # Generate invariants for this variant + ( + invariant_code_blocks, + invariant_llm_output, + ) = self.llm.generate_annotation( + input={ + "code": checker_input, + "loop_variant": "(" + ", ".join(variant) + ")", + }, + prompt=prompt, + extraction_filter=self.checker.has_invariant, + ) + + variant_log["invariant_code_blocks"] = invariant_code_blocks + variant_log["invariant_llm_output"] = invariant_llm_output + + checker_input_with_invariants = self.benchmark.combine_llm_outputs( + checker_input, + list( + filter( + lambda x: not ( + len(x) == 2 + and x[0] + == "ERROR: Output does not contain at least 1 complete code block" + ), + invariant_code_blocks, + ) + ), + "one_loop_one_method", + ) + + # Houdini for the invariant set + success, pruned_code, num_frama_c_calls = self.checker.houdini( + checker_input_with_invariants, + check_variant=False, + check_contracts=False, + ) + + inductive_invariants = self.benchmark.extract_loop_invariants( + pruned_code + ) + + if len(inductive_invariants) == 0: + Logger.log_error( + f"No inductive invariants found for variant: {variant}" + ) + else: + Logger.log_success( + f"Inductive invariants found for variant: {variant}" + ) + + variant_log["inductive_invariants"] = inductive_invariants + # candidates with variants and invariants + checker_full_inputs = self.benchmark.combine_llm_outputs( + checker_input, + ( + inductive_invariants, + ["\n".join(["loop variant " + x + ";" for x in variant])], + ), + "termination_one_loop_one_method", + ) + + variant_candidates = [] + for checker_inp in checker_full_inputs: + Logger.log_info( + f"Checking variant candidate for variant: {variant}" + ) + success, checker_message = self.checker.check( + checker_inp, + check_variant=True, + check_contracts=False, + ) + variant_candidates.append( + { + "candidate_with_combined_invariants_and_variant": checker_inp, + "checker_output": success, + "checker_message": checker_message, + } + ) + if success: + Logger.log_success( + f"Variant candidate is correct for variant: {variant}" + ) + else: + Logger.log_error( + f"Variant candidate is incorrect for variant: {variant}" + ) + + variant_log["final_variant_candidates"] = variant_candidates + variant_log["success"] = any( + [x["checker_output"] for x in variant_candidates] + ) + + invariants_log[str(variant)] = variant_log + invariants_log["success"] = ( + invariants_log["success"] or variant_log["success"] + ) + + if variant_log["success"]: + Logger.log_success(f"Variant {variant} is correct for benchmark") + break + else: + Logger.log_error(f"Variant {variant} is incorrect for benchmark") + + except Exception as e: + Logger.log_error(traceback.format_exc()) + variant_log["error"] = str(e) + variant_log["success"] = False + invariants_log[str(variant)] = variant_log + invariants_log["success"] = False + + return invariants_log + + def dump_dataset(self, max_benchmarks=1, start_index=0, path=None): + if self.llm is None or self.benchmark is None or self.checker is None: + raise Exception("Pipeline not initialized. Call load_config first.") + + if path == None: + path = datetime.datetime.now().strftime( + f"../datasets_dumps/loopy_dataset_%Y_%m_%d_%H_%M_%S/" + ) + + if not os.path.exists(os.path.dirname(path)): + os.makedirs(os.path.dirname(path)) + + sliced_benchmarks = self.benchmark.input_file_paths[ + start_index : start_index + max_benchmarks + ] + + sliced_benchmarks = [ + (benchmark_file, self.benchmark.get_code(benchmark_file)) + for benchmark_file in sliced_benchmarks + ] + + Logger.log_info(f"Dumping dataset to: {path}") + for index, benchmark in enumerate(sliced_benchmarks): + with open(path + f"benchmark_{index}.c", "w") as f: + benchmark_text = "// Source: " + benchmark[0][3:] + "\n" + benchmark_text += benchmark[1] + f.write(benchmark_text) + + return diff --git a/src/loopy_factory.py b/src/loopy_factory.py new file mode 100644 index 000000000..36cd59959 --- /dev/null +++ b/src/loopy_factory.py @@ -0,0 +1,25 @@ +from benchmark import Benchmark +from checker import Checker +from boogie import BoogieBenchmark, BoogieChecker +from frama_c import FramaCBenchmark, FramaCChecker + + +class LoopyFactory: + def __init__(self, name="frama-c"): + self.name = name + + def get_benchmark(self, benchmarks_file="", features=None) -> Benchmark: + if self.name == "frama-c": + return FramaCBenchmark(benchmarks_file, features) + elif self.name == "boogie": + return BoogieBenchmark(benchmarks_file, features) + else: + raise Exception("Unsupported checker") + + def get_checker(self) -> Checker: + if self.name == "frama-c": + return FramaCChecker() + elif self.name == "boogie": + return BoogieChecker() + else: + raise Exception("Unsupported checker") diff --git a/src/loopy_llm.py b/src/loopy_llm.py new file mode 100644 index 000000000..adf244d9e --- /dev/null +++ b/src/loopy_llm.py @@ -0,0 +1,180 @@ +import os +import warnings + +from jinja2 import Environment, FileSystemLoader + +from llm_api_client import LLMAPIClient +from llm_utils import Settings + + +class Prompt: + def __init__( + self, + system_text_file: str = "", + prompt_text_file: str = "", + temperature: float = 0.7, + num_completions: int = 1, + batch_size: int = 5, + set_output: str = "", + ): + self.system_text_file = system_text_file + self.prompt_text_file = prompt_text_file + self.temperature = temperature + self.num_completions = num_completions + self.batch_size = batch_size + self.set_output = set_output + + def get_system_text(self): + template = Environment( + loader=FileSystemLoader(os.path.join(os.path.dirname(__file__), "../")) + ).get_template(self.system_text_file) + return template.render() + + def get_user_text(self, input: dict): + template = Environment( + loader=FileSystemLoader(os.path.join(os.path.dirname(__file__), "../")) + ).get_template(self.prompt_text_file) + prompt = template.render(input) + return prompt + + def get_assistant_text(self, input: dict): + warnings.warn( + "Usage of get_assistant_text is discouraged, refactor the LLM interaction and use get_user_text instead", + UserWarning, + ) + template = Environment( + loader=FileSystemLoader(os.path.join(os.path.dirname(__file__), "../")) + ).get_template(self.set_output) + prompt = template.render(input) + return prompt + + def from_file(self, input): + if type(input) == dict: + self.system_text_file = input["system_text"] + self.prompt_text_file = input["prompt_text"] + self.temperature = ( + 0.7 if "temperature" not in input else input["temperature"] + ) + self.num_completions = ( + 1 if "num_completions" not in input else input["num_completions"] + ) + self.batch_size = 5 if "batch_size" not in input else input["batch_size"] + self.set_output = None if "set_output" not in input else input["set_output"] + else: + raise Exception("Invalid input type for prompt") + return self + + +class LLM: + def __init__( + self, + model="gpt-3.5-turbo", + debug=False, + ): + self.model = model + self.debug = debug + + def extract_code(self, output, filter=lambda x: True): + """ + Extracts the first code block that returns true + for the filter function. We adhere to markdown + format since it has shown to be robust in + the case of LLMs. + """ + lines = output.split("\n") + line_nos = [] + + for i, line in enumerate(lines): + if "```" in line: + line_nos.append(i) + + if len(line_nos) < 2: + return ( + "ERROR: Output does not contain at least 1 complete code block" + ), output + + annotation_block = "" + line_nos = ( + line_nos if len(line_nos) % 2 == 0 else line_nos[:-1] + ) # skip the last block if it is incomplete + + for i in range(0, len(line_nos), 2): + snippet = "\n".join(lines[line_nos[i] + 1 : line_nos[i + 1]]) + if filter(snippet): + annotation_block = snippet + break + + return ( + annotation_block + if len(annotation_block) > 0 + else ( + "ERROR: Output does not contain at least 1 complete code block", + output, + ) + ) + + def extract_label(self, output): + label_start = output.find("") + if label_start == -1 or label_end == -1: + return None + + return output[label_start + len("